diff --git a/public/js/all.js b/public/js/all.js index 2d6f1b0..8424e8c 100644 --- a/public/js/all.js +++ b/public/js/all.js @@ -7,5 +7,5 @@ x.prototype[b]=function(){var a=[this._wrapped];return g.apply(a,arguments),L.ca },popState:function(){var a=!Path.history.initial.popped&&location.href==Path.history.initial.URL;Path.history.initial.popped=!0,a||Path.dispatch(document.location.pathname)},listen:function(a){if(Path.history.supported=!(!window.history||!window.history.pushState),Path.history.fallback=a,Path.history.supported)Path.history.initial.popped="state"in window.history,Path.history.initial.URL=location.href,window.onpopstate=Path.history.popState;else if(Path.history.fallback){for(route in Path.routes.defined)"#"!=route.charAt(0)&&(Path.routes.defined["#"+route]=Path.routes.defined[route],Path.routes.defined["#"+route].path="#"+route);Path.listen()}}},match:function(a,b){var c,d,e,f,g,h={},i=null;for(i in Path.routes.defined)if(null!==i&&void 0!==i)for(i=Path.routes.defined[i],c=i.partition(),f=0;f0)for(e=0;e=8)?window.onhashchange=a:setInterval(a,50),""!==location.hash&&Path.dispatch(location.hash)},core:{route:function(a){this.path=a,this.action=null,this.do_enter=[],this.do_exit=null,this.params={},Path.routes.defined[a]=this}},routes:{current:null,root:null,rescue:null,previous:null,defined:{}}};Path.core.route.prototype={to:function(a){return this.action=a,this},enter:function(a){return a instanceof Array?this.do_enter=this.do_enter.concat(a):this.do_enter.push(a),this},exit:function(a){return this.do_exit=a,this},partition:function(){for(var a,b,c=[],d=[],e=/\(([^}]+?)\)/g;a=e.exec(this.path);)c.push(a[1]);for(d.push(this.path.split("(")[0]),b=0;b0)for(a=0;a1/a?"-0":a+""),o=a,e===f&&w.test(a))s.s="-"==a.charAt(0)?(a=a.slice(1),-1):1;else{if(10==e)return h(a,l,m);if(a=x.call(a).replace(/^\+(?!-)/,""),s.s="-"==a.charAt(0)?(a=a.replace(/^-(?!-)/,""),-1):1,null!=e?e!=(0|e)&&r||(i=!(e>=2&&36>=e))?(c(e,2),n=w.test(a)):(k="["+u.slice(0,e=0|e)+"]+",a=a.replace(/\.$/,"").replace(/^\./,"0."),(n=new RegExp("^"+k+"(?:\\."+k+")?$","i").test(a))?(j&&(a.replace(/^0\.0*|\./,"").length>15&&c(o,0),j=!j),a=d(a,10,e,s.s)):"Infinity"!=a&&"NaN"!=a&&(c(o,1,e),a="NaN")):n=w.test(a),!n)return s.c=s.e=null,"Infinity"!=a&&("NaN"!=a&&c(o,3),s.s=null),v=0,void 0}for((f=a.indexOf("."))>-1&&(a=a.replace(".","")),(g=a.search(/e/i))>0?(0>f&&(f=g),f+=+a.slice(g+1),a=a.substring(0,g)):0>f&&(f=a.length),g=0;"0"==a.charAt(g);g++);if(e=a.length,j&&e>15&&a.slice(g).length>15&&c(o,0),v=0,(f-=g+1)>q)s.c=s.e=null;else if(g==e||p>f)s.c=[s.e=0];else{for(;"0"==a.charAt(--e););for(s.e=f,s.c=[],f=0;e>=g;s.c[f++]=+a.charAt(g++));}}function c(a,b,c,d,e,f){if(r){var g,h=["new BigNumber","cmp","div","eq","gt","gte","lt","lte","minus","mod","plus","times","toFr"][v?0>v?-v:v:0>1/v?1:0]+"()",j=i?" out of range":" not a"+(e?" non-zero":"n")+" integer";throw j=([h+" number type has more than 15 significant digits",h+" not a base "+c+" number",h+" base"+j,h+" not a number"][b]||c+"() "+b+(f?" not a boolean or binary digit":j+(d?" or not ["+(i?" negative, positive":" integer, integer")+" ]":"")))+": "+a,i=v=0,g=new Error(j),g.name="BigNumber Error",g}}function d(a,c,d,f){function g(a,b){var e,f,g=0,h=a.length,i=[0];for(b=b||d;h>g;g++){for(f=i.length,e=0;f>e;i[e]*=b,e++);for(i[0]+=u.indexOf(a.charAt(g)),e=0;ec-1&&(null==i[e+1]&&(i[e+1]=0),i[e+1]+=i[e]/c^0,i[e]%=c)}return i.reverse()}function h(a){for(var b=0,c=a.length,d="";c>b;d+=u.charAt(a[b++]));return d}var i,j,k,l,m,n;if(a=a.toLowerCase(),(i=a.indexOf("."))>-1)if(i=a.length-i-1,j=g(new b(d).pow(i).toF(),10),l=a.split("."),k=g(l[1]),l=g(l[0]),n=e(k,j,k.length-j.length,f,c,1&l[l.length-1]),m=n.c,i=n.e){for(;++i;m.unshift(0));a=h(l)+"."+h(m)}else m[0]?l[i=l.length-1]z?0:z;u++k;k++){if(i!=(u=t.length))m=i>u?1:-1;else for(n=-1,m=0;++nt[n]?1:-1;break}if(!(0>m))break;for(j=u==i?c:o;u;){if(t[--u]z&&g(v,l,f,h,null!=t[0]),v.e>q?v.c=v.e=null:v.e++c&&g(a,e,10),e=0==f[0]?e+1:d?c:a.e+e+1;f.length=e)?(a.s<0&&f[0]?"-":"")+(f.length>1?(f.splice(1,0,"."),f.join("")):f[0])+(0>e?"e":"e+")+e:a.toS()}function g(a,b,c,d,e){var f=a.c,g=a.s<0,h=c/2,i=a.e+b+1,j=f[i],k=e||0>i||null!=f[i+1];if(e=4>m?(null!=j||k)&&(0==m||2==m&&!g||3==m&&g):j>h||j==h&&(4==m||k||6==m&&(1&f[i-1]||!b&&d)||7==m&&!g||8==m&&g),1>i||!f[0])return f.length=0,f.push(0),e?(f[0]=1,a.e=-b):a.e=0,a;if(f.length=i--,e)for(--c;++f[i]>c;)f[i]=0,i--||(++a.e,f.unshift(1));for(i=f.length;!f[--i];f.pop());return a}function h(a,c,d){var e=m;return m=d,a=new b(a),a.c&&g(a,c,10),m=e,a}var i,j=1e9,k=1e6,l=20,m=4,n=-7,o=21,p=-j,q=j,r=!0,s=parseInt,t=b.prototype,u="0123456789abcdefghijklmnopqrstuvwxyz",v=0,w=/^-?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,x=String.prototype.trim||function(){return this.replace(/^\s+|\s+$/g,"")},y=b(1);b.ROUND_UP=0,b.ROUND_DOWN=1,b.ROUND_CEIL=2,b.ROUND_FLOOR=3,b.ROUND_HALF_UP=4,b.ROUND_HALF_DOWN=5,b.ROUND_HALF_EVEN=6,b.ROUND_HALF_CEIL=7,b.ROUND_HALF_FLOOR=8,b.config=function(){var a,b,d=0,e={},f=arguments,g=f[0],h="config",k=function(a,b,c){return!((i=b>a||a>c)||s(a)!=a&&0!==a)},t=g&&"object"==typeof g?function(){return g.hasOwnProperty(b)?null!=(a=g[b]):void 0}:function(){return f.length>d?null!=(a=f[d++]):void 0};return t(b="DECIMAL_PLACES")&&(k(a,0,j)?l=0|a:c(a,b,h)),e[b]=l,t(b="ROUNDING_MODE")&&(k(a,0,8)?m=0|a:c(a,b,h)),e[b]=m,t(b="EXPONENTIAL_AT")&&(k(a,-j,j)?n=-(o=~~(0>a?-a:+a)):!i&&a&&k(a[0],-j,0)&&k(a[1],0,j)?(n=~~a[0],o=~~a[1]):c(a,b,h,1)),e[b]=[n,o],t(b="RANGE")&&(k(a,-j,j)&&~~a?p=-(q=~~(0>a?-a:+a)):!i&&a&&k(a[0],-j,-1)&&k(a[1],1,j)?(p=~~a[0],q=~~a[1]):c(a,b,h,1,1)),e[b]=[p,q],t(b="ERRORS")&&(a===!!a||1===a||0===a?(i=v=0,s=(r=!!a)?parseInt:parseFloat):c(a,b,h,0,0,1)),e[b]=r,e},t.abs=t.absoluteValue=function(){var a=new b(this);return a.s<0&&(a.s=1),a},t.ceil=function(){return h(this,0,2)},t.comparedTo=t.cmp=function(a,c){var d,e=this,f=e.c,g=(v=-v,a=new b(a,c)).c,h=e.s,i=a.s,j=e.e,k=a.e;if(!h||!i)return null;if(d=f&&!f[0],c=g&&!g[0],d||c)return d?c?0:-i:h;if(h!=i)return h;if(d=0>h,c=j==k,!f||!g)return c?0:!f^d?1:-1;if(!c)return j>k^d?1:-1;for(h=-1,i=(j=f.length)<(k=g.length)?j:k;++hg[h]^d?1:-1;return j==k?0:j>k^d?1:-1},t.dividedBy=t.div=function(a,c){var d=this.c,f=this.e,g=this.s,h=(v=2,a=new b(a,c)).c,i=a.e,j=a.s,k=g==j?1:-1;return(f||d&&d[0])&&(i||h&&h[0])?e(d,h,f-i,k,10):new b(g&&j&&(d?!h||d[0]!=h[0]:h)?d&&0==d[0]||!h?0*k:k/0:0/0)},t.equals=t.eq=function(a,b){return v=3,0===this.cmp(a,b)},t.floor=function(){return h(this,0,3)},t.greaterThan=t.gt=function(a,b){return v=4,this.cmp(a,b)>0},t.greaterThanOrEqualTo=t.gte=function(a,b){return v=5,1==(b=this.cmp(a,b))||0===b},t.isFinite=t.isF=function(){return!!this.c},t.isNaN=function(){return!this.s},t.isNegative=t.isNeg=function(){return this.s<0},t.isZero=t.isZ=function(){return!!this.c&&0==this.c[0]},t.lessThan=t.lt=function(a,b){return v=6,this.cmp(a,b)<0},t.lessThanOrEqualTo=t.lte=function(a,b){return v=7,-1==(b=this.cmp(a,b))||0===b},t.minus=function(a,c){var d,e,f,g,h=this,i=h.s;if(c=(v=8,a=new b(a,c)).s,!i||!c)return new b(0/0);if(i!=c)return a.s=-c,h.plus(a);var j=h.c,k=h.e,l=a.c,m=a.e;if(!k||!m){if(!j||!l)return j?(a.s=-c,a):new b(l?h:0/0);if(!j[0]||!l[0])return l[0]?(a.s=-c,a):new b(j[0]?h:0)}if(j=j.slice(),i=k-m){for(d=(g=0>i)?(i=-i,j):(m=k,l),d.reverse(),c=i;c--;d.push(0));d.reverse()}else for(f=((g=j.lengthc;c++)if(j[c]!=l[c]){g=j[c]0)for(;c--;j[f++]=0);for(c=l.length;c>i;){if(j[--c]m||!j[0])&&(j=[m=0]),a.c=j,a.e=m,a},t.modulo=t.mod=function(a,c){var d=this,e=d.c,f=(v=9,a=new b(a,c)).c,g=d.s,h=a.s;return c=!g||!h||f&&!f[0],c||e&&!e[0]?new b(c?0/0:d):(d.s=a.s=1,c=1==a.cmp(d),d.s=g,a.s=h,c?new b(d):(g=l,h=m,l=0,m=1,d=d.div(a),l=g,m=h,this.minus(d.times(a))))},t.negated=t.neg=function(){var a=new b(this);return a.s=-a.s||null,a},t.plus=function(a,c){var d,e=this,f=e.s;if(c=(v=10,a=new b(a,c)).s,!f||!c)return new b(0/0);if(f!=c)return a.s=-c,e.minus(a);var g=e.e,h=e.c,i=a.e,j=a.c;if(!g||!i){if(!h||!j)return new b(f/0);if(!h[0]||!j[0])return j[0]?a:new b(h[0]?e:0*f)}if(h=h.slice(),f=g-i){for(d=f>0?(i=g,j):(f=-f,h),d.reverse();f--;d.push(0));d.reverse()}for(h.length-j.length<0&&(d=j,j=h,h=d),f=j.length,c=0;f;c=(h[--f]=h[f]+j[f]+c)/10^0,h[f]%=10);for(c&&(h.unshift(c),++i>q&&(h=i=null)),f=h.length;0==h[--f];h.pop());return a.c=h,a.e=i,a},t.toPower=t.pow=function(a){var d=0*a==0?0|a:a,e=new b(this),f=new b(y);if(((i=-k>a||a>k)&&(d=1*a/0)||s(a)!=a&&0!==a&&!(d=0/0))&&!c(a,"exponent","pow")||!d)return new b(Math.pow(e.toS(),d));for(d=0>d?-d:d;1&d&&(f=f.times(e)),d>>=1,d;)e=e.times(e);return 0>a?y.div(f):f},t.round=function(a,b){return a=null==a||((i=0>a||a>j)||s(a)!=a)&&!c(a,"decimal places","round")?0:0|a,b=null==b||((i=0>b||b>8)||s(b)!=b&&0!==b)&&!c(b,"mode","round")?m:0|b,h(this,a,b)},t.squareRoot=t.sqrt=function(){var a,c,d,e=this,f=e.c,h=e.s,i=e.e,j=new b("0.5");if(1!==h||!f||!f[0])return new b(!h||0>h&&(!f||f[0])?0/0:f?e:1/0);h=Math.sqrt(e.toS()),0==h||h==1/0?(a=f.join(""),a.length+i&1||(a+="0"),c=new b(Math.sqrt(a).toString()),c.e=((i+1)/2|0)-(0>i||1&i)):c=new b(h.toString()),h=c.e+(l+=4);do d=c,c=j.times(d.plus(e.div(d)));while(d.c.slice(0,h).join("")!==c.c.slice(0,h).join(""));return g(c,l-=4,10),c},t.times=function(a,c){var d,e=this,f=e.c,g=(v=11,a=new b(a,c)).c,h=e.e,i=a.e,j=e.s;if(a.s=j==(c=a.s)?1:-1,!((h||f&&f[0])&&(i||g&&g[0])))return new b(!j||!c||f&&!f[0]&&!g||g&&!g[0]&&!f?0/0:f&&g?0*a.s:a.s/0);for(a.e=h+i,(j=f.length)<(c=g.length)&&(d=f,f=g,g=d,i=j,j=c,c=i),i=j+c,d=[];i--;d.push(0));for(h=c-1;h>-1;h--){for(c=0,i=j+h;i>h;c=d[i]+g[h]*f[i-h-1]+c,d[i--]=c%10|0,c=c/10|0);c&&(d[i]=(d[i]+c)%10)}for(c&&++a.e,!d[0]&&d.shift(),i=d.length;!d[--i];d.pop());return a.c=a.e>q?a.e=null:a.ea||a>j)||s(a)!=a&&0!==a)&&!c(a,"decimal places","toE"))&&this.c?this.c.length-1:0|a,1)},t.toFixed=t.toF=function(a){var b,d,e,g=this;return null==a||((i=0>a||a>j)||s(a)!=a&&0!==a)&&!c(a,"decimal places","toF")||(e=g.e+(0|a)),b=n,a=o,n=-(o=1/0),e==d?d=g.toS():(d=f(g,e),g.s<0&&g.c&&(g.c[0]?d.indexOf("-")<0&&(d="-"+d):d=d.replace(/^-/,""))),n=b,o=a,d},t.toFraction=t.toFr=function(a){var d,e,f,g,h,j,k,n=g=new b(y),o=f=new b("0"),p=this,s=p.c,t=q,u=l,w=m,x=new b(y);if(!s)return p.toS();for(k=x.e=s.length-p.e-1,(null==a||(!(v=12,j=new b(a)).s||(i=j.cmp(n)<0||!j.c)||r&&j.e0)&&(a=k>0?x:n),q=1/0,j=new b(s.join("")),l=0,m=1;d=j.div(x),h=g.plus(d.times(o)),1!=h.cmp(a);)g=o,o=h,n=f.plus(d.times(h=n)),f=h,x=j.minus(d.times(h=x)),j=h;return h=a.minus(g).div(o),f=f.plus(h.times(n)),g=g.plus(h.times(o)),f.s=n.s=p.s,l=2*k,m=w,e=n.div(o).minus(p).abs().cmp(f.div(g).minus(p).abs())<1?[n.toS(),o.toS()]:[f.toS(),g.toS()],q=t,l=u,e},t.toPrecision=t.toP=function(a){return null==a||((i=1>a||a>j)||s(a)!=a)&&!c(a,"precision","toP")?this.toS():f(this,0|--a,2)},t.toString=t.toS=function(a){var b,e,g,h=this,j=h.e;if(null===j)e=h.s?"Infinity":"NaN";else{if(a===b&&(n>=j||j>=o))return f(h,h.c.length-1,1);if(e=h.c.join(""),0>j){for(;++j;e="0"+e);e="0."+e}else if(g=e.length,j>0)if(++j>g)for(j-=g;j--;e+="0");else g>j&&(e=e.slice(0,j)+"."+e.slice(j));else if(b=e.charAt(0),g>1)e=b+"."+e.slice(1);else if("0"==b)return b;if(null!=a)if((i=!(a>=2&&36>=a))||a!=(0|a)&&r)c(a,"base","toS");else if(e=d(e,0|a,10,h.s),"0"==e)return e}return h.s<0?"-"+e:e},t.valueOf=function(){return this.toS()},"undefined"!=typeof module&&module.exports?module.exports=b:"function"==typeof define&&define.amd?define(function(){return b}):a.BigNumber=b}(this);var SockJS=function(){var a=document,b=window,c={},d=function(){};d.prototype.addEventListener=function(a,b){this._listeners||(this._listeners={}),a in this._listeners||(this._listeners[a]=[]);var d=this._listeners[a];-1===c.arrIndexOf(d,b)&&d.push(b)},d.prototype.removeEventListener=function(a,b){if(this._listeners&&a in this._listeners){var d=this._listeners[a],e=c.arrIndexOf(d,b);return-1!==e?(d.length>1?this._listeners[a]=d.slice(0,e).concat(d.slice(e+1)):delete this._listeners[a],void 0):void 0}},d.prototype.dispatchEvent=function(a){var b=a.type,c=Array.prototype.slice.call(arguments,0);if(this["on"+b]&&this["on"+b].apply(this,c),this._listeners&&b in this._listeners)for(var d=0;dc;c++)d.push(g.substr(Math.floor(Math.random()*b),1));return d.join("")},c.random_number=function(a){return Math.floor(Math.random()*a)},c.random_number_string=function(a){var b=(""+(a-1)).length,d=Array(b+1).join("0");return(d+c.random_number(a)).slice(-b)},c.getOrigin=function(a){a+="/";var b=a.split("/").slice(0,3);return b.join("/")},c.isSameOriginUrl=function(a,c){return c||(c=b.location.href),a.split("/").slice(0,3).join("/")===c.split("/").slice(0,3).join("/")},c.getParentDomain=function(a){if(/^[0-9.]*$/.test(a))return a;if(/^\[/.test(a))return a;if(!/[.]/.test(a))return a;var b=a.split(".").slice(1);return b.join(".")},c.objectExtend=function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c]);return a};var h="_jp";c.polluteGlobalNamespace=function(){h in b||(b[h]={})},c.closeFrame=function(a,b){return"c"+JSON.stringify([a,b])},c.userSetCode=function(a){return 1e3===a||a>=3e3&&4999>=a},c.countRTO=function(a){var b;return b=a>100?3*a:a+200},c.log=function(){b.console&&console.log&&console.log.apply&&console.log.apply(console,arguments)},c.bind=function(a,b){return a.bind?a.bind(b):function(){return a.apply(b,arguments)}},c.flatUrl=function(a){return-1===a.indexOf("?")&&-1===a.indexOf("#")},c.amendUrl=function(b){var d=a.location;if(!b)throw new Error("Wrong url for SockJS");if(!c.flatUrl(b))throw new Error("Only basic urls are supported in SockJS");return 0===b.indexOf("//")&&(b=d.protocol+b),0===b.indexOf("/")&&(b=d.protocol+"//"+d.host+b),b=b.replace(/[/]+$/,"")},c.arrIndexOf=function(a,b){for(var c=0;c=0},c.delay=function(a,b){return"function"==typeof a&&(b=a,a=0),setTimeout(b,a)};var i,j=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,k={"\x00":"\\u0000","":"\\u0001","":"\\u0002","":"\\u0003","":"\\u0004","":"\\u0005","":"\\u0006","":"\\u0007","\b":"\\b"," ":"\\t","\n":"\\n"," ":"\\u000b","\f":"\\f","\r":"\\r","":"\\u000e","":"\\u000f","":"\\u0010","":"\\u0011","":"\\u0012","":"\\u0013","":"\\u0014","":"\\u0015","":"\\u0016","":"\\u0017","":"\\u0018","":"\\u0019","":"\\u001a","":"\\u001b","":"\\u001c","":"\\u001d","":"\\u001e","":"\\u001f",'"':'\\"',"\\":"\\\\","":"\\u007f","€":"\\u0080","":"\\u0081","‚":"\\u0082","ƒ":"\\u0083","„":"\\u0084","…":"\\u0085","†":"\\u0086","‡":"\\u0087","ˆ":"\\u0088","‰":"\\u0089","Š":"\\u008a","‹":"\\u008b","Œ":"\\u008c","":"\\u008d","Ž":"\\u008e","":"\\u008f","":"\\u0090","‘":"\\u0091","’":"\\u0092","“":"\\u0093","”":"\\u0094","•":"\\u0095","–":"\\u0096","—":"\\u0097","˜":"\\u0098","™":"\\u0099","š":"\\u009a","›":"\\u009b","œ":"\\u009c","":"\\u009d","ž":"\\u009e","Ÿ":"\\u009f","­":"\\u00ad","؀":"\\u0600","؁":"\\u0601","؂":"\\u0602","؃":"\\u0603","؄":"\\u0604","܏":"\\u070f","឴":"\\u17b4","឵":"\\u17b5","‌":"\\u200c","‍":"\\u200d","‎":"\\u200e","‏":"\\u200f","\u2028":"\\u2028","\u2029":"\\u2029","‪":"\\u202a","‫":"\\u202b","‬":"\\u202c","‭":"\\u202d","‮":"\\u202e"," ":"\\u202f","⁠":"\\u2060","⁡":"\\u2061","⁢":"\\u2062","⁣":"\\u2063","⁤":"\\u2064","⁥":"\\u2065","⁦":"\\u2066","⁧":"\\u2067","⁨":"\\u2068","⁩":"\\u2069","":"\\u206a","":"\\u206b","":"\\u206c","":"\\u206d","":"\\u206e","":"\\u206f","":"\\ufeff","￰":"\\ufff0","￱":"\\ufff1","￲":"\\ufff2","￳":"\\ufff3","￴":"\\ufff4","￵":"\\ufff5","￶":"\\ufff6","￷":"\\ufff7","￸":"\\ufff8","":"\\ufff9","":"\\ufffa","":"\\ufffb","":"\\ufffc","�":"\\ufffd","￾":"\\ufffe","￿":"\\uffff"},l=/[\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,m=JSON&&JSON.stringify||function(a){return j.lastIndex=0,j.test(a)&&(a=a.replace(j,function(a){return k[a]})),'"'+a+'"'},n=function(a){var b,c={},d=[];for(b=0;65536>b;b++)d.push(String.fromCharCode(b));return a.lastIndex=0,d.join("").replace(a,function(a){return c[a]="\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4),""}),a.lastIndex=0,c};c.quote=function(a){var b=m(a);return l.lastIndex=0,l.test(b)?(i||(i=n(l)),b.replace(l,function(a){return i[a]})):b};var o=["websocket","xdr-streaming","xhr-streaming","iframe-eventsource","iframe-htmlfile","xdr-polling","xhr-polling","iframe-xhr-polling","jsonp-polling"];c.probeProtocols=function(){for(var a={},b=0;b0&&h(a)};return c.websocket!==!1&&h(["websocket"]),d["xhr-streaming"]&&!c.null_origin?e.push("xhr-streaming"):!d["xdr-streaming"]||c.cookie_needed||c.null_origin?h(["iframe-eventsource","iframe-htmlfile"]):e.push("xdr-streaming"),d["xhr-polling"]&&!c.null_origin?e.push("xhr-polling"):!d["xdr-polling"]||c.cookie_needed||c.null_origin?h(["iframe-xhr-polling","jsonp-polling"]):e.push("xdr-polling"),e};var p="_sockjs_global";c.createHook=function(){var a="a"+c.random_string(8);if(!(p in b)){var d={};b[p]=function(a){return a in d||(d[a]={id:a,del:function(){delete d[a]}}),d[a]}}return b[p](a)},c.attachMessage=function(a){c.attachEvent("message",a)},c.attachEvent=function(c,d){"undefined"!=typeof b.addEventListener?b.addEventListener(c,d,!1):(a.attachEvent("on"+c,d),b.attachEvent("on"+c,d))},c.detachMessage=function(a){c.detachEvent("message",a)},c.detachEvent=function(c,d){"undefined"!=typeof b.addEventListener?b.removeEventListener(c,d,!1):(a.detachEvent("on"+c,d),b.detachEvent("on"+c,d))};var q={},r=!1,s=function(){for(var a in q)q[a](),delete q[a]},t=function(){r||(r=!0,s())};c.attachEvent("unload",t),c.unload_add=function(a){var b=c.random_string(8);return q[b]=a,r&&c.delay(s),b},c.unload_del=function(a){a in q&&delete q[a]},c.createIframe=function(b,d){var e,f,g=a.createElement("iframe"),h=function(){clearTimeout(e);try{g.onload=null}catch(a){}g.onerror=null},i=function(){g&&(h(),setTimeout(function(){g&&g.parentNode.removeChild(g),g=null},0),c.unload_del(f))},j=function(a){g&&(i(),d(a))},k=function(a,b){try{g&&g.contentWindow&&g.contentWindow.postMessage(a,b)}catch(c){}};return g.src=b,g.style.display="none",g.style.position="absolute",g.onerror=function(){j("onerror")},g.onload=function(){clearTimeout(e),e=setTimeout(function(){j("onload timeout")},2e3)},a.body.appendChild(g),e=setTimeout(function(){j("timeout")},15e3),f=c.unload_add(i),{post:k,cleanup:i,loaded:h}},c.createHtmlfile=function(a,d){var e,f,g,i=new ActiveXObject("htmlfile"),j=function(){clearTimeout(e)},k=function(){i&&(j(),c.unload_del(f),g.parentNode.removeChild(g),g=i=null,CollectGarbage())},l=function(a){i&&(k(),d(a))},m=function(a,b){try{g&&g.contentWindow&&g.contentWindow.postMessage(a,b)}catch(c){}};i.open(),i.write(''),i.close(),i.parentWindow[h]=b[h];var n=i.createElement("div");return i.body.appendChild(n),g=i.createElement("iframe"),n.appendChild(g),g.src=a,e=setTimeout(function(){l("timeout")},15e3),f=c.unload_add(k),{post:m,cleanup:k,loaded:j}};var u=function(){};u.prototype=new f(["chunk","finish"]),u.prototype._start=function(a,d,e,f){var g=this;try{g.xhr=new XMLHttpRequest}catch(h){}if(!g.xhr)try{g.xhr=new b.ActiveXObject("Microsoft.XMLHTTP")}catch(h){}(b.ActiveXObject||b.XDomainRequest)&&(d+=(-1===d.indexOf("?")?"?":"&")+"t="+ +new Date),g.unload_ref=c.unload_add(function(){g._cleanup(!0)});try{g.xhr.open(a,d,!0)}catch(i){return g.emit("finish",0,""),g._cleanup(),void 0}if(f&&f.no_credentials||(g.xhr.withCredentials="true"),f&&f.headers)for(var j in f.headers)g.xhr.setRequestHeader(j,f.headers[j]);g.xhr.onreadystatechange=function(){if(g.xhr){var a=g.xhr;switch(a.readyState){case 3:try{var b=a.status,c=a.responseText}catch(a){}1223===b&&(b=204),c&&c.length>0&&g.emit("chunk",b,c);break;case 4:var b=a.status;1223===b&&(b=204),g.emit("finish",b,a.responseText),g._cleanup(!1)}}},g.xhr.send(e)},u.prototype._cleanup=function(a){var b=this;if(b.xhr){if(c.unload_del(b.unload_ref),b.xhr.onreadystatechange=function(){},a)try{b.xhr.abort()}catch(d){}b.unload_ref=b.xhr=null}},u.prototype.close=function(){var a=this;a.nuke(),a._cleanup(!0)};var v=c.XHRCorsObject=function(){var a=this,b=arguments;c.delay(function(){a._start.apply(a,b)})};v.prototype=new u;var w=c.XHRLocalObject=function(a,b,d){var e=this;c.delay(function(){e._start(a,b,d,{no_credentials:!0})})};w.prototype=new u;var x=c.XDRObject=function(a,b,d){var e=this;c.delay(function(){e._start(a,b,d)})};x.prototype=new f(["chunk","finish"]),x.prototype._start=function(a,b,d){var e=this,f=new XDomainRequest;b+=(-1===b.indexOf("?")?"?":"&")+"t="+ +new Date;var g=f.ontimeout=f.onerror=function(){e.emit("finish",0,""),e._cleanup(!1)};f.onprogress=function(){e.emit("chunk",200,f.responseText)},f.onload=function(){e.emit("finish",200,f.responseText),e._cleanup(!1)},e.xdr=f,e.unload_ref=c.unload_add(function(){e._cleanup(!0)});try{e.xdr.open(a,b),e.xdr.send(d)}catch(h){g()}},x.prototype._cleanup=function(a){var b=this;if(b.xdr){if(c.unload_del(b.unload_ref),b.xdr.ontimeout=b.xdr.onerror=b.xdr.onprogress=b.xdr.onload=null,a)try{b.xdr.abort()}catch(d){}b.unload_ref=b.xdr=null}},x.prototype.close=function(){var a=this;a.nuke(),a._cleanup(!0)},c.isXHRCorsCapable=function(){return b.XMLHttpRequest&&"withCredentials"in new XMLHttpRequest?1:b.XDomainRequest&&a.domain?2:L.enabled()?3:4};var y=function(a,d,e){if(this===b)return new y(a,d,e);var f,g=this;g._options={devel:!1,debug:!1,protocols_whitelist:[],info:void 0,rtt:void 0},e&&c.objectExtend(g._options,e),g._base_url=c.amendUrl(a),g._server=g._options.server||c.random_number_string(1e3),g._options.protocols_whitelist&&g._options.protocols_whitelist.length?f=g._options.protocols_whitelist:(f="string"==typeof d&&d.length>0?[d]:c.isArray(d)?d:null,f&&g._debug('Deprecated API: Use "protocols_whitelist" option instead of supplying protocol list as a second parameter to SockJS constructor.')),g._protocols=[],g.protocol=null,g.readyState=y.CONNECTING,g._ir=S(g._base_url),g._ir.onfinish=function(a,b){g._ir=null,a?(g._options.info&&(a=c.objectExtend(a,g._options.info)),g._options.rtt&&(b=g._options.rtt),g._applyInfo(a,b,f),g._didClose()):g._didClose(1002,"Can't connect to server",!0)}};y.prototype=new d,y.version="0.3.4",y.CONNECTING=0,y.OPEN=1,y.CLOSING=2,y.CLOSED=3,y.prototype._debug=function(){this._options.debug&&c.log.apply(c,arguments)},y.prototype._dispatchOpen=function(){var a=this;a.readyState===y.CONNECTING?(a._transport_tref&&(clearTimeout(a._transport_tref),a._transport_tref=null),a.readyState=y.OPEN,a.dispatchEvent(new e("open"))):a._didClose(1006,"Server lost session")},y.prototype._dispatchMessage=function(a){var b=this;b.readyState===y.OPEN&&b.dispatchEvent(new e("message",{data:a}))},y.prototype._dispatchHeartbeat=function(){var a=this;a.readyState===y.OPEN&&a.dispatchEvent(new e("heartbeat",{}))},y.prototype._didClose=function(a,b,d){var f=this;if(f.readyState!==y.CONNECTING&&f.readyState!==y.OPEN&&f.readyState!==y.CLOSING)throw new Error("INVALID_STATE_ERR");f._ir&&(f._ir.nuke(),f._ir=null),f._transport&&(f._transport.doCleanup(),f._transport=null);var g=new e("close",{code:a,reason:b,wasClean:c.userSetCode(a)});if(!c.userSetCode(a)&&f.readyState===y.CONNECTING&&!d){if(f._try_next_protocol(g))return;g=new e("close",{code:2e3,reason:"All transports failed",wasClean:!1,last_event:g})}f.readyState=y.CLOSED,c.delay(function(){f.dispatchEvent(g)})},y.prototype._didMessage=function(a){var b=this,c=a.slice(0,1);switch(c){case"o":b._dispatchOpen();break;case"a":for(var d=JSON.parse(a.slice(1)||"[]"),e=0;e0){var b="["+a.send_buffer.join(",")+"]";a.send_stop=a.sender(a.trans_url,b,function(b,c){a.send_stop=null,b===!1?a.ri._didClose(1006,"Sending error "+c):a.send_schedule_wait()}),a.send_buffer=[]}},A.prototype.send_destructor=function(){var a=this;a._send_stop&&a._send_stop(),a._send_stop=null};var B=function(b,d,e){var f=this;if(!("_send_form"in f)){var g=f._send_form=a.createElement("form"),h=f._send_area=a.createElement("textarea");h.name="d",g.style.display="none",g.style.position="absolute",g.method="POST",g.enctype="application/x-www-form-urlencoded",g.acceptCharset="UTF-8",g.appendChild(h),a.body.appendChild(g)}var g=f._send_form,h=f._send_area,i="a"+c.random_string(8);g.target=i,g.action=b+"/jsonp_send?i="+i;var j;try{j=a.createElement('