From e7f742c5b93fcba52ea456485d06707e3f5a270f Mon Sep 17 00:00:00 2001 From: myZhangDong <973849793@qq.com> Date: Mon, 19 Sep 2022 09:59:18 +0800 Subject: [PATCH] update SDK 4.1.0 --- demo/src/config/Easemob-chat-4.1.0.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/demo/src/config/Easemob-chat-4.1.0.js b/demo/src/config/Easemob-chat-4.1.0.js index 2498394d..087854fd 100644 --- a/demo/src/config/Easemob-chat-4.1.0.js +++ b/demo/src/config/Easemob-chat-4.1.0.js @@ -1,2 +1 @@ -/*! For license information please see Easemob-chat.js.LICENSE.txt */ -!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.websdk=t():e.websdk=t()}(this,(function(){return function(){var __webpack_modules__={4537:function(e){"use strict";e.exports=function(e,t){for(var r=new Array(arguments.length-1),o=0,n=2,i=!0;n1&&"="===e.charAt(t);)++r;return Math.ceil(3*e.length)/4-r};for(var o=new Array(64),n=new Array(123),i=0;i<64;)n[o[i]=i<26?i+65:i<52?i+71:i<62?i-4:i-59|43]=i++;r.encode=function(e,t,r){for(var n,i=null,s=[],a=0,u=0;t>2],n=(3&c)<<4,u=1;break;case 1:s[a++]=o[n|c>>4],n=(15&c)<<2,u=2;break;case 2:s[a++]=o[n|c>>6],s[a++]=o[63&c],u=0}a>8191&&((i||(i=[])).push(String.fromCharCode.apply(String,s)),a=0)}return u&&(s[a++]=o[n],s[a++]=61,1===u&&(s[a++]=61)),i?(a&&i.push(String.fromCharCode.apply(String,s.slice(0,a))),i.join("")):String.fromCharCode.apply(String,s.slice(0,a))};var s="invalid encoding";r.decode=function(e,t,r){for(var o,i=r,a=0,u=0;u1)break;if(void 0===(c=n[c]))throw Error(s);switch(a){case 0:o=c,a=1;break;case 1:t[r++]=o<<2|(48&c)>>4,o=c,a=2;break;case 2:t[r++]=(15&o)<<4|(60&c)>>2,o=c,a=3;break;case 3:t[r++]=(3&o)<<6|c,a=0}}if(1===a)throw Error(s);return r-i},r.test=function(e){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(e)}},5124:function(e){"use strict";function t(e,r){"string"==typeof e&&(r=e,e=void 0);var o=[];function n(e){if("string"!=typeof e){var r=i();if(t.verbose&&console.log("codegen: "+r),r="return "+r,e){for(var s=Object.keys(e),a=new Array(s.length+1),u=new Array(s.length),c=0;c0?0:2147483648,r,o);else if(isNaN(t))e(2143289344,r,o);else if(t>34028234663852886e22)e((n<<31|2139095040)>>>0,r,o);else if(t<11754943508222875e-54)e((n<<31|Math.round(t/1401298464324817e-60))>>>0,r,o);else{var i=Math.floor(Math.log(t)/Math.LN2);e((n<<31|i+127<<23|8388607&Math.round(t*Math.pow(2,-i)*8388608))>>>0,r,o)}}function s(e,t,r){var o=e(t,r),n=2*(o>>31)+1,i=o>>>23&255,s=8388607&o;return 255===i?s?NaN:n*(1/0):0===i?1401298464324817e-60*n*s:n*Math.pow(2,i-150)*(s+8388608)}e.writeFloatLE=t.bind(null,r),e.writeFloatBE=t.bind(null,o),e.readFloatLE=s.bind(null,n),e.readFloatBE=s.bind(null,i)}(),"undefined"!=typeof Float64Array?function(){var t=new Float64Array([-0]),r=new Uint8Array(t.buffer),o=128===r[7];function n(e,o,n){t[0]=e,o[n]=r[0],o[n+1]=r[1],o[n+2]=r[2],o[n+3]=r[3],o[n+4]=r[4],o[n+5]=r[5],o[n+6]=r[6],o[n+7]=r[7]}function i(e,o,n){t[0]=e,o[n]=r[7],o[n+1]=r[6],o[n+2]=r[5],o[n+3]=r[4],o[n+4]=r[3],o[n+5]=r[2],o[n+6]=r[1],o[n+7]=r[0]}function s(e,o){return r[0]=e[o],r[1]=e[o+1],r[2]=e[o+2],r[3]=e[o+3],r[4]=e[o+4],r[5]=e[o+5],r[6]=e[o+6],r[7]=e[o+7],t[0]}function a(e,o){return r[7]=e[o],r[6]=e[o+1],r[5]=e[o+2],r[4]=e[o+3],r[3]=e[o+4],r[2]=e[o+5],r[1]=e[o+6],r[0]=e[o+7],t[0]}e.writeDoubleLE=o?n:i,e.writeDoubleBE=o?i:n,e.readDoubleLE=o?s:a,e.readDoubleBE=o?a:s}():function(){function t(e,t,r,o,n,i){var s=o<0?1:0;if(s&&(o=-o),0===o)e(0,n,i+t),e(1/o>0?0:2147483648,n,i+r);else if(isNaN(o))e(0,n,i+t),e(2146959360,n,i+r);else if(o>17976931348623157e292)e(0,n,i+t),e((s<<31|2146435072)>>>0,n,i+r);else{var a;if(o<22250738585072014e-324)e((a=o/5e-324)>>>0,n,i+t),e((s<<31|a/4294967296)>>>0,n,i+r);else{var u=Math.floor(Math.log(o)/Math.LN2);1024===u&&(u=1023),e(4503599627370496*(a=o*Math.pow(2,-u))>>>0,n,i+t),e((s<<31|u+1023<<20|1048576*a&1048575)>>>0,n,i+r)}}}function s(e,t,r,o,n){var i=e(o,n+t),s=e(o,n+r),a=2*(s>>31)+1,u=s>>>20&2047,c=4294967296*(1048575&s)+i;return 2047===u?c?NaN:a*(1/0):0===u?5e-324*a*c:a*Math.pow(2,u-1075)*(c+4503599627370496)}e.writeDoubleLE=t.bind(null,r,0,4),e.writeDoubleBE=t.bind(null,o,4,0),e.readDoubleLE=s.bind(null,n,0,4),e.readDoubleBE=s.bind(null,i,4,0)}(),e}function r(e,t,r){t[r]=255&e,t[r+1]=e>>>8&255,t[r+2]=e>>>16&255,t[r+3]=e>>>24}function o(e,t,r){t[r]=e>>>24,t[r+1]=e>>>16&255,t[r+2]=e>>>8&255,t[r+3]=255&e}function n(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16|e[t+3]<<24)>>>0}function i(e,t){return(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])>>>0}e.exports=t(t)},7199:function(module){"use strict";function inquire(moduleName){try{var mod=eval("quire".replace(/^/,"re"))(moduleName);if(mod&&(mod.length||Object.keys(mod).length))return mod}catch(e){}return null}module.exports=inquire},8626:function(e,t){"use strict";var r=t,o=r.isAbsolute=function(e){return/^(?:\/|\w+:)/.test(e)},n=r.normalize=function(e){var t=(e=e.replace(/\\/g,"/").replace(/\/{2,}/g,"/")).split("/"),r=o(e),n="";r&&(n=t.shift()+"/");for(var i=0;i0&&".."!==t[i-1]?t.splice(--i,2):r?t.splice(i,1):++i:"."===t[i]?t.splice(i,1):++i;return n+t.join("/")};r.resolve=function(e,t,r){return r||(t=n(t)),o(t)?t:(r||(e=n(e)),(e=e.replace(/(?:\/|^)[^/]+$/,"")).length?n(e+"/"+t):t)}},6662:function(e){"use strict";e.exports=function(e,t,r){var o=r||8192,n=o>>>1,i=null,s=o;return function(r){if(r<1||r>n)return e(r);s+r>o&&(i=e(o),s=0);var a=t.call(i,s,s+=r);return 7&s&&(s=1+(7|s)),a}}},4997:function(e,t){"use strict";var r=t;r.length=function(e){for(var t=0,r=0,o=0;o191&&o<224?i[s++]=(31&o)<<6|63&e[t++]:o>239&&o<365?(o=((7&o)<<18|(63&e[t++])<<12|(63&e[t++])<<6|63&e[t++])-65536,i[s++]=55296+(o>>10),i[s++]=56320+(1023&o)):i[s++]=(15&o)<<12|(63&e[t++])<<6|63&e[t++],s>8191&&((n||(n=[])).push(String.fromCharCode.apply(String,i)),s=0);return n?(s&&n.push(String.fromCharCode.apply(String,i.slice(0,s))),n.join("")):String.fromCharCode.apply(String,i.slice(0,s))},r.write=function(e,t,r){for(var o,n,i=r,s=0;s>6|192,t[r++]=63&o|128):55296==(64512&o)&&56320==(64512&(n=e.charCodeAt(s+1)))?(o=65536+((1023&o)<<10)+(1023&n),++s,t[r++]=o>>18|240,t[r++]=o>>12&63|128,t[r++]=o>>6&63|128,t[r++]=63&o|128):(t[r++]=o>>12|224,t[r++]=o>>6&63|128,t[r++]=63&o|128);return r-i}},4188:function(e,t,r){var o,n,i;!function(s){"use strict";if(null!=t&&"number"!=typeof t.nodeType)e.exports=s();else if(null!=r.amdO)n=[],void 0===(i="function"==typeof(o=s)?o.apply(t,n):o)||(e.exports=i);else{var a=s(),u="undefined"!=typeof self?self:$.global;"function"!=typeof u.btoa&&(u.btoa=a.btoa),"function"!=typeof u.atob&&(u.atob=a.atob)}}((function(){"use strict";var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function t(e){this.message=e}return t.prototype=new Error,t.prototype.name="InvalidCharacterError",{btoa:function(r){for(var o,n,i=String(r),s=0,a=e,u="";i.charAt(0|s)||(a="=",s%1);u+=a.charAt(63&o>>8-s%1*8)){if((n=i.charCodeAt(s+=3/4))>255)throw new t("'btoa' failed: The string to be encoded contains characters outside of the Latin1 range.");o=o<<8|n}return u},atob:function(r){var o=String(r).replace(/[=]+$/,"");if(o.length%4==1)throw new t("'atob' failed: The string to be decoded is not correctly encoded.");for(var n,i,s=0,a=0,u="";i=o.charAt(a++);~i&&(n=s%4?64*n+i:i,s++%4)?u+=String.fromCharCode(255&n>>(-2*s&6)):0)i=e.indexOf(i);return u}}}))},5717:function(e){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}},7522:function(e,t,r){var o;e=r.nmd(e),function(){var n=r.amdO,i={function:!0,object:!0},s=i[typeof t]&&t&&!t.nodeType&&t,a=i[typeof window]&&window||this,u=s&&i.object&&e&&!e.nodeType&&"object"==typeof r.g&&r.g;function c(e,t){e||(e=a.Object()),t||(t=a.Object());var r=e.Number||a.Number,o=e.String||a.String,n=e.Object||a.Object,s=e.Date||a.Date,u=e.SyntaxError||a.SyntaxError,l=e.TypeError||a.TypeError,p=e.Math||a.Math,d=e.JSON||a.JSON;"object"==typeof d&&d&&(t.stringify=d.stringify,t.parse=d.parse);var h,f=n.prototype,m=f.toString,g=f.hasOwnProperty;function E(e,t){try{e()}catch(e){t&&t()}}var y=new s(-0xc782b5b800cec);function _(e){if(null!=_[e])return _[e];var n;if("bug-string-char-index"==e)n="a"!="a"[0];else if("json"==e)n=_("json-stringify")&&_("date-serialization")&&_("json-parse");else if("date-serialization"==e){if(n=_("json-stringify")&&y){var i=t.stringify;E((function(){n='"-271821-04-20T00:00:00.000Z"'==i(new s(-864e13))&&'"+275760-09-13T00:00:00.000Z"'==i(new s(864e13))&&'"-000001-01-01T00:00:00.000Z"'==i(new s(-621987552e5))&&'"1969-12-31T23:59:59.999Z"'==i(new s(-1))}))}}else{var a,u='{"a":[1,true,false,null,"\\u0000\\b\\n\\f\\r\\t"]}';if("json-stringify"==e){var c="function"==typeof(i=t.stringify);c&&((a=function(){return 1}).toJSON=a,E((function(){c="0"===i(0)&&"0"===i(new r)&&'""'==i(new o)&&i(m)===h&&i(h)===h&&i()===h&&"1"===i(a)&&"[1]"==i([a])&&"[null]"==i([h])&&"null"==i(null)&&"[null,null,null]"==i([h,m,null])&&i({a:[a,!0,!1,null,"\0\b\n\f\r\t"]})==u&&"1"===i(null,a)&&"[\n 1,\n 2\n]"==i([1,2],null,1)}),(function(){c=!1}))),n=c}if("json-parse"==e){var l,p=t.parse;"function"==typeof p&&E((function(){0!==p("0")||p(!1)||(a=p(u),(l=5==a.a.length&&1===a.a[0])&&(E((function(){l=!p('"\t"')})),l&&E((function(){l=1!==p("01")})),l&&E((function(){l=1!==p("1.")}))))}),(function(){l=!1})),n=l}}return _[e]=!!n}if(E((function(){y=-109252==y.getUTCFullYear()&&0===y.getUTCMonth()&&1===y.getUTCDate()&&10==y.getUTCHours()&&37==y.getUTCMinutes()&&6==y.getUTCSeconds()&&708==y.getUTCMilliseconds()})),_["bug-string-char-index"]=_["date-serialization"]=_.json=_["json-stringify"]=_["json-parse"]=null,!_("json")){var T="[object Function]",v="[object Number]",O="[object String]",R="[object Array]",I=_("bug-string-char-index"),S=function(e,t){var r,o,n,s=0;for(n in(r=function(){this.valueOf=0}).prototype.valueOf=0,o=new r)g.call(o,n)&&s++;return r=o=null,s?S=function(e,t){var r,o,n=m.call(e)==T;for(r in e)n&&"prototype"==r||!g.call(e,r)||(o="constructor"===r)||t(r);(o||g.call(e,r="constructor"))&&t(r)}:(o=["valueOf","toString","toLocaleString","propertyIsEnumerable","isPrototypeOf","hasOwnProperty","constructor"],S=function(e,t){var r,n,s=m.call(e)==T,a=!s&&"function"!=typeof e.constructor&&i[typeof e.hasOwnProperty]&&e.hasOwnProperty||g;for(r in e)s&&"prototype"==r||!a.call(e,r)||t(r);for(n=o.length;r=o[--n];)a.call(e,r)&&t(r)}),S(e,t)};if(!_("json-stringify")&&!_("date-serialization")){var C={92:"\\\\",34:'\\"',8:"\\b",12:"\\f",10:"\\n",13:"\\r",9:"\\t"},N=function(e,t){return("000000"+(t||0)).slice(-e)},A=function(e){var t,r,o,n,i,s,a,u,c;if(y)t=function(e){r=e.getUTCFullYear(),o=e.getUTCMonth(),n=e.getUTCDate(),s=e.getUTCHours(),a=e.getUTCMinutes(),u=e.getUTCSeconds(),c=e.getUTCMilliseconds()};else{var l=p.floor,d=[0,31,59,90,120,151,181,212,243,273,304,334],h=function(e,t){return d[t]+365*(e-1970)+l((e-1969+(t=+(t>1)))/4)-l((e-1901+t)/100)+l((e-1601+t)/400)};t=function(e){for(n=l(e/864e5),r=l(n/365.2425)+1970-1;h(r+1,0)<=n;r++);for(o=l((n-h(r,0))/30.42);h(r,o+1)<=n;o++);n=1+n-h(r,o),s=l((i=(e%864e5+864e5)%864e5)/36e5)%24,a=l(i/6e4)%60,u=l(i/1e3)%60,c=i%1e3}}return A=function(e){return e>-1/0&&e<1/0?(t(e),e=(r<=0||r>=1e4?(r<0?"-":"+")+N(6,r<0?-r:r):N(4,r))+"-"+N(2,o+1)+"-"+N(2,n)+"T"+N(2,s)+":"+N(2,a)+":"+N(2,u)+"."+N(3,c)+"Z",r=o=n=s=a=u=c=null):e=null,e},A(e)};if(_("json-stringify")&&!_("date-serialization")){function b(e){return A(this)}var M=t.stringify;t.stringify=function(e,t,r){var o=s.prototype.toJSON;s.prototype.toJSON=b;var n=M(e,t,r);return s.prototype.toJSON=o,n}}else{var w=function(e){var t=e.charCodeAt(0);return C[t]||"\\u00"+N(2,t.toString(16))},k=/[\x00-\x1f\x22\x5c]/g,U=function(e){return k.lastIndex=0,'"'+(k.test(e)?e.replace(k,w):e)+'"'},P=function(e,t,r,o,n,i,a){var u,c,p,d,f,g,y,_,T;if(E((function(){u=t[e]})),"object"==typeof u&&u&&(u.getUTCFullYear&&"[object Date]"==m.call(u)&&u.toJSON===s.prototype.toJSON?u=A(u):"function"==typeof u.toJSON&&(u=u.toJSON(e))),r&&(u=r.call(t,e,u)),u==h)return u===h?u:"null";switch("object"==(c=typeof u)&&(p=m.call(u)),p||c){case"boolean":case"[object Boolean]":return""+u;case"number":case v:return u>-1/0&&u<1/0?""+u:"null";case"string":case O:return U(""+u)}if("object"==typeof u){for(y=a.length;y--;)if(a[y]===u)throw l();if(a.push(u),d=[],_=i,i+=n,p==R){for(g=0,y=u.length;g0)for(r>10&&(r=10),o="";o.length=48&&n<=57||n>=97&&n<=102||n>=65&&n<=70||G();e+=L("0x"+i.slice(t,x));break;default:G()}else{if(34==n)break;for(n=i.charCodeAt(x),t=x;n>=32&&92!=n&&34!=n;)n=i.charCodeAt(++x);e+=i.slice(t,x)}if(34==i.charCodeAt(x))return x++,e;G();default:if(t=x,45==n&&(o=!0,n=i.charCodeAt(++x)),n>=48&&n<=57){for(48==n&&(n=i.charCodeAt(x+1))>=48&&n<=57&&G(),o=!1;x=48&&n<=57;x++);if(46==i.charCodeAt(x)){for(r=++x;r57);r++);r==x&&G(),x=r}if(101==(n=i.charCodeAt(x))||69==n){for(43!=(n=i.charCodeAt(++x))&&45!=n||x++,r=x;r57);r++);r==x&&G(),x=r}return+i.slice(t,x)}o&&G();var a=i.slice(x,x+4);if("true"==a)return x+=4,!0;if("fals"==a&&101==i.charCodeAt(x+4))return x+=5,!1;if("null"==a)return x+=4,null;G()}return"$"},H=function(e){var t,r;if("$"==e&&G(),"string"==typeof e){if("@"==(I?e.charAt(0):e[0]))return e.slice(1);if("["==e){for(t=[];"]"!=(e=B());)r?","==e?"]"==(e=B())&&G():G():r=!0,","==e&&G(),t.push(H(e));return t}if("{"==e){for(t={};"}"!=(e=B());)r?","==e?"}"==(e=B())&&G():G():r=!0,","!=e&&"string"==typeof e&&"@"==(I?e.charAt(0):e[0])&&":"==B()||G(),t[e.slice(1)]=H(B());return t}G()}return e},F=function(e,t,r){var o=W(e,t,r);o===h?delete e[t]:e[t]=o},W=function(e,t,r){var o,n=e[t];if("object"==typeof n&&n)if(m.call(n)==R)for(o=n.length;o--;)F(m,S,n);else S(n,(function(e){F(n,e,r)}));return r.call(e,t,n)};t.parse=function(e,t){var r,o;return x=0,j=""+e,r=H(B()),"$"!=B()&&G(),x=j=null,t&&m.call(t)==T?W(((o={})[""]=r,o),"",t):r}}}return t.runInContext=c,t}if(!u||u.global!==u&&u.window!==u&&u.self!==u||(a=u),s&&!n)c(a,s);else{var l=a.JSON,p=a.JSON3,d=!1,h=c(a,a.JSON3={noConflict:function(){return d||(d=!0,a.JSON=l,a.JSON3=p,l=p=null),h}});a.JSON={parse:h.parse,stringify:h.stringify}}n&&(void 0===(o=function(){return h}.call(t,r,t,e))||(e.exports=o))}.call(this)},3720:function(e){e.exports=r;var t=null;try{t=new WebAssembly.Instance(new WebAssembly.Module(new Uint8Array([0,97,115,109,1,0,0,0,1,13,2,96,0,1,127,96,4,127,127,127,127,1,127,3,7,6,0,1,1,1,1,1,6,6,1,127,1,65,0,11,7,50,6,3,109,117,108,0,1,5,100,105,118,95,115,0,2,5,100,105,118,95,117,0,3,5,114,101,109,95,115,0,4,5,114,101,109,95,117,0,5,8,103,101,116,95,104,105,103,104,0,0,10,191,1,6,4,0,35,0,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,126,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,127,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,128,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,129,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,130,34,4,66,32,135,167,36,0,32,4,167,11])),{}).exports}catch(e){}function r(e,t,r){this.low=0|e,this.high=0|t,this.unsigned=!!r}function o(e){return!0===(e&&e.__isLong__)}r.prototype.__isLong__,Object.defineProperty(r.prototype,"__isLong__",{value:!0}),r.isLong=o;var n={},i={};function s(e,t){var r,o,s;return t?(s=0<=(e>>>=0)&&e<256)&&(o=i[e])?o:(r=u(e,(0|e)<0?-1:0,!0),s&&(i[e]=r),r):(s=-128<=(e|=0)&&e<128)&&(o=n[e])?o:(r=u(e,e<0?-1:0,!1),s&&(n[e]=r),r)}function a(e,t){if(isNaN(e))return t?E:g;if(t){if(e<0)return E;if(e>=h)return O}else{if(e<=-f)return R;if(e+1>=f)return v}return e<0?a(-e,t).neg():u(e%d|0,e/d|0,t)}function u(e,t,o){return new r(e,t,o)}r.fromInt=s,r.fromNumber=a,r.fromBits=u;var c=Math.pow;function l(e,t,r){if(0===e.length)throw Error("empty string");if("NaN"===e||"Infinity"===e||"+Infinity"===e||"-Infinity"===e)return g;if("number"==typeof t?(r=t,t=!1):t=!!t,(r=r||10)<2||360)throw Error("interior hyphen");if(0===o)return l(e.substring(1),t,r).neg();for(var n=a(c(r,8)),i=g,s=0;s>>0:this.low},I.toNumber=function(){return this.unsigned?(this.high>>>0)*d+(this.low>>>0):this.high*d+(this.low>>>0)},I.toString=function(e){if((e=e||10)<2||36>>0).toString(e);if((i=u).isZero())return l+s;for(;l.length<6;)l="0"+l;s=""+l+s}},I.getHighBits=function(){return this.high},I.getHighBitsUnsigned=function(){return this.high>>>0},I.getLowBits=function(){return this.low},I.getLowBitsUnsigned=function(){return this.low>>>0},I.getNumBitsAbs=function(){if(this.isNegative())return this.eq(R)?64:this.neg().getNumBitsAbs();for(var e=0!=this.high?this.high:this.low,t=31;t>0&&0==(e&1<=0},I.isOdd=function(){return 1==(1&this.low)},I.isEven=function(){return 0==(1&this.low)},I.equals=function(e){return o(e)||(e=p(e)),(this.unsigned===e.unsigned||this.high>>>31!=1||e.high>>>31!=1)&&this.high===e.high&&this.low===e.low},I.eq=I.equals,I.notEquals=function(e){return!this.eq(e)},I.neq=I.notEquals,I.ne=I.notEquals,I.lessThan=function(e){return this.comp(e)<0},I.lt=I.lessThan,I.lessThanOrEqual=function(e){return this.comp(e)<=0},I.lte=I.lessThanOrEqual,I.le=I.lessThanOrEqual,I.greaterThan=function(e){return this.comp(e)>0},I.gt=I.greaterThan,I.greaterThanOrEqual=function(e){return this.comp(e)>=0},I.gte=I.greaterThanOrEqual,I.ge=I.greaterThanOrEqual,I.compare=function(e){if(o(e)||(e=p(e)),this.eq(e))return 0;var t=this.isNegative(),r=e.isNegative();return t&&!r?-1:!t&&r?1:this.unsigned?e.high>>>0>this.high>>>0||e.high===this.high&&e.low>>>0>this.low>>>0?-1:1:this.sub(e).isNegative()?-1:1},I.comp=I.compare,I.negate=function(){return!this.unsigned&&this.eq(R)?R:this.not().add(y)},I.neg=I.negate,I.add=function(e){o(e)||(e=p(e));var t=this.high>>>16,r=65535&this.high,n=this.low>>>16,i=65535&this.low,s=e.high>>>16,a=65535&e.high,c=e.low>>>16,l=0,d=0,h=0,f=0;return h+=(f+=i+(65535&e.low))>>>16,d+=(h+=n+c)>>>16,l+=(d+=r+a)>>>16,l+=t+s,u((h&=65535)<<16|(f&=65535),(l&=65535)<<16|(d&=65535),this.unsigned)},I.subtract=function(e){return o(e)||(e=p(e)),this.add(e.neg())},I.sub=I.subtract,I.multiply=function(e){if(this.isZero())return g;if(o(e)||(e=p(e)),t)return u(t.mul(this.low,this.high,e.low,e.high),t.get_high(),this.unsigned);if(e.isZero())return g;if(this.eq(R))return e.isOdd()?R:g;if(e.eq(R))return this.isOdd()?R:g;if(this.isNegative())return e.isNegative()?this.neg().mul(e.neg()):this.neg().mul(e).neg();if(e.isNegative())return this.mul(e.neg()).neg();if(this.lt(m)&&e.lt(m))return a(this.toNumber()*e.toNumber(),this.unsigned);var r=this.high>>>16,n=65535&this.high,i=this.low>>>16,s=65535&this.low,c=e.high>>>16,l=65535&e.high,d=e.low>>>16,h=65535&e.low,f=0,E=0,y=0,_=0;return y+=(_+=s*h)>>>16,E+=(y+=i*h)>>>16,y&=65535,E+=(y+=s*d)>>>16,f+=(E+=n*h)>>>16,E&=65535,f+=(E+=i*d)>>>16,E&=65535,f+=(E+=s*l)>>>16,f+=r*h+n*d+i*l+s*c,u((y&=65535)<<16|(_&=65535),(f&=65535)<<16|(E&=65535),this.unsigned)},I.mul=I.multiply,I.divide=function(e){if(o(e)||(e=p(e)),e.isZero())throw Error("division by zero");var r,n,i;if(t)return this.unsigned||-2147483648!==this.high||-1!==e.low||-1!==e.high?u((this.unsigned?t.div_u:t.div_s)(this.low,this.high,e.low,e.high),t.get_high(),this.unsigned):this;if(this.isZero())return this.unsigned?E:g;if(this.unsigned){if(e.unsigned||(e=e.toUnsigned()),e.gt(this))return E;if(e.gt(this.shru(1)))return _;i=E}else{if(this.eq(R))return e.eq(y)||e.eq(T)?R:e.eq(R)?y:(r=this.shr(1).div(e).shl(1)).eq(g)?e.isNegative()?y:T:(n=this.sub(e.mul(r)),i=r.add(n.div(e)));if(e.eq(R))return this.unsigned?E:g;if(this.isNegative())return e.isNegative()?this.neg().div(e.neg()):this.neg().div(e).neg();if(e.isNegative())return this.div(e.neg()).neg();i=g}for(n=this;n.gte(e);){r=Math.max(1,Math.floor(n.toNumber()/e.toNumber()));for(var s=Math.ceil(Math.log(r)/Math.LN2),l=s<=48?1:c(2,s-48),d=a(r),h=d.mul(e);h.isNegative()||h.gt(n);)h=(d=a(r-=l,this.unsigned)).mul(e);d.isZero()&&(d=y),i=i.add(d),n=n.sub(h)}return i},I.div=I.divide,I.modulo=function(e){return o(e)||(e=p(e)),t?u((this.unsigned?t.rem_u:t.rem_s)(this.low,this.high,e.low,e.high),t.get_high(),this.unsigned):this.sub(this.div(e).mul(e))},I.mod=I.modulo,I.rem=I.modulo,I.not=function(){return u(~this.low,~this.high,this.unsigned)},I.and=function(e){return o(e)||(e=p(e)),u(this.low&e.low,this.high&e.high,this.unsigned)},I.or=function(e){return o(e)||(e=p(e)),u(this.low|e.low,this.high|e.high,this.unsigned)},I.xor=function(e){return o(e)||(e=p(e)),u(this.low^e.low,this.high^e.high,this.unsigned)},I.shiftLeft=function(e){return o(e)&&(e=e.toInt()),0==(e&=63)?this:e<32?u(this.low<>>32-e,this.unsigned):u(0,this.low<>>e|this.high<<32-e,this.high>>e,this.unsigned):u(this.high>>e-32,this.high>=0?0:-1,this.unsigned)},I.shr=I.shiftRight,I.shiftRightUnsigned=function(e){if(o(e)&&(e=e.toInt()),0==(e&=63))return this;var t=this.high;return e<32?u(this.low>>>e|t<<32-e,t>>>e,this.unsigned):u(32===e?t:t>>>e-32,0,this.unsigned)},I.shru=I.shiftRightUnsigned,I.shr_u=I.shiftRightUnsigned,I.toSigned=function(){return this.unsigned?u(this.low,this.high,!1):this},I.toUnsigned=function(){return this.unsigned?this:u(this.low,this.high,!0)},I.toBytes=function(e){return e?this.toBytesLE():this.toBytesBE()},I.toBytesLE=function(){var e=this.high,t=this.low;return[255&t,t>>>8&255,t>>>16&255,t>>>24,255&e,e>>>8&255,e>>>16&255,e>>>24]},I.toBytesBE=function(){var e=this.high,t=this.low;return[e>>>24,e>>>16&255,e>>>8&255,255&e,t>>>24,t>>>16&255,t>>>8&255,255&t]},r.fromBytes=function(e,t,o){return o?r.fromBytesLE(e,t):r.fromBytesBE(e,t)},r.fromBytesLE=function(e,t){return new r(e[0]|e[1]<<8|e[2]<<16|e[3]<<24,e[4]|e[5]<<8|e[6]<<16|e[7]<<24,t)},r.fromBytesBE=function(e,t){return new r(e[4]<<24|e[5]<<16|e[6]<<8|e[7],e[0]<<24|e[1]<<16|e[2]<<8|e[3],t)}},3281:function(e,t,r){"use strict";e.exports=r(9050)},2967:function(e){"use strict";e.exports=o;var t,r=/\/|\./;function o(e,t){r.test(e)||(e="google/protobuf/"+e+".proto",t={nested:{google:{nested:{protobuf:{nested:t}}}}}),o[e]=t}o("any",{Any:{fields:{type_url:{type:"string",id:1},value:{type:"bytes",id:2}}}}),o("duration",{Duration:t={fields:{seconds:{type:"int64",id:1},nanos:{type:"int32",id:2}}}}),o("timestamp",{Timestamp:t}),o("empty",{Empty:{fields:{}}}),o("struct",{Struct:{fields:{fields:{keyType:"string",type:"Value",id:1}}},Value:{oneofs:{kind:{oneof:["nullValue","numberValue","stringValue","boolValue","structValue","listValue"]}},fields:{nullValue:{type:"NullValue",id:1},numberValue:{type:"double",id:2},stringValue:{type:"string",id:3},boolValue:{type:"bool",id:4},structValue:{type:"Struct",id:5},listValue:{type:"ListValue",id:6}}},NullValue:{values:{NULL_VALUE:0}},ListValue:{fields:{values:{rule:"repeated",type:"Value",id:1}}}}),o("wrappers",{DoubleValue:{fields:{value:{type:"double",id:1}}},FloatValue:{fields:{value:{type:"float",id:1}}},Int64Value:{fields:{value:{type:"int64",id:1}}},UInt64Value:{fields:{value:{type:"uint64",id:1}}},Int32Value:{fields:{value:{type:"int32",id:1}}},UInt32Value:{fields:{value:{type:"uint32",id:1}}},BoolValue:{fields:{value:{type:"bool",id:1}}},StringValue:{fields:{value:{type:"string",id:1}}},BytesValue:{fields:{value:{type:"bytes",id:1}}}}),o("field_mask",{FieldMask:{fields:{paths:{rule:"repeated",type:"string",id:1}}}}),o.get=function(e){return o[e]||null}},3996:function(e,t,r){"use strict";var o=t,n=r(7025),i=r(9935);function s(e,t,r,o){if(t.resolvedType)if(t.resolvedType instanceof n){e("switch(d%s){",o);for(var i=t.resolvedType.values,s=Object.keys(i),a=0;a>>0",o,o);break;case"int32":case"sint32":case"sfixed32":e("m%s=d%s|0",o,o);break;case"uint64":u=!0;case"int64":case"sint64":case"fixed64":case"sfixed64":e("if(util.Long)")("(m%s=util.Long.fromValue(d%s)).unsigned=%j",o,o,u)('else if(typeof d%s==="string")',o)("m%s=parseInt(d%s,10)",o,o)('else if(typeof d%s==="number")',o)("m%s=d%s",o,o)('else if(typeof d%s==="object")',o)("m%s=new util.LongBits(d%s.low>>>0,d%s.high>>>0).toNumber(%s)",o,o,o,u?"true":"");break;case"bytes":e('if(typeof d%s==="string")',o)("util.base64.decode(d%s,m%s=util.newBuffer(util.base64.length(d%s)),0)",o,o,o)("else if(d%s.length)",o)("m%s=d%s",o,o);break;case"string":e("m%s=String(d%s)",o,o);break;case"bool":e("m%s=Boolean(d%s)",o,o)}}return e}function a(e,t,r,o){if(t.resolvedType)t.resolvedType instanceof n?e("d%s=o.enums===String?types[%i].values[m%s]:m%s",o,r,o,o):e("d%s=types[%i].toObject(m%s,o)",o,r,o);else{var i=!1;switch(t.type){case"double":case"float":e("d%s=o.json&&!isFinite(m%s)?String(m%s):m%s",o,o,o,o);break;case"uint64":i=!0;case"int64":case"sint64":case"fixed64":case"sfixed64":e('if(typeof m%s==="number")',o)("d%s=o.longs===String?String(m%s):m%s",o,o,o)("else")("d%s=o.longs===String?util.Long.prototype.toString.call(m%s):o.longs===Number?new util.LongBits(m%s.low>>>0,m%s.high>>>0).toNumber(%s):m%s",o,o,o,o,i?"true":"",o);break;case"bytes":e("d%s=o.bytes===String?util.base64.encode(m%s,0,m%s.length):o.bytes===Array?Array.prototype.slice.call(m%s):m%s",o,o,o,o,o);break;default:e("d%s=m%s",o,o)}}return e}o.fromObject=function(e){var t=e.fieldsArray,r=i.codegen(["d"],e.name+"$fromObject")("if(d instanceof this.ctor)")("return d");if(!t.length)return r("return new this.ctor");r("var m=new this.ctor");for(var o=0;o>>3){");for(var r=0;r>>3){")("case 1: k=r.%s(); break",a.keyType)("case 2:"),void 0===n.basic[u]?t("value=types[%i].decode(r,r.uint32())",r):t("value=r.%s()",u),t("break")("default:")("r.skipType(tag2&7)")("break")("}")("}"),void 0!==n.long[a.keyType]?t('%s[typeof k==="object"?util.longToHash(k):k]=value',c):t("%s[k]=value",c)):a.repeated?(t("if(!(%s&&%s.length))",c,c)("%s=[]",c),void 0!==n.packed[u]&&t("if((t&7)===2){")("var c2=r.uint32()+r.pos")("while(r.pos>>0,8|n.mapKey[c.keyType],c.keyType),void 0===d?r("types[%i].encode(%s[ks[i]],w.uint32(18).fork()).ldelim().ldelim()",l,t):r(".uint32(%i).%s(%s[ks[i]]).ldelim()",16|d,p,t),r("}")("}")):c.repeated?(r("if(%s!=null&&%s.length){",t,t),c.packed&&void 0!==n.packed[p]?r("w.uint32(%i).fork()",(c.id<<3|2)>>>0)("for(var i=0;i<%s.length;++i)",t)("w.%s(%s[i])",p,t)("w.ldelim()"):(r("for(var i=0;i<%s.length;++i)",t),void 0===d?s(r,c,l,t+"[i]"):r("w.uint32(%i).%s(%s[i])",(c.id<<3|d)>>>0,p,t)),r("}")):(c.optional&&r("if(%s!=null&&Object.hasOwnProperty.call(m,%j))",t,c.name),void 0===d?s(r,c,l,t):r("w.uint32(%i).%s(%s)",(c.id<<3|d)>>>0,p,t))}return r("return w")};var o=r(7025),n=r(7063),i=r(9935);function s(e,t,r,o){return t.resolvedType.group?e("types[%i].encode(%s,w.uint32(%i)).uint32(%i)",r,o,(t.id<<3|3)>>>0,(t.id<<3|4)>>>0):e("types[%i].encode(%s,w.uint32(%i).fork()).ldelim()",r,o,(t.id<<3|2)>>>0)}},7025:function(e,t,r){"use strict";e.exports=s;var o=r(3243);((s.prototype=Object.create(o.prototype)).constructor=s).className="Enum";var n=r(9313),i=r(9935);function s(e,t,r,n,i){if(o.call(this,e,r),t&&"object"!=typeof t)throw TypeError("values must be an object");if(this.valuesById={},this.values=Object.create(this.valuesById),this.comment=n,this.comments=i||{},this.reserved=void 0,t)for(var s=Object.keys(t),a=0;at)return!0;return!1},p.isReservedName=function(e,t){if(e)for(var r=0;r0;){var o=e.shift();if(r.nested&&r.nested[o]){if(!((r=r.nested[o])instanceof p))throw Error("path conflicts with non-namespace objects")}else r.add(r=new p(o))}return t&&r.addJSON(t),r},p.prototype.resolveAll=function(){for(var e=this.nestedArray,t=0;t-1)return o}else if(o instanceof p&&(o=o.lookup(e.slice(1),t,!0)))return o}else for(var n=0;n-1&&this.oneof.splice(t,1),e.partOf=null,this},s.prototype.onAdd=function(e){o.prototype.onAdd.call(this,e);for(var t=0;t");var o=k();if(!v.test(o))throw H(o,"name");x("=");var n=new a(B(o),K(k()),t,r);Z(n,(function(e){if("option"!==e)throw H(e);$(n,e),x(";")}),(function(){te(n)})),e.add(n)}(r);break;case"required":case"repeated":Y(r,e);break;case"optional":Y(r,D?"proto3_optional":"optional");break;case"oneof":!function(e,t){if(!v.test(t=k()))throw H(t,"name");var r=new u(B(t));Z(r,(function(e){"option"===e?($(r,e),x(";")):(U(e),Y(r,"optional"))})),e.add(r)}(r,e);break;case"extensions":q(r.extensions||(r.extensions=[]));break;case"reserved":q(r.reserved||(r.reserved=[]),!0);break;default:if(!D||!O.test(e))throw H(e);U(e),Y(r,"optional")}})),e.add(r)}(e,t),!0;case"enum":return function(e,t){if(!v.test(t=k()))throw H(t,"name");var r=new c(t);Z(r,(function(e){switch(e){case"option":$(r,e),x(";");break;case"reserved":q(r.reserved||(r.reserved=[]),!0);break;default:!function(e,t){if(!v.test(t))throw H(t,"name");x("=");var r=K(k(),!0),o={};Z(o,(function(e){if("option"!==e)throw H(e);$(o,e),x(";")}),(function(){te(o)})),e.add(t,r,o.comment)}(r,e)}})),e.add(r)}(e,t),!0;case"service":return function(e,t){if(!v.test(t=k()))throw H(t,"service name");var r=new l(t);Z(r,(function(e){if(!X(r,e)){if("rpc"!==e)throw H(e);!function(e,t){var r=j(),o=t;if(!v.test(t=k()))throw H(t,"name");var n,i,s,a,u=t;if(x("("),x("stream",!0)&&(i=!0),!O.test(t=k()))throw H(t);if(n=t,x(")"),x("returns"),x("("),x("stream",!0)&&(a=!0),!O.test(t=k()))throw H(t);s=t,x(")");var c=new p(u,o,n,s,i,a);c.comment=r,Z(c,(function(e){if("option"!==e)throw H(e);$(c,e),x(";")})),e.add(c)}(r,e)}})),e.add(r)}(e,t),!0;case"extend":return function(e,t){if(!O.test(t=k()))throw H(t,"reference");var r=t;Z(null,(function(t){switch(t){case"required":case"repeated":Y(e,t,r);break;case"optional":Y(e,D?"proto3_optional":"optional",r);break;default:if(!D||!O.test(t))throw H(t);U(t),Y(e,"optional",r)}}))}(e,t),!0}return!1}function Z(e,t,r){var o=w.line;if(e&&("string"!=typeof e.comment&&(e.comment=j()),e.filename=I.filename),x("{",!0)){for(var n;"}"!==(n=k());)t(n);x(";",!0)}else r&&r(),x(";"),e&&("string"!=typeof e.comment||M)&&(e.comment=j(o)||e.comment)}function Y(e,t,r){var o=k();if("group"!==o){if(!O.test(o))throw H(o,"type");var n=k();if(!v.test(n))throw H(n,"name");n=B(n),x("=");var a=new s(n,K(k()),o,t,r);if(Z(a,(function(e){if("option"!==e)throw H(e);$(a,e),x(";")}),(function(){te(a)})),"proto3_optional"===t){var c=new u("_"+n);a.setOption("proto3_optional",!0),c.add(a),e.add(c)}else e.add(a);D||!a.repeated||void 0===d.packed[o]&&void 0!==d.basic[o]||a.setOption("packed",!1,!0)}else!function(e,t){var r=k();if(!v.test(r))throw H(r,"name");var o=h.lcFirst(r);r===o&&(r=h.ucFirst(r)),x("=");var n=K(k()),a=new i(r);a.group=!0;var u=new s(o,n,r,t);u.filename=I.filename,Z(a,(function(e){switch(e){case"option":$(a,e),x(";");break;case"required":case"repeated":Y(a,e);break;case"optional":Y(a,D?"proto3_optional":"optional");break;default:throw H(e)}})),e.add(a).add(u)}(e,t)}function $(e,t){var r=x("(",!0);if(!O.test(t=k()))throw H(t,"name");var o,n=t,i=n;r&&(x(")"),i=n="("+n+")",t=P(),R.test(t)&&(o=t.substr(1),n+=t,k())),x("="),function(e,t,r,o){e.setParsedOption&&e.setParsedOption(t,r,o)}(e,i,Q(e,n),o)}function Q(e,t){if(x("{",!0)){for(var r={};!x("}",!0);){if(!v.test(b=k()))throw H(b,"name");var o,n=b;"{"===P()?o=Q(e,t+"."+b):(x(":"),"{"===P()?o=Q(e,t+"."+b):(o=W(!0),ee(e,t+"."+b,o)));var i=r[n];i&&(o=[].concat(i).concat(o)),r[n]=o,x(",",!0)}return r}var s=W(!0);return ee(e,t,s),s}function ee(e,t,r){e.setOption&&e.setOption(t,r)}function te(e){if(x("[",!0)){do{$(e,"option")}while(x(",",!0));x("]")}return e}for(;null!==(b=k());)switch(b){case"package":if(!L)throw H(b);J();break;case"import":if(!L)throw H(b);z();break;case"syntax":if(!L)throw H(b);V();break;case"option":$(G,b),x(";");break;default:if(X(G,b)){L=!1;continue}throw H(b)}return I.filename=null,{package:S,imports:C,weakImports:N,syntax:A,root:t}}},1408:function(e,t,r){"use strict";e.exports=u;var o,n=r(9693),i=n.LongBits,s=n.utf8;function a(e,t){return RangeError("index out of range: "+e.pos+" + "+(t||1)+" > "+e.len)}function u(e){this.buf=e,this.pos=0,this.len=e.length}var c,l="undefined"!=typeof Uint8Array?function(e){if(e instanceof Uint8Array||Array.isArray(e))return new u(e);throw Error("illegal buffer")}:function(e){if(Array.isArray(e))return new u(e);throw Error("illegal buffer")},p=function(){return n.Buffer?function(e){return(u.create=function(e){return n.Buffer.isBuffer(e)?new o(e):l(e)})(e)}:l};function d(){var e=new i(0,0),t=0;if(!(this.len-this.pos>4)){for(;t<3;++t){if(this.pos>=this.len)throw a(this);if(e.lo=(e.lo|(127&this.buf[this.pos])<<7*t)>>>0,this.buf[this.pos++]<128)return e}return e.lo=(e.lo|(127&this.buf[this.pos++])<<7*t)>>>0,e}for(;t<4;++t)if(e.lo=(e.lo|(127&this.buf[this.pos])<<7*t)>>>0,this.buf[this.pos++]<128)return e;if(e.lo=(e.lo|(127&this.buf[this.pos])<<28)>>>0,e.hi=(e.hi|(127&this.buf[this.pos])>>4)>>>0,this.buf[this.pos++]<128)return e;if(t=0,this.len-this.pos>4){for(;t<5;++t)if(e.hi=(e.hi|(127&this.buf[this.pos])<<7*t+3)>>>0,this.buf[this.pos++]<128)return e}else for(;t<5;++t){if(this.pos>=this.len)throw a(this);if(e.hi=(e.hi|(127&this.buf[this.pos])<<7*t+3)>>>0,this.buf[this.pos++]<128)return e}throw Error("invalid varint encoding")}function h(e,t){return(e[t-4]|e[t-3]<<8|e[t-2]<<16|e[t-1]<<24)>>>0}function f(){if(this.pos+8>this.len)throw a(this,8);return new i(h(this.buf,this.pos+=4),h(this.buf,this.pos+=4))}u.create=p(),u.prototype._slice=n.Array.prototype.subarray||n.Array.prototype.slice,u.prototype.uint32=(c=4294967295,function(){if(c=(127&this.buf[this.pos])>>>0,this.buf[this.pos++]<128)return c;if(c=(c|(127&this.buf[this.pos])<<7)>>>0,this.buf[this.pos++]<128)return c;if(c=(c|(127&this.buf[this.pos])<<14)>>>0,this.buf[this.pos++]<128)return c;if(c=(c|(127&this.buf[this.pos])<<21)>>>0,this.buf[this.pos++]<128)return c;if(c=(c|(15&this.buf[this.pos])<<28)>>>0,this.buf[this.pos++]<128)return c;if((this.pos+=5)>this.len)throw this.pos=this.len,a(this,10);return c}),u.prototype.int32=function(){return 0|this.uint32()},u.prototype.sint32=function(){var e=this.uint32();return e>>>1^-(1&e)|0},u.prototype.bool=function(){return 0!==this.uint32()},u.prototype.fixed32=function(){if(this.pos+4>this.len)throw a(this,4);return h(this.buf,this.pos+=4)},u.prototype.sfixed32=function(){if(this.pos+4>this.len)throw a(this,4);return 0|h(this.buf,this.pos+=4)},u.prototype.float=function(){if(this.pos+4>this.len)throw a(this,4);var e=n.float.readFloatLE(this.buf,this.pos);return this.pos+=4,e},u.prototype.double=function(){if(this.pos+8>this.len)throw a(this,4);var e=n.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,e},u.prototype.bytes=function(){var e=this.uint32(),t=this.pos,r=this.pos+e;if(r>this.len)throw a(this,e);return this.pos+=e,Array.isArray(this.buf)?this.buf.slice(t,r):t===r?new this.buf.constructor(0):this._slice.call(this.buf,t,r)},u.prototype.string=function(){var e=this.bytes();return s.read(e,0,e.length)},u.prototype.skip=function(e){if("number"==typeof e){if(this.pos+e>this.len)throw a(this,e);this.pos+=e}else do{if(this.pos>=this.len)throw a(this)}while(128&this.buf[this.pos++]);return this},u.prototype.skipType=function(e){switch(e){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;4!=(e=7&this.uint32());)this.skipType(e);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+e+" at offset "+this.pos)}return this},u._configure=function(e){o=e,u.create=p(),o._configure();var t=n.Long?"toLong":"toNumber";n.merge(u.prototype,{int64:function(){return d.call(this)[t](!1)},uint64:function(){return d.call(this)[t](!0)},sint64:function(){return d.call(this).zzDecode()[t](!1)},fixed64:function(){return f.call(this)[t](!0)},sfixed64:function(){return f.call(this)[t](!1)}})}},593:function(e,t,r){"use strict";e.exports=i;var o=r(1408);(i.prototype=Object.create(o.prototype)).constructor=i;var n=r(9693);function i(e){o.call(this,e)}i._configure=function(){n.Buffer&&(i.prototype._slice=n.Buffer.prototype.slice)},i.prototype.string=function(){var e=this.uint32();return this.buf.utf8Slice?this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+e,this.len)):this.buf.toString("utf-8",this.pos,this.pos=Math.min(this.pos+e,this.len))},i._configure()},9424:function(e,t,r){"use strict";e.exports=p;var o=r(9313);((p.prototype=Object.create(o.prototype)).constructor=p).className="Root";var n,i,s,a=r(3548),u=r(7025),c=r(7598),l=r(9935);function p(e){o.call(this,"",e),this.deferred=[],this.files=[]}function d(){}p.fromJSON=function(e,t){return t||(t=new p),e.options&&t.setOptions(e.options),t.addJSON(e.nested)},p.prototype.resolvePath=l.path.resolve,p.prototype.fetch=l.fetch,p.prototype.load=function e(t,r,o){"function"==typeof r&&(o=r,r=void 0);var n=this;if(!o)return l.asPromise(e,n,t,r);var a=o===d;function u(e,t){if(o){var r=o;if(o=null,a)throw e;r(e,t)}}function c(e){var t=e.lastIndexOf("google/protobuf/");if(t>-1){var r=e.substring(t);if(r in s)return r}return null}function p(e,t){try{if(l.isString(t)&&"{"===t.charAt(0)&&(t=JSON.parse(t)),l.isString(t)){i.filename=e;var o,s=i(t,n,r),p=0;if(s.imports)for(;p-1))if(n.files.push(e),e in s)a?p(e,s[e]):(++f,setTimeout((function(){--f,p(e,s[e])})));else if(a){var r;try{r=l.fs.readFileSync(e).toString("utf8")}catch(e){return void(t||u(e))}p(e,r)}else++f,n.fetch(e,(function(r,i){--f,o&&(r?t?f||u(null,n):u(r):p(e,i))}))}var f=0;l.isString(t)&&(t=[t]);for(var m,g=0;g-1&&this.deferred.splice(t,1)}}else if(e instanceof u)h.test(e.name)&&delete e.parent[e.name];else if(e instanceof o){for(var r=0;r]/g,r=/(?:"([^"\\]*(?:\\.[^"\\]*)*)")/g,o=/(?:'([^'\\]*(?:\\.[^'\\]*)*)')/g,n=/^ *[*/]+ */,i=/^\s*\*?\/*/,s=/\n/g,a=/\s/,u=/\\(.?)/g,c={0:"\0",r:"\r",n:"\n",t:"\t"};function l(e){return e.replace(u,(function(e,t){switch(t){case"\\":case"":return t;default:return c[t]||""}}))}function p(e,u){e=e.toString();var c=0,p=e.length,d=1,h=null,f=null,m=0,g=!1,E=!1,y=[],_=null;function T(e){return Error("illegal "+e+" (line "+d+")")}function v(t){return e.charAt(t)}function O(t,r,o){h=e.charAt(t++),m=d,g=!1,E=o;var a,c=t-(u?2:3);do{if(--c<0||"\n"===(a=e.charAt(c))){g=!0;break}}while(" "===a||"\t"===a);for(var l=e.substring(t,r).split(s),p=0;p0)return y.shift();if(_)return function(){var t="'"===_?o:r;t.lastIndex=c-1;var n=t.exec(e);if(!n)throw T("string");return c=t.lastIndex,C(_),_=null,l(n[1])}();var n,i,s,h,f,m=0===c;do{if(c===p)return null;for(n=!1;a.test(s=v(c));)if("\n"===s&&(m=!0,++d),++c===p)return null;if("/"===v(c)){if(++c===p)throw T("comment");if("/"===v(c))if(u){if(h=c,f=!1,R(c)){f=!0;do{if((c=I(c))===p)break;c++}while(R(c))}else c=Math.min(p,I(c)+1);f&&O(h,c,m),d++,n=!0}else{for(f="/"===v(h=c+1);"\n"!==v(++c);)if(c===p)return null;++c,f&&O(h,c-1,m),++d,n=!0}else{if("*"!==(s=v(c)))return"/";h=c+1,f=u||"*"===v(h);do{if("\n"===s&&++d,++c===p)throw T("comment");i=s,s=v(c)}while("*"!==i||"/"!==s);++c,f&&O(h,c-2,m),n=!0}}}while(n);var g=c;if(t.lastIndex=0,!t.test(v(g++)))for(;g0)t[n]=e(t[n]||{},r,o);else{var i=t[n];i&&(o=[].concat(i).concat(o)),t[n]=o}return t}(e,t=t.split("."),r)},Object.defineProperty(i,"decorateRoot",{get:function(){return s.decorated||(s.decorated=new(r(9424)))}})},1945:function(e,t,r){"use strict";e.exports=n;var o=r(9693);function n(e,t){this.lo=e>>>0,this.hi=t>>>0}var i=n.zero=new n(0,0);i.toNumber=function(){return 0},i.zzEncode=i.zzDecode=function(){return this},i.length=function(){return 1};var s=n.zeroHash="\0\0\0\0\0\0\0\0";n.fromNumber=function(e){if(0===e)return i;var t=e<0;t&&(e=-e);var r=e>>>0,o=(e-r)/4294967296>>>0;return t&&(o=~o>>>0,r=~r>>>0,++r>4294967295&&(r=0,++o>4294967295&&(o=0))),new n(r,o)},n.from=function(e){if("number"==typeof e)return n.fromNumber(e);if(o.isString(e)){if(!o.Long)return n.fromNumber(parseInt(e,10));e=o.Long.fromString(e)}return e.low||e.high?new n(e.low>>>0,e.high>>>0):i},n.prototype.toNumber=function(e){if(!e&&this.hi>>>31){var t=1+~this.lo>>>0,r=~this.hi>>>0;return t||(r=r+1>>>0),-(t+4294967296*r)}return this.lo+4294967296*this.hi},n.prototype.toLong=function(e){return o.Long?new o.Long(0|this.lo,0|this.hi,Boolean(e)):{low:0|this.lo,high:0|this.hi,unsigned:Boolean(e)}};var a=String.prototype.charCodeAt;n.fromHash=function(e){return e===s?i:new n((a.call(e,0)|a.call(e,1)<<8|a.call(e,2)<<16|a.call(e,3)<<24)>>>0,(a.call(e,4)|a.call(e,5)<<8|a.call(e,6)<<16|a.call(e,7)<<24)>>>0)},n.prototype.toHash=function(){return String.fromCharCode(255&this.lo,this.lo>>>8&255,this.lo>>>16&255,this.lo>>>24,255&this.hi,this.hi>>>8&255,this.hi>>>16&255,this.hi>>>24)},n.prototype.zzEncode=function(){var e=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^e)>>>0,this.lo=(this.lo<<1^e)>>>0,this},n.prototype.zzDecode=function(){var e=-(1&this.lo);return this.lo=((this.lo>>>1|this.hi<<31)^e)>>>0,this.hi=(this.hi>>>1^e)>>>0,this},n.prototype.length=function(){var e=this.lo,t=(this.lo>>>28|this.hi<<4)>>>0,r=this.hi>>>24;return 0===r?0===t?e<16384?e<128?1:2:e<2097152?3:4:t<16384?t<128?5:6:t<2097152?7:8:r<128?9:10}},9693:function(e,t,r){"use strict";var o=t;function n(e,t,r){for(var o=Object.keys(t),n=0;n0)},o.Buffer=function(){try{var e=o.inquire("buffer").Buffer;return e.prototype.utf8Write?e:null}catch(e){return null}}(),o._Buffer_from=null,o._Buffer_allocUnsafe=null,o.newBuffer=function(e){return"number"==typeof e?o.Buffer?o._Buffer_allocUnsafe(e):new o.Array(e):o.Buffer?o._Buffer_from(e):"undefined"==typeof Uint8Array?e:new Uint8Array(e)},o.Array="undefined"!=typeof Uint8Array?Uint8Array:Array,o.Long=o.global.dcodeIO&&o.global.dcodeIO.Long||o.global.Long||o.inquire("long"),o.key2Re=/^true|false|0|1$/,o.key32Re=/^-?(?:0|[1-9][0-9]*)$/,o.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/,o.longToHash=function(e){return e?o.LongBits.from(e).toHash():o.LongBits.zeroHash},o.longFromHash=function(e,t){var r=o.LongBits.fromHash(e);return o.Long?o.Long.fromBits(r.lo,r.hi,t):r.toNumber(Boolean(t))},o.merge=n,o.lcFirst=function(e){return e.charAt(0).toLowerCase()+e.substring(1)},o.newError=i,o.ProtocolError=i("ProtocolError"),o.oneOfGetter=function(e){for(var t={},r=0;r-1;--r)if(1===t[e[r]]&&void 0!==this[e[r]]&&null!==this[e[r]])return e[r]}},o.oneOfSetter=function(e){return function(t){for(var r=0;r>>7|e.hi<<25)>>>0,e.hi>>>=7;for(;e.lo>127;)t[r++]=127&e.lo|128,e.lo=e.lo>>>7;t[r++]=e.lo}function g(e,t,r){t[r]=255&e,t[r+1]=e>>>8&255,t[r+2]=e>>>16&255,t[r+3]=e>>>24}p.create=d(),p.alloc=function(e){return new n.Array(e)},n.Array!==Array&&(p.alloc=n.pool(p.alloc,n.Array.prototype.subarray)),p.prototype._push=function(e,t,r){return this.tail=this.tail.next=new u(e,t,r),this.len+=t,this},f.prototype=Object.create(u.prototype),f.prototype.fn=function(e,t,r){for(;e>127;)t[r++]=127&e|128,e>>>=7;t[r]=e},p.prototype.uint32=function(e){return this.len+=(this.tail=this.tail.next=new f((e>>>=0)<128?1:e<16384?2:e<2097152?3:e<268435456?4:5,e)).len,this},p.prototype.int32=function(e){return e<0?this._push(m,10,i.fromNumber(e)):this.uint32(e)},p.prototype.sint32=function(e){return this.uint32((e<<1^e>>31)>>>0)},p.prototype.uint64=function(e){var t=i.from(e);return this._push(m,t.length(),t)},p.prototype.int64=p.prototype.uint64,p.prototype.sint64=function(e){var t=i.from(e).zzEncode();return this._push(m,t.length(),t)},p.prototype.bool=function(e){return this._push(h,1,e?1:0)},p.prototype.fixed32=function(e){return this._push(g,4,e>>>0)},p.prototype.sfixed32=p.prototype.fixed32,p.prototype.fixed64=function(e){var t=i.from(e);return this._push(g,4,t.lo)._push(g,4,t.hi)},p.prototype.sfixed64=p.prototype.fixed64,p.prototype.float=function(e){return this._push(n.float.writeFloatLE,4,e)},p.prototype.double=function(e){return this._push(n.float.writeDoubleLE,8,e)};var E=n.Array.prototype.set?function(e,t,r){t.set(e,r)}:function(e,t,r){for(var o=0;o>>0;if(!t)return this._push(h,1,0);if(n.isString(e)){var r=p.alloc(t=s.length(e));s.decode(e,r,0),e=r}return this.uint32(t)._push(E,t,e)},p.prototype.string=function(e){var t=a.length(e);return t?this.uint32(t)._push(a.write,t,e):this._push(h,1,0)},p.prototype.fork=function(){return this.states=new l(this),this.head=this.tail=new u(c,0,0),this.len=0,this},p.prototype.reset=function(){return this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new u(c,0,0),this.len=0),this},p.prototype.ldelim=function(){var e=this.head,t=this.tail,r=this.len;return this.reset().uint32(r),r&&(this.tail.next=e.next,this.tail=t,this.len+=r),this},p.prototype.finish=function(){for(var e=this.head.next,t=this.constructor.alloc(this.len),r=0;e;)e.fn(e.val,t,r),r+=e.len,e=e.next;return t},p._configure=function(e){o=e,p.create=d(),o._configure()}},3155:function(e,t,r){"use strict";e.exports=i;var o=r(1173);(i.prototype=Object.create(o.prototype)).constructor=i;var n=r(9693);function i(){o.call(this)}function s(e,t,r){e.length<40?n.utf8.write(e,t,r):t.utf8Write?t.utf8Write(e,r):t.write(e,r)}i._configure=function(){i.alloc=n._Buffer_allocUnsafe,i.writeBytesBuffer=n.Buffer&&n.Buffer.prototype instanceof Uint8Array&&"set"===n.Buffer.prototype.set.name?function(e,t,r){t.set(e,r)}:function(e,t,r){if(e.copy)e.copy(t,r,0,e.length);else for(var o=0;o>>0;return this.uint32(t),t&&this._push(i.writeBytesBuffer,t,e),this},i.prototype.string=function(e){var t=n.Buffer.byteLength(e);return this.uint32(t),t&&this._push(s,t,e),this},i._configure()},7129:function(e,t){"use strict";var r=Object.prototype.hasOwnProperty;function o(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch(e){return null}}function n(e){try{return encodeURIComponent(e)}catch(e){return null}}t.stringify=function(e,t){t=t||"";var o,i,s=[];for(i in"string"!=typeof t&&(t="?"),e)if(r.call(e,i)){if((o=e[i])||null!=o&&!isNaN(o)||(o=""),i=n(i),o=n(o),null===i||null===o)continue;s.push(i+"="+o)}return s.length?t+s.join("&"):""},t.parse=function(e){for(var t,r=/([^=?#&]+)=?([^&]*)/g,n={};t=r.exec(e);){var i=o(t[1]),s=o(t[2]);null===i||null===s||i in n||(n[i]=s)}return n}},7418:function(e){"use strict";e.exports=function(e,t){if(t=t.split(":")[0],!(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}},8e3:function(e,t,r){"use strict";var o=r(7581);e.exports=r(3626)(o),"_sockjs_onload"in r.g&&setTimeout(r.g._sockjs_onload,1)},2530:function(e,t,r){"use strict";var o=r(5717),n=r(685);function i(){n.call(this),this.initEvent("close",!1,!1),this.wasClean=!1,this.code=0,this.reason=""}o(i,n),e.exports=i},3212:function(e,t,r){"use strict";var o=r(5717),n=r(3184);function i(){n.call(this)}o(i,n),i.prototype.removeAllListeners=function(e){e?delete this._listeners[e]:this._listeners={}},i.prototype.once=function(e,t){var r=this,o=!1;this.on(e,(function n(){r.removeListener(e,n),o||(o=!0,t.apply(this,arguments))}))},i.prototype.emit=function(){var e=arguments[0],t=this._listeners[e];if(t){for(var r=arguments.length,o=new Array(r-1),n=1;n1?this._listeners[e]=r.slice(0,o).concat(r.slice(o+1)):delete this._listeners[e])}},t.prototype.dispatchEvent=function(){var e=arguments[0],t=e.type,r=1===arguments.length?[e]:Array.apply(null,arguments);if(this["on"+t]&&this["on"+t].apply(this,r),t in this._listeners)for(var o=this._listeners[t],n=0;n=3e3&&e<=4999}i(v,g),v.prototype.close=function(e,t){if(e&&!O(e))throw new Error("InvalidAccessError: Invalid code");if(t&&t.length>123)throw new SyntaxError("reason argument has an invalid length");this.readyState!==v.CLOSING&&this.readyState!==v.CLOSED&&this._close(e||1e3,t||"Normal closure",!0)},v.prototype.send=function(e){if("string"!=typeof e&&(e=""+e),this.readyState===v.CONNECTING)throw new Error("InvalidStateError: The connection has not been established yet");this.readyState===v.OPEN&&this._transport.send(u.quote(e))},v.version=r(2828),v.CONNECTING=0,v.OPEN=1,v.CLOSING=2,v.CLOSED=3,v.prototype._receiveInfo=function(e,t){if(this._ir=null,e){this._rto=this.countRTO(t),this._transUrl=e.base_url?e.base_url:this.url,e=d.extend(e,this._urlInfo);var r=o.filterToEnabled(this._transportsWhitelist,e);this._transports=r.main,this._transports.length,this._connect()}else this._close(1002,"Cannot connect to server")},v.prototype._connect=function(){for(var e=this._transports.shift();e;e=this._transports.shift()){if(e.transportName,e.needBody&&(!r.g.document.body||void 0!==r.g.document.readyState&&"complete"!==r.g.document.readyState&&"interactive"!==r.g.document.readyState))return this._transports.unshift(e),void l.attachEvent("load",this._connect.bind(this));var t=Math.max(this._timeout,this._rto*e.roundTrips||5e3);this._transportTimeoutId=setTimeout(this._transportTimeout.bind(this),t);var o=c.addPath(this._transUrl,"/"+this._server+"/"+this._generateSessionId()),n=this._transportOptions[e.transportName],i=new e(o,this._transUrl,n);return i.on("message",this._transportMessage.bind(this)),i.once("close",this._transportClose.bind(this)),i.transportName=e.transportName,void(this._transport=i)}this._close(2e3,"All transports failed",!1)},v.prototype._transportTimeout=function(){this.readyState===v.CONNECTING&&(this._transport&&this._transport.close(),this._transportClose(2007,"Transport timed out"))},v.prototype._transportMessage=function(e){var t,r=this,o=e.slice(0,1),n=e.slice(1);switch(o){case"o":return void this._open();case"h":return this.dispatchEvent(new m("heartbeat")),void this.transport}if(n)try{t=s.parse(n)}catch(e){}if(void 0!==t)switch(o){case"a":Array.isArray(t)&&t.forEach((function(e){r.transport,r.dispatchEvent(new _(e))}));break;case"m":this.transport,this.dispatchEvent(new _(t));break;case"c":Array.isArray(t)&&2===t.length&&this._close(t[0],t[1],!0)}},v.prototype._transportClose=function(e,t){this.transport,this._transport&&(this._transport.removeAllListeners(),this._transport=null,this.transport=null),O(e)||2e3===e||this.readyState!==v.CONNECTING?this._close(e,t):this._connect()},v.prototype._open=function(){this._transport&&this._transport.transportName,this.readyState,this.readyState===v.CONNECTING?(this._transportTimeoutId&&(clearTimeout(this._transportTimeoutId),this._transportTimeoutId=null),this.readyState=v.OPEN,this.transport=this._transport.transportName,this.dispatchEvent(new m("open")),this.transport):this._close(1006,"Server lost session")},v.prototype._close=function(e,t,r){this.transport,this.readyState;var o=!1;if(this._ir&&(o=!0,this._ir.close(),this._ir=null),this._transport&&(this._transport.close(),this._transport=null,this.transport=null),this.readyState===v.CLOSED)throw new Error("InvalidStateError: SockJS has already been closed");this.readyState=v.CLOSING,setTimeout(function(){this.readyState=v.CLOSED,o&&this.dispatchEvent(new m("error"));var n=new y("close");n.wasClean=r||!1,n.code=e||1e3,n.reason=t,this.dispatchEvent(n),this.onmessage=this.onclose=this.onerror=null}.bind(this),0)},v.prototype.countRTO=function(e){return e>100?4*e:300+e},e.exports=function(e){return o=p(e),r(551)(v,e),v}},1247:function(){"use strict";var e,t=Array.prototype,r=Object.prototype,o=Function.prototype,n=String.prototype,i=t.slice,s=r.toString,a=function(e){return"[object Function]"===r.toString.call(e)},u=function(e){return"[object String]"===s.call(e)},c=Object.defineProperty&&function(){try{return Object.defineProperty({},"x",{}),!0}catch(e){return!1}}();e=c?function(e,t,r,o){!o&&t in e||Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:!0,value:r})}:function(e,t,r,o){!o&&t in e||(e[t]=r)};var l=function(t,o,n){for(var i in o)r.hasOwnProperty.call(o,i)&&e(t,i,o[i],n)},p=function(e){if(null==e)throw new TypeError("can't convert "+e+" to object");return Object(e)};function d(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 h(){}l(o,{bind:function(e){var t=this;if(!a(t))throw new TypeError("Function.prototype.bind called on incompatible "+t);for(var r=i.call(arguments,1),o=function(){if(this instanceof c){var o=t.apply(this,r.concat(i.call(arguments)));return Object(o)===o?o:this}return t.apply(e,r.concat(i.call(arguments)))},n=Math.max(0,t.length-r.length),s=[],u=0;u>>0;if(!a(e))throw new TypeError;for(;++n>>0;if(!r)return-1;var o=0;for(arguments.length>1&&(o=d(arguments[1])),o=o>=0?o:Math.max(0,r+o);o1?(T=void 0===/()??/.exec("")[1],n.split=function(e,r){var o=this;if(void 0===e&&0===r)return[];if("[object RegExp]"!==s.call(e))return v.call(this,e,r);var n,i,a,u,c=[],l=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.extended?"x":"")+(e.sticky?"y":""),p=0;for(e=new RegExp(e.source,l+"g"),o+="",T||(n=new RegExp("^"+e.source+"$(?!\\s)",l)),r=void 0===r?-1>>>0:r>>>0;(i=e.exec(o))&&!((a=i.index+i[0].length)>p&&(c.push(o.slice(p,i.index)),!T&&i.length>1&&i[0].replace(n,(function(){for(var e=1;e1&&i.index=r));)e.lastIndex===i.index&&e.lastIndex++;return p===o.length?!u&&e.test("")||c.push(""):c.push(o.slice(p)),c.length>r?c.slice(0,r):c}):"0".split(void 0,0).length&&(n.split=function(e,t){return void 0===e&&0===t?[]:v.call(this,e,t)});var O=n.substr;l(n,{substr:function(e,t){return O.call(this,e<0&&(e=this.length+e)<0?0:e,t)}},"".substr&&"b"!=="0b".substr(-1))},7581:function(e,t,r){"use strict";e.exports=[r(2412),r(9842),r(4620),r(3004),r(882)(r(3004)),r(5616),r(882)(r(5616)),r(2387),r(9998),r(882)(r(2387)),r(5375)]},2940:function(e,t,r){"use strict";var o=r(3212).v,n=r(5717),i=r(7705),s=r(273),a=r.g.XMLHttpRequest;function u(e,t,r,n){var i=this;o.call(this),setTimeout((function(){i._start(e,t,r,n)}),0)}n(u,o),u.prototype._start=function(e,t,r,o){var n=this;try{this.xhr=new a}catch(e){}if(!this.xhr)return this.emit("finish",0,"no xhr support"),void this._cleanup();t=s.addQuery(t,"t="+ +new Date),this.unloadRef=i.unloadAdd((function(){n._cleanup(!0)}));try{this.xhr.open(e,t,!0),this.timeout&&"timeout"in this.xhr&&(this.xhr.timeout=this.timeout,this.xhr.ontimeout=function(){n.emit("finish",0,""),n._cleanup(!1)})}catch(e){return this.emit("finish",0,""),void this._cleanup(!1)}if(o&&o.noCredentials||!u.supportsCORS||(this.xhr.withCredentials=!0),o&&o.headers)for(var c in o.headers)this.xhr.setRequestHeader(c,o.headers[c]);this.xhr.onreadystatechange=function(){if(n.xhr){var e,t,r=n.xhr;switch(r.readyState,r.readyState){case 3:try{t=r.status,e=r.responseText}catch(e){}1223===t&&(t=204),200===t&&e&&e.length>0&&n.emit("chunk",t,e);break;case 4:1223===(t=r.status)&&(t=204),12005!==t&&12029!==t||(t=0),r.responseText,n.emit("finish",t,r.responseText),n._cleanup(!1)}}};try{n.xhr.send(r)}catch(e){n.emit("finish",0,""),n._cleanup(!1)}},u.prototype._cleanup=function(e){if(this.xhr){if(this.removeAllListeners(),i.unloadDel(this.unloadRef),this.xhr.onreadystatechange=function(){},this.xhr.ontimeout&&(this.xhr.ontimeout=null),e)try{this.xhr.abort()}catch(e){}this.unloadRef=this.xhr=null}},u.prototype.close=function(){this._cleanup(!0)},u.enabled=!!a;var c=["Active"].concat("Object").join("X");!u.enabled&&c in r.g&&(a=function(){try{return new r.g[c]("Microsoft.XMLHTTP")}catch(e){return null}},u.enabled=!!new a);var l=!1;try{l="withCredentials"in new a}catch(e){}u.supportsCORS=l,e.exports=u},3759:function(e,t,r){e.exports=r.g.EventSource},9334:function(e,t,r){"use strict";var o=r.g.WebSocket||r.g.MozWebSocket;e.exports=o?function(e){return new o(e)}:void 0},3004:function(e,t,r){"use strict";var o=r(5717),n=r(9395),i=r(6709),s=r(9033),a=r(3759);function u(e){if(!u.enabled())throw new Error("Transport created when disabled");n.call(this,e,"/eventsource",i,s)}o(u,n),u.enabled=function(){return!!a},u.transportName="eventsource",u.roundTrips=2,e.exports=u},5616:function(e,t,r){"use strict";var o=r(5717),n=r(3608),i=r(3515),s=r(9395);function a(e){if(!n.enabled)throw new Error("Transport created when disabled");s.call(this,e,"/htmlfile",n,i)}o(a,s),a.enabled=function(e){return n.enabled&&e.sameOrigin},a.transportName="htmlfile",a.roundTrips=2,e.exports=a},5088:function(e,t,r){"use strict";var o=r(5717),n=r(7522),i=r(3212).v,s=r(2828),a=r(273),u=r(3683),c=r(7705),l=r(8915);function p(e,t,r){if(!p.enabled())throw new Error("Transport created when disabled");i.call(this);var o=this;this.origin=a.getOrigin(r),this.baseUrl=r,this.transUrl=t,this.transport=e,this.windowId=l.string(8);var n=a.addPath(r,"/iframe.html")+"#"+this.windowId;this.iframeObj=u.createIframe(n,(function(e){o.emit("close",1006,"Unable to load an iframe ("+e+")"),o.close()})),this.onmessageCallback=this._message.bind(this),c.attachEvent("message",this.onmessageCallback)}o(p,i),p.prototype.close=function(){if(this.removeAllListeners(),this.iframeObj){c.detachEvent("message",this.onmessageCallback);try{this.postMessage("c")}catch(e){}this.iframeObj.cleanup(),this.iframeObj=null,this.onmessageCallback=this.iframeObj=null}},p.prototype._message=function(e){if(e.data,!a.isOriginEqual(e.origin,this.origin))return e.origin,void this.origin;var t;try{t=n.parse(e.data)}catch(t){return void e.data}if(t.windowId!==this.windowId)return t.windowId,void this.windowId;switch(t.type){case"s":this.iframeObj.loaded(),this.postMessage("s",n.stringify([s,this.transport,this.transUrl,this.baseUrl]));break;case"t":this.emit("message",t.data);break;case"c":var r;try{r=n.parse(t.data)}catch(e){return void t.data}this.emit("close",r[0],r[1]),this.close()}},p.prototype.postMessage=function(e,t){this.iframeObj.post(n.stringify({windowId:this.windowId,type:e,data:t||""}),this.origin)},p.prototype.send=function(e){this.postMessage("m",e)},p.enabled=function(){return u.iframeEnabled},p.transportName="iframe",p.roundTrips=2,e.exports=p},5375:function(e,t,r){"use strict";var o=r(5717),n=r(8347),i=r(514),s=r(771);function a(e){if(!a.enabled())throw new Error("Transport created when disabled");n.call(this,e,"/jsonp",s,i)}o(a,n),a.enabled=function(){return!!r.g.document},a.transportName="jsonp-polling",a.roundTrips=1,a.needBody=!0,e.exports=a},9395:function(e,t,r){"use strict";var o=r(5717),n=r(273),i=r(8347);function s(e,t,r,o){i.call(this,e,t,function(e){return function(t,r,o){var i={};"string"==typeof r&&(i.headers={"Content-type":"text/plain"});var s=n.addPath(t,"/xhr_send"),a=new e("POST",s,r,i);return a.once("finish",(function(e){if(a=null,200!==e&&204!==e)return o(new Error("http status "+e));o()})),function(){a.close(),a=null;var e=new Error("Aborted");e.code=1e3,o(e)}}}(o),r,o)}o(s,i),e.exports=s},1851:function(e,t,r){"use strict";var o=r(5717),n=r(3212).v;function i(e,t){n.call(this),this.sendBuffer=[],this.sender=t,this.url=e}o(i,n),i.prototype.send=function(e){this.sendBuffer.push(e),this.sendStop||this.sendSchedule()},i.prototype.sendScheduleWait=function(){var e,t=this;this.sendStop=function(){t.sendStop=null,clearTimeout(e)},e=setTimeout((function(){t.sendStop=null,t.sendSchedule()}),25)},i.prototype.sendSchedule=function(){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?(e.emit("close",t.code||1006,"Sending error: "+t),e.close()):e.sendScheduleWait()})),this.sendBuffer=[]}},i.prototype._cleanup=function(){this.removeAllListeners()},i.prototype.close=function(){this._cleanup(),this.sendStop&&(this.sendStop(),this.sendStop=null)},e.exports=i},882:function(e,t,r){"use strict";var o=r(5717),n=r(5088),i=r(2217);e.exports=function(e){function t(t,r){n.call(this,e.transportName,t,r)}return o(t,n),t.enabled=function(t,o){if(!r.g.document)return!1;var s=i.extend({},o);return s.sameOrigin=!0,e.enabled(s)&&n.enabled()},t.transportName="iframe-"+e.transportName,t.needBody=!0,t.roundTrips=n.roundTrips+e.roundTrips-1,t.facadeTransport=e,t}},1265:function(e,t,r){"use strict";var o=r(5717),n=r(3212).v;function i(e,t,r){n.call(this),this.Receiver=e,this.receiveUrl=t,this.AjaxObject=r,this._scheduleReceiver()}o(i,n),i.prototype._scheduleReceiver=function(){var e=this,t=this.poll=new this.Receiver(this.receiveUrl,this.AjaxObject);t.on("message",(function(t){e.emit("message",t)})),t.once("close",(function(r,o){e.pollIsClosing,e.poll=t=null,e.pollIsClosing||("network"===o?e._scheduleReceiver():(e.emit("close",r||1006,o),e.removeAllListeners()))}))},i.prototype.abort=function(){this.removeAllListeners(),this.pollIsClosing=!0,this.poll&&this.poll.abort()},e.exports=i},8347:function(e,t,r){"use strict";var o=r(5717),n=r(273),i=r(1851),s=r(1265);function a(e,t,r,o,a){var u=n.addPath(e,t),c=this;i.call(this,e,r),this.poll=new s(o,u,a),this.poll.on("message",(function(e){c.emit("message",e)})),this.poll.once("close",(function(e,t){c.poll=null,c.emit("close",e,t),c.close()}))}o(a,i),a.prototype.close=function(){i.prototype.close.call(this),this.removeAllListeners(),this.poll&&(this.poll.abort(),this.poll=null)},e.exports=a},6709:function(e,t,r){"use strict";var o=r(5717),n=r(3212).v,i=r(3759);function s(e){n.call(this);var t=this,r=this.es=new i(e);r.onmessage=function(e){e.data,t.emit("message",decodeURI(e.data))},r.onerror=function(e){r.readyState;var o=2!==r.readyState?"network":"permanent";t._cleanup(),t._close(o)}}o(s,n),s.prototype.abort=function(){this._cleanup(),this._close("user")},s.prototype._cleanup=function(){var e=this.es;e&&(e.onmessage=e.onerror=null,e.close(),this.es=null)},s.prototype._close=function(e){var t=this;setTimeout((function(){t.emit("close",null,e),t.removeAllListeners()}),200)},e.exports=s},3608:function(e,t,r){"use strict";var o=r(5717),n=r(3683),i=r(273),s=r(3212).v,a=r(8915);function u(e){s.call(this);var t=this;n.polluteGlobalNamespace(),this.id="a"+a.string(6),e=i.addQuery(e,"c="+decodeURIComponent(n.WPrefix+"."+this.id)),u.htmlfileEnabled;var o=u.htmlfileEnabled?n.createHtmlfile:n.createIframe;r.g[n.WPrefix][this.id]={start:function(){t.iframeObj.loaded()},message:function(e){t.emit("message",e)},stop:function(){t._cleanup(),t._close("network")}},this.iframeObj=o(e,(function(){t._cleanup(),t._close("permanent")}))}o(u,s),u.prototype.abort=function(){this._cleanup(),this._close("user")},u.prototype._cleanup=function(){this.iframeObj&&(this.iframeObj.cleanup(),this.iframeObj=null),delete r.g[n.WPrefix][this.id]},u.prototype._close=function(e){this.emit("close",null,e),this.removeAllListeners()},u.htmlfileEnabled=!1;var c=["Active"].concat("Object").join("X");if(c in r.g)try{u.htmlfileEnabled=!!new r.g[c]("htmlfile")}catch(e){}u.enabled=u.htmlfileEnabled||n.iframeEnabled,e.exports=u},514:function(e,t,r){"use strict";var o=r(3683),n=r(8915),i=r(8510),s=r(273),a=r(5717),u=r(3212).v;function c(e){var t=this;u.call(this),o.polluteGlobalNamespace(),this.id="a"+n.string(6);var i=s.addQuery(e,"c="+encodeURIComponent(o.WPrefix+"."+this.id));r.g[o.WPrefix][this.id]=this._callback.bind(this),this._createScript(i),this.timeoutId=setTimeout((function(){t._abort(new Error("JSONP script loaded abnormally (timeout)"))}),c.timeout)}a(c,u),c.prototype.abort=function(){if(r.g[o.WPrefix][this.id]){var e=new Error("JSONP user aborted read");e.code=1e3,this._abort(e)}},c.timeout=35e3,c.scriptErrorTimeout=1e3,c.prototype._callback=function(e){this._cleanup(),this.aborting||(e&&this.emit("message",e),this.emit("close",null,"network"),this.removeAllListeners())},c.prototype._abort=function(e){this._cleanup(),this.aborting=!0,this.emit("close",e.code,e.message),this.removeAllListeners()},c.prototype._cleanup=function(){if(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.g[o.WPrefix][this.id]},c.prototype._scriptError=function(){var e=this;this.errorTimer||(this.errorTimer=setTimeout((function(){e.loadedOkay||e._abort(new Error("JSONP script loaded abnormally (onerror)"))}),c.scriptErrorTimeout))},c.prototype._createScript=function(e){var t,o=this,s=this.script=r.g.document.createElement("script");if(s.id="a"+n.string(8),s.src=e,s.type="text/javascript",s.charset="UTF-8",s.onerror=this._scriptError.bind(this),s.onload=function(){o._abort(new Error("JSONP script loaded abnormally (onload)"))},s.onreadystatechange=function(){if(s.readyState,/loaded|closed/.test(s.readyState)){if(s&&s.htmlFor&&s.onclick){o.loadedOkay=!0;try{s.onclick()}catch(e){}}s&&o._abort(new Error("JSONP script loaded abnormally (onreadystatechange)"))}},void 0===s.async&&r.g.document.attachEvent)if(i.isOpera())(t=this.script2=r.g.document.createElement("script")).text="try{var a = document.getElementById('"+s.id+"'); if(a)a.onerror();}catch(x){};",s.async=t.async=!1;else{try{s.htmlFor=s.id,s.event="onclick"}catch(e){}s.async=!0}void 0!==s.async&&(s.async=!0);var a=r.g.document.getElementsByTagName("head")[0];a.insertBefore(s,a.firstChild),t&&a.insertBefore(t,a.firstChild)},e.exports=c},1044:function(e,t,r){"use strict";var o=r(5717),n=r(3212).v;function i(e,t){n.call(this);var r=this;this.bufferPosition=0,this.xo=new t("POST",e,null),this.xo.on("chunk",this._chunkHandler.bind(this)),this.xo.once("finish",(function(e,t){r._chunkHandler(e,t),r.xo=null;var o=200===e?"network":"permanent";r.emit("close",null,o),r._cleanup()}))}o(i,n),i.prototype._chunkHandler=function(e,t){if(200===e&&t)for(var r=-1;;this.bufferPosition+=r+1){var o=t.slice(this.bufferPosition);if(-1===(r=o.indexOf("\n")))break;var n=o.slice(0,r);n&&this.emit("message",n)}},i.prototype._cleanup=function(){this.removeAllListeners()},i.prototype.abort=function(){this.xo&&(this.xo.close(),this.emit("close",null,"user"),this.xo=null),this._cleanup()},e.exports=i},771:function(e,t,r){"use strict";var o,n,i=r(8915),s=r(273);e.exports=function(e,t,a){o||((o=r.g.document.createElement("form")).style.display="none",o.style.position="absolute",o.method="POST",o.enctype="application/x-www-form-urlencoded",o.acceptCharset="UTF-8",(n=r.g.document.createElement("textarea")).name="d",o.appendChild(n),r.g.document.body.appendChild(o));var u="a"+i.string(8);o.target=u,o.action=s.addQuery(s.addPath(e,"/jsonp_send"),"i="+u);var c=function(e){try{return r.g.document.createElement('