imio-sdk-lite 0.1.13 → 0.1.14

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/dist/main.js CHANGED
@@ -1,3 +1,3 @@
1
1
  /*! For license information please see main.js.LICENSE.txt */
2
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["imio-sdk-lite"]=t():e["imio-sdk-lite"]=t()}(self,()=>(()=>{var e={19:function(e,t,r){var i,n,s,a,o,l,u,c,h;e.exports=(h=r(9021),r(3009),r(1025),s=(n=(i=h).lib).Base,a=n.WordArray,l=(o=i.algo).SHA256,u=o.HMAC,c=o.PBKDF2=s.extend({cfg:s.extend({keySize:4,hasher:l,iterations:25e4}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var r=this.cfg,i=u.create(r.hasher,e),n=a.create(),s=a.create([1]),o=n.words,l=s.words,c=r.keySize,h=r.iterations;o.length<c;){var d=i.update(t).finalize(s);i.reset();for(var p=d.words,f=p.length,g=d,m=1;m<h;m++){g=i.finalize(g),i.reset();for(var y=g.words,v=0;v<f;v++)p[v]^=y[v]}n.concat(d),l[0]++}return n.sigBytes=4*c,n}}),i.PBKDF2=function(e,t,r){return c.create(r).compute(e,t)},h.PBKDF2)},25:function(e,t,r){var i,n,s,a;e.exports=(a=r(9021),r(7165),n=(i=a).lib.CipherParams,s=i.enc.Hex,i.format.Hex={stringify:function(e){return e.ciphertext.toString(s)},parse:function(e){var t=s.parse(e);return n.create({ciphertext:t})}},a.format.Hex)},251:(e,t)=>{t.read=function(e,t,r,i,n){var s,a,o=8*n-i-1,l=(1<<o)-1,u=l>>1,c=-7,h=r?n-1:0,d=r?-1:1,p=e[t+h];for(h+=d,s=p&(1<<-c)-1,p>>=-c,c+=o;c>0;s=256*s+e[t+h],h+=d,c-=8);for(a=s&(1<<-c)-1,s>>=-c,c+=i;c>0;a=256*a+e[t+h],h+=d,c-=8);if(0===s)s=1-u;else{if(s===l)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,i),s-=u}return(p?-1:1)*a*Math.pow(2,s-i)},t.write=function(e,t,r,i,n,s){var a,o,l,u=8*s-n-1,c=(1<<u)-1,h=c>>1,d=23===n?Math.pow(2,-24)-Math.pow(2,-77):0,p=i?0:s-1,f=i?1:-1,g=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(o=isNaN(t)?1:0,a=c):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),(t+=a+h>=1?d/l:d*Math.pow(2,1-h))*l>=2&&(a++,l/=2),a+h>=c?(o=0,a=c):a+h>=1?(o=(t*l-1)*Math.pow(2,n),a+=h):(o=t*Math.pow(2,h-1)*Math.pow(2,n),a=0));n>=8;e[r+p]=255&o,p+=f,o/=256,n-=8);for(a=a<<n|o,u+=n;u>0;e[r+p]=255&a,p+=f,a/=256,u-=8);e[r+p-f]|=128*g}},288:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},477:()=>{},482:function(e,t,r){var i;e.exports=(i=r(9021),r(7165),i.pad.Iso97971={pad:function(e,t){e.concat(i.lib.WordArray.create([2147483648],1)),i.pad.ZeroPadding.pad(e,t)},unpad:function(e){i.pad.ZeroPadding.unpad(e),e.sigBytes--}},i.pad.Iso97971)},754:function(e,t,r){var i,n,s;e.exports=(i=r(9021),s=(n=i).lib.WordArray,n.enc.Base64={stringify:function(e){var t=e.words,r=e.sigBytes,i=this._map;e.clamp();for(var n=[],s=0;s<r;s+=3)for(var a=(t[s>>>2]>>>24-s%4*8&255)<<16|(t[s+1>>>2]>>>24-(s+1)%4*8&255)<<8|t[s+2>>>2]>>>24-(s+2)%4*8&255,o=0;o<4&&s+.75*o<r;o++)n.push(i.charAt(a>>>6*(3-o)&63));var l=i.charAt(64);if(l)for(;n.length%4;)n.push(l);return n.join("")},parse:function(e){var t=e.length,r=this._map,i=this._reverseMap;if(!i){i=this._reverseMap=[];for(var n=0;n<r.length;n++)i[r.charCodeAt(n)]=n}var a=r.charAt(64);if(a){var o=e.indexOf(a);-1!==o&&(t=o)}return function(e,t,r){for(var i=[],n=0,a=0;a<t;a++)if(a%4){var o=r[e.charCodeAt(a-1)]<<a%4*2|r[e.charCodeAt(a)]>>>6-a%4*2;i[n>>>2]|=o<<24-n%4*8,n++}return s.create(i,n)}(e,t,i)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},i.enc.Base64)},955:function(e,t,r){var i;e.exports=(i=r(9021),r(754),r(4636),r(9506),r(7165),function(){var e=i,t=e.lib.BlockCipher,r=e.algo,n=[],s=[],a=[],o=[],l=[],u=[],c=[],h=[],d=[],p=[];!function(){for(var e=[],t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;var r=0,i=0;for(t=0;t<256;t++){var f=i^i<<1^i<<2^i<<3^i<<4;f=f>>>8^255&f^99,n[r]=f,s[f]=r;var g=e[r],m=e[g],y=e[m],v=257*e[f]^16843008*f;a[r]=v<<24|v>>>8,o[r]=v<<16|v>>>16,l[r]=v<<8|v>>>24,u[r]=v,v=16843009*y^65537*m^257*g^16843008*r,c[f]=v<<24|v>>>8,h[f]=v<<16|v>>>16,d[f]=v<<8|v>>>24,p[f]=v,r?(r=g^e[e[e[y^g]]],i^=e[e[i]]):r=i=1}}();var f=[0,1,2,4,8,16,32,64,128,27,54],g=r.AES=t.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var e=this._keyPriorReset=this._key,t=e.words,r=e.sigBytes/4,i=4*((this._nRounds=r+6)+1),s=this._keySchedule=[],a=0;a<i;a++)a<r?s[a]=t[a]:(u=s[a-1],a%r?r>6&&a%r==4&&(u=n[u>>>24]<<24|n[u>>>16&255]<<16|n[u>>>8&255]<<8|n[255&u]):(u=n[(u=u<<8|u>>>24)>>>24]<<24|n[u>>>16&255]<<16|n[u>>>8&255]<<8|n[255&u],u^=f[a/r|0]<<24),s[a]=s[a-r]^u);for(var o=this._invKeySchedule=[],l=0;l<i;l++){if(a=i-l,l%4)var u=s[a];else u=s[a-4];o[l]=l<4||a<=4?u:c[n[u>>>24]]^h[n[u>>>16&255]]^d[n[u>>>8&255]]^p[n[255&u]]}}},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,a,o,l,u,n)},decryptBlock:function(e,t){var r=e[t+1];e[t+1]=e[t+3],e[t+3]=r,this._doCryptBlock(e,t,this._invKeySchedule,c,h,d,p,s),r=e[t+1],e[t+1]=e[t+3],e[t+3]=r},_doCryptBlock:function(e,t,r,i,n,s,a,o){for(var l=this._nRounds,u=e[t]^r[0],c=e[t+1]^r[1],h=e[t+2]^r[2],d=e[t+3]^r[3],p=4,f=1;f<l;f++){var g=i[u>>>24]^n[c>>>16&255]^s[h>>>8&255]^a[255&d]^r[p++],m=i[c>>>24]^n[h>>>16&255]^s[d>>>8&255]^a[255&u]^r[p++],y=i[h>>>24]^n[d>>>16&255]^s[u>>>8&255]^a[255&c]^r[p++],v=i[d>>>24]^n[u>>>16&255]^s[c>>>8&255]^a[255&h]^r[p++];u=g,c=m,h=y,d=v}g=(o[u>>>24]<<24|o[c>>>16&255]<<16|o[h>>>8&255]<<8|o[255&d])^r[p++],m=(o[c>>>24]<<24|o[h>>>16&255]<<16|o[d>>>8&255]<<8|o[255&u])^r[p++],y=(o[h>>>24]<<24|o[d>>>16&255]<<16|o[u>>>8&255]<<8|o[255&c])^r[p++],v=(o[d>>>24]<<24|o[u>>>16&255]<<16|o[c>>>8&255]<<8|o[255&h])^r[p++],e[t]=g,e[t+1]=m,e[t+2]=y,e[t+3]=v},keySize:8});e.AES=t._createHelper(g)}(),i.AES)},1025:function(e,t,r){var i,n,s;e.exports=(n=(i=r(9021)).lib.Base,s=i.enc.Utf8,void(i.algo.HMAC=n.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=s.parse(t));var r=e.blockSize,i=4*r;t.sigBytes>i&&(t=e.finalize(t)),t.clamp();for(var n=this._oKey=t.clone(),a=this._iKey=t.clone(),o=n.words,l=a.words,u=0;u<r;u++)o[u]^=1549556828,l[u]^=909522486;n.sigBytes=a.sigBytes=i,this.reset()},reset:function(){var e=this._hasher;e.reset(),e.update(this._iKey)},update:function(e){return this._hasher.update(e),this},finalize:function(e){var t=this._hasher,r=t.finalize(e);return t.reset(),t.finalize(this._oKey.clone().concat(r))}})))},1366:function(e,t,r){"use strict";var i=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],i=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.FrameStore=void 0;var n=r(7225),s=r(5974),a=function(){function e(){this.storedFrames=[],this._lastReceivedFramePosition=0,this._firstAvailableFramePosition=0,this._lastSentFramePosition=0}return Object.defineProperty(e.prototype,"lastReceivedFramePosition",{get:function(){return this._lastReceivedFramePosition},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"firstAvailableFramePosition",{get:function(){return this._firstAvailableFramePosition},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"lastSentFramePosition",{get:function(){return this._lastSentFramePosition},enumerable:!1,configurable:!0}),e.prototype.store=function(e){this._lastSentFramePosition+=(0,s.sizeOfFrame)(e),this.storedFrames.push(e)},e.prototype.record=function(e){this._lastReceivedFramePosition+=(0,s.sizeOfFrame)(e)},e.prototype.dropTo=function(e){for(var t=e-this._firstAvailableFramePosition;t>0&&this.storedFrames.length>0;){var r=this.storedFrames.shift();t-=(0,s.sizeOfFrame)(r)}if(0!==t)throw new n.RSocketError(n.ErrorCodes.CONNECTION_ERROR,"State inconsistency. Expected bytes to drop ".concat(e-this._firstAvailableFramePosition," but actual ").concat(t));this._firstAvailableFramePosition=e},e.prototype.drain=function(e){var t,r;try{for(var n=i(this.storedFrames),s=n.next();!s.done;s=n.next())e(s.value)}catch(e){t={error:e}}finally{try{s&&!s.done&&(r=n.return)&&r.call(n)}finally{if(t)throw t.error}}},e}();t.FrameStore=a},1380:function(e,t,r){var i;e.exports=(i=r(9021),r(3240),function(){var e=i,t=e.lib.Hasher,r=e.x64,n=r.Word,s=r.WordArray,a=e.algo;function o(){return n.create.apply(n,arguments)}var l=[o(1116352408,3609767458),o(1899447441,602891725),o(3049323471,3964484399),o(3921009573,2173295548),o(961987163,4081628472),o(1508970993,3053834265),o(2453635748,2937671579),o(2870763221,3664609560),o(3624381080,2734883394),o(310598401,1164996542),o(607225278,1323610764),o(1426881987,3590304994),o(1925078388,4068182383),o(2162078206,991336113),o(2614888103,633803317),o(3248222580,3479774868),o(3835390401,2666613458),o(4022224774,944711139),o(264347078,2341262773),o(604807628,2007800933),o(770255983,1495990901),o(1249150122,1856431235),o(1555081692,3175218132),o(1996064986,2198950837),o(2554220882,3999719339),o(2821834349,766784016),o(2952996808,2566594879),o(3210313671,3203337956),o(3336571891,1034457026),o(3584528711,2466948901),o(113926993,3758326383),o(338241895,168717936),o(666307205,1188179964),o(773529912,1546045734),o(1294757372,1522805485),o(1396182291,2643833823),o(1695183700,2343527390),o(1986661051,1014477480),o(2177026350,1206759142),o(2456956037,344077627),o(2730485921,1290863460),o(2820302411,3158454273),o(3259730800,3505952657),o(3345764771,106217008),o(3516065817,3606008344),o(3600352804,1432725776),o(4094571909,1467031594),o(275423344,851169720),o(430227734,3100823752),o(506948616,1363258195),o(659060556,3750685593),o(883997877,3785050280),o(958139571,3318307427),o(1322822218,3812723403),o(1537002063,2003034995),o(1747873779,3602036899),o(1955562222,1575990012),o(2024104815,1125592928),o(2227730452,2716904306),o(2361852424,442776044),o(2428436474,593698344),o(2756734187,3733110249),o(3204031479,2999351573),o(3329325298,3815920427),o(3391569614,3928383900),o(3515267271,566280711),o(3940187606,3454069534),o(4118630271,4000239992),o(116418474,1914138554),o(174292421,2731055270),o(289380356,3203993006),o(460393269,320620315),o(685471733,587496836),o(852142971,1086792851),o(1017036298,365543100),o(1126000580,2618297676),o(1288033470,3409855158),o(1501505948,4234509866),o(1607167915,987167468),o(1816402316,1246189591)],u=[];!function(){for(var e=0;e<80;e++)u[e]=o()}();var c=a.SHA512=t.extend({_doReset:function(){this._hash=new s.init([new n.init(1779033703,4089235720),new n.init(3144134277,2227873595),new n.init(1013904242,4271175723),new n.init(2773480762,1595750129),new n.init(1359893119,2917565137),new n.init(2600822924,725511199),new n.init(528734635,4215389547),new n.init(1541459225,327033209)])},_doProcessBlock:function(e,t){for(var r=this._hash.words,i=r[0],n=r[1],s=r[2],a=r[3],o=r[4],c=r[5],h=r[6],d=r[7],p=i.high,f=i.low,g=n.high,m=n.low,y=s.high,v=s.low,b=a.high,I=a.low,w=o.high,E=o.low,k=c.high,S=c.low,M=h.high,F=h.low,T=d.high,R=d.low,A=p,_=f,O=g,C=m,x=y,N=v,D=b,P=I,L=w,B=E,j=k,U=S,W=M,z=F,H=T,K=R,G=0;G<80;G++){var q,V,Y=u[G];if(G<16)V=Y.high=0|e[t+2*G],q=Y.low=0|e[t+2*G+1];else{var X=u[G-15],J=X.high,Z=X.low,Q=(J>>>1|Z<<31)^(J>>>8|Z<<24)^J>>>7,$=(Z>>>1|J<<31)^(Z>>>8|J<<24)^(Z>>>7|J<<25),ee=u[G-2],te=ee.high,re=ee.low,ie=(te>>>19|re<<13)^(te<<3|re>>>29)^te>>>6,ne=(re>>>19|te<<13)^(re<<3|te>>>29)^(re>>>6|te<<26),se=u[G-7],ae=se.high,oe=se.low,le=u[G-16],ue=le.high,ce=le.low;V=(V=(V=Q+ae+((q=$+oe)>>>0<$>>>0?1:0))+ie+((q+=ne)>>>0<ne>>>0?1:0))+ue+((q+=ce)>>>0<ce>>>0?1:0),Y.high=V,Y.low=q}var he,de=L&j^~L&W,pe=B&U^~B&z,fe=A&O^A&x^O&x,ge=_&C^_&N^C&N,me=(A>>>28|_<<4)^(A<<30|_>>>2)^(A<<25|_>>>7),ye=(_>>>28|A<<4)^(_<<30|A>>>2)^(_<<25|A>>>7),ve=(L>>>14|B<<18)^(L>>>18|B<<14)^(L<<23|B>>>9),be=(B>>>14|L<<18)^(B>>>18|L<<14)^(B<<23|L>>>9),Ie=l[G],we=Ie.high,Ee=Ie.low,ke=H+ve+((he=K+be)>>>0<K>>>0?1:0),Se=ye+ge;H=W,K=z,W=j,z=U,j=L,U=B,L=D+(ke=(ke=(ke=ke+de+((he+=pe)>>>0<pe>>>0?1:0))+we+((he+=Ee)>>>0<Ee>>>0?1:0))+V+((he+=q)>>>0<q>>>0?1:0))+((B=P+he|0)>>>0<P>>>0?1:0)|0,D=x,P=N,x=O,N=C,O=A,C=_,A=ke+(me+fe+(Se>>>0<ye>>>0?1:0))+((_=he+Se|0)>>>0<he>>>0?1:0)|0}f=i.low=f+_,i.high=p+A+(f>>>0<_>>>0?1:0),m=n.low=m+C,n.high=g+O+(m>>>0<C>>>0?1:0),v=s.low=v+N,s.high=y+x+(v>>>0<N>>>0?1:0),I=a.low=I+P,a.high=b+D+(I>>>0<P>>>0?1:0),E=o.low=E+B,o.high=w+L+(E>>>0<B>>>0?1:0),S=c.low=S+U,c.high=k+j+(S>>>0<U>>>0?1:0),F=h.low=F+z,h.high=M+W+(F>>>0<z>>>0?1:0),R=d.low=R+K,d.high=T+H+(R>>>0<K>>>0?1:0)},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,i=8*e.sigBytes;return t[i>>>5]|=128<<24-i%32,t[30+(i+128>>>10<<5)]=Math.floor(r/4294967296),t[31+(i+128>>>10<<5)]=r,e.sigBytes=4*t.length,this._process(),this._hash.toX32()},clone:function(){var e=t.clone.call(this);return e._hash=this._hash.clone(),e},blockSize:32});e.SHA512=t._createHelper(c),e.HmacSHA512=t._createHmacHelper(c)}(),i.SHA512)},1396:function(e,t,r){var i;e.exports=(i=r(9021),r(3240),r(6440),r(5503),r(754),r(4725),r(4636),r(5471),r(3009),r(6308),r(1380),r(9557),r(5953),r(8056),r(1025),r(19),r(9506),r(7165),r(2169),r(6939),r(6372),r(3797),r(8454),r(2073),r(4905),r(482),r(2155),r(8124),r(25),r(955),r(7628),r(7193),r(6298),r(2696),r(3128),i)},2073:function(e,t,r){var i;e.exports=(i=r(9021),r(7165),i.pad.AnsiX923={pad:function(e,t){var r=e.sigBytes,i=4*t,n=i-r%i,s=r+n-1;e.clamp(),e.words[s>>>2]|=n<<24-s%4*8,e.sigBytes+=n},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},i.pad.Ansix923)},2147:function(e,t,r){"use strict";var i=this&&this.__awaiter||function(e,t,r,i){return new(r||(r=Promise))(function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(a,o)}l((i=i.apply(e,t||[])).next())})},n=this&&this.__generator||function(e,t){var r,i,n,s,a={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return s={next:o(0),throw:o(1),return:o(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function o(s){return function(o){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,i&&(n=2&s[0]?i.return:s[0]?i.throw||((n=i.return)&&n.call(i),0):i.next)&&!(n=n.call(i,s[1])).done)return n;switch(i=0,n&&(s=[2&s[0],n.value]),s[0]){case 0:case 1:n=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,i=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((n=(n=a.trys).length>0&&n[n.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!n||s[1]>n[0]&&s[1]<n[3])){a.label=s[1];break}if(6===s[0]&&a.label<n[1]){a.label=n[1],n=s;break}if(n&&a.label<n[2]){a.label=n[2],a.ops.push(s);break}n[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],i=0}finally{r=n=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,o])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.RSocketConnector=void 0;var s=r(7698),a=r(2799),o=r(6923),l=r(1366),u=function(){function e(e){this.config=e}return e.prototype.connect=function(){var e,t,r,u,c,h,d,p,f,g,m,y,v,b,I,w,E,k,S,M;return i(this,void 0,void 0,function(){var F,T,R,A,_,O,C,x,N,D=this;return n(this,function(P){switch(P.label){case 0:return F=this.config,T={type:a.FrameTypes.SETUP,dataMimeType:null!==(t=null===(e=F.setup)||void 0===e?void 0:e.dataMimeType)&&void 0!==t?t:"application/octet-stream",metadataMimeType:null!==(u=null===(r=F.setup)||void 0===r?void 0:r.metadataMimeType)&&void 0!==u?u:"application/octet-stream",keepAlive:null!==(h=null===(c=F.setup)||void 0===c?void 0:c.keepAlive)&&void 0!==h?h:6e4,lifetime:null!==(p=null===(d=F.setup)||void 0===d?void 0:d.lifetime)&&void 0!==p?p:3e5,metadata:null===(g=null===(f=F.setup)||void 0===f?void 0:f.payload)||void 0===g?void 0:g.metadata,data:null===(y=null===(m=F.setup)||void 0===m?void 0:m.payload)||void 0===y?void 0:y.data,resumeToken:null!==(b=null===(v=F.resume)||void 0===v?void 0:v.tokenGenerator())&&void 0!==b?b:null,streamId:0,majorVersion:1,minorVersion:0,flags:((null===(w=null===(I=F.setup)||void 0===I?void 0:I.payload)||void 0===w?void 0:w.metadata)?a.Flags.METADATA:a.Flags.NONE)|(F.lease?a.Flags.LEASE:a.Flags.NONE)|(F.resume?a.Flags.RESUME_ENABLE:a.Flags.NONE)},[4,F.transport.connect(function(e){return F.resume?new s.ResumableClientServerInputMultiplexerDemultiplexer(s.StreamIdGenerator.create(-1),e,e,new l.FrameStore,T.resumeToken.toString(),function(e,t){return i(D,void 0,void 0,function(){var r,i,o;return n(this,function(n){switch(n.label){case 0:return r=function(r){return r.send({type:a.FrameTypes.RESUME,streamId:0,flags:a.Flags.NONE,clientPosition:t.firstAvailableFramePosition,serverPosition:t.lastReceivedFramePosition,majorVersion:T.minorVersion,minorVersion:T.majorVersion,resumeToken:T.resumeToken}),new s.ResumeOkAwaitingResumableClientServerInputMultiplexerDemultiplexer(r,r,e)},i=-1,[4,(o=function(){return i++,F.resume.reconnectFunction(i).then(function(){return F.transport.connect(r).catch(o)})})()];case 1:return n.sent(),[2]}})})}):new s.ClientServerInputMultiplexerDemultiplexer(s.StreamIdGenerator.create(-1),e,e)})];case 1:return R=P.sent(),A=new o.KeepAliveSender(R.multiplexerDemultiplexer.connectionOutbound,T.keepAlive),_=new o.KeepAliveHandler(R,T.lifetime),O=F.lease?new o.LeaseHandler(null!==(E=F.lease.maxPendingRequests)&&void 0!==E?E:256,R.multiplexerDemultiplexer):void 0,C=null!==(k=F.responder)&&void 0!==k?k:{},x=new o.DefaultConnectionFrameHandler(R,_,A,O,C),N=new o.DefaultStreamRequestHandler(C,0),R.onClose(function(e){A.close(),_.close(),x.close(e)}),R.multiplexerDemultiplexer.connectionInbound(x),R.multiplexerDemultiplexer.handleRequestStream(N),R.multiplexerDemultiplexer.connectionOutbound.send(T),_.start(),A.start(),[2,new o.RSocketRequester(R,null!==(M=null===(S=F.fragmentation)||void 0===S?void 0:S.maxOutboundFragmentSize)&&void 0!==M?M:0,O)]}})})},e}();t.RSocketConnector=u},2155:function(e,t,r){var i;e.exports=(i=r(9021),r(7165),i.pad.ZeroPadding={pad:function(e,t){var r=4*t;e.clamp(),e.sigBytes+=r-(e.sigBytes%r||r)},unpad:function(e){var t=e.words,r=e.sigBytes-1;for(r=e.sigBytes-1;r>=0;r--)if(t[r>>>2]>>>24-r%4*8&255){e.sigBytes=r+1;break}}},i.pad.ZeroPadding)},2169:function(e,t,r){var i;e.exports=(i=r(9021),r(7165),i.mode.CFB=function(){var e=i.lib.BlockCipherMode.extend();function t(e,t,r,i){var n,s=this._iv;s?(n=s.slice(0),this._iv=void 0):n=this._prevBlock,i.encryptBlock(n,0);for(var a=0;a<r;a++)e[t+a]^=n[a]}return e.Encryptor=e.extend({processBlock:function(e,r){var i=this._cipher,n=i.blockSize;t.call(this,e,r,n,i),this._prevBlock=e.slice(r,r+n)}}),e.Decryptor=e.extend({processBlock:function(e,r){var i=this._cipher,n=i.blockSize,s=e.slice(r,r+n);t.call(this,e,r,n,i),this._prevBlock=s}}),e}(),i.mode.CFB)},2320:function(e,t,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){void 0===i&&(i=r),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,i){void 0===i&&(i=r),e[i]=t[r]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&i(t,e,r);return n(t,e),t},a=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],i=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.RequestFnfResponderStream=t.RequestFnFRequesterStream=void 0;var o=r(8766),l=r(4438),u=r(2799),c=s(r(7076)),h=function(){function e(e,t,r,i){this.payload=e,this.receiver=t,this.fragmentSize=r,this.leaseManager=i,this.streamType=u.FrameTypes.REQUEST_FNF}return e.prototype.handleReady=function(e,t){var r,i;if(this.done)return!1;if(this.streamId=e,(0,l.isFragmentable)(this.payload,this.fragmentSize,u.FrameTypes.REQUEST_FNF))try{for(var n=a((0,l.fragment)(e,this.payload,this.fragmentSize,u.FrameTypes.REQUEST_FNF)),s=n.next();!s.done;s=n.next()){var o=s.value;t.send(o)}}catch(e){r={error:e}}finally{try{s&&!s.done&&(i=n.return)&&i.call(n)}finally{if(r)throw r.error}}else t.send({type:u.FrameTypes.REQUEST_FNF,data:this.payload.data,metadata:this.payload.metadata,flags:this.payload.metadata?u.Flags.METADATA:0,streamId:e});return this.done=!0,this.receiver.onComplete(),!0},e.prototype.handleReject=function(e){this.done||(this.done=!0,this.receiver.onError(e))},e.prototype.cancel=function(){var e;this.done||(this.done=!0,null===(e=this.leaseManager)||void 0===e||e.cancelRequest(this))},e.prototype.handle=function(e){e.type!=u.FrameTypes.ERROR?this.close(new o.RSocketError(o.ErrorCodes.CANCELED,"Received invalid frame")):this.close(new o.RSocketError(e.code,e.message))},e.prototype.close=function(e){this.done?console.warn("Trying to close for the second time. ".concat(e?"Dropping error [".concat(e,"]."):"")):e?this.receiver.onError(e):this.receiver.onComplete()},e}();t.RequestFnFRequesterStream=h;var d=function(){function e(e,t,r,i){if(this.streamId=e,this.stream=t,this.handler=r,this.streamType=u.FrameTypes.REQUEST_FNF,u.Flags.hasFollows(i.flags))return c.add(this,i.data,i.metadata),void t.connect(this);var n={data:i.data,metadata:i.metadata};try{this.cancellable=r(n,this)}catch(e){}}return e.prototype.handle=function(e){var t;if(e.type==u.FrameTypes.PAYLOAD){if(!u.Flags.hasFollows(e.flags)){this.stream.disconnect(this);var r=c.reassemble(this,e.data,e.metadata);try{this.cancellable=this.handler(r,this)}catch(e){}return}if(c.add(this,e.data,e.metadata))return;t="Unexpected fragment size"}else t="Unexpected frame type [".concat(e.type,"]");this.done=!0,e.type!=u.FrameTypes.CANCEL&&e.type!=u.FrameTypes.ERROR&&this.stream.send({type:u.FrameTypes.ERROR,streamId:this.streamId,flags:u.Flags.NONE,code:o.ErrorCodes.CANCELED,message:t}),this.stream.disconnect(this),c.cancel(this)},e.prototype.close=function(e){var t;this.done?console.warn("Trying to close for the second time. ".concat(e?"Dropping error [".concat(e,"]."):"")):(this.done=!0,c.cancel(this),null===(t=this.cancellable)||void 0===t||t.cancel())},e.prototype.onError=function(e){},e.prototype.onComplete=function(){},e}();t.RequestFnfResponderStream=d},2632:function(e,t){"use strict";var r=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],i=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.WellKnownAuthType=void 0;var i=function(){function e(e,t){this.string=e,this.identifier=t}return e.fromIdentifier=function(t){return t<0||t>127?e.UNPARSEABLE_AUTH_TYPE:e.TYPES_BY_AUTH_ID[t]},e.fromString=function(t){if(!t)throw new Error("type must be non-null");return t===e.UNKNOWN_RESERVED_AUTH_TYPE.string?e.UNPARSEABLE_AUTH_TYPE:e.TYPES_BY_AUTH_STRING.get(t)||e.UNPARSEABLE_AUTH_TYPE},e.prototype.toString=function(){return this.string},e}();t.WellKnownAuthType=i,function(e){var t,i;e.UNPARSEABLE_AUTH_TYPE=new e("UNPARSEABLE_AUTH_TYPE_DO_NOT_USE",-2),e.UNKNOWN_RESERVED_AUTH_TYPE=new e("UNKNOWN_YET_RESERVED_DO_NOT_USE",-1),e.SIMPLE=new e("simple",0),e.BEARER=new e("bearer",1),e.TYPES_BY_AUTH_ID=new Array(128),e.TYPES_BY_AUTH_STRING=new Map;var n=[e.UNPARSEABLE_AUTH_TYPE,e.UNKNOWN_RESERVED_AUTH_TYPE,e.SIMPLE,e.BEARER];e.TYPES_BY_AUTH_ID.fill(e.UNKNOWN_RESERVED_AUTH_TYPE);try{for(var s=r(n),a=s.next();!a.done;a=s.next()){var o=a.value;o.identifier>=0&&(e.TYPES_BY_AUTH_ID[o.identifier]=o,e.TYPES_BY_AUTH_STRING.set(o.string,o))}}catch(e){t={error:e}}finally{try{a&&!a.done&&(i=s.return)&&i.call(s)}finally{if(t)throw t.error}}Object.seal&&Object.seal(e.TYPES_BY_AUTH_ID)}(i=t.WellKnownAuthType||(t.WellKnownAuthType={})),t.WellKnownAuthType=i},2696:function(e,t,r){var i;e.exports=(i=r(9021),r(754),r(4636),r(9506),r(7165),function(){var e=i,t=e.lib.StreamCipher,r=e.algo,n=[],s=[],a=[],o=r.RabbitLegacy=t.extend({_doReset:function(){var e=this._key.words,t=this.cfg.iv,r=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],i=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];this._b=0;for(var n=0;n<4;n++)l.call(this);for(n=0;n<8;n++)i[n]^=r[n+4&7];if(t){var s=t.words,a=s[0],o=s[1],u=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),c=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),h=u>>>16|4294901760&c,d=c<<16|65535&u;for(i[0]^=u,i[1]^=h,i[2]^=c,i[3]^=d,i[4]^=u,i[5]^=h,i[6]^=c,i[7]^=d,n=0;n<4;n++)l.call(this)}},_doProcessBlock:function(e,t){var r=this._X;l.call(this),n[0]=r[0]^r[5]>>>16^r[3]<<16,n[1]=r[2]^r[7]>>>16^r[5]<<16,n[2]=r[4]^r[1]>>>16^r[7]<<16,n[3]=r[6]^r[3]>>>16^r[1]<<16;for(var i=0;i<4;i++)n[i]=16711935&(n[i]<<8|n[i]>>>24)|4278255360&(n[i]<<24|n[i]>>>8),e[t+i]^=n[i]},blockSize:4,ivSize:2});function l(){for(var e=this._X,t=this._C,r=0;r<8;r++)s[r]=t[r];for(t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0<s[0]>>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0<s[1]>>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0<s[2]>>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0<s[3]>>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0<s[4]>>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0<s[5]>>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0<s[6]>>>0?1:0)|0,this._b=t[7]>>>0<s[7]>>>0?1:0,r=0;r<8;r++){var i=e[r]+t[r],n=65535&i,o=i>>>16,l=((n*n>>>17)+n*o>>>15)+o*o,u=((4294901760&i)*i|0)+((65535&i)*i|0);a[r]=l^u}e[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,e[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,e[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,e[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,e[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,e[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,e[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,e[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}e.RabbitLegacy=t._createHelper(o)}(),i.RabbitLegacy)},2777:function(e,t,r){"use strict";var i=this&&this.__awaiter||function(e,t,r,i){return new(r||(r=Promise))(function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(a,o)}l((i=i.apply(e,t||[])).next())})},n=this&&this.__generator||function(e,t){var r,i,n,s,a={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return s={next:o(0),throw:o(1),return:o(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function o(s){return function(o){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,i&&(n=2&s[0]?i.return:s[0]?i.throw||((n=i.return)&&n.call(i),0):i.next)&&!(n=n.call(i,s[1])).done)return n;switch(i=0,n&&(s=[2&s[0],n.value]),s[0]){case 0:case 1:n=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,i=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((n=(n=a.trys).length>0&&n[n.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!n||s[1]>n[0]&&s[1]<n[3])){a.label=s[1];break}if(6===s[0]&&a.label<n[1]){a.label=n[1],n=s;break}if(n&&a.label<n[2]){a.label=n[2],a.ops.push(s);break}n[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],i=0}finally{r=n=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,o])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.RSocketServer=void 0;var s=r(7698),a=r(8766),o=r(2799),l=r(6923),u=r(1366),c=function(){function e(e){var t,r;this.acceptor=e.acceptor,this.transport=e.transport,this.lease=e.lease,this.serverSideKeepAlive=e.serverSideKeepAlive,this.sessionStore=e.resume?{}:void 0,this.sessionTimeout=null!==(r=null===(t=e.resume)||void 0===t?void 0:t.sessionTimeout)&&void 0!==r?r:void 0}return e.prototype.bind=function(){return i(this,void 0,void 0,function(){var e=this;return n(this,function(t){switch(t.label){case 0:return[4,this.transport.bind(function(t,r){return i(e,void 0,void 0,function(){var e,i,s,u,c,h,d,p,f,g,m,y,v;return n(this,function(n){switch(n.label){case 0:switch(t.type){case o.FrameTypes.SETUP:return[3,1];case o.FrameTypes.RESUME:return[3,5]}return[3,6];case 1:return n.trys.push([1,3,,4]),this.lease&&!o.Flags.hasLease(t.flags)?(e=new a.RSocketError(a.ErrorCodes.REJECTED_SETUP,"Lease has to be enabled"),r.multiplexerDemultiplexer.connectionOutbound.send({type:o.FrameTypes.ERROR,streamId:0,flags:o.Flags.NONE,code:e.code,message:e.message}),r.close(e),[2]):o.Flags.hasLease(t.flags)&&!this.lease?(e=new a.RSocketError(a.ErrorCodes.REJECTED_SETUP,"Lease has to be disabled"),r.multiplexerDemultiplexer.connectionOutbound.send({type:o.FrameTypes.ERROR,streamId:0,flags:o.Flags.NONE,code:e.code,message:e.message}),r.close(e),[2]):(i=o.Flags.hasLease(t.flags)?new l.LeaseHandler(null!==(g=this.lease.maxPendingRequests)&&void 0!==g?g:256,r.multiplexerDemultiplexer):void 0,s=new l.RSocketRequester(r,null!==(y=null===(m=this.fragmentation)||void 0===m?void 0:m.maxOutboundFragmentSize)&&void 0!==y?y:0,i),[4,this.acceptor.accept({data:t.data,dataMimeType:t.dataMimeType,metadata:t.metadata,metadataMimeType:t.metadataMimeType,flags:t.flags,keepAliveMaxLifetime:t.lifetime,keepAliveInterval:t.keepAlive,resumeToken:t.resumeToken},s)]);case 2:return u=n.sent(),c=new l.KeepAliveHandler(r,t.lifetime),h=this.serverSideKeepAlive?new l.KeepAliveSender(r.multiplexerDemultiplexer.connectionOutbound,t.keepAlive):void 0,d=new l.DefaultConnectionFrameHandler(r,c,h,i,u),p=new l.DefaultStreamRequestHandler(u,0),r.onClose(function(e){null==h||h.close(),c.close(),d.close(e)}),r.multiplexerDemultiplexer.connectionInbound(d),r.multiplexerDemultiplexer.handleRequestStream(p),c.start(),null==h||h.start(),[3,4];case 3:return f=n.sent(),r.multiplexerDemultiplexer.connectionOutbound.send({type:o.FrameTypes.ERROR,streamId:0,code:a.ErrorCodes.REJECTED_SETUP,message:null!==(v=f.message)&&void 0!==v?v:"",flags:o.Flags.NONE}),r.close(f instanceof a.RSocketError?f:new a.RSocketError(a.ErrorCodes.REJECTED_SETUP,f.message)),[3,4];case 4:case 5:return[2];case 6:r.multiplexerDemultiplexer.connectionOutbound.send({type:o.FrameTypes.ERROR,streamId:0,code:a.ErrorCodes.UNSUPPORTED_SETUP,message:"Unsupported setup",flags:o.Flags.NONE}),r.close(new a.RSocketError(a.ErrorCodes.UNSUPPORTED_SETUP)),n.label=7;case 7:return[2]}})})},function(t,r){if(t.type===o.FrameTypes.RESUME){if(e.sessionStore){var i=e.sessionStore[t.resumeToken.toString()];return i?(i.resume(t,r,r),i):(r.send({type:o.FrameTypes.ERROR,streamId:0,code:a.ErrorCodes.REJECTED_RESUME,message:"No session found for the given resume token",flags:o.Flags.NONE}),void r.close())}return r.send({type:o.FrameTypes.ERROR,streamId:0,code:a.ErrorCodes.REJECTED_RESUME,message:"Resume is not enabled",flags:o.Flags.NONE}),void r.close()}if(t.type===o.FrameTypes.SETUP&&o.Flags.hasResume(t.flags)){if(!e.sessionStore){var n=new a.RSocketError(a.ErrorCodes.REJECTED_SETUP,"No resume support");return r.send({type:o.FrameTypes.ERROR,streamId:0,flags:o.Flags.NONE,code:n.code,message:n.message}),void r.close(n)}var l=new s.ResumableClientServerInputMultiplexerDemultiplexer(s.StreamIdGenerator.create(0),r,r,new u.FrameStore,t.resumeToken.toString(),e.sessionStore,e.sessionTimeout);return e.sessionStore[t.resumeToken.toString()]=l,l}return new s.ClientServerInputMultiplexerDemultiplexer(s.StreamIdGenerator.create(0),r,r)})];case 1:return[2,t.sent()]}})})},e}();t.RSocketServer=c},2799:(e,t)=>{"use strict";var r,i,n,s;Object.defineProperty(t,"__esModule",{value:!0}),t.Frame=t.Lengths=t.Flags=t.FrameTypes=void 0,function(e){e[e.RESERVED=0]="RESERVED",e[e.SETUP=1]="SETUP",e[e.LEASE=2]="LEASE",e[e.KEEPALIVE=3]="KEEPALIVE",e[e.REQUEST_RESPONSE=4]="REQUEST_RESPONSE",e[e.REQUEST_FNF=5]="REQUEST_FNF",e[e.REQUEST_STREAM=6]="REQUEST_STREAM",e[e.REQUEST_CHANNEL=7]="REQUEST_CHANNEL",e[e.REQUEST_N=8]="REQUEST_N",e[e.CANCEL=9]="CANCEL",e[e.PAYLOAD=10]="PAYLOAD",e[e.ERROR=11]="ERROR",e[e.METADATA_PUSH=12]="METADATA_PUSH",e[e.RESUME=13]="RESUME",e[e.RESUME_OK=14]="RESUME_OK",e[e.EXT=63]="EXT"}(r=t.FrameTypes||(t.FrameTypes={})),(s=t.Flags||(t.Flags={}))[s.NONE=0]="NONE",s[s.COMPLETE=64]="COMPLETE",s[s.FOLLOWS=128]="FOLLOWS",s[s.IGNORE=512]="IGNORE",s[s.LEASE=64]="LEASE",s[s.METADATA=256]="METADATA",s[s.NEXT=32]="NEXT",s[s.RESPOND=128]="RESPOND",s[s.RESUME_ENABLE=128]="RESUME_ENABLE",function(e){e.hasMetadata=function(t){return(t&e.METADATA)===e.METADATA},e.hasComplete=function(t){return(t&e.COMPLETE)===e.COMPLETE},e.hasNext=function(t){return(t&e.NEXT)===e.NEXT},e.hasFollows=function(t){return(t&e.FOLLOWS)===e.FOLLOWS},e.hasIgnore=function(t){return(t&e.IGNORE)===e.IGNORE},e.hasRespond=function(t){return(t&e.RESPOND)===e.RESPOND},e.hasLease=function(t){return(t&e.LEASE)===e.LEASE},e.hasResume=function(t){return(t&e.RESUME_ENABLE)===e.RESUME_ENABLE}}(t.Flags||(t.Flags={})),(n=t.Lengths||(t.Lengths={}))[n.FRAME=3]="FRAME",n[n.HEADER=6]="HEADER",n[n.METADATA=3]="METADATA",n[n.REQUEST=3]="REQUEST",(i=t.Frame||(t.Frame={})).isConnection=function(e){return 0===e.streamId},i.isRequest=function(e){return r.REQUEST_RESPONSE<=e.type&&e.type<=r.REQUEST_CHANNEL}},3009:function(e,t,r){var i;e.exports=(i=r(9021),function(e){var t=i,r=t.lib,n=r.WordArray,s=r.Hasher,a=t.algo,o=[],l=[];!function(){function t(t){for(var r=e.sqrt(t),i=2;i<=r;i++)if(!(t%i))return!1;return!0}function r(e){return 4294967296*(e-(0|e))|0}for(var i=2,n=0;n<64;)t(i)&&(n<8&&(o[n]=r(e.pow(i,.5))),l[n]=r(e.pow(i,1/3)),n++),i++}();var u=[],c=a.SHA256=s.extend({_doReset:function(){this._hash=new n.init(o.slice(0))},_doProcessBlock:function(e,t){for(var r=this._hash.words,i=r[0],n=r[1],s=r[2],a=r[3],o=r[4],c=r[5],h=r[6],d=r[7],p=0;p<64;p++){if(p<16)u[p]=0|e[t+p];else{var f=u[p-15],g=(f<<25|f>>>7)^(f<<14|f>>>18)^f>>>3,m=u[p-2],y=(m<<15|m>>>17)^(m<<13|m>>>19)^m>>>10;u[p]=g+u[p-7]+y+u[p-16]}var v=i&n^i&s^n&s,b=(i<<30|i>>>2)^(i<<19|i>>>13)^(i<<10|i>>>22),I=d+((o<<26|o>>>6)^(o<<21|o>>>11)^(o<<7|o>>>25))+(o&c^~o&h)+l[p]+u[p];d=h,h=c,c=o,o=a+I|0,a=s,s=n,n=i,i=I+(b+v)|0}r[0]=r[0]+i|0,r[1]=r[1]+n|0,r[2]=r[2]+s|0,r[3]=r[3]+a|0,r[4]=r[4]+o|0,r[5]=r[5]+c|0,r[6]=r[6]+h|0,r[7]=r[7]+d|0},_doFinalize:function(){var t=this._data,r=t.words,i=8*this._nDataBytes,n=8*t.sigBytes;return r[n>>>5]|=128<<24-n%32,r[14+(n+64>>>9<<4)]=e.floor(i/4294967296),r[15+(n+64>>>9<<4)]=i,t.sigBytes=4*r.length,this._process(),this._hash},clone:function(){var e=s.clone.call(this);return e._hash=this._hash.clone(),e}});t.SHA256=s._createHelper(c),t.HmacSHA256=s._createHmacHelper(c)}(Math),i.SHA256)},3034:function(e,t){"use strict";var r=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],i=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.WellKnownMimeType=void 0;var i=function(){function e(e,t){this.string=e,this.identifier=t}return e.fromIdentifier=function(t){return t<0||t>127?e.UNPARSEABLE_MIME_TYPE:e.TYPES_BY_MIME_ID[t]},e.fromString=function(t){if(!t)throw new Error("type must be non-null");return t===e.UNKNOWN_RESERVED_MIME_TYPE.string?e.UNPARSEABLE_MIME_TYPE:e.TYPES_BY_MIME_STRING.get(t)||e.UNPARSEABLE_MIME_TYPE},e.prototype.toString=function(){return this.string},e}();t.WellKnownMimeType=i,function(e){var t,i;e.UNPARSEABLE_MIME_TYPE=new e("UNPARSEABLE_MIME_TYPE_DO_NOT_USE",-2),e.UNKNOWN_RESERVED_MIME_TYPE=new e("UNKNOWN_YET_RESERVED_DO_NOT_USE",-1),e.APPLICATION_AVRO=new e("application/avro",0),e.APPLICATION_CBOR=new e("application/cbor",1),e.APPLICATION_GRAPHQL=new e("application/graphql",2),e.APPLICATION_GZIP=new e("application/gzip",3),e.APPLICATION_JAVASCRIPT=new e("application/javascript",4),e.APPLICATION_JSON=new e("application/json",5),e.APPLICATION_OCTET_STREAM=new e("application/octet-stream",6),e.APPLICATION_PDF=new e("application/pdf",7),e.APPLICATION_THRIFT=new e("application/vnd.apache.thrift.binary",8),e.APPLICATION_PROTOBUF=new e("application/vnd.google.protobuf",9),e.APPLICATION_XML=new e("application/xml",10),e.APPLICATION_ZIP=new e("application/zip",11),e.AUDIO_AAC=new e("audio/aac",12),e.AUDIO_MP3=new e("audio/mp3",13),e.AUDIO_MP4=new e("audio/mp4",14),e.AUDIO_MPEG3=new e("audio/mpeg3",15),e.AUDIO_MPEG=new e("audio/mpeg",16),e.AUDIO_OGG=new e("audio/ogg",17),e.AUDIO_OPUS=new e("audio/opus",18),e.AUDIO_VORBIS=new e("audio/vorbis",19),e.IMAGE_BMP=new e("image/bmp",20),e.IMAGE_GIG=new e("image/gif",21),e.IMAGE_HEIC_SEQUENCE=new e("image/heic-sequence",22),e.IMAGE_HEIC=new e("image/heic",23),e.IMAGE_HEIF_SEQUENCE=new e("image/heif-sequence",24),e.IMAGE_HEIF=new e("image/heif",25),e.IMAGE_JPEG=new e("image/jpeg",26),e.IMAGE_PNG=new e("image/png",27),e.IMAGE_TIFF=new e("image/tiff",28),e.MULTIPART_MIXED=new e("multipart/mixed",29),e.TEXT_CSS=new e("text/css",30),e.TEXT_CSV=new e("text/csv",31),e.TEXT_HTML=new e("text/html",32),e.TEXT_PLAIN=new e("text/plain",33),e.TEXT_XML=new e("text/xml",34),e.VIDEO_H264=new e("video/H264",35),e.VIDEO_H265=new e("video/H265",36),e.VIDEO_VP8=new e("video/VP8",37),e.APPLICATION_HESSIAN=new e("application/x-hessian",38),e.APPLICATION_JAVA_OBJECT=new e("application/x-java-object",39),e.APPLICATION_CLOUDEVENTS_JSON=new e("application/cloudevents+json",40),e.MESSAGE_RSOCKET_MIMETYPE=new e("message/x.rsocket.mime-type.v0",122),e.MESSAGE_RSOCKET_ACCEPT_MIMETYPES=new e("message/x.rsocket.accept-mime-types.v0",123),e.MESSAGE_RSOCKET_AUTHENTICATION=new e("message/x.rsocket.authentication.v0",124),e.MESSAGE_RSOCKET_TRACING_ZIPKIN=new e("message/x.rsocket.tracing-zipkin.v0",125),e.MESSAGE_RSOCKET_ROUTING=new e("message/x.rsocket.routing.v0",126),e.MESSAGE_RSOCKET_COMPOSITE_METADATA=new e("message/x.rsocket.composite-metadata.v0",127),e.TYPES_BY_MIME_ID=new Array(128),e.TYPES_BY_MIME_STRING=new Map;var n=[e.UNPARSEABLE_MIME_TYPE,e.UNKNOWN_RESERVED_MIME_TYPE,e.APPLICATION_AVRO,e.APPLICATION_CBOR,e.APPLICATION_GRAPHQL,e.APPLICATION_GZIP,e.APPLICATION_JAVASCRIPT,e.APPLICATION_JSON,e.APPLICATION_OCTET_STREAM,e.APPLICATION_PDF,e.APPLICATION_THRIFT,e.APPLICATION_PROTOBUF,e.APPLICATION_XML,e.APPLICATION_ZIP,e.AUDIO_AAC,e.AUDIO_MP3,e.AUDIO_MP4,e.AUDIO_MPEG3,e.AUDIO_MPEG,e.AUDIO_OGG,e.AUDIO_OPUS,e.AUDIO_VORBIS,e.IMAGE_BMP,e.IMAGE_GIG,e.IMAGE_HEIC_SEQUENCE,e.IMAGE_HEIC,e.IMAGE_HEIF_SEQUENCE,e.IMAGE_HEIF,e.IMAGE_JPEG,e.IMAGE_PNG,e.IMAGE_TIFF,e.MULTIPART_MIXED,e.TEXT_CSS,e.TEXT_CSV,e.TEXT_HTML,e.TEXT_PLAIN,e.TEXT_XML,e.VIDEO_H264,e.VIDEO_H265,e.VIDEO_VP8,e.APPLICATION_HESSIAN,e.APPLICATION_JAVA_OBJECT,e.APPLICATION_CLOUDEVENTS_JSON,e.MESSAGE_RSOCKET_MIMETYPE,e.MESSAGE_RSOCKET_ACCEPT_MIMETYPES,e.MESSAGE_RSOCKET_AUTHENTICATION,e.MESSAGE_RSOCKET_TRACING_ZIPKIN,e.MESSAGE_RSOCKET_ROUTING,e.MESSAGE_RSOCKET_COMPOSITE_METADATA];e.TYPES_BY_MIME_ID.fill(e.UNKNOWN_RESERVED_MIME_TYPE);try{for(var s=r(n),a=s.next();!a.done;a=s.next()){var o=a.value;o.identifier>=0&&(e.TYPES_BY_MIME_ID[o.identifier]=o,e.TYPES_BY_MIME_STRING.set(o.string,o))}}catch(e){t={error:e}}finally{try{a&&!a.done&&(i=s.return)&&i.call(s)}finally{if(t)throw t.error}}Object.seal&&Object.seal(e.TYPES_BY_MIME_ID)}(i=t.WellKnownMimeType||(t.WellKnownMimeType={})),t.WellKnownMimeType=i},3092:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3128:function(e,t,r){var i;e.exports=(i=r(9021),r(754),r(4636),r(9506),r(7165),function(){var e=i,t=e.lib.BlockCipher,r=e.algo;const n=16,s=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],a=[[3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946],[1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055],[3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504],[976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462]];var o={pbox:[],sbox:[]};function l(e,t){let r=t>>24&255,i=t>>16&255,n=t>>8&255,s=255&t,a=e.sbox[0][r]+e.sbox[1][i];return a^=e.sbox[2][n],a+=e.sbox[3][s],a}function u(e,t,r){let i,s=t,a=r;for(let t=0;t<n;++t)s^=e.pbox[t],a=l(e,s)^a,i=s,s=a,a=i;return i=s,s=a,a=i,a^=e.pbox[n],s^=e.pbox[17],{left:s,right:a}}var c=r.Blowfish=t.extend({_doReset:function(){if(this._keyPriorReset!==this._key){var e=this._keyPriorReset=this._key,t=e.words,r=e.sigBytes/4;!function(e,t,r){for(let t=0;t<4;t++){e.sbox[t]=[];for(let r=0;r<256;r++)e.sbox[t][r]=a[t][r]}let i=0;for(let n=0;n<18;n++)e.pbox[n]=s[n]^t[i],i++,i>=r&&(i=0);let n=0,o=0,l=0;for(let t=0;t<18;t+=2)l=u(e,n,o),n=l.left,o=l.right,e.pbox[t]=n,e.pbox[t+1]=o;for(let t=0;t<4;t++)for(let r=0;r<256;r+=2)l=u(e,n,o),n=l.left,o=l.right,e.sbox[t][r]=n,e.sbox[t][r+1]=o}(o,t,r)}},encryptBlock:function(e,t){var r=u(o,e[t],e[t+1]);e[t]=r.left,e[t+1]=r.right},decryptBlock:function(e,t){var r=function(e,t,r){let i,n=t,s=r;for(let t=17;t>1;--t)n^=e.pbox[t],s=l(e,n)^s,i=n,n=s,s=i;return i=n,n=s,s=i,s^=e.pbox[1],n^=e.pbox[0],{left:n,right:s}}(o,e[t],e[t+1]);e[t]=r.left,e[t+1]=r.right},blockSize:2,keySize:4,ivSize:2});e.Blowfish=t._createHelper(c)}(),i.Blowfish)},3240:function(e,t,r){var i,n,s,a,o,l;e.exports=(i=r(9021),s=(n=i).lib,a=s.Base,o=s.WordArray,(l=n.x64={}).Word=a.extend({init:function(e,t){this.high=e,this.low=t}}),l.WordArray=a.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=null!=t?t:8*e.length},toX32:function(){for(var e=this.words,t=e.length,r=[],i=0;i<t;i++){var n=e[i];r.push(n.high),r.push(n.low)}return o.create(r,this.sigBytes)},clone:function(){for(var e=a.clone.call(this),t=e.words=this.words.slice(0),r=t.length,i=0;i<r;i++)t[i]=t[i].clone();return e}}),i)},3797:function(e,t,r){var i,n,s;e.exports=(s=r(9021),r(7165),s.mode.OFB=(n=(i=s.lib.BlockCipherMode.extend()).Encryptor=i.extend({processBlock:function(e,t){var r=this._cipher,i=r.blockSize,n=this._iv,s=this._keystream;n&&(s=this._keystream=n.slice(0),this._iv=void 0),r.encryptBlock(s,0);for(var a=0;a<i;a++)e[t+a]^=s[a]}}),i.Decryptor=n,i),s.mode.OFB)},4170:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4438:function(e,t,r){"use strict";var i=r(8287).hp,n=this&&this.__generator||function(e,t){var r,i,n,s,a={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return s={next:o(0),throw:o(1),return:o(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function o(s){return function(o){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,i&&(n=2&s[0]?i.return:s[0]?i.throw||((n=i.return)&&n.call(i),0):i.next)&&!(n=n.call(i,s[1])).done)return n;switch(i=0,n&&(s=[2&s[0],n.value]),s[0]){case 0:case 1:n=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,i=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((n=(n=a.trys).length>0&&n[n.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!n||s[1]>n[0]&&s[1]<n[3])){a.label=s[1];break}if(6===s[0]&&a.label<n[1]){a.label=n[1],n=s;break}if(n&&a.label<n[2]){a.label=n[2],a.ops.push(s);break}n[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],i=0}finally{r=n=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,o])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.fragmentWithRequestN=t.fragment=t.isFragmentable=void 0;var s=r(2799);t.isFragmentable=function(e,t,r){return 0!==t&&e.data.byteLength+(e.metadata?e.metadata.byteLength+s.Lengths.METADATA:0)+(r==s.FrameTypes.REQUEST_STREAM||r==s.FrameTypes.REQUEST_CHANNEL?s.Lengths.REQUEST:0)>t},t.fragment=function(e,t,r,a,o){var l,u,c,h,d,p,f,g,m,y,v,b;return void 0===o&&(o=!1),n(this,function(n){switch(n.label){case 0:return l=null!==(b=null===(v=t.data)||void 0===v?void 0:v.byteLength)&&void 0!==b?b:0,u=a!==s.FrameTypes.PAYLOAD,c=r,t.metadata?0!==(d=t.metadata.byteLength)?[3,1]:(c-=s.Lengths.METADATA,h=i.allocUnsafe(0),[3,6]):[3,6];case 1:return p=0,u?(c-=s.Lengths.METADATA,f=Math.min(d,p+c),h=t.metadata.slice(p,f),c-=h.byteLength,p=f,0!==c?[3,3]:(u=!1,[4,{type:a,flags:s.Flags.FOLLOWS|s.Flags.METADATA,data:void 0,metadata:h,streamId:e}])):[3,3];case 2:n.sent(),h=void 0,c=r,n.label=3;case 3:return p<d?(c-=s.Lengths.METADATA,f=Math.min(d,p+c),h=t.metadata.slice(p,f),c-=h.byteLength,p=f,0!==c&&0!==l?[3,5]:[4,{type:s.FrameTypes.PAYLOAD,flags:s.Flags.NEXT|s.Flags.METADATA|(p===d&&o&&0===l?s.Flags.COMPLETE:s.Flags.FOLLOWS),data:void 0,metadata:h,streamId:e}]):[3,6];case 4:n.sent(),h=void 0,c=r,n.label=5;case 5:return[3,3];case 6:return g=0,u?(y=Math.min(l,g+c),m=t.data.slice(g,y),c-=m.byteLength,g=y,[4,{type:a,flags:s.Flags.FOLLOWS|(h?s.Flags.METADATA:s.Flags.NONE),data:m,metadata:h,streamId:e}]):[3,8];case 7:n.sent(),h=void 0,m=void 0,c=r,n.label=8;case 8:return g<l?(y=Math.min(l,g+c),m=t.data.slice(g,y),c-=m.byteLength,g=y,[4,{type:s.FrameTypes.PAYLOAD,flags:g===l?(o?s.Flags.COMPLETE:s.Flags.NONE)|s.Flags.NEXT|(h?s.Flags.METADATA:0):s.Flags.FOLLOWS|s.Flags.NEXT|(h?s.Flags.METADATA:0),data:m,metadata:h,streamId:e}]):[3,10];case 9:return n.sent(),h=void 0,m=void 0,c=r,[3,8];case 10:return[2]}})},t.fragmentWithRequestN=function(e,t,r,a,o,l){var u,c,h,d,p,f,g,m,y,v,b,I;return void 0===l&&(l=!1),n(this,function(n){switch(n.label){case 0:return u=null!==(I=null===(b=t.data)||void 0===b?void 0:b.byteLength)&&void 0!==I?I:0,c=!0,h=r,t.metadata?0!==(p=t.metadata.byteLength)?[3,1]:(h-=s.Lengths.METADATA,d=i.allocUnsafe(0),[3,6]):[3,6];case 1:return f=0,c?(h-=s.Lengths.METADATA+s.Lengths.REQUEST,g=Math.min(p,f+h),d=t.metadata.slice(f,g),h-=d.byteLength,f=g,0!==h?[3,3]:(c=!1,[4,{type:a,flags:s.Flags.FOLLOWS|s.Flags.METADATA,data:void 0,requestN:o,metadata:d,streamId:e}])):[3,3];case 2:n.sent(),d=void 0,h=r,n.label=3;case 3:return f<p?(h-=s.Lengths.METADATA,g=Math.min(p,f+h),d=t.metadata.slice(f,g),h-=d.byteLength,f=g,0!==h&&0!==u?[3,5]:[4,{type:s.FrameTypes.PAYLOAD,flags:s.Flags.NEXT|s.Flags.METADATA|(f===p&&l&&0===u?s.Flags.COMPLETE:s.Flags.FOLLOWS),data:void 0,metadata:d,streamId:e}]):[3,6];case 4:n.sent(),d=void 0,h=r,n.label=5;case 5:return[3,3];case 6:return m=0,c?(h-=s.Lengths.REQUEST,v=Math.min(u,m+h),y=t.data.slice(m,v),h-=y.byteLength,m=v,[4,{type:a,flags:s.Flags.FOLLOWS|(d?s.Flags.METADATA:s.Flags.NONE),data:y,requestN:o,metadata:d,streamId:e}]):[3,8];case 7:n.sent(),d=void 0,y=void 0,h=r,n.label=8;case 8:return m<u?(v=Math.min(u,m+h),y=t.data.slice(m,v),h-=y.byteLength,m=v,[4,{type:s.FrameTypes.PAYLOAD,flags:m===u?(l?s.Flags.COMPLETE:s.Flags.NONE)|s.Flags.NEXT|(d?s.Flags.METADATA:0):s.Flags.FOLLOWS|s.Flags.NEXT|(d?s.Flags.METADATA:0),data:y,metadata:d,streamId:e}]):[3,10];case 9:return n.sent(),d=void 0,y=void 0,h=r,[3,8];case 10:return[2]}})}},4636:function(e,t,r){var i;e.exports=(i=r(9021),function(e){var t=i,r=t.lib,n=r.WordArray,s=r.Hasher,a=t.algo,o=[];!function(){for(var t=0;t<64;t++)o[t]=4294967296*e.abs(e.sin(t+1))|0}();var l=a.MD5=s.extend({_doReset:function(){this._hash=new n.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,t){for(var r=0;r<16;r++){var i=t+r,n=e[i];e[i]=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8)}var s=this._hash.words,a=e[t+0],l=e[t+1],p=e[t+2],f=e[t+3],g=e[t+4],m=e[t+5],y=e[t+6],v=e[t+7],b=e[t+8],I=e[t+9],w=e[t+10],E=e[t+11],k=e[t+12],S=e[t+13],M=e[t+14],F=e[t+15],T=s[0],R=s[1],A=s[2],_=s[3];T=u(T,R,A,_,a,7,o[0]),_=u(_,T,R,A,l,12,o[1]),A=u(A,_,T,R,p,17,o[2]),R=u(R,A,_,T,f,22,o[3]),T=u(T,R,A,_,g,7,o[4]),_=u(_,T,R,A,m,12,o[5]),A=u(A,_,T,R,y,17,o[6]),R=u(R,A,_,T,v,22,o[7]),T=u(T,R,A,_,b,7,o[8]),_=u(_,T,R,A,I,12,o[9]),A=u(A,_,T,R,w,17,o[10]),R=u(R,A,_,T,E,22,o[11]),T=u(T,R,A,_,k,7,o[12]),_=u(_,T,R,A,S,12,o[13]),A=u(A,_,T,R,M,17,o[14]),T=c(T,R=u(R,A,_,T,F,22,o[15]),A,_,l,5,o[16]),_=c(_,T,R,A,y,9,o[17]),A=c(A,_,T,R,E,14,o[18]),R=c(R,A,_,T,a,20,o[19]),T=c(T,R,A,_,m,5,o[20]),_=c(_,T,R,A,w,9,o[21]),A=c(A,_,T,R,F,14,o[22]),R=c(R,A,_,T,g,20,o[23]),T=c(T,R,A,_,I,5,o[24]),_=c(_,T,R,A,M,9,o[25]),A=c(A,_,T,R,f,14,o[26]),R=c(R,A,_,T,b,20,o[27]),T=c(T,R,A,_,S,5,o[28]),_=c(_,T,R,A,p,9,o[29]),A=c(A,_,T,R,v,14,o[30]),T=h(T,R=c(R,A,_,T,k,20,o[31]),A,_,m,4,o[32]),_=h(_,T,R,A,b,11,o[33]),A=h(A,_,T,R,E,16,o[34]),R=h(R,A,_,T,M,23,o[35]),T=h(T,R,A,_,l,4,o[36]),_=h(_,T,R,A,g,11,o[37]),A=h(A,_,T,R,v,16,o[38]),R=h(R,A,_,T,w,23,o[39]),T=h(T,R,A,_,S,4,o[40]),_=h(_,T,R,A,a,11,o[41]),A=h(A,_,T,R,f,16,o[42]),R=h(R,A,_,T,y,23,o[43]),T=h(T,R,A,_,I,4,o[44]),_=h(_,T,R,A,k,11,o[45]),A=h(A,_,T,R,F,16,o[46]),T=d(T,R=h(R,A,_,T,p,23,o[47]),A,_,a,6,o[48]),_=d(_,T,R,A,v,10,o[49]),A=d(A,_,T,R,M,15,o[50]),R=d(R,A,_,T,m,21,o[51]),T=d(T,R,A,_,k,6,o[52]),_=d(_,T,R,A,f,10,o[53]),A=d(A,_,T,R,w,15,o[54]),R=d(R,A,_,T,l,21,o[55]),T=d(T,R,A,_,b,6,o[56]),_=d(_,T,R,A,F,10,o[57]),A=d(A,_,T,R,y,15,o[58]),R=d(R,A,_,T,S,21,o[59]),T=d(T,R,A,_,g,6,o[60]),_=d(_,T,R,A,E,10,o[61]),A=d(A,_,T,R,p,15,o[62]),R=d(R,A,_,T,I,21,o[63]),s[0]=s[0]+T|0,s[1]=s[1]+R|0,s[2]=s[2]+A|0,s[3]=s[3]+_|0},_doFinalize:function(){var t=this._data,r=t.words,i=8*this._nDataBytes,n=8*t.sigBytes;r[n>>>5]|=128<<24-n%32;var s=e.floor(i/4294967296),a=i;r[15+(n+64>>>9<<4)]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),r[14+(n+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),t.sigBytes=4*(r.length+1),this._process();for(var o=this._hash,l=o.words,u=0;u<4;u++){var c=l[u];l[u]=16711935&(c<<8|c>>>24)|4278255360&(c<<24|c>>>8)}return o},clone:function(){var e=s.clone.call(this);return e._hash=this._hash.clone(),e}});function u(e,t,r,i,n,s,a){var o=e+(t&r|~t&i)+n+a;return(o<<s|o>>>32-s)+t}function c(e,t,r,i,n,s,a){var o=e+(t&i|r&~i)+n+a;return(o<<s|o>>>32-s)+t}function h(e,t,r,i,n,s,a){var o=e+(t^r^i)+n+a;return(o<<s|o>>>32-s)+t}function d(e,t,r,i,n,s,a){var o=e+(r^(t|~i))+n+a;return(o<<s|o>>>32-s)+t}t.MD5=s._createHelper(l),t.HmacMD5=s._createHmacHelper(l)}(Math),i.MD5)},4725:function(e,t,r){var i,n,s;e.exports=(i=r(9021),s=(n=i).lib.WordArray,n.enc.Base64url={stringify:function(e,t){void 0===t&&(t=!0);var r=e.words,i=e.sigBytes,n=t?this._safe_map:this._map;e.clamp();for(var s=[],a=0;a<i;a+=3)for(var o=(r[a>>>2]>>>24-a%4*8&255)<<16|(r[a+1>>>2]>>>24-(a+1)%4*8&255)<<8|r[a+2>>>2]>>>24-(a+2)%4*8&255,l=0;l<4&&a+.75*l<i;l++)s.push(n.charAt(o>>>6*(3-l)&63));var u=n.charAt(64);if(u)for(;s.length%4;)s.push(u);return s.join("")},parse:function(e,t){void 0===t&&(t=!0);var r=e.length,i=t?this._safe_map:this._map,n=this._reverseMap;if(!n){n=this._reverseMap=[];for(var a=0;a<i.length;a++)n[i.charCodeAt(a)]=a}var o=i.charAt(64);if(o){var l=e.indexOf(o);-1!==l&&(r=l)}return function(e,t,r){for(var i=[],n=0,a=0;a<t;a++)if(a%4){var o=r[e.charCodeAt(a-1)]<<a%4*2|r[e.charCodeAt(a)]>>>6-a%4*2;i[n>>>2]|=o<<24-n%4*8,n++}return s.create(i,n)}(e,r,n)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"},i.enc.Base64url)},4796:function(e,t,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){void 0===i&&(i=r),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,i){void 0===i&&(i=r),e[i]=t[r]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&i(t,e,r);return n(t,e),t},a=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],i=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.RequestStreamResponderStream=t.RequestStreamRequesterStream=void 0;var o=r(8766),l=r(4438),u=r(2799),c=s(r(7076)),h=function(){function e(e,t,r,i,n){this.payload=e,this.receiver=t,this.fragmentSize=r,this.initialRequestN=i,this.leaseManager=n,this.streamType=u.FrameTypes.REQUEST_STREAM}return e.prototype.handleReady=function(e,t){var r,i;if(this.done)return!1;if(this.streamId=e,this.stream=t,t.connect(this),(0,l.isFragmentable)(this.payload,this.fragmentSize,u.FrameTypes.REQUEST_STREAM))try{for(var n=a((0,l.fragmentWithRequestN)(e,this.payload,this.fragmentSize,u.FrameTypes.REQUEST_STREAM,this.initialRequestN)),s=n.next();!s.done;s=n.next()){var o=s.value;this.stream.send(o)}}catch(e){r={error:e}}finally{try{s&&!s.done&&(i=n.return)&&i.call(n)}finally{if(r)throw r.error}}else this.stream.send({type:u.FrameTypes.REQUEST_STREAM,data:this.payload.data,metadata:this.payload.metadata,requestN:this.initialRequestN,flags:void 0!==this.payload.metadata?u.Flags.METADATA:0,streamId:e});return this.hasExtension&&this.stream.send({type:u.FrameTypes.EXT,streamId:e,extendedContent:this.extendedContent,extendedType:this.extendedType,flags:this.flags}),!0},e.prototype.handleReject=function(e){this.done||(this.done=!0,this.receiver.onError(e))},e.prototype.handle=function(e){var t,r=e.type;switch(r){case u.FrameTypes.PAYLOAD:var i=u.Flags.hasComplete(e.flags),n=u.Flags.hasNext(e.flags);if(i||!u.Flags.hasFollows(e.flags)){if(i&&(this.done=!0,this.stream.disconnect(this),!n))return void this.receiver.onComplete();var s=this.hasFragments?c.reassemble(this,e.data,e.metadata):{data:e.data,metadata:e.metadata};return void this.receiver.onNext(s,i)}if(!c.add(this,e.data,e.metadata)){t="Unexpected fragment size";break}return;case u.FrameTypes.ERROR:return this.done=!0,this.stream.disconnect(this),c.cancel(this),void this.receiver.onError(new o.RSocketError(e.code,e.message));case u.FrameTypes.EXT:if(this.hasFragments){t="Unexpected frame type [".concat(r,"] during reassembly");break}return void this.receiver.onExtension(e.extendedType,e.extendedContent,u.Flags.hasIgnore(e.flags));default:t="Unexpected frame type [".concat(r,"]")}this.close(new o.RSocketError(o.ErrorCodes.CANCELED,t)),this.stream.send({type:u.FrameTypes.CANCEL,streamId:this.streamId,flags:u.Flags.NONE}),this.stream.disconnect(this)},e.prototype.request=function(e){this.done||(this.streamId?this.stream.send({type:u.FrameTypes.REQUEST_N,flags:u.Flags.NONE,requestN:e,streamId:this.streamId}):this.initialRequestN+=e)},e.prototype.cancel=function(){var e;this.done||(this.done=!0,this.streamId?(this.stream.send({type:u.FrameTypes.CANCEL,flags:u.Flags.NONE,streamId:this.streamId}),this.stream.disconnect(this),c.cancel(this)):null===(e=this.leaseManager)||void 0===e||e.cancelRequest(this))},e.prototype.onExtension=function(e,t,r){if(!this.done)return this.streamId?void this.stream.send({streamId:this.streamId,type:u.FrameTypes.EXT,extendedType:e,extendedContent:t,flags:r?u.Flags.IGNORE:u.Flags.NONE}):(this.hasExtension=!0,this.extendedType=e,this.extendedContent=t,void(this.flags=r?u.Flags.IGNORE:u.Flags.NONE))},e.prototype.close=function(e){this.done||(this.done=!0,c.cancel(this),e?this.receiver.onError(e):this.receiver.onComplete())},e}();t.RequestStreamRequesterStream=h;var d=function(){function e(e,t,r,i,n){if(this.streamId=e,this.stream=t,this.fragmentSize=r,this.handler=i,this.streamType=u.FrameTypes.REQUEST_STREAM,t.connect(this),u.Flags.hasFollows(n.flags))return this.initialRequestN=n.requestN,void c.add(this,n.data,n.metadata);var s={data:n.data,metadata:n.metadata};try{this.receiver=i(s,n.requestN,this)}catch(e){this.onError(e)}}return e.prototype.handle=function(e){var t,r;if(!this.receiver||this.hasFragments)if(e.type===u.FrameTypes.PAYLOAD){if(!u.Flags.hasFollows(e.flags)){var i=c.reassemble(this,e.data,e.metadata);try{this.receiver=this.handler(i,this.initialRequestN,this)}catch(e){this.onError(e)}return}if(c.add(this,e.data,e.metadata))return;r="Unexpected frame size"}else r="Unexpected frame type [".concat(e.type,"] during reassembly");else{if(e.type===u.FrameTypes.REQUEST_N)return void this.receiver.request(e.requestN);if(e.type===u.FrameTypes.EXT)return void this.receiver.onExtension(e.extendedType,e.extendedContent,u.Flags.hasIgnore(e.flags));r="Unexpected frame type [".concat(e.type,"]")}this.done=!0,c.cancel(this),null===(t=this.receiver)||void 0===t||t.cancel(),e.type!==u.FrameTypes.CANCEL&&e.type!==u.FrameTypes.ERROR&&this.stream.send({type:u.FrameTypes.ERROR,flags:u.Flags.NONE,code:o.ErrorCodes.CANCELED,message:r,streamId:this.streamId}),this.stream.disconnect(this)},e.prototype.onError=function(e){this.done?console.warn("Trying to error for the second time. ".concat(e?"Dropping error [".concat(e,"]."):"")):(this.done=!0,this.stream.send({type:u.FrameTypes.ERROR,flags:u.Flags.NONE,code:e instanceof o.RSocketError?e.code:o.ErrorCodes.APPLICATION_ERROR,message:e.message,streamId:this.streamId}),this.stream.disconnect(this))},e.prototype.onNext=function(e,t){var r,i;if(!this.done){if(t&&(this.done=!0),(0,l.isFragmentable)(e,this.fragmentSize,u.FrameTypes.PAYLOAD))try{for(var n=a((0,l.fragment)(this.streamId,e,this.fragmentSize,u.FrameTypes.PAYLOAD,t)),s=n.next();!s.done;s=n.next()){var o=s.value;this.stream.send(o)}}catch(e){r={error:e}}finally{try{s&&!s.done&&(i=n.return)&&i.call(n)}finally{if(r)throw r.error}}else this.stream.send({type:u.FrameTypes.PAYLOAD,flags:u.Flags.NEXT|(t?u.Flags.COMPLETE:u.Flags.NONE)|(e.metadata?u.Flags.METADATA:u.Flags.NONE),data:e.data,metadata:e.metadata,streamId:this.streamId});t&&this.stream.disconnect(this)}},e.prototype.onComplete=function(){this.done||(this.done=!0,this.stream.send({type:u.FrameTypes.PAYLOAD,flags:u.Flags.COMPLETE,streamId:this.streamId,data:null,metadata:null}),this.stream.disconnect(this))},e.prototype.onExtension=function(e,t,r){this.done||this.stream.send({type:u.FrameTypes.EXT,streamId:this.streamId,flags:r?u.Flags.IGNORE:u.Flags.NONE,extendedType:e,extendedContent:t})},e.prototype.close=function(e){var t;this.done?console.warn("Trying to close for the second time. ".concat(e?"Dropping error [".concat(e,"]."):"")):(c.cancel(this),null===(t=this.receiver)||void 0===t||t.cancel())},e}();t.RequestStreamResponderStream=d},4905:function(e,t,r){var i;e.exports=(i=r(9021),r(7165),i.pad.Iso10126={pad:function(e,t){var r=4*t,n=r-e.sigBytes%r;e.concat(i.lib.WordArray.random(n-1)).concat(i.lib.WordArray.create([n<<24],1))},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},i.pad.Iso10126)},5033:function(e,t,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){void 0===i&&(i=r),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,i){void 0===i&&(i=r),e[i]=t[r]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&i(t,e,r);return n(t,e),t},a=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],i=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.RequestChannelResponderStream=t.RequestChannelRequesterStream=void 0;var o=r(8766),l=r(4438),u=r(2799),c=s(r(7076)),h=function(){function e(e,t,r,i,n,s){this.payload=e,this.isComplete=t,this.receiver=r,this.fragmentSize=i,this.initialRequestN=n,this.leaseManager=s,this.streamType=u.FrameTypes.REQUEST_CHANNEL}return e.prototype.handleReady=function(e,t){var r,i;if(this.outboundDone)return!1;this.streamId=e,this.stream=t,t.connect(this);var n=this.isComplete;if(n&&(this.outboundDone=n),(0,l.isFragmentable)(this.payload,this.fragmentSize,u.FrameTypes.REQUEST_CHANNEL))try{for(var s=a((0,l.fragmentWithRequestN)(e,this.payload,this.fragmentSize,u.FrameTypes.REQUEST_CHANNEL,this.initialRequestN,n)),o=s.next();!o.done;o=s.next()){var c=o.value;this.stream.send(c)}}catch(e){r={error:e}}finally{try{o&&!o.done&&(i=s.return)&&i.call(s)}finally{if(r)throw r.error}}else this.stream.send({type:u.FrameTypes.REQUEST_CHANNEL,data:this.payload.data,metadata:this.payload.metadata,requestN:this.initialRequestN,flags:(void 0!==this.payload.metadata?u.Flags.METADATA:u.Flags.NONE)|(n?u.Flags.COMPLETE:u.Flags.NONE),streamId:e});return this.hasExtension&&this.stream.send({type:u.FrameTypes.EXT,streamId:e,extendedContent:this.extendedContent,extendedType:this.extendedType,flags:this.flags}),!0},e.prototype.handleReject=function(e){this.inboundDone||(this.inboundDone=!0,this.outboundDone=!0,this.receiver.onError(e))},e.prototype.handle=function(e){var t,r=e.type;switch(r){case u.FrameTypes.PAYLOAD:var i=u.Flags.hasComplete(e.flags),n=u.Flags.hasNext(e.flags);if(i||!u.Flags.hasFollows(e.flags)){if(i&&(this.inboundDone=!0,this.outboundDone&&this.stream.disconnect(this),!n))return void this.receiver.onComplete();var s=this.hasFragments?c.reassemble(this,e.data,e.metadata):{data:e.data,metadata:e.metadata};return void this.receiver.onNext(s,i)}if(c.add(this,e.data,e.metadata))return;t="Unexpected frame size";break;case u.FrameTypes.CANCEL:if(this.outboundDone)return;return this.outboundDone=!0,this.inboundDone&&this.stream.disconnect(this),void this.receiver.cancel();case u.FrameTypes.REQUEST_N:if(this.outboundDone)return;if(this.hasFragments){t="Unexpected frame type [".concat(r,"] during reassembly");break}return void this.receiver.request(e.requestN);case u.FrameTypes.ERROR:var a=this.outboundDone;return this.inboundDone=!0,this.outboundDone=!0,this.stream.disconnect(this),c.cancel(this),a||this.receiver.cancel(),void this.receiver.onError(new o.RSocketError(e.code,e.message));case u.FrameTypes.EXT:return void this.receiver.onExtension(e.extendedType,e.extendedContent,u.Flags.hasIgnore(e.flags));default:t="Unexpected frame type [".concat(r,"]")}this.close(new o.RSocketError(o.ErrorCodes.CANCELED,t)),this.stream.send({type:u.FrameTypes.CANCEL,streamId:this.streamId,flags:u.Flags.NONE}),this.stream.disconnect(this)},e.prototype.request=function(e){this.inboundDone||(this.streamId?this.stream.send({type:u.FrameTypes.REQUEST_N,flags:u.Flags.NONE,requestN:e,streamId:this.streamId}):this.initialRequestN+=e)},e.prototype.cancel=function(){var e,t=this.inboundDone,r=this.outboundDone;t&&r||(this.inboundDone=!0,this.outboundDone=!0,r||this.receiver.cancel(),this.streamId?(this.stream.send({type:t?u.FrameTypes.ERROR:u.FrameTypes.CANCEL,flags:u.Flags.NONE,streamId:this.streamId,code:o.ErrorCodes.CANCELED,message:"Cancelled"}),this.stream.disconnect(this),c.cancel(this)):null===(e=this.leaseManager)||void 0===e||e.cancelRequest(this))},e.prototype.onNext=function(e,t){var r,i;if(!this.outboundDone)if(t&&(this.outboundDone=!0,this.inboundDone&&this.stream.disconnect(this)),(0,l.isFragmentable)(e,this.fragmentSize,u.FrameTypes.PAYLOAD))try{for(var n=a((0,l.fragment)(this.streamId,e,this.fragmentSize,u.FrameTypes.PAYLOAD,t)),s=n.next();!s.done;s=n.next()){var o=s.value;this.stream.send(o)}}catch(e){r={error:e}}finally{try{s&&!s.done&&(i=n.return)&&i.call(n)}finally{if(r)throw r.error}}else this.stream.send({type:u.FrameTypes.PAYLOAD,streamId:this.streamId,flags:u.Flags.NEXT|(e.metadata?u.Flags.METADATA:u.Flags.NONE)|(t?u.Flags.COMPLETE:u.Flags.NONE),data:e.data,metadata:e.metadata})},e.prototype.onComplete=function(){this.streamId?this.outboundDone||(this.outboundDone=!0,this.stream.send({type:u.FrameTypes.PAYLOAD,streamId:this.streamId,flags:u.Flags.COMPLETE,data:null,metadata:null}),this.inboundDone&&this.stream.disconnect(this)):this.isComplete=!0},e.prototype.onError=function(e){if(!this.outboundDone){var t=this.inboundDone;this.outboundDone=!0,this.inboundDone=!0,this.stream.send({type:u.FrameTypes.ERROR,streamId:this.streamId,flags:u.Flags.NONE,code:e instanceof o.RSocketError?e.code:o.ErrorCodes.APPLICATION_ERROR,message:e.message}),this.stream.disconnect(this),t||this.receiver.onError(e)}},e.prototype.onExtension=function(e,t,r){if(!this.outboundDone)return this.streamId?void this.stream.send({streamId:this.streamId,type:u.FrameTypes.EXT,extendedType:e,extendedContent:t,flags:r?u.Flags.IGNORE:u.Flags.NONE}):(this.hasExtension=!0,this.extendedType=e,this.extendedContent=t,void(this.flags=r?u.Flags.IGNORE:u.Flags.NONE))},e.prototype.close=function(e){if(!this.inboundDone||!this.outboundDone){var t=this.inboundDone,r=this.outboundDone;this.inboundDone=!0,this.outboundDone=!0,c.cancel(this),r||this.receiver.cancel(),t||(e?this.receiver.onError(e):this.receiver.onComplete())}},e}();t.RequestChannelRequesterStream=h;var d=function(){function e(e,t,r,i,n){if(this.streamId=e,this.stream=t,this.fragmentSize=r,this.handler=i,this.streamType=u.FrameTypes.REQUEST_CHANNEL,t.connect(this),u.Flags.hasFollows(n.flags))return c.add(this,n.data,n.metadata),this.initialRequestN=n.requestN,void(this.isComplete=u.Flags.hasComplete(n.flags));var s={data:n.data,metadata:n.metadata},a=u.Flags.hasComplete(n.flags);this.inboundDone=a;try{this.receiver=i(s,n.requestN,a,this),this.outboundDone&&this.defferedError&&this.receiver.onError(this.defferedError)}catch(e){this.outboundDone&&!this.inboundDone?this.cancel():this.inboundDone=!0,this.onError(e)}}return e.prototype.handle=function(e){var t,r=e.type;switch(r){case u.FrameTypes.PAYLOAD:if(u.Flags.hasFollows(e.flags)){if(c.add(this,e.data,e.metadata))return;t="Unexpected frame size";break}var i=this.hasFragments?c.reassemble(this,e.data,e.metadata):{data:e.data,metadata:e.metadata},n=u.Flags.hasComplete(e.flags);if(this.receiver){if(n&&(this.inboundDone=!0,this.outboundDone&&this.stream.disconnect(this),!u.Flags.hasNext(e.flags)))return void this.receiver.onComplete();this.receiver.onNext(i,n)}else{(s=this.isComplete||n)&&(this.inboundDone=!0,this.outboundDone&&this.stream.disconnect(this));try{this.receiver=this.handler(i,this.initialRequestN,s,this),this.outboundDone&&this.defferedError}catch(l){this.outboundDone&&!this.inboundDone?this.cancel():this.inboundDone=!0,this.onError(l)}}return;case u.FrameTypes.REQUEST_N:if(!this.receiver||this.hasFragments){t="Unexpected frame type [".concat(r,"] during reassembly");break}return void this.receiver.request(e.requestN);case u.FrameTypes.ERROR:case u.FrameTypes.CANCEL:var s=this.inboundDone,a=this.outboundDone;if(this.inboundDone=!0,this.outboundDone=!0,this.stream.disconnect(this),c.cancel(this),!this.receiver)return;if(a||this.receiver.cancel(),!s){var l=r===u.FrameTypes.CANCEL?new o.RSocketError(o.ErrorCodes.CANCELED,"Cancelled"):new o.RSocketError(e.code,e.message);this.receiver.onError(l)}return;case u.FrameTypes.EXT:if(!this.receiver||this.hasFragments){t="Unexpected frame type [".concat(r,"] during reassembly");break}return void this.receiver.onExtension(e.extendedType,e.extendedContent,u.Flags.hasIgnore(e.flags));default:t="Unexpected frame type [".concat(r,"]")}this.stream.send({type:u.FrameTypes.ERROR,flags:u.Flags.NONE,code:o.ErrorCodes.CANCELED,message:t,streamId:this.streamId}),this.stream.disconnect(this),this.close(new o.RSocketError(o.ErrorCodes.CANCELED,t))},e.prototype.onError=function(e){if(this.outboundDone)console.warn("Trying to error for the second time. ".concat(e?"Dropping error [".concat(e,"]."):""));else{var t=this.inboundDone;this.outboundDone=!0,this.inboundDone=!0,this.stream.send({type:u.FrameTypes.ERROR,flags:u.Flags.NONE,code:e instanceof o.RSocketError?e.code:o.ErrorCodes.APPLICATION_ERROR,message:e.message,streamId:this.streamId}),this.stream.disconnect(this),t||(this.receiver?this.receiver.onError(e):this.defferedError=e)}},e.prototype.onNext=function(e,t){var r,i;if(!this.outboundDone){if(t&&(this.outboundDone=!0),(0,l.isFragmentable)(e,this.fragmentSize,u.FrameTypes.PAYLOAD))try{for(var n=a((0,l.fragment)(this.streamId,e,this.fragmentSize,u.FrameTypes.PAYLOAD,t)),s=n.next();!s.done;s=n.next()){var o=s.value;this.stream.send(o)}}catch(e){r={error:e}}finally{try{s&&!s.done&&(i=n.return)&&i.call(n)}finally{if(r)throw r.error}}else this.stream.send({type:u.FrameTypes.PAYLOAD,flags:u.Flags.NEXT|(t?u.Flags.COMPLETE:u.Flags.NONE)|(e.metadata?u.Flags.METADATA:u.Flags.NONE),data:e.data,metadata:e.metadata,streamId:this.streamId});t&&this.inboundDone&&this.stream.disconnect(this)}},e.prototype.onComplete=function(){this.outboundDone||(this.outboundDone=!0,this.stream.send({type:u.FrameTypes.PAYLOAD,flags:u.Flags.COMPLETE,streamId:this.streamId,data:null,metadata:null}),this.inboundDone&&this.stream.disconnect(this))},e.prototype.onExtension=function(e,t,r){this.outboundDone&&this.inboundDone||this.stream.send({type:u.FrameTypes.EXT,streamId:this.streamId,flags:r?u.Flags.IGNORE:u.Flags.NONE,extendedType:e,extendedContent:t})},e.prototype.request=function(e){this.inboundDone||this.stream.send({type:u.FrameTypes.REQUEST_N,flags:u.Flags.NONE,streamId:this.streamId,requestN:e})},e.prototype.cancel=function(){this.inboundDone||(this.inboundDone=!0,this.stream.send({type:u.FrameTypes.CANCEL,flags:u.Flags.NONE,streamId:this.streamId}),this.outboundDone&&this.stream.disconnect(this))},e.prototype.close=function(e){if(this.inboundDone&&this.outboundDone)console.warn("Trying to close for the second time. ".concat(e?"Dropping error [".concat(e,"]."):""));else{var t=this.inboundDone,r=this.outboundDone;this.inboundDone=!0,this.outboundDone=!0,c.cancel(this);var i=this.receiver;i&&(r||i.cancel(),t||(e?i.onError(e):i.onComplete()))}},e}();t.RequestChannelResponderStream=d},5339:function(e,t,r){var i="function"==typeof Object.defineProperties?Object.defineProperty:function(e,t,r){e!=Array.prototype&&e!=Object.prototype&&(e[t]=r.value)},n="undefined"!=typeof window&&window===this?this:void 0!==r.g&&null!=r.g?r.g:this;function s(){s=function(){},n.Symbol||(n.Symbol=l)}function a(e,t){this.a=e,i(this,"description",{configurable:!0,writable:!0,value:t})}a.prototype.toString=function(){return this.a};var o,l=(o=0,function e(t){if(this instanceof e)throw new TypeError("Symbol is not a constructor");return new a("jscomp_symbol_"+(t||"")+"_"+o++,t)});function u(){s();var e=n.Symbol.iterator;e||(e=n.Symbol.iterator=n.Symbol("Symbol.iterator")),"function"!=typeof Array.prototype[e]&&i(Array.prototype,e,{configurable:!0,writable:!0,value:function(){return function(e){return u(),(e={next:e})[n.Symbol.iterator]=function(){return this},e}(function(e){var t=0;return function(){return t<e.length?{done:!1,value:e[t++]}:{done:!0}}}(this))}}),u=function(){}}!function(e,t){if(t){var r=n;e=e.split(".");for(var s=0;s<e.length-1;s++){var a=e[s];a in r||(r[a]={}),r=r[a]}(t=t(s=r[e=e[e.length-1]]))!=s&&null!=t&&i(r,e,{configurable:!0,writable:!0,value:t})}}("Array.prototype.entries",function(e){return e||function(){return function(e,t){u(),e instanceof String&&(e+="");var r=0,i={next:function(){if(r<e.length){var n=r++;return{value:t(n,e[n]),done:!1}}return i.next=function(){return{done:!0,value:void 0}},i.next()}};return i[Symbol.iterator]=function(){return i},i}(this,function(e,t){return[e,t]})}});var c=this||self;function h(e,t,r){e=e.split("."),r=r||c,e[0]in r||void 0===r.execScript||r.execScript("var "+e[0]);for(var i;e.length&&(i=e.shift());)e.length||void 0===t?r=r[i]&&r[i]!==Object.prototype[i]?r[i]:r[i]={}:r[i]=t}function d(e){var t=typeof e;if("object"==t){if(!e)return"null";if(e instanceof Array)return"array";if(e instanceof Object)return t;var r=Object.prototype.toString.call(e);if("[object Window]"==r)return"object";if("[object Array]"==r||"number"==typeof e.length&&void 0!==e.splice&&void 0!==e.propertyIsEnumerable&&!e.propertyIsEnumerable("splice"))return"array";if("[object Function]"==r||void 0!==e.call&&void 0!==e.propertyIsEnumerable&&!e.propertyIsEnumerable("call"))return"function"}else if("function"==t&&void 0===e.call)return"object";return t}function p(e){var t=typeof e;return"object"==t&&null!=e||"function"==t}var f="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" "),g=Array.prototype.forEach?function(e,t){Array.prototype.forEach.call(e,t,void 0)}:function(e,t){for(var r=e.length,i="string"==typeof e?e.split(""):e,n=0;n<r;n++)n in i&&t.call(void 0,i[n],n,e)},m=Array.prototype.map?function(e,t){return Array.prototype.map.call(e,t,void 0)}:function(e,t){for(var r=e.length,i=Array(r),n="string"==typeof e?e.split(""):e,s=0;s<r;s++)s in n&&(i[s]=t.call(void 0,n[s],s,e));return i};function y(e,t,r){return 2>=arguments.length?Array.prototype.slice.call(e,t):Array.prototype.slice.call(e,t,r)}function v(e,t,r,i){var n="Assertion failed";if(r){n+=": "+r;var s=i}else e&&(n+=": "+e,s=t);throw Error(n,s||[])}function b(e,t,r){for(var i=[],n=2;n<arguments.length;++n)i[n-2]=arguments[n];return e||v("",null,t,i),e}function I(e,t){for(var r=[],i=1;i<arguments.length;++i)r[i-1]=arguments[i];throw Error("Failure"+(e?": "+e:""),r)}function w(e,t,r,i){for(var n=[],s=3;s<arguments.length;++s)n[s-3]=arguments[s];e instanceof t||v("Expected instanceof %s but got %s.",[E(t),E(e)],r,n)}function E(e){return e instanceof Function?e.displayName||e.name||"unknown type name":e instanceof Object?e.constructor.displayName||e.constructor.name||Object.prototype.toString.call(e):null===e?"null":typeof e}function k(e,t){if(this.c=e,this.b=t,this.a={},this.arrClean=!0,0<this.c.length){for(e=0;e<this.c.length;e++){var r=(t=this.c[e])[0];this.a[r.toString()]=new T(r,t[1])}this.arrClean=!0}}function S(e){this.a=0,this.b=e}function M(e,t){return e.b?(t.a||(t.a=new e.b(t.value)),t.a):t.value}function F(e){e=e.a;var t,r=[];for(t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.push(t);return r}function T(e,t){this.key=e,this.value=t,this.a=void 0}function R(e){if(8192>=e.length)return String.fromCharCode.apply(null,e);for(var t="",r=0;r<e.length;r+=8192)t+=String.fromCharCode.apply(null,y(e,r,r+8192));return t}h("jspb.Map",k,void 0),k.prototype.g=function(){if(this.arrClean){if(this.b){var e,t=this.a;for(e in t)if(Object.prototype.hasOwnProperty.call(t,e)){var r=t[e].a;r&&r.g()}}}else{for(this.c.length=0,(t=F(this)).sort(),e=0;e<t.length;e++){var i=this.a[t[e]];(r=i.a)&&r.g(),this.c.push([i.key,i.value])}this.arrClean=!0}return this.c},k.prototype.toArray=k.prototype.g,k.prototype.Mc=function(e,t){for(var r=this.g(),i=[],n=0;n<r.length;n++){var s=this.a[r[n][0].toString()];M(this,s);var a=s.a;a?(b(t),i.push([s.key,t(e,a)])):i.push([s.key,s.value])}return i},k.prototype.toObject=k.prototype.Mc,k.fromObject=function(e,t,r){t=new k([],t);for(var i=0;i<e.length;i++){var n=e[i][0],s=r(e[i][1]);t.set(n,s)}return t},S.prototype.next=function(){return this.a<this.b.length?{done:!1,value:this.b[this.a++]}:{done:!0,value:void 0}},"undefined"!=typeof Symbol&&(S.prototype[Symbol.iterator]=function(){return this}),k.prototype.Jb=function(){return F(this).length},k.prototype.getLength=k.prototype.Jb,k.prototype.clear=function(){this.a={},this.arrClean=!1},k.prototype.clear=k.prototype.clear,k.prototype.Cb=function(e){e=e.toString();var t=this.a.hasOwnProperty(e);return delete this.a[e],this.arrClean=!1,t},k.prototype.del=k.prototype.Cb,k.prototype.Eb=function(){var e=[],t=F(this);t.sort();for(var r=0;r<t.length;r++){var i=this.a[t[r]];e.push([i.key,i.value])}return e},k.prototype.getEntryList=k.prototype.Eb,k.prototype.entries=function(){var e=[],t=F(this);t.sort();for(var r=0;r<t.length;r++){var i=this.a[t[r]];e.push([i.key,M(this,i)])}return new S(e)},k.prototype.entries=k.prototype.entries,k.prototype.keys=function(){var e=[],t=F(this);t.sort();for(var r=0;r<t.length;r++)e.push(this.a[t[r]].key);return new S(e)},k.prototype.keys=k.prototype.keys,k.prototype.values=function(){var e=[],t=F(this);t.sort();for(var r=0;r<t.length;r++)e.push(M(this,this.a[t[r]]));return new S(e)},k.prototype.values=k.prototype.values,k.prototype.forEach=function(e,t){var r=F(this);r.sort();for(var i=0;i<r.length;i++){var n=this.a[r[i]];e.call(t,M(this,n),n.key,this)}},k.prototype.forEach=k.prototype.forEach,k.prototype.set=function(e,t){var r=new T(e);return this.b?(r.a=t,r.value=t.g()):r.value=t,this.a[e.toString()]=r,this.arrClean=!1,this},k.prototype.set=k.prototype.set,k.prototype.get=function(e){if(e=this.a[e.toString()])return M(this,e)},k.prototype.get=k.prototype.get,k.prototype.has=function(e){return e.toString()in this.a},k.prototype.has=k.prototype.has,k.prototype.Jc=function(e,t,r,i,n){var s=F(this);s.sort();for(var a=0;a<s.length;a++){var o=this.a[s[a]];t.Va(e),r.call(t,1,o.key),this.b?i.call(t,2,M(this,o),n):i.call(t,2,o.value),t.Ya()}},k.prototype.serializeBinary=k.prototype.Jc,k.deserializeBinary=function(e,t,r,i,n,s,a){for(;t.oa()&&!t.bb();){var o=t.c;1==o?s=r.call(t):2==o&&(e.b?(b(n),a||(a=new e.b),i.call(t,a,n)):a=i.call(t))}b(null!=s),b(null!=a),e.set(s,a)};var A={"\0":"\\0","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\x0B",'"':'\\"',"\\":"\\\\","<":"\\u003C"},_={"'":"\\'"},O={},C=null;function x(e,t){void 0===t&&(t=0),D(),t=O[t];for(var r=[],i=0;i<e.length;i+=3){var n=e[i],s=i+1<e.length,a=s?e[i+1]:0,o=i+2<e.length,l=o?e[i+2]:0,u=n>>2;n=(3&n)<<4|a>>4,a=(15&a)<<2|l>>6,l&=63,o||(l=64,s||(a=64)),r.push(t[u],t[n],t[a]||"",t[l]||"")}return r.join("")}function N(e){var t=e.length,r=3*t/4;r%3?r=Math.floor(r):-1!="=.".indexOf(e[t-1])&&(r=-1!="=.".indexOf(e[t-2])?r-2:r-1);var i=new Uint8Array(r),n=0;return function(e,t){function r(t){for(;i<e.length;){var r=e.charAt(i++),n=C[r];if(null!=n)return n;if(!/^[\s\xa0]*$/.test(r))throw Error("Unknown base64 encoding at char: "+r)}return t}D();for(var i=0;;){var n=r(-1),s=r(0),a=r(64),o=r(64);if(64===o&&-1===n)break;t(n<<2|s>>4),64!=a&&(t(s<<4&240|a>>2),64!=o&&t(a<<6&192|o))}}(e,function(e){i[n++]=e}),i.subarray(0,n)}function D(){if(!C){C={};for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),t=["+/=","+/","-_=","-_.","-_"],r=0;5>r;r++){var i=e.concat(t[r].split(""));O[r]=i;for(var n=0;n<i.length;n++){var s=i[n];void 0===C[s]&&(C[s]=n)}}}}h("jspb.ConstBinaryMessage",function(){},void 0),h("jspb.BinaryMessage",function(){},void 0),h("jspb.BinaryConstants.FieldType",{yb:-1,ee:1,FLOAT:2,ke:3,te:4,je:5,xb:6,wb:7,BOOL:8,re:9,ie:10,le:11,ce:12,se:13,ge:14,me:15,ne:16,oe:17,pe:18,he:30,ve:31},void 0),h("jspb.BinaryConstants.WireType",{yb:-1,ue:0,xb:1,de:2,qe:3,fe:4,wb:5},void 0),h("jspb.BinaryConstants.FieldTypeToWireType",function(e){switch(e){case 5:case 3:case 13:case 4:case 17:case 18:case 8:case 14:case 31:return 0;case 1:case 6:case 16:case 30:return 1;case 9:case 11:case 12:return 2;case 2:case 7:case 15:return 5;default:return-1}},void 0),h("jspb.BinaryConstants.INVALID_FIELD_NUMBER",-1,void 0),h("jspb.BinaryConstants.FLOAT32_EPS",1401298464324817e-60,void 0),h("jspb.BinaryConstants.FLOAT32_MIN",11754943508222875e-54,void 0),h("jspb.BinaryConstants.FLOAT32_MAX",34028234663852886e22,void 0),h("jspb.BinaryConstants.FLOAT64_EPS",5e-324,void 0),h("jspb.BinaryConstants.FLOAT64_MIN",22250738585072014e-324,void 0),h("jspb.BinaryConstants.FLOAT64_MAX",17976931348623157e292,void 0),h("jspb.BinaryConstants.TWO_TO_20",1048576,void 0),h("jspb.BinaryConstants.TWO_TO_23",8388608,void 0),h("jspb.BinaryConstants.TWO_TO_31",2147483648,void 0),h("jspb.BinaryConstants.TWO_TO_32",4294967296,void 0),h("jspb.BinaryConstants.TWO_TO_52",4503599627370496,void 0),h("jspb.BinaryConstants.TWO_TO_63",0x8000000000000000,void 0),h("jspb.BinaryConstants.TWO_TO_64",0x10000000000000000,void 0),h("jspb.BinaryConstants.ZERO_HASH","\0\0\0\0\0\0\0\0",void 0);var P=0,L=0;function B(e){var t=e>>>0;e=Math.floor((e-t)/4294967296)>>>0,P=t,L=e}function j(e){var t=0>e,r=(e=Math.abs(e))>>>0;e=Math.floor((e-r)/4294967296),e>>>=0,t&&(e=~e>>>0,4294967295<(r=(~r>>>0)+1)&&(r=0,4294967295<++e&&(e=0))),P=r,L=e}function U(e){var t=0>e;B(e=2*Math.abs(e)),e=P;var r=L;t&&(0==e?0==r?r=e=4294967295:(r--,e=4294967295):e--),P=e,L=r}function W(e){var t=0>e?1:0;if(0===(e=t?-e:e))0<1/e?P=L=0:(L=0,P=2147483648);else if(isNaN(e))L=0,P=2147483647;else if(34028234663852886e22<e)L=0,P=(t<<31|2139095040)>>>0;else if(11754943508222875e-54>e)e=Math.round(e/Math.pow(2,-149)),L=0,P=(t<<31|e)>>>0;else{var r=Math.floor(Math.log(e)/Math.LN2);e*=Math.pow(2,-r),16777216<=(e=Math.round(8388608*e))&&++r,L=0,P=(t<<31|r+127<<23|8388607&e)>>>0}}function z(e){var t=0>e?1:0;if(0===(e=t?-e:e))L=0<1/e?0:2147483648,P=0;else if(isNaN(e))L=2147483647,P=4294967295;else if(17976931348623157e292<e)L=(t<<31|2146435072)>>>0,P=0;else if(22250738585072014e-324>e)e/=Math.pow(2,-1074),L=(t<<31|e/4294967296)>>>0,P=e>>>0;else{var r=e,i=0;if(2<=r)for(;2<=r&&1023>i;)i++,r/=2;else for(;1>r&&-1022<i;)r*=2,i--;e*=Math.pow(2,-i),L=(t<<31|i+1023<<20|1048576*e&1048575)>>>0,P=4503599627370496*e>>>0}}function H(e){var t=e.charCodeAt(4),r=e.charCodeAt(5),i=e.charCodeAt(6),n=e.charCodeAt(7);P=e.charCodeAt(0)+(e.charCodeAt(1)<<8)+(e.charCodeAt(2)<<16)+(e.charCodeAt(3)<<24)>>>0,L=t+(r<<8)+(i<<16)+(n<<24)>>>0}function K(e,t){return 4294967296*t+(e>>>0)}function G(e,t){var r=2147483648&t;return r&&(t=~t>>>0,0==(e=1+~e>>>0)&&(t=t+1>>>0)),e=K(e,t),r?-e:e}function q(e,t,r){var i=t>>31;return r(e<<1^i,(t<<1|e>>>31)^i)}function V(e,t){return Y(e,t,G)}function Y(e,t,r){var i=-(1&e);return r((e>>>1|t<<31)^i,t>>>1^i)}function X(e){var t=2*(e>>31)+1,r=e>>>23&255;return e&=8388607,255==r?e?NaN:1/0*t:0==r?t*Math.pow(2,-149)*e:t*Math.pow(2,r-150)*(e+Math.pow(2,23))}function J(e,t){var r=2*(t>>31)+1,i=t>>>20&2047;return e=4294967296*(1048575&t)+e,2047==i?e?NaN:1/0*r:0==i?r*Math.pow(2,-1074)*e:r*Math.pow(2,i-1075)*(e+4503599627370496)}function Z(e,t){return String.fromCharCode(e>>>0&255,e>>>8&255,e>>>16&255,e>>>24&255,t>>>0&255,t>>>8&255,t>>>16&255,t>>>24&255)}function Q(e,t){function r(e,t){return e=e?String(e):"",t?"0000000".slice(e.length)+e:e}if(2097151>=t)return""+K(e,t);var i=(e>>>24|t<<8)>>>0&16777215;return e=(16777215&e)+6777216*i+6710656*(t=t>>16&65535),i+=8147497*t,t*=2,1e7<=e&&(i+=Math.floor(e/1e7),e%=1e7),1e7<=i&&(t+=Math.floor(i/1e7),i%=1e7),r(t,0)+r(i,t)+r(e,1)}function $(e,t){var r=2147483648&t;return r&&(t=~t+(0==(e=1+~e>>>0)?1:0)>>>0),e=Q(e,t),r?"-"+e:e}function ee(e,t){H(e),e=P;var r=L;return t?$(e,r):Q(e,r)}function te(e){function t(e,t){for(var r=0;8>r&&(1!==e||0<t);r++)t=e*i[r]+t,i[r]=255&t,t>>>=8}b(0<e.length);var r=!1;"-"===e[0]&&(r=!0,e=e.slice(1));for(var i=[0,0,0,0,0,0,0,0],n=0;n<e.length;n++)t(10,e.charCodeAt(n)-48);return r&&(function(){for(var e=0;8>e;e++)i[e]=255&~i[e]}(),t(1,1)),R(i)}function re(e){return String.fromCharCode(10>e?48+e:87+e)}function ie(e){return 97<=e?e-97+10:e-48}function ne(e,t,r,i,n){var s=0;if(128>i)for(;t<r&&e[t++]==i;)s++,t+=n;else for(;t<r;){for(var a=i;128<a;){if(e[t++]!=(127&a|128))return s;a>>=7}if(e[t++]!=a)break;s++,t+=n}return s}function se(e){return e.constructor===Uint8Array?e:e.constructor===ArrayBuffer||e.constructor===Array?new Uint8Array(e):e.constructor===String?N(e):e instanceof Uint8Array?new Uint8Array(e.buffer,e.byteOffset,e.byteLength):(I("Type not convertible to Uint8Array."),new Uint8Array(0))}function ae(e,t,r){this.b=null,this.a=this.c=this.h=0,this.v=!1,e&&this.H(e,t,r)}h("jspb.utils.getSplit64Low",function(){return P},void 0),h("jspb.utils.getSplit64High",function(){return L},void 0),h("jspb.utils.splitUint64",B,void 0),h("jspb.utils.splitInt64",j,void 0),h("jspb.utils.splitZigzag64",U,void 0),h("jspb.utils.splitFloat32",W,void 0),h("jspb.utils.splitFloat64",z,void 0),h("jspb.utils.splitHash64",H,void 0),h("jspb.utils.joinUint64",K,void 0),h("jspb.utils.joinInt64",G,void 0),h("jspb.utils.toZigzag64",q,void 0),h("jspb.utils.joinZigzag64",V,void 0),h("jspb.utils.fromZigzag64",Y,void 0),h("jspb.utils.joinFloat32",X,void 0),h("jspb.utils.joinFloat64",J,void 0),h("jspb.utils.joinHash64",Z,void 0),h("jspb.utils.DIGITS","0123456789abcdef".split(""),void 0),h("jspb.utils.joinUnsignedDecimalString",Q,void 0),h("jspb.utils.joinSignedDecimalString",$,void 0),h("jspb.utils.hash64ToDecimalString",ee,void 0),h("jspb.utils.hash64ArrayToDecimalStrings",function(e,t){for(var r=Array(e.length),i=0;i<e.length;i++)r[i]=ee(e[i],t);return r},void 0),h("jspb.utils.decimalStringToHash64",te,void 0),h("jspb.utils.splitDecimalString",function(e){H(te(e))},void 0),h("jspb.utils.hash64ToHexString",function(e){var t=Array(18);t[0]="0",t[1]="x";for(var r=0;8>r;r++){var i=e.charCodeAt(7-r);t[2*r+2]=re(i>>4),t[2*r+3]=re(15&i)}return t.join("")},void 0),h("jspb.utils.hexStringToHash64",function(e){b(18==(e=e.toLowerCase()).length),b("0"==e[0]),b("x"==e[1]);for(var t="",r=0;8>r;r++)t=String.fromCharCode(16*ie(e.charCodeAt(2*r+2))+ie(e.charCodeAt(2*r+3)))+t;return t},void 0),h("jspb.utils.hash64ToNumber",function(e,t){H(e),e=P;var r=L;return t?G(e,r):K(e,r)},void 0),h("jspb.utils.numberToHash64",function(e){return j(e),Z(P,L)},void 0),h("jspb.utils.countVarints",function(e,t,r){for(var i=0,n=t;n<r;n++)i+=e[n]>>7;return r-t-i},void 0),h("jspb.utils.countVarintFields",function(e,t,r,i){var n=0;if(128>(i*=8))for(;t<r&&e[t++]==i;)for(n++;;){var s=e[t++];if(!(128&s))break}else for(;t<r;){for(s=i;128<s;){if(e[t]!=(127&s|128))return n;t++,s>>=7}if(e[t++]!=s)break;for(n++;128&(s=e[t++]););}return n},void 0),h("jspb.utils.countFixed32Fields",function(e,t,r,i){return ne(e,t,r,8*i+5,4)},void 0),h("jspb.utils.countFixed64Fields",function(e,t,r,i){return ne(e,t,r,8*i+1,8)},void 0),h("jspb.utils.countDelimitedFields",function(e,t,r,i){var n=0;for(i=8*i+2;t<r;){for(var s=i;128<s;){if(e[t++]!=(127&s|128))return n;s>>=7}if(e[t++]!=s)break;n++;for(var a=0,o=1;a+=(127&(s=e[t++]))*o,o*=128,128&s;);t+=a}return n},void 0),h("jspb.utils.debugBytesToTextFormat",function(e){var t='"';if(e){e=se(e);for(var r=0;r<e.length;r++)t+="\\x",16>e[r]&&(t+="0"),t+=e[r].toString(16)}return t+'"'},void 0),h("jspb.utils.debugScalarToTextFormat",function(e){if("string"==typeof e){e=String(e);for(var t=['"'],r=0;r<e.length;r++){var i,n=e.charAt(r),s=n.charCodeAt(0),a=r+1;(i=A[n])||(31<s&&127>s||((s=n)in _?n=_[s]:s in A?n=_[s]=A[s]:(31<(i=s.charCodeAt(0))&&127>i?n=s:(256>i?(n="\\x",(16>i||256<i)&&(n+="0")):(n="\\u",4096>i&&(n+="0")),n+=i.toString(16).toUpperCase()),n=_[s]=n)),i=n),t[a]=i}t.push('"'),e=t.join("")}else e=e.toString();return e},void 0),h("jspb.utils.stringToByteArray",function(e){for(var t=new Uint8Array(e.length),r=0;r<e.length;r++){var i=e.charCodeAt(r);if(255<i)throw Error("Conversion error: string contains codepoint outside of byte range");t[r]=i}return t},void 0),h("jspb.utils.byteSourceToUint8Array",se,void 0),h("jspb.BinaryDecoder",ae,void 0);var oe=[];function le(e,t,r){if(oe.length){var i=oe.pop();return e&&i.H(e,t,r),i}return new ae(e,t,r)}function ue(e,t,r){this.a=le(e,t,r),this.O=this.a.B(),this.b=this.c=-1,this.h=!1,this.v=null}ae.getInstanceCacheLength=function(){return oe.length},ae.alloc=le,ae.prototype.Ca=function(){this.clear(),100>oe.length&&oe.push(this)},ae.prototype.free=ae.prototype.Ca,ae.prototype.clone=function(){return le(this.b,this.h,this.c-this.h)},ae.prototype.clone=ae.prototype.clone,ae.prototype.clear=function(){this.b=null,this.a=this.c=this.h=0,this.v=!1},ae.prototype.clear=ae.prototype.clear,ae.prototype.Y=function(){return this.b},ae.prototype.getBuffer=ae.prototype.Y,ae.prototype.H=function(e,t,r){this.b=se(e),this.h=void 0!==t?t:0,this.c=void 0!==r?this.h+r:this.b.length,this.a=this.h},ae.prototype.setBlock=ae.prototype.H,ae.prototype.Db=function(){return this.c},ae.prototype.getEnd=ae.prototype.Db,ae.prototype.setEnd=function(e){this.c=e},ae.prototype.setEnd=ae.prototype.setEnd,ae.prototype.reset=function(){this.a=this.h},ae.prototype.reset=ae.prototype.reset,ae.prototype.B=function(){return this.a},ae.prototype.getCursor=ae.prototype.B,ae.prototype.Ma=function(e){this.a=e},ae.prototype.setCursor=ae.prototype.Ma,ae.prototype.advance=function(e){this.a+=e,b(this.a<=this.c)},ae.prototype.advance=ae.prototype.advance,ae.prototype.ya=function(){return this.a==this.c},ae.prototype.atEnd=ae.prototype.ya,ae.prototype.Qb=function(){return this.a>this.c},ae.prototype.pastEnd=ae.prototype.Qb,ae.prototype.getError=function(){return this.v||0>this.a||this.a>this.c},ae.prototype.getError=ae.prototype.getError,ae.prototype.w=function(e){for(var t=128,r=0,i=0,n=0;4>n&&128<=t;n++)r|=(127&(t=this.b[this.a++]))<<7*n;if(128<=t&&(r|=(127&(t=this.b[this.a++]))<<28,i|=(127&t)>>4),128<=t)for(n=0;5>n&&128<=t;n++)i|=(127&(t=this.b[this.a++]))<<7*n+3;if(128>t)return e(r>>>0,i>>>0);I("Failed to read varint, encoding is invalid."),this.v=!0},ae.prototype.readSplitVarint64=ae.prototype.w,ae.prototype.ea=function(e){return this.w(function(t,r){return Y(t,r,e)})},ae.prototype.readSplitZigzagVarint64=ae.prototype.ea,ae.prototype.ta=function(e){var t=this.b,r=this.a;this.a+=8;for(var i=0,n=0,s=r+7;s>=r;s--)i=i<<8|t[s],n=n<<8|t[s+4];return e(i,n)},ae.prototype.readSplitFixed64=ae.prototype.ta,ae.prototype.kb=function(){for(;128&this.b[this.a];)this.a++;this.a++},ae.prototype.skipVarint=ae.prototype.kb,ae.prototype.mb=function(e){for(;128<e;)this.a--,e>>>=7;this.a--},ae.prototype.unskipVarint=ae.prototype.mb,ae.prototype.o=function(){var e=this.b,t=e[this.a],r=127&t;return 128>t?(this.a+=1,b(this.a<=this.c),r):(r|=(127&(t=e[this.a+1]))<<7,128>t?(this.a+=2,b(this.a<=this.c),r):(r|=(127&(t=e[this.a+2]))<<14,128>t?(this.a+=3,b(this.a<=this.c),r):(r|=(127&(t=e[this.a+3]))<<21,128>t?(this.a+=4,b(this.a<=this.c),r):(r|=(15&(t=e[this.a+4]))<<28,128>t?(this.a+=5,b(this.a<=this.c),r>>>0):(this.a+=5,128<=e[this.a++]&&128<=e[this.a++]&&128<=e[this.a++]&&128<=e[this.a++]&&128<=e[this.a++]&&b(!1),b(this.a<=this.c),r)))))},ae.prototype.readUnsignedVarint32=ae.prototype.o,ae.prototype.da=function(){return~~this.o()},ae.prototype.readSignedVarint32=ae.prototype.da,ae.prototype.O=function(){return this.o().toString()},ae.prototype.Ea=function(){return this.da().toString()},ae.prototype.readSignedVarint32String=ae.prototype.Ea,ae.prototype.Ia=function(){var e=this.o();return e>>>1^-(1&e)},ae.prototype.readZigzagVarint32=ae.prototype.Ia,ae.prototype.Ga=function(){return this.w(K)},ae.prototype.readUnsignedVarint64=ae.prototype.Ga,ae.prototype.Ha=function(){return this.w(Q)},ae.prototype.readUnsignedVarint64String=ae.prototype.Ha,ae.prototype.sa=function(){return this.w(G)},ae.prototype.readSignedVarint64=ae.prototype.sa,ae.prototype.Fa=function(){return this.w($)},ae.prototype.readSignedVarint64String=ae.prototype.Fa,ae.prototype.Ja=function(){return this.w(V)},ae.prototype.readZigzagVarint64=ae.prototype.Ja,ae.prototype.fb=function(){return this.ea(Z)},ae.prototype.readZigzagVarintHash64=ae.prototype.fb,ae.prototype.Ka=function(){return this.ea($)},ae.prototype.readZigzagVarint64String=ae.prototype.Ka,ae.prototype.Gc=function(){var e=this.b[this.a];return this.a+=1,b(this.a<=this.c),e},ae.prototype.readUint8=ae.prototype.Gc,ae.prototype.Ec=function(){var e=this.b[this.a],t=this.b[this.a+1];return this.a+=2,b(this.a<=this.c),e|t<<8},ae.prototype.readUint16=ae.prototype.Ec,ae.prototype.m=function(){var e=this.b[this.a],t=this.b[this.a+1],r=this.b[this.a+2],i=this.b[this.a+3];return this.a+=4,b(this.a<=this.c),(e|t<<8|r<<16|i<<24)>>>0},ae.prototype.readUint32=ae.prototype.m,ae.prototype.ga=function(){return K(this.m(),this.m())},ae.prototype.readUint64=ae.prototype.ga,ae.prototype.ha=function(){return Q(this.m(),this.m())},ae.prototype.readUint64String=ae.prototype.ha,ae.prototype.Xb=function(){var e=this.b[this.a];return this.a+=1,b(this.a<=this.c),e<<24>>24},ae.prototype.readInt8=ae.prototype.Xb,ae.prototype.Vb=function(){var e=this.b[this.a],t=this.b[this.a+1];return this.a+=2,b(this.a<=this.c),(e|t<<8)<<16>>16},ae.prototype.readInt16=ae.prototype.Vb,ae.prototype.P=function(){var e=this.b[this.a],t=this.b[this.a+1],r=this.b[this.a+2],i=this.b[this.a+3];return this.a+=4,b(this.a<=this.c),e|t<<8|r<<16|i<<24},ae.prototype.readInt32=ae.prototype.P,ae.prototype.ba=function(){return G(this.m(),this.m())},ae.prototype.readInt64=ae.prototype.ba,ae.prototype.ca=function(){return $(this.m(),this.m())},ae.prototype.readInt64String=ae.prototype.ca,ae.prototype.aa=function(){return X(this.m())},ae.prototype.readFloat=ae.prototype.aa,ae.prototype.Z=function(){return J(this.m(),this.m())},ae.prototype.readDouble=ae.prototype.Z,ae.prototype.pa=function(){return!!this.b[this.a++]},ae.prototype.readBool=ae.prototype.pa,ae.prototype.ra=function(){return this.da()},ae.prototype.readEnum=ae.prototype.ra,ae.prototype.fa=function(e){var t=this.b,r=this.a;e=r+e;for(var i=[],n="";r<e;){var s=t[r++];if(128>s)i.push(s);else{if(192>s)continue;if(224>s){var a=t[r++];i.push((31&s)<<6|63&a)}else if(240>s){a=t[r++];var o=t[r++];i.push((15&s)<<12|(63&a)<<6|63&o)}else 248>s&&(s=(7&s)<<18|(63&(a=t[r++]))<<12|(63&(o=t[r++]))<<6|63&t[r++],s-=65536,i.push(55296+(s>>10&1023),56320+(1023&s)))}8192<=i.length&&(n+=String.fromCharCode.apply(null,i),i.length=0)}return n+=R(i),this.a=r,n},ae.prototype.readString=ae.prototype.fa,ae.prototype.Dc=function(){var e=this.o();return this.fa(e)},ae.prototype.readStringWithLength=ae.prototype.Dc,ae.prototype.qa=function(e){if(0>e||this.a+e>this.b.length)return this.v=!0,I("Invalid byte length!"),new Uint8Array(0);var t=this.b.subarray(this.a,this.a+e);return this.a+=e,b(this.a<=this.c),t},ae.prototype.readBytes=ae.prototype.qa,ae.prototype.ia=function(){return this.w(Z)},ae.prototype.readVarintHash64=ae.prototype.ia,ae.prototype.$=function(){var e=this.b,t=this.a,r=e[t],i=e[t+1],n=e[t+2],s=e[t+3],a=e[t+4],o=e[t+5],l=e[t+6];return e=e[t+7],this.a+=8,String.fromCharCode(r,i,n,s,a,o,l,e)},ae.prototype.readFixedHash64=ae.prototype.$,h("jspb.BinaryReader",ue,void 0);var ce=[];function he(e,t,r){if(ce.length){var i=ce.pop();return e&&i.a.H(e,t,r),i}return new ue(e,t,r)}function de(e,t){b(2==e.b);var r=e.a.o();r=e.a.B()+r;for(var i=[];e.a.B()<r;)i.push(t.call(e.a));return i}function pe(e,t,r,i,n){this.ma=e,this.Ba=t,this.la=r,this.Na=i,this.na=n}function fe(e,t,r,i,n,s){this.Za=e,this.za=t,this.Aa=r,this.Wa=i,this.Ab=n,this.Nb=s}function ge(){}ue.clearInstanceCache=function(){ce=[]},ue.getInstanceCacheLength=function(){return ce.length},ue.alloc=he,ue.prototype.zb=he,ue.prototype.alloc=ue.prototype.zb,ue.prototype.Ca=function(){this.a.clear(),this.b=this.c=-1,this.h=!1,this.v=null,100>ce.length&&ce.push(this)},ue.prototype.free=ue.prototype.Ca,ue.prototype.Fb=function(){return this.O},ue.prototype.getFieldCursor=ue.prototype.Fb,ue.prototype.B=function(){return this.a.B()},ue.prototype.getCursor=ue.prototype.B,ue.prototype.Y=function(){return this.a.Y()},ue.prototype.getBuffer=ue.prototype.Y,ue.prototype.Hb=function(){return this.c},ue.prototype.getFieldNumber=ue.prototype.Hb,ue.prototype.Lb=function(){return this.b},ue.prototype.getWireType=ue.prototype.Lb,ue.prototype.Mb=function(){return 2==this.b},ue.prototype.isDelimited=ue.prototype.Mb,ue.prototype.bb=function(){return 4==this.b},ue.prototype.isEndGroup=ue.prototype.bb,ue.prototype.getError=function(){return this.h||this.a.getError()},ue.prototype.getError=ue.prototype.getError,ue.prototype.H=function(e,t,r){this.a.H(e,t,r),this.b=this.c=-1},ue.prototype.setBlock=ue.prototype.H,ue.prototype.reset=function(){this.a.reset(),this.b=this.c=-1},ue.prototype.reset=ue.prototype.reset,ue.prototype.advance=function(e){this.a.advance(e)},ue.prototype.advance=ue.prototype.advance,ue.prototype.oa=function(){if(this.a.ya())return!1;if(this.getError())return I("Decoder hit an error"),!1;this.O=this.a.B();var e=this.a.o(),t=e>>>3;return 0!=(e&=7)&&5!=e&&1!=e&&2!=e&&3!=e&&4!=e?(I("Invalid wire type: %s (at position %s)",e,this.O),this.h=!0,!1):(this.c=t,this.b=e,!0)},ue.prototype.nextField=ue.prototype.oa,ue.prototype.Oa=function(){this.a.mb(this.c<<3|this.b)},ue.prototype.unskipHeader=ue.prototype.Oa,ue.prototype.Lc=function(){var e=this.c;for(this.Oa();this.oa()&&this.c==e;)this.C();this.a.ya()||this.Oa()},ue.prototype.skipMatchingFields=ue.prototype.Lc,ue.prototype.lb=function(){0!=this.b?(I("Invalid wire type for skipVarintField"),this.C()):this.a.kb()},ue.prototype.skipVarintField=ue.prototype.lb,ue.prototype.gb=function(){if(2!=this.b)I("Invalid wire type for skipDelimitedField"),this.C();else{var e=this.a.o();this.a.advance(e)}},ue.prototype.skipDelimitedField=ue.prototype.gb,ue.prototype.hb=function(){5!=this.b?(I("Invalid wire type for skipFixed32Field"),this.C()):this.a.advance(4)},ue.prototype.skipFixed32Field=ue.prototype.hb,ue.prototype.ib=function(){1!=this.b?(I("Invalid wire type for skipFixed64Field"),this.C()):this.a.advance(8)},ue.prototype.skipFixed64Field=ue.prototype.ib,ue.prototype.jb=function(){for(var e=this.c;;){if(!this.oa()){I("Unmatched start-group tag: stream EOF"),this.h=!0;break}if(4==this.b){this.c!=e&&(I("Unmatched end-group tag"),this.h=!0);break}this.C()}},ue.prototype.skipGroup=ue.prototype.jb,ue.prototype.C=function(){switch(this.b){case 0:this.lb();break;case 1:this.ib();break;case 2:this.gb();break;case 5:this.hb();break;case 3:this.jb();break;default:I("Invalid wire encoding for field.")}},ue.prototype.skipField=ue.prototype.C,ue.prototype.Hc=function(e,t){null===this.v&&(this.v={}),b(!this.v[e]),this.v[e]=t},ue.prototype.registerReadCallback=ue.prototype.Hc,ue.prototype.Ic=function(e){return b(null!==this.v),b(e=this.v[e]),e(this)},ue.prototype.runReadCallback=ue.prototype.Ic,ue.prototype.Yb=function(e,t){b(2==this.b);var r=this.a.c,i=this.a.o();i=this.a.B()+i,this.a.setEnd(i),t(e,this),this.a.Ma(i),this.a.setEnd(r)},ue.prototype.readMessage=ue.prototype.Yb,ue.prototype.Ub=function(e,t,r){b(3==this.b),b(this.c==e),r(t,this),this.h||4==this.b||(I("Group submessage did not end with an END_GROUP tag"),this.h=!0)},ue.prototype.readGroup=ue.prototype.Ub,ue.prototype.Gb=function(){b(2==this.b);var e=this.a.o(),t=this.a.B(),r=t+e;return e=le(this.a.Y(),t,e),this.a.Ma(r),e},ue.prototype.getFieldDecoder=ue.prototype.Gb,ue.prototype.P=function(){return b(0==this.b),this.a.da()},ue.prototype.readInt32=ue.prototype.P,ue.prototype.Wb=function(){return b(0==this.b),this.a.Ea()},ue.prototype.readInt32String=ue.prototype.Wb,ue.prototype.ba=function(){return b(0==this.b),this.a.sa()},ue.prototype.readInt64=ue.prototype.ba,ue.prototype.ca=function(){return b(0==this.b),this.a.Fa()},ue.prototype.readInt64String=ue.prototype.ca,ue.prototype.m=function(){return b(0==this.b),this.a.o()},ue.prototype.readUint32=ue.prototype.m,ue.prototype.Fc=function(){return b(0==this.b),this.a.O()},ue.prototype.readUint32String=ue.prototype.Fc,ue.prototype.ga=function(){return b(0==this.b),this.a.Ga()},ue.prototype.readUint64=ue.prototype.ga,ue.prototype.ha=function(){return b(0==this.b),this.a.Ha()},ue.prototype.readUint64String=ue.prototype.ha,ue.prototype.zc=function(){return b(0==this.b),this.a.Ia()},ue.prototype.readSint32=ue.prototype.zc,ue.prototype.Ac=function(){return b(0==this.b),this.a.Ja()},ue.prototype.readSint64=ue.prototype.Ac,ue.prototype.Bc=function(){return b(0==this.b),this.a.Ka()},ue.prototype.readSint64String=ue.prototype.Bc,ue.prototype.Rb=function(){return b(5==this.b),this.a.m()},ue.prototype.readFixed32=ue.prototype.Rb,ue.prototype.Sb=function(){return b(1==this.b),this.a.ga()},ue.prototype.readFixed64=ue.prototype.Sb,ue.prototype.Tb=function(){return b(1==this.b),this.a.ha()},ue.prototype.readFixed64String=ue.prototype.Tb,ue.prototype.vc=function(){return b(5==this.b),this.a.P()},ue.prototype.readSfixed32=ue.prototype.vc,ue.prototype.wc=function(){return b(5==this.b),this.a.P().toString()},ue.prototype.readSfixed32String=ue.prototype.wc,ue.prototype.xc=function(){return b(1==this.b),this.a.ba()},ue.prototype.readSfixed64=ue.prototype.xc,ue.prototype.yc=function(){return b(1==this.b),this.a.ca()},ue.prototype.readSfixed64String=ue.prototype.yc,ue.prototype.aa=function(){return b(5==this.b),this.a.aa()},ue.prototype.readFloat=ue.prototype.aa,ue.prototype.Z=function(){return b(1==this.b),this.a.Z()},ue.prototype.readDouble=ue.prototype.Z,ue.prototype.pa=function(){return b(0==this.b),!!this.a.o()},ue.prototype.readBool=ue.prototype.pa,ue.prototype.ra=function(){return b(0==this.b),this.a.sa()},ue.prototype.readEnum=ue.prototype.ra,ue.prototype.fa=function(){b(2==this.b);var e=this.a.o();return this.a.fa(e)},ue.prototype.readString=ue.prototype.fa,ue.prototype.qa=function(){b(2==this.b);var e=this.a.o();return this.a.qa(e)},ue.prototype.readBytes=ue.prototype.qa,ue.prototype.ia=function(){return b(0==this.b),this.a.ia()},ue.prototype.readVarintHash64=ue.prototype.ia,ue.prototype.Cc=function(){return b(0==this.b),this.a.fb()},ue.prototype.readSintHash64=ue.prototype.Cc,ue.prototype.w=function(e){return b(0==this.b),this.a.w(e)},ue.prototype.readSplitVarint64=ue.prototype.w,ue.prototype.ea=function(e){return b(0==this.b),this.a.w(function(t,r){return Y(t,r,e)})},ue.prototype.readSplitZigzagVarint64=ue.prototype.ea,ue.prototype.$=function(){return b(1==this.b),this.a.$()},ue.prototype.readFixedHash64=ue.prototype.$,ue.prototype.ta=function(e){return b(1==this.b),this.a.ta(e)},ue.prototype.readSplitFixed64=ue.prototype.ta,ue.prototype.gc=function(){return de(this,this.a.da)},ue.prototype.readPackedInt32=ue.prototype.gc,ue.prototype.hc=function(){return de(this,this.a.Ea)},ue.prototype.readPackedInt32String=ue.prototype.hc,ue.prototype.ic=function(){return de(this,this.a.sa)},ue.prototype.readPackedInt64=ue.prototype.ic,ue.prototype.jc=function(){return de(this,this.a.Fa)},ue.prototype.readPackedInt64String=ue.prototype.jc,ue.prototype.qc=function(){return de(this,this.a.o)},ue.prototype.readPackedUint32=ue.prototype.qc,ue.prototype.rc=function(){return de(this,this.a.O)},ue.prototype.readPackedUint32String=ue.prototype.rc,ue.prototype.sc=function(){return de(this,this.a.Ga)},ue.prototype.readPackedUint64=ue.prototype.sc,ue.prototype.tc=function(){return de(this,this.a.Ha)},ue.prototype.readPackedUint64String=ue.prototype.tc,ue.prototype.nc=function(){return de(this,this.a.Ia)},ue.prototype.readPackedSint32=ue.prototype.nc,ue.prototype.oc=function(){return de(this,this.a.Ja)},ue.prototype.readPackedSint64=ue.prototype.oc,ue.prototype.pc=function(){return de(this,this.a.Ka)},ue.prototype.readPackedSint64String=ue.prototype.pc,ue.prototype.bc=function(){return de(this,this.a.m)},ue.prototype.readPackedFixed32=ue.prototype.bc,ue.prototype.cc=function(){return de(this,this.a.ga)},ue.prototype.readPackedFixed64=ue.prototype.cc,ue.prototype.dc=function(){return de(this,this.a.ha)},ue.prototype.readPackedFixed64String=ue.prototype.dc,ue.prototype.kc=function(){return de(this,this.a.P)},ue.prototype.readPackedSfixed32=ue.prototype.kc,ue.prototype.lc=function(){return de(this,this.a.ba)},ue.prototype.readPackedSfixed64=ue.prototype.lc,ue.prototype.mc=function(){return de(this,this.a.ca)},ue.prototype.readPackedSfixed64String=ue.prototype.mc,ue.prototype.fc=function(){return de(this,this.a.aa)},ue.prototype.readPackedFloat=ue.prototype.fc,ue.prototype.$b=function(){return de(this,this.a.Z)},ue.prototype.readPackedDouble=ue.prototype.$b,ue.prototype.Zb=function(){return de(this,this.a.pa)},ue.prototype.readPackedBool=ue.prototype.Zb,ue.prototype.ac=function(){return de(this,this.a.ra)},ue.prototype.readPackedEnum=ue.prototype.ac,ue.prototype.uc=function(){return de(this,this.a.ia)},ue.prototype.readPackedVarintHash64=ue.prototype.uc,ue.prototype.ec=function(){return de(this,this.a.$)},ue.prototype.readPackedFixedHash64=ue.prototype.ec,h("jspb.ExtensionFieldInfo",pe,void 0),h("jspb.ExtensionFieldBinaryInfo",fe,void 0),pe.prototype.F=function(){return!!this.la},pe.prototype.isMessageType=pe.prototype.F,h("jspb.Message",ge,void 0),ge.GENERATE_TO_OBJECT=!0,ge.GENERATE_FROM_OBJECT=!0;var me="function"==typeof Uint8Array;ge.prototype.Ib=function(){return this.b},ge.prototype.getJsPbMessageId=ge.prototype.Ib,ge.initialize=function(e,t,r,i,n,s){if(e.f=null,t||(t=r?[r]:[]),e.b=r?String(r):void 0,e.D=0===r?-1:0,e.u=t,t=-1,!(r=e.u.length)||(t=r-1,null===(r=e.u[t])||"object"!=typeof r||Array.isArray(r)||me&&r instanceof Uint8Array)?-1<i?(e.G=Math.max(i,t+1-e.D),e.i=null):e.G=Number.MAX_VALUE:(e.G=t-e.D,e.i=r),e.a={},n)for(i=0;i<n.length;i++)(t=n[i])<e.G?(t+=e.D,e.u[t]=e.u[t]||ye):(ve(e),e.i[t]=e.i[t]||ye);if(s&&s.length)for(i=0;i<s.length;i++)_e(e,s[i])};var ye=Object.freeze?Object.freeze([]):[];function ve(e){var t=e.G+e.D;e.u[t]||(e.i=e.u[t]={})}function be(e,t,r){for(var i=[],n=0;n<e.length;n++)i[n]=t.call(e[n],r,e[n]);return i}function Ie(e,t){if(t<e.G){t+=e.D;var r=e.u[t];return r===ye?e.u[t]=[]:r}if(e.i)return(r=e.i[t])===ye?e.i[t]=[]:r}function we(e,t){return null==(e=Ie(e,t))?e:+e}function Ee(e,t){return null==(e=Ie(e,t))?e:!!e}function ke(e){return null==e||"string"==typeof e?e:me&&e instanceof Uint8Array?x(e):(I("Cannot coerce to b64 string: "+d(e)),null)}function Se(e){return null==e||e instanceof Uint8Array?e:"string"==typeof e?N(e):(I("Cannot coerce to Uint8Array: "+d(e)),null)}function Me(e){if(e&&1<e.length){var t=d(e[0]);g(e,function(e){d(e)!=t&&I("Inconsistent type in JSPB repeated field array. Got "+d(e)+" expected "+t)})}}function Fe(e,t,r){return null==(e=Ie(e,t))?r:e}function Te(e,t,r){return w(e,ge),t<e.G?e.u[t+e.D]=r:(ve(e),e.i[t]=r),e}function Re(e,t,r,i){return w(e,ge),r!==i?Te(e,t,r):t<e.G?e.u[t+e.D]=null:(ve(e),delete e.i[t]),e}function Ae(e,t,r,i){return w(e,ge),(r=_e(e,r))&&r!==t&&void 0!==i&&(e.f&&r in e.f&&(e.f[r]=void 0),Te(e,r,void 0)),Te(e,t,i)}function _e(e,t){for(var r,i,n=0;n<t.length;n++){var s=t[n],a=Ie(e,s);null!=a&&(r=s,i=a,Te(e,s,void 0))}return r?(Te(e,r,i),r):0}function Oe(e,t,r){if(e.f||(e.f={}),!e.f[r]){for(var i=Ie(e,r),n=[],s=0;s<i.length;s++)n[s]=new t(i[s]);e.f[r]=n}}function Ce(e){if(e.f)for(var t in e.f){var r=e.f[t];if(Array.isArray(r))for(var i=0;i<r.length;i++)r[i]&&r[i].g();else r&&r.g()}}function xe(e,t){e=e||{},t=t||{};var r,i={};for(r in e)i[r]=0;for(r in t)i[r]=0;for(r in i)if(!Ne(e[r],t[r]))return!1;return!0}function Ne(e,t){if(e==t)return!0;if(!p(e)||!p(t))return!!("number"==typeof e&&isNaN(e)||"number"==typeof t&&isNaN(t))&&String(e)==String(t);if(e.constructor!=t.constructor)return!1;if(me&&e.constructor===Uint8Array){if(e.length!=t.length)return!1;for(var r=0;r<e.length;r++)if(e[r]!=t[r])return!1;return!0}if(e.constructor===Array){var i=void 0,n=void 0,s=Math.max(e.length,t.length);for(r=0;r<s;r++){var a=e[r],o=t[r];if(a&&a.constructor==Object&&(b(void 0===i),b(r===e.length-1),i=a,a=void 0),o&&o.constructor==Object&&(b(void 0===n),b(r===t.length-1),n=o,o=void 0),!Ne(a,o))return!1}return!i&&!n||xe(i=i||{},n=n||{})}if(e.constructor===Object)return xe(e,t);throw Error("Invalid type in JSPB array")}function De(e){return new e.constructor(Pe(e.g()))}function Pe(e){if(Array.isArray(e)){for(var t=Array(e.length),r=0;r<e.length;r++){var i=e[r];null!=i&&(t[r]="object"==typeof i?Pe(b(i)):i)}return t}if(me&&e instanceof Uint8Array)return new Uint8Array(e);for(r in t={},e)null!=(i=e[r])&&(t[r]="object"==typeof i?Pe(b(i)):i);return t}ge.toObjectList=be,ge.toObjectExtension=function(e,t,r,i,n){for(var s in r){var a=r[s],o=i.call(e,a);if(null!=o){for(var l in a.Ba)if(a.Ba.hasOwnProperty(l))break;t[l]=a.Na?a.na?be(o,a.Na,n):a.Na(n,o):o}}},ge.serializeBinaryExtensions=function(e,t,r,i){for(var n in r){var s=r[n],a=s.Za;if(!s.Aa)throw Error("Message extension present that was generated without binary serialization support");var o=i.call(e,a);if(null!=o)if(a.F()){if(!s.Wa)throw Error("Message extension present holding submessage without binary support enabled, and message is being serialized to binary format");s.Aa.call(t,a.ma,o,s.Wa)}else s.Aa.call(t,a.ma,o)}},ge.readBinaryExtension=function(e,t,r,i,n){var s=r[t.c];if(s){if(r=s.Za,!s.za)throw Error("Deserializing extension whose generated code does not support binary format");if(r.F()){var a=new r.la;s.za.call(t,a,s.Ab)}else a=s.za.call(t);r.na&&!s.Nb?(t=i.call(e,r))?t.push(a):n.call(e,r,[a]):n.call(e,r,a)}else t.C()},ge.getField=Ie,ge.getRepeatedField=function(e,t){return Ie(e,t)},ge.getOptionalFloatingPointField=we,ge.getBooleanField=Ee,ge.getRepeatedFloatingPointField=function(e,t){var r=Ie(e,t);if(e.a||(e.a={}),!e.a[t]){for(var i=0;i<r.length;i++)r[i]=+r[i];e.a[t]=!0}return r},ge.getRepeatedBooleanField=function(e,t){var r=Ie(e,t);if(e.a||(e.a={}),!e.a[t]){for(var i=0;i<r.length;i++)r[i]=!!r[i];e.a[t]=!0}return r},ge.bytesAsB64=ke,ge.bytesAsU8=Se,ge.bytesListAsB64=function(e){return Me(e),e.length&&"string"!=typeof e[0]?m(e,ke):e},ge.bytesListAsU8=function(e){return Me(e),!e.length||e[0]instanceof Uint8Array?e:m(e,Se)},ge.getFieldWithDefault=Fe,ge.getBooleanFieldWithDefault=function(e,t,r){return null==(e=Ee(e,t))?r:e},ge.getFloatingPointFieldWithDefault=function(e,t,r){return null==(e=we(e,t))?r:e},ge.getFieldProto3=Fe,ge.getMapField=function(e,t,r,i){if(e.f||(e.f={}),t in e.f)return e.f[t];var n=Ie(e,t);if(!n){if(r)return;Te(e,t,n=[])}return e.f[t]=new k(n,i)},ge.setField=Te,ge.setProto3IntField=function(e,t,r){return Re(e,t,r,0)},ge.setProto3FloatField=function(e,t,r){return Re(e,t,r,0)},ge.setProto3BooleanField=function(e,t,r){return Re(e,t,r,!1)},ge.setProto3StringField=function(e,t,r){return Re(e,t,r,"")},ge.setProto3BytesField=function(e,t,r){return Re(e,t,r,"")},ge.setProto3EnumField=function(e,t,r){return Re(e,t,r,0)},ge.setProto3StringIntField=function(e,t,r){return Re(e,t,r,"0")},ge.addToRepeatedField=function(e,t,r,i){return w(e,ge),t=Ie(e,t),null!=i?t.splice(i,0,r):t.push(r),e},ge.setOneofField=Ae,ge.computeOneofCase=_e,ge.getWrapperField=function(e,t,r,i){if(e.f||(e.f={}),!e.f[r]){var n=Ie(e,r);(i||n)&&(e.f[r]=new t(n))}return e.f[r]},ge.getRepeatedWrapperField=function(e,t,r){return Oe(e,t,r),(t=e.f[r])==ye&&(t=e.f[r]=[]),t},ge.setWrapperField=function(e,t,r){w(e,ge),e.f||(e.f={});var i=r?r.g():r;return e.f[t]=r,Te(e,t,i)},ge.setOneofWrapperField=function(e,t,r,i){w(e,ge),e.f||(e.f={});var n=i?i.g():i;return e.f[t]=i,Ae(e,t,r,n)},ge.setRepeatedWrapperField=function(e,t,r){w(e,ge),e.f||(e.f={}),r=r||[];for(var i=[],n=0;n<r.length;n++)i[n]=r[n].g();return e.f[t]=r,Te(e,t,i)},ge.addToRepeatedWrapperField=function(e,t,r,i,n){Oe(e,i,t);var s=e.f[t];return s||(s=e.f[t]=[]),r=r||new i,e=Ie(e,t),null!=n?(s.splice(n,0,r),e.splice(n,0,r.g())):(s.push(r),e.push(r.g())),r},ge.toMap=function(e,t,r,i){for(var n={},s=0;s<e.length;s++)n[t.call(e[s])]=r?r.call(e[s],i,e[s]):e[s];return n},ge.prototype.g=function(){return Ce(this),this.u},ge.prototype.toArray=ge.prototype.g,ge.prototype.toString=function(){return Ce(this),this.u.toString()},ge.prototype.getExtension=function(e){if(this.i){this.f||(this.f={});var t=e.ma;if(e.na){if(e.F())return this.f[t]||(this.f[t]=m(this.i[t]||[],function(t){return new e.la(t)})),this.f[t]}else if(e.F())return!this.f[t]&&this.i[t]&&(this.f[t]=new e.la(this.i[t])),this.f[t];return this.i[t]}},ge.prototype.getExtension=ge.prototype.getExtension,ge.prototype.Kc=function(e,t){this.f||(this.f={}),ve(this);var r=e.ma;return e.na?(t=t||[],e.F()?(this.f[r]=t,this.i[r]=m(t,function(e){return e.g()})):this.i[r]=t):e.F()?(this.f[r]=t,this.i[r]=t?t.g():t):this.i[r]=t,this},ge.prototype.setExtension=ge.prototype.Kc,ge.difference=function(e,t){if(!(e instanceof t.constructor))throw Error("Messages have different types.");var r=e.g();t=t.g();var i=[],n=0,s=r.length>t.length?r.length:t.length;for(e.b&&(i[0]=e.b,n=1);n<s;n++)Ne(r[n],t[n])||(i[n]=t[n]);return new e.constructor(i)},ge.equals=function(e,t){return e==t||!(!e||!t)&&e instanceof t.constructor&&Ne(e.g(),t.g())},ge.compareExtensions=xe,ge.compareFields=Ne,ge.prototype.Bb=function(){return De(this)},ge.prototype.cloneMessage=ge.prototype.Bb,ge.prototype.clone=function(){return De(this)},ge.prototype.clone=ge.prototype.clone,ge.clone=function(e){return De(e)},ge.copyInto=function(e,t){w(e,ge),w(t,ge),b(e.constructor==t.constructor,"Copy source and target message should have the same type."),e=De(e);for(var r=t.g(),i=e.g(),n=r.length=0;n<i.length;n++)r[n]=i[n];t.f=e.f,t.i=e.i},ge.registerMessageType=function(e,t){t.we=e};var Le={dump:function(e){return w(e,ge,"jspb.Message instance expected"),b(e.getExtension,"Only unobfuscated and unoptimized compilation modes supported."),Le.X(e)}};function Be(){this.a=[]}function je(e,t){this.lo=e,this.hi=t}function Ue(e,t){var r=65535&e,i=65535&t,n=t>>>16;for(t=r*i+65536*(r*n&65535)+65536*((e>>>=16)*i&65535),r=e*n+(r*n>>>16)+(e*i>>>16);4294967296<=t;)t-=4294967296,r+=1;return new je(t>>>0,r>>>0)}function We(e){for(var t=new je(0,0),r=new je(0,0),i=0;i<e.length;i++){if("0">e[i]||"9"<e[i])return null;r.lo=parseInt(e[i],10),t=t.eb(10).add(r)}return t}function ze(e,t){this.lo=e,this.hi=t}function He(e){var t=0<e.length&&"-"==e[0];return t&&(e=e.substring(1)),null===(e=We(e))?null:(t&&(e=new je(0,0).sub(e)),new ze(e.lo,e.hi))}function Ke(){this.c=[],this.b=0,this.a=new Be,this.h=[]}function Ge(e,t){var r=e.a.end();e.c.push(r),e.c.push(t),e.b+=r.length+t.length}function qe(e,t){return Ye(e,t,2),t=e.a.end(),e.c.push(t),e.b+=t.length,t.push(e.b),t}function Ve(e,t){var r=t.pop();for(b(0<=(r=e.b+e.a.length()-r));127<r;)t.push(127&r|128),r>>>=7,e.b++;t.push(r),e.b++}function Ye(e,t,r){b(1<=t&&t==Math.floor(t)),e.a.j(8*t+r)}function Xe(e,t,r){null!=r&&(Ye(e,t,0),e.a.j(r))}function Je(e,t,r){null!=r&&(Ye(e,t,0),e.a.M(r))}h("jspb.debug.dump",Le.dump,void 0),Le.X=function(e){var t=d(e);if("number"==t||"string"==t||"boolean"==t||"null"==t||"undefined"==t||"undefined"!=typeof Uint8Array&&e instanceof Uint8Array)return e;if("array"==t)return function(e,t,r){for(var i=[],n=2;n<arguments.length;++n)i[n-2]=arguments[n];Array.isArray(e)||v("Expected array but got %s: %s.",[d(e),e],t,i)}(e),m(e,Le.X);if(e instanceof k){for(var r={},i=(e=e.entries()).next();!i.done;i=e.next())r[i.value[0]]=Le.X(i.value[1]);return r}w(e,ge,"Only messages expected: "+e);var n={$name:(t=e.constructor).name||t.displayName};for(o in t.prototype){var s=/^get([A-Z]\w*)/.exec(o);if(s&&"getExtension"!=o&&"getJsPbMessageId"!=o){var a="has"+s[1];e[a]&&!e[a]()||(a=e[o](),n[Le.$a(s[1])]=Le.X(a))}}if(e.extensionObject_)return n.$extensions="Recursive dumping of extensions not supported in compiled code. Switch to uncompiled or dump extension object directly",n;for(i in t.extensions)if(/^\d+$/.test(i)){a=t.extensions[i];var o=e.getExtension(a);s=void 0,a=a.Ba;var l=[],u=0;for(s in a)l[u++]=s;s=l[0],null!=o&&(r||(r=n.$extensions={}),r[Le.$a(s)]=Le.X(o))}return n},Le.$a=function(e){return e.replace(/^[A-Z]/,function(e){return e.toLowerCase()})},h("jspb.BinaryEncoder",Be,void 0),Be.prototype.length=function(){return this.a.length},Be.prototype.length=Be.prototype.length,Be.prototype.end=function(){var e=this.a;return this.a=[],e},Be.prototype.end=Be.prototype.end,Be.prototype.l=function(e,t){for(b(e==Math.floor(e)),b(t==Math.floor(t)),b(0<=e&&4294967296>e),b(0<=t&&4294967296>t);0<t||127<e;)this.a.push(127&e|128),e=(e>>>7|t<<25)>>>0,t>>>=7;this.a.push(e)},Be.prototype.writeSplitVarint64=Be.prototype.l,Be.prototype.A=function(e,t){b(e==Math.floor(e)),b(t==Math.floor(t)),b(0<=e&&4294967296>e),b(0<=t&&4294967296>t),this.s(e),this.s(t)},Be.prototype.writeSplitFixed64=Be.prototype.A,Be.prototype.j=function(e){for(b(e==Math.floor(e)),b(0<=e&&4294967296>e);127<e;)this.a.push(127&e|128),e>>>=7;this.a.push(e)},Be.prototype.writeUnsignedVarint32=Be.prototype.j,Be.prototype.M=function(e){if(b(e==Math.floor(e)),b(-2147483648<=e&&2147483648>e),0<=e)this.j(e);else{for(var t=0;9>t;t++)this.a.push(127&e|128),e>>=7;this.a.push(1)}},Be.prototype.writeSignedVarint32=Be.prototype.M,Be.prototype.va=function(e){b(e==Math.floor(e)),b(0<=e&&0x10000000000000000>e),j(e),this.l(P,L)},Be.prototype.writeUnsignedVarint64=Be.prototype.va,Be.prototype.ua=function(e){b(e==Math.floor(e)),b(-0x8000000000000000<=e&&0x8000000000000000>e),j(e),this.l(P,L)},Be.prototype.writeSignedVarint64=Be.prototype.ua,Be.prototype.wa=function(e){b(e==Math.floor(e)),b(-2147483648<=e&&2147483648>e),this.j((e<<1^e>>31)>>>0)},Be.prototype.writeZigzagVarint32=Be.prototype.wa,Be.prototype.xa=function(e){b(e==Math.floor(e)),b(-0x8000000000000000<=e&&0x8000000000000000>e),U(e),this.l(P,L)},Be.prototype.writeZigzagVarint64=Be.prototype.xa,Be.prototype.Ta=function(e){this.W(te(e))},Be.prototype.writeZigzagVarint64String=Be.prototype.Ta,Be.prototype.W=function(e){var t=this;H(e),q(P,L,function(e,r){t.l(e>>>0,r>>>0)})},Be.prototype.writeZigzagVarintHash64=Be.prototype.W,Be.prototype.be=function(e){b(e==Math.floor(e)),b(0<=e&&256>e),this.a.push(e>>>0&255)},Be.prototype.writeUint8=Be.prototype.be,Be.prototype.ae=function(e){b(e==Math.floor(e)),b(0<=e&&65536>e),this.a.push(e>>>0&255),this.a.push(e>>>8&255)},Be.prototype.writeUint16=Be.prototype.ae,Be.prototype.s=function(e){b(e==Math.floor(e)),b(0<=e&&4294967296>e),this.a.push(e>>>0&255),this.a.push(e>>>8&255),this.a.push(e>>>16&255),this.a.push(e>>>24&255)},Be.prototype.writeUint32=Be.prototype.s,Be.prototype.V=function(e){b(e==Math.floor(e)),b(0<=e&&0x10000000000000000>e),B(e),this.s(P),this.s(L)},Be.prototype.writeUint64=Be.prototype.V,Be.prototype.Qc=function(e){b(e==Math.floor(e)),b(-128<=e&&128>e),this.a.push(e>>>0&255)},Be.prototype.writeInt8=Be.prototype.Qc,Be.prototype.Pc=function(e){b(e==Math.floor(e)),b(-32768<=e&&32768>e),this.a.push(e>>>0&255),this.a.push(e>>>8&255)},Be.prototype.writeInt16=Be.prototype.Pc,Be.prototype.S=function(e){b(e==Math.floor(e)),b(-2147483648<=e&&2147483648>e),this.a.push(e>>>0&255),this.a.push(e>>>8&255),this.a.push(e>>>16&255),this.a.push(e>>>24&255)},Be.prototype.writeInt32=Be.prototype.S,Be.prototype.T=function(e){b(e==Math.floor(e)),b(-0x8000000000000000<=e&&0x8000000000000000>e),j(e),this.A(P,L)},Be.prototype.writeInt64=Be.prototype.T,Be.prototype.ka=function(e){b(e==Math.floor(e)),b(-0x8000000000000000<=+e&&0x8000000000000000>+e),H(te(e)),this.A(P,L)},Be.prototype.writeInt64String=Be.prototype.ka,Be.prototype.L=function(e){b(1/0===e||-1/0===e||isNaN(e)||-34028234663852886e22<=e&&34028234663852886e22>=e),W(e),this.s(P)},Be.prototype.writeFloat=Be.prototype.L,Be.prototype.J=function(e){b(1/0===e||-1/0===e||isNaN(e)||-17976931348623157e292<=e&&17976931348623157e292>=e),z(e),this.s(P),this.s(L)},Be.prototype.writeDouble=Be.prototype.J,Be.prototype.I=function(e){b("boolean"==typeof e||"number"==typeof e),this.a.push(e?1:0)},Be.prototype.writeBool=Be.prototype.I,Be.prototype.R=function(e){b(e==Math.floor(e)),b(-2147483648<=e&&2147483648>e),this.M(e)},Be.prototype.writeEnum=Be.prototype.R,Be.prototype.ja=function(e){this.a.push.apply(this.a,e)},Be.prototype.writeBytes=Be.prototype.ja,Be.prototype.N=function(e){H(e),this.l(P,L)},Be.prototype.writeVarintHash64=Be.prototype.N,Be.prototype.K=function(e){H(e),this.s(P),this.s(L)},Be.prototype.writeFixedHash64=Be.prototype.K,Be.prototype.U=function(e){var t=this.a.length;!function(e,t,r){for(var i=[],n=2;n<arguments.length;++n)i[n-2]=arguments[n];"string"!=typeof e&&v("Expected string but got %s: %s.",[d(e),e],t,i)}(e);for(var r=0;r<e.length;r++){var i=e.charCodeAt(r);if(128>i)this.a.push(i);else if(2048>i)this.a.push(i>>6|192),this.a.push(63&i|128);else if(65536>i)if(55296<=i&&56319>=i&&r+1<e.length){var n=e.charCodeAt(r+1);56320<=n&&57343>=n&&(i=1024*(i-55296)+n-56320+65536,this.a.push(i>>18|240),this.a.push(i>>12&63|128),this.a.push(i>>6&63|128),this.a.push(63&i|128),r++)}else this.a.push(i>>12|224),this.a.push(i>>6&63|128),this.a.push(63&i|128)}return this.a.length-t},Be.prototype.writeString=Be.prototype.U,h("jspb.arith.UInt64",je,void 0),je.prototype.cmp=function(e){return this.hi<e.hi||this.hi==e.hi&&this.lo<e.lo?-1:this.hi==e.hi&&this.lo==e.lo?0:1},je.prototype.cmp=je.prototype.cmp,je.prototype.La=function(){return new je((this.lo>>>1|(1&this.hi)<<31)>>>0,this.hi>>>1>>>0)},je.prototype.rightShift=je.prototype.La,je.prototype.Da=function(){return new je(this.lo<<1>>>0,(this.hi<<1|this.lo>>>31)>>>0)},je.prototype.leftShift=je.prototype.Da,je.prototype.cb=function(){return!!(2147483648&this.hi)},je.prototype.msb=je.prototype.cb,je.prototype.Ob=function(){return!!(1&this.lo)},je.prototype.lsb=je.prototype.Ob,je.prototype.Ua=function(){return 0==this.lo&&0==this.hi},je.prototype.zero=je.prototype.Ua,je.prototype.add=function(e){return new je((this.lo+e.lo&4294967295)>>>0>>>0,((this.hi+e.hi&4294967295)>>>0)+(4294967296<=this.lo+e.lo?1:0)>>>0)},je.prototype.add=je.prototype.add,je.prototype.sub=function(e){return new je((this.lo-e.lo&4294967295)>>>0>>>0,((this.hi-e.hi&4294967295)>>>0)-(0>this.lo-e.lo?1:0)>>>0)},je.prototype.sub=je.prototype.sub,je.mul32x32=Ue,je.prototype.eb=function(e){var t=Ue(this.lo,e);return(e=Ue(this.hi,e)).hi=e.lo,e.lo=0,t.add(e)},je.prototype.mul=je.prototype.eb,je.prototype.Xa=function(e){if(0==e)return[];var t=new je(0,0),r=new je(this.lo,this.hi);e=new je(e,0);for(var i=new je(1,0);!e.cb();)e=e.Da(),i=i.Da();for(;!i.Ua();)0>=e.cmp(r)&&(t=t.add(i),r=r.sub(e)),e=e.La(),i=i.La();return[t,r]},je.prototype.div=je.prototype.Xa,je.prototype.toString=function(){for(var e="",t=this;!t.Ua();){var r=(t=t.Xa(10))[0];e=t[1].lo+e,t=r}return""==e&&(e="0"),e},je.prototype.toString=je.prototype.toString,je.fromString=We,je.prototype.clone=function(){return new je(this.lo,this.hi)},je.prototype.clone=je.prototype.clone,h("jspb.arith.Int64",ze,void 0),ze.prototype.add=function(e){return new ze((this.lo+e.lo&4294967295)>>>0>>>0,((this.hi+e.hi&4294967295)>>>0)+(4294967296<=this.lo+e.lo?1:0)>>>0)},ze.prototype.add=ze.prototype.add,ze.prototype.sub=function(e){return new ze((this.lo-e.lo&4294967295)>>>0>>>0,((this.hi-e.hi&4294967295)>>>0)-(0>this.lo-e.lo?1:0)>>>0)},ze.prototype.sub=ze.prototype.sub,ze.prototype.clone=function(){return new ze(this.lo,this.hi)},ze.prototype.clone=ze.prototype.clone,ze.prototype.toString=function(){var e=!!(2147483648&this.hi),t=new je(this.lo,this.hi);return e&&(t=new je(0,0).sub(t)),(e?"-":"")+t.toString()},ze.prototype.toString=ze.prototype.toString,ze.fromString=He,h("jspb.BinaryWriter",Ke,void 0),Ke.prototype.pb=function(e,t,r){Ge(this,e.subarray(t,r))},Ke.prototype.writeSerializedMessage=Ke.prototype.pb,Ke.prototype.Pb=function(e,t,r){null!=e&&null!=t&&null!=r&&this.pb(e,t,r)},Ke.prototype.maybeWriteSerializedMessage=Ke.prototype.Pb,Ke.prototype.reset=function(){this.c=[],this.a.end(),this.b=0,this.h=[]},Ke.prototype.reset=Ke.prototype.reset,Ke.prototype.ab=function(){b(0==this.h.length);for(var e=new Uint8Array(this.b+this.a.length()),t=this.c,r=t.length,i=0,n=0;n<r;n++){var s=t[n];e.set(s,i),i+=s.length}return t=this.a.end(),e.set(t,i),b((i+=t.length)==e.length),this.c=[e],e},Ke.prototype.getResultBuffer=Ke.prototype.ab,Ke.prototype.Kb=function(e){return x(this.ab(),e)},Ke.prototype.getResultBase64String=Ke.prototype.Kb,Ke.prototype.Va=function(e){this.h.push(qe(this,e))},Ke.prototype.beginSubMessage=Ke.prototype.Va,Ke.prototype.Ya=function(){b(0<=this.h.length),Ve(this,this.h.pop())},Ke.prototype.endSubMessage=Ke.prototype.Ya,Ke.prototype.Nc=function(e,t,r){switch(e){case 1:this.J(t,r);break;case 2:this.L(t,r);break;case 3:this.T(t,r);break;case 4:this.V(t,r);break;case 5:this.S(t,r);break;case 6:this.Qa(t,r);break;case 7:this.Pa(t,r);break;case 8:this.I(t,r);break;case 9:this.U(t,r);break;case 10:I("Group field type not supported in writeAny()");break;case 11:I("Message field type not supported in writeAny()");break;case 12:this.ja(t,r);break;case 13:this.s(t,r);break;case 14:this.R(t,r);break;case 15:this.Ra(t,r);break;case 16:this.Sa(t,r);break;case 17:this.rb(t,r);break;case 18:this.sb(t,r);break;case 30:this.K(t,r);break;case 31:this.N(t,r);break;default:I("Invalid field type in writeAny()")}},Ke.prototype.writeAny=Ke.prototype.Nc,Ke.prototype.S=function(e,t){null!=t&&(b(-2147483648<=t&&2147483648>t),Je(this,e,t))},Ke.prototype.writeInt32=Ke.prototype.S,Ke.prototype.ob=function(e,t){null!=t&&(b(-2147483648<=(t=parseInt(t,10))&&2147483648>t),Je(this,e,t))},Ke.prototype.writeInt32String=Ke.prototype.ob,Ke.prototype.T=function(e,t){null!=t&&(b(-0x8000000000000000<=t&&0x8000000000000000>t),null!=t&&(Ye(this,e,0),this.a.ua(t)))},Ke.prototype.writeInt64=Ke.prototype.T,Ke.prototype.ka=function(e,t){null!=t&&(t=He(t),Ye(this,e,0),this.a.l(t.lo,t.hi))},Ke.prototype.writeInt64String=Ke.prototype.ka,Ke.prototype.s=function(e,t){null!=t&&(b(0<=t&&4294967296>t),Xe(this,e,t))},Ke.prototype.writeUint32=Ke.prototype.s,Ke.prototype.ub=function(e,t){null!=t&&(b(0<=(t=parseInt(t,10))&&4294967296>t),Xe(this,e,t))},Ke.prototype.writeUint32String=Ke.prototype.ub,Ke.prototype.V=function(e,t){null!=t&&(b(0<=t&&0x10000000000000000>t),null!=t&&(Ye(this,e,0),this.a.va(t)))},Ke.prototype.writeUint64=Ke.prototype.V,Ke.prototype.vb=function(e,t){null!=t&&(t=We(t),Ye(this,e,0),this.a.l(t.lo,t.hi))},Ke.prototype.writeUint64String=Ke.prototype.vb,Ke.prototype.rb=function(e,t){null!=t&&(b(-2147483648<=t&&2147483648>t),null!=t&&(Ye(this,e,0),this.a.wa(t)))},Ke.prototype.writeSint32=Ke.prototype.rb,Ke.prototype.sb=function(e,t){null!=t&&(b(-0x8000000000000000<=t&&0x8000000000000000>t),null!=t&&(Ye(this,e,0),this.a.xa(t)))},Ke.prototype.writeSint64=Ke.prototype.sb,Ke.prototype.$d=function(e,t){null!=t&&null!=t&&(Ye(this,e,0),this.a.W(t))},Ke.prototype.writeSintHash64=Ke.prototype.$d,Ke.prototype.Zd=function(e,t){null!=t&&null!=t&&(Ye(this,e,0),this.a.Ta(t))},Ke.prototype.writeSint64String=Ke.prototype.Zd,Ke.prototype.Pa=function(e,t){null!=t&&(b(0<=t&&4294967296>t),Ye(this,e,5),this.a.s(t))},Ke.prototype.writeFixed32=Ke.prototype.Pa,Ke.prototype.Qa=function(e,t){null!=t&&(b(0<=t&&0x10000000000000000>t),Ye(this,e,1),this.a.V(t))},Ke.prototype.writeFixed64=Ke.prototype.Qa,Ke.prototype.nb=function(e,t){null!=t&&(t=We(t),Ye(this,e,1),this.a.A(t.lo,t.hi))},Ke.prototype.writeFixed64String=Ke.prototype.nb,Ke.prototype.Ra=function(e,t){null!=t&&(b(-2147483648<=t&&2147483648>t),Ye(this,e,5),this.a.S(t))},Ke.prototype.writeSfixed32=Ke.prototype.Ra,Ke.prototype.Sa=function(e,t){null!=t&&(b(-0x8000000000000000<=t&&0x8000000000000000>t),Ye(this,e,1),this.a.T(t))},Ke.prototype.writeSfixed64=Ke.prototype.Sa,Ke.prototype.qb=function(e,t){null!=t&&(t=He(t),Ye(this,e,1),this.a.A(t.lo,t.hi))},Ke.prototype.writeSfixed64String=Ke.prototype.qb,Ke.prototype.L=function(e,t){null!=t&&(Ye(this,e,5),this.a.L(t))},Ke.prototype.writeFloat=Ke.prototype.L,Ke.prototype.J=function(e,t){null!=t&&(Ye(this,e,1),this.a.J(t))},Ke.prototype.writeDouble=Ke.prototype.J,Ke.prototype.I=function(e,t){null!=t&&(b("boolean"==typeof t||"number"==typeof t),Ye(this,e,0),this.a.I(t))},Ke.prototype.writeBool=Ke.prototype.I,Ke.prototype.R=function(e,t){null!=t&&(b(-2147483648<=t&&2147483648>t),Ye(this,e,0),this.a.M(t))},Ke.prototype.writeEnum=Ke.prototype.R,Ke.prototype.U=function(e,t){null!=t&&(e=qe(this,e),this.a.U(t),Ve(this,e))},Ke.prototype.writeString=Ke.prototype.U,Ke.prototype.ja=function(e,t){null!=t&&(t=se(t),Ye(this,e,2),this.a.j(t.length),Ge(this,t))},Ke.prototype.writeBytes=Ke.prototype.ja,Ke.prototype.Rc=function(e,t,r){null!=t&&(e=qe(this,e),r(t,this),Ve(this,e))},Ke.prototype.writeMessage=Ke.prototype.Rc,Ke.prototype.Sc=function(e,t,r){null!=t&&(Ye(this,1,3),Ye(this,2,0),this.a.M(e),e=qe(this,3),r(t,this),Ve(this,e),Ye(this,1,4))},Ke.prototype.writeMessageSet=Ke.prototype.Sc,Ke.prototype.Oc=function(e,t,r){null!=t&&(Ye(this,e,3),r(t,this),Ye(this,e,4))},Ke.prototype.writeGroup=Ke.prototype.Oc,Ke.prototype.K=function(e,t){null!=t&&(b(8==t.length),Ye(this,e,1),this.a.K(t))},Ke.prototype.writeFixedHash64=Ke.prototype.K,Ke.prototype.N=function(e,t){null!=t&&(b(8==t.length),Ye(this,e,0),this.a.N(t))},Ke.prototype.writeVarintHash64=Ke.prototype.N,Ke.prototype.A=function(e,t,r){Ye(this,e,1),this.a.A(t,r)},Ke.prototype.writeSplitFixed64=Ke.prototype.A,Ke.prototype.l=function(e,t,r){Ye(this,e,0),this.a.l(t,r)},Ke.prototype.writeSplitVarint64=Ke.prototype.l,Ke.prototype.tb=function(e,t,r){Ye(this,e,0);var i=this.a;q(t,r,function(e,t){i.l(e>>>0,t>>>0)})},Ke.prototype.writeSplitZigzagVarint64=Ke.prototype.tb,Ke.prototype.Ed=function(e,t){if(null!=t)for(var r=0;r<t.length;r++)Je(this,e,t[r])},Ke.prototype.writeRepeatedInt32=Ke.prototype.Ed,Ke.prototype.Fd=function(e,t){if(null!=t)for(var r=0;r<t.length;r++)this.ob(e,t[r])},Ke.prototype.writeRepeatedInt32String=Ke.prototype.Fd,Ke.prototype.Gd=function(e,t){if(null!=t)for(var r=0;r<t.length;r++){var i=t[r];null!=i&&(Ye(this,e,0),this.a.ua(i))}},Ke.prototype.writeRepeatedInt64=Ke.prototype.Gd,Ke.prototype.Qd=function(e,t,r,i){if(null!=t)for(var n=0;n<t.length;n++)this.A(e,r(t[n]),i(t[n]))},Ke.prototype.writeRepeatedSplitFixed64=Ke.prototype.Qd,Ke.prototype.Rd=function(e,t,r,i){if(null!=t)for(var n=0;n<t.length;n++)this.l(e,r(t[n]),i(t[n]))},Ke.prototype.writeRepeatedSplitVarint64=Ke.prototype.Rd,Ke.prototype.Sd=function(e,t,r,i){if(null!=t)for(var n=0;n<t.length;n++)this.tb(e,r(t[n]),i(t[n]))},Ke.prototype.writeRepeatedSplitZigzagVarint64=Ke.prototype.Sd,Ke.prototype.Hd=function(e,t){if(null!=t)for(var r=0;r<t.length;r++)this.ka(e,t[r])},Ke.prototype.writeRepeatedInt64String=Ke.prototype.Hd,Ke.prototype.Ud=function(e,t){if(null!=t)for(var r=0;r<t.length;r++)Xe(this,e,t[r])},Ke.prototype.writeRepeatedUint32=Ke.prototype.Ud,Ke.prototype.Vd=function(e,t){if(null!=t)for(var r=0;r<t.length;r++)this.ub(e,t[r])},Ke.prototype.writeRepeatedUint32String=Ke.prototype.Vd,Ke.prototype.Wd=function(e,t){if(null!=t)for(var r=0;r<t.length;r++){var i=t[r];null!=i&&(Ye(this,e,0),this.a.va(i))}},Ke.prototype.writeRepeatedUint64=Ke.prototype.Wd,Ke.prototype.Xd=function(e,t){if(null!=t)for(var r=0;r<t.length;r++)this.vb(e,t[r])},Ke.prototype.writeRepeatedUint64String=Ke.prototype.Xd,Ke.prototype.Md=function(e,t){if(null!=t)for(var r=0;r<t.length;r++){var i=t[r];null!=i&&(Ye(this,e,0),this.a.wa(i))}},Ke.prototype.writeRepeatedSint32=Ke.prototype.Md,Ke.prototype.Nd=function(e,t){if(null!=t)for(var r=0;r<t.length;r++){var i=t[r];null!=i&&(Ye(this,e,0),this.a.xa(i))}},Ke.prototype.writeRepeatedSint64=Ke.prototype.Nd,Ke.prototype.Od=function(e,t){if(null!=t)for(var r=0;r<t.length;r++){var i=t[r];null!=i&&(Ye(this,e,0),this.a.Ta(i))}},Ke.prototype.writeRepeatedSint64String=Ke.prototype.Od,Ke.prototype.Pd=function(e,t){if(null!=t)for(var r=0;r<t.length;r++){var i=t[r];null!=i&&(Ye(this,e,0),this.a.W(i))}},Ke.prototype.writeRepeatedSintHash64=Ke.prototype.Pd,Ke.prototype.yd=function(e,t){if(null!=t)for(var r=0;r<t.length;r++)this.Pa(e,t[r])},Ke.prototype.writeRepeatedFixed32=Ke.prototype.yd,Ke.prototype.zd=function(e,t){if(null!=t)for(var r=0;r<t.length;r++)this.Qa(e,t[r])},Ke.prototype.writeRepeatedFixed64=Ke.prototype.zd,Ke.prototype.Ad=function(e,t){if(null!=t)for(var r=0;r<t.length;r++)this.nb(e,t[r])},Ke.prototype.writeRepeatedFixed64String=Ke.prototype.Ad,Ke.prototype.Jd=function(e,t){if(null!=t)for(var r=0;r<t.length;r++)this.Ra(e,t[r])},Ke.prototype.writeRepeatedSfixed32=Ke.prototype.Jd,Ke.prototype.Kd=function(e,t){if(null!=t)for(var r=0;r<t.length;r++)this.Sa(e,t[r])},Ke.prototype.writeRepeatedSfixed64=Ke.prototype.Kd,Ke.prototype.Ld=function(e,t){if(null!=t)for(var r=0;r<t.length;r++)this.qb(e,t[r])},Ke.prototype.writeRepeatedSfixed64String=Ke.prototype.Ld,Ke.prototype.Cd=function(e,t){if(null!=t)for(var r=0;r<t.length;r++)this.L(e,t[r])},Ke.prototype.writeRepeatedFloat=Ke.prototype.Cd,Ke.prototype.wd=function(e,t){if(null!=t)for(var r=0;r<t.length;r++)this.J(e,t[r])},Ke.prototype.writeRepeatedDouble=Ke.prototype.wd,Ke.prototype.ud=function(e,t){if(null!=t)for(var r=0;r<t.length;r++)this.I(e,t[r])},Ke.prototype.writeRepeatedBool=Ke.prototype.ud,Ke.prototype.xd=function(e,t){if(null!=t)for(var r=0;r<t.length;r++)this.R(e,t[r])},Ke.prototype.writeRepeatedEnum=Ke.prototype.xd,Ke.prototype.Td=function(e,t){if(null!=t)for(var r=0;r<t.length;r++)this.U(e,t[r])},Ke.prototype.writeRepeatedString=Ke.prototype.Td,Ke.prototype.vd=function(e,t){if(null!=t)for(var r=0;r<t.length;r++)this.ja(e,t[r])},Ke.prototype.writeRepeatedBytes=Ke.prototype.vd,Ke.prototype.Id=function(e,t,r){if(null!=t)for(var i=0;i<t.length;i++){var n=qe(this,e);r(t[i],this),Ve(this,n)}},Ke.prototype.writeRepeatedMessage=Ke.prototype.Id,Ke.prototype.Dd=function(e,t,r){if(null!=t)for(var i=0;i<t.length;i++)Ye(this,e,3),r(t[i],this),Ye(this,e,4)},Ke.prototype.writeRepeatedGroup=Ke.prototype.Dd,Ke.prototype.Bd=function(e,t){if(null!=t)for(var r=0;r<t.length;r++)this.K(e,t[r])},Ke.prototype.writeRepeatedFixedHash64=Ke.prototype.Bd,Ke.prototype.Yd=function(e,t){if(null!=t)for(var r=0;r<t.length;r++)this.N(e,t[r])},Ke.prototype.writeRepeatedVarintHash64=Ke.prototype.Yd,Ke.prototype.ad=function(e,t){if(null!=t&&t.length){e=qe(this,e);for(var r=0;r<t.length;r++)this.a.M(t[r]);Ve(this,e)}},Ke.prototype.writePackedInt32=Ke.prototype.ad,Ke.prototype.bd=function(e,t){if(null!=t&&t.length){e=qe(this,e);for(var r=0;r<t.length;r++)this.a.M(parseInt(t[r],10));Ve(this,e)}},Ke.prototype.writePackedInt32String=Ke.prototype.bd,Ke.prototype.cd=function(e,t){if(null!=t&&t.length){e=qe(this,e);for(var r=0;r<t.length;r++)this.a.ua(t[r]);Ve(this,e)}},Ke.prototype.writePackedInt64=Ke.prototype.cd,Ke.prototype.md=function(e,t,r,i){if(null!=t){e=qe(this,e);for(var n=0;n<t.length;n++)this.a.A(r(t[n]),i(t[n]));Ve(this,e)}},Ke.prototype.writePackedSplitFixed64=Ke.prototype.md,Ke.prototype.nd=function(e,t,r,i){if(null!=t){e=qe(this,e);for(var n=0;n<t.length;n++)this.a.l(r(t[n]),i(t[n]));Ve(this,e)}},Ke.prototype.writePackedSplitVarint64=Ke.prototype.nd,Ke.prototype.od=function(e,t,r,i){if(null!=t){e=qe(this,e);for(var n=this.a,s=0;s<t.length;s++)q(r(t[s]),i(t[s]),function(e,t){n.l(e>>>0,t>>>0)});Ve(this,e)}},Ke.prototype.writePackedSplitZigzagVarint64=Ke.prototype.od,Ke.prototype.dd=function(e,t){if(null!=t&&t.length){e=qe(this,e);for(var r=0;r<t.length;r++){var i=He(t[r]);this.a.l(i.lo,i.hi)}Ve(this,e)}},Ke.prototype.writePackedInt64String=Ke.prototype.dd,Ke.prototype.pd=function(e,t){if(null!=t&&t.length){e=qe(this,e);for(var r=0;r<t.length;r++)this.a.j(t[r]);Ve(this,e)}},Ke.prototype.writePackedUint32=Ke.prototype.pd,Ke.prototype.qd=function(e,t){if(null!=t&&t.length){e=qe(this,e);for(var r=0;r<t.length;r++)this.a.j(parseInt(t[r],10));Ve(this,e)}},Ke.prototype.writePackedUint32String=Ke.prototype.qd,Ke.prototype.rd=function(e,t){if(null!=t&&t.length){e=qe(this,e);for(var r=0;r<t.length;r++)this.a.va(t[r]);Ve(this,e)}},Ke.prototype.writePackedUint64=Ke.prototype.rd,Ke.prototype.sd=function(e,t){if(null!=t&&t.length){e=qe(this,e);for(var r=0;r<t.length;r++){var i=We(t[r]);this.a.l(i.lo,i.hi)}Ve(this,e)}},Ke.prototype.writePackedUint64String=Ke.prototype.sd,Ke.prototype.hd=function(e,t){if(null!=t&&t.length){e=qe(this,e);for(var r=0;r<t.length;r++)this.a.wa(t[r]);Ve(this,e)}},Ke.prototype.writePackedSint32=Ke.prototype.hd,Ke.prototype.jd=function(e,t){if(null!=t&&t.length){e=qe(this,e);for(var r=0;r<t.length;r++)this.a.xa(t[r]);Ve(this,e)}},Ke.prototype.writePackedSint64=Ke.prototype.jd,Ke.prototype.kd=function(e,t){if(null!=t&&t.length){e=qe(this,e);for(var r=0;r<t.length;r++)this.a.W(te(t[r]));Ve(this,e)}},Ke.prototype.writePackedSint64String=Ke.prototype.kd,Ke.prototype.ld=function(e,t){if(null!=t&&t.length){e=qe(this,e);for(var r=0;r<t.length;r++)this.a.W(t[r]);Ve(this,e)}},Ke.prototype.writePackedSintHash64=Ke.prototype.ld,Ke.prototype.Wc=function(e,t){if(null!=t&&t.length)for(Ye(this,e,2),this.a.j(4*t.length),e=0;e<t.length;e++)this.a.s(t[e])},Ke.prototype.writePackedFixed32=Ke.prototype.Wc,Ke.prototype.Xc=function(e,t){if(null!=t&&t.length)for(Ye(this,e,2),this.a.j(8*t.length),e=0;e<t.length;e++)this.a.V(t[e])},Ke.prototype.writePackedFixed64=Ke.prototype.Xc,Ke.prototype.Yc=function(e,t){if(null!=t&&t.length)for(Ye(this,e,2),this.a.j(8*t.length),e=0;e<t.length;e++){var r=We(t[e]);this.a.A(r.lo,r.hi)}},Ke.prototype.writePackedFixed64String=Ke.prototype.Yc,Ke.prototype.ed=function(e,t){if(null!=t&&t.length)for(Ye(this,e,2),this.a.j(4*t.length),e=0;e<t.length;e++)this.a.S(t[e])},Ke.prototype.writePackedSfixed32=Ke.prototype.ed,Ke.prototype.fd=function(e,t){if(null!=t&&t.length)for(Ye(this,e,2),this.a.j(8*t.length),e=0;e<t.length;e++)this.a.T(t[e])},Ke.prototype.writePackedSfixed64=Ke.prototype.fd,Ke.prototype.gd=function(e,t){if(null!=t&&t.length)for(Ye(this,e,2),this.a.j(8*t.length),e=0;e<t.length;e++)this.a.ka(t[e])},Ke.prototype.writePackedSfixed64String=Ke.prototype.gd,Ke.prototype.$c=function(e,t){if(null!=t&&t.length)for(Ye(this,e,2),this.a.j(4*t.length),e=0;e<t.length;e++)this.a.L(t[e])},Ke.prototype.writePackedFloat=Ke.prototype.$c,Ke.prototype.Uc=function(e,t){if(null!=t&&t.length)for(Ye(this,e,2),this.a.j(8*t.length),e=0;e<t.length;e++)this.a.J(t[e])},Ke.prototype.writePackedDouble=Ke.prototype.Uc,Ke.prototype.Tc=function(e,t){if(null!=t&&t.length)for(Ye(this,e,2),this.a.j(t.length),e=0;e<t.length;e++)this.a.I(t[e])},Ke.prototype.writePackedBool=Ke.prototype.Tc,Ke.prototype.Vc=function(e,t){if(null!=t&&t.length){e=qe(this,e);for(var r=0;r<t.length;r++)this.a.R(t[r]);Ve(this,e)}},Ke.prototype.writePackedEnum=Ke.prototype.Vc,Ke.prototype.Zc=function(e,t){if(null!=t&&t.length)for(Ye(this,e,2),this.a.j(8*t.length),e=0;e<t.length;e++)this.a.K(t[e])},Ke.prototype.writePackedFixedHash64=Ke.prototype.Zc,Ke.prototype.td=function(e,t){if(null!=t&&t.length){e=qe(this,e);for(var r=0;r<t.length;r++)this.a.N(t[r]);Ve(this,e)}},Ke.prototype.writePackedVarintHash64=Ke.prototype.td,t.debug=Le,t.Map=k,t.Message=ge,t.BinaryReader=ue,t.BinaryWriter=Ke,t.ExtensionFieldInfo=pe,t.ExtensionFieldBinaryInfo=fe,t.exportSymbol=function(e,t,r){h(e,t,r)},t.inherits=function(e,t){function r(){}r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e},t.object={extend:function(e,t){for(var r,i,n=1;n<arguments.length;n++){for(r in i=arguments[n])e[r]=i[r];for(var s=0;s<f.length;s++)r=f[s],Object.prototype.hasOwnProperty.call(i,r)&&(e[r]=i[r])}}},t.typeOf=d},5471:function(e,t,r){var i,n,s,a,o,l,u,c;e.exports=(n=(i=c=r(9021)).lib,s=n.WordArray,a=n.Hasher,o=i.algo,l=[],u=o.SHA1=a.extend({_doReset:function(){this._hash=new s.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var r=this._hash.words,i=r[0],n=r[1],s=r[2],a=r[3],o=r[4],u=0;u<80;u++){if(u<16)l[u]=0|e[t+u];else{var c=l[u-3]^l[u-8]^l[u-14]^l[u-16];l[u]=c<<1|c>>>31}var h=(i<<5|i>>>27)+o+l[u];h+=u<20?1518500249+(n&s|~n&a):u<40?1859775393+(n^s^a):u<60?(n&s|n&a|s&a)-1894007588:(n^s^a)-899497514,o=a,a=s,s=n<<30|n>>>2,n=i,i=h}r[0]=r[0]+i|0,r[1]=r[1]+n|0,r[2]=r[2]+s|0,r[3]=r[3]+a|0,r[4]=r[4]+o|0},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,i=8*e.sigBytes;return t[i>>>5]|=128<<24-i%32,t[14+(i+64>>>9<<4)]=Math.floor(r/4294967296),t[15+(i+64>>>9<<4)]=r,e.sigBytes=4*t.length,this._process(),this._hash},clone:function(){var e=a.clone.call(this);return e._hash=this._hash.clone(),e}}),i.SHA1=a._createHelper(u),i.HmacSHA1=a._createHmacHelper(u),c.SHA1)},5503:function(e,t,r){var i;e.exports=(i=r(9021),function(){var e=i,t=e.lib.WordArray,r=e.enc;function n(e){return e<<8&4278255360|e>>>8&16711935}r.Utf16=r.Utf16BE={stringify:function(e){for(var t=e.words,r=e.sigBytes,i=[],n=0;n<r;n+=2){var s=t[n>>>2]>>>16-n%4*8&65535;i.push(String.fromCharCode(s))}return i.join("")},parse:function(e){for(var r=e.length,i=[],n=0;n<r;n++)i[n>>>1]|=e.charCodeAt(n)<<16-n%2*16;return t.create(i,2*r)}},r.Utf16LE={stringify:function(e){for(var t=e.words,r=e.sigBytes,i=[],s=0;s<r;s+=2){var a=n(t[s>>>2]>>>16-s%4*8&65535);i.push(String.fromCharCode(a))}return i.join("")},parse:function(e){for(var r=e.length,i=[],s=0;s<r;s++)i[s>>>1]|=n(e.charCodeAt(s)<<16-s%2*16);return t.create(i,2*r)}}}(),i.enc.Utf16)},5953:function(e,t,r){var i;e.exports=(i=r(9021),r(3240),function(e){var t=i,r=t.lib,n=r.WordArray,s=r.Hasher,a=t.x64.Word,o=t.algo,l=[],u=[],c=[];!function(){for(var e=1,t=0,r=0;r<24;r++){l[e+5*t]=(r+1)*(r+2)/2%64;var i=(2*e+3*t)%5;e=t%5,t=i}for(e=0;e<5;e++)for(t=0;t<5;t++)u[e+5*t]=t+(2*e+3*t)%5*5;for(var n=1,s=0;s<24;s++){for(var o=0,h=0,d=0;d<7;d++){if(1&n){var p=(1<<d)-1;p<32?h^=1<<p:o^=1<<p-32}128&n?n=n<<1^113:n<<=1}c[s]=a.create(o,h)}}();var h=[];!function(){for(var e=0;e<25;e++)h[e]=a.create()}();var d=o.SHA3=s.extend({cfg:s.cfg.extend({outputLength:512}),_doReset:function(){for(var e=this._state=[],t=0;t<25;t++)e[t]=new a.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(e,t){for(var r=this._state,i=this.blockSize/2,n=0;n<i;n++){var s=e[t+2*n],a=e[t+2*n+1];s=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),a=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),(R=r[n]).high^=a,R.low^=s}for(var o=0;o<24;o++){for(var d=0;d<5;d++){for(var p=0,f=0,g=0;g<5;g++)p^=(R=r[d+5*g]).high,f^=R.low;var m=h[d];m.high=p,m.low=f}for(d=0;d<5;d++){var y=h[(d+4)%5],v=h[(d+1)%5],b=v.high,I=v.low;for(p=y.high^(b<<1|I>>>31),f=y.low^(I<<1|b>>>31),g=0;g<5;g++)(R=r[d+5*g]).high^=p,R.low^=f}for(var w=1;w<25;w++){var E=(R=r[w]).high,k=R.low,S=l[w];S<32?(p=E<<S|k>>>32-S,f=k<<S|E>>>32-S):(p=k<<S-32|E>>>64-S,f=E<<S-32|k>>>64-S);var M=h[u[w]];M.high=p,M.low=f}var F=h[0],T=r[0];for(F.high=T.high,F.low=T.low,d=0;d<5;d++)for(g=0;g<5;g++){var R=r[w=d+5*g],A=h[w],_=h[(d+1)%5+5*g],O=h[(d+2)%5+5*g];R.high=A.high^~_.high&O.high,R.low=A.low^~_.low&O.low}R=r[0];var C=c[o];R.high^=C.high,R.low^=C.low}},_doFinalize:function(){var t=this._data,r=t.words,i=(this._nDataBytes,8*t.sigBytes),s=32*this.blockSize;r[i>>>5]|=1<<24-i%32,r[(e.ceil((i+1)/s)*s>>>5)-1]|=128,t.sigBytes=4*r.length,this._process();for(var a=this._state,o=this.cfg.outputLength/8,l=o/8,u=[],c=0;c<l;c++){var h=a[c],d=h.high,p=h.low;d=16711935&(d<<8|d>>>24)|4278255360&(d<<24|d>>>8),p=16711935&(p<<8|p>>>24)|4278255360&(p<<24|p>>>8),u.push(p),u.push(d)}return new n.init(u,o)},clone:function(){for(var e=s.clone.call(this),t=e._state=this._state.slice(0),r=0;r<25;r++)t[r]=t[r].clone();return e}});t.SHA3=s._createHelper(d),t.HmacSHA3=s._createHmacHelper(d)}(Math),i.SHA3)},5974:function(e,t,r){"use strict";var i=r(8287).hp,n=this&&this.__generator||function(e,t){var r,i,n,s,a={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return s={next:o(0),throw:o(1),return:o(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function o(s){return function(o){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,i&&(n=2&s[0]?i.return:s[0]?i.throw||((n=i.return)&&n.call(i),0):i.next)&&!(n=n.call(i,s[1])).done)return n;switch(i=0,n&&(s=[2&s[0],n.value]),s[0]){case 0:case 1:n=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,i=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((n=(n=a.trys).length>0&&n[n.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!n||s[1]>n[0]&&s[1]<n[3])){a.label=s[1];break}if(6===s[0]&&a.label<n[1]){a.label=n[1],n=s;break}if(n&&a.label<n[2]){a.label=n[2],a.ops.push(s);break}n[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],i=0}finally{r=n=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,o])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.Deserializer=t.sizeOfFrame=t.serializeFrame=t.deserializeFrame=t.serializeFrameWithLength=t.deserializeFrames=t.deserializeFrameWithLength=t.writeUInt64BE=t.readUInt64BE=t.writeUInt24BE=t.readUInt24BE=t.MAX_VERSION=t.MAX_TTL=t.MAX_STREAM_ID=t.MAX_RESUME_LENGTH=t.MAX_REQUEST_N=t.MAX_REQUEST_COUNT=t.MAX_MIME_LENGTH=t.MAX_METADATA_LENGTH=t.MAX_LIFETIME=t.MAX_KEEPALIVE=t.MAX_CODE=t.FRAME_TYPE_OFFFSET=t.FLAGS_MASK=void 0;var s=r(2799);t.FLAGS_MASK=1023,t.FRAME_TYPE_OFFFSET=10,t.MAX_CODE=2147483647,t.MAX_KEEPALIVE=2147483647,t.MAX_LIFETIME=2147483647,t.MAX_METADATA_LENGTH=16777215,t.MAX_MIME_LENGTH=255,t.MAX_REQUEST_COUNT=2147483647,t.MAX_REQUEST_N=2147483647,t.MAX_RESUME_LENGTH=65535,t.MAX_STREAM_ID=2147483647,t.MAX_TTL=2147483647,t.MAX_VERSION=65535;var a=4294967296;function o(e,t){return e.readUInt8(t)<<16|e.readUInt8(t+1)<<8|e.readUInt8(t+2)}function l(e,t,r){return r=e.writeUInt8(t>>>16,r),r=e.writeUInt8(t>>>8&255,r),e.writeUInt8(255&t,r)}function u(e,t){var r=e.readUInt32BE(t),i=e.readUInt32BE(t+4);return r*a+i}function c(e,t,r){var i=t/a|0,n=t%a;return r=e.writeUInt32BE(i,r),e.writeUInt32BE(n,r)}function h(e){var t=o(e,0);return p(e.slice(3,3+t))}function d(e){var t,r,i,s;return n(this,function(n){switch(n.label){case 0:t=0,n.label=1;case 1:return t+3<e.length?(r=o(e,t),(s=(i=t+3)+r)>e.length?[3,3]:[4,[p(e.slice(i,s)),t=s]]):[3,3];case 2:return n.sent(),[3,1];case 3:return[2]}})}function p(e){var r=0,i=e.readInt32BE(r);r+=4;var n=e.readUInt16BE(r);r+=2;var a=n>>>t.FRAME_TYPE_OFFFSET,o=n&t.FLAGS_MASK;switch(a){case s.FrameTypes.SETUP:return function(e,t,r){e.length;var i=6,n=e.readUInt16BE(i);i+=2;var a=e.readUInt16BE(i);i+=2;var o=e.readInt32BE(i);i+=4;var l=e.readInt32BE(i);i+=4;var u=null;if(r&s.Flags.RESUME_ENABLE){var c=e.readInt16BE(i);i+=2,u=e.slice(i,i+c),i+=c}var h=e.readUInt8(i);i+=1;var d=e.toString("ascii",i,i+h);i+=h;var p=e.readUInt8(i);i+=1;var f=e.toString("ascii",i,i+p);i+=p;var g={data:null,dataMimeType:f,flags:r,keepAlive:o,lifetime:l,majorVersion:n,metadata:null,metadataMimeType:d,minorVersion:a,resumeToken:u,streamId:0,type:s.FrameTypes.SETUP};return T(e,g,i),g}(e,0,o);case s.FrameTypes.PAYLOAD:return function(e,t,r){e.length;var i={data:null,flags:r,metadata:null,streamId:t,type:s.FrameTypes.PAYLOAD};return T(e,i,6),i}(e,i,o);case s.FrameTypes.ERROR:return function(e,t,r){e.length;var i=6,n=e.readInt32BE(i);i+=4;var a=e.length-i,o="";return a>0&&(o=e.toString("utf8",i,i+a),i+=a),{code:n,flags:r,message:o,streamId:t,type:s.FrameTypes.ERROR}}(e,i,o);case s.FrameTypes.KEEPALIVE:return function(e,t,r){e.length;var i=6,n=u(e,i),a=null;return(i+=8)<e.length&&(a=e.slice(i,e.length)),{data:a,flags:r,lastReceivedPosition:n,streamId:0,type:s.FrameTypes.KEEPALIVE}}(e,0,o);case s.FrameTypes.REQUEST_FNF:return function(e,t,r){e.length;var i={data:null,flags:r,metadata:null,streamId:t,type:s.FrameTypes.REQUEST_FNF};return T(e,i,6),i}(e,i,o);case s.FrameTypes.REQUEST_RESPONSE:return function(e,t,r){var i={data:null,flags:r,metadata:null,streamId:t,type:s.FrameTypes.REQUEST_RESPONSE};return T(e,i,6),i}(e,i,o);case s.FrameTypes.REQUEST_STREAM:return function(e,t,r){e.length;var i=6,n=e.readInt32BE(i);i+=4;var a={data:null,flags:r,metadata:null,requestN:n,streamId:t,type:s.FrameTypes.REQUEST_STREAM};return T(e,a,i),a}(e,i,o);case s.FrameTypes.REQUEST_CHANNEL:return function(e,t,r){e.length;var i=6,n=e.readInt32BE(i);i+=4;var a={data:null,flags:r,metadata:null,requestN:n,streamId:t,type:s.FrameTypes.REQUEST_CHANNEL};return T(e,a,i),a}(e,i,o);case s.FrameTypes.METADATA_PUSH:return function(e,t,r){return{flags:r,metadata:6===length?null:e.slice(6,length),streamId:0,type:s.FrameTypes.METADATA_PUSH}}(e,0,o);case s.FrameTypes.REQUEST_N:return function(e,t,r){return e.length,{flags:r,requestN:e.readInt32BE(6),streamId:t,type:s.FrameTypes.REQUEST_N}}(e,i,o);case s.FrameTypes.RESUME:return function(e,t,r){e.length;var i=6,n=e.readUInt16BE(i);i+=2;var a=e.readUInt16BE(i);i+=2;var o=e.readInt16BE(i);i+=2;var l=e.slice(i,i+o),c=u(e,i+=o),h=u(e,i+=8);return i+=8,{clientPosition:h,flags:r,majorVersion:n,minorVersion:a,resumeToken:l,serverPosition:c,streamId:0,type:s.FrameTypes.RESUME}}(e,0,o);case s.FrameTypes.RESUME_OK:return function(e,t,r){return e.length,{clientPosition:u(e,6),flags:r,streamId:0,type:s.FrameTypes.RESUME_OK}}(e,0,o);case s.FrameTypes.CANCEL:return function(e,t,r){return e.length,{flags:r,streamId:t,type:s.FrameTypes.CANCEL}}(e,i,o);case s.FrameTypes.LEASE:return function(e,t,r){var i=6,n=e.readUInt32BE(i);i+=4;var a=e.readUInt32BE(i),o=null;return(i+=4)<e.length&&(o=e.slice(i,e.length)),{flags:r,metadata:o,requestCount:a,streamId:0,ttl:n,type:s.FrameTypes.LEASE}}(e,0,o)}}function f(e){switch(e.type){case s.FrameTypes.SETUP:return function(e){var t=null!=e.resumeToken?e.resumeToken.byteLength:0,r=null!=e.metadataMimeType?i.byteLength(e.metadataMimeType,"ascii"):0,n=null!=e.dataMimeType?i.byteLength(e.dataMimeType,"ascii"):0,a=M(e),o=i.allocUnsafe(6+g+(t?m+t:0)+r+n+a),l=S(e,o);return l=o.writeUInt16BE(e.majorVersion,l),l=o.writeUInt16BE(e.minorVersion,l),l=o.writeUInt32BE(e.keepAlive,l),l=o.writeUInt32BE(e.lifetime,l),e.flags&s.Flags.RESUME_ENABLE&&(l=o.writeUInt16BE(t,l),null!=e.resumeToken&&(l+=e.resumeToken.copy(o,l))),l=o.writeUInt8(r,l),null!=e.metadataMimeType&&(l+=o.write(e.metadataMimeType,l,l+r,"ascii")),l=o.writeUInt8(n,l),null!=e.dataMimeType&&(l+=o.write(e.dataMimeType,l,l+n,"ascii")),F(e,o,l),o}(e);case s.FrameTypes.PAYLOAD:return function(e){var t=M(e),r=i.allocUnsafe(6+t);return F(e,r,S(e,r)),r}(e);case s.FrameTypes.ERROR:return function(e){var t=null!=e.message?i.byteLength(e.message,"utf8"):0,r=i.allocUnsafe(6+y+t),n=S(e,r);return n=r.writeUInt32BE(e.code,n),null!=e.message&&r.write(e.message,n,n+t,"utf8"),r}(e);case s.FrameTypes.KEEPALIVE:return function(e){var t=null!=e.data?e.data.byteLength:0,r=i.allocUnsafe(6+v+t),n=S(e,r);return n=c(r,e.lastReceivedPosition,n),null!=e.data&&e.data.copy(r,n),r}(e);case s.FrameTypes.REQUEST_FNF:case s.FrameTypes.REQUEST_RESPONSE:return function(e){var t=M(e),r=i.allocUnsafe(6+t);return F(e,r,S(e,r)),r}(e);case s.FrameTypes.REQUEST_STREAM:case s.FrameTypes.REQUEST_CHANNEL:return function(e){var t=M(e),r=i.allocUnsafe(6+I+t),n=S(e,r);return n=r.writeUInt32BE(e.requestN,n),F(e,r,n),r}(e);case s.FrameTypes.METADATA_PUSH:return function(e){var t,r=e.metadata;if(null!=r){var n=S(e,t=i.allocUnsafe(6+r.byteLength));return r.copy(t,n),t}return S(e,t=i.allocUnsafe(6)),t}(e);case s.FrameTypes.REQUEST_N:return function(e){var t=i.allocUnsafe(6+w),r=S(e,t);return t.writeUInt32BE(e.requestN,r),t}(e);case s.FrameTypes.RESUME:return function(e){var t=e.resumeToken.byteLength,r=i.allocUnsafe(6+E+t),n=S(e,r);return n=r.writeUInt16BE(e.majorVersion,n),n=r.writeUInt16BE(e.minorVersion,n),n=r.writeUInt16BE(t,n),n+=e.resumeToken.copy(r,n),n=c(r,e.serverPosition,n),c(r,e.clientPosition,n),r}(e);case s.FrameTypes.RESUME_OK:return function(e){var t=i.allocUnsafe(6+k),r=S(e,t);return c(t,e.clientPosition,r),t}(e);case s.FrameTypes.CANCEL:return function(e){var t=i.allocUnsafe(6);return S(e,t),t}(e);case s.FrameTypes.LEASE:return function(e){var t=null!=e.metadata?e.metadata.byteLength:0,r=i.allocUnsafe(6+b+t),n=S(e,r);return n=r.writeUInt32BE(e.ttl,n),n=r.writeUInt32BE(e.requestCount,n),null!=e.metadata&&e.metadata.copy(r,n),r}(e)}}t.readUInt24BE=o,t.writeUInt24BE=l,t.readUInt64BE=u,t.writeUInt64BE=c,t.deserializeFrameWithLength=h,t.deserializeFrames=d,t.serializeFrameWithLength=function(e){var t=f(e),r=i.allocUnsafe(t.length+3);return l(r,t.length,0),t.copy(r,3),r},t.deserializeFrame=p,t.serializeFrame=f,t.sizeOfFrame=function(e){switch(e.type){case s.FrameTypes.SETUP:return function(e){var t=null!=e.resumeToken?e.resumeToken.byteLength:0,r=null!=e.metadataMimeType?i.byteLength(e.metadataMimeType,"ascii"):0,n=null!=e.dataMimeType?i.byteLength(e.dataMimeType,"ascii"):0,s=M(e);return 6+g+(t?m+t:0)+r+n+s}(e);case s.FrameTypes.PAYLOAD:return function(e){return 6+M(e)}(e);case s.FrameTypes.ERROR:return function(e){var t=null!=e.message?i.byteLength(e.message,"utf8"):0;return 6+y+t}(e);case s.FrameTypes.KEEPALIVE:return function(e){var t=null!=e.data?e.data.byteLength:0;return 6+v+t}(e);case s.FrameTypes.REQUEST_FNF:case s.FrameTypes.REQUEST_RESPONSE:return function(e){return 6+M(e)}(e);case s.FrameTypes.REQUEST_STREAM:case s.FrameTypes.REQUEST_CHANNEL:return function(e){var t=M(e);return 6+I+t}(e);case s.FrameTypes.METADATA_PUSH:return function(e){return 6+(null!=e.metadata?e.metadata.byteLength:0)}(e);case s.FrameTypes.REQUEST_N:return 6+w;case s.FrameTypes.RESUME:return function(e){var t=e.resumeToken.byteLength;return 6+E+t}(e);case s.FrameTypes.RESUME_OK:return 6+k;case s.FrameTypes.CANCEL:return 6;case s.FrameTypes.LEASE:return function(e){var t=null!=e.metadata?e.metadata.byteLength:0;return 6+b+t}(e)}};var g=14,m=2,y=4,v=8,b=8,I=4,w=4,E=22,k=8;function S(e,r){var i=r.writeInt32BE(e.streamId,0);return r.writeUInt16BE(e.type<<t.FRAME_TYPE_OFFFSET|e.flags&t.FLAGS_MASK,i)}function M(e){var t=0;return null!=e.data&&(t+=e.data.byteLength),s.Flags.hasMetadata(e.flags)&&(t+=3,null!=e.metadata&&(t+=e.metadata.byteLength)),t}function F(e,t,r){s.Flags.hasMetadata(e.flags)&&(null!=e.metadata?(r=l(t,e.metadata.byteLength,r),r+=e.metadata.copy(t,r)):r=l(t,0,r)),null!=e.data&&e.data.copy(t,r)}function T(e,t,r){if(s.Flags.hasMetadata(t.flags)){var i=o(e,r);r+=3,i>0&&(t.metadata=e.slice(r,r+i),r+=i)}r<e.length&&(t.data=e.slice(r,e.length))}var R=function(){function e(){}return e.prototype.deserializeFrame=function(e){return p(e)},e.prototype.deserializeFrameWithLength=function(e){return h(e)},e.prototype.deserializeFrames=function(e){return d(e)},e}();t.Deserializer=R},6298:function(e,t,r){var i;e.exports=(i=r(9021),r(754),r(4636),r(9506),r(7165),function(){var e=i,t=e.lib.StreamCipher,r=e.algo,n=[],s=[],a=[],o=r.Rabbit=t.extend({_doReset:function(){for(var e=this._key.words,t=this.cfg.iv,r=0;r<4;r++)e[r]=16711935&(e[r]<<8|e[r]>>>24)|4278255360&(e[r]<<24|e[r]>>>8);var i=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],n=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];for(this._b=0,r=0;r<4;r++)l.call(this);for(r=0;r<8;r++)n[r]^=i[r+4&7];if(t){var s=t.words,a=s[0],o=s[1],u=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),c=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),h=u>>>16|4294901760&c,d=c<<16|65535&u;for(n[0]^=u,n[1]^=h,n[2]^=c,n[3]^=d,n[4]^=u,n[5]^=h,n[6]^=c,n[7]^=d,r=0;r<4;r++)l.call(this)}},_doProcessBlock:function(e,t){var r=this._X;l.call(this),n[0]=r[0]^r[5]>>>16^r[3]<<16,n[1]=r[2]^r[7]>>>16^r[5]<<16,n[2]=r[4]^r[1]>>>16^r[7]<<16,n[3]=r[6]^r[3]>>>16^r[1]<<16;for(var i=0;i<4;i++)n[i]=16711935&(n[i]<<8|n[i]>>>24)|4278255360&(n[i]<<24|n[i]>>>8),e[t+i]^=n[i]},blockSize:4,ivSize:2});function l(){for(var e=this._X,t=this._C,r=0;r<8;r++)s[r]=t[r];for(t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0<s[0]>>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0<s[1]>>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0<s[2]>>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0<s[3]>>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0<s[4]>>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0<s[5]>>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0<s[6]>>>0?1:0)|0,this._b=t[7]>>>0<s[7]>>>0?1:0,r=0;r<8;r++){var i=e[r]+t[r],n=65535&i,o=i>>>16,l=((n*n>>>17)+n*o>>>15)+o*o,u=((4294901760&i)*i|0)+((65535&i)*i|0);a[r]=l^u}e[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,e[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,e[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,e[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,e[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,e[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,e[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,e[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}e.Rabbit=t._createHelper(o)}(),i.Rabbit)},6308:function(e,t,r){var i,n,s,a,o,l;e.exports=(l=r(9021),r(3009),n=(i=l).lib.WordArray,s=i.algo,a=s.SHA256,o=s.SHA224=a.extend({_doReset:function(){this._hash=new n.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var e=a._doFinalize.call(this);return e.sigBytes-=4,e}}),i.SHA224=a._createHelper(o),i.HmacSHA224=a._createHmacHelper(o),l.SHA224)},6372:function(e,t,r){var i;e.exports=(i=r(9021),r(7165),i.mode.CTRGladman=function(){var e=i.lib.BlockCipherMode.extend();function t(e){if(255&~(e>>24))e+=1<<24;else{var t=e>>16&255,r=e>>8&255,i=255&e;255===t?(t=0,255===r?(r=0,255===i?i=0:++i):++r):++t,e=0,e+=t<<16,e+=r<<8,e+=i}return e}var r=e.Encryptor=e.extend({processBlock:function(e,r){var i=this._cipher,n=i.blockSize,s=this._iv,a=this._counter;s&&(a=this._counter=s.slice(0),this._iv=void 0),function(e){0===(e[0]=t(e[0]))&&(e[1]=t(e[1]))}(a);var o=a.slice(0);i.encryptBlock(o,0);for(var l=0;l<n;l++)e[r+l]^=o[l]}});return e.Decryptor=r,e}(),i.mode.CTRGladman)},6440:function(e,t,r){var i;e.exports=(i=r(9021),function(){if("function"==typeof ArrayBuffer){var e=i.lib.WordArray,t=e.init,r=e.init=function(e){if(e instanceof ArrayBuffer&&(e=new Uint8Array(e)),(e instanceof Int8Array||"undefined"!=typeof Uint8ClampedArray&&e instanceof Uint8ClampedArray||e instanceof Int16Array||e instanceof Uint16Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Float32Array||e instanceof Float64Array)&&(e=new Uint8Array(e.buffer,e.byteOffset,e.byteLength)),e instanceof Uint8Array){for(var r=e.byteLength,i=[],n=0;n<r;n++)i[n>>>2]|=e[n]<<24-n%4*8;t.call(this,i,r)}else t.apply(this,arguments)};r.prototype=e}}(),i.lib.WordArray)},6546:function(e,t){"use strict";var r=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],i=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.Deferred=void 0;var i=function(){function e(){this._done=!1,this.onCloseCallbacks=[]}return Object.defineProperty(e.prototype,"done",{get:function(){return this._done},enumerable:!1,configurable:!0}),e.prototype.close=function(e){var t,i,n,s;if(this.done)console.warn("Trying to close for the second time. ".concat(e?"Dropping error [".concat(e,"]."):""));else if(this._done=!0,this._error=e,e)try{for(var a=r(this.onCloseCallbacks),o=a.next();!o.done;o=a.next())(0,o.value)(e)}catch(e){t={error:e}}finally{try{o&&!o.done&&(i=a.return)&&i.call(a)}finally{if(t)throw t.error}}else try{for(var l=r(this.onCloseCallbacks),u=l.next();!u.done;u=l.next())(0,u.value)()}catch(e){n={error:e}}finally{try{u&&!u.done&&(s=l.return)&&s.call(l)}finally{if(n)throw n.error}}},e.prototype.onClose=function(e){this._done?e(this._error):this.onCloseCallbacks.push(e)},e}();t.Deferred=i},6923:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.KeepAliveSender=t.KeepAliveHandler=t.DefaultConnectionFrameHandler=t.DefaultStreamRequestHandler=t.LeaseHandler=t.RSocketRequester=void 0;var i=r(8766),n=r(2799),s=r(5033),a=r(2320),o=r(6947),l=r(4796),u=function(){function e(e,t,r){this.connection=e,this.fragmentSize=t,this.leaseManager=r}return e.prototype.fireAndForget=function(e,t){var r=new a.RequestFnFRequesterStream(e,t,this.fragmentSize,this.leaseManager);return this.leaseManager?this.leaseManager.requestLease(r):this.connection.multiplexerDemultiplexer.createRequestStream(r),r},e.prototype.requestResponse=function(e,t){var r=new o.RequestResponseRequesterStream(e,t,this.fragmentSize,this.leaseManager);return this.leaseManager?this.leaseManager.requestLease(r):this.connection.multiplexerDemultiplexer.createRequestStream(r),r},e.prototype.requestStream=function(e,t,r){var i=new l.RequestStreamRequesterStream(e,r,this.fragmentSize,t,this.leaseManager);return this.leaseManager?this.leaseManager.requestLease(i):this.connection.multiplexerDemultiplexer.createRequestStream(i),i},e.prototype.requestChannel=function(e,t,r,i){var n=new s.RequestChannelRequesterStream(e,r,i,this.fragmentSize,t,this.leaseManager);return this.leaseManager?this.leaseManager.requestLease(n):this.connection.multiplexerDemultiplexer.createRequestStream(n),n},e.prototype.metadataPush=function(e,t){throw new Error("Method not implemented.")},e.prototype.close=function(e){this.connection.close(e)},e.prototype.onClose=function(e){this.connection.onClose(e)},e}();t.RSocketRequester=u;var c=function(){function e(e,t){this.maxPendingRequests=e,this.multiplexer=t,this.pendingRequests=[],this.expirationTime=0,this.availableLease=0}return e.prototype.handle=function(e){for(this.expirationTime=e.ttl+Date.now(),this.availableLease=e.requestCount;this.availableLease>0&&this.pendingRequests.length>0;){var t=this.pendingRequests.shift();this.availableLease--,this.multiplexer.createRequestStream(t)}},e.prototype.requestLease=function(e){var t=this.availableLease;if(t>0&&Date.now()<this.expirationTime)return this.availableLease=t-1,void this.multiplexer.createRequestStream(e);this.pendingRequests.length>=this.maxPendingRequests?e.handleReject(new i.RSocketError(i.ErrorCodes.REJECTED,"No available lease given")):this.pendingRequests.push(e)},e.prototype.cancelRequest=function(e){var t=this.pendingRequests.indexOf(e);t>-1&&this.pendingRequests.splice(t,1)},e}();t.LeaseHandler=c;var h=function(){function e(e,t){this.rsocket=e,this.fragmentSize=t}return e.prototype.handle=function(e,t){switch(e.type){case n.FrameTypes.REQUEST_FNF:return void(this.rsocket.fireAndForget&&new a.RequestFnfResponderStream(e.streamId,t,this.rsocket.fireAndForget.bind(this.rsocket),e));case n.FrameTypes.REQUEST_RESPONSE:return this.rsocket.requestResponse?void new o.RequestResponseResponderStream(e.streamId,t,this.fragmentSize,this.rsocket.requestResponse.bind(this.rsocket),e):void this.rejectRequest(e.streamId,t);case n.FrameTypes.REQUEST_STREAM:return this.rsocket.requestStream?void new l.RequestStreamResponderStream(e.streamId,t,this.fragmentSize,this.rsocket.requestStream.bind(this.rsocket),e):void this.rejectRequest(e.streamId,t);case n.FrameTypes.REQUEST_CHANNEL:return this.rsocket.requestChannel?void new s.RequestChannelResponderStream(e.streamId,t,this.fragmentSize,this.rsocket.requestChannel.bind(this.rsocket),e):void this.rejectRequest(e.streamId,t)}},e.prototype.rejectRequest=function(e,t){t.send({type:n.FrameTypes.ERROR,streamId:e,flags:n.Flags.NONE,code:i.ErrorCodes.REJECTED,message:"No available handler found"})},e.prototype.close=function(){},e}();t.DefaultStreamRequestHandler=h;var d,p=function(){function e(e,t,r,i,n){this.connection=e,this.keepAliveHandler=t,this.keepAliveSender=r,this.leaseHandler=i,this.rsocket=n}return e.prototype.handle=function(e){switch(e.type){case n.FrameTypes.KEEPALIVE:return void this.keepAliveHandler.handle(e);case n.FrameTypes.LEASE:return this.leaseHandler?void this.leaseHandler.handle(e):void 0;case n.FrameTypes.ERROR:return void this.connection.close(new i.RSocketError(e.code,e.message));case n.FrameTypes.METADATA_PUSH:return void this.rsocket.metadataPush;default:this.connection.multiplexerDemultiplexer.connectionOutbound.send({type:n.FrameTypes.ERROR,streamId:0,flags:n.Flags.NONE,message:"Received unknown frame type",code:i.ErrorCodes.CONNECTION_ERROR})}},e.prototype.pause=function(){var e;this.keepAliveHandler.pause(),null===(e=this.keepAliveSender)||void 0===e||e.pause()},e.prototype.resume=function(){var e;this.keepAliveHandler.start(),null===(e=this.keepAliveSender)||void 0===e||e.start()},e.prototype.close=function(e){var t;this.keepAliveHandler.close(),null===(t=this.rsocket.close)||void 0===t||t.call(this.rsocket,e)},e}();t.DefaultConnectionFrameHandler=p,function(e){e[e.Paused=0]="Paused",e[e.Running=1]="Running",e[e.Closed=2]="Closed"}(d||(d={}));var f,g=function(){function e(e,t){this.connection=e,this.keepAliveTimeoutDuration=t,this.state=d.Paused,this.outbound=e.multiplexerDemultiplexer.connectionOutbound}return e.prototype.handle=function(e){this.keepAliveLastReceivedMillis=Date.now(),n.Flags.hasRespond(e.flags)&&this.outbound.send({type:n.FrameTypes.KEEPALIVE,streamId:0,data:e.data,flags:e.flags^n.Flags.RESPOND,lastReceivedPosition:0})},e.prototype.start=function(){this.state===d.Paused&&(this.keepAliveLastReceivedMillis=Date.now(),this.state=d.Running,this.activeTimeout=setTimeout(this.timeoutCheck.bind(this),this.keepAliveTimeoutDuration))},e.prototype.pause=function(){this.state===d.Running&&(this.state=d.Paused,clearTimeout(this.activeTimeout))},e.prototype.close=function(){this.state=d.Closed,clearTimeout(this.activeTimeout)},e.prototype.timeoutCheck=function(){var e=Date.now()-this.keepAliveLastReceivedMillis;e>=this.keepAliveTimeoutDuration?this.connection.close(new Error("No keep-alive acks for ".concat(this.keepAliveTimeoutDuration," millis"))):this.activeTimeout=setTimeout(this.timeoutCheck.bind(this),Math.max(100,this.keepAliveTimeoutDuration-e))},e}();t.KeepAliveHandler=g,function(e){e[e.Paused=0]="Paused",e[e.Running=1]="Running",e[e.Closed=2]="Closed"}(f||(f={}));var m=function(){function e(e,t){this.outbound=e,this.keepAlivePeriodDuration=t,this.state=f.Paused}return e.prototype.sendKeepAlive=function(){this.outbound.send({type:n.FrameTypes.KEEPALIVE,streamId:0,data:void 0,flags:n.Flags.RESPOND,lastReceivedPosition:0})},e.prototype.start=function(){this.state===f.Paused&&(this.state=f.Running,this.activeInterval=setInterval(this.sendKeepAlive.bind(this),this.keepAlivePeriodDuration))},e.prototype.pause=function(){this.state===f.Running&&(this.state=f.Paused,clearInterval(this.activeInterval))},e.prototype.close=function(){this.state=f.Closed,clearInterval(this.activeInterval)},e}();t.KeepAliveSender=m},6939:function(e,t,r){var i,n,s;e.exports=(s=r(9021),r(7165),s.mode.CTR=(n=(i=s.lib.BlockCipherMode.extend()).Encryptor=i.extend({processBlock:function(e,t){var r=this._cipher,i=r.blockSize,n=this._iv,s=this._counter;n&&(s=this._counter=n.slice(0),this._iv=void 0);var a=s.slice(0);r.encryptBlock(a,0),s[i-1]=s[i-1]+1|0;for(var o=0;o<i;o++)e[t+o]^=a[o]}}),i.Decryptor=n,i),s.mode.CTR)},6947:function(e,t,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){void 0===i&&(i=r),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,i){void 0===i&&(i=r),e[i]=t[r]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&i(t,e,r);return n(t,e),t},a=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],i=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.RequestResponseResponderStream=t.RequestResponseRequesterStream=void 0;var o=r(8766),l=r(4438),u=r(2799),c=s(r(7076)),h=function(){function e(e,t,r,i){this.payload=e,this.receiver=t,this.fragmentSize=r,this.leaseManager=i,this.streamType=u.FrameTypes.REQUEST_RESPONSE}return e.prototype.handleReady=function(e,t){var r,i;if(this.done)return!1;if(this.streamId=e,this.stream=t,t.connect(this),(0,l.isFragmentable)(this.payload,this.fragmentSize,u.FrameTypes.REQUEST_RESPONSE))try{for(var n=a((0,l.fragment)(e,this.payload,this.fragmentSize,u.FrameTypes.REQUEST_RESPONSE)),s=n.next();!s.done;s=n.next()){var o=s.value;this.stream.send(o)}}catch(e){r={error:e}}finally{try{s&&!s.done&&(i=n.return)&&i.call(n)}finally{if(r)throw r.error}}else this.stream.send({type:u.FrameTypes.REQUEST_RESPONSE,data:this.payload.data,metadata:this.payload.metadata,flags:this.payload.metadata?u.Flags.METADATA:0,streamId:e});return this.hasExtension&&this.stream.send({type:u.FrameTypes.EXT,streamId:e,extendedContent:this.extendedContent,extendedType:this.extendedType,flags:this.flags}),!0},e.prototype.handleReject=function(e){this.done||(this.done=!0,this.receiver.onError(e))},e.prototype.handle=function(e){var t,r=e.type;switch(r){case u.FrameTypes.PAYLOAD:var i=u.Flags.hasComplete(e.flags),n=u.Flags.hasNext(e.flags);if(i||!u.Flags.hasFollows(e.flags)){if(this.done=!0,this.stream.disconnect(this),!n)return void this.receiver.onComplete();var s=this.hasFragments?c.reassemble(this,e.data,e.metadata):{data:e.data,metadata:e.metadata};return void this.receiver.onNext(s,!0)}if(!c.add(this,e.data,e.metadata)){t="Unexpected fragment size";break}return;case u.FrameTypes.ERROR:return this.done=!0,this.stream.disconnect(this),c.cancel(this),void this.receiver.onError(new o.RSocketError(e.code,e.message));case u.FrameTypes.EXT:if(this.hasFragments){t="Unexpected frame type [".concat(r,"] during reassembly");break}return void this.receiver.onExtension(e.extendedType,e.extendedContent,u.Flags.hasIgnore(e.flags));default:t="Unexpected frame type [".concat(r,"]")}this.close(new o.RSocketError(o.ErrorCodes.CANCELED,t)),this.stream.send({type:u.FrameTypes.CANCEL,streamId:this.streamId,flags:u.Flags.NONE}),this.stream.disconnect(this)},e.prototype.cancel=function(){var e;this.done||(this.done=!0,this.streamId?(this.stream.send({type:u.FrameTypes.CANCEL,flags:u.Flags.NONE,streamId:this.streamId}),this.stream.disconnect(this),c.cancel(this)):null===(e=this.leaseManager)||void 0===e||e.cancelRequest(this))},e.prototype.onExtension=function(e,t,r){if(!this.done)return this.streamId?void this.stream.send({streamId:this.streamId,type:u.FrameTypes.EXT,extendedType:e,extendedContent:t,flags:r?u.Flags.IGNORE:u.Flags.NONE}):(this.hasExtension=!0,this.extendedType=e,this.extendedContent=t,void(this.flags=r?u.Flags.IGNORE:u.Flags.NONE))},e.prototype.close=function(e){this.done||(this.done=!0,c.cancel(this),e?this.receiver.onError(e):this.receiver.onComplete())},e}();t.RequestResponseRequesterStream=h;var d=function(){function e(e,t,r,i,n){if(this.streamId=e,this.stream=t,this.fragmentSize=r,this.handler=i,this.streamType=u.FrameTypes.REQUEST_RESPONSE,t.connect(this),u.Flags.hasFollows(n.flags))c.add(this,n.data,n.metadata);else{var s={data:n.data,metadata:n.metadata};try{this.receiver=i(s,this)}catch(e){this.onError(e)}}}return e.prototype.handle=function(e){var t,r;if(!this.receiver||this.hasFragments)if(e.type===u.FrameTypes.PAYLOAD){if(!u.Flags.hasFollows(e.flags)){var i=c.reassemble(this,e.data,e.metadata);try{this.receiver=this.handler(i,this)}catch(e){this.onError(e)}return}if(c.add(this,e.data,e.metadata))return;r="Unexpected fragment size"}else r="Unexpected frame type [".concat(e.type,"] during reassembly");else{if(e.type===u.FrameTypes.EXT)return void this.receiver.onExtension(e.extendedType,e.extendedContent,u.Flags.hasIgnore(e.flags));r="Unexpected frame type [".concat(e.type,"]")}this.done=!0,null===(t=this.receiver)||void 0===t||t.cancel(),e.type!==u.FrameTypes.CANCEL&&e.type!==u.FrameTypes.ERROR&&this.stream.send({type:u.FrameTypes.ERROR,flags:u.Flags.NONE,code:o.ErrorCodes.CANCELED,message:r,streamId:this.streamId}),this.stream.disconnect(this),c.cancel(this)},e.prototype.onError=function(e){this.done?console.warn("Trying to error for the second time. ".concat(e?"Dropping error [".concat(e,"]."):"")):(this.done=!0,this.stream.send({type:u.FrameTypes.ERROR,flags:u.Flags.NONE,code:e instanceof o.RSocketError?e.code:o.ErrorCodes.APPLICATION_ERROR,message:e.message,streamId:this.streamId}),this.stream.disconnect(this))},e.prototype.onNext=function(e,t){var r,i;if(!this.done){if(this.done=!0,(0,l.isFragmentable)(e,this.fragmentSize,u.FrameTypes.PAYLOAD))try{for(var n=a((0,l.fragment)(this.streamId,e,this.fragmentSize,u.FrameTypes.PAYLOAD,!0)),s=n.next();!s.done;s=n.next()){var o=s.value;this.stream.send(o)}}catch(e){r={error:e}}finally{try{s&&!s.done&&(i=n.return)&&i.call(n)}finally{if(r)throw r.error}}else this.stream.send({type:u.FrameTypes.PAYLOAD,flags:u.Flags.NEXT|u.Flags.COMPLETE|(e.metadata?u.Flags.METADATA:0),data:e.data,metadata:e.metadata,streamId:this.streamId});this.stream.disconnect(this)}},e.prototype.onComplete=function(){this.done||(this.done=!0,this.stream.send({type:u.FrameTypes.PAYLOAD,flags:u.Flags.COMPLETE,streamId:this.streamId,data:null,metadata:null}),this.stream.disconnect(this))},e.prototype.onExtension=function(e,t,r){this.done||this.stream.send({type:u.FrameTypes.EXT,streamId:this.streamId,flags:r?u.Flags.IGNORE:u.Flags.NONE,extendedType:e,extendedContent:t})},e.prototype.close=function(e){var t;this.done?console.warn("Trying to close for the second time. ".concat(e?"Dropping error [".concat(e,"]."):"")):(c.cancel(this),null===(t=this.receiver)||void 0===t||t.cancel())},e}();t.RequestResponseResponderStream=d},7076:(e,t,r)=>{"use strict";var i=r(8287).hp;Object.defineProperty(t,"__esModule",{value:!0}),t.cancel=t.reassemble=t.add=void 0,t.add=function(e,t,r){return e.hasFragments?(e.data=e.data?i.concat([e.data,t]):t,e.metadata&&r&&(e.metadata=i.concat([e.metadata,r])),!0):(e.hasFragments=!0,e.data=t,r&&(e.metadata=r),!0)},t.reassemble=function(e,t,r){e.hasFragments=!1;var n=e.data?i.concat([e.data,t]):t;if(e.data=void 0,e.metadata){var s=r?i.concat([e.metadata,r]):e.metadata;return e.metadata=void 0,{data:n,metadata:s}}return{data:n}},t.cancel=function(e){e.hasFragments=!1,e.data=void 0,e.metadata=void 0}},7165:function(e,t,r){var i,n,s,a,o,l,u,c,h,d,p,f,g,m,y,v,b,I,w;e.exports=(i=r(9021),r(9506),void(i.lib.Cipher||(n=i,s=n.lib,a=s.Base,o=s.WordArray,l=s.BufferedBlockAlgorithm,u=n.enc,u.Utf8,c=u.Base64,h=n.algo.EvpKDF,d=s.Cipher=l.extend({cfg:a.extend(),createEncryptor:function(e,t){return this.create(this._ENC_XFORM_MODE,e,t)},createDecryptor:function(e,t){return this.create(this._DEC_XFORM_MODE,e,t)},init:function(e,t,r){this.cfg=this.cfg.extend(r),this._xformMode=e,this._key=t,this.reset()},reset:function(){l.reset.call(this),this._doReset()},process:function(e){return this._append(e),this._process()},finalize:function(e){return e&&this._append(e),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function e(e){return"string"==typeof e?w:b}return function(t){return{encrypt:function(r,i,n){return e(i).encrypt(t,r,i,n)},decrypt:function(r,i,n){return e(i).decrypt(t,r,i,n)}}}}()}),s.StreamCipher=d.extend({_doFinalize:function(){return this._process(!0)},blockSize:1}),p=n.mode={},f=s.BlockCipherMode=a.extend({createEncryptor:function(e,t){return this.Encryptor.create(e,t)},createDecryptor:function(e,t){return this.Decryptor.create(e,t)},init:function(e,t){this._cipher=e,this._iv=t}}),g=p.CBC=function(){var e=f.extend();function t(e,t,r){var i,n=this._iv;n?(i=n,this._iv=void 0):i=this._prevBlock;for(var s=0;s<r;s++)e[t+s]^=i[s]}return e.Encryptor=e.extend({processBlock:function(e,r){var i=this._cipher,n=i.blockSize;t.call(this,e,r,n),i.encryptBlock(e,r),this._prevBlock=e.slice(r,r+n)}}),e.Decryptor=e.extend({processBlock:function(e,r){var i=this._cipher,n=i.blockSize,s=e.slice(r,r+n);i.decryptBlock(e,r),t.call(this,e,r,n),this._prevBlock=s}}),e}(),m=(n.pad={}).Pkcs7={pad:function(e,t){for(var r=4*t,i=r-e.sigBytes%r,n=i<<24|i<<16|i<<8|i,s=[],a=0;a<i;a+=4)s.push(n);var l=o.create(s,i);e.concat(l)},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},s.BlockCipher=d.extend({cfg:d.cfg.extend({mode:g,padding:m}),reset:function(){var e;d.reset.call(this);var t=this.cfg,r=t.iv,i=t.mode;this._xformMode==this._ENC_XFORM_MODE?e=i.createEncryptor:(e=i.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==e?this._mode.init(this,r&&r.words):(this._mode=e.call(i,this,r&&r.words),this._mode.__creator=e)},_doProcessBlock:function(e,t){this._mode.processBlock(e,t)},_doFinalize:function(){var e,t=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(t.pad(this._data,this.blockSize),e=this._process(!0)):(e=this._process(!0),t.unpad(e)),e},blockSize:4}),y=s.CipherParams=a.extend({init:function(e){this.mixIn(e)},toString:function(e){return(e||this.formatter).stringify(this)}}),v=(n.format={}).OpenSSL={stringify:function(e){var t=e.ciphertext,r=e.salt;return(r?o.create([1398893684,1701076831]).concat(r).concat(t):t).toString(c)},parse:function(e){var t,r=c.parse(e),i=r.words;return 1398893684==i[0]&&1701076831==i[1]&&(t=o.create(i.slice(2,4)),i.splice(0,4),r.sigBytes-=16),y.create({ciphertext:r,salt:t})}},b=s.SerializableCipher=a.extend({cfg:a.extend({format:v}),encrypt:function(e,t,r,i){i=this.cfg.extend(i);var n=e.createEncryptor(r,i),s=n.finalize(t),a=n.cfg;return y.create({ciphertext:s,key:r,iv:a.iv,algorithm:e,mode:a.mode,padding:a.padding,blockSize:e.blockSize,formatter:i.format})},decrypt:function(e,t,r,i){return i=this.cfg.extend(i),t=this._parse(t,i.format),e.createDecryptor(r,i).finalize(t.ciphertext)},_parse:function(e,t){return"string"==typeof e?t.parse(e,this):e}}),I=(n.kdf={}).OpenSSL={execute:function(e,t,r,i,n){if(i||(i=o.random(8)),n)s=h.create({keySize:t+r,hasher:n}).compute(e,i);else var s=h.create({keySize:t+r}).compute(e,i);var a=o.create(s.words.slice(t),4*r);return s.sigBytes=4*t,y.create({key:s,iv:a,salt:i})}},w=s.PasswordBasedCipher=b.extend({cfg:b.cfg.extend({kdf:I}),encrypt:function(e,t,r,i){var n=(i=this.cfg.extend(i)).kdf.execute(r,e.keySize,e.ivSize,i.salt,i.hasher);i.iv=n.iv;var s=b.encrypt.call(this,e,t,n.key,i);return s.mixIn(n),s},decrypt:function(e,t,r,i){i=this.cfg.extend(i),t=this._parse(t,i.format);var n=i.kdf.execute(r,e.keySize,e.ivSize,t.salt,i.hasher);return i.iv=n.iv,b.decrypt.call(this,e,t,n.key,i)}}))))},7193:function(e,t,r){var i;e.exports=(i=r(9021),r(754),r(4636),r(9506),r(7165),function(){var e=i,t=e.lib.StreamCipher,r=e.algo,n=r.RC4=t.extend({_doReset:function(){for(var e=this._key,t=e.words,r=e.sigBytes,i=this._S=[],n=0;n<256;n++)i[n]=n;n=0;for(var s=0;n<256;n++){var a=n%r,o=t[a>>>2]>>>24-a%4*8&255;s=(s+i[n]+o)%256;var l=i[n];i[n]=i[s],i[s]=l}this._i=this._j=0},_doProcessBlock:function(e,t){e[t]^=s.call(this)},keySize:8,ivSize:0});function s(){for(var e=this._S,t=this._i,r=this._j,i=0,n=0;n<4;n++){r=(r+e[t=(t+1)%256])%256;var s=e[t];e[t]=e[r],e[r]=s,i|=e[(e[t]+e[r])%256]<<24-8*n}return this._i=t,this._j=r,i}e.RC4=t._createHelper(n);var a=r.RC4Drop=n.extend({cfg:n.cfg.extend({drop:192}),_doReset:function(){n._doReset.call(this);for(var e=this.cfg.drop;e>0;e--)s.call(this)}});e.RC4Drop=t._createHelper(a)}(),i.RC4)},7225:function(e,t,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){void 0===i&&(i=r),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,i){void 0===i&&(i=r),e[i]=t[r]}),n=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||i(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),n(r(5974),t),n(r(288),t),n(r(6546),t),n(r(8766),t),n(r(2799),t),n(r(4170),t),n(r(2147),t),n(r(2777),t),n(r(3092),t)},7526:(e,t)=>{"use strict";t.byteLength=function(e){var t=o(e),r=t[0],i=t[1];return 3*(r+i)/4-i},t.toByteArray=function(e){var t,r,s=o(e),a=s[0],l=s[1],u=new n(function(e,t,r){return 3*(t+r)/4-r}(0,a,l)),c=0,h=l>0?a-4:a;for(r=0;r<h;r+=4)t=i[e.charCodeAt(r)]<<18|i[e.charCodeAt(r+1)]<<12|i[e.charCodeAt(r+2)]<<6|i[e.charCodeAt(r+3)],u[c++]=t>>16&255,u[c++]=t>>8&255,u[c++]=255&t;return 2===l&&(t=i[e.charCodeAt(r)]<<2|i[e.charCodeAt(r+1)]>>4,u[c++]=255&t),1===l&&(t=i[e.charCodeAt(r)]<<10|i[e.charCodeAt(r+1)]<<4|i[e.charCodeAt(r+2)]>>2,u[c++]=t>>8&255,u[c++]=255&t),u},t.fromByteArray=function(e){for(var t,i=e.length,n=i%3,s=[],a=16383,o=0,l=i-n;o<l;o+=a)s.push(u(e,o,o+a>l?l:o+a));return 1===n?(t=e[i-1],s.push(r[t>>2]+r[t<<4&63]+"==")):2===n&&(t=(e[i-2]<<8)+e[i-1],s.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"=")),s.join("")};for(var r=[],i=[],n="undefined"!=typeof Uint8Array?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0;a<64;++a)r[a]=s[a],i[s.charCodeAt(a)]=a;function o(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");return-1===r&&(r=t),[r,r===t?0:4-r%4]}function l(e){return r[e>>18&63]+r[e>>12&63]+r[e>>6&63]+r[63&e]}function u(e,t,r){for(var i,n=[],s=t;s<r;s+=3)i=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&e[s+2]),n.push(l(i));return n.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},7628:function(e,t,r){var i;e.exports=(i=r(9021),r(754),r(4636),r(9506),r(7165),function(){var e=i,t=e.lib,r=t.WordArray,n=t.BlockCipher,s=e.algo,a=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],o=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],l=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],u=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],c=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],h=s.DES=n.extend({_doReset:function(){for(var e=this._key.words,t=[],r=0;r<56;r++){var i=a[r]-1;t[r]=e[i>>>5]>>>31-i%32&1}for(var n=this._subKeys=[],s=0;s<16;s++){var u=n[s]=[],c=l[s];for(r=0;r<24;r++)u[r/6|0]|=t[(o[r]-1+c)%28]<<31-r%6,u[4+(r/6|0)]|=t[28+(o[r+24]-1+c)%28]<<31-r%6;for(u[0]=u[0]<<1|u[0]>>>31,r=1;r<7;r++)u[r]=u[r]>>>4*(r-1)+3;u[7]=u[7]<<5|u[7]>>>27}var h=this._invSubKeys=[];for(r=0;r<16;r++)h[r]=n[15-r]},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._subKeys)},decryptBlock:function(e,t){this._doCryptBlock(e,t,this._invSubKeys)},_doCryptBlock:function(e,t,r){this._lBlock=e[t],this._rBlock=e[t+1],d.call(this,4,252645135),d.call(this,16,65535),p.call(this,2,858993459),p.call(this,8,16711935),d.call(this,1,1431655765);for(var i=0;i<16;i++){for(var n=r[i],s=this._lBlock,a=this._rBlock,o=0,l=0;l<8;l++)o|=u[l][((a^n[l])&c[l])>>>0];this._lBlock=a,this._rBlock=s^o}var h=this._lBlock;this._lBlock=this._rBlock,this._rBlock=h,d.call(this,1,1431655765),p.call(this,8,16711935),p.call(this,2,858993459),d.call(this,16,65535),d.call(this,4,252645135),e[t]=this._lBlock,e[t+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});function d(e,t){var r=(this._lBlock>>>e^this._rBlock)&t;this._rBlock^=r,this._lBlock^=r<<e}function p(e,t){var r=(this._rBlock>>>e^this._lBlock)&t;this._lBlock^=r,this._rBlock^=r<<e}e.DES=n._createHelper(h);var f=s.TripleDES=n.extend({_doReset:function(){var e=this._key.words;if(2!==e.length&&4!==e.length&&e.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var t=e.slice(0,2),i=e.length<4?e.slice(0,2):e.slice(2,4),n=e.length<6?e.slice(0,2):e.slice(4,6);this._des1=h.createEncryptor(r.create(t)),this._des2=h.createEncryptor(r.create(i)),this._des3=h.createEncryptor(r.create(n))},encryptBlock:function(e,t){this._des1.encryptBlock(e,t),this._des2.decryptBlock(e,t),this._des3.encryptBlock(e,t)},decryptBlock:function(e,t){this._des3.decryptBlock(e,t),this._des2.encryptBlock(e,t),this._des1.decryptBlock(e,t)},keySize:6,ivSize:2,blockSize:2});e.TripleDES=n._createHelper(f)}(),i.TripleDES)},7698:function(e,t,r){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},i(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),s=this&&this.__awaiter||function(e,t,r,i){return new(r||(r=Promise))(function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(a,o)}l((i=i.apply(e,t||[])).next())})},a=this&&this.__generator||function(e,t){var r,i,n,s,a={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return s={next:o(0),throw:o(1),return:o(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function o(s){return function(o){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,i&&(n=2&s[0]?i.return:s[0]?i.throw||((n=i.return)&&n.call(i),0):i.next)&&!(n=n.call(i,s[1])).done)return n;switch(i=0,n&&(s=[2&s[0],n.value]),s[0]){case 0:case 1:n=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,i=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((n=(n=a.trys).length>0&&n[n.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!n||s[1]>n[0]&&s[1]<n[3])){a.label=s[1];break}if(6===s[0]&&a.label<n[1]){a.label=n[1],n=s;break}if(n&&a.label<n[2]){a.label=n[2],a.ops.push(s);break}n[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],i=0}finally{r=n=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,o])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.ResumeOkAwaitingResumableClientServerInputMultiplexerDemultiplexer=t.ResumableClientServerInputMultiplexerDemultiplexer=t.ClientServerInputMultiplexerDemultiplexer=t.StreamIdGenerator=void 0;var o=r(7225),l=r(6546),u=r(8766),c=r(2799);!function(e){e.create=function(e){return new t(e)};var t=function(){function e(e){this.currentId=e}return e.prototype.next=function(e){var t=this.currentId+2;e(t)&&(this.currentId=t)},e}()}(t.StreamIdGenerator||(t.StreamIdGenerator={}));var h=function(e){function t(t,r,i){var n=e.call(this)||this;return n.streamIdSupplier=t,n.outbound=r,n.closeable=i,n.registry={},i.onClose(n.close.bind(n)),n}return n(t,e),t.prototype.handle=function(e){if(c.Frame.isConnection(e)){if(e.type===o.FrameTypes.RESERVED)return;this.connectionFramesHandler.handle(e)}else if(c.Frame.isRequest(e)){if(this.registry[e.streamId])return;this.requestFramesHandler.handle(e,this)}else{var t=this.registry[e.streamId];if(!t)return;t.handle(e)}},t.prototype.connectionInbound=function(e){if(this.connectionFramesHandler)throw new Error("Connection frame handler has already been installed");this.connectionFramesHandler=e},t.prototype.handleRequestStream=function(e){if(this.requestFramesHandler)throw new Error("Stream handler has already been installed");this.requestFramesHandler=e},t.prototype.send=function(e){this.outbound.send(e)},Object.defineProperty(t.prototype,"connectionOutbound",{get:function(){return this},enumerable:!1,configurable:!0}),t.prototype.createRequestStream=function(e){var t=this;if(this.done)e.handleReject(new Error("Already closed"));else{var r=this.registry;this.streamIdSupplier.next(function(r){return e.handleReady(r,t)},Object.keys(r))}},t.prototype.connect=function(e){this.registry[e.streamId]=e},t.prototype.disconnect=function(e){delete this.registry[e.streamId]},t.prototype.close=function(t){if(this.done)e.prototype.close.call(this,t);else{for(var r in this.registry)this.registry[r].close(new Error("Closed. ".concat(t?"Original cause [".concat(t,"]."):"")));e.prototype.close.call(this,t)}},t}(l.Deferred);t.ClientServerInputMultiplexerDemultiplexer=h;var d=function(e){function t(t,r,i,n,s,a,o){var u=e.call(this,t,r,new l.Deferred)||this;return u.frameStore=n,u.token=s,u.sessionTimeout=o,a instanceof Function?u.reconnector=a:u.sessionStore=a,i.onClose(u.handleConnectionClose.bind(u)),u}return n(t,e),t.prototype.send=function(t){if(c.Frame.isConnection(t)){if(t.type===o.FrameTypes.KEEPALIVE)t.lastReceivedPosition=this.frameStore.lastReceivedFramePosition;else if(t.type===o.FrameTypes.ERROR)return this.outbound.send(t),this.sessionStore&&delete this.sessionStore[this.token],void e.prototype.close.call(this,new u.RSocketError(t.code,t.message))}else this.frameStore.store(t);this.outbound.send(t)},t.prototype.handle=function(t){if(c.Frame.isConnection(t)){if(t.type===o.FrameTypes.KEEPALIVE)try{this.frameStore.dropTo(t.lastReceivedPosition)}catch(e){this.outbound.send({type:o.FrameTypes.ERROR,streamId:0,flags:o.Flags.NONE,code:e.code,message:e.message}),this.close(e)}else if(t.type===o.FrameTypes.ERROR)return e.prototype.handle.call(this,t),this.sessionStore&&delete this.sessionStore[this.token],void e.prototype.close.call(this,new u.RSocketError(t.code,t.message))}else this.frameStore.record(t);e.prototype.handle.call(this,t)},t.prototype.resume=function(e,t,r){switch(this.outbound=t,e.type){case o.FrameTypes.RESUME:if(clearTimeout(this.timeoutId),this.frameStore.lastReceivedFramePosition<e.clientPosition){var i=new u.RSocketError(o.ErrorCodes.REJECTED_RESUME,"Impossible to resume since first available client frame position is greater than last received server frame position");return this.outbound.send({type:o.FrameTypes.ERROR,streamId:0,flags:o.Flags.NONE,code:i.code,message:i.message}),void this.close(i)}try{this.frameStore.dropTo(e.serverPosition)}catch(e){return this.outbound.send({type:o.FrameTypes.ERROR,streamId:0,flags:o.Flags.NONE,code:e.code,message:e.message}),void this.close(e)}this.outbound.send({type:o.FrameTypes.RESUME_OK,streamId:0,flags:o.Flags.NONE,clientPosition:this.frameStore.lastReceivedFramePosition});break;case o.FrameTypes.RESUME_OK:try{this.frameStore.dropTo(e.clientPosition)}catch(e){this.outbound.send({type:o.FrameTypes.ERROR,streamId:0,flags:o.Flags.NONE,code:e.code,message:e.message}),this.close(e)}}this.frameStore.drain(this.outbound.send.bind(this.outbound)),r.onClose(this.handleConnectionClose.bind(this)),this.connectionFramesHandler.resume()},t.prototype.handleConnectionClose=function(e){return s(this,void 0,void 0,function(){var e;return a(this,function(t){switch(t.label){case 0:if(this.connectionFramesHandler.pause(),!this.reconnector)return[3,5];t.label=1;case 1:return t.trys.push([1,3,,4]),[4,this.reconnector(this,this.frameStore)];case 2:return t.sent(),[3,4];case 3:return e=t.sent(),this.close(e),[3,4];case 4:return[3,6];case 5:this.timeoutId=setTimeout(this.close.bind(this),this.sessionTimeout),t.label=6;case 6:return[2]}})})},t}(h);t.ResumableClientServerInputMultiplexerDemultiplexer=d;var p=function(){function e(e,t,r){this.outbound=e,this.closeable=t,this.delegate=r,this.resumed=!1}return e.prototype.close=function(){this.delegate.close()},e.prototype.onClose=function(e){this.delegate.onClose(e)},Object.defineProperty(e.prototype,"connectionOutbound",{get:function(){return this.delegate.connectionOutbound},enumerable:!1,configurable:!0}),e.prototype.createRequestStream=function(e){this.delegate.createRequestStream(e)},e.prototype.connectionInbound=function(e){this.delegate.connectionInbound(e)},e.prototype.handleRequestStream=function(e){this.delegate.handleRequestStream(e)},e.prototype.handle=function(e){var t=this;if(!this.resumed)return e.type===o.FrameTypes.RESUME_OK?(this.resumed=!0,void this.delegate.resume(e,this.outbound,this.closeable)):(this.outbound.send({type:o.FrameTypes.ERROR,streamId:0,code:o.ErrorCodes.CONNECTION_ERROR,message:"Incomplete RESUME handshake. Unexpected frame ".concat(e.type," received"),flags:o.Flags.NONE}),this.closeable.close(),void this.closeable.onClose(function(){return t.delegate.close(new u.RSocketError(o.ErrorCodes.CONNECTION_ERROR,"Incomplete RESUME handshake. Unexpected frame ".concat(e.type," received")))}));this.delegate.handle(e)},e}();t.ResumeOkAwaitingResumableClientServerInputMultiplexerDemultiplexer=p},8056:function(e,t,r){var i;e.exports=(i=r(9021),function(){var e=i,t=e.lib,r=t.WordArray,n=t.Hasher,s=e.algo,a=r.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),o=r.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),l=r.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),u=r.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),c=r.create([0,1518500249,1859775393,2400959708,2840853838]),h=r.create([1352829926,1548603684,1836072691,2053994217,0]),d=s.RIPEMD160=n.extend({_doReset:function(){this._hash=r.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var r=0;r<16;r++){var i=t+r,n=e[i];e[i]=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8)}var s,d,b,I,w,E,k,S,M,F,T,R=this._hash.words,A=c.words,_=h.words,O=a.words,C=o.words,x=l.words,N=u.words;for(E=s=R[0],k=d=R[1],S=b=R[2],M=I=R[3],F=w=R[4],r=0;r<80;r+=1)T=s+e[t+O[r]]|0,T+=r<16?p(d,b,I)+A[0]:r<32?f(d,b,I)+A[1]:r<48?g(d,b,I)+A[2]:r<64?m(d,b,I)+A[3]:y(d,b,I)+A[4],T=(T=v(T|=0,x[r]))+w|0,s=w,w=I,I=v(b,10),b=d,d=T,T=E+e[t+C[r]]|0,T+=r<16?y(k,S,M)+_[0]:r<32?m(k,S,M)+_[1]:r<48?g(k,S,M)+_[2]:r<64?f(k,S,M)+_[3]:p(k,S,M)+_[4],T=(T=v(T|=0,N[r]))+F|0,E=F,F=M,M=v(S,10),S=k,k=T;T=R[1]+b+M|0,R[1]=R[2]+I+F|0,R[2]=R[3]+w+E|0,R[3]=R[4]+s+k|0,R[4]=R[0]+d+S|0,R[0]=T},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,i=8*e.sigBytes;t[i>>>5]|=128<<24-i%32,t[14+(i+64>>>9<<4)]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),e.sigBytes=4*(t.length+1),this._process();for(var n=this._hash,s=n.words,a=0;a<5;a++){var o=s[a];s[a]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8)}return n},clone:function(){var e=n.clone.call(this);return e._hash=this._hash.clone(),e}});function p(e,t,r){return e^t^r}function f(e,t,r){return e&t|~e&r}function g(e,t,r){return(e|~t)^r}function m(e,t,r){return e&r|t&~r}function y(e,t,r){return e^(t|~r)}function v(e,t){return e<<t|e>>>32-t}e.RIPEMD160=n._createHelper(d),e.HmacRIPEMD160=n._createHmacHelper(d)}(Math),i.RIPEMD160)},8124:function(e,t,r){var i;e.exports=(i=r(9021),r(7165),i.pad.NoPadding={pad:function(){},unpad:function(){}},i.pad.NoPadding)},8279:function(e,t,r){"use strict";var i=r(8287).hp,n=this&&this.__generator||function(e,t){var r,i,n,s,a={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return s={next:o(0),throw:o(1),return:o(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function o(s){return function(o){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,i&&(n=2&s[0]?i.return:s[0]?i.throw||((n=i.return)&&n.call(i),0):i.next)&&!(n=n.call(i,s[1])).done)return n;switch(i=0,n&&(s=[2&s[0],n.value]),s[0]){case 0:case 1:n=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,i=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((n=(n=a.trys).length>0&&n[n.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!n||s[1]>n[0]&&s[1]<n[3])){a.label=s[1];break}if(6===s[0]&&a.label<n[1]){a.label=n[1],n=s;break}if(n&&a.label<n[2]){a.label=n[2],a.ops.push(s);break}n[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],i=0}finally{r=n=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,o])}}},s=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],i=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},a=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var i,n,s=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(i=s.next()).done;)a.push(i.value)}catch(e){n={error:e}}finally{try{i&&!i.done&&(r=s.return)&&r.call(s)}finally{if(n)throw n.error}}return a};Object.defineProperty(t,"__esModule",{value:!0}),t.WellKnownMimeTypeEntry=t.ReservedMimeTypeEntry=t.ExplicitMimeTimeEntry=t.decodeCompositeMetadata=t.encodeWellKnownMetadataHeader=t.encodeCustomMetadataHeader=t.decodeMimeTypeFromMimeBuffer=t.decodeMimeAndContentBuffersSlices=t.encodeAndAddWellKnownMetadata=t.encodeAndAddCustomMetadata=t.encodeCompositeMetadata=t.CompositeMetadata=void 0;var o=r(7225),l=r(3034),u=function(){function e(e){this._buffer=e}return e.prototype.iterator=function(){return m(this._buffer)},e.prototype[Symbol.iterator]=function(){return m(this._buffer)},e}();function c(e,t,r){return i.concat([e,f(t,r.byteLength),r])}function h(e,t,r){var n;return n=Number.isInteger(t)?t:t.identifier,i.concat([e,g(n,r.byteLength),r])}function d(e,t){var r,i=e.readInt8(t),n=t;if((i&w)===w)r=e.slice(n,n+1),n+=1;else{var s=1+(255&i);if(!(e.byteLength>n+s))throw new Error("Metadata is malformed. Inappropriately formed Mime Length");r=e.slice(n,n+s+1),n+=s+1}if(e.byteLength>=n+3){var a=(0,o.readUInt24BE)(e,n);if(n+=3,e.byteLength>=a+n)return[r,e.slice(n,n+a)];throw new Error("Metadata is malformed. Inappropriately formed Metadata Length or malformed content")}throw new Error("Metadata is malformed. Metadata Length is absent or malformed")}function p(e){if(e.length<2)throw new Error("Unable to decode explicit MIME type");return e.toString("ascii",1)}function f(e,t){var r=i.allocUnsafe(4+e.length);r.fill(0);var n=r.write(e,1);if(!function(e){for(var t=!0,r=1,i=e.length;r<i;r++)if(e[r]>127){t=!1;break}return t}(r))throw new Error("Custom mime type must be US_ASCII characters only");if(n<1||n>128)throw new Error("Custom mime type must have a strictly positive length that fits on 7 unsigned bits, ie 1-128");return r.writeUInt8(n-1),(0,o.writeUInt24BE)(r,t,n+1),r}function g(e,t){var r=i.allocUnsafe(4);return r.writeUInt8(e|w),(0,o.writeUInt24BE)(r,t,1),r}function m(e){var t,r,i,s,a,o,u,c;return n(this,function(n){switch(n.label){case 0:t=e.byteLength,r=0,n.label=1;case 1:if(!(r<t))return[3,7];if(i=d(e,r),s=i[0],f=a=i[1],r=r+s.byteLength+3+f.byteLength,I(s))return[3,3];if(!(o=p(s)))throw new Error("MIME type cannot be null");return[4,new y(a,o)];case 2:return n.sent(),[3,1];case 3:return u=I(h=s)?h.readInt8()&E:l.WellKnownMimeType.UNPARSEABLE_MIME_TYPE.identifier,c=l.WellKnownMimeType.fromIdentifier(u),l.WellKnownMimeType.UNKNOWN_RESERVED_MIME_TYPE!==c?[3,5]:[4,new v(a,u)];case 4:return n.sent(),[3,1];case 5:return[4,new b(a,c)];case 6:return n.sent(),[3,1];case 7:return[2]}var h,f})}t.CompositeMetadata=u,t.encodeCompositeMetadata=function(e){var t,r,n=i.allocUnsafe(0);try{for(var o=s(e),u=o.next();!u.done;u=o.next()){var d=a(u.value,2),p=d[0],f=d[1],g="function"==typeof f?f():f;n=p instanceof l.WellKnownMimeType||"number"==typeof p||"WellKnownMimeType"===p.constructor.name?h(n,p,g):c(n,p,g)}}catch(e){t={error:e}}finally{try{u&&!u.done&&(r=o.return)&&r.call(o)}finally{if(t)throw t.error}}return n},t.encodeAndAddCustomMetadata=c,t.encodeAndAddWellKnownMetadata=h,t.decodeMimeAndContentBuffersSlices=d,t.decodeMimeTypeFromMimeBuffer=p,t.encodeCustomMetadataHeader=f,t.encodeWellKnownMetadataHeader=g,t.decodeCompositeMetadata=m;var y=function(e,t){this.content=e,this.type=t};t.ExplicitMimeTimeEntry=y;var v=function(){function e(e,t){this.content=e,this.type=t}return Object.defineProperty(e.prototype,"mimeType",{get:function(){},enumerable:!1,configurable:!0}),e}();t.ReservedMimeTypeEntry=v;var b=function(){function e(e,t){this.content=e,this.type=t}return Object.defineProperty(e.prototype,"mimeType",{get:function(){return this.type.string},enumerable:!1,configurable:!0}),e}();function I(e){return 1===e.byteLength}t.WellKnownMimeTypeEntry=b;var w=128,E=127},8287:(e,t,r)=>{"use strict";const i=r(7526),n=r(251),s="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;t.hp=l,t.IS=50;const a=2147483647;function o(e){if(e>a)throw new RangeError('The value "'+e+'" is invalid for option "size"');const t=new Uint8Array(e);return Object.setPrototypeOf(t,l.prototype),t}function l(e,t,r){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return h(e)}return u(e,t,r)}function u(e,t,r){if("string"==typeof e)return function(e,t){if("string"==typeof t&&""!==t||(t="utf8"),!l.isEncoding(t))throw new TypeError("Unknown encoding: "+t);const r=0|g(e,t);let i=o(r);const n=i.write(e,t);return n!==r&&(i=i.slice(0,n)),i}(e,t);if(ArrayBuffer.isView(e))return function(e){if(X(e,Uint8Array)){const t=new Uint8Array(e);return p(t.buffer,t.byteOffset,t.byteLength)}return d(e)}(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(X(e,ArrayBuffer)||e&&X(e.buffer,ArrayBuffer))return p(e,t,r);if("undefined"!=typeof SharedArrayBuffer&&(X(e,SharedArrayBuffer)||e&&X(e.buffer,SharedArrayBuffer)))return p(e,t,r);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');const i=e.valueOf&&e.valueOf();if(null!=i&&i!==e)return l.from(i,t,r);const n=function(e){if(l.isBuffer(e)){const t=0|f(e.length),r=o(t);return 0===r.length||e.copy(r,0,0,t),r}return void 0!==e.length?"number"!=typeof e.length||J(e.length)?o(0):d(e):"Buffer"===e.type&&Array.isArray(e.data)?d(e.data):void 0}(e);if(n)return n;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return l.from(e[Symbol.toPrimitive]("string"),t,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function c(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function h(e){return c(e),o(e<0?0:0|f(e))}function d(e){const t=e.length<0?0:0|f(e.length),r=o(t);for(let i=0;i<t;i+=1)r[i]=255&e[i];return r}function p(e,t,r){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw new RangeError('"length" is outside of buffer bounds');let i;return i=void 0===t&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,t):new Uint8Array(e,t,r),Object.setPrototypeOf(i,l.prototype),i}function f(e){if(e>=a)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a.toString(16)+" bytes");return 0|e}function g(e,t){if(l.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||X(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);const r=e.length,i=arguments.length>2&&!0===arguments[2];if(!i&&0===r)return 0;let n=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return q(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return V(e).length;default:if(n)return i?-1:q(e).length;t=(""+t).toLowerCase(),n=!0}}function m(e,t,r){let i=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return _(this,t,r);case"utf8":case"utf-8":return F(this,t,r);case"ascii":return R(this,t,r);case"latin1":case"binary":return A(this,t,r);case"base64":return M(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O(this,t,r);default:if(i)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),i=!0}}function y(e,t,r){const i=e[t];e[t]=e[r],e[r]=i}function v(e,t,r,i,n){if(0===e.length)return-1;if("string"==typeof r?(i=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),J(r=+r)&&(r=n?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(n)return-1;r=e.length-1}else if(r<0){if(!n)return-1;r=0}if("string"==typeof t&&(t=l.from(t,i)),l.isBuffer(t))return 0===t.length?-1:b(e,t,r,i,n);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?n?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):b(e,[t],r,i,n);throw new TypeError("val must be string, number or Buffer")}function b(e,t,r,i,n){let s,a=1,o=e.length,l=t.length;if(void 0!==i&&("ucs2"===(i=String(i).toLowerCase())||"ucs-2"===i||"utf16le"===i||"utf-16le"===i)){if(e.length<2||t.length<2)return-1;a=2,o/=2,l/=2,r/=2}function u(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(n){let i=-1;for(s=r;s<o;s++)if(u(e,s)===u(t,-1===i?0:s-i)){if(-1===i&&(i=s),s-i+1===l)return i*a}else-1!==i&&(s-=s-i),i=-1}else for(r+l>o&&(r=o-l),s=r;s>=0;s--){let r=!0;for(let i=0;i<l;i++)if(u(e,s+i)!==u(t,i)){r=!1;break}if(r)return s}return-1}function I(e,t,r,i){r=Number(r)||0;const n=e.length-r;i?(i=Number(i))>n&&(i=n):i=n;const s=t.length;let a;for(i>s/2&&(i=s/2),a=0;a<i;++a){const i=parseInt(t.substr(2*a,2),16);if(J(i))return a;e[r+a]=i}return a}function w(e,t,r,i){return Y(q(t,e.length-r),e,r,i)}function E(e,t,r,i){return Y(function(e){const t=[];for(let r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(t),e,r,i)}function k(e,t,r,i){return Y(V(t),e,r,i)}function S(e,t,r,i){return Y(function(e,t){let r,i,n;const s=[];for(let a=0;a<e.length&&!((t-=2)<0);++a)r=e.charCodeAt(a),i=r>>8,n=r%256,s.push(n),s.push(i);return s}(t,e.length-r),e,r,i)}function M(e,t,r){return 0===t&&r===e.length?i.fromByteArray(e):i.fromByteArray(e.slice(t,r))}function F(e,t,r){r=Math.min(e.length,r);const i=[];let n=t;for(;n<r;){const t=e[n];let s=null,a=t>239?4:t>223?3:t>191?2:1;if(n+a<=r){let r,i,o,l;switch(a){case 1:t<128&&(s=t);break;case 2:r=e[n+1],128==(192&r)&&(l=(31&t)<<6|63&r,l>127&&(s=l));break;case 3:r=e[n+1],i=e[n+2],128==(192&r)&&128==(192&i)&&(l=(15&t)<<12|(63&r)<<6|63&i,l>2047&&(l<55296||l>57343)&&(s=l));break;case 4:r=e[n+1],i=e[n+2],o=e[n+3],128==(192&r)&&128==(192&i)&&128==(192&o)&&(l=(15&t)<<18|(63&r)<<12|(63&i)<<6|63&o,l>65535&&l<1114112&&(s=l))}}null===s?(s=65533,a=1):s>65535&&(s-=65536,i.push(s>>>10&1023|55296),s=56320|1023&s),i.push(s),n+=a}return function(e){const t=e.length;if(t<=T)return String.fromCharCode.apply(String,e);let r="",i=0;for(;i<t;)r+=String.fromCharCode.apply(String,e.slice(i,i+=T));return r}(i)}l.TYPED_ARRAY_SUPPORT=function(){try{const e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),l.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(l.prototype,"parent",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.buffer}}),Object.defineProperty(l.prototype,"offset",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.byteOffset}}),l.poolSize=8192,l.from=function(e,t,r){return u(e,t,r)},Object.setPrototypeOf(l.prototype,Uint8Array.prototype),Object.setPrototypeOf(l,Uint8Array),l.alloc=function(e,t,r){return function(e,t,r){return c(e),e<=0?o(e):void 0!==t?"string"==typeof r?o(e).fill(t,r):o(e).fill(t):o(e)}(e,t,r)},l.allocUnsafe=function(e){return h(e)},l.allocUnsafeSlow=function(e){return h(e)},l.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==l.prototype},l.compare=function(e,t){if(X(e,Uint8Array)&&(e=l.from(e,e.offset,e.byteLength)),X(t,Uint8Array)&&(t=l.from(t,t.offset,t.byteLength)),!l.isBuffer(e)||!l.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;let r=e.length,i=t.length;for(let n=0,s=Math.min(r,i);n<s;++n)if(e[n]!==t[n]){r=e[n],i=t[n];break}return r<i?-1:i<r?1:0},l.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},l.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return l.alloc(0);let r;if(void 0===t)for(t=0,r=0;r<e.length;++r)t+=e[r].length;const i=l.allocUnsafe(t);let n=0;for(r=0;r<e.length;++r){let t=e[r];if(X(t,Uint8Array))n+t.length>i.length?(l.isBuffer(t)||(t=l.from(t)),t.copy(i,n)):Uint8Array.prototype.set.call(i,t,n);else{if(!l.isBuffer(t))throw new TypeError('"list" argument must be an Array of Buffers');t.copy(i,n)}n+=t.length}return i},l.byteLength=g,l.prototype._isBuffer=!0,l.prototype.swap16=function(){const e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;t<e;t+=2)y(this,t,t+1);return this},l.prototype.swap32=function(){const e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let t=0;t<e;t+=4)y(this,t,t+3),y(this,t+1,t+2);return this},l.prototype.swap64=function(){const e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let t=0;t<e;t+=8)y(this,t,t+7),y(this,t+1,t+6),y(this,t+2,t+5),y(this,t+3,t+4);return this},l.prototype.toString=function(){const e=this.length;return 0===e?"":0===arguments.length?F(this,0,e):m.apply(this,arguments)},l.prototype.toLocaleString=l.prototype.toString,l.prototype.equals=function(e){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===l.compare(this,e)},l.prototype.inspect=function(){let e="";const r=t.IS;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"},s&&(l.prototype[s]=l.prototype.inspect),l.prototype.compare=function(e,t,r,i,n){if(X(e,Uint8Array)&&(e=l.from(e,e.offset,e.byteLength)),!l.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===i&&(i=0),void 0===n&&(n=this.length),t<0||r>e.length||i<0||n>this.length)throw new RangeError("out of range index");if(i>=n&&t>=r)return 0;if(i>=n)return-1;if(t>=r)return 1;if(this===e)return 0;let s=(n>>>=0)-(i>>>=0),a=(r>>>=0)-(t>>>=0);const o=Math.min(s,a),u=this.slice(i,n),c=e.slice(t,r);for(let e=0;e<o;++e)if(u[e]!==c[e]){s=u[e],a=c[e];break}return s<a?-1:a<s?1:0},l.prototype.includes=function(e,t,r){return-1!==this.indexOf(e,t,r)},l.prototype.indexOf=function(e,t,r){return v(this,e,t,r,!0)},l.prototype.lastIndexOf=function(e,t,r){return v(this,e,t,r,!1)},l.prototype.write=function(e,t,r,i){if(void 0===t)i="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)i=t,r=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(r)?(r>>>=0,void 0===i&&(i="utf8")):(i=r,r=void 0)}const n=this.length-t;if((void 0===r||r>n)&&(r=n),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");let s=!1;for(;;)switch(i){case"hex":return I(this,e,t,r);case"utf8":case"utf-8":return w(this,e,t,r);case"ascii":case"latin1":case"binary":return E(this,e,t,r);case"base64":return k(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,e,t,r);default:if(s)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),s=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const T=4096;function R(e,t,r){let i="";r=Math.min(e.length,r);for(let n=t;n<r;++n)i+=String.fromCharCode(127&e[n]);return i}function A(e,t,r){let i="";r=Math.min(e.length,r);for(let n=t;n<r;++n)i+=String.fromCharCode(e[n]);return i}function _(e,t,r){const i=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>i)&&(r=i);let n="";for(let i=t;i<r;++i)n+=Z[e[i]];return n}function O(e,t,r){const i=e.slice(t,r);let n="";for(let e=0;e<i.length-1;e+=2)n+=String.fromCharCode(i[e]+256*i[e+1]);return n}function C(e,t,r){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}function x(e,t,r,i,n,s){if(!l.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>n||t<s)throw new RangeError('"value" argument is out of bounds');if(r+i>e.length)throw new RangeError("Index out of range")}function N(e,t,r,i,n){z(t,i,n,e,r,7);let s=Number(t&BigInt(4294967295));e[r++]=s,s>>=8,e[r++]=s,s>>=8,e[r++]=s,s>>=8,e[r++]=s;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[r++]=a,a>>=8,e[r++]=a,a>>=8,e[r++]=a,a>>=8,e[r++]=a,r}function D(e,t,r,i,n){z(t,i,n,e,r,7);let s=Number(t&BigInt(4294967295));e[r+7]=s,s>>=8,e[r+6]=s,s>>=8,e[r+5]=s,s>>=8,e[r+4]=s;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[r+3]=a,a>>=8,e[r+2]=a,a>>=8,e[r+1]=a,a>>=8,e[r]=a,r+8}function P(e,t,r,i,n,s){if(r+i>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function L(e,t,r,i,s){return t=+t,r>>>=0,s||P(e,0,r,4),n.write(e,t,r,i,23,4),r+4}function B(e,t,r,i,s){return t=+t,r>>>=0,s||P(e,0,r,8),n.write(e,t,r,i,52,8),r+8}l.prototype.slice=function(e,t){const r=this.length;(e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e);const i=this.subarray(e,t);return Object.setPrototypeOf(i,l.prototype),i},l.prototype.readUintLE=l.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||C(e,t,this.length);let i=this[e],n=1,s=0;for(;++s<t&&(n*=256);)i+=this[e+s]*n;return i},l.prototype.readUintBE=l.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||C(e,t,this.length);let i=this[e+--t],n=1;for(;t>0&&(n*=256);)i+=this[e+--t]*n;return i},l.prototype.readUint8=l.prototype.readUInt8=function(e,t){return e>>>=0,t||C(e,1,this.length),this[e]},l.prototype.readUint16LE=l.prototype.readUInt16LE=function(e,t){return e>>>=0,t||C(e,2,this.length),this[e]|this[e+1]<<8},l.prototype.readUint16BE=l.prototype.readUInt16BE=function(e,t){return e>>>=0,t||C(e,2,this.length),this[e]<<8|this[e+1]},l.prototype.readUint32LE=l.prototype.readUInt32LE=function(e,t){return e>>>=0,t||C(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},l.prototype.readUint32BE=l.prototype.readUInt32BE=function(e,t){return e>>>=0,t||C(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},l.prototype.readBigUInt64LE=Q(function(e){H(e>>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||K(e,this.length-8);const i=t+256*this[++e]+65536*this[++e]+this[++e]*2**24,n=this[++e]+256*this[++e]+65536*this[++e]+r*2**24;return BigInt(i)+(BigInt(n)<<BigInt(32))}),l.prototype.readBigUInt64BE=Q(function(e){H(e>>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||K(e,this.length-8);const i=t*2**24+65536*this[++e]+256*this[++e]+this[++e],n=this[++e]*2**24+65536*this[++e]+256*this[++e]+r;return(BigInt(i)<<BigInt(32))+BigInt(n)}),l.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||C(e,t,this.length);let i=this[e],n=1,s=0;for(;++s<t&&(n*=256);)i+=this[e+s]*n;return n*=128,i>=n&&(i-=Math.pow(2,8*t)),i},l.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||C(e,t,this.length);let i=t,n=1,s=this[e+--i];for(;i>0&&(n*=256);)s+=this[e+--i]*n;return n*=128,s>=n&&(s-=Math.pow(2,8*t)),s},l.prototype.readInt8=function(e,t){return e>>>=0,t||C(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},l.prototype.readInt16LE=function(e,t){e>>>=0,t||C(e,2,this.length);const r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},l.prototype.readInt16BE=function(e,t){e>>>=0,t||C(e,2,this.length);const r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},l.prototype.readInt32LE=function(e,t){return e>>>=0,t||C(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},l.prototype.readInt32BE=function(e,t){return e>>>=0,t||C(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},l.prototype.readBigInt64LE=Q(function(e){H(e>>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||K(e,this.length-8);const i=this[e+4]+256*this[e+5]+65536*this[e+6]+(r<<24);return(BigInt(i)<<BigInt(32))+BigInt(t+256*this[++e]+65536*this[++e]+this[++e]*2**24)}),l.prototype.readBigInt64BE=Q(function(e){H(e>>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||K(e,this.length-8);const i=(t<<24)+65536*this[++e]+256*this[++e]+this[++e];return(BigInt(i)<<BigInt(32))+BigInt(this[++e]*2**24+65536*this[++e]+256*this[++e]+r)}),l.prototype.readFloatLE=function(e,t){return e>>>=0,t||C(e,4,this.length),n.read(this,e,!0,23,4)},l.prototype.readFloatBE=function(e,t){return e>>>=0,t||C(e,4,this.length),n.read(this,e,!1,23,4)},l.prototype.readDoubleLE=function(e,t){return e>>>=0,t||C(e,8,this.length),n.read(this,e,!0,52,8)},l.prototype.readDoubleBE=function(e,t){return e>>>=0,t||C(e,8,this.length),n.read(this,e,!1,52,8)},l.prototype.writeUintLE=l.prototype.writeUIntLE=function(e,t,r,i){e=+e,t>>>=0,r>>>=0,i||x(this,e,t,r,Math.pow(2,8*r)-1,0);let n=1,s=0;for(this[t]=255&e;++s<r&&(n*=256);)this[t+s]=e/n&255;return t+r},l.prototype.writeUintBE=l.prototype.writeUIntBE=function(e,t,r,i){e=+e,t>>>=0,r>>>=0,i||x(this,e,t,r,Math.pow(2,8*r)-1,0);let n=r-1,s=1;for(this[t+n]=255&e;--n>=0&&(s*=256);)this[t+n]=e/s&255;return t+r},l.prototype.writeUint8=l.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||x(this,e,t,1,255,0),this[t]=255&e,t+1},l.prototype.writeUint16LE=l.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||x(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},l.prototype.writeUint16BE=l.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||x(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},l.prototype.writeUint32LE=l.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||x(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},l.prototype.writeUint32BE=l.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||x(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},l.prototype.writeBigUInt64LE=Q(function(e,t=0){return N(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),l.prototype.writeBigUInt64BE=Q(function(e,t=0){return D(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),l.prototype.writeIntLE=function(e,t,r,i){if(e=+e,t>>>=0,!i){const i=Math.pow(2,8*r-1);x(this,e,t,r,i-1,-i)}let n=0,s=1,a=0;for(this[t]=255&e;++n<r&&(s*=256);)e<0&&0===a&&0!==this[t+n-1]&&(a=1),this[t+n]=(e/s|0)-a&255;return t+r},l.prototype.writeIntBE=function(e,t,r,i){if(e=+e,t>>>=0,!i){const i=Math.pow(2,8*r-1);x(this,e,t,r,i-1,-i)}let n=r-1,s=1,a=0;for(this[t+n]=255&e;--n>=0&&(s*=256);)e<0&&0===a&&0!==this[t+n+1]&&(a=1),this[t+n]=(e/s|0)-a&255;return t+r},l.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||x(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},l.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||x(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},l.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||x(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},l.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||x(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},l.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||x(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},l.prototype.writeBigInt64LE=Q(function(e,t=0){return N(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),l.prototype.writeBigInt64BE=Q(function(e,t=0){return D(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),l.prototype.writeFloatLE=function(e,t,r){return L(this,e,t,!0,r)},l.prototype.writeFloatBE=function(e,t,r){return L(this,e,t,!1,r)},l.prototype.writeDoubleLE=function(e,t,r){return B(this,e,t,!0,r)},l.prototype.writeDoubleBE=function(e,t,r){return B(this,e,t,!1,r)},l.prototype.copy=function(e,t,r,i){if(!l.isBuffer(e))throw new TypeError("argument should be a Buffer");if(r||(r=0),i||0===i||(i=this.length),t>=e.length&&(t=e.length),t||(t=0),i>0&&i<r&&(i=r),i===r)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),e.length-t<i-r&&(i=e.length-t+r);const n=i-r;return this===e&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(t,r,i):Uint8Array.prototype.set.call(e,this.subarray(r,i),t),n},l.prototype.fill=function(e,t,r,i){if("string"==typeof e){if("string"==typeof t?(i=t,t=0,r=this.length):"string"==typeof r&&(i=r,r=this.length),void 0!==i&&"string"!=typeof i)throw new TypeError("encoding must be a string");if("string"==typeof i&&!l.isEncoding(i))throw new TypeError("Unknown encoding: "+i);if(1===e.length){const t=e.charCodeAt(0);("utf8"===i&&t<128||"latin1"===i)&&(e=t)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<r)throw new RangeError("Out of range index");if(r<=t)return this;let n;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(n=t;n<r;++n)this[n]=e;else{const s=l.isBuffer(e)?e:l.from(e,i),a=s.length;if(0===a)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(n=0;n<r-t;++n)this[n+t]=s[n%a]}return this};const j={};function U(e,t,r){j[e]=class extends r{constructor(){super(),Object.defineProperty(this,"message",{value:t.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${e}]`,this.stack,delete this.name}get code(){return e}set code(e){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:e,writable:!0})}toString(){return`${this.name} [${e}]: ${this.message}`}}}function W(e){let t="",r=e.length;const i="-"===e[0]?1:0;for(;r>=i+4;r-=3)t=`_${e.slice(r-3,r)}${t}`;return`${e.slice(0,r)}${t}`}function z(e,t,r,i,n,s){if(e>r||e<t){const i="bigint"==typeof t?"n":"";let n;throw n=s>3?0===t||t===BigInt(0)?`>= 0${i} and < 2${i} ** ${8*(s+1)}${i}`:`>= -(2${i} ** ${8*(s+1)-1}${i}) and < 2 ** ${8*(s+1)-1}${i}`:`>= ${t}${i} and <= ${r}${i}`,new j.ERR_OUT_OF_RANGE("value",n,e)}!function(e,t,r){H(t,"offset"),void 0!==e[t]&&void 0!==e[t+r]||K(t,e.length-(r+1))}(i,n,s)}function H(e,t){if("number"!=typeof e)throw new j.ERR_INVALID_ARG_TYPE(t,"number",e)}function K(e,t,r){if(Math.floor(e)!==e)throw H(e,r),new j.ERR_OUT_OF_RANGE(r||"offset","an integer",e);if(t<0)throw new j.ERR_BUFFER_OUT_OF_BOUNDS;throw new j.ERR_OUT_OF_RANGE(r||"offset",`>= ${r?1:0} and <= ${t}`,e)}U("ERR_BUFFER_OUT_OF_BOUNDS",function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),U("ERR_INVALID_ARG_TYPE",function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`},TypeError),U("ERR_OUT_OF_RANGE",function(e,t,r){let i=`The value of "${e}" is out of range.`,n=r;return Number.isInteger(r)&&Math.abs(r)>2**32?n=W(String(r)):"bigint"==typeof r&&(n=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(n=W(n)),n+="n"),i+=` It must be ${t}. Received ${n}`,i},RangeError);const G=/[^+/0-9A-Za-z-_]/g;function q(e,t){let r;t=t||1/0;const i=e.length;let n=null;const s=[];for(let a=0;a<i;++a){if(r=e.charCodeAt(a),r>55295&&r<57344){if(!n){if(r>56319){(t-=3)>-1&&s.push(239,191,189);continue}if(a+1===i){(t-=3)>-1&&s.push(239,191,189);continue}n=r;continue}if(r<56320){(t-=3)>-1&&s.push(239,191,189),n=r;continue}r=65536+(n-55296<<10|r-56320)}else n&&(t-=3)>-1&&s.push(239,191,189);if(n=null,r<128){if((t-=1)<0)break;s.push(r)}else if(r<2048){if((t-=2)<0)break;s.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;s.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;s.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return s}function V(e){return i.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(G,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function Y(e,t,r,i){let n;for(n=0;n<i&&!(n+r>=t.length||n>=e.length);++n)t[n+r]=e[n];return n}function X(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function J(e){return e!=e}const Z=function(){const e="0123456789abcdef",t=new Array(256);for(let r=0;r<16;++r){const i=16*r;for(let n=0;n<16;++n)t[i+n]=e[r]+e[n]}return t}();function Q(e){return"undefined"==typeof BigInt?$:e}function $(){throw new Error("BigInt not supported")}},8454:function(e,t,r){var i,n;e.exports=(n=r(9021),r(7165),n.mode.ECB=((i=n.lib.BlockCipherMode.extend()).Encryptor=i.extend({processBlock:function(e,t){this._cipher.encryptBlock(e,t)}}),i.Decryptor=i.extend({processBlock:function(e,t){this._cipher.decryptBlock(e,t)}}),i),n.mode.ECB)},8706:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WebsocketClientTransport=void 0;var i=r(7225),n=r(9318),s=function(){function e(e){var t;this.url=e.url,this.factory=null!==(t=e.wsCreator)&&void 0!==t?t:function(e){return new WebSocket(e)}}return e.prototype.connect=function(e){var t=this;return new Promise(function(r,s){var a=t.factory(t.url);a.binaryType="arraybuffer";var o=function(){a.removeEventListener("open",o),a.removeEventListener("error",l),r(new n.WebsocketDuplexConnection(a,new i.Deserializer,e))},l=function(e){a.removeEventListener("open",o),a.removeEventListener("error",l),s(e.error)};a.addEventListener("open",o),a.addEventListener("error",l)})},e}();t.WebsocketClientTransport=s},8766:function(e,t){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function i(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)});Object.defineProperty(t,"__esModule",{value:!0}),t.ErrorCodes=t.RSocketError=void 0;var n,s=function(e){function t(t,r){var i=e.call(this,r)||this;return i.code=t,i}return i(t,e),t}(Error);t.RSocketError=s,(n=t.ErrorCodes||(t.ErrorCodes={}))[n.RESERVED=0]="RESERVED",n[n.INVALID_SETUP=1]="INVALID_SETUP",n[n.UNSUPPORTED_SETUP=2]="UNSUPPORTED_SETUP",n[n.REJECTED_SETUP=3]="REJECTED_SETUP",n[n.REJECTED_RESUME=4]="REJECTED_RESUME",n[n.CONNECTION_CLOSE=258]="CONNECTION_CLOSE",n[n.CONNECTION_ERROR=257]="CONNECTION_ERROR",n[n.APPLICATION_ERROR=513]="APPLICATION_ERROR",n[n.REJECTED=514]="REJECTED",n[n.CANCELED=515]="CANCELED",n[n.INVALID=516]="INVALID",n[n.RESERVED_EXTENSION=4294967295]="RESERVED_EXTENSION"},8814:function(e,t,r){"use strict";var i=r(8287).hp,n=this&&this.__generator||function(e,t){var r,i,n,s,a={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return s={next:o(0),throw:o(1),return:o(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function o(s){return function(o){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,i&&(n=2&s[0]?i.return:s[0]?i.throw||((n=i.return)&&n.call(i),0):i.next)&&!(n=n.call(i,s[1])).done)return n;switch(i=0,n&&(s=[2&s[0],n.value]),s[0]){case 0:case 1:n=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,i=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((n=(n=a.trys).length>0&&n[n.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!n||s[1]>n[0]&&s[1]<n[3])){a.label=s[1];break}if(6===s[0]&&a.label<n[1]){a.label=n[1],n=s;break}if(n&&a.label<n[2]){a.label=n[2],a.ops.push(s);break}n[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],i=0}finally{r=n=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,o])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.decodeRoutes=t.encodeRoute=t.encodeRoutes=t.RoutingMetadata=void 0;var s=function(){function e(e){this._buffer=e}return e.prototype.iterator=function(){return o(this._buffer)},e.prototype[Symbol.iterator]=function(){return o(this._buffer)},e}();function a(e){var t=i.from(e,"utf8");if(t.length>255)throw new Error("route length should fit into unsigned byte length but the given one is ".concat(t.length));var r=i.allocUnsafe(1);return r.writeUInt8(t.length),i.concat([r,t])}function o(e){var t,r,i,s;return n(this,function(n){switch(n.label){case 0:t=e.byteLength,r=0,n.label=1;case 1:if(!(r<t))return[3,3];if(i=e.readUInt8(r++),r+i>t)throw new Error("Malformed RouteMetadata. Offset(".concat(r,") + RouteLength(").concat(i,") is greater than TotalLength"));return s=e.toString("utf8",r,r+i),r+=i,[4,s];case 2:return n.sent(),[3,1];case 3:return[2]}})}t.RoutingMetadata=s,t.encodeRoutes=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(e.length<1)throw new Error("routes should be non empty array");return i.concat(e.map(function(e){return a(e)}))},t.encodeRoute=a,t.decodeRoutes=o},8837:function(e,t,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){void 0===i&&(i=r),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,i){void 0===i&&(i=r),e[i]=t[r]}),n=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||i(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),n(r(8279),t),n(r(3034),t),n(r(9890),t),n(r(8814),t),n(r(2632),t)},9021:function(e,t,r){var i;e.exports=(i=i||function(e){var t;if("undefined"!=typeof window&&window.crypto&&(t=window.crypto),"undefined"!=typeof self&&self.crypto&&(t=self.crypto),"undefined"!=typeof globalThis&&globalThis.crypto&&(t=globalThis.crypto),!t&&"undefined"!=typeof window&&window.msCrypto&&(t=window.msCrypto),!t&&void 0!==r.g&&r.g.crypto&&(t=r.g.crypto),!t)try{t=r(477)}catch(e){}var i=function(){if(t){if("function"==typeof t.getRandomValues)try{return t.getRandomValues(new Uint32Array(1))[0]}catch(e){}if("function"==typeof t.randomBytes)try{return t.randomBytes(4).readInt32LE()}catch(e){}}throw new Error("Native crypto module could not be used to get secure random number.")},n=Object.create||function(){function e(){}return function(t){var r;return e.prototype=t,r=new e,e.prototype=null,r}}(),s={},a=s.lib={},o=a.Base={extend:function(e){var t=n(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},l=a.WordArray=o.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=null!=t?t:4*e.length},toString:function(e){return(e||c).stringify(this)},concat:function(e){var t=this.words,r=e.words,i=this.sigBytes,n=e.sigBytes;if(this.clamp(),i%4)for(var s=0;s<n;s++){var a=r[s>>>2]>>>24-s%4*8&255;t[i+s>>>2]|=a<<24-(i+s)%4*8}else for(var o=0;o<n;o+=4)t[i+o>>>2]=r[o>>>2];return this.sigBytes+=n,this},clamp:function(){var t=this.words,r=this.sigBytes;t[r>>>2]&=4294967295<<32-r%4*8,t.length=e.ceil(r/4)},clone:function(){var e=o.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var t=[],r=0;r<e;r+=4)t.push(i());return new l.init(t,e)}}),u=s.enc={},c=u.Hex={stringify:function(e){for(var t=e.words,r=e.sigBytes,i=[],n=0;n<r;n++){var s=t[n>>>2]>>>24-n%4*8&255;i.push((s>>>4).toString(16)),i.push((15&s).toString(16))}return i.join("")},parse:function(e){for(var t=e.length,r=[],i=0;i<t;i+=2)r[i>>>3]|=parseInt(e.substr(i,2),16)<<24-i%8*4;return new l.init(r,t/2)}},h=u.Latin1={stringify:function(e){for(var t=e.words,r=e.sigBytes,i=[],n=0;n<r;n++){var s=t[n>>>2]>>>24-n%4*8&255;i.push(String.fromCharCode(s))}return i.join("")},parse:function(e){for(var t=e.length,r=[],i=0;i<t;i++)r[i>>>2]|=(255&e.charCodeAt(i))<<24-i%4*8;return new l.init(r,t)}},d=u.Utf8={stringify:function(e){try{return decodeURIComponent(escape(h.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return h.parse(unescape(encodeURIComponent(e)))}},p=a.BufferedBlockAlgorithm=o.extend({reset:function(){this._data=new l.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=d.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var r,i=this._data,n=i.words,s=i.sigBytes,a=this.blockSize,o=s/(4*a),u=(o=t?e.ceil(o):e.max((0|o)-this._minBufferSize,0))*a,c=e.min(4*u,s);if(u){for(var h=0;h<u;h+=a)this._doProcessBlock(n,h);r=n.splice(0,u),i.sigBytes-=c}return new l.init(r,c)},clone:function(){var e=o.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0}),f=(a.Hasher=p.extend({cfg:o.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){p.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){return e&&this._append(e),this._doFinalize()},blockSize:16,_createHelper:function(e){return function(t,r){return new e.init(r).finalize(t)}},_createHmacHelper:function(e){return function(t,r){return new f.HMAC.init(e,r).finalize(t)}}}),s.algo={});return s}(Math),i)},9318:function(e,t,r){"use strict";var i,n=r(8287).hp,s=this&&this.__extends||(i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},i(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.WebsocketDuplexConnection=void 0;var a=r(7225),o=function(e){function t(t,r,i){var s=e.call(this)||this;return s.websocket=t,s.deserializer=r,s.handleClosed=function(e){s.close(new Error(e.reason||"WebsocketDuplexConnection: Socket closed unexpectedly."))},s.handleError=function(e){s.close(e.error)},s.handleMessage=function(e){try{var t=n.from(e.data),r=s.deserializer.deserializeFrame(t);s.multiplexerDemultiplexer.handle(r)}catch(e){s.close(e)}},t.addEventListener("close",s.handleClosed),t.addEventListener("error",s.handleError),t.addEventListener("message",s.handleMessage),s.multiplexerDemultiplexer=i(s),s}return s(t,e),Object.defineProperty(t.prototype,"availability",{get:function(){return this.done?0:1},enumerable:!1,configurable:!0}),t.prototype.close=function(t){this.done||(this.websocket.removeEventListener("close",this.handleClosed),this.websocket.removeEventListener("error",this.handleError),this.websocket.removeEventListener("message",this.handleMessage),this.websocket.close(),delete this.websocket),e.prototype.close.call(this,t)},t.prototype.send=function(e){if(!this.done){var t=(0,a.serializeFrame)(e);this.websocket.send(t)}},t}(a.Deferred);t.WebsocketDuplexConnection=o},9506:function(e,t,r){var i,n,s,a,o,l,u,c;e.exports=(c=r(9021),r(5471),r(1025),s=(n=(i=c).lib).Base,a=n.WordArray,l=(o=i.algo).MD5,u=o.EvpKDF=s.extend({cfg:s.extend({keySize:4,hasher:l,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var r,i=this.cfg,n=i.hasher.create(),s=a.create(),o=s.words,l=i.keySize,u=i.iterations;o.length<l;){r&&n.update(r),r=n.update(e).finalize(t),n.reset();for(var c=1;c<u;c++)r=n.finalize(r),n.reset();s.concat(r)}return s.sigBytes=4*l,s}}),i.EvpKDF=function(e,t,r){return u.create(r).compute(e,t)},c.EvpKDF)},9557:function(e,t,r){var i,n,s,a,o,l,u,c;e.exports=(c=r(9021),r(3240),r(1380),n=(i=c).x64,s=n.Word,a=n.WordArray,o=i.algo,l=o.SHA512,u=o.SHA384=l.extend({_doReset:function(){this._hash=new a.init([new s.init(3418070365,3238371032),new s.init(1654270250,914150663),new s.init(2438529370,812702999),new s.init(355462360,4144912697),new s.init(1731405415,4290775857),new s.init(2394180231,1750603025),new s.init(3675008525,1694076839),new s.init(1203062813,3204075428)])},_doFinalize:function(){var e=l._doFinalize.call(this);return e.sigBytes-=16,e}}),i.SHA384=l._createHelper(u),i.HmacSHA384=l._createHmacHelper(u),c.SHA384)},9890:(e,t,r)=>{"use strict";var i=r(8287).hp;Object.defineProperty(t,"__esModule",{value:!0}),t.decodeSimpleAuthPayload=t.decodeAuthMetadata=t.encodeBearerAuthMetadata=t.encodeSimpleAuthMetadata=t.encodeCustomAuthMetadata=t.encodeWellKnownAuthMetadata=void 0;var n=r(2632);t.encodeWellKnownAuthMetadata=function(e,t){if(e===n.WellKnownAuthType.UNPARSEABLE_AUTH_TYPE||e===n.WellKnownAuthType.UNKNOWN_RESERVED_AUTH_TYPE)throw new Error("Illegal WellKnownAuthType[".concat(e.toString(),"]. Only allowed AuthType should be used"));var r=i.allocUnsafe(1);return r.writeUInt8(128|e.identifier),i.concat([r,t])},t.encodeCustomAuthMetadata=function(e,t){var r=i.from(e);if(r.byteLength!==e.length)throw new Error("Custom auth type must be US_ASCII characters only");if(r.byteLength<1||r.byteLength>128)throw new Error("Custom auth type must have a strictly positive length that fits on 7 unsigned bits, ie 1-128");var n=i.allocUnsafe(1+r.byteLength);return n.writeUInt8(r.byteLength-1),n.write(e,1),i.concat([n,t])},t.encodeSimpleAuthMetadata=function(e,t){var r=i.from(e),s=i.from(t),a=r.byteLength;if(a>65535)throw new Error("Username should be shorter than or equal to 65535 bytes length in UTF-8 encoding but the given was ".concat(a));var o=i.allocUnsafe(3);return o.writeUInt8(128|n.WellKnownAuthType.SIMPLE.identifier),o.writeUInt16BE(a,1),i.concat([o,r,s])},t.encodeBearerAuthMetadata=function(e){var t=i.from(e),r=i.allocUnsafe(1);return r.writeUInt8(128|n.WellKnownAuthType.BEARER.identifier),i.concat([r,t])},t.decodeAuthMetadata=function(e){if(e.byteLength<1)throw new Error("Unable to decode Auth metadata. Not enough readable bytes");var t=e.readUInt8(),r=127&t;if(r!==t){var i=n.WellKnownAuthType.fromIdentifier(r);return{payload:e.slice(1),type:{identifier:i.identifier,string:i.string}}}var s=t+1;if(e.byteLength<s+1)throw new Error("Unable to decode custom Auth type. Malformed length or auth type string");var a=e.toString("utf8",1,1+s);return{payload:e.slice(s+1),type:{identifier:n.WellKnownAuthType.UNPARSEABLE_AUTH_TYPE.identifier,string:a}}},t.decodeSimpleAuthPayload=function(e){if(e.byteLength<2)throw new Error("Unable to decode Simple Auth Payload. Not enough readable bytes");var t=e.readUInt16BE();if(e.byteLength<t+2)throw new Error("Unable to decode Simple Auth Payload. Not enough readable bytes");var r=e.slice(2,2+t);return{password:e.slice(2+t),username:r}}},9927:function(e,t,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){void 0===i&&(i=r),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,i){void 0===i&&(i=r),e[i]=t[r]}),n=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||i(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),n(r(8706),t)}},t={};function r(i){var n=t[i];if(void 0!==n)return n.exports;var s=t[i]={exports:{}};return e[i].call(s.exports,s,s.exports,r),s.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var i in t)r.o(t,i)&&!r.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return(()=>{"use strict";r.d(i,{default:()=>Hi});var e={};r.r(e),r.d(e,{hasBrowserEnv:()=>Te,hasStandardBrowserEnv:()=>Ae,hasStandardBrowserWebWorkerEnv:()=>_e,navigator:()=>Re,origin:()=>Oe});var t,n,s,a,o,l=r(7225),u=r(9927),c=r(8837);class h{messageId="";joinId=0;fromId="";fromName="";destId="";destName="";cite="";type="";title="";subtitle="";text="";secret="";thumb="";host="";url="";lng="";lat="";size=0;length=0;label=null;tag="";sent="";deviceKey="";deviceTag="";revoke=!1;talk=n.default;citeData=null;sentDate=null;hintList=null;notifyList=null;quietlyList=null}!function(e){e.tip="tip",e.notice="notice",e.action="action",e.notify="notify",e.quietly="quietly"}(t||(t={})),function(e){e[e.default=1]="default",e[e.group=2]="group",e[e.team=3]="team"}(n||(n={}));class d{contactId=0;userId="";joinId=0;nickname="";username="";avatar="";subgroup="";status=a.done;isGroup=!1;joinTime="";isMuted=!1;noise=1;sort=0}!function(e){e[e.normal=1]="normal",e[e.not_notify=2]="not_notify",e[e.reject=0]="reject"}(s||(s={})),function(e){e.done="",e.offline="offline",e.online="online",e.online_busy="online-busy",e.online_leave="online-leave"}(a||(a={}));class p{memberId=0;joinId=0;userId="";nickname="";username="";avatar="";role="";status="";joinTime="";isMuted=!1}class f{name="";region="";host="";port="";max=0;type=!0;current=0}class g{deviceId="";deviceKey="";deviceTag="";userId="";joinId=0;status="";region="";gateway=""}class m{groupId=0;joinId=0;userId="";groupName="";groupNumber="";avatar="";members=void 0;depict="";isGroup=!1;isTalk=!1;isMute=!1;isApproval=!0;isInviteApply=!0;isInvite=!0;isRevoke=!0;maxMember=200;ask="";remark="";type=o.protected;isLive=!1}function y(e,t){return function(){return e.apply(t,arguments)}}!function(e){e[e.public=1]="public",e[e.protected=2]="protected",e[e.private=3]="private"}(o||(o={}));const{toString:v}=Object.prototype,{getPrototypeOf:b}=Object,{iterator:I,toStringTag:w}=Symbol,E=(k=Object.create(null),e=>{const t=v.call(e);return k[t]||(k[t]=t.slice(8,-1).toLowerCase())});var k;const S=e=>(e=e.toLowerCase(),t=>E(t)===e),M=e=>t=>typeof t===e,{isArray:F}=Array,T=M("undefined");function R(e){return null!==e&&!T(e)&&null!==e.constructor&&!T(e.constructor)&&O(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const A=S("ArrayBuffer"),_=M("string"),O=M("function"),C=M("number"),x=e=>null!==e&&"object"==typeof e,N=e=>{if("object"!==E(e))return!1;const t=b(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||w in e||I in e)},D=S("Date"),P=S("File"),L=S("Blob"),B=S("FileList"),j=S("URLSearchParams"),[U,W,z,H]=["ReadableStream","Request","Response","Headers"].map(S);function K(e,t,{allOwnKeys:r=!1}={}){if(null==e)return;let i,n;if("object"!=typeof e&&(e=[e]),F(e))for(i=0,n=e.length;i<n;i++)t.call(null,e[i],i,e);else{if(R(e))return;const n=r?Object.getOwnPropertyNames(e):Object.keys(e),s=n.length;let a;for(i=0;i<s;i++)a=n[i],t.call(null,e[a],a,e)}}function G(e,t){if(R(e))return null;t=t.toLowerCase();const r=Object.keys(e);let i,n=r.length;for(;n-- >0;)if(i=r[n],t===i.toLowerCase())return i;return null}const q="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,V=e=>!T(e)&&e!==q,Y=(X="undefined"!=typeof Uint8Array&&b(Uint8Array),e=>X&&e instanceof X);var X;const J=S("HTMLFormElement"),Z=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),Q=S("RegExp"),$=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),i={};K(r,(r,n)=>{let s;!1!==(s=t(r,n,e))&&(i[n]=s||r)}),Object.defineProperties(e,i)},ee=S("AsyncFunction"),te=(re="function"==typeof setImmediate,ie=O(q.postMessage),re?setImmediate:ie?(ne=`axios@${Math.random()}`,se=[],q.addEventListener("message",({source:e,data:t})=>{e===q&&t===ne&&se.length&&se.shift()()},!1),e=>{se.push(e),q.postMessage(ne,"*")}):e=>setTimeout(e));var re,ie,ne,se;const ae="undefined"!=typeof queueMicrotask?queueMicrotask.bind(q):"undefined"!=typeof process&&process.nextTick||te,oe={isArray:F,isArrayBuffer:A,isBuffer:R,isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||O(e.append)&&("formdata"===(t=E(e))||"object"===t&&O(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&A(e.buffer),t},isString:_,isNumber:C,isBoolean:e=>!0===e||!1===e,isObject:x,isPlainObject:N,isEmptyObject:e=>{if(!x(e)||R(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}},isReadableStream:U,isRequest:W,isResponse:z,isHeaders:H,isUndefined:T,isDate:D,isFile:P,isBlob:L,isRegExp:Q,isFunction:O,isStream:e=>x(e)&&O(e.pipe),isURLSearchParams:j,isTypedArray:Y,isFileList:B,forEach:K,merge:function e(){const{caseless:t,skipUndefined:r}=V(this)&&this||{},i={},n=(n,s)=>{const a=t&&G(i,s)||s;N(i[a])&&N(n)?i[a]=e(i[a],n):N(n)?i[a]=e({},n):F(n)?i[a]=n.slice():r&&T(n)||(i[a]=n)};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&K(arguments[e],n);return i},extend:(e,t,r,{allOwnKeys:i}={})=>(K(t,(t,i)=>{r&&O(t)?e[i]=y(t,r):e[i]=t},{allOwnKeys:i}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,r,i)=>{e.prototype=Object.create(t.prototype,i),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},toFlatObject:(e,t,r,i)=>{let n,s,a;const o={};if(t=t||{},null==e)return t;do{for(n=Object.getOwnPropertyNames(e),s=n.length;s-- >0;)a=n[s],i&&!i(a,e,t)||o[a]||(t[a]=e[a],o[a]=!0);e=!1!==r&&b(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},kindOf:E,kindOfTest:S,endsWith:(e,t,r)=>{e=String(e),(void 0===r||r>e.length)&&(r=e.length),r-=t.length;const i=e.indexOf(t,r);return-1!==i&&i===r},toArray:e=>{if(!e)return null;if(F(e))return e;let t=e.length;if(!C(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},forEachEntry:(e,t)=>{const r=(e&&e[I]).call(e);let i;for(;(i=r.next())&&!i.done;){const r=i.value;t.call(e,r[0],r[1])}},matchAll:(e,t)=>{let r;const i=[];for(;null!==(r=e.exec(t));)i.push(r);return i},isHTMLForm:J,hasOwnProperty:Z,hasOwnProp:Z,reduceDescriptors:$,freezeMethods:e=>{$(e,(t,r)=>{if(O(e)&&-1!==["arguments","caller","callee"].indexOf(r))return!1;const i=e[r];O(i)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")}))})},toObjectSet:(e,t)=>{const r={},i=e=>{e.forEach(e=>{r[e]=!0})};return F(e)?i(e):i(String(e).split(t)),r},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,r){return t.toUpperCase()+r}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:G,global:q,isContextDefined:V,isSpecCompliantForm:function(e){return!!(e&&O(e.append)&&"FormData"===e[w]&&e[I])},toJSONObject:e=>{const t=new Array(10),r=(e,i)=>{if(x(e)){if(t.indexOf(e)>=0)return;if(R(e))return e;if(!("toJSON"in e)){t[i]=e;const n=F(e)?[]:{};return K(e,(e,t)=>{const s=r(e,i+1);!T(s)&&(n[t]=s)}),t[i]=void 0,n}}return e};return r(e,0)},isAsyncFn:ee,isThenable:e=>e&&(x(e)||O(e))&&O(e.then)&&O(e.catch),setImmediate:te,asap:ae,isIterable:e=>null!=e&&O(e[I])};function le(e,t,r,i,n){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),i&&(this.request=i),n&&(this.response=n,this.status=n.status?n.status:null)}oe.inherits(le,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:oe.toJSONObject(this.config),code:this.code,status:this.status}}});const ue=le.prototype,ce={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{ce[e]={value:e}}),Object.defineProperties(le,ce),Object.defineProperty(ue,"isAxiosError",{value:!0}),le.from=(e,t,r,i,n,s)=>{const a=Object.create(ue);oe.toFlatObject(e,a,function(e){return e!==Error.prototype},e=>"isAxiosError"!==e);const o=e&&e.message?e.message:"Error",l=null==t&&e?e.code:t;return le.call(a,o,l,r,i,n),e&&null==a.cause&&Object.defineProperty(a,"cause",{value:e,configurable:!0}),a.name=e&&e.name||"Error",s&&Object.assign(a,s),a};const he=le;var de=r(8287).hp;function pe(e){return oe.isPlainObject(e)||oe.isArray(e)}function fe(e){return oe.endsWith(e,"[]")?e.slice(0,-2):e}function ge(e,t,r){return e?e.concat(t).map(function(e,t){return e=fe(e),!r&&t?"["+e+"]":e}).join(r?".":""):t}const me=oe.toFlatObject(oe,{},null,function(e){return/^is[A-Z]/.test(e)}),ye=function(e,t,r){if(!oe.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const i=(r=oe.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!oe.isUndefined(t[e])})).metaTokens,n=r.visitor||u,s=r.dots,a=r.indexes,o=(r.Blob||"undefined"!=typeof Blob&&Blob)&&oe.isSpecCompliantForm(t);if(!oe.isFunction(n))throw new TypeError("visitor must be a function");function l(e){if(null===e)return"";if(oe.isDate(e))return e.toISOString();if(oe.isBoolean(e))return e.toString();if(!o&&oe.isBlob(e))throw new he("Blob is not supported. Use a Buffer instead.");return oe.isArrayBuffer(e)||oe.isTypedArray(e)?o&&"function"==typeof Blob?new Blob([e]):de.from(e):e}function u(e,r,n){let o=e;if(e&&!n&&"object"==typeof e)if(oe.endsWith(r,"{}"))r=i?r:r.slice(0,-2),e=JSON.stringify(e);else if(oe.isArray(e)&&function(e){return oe.isArray(e)&&!e.some(pe)}(e)||(oe.isFileList(e)||oe.endsWith(r,"[]"))&&(o=oe.toArray(e)))return r=fe(r),o.forEach(function(e,i){!oe.isUndefined(e)&&null!==e&&t.append(!0===a?ge([r],i,s):null===a?r:r+"[]",l(e))}),!1;return!!pe(e)||(t.append(ge(n,r,s),l(e)),!1)}const c=[],h=Object.assign(me,{defaultVisitor:u,convertValue:l,isVisitable:pe});if(!oe.isObject(e))throw new TypeError("data must be an object");return function e(r,i){if(!oe.isUndefined(r)){if(-1!==c.indexOf(r))throw Error("Circular reference detected in "+i.join("."));c.push(r),oe.forEach(r,function(r,s){!0===(!(oe.isUndefined(r)||null===r)&&n.call(t,r,oe.isString(s)?s.trim():s,i,h))&&e(r,i?i.concat(s):[s])}),c.pop()}}(e),t};function ve(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function be(e,t){this._pairs=[],e&&ye(e,this,t)}const Ie=be.prototype;Ie.append=function(e,t){this._pairs.push([e,t])},Ie.toString=function(e){const t=e?function(t){return e.call(this,t,ve)}:ve;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};const we=be;function Ee(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function ke(e,t,r){if(!t)return e;const i=r&&r.encode||Ee;oe.isFunction(r)&&(r={serialize:r});const n=r&&r.serialize;let s;if(s=n?n(t,r):oe.isURLSearchParams(t)?t.toString():new we(t,r).toString(i),s){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+s}return e}const Se=class{constructor(){this.handlers=[]}use(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){oe.forEach(this.handlers,function(t){null!==t&&e(t)})}},Me={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Fe={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:we,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},Te="undefined"!=typeof window&&"undefined"!=typeof document,Re="object"==typeof navigator&&navigator||void 0,Ae=Te&&(!Re||["ReactNative","NativeScript","NS"].indexOf(Re.product)<0),_e="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,Oe=Te&&window.location.href||"http://localhost",Ce={...e,...Fe},xe=function(e){function t(e,r,i,n){let s=e[n++];if("__proto__"===s)return!0;const a=Number.isFinite(+s),o=n>=e.length;return s=!s&&oe.isArray(i)?i.length:s,o?(oe.hasOwnProp(i,s)?i[s]=[i[s],r]:i[s]=r,!a):(i[s]&&oe.isObject(i[s])||(i[s]=[]),t(e,r,i[s],n)&&oe.isArray(i[s])&&(i[s]=function(e){const t={},r=Object.keys(e);let i;const n=r.length;let s;for(i=0;i<n;i++)s=r[i],t[s]=e[s];return t}(i[s])),!a)}if(oe.isFormData(e)&&oe.isFunction(e.entries)){const r={};return oe.forEachEntry(e,(e,i)=>{t(function(e){return oe.matchAll(/\w+|\[(\w*)]/g,e).map(e=>"[]"===e[0]?"":e[1]||e[0])}(e),i,r,0)}),r}return null},Ne={transitional:Me,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const r=t.getContentType()||"",i=r.indexOf("application/json")>-1,n=oe.isObject(e);if(n&&oe.isHTMLForm(e)&&(e=new FormData(e)),oe.isFormData(e))return i?JSON.stringify(xe(e)):e;if(oe.isArrayBuffer(e)||oe.isBuffer(e)||oe.isStream(e)||oe.isFile(e)||oe.isBlob(e)||oe.isReadableStream(e))return e;if(oe.isArrayBufferView(e))return e.buffer;if(oe.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let s;if(n){if(r.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return ye(e,new Ce.classes.URLSearchParams,{visitor:function(e,t,r,i){return Ce.isNode&&oe.isBuffer(e)?(this.append(t,e.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)},...t})}(e,this.formSerializer).toString();if((s=oe.isFileList(e))||r.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return ye(s?{"files[]":e}:e,t&&new t,this.formSerializer)}}return n||i?(t.setContentType("application/json",!1),function(e){if(oe.isString(e))try{return(0,JSON.parse)(e),oe.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||Ne.transitional,r=t&&t.forcedJSONParsing,i="json"===this.responseType;if(oe.isResponse(e)||oe.isReadableStream(e))return e;if(e&&oe.isString(e)&&(r&&!this.responseType||i)){const r=!(t&&t.silentJSONParsing)&&i;try{return JSON.parse(e,this.parseReviver)}catch(e){if(r){if("SyntaxError"===e.name)throw he.from(e,he.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ce.classes.FormData,Blob:Ce.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};oe.forEach(["delete","get","head","post","put","patch"],e=>{Ne.headers[e]={}});const De=Ne,Pe=oe.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Le=Symbol("internals");function Be(e){return e&&String(e).trim().toLowerCase()}function je(e){return!1===e||null==e?e:oe.isArray(e)?e.map(je):String(e)}function Ue(e,t,r,i,n){return oe.isFunction(i)?i.call(this,t,r):(n&&(t=r),oe.isString(t)?oe.isString(i)?-1!==t.indexOf(i):oe.isRegExp(i)?i.test(t):void 0:void 0)}class We{constructor(e){e&&this.set(e)}set(e,t,r){const i=this;function n(e,t,r){const n=Be(t);if(!n)throw new Error("header name must be a non-empty string");const s=oe.findKey(i,n);(!s||void 0===i[s]||!0===r||void 0===r&&!1!==i[s])&&(i[s||t]=je(e))}const s=(e,t)=>oe.forEach(e,(e,r)=>n(e,r,t));if(oe.isPlainObject(e)||e instanceof this.constructor)s(e,t);else if(oe.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))s((e=>{const t={};let r,i,n;return e&&e.split("\n").forEach(function(e){n=e.indexOf(":"),r=e.substring(0,n).trim().toLowerCase(),i=e.substring(n+1).trim(),!r||t[r]&&Pe[r]||("set-cookie"===r?t[r]?t[r].push(i):t[r]=[i]:t[r]=t[r]?t[r]+", "+i:i)}),t})(e),t);else if(oe.isObject(e)&&oe.isIterable(e)){let r,i,n={};for(const t of e){if(!oe.isArray(t))throw TypeError("Object iterator must return a key-value pair");n[i=t[0]]=(r=n[i])?oe.isArray(r)?[...r,t[1]]:[r,t[1]]:t[1]}s(n,t)}else null!=e&&n(t,e,r);return this}get(e,t){if(e=Be(e)){const r=oe.findKey(this,e);if(r){const e=this[r];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let i;for(;i=r.exec(e);)t[i[1]]=i[2];return t}(e);if(oe.isFunction(t))return t.call(this,e,r);if(oe.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=Be(e)){const r=oe.findKey(this,e);return!(!r||void 0===this[r]||t&&!Ue(0,this[r],r,t))}return!1}delete(e,t){const r=this;let i=!1;function n(e){if(e=Be(e)){const n=oe.findKey(r,e);!n||t&&!Ue(0,r[n],n,t)||(delete r[n],i=!0)}}return oe.isArray(e)?e.forEach(n):n(e),i}clear(e){const t=Object.keys(this);let r=t.length,i=!1;for(;r--;){const n=t[r];e&&!Ue(0,this[n],n,e,!0)||(delete this[n],i=!0)}return i}normalize(e){const t=this,r={};return oe.forEach(this,(i,n)=>{const s=oe.findKey(r,n);if(s)return t[s]=je(i),void delete t[n];const a=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,r)=>t.toUpperCase()+r)}(n):String(n).trim();a!==n&&delete t[n],t[a]=je(i),r[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return oe.forEach(this,(r,i)=>{null!=r&&!1!==r&&(t[i]=e&&oe.isArray(r)?r.join(", "):r)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const r=new this(e);return t.forEach(e=>r.set(e)),r}static accessor(e){const t=(this[Le]=this[Le]={accessors:{}}).accessors,r=this.prototype;function i(e){const i=Be(e);t[i]||(function(e,t){const r=oe.toCamelCase(" "+t);["get","set","has"].forEach(i=>{Object.defineProperty(e,i+r,{value:function(e,r,n){return this[i].call(this,t,e,r,n)},configurable:!0})})}(r,e),t[i]=!0)}return oe.isArray(e)?e.forEach(i):i(e),this}}We.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),oe.reduceDescriptors(We.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[r]=e}}}),oe.freezeMethods(We);const ze=We;function He(e,t){const r=this||De,i=t||r,n=ze.from(i.headers);let s=i.data;return oe.forEach(e,function(e){s=e.call(r,s,n.normalize(),t?t.status:void 0)}),n.normalize(),s}function Ke(e){return!(!e||!e.__CANCEL__)}function Ge(e,t,r){he.call(this,null==e?"canceled":e,he.ERR_CANCELED,t,r),this.name="CanceledError"}oe.inherits(Ge,he,{__CANCEL__:!0});const qe=Ge;function Ve(e,t,r){const i=r.config.validateStatus;r.status&&i&&!i(r.status)?t(new he("Request failed with status code "+r.status,[he.ERR_BAD_REQUEST,he.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r)):e(r)}const Ye=(e,t,r=3)=>{let i=0;const n=function(e,t){e=e||10;const r=new Array(e),i=new Array(e);let n,s=0,a=0;return t=void 0!==t?t:1e3,function(o){const l=Date.now(),u=i[a];n||(n=l),r[s]=o,i[s]=l;let c=a,h=0;for(;c!==s;)h+=r[c++],c%=e;if(s=(s+1)%e,s===a&&(a=(a+1)%e),l-n<t)return;const d=u&&l-u;return d?Math.round(1e3*h/d):void 0}}(50,250);return function(e,t){let r,i,n=0,s=1e3/t;const a=(t,s=Date.now())=>{n=s,r=null,i&&(clearTimeout(i),i=null),e(...t)};return[(...e)=>{const t=Date.now(),o=t-n;o>=s?a(e,t):(r=e,i||(i=setTimeout(()=>{i=null,a(r)},s-o)))},()=>r&&a(r)]}(r=>{const s=r.loaded,a=r.lengthComputable?r.total:void 0,o=s-i,l=n(o);i=s,e({loaded:s,total:a,progress:a?s/a:void 0,bytes:o,rate:l||void 0,estimated:l&&a&&s<=a?(a-s)/l:void 0,event:r,lengthComputable:null!=a,[t?"download":"upload"]:!0})},r)},Xe=(e,t)=>{const r=null!=e;return[i=>t[0]({lengthComputable:r,total:e,loaded:i}),t[1]]},Je=e=>(...t)=>oe.asap(()=>e(...t)),Ze=Ce.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,Ce.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(Ce.origin),Ce.navigator&&/(msie|trident)/i.test(Ce.navigator.userAgent)):()=>!0,Qe=Ce.hasStandardBrowserEnv?{write(e,t,r,i,n,s){const a=[e+"="+encodeURIComponent(t)];oe.isNumber(r)&&a.push("expires="+new Date(r).toGMTString()),oe.isString(i)&&a.push("path="+i),oe.isString(n)&&a.push("domain="+n),!0===s&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function $e(e,t,r){let i=!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);return e&&(i||0==r)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const et=e=>e instanceof ze?{...e}:e;function tt(e,t){t=t||{};const r={};function i(e,t,r,i){return oe.isPlainObject(e)&&oe.isPlainObject(t)?oe.merge.call({caseless:i},e,t):oe.isPlainObject(t)?oe.merge({},t):oe.isArray(t)?t.slice():t}function n(e,t,r,n){return oe.isUndefined(t)?oe.isUndefined(e)?void 0:i(void 0,e,0,n):i(e,t,0,n)}function s(e,t){if(!oe.isUndefined(t))return i(void 0,t)}function a(e,t){return oe.isUndefined(t)?oe.isUndefined(e)?void 0:i(void 0,e):i(void 0,t)}function o(r,n,s){return s in t?i(r,n):s in e?i(void 0,r):void 0}const l={url:s,method:s,data:s,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:o,headers:(e,t,r)=>n(et(e),et(t),0,!0)};return oe.forEach(Object.keys({...e,...t}),function(i){const s=l[i]||n,a=s(e[i],t[i],i);oe.isUndefined(a)&&s!==o||(r[i]=a)}),r}const rt=e=>{const t=tt({},e);let{data:r,withXSRFToken:i,xsrfHeaderName:n,xsrfCookieName:s,headers:a,auth:o}=t;if(t.headers=a=ze.from(a),t.url=ke($e(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),o&&a.set("Authorization","Basic "+btoa((o.username||"")+":"+(o.password?unescape(encodeURIComponent(o.password)):""))),oe.isFormData(r))if(Ce.hasStandardBrowserEnv||Ce.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if(oe.isFunction(r.getHeaders)){const e=r.getHeaders(),t=["content-type","content-length"];Object.entries(e).forEach(([e,r])=>{t.includes(e.toLowerCase())&&a.set(e,r)})}if(Ce.hasStandardBrowserEnv&&(i&&oe.isFunction(i)&&(i=i(t)),i||!1!==i&&Ze(t.url))){const e=n&&s&&Qe.read(s);e&&a.set(n,e)}return t},it="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise(function(t,r){const i=rt(e);let n=i.data;const s=ze.from(i.headers).normalize();let a,o,l,u,c,{responseType:h,onUploadProgress:d,onDownloadProgress:p}=i;function f(){u&&u(),c&&c(),i.cancelToken&&i.cancelToken.unsubscribe(a),i.signal&&i.signal.removeEventListener("abort",a)}let g=new XMLHttpRequest;function m(){if(!g)return;const i=ze.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders());Ve(function(e){t(e),f()},function(e){r(e),f()},{data:h&&"text"!==h&&"json"!==h?g.response:g.responseText,status:g.status,statusText:g.statusText,headers:i,config:e,request:g}),g=null}g.open(i.method.toUpperCase(),i.url,!0),g.timeout=i.timeout,"onloadend"in g?g.onloadend=m:g.onreadystatechange=function(){g&&4===g.readyState&&(0!==g.status||g.responseURL&&0===g.responseURL.indexOf("file:"))&&setTimeout(m)},g.onabort=function(){g&&(r(new he("Request aborted",he.ECONNABORTED,e,g)),g=null)},g.onerror=function(t){const i=t&&t.message?t.message:"Network Error",n=new he(i,he.ERR_NETWORK,e,g);n.event=t||null,r(n),g=null},g.ontimeout=function(){let t=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const n=i.transitional||Me;i.timeoutErrorMessage&&(t=i.timeoutErrorMessage),r(new he(t,n.clarifyTimeoutError?he.ETIMEDOUT:he.ECONNABORTED,e,g)),g=null},void 0===n&&s.setContentType(null),"setRequestHeader"in g&&oe.forEach(s.toJSON(),function(e,t){g.setRequestHeader(t,e)}),oe.isUndefined(i.withCredentials)||(g.withCredentials=!!i.withCredentials),h&&"json"!==h&&(g.responseType=i.responseType),p&&([l,c]=Ye(p,!0),g.addEventListener("progress",l)),d&&g.upload&&([o,u]=Ye(d),g.upload.addEventListener("progress",o),g.upload.addEventListener("loadend",u)),(i.cancelToken||i.signal)&&(a=t=>{g&&(r(!t||t.type?new qe(null,e,g):t),g.abort(),g=null)},i.cancelToken&&i.cancelToken.subscribe(a),i.signal&&(i.signal.aborted?a():i.signal.addEventListener("abort",a)));const y=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(i.url);y&&-1===Ce.protocols.indexOf(y)?r(new he("Unsupported protocol "+y+":",he.ERR_BAD_REQUEST,e)):g.send(n||null)})},nt=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let r,i=new AbortController;const n=function(e){if(!r){r=!0,a();const t=e instanceof Error?e:this.reason;i.abort(t instanceof he?t:new qe(t instanceof Error?t.message:t))}};let s=t&&setTimeout(()=>{s=null,n(new he(`timeout ${t} of ms exceeded`,he.ETIMEDOUT))},t);const a=()=>{e&&(s&&clearTimeout(s),s=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(n):e.removeEventListener("abort",n)}),e=null)};e.forEach(e=>e.addEventListener("abort",n));const{signal:o}=i;return o.unsubscribe=()=>oe.asap(a),o}},st=function*(e,t){let r=e.byteLength;if(!t||r<t)return void(yield e);let i,n=0;for(;n<r;)i=n+t,yield e.slice(n,i),n=i},at=(e,t,r,i)=>{const n=async function*(e,t){for await(const r of async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:r}=await t.read();if(e)break;yield r}}finally{await t.cancel()}}(e))yield*st(r,t)}(e,t);let s,a=0,o=e=>{s||(s=!0,i&&i(e))};return new ReadableStream({async pull(e){try{const{done:t,value:i}=await n.next();if(t)return o(),void e.close();let s=i.byteLength;if(r){let e=a+=s;r(e)}e.enqueue(new Uint8Array(i))}catch(e){throw o(e),e}},cancel:e=>(o(e),n.return())},{highWaterMark:2})},{isFunction:ot}=oe,lt=(({Request:e,Response:t})=>({Request:e,Response:t}))(oe.global),{ReadableStream:ut,TextEncoder:ct}=oe.global,ht=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},dt=e=>{e=oe.merge.call({skipUndefined:!0},lt,e);const{fetch:t,Request:r,Response:i}=e,n=t?ot(t):"function"==typeof fetch,s=ot(r),a=ot(i);if(!n)return!1;const o=n&&ot(ut),l=n&&("function"==typeof ct?(u=new ct,e=>u.encode(e)):async e=>new Uint8Array(await new r(e).arrayBuffer()));var u;const c=s&&o&&ht(()=>{let e=!1;const t=new r(Ce.origin,{body:new ut,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),h=a&&o&&ht(()=>oe.isReadableStream(new i("").body)),d={stream:h&&(e=>e.body)};n&&["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!d[e]&&(d[e]=(t,r)=>{let i=t&&t[e];if(i)return i.call(t);throw new he(`Response type '${e}' is not supported`,he.ERR_NOT_SUPPORT,r)})});return async e=>{let{url:n,method:a,data:o,signal:u,cancelToken:p,timeout:f,onDownloadProgress:g,onUploadProgress:m,responseType:y,headers:v,withCredentials:b="same-origin",fetchOptions:I}=rt(e),w=t||fetch;y=y?(y+"").toLowerCase():"text";let E=nt([u,p&&p.toAbortSignal()],f),k=null;const S=E&&E.unsubscribe&&(()=>{E.unsubscribe()});let M;try{if(m&&c&&"get"!==a&&"head"!==a&&0!==(M=await(async(e,t)=>{const i=oe.toFiniteNumber(e.getContentLength());return null==i?(async e=>{if(null==e)return 0;if(oe.isBlob(e))return e.size;if(oe.isSpecCompliantForm(e)){const t=new r(Ce.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return oe.isArrayBufferView(e)||oe.isArrayBuffer(e)?e.byteLength:(oe.isURLSearchParams(e)&&(e+=""),oe.isString(e)?(await l(e)).byteLength:void 0)})(t):i})(v,o))){let e,t=new r(n,{method:"POST",body:o,duplex:"half"});if(oe.isFormData(o)&&(e=t.headers.get("content-type"))&&v.setContentType(e),t.body){const[e,r]=Xe(M,Ye(Je(m)));o=at(t.body,65536,e,r)}}oe.isString(b)||(b=b?"include":"omit");const t=s&&"credentials"in r.prototype,u={...I,signal:E,method:a.toUpperCase(),headers:v.normalize().toJSON(),body:o,duplex:"half",credentials:t?b:void 0};k=s&&new r(n,u);let p=await(s?w(k,I):w(n,u));const f=h&&("stream"===y||"response"===y);if(h&&(g||f&&S)){const e={};["status","statusText","headers"].forEach(t=>{e[t]=p[t]});const t=oe.toFiniteNumber(p.headers.get("content-length")),[r,n]=g&&Xe(t,Ye(Je(g),!0))||[];p=new i(at(p.body,65536,r,()=>{n&&n(),S&&S()}),e)}y=y||"text";let F=await d[oe.findKey(d,y)||"text"](p,e);return!f&&S&&S(),await new Promise((t,r)=>{Ve(t,r,{data:F,headers:ze.from(p.headers),status:p.status,statusText:p.statusText,config:e,request:k})})}catch(t){if(S&&S(),t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message))throw Object.assign(new he("Network Error",he.ERR_NETWORK,e,k),{cause:t.cause||t});throw he.from(t,t&&t.code,e,k)}}},pt=new Map,ft=e=>{let t=e?e.env:{};const{fetch:r,Request:i,Response:n}=t,s=[i,n,r];let a,o,l=s.length,u=pt;for(;l--;)a=s[l],o=u.get(a),void 0===o&&u.set(a,o=l?new Map:dt(t)),u=o;return o},gt=(ft(),{http:null,xhr:it,fetch:{get:ft}});oe.forEach(gt,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}});const mt=e=>`- ${e}`,yt=e=>oe.isFunction(e)||null===e||!1===e,vt=(e,t)=>{e=oe.isArray(e)?e:[e];const{length:r}=e;let i,n;const s={};for(let a=0;a<r;a++){let r;if(i=e[a],n=i,!yt(i)&&(n=gt[(r=String(i)).toLowerCase()],void 0===n))throw new he(`Unknown adapter '${r}'`);if(n&&(oe.isFunction(n)||(n=n.get(t))))break;s[r||"#"+a]=n}if(!n){const e=Object.entries(s).map(([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));let t=r?e.length>1?"since :\n"+e.map(mt).join("\n"):" "+mt(e[0]):"as no adapter specified";throw new he("There is no suitable adapter to dispatch the request "+t,"ERR_NOT_SUPPORT")}return n};function bt(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new qe(null,e)}function It(e){return bt(e),e.headers=ze.from(e.headers),e.data=He.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),vt(e.adapter||De.adapter,e)(e).then(function(t){return bt(e),t.data=He.call(e,e.transformResponse,t),t.headers=ze.from(t.headers),t},function(t){return Ke(t)||(bt(e),t&&t.response&&(t.response.data=He.call(e,e.transformResponse,t.response),t.response.headers=ze.from(t.response.headers))),Promise.reject(t)})}const wt="1.12.2",Et={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Et[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const kt={};Et.transitional=function(e,t,r){function i(e,t){return"[Axios v"+wt+"] Transitional option '"+e+"'"+t+(r?". "+r:"")}return(r,n,s)=>{if(!1===e)throw new he(i(n," has been removed"+(t?" in "+t:"")),he.ERR_DEPRECATED);return t&&!kt[n]&&(kt[n]=!0,console.warn(i(n," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,n,s)}},Et.spelling=function(e){return(t,r)=>(console.warn(`${r} is likely a misspelling of ${e}`),!0)};const St={assertOptions:function(e,t,r){if("object"!=typeof e)throw new he("options must be an object",he.ERR_BAD_OPTION_VALUE);const i=Object.keys(e);let n=i.length;for(;n-- >0;){const s=i[n],a=t[s];if(a){const t=e[s],r=void 0===t||a(t,s,e);if(!0!==r)throw new he("option "+s+" must be "+r,he.ERR_BAD_OPTION_VALUE);continue}if(!0!==r)throw new he("Unknown option "+s,he.ERR_BAD_OPTION)}},validators:Et},Mt=St.validators;class Ft{constructor(e){this.defaults=e||{},this.interceptors={request:new Se,response:new Se}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=new Error;const r=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?r&&!String(e.stack).endsWith(r.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+r):e.stack=r}catch(e){}}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=tt(this.defaults,t);const{transitional:r,paramsSerializer:i,headers:n}=t;void 0!==r&&St.assertOptions(r,{silentJSONParsing:Mt.transitional(Mt.boolean),forcedJSONParsing:Mt.transitional(Mt.boolean),clarifyTimeoutError:Mt.transitional(Mt.boolean)},!1),null!=i&&(oe.isFunction(i)?t.paramsSerializer={serialize:i}:St.assertOptions(i,{encode:Mt.function,serialize:Mt.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),St.assertOptions(t,{baseUrl:Mt.spelling("baseURL"),withXsrfToken:Mt.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let s=n&&oe.merge(n.common,n[t.method]);n&&oe.forEach(["delete","get","head","post","put","patch","common"],e=>{delete n[e]}),t.headers=ze.concat(s,n);const a=[];let o=!0;this.interceptors.request.forEach(function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(o=o&&e.synchronous,a.unshift(e.fulfilled,e.rejected))});const l=[];let u;this.interceptors.response.forEach(function(e){l.push(e.fulfilled,e.rejected)});let c,h=0;if(!o){const e=[It.bind(this),void 0];for(e.unshift(...a),e.push(...l),c=e.length,u=Promise.resolve(t);h<c;)u=u.then(e[h++],e[h++]);return u}c=a.length;let d=t;for(;h<c;){const e=a[h++],t=a[h++];try{d=e(d)}catch(e){t.call(this,e);break}}try{u=It.call(this,d)}catch(e){return Promise.reject(e)}for(h=0,c=l.length;h<c;)u=u.then(l[h++],l[h++]);return u}getUri(e){return ke($e((e=tt(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}}oe.forEach(["delete","get","head","options"],function(e){Ft.prototype[e]=function(t,r){return this.request(tt(r||{},{method:e,url:t,data:(r||{}).data}))}}),oe.forEach(["post","put","patch"],function(e){function t(t){return function(r,i,n){return this.request(tt(n||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:r,data:i}))}}Ft.prototype[e]=t(),Ft.prototype[e+"Form"]=t(!0)});const Tt=Ft;class Rt{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(e){t=e});const r=this;this.promise.then(e=>{if(!r._listeners)return;let t=r._listeners.length;for(;t-- >0;)r._listeners[t](e);r._listeners=null}),this.promise.then=e=>{let t;const i=new Promise(e=>{r.subscribe(e),t=e}).then(e);return i.cancel=function(){r.unsubscribe(t)},i},e(function(e,i,n){r.reason||(r.reason=new qe(e,i,n),t(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new Rt(function(t){e=t}),cancel:e}}}const At=Rt,_t={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(_t).forEach(([e,t])=>{_t[t]=e});const Ot=_t,Ct=function e(t){const r=new Tt(t),i=y(Tt.prototype.request,r);return oe.extend(i,Tt.prototype,r,{allOwnKeys:!0}),oe.extend(i,r,null,{allOwnKeys:!0}),i.create=function(r){return e(tt(t,r))},i}(De);Ct.Axios=Tt,Ct.CanceledError=qe,Ct.CancelToken=At,Ct.isCancel=Ke,Ct.VERSION=wt,Ct.toFormData=ye,Ct.AxiosError=he,Ct.Cancel=Ct.CanceledError,Ct.all=function(e){return Promise.all(e)},Ct.spread=function(e){return function(t){return e.apply(null,t)}},Ct.isAxiosError=function(e){return oe.isObject(e)&&!0===e.isAxiosError},Ct.mergeConfig=tt,Ct.AxiosHeaders=ze,Ct.formToJSON=e=>xe(oe.isHTMLForm(e)?new FormData(e):e),Ct.getAdapter=vt,Ct.HttpStatusCode=Ot,Ct.default=Ct;const xt=Ct;var Nt,Dt,Pt,Lt,Bt,jt,Ut,Wt,zt,Ht,Kt=r(5339);!function(e){class t extends Kt.Message{#e=[];constructor(e){super(),Kt.Message.initialize(this,Array.isArray(e)?e:[],0,-1,[8,10,11,12,13],this.#e),Array.isArray(e)||"object"!=typeof e||("deviceKey"in e&&null!=e.deviceKey&&(this.deviceKey=e.deviceKey),"appId"in e&&null!=e.appId&&(this.appId=e.appId),"userId"in e&&null!=e.userId&&(this.userId=e.userId),"roomId"in e&&null!=e.roomId&&(this.roomId=e.roomId),"teamId"in e&&null!=e.teamId&&(this.teamId=e.teamId),"startTime"in e&&null!=e.startTime&&(this.startTime=e.startTime),"endTime"in e&&null!=e.endTime&&(this.endTime=e.endTime),"ids"in e&&null!=e.ids&&(this.ids=e.ids),"token"in e&&null!=e.token&&(this.token=e.token),"roomIds"in e&&null!=e.roomIds&&(this.roomIds=e.roomIds),"userIds"in e&&null!=e.userIds&&(this.userIds=e.userIds),"teamIds"in e&&null!=e.teamIds&&(this.teamIds=e.teamIds),"keys"in e&&null!=e.keys&&(this.keys=e.keys),"page"in e&&null!=e.page&&(this.page=e.page),"pageSize"in e&&null!=e.pageSize&&(this.pageSize=e.pageSize),"version"in e&&null!=e.version&&(this.version=e.version),"v"in e&&null!=e.v&&(this.v=e.v),"talkMode"in e&&null!=e.talkMode&&(this.talkMode=e.talkMode),"proto"in e&&null!=e.proto&&(this.proto=e.proto),"nickname"in e&&null!=e.nickname&&(this.nickname=e.nickname),"protocol"in e&&null!=e.protocol&&(this.protocol=e.protocol),"deviceTag"in e&&null!=e.deviceTag&&(this.deviceTag=e.deviceTag),"avatar"in e&&null!=e.avatar&&(this.avatar=e.avatar))}get deviceKey(){return Kt.Message.getFieldWithDefault(this,1,"")}set deviceKey(e){Kt.Message.setField(this,1,e)}get appId(){return Kt.Message.getFieldWithDefault(this,2,0)}set appId(e){Kt.Message.setField(this,2,e)}get userId(){return Kt.Message.getFieldWithDefault(this,3,"")}set userId(e){Kt.Message.setField(this,3,e)}get roomId(){return Kt.Message.getFieldWithDefault(this,4,0)}set roomId(e){Kt.Message.setField(this,4,e)}get teamId(){return Kt.Message.getFieldWithDefault(this,5,0)}set teamId(e){Kt.Message.setField(this,5,e)}get startTime(){return Kt.Message.getFieldWithDefault(this,6,"")}set startTime(e){Kt.Message.setField(this,6,e)}get endTime(){return Kt.Message.getFieldWithDefault(this,7,"")}set endTime(e){Kt.Message.setField(this,7,e)}get ids(){return Kt.Message.getFieldWithDefault(this,8,[])}set ids(e){Kt.Message.setField(this,8,e)}get token(){return Kt.Message.getFieldWithDefault(this,9,"")}set token(e){Kt.Message.setField(this,9,e)}get roomIds(){return Kt.Message.getFieldWithDefault(this,10,[])}set roomIds(e){Kt.Message.setField(this,10,e)}get userIds(){return Kt.Message.getFieldWithDefault(this,11,[])}set userIds(e){Kt.Message.setField(this,11,e)}get teamIds(){return Kt.Message.getFieldWithDefault(this,12,[])}set teamIds(e){Kt.Message.setField(this,12,e)}get keys(){return Kt.Message.getFieldWithDefault(this,13,[])}set keys(e){Kt.Message.setField(this,13,e)}get page(){return Kt.Message.getFieldWithDefault(this,14,0)}set page(e){Kt.Message.setField(this,14,e)}get pageSize(){return Kt.Message.getFieldWithDefault(this,15,0)}set pageSize(e){Kt.Message.setField(this,15,e)}get version(){return Kt.Message.getFieldWithDefault(this,16,"")}set version(e){Kt.Message.setField(this,16,e)}get v(){return Kt.Message.getFieldWithDefault(this,17,0)}set v(e){Kt.Message.setField(this,17,e)}get talkMode(){return Kt.Message.getFieldWithDefault(this,18,0)}set talkMode(e){Kt.Message.setField(this,18,e)}get proto(){return Kt.Message.getFieldWithDefault(this,19,"")}set proto(e){Kt.Message.setField(this,19,e)}get nickname(){return Kt.Message.getFieldWithDefault(this,20,"")}set nickname(e){Kt.Message.setField(this,20,e)}get protocol(){return Kt.Message.getFieldWithDefault(this,21,new Uint8Array(0))}set protocol(e){Kt.Message.setField(this,21,e)}get deviceTag(){return Kt.Message.getFieldWithDefault(this,22,"")}set deviceTag(e){Kt.Message.setField(this,22,e)}get avatar(){return Kt.Message.getFieldWithDefault(this,23,"")}set avatar(e){Kt.Message.setField(this,23,e)}static fromObject(e){const r=new t({});return null!=e.deviceKey&&(r.deviceKey=e.deviceKey),null!=e.appId&&(r.appId=e.appId),null!=e.userId&&(r.userId=e.userId),null!=e.roomId&&(r.roomId=e.roomId),null!=e.teamId&&(r.teamId=e.teamId),null!=e.startTime&&(r.startTime=e.startTime),null!=e.endTime&&(r.endTime=e.endTime),null!=e.ids&&(r.ids=e.ids),null!=e.token&&(r.token=e.token),null!=e.roomIds&&(r.roomIds=e.roomIds),null!=e.userIds&&(r.userIds=e.userIds),null!=e.teamIds&&(r.teamIds=e.teamIds),null!=e.keys&&(r.keys=e.keys),null!=e.page&&(r.page=e.page),null!=e.pageSize&&(r.pageSize=e.pageSize),null!=e.version&&(r.version=e.version),null!=e.v&&(r.v=e.v),null!=e.talkMode&&(r.talkMode=e.talkMode),null!=e.proto&&(r.proto=e.proto),null!=e.nickname&&(r.nickname=e.nickname),null!=e.protocol&&(r.protocol=e.protocol),null!=e.deviceTag&&(r.deviceTag=e.deviceTag),null!=e.avatar&&(r.avatar=e.avatar),r}toObject(){const e={};return null!=this.deviceKey&&(e.deviceKey=this.deviceKey),null!=this.appId&&(e.appId=this.appId),null!=this.userId&&(e.userId=this.userId),null!=this.roomId&&(e.roomId=this.roomId),null!=this.teamId&&(e.teamId=this.teamId),null!=this.startTime&&(e.startTime=this.startTime),null!=this.endTime&&(e.endTime=this.endTime),null!=this.ids&&(e.ids=this.ids),null!=this.token&&(e.token=this.token),null!=this.roomIds&&(e.roomIds=this.roomIds),null!=this.userIds&&(e.userIds=this.userIds),null!=this.teamIds&&(e.teamIds=this.teamIds),null!=this.keys&&(e.keys=this.keys),null!=this.page&&(e.page=this.page),null!=this.pageSize&&(e.pageSize=this.pageSize),null!=this.version&&(e.version=this.version),null!=this.v&&(e.v=this.v),null!=this.talkMode&&(e.talkMode=this.talkMode),null!=this.proto&&(e.proto=this.proto),null!=this.nickname&&(e.nickname=this.nickname),null!=this.protocol&&(e.protocol=this.protocol),null!=this.deviceTag&&(e.deviceTag=this.deviceTag),null!=this.avatar&&(e.avatar=this.avatar),e}serialize(e){const t=e||new Kt.BinaryWriter;if(this.deviceKey.length&&t.writeString(1,this.deviceKey),0!=this.appId&&t.writeInt64(2,this.appId),this.userId.length&&t.writeString(3,this.userId),0!=this.roomId&&t.writeInt64(4,this.roomId),0!=this.teamId&&t.writeInt64(5,this.teamId),this.startTime.length&&t.writeString(6,this.startTime),this.endTime.length&&t.writeString(7,this.endTime),this.ids.length&&t.writeRepeatedString(8,this.ids),this.token.length&&t.writeString(9,this.token),this.roomIds.length&&t.writePackedInt64(10,this.roomIds),this.userIds.length&&t.writeRepeatedString(11,this.userIds),this.teamIds.length&&t.writePackedInt64(12,this.teamIds),this.keys.length&&t.writePackedInt64(13,this.keys),0!=this.page&&t.writeInt32(14,this.page),0!=this.pageSize&&t.writeInt32(15,this.pageSize),this.version.length&&t.writeString(16,this.version),0!=this.v&&t.writeDouble(17,this.v),0!=this.talkMode&&t.writeInt32(18,this.talkMode),this.proto.length&&t.writeString(19,this.proto),this.nickname.length&&t.writeString(20,this.nickname),this.protocol.length&&t.writeBytes(21,this.protocol),this.deviceTag.length&&t.writeString(22,this.deviceTag),this.avatar.length&&t.writeString(23,this.avatar),!e)return t.getResultBuffer()}static deserialize(e){const r=e instanceof Kt.BinaryReader?e:new Kt.BinaryReader(e),i=new t;for(;r.nextField()&&!r.isEndGroup();)switch(r.getFieldNumber()){case 1:i.deviceKey=r.readString();break;case 2:i.appId=r.readInt64();break;case 3:i.userId=r.readString();break;case 4:i.roomId=r.readInt64();break;case 5:i.teamId=r.readInt64();break;case 6:i.startTime=r.readString();break;case 7:i.endTime=r.readString();break;case 8:Kt.Message.addToRepeatedField(i,8,r.readString());break;case 9:i.token=r.readString();break;case 10:i.roomIds=r.readPackedInt64();break;case 11:Kt.Message.addToRepeatedField(i,11,r.readString());break;case 12:i.teamIds=r.readPackedInt64();break;case 13:i.keys=r.readPackedInt64();break;case 14:i.page=r.readInt32();break;case 15:i.pageSize=r.readInt32();break;case 16:i.version=r.readString();break;case 17:i.v=r.readDouble();break;case 18:i.talkMode=r.readInt32();break;case 19:i.proto=r.readString();break;case 20:i.nickname=r.readString();break;case 21:i.protocol=r.readBytes();break;case 22:i.deviceTag=r.readString();break;case 23:i.avatar=r.readString();break;default:r.skipField()}return i}serializeBinary(){return this.serialize()}static deserializeBinary(e){return t.deserialize(e)}}e.Meta=t}(Nt||(Nt={}));class Gt{teamId=0;userId="";teamName="";teamNumber="";avatar="";members=void 0;isMute=!1;remark=""}!function(e){e[e.public=1]="public",e[e.protected=2]="protected",e[e.private=3]="private"}(Dt||(Dt={}));class qt{static _version=1;token="";tokenAppId=0;pageSize=300;account=null;deviceId="";deviceName="";deviceModel="";ip="";country="";city="";getTokenAppId(){return this.tokenAppId}meta=new Nt.Meta({v:qt._version,deviceTag:"h5",page:0,pageSize:30});axios=xt.create({timeout:5e3});socket;contactList=[];getIP1(){xt.get("https://api.ipbase.com/v1/json/").then(e=>{let t=e.data;200==e.status&&t.ip?(this.ip=t?.ip,this.country=t?.country_name,this.city=t?.region_name+"-"+t?.city):this.getIP3()}).catch(e=>{this.getIP3()})}getIP3(){xt.get("https://ipinfo.io/json").then(e=>{let t=e.data;200==e.status&&t.ip&&(this.ip=t?.ip,this.country=t?.country,this.city=t?.region+"-"+t?.city)}).catch(e=>{})}getJwtPayload(e){const t=e.split(".")[1],r=atob(t);return JSON.parse(r)}decodeMetadata(e){const t=new Map;try{const r=(0,c.decodeCompositeMetadata)(e);for(let e of r)if(e){const r=e;r.type==c.WellKnownMimeType.MESSAGE_RSOCKET_ROUTING.toString()&&t.set("route",r.content.toString()),e.mimeType==c.WellKnownMimeType.MESSAGE_RSOCKET_ROUTING.toString()&&t.set("route",r.content.toString())}}catch(e){}return t}buildRoute(e){let t=(0,c.encodeRoute)(e);return(0,c.encodeCompositeMetadata)([[c.WellKnownMimeType.MESSAGE_RSOCKET_ROUTING,t]])}buildDeviceStatus(e){let t=new g;return t.deviceTag=e.deviceTag,t.deviceId=e.device,t.deviceKey=e.deviceKey,t.status=e.status,t.region=e.region,t.gateway=e.gateway,t.joinId=e.roomId,t.userId=e.userId,t}buildGateway(e){let t=new f;return 4==e.ip?t.type=!0:t.type=!1,t.name=e.name,t.host=e.host,t.max=e.max,t.port=e.port,t.region=e.remark,t.current=e.sort,t}buildContact(e){let t=new d;return t.contactId=e.id,t.joinId=e.joinRoomId,t.userId=e.userId,t.nickname=e.nickname,t.username=e.username,t.subgroup=e.subgroup,t.avatar=e.avatar,t.isGroup=2==e.talkMode,t.joinTime=e.joinTime,t.isMuted=1==e.muted,t.noise=e.noise,t.sort=e.sort,e.status==a.offline&&(t.status=a.offline),e.status==a.online&&(t.status=a.online),e.status==a.online_busy&&(t.status=a.online_busy),e.status==a.online_leave&&(t.status=a.online_leave),t}buildMember(e){let t=new p;return t.memberId=e.id,t.joinId=e.joinRoomId,t.userId=e.userId,t.nickname=e.nickname,t.username=e.username,t.avatar=e.avatar,t.status=e.status,t.joinTime=e.joinTime,t.isMuted=1==e.muted,t.role=e.role,t}buildGroup(e){let t=new m;switch(t.groupId=e.id,t.joinId=e.id,t.groupName=e.roomname,t.groupNumber=e.account,t.userId=e.userId,t.avatar=e.avatar,t.depict=e.depict,t.isTalk=1==e.groupToOne,t.isApproval=1==e.applyJoin,t.isInviteApply=1==e.applyNeed,t.isInvite=1==e.invite,t.maxMember=e.roomMax,t.isGroup=2==e.talkMode,t.isMute=1==e.muted,t.isRevoke=1==e.revoke,t.ask=e.ask,e.type){case"protected":t.type=o.protected;break;case"public":t.type=o.public;break;case"private":t.type=o.private}return t}buildTeamMember(e){let t=new p;return t.memberId=e.id,t.joinId=e.joinTeamId,t.userId=e.userId+"",t.nickname=e.nickname,t.username=e.username,t.avatar=e.avatar,t.joinTime=e.joinTime,t.isMuted=1==e.muted,t.role=e.role,t}buildTeam(e){let t=new Gt;return t.teamId=e.id,t.teamName=e.teamname,t.teamNumber=e.account,t.userId=e.userId,t.avatar=e.avatar,t.isMute=1==e.muted,t}buildMessage(e){let r=new h;switch(r.messageId=e.messageId,r.joinId=e.roomId,r.tag=e.tag,r.fromId=e.fromId,r.fromName=e.fromName,r.destId=e.destId,r.destName=e.destName,r.cite=e.cite,r.type=this.subtype(e.subtype),r.title=e.title,r.subtitle=e.subtitle,r.text=e.text,r.secret=e.secret,r.thumb=e.thumb,r.host=e.host,r.url=e.url,r.lng=e.lng,r.lat=e.lat,r.size=e.size,r.length=e.length,r.sent=e.sent,r.deviceKey=e.deviceKey,r.deviceTag=e.deviceTag,r.sentDate=new Date(e.sent),r.revoke=0!=e.revoke.length,e.talkMode){case 1:r.talk=n.default;break;case 2:r.talk=n.group;break;case 3:r.talk=n.team}switch(e.label){case"tip":r.label=t.tip;break;case"notice":r.label=t.notice;break;case"action":r.label=t.action;break;case"cc":r.label=t.notify;break;case"bcc":r.label=t.quietly}if(e.citeData&&(r.citeData=this.buildMessage(e.citeData)),e.remind&&e.remind.length){r.hintList=[];for(let t of e.remind){let e=new h;e.fromId=t.fromId,e.destId=t.destId,e.destName=t.nickname,e.joinId=t.roomId,r.hintList.push(e)}}if(e.cc&&e.cc.length){r.notifyList=[],r.quietlyList=[];for(let t of e.cc){let e=new h;e.fromId=t.fromId,e.destId=t.destId,e.destName=t.nickname,e.joinId=t.roomId,0==t.sort?r.notifyList.push(e):r.quietlyList.push(e)}}return r}subtype(e){switch(e){case 1:return"txt";case 2:return"img";case 3:return"audio";case 4:return"video";case 5:return"file";case 6:return"loc";case 7:return"custom";case 9:return"wallet"}return""}}!function(e){e[e.DONE=0]="DONE",e[e.ERROR=-1]="ERROR",e[e.CONNECTING=1]="CONNECTING",e[e.SUCCESS_PULL=2]="SUCCESS_PULL",e[e.SUCCESS=3]="SUCCESS",e[e.RETRY_CONNECTING=4]="RETRY_CONNECTING",e[e.TOKEN_EXPIRED=5]="TOKEN_EXPIRED"}(Pt||(Pt={})),function(e){e[e.ERROR=0]="ERROR",e[e.CONNECT=1]="CONNECT",e[e.PULL=2]="PULL",e[e.SUCCESS=3]="SUCCESS",e[e.OFFLINE=4]="OFFLINE"}(Lt||(Lt={})),function(e){e[e.APPLY=1]="APPLY",e[e.APPLY_RESOLVE=2]="APPLY_RESOLVE",e[e.APPLY_AGREE=3]="APPLY_AGREE",e[e.APPLY_REJECT=4]="APPLY_REJECT",e[e.ROOM_EXIT=5]="ROOM_EXIT",e[e.ROOM_DISSOLVE=6]="ROOM_DISSOLVE"}(Bt||(Bt={}));class Vt{accountId="";account="";nickname="";email="";phone=0;avatar="";roomId=0;apply=0;muted=0;need=0;lurk=0;status=""}class Yt extends qt{buildRoute(e,t=""){let r=(0,c.encodeRoute)(e);return t.length>100?(0,c.encodeCompositeMetadata)([[c.WellKnownMimeType.MESSAGE_RSOCKET_ROUTING,r],[c.WellKnownMimeType.MESSAGE_RSOCKET_AUTHENTICATION,(0,c.encodeBearerAuthMetadata)(t)]]):(0,c.encodeCompositeMetadata)([[c.WellKnownMimeType.MESSAGE_RSOCKET_ROUTING,r]])}}!function(e){class t extends Kt.Message{#e=[];constructor(e){super(),Kt.Message.initialize(this,Array.isArray(e)?e:[],0,-1,[7,8,32,33,34],this.#e),Array.isArray(e)||"object"!=typeof e||("id"in e&&null!=e.id&&(this.id=e.id),"appId"in e&&null!=e.appId&&(this.appId=e.appId),"v"in e&&null!=e.v&&(this.v=e.v),"sort"in e&&null!=e.sort&&(this.sort=e.sort),"created"in e&&null!=e.created&&(this.created=e.created),"modified"in e&&null!=e.modified&&(this.modified=e.modified),"ids"in e&&null!=e.ids&&(this.ids=e.ids),"appIds"in e&&null!=e.appIds&&(this.appIds=e.appIds),"remark"in e&&null!=e.remark&&(this.remark=e.remark),"meta"in e&&null!=e.meta&&(this.meta=e.meta),"userId"in e&&null!=e.userId&&(this.userId=e.userId),"roomId"in e&&null!=e.roomId&&(this.roomId=e.roomId),"fromRoomId"in e&&null!=e.fromRoomId&&(this.fromRoomId=e.fromRoomId),"nickname"in e&&null!=e.nickname&&(this.nickname=e.nickname),"username"in e&&null!=e.username&&(this.username=e.username),"avatar"in e&&null!=e.avatar&&(this.avatar=e.avatar),"fromUserId"in e&&null!=e.fromUserId&&(this.fromUserId=e.fromUserId),"subgroup"in e&&null!=e.subgroup&&(this.subgroup=e.subgroup),"account"in e&&null!=e.account&&(this.account=e.account),"role"in e&&null!=e.role&&(this.role=e.role),"lastTime"in e&&null!=e.lastTime&&(this.lastTime=e.lastTime),"talkMode"in e&&null!=e.talkMode&&(this.talkMode=e.talkMode),"muted"in e&&null!=e.muted&&(this.muted=e.muted),"apply"in e&&null!=e.apply&&(this.apply=e.apply),"upload"in e&&null!=e.upload&&(this.upload=e.upload),"downed"in e&&null!=e.downed&&(this.downed=e.downed),"black"in e&&null!=e.black&&(this.black=e.black),"noise"in e&&null!=e.noise&&(this.noise=e.noise),"joinTeamId"in e&&null!=e.joinTeamId&&(this.joinTeamId=e.joinTeamId),"joinTime"in e&&null!=e.joinTime&&(this.joinTime=e.joinTime),"joinRoomId"in e&&null!=e.joinRoomId&&(this.joinRoomId=e.joinRoomId),"roomIds"in e&&null!=e.roomIds&&(this.roomIds=e.roomIds),"userIds"in e&&null!=e.userIds&&(this.userIds=e.userIds),"teamIds"in e&&null!=e.teamIds&&(this.teamIds=e.teamIds),"unique"in e&&null!=e.unique&&(this.unique=e.unique),"status"in e&&null!=e.status&&(this.status=e.status))}get id(){return Kt.Message.getFieldWithDefault(this,1,0)}set id(e){Kt.Message.setField(this,1,e)}get appId(){return Kt.Message.getFieldWithDefault(this,2,0)}set appId(e){Kt.Message.setField(this,2,e)}get v(){return Kt.Message.getFieldWithDefault(this,3,0)}set v(e){Kt.Message.setField(this,3,e)}get sort(){return Kt.Message.getFieldWithDefault(this,4,0)}set sort(e){Kt.Message.setField(this,4,e)}get created(){return Kt.Message.getFieldWithDefault(this,5,"")}set created(e){Kt.Message.setField(this,5,e)}get modified(){return Kt.Message.getFieldWithDefault(this,6,"")}set modified(e){Kt.Message.setField(this,6,e)}get ids(){return Kt.Message.getFieldWithDefault(this,7,[])}set ids(e){Kt.Message.setField(this,7,e)}get appIds(){return Kt.Message.getFieldWithDefault(this,8,[])}set appIds(e){Kt.Message.setField(this,8,e)}get remark(){return Kt.Message.getFieldWithDefault(this,9,"")}set remark(e){Kt.Message.setField(this,9,e)}get meta(){return Kt.Message.getWrapperField(this,Nt.Meta,10)}set meta(e){Kt.Message.setWrapperField(this,10,e)}get has_meta(){return null!=Kt.Message.getField(this,10)}get userId(){return Kt.Message.getFieldWithDefault(this,11,"")}set userId(e){Kt.Message.setField(this,11,e)}get roomId(){return Kt.Message.getFieldWithDefault(this,12,0)}set roomId(e){Kt.Message.setField(this,12,e)}get fromRoomId(){return Kt.Message.getFieldWithDefault(this,13,0)}set fromRoomId(e){Kt.Message.setField(this,13,e)}get nickname(){return Kt.Message.getFieldWithDefault(this,14,"")}set nickname(e){Kt.Message.setField(this,14,e)}get username(){return Kt.Message.getFieldWithDefault(this,15,"")}set username(e){Kt.Message.setField(this,15,e)}get avatar(){return Kt.Message.getFieldWithDefault(this,16,"")}set avatar(e){Kt.Message.setField(this,16,e)}get fromUserId(){return Kt.Message.getFieldWithDefault(this,17,"")}set fromUserId(e){Kt.Message.setField(this,17,e)}get subgroup(){return Kt.Message.getFieldWithDefault(this,18,"")}set subgroup(e){Kt.Message.setField(this,18,e)}get account(){return Kt.Message.getFieldWithDefault(this,19,"")}set account(e){Kt.Message.setField(this,19,e)}get role(){return Kt.Message.getFieldWithDefault(this,20,"")}set role(e){Kt.Message.setField(this,20,e)}get lastTime(){return Kt.Message.getFieldWithDefault(this,21,"")}set lastTime(e){Kt.Message.setField(this,21,e)}get talkMode(){return Kt.Message.getFieldWithDefault(this,22,0)}set talkMode(e){Kt.Message.setField(this,22,e)}get muted(){return Kt.Message.getFieldWithDefault(this,23,0)}set muted(e){Kt.Message.setField(this,23,e)}get apply(){return Kt.Message.getFieldWithDefault(this,24,0)}set apply(e){Kt.Message.setField(this,24,e)}get upload(){return Kt.Message.getFieldWithDefault(this,25,0)}set upload(e){Kt.Message.setField(this,25,e)}get downed(){return Kt.Message.getFieldWithDefault(this,26,0)}set downed(e){Kt.Message.setField(this,26,e)}get black(){return Kt.Message.getFieldWithDefault(this,27,0)}set black(e){Kt.Message.setField(this,27,e)}get noise(){return Kt.Message.getFieldWithDefault(this,28,0)}set noise(e){Kt.Message.setField(this,28,e)}get joinTeamId(){return Kt.Message.getFieldWithDefault(this,29,0)}set joinTeamId(e){Kt.Message.setField(this,29,e)}get joinTime(){return Kt.Message.getFieldWithDefault(this,30,"")}set joinTime(e){Kt.Message.setField(this,30,e)}get joinRoomId(){return Kt.Message.getFieldWithDefault(this,31,0)}set joinRoomId(e){Kt.Message.setField(this,31,e)}get roomIds(){return Kt.Message.getFieldWithDefault(this,32,[])}set roomIds(e){Kt.Message.setField(this,32,e)}get userIds(){return Kt.Message.getFieldWithDefault(this,33,[])}set userIds(e){Kt.Message.setField(this,33,e)}get teamIds(){return Kt.Message.getFieldWithDefault(this,34,[])}set teamIds(e){Kt.Message.setField(this,34,e)}get unique(){return Kt.Message.getFieldWithDefault(this,36,"")}set unique(e){Kt.Message.setField(this,36,e)}get status(){return Kt.Message.getFieldWithDefault(this,37,"")}set status(e){Kt.Message.setField(this,37,e)}static fromObject(e){const r=new t({});return null!=e.id&&(r.id=e.id),null!=e.appId&&(r.appId=e.appId),null!=e.v&&(r.v=e.v),null!=e.sort&&(r.sort=e.sort),null!=e.created&&(r.created=e.created),null!=e.modified&&(r.modified=e.modified),null!=e.ids&&(r.ids=e.ids),null!=e.appIds&&(r.appIds=e.appIds),null!=e.remark&&(r.remark=e.remark),null!=e.meta&&(r.meta=Nt.Meta.fromObject(e.meta)),null!=e.userId&&(r.userId=e.userId),null!=e.roomId&&(r.roomId=e.roomId),null!=e.fromRoomId&&(r.fromRoomId=e.fromRoomId),null!=e.nickname&&(r.nickname=e.nickname),null!=e.username&&(r.username=e.username),null!=e.avatar&&(r.avatar=e.avatar),null!=e.fromUserId&&(r.fromUserId=e.fromUserId),null!=e.subgroup&&(r.subgroup=e.subgroup),null!=e.account&&(r.account=e.account),null!=e.role&&(r.role=e.role),null!=e.lastTime&&(r.lastTime=e.lastTime),null!=e.talkMode&&(r.talkMode=e.talkMode),null!=e.muted&&(r.muted=e.muted),null!=e.apply&&(r.apply=e.apply),null!=e.upload&&(r.upload=e.upload),null!=e.downed&&(r.downed=e.downed),null!=e.black&&(r.black=e.black),null!=e.noise&&(r.noise=e.noise),null!=e.joinTeamId&&(r.joinTeamId=e.joinTeamId),null!=e.joinTime&&(r.joinTime=e.joinTime),null!=e.joinRoomId&&(r.joinRoomId=e.joinRoomId),null!=e.roomIds&&(r.roomIds=e.roomIds),null!=e.userIds&&(r.userIds=e.userIds),null!=e.teamIds&&(r.teamIds=e.teamIds),null!=e.unique&&(r.unique=e.unique),null!=e.status&&(r.status=e.status),r}toObject(){const e={};return null!=this.id&&(e.id=this.id),null!=this.appId&&(e.appId=this.appId),null!=this.v&&(e.v=this.v),null!=this.sort&&(e.sort=this.sort),null!=this.created&&(e.created=this.created),null!=this.modified&&(e.modified=this.modified),null!=this.ids&&(e.ids=this.ids),null!=this.appIds&&(e.appIds=this.appIds),null!=this.remark&&(e.remark=this.remark),null!=this.meta&&(e.meta=this.meta.toObject()),null!=this.userId&&(e.userId=this.userId),null!=this.roomId&&(e.roomId=this.roomId),null!=this.fromRoomId&&(e.fromRoomId=this.fromRoomId),null!=this.nickname&&(e.nickname=this.nickname),null!=this.username&&(e.username=this.username),null!=this.avatar&&(e.avatar=this.avatar),null!=this.fromUserId&&(e.fromUserId=this.fromUserId),null!=this.subgroup&&(e.subgroup=this.subgroup),null!=this.account&&(e.account=this.account),null!=this.role&&(e.role=this.role),null!=this.lastTime&&(e.lastTime=this.lastTime),null!=this.talkMode&&(e.talkMode=this.talkMode),null!=this.muted&&(e.muted=this.muted),null!=this.apply&&(e.apply=this.apply),null!=this.upload&&(e.upload=this.upload),null!=this.downed&&(e.downed=this.downed),null!=this.black&&(e.black=this.black),null!=this.noise&&(e.noise=this.noise),null!=this.joinTeamId&&(e.joinTeamId=this.joinTeamId),null!=this.joinTime&&(e.joinTime=this.joinTime),null!=this.joinRoomId&&(e.joinRoomId=this.joinRoomId),null!=this.roomIds&&(e.roomIds=this.roomIds),null!=this.userIds&&(e.userIds=this.userIds),null!=this.teamIds&&(e.teamIds=this.teamIds),null!=this.unique&&(e.unique=this.unique),null!=this.status&&(e.status=this.status),e}serialize(e){const t=e||new Kt.BinaryWriter;if(0!=this.id&&t.writeInt64(1,this.id),0!=this.appId&&t.writeInt64(2,this.appId),0!=this.v&&t.writeDouble(3,this.v),0!=this.sort&&t.writeInt32(4,this.sort),this.created.length&&t.writeString(5,this.created),this.modified.length&&t.writeString(6,this.modified),this.ids.length&&t.writeRepeatedString(7,this.ids),this.appIds.length&&t.writeRepeatedString(8,this.appIds),this.remark.length&&t.writeString(9,this.remark),this.has_meta&&t.writeMessage(10,this.meta,()=>this.meta.serialize(t)),this.userId.length&&t.writeString(11,this.userId),0!=this.roomId&&t.writeInt64(12,this.roomId),0!=this.fromRoomId&&t.writeInt64(13,this.fromRoomId),this.nickname.length&&t.writeString(14,this.nickname),this.username.length&&t.writeString(15,this.username),this.avatar.length&&t.writeString(16,this.avatar),this.fromUserId.length&&t.writeString(17,this.fromUserId),this.subgroup.length&&t.writeString(18,this.subgroup),this.account.length&&t.writeString(19,this.account),this.role.length&&t.writeString(20,this.role),this.lastTime.length&&t.writeString(21,this.lastTime),0!=this.talkMode&&t.writeInt32(22,this.talkMode),0!=this.muted&&t.writeInt32(23,this.muted),0!=this.apply&&t.writeInt32(24,this.apply),0!=this.upload&&t.writeInt32(25,this.upload),0!=this.downed&&t.writeInt32(26,this.downed),0!=this.black&&t.writeInt32(27,this.black),0!=this.noise&&t.writeInt32(28,this.noise),0!=this.joinTeamId&&t.writeInt64(29,this.joinTeamId),this.joinTime.length&&t.writeString(30,this.joinTime),0!=this.joinRoomId&&t.writeInt64(31,this.joinRoomId),this.roomIds.length&&t.writePackedInt64(32,this.roomIds),this.userIds.length&&t.writeRepeatedString(33,this.userIds),this.teamIds.length&&t.writePackedInt64(34,this.teamIds),this.unique.length&&t.writeString(36,this.unique),this.status.length&&t.writeString(37,this.status),!e)return t.getResultBuffer()}static deserialize(e){const r=e instanceof Kt.BinaryReader?e:new Kt.BinaryReader(e),i=new t;for(;r.nextField()&&!r.isEndGroup();)switch(r.getFieldNumber()){case 1:i.id=r.readInt64();break;case 2:i.appId=r.readInt64();break;case 3:i.v=r.readDouble();break;case 4:i.sort=r.readInt32();break;case 5:i.created=r.readString();break;case 6:i.modified=r.readString();break;case 7:Kt.Message.addToRepeatedField(i,7,r.readString());break;case 8:Kt.Message.addToRepeatedField(i,8,r.readString());break;case 9:i.remark=r.readString();break;case 10:r.readMessage(i.meta,()=>i.meta=Nt.Meta.deserialize(r));break;case 11:i.userId=r.readString();break;case 12:i.roomId=r.readInt64();break;case 13:i.fromRoomId=r.readInt64();break;case 14:i.nickname=r.readString();break;case 15:i.username=r.readString();break;case 16:i.avatar=r.readString();break;case 17:i.fromUserId=r.readString();break;case 18:i.subgroup=r.readString();break;case 19:i.account=r.readString();break;case 20:i.role=r.readString();break;case 21:i.lastTime=r.readString();break;case 22:i.talkMode=r.readInt32();break;case 23:i.muted=r.readInt32();break;case 24:i.apply=r.readInt32();break;case 25:i.upload=r.readInt32();break;case 26:i.downed=r.readInt32();break;case 27:i.black=r.readInt32();break;case 28:i.noise=r.readInt32();break;case 29:i.joinTeamId=r.readInt64();break;case 30:i.joinTime=r.readString();break;case 31:i.joinRoomId=r.readInt64();break;case 32:i.roomIds=r.readPackedInt64();break;case 33:Kt.Message.addToRepeatedField(i,33,r.readString());break;case 34:i.teamIds=r.readPackedInt64();break;case 36:i.unique=r.readString();break;case 37:i.status=r.readString();break;default:r.skipField()}return i}serializeBinary(){return this.serialize()}static deserializeBinary(e){return t.deserialize(e)}}e.Contacts=t}(jt||(jt={})),function(e){class t extends Kt.Message{#e=[];constructor(e){super(),Kt.Message.initialize(this,Array.isArray(e)?e:[],0,-1,[7,8,28,29,37],this.#e),Array.isArray(e)||"object"!=typeof e||("id"in e&&null!=e.id&&(this.id=e.id),"appId"in e&&null!=e.appId&&(this.appId=e.appId),"v"in e&&null!=e.v&&(this.v=e.v),"sort"in e&&null!=e.sort&&(this.sort=e.sort),"created"in e&&null!=e.created&&(this.created=e.created),"modified"in e&&null!=e.modified&&(this.modified=e.modified),"ids"in e&&null!=e.ids&&(this.ids=e.ids),"appIds"in e&&null!=e.appIds&&(this.appIds=e.appIds),"remark"in e&&null!=e.remark&&(this.remark=e.remark),"meta"in e&&null!=e.meta&&(this.meta=e.meta),"userId"in e&&null!=e.userId&&(this.userId=e.userId),"roomname"in e&&null!=e.roomname&&(this.roomname=e.roomname),"level"in e&&null!=e.level&&(this.level=e.level),"describe"in e&&null!=e.describe&&(this.describe=e.describe),"type"in e&&null!=e.type&&(this.type=e.type),"joinKey"in e&&null!=e.joinKey&&(this.joinKey=e.joinKey),"talkMode"in e&&null!=e.talkMode&&(this.talkMode=e.talkMode),"userCount"in e&&null!=e.userCount&&(this.userCount=e.userCount),"lurk"in e&&null!=e.lurk&&(this.lurk=e.lurk),"depict"in e&&null!=e.depict&&(this.depict=e.depict),"muted"in e&&null!=e.muted&&(this.muted=e.muted),"applyJoin"in e&&null!=e.applyJoin&&(this.applyJoin=e.applyJoin),"applyNeed"in e&&null!=e.applyNeed&&(this.applyNeed=e.applyNeed),"invite"in e&&null!=e.invite&&(this.invite=e.invite),"uped"in e&&null!=e.uped&&(this.uped=e.uped),"downed"in e&&null!=e.downed&&(this.downed=e.downed),"revoke"in e&&null!=e.revoke&&(this.revoke=e.revoke),"tags"in e&&null!=e.tags&&(this.tags=e.tags),"users"in e&&null!=e.users&&(this.users=e.users),"avatar"in e&&null!=e.avatar&&(this.avatar=e.avatar),"groupToOne"in e&&null!=e.groupToOne&&(this.groupToOne=e.groupToOne),"roomCount"in e&&null!=e.roomCount&&(this.roomCount=e.roomCount),"group"in e&&null!=e.group&&(this.group=e.group),"teamCount"in e&&null!=e.teamCount&&(this.teamCount=e.teamCount),"ask"in e&&null!=e.ask&&(this.ask=e.ask),"answer"in e&&null!=e.answer&&(this.answer=e.answer),"roomIds"in e&&null!=e.roomIds&&(this.roomIds=e.roomIds),"account"in e&&null!=e.account&&(this.account=e.account),"roomMax"in e&&null!=e.roomMax&&(this.roomMax=e.roomMax),"teamMax"in e&&null!=e.teamMax&&(this.teamMax=e.teamMax))}get id(){return Kt.Message.getFieldWithDefault(this,1,0)}set id(e){Kt.Message.setField(this,1,e)}get appId(){return Kt.Message.getFieldWithDefault(this,2,0)}set appId(e){Kt.Message.setField(this,2,e)}get v(){return Kt.Message.getFieldWithDefault(this,3,0)}set v(e){Kt.Message.setField(this,3,e)}get sort(){return Kt.Message.getFieldWithDefault(this,4,0)}set sort(e){Kt.Message.setField(this,4,e)}get created(){return Kt.Message.getFieldWithDefault(this,5,"")}set created(e){Kt.Message.setField(this,5,e)}get modified(){return Kt.Message.getFieldWithDefault(this,6,"")}set modified(e){Kt.Message.setField(this,6,e)}get ids(){return Kt.Message.getFieldWithDefault(this,7,[])}set ids(e){Kt.Message.setField(this,7,e)}get appIds(){return Kt.Message.getFieldWithDefault(this,8,[])}set appIds(e){Kt.Message.setField(this,8,e)}get remark(){return Kt.Message.getFieldWithDefault(this,9,"")}set remark(e){Kt.Message.setField(this,9,e)}get meta(){return Kt.Message.getWrapperField(this,Nt.Meta,10)}set meta(e){Kt.Message.setWrapperField(this,10,e)}get has_meta(){return null!=Kt.Message.getField(this,10)}get userId(){return Kt.Message.getFieldWithDefault(this,11,"")}set userId(e){Kt.Message.setField(this,11,e)}get roomname(){return Kt.Message.getFieldWithDefault(this,12,"")}set roomname(e){Kt.Message.setField(this,12,e)}get level(){return Kt.Message.getFieldWithDefault(this,13,"")}set level(e){Kt.Message.setField(this,13,e)}get describe(){return Kt.Message.getFieldWithDefault(this,14,"")}set describe(e){Kt.Message.setField(this,14,e)}get type(){return Kt.Message.getFieldWithDefault(this,15,"")}set type(e){Kt.Message.setField(this,15,e)}get joinKey(){return Kt.Message.getFieldWithDefault(this,16,"")}set joinKey(e){Kt.Message.setField(this,16,e)}get talkMode(){return Kt.Message.getFieldWithDefault(this,17,0)}set talkMode(e){Kt.Message.setField(this,17,e)}get userCount(){return Kt.Message.getFieldWithDefault(this,18,0)}set userCount(e){Kt.Message.setField(this,18,e)}get lurk(){return Kt.Message.getFieldWithDefault(this,19,0)}set lurk(e){Kt.Message.setField(this,19,e)}get depict(){return Kt.Message.getFieldWithDefault(this,20,"")}set depict(e){Kt.Message.setField(this,20,e)}get muted(){return Kt.Message.getFieldWithDefault(this,21,0)}set muted(e){Kt.Message.setField(this,21,e)}get applyJoin(){return Kt.Message.getFieldWithDefault(this,22,0)}set applyJoin(e){Kt.Message.setField(this,22,e)}get applyNeed(){return Kt.Message.getFieldWithDefault(this,23,0)}set applyNeed(e){Kt.Message.setField(this,23,e)}get invite(){return Kt.Message.getFieldWithDefault(this,24,0)}set invite(e){Kt.Message.setField(this,24,e)}get uped(){return Kt.Message.getFieldWithDefault(this,25,0)}set uped(e){Kt.Message.setField(this,25,e)}get downed(){return Kt.Message.getFieldWithDefault(this,26,0)}set downed(e){Kt.Message.setField(this,26,e)}get revoke(){return Kt.Message.getFieldWithDefault(this,27,0)}set revoke(e){Kt.Message.setField(this,27,e)}get tags(){return Kt.Message.getFieldWithDefault(this,28,[])}set tags(e){Kt.Message.setField(this,28,e)}get users(){return Kt.Message.getRepeatedWrapperField(this,jt.Contacts,29)}set users(e){Kt.Message.setRepeatedWrapperField(this,29,e)}get avatar(){return Kt.Message.getFieldWithDefault(this,30,"")}set avatar(e){Kt.Message.setField(this,30,e)}get groupToOne(){return Kt.Message.getFieldWithDefault(this,31,0)}set groupToOne(e){Kt.Message.setField(this,31,e)}get roomCount(){return Kt.Message.getFieldWithDefault(this,32,0)}set roomCount(e){Kt.Message.setField(this,32,e)}get group(){return Kt.Message.getFieldWithDefault(this,33,0)}set group(e){Kt.Message.setField(this,33,e)}get teamCount(){return Kt.Message.getFieldWithDefault(this,34,0)}set teamCount(e){Kt.Message.setField(this,34,e)}get ask(){return Kt.Message.getFieldWithDefault(this,35,"")}set ask(e){Kt.Message.setField(this,35,e)}get answer(){return Kt.Message.getFieldWithDefault(this,36,"")}set answer(e){Kt.Message.setField(this,36,e)}get roomIds(){return Kt.Message.getFieldWithDefault(this,37,[])}set roomIds(e){Kt.Message.setField(this,37,e)}get account(){return Kt.Message.getFieldWithDefault(this,38,"")}set account(e){Kt.Message.setField(this,38,e)}get roomMax(){return Kt.Message.getFieldWithDefault(this,39,0)}set roomMax(e){Kt.Message.setField(this,39,e)}get teamMax(){return Kt.Message.getFieldWithDefault(this,40,0)}set teamMax(e){Kt.Message.setField(this,40,e)}static fromObject(e){const r=new t({});return null!=e.id&&(r.id=e.id),null!=e.appId&&(r.appId=e.appId),null!=e.v&&(r.v=e.v),null!=e.sort&&(r.sort=e.sort),null!=e.created&&(r.created=e.created),null!=e.modified&&(r.modified=e.modified),null!=e.ids&&(r.ids=e.ids),null!=e.appIds&&(r.appIds=e.appIds),null!=e.remark&&(r.remark=e.remark),null!=e.meta&&(r.meta=Nt.Meta.fromObject(e.meta)),null!=e.userId&&(r.userId=e.userId),null!=e.roomname&&(r.roomname=e.roomname),null!=e.level&&(r.level=e.level),null!=e.describe&&(r.describe=e.describe),null!=e.type&&(r.type=e.type),null!=e.joinKey&&(r.joinKey=e.joinKey),null!=e.talkMode&&(r.talkMode=e.talkMode),null!=e.userCount&&(r.userCount=e.userCount),null!=e.lurk&&(r.lurk=e.lurk),null!=e.depict&&(r.depict=e.depict),null!=e.muted&&(r.muted=e.muted),null!=e.applyJoin&&(r.applyJoin=e.applyJoin),null!=e.applyNeed&&(r.applyNeed=e.applyNeed),null!=e.invite&&(r.invite=e.invite),null!=e.uped&&(r.uped=e.uped),null!=e.downed&&(r.downed=e.downed),null!=e.revoke&&(r.revoke=e.revoke),null!=e.tags&&(r.tags=e.tags),null!=e.users&&(r.users=e.users.map(e=>jt.Contacts.fromObject(e))),null!=e.avatar&&(r.avatar=e.avatar),null!=e.groupToOne&&(r.groupToOne=e.groupToOne),null!=e.roomCount&&(r.roomCount=e.roomCount),null!=e.group&&(r.group=e.group),null!=e.teamCount&&(r.teamCount=e.teamCount),null!=e.ask&&(r.ask=e.ask),null!=e.answer&&(r.answer=e.answer),null!=e.roomIds&&(r.roomIds=e.roomIds),null!=e.account&&(r.account=e.account),null!=e.roomMax&&(r.roomMax=e.roomMax),null!=e.teamMax&&(r.teamMax=e.teamMax),r}toObject(){const e={};return null!=this.id&&(e.id=this.id),null!=this.appId&&(e.appId=this.appId),null!=this.v&&(e.v=this.v),null!=this.sort&&(e.sort=this.sort),null!=this.created&&(e.created=this.created),null!=this.modified&&(e.modified=this.modified),null!=this.ids&&(e.ids=this.ids),null!=this.appIds&&(e.appIds=this.appIds),null!=this.remark&&(e.remark=this.remark),null!=this.meta&&(e.meta=this.meta.toObject()),null!=this.userId&&(e.userId=this.userId),null!=this.roomname&&(e.roomname=this.roomname),null!=this.level&&(e.level=this.level),null!=this.describe&&(e.describe=this.describe),null!=this.type&&(e.type=this.type),null!=this.joinKey&&(e.joinKey=this.joinKey),null!=this.talkMode&&(e.talkMode=this.talkMode),null!=this.userCount&&(e.userCount=this.userCount),null!=this.lurk&&(e.lurk=this.lurk),null!=this.depict&&(e.depict=this.depict),null!=this.muted&&(e.muted=this.muted),null!=this.applyJoin&&(e.applyJoin=this.applyJoin),null!=this.applyNeed&&(e.applyNeed=this.applyNeed),null!=this.invite&&(e.invite=this.invite),null!=this.uped&&(e.uped=this.uped),null!=this.downed&&(e.downed=this.downed),null!=this.revoke&&(e.revoke=this.revoke),null!=this.tags&&(e.tags=this.tags),null!=this.users&&(e.users=this.users.map(e=>e.toObject())),null!=this.avatar&&(e.avatar=this.avatar),null!=this.groupToOne&&(e.groupToOne=this.groupToOne),null!=this.roomCount&&(e.roomCount=this.roomCount),null!=this.group&&(e.group=this.group),null!=this.teamCount&&(e.teamCount=this.teamCount),null!=this.ask&&(e.ask=this.ask),null!=this.answer&&(e.answer=this.answer),null!=this.roomIds&&(e.roomIds=this.roomIds),null!=this.account&&(e.account=this.account),null!=this.roomMax&&(e.roomMax=this.roomMax),null!=this.teamMax&&(e.teamMax=this.teamMax),e}serialize(e){const t=e||new Kt.BinaryWriter;if(0!=this.id&&t.writeInt64(1,this.id),0!=this.appId&&t.writeInt64(2,this.appId),0!=this.v&&t.writeDouble(3,this.v),0!=this.sort&&t.writeInt32(4,this.sort),this.created.length&&t.writeString(5,this.created),this.modified.length&&t.writeString(6,this.modified),this.ids.length&&t.writeRepeatedString(7,this.ids),this.appIds.length&&t.writeRepeatedString(8,this.appIds),this.remark.length&&t.writeString(9,this.remark),this.has_meta&&t.writeMessage(10,this.meta,()=>this.meta.serialize(t)),this.userId.length&&t.writeString(11,this.userId),this.roomname.length&&t.writeString(12,this.roomname),this.level.length&&t.writeString(13,this.level),this.describe.length&&t.writeString(14,this.describe),this.type.length&&t.writeString(15,this.type),this.joinKey.length&&t.writeString(16,this.joinKey),0!=this.talkMode&&t.writeInt32(17,this.talkMode),0!=this.userCount&&t.writeInt32(18,this.userCount),0!=this.lurk&&t.writeInt32(19,this.lurk),this.depict.length&&t.writeString(20,this.depict),0!=this.muted&&t.writeInt32(21,this.muted),0!=this.applyJoin&&t.writeInt32(22,this.applyJoin),0!=this.applyNeed&&t.writeInt32(23,this.applyNeed),0!=this.invite&&t.writeInt32(24,this.invite),0!=this.uped&&t.writeInt32(25,this.uped),0!=this.downed&&t.writeInt32(26,this.downed),0!=this.revoke&&t.writeInt32(27,this.revoke),this.tags.length&&t.writeRepeatedString(28,this.tags),this.users.length&&t.writeRepeatedMessage(29,this.users,e=>e.serialize(t)),this.avatar.length&&t.writeString(30,this.avatar),0!=this.groupToOne&&t.writeInt32(31,this.groupToOne),0!=this.roomCount&&t.writeInt32(32,this.roomCount),0!=this.group&&t.writeInt32(33,this.group),0!=this.teamCount&&t.writeInt32(34,this.teamCount),this.ask.length&&t.writeString(35,this.ask),this.answer.length&&t.writeString(36,this.answer),this.roomIds.length&&t.writeRepeatedString(37,this.roomIds),this.account.length&&t.writeString(38,this.account),0!=this.roomMax&&t.writeInt32(39,this.roomMax),0!=this.teamMax&&t.writeInt32(40,this.teamMax),!e)return t.getResultBuffer()}static deserialize(e){const r=e instanceof Kt.BinaryReader?e:new Kt.BinaryReader(e),i=new t;for(;r.nextField()&&!r.isEndGroup();)switch(r.getFieldNumber()){case 1:i.id=r.readInt64();break;case 2:i.appId=r.readInt64();break;case 3:i.v=r.readDouble();break;case 4:i.sort=r.readInt32();break;case 5:i.created=r.readString();break;case 6:i.modified=r.readString();break;case 7:Kt.Message.addToRepeatedField(i,7,r.readString());break;case 8:Kt.Message.addToRepeatedField(i,8,r.readString());break;case 9:i.remark=r.readString();break;case 10:r.readMessage(i.meta,()=>i.meta=Nt.Meta.deserialize(r));break;case 11:i.userId=r.readString();break;case 12:i.roomname=r.readString();break;case 13:i.level=r.readString();break;case 14:i.describe=r.readString();break;case 15:i.type=r.readString();break;case 16:i.joinKey=r.readString();break;case 17:i.talkMode=r.readInt32();break;case 18:i.userCount=r.readInt32();break;case 19:i.lurk=r.readInt32();break;case 20:i.depict=r.readString();break;case 21:i.muted=r.readInt32();break;case 22:i.applyJoin=r.readInt32();break;case 23:i.applyNeed=r.readInt32();break;case 24:i.invite=r.readInt32();break;case 25:i.uped=r.readInt32();break;case 26:i.downed=r.readInt32();break;case 27:i.revoke=r.readInt32();break;case 28:Kt.Message.addToRepeatedField(i,28,r.readString());break;case 29:r.readMessage(i.users,()=>Kt.Message.addToRepeatedWrapperField(i,29,jt.Contacts.deserialize(r),jt.Contacts));break;case 30:i.avatar=r.readString();break;case 31:i.groupToOne=r.readInt32();break;case 32:i.roomCount=r.readInt32();break;case 33:i.group=r.readInt32();break;case 34:i.teamCount=r.readInt32();break;case 35:i.ask=r.readString();break;case 36:i.answer=r.readString();break;case 37:Kt.Message.addToRepeatedField(i,37,r.readString());break;case 38:i.account=r.readString();break;case 39:i.roomMax=r.readInt32();break;case 40:i.teamMax=r.readInt32();break;default:r.skipField()}return i}serializeBinary(){return this.serialize()}static deserializeBinary(e){return t.deserialize(e)}}e.Rooms=t}(Ut||(Ut={})),function(e){class t extends Kt.Message{#e=[];constructor(e){super(),Kt.Message.initialize(this,Array.isArray(e)?e:[],0,-1,[7,8],this.#e),Array.isArray(e)||"object"!=typeof e||("id"in e&&null!=e.id&&(this.id=e.id),"appId"in e&&null!=e.appId&&(this.appId=e.appId),"v"in e&&null!=e.v&&(this.v=e.v),"sort"in e&&null!=e.sort&&(this.sort=e.sort),"created"in e&&null!=e.created&&(this.created=e.created),"modified"in e&&null!=e.modified&&(this.modified=e.modified),"ids"in e&&null!=e.ids&&(this.ids=e.ids),"appIds"in e&&null!=e.appIds&&(this.appIds=e.appIds),"remark"in e&&null!=e.remark&&(this.remark=e.remark),"meta"in e&&null!=e.meta&&(this.meta=e.meta),"messageId"in e&&null!=e.messageId&&(this.messageId=e.messageId),"destId"in e&&null!=e.destId&&(this.destId=e.destId),"fromId"in e&&null!=e.fromId&&(this.fromId=e.fromId),"nickname"in e&&null!=e.nickname&&(this.nickname=e.nickname),"confirm"in e&&null!=e.confirm&&(this.confirm=e.confirm),"read"in e&&null!=e.read&&(this.read=e.read),"roomId"in e&&null!=e.roomId&&(this.roomId=e.roomId),"type"in e&&null!=e.type&&(this.type=e.type))}get id(){return Kt.Message.getFieldWithDefault(this,1,"")}set id(e){Kt.Message.setField(this,1,e)}get appId(){return Kt.Message.getFieldWithDefault(this,2,0)}set appId(e){Kt.Message.setField(this,2,e)}get v(){return Kt.Message.getFieldWithDefault(this,3,0)}set v(e){Kt.Message.setField(this,3,e)}get sort(){return Kt.Message.getFieldWithDefault(this,4,0)}set sort(e){Kt.Message.setField(this,4,e)}get created(){return Kt.Message.getFieldWithDefault(this,5,"")}set created(e){Kt.Message.setField(this,5,e)}get modified(){return Kt.Message.getFieldWithDefault(this,6,"")}set modified(e){Kt.Message.setField(this,6,e)}get ids(){return Kt.Message.getFieldWithDefault(this,7,[])}set ids(e){Kt.Message.setField(this,7,e)}get appIds(){return Kt.Message.getFieldWithDefault(this,8,[])}set appIds(e){Kt.Message.setField(this,8,e)}get remark(){return Kt.Message.getFieldWithDefault(this,9,"")}set remark(e){Kt.Message.setField(this,9,e)}get meta(){return Kt.Message.getWrapperField(this,Nt.Meta,10)}set meta(e){Kt.Message.setWrapperField(this,10,e)}get has_meta(){return null!=Kt.Message.getField(this,10)}get messageId(){return Kt.Message.getFieldWithDefault(this,11,"")}set messageId(e){Kt.Message.setField(this,11,e)}get destId(){return Kt.Message.getFieldWithDefault(this,12,"")}set destId(e){Kt.Message.setField(this,12,e)}get fromId(){return Kt.Message.getFieldWithDefault(this,13,"")}set fromId(e){Kt.Message.setField(this,13,e)}get nickname(){return Kt.Message.getFieldWithDefault(this,14,"")}set nickname(e){Kt.Message.setField(this,14,e)}get confirm(){return Kt.Message.getFieldWithDefault(this,15,"")}set confirm(e){Kt.Message.setField(this,15,e)}get read(){return Kt.Message.getFieldWithDefault(this,16,"")}set read(e){Kt.Message.setField(this,16,e)}get roomId(){return Kt.Message.getFieldWithDefault(this,17,0)}set roomId(e){Kt.Message.setField(this,17,e)}get type(){return Kt.Message.getFieldWithDefault(this,18,0)}set type(e){Kt.Message.setField(this,18,e)}static fromObject(e){const r=new t({});return null!=e.id&&(r.id=e.id),null!=e.appId&&(r.appId=e.appId),null!=e.v&&(r.v=e.v),null!=e.sort&&(r.sort=e.sort),null!=e.created&&(r.created=e.created),null!=e.modified&&(r.modified=e.modified),null!=e.ids&&(r.ids=e.ids),null!=e.appIds&&(r.appIds=e.appIds),null!=e.remark&&(r.remark=e.remark),null!=e.meta&&(r.meta=Nt.Meta.fromObject(e.meta)),null!=e.messageId&&(r.messageId=e.messageId),null!=e.destId&&(r.destId=e.destId),null!=e.fromId&&(r.fromId=e.fromId),null!=e.nickname&&(r.nickname=e.nickname),null!=e.confirm&&(r.confirm=e.confirm),null!=e.read&&(r.read=e.read),null!=e.roomId&&(r.roomId=e.roomId),null!=e.type&&(r.type=e.type),r}toObject(){const e={};return null!=this.id&&(e.id=this.id),null!=this.appId&&(e.appId=this.appId),null!=this.v&&(e.v=this.v),null!=this.sort&&(e.sort=this.sort),null!=this.created&&(e.created=this.created),null!=this.modified&&(e.modified=this.modified),null!=this.ids&&(e.ids=this.ids),null!=this.appIds&&(e.appIds=this.appIds),null!=this.remark&&(e.remark=this.remark),null!=this.meta&&(e.meta=this.meta.toObject()),null!=this.messageId&&(e.messageId=this.messageId),null!=this.destId&&(e.destId=this.destId),null!=this.fromId&&(e.fromId=this.fromId),null!=this.nickname&&(e.nickname=this.nickname),null!=this.confirm&&(e.confirm=this.confirm),null!=this.read&&(e.read=this.read),null!=this.roomId&&(e.roomId=this.roomId),null!=this.type&&(e.type=this.type),e}serialize(e){const t=e||new Kt.BinaryWriter;if(this.id.length&&t.writeString(1,this.id),0!=this.appId&&t.writeInt64(2,this.appId),0!=this.v&&t.writeDouble(3,this.v),0!=this.sort&&t.writeInt32(4,this.sort),this.created.length&&t.writeString(5,this.created),this.modified.length&&t.writeString(6,this.modified),this.ids.length&&t.writeRepeatedString(7,this.ids),this.appIds.length&&t.writeRepeatedString(8,this.appIds),this.remark.length&&t.writeString(9,this.remark),this.has_meta&&t.writeMessage(10,this.meta,()=>this.meta.serialize(t)),this.messageId.length&&t.writeString(11,this.messageId),this.destId.length&&t.writeString(12,this.destId),this.fromId.length&&t.writeString(13,this.fromId),this.nickname.length&&t.writeString(14,this.nickname),this.confirm.length&&t.writeString(15,this.confirm),this.read.length&&t.writeString(16,this.read),0!=this.roomId&&t.writeInt64(17,this.roomId),0!=this.type&&t.writeInt32(18,this.type),!e)return t.getResultBuffer()}static deserialize(e){const r=e instanceof Kt.BinaryReader?e:new Kt.BinaryReader(e),i=new t;for(;r.nextField()&&!r.isEndGroup();)switch(r.getFieldNumber()){case 1:i.id=r.readString();break;case 2:i.appId=r.readInt64();break;case 3:i.v=r.readDouble();break;case 4:i.sort=r.readInt32();break;case 5:i.created=r.readString();break;case 6:i.modified=r.readString();break;case 7:Kt.Message.addToRepeatedField(i,7,r.readString());break;case 8:Kt.Message.addToRepeatedField(i,8,r.readString());break;case 9:i.remark=r.readString();break;case 10:r.readMessage(i.meta,()=>i.meta=Nt.Meta.deserialize(r));break;case 11:i.messageId=r.readString();break;case 12:i.destId=r.readString();break;case 13:i.fromId=r.readString();break;case 14:i.nickname=r.readString();break;case 15:i.confirm=r.readString();break;case 16:i.read=r.readString();break;case 17:i.roomId=r.readInt64();break;case 18:i.type=r.readInt32();break;default:r.skipField()}return i}serializeBinary(){return this.serialize()}static deserializeBinary(e){return t.deserialize(e)}}e.MessageRemind=t}(Wt||(Wt={})),function(e){class t extends Kt.Message{#e=[];constructor(e){super(),Kt.Message.initialize(this,Array.isArray(e)?e:[],0,-1,[7,8,33,39],this.#e),Array.isArray(e)||"object"!=typeof e||("messageId"in e&&null!=e.messageId&&(this.messageId=e.messageId),"appId"in e&&null!=e.appId&&(this.appId=e.appId),"v"in e&&null!=e.v&&(this.v=e.v),"sort"in e&&null!=e.sort&&(this.sort=e.sort),"created"in e&&null!=e.created&&(this.created=e.created),"modified"in e&&null!=e.modified&&(this.modified=e.modified),"ids"in e&&null!=e.ids&&(this.ids=e.ids),"appIds"in e&&null!=e.appIds&&(this.appIds=e.appIds),"fromName"in e&&null!=e.fromName&&(this.fromName=e.fromName),"meta"in e&&null!=e.meta&&(this.meta=e.meta),"roomId"in e&&null!=e.roomId&&(this.roomId=e.roomId),"fromId"in e&&null!=e.fromId&&(this.fromId=e.fromId),"destId"in e&&null!=e.destId&&(this.destId=e.destId),"mimeType"in e&&null!=e.mimeType&&(this.mimeType=e.mimeType),"subtype"in e&&null!=e.subtype&&(this.subtype=e.subtype),"title"in e&&null!=e.title&&(this.title=e.title),"subtitle"in e&&null!=e.subtitle&&(this.subtitle=e.subtitle),"cite"in e&&null!=e.cite&&(this.cite=e.cite),"text"in e&&null!=e.text&&(this.text=e.text),"filename"in e&&null!=e.filename&&(this.filename=e.filename),"secret"in e&&null!=e.secret&&(this.secret=e.secret),"thumb"in e&&null!=e.thumb&&(this.thumb=e.thumb),"url"in e&&null!=e.url&&(this.url=e.url),"lat"in e&&null!=e.lat&&(this.lat=e.lat),"lng"in e&&null!=e.lng&&(this.lng=e.lng),"command"in e&&null!=e.command&&(this.command=e.command),"size"in e&&null!=e.size&&(this.size=e.size),"length"in e&&null!=e.length&&(this.length=e.length),"sent"in e&&null!=e.sent&&(this.sent=e.sent),"host"in e&&null!=e.host&&(this.host=e.host),"params"in e&&null!=e.params&&(this.params=e.params),"citeData"in e&&null!=e.citeData&&(this.citeData=e.citeData),"cc"in e&&null!=e.cc&&(this.cc=e.cc),"destName"in e&&null!=e.destName&&(this.destName=e.destName),"talkMode"in e&&null!=e.talkMode&&(this.talkMode=e.talkMode),"tag"in e&&null!=e.tag&&(this.tag=e.tag),"deviceKey"in e&&null!=e.deviceKey&&(this.deviceKey=e.deviceKey),"label"in e&&null!=e.label&&(this.label=e.label),"remind"in e&&null!=e.remind&&(this.remind=e.remind),"fromAccount"in e&&null!=e.fromAccount&&(this.fromAccount=e.fromAccount),"destAccount"in e&&null!=e.destAccount&&(this.destAccount=e.destAccount),"revoke"in e&&null!=e.revoke&&(this.revoke=e.revoke),"deviceTag"in e&&null!=e.deviceTag&&(this.deviceTag=e.deviceTag))}get messageId(){return Kt.Message.getFieldWithDefault(this,1,"")}set messageId(e){Kt.Message.setField(this,1,e)}get appId(){return Kt.Message.getFieldWithDefault(this,2,0)}set appId(e){Kt.Message.setField(this,2,e)}get v(){return Kt.Message.getFieldWithDefault(this,3,0)}set v(e){Kt.Message.setField(this,3,e)}get sort(){return Kt.Message.getFieldWithDefault(this,4,0)}set sort(e){Kt.Message.setField(this,4,e)}get created(){return Kt.Message.getFieldWithDefault(this,5,"")}set created(e){Kt.Message.setField(this,5,e)}get modified(){return Kt.Message.getFieldWithDefault(this,6,"")}set modified(e){Kt.Message.setField(this,6,e)}get ids(){return Kt.Message.getFieldWithDefault(this,7,[])}set ids(e){Kt.Message.setField(this,7,e)}get appIds(){return Kt.Message.getFieldWithDefault(this,8,[])}set appIds(e){Kt.Message.setField(this,8,e)}get fromName(){return Kt.Message.getFieldWithDefault(this,9,"")}set fromName(e){Kt.Message.setField(this,9,e)}get meta(){return Kt.Message.getWrapperField(this,Nt.Meta,10)}set meta(e){Kt.Message.setWrapperField(this,10,e)}get has_meta(){return null!=Kt.Message.getField(this,10)}get roomId(){return Kt.Message.getFieldWithDefault(this,11,0)}set roomId(e){Kt.Message.setField(this,11,e)}get fromId(){return Kt.Message.getFieldWithDefault(this,12,"")}set fromId(e){Kt.Message.setField(this,12,e)}get destId(){return Kt.Message.getFieldWithDefault(this,13,"")}set destId(e){Kt.Message.setField(this,13,e)}get mimeType(){return Kt.Message.getFieldWithDefault(this,14,"")}set mimeType(e){Kt.Message.setField(this,14,e)}get subtype(){return Kt.Message.getFieldWithDefault(this,15,0)}set subtype(e){Kt.Message.setField(this,15,e)}get title(){return Kt.Message.getFieldWithDefault(this,16,"")}set title(e){Kt.Message.setField(this,16,e)}get subtitle(){return Kt.Message.getFieldWithDefault(this,17,"")}set subtitle(e){Kt.Message.setField(this,17,e)}get cite(){return Kt.Message.getFieldWithDefault(this,18,"")}set cite(e){Kt.Message.setField(this,18,e)}get text(){return Kt.Message.getFieldWithDefault(this,19,"")}set text(e){Kt.Message.setField(this,19,e)}get filename(){return Kt.Message.getFieldWithDefault(this,20,"")}set filename(e){Kt.Message.setField(this,20,e)}get secret(){return Kt.Message.getFieldWithDefault(this,21,"")}set secret(e){Kt.Message.setField(this,21,e)}get thumb(){return Kt.Message.getFieldWithDefault(this,22,"")}set thumb(e){Kt.Message.setField(this,22,e)}get url(){return Kt.Message.getFieldWithDefault(this,23,"")}set url(e){Kt.Message.setField(this,23,e)}get lat(){return Kt.Message.getFieldWithDefault(this,24,"")}set lat(e){Kt.Message.setField(this,24,e)}get lng(){return Kt.Message.getFieldWithDefault(this,25,"")}set lng(e){Kt.Message.setField(this,25,e)}get command(){return Kt.Message.getFieldWithDefault(this,26,"")}set command(e){Kt.Message.setField(this,26,e)}get size(){return Kt.Message.getFieldWithDefault(this,27,0)}set size(e){Kt.Message.setField(this,27,e)}get length(){return Kt.Message.getFieldWithDefault(this,28,0)}set length(e){Kt.Message.setField(this,28,e)}get sent(){return Kt.Message.getFieldWithDefault(this,29,"")}set sent(e){Kt.Message.setField(this,29,e)}get host(){return Kt.Message.getFieldWithDefault(this,30,"")}set host(e){Kt.Message.setField(this,30,e)}get params(){return Kt.Message.getFieldWithDefault(this,31,"")}set params(e){Kt.Message.setField(this,31,e)}get citeData(){return Kt.Message.getWrapperField(this,t,32)}set citeData(e){Kt.Message.setWrapperField(this,32,e)}get has_citeData(){return null!=Kt.Message.getField(this,32)}get cc(){return Kt.Message.getRepeatedWrapperField(this,Wt.MessageRemind,33)}set cc(e){Kt.Message.setRepeatedWrapperField(this,33,e)}get destName(){return Kt.Message.getFieldWithDefault(this,34,"")}set destName(e){Kt.Message.setField(this,34,e)}get talkMode(){return Kt.Message.getFieldWithDefault(this,35,0)}set talkMode(e){Kt.Message.setField(this,35,e)}get tag(){return Kt.Message.getFieldWithDefault(this,36,"")}set tag(e){Kt.Message.setField(this,36,e)}get deviceKey(){return Kt.Message.getFieldWithDefault(this,37,"")}set deviceKey(e){Kt.Message.setField(this,37,e)}get label(){return Kt.Message.getFieldWithDefault(this,38,"")}set label(e){Kt.Message.setField(this,38,e)}get remind(){return Kt.Message.getRepeatedWrapperField(this,Wt.MessageRemind,39)}set remind(e){Kt.Message.setRepeatedWrapperField(this,39,e)}get fromAccount(){return Kt.Message.getFieldWithDefault(this,40,"")}set fromAccount(e){Kt.Message.setField(this,40,e)}get destAccount(){return Kt.Message.getFieldWithDefault(this,41,"")}set destAccount(e){Kt.Message.setField(this,41,e)}get revoke(){return Kt.Message.getFieldWithDefault(this,42,"")}set revoke(e){Kt.Message.setField(this,42,e)}get deviceTag(){return Kt.Message.getFieldWithDefault(this,43,"")}set deviceTag(e){Kt.Message.setField(this,43,e)}static fromObject(e){const r=new t({});return null!=e.messageId&&(r.messageId=e.messageId),null!=e.appId&&(r.appId=e.appId),null!=e.v&&(r.v=e.v),null!=e.sort&&(r.sort=e.sort),null!=e.created&&(r.created=e.created),null!=e.modified&&(r.modified=e.modified),null!=e.ids&&(r.ids=e.ids),null!=e.appIds&&(r.appIds=e.appIds),null!=e.fromName&&(r.fromName=e.fromName),null!=e.meta&&(r.meta=Nt.Meta.fromObject(e.meta)),null!=e.roomId&&(r.roomId=e.roomId),null!=e.fromId&&(r.fromId=e.fromId),null!=e.destId&&(r.destId=e.destId),null!=e.mimeType&&(r.mimeType=e.mimeType),null!=e.subtype&&(r.subtype=e.subtype),null!=e.title&&(r.title=e.title),null!=e.subtitle&&(r.subtitle=e.subtitle),null!=e.cite&&(r.cite=e.cite),null!=e.text&&(r.text=e.text),null!=e.filename&&(r.filename=e.filename),null!=e.secret&&(r.secret=e.secret),null!=e.thumb&&(r.thumb=e.thumb),null!=e.url&&(r.url=e.url),null!=e.lat&&(r.lat=e.lat),null!=e.lng&&(r.lng=e.lng),null!=e.command&&(r.command=e.command),null!=e.size&&(r.size=e.size),null!=e.length&&(r.length=e.length),null!=e.sent&&(r.sent=e.sent),null!=e.host&&(r.host=e.host),null!=e.params&&(r.params=e.params),null!=e.citeData&&(r.citeData=t.fromObject(e.citeData)),null!=e.cc&&(r.cc=e.cc.map(e=>Wt.MessageRemind.fromObject(e))),null!=e.destName&&(r.destName=e.destName),null!=e.talkMode&&(r.talkMode=e.talkMode),null!=e.tag&&(r.tag=e.tag),null!=e.deviceKey&&(r.deviceKey=e.deviceKey),null!=e.label&&(r.label=e.label),null!=e.remind&&(r.remind=e.remind.map(e=>Wt.MessageRemind.fromObject(e))),null!=e.fromAccount&&(r.fromAccount=e.fromAccount),null!=e.destAccount&&(r.destAccount=e.destAccount),null!=e.revoke&&(r.revoke=e.revoke),null!=e.deviceTag&&(r.deviceTag=e.deviceTag),r}toObject(){const e={};return null!=this.messageId&&(e.messageId=this.messageId),null!=this.appId&&(e.appId=this.appId),null!=this.v&&(e.v=this.v),null!=this.sort&&(e.sort=this.sort),null!=this.created&&(e.created=this.created),null!=this.modified&&(e.modified=this.modified),null!=this.ids&&(e.ids=this.ids),null!=this.appIds&&(e.appIds=this.appIds),null!=this.fromName&&(e.fromName=this.fromName),null!=this.meta&&(e.meta=this.meta.toObject()),null!=this.roomId&&(e.roomId=this.roomId),null!=this.fromId&&(e.fromId=this.fromId),null!=this.destId&&(e.destId=this.destId),null!=this.mimeType&&(e.mimeType=this.mimeType),null!=this.subtype&&(e.subtype=this.subtype),null!=this.title&&(e.title=this.title),null!=this.subtitle&&(e.subtitle=this.subtitle),null!=this.cite&&(e.cite=this.cite),null!=this.text&&(e.text=this.text),null!=this.filename&&(e.filename=this.filename),null!=this.secret&&(e.secret=this.secret),null!=this.thumb&&(e.thumb=this.thumb),null!=this.url&&(e.url=this.url),null!=this.lat&&(e.lat=this.lat),null!=this.lng&&(e.lng=this.lng),null!=this.command&&(e.command=this.command),null!=this.size&&(e.size=this.size),null!=this.length&&(e.length=this.length),null!=this.sent&&(e.sent=this.sent),null!=this.host&&(e.host=this.host),null!=this.params&&(e.params=this.params),null!=this.citeData&&(e.citeData=this.citeData.toObject()),null!=this.cc&&(e.cc=this.cc.map(e=>e.toObject())),null!=this.destName&&(e.destName=this.destName),null!=this.talkMode&&(e.talkMode=this.talkMode),null!=this.tag&&(e.tag=this.tag),null!=this.deviceKey&&(e.deviceKey=this.deviceKey),null!=this.label&&(e.label=this.label),null!=this.remind&&(e.remind=this.remind.map(e=>e.toObject())),null!=this.fromAccount&&(e.fromAccount=this.fromAccount),null!=this.destAccount&&(e.destAccount=this.destAccount),null!=this.revoke&&(e.revoke=this.revoke),null!=this.deviceTag&&(e.deviceTag=this.deviceTag),e}serialize(e){const t=e||new Kt.BinaryWriter;if(this.messageId.length&&t.writeString(1,this.messageId),0!=this.appId&&t.writeInt64(2,this.appId),0!=this.v&&t.writeDouble(3,this.v),0!=this.sort&&t.writeInt32(4,this.sort),this.created.length&&t.writeString(5,this.created),this.modified.length&&t.writeString(6,this.modified),this.ids.length&&t.writeRepeatedString(7,this.ids),this.appIds.length&&t.writeRepeatedString(8,this.appIds),this.fromName.length&&t.writeString(9,this.fromName),this.has_meta&&t.writeMessage(10,this.meta,()=>this.meta.serialize(t)),0!=this.roomId&&t.writeInt64(11,this.roomId),this.fromId.length&&t.writeString(12,this.fromId),this.destId.length&&t.writeString(13,this.destId),this.mimeType.length&&t.writeString(14,this.mimeType),0!=this.subtype&&t.writeInt32(15,this.subtype),this.title.length&&t.writeString(16,this.title),this.subtitle.length&&t.writeString(17,this.subtitle),this.cite.length&&t.writeString(18,this.cite),this.text.length&&t.writeString(19,this.text),this.filename.length&&t.writeString(20,this.filename),this.secret.length&&t.writeString(21,this.secret),this.thumb.length&&t.writeString(22,this.thumb),this.url.length&&t.writeString(23,this.url),this.lat.length&&t.writeString(24,this.lat),this.lng.length&&t.writeString(25,this.lng),this.command.length&&t.writeString(26,this.command),0!=this.size&&t.writeDouble(27,this.size),0!=this.length&&t.writeDouble(28,this.length),this.sent.length&&t.writeString(29,this.sent),this.host.length&&t.writeString(30,this.host),this.params.length&&t.writeString(31,this.params),this.has_citeData&&t.writeMessage(32,this.citeData,()=>this.citeData.serialize(t)),this.cc.length&&t.writeRepeatedMessage(33,this.cc,e=>e.serialize(t)),this.destName.length&&t.writeString(34,this.destName),0!=this.talkMode&&t.writeInt32(35,this.talkMode),this.tag.length&&t.writeString(36,this.tag),this.deviceKey.length&&t.writeString(37,this.deviceKey),this.label.length&&t.writeString(38,this.label),this.remind.length&&t.writeRepeatedMessage(39,this.remind,e=>e.serialize(t)),this.fromAccount.length&&t.writeString(40,this.fromAccount),this.destAccount.length&&t.writeString(41,this.destAccount),this.revoke.length&&t.writeString(42,this.revoke),this.deviceTag.length&&t.writeString(43,this.deviceTag),!e)return t.getResultBuffer()}static deserialize(e){const r=e instanceof Kt.BinaryReader?e:new Kt.BinaryReader(e),i=new t;for(;r.nextField()&&!r.isEndGroup();)switch(r.getFieldNumber()){case 1:i.messageId=r.readString();break;case 2:i.appId=r.readInt64();break;case 3:i.v=r.readDouble();break;case 4:i.sort=r.readInt32();break;case 5:i.created=r.readString();break;case 6:i.modified=r.readString();break;case 7:Kt.Message.addToRepeatedField(i,7,r.readString());break;case 8:Kt.Message.addToRepeatedField(i,8,r.readString());break;case 9:i.fromName=r.readString();break;case 10:r.readMessage(i.meta,()=>i.meta=Nt.Meta.deserialize(r));break;case 11:i.roomId=r.readInt64();break;case 12:i.fromId=r.readString();break;case 13:i.destId=r.readString();break;case 14:i.mimeType=r.readString();break;case 15:i.subtype=r.readInt32();break;case 16:i.title=r.readString();break;case 17:i.subtitle=r.readString();break;case 18:i.cite=r.readString();break;case 19:i.text=r.readString();break;case 20:i.filename=r.readString();break;case 21:i.secret=r.readString();break;case 22:i.thumb=r.readString();break;case 23:i.url=r.readString();break;case 24:i.lat=r.readString();break;case 25:i.lng=r.readString();break;case 26:i.command=r.readString();break;case 27:i.size=r.readDouble();break;case 28:i.length=r.readDouble();break;case 29:i.sent=r.readString();break;case 30:i.host=r.readString();break;case 31:i.params=r.readString();break;case 32:r.readMessage(i.citeData,()=>i.citeData=t.deserialize(r));break;case 33:r.readMessage(i.cc,()=>Kt.Message.addToRepeatedWrapperField(i,33,Wt.MessageRemind.deserialize(r),Wt.MessageRemind));break;case 34:i.destName=r.readString();break;case 35:i.talkMode=r.readInt32();break;case 36:i.tag=r.readString();break;case 37:i.deviceKey=r.readString();break;case 38:i.label=r.readString();break;case 39:r.readMessage(i.remind,()=>Kt.Message.addToRepeatedWrapperField(i,39,Wt.MessageRemind.deserialize(r),Wt.MessageRemind));break;case 40:i.fromAccount=r.readString();break;case 41:i.destAccount=r.readString();break;case 42:i.revoke=r.readString();break;case 43:i.deviceTag=r.readString();break;default:r.skipField()}return i}serializeBinary(){return this.serialize()}static deserializeBinary(e){return t.deserialize(e)}}e.Message=t}(zt||(zt={})),function(e){class t extends Kt.Message{#e=[];constructor(e){super(),Kt.Message.initialize(this,Array.isArray(e)?e:[],0,-1,[7,8,29,30],this.#e),Array.isArray(e)||"object"!=typeof e||("messageId"in e&&null!=e.messageId&&(this.messageId=e.messageId),"appId"in e&&null!=e.appId&&(this.appId=e.appId),"v"in e&&null!=e.v&&(this.v=e.v),"sort"in e&&null!=e.sort&&(this.sort=e.sort),"created"in e&&null!=e.created&&(this.created=e.created),"modified"in e&&null!=e.modified&&(this.modified=e.modified),"ids"in e&&null!=e.ids&&(this.ids=e.ids),"appIds"in e&&null!=e.appIds&&(this.appIds=e.appIds),"remark"in e&&null!=e.remark&&(this.remark=e.remark),"meta"in e&&null!=e.meta&&(this.meta=e.meta),"roomId"in e&&null!=e.roomId&&(this.roomId=e.roomId),"fromId"in e&&null!=e.fromId&&(this.fromId=e.fromId),"fromName"in e&&null!=e.fromName&&(this.fromName=e.fromName),"destId"in e&&null!=e.destId&&(this.destId=e.destId),"destName"in e&&null!=e.destName&&(this.destName=e.destName),"device"in e&&null!=e.device&&(this.device=e.device),"level"in e&&null!=e.level&&(this.level=e.level),"deviceKey"in e&&null!=e.deviceKey&&(this.deviceKey=e.deviceKey),"message"in e&&null!=e.message&&(this.message=e.message),"sent"in e&&null!=e.sent&&(this.sent=e.sent),"succeed"in e&&null!=e.succeed&&(this.succeed=e.succeed),"read"in e&&null!=e.read&&(this.read=e.read),"revoke"in e&&null!=e.revoke&&(this.revoke=e.revoke),"readBy"in e&&null!=e.readBy&&(this.readBy=e.readBy),"deviceTag"in e&&null!=e.deviceTag&&(this.deviceTag=e.deviceTag),"signId"in e&&null!=e.signId&&(this.signId=e.signId),"tag"in e&&null!=e.tag&&(this.tag=e.tag),"fromIds"in e&&null!=e.fromIds&&(this.fromIds=e.fromIds),"destIds"in e&&null!=e.destIds&&(this.destIds=e.destIds),"end"in e&&null!=e.end&&(this.end=e.end),"label"in e&&null!=e.label&&(this.label=e.label),"destAccount"in e&&null!=e.destAccount&&(this.destAccount=e.destAccount),"fromAccount"in e&&null!=e.fromAccount&&(this.fromAccount=e.fromAccount))}get messageId(){return Kt.Message.getFieldWithDefault(this,1,"")}set messageId(e){Kt.Message.setField(this,1,e)}get appId(){return Kt.Message.getFieldWithDefault(this,2,0)}set appId(e){Kt.Message.setField(this,2,e)}get v(){return Kt.Message.getFieldWithDefault(this,3,0)}set v(e){Kt.Message.setField(this,3,e)}get sort(){return Kt.Message.getFieldWithDefault(this,4,0)}set sort(e){Kt.Message.setField(this,4,e)}get created(){return Kt.Message.getFieldWithDefault(this,5,"")}set created(e){Kt.Message.setField(this,5,e)}get modified(){return Kt.Message.getFieldWithDefault(this,6,"")}set modified(e){Kt.Message.setField(this,6,e)}get ids(){return Kt.Message.getFieldWithDefault(this,7,[])}set ids(e){Kt.Message.setField(this,7,e)}get appIds(){return Kt.Message.getFieldWithDefault(this,8,[])}set appIds(e){Kt.Message.setField(this,8,e)}get remark(){return Kt.Message.getFieldWithDefault(this,9,"")}set remark(e){Kt.Message.setField(this,9,e)}get meta(){return Kt.Message.getWrapperField(this,Nt.Meta,10)}set meta(e){Kt.Message.setWrapperField(this,10,e)}get has_meta(){return null!=Kt.Message.getField(this,10)}get roomId(){return Kt.Message.getFieldWithDefault(this,11,0)}set roomId(e){Kt.Message.setField(this,11,e)}get fromId(){return Kt.Message.getFieldWithDefault(this,12,"")}set fromId(e){Kt.Message.setField(this,12,e)}get fromName(){return Kt.Message.getFieldWithDefault(this,13,"")}set fromName(e){Kt.Message.setField(this,13,e)}get destId(){return Kt.Message.getFieldWithDefault(this,14,"")}set destId(e){Kt.Message.setField(this,14,e)}get destName(){return Kt.Message.getFieldWithDefault(this,15,"")}set destName(e){Kt.Message.setField(this,15,e)}get device(){return Kt.Message.getFieldWithDefault(this,16,"")}set device(e){Kt.Message.setField(this,16,e)}get level(){return Kt.Message.getFieldWithDefault(this,17,0)}set level(e){Kt.Message.setField(this,17,e)}get deviceKey(){return Kt.Message.getFieldWithDefault(this,18,"")}set deviceKey(e){Kt.Message.setField(this,18,e)}get message(){return Kt.Message.getWrapperField(this,zt.Message,19)}set message(e){Kt.Message.setWrapperField(this,19,e)}get has_message(){return null!=Kt.Message.getField(this,19)}get sent(){return Kt.Message.getFieldWithDefault(this,20,"")}set sent(e){Kt.Message.setField(this,20,e)}get succeed(){return Kt.Message.getFieldWithDefault(this,21,"")}set succeed(e){Kt.Message.setField(this,21,e)}get read(){return Kt.Message.getFieldWithDefault(this,22,"")}set read(e){Kt.Message.setField(this,22,e)}get revoke(){return Kt.Message.getFieldWithDefault(this,23,"")}set revoke(e){Kt.Message.setField(this,23,e)}get readBy(){return Kt.Message.getFieldWithDefault(this,24,0)}set readBy(e){Kt.Message.setField(this,24,e)}get deviceTag(){return Kt.Message.getFieldWithDefault(this,25,"")}set deviceTag(e){Kt.Message.setField(this,25,e)}get signId(){return Kt.Message.getFieldWithDefault(this,27,"")}set signId(e){Kt.Message.setField(this,27,e)}get tag(){return Kt.Message.getFieldWithDefault(this,28,"")}set tag(e){Kt.Message.setField(this,28,e)}get fromIds(){return Kt.Message.getFieldWithDefault(this,29,[])}set fromIds(e){Kt.Message.setField(this,29,e)}get destIds(){return Kt.Message.getFieldWithDefault(this,30,[])}set destIds(e){Kt.Message.setField(this,30,e)}get end(){return Kt.Message.getFieldWithDefault(this,37,"")}set end(e){Kt.Message.setField(this,37,e)}get label(){return Kt.Message.getFieldWithDefault(this,38,"")}set label(e){Kt.Message.setField(this,38,e)}get destAccount(){return Kt.Message.getFieldWithDefault(this,39,"")}set destAccount(e){Kt.Message.setField(this,39,e)}get fromAccount(){return Kt.Message.getFieldWithDefault(this,40,"")}set fromAccount(e){Kt.Message.setField(this,40,e)}static fromObject(e){const r=new t({});return null!=e.messageId&&(r.messageId=e.messageId),null!=e.appId&&(r.appId=e.appId),null!=e.v&&(r.v=e.v),null!=e.sort&&(r.sort=e.sort),null!=e.created&&(r.created=e.created),null!=e.modified&&(r.modified=e.modified),null!=e.ids&&(r.ids=e.ids),null!=e.appIds&&(r.appIds=e.appIds),null!=e.remark&&(r.remark=e.remark),null!=e.meta&&(r.meta=Nt.Meta.fromObject(e.meta)),null!=e.roomId&&(r.roomId=e.roomId),null!=e.fromId&&(r.fromId=e.fromId),null!=e.fromName&&(r.fromName=e.fromName),null!=e.destId&&(r.destId=e.destId),null!=e.destName&&(r.destName=e.destName),null!=e.device&&(r.device=e.device),null!=e.level&&(r.level=e.level),null!=e.deviceKey&&(r.deviceKey=e.deviceKey),null!=e.message&&(r.message=zt.Message.fromObject(e.message)),null!=e.sent&&(r.sent=e.sent),null!=e.succeed&&(r.succeed=e.succeed),null!=e.read&&(r.read=e.read),null!=e.revoke&&(r.revoke=e.revoke),null!=e.readBy&&(r.readBy=e.readBy),null!=e.deviceTag&&(r.deviceTag=e.deviceTag),null!=e.signId&&(r.signId=e.signId),null!=e.tag&&(r.tag=e.tag),null!=e.fromIds&&(r.fromIds=e.fromIds),null!=e.destIds&&(r.destIds=e.destIds),null!=e.end&&(r.end=e.end),null!=e.label&&(r.label=e.label),null!=e.destAccount&&(r.destAccount=e.destAccount),null!=e.fromAccount&&(r.fromAccount=e.fromAccount),r}toObject(){const e={};return null!=this.messageId&&(e.messageId=this.messageId),null!=this.appId&&(e.appId=this.appId),null!=this.v&&(e.v=this.v),null!=this.sort&&(e.sort=this.sort),null!=this.created&&(e.created=this.created),null!=this.modified&&(e.modified=this.modified),null!=this.ids&&(e.ids=this.ids),null!=this.appIds&&(e.appIds=this.appIds),null!=this.remark&&(e.remark=this.remark),null!=this.meta&&(e.meta=this.meta.toObject()),null!=this.roomId&&(e.roomId=this.roomId),null!=this.fromId&&(e.fromId=this.fromId),null!=this.fromName&&(e.fromName=this.fromName),null!=this.destId&&(e.destId=this.destId),null!=this.destName&&(e.destName=this.destName),null!=this.device&&(e.device=this.device),null!=this.level&&(e.level=this.level),null!=this.deviceKey&&(e.deviceKey=this.deviceKey),null!=this.message&&(e.message=this.message.toObject()),null!=this.sent&&(e.sent=this.sent),null!=this.succeed&&(e.succeed=this.succeed),null!=this.read&&(e.read=this.read),null!=this.revoke&&(e.revoke=this.revoke),null!=this.readBy&&(e.readBy=this.readBy),null!=this.deviceTag&&(e.deviceTag=this.deviceTag),null!=this.signId&&(e.signId=this.signId),null!=this.tag&&(e.tag=this.tag),null!=this.fromIds&&(e.fromIds=this.fromIds),null!=this.destIds&&(e.destIds=this.destIds),null!=this.end&&(e.end=this.end),null!=this.label&&(e.label=this.label),null!=this.destAccount&&(e.destAccount=this.destAccount),null!=this.fromAccount&&(e.fromAccount=this.fromAccount),e}serialize(e){const t=e||new Kt.BinaryWriter;if(this.messageId.length&&t.writeString(1,this.messageId),0!=this.appId&&t.writeInt64(2,this.appId),0!=this.v&&t.writeDouble(3,this.v),0!=this.sort&&t.writeInt32(4,this.sort),this.created.length&&t.writeString(5,this.created),this.modified.length&&t.writeString(6,this.modified),this.ids.length&&t.writeRepeatedString(7,this.ids),this.appIds.length&&t.writeRepeatedString(8,this.appIds),this.remark.length&&t.writeString(9,this.remark),this.has_meta&&t.writeMessage(10,this.meta,()=>this.meta.serialize(t)),0!=this.roomId&&t.writeInt64(11,this.roomId),this.fromId.length&&t.writeString(12,this.fromId),this.fromName.length&&t.writeString(13,this.fromName),this.destId.length&&t.writeString(14,this.destId),this.destName.length&&t.writeString(15,this.destName),this.device.length&&t.writeString(16,this.device),0!=this.level&&t.writeInt32(17,this.level),this.deviceKey.length&&t.writeString(18,this.deviceKey),this.has_message&&t.writeMessage(19,this.message,()=>this.message.serialize(t)),this.sent.length&&t.writeString(20,this.sent),this.succeed.length&&t.writeString(21,this.succeed),this.read.length&&t.writeString(22,this.read),this.revoke.length&&t.writeString(23,this.revoke),0!=this.readBy&&t.writeInt32(24,this.readBy),this.deviceTag.length&&t.writeString(25,this.deviceTag),this.signId.length&&t.writeString(27,this.signId),this.tag.length&&t.writeString(28,this.tag),this.fromIds.length&&t.writeRepeatedString(29,this.fromIds),this.destIds.length&&t.writeRepeatedString(30,this.destIds),this.end.length&&t.writeString(37,this.end),this.label.length&&t.writeString(38,this.label),this.destAccount.length&&t.writeString(39,this.destAccount),this.fromAccount.length&&t.writeString(40,this.fromAccount),!e)return t.getResultBuffer()}static deserialize(e){const r=e instanceof Kt.BinaryReader?e:new Kt.BinaryReader(e),i=new t;for(;r.nextField()&&!r.isEndGroup();)switch(r.getFieldNumber()){case 1:i.messageId=r.readString();break;case 2:i.appId=r.readInt64();break;case 3:i.v=r.readDouble();break;case 4:i.sort=r.readInt32();break;case 5:i.created=r.readString();break;case 6:i.modified=r.readString();break;case 7:Kt.Message.addToRepeatedField(i,7,r.readString());break;case 8:Kt.Message.addToRepeatedField(i,8,r.readString());break;case 9:i.remark=r.readString();break;case 10:r.readMessage(i.meta,()=>i.meta=Nt.Meta.deserialize(r));break;case 11:i.roomId=r.readInt64();break;case 12:i.fromId=r.readString();break;case 13:i.fromName=r.readString();break;case 14:i.destId=r.readString();break;case 15:i.destName=r.readString();break;case 16:i.device=r.readString();break;case 17:i.level=r.readInt32();break;case 18:i.deviceKey=r.readString();break;case 19:r.readMessage(i.message,()=>i.message=zt.Message.deserialize(r));break;case 20:i.sent=r.readString();break;case 21:i.succeed=r.readString();break;case 22:i.read=r.readString();break;case 23:i.revoke=r.readString();break;case 24:i.readBy=r.readInt32();break;case 25:i.deviceTag=r.readString();break;case 27:i.signId=r.readString();break;case 28:i.tag=r.readString();break;case 29:Kt.Message.addToRepeatedField(i,29,r.readString());break;case 30:Kt.Message.addToRepeatedField(i,30,r.readString());break;case 37:i.end=r.readString();break;case 38:i.label=r.readString();break;case 39:i.destAccount=r.readString();break;case 40:i.fromAccount=r.readString();break;default:r.skipField()}return i}serializeBinary(){return this.serialize()}static deserializeBinary(e){return t.deserialize(e)}}e.MessageSign=t}(Ht||(Ht={}));var Xt,Jt,Zt=r(8287).hp,Qt=jt.Contacts,$t=Ut.Rooms,er=Ht.MessageSign,tr=zt.Message;class rr extends Yt{static instance;client=null;constructor(){super()}static getInstance(){return rr.instance||(rr.instance=new rr),rr.instance}setClient(e){return this.client=e,this}getContactList(e=1,t=50){return new Promise((r,i)=>{if(this.checkSocket().length)return void i(new Error(this.checkSocket()));this.client.meta.page=e,this.client.meta.pageSize=t;const n=new Qt({meta:this.client.meta,joinRoomId:this.client.meta.roomId});let s=[];this.client.socket?.requestStream({data:Zt.from(n.serializeBinary().buffer),metadata:this.buildRoute("contact.list")},3e3,{onComplete:()=>{r(s)},onNext:(e,t)=>{try{if(e.data){let t=Qt.deserialize(e.data),r=this.buildContact(t);if(s.push(r),this.client){let e=this.client.contactList.findIndex(e=>e.contactId==r.contactId);-1==e?this.client.contactList.push(r):this.client.contactList.splice(e,1,r)}}}catch(e){i(new Error("IO Client Error"))}},onError:e=>{let t=e?.message+"",r=this.onError(t);r.length>0?i(new Error(r)):i(new Error(t))},onExtension(e,t,r){}})})}getContactBlackList(e=1){return new Promise((t,r)=>{if(this.checkSocket().length)return void r(new Error(this.checkSocket()));this.client.meta.page=e;const i=new Qt({meta:this.client.meta,joinRoomId:this.client.meta.roomId});let n=[];this.client.socket?.requestStream({data:Zt.from(i.serializeBinary().buffer),metadata:this.buildRoute("contact.black.list")},3e3,{onComplete:()=>{t(n)},onNext:(e,t)=>{try{if(e.data){let t=Qt.deserialize(e.data),r=this.buildContact(t);n.push(r)}}catch(e){r(new Error("IO Client Error"))}},onError:e=>{let t=e?.message+"",i=this.onError(t);i.length>0?r(new Error(i)):r(new Error(t))},onExtension(e,t,r){}})})}getContactByUserId(e){return new Promise((t,r)=>{if(this.checkSocket().length)return void r(new Error(this.checkSocket()));const i=new Qt({meta:this.client.meta,userId:e});let n=[];this.client.socket?.requestStream({data:Zt.from(i.serializeBinary().buffer),metadata:this.buildRoute("contact.byUserId")},3e3,{onComplete:()=>{t(n)},onNext:(e,t)=>{try{if(e.data){let t=Qt.deserialize(e.data),r=this.buildContact(t);n.push(r)}}catch(e){r(new Error("IO Client Error"))}},onError:e=>{let t=e?.message+"",i=this.onError(t);i.length>0?r(new Error(i)):r(new Error(t))},onExtension(e,t,r){}})})}getContactByJoinId(e){return new Promise((t,r)=>{if(this.checkSocket().length)return void r(new Error(this.checkSocket()));const i=new Qt({meta:this.client.meta,joinRoomId:e});let n=null;this.client.socket?.requestResponse({data:Zt.from(i.serializeBinary().buffer),metadata:this.buildRoute("contact.byJoinId")},{onComplete:()=>{t(n)},onNext:(e,i)=>{try{if(e.data){let r=Qt.deserialize(e.data),s=this.buildContact(r);n=s,i&&t(n)}}catch(e){r(new Error("IO Client Error"))}},onError:e=>{let t=e?.message+"",i=this.onError(t);i.length>0?r(new Error(i)):r(new Error(t))},onExtension(e,t,r){}})})}addContact(e,t){return new Promise((r,i)=>{if(this.checkSocket().length)return void i(new Error(this.checkSocket()));const n=new Qt({meta:this.client.meta,joinRoomId:e,remark:t});let s=null;this.client.socket?.requestResponse({data:Zt.from(n.serializeBinary().buffer),metadata:this.buildRoute("contact.add")},{onComplete:()=>{r(s)},onNext:(e,t)=>{try{if(e.data){let i=$t.deserialize(e.data),n=this.buildGroup(i);s=n,t&&r(s)}}catch(e){i(new Error("IO Client Error"))}},onError:e=>{let t=e?.message+"",r=this.onError(t);r.length>0?i(new Error(r)):i(new Error(t))},onExtension(e,t,r){}})})}handleApply(e,t,r){return new Promise((i,n)=>{if(this.checkSocket().length)return void n(new Error(this.checkSocket()));const s=new Qt({meta:this.client.meta,account:e,apply:t?1:0,remark:r});let a=null;this.client.socket?.requestResponse({data:Zt.from(s.serializeBinary().buffer),metadata:this.buildRoute("handle.apply")},{onComplete:()=>{i(a)},onNext:(e,t)=>{try{if(e.data){let r=$t.deserialize(e.data),n=this.buildGroup(r);a=n,t&&i(a)}}catch(e){n(new Error("IO Client Error"))}},onError:e=>{let t=e?.message+"",r=this.onError(t);r.length>0?n(new Error(r)):n(new Error(t))},onExtension(e,t,r){}})})}setRemarkName(e,t){return new Promise(async(r,i)=>{if(this.checkSocket().length)return void i(new Error(this.checkSocket()));let n=await this.getContactByJoinId(e);if(!n)return void i(new Error("联系人获取失败"));const s=new Qt({meta:this.client.meta,id:n.contactId,username:t});let a=null;this.client.socket?.requestResponse({data:Zt.from(s.serializeBinary().buffer),metadata:this.buildRoute("contact.username")},{onComplete:()=>{r(a)},onNext:(e,t)=>{try{if(e.data){let i=Qt.deserialize(e.data),n=this.buildContact(i);a=n,t&&r(a)}}catch(e){i(new Error("IO Client Error"))}},onError:e=>{let t=e?.message+"",r=this.onError(t);r.length>0?i(new Error(r)):i(new Error(t))},onExtension(e,t,r){}})})}setNoticeLevel(e,t){return new Promise(async(r,i)=>{if(this.checkSocket().length)return void i(new Error(this.checkSocket()));let n=await this.getContactByJoinId(e);if(!n)return void i(new Error("联系人获取失败"));const s=new Qt({meta:this.client.meta,id:n.contactId,noise:t});let a=null;this.client.socket?.requestResponse({data:Zt.from(s.serializeBinary().buffer),metadata:this.buildRoute("contact.noise")},{onComplete:()=>{r(a)},onNext:(e,t)=>{try{if(e.data){let i=Qt.deserialize(e.data),n=this.buildContact(i);a=n,t&&r(a)}}catch(e){i(new Error("IO Client Error"))}},onError:e=>{let t=e?.message+"",r=this.onError(t);r.length>0?i(new Error(r)):i(new Error(t))},onExtension(e,t,r){}})})}setBlack(e,t){return new Promise(async(r,i)=>{if(this.checkSocket().length)return void i(new Error(this.checkSocket()));let n=await this.getContactByJoinId(e);if(!n)return void i(new Error("联系人获取失败"));if(n.isGroup)return void i(new Error("群禁止设置"));const s=new Qt({meta:this.client.meta,userId:n.userId,black:t});let a=null;this.client.socket?.requestResponse({data:Zt.from(s.serializeBinary().buffer),metadata:this.buildRoute("contact.black")},{onComplete:()=>{r(a)},onNext:(e,t)=>{try{if(e.data){let i=Qt.deserialize(e.data),n=this.buildContact(i);a=n,t&&r(a)}}catch(e){i(new Error("IO Client Error"))}},onError:e=>{let t=e?.message+"",r=this.onError(t);r.length>0?i(new Error(r)):i(new Error(t))},onExtension(e,t,r){}})})}delete(e){return new Promise(async(t,r)=>{if(this.checkSocket().length)return void r(new Error(this.checkSocket()));let i=await this.getContactByJoinId(e);if(!i)return void r(new Error("联系人获取失败"));if(i.isGroup)return void r(new Error("群禁止设置"));const n=new Qt({meta:this.client.meta,userId:i.userId});this.client.socket?.requestResponse({data:Zt.from(n.serializeBinary().buffer),metadata:this.buildRoute("contact.delete")},{onComplete:()=>{t(null)},onNext:(e,i)=>{try{e.data&&i&&t("")}catch(e){r(new Error("IO Client Error"))}},onError:e=>{let t=e?.message+"",i=this.onError(t);i.length>0?r(new Error(i)):r(new Error(t))},onExtension(e,t,r){}})})}setSubgroup(e,t){return new Promise(async(r,i)=>{if(this.checkSocket().length)return void i(new Error(this.checkSocket()));let n=await this.getContactByJoinId(e);if(!n)return void i(new Error("联系人获取失败"));const s=new Qt({meta:this.client.meta,userId:n.userId,subgroup:t});let a=null;this.client.socket?.requestResponse({data:Zt.from(s.serializeBinary().buffer),metadata:this.buildRoute("contact.subgroup")},{onComplete:()=>{r(a)},onNext:(e,t)=>{try{if(e.data){let i=Qt.deserialize(e.data),n=this.buildContact(i);a=n,t&&r(a)}}catch(e){i(new Error("IO Client Error"))}},onError:e=>{let t=e?.message+"",r=this.onError(t);r.length>0?i(new Error(r)):i(new Error(t))},onExtension(e,t,r){}})})}setSort(e,t){return new Promise(async(r,i)=>{if(this.checkSocket().length)return void i(new Error(this.checkSocket()));let n=await this.getContactByJoinId(e);if(!n)return void i(new Error("联系人获取失败"));const s=new Qt({meta:this.client.meta,userId:n.userId,sort:t});let a=null;this.client.socket?.requestResponse({data:Zt.from(s.serializeBinary().buffer),metadata:this.buildRoute("contact.sort")},{onComplete:()=>{r(a)},onNext:(e,t)=>{try{if(e.data){let i=Qt.deserialize(e.data),n=this.buildContact(i);a=n,t&&r(a)}}catch(e){i(new Error("IO Client Error"))}},onError:e=>{let t=e?.message+"",r=this.onError(t);r.length>0?i(new Error(r)):i(new Error(t))},onExtension(e,t,r){}})})}messageNotSign(){return new Promise(async(e,t)=>{if(this.checkSocket().length)return void t(new Error(this.checkSocket()));const r=new er({meta:this.client.meta,roomId:this.client.meta.roomId});let i=[];this.client.socket?.requestStream({data:Zt.from(r.serializeBinary().buffer),metadata:this.buildRoute("message.not.sign")},300,{onComplete:()=>{e(i)},onNext:(e,r)=>{try{if(e.data){let t=tr.deserialize(e.data),r=this.buildMessage(t);i.push(r);try{for(let e of this.client.messageListener)try{e?.onMessage?.(r)}catch(e){}}catch(e){}}}catch(e){t(new Error("IO Client Error"))}},onError:e=>{let r=e?.message+"",i=this.onError(r);i.length>0?t(new Error(i)):t(new Error(r))},onExtension(e,t,r){}})})}onError(e){if(e.indexOf("Jwt")>-1){try{this.client.clientListener?.onTokenExpired()}catch(e){}return"IO Token 已过期"}return e.indexOf("SQL")>-1||e.indexOf("connect")>-1?"IO System Error":e.indexOf("terminal")>-1||e.indexOf("signal")>-1?"请求超时":""}checkSocket(){return this.client?this.client.socket?0==this.client.getTokenAppId()||this.client.getTokenAppId()!=this.client.meta.appId?"token中的AppId 与 IMIOClientOption不一致":"":"IO Client 尚未建立连接":"IO Client 不存在"}}!function(e){class t extends Kt.Message{#e=[];constructor(e){super(),Kt.Message.initialize(this,Array.isArray(e)?e:[],0,-1,[7,8,28,29],this.#e),Array.isArray(e)||"object"!=typeof e||("id"in e&&null!=e.id&&(this.id=e.id),"appId"in e&&null!=e.appId&&(this.appId=e.appId),"v"in e&&null!=e.v&&(this.v=e.v),"sort"in e&&null!=e.sort&&(this.sort=e.sort),"created"in e&&null!=e.created&&(this.created=e.created),"modified"in e&&null!=e.modified&&(this.modified=e.modified),"ids"in e&&null!=e.ids&&(this.ids=e.ids),"appIds"in e&&null!=e.appIds&&(this.appIds=e.appIds),"remark"in e&&null!=e.remark&&(this.remark=e.remark),"meta"in e&&null!=e.meta&&(this.meta=e.meta),"userId"in e&&null!=e.userId&&(this.userId=e.userId),"account"in e&&null!=e.account&&(this.account=e.account),"nickname"in e&&null!=e.nickname&&(this.nickname=e.nickname),"username"in e&&null!=e.username&&(this.username=e.username),"avatar"in e&&null!=e.avatar&&(this.avatar=e.avatar),"role"in e&&null!=e.role&&(this.role=e.role),"deviceKey"in e&&null!=e.deviceKey&&(this.deviceKey=e.deviceKey),"muted"in e&&null!=e.muted&&(this.muted=e.muted),"deviceTag"in e&&null!=e.deviceTag&&(this.deviceTag=e.deviceTag),"roomId"in e&&null!=e.roomId&&(this.roomId=e.roomId),"black"in e&&null!=e.black&&(this.black=e.black),"talkMode"in e&&null!=e.talkMode&&(this.talkMode=e.talkMode),"teamname"in e&&null!=e.teamname&&(this.teamname=e.teamname),"noise"in e&&null!=e.noise&&(this.noise=e.noise),"topic"in e&&null!=e.topic&&(this.topic=e.topic),"joinTeamId"in e&&null!=e.joinTeamId&&(this.joinTeamId=e.joinTeamId),"fromTeamId"in e&&null!=e.fromTeamId&&(this.fromTeamId=e.fromTeamId),"teamIds"in e&&null!=e.teamIds&&(this.teamIds=e.teamIds),"userIds"in e&&null!=e.userIds&&(this.userIds=e.userIds),"joinTime"in e&&null!=e.joinTime&&(this.joinTime=e.joinTime))}get id(){return Kt.Message.getFieldWithDefault(this,1,0)}set id(e){Kt.Message.setField(this,1,e)}get appId(){return Kt.Message.getFieldWithDefault(this,2,0)}set appId(e){Kt.Message.setField(this,2,e)}get v(){return Kt.Message.getFieldWithDefault(this,3,0)}set v(e){Kt.Message.setField(this,3,e)}get sort(){return Kt.Message.getFieldWithDefault(this,4,0)}set sort(e){Kt.Message.setField(this,4,e)}get created(){return Kt.Message.getFieldWithDefault(this,5,"")}set created(e){Kt.Message.setField(this,5,e)}get modified(){return Kt.Message.getFieldWithDefault(this,6,"")}set modified(e){Kt.Message.setField(this,6,e)}get ids(){return Kt.Message.getFieldWithDefault(this,7,[])}set ids(e){Kt.Message.setField(this,7,e)}get appIds(){return Kt.Message.getFieldWithDefault(this,8,[])}set appIds(e){Kt.Message.setField(this,8,e)}get remark(){return Kt.Message.getFieldWithDefault(this,9,"")}set remark(e){Kt.Message.setField(this,9,e)}get meta(){return Kt.Message.getWrapperField(this,Nt.Meta,10)}set meta(e){Kt.Message.setWrapperField(this,10,e)}get has_meta(){return null!=Kt.Message.getField(this,10)}get userId(){return Kt.Message.getFieldWithDefault(this,11,"")}set userId(e){Kt.Message.setField(this,11,e)}get account(){return Kt.Message.getFieldWithDefault(this,12,"")}set account(e){Kt.Message.setField(this,12,e)}get nickname(){return Kt.Message.getFieldWithDefault(this,13,"")}set nickname(e){Kt.Message.setField(this,13,e)}get username(){return Kt.Message.getFieldWithDefault(this,14,"")}set username(e){Kt.Message.setField(this,14,e)}get avatar(){return Kt.Message.getFieldWithDefault(this,15,"")}set avatar(e){Kt.Message.setField(this,15,e)}get role(){return Kt.Message.getFieldWithDefault(this,16,"")}set role(e){Kt.Message.setField(this,16,e)}get deviceKey(){return Kt.Message.getFieldWithDefault(this,17,"")}set deviceKey(e){Kt.Message.setField(this,17,e)}get muted(){return Kt.Message.getFieldWithDefault(this,18,0)}set muted(e){Kt.Message.setField(this,18,e)}get deviceTag(){return Kt.Message.getFieldWithDefault(this,19,"")}set deviceTag(e){Kt.Message.setField(this,19,e)}get roomId(){return Kt.Message.getFieldWithDefault(this,20,0)}set roomId(e){Kt.Message.setField(this,20,e)}get black(){return Kt.Message.getFieldWithDefault(this,21,0)}set black(e){Kt.Message.setField(this,21,e)}get talkMode(){return Kt.Message.getFieldWithDefault(this,22,0)}set talkMode(e){Kt.Message.setField(this,22,e)}get teamname(){return Kt.Message.getFieldWithDefault(this,23,"")}set teamname(e){Kt.Message.setField(this,23,e)}get noise(){return Kt.Message.getFieldWithDefault(this,24,0)}set noise(e){Kt.Message.setField(this,24,e)}get topic(){return Kt.Message.getFieldWithDefault(this,25,"")}set topic(e){Kt.Message.setField(this,25,e)}get joinTeamId(){return Kt.Message.getFieldWithDefault(this,26,0)}set joinTeamId(e){Kt.Message.setField(this,26,e)}get fromTeamId(){return Kt.Message.getFieldWithDefault(this,27,0)}set fromTeamId(e){Kt.Message.setField(this,27,e)}get teamIds(){return Kt.Message.getFieldWithDefault(this,28,[])}set teamIds(e){Kt.Message.setField(this,28,e)}get userIds(){return Kt.Message.getFieldWithDefault(this,29,[])}set userIds(e){Kt.Message.setField(this,29,e)}get joinTime(){return Kt.Message.getFieldWithDefault(this,30,"")}set joinTime(e){Kt.Message.setField(this,30,e)}static fromObject(e){const r=new t({});return null!=e.id&&(r.id=e.id),null!=e.appId&&(r.appId=e.appId),null!=e.v&&(r.v=e.v),null!=e.sort&&(r.sort=e.sort),null!=e.created&&(r.created=e.created),null!=e.modified&&(r.modified=e.modified),null!=e.ids&&(r.ids=e.ids),null!=e.appIds&&(r.appIds=e.appIds),null!=e.remark&&(r.remark=e.remark),null!=e.meta&&(r.meta=Nt.Meta.fromObject(e.meta)),null!=e.userId&&(r.userId=e.userId),null!=e.account&&(r.account=e.account),null!=e.nickname&&(r.nickname=e.nickname),null!=e.username&&(r.username=e.username),null!=e.avatar&&(r.avatar=e.avatar),null!=e.role&&(r.role=e.role),null!=e.deviceKey&&(r.deviceKey=e.deviceKey),null!=e.muted&&(r.muted=e.muted),null!=e.deviceTag&&(r.deviceTag=e.deviceTag),null!=e.roomId&&(r.roomId=e.roomId),null!=e.black&&(r.black=e.black),null!=e.talkMode&&(r.talkMode=e.talkMode),null!=e.teamname&&(r.teamname=e.teamname),null!=e.noise&&(r.noise=e.noise),null!=e.topic&&(r.topic=e.topic),null!=e.joinTeamId&&(r.joinTeamId=e.joinTeamId),null!=e.fromTeamId&&(r.fromTeamId=e.fromTeamId),null!=e.teamIds&&(r.teamIds=e.teamIds),null!=e.userIds&&(r.userIds=e.userIds),null!=e.joinTime&&(r.joinTime=e.joinTime),r}toObject(){const e={};return null!=this.id&&(e.id=this.id),null!=this.appId&&(e.appId=this.appId),null!=this.v&&(e.v=this.v),null!=this.sort&&(e.sort=this.sort),null!=this.created&&(e.created=this.created),null!=this.modified&&(e.modified=this.modified),null!=this.ids&&(e.ids=this.ids),null!=this.appIds&&(e.appIds=this.appIds),null!=this.remark&&(e.remark=this.remark),null!=this.meta&&(e.meta=this.meta.toObject()),null!=this.userId&&(e.userId=this.userId),null!=this.account&&(e.account=this.account),null!=this.nickname&&(e.nickname=this.nickname),null!=this.username&&(e.username=this.username),null!=this.avatar&&(e.avatar=this.avatar),null!=this.role&&(e.role=this.role),null!=this.deviceKey&&(e.deviceKey=this.deviceKey),null!=this.muted&&(e.muted=this.muted),null!=this.deviceTag&&(e.deviceTag=this.deviceTag),null!=this.roomId&&(e.roomId=this.roomId),null!=this.black&&(e.black=this.black),null!=this.talkMode&&(e.talkMode=this.talkMode),null!=this.teamname&&(e.teamname=this.teamname),null!=this.noise&&(e.noise=this.noise),null!=this.topic&&(e.topic=this.topic),null!=this.joinTeamId&&(e.joinTeamId=this.joinTeamId),null!=this.fromTeamId&&(e.fromTeamId=this.fromTeamId),null!=this.teamIds&&(e.teamIds=this.teamIds),null!=this.userIds&&(e.userIds=this.userIds),null!=this.joinTime&&(e.joinTime=this.joinTime),e}serialize(e){const t=e||new Kt.BinaryWriter;if(0!=this.id&&t.writeInt64(1,this.id),0!=this.appId&&t.writeInt64(2,this.appId),0!=this.v&&t.writeDouble(3,this.v),0!=this.sort&&t.writeInt32(4,this.sort),this.created.length&&t.writeString(5,this.created),this.modified.length&&t.writeString(6,this.modified),this.ids.length&&t.writeRepeatedString(7,this.ids),this.appIds.length&&t.writeRepeatedString(8,this.appIds),this.remark.length&&t.writeString(9,this.remark),this.has_meta&&t.writeMessage(10,this.meta,()=>this.meta.serialize(t)),this.userId.length&&t.writeString(11,this.userId),this.account.length&&t.writeString(12,this.account),this.nickname.length&&t.writeString(13,this.nickname),this.username.length&&t.writeString(14,this.username),this.avatar.length&&t.writeString(15,this.avatar),this.role.length&&t.writeString(16,this.role),this.deviceKey.length&&t.writeString(17,this.deviceKey),0!=this.muted&&t.writeInt32(18,this.muted),this.deviceTag.length&&t.writeString(19,this.deviceTag),0!=this.roomId&&t.writeInt64(20,this.roomId),0!=this.black&&t.writeInt32(21,this.black),0!=this.talkMode&&t.writeInt32(22,this.talkMode),this.teamname.length&&t.writeString(23,this.teamname),0!=this.noise&&t.writeInt32(24,this.noise),this.topic.length&&t.writeString(25,this.topic),0!=this.joinTeamId&&t.writeInt64(26,this.joinTeamId),0!=this.fromTeamId&&t.writeInt64(27,this.fromTeamId),this.teamIds.length&&t.writePackedInt64(28,this.teamIds),this.userIds.length&&t.writePackedInt64(29,this.userIds),this.joinTime.length&&t.writeString(30,this.joinTime),!e)return t.getResultBuffer()}static deserialize(e){const r=e instanceof Kt.BinaryReader?e:new Kt.BinaryReader(e),i=new t;for(;r.nextField()&&!r.isEndGroup();)switch(r.getFieldNumber()){case 1:i.id=r.readInt64();break;case 2:i.appId=r.readInt64();break;case 3:i.v=r.readDouble();break;case 4:i.sort=r.readInt32();break;case 5:i.created=r.readString();break;case 6:i.modified=r.readString();break;case 7:Kt.Message.addToRepeatedField(i,7,r.readString());break;case 8:Kt.Message.addToRepeatedField(i,8,r.readString());break;case 9:i.remark=r.readString();break;case 10:r.readMessage(i.meta,()=>i.meta=Nt.Meta.deserialize(r));break;case 11:i.userId=r.readString();break;case 12:i.account=r.readString();break;case 13:i.nickname=r.readString();break;case 14:i.username=r.readString();break;case 15:i.avatar=r.readString();break;case 16:i.role=r.readString();break;case 17:i.deviceKey=r.readString();break;case 18:i.muted=r.readInt32();break;case 19:i.deviceTag=r.readString();break;case 20:i.roomId=r.readInt64();break;case 21:i.black=r.readInt32();break;case 22:i.talkMode=r.readInt32();break;case 23:i.teamname=r.readString();break;case 24:i.noise=r.readInt32();break;case 25:i.topic=r.readString();break;case 26:i.joinTeamId=r.readInt64();break;case 27:i.fromTeamId=r.readInt64();break;case 28:i.teamIds=r.readPackedInt64();break;case 29:i.userIds=r.readPackedInt64();break;case 30:i.joinTime=r.readString();break;default:r.skipField()}return i}serializeBinary(){return this.serialize()}static deserializeBinary(e){return t.deserialize(e)}}e.TeamContact=t}(Xt||(Xt={})),function(e){class t extends Kt.Message{#e=[];constructor(e){super(),Kt.Message.initialize(this,Array.isArray(e)?e:[],0,-1,[7,8,24],this.#e),Array.isArray(e)||"object"!=typeof e||("id"in e&&null!=e.id&&(this.id=e.id),"appId"in e&&null!=e.appId&&(this.appId=e.appId),"v"in e&&null!=e.v&&(this.v=e.v),"sort"in e&&null!=e.sort&&(this.sort=e.sort),"created"in e&&null!=e.created&&(this.created=e.created),"modified"in e&&null!=e.modified&&(this.modified=e.modified),"ids"in e&&null!=e.ids&&(this.ids=e.ids),"appIds"in e&&null!=e.appIds&&(this.appIds=e.appIds),"remark"in e&&null!=e.remark&&(this.remark=e.remark),"meta"in e&&null!=e.meta&&(this.meta=e.meta),"userId"in e&&null!=e.userId&&(this.userId=e.userId),"teamname"in e&&null!=e.teamname&&(this.teamname=e.teamname),"roomId"in e&&null!=e.roomId&&(this.roomId=e.roomId),"account"in e&&null!=e.account&&(this.account=e.account),"deviceTag"in e&&null!=e.deviceTag&&(this.deviceTag=e.deviceTag),"noise"in e&&null!=e.noise&&(this.noise=e.noise),"deviceKey"in e&&null!=e.deviceKey&&(this.deviceKey=e.deviceKey),"muted"in e&&null!=e.muted&&(this.muted=e.muted),"teamMax"in e&&null!=e.teamMax&&(this.teamMax=e.teamMax),"revoke"in e&&null!=e.revoke&&(this.revoke=e.revoke),"member"in e&&null!=e.member&&(this.member=e.member),"avatar"in e&&null!=e.avatar&&(this.avatar=e.avatar),"talkMode"in e&&null!=e.talkMode&&(this.talkMode=e.talkMode))}get id(){return Kt.Message.getFieldWithDefault(this,1,0)}set id(e){Kt.Message.setField(this,1,e)}get appId(){return Kt.Message.getFieldWithDefault(this,2,0)}set appId(e){Kt.Message.setField(this,2,e)}get v(){return Kt.Message.getFieldWithDefault(this,3,0)}set v(e){Kt.Message.setField(this,3,e)}get sort(){return Kt.Message.getFieldWithDefault(this,4,0)}set sort(e){Kt.Message.setField(this,4,e)}get created(){return Kt.Message.getFieldWithDefault(this,5,"")}set created(e){Kt.Message.setField(this,5,e)}get modified(){return Kt.Message.getFieldWithDefault(this,6,"")}set modified(e){Kt.Message.setField(this,6,e)}get ids(){return Kt.Message.getFieldWithDefault(this,7,[])}set ids(e){Kt.Message.setField(this,7,e)}get appIds(){return Kt.Message.getFieldWithDefault(this,8,[])}set appIds(e){Kt.Message.setField(this,8,e)}get remark(){return Kt.Message.getFieldWithDefault(this,9,"")}set remark(e){Kt.Message.setField(this,9,e)}get meta(){return Kt.Message.getWrapperField(this,Nt.Meta,10)}set meta(e){Kt.Message.setWrapperField(this,10,e)}get has_meta(){return null!=Kt.Message.getField(this,10)}get userId(){return Kt.Message.getFieldWithDefault(this,11,"")}set userId(e){Kt.Message.setField(this,11,e)}get teamname(){return Kt.Message.getFieldWithDefault(this,12,"")}set teamname(e){Kt.Message.setField(this,12,e)}get roomId(){return Kt.Message.getFieldWithDefault(this,13,0)}set roomId(e){Kt.Message.setField(this,13,e)}get account(){return Kt.Message.getFieldWithDefault(this,14,"")}set account(e){Kt.Message.setField(this,14,e)}get deviceTag(){return Kt.Message.getFieldWithDefault(this,16,"")}set deviceTag(e){Kt.Message.setField(this,16,e)}get noise(){return Kt.Message.getFieldWithDefault(this,19,0)}set noise(e){Kt.Message.setField(this,19,e)}get deviceKey(){return Kt.Message.getFieldWithDefault(this,20,"")}set deviceKey(e){Kt.Message.setField(this,20,e)}get muted(){return Kt.Message.getFieldWithDefault(this,21,0)}set muted(e){Kt.Message.setField(this,21,e)}get teamMax(){return Kt.Message.getFieldWithDefault(this,22,0)}set teamMax(e){Kt.Message.setField(this,22,e)}get revoke(){return Kt.Message.getFieldWithDefault(this,23,0)}set revoke(e){Kt.Message.setField(this,23,e)}get member(){return Kt.Message.getRepeatedWrapperField(this,Xt.TeamContact,24)}set member(e){Kt.Message.setRepeatedWrapperField(this,24,e)}get avatar(){return Kt.Message.getFieldWithDefault(this,25,"")}set avatar(e){Kt.Message.setField(this,25,e)}get talkMode(){return Kt.Message.getFieldWithDefault(this,26,0)}set talkMode(e){Kt.Message.setField(this,26,e)}static fromObject(e){const r=new t({});return null!=e.id&&(r.id=e.id),null!=e.appId&&(r.appId=e.appId),null!=e.v&&(r.v=e.v),null!=e.sort&&(r.sort=e.sort),null!=e.created&&(r.created=e.created),null!=e.modified&&(r.modified=e.modified),null!=e.ids&&(r.ids=e.ids),null!=e.appIds&&(r.appIds=e.appIds),null!=e.remark&&(r.remark=e.remark),null!=e.meta&&(r.meta=Nt.Meta.fromObject(e.meta)),null!=e.userId&&(r.userId=e.userId),null!=e.teamname&&(r.teamname=e.teamname),null!=e.roomId&&(r.roomId=e.roomId),null!=e.account&&(r.account=e.account),null!=e.deviceTag&&(r.deviceTag=e.deviceTag),null!=e.noise&&(r.noise=e.noise),null!=e.deviceKey&&(r.deviceKey=e.deviceKey),null!=e.muted&&(r.muted=e.muted),null!=e.teamMax&&(r.teamMax=e.teamMax),null!=e.revoke&&(r.revoke=e.revoke),null!=e.member&&(r.member=e.member.map(e=>Xt.TeamContact.fromObject(e))),null!=e.avatar&&(r.avatar=e.avatar),null!=e.talkMode&&(r.talkMode=e.talkMode),r}toObject(){const e={};return null!=this.id&&(e.id=this.id),null!=this.appId&&(e.appId=this.appId),null!=this.v&&(e.v=this.v),null!=this.sort&&(e.sort=this.sort),null!=this.created&&(e.created=this.created),null!=this.modified&&(e.modified=this.modified),null!=this.ids&&(e.ids=this.ids),null!=this.appIds&&(e.appIds=this.appIds),null!=this.remark&&(e.remark=this.remark),null!=this.meta&&(e.meta=this.meta.toObject()),null!=this.userId&&(e.userId=this.userId),null!=this.teamname&&(e.teamname=this.teamname),null!=this.roomId&&(e.roomId=this.roomId),null!=this.account&&(e.account=this.account),null!=this.deviceTag&&(e.deviceTag=this.deviceTag),null!=this.noise&&(e.noise=this.noise),null!=this.deviceKey&&(e.deviceKey=this.deviceKey),null!=this.muted&&(e.muted=this.muted),null!=this.teamMax&&(e.teamMax=this.teamMax),null!=this.revoke&&(e.revoke=this.revoke),null!=this.member&&(e.member=this.member.map(e=>e.toObject())),null!=this.avatar&&(e.avatar=this.avatar),null!=this.talkMode&&(e.talkMode=this.talkMode),e}serialize(e){const t=e||new Kt.BinaryWriter;if(0!=this.id&&t.writeInt64(1,this.id),0!=this.appId&&t.writeInt64(2,this.appId),0!=this.v&&t.writeDouble(3,this.v),0!=this.sort&&t.writeInt32(4,this.sort),this.created.length&&t.writeString(5,this.created),this.modified.length&&t.writeString(6,this.modified),this.ids.length&&t.writeRepeatedString(7,this.ids),this.appIds.length&&t.writeRepeatedString(8,this.appIds),this.remark.length&&t.writeString(9,this.remark),this.has_meta&&t.writeMessage(10,this.meta,()=>this.meta.serialize(t)),this.userId.length&&t.writeString(11,this.userId),this.teamname.length&&t.writeString(12,this.teamname),0!=this.roomId&&t.writeInt64(13,this.roomId),this.account.length&&t.writeString(14,this.account),this.deviceTag.length&&t.writeString(16,this.deviceTag),0!=this.noise&&t.writeInt32(19,this.noise),this.deviceKey.length&&t.writeString(20,this.deviceKey),0!=this.muted&&t.writeInt32(21,this.muted),0!=this.teamMax&&t.writeInt32(22,this.teamMax),0!=this.revoke&&t.writeInt32(23,this.revoke),this.member.length&&t.writeRepeatedMessage(24,this.member,e=>e.serialize(t)),this.avatar.length&&t.writeString(25,this.avatar),0!=this.talkMode&&t.writeInt32(26,this.talkMode),!e)return t.getResultBuffer()}static deserialize(e){const r=e instanceof Kt.BinaryReader?e:new Kt.BinaryReader(e),i=new t;for(;r.nextField()&&!r.isEndGroup();)switch(r.getFieldNumber()){case 1:i.id=r.readInt64();break;case 2:i.appId=r.readInt64();break;case 3:i.v=r.readDouble();break;case 4:i.sort=r.readInt32();break;case 5:i.created=r.readString();break;case 6:i.modified=r.readString();break;case 7:Kt.Message.addToRepeatedField(i,7,r.readString());break;case 8:Kt.Message.addToRepeatedField(i,8,r.readString());break;case 9:i.remark=r.readString();break;case 10:r.readMessage(i.meta,()=>i.meta=Nt.Meta.deserialize(r));break;case 11:i.userId=r.readString();break;case 12:i.teamname=r.readString();break;case 13:i.roomId=r.readInt64();break;case 14:i.account=r.readString();break;case 16:i.deviceTag=r.readString();break;case 19:i.noise=r.readInt32();break;case 20:i.deviceKey=r.readString();break;case 21:i.muted=r.readInt32();break;case 22:i.teamMax=r.readInt32();break;case 23:i.revoke=r.readInt32();break;case 24:r.readMessage(i.member,()=>Kt.Message.addToRepeatedWrapperField(i,24,Xt.TeamContact.deserialize(r),Xt.TeamContact));break;case 25:i.avatar=r.readString();break;case 26:i.talkMode=r.readInt32();break;default:r.skipField()}return i}serializeBinary(){return this.serialize()}static deserializeBinary(e){return t.deserialize(e)}}e.Teams=t}(Jt||(Jt={}));var ir=r(8287).hp,nr=Jt.Teams,sr=Xt.TeamContact;class ar extends Yt{static instance;client=null;constructor(){super()}static getInstance(){return ar.instance||(ar.instance=new ar),ar.instance}setClient(e){return this.client=e,this}memberList(e){return new Promise((t,r)=>{if(this.checkSocket().length)return void r(new Error(this.checkSocket()));const i=new sr({meta:this.client.meta,fromTeamId:e});let n=[];this.client.socket?.requestStream({data:ir.from(i.serializeBinary().buffer),metadata:this.buildRoute("team.members")},300,{onComplete:()=>{t(n)},onNext:(e,t)=>{try{if(e.data){let t=sr.deserialize(e.data),r=this.buildTeamMember(t);n.push(r)}}catch(e){r(new Error("IO Client Error"))}},onError:e=>{let t=e?.message+"",i=this.onError(t);i.length>0?r(new Error(i)):r(new Error(t))},onExtension(e,t,r){}})})}create(e){return new Promise((t,r)=>{if(this.checkSocket().length)return void r(new Error(this.checkSocket()));const i=new nr({meta:this.client.meta,teamname:e,userId:this.client.meta.userId,deviceKey:this.client.meta.deviceKey,deviceTag:this.client.meta.deviceTag});let n=null;this.client.socket?.requestResponse({data:ir.from(i.serializeBinary().buffer),metadata:this.buildRoute("team.create")},{onComplete:()=>{t(n)},onNext:(e,i)=>{try{if(e.data){let r=nr.deserialize(e.data),s=this.buildTeam(r);n=s,i&&t(n)}}catch(e){r(new Error("IO Client Error"))}},onError:e=>{let t=e?.message+"",i=this.onError(t);i.length>0?r(new Error(i)):r(new Error(t))},onExtension(e,t,r){}})})}getTeam(e){return new Promise((t,r)=>{if(this.checkSocket().length)return void r(new Error(this.checkSocket()));const i=new nr({meta:this.client.meta,id:e});let n=null;this.client.socket?.requestResponse({data:ir.from(i.serializeBinary().buffer),metadata:this.buildRoute("team.byId")},{onComplete:()=>{t(n)},onNext:(e,i)=>{try{if(e.data){let r=nr.deserialize(e.data),s=this.buildTeam(r);n=s,i&&t(n)}}catch(e){r(new Error("IO Client Error"))}},onError:e=>{let t=e?.message+"",i=this.onError(t);i.length>0?r(new Error(i)):r(new Error(t))},onExtension(e,t,r){}})})}join(e){return new Promise((t,r)=>{if(this.checkSocket().length)return void r(new Error(this.checkSocket()));const i=new sr({meta:this.client.meta,fromTeamId:e,userId:this.client.meta.userId,deviceKey:this.client.meta.deviceKey,deviceTag:this.client.meta.deviceTag});let n=null;this.client.socket?.requestResponse({data:ir.from(i.serializeBinary().buffer),metadata:this.buildRoute("team.join")},{onComplete:()=>{t(n)},onNext:(e,i)=>{try{if(e.data){let r=nr.deserialize(e.data),s=this.buildTeam(r);n=s,i&&t(n)}}catch(e){r(new Error("IO Client Error"))}},onError:e=>{let t=e?.message+"",i=this.onError(t);i.length>0?r(new Error(i)):r(new Error(t))},onExtension(e,t,r){}})})}joinInvite(e,t="",r=""){return new Promise((i,n)=>{if(this.checkSocket().length)return void n(new Error(this.checkSocket()));if(t.length<=0&&r.length<=0)return void n(new Error("用户的ID 和 设备Key 必选一组"));const s=new sr({meta:this.client.meta,fromTeamId:e,userId:t,deviceKey:r,deviceTag:"h5"});let a=null;this.client.socket?.requestResponse({data:ir.from(s.serializeBinary().buffer),metadata:this.buildRoute("team.join")},{onComplete:()=>{i(a)},onNext:(e,t)=>{try{if(e.data){let r=nr.deserialize(e.data),n=this.buildTeam(r);a=n,t&&i(a)}}catch(e){n(new Error("IO Client Error"))}},onError:e=>{let t=e?.message+"",r=this.onError(t);r.length>0?n(new Error(r)):n(new Error(t))},onExtension(e,t,r){}})})}disband(e){return new Promise((t,r)=>{if(this.checkSocket().length)return void r(new Error(this.checkSocket()));const i=new sr({meta:this.client.meta,fromTeamId:e});let n=null;this.client.socket?.requestResponse({data:ir.from(i.serializeBinary().buffer),metadata:this.buildRoute("team.disband")},{onComplete:()=>{t(n)},onNext:(e,i)=>{try{if(e.data){let r=nr.deserialize(e.data),s=this.buildTeam(r);n=s,i&&t(n)}}catch(e){r(new Error("IO Client Error"))}},onError:e=>{let t=e?.message+"",i=this.onError(t);i.length>0?r(new Error(i)):r(new Error(t))},onExtension(e,t,r){}})})}regain(e){return new Promise((t,r)=>{if(this.checkSocket().length)return void r(new Error(this.checkSocket()));const i=new sr({meta:this.client.meta,fromTeamId:e});let n=null;this.client.socket?.requestResponse({data:ir.from(i.serializeBinary().buffer),metadata:this.buildRoute("team.regain")},{onComplete:()=>{t(n)},onNext:(e,i)=>{try{if(e.data){let r=nr.deserialize(e.data),s=this.buildTeam(r);n=s,i&&t(n)}}catch(e){r(new Error("IO Client Error"))}},onError:e=>{let t=e?.message+"",i=this.onError(t);i.length>0?r(new Error(i)):r(new Error(t))},onExtension(e,t,r){}})})}teamMuted(e,t){return new Promise((r,i)=>{if(this.checkSocket().length)return void i(new Error(this.checkSocket()));const n=new sr({meta:this.client.meta,fromTeamId:e,muted:t?1:0});let s=null;this.client.socket?.requestResponse({data:ir.from(n.serializeBinary().buffer),metadata:this.buildRoute("team.muted")},{onComplete:()=>{r(s)},onNext:(e,t)=>{try{if(e.data){let i=nr.deserialize(e.data),n=this.buildTeam(i);s=n,t&&r(s)}}catch(e){i(new Error("IO Client Error"))}},onError:e=>{let t=e?.message+"",r=this.onError(t);r.length>0?i(new Error(r)):i(new Error(t))},onExtension(e,t,r){}})})}getMember(e,t="",r=""){return new Promise((i,n)=>{if(this.checkSocket().length)return void n(new Error(this.checkSocket()));if(t.length<=0&&r.length<=0)return void n(new Error("用户的ID 和 设备Key 必选一组"));const s=new sr({meta:this.client.meta,fromTeamId:e,userId:t,deviceKey:r,deviceTag:"h5"});let a=null;this.client.socket?.requestResponse({data:ir.from(s.serializeBinary().buffer),metadata:this.buildRoute("team.member.get")},{onComplete:()=>{i(a)},onNext:(e,t)=>{try{if(e.data){let r=sr.deserialize(e.data),n=this.buildTeamMember(r);a=n,t&&i(a)}}catch(e){n(new Error("IO Client Error"))}},onError:e=>{let t=e?.message+"",r=this.onError(t);r.length>0?n(new Error(r)):n(new Error(t))},onExtension(e,t,r){}})})}onError(e){if(e.indexOf("Jwt")>-1){try{this.client.clientListener?.onTokenExpired()}catch(e){}return"IO Token 已过期"}return e.indexOf("SQL")>-1||e.indexOf("connect")>-1?"IO System Error":e.indexOf("terminal")>-1||e.indexOf("signal")>-1?"请求超时":""}checkSocket(){return this.client?this.client.socket?0==this.client.getTokenAppId()||this.client.getTokenAppId()!=this.client.meta.appId?"token中的AppId 与 IMIOClientOption不一致":"":"IO Client 尚未建立连接":"IO Client 不存在"}}var or=r(8287).hp,lr=Ut.Rooms,ur=zt.Message,cr=Ht.MessageSign,hr=Wt.MessageRemind,dr=jt.Contacts;class pr extends Yt{static instance;client=null;constructor(){super()}static getInstance(){return pr.instance||(pr.instance=new pr),pr.instance}setClient(e){return this.client=e,this}dialogue(e,t,r){return new Promise(async(i,n)=>{if(this.checkSocket().length)return void n(new Error(this.checkSocket()));let s=this.buildMessageProto(t,r);s.appId=e;let a=null;this.client.socket?.requestResponse({data:or.from(s.serializeBinary().buffer),metadata:this.buildRoute("dialogue")},{onComplete:()=>{i(a)},onNext:(e,t)=>{try{if(e.data){let r=ur.deserialize(e.data),n=this.buildMessage(r);a=n,t&&i(a)}}catch(e){n(new Error("IO Client Error"))}},onError:e=>{let t=e?.message+"",r=this.onError(t);r.length>0?n(new Error(r)):n(new Error(t))},onExtension(e,t,r){}})})}oneToOne(e){return new Promise(async(t,r)=>{if(this.checkSocket().length)return void r(new Error(this.checkSocket()));let i=rr.getInstance().setClient(this.client),n=await i.getContactByJoinId(e.joinId);if(!n)return void r(new Error("联系人不存在"));if(n.isGroup)return void r(new Error("联系人是群组"));let s=this.buildMessageProto(n.userId,e),a=null;this.client.socket?.requestResponse({data:or.from(s.serializeBinary().buffer),metadata:this.buildRoute("oneToOne")},{onComplete:()=>{t(a)},onNext:(e,i)=>{try{if(e.data){let r=ur.deserialize(e.data),n=this.buildMessage(r);a=n,i&&t(a)}}catch(e){r(new Error("IO Client Error"))}},onError:e=>{let t=e?.message+"",i=this.onError(t);i.length>0?r(new Error(i)):r(new Error(t))},onExtension(e,t,r){}})})}oneToMany(e){return new Promise(async(t,r)=>{if(this.checkSocket().length)return void r(new Error(this.checkSocket()));let i=rr.getInstance().setClient(this.client),n=await i.getContactByJoinId(e.joinId);if(!n)return void r(new Error("联系人不存在"));if(!n.isGroup)return void r(new Error("联系人不是群组"));let s=this.buildMessageProto("",e),a=null;this.client.socket?.requestResponse({data:or.from(s.serializeBinary().buffer),metadata:this.buildRoute("oneToMany")},{onComplete:()=>{t(a)},onNext:(e,i)=>{try{if(e.data){let r=ur.deserialize(e.data),n=this.buildMessage(r);a=n,i&&t(a)}}catch(e){r(new Error("IO Client Error"))}},onError:e=>{let t=e?.message+"",i=this.onError(t);i.length>0?r(new Error(i)):r(new Error(t))},onExtension(e,t,r){}})})}sendToTeam(e){return new Promise(async(t,r)=>{if(this.checkSocket().length)return void r(new Error(this.checkSocket()));let i=this.buildMessageProto("",e),n=null;this.client.socket?.requestResponse({data:or.from(i.serializeBinary().buffer),metadata:this.buildRoute("oneToTeam")},{onComplete:()=>{t(n)},onNext:(e,i)=>{try{if(e.data){let r=ur.deserialize(e.data),s=this.buildMessage(r);n=s,i&&t(n)}}catch(e){r(new Error("IO Client Error"))}},onError:e=>{let t=e?.message+"",i=this.onError(t);i.length>0?r(new Error(i)):r(new Error(t))},onExtension(e,t,r){}})})}signMessage(e,t){return new Promise(async(r,i)=>{if(this.checkSocket().length)return void i(new Error(this.checkSocket()));let n=new cr({meta:this.client.meta,messageId:e,roomId:t,destId:this.client.meta.userId,deviceTag:"h5",deviceKey:this.client?.getDeviceKey()});this.client.socket?.requestResponse({data:or.from(n.serializeBinary().buffer),metadata:this.buildRoute("message.sign")},{onComplete:()=>{r("")},onNext:(e,t)=>{try{t&&r("")}catch(e){i(new Error("IO Client Error"))}},onError:e=>{let t=e?.message+"",r=this.onError(t);r.length>0?i(new Error(r)):i(new Error(t))},onExtension(e,t,r){}})})}readMessage(e,t){return new Promise(async(r,i)=>{if(this.checkSocket().length)return void i(new Error(this.checkSocket()));let n=new cr({meta:this.client.meta,messageId:e,roomId:t,destId:this.client.meta.userId});this.client.socket?.requestResponse({data:or.from(n.serializeBinary().buffer),metadata:this.buildRoute("message.read")},{onComplete:()=>{r("")},onNext:(e,t)=>{try{t&&r("")}catch(e){i(new Error("IO Client Error"))}},onError:e=>{let t=e?.message+"",r=this.onError(t);r.length>0?i(new Error(r)):i(new Error(t))},onExtension(e,t,r){}})})}deleteMessage(e,t){return new Promise(async(r,i)=>{if(this.checkSocket().length)return void i(new Error(this.checkSocket()));let n=new cr({meta:this.client.meta,messageId:e,roomId:t});this.client.socket?.requestResponse({data:or.from(n.serializeBinary().buffer),metadata:this.buildRoute("message.revoke")},{onComplete:()=>{r("")},onNext:(e,t)=>{try{t&&r("")}catch(e){i(new Error("IO Client Error"))}},onError:e=>{let t=e?.message+"",r=this.onError(t);r.length>0?i(new Error(r)):i(new Error(t))},onExtension(e,t,r){}})})}getMessageList(e,t=1,r=40){return new Promise(async(i,n)=>{if(this.checkSocket().length)return void n(new Error(this.checkSocket()));let s=rr.getInstance().setClient(this.client),a=await s.getContactByJoinId(e);if(!a)return void n(new Error("联系人不存在"));this.client.meta.page=t,this.client.meta.pageSize=r;const o=new ur({meta:this.client.meta,roomId:a.joinId,created:a.joinTime});let l=[];this.client.socket?.requestStream({data:or.from(o.serializeBinary().buffer),metadata:this.buildRoute("message.page")},500,{onComplete:()=>{i(l)},onNext:(e,t)=>{try{if(e.data){let t=ur.deserialize(e.data),r=this.buildMessage(t);l.push(r)}}catch(e){n(new Error("IO Client Error"))}},onError:e=>{let t=e?.message+"",r=this.onError(t);r.length>0?n(new Error(r)):n(new Error(t))},onExtension(e,t,r){}})})}teamMessageList(e,t=1,r=40){return new Promise(async(i,n)=>{if(this.checkSocket().length)return void n(new Error(this.checkSocket()));let s=ar.getInstance().setClient(this.client),a=await s.getMember(e,this.client.meta.userId,this.client.meta.deviceKey);if(!a)return void n(new Error("您不在小队中"));this.client.meta.page=t,this.client.meta.pageSize=r;const o=new ur({meta:this.client.meta,roomId:e,created:a.joinTime});let l=[];this.client.socket?.requestStream({data:or.from(o.serializeBinary().buffer),metadata:this.buildRoute("message.team.page")},500,{onComplete:()=>{i(l)},onNext:(e,t)=>{try{if(e.data){let t=ur.deserialize(e.data),r=this.buildMessage(t);l.push(r)}}catch(e){n(new Error("IO Client Error"))}},onError:e=>{let t=e?.message+"",r=this.onError(t);r.length>0?n(new Error(r)):n(new Error(t))},onExtension(e,t,r){}})})}teamMessageById(e,t){return new Promise(async(r,i)=>{if(this.checkSocket().length)return void i(new Error(this.checkSocket()));const n=new ur({meta:this.client.meta,roomId:e,messageId:t});let s=null;this.client.socket?.requestResponse({data:or.from(n.serializeBinary().buffer),metadata:this.buildRoute("message.team.byId")},{onComplete:()=>{r(s)},onNext:(e,t)=>{try{if(e.data){let i=ur.deserialize(e.data),n=this.buildMessage(i);s=n,t&&r(s)}}catch(e){i(new Error("IO Client Error"))}},onError:e=>{let t=e?.message+"",r=this.onError(t);r.length>0?i(new Error(r)):i(new Error(t))},onExtension(e,t,r){}})})}createDialogue(e,t){return new Promise(async(r,i)=>{if(this.checkSocket().length)return void i(new Error(this.checkSocket()));const n=new dr({meta:this.client.meta,userId:e,joinRoomId:t});let s=null;this.client.socket?.requestResponse({data:or.from(n.serializeBinary().buffer),metadata:this.buildRoute("dialogue.create")},{onComplete:()=>{r(s)},onNext:(e,t)=>{try{if(e.data){let i=lr.deserialize(e.data),n=this.buildGroup(i);s=n,t&&r(s)}}catch(e){i(new Error("IO Client Error"))}},onError:e=>{let t=e?.message+"",r=this.onError(t);r.length>0?i(new Error(r)):i(new Error(t))},onExtension(e,t,r){}})})}senderBuildMessage(e){let t=new h;if(t.messageId=e.messageId,t.joinId=e.joinId,t.cite=e.cite,t.type=e.type,t.title=e.title,t.subtitle=e.subtitle,t.text=e.text,t.secret=e.secret,t.thumb=e.thumb,t.host=e.host,t.url=e.url,t.lng=e.lng,t.lat=e.lat,t.size=e.size,t.length=e.length,e.hintList&&e.hintList.length){t.hintList=[];for(let r of e.hintList){let e=new h;e.destId=r.targetId,e.destName=r.targetName,t.hintList.push(e)}}if(e.notifyList&&e.notifyList.length){t.notifyList=[];for(let r of e.notifyList){let e=new h;e.destId=r.targetId,e.destName=r.targetName,t.notifyList.push(e)}}if(e.quietlyList&&e.quietlyList.length){t.quietlyList=[];for(let r of e.quietlyList){let e=new h;e.destId=r.targetId,e.destName=r.targetName,t.quietlyList.push(e)}}return t}buildMessageProto(e,t){let r=[],i=[];if(t.notifyList&&t.notifyList.length)for(let e of t.notifyList){let t=new hr({sort:1,destId:e.targetId,nickname:e.targetName});r.push(t)}if(t.quietlyList&&t.quietlyList.length)for(let e of t.quietlyList){let t=new hr({sort:2,destId:e.targetId,nickname:e.targetName});r.push(t)}if(t.hintList&&t.hintList.length)for(let e of t.hintList){let t=new hr({sort:0,destId:e.targetId,nickname:e.targetName});i.push(t)}return new ur({meta:this.client?.meta,messageId:t.messageId,roomId:t.joinId,fromId:this.client?.meta?.userId,fromName:this.client?.meta?.nickname,destId:e,subtype:this.messageType(t.type),title:t.title,subtitle:t.subtitle,text:t.text,secret:t.secret,thumb:t.thumb,host:t.host,url:t.url,lng:t.lng,lat:t.lat,size:t.size,length:t.length,cc:r,remind:i,cite:t.cite})}messageType(e){switch(e){case"txt":return 1;case"img":return 2;case"audio":return 3;case"video":return 4;case"file":return 5;case"loc":return 6;case"wallet":return 9;case"custom":return 7}return 1}onError(e){if(e.indexOf("Jwt")>-1){try{this.client.clientListener?.onTokenExpired()}catch(e){}return"IO Token 已过期"}return e.indexOf("SQL")>-1||e.indexOf("connect")>-1?"IO System Error":e.indexOf("terminal")>-1||e.indexOf("signal")>-1?"请求超时":""}checkSocket(){return this.client?this.client.socket?0==this.client.getTokenAppId()||this.client.getTokenAppId()!=this.client.meta.appId?"token中的AppId 与 IMIOClientOption不一致":"":"IO Client 尚未建立连接":"IO Client 不存在"}}var fr=function(){return fr=Object.assign||function(e){for(var t,r=1,i=arguments.length;r<i;r++)for(var n in t=arguments[r])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},fr.apply(this,arguments)};function gr(e,t,r,i){return new(r||(r=Promise))(function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(a,o)}l((i=i.apply(e,t||[])).next())})}function mr(e,t){var r,i,n,s={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=o(0),a.throw=o(1),a.return=o(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function o(o){return function(l){return function(o){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,o[0]&&(s=0)),s;)try{if(r=1,i&&(n=2&o[0]?i.return:o[0]?i.throw||((n=i.return)&&n.call(i),0):i.next)&&!(n=n.call(i,o[1])).done)return n;switch(i=0,n&&(o=[2&o[0],n.value]),o[0]){case 0:case 1:n=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,i=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!((n=(n=s.trys).length>0&&n[n.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!n||o[1]>n[0]&&o[1]<n[3])){s.label=o[1];break}if(6===o[0]&&s.label<n[1]){s.label=n[1],n=o;break}if(n&&s.label<n[2]){s.label=n[2],s.ops.push(o);break}n[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(e){o=[6,e],i=0}finally{r=n=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,l])}}}function yr(e,t,r){if(r||2===arguments.length)for(var i,n=0,s=t.length;n<s;n++)!i&&n in t||(i||(i=Array.prototype.slice.call(t,0,n)),i[n]=t[n]);return e.concat(i||Array.prototype.slice.call(t))}Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError;var vr="3.4.2";function br(e,t){return new Promise(function(r){return setTimeout(r,e,t)})}function Ir(e){return!!e&&"function"==typeof e.then}function wr(e,t){try{var r=e();Ir(r)?r.then(function(e){return t(!0,e)},function(e){return t(!1,e)}):t(!0,r)}catch(e){t(!1,e)}}function Er(e,t,r){return void 0===r&&(r=16),gr(this,void 0,void 0,function(){var i,n,s,a;return mr(this,function(o){switch(o.label){case 0:i=Array(e.length),n=Date.now(),s=0,o.label=1;case 1:return s<e.length?(i[s]=t(e[s],s),(a=Date.now())>=n+r?(n=a,[4,br(0)]):[3,3]):[3,4];case 2:o.sent(),o.label=3;case 3:return++s,[3,1];case 4:return[2,i]}})})}function kr(e){e.then(void 0,function(){})}function Sr(e,t){e=[e[0]>>>16,65535&e[0],e[1]>>>16,65535&e[1]],t=[t[0]>>>16,65535&t[0],t[1]>>>16,65535&t[1]];var r=[0,0,0,0];return r[3]+=e[3]+t[3],r[2]+=r[3]>>>16,r[3]&=65535,r[2]+=e[2]+t[2],r[1]+=r[2]>>>16,r[2]&=65535,r[1]+=e[1]+t[1],r[0]+=r[1]>>>16,r[1]&=65535,r[0]+=e[0]+t[0],r[0]&=65535,[r[0]<<16|r[1],r[2]<<16|r[3]]}function Mr(e,t){e=[e[0]>>>16,65535&e[0],e[1]>>>16,65535&e[1]],t=[t[0]>>>16,65535&t[0],t[1]>>>16,65535&t[1]];var r=[0,0,0,0];return r[3]+=e[3]*t[3],r[2]+=r[3]>>>16,r[3]&=65535,r[2]+=e[2]*t[3],r[1]+=r[2]>>>16,r[2]&=65535,r[2]+=e[3]*t[2],r[1]+=r[2]>>>16,r[2]&=65535,r[1]+=e[1]*t[3],r[0]+=r[1]>>>16,r[1]&=65535,r[1]+=e[2]*t[2],r[0]+=r[1]>>>16,r[1]&=65535,r[1]+=e[3]*t[1],r[0]+=r[1]>>>16,r[1]&=65535,r[0]+=e[0]*t[3]+e[1]*t[2]+e[2]*t[1]+e[3]*t[0],r[0]&=65535,[r[0]<<16|r[1],r[2]<<16|r[3]]}function Fr(e,t){return 32==(t%=64)?[e[1],e[0]]:t<32?[e[0]<<t|e[1]>>>32-t,e[1]<<t|e[0]>>>32-t]:(t-=32,[e[1]<<t|e[0]>>>32-t,e[0]<<t|e[1]>>>32-t])}function Tr(e,t){return 0==(t%=64)?e:t<32?[e[0]<<t|e[1]>>>32-t,e[1]<<t]:[e[1]<<t-32,0]}function Rr(e,t){return[e[0]^t[0],e[1]^t[1]]}function Ar(e){return e=Rr(e,[0,e[0]>>>1]),e=Rr(e=Mr(e,[4283543511,3981806797]),[0,e[0]>>>1]),Rr(e=Mr(e,[3301882366,444984403]),[0,e[0]>>>1])}function _r(e){return parseInt(e)}function Or(e){return parseFloat(e)}function Cr(e,t){return"number"==typeof e&&isNaN(e)?t:e}function xr(e){return e.reduce(function(e,t){return e+(t?1:0)},0)}function Nr(e,t){if(void 0===t&&(t=1),Math.abs(t)>=1)return Math.round(e/t)*t;var r=1/t;return Math.round(e*r)/r}function Dr(e){return e&&"object"==typeof e&&"message"in e?e:{message:e}}function Pr(e,t,r){var i=Object.keys(e).filter(function(e){return!function(e,t){for(var r=0,i=e.length;r<i;++r)if(e[r]===t)return!0;return!1}(r,e)}),n=Er(i,function(r){return function(e,t){var r=new Promise(function(r){var i=Date.now();wr(e.bind(null,t),function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=Date.now()-i;if(!e[0])return r(function(){return{error:Dr(e[1]),duration:n}});var s=e[1];if(function(e){return"function"!=typeof e}(s))return r(function(){return{value:s,duration:n}});r(function(){return new Promise(function(e){var t=Date.now();wr(s,function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var s=n+Date.now()-t;if(!r[0])return e({error:Dr(r[1]),duration:s});e({value:r[1],duration:s})})})})})});return kr(r),function(){return r.then(function(e){return e()})}}(e[r],t)});return kr(n),function(){return gr(this,void 0,void 0,function(){var e,t,r,s;return mr(this,function(a){switch(a.label){case 0:return[4,n];case 1:return[4,Er(a.sent(),function(e){var t=e();return kr(t),t})];case 2:return e=a.sent(),[4,Promise.all(e)];case 3:for(t=a.sent(),r={},s=0;s<i.length;++s)r[i[s]]=t[s];return[2,r]}})})}}function Lr(){var e=window,t=navigator;return xr(["MSCSSMatrix"in e,"msSetImmediate"in e,"msIndexedDB"in e,"msMaxTouchPoints"in t,"msPointerEnabled"in t])>=4}function Br(){var e=window,t=navigator;return xr(["webkitPersistentStorage"in t,"webkitTemporaryStorage"in t,0===t.vendor.indexOf("Google"),"webkitResolveLocalFileSystemURL"in e,"BatteryManager"in e,"webkitMediaStream"in e,"webkitSpeechGrammar"in e])>=5}function jr(){var e=window,t=navigator;return xr(["ApplePayError"in e,"CSSPrimitiveValue"in e,"Counter"in e,0===t.vendor.indexOf("Apple"),"getStorageUpdates"in t,"WebKitMediaKeys"in e])>=4}function Ur(){var e=window;return xr(["safari"in e,!("DeviceMotionEvent"in e),!("ongestureend"in e),!("standalone"in navigator)])>=3}function Wr(){var e=document;return(e.exitFullscreen||e.msExitFullscreen||e.mozCancelFullScreen||e.webkitExitFullscreen).call(e)}function zr(){var e=Br(),t=function(){var e,t,r=window;return xr(["buildID"in navigator,"MozAppearance"in(null!==(t=null===(e=document.documentElement)||void 0===e?void 0:e.style)&&void 0!==t?t:{}),"onmozfullscreenchange"in r,"mozInnerScreenX"in r,"CSSMozDocumentRule"in r,"CanvasCaptureMediaStream"in r])>=4}();if(!e&&!t)return!1;var r=window;return xr(["onorientationchange"in r,"orientation"in r,e&&!("SharedWorker"in r),t&&/android/i.test(navigator.appVersion)])>=2}function Hr(e){var t=new Error(e);return t.name=e,t}function Kr(e,t,r){var i,n,s;return void 0===r&&(r=50),gr(this,void 0,void 0,function(){var a,o;return mr(this,function(l){switch(l.label){case 0:a=document,l.label=1;case 1:return a.body?[3,3]:[4,br(r)];case 2:return l.sent(),[3,1];case 3:o=a.createElement("iframe"),l.label=4;case 4:return l.trys.push([4,,10,11]),[4,new Promise(function(e,r){var i=!1,n=function(){i=!0,e()};o.onload=n,o.onerror=function(e){i=!0,r(e)};var s=o.style;s.setProperty("display","block","important"),s.position="absolute",s.top="0",s.left="0",s.visibility="hidden",t&&"srcdoc"in o?o.srcdoc=t:o.src="about:blank",a.body.appendChild(o);var l=function(){var e,t;i||("complete"===(null===(t=null===(e=o.contentWindow)||void 0===e?void 0:e.document)||void 0===t?void 0:t.readyState)?n():setTimeout(l,10))};l()})];case 5:l.sent(),l.label=6;case 6:return(null===(n=null===(i=o.contentWindow)||void 0===i?void 0:i.document)||void 0===n?void 0:n.body)?[3,8]:[4,br(r)];case 7:return l.sent(),[3,6];case 8:return[4,e(o,o.contentWindow)];case 9:return[2,l.sent()];case 10:return null===(s=o.parentNode)||void 0===s||s.removeChild(o),[7];case 11:return[2]}})})}function Gr(e){for(var t=function(e){for(var t,r,i="Unexpected syntax '".concat(e,"'"),n=/^\s*([a-z-]*)(.*)$/i.exec(e),s=n[1]||void 0,a={},o=/([.:#][\w-]+|\[.+?\])/gi,l=function(e,t){a[e]=a[e]||[],a[e].push(t)};;){var u=o.exec(n[2]);if(!u)break;var c=u[0];switch(c[0]){case".":l("class",c.slice(1));break;case"#":l("id",c.slice(1));break;case"[":var h=/^\[([\w-]+)([~|^$*]?=("(.*?)"|([\w-]+)))?(\s+[is])?\]$/.exec(c);if(!h)throw new Error(i);l(h[1],null!==(r=null!==(t=h[4])&&void 0!==t?t:h[5])&&void 0!==r?r:"");break;default:throw new Error(i)}}return[s,a]}(e),r=t[0],i=t[1],n=document.createElement(null!=r?r:"div"),s=0,a=Object.keys(i);s<a.length;s++){var o=a[s],l=i[o].join(" ");"style"===o?qr(n.style,l):n.setAttribute(o,l)}return n}function qr(e,t){for(var r=0,i=t.split(";");r<i.length;r++){var n=i[r],s=/^\s*([\w-]+)\s*:\s*(.+?)(\s*!([\w-]+))?\s*$/.exec(n);if(s){var a=s[1],o=s[2],l=s[4];e.setProperty(a,o,l||"")}}}var Vr,Yr,Xr=["monospace","sans-serif","serif"],Jr=["sans-serif-thin","ARNO PRO","Agency FB","Arabic Typesetting","Arial Unicode MS","AvantGarde Bk BT","BankGothic Md BT","Batang","Bitstream Vera Sans Mono","Calibri","Century","Century Gothic","Clarendon","EUROSTILE","Franklin Gothic","Futura Bk BT","Futura Md BT","GOTHAM","Gill Sans","HELV","Haettenschweiler","Helvetica Neue","Humanst521 BT","Leelawadee","Letter Gothic","Levenim MT","Lucida Bright","Lucida Sans","Menlo","MS Mincho","MS Outlook","MS Reference Specialty","MS UI Gothic","MT Extra","MYRIAD PRO","Marlett","Meiryo UI","Microsoft Uighur","Minion Pro","Monotype Corsiva","PMingLiU","Pristina","SCRIPTINA","Segoe UI Light","Serifa","SimHei","Small Fonts","Staccato222 BT","TRAJAN PRO","Univers CE 55 Medium","Vrinda","ZWAdobeF"];function Zr(e){return e.toDataURL()}function Qr(){var e=screen;return[Cr(Or(e.availTop),null),Cr(Or(e.width)-Or(e.availWidth)-Cr(Or(e.availLeft),0),null),Cr(Or(e.height)-Or(e.availHeight)-Cr(Or(e.availTop),0),null),Cr(Or(e.availLeft),null)]}function $r(e){for(var t=0;t<4;++t)if(e[t])return!1;return!0}function ei(e){var t;return gr(this,void 0,void 0,function(){var r,i,n,s,a,o,l;return mr(this,function(u){switch(u.label){case 0:for(r=document,i=r.createElement("div"),n=new Array(e.length),s={},ti(i),l=0;l<e.length;++l)"DIALOG"===(a=Gr(e[l])).tagName&&a.show(),ti(o=r.createElement("div")),o.appendChild(a),i.appendChild(o),n[l]=a;u.label=1;case 1:return r.body?[3,3]:[4,br(50)];case 2:return u.sent(),[3,1];case 3:r.body.appendChild(i);try{for(l=0;l<e.length;++l)n[l].offsetParent||(s[e[l]]=!0)}finally{null===(t=i.parentNode)||void 0===t||t.removeChild(i)}return[2,s]}})})}function ti(e){e.style.setProperty("display","block","important")}function ri(e){return matchMedia("(inverted-colors: ".concat(e,")")).matches}function ii(e){return matchMedia("(forced-colors: ".concat(e,")")).matches}function ni(e){return matchMedia("(prefers-contrast: ".concat(e,")")).matches}function si(e){return matchMedia("(prefers-reduced-motion: ".concat(e,")")).matches}function ai(e){return matchMedia("(dynamic-range: ".concat(e,")")).matches}var oi=Math,li=function(){return 0},ui={default:[],apple:[{font:"-apple-system-body"}],serif:[{fontFamily:"serif"}],sans:[{fontFamily:"sans-serif"}],mono:[{fontFamily:"monospace"}],min:[{fontSize:"1px"}],system:[{fontFamily:"system-ui"}]},ci={fonts:function(){return Kr(function(e,t){var r=t.document,i=r.body;i.style.fontSize="48px";var n=r.createElement("div"),s={},a={},o=function(e){var t=r.createElement("span"),i=t.style;return i.position="absolute",i.top="0",i.left="0",i.fontFamily=e,t.textContent="mmMwWLliI0O&1",n.appendChild(t),t},l=Xr.map(o),u=function(){for(var e={},t=function(t){e[t]=Xr.map(function(e){return function(e,t){return o("'".concat(e,"',").concat(t))}(t,e)})},r=0,i=Jr;r<i.length;r++)t(i[r]);return e}();i.appendChild(n);for(var c=0;c<Xr.length;c++)s[Xr[c]]=l[c].offsetWidth,a[Xr[c]]=l[c].offsetHeight;return Jr.filter(function(e){return t=u[e],Xr.some(function(e,r){return t[r].offsetWidth!==s[e]||t[r].offsetHeight!==a[e]});var t})})},domBlockers:function(e){var t=(void 0===e?{}:e).debug;return gr(this,void 0,void 0,function(){var e,r,i,n,s;return mr(this,function(a){switch(a.label){case 0:return jr()||zr()?(o=atob,e={abpIndo:["#Iklan-Melayang","#Kolom-Iklan-728","#SidebarIklan-wrapper",'[title="ALIENBOLA" i]',o("I0JveC1CYW5uZXItYWRz")],abpvn:[".quangcao","#mobileCatfish",o("LmNsb3NlLWFkcw=="),'[id^="bn_bottom_fixed_"]',"#pmadv"],adBlockFinland:[".mainostila",o("LnNwb25zb3JpdA=="),".ylamainos",o("YVtocmVmKj0iL2NsaWNrdGhyZ2guYXNwPyJd"),o("YVtocmVmXj0iaHR0cHM6Ly9hcHAucmVhZHBlYWsuY29tL2FkcyJd")],adBlockPersian:["#navbar_notice_50",".kadr",'TABLE[width="140px"]',"#divAgahi",o("YVtocmVmXj0iaHR0cDovL2cxLnYuZndtcm0ubmV0L2FkLyJd")],adBlockWarningRemoval:["#adblock-honeypot",".adblocker-root",".wp_adblock_detect",o("LmhlYWRlci1ibG9ja2VkLWFk"),o("I2FkX2Jsb2NrZXI=")],adGuardAnnoyances:[".hs-sosyal","#cookieconsentdiv",'div[class^="app_gdpr"]',".as-oil",'[data-cypress="soft-push-notification-modal"]'],adGuardBase:[".BetterJsPopOverlay",o("I2FkXzMwMFgyNTA="),o("I2Jhbm5lcmZsb2F0MjI="),o("I2NhbXBhaWduLWJhbm5lcg=="),o("I0FkLUNvbnRlbnQ=")],adGuardChinese:[o("LlppX2FkX2FfSA=="),o("YVtocmVmKj0iLmh0aGJldDM0LmNvbSJd"),"#widget-quan",o("YVtocmVmKj0iLzg0OTkyMDIwLnh5eiJd"),o("YVtocmVmKj0iLjE5NTZobC5jb20vIl0=")],adGuardFrench:["#pavePub",o("LmFkLWRlc2t0b3AtcmVjdGFuZ2xl"),".mobile_adhesion",".widgetadv",o("LmFkc19iYW4=")],adGuardGerman:['aside[data-portal-id="leaderboard"]'],adGuardJapanese:["#kauli_yad_1",o("YVtocmVmXj0iaHR0cDovL2FkMi50cmFmZmljZ2F0ZS5uZXQvIl0="),o("Ll9wb3BJbl9pbmZpbml0ZV9hZA=="),o("LmFkZ29vZ2xl"),o("Ll9faXNib29zdFJldHVybkFk")],adGuardMobile:[o("YW1wLWF1dG8tYWRz"),o("LmFtcF9hZA=="),'amp-embed[type="24smi"]',"#mgid_iframe1",o("I2FkX2ludmlld19hcmVh")],adGuardRussian:[o("YVtocmVmXj0iaHR0cHM6Ly9hZC5sZXRtZWFkcy5jb20vIl0="),o("LnJlY2xhbWE="),'div[id^="smi2adblock"]',o("ZGl2W2lkXj0iQWRGb3hfYmFubmVyXyJd"),"#psyduckpockeball"],adGuardSocial:[o("YVtocmVmXj0iLy93d3cuc3R1bWJsZXVwb24uY29tL3N1Ym1pdD91cmw9Il0="),o("YVtocmVmXj0iLy90ZWxlZ3JhbS5tZS9zaGFyZS91cmw/Il0="),".etsy-tweet","#inlineShare",".popup-social"],adGuardSpanishPortuguese:["#barraPublicidade","#Publicidade","#publiEspecial","#queTooltip",".cnt-publi"],adGuardTrackingProtection:["#qoo-counter",o("YVtocmVmXj0iaHR0cDovL2NsaWNrLmhvdGxvZy5ydS8iXQ=="),o("YVtocmVmXj0iaHR0cDovL2hpdGNvdW50ZXIucnUvdG9wL3N0YXQucGhwIl0="),o("YVtocmVmXj0iaHR0cDovL3RvcC5tYWlsLnJ1L2p1bXAiXQ=="),"#top100counter"],adGuardTurkish:["#backkapat",o("I3Jla2xhbWk="),o("YVtocmVmXj0iaHR0cDovL2Fkc2Vydi5vbnRlay5jb20udHIvIl0="),o("YVtocmVmXj0iaHR0cDovL2l6bGVuemkuY29tL2NhbXBhaWduLyJd"),o("YVtocmVmXj0iaHR0cDovL3d3dy5pbnN0YWxsYWRzLm5ldC8iXQ==")],bulgarian:[o("dGQjZnJlZW5ldF90YWJsZV9hZHM="),"#ea_intext_div",".lapni-pop-over","#xenium_hot_offers"],easyList:[".yb-floorad",o("LndpZGdldF9wb19hZHNfd2lkZ2V0"),o("LnRyYWZmaWNqdW5reS1hZA=="),".textad_headline",o("LnNwb25zb3JlZC10ZXh0LWxpbmtz")],easyListChina:[o("LmFwcGd1aWRlLXdyYXBbb25jbGljayo9ImJjZWJvcy5jb20iXQ=="),o("LmZyb250cGFnZUFkdk0="),"#taotaole","#aafoot.top_box",".cfa_popup"],easyListCookie:[".ezmob-footer",".cc-CookieWarning","[data-cookie-number]",o("LmF3LWNvb2tpZS1iYW5uZXI="),".sygnal24-gdpr-modal-wrap"],easyListCzechSlovak:["#onlajny-stickers",o("I3Jla2xhbW5pLWJveA=="),o("LnJla2xhbWEtbWVnYWJvYXJk"),".sklik",o("W2lkXj0ic2tsaWtSZWtsYW1hIl0=")],easyListDutch:[o("I2FkdmVydGVudGll"),o("I3ZpcEFkbWFya3RCYW5uZXJCbG9jaw=="),".adstekst",o("YVtocmVmXj0iaHR0cHM6Ly94bHR1YmUubmwvY2xpY2svIl0="),"#semilo-lrectangle"],easyListGermany:["#SSpotIMPopSlider",o("LnNwb25zb3JsaW5rZ3J1ZW4="),o("I3dlcmJ1bmdza3k="),o("I3Jla2xhbWUtcmVjaHRzLW1pdHRl"),o("YVtocmVmXj0iaHR0cHM6Ly9iZDc0Mi5jb20vIl0=")],easyListItaly:[o("LmJveF9hZHZfYW5udW5jaQ=="),".sb-box-pubbliredazionale",o("YVtocmVmXj0iaHR0cDovL2FmZmlsaWF6aW9uaWFkcy5zbmFpLml0LyJd"),o("YVtocmVmXj0iaHR0cHM6Ly9hZHNlcnZlci5odG1sLml0LyJd"),o("YVtocmVmXj0iaHR0cHM6Ly9hZmZpbGlhemlvbmlhZHMuc25haS5pdC8iXQ==")],easyListLithuania:[o("LnJla2xhbW9zX3RhcnBhcw=="),o("LnJla2xhbW9zX251b3JvZG9z"),o("aW1nW2FsdD0iUmVrbGFtaW5pcyBza3lkZWxpcyJd"),o("aW1nW2FsdD0iRGVkaWt1b3RpLmx0IHNlcnZlcmlhaSJd"),o("aW1nW2FsdD0iSG9zdGluZ2FzIFNlcnZlcmlhaS5sdCJd")],estonian:[o("QVtocmVmKj0iaHR0cDovL3BheTRyZXN1bHRzMjQuZXUiXQ==")],fanboyAnnoyances:["#ac-lre-player",".navigate-to-top","#subscribe_popup",".newsletter_holder","#back-top"],fanboyAntiFacebook:[".util-bar-module-firefly-visible"],fanboyEnhancedTrackers:[".open.pushModal","#issuem-leaky-paywall-articles-zero-remaining-nag","#sovrn_container",'div[class$="-hide"][zoompage-fontsize][style="display: block;"]',".BlockNag__Card"],fanboySocial:["#FollowUs","#meteored_share","#social_follow",".article-sharer",".community__social-desc"],frellwitSwedish:[o("YVtocmVmKj0iY2FzaW5vcHJvLnNlIl1bdGFyZ2V0PSJfYmxhbmsiXQ=="),o("YVtocmVmKj0iZG9rdG9yLXNlLm9uZWxpbmsubWUiXQ=="),"article.category-samarbete",o("ZGl2LmhvbGlkQWRz"),"ul.adsmodern"],greekAdBlock:[o("QVtocmVmKj0iYWRtYW4ub3RlbmV0LmdyL2NsaWNrPyJd"),o("QVtocmVmKj0iaHR0cDovL2F4aWFiYW5uZXJzLmV4b2R1cy5nci8iXQ=="),o("QVtocmVmKj0iaHR0cDovL2ludGVyYWN0aXZlLmZvcnRobmV0LmdyL2NsaWNrPyJd"),"DIV.agores300","TABLE.advright"],hungarian:["#cemp_doboz",".optimonk-iframe-container",o("LmFkX19tYWlu"),o("W2NsYXNzKj0iR29vZ2xlQWRzIl0="),"#hirdetesek_box"],iDontCareAboutCookies:['.alert-info[data-block-track*="CookieNotice"]',".ModuleTemplateCookieIndicator",".o--cookies--container","#cookies-policy-sticky","#stickyCookieBar"],icelandicAbp:[o("QVtocmVmXj0iL2ZyYW1ld29yay9yZXNvdXJjZXMvZm9ybXMvYWRzLmFzcHgiXQ==")],latvian:[o("YVtocmVmPSJodHRwOi8vd3d3LnNhbGlkemluaS5sdi8iXVtzdHlsZT0iZGlzcGxheTogYmxvY2s7IHdpZHRoOiAxMjBweDsgaGVpZ2h0OiA0MHB4OyBvdmVyZmxvdzogaGlkZGVuOyBwb3NpdGlvbjogcmVsYXRpdmU7Il0="),o("YVtocmVmPSJodHRwOi8vd3d3LnNhbGlkemluaS5sdi8iXVtzdHlsZT0iZGlzcGxheTogYmxvY2s7IHdpZHRoOiA4OHB4OyBoZWlnaHQ6IDMxcHg7IG92ZXJmbG93OiBoaWRkZW47IHBvc2l0aW9uOiByZWxhdGl2ZTsiXQ==")],listKr:[o("YVtocmVmKj0iLy9hZC5wbGFuYnBsdXMuY28ua3IvIl0="),o("I2xpdmVyZUFkV3JhcHBlcg=="),o("YVtocmVmKj0iLy9hZHYuaW1hZHJlcC5jby5rci8iXQ=="),o("aW5zLmZhc3R2aWV3LWFk"),".revenue_unit_item.dable"],listeAr:[o("LmdlbWluaUxCMUFk"),".right-and-left-sponsers",o("YVtocmVmKj0iLmFmbGFtLmluZm8iXQ=="),o("YVtocmVmKj0iYm9vcmFxLm9yZyJd"),o("YVtocmVmKj0iZHViaXp6bGUuY29tL2FyLz91dG1fc291cmNlPSJd")],listeFr:[o("YVtocmVmXj0iaHR0cDovL3Byb21vLnZhZG9yLmNvbS8iXQ=="),o("I2FkY29udGFpbmVyX3JlY2hlcmNoZQ=="),o("YVtocmVmKj0id2Vib3JhbWEuZnIvZmNnaS1iaW4vIl0="),".site-pub-interstitiel",'div[id^="crt-"][data-criteo-id]'],officialPolish:["#ceneo-placeholder-ceneo-12",o("W2hyZWZePSJodHRwczovL2FmZi5zZW5kaHViLnBsLyJd"),o("YVtocmVmXj0iaHR0cDovL2Fkdm1hbmFnZXIudGVjaGZ1bi5wbC9yZWRpcmVjdC8iXQ=="),o("YVtocmVmXj0iaHR0cDovL3d3dy50cml6ZXIucGwvP3V0bV9zb3VyY2UiXQ=="),o("ZGl2I3NrYXBpZWNfYWQ=")],ro:[o("YVtocmVmXj0iLy9hZmZ0cmsuYWx0ZXgucm8vQ291bnRlci9DbGljayJd"),o("YVtocmVmXj0iaHR0cHM6Ly9ibGFja2ZyaWRheXNhbGVzLnJvL3Ryay9zaG9wLyJd"),o("YVtocmVmXj0iaHR0cHM6Ly9ldmVudC4ycGVyZm9ybWFudC5jb20vZXZlbnRzL2NsaWNrIl0="),o("YVtocmVmXj0iaHR0cHM6Ly9sLnByb2ZpdHNoYXJlLnJvLyJd"),'a[href^="/url/"]'],ruAd:[o("YVtocmVmKj0iLy9mZWJyYXJlLnJ1LyJd"),o("YVtocmVmKj0iLy91dGltZy5ydS8iXQ=="),o("YVtocmVmKj0iOi8vY2hpa2lkaWtpLnJ1Il0="),"#pgeldiz",".yandex-rtb-block"],thaiAds:["a[href*=macau-uta-popup]",o("I2Fkcy1nb29nbGUtbWlkZGxlX3JlY3RhbmdsZS1ncm91cA=="),o("LmFkczMwMHM="),".bumq",".img-kosana"],webAnnoyancesUltralist:["#mod-social-share-2","#social-tools",o("LmN0cGwtZnVsbGJhbm5lcg=="),".zergnet-recommend",".yt.btn-link.btn-md.btn"]},r=Object.keys(e),[4,ei((s=[]).concat.apply(s,r.map(function(t){return e[t]})))]):[2,void 0];case 1:return i=a.sent(),t&&function(e,t){for(var r="DOM blockers debug:\n```",i=0,n=Object.keys(e);i<n.length;i++){var s=n[i];r+="\n".concat(s,":");for(var a=0,o=e[s];a<o.length;a++){var l=o[a];r+="\n ".concat(t[l]?"🚫":"➡️"," ").concat(l)}}console.log("".concat(r,"\n```"))}(e,i),(n=r.filter(function(t){var r=e[t];return xr(r.map(function(e){return i[e]}))>.6*r.length})).sort(),[2,n]}var o})})},fontPreferences:function(){return void 0===e&&(e=4e3),Kr(function(t,r){var i=r.document,n=i.body,s=n.style;s.width="".concat(e,"px"),s.webkitTextSizeAdjust=s.textSizeAdjust="none",Br()?n.style.zoom="".concat(1/r.devicePixelRatio):jr()&&(n.style.zoom="reset");var a=i.createElement("div");return a.textContent=yr([],Array(e/20|0),!0).map(function(){return"word"}).join(" "),n.appendChild(a),function(e,t){for(var r={},i={},n=0,s=Object.keys(ui);n<s.length;n++){var a=s[n],o=ui[a],l=o[0],u=void 0===l?{}:l,c=o[1],h=void 0===c?"mmMwWLliI0fiflO&1":c,d=e.createElement("span");d.textContent=h,d.style.whiteSpace="nowrap";for(var p=0,f=Object.keys(u);p<f.length;p++){var g=f[p],m=u[g];void 0!==m&&(d.style[g]=m)}r[a]=d,t.appendChild(e.createElement("br")),t.appendChild(d)}for(var y=0,v=Object.keys(ui);y<v.length;y++)i[a=v[y]]=r[a].getBoundingClientRect().width;return i}(i,n)},'<!doctype html><html><head><meta name="viewport" content="width=device-width, initial-scale=1">');var e},audio:function(){var e=window,t=e.OfflineAudioContext||e.webkitOfflineAudioContext;if(!t)return-2;if(jr()&&!Ur()&&!function(){var e=window;return xr(["DOMRectList"in e,"RTCPeerConnectionIceEvent"in e,"SVGGeometryElement"in e,"ontransitioncancel"in e])>=3}())return-1;var r=new t(1,5e3,44100),i=r.createOscillator();i.type="triangle",i.frequency.value=1e4;var n=r.createDynamicsCompressor();n.threshold.value=-50,n.knee.value=40,n.ratio.value=12,n.attack.value=0,n.release.value=.25,i.connect(n),n.connect(r.destination),i.start(0);var s=function(e){var t=function(){};return[new Promise(function(r,i){var n=!1,s=0,a=0;e.oncomplete=function(e){return r(e.renderedBuffer)};var o=function(){setTimeout(function(){return i(Hr("timeout"))},Math.min(500,a+5e3-Date.now()))},l=function(){try{var t=e.startRendering();switch(Ir(t)&&kr(t),e.state){case"running":a=Date.now(),n&&o();break;case"suspended":document.hidden||s++,n&&s>=3?i(Hr("suspended")):setTimeout(l,500)}}catch(e){i(e)}};l(),t=function(){n||(n=!0,a>0&&o())}}),t]}(r),a=s[0],o=s[1],l=a.then(function(e){return function(e){for(var t=0,r=0;r<e.length;++r)t+=Math.abs(e[r]);return t}(e.getChannelData(0).subarray(4500))},function(e){if("timeout"===e.name||"suspended"===e.name)return-3;throw e});return kr(l),function(){return o(),l}},screenFrame:function(){var e=this,t=function(){var e=this;return function(){if(void 0===Yr){var e=function(){var t=Qr();$r(t)?Yr=setTimeout(e,2500):(Vr=t,Yr=void 0)};e()}}(),function(){return gr(e,void 0,void 0,function(){var e;return mr(this,function(t){switch(t.label){case 0:return $r(e=Qr())?Vr?[2,yr([],Vr,!0)]:(r=document).fullscreenElement||r.msFullscreenElement||r.mozFullScreenElement||r.webkitFullscreenElement?[4,Wr()]:[3,2]:[3,2];case 1:t.sent(),e=Qr(),t.label=2;case 2:return $r(e)||(Vr=e),[2,e]}var r})})}}();return function(){return gr(e,void 0,void 0,function(){var e,r;return mr(this,function(i){switch(i.label){case 0:return[4,t()];case 1:return e=i.sent(),[2,[(r=function(e){return null===e?null:Nr(e,10)})(e[0]),r(e[1]),r(e[2]),r(e[3])]]}})})}},osCpu:function(){return navigator.oscpu},languages:function(){var e,t=navigator,r=[],i=t.language||t.userLanguage||t.browserLanguage||t.systemLanguage;if(void 0!==i&&r.push([i]),Array.isArray(t.languages))Br()&&xr([!("MediaSettingsRange"in(e=window)),"RTCEncodedAudioFrame"in e,""+e.Intl=="[object Intl]",""+e.Reflect=="[object Reflect]"])>=3||r.push(t.languages);else if("string"==typeof t.languages){var n=t.languages;n&&r.push(n.split(","))}return r},colorDepth:function(){return window.screen.colorDepth},deviceMemory:function(){return Cr(Or(navigator.deviceMemory),void 0)},screenResolution:function(){var e=screen,t=function(e){return Cr(_r(e),null)},r=[t(e.width),t(e.height)];return r.sort().reverse(),r},hardwareConcurrency:function(){return Cr(_r(navigator.hardwareConcurrency),void 0)},timezone:function(){var e,t=null===(e=window.Intl)||void 0===e?void 0:e.DateTimeFormat;if(t){var r=(new t).resolvedOptions().timeZone;if(r)return r}var i,n=(i=(new Date).getFullYear(),-Math.max(Or(new Date(i,0,1).getTimezoneOffset()),Or(new Date(i,6,1).getTimezoneOffset())));return"UTC".concat(n>=0?"+":"").concat(Math.abs(n))},sessionStorage:function(){try{return!!window.sessionStorage}catch(e){return!0}},localStorage:function(){try{return!!window.localStorage}catch(e){return!0}},indexedDB:function(){var e,t;if(!(Lr()||(e=window,t=navigator,xr(["msWriteProfilerMark"in e,"MSStream"in e,"msLaunchUri"in t,"msSaveBlob"in t])>=3&&!Lr())))try{return!!window.indexedDB}catch(e){return!0}},openDatabase:function(){return!!window.openDatabase},cpuClass:function(){return navigator.cpuClass},platform:function(){var e=navigator.platform;return"MacIntel"===e&&jr()&&!Ur()?function(){if("iPad"===navigator.platform)return!0;var e=screen,t=e.width/e.height;return xr(["MediaSource"in window,!!Element.prototype.webkitRequestFullscreen,t>.65&&t<1.53])>=2}()?"iPad":"iPhone":e},plugins:function(){var e=navigator.plugins;if(e){for(var t=[],r=0;r<e.length;++r){var i=e[r];if(i){for(var n=[],s=0;s<i.length;++s){var a=i[s];n.push({type:a.type,suffixes:a.suffixes})}t.push({name:i.name,description:i.description,mimeTypes:n})}}return t}},canvas:function(){var e,t,r=!1,i=function(){var e=document.createElement("canvas");return e.width=1,e.height=1,[e,e.getContext("2d")]}(),n=i[0],s=i[1];if(function(e,t){return!(!t||!e.toDataURL)}(n,s)){r=function(e){return e.rect(0,0,10,10),e.rect(2,2,6,6),!e.isPointInPath(5,5,"evenodd")}(s),function(e,t){e.width=240,e.height=60,t.textBaseline="alphabetic",t.fillStyle="#f60",t.fillRect(100,1,62,20),t.fillStyle="#069",t.font='11pt "Times New Roman"';var r="Cwm fjordbank gly ".concat(String.fromCharCode(55357,56835));t.fillText(r,2,15),t.fillStyle="rgba(102, 204, 0, 0.2)",t.font="18pt Arial",t.fillText(r,4,45)}(n,s);var a=Zr(n);a!==Zr(n)?e=t="unstable":(t=a,function(e,t){e.width=122,e.height=110,t.globalCompositeOperation="multiply";for(var r=0,i=[["#f2f",40,40],["#2ff",80,40],["#ff2",60,80]];r<i.length;r++){var n=i[r],s=n[0],a=n[1],o=n[2];t.fillStyle=s,t.beginPath(),t.arc(a,o,40,0,2*Math.PI,!0),t.closePath(),t.fill()}t.fillStyle="#f9c",t.arc(60,60,60,0,2*Math.PI,!0),t.arc(60,60,20,0,2*Math.PI,!0),t.fill("evenodd")}(n,s),e=Zr(n))}else e=t="";return{winding:r,geometry:e,text:t}},touchSupport:function(){var e,t=navigator,r=0;void 0!==t.maxTouchPoints?r=_r(t.maxTouchPoints):void 0!==t.msMaxTouchPoints&&(r=t.msMaxTouchPoints);try{document.createEvent("TouchEvent"),e=!0}catch(t){e=!1}return{maxTouchPoints:r,touchEvent:e,touchStart:"ontouchstart"in window}},vendor:function(){return navigator.vendor||""},vendorFlavors:function(){for(var e=[],t=0,r=["chrome","safari","__crWeb","__gCrWeb","yandex","__yb","__ybro","__firefox__","__edgeTrackingPreventionStatistics","webkit","oprt","samsungAr","ucweb","UCShellJava","puffinDevice"];t<r.length;t++){var i=r[t],n=window[i];n&&"object"==typeof n&&e.push(i)}return e.sort()},cookiesEnabled:function(){var e=document;try{e.cookie="cookietest=1; SameSite=Strict;";var t=-1!==e.cookie.indexOf("cookietest=");return e.cookie="cookietest=1; SameSite=Strict; expires=Thu, 01-Jan-1970 00:00:01 GMT",t}catch(e){return!1}},colorGamut:function(){for(var e=0,t=["rec2020","p3","srgb"];e<t.length;e++){var r=t[e];if(matchMedia("(color-gamut: ".concat(r,")")).matches)return r}},invertedColors:function(){return!!ri("inverted")||!ri("none")&&void 0},forcedColors:function(){return!!ii("active")||!ii("none")&&void 0},monochrome:function(){if(matchMedia("(min-monochrome: 0)").matches){for(var e=0;e<=100;++e)if(matchMedia("(max-monochrome: ".concat(e,")")).matches)return e;throw new Error("Too high value")}},contrast:function(){return ni("no-preference")?0:ni("high")||ni("more")?1:ni("low")||ni("less")?-1:ni("forced")?10:void 0},reducedMotion:function(){return!!si("reduce")||!si("no-preference")&&void 0},hdr:function(){return!!ai("high")||!ai("standard")&&void 0},math:function(){var e,t=oi.acos||li,r=oi.acosh||li,i=oi.asin||li,n=oi.asinh||li,s=oi.atanh||li,a=oi.atan||li,o=oi.sin||li,l=oi.sinh||li,u=oi.cos||li,c=oi.cosh||li,h=oi.tan||li,d=oi.tanh||li,p=oi.exp||li,f=oi.expm1||li,g=oi.log1p||li;return{acos:t(.12312423423423424),acosh:r(1e308),acoshPf:(e=1e154,oi.log(e+oi.sqrt(e*e-1))),asin:i(.12312423423423424),asinh:n(1),asinhPf:oi.log(1+oi.sqrt(2)),atanh:s(.5),atanhPf:oi.log(3)/2,atan:a(.5),sin:o(-1e300),sinh:l(1),sinhPf:oi.exp(1)-1/oi.exp(1)/2,cos:u(10.000000000123),cosh:c(1),coshPf:(oi.exp(1)+1/oi.exp(1))/2,tan:h(-1e300),tanh:d(1),tanhPf:(oi.exp(2)-1)/(oi.exp(2)+1),exp:p(1),expm1:f(1),expm1Pf:oi.exp(1)-1,log1p:g(10),log1pPf:oi.log(11),powPI:oi.pow(oi.PI,-100)}},videoCard:function(){var e,t=document.createElement("canvas"),r=null!==(e=t.getContext("webgl"))&&void 0!==e?e:t.getContext("experimental-webgl");if(r&&"getExtension"in r){var i=r.getExtension("WEBGL_debug_renderer_info");if(i)return{vendor:(r.getParameter(i.UNMASKED_VENDOR_WEBGL)||"").toString(),renderer:(r.getParameter(i.UNMASKED_RENDERER_WEBGL)||"").toString()}}},pdfViewerEnabled:function(){return navigator.pdfViewerEnabled},architecture:function(){var e=new Float32Array(1),t=new Uint8Array(e.buffer);return e[0]=1/0,e[0]=e[0]-e[0],t[3]}};function hi(e){return JSON.stringify(e,function(e,t){return t instanceof Error?fr({name:(r=t).name,message:r.message,stack:null===(i=r.stack)||void 0===i?void 0:i.split("\n")},r):t;var r,i},2)}function di(e){return function(e,t){t=t||0;var r,i=(e=e||"").length%16,n=e.length-i,s=[0,t],a=[0,t],o=[0,0],l=[0,0],u=[2277735313,289559509],c=[1291169091,658871167];for(r=0;r<n;r+=16)o=[255&e.charCodeAt(r+4)|(255&e.charCodeAt(r+5))<<8|(255&e.charCodeAt(r+6))<<16|(255&e.charCodeAt(r+7))<<24,255&e.charCodeAt(r)|(255&e.charCodeAt(r+1))<<8|(255&e.charCodeAt(r+2))<<16|(255&e.charCodeAt(r+3))<<24],l=[255&e.charCodeAt(r+12)|(255&e.charCodeAt(r+13))<<8|(255&e.charCodeAt(r+14))<<16|(255&e.charCodeAt(r+15))<<24,255&e.charCodeAt(r+8)|(255&e.charCodeAt(r+9))<<8|(255&e.charCodeAt(r+10))<<16|(255&e.charCodeAt(r+11))<<24],o=Fr(o=Mr(o,u),31),s=Sr(s=Fr(s=Rr(s,o=Mr(o,c)),27),a),s=Sr(Mr(s,[0,5]),[0,1390208809]),l=Fr(l=Mr(l,c),33),a=Sr(a=Fr(a=Rr(a,l=Mr(l,u)),31),s),a=Sr(Mr(a,[0,5]),[0,944331445]);switch(o=[0,0],l=[0,0],i){case 15:l=Rr(l,Tr([0,e.charCodeAt(r+14)],48));case 14:l=Rr(l,Tr([0,e.charCodeAt(r+13)],40));case 13:l=Rr(l,Tr([0,e.charCodeAt(r+12)],32));case 12:l=Rr(l,Tr([0,e.charCodeAt(r+11)],24));case 11:l=Rr(l,Tr([0,e.charCodeAt(r+10)],16));case 10:l=Rr(l,Tr([0,e.charCodeAt(r+9)],8));case 9:l=Mr(l=Rr(l,[0,e.charCodeAt(r+8)]),c),a=Rr(a,l=Mr(l=Fr(l,33),u));case 8:o=Rr(o,Tr([0,e.charCodeAt(r+7)],56));case 7:o=Rr(o,Tr([0,e.charCodeAt(r+6)],48));case 6:o=Rr(o,Tr([0,e.charCodeAt(r+5)],40));case 5:o=Rr(o,Tr([0,e.charCodeAt(r+4)],32));case 4:o=Rr(o,Tr([0,e.charCodeAt(r+3)],24));case 3:o=Rr(o,Tr([0,e.charCodeAt(r+2)],16));case 2:o=Rr(o,Tr([0,e.charCodeAt(r+1)],8));case 1:o=Mr(o=Rr(o,[0,e.charCodeAt(r)]),u),s=Rr(s,o=Mr(o=Fr(o,31),c))}return s=Sr(s=Rr(s,[0,e.length]),a=Rr(a,[0,e.length])),a=Sr(a,s),s=Sr(s=Ar(s),a=Ar(a)),a=Sr(a,s),("00000000"+(s[0]>>>0).toString(16)).slice(-8)+("00000000"+(s[1]>>>0).toString(16)).slice(-8)+("00000000"+(a[0]>>>0).toString(16)).slice(-8)+("00000000"+(a[1]>>>0).toString(16)).slice(-8)}(function(e){for(var t="",r=0,i=Object.keys(e).sort();r<i.length;r++){var n=i[r],s=e[n],a=s.error?"error":JSON.stringify(s.value);t+="".concat(t?"|":"").concat(n.replace(/([:|\\])/g,"\\$1"),":").concat(a)}return t}(e))}function pi(e){return void 0===e&&(e=50),function(e,t){void 0===t&&(t=1/0);var r=window.requestIdleCallback;return r?new Promise(function(e){return r.call(window,function(){return e()},{timeout:t})}):br(Math.min(e,t))}(e,2*e)}function fi(e,t){var r=Date.now();return{get:function(i){return gr(this,void 0,void 0,function(){var n,s,a;return mr(this,function(o){switch(o.label){case 0:return n=Date.now(),[4,e()];case 1:return s=o.sent(),a=function(e){var t,r=function(e){var t=function(e){if(zr())return.4;if(jr())return Ur()?.5:.3;var t=e.platform.value||"";return/^Win/.test(t)?.6:/^Mac/.test(t)?.5:.7}(e),r=function(e){return Nr(.99+.01*e,1e-4)}(t);return{score:t,comment:"$ if upgrade to Pro: https://fpjs.dev/pro".replace(/\$/g,"".concat(r))}}(e);return{get visitorId(){return void 0===t&&(t=di(this.components)),t},set visitorId(e){t=e},confidence:r,components:e,version:vr}}(s),(t||(null==i?void 0:i.debug))&&console.log("Copy the text below to get the debug data:\n\n```\nversion: ".concat(a.version,"\nuserAgent: ").concat(navigator.userAgent,"\ntimeBetweenLoadAndGet: ").concat(n-r,"\nvisitorId: ").concat(a.visitorId,"\ncomponents: ").concat(hi(s),"\n```")),[2,a]}})})}}}var gi,mi,yi={load:function(e){var t=void 0===e?{}:e,r=t.delayFallback,i=t.debug,n=t.monitoring,s=void 0===n||n;return gr(this,void 0,void 0,function(){return mr(this,function(e){switch(e.label){case 0:return s&&function(){if(!(window.__fpjs_d_m||Math.random()>=.001))try{var e=new XMLHttpRequest;e.open("get","https://m1.openfpcdn.io/fingerprintjs/v".concat(vr,"/npm-monitoring"),!0),e.send()}catch(e){console.error(e)}}(),[4,pi(r)];case 1:return e.sent(),[2,fi(Pr(ci,{debug:i},[]),i)]}})})},hashComponents:di,componentsToDebugString:hi},vi=r(1396),bi=r.n(vi);function Ii(e,t,r){try{const i=bi().enc.Utf8.parse(t),n=bi().enc.Utf8.parse(r);return bi().AES.decrypt(e.toString(),i,{iv:n,mode:bi().mode.CBC,padding:bi().pad.Pkcs7}).toString(bi().enc.Utf8)}catch(e){return""}}!function(e){class t extends Kt.Message{#e=[];constructor(e){super(),Kt.Message.initialize(this,Array.isArray(e)?e:[],0,-1,[11],this.#e),Array.isArray(e)||"object"!=typeof e||("userId"in e&&null!=e.userId&&(this.userId=e.userId),"appId"in e&&null!=e.appId&&(this.appId=e.appId),"deviceKey"in e&&null!=e.deviceKey&&(this.deviceKey=e.deviceKey),"roomId"in e&&null!=e.roomId&&(this.roomId=e.roomId),"account"in e&&null!=e.account&&(this.account=e.account),"prefix"in e&&null!=e.prefix&&(this.prefix=e.prefix),"nickname"in e&&null!=e.nickname&&(this.nickname=e.nickname),"host"in e&&null!=e.host&&(this.host=e.host),"max"in e&&null!=e.max&&(this.max=e.max),"deviceModel"in e&&null!=e.deviceModel&&(this.deviceModel=e.deviceModel),"hosts"in e&&null!=e.hosts&&(this.hosts=e.hosts),"region"in e&&null!=e.region&&(this.region=e.region),"phone"in e&&null!=e.phone&&(this.phone=e.phone),"email"in e&&null!=e.email&&(this.email=e.email),"avatar"in e&&null!=e.avatar&&(this.avatar=e.avatar),"getaway"in e&&null!=e.getaway&&(this.getaway=e.getaway),"deviceName"in e&&null!=e.deviceName&&(this.deviceName=e.deviceName),"ip"in e&&null!=e.ip&&(this.ip=e.ip),"country"in e&&null!=e.country&&(this.country=e.country),"city"in e&&null!=e.city&&(this.city=e.city))}get userId(){return Kt.Message.getFieldWithDefault(this,1,"")}set userId(e){Kt.Message.setField(this,1,e)}get appId(){return Kt.Message.getFieldWithDefault(this,2,0)}set appId(e){Kt.Message.setField(this,2,e)}get deviceKey(){return Kt.Message.getFieldWithDefault(this,3,"")}set deviceKey(e){Kt.Message.setField(this,3,e)}get roomId(){return Kt.Message.getFieldWithDefault(this,4,0)}set roomId(e){Kt.Message.setField(this,4,e)}get account(){return Kt.Message.getFieldWithDefault(this,5,"")}set account(e){Kt.Message.setField(this,5,e)}get prefix(){return Kt.Message.getFieldWithDefault(this,6,"")}set prefix(e){Kt.Message.setField(this,6,e)}get nickname(){return Kt.Message.getFieldWithDefault(this,7,"")}set nickname(e){Kt.Message.setField(this,7,e)}get host(){return Kt.Message.getFieldWithDefault(this,8,"")}set host(e){Kt.Message.setField(this,8,e)}get max(){return Kt.Message.getFieldWithDefault(this,9,0)}set max(e){Kt.Message.setField(this,9,e)}get deviceModel(){return Kt.Message.getFieldWithDefault(this,10,"")}set deviceModel(e){Kt.Message.setField(this,10,e)}get hosts(){return Kt.Message.getFieldWithDefault(this,11,[])}set hosts(e){Kt.Message.setField(this,11,e)}get region(){return Kt.Message.getFieldWithDefault(this,12,"")}set region(e){Kt.Message.setField(this,12,e)}get phone(){return Kt.Message.getFieldWithDefault(this,13,"")}set phone(e){Kt.Message.setField(this,13,e)}get email(){return Kt.Message.getFieldWithDefault(this,14,"")}set email(e){Kt.Message.setField(this,14,e)}get avatar(){return Kt.Message.getFieldWithDefault(this,15,"")}set avatar(e){Kt.Message.setField(this,15,e)}get getaway(){return Kt.Message.getFieldWithDefault(this,16,"")}set getaway(e){Kt.Message.setField(this,16,e)}get deviceName(){return Kt.Message.getFieldWithDefault(this,17,"")}set deviceName(e){Kt.Message.setField(this,17,e)}get ip(){return Kt.Message.getFieldWithDefault(this,18,"")}set ip(e){Kt.Message.setField(this,18,e)}get country(){return Kt.Message.getFieldWithDefault(this,19,"")}set country(e){Kt.Message.setField(this,19,e)}get city(){return Kt.Message.getFieldWithDefault(this,20,"")}set city(e){Kt.Message.setField(this,20,e)}static fromObject(e){const r=new t({});return null!=e.userId&&(r.userId=e.userId),null!=e.appId&&(r.appId=e.appId),null!=e.deviceKey&&(r.deviceKey=e.deviceKey),null!=e.roomId&&(r.roomId=e.roomId),null!=e.account&&(r.account=e.account),null!=e.prefix&&(r.prefix=e.prefix),null!=e.nickname&&(r.nickname=e.nickname),null!=e.host&&(r.host=e.host),null!=e.max&&(r.max=e.max),null!=e.deviceModel&&(r.deviceModel=e.deviceModel),null!=e.hosts&&(r.hosts=e.hosts),null!=e.region&&(r.region=e.region),null!=e.phone&&(r.phone=e.phone),null!=e.email&&(r.email=e.email),null!=e.avatar&&(r.avatar=e.avatar),null!=e.getaway&&(r.getaway=e.getaway),null!=e.deviceName&&(r.deviceName=e.deviceName),null!=e.ip&&(r.ip=e.ip),null!=e.country&&(r.country=e.country),null!=e.city&&(r.city=e.city),r}toObject(){const e={};return null!=this.userId&&(e.userId=this.userId),null!=this.appId&&(e.appId=this.appId),null!=this.deviceKey&&(e.deviceKey=this.deviceKey),null!=this.roomId&&(e.roomId=this.roomId),null!=this.account&&(e.account=this.account),null!=this.prefix&&(e.prefix=this.prefix),null!=this.nickname&&(e.nickname=this.nickname),null!=this.host&&(e.host=this.host),null!=this.max&&(e.max=this.max),null!=this.deviceModel&&(e.deviceModel=this.deviceModel),null!=this.hosts&&(e.hosts=this.hosts),null!=this.region&&(e.region=this.region),null!=this.phone&&(e.phone=this.phone),null!=this.email&&(e.email=this.email),null!=this.avatar&&(e.avatar=this.avatar),null!=this.getaway&&(e.getaway=this.getaway),null!=this.deviceName&&(e.deviceName=this.deviceName),null!=this.ip&&(e.ip=this.ip),null!=this.country&&(e.country=this.country),null!=this.city&&(e.city=this.city),e}serialize(e){const t=e||new Kt.BinaryWriter;if(this.userId.length&&t.writeString(1,this.userId),0!=this.appId&&t.writeInt64(2,this.appId),this.deviceKey.length&&t.writeString(3,this.deviceKey),0!=this.roomId&&t.writeInt64(4,this.roomId),this.account.length&&t.writeString(5,this.account),this.prefix.length&&t.writeString(6,this.prefix),this.nickname.length&&t.writeString(7,this.nickname),this.host.length&&t.writeString(8,this.host),0!=this.max&&t.writeInt32(9,this.max),this.deviceModel.length&&t.writeString(10,this.deviceModel),this.hosts.length&&t.writeRepeatedString(11,this.hosts),this.region.length&&t.writeString(12,this.region),this.phone.length&&t.writeString(13,this.phone),this.email.length&&t.writeString(14,this.email),this.avatar.length&&t.writeString(15,this.avatar),this.getaway.length&&t.writeString(16,this.getaway),this.deviceName.length&&t.writeString(17,this.deviceName),this.ip.length&&t.writeString(18,this.ip),this.country.length&&t.writeString(19,this.country),this.city.length&&t.writeString(20,this.city),!e)return t.getResultBuffer()}static deserialize(e){const r=e instanceof Kt.BinaryReader?e:new Kt.BinaryReader(e),i=new t;for(;r.nextField()&&!r.isEndGroup();)switch(r.getFieldNumber()){case 1:i.userId=r.readString();break;case 2:i.appId=r.readInt64();break;case 3:i.deviceKey=r.readString();break;case 4:i.roomId=r.readInt64();break;case 5:i.account=r.readString();break;case 6:i.prefix=r.readString();break;case 7:i.nickname=r.readString();break;case 8:i.host=r.readString();break;case 9:i.max=r.readInt32();break;case 10:i.deviceModel=r.readString();break;case 11:Kt.Message.addToRepeatedField(i,11,r.readString());break;case 12:i.region=r.readString();break;case 13:i.phone=r.readString();break;case 14:i.email=r.readString();break;case 15:i.avatar=r.readString();break;case 16:i.getaway=r.readString();break;case 17:i.deviceName=r.readString();break;case 18:i.ip=r.readString();break;case 19:i.country=r.readString();break;case 20:i.city=r.readString();break;default:r.skipField()}return i}serializeBinary(){return this.serialize()}static deserializeBinary(e){return t.deserialize(e)}}e.Connect=t}(gi||(gi={})),function(e){class t extends Kt.Message{#e=[];constructor(e){super(),Kt.Message.initialize(this,Array.isArray(e)?e:[],0,-1,[],this.#e),Array.isArray(e)||"object"!=typeof e||("id"in e&&null!=e.id&&(this.id=e.id),"appId"in e&&null!=e.appId&&(this.appId=e.appId),"v"in e&&null!=e.v&&(this.v=e.v),"sort"in e&&null!=e.sort&&(this.sort=e.sort),"created"in e&&null!=e.created&&(this.created=e.created),"modified"in e&&null!=e.modified&&(this.modified=e.modified),"name"in e&&null!=e.name&&(this.name=e.name),"host"in e&&null!=e.host&&(this.host=e.host),"max"in e&&null!=e.max&&(this.max=e.max),"remark"in e&&null!=e.remark&&(this.remark=e.remark),"ip"in e&&null!=e.ip&&(this.ip=e.ip),"one"in e&&null!=e.one&&(this.one=e.one),"two"in e&&null!=e.two&&(this.two=e.two),"three"in e&&null!=e.three&&(this.three=e.three),"four"in e&&null!=e.four&&(this.four=e.four),"five"in e&&null!=e.five&&(this.five=e.five),"port"in e&&null!=e.port&&(this.port=e.port))}get id(){return Kt.Message.getFieldWithDefault(this,1,0)}set id(e){Kt.Message.setField(this,1,e)}get appId(){return Kt.Message.getFieldWithDefault(this,2,0)}set appId(e){Kt.Message.setField(this,2,e)}get v(){return Kt.Message.getFieldWithDefault(this,3,0)}set v(e){Kt.Message.setField(this,3,e)}get sort(){return Kt.Message.getFieldWithDefault(this,4,0)}set sort(e){Kt.Message.setField(this,4,e)}get created(){return Kt.Message.getFieldWithDefault(this,5,"")}set created(e){Kt.Message.setField(this,5,e)}get modified(){return Kt.Message.getFieldWithDefault(this,6,"")}set modified(e){Kt.Message.setField(this,6,e)}get name(){return Kt.Message.getFieldWithDefault(this,7,"")}set name(e){Kt.Message.setField(this,7,e)}get host(){return Kt.Message.getFieldWithDefault(this,8,"")}set host(e){Kt.Message.setField(this,8,e)}get max(){return Kt.Message.getFieldWithDefault(this,9,0)}set max(e){Kt.Message.setField(this,9,e)}get remark(){return Kt.Message.getFieldWithDefault(this,10,"")}set remark(e){Kt.Message.setField(this,10,e)}get ip(){return Kt.Message.getFieldWithDefault(this,11,0)}set ip(e){Kt.Message.setField(this,11,e)}get one(){return Kt.Message.getFieldWithDefault(this,12,0)}set one(e){Kt.Message.setField(this,12,e)}get two(){return Kt.Message.getFieldWithDefault(this,13,0)}set two(e){Kt.Message.setField(this,13,e)}get three(){return Kt.Message.getFieldWithDefault(this,14,0)}set three(e){Kt.Message.setField(this,14,e)}get four(){return Kt.Message.getFieldWithDefault(this,15,0)}set four(e){Kt.Message.setField(this,15,e)}get five(){return Kt.Message.getFieldWithDefault(this,16,0)}set five(e){Kt.Message.setField(this,16,e)}get port(){return Kt.Message.getFieldWithDefault(this,17,"")}set port(e){Kt.Message.setField(this,17,e)}static fromObject(e){const r=new t({});return null!=e.id&&(r.id=e.id),null!=e.appId&&(r.appId=e.appId),null!=e.v&&(r.v=e.v),null!=e.sort&&(r.sort=e.sort),null!=e.created&&(r.created=e.created),null!=e.modified&&(r.modified=e.modified),null!=e.name&&(r.name=e.name),null!=e.host&&(r.host=e.host),null!=e.max&&(r.max=e.max),null!=e.remark&&(r.remark=e.remark),null!=e.ip&&(r.ip=e.ip),null!=e.one&&(r.one=e.one),null!=e.two&&(r.two=e.two),null!=e.three&&(r.three=e.three),null!=e.four&&(r.four=e.four),null!=e.five&&(r.five=e.five),null!=e.port&&(r.port=e.port),r}toObject(){const e={};return null!=this.id&&(e.id=this.id),null!=this.appId&&(e.appId=this.appId),null!=this.v&&(e.v=this.v),null!=this.sort&&(e.sort=this.sort),null!=this.created&&(e.created=this.created),null!=this.modified&&(e.modified=this.modified),null!=this.name&&(e.name=this.name),null!=this.host&&(e.host=this.host),null!=this.max&&(e.max=this.max),null!=this.remark&&(e.remark=this.remark),null!=this.ip&&(e.ip=this.ip),null!=this.one&&(e.one=this.one),null!=this.two&&(e.two=this.two),null!=this.three&&(e.three=this.three),null!=this.four&&(e.four=this.four),null!=this.five&&(e.five=this.five),null!=this.port&&(e.port=this.port),e}serialize(e){const t=e||new Kt.BinaryWriter;if(0!=this.id&&t.writeInt64(1,this.id),0!=this.appId&&t.writeInt64(2,this.appId),0!=this.v&&t.writeDouble(3,this.v),0!=this.sort&&t.writeInt32(4,this.sort),this.created.length&&t.writeString(5,this.created),this.modified.length&&t.writeString(6,this.modified),this.name.length&&t.writeString(7,this.name),this.host.length&&t.writeString(8,this.host),0!=this.max&&t.writeInt64(9,this.max),this.remark.length&&t.writeString(10,this.remark),0!=this.ip&&t.writeInt32(11,this.ip),0!=this.one&&t.writeInt32(12,this.one),0!=this.two&&t.writeInt32(13,this.two),0!=this.three&&t.writeInt32(14,this.three),0!=this.four&&t.writeInt32(15,this.four),0!=this.five&&t.writeInt64(16,this.five),this.port.length&&t.writeString(17,this.port),!e)return t.getResultBuffer()}static deserialize(e){const r=e instanceof Kt.BinaryReader?e:new Kt.BinaryReader(e),i=new t;for(;r.nextField()&&!r.isEndGroup();)switch(r.getFieldNumber()){case 1:i.id=r.readInt64();break;case 2:i.appId=r.readInt64();break;case 3:i.v=r.readDouble();break;case 4:i.sort=r.readInt32();break;case 5:i.created=r.readString();break;case 6:i.modified=r.readString();break;case 7:i.name=r.readString();break;case 8:i.host=r.readString();break;case 9:i.max=r.readInt64();break;case 10:i.remark=r.readString();break;case 11:i.ip=r.readInt32();break;case 12:i.one=r.readInt32();break;case 13:i.two=r.readInt32();break;case 14:i.three=r.readInt32();break;case 15:i.four=r.readInt32();break;case 16:i.five=r.readInt64();break;case 17:i.port=r.readString();break;default:r.skipField()}return i}serializeBinary(){return this.serialize()}static deserializeBinary(e){return t.deserialize(e)}}e.Gateway=t}(mi||(mi={}));var wi=r(8287).hp,Ei=gi.Connect,ki=jt.Contacts,Si=zt.Message,Mi=mi.Gateway;class Fi extends qt{static instance;constructor(){super()}static getInstance(){if(!Fi.instance){Fi.instance=new Fi,yi.load().then(e=>e.get()).then(e=>{Fi.instance.deviceId=e.visitorId});try{wi.from("Buffer 支持度测试文本").toString()}catch(e){}}return Fi.instance}whitOption(e){if(!e)throw new Error("初始化失败");if(!e.appId.length)throw new Error("初始化失败 appId");if(!e.host.length&&!e.hosts.length)throw new Error("接入点比选其一");this.option=e,e.isWss&&(this.protocol="wss"),this.userAgent=window.navigator.userAgent;let t=window.navigator.userAgent.indexOf("("),r=window.navigator.userAgent.indexOf(")");this.deviceName=window.navigator.userAgent.substring(t+1,r);let i=window.navigator.userAgent.lastIndexOf(")");return this.deviceModel=window.navigator.userAgent.substring(i+1),this.deviceModel.length>200&&(this.deviceModel=this.deviceModel.substring(0,200)),this.deviceName.length>150&&(this.deviceName=this.deviceModel.substring(0,150)),this.meta.appId=Number(e.appId),yi.load().then(e=>e.get()).then(t=>{this.deviceId=t.visitorId,this.meta.deviceKey=t.visitorId,e?.debug&&console.warn("Client init... "+t.visitorId)}),this}userAgent="";protocol="ws";hostAddress="";hostNodeList=[];option;clientListener;connectStatus=Pt.DONE;retryTimer=-2;connectStatusTimer=-2;retryConnectNum=0;unexpectedly=0;messageListener=[];contactListener=[];teamListener=[];setToken(e){this.token=e;try{let t=this.getJwtPayload(e);this.tokenAppId=Number(t.aud),this.tokenAppId+""!=this.option?.appId&&this.option?.debug&&console.warn("IO:token中的AppId 与 IMIOClientOption不一致"),this.account&&this.isClose()&&!this.retryTimer&&this.callSocket(Number(this.account.accountId))}catch(e){this.tokenAppId=0,this.option?.debug&&console.warn("IO: token中的AppId 解析错误")}return this}isClose(){return!this.socket}getDeviceKey(){return this.deviceId}getUserInfo(){return this.account}addMessageListener(e){-1==this.messageListener.findIndex(t=>t.id==e.id)&&this.messageListener.push(e)}removeMessageListener(e){let t=this.messageListener.findIndex(t=>t.id==e.id);t>-1&&this.messageListener.splice(t,1)}addTeamListener(e){-1==this.teamListener.findIndex(t=>t.id==e.id)&&this.teamListener.push(e)}removeTeamListener(e){let t=this.teamListener.findIndex(t=>t.id==e.id);t>-1&&this.teamListener.splice(t,1)}addContactListener(e){-1==this.contactListener.findIndex(t=>t.id==e.id)&&this.contactListener.push(e)}removeContactListener(e){let t=this.contactListener.findIndex(t=>t.id==e.id);t>-1&&this.contactListener.splice(t,1)}disconnect(){return this.account=null,clearInterval(this.retryTimer),this.unexpectedly=0,this.connectStatus=Pt.DONE,this.socket&&(this.socket.close(new Error("主动关闭")),this.socket=null,this.option&&this.option.appId.length&&(this.meta.pageSize=this.pageSize,this.meta.page=0,this.meta.appId=Number(this.option?.appId))),this}connect(e,t,r,i){if(!t||t.length<50)throw new Error("IO 连接 token 必须");if(i&&(this.clientListener=i),this.token=t,!this.option)throw new Error("IOClientOption 缺失");try{let e=this.getJwtPayload(t);this.tokenAppId=Number(e.aud)}catch(e){this.tokenAppId=0}if(0==this.tokenAppId||this.tokenAppId+""!=this.option?.appId)throw new Error("token中的AppId 与 IMIOClientOption不一致");return this.option?.debug&&(console.warn("connect deviceId",this.deviceId),this.meta.deviceKey.length||(this.meta.deviceKey=this.deviceId)),this.isClose()&&this.disconnect(),this.account=new Vt,this.account.nickname=r,e&&(this.account.accountId=e.toString(),this.meta.userId=this.account.accountId),this.deviceId.length?this.callSocket(e):setTimeout(()=>{this.callSocket(e)},2e3),this}callSocket(e=0){if(!this.option)throw new Error("客户端配置项不存在");if(this.hostAddress=this.hostAddressProvider(),!this.hostAddress.length)throw new Error("主机地址不存在");let t="",r="",i="";e||(this.account&&this.account.nickname&&(t=this.account.nickname.toString()),this.account&&this.account.phone&&(r=this.account.phone.toString()),this.account&&this.account.email&&(i=this.account.email.toString()));try{this.getIP1()}catch(e){}const n=new Ei({appId:parseInt(this.option.appId),deviceKey:this.deviceId,prefix:"h5",userId:e>0?e.toString():"",nickname:e>0?t:"",email:e>0?i:"",phone:e>0?r:"",deviceModel:this.deviceModel,deviceName:this.deviceName,ip:this.ip+"",country:this.country+"",city:this.city+""});let s=null;try{s=(0,c.encodeBearerAuthMetadata)(this.token)}catch(e){return void(this.option?.debug&&console.error("Buffer Error",e))}if(!s)return;this.option?.debug&&console.warn("IO host",this.hostAddress);let o=new u.WebsocketClientTransport({debug:!0,url:`${this.protocol}://${this.hostAddress}/ws`}),h=new l.RSocketConnector({setup:{keepAlive:5e3,dataMimeType:c.WellKnownMimeType.APPLICATION_CBOR.string,metadataMimeType:c.WellKnownMimeType.MESSAGE_RSOCKET_COMPOSITE_METADATA.string,payload:{data:wi.from(n.serializeBinary().buffer),metadata:(0,c.encodeCompositeMetadata)([[c.WellKnownMimeType.MESSAGE_RSOCKET_AUTHENTICATION,(0,c.encodeBearerAuthMetadata)(this.token)]])}},transport:o,responder:{fireAndForget:(e,t)=>{const r=e.metadata,i=e.data;t.onComplete();let n="";return r&&(n=this.decodeMetadata(r).get("route")),this.option?.debug&&console.warn("IO fireAndForget...",n),this.routerParse(n,i),{cancel(){}}},requestResponse:(e,t)=>{const r=e.metadata,i=e.data;t.onNext({data:wi.from("OK")},!0);let n="";return r&&(n=this.decodeMetadata(r).get("route")),this.option?.debug&&console.warn("IO requestResponse...",n),this.routerParse(n,i),{cancel(){},onExtension(e,t,r){}}}}});this.connectStatus=Pt.CONNECTING,this.connectStatusTimer=setInterval(()=>{try{this.clientListener&&this.clientListener.onConnectStatus(this.connectStatus,this.retryConnectNum)}catch(e){}try{this.connectStatus!=Pt.SUCCESS&&this.connectStatus!=Pt.SUCCESS_PULL||this.ping()}catch(e){}},2e3),h.connect().then(e=>{this.option?.debug&&console.warn("IO connect success..."),this.account&&(this.account.status=a.online);try{this.connectStatus=Pt.SUCCESS_PULL,this.clientListener?.onConnected()}catch(e){}this.retryConnectNum=0,this.unexpectedly=0,this.socket=e,clearInterval(this.retryTimer),this.retryTimer=-2,e.onClose(e=>{let t=e?.message+"";this.option?.debug&&console.error("IOServer connect onClose",t),this.account&&(this.account.status=a.done),this.connectErrorEvent(t)})}).catch(e=>{if(this.option?.debug&&console.error("IOServer Connect Error",e),e){let t=e?.message+"";this.connectErrorEvent(t)}else{if(this.account&&(this.account.status=a.done),this.unexpectedly>6){clearInterval(this.retryTimer),clearInterval(this.connectStatusTimer),this.socket=null,this.connectStatus=Pt.ERROR,this.retryTimer=-2;try{this.clientListener?.onDisconnected()}catch(e){}return}clearInterval(this.connectStatusTimer),this.connectStatusTimer=-2,this.unexpectedly++,this.retryConnTimer()}}).finally(()=>{this.option?.debug&&console.warn("IO connect finally")})}ping(){if(!this.option)return;if(!this.option.appId.length)return;if(!this.socket)return;const e=new Ei({appId:parseInt(this.option.appId),deviceKey:this.deviceId,prefix:"h5",userId:this.account?this.account.accountId.toString():"",deviceModel:this.deviceModel,deviceName:this.deviceName});this.socket?.requestResponse({data:wi.from(e.serializeBinary().buffer),metadata:this.buildRoute("ping")},{onComplete:()=>{},onNext:(e,t)=>{},onError:e=>{},onExtension(e,t,r){}})}connectErrorEvent(e){if(this.socket=null,this.account&&(this.account.status=a.done),clearInterval(this.connectStatusTimer),this.connectStatusTimer=-2,e.indexOf("主动关闭")>-1){clearInterval(this.retryTimer),clearInterval(this.connectStatusTimer),this.connectStatus=Pt.DONE,this.retryTimer=-2,this.connectStatusTimer=-2,this.retryConnectNum=0;try{this.clientListener?.onDisconnected()}catch(e){}}else{if(e.indexOf("keep-alive")>-1){if(this.unexpectedly=0,this.unexpectedly>6){clearInterval(this.retryTimer),clearInterval(this.connectStatusTimer),this.connectStatus=Pt.ERROR,this.connectStatusTimer=-2,this.retryTimer=-2;try{this.clientListener?.onDisconnected()}catch(e){}return}return this.unexpectedly++,void this.retryConnTimer()}if(e.indexOf("unexpectedly")>-1){if(this.unexpectedly>6){clearInterval(this.retryTimer),clearInterval(this.connectStatusTimer),this.connectStatus=Pt.ERROR,this.connectStatusTimer=-2,this.retryTimer=-2;try{this.clientListener?.onDisconnected()}catch(e){}return}return this.unexpectedly++,void this.retryConnTimer()}if(e.indexOf("Jwt")>-1){clearInterval(this.retryTimer),clearInterval(this.connectStatusTimer),this.connectStatusTimer=-2,this.retryTimer=-2;try{this.connectStatus=Pt.TOKEN_EXPIRED,this.clientListener?.onConnectStatus(this.connectStatus,this.retryConnectNum)}catch(e){}try{this.clientListener?.onTokenExpired()}catch(e){}}else{if(e.indexOf("SQL")>-1||e.indexOf("connect")>-1){try{this.connectStatus=Pt.ERROR,this.clientListener?.onConnectStatus(this.connectStatus,this.retryConnectNum)}catch(e){}return this.unexpectedly++,void this.retryConnTimer()}if(e.indexOf("token")>-1)try{this.connectStatus=Pt.TOKEN_EXPIRED,this.clientListener?.onTokenExpired(),this.clientListener?.onConnectStatus(this.connectStatus,this.retryConnectNum)}catch(e){}}}}retryConnTimer(){clearInterval(this.retryTimer),this.retryTimer=setInterval(()=>{if(this.retryConnectNum>8){clearInterval(this.retryTimer),this.retryConnectNum=0;try{this.connectStatus=Pt.ERROR,this.clientListener?.onConnectStatus(this.connectStatus,this.retryConnectNum),this.clientListener?.onDisconnected()}catch(e){}}else if(!this.socket){this.retryConnectNum++,this.connectStatus=Pt.RETRY_CONNECTING;try{this.clientListener?.onConnectStatus(this.connectStatus,this.retryConnectNum)}catch(e){}if(this.account)try{let e=Number(this.account.accountId);this.callSocket(e)}catch(e){}else this.callSocket()}},8e3)}hostAddressProvider(){if(this.option&&this.option?.host){let e=this.option.host.split(":");if(-1==this.hostNodeList.findIndex(t=>t.host==e[0])){let t=new f;t.host=e[0],e.length>1&&(t.port=e[1]),this.hostNodeList.push(t)}}if(1==this.hostNodeList.length){let e=this.hostNodeList[0],t=e.host;return e.port.length&&(t=t+":"+e.port),t}if(this.hostNodeList.length>1){let e=this.hostNodeList.sort((e,t)=>t.max-t.current-(e.max-e.current))[0],t=e.host;return e.port.length&&(t=t+":"+e.port),t}return""}routerParse(e,t){switch(e){case"link-to-many":this.handleToMany(t);break;case"shutdown":this.handleShutdown(t);break;case"gateway":this.handleGateway(t);break;case"pong":clearInterval(this.connectStatusTimer),this.connectStatusTimer=-2;try{this.connectStatus=Pt.SUCCESS,this.clientListener?.onConnectStatus(this.connectStatus,this.retryConnectNum)}catch(e){}this.handelPong(t);break;case"contact":this.handleContact(t);break;case"contact-status":this.handleContactStatus(t);break;case"contact-change":this.handleContactChange(t);break;case"notice":this.handleNotice(t);break;case"message":this.handleMessage(t);break;case"message-team":this.handleMessageTeam(t)}}handleShutdown(e){if(e)try{this.clientListener?.onShutdown()}catch(e){}}handleGateway(e){if(e)try{let t=Mi.deserialize(e),r=this.buildGateway(t),i=this.deviceId.substring(0,16),n=Ii(r.host,i,i);r.host=n;let s=this.hostNodeList.find(e=>e.host==n);s?s.current=r.current:this.hostNodeList.push(r)}catch(e){}}handleToMany(e){if(!e)return;clearInterval(this.retryTimer),this.retryTimer=-2;try{this.connectStatus=Pt.RETRY_CONNECTING,this.clientListener?.onConnectStatus(this.connectStatus,this.retryConnectNum)}catch(e){}const t=Ei.deserialize(e);try{let e=this.deviceId.substring(0,16),r=Ii(t.ip,e,e);this.hostAddress=r;let i=r.split(":"),n=new f;n.max=t.appId,n.current=t.roomId,n.name=t.nickname,i.length>1?(n.host=i[0],n.port=i[1]):n.host=r;let s=this.hostNodeList.find(e=>e.name==n.name);s?(s.max=n.max,s.current=n.current,s.host=n.host,s.port=n.port):this.hostNodeList.push(n)}catch(e){}this.option?.whitHost(t.ip),this.socket&&(this.socket?.close(new Error("主动关闭")),this.account&&this.callSocket(Number(this.account.accountId)))}handelPong(e){if(e)try{const t=Ei.deserialize(e);this.account&&(this.account.accountId=t.userId,this.account.account=t.account,this.account.roomId=t.roomId,this.account.nickname=t.nickname,this.account.avatar=t.avatar),this.meta&&(this.meta.roomId=t.roomId,this.meta.userId=t.userId,this.meta.nickname=t.nickname,this.meta.avatar=t.avatar),this.option?.debug&&(console.warn("IO meta",this.meta.toObject()),console.warn("IO userinfo",this.account))}catch(e){}}handleContact(e){if(e)try{let t=ki.deserialize(e),r=this.buildContact(t),i=this.contactList.findIndex(e=>e.contactId==r.contactId);i>-1?this.contactList[i]=r:this.contactList.push(r)}catch(e){}}handleContactStatus(e){if(e)try{let t=Si.deserialize(e),r=this.contactList.findIndex(e=>!e.isGroup&&e.userId==t.fromId);if(r>-1){let e=a.done;t.command==a.offline&&(e=a.offline),t.command==a.online&&(e=a.online),t.command==a.online_busy&&(e=a.online_busy),t.command==a.online_leave&&(e=a.online_leave),this.contactList[r].status=e,this.account&&this.account.accountId.length>0&&t.fromId==this.account.accountId&&(this.account.status=t.command);for(const e of this.contactListener)try{e.onContactChange?.(!1,this.contactList[r])}catch(e){}}}catch(e){}}handleContactChange(e){if(e)try{let t=Si.deserialize(e);t.text.length&&rr.getInstance().getContactByUserId(t.text).then(e=>{let t=this.contactList.findIndex(t=>!t.isGroup&&t.userId==e.userId);if(t>-1){this.contactList.splice(t,1,e);for(const t of this.contactListener)try{t.onContactChange?.(!1,e)}catch(e){}}})}catch(e){}}handleNotice(e){if(e)try{let t=Si.deserialize(e),r=this.buildMessage(t);for(const e of this.messageListener)try{e.onNotice?.(r)}catch(e){}}catch(e){}}handleMessage(e){if(e)try{let t=Si.deserialize(e),r=this.buildMessage(t);try{pr.getInstance().setClient(this).signMessage(r.messageId,r.joinId).then()}catch(e){}for(const e of this.messageListener)try{e.onMessage?.(r)}catch(e){}}catch(e){}}handleMessageTeam(e){if(e)try{let t=Si.deserialize(e),r=this.buildMessage(t);for(const e of this.teamListener)try{e.onMessage?.(r)}catch(e){}}catch(e){}}}class Ti{_appId="";_issuer="";_host="";_hosts=[];_debug=!1;_wss=!1;constructor(){}static newBuilder(){return new Ti}whitAppId(e){return this._appId=e,this}whitIssuer(e){return this._issuer=e,this}whitHost(e){return this._host=e,this._hosts.push(e),this}whitHosts(e){return this._hosts=e,this}whitDebug(e){return this._debug=e,this}whitWss(e){return this._wss=e,this}build(){return this}get appId(){return this._appId}get issuer(){return this._issuer}get host(){return this._host}set host(e){this._host=e}get hosts(){return this._hosts}get debug(){return this._debug}get isWss(){return this._wss}}var Ri,Ai,_i=r(8287).hp,Oi=jt.Contacts,Ci=Ut.Rooms,xi=Ht.MessageSign,Ni=zt.Message;class Di extends Yt{static instance;client=null;constructor(){super()}static getInstance(){return Di.instance||(Di.instance=new Di),Di.instance}setClient(e){return this.client=e,this}search(e,t,r=1,i=50){return new Promise((n,s)=>{if(this.checkSocket().length)return void s(new Error(this.checkSocket()));this.client.meta.page=r,this.client.meta.pageSize=i;let a=0;try{e>1&&(a=Number(t))}catch(e){}const o=new Ci({meta:this.client.meta,talkMode:e,type:1==e?"protected":"",roomname:1==e||a?"":t,account:1==e?t:a?a+"":""});let l=[];this.client.socket?.requestStream({data:_i.from(o.serializeBinary().buffer),metadata:this.buildRoute("group.search")},this.client.pageSize,{onComplete:()=>{n(l)},onNext:(e,t)=>{try{if(e.data){let t=Ci.deserialize(e.data),r=this.buildGroup(t);l.push(r)}}catch(e){s(new Error("IO Client Error"))}},onError:e=>{let t=e?.message+"",r=this.onError(t);r.length>0?s(new Error(r)):s(new Error(t))},onExtension(e,t,r){}})})}getMembers(e,t=1){return new Promise((r,i)=>{if(this.checkSocket().length)return void i(new Error(this.checkSocket()));this.client.meta.page=t;const n=new Oi({meta:this.client.meta,joinRoomId:e});let s=[];this.client.socket?.requestStream({data:_i.from(n.serializeBinary().buffer),metadata:this.buildRoute("group.members")},this.client.pageSize,{onComplete:()=>{r(s)},onNext:(e,t)=>{try{if(e.data){let t=Oi.deserialize(e.data),r=this.buildMember(t);s.push(r)}}catch(e){i(new Error("IO Client Error"))}},onError:e=>{let t=e?.message+"",r=this.onError(t);r.length>0?i(new Error(r)):i(new Error(t))},onExtension(e,t,r){}})})}getGroupById(e){return new Promise(async(t,r)=>{if(this.checkSocket().length)return void r(new Error(this.checkSocket()));const i=new Oi({meta:this.client.meta,joinRoomId:e});let n=null;this.client.socket?.requestResponse({data:_i.from(i.serializeBinary().buffer),metadata:this.buildRoute("group.byId")},{onComplete:()=>{t(n)},onNext:(e,i)=>{try{if(e.data){let r=Ci.deserialize(e.data),s=this.buildGroup(r);n=s,i&&t(n)}}catch(e){r(new Error("IO Client Error"))}},onError:e=>{let t=e?.message+"",i=this.onError(t);i.length>0?r(new Error(i)):r(new Error(t))},onExtension(e,t,r){}})})}createGroup(e,t){return new Promise(async(r,i)=>{if(this.checkSocket().length)return void i(new Error(this.checkSocket()));let n=await rr.getInstance().setClient(this.client).getContactList();if(n.length<=0)return void i(new Error("联系人获取失败"));let s=n.filter(e=>!e.isGroup&&-1!=t.findIndex(t=>t==e.userId));if(s.length<=0)return void i(new Error("您设置的群成员不正确"));let a=s.map(e=>new Oi({userId:e.userId}));const o=new Ci({meta:this.client.meta,roomname:e,users:a});let l=null;this.client.socket?.requestResponse({data:_i.from(o.serializeBinary().buffer),metadata:this.buildRoute("group.create")},{onComplete:()=>{r(l)},onNext:(e,t)=>{try{if(e.data){let i=Ci.deserialize(e.data),n=this.buildGroup(i);l=n,t&&r(l)}}catch(e){i(new Error("IO Client Error"))}},onError:e=>{let t=e?.message+"",r=this.onError(t);r.length>0?i(new Error(r)):i(new Error(t))},onExtension(e,t,r){}})})}joinGroup(e,t){return new Promise((r,i)=>{if(this.checkSocket().length)return void i(new Error(this.checkSocket()));const n=new Oi({meta:this.client.meta,joinRoomId:e,remark:t});let s=[];this.client.socket?.requestStream({data:_i.from(n.serializeBinary().buffer),metadata:this.buildRoute("group.join")},this.client.pageSize,{onComplete:()=>{r(s)},onNext:(e,t)=>{try{if(e.data){let t=Oi.deserialize(e.data),r=this.buildMember(t);s.push(r)}}catch(e){i(new Error("IO Client Error"))}},onError:e=>{let t=e?.message+"",r=this.onError(t);r.length>0?i(new Error(r)):i(new Error(t))},onExtension(e,t,r){}})})}groupInvite(e,t){return new Promise((r,i)=>{if(this.checkSocket().length)return void i(new Error(this.checkSocket()));const n=new Oi({meta:this.client.meta,joinRoomId:e,fromUserId:t});let s=null;this.client.socket?.requestResponse({data:_i.from(n.serializeBinary().buffer),metadata:this.buildRoute("group.invite")},{onComplete:()=>{r(s)},onNext:(e,t)=>{try{if(e.data){let i=Ci.deserialize(e.data),n=this.buildGroup(i);s=n,t&&r(s)}}catch(e){i(new Error("IO Client Error"))}},onError:e=>{let t=e?.message+"",r=this.onError(t);r.length>0?i(new Error(r)):i(new Error(t))},onExtension(e,t,r){}})})}exit(e){return new Promise((t,r)=>{if(this.checkSocket().length)return void r(new Error(this.checkSocket()));const i=new Oi({meta:this.client.meta,joinRoomId:e});this.client.socket?.requestStream({data:_i.from(i.serializeBinary().buffer),metadata:this.buildRoute("group.exit")},30,{onComplete:()=>{t("")},onNext:(e,t)=>{},onError:e=>{let t=e?.message+"",i=this.onError(t);i.length>0?r(new Error(i)):r(new Error(t))},onExtension(e,t,r){}})})}removeMember(e,t){return new Promise((r,i)=>{if(this.checkSocket().length)return void i(new Error(this.checkSocket()));const n=new Oi({meta:this.client.meta,joinRoomId:e,fromUserId:t});this.client.socket?.requestStream({data:_i.from(n.serializeBinary().buffer),metadata:this.buildRoute("group.remove")},30,{onComplete:()=>{r("")},onNext:(e,t)=>{},onError:e=>{let t=e?.message+"",r=this.onError(t);r.length>0?i(new Error(r)):i(new Error(t))},onExtension(e,t,r){}})})}changeOwner(e,t){return new Promise((r,i)=>{if(this.checkSocket().length)return void i(new Error(this.checkSocket()));const n=new Oi({meta:this.client.meta,joinRoomId:e,userId:t});let s=null;this.client.socket?.requestResponse({data:_i.from(n.serializeBinary().buffer),metadata:this.buildRoute("group.change.owner")},{onComplete:()=>{r(s)},onNext:(e,t)=>{try{if(e.data){let i=Oi.deserialize(e.data),n=this.buildContact(i);s=n,t&&r(s)}}catch(e){i(new Error("IO Client Error"))}},onError:e=>{let t=e?.message+"",r=this.onError(t);r.length>0?i(new Error(r)):i(new Error(t))},onExtension(e,t,r){}})})}setManager(e,t){return new Promise((r,i)=>{if(this.checkSocket().length)return void i(new Error(this.checkSocket()));const n=new Oi({meta:this.client.meta,joinRoomId:e,userId:t});this.client.socket?.requestResponse({data:_i.from(n.serializeBinary().buffer),metadata:this.buildRoute("group.set.manager")},{onComplete:()=>{r("")},onNext:(e,t)=>{try{t&&r("")}catch(e){i(new Error("IO Client Error"))}},onError:e=>{let t=e?.message+"",r=this.onError(t);r.length>0?i(new Error(r)):i(new Error(t))},onExtension(e,t,r){}})})}addBlack(e,t,r){return new Promise((i,n)=>{if(this.checkSocket().length)return void n(new Error(this.checkSocket()));const s=new Oi({meta:this.client.meta,joinRoomId:e,userId:t,black:r?1:0});let a=null;this.client.socket?.requestResponse({data:_i.from(s.serializeBinary().buffer),metadata:this.buildRoute("group.add.black")},{onComplete:()=>{i(a)},onNext:(e,t)=>{try{if(e.data){let r=Oi.deserialize(e.data),n=this.buildContact(r);a=n,t&&i(a)}}catch(e){n(new Error("IO Client Error"))}},onError:e=>{let t=e?.message+"",r=this.onError(t);r.length>0?n(new Error(r)):n(new Error(t))},onExtension(e,t,r){}})})}memberMuted(e,t,r){return new Promise((i,n)=>{if(this.checkSocket().length)return void n(new Error(this.checkSocket()));const s=new Oi({meta:this.client.meta,joinRoomId:e,userId:t,apply:r?1:0});let a=null;this.client.socket?.requestResponse({data:_i.from(s.serializeBinary().buffer),metadata:this.buildRoute("group.member.muted")},{onComplete:()=>{i(a)},onNext:(e,t)=>{try{if(e.data){let r=Oi.deserialize(e.data),n=this.buildContact(r);a=n,t&&i(a)}}catch(e){n(new Error("IO Client Error"))}},onError:e=>{let t=e?.message+"",r=this.onError(t);r.length>0?n(new Error(r)):n(new Error(t))},onExtension(e,t,r){}})})}groupMuted(e,t){return new Promise((r,i)=>{if(this.checkSocket().length)return void i(new Error(this.checkSocket()));const n=new Oi({meta:this.client.meta,joinRoomId:e,apply:t?1:0});let s=null;this.client.socket?.requestResponse({data:_i.from(n.serializeBinary().buffer),metadata:this.buildRoute("group.muted")},{onComplete:()=>{r(s)},onNext:(e,t)=>{try{if(e.data){let i=Ci.deserialize(e.data),n=this.buildGroup(i);s=n,t&&r(s)}}catch(e){i(new Error("IO Client Error"))}},onError:e=>{let t=e?.message+"",r=this.onError(t);r.length>0?i(new Error(r)):i(new Error(t))},onExtension(e,t,r){}})})}setGroupQuestion(e,t,r){return new Promise((i,n)=>{if(this.checkSocket().length)return void n(new Error(this.checkSocket()));const s=new Oi({meta:this.client.meta,joinRoomId:e,username:t,remark:r});this.client.socket?.requestResponse({data:_i.from(s.serializeBinary().buffer),metadata:this.buildRoute("group.set.answer")},{onComplete:()=>{i("")},onNext:(e,t)=>{try{t&&i("")}catch(e){n(new Error("IO Client Error"))}},onError:e=>{let t=e?.message+"",r=this.onError(t);r.length>0?n(new Error(r)):n(new Error(t))},onExtension(e,t,r){}})})}setGroupName(e,t){return new Promise((r,i)=>{if(this.checkSocket().length)return void i(new Error(this.checkSocket()));const n=new Oi({meta:this.client.meta,joinRoomId:e,username:t});let s=null;this.client.socket?.requestResponse({data:_i.from(n.serializeBinary().buffer),metadata:this.buildRoute("group.set.groupname")},{onComplete:()=>{r(s)},onNext:(e,t)=>{try{if(e.data){let i=Ci.deserialize(e.data),n=this.buildGroup(i);s=n,t&&r(s)}}catch(e){i(new Error("IO Client Error"))}},onError:e=>{let t=e?.message+"",r=this.onError(t);r.length>0?i(new Error(r)):i(new Error(t))},onExtension(e,t,r){}})})}setGroupAvatar(e,t){return new Promise((r,i)=>{if(this.checkSocket().length)return void i(new Error(this.checkSocket()));const n=new Oi({meta:this.client.meta,joinRoomId:e,avatar:t});let s=null;this.client.socket?.requestResponse({data:_i.from(n.serializeBinary().buffer),metadata:this.buildRoute("group.set.avatar")},{onComplete:()=>{r(s)},onNext:(e,t)=>{try{if(e.data){let i=Ci.deserialize(e.data),n=this.buildGroup(i);s=n,t&&r(s)}}catch(e){i(new Error("IO Client Error"))}},onError:e=>{let t=e?.message+"",r=this.onError(t);r.length>0?i(new Error(r)):i(new Error(t))},onExtension(e,t,r){}})})}setGroupDepict(e,t){return new Promise((r,i)=>{if(this.checkSocket().length)return void i(new Error(this.checkSocket()));const n=new Oi({meta:this.client.meta,joinRoomId:e,remark:t});let s=null;this.client.socket?.requestResponse({data:_i.from(n.serializeBinary().buffer),metadata:this.buildRoute("group.set.depict")},{onComplete:()=>{r(s)},onNext:(e,t)=>{try{if(e.data){let i=Ci.deserialize(e.data),n=this.buildGroup(i);s=n,t&&r(s)}}catch(e){i(new Error("IO Client Error"))}},onError:e=>{let t=e?.message+"",r=this.onError(t);r.length>0?i(new Error(r)):i(new Error(t))},onExtension(e,t,r){}})})}setGroupMemberName(e,t,r){return new Promise((i,n)=>{if(this.checkSocket().length)return void n(new Error(this.checkSocket()));const s=new Oi({meta:this.client.meta,joinRoomId:e,userId:t,username:r});this.client.socket?.requestResponse({data:_i.from(s.serializeBinary().buffer),metadata:this.buildRoute("group.set.username")},{onComplete:()=>{i("")},onNext:(e,t)=>{try{t&&i("")}catch(e){n(new Error("IO Client Error"))}},onError:e=>{let t=e?.message+"",r=this.onError(t);r.length>0?n(new Error(r)):n(new Error(t))},onExtension(e,t,r){}})})}setGroupType(e,t){return new Promise((r,i)=>{if(this.checkSocket().length)return void i(new Error(this.checkSocket()));const n=new Oi({meta:this.client.meta,joinRoomId:e,apply:t});this.client.socket?.requestResponse({data:_i.from(n.serializeBinary().buffer),metadata:this.buildRoute("group.set.type")},{onComplete:()=>{r("")},onNext:(e,t)=>{try{t&&r("")}catch(e){i(new Error("IO Client Error"))}},onError:e=>{let t=e?.message+"",r=this.onError(t);r.length>0?i(new Error(r)):i(new Error(t))},onExtension(e,t,r){}})})}isPrivateChat(e,t){return new Promise((r,i)=>{if(this.checkSocket().length)return void i(new Error(this.checkSocket()));const n=new Oi({meta:this.client.meta,joinRoomId:e,apply:t?1:0});let s=null;this.client.socket?.requestResponse({data:_i.from(n.serializeBinary().buffer),metadata:this.buildRoute("group.set.privateChat")},{onComplete:()=>{r(s)},onNext:(e,t)=>{try{if(e.data){let i=Ci.deserialize(e.data),n=this.buildGroup(i);s=n,t&&r(s)}}catch(e){i(new Error("IO Client Error"))}},onError:e=>{let t=e?.message+"",r=this.onError(t);r.length>0?i(new Error(r)):i(new Error(t))},onExtension(e,t,r){}})})}isApply(e,t){return new Promise((r,i)=>{if(this.checkSocket().length)return void i(new Error(this.checkSocket()));const n=new Oi({meta:this.client.meta,joinRoomId:e,apply:t?1:0});let s=null;this.client.socket?.requestResponse({data:_i.from(n.serializeBinary().buffer),metadata:this.buildRoute("group.set.apply")},{onComplete:()=>{r(s)},onNext:(e,t)=>{try{if(e.data){let i=Ci.deserialize(e.data),n=this.buildGroup(i);s=n,t&&r(s)}}catch(e){i(new Error("IO Client Error"))}},onError:e=>{let t=e?.message+"",r=this.onError(t);r.length>0?i(new Error(r)):i(new Error(t))},onExtension(e,t,r){}})})}isInviteApply(e,t){return new Promise((r,i)=>{if(this.checkSocket().length)return void i(new Error(this.checkSocket()));const n=new Oi({meta:this.client.meta,joinRoomId:e,apply:t?1:0});let s=null;this.client.socket?.requestResponse({data:_i.from(n.serializeBinary().buffer),metadata:this.buildRoute("group.set.need")},{onComplete:()=>{r(s)},onNext:(e,t)=>{try{if(e.data){let i=Ci.deserialize(e.data),n=this.buildGroup(i);s=n,t&&r(s)}}catch(e){i(new Error("IO Client Error"))}},onError:e=>{let t=e?.message+"",r=this.onError(t);r.length>0?i(new Error(r)):i(new Error(t))},onExtension(e,t,r){}})})}isInvite(e,t){return new Promise((r,i)=>{if(this.checkSocket().length)return void i(new Error(this.checkSocket()));const n=new Oi({meta:this.client.meta,joinRoomId:e,apply:t?0:1});let s=null;this.client.socket?.requestResponse({data:_i.from(n.serializeBinary().buffer),metadata:this.buildRoute("group.set.invite")},{onComplete:()=>{r(s)},onNext:(e,t)=>{try{if(e.data){let i=Ci.deserialize(e.data),n=this.buildGroup(i);s=n,t&&r(s)}}catch(e){i(new Error("IO Client Error"))}},onError:e=>{let t=e?.message+"",r=this.onError(t);r.length>0?i(new Error(r)):i(new Error(t))},onExtension(e,t,r){}})})}isRevokeMessage(e,t){return new Promise((r,i)=>{if(this.checkSocket().length)return void i(new Error(this.checkSocket()));const n=new Oi({meta:this.client.meta,joinRoomId:e,apply:t?1:0});let s=null;this.client.socket?.requestResponse({data:_i.from(n.serializeBinary().buffer),metadata:this.buildRoute("group.set.revoke")},{onComplete:()=>{r(s)},onNext:(e,t)=>{try{if(e.data){let i=Ci.deserialize(e.data),n=this.buildGroup(i);s=n,t&&r(s)}}catch(e){i(new Error("IO Client Error"))}},onError:e=>{let t=e?.message+"",r=this.onError(t);r.length>0?i(new Error(r)):i(new Error(t))},onExtension(e,t,r){}})})}messageNotSign(e){return new Promise(async(t,r)=>{if(this.checkSocket().length)return void r(new Error(this.checkSocket()));let i=await rr.getInstance().setClient(this.client).getContactByJoinId(e);if(!i)return void r(new Error("联系人获取失败"));const n=new xi({meta:this.client.meta,roomId:i.joinId});let s=[];this.client.socket?.requestStream({data:_i.from(n.serializeBinary().buffer),metadata:this.buildRoute("message.not.sign")},300,{onComplete:()=>{t(s)},onNext:(e,t)=>{try{if(e.data){let t=Ni.deserialize(e.data),r=this.buildMessage(t);s.push(r);try{for(let e of this.client.messageListener)try{e?.onMessage?.(r)}catch(e){}}catch(e){}}}catch(e){r(new Error("IO Client Error"))}},onError:e=>{let t=e?.message+"",i=this.onError(t);i.length>0?r(new Error(i)):r(new Error(t))},onExtension(e,t,r){}})})}onError(e){if(e.indexOf("Jwt")>-1){try{this.client.clientListener?.onTokenExpired()}catch(e){}return"IO Token 已过期"}return e.indexOf("SQL")>-1||e.indexOf("connect")>-1?"IO System Error":e.indexOf("terminal")>-1||e.indexOf("signal")>-1?"请求超时":""}checkSocket(){return this.client?this.client.socket?0==this.client.getTokenAppId()||this.client.getTokenAppId()!=this.client.meta.appId?"token中的AppId 与 IMIOClientOption不一致":"":"IO Client 尚未建立连接":"IO Client 不存在"}}!function(e){class t extends Kt.Message{#e=[];constructor(e){super(),Kt.Message.initialize(this,Array.isArray(e)?e:[],0,-1,[7,8],this.#e),Array.isArray(e)||"object"!=typeof e||("id"in e&&null!=e.id&&(this.id=e.id),"appId"in e&&null!=e.appId&&(this.appId=e.appId),"v"in e&&null!=e.v&&(this.v=e.v),"sort"in e&&null!=e.sort&&(this.sort=e.sort),"created"in e&&null!=e.created&&(this.created=e.created),"modified"in e&&null!=e.modified&&(this.modified=e.modified),"ids"in e&&null!=e.ids&&(this.ids=e.ids),"appIds"in e&&null!=e.appIds&&(this.appIds=e.appIds),"remark"in e&&null!=e.remark&&(this.remark=e.remark),"meta"in e&&null!=e.meta&&(this.meta=e.meta),"roomId"in e&&null!=e.roomId&&(this.roomId=e.roomId),"nickname"in e&&null!=e.nickname&&(this.nickname=e.nickname),"username"in e&&null!=e.username&&(this.username=e.username),"account"in e&&null!=e.account&&(this.account=e.account),"mobile"in e&&null!=e.mobile&&(this.mobile=e.mobile),"email"in e&&null!=e.email&&(this.email=e.email),"avatar"in e&&null!=e.avatar&&(this.avatar=e.avatar),"gender"in e&&null!=e.gender&&(this.gender=e.gender),"birth"in e&&null!=e.birth&&(this.birth=e.birth))}get id(){return Kt.Message.getFieldWithDefault(this,1,"")}set id(e){Kt.Message.setField(this,1,e)}get appId(){return Kt.Message.getFieldWithDefault(this,2,0)}set appId(e){Kt.Message.setField(this,2,e)}get v(){return Kt.Message.getFieldWithDefault(this,3,0)}set v(e){Kt.Message.setField(this,3,e)}get sort(){return Kt.Message.getFieldWithDefault(this,4,0)}set sort(e){Kt.Message.setField(this,4,e)}get created(){return Kt.Message.getFieldWithDefault(this,5,"")}set created(e){Kt.Message.setField(this,5,e)}get modified(){return Kt.Message.getFieldWithDefault(this,6,"")}set modified(e){Kt.Message.setField(this,6,e)}get ids(){return Kt.Message.getFieldWithDefault(this,7,[])}set ids(e){Kt.Message.setField(this,7,e)}get appIds(){return Kt.Message.getFieldWithDefault(this,8,[])}set appIds(e){Kt.Message.setField(this,8,e)}get remark(){return Kt.Message.getFieldWithDefault(this,9,"")}set remark(e){Kt.Message.setField(this,9,e)}get meta(){return Kt.Message.getWrapperField(this,Nt.Meta,10)}set meta(e){Kt.Message.setWrapperField(this,10,e)}get has_meta(){return null!=Kt.Message.getField(this,10)}get roomId(){return Kt.Message.getFieldWithDefault(this,11,0)}set roomId(e){Kt.Message.setField(this,11,e)}get nickname(){return Kt.Message.getFieldWithDefault(this,12,"")}set nickname(e){Kt.Message.setField(this,12,e)}get username(){return Kt.Message.getFieldWithDefault(this,13,"")}set username(e){Kt.Message.setField(this,13,e)}get account(){return Kt.Message.getFieldWithDefault(this,14,"")}set account(e){Kt.Message.setField(this,14,e)}get mobile(){return Kt.Message.getFieldWithDefault(this,15,"")}set mobile(e){Kt.Message.setField(this,15,e)}get email(){return Kt.Message.getFieldWithDefault(this,16,"")}set email(e){Kt.Message.setField(this,16,e)}get avatar(){return Kt.Message.getFieldWithDefault(this,17,"")}set avatar(e){Kt.Message.setField(this,17,e)}get gender(){return Kt.Message.getFieldWithDefault(this,18,0)}set gender(e){Kt.Message.setField(this,18,e)}get birth(){return Kt.Message.getFieldWithDefault(this,19,"")}set birth(e){Kt.Message.setField(this,19,e)}static fromObject(e){const r=new t({});return null!=e.id&&(r.id=e.id),null!=e.appId&&(r.appId=e.appId),null!=e.v&&(r.v=e.v),null!=e.sort&&(r.sort=e.sort),null!=e.created&&(r.created=e.created),null!=e.modified&&(r.modified=e.modified),null!=e.ids&&(r.ids=e.ids),null!=e.appIds&&(r.appIds=e.appIds),null!=e.remark&&(r.remark=e.remark),null!=e.meta&&(r.meta=Nt.Meta.fromObject(e.meta)),null!=e.roomId&&(r.roomId=e.roomId),null!=e.nickname&&(r.nickname=e.nickname),null!=e.username&&(r.username=e.username),null!=e.account&&(r.account=e.account),null!=e.mobile&&(r.mobile=e.mobile),null!=e.email&&(r.email=e.email),null!=e.avatar&&(r.avatar=e.avatar),null!=e.gender&&(r.gender=e.gender),null!=e.birth&&(r.birth=e.birth),r}toObject(){const e={};return null!=this.id&&(e.id=this.id),null!=this.appId&&(e.appId=this.appId),null!=this.v&&(e.v=this.v),null!=this.sort&&(e.sort=this.sort),null!=this.created&&(e.created=this.created),null!=this.modified&&(e.modified=this.modified),null!=this.ids&&(e.ids=this.ids),null!=this.appIds&&(e.appIds=this.appIds),null!=this.remark&&(e.remark=this.remark),null!=this.meta&&(e.meta=this.meta.toObject()),null!=this.roomId&&(e.roomId=this.roomId),null!=this.nickname&&(e.nickname=this.nickname),null!=this.username&&(e.username=this.username),null!=this.account&&(e.account=this.account),null!=this.mobile&&(e.mobile=this.mobile),null!=this.email&&(e.email=this.email),null!=this.avatar&&(e.avatar=this.avatar),null!=this.gender&&(e.gender=this.gender),null!=this.birth&&(e.birth=this.birth),e}serialize(e){const t=e||new Kt.BinaryWriter;if(this.id.length&&t.writeString(1,this.id),0!=this.appId&&t.writeInt64(2,this.appId),0!=this.v&&t.writeDouble(3,this.v),0!=this.sort&&t.writeInt32(4,this.sort),this.created.length&&t.writeString(5,this.created),this.modified.length&&t.writeString(6,this.modified),this.ids.length&&t.writeRepeatedString(7,this.ids),this.appIds.length&&t.writeRepeatedString(8,this.appIds),this.remark.length&&t.writeString(9,this.remark),this.has_meta&&t.writeMessage(10,this.meta,()=>this.meta.serialize(t)),0!=this.roomId&&t.writeInt64(11,this.roomId),this.nickname.length&&t.writeString(12,this.nickname),this.username.length&&t.writeString(13,this.username),this.account.length&&t.writeString(14,this.account),this.mobile.length&&t.writeString(15,this.mobile),this.email.length&&t.writeString(16,this.email),this.avatar.length&&t.writeString(17,this.avatar),0!=this.gender&&t.writeInt32(18,this.gender),this.birth.length&&t.writeString(19,this.birth),!e)return t.getResultBuffer()}static deserialize(e){const r=e instanceof Kt.BinaryReader?e:new Kt.BinaryReader(e),i=new t;for(;r.nextField()&&!r.isEndGroup();)switch(r.getFieldNumber()){case 1:i.id=r.readString();break;case 2:i.appId=r.readInt64();break;case 3:i.v=r.readDouble();break;case 4:i.sort=r.readInt32();break;case 5:i.created=r.readString();break;case 6:i.modified=r.readString();break;case 7:Kt.Message.addToRepeatedField(i,7,r.readString());break;case 8:Kt.Message.addToRepeatedField(i,8,r.readString());break;case 9:i.remark=r.readString();break;case 10:r.readMessage(i.meta,()=>i.meta=Nt.Meta.deserialize(r));break;case 11:i.roomId=r.readInt64();break;case 12:i.nickname=r.readString();break;case 13:i.username=r.readString();break;case 14:i.account=r.readString();break;case 15:i.mobile=r.readString();break;case 16:i.email=r.readString();break;case 17:i.avatar=r.readString();break;case 18:i.gender=r.readInt32();break;case 19:i.birth=r.readString();break;default:r.skipField()}return i}serializeBinary(){return this.serialize()}static deserializeBinary(e){return t.deserialize(e)}}e.Users=t}(Ri||(Ri={})),function(e){class t extends Kt.Message{#e=[];constructor(e){super(),Kt.Message.initialize(this,Array.isArray(e)?e:[],0,-1,[7,8],this.#e),Array.isArray(e)||"object"!=typeof e||("id"in e&&null!=e.id&&(this.id=e.id),"appId"in e&&null!=e.appId&&(this.appId=e.appId),"v"in e&&null!=e.v&&(this.v=e.v),"sort"in e&&null!=e.sort&&(this.sort=e.sort),"created"in e&&null!=e.created&&(this.created=e.created),"modified"in e&&null!=e.modified&&(this.modified=e.modified),"ids"in e&&null!=e.ids&&(this.ids=e.ids),"appIds"in e&&null!=e.appIds&&(this.appIds=e.appIds),"remark"in e&&null!=e.remark&&(this.remark=e.remark),"meta"in e&&null!=e.meta&&(this.meta=e.meta),"userId"in e&&null!=e.userId&&(this.userId=e.userId),"device"in e&&null!=e.device&&(this.device=e.device),"roomId"in e&&null!=e.roomId&&(this.roomId=e.roomId),"status"in e&&null!=e.status&&(this.status=e.status),"state"in e&&null!=e.state&&(this.state=e.state),"gateway"in e&&null!=e.gateway&&(this.gateway=e.gateway),"deviceKey"in e&&null!=e.deviceKey&&(this.deviceKey=e.deviceKey),"deviceTag"in e&&null!=e.deviceTag&&(this.deviceTag=e.deviceTag),"region"in e&&null!=e.region&&(this.region=e.region))}get id(){return Kt.Message.getFieldWithDefault(this,1,0)}set id(e){Kt.Message.setField(this,1,e)}get appId(){return Kt.Message.getFieldWithDefault(this,2,0)}set appId(e){Kt.Message.setField(this,2,e)}get v(){return Kt.Message.getFieldWithDefault(this,3,0)}set v(e){Kt.Message.setField(this,3,e)}get sort(){return Kt.Message.getFieldWithDefault(this,4,0)}set sort(e){Kt.Message.setField(this,4,e)}get created(){return Kt.Message.getFieldWithDefault(this,5,"")}set created(e){Kt.Message.setField(this,5,e)}get modified(){return Kt.Message.getFieldWithDefault(this,6,"")}set modified(e){Kt.Message.setField(this,6,e)}get ids(){return Kt.Message.getFieldWithDefault(this,7,[])}set ids(e){Kt.Message.setField(this,7,e)}get appIds(){return Kt.Message.getFieldWithDefault(this,8,[])}set appIds(e){Kt.Message.setField(this,8,e)}get remark(){return Kt.Message.getFieldWithDefault(this,9,"")}set remark(e){Kt.Message.setField(this,9,e)}get meta(){return Kt.Message.getWrapperField(this,Nt.Meta,10)}set meta(e){Kt.Message.setWrapperField(this,10,e)}get has_meta(){return null!=Kt.Message.getField(this,10)}get userId(){return Kt.Message.getFieldWithDefault(this,11,"")}set userId(e){Kt.Message.setField(this,11,e)}get device(){return Kt.Message.getFieldWithDefault(this,12,"")}set device(e){Kt.Message.setField(this,12,e)}get roomId(){return Kt.Message.getFieldWithDefault(this,13,0)}set roomId(e){Kt.Message.setField(this,13,e)}get status(){return Kt.Message.getFieldWithDefault(this,14,"")}set status(e){Kt.Message.setField(this,14,e)}get state(){return Kt.Message.getFieldWithDefault(this,15,"")}set state(e){Kt.Message.setField(this,15,e)}get gateway(){return Kt.Message.getFieldWithDefault(this,16,"")}set gateway(e){Kt.Message.setField(this,16,e)}get deviceKey(){return Kt.Message.getFieldWithDefault(this,17,"")}set deviceKey(e){Kt.Message.setField(this,17,e)}get deviceTag(){return Kt.Message.getFieldWithDefault(this,18,"")}set deviceTag(e){Kt.Message.setField(this,18,e)}get region(){return Kt.Message.getFieldWithDefault(this,19,"")}set region(e){Kt.Message.setField(this,19,e)}static fromObject(e){const r=new t({});return null!=e.id&&(r.id=e.id),null!=e.appId&&(r.appId=e.appId),null!=e.v&&(r.v=e.v),null!=e.sort&&(r.sort=e.sort),null!=e.created&&(r.created=e.created),null!=e.modified&&(r.modified=e.modified),null!=e.ids&&(r.ids=e.ids),null!=e.appIds&&(r.appIds=e.appIds),null!=e.remark&&(r.remark=e.remark),null!=e.meta&&(r.meta=Nt.Meta.fromObject(e.meta)),null!=e.userId&&(r.userId=e.userId),null!=e.device&&(r.device=e.device),null!=e.roomId&&(r.roomId=e.roomId),null!=e.status&&(r.status=e.status),null!=e.state&&(r.state=e.state),null!=e.gateway&&(r.gateway=e.gateway),null!=e.deviceKey&&(r.deviceKey=e.deviceKey),null!=e.deviceTag&&(r.deviceTag=e.deviceTag),null!=e.region&&(r.region=e.region),r}toObject(){const e={};return null!=this.id&&(e.id=this.id),null!=this.appId&&(e.appId=this.appId),null!=this.v&&(e.v=this.v),null!=this.sort&&(e.sort=this.sort),null!=this.created&&(e.created=this.created),null!=this.modified&&(e.modified=this.modified),null!=this.ids&&(e.ids=this.ids),null!=this.appIds&&(e.appIds=this.appIds),null!=this.remark&&(e.remark=this.remark),null!=this.meta&&(e.meta=this.meta.toObject()),null!=this.userId&&(e.userId=this.userId),null!=this.device&&(e.device=this.device),null!=this.roomId&&(e.roomId=this.roomId),null!=this.status&&(e.status=this.status),null!=this.state&&(e.state=this.state),null!=this.gateway&&(e.gateway=this.gateway),null!=this.deviceKey&&(e.deviceKey=this.deviceKey),null!=this.deviceTag&&(e.deviceTag=this.deviceTag),null!=this.region&&(e.region=this.region),e}serialize(e){const t=e||new Kt.BinaryWriter;if(0!=this.id&&t.writeInt64(1,this.id),0!=this.appId&&t.writeInt64(2,this.appId),0!=this.v&&t.writeDouble(3,this.v),0!=this.sort&&t.writeInt32(4,this.sort),this.created.length&&t.writeString(5,this.created),this.modified.length&&t.writeString(6,this.modified),this.ids.length&&t.writeRepeatedString(7,this.ids),this.appIds.length&&t.writeRepeatedString(8,this.appIds),this.remark.length&&t.writeString(9,this.remark),this.has_meta&&t.writeMessage(10,this.meta,()=>this.meta.serialize(t)),this.userId.length&&t.writeString(11,this.userId),this.device.length&&t.writeString(12,this.device),0!=this.roomId&&t.writeInt64(13,this.roomId),this.status.length&&t.writeString(14,this.status),this.state.length&&t.writeString(15,this.state),this.gateway.length&&t.writeString(16,this.gateway),this.deviceKey.length&&t.writeString(17,this.deviceKey),this.deviceTag.length&&t.writeString(18,this.deviceTag),this.region.length&&t.writeString(19,this.region),!e)return t.getResultBuffer()}static deserialize(e){const r=e instanceof Kt.BinaryReader?e:new Kt.BinaryReader(e),i=new t;for(;r.nextField()&&!r.isEndGroup();)switch(r.getFieldNumber()){case 1:i.id=r.readInt64();break;case 2:i.appId=r.readInt64();break;case 3:i.v=r.readDouble();break;case 4:i.sort=r.readInt32();break;case 5:i.created=r.readString();break;case 6:i.modified=r.readString();break;case 7:Kt.Message.addToRepeatedField(i,7,r.readString());break;case 8:Kt.Message.addToRepeatedField(i,8,r.readString());break;case 9:i.remark=r.readString();break;case 10:r.readMessage(i.meta,()=>i.meta=Nt.Meta.deserialize(r));break;case 11:i.userId=r.readString();break;case 12:i.device=r.readString();break;case 13:i.roomId=r.readInt64();break;case 14:i.status=r.readString();break;case 15:i.state=r.readString();break;case 16:i.gateway=r.readString();break;case 17:i.deviceKey=r.readString();break;case 18:i.deviceTag=r.readString();break;case 19:i.region=r.readString();break;default:r.skipField()}return i}serializeBinary(){return this.serialize()}static deserializeBinary(e){return t.deserialize(e)}}e.UserStatus=t}(Ai||(Ai={}));var Pi,Li=r(8287).hp,Bi=Ri.Users,ji=zt.Message,Ui=Ai.UserStatus;class Wi extends Yt{static instance;client=null;constructor(){super()}static getInstance(){return Wi.instance||(Wi.instance=new Wi),Wi.instance}setClient(e){return this.client=e,this}getUserDeviceStatus(e){return new Promise((t,r)=>{if(this.checkSocket().length)return void r(new Error(this.checkSocket()));const i=new Ui({meta:this.client.meta,userId:e});let n=[];this.client.socket?.requestStream({data:Li.from(i.serializeBinary().buffer),metadata:this.buildRoute("device.status.byUserid")},100,{onComplete:()=>{t(n)},onNext:(e,t)=>{try{if(e.data){let t=Ui.deserialize(e.data),r=this.buildDeviceStatus(t);n.push(r)}}catch(e){r(new Error("IO Client Error"))}},onError:e=>{let t=e?.message+"",i=this.onError(t);i.length>0?r(new Error(i)):r(new Error(t))},onExtension(e,t,r){}})})}updateDeviceStatus(e){return new Promise((t,r)=>{if(this.checkSocket().length)return void r(new Error(this.checkSocket()));const i=new Ui({meta:this.client.meta,status:e.toString()});let n=[];this.client.socket?.requestStream({data:Li.from(i.serializeBinary().buffer),metadata:this.buildRoute("device.status.update")},100,{onComplete:()=>{t(n)},onNext:(e,t)=>{try{if(e.data){let t=Ui.deserialize(e.data),r=this.buildDeviceStatus(t);n.push(r)}}catch(e){r(new Error("IO Client Error"))}},onError:e=>{let t=e?.message+"",i=this.onError(t);i.length>0?r(new Error(i)):r(new Error(t))},onExtension(e,t,r){}})})}getNoticeMessage(e,t=1,r=40){return new Promise(async(i,n)=>{if(this.checkSocket().length)return void n(new Error(this.checkSocket()));this.client.meta.page=t,this.client.meta.pageSize=r;let s=e.toString();"notify"==e&&(s="cc"),"quietly"==e&&(s="bcc");const a=new ji({meta:this.client.meta,roomId:this.client.meta.roomId,label:s});let o=[];this.client.socket?.requestStream({data:Li.from(a.serializeBinary().buffer),metadata:this.buildRoute("message.notice.page")},500,{onComplete:()=>{i(o)},onNext:(e,t)=>{try{if(e.data){let t=ji.deserialize(e.data),r=this.buildMessage(t);o.push(r)}}catch(e){n(new Error("IO Client Error"))}},onError:e=>{let t=e?.message+"",r=this.onError(t);r.length>0?n(new Error(r)):n(new Error(t))},onExtension(e,t,r){}})})}updateUserInfo(e="",t="",r="",i=""){return new Promise((r,i)=>{if(this.checkSocket().length)return void i(new Error(this.checkSocket()));const n=new Bi({meta:this.client.meta,nickname:e,avatar:t});this.client.socket?.requestResponse({data:Li.from(n.serializeBinary().buffer),metadata:this.buildRoute("user.update.info")},{onComplete:()=>{r("")},onNext:(e,t)=>{try{t&&r("")}catch(e){i(new Error("IO Client Error"))}},onError:e=>{let t=e?.message+"",r=this.onError(t);r.length>0?i(new Error(r)):i(new Error(t))},onExtension(e,t,r){}})})}onError(e){if(e.indexOf("Jwt")>-1){try{this.client.clientListener?.onTokenExpired()}catch(e){}return"IO Token 已过期"}return e.indexOf("SQL")>-1||e.indexOf("connect")>-1?"IO System Error":e.indexOf("terminal")>-1||e.indexOf("signal")>-1?"请求超时":""}checkSocket(){return this.client?this.client.socket?0==this.client.getTokenAppId()||this.client.getTokenAppId()!=this.client.meta.appId?"token中的AppId 与 IMIOClientOption不一致":"":"IO Client 尚未建立连接":"IO Client 不存在"}}class zi{messageId="";joinId=0;cite="";type="";title="";subtitle="";text="";secret="";thumb="";host="";url="";lng="";lat="";size=0;length=0;hintList=null;notifyList=null;quietlyList=null;constructor(e){this.type=e}static buildSimpleText(e,t){let r=new zi(Pi.TEXT);if(t.length>8e4)throw Error("文本太长");return r.joinId=e,r.text=t,r}static buildImage(e,t,r,i=""){let n=new zi(Pi.IMG);if(t.length>200)throw Error("host 太长");if(r.length>2e3)throw Error("URL 太长");if(i.length>500)throw Error("secret 太长");return n.joinId=e,n.host=t,n.url=r,n.secret=i,n}static buildFile(e,t,r,i,n=""){let s=new zi(Pi.FILE);if(t.length>200)throw Error("host 太长");if(r.length>2e3)throw Error("URL 太长");if(n.length>500)throw Error("secret 太长");return s.joinId=e,s.host=t,s.url=r,s.text=i,s.secret=n,s}static buildVideo(e,t,r,i,n=""){let s=new zi(Pi.VIDEO);if(t.length>200)throw Error("host 太长");if(r.length>2e3)throw Error("URL 太长");if(n.length>500)throw Error("secret 太长");return s.joinId=e,s.host=t,s.url=r,s.secret=n,s.size=i,s}static buildAudio(e,t,r,i,n=""){let s=new zi(Pi.AUDIO);if(t.length>200)throw Error("host 太长");if(r.length>2e3)throw Error("URL 太长");if(n.length>500)throw Error("secret 太长");return s.joinId=e,s.host=t,s.url=r,s.length=i,s.secret=n,s}withCite(e){if(e.length>100)throw Error("Cite 太长");return this.cite=e,this}withTitle(e){if(e.length>200)throw Error("title 太长");return this.title=e,this}withSubtitle(e){if(e.length>200)throw Error("subtitle 太长");return this.subtitle=e,this}withSecret(e){if(this.type==Pi.TEXT)throw new Error("Secret 属性与消息类型不匹配");if(e.length>500)throw new Error("Secret 长度太长");return this.secret=e,this}withThumb(e){if(this.type==Pi.TEXT)throw new Error("Thumb 属性与消息类型不匹配");if(e.length>2e3)throw Error("thumb 太长");return this.thumb=e,this}withHost(e){if(this.type==Pi.TEXT)throw new Error("Host 属性与消息类型不匹配");if(e.length>250)throw new Error("Host 长度太长");return this.host=e,this}withUrl(e){if(this.type==Pi.TEXT)throw new Error("Url 属性与消息类型不匹配");if(e.length>2e3)throw Error("URL 太长");return this.url=e,this}withSize(e){if(this.type!=Pi.IMG&&this.type!=Pi.AUDIO&&this.type!=Pi.VIDEO&&this.type!=Pi.FILE)throw new Error("Size 属性与消息类型不匹配");return this.size=e,this}withLength(e){if(this.type!=Pi.AUDIO)throw new Error("Length 属性与消息类型不匹配");return this.length=e,this}}!function(e){e.TEXT="txt",e.IMG="img",e.AUDIO="audio",e.VIDEO="video",e.FILE="file",e.LOC="loc",e.WALLET="wallet",e.CUSTOM="custom"}(Pi||(Pi={}));const Hi={IMIOClient:Fi,IMIOClientOption:Ti,IMIOGroupManager:Di,IMIOContactManager:rr,IMIOClientConnectStatus:Pt,IMIOTeamManager:ar,IMIOMessageSender:zi,IMIOMessageSenderHint:class{targetId="";targetName="";avatar=""},IMIOMessageType:Pi,IMIOUserInfoManager:Wi,IMIOMessageLabel:t,IMIOMessage:h,IMIOMessageTalk:n,IMIOContact:d,IMIOContactStatus:a,IMIOGroup:m,IMIOGroupType:o,IMIOChatManager:pr,IMIOMember:p,IMIODeviceStatus:g,IMIOContactNotice:s}})(),i.default})());
2
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["imio-sdk-lite"]=t():e["imio-sdk-lite"]=t()}(self,()=>(()=>{var e={19:function(e,t,r){var i,n,s,a,o,l,u,c,h;e.exports=(h=r(9021),r(3009),r(1025),s=(n=(i=h).lib).Base,a=n.WordArray,l=(o=i.algo).SHA256,u=o.HMAC,c=o.PBKDF2=s.extend({cfg:s.extend({keySize:4,hasher:l,iterations:25e4}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var r=this.cfg,i=u.create(r.hasher,e),n=a.create(),s=a.create([1]),o=n.words,l=s.words,c=r.keySize,h=r.iterations;o.length<c;){var d=i.update(t).finalize(s);i.reset();for(var p=d.words,f=p.length,g=d,m=1;m<h;m++){g=i.finalize(g),i.reset();for(var y=g.words,v=0;v<f;v++)p[v]^=y[v]}n.concat(d),l[0]++}return n.sigBytes=4*c,n}}),i.PBKDF2=function(e,t,r){return c.create(r).compute(e,t)},h.PBKDF2)},25:function(e,t,r){var i,n,s,a;e.exports=(a=r(9021),r(7165),n=(i=a).lib.CipherParams,s=i.enc.Hex,i.format.Hex={stringify:function(e){return e.ciphertext.toString(s)},parse:function(e){var t=s.parse(e);return n.create({ciphertext:t})}},a.format.Hex)},251:(e,t)=>{t.read=function(e,t,r,i,n){var s,a,o=8*n-i-1,l=(1<<o)-1,u=l>>1,c=-7,h=r?n-1:0,d=r?-1:1,p=e[t+h];for(h+=d,s=p&(1<<-c)-1,p>>=-c,c+=o;c>0;s=256*s+e[t+h],h+=d,c-=8);for(a=s&(1<<-c)-1,s>>=-c,c+=i;c>0;a=256*a+e[t+h],h+=d,c-=8);if(0===s)s=1-u;else{if(s===l)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,i),s-=u}return(p?-1:1)*a*Math.pow(2,s-i)},t.write=function(e,t,r,i,n,s){var a,o,l,u=8*s-n-1,c=(1<<u)-1,h=c>>1,d=23===n?Math.pow(2,-24)-Math.pow(2,-77):0,p=i?0:s-1,f=i?1:-1,g=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(o=isNaN(t)?1:0,a=c):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),(t+=a+h>=1?d/l:d*Math.pow(2,1-h))*l>=2&&(a++,l/=2),a+h>=c?(o=0,a=c):a+h>=1?(o=(t*l-1)*Math.pow(2,n),a+=h):(o=t*Math.pow(2,h-1)*Math.pow(2,n),a=0));n>=8;e[r+p]=255&o,p+=f,o/=256,n-=8);for(a=a<<n|o,u+=n;u>0;e[r+p]=255&a,p+=f,a/=256,u-=8);e[r+p-f]|=128*g}},288:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},477:()=>{},482:function(e,t,r){var i;e.exports=(i=r(9021),r(7165),i.pad.Iso97971={pad:function(e,t){e.concat(i.lib.WordArray.create([2147483648],1)),i.pad.ZeroPadding.pad(e,t)},unpad:function(e){i.pad.ZeroPadding.unpad(e),e.sigBytes--}},i.pad.Iso97971)},754:function(e,t,r){var i,n,s;e.exports=(i=r(9021),s=(n=i).lib.WordArray,n.enc.Base64={stringify:function(e){var t=e.words,r=e.sigBytes,i=this._map;e.clamp();for(var n=[],s=0;s<r;s+=3)for(var a=(t[s>>>2]>>>24-s%4*8&255)<<16|(t[s+1>>>2]>>>24-(s+1)%4*8&255)<<8|t[s+2>>>2]>>>24-(s+2)%4*8&255,o=0;o<4&&s+.75*o<r;o++)n.push(i.charAt(a>>>6*(3-o)&63));var l=i.charAt(64);if(l)for(;n.length%4;)n.push(l);return n.join("")},parse:function(e){var t=e.length,r=this._map,i=this._reverseMap;if(!i){i=this._reverseMap=[];for(var n=0;n<r.length;n++)i[r.charCodeAt(n)]=n}var a=r.charAt(64);if(a){var o=e.indexOf(a);-1!==o&&(t=o)}return function(e,t,r){for(var i=[],n=0,a=0;a<t;a++)if(a%4){var o=r[e.charCodeAt(a-1)]<<a%4*2|r[e.charCodeAt(a)]>>>6-a%4*2;i[n>>>2]|=o<<24-n%4*8,n++}return s.create(i,n)}(e,t,i)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},i.enc.Base64)},955:function(e,t,r){var i;e.exports=(i=r(9021),r(754),r(4636),r(9506),r(7165),function(){var e=i,t=e.lib.BlockCipher,r=e.algo,n=[],s=[],a=[],o=[],l=[],u=[],c=[],h=[],d=[],p=[];!function(){for(var e=[],t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;var r=0,i=0;for(t=0;t<256;t++){var f=i^i<<1^i<<2^i<<3^i<<4;f=f>>>8^255&f^99,n[r]=f,s[f]=r;var g=e[r],m=e[g],y=e[m],v=257*e[f]^16843008*f;a[r]=v<<24|v>>>8,o[r]=v<<16|v>>>16,l[r]=v<<8|v>>>24,u[r]=v,v=16843009*y^65537*m^257*g^16843008*r,c[f]=v<<24|v>>>8,h[f]=v<<16|v>>>16,d[f]=v<<8|v>>>24,p[f]=v,r?(r=g^e[e[e[y^g]]],i^=e[e[i]]):r=i=1}}();var f=[0,1,2,4,8,16,32,64,128,27,54],g=r.AES=t.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var e=this._keyPriorReset=this._key,t=e.words,r=e.sigBytes/4,i=4*((this._nRounds=r+6)+1),s=this._keySchedule=[],a=0;a<i;a++)a<r?s[a]=t[a]:(u=s[a-1],a%r?r>6&&a%r==4&&(u=n[u>>>24]<<24|n[u>>>16&255]<<16|n[u>>>8&255]<<8|n[255&u]):(u=n[(u=u<<8|u>>>24)>>>24]<<24|n[u>>>16&255]<<16|n[u>>>8&255]<<8|n[255&u],u^=f[a/r|0]<<24),s[a]=s[a-r]^u);for(var o=this._invKeySchedule=[],l=0;l<i;l++){if(a=i-l,l%4)var u=s[a];else u=s[a-4];o[l]=l<4||a<=4?u:c[n[u>>>24]]^h[n[u>>>16&255]]^d[n[u>>>8&255]]^p[n[255&u]]}}},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,a,o,l,u,n)},decryptBlock:function(e,t){var r=e[t+1];e[t+1]=e[t+3],e[t+3]=r,this._doCryptBlock(e,t,this._invKeySchedule,c,h,d,p,s),r=e[t+1],e[t+1]=e[t+3],e[t+3]=r},_doCryptBlock:function(e,t,r,i,n,s,a,o){for(var l=this._nRounds,u=e[t]^r[0],c=e[t+1]^r[1],h=e[t+2]^r[2],d=e[t+3]^r[3],p=4,f=1;f<l;f++){var g=i[u>>>24]^n[c>>>16&255]^s[h>>>8&255]^a[255&d]^r[p++],m=i[c>>>24]^n[h>>>16&255]^s[d>>>8&255]^a[255&u]^r[p++],y=i[h>>>24]^n[d>>>16&255]^s[u>>>8&255]^a[255&c]^r[p++],v=i[d>>>24]^n[u>>>16&255]^s[c>>>8&255]^a[255&h]^r[p++];u=g,c=m,h=y,d=v}g=(o[u>>>24]<<24|o[c>>>16&255]<<16|o[h>>>8&255]<<8|o[255&d])^r[p++],m=(o[c>>>24]<<24|o[h>>>16&255]<<16|o[d>>>8&255]<<8|o[255&u])^r[p++],y=(o[h>>>24]<<24|o[d>>>16&255]<<16|o[u>>>8&255]<<8|o[255&c])^r[p++],v=(o[d>>>24]<<24|o[u>>>16&255]<<16|o[c>>>8&255]<<8|o[255&h])^r[p++],e[t]=g,e[t+1]=m,e[t+2]=y,e[t+3]=v},keySize:8});e.AES=t._createHelper(g)}(),i.AES)},1025:function(e,t,r){var i,n,s;e.exports=(n=(i=r(9021)).lib.Base,s=i.enc.Utf8,void(i.algo.HMAC=n.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=s.parse(t));var r=e.blockSize,i=4*r;t.sigBytes>i&&(t=e.finalize(t)),t.clamp();for(var n=this._oKey=t.clone(),a=this._iKey=t.clone(),o=n.words,l=a.words,u=0;u<r;u++)o[u]^=1549556828,l[u]^=909522486;n.sigBytes=a.sigBytes=i,this.reset()},reset:function(){var e=this._hasher;e.reset(),e.update(this._iKey)},update:function(e){return this._hasher.update(e),this},finalize:function(e){var t=this._hasher,r=t.finalize(e);return t.reset(),t.finalize(this._oKey.clone().concat(r))}})))},1366:function(e,t,r){"use strict";var i=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],i=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.FrameStore=void 0;var n=r(7225),s=r(5974),a=function(){function e(){this.storedFrames=[],this._lastReceivedFramePosition=0,this._firstAvailableFramePosition=0,this._lastSentFramePosition=0}return Object.defineProperty(e.prototype,"lastReceivedFramePosition",{get:function(){return this._lastReceivedFramePosition},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"firstAvailableFramePosition",{get:function(){return this._firstAvailableFramePosition},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"lastSentFramePosition",{get:function(){return this._lastSentFramePosition},enumerable:!1,configurable:!0}),e.prototype.store=function(e){this._lastSentFramePosition+=(0,s.sizeOfFrame)(e),this.storedFrames.push(e)},e.prototype.record=function(e){this._lastReceivedFramePosition+=(0,s.sizeOfFrame)(e)},e.prototype.dropTo=function(e){for(var t=e-this._firstAvailableFramePosition;t>0&&this.storedFrames.length>0;){var r=this.storedFrames.shift();t-=(0,s.sizeOfFrame)(r)}if(0!==t)throw new n.RSocketError(n.ErrorCodes.CONNECTION_ERROR,"State inconsistency. Expected bytes to drop ".concat(e-this._firstAvailableFramePosition," but actual ").concat(t));this._firstAvailableFramePosition=e},e.prototype.drain=function(e){var t,r;try{for(var n=i(this.storedFrames),s=n.next();!s.done;s=n.next())e(s.value)}catch(e){t={error:e}}finally{try{s&&!s.done&&(r=n.return)&&r.call(n)}finally{if(t)throw t.error}}},e}();t.FrameStore=a},1380:function(e,t,r){var i;e.exports=(i=r(9021),r(3240),function(){var e=i,t=e.lib.Hasher,r=e.x64,n=r.Word,s=r.WordArray,a=e.algo;function o(){return n.create.apply(n,arguments)}var l=[o(1116352408,3609767458),o(1899447441,602891725),o(3049323471,3964484399),o(3921009573,2173295548),o(961987163,4081628472),o(1508970993,3053834265),o(2453635748,2937671579),o(2870763221,3664609560),o(3624381080,2734883394),o(310598401,1164996542),o(607225278,1323610764),o(1426881987,3590304994),o(1925078388,4068182383),o(2162078206,991336113),o(2614888103,633803317),o(3248222580,3479774868),o(3835390401,2666613458),o(4022224774,944711139),o(264347078,2341262773),o(604807628,2007800933),o(770255983,1495990901),o(1249150122,1856431235),o(1555081692,3175218132),o(1996064986,2198950837),o(2554220882,3999719339),o(2821834349,766784016),o(2952996808,2566594879),o(3210313671,3203337956),o(3336571891,1034457026),o(3584528711,2466948901),o(113926993,3758326383),o(338241895,168717936),o(666307205,1188179964),o(773529912,1546045734),o(1294757372,1522805485),o(1396182291,2643833823),o(1695183700,2343527390),o(1986661051,1014477480),o(2177026350,1206759142),o(2456956037,344077627),o(2730485921,1290863460),o(2820302411,3158454273),o(3259730800,3505952657),o(3345764771,106217008),o(3516065817,3606008344),o(3600352804,1432725776),o(4094571909,1467031594),o(275423344,851169720),o(430227734,3100823752),o(506948616,1363258195),o(659060556,3750685593),o(883997877,3785050280),o(958139571,3318307427),o(1322822218,3812723403),o(1537002063,2003034995),o(1747873779,3602036899),o(1955562222,1575990012),o(2024104815,1125592928),o(2227730452,2716904306),o(2361852424,442776044),o(2428436474,593698344),o(2756734187,3733110249),o(3204031479,2999351573),o(3329325298,3815920427),o(3391569614,3928383900),o(3515267271,566280711),o(3940187606,3454069534),o(4118630271,4000239992),o(116418474,1914138554),o(174292421,2731055270),o(289380356,3203993006),o(460393269,320620315),o(685471733,587496836),o(852142971,1086792851),o(1017036298,365543100),o(1126000580,2618297676),o(1288033470,3409855158),o(1501505948,4234509866),o(1607167915,987167468),o(1816402316,1246189591)],u=[];!function(){for(var e=0;e<80;e++)u[e]=o()}();var c=a.SHA512=t.extend({_doReset:function(){this._hash=new s.init([new n.init(1779033703,4089235720),new n.init(3144134277,2227873595),new n.init(1013904242,4271175723),new n.init(2773480762,1595750129),new n.init(1359893119,2917565137),new n.init(2600822924,725511199),new n.init(528734635,4215389547),new n.init(1541459225,327033209)])},_doProcessBlock:function(e,t){for(var r=this._hash.words,i=r[0],n=r[1],s=r[2],a=r[3],o=r[4],c=r[5],h=r[6],d=r[7],p=i.high,f=i.low,g=n.high,m=n.low,y=s.high,v=s.low,b=a.high,I=a.low,w=o.high,E=o.low,k=c.high,S=c.low,M=h.high,F=h.low,T=d.high,R=d.low,A=p,_=f,O=g,C=m,x=y,N=v,D=b,P=I,L=w,B=E,j=k,U=S,W=M,z=F,H=T,K=R,G=0;G<80;G++){var q,V,Y=u[G];if(G<16)V=Y.high=0|e[t+2*G],q=Y.low=0|e[t+2*G+1];else{var X=u[G-15],J=X.high,Z=X.low,Q=(J>>>1|Z<<31)^(J>>>8|Z<<24)^J>>>7,$=(Z>>>1|J<<31)^(Z>>>8|J<<24)^(Z>>>7|J<<25),ee=u[G-2],te=ee.high,re=ee.low,ie=(te>>>19|re<<13)^(te<<3|re>>>29)^te>>>6,ne=(re>>>19|te<<13)^(re<<3|te>>>29)^(re>>>6|te<<26),se=u[G-7],ae=se.high,oe=se.low,le=u[G-16],ue=le.high,ce=le.low;V=(V=(V=Q+ae+((q=$+oe)>>>0<$>>>0?1:0))+ie+((q+=ne)>>>0<ne>>>0?1:0))+ue+((q+=ce)>>>0<ce>>>0?1:0),Y.high=V,Y.low=q}var he,de=L&j^~L&W,pe=B&U^~B&z,fe=A&O^A&x^O&x,ge=_&C^_&N^C&N,me=(A>>>28|_<<4)^(A<<30|_>>>2)^(A<<25|_>>>7),ye=(_>>>28|A<<4)^(_<<30|A>>>2)^(_<<25|A>>>7),ve=(L>>>14|B<<18)^(L>>>18|B<<14)^(L<<23|B>>>9),be=(B>>>14|L<<18)^(B>>>18|L<<14)^(B<<23|L>>>9),Ie=l[G],we=Ie.high,Ee=Ie.low,ke=H+ve+((he=K+be)>>>0<K>>>0?1:0),Se=ye+ge;H=W,K=z,W=j,z=U,j=L,U=B,L=D+(ke=(ke=(ke=ke+de+((he+=pe)>>>0<pe>>>0?1:0))+we+((he+=Ee)>>>0<Ee>>>0?1:0))+V+((he+=q)>>>0<q>>>0?1:0))+((B=P+he|0)>>>0<P>>>0?1:0)|0,D=x,P=N,x=O,N=C,O=A,C=_,A=ke+(me+fe+(Se>>>0<ye>>>0?1:0))+((_=he+Se|0)>>>0<he>>>0?1:0)|0}f=i.low=f+_,i.high=p+A+(f>>>0<_>>>0?1:0),m=n.low=m+C,n.high=g+O+(m>>>0<C>>>0?1:0),v=s.low=v+N,s.high=y+x+(v>>>0<N>>>0?1:0),I=a.low=I+P,a.high=b+D+(I>>>0<P>>>0?1:0),E=o.low=E+B,o.high=w+L+(E>>>0<B>>>0?1:0),S=c.low=S+U,c.high=k+j+(S>>>0<U>>>0?1:0),F=h.low=F+z,h.high=M+W+(F>>>0<z>>>0?1:0),R=d.low=R+K,d.high=T+H+(R>>>0<K>>>0?1:0)},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,i=8*e.sigBytes;return t[i>>>5]|=128<<24-i%32,t[30+(i+128>>>10<<5)]=Math.floor(r/4294967296),t[31+(i+128>>>10<<5)]=r,e.sigBytes=4*t.length,this._process(),this._hash.toX32()},clone:function(){var e=t.clone.call(this);return e._hash=this._hash.clone(),e},blockSize:32});e.SHA512=t._createHelper(c),e.HmacSHA512=t._createHmacHelper(c)}(),i.SHA512)},1396:function(e,t,r){var i;e.exports=(i=r(9021),r(3240),r(6440),r(5503),r(754),r(4725),r(4636),r(5471),r(3009),r(6308),r(1380),r(9557),r(5953),r(8056),r(1025),r(19),r(9506),r(7165),r(2169),r(6939),r(6372),r(3797),r(8454),r(2073),r(4905),r(482),r(2155),r(8124),r(25),r(955),r(7628),r(7193),r(6298),r(2696),r(3128),i)},2073:function(e,t,r){var i;e.exports=(i=r(9021),r(7165),i.pad.AnsiX923={pad:function(e,t){var r=e.sigBytes,i=4*t,n=i-r%i,s=r+n-1;e.clamp(),e.words[s>>>2]|=n<<24-s%4*8,e.sigBytes+=n},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},i.pad.Ansix923)},2147:function(e,t,r){"use strict";var i=this&&this.__awaiter||function(e,t,r,i){return new(r||(r=Promise))(function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(a,o)}l((i=i.apply(e,t||[])).next())})},n=this&&this.__generator||function(e,t){var r,i,n,s,a={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return s={next:o(0),throw:o(1),return:o(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function o(s){return function(o){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,i&&(n=2&s[0]?i.return:s[0]?i.throw||((n=i.return)&&n.call(i),0):i.next)&&!(n=n.call(i,s[1])).done)return n;switch(i=0,n&&(s=[2&s[0],n.value]),s[0]){case 0:case 1:n=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,i=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((n=(n=a.trys).length>0&&n[n.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!n||s[1]>n[0]&&s[1]<n[3])){a.label=s[1];break}if(6===s[0]&&a.label<n[1]){a.label=n[1],n=s;break}if(n&&a.label<n[2]){a.label=n[2],a.ops.push(s);break}n[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],i=0}finally{r=n=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,o])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.RSocketConnector=void 0;var s=r(7698),a=r(2799),o=r(6923),l=r(1366),u=function(){function e(e){this.config=e}return e.prototype.connect=function(){var e,t,r,u,c,h,d,p,f,g,m,y,v,b,I,w,E,k,S,M;return i(this,void 0,void 0,function(){var F,T,R,A,_,O,C,x,N,D=this;return n(this,function(P){switch(P.label){case 0:return F=this.config,T={type:a.FrameTypes.SETUP,dataMimeType:null!==(t=null===(e=F.setup)||void 0===e?void 0:e.dataMimeType)&&void 0!==t?t:"application/octet-stream",metadataMimeType:null!==(u=null===(r=F.setup)||void 0===r?void 0:r.metadataMimeType)&&void 0!==u?u:"application/octet-stream",keepAlive:null!==(h=null===(c=F.setup)||void 0===c?void 0:c.keepAlive)&&void 0!==h?h:6e4,lifetime:null!==(p=null===(d=F.setup)||void 0===d?void 0:d.lifetime)&&void 0!==p?p:3e5,metadata:null===(g=null===(f=F.setup)||void 0===f?void 0:f.payload)||void 0===g?void 0:g.metadata,data:null===(y=null===(m=F.setup)||void 0===m?void 0:m.payload)||void 0===y?void 0:y.data,resumeToken:null!==(b=null===(v=F.resume)||void 0===v?void 0:v.tokenGenerator())&&void 0!==b?b:null,streamId:0,majorVersion:1,minorVersion:0,flags:((null===(w=null===(I=F.setup)||void 0===I?void 0:I.payload)||void 0===w?void 0:w.metadata)?a.Flags.METADATA:a.Flags.NONE)|(F.lease?a.Flags.LEASE:a.Flags.NONE)|(F.resume?a.Flags.RESUME_ENABLE:a.Flags.NONE)},[4,F.transport.connect(function(e){return F.resume?new s.ResumableClientServerInputMultiplexerDemultiplexer(s.StreamIdGenerator.create(-1),e,e,new l.FrameStore,T.resumeToken.toString(),function(e,t){return i(D,void 0,void 0,function(){var r,i,o;return n(this,function(n){switch(n.label){case 0:return r=function(r){return r.send({type:a.FrameTypes.RESUME,streamId:0,flags:a.Flags.NONE,clientPosition:t.firstAvailableFramePosition,serverPosition:t.lastReceivedFramePosition,majorVersion:T.minorVersion,minorVersion:T.majorVersion,resumeToken:T.resumeToken}),new s.ResumeOkAwaitingResumableClientServerInputMultiplexerDemultiplexer(r,r,e)},i=-1,[4,(o=function(){return i++,F.resume.reconnectFunction(i).then(function(){return F.transport.connect(r).catch(o)})})()];case 1:return n.sent(),[2]}})})}):new s.ClientServerInputMultiplexerDemultiplexer(s.StreamIdGenerator.create(-1),e,e)})];case 1:return R=P.sent(),A=new o.KeepAliveSender(R.multiplexerDemultiplexer.connectionOutbound,T.keepAlive),_=new o.KeepAliveHandler(R,T.lifetime),O=F.lease?new o.LeaseHandler(null!==(E=F.lease.maxPendingRequests)&&void 0!==E?E:256,R.multiplexerDemultiplexer):void 0,C=null!==(k=F.responder)&&void 0!==k?k:{},x=new o.DefaultConnectionFrameHandler(R,_,A,O,C),N=new o.DefaultStreamRequestHandler(C,0),R.onClose(function(e){A.close(),_.close(),x.close(e)}),R.multiplexerDemultiplexer.connectionInbound(x),R.multiplexerDemultiplexer.handleRequestStream(N),R.multiplexerDemultiplexer.connectionOutbound.send(T),_.start(),A.start(),[2,new o.RSocketRequester(R,null!==(M=null===(S=F.fragmentation)||void 0===S?void 0:S.maxOutboundFragmentSize)&&void 0!==M?M:0,O)]}})})},e}();t.RSocketConnector=u},2155:function(e,t,r){var i;e.exports=(i=r(9021),r(7165),i.pad.ZeroPadding={pad:function(e,t){var r=4*t;e.clamp(),e.sigBytes+=r-(e.sigBytes%r||r)},unpad:function(e){var t=e.words,r=e.sigBytes-1;for(r=e.sigBytes-1;r>=0;r--)if(t[r>>>2]>>>24-r%4*8&255){e.sigBytes=r+1;break}}},i.pad.ZeroPadding)},2169:function(e,t,r){var i;e.exports=(i=r(9021),r(7165),i.mode.CFB=function(){var e=i.lib.BlockCipherMode.extend();function t(e,t,r,i){var n,s=this._iv;s?(n=s.slice(0),this._iv=void 0):n=this._prevBlock,i.encryptBlock(n,0);for(var a=0;a<r;a++)e[t+a]^=n[a]}return e.Encryptor=e.extend({processBlock:function(e,r){var i=this._cipher,n=i.blockSize;t.call(this,e,r,n,i),this._prevBlock=e.slice(r,r+n)}}),e.Decryptor=e.extend({processBlock:function(e,r){var i=this._cipher,n=i.blockSize,s=e.slice(r,r+n);t.call(this,e,r,n,i),this._prevBlock=s}}),e}(),i.mode.CFB)},2320:function(e,t,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){void 0===i&&(i=r),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,i){void 0===i&&(i=r),e[i]=t[r]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&i(t,e,r);return n(t,e),t},a=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],i=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.RequestFnfResponderStream=t.RequestFnFRequesterStream=void 0;var o=r(8766),l=r(4438),u=r(2799),c=s(r(7076)),h=function(){function e(e,t,r,i){this.payload=e,this.receiver=t,this.fragmentSize=r,this.leaseManager=i,this.streamType=u.FrameTypes.REQUEST_FNF}return e.prototype.handleReady=function(e,t){var r,i;if(this.done)return!1;if(this.streamId=e,(0,l.isFragmentable)(this.payload,this.fragmentSize,u.FrameTypes.REQUEST_FNF))try{for(var n=a((0,l.fragment)(e,this.payload,this.fragmentSize,u.FrameTypes.REQUEST_FNF)),s=n.next();!s.done;s=n.next()){var o=s.value;t.send(o)}}catch(e){r={error:e}}finally{try{s&&!s.done&&(i=n.return)&&i.call(n)}finally{if(r)throw r.error}}else t.send({type:u.FrameTypes.REQUEST_FNF,data:this.payload.data,metadata:this.payload.metadata,flags:this.payload.metadata?u.Flags.METADATA:0,streamId:e});return this.done=!0,this.receiver.onComplete(),!0},e.prototype.handleReject=function(e){this.done||(this.done=!0,this.receiver.onError(e))},e.prototype.cancel=function(){var e;this.done||(this.done=!0,null===(e=this.leaseManager)||void 0===e||e.cancelRequest(this))},e.prototype.handle=function(e){e.type!=u.FrameTypes.ERROR?this.close(new o.RSocketError(o.ErrorCodes.CANCELED,"Received invalid frame")):this.close(new o.RSocketError(e.code,e.message))},e.prototype.close=function(e){this.done?console.warn("Trying to close for the second time. ".concat(e?"Dropping error [".concat(e,"]."):"")):e?this.receiver.onError(e):this.receiver.onComplete()},e}();t.RequestFnFRequesterStream=h;var d=function(){function e(e,t,r,i){if(this.streamId=e,this.stream=t,this.handler=r,this.streamType=u.FrameTypes.REQUEST_FNF,u.Flags.hasFollows(i.flags))return c.add(this,i.data,i.metadata),void t.connect(this);var n={data:i.data,metadata:i.metadata};try{this.cancellable=r(n,this)}catch(e){}}return e.prototype.handle=function(e){var t;if(e.type==u.FrameTypes.PAYLOAD){if(!u.Flags.hasFollows(e.flags)){this.stream.disconnect(this);var r=c.reassemble(this,e.data,e.metadata);try{this.cancellable=this.handler(r,this)}catch(e){}return}if(c.add(this,e.data,e.metadata))return;t="Unexpected fragment size"}else t="Unexpected frame type [".concat(e.type,"]");this.done=!0,e.type!=u.FrameTypes.CANCEL&&e.type!=u.FrameTypes.ERROR&&this.stream.send({type:u.FrameTypes.ERROR,streamId:this.streamId,flags:u.Flags.NONE,code:o.ErrorCodes.CANCELED,message:t}),this.stream.disconnect(this),c.cancel(this)},e.prototype.close=function(e){var t;this.done?console.warn("Trying to close for the second time. ".concat(e?"Dropping error [".concat(e,"]."):"")):(this.done=!0,c.cancel(this),null===(t=this.cancellable)||void 0===t||t.cancel())},e.prototype.onError=function(e){},e.prototype.onComplete=function(){},e}();t.RequestFnfResponderStream=d},2632:function(e,t){"use strict";var r=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],i=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.WellKnownAuthType=void 0;var i=function(){function e(e,t){this.string=e,this.identifier=t}return e.fromIdentifier=function(t){return t<0||t>127?e.UNPARSEABLE_AUTH_TYPE:e.TYPES_BY_AUTH_ID[t]},e.fromString=function(t){if(!t)throw new Error("type must be non-null");return t===e.UNKNOWN_RESERVED_AUTH_TYPE.string?e.UNPARSEABLE_AUTH_TYPE:e.TYPES_BY_AUTH_STRING.get(t)||e.UNPARSEABLE_AUTH_TYPE},e.prototype.toString=function(){return this.string},e}();t.WellKnownAuthType=i,function(e){var t,i;e.UNPARSEABLE_AUTH_TYPE=new e("UNPARSEABLE_AUTH_TYPE_DO_NOT_USE",-2),e.UNKNOWN_RESERVED_AUTH_TYPE=new e("UNKNOWN_YET_RESERVED_DO_NOT_USE",-1),e.SIMPLE=new e("simple",0),e.BEARER=new e("bearer",1),e.TYPES_BY_AUTH_ID=new Array(128),e.TYPES_BY_AUTH_STRING=new Map;var n=[e.UNPARSEABLE_AUTH_TYPE,e.UNKNOWN_RESERVED_AUTH_TYPE,e.SIMPLE,e.BEARER];e.TYPES_BY_AUTH_ID.fill(e.UNKNOWN_RESERVED_AUTH_TYPE);try{for(var s=r(n),a=s.next();!a.done;a=s.next()){var o=a.value;o.identifier>=0&&(e.TYPES_BY_AUTH_ID[o.identifier]=o,e.TYPES_BY_AUTH_STRING.set(o.string,o))}}catch(e){t={error:e}}finally{try{a&&!a.done&&(i=s.return)&&i.call(s)}finally{if(t)throw t.error}}Object.seal&&Object.seal(e.TYPES_BY_AUTH_ID)}(i=t.WellKnownAuthType||(t.WellKnownAuthType={})),t.WellKnownAuthType=i},2696:function(e,t,r){var i;e.exports=(i=r(9021),r(754),r(4636),r(9506),r(7165),function(){var e=i,t=e.lib.StreamCipher,r=e.algo,n=[],s=[],a=[],o=r.RabbitLegacy=t.extend({_doReset:function(){var e=this._key.words,t=this.cfg.iv,r=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],i=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];this._b=0;for(var n=0;n<4;n++)l.call(this);for(n=0;n<8;n++)i[n]^=r[n+4&7];if(t){var s=t.words,a=s[0],o=s[1],u=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),c=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),h=u>>>16|4294901760&c,d=c<<16|65535&u;for(i[0]^=u,i[1]^=h,i[2]^=c,i[3]^=d,i[4]^=u,i[5]^=h,i[6]^=c,i[7]^=d,n=0;n<4;n++)l.call(this)}},_doProcessBlock:function(e,t){var r=this._X;l.call(this),n[0]=r[0]^r[5]>>>16^r[3]<<16,n[1]=r[2]^r[7]>>>16^r[5]<<16,n[2]=r[4]^r[1]>>>16^r[7]<<16,n[3]=r[6]^r[3]>>>16^r[1]<<16;for(var i=0;i<4;i++)n[i]=16711935&(n[i]<<8|n[i]>>>24)|4278255360&(n[i]<<24|n[i]>>>8),e[t+i]^=n[i]},blockSize:4,ivSize:2});function l(){for(var e=this._X,t=this._C,r=0;r<8;r++)s[r]=t[r];for(t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0<s[0]>>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0<s[1]>>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0<s[2]>>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0<s[3]>>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0<s[4]>>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0<s[5]>>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0<s[6]>>>0?1:0)|0,this._b=t[7]>>>0<s[7]>>>0?1:0,r=0;r<8;r++){var i=e[r]+t[r],n=65535&i,o=i>>>16,l=((n*n>>>17)+n*o>>>15)+o*o,u=((4294901760&i)*i|0)+((65535&i)*i|0);a[r]=l^u}e[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,e[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,e[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,e[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,e[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,e[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,e[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,e[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}e.RabbitLegacy=t._createHelper(o)}(),i.RabbitLegacy)},2777:function(e,t,r){"use strict";var i=this&&this.__awaiter||function(e,t,r,i){return new(r||(r=Promise))(function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(a,o)}l((i=i.apply(e,t||[])).next())})},n=this&&this.__generator||function(e,t){var r,i,n,s,a={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return s={next:o(0),throw:o(1),return:o(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function o(s){return function(o){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,i&&(n=2&s[0]?i.return:s[0]?i.throw||((n=i.return)&&n.call(i),0):i.next)&&!(n=n.call(i,s[1])).done)return n;switch(i=0,n&&(s=[2&s[0],n.value]),s[0]){case 0:case 1:n=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,i=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((n=(n=a.trys).length>0&&n[n.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!n||s[1]>n[0]&&s[1]<n[3])){a.label=s[1];break}if(6===s[0]&&a.label<n[1]){a.label=n[1],n=s;break}if(n&&a.label<n[2]){a.label=n[2],a.ops.push(s);break}n[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],i=0}finally{r=n=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,o])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.RSocketServer=void 0;var s=r(7698),a=r(8766),o=r(2799),l=r(6923),u=r(1366),c=function(){function e(e){var t,r;this.acceptor=e.acceptor,this.transport=e.transport,this.lease=e.lease,this.serverSideKeepAlive=e.serverSideKeepAlive,this.sessionStore=e.resume?{}:void 0,this.sessionTimeout=null!==(r=null===(t=e.resume)||void 0===t?void 0:t.sessionTimeout)&&void 0!==r?r:void 0}return e.prototype.bind=function(){return i(this,void 0,void 0,function(){var e=this;return n(this,function(t){switch(t.label){case 0:return[4,this.transport.bind(function(t,r){return i(e,void 0,void 0,function(){var e,i,s,u,c,h,d,p,f,g,m,y,v;return n(this,function(n){switch(n.label){case 0:switch(t.type){case o.FrameTypes.SETUP:return[3,1];case o.FrameTypes.RESUME:return[3,5]}return[3,6];case 1:return n.trys.push([1,3,,4]),this.lease&&!o.Flags.hasLease(t.flags)?(e=new a.RSocketError(a.ErrorCodes.REJECTED_SETUP,"Lease has to be enabled"),r.multiplexerDemultiplexer.connectionOutbound.send({type:o.FrameTypes.ERROR,streamId:0,flags:o.Flags.NONE,code:e.code,message:e.message}),r.close(e),[2]):o.Flags.hasLease(t.flags)&&!this.lease?(e=new a.RSocketError(a.ErrorCodes.REJECTED_SETUP,"Lease has to be disabled"),r.multiplexerDemultiplexer.connectionOutbound.send({type:o.FrameTypes.ERROR,streamId:0,flags:o.Flags.NONE,code:e.code,message:e.message}),r.close(e),[2]):(i=o.Flags.hasLease(t.flags)?new l.LeaseHandler(null!==(g=this.lease.maxPendingRequests)&&void 0!==g?g:256,r.multiplexerDemultiplexer):void 0,s=new l.RSocketRequester(r,null!==(y=null===(m=this.fragmentation)||void 0===m?void 0:m.maxOutboundFragmentSize)&&void 0!==y?y:0,i),[4,this.acceptor.accept({data:t.data,dataMimeType:t.dataMimeType,metadata:t.metadata,metadataMimeType:t.metadataMimeType,flags:t.flags,keepAliveMaxLifetime:t.lifetime,keepAliveInterval:t.keepAlive,resumeToken:t.resumeToken},s)]);case 2:return u=n.sent(),c=new l.KeepAliveHandler(r,t.lifetime),h=this.serverSideKeepAlive?new l.KeepAliveSender(r.multiplexerDemultiplexer.connectionOutbound,t.keepAlive):void 0,d=new l.DefaultConnectionFrameHandler(r,c,h,i,u),p=new l.DefaultStreamRequestHandler(u,0),r.onClose(function(e){null==h||h.close(),c.close(),d.close(e)}),r.multiplexerDemultiplexer.connectionInbound(d),r.multiplexerDemultiplexer.handleRequestStream(p),c.start(),null==h||h.start(),[3,4];case 3:return f=n.sent(),r.multiplexerDemultiplexer.connectionOutbound.send({type:o.FrameTypes.ERROR,streamId:0,code:a.ErrorCodes.REJECTED_SETUP,message:null!==(v=f.message)&&void 0!==v?v:"",flags:o.Flags.NONE}),r.close(f instanceof a.RSocketError?f:new a.RSocketError(a.ErrorCodes.REJECTED_SETUP,f.message)),[3,4];case 4:case 5:return[2];case 6:r.multiplexerDemultiplexer.connectionOutbound.send({type:o.FrameTypes.ERROR,streamId:0,code:a.ErrorCodes.UNSUPPORTED_SETUP,message:"Unsupported setup",flags:o.Flags.NONE}),r.close(new a.RSocketError(a.ErrorCodes.UNSUPPORTED_SETUP)),n.label=7;case 7:return[2]}})})},function(t,r){if(t.type===o.FrameTypes.RESUME){if(e.sessionStore){var i=e.sessionStore[t.resumeToken.toString()];return i?(i.resume(t,r,r),i):(r.send({type:o.FrameTypes.ERROR,streamId:0,code:a.ErrorCodes.REJECTED_RESUME,message:"No session found for the given resume token",flags:o.Flags.NONE}),void r.close())}return r.send({type:o.FrameTypes.ERROR,streamId:0,code:a.ErrorCodes.REJECTED_RESUME,message:"Resume is not enabled",flags:o.Flags.NONE}),void r.close()}if(t.type===o.FrameTypes.SETUP&&o.Flags.hasResume(t.flags)){if(!e.sessionStore){var n=new a.RSocketError(a.ErrorCodes.REJECTED_SETUP,"No resume support");return r.send({type:o.FrameTypes.ERROR,streamId:0,flags:o.Flags.NONE,code:n.code,message:n.message}),void r.close(n)}var l=new s.ResumableClientServerInputMultiplexerDemultiplexer(s.StreamIdGenerator.create(0),r,r,new u.FrameStore,t.resumeToken.toString(),e.sessionStore,e.sessionTimeout);return e.sessionStore[t.resumeToken.toString()]=l,l}return new s.ClientServerInputMultiplexerDemultiplexer(s.StreamIdGenerator.create(0),r,r)})];case 1:return[2,t.sent()]}})})},e}();t.RSocketServer=c},2799:(e,t)=>{"use strict";var r,i,n,s;Object.defineProperty(t,"__esModule",{value:!0}),t.Frame=t.Lengths=t.Flags=t.FrameTypes=void 0,function(e){e[e.RESERVED=0]="RESERVED",e[e.SETUP=1]="SETUP",e[e.LEASE=2]="LEASE",e[e.KEEPALIVE=3]="KEEPALIVE",e[e.REQUEST_RESPONSE=4]="REQUEST_RESPONSE",e[e.REQUEST_FNF=5]="REQUEST_FNF",e[e.REQUEST_STREAM=6]="REQUEST_STREAM",e[e.REQUEST_CHANNEL=7]="REQUEST_CHANNEL",e[e.REQUEST_N=8]="REQUEST_N",e[e.CANCEL=9]="CANCEL",e[e.PAYLOAD=10]="PAYLOAD",e[e.ERROR=11]="ERROR",e[e.METADATA_PUSH=12]="METADATA_PUSH",e[e.RESUME=13]="RESUME",e[e.RESUME_OK=14]="RESUME_OK",e[e.EXT=63]="EXT"}(r=t.FrameTypes||(t.FrameTypes={})),(s=t.Flags||(t.Flags={}))[s.NONE=0]="NONE",s[s.COMPLETE=64]="COMPLETE",s[s.FOLLOWS=128]="FOLLOWS",s[s.IGNORE=512]="IGNORE",s[s.LEASE=64]="LEASE",s[s.METADATA=256]="METADATA",s[s.NEXT=32]="NEXT",s[s.RESPOND=128]="RESPOND",s[s.RESUME_ENABLE=128]="RESUME_ENABLE",function(e){e.hasMetadata=function(t){return(t&e.METADATA)===e.METADATA},e.hasComplete=function(t){return(t&e.COMPLETE)===e.COMPLETE},e.hasNext=function(t){return(t&e.NEXT)===e.NEXT},e.hasFollows=function(t){return(t&e.FOLLOWS)===e.FOLLOWS},e.hasIgnore=function(t){return(t&e.IGNORE)===e.IGNORE},e.hasRespond=function(t){return(t&e.RESPOND)===e.RESPOND},e.hasLease=function(t){return(t&e.LEASE)===e.LEASE},e.hasResume=function(t){return(t&e.RESUME_ENABLE)===e.RESUME_ENABLE}}(t.Flags||(t.Flags={})),(n=t.Lengths||(t.Lengths={}))[n.FRAME=3]="FRAME",n[n.HEADER=6]="HEADER",n[n.METADATA=3]="METADATA",n[n.REQUEST=3]="REQUEST",(i=t.Frame||(t.Frame={})).isConnection=function(e){return 0===e.streamId},i.isRequest=function(e){return r.REQUEST_RESPONSE<=e.type&&e.type<=r.REQUEST_CHANNEL}},3009:function(e,t,r){var i;e.exports=(i=r(9021),function(e){var t=i,r=t.lib,n=r.WordArray,s=r.Hasher,a=t.algo,o=[],l=[];!function(){function t(t){for(var r=e.sqrt(t),i=2;i<=r;i++)if(!(t%i))return!1;return!0}function r(e){return 4294967296*(e-(0|e))|0}for(var i=2,n=0;n<64;)t(i)&&(n<8&&(o[n]=r(e.pow(i,.5))),l[n]=r(e.pow(i,1/3)),n++),i++}();var u=[],c=a.SHA256=s.extend({_doReset:function(){this._hash=new n.init(o.slice(0))},_doProcessBlock:function(e,t){for(var r=this._hash.words,i=r[0],n=r[1],s=r[2],a=r[3],o=r[4],c=r[5],h=r[6],d=r[7],p=0;p<64;p++){if(p<16)u[p]=0|e[t+p];else{var f=u[p-15],g=(f<<25|f>>>7)^(f<<14|f>>>18)^f>>>3,m=u[p-2],y=(m<<15|m>>>17)^(m<<13|m>>>19)^m>>>10;u[p]=g+u[p-7]+y+u[p-16]}var v=i&n^i&s^n&s,b=(i<<30|i>>>2)^(i<<19|i>>>13)^(i<<10|i>>>22),I=d+((o<<26|o>>>6)^(o<<21|o>>>11)^(o<<7|o>>>25))+(o&c^~o&h)+l[p]+u[p];d=h,h=c,c=o,o=a+I|0,a=s,s=n,n=i,i=I+(b+v)|0}r[0]=r[0]+i|0,r[1]=r[1]+n|0,r[2]=r[2]+s|0,r[3]=r[3]+a|0,r[4]=r[4]+o|0,r[5]=r[5]+c|0,r[6]=r[6]+h|0,r[7]=r[7]+d|0},_doFinalize:function(){var t=this._data,r=t.words,i=8*this._nDataBytes,n=8*t.sigBytes;return r[n>>>5]|=128<<24-n%32,r[14+(n+64>>>9<<4)]=e.floor(i/4294967296),r[15+(n+64>>>9<<4)]=i,t.sigBytes=4*r.length,this._process(),this._hash},clone:function(){var e=s.clone.call(this);return e._hash=this._hash.clone(),e}});t.SHA256=s._createHelper(c),t.HmacSHA256=s._createHmacHelper(c)}(Math),i.SHA256)},3034:function(e,t){"use strict";var r=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],i=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.WellKnownMimeType=void 0;var i=function(){function e(e,t){this.string=e,this.identifier=t}return e.fromIdentifier=function(t){return t<0||t>127?e.UNPARSEABLE_MIME_TYPE:e.TYPES_BY_MIME_ID[t]},e.fromString=function(t){if(!t)throw new Error("type must be non-null");return t===e.UNKNOWN_RESERVED_MIME_TYPE.string?e.UNPARSEABLE_MIME_TYPE:e.TYPES_BY_MIME_STRING.get(t)||e.UNPARSEABLE_MIME_TYPE},e.prototype.toString=function(){return this.string},e}();t.WellKnownMimeType=i,function(e){var t,i;e.UNPARSEABLE_MIME_TYPE=new e("UNPARSEABLE_MIME_TYPE_DO_NOT_USE",-2),e.UNKNOWN_RESERVED_MIME_TYPE=new e("UNKNOWN_YET_RESERVED_DO_NOT_USE",-1),e.APPLICATION_AVRO=new e("application/avro",0),e.APPLICATION_CBOR=new e("application/cbor",1),e.APPLICATION_GRAPHQL=new e("application/graphql",2),e.APPLICATION_GZIP=new e("application/gzip",3),e.APPLICATION_JAVASCRIPT=new e("application/javascript",4),e.APPLICATION_JSON=new e("application/json",5),e.APPLICATION_OCTET_STREAM=new e("application/octet-stream",6),e.APPLICATION_PDF=new e("application/pdf",7),e.APPLICATION_THRIFT=new e("application/vnd.apache.thrift.binary",8),e.APPLICATION_PROTOBUF=new e("application/vnd.google.protobuf",9),e.APPLICATION_XML=new e("application/xml",10),e.APPLICATION_ZIP=new e("application/zip",11),e.AUDIO_AAC=new e("audio/aac",12),e.AUDIO_MP3=new e("audio/mp3",13),e.AUDIO_MP4=new e("audio/mp4",14),e.AUDIO_MPEG3=new e("audio/mpeg3",15),e.AUDIO_MPEG=new e("audio/mpeg",16),e.AUDIO_OGG=new e("audio/ogg",17),e.AUDIO_OPUS=new e("audio/opus",18),e.AUDIO_VORBIS=new e("audio/vorbis",19),e.IMAGE_BMP=new e("image/bmp",20),e.IMAGE_GIG=new e("image/gif",21),e.IMAGE_HEIC_SEQUENCE=new e("image/heic-sequence",22),e.IMAGE_HEIC=new e("image/heic",23),e.IMAGE_HEIF_SEQUENCE=new e("image/heif-sequence",24),e.IMAGE_HEIF=new e("image/heif",25),e.IMAGE_JPEG=new e("image/jpeg",26),e.IMAGE_PNG=new e("image/png",27),e.IMAGE_TIFF=new e("image/tiff",28),e.MULTIPART_MIXED=new e("multipart/mixed",29),e.TEXT_CSS=new e("text/css",30),e.TEXT_CSV=new e("text/csv",31),e.TEXT_HTML=new e("text/html",32),e.TEXT_PLAIN=new e("text/plain",33),e.TEXT_XML=new e("text/xml",34),e.VIDEO_H264=new e("video/H264",35),e.VIDEO_H265=new e("video/H265",36),e.VIDEO_VP8=new e("video/VP8",37),e.APPLICATION_HESSIAN=new e("application/x-hessian",38),e.APPLICATION_JAVA_OBJECT=new e("application/x-java-object",39),e.APPLICATION_CLOUDEVENTS_JSON=new e("application/cloudevents+json",40),e.MESSAGE_RSOCKET_MIMETYPE=new e("message/x.rsocket.mime-type.v0",122),e.MESSAGE_RSOCKET_ACCEPT_MIMETYPES=new e("message/x.rsocket.accept-mime-types.v0",123),e.MESSAGE_RSOCKET_AUTHENTICATION=new e("message/x.rsocket.authentication.v0",124),e.MESSAGE_RSOCKET_TRACING_ZIPKIN=new e("message/x.rsocket.tracing-zipkin.v0",125),e.MESSAGE_RSOCKET_ROUTING=new e("message/x.rsocket.routing.v0",126),e.MESSAGE_RSOCKET_COMPOSITE_METADATA=new e("message/x.rsocket.composite-metadata.v0",127),e.TYPES_BY_MIME_ID=new Array(128),e.TYPES_BY_MIME_STRING=new Map;var n=[e.UNPARSEABLE_MIME_TYPE,e.UNKNOWN_RESERVED_MIME_TYPE,e.APPLICATION_AVRO,e.APPLICATION_CBOR,e.APPLICATION_GRAPHQL,e.APPLICATION_GZIP,e.APPLICATION_JAVASCRIPT,e.APPLICATION_JSON,e.APPLICATION_OCTET_STREAM,e.APPLICATION_PDF,e.APPLICATION_THRIFT,e.APPLICATION_PROTOBUF,e.APPLICATION_XML,e.APPLICATION_ZIP,e.AUDIO_AAC,e.AUDIO_MP3,e.AUDIO_MP4,e.AUDIO_MPEG3,e.AUDIO_MPEG,e.AUDIO_OGG,e.AUDIO_OPUS,e.AUDIO_VORBIS,e.IMAGE_BMP,e.IMAGE_GIG,e.IMAGE_HEIC_SEQUENCE,e.IMAGE_HEIC,e.IMAGE_HEIF_SEQUENCE,e.IMAGE_HEIF,e.IMAGE_JPEG,e.IMAGE_PNG,e.IMAGE_TIFF,e.MULTIPART_MIXED,e.TEXT_CSS,e.TEXT_CSV,e.TEXT_HTML,e.TEXT_PLAIN,e.TEXT_XML,e.VIDEO_H264,e.VIDEO_H265,e.VIDEO_VP8,e.APPLICATION_HESSIAN,e.APPLICATION_JAVA_OBJECT,e.APPLICATION_CLOUDEVENTS_JSON,e.MESSAGE_RSOCKET_MIMETYPE,e.MESSAGE_RSOCKET_ACCEPT_MIMETYPES,e.MESSAGE_RSOCKET_AUTHENTICATION,e.MESSAGE_RSOCKET_TRACING_ZIPKIN,e.MESSAGE_RSOCKET_ROUTING,e.MESSAGE_RSOCKET_COMPOSITE_METADATA];e.TYPES_BY_MIME_ID.fill(e.UNKNOWN_RESERVED_MIME_TYPE);try{for(var s=r(n),a=s.next();!a.done;a=s.next()){var o=a.value;o.identifier>=0&&(e.TYPES_BY_MIME_ID[o.identifier]=o,e.TYPES_BY_MIME_STRING.set(o.string,o))}}catch(e){t={error:e}}finally{try{a&&!a.done&&(i=s.return)&&i.call(s)}finally{if(t)throw t.error}}Object.seal&&Object.seal(e.TYPES_BY_MIME_ID)}(i=t.WellKnownMimeType||(t.WellKnownMimeType={})),t.WellKnownMimeType=i},3092:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3128:function(e,t,r){var i;e.exports=(i=r(9021),r(754),r(4636),r(9506),r(7165),function(){var e=i,t=e.lib.BlockCipher,r=e.algo;const n=16,s=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],a=[[3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946],[1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055],[3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504],[976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462]];var o={pbox:[],sbox:[]};function l(e,t){let r=t>>24&255,i=t>>16&255,n=t>>8&255,s=255&t,a=e.sbox[0][r]+e.sbox[1][i];return a^=e.sbox[2][n],a+=e.sbox[3][s],a}function u(e,t,r){let i,s=t,a=r;for(let t=0;t<n;++t)s^=e.pbox[t],a=l(e,s)^a,i=s,s=a,a=i;return i=s,s=a,a=i,a^=e.pbox[n],s^=e.pbox[17],{left:s,right:a}}var c=r.Blowfish=t.extend({_doReset:function(){if(this._keyPriorReset!==this._key){var e=this._keyPriorReset=this._key,t=e.words,r=e.sigBytes/4;!function(e,t,r){for(let t=0;t<4;t++){e.sbox[t]=[];for(let r=0;r<256;r++)e.sbox[t][r]=a[t][r]}let i=0;for(let n=0;n<18;n++)e.pbox[n]=s[n]^t[i],i++,i>=r&&(i=0);let n=0,o=0,l=0;for(let t=0;t<18;t+=2)l=u(e,n,o),n=l.left,o=l.right,e.pbox[t]=n,e.pbox[t+1]=o;for(let t=0;t<4;t++)for(let r=0;r<256;r+=2)l=u(e,n,o),n=l.left,o=l.right,e.sbox[t][r]=n,e.sbox[t][r+1]=o}(o,t,r)}},encryptBlock:function(e,t){var r=u(o,e[t],e[t+1]);e[t]=r.left,e[t+1]=r.right},decryptBlock:function(e,t){var r=function(e,t,r){let i,n=t,s=r;for(let t=17;t>1;--t)n^=e.pbox[t],s=l(e,n)^s,i=n,n=s,s=i;return i=n,n=s,s=i,s^=e.pbox[1],n^=e.pbox[0],{left:n,right:s}}(o,e[t],e[t+1]);e[t]=r.left,e[t+1]=r.right},blockSize:2,keySize:4,ivSize:2});e.Blowfish=t._createHelper(c)}(),i.Blowfish)},3240:function(e,t,r){var i,n,s,a,o,l;e.exports=(i=r(9021),s=(n=i).lib,a=s.Base,o=s.WordArray,(l=n.x64={}).Word=a.extend({init:function(e,t){this.high=e,this.low=t}}),l.WordArray=a.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=null!=t?t:8*e.length},toX32:function(){for(var e=this.words,t=e.length,r=[],i=0;i<t;i++){var n=e[i];r.push(n.high),r.push(n.low)}return o.create(r,this.sigBytes)},clone:function(){for(var e=a.clone.call(this),t=e.words=this.words.slice(0),r=t.length,i=0;i<r;i++)t[i]=t[i].clone();return e}}),i)},3797:function(e,t,r){var i,n,s;e.exports=(s=r(9021),r(7165),s.mode.OFB=(n=(i=s.lib.BlockCipherMode.extend()).Encryptor=i.extend({processBlock:function(e,t){var r=this._cipher,i=r.blockSize,n=this._iv,s=this._keystream;n&&(s=this._keystream=n.slice(0),this._iv=void 0),r.encryptBlock(s,0);for(var a=0;a<i;a++)e[t+a]^=s[a]}}),i.Decryptor=n,i),s.mode.OFB)},4170:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4438:function(e,t,r){"use strict";var i=r(8287).hp,n=this&&this.__generator||function(e,t){var r,i,n,s,a={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return s={next:o(0),throw:o(1),return:o(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function o(s){return function(o){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,i&&(n=2&s[0]?i.return:s[0]?i.throw||((n=i.return)&&n.call(i),0):i.next)&&!(n=n.call(i,s[1])).done)return n;switch(i=0,n&&(s=[2&s[0],n.value]),s[0]){case 0:case 1:n=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,i=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((n=(n=a.trys).length>0&&n[n.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!n||s[1]>n[0]&&s[1]<n[3])){a.label=s[1];break}if(6===s[0]&&a.label<n[1]){a.label=n[1],n=s;break}if(n&&a.label<n[2]){a.label=n[2],a.ops.push(s);break}n[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],i=0}finally{r=n=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,o])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.fragmentWithRequestN=t.fragment=t.isFragmentable=void 0;var s=r(2799);t.isFragmentable=function(e,t,r){return 0!==t&&e.data.byteLength+(e.metadata?e.metadata.byteLength+s.Lengths.METADATA:0)+(r==s.FrameTypes.REQUEST_STREAM||r==s.FrameTypes.REQUEST_CHANNEL?s.Lengths.REQUEST:0)>t},t.fragment=function(e,t,r,a,o){var l,u,c,h,d,p,f,g,m,y,v,b;return void 0===o&&(o=!1),n(this,function(n){switch(n.label){case 0:return l=null!==(b=null===(v=t.data)||void 0===v?void 0:v.byteLength)&&void 0!==b?b:0,u=a!==s.FrameTypes.PAYLOAD,c=r,t.metadata?0!==(d=t.metadata.byteLength)?[3,1]:(c-=s.Lengths.METADATA,h=i.allocUnsafe(0),[3,6]):[3,6];case 1:return p=0,u?(c-=s.Lengths.METADATA,f=Math.min(d,p+c),h=t.metadata.slice(p,f),c-=h.byteLength,p=f,0!==c?[3,3]:(u=!1,[4,{type:a,flags:s.Flags.FOLLOWS|s.Flags.METADATA,data:void 0,metadata:h,streamId:e}])):[3,3];case 2:n.sent(),h=void 0,c=r,n.label=3;case 3:return p<d?(c-=s.Lengths.METADATA,f=Math.min(d,p+c),h=t.metadata.slice(p,f),c-=h.byteLength,p=f,0!==c&&0!==l?[3,5]:[4,{type:s.FrameTypes.PAYLOAD,flags:s.Flags.NEXT|s.Flags.METADATA|(p===d&&o&&0===l?s.Flags.COMPLETE:s.Flags.FOLLOWS),data:void 0,metadata:h,streamId:e}]):[3,6];case 4:n.sent(),h=void 0,c=r,n.label=5;case 5:return[3,3];case 6:return g=0,u?(y=Math.min(l,g+c),m=t.data.slice(g,y),c-=m.byteLength,g=y,[4,{type:a,flags:s.Flags.FOLLOWS|(h?s.Flags.METADATA:s.Flags.NONE),data:m,metadata:h,streamId:e}]):[3,8];case 7:n.sent(),h=void 0,m=void 0,c=r,n.label=8;case 8:return g<l?(y=Math.min(l,g+c),m=t.data.slice(g,y),c-=m.byteLength,g=y,[4,{type:s.FrameTypes.PAYLOAD,flags:g===l?(o?s.Flags.COMPLETE:s.Flags.NONE)|s.Flags.NEXT|(h?s.Flags.METADATA:0):s.Flags.FOLLOWS|s.Flags.NEXT|(h?s.Flags.METADATA:0),data:m,metadata:h,streamId:e}]):[3,10];case 9:return n.sent(),h=void 0,m=void 0,c=r,[3,8];case 10:return[2]}})},t.fragmentWithRequestN=function(e,t,r,a,o,l){var u,c,h,d,p,f,g,m,y,v,b,I;return void 0===l&&(l=!1),n(this,function(n){switch(n.label){case 0:return u=null!==(I=null===(b=t.data)||void 0===b?void 0:b.byteLength)&&void 0!==I?I:0,c=!0,h=r,t.metadata?0!==(p=t.metadata.byteLength)?[3,1]:(h-=s.Lengths.METADATA,d=i.allocUnsafe(0),[3,6]):[3,6];case 1:return f=0,c?(h-=s.Lengths.METADATA+s.Lengths.REQUEST,g=Math.min(p,f+h),d=t.metadata.slice(f,g),h-=d.byteLength,f=g,0!==h?[3,3]:(c=!1,[4,{type:a,flags:s.Flags.FOLLOWS|s.Flags.METADATA,data:void 0,requestN:o,metadata:d,streamId:e}])):[3,3];case 2:n.sent(),d=void 0,h=r,n.label=3;case 3:return f<p?(h-=s.Lengths.METADATA,g=Math.min(p,f+h),d=t.metadata.slice(f,g),h-=d.byteLength,f=g,0!==h&&0!==u?[3,5]:[4,{type:s.FrameTypes.PAYLOAD,flags:s.Flags.NEXT|s.Flags.METADATA|(f===p&&l&&0===u?s.Flags.COMPLETE:s.Flags.FOLLOWS),data:void 0,metadata:d,streamId:e}]):[3,6];case 4:n.sent(),d=void 0,h=r,n.label=5;case 5:return[3,3];case 6:return m=0,c?(h-=s.Lengths.REQUEST,v=Math.min(u,m+h),y=t.data.slice(m,v),h-=y.byteLength,m=v,[4,{type:a,flags:s.Flags.FOLLOWS|(d?s.Flags.METADATA:s.Flags.NONE),data:y,requestN:o,metadata:d,streamId:e}]):[3,8];case 7:n.sent(),d=void 0,y=void 0,h=r,n.label=8;case 8:return m<u?(v=Math.min(u,m+h),y=t.data.slice(m,v),h-=y.byteLength,m=v,[4,{type:s.FrameTypes.PAYLOAD,flags:m===u?(l?s.Flags.COMPLETE:s.Flags.NONE)|s.Flags.NEXT|(d?s.Flags.METADATA:0):s.Flags.FOLLOWS|s.Flags.NEXT|(d?s.Flags.METADATA:0),data:y,metadata:d,streamId:e}]):[3,10];case 9:return n.sent(),d=void 0,y=void 0,h=r,[3,8];case 10:return[2]}})}},4636:function(e,t,r){var i;e.exports=(i=r(9021),function(e){var t=i,r=t.lib,n=r.WordArray,s=r.Hasher,a=t.algo,o=[];!function(){for(var t=0;t<64;t++)o[t]=4294967296*e.abs(e.sin(t+1))|0}();var l=a.MD5=s.extend({_doReset:function(){this._hash=new n.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,t){for(var r=0;r<16;r++){var i=t+r,n=e[i];e[i]=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8)}var s=this._hash.words,a=e[t+0],l=e[t+1],p=e[t+2],f=e[t+3],g=e[t+4],m=e[t+5],y=e[t+6],v=e[t+7],b=e[t+8],I=e[t+9],w=e[t+10],E=e[t+11],k=e[t+12],S=e[t+13],M=e[t+14],F=e[t+15],T=s[0],R=s[1],A=s[2],_=s[3];T=u(T,R,A,_,a,7,o[0]),_=u(_,T,R,A,l,12,o[1]),A=u(A,_,T,R,p,17,o[2]),R=u(R,A,_,T,f,22,o[3]),T=u(T,R,A,_,g,7,o[4]),_=u(_,T,R,A,m,12,o[5]),A=u(A,_,T,R,y,17,o[6]),R=u(R,A,_,T,v,22,o[7]),T=u(T,R,A,_,b,7,o[8]),_=u(_,T,R,A,I,12,o[9]),A=u(A,_,T,R,w,17,o[10]),R=u(R,A,_,T,E,22,o[11]),T=u(T,R,A,_,k,7,o[12]),_=u(_,T,R,A,S,12,o[13]),A=u(A,_,T,R,M,17,o[14]),T=c(T,R=u(R,A,_,T,F,22,o[15]),A,_,l,5,o[16]),_=c(_,T,R,A,y,9,o[17]),A=c(A,_,T,R,E,14,o[18]),R=c(R,A,_,T,a,20,o[19]),T=c(T,R,A,_,m,5,o[20]),_=c(_,T,R,A,w,9,o[21]),A=c(A,_,T,R,F,14,o[22]),R=c(R,A,_,T,g,20,o[23]),T=c(T,R,A,_,I,5,o[24]),_=c(_,T,R,A,M,9,o[25]),A=c(A,_,T,R,f,14,o[26]),R=c(R,A,_,T,b,20,o[27]),T=c(T,R,A,_,S,5,o[28]),_=c(_,T,R,A,p,9,o[29]),A=c(A,_,T,R,v,14,o[30]),T=h(T,R=c(R,A,_,T,k,20,o[31]),A,_,m,4,o[32]),_=h(_,T,R,A,b,11,o[33]),A=h(A,_,T,R,E,16,o[34]),R=h(R,A,_,T,M,23,o[35]),T=h(T,R,A,_,l,4,o[36]),_=h(_,T,R,A,g,11,o[37]),A=h(A,_,T,R,v,16,o[38]),R=h(R,A,_,T,w,23,o[39]),T=h(T,R,A,_,S,4,o[40]),_=h(_,T,R,A,a,11,o[41]),A=h(A,_,T,R,f,16,o[42]),R=h(R,A,_,T,y,23,o[43]),T=h(T,R,A,_,I,4,o[44]),_=h(_,T,R,A,k,11,o[45]),A=h(A,_,T,R,F,16,o[46]),T=d(T,R=h(R,A,_,T,p,23,o[47]),A,_,a,6,o[48]),_=d(_,T,R,A,v,10,o[49]),A=d(A,_,T,R,M,15,o[50]),R=d(R,A,_,T,m,21,o[51]),T=d(T,R,A,_,k,6,o[52]),_=d(_,T,R,A,f,10,o[53]),A=d(A,_,T,R,w,15,o[54]),R=d(R,A,_,T,l,21,o[55]),T=d(T,R,A,_,b,6,o[56]),_=d(_,T,R,A,F,10,o[57]),A=d(A,_,T,R,y,15,o[58]),R=d(R,A,_,T,S,21,o[59]),T=d(T,R,A,_,g,6,o[60]),_=d(_,T,R,A,E,10,o[61]),A=d(A,_,T,R,p,15,o[62]),R=d(R,A,_,T,I,21,o[63]),s[0]=s[0]+T|0,s[1]=s[1]+R|0,s[2]=s[2]+A|0,s[3]=s[3]+_|0},_doFinalize:function(){var t=this._data,r=t.words,i=8*this._nDataBytes,n=8*t.sigBytes;r[n>>>5]|=128<<24-n%32;var s=e.floor(i/4294967296),a=i;r[15+(n+64>>>9<<4)]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),r[14+(n+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),t.sigBytes=4*(r.length+1),this._process();for(var o=this._hash,l=o.words,u=0;u<4;u++){var c=l[u];l[u]=16711935&(c<<8|c>>>24)|4278255360&(c<<24|c>>>8)}return o},clone:function(){var e=s.clone.call(this);return e._hash=this._hash.clone(),e}});function u(e,t,r,i,n,s,a){var o=e+(t&r|~t&i)+n+a;return(o<<s|o>>>32-s)+t}function c(e,t,r,i,n,s,a){var o=e+(t&i|r&~i)+n+a;return(o<<s|o>>>32-s)+t}function h(e,t,r,i,n,s,a){var o=e+(t^r^i)+n+a;return(o<<s|o>>>32-s)+t}function d(e,t,r,i,n,s,a){var o=e+(r^(t|~i))+n+a;return(o<<s|o>>>32-s)+t}t.MD5=s._createHelper(l),t.HmacMD5=s._createHmacHelper(l)}(Math),i.MD5)},4725:function(e,t,r){var i,n,s;e.exports=(i=r(9021),s=(n=i).lib.WordArray,n.enc.Base64url={stringify:function(e,t){void 0===t&&(t=!0);var r=e.words,i=e.sigBytes,n=t?this._safe_map:this._map;e.clamp();for(var s=[],a=0;a<i;a+=3)for(var o=(r[a>>>2]>>>24-a%4*8&255)<<16|(r[a+1>>>2]>>>24-(a+1)%4*8&255)<<8|r[a+2>>>2]>>>24-(a+2)%4*8&255,l=0;l<4&&a+.75*l<i;l++)s.push(n.charAt(o>>>6*(3-l)&63));var u=n.charAt(64);if(u)for(;s.length%4;)s.push(u);return s.join("")},parse:function(e,t){void 0===t&&(t=!0);var r=e.length,i=t?this._safe_map:this._map,n=this._reverseMap;if(!n){n=this._reverseMap=[];for(var a=0;a<i.length;a++)n[i.charCodeAt(a)]=a}var o=i.charAt(64);if(o){var l=e.indexOf(o);-1!==l&&(r=l)}return function(e,t,r){for(var i=[],n=0,a=0;a<t;a++)if(a%4){var o=r[e.charCodeAt(a-1)]<<a%4*2|r[e.charCodeAt(a)]>>>6-a%4*2;i[n>>>2]|=o<<24-n%4*8,n++}return s.create(i,n)}(e,r,n)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"},i.enc.Base64url)},4796:function(e,t,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){void 0===i&&(i=r),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,i){void 0===i&&(i=r),e[i]=t[r]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&i(t,e,r);return n(t,e),t},a=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],i=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.RequestStreamResponderStream=t.RequestStreamRequesterStream=void 0;var o=r(8766),l=r(4438),u=r(2799),c=s(r(7076)),h=function(){function e(e,t,r,i,n){this.payload=e,this.receiver=t,this.fragmentSize=r,this.initialRequestN=i,this.leaseManager=n,this.streamType=u.FrameTypes.REQUEST_STREAM}return e.prototype.handleReady=function(e,t){var r,i;if(this.done)return!1;if(this.streamId=e,this.stream=t,t.connect(this),(0,l.isFragmentable)(this.payload,this.fragmentSize,u.FrameTypes.REQUEST_STREAM))try{for(var n=a((0,l.fragmentWithRequestN)(e,this.payload,this.fragmentSize,u.FrameTypes.REQUEST_STREAM,this.initialRequestN)),s=n.next();!s.done;s=n.next()){var o=s.value;this.stream.send(o)}}catch(e){r={error:e}}finally{try{s&&!s.done&&(i=n.return)&&i.call(n)}finally{if(r)throw r.error}}else this.stream.send({type:u.FrameTypes.REQUEST_STREAM,data:this.payload.data,metadata:this.payload.metadata,requestN:this.initialRequestN,flags:void 0!==this.payload.metadata?u.Flags.METADATA:0,streamId:e});return this.hasExtension&&this.stream.send({type:u.FrameTypes.EXT,streamId:e,extendedContent:this.extendedContent,extendedType:this.extendedType,flags:this.flags}),!0},e.prototype.handleReject=function(e){this.done||(this.done=!0,this.receiver.onError(e))},e.prototype.handle=function(e){var t,r=e.type;switch(r){case u.FrameTypes.PAYLOAD:var i=u.Flags.hasComplete(e.flags),n=u.Flags.hasNext(e.flags);if(i||!u.Flags.hasFollows(e.flags)){if(i&&(this.done=!0,this.stream.disconnect(this),!n))return void this.receiver.onComplete();var s=this.hasFragments?c.reassemble(this,e.data,e.metadata):{data:e.data,metadata:e.metadata};return void this.receiver.onNext(s,i)}if(!c.add(this,e.data,e.metadata)){t="Unexpected fragment size";break}return;case u.FrameTypes.ERROR:return this.done=!0,this.stream.disconnect(this),c.cancel(this),void this.receiver.onError(new o.RSocketError(e.code,e.message));case u.FrameTypes.EXT:if(this.hasFragments){t="Unexpected frame type [".concat(r,"] during reassembly");break}return void this.receiver.onExtension(e.extendedType,e.extendedContent,u.Flags.hasIgnore(e.flags));default:t="Unexpected frame type [".concat(r,"]")}this.close(new o.RSocketError(o.ErrorCodes.CANCELED,t)),this.stream.send({type:u.FrameTypes.CANCEL,streamId:this.streamId,flags:u.Flags.NONE}),this.stream.disconnect(this)},e.prototype.request=function(e){this.done||(this.streamId?this.stream.send({type:u.FrameTypes.REQUEST_N,flags:u.Flags.NONE,requestN:e,streamId:this.streamId}):this.initialRequestN+=e)},e.prototype.cancel=function(){var e;this.done||(this.done=!0,this.streamId?(this.stream.send({type:u.FrameTypes.CANCEL,flags:u.Flags.NONE,streamId:this.streamId}),this.stream.disconnect(this),c.cancel(this)):null===(e=this.leaseManager)||void 0===e||e.cancelRequest(this))},e.prototype.onExtension=function(e,t,r){if(!this.done)return this.streamId?void this.stream.send({streamId:this.streamId,type:u.FrameTypes.EXT,extendedType:e,extendedContent:t,flags:r?u.Flags.IGNORE:u.Flags.NONE}):(this.hasExtension=!0,this.extendedType=e,this.extendedContent=t,void(this.flags=r?u.Flags.IGNORE:u.Flags.NONE))},e.prototype.close=function(e){this.done||(this.done=!0,c.cancel(this),e?this.receiver.onError(e):this.receiver.onComplete())},e}();t.RequestStreamRequesterStream=h;var d=function(){function e(e,t,r,i,n){if(this.streamId=e,this.stream=t,this.fragmentSize=r,this.handler=i,this.streamType=u.FrameTypes.REQUEST_STREAM,t.connect(this),u.Flags.hasFollows(n.flags))return this.initialRequestN=n.requestN,void c.add(this,n.data,n.metadata);var s={data:n.data,metadata:n.metadata};try{this.receiver=i(s,n.requestN,this)}catch(e){this.onError(e)}}return e.prototype.handle=function(e){var t,r;if(!this.receiver||this.hasFragments)if(e.type===u.FrameTypes.PAYLOAD){if(!u.Flags.hasFollows(e.flags)){var i=c.reassemble(this,e.data,e.metadata);try{this.receiver=this.handler(i,this.initialRequestN,this)}catch(e){this.onError(e)}return}if(c.add(this,e.data,e.metadata))return;r="Unexpected frame size"}else r="Unexpected frame type [".concat(e.type,"] during reassembly");else{if(e.type===u.FrameTypes.REQUEST_N)return void this.receiver.request(e.requestN);if(e.type===u.FrameTypes.EXT)return void this.receiver.onExtension(e.extendedType,e.extendedContent,u.Flags.hasIgnore(e.flags));r="Unexpected frame type [".concat(e.type,"]")}this.done=!0,c.cancel(this),null===(t=this.receiver)||void 0===t||t.cancel(),e.type!==u.FrameTypes.CANCEL&&e.type!==u.FrameTypes.ERROR&&this.stream.send({type:u.FrameTypes.ERROR,flags:u.Flags.NONE,code:o.ErrorCodes.CANCELED,message:r,streamId:this.streamId}),this.stream.disconnect(this)},e.prototype.onError=function(e){this.done?console.warn("Trying to error for the second time. ".concat(e?"Dropping error [".concat(e,"]."):"")):(this.done=!0,this.stream.send({type:u.FrameTypes.ERROR,flags:u.Flags.NONE,code:e instanceof o.RSocketError?e.code:o.ErrorCodes.APPLICATION_ERROR,message:e.message,streamId:this.streamId}),this.stream.disconnect(this))},e.prototype.onNext=function(e,t){var r,i;if(!this.done){if(t&&(this.done=!0),(0,l.isFragmentable)(e,this.fragmentSize,u.FrameTypes.PAYLOAD))try{for(var n=a((0,l.fragment)(this.streamId,e,this.fragmentSize,u.FrameTypes.PAYLOAD,t)),s=n.next();!s.done;s=n.next()){var o=s.value;this.stream.send(o)}}catch(e){r={error:e}}finally{try{s&&!s.done&&(i=n.return)&&i.call(n)}finally{if(r)throw r.error}}else this.stream.send({type:u.FrameTypes.PAYLOAD,flags:u.Flags.NEXT|(t?u.Flags.COMPLETE:u.Flags.NONE)|(e.metadata?u.Flags.METADATA:u.Flags.NONE),data:e.data,metadata:e.metadata,streamId:this.streamId});t&&this.stream.disconnect(this)}},e.prototype.onComplete=function(){this.done||(this.done=!0,this.stream.send({type:u.FrameTypes.PAYLOAD,flags:u.Flags.COMPLETE,streamId:this.streamId,data:null,metadata:null}),this.stream.disconnect(this))},e.prototype.onExtension=function(e,t,r){this.done||this.stream.send({type:u.FrameTypes.EXT,streamId:this.streamId,flags:r?u.Flags.IGNORE:u.Flags.NONE,extendedType:e,extendedContent:t})},e.prototype.close=function(e){var t;this.done?console.warn("Trying to close for the second time. ".concat(e?"Dropping error [".concat(e,"]."):"")):(c.cancel(this),null===(t=this.receiver)||void 0===t||t.cancel())},e}();t.RequestStreamResponderStream=d},4905:function(e,t,r){var i;e.exports=(i=r(9021),r(7165),i.pad.Iso10126={pad:function(e,t){var r=4*t,n=r-e.sigBytes%r;e.concat(i.lib.WordArray.random(n-1)).concat(i.lib.WordArray.create([n<<24],1))},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},i.pad.Iso10126)},5033:function(e,t,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){void 0===i&&(i=r),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,i){void 0===i&&(i=r),e[i]=t[r]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&i(t,e,r);return n(t,e),t},a=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],i=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.RequestChannelResponderStream=t.RequestChannelRequesterStream=void 0;var o=r(8766),l=r(4438),u=r(2799),c=s(r(7076)),h=function(){function e(e,t,r,i,n,s){this.payload=e,this.isComplete=t,this.receiver=r,this.fragmentSize=i,this.initialRequestN=n,this.leaseManager=s,this.streamType=u.FrameTypes.REQUEST_CHANNEL}return e.prototype.handleReady=function(e,t){var r,i;if(this.outboundDone)return!1;this.streamId=e,this.stream=t,t.connect(this);var n=this.isComplete;if(n&&(this.outboundDone=n),(0,l.isFragmentable)(this.payload,this.fragmentSize,u.FrameTypes.REQUEST_CHANNEL))try{for(var s=a((0,l.fragmentWithRequestN)(e,this.payload,this.fragmentSize,u.FrameTypes.REQUEST_CHANNEL,this.initialRequestN,n)),o=s.next();!o.done;o=s.next()){var c=o.value;this.stream.send(c)}}catch(e){r={error:e}}finally{try{o&&!o.done&&(i=s.return)&&i.call(s)}finally{if(r)throw r.error}}else this.stream.send({type:u.FrameTypes.REQUEST_CHANNEL,data:this.payload.data,metadata:this.payload.metadata,requestN:this.initialRequestN,flags:(void 0!==this.payload.metadata?u.Flags.METADATA:u.Flags.NONE)|(n?u.Flags.COMPLETE:u.Flags.NONE),streamId:e});return this.hasExtension&&this.stream.send({type:u.FrameTypes.EXT,streamId:e,extendedContent:this.extendedContent,extendedType:this.extendedType,flags:this.flags}),!0},e.prototype.handleReject=function(e){this.inboundDone||(this.inboundDone=!0,this.outboundDone=!0,this.receiver.onError(e))},e.prototype.handle=function(e){var t,r=e.type;switch(r){case u.FrameTypes.PAYLOAD:var i=u.Flags.hasComplete(e.flags),n=u.Flags.hasNext(e.flags);if(i||!u.Flags.hasFollows(e.flags)){if(i&&(this.inboundDone=!0,this.outboundDone&&this.stream.disconnect(this),!n))return void this.receiver.onComplete();var s=this.hasFragments?c.reassemble(this,e.data,e.metadata):{data:e.data,metadata:e.metadata};return void this.receiver.onNext(s,i)}if(c.add(this,e.data,e.metadata))return;t="Unexpected frame size";break;case u.FrameTypes.CANCEL:if(this.outboundDone)return;return this.outboundDone=!0,this.inboundDone&&this.stream.disconnect(this),void this.receiver.cancel();case u.FrameTypes.REQUEST_N:if(this.outboundDone)return;if(this.hasFragments){t="Unexpected frame type [".concat(r,"] during reassembly");break}return void this.receiver.request(e.requestN);case u.FrameTypes.ERROR:var a=this.outboundDone;return this.inboundDone=!0,this.outboundDone=!0,this.stream.disconnect(this),c.cancel(this),a||this.receiver.cancel(),void this.receiver.onError(new o.RSocketError(e.code,e.message));case u.FrameTypes.EXT:return void this.receiver.onExtension(e.extendedType,e.extendedContent,u.Flags.hasIgnore(e.flags));default:t="Unexpected frame type [".concat(r,"]")}this.close(new o.RSocketError(o.ErrorCodes.CANCELED,t)),this.stream.send({type:u.FrameTypes.CANCEL,streamId:this.streamId,flags:u.Flags.NONE}),this.stream.disconnect(this)},e.prototype.request=function(e){this.inboundDone||(this.streamId?this.stream.send({type:u.FrameTypes.REQUEST_N,flags:u.Flags.NONE,requestN:e,streamId:this.streamId}):this.initialRequestN+=e)},e.prototype.cancel=function(){var e,t=this.inboundDone,r=this.outboundDone;t&&r||(this.inboundDone=!0,this.outboundDone=!0,r||this.receiver.cancel(),this.streamId?(this.stream.send({type:t?u.FrameTypes.ERROR:u.FrameTypes.CANCEL,flags:u.Flags.NONE,streamId:this.streamId,code:o.ErrorCodes.CANCELED,message:"Cancelled"}),this.stream.disconnect(this),c.cancel(this)):null===(e=this.leaseManager)||void 0===e||e.cancelRequest(this))},e.prototype.onNext=function(e,t){var r,i;if(!this.outboundDone)if(t&&(this.outboundDone=!0,this.inboundDone&&this.stream.disconnect(this)),(0,l.isFragmentable)(e,this.fragmentSize,u.FrameTypes.PAYLOAD))try{for(var n=a((0,l.fragment)(this.streamId,e,this.fragmentSize,u.FrameTypes.PAYLOAD,t)),s=n.next();!s.done;s=n.next()){var o=s.value;this.stream.send(o)}}catch(e){r={error:e}}finally{try{s&&!s.done&&(i=n.return)&&i.call(n)}finally{if(r)throw r.error}}else this.stream.send({type:u.FrameTypes.PAYLOAD,streamId:this.streamId,flags:u.Flags.NEXT|(e.metadata?u.Flags.METADATA:u.Flags.NONE)|(t?u.Flags.COMPLETE:u.Flags.NONE),data:e.data,metadata:e.metadata})},e.prototype.onComplete=function(){this.streamId?this.outboundDone||(this.outboundDone=!0,this.stream.send({type:u.FrameTypes.PAYLOAD,streamId:this.streamId,flags:u.Flags.COMPLETE,data:null,metadata:null}),this.inboundDone&&this.stream.disconnect(this)):this.isComplete=!0},e.prototype.onError=function(e){if(!this.outboundDone){var t=this.inboundDone;this.outboundDone=!0,this.inboundDone=!0,this.stream.send({type:u.FrameTypes.ERROR,streamId:this.streamId,flags:u.Flags.NONE,code:e instanceof o.RSocketError?e.code:o.ErrorCodes.APPLICATION_ERROR,message:e.message}),this.stream.disconnect(this),t||this.receiver.onError(e)}},e.prototype.onExtension=function(e,t,r){if(!this.outboundDone)return this.streamId?void this.stream.send({streamId:this.streamId,type:u.FrameTypes.EXT,extendedType:e,extendedContent:t,flags:r?u.Flags.IGNORE:u.Flags.NONE}):(this.hasExtension=!0,this.extendedType=e,this.extendedContent=t,void(this.flags=r?u.Flags.IGNORE:u.Flags.NONE))},e.prototype.close=function(e){if(!this.inboundDone||!this.outboundDone){var t=this.inboundDone,r=this.outboundDone;this.inboundDone=!0,this.outboundDone=!0,c.cancel(this),r||this.receiver.cancel(),t||(e?this.receiver.onError(e):this.receiver.onComplete())}},e}();t.RequestChannelRequesterStream=h;var d=function(){function e(e,t,r,i,n){if(this.streamId=e,this.stream=t,this.fragmentSize=r,this.handler=i,this.streamType=u.FrameTypes.REQUEST_CHANNEL,t.connect(this),u.Flags.hasFollows(n.flags))return c.add(this,n.data,n.metadata),this.initialRequestN=n.requestN,void(this.isComplete=u.Flags.hasComplete(n.flags));var s={data:n.data,metadata:n.metadata},a=u.Flags.hasComplete(n.flags);this.inboundDone=a;try{this.receiver=i(s,n.requestN,a,this),this.outboundDone&&this.defferedError&&this.receiver.onError(this.defferedError)}catch(e){this.outboundDone&&!this.inboundDone?this.cancel():this.inboundDone=!0,this.onError(e)}}return e.prototype.handle=function(e){var t,r=e.type;switch(r){case u.FrameTypes.PAYLOAD:if(u.Flags.hasFollows(e.flags)){if(c.add(this,e.data,e.metadata))return;t="Unexpected frame size";break}var i=this.hasFragments?c.reassemble(this,e.data,e.metadata):{data:e.data,metadata:e.metadata},n=u.Flags.hasComplete(e.flags);if(this.receiver){if(n&&(this.inboundDone=!0,this.outboundDone&&this.stream.disconnect(this),!u.Flags.hasNext(e.flags)))return void this.receiver.onComplete();this.receiver.onNext(i,n)}else{(s=this.isComplete||n)&&(this.inboundDone=!0,this.outboundDone&&this.stream.disconnect(this));try{this.receiver=this.handler(i,this.initialRequestN,s,this),this.outboundDone&&this.defferedError}catch(l){this.outboundDone&&!this.inboundDone?this.cancel():this.inboundDone=!0,this.onError(l)}}return;case u.FrameTypes.REQUEST_N:if(!this.receiver||this.hasFragments){t="Unexpected frame type [".concat(r,"] during reassembly");break}return void this.receiver.request(e.requestN);case u.FrameTypes.ERROR:case u.FrameTypes.CANCEL:var s=this.inboundDone,a=this.outboundDone;if(this.inboundDone=!0,this.outboundDone=!0,this.stream.disconnect(this),c.cancel(this),!this.receiver)return;if(a||this.receiver.cancel(),!s){var l=r===u.FrameTypes.CANCEL?new o.RSocketError(o.ErrorCodes.CANCELED,"Cancelled"):new o.RSocketError(e.code,e.message);this.receiver.onError(l)}return;case u.FrameTypes.EXT:if(!this.receiver||this.hasFragments){t="Unexpected frame type [".concat(r,"] during reassembly");break}return void this.receiver.onExtension(e.extendedType,e.extendedContent,u.Flags.hasIgnore(e.flags));default:t="Unexpected frame type [".concat(r,"]")}this.stream.send({type:u.FrameTypes.ERROR,flags:u.Flags.NONE,code:o.ErrorCodes.CANCELED,message:t,streamId:this.streamId}),this.stream.disconnect(this),this.close(new o.RSocketError(o.ErrorCodes.CANCELED,t))},e.prototype.onError=function(e){if(this.outboundDone)console.warn("Trying to error for the second time. ".concat(e?"Dropping error [".concat(e,"]."):""));else{var t=this.inboundDone;this.outboundDone=!0,this.inboundDone=!0,this.stream.send({type:u.FrameTypes.ERROR,flags:u.Flags.NONE,code:e instanceof o.RSocketError?e.code:o.ErrorCodes.APPLICATION_ERROR,message:e.message,streamId:this.streamId}),this.stream.disconnect(this),t||(this.receiver?this.receiver.onError(e):this.defferedError=e)}},e.prototype.onNext=function(e,t){var r,i;if(!this.outboundDone){if(t&&(this.outboundDone=!0),(0,l.isFragmentable)(e,this.fragmentSize,u.FrameTypes.PAYLOAD))try{for(var n=a((0,l.fragment)(this.streamId,e,this.fragmentSize,u.FrameTypes.PAYLOAD,t)),s=n.next();!s.done;s=n.next()){var o=s.value;this.stream.send(o)}}catch(e){r={error:e}}finally{try{s&&!s.done&&(i=n.return)&&i.call(n)}finally{if(r)throw r.error}}else this.stream.send({type:u.FrameTypes.PAYLOAD,flags:u.Flags.NEXT|(t?u.Flags.COMPLETE:u.Flags.NONE)|(e.metadata?u.Flags.METADATA:u.Flags.NONE),data:e.data,metadata:e.metadata,streamId:this.streamId});t&&this.inboundDone&&this.stream.disconnect(this)}},e.prototype.onComplete=function(){this.outboundDone||(this.outboundDone=!0,this.stream.send({type:u.FrameTypes.PAYLOAD,flags:u.Flags.COMPLETE,streamId:this.streamId,data:null,metadata:null}),this.inboundDone&&this.stream.disconnect(this))},e.prototype.onExtension=function(e,t,r){this.outboundDone&&this.inboundDone||this.stream.send({type:u.FrameTypes.EXT,streamId:this.streamId,flags:r?u.Flags.IGNORE:u.Flags.NONE,extendedType:e,extendedContent:t})},e.prototype.request=function(e){this.inboundDone||this.stream.send({type:u.FrameTypes.REQUEST_N,flags:u.Flags.NONE,streamId:this.streamId,requestN:e})},e.prototype.cancel=function(){this.inboundDone||(this.inboundDone=!0,this.stream.send({type:u.FrameTypes.CANCEL,flags:u.Flags.NONE,streamId:this.streamId}),this.outboundDone&&this.stream.disconnect(this))},e.prototype.close=function(e){if(this.inboundDone&&this.outboundDone)console.warn("Trying to close for the second time. ".concat(e?"Dropping error [".concat(e,"]."):""));else{var t=this.inboundDone,r=this.outboundDone;this.inboundDone=!0,this.outboundDone=!0,c.cancel(this);var i=this.receiver;i&&(r||i.cancel(),t||(e?i.onError(e):i.onComplete()))}},e}();t.RequestChannelResponderStream=d},5339:function(e,t,r){var i="function"==typeof Object.defineProperties?Object.defineProperty:function(e,t,r){e!=Array.prototype&&e!=Object.prototype&&(e[t]=r.value)},n="undefined"!=typeof window&&window===this?this:void 0!==r.g&&null!=r.g?r.g:this;function s(){s=function(){},n.Symbol||(n.Symbol=l)}function a(e,t){this.a=e,i(this,"description",{configurable:!0,writable:!0,value:t})}a.prototype.toString=function(){return this.a};var o,l=(o=0,function e(t){if(this instanceof e)throw new TypeError("Symbol is not a constructor");return new a("jscomp_symbol_"+(t||"")+"_"+o++,t)});function u(){s();var e=n.Symbol.iterator;e||(e=n.Symbol.iterator=n.Symbol("Symbol.iterator")),"function"!=typeof Array.prototype[e]&&i(Array.prototype,e,{configurable:!0,writable:!0,value:function(){return function(e){return u(),(e={next:e})[n.Symbol.iterator]=function(){return this},e}(function(e){var t=0;return function(){return t<e.length?{done:!1,value:e[t++]}:{done:!0}}}(this))}}),u=function(){}}!function(e,t){if(t){var r=n;e=e.split(".");for(var s=0;s<e.length-1;s++){var a=e[s];a in r||(r[a]={}),r=r[a]}(t=t(s=r[e=e[e.length-1]]))!=s&&null!=t&&i(r,e,{configurable:!0,writable:!0,value:t})}}("Array.prototype.entries",function(e){return e||function(){return function(e,t){u(),e instanceof String&&(e+="");var r=0,i={next:function(){if(r<e.length){var n=r++;return{value:t(n,e[n]),done:!1}}return i.next=function(){return{done:!0,value:void 0}},i.next()}};return i[Symbol.iterator]=function(){return i},i}(this,function(e,t){return[e,t]})}});var c=this||self;function h(e,t,r){e=e.split("."),r=r||c,e[0]in r||void 0===r.execScript||r.execScript("var "+e[0]);for(var i;e.length&&(i=e.shift());)e.length||void 0===t?r=r[i]&&r[i]!==Object.prototype[i]?r[i]:r[i]={}:r[i]=t}function d(e){var t=typeof e;if("object"==t){if(!e)return"null";if(e instanceof Array)return"array";if(e instanceof Object)return t;var r=Object.prototype.toString.call(e);if("[object Window]"==r)return"object";if("[object Array]"==r||"number"==typeof e.length&&void 0!==e.splice&&void 0!==e.propertyIsEnumerable&&!e.propertyIsEnumerable("splice"))return"array";if("[object Function]"==r||void 0!==e.call&&void 0!==e.propertyIsEnumerable&&!e.propertyIsEnumerable("call"))return"function"}else if("function"==t&&void 0===e.call)return"object";return t}function p(e){var t=typeof e;return"object"==t&&null!=e||"function"==t}var f="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" "),g=Array.prototype.forEach?function(e,t){Array.prototype.forEach.call(e,t,void 0)}:function(e,t){for(var r=e.length,i="string"==typeof e?e.split(""):e,n=0;n<r;n++)n in i&&t.call(void 0,i[n],n,e)},m=Array.prototype.map?function(e,t){return Array.prototype.map.call(e,t,void 0)}:function(e,t){for(var r=e.length,i=Array(r),n="string"==typeof e?e.split(""):e,s=0;s<r;s++)s in n&&(i[s]=t.call(void 0,n[s],s,e));return i};function y(e,t,r){return 2>=arguments.length?Array.prototype.slice.call(e,t):Array.prototype.slice.call(e,t,r)}function v(e,t,r,i){var n="Assertion failed";if(r){n+=": "+r;var s=i}else e&&(n+=": "+e,s=t);throw Error(n,s||[])}function b(e,t,r){for(var i=[],n=2;n<arguments.length;++n)i[n-2]=arguments[n];return e||v("",null,t,i),e}function I(e,t){for(var r=[],i=1;i<arguments.length;++i)r[i-1]=arguments[i];throw Error("Failure"+(e?": "+e:""),r)}function w(e,t,r,i){for(var n=[],s=3;s<arguments.length;++s)n[s-3]=arguments[s];e instanceof t||v("Expected instanceof %s but got %s.",[E(t),E(e)],r,n)}function E(e){return e instanceof Function?e.displayName||e.name||"unknown type name":e instanceof Object?e.constructor.displayName||e.constructor.name||Object.prototype.toString.call(e):null===e?"null":typeof e}function k(e,t){if(this.c=e,this.b=t,this.a={},this.arrClean=!0,0<this.c.length){for(e=0;e<this.c.length;e++){var r=(t=this.c[e])[0];this.a[r.toString()]=new T(r,t[1])}this.arrClean=!0}}function S(e){this.a=0,this.b=e}function M(e,t){return e.b?(t.a||(t.a=new e.b(t.value)),t.a):t.value}function F(e){e=e.a;var t,r=[];for(t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.push(t);return r}function T(e,t){this.key=e,this.value=t,this.a=void 0}function R(e){if(8192>=e.length)return String.fromCharCode.apply(null,e);for(var t="",r=0;r<e.length;r+=8192)t+=String.fromCharCode.apply(null,y(e,r,r+8192));return t}h("jspb.Map",k,void 0),k.prototype.g=function(){if(this.arrClean){if(this.b){var e,t=this.a;for(e in t)if(Object.prototype.hasOwnProperty.call(t,e)){var r=t[e].a;r&&r.g()}}}else{for(this.c.length=0,(t=F(this)).sort(),e=0;e<t.length;e++){var i=this.a[t[e]];(r=i.a)&&r.g(),this.c.push([i.key,i.value])}this.arrClean=!0}return this.c},k.prototype.toArray=k.prototype.g,k.prototype.Mc=function(e,t){for(var r=this.g(),i=[],n=0;n<r.length;n++){var s=this.a[r[n][0].toString()];M(this,s);var a=s.a;a?(b(t),i.push([s.key,t(e,a)])):i.push([s.key,s.value])}return i},k.prototype.toObject=k.prototype.Mc,k.fromObject=function(e,t,r){t=new k([],t);for(var i=0;i<e.length;i++){var n=e[i][0],s=r(e[i][1]);t.set(n,s)}return t},S.prototype.next=function(){return this.a<this.b.length?{done:!1,value:this.b[this.a++]}:{done:!0,value:void 0}},"undefined"!=typeof Symbol&&(S.prototype[Symbol.iterator]=function(){return this}),k.prototype.Jb=function(){return F(this).length},k.prototype.getLength=k.prototype.Jb,k.prototype.clear=function(){this.a={},this.arrClean=!1},k.prototype.clear=k.prototype.clear,k.prototype.Cb=function(e){e=e.toString();var t=this.a.hasOwnProperty(e);return delete this.a[e],this.arrClean=!1,t},k.prototype.del=k.prototype.Cb,k.prototype.Eb=function(){var e=[],t=F(this);t.sort();for(var r=0;r<t.length;r++){var i=this.a[t[r]];e.push([i.key,i.value])}return e},k.prototype.getEntryList=k.prototype.Eb,k.prototype.entries=function(){var e=[],t=F(this);t.sort();for(var r=0;r<t.length;r++){var i=this.a[t[r]];e.push([i.key,M(this,i)])}return new S(e)},k.prototype.entries=k.prototype.entries,k.prototype.keys=function(){var e=[],t=F(this);t.sort();for(var r=0;r<t.length;r++)e.push(this.a[t[r]].key);return new S(e)},k.prototype.keys=k.prototype.keys,k.prototype.values=function(){var e=[],t=F(this);t.sort();for(var r=0;r<t.length;r++)e.push(M(this,this.a[t[r]]));return new S(e)},k.prototype.values=k.prototype.values,k.prototype.forEach=function(e,t){var r=F(this);r.sort();for(var i=0;i<r.length;i++){var n=this.a[r[i]];e.call(t,M(this,n),n.key,this)}},k.prototype.forEach=k.prototype.forEach,k.prototype.set=function(e,t){var r=new T(e);return this.b?(r.a=t,r.value=t.g()):r.value=t,this.a[e.toString()]=r,this.arrClean=!1,this},k.prototype.set=k.prototype.set,k.prototype.get=function(e){if(e=this.a[e.toString()])return M(this,e)},k.prototype.get=k.prototype.get,k.prototype.has=function(e){return e.toString()in this.a},k.prototype.has=k.prototype.has,k.prototype.Jc=function(e,t,r,i,n){var s=F(this);s.sort();for(var a=0;a<s.length;a++){var o=this.a[s[a]];t.Va(e),r.call(t,1,o.key),this.b?i.call(t,2,M(this,o),n):i.call(t,2,o.value),t.Ya()}},k.prototype.serializeBinary=k.prototype.Jc,k.deserializeBinary=function(e,t,r,i,n,s,a){for(;t.oa()&&!t.bb();){var o=t.c;1==o?s=r.call(t):2==o&&(e.b?(b(n),a||(a=new e.b),i.call(t,a,n)):a=i.call(t))}b(null!=s),b(null!=a),e.set(s,a)};var A={"\0":"\\0","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\x0B",'"':'\\"',"\\":"\\\\","<":"\\u003C"},_={"'":"\\'"},O={},C=null;function x(e,t){void 0===t&&(t=0),D(),t=O[t];for(var r=[],i=0;i<e.length;i+=3){var n=e[i],s=i+1<e.length,a=s?e[i+1]:0,o=i+2<e.length,l=o?e[i+2]:0,u=n>>2;n=(3&n)<<4|a>>4,a=(15&a)<<2|l>>6,l&=63,o||(l=64,s||(a=64)),r.push(t[u],t[n],t[a]||"",t[l]||"")}return r.join("")}function N(e){var t=e.length,r=3*t/4;r%3?r=Math.floor(r):-1!="=.".indexOf(e[t-1])&&(r=-1!="=.".indexOf(e[t-2])?r-2:r-1);var i=new Uint8Array(r),n=0;return function(e,t){function r(t){for(;i<e.length;){var r=e.charAt(i++),n=C[r];if(null!=n)return n;if(!/^[\s\xa0]*$/.test(r))throw Error("Unknown base64 encoding at char: "+r)}return t}D();for(var i=0;;){var n=r(-1),s=r(0),a=r(64),o=r(64);if(64===o&&-1===n)break;t(n<<2|s>>4),64!=a&&(t(s<<4&240|a>>2),64!=o&&t(a<<6&192|o))}}(e,function(e){i[n++]=e}),i.subarray(0,n)}function D(){if(!C){C={};for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),t=["+/=","+/","-_=","-_.","-_"],r=0;5>r;r++){var i=e.concat(t[r].split(""));O[r]=i;for(var n=0;n<i.length;n++){var s=i[n];void 0===C[s]&&(C[s]=n)}}}}h("jspb.ConstBinaryMessage",function(){},void 0),h("jspb.BinaryMessage",function(){},void 0),h("jspb.BinaryConstants.FieldType",{yb:-1,ee:1,FLOAT:2,ke:3,te:4,je:5,xb:6,wb:7,BOOL:8,re:9,ie:10,le:11,ce:12,se:13,ge:14,me:15,ne:16,oe:17,pe:18,he:30,ve:31},void 0),h("jspb.BinaryConstants.WireType",{yb:-1,ue:0,xb:1,de:2,qe:3,fe:4,wb:5},void 0),h("jspb.BinaryConstants.FieldTypeToWireType",function(e){switch(e){case 5:case 3:case 13:case 4:case 17:case 18:case 8:case 14:case 31:return 0;case 1:case 6:case 16:case 30:return 1;case 9:case 11:case 12:return 2;case 2:case 7:case 15:return 5;default:return-1}},void 0),h("jspb.BinaryConstants.INVALID_FIELD_NUMBER",-1,void 0),h("jspb.BinaryConstants.FLOAT32_EPS",1401298464324817e-60,void 0),h("jspb.BinaryConstants.FLOAT32_MIN",11754943508222875e-54,void 0),h("jspb.BinaryConstants.FLOAT32_MAX",34028234663852886e22,void 0),h("jspb.BinaryConstants.FLOAT64_EPS",5e-324,void 0),h("jspb.BinaryConstants.FLOAT64_MIN",22250738585072014e-324,void 0),h("jspb.BinaryConstants.FLOAT64_MAX",17976931348623157e292,void 0),h("jspb.BinaryConstants.TWO_TO_20",1048576,void 0),h("jspb.BinaryConstants.TWO_TO_23",8388608,void 0),h("jspb.BinaryConstants.TWO_TO_31",2147483648,void 0),h("jspb.BinaryConstants.TWO_TO_32",4294967296,void 0),h("jspb.BinaryConstants.TWO_TO_52",4503599627370496,void 0),h("jspb.BinaryConstants.TWO_TO_63",0x8000000000000000,void 0),h("jspb.BinaryConstants.TWO_TO_64",0x10000000000000000,void 0),h("jspb.BinaryConstants.ZERO_HASH","\0\0\0\0\0\0\0\0",void 0);var P=0,L=0;function B(e){var t=e>>>0;e=Math.floor((e-t)/4294967296)>>>0,P=t,L=e}function j(e){var t=0>e,r=(e=Math.abs(e))>>>0;e=Math.floor((e-r)/4294967296),e>>>=0,t&&(e=~e>>>0,4294967295<(r=(~r>>>0)+1)&&(r=0,4294967295<++e&&(e=0))),P=r,L=e}function U(e){var t=0>e;B(e=2*Math.abs(e)),e=P;var r=L;t&&(0==e?0==r?r=e=4294967295:(r--,e=4294967295):e--),P=e,L=r}function W(e){var t=0>e?1:0;if(0===(e=t?-e:e))0<1/e?P=L=0:(L=0,P=2147483648);else if(isNaN(e))L=0,P=2147483647;else if(34028234663852886e22<e)L=0,P=(t<<31|2139095040)>>>0;else if(11754943508222875e-54>e)e=Math.round(e/Math.pow(2,-149)),L=0,P=(t<<31|e)>>>0;else{var r=Math.floor(Math.log(e)/Math.LN2);e*=Math.pow(2,-r),16777216<=(e=Math.round(8388608*e))&&++r,L=0,P=(t<<31|r+127<<23|8388607&e)>>>0}}function z(e){var t=0>e?1:0;if(0===(e=t?-e:e))L=0<1/e?0:2147483648,P=0;else if(isNaN(e))L=2147483647,P=4294967295;else if(17976931348623157e292<e)L=(t<<31|2146435072)>>>0,P=0;else if(22250738585072014e-324>e)e/=Math.pow(2,-1074),L=(t<<31|e/4294967296)>>>0,P=e>>>0;else{var r=e,i=0;if(2<=r)for(;2<=r&&1023>i;)i++,r/=2;else for(;1>r&&-1022<i;)r*=2,i--;e*=Math.pow(2,-i),L=(t<<31|i+1023<<20|1048576*e&1048575)>>>0,P=4503599627370496*e>>>0}}function H(e){var t=e.charCodeAt(4),r=e.charCodeAt(5),i=e.charCodeAt(6),n=e.charCodeAt(7);P=e.charCodeAt(0)+(e.charCodeAt(1)<<8)+(e.charCodeAt(2)<<16)+(e.charCodeAt(3)<<24)>>>0,L=t+(r<<8)+(i<<16)+(n<<24)>>>0}function K(e,t){return 4294967296*t+(e>>>0)}function G(e,t){var r=2147483648&t;return r&&(t=~t>>>0,0==(e=1+~e>>>0)&&(t=t+1>>>0)),e=K(e,t),r?-e:e}function q(e,t,r){var i=t>>31;return r(e<<1^i,(t<<1|e>>>31)^i)}function V(e,t){return Y(e,t,G)}function Y(e,t,r){var i=-(1&e);return r((e>>>1|t<<31)^i,t>>>1^i)}function X(e){var t=2*(e>>31)+1,r=e>>>23&255;return e&=8388607,255==r?e?NaN:1/0*t:0==r?t*Math.pow(2,-149)*e:t*Math.pow(2,r-150)*(e+Math.pow(2,23))}function J(e,t){var r=2*(t>>31)+1,i=t>>>20&2047;return e=4294967296*(1048575&t)+e,2047==i?e?NaN:1/0*r:0==i?r*Math.pow(2,-1074)*e:r*Math.pow(2,i-1075)*(e+4503599627370496)}function Z(e,t){return String.fromCharCode(e>>>0&255,e>>>8&255,e>>>16&255,e>>>24&255,t>>>0&255,t>>>8&255,t>>>16&255,t>>>24&255)}function Q(e,t){function r(e,t){return e=e?String(e):"",t?"0000000".slice(e.length)+e:e}if(2097151>=t)return""+K(e,t);var i=(e>>>24|t<<8)>>>0&16777215;return e=(16777215&e)+6777216*i+6710656*(t=t>>16&65535),i+=8147497*t,t*=2,1e7<=e&&(i+=Math.floor(e/1e7),e%=1e7),1e7<=i&&(t+=Math.floor(i/1e7),i%=1e7),r(t,0)+r(i,t)+r(e,1)}function $(e,t){var r=2147483648&t;return r&&(t=~t+(0==(e=1+~e>>>0)?1:0)>>>0),e=Q(e,t),r?"-"+e:e}function ee(e,t){H(e),e=P;var r=L;return t?$(e,r):Q(e,r)}function te(e){function t(e,t){for(var r=0;8>r&&(1!==e||0<t);r++)t=e*i[r]+t,i[r]=255&t,t>>>=8}b(0<e.length);var r=!1;"-"===e[0]&&(r=!0,e=e.slice(1));for(var i=[0,0,0,0,0,0,0,0],n=0;n<e.length;n++)t(10,e.charCodeAt(n)-48);return r&&(function(){for(var e=0;8>e;e++)i[e]=255&~i[e]}(),t(1,1)),R(i)}function re(e){return String.fromCharCode(10>e?48+e:87+e)}function ie(e){return 97<=e?e-97+10:e-48}function ne(e,t,r,i,n){var s=0;if(128>i)for(;t<r&&e[t++]==i;)s++,t+=n;else for(;t<r;){for(var a=i;128<a;){if(e[t++]!=(127&a|128))return s;a>>=7}if(e[t++]!=a)break;s++,t+=n}return s}function se(e){return e.constructor===Uint8Array?e:e.constructor===ArrayBuffer||e.constructor===Array?new Uint8Array(e):e.constructor===String?N(e):e instanceof Uint8Array?new Uint8Array(e.buffer,e.byteOffset,e.byteLength):(I("Type not convertible to Uint8Array."),new Uint8Array(0))}function ae(e,t,r){this.b=null,this.a=this.c=this.h=0,this.v=!1,e&&this.H(e,t,r)}h("jspb.utils.getSplit64Low",function(){return P},void 0),h("jspb.utils.getSplit64High",function(){return L},void 0),h("jspb.utils.splitUint64",B,void 0),h("jspb.utils.splitInt64",j,void 0),h("jspb.utils.splitZigzag64",U,void 0),h("jspb.utils.splitFloat32",W,void 0),h("jspb.utils.splitFloat64",z,void 0),h("jspb.utils.splitHash64",H,void 0),h("jspb.utils.joinUint64",K,void 0),h("jspb.utils.joinInt64",G,void 0),h("jspb.utils.toZigzag64",q,void 0),h("jspb.utils.joinZigzag64",V,void 0),h("jspb.utils.fromZigzag64",Y,void 0),h("jspb.utils.joinFloat32",X,void 0),h("jspb.utils.joinFloat64",J,void 0),h("jspb.utils.joinHash64",Z,void 0),h("jspb.utils.DIGITS","0123456789abcdef".split(""),void 0),h("jspb.utils.joinUnsignedDecimalString",Q,void 0),h("jspb.utils.joinSignedDecimalString",$,void 0),h("jspb.utils.hash64ToDecimalString",ee,void 0),h("jspb.utils.hash64ArrayToDecimalStrings",function(e,t){for(var r=Array(e.length),i=0;i<e.length;i++)r[i]=ee(e[i],t);return r},void 0),h("jspb.utils.decimalStringToHash64",te,void 0),h("jspb.utils.splitDecimalString",function(e){H(te(e))},void 0),h("jspb.utils.hash64ToHexString",function(e){var t=Array(18);t[0]="0",t[1]="x";for(var r=0;8>r;r++){var i=e.charCodeAt(7-r);t[2*r+2]=re(i>>4),t[2*r+3]=re(15&i)}return t.join("")},void 0),h("jspb.utils.hexStringToHash64",function(e){b(18==(e=e.toLowerCase()).length),b("0"==e[0]),b("x"==e[1]);for(var t="",r=0;8>r;r++)t=String.fromCharCode(16*ie(e.charCodeAt(2*r+2))+ie(e.charCodeAt(2*r+3)))+t;return t},void 0),h("jspb.utils.hash64ToNumber",function(e,t){H(e),e=P;var r=L;return t?G(e,r):K(e,r)},void 0),h("jspb.utils.numberToHash64",function(e){return j(e),Z(P,L)},void 0),h("jspb.utils.countVarints",function(e,t,r){for(var i=0,n=t;n<r;n++)i+=e[n]>>7;return r-t-i},void 0),h("jspb.utils.countVarintFields",function(e,t,r,i){var n=0;if(128>(i*=8))for(;t<r&&e[t++]==i;)for(n++;;){var s=e[t++];if(!(128&s))break}else for(;t<r;){for(s=i;128<s;){if(e[t]!=(127&s|128))return n;t++,s>>=7}if(e[t++]!=s)break;for(n++;128&(s=e[t++]););}return n},void 0),h("jspb.utils.countFixed32Fields",function(e,t,r,i){return ne(e,t,r,8*i+5,4)},void 0),h("jspb.utils.countFixed64Fields",function(e,t,r,i){return ne(e,t,r,8*i+1,8)},void 0),h("jspb.utils.countDelimitedFields",function(e,t,r,i){var n=0;for(i=8*i+2;t<r;){for(var s=i;128<s;){if(e[t++]!=(127&s|128))return n;s>>=7}if(e[t++]!=s)break;n++;for(var a=0,o=1;a+=(127&(s=e[t++]))*o,o*=128,128&s;);t+=a}return n},void 0),h("jspb.utils.debugBytesToTextFormat",function(e){var t='"';if(e){e=se(e);for(var r=0;r<e.length;r++)t+="\\x",16>e[r]&&(t+="0"),t+=e[r].toString(16)}return t+'"'},void 0),h("jspb.utils.debugScalarToTextFormat",function(e){if("string"==typeof e){e=String(e);for(var t=['"'],r=0;r<e.length;r++){var i,n=e.charAt(r),s=n.charCodeAt(0),a=r+1;(i=A[n])||(31<s&&127>s||((s=n)in _?n=_[s]:s in A?n=_[s]=A[s]:(31<(i=s.charCodeAt(0))&&127>i?n=s:(256>i?(n="\\x",(16>i||256<i)&&(n+="0")):(n="\\u",4096>i&&(n+="0")),n+=i.toString(16).toUpperCase()),n=_[s]=n)),i=n),t[a]=i}t.push('"'),e=t.join("")}else e=e.toString();return e},void 0),h("jspb.utils.stringToByteArray",function(e){for(var t=new Uint8Array(e.length),r=0;r<e.length;r++){var i=e.charCodeAt(r);if(255<i)throw Error("Conversion error: string contains codepoint outside of byte range");t[r]=i}return t},void 0),h("jspb.utils.byteSourceToUint8Array",se,void 0),h("jspb.BinaryDecoder",ae,void 0);var oe=[];function le(e,t,r){if(oe.length){var i=oe.pop();return e&&i.H(e,t,r),i}return new ae(e,t,r)}function ue(e,t,r){this.a=le(e,t,r),this.O=this.a.B(),this.b=this.c=-1,this.h=!1,this.v=null}ae.getInstanceCacheLength=function(){return oe.length},ae.alloc=le,ae.prototype.Ca=function(){this.clear(),100>oe.length&&oe.push(this)},ae.prototype.free=ae.prototype.Ca,ae.prototype.clone=function(){return le(this.b,this.h,this.c-this.h)},ae.prototype.clone=ae.prototype.clone,ae.prototype.clear=function(){this.b=null,this.a=this.c=this.h=0,this.v=!1},ae.prototype.clear=ae.prototype.clear,ae.prototype.Y=function(){return this.b},ae.prototype.getBuffer=ae.prototype.Y,ae.prototype.H=function(e,t,r){this.b=se(e),this.h=void 0!==t?t:0,this.c=void 0!==r?this.h+r:this.b.length,this.a=this.h},ae.prototype.setBlock=ae.prototype.H,ae.prototype.Db=function(){return this.c},ae.prototype.getEnd=ae.prototype.Db,ae.prototype.setEnd=function(e){this.c=e},ae.prototype.setEnd=ae.prototype.setEnd,ae.prototype.reset=function(){this.a=this.h},ae.prototype.reset=ae.prototype.reset,ae.prototype.B=function(){return this.a},ae.prototype.getCursor=ae.prototype.B,ae.prototype.Ma=function(e){this.a=e},ae.prototype.setCursor=ae.prototype.Ma,ae.prototype.advance=function(e){this.a+=e,b(this.a<=this.c)},ae.prototype.advance=ae.prototype.advance,ae.prototype.ya=function(){return this.a==this.c},ae.prototype.atEnd=ae.prototype.ya,ae.prototype.Qb=function(){return this.a>this.c},ae.prototype.pastEnd=ae.prototype.Qb,ae.prototype.getError=function(){return this.v||0>this.a||this.a>this.c},ae.prototype.getError=ae.prototype.getError,ae.prototype.w=function(e){for(var t=128,r=0,i=0,n=0;4>n&&128<=t;n++)r|=(127&(t=this.b[this.a++]))<<7*n;if(128<=t&&(r|=(127&(t=this.b[this.a++]))<<28,i|=(127&t)>>4),128<=t)for(n=0;5>n&&128<=t;n++)i|=(127&(t=this.b[this.a++]))<<7*n+3;if(128>t)return e(r>>>0,i>>>0);I("Failed to read varint, encoding is invalid."),this.v=!0},ae.prototype.readSplitVarint64=ae.prototype.w,ae.prototype.ea=function(e){return this.w(function(t,r){return Y(t,r,e)})},ae.prototype.readSplitZigzagVarint64=ae.prototype.ea,ae.prototype.ta=function(e){var t=this.b,r=this.a;this.a+=8;for(var i=0,n=0,s=r+7;s>=r;s--)i=i<<8|t[s],n=n<<8|t[s+4];return e(i,n)},ae.prototype.readSplitFixed64=ae.prototype.ta,ae.prototype.kb=function(){for(;128&this.b[this.a];)this.a++;this.a++},ae.prototype.skipVarint=ae.prototype.kb,ae.prototype.mb=function(e){for(;128<e;)this.a--,e>>>=7;this.a--},ae.prototype.unskipVarint=ae.prototype.mb,ae.prototype.o=function(){var e=this.b,t=e[this.a],r=127&t;return 128>t?(this.a+=1,b(this.a<=this.c),r):(r|=(127&(t=e[this.a+1]))<<7,128>t?(this.a+=2,b(this.a<=this.c),r):(r|=(127&(t=e[this.a+2]))<<14,128>t?(this.a+=3,b(this.a<=this.c),r):(r|=(127&(t=e[this.a+3]))<<21,128>t?(this.a+=4,b(this.a<=this.c),r):(r|=(15&(t=e[this.a+4]))<<28,128>t?(this.a+=5,b(this.a<=this.c),r>>>0):(this.a+=5,128<=e[this.a++]&&128<=e[this.a++]&&128<=e[this.a++]&&128<=e[this.a++]&&128<=e[this.a++]&&b(!1),b(this.a<=this.c),r)))))},ae.prototype.readUnsignedVarint32=ae.prototype.o,ae.prototype.da=function(){return~~this.o()},ae.prototype.readSignedVarint32=ae.prototype.da,ae.prototype.O=function(){return this.o().toString()},ae.prototype.Ea=function(){return this.da().toString()},ae.prototype.readSignedVarint32String=ae.prototype.Ea,ae.prototype.Ia=function(){var e=this.o();return e>>>1^-(1&e)},ae.prototype.readZigzagVarint32=ae.prototype.Ia,ae.prototype.Ga=function(){return this.w(K)},ae.prototype.readUnsignedVarint64=ae.prototype.Ga,ae.prototype.Ha=function(){return this.w(Q)},ae.prototype.readUnsignedVarint64String=ae.prototype.Ha,ae.prototype.sa=function(){return this.w(G)},ae.prototype.readSignedVarint64=ae.prototype.sa,ae.prototype.Fa=function(){return this.w($)},ae.prototype.readSignedVarint64String=ae.prototype.Fa,ae.prototype.Ja=function(){return this.w(V)},ae.prototype.readZigzagVarint64=ae.prototype.Ja,ae.prototype.fb=function(){return this.ea(Z)},ae.prototype.readZigzagVarintHash64=ae.prototype.fb,ae.prototype.Ka=function(){return this.ea($)},ae.prototype.readZigzagVarint64String=ae.prototype.Ka,ae.prototype.Gc=function(){var e=this.b[this.a];return this.a+=1,b(this.a<=this.c),e},ae.prototype.readUint8=ae.prototype.Gc,ae.prototype.Ec=function(){var e=this.b[this.a],t=this.b[this.a+1];return this.a+=2,b(this.a<=this.c),e|t<<8},ae.prototype.readUint16=ae.prototype.Ec,ae.prototype.m=function(){var e=this.b[this.a],t=this.b[this.a+1],r=this.b[this.a+2],i=this.b[this.a+3];return this.a+=4,b(this.a<=this.c),(e|t<<8|r<<16|i<<24)>>>0},ae.prototype.readUint32=ae.prototype.m,ae.prototype.ga=function(){return K(this.m(),this.m())},ae.prototype.readUint64=ae.prototype.ga,ae.prototype.ha=function(){return Q(this.m(),this.m())},ae.prototype.readUint64String=ae.prototype.ha,ae.prototype.Xb=function(){var e=this.b[this.a];return this.a+=1,b(this.a<=this.c),e<<24>>24},ae.prototype.readInt8=ae.prototype.Xb,ae.prototype.Vb=function(){var e=this.b[this.a],t=this.b[this.a+1];return this.a+=2,b(this.a<=this.c),(e|t<<8)<<16>>16},ae.prototype.readInt16=ae.prototype.Vb,ae.prototype.P=function(){var e=this.b[this.a],t=this.b[this.a+1],r=this.b[this.a+2],i=this.b[this.a+3];return this.a+=4,b(this.a<=this.c),e|t<<8|r<<16|i<<24},ae.prototype.readInt32=ae.prototype.P,ae.prototype.ba=function(){return G(this.m(),this.m())},ae.prototype.readInt64=ae.prototype.ba,ae.prototype.ca=function(){return $(this.m(),this.m())},ae.prototype.readInt64String=ae.prototype.ca,ae.prototype.aa=function(){return X(this.m())},ae.prototype.readFloat=ae.prototype.aa,ae.prototype.Z=function(){return J(this.m(),this.m())},ae.prototype.readDouble=ae.prototype.Z,ae.prototype.pa=function(){return!!this.b[this.a++]},ae.prototype.readBool=ae.prototype.pa,ae.prototype.ra=function(){return this.da()},ae.prototype.readEnum=ae.prototype.ra,ae.prototype.fa=function(e){var t=this.b,r=this.a;e=r+e;for(var i=[],n="";r<e;){var s=t[r++];if(128>s)i.push(s);else{if(192>s)continue;if(224>s){var a=t[r++];i.push((31&s)<<6|63&a)}else if(240>s){a=t[r++];var o=t[r++];i.push((15&s)<<12|(63&a)<<6|63&o)}else 248>s&&(s=(7&s)<<18|(63&(a=t[r++]))<<12|(63&(o=t[r++]))<<6|63&t[r++],s-=65536,i.push(55296+(s>>10&1023),56320+(1023&s)))}8192<=i.length&&(n+=String.fromCharCode.apply(null,i),i.length=0)}return n+=R(i),this.a=r,n},ae.prototype.readString=ae.prototype.fa,ae.prototype.Dc=function(){var e=this.o();return this.fa(e)},ae.prototype.readStringWithLength=ae.prototype.Dc,ae.prototype.qa=function(e){if(0>e||this.a+e>this.b.length)return this.v=!0,I("Invalid byte length!"),new Uint8Array(0);var t=this.b.subarray(this.a,this.a+e);return this.a+=e,b(this.a<=this.c),t},ae.prototype.readBytes=ae.prototype.qa,ae.prototype.ia=function(){return this.w(Z)},ae.prototype.readVarintHash64=ae.prototype.ia,ae.prototype.$=function(){var e=this.b,t=this.a,r=e[t],i=e[t+1],n=e[t+2],s=e[t+3],a=e[t+4],o=e[t+5],l=e[t+6];return e=e[t+7],this.a+=8,String.fromCharCode(r,i,n,s,a,o,l,e)},ae.prototype.readFixedHash64=ae.prototype.$,h("jspb.BinaryReader",ue,void 0);var ce=[];function he(e,t,r){if(ce.length){var i=ce.pop();return e&&i.a.H(e,t,r),i}return new ue(e,t,r)}function de(e,t){b(2==e.b);var r=e.a.o();r=e.a.B()+r;for(var i=[];e.a.B()<r;)i.push(t.call(e.a));return i}function pe(e,t,r,i,n){this.ma=e,this.Ba=t,this.la=r,this.Na=i,this.na=n}function fe(e,t,r,i,n,s){this.Za=e,this.za=t,this.Aa=r,this.Wa=i,this.Ab=n,this.Nb=s}function ge(){}ue.clearInstanceCache=function(){ce=[]},ue.getInstanceCacheLength=function(){return ce.length},ue.alloc=he,ue.prototype.zb=he,ue.prototype.alloc=ue.prototype.zb,ue.prototype.Ca=function(){this.a.clear(),this.b=this.c=-1,this.h=!1,this.v=null,100>ce.length&&ce.push(this)},ue.prototype.free=ue.prototype.Ca,ue.prototype.Fb=function(){return this.O},ue.prototype.getFieldCursor=ue.prototype.Fb,ue.prototype.B=function(){return this.a.B()},ue.prototype.getCursor=ue.prototype.B,ue.prototype.Y=function(){return this.a.Y()},ue.prototype.getBuffer=ue.prototype.Y,ue.prototype.Hb=function(){return this.c},ue.prototype.getFieldNumber=ue.prototype.Hb,ue.prototype.Lb=function(){return this.b},ue.prototype.getWireType=ue.prototype.Lb,ue.prototype.Mb=function(){return 2==this.b},ue.prototype.isDelimited=ue.prototype.Mb,ue.prototype.bb=function(){return 4==this.b},ue.prototype.isEndGroup=ue.prototype.bb,ue.prototype.getError=function(){return this.h||this.a.getError()},ue.prototype.getError=ue.prototype.getError,ue.prototype.H=function(e,t,r){this.a.H(e,t,r),this.b=this.c=-1},ue.prototype.setBlock=ue.prototype.H,ue.prototype.reset=function(){this.a.reset(),this.b=this.c=-1},ue.prototype.reset=ue.prototype.reset,ue.prototype.advance=function(e){this.a.advance(e)},ue.prototype.advance=ue.prototype.advance,ue.prototype.oa=function(){if(this.a.ya())return!1;if(this.getError())return I("Decoder hit an error"),!1;this.O=this.a.B();var e=this.a.o(),t=e>>>3;return 0!=(e&=7)&&5!=e&&1!=e&&2!=e&&3!=e&&4!=e?(I("Invalid wire type: %s (at position %s)",e,this.O),this.h=!0,!1):(this.c=t,this.b=e,!0)},ue.prototype.nextField=ue.prototype.oa,ue.prototype.Oa=function(){this.a.mb(this.c<<3|this.b)},ue.prototype.unskipHeader=ue.prototype.Oa,ue.prototype.Lc=function(){var e=this.c;for(this.Oa();this.oa()&&this.c==e;)this.C();this.a.ya()||this.Oa()},ue.prototype.skipMatchingFields=ue.prototype.Lc,ue.prototype.lb=function(){0!=this.b?(I("Invalid wire type for skipVarintField"),this.C()):this.a.kb()},ue.prototype.skipVarintField=ue.prototype.lb,ue.prototype.gb=function(){if(2!=this.b)I("Invalid wire type for skipDelimitedField"),this.C();else{var e=this.a.o();this.a.advance(e)}},ue.prototype.skipDelimitedField=ue.prototype.gb,ue.prototype.hb=function(){5!=this.b?(I("Invalid wire type for skipFixed32Field"),this.C()):this.a.advance(4)},ue.prototype.skipFixed32Field=ue.prototype.hb,ue.prototype.ib=function(){1!=this.b?(I("Invalid wire type for skipFixed64Field"),this.C()):this.a.advance(8)},ue.prototype.skipFixed64Field=ue.prototype.ib,ue.prototype.jb=function(){for(var e=this.c;;){if(!this.oa()){I("Unmatched start-group tag: stream EOF"),this.h=!0;break}if(4==this.b){this.c!=e&&(I("Unmatched end-group tag"),this.h=!0);break}this.C()}},ue.prototype.skipGroup=ue.prototype.jb,ue.prototype.C=function(){switch(this.b){case 0:this.lb();break;case 1:this.ib();break;case 2:this.gb();break;case 5:this.hb();break;case 3:this.jb();break;default:I("Invalid wire encoding for field.")}},ue.prototype.skipField=ue.prototype.C,ue.prototype.Hc=function(e,t){null===this.v&&(this.v={}),b(!this.v[e]),this.v[e]=t},ue.prototype.registerReadCallback=ue.prototype.Hc,ue.prototype.Ic=function(e){return b(null!==this.v),b(e=this.v[e]),e(this)},ue.prototype.runReadCallback=ue.prototype.Ic,ue.prototype.Yb=function(e,t){b(2==this.b);var r=this.a.c,i=this.a.o();i=this.a.B()+i,this.a.setEnd(i),t(e,this),this.a.Ma(i),this.a.setEnd(r)},ue.prototype.readMessage=ue.prototype.Yb,ue.prototype.Ub=function(e,t,r){b(3==this.b),b(this.c==e),r(t,this),this.h||4==this.b||(I("Group submessage did not end with an END_GROUP tag"),this.h=!0)},ue.prototype.readGroup=ue.prototype.Ub,ue.prototype.Gb=function(){b(2==this.b);var e=this.a.o(),t=this.a.B(),r=t+e;return e=le(this.a.Y(),t,e),this.a.Ma(r),e},ue.prototype.getFieldDecoder=ue.prototype.Gb,ue.prototype.P=function(){return b(0==this.b),this.a.da()},ue.prototype.readInt32=ue.prototype.P,ue.prototype.Wb=function(){return b(0==this.b),this.a.Ea()},ue.prototype.readInt32String=ue.prototype.Wb,ue.prototype.ba=function(){return b(0==this.b),this.a.sa()},ue.prototype.readInt64=ue.prototype.ba,ue.prototype.ca=function(){return b(0==this.b),this.a.Fa()},ue.prototype.readInt64String=ue.prototype.ca,ue.prototype.m=function(){return b(0==this.b),this.a.o()},ue.prototype.readUint32=ue.prototype.m,ue.prototype.Fc=function(){return b(0==this.b),this.a.O()},ue.prototype.readUint32String=ue.prototype.Fc,ue.prototype.ga=function(){return b(0==this.b),this.a.Ga()},ue.prototype.readUint64=ue.prototype.ga,ue.prototype.ha=function(){return b(0==this.b),this.a.Ha()},ue.prototype.readUint64String=ue.prototype.ha,ue.prototype.zc=function(){return b(0==this.b),this.a.Ia()},ue.prototype.readSint32=ue.prototype.zc,ue.prototype.Ac=function(){return b(0==this.b),this.a.Ja()},ue.prototype.readSint64=ue.prototype.Ac,ue.prototype.Bc=function(){return b(0==this.b),this.a.Ka()},ue.prototype.readSint64String=ue.prototype.Bc,ue.prototype.Rb=function(){return b(5==this.b),this.a.m()},ue.prototype.readFixed32=ue.prototype.Rb,ue.prototype.Sb=function(){return b(1==this.b),this.a.ga()},ue.prototype.readFixed64=ue.prototype.Sb,ue.prototype.Tb=function(){return b(1==this.b),this.a.ha()},ue.prototype.readFixed64String=ue.prototype.Tb,ue.prototype.vc=function(){return b(5==this.b),this.a.P()},ue.prototype.readSfixed32=ue.prototype.vc,ue.prototype.wc=function(){return b(5==this.b),this.a.P().toString()},ue.prototype.readSfixed32String=ue.prototype.wc,ue.prototype.xc=function(){return b(1==this.b),this.a.ba()},ue.prototype.readSfixed64=ue.prototype.xc,ue.prototype.yc=function(){return b(1==this.b),this.a.ca()},ue.prototype.readSfixed64String=ue.prototype.yc,ue.prototype.aa=function(){return b(5==this.b),this.a.aa()},ue.prototype.readFloat=ue.prototype.aa,ue.prototype.Z=function(){return b(1==this.b),this.a.Z()},ue.prototype.readDouble=ue.prototype.Z,ue.prototype.pa=function(){return b(0==this.b),!!this.a.o()},ue.prototype.readBool=ue.prototype.pa,ue.prototype.ra=function(){return b(0==this.b),this.a.sa()},ue.prototype.readEnum=ue.prototype.ra,ue.prototype.fa=function(){b(2==this.b);var e=this.a.o();return this.a.fa(e)},ue.prototype.readString=ue.prototype.fa,ue.prototype.qa=function(){b(2==this.b);var e=this.a.o();return this.a.qa(e)},ue.prototype.readBytes=ue.prototype.qa,ue.prototype.ia=function(){return b(0==this.b),this.a.ia()},ue.prototype.readVarintHash64=ue.prototype.ia,ue.prototype.Cc=function(){return b(0==this.b),this.a.fb()},ue.prototype.readSintHash64=ue.prototype.Cc,ue.prototype.w=function(e){return b(0==this.b),this.a.w(e)},ue.prototype.readSplitVarint64=ue.prototype.w,ue.prototype.ea=function(e){return b(0==this.b),this.a.w(function(t,r){return Y(t,r,e)})},ue.prototype.readSplitZigzagVarint64=ue.prototype.ea,ue.prototype.$=function(){return b(1==this.b),this.a.$()},ue.prototype.readFixedHash64=ue.prototype.$,ue.prototype.ta=function(e){return b(1==this.b),this.a.ta(e)},ue.prototype.readSplitFixed64=ue.prototype.ta,ue.prototype.gc=function(){return de(this,this.a.da)},ue.prototype.readPackedInt32=ue.prototype.gc,ue.prototype.hc=function(){return de(this,this.a.Ea)},ue.prototype.readPackedInt32String=ue.prototype.hc,ue.prototype.ic=function(){return de(this,this.a.sa)},ue.prototype.readPackedInt64=ue.prototype.ic,ue.prototype.jc=function(){return de(this,this.a.Fa)},ue.prototype.readPackedInt64String=ue.prototype.jc,ue.prototype.qc=function(){return de(this,this.a.o)},ue.prototype.readPackedUint32=ue.prototype.qc,ue.prototype.rc=function(){return de(this,this.a.O)},ue.prototype.readPackedUint32String=ue.prototype.rc,ue.prototype.sc=function(){return de(this,this.a.Ga)},ue.prototype.readPackedUint64=ue.prototype.sc,ue.prototype.tc=function(){return de(this,this.a.Ha)},ue.prototype.readPackedUint64String=ue.prototype.tc,ue.prototype.nc=function(){return de(this,this.a.Ia)},ue.prototype.readPackedSint32=ue.prototype.nc,ue.prototype.oc=function(){return de(this,this.a.Ja)},ue.prototype.readPackedSint64=ue.prototype.oc,ue.prototype.pc=function(){return de(this,this.a.Ka)},ue.prototype.readPackedSint64String=ue.prototype.pc,ue.prototype.bc=function(){return de(this,this.a.m)},ue.prototype.readPackedFixed32=ue.prototype.bc,ue.prototype.cc=function(){return de(this,this.a.ga)},ue.prototype.readPackedFixed64=ue.prototype.cc,ue.prototype.dc=function(){return de(this,this.a.ha)},ue.prototype.readPackedFixed64String=ue.prototype.dc,ue.prototype.kc=function(){return de(this,this.a.P)},ue.prototype.readPackedSfixed32=ue.prototype.kc,ue.prototype.lc=function(){return de(this,this.a.ba)},ue.prototype.readPackedSfixed64=ue.prototype.lc,ue.prototype.mc=function(){return de(this,this.a.ca)},ue.prototype.readPackedSfixed64String=ue.prototype.mc,ue.prototype.fc=function(){return de(this,this.a.aa)},ue.prototype.readPackedFloat=ue.prototype.fc,ue.prototype.$b=function(){return de(this,this.a.Z)},ue.prototype.readPackedDouble=ue.prototype.$b,ue.prototype.Zb=function(){return de(this,this.a.pa)},ue.prototype.readPackedBool=ue.prototype.Zb,ue.prototype.ac=function(){return de(this,this.a.ra)},ue.prototype.readPackedEnum=ue.prototype.ac,ue.prototype.uc=function(){return de(this,this.a.ia)},ue.prototype.readPackedVarintHash64=ue.prototype.uc,ue.prototype.ec=function(){return de(this,this.a.$)},ue.prototype.readPackedFixedHash64=ue.prototype.ec,h("jspb.ExtensionFieldInfo",pe,void 0),h("jspb.ExtensionFieldBinaryInfo",fe,void 0),pe.prototype.F=function(){return!!this.la},pe.prototype.isMessageType=pe.prototype.F,h("jspb.Message",ge,void 0),ge.GENERATE_TO_OBJECT=!0,ge.GENERATE_FROM_OBJECT=!0;var me="function"==typeof Uint8Array;ge.prototype.Ib=function(){return this.b},ge.prototype.getJsPbMessageId=ge.prototype.Ib,ge.initialize=function(e,t,r,i,n,s){if(e.f=null,t||(t=r?[r]:[]),e.b=r?String(r):void 0,e.D=0===r?-1:0,e.u=t,t=-1,!(r=e.u.length)||(t=r-1,null===(r=e.u[t])||"object"!=typeof r||Array.isArray(r)||me&&r instanceof Uint8Array)?-1<i?(e.G=Math.max(i,t+1-e.D),e.i=null):e.G=Number.MAX_VALUE:(e.G=t-e.D,e.i=r),e.a={},n)for(i=0;i<n.length;i++)(t=n[i])<e.G?(t+=e.D,e.u[t]=e.u[t]||ye):(ve(e),e.i[t]=e.i[t]||ye);if(s&&s.length)for(i=0;i<s.length;i++)_e(e,s[i])};var ye=Object.freeze?Object.freeze([]):[];function ve(e){var t=e.G+e.D;e.u[t]||(e.i=e.u[t]={})}function be(e,t,r){for(var i=[],n=0;n<e.length;n++)i[n]=t.call(e[n],r,e[n]);return i}function Ie(e,t){if(t<e.G){t+=e.D;var r=e.u[t];return r===ye?e.u[t]=[]:r}if(e.i)return(r=e.i[t])===ye?e.i[t]=[]:r}function we(e,t){return null==(e=Ie(e,t))?e:+e}function Ee(e,t){return null==(e=Ie(e,t))?e:!!e}function ke(e){return null==e||"string"==typeof e?e:me&&e instanceof Uint8Array?x(e):(I("Cannot coerce to b64 string: "+d(e)),null)}function Se(e){return null==e||e instanceof Uint8Array?e:"string"==typeof e?N(e):(I("Cannot coerce to Uint8Array: "+d(e)),null)}function Me(e){if(e&&1<e.length){var t=d(e[0]);g(e,function(e){d(e)!=t&&I("Inconsistent type in JSPB repeated field array. Got "+d(e)+" expected "+t)})}}function Fe(e,t,r){return null==(e=Ie(e,t))?r:e}function Te(e,t,r){return w(e,ge),t<e.G?e.u[t+e.D]=r:(ve(e),e.i[t]=r),e}function Re(e,t,r,i){return w(e,ge),r!==i?Te(e,t,r):t<e.G?e.u[t+e.D]=null:(ve(e),delete e.i[t]),e}function Ae(e,t,r,i){return w(e,ge),(r=_e(e,r))&&r!==t&&void 0!==i&&(e.f&&r in e.f&&(e.f[r]=void 0),Te(e,r,void 0)),Te(e,t,i)}function _e(e,t){for(var r,i,n=0;n<t.length;n++){var s=t[n],a=Ie(e,s);null!=a&&(r=s,i=a,Te(e,s,void 0))}return r?(Te(e,r,i),r):0}function Oe(e,t,r){if(e.f||(e.f={}),!e.f[r]){for(var i=Ie(e,r),n=[],s=0;s<i.length;s++)n[s]=new t(i[s]);e.f[r]=n}}function Ce(e){if(e.f)for(var t in e.f){var r=e.f[t];if(Array.isArray(r))for(var i=0;i<r.length;i++)r[i]&&r[i].g();else r&&r.g()}}function xe(e,t){e=e||{},t=t||{};var r,i={};for(r in e)i[r]=0;for(r in t)i[r]=0;for(r in i)if(!Ne(e[r],t[r]))return!1;return!0}function Ne(e,t){if(e==t)return!0;if(!p(e)||!p(t))return!!("number"==typeof e&&isNaN(e)||"number"==typeof t&&isNaN(t))&&String(e)==String(t);if(e.constructor!=t.constructor)return!1;if(me&&e.constructor===Uint8Array){if(e.length!=t.length)return!1;for(var r=0;r<e.length;r++)if(e[r]!=t[r])return!1;return!0}if(e.constructor===Array){var i=void 0,n=void 0,s=Math.max(e.length,t.length);for(r=0;r<s;r++){var a=e[r],o=t[r];if(a&&a.constructor==Object&&(b(void 0===i),b(r===e.length-1),i=a,a=void 0),o&&o.constructor==Object&&(b(void 0===n),b(r===t.length-1),n=o,o=void 0),!Ne(a,o))return!1}return!i&&!n||xe(i=i||{},n=n||{})}if(e.constructor===Object)return xe(e,t);throw Error("Invalid type in JSPB array")}function De(e){return new e.constructor(Pe(e.g()))}function Pe(e){if(Array.isArray(e)){for(var t=Array(e.length),r=0;r<e.length;r++){var i=e[r];null!=i&&(t[r]="object"==typeof i?Pe(b(i)):i)}return t}if(me&&e instanceof Uint8Array)return new Uint8Array(e);for(r in t={},e)null!=(i=e[r])&&(t[r]="object"==typeof i?Pe(b(i)):i);return t}ge.toObjectList=be,ge.toObjectExtension=function(e,t,r,i,n){for(var s in r){var a=r[s],o=i.call(e,a);if(null!=o){for(var l in a.Ba)if(a.Ba.hasOwnProperty(l))break;t[l]=a.Na?a.na?be(o,a.Na,n):a.Na(n,o):o}}},ge.serializeBinaryExtensions=function(e,t,r,i){for(var n in r){var s=r[n],a=s.Za;if(!s.Aa)throw Error("Message extension present that was generated without binary serialization support");var o=i.call(e,a);if(null!=o)if(a.F()){if(!s.Wa)throw Error("Message extension present holding submessage without binary support enabled, and message is being serialized to binary format");s.Aa.call(t,a.ma,o,s.Wa)}else s.Aa.call(t,a.ma,o)}},ge.readBinaryExtension=function(e,t,r,i,n){var s=r[t.c];if(s){if(r=s.Za,!s.za)throw Error("Deserializing extension whose generated code does not support binary format");if(r.F()){var a=new r.la;s.za.call(t,a,s.Ab)}else a=s.za.call(t);r.na&&!s.Nb?(t=i.call(e,r))?t.push(a):n.call(e,r,[a]):n.call(e,r,a)}else t.C()},ge.getField=Ie,ge.getRepeatedField=function(e,t){return Ie(e,t)},ge.getOptionalFloatingPointField=we,ge.getBooleanField=Ee,ge.getRepeatedFloatingPointField=function(e,t){var r=Ie(e,t);if(e.a||(e.a={}),!e.a[t]){for(var i=0;i<r.length;i++)r[i]=+r[i];e.a[t]=!0}return r},ge.getRepeatedBooleanField=function(e,t){var r=Ie(e,t);if(e.a||(e.a={}),!e.a[t]){for(var i=0;i<r.length;i++)r[i]=!!r[i];e.a[t]=!0}return r},ge.bytesAsB64=ke,ge.bytesAsU8=Se,ge.bytesListAsB64=function(e){return Me(e),e.length&&"string"!=typeof e[0]?m(e,ke):e},ge.bytesListAsU8=function(e){return Me(e),!e.length||e[0]instanceof Uint8Array?e:m(e,Se)},ge.getFieldWithDefault=Fe,ge.getBooleanFieldWithDefault=function(e,t,r){return null==(e=Ee(e,t))?r:e},ge.getFloatingPointFieldWithDefault=function(e,t,r){return null==(e=we(e,t))?r:e},ge.getFieldProto3=Fe,ge.getMapField=function(e,t,r,i){if(e.f||(e.f={}),t in e.f)return e.f[t];var n=Ie(e,t);if(!n){if(r)return;Te(e,t,n=[])}return e.f[t]=new k(n,i)},ge.setField=Te,ge.setProto3IntField=function(e,t,r){return Re(e,t,r,0)},ge.setProto3FloatField=function(e,t,r){return Re(e,t,r,0)},ge.setProto3BooleanField=function(e,t,r){return Re(e,t,r,!1)},ge.setProto3StringField=function(e,t,r){return Re(e,t,r,"")},ge.setProto3BytesField=function(e,t,r){return Re(e,t,r,"")},ge.setProto3EnumField=function(e,t,r){return Re(e,t,r,0)},ge.setProto3StringIntField=function(e,t,r){return Re(e,t,r,"0")},ge.addToRepeatedField=function(e,t,r,i){return w(e,ge),t=Ie(e,t),null!=i?t.splice(i,0,r):t.push(r),e},ge.setOneofField=Ae,ge.computeOneofCase=_e,ge.getWrapperField=function(e,t,r,i){if(e.f||(e.f={}),!e.f[r]){var n=Ie(e,r);(i||n)&&(e.f[r]=new t(n))}return e.f[r]},ge.getRepeatedWrapperField=function(e,t,r){return Oe(e,t,r),(t=e.f[r])==ye&&(t=e.f[r]=[]),t},ge.setWrapperField=function(e,t,r){w(e,ge),e.f||(e.f={});var i=r?r.g():r;return e.f[t]=r,Te(e,t,i)},ge.setOneofWrapperField=function(e,t,r,i){w(e,ge),e.f||(e.f={});var n=i?i.g():i;return e.f[t]=i,Ae(e,t,r,n)},ge.setRepeatedWrapperField=function(e,t,r){w(e,ge),e.f||(e.f={}),r=r||[];for(var i=[],n=0;n<r.length;n++)i[n]=r[n].g();return e.f[t]=r,Te(e,t,i)},ge.addToRepeatedWrapperField=function(e,t,r,i,n){Oe(e,i,t);var s=e.f[t];return s||(s=e.f[t]=[]),r=r||new i,e=Ie(e,t),null!=n?(s.splice(n,0,r),e.splice(n,0,r.g())):(s.push(r),e.push(r.g())),r},ge.toMap=function(e,t,r,i){for(var n={},s=0;s<e.length;s++)n[t.call(e[s])]=r?r.call(e[s],i,e[s]):e[s];return n},ge.prototype.g=function(){return Ce(this),this.u},ge.prototype.toArray=ge.prototype.g,ge.prototype.toString=function(){return Ce(this),this.u.toString()},ge.prototype.getExtension=function(e){if(this.i){this.f||(this.f={});var t=e.ma;if(e.na){if(e.F())return this.f[t]||(this.f[t]=m(this.i[t]||[],function(t){return new e.la(t)})),this.f[t]}else if(e.F())return!this.f[t]&&this.i[t]&&(this.f[t]=new e.la(this.i[t])),this.f[t];return this.i[t]}},ge.prototype.getExtension=ge.prototype.getExtension,ge.prototype.Kc=function(e,t){this.f||(this.f={}),ve(this);var r=e.ma;return e.na?(t=t||[],e.F()?(this.f[r]=t,this.i[r]=m(t,function(e){return e.g()})):this.i[r]=t):e.F()?(this.f[r]=t,this.i[r]=t?t.g():t):this.i[r]=t,this},ge.prototype.setExtension=ge.prototype.Kc,ge.difference=function(e,t){if(!(e instanceof t.constructor))throw Error("Messages have different types.");var r=e.g();t=t.g();var i=[],n=0,s=r.length>t.length?r.length:t.length;for(e.b&&(i[0]=e.b,n=1);n<s;n++)Ne(r[n],t[n])||(i[n]=t[n]);return new e.constructor(i)},ge.equals=function(e,t){return e==t||!(!e||!t)&&e instanceof t.constructor&&Ne(e.g(),t.g())},ge.compareExtensions=xe,ge.compareFields=Ne,ge.prototype.Bb=function(){return De(this)},ge.prototype.cloneMessage=ge.prototype.Bb,ge.prototype.clone=function(){return De(this)},ge.prototype.clone=ge.prototype.clone,ge.clone=function(e){return De(e)},ge.copyInto=function(e,t){w(e,ge),w(t,ge),b(e.constructor==t.constructor,"Copy source and target message should have the same type."),e=De(e);for(var r=t.g(),i=e.g(),n=r.length=0;n<i.length;n++)r[n]=i[n];t.f=e.f,t.i=e.i},ge.registerMessageType=function(e,t){t.we=e};var Le={dump:function(e){return w(e,ge,"jspb.Message instance expected"),b(e.getExtension,"Only unobfuscated and unoptimized compilation modes supported."),Le.X(e)}};function Be(){this.a=[]}function je(e,t){this.lo=e,this.hi=t}function Ue(e,t){var r=65535&e,i=65535&t,n=t>>>16;for(t=r*i+65536*(r*n&65535)+65536*((e>>>=16)*i&65535),r=e*n+(r*n>>>16)+(e*i>>>16);4294967296<=t;)t-=4294967296,r+=1;return new je(t>>>0,r>>>0)}function We(e){for(var t=new je(0,0),r=new je(0,0),i=0;i<e.length;i++){if("0">e[i]||"9"<e[i])return null;r.lo=parseInt(e[i],10),t=t.eb(10).add(r)}return t}function ze(e,t){this.lo=e,this.hi=t}function He(e){var t=0<e.length&&"-"==e[0];return t&&(e=e.substring(1)),null===(e=We(e))?null:(t&&(e=new je(0,0).sub(e)),new ze(e.lo,e.hi))}function Ke(){this.c=[],this.b=0,this.a=new Be,this.h=[]}function Ge(e,t){var r=e.a.end();e.c.push(r),e.c.push(t),e.b+=r.length+t.length}function qe(e,t){return Ye(e,t,2),t=e.a.end(),e.c.push(t),e.b+=t.length,t.push(e.b),t}function Ve(e,t){var r=t.pop();for(b(0<=(r=e.b+e.a.length()-r));127<r;)t.push(127&r|128),r>>>=7,e.b++;t.push(r),e.b++}function Ye(e,t,r){b(1<=t&&t==Math.floor(t)),e.a.j(8*t+r)}function Xe(e,t,r){null!=r&&(Ye(e,t,0),e.a.j(r))}function Je(e,t,r){null!=r&&(Ye(e,t,0),e.a.M(r))}h("jspb.debug.dump",Le.dump,void 0),Le.X=function(e){var t=d(e);if("number"==t||"string"==t||"boolean"==t||"null"==t||"undefined"==t||"undefined"!=typeof Uint8Array&&e instanceof Uint8Array)return e;if("array"==t)return function(e,t,r){for(var i=[],n=2;n<arguments.length;++n)i[n-2]=arguments[n];Array.isArray(e)||v("Expected array but got %s: %s.",[d(e),e],t,i)}(e),m(e,Le.X);if(e instanceof k){for(var r={},i=(e=e.entries()).next();!i.done;i=e.next())r[i.value[0]]=Le.X(i.value[1]);return r}w(e,ge,"Only messages expected: "+e);var n={$name:(t=e.constructor).name||t.displayName};for(o in t.prototype){var s=/^get([A-Z]\w*)/.exec(o);if(s&&"getExtension"!=o&&"getJsPbMessageId"!=o){var a="has"+s[1];e[a]&&!e[a]()||(a=e[o](),n[Le.$a(s[1])]=Le.X(a))}}if(e.extensionObject_)return n.$extensions="Recursive dumping of extensions not supported in compiled code. Switch to uncompiled or dump extension object directly",n;for(i in t.extensions)if(/^\d+$/.test(i)){a=t.extensions[i];var o=e.getExtension(a);s=void 0,a=a.Ba;var l=[],u=0;for(s in a)l[u++]=s;s=l[0],null!=o&&(r||(r=n.$extensions={}),r[Le.$a(s)]=Le.X(o))}return n},Le.$a=function(e){return e.replace(/^[A-Z]/,function(e){return e.toLowerCase()})},h("jspb.BinaryEncoder",Be,void 0),Be.prototype.length=function(){return this.a.length},Be.prototype.length=Be.prototype.length,Be.prototype.end=function(){var e=this.a;return this.a=[],e},Be.prototype.end=Be.prototype.end,Be.prototype.l=function(e,t){for(b(e==Math.floor(e)),b(t==Math.floor(t)),b(0<=e&&4294967296>e),b(0<=t&&4294967296>t);0<t||127<e;)this.a.push(127&e|128),e=(e>>>7|t<<25)>>>0,t>>>=7;this.a.push(e)},Be.prototype.writeSplitVarint64=Be.prototype.l,Be.prototype.A=function(e,t){b(e==Math.floor(e)),b(t==Math.floor(t)),b(0<=e&&4294967296>e),b(0<=t&&4294967296>t),this.s(e),this.s(t)},Be.prototype.writeSplitFixed64=Be.prototype.A,Be.prototype.j=function(e){for(b(e==Math.floor(e)),b(0<=e&&4294967296>e);127<e;)this.a.push(127&e|128),e>>>=7;this.a.push(e)},Be.prototype.writeUnsignedVarint32=Be.prototype.j,Be.prototype.M=function(e){if(b(e==Math.floor(e)),b(-2147483648<=e&&2147483648>e),0<=e)this.j(e);else{for(var t=0;9>t;t++)this.a.push(127&e|128),e>>=7;this.a.push(1)}},Be.prototype.writeSignedVarint32=Be.prototype.M,Be.prototype.va=function(e){b(e==Math.floor(e)),b(0<=e&&0x10000000000000000>e),j(e),this.l(P,L)},Be.prototype.writeUnsignedVarint64=Be.prototype.va,Be.prototype.ua=function(e){b(e==Math.floor(e)),b(-0x8000000000000000<=e&&0x8000000000000000>e),j(e),this.l(P,L)},Be.prototype.writeSignedVarint64=Be.prototype.ua,Be.prototype.wa=function(e){b(e==Math.floor(e)),b(-2147483648<=e&&2147483648>e),this.j((e<<1^e>>31)>>>0)},Be.prototype.writeZigzagVarint32=Be.prototype.wa,Be.prototype.xa=function(e){b(e==Math.floor(e)),b(-0x8000000000000000<=e&&0x8000000000000000>e),U(e),this.l(P,L)},Be.prototype.writeZigzagVarint64=Be.prototype.xa,Be.prototype.Ta=function(e){this.W(te(e))},Be.prototype.writeZigzagVarint64String=Be.prototype.Ta,Be.prototype.W=function(e){var t=this;H(e),q(P,L,function(e,r){t.l(e>>>0,r>>>0)})},Be.prototype.writeZigzagVarintHash64=Be.prototype.W,Be.prototype.be=function(e){b(e==Math.floor(e)),b(0<=e&&256>e),this.a.push(e>>>0&255)},Be.prototype.writeUint8=Be.prototype.be,Be.prototype.ae=function(e){b(e==Math.floor(e)),b(0<=e&&65536>e),this.a.push(e>>>0&255),this.a.push(e>>>8&255)},Be.prototype.writeUint16=Be.prototype.ae,Be.prototype.s=function(e){b(e==Math.floor(e)),b(0<=e&&4294967296>e),this.a.push(e>>>0&255),this.a.push(e>>>8&255),this.a.push(e>>>16&255),this.a.push(e>>>24&255)},Be.prototype.writeUint32=Be.prototype.s,Be.prototype.V=function(e){b(e==Math.floor(e)),b(0<=e&&0x10000000000000000>e),B(e),this.s(P),this.s(L)},Be.prototype.writeUint64=Be.prototype.V,Be.prototype.Qc=function(e){b(e==Math.floor(e)),b(-128<=e&&128>e),this.a.push(e>>>0&255)},Be.prototype.writeInt8=Be.prototype.Qc,Be.prototype.Pc=function(e){b(e==Math.floor(e)),b(-32768<=e&&32768>e),this.a.push(e>>>0&255),this.a.push(e>>>8&255)},Be.prototype.writeInt16=Be.prototype.Pc,Be.prototype.S=function(e){b(e==Math.floor(e)),b(-2147483648<=e&&2147483648>e),this.a.push(e>>>0&255),this.a.push(e>>>8&255),this.a.push(e>>>16&255),this.a.push(e>>>24&255)},Be.prototype.writeInt32=Be.prototype.S,Be.prototype.T=function(e){b(e==Math.floor(e)),b(-0x8000000000000000<=e&&0x8000000000000000>e),j(e),this.A(P,L)},Be.prototype.writeInt64=Be.prototype.T,Be.prototype.ka=function(e){b(e==Math.floor(e)),b(-0x8000000000000000<=+e&&0x8000000000000000>+e),H(te(e)),this.A(P,L)},Be.prototype.writeInt64String=Be.prototype.ka,Be.prototype.L=function(e){b(1/0===e||-1/0===e||isNaN(e)||-34028234663852886e22<=e&&34028234663852886e22>=e),W(e),this.s(P)},Be.prototype.writeFloat=Be.prototype.L,Be.prototype.J=function(e){b(1/0===e||-1/0===e||isNaN(e)||-17976931348623157e292<=e&&17976931348623157e292>=e),z(e),this.s(P),this.s(L)},Be.prototype.writeDouble=Be.prototype.J,Be.prototype.I=function(e){b("boolean"==typeof e||"number"==typeof e),this.a.push(e?1:0)},Be.prototype.writeBool=Be.prototype.I,Be.prototype.R=function(e){b(e==Math.floor(e)),b(-2147483648<=e&&2147483648>e),this.M(e)},Be.prototype.writeEnum=Be.prototype.R,Be.prototype.ja=function(e){this.a.push.apply(this.a,e)},Be.prototype.writeBytes=Be.prototype.ja,Be.prototype.N=function(e){H(e),this.l(P,L)},Be.prototype.writeVarintHash64=Be.prototype.N,Be.prototype.K=function(e){H(e),this.s(P),this.s(L)},Be.prototype.writeFixedHash64=Be.prototype.K,Be.prototype.U=function(e){var t=this.a.length;!function(e,t,r){for(var i=[],n=2;n<arguments.length;++n)i[n-2]=arguments[n];"string"!=typeof e&&v("Expected string but got %s: %s.",[d(e),e],t,i)}(e);for(var r=0;r<e.length;r++){var i=e.charCodeAt(r);if(128>i)this.a.push(i);else if(2048>i)this.a.push(i>>6|192),this.a.push(63&i|128);else if(65536>i)if(55296<=i&&56319>=i&&r+1<e.length){var n=e.charCodeAt(r+1);56320<=n&&57343>=n&&(i=1024*(i-55296)+n-56320+65536,this.a.push(i>>18|240),this.a.push(i>>12&63|128),this.a.push(i>>6&63|128),this.a.push(63&i|128),r++)}else this.a.push(i>>12|224),this.a.push(i>>6&63|128),this.a.push(63&i|128)}return this.a.length-t},Be.prototype.writeString=Be.prototype.U,h("jspb.arith.UInt64",je,void 0),je.prototype.cmp=function(e){return this.hi<e.hi||this.hi==e.hi&&this.lo<e.lo?-1:this.hi==e.hi&&this.lo==e.lo?0:1},je.prototype.cmp=je.prototype.cmp,je.prototype.La=function(){return new je((this.lo>>>1|(1&this.hi)<<31)>>>0,this.hi>>>1>>>0)},je.prototype.rightShift=je.prototype.La,je.prototype.Da=function(){return new je(this.lo<<1>>>0,(this.hi<<1|this.lo>>>31)>>>0)},je.prototype.leftShift=je.prototype.Da,je.prototype.cb=function(){return!!(2147483648&this.hi)},je.prototype.msb=je.prototype.cb,je.prototype.Ob=function(){return!!(1&this.lo)},je.prototype.lsb=je.prototype.Ob,je.prototype.Ua=function(){return 0==this.lo&&0==this.hi},je.prototype.zero=je.prototype.Ua,je.prototype.add=function(e){return new je((this.lo+e.lo&4294967295)>>>0>>>0,((this.hi+e.hi&4294967295)>>>0)+(4294967296<=this.lo+e.lo?1:0)>>>0)},je.prototype.add=je.prototype.add,je.prototype.sub=function(e){return new je((this.lo-e.lo&4294967295)>>>0>>>0,((this.hi-e.hi&4294967295)>>>0)-(0>this.lo-e.lo?1:0)>>>0)},je.prototype.sub=je.prototype.sub,je.mul32x32=Ue,je.prototype.eb=function(e){var t=Ue(this.lo,e);return(e=Ue(this.hi,e)).hi=e.lo,e.lo=0,t.add(e)},je.prototype.mul=je.prototype.eb,je.prototype.Xa=function(e){if(0==e)return[];var t=new je(0,0),r=new je(this.lo,this.hi);e=new je(e,0);for(var i=new je(1,0);!e.cb();)e=e.Da(),i=i.Da();for(;!i.Ua();)0>=e.cmp(r)&&(t=t.add(i),r=r.sub(e)),e=e.La(),i=i.La();return[t,r]},je.prototype.div=je.prototype.Xa,je.prototype.toString=function(){for(var e="",t=this;!t.Ua();){var r=(t=t.Xa(10))[0];e=t[1].lo+e,t=r}return""==e&&(e="0"),e},je.prototype.toString=je.prototype.toString,je.fromString=We,je.prototype.clone=function(){return new je(this.lo,this.hi)},je.prototype.clone=je.prototype.clone,h("jspb.arith.Int64",ze,void 0),ze.prototype.add=function(e){return new ze((this.lo+e.lo&4294967295)>>>0>>>0,((this.hi+e.hi&4294967295)>>>0)+(4294967296<=this.lo+e.lo?1:0)>>>0)},ze.prototype.add=ze.prototype.add,ze.prototype.sub=function(e){return new ze((this.lo-e.lo&4294967295)>>>0>>>0,((this.hi-e.hi&4294967295)>>>0)-(0>this.lo-e.lo?1:0)>>>0)},ze.prototype.sub=ze.prototype.sub,ze.prototype.clone=function(){return new ze(this.lo,this.hi)},ze.prototype.clone=ze.prototype.clone,ze.prototype.toString=function(){var e=!!(2147483648&this.hi),t=new je(this.lo,this.hi);return e&&(t=new je(0,0).sub(t)),(e?"-":"")+t.toString()},ze.prototype.toString=ze.prototype.toString,ze.fromString=He,h("jspb.BinaryWriter",Ke,void 0),Ke.prototype.pb=function(e,t,r){Ge(this,e.subarray(t,r))},Ke.prototype.writeSerializedMessage=Ke.prototype.pb,Ke.prototype.Pb=function(e,t,r){null!=e&&null!=t&&null!=r&&this.pb(e,t,r)},Ke.prototype.maybeWriteSerializedMessage=Ke.prototype.Pb,Ke.prototype.reset=function(){this.c=[],this.a.end(),this.b=0,this.h=[]},Ke.prototype.reset=Ke.prototype.reset,Ke.prototype.ab=function(){b(0==this.h.length);for(var e=new Uint8Array(this.b+this.a.length()),t=this.c,r=t.length,i=0,n=0;n<r;n++){var s=t[n];e.set(s,i),i+=s.length}return t=this.a.end(),e.set(t,i),b((i+=t.length)==e.length),this.c=[e],e},Ke.prototype.getResultBuffer=Ke.prototype.ab,Ke.prototype.Kb=function(e){return x(this.ab(),e)},Ke.prototype.getResultBase64String=Ke.prototype.Kb,Ke.prototype.Va=function(e){this.h.push(qe(this,e))},Ke.prototype.beginSubMessage=Ke.prototype.Va,Ke.prototype.Ya=function(){b(0<=this.h.length),Ve(this,this.h.pop())},Ke.prototype.endSubMessage=Ke.prototype.Ya,Ke.prototype.Nc=function(e,t,r){switch(e){case 1:this.J(t,r);break;case 2:this.L(t,r);break;case 3:this.T(t,r);break;case 4:this.V(t,r);break;case 5:this.S(t,r);break;case 6:this.Qa(t,r);break;case 7:this.Pa(t,r);break;case 8:this.I(t,r);break;case 9:this.U(t,r);break;case 10:I("Group field type not supported in writeAny()");break;case 11:I("Message field type not supported in writeAny()");break;case 12:this.ja(t,r);break;case 13:this.s(t,r);break;case 14:this.R(t,r);break;case 15:this.Ra(t,r);break;case 16:this.Sa(t,r);break;case 17:this.rb(t,r);break;case 18:this.sb(t,r);break;case 30:this.K(t,r);break;case 31:this.N(t,r);break;default:I("Invalid field type in writeAny()")}},Ke.prototype.writeAny=Ke.prototype.Nc,Ke.prototype.S=function(e,t){null!=t&&(b(-2147483648<=t&&2147483648>t),Je(this,e,t))},Ke.prototype.writeInt32=Ke.prototype.S,Ke.prototype.ob=function(e,t){null!=t&&(b(-2147483648<=(t=parseInt(t,10))&&2147483648>t),Je(this,e,t))},Ke.prototype.writeInt32String=Ke.prototype.ob,Ke.prototype.T=function(e,t){null!=t&&(b(-0x8000000000000000<=t&&0x8000000000000000>t),null!=t&&(Ye(this,e,0),this.a.ua(t)))},Ke.prototype.writeInt64=Ke.prototype.T,Ke.prototype.ka=function(e,t){null!=t&&(t=He(t),Ye(this,e,0),this.a.l(t.lo,t.hi))},Ke.prototype.writeInt64String=Ke.prototype.ka,Ke.prototype.s=function(e,t){null!=t&&(b(0<=t&&4294967296>t),Xe(this,e,t))},Ke.prototype.writeUint32=Ke.prototype.s,Ke.prototype.ub=function(e,t){null!=t&&(b(0<=(t=parseInt(t,10))&&4294967296>t),Xe(this,e,t))},Ke.prototype.writeUint32String=Ke.prototype.ub,Ke.prototype.V=function(e,t){null!=t&&(b(0<=t&&0x10000000000000000>t),null!=t&&(Ye(this,e,0),this.a.va(t)))},Ke.prototype.writeUint64=Ke.prototype.V,Ke.prototype.vb=function(e,t){null!=t&&(t=We(t),Ye(this,e,0),this.a.l(t.lo,t.hi))},Ke.prototype.writeUint64String=Ke.prototype.vb,Ke.prototype.rb=function(e,t){null!=t&&(b(-2147483648<=t&&2147483648>t),null!=t&&(Ye(this,e,0),this.a.wa(t)))},Ke.prototype.writeSint32=Ke.prototype.rb,Ke.prototype.sb=function(e,t){null!=t&&(b(-0x8000000000000000<=t&&0x8000000000000000>t),null!=t&&(Ye(this,e,0),this.a.xa(t)))},Ke.prototype.writeSint64=Ke.prototype.sb,Ke.prototype.$d=function(e,t){null!=t&&null!=t&&(Ye(this,e,0),this.a.W(t))},Ke.prototype.writeSintHash64=Ke.prototype.$d,Ke.prototype.Zd=function(e,t){null!=t&&null!=t&&(Ye(this,e,0),this.a.Ta(t))},Ke.prototype.writeSint64String=Ke.prototype.Zd,Ke.prototype.Pa=function(e,t){null!=t&&(b(0<=t&&4294967296>t),Ye(this,e,5),this.a.s(t))},Ke.prototype.writeFixed32=Ke.prototype.Pa,Ke.prototype.Qa=function(e,t){null!=t&&(b(0<=t&&0x10000000000000000>t),Ye(this,e,1),this.a.V(t))},Ke.prototype.writeFixed64=Ke.prototype.Qa,Ke.prototype.nb=function(e,t){null!=t&&(t=We(t),Ye(this,e,1),this.a.A(t.lo,t.hi))},Ke.prototype.writeFixed64String=Ke.prototype.nb,Ke.prototype.Ra=function(e,t){null!=t&&(b(-2147483648<=t&&2147483648>t),Ye(this,e,5),this.a.S(t))},Ke.prototype.writeSfixed32=Ke.prototype.Ra,Ke.prototype.Sa=function(e,t){null!=t&&(b(-0x8000000000000000<=t&&0x8000000000000000>t),Ye(this,e,1),this.a.T(t))},Ke.prototype.writeSfixed64=Ke.prototype.Sa,Ke.prototype.qb=function(e,t){null!=t&&(t=He(t),Ye(this,e,1),this.a.A(t.lo,t.hi))},Ke.prototype.writeSfixed64String=Ke.prototype.qb,Ke.prototype.L=function(e,t){null!=t&&(Ye(this,e,5),this.a.L(t))},Ke.prototype.writeFloat=Ke.prototype.L,Ke.prototype.J=function(e,t){null!=t&&(Ye(this,e,1),this.a.J(t))},Ke.prototype.writeDouble=Ke.prototype.J,Ke.prototype.I=function(e,t){null!=t&&(b("boolean"==typeof t||"number"==typeof t),Ye(this,e,0),this.a.I(t))},Ke.prototype.writeBool=Ke.prototype.I,Ke.prototype.R=function(e,t){null!=t&&(b(-2147483648<=t&&2147483648>t),Ye(this,e,0),this.a.M(t))},Ke.prototype.writeEnum=Ke.prototype.R,Ke.prototype.U=function(e,t){null!=t&&(e=qe(this,e),this.a.U(t),Ve(this,e))},Ke.prototype.writeString=Ke.prototype.U,Ke.prototype.ja=function(e,t){null!=t&&(t=se(t),Ye(this,e,2),this.a.j(t.length),Ge(this,t))},Ke.prototype.writeBytes=Ke.prototype.ja,Ke.prototype.Rc=function(e,t,r){null!=t&&(e=qe(this,e),r(t,this),Ve(this,e))},Ke.prototype.writeMessage=Ke.prototype.Rc,Ke.prototype.Sc=function(e,t,r){null!=t&&(Ye(this,1,3),Ye(this,2,0),this.a.M(e),e=qe(this,3),r(t,this),Ve(this,e),Ye(this,1,4))},Ke.prototype.writeMessageSet=Ke.prototype.Sc,Ke.prototype.Oc=function(e,t,r){null!=t&&(Ye(this,e,3),r(t,this),Ye(this,e,4))},Ke.prototype.writeGroup=Ke.prototype.Oc,Ke.prototype.K=function(e,t){null!=t&&(b(8==t.length),Ye(this,e,1),this.a.K(t))},Ke.prototype.writeFixedHash64=Ke.prototype.K,Ke.prototype.N=function(e,t){null!=t&&(b(8==t.length),Ye(this,e,0),this.a.N(t))},Ke.prototype.writeVarintHash64=Ke.prototype.N,Ke.prototype.A=function(e,t,r){Ye(this,e,1),this.a.A(t,r)},Ke.prototype.writeSplitFixed64=Ke.prototype.A,Ke.prototype.l=function(e,t,r){Ye(this,e,0),this.a.l(t,r)},Ke.prototype.writeSplitVarint64=Ke.prototype.l,Ke.prototype.tb=function(e,t,r){Ye(this,e,0);var i=this.a;q(t,r,function(e,t){i.l(e>>>0,t>>>0)})},Ke.prototype.writeSplitZigzagVarint64=Ke.prototype.tb,Ke.prototype.Ed=function(e,t){if(null!=t)for(var r=0;r<t.length;r++)Je(this,e,t[r])},Ke.prototype.writeRepeatedInt32=Ke.prototype.Ed,Ke.prototype.Fd=function(e,t){if(null!=t)for(var r=0;r<t.length;r++)this.ob(e,t[r])},Ke.prototype.writeRepeatedInt32String=Ke.prototype.Fd,Ke.prototype.Gd=function(e,t){if(null!=t)for(var r=0;r<t.length;r++){var i=t[r];null!=i&&(Ye(this,e,0),this.a.ua(i))}},Ke.prototype.writeRepeatedInt64=Ke.prototype.Gd,Ke.prototype.Qd=function(e,t,r,i){if(null!=t)for(var n=0;n<t.length;n++)this.A(e,r(t[n]),i(t[n]))},Ke.prototype.writeRepeatedSplitFixed64=Ke.prototype.Qd,Ke.prototype.Rd=function(e,t,r,i){if(null!=t)for(var n=0;n<t.length;n++)this.l(e,r(t[n]),i(t[n]))},Ke.prototype.writeRepeatedSplitVarint64=Ke.prototype.Rd,Ke.prototype.Sd=function(e,t,r,i){if(null!=t)for(var n=0;n<t.length;n++)this.tb(e,r(t[n]),i(t[n]))},Ke.prototype.writeRepeatedSplitZigzagVarint64=Ke.prototype.Sd,Ke.prototype.Hd=function(e,t){if(null!=t)for(var r=0;r<t.length;r++)this.ka(e,t[r])},Ke.prototype.writeRepeatedInt64String=Ke.prototype.Hd,Ke.prototype.Ud=function(e,t){if(null!=t)for(var r=0;r<t.length;r++)Xe(this,e,t[r])},Ke.prototype.writeRepeatedUint32=Ke.prototype.Ud,Ke.prototype.Vd=function(e,t){if(null!=t)for(var r=0;r<t.length;r++)this.ub(e,t[r])},Ke.prototype.writeRepeatedUint32String=Ke.prototype.Vd,Ke.prototype.Wd=function(e,t){if(null!=t)for(var r=0;r<t.length;r++){var i=t[r];null!=i&&(Ye(this,e,0),this.a.va(i))}},Ke.prototype.writeRepeatedUint64=Ke.prototype.Wd,Ke.prototype.Xd=function(e,t){if(null!=t)for(var r=0;r<t.length;r++)this.vb(e,t[r])},Ke.prototype.writeRepeatedUint64String=Ke.prototype.Xd,Ke.prototype.Md=function(e,t){if(null!=t)for(var r=0;r<t.length;r++){var i=t[r];null!=i&&(Ye(this,e,0),this.a.wa(i))}},Ke.prototype.writeRepeatedSint32=Ke.prototype.Md,Ke.prototype.Nd=function(e,t){if(null!=t)for(var r=0;r<t.length;r++){var i=t[r];null!=i&&(Ye(this,e,0),this.a.xa(i))}},Ke.prototype.writeRepeatedSint64=Ke.prototype.Nd,Ke.prototype.Od=function(e,t){if(null!=t)for(var r=0;r<t.length;r++){var i=t[r];null!=i&&(Ye(this,e,0),this.a.Ta(i))}},Ke.prototype.writeRepeatedSint64String=Ke.prototype.Od,Ke.prototype.Pd=function(e,t){if(null!=t)for(var r=0;r<t.length;r++){var i=t[r];null!=i&&(Ye(this,e,0),this.a.W(i))}},Ke.prototype.writeRepeatedSintHash64=Ke.prototype.Pd,Ke.prototype.yd=function(e,t){if(null!=t)for(var r=0;r<t.length;r++)this.Pa(e,t[r])},Ke.prototype.writeRepeatedFixed32=Ke.prototype.yd,Ke.prototype.zd=function(e,t){if(null!=t)for(var r=0;r<t.length;r++)this.Qa(e,t[r])},Ke.prototype.writeRepeatedFixed64=Ke.prototype.zd,Ke.prototype.Ad=function(e,t){if(null!=t)for(var r=0;r<t.length;r++)this.nb(e,t[r])},Ke.prototype.writeRepeatedFixed64String=Ke.prototype.Ad,Ke.prototype.Jd=function(e,t){if(null!=t)for(var r=0;r<t.length;r++)this.Ra(e,t[r])},Ke.prototype.writeRepeatedSfixed32=Ke.prototype.Jd,Ke.prototype.Kd=function(e,t){if(null!=t)for(var r=0;r<t.length;r++)this.Sa(e,t[r])},Ke.prototype.writeRepeatedSfixed64=Ke.prototype.Kd,Ke.prototype.Ld=function(e,t){if(null!=t)for(var r=0;r<t.length;r++)this.qb(e,t[r])},Ke.prototype.writeRepeatedSfixed64String=Ke.prototype.Ld,Ke.prototype.Cd=function(e,t){if(null!=t)for(var r=0;r<t.length;r++)this.L(e,t[r])},Ke.prototype.writeRepeatedFloat=Ke.prototype.Cd,Ke.prototype.wd=function(e,t){if(null!=t)for(var r=0;r<t.length;r++)this.J(e,t[r])},Ke.prototype.writeRepeatedDouble=Ke.prototype.wd,Ke.prototype.ud=function(e,t){if(null!=t)for(var r=0;r<t.length;r++)this.I(e,t[r])},Ke.prototype.writeRepeatedBool=Ke.prototype.ud,Ke.prototype.xd=function(e,t){if(null!=t)for(var r=0;r<t.length;r++)this.R(e,t[r])},Ke.prototype.writeRepeatedEnum=Ke.prototype.xd,Ke.prototype.Td=function(e,t){if(null!=t)for(var r=0;r<t.length;r++)this.U(e,t[r])},Ke.prototype.writeRepeatedString=Ke.prototype.Td,Ke.prototype.vd=function(e,t){if(null!=t)for(var r=0;r<t.length;r++)this.ja(e,t[r])},Ke.prototype.writeRepeatedBytes=Ke.prototype.vd,Ke.prototype.Id=function(e,t,r){if(null!=t)for(var i=0;i<t.length;i++){var n=qe(this,e);r(t[i],this),Ve(this,n)}},Ke.prototype.writeRepeatedMessage=Ke.prototype.Id,Ke.prototype.Dd=function(e,t,r){if(null!=t)for(var i=0;i<t.length;i++)Ye(this,e,3),r(t[i],this),Ye(this,e,4)},Ke.prototype.writeRepeatedGroup=Ke.prototype.Dd,Ke.prototype.Bd=function(e,t){if(null!=t)for(var r=0;r<t.length;r++)this.K(e,t[r])},Ke.prototype.writeRepeatedFixedHash64=Ke.prototype.Bd,Ke.prototype.Yd=function(e,t){if(null!=t)for(var r=0;r<t.length;r++)this.N(e,t[r])},Ke.prototype.writeRepeatedVarintHash64=Ke.prototype.Yd,Ke.prototype.ad=function(e,t){if(null!=t&&t.length){e=qe(this,e);for(var r=0;r<t.length;r++)this.a.M(t[r]);Ve(this,e)}},Ke.prototype.writePackedInt32=Ke.prototype.ad,Ke.prototype.bd=function(e,t){if(null!=t&&t.length){e=qe(this,e);for(var r=0;r<t.length;r++)this.a.M(parseInt(t[r],10));Ve(this,e)}},Ke.prototype.writePackedInt32String=Ke.prototype.bd,Ke.prototype.cd=function(e,t){if(null!=t&&t.length){e=qe(this,e);for(var r=0;r<t.length;r++)this.a.ua(t[r]);Ve(this,e)}},Ke.prototype.writePackedInt64=Ke.prototype.cd,Ke.prototype.md=function(e,t,r,i){if(null!=t){e=qe(this,e);for(var n=0;n<t.length;n++)this.a.A(r(t[n]),i(t[n]));Ve(this,e)}},Ke.prototype.writePackedSplitFixed64=Ke.prototype.md,Ke.prototype.nd=function(e,t,r,i){if(null!=t){e=qe(this,e);for(var n=0;n<t.length;n++)this.a.l(r(t[n]),i(t[n]));Ve(this,e)}},Ke.prototype.writePackedSplitVarint64=Ke.prototype.nd,Ke.prototype.od=function(e,t,r,i){if(null!=t){e=qe(this,e);for(var n=this.a,s=0;s<t.length;s++)q(r(t[s]),i(t[s]),function(e,t){n.l(e>>>0,t>>>0)});Ve(this,e)}},Ke.prototype.writePackedSplitZigzagVarint64=Ke.prototype.od,Ke.prototype.dd=function(e,t){if(null!=t&&t.length){e=qe(this,e);for(var r=0;r<t.length;r++){var i=He(t[r]);this.a.l(i.lo,i.hi)}Ve(this,e)}},Ke.prototype.writePackedInt64String=Ke.prototype.dd,Ke.prototype.pd=function(e,t){if(null!=t&&t.length){e=qe(this,e);for(var r=0;r<t.length;r++)this.a.j(t[r]);Ve(this,e)}},Ke.prototype.writePackedUint32=Ke.prototype.pd,Ke.prototype.qd=function(e,t){if(null!=t&&t.length){e=qe(this,e);for(var r=0;r<t.length;r++)this.a.j(parseInt(t[r],10));Ve(this,e)}},Ke.prototype.writePackedUint32String=Ke.prototype.qd,Ke.prototype.rd=function(e,t){if(null!=t&&t.length){e=qe(this,e);for(var r=0;r<t.length;r++)this.a.va(t[r]);Ve(this,e)}},Ke.prototype.writePackedUint64=Ke.prototype.rd,Ke.prototype.sd=function(e,t){if(null!=t&&t.length){e=qe(this,e);for(var r=0;r<t.length;r++){var i=We(t[r]);this.a.l(i.lo,i.hi)}Ve(this,e)}},Ke.prototype.writePackedUint64String=Ke.prototype.sd,Ke.prototype.hd=function(e,t){if(null!=t&&t.length){e=qe(this,e);for(var r=0;r<t.length;r++)this.a.wa(t[r]);Ve(this,e)}},Ke.prototype.writePackedSint32=Ke.prototype.hd,Ke.prototype.jd=function(e,t){if(null!=t&&t.length){e=qe(this,e);for(var r=0;r<t.length;r++)this.a.xa(t[r]);Ve(this,e)}},Ke.prototype.writePackedSint64=Ke.prototype.jd,Ke.prototype.kd=function(e,t){if(null!=t&&t.length){e=qe(this,e);for(var r=0;r<t.length;r++)this.a.W(te(t[r]));Ve(this,e)}},Ke.prototype.writePackedSint64String=Ke.prototype.kd,Ke.prototype.ld=function(e,t){if(null!=t&&t.length){e=qe(this,e);for(var r=0;r<t.length;r++)this.a.W(t[r]);Ve(this,e)}},Ke.prototype.writePackedSintHash64=Ke.prototype.ld,Ke.prototype.Wc=function(e,t){if(null!=t&&t.length)for(Ye(this,e,2),this.a.j(4*t.length),e=0;e<t.length;e++)this.a.s(t[e])},Ke.prototype.writePackedFixed32=Ke.prototype.Wc,Ke.prototype.Xc=function(e,t){if(null!=t&&t.length)for(Ye(this,e,2),this.a.j(8*t.length),e=0;e<t.length;e++)this.a.V(t[e])},Ke.prototype.writePackedFixed64=Ke.prototype.Xc,Ke.prototype.Yc=function(e,t){if(null!=t&&t.length)for(Ye(this,e,2),this.a.j(8*t.length),e=0;e<t.length;e++){var r=We(t[e]);this.a.A(r.lo,r.hi)}},Ke.prototype.writePackedFixed64String=Ke.prototype.Yc,Ke.prototype.ed=function(e,t){if(null!=t&&t.length)for(Ye(this,e,2),this.a.j(4*t.length),e=0;e<t.length;e++)this.a.S(t[e])},Ke.prototype.writePackedSfixed32=Ke.prototype.ed,Ke.prototype.fd=function(e,t){if(null!=t&&t.length)for(Ye(this,e,2),this.a.j(8*t.length),e=0;e<t.length;e++)this.a.T(t[e])},Ke.prototype.writePackedSfixed64=Ke.prototype.fd,Ke.prototype.gd=function(e,t){if(null!=t&&t.length)for(Ye(this,e,2),this.a.j(8*t.length),e=0;e<t.length;e++)this.a.ka(t[e])},Ke.prototype.writePackedSfixed64String=Ke.prototype.gd,Ke.prototype.$c=function(e,t){if(null!=t&&t.length)for(Ye(this,e,2),this.a.j(4*t.length),e=0;e<t.length;e++)this.a.L(t[e])},Ke.prototype.writePackedFloat=Ke.prototype.$c,Ke.prototype.Uc=function(e,t){if(null!=t&&t.length)for(Ye(this,e,2),this.a.j(8*t.length),e=0;e<t.length;e++)this.a.J(t[e])},Ke.prototype.writePackedDouble=Ke.prototype.Uc,Ke.prototype.Tc=function(e,t){if(null!=t&&t.length)for(Ye(this,e,2),this.a.j(t.length),e=0;e<t.length;e++)this.a.I(t[e])},Ke.prototype.writePackedBool=Ke.prototype.Tc,Ke.prototype.Vc=function(e,t){if(null!=t&&t.length){e=qe(this,e);for(var r=0;r<t.length;r++)this.a.R(t[r]);Ve(this,e)}},Ke.prototype.writePackedEnum=Ke.prototype.Vc,Ke.prototype.Zc=function(e,t){if(null!=t&&t.length)for(Ye(this,e,2),this.a.j(8*t.length),e=0;e<t.length;e++)this.a.K(t[e])},Ke.prototype.writePackedFixedHash64=Ke.prototype.Zc,Ke.prototype.td=function(e,t){if(null!=t&&t.length){e=qe(this,e);for(var r=0;r<t.length;r++)this.a.N(t[r]);Ve(this,e)}},Ke.prototype.writePackedVarintHash64=Ke.prototype.td,t.debug=Le,t.Map=k,t.Message=ge,t.BinaryReader=ue,t.BinaryWriter=Ke,t.ExtensionFieldInfo=pe,t.ExtensionFieldBinaryInfo=fe,t.exportSymbol=function(e,t,r){h(e,t,r)},t.inherits=function(e,t){function r(){}r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e},t.object={extend:function(e,t){for(var r,i,n=1;n<arguments.length;n++){for(r in i=arguments[n])e[r]=i[r];for(var s=0;s<f.length;s++)r=f[s],Object.prototype.hasOwnProperty.call(i,r)&&(e[r]=i[r])}}},t.typeOf=d},5471:function(e,t,r){var i,n,s,a,o,l,u,c;e.exports=(n=(i=c=r(9021)).lib,s=n.WordArray,a=n.Hasher,o=i.algo,l=[],u=o.SHA1=a.extend({_doReset:function(){this._hash=new s.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var r=this._hash.words,i=r[0],n=r[1],s=r[2],a=r[3],o=r[4],u=0;u<80;u++){if(u<16)l[u]=0|e[t+u];else{var c=l[u-3]^l[u-8]^l[u-14]^l[u-16];l[u]=c<<1|c>>>31}var h=(i<<5|i>>>27)+o+l[u];h+=u<20?1518500249+(n&s|~n&a):u<40?1859775393+(n^s^a):u<60?(n&s|n&a|s&a)-1894007588:(n^s^a)-899497514,o=a,a=s,s=n<<30|n>>>2,n=i,i=h}r[0]=r[0]+i|0,r[1]=r[1]+n|0,r[2]=r[2]+s|0,r[3]=r[3]+a|0,r[4]=r[4]+o|0},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,i=8*e.sigBytes;return t[i>>>5]|=128<<24-i%32,t[14+(i+64>>>9<<4)]=Math.floor(r/4294967296),t[15+(i+64>>>9<<4)]=r,e.sigBytes=4*t.length,this._process(),this._hash},clone:function(){var e=a.clone.call(this);return e._hash=this._hash.clone(),e}}),i.SHA1=a._createHelper(u),i.HmacSHA1=a._createHmacHelper(u),c.SHA1)},5503:function(e,t,r){var i;e.exports=(i=r(9021),function(){var e=i,t=e.lib.WordArray,r=e.enc;function n(e){return e<<8&4278255360|e>>>8&16711935}r.Utf16=r.Utf16BE={stringify:function(e){for(var t=e.words,r=e.sigBytes,i=[],n=0;n<r;n+=2){var s=t[n>>>2]>>>16-n%4*8&65535;i.push(String.fromCharCode(s))}return i.join("")},parse:function(e){for(var r=e.length,i=[],n=0;n<r;n++)i[n>>>1]|=e.charCodeAt(n)<<16-n%2*16;return t.create(i,2*r)}},r.Utf16LE={stringify:function(e){for(var t=e.words,r=e.sigBytes,i=[],s=0;s<r;s+=2){var a=n(t[s>>>2]>>>16-s%4*8&65535);i.push(String.fromCharCode(a))}return i.join("")},parse:function(e){for(var r=e.length,i=[],s=0;s<r;s++)i[s>>>1]|=n(e.charCodeAt(s)<<16-s%2*16);return t.create(i,2*r)}}}(),i.enc.Utf16)},5953:function(e,t,r){var i;e.exports=(i=r(9021),r(3240),function(e){var t=i,r=t.lib,n=r.WordArray,s=r.Hasher,a=t.x64.Word,o=t.algo,l=[],u=[],c=[];!function(){for(var e=1,t=0,r=0;r<24;r++){l[e+5*t]=(r+1)*(r+2)/2%64;var i=(2*e+3*t)%5;e=t%5,t=i}for(e=0;e<5;e++)for(t=0;t<5;t++)u[e+5*t]=t+(2*e+3*t)%5*5;for(var n=1,s=0;s<24;s++){for(var o=0,h=0,d=0;d<7;d++){if(1&n){var p=(1<<d)-1;p<32?h^=1<<p:o^=1<<p-32}128&n?n=n<<1^113:n<<=1}c[s]=a.create(o,h)}}();var h=[];!function(){for(var e=0;e<25;e++)h[e]=a.create()}();var d=o.SHA3=s.extend({cfg:s.cfg.extend({outputLength:512}),_doReset:function(){for(var e=this._state=[],t=0;t<25;t++)e[t]=new a.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(e,t){for(var r=this._state,i=this.blockSize/2,n=0;n<i;n++){var s=e[t+2*n],a=e[t+2*n+1];s=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),a=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),(R=r[n]).high^=a,R.low^=s}for(var o=0;o<24;o++){for(var d=0;d<5;d++){for(var p=0,f=0,g=0;g<5;g++)p^=(R=r[d+5*g]).high,f^=R.low;var m=h[d];m.high=p,m.low=f}for(d=0;d<5;d++){var y=h[(d+4)%5],v=h[(d+1)%5],b=v.high,I=v.low;for(p=y.high^(b<<1|I>>>31),f=y.low^(I<<1|b>>>31),g=0;g<5;g++)(R=r[d+5*g]).high^=p,R.low^=f}for(var w=1;w<25;w++){var E=(R=r[w]).high,k=R.low,S=l[w];S<32?(p=E<<S|k>>>32-S,f=k<<S|E>>>32-S):(p=k<<S-32|E>>>64-S,f=E<<S-32|k>>>64-S);var M=h[u[w]];M.high=p,M.low=f}var F=h[0],T=r[0];for(F.high=T.high,F.low=T.low,d=0;d<5;d++)for(g=0;g<5;g++){var R=r[w=d+5*g],A=h[w],_=h[(d+1)%5+5*g],O=h[(d+2)%5+5*g];R.high=A.high^~_.high&O.high,R.low=A.low^~_.low&O.low}R=r[0];var C=c[o];R.high^=C.high,R.low^=C.low}},_doFinalize:function(){var t=this._data,r=t.words,i=(this._nDataBytes,8*t.sigBytes),s=32*this.blockSize;r[i>>>5]|=1<<24-i%32,r[(e.ceil((i+1)/s)*s>>>5)-1]|=128,t.sigBytes=4*r.length,this._process();for(var a=this._state,o=this.cfg.outputLength/8,l=o/8,u=[],c=0;c<l;c++){var h=a[c],d=h.high,p=h.low;d=16711935&(d<<8|d>>>24)|4278255360&(d<<24|d>>>8),p=16711935&(p<<8|p>>>24)|4278255360&(p<<24|p>>>8),u.push(p),u.push(d)}return new n.init(u,o)},clone:function(){for(var e=s.clone.call(this),t=e._state=this._state.slice(0),r=0;r<25;r++)t[r]=t[r].clone();return e}});t.SHA3=s._createHelper(d),t.HmacSHA3=s._createHmacHelper(d)}(Math),i.SHA3)},5974:function(e,t,r){"use strict";var i=r(8287).hp,n=this&&this.__generator||function(e,t){var r,i,n,s,a={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return s={next:o(0),throw:o(1),return:o(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function o(s){return function(o){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,i&&(n=2&s[0]?i.return:s[0]?i.throw||((n=i.return)&&n.call(i),0):i.next)&&!(n=n.call(i,s[1])).done)return n;switch(i=0,n&&(s=[2&s[0],n.value]),s[0]){case 0:case 1:n=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,i=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((n=(n=a.trys).length>0&&n[n.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!n||s[1]>n[0]&&s[1]<n[3])){a.label=s[1];break}if(6===s[0]&&a.label<n[1]){a.label=n[1],n=s;break}if(n&&a.label<n[2]){a.label=n[2],a.ops.push(s);break}n[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],i=0}finally{r=n=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,o])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.Deserializer=t.sizeOfFrame=t.serializeFrame=t.deserializeFrame=t.serializeFrameWithLength=t.deserializeFrames=t.deserializeFrameWithLength=t.writeUInt64BE=t.readUInt64BE=t.writeUInt24BE=t.readUInt24BE=t.MAX_VERSION=t.MAX_TTL=t.MAX_STREAM_ID=t.MAX_RESUME_LENGTH=t.MAX_REQUEST_N=t.MAX_REQUEST_COUNT=t.MAX_MIME_LENGTH=t.MAX_METADATA_LENGTH=t.MAX_LIFETIME=t.MAX_KEEPALIVE=t.MAX_CODE=t.FRAME_TYPE_OFFFSET=t.FLAGS_MASK=void 0;var s=r(2799);t.FLAGS_MASK=1023,t.FRAME_TYPE_OFFFSET=10,t.MAX_CODE=2147483647,t.MAX_KEEPALIVE=2147483647,t.MAX_LIFETIME=2147483647,t.MAX_METADATA_LENGTH=16777215,t.MAX_MIME_LENGTH=255,t.MAX_REQUEST_COUNT=2147483647,t.MAX_REQUEST_N=2147483647,t.MAX_RESUME_LENGTH=65535,t.MAX_STREAM_ID=2147483647,t.MAX_TTL=2147483647,t.MAX_VERSION=65535;var a=4294967296;function o(e,t){return e.readUInt8(t)<<16|e.readUInt8(t+1)<<8|e.readUInt8(t+2)}function l(e,t,r){return r=e.writeUInt8(t>>>16,r),r=e.writeUInt8(t>>>8&255,r),e.writeUInt8(255&t,r)}function u(e,t){var r=e.readUInt32BE(t),i=e.readUInt32BE(t+4);return r*a+i}function c(e,t,r){var i=t/a|0,n=t%a;return r=e.writeUInt32BE(i,r),e.writeUInt32BE(n,r)}function h(e){var t=o(e,0);return p(e.slice(3,3+t))}function d(e){var t,r,i,s;return n(this,function(n){switch(n.label){case 0:t=0,n.label=1;case 1:return t+3<e.length?(r=o(e,t),(s=(i=t+3)+r)>e.length?[3,3]:[4,[p(e.slice(i,s)),t=s]]):[3,3];case 2:return n.sent(),[3,1];case 3:return[2]}})}function p(e){var r=0,i=e.readInt32BE(r);r+=4;var n=e.readUInt16BE(r);r+=2;var a=n>>>t.FRAME_TYPE_OFFFSET,o=n&t.FLAGS_MASK;switch(a){case s.FrameTypes.SETUP:return function(e,t,r){e.length;var i=6,n=e.readUInt16BE(i);i+=2;var a=e.readUInt16BE(i);i+=2;var o=e.readInt32BE(i);i+=4;var l=e.readInt32BE(i);i+=4;var u=null;if(r&s.Flags.RESUME_ENABLE){var c=e.readInt16BE(i);i+=2,u=e.slice(i,i+c),i+=c}var h=e.readUInt8(i);i+=1;var d=e.toString("ascii",i,i+h);i+=h;var p=e.readUInt8(i);i+=1;var f=e.toString("ascii",i,i+p);i+=p;var g={data:null,dataMimeType:f,flags:r,keepAlive:o,lifetime:l,majorVersion:n,metadata:null,metadataMimeType:d,minorVersion:a,resumeToken:u,streamId:0,type:s.FrameTypes.SETUP};return T(e,g,i),g}(e,0,o);case s.FrameTypes.PAYLOAD:return function(e,t,r){e.length;var i={data:null,flags:r,metadata:null,streamId:t,type:s.FrameTypes.PAYLOAD};return T(e,i,6),i}(e,i,o);case s.FrameTypes.ERROR:return function(e,t,r){e.length;var i=6,n=e.readInt32BE(i);i+=4;var a=e.length-i,o="";return a>0&&(o=e.toString("utf8",i,i+a),i+=a),{code:n,flags:r,message:o,streamId:t,type:s.FrameTypes.ERROR}}(e,i,o);case s.FrameTypes.KEEPALIVE:return function(e,t,r){e.length;var i=6,n=u(e,i),a=null;return(i+=8)<e.length&&(a=e.slice(i,e.length)),{data:a,flags:r,lastReceivedPosition:n,streamId:0,type:s.FrameTypes.KEEPALIVE}}(e,0,o);case s.FrameTypes.REQUEST_FNF:return function(e,t,r){e.length;var i={data:null,flags:r,metadata:null,streamId:t,type:s.FrameTypes.REQUEST_FNF};return T(e,i,6),i}(e,i,o);case s.FrameTypes.REQUEST_RESPONSE:return function(e,t,r){var i={data:null,flags:r,metadata:null,streamId:t,type:s.FrameTypes.REQUEST_RESPONSE};return T(e,i,6),i}(e,i,o);case s.FrameTypes.REQUEST_STREAM:return function(e,t,r){e.length;var i=6,n=e.readInt32BE(i);i+=4;var a={data:null,flags:r,metadata:null,requestN:n,streamId:t,type:s.FrameTypes.REQUEST_STREAM};return T(e,a,i),a}(e,i,o);case s.FrameTypes.REQUEST_CHANNEL:return function(e,t,r){e.length;var i=6,n=e.readInt32BE(i);i+=4;var a={data:null,flags:r,metadata:null,requestN:n,streamId:t,type:s.FrameTypes.REQUEST_CHANNEL};return T(e,a,i),a}(e,i,o);case s.FrameTypes.METADATA_PUSH:return function(e,t,r){return{flags:r,metadata:6===length?null:e.slice(6,length),streamId:0,type:s.FrameTypes.METADATA_PUSH}}(e,0,o);case s.FrameTypes.REQUEST_N:return function(e,t,r){return e.length,{flags:r,requestN:e.readInt32BE(6),streamId:t,type:s.FrameTypes.REQUEST_N}}(e,i,o);case s.FrameTypes.RESUME:return function(e,t,r){e.length;var i=6,n=e.readUInt16BE(i);i+=2;var a=e.readUInt16BE(i);i+=2;var o=e.readInt16BE(i);i+=2;var l=e.slice(i,i+o),c=u(e,i+=o),h=u(e,i+=8);return i+=8,{clientPosition:h,flags:r,majorVersion:n,minorVersion:a,resumeToken:l,serverPosition:c,streamId:0,type:s.FrameTypes.RESUME}}(e,0,o);case s.FrameTypes.RESUME_OK:return function(e,t,r){return e.length,{clientPosition:u(e,6),flags:r,streamId:0,type:s.FrameTypes.RESUME_OK}}(e,0,o);case s.FrameTypes.CANCEL:return function(e,t,r){return e.length,{flags:r,streamId:t,type:s.FrameTypes.CANCEL}}(e,i,o);case s.FrameTypes.LEASE:return function(e,t,r){var i=6,n=e.readUInt32BE(i);i+=4;var a=e.readUInt32BE(i),o=null;return(i+=4)<e.length&&(o=e.slice(i,e.length)),{flags:r,metadata:o,requestCount:a,streamId:0,ttl:n,type:s.FrameTypes.LEASE}}(e,0,o)}}function f(e){switch(e.type){case s.FrameTypes.SETUP:return function(e){var t=null!=e.resumeToken?e.resumeToken.byteLength:0,r=null!=e.metadataMimeType?i.byteLength(e.metadataMimeType,"ascii"):0,n=null!=e.dataMimeType?i.byteLength(e.dataMimeType,"ascii"):0,a=M(e),o=i.allocUnsafe(6+g+(t?m+t:0)+r+n+a),l=S(e,o);return l=o.writeUInt16BE(e.majorVersion,l),l=o.writeUInt16BE(e.minorVersion,l),l=o.writeUInt32BE(e.keepAlive,l),l=o.writeUInt32BE(e.lifetime,l),e.flags&s.Flags.RESUME_ENABLE&&(l=o.writeUInt16BE(t,l),null!=e.resumeToken&&(l+=e.resumeToken.copy(o,l))),l=o.writeUInt8(r,l),null!=e.metadataMimeType&&(l+=o.write(e.metadataMimeType,l,l+r,"ascii")),l=o.writeUInt8(n,l),null!=e.dataMimeType&&(l+=o.write(e.dataMimeType,l,l+n,"ascii")),F(e,o,l),o}(e);case s.FrameTypes.PAYLOAD:return function(e){var t=M(e),r=i.allocUnsafe(6+t);return F(e,r,S(e,r)),r}(e);case s.FrameTypes.ERROR:return function(e){var t=null!=e.message?i.byteLength(e.message,"utf8"):0,r=i.allocUnsafe(6+y+t),n=S(e,r);return n=r.writeUInt32BE(e.code,n),null!=e.message&&r.write(e.message,n,n+t,"utf8"),r}(e);case s.FrameTypes.KEEPALIVE:return function(e){var t=null!=e.data?e.data.byteLength:0,r=i.allocUnsafe(6+v+t),n=S(e,r);return n=c(r,e.lastReceivedPosition,n),null!=e.data&&e.data.copy(r,n),r}(e);case s.FrameTypes.REQUEST_FNF:case s.FrameTypes.REQUEST_RESPONSE:return function(e){var t=M(e),r=i.allocUnsafe(6+t);return F(e,r,S(e,r)),r}(e);case s.FrameTypes.REQUEST_STREAM:case s.FrameTypes.REQUEST_CHANNEL:return function(e){var t=M(e),r=i.allocUnsafe(6+I+t),n=S(e,r);return n=r.writeUInt32BE(e.requestN,n),F(e,r,n),r}(e);case s.FrameTypes.METADATA_PUSH:return function(e){var t,r=e.metadata;if(null!=r){var n=S(e,t=i.allocUnsafe(6+r.byteLength));return r.copy(t,n),t}return S(e,t=i.allocUnsafe(6)),t}(e);case s.FrameTypes.REQUEST_N:return function(e){var t=i.allocUnsafe(6+w),r=S(e,t);return t.writeUInt32BE(e.requestN,r),t}(e);case s.FrameTypes.RESUME:return function(e){var t=e.resumeToken.byteLength,r=i.allocUnsafe(6+E+t),n=S(e,r);return n=r.writeUInt16BE(e.majorVersion,n),n=r.writeUInt16BE(e.minorVersion,n),n=r.writeUInt16BE(t,n),n+=e.resumeToken.copy(r,n),n=c(r,e.serverPosition,n),c(r,e.clientPosition,n),r}(e);case s.FrameTypes.RESUME_OK:return function(e){var t=i.allocUnsafe(6+k),r=S(e,t);return c(t,e.clientPosition,r),t}(e);case s.FrameTypes.CANCEL:return function(e){var t=i.allocUnsafe(6);return S(e,t),t}(e);case s.FrameTypes.LEASE:return function(e){var t=null!=e.metadata?e.metadata.byteLength:0,r=i.allocUnsafe(6+b+t),n=S(e,r);return n=r.writeUInt32BE(e.ttl,n),n=r.writeUInt32BE(e.requestCount,n),null!=e.metadata&&e.metadata.copy(r,n),r}(e)}}t.readUInt24BE=o,t.writeUInt24BE=l,t.readUInt64BE=u,t.writeUInt64BE=c,t.deserializeFrameWithLength=h,t.deserializeFrames=d,t.serializeFrameWithLength=function(e){var t=f(e),r=i.allocUnsafe(t.length+3);return l(r,t.length,0),t.copy(r,3),r},t.deserializeFrame=p,t.serializeFrame=f,t.sizeOfFrame=function(e){switch(e.type){case s.FrameTypes.SETUP:return function(e){var t=null!=e.resumeToken?e.resumeToken.byteLength:0,r=null!=e.metadataMimeType?i.byteLength(e.metadataMimeType,"ascii"):0,n=null!=e.dataMimeType?i.byteLength(e.dataMimeType,"ascii"):0,s=M(e);return 6+g+(t?m+t:0)+r+n+s}(e);case s.FrameTypes.PAYLOAD:return function(e){return 6+M(e)}(e);case s.FrameTypes.ERROR:return function(e){var t=null!=e.message?i.byteLength(e.message,"utf8"):0;return 6+y+t}(e);case s.FrameTypes.KEEPALIVE:return function(e){var t=null!=e.data?e.data.byteLength:0;return 6+v+t}(e);case s.FrameTypes.REQUEST_FNF:case s.FrameTypes.REQUEST_RESPONSE:return function(e){return 6+M(e)}(e);case s.FrameTypes.REQUEST_STREAM:case s.FrameTypes.REQUEST_CHANNEL:return function(e){var t=M(e);return 6+I+t}(e);case s.FrameTypes.METADATA_PUSH:return function(e){return 6+(null!=e.metadata?e.metadata.byteLength:0)}(e);case s.FrameTypes.REQUEST_N:return 6+w;case s.FrameTypes.RESUME:return function(e){var t=e.resumeToken.byteLength;return 6+E+t}(e);case s.FrameTypes.RESUME_OK:return 6+k;case s.FrameTypes.CANCEL:return 6;case s.FrameTypes.LEASE:return function(e){var t=null!=e.metadata?e.metadata.byteLength:0;return 6+b+t}(e)}};var g=14,m=2,y=4,v=8,b=8,I=4,w=4,E=22,k=8;function S(e,r){var i=r.writeInt32BE(e.streamId,0);return r.writeUInt16BE(e.type<<t.FRAME_TYPE_OFFFSET|e.flags&t.FLAGS_MASK,i)}function M(e){var t=0;return null!=e.data&&(t+=e.data.byteLength),s.Flags.hasMetadata(e.flags)&&(t+=3,null!=e.metadata&&(t+=e.metadata.byteLength)),t}function F(e,t,r){s.Flags.hasMetadata(e.flags)&&(null!=e.metadata?(r=l(t,e.metadata.byteLength,r),r+=e.metadata.copy(t,r)):r=l(t,0,r)),null!=e.data&&e.data.copy(t,r)}function T(e,t,r){if(s.Flags.hasMetadata(t.flags)){var i=o(e,r);r+=3,i>0&&(t.metadata=e.slice(r,r+i),r+=i)}r<e.length&&(t.data=e.slice(r,e.length))}var R=function(){function e(){}return e.prototype.deserializeFrame=function(e){return p(e)},e.prototype.deserializeFrameWithLength=function(e){return h(e)},e.prototype.deserializeFrames=function(e){return d(e)},e}();t.Deserializer=R},6298:function(e,t,r){var i;e.exports=(i=r(9021),r(754),r(4636),r(9506),r(7165),function(){var e=i,t=e.lib.StreamCipher,r=e.algo,n=[],s=[],a=[],o=r.Rabbit=t.extend({_doReset:function(){for(var e=this._key.words,t=this.cfg.iv,r=0;r<4;r++)e[r]=16711935&(e[r]<<8|e[r]>>>24)|4278255360&(e[r]<<24|e[r]>>>8);var i=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],n=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];for(this._b=0,r=0;r<4;r++)l.call(this);for(r=0;r<8;r++)n[r]^=i[r+4&7];if(t){var s=t.words,a=s[0],o=s[1],u=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),c=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),h=u>>>16|4294901760&c,d=c<<16|65535&u;for(n[0]^=u,n[1]^=h,n[2]^=c,n[3]^=d,n[4]^=u,n[5]^=h,n[6]^=c,n[7]^=d,r=0;r<4;r++)l.call(this)}},_doProcessBlock:function(e,t){var r=this._X;l.call(this),n[0]=r[0]^r[5]>>>16^r[3]<<16,n[1]=r[2]^r[7]>>>16^r[5]<<16,n[2]=r[4]^r[1]>>>16^r[7]<<16,n[3]=r[6]^r[3]>>>16^r[1]<<16;for(var i=0;i<4;i++)n[i]=16711935&(n[i]<<8|n[i]>>>24)|4278255360&(n[i]<<24|n[i]>>>8),e[t+i]^=n[i]},blockSize:4,ivSize:2});function l(){for(var e=this._X,t=this._C,r=0;r<8;r++)s[r]=t[r];for(t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0<s[0]>>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0<s[1]>>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0<s[2]>>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0<s[3]>>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0<s[4]>>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0<s[5]>>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0<s[6]>>>0?1:0)|0,this._b=t[7]>>>0<s[7]>>>0?1:0,r=0;r<8;r++){var i=e[r]+t[r],n=65535&i,o=i>>>16,l=((n*n>>>17)+n*o>>>15)+o*o,u=((4294901760&i)*i|0)+((65535&i)*i|0);a[r]=l^u}e[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,e[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,e[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,e[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,e[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,e[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,e[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,e[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}e.Rabbit=t._createHelper(o)}(),i.Rabbit)},6308:function(e,t,r){var i,n,s,a,o,l;e.exports=(l=r(9021),r(3009),n=(i=l).lib.WordArray,s=i.algo,a=s.SHA256,o=s.SHA224=a.extend({_doReset:function(){this._hash=new n.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var e=a._doFinalize.call(this);return e.sigBytes-=4,e}}),i.SHA224=a._createHelper(o),i.HmacSHA224=a._createHmacHelper(o),l.SHA224)},6372:function(e,t,r){var i;e.exports=(i=r(9021),r(7165),i.mode.CTRGladman=function(){var e=i.lib.BlockCipherMode.extend();function t(e){if(255&~(e>>24))e+=1<<24;else{var t=e>>16&255,r=e>>8&255,i=255&e;255===t?(t=0,255===r?(r=0,255===i?i=0:++i):++r):++t,e=0,e+=t<<16,e+=r<<8,e+=i}return e}var r=e.Encryptor=e.extend({processBlock:function(e,r){var i=this._cipher,n=i.blockSize,s=this._iv,a=this._counter;s&&(a=this._counter=s.slice(0),this._iv=void 0),function(e){0===(e[0]=t(e[0]))&&(e[1]=t(e[1]))}(a);var o=a.slice(0);i.encryptBlock(o,0);for(var l=0;l<n;l++)e[r+l]^=o[l]}});return e.Decryptor=r,e}(),i.mode.CTRGladman)},6440:function(e,t,r){var i;e.exports=(i=r(9021),function(){if("function"==typeof ArrayBuffer){var e=i.lib.WordArray,t=e.init,r=e.init=function(e){if(e instanceof ArrayBuffer&&(e=new Uint8Array(e)),(e instanceof Int8Array||"undefined"!=typeof Uint8ClampedArray&&e instanceof Uint8ClampedArray||e instanceof Int16Array||e instanceof Uint16Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Float32Array||e instanceof Float64Array)&&(e=new Uint8Array(e.buffer,e.byteOffset,e.byteLength)),e instanceof Uint8Array){for(var r=e.byteLength,i=[],n=0;n<r;n++)i[n>>>2]|=e[n]<<24-n%4*8;t.call(this,i,r)}else t.apply(this,arguments)};r.prototype=e}}(),i.lib.WordArray)},6546:function(e,t){"use strict";var r=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],i=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.Deferred=void 0;var i=function(){function e(){this._done=!1,this.onCloseCallbacks=[]}return Object.defineProperty(e.prototype,"done",{get:function(){return this._done},enumerable:!1,configurable:!0}),e.prototype.close=function(e){var t,i,n,s;if(this.done)console.warn("Trying to close for the second time. ".concat(e?"Dropping error [".concat(e,"]."):""));else if(this._done=!0,this._error=e,e)try{for(var a=r(this.onCloseCallbacks),o=a.next();!o.done;o=a.next())(0,o.value)(e)}catch(e){t={error:e}}finally{try{o&&!o.done&&(i=a.return)&&i.call(a)}finally{if(t)throw t.error}}else try{for(var l=r(this.onCloseCallbacks),u=l.next();!u.done;u=l.next())(0,u.value)()}catch(e){n={error:e}}finally{try{u&&!u.done&&(s=l.return)&&s.call(l)}finally{if(n)throw n.error}}},e.prototype.onClose=function(e){this._done?e(this._error):this.onCloseCallbacks.push(e)},e}();t.Deferred=i},6923:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.KeepAliveSender=t.KeepAliveHandler=t.DefaultConnectionFrameHandler=t.DefaultStreamRequestHandler=t.LeaseHandler=t.RSocketRequester=void 0;var i=r(8766),n=r(2799),s=r(5033),a=r(2320),o=r(6947),l=r(4796),u=function(){function e(e,t,r){this.connection=e,this.fragmentSize=t,this.leaseManager=r}return e.prototype.fireAndForget=function(e,t){var r=new a.RequestFnFRequesterStream(e,t,this.fragmentSize,this.leaseManager);return this.leaseManager?this.leaseManager.requestLease(r):this.connection.multiplexerDemultiplexer.createRequestStream(r),r},e.prototype.requestResponse=function(e,t){var r=new o.RequestResponseRequesterStream(e,t,this.fragmentSize,this.leaseManager);return this.leaseManager?this.leaseManager.requestLease(r):this.connection.multiplexerDemultiplexer.createRequestStream(r),r},e.prototype.requestStream=function(e,t,r){var i=new l.RequestStreamRequesterStream(e,r,this.fragmentSize,t,this.leaseManager);return this.leaseManager?this.leaseManager.requestLease(i):this.connection.multiplexerDemultiplexer.createRequestStream(i),i},e.prototype.requestChannel=function(e,t,r,i){var n=new s.RequestChannelRequesterStream(e,r,i,this.fragmentSize,t,this.leaseManager);return this.leaseManager?this.leaseManager.requestLease(n):this.connection.multiplexerDemultiplexer.createRequestStream(n),n},e.prototype.metadataPush=function(e,t){throw new Error("Method not implemented.")},e.prototype.close=function(e){this.connection.close(e)},e.prototype.onClose=function(e){this.connection.onClose(e)},e}();t.RSocketRequester=u;var c=function(){function e(e,t){this.maxPendingRequests=e,this.multiplexer=t,this.pendingRequests=[],this.expirationTime=0,this.availableLease=0}return e.prototype.handle=function(e){for(this.expirationTime=e.ttl+Date.now(),this.availableLease=e.requestCount;this.availableLease>0&&this.pendingRequests.length>0;){var t=this.pendingRequests.shift();this.availableLease--,this.multiplexer.createRequestStream(t)}},e.prototype.requestLease=function(e){var t=this.availableLease;if(t>0&&Date.now()<this.expirationTime)return this.availableLease=t-1,void this.multiplexer.createRequestStream(e);this.pendingRequests.length>=this.maxPendingRequests?e.handleReject(new i.RSocketError(i.ErrorCodes.REJECTED,"No available lease given")):this.pendingRequests.push(e)},e.prototype.cancelRequest=function(e){var t=this.pendingRequests.indexOf(e);t>-1&&this.pendingRequests.splice(t,1)},e}();t.LeaseHandler=c;var h=function(){function e(e,t){this.rsocket=e,this.fragmentSize=t}return e.prototype.handle=function(e,t){switch(e.type){case n.FrameTypes.REQUEST_FNF:return void(this.rsocket.fireAndForget&&new a.RequestFnfResponderStream(e.streamId,t,this.rsocket.fireAndForget.bind(this.rsocket),e));case n.FrameTypes.REQUEST_RESPONSE:return this.rsocket.requestResponse?void new o.RequestResponseResponderStream(e.streamId,t,this.fragmentSize,this.rsocket.requestResponse.bind(this.rsocket),e):void this.rejectRequest(e.streamId,t);case n.FrameTypes.REQUEST_STREAM:return this.rsocket.requestStream?void new l.RequestStreamResponderStream(e.streamId,t,this.fragmentSize,this.rsocket.requestStream.bind(this.rsocket),e):void this.rejectRequest(e.streamId,t);case n.FrameTypes.REQUEST_CHANNEL:return this.rsocket.requestChannel?void new s.RequestChannelResponderStream(e.streamId,t,this.fragmentSize,this.rsocket.requestChannel.bind(this.rsocket),e):void this.rejectRequest(e.streamId,t)}},e.prototype.rejectRequest=function(e,t){t.send({type:n.FrameTypes.ERROR,streamId:e,flags:n.Flags.NONE,code:i.ErrorCodes.REJECTED,message:"No available handler found"})},e.prototype.close=function(){},e}();t.DefaultStreamRequestHandler=h;var d,p=function(){function e(e,t,r,i,n){this.connection=e,this.keepAliveHandler=t,this.keepAliveSender=r,this.leaseHandler=i,this.rsocket=n}return e.prototype.handle=function(e){switch(e.type){case n.FrameTypes.KEEPALIVE:return void this.keepAliveHandler.handle(e);case n.FrameTypes.LEASE:return this.leaseHandler?void this.leaseHandler.handle(e):void 0;case n.FrameTypes.ERROR:return void this.connection.close(new i.RSocketError(e.code,e.message));case n.FrameTypes.METADATA_PUSH:return void this.rsocket.metadataPush;default:this.connection.multiplexerDemultiplexer.connectionOutbound.send({type:n.FrameTypes.ERROR,streamId:0,flags:n.Flags.NONE,message:"Received unknown frame type",code:i.ErrorCodes.CONNECTION_ERROR})}},e.prototype.pause=function(){var e;this.keepAliveHandler.pause(),null===(e=this.keepAliveSender)||void 0===e||e.pause()},e.prototype.resume=function(){var e;this.keepAliveHandler.start(),null===(e=this.keepAliveSender)||void 0===e||e.start()},e.prototype.close=function(e){var t;this.keepAliveHandler.close(),null===(t=this.rsocket.close)||void 0===t||t.call(this.rsocket,e)},e}();t.DefaultConnectionFrameHandler=p,function(e){e[e.Paused=0]="Paused",e[e.Running=1]="Running",e[e.Closed=2]="Closed"}(d||(d={}));var f,g=function(){function e(e,t){this.connection=e,this.keepAliveTimeoutDuration=t,this.state=d.Paused,this.outbound=e.multiplexerDemultiplexer.connectionOutbound}return e.prototype.handle=function(e){this.keepAliveLastReceivedMillis=Date.now(),n.Flags.hasRespond(e.flags)&&this.outbound.send({type:n.FrameTypes.KEEPALIVE,streamId:0,data:e.data,flags:e.flags^n.Flags.RESPOND,lastReceivedPosition:0})},e.prototype.start=function(){this.state===d.Paused&&(this.keepAliveLastReceivedMillis=Date.now(),this.state=d.Running,this.activeTimeout=setTimeout(this.timeoutCheck.bind(this),this.keepAliveTimeoutDuration))},e.prototype.pause=function(){this.state===d.Running&&(this.state=d.Paused,clearTimeout(this.activeTimeout))},e.prototype.close=function(){this.state=d.Closed,clearTimeout(this.activeTimeout)},e.prototype.timeoutCheck=function(){var e=Date.now()-this.keepAliveLastReceivedMillis;e>=this.keepAliveTimeoutDuration?this.connection.close(new Error("No keep-alive acks for ".concat(this.keepAliveTimeoutDuration," millis"))):this.activeTimeout=setTimeout(this.timeoutCheck.bind(this),Math.max(100,this.keepAliveTimeoutDuration-e))},e}();t.KeepAliveHandler=g,function(e){e[e.Paused=0]="Paused",e[e.Running=1]="Running",e[e.Closed=2]="Closed"}(f||(f={}));var m=function(){function e(e,t){this.outbound=e,this.keepAlivePeriodDuration=t,this.state=f.Paused}return e.prototype.sendKeepAlive=function(){this.outbound.send({type:n.FrameTypes.KEEPALIVE,streamId:0,data:void 0,flags:n.Flags.RESPOND,lastReceivedPosition:0})},e.prototype.start=function(){this.state===f.Paused&&(this.state=f.Running,this.activeInterval=setInterval(this.sendKeepAlive.bind(this),this.keepAlivePeriodDuration))},e.prototype.pause=function(){this.state===f.Running&&(this.state=f.Paused,clearInterval(this.activeInterval))},e.prototype.close=function(){this.state=f.Closed,clearInterval(this.activeInterval)},e}();t.KeepAliveSender=m},6939:function(e,t,r){var i,n,s;e.exports=(s=r(9021),r(7165),s.mode.CTR=(n=(i=s.lib.BlockCipherMode.extend()).Encryptor=i.extend({processBlock:function(e,t){var r=this._cipher,i=r.blockSize,n=this._iv,s=this._counter;n&&(s=this._counter=n.slice(0),this._iv=void 0);var a=s.slice(0);r.encryptBlock(a,0),s[i-1]=s[i-1]+1|0;for(var o=0;o<i;o++)e[t+o]^=a[o]}}),i.Decryptor=n,i),s.mode.CTR)},6947:function(e,t,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){void 0===i&&(i=r),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,i){void 0===i&&(i=r),e[i]=t[r]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&i(t,e,r);return n(t,e),t},a=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],i=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.RequestResponseResponderStream=t.RequestResponseRequesterStream=void 0;var o=r(8766),l=r(4438),u=r(2799),c=s(r(7076)),h=function(){function e(e,t,r,i){this.payload=e,this.receiver=t,this.fragmentSize=r,this.leaseManager=i,this.streamType=u.FrameTypes.REQUEST_RESPONSE}return e.prototype.handleReady=function(e,t){var r,i;if(this.done)return!1;if(this.streamId=e,this.stream=t,t.connect(this),(0,l.isFragmentable)(this.payload,this.fragmentSize,u.FrameTypes.REQUEST_RESPONSE))try{for(var n=a((0,l.fragment)(e,this.payload,this.fragmentSize,u.FrameTypes.REQUEST_RESPONSE)),s=n.next();!s.done;s=n.next()){var o=s.value;this.stream.send(o)}}catch(e){r={error:e}}finally{try{s&&!s.done&&(i=n.return)&&i.call(n)}finally{if(r)throw r.error}}else this.stream.send({type:u.FrameTypes.REQUEST_RESPONSE,data:this.payload.data,metadata:this.payload.metadata,flags:this.payload.metadata?u.Flags.METADATA:0,streamId:e});return this.hasExtension&&this.stream.send({type:u.FrameTypes.EXT,streamId:e,extendedContent:this.extendedContent,extendedType:this.extendedType,flags:this.flags}),!0},e.prototype.handleReject=function(e){this.done||(this.done=!0,this.receiver.onError(e))},e.prototype.handle=function(e){var t,r=e.type;switch(r){case u.FrameTypes.PAYLOAD:var i=u.Flags.hasComplete(e.flags),n=u.Flags.hasNext(e.flags);if(i||!u.Flags.hasFollows(e.flags)){if(this.done=!0,this.stream.disconnect(this),!n)return void this.receiver.onComplete();var s=this.hasFragments?c.reassemble(this,e.data,e.metadata):{data:e.data,metadata:e.metadata};return void this.receiver.onNext(s,!0)}if(!c.add(this,e.data,e.metadata)){t="Unexpected fragment size";break}return;case u.FrameTypes.ERROR:return this.done=!0,this.stream.disconnect(this),c.cancel(this),void this.receiver.onError(new o.RSocketError(e.code,e.message));case u.FrameTypes.EXT:if(this.hasFragments){t="Unexpected frame type [".concat(r,"] during reassembly");break}return void this.receiver.onExtension(e.extendedType,e.extendedContent,u.Flags.hasIgnore(e.flags));default:t="Unexpected frame type [".concat(r,"]")}this.close(new o.RSocketError(o.ErrorCodes.CANCELED,t)),this.stream.send({type:u.FrameTypes.CANCEL,streamId:this.streamId,flags:u.Flags.NONE}),this.stream.disconnect(this)},e.prototype.cancel=function(){var e;this.done||(this.done=!0,this.streamId?(this.stream.send({type:u.FrameTypes.CANCEL,flags:u.Flags.NONE,streamId:this.streamId}),this.stream.disconnect(this),c.cancel(this)):null===(e=this.leaseManager)||void 0===e||e.cancelRequest(this))},e.prototype.onExtension=function(e,t,r){if(!this.done)return this.streamId?void this.stream.send({streamId:this.streamId,type:u.FrameTypes.EXT,extendedType:e,extendedContent:t,flags:r?u.Flags.IGNORE:u.Flags.NONE}):(this.hasExtension=!0,this.extendedType=e,this.extendedContent=t,void(this.flags=r?u.Flags.IGNORE:u.Flags.NONE))},e.prototype.close=function(e){this.done||(this.done=!0,c.cancel(this),e?this.receiver.onError(e):this.receiver.onComplete())},e}();t.RequestResponseRequesterStream=h;var d=function(){function e(e,t,r,i,n){if(this.streamId=e,this.stream=t,this.fragmentSize=r,this.handler=i,this.streamType=u.FrameTypes.REQUEST_RESPONSE,t.connect(this),u.Flags.hasFollows(n.flags))c.add(this,n.data,n.metadata);else{var s={data:n.data,metadata:n.metadata};try{this.receiver=i(s,this)}catch(e){this.onError(e)}}}return e.prototype.handle=function(e){var t,r;if(!this.receiver||this.hasFragments)if(e.type===u.FrameTypes.PAYLOAD){if(!u.Flags.hasFollows(e.flags)){var i=c.reassemble(this,e.data,e.metadata);try{this.receiver=this.handler(i,this)}catch(e){this.onError(e)}return}if(c.add(this,e.data,e.metadata))return;r="Unexpected fragment size"}else r="Unexpected frame type [".concat(e.type,"] during reassembly");else{if(e.type===u.FrameTypes.EXT)return void this.receiver.onExtension(e.extendedType,e.extendedContent,u.Flags.hasIgnore(e.flags));r="Unexpected frame type [".concat(e.type,"]")}this.done=!0,null===(t=this.receiver)||void 0===t||t.cancel(),e.type!==u.FrameTypes.CANCEL&&e.type!==u.FrameTypes.ERROR&&this.stream.send({type:u.FrameTypes.ERROR,flags:u.Flags.NONE,code:o.ErrorCodes.CANCELED,message:r,streamId:this.streamId}),this.stream.disconnect(this),c.cancel(this)},e.prototype.onError=function(e){this.done?console.warn("Trying to error for the second time. ".concat(e?"Dropping error [".concat(e,"]."):"")):(this.done=!0,this.stream.send({type:u.FrameTypes.ERROR,flags:u.Flags.NONE,code:e instanceof o.RSocketError?e.code:o.ErrorCodes.APPLICATION_ERROR,message:e.message,streamId:this.streamId}),this.stream.disconnect(this))},e.prototype.onNext=function(e,t){var r,i;if(!this.done){if(this.done=!0,(0,l.isFragmentable)(e,this.fragmentSize,u.FrameTypes.PAYLOAD))try{for(var n=a((0,l.fragment)(this.streamId,e,this.fragmentSize,u.FrameTypes.PAYLOAD,!0)),s=n.next();!s.done;s=n.next()){var o=s.value;this.stream.send(o)}}catch(e){r={error:e}}finally{try{s&&!s.done&&(i=n.return)&&i.call(n)}finally{if(r)throw r.error}}else this.stream.send({type:u.FrameTypes.PAYLOAD,flags:u.Flags.NEXT|u.Flags.COMPLETE|(e.metadata?u.Flags.METADATA:0),data:e.data,metadata:e.metadata,streamId:this.streamId});this.stream.disconnect(this)}},e.prototype.onComplete=function(){this.done||(this.done=!0,this.stream.send({type:u.FrameTypes.PAYLOAD,flags:u.Flags.COMPLETE,streamId:this.streamId,data:null,metadata:null}),this.stream.disconnect(this))},e.prototype.onExtension=function(e,t,r){this.done||this.stream.send({type:u.FrameTypes.EXT,streamId:this.streamId,flags:r?u.Flags.IGNORE:u.Flags.NONE,extendedType:e,extendedContent:t})},e.prototype.close=function(e){var t;this.done?console.warn("Trying to close for the second time. ".concat(e?"Dropping error [".concat(e,"]."):"")):(c.cancel(this),null===(t=this.receiver)||void 0===t||t.cancel())},e}();t.RequestResponseResponderStream=d},7076:(e,t,r)=>{"use strict";var i=r(8287).hp;Object.defineProperty(t,"__esModule",{value:!0}),t.cancel=t.reassemble=t.add=void 0,t.add=function(e,t,r){return e.hasFragments?(e.data=e.data?i.concat([e.data,t]):t,e.metadata&&r&&(e.metadata=i.concat([e.metadata,r])),!0):(e.hasFragments=!0,e.data=t,r&&(e.metadata=r),!0)},t.reassemble=function(e,t,r){e.hasFragments=!1;var n=e.data?i.concat([e.data,t]):t;if(e.data=void 0,e.metadata){var s=r?i.concat([e.metadata,r]):e.metadata;return e.metadata=void 0,{data:n,metadata:s}}return{data:n}},t.cancel=function(e){e.hasFragments=!1,e.data=void 0,e.metadata=void 0}},7165:function(e,t,r){var i,n,s,a,o,l,u,c,h,d,p,f,g,m,y,v,b,I,w;e.exports=(i=r(9021),r(9506),void(i.lib.Cipher||(n=i,s=n.lib,a=s.Base,o=s.WordArray,l=s.BufferedBlockAlgorithm,u=n.enc,u.Utf8,c=u.Base64,h=n.algo.EvpKDF,d=s.Cipher=l.extend({cfg:a.extend(),createEncryptor:function(e,t){return this.create(this._ENC_XFORM_MODE,e,t)},createDecryptor:function(e,t){return this.create(this._DEC_XFORM_MODE,e,t)},init:function(e,t,r){this.cfg=this.cfg.extend(r),this._xformMode=e,this._key=t,this.reset()},reset:function(){l.reset.call(this),this._doReset()},process:function(e){return this._append(e),this._process()},finalize:function(e){return e&&this._append(e),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function e(e){return"string"==typeof e?w:b}return function(t){return{encrypt:function(r,i,n){return e(i).encrypt(t,r,i,n)},decrypt:function(r,i,n){return e(i).decrypt(t,r,i,n)}}}}()}),s.StreamCipher=d.extend({_doFinalize:function(){return this._process(!0)},blockSize:1}),p=n.mode={},f=s.BlockCipherMode=a.extend({createEncryptor:function(e,t){return this.Encryptor.create(e,t)},createDecryptor:function(e,t){return this.Decryptor.create(e,t)},init:function(e,t){this._cipher=e,this._iv=t}}),g=p.CBC=function(){var e=f.extend();function t(e,t,r){var i,n=this._iv;n?(i=n,this._iv=void 0):i=this._prevBlock;for(var s=0;s<r;s++)e[t+s]^=i[s]}return e.Encryptor=e.extend({processBlock:function(e,r){var i=this._cipher,n=i.blockSize;t.call(this,e,r,n),i.encryptBlock(e,r),this._prevBlock=e.slice(r,r+n)}}),e.Decryptor=e.extend({processBlock:function(e,r){var i=this._cipher,n=i.blockSize,s=e.slice(r,r+n);i.decryptBlock(e,r),t.call(this,e,r,n),this._prevBlock=s}}),e}(),m=(n.pad={}).Pkcs7={pad:function(e,t){for(var r=4*t,i=r-e.sigBytes%r,n=i<<24|i<<16|i<<8|i,s=[],a=0;a<i;a+=4)s.push(n);var l=o.create(s,i);e.concat(l)},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},s.BlockCipher=d.extend({cfg:d.cfg.extend({mode:g,padding:m}),reset:function(){var e;d.reset.call(this);var t=this.cfg,r=t.iv,i=t.mode;this._xformMode==this._ENC_XFORM_MODE?e=i.createEncryptor:(e=i.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==e?this._mode.init(this,r&&r.words):(this._mode=e.call(i,this,r&&r.words),this._mode.__creator=e)},_doProcessBlock:function(e,t){this._mode.processBlock(e,t)},_doFinalize:function(){var e,t=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(t.pad(this._data,this.blockSize),e=this._process(!0)):(e=this._process(!0),t.unpad(e)),e},blockSize:4}),y=s.CipherParams=a.extend({init:function(e){this.mixIn(e)},toString:function(e){return(e||this.formatter).stringify(this)}}),v=(n.format={}).OpenSSL={stringify:function(e){var t=e.ciphertext,r=e.salt;return(r?o.create([1398893684,1701076831]).concat(r).concat(t):t).toString(c)},parse:function(e){var t,r=c.parse(e),i=r.words;return 1398893684==i[0]&&1701076831==i[1]&&(t=o.create(i.slice(2,4)),i.splice(0,4),r.sigBytes-=16),y.create({ciphertext:r,salt:t})}},b=s.SerializableCipher=a.extend({cfg:a.extend({format:v}),encrypt:function(e,t,r,i){i=this.cfg.extend(i);var n=e.createEncryptor(r,i),s=n.finalize(t),a=n.cfg;return y.create({ciphertext:s,key:r,iv:a.iv,algorithm:e,mode:a.mode,padding:a.padding,blockSize:e.blockSize,formatter:i.format})},decrypt:function(e,t,r,i){return i=this.cfg.extend(i),t=this._parse(t,i.format),e.createDecryptor(r,i).finalize(t.ciphertext)},_parse:function(e,t){return"string"==typeof e?t.parse(e,this):e}}),I=(n.kdf={}).OpenSSL={execute:function(e,t,r,i,n){if(i||(i=o.random(8)),n)s=h.create({keySize:t+r,hasher:n}).compute(e,i);else var s=h.create({keySize:t+r}).compute(e,i);var a=o.create(s.words.slice(t),4*r);return s.sigBytes=4*t,y.create({key:s,iv:a,salt:i})}},w=s.PasswordBasedCipher=b.extend({cfg:b.cfg.extend({kdf:I}),encrypt:function(e,t,r,i){var n=(i=this.cfg.extend(i)).kdf.execute(r,e.keySize,e.ivSize,i.salt,i.hasher);i.iv=n.iv;var s=b.encrypt.call(this,e,t,n.key,i);return s.mixIn(n),s},decrypt:function(e,t,r,i){i=this.cfg.extend(i),t=this._parse(t,i.format);var n=i.kdf.execute(r,e.keySize,e.ivSize,t.salt,i.hasher);return i.iv=n.iv,b.decrypt.call(this,e,t,n.key,i)}}))))},7193:function(e,t,r){var i;e.exports=(i=r(9021),r(754),r(4636),r(9506),r(7165),function(){var e=i,t=e.lib.StreamCipher,r=e.algo,n=r.RC4=t.extend({_doReset:function(){for(var e=this._key,t=e.words,r=e.sigBytes,i=this._S=[],n=0;n<256;n++)i[n]=n;n=0;for(var s=0;n<256;n++){var a=n%r,o=t[a>>>2]>>>24-a%4*8&255;s=(s+i[n]+o)%256;var l=i[n];i[n]=i[s],i[s]=l}this._i=this._j=0},_doProcessBlock:function(e,t){e[t]^=s.call(this)},keySize:8,ivSize:0});function s(){for(var e=this._S,t=this._i,r=this._j,i=0,n=0;n<4;n++){r=(r+e[t=(t+1)%256])%256;var s=e[t];e[t]=e[r],e[r]=s,i|=e[(e[t]+e[r])%256]<<24-8*n}return this._i=t,this._j=r,i}e.RC4=t._createHelper(n);var a=r.RC4Drop=n.extend({cfg:n.cfg.extend({drop:192}),_doReset:function(){n._doReset.call(this);for(var e=this.cfg.drop;e>0;e--)s.call(this)}});e.RC4Drop=t._createHelper(a)}(),i.RC4)},7225:function(e,t,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){void 0===i&&(i=r),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,i){void 0===i&&(i=r),e[i]=t[r]}),n=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||i(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),n(r(5974),t),n(r(288),t),n(r(6546),t),n(r(8766),t),n(r(2799),t),n(r(4170),t),n(r(2147),t),n(r(2777),t),n(r(3092),t)},7526:(e,t)=>{"use strict";t.byteLength=function(e){var t=o(e),r=t[0],i=t[1];return 3*(r+i)/4-i},t.toByteArray=function(e){var t,r,s=o(e),a=s[0],l=s[1],u=new n(function(e,t,r){return 3*(t+r)/4-r}(0,a,l)),c=0,h=l>0?a-4:a;for(r=0;r<h;r+=4)t=i[e.charCodeAt(r)]<<18|i[e.charCodeAt(r+1)]<<12|i[e.charCodeAt(r+2)]<<6|i[e.charCodeAt(r+3)],u[c++]=t>>16&255,u[c++]=t>>8&255,u[c++]=255&t;return 2===l&&(t=i[e.charCodeAt(r)]<<2|i[e.charCodeAt(r+1)]>>4,u[c++]=255&t),1===l&&(t=i[e.charCodeAt(r)]<<10|i[e.charCodeAt(r+1)]<<4|i[e.charCodeAt(r+2)]>>2,u[c++]=t>>8&255,u[c++]=255&t),u},t.fromByteArray=function(e){for(var t,i=e.length,n=i%3,s=[],a=16383,o=0,l=i-n;o<l;o+=a)s.push(u(e,o,o+a>l?l:o+a));return 1===n?(t=e[i-1],s.push(r[t>>2]+r[t<<4&63]+"==")):2===n&&(t=(e[i-2]<<8)+e[i-1],s.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"=")),s.join("")};for(var r=[],i=[],n="undefined"!=typeof Uint8Array?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0;a<64;++a)r[a]=s[a],i[s.charCodeAt(a)]=a;function o(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");return-1===r&&(r=t),[r,r===t?0:4-r%4]}function l(e){return r[e>>18&63]+r[e>>12&63]+r[e>>6&63]+r[63&e]}function u(e,t,r){for(var i,n=[],s=t;s<r;s+=3)i=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&e[s+2]),n.push(l(i));return n.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},7628:function(e,t,r){var i;e.exports=(i=r(9021),r(754),r(4636),r(9506),r(7165),function(){var e=i,t=e.lib,r=t.WordArray,n=t.BlockCipher,s=e.algo,a=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],o=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],l=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],u=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],c=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],h=s.DES=n.extend({_doReset:function(){for(var e=this._key.words,t=[],r=0;r<56;r++){var i=a[r]-1;t[r]=e[i>>>5]>>>31-i%32&1}for(var n=this._subKeys=[],s=0;s<16;s++){var u=n[s]=[],c=l[s];for(r=0;r<24;r++)u[r/6|0]|=t[(o[r]-1+c)%28]<<31-r%6,u[4+(r/6|0)]|=t[28+(o[r+24]-1+c)%28]<<31-r%6;for(u[0]=u[0]<<1|u[0]>>>31,r=1;r<7;r++)u[r]=u[r]>>>4*(r-1)+3;u[7]=u[7]<<5|u[7]>>>27}var h=this._invSubKeys=[];for(r=0;r<16;r++)h[r]=n[15-r]},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._subKeys)},decryptBlock:function(e,t){this._doCryptBlock(e,t,this._invSubKeys)},_doCryptBlock:function(e,t,r){this._lBlock=e[t],this._rBlock=e[t+1],d.call(this,4,252645135),d.call(this,16,65535),p.call(this,2,858993459),p.call(this,8,16711935),d.call(this,1,1431655765);for(var i=0;i<16;i++){for(var n=r[i],s=this._lBlock,a=this._rBlock,o=0,l=0;l<8;l++)o|=u[l][((a^n[l])&c[l])>>>0];this._lBlock=a,this._rBlock=s^o}var h=this._lBlock;this._lBlock=this._rBlock,this._rBlock=h,d.call(this,1,1431655765),p.call(this,8,16711935),p.call(this,2,858993459),d.call(this,16,65535),d.call(this,4,252645135),e[t]=this._lBlock,e[t+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});function d(e,t){var r=(this._lBlock>>>e^this._rBlock)&t;this._rBlock^=r,this._lBlock^=r<<e}function p(e,t){var r=(this._rBlock>>>e^this._lBlock)&t;this._lBlock^=r,this._rBlock^=r<<e}e.DES=n._createHelper(h);var f=s.TripleDES=n.extend({_doReset:function(){var e=this._key.words;if(2!==e.length&&4!==e.length&&e.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var t=e.slice(0,2),i=e.length<4?e.slice(0,2):e.slice(2,4),n=e.length<6?e.slice(0,2):e.slice(4,6);this._des1=h.createEncryptor(r.create(t)),this._des2=h.createEncryptor(r.create(i)),this._des3=h.createEncryptor(r.create(n))},encryptBlock:function(e,t){this._des1.encryptBlock(e,t),this._des2.decryptBlock(e,t),this._des3.encryptBlock(e,t)},decryptBlock:function(e,t){this._des3.decryptBlock(e,t),this._des2.encryptBlock(e,t),this._des1.decryptBlock(e,t)},keySize:6,ivSize:2,blockSize:2});e.TripleDES=n._createHelper(f)}(),i.TripleDES)},7698:function(e,t,r){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},i(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),s=this&&this.__awaiter||function(e,t,r,i){return new(r||(r=Promise))(function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(a,o)}l((i=i.apply(e,t||[])).next())})},a=this&&this.__generator||function(e,t){var r,i,n,s,a={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return s={next:o(0),throw:o(1),return:o(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function o(s){return function(o){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,i&&(n=2&s[0]?i.return:s[0]?i.throw||((n=i.return)&&n.call(i),0):i.next)&&!(n=n.call(i,s[1])).done)return n;switch(i=0,n&&(s=[2&s[0],n.value]),s[0]){case 0:case 1:n=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,i=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((n=(n=a.trys).length>0&&n[n.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!n||s[1]>n[0]&&s[1]<n[3])){a.label=s[1];break}if(6===s[0]&&a.label<n[1]){a.label=n[1],n=s;break}if(n&&a.label<n[2]){a.label=n[2],a.ops.push(s);break}n[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],i=0}finally{r=n=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,o])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.ResumeOkAwaitingResumableClientServerInputMultiplexerDemultiplexer=t.ResumableClientServerInputMultiplexerDemultiplexer=t.ClientServerInputMultiplexerDemultiplexer=t.StreamIdGenerator=void 0;var o=r(7225),l=r(6546),u=r(8766),c=r(2799);!function(e){e.create=function(e){return new t(e)};var t=function(){function e(e){this.currentId=e}return e.prototype.next=function(e){var t=this.currentId+2;e(t)&&(this.currentId=t)},e}()}(t.StreamIdGenerator||(t.StreamIdGenerator={}));var h=function(e){function t(t,r,i){var n=e.call(this)||this;return n.streamIdSupplier=t,n.outbound=r,n.closeable=i,n.registry={},i.onClose(n.close.bind(n)),n}return n(t,e),t.prototype.handle=function(e){if(c.Frame.isConnection(e)){if(e.type===o.FrameTypes.RESERVED)return;this.connectionFramesHandler.handle(e)}else if(c.Frame.isRequest(e)){if(this.registry[e.streamId])return;this.requestFramesHandler.handle(e,this)}else{var t=this.registry[e.streamId];if(!t)return;t.handle(e)}},t.prototype.connectionInbound=function(e){if(this.connectionFramesHandler)throw new Error("Connection frame handler has already been installed");this.connectionFramesHandler=e},t.prototype.handleRequestStream=function(e){if(this.requestFramesHandler)throw new Error("Stream handler has already been installed");this.requestFramesHandler=e},t.prototype.send=function(e){this.outbound.send(e)},Object.defineProperty(t.prototype,"connectionOutbound",{get:function(){return this},enumerable:!1,configurable:!0}),t.prototype.createRequestStream=function(e){var t=this;if(this.done)e.handleReject(new Error("Already closed"));else{var r=this.registry;this.streamIdSupplier.next(function(r){return e.handleReady(r,t)},Object.keys(r))}},t.prototype.connect=function(e){this.registry[e.streamId]=e},t.prototype.disconnect=function(e){delete this.registry[e.streamId]},t.prototype.close=function(t){if(this.done)e.prototype.close.call(this,t);else{for(var r in this.registry)this.registry[r].close(new Error("Closed. ".concat(t?"Original cause [".concat(t,"]."):"")));e.prototype.close.call(this,t)}},t}(l.Deferred);t.ClientServerInputMultiplexerDemultiplexer=h;var d=function(e){function t(t,r,i,n,s,a,o){var u=e.call(this,t,r,new l.Deferred)||this;return u.frameStore=n,u.token=s,u.sessionTimeout=o,a instanceof Function?u.reconnector=a:u.sessionStore=a,i.onClose(u.handleConnectionClose.bind(u)),u}return n(t,e),t.prototype.send=function(t){if(c.Frame.isConnection(t)){if(t.type===o.FrameTypes.KEEPALIVE)t.lastReceivedPosition=this.frameStore.lastReceivedFramePosition;else if(t.type===o.FrameTypes.ERROR)return this.outbound.send(t),this.sessionStore&&delete this.sessionStore[this.token],void e.prototype.close.call(this,new u.RSocketError(t.code,t.message))}else this.frameStore.store(t);this.outbound.send(t)},t.prototype.handle=function(t){if(c.Frame.isConnection(t)){if(t.type===o.FrameTypes.KEEPALIVE)try{this.frameStore.dropTo(t.lastReceivedPosition)}catch(e){this.outbound.send({type:o.FrameTypes.ERROR,streamId:0,flags:o.Flags.NONE,code:e.code,message:e.message}),this.close(e)}else if(t.type===o.FrameTypes.ERROR)return e.prototype.handle.call(this,t),this.sessionStore&&delete this.sessionStore[this.token],void e.prototype.close.call(this,new u.RSocketError(t.code,t.message))}else this.frameStore.record(t);e.prototype.handle.call(this,t)},t.prototype.resume=function(e,t,r){switch(this.outbound=t,e.type){case o.FrameTypes.RESUME:if(clearTimeout(this.timeoutId),this.frameStore.lastReceivedFramePosition<e.clientPosition){var i=new u.RSocketError(o.ErrorCodes.REJECTED_RESUME,"Impossible to resume since first available client frame position is greater than last received server frame position");return this.outbound.send({type:o.FrameTypes.ERROR,streamId:0,flags:o.Flags.NONE,code:i.code,message:i.message}),void this.close(i)}try{this.frameStore.dropTo(e.serverPosition)}catch(e){return this.outbound.send({type:o.FrameTypes.ERROR,streamId:0,flags:o.Flags.NONE,code:e.code,message:e.message}),void this.close(e)}this.outbound.send({type:o.FrameTypes.RESUME_OK,streamId:0,flags:o.Flags.NONE,clientPosition:this.frameStore.lastReceivedFramePosition});break;case o.FrameTypes.RESUME_OK:try{this.frameStore.dropTo(e.clientPosition)}catch(e){this.outbound.send({type:o.FrameTypes.ERROR,streamId:0,flags:o.Flags.NONE,code:e.code,message:e.message}),this.close(e)}}this.frameStore.drain(this.outbound.send.bind(this.outbound)),r.onClose(this.handleConnectionClose.bind(this)),this.connectionFramesHandler.resume()},t.prototype.handleConnectionClose=function(e){return s(this,void 0,void 0,function(){var e;return a(this,function(t){switch(t.label){case 0:if(this.connectionFramesHandler.pause(),!this.reconnector)return[3,5];t.label=1;case 1:return t.trys.push([1,3,,4]),[4,this.reconnector(this,this.frameStore)];case 2:return t.sent(),[3,4];case 3:return e=t.sent(),this.close(e),[3,4];case 4:return[3,6];case 5:this.timeoutId=setTimeout(this.close.bind(this),this.sessionTimeout),t.label=6;case 6:return[2]}})})},t}(h);t.ResumableClientServerInputMultiplexerDemultiplexer=d;var p=function(){function e(e,t,r){this.outbound=e,this.closeable=t,this.delegate=r,this.resumed=!1}return e.prototype.close=function(){this.delegate.close()},e.prototype.onClose=function(e){this.delegate.onClose(e)},Object.defineProperty(e.prototype,"connectionOutbound",{get:function(){return this.delegate.connectionOutbound},enumerable:!1,configurable:!0}),e.prototype.createRequestStream=function(e){this.delegate.createRequestStream(e)},e.prototype.connectionInbound=function(e){this.delegate.connectionInbound(e)},e.prototype.handleRequestStream=function(e){this.delegate.handleRequestStream(e)},e.prototype.handle=function(e){var t=this;if(!this.resumed)return e.type===o.FrameTypes.RESUME_OK?(this.resumed=!0,void this.delegate.resume(e,this.outbound,this.closeable)):(this.outbound.send({type:o.FrameTypes.ERROR,streamId:0,code:o.ErrorCodes.CONNECTION_ERROR,message:"Incomplete RESUME handshake. Unexpected frame ".concat(e.type," received"),flags:o.Flags.NONE}),this.closeable.close(),void this.closeable.onClose(function(){return t.delegate.close(new u.RSocketError(o.ErrorCodes.CONNECTION_ERROR,"Incomplete RESUME handshake. Unexpected frame ".concat(e.type," received")))}));this.delegate.handle(e)},e}();t.ResumeOkAwaitingResumableClientServerInputMultiplexerDemultiplexer=p},8056:function(e,t,r){var i;e.exports=(i=r(9021),function(){var e=i,t=e.lib,r=t.WordArray,n=t.Hasher,s=e.algo,a=r.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),o=r.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),l=r.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),u=r.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),c=r.create([0,1518500249,1859775393,2400959708,2840853838]),h=r.create([1352829926,1548603684,1836072691,2053994217,0]),d=s.RIPEMD160=n.extend({_doReset:function(){this._hash=r.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var r=0;r<16;r++){var i=t+r,n=e[i];e[i]=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8)}var s,d,b,I,w,E,k,S,M,F,T,R=this._hash.words,A=c.words,_=h.words,O=a.words,C=o.words,x=l.words,N=u.words;for(E=s=R[0],k=d=R[1],S=b=R[2],M=I=R[3],F=w=R[4],r=0;r<80;r+=1)T=s+e[t+O[r]]|0,T+=r<16?p(d,b,I)+A[0]:r<32?f(d,b,I)+A[1]:r<48?g(d,b,I)+A[2]:r<64?m(d,b,I)+A[3]:y(d,b,I)+A[4],T=(T=v(T|=0,x[r]))+w|0,s=w,w=I,I=v(b,10),b=d,d=T,T=E+e[t+C[r]]|0,T+=r<16?y(k,S,M)+_[0]:r<32?m(k,S,M)+_[1]:r<48?g(k,S,M)+_[2]:r<64?f(k,S,M)+_[3]:p(k,S,M)+_[4],T=(T=v(T|=0,N[r]))+F|0,E=F,F=M,M=v(S,10),S=k,k=T;T=R[1]+b+M|0,R[1]=R[2]+I+F|0,R[2]=R[3]+w+E|0,R[3]=R[4]+s+k|0,R[4]=R[0]+d+S|0,R[0]=T},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,i=8*e.sigBytes;t[i>>>5]|=128<<24-i%32,t[14+(i+64>>>9<<4)]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),e.sigBytes=4*(t.length+1),this._process();for(var n=this._hash,s=n.words,a=0;a<5;a++){var o=s[a];s[a]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8)}return n},clone:function(){var e=n.clone.call(this);return e._hash=this._hash.clone(),e}});function p(e,t,r){return e^t^r}function f(e,t,r){return e&t|~e&r}function g(e,t,r){return(e|~t)^r}function m(e,t,r){return e&r|t&~r}function y(e,t,r){return e^(t|~r)}function v(e,t){return e<<t|e>>>32-t}e.RIPEMD160=n._createHelper(d),e.HmacRIPEMD160=n._createHmacHelper(d)}(Math),i.RIPEMD160)},8124:function(e,t,r){var i;e.exports=(i=r(9021),r(7165),i.pad.NoPadding={pad:function(){},unpad:function(){}},i.pad.NoPadding)},8279:function(e,t,r){"use strict";var i=r(8287).hp,n=this&&this.__generator||function(e,t){var r,i,n,s,a={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return s={next:o(0),throw:o(1),return:o(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function o(s){return function(o){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,i&&(n=2&s[0]?i.return:s[0]?i.throw||((n=i.return)&&n.call(i),0):i.next)&&!(n=n.call(i,s[1])).done)return n;switch(i=0,n&&(s=[2&s[0],n.value]),s[0]){case 0:case 1:n=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,i=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((n=(n=a.trys).length>0&&n[n.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!n||s[1]>n[0]&&s[1]<n[3])){a.label=s[1];break}if(6===s[0]&&a.label<n[1]){a.label=n[1],n=s;break}if(n&&a.label<n[2]){a.label=n[2],a.ops.push(s);break}n[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],i=0}finally{r=n=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,o])}}},s=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],i=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},a=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var i,n,s=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(i=s.next()).done;)a.push(i.value)}catch(e){n={error:e}}finally{try{i&&!i.done&&(r=s.return)&&r.call(s)}finally{if(n)throw n.error}}return a};Object.defineProperty(t,"__esModule",{value:!0}),t.WellKnownMimeTypeEntry=t.ReservedMimeTypeEntry=t.ExplicitMimeTimeEntry=t.decodeCompositeMetadata=t.encodeWellKnownMetadataHeader=t.encodeCustomMetadataHeader=t.decodeMimeTypeFromMimeBuffer=t.decodeMimeAndContentBuffersSlices=t.encodeAndAddWellKnownMetadata=t.encodeAndAddCustomMetadata=t.encodeCompositeMetadata=t.CompositeMetadata=void 0;var o=r(7225),l=r(3034),u=function(){function e(e){this._buffer=e}return e.prototype.iterator=function(){return m(this._buffer)},e.prototype[Symbol.iterator]=function(){return m(this._buffer)},e}();function c(e,t,r){return i.concat([e,f(t,r.byteLength),r])}function h(e,t,r){var n;return n=Number.isInteger(t)?t:t.identifier,i.concat([e,g(n,r.byteLength),r])}function d(e,t){var r,i=e.readInt8(t),n=t;if((i&w)===w)r=e.slice(n,n+1),n+=1;else{var s=1+(255&i);if(!(e.byteLength>n+s))throw new Error("Metadata is malformed. Inappropriately formed Mime Length");r=e.slice(n,n+s+1),n+=s+1}if(e.byteLength>=n+3){var a=(0,o.readUInt24BE)(e,n);if(n+=3,e.byteLength>=a+n)return[r,e.slice(n,n+a)];throw new Error("Metadata is malformed. Inappropriately formed Metadata Length or malformed content")}throw new Error("Metadata is malformed. Metadata Length is absent or malformed")}function p(e){if(e.length<2)throw new Error("Unable to decode explicit MIME type");return e.toString("ascii",1)}function f(e,t){var r=i.allocUnsafe(4+e.length);r.fill(0);var n=r.write(e,1);if(!function(e){for(var t=!0,r=1,i=e.length;r<i;r++)if(e[r]>127){t=!1;break}return t}(r))throw new Error("Custom mime type must be US_ASCII characters only");if(n<1||n>128)throw new Error("Custom mime type must have a strictly positive length that fits on 7 unsigned bits, ie 1-128");return r.writeUInt8(n-1),(0,o.writeUInt24BE)(r,t,n+1),r}function g(e,t){var r=i.allocUnsafe(4);return r.writeUInt8(e|w),(0,o.writeUInt24BE)(r,t,1),r}function m(e){var t,r,i,s,a,o,u,c;return n(this,function(n){switch(n.label){case 0:t=e.byteLength,r=0,n.label=1;case 1:if(!(r<t))return[3,7];if(i=d(e,r),s=i[0],f=a=i[1],r=r+s.byteLength+3+f.byteLength,I(s))return[3,3];if(!(o=p(s)))throw new Error("MIME type cannot be null");return[4,new y(a,o)];case 2:return n.sent(),[3,1];case 3:return u=I(h=s)?h.readInt8()&E:l.WellKnownMimeType.UNPARSEABLE_MIME_TYPE.identifier,c=l.WellKnownMimeType.fromIdentifier(u),l.WellKnownMimeType.UNKNOWN_RESERVED_MIME_TYPE!==c?[3,5]:[4,new v(a,u)];case 4:return n.sent(),[3,1];case 5:return[4,new b(a,c)];case 6:return n.sent(),[3,1];case 7:return[2]}var h,f})}t.CompositeMetadata=u,t.encodeCompositeMetadata=function(e){var t,r,n=i.allocUnsafe(0);try{for(var o=s(e),u=o.next();!u.done;u=o.next()){var d=a(u.value,2),p=d[0],f=d[1],g="function"==typeof f?f():f;n=p instanceof l.WellKnownMimeType||"number"==typeof p||"WellKnownMimeType"===p.constructor.name?h(n,p,g):c(n,p,g)}}catch(e){t={error:e}}finally{try{u&&!u.done&&(r=o.return)&&r.call(o)}finally{if(t)throw t.error}}return n},t.encodeAndAddCustomMetadata=c,t.encodeAndAddWellKnownMetadata=h,t.decodeMimeAndContentBuffersSlices=d,t.decodeMimeTypeFromMimeBuffer=p,t.encodeCustomMetadataHeader=f,t.encodeWellKnownMetadataHeader=g,t.decodeCompositeMetadata=m;var y=function(e,t){this.content=e,this.type=t};t.ExplicitMimeTimeEntry=y;var v=function(){function e(e,t){this.content=e,this.type=t}return Object.defineProperty(e.prototype,"mimeType",{get:function(){},enumerable:!1,configurable:!0}),e}();t.ReservedMimeTypeEntry=v;var b=function(){function e(e,t){this.content=e,this.type=t}return Object.defineProperty(e.prototype,"mimeType",{get:function(){return this.type.string},enumerable:!1,configurable:!0}),e}();function I(e){return 1===e.byteLength}t.WellKnownMimeTypeEntry=b;var w=128,E=127},8287:(e,t,r)=>{"use strict";const i=r(7526),n=r(251),s="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;t.hp=l,t.IS=50;const a=2147483647;function o(e){if(e>a)throw new RangeError('The value "'+e+'" is invalid for option "size"');const t=new Uint8Array(e);return Object.setPrototypeOf(t,l.prototype),t}function l(e,t,r){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return h(e)}return u(e,t,r)}function u(e,t,r){if("string"==typeof e)return function(e,t){if("string"==typeof t&&""!==t||(t="utf8"),!l.isEncoding(t))throw new TypeError("Unknown encoding: "+t);const r=0|g(e,t);let i=o(r);const n=i.write(e,t);return n!==r&&(i=i.slice(0,n)),i}(e,t);if(ArrayBuffer.isView(e))return function(e){if(X(e,Uint8Array)){const t=new Uint8Array(e);return p(t.buffer,t.byteOffset,t.byteLength)}return d(e)}(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(X(e,ArrayBuffer)||e&&X(e.buffer,ArrayBuffer))return p(e,t,r);if("undefined"!=typeof SharedArrayBuffer&&(X(e,SharedArrayBuffer)||e&&X(e.buffer,SharedArrayBuffer)))return p(e,t,r);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');const i=e.valueOf&&e.valueOf();if(null!=i&&i!==e)return l.from(i,t,r);const n=function(e){if(l.isBuffer(e)){const t=0|f(e.length),r=o(t);return 0===r.length||e.copy(r,0,0,t),r}return void 0!==e.length?"number"!=typeof e.length||J(e.length)?o(0):d(e):"Buffer"===e.type&&Array.isArray(e.data)?d(e.data):void 0}(e);if(n)return n;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return l.from(e[Symbol.toPrimitive]("string"),t,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function c(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function h(e){return c(e),o(e<0?0:0|f(e))}function d(e){const t=e.length<0?0:0|f(e.length),r=o(t);for(let i=0;i<t;i+=1)r[i]=255&e[i];return r}function p(e,t,r){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw new RangeError('"length" is outside of buffer bounds');let i;return i=void 0===t&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,t):new Uint8Array(e,t,r),Object.setPrototypeOf(i,l.prototype),i}function f(e){if(e>=a)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a.toString(16)+" bytes");return 0|e}function g(e,t){if(l.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||X(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);const r=e.length,i=arguments.length>2&&!0===arguments[2];if(!i&&0===r)return 0;let n=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return q(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return V(e).length;default:if(n)return i?-1:q(e).length;t=(""+t).toLowerCase(),n=!0}}function m(e,t,r){let i=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return _(this,t,r);case"utf8":case"utf-8":return F(this,t,r);case"ascii":return R(this,t,r);case"latin1":case"binary":return A(this,t,r);case"base64":return M(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O(this,t,r);default:if(i)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),i=!0}}function y(e,t,r){const i=e[t];e[t]=e[r],e[r]=i}function v(e,t,r,i,n){if(0===e.length)return-1;if("string"==typeof r?(i=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),J(r=+r)&&(r=n?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(n)return-1;r=e.length-1}else if(r<0){if(!n)return-1;r=0}if("string"==typeof t&&(t=l.from(t,i)),l.isBuffer(t))return 0===t.length?-1:b(e,t,r,i,n);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?n?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):b(e,[t],r,i,n);throw new TypeError("val must be string, number or Buffer")}function b(e,t,r,i,n){let s,a=1,o=e.length,l=t.length;if(void 0!==i&&("ucs2"===(i=String(i).toLowerCase())||"ucs-2"===i||"utf16le"===i||"utf-16le"===i)){if(e.length<2||t.length<2)return-1;a=2,o/=2,l/=2,r/=2}function u(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(n){let i=-1;for(s=r;s<o;s++)if(u(e,s)===u(t,-1===i?0:s-i)){if(-1===i&&(i=s),s-i+1===l)return i*a}else-1!==i&&(s-=s-i),i=-1}else for(r+l>o&&(r=o-l),s=r;s>=0;s--){let r=!0;for(let i=0;i<l;i++)if(u(e,s+i)!==u(t,i)){r=!1;break}if(r)return s}return-1}function I(e,t,r,i){r=Number(r)||0;const n=e.length-r;i?(i=Number(i))>n&&(i=n):i=n;const s=t.length;let a;for(i>s/2&&(i=s/2),a=0;a<i;++a){const i=parseInt(t.substr(2*a,2),16);if(J(i))return a;e[r+a]=i}return a}function w(e,t,r,i){return Y(q(t,e.length-r),e,r,i)}function E(e,t,r,i){return Y(function(e){const t=[];for(let r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(t),e,r,i)}function k(e,t,r,i){return Y(V(t),e,r,i)}function S(e,t,r,i){return Y(function(e,t){let r,i,n;const s=[];for(let a=0;a<e.length&&!((t-=2)<0);++a)r=e.charCodeAt(a),i=r>>8,n=r%256,s.push(n),s.push(i);return s}(t,e.length-r),e,r,i)}function M(e,t,r){return 0===t&&r===e.length?i.fromByteArray(e):i.fromByteArray(e.slice(t,r))}function F(e,t,r){r=Math.min(e.length,r);const i=[];let n=t;for(;n<r;){const t=e[n];let s=null,a=t>239?4:t>223?3:t>191?2:1;if(n+a<=r){let r,i,o,l;switch(a){case 1:t<128&&(s=t);break;case 2:r=e[n+1],128==(192&r)&&(l=(31&t)<<6|63&r,l>127&&(s=l));break;case 3:r=e[n+1],i=e[n+2],128==(192&r)&&128==(192&i)&&(l=(15&t)<<12|(63&r)<<6|63&i,l>2047&&(l<55296||l>57343)&&(s=l));break;case 4:r=e[n+1],i=e[n+2],o=e[n+3],128==(192&r)&&128==(192&i)&&128==(192&o)&&(l=(15&t)<<18|(63&r)<<12|(63&i)<<6|63&o,l>65535&&l<1114112&&(s=l))}}null===s?(s=65533,a=1):s>65535&&(s-=65536,i.push(s>>>10&1023|55296),s=56320|1023&s),i.push(s),n+=a}return function(e){const t=e.length;if(t<=T)return String.fromCharCode.apply(String,e);let r="",i=0;for(;i<t;)r+=String.fromCharCode.apply(String,e.slice(i,i+=T));return r}(i)}l.TYPED_ARRAY_SUPPORT=function(){try{const e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),l.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(l.prototype,"parent",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.buffer}}),Object.defineProperty(l.prototype,"offset",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.byteOffset}}),l.poolSize=8192,l.from=function(e,t,r){return u(e,t,r)},Object.setPrototypeOf(l.prototype,Uint8Array.prototype),Object.setPrototypeOf(l,Uint8Array),l.alloc=function(e,t,r){return function(e,t,r){return c(e),e<=0?o(e):void 0!==t?"string"==typeof r?o(e).fill(t,r):o(e).fill(t):o(e)}(e,t,r)},l.allocUnsafe=function(e){return h(e)},l.allocUnsafeSlow=function(e){return h(e)},l.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==l.prototype},l.compare=function(e,t){if(X(e,Uint8Array)&&(e=l.from(e,e.offset,e.byteLength)),X(t,Uint8Array)&&(t=l.from(t,t.offset,t.byteLength)),!l.isBuffer(e)||!l.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;let r=e.length,i=t.length;for(let n=0,s=Math.min(r,i);n<s;++n)if(e[n]!==t[n]){r=e[n],i=t[n];break}return r<i?-1:i<r?1:0},l.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},l.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return l.alloc(0);let r;if(void 0===t)for(t=0,r=0;r<e.length;++r)t+=e[r].length;const i=l.allocUnsafe(t);let n=0;for(r=0;r<e.length;++r){let t=e[r];if(X(t,Uint8Array))n+t.length>i.length?(l.isBuffer(t)||(t=l.from(t)),t.copy(i,n)):Uint8Array.prototype.set.call(i,t,n);else{if(!l.isBuffer(t))throw new TypeError('"list" argument must be an Array of Buffers');t.copy(i,n)}n+=t.length}return i},l.byteLength=g,l.prototype._isBuffer=!0,l.prototype.swap16=function(){const e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;t<e;t+=2)y(this,t,t+1);return this},l.prototype.swap32=function(){const e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let t=0;t<e;t+=4)y(this,t,t+3),y(this,t+1,t+2);return this},l.prototype.swap64=function(){const e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let t=0;t<e;t+=8)y(this,t,t+7),y(this,t+1,t+6),y(this,t+2,t+5),y(this,t+3,t+4);return this},l.prototype.toString=function(){const e=this.length;return 0===e?"":0===arguments.length?F(this,0,e):m.apply(this,arguments)},l.prototype.toLocaleString=l.prototype.toString,l.prototype.equals=function(e){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===l.compare(this,e)},l.prototype.inspect=function(){let e="";const r=t.IS;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"},s&&(l.prototype[s]=l.prototype.inspect),l.prototype.compare=function(e,t,r,i,n){if(X(e,Uint8Array)&&(e=l.from(e,e.offset,e.byteLength)),!l.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===i&&(i=0),void 0===n&&(n=this.length),t<0||r>e.length||i<0||n>this.length)throw new RangeError("out of range index");if(i>=n&&t>=r)return 0;if(i>=n)return-1;if(t>=r)return 1;if(this===e)return 0;let s=(n>>>=0)-(i>>>=0),a=(r>>>=0)-(t>>>=0);const o=Math.min(s,a),u=this.slice(i,n),c=e.slice(t,r);for(let e=0;e<o;++e)if(u[e]!==c[e]){s=u[e],a=c[e];break}return s<a?-1:a<s?1:0},l.prototype.includes=function(e,t,r){return-1!==this.indexOf(e,t,r)},l.prototype.indexOf=function(e,t,r){return v(this,e,t,r,!0)},l.prototype.lastIndexOf=function(e,t,r){return v(this,e,t,r,!1)},l.prototype.write=function(e,t,r,i){if(void 0===t)i="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)i=t,r=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(r)?(r>>>=0,void 0===i&&(i="utf8")):(i=r,r=void 0)}const n=this.length-t;if((void 0===r||r>n)&&(r=n),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");let s=!1;for(;;)switch(i){case"hex":return I(this,e,t,r);case"utf8":case"utf-8":return w(this,e,t,r);case"ascii":case"latin1":case"binary":return E(this,e,t,r);case"base64":return k(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,e,t,r);default:if(s)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),s=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const T=4096;function R(e,t,r){let i="";r=Math.min(e.length,r);for(let n=t;n<r;++n)i+=String.fromCharCode(127&e[n]);return i}function A(e,t,r){let i="";r=Math.min(e.length,r);for(let n=t;n<r;++n)i+=String.fromCharCode(e[n]);return i}function _(e,t,r){const i=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>i)&&(r=i);let n="";for(let i=t;i<r;++i)n+=Z[e[i]];return n}function O(e,t,r){const i=e.slice(t,r);let n="";for(let e=0;e<i.length-1;e+=2)n+=String.fromCharCode(i[e]+256*i[e+1]);return n}function C(e,t,r){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}function x(e,t,r,i,n,s){if(!l.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>n||t<s)throw new RangeError('"value" argument is out of bounds');if(r+i>e.length)throw new RangeError("Index out of range")}function N(e,t,r,i,n){z(t,i,n,e,r,7);let s=Number(t&BigInt(4294967295));e[r++]=s,s>>=8,e[r++]=s,s>>=8,e[r++]=s,s>>=8,e[r++]=s;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[r++]=a,a>>=8,e[r++]=a,a>>=8,e[r++]=a,a>>=8,e[r++]=a,r}function D(e,t,r,i,n){z(t,i,n,e,r,7);let s=Number(t&BigInt(4294967295));e[r+7]=s,s>>=8,e[r+6]=s,s>>=8,e[r+5]=s,s>>=8,e[r+4]=s;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[r+3]=a,a>>=8,e[r+2]=a,a>>=8,e[r+1]=a,a>>=8,e[r]=a,r+8}function P(e,t,r,i,n,s){if(r+i>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function L(e,t,r,i,s){return t=+t,r>>>=0,s||P(e,0,r,4),n.write(e,t,r,i,23,4),r+4}function B(e,t,r,i,s){return t=+t,r>>>=0,s||P(e,0,r,8),n.write(e,t,r,i,52,8),r+8}l.prototype.slice=function(e,t){const r=this.length;(e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e);const i=this.subarray(e,t);return Object.setPrototypeOf(i,l.prototype),i},l.prototype.readUintLE=l.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||C(e,t,this.length);let i=this[e],n=1,s=0;for(;++s<t&&(n*=256);)i+=this[e+s]*n;return i},l.prototype.readUintBE=l.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||C(e,t,this.length);let i=this[e+--t],n=1;for(;t>0&&(n*=256);)i+=this[e+--t]*n;return i},l.prototype.readUint8=l.prototype.readUInt8=function(e,t){return e>>>=0,t||C(e,1,this.length),this[e]},l.prototype.readUint16LE=l.prototype.readUInt16LE=function(e,t){return e>>>=0,t||C(e,2,this.length),this[e]|this[e+1]<<8},l.prototype.readUint16BE=l.prototype.readUInt16BE=function(e,t){return e>>>=0,t||C(e,2,this.length),this[e]<<8|this[e+1]},l.prototype.readUint32LE=l.prototype.readUInt32LE=function(e,t){return e>>>=0,t||C(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},l.prototype.readUint32BE=l.prototype.readUInt32BE=function(e,t){return e>>>=0,t||C(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},l.prototype.readBigUInt64LE=Q(function(e){H(e>>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||K(e,this.length-8);const i=t+256*this[++e]+65536*this[++e]+this[++e]*2**24,n=this[++e]+256*this[++e]+65536*this[++e]+r*2**24;return BigInt(i)+(BigInt(n)<<BigInt(32))}),l.prototype.readBigUInt64BE=Q(function(e){H(e>>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||K(e,this.length-8);const i=t*2**24+65536*this[++e]+256*this[++e]+this[++e],n=this[++e]*2**24+65536*this[++e]+256*this[++e]+r;return(BigInt(i)<<BigInt(32))+BigInt(n)}),l.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||C(e,t,this.length);let i=this[e],n=1,s=0;for(;++s<t&&(n*=256);)i+=this[e+s]*n;return n*=128,i>=n&&(i-=Math.pow(2,8*t)),i},l.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||C(e,t,this.length);let i=t,n=1,s=this[e+--i];for(;i>0&&(n*=256);)s+=this[e+--i]*n;return n*=128,s>=n&&(s-=Math.pow(2,8*t)),s},l.prototype.readInt8=function(e,t){return e>>>=0,t||C(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},l.prototype.readInt16LE=function(e,t){e>>>=0,t||C(e,2,this.length);const r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},l.prototype.readInt16BE=function(e,t){e>>>=0,t||C(e,2,this.length);const r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},l.prototype.readInt32LE=function(e,t){return e>>>=0,t||C(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},l.prototype.readInt32BE=function(e,t){return e>>>=0,t||C(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},l.prototype.readBigInt64LE=Q(function(e){H(e>>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||K(e,this.length-8);const i=this[e+4]+256*this[e+5]+65536*this[e+6]+(r<<24);return(BigInt(i)<<BigInt(32))+BigInt(t+256*this[++e]+65536*this[++e]+this[++e]*2**24)}),l.prototype.readBigInt64BE=Q(function(e){H(e>>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||K(e,this.length-8);const i=(t<<24)+65536*this[++e]+256*this[++e]+this[++e];return(BigInt(i)<<BigInt(32))+BigInt(this[++e]*2**24+65536*this[++e]+256*this[++e]+r)}),l.prototype.readFloatLE=function(e,t){return e>>>=0,t||C(e,4,this.length),n.read(this,e,!0,23,4)},l.prototype.readFloatBE=function(e,t){return e>>>=0,t||C(e,4,this.length),n.read(this,e,!1,23,4)},l.prototype.readDoubleLE=function(e,t){return e>>>=0,t||C(e,8,this.length),n.read(this,e,!0,52,8)},l.prototype.readDoubleBE=function(e,t){return e>>>=0,t||C(e,8,this.length),n.read(this,e,!1,52,8)},l.prototype.writeUintLE=l.prototype.writeUIntLE=function(e,t,r,i){e=+e,t>>>=0,r>>>=0,i||x(this,e,t,r,Math.pow(2,8*r)-1,0);let n=1,s=0;for(this[t]=255&e;++s<r&&(n*=256);)this[t+s]=e/n&255;return t+r},l.prototype.writeUintBE=l.prototype.writeUIntBE=function(e,t,r,i){e=+e,t>>>=0,r>>>=0,i||x(this,e,t,r,Math.pow(2,8*r)-1,0);let n=r-1,s=1;for(this[t+n]=255&e;--n>=0&&(s*=256);)this[t+n]=e/s&255;return t+r},l.prototype.writeUint8=l.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||x(this,e,t,1,255,0),this[t]=255&e,t+1},l.prototype.writeUint16LE=l.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||x(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},l.prototype.writeUint16BE=l.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||x(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},l.prototype.writeUint32LE=l.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||x(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},l.prototype.writeUint32BE=l.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||x(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},l.prototype.writeBigUInt64LE=Q(function(e,t=0){return N(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),l.prototype.writeBigUInt64BE=Q(function(e,t=0){return D(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),l.prototype.writeIntLE=function(e,t,r,i){if(e=+e,t>>>=0,!i){const i=Math.pow(2,8*r-1);x(this,e,t,r,i-1,-i)}let n=0,s=1,a=0;for(this[t]=255&e;++n<r&&(s*=256);)e<0&&0===a&&0!==this[t+n-1]&&(a=1),this[t+n]=(e/s|0)-a&255;return t+r},l.prototype.writeIntBE=function(e,t,r,i){if(e=+e,t>>>=0,!i){const i=Math.pow(2,8*r-1);x(this,e,t,r,i-1,-i)}let n=r-1,s=1,a=0;for(this[t+n]=255&e;--n>=0&&(s*=256);)e<0&&0===a&&0!==this[t+n+1]&&(a=1),this[t+n]=(e/s|0)-a&255;return t+r},l.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||x(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},l.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||x(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},l.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||x(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},l.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||x(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},l.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||x(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},l.prototype.writeBigInt64LE=Q(function(e,t=0){return N(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),l.prototype.writeBigInt64BE=Q(function(e,t=0){return D(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),l.prototype.writeFloatLE=function(e,t,r){return L(this,e,t,!0,r)},l.prototype.writeFloatBE=function(e,t,r){return L(this,e,t,!1,r)},l.prototype.writeDoubleLE=function(e,t,r){return B(this,e,t,!0,r)},l.prototype.writeDoubleBE=function(e,t,r){return B(this,e,t,!1,r)},l.prototype.copy=function(e,t,r,i){if(!l.isBuffer(e))throw new TypeError("argument should be a Buffer");if(r||(r=0),i||0===i||(i=this.length),t>=e.length&&(t=e.length),t||(t=0),i>0&&i<r&&(i=r),i===r)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),e.length-t<i-r&&(i=e.length-t+r);const n=i-r;return this===e&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(t,r,i):Uint8Array.prototype.set.call(e,this.subarray(r,i),t),n},l.prototype.fill=function(e,t,r,i){if("string"==typeof e){if("string"==typeof t?(i=t,t=0,r=this.length):"string"==typeof r&&(i=r,r=this.length),void 0!==i&&"string"!=typeof i)throw new TypeError("encoding must be a string");if("string"==typeof i&&!l.isEncoding(i))throw new TypeError("Unknown encoding: "+i);if(1===e.length){const t=e.charCodeAt(0);("utf8"===i&&t<128||"latin1"===i)&&(e=t)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<r)throw new RangeError("Out of range index");if(r<=t)return this;let n;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(n=t;n<r;++n)this[n]=e;else{const s=l.isBuffer(e)?e:l.from(e,i),a=s.length;if(0===a)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(n=0;n<r-t;++n)this[n+t]=s[n%a]}return this};const j={};function U(e,t,r){j[e]=class extends r{constructor(){super(),Object.defineProperty(this,"message",{value:t.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${e}]`,this.stack,delete this.name}get code(){return e}set code(e){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:e,writable:!0})}toString(){return`${this.name} [${e}]: ${this.message}`}}}function W(e){let t="",r=e.length;const i="-"===e[0]?1:0;for(;r>=i+4;r-=3)t=`_${e.slice(r-3,r)}${t}`;return`${e.slice(0,r)}${t}`}function z(e,t,r,i,n,s){if(e>r||e<t){const i="bigint"==typeof t?"n":"";let n;throw n=s>3?0===t||t===BigInt(0)?`>= 0${i} and < 2${i} ** ${8*(s+1)}${i}`:`>= -(2${i} ** ${8*(s+1)-1}${i}) and < 2 ** ${8*(s+1)-1}${i}`:`>= ${t}${i} and <= ${r}${i}`,new j.ERR_OUT_OF_RANGE("value",n,e)}!function(e,t,r){H(t,"offset"),void 0!==e[t]&&void 0!==e[t+r]||K(t,e.length-(r+1))}(i,n,s)}function H(e,t){if("number"!=typeof e)throw new j.ERR_INVALID_ARG_TYPE(t,"number",e)}function K(e,t,r){if(Math.floor(e)!==e)throw H(e,r),new j.ERR_OUT_OF_RANGE(r||"offset","an integer",e);if(t<0)throw new j.ERR_BUFFER_OUT_OF_BOUNDS;throw new j.ERR_OUT_OF_RANGE(r||"offset",`>= ${r?1:0} and <= ${t}`,e)}U("ERR_BUFFER_OUT_OF_BOUNDS",function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),U("ERR_INVALID_ARG_TYPE",function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`},TypeError),U("ERR_OUT_OF_RANGE",function(e,t,r){let i=`The value of "${e}" is out of range.`,n=r;return Number.isInteger(r)&&Math.abs(r)>2**32?n=W(String(r)):"bigint"==typeof r&&(n=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(n=W(n)),n+="n"),i+=` It must be ${t}. Received ${n}`,i},RangeError);const G=/[^+/0-9A-Za-z-_]/g;function q(e,t){let r;t=t||1/0;const i=e.length;let n=null;const s=[];for(let a=0;a<i;++a){if(r=e.charCodeAt(a),r>55295&&r<57344){if(!n){if(r>56319){(t-=3)>-1&&s.push(239,191,189);continue}if(a+1===i){(t-=3)>-1&&s.push(239,191,189);continue}n=r;continue}if(r<56320){(t-=3)>-1&&s.push(239,191,189),n=r;continue}r=65536+(n-55296<<10|r-56320)}else n&&(t-=3)>-1&&s.push(239,191,189);if(n=null,r<128){if((t-=1)<0)break;s.push(r)}else if(r<2048){if((t-=2)<0)break;s.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;s.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;s.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return s}function V(e){return i.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(G,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function Y(e,t,r,i){let n;for(n=0;n<i&&!(n+r>=t.length||n>=e.length);++n)t[n+r]=e[n];return n}function X(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function J(e){return e!=e}const Z=function(){const e="0123456789abcdef",t=new Array(256);for(let r=0;r<16;++r){const i=16*r;for(let n=0;n<16;++n)t[i+n]=e[r]+e[n]}return t}();function Q(e){return"undefined"==typeof BigInt?$:e}function $(){throw new Error("BigInt not supported")}},8454:function(e,t,r){var i,n;e.exports=(n=r(9021),r(7165),n.mode.ECB=((i=n.lib.BlockCipherMode.extend()).Encryptor=i.extend({processBlock:function(e,t){this._cipher.encryptBlock(e,t)}}),i.Decryptor=i.extend({processBlock:function(e,t){this._cipher.decryptBlock(e,t)}}),i),n.mode.ECB)},8706:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WebsocketClientTransport=void 0;var i=r(7225),n=r(9318),s=function(){function e(e){var t;this.url=e.url,this.factory=null!==(t=e.wsCreator)&&void 0!==t?t:function(e){return new WebSocket(e)}}return e.prototype.connect=function(e){var t=this;return new Promise(function(r,s){var a=t.factory(t.url);a.binaryType="arraybuffer";var o=function(){a.removeEventListener("open",o),a.removeEventListener("error",l),r(new n.WebsocketDuplexConnection(a,new i.Deserializer,e))},l=function(e){a.removeEventListener("open",o),a.removeEventListener("error",l),s(e.error)};a.addEventListener("open",o),a.addEventListener("error",l)})},e}();t.WebsocketClientTransport=s},8766:function(e,t){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function i(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)});Object.defineProperty(t,"__esModule",{value:!0}),t.ErrorCodes=t.RSocketError=void 0;var n,s=function(e){function t(t,r){var i=e.call(this,r)||this;return i.code=t,i}return i(t,e),t}(Error);t.RSocketError=s,(n=t.ErrorCodes||(t.ErrorCodes={}))[n.RESERVED=0]="RESERVED",n[n.INVALID_SETUP=1]="INVALID_SETUP",n[n.UNSUPPORTED_SETUP=2]="UNSUPPORTED_SETUP",n[n.REJECTED_SETUP=3]="REJECTED_SETUP",n[n.REJECTED_RESUME=4]="REJECTED_RESUME",n[n.CONNECTION_CLOSE=258]="CONNECTION_CLOSE",n[n.CONNECTION_ERROR=257]="CONNECTION_ERROR",n[n.APPLICATION_ERROR=513]="APPLICATION_ERROR",n[n.REJECTED=514]="REJECTED",n[n.CANCELED=515]="CANCELED",n[n.INVALID=516]="INVALID",n[n.RESERVED_EXTENSION=4294967295]="RESERVED_EXTENSION"},8814:function(e,t,r){"use strict";var i=r(8287).hp,n=this&&this.__generator||function(e,t){var r,i,n,s,a={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return s={next:o(0),throw:o(1),return:o(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function o(s){return function(o){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,i&&(n=2&s[0]?i.return:s[0]?i.throw||((n=i.return)&&n.call(i),0):i.next)&&!(n=n.call(i,s[1])).done)return n;switch(i=0,n&&(s=[2&s[0],n.value]),s[0]){case 0:case 1:n=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,i=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((n=(n=a.trys).length>0&&n[n.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!n||s[1]>n[0]&&s[1]<n[3])){a.label=s[1];break}if(6===s[0]&&a.label<n[1]){a.label=n[1],n=s;break}if(n&&a.label<n[2]){a.label=n[2],a.ops.push(s);break}n[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],i=0}finally{r=n=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,o])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.decodeRoutes=t.encodeRoute=t.encodeRoutes=t.RoutingMetadata=void 0;var s=function(){function e(e){this._buffer=e}return e.prototype.iterator=function(){return o(this._buffer)},e.prototype[Symbol.iterator]=function(){return o(this._buffer)},e}();function a(e){var t=i.from(e,"utf8");if(t.length>255)throw new Error("route length should fit into unsigned byte length but the given one is ".concat(t.length));var r=i.allocUnsafe(1);return r.writeUInt8(t.length),i.concat([r,t])}function o(e){var t,r,i,s;return n(this,function(n){switch(n.label){case 0:t=e.byteLength,r=0,n.label=1;case 1:if(!(r<t))return[3,3];if(i=e.readUInt8(r++),r+i>t)throw new Error("Malformed RouteMetadata. Offset(".concat(r,") + RouteLength(").concat(i,") is greater than TotalLength"));return s=e.toString("utf8",r,r+i),r+=i,[4,s];case 2:return n.sent(),[3,1];case 3:return[2]}})}t.RoutingMetadata=s,t.encodeRoutes=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(e.length<1)throw new Error("routes should be non empty array");return i.concat(e.map(function(e){return a(e)}))},t.encodeRoute=a,t.decodeRoutes=o},8837:function(e,t,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){void 0===i&&(i=r),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,i){void 0===i&&(i=r),e[i]=t[r]}),n=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||i(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),n(r(8279),t),n(r(3034),t),n(r(9890),t),n(r(8814),t),n(r(2632),t)},9021:function(e,t,r){var i;e.exports=(i=i||function(e){var t;if("undefined"!=typeof window&&window.crypto&&(t=window.crypto),"undefined"!=typeof self&&self.crypto&&(t=self.crypto),"undefined"!=typeof globalThis&&globalThis.crypto&&(t=globalThis.crypto),!t&&"undefined"!=typeof window&&window.msCrypto&&(t=window.msCrypto),!t&&void 0!==r.g&&r.g.crypto&&(t=r.g.crypto),!t)try{t=r(477)}catch(e){}var i=function(){if(t){if("function"==typeof t.getRandomValues)try{return t.getRandomValues(new Uint32Array(1))[0]}catch(e){}if("function"==typeof t.randomBytes)try{return t.randomBytes(4).readInt32LE()}catch(e){}}throw new Error("Native crypto module could not be used to get secure random number.")},n=Object.create||function(){function e(){}return function(t){var r;return e.prototype=t,r=new e,e.prototype=null,r}}(),s={},a=s.lib={},o=a.Base={extend:function(e){var t=n(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},l=a.WordArray=o.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=null!=t?t:4*e.length},toString:function(e){return(e||c).stringify(this)},concat:function(e){var t=this.words,r=e.words,i=this.sigBytes,n=e.sigBytes;if(this.clamp(),i%4)for(var s=0;s<n;s++){var a=r[s>>>2]>>>24-s%4*8&255;t[i+s>>>2]|=a<<24-(i+s)%4*8}else for(var o=0;o<n;o+=4)t[i+o>>>2]=r[o>>>2];return this.sigBytes+=n,this},clamp:function(){var t=this.words,r=this.sigBytes;t[r>>>2]&=4294967295<<32-r%4*8,t.length=e.ceil(r/4)},clone:function(){var e=o.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var t=[],r=0;r<e;r+=4)t.push(i());return new l.init(t,e)}}),u=s.enc={},c=u.Hex={stringify:function(e){for(var t=e.words,r=e.sigBytes,i=[],n=0;n<r;n++){var s=t[n>>>2]>>>24-n%4*8&255;i.push((s>>>4).toString(16)),i.push((15&s).toString(16))}return i.join("")},parse:function(e){for(var t=e.length,r=[],i=0;i<t;i+=2)r[i>>>3]|=parseInt(e.substr(i,2),16)<<24-i%8*4;return new l.init(r,t/2)}},h=u.Latin1={stringify:function(e){for(var t=e.words,r=e.sigBytes,i=[],n=0;n<r;n++){var s=t[n>>>2]>>>24-n%4*8&255;i.push(String.fromCharCode(s))}return i.join("")},parse:function(e){for(var t=e.length,r=[],i=0;i<t;i++)r[i>>>2]|=(255&e.charCodeAt(i))<<24-i%4*8;return new l.init(r,t)}},d=u.Utf8={stringify:function(e){try{return decodeURIComponent(escape(h.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return h.parse(unescape(encodeURIComponent(e)))}},p=a.BufferedBlockAlgorithm=o.extend({reset:function(){this._data=new l.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=d.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var r,i=this._data,n=i.words,s=i.sigBytes,a=this.blockSize,o=s/(4*a),u=(o=t?e.ceil(o):e.max((0|o)-this._minBufferSize,0))*a,c=e.min(4*u,s);if(u){for(var h=0;h<u;h+=a)this._doProcessBlock(n,h);r=n.splice(0,u),i.sigBytes-=c}return new l.init(r,c)},clone:function(){var e=o.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0}),f=(a.Hasher=p.extend({cfg:o.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){p.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){return e&&this._append(e),this._doFinalize()},blockSize:16,_createHelper:function(e){return function(t,r){return new e.init(r).finalize(t)}},_createHmacHelper:function(e){return function(t,r){return new f.HMAC.init(e,r).finalize(t)}}}),s.algo={});return s}(Math),i)},9318:function(e,t,r){"use strict";var i,n=r(8287).hp,s=this&&this.__extends||(i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},i(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.WebsocketDuplexConnection=void 0;var a=r(7225),o=function(e){function t(t,r,i){var s=e.call(this)||this;return s.websocket=t,s.deserializer=r,s.handleClosed=function(e){s.close(new Error(e.reason||"WebsocketDuplexConnection: Socket closed unexpectedly."))},s.handleError=function(e){s.close(e.error)},s.handleMessage=function(e){try{var t=n.from(e.data),r=s.deserializer.deserializeFrame(t);s.multiplexerDemultiplexer.handle(r)}catch(e){s.close(e)}},t.addEventListener("close",s.handleClosed),t.addEventListener("error",s.handleError),t.addEventListener("message",s.handleMessage),s.multiplexerDemultiplexer=i(s),s}return s(t,e),Object.defineProperty(t.prototype,"availability",{get:function(){return this.done?0:1},enumerable:!1,configurable:!0}),t.prototype.close=function(t){this.done||(this.websocket.removeEventListener("close",this.handleClosed),this.websocket.removeEventListener("error",this.handleError),this.websocket.removeEventListener("message",this.handleMessage),this.websocket.close(),delete this.websocket),e.prototype.close.call(this,t)},t.prototype.send=function(e){if(!this.done){var t=(0,a.serializeFrame)(e);this.websocket.send(t)}},t}(a.Deferred);t.WebsocketDuplexConnection=o},9506:function(e,t,r){var i,n,s,a,o,l,u,c;e.exports=(c=r(9021),r(5471),r(1025),s=(n=(i=c).lib).Base,a=n.WordArray,l=(o=i.algo).MD5,u=o.EvpKDF=s.extend({cfg:s.extend({keySize:4,hasher:l,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var r,i=this.cfg,n=i.hasher.create(),s=a.create(),o=s.words,l=i.keySize,u=i.iterations;o.length<l;){r&&n.update(r),r=n.update(e).finalize(t),n.reset();for(var c=1;c<u;c++)r=n.finalize(r),n.reset();s.concat(r)}return s.sigBytes=4*l,s}}),i.EvpKDF=function(e,t,r){return u.create(r).compute(e,t)},c.EvpKDF)},9557:function(e,t,r){var i,n,s,a,o,l,u,c;e.exports=(c=r(9021),r(3240),r(1380),n=(i=c).x64,s=n.Word,a=n.WordArray,o=i.algo,l=o.SHA512,u=o.SHA384=l.extend({_doReset:function(){this._hash=new a.init([new s.init(3418070365,3238371032),new s.init(1654270250,914150663),new s.init(2438529370,812702999),new s.init(355462360,4144912697),new s.init(1731405415,4290775857),new s.init(2394180231,1750603025),new s.init(3675008525,1694076839),new s.init(1203062813,3204075428)])},_doFinalize:function(){var e=l._doFinalize.call(this);return e.sigBytes-=16,e}}),i.SHA384=l._createHelper(u),i.HmacSHA384=l._createHmacHelper(u),c.SHA384)},9890:(e,t,r)=>{"use strict";var i=r(8287).hp;Object.defineProperty(t,"__esModule",{value:!0}),t.decodeSimpleAuthPayload=t.decodeAuthMetadata=t.encodeBearerAuthMetadata=t.encodeSimpleAuthMetadata=t.encodeCustomAuthMetadata=t.encodeWellKnownAuthMetadata=void 0;var n=r(2632);t.encodeWellKnownAuthMetadata=function(e,t){if(e===n.WellKnownAuthType.UNPARSEABLE_AUTH_TYPE||e===n.WellKnownAuthType.UNKNOWN_RESERVED_AUTH_TYPE)throw new Error("Illegal WellKnownAuthType[".concat(e.toString(),"]. Only allowed AuthType should be used"));var r=i.allocUnsafe(1);return r.writeUInt8(128|e.identifier),i.concat([r,t])},t.encodeCustomAuthMetadata=function(e,t){var r=i.from(e);if(r.byteLength!==e.length)throw new Error("Custom auth type must be US_ASCII characters only");if(r.byteLength<1||r.byteLength>128)throw new Error("Custom auth type must have a strictly positive length that fits on 7 unsigned bits, ie 1-128");var n=i.allocUnsafe(1+r.byteLength);return n.writeUInt8(r.byteLength-1),n.write(e,1),i.concat([n,t])},t.encodeSimpleAuthMetadata=function(e,t){var r=i.from(e),s=i.from(t),a=r.byteLength;if(a>65535)throw new Error("Username should be shorter than or equal to 65535 bytes length in UTF-8 encoding but the given was ".concat(a));var o=i.allocUnsafe(3);return o.writeUInt8(128|n.WellKnownAuthType.SIMPLE.identifier),o.writeUInt16BE(a,1),i.concat([o,r,s])},t.encodeBearerAuthMetadata=function(e){var t=i.from(e),r=i.allocUnsafe(1);return r.writeUInt8(128|n.WellKnownAuthType.BEARER.identifier),i.concat([r,t])},t.decodeAuthMetadata=function(e){if(e.byteLength<1)throw new Error("Unable to decode Auth metadata. Not enough readable bytes");var t=e.readUInt8(),r=127&t;if(r!==t){var i=n.WellKnownAuthType.fromIdentifier(r);return{payload:e.slice(1),type:{identifier:i.identifier,string:i.string}}}var s=t+1;if(e.byteLength<s+1)throw new Error("Unable to decode custom Auth type. Malformed length or auth type string");var a=e.toString("utf8",1,1+s);return{payload:e.slice(s+1),type:{identifier:n.WellKnownAuthType.UNPARSEABLE_AUTH_TYPE.identifier,string:a}}},t.decodeSimpleAuthPayload=function(e){if(e.byteLength<2)throw new Error("Unable to decode Simple Auth Payload. Not enough readable bytes");var t=e.readUInt16BE();if(e.byteLength<t+2)throw new Error("Unable to decode Simple Auth Payload. Not enough readable bytes");var r=e.slice(2,2+t);return{password:e.slice(2+t),username:r}}},9927:function(e,t,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){void 0===i&&(i=r),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,i){void 0===i&&(i=r),e[i]=t[r]}),n=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||i(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),n(r(8706),t)}},t={};function r(i){var n=t[i];if(void 0!==n)return n.exports;var s=t[i]={exports:{}};return e[i].call(s.exports,s,s.exports,r),s.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var i in t)r.o(t,i)&&!r.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return(()=>{"use strict";r.d(i,{default:()=>Hi});var e={};r.r(e),r.d(e,{hasBrowserEnv:()=>Te,hasStandardBrowserEnv:()=>Ae,hasStandardBrowserWebWorkerEnv:()=>_e,navigator:()=>Re,origin:()=>Oe});var t,n,s,a,o,l=r(7225),u=r(9927),c=r(8837);class h{messageId="";joinId=0;fromId="";fromName="";destId="";destName="";cite="";type="";title="";subtitle="";text="";secret="";thumb="";host="";url="";lng="";lat="";size=0;length=0;label=null;tag="";sent="";deviceKey="";deviceTag="";revoke=!1;talk=n.default;citeData=null;sentDate=null;hintList=null;notifyList=null;quietlyList=null}!function(e){e.tip="tip",e.notice="notice",e.action="action",e.notify="notify",e.quietly="quietly"}(t||(t={})),function(e){e[e.default=1]="default",e[e.group=2]="group",e[e.team=3]="team"}(n||(n={}));class d{contactId=0;userId="";joinId=0;nickname="";username="";avatar="";subgroup="";status=a.done;isGroup=!1;joinTime="";isMuted=!1;noise=1;sort=0}!function(e){e[e.normal=1]="normal",e[e.not_notify=2]="not_notify",e[e.reject=0]="reject"}(s||(s={})),function(e){e.done="",e.offline="offline",e.online="online",e.online_busy="online-busy",e.online_leave="online-leave"}(a||(a={}));class p{memberId=0;joinId=0;userId="";nickname="";username="";avatar="";role="";status="";joinTime="";isMuted=!1}class f{name="";region="";host="";port="";max=0;type=!0;current=0}class g{deviceId="";deviceKey="";deviceTag="";userId="";joinId=0;status="";region="";gateway=""}class m{groupId=0;joinId=0;userId="";groupName="";groupNumber="";avatar="";members=void 0;depict="";isGroup=!1;isTalk=!1;isMute=!1;isApproval=!0;isInviteApply=!0;isInvite=!0;isRevoke=!0;maxMember=200;ask="";remark="";type=o.protected;isLive=!1}function y(e,t){return function(){return e.apply(t,arguments)}}!function(e){e[e.public=1]="public",e[e.protected=2]="protected",e[e.private=3]="private"}(o||(o={}));const{toString:v}=Object.prototype,{getPrototypeOf:b}=Object,{iterator:I,toStringTag:w}=Symbol,E=(k=Object.create(null),e=>{const t=v.call(e);return k[t]||(k[t]=t.slice(8,-1).toLowerCase())});var k;const S=e=>(e=e.toLowerCase(),t=>E(t)===e),M=e=>t=>typeof t===e,{isArray:F}=Array,T=M("undefined");function R(e){return null!==e&&!T(e)&&null!==e.constructor&&!T(e.constructor)&&O(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const A=S("ArrayBuffer"),_=M("string"),O=M("function"),C=M("number"),x=e=>null!==e&&"object"==typeof e,N=e=>{if("object"!==E(e))return!1;const t=b(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||w in e||I in e)},D=S("Date"),P=S("File"),L=S("Blob"),B=S("FileList"),j=S("URLSearchParams"),[U,W,z,H]=["ReadableStream","Request","Response","Headers"].map(S);function K(e,t,{allOwnKeys:r=!1}={}){if(null==e)return;let i,n;if("object"!=typeof e&&(e=[e]),F(e))for(i=0,n=e.length;i<n;i++)t.call(null,e[i],i,e);else{if(R(e))return;const n=r?Object.getOwnPropertyNames(e):Object.keys(e),s=n.length;let a;for(i=0;i<s;i++)a=n[i],t.call(null,e[a],a,e)}}function G(e,t){if(R(e))return null;t=t.toLowerCase();const r=Object.keys(e);let i,n=r.length;for(;n-- >0;)if(i=r[n],t===i.toLowerCase())return i;return null}const q="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,V=e=>!T(e)&&e!==q,Y=(X="undefined"!=typeof Uint8Array&&b(Uint8Array),e=>X&&e instanceof X);var X;const J=S("HTMLFormElement"),Z=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),Q=S("RegExp"),$=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),i={};K(r,(r,n)=>{let s;!1!==(s=t(r,n,e))&&(i[n]=s||r)}),Object.defineProperties(e,i)},ee=S("AsyncFunction"),te=(re="function"==typeof setImmediate,ie=O(q.postMessage),re?setImmediate:ie?(ne=`axios@${Math.random()}`,se=[],q.addEventListener("message",({source:e,data:t})=>{e===q&&t===ne&&se.length&&se.shift()()},!1),e=>{se.push(e),q.postMessage(ne,"*")}):e=>setTimeout(e));var re,ie,ne,se;const ae="undefined"!=typeof queueMicrotask?queueMicrotask.bind(q):"undefined"!=typeof process&&process.nextTick||te,oe={isArray:F,isArrayBuffer:A,isBuffer:R,isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||O(e.append)&&("formdata"===(t=E(e))||"object"===t&&O(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&A(e.buffer),t},isString:_,isNumber:C,isBoolean:e=>!0===e||!1===e,isObject:x,isPlainObject:N,isEmptyObject:e=>{if(!x(e)||R(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}},isReadableStream:U,isRequest:W,isResponse:z,isHeaders:H,isUndefined:T,isDate:D,isFile:P,isBlob:L,isRegExp:Q,isFunction:O,isStream:e=>x(e)&&O(e.pipe),isURLSearchParams:j,isTypedArray:Y,isFileList:B,forEach:K,merge:function e(){const{caseless:t,skipUndefined:r}=V(this)&&this||{},i={},n=(n,s)=>{const a=t&&G(i,s)||s;N(i[a])&&N(n)?i[a]=e(i[a],n):N(n)?i[a]=e({},n):F(n)?i[a]=n.slice():r&&T(n)||(i[a]=n)};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&K(arguments[e],n);return i},extend:(e,t,r,{allOwnKeys:i}={})=>(K(t,(t,i)=>{r&&O(t)?e[i]=y(t,r):e[i]=t},{allOwnKeys:i}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,r,i)=>{e.prototype=Object.create(t.prototype,i),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},toFlatObject:(e,t,r,i)=>{let n,s,a;const o={};if(t=t||{},null==e)return t;do{for(n=Object.getOwnPropertyNames(e),s=n.length;s-- >0;)a=n[s],i&&!i(a,e,t)||o[a]||(t[a]=e[a],o[a]=!0);e=!1!==r&&b(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},kindOf:E,kindOfTest:S,endsWith:(e,t,r)=>{e=String(e),(void 0===r||r>e.length)&&(r=e.length),r-=t.length;const i=e.indexOf(t,r);return-1!==i&&i===r},toArray:e=>{if(!e)return null;if(F(e))return e;let t=e.length;if(!C(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},forEachEntry:(e,t)=>{const r=(e&&e[I]).call(e);let i;for(;(i=r.next())&&!i.done;){const r=i.value;t.call(e,r[0],r[1])}},matchAll:(e,t)=>{let r;const i=[];for(;null!==(r=e.exec(t));)i.push(r);return i},isHTMLForm:J,hasOwnProperty:Z,hasOwnProp:Z,reduceDescriptors:$,freezeMethods:e=>{$(e,(t,r)=>{if(O(e)&&-1!==["arguments","caller","callee"].indexOf(r))return!1;const i=e[r];O(i)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")}))})},toObjectSet:(e,t)=>{const r={},i=e=>{e.forEach(e=>{r[e]=!0})};return F(e)?i(e):i(String(e).split(t)),r},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,r){return t.toUpperCase()+r}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:G,global:q,isContextDefined:V,isSpecCompliantForm:function(e){return!!(e&&O(e.append)&&"FormData"===e[w]&&e[I])},toJSONObject:e=>{const t=new Array(10),r=(e,i)=>{if(x(e)){if(t.indexOf(e)>=0)return;if(R(e))return e;if(!("toJSON"in e)){t[i]=e;const n=F(e)?[]:{};return K(e,(e,t)=>{const s=r(e,i+1);!T(s)&&(n[t]=s)}),t[i]=void 0,n}}return e};return r(e,0)},isAsyncFn:ee,isThenable:e=>e&&(x(e)||O(e))&&O(e.then)&&O(e.catch),setImmediate:te,asap:ae,isIterable:e=>null!=e&&O(e[I])};function le(e,t,r,i,n){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),i&&(this.request=i),n&&(this.response=n,this.status=n.status?n.status:null)}oe.inherits(le,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:oe.toJSONObject(this.config),code:this.code,status:this.status}}});const ue=le.prototype,ce={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{ce[e]={value:e}}),Object.defineProperties(le,ce),Object.defineProperty(ue,"isAxiosError",{value:!0}),le.from=(e,t,r,i,n,s)=>{const a=Object.create(ue);oe.toFlatObject(e,a,function(e){return e!==Error.prototype},e=>"isAxiosError"!==e);const o=e&&e.message?e.message:"Error",l=null==t&&e?e.code:t;return le.call(a,o,l,r,i,n),e&&null==a.cause&&Object.defineProperty(a,"cause",{value:e,configurable:!0}),a.name=e&&e.name||"Error",s&&Object.assign(a,s),a};const he=le;var de=r(8287).hp;function pe(e){return oe.isPlainObject(e)||oe.isArray(e)}function fe(e){return oe.endsWith(e,"[]")?e.slice(0,-2):e}function ge(e,t,r){return e?e.concat(t).map(function(e,t){return e=fe(e),!r&&t?"["+e+"]":e}).join(r?".":""):t}const me=oe.toFlatObject(oe,{},null,function(e){return/^is[A-Z]/.test(e)}),ye=function(e,t,r){if(!oe.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const i=(r=oe.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!oe.isUndefined(t[e])})).metaTokens,n=r.visitor||u,s=r.dots,a=r.indexes,o=(r.Blob||"undefined"!=typeof Blob&&Blob)&&oe.isSpecCompliantForm(t);if(!oe.isFunction(n))throw new TypeError("visitor must be a function");function l(e){if(null===e)return"";if(oe.isDate(e))return e.toISOString();if(oe.isBoolean(e))return e.toString();if(!o&&oe.isBlob(e))throw new he("Blob is not supported. Use a Buffer instead.");return oe.isArrayBuffer(e)||oe.isTypedArray(e)?o&&"function"==typeof Blob?new Blob([e]):de.from(e):e}function u(e,r,n){let o=e;if(e&&!n&&"object"==typeof e)if(oe.endsWith(r,"{}"))r=i?r:r.slice(0,-2),e=JSON.stringify(e);else if(oe.isArray(e)&&function(e){return oe.isArray(e)&&!e.some(pe)}(e)||(oe.isFileList(e)||oe.endsWith(r,"[]"))&&(o=oe.toArray(e)))return r=fe(r),o.forEach(function(e,i){!oe.isUndefined(e)&&null!==e&&t.append(!0===a?ge([r],i,s):null===a?r:r+"[]",l(e))}),!1;return!!pe(e)||(t.append(ge(n,r,s),l(e)),!1)}const c=[],h=Object.assign(me,{defaultVisitor:u,convertValue:l,isVisitable:pe});if(!oe.isObject(e))throw new TypeError("data must be an object");return function e(r,i){if(!oe.isUndefined(r)){if(-1!==c.indexOf(r))throw Error("Circular reference detected in "+i.join("."));c.push(r),oe.forEach(r,function(r,s){!0===(!(oe.isUndefined(r)||null===r)&&n.call(t,r,oe.isString(s)?s.trim():s,i,h))&&e(r,i?i.concat(s):[s])}),c.pop()}}(e),t};function ve(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function be(e,t){this._pairs=[],e&&ye(e,this,t)}const Ie=be.prototype;Ie.append=function(e,t){this._pairs.push([e,t])},Ie.toString=function(e){const t=e?function(t){return e.call(this,t,ve)}:ve;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};const we=be;function Ee(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function ke(e,t,r){if(!t)return e;const i=r&&r.encode||Ee;oe.isFunction(r)&&(r={serialize:r});const n=r&&r.serialize;let s;if(s=n?n(t,r):oe.isURLSearchParams(t)?t.toString():new we(t,r).toString(i),s){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+s}return e}const Se=class{constructor(){this.handlers=[]}use(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){oe.forEach(this.handlers,function(t){null!==t&&e(t)})}},Me={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Fe={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:we,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},Te="undefined"!=typeof window&&"undefined"!=typeof document,Re="object"==typeof navigator&&navigator||void 0,Ae=Te&&(!Re||["ReactNative","NativeScript","NS"].indexOf(Re.product)<0),_e="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,Oe=Te&&window.location.href||"http://localhost",Ce={...e,...Fe},xe=function(e){function t(e,r,i,n){let s=e[n++];if("__proto__"===s)return!0;const a=Number.isFinite(+s),o=n>=e.length;return s=!s&&oe.isArray(i)?i.length:s,o?(oe.hasOwnProp(i,s)?i[s]=[i[s],r]:i[s]=r,!a):(i[s]&&oe.isObject(i[s])||(i[s]=[]),t(e,r,i[s],n)&&oe.isArray(i[s])&&(i[s]=function(e){const t={},r=Object.keys(e);let i;const n=r.length;let s;for(i=0;i<n;i++)s=r[i],t[s]=e[s];return t}(i[s])),!a)}if(oe.isFormData(e)&&oe.isFunction(e.entries)){const r={};return oe.forEachEntry(e,(e,i)=>{t(function(e){return oe.matchAll(/\w+|\[(\w*)]/g,e).map(e=>"[]"===e[0]?"":e[1]||e[0])}(e),i,r,0)}),r}return null},Ne={transitional:Me,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const r=t.getContentType()||"",i=r.indexOf("application/json")>-1,n=oe.isObject(e);if(n&&oe.isHTMLForm(e)&&(e=new FormData(e)),oe.isFormData(e))return i?JSON.stringify(xe(e)):e;if(oe.isArrayBuffer(e)||oe.isBuffer(e)||oe.isStream(e)||oe.isFile(e)||oe.isBlob(e)||oe.isReadableStream(e))return e;if(oe.isArrayBufferView(e))return e.buffer;if(oe.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let s;if(n){if(r.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return ye(e,new Ce.classes.URLSearchParams,{visitor:function(e,t,r,i){return Ce.isNode&&oe.isBuffer(e)?(this.append(t,e.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)},...t})}(e,this.formSerializer).toString();if((s=oe.isFileList(e))||r.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return ye(s?{"files[]":e}:e,t&&new t,this.formSerializer)}}return n||i?(t.setContentType("application/json",!1),function(e){if(oe.isString(e))try{return(0,JSON.parse)(e),oe.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||Ne.transitional,r=t&&t.forcedJSONParsing,i="json"===this.responseType;if(oe.isResponse(e)||oe.isReadableStream(e))return e;if(e&&oe.isString(e)&&(r&&!this.responseType||i)){const r=!(t&&t.silentJSONParsing)&&i;try{return JSON.parse(e,this.parseReviver)}catch(e){if(r){if("SyntaxError"===e.name)throw he.from(e,he.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ce.classes.FormData,Blob:Ce.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};oe.forEach(["delete","get","head","post","put","patch"],e=>{Ne.headers[e]={}});const De=Ne,Pe=oe.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Le=Symbol("internals");function Be(e){return e&&String(e).trim().toLowerCase()}function je(e){return!1===e||null==e?e:oe.isArray(e)?e.map(je):String(e)}function Ue(e,t,r,i,n){return oe.isFunction(i)?i.call(this,t,r):(n&&(t=r),oe.isString(t)?oe.isString(i)?-1!==t.indexOf(i):oe.isRegExp(i)?i.test(t):void 0:void 0)}class We{constructor(e){e&&this.set(e)}set(e,t,r){const i=this;function n(e,t,r){const n=Be(t);if(!n)throw new Error("header name must be a non-empty string");const s=oe.findKey(i,n);(!s||void 0===i[s]||!0===r||void 0===r&&!1!==i[s])&&(i[s||t]=je(e))}const s=(e,t)=>oe.forEach(e,(e,r)=>n(e,r,t));if(oe.isPlainObject(e)||e instanceof this.constructor)s(e,t);else if(oe.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))s((e=>{const t={};let r,i,n;return e&&e.split("\n").forEach(function(e){n=e.indexOf(":"),r=e.substring(0,n).trim().toLowerCase(),i=e.substring(n+1).trim(),!r||t[r]&&Pe[r]||("set-cookie"===r?t[r]?t[r].push(i):t[r]=[i]:t[r]=t[r]?t[r]+", "+i:i)}),t})(e),t);else if(oe.isObject(e)&&oe.isIterable(e)){let r,i,n={};for(const t of e){if(!oe.isArray(t))throw TypeError("Object iterator must return a key-value pair");n[i=t[0]]=(r=n[i])?oe.isArray(r)?[...r,t[1]]:[r,t[1]]:t[1]}s(n,t)}else null!=e&&n(t,e,r);return this}get(e,t){if(e=Be(e)){const r=oe.findKey(this,e);if(r){const e=this[r];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let i;for(;i=r.exec(e);)t[i[1]]=i[2];return t}(e);if(oe.isFunction(t))return t.call(this,e,r);if(oe.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=Be(e)){const r=oe.findKey(this,e);return!(!r||void 0===this[r]||t&&!Ue(0,this[r],r,t))}return!1}delete(e,t){const r=this;let i=!1;function n(e){if(e=Be(e)){const n=oe.findKey(r,e);!n||t&&!Ue(0,r[n],n,t)||(delete r[n],i=!0)}}return oe.isArray(e)?e.forEach(n):n(e),i}clear(e){const t=Object.keys(this);let r=t.length,i=!1;for(;r--;){const n=t[r];e&&!Ue(0,this[n],n,e,!0)||(delete this[n],i=!0)}return i}normalize(e){const t=this,r={};return oe.forEach(this,(i,n)=>{const s=oe.findKey(r,n);if(s)return t[s]=je(i),void delete t[n];const a=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,r)=>t.toUpperCase()+r)}(n):String(n).trim();a!==n&&delete t[n],t[a]=je(i),r[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return oe.forEach(this,(r,i)=>{null!=r&&!1!==r&&(t[i]=e&&oe.isArray(r)?r.join(", "):r)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const r=new this(e);return t.forEach(e=>r.set(e)),r}static accessor(e){const t=(this[Le]=this[Le]={accessors:{}}).accessors,r=this.prototype;function i(e){const i=Be(e);t[i]||(function(e,t){const r=oe.toCamelCase(" "+t);["get","set","has"].forEach(i=>{Object.defineProperty(e,i+r,{value:function(e,r,n){return this[i].call(this,t,e,r,n)},configurable:!0})})}(r,e),t[i]=!0)}return oe.isArray(e)?e.forEach(i):i(e),this}}We.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),oe.reduceDescriptors(We.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[r]=e}}}),oe.freezeMethods(We);const ze=We;function He(e,t){const r=this||De,i=t||r,n=ze.from(i.headers);let s=i.data;return oe.forEach(e,function(e){s=e.call(r,s,n.normalize(),t?t.status:void 0)}),n.normalize(),s}function Ke(e){return!(!e||!e.__CANCEL__)}function Ge(e,t,r){he.call(this,null==e?"canceled":e,he.ERR_CANCELED,t,r),this.name="CanceledError"}oe.inherits(Ge,he,{__CANCEL__:!0});const qe=Ge;function Ve(e,t,r){const i=r.config.validateStatus;r.status&&i&&!i(r.status)?t(new he("Request failed with status code "+r.status,[he.ERR_BAD_REQUEST,he.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r)):e(r)}const Ye=(e,t,r=3)=>{let i=0;const n=function(e,t){e=e||10;const r=new Array(e),i=new Array(e);let n,s=0,a=0;return t=void 0!==t?t:1e3,function(o){const l=Date.now(),u=i[a];n||(n=l),r[s]=o,i[s]=l;let c=a,h=0;for(;c!==s;)h+=r[c++],c%=e;if(s=(s+1)%e,s===a&&(a=(a+1)%e),l-n<t)return;const d=u&&l-u;return d?Math.round(1e3*h/d):void 0}}(50,250);return function(e,t){let r,i,n=0,s=1e3/t;const a=(t,s=Date.now())=>{n=s,r=null,i&&(clearTimeout(i),i=null),e(...t)};return[(...e)=>{const t=Date.now(),o=t-n;o>=s?a(e,t):(r=e,i||(i=setTimeout(()=>{i=null,a(r)},s-o)))},()=>r&&a(r)]}(r=>{const s=r.loaded,a=r.lengthComputable?r.total:void 0,o=s-i,l=n(o);i=s,e({loaded:s,total:a,progress:a?s/a:void 0,bytes:o,rate:l||void 0,estimated:l&&a&&s<=a?(a-s)/l:void 0,event:r,lengthComputable:null!=a,[t?"download":"upload"]:!0})},r)},Xe=(e,t)=>{const r=null!=e;return[i=>t[0]({lengthComputable:r,total:e,loaded:i}),t[1]]},Je=e=>(...t)=>oe.asap(()=>e(...t)),Ze=Ce.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,Ce.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(Ce.origin),Ce.navigator&&/(msie|trident)/i.test(Ce.navigator.userAgent)):()=>!0,Qe=Ce.hasStandardBrowserEnv?{write(e,t,r,i,n,s){const a=[e+"="+encodeURIComponent(t)];oe.isNumber(r)&&a.push("expires="+new Date(r).toGMTString()),oe.isString(i)&&a.push("path="+i),oe.isString(n)&&a.push("domain="+n),!0===s&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function $e(e,t,r){let i=!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);return e&&(i||0==r)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const et=e=>e instanceof ze?{...e}:e;function tt(e,t){t=t||{};const r={};function i(e,t,r,i){return oe.isPlainObject(e)&&oe.isPlainObject(t)?oe.merge.call({caseless:i},e,t):oe.isPlainObject(t)?oe.merge({},t):oe.isArray(t)?t.slice():t}function n(e,t,r,n){return oe.isUndefined(t)?oe.isUndefined(e)?void 0:i(void 0,e,0,n):i(e,t,0,n)}function s(e,t){if(!oe.isUndefined(t))return i(void 0,t)}function a(e,t){return oe.isUndefined(t)?oe.isUndefined(e)?void 0:i(void 0,e):i(void 0,t)}function o(r,n,s){return s in t?i(r,n):s in e?i(void 0,r):void 0}const l={url:s,method:s,data:s,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:o,headers:(e,t,r)=>n(et(e),et(t),0,!0)};return oe.forEach(Object.keys({...e,...t}),function(i){const s=l[i]||n,a=s(e[i],t[i],i);oe.isUndefined(a)&&s!==o||(r[i]=a)}),r}const rt=e=>{const t=tt({},e);let{data:r,withXSRFToken:i,xsrfHeaderName:n,xsrfCookieName:s,headers:a,auth:o}=t;if(t.headers=a=ze.from(a),t.url=ke($e(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),o&&a.set("Authorization","Basic "+btoa((o.username||"")+":"+(o.password?unescape(encodeURIComponent(o.password)):""))),oe.isFormData(r))if(Ce.hasStandardBrowserEnv||Ce.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if(oe.isFunction(r.getHeaders)){const e=r.getHeaders(),t=["content-type","content-length"];Object.entries(e).forEach(([e,r])=>{t.includes(e.toLowerCase())&&a.set(e,r)})}if(Ce.hasStandardBrowserEnv&&(i&&oe.isFunction(i)&&(i=i(t)),i||!1!==i&&Ze(t.url))){const e=n&&s&&Qe.read(s);e&&a.set(n,e)}return t},it="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise(function(t,r){const i=rt(e);let n=i.data;const s=ze.from(i.headers).normalize();let a,o,l,u,c,{responseType:h,onUploadProgress:d,onDownloadProgress:p}=i;function f(){u&&u(),c&&c(),i.cancelToken&&i.cancelToken.unsubscribe(a),i.signal&&i.signal.removeEventListener("abort",a)}let g=new XMLHttpRequest;function m(){if(!g)return;const i=ze.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders());Ve(function(e){t(e),f()},function(e){r(e),f()},{data:h&&"text"!==h&&"json"!==h?g.response:g.responseText,status:g.status,statusText:g.statusText,headers:i,config:e,request:g}),g=null}g.open(i.method.toUpperCase(),i.url,!0),g.timeout=i.timeout,"onloadend"in g?g.onloadend=m:g.onreadystatechange=function(){g&&4===g.readyState&&(0!==g.status||g.responseURL&&0===g.responseURL.indexOf("file:"))&&setTimeout(m)},g.onabort=function(){g&&(r(new he("Request aborted",he.ECONNABORTED,e,g)),g=null)},g.onerror=function(t){const i=t&&t.message?t.message:"Network Error",n=new he(i,he.ERR_NETWORK,e,g);n.event=t||null,r(n),g=null},g.ontimeout=function(){let t=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const n=i.transitional||Me;i.timeoutErrorMessage&&(t=i.timeoutErrorMessage),r(new he(t,n.clarifyTimeoutError?he.ETIMEDOUT:he.ECONNABORTED,e,g)),g=null},void 0===n&&s.setContentType(null),"setRequestHeader"in g&&oe.forEach(s.toJSON(),function(e,t){g.setRequestHeader(t,e)}),oe.isUndefined(i.withCredentials)||(g.withCredentials=!!i.withCredentials),h&&"json"!==h&&(g.responseType=i.responseType),p&&([l,c]=Ye(p,!0),g.addEventListener("progress",l)),d&&g.upload&&([o,u]=Ye(d),g.upload.addEventListener("progress",o),g.upload.addEventListener("loadend",u)),(i.cancelToken||i.signal)&&(a=t=>{g&&(r(!t||t.type?new qe(null,e,g):t),g.abort(),g=null)},i.cancelToken&&i.cancelToken.subscribe(a),i.signal&&(i.signal.aborted?a():i.signal.addEventListener("abort",a)));const y=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(i.url);y&&-1===Ce.protocols.indexOf(y)?r(new he("Unsupported protocol "+y+":",he.ERR_BAD_REQUEST,e)):g.send(n||null)})},nt=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let r,i=new AbortController;const n=function(e){if(!r){r=!0,a();const t=e instanceof Error?e:this.reason;i.abort(t instanceof he?t:new qe(t instanceof Error?t.message:t))}};let s=t&&setTimeout(()=>{s=null,n(new he(`timeout ${t} of ms exceeded`,he.ETIMEDOUT))},t);const a=()=>{e&&(s&&clearTimeout(s),s=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(n):e.removeEventListener("abort",n)}),e=null)};e.forEach(e=>e.addEventListener("abort",n));const{signal:o}=i;return o.unsubscribe=()=>oe.asap(a),o}},st=function*(e,t){let r=e.byteLength;if(!t||r<t)return void(yield e);let i,n=0;for(;n<r;)i=n+t,yield e.slice(n,i),n=i},at=(e,t,r,i)=>{const n=async function*(e,t){for await(const r of async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:r}=await t.read();if(e)break;yield r}}finally{await t.cancel()}}(e))yield*st(r,t)}(e,t);let s,a=0,o=e=>{s||(s=!0,i&&i(e))};return new ReadableStream({async pull(e){try{const{done:t,value:i}=await n.next();if(t)return o(),void e.close();let s=i.byteLength;if(r){let e=a+=s;r(e)}e.enqueue(new Uint8Array(i))}catch(e){throw o(e),e}},cancel:e=>(o(e),n.return())},{highWaterMark:2})},{isFunction:ot}=oe,lt=(({Request:e,Response:t})=>({Request:e,Response:t}))(oe.global),{ReadableStream:ut,TextEncoder:ct}=oe.global,ht=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},dt=e=>{e=oe.merge.call({skipUndefined:!0},lt,e);const{fetch:t,Request:r,Response:i}=e,n=t?ot(t):"function"==typeof fetch,s=ot(r),a=ot(i);if(!n)return!1;const o=n&&ot(ut),l=n&&("function"==typeof ct?(u=new ct,e=>u.encode(e)):async e=>new Uint8Array(await new r(e).arrayBuffer()));var u;const c=s&&o&&ht(()=>{let e=!1;const t=new r(Ce.origin,{body:new ut,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),h=a&&o&&ht(()=>oe.isReadableStream(new i("").body)),d={stream:h&&(e=>e.body)};n&&["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!d[e]&&(d[e]=(t,r)=>{let i=t&&t[e];if(i)return i.call(t);throw new he(`Response type '${e}' is not supported`,he.ERR_NOT_SUPPORT,r)})});return async e=>{let{url:n,method:a,data:o,signal:u,cancelToken:p,timeout:f,onDownloadProgress:g,onUploadProgress:m,responseType:y,headers:v,withCredentials:b="same-origin",fetchOptions:I}=rt(e),w=t||fetch;y=y?(y+"").toLowerCase():"text";let E=nt([u,p&&p.toAbortSignal()],f),k=null;const S=E&&E.unsubscribe&&(()=>{E.unsubscribe()});let M;try{if(m&&c&&"get"!==a&&"head"!==a&&0!==(M=await(async(e,t)=>{const i=oe.toFiniteNumber(e.getContentLength());return null==i?(async e=>{if(null==e)return 0;if(oe.isBlob(e))return e.size;if(oe.isSpecCompliantForm(e)){const t=new r(Ce.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return oe.isArrayBufferView(e)||oe.isArrayBuffer(e)?e.byteLength:(oe.isURLSearchParams(e)&&(e+=""),oe.isString(e)?(await l(e)).byteLength:void 0)})(t):i})(v,o))){let e,t=new r(n,{method:"POST",body:o,duplex:"half"});if(oe.isFormData(o)&&(e=t.headers.get("content-type"))&&v.setContentType(e),t.body){const[e,r]=Xe(M,Ye(Je(m)));o=at(t.body,65536,e,r)}}oe.isString(b)||(b=b?"include":"omit");const t=s&&"credentials"in r.prototype,u={...I,signal:E,method:a.toUpperCase(),headers:v.normalize().toJSON(),body:o,duplex:"half",credentials:t?b:void 0};k=s&&new r(n,u);let p=await(s?w(k,I):w(n,u));const f=h&&("stream"===y||"response"===y);if(h&&(g||f&&S)){const e={};["status","statusText","headers"].forEach(t=>{e[t]=p[t]});const t=oe.toFiniteNumber(p.headers.get("content-length")),[r,n]=g&&Xe(t,Ye(Je(g),!0))||[];p=new i(at(p.body,65536,r,()=>{n&&n(),S&&S()}),e)}y=y||"text";let F=await d[oe.findKey(d,y)||"text"](p,e);return!f&&S&&S(),await new Promise((t,r)=>{Ve(t,r,{data:F,headers:ze.from(p.headers),status:p.status,statusText:p.statusText,config:e,request:k})})}catch(t){if(S&&S(),t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message))throw Object.assign(new he("Network Error",he.ERR_NETWORK,e,k),{cause:t.cause||t});throw he.from(t,t&&t.code,e,k)}}},pt=new Map,ft=e=>{let t=e?e.env:{};const{fetch:r,Request:i,Response:n}=t,s=[i,n,r];let a,o,l=s.length,u=pt;for(;l--;)a=s[l],o=u.get(a),void 0===o&&u.set(a,o=l?new Map:dt(t)),u=o;return o},gt=(ft(),{http:null,xhr:it,fetch:{get:ft}});oe.forEach(gt,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}});const mt=e=>`- ${e}`,yt=e=>oe.isFunction(e)||null===e||!1===e,vt=(e,t)=>{e=oe.isArray(e)?e:[e];const{length:r}=e;let i,n;const s={};for(let a=0;a<r;a++){let r;if(i=e[a],n=i,!yt(i)&&(n=gt[(r=String(i)).toLowerCase()],void 0===n))throw new he(`Unknown adapter '${r}'`);if(n&&(oe.isFunction(n)||(n=n.get(t))))break;s[r||"#"+a]=n}if(!n){const e=Object.entries(s).map(([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));let t=r?e.length>1?"since :\n"+e.map(mt).join("\n"):" "+mt(e[0]):"as no adapter specified";throw new he("There is no suitable adapter to dispatch the request "+t,"ERR_NOT_SUPPORT")}return n};function bt(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new qe(null,e)}function It(e){return bt(e),e.headers=ze.from(e.headers),e.data=He.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),vt(e.adapter||De.adapter,e)(e).then(function(t){return bt(e),t.data=He.call(e,e.transformResponse,t),t.headers=ze.from(t.headers),t},function(t){return Ke(t)||(bt(e),t&&t.response&&(t.response.data=He.call(e,e.transformResponse,t.response),t.response.headers=ze.from(t.response.headers))),Promise.reject(t)})}const wt="1.12.2",Et={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Et[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const kt={};Et.transitional=function(e,t,r){function i(e,t){return"[Axios v"+wt+"] Transitional option '"+e+"'"+t+(r?". "+r:"")}return(r,n,s)=>{if(!1===e)throw new he(i(n," has been removed"+(t?" in "+t:"")),he.ERR_DEPRECATED);return t&&!kt[n]&&(kt[n]=!0,console.warn(i(n," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,n,s)}},Et.spelling=function(e){return(t,r)=>(console.warn(`${r} is likely a misspelling of ${e}`),!0)};const St={assertOptions:function(e,t,r){if("object"!=typeof e)throw new he("options must be an object",he.ERR_BAD_OPTION_VALUE);const i=Object.keys(e);let n=i.length;for(;n-- >0;){const s=i[n],a=t[s];if(a){const t=e[s],r=void 0===t||a(t,s,e);if(!0!==r)throw new he("option "+s+" must be "+r,he.ERR_BAD_OPTION_VALUE);continue}if(!0!==r)throw new he("Unknown option "+s,he.ERR_BAD_OPTION)}},validators:Et},Mt=St.validators;class Ft{constructor(e){this.defaults=e||{},this.interceptors={request:new Se,response:new Se}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=new Error;const r=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?r&&!String(e.stack).endsWith(r.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+r):e.stack=r}catch(e){}}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=tt(this.defaults,t);const{transitional:r,paramsSerializer:i,headers:n}=t;void 0!==r&&St.assertOptions(r,{silentJSONParsing:Mt.transitional(Mt.boolean),forcedJSONParsing:Mt.transitional(Mt.boolean),clarifyTimeoutError:Mt.transitional(Mt.boolean)},!1),null!=i&&(oe.isFunction(i)?t.paramsSerializer={serialize:i}:St.assertOptions(i,{encode:Mt.function,serialize:Mt.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),St.assertOptions(t,{baseUrl:Mt.spelling("baseURL"),withXsrfToken:Mt.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let s=n&&oe.merge(n.common,n[t.method]);n&&oe.forEach(["delete","get","head","post","put","patch","common"],e=>{delete n[e]}),t.headers=ze.concat(s,n);const a=[];let o=!0;this.interceptors.request.forEach(function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(o=o&&e.synchronous,a.unshift(e.fulfilled,e.rejected))});const l=[];let u;this.interceptors.response.forEach(function(e){l.push(e.fulfilled,e.rejected)});let c,h=0;if(!o){const e=[It.bind(this),void 0];for(e.unshift(...a),e.push(...l),c=e.length,u=Promise.resolve(t);h<c;)u=u.then(e[h++],e[h++]);return u}c=a.length;let d=t;for(;h<c;){const e=a[h++],t=a[h++];try{d=e(d)}catch(e){t.call(this,e);break}}try{u=It.call(this,d)}catch(e){return Promise.reject(e)}for(h=0,c=l.length;h<c;)u=u.then(l[h++],l[h++]);return u}getUri(e){return ke($e((e=tt(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}}oe.forEach(["delete","get","head","options"],function(e){Ft.prototype[e]=function(t,r){return this.request(tt(r||{},{method:e,url:t,data:(r||{}).data}))}}),oe.forEach(["post","put","patch"],function(e){function t(t){return function(r,i,n){return this.request(tt(n||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:r,data:i}))}}Ft.prototype[e]=t(),Ft.prototype[e+"Form"]=t(!0)});const Tt=Ft;class Rt{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(e){t=e});const r=this;this.promise.then(e=>{if(!r._listeners)return;let t=r._listeners.length;for(;t-- >0;)r._listeners[t](e);r._listeners=null}),this.promise.then=e=>{let t;const i=new Promise(e=>{r.subscribe(e),t=e}).then(e);return i.cancel=function(){r.unsubscribe(t)},i},e(function(e,i,n){r.reason||(r.reason=new qe(e,i,n),t(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new Rt(function(t){e=t}),cancel:e}}}const At=Rt,_t={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(_t).forEach(([e,t])=>{_t[t]=e});const Ot=_t,Ct=function e(t){const r=new Tt(t),i=y(Tt.prototype.request,r);return oe.extend(i,Tt.prototype,r,{allOwnKeys:!0}),oe.extend(i,r,null,{allOwnKeys:!0}),i.create=function(r){return e(tt(t,r))},i}(De);Ct.Axios=Tt,Ct.CanceledError=qe,Ct.CancelToken=At,Ct.isCancel=Ke,Ct.VERSION=wt,Ct.toFormData=ye,Ct.AxiosError=he,Ct.Cancel=Ct.CanceledError,Ct.all=function(e){return Promise.all(e)},Ct.spread=function(e){return function(t){return e.apply(null,t)}},Ct.isAxiosError=function(e){return oe.isObject(e)&&!0===e.isAxiosError},Ct.mergeConfig=tt,Ct.AxiosHeaders=ze,Ct.formToJSON=e=>xe(oe.isHTMLForm(e)?new FormData(e):e),Ct.getAdapter=vt,Ct.HttpStatusCode=Ot,Ct.default=Ct;const xt=Ct;var Nt,Dt,Pt,Lt,Bt,jt,Ut,Wt,zt,Ht,Kt=r(5339);!function(e){class t extends Kt.Message{#e=[];constructor(e){super(),Kt.Message.initialize(this,Array.isArray(e)?e:[],0,-1,[8,10,11,12,13],this.#e),Array.isArray(e)||"object"!=typeof e||("deviceKey"in e&&null!=e.deviceKey&&(this.deviceKey=e.deviceKey),"appId"in e&&null!=e.appId&&(this.appId=e.appId),"userId"in e&&null!=e.userId&&(this.userId=e.userId),"roomId"in e&&null!=e.roomId&&(this.roomId=e.roomId),"teamId"in e&&null!=e.teamId&&(this.teamId=e.teamId),"startTime"in e&&null!=e.startTime&&(this.startTime=e.startTime),"endTime"in e&&null!=e.endTime&&(this.endTime=e.endTime),"ids"in e&&null!=e.ids&&(this.ids=e.ids),"token"in e&&null!=e.token&&(this.token=e.token),"roomIds"in e&&null!=e.roomIds&&(this.roomIds=e.roomIds),"userIds"in e&&null!=e.userIds&&(this.userIds=e.userIds),"teamIds"in e&&null!=e.teamIds&&(this.teamIds=e.teamIds),"keys"in e&&null!=e.keys&&(this.keys=e.keys),"page"in e&&null!=e.page&&(this.page=e.page),"pageSize"in e&&null!=e.pageSize&&(this.pageSize=e.pageSize),"version"in e&&null!=e.version&&(this.version=e.version),"v"in e&&null!=e.v&&(this.v=e.v),"talkMode"in e&&null!=e.talkMode&&(this.talkMode=e.talkMode),"proto"in e&&null!=e.proto&&(this.proto=e.proto),"nickname"in e&&null!=e.nickname&&(this.nickname=e.nickname),"protocol"in e&&null!=e.protocol&&(this.protocol=e.protocol),"deviceTag"in e&&null!=e.deviceTag&&(this.deviceTag=e.deviceTag),"avatar"in e&&null!=e.avatar&&(this.avatar=e.avatar))}get deviceKey(){return Kt.Message.getFieldWithDefault(this,1,"")}set deviceKey(e){Kt.Message.setField(this,1,e)}get appId(){return Kt.Message.getFieldWithDefault(this,2,0)}set appId(e){Kt.Message.setField(this,2,e)}get userId(){return Kt.Message.getFieldWithDefault(this,3,"")}set userId(e){Kt.Message.setField(this,3,e)}get roomId(){return Kt.Message.getFieldWithDefault(this,4,0)}set roomId(e){Kt.Message.setField(this,4,e)}get teamId(){return Kt.Message.getFieldWithDefault(this,5,0)}set teamId(e){Kt.Message.setField(this,5,e)}get startTime(){return Kt.Message.getFieldWithDefault(this,6,"")}set startTime(e){Kt.Message.setField(this,6,e)}get endTime(){return Kt.Message.getFieldWithDefault(this,7,"")}set endTime(e){Kt.Message.setField(this,7,e)}get ids(){return Kt.Message.getFieldWithDefault(this,8,[])}set ids(e){Kt.Message.setField(this,8,e)}get token(){return Kt.Message.getFieldWithDefault(this,9,"")}set token(e){Kt.Message.setField(this,9,e)}get roomIds(){return Kt.Message.getFieldWithDefault(this,10,[])}set roomIds(e){Kt.Message.setField(this,10,e)}get userIds(){return Kt.Message.getFieldWithDefault(this,11,[])}set userIds(e){Kt.Message.setField(this,11,e)}get teamIds(){return Kt.Message.getFieldWithDefault(this,12,[])}set teamIds(e){Kt.Message.setField(this,12,e)}get keys(){return Kt.Message.getFieldWithDefault(this,13,[])}set keys(e){Kt.Message.setField(this,13,e)}get page(){return Kt.Message.getFieldWithDefault(this,14,0)}set page(e){Kt.Message.setField(this,14,e)}get pageSize(){return Kt.Message.getFieldWithDefault(this,15,0)}set pageSize(e){Kt.Message.setField(this,15,e)}get version(){return Kt.Message.getFieldWithDefault(this,16,"")}set version(e){Kt.Message.setField(this,16,e)}get v(){return Kt.Message.getFieldWithDefault(this,17,0)}set v(e){Kt.Message.setField(this,17,e)}get talkMode(){return Kt.Message.getFieldWithDefault(this,18,0)}set talkMode(e){Kt.Message.setField(this,18,e)}get proto(){return Kt.Message.getFieldWithDefault(this,19,"")}set proto(e){Kt.Message.setField(this,19,e)}get nickname(){return Kt.Message.getFieldWithDefault(this,20,"")}set nickname(e){Kt.Message.setField(this,20,e)}get protocol(){return Kt.Message.getFieldWithDefault(this,21,new Uint8Array(0))}set protocol(e){Kt.Message.setField(this,21,e)}get deviceTag(){return Kt.Message.getFieldWithDefault(this,22,"")}set deviceTag(e){Kt.Message.setField(this,22,e)}get avatar(){return Kt.Message.getFieldWithDefault(this,23,"")}set avatar(e){Kt.Message.setField(this,23,e)}static fromObject(e){const r=new t({});return null!=e.deviceKey&&(r.deviceKey=e.deviceKey),null!=e.appId&&(r.appId=e.appId),null!=e.userId&&(r.userId=e.userId),null!=e.roomId&&(r.roomId=e.roomId),null!=e.teamId&&(r.teamId=e.teamId),null!=e.startTime&&(r.startTime=e.startTime),null!=e.endTime&&(r.endTime=e.endTime),null!=e.ids&&(r.ids=e.ids),null!=e.token&&(r.token=e.token),null!=e.roomIds&&(r.roomIds=e.roomIds),null!=e.userIds&&(r.userIds=e.userIds),null!=e.teamIds&&(r.teamIds=e.teamIds),null!=e.keys&&(r.keys=e.keys),null!=e.page&&(r.page=e.page),null!=e.pageSize&&(r.pageSize=e.pageSize),null!=e.version&&(r.version=e.version),null!=e.v&&(r.v=e.v),null!=e.talkMode&&(r.talkMode=e.talkMode),null!=e.proto&&(r.proto=e.proto),null!=e.nickname&&(r.nickname=e.nickname),null!=e.protocol&&(r.protocol=e.protocol),null!=e.deviceTag&&(r.deviceTag=e.deviceTag),null!=e.avatar&&(r.avatar=e.avatar),r}toObject(){const e={};return null!=this.deviceKey&&(e.deviceKey=this.deviceKey),null!=this.appId&&(e.appId=this.appId),null!=this.userId&&(e.userId=this.userId),null!=this.roomId&&(e.roomId=this.roomId),null!=this.teamId&&(e.teamId=this.teamId),null!=this.startTime&&(e.startTime=this.startTime),null!=this.endTime&&(e.endTime=this.endTime),null!=this.ids&&(e.ids=this.ids),null!=this.token&&(e.token=this.token),null!=this.roomIds&&(e.roomIds=this.roomIds),null!=this.userIds&&(e.userIds=this.userIds),null!=this.teamIds&&(e.teamIds=this.teamIds),null!=this.keys&&(e.keys=this.keys),null!=this.page&&(e.page=this.page),null!=this.pageSize&&(e.pageSize=this.pageSize),null!=this.version&&(e.version=this.version),null!=this.v&&(e.v=this.v),null!=this.talkMode&&(e.talkMode=this.talkMode),null!=this.proto&&(e.proto=this.proto),null!=this.nickname&&(e.nickname=this.nickname),null!=this.protocol&&(e.protocol=this.protocol),null!=this.deviceTag&&(e.deviceTag=this.deviceTag),null!=this.avatar&&(e.avatar=this.avatar),e}serialize(e){const t=e||new Kt.BinaryWriter;if(this.deviceKey.length&&t.writeString(1,this.deviceKey),0!=this.appId&&t.writeInt64(2,this.appId),this.userId.length&&t.writeString(3,this.userId),0!=this.roomId&&t.writeInt64(4,this.roomId),0!=this.teamId&&t.writeInt64(5,this.teamId),this.startTime.length&&t.writeString(6,this.startTime),this.endTime.length&&t.writeString(7,this.endTime),this.ids.length&&t.writeRepeatedString(8,this.ids),this.token.length&&t.writeString(9,this.token),this.roomIds.length&&t.writePackedInt64(10,this.roomIds),this.userIds.length&&t.writeRepeatedString(11,this.userIds),this.teamIds.length&&t.writePackedInt64(12,this.teamIds),this.keys.length&&t.writePackedInt64(13,this.keys),0!=this.page&&t.writeInt32(14,this.page),0!=this.pageSize&&t.writeInt32(15,this.pageSize),this.version.length&&t.writeString(16,this.version),0!=this.v&&t.writeDouble(17,this.v),0!=this.talkMode&&t.writeInt32(18,this.talkMode),this.proto.length&&t.writeString(19,this.proto),this.nickname.length&&t.writeString(20,this.nickname),this.protocol.length&&t.writeBytes(21,this.protocol),this.deviceTag.length&&t.writeString(22,this.deviceTag),this.avatar.length&&t.writeString(23,this.avatar),!e)return t.getResultBuffer()}static deserialize(e){const r=e instanceof Kt.BinaryReader?e:new Kt.BinaryReader(e),i=new t;for(;r.nextField()&&!r.isEndGroup();)switch(r.getFieldNumber()){case 1:i.deviceKey=r.readString();break;case 2:i.appId=r.readInt64();break;case 3:i.userId=r.readString();break;case 4:i.roomId=r.readInt64();break;case 5:i.teamId=r.readInt64();break;case 6:i.startTime=r.readString();break;case 7:i.endTime=r.readString();break;case 8:Kt.Message.addToRepeatedField(i,8,r.readString());break;case 9:i.token=r.readString();break;case 10:i.roomIds=r.readPackedInt64();break;case 11:Kt.Message.addToRepeatedField(i,11,r.readString());break;case 12:i.teamIds=r.readPackedInt64();break;case 13:i.keys=r.readPackedInt64();break;case 14:i.page=r.readInt32();break;case 15:i.pageSize=r.readInt32();break;case 16:i.version=r.readString();break;case 17:i.v=r.readDouble();break;case 18:i.talkMode=r.readInt32();break;case 19:i.proto=r.readString();break;case 20:i.nickname=r.readString();break;case 21:i.protocol=r.readBytes();break;case 22:i.deviceTag=r.readString();break;case 23:i.avatar=r.readString();break;default:r.skipField()}return i}serializeBinary(){return this.serialize()}static deserializeBinary(e){return t.deserialize(e)}}e.Meta=t}(Nt||(Nt={}));class Gt{teamId=0;userId="";teamName="";teamNumber="";avatar="";members=void 0;isMute=!1;remark=""}!function(e){e[e.public=1]="public",e[e.protected=2]="protected",e[e.private=3]="private"}(Dt||(Dt={}));class qt{static _version=1;token="";tokenAppId=0;pageSize=300;account=null;deviceId="";deviceName="";deviceModel="";ip="";country="";city="";getTokenAppId(){return this.tokenAppId}meta=new Nt.Meta({v:qt._version,deviceTag:"h5",page:0,pageSize:30});axios=xt.create({timeout:5e3});socket;contactList=[];getIP1(){xt.get("https://api.ipbase.com/v1/json/").then(e=>{let t=e.data;200==e.status&&t.ip?(this.ip=t?.ip,this.country=t?.country_name,this.city=t?.region_name+"-"+t?.city):this.getIP3()}).catch(e=>{this.getIP3()})}getIP3(){xt.get("https://ipinfo.io/json").then(e=>{let t=e.data;200==e.status&&t.ip&&(this.ip=t?.ip,this.country=t?.country,this.city=t?.region+"-"+t?.city)}).catch(e=>{})}getJwtPayload(e){const t=e.split(".")[1],r=atob(t);return JSON.parse(r)}decodeMetadata(e){const t=new Map;try{const r=(0,c.decodeCompositeMetadata)(e);for(let e of r)if(e){const r=e;r.type==c.WellKnownMimeType.MESSAGE_RSOCKET_ROUTING.toString()&&t.set("route",r.content.toString()),e.mimeType==c.WellKnownMimeType.MESSAGE_RSOCKET_ROUTING.toString()&&t.set("route",r.content.toString())}}catch(e){}return t}buildRoute(e){let t=(0,c.encodeRoute)(e);return(0,c.encodeCompositeMetadata)([[c.WellKnownMimeType.MESSAGE_RSOCKET_ROUTING,t]])}buildDeviceStatus(e){let t=new g;return t.deviceTag=e.deviceTag,t.deviceId=e.device,t.deviceKey=e.deviceKey,t.status=e.status,t.region=e.region,t.gateway=e.gateway,t.joinId=e.roomId,t.userId=e.userId,t}buildGateway(e){let t=new f;return 4==e.ip?t.type=!0:t.type=!1,t.name=e.name,t.host=e.host,t.max=e.max,t.port=e.port,t.region=e.remark,t.current=e.sort,t}buildContact(e){let t=new d;return t.contactId=e.id,t.joinId=e.joinRoomId,t.userId=e.userId,t.nickname=e.nickname,t.username=e.username,t.subgroup=e.subgroup,t.avatar=e.avatar,t.isGroup=2==e.talkMode,t.joinTime=e.joinTime,t.isMuted=1==e.muted,t.noise=e.noise,t.sort=e.sort,e.status==a.offline&&(t.status=a.offline),e.status==a.online&&(t.status=a.online),e.status==a.online_busy&&(t.status=a.online_busy),e.status==a.online_leave&&(t.status=a.online_leave),t}buildMember(e){let t=new p;return t.memberId=e.id,t.joinId=e.joinRoomId,t.userId=e.userId,t.nickname=e.nickname,t.username=e.username,t.avatar=e.avatar,t.status=e.status,t.joinTime=e.joinTime,t.isMuted=1==e.muted,t.role=e.role,t}buildGroup(e){let t=new m;switch(t.groupId=e.id,t.joinId=e.id,t.groupName=e.roomname,t.groupNumber=e.account,t.userId=e.userId,t.avatar=e.avatar,t.depict=e.depict,t.isTalk=1==e.groupToOne,t.isApproval=1==e.applyJoin,t.isInviteApply=1==e.applyNeed,t.isInvite=1==e.invite,t.maxMember=e.roomMax,t.isGroup=2==e.talkMode,t.isMute=1==e.muted,t.isRevoke=1==e.revoke,t.ask=e.ask,e.type){case"protected":t.type=o.protected;break;case"public":t.type=o.public;break;case"private":t.type=o.private}return t}buildTeamMember(e){let t=new p;return t.memberId=e.id,t.joinId=e.joinTeamId,t.userId=e.userId+"",t.nickname=e.nickname,t.username=e.username,t.avatar=e.avatar,t.joinTime=e.joinTime,t.isMuted=1==e.muted,t.role=e.role,t}buildTeam(e){let t=new Gt;return t.teamId=e.id,t.teamName=e.teamname,t.teamNumber=e.account,t.userId=e.userId,t.avatar=e.avatar,t.isMute=1==e.muted,t}buildMessage(e){let r=new h;switch(r.messageId=e.messageId,r.joinId=e.roomId,r.tag=e.tag,r.fromId=e.fromId,r.fromName=e.fromName,r.destId=e.destId,r.destName=e.destName,r.cite=e.cite,r.type=this.subtype(e.subtype),r.title=e.title,r.subtitle=e.subtitle,r.text=e.text,r.secret=e.secret,r.thumb=e.thumb,r.host=e.host,r.url=e.url,r.lng=e.lng,r.lat=e.lat,r.size=e.size,r.length=e.length,r.sent=e.sent,r.deviceKey=e.deviceKey,r.deviceTag=e.deviceTag,r.sentDate=new Date(e.sent),r.revoke=0!=e.revoke.length,e.talkMode){case 1:r.talk=n.default;break;case 2:r.talk=n.group;break;case 3:r.talk=n.team}switch(e.label){case"tip":r.label=t.tip;break;case"notice":r.label=t.notice;break;case"action":r.label=t.action;break;case"cc":r.label=t.notify;break;case"bcc":r.label=t.quietly}if(e.citeData&&(r.citeData=this.buildMessage(e.citeData)),e.remind&&e.remind.length){r.hintList=[];for(let t of e.remind){let e=new h;e.fromId=t.fromId,e.destId=t.destId,e.destName=t.nickname,e.joinId=t.roomId,r.hintList.push(e)}}if(e.cc&&e.cc.length){r.notifyList=[],r.quietlyList=[];for(let t of e.cc){let e=new h;e.fromId=t.fromId,e.destId=t.destId,e.destName=t.nickname,e.joinId=t.roomId,0==t.sort?r.notifyList.push(e):r.quietlyList.push(e)}}return r}subtype(e){switch(e){case 1:return"txt";case 2:return"img";case 3:return"audio";case 4:return"video";case 5:return"file";case 6:return"loc";case 7:return"custom";case 9:return"wallet"}return""}}!function(e){e[e.DONE=0]="DONE",e[e.ERROR=-1]="ERROR",e[e.CONNECTING=1]="CONNECTING",e[e.SUCCESS_PULL=2]="SUCCESS_PULL",e[e.SUCCESS=3]="SUCCESS",e[e.RETRY_CONNECTING=4]="RETRY_CONNECTING",e[e.TOKEN_EXPIRED=5]="TOKEN_EXPIRED"}(Pt||(Pt={})),function(e){e[e.ERROR=0]="ERROR",e[e.CONNECT=1]="CONNECT",e[e.PULL=2]="PULL",e[e.SUCCESS=3]="SUCCESS",e[e.OFFLINE=4]="OFFLINE"}(Lt||(Lt={})),function(e){e[e.APPLY=1]="APPLY",e[e.APPLY_RESOLVE=2]="APPLY_RESOLVE",e[e.APPLY_AGREE=3]="APPLY_AGREE",e[e.APPLY_REJECT=4]="APPLY_REJECT",e[e.ROOM_EXIT=5]="ROOM_EXIT",e[e.ROOM_DISSOLVE=6]="ROOM_DISSOLVE"}(Bt||(Bt={}));class Vt{accountId="";account="";nickname="";email="";phone=0;avatar="";roomId=0;apply=0;muted=0;need=0;lurk=0;status=""}class Yt extends qt{buildRoute(e,t=""){let r=(0,c.encodeRoute)(e);return t.length>100?(0,c.encodeCompositeMetadata)([[c.WellKnownMimeType.MESSAGE_RSOCKET_ROUTING,r],[c.WellKnownMimeType.MESSAGE_RSOCKET_AUTHENTICATION,(0,c.encodeBearerAuthMetadata)(t)]]):(0,c.encodeCompositeMetadata)([[c.WellKnownMimeType.MESSAGE_RSOCKET_ROUTING,r]])}}!function(e){class t extends Kt.Message{#e=[];constructor(e){super(),Kt.Message.initialize(this,Array.isArray(e)?e:[],0,-1,[7,8,32,33,34],this.#e),Array.isArray(e)||"object"!=typeof e||("id"in e&&null!=e.id&&(this.id=e.id),"appId"in e&&null!=e.appId&&(this.appId=e.appId),"v"in e&&null!=e.v&&(this.v=e.v),"sort"in e&&null!=e.sort&&(this.sort=e.sort),"created"in e&&null!=e.created&&(this.created=e.created),"modified"in e&&null!=e.modified&&(this.modified=e.modified),"ids"in e&&null!=e.ids&&(this.ids=e.ids),"appIds"in e&&null!=e.appIds&&(this.appIds=e.appIds),"remark"in e&&null!=e.remark&&(this.remark=e.remark),"meta"in e&&null!=e.meta&&(this.meta=e.meta),"userId"in e&&null!=e.userId&&(this.userId=e.userId),"roomId"in e&&null!=e.roomId&&(this.roomId=e.roomId),"fromRoomId"in e&&null!=e.fromRoomId&&(this.fromRoomId=e.fromRoomId),"nickname"in e&&null!=e.nickname&&(this.nickname=e.nickname),"username"in e&&null!=e.username&&(this.username=e.username),"avatar"in e&&null!=e.avatar&&(this.avatar=e.avatar),"fromUserId"in e&&null!=e.fromUserId&&(this.fromUserId=e.fromUserId),"subgroup"in e&&null!=e.subgroup&&(this.subgroup=e.subgroup),"account"in e&&null!=e.account&&(this.account=e.account),"role"in e&&null!=e.role&&(this.role=e.role),"lastTime"in e&&null!=e.lastTime&&(this.lastTime=e.lastTime),"talkMode"in e&&null!=e.talkMode&&(this.talkMode=e.talkMode),"muted"in e&&null!=e.muted&&(this.muted=e.muted),"apply"in e&&null!=e.apply&&(this.apply=e.apply),"upload"in e&&null!=e.upload&&(this.upload=e.upload),"downed"in e&&null!=e.downed&&(this.downed=e.downed),"black"in e&&null!=e.black&&(this.black=e.black),"noise"in e&&null!=e.noise&&(this.noise=e.noise),"joinTeamId"in e&&null!=e.joinTeamId&&(this.joinTeamId=e.joinTeamId),"joinTime"in e&&null!=e.joinTime&&(this.joinTime=e.joinTime),"joinRoomId"in e&&null!=e.joinRoomId&&(this.joinRoomId=e.joinRoomId),"roomIds"in e&&null!=e.roomIds&&(this.roomIds=e.roomIds),"userIds"in e&&null!=e.userIds&&(this.userIds=e.userIds),"teamIds"in e&&null!=e.teamIds&&(this.teamIds=e.teamIds),"unique"in e&&null!=e.unique&&(this.unique=e.unique),"status"in e&&null!=e.status&&(this.status=e.status))}get id(){return Kt.Message.getFieldWithDefault(this,1,0)}set id(e){Kt.Message.setField(this,1,e)}get appId(){return Kt.Message.getFieldWithDefault(this,2,0)}set appId(e){Kt.Message.setField(this,2,e)}get v(){return Kt.Message.getFieldWithDefault(this,3,0)}set v(e){Kt.Message.setField(this,3,e)}get sort(){return Kt.Message.getFieldWithDefault(this,4,0)}set sort(e){Kt.Message.setField(this,4,e)}get created(){return Kt.Message.getFieldWithDefault(this,5,"")}set created(e){Kt.Message.setField(this,5,e)}get modified(){return Kt.Message.getFieldWithDefault(this,6,"")}set modified(e){Kt.Message.setField(this,6,e)}get ids(){return Kt.Message.getFieldWithDefault(this,7,[])}set ids(e){Kt.Message.setField(this,7,e)}get appIds(){return Kt.Message.getFieldWithDefault(this,8,[])}set appIds(e){Kt.Message.setField(this,8,e)}get remark(){return Kt.Message.getFieldWithDefault(this,9,"")}set remark(e){Kt.Message.setField(this,9,e)}get meta(){return Kt.Message.getWrapperField(this,Nt.Meta,10)}set meta(e){Kt.Message.setWrapperField(this,10,e)}get has_meta(){return null!=Kt.Message.getField(this,10)}get userId(){return Kt.Message.getFieldWithDefault(this,11,"")}set userId(e){Kt.Message.setField(this,11,e)}get roomId(){return Kt.Message.getFieldWithDefault(this,12,0)}set roomId(e){Kt.Message.setField(this,12,e)}get fromRoomId(){return Kt.Message.getFieldWithDefault(this,13,0)}set fromRoomId(e){Kt.Message.setField(this,13,e)}get nickname(){return Kt.Message.getFieldWithDefault(this,14,"")}set nickname(e){Kt.Message.setField(this,14,e)}get username(){return Kt.Message.getFieldWithDefault(this,15,"")}set username(e){Kt.Message.setField(this,15,e)}get avatar(){return Kt.Message.getFieldWithDefault(this,16,"")}set avatar(e){Kt.Message.setField(this,16,e)}get fromUserId(){return Kt.Message.getFieldWithDefault(this,17,"")}set fromUserId(e){Kt.Message.setField(this,17,e)}get subgroup(){return Kt.Message.getFieldWithDefault(this,18,"")}set subgroup(e){Kt.Message.setField(this,18,e)}get account(){return Kt.Message.getFieldWithDefault(this,19,"")}set account(e){Kt.Message.setField(this,19,e)}get role(){return Kt.Message.getFieldWithDefault(this,20,"")}set role(e){Kt.Message.setField(this,20,e)}get lastTime(){return Kt.Message.getFieldWithDefault(this,21,"")}set lastTime(e){Kt.Message.setField(this,21,e)}get talkMode(){return Kt.Message.getFieldWithDefault(this,22,0)}set talkMode(e){Kt.Message.setField(this,22,e)}get muted(){return Kt.Message.getFieldWithDefault(this,23,0)}set muted(e){Kt.Message.setField(this,23,e)}get apply(){return Kt.Message.getFieldWithDefault(this,24,0)}set apply(e){Kt.Message.setField(this,24,e)}get upload(){return Kt.Message.getFieldWithDefault(this,25,0)}set upload(e){Kt.Message.setField(this,25,e)}get downed(){return Kt.Message.getFieldWithDefault(this,26,0)}set downed(e){Kt.Message.setField(this,26,e)}get black(){return Kt.Message.getFieldWithDefault(this,27,0)}set black(e){Kt.Message.setField(this,27,e)}get noise(){return Kt.Message.getFieldWithDefault(this,28,0)}set noise(e){Kt.Message.setField(this,28,e)}get joinTeamId(){return Kt.Message.getFieldWithDefault(this,29,0)}set joinTeamId(e){Kt.Message.setField(this,29,e)}get joinTime(){return Kt.Message.getFieldWithDefault(this,30,"")}set joinTime(e){Kt.Message.setField(this,30,e)}get joinRoomId(){return Kt.Message.getFieldWithDefault(this,31,0)}set joinRoomId(e){Kt.Message.setField(this,31,e)}get roomIds(){return Kt.Message.getFieldWithDefault(this,32,[])}set roomIds(e){Kt.Message.setField(this,32,e)}get userIds(){return Kt.Message.getFieldWithDefault(this,33,[])}set userIds(e){Kt.Message.setField(this,33,e)}get teamIds(){return Kt.Message.getFieldWithDefault(this,34,[])}set teamIds(e){Kt.Message.setField(this,34,e)}get unique(){return Kt.Message.getFieldWithDefault(this,36,"")}set unique(e){Kt.Message.setField(this,36,e)}get status(){return Kt.Message.getFieldWithDefault(this,37,"")}set status(e){Kt.Message.setField(this,37,e)}static fromObject(e){const r=new t({});return null!=e.id&&(r.id=e.id),null!=e.appId&&(r.appId=e.appId),null!=e.v&&(r.v=e.v),null!=e.sort&&(r.sort=e.sort),null!=e.created&&(r.created=e.created),null!=e.modified&&(r.modified=e.modified),null!=e.ids&&(r.ids=e.ids),null!=e.appIds&&(r.appIds=e.appIds),null!=e.remark&&(r.remark=e.remark),null!=e.meta&&(r.meta=Nt.Meta.fromObject(e.meta)),null!=e.userId&&(r.userId=e.userId),null!=e.roomId&&(r.roomId=e.roomId),null!=e.fromRoomId&&(r.fromRoomId=e.fromRoomId),null!=e.nickname&&(r.nickname=e.nickname),null!=e.username&&(r.username=e.username),null!=e.avatar&&(r.avatar=e.avatar),null!=e.fromUserId&&(r.fromUserId=e.fromUserId),null!=e.subgroup&&(r.subgroup=e.subgroup),null!=e.account&&(r.account=e.account),null!=e.role&&(r.role=e.role),null!=e.lastTime&&(r.lastTime=e.lastTime),null!=e.talkMode&&(r.talkMode=e.talkMode),null!=e.muted&&(r.muted=e.muted),null!=e.apply&&(r.apply=e.apply),null!=e.upload&&(r.upload=e.upload),null!=e.downed&&(r.downed=e.downed),null!=e.black&&(r.black=e.black),null!=e.noise&&(r.noise=e.noise),null!=e.joinTeamId&&(r.joinTeamId=e.joinTeamId),null!=e.joinTime&&(r.joinTime=e.joinTime),null!=e.joinRoomId&&(r.joinRoomId=e.joinRoomId),null!=e.roomIds&&(r.roomIds=e.roomIds),null!=e.userIds&&(r.userIds=e.userIds),null!=e.teamIds&&(r.teamIds=e.teamIds),null!=e.unique&&(r.unique=e.unique),null!=e.status&&(r.status=e.status),r}toObject(){const e={};return null!=this.id&&(e.id=this.id),null!=this.appId&&(e.appId=this.appId),null!=this.v&&(e.v=this.v),null!=this.sort&&(e.sort=this.sort),null!=this.created&&(e.created=this.created),null!=this.modified&&(e.modified=this.modified),null!=this.ids&&(e.ids=this.ids),null!=this.appIds&&(e.appIds=this.appIds),null!=this.remark&&(e.remark=this.remark),null!=this.meta&&(e.meta=this.meta.toObject()),null!=this.userId&&(e.userId=this.userId),null!=this.roomId&&(e.roomId=this.roomId),null!=this.fromRoomId&&(e.fromRoomId=this.fromRoomId),null!=this.nickname&&(e.nickname=this.nickname),null!=this.username&&(e.username=this.username),null!=this.avatar&&(e.avatar=this.avatar),null!=this.fromUserId&&(e.fromUserId=this.fromUserId),null!=this.subgroup&&(e.subgroup=this.subgroup),null!=this.account&&(e.account=this.account),null!=this.role&&(e.role=this.role),null!=this.lastTime&&(e.lastTime=this.lastTime),null!=this.talkMode&&(e.talkMode=this.talkMode),null!=this.muted&&(e.muted=this.muted),null!=this.apply&&(e.apply=this.apply),null!=this.upload&&(e.upload=this.upload),null!=this.downed&&(e.downed=this.downed),null!=this.black&&(e.black=this.black),null!=this.noise&&(e.noise=this.noise),null!=this.joinTeamId&&(e.joinTeamId=this.joinTeamId),null!=this.joinTime&&(e.joinTime=this.joinTime),null!=this.joinRoomId&&(e.joinRoomId=this.joinRoomId),null!=this.roomIds&&(e.roomIds=this.roomIds),null!=this.userIds&&(e.userIds=this.userIds),null!=this.teamIds&&(e.teamIds=this.teamIds),null!=this.unique&&(e.unique=this.unique),null!=this.status&&(e.status=this.status),e}serialize(e){const t=e||new Kt.BinaryWriter;if(0!=this.id&&t.writeInt64(1,this.id),0!=this.appId&&t.writeInt64(2,this.appId),0!=this.v&&t.writeDouble(3,this.v),0!=this.sort&&t.writeInt32(4,this.sort),this.created.length&&t.writeString(5,this.created),this.modified.length&&t.writeString(6,this.modified),this.ids.length&&t.writeRepeatedString(7,this.ids),this.appIds.length&&t.writeRepeatedString(8,this.appIds),this.remark.length&&t.writeString(9,this.remark),this.has_meta&&t.writeMessage(10,this.meta,()=>this.meta.serialize(t)),this.userId.length&&t.writeString(11,this.userId),0!=this.roomId&&t.writeInt64(12,this.roomId),0!=this.fromRoomId&&t.writeInt64(13,this.fromRoomId),this.nickname.length&&t.writeString(14,this.nickname),this.username.length&&t.writeString(15,this.username),this.avatar.length&&t.writeString(16,this.avatar),this.fromUserId.length&&t.writeString(17,this.fromUserId),this.subgroup.length&&t.writeString(18,this.subgroup),this.account.length&&t.writeString(19,this.account),this.role.length&&t.writeString(20,this.role),this.lastTime.length&&t.writeString(21,this.lastTime),0!=this.talkMode&&t.writeInt32(22,this.talkMode),0!=this.muted&&t.writeInt32(23,this.muted),0!=this.apply&&t.writeInt32(24,this.apply),0!=this.upload&&t.writeInt32(25,this.upload),0!=this.downed&&t.writeInt32(26,this.downed),0!=this.black&&t.writeInt32(27,this.black),0!=this.noise&&t.writeInt32(28,this.noise),0!=this.joinTeamId&&t.writeInt64(29,this.joinTeamId),this.joinTime.length&&t.writeString(30,this.joinTime),0!=this.joinRoomId&&t.writeInt64(31,this.joinRoomId),this.roomIds.length&&t.writePackedInt64(32,this.roomIds),this.userIds.length&&t.writeRepeatedString(33,this.userIds),this.teamIds.length&&t.writePackedInt64(34,this.teamIds),this.unique.length&&t.writeString(36,this.unique),this.status.length&&t.writeString(37,this.status),!e)return t.getResultBuffer()}static deserialize(e){const r=e instanceof Kt.BinaryReader?e:new Kt.BinaryReader(e),i=new t;for(;r.nextField()&&!r.isEndGroup();)switch(r.getFieldNumber()){case 1:i.id=r.readInt64();break;case 2:i.appId=r.readInt64();break;case 3:i.v=r.readDouble();break;case 4:i.sort=r.readInt32();break;case 5:i.created=r.readString();break;case 6:i.modified=r.readString();break;case 7:Kt.Message.addToRepeatedField(i,7,r.readString());break;case 8:Kt.Message.addToRepeatedField(i,8,r.readString());break;case 9:i.remark=r.readString();break;case 10:r.readMessage(i.meta,()=>i.meta=Nt.Meta.deserialize(r));break;case 11:i.userId=r.readString();break;case 12:i.roomId=r.readInt64();break;case 13:i.fromRoomId=r.readInt64();break;case 14:i.nickname=r.readString();break;case 15:i.username=r.readString();break;case 16:i.avatar=r.readString();break;case 17:i.fromUserId=r.readString();break;case 18:i.subgroup=r.readString();break;case 19:i.account=r.readString();break;case 20:i.role=r.readString();break;case 21:i.lastTime=r.readString();break;case 22:i.talkMode=r.readInt32();break;case 23:i.muted=r.readInt32();break;case 24:i.apply=r.readInt32();break;case 25:i.upload=r.readInt32();break;case 26:i.downed=r.readInt32();break;case 27:i.black=r.readInt32();break;case 28:i.noise=r.readInt32();break;case 29:i.joinTeamId=r.readInt64();break;case 30:i.joinTime=r.readString();break;case 31:i.joinRoomId=r.readInt64();break;case 32:i.roomIds=r.readPackedInt64();break;case 33:Kt.Message.addToRepeatedField(i,33,r.readString());break;case 34:i.teamIds=r.readPackedInt64();break;case 36:i.unique=r.readString();break;case 37:i.status=r.readString();break;default:r.skipField()}return i}serializeBinary(){return this.serialize()}static deserializeBinary(e){return t.deserialize(e)}}e.Contacts=t}(jt||(jt={})),function(e){class t extends Kt.Message{#e=[];constructor(e){super(),Kt.Message.initialize(this,Array.isArray(e)?e:[],0,-1,[7,8,28,29,37],this.#e),Array.isArray(e)||"object"!=typeof e||("id"in e&&null!=e.id&&(this.id=e.id),"appId"in e&&null!=e.appId&&(this.appId=e.appId),"v"in e&&null!=e.v&&(this.v=e.v),"sort"in e&&null!=e.sort&&(this.sort=e.sort),"created"in e&&null!=e.created&&(this.created=e.created),"modified"in e&&null!=e.modified&&(this.modified=e.modified),"ids"in e&&null!=e.ids&&(this.ids=e.ids),"appIds"in e&&null!=e.appIds&&(this.appIds=e.appIds),"remark"in e&&null!=e.remark&&(this.remark=e.remark),"meta"in e&&null!=e.meta&&(this.meta=e.meta),"userId"in e&&null!=e.userId&&(this.userId=e.userId),"roomname"in e&&null!=e.roomname&&(this.roomname=e.roomname),"level"in e&&null!=e.level&&(this.level=e.level),"describe"in e&&null!=e.describe&&(this.describe=e.describe),"type"in e&&null!=e.type&&(this.type=e.type),"joinKey"in e&&null!=e.joinKey&&(this.joinKey=e.joinKey),"talkMode"in e&&null!=e.talkMode&&(this.talkMode=e.talkMode),"userCount"in e&&null!=e.userCount&&(this.userCount=e.userCount),"lurk"in e&&null!=e.lurk&&(this.lurk=e.lurk),"depict"in e&&null!=e.depict&&(this.depict=e.depict),"muted"in e&&null!=e.muted&&(this.muted=e.muted),"applyJoin"in e&&null!=e.applyJoin&&(this.applyJoin=e.applyJoin),"applyNeed"in e&&null!=e.applyNeed&&(this.applyNeed=e.applyNeed),"invite"in e&&null!=e.invite&&(this.invite=e.invite),"uped"in e&&null!=e.uped&&(this.uped=e.uped),"downed"in e&&null!=e.downed&&(this.downed=e.downed),"revoke"in e&&null!=e.revoke&&(this.revoke=e.revoke),"tags"in e&&null!=e.tags&&(this.tags=e.tags),"users"in e&&null!=e.users&&(this.users=e.users),"avatar"in e&&null!=e.avatar&&(this.avatar=e.avatar),"groupToOne"in e&&null!=e.groupToOne&&(this.groupToOne=e.groupToOne),"roomCount"in e&&null!=e.roomCount&&(this.roomCount=e.roomCount),"group"in e&&null!=e.group&&(this.group=e.group),"teamCount"in e&&null!=e.teamCount&&(this.teamCount=e.teamCount),"ask"in e&&null!=e.ask&&(this.ask=e.ask),"answer"in e&&null!=e.answer&&(this.answer=e.answer),"roomIds"in e&&null!=e.roomIds&&(this.roomIds=e.roomIds),"account"in e&&null!=e.account&&(this.account=e.account),"roomMax"in e&&null!=e.roomMax&&(this.roomMax=e.roomMax),"teamMax"in e&&null!=e.teamMax&&(this.teamMax=e.teamMax))}get id(){return Kt.Message.getFieldWithDefault(this,1,0)}set id(e){Kt.Message.setField(this,1,e)}get appId(){return Kt.Message.getFieldWithDefault(this,2,0)}set appId(e){Kt.Message.setField(this,2,e)}get v(){return Kt.Message.getFieldWithDefault(this,3,0)}set v(e){Kt.Message.setField(this,3,e)}get sort(){return Kt.Message.getFieldWithDefault(this,4,0)}set sort(e){Kt.Message.setField(this,4,e)}get created(){return Kt.Message.getFieldWithDefault(this,5,"")}set created(e){Kt.Message.setField(this,5,e)}get modified(){return Kt.Message.getFieldWithDefault(this,6,"")}set modified(e){Kt.Message.setField(this,6,e)}get ids(){return Kt.Message.getFieldWithDefault(this,7,[])}set ids(e){Kt.Message.setField(this,7,e)}get appIds(){return Kt.Message.getFieldWithDefault(this,8,[])}set appIds(e){Kt.Message.setField(this,8,e)}get remark(){return Kt.Message.getFieldWithDefault(this,9,"")}set remark(e){Kt.Message.setField(this,9,e)}get meta(){return Kt.Message.getWrapperField(this,Nt.Meta,10)}set meta(e){Kt.Message.setWrapperField(this,10,e)}get has_meta(){return null!=Kt.Message.getField(this,10)}get userId(){return Kt.Message.getFieldWithDefault(this,11,"")}set userId(e){Kt.Message.setField(this,11,e)}get roomname(){return Kt.Message.getFieldWithDefault(this,12,"")}set roomname(e){Kt.Message.setField(this,12,e)}get level(){return Kt.Message.getFieldWithDefault(this,13,"")}set level(e){Kt.Message.setField(this,13,e)}get describe(){return Kt.Message.getFieldWithDefault(this,14,"")}set describe(e){Kt.Message.setField(this,14,e)}get type(){return Kt.Message.getFieldWithDefault(this,15,"")}set type(e){Kt.Message.setField(this,15,e)}get joinKey(){return Kt.Message.getFieldWithDefault(this,16,"")}set joinKey(e){Kt.Message.setField(this,16,e)}get talkMode(){return Kt.Message.getFieldWithDefault(this,17,0)}set talkMode(e){Kt.Message.setField(this,17,e)}get userCount(){return Kt.Message.getFieldWithDefault(this,18,0)}set userCount(e){Kt.Message.setField(this,18,e)}get lurk(){return Kt.Message.getFieldWithDefault(this,19,0)}set lurk(e){Kt.Message.setField(this,19,e)}get depict(){return Kt.Message.getFieldWithDefault(this,20,"")}set depict(e){Kt.Message.setField(this,20,e)}get muted(){return Kt.Message.getFieldWithDefault(this,21,0)}set muted(e){Kt.Message.setField(this,21,e)}get applyJoin(){return Kt.Message.getFieldWithDefault(this,22,0)}set applyJoin(e){Kt.Message.setField(this,22,e)}get applyNeed(){return Kt.Message.getFieldWithDefault(this,23,0)}set applyNeed(e){Kt.Message.setField(this,23,e)}get invite(){return Kt.Message.getFieldWithDefault(this,24,0)}set invite(e){Kt.Message.setField(this,24,e)}get uped(){return Kt.Message.getFieldWithDefault(this,25,0)}set uped(e){Kt.Message.setField(this,25,e)}get downed(){return Kt.Message.getFieldWithDefault(this,26,0)}set downed(e){Kt.Message.setField(this,26,e)}get revoke(){return Kt.Message.getFieldWithDefault(this,27,0)}set revoke(e){Kt.Message.setField(this,27,e)}get tags(){return Kt.Message.getFieldWithDefault(this,28,[])}set tags(e){Kt.Message.setField(this,28,e)}get users(){return Kt.Message.getRepeatedWrapperField(this,jt.Contacts,29)}set users(e){Kt.Message.setRepeatedWrapperField(this,29,e)}get avatar(){return Kt.Message.getFieldWithDefault(this,30,"")}set avatar(e){Kt.Message.setField(this,30,e)}get groupToOne(){return Kt.Message.getFieldWithDefault(this,31,0)}set groupToOne(e){Kt.Message.setField(this,31,e)}get roomCount(){return Kt.Message.getFieldWithDefault(this,32,0)}set roomCount(e){Kt.Message.setField(this,32,e)}get group(){return Kt.Message.getFieldWithDefault(this,33,0)}set group(e){Kt.Message.setField(this,33,e)}get teamCount(){return Kt.Message.getFieldWithDefault(this,34,0)}set teamCount(e){Kt.Message.setField(this,34,e)}get ask(){return Kt.Message.getFieldWithDefault(this,35,"")}set ask(e){Kt.Message.setField(this,35,e)}get answer(){return Kt.Message.getFieldWithDefault(this,36,"")}set answer(e){Kt.Message.setField(this,36,e)}get roomIds(){return Kt.Message.getFieldWithDefault(this,37,[])}set roomIds(e){Kt.Message.setField(this,37,e)}get account(){return Kt.Message.getFieldWithDefault(this,38,"")}set account(e){Kt.Message.setField(this,38,e)}get roomMax(){return Kt.Message.getFieldWithDefault(this,39,0)}set roomMax(e){Kt.Message.setField(this,39,e)}get teamMax(){return Kt.Message.getFieldWithDefault(this,40,0)}set teamMax(e){Kt.Message.setField(this,40,e)}static fromObject(e){const r=new t({});return null!=e.id&&(r.id=e.id),null!=e.appId&&(r.appId=e.appId),null!=e.v&&(r.v=e.v),null!=e.sort&&(r.sort=e.sort),null!=e.created&&(r.created=e.created),null!=e.modified&&(r.modified=e.modified),null!=e.ids&&(r.ids=e.ids),null!=e.appIds&&(r.appIds=e.appIds),null!=e.remark&&(r.remark=e.remark),null!=e.meta&&(r.meta=Nt.Meta.fromObject(e.meta)),null!=e.userId&&(r.userId=e.userId),null!=e.roomname&&(r.roomname=e.roomname),null!=e.level&&(r.level=e.level),null!=e.describe&&(r.describe=e.describe),null!=e.type&&(r.type=e.type),null!=e.joinKey&&(r.joinKey=e.joinKey),null!=e.talkMode&&(r.talkMode=e.talkMode),null!=e.userCount&&(r.userCount=e.userCount),null!=e.lurk&&(r.lurk=e.lurk),null!=e.depict&&(r.depict=e.depict),null!=e.muted&&(r.muted=e.muted),null!=e.applyJoin&&(r.applyJoin=e.applyJoin),null!=e.applyNeed&&(r.applyNeed=e.applyNeed),null!=e.invite&&(r.invite=e.invite),null!=e.uped&&(r.uped=e.uped),null!=e.downed&&(r.downed=e.downed),null!=e.revoke&&(r.revoke=e.revoke),null!=e.tags&&(r.tags=e.tags),null!=e.users&&(r.users=e.users.map(e=>jt.Contacts.fromObject(e))),null!=e.avatar&&(r.avatar=e.avatar),null!=e.groupToOne&&(r.groupToOne=e.groupToOne),null!=e.roomCount&&(r.roomCount=e.roomCount),null!=e.group&&(r.group=e.group),null!=e.teamCount&&(r.teamCount=e.teamCount),null!=e.ask&&(r.ask=e.ask),null!=e.answer&&(r.answer=e.answer),null!=e.roomIds&&(r.roomIds=e.roomIds),null!=e.account&&(r.account=e.account),null!=e.roomMax&&(r.roomMax=e.roomMax),null!=e.teamMax&&(r.teamMax=e.teamMax),r}toObject(){const e={};return null!=this.id&&(e.id=this.id),null!=this.appId&&(e.appId=this.appId),null!=this.v&&(e.v=this.v),null!=this.sort&&(e.sort=this.sort),null!=this.created&&(e.created=this.created),null!=this.modified&&(e.modified=this.modified),null!=this.ids&&(e.ids=this.ids),null!=this.appIds&&(e.appIds=this.appIds),null!=this.remark&&(e.remark=this.remark),null!=this.meta&&(e.meta=this.meta.toObject()),null!=this.userId&&(e.userId=this.userId),null!=this.roomname&&(e.roomname=this.roomname),null!=this.level&&(e.level=this.level),null!=this.describe&&(e.describe=this.describe),null!=this.type&&(e.type=this.type),null!=this.joinKey&&(e.joinKey=this.joinKey),null!=this.talkMode&&(e.talkMode=this.talkMode),null!=this.userCount&&(e.userCount=this.userCount),null!=this.lurk&&(e.lurk=this.lurk),null!=this.depict&&(e.depict=this.depict),null!=this.muted&&(e.muted=this.muted),null!=this.applyJoin&&(e.applyJoin=this.applyJoin),null!=this.applyNeed&&(e.applyNeed=this.applyNeed),null!=this.invite&&(e.invite=this.invite),null!=this.uped&&(e.uped=this.uped),null!=this.downed&&(e.downed=this.downed),null!=this.revoke&&(e.revoke=this.revoke),null!=this.tags&&(e.tags=this.tags),null!=this.users&&(e.users=this.users.map(e=>e.toObject())),null!=this.avatar&&(e.avatar=this.avatar),null!=this.groupToOne&&(e.groupToOne=this.groupToOne),null!=this.roomCount&&(e.roomCount=this.roomCount),null!=this.group&&(e.group=this.group),null!=this.teamCount&&(e.teamCount=this.teamCount),null!=this.ask&&(e.ask=this.ask),null!=this.answer&&(e.answer=this.answer),null!=this.roomIds&&(e.roomIds=this.roomIds),null!=this.account&&(e.account=this.account),null!=this.roomMax&&(e.roomMax=this.roomMax),null!=this.teamMax&&(e.teamMax=this.teamMax),e}serialize(e){const t=e||new Kt.BinaryWriter;if(0!=this.id&&t.writeInt64(1,this.id),0!=this.appId&&t.writeInt64(2,this.appId),0!=this.v&&t.writeDouble(3,this.v),0!=this.sort&&t.writeInt32(4,this.sort),this.created.length&&t.writeString(5,this.created),this.modified.length&&t.writeString(6,this.modified),this.ids.length&&t.writeRepeatedString(7,this.ids),this.appIds.length&&t.writeRepeatedString(8,this.appIds),this.remark.length&&t.writeString(9,this.remark),this.has_meta&&t.writeMessage(10,this.meta,()=>this.meta.serialize(t)),this.userId.length&&t.writeString(11,this.userId),this.roomname.length&&t.writeString(12,this.roomname),this.level.length&&t.writeString(13,this.level),this.describe.length&&t.writeString(14,this.describe),this.type.length&&t.writeString(15,this.type),this.joinKey.length&&t.writeString(16,this.joinKey),0!=this.talkMode&&t.writeInt32(17,this.talkMode),0!=this.userCount&&t.writeInt32(18,this.userCount),0!=this.lurk&&t.writeInt32(19,this.lurk),this.depict.length&&t.writeString(20,this.depict),0!=this.muted&&t.writeInt32(21,this.muted),0!=this.applyJoin&&t.writeInt32(22,this.applyJoin),0!=this.applyNeed&&t.writeInt32(23,this.applyNeed),0!=this.invite&&t.writeInt32(24,this.invite),0!=this.uped&&t.writeInt32(25,this.uped),0!=this.downed&&t.writeInt32(26,this.downed),0!=this.revoke&&t.writeInt32(27,this.revoke),this.tags.length&&t.writeRepeatedString(28,this.tags),this.users.length&&t.writeRepeatedMessage(29,this.users,e=>e.serialize(t)),this.avatar.length&&t.writeString(30,this.avatar),0!=this.groupToOne&&t.writeInt32(31,this.groupToOne),0!=this.roomCount&&t.writeInt32(32,this.roomCount),0!=this.group&&t.writeInt32(33,this.group),0!=this.teamCount&&t.writeInt32(34,this.teamCount),this.ask.length&&t.writeString(35,this.ask),this.answer.length&&t.writeString(36,this.answer),this.roomIds.length&&t.writeRepeatedString(37,this.roomIds),this.account.length&&t.writeString(38,this.account),0!=this.roomMax&&t.writeInt32(39,this.roomMax),0!=this.teamMax&&t.writeInt32(40,this.teamMax),!e)return t.getResultBuffer()}static deserialize(e){const r=e instanceof Kt.BinaryReader?e:new Kt.BinaryReader(e),i=new t;for(;r.nextField()&&!r.isEndGroup();)switch(r.getFieldNumber()){case 1:i.id=r.readInt64();break;case 2:i.appId=r.readInt64();break;case 3:i.v=r.readDouble();break;case 4:i.sort=r.readInt32();break;case 5:i.created=r.readString();break;case 6:i.modified=r.readString();break;case 7:Kt.Message.addToRepeatedField(i,7,r.readString());break;case 8:Kt.Message.addToRepeatedField(i,8,r.readString());break;case 9:i.remark=r.readString();break;case 10:r.readMessage(i.meta,()=>i.meta=Nt.Meta.deserialize(r));break;case 11:i.userId=r.readString();break;case 12:i.roomname=r.readString();break;case 13:i.level=r.readString();break;case 14:i.describe=r.readString();break;case 15:i.type=r.readString();break;case 16:i.joinKey=r.readString();break;case 17:i.talkMode=r.readInt32();break;case 18:i.userCount=r.readInt32();break;case 19:i.lurk=r.readInt32();break;case 20:i.depict=r.readString();break;case 21:i.muted=r.readInt32();break;case 22:i.applyJoin=r.readInt32();break;case 23:i.applyNeed=r.readInt32();break;case 24:i.invite=r.readInt32();break;case 25:i.uped=r.readInt32();break;case 26:i.downed=r.readInt32();break;case 27:i.revoke=r.readInt32();break;case 28:Kt.Message.addToRepeatedField(i,28,r.readString());break;case 29:r.readMessage(i.users,()=>Kt.Message.addToRepeatedWrapperField(i,29,jt.Contacts.deserialize(r),jt.Contacts));break;case 30:i.avatar=r.readString();break;case 31:i.groupToOne=r.readInt32();break;case 32:i.roomCount=r.readInt32();break;case 33:i.group=r.readInt32();break;case 34:i.teamCount=r.readInt32();break;case 35:i.ask=r.readString();break;case 36:i.answer=r.readString();break;case 37:Kt.Message.addToRepeatedField(i,37,r.readString());break;case 38:i.account=r.readString();break;case 39:i.roomMax=r.readInt32();break;case 40:i.teamMax=r.readInt32();break;default:r.skipField()}return i}serializeBinary(){return this.serialize()}static deserializeBinary(e){return t.deserialize(e)}}e.Rooms=t}(Ut||(Ut={})),function(e){class t extends Kt.Message{#e=[];constructor(e){super(),Kt.Message.initialize(this,Array.isArray(e)?e:[],0,-1,[7,8],this.#e),Array.isArray(e)||"object"!=typeof e||("id"in e&&null!=e.id&&(this.id=e.id),"appId"in e&&null!=e.appId&&(this.appId=e.appId),"v"in e&&null!=e.v&&(this.v=e.v),"sort"in e&&null!=e.sort&&(this.sort=e.sort),"created"in e&&null!=e.created&&(this.created=e.created),"modified"in e&&null!=e.modified&&(this.modified=e.modified),"ids"in e&&null!=e.ids&&(this.ids=e.ids),"appIds"in e&&null!=e.appIds&&(this.appIds=e.appIds),"remark"in e&&null!=e.remark&&(this.remark=e.remark),"meta"in e&&null!=e.meta&&(this.meta=e.meta),"messageId"in e&&null!=e.messageId&&(this.messageId=e.messageId),"destId"in e&&null!=e.destId&&(this.destId=e.destId),"fromId"in e&&null!=e.fromId&&(this.fromId=e.fromId),"nickname"in e&&null!=e.nickname&&(this.nickname=e.nickname),"confirm"in e&&null!=e.confirm&&(this.confirm=e.confirm),"read"in e&&null!=e.read&&(this.read=e.read),"roomId"in e&&null!=e.roomId&&(this.roomId=e.roomId),"type"in e&&null!=e.type&&(this.type=e.type))}get id(){return Kt.Message.getFieldWithDefault(this,1,"")}set id(e){Kt.Message.setField(this,1,e)}get appId(){return Kt.Message.getFieldWithDefault(this,2,0)}set appId(e){Kt.Message.setField(this,2,e)}get v(){return Kt.Message.getFieldWithDefault(this,3,0)}set v(e){Kt.Message.setField(this,3,e)}get sort(){return Kt.Message.getFieldWithDefault(this,4,0)}set sort(e){Kt.Message.setField(this,4,e)}get created(){return Kt.Message.getFieldWithDefault(this,5,"")}set created(e){Kt.Message.setField(this,5,e)}get modified(){return Kt.Message.getFieldWithDefault(this,6,"")}set modified(e){Kt.Message.setField(this,6,e)}get ids(){return Kt.Message.getFieldWithDefault(this,7,[])}set ids(e){Kt.Message.setField(this,7,e)}get appIds(){return Kt.Message.getFieldWithDefault(this,8,[])}set appIds(e){Kt.Message.setField(this,8,e)}get remark(){return Kt.Message.getFieldWithDefault(this,9,"")}set remark(e){Kt.Message.setField(this,9,e)}get meta(){return Kt.Message.getWrapperField(this,Nt.Meta,10)}set meta(e){Kt.Message.setWrapperField(this,10,e)}get has_meta(){return null!=Kt.Message.getField(this,10)}get messageId(){return Kt.Message.getFieldWithDefault(this,11,"")}set messageId(e){Kt.Message.setField(this,11,e)}get destId(){return Kt.Message.getFieldWithDefault(this,12,"")}set destId(e){Kt.Message.setField(this,12,e)}get fromId(){return Kt.Message.getFieldWithDefault(this,13,"")}set fromId(e){Kt.Message.setField(this,13,e)}get nickname(){return Kt.Message.getFieldWithDefault(this,14,"")}set nickname(e){Kt.Message.setField(this,14,e)}get confirm(){return Kt.Message.getFieldWithDefault(this,15,"")}set confirm(e){Kt.Message.setField(this,15,e)}get read(){return Kt.Message.getFieldWithDefault(this,16,"")}set read(e){Kt.Message.setField(this,16,e)}get roomId(){return Kt.Message.getFieldWithDefault(this,17,0)}set roomId(e){Kt.Message.setField(this,17,e)}get type(){return Kt.Message.getFieldWithDefault(this,18,0)}set type(e){Kt.Message.setField(this,18,e)}static fromObject(e){const r=new t({});return null!=e.id&&(r.id=e.id),null!=e.appId&&(r.appId=e.appId),null!=e.v&&(r.v=e.v),null!=e.sort&&(r.sort=e.sort),null!=e.created&&(r.created=e.created),null!=e.modified&&(r.modified=e.modified),null!=e.ids&&(r.ids=e.ids),null!=e.appIds&&(r.appIds=e.appIds),null!=e.remark&&(r.remark=e.remark),null!=e.meta&&(r.meta=Nt.Meta.fromObject(e.meta)),null!=e.messageId&&(r.messageId=e.messageId),null!=e.destId&&(r.destId=e.destId),null!=e.fromId&&(r.fromId=e.fromId),null!=e.nickname&&(r.nickname=e.nickname),null!=e.confirm&&(r.confirm=e.confirm),null!=e.read&&(r.read=e.read),null!=e.roomId&&(r.roomId=e.roomId),null!=e.type&&(r.type=e.type),r}toObject(){const e={};return null!=this.id&&(e.id=this.id),null!=this.appId&&(e.appId=this.appId),null!=this.v&&(e.v=this.v),null!=this.sort&&(e.sort=this.sort),null!=this.created&&(e.created=this.created),null!=this.modified&&(e.modified=this.modified),null!=this.ids&&(e.ids=this.ids),null!=this.appIds&&(e.appIds=this.appIds),null!=this.remark&&(e.remark=this.remark),null!=this.meta&&(e.meta=this.meta.toObject()),null!=this.messageId&&(e.messageId=this.messageId),null!=this.destId&&(e.destId=this.destId),null!=this.fromId&&(e.fromId=this.fromId),null!=this.nickname&&(e.nickname=this.nickname),null!=this.confirm&&(e.confirm=this.confirm),null!=this.read&&(e.read=this.read),null!=this.roomId&&(e.roomId=this.roomId),null!=this.type&&(e.type=this.type),e}serialize(e){const t=e||new Kt.BinaryWriter;if(this.id.length&&t.writeString(1,this.id),0!=this.appId&&t.writeInt64(2,this.appId),0!=this.v&&t.writeDouble(3,this.v),0!=this.sort&&t.writeInt32(4,this.sort),this.created.length&&t.writeString(5,this.created),this.modified.length&&t.writeString(6,this.modified),this.ids.length&&t.writeRepeatedString(7,this.ids),this.appIds.length&&t.writeRepeatedString(8,this.appIds),this.remark.length&&t.writeString(9,this.remark),this.has_meta&&t.writeMessage(10,this.meta,()=>this.meta.serialize(t)),this.messageId.length&&t.writeString(11,this.messageId),this.destId.length&&t.writeString(12,this.destId),this.fromId.length&&t.writeString(13,this.fromId),this.nickname.length&&t.writeString(14,this.nickname),this.confirm.length&&t.writeString(15,this.confirm),this.read.length&&t.writeString(16,this.read),0!=this.roomId&&t.writeInt64(17,this.roomId),0!=this.type&&t.writeInt32(18,this.type),!e)return t.getResultBuffer()}static deserialize(e){const r=e instanceof Kt.BinaryReader?e:new Kt.BinaryReader(e),i=new t;for(;r.nextField()&&!r.isEndGroup();)switch(r.getFieldNumber()){case 1:i.id=r.readString();break;case 2:i.appId=r.readInt64();break;case 3:i.v=r.readDouble();break;case 4:i.sort=r.readInt32();break;case 5:i.created=r.readString();break;case 6:i.modified=r.readString();break;case 7:Kt.Message.addToRepeatedField(i,7,r.readString());break;case 8:Kt.Message.addToRepeatedField(i,8,r.readString());break;case 9:i.remark=r.readString();break;case 10:r.readMessage(i.meta,()=>i.meta=Nt.Meta.deserialize(r));break;case 11:i.messageId=r.readString();break;case 12:i.destId=r.readString();break;case 13:i.fromId=r.readString();break;case 14:i.nickname=r.readString();break;case 15:i.confirm=r.readString();break;case 16:i.read=r.readString();break;case 17:i.roomId=r.readInt64();break;case 18:i.type=r.readInt32();break;default:r.skipField()}return i}serializeBinary(){return this.serialize()}static deserializeBinary(e){return t.deserialize(e)}}e.MessageRemind=t}(Wt||(Wt={})),function(e){class t extends Kt.Message{#e=[];constructor(e){super(),Kt.Message.initialize(this,Array.isArray(e)?e:[],0,-1,[7,8,33,39],this.#e),Array.isArray(e)||"object"!=typeof e||("messageId"in e&&null!=e.messageId&&(this.messageId=e.messageId),"appId"in e&&null!=e.appId&&(this.appId=e.appId),"v"in e&&null!=e.v&&(this.v=e.v),"sort"in e&&null!=e.sort&&(this.sort=e.sort),"created"in e&&null!=e.created&&(this.created=e.created),"modified"in e&&null!=e.modified&&(this.modified=e.modified),"ids"in e&&null!=e.ids&&(this.ids=e.ids),"appIds"in e&&null!=e.appIds&&(this.appIds=e.appIds),"fromName"in e&&null!=e.fromName&&(this.fromName=e.fromName),"meta"in e&&null!=e.meta&&(this.meta=e.meta),"roomId"in e&&null!=e.roomId&&(this.roomId=e.roomId),"fromId"in e&&null!=e.fromId&&(this.fromId=e.fromId),"destId"in e&&null!=e.destId&&(this.destId=e.destId),"mimeType"in e&&null!=e.mimeType&&(this.mimeType=e.mimeType),"subtype"in e&&null!=e.subtype&&(this.subtype=e.subtype),"title"in e&&null!=e.title&&(this.title=e.title),"subtitle"in e&&null!=e.subtitle&&(this.subtitle=e.subtitle),"cite"in e&&null!=e.cite&&(this.cite=e.cite),"text"in e&&null!=e.text&&(this.text=e.text),"filename"in e&&null!=e.filename&&(this.filename=e.filename),"secret"in e&&null!=e.secret&&(this.secret=e.secret),"thumb"in e&&null!=e.thumb&&(this.thumb=e.thumb),"url"in e&&null!=e.url&&(this.url=e.url),"lat"in e&&null!=e.lat&&(this.lat=e.lat),"lng"in e&&null!=e.lng&&(this.lng=e.lng),"command"in e&&null!=e.command&&(this.command=e.command),"size"in e&&null!=e.size&&(this.size=e.size),"length"in e&&null!=e.length&&(this.length=e.length),"sent"in e&&null!=e.sent&&(this.sent=e.sent),"host"in e&&null!=e.host&&(this.host=e.host),"params"in e&&null!=e.params&&(this.params=e.params),"citeData"in e&&null!=e.citeData&&(this.citeData=e.citeData),"cc"in e&&null!=e.cc&&(this.cc=e.cc),"destName"in e&&null!=e.destName&&(this.destName=e.destName),"talkMode"in e&&null!=e.talkMode&&(this.talkMode=e.talkMode),"tag"in e&&null!=e.tag&&(this.tag=e.tag),"deviceKey"in e&&null!=e.deviceKey&&(this.deviceKey=e.deviceKey),"label"in e&&null!=e.label&&(this.label=e.label),"remind"in e&&null!=e.remind&&(this.remind=e.remind),"fromAccount"in e&&null!=e.fromAccount&&(this.fromAccount=e.fromAccount),"destAccount"in e&&null!=e.destAccount&&(this.destAccount=e.destAccount),"revoke"in e&&null!=e.revoke&&(this.revoke=e.revoke),"deviceTag"in e&&null!=e.deviceTag&&(this.deviceTag=e.deviceTag))}get messageId(){return Kt.Message.getFieldWithDefault(this,1,"")}set messageId(e){Kt.Message.setField(this,1,e)}get appId(){return Kt.Message.getFieldWithDefault(this,2,0)}set appId(e){Kt.Message.setField(this,2,e)}get v(){return Kt.Message.getFieldWithDefault(this,3,0)}set v(e){Kt.Message.setField(this,3,e)}get sort(){return Kt.Message.getFieldWithDefault(this,4,0)}set sort(e){Kt.Message.setField(this,4,e)}get created(){return Kt.Message.getFieldWithDefault(this,5,"")}set created(e){Kt.Message.setField(this,5,e)}get modified(){return Kt.Message.getFieldWithDefault(this,6,"")}set modified(e){Kt.Message.setField(this,6,e)}get ids(){return Kt.Message.getFieldWithDefault(this,7,[])}set ids(e){Kt.Message.setField(this,7,e)}get appIds(){return Kt.Message.getFieldWithDefault(this,8,[])}set appIds(e){Kt.Message.setField(this,8,e)}get fromName(){return Kt.Message.getFieldWithDefault(this,9,"")}set fromName(e){Kt.Message.setField(this,9,e)}get meta(){return Kt.Message.getWrapperField(this,Nt.Meta,10)}set meta(e){Kt.Message.setWrapperField(this,10,e)}get has_meta(){return null!=Kt.Message.getField(this,10)}get roomId(){return Kt.Message.getFieldWithDefault(this,11,0)}set roomId(e){Kt.Message.setField(this,11,e)}get fromId(){return Kt.Message.getFieldWithDefault(this,12,"")}set fromId(e){Kt.Message.setField(this,12,e)}get destId(){return Kt.Message.getFieldWithDefault(this,13,"")}set destId(e){Kt.Message.setField(this,13,e)}get mimeType(){return Kt.Message.getFieldWithDefault(this,14,"")}set mimeType(e){Kt.Message.setField(this,14,e)}get subtype(){return Kt.Message.getFieldWithDefault(this,15,0)}set subtype(e){Kt.Message.setField(this,15,e)}get title(){return Kt.Message.getFieldWithDefault(this,16,"")}set title(e){Kt.Message.setField(this,16,e)}get subtitle(){return Kt.Message.getFieldWithDefault(this,17,"")}set subtitle(e){Kt.Message.setField(this,17,e)}get cite(){return Kt.Message.getFieldWithDefault(this,18,"")}set cite(e){Kt.Message.setField(this,18,e)}get text(){return Kt.Message.getFieldWithDefault(this,19,"")}set text(e){Kt.Message.setField(this,19,e)}get filename(){return Kt.Message.getFieldWithDefault(this,20,"")}set filename(e){Kt.Message.setField(this,20,e)}get secret(){return Kt.Message.getFieldWithDefault(this,21,"")}set secret(e){Kt.Message.setField(this,21,e)}get thumb(){return Kt.Message.getFieldWithDefault(this,22,"")}set thumb(e){Kt.Message.setField(this,22,e)}get url(){return Kt.Message.getFieldWithDefault(this,23,"")}set url(e){Kt.Message.setField(this,23,e)}get lat(){return Kt.Message.getFieldWithDefault(this,24,"")}set lat(e){Kt.Message.setField(this,24,e)}get lng(){return Kt.Message.getFieldWithDefault(this,25,"")}set lng(e){Kt.Message.setField(this,25,e)}get command(){return Kt.Message.getFieldWithDefault(this,26,"")}set command(e){Kt.Message.setField(this,26,e)}get size(){return Kt.Message.getFieldWithDefault(this,27,0)}set size(e){Kt.Message.setField(this,27,e)}get length(){return Kt.Message.getFieldWithDefault(this,28,0)}set length(e){Kt.Message.setField(this,28,e)}get sent(){return Kt.Message.getFieldWithDefault(this,29,"")}set sent(e){Kt.Message.setField(this,29,e)}get host(){return Kt.Message.getFieldWithDefault(this,30,"")}set host(e){Kt.Message.setField(this,30,e)}get params(){return Kt.Message.getFieldWithDefault(this,31,"")}set params(e){Kt.Message.setField(this,31,e)}get citeData(){return Kt.Message.getWrapperField(this,t,32)}set citeData(e){Kt.Message.setWrapperField(this,32,e)}get has_citeData(){return null!=Kt.Message.getField(this,32)}get cc(){return Kt.Message.getRepeatedWrapperField(this,Wt.MessageRemind,33)}set cc(e){Kt.Message.setRepeatedWrapperField(this,33,e)}get destName(){return Kt.Message.getFieldWithDefault(this,34,"")}set destName(e){Kt.Message.setField(this,34,e)}get talkMode(){return Kt.Message.getFieldWithDefault(this,35,0)}set talkMode(e){Kt.Message.setField(this,35,e)}get tag(){return Kt.Message.getFieldWithDefault(this,36,"")}set tag(e){Kt.Message.setField(this,36,e)}get deviceKey(){return Kt.Message.getFieldWithDefault(this,37,"")}set deviceKey(e){Kt.Message.setField(this,37,e)}get label(){return Kt.Message.getFieldWithDefault(this,38,"")}set label(e){Kt.Message.setField(this,38,e)}get remind(){return Kt.Message.getRepeatedWrapperField(this,Wt.MessageRemind,39)}set remind(e){Kt.Message.setRepeatedWrapperField(this,39,e)}get fromAccount(){return Kt.Message.getFieldWithDefault(this,40,"")}set fromAccount(e){Kt.Message.setField(this,40,e)}get destAccount(){return Kt.Message.getFieldWithDefault(this,41,"")}set destAccount(e){Kt.Message.setField(this,41,e)}get revoke(){return Kt.Message.getFieldWithDefault(this,42,"")}set revoke(e){Kt.Message.setField(this,42,e)}get deviceTag(){return Kt.Message.getFieldWithDefault(this,43,"")}set deviceTag(e){Kt.Message.setField(this,43,e)}static fromObject(e){const r=new t({});return null!=e.messageId&&(r.messageId=e.messageId),null!=e.appId&&(r.appId=e.appId),null!=e.v&&(r.v=e.v),null!=e.sort&&(r.sort=e.sort),null!=e.created&&(r.created=e.created),null!=e.modified&&(r.modified=e.modified),null!=e.ids&&(r.ids=e.ids),null!=e.appIds&&(r.appIds=e.appIds),null!=e.fromName&&(r.fromName=e.fromName),null!=e.meta&&(r.meta=Nt.Meta.fromObject(e.meta)),null!=e.roomId&&(r.roomId=e.roomId),null!=e.fromId&&(r.fromId=e.fromId),null!=e.destId&&(r.destId=e.destId),null!=e.mimeType&&(r.mimeType=e.mimeType),null!=e.subtype&&(r.subtype=e.subtype),null!=e.title&&(r.title=e.title),null!=e.subtitle&&(r.subtitle=e.subtitle),null!=e.cite&&(r.cite=e.cite),null!=e.text&&(r.text=e.text),null!=e.filename&&(r.filename=e.filename),null!=e.secret&&(r.secret=e.secret),null!=e.thumb&&(r.thumb=e.thumb),null!=e.url&&(r.url=e.url),null!=e.lat&&(r.lat=e.lat),null!=e.lng&&(r.lng=e.lng),null!=e.command&&(r.command=e.command),null!=e.size&&(r.size=e.size),null!=e.length&&(r.length=e.length),null!=e.sent&&(r.sent=e.sent),null!=e.host&&(r.host=e.host),null!=e.params&&(r.params=e.params),null!=e.citeData&&(r.citeData=t.fromObject(e.citeData)),null!=e.cc&&(r.cc=e.cc.map(e=>Wt.MessageRemind.fromObject(e))),null!=e.destName&&(r.destName=e.destName),null!=e.talkMode&&(r.talkMode=e.talkMode),null!=e.tag&&(r.tag=e.tag),null!=e.deviceKey&&(r.deviceKey=e.deviceKey),null!=e.label&&(r.label=e.label),null!=e.remind&&(r.remind=e.remind.map(e=>Wt.MessageRemind.fromObject(e))),null!=e.fromAccount&&(r.fromAccount=e.fromAccount),null!=e.destAccount&&(r.destAccount=e.destAccount),null!=e.revoke&&(r.revoke=e.revoke),null!=e.deviceTag&&(r.deviceTag=e.deviceTag),r}toObject(){const e={};return null!=this.messageId&&(e.messageId=this.messageId),null!=this.appId&&(e.appId=this.appId),null!=this.v&&(e.v=this.v),null!=this.sort&&(e.sort=this.sort),null!=this.created&&(e.created=this.created),null!=this.modified&&(e.modified=this.modified),null!=this.ids&&(e.ids=this.ids),null!=this.appIds&&(e.appIds=this.appIds),null!=this.fromName&&(e.fromName=this.fromName),null!=this.meta&&(e.meta=this.meta.toObject()),null!=this.roomId&&(e.roomId=this.roomId),null!=this.fromId&&(e.fromId=this.fromId),null!=this.destId&&(e.destId=this.destId),null!=this.mimeType&&(e.mimeType=this.mimeType),null!=this.subtype&&(e.subtype=this.subtype),null!=this.title&&(e.title=this.title),null!=this.subtitle&&(e.subtitle=this.subtitle),null!=this.cite&&(e.cite=this.cite),null!=this.text&&(e.text=this.text),null!=this.filename&&(e.filename=this.filename),null!=this.secret&&(e.secret=this.secret),null!=this.thumb&&(e.thumb=this.thumb),null!=this.url&&(e.url=this.url),null!=this.lat&&(e.lat=this.lat),null!=this.lng&&(e.lng=this.lng),null!=this.command&&(e.command=this.command),null!=this.size&&(e.size=this.size),null!=this.length&&(e.length=this.length),null!=this.sent&&(e.sent=this.sent),null!=this.host&&(e.host=this.host),null!=this.params&&(e.params=this.params),null!=this.citeData&&(e.citeData=this.citeData.toObject()),null!=this.cc&&(e.cc=this.cc.map(e=>e.toObject())),null!=this.destName&&(e.destName=this.destName),null!=this.talkMode&&(e.talkMode=this.talkMode),null!=this.tag&&(e.tag=this.tag),null!=this.deviceKey&&(e.deviceKey=this.deviceKey),null!=this.label&&(e.label=this.label),null!=this.remind&&(e.remind=this.remind.map(e=>e.toObject())),null!=this.fromAccount&&(e.fromAccount=this.fromAccount),null!=this.destAccount&&(e.destAccount=this.destAccount),null!=this.revoke&&(e.revoke=this.revoke),null!=this.deviceTag&&(e.deviceTag=this.deviceTag),e}serialize(e){const t=e||new Kt.BinaryWriter;if(this.messageId.length&&t.writeString(1,this.messageId),0!=this.appId&&t.writeInt64(2,this.appId),0!=this.v&&t.writeDouble(3,this.v),0!=this.sort&&t.writeInt32(4,this.sort),this.created.length&&t.writeString(5,this.created),this.modified.length&&t.writeString(6,this.modified),this.ids.length&&t.writeRepeatedString(7,this.ids),this.appIds.length&&t.writeRepeatedString(8,this.appIds),this.fromName.length&&t.writeString(9,this.fromName),this.has_meta&&t.writeMessage(10,this.meta,()=>this.meta.serialize(t)),0!=this.roomId&&t.writeInt64(11,this.roomId),this.fromId.length&&t.writeString(12,this.fromId),this.destId.length&&t.writeString(13,this.destId),this.mimeType.length&&t.writeString(14,this.mimeType),0!=this.subtype&&t.writeInt32(15,this.subtype),this.title.length&&t.writeString(16,this.title),this.subtitle.length&&t.writeString(17,this.subtitle),this.cite.length&&t.writeString(18,this.cite),this.text.length&&t.writeString(19,this.text),this.filename.length&&t.writeString(20,this.filename),this.secret.length&&t.writeString(21,this.secret),this.thumb.length&&t.writeString(22,this.thumb),this.url.length&&t.writeString(23,this.url),this.lat.length&&t.writeString(24,this.lat),this.lng.length&&t.writeString(25,this.lng),this.command.length&&t.writeString(26,this.command),0!=this.size&&t.writeDouble(27,this.size),0!=this.length&&t.writeDouble(28,this.length),this.sent.length&&t.writeString(29,this.sent),this.host.length&&t.writeString(30,this.host),this.params.length&&t.writeString(31,this.params),this.has_citeData&&t.writeMessage(32,this.citeData,()=>this.citeData.serialize(t)),this.cc.length&&t.writeRepeatedMessage(33,this.cc,e=>e.serialize(t)),this.destName.length&&t.writeString(34,this.destName),0!=this.talkMode&&t.writeInt32(35,this.talkMode),this.tag.length&&t.writeString(36,this.tag),this.deviceKey.length&&t.writeString(37,this.deviceKey),this.label.length&&t.writeString(38,this.label),this.remind.length&&t.writeRepeatedMessage(39,this.remind,e=>e.serialize(t)),this.fromAccount.length&&t.writeString(40,this.fromAccount),this.destAccount.length&&t.writeString(41,this.destAccount),this.revoke.length&&t.writeString(42,this.revoke),this.deviceTag.length&&t.writeString(43,this.deviceTag),!e)return t.getResultBuffer()}static deserialize(e){const r=e instanceof Kt.BinaryReader?e:new Kt.BinaryReader(e),i=new t;for(;r.nextField()&&!r.isEndGroup();)switch(r.getFieldNumber()){case 1:i.messageId=r.readString();break;case 2:i.appId=r.readInt64();break;case 3:i.v=r.readDouble();break;case 4:i.sort=r.readInt32();break;case 5:i.created=r.readString();break;case 6:i.modified=r.readString();break;case 7:Kt.Message.addToRepeatedField(i,7,r.readString());break;case 8:Kt.Message.addToRepeatedField(i,8,r.readString());break;case 9:i.fromName=r.readString();break;case 10:r.readMessage(i.meta,()=>i.meta=Nt.Meta.deserialize(r));break;case 11:i.roomId=r.readInt64();break;case 12:i.fromId=r.readString();break;case 13:i.destId=r.readString();break;case 14:i.mimeType=r.readString();break;case 15:i.subtype=r.readInt32();break;case 16:i.title=r.readString();break;case 17:i.subtitle=r.readString();break;case 18:i.cite=r.readString();break;case 19:i.text=r.readString();break;case 20:i.filename=r.readString();break;case 21:i.secret=r.readString();break;case 22:i.thumb=r.readString();break;case 23:i.url=r.readString();break;case 24:i.lat=r.readString();break;case 25:i.lng=r.readString();break;case 26:i.command=r.readString();break;case 27:i.size=r.readDouble();break;case 28:i.length=r.readDouble();break;case 29:i.sent=r.readString();break;case 30:i.host=r.readString();break;case 31:i.params=r.readString();break;case 32:r.readMessage(i.citeData,()=>i.citeData=t.deserialize(r));break;case 33:r.readMessage(i.cc,()=>Kt.Message.addToRepeatedWrapperField(i,33,Wt.MessageRemind.deserialize(r),Wt.MessageRemind));break;case 34:i.destName=r.readString();break;case 35:i.talkMode=r.readInt32();break;case 36:i.tag=r.readString();break;case 37:i.deviceKey=r.readString();break;case 38:i.label=r.readString();break;case 39:r.readMessage(i.remind,()=>Kt.Message.addToRepeatedWrapperField(i,39,Wt.MessageRemind.deserialize(r),Wt.MessageRemind));break;case 40:i.fromAccount=r.readString();break;case 41:i.destAccount=r.readString();break;case 42:i.revoke=r.readString();break;case 43:i.deviceTag=r.readString();break;default:r.skipField()}return i}serializeBinary(){return this.serialize()}static deserializeBinary(e){return t.deserialize(e)}}e.Message=t}(zt||(zt={})),function(e){class t extends Kt.Message{#e=[];constructor(e){super(),Kt.Message.initialize(this,Array.isArray(e)?e:[],0,-1,[7,8,29,30],this.#e),Array.isArray(e)||"object"!=typeof e||("messageId"in e&&null!=e.messageId&&(this.messageId=e.messageId),"appId"in e&&null!=e.appId&&(this.appId=e.appId),"v"in e&&null!=e.v&&(this.v=e.v),"sort"in e&&null!=e.sort&&(this.sort=e.sort),"created"in e&&null!=e.created&&(this.created=e.created),"modified"in e&&null!=e.modified&&(this.modified=e.modified),"ids"in e&&null!=e.ids&&(this.ids=e.ids),"appIds"in e&&null!=e.appIds&&(this.appIds=e.appIds),"remark"in e&&null!=e.remark&&(this.remark=e.remark),"meta"in e&&null!=e.meta&&(this.meta=e.meta),"roomId"in e&&null!=e.roomId&&(this.roomId=e.roomId),"fromId"in e&&null!=e.fromId&&(this.fromId=e.fromId),"fromName"in e&&null!=e.fromName&&(this.fromName=e.fromName),"destId"in e&&null!=e.destId&&(this.destId=e.destId),"destName"in e&&null!=e.destName&&(this.destName=e.destName),"device"in e&&null!=e.device&&(this.device=e.device),"level"in e&&null!=e.level&&(this.level=e.level),"deviceKey"in e&&null!=e.deviceKey&&(this.deviceKey=e.deviceKey),"message"in e&&null!=e.message&&(this.message=e.message),"sent"in e&&null!=e.sent&&(this.sent=e.sent),"succeed"in e&&null!=e.succeed&&(this.succeed=e.succeed),"read"in e&&null!=e.read&&(this.read=e.read),"revoke"in e&&null!=e.revoke&&(this.revoke=e.revoke),"readBy"in e&&null!=e.readBy&&(this.readBy=e.readBy),"deviceTag"in e&&null!=e.deviceTag&&(this.deviceTag=e.deviceTag),"signId"in e&&null!=e.signId&&(this.signId=e.signId),"tag"in e&&null!=e.tag&&(this.tag=e.tag),"fromIds"in e&&null!=e.fromIds&&(this.fromIds=e.fromIds),"destIds"in e&&null!=e.destIds&&(this.destIds=e.destIds),"end"in e&&null!=e.end&&(this.end=e.end),"label"in e&&null!=e.label&&(this.label=e.label),"destAccount"in e&&null!=e.destAccount&&(this.destAccount=e.destAccount),"fromAccount"in e&&null!=e.fromAccount&&(this.fromAccount=e.fromAccount))}get messageId(){return Kt.Message.getFieldWithDefault(this,1,"")}set messageId(e){Kt.Message.setField(this,1,e)}get appId(){return Kt.Message.getFieldWithDefault(this,2,0)}set appId(e){Kt.Message.setField(this,2,e)}get v(){return Kt.Message.getFieldWithDefault(this,3,0)}set v(e){Kt.Message.setField(this,3,e)}get sort(){return Kt.Message.getFieldWithDefault(this,4,0)}set sort(e){Kt.Message.setField(this,4,e)}get created(){return Kt.Message.getFieldWithDefault(this,5,"")}set created(e){Kt.Message.setField(this,5,e)}get modified(){return Kt.Message.getFieldWithDefault(this,6,"")}set modified(e){Kt.Message.setField(this,6,e)}get ids(){return Kt.Message.getFieldWithDefault(this,7,[])}set ids(e){Kt.Message.setField(this,7,e)}get appIds(){return Kt.Message.getFieldWithDefault(this,8,[])}set appIds(e){Kt.Message.setField(this,8,e)}get remark(){return Kt.Message.getFieldWithDefault(this,9,"")}set remark(e){Kt.Message.setField(this,9,e)}get meta(){return Kt.Message.getWrapperField(this,Nt.Meta,10)}set meta(e){Kt.Message.setWrapperField(this,10,e)}get has_meta(){return null!=Kt.Message.getField(this,10)}get roomId(){return Kt.Message.getFieldWithDefault(this,11,0)}set roomId(e){Kt.Message.setField(this,11,e)}get fromId(){return Kt.Message.getFieldWithDefault(this,12,"")}set fromId(e){Kt.Message.setField(this,12,e)}get fromName(){return Kt.Message.getFieldWithDefault(this,13,"")}set fromName(e){Kt.Message.setField(this,13,e)}get destId(){return Kt.Message.getFieldWithDefault(this,14,"")}set destId(e){Kt.Message.setField(this,14,e)}get destName(){return Kt.Message.getFieldWithDefault(this,15,"")}set destName(e){Kt.Message.setField(this,15,e)}get device(){return Kt.Message.getFieldWithDefault(this,16,"")}set device(e){Kt.Message.setField(this,16,e)}get level(){return Kt.Message.getFieldWithDefault(this,17,0)}set level(e){Kt.Message.setField(this,17,e)}get deviceKey(){return Kt.Message.getFieldWithDefault(this,18,"")}set deviceKey(e){Kt.Message.setField(this,18,e)}get message(){return Kt.Message.getWrapperField(this,zt.Message,19)}set message(e){Kt.Message.setWrapperField(this,19,e)}get has_message(){return null!=Kt.Message.getField(this,19)}get sent(){return Kt.Message.getFieldWithDefault(this,20,"")}set sent(e){Kt.Message.setField(this,20,e)}get succeed(){return Kt.Message.getFieldWithDefault(this,21,"")}set succeed(e){Kt.Message.setField(this,21,e)}get read(){return Kt.Message.getFieldWithDefault(this,22,"")}set read(e){Kt.Message.setField(this,22,e)}get revoke(){return Kt.Message.getFieldWithDefault(this,23,"")}set revoke(e){Kt.Message.setField(this,23,e)}get readBy(){return Kt.Message.getFieldWithDefault(this,24,0)}set readBy(e){Kt.Message.setField(this,24,e)}get deviceTag(){return Kt.Message.getFieldWithDefault(this,25,"")}set deviceTag(e){Kt.Message.setField(this,25,e)}get signId(){return Kt.Message.getFieldWithDefault(this,27,"")}set signId(e){Kt.Message.setField(this,27,e)}get tag(){return Kt.Message.getFieldWithDefault(this,28,"")}set tag(e){Kt.Message.setField(this,28,e)}get fromIds(){return Kt.Message.getFieldWithDefault(this,29,[])}set fromIds(e){Kt.Message.setField(this,29,e)}get destIds(){return Kt.Message.getFieldWithDefault(this,30,[])}set destIds(e){Kt.Message.setField(this,30,e)}get end(){return Kt.Message.getFieldWithDefault(this,37,"")}set end(e){Kt.Message.setField(this,37,e)}get label(){return Kt.Message.getFieldWithDefault(this,38,"")}set label(e){Kt.Message.setField(this,38,e)}get destAccount(){return Kt.Message.getFieldWithDefault(this,39,"")}set destAccount(e){Kt.Message.setField(this,39,e)}get fromAccount(){return Kt.Message.getFieldWithDefault(this,40,"")}set fromAccount(e){Kt.Message.setField(this,40,e)}static fromObject(e){const r=new t({});return null!=e.messageId&&(r.messageId=e.messageId),null!=e.appId&&(r.appId=e.appId),null!=e.v&&(r.v=e.v),null!=e.sort&&(r.sort=e.sort),null!=e.created&&(r.created=e.created),null!=e.modified&&(r.modified=e.modified),null!=e.ids&&(r.ids=e.ids),null!=e.appIds&&(r.appIds=e.appIds),null!=e.remark&&(r.remark=e.remark),null!=e.meta&&(r.meta=Nt.Meta.fromObject(e.meta)),null!=e.roomId&&(r.roomId=e.roomId),null!=e.fromId&&(r.fromId=e.fromId),null!=e.fromName&&(r.fromName=e.fromName),null!=e.destId&&(r.destId=e.destId),null!=e.destName&&(r.destName=e.destName),null!=e.device&&(r.device=e.device),null!=e.level&&(r.level=e.level),null!=e.deviceKey&&(r.deviceKey=e.deviceKey),null!=e.message&&(r.message=zt.Message.fromObject(e.message)),null!=e.sent&&(r.sent=e.sent),null!=e.succeed&&(r.succeed=e.succeed),null!=e.read&&(r.read=e.read),null!=e.revoke&&(r.revoke=e.revoke),null!=e.readBy&&(r.readBy=e.readBy),null!=e.deviceTag&&(r.deviceTag=e.deviceTag),null!=e.signId&&(r.signId=e.signId),null!=e.tag&&(r.tag=e.tag),null!=e.fromIds&&(r.fromIds=e.fromIds),null!=e.destIds&&(r.destIds=e.destIds),null!=e.end&&(r.end=e.end),null!=e.label&&(r.label=e.label),null!=e.destAccount&&(r.destAccount=e.destAccount),null!=e.fromAccount&&(r.fromAccount=e.fromAccount),r}toObject(){const e={};return null!=this.messageId&&(e.messageId=this.messageId),null!=this.appId&&(e.appId=this.appId),null!=this.v&&(e.v=this.v),null!=this.sort&&(e.sort=this.sort),null!=this.created&&(e.created=this.created),null!=this.modified&&(e.modified=this.modified),null!=this.ids&&(e.ids=this.ids),null!=this.appIds&&(e.appIds=this.appIds),null!=this.remark&&(e.remark=this.remark),null!=this.meta&&(e.meta=this.meta.toObject()),null!=this.roomId&&(e.roomId=this.roomId),null!=this.fromId&&(e.fromId=this.fromId),null!=this.fromName&&(e.fromName=this.fromName),null!=this.destId&&(e.destId=this.destId),null!=this.destName&&(e.destName=this.destName),null!=this.device&&(e.device=this.device),null!=this.level&&(e.level=this.level),null!=this.deviceKey&&(e.deviceKey=this.deviceKey),null!=this.message&&(e.message=this.message.toObject()),null!=this.sent&&(e.sent=this.sent),null!=this.succeed&&(e.succeed=this.succeed),null!=this.read&&(e.read=this.read),null!=this.revoke&&(e.revoke=this.revoke),null!=this.readBy&&(e.readBy=this.readBy),null!=this.deviceTag&&(e.deviceTag=this.deviceTag),null!=this.signId&&(e.signId=this.signId),null!=this.tag&&(e.tag=this.tag),null!=this.fromIds&&(e.fromIds=this.fromIds),null!=this.destIds&&(e.destIds=this.destIds),null!=this.end&&(e.end=this.end),null!=this.label&&(e.label=this.label),null!=this.destAccount&&(e.destAccount=this.destAccount),null!=this.fromAccount&&(e.fromAccount=this.fromAccount),e}serialize(e){const t=e||new Kt.BinaryWriter;if(this.messageId.length&&t.writeString(1,this.messageId),0!=this.appId&&t.writeInt64(2,this.appId),0!=this.v&&t.writeDouble(3,this.v),0!=this.sort&&t.writeInt32(4,this.sort),this.created.length&&t.writeString(5,this.created),this.modified.length&&t.writeString(6,this.modified),this.ids.length&&t.writeRepeatedString(7,this.ids),this.appIds.length&&t.writeRepeatedString(8,this.appIds),this.remark.length&&t.writeString(9,this.remark),this.has_meta&&t.writeMessage(10,this.meta,()=>this.meta.serialize(t)),0!=this.roomId&&t.writeInt64(11,this.roomId),this.fromId.length&&t.writeString(12,this.fromId),this.fromName.length&&t.writeString(13,this.fromName),this.destId.length&&t.writeString(14,this.destId),this.destName.length&&t.writeString(15,this.destName),this.device.length&&t.writeString(16,this.device),0!=this.level&&t.writeInt32(17,this.level),this.deviceKey.length&&t.writeString(18,this.deviceKey),this.has_message&&t.writeMessage(19,this.message,()=>this.message.serialize(t)),this.sent.length&&t.writeString(20,this.sent),this.succeed.length&&t.writeString(21,this.succeed),this.read.length&&t.writeString(22,this.read),this.revoke.length&&t.writeString(23,this.revoke),0!=this.readBy&&t.writeInt32(24,this.readBy),this.deviceTag.length&&t.writeString(25,this.deviceTag),this.signId.length&&t.writeString(27,this.signId),this.tag.length&&t.writeString(28,this.tag),this.fromIds.length&&t.writeRepeatedString(29,this.fromIds),this.destIds.length&&t.writeRepeatedString(30,this.destIds),this.end.length&&t.writeString(37,this.end),this.label.length&&t.writeString(38,this.label),this.destAccount.length&&t.writeString(39,this.destAccount),this.fromAccount.length&&t.writeString(40,this.fromAccount),!e)return t.getResultBuffer()}static deserialize(e){const r=e instanceof Kt.BinaryReader?e:new Kt.BinaryReader(e),i=new t;for(;r.nextField()&&!r.isEndGroup();)switch(r.getFieldNumber()){case 1:i.messageId=r.readString();break;case 2:i.appId=r.readInt64();break;case 3:i.v=r.readDouble();break;case 4:i.sort=r.readInt32();break;case 5:i.created=r.readString();break;case 6:i.modified=r.readString();break;case 7:Kt.Message.addToRepeatedField(i,7,r.readString());break;case 8:Kt.Message.addToRepeatedField(i,8,r.readString());break;case 9:i.remark=r.readString();break;case 10:r.readMessage(i.meta,()=>i.meta=Nt.Meta.deserialize(r));break;case 11:i.roomId=r.readInt64();break;case 12:i.fromId=r.readString();break;case 13:i.fromName=r.readString();break;case 14:i.destId=r.readString();break;case 15:i.destName=r.readString();break;case 16:i.device=r.readString();break;case 17:i.level=r.readInt32();break;case 18:i.deviceKey=r.readString();break;case 19:r.readMessage(i.message,()=>i.message=zt.Message.deserialize(r));break;case 20:i.sent=r.readString();break;case 21:i.succeed=r.readString();break;case 22:i.read=r.readString();break;case 23:i.revoke=r.readString();break;case 24:i.readBy=r.readInt32();break;case 25:i.deviceTag=r.readString();break;case 27:i.signId=r.readString();break;case 28:i.tag=r.readString();break;case 29:Kt.Message.addToRepeatedField(i,29,r.readString());break;case 30:Kt.Message.addToRepeatedField(i,30,r.readString());break;case 37:i.end=r.readString();break;case 38:i.label=r.readString();break;case 39:i.destAccount=r.readString();break;case 40:i.fromAccount=r.readString();break;default:r.skipField()}return i}serializeBinary(){return this.serialize()}static deserializeBinary(e){return t.deserialize(e)}}e.MessageSign=t}(Ht||(Ht={}));var Xt,Jt,Zt=r(8287).hp,Qt=jt.Contacts,$t=Ut.Rooms,er=Ht.MessageSign,tr=zt.Message;class rr extends Yt{static instance;client=null;constructor(){super()}static getInstance(){return rr.instance||(rr.instance=new rr),rr.instance}setClient(e){return this.client=e,this}getContactList(e=1,t=50){return new Promise((r,i)=>{if(this.checkSocket().length)return void i(new Error(this.checkSocket()));this.client.meta.page=e,this.client.meta.pageSize=t;const n=new Qt({meta:this.client.meta,joinRoomId:this.client.meta.roomId});let s=[];this.client.socket?.requestStream({data:Zt.from(n.serializeBinary().buffer),metadata:this.buildRoute("contact.list")},3e3,{onComplete:()=>{r(s)},onNext:(e,t)=>{try{if(e.data){let t=Qt.deserialize(e.data),r=this.buildContact(t);if(s.push(r),this.client){let e=this.client.contactList.findIndex(e=>e.contactId==r.contactId);-1==e?this.client.contactList.push(r):this.client.contactList.splice(e,1,r)}}}catch(e){i(new Error("IO Client Error"))}},onError:e=>{let t=e?.message+"",r=this.onError(t);r.length>0?i(new Error(r)):i(new Error(t))},onExtension(e,t,r){}})})}getContactBlackList(e=1){return new Promise((t,r)=>{if(this.checkSocket().length)return void r(new Error(this.checkSocket()));this.client.meta.page=e;const i=new Qt({meta:this.client.meta,joinRoomId:this.client.meta.roomId});let n=[];this.client.socket?.requestStream({data:Zt.from(i.serializeBinary().buffer),metadata:this.buildRoute("contact.black.list")},3e3,{onComplete:()=>{t(n)},onNext:(e,t)=>{try{if(e.data){let t=Qt.deserialize(e.data),r=this.buildContact(t);n.push(r)}}catch(e){r(new Error("IO Client Error"))}},onError:e=>{let t=e?.message+"",i=this.onError(t);i.length>0?r(new Error(i)):r(new Error(t))},onExtension(e,t,r){}})})}getContactByUserId(e){return new Promise((t,r)=>{if(this.checkSocket().length)return void r(new Error(this.checkSocket()));const i=new Qt({meta:this.client.meta,userId:e});let n=[];this.client.socket?.requestResponse({data:Zt.from(i.serializeBinary().buffer),metadata:this.buildRoute("contact.byUserId")},{onComplete:()=>{},onNext:(e,i)=>{try{if(e.data){let r=Qt.deserialize(e.data),s=this.buildContact(r);n.push(s),i&&t(s)}}catch(e){r(new Error("IO Client Error"))}},onError:e=>{let t=e?.message+"",i=this.onError(t);i.length>0?r(new Error(i)):r(new Error(t))},onExtension(e,t,r){}})})}getContactByJoinId(e){return new Promise((t,r)=>{if(this.checkSocket().length)return void r(new Error(this.checkSocket()));const i=new Qt({meta:this.client.meta,joinRoomId:e});let n=null;this.client.socket?.requestResponse({data:Zt.from(i.serializeBinary().buffer),metadata:this.buildRoute("contact.byJoinId")},{onComplete:()=>{t(n)},onNext:(e,i)=>{try{if(e.data){let r=Qt.deserialize(e.data),s=this.buildContact(r);n=s,i&&t(n)}}catch(e){r(new Error("IO Client Error"))}},onError:e=>{let t=e?.message+"",i=this.onError(t);i.length>0?r(new Error(i)):r(new Error(t))},onExtension(e,t,r){}})})}addContact(e,t){return new Promise((r,i)=>{if(this.checkSocket().length)return void i(new Error(this.checkSocket()));const n=new Qt({meta:this.client.meta,joinRoomId:e,remark:t});let s=null;this.client.socket?.requestResponse({data:Zt.from(n.serializeBinary().buffer),metadata:this.buildRoute("contact.add")},{onComplete:()=>{r(s)},onNext:(e,t)=>{try{if(e.data){let i=$t.deserialize(e.data),n=this.buildGroup(i);s=n,t&&r(s)}}catch(e){i(new Error("IO Client Error"))}},onError:e=>{let t=e?.message+"",r=this.onError(t);r.length>0?i(new Error(r)):i(new Error(t))},onExtension(e,t,r){}})})}handleApply(e,t,r){return new Promise((i,n)=>{if(this.checkSocket().length)return void n(new Error(this.checkSocket()));const s=new Qt({meta:this.client.meta,account:e,apply:t?1:0,remark:r});let a=null;this.client.socket?.requestResponse({data:Zt.from(s.serializeBinary().buffer),metadata:this.buildRoute("handle.apply")},{onComplete:()=>{i(a)},onNext:(e,t)=>{try{if(e.data){let r=$t.deserialize(e.data),n=this.buildGroup(r);a=n,t&&i(a)}}catch(e){n(new Error("IO Client Error"))}},onError:e=>{let t=e?.message+"",r=this.onError(t);r.length>0?n(new Error(r)):n(new Error(t))},onExtension(e,t,r){}})})}setRemarkName(e,t){return new Promise(async(r,i)=>{if(this.checkSocket().length)return void i(new Error(this.checkSocket()));let n=await this.getContactByJoinId(e);if(!n)return void i(new Error("联系人获取失败"));const s=new Qt({meta:this.client.meta,id:n.contactId,username:t});let a=null;this.client.socket?.requestResponse({data:Zt.from(s.serializeBinary().buffer),metadata:this.buildRoute("contact.username")},{onComplete:()=>{r(a)},onNext:(e,t)=>{try{if(e.data){let i=Qt.deserialize(e.data),n=this.buildContact(i);a=n,t&&r(a)}}catch(e){i(new Error("IO Client Error"))}},onError:e=>{let t=e?.message+"",r=this.onError(t);r.length>0?i(new Error(r)):i(new Error(t))},onExtension(e,t,r){}})})}setNoticeLevel(e,t){return new Promise(async(r,i)=>{if(this.checkSocket().length)return void i(new Error(this.checkSocket()));let n=await this.getContactByJoinId(e);if(!n)return void i(new Error("联系人获取失败"));const s=new Qt({meta:this.client.meta,id:n.contactId,noise:t});let a=null;this.client.socket?.requestResponse({data:Zt.from(s.serializeBinary().buffer),metadata:this.buildRoute("contact.noise")},{onComplete:()=>{r(a)},onNext:(e,t)=>{try{if(e.data){let i=Qt.deserialize(e.data),n=this.buildContact(i);a=n,t&&r(a)}}catch(e){i(new Error("IO Client Error"))}},onError:e=>{let t=e?.message+"",r=this.onError(t);r.length>0?i(new Error(r)):i(new Error(t))},onExtension(e,t,r){}})})}setBlack(e,t){return new Promise(async(r,i)=>{if(this.checkSocket().length)return void i(new Error(this.checkSocket()));let n=await this.getContactByJoinId(e);if(!n)return void i(new Error("联系人获取失败"));if(n.isGroup)return void i(new Error("群禁止设置"));const s=new Qt({meta:this.client.meta,userId:n.userId,black:t});let a=null;this.client.socket?.requestResponse({data:Zt.from(s.serializeBinary().buffer),metadata:this.buildRoute("contact.black")},{onComplete:()=>{r(a)},onNext:(e,t)=>{try{if(e.data){let i=Qt.deserialize(e.data),n=this.buildContact(i);a=n,t&&r(a)}}catch(e){i(new Error("IO Client Error"))}},onError:e=>{let t=e?.message+"",r=this.onError(t);r.length>0?i(new Error(r)):i(new Error(t))},onExtension(e,t,r){}})})}delete(e){return new Promise(async(t,r)=>{if(this.checkSocket().length)return void r(new Error(this.checkSocket()));let i=await this.getContactByJoinId(e);if(!i)return void r(new Error("联系人获取失败"));if(i.isGroup)return void r(new Error("群禁止设置"));const n=new Qt({meta:this.client.meta,userId:i.userId});this.client.socket?.requestResponse({data:Zt.from(n.serializeBinary().buffer),metadata:this.buildRoute("contact.delete")},{onComplete:()=>{t(null)},onNext:(e,i)=>{try{e.data&&i&&t("")}catch(e){r(new Error("IO Client Error"))}},onError:e=>{let t=e?.message+"",i=this.onError(t);i.length>0?r(new Error(i)):r(new Error(t))},onExtension(e,t,r){}})})}setSubgroup(e,t){return new Promise(async(r,i)=>{if(this.checkSocket().length)return void i(new Error(this.checkSocket()));let n=await this.getContactByJoinId(e);if(!n)return void i(new Error("联系人获取失败"));const s=new Qt({meta:this.client.meta,userId:n.userId,subgroup:t});let a=null;this.client.socket?.requestResponse({data:Zt.from(s.serializeBinary().buffer),metadata:this.buildRoute("contact.subgroup")},{onComplete:()=>{r(a)},onNext:(e,t)=>{try{if(e.data){let i=Qt.deserialize(e.data),n=this.buildContact(i);a=n,t&&r(a)}}catch(e){i(new Error("IO Client Error"))}},onError:e=>{let t=e?.message+"",r=this.onError(t);r.length>0?i(new Error(r)):i(new Error(t))},onExtension(e,t,r){}})})}setSort(e,t){return new Promise(async(r,i)=>{if(this.checkSocket().length)return void i(new Error(this.checkSocket()));let n=await this.getContactByJoinId(e);if(!n)return void i(new Error("联系人获取失败"));const s=new Qt({meta:this.client.meta,userId:n.userId,sort:t});let a=null;this.client.socket?.requestResponse({data:Zt.from(s.serializeBinary().buffer),metadata:this.buildRoute("contact.sort")},{onComplete:()=>{r(a)},onNext:(e,t)=>{try{if(e.data){let i=Qt.deserialize(e.data),n=this.buildContact(i);a=n,t&&r(a)}}catch(e){i(new Error("IO Client Error"))}},onError:e=>{let t=e?.message+"",r=this.onError(t);r.length>0?i(new Error(r)):i(new Error(t))},onExtension(e,t,r){}})})}messageNotSign(){return new Promise(async(e,t)=>{if(this.checkSocket().length)return void t(new Error(this.checkSocket()));const r=new er({meta:this.client.meta,roomId:this.client.meta.roomId});let i=[];this.client.socket?.requestStream({data:Zt.from(r.serializeBinary().buffer),metadata:this.buildRoute("message.not.sign")},300,{onComplete:()=>{e(i)},onNext:(e,r)=>{try{if(e.data){let t=tr.deserialize(e.data),r=this.buildMessage(t);i.push(r);try{for(let e of this.client.messageListener)try{e?.onMessage?.(r)}catch(e){}}catch(e){}}}catch(e){t(new Error("IO Client Error"))}},onError:e=>{let r=e?.message+"",i=this.onError(r);i.length>0?t(new Error(i)):t(new Error(r))},onExtension(e,t,r){}})})}onError(e){if(e.indexOf("Jwt")>-1){try{this.client.clientListener?.onTokenExpired()}catch(e){}return"IO Token 已过期"}return e.indexOf("SQL")>-1||e.indexOf("connect")>-1?"IO System Error":e.indexOf("terminal")>-1||e.indexOf("signal")>-1?"请求超时":""}checkSocket(){return this.client?this.client.socket?0==this.client.getTokenAppId()||this.client.getTokenAppId()!=this.client.meta.appId?"token中的AppId 与 IMIOClientOption不一致":"":"IO Client 尚未建立连接":"IO Client 不存在"}}!function(e){class t extends Kt.Message{#e=[];constructor(e){super(),Kt.Message.initialize(this,Array.isArray(e)?e:[],0,-1,[7,8,28,29],this.#e),Array.isArray(e)||"object"!=typeof e||("id"in e&&null!=e.id&&(this.id=e.id),"appId"in e&&null!=e.appId&&(this.appId=e.appId),"v"in e&&null!=e.v&&(this.v=e.v),"sort"in e&&null!=e.sort&&(this.sort=e.sort),"created"in e&&null!=e.created&&(this.created=e.created),"modified"in e&&null!=e.modified&&(this.modified=e.modified),"ids"in e&&null!=e.ids&&(this.ids=e.ids),"appIds"in e&&null!=e.appIds&&(this.appIds=e.appIds),"remark"in e&&null!=e.remark&&(this.remark=e.remark),"meta"in e&&null!=e.meta&&(this.meta=e.meta),"userId"in e&&null!=e.userId&&(this.userId=e.userId),"account"in e&&null!=e.account&&(this.account=e.account),"nickname"in e&&null!=e.nickname&&(this.nickname=e.nickname),"username"in e&&null!=e.username&&(this.username=e.username),"avatar"in e&&null!=e.avatar&&(this.avatar=e.avatar),"role"in e&&null!=e.role&&(this.role=e.role),"deviceKey"in e&&null!=e.deviceKey&&(this.deviceKey=e.deviceKey),"muted"in e&&null!=e.muted&&(this.muted=e.muted),"deviceTag"in e&&null!=e.deviceTag&&(this.deviceTag=e.deviceTag),"roomId"in e&&null!=e.roomId&&(this.roomId=e.roomId),"black"in e&&null!=e.black&&(this.black=e.black),"talkMode"in e&&null!=e.talkMode&&(this.talkMode=e.talkMode),"teamname"in e&&null!=e.teamname&&(this.teamname=e.teamname),"noise"in e&&null!=e.noise&&(this.noise=e.noise),"topic"in e&&null!=e.topic&&(this.topic=e.topic),"joinTeamId"in e&&null!=e.joinTeamId&&(this.joinTeamId=e.joinTeamId),"fromTeamId"in e&&null!=e.fromTeamId&&(this.fromTeamId=e.fromTeamId),"teamIds"in e&&null!=e.teamIds&&(this.teamIds=e.teamIds),"userIds"in e&&null!=e.userIds&&(this.userIds=e.userIds),"joinTime"in e&&null!=e.joinTime&&(this.joinTime=e.joinTime))}get id(){return Kt.Message.getFieldWithDefault(this,1,0)}set id(e){Kt.Message.setField(this,1,e)}get appId(){return Kt.Message.getFieldWithDefault(this,2,0)}set appId(e){Kt.Message.setField(this,2,e)}get v(){return Kt.Message.getFieldWithDefault(this,3,0)}set v(e){Kt.Message.setField(this,3,e)}get sort(){return Kt.Message.getFieldWithDefault(this,4,0)}set sort(e){Kt.Message.setField(this,4,e)}get created(){return Kt.Message.getFieldWithDefault(this,5,"")}set created(e){Kt.Message.setField(this,5,e)}get modified(){return Kt.Message.getFieldWithDefault(this,6,"")}set modified(e){Kt.Message.setField(this,6,e)}get ids(){return Kt.Message.getFieldWithDefault(this,7,[])}set ids(e){Kt.Message.setField(this,7,e)}get appIds(){return Kt.Message.getFieldWithDefault(this,8,[])}set appIds(e){Kt.Message.setField(this,8,e)}get remark(){return Kt.Message.getFieldWithDefault(this,9,"")}set remark(e){Kt.Message.setField(this,9,e)}get meta(){return Kt.Message.getWrapperField(this,Nt.Meta,10)}set meta(e){Kt.Message.setWrapperField(this,10,e)}get has_meta(){return null!=Kt.Message.getField(this,10)}get userId(){return Kt.Message.getFieldWithDefault(this,11,"")}set userId(e){Kt.Message.setField(this,11,e)}get account(){return Kt.Message.getFieldWithDefault(this,12,"")}set account(e){Kt.Message.setField(this,12,e)}get nickname(){return Kt.Message.getFieldWithDefault(this,13,"")}set nickname(e){Kt.Message.setField(this,13,e)}get username(){return Kt.Message.getFieldWithDefault(this,14,"")}set username(e){Kt.Message.setField(this,14,e)}get avatar(){return Kt.Message.getFieldWithDefault(this,15,"")}set avatar(e){Kt.Message.setField(this,15,e)}get role(){return Kt.Message.getFieldWithDefault(this,16,"")}set role(e){Kt.Message.setField(this,16,e)}get deviceKey(){return Kt.Message.getFieldWithDefault(this,17,"")}set deviceKey(e){Kt.Message.setField(this,17,e)}get muted(){return Kt.Message.getFieldWithDefault(this,18,0)}set muted(e){Kt.Message.setField(this,18,e)}get deviceTag(){return Kt.Message.getFieldWithDefault(this,19,"")}set deviceTag(e){Kt.Message.setField(this,19,e)}get roomId(){return Kt.Message.getFieldWithDefault(this,20,0)}set roomId(e){Kt.Message.setField(this,20,e)}get black(){return Kt.Message.getFieldWithDefault(this,21,0)}set black(e){Kt.Message.setField(this,21,e)}get talkMode(){return Kt.Message.getFieldWithDefault(this,22,0)}set talkMode(e){Kt.Message.setField(this,22,e)}get teamname(){return Kt.Message.getFieldWithDefault(this,23,"")}set teamname(e){Kt.Message.setField(this,23,e)}get noise(){return Kt.Message.getFieldWithDefault(this,24,0)}set noise(e){Kt.Message.setField(this,24,e)}get topic(){return Kt.Message.getFieldWithDefault(this,25,"")}set topic(e){Kt.Message.setField(this,25,e)}get joinTeamId(){return Kt.Message.getFieldWithDefault(this,26,0)}set joinTeamId(e){Kt.Message.setField(this,26,e)}get fromTeamId(){return Kt.Message.getFieldWithDefault(this,27,0)}set fromTeamId(e){Kt.Message.setField(this,27,e)}get teamIds(){return Kt.Message.getFieldWithDefault(this,28,[])}set teamIds(e){Kt.Message.setField(this,28,e)}get userIds(){return Kt.Message.getFieldWithDefault(this,29,[])}set userIds(e){Kt.Message.setField(this,29,e)}get joinTime(){return Kt.Message.getFieldWithDefault(this,30,"")}set joinTime(e){Kt.Message.setField(this,30,e)}static fromObject(e){const r=new t({});return null!=e.id&&(r.id=e.id),null!=e.appId&&(r.appId=e.appId),null!=e.v&&(r.v=e.v),null!=e.sort&&(r.sort=e.sort),null!=e.created&&(r.created=e.created),null!=e.modified&&(r.modified=e.modified),null!=e.ids&&(r.ids=e.ids),null!=e.appIds&&(r.appIds=e.appIds),null!=e.remark&&(r.remark=e.remark),null!=e.meta&&(r.meta=Nt.Meta.fromObject(e.meta)),null!=e.userId&&(r.userId=e.userId),null!=e.account&&(r.account=e.account),null!=e.nickname&&(r.nickname=e.nickname),null!=e.username&&(r.username=e.username),null!=e.avatar&&(r.avatar=e.avatar),null!=e.role&&(r.role=e.role),null!=e.deviceKey&&(r.deviceKey=e.deviceKey),null!=e.muted&&(r.muted=e.muted),null!=e.deviceTag&&(r.deviceTag=e.deviceTag),null!=e.roomId&&(r.roomId=e.roomId),null!=e.black&&(r.black=e.black),null!=e.talkMode&&(r.talkMode=e.talkMode),null!=e.teamname&&(r.teamname=e.teamname),null!=e.noise&&(r.noise=e.noise),null!=e.topic&&(r.topic=e.topic),null!=e.joinTeamId&&(r.joinTeamId=e.joinTeamId),null!=e.fromTeamId&&(r.fromTeamId=e.fromTeamId),null!=e.teamIds&&(r.teamIds=e.teamIds),null!=e.userIds&&(r.userIds=e.userIds),null!=e.joinTime&&(r.joinTime=e.joinTime),r}toObject(){const e={};return null!=this.id&&(e.id=this.id),null!=this.appId&&(e.appId=this.appId),null!=this.v&&(e.v=this.v),null!=this.sort&&(e.sort=this.sort),null!=this.created&&(e.created=this.created),null!=this.modified&&(e.modified=this.modified),null!=this.ids&&(e.ids=this.ids),null!=this.appIds&&(e.appIds=this.appIds),null!=this.remark&&(e.remark=this.remark),null!=this.meta&&(e.meta=this.meta.toObject()),null!=this.userId&&(e.userId=this.userId),null!=this.account&&(e.account=this.account),null!=this.nickname&&(e.nickname=this.nickname),null!=this.username&&(e.username=this.username),null!=this.avatar&&(e.avatar=this.avatar),null!=this.role&&(e.role=this.role),null!=this.deviceKey&&(e.deviceKey=this.deviceKey),null!=this.muted&&(e.muted=this.muted),null!=this.deviceTag&&(e.deviceTag=this.deviceTag),null!=this.roomId&&(e.roomId=this.roomId),null!=this.black&&(e.black=this.black),null!=this.talkMode&&(e.talkMode=this.talkMode),null!=this.teamname&&(e.teamname=this.teamname),null!=this.noise&&(e.noise=this.noise),null!=this.topic&&(e.topic=this.topic),null!=this.joinTeamId&&(e.joinTeamId=this.joinTeamId),null!=this.fromTeamId&&(e.fromTeamId=this.fromTeamId),null!=this.teamIds&&(e.teamIds=this.teamIds),null!=this.userIds&&(e.userIds=this.userIds),null!=this.joinTime&&(e.joinTime=this.joinTime),e}serialize(e){const t=e||new Kt.BinaryWriter;if(0!=this.id&&t.writeInt64(1,this.id),0!=this.appId&&t.writeInt64(2,this.appId),0!=this.v&&t.writeDouble(3,this.v),0!=this.sort&&t.writeInt32(4,this.sort),this.created.length&&t.writeString(5,this.created),this.modified.length&&t.writeString(6,this.modified),this.ids.length&&t.writeRepeatedString(7,this.ids),this.appIds.length&&t.writeRepeatedString(8,this.appIds),this.remark.length&&t.writeString(9,this.remark),this.has_meta&&t.writeMessage(10,this.meta,()=>this.meta.serialize(t)),this.userId.length&&t.writeString(11,this.userId),this.account.length&&t.writeString(12,this.account),this.nickname.length&&t.writeString(13,this.nickname),this.username.length&&t.writeString(14,this.username),this.avatar.length&&t.writeString(15,this.avatar),this.role.length&&t.writeString(16,this.role),this.deviceKey.length&&t.writeString(17,this.deviceKey),0!=this.muted&&t.writeInt32(18,this.muted),this.deviceTag.length&&t.writeString(19,this.deviceTag),0!=this.roomId&&t.writeInt64(20,this.roomId),0!=this.black&&t.writeInt32(21,this.black),0!=this.talkMode&&t.writeInt32(22,this.talkMode),this.teamname.length&&t.writeString(23,this.teamname),0!=this.noise&&t.writeInt32(24,this.noise),this.topic.length&&t.writeString(25,this.topic),0!=this.joinTeamId&&t.writeInt64(26,this.joinTeamId),0!=this.fromTeamId&&t.writeInt64(27,this.fromTeamId),this.teamIds.length&&t.writePackedInt64(28,this.teamIds),this.userIds.length&&t.writePackedInt64(29,this.userIds),this.joinTime.length&&t.writeString(30,this.joinTime),!e)return t.getResultBuffer()}static deserialize(e){const r=e instanceof Kt.BinaryReader?e:new Kt.BinaryReader(e),i=new t;for(;r.nextField()&&!r.isEndGroup();)switch(r.getFieldNumber()){case 1:i.id=r.readInt64();break;case 2:i.appId=r.readInt64();break;case 3:i.v=r.readDouble();break;case 4:i.sort=r.readInt32();break;case 5:i.created=r.readString();break;case 6:i.modified=r.readString();break;case 7:Kt.Message.addToRepeatedField(i,7,r.readString());break;case 8:Kt.Message.addToRepeatedField(i,8,r.readString());break;case 9:i.remark=r.readString();break;case 10:r.readMessage(i.meta,()=>i.meta=Nt.Meta.deserialize(r));break;case 11:i.userId=r.readString();break;case 12:i.account=r.readString();break;case 13:i.nickname=r.readString();break;case 14:i.username=r.readString();break;case 15:i.avatar=r.readString();break;case 16:i.role=r.readString();break;case 17:i.deviceKey=r.readString();break;case 18:i.muted=r.readInt32();break;case 19:i.deviceTag=r.readString();break;case 20:i.roomId=r.readInt64();break;case 21:i.black=r.readInt32();break;case 22:i.talkMode=r.readInt32();break;case 23:i.teamname=r.readString();break;case 24:i.noise=r.readInt32();break;case 25:i.topic=r.readString();break;case 26:i.joinTeamId=r.readInt64();break;case 27:i.fromTeamId=r.readInt64();break;case 28:i.teamIds=r.readPackedInt64();break;case 29:i.userIds=r.readPackedInt64();break;case 30:i.joinTime=r.readString();break;default:r.skipField()}return i}serializeBinary(){return this.serialize()}static deserializeBinary(e){return t.deserialize(e)}}e.TeamContact=t}(Xt||(Xt={})),function(e){class t extends Kt.Message{#e=[];constructor(e){super(),Kt.Message.initialize(this,Array.isArray(e)?e:[],0,-1,[7,8,24],this.#e),Array.isArray(e)||"object"!=typeof e||("id"in e&&null!=e.id&&(this.id=e.id),"appId"in e&&null!=e.appId&&(this.appId=e.appId),"v"in e&&null!=e.v&&(this.v=e.v),"sort"in e&&null!=e.sort&&(this.sort=e.sort),"created"in e&&null!=e.created&&(this.created=e.created),"modified"in e&&null!=e.modified&&(this.modified=e.modified),"ids"in e&&null!=e.ids&&(this.ids=e.ids),"appIds"in e&&null!=e.appIds&&(this.appIds=e.appIds),"remark"in e&&null!=e.remark&&(this.remark=e.remark),"meta"in e&&null!=e.meta&&(this.meta=e.meta),"userId"in e&&null!=e.userId&&(this.userId=e.userId),"teamname"in e&&null!=e.teamname&&(this.teamname=e.teamname),"roomId"in e&&null!=e.roomId&&(this.roomId=e.roomId),"account"in e&&null!=e.account&&(this.account=e.account),"deviceTag"in e&&null!=e.deviceTag&&(this.deviceTag=e.deviceTag),"noise"in e&&null!=e.noise&&(this.noise=e.noise),"deviceKey"in e&&null!=e.deviceKey&&(this.deviceKey=e.deviceKey),"muted"in e&&null!=e.muted&&(this.muted=e.muted),"teamMax"in e&&null!=e.teamMax&&(this.teamMax=e.teamMax),"revoke"in e&&null!=e.revoke&&(this.revoke=e.revoke),"member"in e&&null!=e.member&&(this.member=e.member),"avatar"in e&&null!=e.avatar&&(this.avatar=e.avatar),"talkMode"in e&&null!=e.talkMode&&(this.talkMode=e.talkMode))}get id(){return Kt.Message.getFieldWithDefault(this,1,0)}set id(e){Kt.Message.setField(this,1,e)}get appId(){return Kt.Message.getFieldWithDefault(this,2,0)}set appId(e){Kt.Message.setField(this,2,e)}get v(){return Kt.Message.getFieldWithDefault(this,3,0)}set v(e){Kt.Message.setField(this,3,e)}get sort(){return Kt.Message.getFieldWithDefault(this,4,0)}set sort(e){Kt.Message.setField(this,4,e)}get created(){return Kt.Message.getFieldWithDefault(this,5,"")}set created(e){Kt.Message.setField(this,5,e)}get modified(){return Kt.Message.getFieldWithDefault(this,6,"")}set modified(e){Kt.Message.setField(this,6,e)}get ids(){return Kt.Message.getFieldWithDefault(this,7,[])}set ids(e){Kt.Message.setField(this,7,e)}get appIds(){return Kt.Message.getFieldWithDefault(this,8,[])}set appIds(e){Kt.Message.setField(this,8,e)}get remark(){return Kt.Message.getFieldWithDefault(this,9,"")}set remark(e){Kt.Message.setField(this,9,e)}get meta(){return Kt.Message.getWrapperField(this,Nt.Meta,10)}set meta(e){Kt.Message.setWrapperField(this,10,e)}get has_meta(){return null!=Kt.Message.getField(this,10)}get userId(){return Kt.Message.getFieldWithDefault(this,11,"")}set userId(e){Kt.Message.setField(this,11,e)}get teamname(){return Kt.Message.getFieldWithDefault(this,12,"")}set teamname(e){Kt.Message.setField(this,12,e)}get roomId(){return Kt.Message.getFieldWithDefault(this,13,0)}set roomId(e){Kt.Message.setField(this,13,e)}get account(){return Kt.Message.getFieldWithDefault(this,14,"")}set account(e){Kt.Message.setField(this,14,e)}get deviceTag(){return Kt.Message.getFieldWithDefault(this,16,"")}set deviceTag(e){Kt.Message.setField(this,16,e)}get noise(){return Kt.Message.getFieldWithDefault(this,19,0)}set noise(e){Kt.Message.setField(this,19,e)}get deviceKey(){return Kt.Message.getFieldWithDefault(this,20,"")}set deviceKey(e){Kt.Message.setField(this,20,e)}get muted(){return Kt.Message.getFieldWithDefault(this,21,0)}set muted(e){Kt.Message.setField(this,21,e)}get teamMax(){return Kt.Message.getFieldWithDefault(this,22,0)}set teamMax(e){Kt.Message.setField(this,22,e)}get revoke(){return Kt.Message.getFieldWithDefault(this,23,0)}set revoke(e){Kt.Message.setField(this,23,e)}get member(){return Kt.Message.getRepeatedWrapperField(this,Xt.TeamContact,24)}set member(e){Kt.Message.setRepeatedWrapperField(this,24,e)}get avatar(){return Kt.Message.getFieldWithDefault(this,25,"")}set avatar(e){Kt.Message.setField(this,25,e)}get talkMode(){return Kt.Message.getFieldWithDefault(this,26,0)}set talkMode(e){Kt.Message.setField(this,26,e)}static fromObject(e){const r=new t({});return null!=e.id&&(r.id=e.id),null!=e.appId&&(r.appId=e.appId),null!=e.v&&(r.v=e.v),null!=e.sort&&(r.sort=e.sort),null!=e.created&&(r.created=e.created),null!=e.modified&&(r.modified=e.modified),null!=e.ids&&(r.ids=e.ids),null!=e.appIds&&(r.appIds=e.appIds),null!=e.remark&&(r.remark=e.remark),null!=e.meta&&(r.meta=Nt.Meta.fromObject(e.meta)),null!=e.userId&&(r.userId=e.userId),null!=e.teamname&&(r.teamname=e.teamname),null!=e.roomId&&(r.roomId=e.roomId),null!=e.account&&(r.account=e.account),null!=e.deviceTag&&(r.deviceTag=e.deviceTag),null!=e.noise&&(r.noise=e.noise),null!=e.deviceKey&&(r.deviceKey=e.deviceKey),null!=e.muted&&(r.muted=e.muted),null!=e.teamMax&&(r.teamMax=e.teamMax),null!=e.revoke&&(r.revoke=e.revoke),null!=e.member&&(r.member=e.member.map(e=>Xt.TeamContact.fromObject(e))),null!=e.avatar&&(r.avatar=e.avatar),null!=e.talkMode&&(r.talkMode=e.talkMode),r}toObject(){const e={};return null!=this.id&&(e.id=this.id),null!=this.appId&&(e.appId=this.appId),null!=this.v&&(e.v=this.v),null!=this.sort&&(e.sort=this.sort),null!=this.created&&(e.created=this.created),null!=this.modified&&(e.modified=this.modified),null!=this.ids&&(e.ids=this.ids),null!=this.appIds&&(e.appIds=this.appIds),null!=this.remark&&(e.remark=this.remark),null!=this.meta&&(e.meta=this.meta.toObject()),null!=this.userId&&(e.userId=this.userId),null!=this.teamname&&(e.teamname=this.teamname),null!=this.roomId&&(e.roomId=this.roomId),null!=this.account&&(e.account=this.account),null!=this.deviceTag&&(e.deviceTag=this.deviceTag),null!=this.noise&&(e.noise=this.noise),null!=this.deviceKey&&(e.deviceKey=this.deviceKey),null!=this.muted&&(e.muted=this.muted),null!=this.teamMax&&(e.teamMax=this.teamMax),null!=this.revoke&&(e.revoke=this.revoke),null!=this.member&&(e.member=this.member.map(e=>e.toObject())),null!=this.avatar&&(e.avatar=this.avatar),null!=this.talkMode&&(e.talkMode=this.talkMode),e}serialize(e){const t=e||new Kt.BinaryWriter;if(0!=this.id&&t.writeInt64(1,this.id),0!=this.appId&&t.writeInt64(2,this.appId),0!=this.v&&t.writeDouble(3,this.v),0!=this.sort&&t.writeInt32(4,this.sort),this.created.length&&t.writeString(5,this.created),this.modified.length&&t.writeString(6,this.modified),this.ids.length&&t.writeRepeatedString(7,this.ids),this.appIds.length&&t.writeRepeatedString(8,this.appIds),this.remark.length&&t.writeString(9,this.remark),this.has_meta&&t.writeMessage(10,this.meta,()=>this.meta.serialize(t)),this.userId.length&&t.writeString(11,this.userId),this.teamname.length&&t.writeString(12,this.teamname),0!=this.roomId&&t.writeInt64(13,this.roomId),this.account.length&&t.writeString(14,this.account),this.deviceTag.length&&t.writeString(16,this.deviceTag),0!=this.noise&&t.writeInt32(19,this.noise),this.deviceKey.length&&t.writeString(20,this.deviceKey),0!=this.muted&&t.writeInt32(21,this.muted),0!=this.teamMax&&t.writeInt32(22,this.teamMax),0!=this.revoke&&t.writeInt32(23,this.revoke),this.member.length&&t.writeRepeatedMessage(24,this.member,e=>e.serialize(t)),this.avatar.length&&t.writeString(25,this.avatar),0!=this.talkMode&&t.writeInt32(26,this.talkMode),!e)return t.getResultBuffer()}static deserialize(e){const r=e instanceof Kt.BinaryReader?e:new Kt.BinaryReader(e),i=new t;for(;r.nextField()&&!r.isEndGroup();)switch(r.getFieldNumber()){case 1:i.id=r.readInt64();break;case 2:i.appId=r.readInt64();break;case 3:i.v=r.readDouble();break;case 4:i.sort=r.readInt32();break;case 5:i.created=r.readString();break;case 6:i.modified=r.readString();break;case 7:Kt.Message.addToRepeatedField(i,7,r.readString());break;case 8:Kt.Message.addToRepeatedField(i,8,r.readString());break;case 9:i.remark=r.readString();break;case 10:r.readMessage(i.meta,()=>i.meta=Nt.Meta.deserialize(r));break;case 11:i.userId=r.readString();break;case 12:i.teamname=r.readString();break;case 13:i.roomId=r.readInt64();break;case 14:i.account=r.readString();break;case 16:i.deviceTag=r.readString();break;case 19:i.noise=r.readInt32();break;case 20:i.deviceKey=r.readString();break;case 21:i.muted=r.readInt32();break;case 22:i.teamMax=r.readInt32();break;case 23:i.revoke=r.readInt32();break;case 24:r.readMessage(i.member,()=>Kt.Message.addToRepeatedWrapperField(i,24,Xt.TeamContact.deserialize(r),Xt.TeamContact));break;case 25:i.avatar=r.readString();break;case 26:i.talkMode=r.readInt32();break;default:r.skipField()}return i}serializeBinary(){return this.serialize()}static deserializeBinary(e){return t.deserialize(e)}}e.Teams=t}(Jt||(Jt={}));var ir=r(8287).hp,nr=Jt.Teams,sr=Xt.TeamContact;class ar extends Yt{static instance;client=null;constructor(){super()}static getInstance(){return ar.instance||(ar.instance=new ar),ar.instance}setClient(e){return this.client=e,this}memberList(e){return new Promise((t,r)=>{if(this.checkSocket().length)return void r(new Error(this.checkSocket()));const i=new sr({meta:this.client.meta,fromTeamId:e});let n=[];this.client.socket?.requestStream({data:ir.from(i.serializeBinary().buffer),metadata:this.buildRoute("team.members")},300,{onComplete:()=>{t(n)},onNext:(e,t)=>{try{if(e.data){let t=sr.deserialize(e.data),r=this.buildTeamMember(t);n.push(r)}}catch(e){r(new Error("IO Client Error"))}},onError:e=>{let t=e?.message+"",i=this.onError(t);i.length>0?r(new Error(i)):r(new Error(t))},onExtension(e,t,r){}})})}create(e){return new Promise((t,r)=>{if(this.checkSocket().length)return void r(new Error(this.checkSocket()));const i=new nr({meta:this.client.meta,teamname:e,userId:this.client.meta.userId,deviceKey:this.client.meta.deviceKey,deviceTag:this.client.meta.deviceTag});let n=null;this.client.socket?.requestResponse({data:ir.from(i.serializeBinary().buffer),metadata:this.buildRoute("team.create")},{onComplete:()=>{t(n)},onNext:(e,i)=>{try{if(e.data){let r=nr.deserialize(e.data),s=this.buildTeam(r);n=s,i&&t(n)}}catch(e){r(new Error("IO Client Error"))}},onError:e=>{let t=e?.message+"",i=this.onError(t);i.length>0?r(new Error(i)):r(new Error(t))},onExtension(e,t,r){}})})}getTeam(e){return new Promise((t,r)=>{if(this.checkSocket().length)return void r(new Error(this.checkSocket()));const i=new nr({meta:this.client.meta,id:e});let n=null;this.client.socket?.requestResponse({data:ir.from(i.serializeBinary().buffer),metadata:this.buildRoute("team.byId")},{onComplete:()=>{t(n)},onNext:(e,i)=>{try{if(e.data){let r=nr.deserialize(e.data),s=this.buildTeam(r);n=s,i&&t(n)}}catch(e){r(new Error("IO Client Error"))}},onError:e=>{let t=e?.message+"",i=this.onError(t);i.length>0?r(new Error(i)):r(new Error(t))},onExtension(e,t,r){}})})}join(e){return new Promise((t,r)=>{if(this.checkSocket().length)return void r(new Error(this.checkSocket()));const i=new sr({meta:this.client.meta,fromTeamId:e,userId:this.client.meta.userId,deviceKey:this.client.meta.deviceKey,deviceTag:this.client.meta.deviceTag});let n=null;this.client.socket?.requestResponse({data:ir.from(i.serializeBinary().buffer),metadata:this.buildRoute("team.join")},{onComplete:()=>{t(n)},onNext:(e,i)=>{try{if(e.data){let r=nr.deserialize(e.data),s=this.buildTeam(r);n=s,i&&t(n)}}catch(e){r(new Error("IO Client Error"))}},onError:e=>{let t=e?.message+"",i=this.onError(t);i.length>0?r(new Error(i)):r(new Error(t))},onExtension(e,t,r){}})})}joinInvite(e,t="",r=""){return new Promise((i,n)=>{if(this.checkSocket().length)return void n(new Error(this.checkSocket()));if(t.length<=0&&r.length<=0)return void n(new Error("用户的ID 和 设备Key 必选一组"));const s=new sr({meta:this.client.meta,fromTeamId:e,userId:t,deviceKey:r,deviceTag:"h5"});let a=null;this.client.socket?.requestResponse({data:ir.from(s.serializeBinary().buffer),metadata:this.buildRoute("team.join")},{onComplete:()=>{i(a)},onNext:(e,t)=>{try{if(e.data){let r=nr.deserialize(e.data),n=this.buildTeam(r);a=n,t&&i(a)}}catch(e){n(new Error("IO Client Error"))}},onError:e=>{let t=e?.message+"",r=this.onError(t);r.length>0?n(new Error(r)):n(new Error(t))},onExtension(e,t,r){}})})}disband(e){return new Promise((t,r)=>{if(this.checkSocket().length)return void r(new Error(this.checkSocket()));const i=new sr({meta:this.client.meta,fromTeamId:e});let n=null;this.client.socket?.requestResponse({data:ir.from(i.serializeBinary().buffer),metadata:this.buildRoute("team.disband")},{onComplete:()=>{t(n)},onNext:(e,i)=>{try{if(e.data){let r=nr.deserialize(e.data),s=this.buildTeam(r);n=s,i&&t(n)}}catch(e){r(new Error("IO Client Error"))}},onError:e=>{let t=e?.message+"",i=this.onError(t);i.length>0?r(new Error(i)):r(new Error(t))},onExtension(e,t,r){}})})}regain(e){return new Promise((t,r)=>{if(this.checkSocket().length)return void r(new Error(this.checkSocket()));const i=new sr({meta:this.client.meta,fromTeamId:e});let n=null;this.client.socket?.requestResponse({data:ir.from(i.serializeBinary().buffer),metadata:this.buildRoute("team.regain")},{onComplete:()=>{t(n)},onNext:(e,i)=>{try{if(e.data){let r=nr.deserialize(e.data),s=this.buildTeam(r);n=s,i&&t(n)}}catch(e){r(new Error("IO Client Error"))}},onError:e=>{let t=e?.message+"",i=this.onError(t);i.length>0?r(new Error(i)):r(new Error(t))},onExtension(e,t,r){}})})}teamMuted(e,t){return new Promise((r,i)=>{if(this.checkSocket().length)return void i(new Error(this.checkSocket()));const n=new sr({meta:this.client.meta,fromTeamId:e,muted:t?1:0});let s=null;this.client.socket?.requestResponse({data:ir.from(n.serializeBinary().buffer),metadata:this.buildRoute("team.muted")},{onComplete:()=>{r(s)},onNext:(e,t)=>{try{if(e.data){let i=nr.deserialize(e.data),n=this.buildTeam(i);s=n,t&&r(s)}}catch(e){i(new Error("IO Client Error"))}},onError:e=>{let t=e?.message+"",r=this.onError(t);r.length>0?i(new Error(r)):i(new Error(t))},onExtension(e,t,r){}})})}getMember(e,t="",r=""){return new Promise((i,n)=>{if(this.checkSocket().length)return void n(new Error(this.checkSocket()));if(t.length<=0&&r.length<=0)return void n(new Error("用户的ID 和 设备Key 必选一组"));const s=new sr({meta:this.client.meta,fromTeamId:e,userId:t,deviceKey:r,deviceTag:"h5"});let a=null;this.client.socket?.requestResponse({data:ir.from(s.serializeBinary().buffer),metadata:this.buildRoute("team.member.get")},{onComplete:()=>{i(a)},onNext:(e,t)=>{try{if(e.data){let r=sr.deserialize(e.data),n=this.buildTeamMember(r);a=n,t&&i(a)}}catch(e){n(new Error("IO Client Error"))}},onError:e=>{let t=e?.message+"",r=this.onError(t);r.length>0?n(new Error(r)):n(new Error(t))},onExtension(e,t,r){}})})}onError(e){if(e.indexOf("Jwt")>-1){try{this.client.clientListener?.onTokenExpired()}catch(e){}return"IO Token 已过期"}return e.indexOf("SQL")>-1||e.indexOf("connect")>-1?"IO System Error":e.indexOf("terminal")>-1||e.indexOf("signal")>-1?"请求超时":""}checkSocket(){return this.client?this.client.socket?0==this.client.getTokenAppId()||this.client.getTokenAppId()!=this.client.meta.appId?"token中的AppId 与 IMIOClientOption不一致":"":"IO Client 尚未建立连接":"IO Client 不存在"}}var or=r(8287).hp,lr=Ut.Rooms,ur=zt.Message,cr=Ht.MessageSign,hr=Wt.MessageRemind,dr=jt.Contacts;class pr extends Yt{static instance;client=null;constructor(){super()}static getInstance(){return pr.instance||(pr.instance=new pr),pr.instance}setClient(e){return this.client=e,this}dialogue(e,t,r){return new Promise(async(i,n)=>{if(this.checkSocket().length)return void n(new Error(this.checkSocket()));let s=this.buildMessageProto(t,r);s.appId=e;let a=null;this.client.socket?.requestResponse({data:or.from(s.serializeBinary().buffer),metadata:this.buildRoute("dialogue")},{onComplete:()=>{i(a)},onNext:(e,t)=>{try{if(e.data){let r=ur.deserialize(e.data),n=this.buildMessage(r);a=n,t&&i(a)}}catch(e){n(new Error("IO Client Error"))}},onError:e=>{let t=e?.message+"",r=this.onError(t);r.length>0?n(new Error(r)):n(new Error(t))},onExtension(e,t,r){}})})}oneToOne(e){return new Promise(async(t,r)=>{if(this.checkSocket().length)return void r(new Error(this.checkSocket()));let i=rr.getInstance().setClient(this.client),n=await i.getContactByJoinId(e.joinId);if(!n)return void r(new Error("联系人不存在"));if(n.isGroup)return void r(new Error("联系人是群组"));let s=this.buildMessageProto(n.userId,e),a=null;this.client.socket?.requestResponse({data:or.from(s.serializeBinary().buffer),metadata:this.buildRoute("oneToOne")},{onComplete:()=>{t(a)},onNext:(e,i)=>{try{if(e.data){let r=ur.deserialize(e.data),n=this.buildMessage(r);a=n,i&&t(a)}}catch(e){r(new Error("IO Client Error"))}},onError:e=>{let t=e?.message+"",i=this.onError(t);i.length>0?r(new Error(i)):r(new Error(t))},onExtension(e,t,r){}})})}oneToMany(e){return new Promise(async(t,r)=>{if(this.checkSocket().length)return void r(new Error(this.checkSocket()));let i=rr.getInstance().setClient(this.client),n=await i.getContactByJoinId(e.joinId);if(!n)return void r(new Error("联系人不存在"));if(!n.isGroup)return void r(new Error("联系人不是群组"));let s=this.buildMessageProto("",e),a=null;this.client.socket?.requestResponse({data:or.from(s.serializeBinary().buffer),metadata:this.buildRoute("oneToMany")},{onComplete:()=>{t(a)},onNext:(e,i)=>{try{if(e.data){let r=ur.deserialize(e.data),n=this.buildMessage(r);a=n,i&&t(a)}}catch(e){r(new Error("IO Client Error"))}},onError:e=>{let t=e?.message+"",i=this.onError(t);i.length>0?r(new Error(i)):r(new Error(t))},onExtension(e,t,r){}})})}sendToTeam(e){return new Promise(async(t,r)=>{if(this.checkSocket().length)return void r(new Error(this.checkSocket()));let i=this.buildMessageProto("",e),n=null;this.client.socket?.requestResponse({data:or.from(i.serializeBinary().buffer),metadata:this.buildRoute("oneToTeam")},{onComplete:()=>{t(n)},onNext:(e,i)=>{try{if(e.data){let r=ur.deserialize(e.data),s=this.buildMessage(r);n=s,i&&t(n)}}catch(e){r(new Error("IO Client Error"))}},onError:e=>{let t=e?.message+"",i=this.onError(t);i.length>0?r(new Error(i)):r(new Error(t))},onExtension(e,t,r){}})})}signMessage(e,t){return new Promise(async(r,i)=>{if(this.checkSocket().length)return void i(new Error(this.checkSocket()));let n=new cr({meta:this.client.meta,messageId:e,roomId:t,destId:this.client.meta.userId,deviceTag:"h5",deviceKey:this.client?.getDeviceKey()});this.client.socket?.requestResponse({data:or.from(n.serializeBinary().buffer),metadata:this.buildRoute("message.sign")},{onComplete:()=>{r("")},onNext:(e,t)=>{try{t&&r("")}catch(e){i(new Error("IO Client Error"))}},onError:e=>{let t=e?.message+"",r=this.onError(t);r.length>0?i(new Error(r)):i(new Error(t))},onExtension(e,t,r){}})})}readMessage(e,t){return new Promise(async(r,i)=>{if(this.checkSocket().length)return void i(new Error(this.checkSocket()));let n=new cr({meta:this.client.meta,messageId:e,roomId:t,destId:this.client.meta.userId});this.client.socket?.requestResponse({data:or.from(n.serializeBinary().buffer),metadata:this.buildRoute("message.read")},{onComplete:()=>{r("")},onNext:(e,t)=>{try{t&&r("")}catch(e){i(new Error("IO Client Error"))}},onError:e=>{let t=e?.message+"",r=this.onError(t);r.length>0?i(new Error(r)):i(new Error(t))},onExtension(e,t,r){}})})}deleteMessage(e,t){return new Promise(async(r,i)=>{if(this.checkSocket().length)return void i(new Error(this.checkSocket()));let n=new cr({meta:this.client.meta,messageId:e,roomId:t});this.client.socket?.requestResponse({data:or.from(n.serializeBinary().buffer),metadata:this.buildRoute("message.revoke")},{onComplete:()=>{r("")},onNext:(e,t)=>{try{t&&r("")}catch(e){i(new Error("IO Client Error"))}},onError:e=>{let t=e?.message+"",r=this.onError(t);r.length>0?i(new Error(r)):i(new Error(t))},onExtension(e,t,r){}})})}getMessageList(e,t=1,r=40){return new Promise(async(i,n)=>{if(this.checkSocket().length)return void n(new Error(this.checkSocket()));let s=rr.getInstance().setClient(this.client),a=await s.getContactByJoinId(e);if(!a)return void n(new Error("联系人不存在"));this.client.meta.page=t,this.client.meta.pageSize=r;const o=new ur({meta:this.client.meta,roomId:a.joinId,created:a.joinTime});let l=[];this.client.socket?.requestStream({data:or.from(o.serializeBinary().buffer),metadata:this.buildRoute("message.page")},500,{onComplete:()=>{i(l)},onNext:(e,t)=>{try{if(e.data){let t=ur.deserialize(e.data),r=this.buildMessage(t);l.push(r)}}catch(e){n(new Error("IO Client Error"))}},onError:e=>{let t=e?.message+"",r=this.onError(t);r.length>0?n(new Error(r)):n(new Error(t))},onExtension(e,t,r){}})})}teamMessageList(e,t=1,r=40){return new Promise(async(i,n)=>{if(this.checkSocket().length)return void n(new Error(this.checkSocket()));let s=ar.getInstance().setClient(this.client),a=await s.getMember(e,this.client.meta.userId,this.client.meta.deviceKey);if(!a)return void n(new Error("您不在小队中"));this.client.meta.page=t,this.client.meta.pageSize=r;const o=new ur({meta:this.client.meta,roomId:e,created:a.joinTime});let l=[];this.client.socket?.requestStream({data:or.from(o.serializeBinary().buffer),metadata:this.buildRoute("message.team.page")},500,{onComplete:()=>{i(l)},onNext:(e,t)=>{try{if(e.data){let t=ur.deserialize(e.data),r=this.buildMessage(t);l.push(r)}}catch(e){n(new Error("IO Client Error"))}},onError:e=>{let t=e?.message+"",r=this.onError(t);r.length>0?n(new Error(r)):n(new Error(t))},onExtension(e,t,r){}})})}teamMessageById(e,t){return new Promise(async(r,i)=>{if(this.checkSocket().length)return void i(new Error(this.checkSocket()));const n=new ur({meta:this.client.meta,roomId:e,messageId:t});let s=null;this.client.socket?.requestResponse({data:or.from(n.serializeBinary().buffer),metadata:this.buildRoute("message.team.byId")},{onComplete:()=>{r(s)},onNext:(e,t)=>{try{if(e.data){let i=ur.deserialize(e.data),n=this.buildMessage(i);s=n,t&&r(s)}}catch(e){i(new Error("IO Client Error"))}},onError:e=>{let t=e?.message+"",r=this.onError(t);r.length>0?i(new Error(r)):i(new Error(t))},onExtension(e,t,r){}})})}createDialogue(e,t){return new Promise(async(r,i)=>{if(this.checkSocket().length)return void i(new Error(this.checkSocket()));const n=new dr({meta:this.client.meta,userId:e,joinRoomId:t});let s=null;this.client.socket?.requestResponse({data:or.from(n.serializeBinary().buffer),metadata:this.buildRoute("dialogue.create")},{onComplete:()=>{r(s)},onNext:(e,t)=>{try{if(e.data){let i=lr.deserialize(e.data),n=this.buildGroup(i);s=n,t&&r(s)}}catch(e){i(new Error("IO Client Error"))}},onError:e=>{let t=e?.message+"",r=this.onError(t);r.length>0?i(new Error(r)):i(new Error(t))},onExtension(e,t,r){}})})}senderBuildMessage(e){let t=new h;if(t.messageId=e.messageId,t.joinId=e.joinId,t.cite=e.cite,t.type=e.type,t.title=e.title,t.subtitle=e.subtitle,t.text=e.text,t.secret=e.secret,t.thumb=e.thumb,t.host=e.host,t.url=e.url,t.lng=e.lng,t.lat=e.lat,t.size=e.size,t.length=e.length,e.hintList&&e.hintList.length){t.hintList=[];for(let r of e.hintList){let e=new h;e.destId=r.targetId,e.destName=r.targetName,t.hintList.push(e)}}if(e.notifyList&&e.notifyList.length){t.notifyList=[];for(let r of e.notifyList){let e=new h;e.destId=r.targetId,e.destName=r.targetName,t.notifyList.push(e)}}if(e.quietlyList&&e.quietlyList.length){t.quietlyList=[];for(let r of e.quietlyList){let e=new h;e.destId=r.targetId,e.destName=r.targetName,t.quietlyList.push(e)}}return t}buildMessageProto(e,t){let r=[],i=[];if(t.notifyList&&t.notifyList.length)for(let e of t.notifyList){let t=new hr({sort:1,destId:e.targetId,nickname:e.targetName});r.push(t)}if(t.quietlyList&&t.quietlyList.length)for(let e of t.quietlyList){let t=new hr({sort:2,destId:e.targetId,nickname:e.targetName});r.push(t)}if(t.hintList&&t.hintList.length)for(let e of t.hintList){let t=new hr({sort:0,destId:e.targetId,nickname:e.targetName});i.push(t)}return new ur({meta:this.client?.meta,messageId:t.messageId,roomId:t.joinId,fromId:this.client?.meta?.userId,fromName:this.client?.meta?.nickname,destId:e,subtype:this.messageType(t.type),title:t.title,subtitle:t.subtitle,text:t.text,secret:t.secret,thumb:t.thumb,host:t.host,url:t.url,lng:t.lng,lat:t.lat,size:t.size,length:t.length,cc:r,remind:i,cite:t.cite})}messageType(e){switch(e){case"txt":return 1;case"img":return 2;case"audio":return 3;case"video":return 4;case"file":return 5;case"loc":return 6;case"wallet":return 9;case"custom":return 7}return 1}onError(e){if(e.indexOf("Jwt")>-1){try{this.client.clientListener?.onTokenExpired()}catch(e){}return"IO Token 已过期"}return e.indexOf("SQL")>-1||e.indexOf("connect")>-1?"IO System Error":e.indexOf("terminal")>-1||e.indexOf("signal")>-1?"请求超时":""}checkSocket(){return this.client?this.client.socket?0==this.client.getTokenAppId()||this.client.getTokenAppId()!=this.client.meta.appId?"token中的AppId 与 IMIOClientOption不一致":"":"IO Client 尚未建立连接":"IO Client 不存在"}}var fr=function(){return fr=Object.assign||function(e){for(var t,r=1,i=arguments.length;r<i;r++)for(var n in t=arguments[r])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},fr.apply(this,arguments)};function gr(e,t,r,i){return new(r||(r=Promise))(function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(a,o)}l((i=i.apply(e,t||[])).next())})}function mr(e,t){var r,i,n,s={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=o(0),a.throw=o(1),a.return=o(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function o(o){return function(l){return function(o){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,o[0]&&(s=0)),s;)try{if(r=1,i&&(n=2&o[0]?i.return:o[0]?i.throw||((n=i.return)&&n.call(i),0):i.next)&&!(n=n.call(i,o[1])).done)return n;switch(i=0,n&&(o=[2&o[0],n.value]),o[0]){case 0:case 1:n=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,i=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!((n=(n=s.trys).length>0&&n[n.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!n||o[1]>n[0]&&o[1]<n[3])){s.label=o[1];break}if(6===o[0]&&s.label<n[1]){s.label=n[1],n=o;break}if(n&&s.label<n[2]){s.label=n[2],s.ops.push(o);break}n[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(e){o=[6,e],i=0}finally{r=n=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,l])}}}function yr(e,t,r){if(r||2===arguments.length)for(var i,n=0,s=t.length;n<s;n++)!i&&n in t||(i||(i=Array.prototype.slice.call(t,0,n)),i[n]=t[n]);return e.concat(i||Array.prototype.slice.call(t))}Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError;var vr="3.4.2";function br(e,t){return new Promise(function(r){return setTimeout(r,e,t)})}function Ir(e){return!!e&&"function"==typeof e.then}function wr(e,t){try{var r=e();Ir(r)?r.then(function(e){return t(!0,e)},function(e){return t(!1,e)}):t(!0,r)}catch(e){t(!1,e)}}function Er(e,t,r){return void 0===r&&(r=16),gr(this,void 0,void 0,function(){var i,n,s,a;return mr(this,function(o){switch(o.label){case 0:i=Array(e.length),n=Date.now(),s=0,o.label=1;case 1:return s<e.length?(i[s]=t(e[s],s),(a=Date.now())>=n+r?(n=a,[4,br(0)]):[3,3]):[3,4];case 2:o.sent(),o.label=3;case 3:return++s,[3,1];case 4:return[2,i]}})})}function kr(e){e.then(void 0,function(){})}function Sr(e,t){e=[e[0]>>>16,65535&e[0],e[1]>>>16,65535&e[1]],t=[t[0]>>>16,65535&t[0],t[1]>>>16,65535&t[1]];var r=[0,0,0,0];return r[3]+=e[3]+t[3],r[2]+=r[3]>>>16,r[3]&=65535,r[2]+=e[2]+t[2],r[1]+=r[2]>>>16,r[2]&=65535,r[1]+=e[1]+t[1],r[0]+=r[1]>>>16,r[1]&=65535,r[0]+=e[0]+t[0],r[0]&=65535,[r[0]<<16|r[1],r[2]<<16|r[3]]}function Mr(e,t){e=[e[0]>>>16,65535&e[0],e[1]>>>16,65535&e[1]],t=[t[0]>>>16,65535&t[0],t[1]>>>16,65535&t[1]];var r=[0,0,0,0];return r[3]+=e[3]*t[3],r[2]+=r[3]>>>16,r[3]&=65535,r[2]+=e[2]*t[3],r[1]+=r[2]>>>16,r[2]&=65535,r[2]+=e[3]*t[2],r[1]+=r[2]>>>16,r[2]&=65535,r[1]+=e[1]*t[3],r[0]+=r[1]>>>16,r[1]&=65535,r[1]+=e[2]*t[2],r[0]+=r[1]>>>16,r[1]&=65535,r[1]+=e[3]*t[1],r[0]+=r[1]>>>16,r[1]&=65535,r[0]+=e[0]*t[3]+e[1]*t[2]+e[2]*t[1]+e[3]*t[0],r[0]&=65535,[r[0]<<16|r[1],r[2]<<16|r[3]]}function Fr(e,t){return 32==(t%=64)?[e[1],e[0]]:t<32?[e[0]<<t|e[1]>>>32-t,e[1]<<t|e[0]>>>32-t]:(t-=32,[e[1]<<t|e[0]>>>32-t,e[0]<<t|e[1]>>>32-t])}function Tr(e,t){return 0==(t%=64)?e:t<32?[e[0]<<t|e[1]>>>32-t,e[1]<<t]:[e[1]<<t-32,0]}function Rr(e,t){return[e[0]^t[0],e[1]^t[1]]}function Ar(e){return e=Rr(e,[0,e[0]>>>1]),e=Rr(e=Mr(e,[4283543511,3981806797]),[0,e[0]>>>1]),Rr(e=Mr(e,[3301882366,444984403]),[0,e[0]>>>1])}function _r(e){return parseInt(e)}function Or(e){return parseFloat(e)}function Cr(e,t){return"number"==typeof e&&isNaN(e)?t:e}function xr(e){return e.reduce(function(e,t){return e+(t?1:0)},0)}function Nr(e,t){if(void 0===t&&(t=1),Math.abs(t)>=1)return Math.round(e/t)*t;var r=1/t;return Math.round(e*r)/r}function Dr(e){return e&&"object"==typeof e&&"message"in e?e:{message:e}}function Pr(e,t,r){var i=Object.keys(e).filter(function(e){return!function(e,t){for(var r=0,i=e.length;r<i;++r)if(e[r]===t)return!0;return!1}(r,e)}),n=Er(i,function(r){return function(e,t){var r=new Promise(function(r){var i=Date.now();wr(e.bind(null,t),function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=Date.now()-i;if(!e[0])return r(function(){return{error:Dr(e[1]),duration:n}});var s=e[1];if(function(e){return"function"!=typeof e}(s))return r(function(){return{value:s,duration:n}});r(function(){return new Promise(function(e){var t=Date.now();wr(s,function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var s=n+Date.now()-t;if(!r[0])return e({error:Dr(r[1]),duration:s});e({value:r[1],duration:s})})})})})});return kr(r),function(){return r.then(function(e){return e()})}}(e[r],t)});return kr(n),function(){return gr(this,void 0,void 0,function(){var e,t,r,s;return mr(this,function(a){switch(a.label){case 0:return[4,n];case 1:return[4,Er(a.sent(),function(e){var t=e();return kr(t),t})];case 2:return e=a.sent(),[4,Promise.all(e)];case 3:for(t=a.sent(),r={},s=0;s<i.length;++s)r[i[s]]=t[s];return[2,r]}})})}}function Lr(){var e=window,t=navigator;return xr(["MSCSSMatrix"in e,"msSetImmediate"in e,"msIndexedDB"in e,"msMaxTouchPoints"in t,"msPointerEnabled"in t])>=4}function Br(){var e=window,t=navigator;return xr(["webkitPersistentStorage"in t,"webkitTemporaryStorage"in t,0===t.vendor.indexOf("Google"),"webkitResolveLocalFileSystemURL"in e,"BatteryManager"in e,"webkitMediaStream"in e,"webkitSpeechGrammar"in e])>=5}function jr(){var e=window,t=navigator;return xr(["ApplePayError"in e,"CSSPrimitiveValue"in e,"Counter"in e,0===t.vendor.indexOf("Apple"),"getStorageUpdates"in t,"WebKitMediaKeys"in e])>=4}function Ur(){var e=window;return xr(["safari"in e,!("DeviceMotionEvent"in e),!("ongestureend"in e),!("standalone"in navigator)])>=3}function Wr(){var e=document;return(e.exitFullscreen||e.msExitFullscreen||e.mozCancelFullScreen||e.webkitExitFullscreen).call(e)}function zr(){var e=Br(),t=function(){var e,t,r=window;return xr(["buildID"in navigator,"MozAppearance"in(null!==(t=null===(e=document.documentElement)||void 0===e?void 0:e.style)&&void 0!==t?t:{}),"onmozfullscreenchange"in r,"mozInnerScreenX"in r,"CSSMozDocumentRule"in r,"CanvasCaptureMediaStream"in r])>=4}();if(!e&&!t)return!1;var r=window;return xr(["onorientationchange"in r,"orientation"in r,e&&!("SharedWorker"in r),t&&/android/i.test(navigator.appVersion)])>=2}function Hr(e){var t=new Error(e);return t.name=e,t}function Kr(e,t,r){var i,n,s;return void 0===r&&(r=50),gr(this,void 0,void 0,function(){var a,o;return mr(this,function(l){switch(l.label){case 0:a=document,l.label=1;case 1:return a.body?[3,3]:[4,br(r)];case 2:return l.sent(),[3,1];case 3:o=a.createElement("iframe"),l.label=4;case 4:return l.trys.push([4,,10,11]),[4,new Promise(function(e,r){var i=!1,n=function(){i=!0,e()};o.onload=n,o.onerror=function(e){i=!0,r(e)};var s=o.style;s.setProperty("display","block","important"),s.position="absolute",s.top="0",s.left="0",s.visibility="hidden",t&&"srcdoc"in o?o.srcdoc=t:o.src="about:blank",a.body.appendChild(o);var l=function(){var e,t;i||("complete"===(null===(t=null===(e=o.contentWindow)||void 0===e?void 0:e.document)||void 0===t?void 0:t.readyState)?n():setTimeout(l,10))};l()})];case 5:l.sent(),l.label=6;case 6:return(null===(n=null===(i=o.contentWindow)||void 0===i?void 0:i.document)||void 0===n?void 0:n.body)?[3,8]:[4,br(r)];case 7:return l.sent(),[3,6];case 8:return[4,e(o,o.contentWindow)];case 9:return[2,l.sent()];case 10:return null===(s=o.parentNode)||void 0===s||s.removeChild(o),[7];case 11:return[2]}})})}function Gr(e){for(var t=function(e){for(var t,r,i="Unexpected syntax '".concat(e,"'"),n=/^\s*([a-z-]*)(.*)$/i.exec(e),s=n[1]||void 0,a={},o=/([.:#][\w-]+|\[.+?\])/gi,l=function(e,t){a[e]=a[e]||[],a[e].push(t)};;){var u=o.exec(n[2]);if(!u)break;var c=u[0];switch(c[0]){case".":l("class",c.slice(1));break;case"#":l("id",c.slice(1));break;case"[":var h=/^\[([\w-]+)([~|^$*]?=("(.*?)"|([\w-]+)))?(\s+[is])?\]$/.exec(c);if(!h)throw new Error(i);l(h[1],null!==(r=null!==(t=h[4])&&void 0!==t?t:h[5])&&void 0!==r?r:"");break;default:throw new Error(i)}}return[s,a]}(e),r=t[0],i=t[1],n=document.createElement(null!=r?r:"div"),s=0,a=Object.keys(i);s<a.length;s++){var o=a[s],l=i[o].join(" ");"style"===o?qr(n.style,l):n.setAttribute(o,l)}return n}function qr(e,t){for(var r=0,i=t.split(";");r<i.length;r++){var n=i[r],s=/^\s*([\w-]+)\s*:\s*(.+?)(\s*!([\w-]+))?\s*$/.exec(n);if(s){var a=s[1],o=s[2],l=s[4];e.setProperty(a,o,l||"")}}}var Vr,Yr,Xr=["monospace","sans-serif","serif"],Jr=["sans-serif-thin","ARNO PRO","Agency FB","Arabic Typesetting","Arial Unicode MS","AvantGarde Bk BT","BankGothic Md BT","Batang","Bitstream Vera Sans Mono","Calibri","Century","Century Gothic","Clarendon","EUROSTILE","Franklin Gothic","Futura Bk BT","Futura Md BT","GOTHAM","Gill Sans","HELV","Haettenschweiler","Helvetica Neue","Humanst521 BT","Leelawadee","Letter Gothic","Levenim MT","Lucida Bright","Lucida Sans","Menlo","MS Mincho","MS Outlook","MS Reference Specialty","MS UI Gothic","MT Extra","MYRIAD PRO","Marlett","Meiryo UI","Microsoft Uighur","Minion Pro","Monotype Corsiva","PMingLiU","Pristina","SCRIPTINA","Segoe UI Light","Serifa","SimHei","Small Fonts","Staccato222 BT","TRAJAN PRO","Univers CE 55 Medium","Vrinda","ZWAdobeF"];function Zr(e){return e.toDataURL()}function Qr(){var e=screen;return[Cr(Or(e.availTop),null),Cr(Or(e.width)-Or(e.availWidth)-Cr(Or(e.availLeft),0),null),Cr(Or(e.height)-Or(e.availHeight)-Cr(Or(e.availTop),0),null),Cr(Or(e.availLeft),null)]}function $r(e){for(var t=0;t<4;++t)if(e[t])return!1;return!0}function ei(e){var t;return gr(this,void 0,void 0,function(){var r,i,n,s,a,o,l;return mr(this,function(u){switch(u.label){case 0:for(r=document,i=r.createElement("div"),n=new Array(e.length),s={},ti(i),l=0;l<e.length;++l)"DIALOG"===(a=Gr(e[l])).tagName&&a.show(),ti(o=r.createElement("div")),o.appendChild(a),i.appendChild(o),n[l]=a;u.label=1;case 1:return r.body?[3,3]:[4,br(50)];case 2:return u.sent(),[3,1];case 3:r.body.appendChild(i);try{for(l=0;l<e.length;++l)n[l].offsetParent||(s[e[l]]=!0)}finally{null===(t=i.parentNode)||void 0===t||t.removeChild(i)}return[2,s]}})})}function ti(e){e.style.setProperty("display","block","important")}function ri(e){return matchMedia("(inverted-colors: ".concat(e,")")).matches}function ii(e){return matchMedia("(forced-colors: ".concat(e,")")).matches}function ni(e){return matchMedia("(prefers-contrast: ".concat(e,")")).matches}function si(e){return matchMedia("(prefers-reduced-motion: ".concat(e,")")).matches}function ai(e){return matchMedia("(dynamic-range: ".concat(e,")")).matches}var oi=Math,li=function(){return 0},ui={default:[],apple:[{font:"-apple-system-body"}],serif:[{fontFamily:"serif"}],sans:[{fontFamily:"sans-serif"}],mono:[{fontFamily:"monospace"}],min:[{fontSize:"1px"}],system:[{fontFamily:"system-ui"}]},ci={fonts:function(){return Kr(function(e,t){var r=t.document,i=r.body;i.style.fontSize="48px";var n=r.createElement("div"),s={},a={},o=function(e){var t=r.createElement("span"),i=t.style;return i.position="absolute",i.top="0",i.left="0",i.fontFamily=e,t.textContent="mmMwWLliI0O&1",n.appendChild(t),t},l=Xr.map(o),u=function(){for(var e={},t=function(t){e[t]=Xr.map(function(e){return function(e,t){return o("'".concat(e,"',").concat(t))}(t,e)})},r=0,i=Jr;r<i.length;r++)t(i[r]);return e}();i.appendChild(n);for(var c=0;c<Xr.length;c++)s[Xr[c]]=l[c].offsetWidth,a[Xr[c]]=l[c].offsetHeight;return Jr.filter(function(e){return t=u[e],Xr.some(function(e,r){return t[r].offsetWidth!==s[e]||t[r].offsetHeight!==a[e]});var t})})},domBlockers:function(e){var t=(void 0===e?{}:e).debug;return gr(this,void 0,void 0,function(){var e,r,i,n,s;return mr(this,function(a){switch(a.label){case 0:return jr()||zr()?(o=atob,e={abpIndo:["#Iklan-Melayang","#Kolom-Iklan-728","#SidebarIklan-wrapper",'[title="ALIENBOLA" i]',o("I0JveC1CYW5uZXItYWRz")],abpvn:[".quangcao","#mobileCatfish",o("LmNsb3NlLWFkcw=="),'[id^="bn_bottom_fixed_"]',"#pmadv"],adBlockFinland:[".mainostila",o("LnNwb25zb3JpdA=="),".ylamainos",o("YVtocmVmKj0iL2NsaWNrdGhyZ2guYXNwPyJd"),o("YVtocmVmXj0iaHR0cHM6Ly9hcHAucmVhZHBlYWsuY29tL2FkcyJd")],adBlockPersian:["#navbar_notice_50",".kadr",'TABLE[width="140px"]',"#divAgahi",o("YVtocmVmXj0iaHR0cDovL2cxLnYuZndtcm0ubmV0L2FkLyJd")],adBlockWarningRemoval:["#adblock-honeypot",".adblocker-root",".wp_adblock_detect",o("LmhlYWRlci1ibG9ja2VkLWFk"),o("I2FkX2Jsb2NrZXI=")],adGuardAnnoyances:[".hs-sosyal","#cookieconsentdiv",'div[class^="app_gdpr"]',".as-oil",'[data-cypress="soft-push-notification-modal"]'],adGuardBase:[".BetterJsPopOverlay",o("I2FkXzMwMFgyNTA="),o("I2Jhbm5lcmZsb2F0MjI="),o("I2NhbXBhaWduLWJhbm5lcg=="),o("I0FkLUNvbnRlbnQ=")],adGuardChinese:[o("LlppX2FkX2FfSA=="),o("YVtocmVmKj0iLmh0aGJldDM0LmNvbSJd"),"#widget-quan",o("YVtocmVmKj0iLzg0OTkyMDIwLnh5eiJd"),o("YVtocmVmKj0iLjE5NTZobC5jb20vIl0=")],adGuardFrench:["#pavePub",o("LmFkLWRlc2t0b3AtcmVjdGFuZ2xl"),".mobile_adhesion",".widgetadv",o("LmFkc19iYW4=")],adGuardGerman:['aside[data-portal-id="leaderboard"]'],adGuardJapanese:["#kauli_yad_1",o("YVtocmVmXj0iaHR0cDovL2FkMi50cmFmZmljZ2F0ZS5uZXQvIl0="),o("Ll9wb3BJbl9pbmZpbml0ZV9hZA=="),o("LmFkZ29vZ2xl"),o("Ll9faXNib29zdFJldHVybkFk")],adGuardMobile:[o("YW1wLWF1dG8tYWRz"),o("LmFtcF9hZA=="),'amp-embed[type="24smi"]',"#mgid_iframe1",o("I2FkX2ludmlld19hcmVh")],adGuardRussian:[o("YVtocmVmXj0iaHR0cHM6Ly9hZC5sZXRtZWFkcy5jb20vIl0="),o("LnJlY2xhbWE="),'div[id^="smi2adblock"]',o("ZGl2W2lkXj0iQWRGb3hfYmFubmVyXyJd"),"#psyduckpockeball"],adGuardSocial:[o("YVtocmVmXj0iLy93d3cuc3R1bWJsZXVwb24uY29tL3N1Ym1pdD91cmw9Il0="),o("YVtocmVmXj0iLy90ZWxlZ3JhbS5tZS9zaGFyZS91cmw/Il0="),".etsy-tweet","#inlineShare",".popup-social"],adGuardSpanishPortuguese:["#barraPublicidade","#Publicidade","#publiEspecial","#queTooltip",".cnt-publi"],adGuardTrackingProtection:["#qoo-counter",o("YVtocmVmXj0iaHR0cDovL2NsaWNrLmhvdGxvZy5ydS8iXQ=="),o("YVtocmVmXj0iaHR0cDovL2hpdGNvdW50ZXIucnUvdG9wL3N0YXQucGhwIl0="),o("YVtocmVmXj0iaHR0cDovL3RvcC5tYWlsLnJ1L2p1bXAiXQ=="),"#top100counter"],adGuardTurkish:["#backkapat",o("I3Jla2xhbWk="),o("YVtocmVmXj0iaHR0cDovL2Fkc2Vydi5vbnRlay5jb20udHIvIl0="),o("YVtocmVmXj0iaHR0cDovL2l6bGVuemkuY29tL2NhbXBhaWduLyJd"),o("YVtocmVmXj0iaHR0cDovL3d3dy5pbnN0YWxsYWRzLm5ldC8iXQ==")],bulgarian:[o("dGQjZnJlZW5ldF90YWJsZV9hZHM="),"#ea_intext_div",".lapni-pop-over","#xenium_hot_offers"],easyList:[".yb-floorad",o("LndpZGdldF9wb19hZHNfd2lkZ2V0"),o("LnRyYWZmaWNqdW5reS1hZA=="),".textad_headline",o("LnNwb25zb3JlZC10ZXh0LWxpbmtz")],easyListChina:[o("LmFwcGd1aWRlLXdyYXBbb25jbGljayo9ImJjZWJvcy5jb20iXQ=="),o("LmZyb250cGFnZUFkdk0="),"#taotaole","#aafoot.top_box",".cfa_popup"],easyListCookie:[".ezmob-footer",".cc-CookieWarning","[data-cookie-number]",o("LmF3LWNvb2tpZS1iYW5uZXI="),".sygnal24-gdpr-modal-wrap"],easyListCzechSlovak:["#onlajny-stickers",o("I3Jla2xhbW5pLWJveA=="),o("LnJla2xhbWEtbWVnYWJvYXJk"),".sklik",o("W2lkXj0ic2tsaWtSZWtsYW1hIl0=")],easyListDutch:[o("I2FkdmVydGVudGll"),o("I3ZpcEFkbWFya3RCYW5uZXJCbG9jaw=="),".adstekst",o("YVtocmVmXj0iaHR0cHM6Ly94bHR1YmUubmwvY2xpY2svIl0="),"#semilo-lrectangle"],easyListGermany:["#SSpotIMPopSlider",o("LnNwb25zb3JsaW5rZ3J1ZW4="),o("I3dlcmJ1bmdza3k="),o("I3Jla2xhbWUtcmVjaHRzLW1pdHRl"),o("YVtocmVmXj0iaHR0cHM6Ly9iZDc0Mi5jb20vIl0=")],easyListItaly:[o("LmJveF9hZHZfYW5udW5jaQ=="),".sb-box-pubbliredazionale",o("YVtocmVmXj0iaHR0cDovL2FmZmlsaWF6aW9uaWFkcy5zbmFpLml0LyJd"),o("YVtocmVmXj0iaHR0cHM6Ly9hZHNlcnZlci5odG1sLml0LyJd"),o("YVtocmVmXj0iaHR0cHM6Ly9hZmZpbGlhemlvbmlhZHMuc25haS5pdC8iXQ==")],easyListLithuania:[o("LnJla2xhbW9zX3RhcnBhcw=="),o("LnJla2xhbW9zX251b3JvZG9z"),o("aW1nW2FsdD0iUmVrbGFtaW5pcyBza3lkZWxpcyJd"),o("aW1nW2FsdD0iRGVkaWt1b3RpLmx0IHNlcnZlcmlhaSJd"),o("aW1nW2FsdD0iSG9zdGluZ2FzIFNlcnZlcmlhaS5sdCJd")],estonian:[o("QVtocmVmKj0iaHR0cDovL3BheTRyZXN1bHRzMjQuZXUiXQ==")],fanboyAnnoyances:["#ac-lre-player",".navigate-to-top","#subscribe_popup",".newsletter_holder","#back-top"],fanboyAntiFacebook:[".util-bar-module-firefly-visible"],fanboyEnhancedTrackers:[".open.pushModal","#issuem-leaky-paywall-articles-zero-remaining-nag","#sovrn_container",'div[class$="-hide"][zoompage-fontsize][style="display: block;"]',".BlockNag__Card"],fanboySocial:["#FollowUs","#meteored_share","#social_follow",".article-sharer",".community__social-desc"],frellwitSwedish:[o("YVtocmVmKj0iY2FzaW5vcHJvLnNlIl1bdGFyZ2V0PSJfYmxhbmsiXQ=="),o("YVtocmVmKj0iZG9rdG9yLXNlLm9uZWxpbmsubWUiXQ=="),"article.category-samarbete",o("ZGl2LmhvbGlkQWRz"),"ul.adsmodern"],greekAdBlock:[o("QVtocmVmKj0iYWRtYW4ub3RlbmV0LmdyL2NsaWNrPyJd"),o("QVtocmVmKj0iaHR0cDovL2F4aWFiYW5uZXJzLmV4b2R1cy5nci8iXQ=="),o("QVtocmVmKj0iaHR0cDovL2ludGVyYWN0aXZlLmZvcnRobmV0LmdyL2NsaWNrPyJd"),"DIV.agores300","TABLE.advright"],hungarian:["#cemp_doboz",".optimonk-iframe-container",o("LmFkX19tYWlu"),o("W2NsYXNzKj0iR29vZ2xlQWRzIl0="),"#hirdetesek_box"],iDontCareAboutCookies:['.alert-info[data-block-track*="CookieNotice"]',".ModuleTemplateCookieIndicator",".o--cookies--container","#cookies-policy-sticky","#stickyCookieBar"],icelandicAbp:[o("QVtocmVmXj0iL2ZyYW1ld29yay9yZXNvdXJjZXMvZm9ybXMvYWRzLmFzcHgiXQ==")],latvian:[o("YVtocmVmPSJodHRwOi8vd3d3LnNhbGlkemluaS5sdi8iXVtzdHlsZT0iZGlzcGxheTogYmxvY2s7IHdpZHRoOiAxMjBweDsgaGVpZ2h0OiA0MHB4OyBvdmVyZmxvdzogaGlkZGVuOyBwb3NpdGlvbjogcmVsYXRpdmU7Il0="),o("YVtocmVmPSJodHRwOi8vd3d3LnNhbGlkemluaS5sdi8iXVtzdHlsZT0iZGlzcGxheTogYmxvY2s7IHdpZHRoOiA4OHB4OyBoZWlnaHQ6IDMxcHg7IG92ZXJmbG93OiBoaWRkZW47IHBvc2l0aW9uOiByZWxhdGl2ZTsiXQ==")],listKr:[o("YVtocmVmKj0iLy9hZC5wbGFuYnBsdXMuY28ua3IvIl0="),o("I2xpdmVyZUFkV3JhcHBlcg=="),o("YVtocmVmKj0iLy9hZHYuaW1hZHJlcC5jby5rci8iXQ=="),o("aW5zLmZhc3R2aWV3LWFk"),".revenue_unit_item.dable"],listeAr:[o("LmdlbWluaUxCMUFk"),".right-and-left-sponsers",o("YVtocmVmKj0iLmFmbGFtLmluZm8iXQ=="),o("YVtocmVmKj0iYm9vcmFxLm9yZyJd"),o("YVtocmVmKj0iZHViaXp6bGUuY29tL2FyLz91dG1fc291cmNlPSJd")],listeFr:[o("YVtocmVmXj0iaHR0cDovL3Byb21vLnZhZG9yLmNvbS8iXQ=="),o("I2FkY29udGFpbmVyX3JlY2hlcmNoZQ=="),o("YVtocmVmKj0id2Vib3JhbWEuZnIvZmNnaS1iaW4vIl0="),".site-pub-interstitiel",'div[id^="crt-"][data-criteo-id]'],officialPolish:["#ceneo-placeholder-ceneo-12",o("W2hyZWZePSJodHRwczovL2FmZi5zZW5kaHViLnBsLyJd"),o("YVtocmVmXj0iaHR0cDovL2Fkdm1hbmFnZXIudGVjaGZ1bi5wbC9yZWRpcmVjdC8iXQ=="),o("YVtocmVmXj0iaHR0cDovL3d3dy50cml6ZXIucGwvP3V0bV9zb3VyY2UiXQ=="),o("ZGl2I3NrYXBpZWNfYWQ=")],ro:[o("YVtocmVmXj0iLy9hZmZ0cmsuYWx0ZXgucm8vQ291bnRlci9DbGljayJd"),o("YVtocmVmXj0iaHR0cHM6Ly9ibGFja2ZyaWRheXNhbGVzLnJvL3Ryay9zaG9wLyJd"),o("YVtocmVmXj0iaHR0cHM6Ly9ldmVudC4ycGVyZm9ybWFudC5jb20vZXZlbnRzL2NsaWNrIl0="),o("YVtocmVmXj0iaHR0cHM6Ly9sLnByb2ZpdHNoYXJlLnJvLyJd"),'a[href^="/url/"]'],ruAd:[o("YVtocmVmKj0iLy9mZWJyYXJlLnJ1LyJd"),o("YVtocmVmKj0iLy91dGltZy5ydS8iXQ=="),o("YVtocmVmKj0iOi8vY2hpa2lkaWtpLnJ1Il0="),"#pgeldiz",".yandex-rtb-block"],thaiAds:["a[href*=macau-uta-popup]",o("I2Fkcy1nb29nbGUtbWlkZGxlX3JlY3RhbmdsZS1ncm91cA=="),o("LmFkczMwMHM="),".bumq",".img-kosana"],webAnnoyancesUltralist:["#mod-social-share-2","#social-tools",o("LmN0cGwtZnVsbGJhbm5lcg=="),".zergnet-recommend",".yt.btn-link.btn-md.btn"]},r=Object.keys(e),[4,ei((s=[]).concat.apply(s,r.map(function(t){return e[t]})))]):[2,void 0];case 1:return i=a.sent(),t&&function(e,t){for(var r="DOM blockers debug:\n```",i=0,n=Object.keys(e);i<n.length;i++){var s=n[i];r+="\n".concat(s,":");for(var a=0,o=e[s];a<o.length;a++){var l=o[a];r+="\n ".concat(t[l]?"🚫":"➡️"," ").concat(l)}}console.log("".concat(r,"\n```"))}(e,i),(n=r.filter(function(t){var r=e[t];return xr(r.map(function(e){return i[e]}))>.6*r.length})).sort(),[2,n]}var o})})},fontPreferences:function(){return void 0===e&&(e=4e3),Kr(function(t,r){var i=r.document,n=i.body,s=n.style;s.width="".concat(e,"px"),s.webkitTextSizeAdjust=s.textSizeAdjust="none",Br()?n.style.zoom="".concat(1/r.devicePixelRatio):jr()&&(n.style.zoom="reset");var a=i.createElement("div");return a.textContent=yr([],Array(e/20|0),!0).map(function(){return"word"}).join(" "),n.appendChild(a),function(e,t){for(var r={},i={},n=0,s=Object.keys(ui);n<s.length;n++){var a=s[n],o=ui[a],l=o[0],u=void 0===l?{}:l,c=o[1],h=void 0===c?"mmMwWLliI0fiflO&1":c,d=e.createElement("span");d.textContent=h,d.style.whiteSpace="nowrap";for(var p=0,f=Object.keys(u);p<f.length;p++){var g=f[p],m=u[g];void 0!==m&&(d.style[g]=m)}r[a]=d,t.appendChild(e.createElement("br")),t.appendChild(d)}for(var y=0,v=Object.keys(ui);y<v.length;y++)i[a=v[y]]=r[a].getBoundingClientRect().width;return i}(i,n)},'<!doctype html><html><head><meta name="viewport" content="width=device-width, initial-scale=1">');var e},audio:function(){var e=window,t=e.OfflineAudioContext||e.webkitOfflineAudioContext;if(!t)return-2;if(jr()&&!Ur()&&!function(){var e=window;return xr(["DOMRectList"in e,"RTCPeerConnectionIceEvent"in e,"SVGGeometryElement"in e,"ontransitioncancel"in e])>=3}())return-1;var r=new t(1,5e3,44100),i=r.createOscillator();i.type="triangle",i.frequency.value=1e4;var n=r.createDynamicsCompressor();n.threshold.value=-50,n.knee.value=40,n.ratio.value=12,n.attack.value=0,n.release.value=.25,i.connect(n),n.connect(r.destination),i.start(0);var s=function(e){var t=function(){};return[new Promise(function(r,i){var n=!1,s=0,a=0;e.oncomplete=function(e){return r(e.renderedBuffer)};var o=function(){setTimeout(function(){return i(Hr("timeout"))},Math.min(500,a+5e3-Date.now()))},l=function(){try{var t=e.startRendering();switch(Ir(t)&&kr(t),e.state){case"running":a=Date.now(),n&&o();break;case"suspended":document.hidden||s++,n&&s>=3?i(Hr("suspended")):setTimeout(l,500)}}catch(e){i(e)}};l(),t=function(){n||(n=!0,a>0&&o())}}),t]}(r),a=s[0],o=s[1],l=a.then(function(e){return function(e){for(var t=0,r=0;r<e.length;++r)t+=Math.abs(e[r]);return t}(e.getChannelData(0).subarray(4500))},function(e){if("timeout"===e.name||"suspended"===e.name)return-3;throw e});return kr(l),function(){return o(),l}},screenFrame:function(){var e=this,t=function(){var e=this;return function(){if(void 0===Yr){var e=function(){var t=Qr();$r(t)?Yr=setTimeout(e,2500):(Vr=t,Yr=void 0)};e()}}(),function(){return gr(e,void 0,void 0,function(){var e;return mr(this,function(t){switch(t.label){case 0:return $r(e=Qr())?Vr?[2,yr([],Vr,!0)]:(r=document).fullscreenElement||r.msFullscreenElement||r.mozFullScreenElement||r.webkitFullscreenElement?[4,Wr()]:[3,2]:[3,2];case 1:t.sent(),e=Qr(),t.label=2;case 2:return $r(e)||(Vr=e),[2,e]}var r})})}}();return function(){return gr(e,void 0,void 0,function(){var e,r;return mr(this,function(i){switch(i.label){case 0:return[4,t()];case 1:return e=i.sent(),[2,[(r=function(e){return null===e?null:Nr(e,10)})(e[0]),r(e[1]),r(e[2]),r(e[3])]]}})})}},osCpu:function(){return navigator.oscpu},languages:function(){var e,t=navigator,r=[],i=t.language||t.userLanguage||t.browserLanguage||t.systemLanguage;if(void 0!==i&&r.push([i]),Array.isArray(t.languages))Br()&&xr([!("MediaSettingsRange"in(e=window)),"RTCEncodedAudioFrame"in e,""+e.Intl=="[object Intl]",""+e.Reflect=="[object Reflect]"])>=3||r.push(t.languages);else if("string"==typeof t.languages){var n=t.languages;n&&r.push(n.split(","))}return r},colorDepth:function(){return window.screen.colorDepth},deviceMemory:function(){return Cr(Or(navigator.deviceMemory),void 0)},screenResolution:function(){var e=screen,t=function(e){return Cr(_r(e),null)},r=[t(e.width),t(e.height)];return r.sort().reverse(),r},hardwareConcurrency:function(){return Cr(_r(navigator.hardwareConcurrency),void 0)},timezone:function(){var e,t=null===(e=window.Intl)||void 0===e?void 0:e.DateTimeFormat;if(t){var r=(new t).resolvedOptions().timeZone;if(r)return r}var i,n=(i=(new Date).getFullYear(),-Math.max(Or(new Date(i,0,1).getTimezoneOffset()),Or(new Date(i,6,1).getTimezoneOffset())));return"UTC".concat(n>=0?"+":"").concat(Math.abs(n))},sessionStorage:function(){try{return!!window.sessionStorage}catch(e){return!0}},localStorage:function(){try{return!!window.localStorage}catch(e){return!0}},indexedDB:function(){var e,t;if(!(Lr()||(e=window,t=navigator,xr(["msWriteProfilerMark"in e,"MSStream"in e,"msLaunchUri"in t,"msSaveBlob"in t])>=3&&!Lr())))try{return!!window.indexedDB}catch(e){return!0}},openDatabase:function(){return!!window.openDatabase},cpuClass:function(){return navigator.cpuClass},platform:function(){var e=navigator.platform;return"MacIntel"===e&&jr()&&!Ur()?function(){if("iPad"===navigator.platform)return!0;var e=screen,t=e.width/e.height;return xr(["MediaSource"in window,!!Element.prototype.webkitRequestFullscreen,t>.65&&t<1.53])>=2}()?"iPad":"iPhone":e},plugins:function(){var e=navigator.plugins;if(e){for(var t=[],r=0;r<e.length;++r){var i=e[r];if(i){for(var n=[],s=0;s<i.length;++s){var a=i[s];n.push({type:a.type,suffixes:a.suffixes})}t.push({name:i.name,description:i.description,mimeTypes:n})}}return t}},canvas:function(){var e,t,r=!1,i=function(){var e=document.createElement("canvas");return e.width=1,e.height=1,[e,e.getContext("2d")]}(),n=i[0],s=i[1];if(function(e,t){return!(!t||!e.toDataURL)}(n,s)){r=function(e){return e.rect(0,0,10,10),e.rect(2,2,6,6),!e.isPointInPath(5,5,"evenodd")}(s),function(e,t){e.width=240,e.height=60,t.textBaseline="alphabetic",t.fillStyle="#f60",t.fillRect(100,1,62,20),t.fillStyle="#069",t.font='11pt "Times New Roman"';var r="Cwm fjordbank gly ".concat(String.fromCharCode(55357,56835));t.fillText(r,2,15),t.fillStyle="rgba(102, 204, 0, 0.2)",t.font="18pt Arial",t.fillText(r,4,45)}(n,s);var a=Zr(n);a!==Zr(n)?e=t="unstable":(t=a,function(e,t){e.width=122,e.height=110,t.globalCompositeOperation="multiply";for(var r=0,i=[["#f2f",40,40],["#2ff",80,40],["#ff2",60,80]];r<i.length;r++){var n=i[r],s=n[0],a=n[1],o=n[2];t.fillStyle=s,t.beginPath(),t.arc(a,o,40,0,2*Math.PI,!0),t.closePath(),t.fill()}t.fillStyle="#f9c",t.arc(60,60,60,0,2*Math.PI,!0),t.arc(60,60,20,0,2*Math.PI,!0),t.fill("evenodd")}(n,s),e=Zr(n))}else e=t="";return{winding:r,geometry:e,text:t}},touchSupport:function(){var e,t=navigator,r=0;void 0!==t.maxTouchPoints?r=_r(t.maxTouchPoints):void 0!==t.msMaxTouchPoints&&(r=t.msMaxTouchPoints);try{document.createEvent("TouchEvent"),e=!0}catch(t){e=!1}return{maxTouchPoints:r,touchEvent:e,touchStart:"ontouchstart"in window}},vendor:function(){return navigator.vendor||""},vendorFlavors:function(){for(var e=[],t=0,r=["chrome","safari","__crWeb","__gCrWeb","yandex","__yb","__ybro","__firefox__","__edgeTrackingPreventionStatistics","webkit","oprt","samsungAr","ucweb","UCShellJava","puffinDevice"];t<r.length;t++){var i=r[t],n=window[i];n&&"object"==typeof n&&e.push(i)}return e.sort()},cookiesEnabled:function(){var e=document;try{e.cookie="cookietest=1; SameSite=Strict;";var t=-1!==e.cookie.indexOf("cookietest=");return e.cookie="cookietest=1; SameSite=Strict; expires=Thu, 01-Jan-1970 00:00:01 GMT",t}catch(e){return!1}},colorGamut:function(){for(var e=0,t=["rec2020","p3","srgb"];e<t.length;e++){var r=t[e];if(matchMedia("(color-gamut: ".concat(r,")")).matches)return r}},invertedColors:function(){return!!ri("inverted")||!ri("none")&&void 0},forcedColors:function(){return!!ii("active")||!ii("none")&&void 0},monochrome:function(){if(matchMedia("(min-monochrome: 0)").matches){for(var e=0;e<=100;++e)if(matchMedia("(max-monochrome: ".concat(e,")")).matches)return e;throw new Error("Too high value")}},contrast:function(){return ni("no-preference")?0:ni("high")||ni("more")?1:ni("low")||ni("less")?-1:ni("forced")?10:void 0},reducedMotion:function(){return!!si("reduce")||!si("no-preference")&&void 0},hdr:function(){return!!ai("high")||!ai("standard")&&void 0},math:function(){var e,t=oi.acos||li,r=oi.acosh||li,i=oi.asin||li,n=oi.asinh||li,s=oi.atanh||li,a=oi.atan||li,o=oi.sin||li,l=oi.sinh||li,u=oi.cos||li,c=oi.cosh||li,h=oi.tan||li,d=oi.tanh||li,p=oi.exp||li,f=oi.expm1||li,g=oi.log1p||li;return{acos:t(.12312423423423424),acosh:r(1e308),acoshPf:(e=1e154,oi.log(e+oi.sqrt(e*e-1))),asin:i(.12312423423423424),asinh:n(1),asinhPf:oi.log(1+oi.sqrt(2)),atanh:s(.5),atanhPf:oi.log(3)/2,atan:a(.5),sin:o(-1e300),sinh:l(1),sinhPf:oi.exp(1)-1/oi.exp(1)/2,cos:u(10.000000000123),cosh:c(1),coshPf:(oi.exp(1)+1/oi.exp(1))/2,tan:h(-1e300),tanh:d(1),tanhPf:(oi.exp(2)-1)/(oi.exp(2)+1),exp:p(1),expm1:f(1),expm1Pf:oi.exp(1)-1,log1p:g(10),log1pPf:oi.log(11),powPI:oi.pow(oi.PI,-100)}},videoCard:function(){var e,t=document.createElement("canvas"),r=null!==(e=t.getContext("webgl"))&&void 0!==e?e:t.getContext("experimental-webgl");if(r&&"getExtension"in r){var i=r.getExtension("WEBGL_debug_renderer_info");if(i)return{vendor:(r.getParameter(i.UNMASKED_VENDOR_WEBGL)||"").toString(),renderer:(r.getParameter(i.UNMASKED_RENDERER_WEBGL)||"").toString()}}},pdfViewerEnabled:function(){return navigator.pdfViewerEnabled},architecture:function(){var e=new Float32Array(1),t=new Uint8Array(e.buffer);return e[0]=1/0,e[0]=e[0]-e[0],t[3]}};function hi(e){return JSON.stringify(e,function(e,t){return t instanceof Error?fr({name:(r=t).name,message:r.message,stack:null===(i=r.stack)||void 0===i?void 0:i.split("\n")},r):t;var r,i},2)}function di(e){return function(e,t){t=t||0;var r,i=(e=e||"").length%16,n=e.length-i,s=[0,t],a=[0,t],o=[0,0],l=[0,0],u=[2277735313,289559509],c=[1291169091,658871167];for(r=0;r<n;r+=16)o=[255&e.charCodeAt(r+4)|(255&e.charCodeAt(r+5))<<8|(255&e.charCodeAt(r+6))<<16|(255&e.charCodeAt(r+7))<<24,255&e.charCodeAt(r)|(255&e.charCodeAt(r+1))<<8|(255&e.charCodeAt(r+2))<<16|(255&e.charCodeAt(r+3))<<24],l=[255&e.charCodeAt(r+12)|(255&e.charCodeAt(r+13))<<8|(255&e.charCodeAt(r+14))<<16|(255&e.charCodeAt(r+15))<<24,255&e.charCodeAt(r+8)|(255&e.charCodeAt(r+9))<<8|(255&e.charCodeAt(r+10))<<16|(255&e.charCodeAt(r+11))<<24],o=Fr(o=Mr(o,u),31),s=Sr(s=Fr(s=Rr(s,o=Mr(o,c)),27),a),s=Sr(Mr(s,[0,5]),[0,1390208809]),l=Fr(l=Mr(l,c),33),a=Sr(a=Fr(a=Rr(a,l=Mr(l,u)),31),s),a=Sr(Mr(a,[0,5]),[0,944331445]);switch(o=[0,0],l=[0,0],i){case 15:l=Rr(l,Tr([0,e.charCodeAt(r+14)],48));case 14:l=Rr(l,Tr([0,e.charCodeAt(r+13)],40));case 13:l=Rr(l,Tr([0,e.charCodeAt(r+12)],32));case 12:l=Rr(l,Tr([0,e.charCodeAt(r+11)],24));case 11:l=Rr(l,Tr([0,e.charCodeAt(r+10)],16));case 10:l=Rr(l,Tr([0,e.charCodeAt(r+9)],8));case 9:l=Mr(l=Rr(l,[0,e.charCodeAt(r+8)]),c),a=Rr(a,l=Mr(l=Fr(l,33),u));case 8:o=Rr(o,Tr([0,e.charCodeAt(r+7)],56));case 7:o=Rr(o,Tr([0,e.charCodeAt(r+6)],48));case 6:o=Rr(o,Tr([0,e.charCodeAt(r+5)],40));case 5:o=Rr(o,Tr([0,e.charCodeAt(r+4)],32));case 4:o=Rr(o,Tr([0,e.charCodeAt(r+3)],24));case 3:o=Rr(o,Tr([0,e.charCodeAt(r+2)],16));case 2:o=Rr(o,Tr([0,e.charCodeAt(r+1)],8));case 1:o=Mr(o=Rr(o,[0,e.charCodeAt(r)]),u),s=Rr(s,o=Mr(o=Fr(o,31),c))}return s=Sr(s=Rr(s,[0,e.length]),a=Rr(a,[0,e.length])),a=Sr(a,s),s=Sr(s=Ar(s),a=Ar(a)),a=Sr(a,s),("00000000"+(s[0]>>>0).toString(16)).slice(-8)+("00000000"+(s[1]>>>0).toString(16)).slice(-8)+("00000000"+(a[0]>>>0).toString(16)).slice(-8)+("00000000"+(a[1]>>>0).toString(16)).slice(-8)}(function(e){for(var t="",r=0,i=Object.keys(e).sort();r<i.length;r++){var n=i[r],s=e[n],a=s.error?"error":JSON.stringify(s.value);t+="".concat(t?"|":"").concat(n.replace(/([:|\\])/g,"\\$1"),":").concat(a)}return t}(e))}function pi(e){return void 0===e&&(e=50),function(e,t){void 0===t&&(t=1/0);var r=window.requestIdleCallback;return r?new Promise(function(e){return r.call(window,function(){return e()},{timeout:t})}):br(Math.min(e,t))}(e,2*e)}function fi(e,t){var r=Date.now();return{get:function(i){return gr(this,void 0,void 0,function(){var n,s,a;return mr(this,function(o){switch(o.label){case 0:return n=Date.now(),[4,e()];case 1:return s=o.sent(),a=function(e){var t,r=function(e){var t=function(e){if(zr())return.4;if(jr())return Ur()?.5:.3;var t=e.platform.value||"";return/^Win/.test(t)?.6:/^Mac/.test(t)?.5:.7}(e),r=function(e){return Nr(.99+.01*e,1e-4)}(t);return{score:t,comment:"$ if upgrade to Pro: https://fpjs.dev/pro".replace(/\$/g,"".concat(r))}}(e);return{get visitorId(){return void 0===t&&(t=di(this.components)),t},set visitorId(e){t=e},confidence:r,components:e,version:vr}}(s),(t||(null==i?void 0:i.debug))&&console.log("Copy the text below to get the debug data:\n\n```\nversion: ".concat(a.version,"\nuserAgent: ").concat(navigator.userAgent,"\ntimeBetweenLoadAndGet: ").concat(n-r,"\nvisitorId: ").concat(a.visitorId,"\ncomponents: ").concat(hi(s),"\n```")),[2,a]}})})}}}var gi,mi,yi={load:function(e){var t=void 0===e?{}:e,r=t.delayFallback,i=t.debug,n=t.monitoring,s=void 0===n||n;return gr(this,void 0,void 0,function(){return mr(this,function(e){switch(e.label){case 0:return s&&function(){if(!(window.__fpjs_d_m||Math.random()>=.001))try{var e=new XMLHttpRequest;e.open("get","https://m1.openfpcdn.io/fingerprintjs/v".concat(vr,"/npm-monitoring"),!0),e.send()}catch(e){console.error(e)}}(),[4,pi(r)];case 1:return e.sent(),[2,fi(Pr(ci,{debug:i},[]),i)]}})})},hashComponents:di,componentsToDebugString:hi},vi=r(1396),bi=r.n(vi);function Ii(e,t,r){try{const i=bi().enc.Utf8.parse(t),n=bi().enc.Utf8.parse(r);return bi().AES.decrypt(e.toString(),i,{iv:n,mode:bi().mode.CBC,padding:bi().pad.Pkcs7}).toString(bi().enc.Utf8)}catch(e){return""}}!function(e){class t extends Kt.Message{#e=[];constructor(e){super(),Kt.Message.initialize(this,Array.isArray(e)?e:[],0,-1,[11],this.#e),Array.isArray(e)||"object"!=typeof e||("userId"in e&&null!=e.userId&&(this.userId=e.userId),"appId"in e&&null!=e.appId&&(this.appId=e.appId),"deviceKey"in e&&null!=e.deviceKey&&(this.deviceKey=e.deviceKey),"roomId"in e&&null!=e.roomId&&(this.roomId=e.roomId),"account"in e&&null!=e.account&&(this.account=e.account),"prefix"in e&&null!=e.prefix&&(this.prefix=e.prefix),"nickname"in e&&null!=e.nickname&&(this.nickname=e.nickname),"host"in e&&null!=e.host&&(this.host=e.host),"max"in e&&null!=e.max&&(this.max=e.max),"deviceModel"in e&&null!=e.deviceModel&&(this.deviceModel=e.deviceModel),"hosts"in e&&null!=e.hosts&&(this.hosts=e.hosts),"region"in e&&null!=e.region&&(this.region=e.region),"phone"in e&&null!=e.phone&&(this.phone=e.phone),"email"in e&&null!=e.email&&(this.email=e.email),"avatar"in e&&null!=e.avatar&&(this.avatar=e.avatar),"getaway"in e&&null!=e.getaway&&(this.getaway=e.getaway),"deviceName"in e&&null!=e.deviceName&&(this.deviceName=e.deviceName),"ip"in e&&null!=e.ip&&(this.ip=e.ip),"country"in e&&null!=e.country&&(this.country=e.country),"city"in e&&null!=e.city&&(this.city=e.city))}get userId(){return Kt.Message.getFieldWithDefault(this,1,"")}set userId(e){Kt.Message.setField(this,1,e)}get appId(){return Kt.Message.getFieldWithDefault(this,2,0)}set appId(e){Kt.Message.setField(this,2,e)}get deviceKey(){return Kt.Message.getFieldWithDefault(this,3,"")}set deviceKey(e){Kt.Message.setField(this,3,e)}get roomId(){return Kt.Message.getFieldWithDefault(this,4,0)}set roomId(e){Kt.Message.setField(this,4,e)}get account(){return Kt.Message.getFieldWithDefault(this,5,"")}set account(e){Kt.Message.setField(this,5,e)}get prefix(){return Kt.Message.getFieldWithDefault(this,6,"")}set prefix(e){Kt.Message.setField(this,6,e)}get nickname(){return Kt.Message.getFieldWithDefault(this,7,"")}set nickname(e){Kt.Message.setField(this,7,e)}get host(){return Kt.Message.getFieldWithDefault(this,8,"")}set host(e){Kt.Message.setField(this,8,e)}get max(){return Kt.Message.getFieldWithDefault(this,9,0)}set max(e){Kt.Message.setField(this,9,e)}get deviceModel(){return Kt.Message.getFieldWithDefault(this,10,"")}set deviceModel(e){Kt.Message.setField(this,10,e)}get hosts(){return Kt.Message.getFieldWithDefault(this,11,[])}set hosts(e){Kt.Message.setField(this,11,e)}get region(){return Kt.Message.getFieldWithDefault(this,12,"")}set region(e){Kt.Message.setField(this,12,e)}get phone(){return Kt.Message.getFieldWithDefault(this,13,"")}set phone(e){Kt.Message.setField(this,13,e)}get email(){return Kt.Message.getFieldWithDefault(this,14,"")}set email(e){Kt.Message.setField(this,14,e)}get avatar(){return Kt.Message.getFieldWithDefault(this,15,"")}set avatar(e){Kt.Message.setField(this,15,e)}get getaway(){return Kt.Message.getFieldWithDefault(this,16,"")}set getaway(e){Kt.Message.setField(this,16,e)}get deviceName(){return Kt.Message.getFieldWithDefault(this,17,"")}set deviceName(e){Kt.Message.setField(this,17,e)}get ip(){return Kt.Message.getFieldWithDefault(this,18,"")}set ip(e){Kt.Message.setField(this,18,e)}get country(){return Kt.Message.getFieldWithDefault(this,19,"")}set country(e){Kt.Message.setField(this,19,e)}get city(){return Kt.Message.getFieldWithDefault(this,20,"")}set city(e){Kt.Message.setField(this,20,e)}static fromObject(e){const r=new t({});return null!=e.userId&&(r.userId=e.userId),null!=e.appId&&(r.appId=e.appId),null!=e.deviceKey&&(r.deviceKey=e.deviceKey),null!=e.roomId&&(r.roomId=e.roomId),null!=e.account&&(r.account=e.account),null!=e.prefix&&(r.prefix=e.prefix),null!=e.nickname&&(r.nickname=e.nickname),null!=e.host&&(r.host=e.host),null!=e.max&&(r.max=e.max),null!=e.deviceModel&&(r.deviceModel=e.deviceModel),null!=e.hosts&&(r.hosts=e.hosts),null!=e.region&&(r.region=e.region),null!=e.phone&&(r.phone=e.phone),null!=e.email&&(r.email=e.email),null!=e.avatar&&(r.avatar=e.avatar),null!=e.getaway&&(r.getaway=e.getaway),null!=e.deviceName&&(r.deviceName=e.deviceName),null!=e.ip&&(r.ip=e.ip),null!=e.country&&(r.country=e.country),null!=e.city&&(r.city=e.city),r}toObject(){const e={};return null!=this.userId&&(e.userId=this.userId),null!=this.appId&&(e.appId=this.appId),null!=this.deviceKey&&(e.deviceKey=this.deviceKey),null!=this.roomId&&(e.roomId=this.roomId),null!=this.account&&(e.account=this.account),null!=this.prefix&&(e.prefix=this.prefix),null!=this.nickname&&(e.nickname=this.nickname),null!=this.host&&(e.host=this.host),null!=this.max&&(e.max=this.max),null!=this.deviceModel&&(e.deviceModel=this.deviceModel),null!=this.hosts&&(e.hosts=this.hosts),null!=this.region&&(e.region=this.region),null!=this.phone&&(e.phone=this.phone),null!=this.email&&(e.email=this.email),null!=this.avatar&&(e.avatar=this.avatar),null!=this.getaway&&(e.getaway=this.getaway),null!=this.deviceName&&(e.deviceName=this.deviceName),null!=this.ip&&(e.ip=this.ip),null!=this.country&&(e.country=this.country),null!=this.city&&(e.city=this.city),e}serialize(e){const t=e||new Kt.BinaryWriter;if(this.userId.length&&t.writeString(1,this.userId),0!=this.appId&&t.writeInt64(2,this.appId),this.deviceKey.length&&t.writeString(3,this.deviceKey),0!=this.roomId&&t.writeInt64(4,this.roomId),this.account.length&&t.writeString(5,this.account),this.prefix.length&&t.writeString(6,this.prefix),this.nickname.length&&t.writeString(7,this.nickname),this.host.length&&t.writeString(8,this.host),0!=this.max&&t.writeInt32(9,this.max),this.deviceModel.length&&t.writeString(10,this.deviceModel),this.hosts.length&&t.writeRepeatedString(11,this.hosts),this.region.length&&t.writeString(12,this.region),this.phone.length&&t.writeString(13,this.phone),this.email.length&&t.writeString(14,this.email),this.avatar.length&&t.writeString(15,this.avatar),this.getaway.length&&t.writeString(16,this.getaway),this.deviceName.length&&t.writeString(17,this.deviceName),this.ip.length&&t.writeString(18,this.ip),this.country.length&&t.writeString(19,this.country),this.city.length&&t.writeString(20,this.city),!e)return t.getResultBuffer()}static deserialize(e){const r=e instanceof Kt.BinaryReader?e:new Kt.BinaryReader(e),i=new t;for(;r.nextField()&&!r.isEndGroup();)switch(r.getFieldNumber()){case 1:i.userId=r.readString();break;case 2:i.appId=r.readInt64();break;case 3:i.deviceKey=r.readString();break;case 4:i.roomId=r.readInt64();break;case 5:i.account=r.readString();break;case 6:i.prefix=r.readString();break;case 7:i.nickname=r.readString();break;case 8:i.host=r.readString();break;case 9:i.max=r.readInt32();break;case 10:i.deviceModel=r.readString();break;case 11:Kt.Message.addToRepeatedField(i,11,r.readString());break;case 12:i.region=r.readString();break;case 13:i.phone=r.readString();break;case 14:i.email=r.readString();break;case 15:i.avatar=r.readString();break;case 16:i.getaway=r.readString();break;case 17:i.deviceName=r.readString();break;case 18:i.ip=r.readString();break;case 19:i.country=r.readString();break;case 20:i.city=r.readString();break;default:r.skipField()}return i}serializeBinary(){return this.serialize()}static deserializeBinary(e){return t.deserialize(e)}}e.Connect=t}(gi||(gi={})),function(e){class t extends Kt.Message{#e=[];constructor(e){super(),Kt.Message.initialize(this,Array.isArray(e)?e:[],0,-1,[],this.#e),Array.isArray(e)||"object"!=typeof e||("id"in e&&null!=e.id&&(this.id=e.id),"appId"in e&&null!=e.appId&&(this.appId=e.appId),"v"in e&&null!=e.v&&(this.v=e.v),"sort"in e&&null!=e.sort&&(this.sort=e.sort),"created"in e&&null!=e.created&&(this.created=e.created),"modified"in e&&null!=e.modified&&(this.modified=e.modified),"name"in e&&null!=e.name&&(this.name=e.name),"host"in e&&null!=e.host&&(this.host=e.host),"max"in e&&null!=e.max&&(this.max=e.max),"remark"in e&&null!=e.remark&&(this.remark=e.remark),"ip"in e&&null!=e.ip&&(this.ip=e.ip),"one"in e&&null!=e.one&&(this.one=e.one),"two"in e&&null!=e.two&&(this.two=e.two),"three"in e&&null!=e.three&&(this.three=e.three),"four"in e&&null!=e.four&&(this.four=e.four),"five"in e&&null!=e.five&&(this.five=e.five),"port"in e&&null!=e.port&&(this.port=e.port))}get id(){return Kt.Message.getFieldWithDefault(this,1,0)}set id(e){Kt.Message.setField(this,1,e)}get appId(){return Kt.Message.getFieldWithDefault(this,2,0)}set appId(e){Kt.Message.setField(this,2,e)}get v(){return Kt.Message.getFieldWithDefault(this,3,0)}set v(e){Kt.Message.setField(this,3,e)}get sort(){return Kt.Message.getFieldWithDefault(this,4,0)}set sort(e){Kt.Message.setField(this,4,e)}get created(){return Kt.Message.getFieldWithDefault(this,5,"")}set created(e){Kt.Message.setField(this,5,e)}get modified(){return Kt.Message.getFieldWithDefault(this,6,"")}set modified(e){Kt.Message.setField(this,6,e)}get name(){return Kt.Message.getFieldWithDefault(this,7,"")}set name(e){Kt.Message.setField(this,7,e)}get host(){return Kt.Message.getFieldWithDefault(this,8,"")}set host(e){Kt.Message.setField(this,8,e)}get max(){return Kt.Message.getFieldWithDefault(this,9,0)}set max(e){Kt.Message.setField(this,9,e)}get remark(){return Kt.Message.getFieldWithDefault(this,10,"")}set remark(e){Kt.Message.setField(this,10,e)}get ip(){return Kt.Message.getFieldWithDefault(this,11,0)}set ip(e){Kt.Message.setField(this,11,e)}get one(){return Kt.Message.getFieldWithDefault(this,12,0)}set one(e){Kt.Message.setField(this,12,e)}get two(){return Kt.Message.getFieldWithDefault(this,13,0)}set two(e){Kt.Message.setField(this,13,e)}get three(){return Kt.Message.getFieldWithDefault(this,14,0)}set three(e){Kt.Message.setField(this,14,e)}get four(){return Kt.Message.getFieldWithDefault(this,15,0)}set four(e){Kt.Message.setField(this,15,e)}get five(){return Kt.Message.getFieldWithDefault(this,16,0)}set five(e){Kt.Message.setField(this,16,e)}get port(){return Kt.Message.getFieldWithDefault(this,17,"")}set port(e){Kt.Message.setField(this,17,e)}static fromObject(e){const r=new t({});return null!=e.id&&(r.id=e.id),null!=e.appId&&(r.appId=e.appId),null!=e.v&&(r.v=e.v),null!=e.sort&&(r.sort=e.sort),null!=e.created&&(r.created=e.created),null!=e.modified&&(r.modified=e.modified),null!=e.name&&(r.name=e.name),null!=e.host&&(r.host=e.host),null!=e.max&&(r.max=e.max),null!=e.remark&&(r.remark=e.remark),null!=e.ip&&(r.ip=e.ip),null!=e.one&&(r.one=e.one),null!=e.two&&(r.two=e.two),null!=e.three&&(r.three=e.three),null!=e.four&&(r.four=e.four),null!=e.five&&(r.five=e.five),null!=e.port&&(r.port=e.port),r}toObject(){const e={};return null!=this.id&&(e.id=this.id),null!=this.appId&&(e.appId=this.appId),null!=this.v&&(e.v=this.v),null!=this.sort&&(e.sort=this.sort),null!=this.created&&(e.created=this.created),null!=this.modified&&(e.modified=this.modified),null!=this.name&&(e.name=this.name),null!=this.host&&(e.host=this.host),null!=this.max&&(e.max=this.max),null!=this.remark&&(e.remark=this.remark),null!=this.ip&&(e.ip=this.ip),null!=this.one&&(e.one=this.one),null!=this.two&&(e.two=this.two),null!=this.three&&(e.three=this.three),null!=this.four&&(e.four=this.four),null!=this.five&&(e.five=this.five),null!=this.port&&(e.port=this.port),e}serialize(e){const t=e||new Kt.BinaryWriter;if(0!=this.id&&t.writeInt64(1,this.id),0!=this.appId&&t.writeInt64(2,this.appId),0!=this.v&&t.writeDouble(3,this.v),0!=this.sort&&t.writeInt32(4,this.sort),this.created.length&&t.writeString(5,this.created),this.modified.length&&t.writeString(6,this.modified),this.name.length&&t.writeString(7,this.name),this.host.length&&t.writeString(8,this.host),0!=this.max&&t.writeInt64(9,this.max),this.remark.length&&t.writeString(10,this.remark),0!=this.ip&&t.writeInt32(11,this.ip),0!=this.one&&t.writeInt32(12,this.one),0!=this.two&&t.writeInt32(13,this.two),0!=this.three&&t.writeInt32(14,this.three),0!=this.four&&t.writeInt32(15,this.four),0!=this.five&&t.writeInt64(16,this.five),this.port.length&&t.writeString(17,this.port),!e)return t.getResultBuffer()}static deserialize(e){const r=e instanceof Kt.BinaryReader?e:new Kt.BinaryReader(e),i=new t;for(;r.nextField()&&!r.isEndGroup();)switch(r.getFieldNumber()){case 1:i.id=r.readInt64();break;case 2:i.appId=r.readInt64();break;case 3:i.v=r.readDouble();break;case 4:i.sort=r.readInt32();break;case 5:i.created=r.readString();break;case 6:i.modified=r.readString();break;case 7:i.name=r.readString();break;case 8:i.host=r.readString();break;case 9:i.max=r.readInt64();break;case 10:i.remark=r.readString();break;case 11:i.ip=r.readInt32();break;case 12:i.one=r.readInt32();break;case 13:i.two=r.readInt32();break;case 14:i.three=r.readInt32();break;case 15:i.four=r.readInt32();break;case 16:i.five=r.readInt64();break;case 17:i.port=r.readString();break;default:r.skipField()}return i}serializeBinary(){return this.serialize()}static deserializeBinary(e){return t.deserialize(e)}}e.Gateway=t}(mi||(mi={}));var wi=r(8287).hp,Ei=gi.Connect,ki=jt.Contacts,Si=zt.Message,Mi=mi.Gateway;class Fi extends qt{static instance;constructor(){super()}static getInstance(){if(!Fi.instance){Fi.instance=new Fi,yi.load().then(e=>e.get()).then(e=>{Fi.instance.deviceId=e.visitorId});try{wi.from("Buffer 支持度测试文本").toString()}catch(e){}}return Fi.instance}whitOption(e){if(!e)throw new Error("初始化失败");if(!e.appId.length)throw new Error("初始化失败 appId");if(!e.host.length&&!e.hosts.length)throw new Error("接入点比选其一");this.option=e,e.isWss&&(this.protocol="wss"),this.userAgent=window.navigator.userAgent;let t=window.navigator.userAgent.indexOf("("),r=window.navigator.userAgent.indexOf(")");this.deviceName=window.navigator.userAgent.substring(t+1,r);let i=window.navigator.userAgent.lastIndexOf(")");return this.deviceModel=window.navigator.userAgent.substring(i+1),this.deviceModel.length>200&&(this.deviceModel=this.deviceModel.substring(0,200)),this.deviceName.length>150&&(this.deviceName=this.deviceModel.substring(0,150)),this.meta.appId=Number(e.appId),yi.load().then(e=>e.get()).then(t=>{this.deviceId=t.visitorId,this.meta.deviceKey=t.visitorId,e?.debug&&console.warn("Client init... "+t.visitorId)}),this}userAgent="";protocol="ws";hostAddress="";hostNodeList=[];option;clientListener;connectStatus=Pt.DONE;retryTimer=-2;connectStatusTimer=-2;retryConnectNum=0;unexpectedly=0;messageListener=[];contactListener=[];teamListener=[];setToken(e){this.token=e;try{let t=this.getJwtPayload(e);this.tokenAppId=Number(t.aud),this.tokenAppId+""!=this.option?.appId&&this.option?.debug&&console.warn("IO:token中的AppId 与 IMIOClientOption不一致"),this.account&&this.isClose()&&!this.retryTimer&&this.callSocket(Number(this.account.accountId))}catch(e){this.tokenAppId=0,this.option?.debug&&console.warn("IO: token中的AppId 解析错误")}return this}isClose(){return!this.socket}getDeviceKey(){return this.deviceId}getUserInfo(){return this.account}addMessageListener(e){-1==this.messageListener.findIndex(t=>t.id==e.id)&&this.messageListener.push(e)}removeMessageListener(e){let t=this.messageListener.findIndex(t=>t.id==e.id);t>-1&&this.messageListener.splice(t,1)}addTeamListener(e){-1==this.teamListener.findIndex(t=>t.id==e.id)&&this.teamListener.push(e)}removeTeamListener(e){let t=this.teamListener.findIndex(t=>t.id==e.id);t>-1&&this.teamListener.splice(t,1)}addContactListener(e){-1==this.contactListener.findIndex(t=>t.id==e.id)&&this.contactListener.push(e)}removeContactListener(e){let t=this.contactListener.findIndex(t=>t.id==e.id);t>-1&&this.contactListener.splice(t,1)}disconnect(){return this.account=null,clearInterval(this.retryTimer),this.unexpectedly=0,this.connectStatus=Pt.DONE,this.socket&&(this.socket.close(new Error("主动关闭")),this.socket=null,this.option&&this.option.appId.length&&(this.meta.pageSize=this.pageSize,this.meta.page=0,this.meta.appId=Number(this.option?.appId))),this}connect(e,t,r,i){if(!t||t.length<50)throw new Error("IO 连接 token 必须");if(i&&(this.clientListener=i),this.token=t,!this.option)throw new Error("IOClientOption 缺失");try{let e=this.getJwtPayload(t);this.tokenAppId=Number(e.aud)}catch(e){this.tokenAppId=0}if(0==this.tokenAppId||this.tokenAppId+""!=this.option?.appId)throw new Error("token中的AppId 与 IMIOClientOption不一致");return this.option?.debug&&(console.warn("connect deviceId",this.deviceId),this.meta.deviceKey.length||(this.meta.deviceKey=this.deviceId)),this.isClose()&&this.disconnect(),this.account=new Vt,this.account.nickname=r,e&&(this.account.accountId=e.toString(),this.meta.userId=this.account.accountId),this.deviceId.length?this.callSocket(e):setTimeout(()=>{this.callSocket(e)},2e3),this}callSocket(e=0){if(!this.option)throw new Error("客户端配置项不存在");if(this.hostAddress=this.hostAddressProvider(),!this.hostAddress.length)throw new Error("主机地址不存在");let t="",r="",i="";e||(this.account&&this.account.nickname&&(t=this.account.nickname.toString()),this.account&&this.account.phone&&(r=this.account.phone.toString()),this.account&&this.account.email&&(i=this.account.email.toString()));try{this.getIP1()}catch(e){}const n=new Ei({appId:parseInt(this.option.appId),deviceKey:this.deviceId,prefix:"h5",userId:e>0?e.toString():"",nickname:e>0?t:"",email:e>0?i:"",phone:e>0?r:"",deviceModel:this.deviceModel,deviceName:this.deviceName,ip:this.ip+"",country:this.country+"",city:this.city+""});let s=null;try{s=(0,c.encodeBearerAuthMetadata)(this.token)}catch(e){return void(this.option?.debug&&console.error("Buffer Error",e))}if(!s)return;this.option?.debug&&console.warn("IO host",this.hostAddress);let o=new u.WebsocketClientTransport({debug:!0,url:`${this.protocol}://${this.hostAddress}/ws`}),h=new l.RSocketConnector({setup:{keepAlive:5e3,dataMimeType:c.WellKnownMimeType.APPLICATION_CBOR.string,metadataMimeType:c.WellKnownMimeType.MESSAGE_RSOCKET_COMPOSITE_METADATA.string,payload:{data:wi.from(n.serializeBinary().buffer),metadata:(0,c.encodeCompositeMetadata)([[c.WellKnownMimeType.MESSAGE_RSOCKET_AUTHENTICATION,(0,c.encodeBearerAuthMetadata)(this.token)]])}},transport:o,responder:{fireAndForget:(e,t)=>{const r=e.metadata,i=e.data;t.onComplete();let n="";return r&&(n=this.decodeMetadata(r).get("route")),this.option?.debug&&console.warn("IO fireAndForget...",n),this.routerParse(n,i),{cancel(){}}},requestResponse:(e,t)=>{const r=e.metadata,i=e.data;t.onNext({data:wi.from("OK")},!0);let n="";return r&&(n=this.decodeMetadata(r).get("route")),this.option?.debug&&console.warn("IO requestResponse...",n),this.routerParse(n,i),{cancel(){},onExtension(e,t,r){}}}}});this.connectStatus=Pt.CONNECTING,this.connectStatusTimer=setInterval(()=>{try{this.clientListener&&this.clientListener.onConnectStatus(this.connectStatus,this.retryConnectNum)}catch(e){}try{this.connectStatus!=Pt.SUCCESS&&this.connectStatus!=Pt.SUCCESS_PULL||this.ping()}catch(e){}},2e3),h.connect().then(e=>{this.option?.debug&&console.warn("IO connect success..."),this.account&&(this.account.status=a.online);try{this.connectStatus=Pt.SUCCESS_PULL,this.clientListener?.onConnected()}catch(e){}this.retryConnectNum=0,this.unexpectedly=0,this.socket=e,clearInterval(this.retryTimer),this.retryTimer=-2,e.onClose(e=>{let t=e?.message+"";this.option?.debug&&console.error("IOServer connect onClose",t),this.account&&(this.account.status=a.done),this.connectErrorEvent(t)})}).catch(e=>{if(this.option?.debug&&console.error("IOServer Connect Error",e),e){let t=e?.message+"";this.connectErrorEvent(t)}else{if(this.account&&(this.account.status=a.done),this.unexpectedly>6){clearInterval(this.retryTimer),clearInterval(this.connectStatusTimer),this.socket=null,this.connectStatus=Pt.ERROR,this.retryTimer=-2;try{this.clientListener?.onDisconnected()}catch(e){}return}clearInterval(this.connectStatusTimer),this.connectStatusTimer=-2,this.unexpectedly++,this.retryConnTimer()}}).finally(()=>{this.option?.debug&&console.warn("IO connect finally")})}ping(){if(!this.option)return;if(!this.option.appId.length)return;if(!this.socket)return;const e=new Ei({appId:parseInt(this.option.appId),deviceKey:this.deviceId,prefix:"h5",userId:this.account?this.account.accountId.toString():"",deviceModel:this.deviceModel,deviceName:this.deviceName});this.socket?.requestResponse({data:wi.from(e.serializeBinary().buffer),metadata:this.buildRoute("ping")},{onComplete:()=>{},onNext:(e,t)=>{},onError:e=>{},onExtension(e,t,r){}})}connectErrorEvent(e){if(this.socket=null,this.account&&(this.account.status=a.done),clearInterval(this.connectStatusTimer),this.connectStatusTimer=-2,e.indexOf("主动关闭")>-1){clearInterval(this.retryTimer),clearInterval(this.connectStatusTimer),this.connectStatus=Pt.DONE,this.retryTimer=-2,this.connectStatusTimer=-2,this.retryConnectNum=0;try{this.clientListener?.onDisconnected()}catch(e){}}else{if(e.indexOf("keep-alive")>-1){if(this.unexpectedly=0,this.unexpectedly>6){clearInterval(this.retryTimer),clearInterval(this.connectStatusTimer),this.connectStatus=Pt.ERROR,this.connectStatusTimer=-2,this.retryTimer=-2;try{this.clientListener?.onDisconnected()}catch(e){}return}return this.unexpectedly++,void this.retryConnTimer()}if(e.indexOf("unexpectedly")>-1){if(this.unexpectedly>6){clearInterval(this.retryTimer),clearInterval(this.connectStatusTimer),this.connectStatus=Pt.ERROR,this.connectStatusTimer=-2,this.retryTimer=-2;try{this.clientListener?.onDisconnected()}catch(e){}return}return this.unexpectedly++,void this.retryConnTimer()}if(e.indexOf("Jwt")>-1){clearInterval(this.retryTimer),clearInterval(this.connectStatusTimer),this.connectStatusTimer=-2,this.retryTimer=-2;try{this.connectStatus=Pt.TOKEN_EXPIRED,this.clientListener?.onConnectStatus(this.connectStatus,this.retryConnectNum)}catch(e){}try{this.clientListener?.onTokenExpired()}catch(e){}}else{if(e.indexOf("SQL")>-1||e.indexOf("connect")>-1){try{this.connectStatus=Pt.ERROR,this.clientListener?.onConnectStatus(this.connectStatus,this.retryConnectNum)}catch(e){}return this.unexpectedly++,void this.retryConnTimer()}if(e.indexOf("token")>-1)try{this.connectStatus=Pt.TOKEN_EXPIRED,this.clientListener?.onTokenExpired(),this.clientListener?.onConnectStatus(this.connectStatus,this.retryConnectNum)}catch(e){}}}}retryConnTimer(){clearInterval(this.retryTimer),this.retryTimer=setInterval(()=>{if(this.retryConnectNum>8){clearInterval(this.retryTimer),this.retryConnectNum=0;try{this.connectStatus=Pt.ERROR,this.clientListener?.onConnectStatus(this.connectStatus,this.retryConnectNum),this.clientListener?.onDisconnected()}catch(e){}}else if(!this.socket){this.retryConnectNum++,this.connectStatus=Pt.RETRY_CONNECTING;try{this.clientListener?.onConnectStatus(this.connectStatus,this.retryConnectNum)}catch(e){}if(this.account)try{let e=Number(this.account.accountId);this.callSocket(e)}catch(e){}else this.callSocket()}},8e3)}hostAddressProvider(){if(this.option&&this.option?.host){let e=this.option.host.split(":");if(-1==this.hostNodeList.findIndex(t=>t.host==e[0])){let t=new f;t.host=e[0],e.length>1&&(t.port=e[1]),this.hostNodeList.push(t)}}if(1==this.hostNodeList.length){let e=this.hostNodeList[0],t=e.host;return e.port.length&&(t=t+":"+e.port),t}if(this.hostNodeList.length>1){let e=this.hostNodeList.sort((e,t)=>t.max-t.current-(e.max-e.current))[0],t=e.host;return e.port.length&&(t=t+":"+e.port),t}return""}routerParse(e,t){switch(e){case"link-to-many":this.handleToMany(t);break;case"shutdown":this.handleShutdown(t);break;case"gateway":this.handleGateway(t);break;case"pong":clearInterval(this.connectStatusTimer),this.connectStatusTimer=-2;try{this.connectStatus=Pt.SUCCESS,this.clientListener?.onConnectStatus(this.connectStatus,this.retryConnectNum)}catch(e){}this.handelPong(t);break;case"contact":this.handleContact(t);break;case"contact-status":this.handleContactStatus(t);break;case"contact-change":this.handleContactChange(t);break;case"notice":this.handleNotice(t);break;case"message":this.handleMessage(t);break;case"message-team":this.handleMessageTeam(t)}}handleShutdown(e){if(e)try{this.clientListener?.onShutdown()}catch(e){}}handleGateway(e){if(e)try{let t=Mi.deserialize(e),r=this.buildGateway(t),i=this.deviceId.substring(0,16),n=Ii(r.host,i,i);r.host=n;let s=this.hostNodeList.find(e=>e.host==n);s?s.current=r.current:this.hostNodeList.push(r)}catch(e){}}handleToMany(e){if(!e)return;clearInterval(this.retryTimer),this.retryTimer=-2;try{this.connectStatus=Pt.RETRY_CONNECTING,this.clientListener?.onConnectStatus(this.connectStatus,this.retryConnectNum)}catch(e){}const t=Ei.deserialize(e);try{let e=this.deviceId.substring(0,16),r=Ii(t.ip,e,e);this.hostAddress=r;let i=r.split(":"),n=new f;n.max=t.appId,n.current=t.roomId,n.name=t.nickname,i.length>1?(n.host=i[0],n.port=i[1]):n.host=r;let s=this.hostNodeList.find(e=>e.name==n.name);s?(s.max=n.max,s.current=n.current,s.host=n.host,s.port=n.port):this.hostNodeList.push(n)}catch(e){}this.option?.whitHost(t.ip),this.socket&&(this.socket?.close(new Error("主动关闭")),this.account&&this.callSocket(Number(this.account.accountId)))}handelPong(e){if(e)try{const t=Ei.deserialize(e);this.account&&(this.account.accountId=t.userId,this.account.account=t.account,this.account.roomId=t.roomId,this.account.nickname=t.nickname,this.account.avatar=t.avatar),this.meta&&(this.meta.roomId=t.roomId,this.meta.userId=t.userId,this.meta.nickname=t.nickname,this.meta.avatar=t.avatar),this.option?.debug&&(console.warn("IO meta",this.meta.toObject()),console.warn("IO userinfo",this.account))}catch(e){}}handleContact(e){if(e)try{let t=ki.deserialize(e),r=this.buildContact(t),i=this.contactList.findIndex(e=>e.contactId==r.contactId);i>-1?this.contactList[i]=r:this.contactList.push(r)}catch(e){}}handleContactStatus(e){if(e)try{let t=Si.deserialize(e),r=this.contactList.findIndex(e=>!e.isGroup&&e.userId==t.fromId);if(r>-1){let e=a.done;t.command==a.offline&&(e=a.offline),t.command==a.online&&(e=a.online),t.command==a.online_busy&&(e=a.online_busy),t.command==a.online_leave&&(e=a.online_leave),this.contactList[r].status=e,this.account&&this.account.accountId.length>0&&t.fromId==this.account.accountId&&(this.account.status=t.command);for(const e of this.contactListener)try{e.onContactChange?.(!1,this.contactList[r])}catch(e){}}}catch(e){}}handleContactChange(e){if(e)try{let t=Si.deserialize(e);t.text.length&&rr.getInstance().getContactByUserId(t.text).then(e=>{let t=this.contactList.findIndex(t=>!t.isGroup&&t.userId==e.userId);if(t>-1){this.contactList.splice(t,1,e);for(const t of this.contactListener)try{t.onContactChange?.(!1,e)}catch(e){}}})}catch(e){}}handleNotice(e){if(e)try{let t=Si.deserialize(e),r=this.buildMessage(t);for(const e of this.messageListener)try{e.onNotice?.(r)}catch(e){}}catch(e){}}handleMessage(e){if(e)try{let t=Si.deserialize(e),r=this.buildMessage(t);try{pr.getInstance().setClient(this).signMessage(r.messageId,r.joinId).then()}catch(e){}for(const e of this.messageListener)try{e.onMessage?.(r)}catch(e){}}catch(e){}}handleMessageTeam(e){if(e)try{let t=Si.deserialize(e),r=this.buildMessage(t);for(const e of this.teamListener)try{e.onMessage?.(r)}catch(e){}}catch(e){}}}class Ti{_appId="";_issuer="";_host="";_hosts=[];_debug=!1;_wss=!1;constructor(){}static newBuilder(){return new Ti}whitAppId(e){return this._appId=e,this}whitIssuer(e){return this._issuer=e,this}whitHost(e){return this._host=e,this._hosts.push(e),this}whitHosts(e){return this._hosts=e,this}whitDebug(e){return this._debug=e,this}whitWss(e){return this._wss=e,this}build(){return this}get appId(){return this._appId}get issuer(){return this._issuer}get host(){return this._host}set host(e){this._host=e}get hosts(){return this._hosts}get debug(){return this._debug}get isWss(){return this._wss}}var Ri,Ai,_i=r(8287).hp,Oi=jt.Contacts,Ci=Ut.Rooms,xi=Ht.MessageSign,Ni=zt.Message;class Di extends Yt{static instance;client=null;constructor(){super()}static getInstance(){return Di.instance||(Di.instance=new Di),Di.instance}setClient(e){return this.client=e,this}search(e,t,r=1,i=50){return new Promise((n,s)=>{if(this.checkSocket().length)return void s(new Error(this.checkSocket()));this.client.meta.page=r,this.client.meta.pageSize=i;let a=0;try{e>1&&(a=Number(t))}catch(e){}const o=new Ci({meta:this.client.meta,talkMode:e,type:1==e?"protected":"",roomname:1==e||a?"":t,account:1==e?t:a?a+"":""});let l=[];this.client.socket?.requestStream({data:_i.from(o.serializeBinary().buffer),metadata:this.buildRoute("group.search")},this.client.pageSize,{onComplete:()=>{n(l)},onNext:(e,t)=>{try{if(e.data){let t=Ci.deserialize(e.data),r=this.buildGroup(t);l.push(r)}}catch(e){s(new Error("IO Client Error"))}},onError:e=>{let t=e?.message+"",r=this.onError(t);r.length>0?s(new Error(r)):s(new Error(t))},onExtension(e,t,r){}})})}getMembers(e,t=1){return new Promise((r,i)=>{if(this.checkSocket().length)return void i(new Error(this.checkSocket()));this.client.meta.page=t;const n=new Oi({meta:this.client.meta,joinRoomId:e});let s=[];this.client.socket?.requestStream({data:_i.from(n.serializeBinary().buffer),metadata:this.buildRoute("group.members")},this.client.pageSize,{onComplete:()=>{r(s)},onNext:(e,t)=>{try{if(e.data){let t=Oi.deserialize(e.data),r=this.buildMember(t);s.push(r)}}catch(e){i(new Error("IO Client Error"))}},onError:e=>{let t=e?.message+"",r=this.onError(t);r.length>0?i(new Error(r)):i(new Error(t))},onExtension(e,t,r){}})})}getGroupById(e){return new Promise(async(t,r)=>{if(this.checkSocket().length)return void r(new Error(this.checkSocket()));const i=new Oi({meta:this.client.meta,joinRoomId:e});let n=null;this.client.socket?.requestResponse({data:_i.from(i.serializeBinary().buffer),metadata:this.buildRoute("group.byId")},{onComplete:()=>{t(n)},onNext:(e,i)=>{try{if(e.data){let r=Ci.deserialize(e.data),s=this.buildGroup(r);n=s,i&&t(n)}}catch(e){r(new Error("IO Client Error"))}},onError:e=>{let t=e?.message+"",i=this.onError(t);i.length>0?r(new Error(i)):r(new Error(t))},onExtension(e,t,r){}})})}createGroup(e,t){return new Promise(async(r,i)=>{if(this.checkSocket().length)return void i(new Error(this.checkSocket()));let n=await rr.getInstance().setClient(this.client).getContactList();if(n.length<=0)return void i(new Error("联系人获取失败"));let s=n.filter(e=>!e.isGroup&&-1!=t.findIndex(t=>t==e.userId));if(s.length<=0)return void i(new Error("您设置的群成员不正确"));let a=s.map(e=>new Oi({userId:e.userId}));const o=new Ci({meta:this.client.meta,roomname:e,users:a});let l=null;this.client.socket?.requestResponse({data:_i.from(o.serializeBinary().buffer),metadata:this.buildRoute("group.create")},{onComplete:()=>{r(l)},onNext:(e,t)=>{try{if(e.data){let i=Ci.deserialize(e.data),n=this.buildGroup(i);l=n,t&&r(l)}}catch(e){i(new Error("IO Client Error"))}},onError:e=>{let t=e?.message+"",r=this.onError(t);r.length>0?i(new Error(r)):i(new Error(t))},onExtension(e,t,r){}})})}joinGroup(e,t){return new Promise((r,i)=>{if(this.checkSocket().length)return void i(new Error(this.checkSocket()));const n=new Oi({meta:this.client.meta,joinRoomId:e,remark:t});let s=[];this.client.socket?.requestStream({data:_i.from(n.serializeBinary().buffer),metadata:this.buildRoute("group.join")},this.client.pageSize,{onComplete:()=>{r(s)},onNext:(e,t)=>{try{if(e.data){let t=Oi.deserialize(e.data),r=this.buildMember(t);s.push(r)}}catch(e){i(new Error("IO Client Error"))}},onError:e=>{let t=e?.message+"",r=this.onError(t);r.length>0?i(new Error(r)):i(new Error(t))},onExtension(e,t,r){}})})}groupInvite(e,t){return new Promise((r,i)=>{if(this.checkSocket().length)return void i(new Error(this.checkSocket()));const n=new Oi({meta:this.client.meta,joinRoomId:e,fromUserId:t});let s=null;this.client.socket?.requestResponse({data:_i.from(n.serializeBinary().buffer),metadata:this.buildRoute("group.invite")},{onComplete:()=>{r(s)},onNext:(e,t)=>{try{if(e.data){let i=Ci.deserialize(e.data),n=this.buildGroup(i);s=n,t&&r(s)}}catch(e){i(new Error("IO Client Error"))}},onError:e=>{let t=e?.message+"",r=this.onError(t);r.length>0?i(new Error(r)):i(new Error(t))},onExtension(e,t,r){}})})}exit(e){return new Promise((t,r)=>{if(this.checkSocket().length)return void r(new Error(this.checkSocket()));const i=new Oi({meta:this.client.meta,joinRoomId:e});this.client.socket?.requestStream({data:_i.from(i.serializeBinary().buffer),metadata:this.buildRoute("group.exit")},30,{onComplete:()=>{t("")},onNext:(e,t)=>{},onError:e=>{let t=e?.message+"",i=this.onError(t);i.length>0?r(new Error(i)):r(new Error(t))},onExtension(e,t,r){}})})}removeMember(e,t){return new Promise((r,i)=>{if(this.checkSocket().length)return void i(new Error(this.checkSocket()));const n=new Oi({meta:this.client.meta,joinRoomId:e,fromUserId:t});this.client.socket?.requestStream({data:_i.from(n.serializeBinary().buffer),metadata:this.buildRoute("group.remove")},30,{onComplete:()=>{r("")},onNext:(e,t)=>{},onError:e=>{let t=e?.message+"",r=this.onError(t);r.length>0?i(new Error(r)):i(new Error(t))},onExtension(e,t,r){}})})}changeOwner(e,t){return new Promise((r,i)=>{if(this.checkSocket().length)return void i(new Error(this.checkSocket()));const n=new Oi({meta:this.client.meta,joinRoomId:e,userId:t});let s=null;this.client.socket?.requestResponse({data:_i.from(n.serializeBinary().buffer),metadata:this.buildRoute("group.change.owner")},{onComplete:()=>{r(s)},onNext:(e,t)=>{try{if(e.data){let i=Oi.deserialize(e.data),n=this.buildContact(i);s=n,t&&r(s)}}catch(e){i(new Error("IO Client Error"))}},onError:e=>{let t=e?.message+"",r=this.onError(t);r.length>0?i(new Error(r)):i(new Error(t))},onExtension(e,t,r){}})})}setManager(e,t){return new Promise((r,i)=>{if(this.checkSocket().length)return void i(new Error(this.checkSocket()));const n=new Oi({meta:this.client.meta,joinRoomId:e,userId:t});this.client.socket?.requestResponse({data:_i.from(n.serializeBinary().buffer),metadata:this.buildRoute("group.set.manager")},{onComplete:()=>{r("")},onNext:(e,t)=>{try{t&&r("")}catch(e){i(new Error("IO Client Error"))}},onError:e=>{let t=e?.message+"",r=this.onError(t);r.length>0?i(new Error(r)):i(new Error(t))},onExtension(e,t,r){}})})}addBlack(e,t,r){return new Promise((i,n)=>{if(this.checkSocket().length)return void n(new Error(this.checkSocket()));const s=new Oi({meta:this.client.meta,joinRoomId:e,userId:t,black:r?1:0});let a=null;this.client.socket?.requestResponse({data:_i.from(s.serializeBinary().buffer),metadata:this.buildRoute("group.add.black")},{onComplete:()=>{i(a)},onNext:(e,t)=>{try{if(e.data){let r=Oi.deserialize(e.data),n=this.buildContact(r);a=n,t&&i(a)}}catch(e){n(new Error("IO Client Error"))}},onError:e=>{let t=e?.message+"",r=this.onError(t);r.length>0?n(new Error(r)):n(new Error(t))},onExtension(e,t,r){}})})}memberMuted(e,t,r){return new Promise((i,n)=>{if(this.checkSocket().length)return void n(new Error(this.checkSocket()));const s=new Oi({meta:this.client.meta,joinRoomId:e,userId:t,apply:r?1:0});let a=null;this.client.socket?.requestResponse({data:_i.from(s.serializeBinary().buffer),metadata:this.buildRoute("group.member.muted")},{onComplete:()=>{i(a)},onNext:(e,t)=>{try{if(e.data){let r=Oi.deserialize(e.data),n=this.buildContact(r);a=n,t&&i(a)}}catch(e){n(new Error("IO Client Error"))}},onError:e=>{let t=e?.message+"",r=this.onError(t);r.length>0?n(new Error(r)):n(new Error(t))},onExtension(e,t,r){}})})}groupMuted(e,t){return new Promise((r,i)=>{if(this.checkSocket().length)return void i(new Error(this.checkSocket()));const n=new Oi({meta:this.client.meta,joinRoomId:e,apply:t?1:0});let s=null;this.client.socket?.requestResponse({data:_i.from(n.serializeBinary().buffer),metadata:this.buildRoute("group.muted")},{onComplete:()=>{r(s)},onNext:(e,t)=>{try{if(e.data){let i=Ci.deserialize(e.data),n=this.buildGroup(i);s=n,t&&r(s)}}catch(e){i(new Error("IO Client Error"))}},onError:e=>{let t=e?.message+"",r=this.onError(t);r.length>0?i(new Error(r)):i(new Error(t))},onExtension(e,t,r){}})})}setGroupQuestion(e,t,r){return new Promise((i,n)=>{if(this.checkSocket().length)return void n(new Error(this.checkSocket()));const s=new Oi({meta:this.client.meta,joinRoomId:e,username:t,remark:r});this.client.socket?.requestResponse({data:_i.from(s.serializeBinary().buffer),metadata:this.buildRoute("group.set.answer")},{onComplete:()=>{i("")},onNext:(e,t)=>{try{t&&i("")}catch(e){n(new Error("IO Client Error"))}},onError:e=>{let t=e?.message+"",r=this.onError(t);r.length>0?n(new Error(r)):n(new Error(t))},onExtension(e,t,r){}})})}setGroupName(e,t){return new Promise((r,i)=>{if(this.checkSocket().length)return void i(new Error(this.checkSocket()));const n=new Oi({meta:this.client.meta,joinRoomId:e,username:t});let s=null;this.client.socket?.requestResponse({data:_i.from(n.serializeBinary().buffer),metadata:this.buildRoute("group.set.groupname")},{onComplete:()=>{r(s)},onNext:(e,t)=>{try{if(e.data){let i=Ci.deserialize(e.data),n=this.buildGroup(i);s=n,t&&r(s)}}catch(e){i(new Error("IO Client Error"))}},onError:e=>{let t=e?.message+"",r=this.onError(t);r.length>0?i(new Error(r)):i(new Error(t))},onExtension(e,t,r){}})})}setGroupAvatar(e,t){return new Promise((r,i)=>{if(this.checkSocket().length)return void i(new Error(this.checkSocket()));const n=new Oi({meta:this.client.meta,joinRoomId:e,avatar:t});let s=null;this.client.socket?.requestResponse({data:_i.from(n.serializeBinary().buffer),metadata:this.buildRoute("group.set.avatar")},{onComplete:()=>{r(s)},onNext:(e,t)=>{try{if(e.data){let i=Ci.deserialize(e.data),n=this.buildGroup(i);s=n,t&&r(s)}}catch(e){i(new Error("IO Client Error"))}},onError:e=>{let t=e?.message+"",r=this.onError(t);r.length>0?i(new Error(r)):i(new Error(t))},onExtension(e,t,r){}})})}setGroupDepict(e,t){return new Promise((r,i)=>{if(this.checkSocket().length)return void i(new Error(this.checkSocket()));const n=new Oi({meta:this.client.meta,joinRoomId:e,remark:t});let s=null;this.client.socket?.requestResponse({data:_i.from(n.serializeBinary().buffer),metadata:this.buildRoute("group.set.depict")},{onComplete:()=>{r(s)},onNext:(e,t)=>{try{if(e.data){let i=Ci.deserialize(e.data),n=this.buildGroup(i);s=n,t&&r(s)}}catch(e){i(new Error("IO Client Error"))}},onError:e=>{let t=e?.message+"",r=this.onError(t);r.length>0?i(new Error(r)):i(new Error(t))},onExtension(e,t,r){}})})}setGroupMemberName(e,t,r){return new Promise((i,n)=>{if(this.checkSocket().length)return void n(new Error(this.checkSocket()));const s=new Oi({meta:this.client.meta,joinRoomId:e,userId:t,username:r});this.client.socket?.requestResponse({data:_i.from(s.serializeBinary().buffer),metadata:this.buildRoute("group.set.username")},{onComplete:()=>{i("")},onNext:(e,t)=>{try{t&&i("")}catch(e){n(new Error("IO Client Error"))}},onError:e=>{let t=e?.message+"",r=this.onError(t);r.length>0?n(new Error(r)):n(new Error(t))},onExtension(e,t,r){}})})}setGroupType(e,t){return new Promise((r,i)=>{if(this.checkSocket().length)return void i(new Error(this.checkSocket()));const n=new Oi({meta:this.client.meta,joinRoomId:e,apply:t});this.client.socket?.requestResponse({data:_i.from(n.serializeBinary().buffer),metadata:this.buildRoute("group.set.type")},{onComplete:()=>{r("")},onNext:(e,t)=>{try{t&&r("")}catch(e){i(new Error("IO Client Error"))}},onError:e=>{let t=e?.message+"",r=this.onError(t);r.length>0?i(new Error(r)):i(new Error(t))},onExtension(e,t,r){}})})}isPrivateChat(e,t){return new Promise((r,i)=>{if(this.checkSocket().length)return void i(new Error(this.checkSocket()));const n=new Oi({meta:this.client.meta,joinRoomId:e,apply:t?1:0});let s=null;this.client.socket?.requestResponse({data:_i.from(n.serializeBinary().buffer),metadata:this.buildRoute("group.set.privateChat")},{onComplete:()=>{r(s)},onNext:(e,t)=>{try{if(e.data){let i=Ci.deserialize(e.data),n=this.buildGroup(i);s=n,t&&r(s)}}catch(e){i(new Error("IO Client Error"))}},onError:e=>{let t=e?.message+"",r=this.onError(t);r.length>0?i(new Error(r)):i(new Error(t))},onExtension(e,t,r){}})})}isApply(e,t){return new Promise((r,i)=>{if(this.checkSocket().length)return void i(new Error(this.checkSocket()));const n=new Oi({meta:this.client.meta,joinRoomId:e,apply:t?1:0});let s=null;this.client.socket?.requestResponse({data:_i.from(n.serializeBinary().buffer),metadata:this.buildRoute("group.set.apply")},{onComplete:()=>{r(s)},onNext:(e,t)=>{try{if(e.data){let i=Ci.deserialize(e.data),n=this.buildGroup(i);s=n,t&&r(s)}}catch(e){i(new Error("IO Client Error"))}},onError:e=>{let t=e?.message+"",r=this.onError(t);r.length>0?i(new Error(r)):i(new Error(t))},onExtension(e,t,r){}})})}isInviteApply(e,t){return new Promise((r,i)=>{if(this.checkSocket().length)return void i(new Error(this.checkSocket()));const n=new Oi({meta:this.client.meta,joinRoomId:e,apply:t?1:0});let s=null;this.client.socket?.requestResponse({data:_i.from(n.serializeBinary().buffer),metadata:this.buildRoute("group.set.need")},{onComplete:()=>{r(s)},onNext:(e,t)=>{try{if(e.data){let i=Ci.deserialize(e.data),n=this.buildGroup(i);s=n,t&&r(s)}}catch(e){i(new Error("IO Client Error"))}},onError:e=>{let t=e?.message+"",r=this.onError(t);r.length>0?i(new Error(r)):i(new Error(t))},onExtension(e,t,r){}})})}isInvite(e,t){return new Promise((r,i)=>{if(this.checkSocket().length)return void i(new Error(this.checkSocket()));const n=new Oi({meta:this.client.meta,joinRoomId:e,apply:t?0:1});let s=null;this.client.socket?.requestResponse({data:_i.from(n.serializeBinary().buffer),metadata:this.buildRoute("group.set.invite")},{onComplete:()=>{r(s)},onNext:(e,t)=>{try{if(e.data){let i=Ci.deserialize(e.data),n=this.buildGroup(i);s=n,t&&r(s)}}catch(e){i(new Error("IO Client Error"))}},onError:e=>{let t=e?.message+"",r=this.onError(t);r.length>0?i(new Error(r)):i(new Error(t))},onExtension(e,t,r){}})})}isRevokeMessage(e,t){return new Promise((r,i)=>{if(this.checkSocket().length)return void i(new Error(this.checkSocket()));const n=new Oi({meta:this.client.meta,joinRoomId:e,apply:t?1:0});let s=null;this.client.socket?.requestResponse({data:_i.from(n.serializeBinary().buffer),metadata:this.buildRoute("group.set.revoke")},{onComplete:()=>{r(s)},onNext:(e,t)=>{try{if(e.data){let i=Ci.deserialize(e.data),n=this.buildGroup(i);s=n,t&&r(s)}}catch(e){i(new Error("IO Client Error"))}},onError:e=>{let t=e?.message+"",r=this.onError(t);r.length>0?i(new Error(r)):i(new Error(t))},onExtension(e,t,r){}})})}messageNotSign(e){return new Promise(async(t,r)=>{if(this.checkSocket().length)return void r(new Error(this.checkSocket()));let i=await rr.getInstance().setClient(this.client).getContactByJoinId(e);if(!i)return void r(new Error("联系人获取失败"));const n=new xi({meta:this.client.meta,roomId:i.joinId});let s=[];this.client.socket?.requestStream({data:_i.from(n.serializeBinary().buffer),metadata:this.buildRoute("message.not.sign")},300,{onComplete:()=>{t(s)},onNext:(e,t)=>{try{if(e.data){let t=Ni.deserialize(e.data),r=this.buildMessage(t);s.push(r);try{for(let e of this.client.messageListener)try{e?.onMessage?.(r)}catch(e){}}catch(e){}}}catch(e){r(new Error("IO Client Error"))}},onError:e=>{let t=e?.message+"",i=this.onError(t);i.length>0?r(new Error(i)):r(new Error(t))},onExtension(e,t,r){}})})}onError(e){if(e.indexOf("Jwt")>-1){try{this.client.clientListener?.onTokenExpired()}catch(e){}return"IO Token 已过期"}return e.indexOf("SQL")>-1||e.indexOf("connect")>-1?"IO System Error":e.indexOf("terminal")>-1||e.indexOf("signal")>-1?"请求超时":""}checkSocket(){return this.client?this.client.socket?0==this.client.getTokenAppId()||this.client.getTokenAppId()!=this.client.meta.appId?"token中的AppId 与 IMIOClientOption不一致":"":"IO Client 尚未建立连接":"IO Client 不存在"}}!function(e){class t extends Kt.Message{#e=[];constructor(e){super(),Kt.Message.initialize(this,Array.isArray(e)?e:[],0,-1,[7,8],this.#e),Array.isArray(e)||"object"!=typeof e||("id"in e&&null!=e.id&&(this.id=e.id),"appId"in e&&null!=e.appId&&(this.appId=e.appId),"v"in e&&null!=e.v&&(this.v=e.v),"sort"in e&&null!=e.sort&&(this.sort=e.sort),"created"in e&&null!=e.created&&(this.created=e.created),"modified"in e&&null!=e.modified&&(this.modified=e.modified),"ids"in e&&null!=e.ids&&(this.ids=e.ids),"appIds"in e&&null!=e.appIds&&(this.appIds=e.appIds),"remark"in e&&null!=e.remark&&(this.remark=e.remark),"meta"in e&&null!=e.meta&&(this.meta=e.meta),"roomId"in e&&null!=e.roomId&&(this.roomId=e.roomId),"nickname"in e&&null!=e.nickname&&(this.nickname=e.nickname),"username"in e&&null!=e.username&&(this.username=e.username),"account"in e&&null!=e.account&&(this.account=e.account),"mobile"in e&&null!=e.mobile&&(this.mobile=e.mobile),"email"in e&&null!=e.email&&(this.email=e.email),"avatar"in e&&null!=e.avatar&&(this.avatar=e.avatar),"gender"in e&&null!=e.gender&&(this.gender=e.gender),"birth"in e&&null!=e.birth&&(this.birth=e.birth))}get id(){return Kt.Message.getFieldWithDefault(this,1,"")}set id(e){Kt.Message.setField(this,1,e)}get appId(){return Kt.Message.getFieldWithDefault(this,2,0)}set appId(e){Kt.Message.setField(this,2,e)}get v(){return Kt.Message.getFieldWithDefault(this,3,0)}set v(e){Kt.Message.setField(this,3,e)}get sort(){return Kt.Message.getFieldWithDefault(this,4,0)}set sort(e){Kt.Message.setField(this,4,e)}get created(){return Kt.Message.getFieldWithDefault(this,5,"")}set created(e){Kt.Message.setField(this,5,e)}get modified(){return Kt.Message.getFieldWithDefault(this,6,"")}set modified(e){Kt.Message.setField(this,6,e)}get ids(){return Kt.Message.getFieldWithDefault(this,7,[])}set ids(e){Kt.Message.setField(this,7,e)}get appIds(){return Kt.Message.getFieldWithDefault(this,8,[])}set appIds(e){Kt.Message.setField(this,8,e)}get remark(){return Kt.Message.getFieldWithDefault(this,9,"")}set remark(e){Kt.Message.setField(this,9,e)}get meta(){return Kt.Message.getWrapperField(this,Nt.Meta,10)}set meta(e){Kt.Message.setWrapperField(this,10,e)}get has_meta(){return null!=Kt.Message.getField(this,10)}get roomId(){return Kt.Message.getFieldWithDefault(this,11,0)}set roomId(e){Kt.Message.setField(this,11,e)}get nickname(){return Kt.Message.getFieldWithDefault(this,12,"")}set nickname(e){Kt.Message.setField(this,12,e)}get username(){return Kt.Message.getFieldWithDefault(this,13,"")}set username(e){Kt.Message.setField(this,13,e)}get account(){return Kt.Message.getFieldWithDefault(this,14,"")}set account(e){Kt.Message.setField(this,14,e)}get mobile(){return Kt.Message.getFieldWithDefault(this,15,"")}set mobile(e){Kt.Message.setField(this,15,e)}get email(){return Kt.Message.getFieldWithDefault(this,16,"")}set email(e){Kt.Message.setField(this,16,e)}get avatar(){return Kt.Message.getFieldWithDefault(this,17,"")}set avatar(e){Kt.Message.setField(this,17,e)}get gender(){return Kt.Message.getFieldWithDefault(this,18,0)}set gender(e){Kt.Message.setField(this,18,e)}get birth(){return Kt.Message.getFieldWithDefault(this,19,"")}set birth(e){Kt.Message.setField(this,19,e)}static fromObject(e){const r=new t({});return null!=e.id&&(r.id=e.id),null!=e.appId&&(r.appId=e.appId),null!=e.v&&(r.v=e.v),null!=e.sort&&(r.sort=e.sort),null!=e.created&&(r.created=e.created),null!=e.modified&&(r.modified=e.modified),null!=e.ids&&(r.ids=e.ids),null!=e.appIds&&(r.appIds=e.appIds),null!=e.remark&&(r.remark=e.remark),null!=e.meta&&(r.meta=Nt.Meta.fromObject(e.meta)),null!=e.roomId&&(r.roomId=e.roomId),null!=e.nickname&&(r.nickname=e.nickname),null!=e.username&&(r.username=e.username),null!=e.account&&(r.account=e.account),null!=e.mobile&&(r.mobile=e.mobile),null!=e.email&&(r.email=e.email),null!=e.avatar&&(r.avatar=e.avatar),null!=e.gender&&(r.gender=e.gender),null!=e.birth&&(r.birth=e.birth),r}toObject(){const e={};return null!=this.id&&(e.id=this.id),null!=this.appId&&(e.appId=this.appId),null!=this.v&&(e.v=this.v),null!=this.sort&&(e.sort=this.sort),null!=this.created&&(e.created=this.created),null!=this.modified&&(e.modified=this.modified),null!=this.ids&&(e.ids=this.ids),null!=this.appIds&&(e.appIds=this.appIds),null!=this.remark&&(e.remark=this.remark),null!=this.meta&&(e.meta=this.meta.toObject()),null!=this.roomId&&(e.roomId=this.roomId),null!=this.nickname&&(e.nickname=this.nickname),null!=this.username&&(e.username=this.username),null!=this.account&&(e.account=this.account),null!=this.mobile&&(e.mobile=this.mobile),null!=this.email&&(e.email=this.email),null!=this.avatar&&(e.avatar=this.avatar),null!=this.gender&&(e.gender=this.gender),null!=this.birth&&(e.birth=this.birth),e}serialize(e){const t=e||new Kt.BinaryWriter;if(this.id.length&&t.writeString(1,this.id),0!=this.appId&&t.writeInt64(2,this.appId),0!=this.v&&t.writeDouble(3,this.v),0!=this.sort&&t.writeInt32(4,this.sort),this.created.length&&t.writeString(5,this.created),this.modified.length&&t.writeString(6,this.modified),this.ids.length&&t.writeRepeatedString(7,this.ids),this.appIds.length&&t.writeRepeatedString(8,this.appIds),this.remark.length&&t.writeString(9,this.remark),this.has_meta&&t.writeMessage(10,this.meta,()=>this.meta.serialize(t)),0!=this.roomId&&t.writeInt64(11,this.roomId),this.nickname.length&&t.writeString(12,this.nickname),this.username.length&&t.writeString(13,this.username),this.account.length&&t.writeString(14,this.account),this.mobile.length&&t.writeString(15,this.mobile),this.email.length&&t.writeString(16,this.email),this.avatar.length&&t.writeString(17,this.avatar),0!=this.gender&&t.writeInt32(18,this.gender),this.birth.length&&t.writeString(19,this.birth),!e)return t.getResultBuffer()}static deserialize(e){const r=e instanceof Kt.BinaryReader?e:new Kt.BinaryReader(e),i=new t;for(;r.nextField()&&!r.isEndGroup();)switch(r.getFieldNumber()){case 1:i.id=r.readString();break;case 2:i.appId=r.readInt64();break;case 3:i.v=r.readDouble();break;case 4:i.sort=r.readInt32();break;case 5:i.created=r.readString();break;case 6:i.modified=r.readString();break;case 7:Kt.Message.addToRepeatedField(i,7,r.readString());break;case 8:Kt.Message.addToRepeatedField(i,8,r.readString());break;case 9:i.remark=r.readString();break;case 10:r.readMessage(i.meta,()=>i.meta=Nt.Meta.deserialize(r));break;case 11:i.roomId=r.readInt64();break;case 12:i.nickname=r.readString();break;case 13:i.username=r.readString();break;case 14:i.account=r.readString();break;case 15:i.mobile=r.readString();break;case 16:i.email=r.readString();break;case 17:i.avatar=r.readString();break;case 18:i.gender=r.readInt32();break;case 19:i.birth=r.readString();break;default:r.skipField()}return i}serializeBinary(){return this.serialize()}static deserializeBinary(e){return t.deserialize(e)}}e.Users=t}(Ri||(Ri={})),function(e){class t extends Kt.Message{#e=[];constructor(e){super(),Kt.Message.initialize(this,Array.isArray(e)?e:[],0,-1,[7,8],this.#e),Array.isArray(e)||"object"!=typeof e||("id"in e&&null!=e.id&&(this.id=e.id),"appId"in e&&null!=e.appId&&(this.appId=e.appId),"v"in e&&null!=e.v&&(this.v=e.v),"sort"in e&&null!=e.sort&&(this.sort=e.sort),"created"in e&&null!=e.created&&(this.created=e.created),"modified"in e&&null!=e.modified&&(this.modified=e.modified),"ids"in e&&null!=e.ids&&(this.ids=e.ids),"appIds"in e&&null!=e.appIds&&(this.appIds=e.appIds),"remark"in e&&null!=e.remark&&(this.remark=e.remark),"meta"in e&&null!=e.meta&&(this.meta=e.meta),"userId"in e&&null!=e.userId&&(this.userId=e.userId),"device"in e&&null!=e.device&&(this.device=e.device),"roomId"in e&&null!=e.roomId&&(this.roomId=e.roomId),"status"in e&&null!=e.status&&(this.status=e.status),"state"in e&&null!=e.state&&(this.state=e.state),"gateway"in e&&null!=e.gateway&&(this.gateway=e.gateway),"deviceKey"in e&&null!=e.deviceKey&&(this.deviceKey=e.deviceKey),"deviceTag"in e&&null!=e.deviceTag&&(this.deviceTag=e.deviceTag),"region"in e&&null!=e.region&&(this.region=e.region))}get id(){return Kt.Message.getFieldWithDefault(this,1,0)}set id(e){Kt.Message.setField(this,1,e)}get appId(){return Kt.Message.getFieldWithDefault(this,2,0)}set appId(e){Kt.Message.setField(this,2,e)}get v(){return Kt.Message.getFieldWithDefault(this,3,0)}set v(e){Kt.Message.setField(this,3,e)}get sort(){return Kt.Message.getFieldWithDefault(this,4,0)}set sort(e){Kt.Message.setField(this,4,e)}get created(){return Kt.Message.getFieldWithDefault(this,5,"")}set created(e){Kt.Message.setField(this,5,e)}get modified(){return Kt.Message.getFieldWithDefault(this,6,"")}set modified(e){Kt.Message.setField(this,6,e)}get ids(){return Kt.Message.getFieldWithDefault(this,7,[])}set ids(e){Kt.Message.setField(this,7,e)}get appIds(){return Kt.Message.getFieldWithDefault(this,8,[])}set appIds(e){Kt.Message.setField(this,8,e)}get remark(){return Kt.Message.getFieldWithDefault(this,9,"")}set remark(e){Kt.Message.setField(this,9,e)}get meta(){return Kt.Message.getWrapperField(this,Nt.Meta,10)}set meta(e){Kt.Message.setWrapperField(this,10,e)}get has_meta(){return null!=Kt.Message.getField(this,10)}get userId(){return Kt.Message.getFieldWithDefault(this,11,"")}set userId(e){Kt.Message.setField(this,11,e)}get device(){return Kt.Message.getFieldWithDefault(this,12,"")}set device(e){Kt.Message.setField(this,12,e)}get roomId(){return Kt.Message.getFieldWithDefault(this,13,0)}set roomId(e){Kt.Message.setField(this,13,e)}get status(){return Kt.Message.getFieldWithDefault(this,14,"")}set status(e){Kt.Message.setField(this,14,e)}get state(){return Kt.Message.getFieldWithDefault(this,15,"")}set state(e){Kt.Message.setField(this,15,e)}get gateway(){return Kt.Message.getFieldWithDefault(this,16,"")}set gateway(e){Kt.Message.setField(this,16,e)}get deviceKey(){return Kt.Message.getFieldWithDefault(this,17,"")}set deviceKey(e){Kt.Message.setField(this,17,e)}get deviceTag(){return Kt.Message.getFieldWithDefault(this,18,"")}set deviceTag(e){Kt.Message.setField(this,18,e)}get region(){return Kt.Message.getFieldWithDefault(this,19,"")}set region(e){Kt.Message.setField(this,19,e)}static fromObject(e){const r=new t({});return null!=e.id&&(r.id=e.id),null!=e.appId&&(r.appId=e.appId),null!=e.v&&(r.v=e.v),null!=e.sort&&(r.sort=e.sort),null!=e.created&&(r.created=e.created),null!=e.modified&&(r.modified=e.modified),null!=e.ids&&(r.ids=e.ids),null!=e.appIds&&(r.appIds=e.appIds),null!=e.remark&&(r.remark=e.remark),null!=e.meta&&(r.meta=Nt.Meta.fromObject(e.meta)),null!=e.userId&&(r.userId=e.userId),null!=e.device&&(r.device=e.device),null!=e.roomId&&(r.roomId=e.roomId),null!=e.status&&(r.status=e.status),null!=e.state&&(r.state=e.state),null!=e.gateway&&(r.gateway=e.gateway),null!=e.deviceKey&&(r.deviceKey=e.deviceKey),null!=e.deviceTag&&(r.deviceTag=e.deviceTag),null!=e.region&&(r.region=e.region),r}toObject(){const e={};return null!=this.id&&(e.id=this.id),null!=this.appId&&(e.appId=this.appId),null!=this.v&&(e.v=this.v),null!=this.sort&&(e.sort=this.sort),null!=this.created&&(e.created=this.created),null!=this.modified&&(e.modified=this.modified),null!=this.ids&&(e.ids=this.ids),null!=this.appIds&&(e.appIds=this.appIds),null!=this.remark&&(e.remark=this.remark),null!=this.meta&&(e.meta=this.meta.toObject()),null!=this.userId&&(e.userId=this.userId),null!=this.device&&(e.device=this.device),null!=this.roomId&&(e.roomId=this.roomId),null!=this.status&&(e.status=this.status),null!=this.state&&(e.state=this.state),null!=this.gateway&&(e.gateway=this.gateway),null!=this.deviceKey&&(e.deviceKey=this.deviceKey),null!=this.deviceTag&&(e.deviceTag=this.deviceTag),null!=this.region&&(e.region=this.region),e}serialize(e){const t=e||new Kt.BinaryWriter;if(0!=this.id&&t.writeInt64(1,this.id),0!=this.appId&&t.writeInt64(2,this.appId),0!=this.v&&t.writeDouble(3,this.v),0!=this.sort&&t.writeInt32(4,this.sort),this.created.length&&t.writeString(5,this.created),this.modified.length&&t.writeString(6,this.modified),this.ids.length&&t.writeRepeatedString(7,this.ids),this.appIds.length&&t.writeRepeatedString(8,this.appIds),this.remark.length&&t.writeString(9,this.remark),this.has_meta&&t.writeMessage(10,this.meta,()=>this.meta.serialize(t)),this.userId.length&&t.writeString(11,this.userId),this.device.length&&t.writeString(12,this.device),0!=this.roomId&&t.writeInt64(13,this.roomId),this.status.length&&t.writeString(14,this.status),this.state.length&&t.writeString(15,this.state),this.gateway.length&&t.writeString(16,this.gateway),this.deviceKey.length&&t.writeString(17,this.deviceKey),this.deviceTag.length&&t.writeString(18,this.deviceTag),this.region.length&&t.writeString(19,this.region),!e)return t.getResultBuffer()}static deserialize(e){const r=e instanceof Kt.BinaryReader?e:new Kt.BinaryReader(e),i=new t;for(;r.nextField()&&!r.isEndGroup();)switch(r.getFieldNumber()){case 1:i.id=r.readInt64();break;case 2:i.appId=r.readInt64();break;case 3:i.v=r.readDouble();break;case 4:i.sort=r.readInt32();break;case 5:i.created=r.readString();break;case 6:i.modified=r.readString();break;case 7:Kt.Message.addToRepeatedField(i,7,r.readString());break;case 8:Kt.Message.addToRepeatedField(i,8,r.readString());break;case 9:i.remark=r.readString();break;case 10:r.readMessage(i.meta,()=>i.meta=Nt.Meta.deserialize(r));break;case 11:i.userId=r.readString();break;case 12:i.device=r.readString();break;case 13:i.roomId=r.readInt64();break;case 14:i.status=r.readString();break;case 15:i.state=r.readString();break;case 16:i.gateway=r.readString();break;case 17:i.deviceKey=r.readString();break;case 18:i.deviceTag=r.readString();break;case 19:i.region=r.readString();break;default:r.skipField()}return i}serializeBinary(){return this.serialize()}static deserializeBinary(e){return t.deserialize(e)}}e.UserStatus=t}(Ai||(Ai={}));var Pi,Li=r(8287).hp,Bi=Ri.Users,ji=zt.Message,Ui=Ai.UserStatus;class Wi extends Yt{static instance;client=null;constructor(){super()}static getInstance(){return Wi.instance||(Wi.instance=new Wi),Wi.instance}setClient(e){return this.client=e,this}getUserDeviceStatus(e){return new Promise((t,r)=>{if(this.checkSocket().length)return void r(new Error(this.checkSocket()));const i=new Ui({meta:this.client.meta,userId:e});let n=[];this.client.socket?.requestStream({data:Li.from(i.serializeBinary().buffer),metadata:this.buildRoute("device.status.byUserid")},100,{onComplete:()=>{t(n)},onNext:(e,t)=>{try{if(e.data){let t=Ui.deserialize(e.data),r=this.buildDeviceStatus(t);n.push(r)}}catch(e){r(new Error("IO Client Error"))}},onError:e=>{let t=e?.message+"",i=this.onError(t);i.length>0?r(new Error(i)):r(new Error(t))},onExtension(e,t,r){}})})}updateDeviceStatus(e){return new Promise((t,r)=>{if(this.checkSocket().length)return void r(new Error(this.checkSocket()));const i=new Ui({meta:this.client.meta,status:e.toString()});let n=[];this.client.socket?.requestStream({data:Li.from(i.serializeBinary().buffer),metadata:this.buildRoute("device.status.update")},100,{onComplete:()=>{t(n)},onNext:(e,t)=>{try{if(e.data){let t=Ui.deserialize(e.data),r=this.buildDeviceStatus(t);n.push(r)}}catch(e){r(new Error("IO Client Error"))}},onError:e=>{let t=e?.message+"",i=this.onError(t);i.length>0?r(new Error(i)):r(new Error(t))},onExtension(e,t,r){}})})}getNoticeMessage(e,t=1,r=40){return new Promise(async(i,n)=>{if(this.checkSocket().length)return void n(new Error(this.checkSocket()));this.client.meta.page=t,this.client.meta.pageSize=r;let s=e.toString();"notify"==e&&(s="cc"),"quietly"==e&&(s="bcc");const a=new ji({meta:this.client.meta,roomId:this.client.meta.roomId,label:s});let o=[];this.client.socket?.requestStream({data:Li.from(a.serializeBinary().buffer),metadata:this.buildRoute("message.notice.page")},500,{onComplete:()=>{i(o)},onNext:(e,t)=>{try{if(e.data){let t=ji.deserialize(e.data),r=this.buildMessage(t);o.push(r)}}catch(e){n(new Error("IO Client Error"))}},onError:e=>{let t=e?.message+"",r=this.onError(t);r.length>0?n(new Error(r)):n(new Error(t))},onExtension(e,t,r){}})})}updateUserInfo(e="",t="",r="",i=""){return new Promise((r,i)=>{if(this.checkSocket().length)return void i(new Error(this.checkSocket()));const n=new Bi({meta:this.client.meta,nickname:e,avatar:t});this.client.socket?.requestResponse({data:Li.from(n.serializeBinary().buffer),metadata:this.buildRoute("user.update.info")},{onComplete:()=>{r("")},onNext:(e,t)=>{try{t&&r("")}catch(e){i(new Error("IO Client Error"))}},onError:e=>{let t=e?.message+"",r=this.onError(t);r.length>0?i(new Error(r)):i(new Error(t))},onExtension(e,t,r){}})})}onError(e){if(e.indexOf("Jwt")>-1){try{this.client.clientListener?.onTokenExpired()}catch(e){}return"IO Token 已过期"}return e.indexOf("SQL")>-1||e.indexOf("connect")>-1?"IO System Error":e.indexOf("terminal")>-1||e.indexOf("signal")>-1?"请求超时":""}checkSocket(){return this.client?this.client.socket?0==this.client.getTokenAppId()||this.client.getTokenAppId()!=this.client.meta.appId?"token中的AppId 与 IMIOClientOption不一致":"":"IO Client 尚未建立连接":"IO Client 不存在"}}class zi{messageId="";joinId=0;cite="";type="";title="";subtitle="";text="";secret="";thumb="";host="";url="";lng="";lat="";size=0;length=0;hintList=null;notifyList=null;quietlyList=null;constructor(e){this.type=e}static buildSimpleText(e,t){let r=new zi(Pi.TEXT);if(t.length>8e4)throw Error("文本太长");return r.joinId=e,r.text=t,r}static buildImage(e,t,r,i=""){let n=new zi(Pi.IMG);if(t.length>200)throw Error("host 太长");if(r.length>2e3)throw Error("URL 太长");if(i.length>500)throw Error("secret 太长");return n.joinId=e,n.host=t,n.url=r,n.secret=i,n}static buildFile(e,t,r,i,n=""){let s=new zi(Pi.FILE);if(t.length>200)throw Error("host 太长");if(r.length>2e3)throw Error("URL 太长");if(n.length>500)throw Error("secret 太长");return s.joinId=e,s.host=t,s.url=r,s.text=i,s.secret=n,s}static buildVideo(e,t,r,i,n=""){let s=new zi(Pi.VIDEO);if(t.length>200)throw Error("host 太长");if(r.length>2e3)throw Error("URL 太长");if(n.length>500)throw Error("secret 太长");return s.joinId=e,s.host=t,s.url=r,s.secret=n,s.size=i,s}static buildAudio(e,t,r,i,n=""){let s=new zi(Pi.AUDIO);if(t.length>200)throw Error("host 太长");if(r.length>2e3)throw Error("URL 太长");if(n.length>500)throw Error("secret 太长");return s.joinId=e,s.host=t,s.url=r,s.length=i,s.secret=n,s}withCite(e){if(e.length>100)throw Error("Cite 太长");return this.cite=e,this}withTitle(e){if(e.length>200)throw Error("title 太长");return this.title=e,this}withSubtitle(e){if(e.length>200)throw Error("subtitle 太长");return this.subtitle=e,this}withSecret(e){if(this.type==Pi.TEXT)throw new Error("Secret 属性与消息类型不匹配");if(e.length>500)throw new Error("Secret 长度太长");return this.secret=e,this}withThumb(e){if(this.type==Pi.TEXT)throw new Error("Thumb 属性与消息类型不匹配");if(e.length>2e3)throw Error("thumb 太长");return this.thumb=e,this}withHost(e){if(this.type==Pi.TEXT)throw new Error("Host 属性与消息类型不匹配");if(e.length>250)throw new Error("Host 长度太长");return this.host=e,this}withUrl(e){if(this.type==Pi.TEXT)throw new Error("Url 属性与消息类型不匹配");if(e.length>2e3)throw Error("URL 太长");return this.url=e,this}withSize(e){if(this.type!=Pi.IMG&&this.type!=Pi.AUDIO&&this.type!=Pi.VIDEO&&this.type!=Pi.FILE)throw new Error("Size 属性与消息类型不匹配");return this.size=e,this}withLength(e){if(this.type!=Pi.AUDIO)throw new Error("Length 属性与消息类型不匹配");return this.length=e,this}}!function(e){e.TEXT="txt",e.IMG="img",e.AUDIO="audio",e.VIDEO="video",e.FILE="file",e.LOC="loc",e.WALLET="wallet",e.CUSTOM="custom"}(Pi||(Pi={}));const Hi={IMIOClient:Fi,IMIOClientOption:Ti,IMIOGroupManager:Di,IMIOContactManager:rr,IMIOClientConnectStatus:Pt,IMIOTeamManager:ar,IMIOMessageSender:zi,IMIOMessageSenderHint:class{targetId="";targetName="";avatar=""},IMIOMessageType:Pi,IMIOUserInfoManager:Wi,IMIOMessageLabel:t,IMIOMessage:h,IMIOMessageTalk:n,IMIOContact:d,IMIOContactStatus:a,IMIOGroup:m,IMIOGroupType:o,IMIOChatManager:pr,IMIOMember:p,IMIODeviceStatus:g,IMIOContactNotice:s}})(),i.default})());
3
3
  //# sourceMappingURL=main.js.map