webpack-dev-server 1.14.0 → 1.14.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/client/index.bundle.js +1 -1
- package/client/index.js +4 -1
- package/client/live.bundle.js +1 -1
- package/client/style.css +1 -0
- package/lib/Server.js +20 -9
- package/package.json +1 -1
package/client/index.bundle.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
!function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return t[r].call(o.exports,o,o.exports,e),o.loaded=!0,o.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)}([function(t,e,n){function r(){l?(console.log("[WDS] App hot update..."),window.postMessage("webpackHotUpdate"+f,"*")):(console.log("[WDS] App updated. Reloading..."),window.location.reload())}var o=n(38),i=n(39),s=n(70),a=document.getElementsByTagName("script"),c=o.parse(a[a.length-1].getAttribute("src").replace(/\/[^\/]+$/,"")),u=null,l=!1,h=!0,f="",p={hot:function(){l=!0,console.log("[WDS] Hot Module Replacement enabled.")},invalid:function(){console.log("[WDS] App updated. Recompiling...")},hash:function(t){f=t},"still-ok":function(){console.log("[WDS] Nothing changed.")},ok:function(){return h?h=!1:void r()},warnings:function(t){console.log("[WDS] Warnings while compiling.");for(var e=0;e<t.length;e++)console.warn(s(t[e]));return h?h=!1:void r()},errors:function(t){console.log("[WDS] Errors while compiling.");for(var e=0;e<t.length;e++)console.error(s(t[e]));return h?h=!1:void r()},"proxy-error":function(t){console.log("[WDS] Proxy error.");for(var e=0;e<t.length;e++)console.error(s(t[e]));return h?h=!1:void r()}},d=function(){u=new i(o.format({protocol:c.protocol,auth:c.auth,hostname:"0.0.0.0"===c.hostname?window.location.hostname:c.hostname,port:c.port,pathname:"/"===c.path?"/sockjs-node":c.path})),u.onclose=function(){console.error("[WDS] Disconnected!"),u=null,setTimeout(function(){d()},2e3)},u.onmessage=function(t){var e=JSON.parse(t.data);p[e.type](e.data)}};d()},function(t,e){"function"==typeof Object.create?t.exports=function(t,e){t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:t.exports=function(t,e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}},function(t,e){function n(){u=!1,s.length?c=s.concat(c):l=-1,c.length&&r()}function r(){if(!u){var t=setTimeout(n);u=!0;for(var e=c.length;e;){for(s=c,c=[];++l<e;)s[l].run();l=-1,e=c.length}s=null,u=!1,clearTimeout(t)}}function o(t,e){this.fun=t,this.array=e}function i(){}var s,a=t.exports={},c=[],u=!1,l=-1;a.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];c.push(new o(t,e)),1!==c.length||u||setTimeout(r,0)},o.prototype.run=function(){this.fun.apply(null,this.array)},a.title="browser",a.browser=!0,a.env={},a.argv=[],a.version="",a.versions={},a.on=i,a.addListener=i,a.once=i,a.off=i,a.removeListener=i,a.removeAllListeners=i,a.emit=i,a.binding=function(t){throw new Error("process.binding is not supported")},a.cwd=function(){return"/"},a.chdir=function(t){throw new Error("process.chdir is not supported")},a.umask=function(){return 0}},function(t,e,n){function r(){return"WebkitAppearance"in document.documentElement.style||window.console&&(console.firebug||console.exception&&console.table)||navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31}function o(){var t=arguments,n=this.useColors;if(t[0]=(n?"%c":"")+this.namespace+(n?" %c":" ")+t[0]+(n?"%c ":" ")+"+"+e.humanize(this.diff),!n)return t;var r="color: "+this.color;t=[t[0],r,"color: inherit"].concat(Array.prototype.slice.call(t,1));var o=0,i=0;return t[0].replace(/%[a-z%]/g,function(t){"%%"!==t&&(o++,"%c"===t&&(i=o))}),t.splice(i,0,r),t}function i(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function s(t){try{null==t?e.storage.removeItem("debug"):e.storage.debug=t}catch(n){}}function a(){var t;try{t=e.storage.debug}catch(n){}return t}function c(){try{return window.localStorage}catch(t){}}e=t.exports=n(65),e.log=i,e.formatArgs=o,e.save=s,e.load=a,e.useColors=r,e.storage="undefined"!=typeof chrome&&"undefined"!=typeof chrome.storage?chrome.storage.local:c(),e.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],e.formatters.j=function(t){return JSON.stringify(t)},e.enable(a())},function(t,e,n){"use strict";function r(){i.call(this)}var o=n(1),i=n(20);o(r,i),r.prototype.removeAllListeners=function(t){t?delete this._listeners[t]:this._listeners={}},r.prototype.once=function(t,e){function n(){r.removeListener(t,n),o||(o=!0,e.apply(this,arguments))}var r=this,o=!1;this.on(t,n)},r.prototype.emit=function(t){var e=this._listeners[t];if(e)for(var n=Array.prototype.slice.call(arguments,1),r=0;r<e.length;r++)e[r].apply(this,n)},r.prototype.on=r.prototype.addListener=i.prototype.addEventListener,r.prototype.removeListener=i.prototype.removeEventListener,t.exports.EventEmitter=r},function(t,e,n){(function(e){"use strict";var r=n(19),o=function(){};"production"!==e.env.NODE_ENV&&(o=n(3)("sockjs-client:utils:url")),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 o("same",t,e,n),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)}}}).call(e,n(2))},function(t,e,n){var r;(function(t,o){(function(){function i(t,e){function n(t){if(n[t]!==v)return n[t];var i;if("bug-string-char-index"==t)i="a"!="a"[0];else if("json"==t)i=n("json-stringify")&&n("json-parse");else{var s,a='{"a":[1,true,false,null,"\\u0000\\b\\n\\f\\r\\t"]}';if("json-stringify"==t){var u=e.stringify,l="function"==typeof u&&b;if(l){(s=function(){return 1}).toJSON=s;try{l="0"===u(0)&&"0"===u(new r)&&'""'==u(new o)&&u(y)===v&&u(v)===v&&u()===v&&"1"===u(s)&&"[1]"==u([s])&&"[null]"==u([v])&&"null"==u(null)&&"[null,null,null]"==u([v,y,null])&&u({a:[s,!0,!1,null,"\x00\b\n\f\r "]})==a&&"1"===u(null,s)&&"[\n 1,\n 2\n]"==u([1,2],null,1)&&'"-271821-04-20T00:00:00.000Z"'==u(new c(-864e13))&&'"+275760-09-13T00:00:00.000Z"'==u(new c(864e13))&&'"-000001-01-01T00:00:00.000Z"'==u(new c(-621987552e5))&&'"1969-12-31T23:59:59.999Z"'==u(new c(-1))}catch(h){l=!1}}i=l}if("json-parse"==t){var f=e.parse;if("function"==typeof f)try{if(0===f("0")&&!f(!1)){s=f(a);var p=5==s.a.length&&1===s.a[0];if(p){try{p=!f('" "')}catch(h){}if(p)try{p=1!==f("01")}catch(h){}if(p)try{p=1!==f("1.")}catch(h){}}}}catch(h){p=!1}i=p}}return n[t]=!!i}t||(t=u.Object()),e||(e=u.Object());var r=t.Number||u.Number,o=t.String||u.String,s=t.Object||u.Object,c=t.Date||u.Date,l=t.SyntaxError||u.SyntaxError,h=t.TypeError||u.TypeError,f=t.Math||u.Math,p=t.JSON||u.JSON;"object"==typeof p&&p&&(e.stringify=p.stringify,e.parse=p.parse);var d,m,v,g=s.prototype,y=g.toString,b=new c(-0xc782b5b800cec);try{b=-109252==b.getUTCFullYear()&&0===b.getUTCMonth()&&1===b.getUTCDate()&&10==b.getUTCHours()&&37==b.getUTCMinutes()&&6==b.getUTCSeconds()&&708==b.getUTCMilliseconds()}catch(w){}if(!n("json")){var x="[object Function]",_="[object Date]",E="[object Number]",O="[object String]",j="[object Array]",S="[object Boolean]",T=n("bug-string-char-index");if(!b)var C=f.floor,N=[0,31,59,90,120,151,181,212,243,273,304,334],A=function(t,e){return N[e]+365*(t-1970)+C((t-1969+(e=+(e>1)))/4)-C((t-1901+e)/100)+C((t-1601+e)/400)};if((d=g.hasOwnProperty)||(d=function(t){var e,n={};return(n.__proto__=null,n.__proto__={toString:1},n).toString!=y?d=function(t){var e=this.__proto__,n=t in(this.__proto__=null,this);return this.__proto__=e,n}:(e=n.constructor,d=function(t){var n=(this.constructor||e).prototype;return t in this&&!(t in n&&this[t]===n[t])}),n=null,d.call(this,t)}),m=function(t,e){var n,r,o,i=0;(n=function(){this.valueOf=0}).prototype.valueOf=0,r=new n;for(o in r)d.call(r,o)&&i++;return n=r=null,i?m=2==i?function(t,e){var n,r={},o=y.call(t)==x;for(n in t)o&&"prototype"==n||d.call(r,n)||!(r[n]=1)||!d.call(t,n)||e(n)}:function(t,e){var n,r,o=y.call(t)==x;for(n in t)o&&"prototype"==n||!d.call(t,n)||(r="constructor"===n)||e(n);(r||d.call(t,n="constructor"))&&e(n)}:(r=["valueOf","toString","toLocaleString","propertyIsEnumerable","isPrototypeOf","hasOwnProperty","constructor"],m=function(t,e){var n,o,i=y.call(t)==x,s=!i&&"function"!=typeof t.constructor&&a[typeof t.hasOwnProperty]&&t.hasOwnProperty||d;for(n in t)i&&"prototype"==n||!s.call(t,n)||e(n);for(o=r.length;n=r[--o];s.call(t,n)&&e(n));}),m(t,e)},!n("json-stringify")){var k={92:"\\\\",34:'\\"',8:"\\b",12:"\\f",10:"\\n",13:"\\r",9:"\\t"},I="000000",R=function(t,e){return(I+(e||0)).slice(-t)},D="\\u00",P=function(t){for(var e='"',n=0,r=t.length,o=!T||r>10,i=o&&(T?t.split(""):t);r>n;n++){var s=t.charCodeAt(n);switch(s){case 8:case 9:case 10:case 12:case 13:case 34:case 92:e+=k[s];break;default:if(32>s){e+=D+R(2,s.toString(16));break}e+=o?i[n]:t.charAt(n)}}return e+'"'},U=function(t,e,n,r,o,i,s){var a,c,u,l,f,p,g,b,w,x,T,N,k,I,D,L;try{a=e[t]}catch(M){}if("object"==typeof a&&a)if(c=y.call(a),c!=_||d.call(a,"toJSON"))"function"==typeof a.toJSON&&(c!=E&&c!=O&&c!=j||d.call(a,"toJSON"))&&(a=a.toJSON(t));else if(a>-1/0&&1/0>a){if(A){for(f=C(a/864e5),u=C(f/365.2425)+1970-1;A(u+1,0)<=f;u++);for(l=C((f-A(u,0))/30.42);A(u,l+1)<=f;l++);f=1+f-A(u,l),p=(a%864e5+864e5)%864e5,g=C(p/36e5)%24,b=C(p/6e4)%60,w=C(p/1e3)%60,x=p%1e3}else u=a.getUTCFullYear(),l=a.getUTCMonth(),f=a.getUTCDate(),g=a.getUTCHours(),b=a.getUTCMinutes(),w=a.getUTCSeconds(),x=a.getUTCMilliseconds();a=(0>=u||u>=1e4?(0>u?"-":"+")+R(6,0>u?-u:u):R(4,u))+"-"+R(2,l+1)+"-"+R(2,f)+"T"+R(2,g)+":"+R(2,b)+":"+R(2,w)+"."+R(3,x)+"Z"}else a=null;if(n&&(a=n.call(e,t,a)),null===a)return"null";if(c=y.call(a),c==S)return""+a;if(c==E)return a>-1/0&&1/0>a?""+a:"null";if(c==O)return P(""+a);if("object"==typeof a){for(I=s.length;I--;)if(s[I]===a)throw h();if(s.push(a),T=[],D=i,i+=o,c==j){for(k=0,I=a.length;I>k;k++)N=U(k,a,n,r,o,i,s),T.push(N===v?"null":N);L=T.length?o?"[\n"+i+T.join(",\n"+i)+"\n"+D+"]":"["+T.join(",")+"]":"[]"}else m(r||a,function(t){var e=U(t,a,n,r,o,i,s);e!==v&&T.push(P(t)+":"+(o?" ":"")+e)}),L=T.length?o?"{\n"+i+T.join(",\n"+i)+"\n"+D+"}":"{"+T.join(",")+"}":"{}";return s.pop(),L}};e.stringify=function(t,e,n){var r,o,i,s;if(a[typeof e]&&e)if((s=y.call(e))==x)o=e;else if(s==j){i={};for(var c,u=0,l=e.length;l>u;c=e[u++],s=y.call(c),(s==O||s==E)&&(i[c]=1));}if(n)if((s=y.call(n))==E){if((n-=n%1)>0)for(r="",n>10&&(n=10);r.length<n;r+=" ");}else s==O&&(r=n.length<=10?n:n.slice(0,10));return U("",(c={},c[""]=t,c),o,i,r,"",[])}}if(!n("json-parse")){var L,M,q=o.fromCharCode,W={92:"\\",34:'"',47:"/",98:"\b",116:" ",110:"\n",102:"\f",114:"\r"},J=function(){throw L=M=null,l()},B=function(){for(var t,e,n,r,o,i=M,s=i.length;s>L;)switch(o=i.charCodeAt(L)){case 9:case 10:case 13:case 32:L++;break;case 123:case 125:case 91:case 93:case 58:case 44:return t=T?i.charAt(L):i[L],L++,t;case 34:for(t="@",L++;s>L;)if(o=i.charCodeAt(L),32>o)J();else if(92==o)switch(o=i.charCodeAt(++L)){case 92:case 34:case 47:case 98:case 116:case 110:case 102:case 114:t+=W[o],L++;break;case 117:for(e=++L,n=L+4;n>L;L++)o=i.charCodeAt(L),o>=48&&57>=o||o>=97&&102>=o||o>=65&&70>=o||J();t+=q("0x"+i.slice(e,L));break;default:J()}else{if(34==o)break;for(o=i.charCodeAt(L),e=L;o>=32&&92!=o&&34!=o;)o=i.charCodeAt(++L);t+=i.slice(e,L)}if(34==i.charCodeAt(L))return L++,t;J();default:if(e=L,45==o&&(r=!0,o=i.charCodeAt(++L)),o>=48&&57>=o){for(48==o&&(o=i.charCodeAt(L+1),o>=48&&57>=o)&&J(),r=!1;s>L&&(o=i.charCodeAt(L),o>=48&&57>=o);L++);if(46==i.charCodeAt(L)){for(n=++L;s>n&&(o=i.charCodeAt(n),o>=48&&57>=o);n++);n==L&&J(),L=n}if(o=i.charCodeAt(L),101==o||69==o){for(o=i.charCodeAt(++L),(43==o||45==o)&&L++,n=L;s>n&&(o=i.charCodeAt(n),o>=48&&57>=o);n++);n==L&&J(),L=n}return+i.slice(e,L)}if(r&&J(),"true"==i.slice(L,L+4))return L+=4,!0;if("false"==i.slice(L,L+5))return L+=5,!1;if("null"==i.slice(L,L+4))return L+=4,null;J()}return"$"},V=function(t){var e,n;if("$"==t&&J(),"string"==typeof t){if("@"==(T?t.charAt(0):t[0]))return t.slice(1);if("["==t){for(e=[];t=B(),"]"!=t;n||(n=!0))n&&(","==t?(t=B(),"]"==t&&J()):J()),","==t&&J(),e.push(V(t));return e}if("{"==t){for(e={};t=B(),"}"!=t;n||(n=!0))n&&(","==t?(t=B(),"}"==t&&J()):J()),(","==t||"string"!=typeof t||"@"!=(T?t.charAt(0):t[0])||":"!=B())&&J(),e[t.slice(1)]=V(B());return e}J()}return t},F=function(t,e,n){var r=H(t,e,n);r===v?delete t[e]:t[e]=r},H=function(t,e,n){var r,o=t[e];if("object"==typeof o&&o)if(y.call(o)==j)for(r=o.length;r--;)F(o,r,n);else m(o,function(t){F(o,t,n)});return n.call(t,e,o)};e.parse=function(t,e){var n,r;return L=0,M=""+t,n=V(B()),"$"!=B()&&J(),L=M=null,e&&y.call(e)==x?H((r={},r[""]=n,r),"",e):n}}}return e.runInContext=i,e}var s=n(72),a={"function":!0,object:!0},c=a[typeof e]&&e&&!e.nodeType&&e,u=a[typeof window]&&window||this,l=c&&a[typeof t]&&t&&!t.nodeType&&"object"==typeof o&&o;if(!l||l.global!==l&&l.window!==l&&l.self!==l||(u=l),c&&!s)i(u,c);else{var h=u.JSON,f=u.JSON3,p=!1,d=i(u,u.JSON3={noConflict:function(){return p||(p=!0,u.JSON=h,u.JSON3=f,h=f=null),d}});u.JSON={parse:d.parse,stringify:d.stringify}}s&&(r=function(){return d}.call(e,n,e,t),!(void 0!==r&&(t.exports=r)))}).call(this)}).call(e,n(33)(t),function(){return this}())},function(t,e,n){(function(e){"use strict";var r=n(9),o={},i=!1,s=e.chrome&&e.chrome.app&&e.chrome.app.runtime;t.exports={attachEvent:function(t,n){"undefined"!=typeof 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){"undefined"!=typeof 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]}};var a=function(){i||(i=!0,t.exports.triggerUnloadCallbacks())};s||t.exports.attachEvent("unload",a)}).call(e,function(){return this}())},function(t,e,n){(function(e){"use strict";function r(t){return function(e,n,r){c("create ajax sender",e,n);var o={};"string"==typeof n&&(o.headers={"Content-type":"text/plain"});var i=s.addPath(e,"/xhr_send"),a=new t("POST",i,n,o);return a.once("finish",function(t){return c("finish",t),a=null,200!==t&&204!==t?r(new Error("http status "+t)):void r()}),function(){c("abort"),a.close(),a=null;var t=new Error("Aborted");t.code=1e3,r(t)}}}function o(t,e,n,o){a.call(this,t,e,r(o),n,o)}var i=n(1),s=n(5),a=n(29),c=function(){};"production"!==e.env.NODE_ENV&&(c=n(3)("sockjs-client:ajax-based")),i(o,a),t.exports=o}).call(e,n(2))},function(t,e,n){"use strict";var r=n(61),o="abcdefghijklmnopqrstuvwxyz012345";t.exports={string:function(t){for(var e=o.length,n=r.randomBytes(t),i=[],s=0;t>s;s++)i.push(o.substr(n[s]%e,1));return i.join("")},number:function(t){return Math.floor(Math.random()*t)},numberString:function(t){var e=(""+(t-1)).length,n=new Array(e+1).join("0");return(n+this.number(t)).slice(-e)}}},function(t,e,n){"use strict";function r(t,e,n){i.call(this,t,e,n,{noCredentials:!0})}var o=n(1),i=n(24);o(r,i),r.enabled=i.enabled,t.exports=r},function(t,e){(function(e){"use strict";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(e,function(){return this}())},function(t,e,n){(function(e,r){"use strict";var o=n(7),i=n(6),s=n(11),a=function(){};"production"!==e.env.NODE_ENV&&(a=n(3)("sockjs-client:utils:iframe")),t.exports={WPrefix:"_jp",currentWindowId:null,polluteGlobalNamespace:function(){t.exports.WPrefix in r||(r[t.exports.WPrefix]={})},postMessage:function(e,n){r.parent!==r?r.parent.postMessage(i.stringify({windowId:t.exports.currentWindowId,type:e,data:n||""}),"*"):a("Cannot postMessage, no parent window.",e,n)},createIframe:function(t,e){var n,i,s=r.document.createElement("iframe"),c=function(){a("unattach"),clearTimeout(n);try{s.onload=null}catch(t){}s.onerror=null},u=function(){a("cleanup"),s&&(c(),setTimeout(function(){s&&s.parentNode.removeChild(s),s=null},0),o.unloadDel(i))},l=function(t){a("onerror",t),s&&(u(),e(t))},h=function(t,e){a("post",t,e);try{setTimeout(function(){s&&s.contentWindow&&s.contentWindow.postMessage(t,e)},0)}catch(n){}};return s.src=t,s.style.display="none",s.style.position="absolute",s.onerror=function(){l("onerror")},s.onload=function(){a("onload"),clearTimeout(n),n=setTimeout(function(){l("onload timeout")},2e3)},r.document.body.appendChild(s),n=setTimeout(function(){l("timeout")},15e3),i=o.unloadAdd(u),{post:h,cleanup:u,loaded:c}},createHtmlfile:function(e,n){var i,s,c,u=["Active"].concat("Object").join("X"),l=new r[u]("htmlfile"),h=function(){clearTimeout(i),c.onerror=null},f=function(){l&&(h(),o.unloadDel(s),c.parentNode.removeChild(c),c=l=null,CollectGarbage())},p=function(t){a("onerror",t),l&&(f(),n(t))},d=function(t,e){try{setTimeout(function(){c&&c.contentWindow&&c.contentWindow.postMessage(t,e)},0)}catch(n){}};l.open(),l.write('<html><script>document.domain="'+r.document.domain+'";</script></html>'),l.close(),l.parentWindow[t.exports.WPrefix]=r[t.exports.WPrefix];var m=l.createElement("div");return l.body.appendChild(m),c=l.createElement("iframe"),m.appendChild(c),c.src=e,c.onerror=function(){p("onerror")},i=setTimeout(function(){p("timeout")},15e3),s=o.unloadAdd(f),{post:d,cleanup:f,loaded:h}}},t.exports.iframeEnabled=!1,r.document&&(t.exports.iframeEnabled=("function"==typeof r.postMessage||"object"==typeof r.postMessage)&&!s.isKonqueror())}).call(e,n(2),function(){return this}())},function(t,e,n){(function(e){"use strict";function r(t,e){s(t),i.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){s("finish",t,e),n._chunkHandler(t,e),n.xo=null;var r=200===t?"network":"permanent";s("close",r),n.emit("close",null,r),n._cleanup()})}var o=n(1),i=n(4).EventEmitter,s=function(){};"production"!==e.env.NODE_ENV&&(s=n(3)("sockjs-client:receiver:xhr")),o(r,i),r.prototype._chunkHandler=function(t,e){if(s("_chunkHandler",t),200===t&&e)for(var n=-1;;this.bufferPosition+=n+1){var r=e.slice(this.bufferPosition);if(n=r.indexOf("\n"),-1===n)break;var o=r.slice(0,n);o&&(s("message",o),this.emit("message",o))}},r.prototype._cleanup=function(){s("_cleanup"),this.removeAllListeners()},r.prototype.abort=function(){s("abort"),this.xo&&(this.xo.close(),s("close"),this.emit("close",null,"user"),this.xo=null),this._cleanup()},t.exports=r}).call(e,n(2))},function(t,e,n){"use strict";function r(t,e,n,r){i.call(this,t,e,n,r)}var o=n(1),i=n(24);o(r,i),r.enabled=i.enabled&&i.supportsCORS,t.exports=r},function(t,e){"use strict";function n(t){this.type=t}n.prototype.initEvent=function(t,e,n){return this.type=t,this.bubbles=e,this.cancelable=n,this.timeStamp=+new Date,this},n.prototype.stopPropagation=function(){},n.prototype.preventDefault=function(){},n.CAPTURING_PHASE=1,n.AT_TARGET=2,n.BUBBLING_PHASE=3,t.exports=n},function(t,e,n){(function(e){"use strict";var r=n(1),o=n(28),i=n(18);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(e,function(){return this}())},function(t,e,n){(function(e,r){"use strict";function o(t,e,n){l(t,e);var r=this;i.call(this),setTimeout(function(){r._start(t,e,n)},0)}var i=n(4).EventEmitter,s=n(1),a=n(7),c=n(11),u=n(5),l=function(){};"production"!==e.env.NODE_ENV&&(l=n(3)("sockjs-client:sender:xdr")),s(o,i),o.prototype._start=function(t,e,n){l("_start");var o=this,i=new r.XDomainRequest;e=u.addQuery(e,"t="+ +new Date),i.onerror=function(){l("onerror"),o._error()},i.ontimeout=function(){l("ontimeout"),o._error()},i.onprogress=function(){l("progress",i.responseText),o.emit("chunk",200,i.responseText)},i.onload=function(){l("load"),o.emit("finish",200,i.responseText),o._cleanup(!1)},this.xdr=i,this.unloadRef=a.unloadAdd(function(){o._cleanup(!0)});try{this.xdr.open(t,e),this.timeout&&(this.xdr.timeout=this.timeout),this.xdr.send(n)}catch(s){this._error()}},o.prototype._error=function(){this.emit("finish",0,""),this._cleanup(!1)},o.prototype._cleanup=function(t){if(l("cleanup",t),this.xdr){if(this.removeAllListeners(),a.unloadDel(this.unloadRef),this.xdr.ontimeout=this.xdr.onerror=this.xdr.onprogress=this.xdr.onload=null,t)try{this.xdr.abort()}catch(e){}this.unloadRef=this.xdr=null}},o.prototype.close=function(){l("close"),this._cleanup(!0)},o.enabled=!(!r.XDomainRequest||!c.hasDomain()),t.exports=o}).call(e,n(2),function(){return this}())},function(t,e){"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;o>r;r++){e=arguments[r];for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])}return t}}},function(t,e,n){"use strict";function r(t,e,n){if(!(this instanceof r))return new r(t,e,n);var u,l,h,f,p=a.test(t),d=typeof e,m=this,v=0;for("object"!==d&&"string"!==d&&(n=e,e=null),n&&"function"!=typeof n&&(n=s.parse),e=i(e);v<c.length;v++)l=c[v],u=l[0],f=l[1],u!==u?m[f]=t:"string"==typeof u?~(h=t.indexOf(u))&&("number"==typeof l[2]?(m[f]=t.slice(0,h),t=t.slice(h+l[2])):(m[f]=t.slice(h),t=t.slice(0,h))):(h=u.exec(t))&&(m[f]=h[1],t=t.slice(0,t.length-h[0].length)),m[f]=m[f]||(l[3]||"port"===f&&p?e[f]||"":""),l[4]&&(m[f]=m[f].toLowerCase());n&&(m.query=n(m.query)),o(m.port,m.protocol)||(m.host=m.hostname,m.port=""),m.username=m.password="",m.auth&&(l=m.auth.split(":"),m.username=l[0]||"",m.password=l[1]||""),m.href=m.toString()}var o=n(69),i=n(67),s=n(68),a=/^\/(?!\/)/,c=[["#","hash"],["?","query"],["//","protocol",2,1,1],["/","pathname"],["@","auth",1],[NaN,"host",void 0,1,1],[/\:(\d+)$/,"port"],[NaN,"hostname",void 0,1,1]];r.prototype.set=function(t,e,n){var r=this;return"query"===t?("string"==typeof e&&e.length&&(e=(n||s.parse)(e)),r[t]=e):"port"===t?(r[t]=e,o(e,r.protocol)?e&&(r.host=r.hostname+":"+e):(r.host=r.hostname,r[t]="")):"hostname"===t?(r[t]=e,r.port&&(e+=":"+r.port),r.host=e):"host"===t?(r[t]=e,/\:\d+/.test(e)&&(e=e.split(":"),r.hostname=e[0],r.port=e[1])):r[t]=e,r.href=r.toString(),r},r.prototype.toString=function(t){t&&"function"==typeof t||(t=s.stringify);var e,n=this,r=n.protocol+"//";return n.username&&(r+=n.username,n.password&&(r+=":"+n.password),r+="@"),r+=n.hostname,n.port&&(r+=":"+n.port),r+=n.pathname,e="object"==typeof n.query?t(n.query):n.query,e&&(r+="?"!==e.charAt(0)?"?"+e:e),n.hash&&(r+=n.hash),r},r.qs=s,r.location=i,t.exports=r},function(t,e){"use strict";function n(){this._listeners={}}n.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},n.prototype.removeEventListener=function(t,e){var n=this._listeners[t];if(n){var r=n.indexOf(e);return-1!==r?void(n.length>1?this._listeners[t]=n.slice(0,r).concat(n.slice(r+1)):delete this._listeners[t]):void 0}},n.prototype.dispatchEvent=function(t){var e=t.type,n=Array.prototype.slice.call(arguments,0);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=n},function(t,e,n){(function(e){"use strict";function r(t,e){o.call(this);var n=this,r=+new Date;this.xo=new e("GET",t),this.xo.once("finish",function(t,e){var o,i;if(200===t){if(i=+new Date-r,e)try{o=s.parse(e)}catch(u){c("bad json",e)}a.isObject(o)||(o={})}n.emit("finish",o,i),n.removeAllListeners()})}var o=n(4).EventEmitter,i=n(1),s=n(6),a=n(18),c=function(){};"production"!==e.env.NODE_ENV&&(c=n(3)("sockjs-client:info-ajax")),i(r,o),r.prototype.close=function(){this.removeAllListeners(),this.xo.close()},t.exports=r}).call(e,n(2))},function(t,e,n){"use strict";function r(t){var e=this;i.call(this),this.ir=new c(t,a),this.ir.once("finish",function(t,n){e.ir=null,e.emit("message",s.stringify([t,n]))})}var o=n(1),i=n(4).EventEmitter,s=n(6),a=n(10),c=n(21);o(r,i),r.transportName="iframe-info-receiver",r.prototype.close=function(){this.ir&&(this.ir.close(),this.ir=null),this.removeAllListeners()},t.exports=r},function(t,e){(function(e){"use strict";t.exports=e.location||{origin:"http://localhost:80",protocol:"http",host:"localhost",port:80,href:"http://localhost/",hash:""}}).call(e,function(){return this}())},function(t,e,n){(function(e,r){"use strict";function o(t,e,n,r){l(t,e);var o=this;i.call(this),setTimeout(function(){o._start(t,e,n,r)},0)}var i=n(4).EventEmitter,s=n(1),a=n(7),c=n(5),u=e.XMLHttpRequest,l=function(){};"production"!==r.env.NODE_ENV&&(l=n(3)("sockjs-client:browser:xhr")),s(o,i),o.prototype._start=function(t,e,n,r){var i=this;try{this.xhr=new u}catch(s){}if(!this.xhr)return l("no xhr"),this.emit("finish",0,"no xhr support"),void this._cleanup();e=c.addQuery(e,"t="+ +new Date),this.unloadRef=a.unloadAdd(function(){l("unload cleanup"),i._cleanup(!0)});try{this.xhr.open(t,e,!0),this.timeout&&"timeout"in this.xhr&&(this.xhr.timeout=this.timeout,this.xhr.ontimeout=function(){l("xhr timeout"),i.emit("finish",0,""),i._cleanup(!1)})}catch(h){return l("exception",h),this.emit("finish",0,""),void this._cleanup(!1)}if(r&&r.noCredentials||!o.supportsCORS||(l("withCredentials"),this.xhr.withCredentials="true"),r&&r.headers)for(var f in r.headers)this.xhr.setRequestHeader(f,r.headers[f]);this.xhr.onreadystatechange=function(){if(i.xhr){var t,e,n=i.xhr;switch(l("readyState",n.readyState),n.readyState){case 3:try{e=n.status,t=n.responseText}catch(r){}l("status",e),1223===e&&(e=204),200===e&&t&&t.length>0&&(l("chunk"),i.emit("chunk",e,t));break;case 4:e=n.status,l("status",e),1223===e&&(e=204),(12005===e||12029===e)&&(e=0),l("finish",e,n.responseText),i.emit("finish",e,n.responseText),i._cleanup(!1)}}};try{i.xhr.send(n)}catch(h){i.emit("finish",0,""),i._cleanup(!1)}},o.prototype._cleanup=function(t){if(l("cleanup"),this.xhr){if(this.removeAllListeners(),a.unloadDel(this.unloadRef),this.xhr.onreadystatechange=function(){},this.xhr.ontimeout&&(this.xhr.ontimeout=null),t)try{this.xhr.abort()}catch(e){}this.unloadRef=this.xhr=null}},o.prototype.close=function(){l("close"),this._cleanup(!0)},o.enabled=!!u;var h=["Active"].concat("Object").join("X");!o.enabled&&h in e&&(l("overriding xmlhttprequest"),u=function(){try{return new e[h]("Microsoft.XMLHTTP")}catch(t){return null}},o.enabled=!!new u);var f=!1;try{f="withCredentials"in new u}catch(p){}o.supportsCORS=f,t.exports=o}).call(e,function(){return this}(),n(2))},function(t,e){(function(e){t.exports=e.EventSource}).call(e,function(){return this}())},function(t,e,n){"use strict";function r(t){if(!r.enabled())throw new Error("Transport created when disabled");i.call(this,t,"/eventsource",s,a)}var o=n(1),i=n(8),s=n(53),a=n(14),c=n(25);o(r,i),r.enabled=function(){return!!c},r.transportName="eventsource",r.roundTrips=2,t.exports=r},function(t,e,n){"use strict";function r(t){if(!i.enabled)throw new Error("Transport created when disabled");a.call(this,t,"/htmlfile",i,s)}var o=n(1),i=n(54),s=n(10),a=n(8);o(r,a),r.enabled=function(t){return i.enabled&&t.sameOrigin},r.transportName="htmlfile",r.roundTrips=2,t.exports=r},function(t,e,n){(function(e){"use strict";function r(t,e,n){if(!r.enabled())throw new Error("Transport created when disabled");s.call(this);var o=this;this.origin=c.getOrigin(n),this.baseUrl=n,this.transUrl=e,this.transport=t,this.windowId=h.string(8);var i=c.addPath(n,"/iframe.html")+"#"+this.windowId;f(t,e,i),this.iframeObj=u.createIframe(i,function(t){f("err callback"),o.emit("close",1006,"Unable to load an iframe ("+t+")"),o.close()}),this.onmessageCallback=this._message.bind(this),l.attachEvent("message",this.onmessageCallback)}var o=n(1),i=n(6),s=n(4).EventEmitter,a=n(32),c=n(5),u=n(12),l=n(7),h=n(9),f=function(){};"production"!==e.env.NODE_ENV&&(f=n(3)("sockjs-client:transport:iframe")),o(r,s),r.prototype.close=function(){if(f("close"),this.removeAllListeners(),this.iframeObj){l.detachEvent("message",this.onmessageCallback);try{this.postMessage("c")}catch(t){}this.iframeObj.cleanup(),this.iframeObj=null,this.onmessageCallback=this.iframeObj=null}},r.prototype._message=function(t){if(f("message",t.data),!c.isOriginEqual(t.origin,this.origin))return void f("not same origin",t.origin,this.origin);var e;try{e=i.parse(t.data)}catch(n){return void f("bad json",t.data)}if(e.windowId!==this.windowId)return void f("mismatched window id",e.windowId,this.windowId);switch(e.type){case"s":this.iframeObj.loaded(),this.postMessage("s",i.stringify([a,this.transport,this.transUrl,this.baseUrl]));break;case"t":this.emit("message",e.data);break;case"c":var r;try{r=i.parse(e.data)}catch(n){return void f("bad json",e.data)}this.emit("close",r[0],r[1]),this.close()}},r.prototype.postMessage=function(t,e){f("postMessage",t,e),this.iframeObj.post(i.stringify({windowId:this.windowId,type:t,data:e||""}),this.origin)},r.prototype.send=function(t){f("send",t),this.postMessage("m",t)},r.enabled=function(){return u.iframeEnabled},r.transportName="iframe",r.roundTrips=2,t.exports=r}).call(e,n(2))},function(t,e,n){(function(e){"use strict";function r(t,e,n,r,o){var u=i.addPath(t,e);c(u);var l=this;s.call(this,t,n),this.poll=new a(r,u,o),this.poll.on("message",function(t){c("poll message",t),l.emit("message",t)}),this.poll.once("close",function(t,e){c("poll close",t,e),l.poll=null,l.emit("close",t,e),l.close()})}var o=n(1),i=n(5),s=n(51),a=n(52),c=function(){};"production"!==e.env.NODE_ENV&&(c=n(3)("sockjs-client:sender-receiver")),o(r,s),r.prototype.close=function(){c("close"),this.removeAllListeners(),this.poll&&(this.poll.abort(),this.poll=null),this.stop()},t.exports=r}).call(e,n(2))},function(t,e,n){"use strict";function r(t){if(!a.enabled)throw new Error("Transport created when disabled");i.call(this,t,"/xhr_streaming",s,a)}var o=n(1),i=n(8),s=n(13),a=n(17);o(r,i),r.enabled=function(t){return t.cookie_needed||t.nullOrigin?!1:a.enabled&&t.sameScheme},r.transportName="xdr-streaming",r.roundTrips=2,t.exports=r},function(t,e,n){"use strict";function r(t){if(!c.enabled&&!a.enabled)throw new Error("Transport created when disabled");i.call(this,t,"/xhr",s,a)}var o=n(1),i=n(8),s=n(13),a=n(14),c=n(10);o(r,i),r.enabled=function(t){return t.nullOrigin?!1:c.enabled&&t.sameOrigin?!0:a.enabled},r.transportName="xhr-polling",r.roundTrips=2,t.exports=r},function(t,e){t.exports="1.0.3"},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children=[],t.webpackPolyfill=1),t}},function(t,e,n){var r;(function(t,o){!function(i){function s(t){throw RangeError(I[t])}function a(t,e){for(var n=t.length,r=[];n--;)r[n]=e(t[n]);return r}function c(t,e){var n=t.split("@"),r="";n.length>1&&(r=n[0]+"@",t=n[1]),t=t.replace(k,".");var o=t.split("."),i=a(o,e).join(".");return r+i}function u(t){for(var e,n,r=[],o=0,i=t.length;i>o;)e=t.charCodeAt(o++),e>=55296&&56319>=e&&i>o?(n=t.charCodeAt(o++),56320==(64512&n)?r.push(((1023&e)<<10)+(1023&n)+65536):(r.push(e),o--)):r.push(e);return r}function l(t){return a(t,function(t){var e="";return t>65535&&(t-=65536,e+=P(t>>>10&1023|55296),t=56320|1023&t),e+=P(t)}).join("")}function h(t){return 10>t-48?t-22:26>t-65?t-65:26>t-97?t-97:x}function f(t,e){return t+22+75*(26>t)-((0!=e)<<5)}function p(t,e,n){var r=0;for(t=n?D(t/j):t>>1,t+=D(t/e);t>R*E>>1;r+=x)t=D(t/R);return D(r+(R+1)*t/(t+O))}function d(t){var e,n,r,o,i,a,c,u,f,d,m=[],v=t.length,g=0,y=T,b=S;for(n=t.lastIndexOf(C),0>n&&(n=0),r=0;n>r;++r)t.charCodeAt(r)>=128&&s("not-basic"),m.push(t.charCodeAt(r));for(o=n>0?n+1:0;v>o;){for(i=g,a=1,c=x;o>=v&&s("invalid-input"),u=h(t.charCodeAt(o++)),(u>=x||u>D((w-g)/a))&&s("overflow"),
|
|
1
|
+
!function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return t[r].call(o.exports,o,o.exports,e),o.loaded=!0,o.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)}([function(t,e,n){function r(){h?(console.log("[WDS] App hot update..."),window.postMessage("webpackHotUpdate"+p,"*")):(console.log("[WDS] App updated. Reloading..."),window.location.reload())}var o=n(38),i=n(39),s=n(70),a=document.getElementsByTagName("script"),c=a[a.length-1].getAttribute("src").replace(/\/[^\/]+$/,""),u=o.parse(c?c:"/"),l=null,h=!1,f=!0,p="",d={hot:function(){h=!0,console.log("[WDS] Hot Module Replacement enabled.")},invalid:function(){console.log("[WDS] App updated. Recompiling...")},hash:function(t){p=t},"still-ok":function(){console.log("[WDS] Nothing changed.")},ok:function(){return f?f=!1:void r()},warnings:function(t){console.log("[WDS] Warnings while compiling.");for(var e=0;e<t.length;e++)console.warn(s(t[e]));return f?f=!1:void r()},errors:function(t){console.log("[WDS] Errors while compiling.");for(var e=0;e<t.length;e++)console.error(s(t[e]));return f?f=!1:void r()},"proxy-error":function(t){console.log("[WDS] Proxy error.");for(var e=0;e<t.length;e++)console.error(s(t[e]));return f?f=!1:void r()}},m=function(){l=new i(o.format({protocol:u.protocol,auth:u.auth,hostname:"0.0.0.0"===u.hostname?window.location.hostname:u.hostname,port:u.port,pathname:"/"===u.path?"/sockjs-node":u.path})),l.onclose=function(){console.error("[WDS] Disconnected!"),l=null,setTimeout(function(){m()},2e3)},l.onmessage=function(t){var e=JSON.parse(t.data);d[e.type](e.data)}};m()},function(t,e){"function"==typeof Object.create?t.exports=function(t,e){t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:t.exports=function(t,e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}},function(t,e){function n(){u=!1,s.length?c=s.concat(c):l=-1,c.length&&r()}function r(){if(!u){var t=setTimeout(n);u=!0;for(var e=c.length;e;){for(s=c,c=[];++l<e;)s[l].run();l=-1,e=c.length}s=null,u=!1,clearTimeout(t)}}function o(t,e){this.fun=t,this.array=e}function i(){}var s,a=t.exports={},c=[],u=!1,l=-1;a.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];c.push(new o(t,e)),1!==c.length||u||setTimeout(r,0)},o.prototype.run=function(){this.fun.apply(null,this.array)},a.title="browser",a.browser=!0,a.env={},a.argv=[],a.version="",a.versions={},a.on=i,a.addListener=i,a.once=i,a.off=i,a.removeListener=i,a.removeAllListeners=i,a.emit=i,a.binding=function(t){throw new Error("process.binding is not supported")},a.cwd=function(){return"/"},a.chdir=function(t){throw new Error("process.chdir is not supported")},a.umask=function(){return 0}},function(t,e,n){function r(){return"WebkitAppearance"in document.documentElement.style||window.console&&(console.firebug||console.exception&&console.table)||navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31}function o(){var t=arguments,n=this.useColors;if(t[0]=(n?"%c":"")+this.namespace+(n?" %c":" ")+t[0]+(n?"%c ":" ")+"+"+e.humanize(this.diff),!n)return t;var r="color: "+this.color;t=[t[0],r,"color: inherit"].concat(Array.prototype.slice.call(t,1));var o=0,i=0;return t[0].replace(/%[a-z%]/g,function(t){"%%"!==t&&(o++,"%c"===t&&(i=o))}),t.splice(i,0,r),t}function i(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function s(t){try{null==t?e.storage.removeItem("debug"):e.storage.debug=t}catch(n){}}function a(){var t;try{t=e.storage.debug}catch(n){}return t}function c(){try{return window.localStorage}catch(t){}}e=t.exports=n(65),e.log=i,e.formatArgs=o,e.save=s,e.load=a,e.useColors=r,e.storage="undefined"!=typeof chrome&&"undefined"!=typeof chrome.storage?chrome.storage.local:c(),e.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],e.formatters.j=function(t){return JSON.stringify(t)},e.enable(a())},function(t,e,n){"use strict";function r(){i.call(this)}var o=n(1),i=n(20);o(r,i),r.prototype.removeAllListeners=function(t){t?delete this._listeners[t]:this._listeners={}},r.prototype.once=function(t,e){function n(){r.removeListener(t,n),o||(o=!0,e.apply(this,arguments))}var r=this,o=!1;this.on(t,n)},r.prototype.emit=function(t){var e=this._listeners[t];if(e)for(var n=Array.prototype.slice.call(arguments,1),r=0;r<e.length;r++)e[r].apply(this,n)},r.prototype.on=r.prototype.addListener=i.prototype.addEventListener,r.prototype.removeListener=i.prototype.removeEventListener,t.exports.EventEmitter=r},function(t,e,n){(function(e){"use strict";var r=n(19),o=function(){};"production"!==e.env.NODE_ENV&&(o=n(3)("sockjs-client:utils:url")),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 o("same",t,e,n),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)}}}).call(e,n(2))},function(t,e,n){var r;(function(t,o){(function(){function i(t,e){function n(t){if(n[t]!==v)return n[t];var i;if("bug-string-char-index"==t)i="a"!="a"[0];else if("json"==t)i=n("json-stringify")&&n("json-parse");else{var s,a='{"a":[1,true,false,null,"\\u0000\\b\\n\\f\\r\\t"]}';if("json-stringify"==t){var u=e.stringify,l="function"==typeof u&&b;if(l){(s=function(){return 1}).toJSON=s;try{l="0"===u(0)&&"0"===u(new r)&&'""'==u(new o)&&u(y)===v&&u(v)===v&&u()===v&&"1"===u(s)&&"[1]"==u([s])&&"[null]"==u([v])&&"null"==u(null)&&"[null,null,null]"==u([v,y,null])&&u({a:[s,!0,!1,null,"\x00\b\n\f\r "]})==a&&"1"===u(null,s)&&"[\n 1,\n 2\n]"==u([1,2],null,1)&&'"-271821-04-20T00:00:00.000Z"'==u(new c(-864e13))&&'"+275760-09-13T00:00:00.000Z"'==u(new c(864e13))&&'"-000001-01-01T00:00:00.000Z"'==u(new c(-621987552e5))&&'"1969-12-31T23:59:59.999Z"'==u(new c(-1))}catch(h){l=!1}}i=l}if("json-parse"==t){var f=e.parse;if("function"==typeof f)try{if(0===f("0")&&!f(!1)){s=f(a);var p=5==s.a.length&&1===s.a[0];if(p){try{p=!f('" "')}catch(h){}if(p)try{p=1!==f("01")}catch(h){}if(p)try{p=1!==f("1.")}catch(h){}}}}catch(h){p=!1}i=p}}return n[t]=!!i}t||(t=u.Object()),e||(e=u.Object());var r=t.Number||u.Number,o=t.String||u.String,s=t.Object||u.Object,c=t.Date||u.Date,l=t.SyntaxError||u.SyntaxError,h=t.TypeError||u.TypeError,f=t.Math||u.Math,p=t.JSON||u.JSON;"object"==typeof p&&p&&(e.stringify=p.stringify,e.parse=p.parse);var d,m,v,g=s.prototype,y=g.toString,b=new c(-0xc782b5b800cec);try{b=-109252==b.getUTCFullYear()&&0===b.getUTCMonth()&&1===b.getUTCDate()&&10==b.getUTCHours()&&37==b.getUTCMinutes()&&6==b.getUTCSeconds()&&708==b.getUTCMilliseconds()}catch(w){}if(!n("json")){var x="[object Function]",_="[object Date]",E="[object Number]",O="[object String]",j="[object Array]",S="[object Boolean]",T=n("bug-string-char-index");if(!b)var C=f.floor,N=[0,31,59,90,120,151,181,212,243,273,304,334],A=function(t,e){return N[e]+365*(t-1970)+C((t-1969+(e=+(e>1)))/4)-C((t-1901+e)/100)+C((t-1601+e)/400)};if((d=g.hasOwnProperty)||(d=function(t){var e,n={};return(n.__proto__=null,n.__proto__={toString:1},n).toString!=y?d=function(t){var e=this.__proto__,n=t in(this.__proto__=null,this);return this.__proto__=e,n}:(e=n.constructor,d=function(t){var n=(this.constructor||e).prototype;return t in this&&!(t in n&&this[t]===n[t])}),n=null,d.call(this,t)}),m=function(t,e){var n,r,o,i=0;(n=function(){this.valueOf=0}).prototype.valueOf=0,r=new n;for(o in r)d.call(r,o)&&i++;return n=r=null,i?m=2==i?function(t,e){var n,r={},o=y.call(t)==x;for(n in t)o&&"prototype"==n||d.call(r,n)||!(r[n]=1)||!d.call(t,n)||e(n)}:function(t,e){var n,r,o=y.call(t)==x;for(n in t)o&&"prototype"==n||!d.call(t,n)||(r="constructor"===n)||e(n);(r||d.call(t,n="constructor"))&&e(n)}:(r=["valueOf","toString","toLocaleString","propertyIsEnumerable","isPrototypeOf","hasOwnProperty","constructor"],m=function(t,e){var n,o,i=y.call(t)==x,s=!i&&"function"!=typeof t.constructor&&a[typeof t.hasOwnProperty]&&t.hasOwnProperty||d;for(n in t)i&&"prototype"==n||!s.call(t,n)||e(n);for(o=r.length;n=r[--o];s.call(t,n)&&e(n));}),m(t,e)},!n("json-stringify")){var k={92:"\\\\",34:'\\"',8:"\\b",12:"\\f",10:"\\n",13:"\\r",9:"\\t"},I="000000",R=function(t,e){return(I+(e||0)).slice(-t)},D="\\u00",P=function(t){for(var e='"',n=0,r=t.length,o=!T||r>10,i=o&&(T?t.split(""):t);r>n;n++){var s=t.charCodeAt(n);switch(s){case 8:case 9:case 10:case 12:case 13:case 34:case 92:e+=k[s];break;default:if(32>s){e+=D+R(2,s.toString(16));break}e+=o?i[n]:t.charAt(n)}}return e+'"'},U=function(t,e,n,r,o,i,s){var a,c,u,l,f,p,g,b,w,x,T,N,k,I,D,L;try{a=e[t]}catch(M){}if("object"==typeof a&&a)if(c=y.call(a),c!=_||d.call(a,"toJSON"))"function"==typeof a.toJSON&&(c!=E&&c!=O&&c!=j||d.call(a,"toJSON"))&&(a=a.toJSON(t));else if(a>-1/0&&1/0>a){if(A){for(f=C(a/864e5),u=C(f/365.2425)+1970-1;A(u+1,0)<=f;u++);for(l=C((f-A(u,0))/30.42);A(u,l+1)<=f;l++);f=1+f-A(u,l),p=(a%864e5+864e5)%864e5,g=C(p/36e5)%24,b=C(p/6e4)%60,w=C(p/1e3)%60,x=p%1e3}else u=a.getUTCFullYear(),l=a.getUTCMonth(),f=a.getUTCDate(),g=a.getUTCHours(),b=a.getUTCMinutes(),w=a.getUTCSeconds(),x=a.getUTCMilliseconds();a=(0>=u||u>=1e4?(0>u?"-":"+")+R(6,0>u?-u:u):R(4,u))+"-"+R(2,l+1)+"-"+R(2,f)+"T"+R(2,g)+":"+R(2,b)+":"+R(2,w)+"."+R(3,x)+"Z"}else a=null;if(n&&(a=n.call(e,t,a)),null===a)return"null";if(c=y.call(a),c==S)return""+a;if(c==E)return a>-1/0&&1/0>a?""+a:"null";if(c==O)return P(""+a);if("object"==typeof a){for(I=s.length;I--;)if(s[I]===a)throw h();if(s.push(a),T=[],D=i,i+=o,c==j){for(k=0,I=a.length;I>k;k++)N=U(k,a,n,r,o,i,s),T.push(N===v?"null":N);L=T.length?o?"[\n"+i+T.join(",\n"+i)+"\n"+D+"]":"["+T.join(",")+"]":"[]"}else m(r||a,function(t){var e=U(t,a,n,r,o,i,s);e!==v&&T.push(P(t)+":"+(o?" ":"")+e)}),L=T.length?o?"{\n"+i+T.join(",\n"+i)+"\n"+D+"}":"{"+T.join(",")+"}":"{}";return s.pop(),L}};e.stringify=function(t,e,n){var r,o,i,s;if(a[typeof e]&&e)if((s=y.call(e))==x)o=e;else if(s==j){i={};for(var c,u=0,l=e.length;l>u;c=e[u++],s=y.call(c),(s==O||s==E)&&(i[c]=1));}if(n)if((s=y.call(n))==E){if((n-=n%1)>0)for(r="",n>10&&(n=10);r.length<n;r+=" ");}else s==O&&(r=n.length<=10?n:n.slice(0,10));return U("",(c={},c[""]=t,c),o,i,r,"",[])}}if(!n("json-parse")){var L,M,q=o.fromCharCode,W={92:"\\",34:'"',47:"/",98:"\b",116:" ",110:"\n",102:"\f",114:"\r"},J=function(){throw L=M=null,l()},B=function(){for(var t,e,n,r,o,i=M,s=i.length;s>L;)switch(o=i.charCodeAt(L)){case 9:case 10:case 13:case 32:L++;break;case 123:case 125:case 91:case 93:case 58:case 44:return t=T?i.charAt(L):i[L],L++,t;case 34:for(t="@",L++;s>L;)if(o=i.charCodeAt(L),32>o)J();else if(92==o)switch(o=i.charCodeAt(++L)){case 92:case 34:case 47:case 98:case 116:case 110:case 102:case 114:t+=W[o],L++;break;case 117:for(e=++L,n=L+4;n>L;L++)o=i.charCodeAt(L),o>=48&&57>=o||o>=97&&102>=o||o>=65&&70>=o||J();t+=q("0x"+i.slice(e,L));break;default:J()}else{if(34==o)break;for(o=i.charCodeAt(L),e=L;o>=32&&92!=o&&34!=o;)o=i.charCodeAt(++L);t+=i.slice(e,L)}if(34==i.charCodeAt(L))return L++,t;J();default:if(e=L,45==o&&(r=!0,o=i.charCodeAt(++L)),o>=48&&57>=o){for(48==o&&(o=i.charCodeAt(L+1),o>=48&&57>=o)&&J(),r=!1;s>L&&(o=i.charCodeAt(L),o>=48&&57>=o);L++);if(46==i.charCodeAt(L)){for(n=++L;s>n&&(o=i.charCodeAt(n),o>=48&&57>=o);n++);n==L&&J(),L=n}if(o=i.charCodeAt(L),101==o||69==o){for(o=i.charCodeAt(++L),(43==o||45==o)&&L++,n=L;s>n&&(o=i.charCodeAt(n),o>=48&&57>=o);n++);n==L&&J(),L=n}return+i.slice(e,L)}if(r&&J(),"true"==i.slice(L,L+4))return L+=4,!0;if("false"==i.slice(L,L+5))return L+=5,!1;if("null"==i.slice(L,L+4))return L+=4,null;J()}return"$"},V=function(t){var e,n;if("$"==t&&J(),"string"==typeof t){if("@"==(T?t.charAt(0):t[0]))return t.slice(1);if("["==t){for(e=[];t=B(),"]"!=t;n||(n=!0))n&&(","==t?(t=B(),"]"==t&&J()):J()),","==t&&J(),e.push(V(t));return e}if("{"==t){for(e={};t=B(),"}"!=t;n||(n=!0))n&&(","==t?(t=B(),"}"==t&&J()):J()),(","==t||"string"!=typeof t||"@"!=(T?t.charAt(0):t[0])||":"!=B())&&J(),e[t.slice(1)]=V(B());return e}J()}return t},F=function(t,e,n){var r=H(t,e,n);r===v?delete t[e]:t[e]=r},H=function(t,e,n){var r,o=t[e];if("object"==typeof o&&o)if(y.call(o)==j)for(r=o.length;r--;)F(o,r,n);else m(o,function(t){F(o,t,n)});return n.call(t,e,o)};e.parse=function(t,e){var n,r;return L=0,M=""+t,n=V(B()),"$"!=B()&&J(),L=M=null,e&&y.call(e)==x?H((r={},r[""]=n,r),"",e):n}}}return e.runInContext=i,e}var s=n(72),a={"function":!0,object:!0},c=a[typeof e]&&e&&!e.nodeType&&e,u=a[typeof window]&&window||this,l=c&&a[typeof t]&&t&&!t.nodeType&&"object"==typeof o&&o;if(!l||l.global!==l&&l.window!==l&&l.self!==l||(u=l),c&&!s)i(u,c);else{var h=u.JSON,f=u.JSON3,p=!1,d=i(u,u.JSON3={noConflict:function(){return p||(p=!0,u.JSON=h,u.JSON3=f,h=f=null),d}});u.JSON={parse:d.parse,stringify:d.stringify}}s&&(r=function(){return d}.call(e,n,e,t),!(void 0!==r&&(t.exports=r)))}).call(this)}).call(e,n(33)(t),function(){return this}())},function(t,e,n){(function(e){"use strict";var r=n(9),o={},i=!1,s=e.chrome&&e.chrome.app&&e.chrome.app.runtime;t.exports={attachEvent:function(t,n){"undefined"!=typeof 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){"undefined"!=typeof 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]}};var a=function(){i||(i=!0,t.exports.triggerUnloadCallbacks())};s||t.exports.attachEvent("unload",a)}).call(e,function(){return this}())},function(t,e,n){(function(e){"use strict";function r(t){return function(e,n,r){c("create ajax sender",e,n);var o={};"string"==typeof n&&(o.headers={"Content-type":"text/plain"});var i=s.addPath(e,"/xhr_send"),a=new t("POST",i,n,o);return a.once("finish",function(t){return c("finish",t),a=null,200!==t&&204!==t?r(new Error("http status "+t)):void r()}),function(){c("abort"),a.close(),a=null;var t=new Error("Aborted");t.code=1e3,r(t)}}}function o(t,e,n,o){a.call(this,t,e,r(o),n,o)}var i=n(1),s=n(5),a=n(29),c=function(){};"production"!==e.env.NODE_ENV&&(c=n(3)("sockjs-client:ajax-based")),i(o,a),t.exports=o}).call(e,n(2))},function(t,e,n){"use strict";var r=n(61),o="abcdefghijklmnopqrstuvwxyz012345";t.exports={string:function(t){for(var e=o.length,n=r.randomBytes(t),i=[],s=0;t>s;s++)i.push(o.substr(n[s]%e,1));return i.join("")},number:function(t){return Math.floor(Math.random()*t)},numberString:function(t){var e=(""+(t-1)).length,n=new Array(e+1).join("0");return(n+this.number(t)).slice(-e)}}},function(t,e,n){"use strict";function r(t,e,n){i.call(this,t,e,n,{noCredentials:!0})}var o=n(1),i=n(24);o(r,i),r.enabled=i.enabled,t.exports=r},function(t,e){(function(e){"use strict";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(e,function(){return this}())},function(t,e,n){(function(e,r){"use strict";var o=n(7),i=n(6),s=n(11),a=function(){};"production"!==e.env.NODE_ENV&&(a=n(3)("sockjs-client:utils:iframe")),t.exports={WPrefix:"_jp",currentWindowId:null,polluteGlobalNamespace:function(){t.exports.WPrefix in r||(r[t.exports.WPrefix]={})},postMessage:function(e,n){r.parent!==r?r.parent.postMessage(i.stringify({windowId:t.exports.currentWindowId,type:e,data:n||""}),"*"):a("Cannot postMessage, no parent window.",e,n)},createIframe:function(t,e){var n,i,s=r.document.createElement("iframe"),c=function(){a("unattach"),clearTimeout(n);try{s.onload=null}catch(t){}s.onerror=null},u=function(){a("cleanup"),s&&(c(),setTimeout(function(){s&&s.parentNode.removeChild(s),s=null},0),o.unloadDel(i))},l=function(t){a("onerror",t),s&&(u(),e(t))},h=function(t,e){a("post",t,e);try{setTimeout(function(){s&&s.contentWindow&&s.contentWindow.postMessage(t,e)},0)}catch(n){}};return s.src=t,s.style.display="none",s.style.position="absolute",s.onerror=function(){l("onerror")},s.onload=function(){a("onload"),clearTimeout(n),n=setTimeout(function(){l("onload timeout")},2e3)},r.document.body.appendChild(s),n=setTimeout(function(){l("timeout")},15e3),i=o.unloadAdd(u),{post:h,cleanup:u,loaded:c}},createHtmlfile:function(e,n){var i,s,c,u=["Active"].concat("Object").join("X"),l=new r[u]("htmlfile"),h=function(){clearTimeout(i),c.onerror=null},f=function(){l&&(h(),o.unloadDel(s),c.parentNode.removeChild(c),c=l=null,CollectGarbage())},p=function(t){a("onerror",t),l&&(f(),n(t))},d=function(t,e){try{setTimeout(function(){c&&c.contentWindow&&c.contentWindow.postMessage(t,e)},0)}catch(n){}};l.open(),l.write('<html><script>document.domain="'+r.document.domain+'";</script></html>'),l.close(),l.parentWindow[t.exports.WPrefix]=r[t.exports.WPrefix];var m=l.createElement("div");return l.body.appendChild(m),c=l.createElement("iframe"),m.appendChild(c),c.src=e,c.onerror=function(){p("onerror")},i=setTimeout(function(){p("timeout")},15e3),s=o.unloadAdd(f),{post:d,cleanup:f,loaded:h}}},t.exports.iframeEnabled=!1,r.document&&(t.exports.iframeEnabled=("function"==typeof r.postMessage||"object"==typeof r.postMessage)&&!s.isKonqueror())}).call(e,n(2),function(){return this}())},function(t,e,n){(function(e){"use strict";function r(t,e){s(t),i.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){s("finish",t,e),n._chunkHandler(t,e),n.xo=null;var r=200===t?"network":"permanent";s("close",r),n.emit("close",null,r),n._cleanup()})}var o=n(1),i=n(4).EventEmitter,s=function(){};"production"!==e.env.NODE_ENV&&(s=n(3)("sockjs-client:receiver:xhr")),o(r,i),r.prototype._chunkHandler=function(t,e){if(s("_chunkHandler",t),200===t&&e)for(var n=-1;;this.bufferPosition+=n+1){var r=e.slice(this.bufferPosition);if(n=r.indexOf("\n"),-1===n)break;var o=r.slice(0,n);o&&(s("message",o),this.emit("message",o))}},r.prototype._cleanup=function(){s("_cleanup"),this.removeAllListeners()},r.prototype.abort=function(){s("abort"),this.xo&&(this.xo.close(),s("close"),this.emit("close",null,"user"),this.xo=null),this._cleanup()},t.exports=r}).call(e,n(2))},function(t,e,n){"use strict";function r(t,e,n,r){i.call(this,t,e,n,r)}var o=n(1),i=n(24);o(r,i),r.enabled=i.enabled&&i.supportsCORS,t.exports=r},function(t,e){"use strict";function n(t){this.type=t}n.prototype.initEvent=function(t,e,n){return this.type=t,this.bubbles=e,this.cancelable=n,this.timeStamp=+new Date,this},n.prototype.stopPropagation=function(){},n.prototype.preventDefault=function(){},n.CAPTURING_PHASE=1,n.AT_TARGET=2,n.BUBBLING_PHASE=3,t.exports=n},function(t,e,n){(function(e){"use strict";var r=n(1),o=n(28),i=n(18);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(e,function(){return this}())},function(t,e,n){(function(e,r){"use strict";function o(t,e,n){l(t,e);var r=this;i.call(this),setTimeout(function(){r._start(t,e,n)},0)}var i=n(4).EventEmitter,s=n(1),a=n(7),c=n(11),u=n(5),l=function(){};"production"!==e.env.NODE_ENV&&(l=n(3)("sockjs-client:sender:xdr")),s(o,i),o.prototype._start=function(t,e,n){l("_start");var o=this,i=new r.XDomainRequest;e=u.addQuery(e,"t="+ +new Date),i.onerror=function(){l("onerror"),o._error()},i.ontimeout=function(){l("ontimeout"),o._error()},i.onprogress=function(){l("progress",i.responseText),o.emit("chunk",200,i.responseText)},i.onload=function(){l("load"),o.emit("finish",200,i.responseText),o._cleanup(!1)},this.xdr=i,this.unloadRef=a.unloadAdd(function(){o._cleanup(!0)});try{this.xdr.open(t,e),this.timeout&&(this.xdr.timeout=this.timeout),this.xdr.send(n)}catch(s){this._error()}},o.prototype._error=function(){this.emit("finish",0,""),this._cleanup(!1)},o.prototype._cleanup=function(t){if(l("cleanup",t),this.xdr){if(this.removeAllListeners(),a.unloadDel(this.unloadRef),this.xdr.ontimeout=this.xdr.onerror=this.xdr.onprogress=this.xdr.onload=null,t)try{this.xdr.abort()}catch(e){}this.unloadRef=this.xdr=null}},o.prototype.close=function(){l("close"),this._cleanup(!0)},o.enabled=!(!r.XDomainRequest||!c.hasDomain()),t.exports=o}).call(e,n(2),function(){return this}())},function(t,e){"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;o>r;r++){e=arguments[r];for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])}return t}}},function(t,e,n){"use strict";function r(t,e,n){if(!(this instanceof r))return new r(t,e,n);var u,l,h,f,p=a.test(t),d=typeof e,m=this,v=0;for("object"!==d&&"string"!==d&&(n=e,e=null),n&&"function"!=typeof n&&(n=s.parse),e=i(e);v<c.length;v++)l=c[v],u=l[0],f=l[1],u!==u?m[f]=t:"string"==typeof u?~(h=t.indexOf(u))&&("number"==typeof l[2]?(m[f]=t.slice(0,h),t=t.slice(h+l[2])):(m[f]=t.slice(h),t=t.slice(0,h))):(h=u.exec(t))&&(m[f]=h[1],t=t.slice(0,t.length-h[0].length)),m[f]=m[f]||(l[3]||"port"===f&&p?e[f]||"":""),l[4]&&(m[f]=m[f].toLowerCase());n&&(m.query=n(m.query)),o(m.port,m.protocol)||(m.host=m.hostname,m.port=""),m.username=m.password="",m.auth&&(l=m.auth.split(":"),m.username=l[0]||"",m.password=l[1]||""),m.href=m.toString()}var o=n(69),i=n(67),s=n(68),a=/^\/(?!\/)/,c=[["#","hash"],["?","query"],["//","protocol",2,1,1],["/","pathname"],["@","auth",1],[NaN,"host",void 0,1,1],[/\:(\d+)$/,"port"],[NaN,"hostname",void 0,1,1]];r.prototype.set=function(t,e,n){var r=this;return"query"===t?("string"==typeof e&&e.length&&(e=(n||s.parse)(e)),r[t]=e):"port"===t?(r[t]=e,o(e,r.protocol)?e&&(r.host=r.hostname+":"+e):(r.host=r.hostname,r[t]="")):"hostname"===t?(r[t]=e,r.port&&(e+=":"+r.port),r.host=e):"host"===t?(r[t]=e,/\:\d+/.test(e)&&(e=e.split(":"),r.hostname=e[0],r.port=e[1])):r[t]=e,r.href=r.toString(),r},r.prototype.toString=function(t){t&&"function"==typeof t||(t=s.stringify);var e,n=this,r=n.protocol+"//";return n.username&&(r+=n.username,n.password&&(r+=":"+n.password),r+="@"),r+=n.hostname,n.port&&(r+=":"+n.port),r+=n.pathname,e="object"==typeof n.query?t(n.query):n.query,e&&(r+="?"!==e.charAt(0)?"?"+e:e),n.hash&&(r+=n.hash),r},r.qs=s,r.location=i,t.exports=r},function(t,e){"use strict";function n(){this._listeners={}}n.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},n.prototype.removeEventListener=function(t,e){var n=this._listeners[t];if(n){var r=n.indexOf(e);return-1!==r?void(n.length>1?this._listeners[t]=n.slice(0,r).concat(n.slice(r+1)):delete this._listeners[t]):void 0}},n.prototype.dispatchEvent=function(t){var e=t.type,n=Array.prototype.slice.call(arguments,0);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=n},function(t,e,n){(function(e){"use strict";function r(t,e){o.call(this);var n=this,r=+new Date;this.xo=new e("GET",t),this.xo.once("finish",function(t,e){var o,i;if(200===t){if(i=+new Date-r,e)try{o=s.parse(e)}catch(u){c("bad json",e)}a.isObject(o)||(o={})}n.emit("finish",o,i),n.removeAllListeners()})}var o=n(4).EventEmitter,i=n(1),s=n(6),a=n(18),c=function(){};"production"!==e.env.NODE_ENV&&(c=n(3)("sockjs-client:info-ajax")),i(r,o),r.prototype.close=function(){this.removeAllListeners(),this.xo.close()},t.exports=r}).call(e,n(2))},function(t,e,n){"use strict";function r(t){var e=this;i.call(this),this.ir=new c(t,a),this.ir.once("finish",function(t,n){e.ir=null,e.emit("message",s.stringify([t,n]))})}var o=n(1),i=n(4).EventEmitter,s=n(6),a=n(10),c=n(21);o(r,i),r.transportName="iframe-info-receiver",r.prototype.close=function(){this.ir&&(this.ir.close(),this.ir=null),this.removeAllListeners()},t.exports=r},function(t,e){(function(e){"use strict";t.exports=e.location||{origin:"http://localhost:80",protocol:"http",host:"localhost",port:80,href:"http://localhost/",hash:""}}).call(e,function(){return this}())},function(t,e,n){(function(e,r){"use strict";function o(t,e,n,r){l(t,e);var o=this;i.call(this),setTimeout(function(){o._start(t,e,n,r)},0)}var i=n(4).EventEmitter,s=n(1),a=n(7),c=n(5),u=e.XMLHttpRequest,l=function(){};"production"!==r.env.NODE_ENV&&(l=n(3)("sockjs-client:browser:xhr")),s(o,i),o.prototype._start=function(t,e,n,r){var i=this;try{this.xhr=new u}catch(s){}if(!this.xhr)return l("no xhr"),this.emit("finish",0,"no xhr support"),void this._cleanup();e=c.addQuery(e,"t="+ +new Date),this.unloadRef=a.unloadAdd(function(){l("unload cleanup"),i._cleanup(!0)});try{this.xhr.open(t,e,!0),this.timeout&&"timeout"in this.xhr&&(this.xhr.timeout=this.timeout,this.xhr.ontimeout=function(){l("xhr timeout"),i.emit("finish",0,""),i._cleanup(!1)})}catch(h){return l("exception",h),this.emit("finish",0,""),void this._cleanup(!1)}if(r&&r.noCredentials||!o.supportsCORS||(l("withCredentials"),this.xhr.withCredentials="true"),r&&r.headers)for(var f in r.headers)this.xhr.setRequestHeader(f,r.headers[f]);this.xhr.onreadystatechange=function(){if(i.xhr){var t,e,n=i.xhr;switch(l("readyState",n.readyState),n.readyState){case 3:try{e=n.status,t=n.responseText}catch(r){}l("status",e),1223===e&&(e=204),200===e&&t&&t.length>0&&(l("chunk"),i.emit("chunk",e,t));break;case 4:e=n.status,l("status",e),1223===e&&(e=204),(12005===e||12029===e)&&(e=0),l("finish",e,n.responseText),i.emit("finish",e,n.responseText),i._cleanup(!1)}}};try{i.xhr.send(n)}catch(h){i.emit("finish",0,""),i._cleanup(!1)}},o.prototype._cleanup=function(t){if(l("cleanup"),this.xhr){if(this.removeAllListeners(),a.unloadDel(this.unloadRef),this.xhr.onreadystatechange=function(){},this.xhr.ontimeout&&(this.xhr.ontimeout=null),t)try{this.xhr.abort()}catch(e){}this.unloadRef=this.xhr=null}},o.prototype.close=function(){l("close"),this._cleanup(!0)},o.enabled=!!u;var h=["Active"].concat("Object").join("X");!o.enabled&&h in e&&(l("overriding xmlhttprequest"),u=function(){try{return new e[h]("Microsoft.XMLHTTP")}catch(t){return null}},o.enabled=!!new u);var f=!1;try{f="withCredentials"in new u}catch(p){}o.supportsCORS=f,t.exports=o}).call(e,function(){return this}(),n(2))},function(t,e){(function(e){t.exports=e.EventSource}).call(e,function(){return this}())},function(t,e,n){"use strict";function r(t){if(!r.enabled())throw new Error("Transport created when disabled");i.call(this,t,"/eventsource",s,a)}var o=n(1),i=n(8),s=n(53),a=n(14),c=n(25);o(r,i),r.enabled=function(){return!!c},r.transportName="eventsource",r.roundTrips=2,t.exports=r},function(t,e,n){"use strict";function r(t){if(!i.enabled)throw new Error("Transport created when disabled");a.call(this,t,"/htmlfile",i,s)}var o=n(1),i=n(54),s=n(10),a=n(8);o(r,a),r.enabled=function(t){return i.enabled&&t.sameOrigin},r.transportName="htmlfile",r.roundTrips=2,t.exports=r},function(t,e,n){(function(e){"use strict";function r(t,e,n){if(!r.enabled())throw new Error("Transport created when disabled");s.call(this);var o=this;this.origin=c.getOrigin(n),this.baseUrl=n,this.transUrl=e,this.transport=t,this.windowId=h.string(8);var i=c.addPath(n,"/iframe.html")+"#"+this.windowId;f(t,e,i),this.iframeObj=u.createIframe(i,function(t){f("err callback"),o.emit("close",1006,"Unable to load an iframe ("+t+")"),o.close()}),this.onmessageCallback=this._message.bind(this),l.attachEvent("message",this.onmessageCallback)}var o=n(1),i=n(6),s=n(4).EventEmitter,a=n(32),c=n(5),u=n(12),l=n(7),h=n(9),f=function(){};"production"!==e.env.NODE_ENV&&(f=n(3)("sockjs-client:transport:iframe")),o(r,s),r.prototype.close=function(){if(f("close"),this.removeAllListeners(),this.iframeObj){l.detachEvent("message",this.onmessageCallback);try{this.postMessage("c")}catch(t){}this.iframeObj.cleanup(),this.iframeObj=null,this.onmessageCallback=this.iframeObj=null}},r.prototype._message=function(t){if(f("message",t.data),!c.isOriginEqual(t.origin,this.origin))return void f("not same origin",t.origin,this.origin);var e;try{e=i.parse(t.data)}catch(n){return void f("bad json",t.data)}if(e.windowId!==this.windowId)return void f("mismatched window id",e.windowId,this.windowId);switch(e.type){case"s":this.iframeObj.loaded(),this.postMessage("s",i.stringify([a,this.transport,this.transUrl,this.baseUrl]));break;case"t":this.emit("message",e.data);break;case"c":var r;try{r=i.parse(e.data)}catch(n){return void f("bad json",e.data)}this.emit("close",r[0],r[1]),this.close()}},r.prototype.postMessage=function(t,e){f("postMessage",t,e),this.iframeObj.post(i.stringify({windowId:this.windowId,type:t,data:e||""}),this.origin)},r.prototype.send=function(t){f("send",t),this.postMessage("m",t)},r.enabled=function(){return u.iframeEnabled},r.transportName="iframe",r.roundTrips=2,t.exports=r}).call(e,n(2))},function(t,e,n){(function(e){"use strict";function r(t,e,n,r,o){var u=i.addPath(t,e);c(u);var l=this;s.call(this,t,n),this.poll=new a(r,u,o),this.poll.on("message",function(t){c("poll message",t),l.emit("message",t)}),this.poll.once("close",function(t,e){c("poll close",t,e),l.poll=null,l.emit("close",t,e),l.close()})}var o=n(1),i=n(5),s=n(51),a=n(52),c=function(){};"production"!==e.env.NODE_ENV&&(c=n(3)("sockjs-client:sender-receiver")),o(r,s),r.prototype.close=function(){c("close"),this.removeAllListeners(),this.poll&&(this.poll.abort(),this.poll=null),this.stop()},t.exports=r}).call(e,n(2))},function(t,e,n){"use strict";function r(t){if(!a.enabled)throw new Error("Transport created when disabled");i.call(this,t,"/xhr_streaming",s,a)}var o=n(1),i=n(8),s=n(13),a=n(17);o(r,i),r.enabled=function(t){return t.cookie_needed||t.nullOrigin?!1:a.enabled&&t.sameScheme},r.transportName="xdr-streaming",r.roundTrips=2,t.exports=r},function(t,e,n){"use strict";function r(t){if(!c.enabled&&!a.enabled)throw new Error("Transport created when disabled");i.call(this,t,"/xhr",s,a)}var o=n(1),i=n(8),s=n(13),a=n(14),c=n(10);o(r,i),r.enabled=function(t){return t.nullOrigin?!1:c.enabled&&t.sameOrigin?!0:a.enabled},r.transportName="xhr-polling",r.roundTrips=2,t.exports=r},function(t,e){t.exports="1.0.3"},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children=[],t.webpackPolyfill=1),t}},function(t,e,n){var r;(function(t,o){!function(i){function s(t){throw RangeError(I[t])}function a(t,e){for(var n=t.length,r=[];n--;)r[n]=e(t[n]);return r}function c(t,e){var n=t.split("@"),r="";n.length>1&&(r=n[0]+"@",t=n[1]),t=t.replace(k,".");var o=t.split("."),i=a(o,e).join(".");return r+i}function u(t){for(var e,n,r=[],o=0,i=t.length;i>o;)e=t.charCodeAt(o++),e>=55296&&56319>=e&&i>o?(n=t.charCodeAt(o++),56320==(64512&n)?r.push(((1023&e)<<10)+(1023&n)+65536):(r.push(e),o--)):r.push(e);return r}function l(t){return a(t,function(t){var e="";return t>65535&&(t-=65536,e+=P(t>>>10&1023|55296),t=56320|1023&t),e+=P(t)}).join("")}function h(t){return 10>t-48?t-22:26>t-65?t-65:26>t-97?t-97:x}function f(t,e){return t+22+75*(26>t)-((0!=e)<<5)}function p(t,e,n){var r=0;for(t=n?D(t/j):t>>1,t+=D(t/e);t>R*E>>1;r+=x)t=D(t/R);return D(r+(R+1)*t/(t+O))}function d(t){var e,n,r,o,i,a,c,u,f,d,m=[],v=t.length,g=0,y=T,b=S;for(n=t.lastIndexOf(C),0>n&&(n=0),r=0;n>r;++r)t.charCodeAt(r)>=128&&s("not-basic"),m.push(t.charCodeAt(r));for(o=n>0?n+1:0;v>o;){for(i=g,a=1,c=x;o>=v&&s("invalid-input"),u=h(t.charCodeAt(o++)),(u>=x||u>D((w-g)/a))&&s("overflow"),
|
|
2
2
|
g+=u*a,f=b>=c?_:c>=b+E?E:c-b,!(f>u);c+=x)d=x-f,a>D(w/d)&&s("overflow"),a*=d;e=m.length+1,b=p(g-i,e,0==i),D(g/e)>w-y&&s("overflow"),y+=D(g/e),g%=e,m.splice(g++,0,y)}return l(m)}function m(t){var e,n,r,o,i,a,c,l,h,d,m,v,g,y,b,O=[];for(t=u(t),v=t.length,e=T,n=0,i=S,a=0;v>a;++a)m=t[a],128>m&&O.push(P(m));for(r=o=O.length,o&&O.push(C);v>r;){for(c=w,a=0;v>a;++a)m=t[a],m>=e&&c>m&&(c=m);for(g=r+1,c-e>D((w-n)/g)&&s("overflow"),n+=(c-e)*g,e=c,a=0;v>a;++a)if(m=t[a],e>m&&++n>w&&s("overflow"),m==e){for(l=n,h=x;d=i>=h?_:h>=i+E?E:h-i,!(d>l);h+=x)b=l-d,y=x-d,O.push(P(f(d+b%y,0))),l=D(b/y);O.push(P(f(l,0))),i=p(n,g,r==o),n=0,++r}++n,++e}return O.join("")}function v(t){return c(t,function(t){return N.test(t)?d(t.slice(4).toLowerCase()):t})}function g(t){return c(t,function(t){return A.test(t)?"xn--"+m(t):t})}var y=("object"==typeof e&&e&&!e.nodeType&&e,"object"==typeof t&&t&&!t.nodeType&&t,"object"==typeof o&&o);(y.global===y||y.window===y||y.self===y)&&(i=y);var b,w=2147483647,x=36,_=1,E=26,O=38,j=700,S=72,T=128,C="-",N=/^xn--/,A=/[^\x20-\x7E]/,k=/[\x2E\u3002\uFF0E\uFF61]/g,I={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},R=x-_,D=Math.floor,P=String.fromCharCode;b={version:"1.3.2",ucs2:{decode:u,encode:l},decode:d,encode:m,toASCII:g,toUnicode:v},r=function(){return b}.call(e,n,e,t),!(void 0!==r&&(t.exports=r))}(this)}).call(e,n(33)(t),function(){return this}())},function(t,e){"use strict";function n(t,e){return Object.prototype.hasOwnProperty.call(t,e)}t.exports=function(t,e,r,o){e=e||"&",r=r||"=";var i={};if("string"!=typeof t||0===t.length)return i;var s=/\+/g;t=t.split(e);var a=1e3;o&&"number"==typeof o.maxKeys&&(a=o.maxKeys);var c=t.length;a>0&&c>a&&(c=a);for(var u=0;c>u;++u){var l,h,f,p,d=t[u].replace(s,"%20"),m=d.indexOf(r);m>=0?(l=d.substr(0,m),h=d.substr(m+1)):(l=d,h=""),f=decodeURIComponent(l),p=decodeURIComponent(h),n(i,f)?Array.isArray(i[f])?i[f].push(p):i[f]=[i[f],p]:i[f]=p}return i}},function(t,e){"use strict";var n=function(t){switch(typeof t){case"string":return t;case"boolean":return t?"true":"false";case"number":return isFinite(t)?t:"";default:return""}};t.exports=function(t,e,r,o){return e=e||"&",r=r||"=",null===t&&(t=void 0),"object"==typeof t?Object.keys(t).map(function(o){var i=encodeURIComponent(n(o))+r;return Array.isArray(t[o])?t[o].map(function(t){return i+encodeURIComponent(n(t))}).join(e):i+encodeURIComponent(n(t[o]))}).join(e):o?encodeURIComponent(n(o))+r+encodeURIComponent(n(t)):""}},function(t,e,n){"use strict";e.decode=e.parse=n(35),e.encode=e.stringify=n(36)},function(t,e,n){function r(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}function o(t,e,n){if(t&&u(t)&&t instanceof r)return t;var o=new r;return o.parse(t,e,n),o}function i(t){return c(t)&&(t=o(t)),t instanceof r?t.format():r.prototype.format.call(t)}function s(t,e){return o(t,!1,!0).resolve(e)}function a(t,e){return t?o(t,!1,!0).resolveObject(e):e}function c(t){return"string"==typeof t}function u(t){return"object"==typeof t&&null!==t}function l(t){return null===t}function h(t){return null==t}var f=n(34);e.parse=o,e.resolve=s,e.resolveObject=a,e.format=i,e.Url=r;var p=/^([a-z0-9.+-]+:)/i,d=/:[0-9]*$/,m=["<",">",'"',"`"," ","\r","\n"," "],v=["{","}","|","\\","^","`"].concat(m),g=["'"].concat(v),y=["%","/","?",";","#"].concat(g),b=["/","?","#"],w=255,x=/^[a-z0-9A-Z_-]{0,63}$/,_=/^([a-z0-9A-Z_-]{0,63})(.*)$/,E={javascript:!0,"javascript:":!0},O={javascript:!0,"javascript:":!0},j={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},S=n(37);r.prototype.parse=function(t,e,n){if(!c(t))throw new TypeError("Parameter 'url' must be a string, not "+typeof t);var r=t;r=r.trim();var o=p.exec(r);if(o){o=o[0];var i=o.toLowerCase();this.protocol=i,r=r.substr(o.length)}if(n||o||r.match(/^\/\/[^@\/]+@[^@\/]+/)){var s="//"===r.substr(0,2);!s||o&&O[o]||(r=r.substr(2),this.slashes=!0)}if(!O[o]&&(s||o&&!j[o])){for(var a=-1,u=0;u<b.length;u++){var l=r.indexOf(b[u]);-1!==l&&(-1===a||a>l)&&(a=l)}var h,d;d=-1===a?r.lastIndexOf("@"):r.lastIndexOf("@",a),-1!==d&&(h=r.slice(0,d),r=r.slice(d+1),this.auth=decodeURIComponent(h)),a=-1;for(var u=0;u<y.length;u++){var l=r.indexOf(y[u]);-1!==l&&(-1===a||a>l)&&(a=l)}-1===a&&(a=r.length),this.host=r.slice(0,a),r=r.slice(a),this.parseHost(),this.hostname=this.hostname||"";var m="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!m)for(var v=this.hostname.split(/\./),u=0,T=v.length;T>u;u++){var C=v[u];if(C&&!C.match(x)){for(var N="",A=0,k=C.length;k>A;A++)N+=C.charCodeAt(A)>127?"x":C[A];if(!N.match(x)){var I=v.slice(0,u),R=v.slice(u+1),D=C.match(_);D&&(I.push(D[1]),R.unshift(D[2])),R.length&&(r="/"+R.join(".")+r),this.hostname=I.join(".");break}}}if(this.hostname.length>w?this.hostname="":this.hostname=this.hostname.toLowerCase(),!m){for(var P=this.hostname.split("."),U=[],u=0;u<P.length;++u){var L=P[u];U.push(L.match(/[^A-Za-z0-9_-]/)?"xn--"+f.encode(L):L)}this.hostname=U.join(".")}var M=this.port?":"+this.port:"",q=this.hostname||"";this.host=q+M,this.href+=this.host,m&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==r[0]&&(r="/"+r))}if(!E[i])for(var u=0,T=g.length;T>u;u++){var W=g[u],J=encodeURIComponent(W);J===W&&(J=escape(W)),r=r.split(W).join(J)}var B=r.indexOf("#");-1!==B&&(this.hash=r.substr(B),r=r.slice(0,B));var V=r.indexOf("?");if(-1!==V?(this.search=r.substr(V),this.query=r.substr(V+1),e&&(this.query=S.parse(this.query)),r=r.slice(0,V)):e&&(this.search="",this.query={}),r&&(this.pathname=r),j[i]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var M=this.pathname||"",L=this.search||"";this.path=M+L}return this.href=this.format(),this},r.prototype.format=function(){var t=this.auth||"";t&&(t=encodeURIComponent(t),t=t.replace(/%3A/i,":"),t+="@");var e=this.protocol||"",n=this.pathname||"",r=this.hash||"",o=!1,i="";this.host?o=t+this.host:this.hostname&&(o=t+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(o+=":"+this.port)),this.query&&u(this.query)&&Object.keys(this.query).length&&(i=S.stringify(this.query));var s=this.search||i&&"?"+i||"";return e&&":"!==e.substr(-1)&&(e+=":"),this.slashes||(!e||j[e])&&o!==!1?(o="//"+(o||""),n&&"/"!==n.charAt(0)&&(n="/"+n)):o||(o=""),r&&"#"!==r.charAt(0)&&(r="#"+r),s&&"?"!==s.charAt(0)&&(s="?"+s),n=n.replace(/[?#]/g,function(t){return encodeURIComponent(t)}),s=s.replace("#","%23"),e+o+n+s+r},r.prototype.resolve=function(t){return this.resolveObject(o(t,!1,!0)).format()},r.prototype.resolveObject=function(t){if(c(t)){var e=new r;e.parse(t,!1,!0),t=e}var n=new r;if(Object.keys(this).forEach(function(t){n[t]=this[t]},this),n.hash=t.hash,""===t.href)return n.href=n.format(),n;if(t.slashes&&!t.protocol)return Object.keys(t).forEach(function(e){"protocol"!==e&&(n[e]=t[e])}),j[n.protocol]&&n.hostname&&!n.pathname&&(n.path=n.pathname="/"),n.href=n.format(),n;if(t.protocol&&t.protocol!==n.protocol){if(!j[t.protocol])return Object.keys(t).forEach(function(e){n[e]=t[e]}),n.href=n.format(),n;if(n.protocol=t.protocol,t.host||O[t.protocol])n.pathname=t.pathname;else{for(var o=(t.pathname||"").split("/");o.length&&!(t.host=o.shift()););t.host||(t.host=""),t.hostname||(t.hostname=""),""!==o[0]&&o.unshift(""),o.length<2&&o.unshift(""),n.pathname=o.join("/")}if(n.search=t.search,n.query=t.query,n.host=t.host||"",n.auth=t.auth,n.hostname=t.hostname||t.host,n.port=t.port,n.pathname||n.search){var i=n.pathname||"",s=n.search||"";n.path=i+s}return n.slashes=n.slashes||t.slashes,n.href=n.format(),n}var a=n.pathname&&"/"===n.pathname.charAt(0),u=t.host||t.pathname&&"/"===t.pathname.charAt(0),f=u||a||n.host&&t.pathname,p=f,d=n.pathname&&n.pathname.split("/")||[],o=t.pathname&&t.pathname.split("/")||[],m=n.protocol&&!j[n.protocol];if(m&&(n.hostname="",n.port=null,n.host&&(""===d[0]?d[0]=n.host:d.unshift(n.host)),n.host="",t.protocol&&(t.hostname=null,t.port=null,t.host&&(""===o[0]?o[0]=t.host:o.unshift(t.host)),t.host=null),f=f&&(""===o[0]||""===d[0])),u)n.host=t.host||""===t.host?t.host:n.host,n.hostname=t.hostname||""===t.hostname?t.hostname:n.hostname,n.search=t.search,n.query=t.query,d=o;else if(o.length)d||(d=[]),d.pop(),d=d.concat(o),n.search=t.search,n.query=t.query;else if(!h(t.search)){if(m){n.hostname=n.host=d.shift();var v=n.host&&n.host.indexOf("@")>0?n.host.split("@"):!1;v&&(n.auth=v.shift(),n.host=n.hostname=v.shift())}return n.search=t.search,n.query=t.query,l(n.pathname)&&l(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n}if(!d.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var g=d.slice(-1)[0],y=(n.host||t.host)&&("."===g||".."===g)||""===g,b=0,w=d.length;w>=0;w--)g=d[w],"."==g?d.splice(w,1):".."===g?(d.splice(w,1),b++):b&&(d.splice(w,1),b--);if(!f&&!p)for(;b--;b)d.unshift("..");!f||""===d[0]||d[0]&&"/"===d[0].charAt(0)||d.unshift(""),y&&"/"!==d.join("/").substr(-1)&&d.push("");var x=""===d[0]||d[0]&&"/"===d[0].charAt(0);if(m){n.hostname=n.host=x?"":d.length?d.shift():"";var v=n.host&&n.host.indexOf("@")>0?n.host.split("@"):!1;v&&(n.auth=v.shift(),n.host=n.hostname=v.shift())}return f=f||n.host&&d.length,f&&!x&&d.unshift(""),d.length?n.pathname=d.join("/"):(n.pathname=null,n.path=null),l(n.pathname)&&l(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=t.auth||n.auth,n.slashes=n.slashes||t.slashes,n.href=n.format(),n},r.prototype.parseHost=function(){var t=this.host,e=d.exec(t);e&&(e=e[0],":"!==e&&(this.port=e.substr(1)),t=t.substr(0,t.length-e.length)),t&&(this.hostname=t)}},function(t,e,n){(function(e){"use strict";var r=n(48);t.exports=n(46)(r),"_sockjs_onload"in e&&setTimeout(e._sockjs_onload,1)}).call(e,function(){return this}())},function(t,e,n){"use strict";function r(){i.call(this),this.initEvent("close",!1,!1),this.wasClean=!1,this.code=0,this.reason=""}var o=n(1),i=n(15);o(r,i),t.exports=r},function(t,e,n){"use strict";function r(t){i.call(this),this.initEvent("message",!1,!1),this.data=t}var o=n(1),i=n(15);o(r,i),t.exports=r},function(t,e,n){"use strict";function r(t){this._transport=t,t.on("message",this._transportMessage.bind(this)),t.on("close",this._transportClose.bind(this))}var o=n(6),i=n(12);r.prototype._transportClose=function(t,e){i.postMessage("c",o.stringify([t,e]))},r.prototype._transportMessage=function(t){i.postMessage("t",t)},r.prototype._send=function(t){this._transport.send(t)},r.prototype._close=function(){this._transport.close(),this._transport.removeAllListeners()},t.exports=r},function(t,e,n){(function(e){"use strict";var r=n(5),o=n(7),i=n(6),s=n(42),a=n(22),c=n(12),u=n(23),l=function(){};"production"!==e.env.NODE_ENV&&(l=n(3)("sockjs-client:iframe-bootstrap")),t.exports=function(t,e){var n={};e.forEach(function(t){t.facadeTransport&&(n[t.facadeTransport.transportName]=t.facadeTransport)}),n[a.transportName]=a;var h;t.bootstrap_iframe=function(){var e;c.currentWindowId=u.hash.slice(1);var a=function(o){if(o.source===parent&&("undefined"==typeof h&&(h=o.origin),o.origin===h)){var a;try{a=i.parse(o.data)}catch(f){return void l("bad json",o.data)}if(a.windowId===c.currentWindowId)switch(a.type){case"s":var p;try{p=i.parse(a.data)}catch(f){l("bad json",a.data);break}var d=p[0],m=p[1],v=p[2],g=p[3];if(l(d,m,v,g),d!==t.version)throw new Error('Incompatibile SockJS! Main site uses: "'+d+'", the iframe: "'+t.version+'".');if(!r.isOriginEqual(v,u.href)||!r.isOriginEqual(g,u.href))throw new Error("Can't connect to different domain from within an iframe. ("+u.href+", "+v+", "+g+")");e=new s(new n[m](v,g));break;case"m":e._send(a.data);break;case"c":e&&e._close(),e=null}}};o.attachEvent("message",a),c.postMessage("s")}}}).call(e,n(2))},function(t,e,n){(function(e,r){"use strict";function o(t,e){var n=this;i.call(this);var o=function(){var r=n.ifr=new u(l.transportName,e,t);r.once("message",function(t){if(t){var e;try{e=a.parse(t)}catch(r){return h("bad json",t),n.emit("finish"),void n.close()}var o=e[0],i=e[1];n.emit("finish",o,i)}n.close()}),r.once("close",function(){n.emit("finish"),n.close()})};r.document.body?o():c.attachEvent("load",o)}var i=n(4).EventEmitter,s=n(1),a=n(6),c=n(7),u=n(28),l=n(22),h=function(){};"production"!==e.env.NODE_ENV&&(h=n(3)("sockjs-client:info-iframe")),s(o,i),o.enabled=function(){return u.enabled()},o.prototype.close=function(){this.ifr&&this.ifr.close(),this.removeAllListeners(),this.ifr=null},t.exports=o}).call(e,n(2),function(){return this}())},function(t,e,n){(function(e){"use strict";function r(t,e){p(t);var n=this;o.call(this),setTimeout(function(){n.doXhr(t,e)},0)}var o=n(4).EventEmitter,i=n(1),s=n(5),a=n(17),c=n(14),u=n(10),l=n(57),h=n(44),f=n(21),p=function(){};"production"!==e.env.NODE_ENV&&(p=n(3)("sockjs-client:info-receiver")),i(r,o),r._getReceiver=function(t,e,n){return n.sameOrigin?new f(e,u):c.enabled?new f(e,c):a.enabled&&n.sameScheme?new f(e,a):h.enabled()?new h(t,e):new f(e,l)},r.prototype.doXhr=function(t,e){var n=this,o=s.addPath(t,"/info");p("doXhr",o),this.xo=r._getReceiver(t,o,e),this.timeoutRef=setTimeout(function(){p("timeout"),n._cleanup(!1),n.emit("finish")},r.timeout),this.xo.once("finish",function(t,e){p("finish",t,e),n._cleanup(!0),n.emit("finish",t,e)})},r.prototype._cleanup=function(t){p("_cleanup"),clearTimeout(this.timeoutRef),this.timeoutRef=null,!t&&this.xo&&this.xo.close(),this.xo=null},r.prototype.close=function(){p("close"),this.removeAllListeners(),this._cleanup(!1)},r.timeout=8e3,t.exports=r}).call(e,n(2))},function(t,e,n){(function(e,r){"use strict";function o(t,e,n){if(!(this instanceof o))return new o(t,e,n);if(arguments.length<1)throw new TypeError("Failed to construct 'SockJS: 1 argument required, but only 0 present");y.call(this),this.readyState=o.CONNECTING,this.extensions="",this.protocol="",n=n||{},n.protocols_whitelist&&v.warn("'protocols_whitelist' is DEPRECATED. Use 'transports' instead."),this._transportsWhitelist=n.transports;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 u.string(r)}}this._server=n.server||u.numberString(1e3);var i=new s(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 a="https:"===i.protocol;if("https"===b.protocol&&!a)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=h.getOrigin(b.href);this._origin=l?l.toLowerCase():null,i.set("pathname",i.pathname.replace(/\/+$/,"")),this.url=i.href,E("using url",this.url),this._urlInfo={nullOrigin:!m.hasDomain(),sameOrigin:h.isOriginEqual(this.url,b.href),sameScheme:h.isSchemeEqual(this.url,b.href)},this._ir=new _(this.url,this._urlInfo),this._ir.once("finish",this._receiveInfo.bind(this))}function i(t){return 1e3===t||t>=3e3&&4999>=t}n(47);var s=n(19),a=n(1),c=n(6),u=n(9),l=n(62),h=n(5),f=n(7),p=n(64),d=n(18),m=n(11),v=n(63),g=n(15),y=n(20),b=n(23),w=n(40),x=n(41),_=n(45),E=function(){};"production"!==e.env.NODE_ENV&&(r.dbg=n(3),E=r.dbg("sockjs-client:main"));var O;a(o,y),o.prototype.close=function(t,e){if(t&&!i(t))throw new Error("InvalidAccessError: Invalid code");if(e&&e.length>123)throw new SyntaxError("reason argument has an invalid length");if(this.readyState!==o.CLOSING&&this.readyState!==o.CLOSED){var n=!0;this._close(t||1e3,e||"Normal closure",n)}},o.prototype.send=function(t){if("string"!=typeof t&&(t=""+t),this.readyState===o.CONNECTING)throw new Error("InvalidStateError: The connection has not been established yet");this.readyState===o.OPEN&&this._transport.send(l.quote(t))},o.version=n(32),o.CONNECTING=0,o.OPEN=1,o.CLOSING=2,o.CLOSED=3,o.prototype._receiveInfo=function(t,e){if(E("_receiveInfo",e),this._ir=null,!t)return void this._close(1002,"Cannot connect to server");this._rto=this.countRTO(e),this._transUrl=t.base_url?t.base_url:this.url,t=d.extend(t,this._urlInfo),E("info",t);var n=O.filterToEnabled(this._transportsWhitelist,t);this._transports=n.main,E(this._transports.length+" enabled transports"),this._connect()},o.prototype._connect=function(){for(var t=this._transports.shift();t;t=this._transports.shift()){if(E("attempt",t.transportName),t.needBody&&(!r.document.body||"undefined"!=typeof r.document.readyState&&"complete"!==r.document.readyState&&"interactive"!==r.document.readyState))return E("waiting for body"),this._transports.unshift(t),void f.attachEvent("load",this._connect.bind(this));var e=this._rto*t.roundTrips||5e3;this._transportTimeoutId=setTimeout(this._transportTimeout.bind(this),e),E("using timeout",e);var n=h.addPath(this._transUrl,"/"+this._server+"/"+this._generateSessionId());E("transport url",n);var o=new t(n,this._transUrl);return o.on("message",this._transportMessage.bind(this)),o.once("close",this._transportClose.bind(this)),o.transportName=t.transportName,void(this._transport=o)}this._close(2e3,"All transports failed",!1)},o.prototype._transportTimeout=function(){E("_transportTimeout"),this.readyState===o.CONNECTING&&this._transportClose(2007,"Transport timed out")},o.prototype._transportMessage=function(t){E("_transportMessage",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 g("heartbeat")),void E("heartbeat",this.transport)}if(o)try{e=c.parse(o)}catch(i){E("bad json",o)}if("undefined"==typeof e)return void E("empty payload",o);switch(r){case"a":Array.isArray(e)&&e.forEach(function(t){E("message",n.transport,t),n.dispatchEvent(new x(t))});break;case"m":E("message",this.transport,e),this.dispatchEvent(new x(e));break;case"c":Array.isArray(e)&&2===e.length&&this._close(e[0],e[1],!0)}},o.prototype._transportClose=function(t,e){return E("_transportClose",this.transport,t,e),this._transport&&(this._transport.removeAllListeners(),this._transport=null,this.transport=null),i(t)||2e3===t||this.readyState!==o.CONNECTING?void this._close(t,e):void this._connect()},o.prototype._open=function(){E("_open",this._transport.transportName,this.readyState),this.readyState===o.CONNECTING?(this._transportTimeoutId&&(clearTimeout(this._transportTimeoutId),this._transportTimeoutId=null),this.readyState=o.OPEN,this.transport=this._transport.transportName,this.dispatchEvent(new g("open")),E("connected",this.transport)):this._close(1006,"Server lost session")},o.prototype._close=function(t,e,n){E("_close",this.transport,t,e,n,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===o.CLOSED)throw new Error("InvalidStateError: SockJS has already been closed");this.readyState=o.CLOSING,setTimeout(function(){this.readyState=o.CLOSED,r&&this.dispatchEvent(new g("error"));var i=new w("close");i.wasClean=n||!1,i.code=t||1e3,i.reason=e,this.dispatchEvent(i),this.onmessage=this.onclose=this.onerror=null,E("disconnected")}.bind(this),0)},o.prototype.countRTO=function(t){return t>100?4*t:300+t},t.exports=function(t){return O=p(t),n(43)(o,t),o}}).call(e,n(2),function(){return this}())},function(t,e){"use strict";function n(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 r(t){return t>>>0}function o(){}var i,s=Array.prototype,a=Object.prototype,c=Function.prototype,u=String.prototype,l=s.slice,h=a.toString,f=function(t){return"[object Function]"===a.toString.call(t)},p=function(t){return"[object Array]"===h.call(t)},d=function(t){return"[object String]"===h.call(t)},m=Object.defineProperty&&function(){try{return Object.defineProperty({},"x",{}),!0}catch(t){return!1}}();i=m?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 v=function(t,e,n){for(var r in e)a.hasOwnProperty.call(e,r)&&i(t,r,e[r],n)},g=function(t){if(null==t)throw new TypeError("can't convert "+t+" to object");return Object(t)};v(c,{bind:function(t){var e=this;if(!f(e))throw new TypeError("Function.prototype.bind called on incompatible "+e);for(var n=l.call(arguments,1),r=function(){if(this instanceof c){var r=e.apply(this,n.concat(l.call(arguments)));return Object(r)===r?r:this}return e.apply(t,n.concat(l.call(arguments)))},i=Math.max(0,e.length-n.length),s=[],a=0;i>a;a++)s.push("$"+a);var c=Function("binder","return function ("+s.join(",")+"){ return binder.apply(this, arguments); }")(r);return e.prototype&&(o.prototype=e.prototype,c.prototype=new o,o.prototype=null),c}}),v(Array,{isArray:p});var y=Object("a"),b="a"!==y[0]||!(0 in y),w=function(t){var e=!0,n=!0;return t&&(t.call("foo",function(t,n,r){"object"!=typeof r&&(e=!1)}),t.call([1],function(){n="string"==typeof this},"x")),!!t&&e&&n};v(s,{forEach:function(t){var e=g(this),n=b&&d(this)?this.split(""):e,r=arguments[1],o=-1,i=n.length>>>0;if(!f(t))throw new TypeError;for(;++o<i;)o in n&&t.call(r,n[o],o,e)}},!w(s.forEach));var x=Array.prototype.indexOf&&-1!==[0,1].indexOf(1,2);v(s,{indexOf:function(t){var e=b&&d(this)?this.split(""):g(this),r=e.length>>>0;if(!r)return-1;var o=0;for(arguments.length>1&&(o=n(arguments[1])),o=o>=0?o:Math.max(0,r+o);r>o;o++)if(o in e&&e[o]===t)return o;return-1}},x);var _=u.split;2!=="ab".split(/(?:ab)*/).length||4!==".".split(/(.?)(.?)/).length||"t"==="tesst".split(/(s)*/)[1]||4!=="test".split(/(?:)/,-1).length||"".split(/.?/).length||".".split(/()()/).length>1?!function(){var t=void 0===/()??/.exec("")[1];u.split=function(e,n){var o=this;if(void 0===e&&0===n)return[];if("[object RegExp]"!==h.call(e))return _.call(this,e,n);var i,a,c,u,l=[],f=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.extended?"x":"")+(e.sticky?"y":""),p=0;for(e=new RegExp(e.source,f+"g"),o+="",t||(i=new RegExp("^"+e.source+"$(?!\\s)",f)),n=void 0===n?-1>>>0:r(n);(a=e.exec(o))&&(c=a.index+a[0].length,!(c>p&&(l.push(o.slice(p,a.index)),!t&&a.length>1&&a[0].replace(i,function(){for(var t=1;t<arguments.length-2;t++)void 0===arguments[t]&&(a[t]=void 0)}),a.length>1&&a.index<o.length&&s.push.apply(l,a.slice(1)),u=a[0].length,p=c,l.length>=n)));)e.lastIndex===a.index&&e.lastIndex++;return p===o.length?(u||!e.test(""))&&l.push(""):l.push(o.slice(p)),l.length>n?l.slice(0,n):l}}():"0".split(void 0,0).length&&(u.split=function(t,e){return void 0===t&&0===e?[]:_.call(this,t,e)});var E=" \n\x0B\f\r \u2028\u2029\ufeff",O="",j="["+E+"]",S=new RegExp("^"+j+j+"*"),T=new RegExp(j+j+"*$"),C=u.trim&&(E.trim()||!O.trim());v(u,{trim:function(){if(void 0===this||null===this)throw new TypeError("can't convert "+this+" to object");return String(this).replace(S,"").replace(T,"")}},C);var N=u.substr,A="".substr&&"b"!=="0b".substr(-1);v(u,{substr:function(t,e){return N.call(this,0>t&&(t=this.length+t)<0?0:t,e)}},A)},function(t,e,n){"use strict";t.exports=[n(58),n(60),n(30),n(26),n(16)(n(26)),n(27),n(16)(n(27)),n(31),n(59),n(16)(n(31)),n(50)]},function(t,e){(function(e){t.exports=e.WebSocket||e.MozWebSocket}).call(e,function(){return this}())},function(t,e,n){(function(e){"use strict";function r(t){if(!r.enabled())throw new Error("Transport created when disabled");i.call(this,t,"/jsonp",a,s)}var o=n(1),i=n(29),s=n(55),a=n(56);o(r,i),r.enabled=function(){return!!e.document},r.transportName="jsonp-polling",r.roundTrips=1,r.needBody=!0,t.exports=r}).call(e,function(){return this}())},function(t,e,n){(function(e){"use strict";function r(t,e){s(t),i.call(this),this.sendBuffer=[],this.sender=e,this.url=t}var o=n(1),i=n(4).EventEmitter,s=function(){};"production"!==e.env.NODE_ENV&&(s=n(3)("sockjs-client:buffered-sender")),o(r,i),r.prototype.send=function(t){s("send",t),this.sendBuffer.push(t),this.sendStop||this.sendSchedule()},r.prototype.sendScheduleWait=function(){s("sendScheduleWait");var t,e=this;this.sendStop=function(){s("sendStop"),e.sendStop=null,clearTimeout(t)},t=setTimeout(function(){s("timeout"),e.sendStop=null,e.sendSchedule()},25)},r.prototype.sendSchedule=function(){s("sendSchedule",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?(s("error",e),t.emit("close",e.code||1006,"Sending error: "+e),t._cleanup()):t.sendScheduleWait()}),this.sendBuffer=[]}},r.prototype._cleanup=function(){s("_cleanup"),this.removeAllListeners()},r.prototype.stop=function(){s("stop"),this._cleanup(),this.sendStop&&(this.sendStop(),this.sendStop=null)},t.exports=r}).call(e,n(2))},function(t,e,n){(function(e){"use strict";function r(t,e,n){s(e),i.call(this),this.Receiver=t,this.receiveUrl=e,this.AjaxObject=n,this._scheduleReceiver()}var o=n(1),i=n(4).EventEmitter,s=function(){};"production"!==e.env.NODE_ENV&&(s=n(3)("sockjs-client:polling")),o(r,i),r.prototype._scheduleReceiver=function(){s("_scheduleReceiver");var t=this,e=this.poll=new this.Receiver(this.receiveUrl,this.AjaxObject);e.on("message",function(e){s("message",e),t.emit("message",e)}),e.once("close",function(n,r){s("close",n,r,t.pollIsClosing),t.poll=e=null,t.pollIsClosing||("network"===r?t._scheduleReceiver():(t.emit("close",n||1006,r),t.removeAllListeners()))})},r.prototype.abort=function(){s("abort"),this.removeAllListeners(),this.pollIsClosing=!0,this.poll&&this.poll.abort()},t.exports=r}).call(e,n(2))},function(t,e,n){(function(e){"use strict";function r(t){a(t),i.call(this);var e=this,n=this.es=new s(t);n.onmessage=function(t){a("message",t.data),e.emit("message",decodeURI(t.data))},n.onerror=function(t){a("error",n.readyState,t);var r=2!==n.readyState?"network":"permanent";e._cleanup(),e._close(r)}}var o=n(1),i=n(4).EventEmitter,s=n(25),a=function(){};"production"!==e.env.NODE_ENV&&(a=n(3)("sockjs-client:receiver:eventsource")),o(r,i),r.prototype.abort=function(){a("abort"),this._cleanup(),this._close("user")},r.prototype._cleanup=function(){a("cleanup");var t=this.es;t&&(t.onmessage=t.onerror=null,t.close(),this.es=null)},r.prototype._close=function(t){a("close",t);var e=this;setTimeout(function(){e.emit("close",null,t),e.removeAllListeners()},200)},t.exports=r}).call(e,n(2))},function(t,e,n){(function(e,r){"use strict";function o(t){l(t),c.call(this);var e=this;s.polluteGlobalNamespace(),this.id="a"+u.string(6),t=a.addQuery(t,"c="+decodeURIComponent(s.WPrefix+"."+this.id)),l("using htmlfile",o.htmlfileEnabled);var n=o.htmlfileEnabled?s.createHtmlfile:s.createIframe;r[s.WPrefix][this.id]={start:function(){l("start"),e.iframeObj.loaded()},message:function(t){l("message",t),e.emit("message",t)},stop:function(){l("stop"),e._cleanup(),e._close("network")}},this.iframeObj=n(t,function(){l("callback"),e._cleanup(),e._close("permanent")})}var i=n(1),s=n(12),a=n(5),c=n(4).EventEmitter,u=n(9),l=function(){};"production"!==e.env.NODE_ENV&&(l=n(3)("sockjs-client:receiver:htmlfile")),i(o,c),o.prototype.abort=function(){l("abort"),this._cleanup(),this._close("user")},o.prototype._cleanup=function(){l("_cleanup"),this.iframeObj&&(this.iframeObj.cleanup(),this.iframeObj=null),delete r[s.WPrefix][this.id]},o.prototype._close=function(t){l("_close",t),this.emit("close",null,t),this.removeAllListeners()},o.htmlfileEnabled=!1;var h=["Active"].concat("Object").join("X");if(h in r)try{o.htmlfileEnabled=!!new r[h]("htmlfile")}catch(f){}o.enabled=o.htmlfileEnabled||s.iframeEnabled,t.exports=o}).call(e,n(2),function(){return this}())},function(t,e,n){(function(e,r){"use strict";function o(t){h(t);var e=this;l.call(this),i.polluteGlobalNamespace(),this.id="a"+s.string(6);var n=c.addQuery(t,"c="+encodeURIComponent(i.WPrefix+"."+this.id));r[i.WPrefix][this.id]=this._callback.bind(this),this._createScript(n),this.timeoutId=setTimeout(function(){h("timeout"),e._abort(new Error("JSONP script loaded abnormally (timeout)"))},o.timeout)}var i=n(12),s=n(9),a=n(11),c=n(5),u=n(1),l=n(4).EventEmitter,h=function(){};"production"!==e.env.NODE_ENV&&(h=n(3)("sockjs-client:receiver:jsonp")),u(o,l),o.prototype.abort=function(){if(h("abort"),r[i.WPrefix][this.id]){var t=new Error("JSONP user aborted read");t.code=1e3,this._abort(t)}},o.timeout=35e3,o.scriptErrorTimeout=1e3,o.prototype._callback=function(t){h("_callback",t),this._cleanup(),this.aborting||(t&&(h("message",t),this.emit("message",t)),this.emit("close",null,"network"),this.removeAllListeners())},o.prototype._abort=function(t){h("_abort",t),this._cleanup(),this.aborting=!0,this.emit("close",t.code,t.message),this.removeAllListeners()},o.prototype._cleanup=function(){if(h("_cleanup"),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 r[i.WPrefix][this.id]},o.prototype._scriptError=function(){h("_scriptError");var t=this;this.errorTimer||(this.errorTimer=setTimeout(function(){t.loadedOkay||t._abort(new Error("JSONP script loaded abnormally (onerror)"))},o.scriptErrorTimeout))},o.prototype._createScript=function(t){h("_createScript",t);var e,n=this,o=this.script=r.document.createElement("script");if(o.id="a"+s.string(8),o.src=t,o.type="text/javascript",o.charset="UTF-8",o.onerror=this._scriptError.bind(this),o.onload=function(){h("onload"),n._abort(new Error("JSONP script loaded abnormally (onload)"))},o.onreadystatechange=function(){if(h("onreadystatechange",o.readyState),/loaded|closed/.test(o.readyState)){if(o&&o.htmlFor&&o.onclick){n.loadedOkay=!0;try{o.onclick()}catch(t){}}o&&n._abort(new Error("JSONP script loaded abnormally (onreadystatechange)"))}},"undefined"==typeof o.async&&r.document.attachEvent)if(a.isOpera())e=this.script2=r.document.createElement("script"),e.text="try{var a = document.getElementById('"+o.id+"'); if(a)a.onerror();}catch(x){};",o.async=e.async=!1;else{try{o.htmlFor=o.id,o.event="onclick"}catch(i){}o.async=!0}"undefined"!=typeof o.async&&(o.async=!0);var c=r.document.getElementsByTagName("head")[0];c.insertBefore(o,c.firstChild),e&&c.insertBefore(e,c.firstChild)},t.exports=o}).call(e,n(2),function(){return this}())},function(t,e,n){(function(e,r){"use strict";function o(t){c("createIframe",t);try{return r.document.createElement('<iframe name="'+t+'">')}catch(e){var n=r.document.createElement("iframe");return n.name=t,n}}function i(){c("createForm"),u=r.document.createElement("form"),u.style.display="none",u.style.position="absolute",u.method="POST",u.enctype="application/x-www-form-urlencoded",u.acceptCharset="UTF-8",l=r.document.createElement("textarea"),l.name="d",u.appendChild(l),r.document.body.appendChild(u)}var s=n(9),a=n(5),c=function(){};"production"!==e.env.NODE_ENV&&(c=n(3)("sockjs-client:sender:jsonp"));var u,l;t.exports=function(t,e,n){c(t,e),u||i();var r="a"+s.string(8);u.target=r,u.action=a.addQuery(a.addPath(t,"/jsonp_send"),"i="+r);var h=o(r);h.id=r,h.style.display="none",u.appendChild(h);try{l.value=e}catch(f){}u.submit();var p=function(t){c("completed",r,t),h.onerror&&(h.onreadystatechange=h.onerror=h.onload=null,setTimeout(function(){c("cleaning up",r),h.parentNode.removeChild(h),h=null},500),l.value="",n(t))};return h.onerror=function(){c("onerror",r),p()},h.onload=function(){c("onload",r),p()},h.onreadystatechange=function(t){c("onreadystatechange",r,h.readyState,t),"complete"===h.readyState&&p()},function(){c("aborted",r),p(new Error("Aborted"));
|
|
3
3
|
}}}).call(e,n(2),function(){return this}())},function(t,e,n){"use strict";function r(){var t=this;o.call(this),this.to=setTimeout(function(){t.emit("finish",200,"{}")},r.timeout)}var o=n(4).EventEmitter,i=n(1);i(r,o),r.prototype.close=function(){clearTimeout(this.to)},r.timeout=2e3,t.exports=r},function(t,e,n){(function(e){"use strict";function r(t){if(!r.enabled())throw new Error("Transport created when disabled");a.call(this),u("constructor",t);var e=this,n=i.addPath(t,"/websocket");n="https"===n.slice(0,5)?"wss"+n.slice(5):"ws"+n.slice(4),this.url=n,this.ws=new c(this.url),this.ws.onmessage=function(t){u("message event",t.data),e.emit("message",t.data)},this.unloadRef=o.unloadAdd(function(){u("unload"),e.ws.close()}),this.ws.onclose=function(t){u("close event",t.code,t.reason),e.emit("close",t.code,t.reason),e._cleanup()},this.ws.onerror=function(t){u("error event",t),e.emit("close",1006,"WebSocket connection broken"),e._cleanup()}}var o=n(7),i=n(5),s=n(1),a=n(4).EventEmitter,c=n(49),u=function(){};"production"!==e.env.NODE_ENV&&(u=n(3)("sockjs-client:websocket")),s(r,a),r.prototype.send=function(t){var e="["+t+"]";u("send",e),this.ws.send(e)},r.prototype.close=function(){u("close"),this.ws&&this.ws.close(),this._cleanup()},r.prototype._cleanup=function(){u("_cleanup");var t=this.ws;t&&(t.onmessage=t.onclose=t.onerror=null),o.unloadDel(this.unloadRef),this.unloadRef=this.ws=null,this.removeAllListeners()},r.enabled=function(){return u("enabled"),!!c},r.transportName="websocket",r.roundTrips=2,t.exports=r}).call(e,n(2))},function(t,e,n){"use strict";function r(t){if(!c.enabled)throw new Error("Transport created when disabled");i.call(this,t,"/xhr",a,c)}var o=n(1),i=n(8),s=n(30),a=n(13),c=n(17);o(r,i),r.enabled=s.enabled,r.transportName="xdr-polling",r.roundTrips=2,t.exports=r},function(t,e,n){(function(e){"use strict";function r(t){if(!c.enabled&&!a.enabled)throw new Error("Transport created when disabled");i.call(this,t,"/xhr_streaming",s,a)}var o=n(1),i=n(8),s=n(13),a=n(14),c=n(10),u=n(11);o(r,i),r.enabled=function(t){return t.nullOrigin?!1:u.isOpera()?!1:a.enabled},r.transportName="xhr-streaming",r.roundTrips=2,r.needBody=!!e.document,t.exports=r}).call(e,function(){return this}())},function(t,e){(function(e){"use strict";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;t>n;n++)e[n]=Math.floor(256*Math.random());return e}}).call(e,function(){return this}())},function(t,e,n){"use strict";var r,o=n(6),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,s=function(t){var e,n={},r=[];for(e=0;65536>e;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};t.exports={quote:function(t){var e=o.stringify(t);return i.lastIndex=0,i.test(e)?(r||(r=s(i)),e.replace(i,function(t){return r[t]})):e}}},function(t,e){(function(e){"use strict";var n={};["log","debug","warn"].forEach(function(t){var r=e.console&&e.console[t]&&e.console[t].apply;n[t]=r?function(){return e.console[t].apply(e.console,arguments)}:"log"===t?function(){}:n.log}),t.exports=n}).call(e,function(){return this}())},function(t,e,n){(function(e){"use strict";var r=function(){};"production"!==e.env.NODE_ENV&&(r=n(3)("sockjs-client:utils:transport")),t.exports=function(t){return{filterToEnabled:function(e,n){var o={main:[],facade:[]};return e?"string"==typeof e&&(e=[e]):e=[],t.forEach(function(t){return t?"websocket"===t.transportName&&n.websocket===!1?void r("disabled from server","websocket"):e.length&&-1===e.indexOf(t.transportName)?void r("not in whitelist",t.transportName):void(t.enabled(n)?(r("enabled",t.transportName),o.main.push(t),t.facadeTransport&&o.facade.push(t.facadeTransport)):r("disabled",t.transportName)):void 0}),o}}}}).call(e,n(2))},function(t,e,n){function r(){return e.colors[l++%e.colors.length]}function o(t){function n(){}function o(){var t=o,n=+new Date,i=n-(u||n);t.diff=i,t.prev=u,t.curr=n,u=n,null==t.useColors&&(t.useColors=e.useColors()),null==t.color&&t.useColors&&(t.color=r());var s=Array.prototype.slice.call(arguments);s[0]=e.coerce(s[0]),"string"!=typeof s[0]&&(s=["%o"].concat(s));var a=0;s[0]=s[0].replace(/%([a-z%])/g,function(n,r){if("%%"===n)return n;a++;var o=e.formatters[r];if("function"==typeof o){var i=s[a];n=o.call(t,i),s.splice(a,1),a--}return n}),"function"==typeof e.formatArgs&&(s=e.formatArgs.apply(t,s));var c=o.log||e.log||console.log.bind(console);c.apply(t,s)}n.enabled=!1,o.enabled=!0;var i=e.enabled(t)?o:n;return i.namespace=t,i}function i(t){e.save(t);for(var n=(t||"").split(/[\s,]+/),r=n.length,o=0;r>o;o++)n[o]&&(t=n[o].replace(/\*/g,".*?"),"-"===t[0]?e.skips.push(new RegExp("^"+t.substr(1)+"$")):e.names.push(new RegExp("^"+t+"$")))}function s(){e.enable("")}function a(t){var n,r;for(n=0,r=e.skips.length;r>n;n++)if(e.skips[n].test(t))return!1;for(n=0,r=e.names.length;r>n;n++)if(e.names[n].test(t))return!0;return!1}function c(t){return t instanceof Error?t.stack||t.message:t}e=t.exports=o,e.coerce=c,e.disable=s,e.enable=i,e.enabled=a,e.humanize=n(66),e.names=[],e.skips=[],e.formatters={};var u,l=0},function(t,e){function n(t){if(t=""+t,!(t.length>1e4)){var e=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(t);if(e){var n=parseFloat(e[1]),r=(e[2]||"ms").toLowerCase();switch(r){case"years":case"year":case"yrs":case"yr":case"y":return n*l;case"days":case"day":case"d":return n*u;case"hours":case"hour":case"hrs":case"hr":case"h":return n*c;case"minutes":case"minute":case"mins":case"min":case"m":return n*a;case"seconds":case"second":case"secs":case"sec":case"s":return n*s;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n}}}}function r(t){return t>=u?Math.round(t/u)+"d":t>=c?Math.round(t/c)+"h":t>=a?Math.round(t/a)+"m":t>=s?Math.round(t/s)+"s":t+"ms"}function o(t){return i(t,u,"day")||i(t,c,"hour")||i(t,a,"minute")||i(t,s,"second")||t+" ms"}function i(t,e,n){return e>t?void 0:1.5*e>t?Math.floor(t/e)+" "+n:Math.ceil(t/e)+" "+n+"s"}var s=1e3,a=60*s,c=60*a,u=24*c,l=365.25*u;t.exports=function(t,e){return e=e||{},"string"==typeof t?n(t):e["long"]?o(t):r(t)}},function(t,e,n){(function(e){"use strict";var r,o={hash:1,query:1};t.exports=function(t){t=t||e.location||{},r=r||n(19);var i,s={},a=typeof t;if("blob:"===t.protocol)s=new r(unescape(t.pathname),{});else if("string"===a){s=new r(t,{});for(i in o)delete s[i]}else if("object"===a)for(i in t)i in o||(s[i]=t[i]);return s}}).call(e,function(){return this}())},function(t,e){"use strict";function n(t){for(var e,n=/([^=?&]+)=([^&]*)/g,r={};e=n.exec(t);r[decodeURIComponent(e[1])]=decodeURIComponent(e[2]));return r}function r(t,e){e=e||"";var n=[];"string"!=typeof e&&(e="?");for(var r in t)o.call(t,r)&&n.push(encodeURIComponent(r)+"="+encodeURIComponent(t[r]));return n.length?e+n.join("&"):""}var o=Object.prototype.hasOwnProperty;e.stringify=r,e.parse=n},function(t,e){"use strict";t.exports=function(t,e){if(e=e.split(":")[0],t=+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=n(71)();t.exports=function(t){return"string"==typeof t?t.replace(r,""):t}},function(t,e){"use strict";t.exports=function(){return/[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/g}},function(t,e){(function(e){t.exports=e}).call(e,{})}]);
|
package/client/index.js
CHANGED
|
@@ -2,10 +2,13 @@ var url = require('url');
|
|
|
2
2
|
var SockJS = require("sockjs-client");
|
|
3
3
|
var stripAnsi = require('strip-ansi');
|
|
4
4
|
var scriptElements = document.getElementsByTagName("script");
|
|
5
|
+
var scriptHost = scriptElements[scriptElements.length-1].getAttribute("src").replace(/\/[^\/]+$/, "");
|
|
5
6
|
|
|
7
|
+
// If this bundle is inlined, use the resource query to get the correct url.
|
|
8
|
+
// Else, get the url from the <script> this file was called with.
|
|
6
9
|
var urlParts = url.parse(typeof __resourceQuery === "string" && __resourceQuery ?
|
|
7
10
|
__resourceQuery.substr(1) :
|
|
8
|
-
|
|
11
|
+
(scriptHost ? scriptHost : "/")
|
|
9
12
|
);
|
|
10
13
|
|
|
11
14
|
var sock = null;
|
package/client/live.bundle.js
CHANGED
|
@@ -19,5 +19,5 @@ var n;return n=e.getAttributeNode(t),n&&(Ne[t]?""!==n.value:n.specified)?n.value
|
|
|
19
19
|
* http://sizzlejs.com/
|
|
20
20
|
*/
|
|
21
21
|
function(e,t){function n(e,t,n,r){n=n||[],t=t||k;var o,i,s,a,c=t.nodeType;if(1!==c&&9!==c)return[];if(!e||"string"!=typeof e)return n;if(s=x(t),!s&&!r&&(o=G.exec(e)))if(a=o[1]){if(9===c){if(i=t.getElementById(a),!i||!i.parentNode)return n;if(i.id===a)return n.push(i),n}else if(t.ownerDocument&&(i=t.ownerDocument.getElementById(a))&&w(t,i)&&i.id===a)return n.push(i),n}else{if(o[2])return L.apply(n,O.call(t.getElementsByTagName(e),0)),n;if((a=o[3])&&ae&&t.getElementsByClassName)return L.apply(n,O.call(t.getElementsByClassName(a),0)),n}return h(e,t,n,r,s)}function r(e){return function(t){var n=t.nodeName.toLowerCase();return"input"===n&&t.type===e}}function o(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function i(e,t,n){if(e===t)return n;for(var r=e.nextSibling;r;){if(r===t)return-1;r=r.nextSibling}return 1}function s(e,t,r,o){var i,s,a,c,u,l,f,p,d,h,m=!r&&t!==k,g=(m?"<s>":"")+e.replace(z,"$1<s>"),y=I[_][g];if(y)return o?0:O.call(y,0);for(u=e,l=[],p=0,d=v.preFilter,h=v.filter;u;){(!i||(s=X.exec(u)))&&(s&&(u=u.slice(s[0].length),a.selector=f),l.push(a=[]),f="",m&&(u=" "+u)),i=!1,(s=J.exec(u))&&(f+=s[0],u=u.slice(s[0].length),i=a.push({part:s.pop().replace(z," "),string:s[0],captures:s}));for(c in h)!(s=te[c].exec(u))||d[c]&&!(s=d[c](s,t,r))||(f+=s[0],u=u.slice(s[0].length),i=a.push({part:c,string:s.shift(),captures:s}));if(!i)break}return f&&(a.selector=f),o?u.length:u?n.error(e):O.call(I(g,l),0)}function a(e,t,n,r){var o=t.dir,i=A++;return e||(e=function(e){return e===n}),t.first?function(t){for(;t=t[o];)if(1===t.nodeType)return e(t)&&t}:r?function(t){for(;t=t[o];)if(1===t.nodeType&&e(t))return t}:function(t){for(var n,r=i+"."+m,s=r+"."+g;t=t[o];)if(1===t.nodeType){if((n=t[_])===s)return t.sizset;if("string"==typeof n&&0===n.indexOf(r)){if(t.sizset)return t}else{if(t[_]=s,e(t))return t.sizset=!0,t;t.sizset=!1}}}}function c(e,t){return e?function(n){var r=t(n);return r&&e(r===!0?n:r)}:t}function u(e,t,n){for(var r,o,i=0;r=e[i];i++)o=v.relative[r.part]?a(o,v.relative[r.part],t,n):c(o,v.filter[r.part].apply(null,r.captures.concat(t,n)));return o}function l(e){return function(t){for(var n,r=0;n=e[r];r++)if(n(t))return!0;return!1}}function f(e,t,r,o){for(var i=0,s=t.length;s>i;i++)n(e,t[i],r,o)}function p(e,t,r,o,i,s){var a,c=v.setFilters[t.toLowerCase()];return c||n.error(t),(e||!(a=i))&&f(e||"*",o,a=[],i),a.length>0?c(a,r,s):[]}function d(e,r,o,i){for(var s,a,c,u,l,d,h,m,g,y,v,b,x,w=0,E=e.length,T=te.POS,N=new RegExp("^"+T.source+"(?!"+P+")","i"),C=function(){for(var e=1,n=arguments.length-2;n>e;e++)arguments[e]===t&&(g[e]=t)};E>w;w++){for(s=e[w],a="",m=i,c=0,u=s.length;u>c;c++){if(l=s[c],d=l.string,"PSEUDO"===l.part)for(T.exec(""),h=0;g=T.exec(d);)y=!0,v=T.lastIndex=g.index+g[0].length,v>h&&(a+=d.slice(h,g.index),h=v,b=[r],J.test(a)&&(m&&(b=m),m=i),(x=Y.test(a))&&(a=a.slice(0,-5).replace(J,"$&*"),h++),g.length>1&&g[0].replace(N,C),m=p(a,g[1],g[2],b,m,x)),a="";y||(a+=d),y=!1}a?J.test(a)?f(a,m||[r],o,i):n(a,r,o,i?i.concat(m):m):L.apply(o,m)}return 1===E?o:n.uniqueSort(o)}function h(e,t,n,r,o){e=e.replace(z,"$1");var i,a,c,u,l,f,p,h,y,b=s(e,t,o),x=t.nodeType;if(te.POS.test(e))return d(b,t,n,r);if(r)i=O.call(r,0);else if(1===b.length){if((l=O.call(b[0],0)).length>2&&"ID"===(f=l[0]).part&&9===x&&!o&&v.relative[l[1].part]){if(t=v.find.ID(f.captures[0].replace(ee,""),t,o)[0],!t)return n;e=e.slice(l.shift().string.length)}for(h=(b=Q.exec(l[0].string))&&!b.index&&t.parentNode||t,p="",u=l.length-1;u>=0&&(f=l[u],y=f.part,p=f.string+p,!v.relative[y]);u--)if(v.order.test(y)){if(i=v.find[y](f.captures[0].replace(ee,""),h,o),null==i)continue;e=e.slice(0,e.length-p.length)+p.replace(te[y],""),e||L.apply(n,O.call(i,0));break}}if(e)for(a=E(e,t,o),m=a.dirruns++,null==i&&(i=v.find.TAG("*",Q.test(e)&&t.parentNode||t)),u=0;c=i[u];u++)g=a.runs++,a(c)&&n.push(c);return n}var m,g,y,v,b,x,w,E,T,N,C=!0,S="undefined",_=("sizcache"+Math.random()).replace(".",""),k=e.document,j=k.documentElement,A=0,O=[].slice,L=[].push,D=function(e,t){return e[_]=t||!0,e},M=function(){var e={},t=[];return D(function(n,r){return t.push(n)>v.cacheLength&&delete e[t.shift()],e[n]=r},e)},H=M(),I=M(),R=M(),P="[\\x20\\t\\r\\n\\f]",F="(?:\\\\.|[-\\w]|[^\\x00-\\xa0])+",q=F.replace("w","w#"),B="([*^$|!~]?=)",W="\\["+P+"*("+F+")"+P+"*(?:"+B+P+"*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|("+q+")|)|)"+P+"*\\]",U=":("+F+")(?:\\((?:(['\"])((?:\\\\.|[^\\\\])*?)\\2|([^()[\\]]*|(?:(?:"+W+")|[^:]|\\\\.)*|.*))\\)|)",$=":(nth|eq|gt|lt|first|last|even|odd)(?:\\(((?:-\\d)?\\d*)\\)|)(?=[^-]|$)",z=new RegExp("^"+P+"+|((?:^|[^\\\\])(?:\\\\.)*)"+P+"+$","g"),X=new RegExp("^"+P+"*,"+P+"*"),J=new RegExp("^"+P+"*([\\x20\\t\\r\\n\\f>+~])"+P+"*"),V=new RegExp(U),G=/^(?:#([\w\-]+)|(\w+)|\.([\w\-]+))$/,Q=/[\x20\t\r\n\f]*[+~]/,Y=/:not\($/,K=/h\d/i,Z=/input|select|textarea|button/i,ee=/\\(?!\\)/g,te={ID:new RegExp("^#("+F+")"),CLASS:new RegExp("^\\.("+F+")"),NAME:new RegExp("^\\[name=['\"]?("+F+")['\"]?\\]"),TAG:new RegExp("^("+F.replace("w","w*")+")"),ATTR:new RegExp("^"+W),PSEUDO:new RegExp("^"+U),CHILD:new RegExp("^:(only|nth|last|first)-child(?:\\("+P+"*(even|odd|(([+-]|)(\\d*)n|)"+P+"*(?:([+-]|)"+P+"*(\\d+)|))"+P+"*\\)|)","i"),POS:new RegExp($,"ig"),needsContext:new RegExp("^"+P+"*[>+~]|"+$,"i")},ne=function(e){var t=k.createElement("div");try{return e(t)}catch(n){return!1}finally{t=null}},oe=ne(function(e){return e.appendChild(k.createComment("")),!e.getElementsByTagName("*").length}),ie=ne(function(e){return e.innerHTML="<a href='#'></a>",e.firstChild&&typeof e.firstChild.getAttribute!==S&&"#"===e.firstChild.getAttribute("href")}),se=ne(function(e){e.innerHTML="<select></select>";var t=typeof e.lastChild.getAttribute("multiple");return"boolean"!==t&&"string"!==t}),ae=ne(function(e){return e.innerHTML="<div class='hidden e'></div><div class='hidden'></div>",e.getElementsByClassName&&e.getElementsByClassName("e").length?(e.lastChild.className="e",2===e.getElementsByClassName("e").length):!1}),ce=ne(function(e){e.id=_+0,e.innerHTML="<a name='"+_+"'></a><div name='"+_+"'></div>",j.insertBefore(e,j.firstChild);var t=k.getElementsByName&&k.getElementsByName(_).length===2+k.getElementsByName(_+0).length;return y=!k.getElementById(_),j.removeChild(e),t});try{O.call(j.childNodes,0)[0].nodeType}catch(ue){O=function(e){for(var t,n=[];t=this[e];e++)n.push(t);return n}}n.matches=function(e,t){return n(e,null,null,t)},n.matchesSelector=function(e,t){return n(t,null,null,[e]).length>0},b=n.getText=function(e){var t,n="",r=0,o=e.nodeType;if(o){if(1===o||9===o||11===o){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=b(e)}else if(3===o||4===o)return e.nodeValue}else for(;t=e[r];r++)n+=b(t);return n},x=n.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return t?"HTML"!==t.nodeName:!1},w=n.contains=j.contains?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!!(r&&1===r.nodeType&&n.contains&&n.contains(r))}:j.compareDocumentPosition?function(e,t){return t&&!!(16&e.compareDocumentPosition(t))}:function(e,t){for(;t=t.parentNode;)if(t===e)return!0;return!1},n.attr=function(e,t){var n,r=x(e);return r||(t=t.toLowerCase()),v.attrHandle[t]?v.attrHandle[t](e):se||r?e.getAttribute(t):(n=e.getAttributeNode(t),n?"boolean"==typeof e[t]?e[t]?t:null:n.specified?n.value:null:null)},v=n.selectors={cacheLength:50,createPseudo:D,match:te,order:new RegExp("ID|TAG"+(ce?"|NAME":"")+(ae?"|CLASS":"")),attrHandle:ie?{}:{href:function(e){return e.getAttribute("href",2)},type:function(e){return e.getAttribute("type")}},find:{ID:y?function(e,t,n){if(typeof t.getElementById!==S&&!n){var r=t.getElementById(e);return r&&r.parentNode?[r]:[]}}:function(e,n,r){if(typeof n.getElementById!==S&&!r){var o=n.getElementById(e);return o?o.id===e||typeof o.getAttributeNode!==S&&o.getAttributeNode("id").value===e?[o]:t:[]}},TAG:oe?function(e,t){return typeof t.getElementsByTagName!==S?t.getElementsByTagName(e):void 0}:function(e,t){var n=t.getElementsByTagName(e);if("*"===e){for(var r,o=[],i=0;r=n[i];i++)1===r.nodeType&&o.push(r);return o}return n},NAME:function(e,t){return typeof t.getElementsByName!==S?t.getElementsByName(name):void 0},CLASS:function(e,t,n){return typeof t.getElementsByClassName===S||n?void 0:t.getElementsByClassName(e)}},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(ee,""),e[3]=(e[4]||e[5]||"").replace(ee,""),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1]?(e[2]||n.error(e[0]),e[3]=+(e[3]?e[4]+(e[5]||1):2*("even"===e[2]||"odd"===e[2])),e[4]=+(e[6]+e[7]||"odd"===e[2])):e[2]&&n.error(e[0]),e},PSEUDO:function(e,t,n){var r,o;return te.CHILD.test(e[0])?null:(e[3]?e[2]=e[3]:(r=e[4])&&(V.test(r)&&(o=s(r,t,n,!0))&&(o=r.indexOf(")",r.length-o)-r.length)&&(r=r.slice(0,o),e[0]=e[0].slice(0,o)),e[2]=r),e.slice(0,3))}},filter:{ID:y?function(e){return e=e.replace(ee,""),function(t){return t.getAttribute("id")===e}}:function(e){return e=e.replace(ee,""),function(t){var n=typeof t.getAttributeNode!==S&&t.getAttributeNode("id");return n&&n.value===e}},TAG:function(e){return"*"===e?function(){return!0}:(e=e.replace(ee,"").toLowerCase(),function(t){return t.nodeName&&t.nodeName.toLowerCase()===e})},CLASS:function(e){var t=H[_][e];return t||(t=H(e,new RegExp("(^|"+P+")"+e+"("+P+"|$)"))),function(e){return t.test(e.className||typeof e.getAttribute!==S&&e.getAttribute("class")||"")}},ATTR:function(e,t,r){return t?function(o){var i=n.attr(o,e),s=i+"";if(null==i)return"!="===t;switch(t){case"=":return s===r;case"!=":return s!==r;case"^=":return r&&0===s.indexOf(r);case"*=":return r&&s.indexOf(r)>-1;case"$=":return r&&s.substr(s.length-r.length)===r;case"~=":return(" "+s+" ").indexOf(r)>-1;case"|=":return s===r||s.substr(0,r.length+1)===r+"-"}}:function(t){return null!=n.attr(t,e)}},CHILD:function(e,t,n,r){if("nth"===e){var o=A++;return function(e){var t,i,s=0,a=e;if(1===n&&0===r)return!0;if(t=e.parentNode,t&&(t[_]!==o||!e.sizset)){for(a=t.firstChild;a&&(1!==a.nodeType||(a.sizset=++s,a!==e));a=a.nextSibling);t[_]=o}return i=e.sizset-r,0===n?0===i:i%n===0&&i/n>=0}}return function(t){var n=t;switch(e){case"only":case"first":for(;n=n.previousSibling;)if(1===n.nodeType)return!1;if("first"===e)return!0;n=t;case"last":for(;n=n.nextSibling;)if(1===n.nodeType)return!1;return!0}}},PSEUDO:function(e,t,r,o){var i,s=v.pseudos[e]||v.pseudos[e.toLowerCase()];return s||n.error("unsupported pseudo: "+e),s[_]?s(t,r,o):s.length>1?(i=[e,e,"",t],function(e){return s(e,0,i)}):s}},pseudos:{not:D(function(e,t,n){var r=E(e.replace(z,"$1"),t,n);return function(e){return!r(e)}}),enabled:function(e){return e.disabled===!1},disabled:function(e){return e.disabled===!0},checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,e.selected===!0},parent:function(e){return!v.pseudos.empty(e)},empty:function(e){var t;for(e=e.firstChild;e;){if(e.nodeName>"@"||3===(t=e.nodeType)||4===t)return!1;e=e.nextSibling}return!0},contains:D(function(e){return function(t){return(t.textContent||t.innerText||b(t)).indexOf(e)>-1}}),has:D(function(e){return function(t){return n(e,t).length>0}}),header:function(e){return K.test(e.nodeName)},text:function(e){var t,n;return"input"===e.nodeName.toLowerCase()&&"text"===(t=e.type)&&(null==(n=e.getAttribute("type"))||n.toLowerCase()===t)},radio:r("radio"),checkbox:r("checkbox"),file:r("file"),password:r("password"),image:r("image"),submit:o("submit"),reset:o("reset"),button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},input:function(e){return Z.test(e.nodeName)},focus:function(e){var t=e.ownerDocument;return e===t.activeElement&&(!t.hasFocus||t.hasFocus())&&!(!e.type&&!e.href)},active:function(e){return e===e.ownerDocument.activeElement}},setFilters:{first:function(e,t,n){return n?e.slice(1):[e[0]]},last:function(e,t,n){var r=e.pop();return n?e:[r]},even:function(e,t,n){for(var r=[],o=n?1:0,i=e.length;i>o;o+=2)r.push(e[o]);return r},odd:function(e,t,n){for(var r=[],o=n?0:1,i=e.length;i>o;o+=2)r.push(e[o]);return r},lt:function(e,t,n){return n?e.slice(+t):e.slice(0,+t)},gt:function(e,t,n){return n?e.slice(0,+t+1):e.slice(+t+1)},eq:function(e,t,n){var r=e.splice(+t,1);return n?e:r}}},T=j.compareDocumentPosition?function(e,t){return e===t?(N=!0,0):(e.compareDocumentPosition&&t.compareDocumentPosition?4&e.compareDocumentPosition(t):e.compareDocumentPosition)?-1:1}:function(e,t){if(e===t)return N=!0,0;if(e.sourceIndex&&t.sourceIndex)return e.sourceIndex-t.sourceIndex;var n,r,o=[],s=[],a=e.parentNode,c=t.parentNode,u=a;if(a===c)return i(e,t);if(!a)return-1;if(!c)return 1;for(;u;)o.unshift(u),u=u.parentNode;for(u=c;u;)s.unshift(u),u=u.parentNode;n=o.length,r=s.length;for(var l=0;n>l&&r>l;l++)if(o[l]!==s[l])return i(o[l],s[l]);return l===n?i(e,s[l],-1):i(o[l],t,1)},[0,0].sort(T),C=!N,n.uniqueSort=function(e){var t,n=1;if(N=C,e.sort(T),N)for(;t=e[n];n++)t===e[n-1]&&e.splice(n--,1);return e},n.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},E=n.compile=function(e,t,n){var r,o,i,a=R[_][e];if(a&&a.context===t)return a;for(r=s(e,t,n),o=0,i=r.length;i>o;o++)r[o]=u(r[o],t,n);return a=R(e,l(r)),a.context=t,a.runs=a.dirruns=0,a},k.querySelectorAll&&!function(){var e,t=h,r=/'|\\/g,o=/\=[\x20\t\r\n\f]*([^'"\]]*)[\x20\t\r\n\f]*\]/g,i=[],a=[":active"],c=j.matchesSelector||j.mozMatchesSelector||j.webkitMatchesSelector||j.oMatchesSelector||j.msMatchesSelector;ne(function(e){e.innerHTML="<select><option selected=''></option></select>",e.querySelectorAll("[selected]").length||i.push("\\["+P+"*(?:checked|disabled|ismap|multiple|readonly|selected|value)"),e.querySelectorAll(":checked").length||i.push(":checked")}),ne(function(e){e.innerHTML="<p test=''></p>",e.querySelectorAll("[test^='']").length&&i.push("[*^$]="+P+"*(?:\"\"|'')"),e.innerHTML="<input type='hidden'/>",e.querySelectorAll(":enabled").length||i.push(":enabled",":disabled")}),i=i.length&&new RegExp(i.join("|")),h=function(e,n,o,a,c){if(!(a||c||i&&i.test(e)))if(9===n.nodeType)try{return L.apply(o,O.call(n.querySelectorAll(e),0)),o}catch(u){}else if(1===n.nodeType&&"object"!==n.nodeName.toLowerCase()){var l,f,p,d=n.getAttribute("id"),h=d||_,m=Q.test(e)&&n.parentNode||n;for(d?h=h.replace(r,"\\$&"):n.setAttribute("id",h),l=s(e,n,c),h="[id='"+h+"']",f=0,p=l.length;p>f;f++)l[f]=h+l[f].selector;try{return L.apply(o,O.call(m.querySelectorAll(l.join(",")),0)),o}catch(u){}finally{d||n.removeAttribute("id")}}return t(e,n,o,a,c)},c&&(ne(function(t){e=c.call(t,"div");try{c.call(t,"[test!='']:sizzle"),a.push(te.PSEUDO.source,te.POS.source,"!=")}catch(n){}}),a=new RegExp(a.join("|")),n.matchesSelector=function(t,r){if(r=r.replace(o,"='$1']"),!(x(t)||a.test(r)||i&&i.test(r)))try{var s=c.call(t,r);if(s||e||t.document&&11!==t.document.nodeType)return s}catch(u){}return n(r,null,null,[t]).length>0})}(),v.setFilters.nth=v.setFilters.eq,v.filters=v.pseudos,n.attr=re.attr,re.find=n,re.expr=n.selectors,re.expr[":"]=re.expr.pseudos,re.unique=n.uniqueSort,re.text=n.getText,re.isXMLDoc=n.isXML,re.contains=n.contains}(i);var Fe=/Until$/,qe=/^(?:parents|prev(?:Until|All))/,Be=/^.[^:#\[\.,]*$/,We=re.expr.match.needsContext,Ue={children:!0,contents:!0,next:!0,prev:!0};re.fn.extend({find:function(e){var t,n,r,o,i,s,a=this;if("string"!=typeof e)return re(e).filter(function(){for(t=0,n=a.length;n>t;t++)if(re.contains(a[t],this))return!0});for(s=this.pushStack("","find",e),t=0,n=this.length;n>t;t++)if(r=s.length,re.find(e,this[t],s),t>0)for(o=r;o<s.length;o++)for(i=0;r>i;i++)if(s[i]===s[o]){s.splice(o--,1);break}return s},has:function(e){var t,n=re(e,this),r=n.length;return this.filter(function(){for(t=0;r>t;t++)if(re.contains(this,n[t]))return!0})},not:function(e){return this.pushStack(h(this,e,!1),"not",e)},filter:function(e){return this.pushStack(h(this,e,!0),"filter",e)},is:function(e){return!!e&&("string"==typeof e?We.test(e)?re(e,this.context).index(this[0])>=0:re.filter(e,this).length>0:this.filter(e).length>0)},closest:function(e,t){for(var n,r=0,o=this.length,i=[],s=We.test(e)||"string"!=typeof e?re(e,t||this.context):0;o>r;r++)for(n=this[r];n&&n.ownerDocument&&n!==t&&11!==n.nodeType;){if(s?s.index(n)>-1:re.find.matchesSelector(n,e)){i.push(n);break}n=n.parentNode}return i=i.length>1?re.unique(i):i,this.pushStack(i,"closest",e)},index:function(e){return e?"string"==typeof e?re.inArray(this[0],re(e)):re.inArray(e.jquery?e[0]:e,this):this[0]&&this[0].parentNode?this.prevAll().length:-1},add:function(e,t){var n="string"==typeof e?re(e,t):re.makeArray(e&&e.nodeType?[e]:e),r=re.merge(this.get(),n);return this.pushStack(p(n[0])||p(r[0])?r:re.unique(r))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),re.fn.andSelf=re.fn.addBack,re.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return re.dir(e,"parentNode")},parentsUntil:function(e,t,n){return re.dir(e,"parentNode",n)},next:function(e){return d(e,"nextSibling")},prev:function(e){return d(e,"previousSibling")},nextAll:function(e){return re.dir(e,"nextSibling")},prevAll:function(e){return re.dir(e,"previousSibling")},nextUntil:function(e,t,n){return re.dir(e,"nextSibling",n)},prevUntil:function(e,t,n){return re.dir(e,"previousSibling",n)},siblings:function(e){return re.sibling((e.parentNode||{}).firstChild,e)},children:function(e){return re.sibling(e.firstChild)},contents:function(e){return re.nodeName(e,"iframe")?e.contentDocument||e.contentWindow.document:re.merge([],e.childNodes)}},function(e,t){re.fn[e]=function(n,r){var o=re.map(this,t,n);return Fe.test(e)||(r=n),r&&"string"==typeof r&&(o=re.filter(r,o)),o=this.length>1&&!Ue[e]?re.unique(o):o,this.length>1&&qe.test(e)&&(o=o.reverse()),this.pushStack(o,e,K.call(arguments).join(","))}}),re.extend({filter:function(e,t,n){return n&&(e=":not("+e+")"),1===t.length?re.find.matchesSelector(t[0],e)?[t[0]]:[]:re.find.matches(e,t)},dir:function(e,t,n){for(var r=[],o=e[t];o&&9!==o.nodeType&&(n===s||1!==o.nodeType||!re(o).is(n));)1===o.nodeType&&r.push(o),o=o[t];return r},sibling:function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n}});var $e="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",ze=/ jQuery\d+="(?:null|\d+)"/g,Xe=/^\s+/,Je=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,Ve=/<([\w:]+)/,Ge=/<tbody/i,Qe=/<|&#?\w+;/,Ye=/<(?:script|style|link)/i,Ke=/<(?:script|object|embed|option|style)/i,Ze=new RegExp("<(?:"+$e+")[\\s/>]","i"),et=/^(?:checkbox|radio)$/,tt=/checked\s*(?:[^=]|=\s*.checked.)/i,nt=/\/(java|ecma)script/i,rt=/^\s*<!(?:\[CDATA\[|\-\-)|[\]\-]{2}>\s*$/g,ot={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],area:[1,"<map>","</map>"],_default:[0,"",""]},it=m(X),st=it.appendChild(X.createElement("div"));ot.optgroup=ot.option,ot.tbody=ot.tfoot=ot.colgroup=ot.caption=ot.thead,ot.th=ot.td,re.support.htmlSerialize||(ot._default=[1,"X<div>","</div>"]),re.fn.extend({text:function(e){return re.access(this,function(e){return e===s?re.text(this):this.empty().append((this[0]&&this[0].ownerDocument||X).createTextNode(e))},null,e,arguments.length)},wrapAll:function(e){if(re.isFunction(e))return this.each(function(t){re(this).wrapAll(e.call(this,t))});if(this[0]){var t=re(e,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var e=this;e.firstChild&&1===e.firstChild.nodeType;)e=e.firstChild;return e}).append(this)}return this},wrapInner:function(e){return re.isFunction(e)?this.each(function(t){re(this).wrapInner(e.call(this,t))}):this.each(function(){var t=re(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=re.isFunction(e);return this.each(function(n){re(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(){return this.parent().each(function(){re.nodeName(this,"body")||re(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(e){(1===this.nodeType||11===this.nodeType)&&this.appendChild(e)})},prepend:function(){return this.domManip(arguments,!0,function(e){(1===this.nodeType||11===this.nodeType)&&this.insertBefore(e,this.firstChild)})},before:function(){if(!p(this[0]))return this.domManip(arguments,!1,function(e){this.parentNode.insertBefore(e,this)});if(arguments.length){var e=re.clean(arguments);return this.pushStack(re.merge(e,this),"before",this.selector)}},after:function(){if(!p(this[0]))return this.domManip(arguments,!1,function(e){this.parentNode.insertBefore(e,this.nextSibling)});if(arguments.length){var e=re.clean(arguments);return this.pushStack(re.merge(this,e),"after",this.selector)}},remove:function(e,t){for(var n,r=0;null!=(n=this[r]);r++)(!e||re.filter(e,[n]).length)&&(t||1!==n.nodeType||(re.cleanData(n.getElementsByTagName("*")),re.cleanData([n])),n.parentNode&&n.parentNode.removeChild(n));return this},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)for(1===e.nodeType&&re.cleanData(e.getElementsByTagName("*"));e.firstChild;)e.removeChild(e.firstChild);return this},clone:function(e,t){return e=null==e?!1:e,t=null==t?e:t,this.map(function(){return re.clone(this,e,t)})},html:function(e){return re.access(this,function(e){var t=this[0]||{},n=0,r=this.length;if(e===s)return 1===t.nodeType?t.innerHTML.replace(ze,""):s;if("string"==typeof e&&!Ye.test(e)&&(re.support.htmlSerialize||!Ze.test(e))&&(re.support.leadingWhitespace||!Xe.test(e))&&!ot[(Ve.exec(e)||["",""])[1].toLowerCase()]){e=e.replace(Je,"<$1></$2>");try{for(;r>n;n++)t=this[n]||{},1===t.nodeType&&(re.cleanData(t.getElementsByTagName("*")),t.innerHTML=e);t=0}catch(o){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(e){return p(this[0])?this.length?this.pushStack(re(re.isFunction(e)?e():e),"replaceWith",e):this:re.isFunction(e)?this.each(function(t){var n=re(this),r=n.html();n.replaceWith(e.call(this,t,r))}):("string"!=typeof e&&(e=re(e).detach()),this.each(function(){var t=this.nextSibling,n=this.parentNode;re(this).remove(),t?re(t).before(e):re(n).append(e)}))},detach:function(e){return this.remove(e,!0)},domManip:function(e,t,n){e=[].concat.apply([],e);var r,o,i,a,c=0,u=e[0],l=[],f=this.length;if(!re.support.checkClone&&f>1&&"string"==typeof u&&tt.test(u))return this.each(function(){re(this).domManip(e,t,n)});if(re.isFunction(u))return this.each(function(r){var o=re(this);e[0]=u.call(this,r,t?o.html():s),o.domManip(e,t,n)});if(this[0]){if(r=re.buildFragment(e,this,l),i=r.fragment,o=i.firstChild,1===i.childNodes.length&&(i=o),o)for(t=t&&re.nodeName(o,"tr"),a=r.cacheable||f-1;f>c;c++)n.call(t&&re.nodeName(this[c],"table")?g(this[c],"tbody"):this[c],c===a?i:re.clone(i,!0,!0));i=o=null,l.length&&re.each(l,function(e,t){t.src?re.ajax?re.ajax({url:t.src,type:"GET",dataType:"script",async:!1,global:!1,"throws":!0}):re.error("no ajax"):re.globalEval((t.text||t.textContent||t.innerHTML||"").replace(rt,"")),t.parentNode&&t.parentNode.removeChild(t)})}return this}}),re.buildFragment=function(e,t,n){var r,o,i,a=e[0];return t=t||X,t=!t.nodeType&&t[0]||t,t=t.ownerDocument||t,!(1===e.length&&"string"==typeof a&&a.length<512&&t===X&&"<"===a.charAt(0))||Ke.test(a)||!re.support.checkClone&&tt.test(a)||!re.support.html5Clone&&Ze.test(a)||(o=!0,r=re.fragments[a],i=r!==s),r||(r=t.createDocumentFragment(),re.clean(e,t,r,n),o&&(re.fragments[a]=i&&r)),{fragment:r,cacheable:o}},re.fragments={},re.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){re.fn[e]=function(n){var r,o=0,i=[],s=re(n),a=s.length,c=1===this.length&&this[0].parentNode;if((null==c||c&&11===c.nodeType&&1===c.childNodes.length)&&1===a)return s[t](this[0]),this;for(;a>o;o++)r=(o>0?this.clone(!0):this).get(),re(s[o])[t](r),i=i.concat(r);return this.pushStack(i,e,s.selector)}}),re.extend({clone:function(e,t,n){var r,o,i,s;if(re.support.html5Clone||re.isXMLDoc(e)||!Ze.test("<"+e.nodeName+">")?s=e.cloneNode(!0):(st.innerHTML=e.outerHTML,st.removeChild(s=st.firstChild)),!(re.support.noCloneEvent&&re.support.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||re.isXMLDoc(e)))for(v(e,s),r=b(e),o=b(s),i=0;r[i];++i)o[i]&&v(r[i],o[i]);if(t&&(y(e,s),n))for(r=b(e),o=b(s),i=0;r[i];++i)y(r[i],o[i]);return r=o=null,s},clean:function(e,t,n,r){var o,i,s,a,c,u,l,f,p,d,h,g=t===X&&it,y=[];for(t&&"undefined"!=typeof t.createDocumentFragment||(t=X),o=0;null!=(s=e[o]);o++)if("number"==typeof s&&(s+=""),s){if("string"==typeof s)if(Qe.test(s)){for(g=g||m(t),l=t.createElement("div"),g.appendChild(l),s=s.replace(Je,"<$1></$2>"),a=(Ve.exec(s)||["",""])[1].toLowerCase(),c=ot[a]||ot._default,u=c[0],l.innerHTML=c[1]+s+c[2];u--;)l=l.lastChild;if(!re.support.tbody)for(f=Ge.test(s),p="table"!==a||f?"<table>"!==c[1]||f?[]:l.childNodes:l.firstChild&&l.firstChild.childNodes,i=p.length-1;i>=0;--i)re.nodeName(p[i],"tbody")&&!p[i].childNodes.length&&p[i].parentNode.removeChild(p[i]);!re.support.leadingWhitespace&&Xe.test(s)&&l.insertBefore(t.createTextNode(Xe.exec(s)[0]),l.firstChild),s=l.childNodes,l.parentNode.removeChild(l)}else s=t.createTextNode(s);s.nodeType?y.push(s):re.merge(y,s)}if(l&&(s=l=g=null),!re.support.appendChecked)for(o=0;null!=(s=y[o]);o++)re.nodeName(s,"input")?x(s):"undefined"!=typeof s.getElementsByTagName&&re.grep(s.getElementsByTagName("input"),x);if(n)for(d=function(e){return!e.type||nt.test(e.type)?r?r.push(e.parentNode?e.parentNode.removeChild(e):e):n.appendChild(e):void 0},o=0;null!=(s=y[o]);o++)re.nodeName(s,"script")&&d(s)||(n.appendChild(s),"undefined"!=typeof s.getElementsByTagName&&(h=re.grep(re.merge([],s.getElementsByTagName("script")),d),y.splice.apply(y,[o+1,0].concat(h)),o+=h.length));return y},cleanData:function(e,t){for(var n,r,o,i,s=0,a=re.expando,c=re.cache,u=re.support.deleteExpando,l=re.event.special;null!=(o=e[s]);s++)if((t||re.acceptData(o))&&(r=o[a],n=r&&c[r])){if(n.events)for(i in n.events)l[i]?re.event.remove(o,i):re.removeEvent(o,i,n.handle);c[r]&&(delete c[r],u?delete o[a]:o.removeAttribute?o.removeAttribute(a):o[a]=null,re.deletedIds.push(r))}}}),function(){var e,t;re.uaMatch=function(e){e=e.toLowerCase();var t=/(chrome)[ \/]([\w.]+)/.exec(e)||/(webkit)[ \/]([\w.]+)/.exec(e)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(e)||/(msie) ([\w.]+)/.exec(e)||e.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(e)||[];return{browser:t[1]||"",version:t[2]||"0"}},e=re.uaMatch(V.userAgent),t={},e.browser&&(t[e.browser]=!0,t.version=e.version),t.chrome?t.webkit=!0:t.webkit&&(t.safari=!0),re.browser=t,re.sub=function(){function e(t,n){return new e.fn.init(t,n)}re.extend(!0,e,this),e.superclass=this,e.fn=e.prototype=this(),e.fn.constructor=e,e.sub=this.sub,e.fn.init=function(n,r){return r&&r instanceof re&&!(r instanceof e)&&(r=e(r)),re.fn.init.call(this,n,r,t)},e.fn.init.prototype=e.fn;var t=e(X);return e}}();var at,ct,ut,lt=/alpha\([^)]*\)/i,ft=/opacity=([^)]*)/,pt=/^(top|right|bottom|left)$/,dt=/^(none|table(?!-c[ea]).+)/,ht=/^margin/,mt=new RegExp("^("+oe+")(.*)$","i"),gt=new RegExp("^("+oe+")(?!px)[a-z%]+$","i"),yt=new RegExp("^([-+])=("+oe+")","i"),vt={},bt={position:"absolute",visibility:"hidden",display:"block"},xt={letterSpacing:0,fontWeight:400},wt=["Top","Right","Bottom","Left"],Et=["Webkit","O","Moz","ms"],Tt=re.fn.toggle;re.fn.extend({css:function(e,t){return re.access(this,function(e,t,n){return n!==s?re.style(e,t,n):re.css(e,t)},e,t,arguments.length>1)},show:function(){return T(this,!0)},hide:function(){return T(this)},toggle:function(e,t){var n="boolean"==typeof e;return re.isFunction(e)&&re.isFunction(t)?Tt.apply(this,arguments):this.each(function(){(n?e:E(this))?re(this).show():re(this).hide()})}}),re.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=at(e,"opacity");return""===n?"1":n}}}},cssNumber:{fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":re.support.cssFloat?"cssFloat":"styleFloat"},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var o,i,a,c=re.camelCase(t),u=e.style;if(t=re.cssProps[c]||(re.cssProps[c]=w(u,c)),a=re.cssHooks[t]||re.cssHooks[c],n===s)return a&&"get"in a&&(o=a.get(e,!1,r))!==s?o:u[t];if(i=typeof n,"string"===i&&(o=yt.exec(n))&&(n=(o[1]+1)*o[2]+parseFloat(re.css(e,t)),i="number"),!(null==n||"number"===i&&isNaN(n)||("number"!==i||re.cssNumber[c]||(n+="px"),a&&"set"in a&&(n=a.set(e,n,r))===s)))try{u[t]=n}catch(l){}}},css:function(e,t,n,r){var o,i,a,c=re.camelCase(t);return t=re.cssProps[c]||(re.cssProps[c]=w(e.style,c)),a=re.cssHooks[t]||re.cssHooks[c],a&&"get"in a&&(o=a.get(e,!0,r)),o===s&&(o=at(e,t)),"normal"===o&&t in xt&&(o=xt[t]),n||r!==s?(i=parseFloat(o),n||re.isNumeric(i)?i||0:o):o},swap:function(e,t,n){var r,o,i={};for(o in t)i[o]=e.style[o],e.style[o]=t[o];r=n.call(e);for(o in t)e.style[o]=i[o];return r}}),i.getComputedStyle?at=function(e,t){var n,r,o,s,a=i.getComputedStyle(e,null),c=e.style;return a&&(n=a[t],""!==n||re.contains(e.ownerDocument,e)||(n=re.style(e,t)),gt.test(n)&&ht.test(t)&&(r=c.width,o=c.minWidth,s=c.maxWidth,c.minWidth=c.maxWidth=c.width=n,n=a.width,c.width=r,c.minWidth=o,c.maxWidth=s)),n}:X.documentElement.currentStyle&&(at=function(e,t){var n,r,o=e.currentStyle&&e.currentStyle[t],i=e.style;return null==o&&i&&i[t]&&(o=i[t]),gt.test(o)&&!pt.test(t)&&(n=i.left,r=e.runtimeStyle&&e.runtimeStyle.left,r&&(e.runtimeStyle.left=e.currentStyle.left),i.left="fontSize"===t?"1em":o,o=i.pixelLeft+"px",i.left=n,r&&(e.runtimeStyle.left=r)),""===o?"auto":o}),re.each(["height","width"],function(e,t){re.cssHooks[t]={get:function(e,n,r){return n?0===e.offsetWidth&&dt.test(at(e,"display"))?re.swap(e,bt,function(){return S(e,t,r)}):S(e,t,r):void 0},set:function(e,n,r){return N(e,n,r?C(e,t,r,re.support.boxSizing&&"border-box"===re.css(e,"boxSizing")):0)}}}),re.support.opacity||(re.cssHooks.opacity={get:function(e,t){return ft.test((t&&e.currentStyle?e.currentStyle.filter:e.style.filter)||"")?.01*parseFloat(RegExp.$1)+"":t?"1":""},set:function(e,t){var n=e.style,r=e.currentStyle,o=re.isNumeric(t)?"alpha(opacity="+100*t+")":"",i=r&&r.filter||n.filter||"";n.zoom=1,t>=1&&""===re.trim(i.replace(lt,""))&&n.removeAttribute&&(n.removeAttribute("filter"),r&&!r.filter)||(n.filter=lt.test(i)?i.replace(lt,o):i+" "+o)}}),re(function(){re.support.reliableMarginRight||(re.cssHooks.marginRight={get:function(e,t){return re.swap(e,{display:"inline-block"},function(){return t?at(e,"marginRight"):void 0})}}),!re.support.pixelPosition&&re.fn.position&&re.each(["top","left"],function(e,t){re.cssHooks[t]={get:function(e,n){if(n){var r=at(e,t);return gt.test(r)?re(e).position()[t]+"px":r}}}})}),re.expr&&re.expr.filters&&(re.expr.filters.hidden=function(e){return 0===e.offsetWidth&&0===e.offsetHeight||!re.support.reliableHiddenOffsets&&"none"===(e.style&&e.style.display||at(e,"display"))},re.expr.filters.visible=function(e){return!re.expr.filters.hidden(e)}),re.each({margin:"",padding:"",border:"Width"},function(e,t){re.cssHooks[e+t]={expand:function(n){var r,o="string"==typeof n?n.split(" "):[n],i={};for(r=0;4>r;r++)i[e+wt[r]+t]=o[r]||o[r-2]||o[0];return i}},ht.test(e)||(re.cssHooks[e+t].set=N)});var Nt=/%20/g,Ct=/\[\]$/,St=/\r?\n/g,_t=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,kt=/^(?:select|textarea)/i;re.fn.extend({serialize:function(){return re.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?re.makeArray(this.elements):this;
|
|
22
|
-
}).filter(function(){return this.name&&!this.disabled&&(this.checked||kt.test(this.nodeName)||_t.test(this.type))}).map(function(e,t){var n=re(this).val();return null==n?null:re.isArray(n)?re.map(n,function(e,n){return{name:t.name,value:e.replace(St,"\r\n")}}):{name:t.name,value:n.replace(St,"\r\n")}}).get()}}),re.param=function(e,t){var n,r=[],o=function(e,t){t=re.isFunction(t)?t():null==t?"":t,r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(t)};if(t===s&&(t=re.ajaxSettings&&re.ajaxSettings.traditional),re.isArray(e)||e.jquery&&!re.isPlainObject(e))re.each(e,function(){o(this.name,this.value)});else for(n in e)k(n,e[n],t,o);return r.join("&").replace(Nt,"+")};var jt,At,Ot=/#.*$/,Lt=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,Dt=/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/,Mt=/^(?:GET|HEAD)$/,Ht=/^\/\//,It=/\?/,Rt=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,Pt=/([?&])_=[^&]*/,Ft=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+)|)|)/,qt=re.fn.load,Bt={},Wt={},Ut=["*/"]+["*"];try{jt=J.href}catch($t){jt=X.createElement("a"),jt.href="",jt=jt.href}At=Ft.exec(jt.toLowerCase())||[],re.fn.load=function(e,t,n){if("string"!=typeof e&&qt)return qt.apply(this,arguments);if(!this.length)return this;var r,o,i,a=this,c=e.indexOf(" ");return c>=0&&(r=e.slice(c,e.length),e=e.slice(0,c)),re.isFunction(t)?(n=t,t=s):t&&"object"==typeof t&&(o="POST"),re.ajax({url:e,type:o,dataType:"html",data:t,complete:function(e,t){n&&a.each(n,i||[e.responseText,t,e])}}).done(function(e){i=arguments,a.html(r?re("<div>").append(e.replace(Rt,"")).find(r):e)}),this},re.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(e,t){re.fn[t]=function(e){return this.on(t,e)}}),re.each(["get","post"],function(e,t){re[t]=function(e,n,r,o){return re.isFunction(n)&&(o=o||r,r=n,n=s),re.ajax({type:t,url:e,data:n,success:r,dataType:o})}}),re.extend({getScript:function(e,t){return re.get(e,s,t,"script")},getJSON:function(e,t,n){return re.get(e,t,n,"json")},ajaxSetup:function(e,t){return t?O(e,re.ajaxSettings):(t=e,e=re.ajaxSettings),O(e,t),e},ajaxSettings:{url:jt,isLocal:Dt.test(At[1]),global:!0,type:"GET",contentType:"application/x-www-form-urlencoded; charset=UTF-8",processData:!0,async:!0,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":Ut},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":i.String,"text html":!0,"text json":re.parseJSON,"text xml":re.parseXML},flatOptions:{context:!0,url:!0}},ajaxPrefilter:j(Bt),ajaxTransport:j(Wt),ajax:function(e,t){function n(e,t,n,i){var u,f,v,b,w,T=t;2!==x&&(x=2,c&&clearTimeout(c),a=s,o=i||"",E.readyState=e>0?4:0,n&&(b=L(p,E,n)),e>=200&&300>e||304===e?(p.ifModified&&(w=E.getResponseHeader("Last-Modified"),w&&(re.lastModified[r]=w),w=E.getResponseHeader("Etag"),w&&(re.etag[r]=w)),304===e?(T="notmodified",u=!0):(u=D(p,b),T=u.state,f=u.data,v=u.error,u=!v)):(v=T,(!T||e)&&(T="error",0>e&&(e=0))),E.status=e,E.statusText=""+(t||T),u?m.resolveWith(d,[f,T,E]):m.rejectWith(d,[E,T,v]),E.statusCode(y),y=s,l&&h.trigger("ajax"+(u?"Success":"Error"),[E,p,u?f:v]),g.fireWith(d,[E,T]),l&&(h.trigger("ajaxComplete",[E,p]),--re.active||re.event.trigger("ajaxStop")))}"object"==typeof e&&(t=e,e=s),t=t||{};var r,o,i,a,c,u,l,f,p=re.ajaxSetup({},t),d=p.context||p,h=d!==p&&(d.nodeType||d instanceof re)?re(d):re.event,m=re.Deferred(),g=re.Callbacks("once memory"),y=p.statusCode||{},v={},b={},x=0,w="canceled",E={readyState:0,setRequestHeader:function(e,t){if(!x){var n=e.toLowerCase();e=b[n]=b[n]||e,v[e]=t}return this},getAllResponseHeaders:function(){return 2===x?o:null},getResponseHeader:function(e){var t;if(2===x){if(!i)for(i={};t=Lt.exec(o);)i[t[1].toLowerCase()]=t[2];t=i[e.toLowerCase()]}return t===s?null:t},overrideMimeType:function(e){return x||(p.mimeType=e),this},abort:function(e){return e=e||w,a&&a.abort(e),n(0,e),this}};if(m.promise(E),E.success=E.done,E.error=E.fail,E.complete=g.add,E.statusCode=function(e){if(e){var t;if(2>x)for(t in e)y[t]=[y[t],e[t]];else t=e[E.status],E.always(t)}return this},p.url=((e||p.url)+"").replace(Ot,"").replace(Ht,At[1]+"//"),p.dataTypes=re.trim(p.dataType||"*").toLowerCase().split(se),null==p.crossDomain&&(u=Ft.exec(p.url.toLowerCase()),p.crossDomain=!(!u||u[1]==At[1]&&u[2]==At[2]&&(u[3]||("http:"===u[1]?80:443))==(At[3]||("http:"===At[1]?80:443)))),p.data&&p.processData&&"string"!=typeof p.data&&(p.data=re.param(p.data,p.traditional)),A(Bt,p,t,E),2===x)return E;if(l=p.global,p.type=p.type.toUpperCase(),p.hasContent=!Mt.test(p.type),l&&0===re.active++&&re.event.trigger("ajaxStart"),!p.hasContent&&(p.data&&(p.url+=(It.test(p.url)?"&":"?")+p.data,delete p.data),r=p.url,p.cache===!1)){var T=re.now(),N=p.url.replace(Pt,"$1_="+T);p.url=N+(N===p.url?(It.test(p.url)?"&":"?")+"_="+T:"")}(p.data&&p.hasContent&&p.contentType!==!1||t.contentType)&&E.setRequestHeader("Content-Type",p.contentType),p.ifModified&&(r=r||p.url,re.lastModified[r]&&E.setRequestHeader("If-Modified-Since",re.lastModified[r]),re.etag[r]&&E.setRequestHeader("If-None-Match",re.etag[r])),E.setRequestHeader("Accept",p.dataTypes[0]&&p.accepts[p.dataTypes[0]]?p.accepts[p.dataTypes[0]]+("*"!==p.dataTypes[0]?", "+Ut+"; q=0.01":""):p.accepts["*"]);for(f in p.headers)E.setRequestHeader(f,p.headers[f]);if(p.beforeSend&&(p.beforeSend.call(d,E,p)===!1||2===x))return E.abort();w="abort";for(f in{success:1,error:1,complete:1})E[f](p[f]);if(a=A(Wt,p,t,E)){E.readyState=1,l&&h.trigger("ajaxSend",[E,p]),p.async&&p.timeout>0&&(c=setTimeout(function(){E.abort("timeout")},p.timeout));try{x=1,a.send(v,n)}catch(C){if(!(2>x))throw C;n(-1,C)}}else n(-1,"No Transport");return E},active:0,lastModified:{},etag:{}});var zt=[],Xt=/\?/,Jt=/(=)\?(?=&|$)|\?\?/,Vt=re.now();re.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=zt.pop()||re.expando+"_"+Vt++;return this[e]=!0,e}}),re.ajaxPrefilter("json jsonp",function(e,t,n){var r,o,a,c=e.data,u=e.url,l=e.jsonp!==!1,f=l&&Jt.test(u),p=l&&!f&&"string"==typeof c&&!(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Jt.test(c);return"jsonp"===e.dataTypes[0]||f||p?(r=e.jsonpCallback=re.isFunction(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,o=i[r],f?e.url=u.replace(Jt,"$1"+r):p?e.data=c.replace(Jt,"$1"+r):l&&(e.url+=(Xt.test(u)?"&":"?")+e.jsonp+"="+r),e.converters["script json"]=function(){return a||re.error(r+" was not called"),a[0]},e.dataTypes[0]="json",i[r]=function(){a=arguments},n.always(function(){i[r]=o,e[r]&&(e.jsonpCallback=t.jsonpCallback,zt.push(r)),a&&re.isFunction(o)&&o(a[0]),a=o=s}),"script"):void 0}),re.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(e){return re.globalEval(e),e}}}),re.ajaxPrefilter("script",function(e){e.cache===s&&(e.cache=!1),e.crossDomain&&(e.type="GET",e.global=!1)}),re.ajaxTransport("script",function(e){if(e.crossDomain){var t,n=X.head||X.getElementsByTagName("head")[0]||X.documentElement;return{send:function(r,o){t=X.createElement("script"),t.async="async",e.scriptCharset&&(t.charset=e.scriptCharset),t.src=e.url,t.onload=t.onreadystatechange=function(e,r){(r||!t.readyState||/loaded|complete/.test(t.readyState))&&(t.onload=t.onreadystatechange=null,n&&t.parentNode&&n.removeChild(t),t=s,r||o(200,"success"))},n.insertBefore(t,n.firstChild)},abort:function(){t&&t.onload(0,1)}}}});var Gt,Qt=i.ActiveXObject?function(){for(var e in Gt)Gt[e](0,1)}:!1,Yt=0;re.ajaxSettings.xhr=i.ActiveXObject?function(){return!this.isLocal&&M()||H()}:M,function(e){re.extend(re.support,{ajax:!!e,cors:!!e&&"withCredentials"in e})}(re.ajaxSettings.xhr()),re.support.ajax&&re.ajaxTransport(function(e){if(!e.crossDomain||re.support.cors){var t;return{send:function(n,r){var o,a,c=e.xhr();if(e.username?c.open(e.type,e.url,e.async,e.username,e.password):c.open(e.type,e.url,e.async),e.xhrFields)for(a in e.xhrFields)c[a]=e.xhrFields[a];e.mimeType&&c.overrideMimeType&&c.overrideMimeType(e.mimeType),e.crossDomain||n["X-Requested-With"]||(n["X-Requested-With"]="XMLHttpRequest");try{for(a in n)c.setRequestHeader(a,n[a])}catch(u){}c.send(e.hasContent&&e.data||null),t=function(n,i){var a,u,l,f,p;try{if(t&&(i||4===c.readyState))if(t=s,o&&(c.onreadystatechange=re.noop,Qt&&delete Gt[o]),i)4!==c.readyState&&c.abort();else{a=c.status,l=c.getAllResponseHeaders(),f={},p=c.responseXML,p&&p.documentElement&&(f.xml=p);try{f.text=c.responseText}catch(n){}try{u=c.statusText}catch(d){u=""}a||!e.isLocal||e.crossDomain?1223===a&&(a=204):a=f.text?200:404}}catch(h){i||r(-1,h)}f&&r(a,u,f,l)},e.async?4===c.readyState?setTimeout(t,0):(o=++Yt,Qt&&(Gt||(Gt={},re(i).unload(Qt)),Gt[o]=t),c.onreadystatechange=t):t()},abort:function(){t&&t(0,1)}}}});var Kt,Zt,en=/^(?:toggle|show|hide)$/,tn=new RegExp("^(?:([-+])=|)("+oe+")([a-z%]*)$","i"),nn=/queueHooks$/,rn=[q],on={"*":[function(e,t){var n,r,o,i=this.createTween(e,t),s=tn.exec(t),a=i.cur(),c=+a||0,u=1;if(s){if(n=+s[2],r=s[3]||(re.cssNumber[e]?"":"px"),"px"!==r&&c){c=re.css(i.elem,e,!0)||n||1;do o=u=u||".5",c/=u,re.style(i.elem,e,c+r),u=i.cur()/a;while(1!==u&&u!==o)}i.unit=r,i.start=c,i.end=s[1]?c+(s[1]+1)*n:n}return i}]};re.Animation=re.extend(P,{tweener:function(e,t){re.isFunction(e)?(t=e,e=["*"]):e=e.split(" ");for(var n,r=0,o=e.length;o>r;r++)n=e[r],on[n]=on[n]||[],on[n].unshift(t)},prefilter:function(e,t){t?rn.unshift(e):rn.push(e)}}),re.Tween=B,B.prototype={constructor:B,init:function(e,t,n,r,o,i){this.elem=e,this.prop=n,this.easing=o||"swing",this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=i||(re.cssNumber[n]?"":"px")},cur:function(){var e=B.propHooks[this.prop];return e&&e.get?e.get(this):B.propHooks._default.get(this)},run:function(e){var t,n=B.propHooks[this.prop];return this.options.duration?this.pos=t=re.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):B.propHooks._default.set(this),this}},B.prototype.init.prototype=B.prototype,B.propHooks={_default:{get:function(e){var t;return null==e.elem[e.prop]||e.elem.style&&null!=e.elem.style[e.prop]?(t=re.css(e.elem,e.prop,!1,""),t&&"auto"!==t?t:0):e.elem[e.prop]},set:function(e){re.fx.step[e.prop]?re.fx.step[e.prop](e):e.elem.style&&(null!=e.elem.style[re.cssProps[e.prop]]||re.cssHooks[e.prop])?re.style(e.elem,e.prop,e.now+e.unit):e.elem[e.prop]=e.now}}},B.propHooks.scrollTop=B.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},re.each(["toggle","show","hide"],function(e,t){var n=re.fn[t];re.fn[t]=function(r,o,i){return null==r||"boolean"==typeof r||!e&&re.isFunction(r)&&re.isFunction(o)?n.apply(this,arguments):this.animate(W(t,!0),r,o,i)}}),re.fn.extend({fadeTo:function(e,t,n,r){return this.filter(E).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var o=re.isEmptyObject(e),i=re.speed(t,n,r),s=function(){var t=P(this,re.extend({},e),i);o&&t.stop(!0)};return o||i.queue===!1?this.each(s):this.queue(i.queue,s)},stop:function(e,t,n){var r=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=s),t&&e!==!1&&this.queue(e||"fx",[]),this.each(function(){var t=!0,o=null!=e&&e+"queueHooks",i=re.timers,s=re._data(this);if(o)s[o]&&s[o].stop&&r(s[o]);else for(o in s)s[o]&&s[o].stop&&nn.test(o)&&r(s[o]);for(o=i.length;o--;)i[o].elem!==this||null!=e&&i[o].queue!==e||(i[o].anim.stop(n),t=!1,i.splice(o,1));(t||!n)&&re.dequeue(this,e)})}}),re.each({slideDown:W("show"),slideUp:W("hide"),slideToggle:W("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){re.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}}),re.speed=function(e,t,n){var r=e&&"object"==typeof e?re.extend({},e):{complete:n||!n&&t||re.isFunction(e)&&e,duration:e,easing:n&&t||t&&!re.isFunction(t)&&t};return r.duration=re.fx.off?0:"number"==typeof r.duration?r.duration:r.duration in re.fx.speeds?re.fx.speeds[r.duration]:re.fx.speeds._default,(null==r.queue||r.queue===!0)&&(r.queue="fx"),r.old=r.complete,r.complete=function(){re.isFunction(r.old)&&r.old.call(this),r.queue&&re.dequeue(this,r.queue)},r},re.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2}},re.timers=[],re.fx=B.prototype.init,re.fx.tick=function(){for(var e,t=re.timers,n=0;n<t.length;n++)e=t[n],e()||t[n]!==e||t.splice(n--,1);t.length||re.fx.stop()},re.fx.timer=function(e){e()&&re.timers.push(e)&&!Zt&&(Zt=setInterval(re.fx.tick,re.fx.interval))},re.fx.interval=13,re.fx.stop=function(){clearInterval(Zt),Zt=null},re.fx.speeds={slow:600,fast:200,_default:400},re.fx.step={},re.expr&&re.expr.filters&&(re.expr.filters.animated=function(e){return re.grep(re.timers,function(t){return e===t.elem}).length});var sn=/^(?:body|html)$/i;re.fn.offset=function(e){if(arguments.length)return e===s?this:this.each(function(t){re.offset.setOffset(this,e,t)});var t,n,r,o,i,a,c,u,l,f,p=this[0],d=p&&p.ownerDocument;if(d)return(r=d.body)===p?re.offset.bodyOffset(p):(n=d.documentElement,re.contains(n,p)?(t=p.getBoundingClientRect(),o=U(d),i=n.clientTop||r.clientTop||0,a=n.clientLeft||r.clientLeft||0,c=o.pageYOffset||n.scrollTop,u=o.pageXOffset||n.scrollLeft,l=t.top+c-i,f=t.left+u-a,{top:l,left:f}):{top:0,left:0})},re.offset={bodyOffset:function(e){var t=e.offsetTop,n=e.offsetLeft;return re.support.doesNotIncludeMarginInBodyOffset&&(t+=parseFloat(re.css(e,"marginTop"))||0,n+=parseFloat(re.css(e,"marginLeft"))||0),{top:t,left:n}},setOffset:function(e,t,n){var r=re.css(e,"position");"static"===r&&(e.style.position="relative");var o,i,s=re(e),a=s.offset(),c=re.css(e,"top"),u=re.css(e,"left"),l=("absolute"===r||"fixed"===r)&&re.inArray("auto",[c,u])>-1,f={},p={};l?(p=s.position(),o=p.top,i=p.left):(o=parseFloat(c)||0,i=parseFloat(u)||0),re.isFunction(t)&&(t=t.call(e,n,a)),null!=t.top&&(f.top=t.top-a.top+o),null!=t.left&&(f.left=t.left-a.left+i),"using"in t?t.using.call(e,f):s.css(f)}},re.fn.extend({position:function(){if(this[0]){var e=this[0],t=this.offsetParent(),n=this.offset(),r=sn.test(t[0].nodeName)?{top:0,left:0}:t.offset();return n.top-=parseFloat(re.css(e,"marginTop"))||0,n.left-=parseFloat(re.css(e,"marginLeft"))||0,r.top+=parseFloat(re.css(t[0],"borderTopWidth"))||0,r.left+=parseFloat(re.css(t[0],"borderLeftWidth"))||0,{top:n.top-r.top,left:n.left-r.left}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent||X.body;e&&!sn.test(e.nodeName)&&"static"===re.css(e,"position");)e=e.offsetParent;return e||X.body})}}),re.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,t){var n=/Y/.test(t);re.fn[e]=function(r){return re.access(this,function(e,r,o){var i=U(e);return o===s?i?t in i?i[t]:i.document.documentElement[r]:e[r]:void(i?i.scrollTo(n?re(i).scrollLeft():o,n?o:re(i).scrollTop()):e[r]=o)},e,r,arguments.length,null)}}),re.each({Height:"height",Width:"width"},function(e,t){re.each({padding:"inner"+e,content:t,"":"outer"+e},function(n,r){re.fn[r]=function(r,o){var i=arguments.length&&(n||"boolean"!=typeof r),a=n||(r===!0||o===!0?"margin":"border");return re.access(this,function(t,n,r){var o;return re.isWindow(t)?t.document.documentElement["client"+e]:9===t.nodeType?(o=t.documentElement,Math.max(t.body["scroll"+e],o["scroll"+e],t.body["offset"+e],o["offset"+e],o["client"+e])):r===s?re.css(t,n,r,a):re.style(t,n,r,a)},t,i?r:s,i,null)}})}),i.jQuery=i.$=re,n(20)&&n(20).jQuery&&(r=[],o=function(){return re}.apply(t,r),!(o!==s&&(e.exports=o)))}(window)},function(e,t,n){t=e.exports=n(37)(),t.push([e.id,"*,:after,:before{box-sizing:border-box}body,html{margin:0;padding:0;height:100%;font-family:Helvetica Neue,Helvetica,Arial,sans-serif}.header{width:100%;height:30px;padding:0 10px;border-left:10px solid #a3be8c;font-size:12px;line-height:30px;color:#eff1f5;background:#343d46;overflow:hidden}#iframe{position:absolute;top:30px;right:0;bottom:0;left:0;width:100%;height:-ms-calc(100% - 30px);height:-o-calc(100% - 30px);height:calc(100% - 30px);border:0}#errors{width:100%;margin:0;padding:10px;font-family:monospace;font-size:14px;line-height:1.4;color:#eff1f5;background:#bf616a}#okness{font-weight:700}",""])},function(e,t){e.exports=function(){var e=[];return e.toString=function(){for(var e=[],t=0;t<this.length;t++){var n=this[t];n[2]?e.push("@media "+n[2]+"{"+n[1]+"}"):e.push(n[1])}return e.join("")},e.i=function(t,n){"string"==typeof t&&(t=[[null,t,""]]);for(var r={},o=0;o<this.length;o++){var i=this[o][0];"number"==typeof i&&(r[i]=!0)}for(o=0;o<t.length;o++){var s=t[o];"number"==typeof s[0]&&r[s[0]]||(n&&!s[2]?s[2]=n:n&&(s[2]="("+s[2]+") and ("+n+")"),e.push(s))}},e}},function(e,t,n){n(39);e.exports=function(e){var t=[];return t.push('<div class="header"><span id="okness"></span> <span id="status"></span></div><pre id="errors"></pre><div id="warnings"></div><iframe id="iframe" src="javascript:;" allowfullscreen></iframe>'),t.join("")}},function(e,t,n){"use strict";function r(e){return null!=e&&""!==e}function o(e){return(Array.isArray(e)?e.map(o):e&&"object"==typeof e?Object.keys(e).filter(function(t){return e[t]}):[e]).filter(r).join(" ")}function i(e){return a[e]||e}function s(e){var t=String(e).replace(c,i);return t===""+e?e:t}t.merge=function u(e,t){if(1===arguments.length){for(var n=e[0],o=1;o<e.length;o++)n=u(n,e[o]);return n}var i=e["class"],s=t["class"];(i||s)&&(i=i||[],s=s||[],Array.isArray(i)||(i=[i]),Array.isArray(s)||(s=[s]),e["class"]=i.concat(s).filter(r));for(var a in t)"class"!=a&&(e[a]=t[a]);return e},t.joinClasses=o,t.cls=function(e,n){for(var r=[],i=0;i<e.length;i++)n&&n[i]?r.push(t.escape(o([e[i]]))):r.push(o(e[i]));var s=o(r);return s.length?' class="'+s+'"':""},t.style=function(e){return e&&"object"==typeof e?Object.keys(e).map(function(t){return t+":"+e[t]}).join(";"):e},t.attr=function(e,n,r,o){return"style"===e&&(n=t.style(n)),"boolean"==typeof n||null==n?n?" "+(o?e:e+'="'+e+'"'):"":0==e.indexOf("data")&&"string"!=typeof n?(-1!==JSON.stringify(n).indexOf("&")&&console.warn("Since Jade 2.0.0, ampersands (`&`) in data attributes will be escaped to `&`"),n&&"function"==typeof n.toISOString&&console.warn("Jade will eliminate the double quotes around dates in ISO form after 2.0.0")," "+e+"='"+JSON.stringify(n).replace(/'/g,"'")+"'"):r?(n&&"function"==typeof n.toISOString&&console.warn("Jade will stringify dates in ISO form after 2.0.0")," "+e+'="'+t.escape(n)+'"'):(n&&"function"==typeof n.toISOString&&console.warn("Jade will stringify dates in ISO form after 2.0.0")," "+e+'="'+n+'"')},t.attrs=function(e,n){var r=[],i=Object.keys(e);if(i.length)for(var s=0;s<i.length;++s){var a=i[s],c=e[a];"class"==a?(c=o(c))&&r.push(" "+a+'="'+c+'"'):r.push(t.attr(a,c,!1,n))}return r.join("")};var a={"&":"&","<":"<",">":">",'"':"""},c=/[&<>"]/g;t.escape=s,t.rethrow=function l(e,t,r,o){if(!(e instanceof Error))throw e;if(!("undefined"==typeof window&&t||o))throw e.message+=" on line "+r,e;try{o=o||n(76).readFileSync(t,"utf8")}catch(i){l(e,null,r)}var s=3,a=o.split("\n"),c=Math.max(r-s,0),u=Math.min(a.length,r+s),s=a.slice(c,u).map(function(e,t){var n=t+c+1;return(n==r?" > ":" ")+n+"| "+e}).join("\n");throw e.path=t,e.message=(t||"Jade")+":"+r+"\n"+s+"\n\n"+e.message,e},t.DebugItem=function(e,t){this.lineno=e,this.filename=t}},function(e,t,n){(function(t){"use strict";var r=n(49);e.exports=n(47)(r),"_sockjs_onload"in t&&setTimeout(t._sockjs_onload,1)}).call(t,function(){return this}())},function(e,t,n){"use strict";function r(){i.call(this),this.initEvent("close",!1,!1),this.wasClean=!1,this.code=0,this.reason=""}var o=n(1),i=n(15);o(r,i),e.exports=r},function(e,t,n){"use strict";function r(e){i.call(this),this.initEvent("message",!1,!1),this.data=e}var o=n(1),i=n(15);o(r,i),e.exports=r},function(e,t,n){"use strict";function r(e){this._transport=e,e.on("message",this._transportMessage.bind(this)),e.on("close",this._transportClose.bind(this))}var o=n(6),i=n(12);r.prototype._transportClose=function(e,t){i.postMessage("c",o.stringify([e,t]))},r.prototype._transportMessage=function(e){i.postMessage("t",e)},r.prototype._send=function(e){this._transport.send(e)},r.prototype._close=function(){this._transport.close(),this._transport.removeAllListeners()},e.exports=r},function(e,t,n){(function(t){"use strict";var r=n(5),o=n(7),i=n(6),s=n(43),a=n(23),c=n(12),u=n(24),l=function(){};"production"!==t.env.NODE_ENV&&(l=n(3)("sockjs-client:iframe-bootstrap")),e.exports=function(e,t){var n={};t.forEach(function(e){e.facadeTransport&&(n[e.facadeTransport.transportName]=e.facadeTransport)}),n[a.transportName]=a;var f;e.bootstrap_iframe=function(){var t;c.currentWindowId=u.hash.slice(1);var a=function(o){if(o.source===parent&&("undefined"==typeof f&&(f=o.origin),o.origin===f)){var a;try{a=i.parse(o.data)}catch(p){return void l("bad json",o.data)}if(a.windowId===c.currentWindowId)switch(a.type){case"s":var d;try{d=i.parse(a.data)}catch(p){l("bad json",a.data);break}var h=d[0],m=d[1],g=d[2],y=d[3];if(l(h,m,g,y),h!==e.version)throw new Error('Incompatibile SockJS! Main site uses: "'+h+'", the iframe: "'+e.version+'".');if(!r.isOriginEqual(g,u.href)||!r.isOriginEqual(y,u.href))throw new Error("Can't connect to different domain from within an iframe. ("+u.href+", "+g+", "+y+")");t=new s(new n[m](g,y));break;case"m":t._send(a.data);break;case"c":t&&t._close(),t=null}}};o.attachEvent("message",a),c.postMessage("s")}}}).call(t,n(2))},function(e,t,n){(function(t,r){"use strict";function o(e,t){var n=this;i.call(this);var o=function(){var r=n.ifr=new u(l.transportName,t,e);r.once("message",function(e){if(e){var t;try{t=a.parse(e)}catch(r){return f("bad json",e),n.emit("finish"),void n.close()}var o=t[0],i=t[1];n.emit("finish",o,i)}n.close()}),r.once("close",function(){n.emit("finish"),n.close()})};r.document.body?o():c.attachEvent("load",o)}var i=n(4).EventEmitter,s=n(1),a=n(6),c=n(7),u=n(29),l=n(23),f=function(){};"production"!==t.env.NODE_ENV&&(f=n(3)("sockjs-client:info-iframe")),s(o,i),o.enabled=function(){return u.enabled()},o.prototype.close=function(){this.ifr&&this.ifr.close(),this.removeAllListeners(),this.ifr=null},e.exports=o}).call(t,n(2),function(){return this}())},function(e,t,n){(function(t){"use strict";function r(e,t){d(e);var n=this;o.call(this),setTimeout(function(){n.doXhr(e,t)},0)}var o=n(4).EventEmitter,i=n(1),s=n(5),a=n(17),c=n(14),u=n(10),l=n(58),f=n(45),p=n(22),d=function(){};"production"!==t.env.NODE_ENV&&(d=n(3)("sockjs-client:info-receiver")),i(r,o),r._getReceiver=function(e,t,n){return n.sameOrigin?new p(t,u):c.enabled?new p(t,c):a.enabled&&n.sameScheme?new p(t,a):f.enabled()?new f(e,t):new p(t,l)},r.prototype.doXhr=function(e,t){var n=this,o=s.addPath(e,"/info");d("doXhr",o),this.xo=r._getReceiver(e,o,t),this.timeoutRef=setTimeout(function(){d("timeout"),n._cleanup(!1),n.emit("finish")},r.timeout),this.xo.once("finish",function(e,t){d("finish",e,t),n._cleanup(!0),n.emit("finish",e,t)})},r.prototype._cleanup=function(e){d("_cleanup"),clearTimeout(this.timeoutRef),this.timeoutRef=null,!e&&this.xo&&this.xo.close(),this.xo=null},r.prototype.close=function(){d("close"),this.removeAllListeners(),this._cleanup(!1)},r.timeout=8e3,e.exports=r}).call(t,n(2))},function(e,t,n){(function(t,r){"use strict";function o(e,t,n){if(!(this instanceof o))return new o(e,t,n);if(arguments.length<1)throw new TypeError("Failed to construct 'SockJS: 1 argument required, but only 0 present");v.call(this),this.readyState=o.CONNECTING,this.extensions="",this.protocol="",n=n||{},n.protocols_whitelist&&g.warn("'protocols_whitelist' is DEPRECATED. Use 'transports' instead."),this._transportsWhitelist=n.transports;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 u.string(r)}}this._server=n.server||u.numberString(1e3);var i=new s(e);if(!i.host||!i.protocol)throw new SyntaxError("The URL '"+e+"' 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 a="https:"===i.protocol;if("https"===b.protocol&&!a)throw new Error("SecurityError: An insecure SockJS connection may not be initiated from a page loaded over HTTPS");t?Array.isArray(t)||(t=[t]):t=[];var c=t.sort();c.forEach(function(e,t){if(!e)throw new SyntaxError("The protocols entry '"+e+"' is invalid.");if(t<c.length-1&&e===c[t+1])throw new SyntaxError("The protocols entry '"+e+"' is duplicated.")});var l=f.getOrigin(b.href);this._origin=l?l.toLowerCase():null,i.set("pathname",i.pathname.replace(/\/+$/,"")),this.url=i.href,T("using url",this.url),this._urlInfo={nullOrigin:!m.hasDomain(),sameOrigin:f.isOriginEqual(this.url,b.href),sameScheme:f.isSchemeEqual(this.url,b.href)},this._ir=new E(this.url,this._urlInfo),this._ir.once("finish",this._receiveInfo.bind(this))}function i(e){return 1e3===e||e>=3e3&&4999>=e}n(48);var s=n(19),a=n(1),c=n(6),u=n(9),l=n(63),f=n(5),p=n(7),d=n(65),h=n(18),m=n(11),g=n(64),y=n(15),v=n(21),b=n(24),x=n(41),w=n(42),E=n(46),T=function(){};"production"!==t.env.NODE_ENV&&(r.dbg=n(3),T=r.dbg("sockjs-client:main"));var N;a(o,v),o.prototype.close=function(e,t){if(e&&!i(e))throw new Error("InvalidAccessError: Invalid code");if(t&&t.length>123)throw new SyntaxError("reason argument has an invalid length");if(this.readyState!==o.CLOSING&&this.readyState!==o.CLOSED){var n=!0;this._close(e||1e3,t||"Normal closure",n)}},o.prototype.send=function(e){if("string"!=typeof e&&(e=""+e),this.readyState===o.CONNECTING)throw new Error("InvalidStateError: The connection has not been established yet");this.readyState===o.OPEN&&this._transport.send(l.quote(e))},o.version=n(33),o.CONNECTING=0,o.OPEN=1,o.CLOSING=2,o.CLOSED=3,o.prototype._receiveInfo=function(e,t){if(T("_receiveInfo",t),this._ir=null,!e)return void this._close(1002,"Cannot connect to server");this._rto=this.countRTO(t),this._transUrl=e.base_url?e.base_url:this.url,e=h.extend(e,this._urlInfo),T("info",e);var n=N.filterToEnabled(this._transportsWhitelist,e);this._transports=n.main,T(this._transports.length+" enabled transports"),this._connect()},o.prototype._connect=function(){for(var e=this._transports.shift();e;e=this._transports.shift()){if(T("attempt",e.transportName),e.needBody&&(!r.document.body||"undefined"!=typeof r.document.readyState&&"complete"!==r.document.readyState&&"interactive"!==r.document.readyState))return T("waiting for body"),this._transports.unshift(e),void p.attachEvent("load",this._connect.bind(this));var t=this._rto*e.roundTrips||5e3;this._transportTimeoutId=setTimeout(this._transportTimeout.bind(this),t),T("using timeout",t);var n=f.addPath(this._transUrl,"/"+this._server+"/"+this._generateSessionId());T("transport url",n);var o=new e(n,this._transUrl);return o.on("message",this._transportMessage.bind(this)),o.once("close",this._transportClose.bind(this)),o.transportName=e.transportName,void(this._transport=o)}this._close(2e3,"All transports failed",!1)},o.prototype._transportTimeout=function(){T("_transportTimeout"),this.readyState===o.CONNECTING&&this._transportClose(2007,"Transport timed out")},o.prototype._transportMessage=function(e){T("_transportMessage",e);var t,n=this,r=e.slice(0,1),o=e.slice(1);switch(r){case"o":return void this._open();case"h":return this.dispatchEvent(new y("heartbeat")),void T("heartbeat",this.transport)}if(o)try{t=c.parse(o)}catch(i){T("bad json",o)}if("undefined"==typeof t)return void T("empty payload",o);switch(r){case"a":Array.isArray(t)&&t.forEach(function(e){T("message",n.transport,e),n.dispatchEvent(new w(e))});break;case"m":T("message",this.transport,t),this.dispatchEvent(new w(t));break;case"c":Array.isArray(t)&&2===t.length&&this._close(t[0],t[1],!0)}},o.prototype._transportClose=function(e,t){return T("_transportClose",this.transport,e,t),this._transport&&(this._transport.removeAllListeners(),this._transport=null,this.transport=null),i(e)||2e3===e||this.readyState!==o.CONNECTING?void this._close(e,t):void this._connect()},o.prototype._open=function(){T("_open",this._transport.transportName,this.readyState),this.readyState===o.CONNECTING?(this._transportTimeoutId&&(clearTimeout(this._transportTimeoutId),this._transportTimeoutId=null),this.readyState=o.OPEN,this.transport=this._transport.transportName,this.dispatchEvent(new y("open")),T("connected",this.transport)):this._close(1006,"Server lost session")},o.prototype._close=function(e,t,n){T("_close",this.transport,e,t,n,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===o.CLOSED)throw new Error("InvalidStateError: SockJS has already been closed");this.readyState=o.CLOSING,setTimeout(function(){this.readyState=o.CLOSED,r&&this.dispatchEvent(new y("error"));var i=new x("close");i.wasClean=n||!1,i.code=e||1e3,i.reason=t,this.dispatchEvent(i),this.onmessage=this.onclose=this.onerror=null,T("disconnected")}.bind(this),0)},o.prototype.countRTO=function(e){return e>100?4*e:300+e},e.exports=function(e){return N=d(e),n(44)(o,e),o}}).call(t,n(2),function(){return this}())},function(e,t){"use strict";function n(e){var t=+e;return t!==t?t=0:0!==t&&t!==1/0&&t!==-(1/0)&&(t=(t>0||-1)*Math.floor(Math.abs(t))),t}function r(e){return e>>>0}function o(){}var i,s=Array.prototype,a=Object.prototype,c=Function.prototype,u=String.prototype,l=s.slice,f=a.toString,p=function(e){return"[object Function]"===a.toString.call(e)},d=function(e){return"[object Array]"===f.call(e)},h=function(e){return"[object String]"===f.call(e)},m=Object.defineProperty&&function(){try{return Object.defineProperty({},"x",{}),!0}catch(e){return!1}}();i=m?function(e,t,n,r){!r&&t in e||Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:!0,value:n})}:function(e,t,n,r){!r&&t in e||(e[t]=n)};var g=function(e,t,n){for(var r in t)a.hasOwnProperty.call(t,r)&&i(e,r,t[r],n)},y=function(e){if(null==e)throw new TypeError("can't convert "+e+" to object");return Object(e)};g(c,{bind:function(e){var t=this;if(!p(t))throw new TypeError("Function.prototype.bind called on incompatible "+t);for(var n=l.call(arguments,1),r=function(){if(this instanceof c){var r=t.apply(this,n.concat(l.call(arguments)));return Object(r)===r?r:this}return t.apply(e,n.concat(l.call(arguments)))},i=Math.max(0,t.length-n.length),s=[],a=0;i>a;a++)s.push("$"+a);var c=Function("binder","return function ("+s.join(",")+"){ return binder.apply(this, arguments); }")(r);return t.prototype&&(o.prototype=t.prototype,c.prototype=new o,o.prototype=null),c}}),g(Array,{isArray:d});var v=Object("a"),b="a"!==v[0]||!(0 in v),x=function(e){var t=!0,n=!0;return e&&(e.call("foo",function(e,n,r){"object"!=typeof r&&(t=!1)}),e.call([1],function(){n="string"==typeof this},"x")),!!e&&t&&n};g(s,{forEach:function(e){var t=y(this),n=b&&h(this)?this.split(""):t,r=arguments[1],o=-1,i=n.length>>>0;if(!p(e))throw new TypeError;for(;++o<i;)o in n&&e.call(r,n[o],o,t)}},!x(s.forEach));var w=Array.prototype.indexOf&&-1!==[0,1].indexOf(1,2);g(s,{indexOf:function(e){var t=b&&h(this)?this.split(""):y(this),r=t.length>>>0;if(!r)return-1;var o=0;for(arguments.length>1&&(o=n(arguments[1])),o=o>=0?o:Math.max(0,r+o);r>o;o++)if(o in t&&t[o]===e)return o;return-1}},w);var E=u.split;2!=="ab".split(/(?:ab)*/).length||4!==".".split(/(.?)(.?)/).length||"t"==="tesst".split(/(s)*/)[1]||4!=="test".split(/(?:)/,-1).length||"".split(/.?/).length||".".split(/()()/).length>1?!function(){var e=void 0===/()??/.exec("")[1];u.split=function(t,n){var o=this;if(void 0===t&&0===n)return[];if("[object RegExp]"!==f.call(t))return E.call(this,t,n);var i,a,c,u,l=[],p=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.extended?"x":"")+(t.sticky?"y":""),d=0;
|
|
22
|
+
}).filter(function(){return this.name&&!this.disabled&&(this.checked||kt.test(this.nodeName)||_t.test(this.type))}).map(function(e,t){var n=re(this).val();return null==n?null:re.isArray(n)?re.map(n,function(e,n){return{name:t.name,value:e.replace(St,"\r\n")}}):{name:t.name,value:n.replace(St,"\r\n")}}).get()}}),re.param=function(e,t){var n,r=[],o=function(e,t){t=re.isFunction(t)?t():null==t?"":t,r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(t)};if(t===s&&(t=re.ajaxSettings&&re.ajaxSettings.traditional),re.isArray(e)||e.jquery&&!re.isPlainObject(e))re.each(e,function(){o(this.name,this.value)});else for(n in e)k(n,e[n],t,o);return r.join("&").replace(Nt,"+")};var jt,At,Ot=/#.*$/,Lt=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,Dt=/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/,Mt=/^(?:GET|HEAD)$/,Ht=/^\/\//,It=/\?/,Rt=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,Pt=/([?&])_=[^&]*/,Ft=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+)|)|)/,qt=re.fn.load,Bt={},Wt={},Ut=["*/"]+["*"];try{jt=J.href}catch($t){jt=X.createElement("a"),jt.href="",jt=jt.href}At=Ft.exec(jt.toLowerCase())||[],re.fn.load=function(e,t,n){if("string"!=typeof e&&qt)return qt.apply(this,arguments);if(!this.length)return this;var r,o,i,a=this,c=e.indexOf(" ");return c>=0&&(r=e.slice(c,e.length),e=e.slice(0,c)),re.isFunction(t)?(n=t,t=s):t&&"object"==typeof t&&(o="POST"),re.ajax({url:e,type:o,dataType:"html",data:t,complete:function(e,t){n&&a.each(n,i||[e.responseText,t,e])}}).done(function(e){i=arguments,a.html(r?re("<div>").append(e.replace(Rt,"")).find(r):e)}),this},re.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(e,t){re.fn[t]=function(e){return this.on(t,e)}}),re.each(["get","post"],function(e,t){re[t]=function(e,n,r,o){return re.isFunction(n)&&(o=o||r,r=n,n=s),re.ajax({type:t,url:e,data:n,success:r,dataType:o})}}),re.extend({getScript:function(e,t){return re.get(e,s,t,"script")},getJSON:function(e,t,n){return re.get(e,t,n,"json")},ajaxSetup:function(e,t){return t?O(e,re.ajaxSettings):(t=e,e=re.ajaxSettings),O(e,t),e},ajaxSettings:{url:jt,isLocal:Dt.test(At[1]),global:!0,type:"GET",contentType:"application/x-www-form-urlencoded; charset=UTF-8",processData:!0,async:!0,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":Ut},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":i.String,"text html":!0,"text json":re.parseJSON,"text xml":re.parseXML},flatOptions:{context:!0,url:!0}},ajaxPrefilter:j(Bt),ajaxTransport:j(Wt),ajax:function(e,t){function n(e,t,n,i){var u,f,v,b,w,T=t;2!==x&&(x=2,c&&clearTimeout(c),a=s,o=i||"",E.readyState=e>0?4:0,n&&(b=L(p,E,n)),e>=200&&300>e||304===e?(p.ifModified&&(w=E.getResponseHeader("Last-Modified"),w&&(re.lastModified[r]=w),w=E.getResponseHeader("Etag"),w&&(re.etag[r]=w)),304===e?(T="notmodified",u=!0):(u=D(p,b),T=u.state,f=u.data,v=u.error,u=!v)):(v=T,(!T||e)&&(T="error",0>e&&(e=0))),E.status=e,E.statusText=""+(t||T),u?m.resolveWith(d,[f,T,E]):m.rejectWith(d,[E,T,v]),E.statusCode(y),y=s,l&&h.trigger("ajax"+(u?"Success":"Error"),[E,p,u?f:v]),g.fireWith(d,[E,T]),l&&(h.trigger("ajaxComplete",[E,p]),--re.active||re.event.trigger("ajaxStop")))}"object"==typeof e&&(t=e,e=s),t=t||{};var r,o,i,a,c,u,l,f,p=re.ajaxSetup({},t),d=p.context||p,h=d!==p&&(d.nodeType||d instanceof re)?re(d):re.event,m=re.Deferred(),g=re.Callbacks("once memory"),y=p.statusCode||{},v={},b={},x=0,w="canceled",E={readyState:0,setRequestHeader:function(e,t){if(!x){var n=e.toLowerCase();e=b[n]=b[n]||e,v[e]=t}return this},getAllResponseHeaders:function(){return 2===x?o:null},getResponseHeader:function(e){var t;if(2===x){if(!i)for(i={};t=Lt.exec(o);)i[t[1].toLowerCase()]=t[2];t=i[e.toLowerCase()]}return t===s?null:t},overrideMimeType:function(e){return x||(p.mimeType=e),this},abort:function(e){return e=e||w,a&&a.abort(e),n(0,e),this}};if(m.promise(E),E.success=E.done,E.error=E.fail,E.complete=g.add,E.statusCode=function(e){if(e){var t;if(2>x)for(t in e)y[t]=[y[t],e[t]];else t=e[E.status],E.always(t)}return this},p.url=((e||p.url)+"").replace(Ot,"").replace(Ht,At[1]+"//"),p.dataTypes=re.trim(p.dataType||"*").toLowerCase().split(se),null==p.crossDomain&&(u=Ft.exec(p.url.toLowerCase()),p.crossDomain=!(!u||u[1]==At[1]&&u[2]==At[2]&&(u[3]||("http:"===u[1]?80:443))==(At[3]||("http:"===At[1]?80:443)))),p.data&&p.processData&&"string"!=typeof p.data&&(p.data=re.param(p.data,p.traditional)),A(Bt,p,t,E),2===x)return E;if(l=p.global,p.type=p.type.toUpperCase(),p.hasContent=!Mt.test(p.type),l&&0===re.active++&&re.event.trigger("ajaxStart"),!p.hasContent&&(p.data&&(p.url+=(It.test(p.url)?"&":"?")+p.data,delete p.data),r=p.url,p.cache===!1)){var T=re.now(),N=p.url.replace(Pt,"$1_="+T);p.url=N+(N===p.url?(It.test(p.url)?"&":"?")+"_="+T:"")}(p.data&&p.hasContent&&p.contentType!==!1||t.contentType)&&E.setRequestHeader("Content-Type",p.contentType),p.ifModified&&(r=r||p.url,re.lastModified[r]&&E.setRequestHeader("If-Modified-Since",re.lastModified[r]),re.etag[r]&&E.setRequestHeader("If-None-Match",re.etag[r])),E.setRequestHeader("Accept",p.dataTypes[0]&&p.accepts[p.dataTypes[0]]?p.accepts[p.dataTypes[0]]+("*"!==p.dataTypes[0]?", "+Ut+"; q=0.01":""):p.accepts["*"]);for(f in p.headers)E.setRequestHeader(f,p.headers[f]);if(p.beforeSend&&(p.beforeSend.call(d,E,p)===!1||2===x))return E.abort();w="abort";for(f in{success:1,error:1,complete:1})E[f](p[f]);if(a=A(Wt,p,t,E)){E.readyState=1,l&&h.trigger("ajaxSend",[E,p]),p.async&&p.timeout>0&&(c=setTimeout(function(){E.abort("timeout")},p.timeout));try{x=1,a.send(v,n)}catch(C){if(!(2>x))throw C;n(-1,C)}}else n(-1,"No Transport");return E},active:0,lastModified:{},etag:{}});var zt=[],Xt=/\?/,Jt=/(=)\?(?=&|$)|\?\?/,Vt=re.now();re.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=zt.pop()||re.expando+"_"+Vt++;return this[e]=!0,e}}),re.ajaxPrefilter("json jsonp",function(e,t,n){var r,o,a,c=e.data,u=e.url,l=e.jsonp!==!1,f=l&&Jt.test(u),p=l&&!f&&"string"==typeof c&&!(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Jt.test(c);return"jsonp"===e.dataTypes[0]||f||p?(r=e.jsonpCallback=re.isFunction(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,o=i[r],f?e.url=u.replace(Jt,"$1"+r):p?e.data=c.replace(Jt,"$1"+r):l&&(e.url+=(Xt.test(u)?"&":"?")+e.jsonp+"="+r),e.converters["script json"]=function(){return a||re.error(r+" was not called"),a[0]},e.dataTypes[0]="json",i[r]=function(){a=arguments},n.always(function(){i[r]=o,e[r]&&(e.jsonpCallback=t.jsonpCallback,zt.push(r)),a&&re.isFunction(o)&&o(a[0]),a=o=s}),"script"):void 0}),re.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(e){return re.globalEval(e),e}}}),re.ajaxPrefilter("script",function(e){e.cache===s&&(e.cache=!1),e.crossDomain&&(e.type="GET",e.global=!1)}),re.ajaxTransport("script",function(e){if(e.crossDomain){var t,n=X.head||X.getElementsByTagName("head")[0]||X.documentElement;return{send:function(r,o){t=X.createElement("script"),t.async="async",e.scriptCharset&&(t.charset=e.scriptCharset),t.src=e.url,t.onload=t.onreadystatechange=function(e,r){(r||!t.readyState||/loaded|complete/.test(t.readyState))&&(t.onload=t.onreadystatechange=null,n&&t.parentNode&&n.removeChild(t),t=s,r||o(200,"success"))},n.insertBefore(t,n.firstChild)},abort:function(){t&&t.onload(0,1)}}}});var Gt,Qt=i.ActiveXObject?function(){for(var e in Gt)Gt[e](0,1)}:!1,Yt=0;re.ajaxSettings.xhr=i.ActiveXObject?function(){return!this.isLocal&&M()||H()}:M,function(e){re.extend(re.support,{ajax:!!e,cors:!!e&&"withCredentials"in e})}(re.ajaxSettings.xhr()),re.support.ajax&&re.ajaxTransport(function(e){if(!e.crossDomain||re.support.cors){var t;return{send:function(n,r){var o,a,c=e.xhr();if(e.username?c.open(e.type,e.url,e.async,e.username,e.password):c.open(e.type,e.url,e.async),e.xhrFields)for(a in e.xhrFields)c[a]=e.xhrFields[a];e.mimeType&&c.overrideMimeType&&c.overrideMimeType(e.mimeType),e.crossDomain||n["X-Requested-With"]||(n["X-Requested-With"]="XMLHttpRequest");try{for(a in n)c.setRequestHeader(a,n[a])}catch(u){}c.send(e.hasContent&&e.data||null),t=function(n,i){var a,u,l,f,p;try{if(t&&(i||4===c.readyState))if(t=s,o&&(c.onreadystatechange=re.noop,Qt&&delete Gt[o]),i)4!==c.readyState&&c.abort();else{a=c.status,l=c.getAllResponseHeaders(),f={},p=c.responseXML,p&&p.documentElement&&(f.xml=p);try{f.text=c.responseText}catch(n){}try{u=c.statusText}catch(d){u=""}a||!e.isLocal||e.crossDomain?1223===a&&(a=204):a=f.text?200:404}}catch(h){i||r(-1,h)}f&&r(a,u,f,l)},e.async?4===c.readyState?setTimeout(t,0):(o=++Yt,Qt&&(Gt||(Gt={},re(i).unload(Qt)),Gt[o]=t),c.onreadystatechange=t):t()},abort:function(){t&&t(0,1)}}}});var Kt,Zt,en=/^(?:toggle|show|hide)$/,tn=new RegExp("^(?:([-+])=|)("+oe+")([a-z%]*)$","i"),nn=/queueHooks$/,rn=[q],on={"*":[function(e,t){var n,r,o,i=this.createTween(e,t),s=tn.exec(t),a=i.cur(),c=+a||0,u=1;if(s){if(n=+s[2],r=s[3]||(re.cssNumber[e]?"":"px"),"px"!==r&&c){c=re.css(i.elem,e,!0)||n||1;do o=u=u||".5",c/=u,re.style(i.elem,e,c+r),u=i.cur()/a;while(1!==u&&u!==o)}i.unit=r,i.start=c,i.end=s[1]?c+(s[1]+1)*n:n}return i}]};re.Animation=re.extend(P,{tweener:function(e,t){re.isFunction(e)?(t=e,e=["*"]):e=e.split(" ");for(var n,r=0,o=e.length;o>r;r++)n=e[r],on[n]=on[n]||[],on[n].unshift(t)},prefilter:function(e,t){t?rn.unshift(e):rn.push(e)}}),re.Tween=B,B.prototype={constructor:B,init:function(e,t,n,r,o,i){this.elem=e,this.prop=n,this.easing=o||"swing",this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=i||(re.cssNumber[n]?"":"px")},cur:function(){var e=B.propHooks[this.prop];return e&&e.get?e.get(this):B.propHooks._default.get(this)},run:function(e){var t,n=B.propHooks[this.prop];return this.options.duration?this.pos=t=re.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):B.propHooks._default.set(this),this}},B.prototype.init.prototype=B.prototype,B.propHooks={_default:{get:function(e){var t;return null==e.elem[e.prop]||e.elem.style&&null!=e.elem.style[e.prop]?(t=re.css(e.elem,e.prop,!1,""),t&&"auto"!==t?t:0):e.elem[e.prop]},set:function(e){re.fx.step[e.prop]?re.fx.step[e.prop](e):e.elem.style&&(null!=e.elem.style[re.cssProps[e.prop]]||re.cssHooks[e.prop])?re.style(e.elem,e.prop,e.now+e.unit):e.elem[e.prop]=e.now}}},B.propHooks.scrollTop=B.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},re.each(["toggle","show","hide"],function(e,t){var n=re.fn[t];re.fn[t]=function(r,o,i){return null==r||"boolean"==typeof r||!e&&re.isFunction(r)&&re.isFunction(o)?n.apply(this,arguments):this.animate(W(t,!0),r,o,i)}}),re.fn.extend({fadeTo:function(e,t,n,r){return this.filter(E).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var o=re.isEmptyObject(e),i=re.speed(t,n,r),s=function(){var t=P(this,re.extend({},e),i);o&&t.stop(!0)};return o||i.queue===!1?this.each(s):this.queue(i.queue,s)},stop:function(e,t,n){var r=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=s),t&&e!==!1&&this.queue(e||"fx",[]),this.each(function(){var t=!0,o=null!=e&&e+"queueHooks",i=re.timers,s=re._data(this);if(o)s[o]&&s[o].stop&&r(s[o]);else for(o in s)s[o]&&s[o].stop&&nn.test(o)&&r(s[o]);for(o=i.length;o--;)i[o].elem!==this||null!=e&&i[o].queue!==e||(i[o].anim.stop(n),t=!1,i.splice(o,1));(t||!n)&&re.dequeue(this,e)})}}),re.each({slideDown:W("show"),slideUp:W("hide"),slideToggle:W("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){re.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}}),re.speed=function(e,t,n){var r=e&&"object"==typeof e?re.extend({},e):{complete:n||!n&&t||re.isFunction(e)&&e,duration:e,easing:n&&t||t&&!re.isFunction(t)&&t};return r.duration=re.fx.off?0:"number"==typeof r.duration?r.duration:r.duration in re.fx.speeds?re.fx.speeds[r.duration]:re.fx.speeds._default,(null==r.queue||r.queue===!0)&&(r.queue="fx"),r.old=r.complete,r.complete=function(){re.isFunction(r.old)&&r.old.call(this),r.queue&&re.dequeue(this,r.queue)},r},re.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2}},re.timers=[],re.fx=B.prototype.init,re.fx.tick=function(){for(var e,t=re.timers,n=0;n<t.length;n++)e=t[n],e()||t[n]!==e||t.splice(n--,1);t.length||re.fx.stop()},re.fx.timer=function(e){e()&&re.timers.push(e)&&!Zt&&(Zt=setInterval(re.fx.tick,re.fx.interval))},re.fx.interval=13,re.fx.stop=function(){clearInterval(Zt),Zt=null},re.fx.speeds={slow:600,fast:200,_default:400},re.fx.step={},re.expr&&re.expr.filters&&(re.expr.filters.animated=function(e){return re.grep(re.timers,function(t){return e===t.elem}).length});var sn=/^(?:body|html)$/i;re.fn.offset=function(e){if(arguments.length)return e===s?this:this.each(function(t){re.offset.setOffset(this,e,t)});var t,n,r,o,i,a,c,u,l,f,p=this[0],d=p&&p.ownerDocument;if(d)return(r=d.body)===p?re.offset.bodyOffset(p):(n=d.documentElement,re.contains(n,p)?(t=p.getBoundingClientRect(),o=U(d),i=n.clientTop||r.clientTop||0,a=n.clientLeft||r.clientLeft||0,c=o.pageYOffset||n.scrollTop,u=o.pageXOffset||n.scrollLeft,l=t.top+c-i,f=t.left+u-a,{top:l,left:f}):{top:0,left:0})},re.offset={bodyOffset:function(e){var t=e.offsetTop,n=e.offsetLeft;return re.support.doesNotIncludeMarginInBodyOffset&&(t+=parseFloat(re.css(e,"marginTop"))||0,n+=parseFloat(re.css(e,"marginLeft"))||0),{top:t,left:n}},setOffset:function(e,t,n){var r=re.css(e,"position");"static"===r&&(e.style.position="relative");var o,i,s=re(e),a=s.offset(),c=re.css(e,"top"),u=re.css(e,"left"),l=("absolute"===r||"fixed"===r)&&re.inArray("auto",[c,u])>-1,f={},p={};l?(p=s.position(),o=p.top,i=p.left):(o=parseFloat(c)||0,i=parseFloat(u)||0),re.isFunction(t)&&(t=t.call(e,n,a)),null!=t.top&&(f.top=t.top-a.top+o),null!=t.left&&(f.left=t.left-a.left+i),"using"in t?t.using.call(e,f):s.css(f)}},re.fn.extend({position:function(){if(this[0]){var e=this[0],t=this.offsetParent(),n=this.offset(),r=sn.test(t[0].nodeName)?{top:0,left:0}:t.offset();return n.top-=parseFloat(re.css(e,"marginTop"))||0,n.left-=parseFloat(re.css(e,"marginLeft"))||0,r.top+=parseFloat(re.css(t[0],"borderTopWidth"))||0,r.left+=parseFloat(re.css(t[0],"borderLeftWidth"))||0,{top:n.top-r.top,left:n.left-r.left}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent||X.body;e&&!sn.test(e.nodeName)&&"static"===re.css(e,"position");)e=e.offsetParent;return e||X.body})}}),re.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,t){var n=/Y/.test(t);re.fn[e]=function(r){return re.access(this,function(e,r,o){var i=U(e);return o===s?i?t in i?i[t]:i.document.documentElement[r]:e[r]:void(i?i.scrollTo(n?re(i).scrollLeft():o,n?o:re(i).scrollTop()):e[r]=o)},e,r,arguments.length,null)}}),re.each({Height:"height",Width:"width"},function(e,t){re.each({padding:"inner"+e,content:t,"":"outer"+e},function(n,r){re.fn[r]=function(r,o){var i=arguments.length&&(n||"boolean"!=typeof r),a=n||(r===!0||o===!0?"margin":"border");return re.access(this,function(t,n,r){var o;return re.isWindow(t)?t.document.documentElement["client"+e]:9===t.nodeType?(o=t.documentElement,Math.max(t.body["scroll"+e],o["scroll"+e],t.body["offset"+e],o["offset"+e],o["client"+e])):r===s?re.css(t,n,r,a):re.style(t,n,r,a)},t,i?r:s,i,null)}})}),i.jQuery=i.$=re,n(20)&&n(20).jQuery&&(r=[],o=function(){return re}.apply(t,r),!(o!==s&&(e.exports=o)))}(window)},function(e,t,n){t=e.exports=n(37)(),t.push([e.id,"*,:after,:before{box-sizing:border-box}body,html{margin:0;padding:0;height:100%;font-family:Helvetica Neue,Helvetica,Arial,sans-serif}.header{width:100%;height:30px;padding:0 10px;border-left:10px solid #a3be8c;font-size:12px;line-height:30px;color:#eff1f5;background:#343d46;overflow:hidden}#iframe{position:absolute;top:30px;right:0;bottom:0;left:0;width:100%;height:-ms-calc(100% - 30px);height:-o-calc(100% - 30px);height:calc(100% - 30px);border:0}#errors{width:100%;margin:0;padding:10px;font-family:monospace;font-size:14px;line-height:1.4;color:#eff1f5;background:#bf616a;overflow:auto}#okness{font-weight:700}",""])},function(e,t){e.exports=function(){var e=[];return e.toString=function(){for(var e=[],t=0;t<this.length;t++){var n=this[t];n[2]?e.push("@media "+n[2]+"{"+n[1]+"}"):e.push(n[1])}return e.join("")},e.i=function(t,n){"string"==typeof t&&(t=[[null,t,""]]);for(var r={},o=0;o<this.length;o++){var i=this[o][0];"number"==typeof i&&(r[i]=!0)}for(o=0;o<t.length;o++){var s=t[o];"number"==typeof s[0]&&r[s[0]]||(n&&!s[2]?s[2]=n:n&&(s[2]="("+s[2]+") and ("+n+")"),e.push(s))}},e}},function(e,t,n){n(39);e.exports=function(e){var t=[];return t.push('<div class="header"><span id="okness"></span> <span id="status"></span></div><pre id="errors"></pre><div id="warnings"></div><iframe id="iframe" src="javascript:;" allowfullscreen></iframe>'),t.join("")}},function(e,t,n){"use strict";function r(e){return null!=e&&""!==e}function o(e){return(Array.isArray(e)?e.map(o):e&&"object"==typeof e?Object.keys(e).filter(function(t){return e[t]}):[e]).filter(r).join(" ")}function i(e){return a[e]||e}function s(e){var t=String(e).replace(c,i);return t===""+e?e:t}t.merge=function u(e,t){if(1===arguments.length){for(var n=e[0],o=1;o<e.length;o++)n=u(n,e[o]);return n}var i=e["class"],s=t["class"];(i||s)&&(i=i||[],s=s||[],Array.isArray(i)||(i=[i]),Array.isArray(s)||(s=[s]),e["class"]=i.concat(s).filter(r));for(var a in t)"class"!=a&&(e[a]=t[a]);return e},t.joinClasses=o,t.cls=function(e,n){for(var r=[],i=0;i<e.length;i++)n&&n[i]?r.push(t.escape(o([e[i]]))):r.push(o(e[i]));var s=o(r);return s.length?' class="'+s+'"':""},t.style=function(e){return e&&"object"==typeof e?Object.keys(e).map(function(t){return t+":"+e[t]}).join(";"):e},t.attr=function(e,n,r,o){return"style"===e&&(n=t.style(n)),"boolean"==typeof n||null==n?n?" "+(o?e:e+'="'+e+'"'):"":0==e.indexOf("data")&&"string"!=typeof n?(-1!==JSON.stringify(n).indexOf("&")&&console.warn("Since Jade 2.0.0, ampersands (`&`) in data attributes will be escaped to `&`"),n&&"function"==typeof n.toISOString&&console.warn("Jade will eliminate the double quotes around dates in ISO form after 2.0.0")," "+e+"='"+JSON.stringify(n).replace(/'/g,"'")+"'"):r?(n&&"function"==typeof n.toISOString&&console.warn("Jade will stringify dates in ISO form after 2.0.0")," "+e+'="'+t.escape(n)+'"'):(n&&"function"==typeof n.toISOString&&console.warn("Jade will stringify dates in ISO form after 2.0.0")," "+e+'="'+n+'"')},t.attrs=function(e,n){var r=[],i=Object.keys(e);if(i.length)for(var s=0;s<i.length;++s){var a=i[s],c=e[a];"class"==a?(c=o(c))&&r.push(" "+a+'="'+c+'"'):r.push(t.attr(a,c,!1,n))}return r.join("")};var a={"&":"&","<":"<",">":">",'"':"""},c=/[&<>"]/g;t.escape=s,t.rethrow=function l(e,t,r,o){if(!(e instanceof Error))throw e;if(!("undefined"==typeof window&&t||o))throw e.message+=" on line "+r,e;try{o=o||n(76).readFileSync(t,"utf8")}catch(i){l(e,null,r)}var s=3,a=o.split("\n"),c=Math.max(r-s,0),u=Math.min(a.length,r+s),s=a.slice(c,u).map(function(e,t){var n=t+c+1;return(n==r?" > ":" ")+n+"| "+e}).join("\n");throw e.path=t,e.message=(t||"Jade")+":"+r+"\n"+s+"\n\n"+e.message,e},t.DebugItem=function(e,t){this.lineno=e,this.filename=t}},function(e,t,n){(function(t){"use strict";var r=n(49);e.exports=n(47)(r),"_sockjs_onload"in t&&setTimeout(t._sockjs_onload,1)}).call(t,function(){return this}())},function(e,t,n){"use strict";function r(){i.call(this),this.initEvent("close",!1,!1),this.wasClean=!1,this.code=0,this.reason=""}var o=n(1),i=n(15);o(r,i),e.exports=r},function(e,t,n){"use strict";function r(e){i.call(this),this.initEvent("message",!1,!1),this.data=e}var o=n(1),i=n(15);o(r,i),e.exports=r},function(e,t,n){"use strict";function r(e){this._transport=e,e.on("message",this._transportMessage.bind(this)),e.on("close",this._transportClose.bind(this))}var o=n(6),i=n(12);r.prototype._transportClose=function(e,t){i.postMessage("c",o.stringify([e,t]))},r.prototype._transportMessage=function(e){i.postMessage("t",e)},r.prototype._send=function(e){this._transport.send(e)},r.prototype._close=function(){this._transport.close(),this._transport.removeAllListeners()},e.exports=r},function(e,t,n){(function(t){"use strict";var r=n(5),o=n(7),i=n(6),s=n(43),a=n(23),c=n(12),u=n(24),l=function(){};"production"!==t.env.NODE_ENV&&(l=n(3)("sockjs-client:iframe-bootstrap")),e.exports=function(e,t){var n={};t.forEach(function(e){e.facadeTransport&&(n[e.facadeTransport.transportName]=e.facadeTransport)}),n[a.transportName]=a;var f;e.bootstrap_iframe=function(){var t;c.currentWindowId=u.hash.slice(1);var a=function(o){if(o.source===parent&&("undefined"==typeof f&&(f=o.origin),o.origin===f)){var a;try{a=i.parse(o.data)}catch(p){return void l("bad json",o.data)}if(a.windowId===c.currentWindowId)switch(a.type){case"s":var d;try{d=i.parse(a.data)}catch(p){l("bad json",a.data);break}var h=d[0],m=d[1],g=d[2],y=d[3];if(l(h,m,g,y),h!==e.version)throw new Error('Incompatibile SockJS! Main site uses: "'+h+'", the iframe: "'+e.version+'".');if(!r.isOriginEqual(g,u.href)||!r.isOriginEqual(y,u.href))throw new Error("Can't connect to different domain from within an iframe. ("+u.href+", "+g+", "+y+")");t=new s(new n[m](g,y));break;case"m":t._send(a.data);break;case"c":t&&t._close(),t=null}}};o.attachEvent("message",a),c.postMessage("s")}}}).call(t,n(2))},function(e,t,n){(function(t,r){"use strict";function o(e,t){var n=this;i.call(this);var o=function(){var r=n.ifr=new u(l.transportName,t,e);r.once("message",function(e){if(e){var t;try{t=a.parse(e)}catch(r){return f("bad json",e),n.emit("finish"),void n.close()}var o=t[0],i=t[1];n.emit("finish",o,i)}n.close()}),r.once("close",function(){n.emit("finish"),n.close()})};r.document.body?o():c.attachEvent("load",o)}var i=n(4).EventEmitter,s=n(1),a=n(6),c=n(7),u=n(29),l=n(23),f=function(){};"production"!==t.env.NODE_ENV&&(f=n(3)("sockjs-client:info-iframe")),s(o,i),o.enabled=function(){return u.enabled()},o.prototype.close=function(){this.ifr&&this.ifr.close(),this.removeAllListeners(),this.ifr=null},e.exports=o}).call(t,n(2),function(){return this}())},function(e,t,n){(function(t){"use strict";function r(e,t){d(e);var n=this;o.call(this),setTimeout(function(){n.doXhr(e,t)},0)}var o=n(4).EventEmitter,i=n(1),s=n(5),a=n(17),c=n(14),u=n(10),l=n(58),f=n(45),p=n(22),d=function(){};"production"!==t.env.NODE_ENV&&(d=n(3)("sockjs-client:info-receiver")),i(r,o),r._getReceiver=function(e,t,n){return n.sameOrigin?new p(t,u):c.enabled?new p(t,c):a.enabled&&n.sameScheme?new p(t,a):f.enabled()?new f(e,t):new p(t,l)},r.prototype.doXhr=function(e,t){var n=this,o=s.addPath(e,"/info");d("doXhr",o),this.xo=r._getReceiver(e,o,t),this.timeoutRef=setTimeout(function(){d("timeout"),n._cleanup(!1),n.emit("finish")},r.timeout),this.xo.once("finish",function(e,t){d("finish",e,t),n._cleanup(!0),n.emit("finish",e,t)})},r.prototype._cleanup=function(e){d("_cleanup"),clearTimeout(this.timeoutRef),this.timeoutRef=null,!e&&this.xo&&this.xo.close(),this.xo=null},r.prototype.close=function(){d("close"),this.removeAllListeners(),this._cleanup(!1)},r.timeout=8e3,e.exports=r}).call(t,n(2))},function(e,t,n){(function(t,r){"use strict";function o(e,t,n){if(!(this instanceof o))return new o(e,t,n);if(arguments.length<1)throw new TypeError("Failed to construct 'SockJS: 1 argument required, but only 0 present");v.call(this),this.readyState=o.CONNECTING,this.extensions="",this.protocol="",n=n||{},n.protocols_whitelist&&g.warn("'protocols_whitelist' is DEPRECATED. Use 'transports' instead."),this._transportsWhitelist=n.transports;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 u.string(r)}}this._server=n.server||u.numberString(1e3);var i=new s(e);if(!i.host||!i.protocol)throw new SyntaxError("The URL '"+e+"' 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 a="https:"===i.protocol;if("https"===b.protocol&&!a)throw new Error("SecurityError: An insecure SockJS connection may not be initiated from a page loaded over HTTPS");t?Array.isArray(t)||(t=[t]):t=[];var c=t.sort();c.forEach(function(e,t){if(!e)throw new SyntaxError("The protocols entry '"+e+"' is invalid.");if(t<c.length-1&&e===c[t+1])throw new SyntaxError("The protocols entry '"+e+"' is duplicated.")});var l=f.getOrigin(b.href);this._origin=l?l.toLowerCase():null,i.set("pathname",i.pathname.replace(/\/+$/,"")),this.url=i.href,T("using url",this.url),this._urlInfo={nullOrigin:!m.hasDomain(),sameOrigin:f.isOriginEqual(this.url,b.href),sameScheme:f.isSchemeEqual(this.url,b.href)},this._ir=new E(this.url,this._urlInfo),this._ir.once("finish",this._receiveInfo.bind(this))}function i(e){return 1e3===e||e>=3e3&&4999>=e}n(48);var s=n(19),a=n(1),c=n(6),u=n(9),l=n(63),f=n(5),p=n(7),d=n(65),h=n(18),m=n(11),g=n(64),y=n(15),v=n(21),b=n(24),x=n(41),w=n(42),E=n(46),T=function(){};"production"!==t.env.NODE_ENV&&(r.dbg=n(3),T=r.dbg("sockjs-client:main"));var N;a(o,v),o.prototype.close=function(e,t){if(e&&!i(e))throw new Error("InvalidAccessError: Invalid code");if(t&&t.length>123)throw new SyntaxError("reason argument has an invalid length");if(this.readyState!==o.CLOSING&&this.readyState!==o.CLOSED){var n=!0;this._close(e||1e3,t||"Normal closure",n)}},o.prototype.send=function(e){if("string"!=typeof e&&(e=""+e),this.readyState===o.CONNECTING)throw new Error("InvalidStateError: The connection has not been established yet");this.readyState===o.OPEN&&this._transport.send(l.quote(e))},o.version=n(33),o.CONNECTING=0,o.OPEN=1,o.CLOSING=2,o.CLOSED=3,o.prototype._receiveInfo=function(e,t){if(T("_receiveInfo",t),this._ir=null,!e)return void this._close(1002,"Cannot connect to server");this._rto=this.countRTO(t),this._transUrl=e.base_url?e.base_url:this.url,e=h.extend(e,this._urlInfo),T("info",e);var n=N.filterToEnabled(this._transportsWhitelist,e);this._transports=n.main,T(this._transports.length+" enabled transports"),this._connect()},o.prototype._connect=function(){for(var e=this._transports.shift();e;e=this._transports.shift()){if(T("attempt",e.transportName),e.needBody&&(!r.document.body||"undefined"!=typeof r.document.readyState&&"complete"!==r.document.readyState&&"interactive"!==r.document.readyState))return T("waiting for body"),this._transports.unshift(e),void p.attachEvent("load",this._connect.bind(this));var t=this._rto*e.roundTrips||5e3;this._transportTimeoutId=setTimeout(this._transportTimeout.bind(this),t),T("using timeout",t);var n=f.addPath(this._transUrl,"/"+this._server+"/"+this._generateSessionId());T("transport url",n);var o=new e(n,this._transUrl);return o.on("message",this._transportMessage.bind(this)),o.once("close",this._transportClose.bind(this)),o.transportName=e.transportName,void(this._transport=o)}this._close(2e3,"All transports failed",!1)},o.prototype._transportTimeout=function(){T("_transportTimeout"),this.readyState===o.CONNECTING&&this._transportClose(2007,"Transport timed out")},o.prototype._transportMessage=function(e){T("_transportMessage",e);var t,n=this,r=e.slice(0,1),o=e.slice(1);switch(r){case"o":return void this._open();case"h":return this.dispatchEvent(new y("heartbeat")),void T("heartbeat",this.transport)}if(o)try{t=c.parse(o)}catch(i){T("bad json",o)}if("undefined"==typeof t)return void T("empty payload",o);switch(r){case"a":Array.isArray(t)&&t.forEach(function(e){T("message",n.transport,e),n.dispatchEvent(new w(e))});break;case"m":T("message",this.transport,t),this.dispatchEvent(new w(t));break;case"c":Array.isArray(t)&&2===t.length&&this._close(t[0],t[1],!0)}},o.prototype._transportClose=function(e,t){return T("_transportClose",this.transport,e,t),this._transport&&(this._transport.removeAllListeners(),this._transport=null,this.transport=null),i(e)||2e3===e||this.readyState!==o.CONNECTING?void this._close(e,t):void this._connect()},o.prototype._open=function(){T("_open",this._transport.transportName,this.readyState),this.readyState===o.CONNECTING?(this._transportTimeoutId&&(clearTimeout(this._transportTimeoutId),this._transportTimeoutId=null),this.readyState=o.OPEN,this.transport=this._transport.transportName,this.dispatchEvent(new y("open")),T("connected",this.transport)):this._close(1006,"Server lost session")},o.prototype._close=function(e,t,n){T("_close",this.transport,e,t,n,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===o.CLOSED)throw new Error("InvalidStateError: SockJS has already been closed");this.readyState=o.CLOSING,setTimeout(function(){this.readyState=o.CLOSED,r&&this.dispatchEvent(new y("error"));var i=new x("close");i.wasClean=n||!1,i.code=e||1e3,i.reason=t,this.dispatchEvent(i),this.onmessage=this.onclose=this.onerror=null,T("disconnected")}.bind(this),0)},o.prototype.countRTO=function(e){return e>100?4*e:300+e},e.exports=function(e){return N=d(e),n(44)(o,e),o}}).call(t,n(2),function(){return this}())},function(e,t){"use strict";function n(e){var t=+e;return t!==t?t=0:0!==t&&t!==1/0&&t!==-(1/0)&&(t=(t>0||-1)*Math.floor(Math.abs(t))),t}function r(e){return e>>>0}function o(){}var i,s=Array.prototype,a=Object.prototype,c=Function.prototype,u=String.prototype,l=s.slice,f=a.toString,p=function(e){return"[object Function]"===a.toString.call(e)},d=function(e){return"[object Array]"===f.call(e)},h=function(e){return"[object String]"===f.call(e)},m=Object.defineProperty&&function(){try{return Object.defineProperty({},"x",{}),!0}catch(e){return!1}}();i=m?function(e,t,n,r){!r&&t in e||Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:!0,value:n})}:function(e,t,n,r){!r&&t in e||(e[t]=n)};var g=function(e,t,n){for(var r in t)a.hasOwnProperty.call(t,r)&&i(e,r,t[r],n)},y=function(e){if(null==e)throw new TypeError("can't convert "+e+" to object");return Object(e)};g(c,{bind:function(e){var t=this;if(!p(t))throw new TypeError("Function.prototype.bind called on incompatible "+t);for(var n=l.call(arguments,1),r=function(){if(this instanceof c){var r=t.apply(this,n.concat(l.call(arguments)));return Object(r)===r?r:this}return t.apply(e,n.concat(l.call(arguments)))},i=Math.max(0,t.length-n.length),s=[],a=0;i>a;a++)s.push("$"+a);var c=Function("binder","return function ("+s.join(",")+"){ return binder.apply(this, arguments); }")(r);return t.prototype&&(o.prototype=t.prototype,c.prototype=new o,o.prototype=null),c}}),g(Array,{isArray:d});var v=Object("a"),b="a"!==v[0]||!(0 in v),x=function(e){var t=!0,n=!0;return e&&(e.call("foo",function(e,n,r){"object"!=typeof r&&(t=!1)}),e.call([1],function(){n="string"==typeof this},"x")),!!e&&t&&n};g(s,{forEach:function(e){var t=y(this),n=b&&h(this)?this.split(""):t,r=arguments[1],o=-1,i=n.length>>>0;if(!p(e))throw new TypeError;for(;++o<i;)o in n&&e.call(r,n[o],o,t)}},!x(s.forEach));var w=Array.prototype.indexOf&&-1!==[0,1].indexOf(1,2);g(s,{indexOf:function(e){var t=b&&h(this)?this.split(""):y(this),r=t.length>>>0;if(!r)return-1;var o=0;for(arguments.length>1&&(o=n(arguments[1])),o=o>=0?o:Math.max(0,r+o);r>o;o++)if(o in t&&t[o]===e)return o;return-1}},w);var E=u.split;2!=="ab".split(/(?:ab)*/).length||4!==".".split(/(.?)(.?)/).length||"t"==="tesst".split(/(s)*/)[1]||4!=="test".split(/(?:)/,-1).length||"".split(/.?/).length||".".split(/()()/).length>1?!function(){var e=void 0===/()??/.exec("")[1];u.split=function(t,n){var o=this;if(void 0===t&&0===n)return[];if("[object RegExp]"!==f.call(t))return E.call(this,t,n);var i,a,c,u,l=[],p=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.extended?"x":"")+(t.sticky?"y":""),d=0;
|
|
23
23
|
for(t=new RegExp(t.source,p+"g"),o+="",e||(i=new RegExp("^"+t.source+"$(?!\\s)",p)),n=void 0===n?-1>>>0:r(n);(a=t.exec(o))&&(c=a.index+a[0].length,!(c>d&&(l.push(o.slice(d,a.index)),!e&&a.length>1&&a[0].replace(i,function(){for(var e=1;e<arguments.length-2;e++)void 0===arguments[e]&&(a[e]=void 0)}),a.length>1&&a.index<o.length&&s.push.apply(l,a.slice(1)),u=a[0].length,d=c,l.length>=n)));)t.lastIndex===a.index&&t.lastIndex++;return d===o.length?(u||!t.test(""))&&l.push(""):l.push(o.slice(d)),l.length>n?l.slice(0,n):l}}():"0".split(void 0,0).length&&(u.split=function(e,t){return void 0===e&&0===t?[]:E.call(this,e,t)});var T=" \n\x0B\f\r \u2028\u2029\ufeff",N="",C="["+T+"]",S=new RegExp("^"+C+C+"*"),_=new RegExp(C+C+"*$"),k=u.trim&&(T.trim()||!N.trim());g(u,{trim:function(){if(void 0===this||null===this)throw new TypeError("can't convert "+this+" to object");return String(this).replace(S,"").replace(_,"")}},k);var j=u.substr,A="".substr&&"b"!=="0b".substr(-1);g(u,{substr:function(e,t){return j.call(this,0>e&&(e=this.length+e)<0?0:e,t)}},A)},function(e,t,n){"use strict";e.exports=[n(59),n(61),n(31),n(27),n(16)(n(27)),n(28),n(16)(n(28)),n(32),n(60),n(16)(n(32)),n(51)]},function(e,t){(function(t){e.exports=t.WebSocket||t.MozWebSocket}).call(t,function(){return this}())},function(e,t,n){(function(t){"use strict";function r(e){if(!r.enabled())throw new Error("Transport created when disabled");i.call(this,e,"/jsonp",a,s)}var o=n(1),i=n(30),s=n(56),a=n(57);o(r,i),r.enabled=function(){return!!t.document},r.transportName="jsonp-polling",r.roundTrips=1,r.needBody=!0,e.exports=r}).call(t,function(){return this}())},function(e,t,n){(function(t){"use strict";function r(e,t){s(e),i.call(this),this.sendBuffer=[],this.sender=t,this.url=e}var o=n(1),i=n(4).EventEmitter,s=function(){};"production"!==t.env.NODE_ENV&&(s=n(3)("sockjs-client:buffered-sender")),o(r,i),r.prototype.send=function(e){s("send",e),this.sendBuffer.push(e),this.sendStop||this.sendSchedule()},r.prototype.sendScheduleWait=function(){s("sendScheduleWait");var e,t=this;this.sendStop=function(){s("sendStop"),t.sendStop=null,clearTimeout(e)},e=setTimeout(function(){s("timeout"),t.sendStop=null,t.sendSchedule()},25)},r.prototype.sendSchedule=function(){s("sendSchedule",this.sendBuffer.length);var e=this;if(this.sendBuffer.length>0){var t="["+this.sendBuffer.join(",")+"]";this.sendStop=this.sender(this.url,t,function(t){e.sendStop=null,t?(s("error",t),e.emit("close",t.code||1006,"Sending error: "+t),e._cleanup()):e.sendScheduleWait()}),this.sendBuffer=[]}},r.prototype._cleanup=function(){s("_cleanup"),this.removeAllListeners()},r.prototype.stop=function(){s("stop"),this._cleanup(),this.sendStop&&(this.sendStop(),this.sendStop=null)},e.exports=r}).call(t,n(2))},function(e,t,n){(function(t){"use strict";function r(e,t,n){s(t),i.call(this),this.Receiver=e,this.receiveUrl=t,this.AjaxObject=n,this._scheduleReceiver()}var o=n(1),i=n(4).EventEmitter,s=function(){};"production"!==t.env.NODE_ENV&&(s=n(3)("sockjs-client:polling")),o(r,i),r.prototype._scheduleReceiver=function(){s("_scheduleReceiver");var e=this,t=this.poll=new this.Receiver(this.receiveUrl,this.AjaxObject);t.on("message",function(t){s("message",t),e.emit("message",t)}),t.once("close",function(n,r){s("close",n,r,e.pollIsClosing),e.poll=t=null,e.pollIsClosing||("network"===r?e._scheduleReceiver():(e.emit("close",n||1006,r),e.removeAllListeners()))})},r.prototype.abort=function(){s("abort"),this.removeAllListeners(),this.pollIsClosing=!0,this.poll&&this.poll.abort()},e.exports=r}).call(t,n(2))},function(e,t,n){(function(t){"use strict";function r(e){a(e),i.call(this);var t=this,n=this.es=new s(e);n.onmessage=function(e){a("message",e.data),t.emit("message",decodeURI(e.data))},n.onerror=function(e){a("error",n.readyState,e);var r=2!==n.readyState?"network":"permanent";t._cleanup(),t._close(r)}}var o=n(1),i=n(4).EventEmitter,s=n(26),a=function(){};"production"!==t.env.NODE_ENV&&(a=n(3)("sockjs-client:receiver:eventsource")),o(r,i),r.prototype.abort=function(){a("abort"),this._cleanup(),this._close("user")},r.prototype._cleanup=function(){a("cleanup");var e=this.es;e&&(e.onmessage=e.onerror=null,e.close(),this.es=null)},r.prototype._close=function(e){a("close",e);var t=this;setTimeout(function(){t.emit("close",null,e),t.removeAllListeners()},200)},e.exports=r}).call(t,n(2))},function(e,t,n){(function(t,r){"use strict";function o(e){l(e),c.call(this);var t=this;s.polluteGlobalNamespace(),this.id="a"+u.string(6),e=a.addQuery(e,"c="+decodeURIComponent(s.WPrefix+"."+this.id)),l("using htmlfile",o.htmlfileEnabled);var n=o.htmlfileEnabled?s.createHtmlfile:s.createIframe;r[s.WPrefix][this.id]={start:function(){l("start"),t.iframeObj.loaded()},message:function(e){l("message",e),t.emit("message",e)},stop:function(){l("stop"),t._cleanup(),t._close("network")}},this.iframeObj=n(e,function(){l("callback"),t._cleanup(),t._close("permanent")})}var i=n(1),s=n(12),a=n(5),c=n(4).EventEmitter,u=n(9),l=function(){};"production"!==t.env.NODE_ENV&&(l=n(3)("sockjs-client:receiver:htmlfile")),i(o,c),o.prototype.abort=function(){l("abort"),this._cleanup(),this._close("user")},o.prototype._cleanup=function(){l("_cleanup"),this.iframeObj&&(this.iframeObj.cleanup(),this.iframeObj=null),delete r[s.WPrefix][this.id]},o.prototype._close=function(e){l("_close",e),this.emit("close",null,e),this.removeAllListeners()},o.htmlfileEnabled=!1;var f=["Active"].concat("Object").join("X");if(f in r)try{o.htmlfileEnabled=!!new r[f]("htmlfile")}catch(p){}o.enabled=o.htmlfileEnabled||s.iframeEnabled,e.exports=o}).call(t,n(2),function(){return this}())},function(e,t,n){(function(t,r){"use strict";function o(e){f(e);var t=this;l.call(this),i.polluteGlobalNamespace(),this.id="a"+s.string(6);var n=c.addQuery(e,"c="+encodeURIComponent(i.WPrefix+"."+this.id));r[i.WPrefix][this.id]=this._callback.bind(this),this._createScript(n),this.timeoutId=setTimeout(function(){f("timeout"),t._abort(new Error("JSONP script loaded abnormally (timeout)"))},o.timeout)}var i=n(12),s=n(9),a=n(11),c=n(5),u=n(1),l=n(4).EventEmitter,f=function(){};"production"!==t.env.NODE_ENV&&(f=n(3)("sockjs-client:receiver:jsonp")),u(o,l),o.prototype.abort=function(){if(f("abort"),r[i.WPrefix][this.id]){var e=new Error("JSONP user aborted read");e.code=1e3,this._abort(e)}},o.timeout=35e3,o.scriptErrorTimeout=1e3,o.prototype._callback=function(e){f("_callback",e),this._cleanup(),this.aborting||(e&&(f("message",e),this.emit("message",e)),this.emit("close",null,"network"),this.removeAllListeners())},o.prototype._abort=function(e){f("_abort",e),this._cleanup(),this.aborting=!0,this.emit("close",e.code,e.message),this.removeAllListeners()},o.prototype._cleanup=function(){if(f("_cleanup"),clearTimeout(this.timeoutId),this.script2&&(this.script2.parentNode.removeChild(this.script2),this.script2=null),this.script){var e=this.script;e.parentNode.removeChild(e),e.onreadystatechange=e.onerror=e.onload=e.onclick=null,this.script=null}delete r[i.WPrefix][this.id]},o.prototype._scriptError=function(){f("_scriptError");var e=this;this.errorTimer||(this.errorTimer=setTimeout(function(){e.loadedOkay||e._abort(new Error("JSONP script loaded abnormally (onerror)"))},o.scriptErrorTimeout))},o.prototype._createScript=function(e){f("_createScript",e);var t,n=this,o=this.script=r.document.createElement("script");if(o.id="a"+s.string(8),o.src=e,o.type="text/javascript",o.charset="UTF-8",o.onerror=this._scriptError.bind(this),o.onload=function(){f("onload"),n._abort(new Error("JSONP script loaded abnormally (onload)"))},o.onreadystatechange=function(){if(f("onreadystatechange",o.readyState),/loaded|closed/.test(o.readyState)){if(o&&o.htmlFor&&o.onclick){n.loadedOkay=!0;try{o.onclick()}catch(e){}}o&&n._abort(new Error("JSONP script loaded abnormally (onreadystatechange)"))}},"undefined"==typeof o.async&&r.document.attachEvent)if(a.isOpera())t=this.script2=r.document.createElement("script"),t.text="try{var a = document.getElementById('"+o.id+"'); if(a)a.onerror();}catch(x){};",o.async=t.async=!1;else{try{o.htmlFor=o.id,o.event="onclick"}catch(i){}o.async=!0}"undefined"!=typeof o.async&&(o.async=!0);var c=r.document.getElementsByTagName("head")[0];c.insertBefore(o,c.firstChild),t&&c.insertBefore(t,c.firstChild)},e.exports=o}).call(t,n(2),function(){return this}())},function(e,t,n){(function(t,r){"use strict";function o(e){c("createIframe",e);try{return r.document.createElement('<iframe name="'+e+'">')}catch(t){var n=r.document.createElement("iframe");return n.name=e,n}}function i(){c("createForm"),u=r.document.createElement("form"),u.style.display="none",u.style.position="absolute",u.method="POST",u.enctype="application/x-www-form-urlencoded",u.acceptCharset="UTF-8",l=r.document.createElement("textarea"),l.name="d",u.appendChild(l),r.document.body.appendChild(u)}var s=n(9),a=n(5),c=function(){};"production"!==t.env.NODE_ENV&&(c=n(3)("sockjs-client:sender:jsonp"));var u,l;e.exports=function(e,t,n){c(e,t),u||i();var r="a"+s.string(8);u.target=r,u.action=a.addQuery(a.addPath(e,"/jsonp_send"),"i="+r);var f=o(r);f.id=r,f.style.display="none",u.appendChild(f);try{l.value=t}catch(p){}u.submit();var d=function(e){c("completed",r,e),f.onerror&&(f.onreadystatechange=f.onerror=f.onload=null,setTimeout(function(){c("cleaning up",r),f.parentNode.removeChild(f),f=null},500),l.value="",n(e))};return f.onerror=function(){c("onerror",r),d()},f.onload=function(){c("onload",r),d()},f.onreadystatechange=function(e){c("onreadystatechange",r,f.readyState,e),"complete"===f.readyState&&d()},function(){c("aborted",r),d(new Error("Aborted"))}}}).call(t,n(2),function(){return this}())},function(e,t,n){"use strict";function r(){var e=this;o.call(this),this.to=setTimeout(function(){e.emit("finish",200,"{}")},r.timeout)}var o=n(4).EventEmitter,i=n(1);i(r,o),r.prototype.close=function(){clearTimeout(this.to)},r.timeout=2e3,e.exports=r},function(e,t,n){(function(t){"use strict";function r(e){if(!r.enabled())throw new Error("Transport created when disabled");a.call(this),u("constructor",e);var t=this,n=i.addPath(e,"/websocket");n="https"===n.slice(0,5)?"wss"+n.slice(5):"ws"+n.slice(4),this.url=n,this.ws=new c(this.url),this.ws.onmessage=function(e){u("message event",e.data),t.emit("message",e.data)},this.unloadRef=o.unloadAdd(function(){u("unload"),t.ws.close()}),this.ws.onclose=function(e){u("close event",e.code,e.reason),t.emit("close",e.code,e.reason),t._cleanup()},this.ws.onerror=function(e){u("error event",e),t.emit("close",1006,"WebSocket connection broken"),t._cleanup()}}var o=n(7),i=n(5),s=n(1),a=n(4).EventEmitter,c=n(50),u=function(){};"production"!==t.env.NODE_ENV&&(u=n(3)("sockjs-client:websocket")),s(r,a),r.prototype.send=function(e){var t="["+e+"]";u("send",t),this.ws.send(t)},r.prototype.close=function(){u("close"),this.ws&&this.ws.close(),this._cleanup()},r.prototype._cleanup=function(){u("_cleanup");var e=this.ws;e&&(e.onmessage=e.onclose=e.onerror=null),o.unloadDel(this.unloadRef),this.unloadRef=this.ws=null,this.removeAllListeners()},r.enabled=function(){return u("enabled"),!!c},r.transportName="websocket",r.roundTrips=2,e.exports=r}).call(t,n(2))},function(e,t,n){"use strict";function r(e){if(!c.enabled)throw new Error("Transport created when disabled");i.call(this,e,"/xhr",a,c)}var o=n(1),i=n(8),s=n(31),a=n(13),c=n(17);o(r,i),r.enabled=s.enabled,r.transportName="xdr-polling",r.roundTrips=2,e.exports=r},function(e,t,n){(function(t){"use strict";function r(e){if(!c.enabled&&!a.enabled)throw new Error("Transport created when disabled");i.call(this,e,"/xhr_streaming",s,a)}var o=n(1),i=n(8),s=n(13),a=n(14),c=n(10),u=n(11);o(r,i),r.enabled=function(e){return e.nullOrigin?!1:u.isOpera()?!1:a.enabled},r.transportName="xhr-streaming",r.roundTrips=2,r.needBody=!!t.document,e.exports=r}).call(t,function(){return this}())},function(e,t){(function(t){"use strict";t.crypto&&t.crypto.getRandomValues?e.exports.randomBytes=function(e){var n=new Uint8Array(e);return t.crypto.getRandomValues(n),n}:e.exports.randomBytes=function(e){for(var t=new Array(e),n=0;e>n;n++)t[n]=Math.floor(256*Math.random());return t}}).call(t,function(){return this}())},function(e,t,n){"use strict";var r,o=n(6),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,s=function(e){var t,n={},r=[];for(t=0;65536>t;t++)r.push(String.fromCharCode(t));return e.lastIndex=0,r.join("").replace(e,function(e){return n[e]="\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4),""}),e.lastIndex=0,n};e.exports={quote:function(e){var t=o.stringify(e);return i.lastIndex=0,i.test(t)?(r||(r=s(i)),t.replace(i,function(e){return r[e]})):t}}},function(e,t){(function(t){"use strict";var n={};["log","debug","warn"].forEach(function(e){var r=t.console&&t.console[e]&&t.console[e].apply;n[e]=r?function(){return t.console[e].apply(t.console,arguments)}:"log"===e?function(){}:n.log}),e.exports=n}).call(t,function(){return this}())},function(e,t,n){(function(t){"use strict";var r=function(){};"production"!==t.env.NODE_ENV&&(r=n(3)("sockjs-client:utils:transport")),e.exports=function(e){return{filterToEnabled:function(t,n){var o={main:[],facade:[]};return t?"string"==typeof t&&(t=[t]):t=[],e.forEach(function(e){return e?"websocket"===e.transportName&&n.websocket===!1?void r("disabled from server","websocket"):t.length&&-1===t.indexOf(e.transportName)?void r("not in whitelist",e.transportName):void(e.enabled(n)?(r("enabled",e.transportName),o.main.push(e),e.facadeTransport&&o.facade.push(e.facadeTransport)):r("disabled",e.transportName)):void 0}),o}}}}).call(t,n(2))},function(e,t,n){function r(){return t.colors[l++%t.colors.length]}function o(e){function n(){}function o(){var e=o,n=+new Date,i=n-(u||n);e.diff=i,e.prev=u,e.curr=n,u=n,null==e.useColors&&(e.useColors=t.useColors()),null==e.color&&e.useColors&&(e.color=r());var s=Array.prototype.slice.call(arguments);s[0]=t.coerce(s[0]),"string"!=typeof s[0]&&(s=["%o"].concat(s));var a=0;s[0]=s[0].replace(/%([a-z%])/g,function(n,r){if("%%"===n)return n;a++;var o=t.formatters[r];if("function"==typeof o){var i=s[a];n=o.call(e,i),s.splice(a,1),a--}return n}),"function"==typeof t.formatArgs&&(s=t.formatArgs.apply(e,s));var c=o.log||t.log||console.log.bind(console);c.apply(e,s)}n.enabled=!1,o.enabled=!0;var i=t.enabled(e)?o:n;return i.namespace=e,i}function i(e){t.save(e);for(var n=(e||"").split(/[\s,]+/),r=n.length,o=0;r>o;o++)n[o]&&(e=n[o].replace(/\*/g,".*?"),"-"===e[0]?t.skips.push(new RegExp("^"+e.substr(1)+"$")):t.names.push(new RegExp("^"+e+"$")))}function s(){t.enable("")}function a(e){var n,r;for(n=0,r=t.skips.length;r>n;n++)if(t.skips[n].test(e))return!1;for(n=0,r=t.names.length;r>n;n++)if(t.names[n].test(e))return!0;return!1}function c(e){return e instanceof Error?e.stack||e.message:e}t=e.exports=o,t.coerce=c,t.disable=s,t.enable=i,t.enabled=a,t.humanize=n(67),t.names=[],t.skips=[],t.formatters={};var u,l=0},function(e,t){function n(e){if(e=""+e,!(e.length>1e4)){var t=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(t){var n=parseFloat(t[1]),r=(t[2]||"ms").toLowerCase();switch(r){case"years":case"year":case"yrs":case"yr":case"y":return n*l;case"days":case"day":case"d":return n*u;case"hours":case"hour":case"hrs":case"hr":case"h":return n*c;case"minutes":case"minute":case"mins":case"min":case"m":return n*a;case"seconds":case"second":case"secs":case"sec":case"s":return n*s;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n}}}}function r(e){return e>=u?Math.round(e/u)+"d":e>=c?Math.round(e/c)+"h":e>=a?Math.round(e/a)+"m":e>=s?Math.round(e/s)+"s":e+"ms"}function o(e){return i(e,u,"day")||i(e,c,"hour")||i(e,a,"minute")||i(e,s,"second")||e+" ms"}function i(e,t,n){return t>e?void 0:1.5*t>e?Math.floor(e/t)+" "+n:Math.ceil(e/t)+" "+n+"s"}var s=1e3,a=60*s,c=60*a,u=24*c,l=365.25*u;e.exports=function(e,t){return t=t||{},"string"==typeof e?n(e):t["long"]?o(e):r(e)}},function(e,t,n){(function(t){"use strict";var r,o={hash:1,query:1};e.exports=function(e){e=e||t.location||{},r=r||n(19);var i,s={},a=typeof e;if("blob:"===e.protocol)s=new r(unescape(e.pathname),{});else if("string"===a){s=new r(e,{});for(i in o)delete s[i]}else if("object"===a)for(i in e)i in o||(s[i]=e[i]);return s}}).call(t,function(){return this}())},function(e,t){"use strict";function n(e){for(var t,n=/([^=?&]+)=([^&]*)/g,r={};t=n.exec(e);r[decodeURIComponent(t[1])]=decodeURIComponent(t[2]));return r}function r(e,t){t=t||"";var n=[];"string"!=typeof t&&(t="?");for(var r in e)o.call(e,r)&&n.push(encodeURIComponent(r)+"="+encodeURIComponent(e[r]));return n.length?t+n.join("&"):""}var o=Object.prototype.hasOwnProperty;t.stringify=r,t.parse=n},function(e,t){"use strict";e.exports=function(e,t){if(t=t.split(":")[0],e=+e,!e)return!1;switch(t){case"http":case"ws":return 80!==e;case"https":case"wss":return 443!==e;case"ftp":return 21!==e;case"gopher":return 70!==e;case"file":return!1}return 0!==e}},function(e,t,n){"use strict";var r=n(72)();e.exports=function(e){return"string"==typeof e?e.replace(r,""):e}},function(e,t){"use strict";e.exports=function(){return/[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/g}},function(e,t,n){function r(e,t){for(var n=0;n<e.length;n++){var r=e[n],o=d[r.id];if(o){o.refs++;for(var i=0;i<o.parts.length;i++)o.parts[i](r.parts[i]);for(;i<r.parts.length;i++)o.parts.push(u(r.parts[i],t))}else{for(var s=[],i=0;i<r.parts.length;i++)s.push(u(r.parts[i],t));d[r.id]={id:r.id,refs:1,parts:s}}}}function o(e){for(var t=[],n={},r=0;r<e.length;r++){var o=e[r],i=o[0],s=o[1],a=o[2],c=o[3],u={css:s,media:a,sourceMap:c};n[i]?n[i].parts.push(u):t.push(n[i]={id:i,parts:[u]})}return t}function i(e,t){var n=g(),r=b[b.length-1];if("top"===e.insertAt)r?r.nextSibling?n.insertBefore(t,r.nextSibling):n.appendChild(t):n.insertBefore(t,n.firstChild),b.push(t);else{if("bottom"!==e.insertAt)throw new Error("Invalid value for parameter 'insertAt'. Must be 'top' or 'bottom'.");n.appendChild(t)}}function s(e){e.parentNode.removeChild(e);var t=b.indexOf(e);t>=0&&b.splice(t,1)}function a(e){var t=document.createElement("style");return t.type="text/css",i(e,t),t}function c(e){var t=document.createElement("link");return t.rel="stylesheet",i(e,t),t}function u(e,t){var n,r,o;if(t.singleton){var i=v++;n=y||(y=a(t)),r=l.bind(null,n,i,!1),o=l.bind(null,n,i,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=c(t),r=p.bind(null,n),o=function(){s(n),n.href&&URL.revokeObjectURL(n.href)}):(n=a(t),r=f.bind(null,n),o=function(){s(n)});return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else o()}}function l(e,t,n,r){var o=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=x(t,o);else{var i=document.createTextNode(o),s=e.childNodes;s[t]&&e.removeChild(s[t]),s.length?e.insertBefore(i,s[t]):e.appendChild(i)}}function f(e,t){var n=t.css,r=t.media;t.sourceMap;if(r&&e.setAttribute("media",r),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}function p(e,t){var n=t.css,r=(t.media,t.sourceMap);r&&(n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(r))))+" */");var o=new Blob([n],{type:"text/css"}),i=e.href;e.href=URL.createObjectURL(o),i&&URL.revokeObjectURL(i)}var d={},h=function(e){var t;return function(){return"undefined"==typeof t&&(t=e.apply(this,arguments)),t}},m=h(function(){return/msie [6-9]\b/.test(window.navigator.userAgent.toLowerCase())}),g=h(function(){return document.head||document.getElementsByTagName("head")[0]}),y=null,v=0,b=[];e.exports=function(e,t){t=t||{},"undefined"==typeof t.singleton&&(t.singleton=m()),"undefined"==typeof t.insertAt&&(t.insertAt="bottom");var n=o(e);return r(n,t),function(e){for(var i=[],s=0;s<n.length;s++){var a=n[s],c=d[a.id];c.refs--,i.push(c)}if(e){var u=o(e);r(u,t)}for(var s=0;s<i.length;s++){var c=i[s];if(0===c.refs){for(var l=0;l<c.parts.length;l++)c.parts[l]();delete d[c.id]}}}};var x=function(){var e=[];return function(t,n){return e[t]=n,e.filter(Boolean).join("\n")}}()},function(e,t,n){var r=n(36);"string"==typeof r&&(r=[[e.id,r,""]]);n(73)(r,{});r.locals&&(e.exports=r.locals)},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children=[],e.webpackPolyfill=1),e}},function(e,t){}]);
|
package/client/style.css
CHANGED
package/lib/Server.js
CHANGED
|
@@ -8,7 +8,7 @@ var StreamCache = require("stream-cache");
|
|
|
8
8
|
var http = require("http");
|
|
9
9
|
var https = require("https");
|
|
10
10
|
var httpProxy = require("http-proxy");
|
|
11
|
-
var proxy = new httpProxy.createProxyServer();
|
|
11
|
+
var proxy = new httpProxy.createProxyServer({secure: false});
|
|
12
12
|
var serveIndex = require("serve-index");
|
|
13
13
|
var historyApiFallback = require("connect-history-api-fallback");
|
|
14
14
|
|
|
@@ -240,14 +240,25 @@ function Server(compiler, options) {
|
|
|
240
240
|
features[feature]();
|
|
241
241
|
}, this);
|
|
242
242
|
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
243
|
+
if (options.https) {
|
|
244
|
+
// for keep supporting CLI parameters
|
|
245
|
+
if (typeof options.https === 'boolean') {
|
|
246
|
+
options.https = {
|
|
247
|
+
key: options.key,
|
|
248
|
+
cert: options.cert,
|
|
249
|
+
ca: options.ca
|
|
250
|
+
};
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
// using built-in self-signed certificate if no certificate was configured
|
|
254
|
+
options.https.key = options.https.key || fs.readFileSync(path.join(__dirname, "../ssl/server.key"));
|
|
255
|
+
options.https.cert = options.https.cert || fs.readFileSync(path.join(__dirname, "../ssl/server.crt"));
|
|
256
|
+
options.https.ca = options.https.ca || fs.readFileSync(path.join(__dirname, "../ssl/ca.crt"));
|
|
257
|
+
|
|
258
|
+
this.listeningApp = https.createServer(options.https, app);
|
|
259
|
+
} else {
|
|
260
|
+
this.listeningApp = http.createServer(app);
|
|
261
|
+
}
|
|
251
262
|
}
|
|
252
263
|
|
|
253
264
|
Server.prototype.use = function() {
|