UNPKG

54.2 kBJavaScriptView Raw
1!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.SockJS=e():t.SockJS=e()}(window,(function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=31)}([function(t,e){"function"==typeof Object.create?t.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(t,e){if(e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}}},function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){"use strict";var r=n(0),o=n(18);function i(){o.call(this)}r(i,o),i.prototype.removeAllListeners=function(t){t?delete this._listeners[t]:this._listeners={}},i.prototype.once=function(t,e){var n=this,r=!1;this.on(t,(function o(){n.removeListener(t,o),r||(r=!0,e.apply(this,arguments))}))},i.prototype.emit=function(){var t=arguments[0],e=this._listeners[t];if(e){for(var n=arguments.length,r=new Array(n-1),o=1;o<n;o++)r[o-1]=arguments[o];for(var i=0;i<e.length;i++)e[i].apply(this,r)}},i.prototype.on=i.prototype.addListener=o.prototype.addEventListener,i.prototype.removeListener=o.prototype.removeEventListener,t.exports.EventEmitter=i},function(t,e,n){"use strict";var r=n(17);t.exports={getOrigin:function(t){if(!t)return null;var e=new r(t);if("file:"===e.protocol)return null;var n=e.port;return n||(n="https:"===e.protocol?"443":"80"),e.protocol+"//"+e.hostname+":"+n},isOriginEqual:function(t,e){var n=this.getOrigin(t)===this.getOrigin(e);return n},isSchemeEqual:function(t,e){return t.split(":")[0]===e.split(":")[0]},addPath:function(t,e){var n=t.split("?");return n[0]+e+(n[1]?"?"+n[1]:"")},addQuery:function(t,e){return t+(-1===t.indexOf("?")?"?"+e:"&"+e)},isLoopbackAddr:function(t){return/^127\.([0-9]{1,3})\.([0-9]{1,3})\.([0-9]{1,3})$/i.test(t)||/^\[::1\]$/.test(t)}}},function(t,e,n){(function(t,r){var o;/*! JSON v3.3.2 | https://bestiejs.github.io/json3 | Copyright 2012-2015, Kit Cambridge, Benjamin Tan | http://kit.mit-license.org */(function(){var i=n(44),s={function:!0,object:!0},a=s[typeof e]&&e&&!e.nodeType&&e,c=s[typeof window]&&window||this,u=a&&s[typeof t]&&t&&!t.nodeType&&"object"==typeof r&&r;function l(t,e){t||(t=c.Object()),e||(e=c.Object());var n=t.Number||c.Number,r=t.String||c.String,o=t.Object||c.Object,i=t.Date||c.Date,a=t.SyntaxError||c.SyntaxError,u=t.TypeError||c.TypeError,f=t.Math||c.Math,h=t.JSON||c.JSON;"object"==typeof h&&h&&(e.stringify=h.stringify,e.parse=h.parse);var p=o.prototype,d=p.toString,m=p.hasOwnProperty;function v(t,e){try{t()}catch(t){e&&e()}}var y=new i(-0xc782b5b800cec);function b(t){if(null!=b[t])return b[t];var o;if("bug-string-char-index"==t)o="a"!="a"[0];else if("json"==t)o=b("json-stringify")&&b("date-serialization")&&b("json-parse");else if("date-serialization"==t){if(o=b("json-stringify")&&y){var s=e.stringify;v((function(){o='"-271821-04-20T00:00:00.000Z"'==s(new i(-864e13))&&'"+275760-09-13T00:00:00.000Z"'==s(new i(864e13))&&'"-000001-01-01T00:00:00.000Z"'==s(new i(-621987552e5))&&'"1969-12-31T23:59:59.999Z"'==s(new i(-1))}))}}else{var a,c='{"a":[1,true,false,null,"\\u0000\\b\\n\\f\\r\\t"]}';if("json-stringify"==t){var u="function"==typeof(s=e.stringify);u&&((a=function(){return 1}).toJSON=a,v((function(){u="0"===s(0)&&"0"===s(new n)&&'""'==s(new r)&&void 0===s(d)&&void 0===s(void 0)&&void 0===s()&&"1"===s(a)&&"[1]"==s([a])&&"[null]"==s([void 0])&&"null"==s(null)&&"[null,null,null]"==s([void 0,d,null])&&s({a:[a,!0,!1,null,"\0\b\n\f\r\t"]})==c&&"1"===s(null,a)&&"[\n 1,\n 2\n]"==s([1,2],null,1)}),(function(){u=!1}))),o=u}if("json-parse"==t){var l,f=e.parse;"function"==typeof f&&v((function(){0!==f("0")||f(!1)||(a=f(c),(l=5==a.a.length&&1===a.a[0])&&(v((function(){l=!f('"\t"')})),l&&v((function(){l=1!==f("01")})),l&&v((function(){l=1!==f("1.")}))))}),(function(){l=!1})),o=l}}return b[t]=!!o}if(v((function(){y=-109252==y.getUTCFullYear()&&0===y.getUTCMonth()&&1===y.getUTCDate()&&10==y.getUTCHours()&&37==y.getUTCMinutes()&&6==y.getUTCSeconds()&&708==y.getUTCMilliseconds()})),b["bug-string-char-index"]=b["date-serialization"]=b.json=b["json-stringify"]=b["json-parse"]=null,!b("json")){var g=b("bug-string-char-index"),w=function(t,e){var n,r,o,i=0;for(o in(n=function(){this.valueOf=0}).prototype.valueOf=0,r=new n)m.call(r,o)&&i++;return n=r=null,i?w=function(t,e){var n,r,o="[object Function]"==d.call(t);for(n in t)o&&"prototype"==n||!m.call(t,n)||(r="constructor"===n)||e(n);(r||m.call(t,n="constructor"))&&e(n)}:(r=["valueOf","toString","toLocaleString","propertyIsEnumerable","isPrototypeOf","hasOwnProperty","constructor"],w=function(t,e){var n,o,i="[object Function]"==d.call(t),a=!i&&"function"!=typeof t.constructor&&s[typeof t.hasOwnProperty]&&t.hasOwnProperty||m;for(n in t)i&&"prototype"==n||!a.call(t,n)||e(n);for(o=r.length;n=r[--o];)a.call(t,n)&&e(n)}),w(t,e)};if(!b("json-stringify")&&!b("date-serialization")){var x={92:"\\\\",34:'\\"',8:"\\b",12:"\\f",10:"\\n",13:"\\r",9:"\\t"},_=function(t,e){return("000000"+(e||0)).slice(-t)},E=function(t){var e,n,r,o,i,s,a,c,u;if(y)e=function(t){n=t.getUTCFullYear(),r=t.getUTCMonth(),o=t.getUTCDate(),s=t.getUTCHours(),a=t.getUTCMinutes(),c=t.getUTCSeconds(),u=t.getUTCMilliseconds()};else{var l=f.floor,h=[0,31,59,90,120,151,181,212,243,273,304,334],p=function(t,e){return h[e]+365*(t-1970)+l((t-1969+(e=+(e>1)))/4)-l((t-1901+e)/100)+l((t-1601+e)/400)};e=function(t){for(o=l(t/864e5),n=l(o/365.2425)+1970-1;p(n+1,0)<=o;n++);for(r=l((o-p(n,0))/30.42);p(n,r+1)<=o;r++);o=1+o-p(n,r),s=l((i=(t%864e5+864e5)%864e5)/36e5)%24,a=l(i/6e4)%60,c=l(i/1e3)%60,u=i%1e3}}return(E=function(t){return t>-1/0&&t<1/0?(e(t),t=(n<=0||n>=1e4?(n<0?"-":"+")+_(6,n<0?-n:n):_(4,n))+"-"+_(2,r+1)+"-"+_(2,o)+"T"+_(2,s)+":"+_(2,a)+":"+_(2,c)+"."+_(3,u)+"Z",n=r=o=s=a=c=u=null):t=null,t})(t)};if(b("json-stringify")&&!b("date-serialization")){function S(t){return E(this)}var O=e.stringify;e.stringify=function(t,e,n){var r=i.prototype.toJSON;i.prototype.toJSON=S;var o=O(t,e,n);return i.prototype.toJSON=r,o}}else{var T=function(t){var e=t.charCodeAt(0),n=x[e];return n||"\\u00"+_(2,e.toString(16))},j=/[\x00-\x1f\x22\x5c]/g,C=function(t){return j.lastIndex=0,'"'+(j.test(t)?t.replace(j,T):t)+'"'},A=function(t,e,n,r,o,s,a){var c,l,f,h,p,m,y,b,g;if(v((function(){c=e[t]})),"object"==typeof c&&c&&(c.getUTCFullYear&&"[object Date]"==d.call(c)&&c.toJSON===i.prototype.toJSON?c=E(c):"function"==typeof c.toJSON&&(c=c.toJSON(t))),n&&(c=n.call(e,t,c)),null==c)return void 0===c?c:"null";switch("object"==(l=typeof c)&&(f=d.call(c)),f||l){case"boolean":case"[object Boolean]":return""+c;case"number":case"[object Number]":return c>-1/0&&c<1/0?""+c:"null";case"string":case"[object String]":return C(""+c)}if("object"==typeof c){for(y=a.length;y--;)if(a[y]===c)throw u();if(a.push(c),h=[],b=s,s+=o,"[object Array]"==f){for(m=0,y=c.length;m<y;m++)p=A(m,c,n,r,o,s,a),h.push(void 0===p?"null":p);g=h.length?o?"[\n"+s+h.join(",\n"+s)+"\n"+b+"]":"["+h.join(",")+"]":"[]"}else w(r||c,(function(t){var e=A(t,c,n,r,o,s,a);void 0!==e&&h.push(C(t)+":"+(o?" ":"")+e)})),g=h.length?o?"{\n"+s+h.join(",\n"+s)+"\n"+b+"}":"{"+h.join(",")+"}":"{}";return a.pop(),g}};e.stringify=function(t,e,n){var r,o,i,a;if(s[typeof e]&&e)if("[object Function]"==(a=d.call(e)))o=e;else if("[object Array]"==a){i={};for(var c,u=0,l=e.length;u<l;)c=e[u++],"[object String]"!=(a=d.call(c))&&"[object Number]"!=a||(i[c]=1)}if(n)if("[object Number]"==(a=d.call(n))){if((n-=n%1)>0)for(n>10&&(n=10),r="";r.length<n;)r+=" "}else"[object String]"==a&&(r=n.length<=10?n:n.slice(0,10));return A("",((c={})[""]=t,c),o,i,r,"",[])}}}if(!b("json-parse")){var N,k,I=r.fromCharCode,P={92:"\\",34:'"',47:"/",98:"\b",116:"\t",110:"\n",102:"\f",114:"\r"},L=function(){throw N=k=null,a()},R=function(){for(var t,e,n,r,o,i=k,s=i.length;N<s;)switch(o=i.charCodeAt(N)){case 9:case 10:case 13:case 32:N++;break;case 123:case 125:case 91:case 93:case 58:case 44:return t=g?i.charAt(N):i[N],N++,t;case 34:for(t="@",N++;N<s;)if((o=i.charCodeAt(N))<32)L();else if(92==o)switch(o=i.charCodeAt(++N)){case 92:case 34:case 47:case 98:case 116:case 110:case 102:case 114:t+=P[o],N++;break;case 117:for(e=++N,n=N+4;N<n;N++)(o=i.charCodeAt(N))>=48&&o<=57||o>=97&&o<=102||o>=65&&o<=70||L();t+=I("0x"+i.slice(e,N));break;default:L()}else{if(34==o)break;for(o=i.charCodeAt(N),e=N;o>=32&&92!=o&&34!=o;)o=i.charCodeAt(++N);t+=i.slice(e,N)}if(34==i.charCodeAt(N))return N++,t;L();default:if(e=N,45==o&&(r=!0,o=i.charCodeAt(++N)),o>=48&&o<=57){for(48==o&&((o=i.charCodeAt(N+1))>=48&&o<=57)&&L(),r=!1;N<s&&((o=i.charCodeAt(N))>=48&&o<=57);N++);if(46==i.charCodeAt(N)){for(n=++N;n<s&&!((o=i.charCodeAt(n))<48||o>57);n++);n==N&&L(),N=n}if(101==(o=i.charCodeAt(N))||69==o){for(43!=(o=i.charCodeAt(++N))&&45!=o||N++,n=N;n<s&&!((o=i.charCodeAt(n))<48||o>57);n++);n==N&&L(),N=n}return+i.slice(e,N)}r&&L();var a=i.slice(N,N+4);if("true"==a)return N+=4,!0;if("fals"==a&&101==i.charCodeAt(N+4))return N+=5,!1;if("null"==a)return N+=4,null;L()}return"$"},M=function(t){var e,n;if("$"==t&&L(),"string"==typeof t){if("@"==(g?t.charAt(0):t[0]))return t.slice(1);if("["==t){for(e=[];"]"!=(t=R());)n?","==t?"]"==(t=R())&&L():L():n=!0,","==t&&L(),e.push(M(t));return e}if("{"==t){for(e={};"}"!=(t=R());)n?","==t?"}"==(t=R())&&L():L():n=!0,","!=t&&"string"==typeof t&&"@"==(g?t.charAt(0):t[0])&&":"==R()||L(),e[t.slice(1)]=M(R());return e}L()}return t},U=function(t,e,n){var r=D(t,e,n);void 0===r?delete t[e]:t[e]=r},D=function(t,e,n){var r,o=t[e];if("object"==typeof o&&o)if("[object Array]"==d.call(o))for(r=o.length;r--;)U(d,w,o);else w(o,(function(t){U(o,t,n)}));return n.call(t,e,o)};e.parse=function(t,e){var n,r;return N=0,k=""+t,n=M(R()),"$"!=R()&&L(),N=k=null,e&&"[object Function]"==d.call(e)?D(((r={})[""]=n,r),"",e):n}}}return e.runInContext=l,e}if(!u||u.global!==u&&u.window!==u&&u.self!==u||(c=u),a&&!i)l(c,a);else{var f=c.JSON,h=c.JSON3,p=!1,d=l(c,c.JSON3={noConflict:function(){return p||(p=!0,c.JSON=f,c.JSON3=h,f=h=null),d}});c.JSON={parse:d.parse,stringify:d.stringify}}i&&(void 0===(o=function(){return d}.call(e,n,e,t))||(t.exports=o))}).call(this)}).call(this,n(43)(t),n(1))},function(t,e,n){"use strict";(function(e){var r=n(6),o={},i=!1,s=e.chrome&&e.chrome.app&&e.chrome.app.runtime;t.exports={attachEvent:function(t,n){void 0!==e.addEventListener?e.addEventListener(t,n,!1):e.document&&e.attachEvent&&(e.document.attachEvent("on"+t,n),e.attachEvent("on"+t,n))},detachEvent:function(t,n){void 0!==e.addEventListener?e.removeEventListener(t,n,!1):e.document&&e.detachEvent&&(e.document.detachEvent("on"+t,n),e.detachEvent("on"+t,n))},unloadAdd:function(t){if(s)return null;var e=r.string(8);return o[e]=t,i&&setTimeout(this.triggerUnloadCallbacks,0),e},unloadDel:function(t){t in o&&delete o[t]},triggerUnloadCallbacks:function(){for(var t in o)o[t](),delete o[t]}};s||t.exports.attachEvent("unload",(function(){i||(i=!0,t.exports.triggerUnloadCallbacks())}))}).call(this,n(1))},function(t,e,n){"use strict";var r=n(35);t.exports={string:function(t){for(var e="abcdefghijklmnopqrstuvwxyz012345".length,n=r.randomBytes(t),o=[],i=0;i<t;i++)o.push("abcdefghijklmnopqrstuvwxyz012345".substr(n[i]%e,1));return o.join("")},number:function(t){return Math.floor(Math.random()*t)},numberString:function(t){var e=(""+(t-1)).length;return(new Array(e+1).join("0")+this.number(t)).slice(-e)}}},function(t,e,n){"use strict";var r=n(0),o=n(3),i=n(19);function s(t,e,n,r){i.call(this,t,e,function(t){return function(e,n,r){var i={};"string"==typeof n&&(i.headers={"Content-type":"text/plain"});var s=o.addPath(e,"/xhr_send"),a=new t("POST",s,n,i);return a.once("finish",(function(t){if(a=null,200!==t&&204!==t)return r(new Error("http status "+t));r()})),function(){a.close(),a=null;var t=new Error("Aborted");t.code=1e3,r(t)}}}(r),n,r)}r(s,i),t.exports=s},function(t,e,n){"use strict";var r=n(0),o=n(20);function i(t,e,n){o.call(this,t,e,n,{noCredentials:!0})}r(i,o),i.enabled=o.enabled,t.exports=i},function(t,e,n){"use strict";(function(e){t.exports={isOpera:function(){return e.navigator&&/opera/i.test(e.navigator.userAgent)},isKonqueror:function(){return e.navigator&&/konqueror/i.test(e.navigator.userAgent)},hasDomain:function(){if(!e.document)return!0;try{return!!e.document.domain}catch(t){return!1}}}}).call(this,n(1))},function(t,e,n){"use strict";(function(e){var r=n(5),o=n(4),i=n(9);t.exports={WPrefix:"_jp",currentWindowId:null,polluteGlobalNamespace:function(){t.exports.WPrefix in e||(e[t.exports.WPrefix]={})},postMessage:function(n,r){e.parent!==e&&e.parent.postMessage(o.stringify({windowId:t.exports.currentWindowId,type:n,data:r||""}),"*")},createIframe:function(t,n){var o,i,s=e.document.createElement("iframe"),a=function(){clearTimeout(o);try{s.onload=null}catch(t){}s.onerror=null},c=function(){s&&(a(),setTimeout((function(){s&&s.parentNode.removeChild(s),s=null}),0),r.unloadDel(i))},u=function(t){s&&(c(),n(t))};return s.src=t,s.style.display="none",s.style.position="absolute",s.onerror=function(){u("onerror")},s.onload=function(){clearTimeout(o),o=setTimeout((function(){u("onload timeout")}),2e3)},e.document.body.appendChild(s),o=setTimeout((function(){u("timeout")}),15e3),i=r.unloadAdd(c),{post:function(t,e){setTimeout((function(){try{s&&s.contentWindow&&s.contentWindow.postMessage(t,e)}catch(t){}}),0)},cleanup:c,loaded:a}},createHtmlfile:function(n,o){var i,s,a,c=["Active"].concat("Object").join("X"),u=new e[c]("htmlfile"),l=function(){clearTimeout(i),a.onerror=null},f=function(){u&&(l(),r.unloadDel(s),a.parentNode.removeChild(a),a=u=null,CollectGarbage())},h=function(t){u&&(f(),o(t))};u.open(),u.write('<html><script>document.domain="'+e.document.domain+'";<\/script></html>'),u.close(),u.parentWindow[t.exports.WPrefix]=e[t.exports.WPrefix];var p=u.createElement("div");return u.body.appendChild(p),a=u.createElement("iframe"),p.appendChild(a),a.src=n,a.onerror=function(){h("onerror")},i=setTimeout((function(){h("timeout")}),15e3),s=r.unloadAdd(f),{post:function(t,e){try{setTimeout((function(){a&&a.contentWindow&&a.contentWindow.postMessage(t,e)}),0)}catch(t){}},cleanup:f,loaded:l}}},t.exports.iframeEnabled=!1,e.document&&(t.exports.iframeEnabled=("function"==typeof e.postMessage||"object"==typeof e.postMessage)&&!i.isKonqueror())}).call(this,n(1))},function(t,e,n){"use strict";var r=n(0),o=n(2).EventEmitter;function i(t,e){o.call(this);var n=this;this.bufferPosition=0,this.xo=new e("POST",t,null),this.xo.on("chunk",this._chunkHandler.bind(this)),this.xo.once("finish",(function(t,e){n._chunkHandler(t,e),n.xo=null;var r=200===t?"network":"permanent";n.emit("close",null,r),n._cleanup()}))}r(i,o),i.prototype._chunkHandler=function(t,e){if(200===t&&e)for(var n=-1;;this.bufferPosition+=n+1){var r=e.slice(this.bufferPosition);if(-1===(n=r.indexOf("\n")))break;var o=r.slice(0,n);o&&this.emit("message",o)}},i.prototype._cleanup=function(){this.removeAllListeners()},i.prototype.abort=function(){this.xo&&(this.xo.close(),this.emit("close",null,"user"),this.xo=null),this._cleanup()},t.exports=i},function(t,e,n){"use strict";var r=n(0),o=n(20);function i(t,e,n,r){o.call(this,t,e,n,r)}r(i,o),i.enabled=o.enabled&&o.supportsCORS,t.exports=i},function(t,e,n){"use strict";(function(e){var r=n(2).EventEmitter,o=n(0),i=n(5),s=n(9),a=n(3);function c(t,e,n){var o=this;r.call(this),setTimeout((function(){o._start(t,e,n)}),0)}o(c,r),c.prototype._start=function(t,n,r){var o=this,s=new e.XDomainRequest;n=a.addQuery(n,"t="+ +new Date),s.onerror=function(){o._error()},s.ontimeout=function(){o._error()},s.onprogress=function(){s.responseText,o.emit("chunk",200,s.responseText)},s.onload=function(){o.emit("finish",200,s.responseText),o._cleanup(!1)},this.xdr=s,this.unloadRef=i.unloadAdd((function(){o._cleanup(!0)}));try{this.xdr.open(t,n),this.timeout&&(this.xdr.timeout=this.timeout),this.xdr.send(r)}catch(t){this._error()}},c.prototype._error=function(){this.emit("finish",0,""),this._cleanup(!1)},c.prototype._cleanup=function(t){if(this.xdr){if(this.removeAllListeners(),i.unloadDel(this.unloadRef),this.xdr.ontimeout=this.xdr.onerror=this.xdr.onprogress=this.xdr.onload=null,t)try{this.xdr.abort()}catch(t){}this.unloadRef=this.xdr=null}},c.prototype.close=function(){this._cleanup(!0)},c.enabled=!(!e.XDomainRequest||!s.hasDomain()),t.exports=c}).call(this,n(1))},function(t,e,n){"use strict";(function(e){var r=n(0),o=n(24),i=n(15);t.exports=function(t){function n(e,n){o.call(this,t.transportName,e,n)}return r(n,o),n.enabled=function(n,r){if(!e.document)return!1;var s=i.extend({},r);return s.sameOrigin=!0,t.enabled(s)&&o.enabled()},n.transportName="iframe-"+t.transportName,n.needBody=!0,n.roundTrips=o.roundTrips+t.roundTrips-1,n.facadeTransport=t,n}}).call(this,n(1))},function(t,e,n){"use strict";t.exports={isObject:function(t){var e=typeof t;return"function"===e||"object"===e&&!!t},extend:function(t){if(!this.isObject(t))return t;for(var e,n,r=1,o=arguments.length;r<o;r++)for(n in e=arguments[r])Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}}},function(t,e,n){"use strict";function r(t){this.type=t}r.prototype.initEvent=function(t,e,n){return this.type=t,this.bubbles=e,this.cancelable=n,this.timeStamp=+new Date,this},r.prototype.stopPropagation=function(){},r.prototype.preventDefault=function(){},r.CAPTURING_PHASE=1,r.AT_TARGET=2,r.BUBBLING_PHASE=3,t.exports=r},function(t,e,n){"use strict";(function(e){var r=n(36),o=n(37),i=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,s=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\S\s]*)/i,a=new RegExp("^[\\x09\\x0A\\x0B\\x0C\\x0D\\x20\\xA0\\u1680\\u180E\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200A\\u202F\\u205F\\u3000\\u2028\\u2029\\uFEFF]+");function c(t){return(t||"").toString().replace(a,"")}var u=[["#","hash"],["?","query"],function(t){return t.replace("\\","/")},["/","pathname"],["@","auth",1],[NaN,"host",void 0,1,1],[/:(\d+)$/,"port",void 0,1],[NaN,"hostname",void 0,1,1]],l={hash:1,query:1};function f(t){var n,r=("undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{}).location||{},o={},s=typeof(t=t||r);if("blob:"===t.protocol)o=new p(unescape(t.pathname),{});else if("string"===s)for(n in o=new p(t,{}),l)delete o[n];else if("object"===s){for(n in t)n in l||(o[n]=t[n]);void 0===o.slashes&&(o.slashes=i.test(t.href))}return o}function h(t){t=c(t);var e=s.exec(t);return{protocol:e[1]?e[1].toLowerCase():"",slashes:!!e[2],rest:e[3]}}function p(t,e,n){if(t=c(t),!(this instanceof p))return new p(t,e,n);var i,s,a,l,d,m,v=u.slice(),y=typeof e,b=this,g=0;for("object"!==y&&"string"!==y&&(n=e,e=null),n&&"function"!=typeof n&&(n=o.parse),e=f(e),i=!(s=h(t||"")).protocol&&!s.slashes,b.slashes=s.slashes||i&&e.slashes,b.protocol=s.protocol||e.protocol||"",t=s.rest,s.slashes||(v[3]=[/(.*)/,"pathname"]);g<v.length;g++)"function"!=typeof(l=v[g])?(a=l[0],m=l[1],a!=a?b[m]=t:"string"==typeof a?~(d=t.indexOf(a))&&("number"==typeof l[2]?(b[m]=t.slice(0,d),t=t.slice(d+l[2])):(b[m]=t.slice(d),t=t.slice(0,d))):(d=a.exec(t))&&(b[m]=d[1],t=t.slice(0,d.index)),b[m]=b[m]||i&&l[3]&&e[m]||"",l[4]&&(b[m]=b[m].toLowerCase())):t=l(t);n&&(b.query=n(b.query)),i&&e.slashes&&"/"!==b.pathname.charAt(0)&&(""!==b.pathname||""!==e.pathname)&&(b.pathname=function(t,e){if(""===t)return e;for(var n=(e||"/").split("/").slice(0,-1).concat(t.split("/")),r=n.length,o=n[r-1],i=!1,s=0;r--;)"."===n[r]?n.splice(r,1):".."===n[r]?(n.splice(r,1),s++):s&&(0===r&&(i=!0),n.splice(r,1),s--);return i&&n.unshift(""),"."!==o&&".."!==o||n.push(""),n.join("/")}(b.pathname,e.pathname)),r(b.port,b.protocol)||(b.host=b.hostname,b.port=""),b.username=b.password="",b.auth&&(l=b.auth.split(":"),b.username=l[0]||"",b.password=l[1]||""),b.origin=b.protocol&&b.host&&"file:"!==b.protocol?b.protocol+"//"+b.host:"null",b.href=b.toString()}p.prototype={set:function(t,e,n){var i=this;switch(t){case"query":"string"==typeof e&&e.length&&(e=(n||o.parse)(e)),i[t]=e;break;case"port":i[t]=e,r(e,i.protocol)?e&&(i.host=i.hostname+":"+e):(i.host=i.hostname,i[t]="");break;case"hostname":i[t]=e,i.port&&(e+=":"+i.port),i.host=e;break;case"host":i[t]=e,/:\d+$/.test(e)?(e=e.split(":"),i.port=e.pop(),i.hostname=e.join(":")):(i.hostname=e,i.port="");break;case"protocol":i.protocol=e.toLowerCase(),i.slashes=!n;break;case"pathname":case"hash":if(e){var s="pathname"===t?"/":"#";i[t]=e.charAt(0)!==s?s+e:e}else i[t]=e;break;default:i[t]=e}for(var a=0;a<u.length;a++){var c=u[a];c[4]&&(i[c[1]]=i[c[1]].toLowerCase())}return i.origin=i.protocol&&i.host&&"file:"!==i.protocol?i.protocol+"//"+i.host:"null",i.href=i.toString(),i},toString:function(t){t&&"function"==typeof t||(t=o.stringify);var e,n=this,r=n.protocol;r&&":"!==r.charAt(r.length-1)&&(r+=":");var i=r+(n.slashes?"//":"");return n.username&&(i+=n.username,n.password&&(i+=":"+n.password),i+="@"),i+=n.host+n.pathname,(e="object"==typeof n.query?t(n.query):n.query)&&(i+="?"!==e.charAt(0)?"?"+e:e),n.hash&&(i+=n.hash),i}},p.extractProtocol=h,p.location=f,p.trimLeft=c,p.qs=o,t.exports=p}).call(this,n(1))},function(t,e,n){"use strict";function r(){this._listeners={}}r.prototype.addEventListener=function(t,e){t in this._listeners||(this._listeners[t]=[]);var n=this._listeners[t];-1===n.indexOf(e)&&(n=n.concat([e])),this._listeners[t]=n},r.prototype.removeEventListener=function(t,e){var n=this._listeners[t];if(n){var r=n.indexOf(e);-1===r||(n.length>1?this._listeners[t]=n.slice(0,r).concat(n.slice(r+1)):delete this._listeners[t])}},r.prototype.dispatchEvent=function(){var t=arguments[0],e=t.type,n=1===arguments.length?[t]:Array.apply(null,arguments);if(this["on"+e]&&this["on"+e].apply(this,n),e in this._listeners)for(var r=this._listeners[e],o=0;o<r.length;o++)r[o].apply(this,n)},t.exports=r},function(t,e,n){"use strict";var r=n(0),o=n(3),i=n(40),s=n(41);function a(t,e,n,r,a){var c=o.addPath(t,e),u=this;i.call(this,t,n),this.poll=new s(r,c,a),this.poll.on("message",(function(t){u.emit("message",t)})),this.poll.once("close",(function(t,e){u.poll=null,u.emit("close",t,e),u.close()}))}r(a,i),a.prototype.close=function(){i.prototype.close.call(this),this.removeAllListeners(),this.poll&&(this.poll.abort(),this.poll=null)},t.exports=a},function(t,e,n){"use strict";(function(e){var r=n(2).EventEmitter,o=n(0),i=n(5),s=n(3),a=e.XMLHttpRequest;function c(t,e,n,o){var i=this;r.call(this),setTimeout((function(){i._start(t,e,n,o)}),0)}o(c,r),c.prototype._start=function(t,e,n,r){var o=this;try{this.xhr=new a}catch(t){}if(!this.xhr)return this.emit("finish",0,"no xhr support"),void this._cleanup();e=s.addQuery(e,"t="+ +new Date),this.unloadRef=i.unloadAdd((function(){o._cleanup(!0)}));try{this.xhr.open(t,e,!0),this.timeout&&"timeout"in this.xhr&&(this.xhr.timeout=this.timeout,this.xhr.ontimeout=function(){o.emit("finish",0,""),o._cleanup(!1)})}catch(t){return this.emit("finish",0,""),void this._cleanup(!1)}if(r&&r.noCredentials||!c.supportsCORS||(this.xhr.withCredentials=!0),r&&r.headers)for(var u in r.headers)this.xhr.setRequestHeader(u,r.headers[u]);this.xhr.onreadystatechange=function(){if(o.xhr){var t,e,n=o.xhr;switch(n.readyState,n.readyState){case 3:try{e=n.status,t=n.responseText}catch(t){}1223===e&&(e=204),200===e&&t&&t.length>0&&o.emit("chunk",e,t);break;case 4:1223===(e=n.status)&&(e=204),12005!==e&&12029!==e||(e=0),n.responseText,o.emit("finish",e,n.responseText),o._cleanup(!1)}}};try{o.xhr.send(n)}catch(t){o.emit("finish",0,""),o._cleanup(!1)}},c.prototype._cleanup=function(t){if(this.xhr){if(this.removeAllListeners(),i.unloadDel(this.unloadRef),this.xhr.onreadystatechange=function(){},this.xhr.ontimeout&&(this.xhr.ontimeout=null),t)try{this.xhr.abort()}catch(t){}this.unloadRef=this.xhr=null}},c.prototype.close=function(){this._cleanup(!0)},c.enabled=!!a;var u=["Active"].concat("Object").join("X");!c.enabled&&u in e&&(a=function(){try{return new e[u]("Microsoft.XMLHTTP")}catch(t){return null}},c.enabled=!!new a);var l=!1;try{l="withCredentials"in new a}catch(t){}c.supportsCORS=l,t.exports=c}).call(this,n(1))},function(t,e,n){"use strict";var r=n(0),o=n(7),i=n(11),s=n(13);function a(t){if(!s.enabled)throw new Error("Transport created when disabled");o.call(this,t,"/xhr_streaming",i,s)}r(a,o),a.enabled=function(t){return!t.cookie_needed&&!t.nullOrigin&&(s.enabled&&t.sameScheme)},a.transportName="xdr-streaming",a.roundTrips=2,t.exports=a},function(t,e,n){"use strict";var r=n(0),o=n(7),i=n(42),s=n(12),a=n(23);function c(t){if(!c.enabled())throw new Error("Transport created when disabled");o.call(this,t,"/eventsource",i,s)}r(c,o),c.enabled=function(){return!!a},c.transportName="eventsource",c.roundTrips=2,t.exports=c},function(t,e,n){(function(e){t.exports=e.EventSource}).call(this,n(1))},function(t,e,n){"use strict";var r=n(0),o=n(4),i=n(2).EventEmitter,s=n(25),a=n(3),c=n(10),u=n(5),l=n(6);function f(t,e,n){if(!f.enabled())throw new Error("Transport created when disabled");i.call(this);var r=this;this.origin=a.getOrigin(n),this.baseUrl=n,this.transUrl=e,this.transport=t,this.windowId=l.string(8);var o=a.addPath(n,"/iframe.html")+"#"+this.windowId;this.iframeObj=c.createIframe(o,(function(t){r.emit("close",1006,"Unable to load an iframe ("+t+")"),r.close()})),this.onmessageCallback=this._message.bind(this),u.attachEvent("message",this.onmessageCallback)}r(f,i),f.prototype.close=function(){if(this.removeAllListeners(),this.iframeObj){u.detachEvent("message",this.onmessageCallback);try{this.postMessage("c")}catch(t){}this.iframeObj.cleanup(),this.iframeObj=null,this.onmessageCallback=this.iframeObj=null}},f.prototype._message=function(t){if(t.data,!a.isOriginEqual(t.origin,this.origin))return t.origin,void this.origin;var e;try{e=o.parse(t.data)}catch(e){return void t.data}if(e.windowId!==this.windowId)return e.windowId,void this.windowId;switch(e.type){case"s":this.iframeObj.loaded(),this.postMessage("s",o.stringify([s,this.transport,this.transUrl,this.baseUrl]));break;case"t":this.emit("message",e.data);break;case"c":var n;try{n=o.parse(e.data)}catch(t){return void e.data}this.emit("close",n[0],n[1]),this.close()}},f.prototype.postMessage=function(t,e){this.iframeObj.post(o.stringify({windowId:this.windowId,type:t,data:e||""}),this.origin)},f.prototype.send=function(t){this.postMessage("m",t)},f.enabled=function(){return c.iframeEnabled},f.transportName="iframe",f.roundTrips=2,t.exports=f},function(t,e){t.exports="1.5.0"},function(t,e,n){"use strict";var r=n(0),o=n(45),i=n(8),s=n(7);function a(t){if(!o.enabled)throw new Error("Transport created when disabled");s.call(this,t,"/htmlfile",o,i)}r(a,s),a.enabled=function(t){return o.enabled&&t.sameOrigin},a.transportName="htmlfile",a.roundTrips=2,t.exports=a},function(t,e,n){"use strict";var r=n(0),o=n(7),i=n(11),s=n(12),a=n(8);function c(t){if(!a.enabled&&!s.enabled)throw new Error("Transport created when disabled");o.call(this,t,"/xhr",i,s)}r(c,o),c.enabled=function(t){return!t.nullOrigin&&(!(!a.enabled||!t.sameOrigin)||s.enabled)},c.transportName="xhr-polling",c.roundTrips=2,t.exports=c},function(t,e,n){"use strict";(function(e){t.exports=e.location||{origin:"http://localhost:80",protocol:"http:",host:"localhost",port:80,href:"http://localhost/",hash:""}}).call(this,n(1))},function(t,e,n){"use strict";var r=n(0),o=n(2).EventEmitter,i=n(4),s=n(8),a=n(30);function c(t){var e=this;o.call(this),this.ir=new a(t,s),this.ir.once("finish",(function(t,n){e.ir=null,e.emit("message",i.stringify([t,n]))}))}r(c,o),c.transportName="iframe-info-receiver",c.prototype.close=function(){this.ir&&(this.ir.close(),this.ir=null),this.removeAllListeners()},t.exports=c},function(t,e,n){"use strict";var r=n(2).EventEmitter,o=n(0),i=n(4),s=n(15);function a(t,e){r.call(this);var n=this,o=+new Date;this.xo=new e("GET",t),this.xo.once("finish",(function(t,e){var r,a;if(200===t){if(a=+new Date-o,e)try{r=i.parse(e)}catch(t){}s.isObject(r)||(r={})}n.emit("finish",r,a),n.removeAllListeners()}))}o(a,r),a.prototype.close=function(){this.removeAllListeners(),this.xo.close()},t.exports=a},function(t,e,n){"use strict";t.exports=n(32)},function(t,e,n){"use strict";(function(e){var r=n(33);t.exports=n(50)(r),"_sockjs_onload"in e&&setTimeout(e._sockjs_onload,1)}).call(this,n(1))},function(t,e,n){"use strict";t.exports=[n(34),n(39),n(21),n(22),n(14)(n(22)),n(26),n(14)(n(26)),n(27),n(46),n(14)(n(27)),n(47)]},function(t,e,n){"use strict";var r=n(5),o=n(3),i=n(0),s=n(2).EventEmitter,a=n(38);function c(t,e,n){if(!c.enabled())throw new Error("Transport created when disabled");s.call(this);var i=this,u=o.addPath(t,"/websocket");u="https"===u.slice(0,5)?"wss"+u.slice(5):"ws"+u.slice(4),this.url=u,this.ws=new a(this.url,[],n),this.ws.onmessage=function(t){t.data,i.emit("message",t.data)},this.unloadRef=r.unloadAdd((function(){i.ws.close()})),this.ws.onclose=function(t){t.code,t.reason,i.emit("close",t.code,t.reason),i._cleanup()},this.ws.onerror=function(t){i.emit("close",1006,"WebSocket connection broken"),i._cleanup()}}i(c,s),c.prototype.send=function(t){var e="["+t+"]";this.ws.send(e)},c.prototype.close=function(){var t=this.ws;this._cleanup(),t&&t.close()},c.prototype._cleanup=function(){var t=this.ws;t&&(t.onmessage=t.onclose=t.onerror=null),r.unloadDel(this.unloadRef),this.unloadRef=this.ws=null,this.removeAllListeners()},c.enabled=function(){return!!a},c.transportName="websocket",c.roundTrips=2,t.exports=c},function(t,e,n){"use strict";(function(e){e.crypto&&e.crypto.getRandomValues?t.exports.randomBytes=function(t){var n=new Uint8Array(t);return e.crypto.getRandomValues(n),n}:t.exports.randomBytes=function(t){for(var e=new Array(t),n=0;n<t;n++)e[n]=Math.floor(256*Math.random());return e}}).call(this,n(1))},function(t,e,n){"use strict";t.exports=function(t,e){if(e=e.split(":")[0],!(t=+t))return!1;switch(e){case"http":case"ws":return 80!==t;case"https":case"wss":return 443!==t;case"ftp":return 21!==t;case"gopher":return 70!==t;case"file":return!1}return 0!==t}},function(t,e,n){"use strict";var r=Object.prototype.hasOwnProperty;function o(t){try{return decodeURIComponent(t.replace(/\+/g," "))}catch(t){return null}}function i(t){try{return encodeURIComponent(t)}catch(t){return null}}e.stringify=function(t,e){e=e||"";var n,o,s=[];for(o in"string"!=typeof e&&(e="?"),t)if(r.call(t,o)){if((n=t[o])||null!=n&&!isNaN(n)||(n=""),o=i(o),n=i(n),null===o||null===n)continue;s.push(o+"="+n)}return s.length?e+s.join("&"):""},e.parse=function(t){for(var e,n=/([^=?#&]+)=?([^&]*)/g,r={};e=n.exec(t);){var i=o(e[1]),s=o(e[2]);null===i||null===s||i in r||(r[i]=s)}return r}},function(t,e,n){"use strict";(function(e){var n=e.WebSocket||e.MozWebSocket;t.exports=n?function(t){return new n(t)}:void 0}).call(this,n(1))},function(t,e,n){"use strict";(function(e){var r=n(0),o=n(7),i=n(11),s=n(12),a=n(8),c=n(9);function u(t){if(!a.enabled&&!s.enabled)throw new Error("Transport created when disabled");o.call(this,t,"/xhr_streaming",i,s)}r(u,o),u.enabled=function(t){return!t.nullOrigin&&(!c.isOpera()&&s.enabled)},u.transportName="xhr-streaming",u.roundTrips=2,u.needBody=!!e.document,t.exports=u}).call(this,n(1))},function(t,e,n){"use strict";var r=n(0),o=n(2).EventEmitter;function i(t,e){o.call(this),this.sendBuffer=[],this.sender=e,this.url=t}r(i,o),i.prototype.send=function(t){this.sendBuffer.push(t),this.sendStop||this.sendSchedule()},i.prototype.sendScheduleWait=function(){var t,e=this;this.sendStop=function(){e.sendStop=null,clearTimeout(t)},t=setTimeout((function(){e.sendStop=null,e.sendSchedule()}),25)},i.prototype.sendSchedule=function(){this.sendBuffer.length;var t=this;if(this.sendBuffer.length>0){var e="["+this.sendBuffer.join(",")+"]";this.sendStop=this.sender(this.url,e,(function(e){t.sendStop=null,e?(t.emit("close",e.code||1006,"Sending error: "+e),t.close()):t.sendScheduleWait()})),this.sendBuffer=[]}},i.prototype._cleanup=function(){this.removeAllListeners()},i.prototype.close=function(){this._cleanup(),this.sendStop&&(this.sendStop(),this.sendStop=null)},t.exports=i},function(t,e,n){"use strict";var r=n(0),o=n(2).EventEmitter;function i(t,e,n){o.call(this),this.Receiver=t,this.receiveUrl=e,this.AjaxObject=n,this._scheduleReceiver()}r(i,o),i.prototype._scheduleReceiver=function(){var t=this,e=this.poll=new this.Receiver(this.receiveUrl,this.AjaxObject);e.on("message",(function(e){t.emit("message",e)})),e.once("close",(function(n,r){t.pollIsClosing,t.poll=e=null,t.pollIsClosing||("network"===r?t._scheduleReceiver():(t.emit("close",n||1006,r),t.removeAllListeners()))}))},i.prototype.abort=function(){this.removeAllListeners(),this.pollIsClosing=!0,this.poll&&this.poll.abort()},t.exports=i},function(t,e,n){"use strict";var r=n(0),o=n(2).EventEmitter,i=n(23);function s(t){o.call(this);var e=this,n=this.es=new i(t);n.onmessage=function(t){t.data,e.emit("message",decodeURI(t.data))},n.onerror=function(t){n.readyState;var r=2!==n.readyState?"network":"permanent";e._cleanup(),e._close(r)}}r(s,o),s.prototype.abort=function(){this._cleanup(),this._close("user")},s.prototype._cleanup=function(){var t=this.es;t&&(t.onmessage=t.onerror=null,t.close(),this.es=null)},s.prototype._close=function(t){var e=this;setTimeout((function(){e.emit("close",null,t),e.removeAllListeners()}),200)},t.exports=s},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e){(function(e){t.exports=e}).call(this,{})},function(t,e,n){"use strict";(function(e){var r=n(0),o=n(10),i=n(3),s=n(2).EventEmitter,a=n(6);function c(t){s.call(this);var n=this;o.polluteGlobalNamespace(),this.id="a"+a.string(6),t=i.addQuery(t,"c="+decodeURIComponent(o.WPrefix+"."+this.id)),c.htmlfileEnabled;var r=c.htmlfileEnabled?o.createHtmlfile:o.createIframe;e[o.WPrefix][this.id]={start:function(){n.iframeObj.loaded()},message:function(t){n.emit("message",t)},stop:function(){n._cleanup(),n._close("network")}},this.iframeObj=r(t,(function(){n._cleanup(),n._close("permanent")}))}r(c,s),c.prototype.abort=function(){this._cleanup(),this._close("user")},c.prototype._cleanup=function(){this.iframeObj&&(this.iframeObj.cleanup(),this.iframeObj=null),delete e[o.WPrefix][this.id]},c.prototype._close=function(t){this.emit("close",null,t),this.removeAllListeners()},c.htmlfileEnabled=!1;var u=["Active"].concat("Object").join("X");if(u in e)try{c.htmlfileEnabled=!!new e[u]("htmlfile")}catch(t){}c.enabled=c.htmlfileEnabled||o.iframeEnabled,t.exports=c}).call(this,n(1))},function(t,e,n){"use strict";var r=n(0),o=n(7),i=n(21),s=n(11),a=n(13);function c(t){if(!a.enabled)throw new Error("Transport created when disabled");o.call(this,t,"/xhr",s,a)}r(c,o),c.enabled=i.enabled,c.transportName="xdr-polling",c.roundTrips=2,t.exports=c},function(t,e,n){"use strict";(function(e){var r=n(0),o=n(19),i=n(48),s=n(49);function a(t){if(!a.enabled())throw new Error("Transport created when disabled");o.call(this,t,"/jsonp",s,i)}r(a,o),a.enabled=function(){return!!e.document},a.transportName="jsonp-polling",a.roundTrips=1,a.needBody=!0,t.exports=a}).call(this,n(1))},function(t,e,n){"use strict";(function(e){var r=n(10),o=n(6),i=n(9),s=n(3),a=n(0),c=n(2).EventEmitter;function u(t){var n=this;c.call(this),r.polluteGlobalNamespace(),this.id="a"+o.string(6);var i=s.addQuery(t,"c="+encodeURIComponent(r.WPrefix+"."+this.id));e[r.WPrefix][this.id]=this._callback.bind(this),this._createScript(i),this.timeoutId=setTimeout((function(){n._abort(new Error("JSONP script loaded abnormally (timeout)"))}),u.timeout)}a(u,c),u.prototype.abort=function(){if(e[r.WPrefix][this.id]){var t=new Error("JSONP user aborted read");t.code=1e3,this._abort(t)}},u.timeout=35e3,u.scriptErrorTimeout=1e3,u.prototype._callback=function(t){this._cleanup(),this.aborting||(t&&this.emit("message",t),this.emit("close",null,"network"),this.removeAllListeners())},u.prototype._abort=function(t){this._cleanup(),this.aborting=!0,this.emit("close",t.code,t.message),this.removeAllListeners()},u.prototype._cleanup=function(){if(clearTimeout(this.timeoutId),this.script2&&(this.script2.parentNode.removeChild(this.script2),this.script2=null),this.script){var t=this.script;t.parentNode.removeChild(t),t.onreadystatechange=t.onerror=t.onload=t.onclick=null,this.script=null}delete e[r.WPrefix][this.id]},u.prototype._scriptError=function(){var t=this;this.errorTimer||(this.errorTimer=setTimeout((function(){t.loadedOkay||t._abort(new Error("JSONP script loaded abnormally (onerror)"))}),u.scriptErrorTimeout))},u.prototype._createScript=function(t){var n,r=this,s=this.script=e.document.createElement("script");if(s.id="a"+o.string(8),s.src=t,s.type="text/javascript",s.charset="UTF-8",s.onerror=this._scriptError.bind(this),s.onload=function(){r._abort(new Error("JSONP script loaded abnormally (onload)"))},s.onreadystatechange=function(){if(s.readyState,/loaded|closed/.test(s.readyState)){if(s&&s.htmlFor&&s.onclick){r.loadedOkay=!0;try{s.onclick()}catch(t){}}s&&r._abort(new Error("JSONP script loaded abnormally (onreadystatechange)"))}},void 0===s.async&&e.document.attachEvent)if(i.isOpera())(n=this.script2=e.document.createElement("script")).text="try{var a = document.getElementById('"+s.id+"'); if(a)a.onerror();}catch(x){};",s.async=n.async=!1;else{try{s.htmlFor=s.id,s.event="onclick"}catch(t){}s.async=!0}void 0!==s.async&&(s.async=!0);var a=e.document.getElementsByTagName("head")[0];a.insertBefore(s,a.firstChild),n&&a.insertBefore(n,a.firstChild)},t.exports=u}).call(this,n(1))},function(t,e,n){"use strict";(function(e){var r,o,i=n(6),s=n(3);t.exports=function(t,n,a){r||((r=e.document.createElement("form")).style.display="none",r.style.position="absolute",r.method="POST",r.enctype="application/x-www-form-urlencoded",r.acceptCharset="UTF-8",(o=e.document.createElement("textarea")).name="d",r.appendChild(o),e.document.body.appendChild(r));var c="a"+i.string(8);r.target=c,r.action=s.addQuery(s.addPath(t,"/jsonp_send"),"i="+c);var u=function(t){try{return e.document.createElement('<iframe name="'+t+'">')}catch(r){var n=e.document.createElement("iframe");return n.name=t,n}}(c);u.id=c,u.style.display="none",r.appendChild(u);try{o.value=n}catch(t){}r.submit();var l=function(t){u.onerror&&(u.onreadystatechange=u.onerror=u.onload=null,setTimeout((function(){u.parentNode.removeChild(u),u=null}),500),o.value="",a(t))};return u.onerror=function(){l()},u.onload=function(){l()},u.onreadystatechange=function(t){u.readyState,"complete"===u.readyState&&l()},function(){l(new Error("Aborted"))}}}).call(this,n(1))},function(t,e,n){"use strict";(function(e){n(51);var r,o=n(17),i=n(0),s=n(4),a=n(6),c=n(52),u=n(3),l=n(5),f=n(53),h=n(15),p=n(9),d=n(54),m=n(16),v=n(18),y=n(28),b=n(55),g=n(56),w=n(57);function x(t,e,n){if(!(this instanceof x))return new x(t,e,n);if(arguments.length<1)throw new TypeError("Failed to construct 'SockJS: 1 argument required, but only 0 present");v.call(this),this.readyState=x.CONNECTING,this.extensions="",this.protocol="",(n=n||{}).protocols_whitelist&&d.warn("'protocols_whitelist' is DEPRECATED. Use 'transports' instead."),this._transportsWhitelist=n.transports,this._transportOptions=n.transportOptions||{},this._timeout=n.timeout||0;var r=n.sessionId||8;if("function"==typeof r)this._generateSessionId=r;else{if("number"!=typeof r)throw new TypeError("If sessionId is used in the options, it needs to be a number or a function.");this._generateSessionId=function(){return a.string(r)}}this._server=n.server||a.numberString(1e3);var i=new o(t);if(!i.host||!i.protocol)throw new SyntaxError("The URL '"+t+"' is invalid");if(i.hash)throw new SyntaxError("The URL must not contain a fragment");if("http:"!==i.protocol&&"https:"!==i.protocol)throw new SyntaxError("The URL's scheme must be either 'http:' or 'https:'. '"+i.protocol+"' is not allowed.");var s="https:"===i.protocol;if("https:"===y.protocol&&!s&&!u.isLoopbackAddr(i.hostname))throw new Error("SecurityError: An insecure SockJS connection may not be initiated from a page loaded over HTTPS");e?Array.isArray(e)||(e=[e]):e=[];var c=e.sort();c.forEach((function(t,e){if(!t)throw new SyntaxError("The protocols entry '"+t+"' is invalid.");if(e<c.length-1&&t===c[e+1])throw new SyntaxError("The protocols entry '"+t+"' is duplicated.")}));var l=u.getOrigin(y.href);this._origin=l?l.toLowerCase():null,i.set("pathname",i.pathname.replace(/\/+$/,"")),this.url=i.href,this.url,this._urlInfo={nullOrigin:!p.hasDomain(),sameOrigin:u.isOriginEqual(this.url,y.href),sameScheme:u.isSchemeEqual(this.url,y.href)},this._ir=new w(this.url,this._urlInfo),this._ir.once("finish",this._receiveInfo.bind(this))}function _(t){return 1e3===t||t>=3e3&&t<=4999}i(x,v),x.prototype.close=function(t,e){if(t&&!_(t))throw new Error("InvalidAccessError: Invalid code");if(e&&e.length>123)throw new SyntaxError("reason argument has an invalid length");if(this.readyState!==x.CLOSING&&this.readyState!==x.CLOSED){this._close(t||1e3,e||"Normal closure",!0)}},x.prototype.send=function(t){if("string"!=typeof t&&(t=""+t),this.readyState===x.CONNECTING)throw new Error("InvalidStateError: The connection has not been established yet");this.readyState===x.OPEN&&this._transport.send(c.quote(t))},x.version=n(25),x.CONNECTING=0,x.OPEN=1,x.CLOSING=2,x.CLOSED=3,x.prototype._receiveInfo=function(t,e){if(this._ir=null,t){this._rto=this.countRTO(e),this._transUrl=t.base_url?t.base_url:this.url,t=h.extend(t,this._urlInfo);var n=r.filterToEnabled(this._transportsWhitelist,t);this._transports=n.main,this._transports.length,this._connect()}else this._close(1002,"Cannot connect to server")},x.prototype._connect=function(){for(var t=this._transports.shift();t;t=this._transports.shift()){if(t.transportName,t.needBody&&(!e.document.body||void 0!==e.document.readyState&&"complete"!==e.document.readyState&&"interactive"!==e.document.readyState))return this._transports.unshift(t),void l.attachEvent("load",this._connect.bind(this));var n=Math.max(this._timeout,this._rto*t.roundTrips||5e3);this._transportTimeoutId=setTimeout(this._transportTimeout.bind(this),n);var r=u.addPath(this._transUrl,"/"+this._server+"/"+this._generateSessionId()),o=this._transportOptions[t.transportName],i=new t(r,this._transUrl,o);return i.on("message",this._transportMessage.bind(this)),i.once("close",this._transportClose.bind(this)),i.transportName=t.transportName,void(this._transport=i)}this._close(2e3,"All transports failed",!1)},x.prototype._transportTimeout=function(){this.readyState===x.CONNECTING&&(this._transport&&this._transport.close(),this._transportClose(2007,"Transport timed out"))},x.prototype._transportMessage=function(t){var e,n=this,r=t.slice(0,1),o=t.slice(1);switch(r){case"o":return void this._open();case"h":return this.dispatchEvent(new m("heartbeat")),void this.transport}if(o)try{e=s.parse(o)}catch(t){}if(void 0!==e)switch(r){case"a":Array.isArray(e)&&e.forEach((function(t){n.transport,n.dispatchEvent(new g(t))}));break;case"m":this.transport,this.dispatchEvent(new g(e));break;case"c":Array.isArray(e)&&2===e.length&&this._close(e[0],e[1],!0)}},x.prototype._transportClose=function(t,e){this.transport,this._transport&&(this._transport.removeAllListeners(),this._transport=null,this.transport=null),_(t)||2e3===t||this.readyState!==x.CONNECTING?this._close(t,e):this._connect()},x.prototype._open=function(){this._transport&&this._transport.transportName,this.readyState,this.readyState===x.CONNECTING?(this._transportTimeoutId&&(clearTimeout(this._transportTimeoutId),this._transportTimeoutId=null),this.readyState=x.OPEN,this.transport=this._transport.transportName,this.dispatchEvent(new m("open")),this.transport):this._close(1006,"Server lost session")},x.prototype._close=function(t,e,n){this.transport,this.readyState;var r=!1;if(this._ir&&(r=!0,this._ir.close(),this._ir=null),this._transport&&(this._transport.close(),this._transport=null,this.transport=null),this.readyState===x.CLOSED)throw new Error("InvalidStateError: SockJS has already been closed");this.readyState=x.CLOSING,setTimeout(function(){this.readyState=x.CLOSED,r&&this.dispatchEvent(new m("error"));var o=new b("close");o.wasClean=n||!1,o.code=t||1e3,o.reason=e,this.dispatchEvent(o),this.onmessage=this.onclose=this.onerror=null}.bind(this),0)},x.prototype.countRTO=function(t){return t>100?4*t:300+t},t.exports=function(t){return r=f(t),n(60)(x,t),x}}).call(this,n(1))},function(t,e,n){"use strict";var r,o=Array.prototype,i=Object.prototype,s=Function.prototype,a=String.prototype,c=o.slice,u=i.toString,l=function(t){return"[object Function]"===i.toString.call(t)},f=function(t){return"[object String]"===u.call(t)},h=Object.defineProperty&&function(){try{return Object.defineProperty({},"x",{}),!0}catch(t){return!1}}();r=h?function(t,e,n,r){!r&&e in t||Object.defineProperty(t,e,{configurable:!0,enumerable:!1,writable:!0,value:n})}:function(t,e,n,r){!r&&e in t||(t[e]=n)};var p=function(t,e,n){for(var o in e)i.hasOwnProperty.call(e,o)&&r(t,o,e[o],n)},d=function(t){if(null==t)throw new TypeError("can't convert "+t+" to object");return Object(t)};function m(t){var e=+t;return e!=e?e=0:0!==e&&e!==1/0&&e!==-1/0&&(e=(e>0||-1)*Math.floor(Math.abs(e))),e}function v(){}p(s,{bind:function(t){var e=this;if(!l(e))throw new TypeError("Function.prototype.bind called on incompatible "+e);for(var n=c.call(arguments,1),r=function(){if(this instanceof a){var r=e.apply(this,n.concat(c.call(arguments)));return Object(r)===r?r:this}return e.apply(t,n.concat(c.call(arguments)))},o=Math.max(0,e.length-n.length),i=[],s=0;s<o;s++)i.push("$"+s);var a=Function("binder","return function ("+i.join(",")+"){ return binder.apply(this, arguments); }")(r);return e.prototype&&(v.prototype=e.prototype,a.prototype=new v,v.prototype=null),a}}),p(Array,{isArray:function(t){return"[object Array]"===u.call(t)}});var y,b,g,w=Object("a"),x="a"!==w[0]||!(0 in w);p(o,{forEach:function(t){var e=d(this),n=x&&f(this)?this.split(""):e,r=arguments[1],o=-1,i=n.length>>>0;if(!l(t))throw new TypeError;for(;++o<i;)o in n&&t.call(r,n[o],o,e)}},(y=o.forEach,b=!0,g=!0,y&&(y.call("foo",(function(t,e,n){"object"!=typeof n&&(b=!1)})),y.call([1],(function(){g="string"==typeof this}),"x")),!(y&&b&&g)));var _=Array.prototype.indexOf&&-1!==[0,1].indexOf(1,2);p(o,{indexOf:function(t){var e=x&&f(this)?this.split(""):d(this),n=e.length>>>0;if(!n)return-1;var r=0;for(arguments.length>1&&(r=m(arguments[1])),r=r>=0?r:Math.max(0,n+r);r<n;r++)if(r in e&&e[r]===t)return r;return-1}},_);var E,S=a.split;2!=="ab".split(/(?:ab)*/).length||4!==".".split(/(.?)(.?)/).length||"t"==="tesst".split(/(s)*/)[1]||4!=="test".split(/(?:)/,-1).length||"".split(/.?/).length||".".split(/()()/).length>1?(E=void 0===/()??/.exec("")[1],a.split=function(t,e){var n=this;if(void 0===t&&0===e)return[];if("[object RegExp]"!==u.call(t))return S.call(this,t,e);var r,i,s,a,c=[],l=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.extended?"x":"")+(t.sticky?"y":""),f=0;for(t=new RegExp(t.source,l+"g"),n+="",E||(r=new RegExp("^"+t.source+"$(?!\\s)",l)),e=void 0===e?-1>>>0:e>>>0;(i=t.exec(n))&&!((s=i.index+i[0].length)>f&&(c.push(n.slice(f,i.index)),!E&&i.length>1&&i[0].replace(r,(function(){for(var t=1;t<arguments.length-2;t++)void 0===arguments[t]&&(i[t]=void 0)})),i.length>1&&i.index<n.length&&o.push.apply(c,i.slice(1)),a=i[0].length,f=s,c.length>=e));)t.lastIndex===i.index&&t.lastIndex++;return f===n.length?!a&&t.test("")||c.push(""):c.push(n.slice(f)),c.length>e?c.slice(0,e):c}):"0".split(void 0,0).length&&(a.split=function(t,e){return void 0===t&&0===e?[]:S.call(this,t,e)});var O=a.substr,T="".substr&&"b"!=="0b".substr(-1);p(a,{substr:function(t,e){return O.call(this,t<0&&(t=this.length+t)<0?0:t,e)}},T)},function(t,e,n){"use strict";var r,o=n(4),i=/[\x00-\x1f\ud800-\udfff\ufffe\uffff\u0300-\u0333\u033d-\u0346\u034a-\u034c\u0350-\u0352\u0357-\u0358\u035c-\u0362\u0374\u037e\u0387\u0591-\u05af\u05c4\u0610-\u0617\u0653-\u0654\u0657-\u065b\u065d-\u065e\u06df-\u06e2\u06eb-\u06ec\u0730\u0732-\u0733\u0735-\u0736\u073a\u073d\u073f-\u0741\u0743\u0745\u0747\u07eb-\u07f1\u0951\u0958-\u095f\u09dc-\u09dd\u09df\u0a33\u0a36\u0a59-\u0a5b\u0a5e\u0b5c-\u0b5d\u0e38-\u0e39\u0f43\u0f4d\u0f52\u0f57\u0f5c\u0f69\u0f72-\u0f76\u0f78\u0f80-\u0f83\u0f93\u0f9d\u0fa2\u0fa7\u0fac\u0fb9\u1939-\u193a\u1a17\u1b6b\u1cda-\u1cdb\u1dc0-\u1dcf\u1dfc\u1dfe\u1f71\u1f73\u1f75\u1f77\u1f79\u1f7b\u1f7d\u1fbb\u1fbe\u1fc9\u1fcb\u1fd3\u1fdb\u1fe3\u1feb\u1fee-\u1fef\u1ff9\u1ffb\u1ffd\u2000-\u2001\u20d0-\u20d1\u20d4-\u20d7\u20e7-\u20e9\u2126\u212a-\u212b\u2329-\u232a\u2adc\u302b-\u302c\uaab2-\uaab3\uf900-\ufa0d\ufa10\ufa12\ufa15-\ufa1e\ufa20\ufa22\ufa25-\ufa26\ufa2a-\ufa2d\ufa30-\ufa6d\ufa70-\ufad9\ufb1d\ufb1f\ufb2a-\ufb36\ufb38-\ufb3c\ufb3e\ufb40-\ufb41\ufb43-\ufb44\ufb46-\ufb4e\ufff0-\uffff]/g;t.exports={quote:function(t){var e=o.stringify(t);return i.lastIndex=0,i.test(e)?(r||(r=function(t){var e,n={},r=[];for(e=0;e<65536;e++)r.push(String.fromCharCode(e));return t.lastIndex=0,r.join("").replace(t,(function(t){return n[t]="\\u"+("0000"+t.charCodeAt(0).toString(16)).slice(-4),""})),t.lastIndex=0,n}(i)),e.replace(i,(function(t){return r[t]}))):e}}},function(t,e,n){"use strict";t.exports=function(t){return{filterToEnabled:function(e,n){var r={main:[],facade:[]};return e?"string"==typeof e&&(e=[e]):e=[],t.forEach((function(t){t&&("websocket"===t.transportName&&!1===n.websocket||(e.length&&-1===e.indexOf(t.transportName)?t.transportName:t.enabled(n)?(t.transportName,r.main.push(t),t.facadeTransport&&r.facade.push(t.facadeTransport)):t.transportName))})),r}}}},function(t,e,n){"use strict";(function(e){var n={};["log","debug","warn"].forEach((function(t){var r;try{r=e.console&&e.console[t]&&e.console[t].apply}catch(t){}n[t]=r?function(){return e.console[t].apply(e.console,arguments)}:"log"===t?function(){}:n.log})),t.exports=n}).call(this,n(1))},function(t,e,n){"use strict";var r=n(0),o=n(16);function i(){o.call(this),this.initEvent("close",!1,!1),this.wasClean=!1,this.code=0,this.reason=""}r(i,o),t.exports=i},function(t,e,n){"use strict";var r=n(0),o=n(16);function i(t){o.call(this),this.initEvent("message",!1,!1),this.data=t}r(i,o),t.exports=i},function(t,e,n){"use strict";var r=n(2).EventEmitter,o=n(0),i=n(3),s=n(13),a=n(12),c=n(8),u=n(58),l=n(59),f=n(30);function h(t,e){var n=this;r.call(this),setTimeout((function(){n.doXhr(t,e)}),0)}o(h,r),h._getReceiver=function(t,e,n){return n.sameOrigin?new f(e,c):a.enabled?new f(e,a):s.enabled&&n.sameScheme?new f(e,s):l.enabled()?new l(t,e):new f(e,u)},h.prototype.doXhr=function(t,e){var n=this,r=i.addPath(t,"/info");this.xo=h._getReceiver(t,r,e),this.timeoutRef=setTimeout((function(){n._cleanup(!1),n.emit("finish")}),h.timeout),this.xo.once("finish",(function(t,e){n._cleanup(!0),n.emit("finish",t,e)}))},h.prototype._cleanup=function(t){clearTimeout(this.timeoutRef),this.timeoutRef=null,!t&&this.xo&&this.xo.close(),this.xo=null},h.prototype.close=function(){this.removeAllListeners(),this._cleanup(!1)},h.timeout=8e3,t.exports=h},function(t,e,n){"use strict";var r=n(2).EventEmitter;function o(){var t=this;r.call(this),this.to=setTimeout((function(){t.emit("finish",200,"{}")}),o.timeout)}n(0)(o,r),o.prototype.close=function(){clearTimeout(this.to)},o.timeout=2e3,t.exports=o},function(t,e,n){"use strict";(function(e){var r=n(2).EventEmitter,o=n(0),i=n(4),s=n(5),a=n(24),c=n(29);function u(t,n){var o=this;r.call(this);var u=function(){var e=o.ifr=new a(c.transportName,n,t);e.once("message",(function(t){if(t){var e;try{e=i.parse(t)}catch(t){return o.emit("finish"),void o.close()}var n=e[0],r=e[1];o.emit("finish",n,r)}o.close()})),e.once("close",(function(){o.emit("finish"),o.close()}))};e.document.body?u():s.attachEvent("load",u)}o(u,r),u.enabled=function(){return a.enabled()},u.prototype.close=function(){this.ifr&&this.ifr.close(),this.removeAllListeners(),this.ifr=null},t.exports=u}).call(this,n(1))},function(t,e,n){"use strict";var r=n(3),o=n(5),i=n(4),s=n(61),a=n(29),c=n(10),u=n(28);t.exports=function(t,e){var n,l={};e.forEach((function(t){t.facadeTransport&&(l[t.facadeTransport.transportName]=t.facadeTransport)})),l[a.transportName]=a,t.bootstrap_iframe=function(){var e;c.currentWindowId=u.hash.slice(1);o.attachEvent("message",(function(o){if(o.source===parent&&(void 0===n&&(n=o.origin),o.origin===n)){var a;try{a=i.parse(o.data)}catch(t){return void o.data}if(a.windowId===c.currentWindowId)switch(a.type){case"s":var f;try{f=i.parse(a.data)}catch(t){a.data;break}var h=f[0],p=f[1],d=f[2],m=f[3];if(h!==t.version)throw new Error('Incompatible SockJS! Main site uses: "'+h+'", the iframe: "'+t.version+'".');if(!r.isOriginEqual(d,u.href)||!r.isOriginEqual(m,u.href))throw new Error("Can't connect to different domain from within an iframe. ("+u.href+", "+d+", "+m+")");e=new s(new l[p](d,m));break;case"m":e._send(a.data);break;case"c":e&&e._close(),e=null}}})),c.postMessage("s")}}},function(t,e,n){"use strict";var r=n(4),o=n(10);function i(t){this._transport=t,t.on("message",this._transportMessage.bind(this)),t.on("close",this._transportClose.bind(this))}i.prototype._transportClose=function(t,e){o.postMessage("c",r.stringify([t,e]))},i.prototype._transportMessage=function(t){o.postMessage("t",t)},i.prototype._send=function(t){this._transport.send(t)},i.prototype._close=function(){this._transport.close(),this._transport.removeAllListeners()},t.exports=i}])}));
\No newline at end of file