mirror of
https://github.com/danog/telegram-tt.git
synced 2024-11-27 12:55:11 +01:00
3 lines
87 KiB
JavaScript
3 lines
87 KiB
JavaScript
/*! For license information please see 592.d7ca037ed9b7d1c6792a.js.LICENSE.txt */
|
|
(self.webpackChunktelegram_t=self.webpackChunktelegram_t||[]).push([[592],{8136:(t,e,r)=>{"use strict";r.r(e),r.d(e,{default:()=>w,CTR:()=>v,IGE:()=>g});var n=new Uint8Array(256),o=new Uint8Array(256),i=new Uint32Array(256),s=new Uint32Array(256),a=new Uint32Array(256),u=new Uint32Array(256),f=new Uint32Array(256),l=new Uint32Array(256),c=new Uint32Array(256),h=new Uint32Array(256);function p(t){if(t instanceof Uint32Array)return t;if("string"==typeof t){if(t.length%4!=0)for(var e=t.length%4;e<=4;e++)t+="\0x00";var r=new Uint32Array(t.length/4);for(e=0;e<t.length;e+=4)r[e/4]=(o=e,(n=t).charCodeAt(o)<<24^n.charCodeAt(o+1)<<16^n.charCodeAt(o+2)<<8^n.charCodeAt(o+3));return r}var n,o;if(t instanceof Uint8Array){for(r=new Uint32Array(t.length/4),e=0;e<t.length;e+=4)r[e/4]=t[e]<<24^t[e+1]<<16^t[e+2]<<8^t[e+3];return r}throw new Error("Unable to create 32-bit words")}function y(t,e,r){void 0===r&&(r=t);for(var n=0;n<t.length;n++)r[n]=t[n]^e[n]}!function(){for(var t,e,r,p,y,d=new Uint8Array(256),g=new Uint8Array(256),v=0,w=0,b=0;b<256;b++)d[b]=b<<1^283*(b>>7),g[d[b]^b]=b;for(;!n[v];v^=t||1)r=(r=w^w<<1^w<<2^w<<3^w<<4)>>8^255&r^99,n[v]=r,o[r]=v,y=16843009*d[e=d[t=d[v]]]^65537*e^257*t^16843008*v,p=257*d[r]^16843008*r,i[v]=p=p<<24^p>>>8,s[v]=p=p<<24^p>>>8,a[v]=p=p<<24^p>>>8,u[v]=p=p<<24^p>>>8,f[r]=y=y<<24^y>>>8,l[r]=y=y<<24^y>>>8,c[r]=y=y<<24^y>>>8,h[r]=y=y<<24^y>>>8,w=g[w]||1}();var d=function(){function t(t){var e=p(t);if(4!==e.length&&6!==e.length&&8!==e.length)throw new Error("Invalid key size");this.encKey=new Uint32Array(4*e.length+28),this.decKey=new Uint32Array(4*e.length+28),this.encKey.set(e);for(var r,o=1,i=e.length;i<4*e.length+28;i++)r=this.encKey[i-1],(i%e.length==0||8===e.length&&i%e.length==4)&&(r=n[r>>>24]<<24^n[r>>16&255]<<16^n[r>>8&255]<<8^n[255&r],i%e.length==0&&(r=r<<8^r>>>24^o<<24,o=o<<1^283*(o>>7))),this.encKey[i]=this.encKey[i-e.length]^r;for(var s=0;i;s++,i--)r=this.encKey[3&s?i:i-4],this.decKey[s]=i<=4||s<4?r:f[n[r>>>24]]^l[n[r>>16&255]]^c[n[r>>8&255]]^h[n[255&r]]}return t.prototype.encrypt=function(t){for(var e,r,o,f=p(t),l=new Uint32Array(4),c=f[0]^this.encKey[0],h=f[1]^this.encKey[1],y=f[2]^this.encKey[2],d=f[3]^this.encKey[3],g=this.encKey.length/4-2,v=4,w=0;w<g;w++)e=i[c>>>24]^s[h>>16&255]^a[y>>8&255]^u[255&d]^this.encKey[v],r=i[h>>>24]^s[y>>16&255]^a[d>>8&255]^u[255&c]^this.encKey[v+1],o=i[y>>>24]^s[d>>16&255]^a[c>>8&255]^u[255&h]^this.encKey[v+2],d=i[d>>>24]^s[c>>16&255]^a[h>>8&255]^u[255&y]^this.encKey[v+3],c=e,h=r,y=o,v+=4;for(w=0;w<4;w++)l[w]=n[c>>>24]<<24^n[h>>16&255]<<16^n[y>>8&255]<<8^n[255&d]^this.encKey[v++],e=c,c=h,h=y,y=d,d=e;return l},t.prototype.decrypt=function(t){for(var e,r,n,i=p(t),s=new Uint32Array(4),a=i[0]^this.decKey[0],u=i[3]^this.decKey[1],y=i[2]^this.decKey[2],d=i[1]^this.decKey[3],g=this.decKey.length/4-2,v=4,w=0;w<g;w++)e=f[a>>>24]^l[u>>16&255]^c[y>>8&255]^h[255&d]^this.decKey[v],r=f[u>>>24]^l[y>>16&255]^c[d>>8&255]^h[255&a]^this.decKey[v+1],n=f[y>>>24]^l[d>>16&255]^c[a>>8&255]^h[255&u]^this.decKey[v+2],d=f[d>>>24]^l[a>>16&255]^c[u>>8&255]^h[255&y]^this.decKey[v+3],a=e,u=r,y=n,v+=4;for(w=0;w<4;w++)s[3&-w]=o[a>>>24]<<24^o[u>>16&255]<<16^o[y>>8&255]<<8^o[255&d]^this.decKey[v++],e=a,a=u,u=y,y=d,d=e;return s},t}(),g=function(){function t(t,e,r){void 0===r&&(r=16),this.key=p(t),this.iv=p(e),this.cipher=new d(t),this.blockSize=r/4}return t.prototype.encrypt=function(t,e){for(var r=p(t),n=e||new Uint32Array(r.length),o=this.iv.subarray(this.blockSize,this.iv.length),i=this.iv.subarray(0,this.blockSize),s=new Uint32Array(this.blockSize),a=0;a<r.length;a+=this.blockSize){var u=r.subarray(a,a+this.blockSize);y(u,i,s);var f=this.cipher.encrypt(s);y(f,o),o=u,i=f;for(var l=a,c=0;l<r.length&&c<4;l++,c++)n[l]=f[c]}return n},t.prototype.decrypt=function(t,e){for(var r=p(t),n=e||new Uint32Array(r.length),o=this.iv.subarray(this.blockSize,this.iv.length),i=this.iv.subarray(0,this.blockSize),s=new Uint32Array(this.blockSize),a=0;a<n.length;a+=this.blockSize){var u=r.subarray(a,a+this.blockSize);y(u,o,s);var f=this.cipher.decrypt(s);y(f,i),i=u,o=f;for(var l=a,c=0;l<n.length&&c<4;l++,c++)n[l]=f[c]}return n},t}(),v=function(){function t(t,e,r){if(void 0===r&&(r=16),this.offset=0,this.key=p(t),this.counter=p(e),this.cipher=new d(t),this.blockSize=r/4,4!==this.counter.length)throw new Error("AES-CTR mode counter must be 16 bytes length")}return t.prototype.encrypt=function(t,e){for(var r=p(t),n=e||new Uint32Array(r.length),o=this.offset,i=0;i<r.length;i+=this.blockSize){for(var s=this.cipher.encrypt(this.counter),a=i,u=o;a<r.length&&u<this.blockSize;a++,u++)n[a]=s[u]^r[a];r.length-i>=this.blockSize&&this.incrementCounter(),o&&(i-=o,o=0)}return this.offset=(this.offset+r.length%4)%4,n},t.prototype.decrypt=function(t,e){return this.encrypt(t,e)},t.prototype.incrementCounter=function(){for(var t=this.counter.length-1;t>=0&&!(++this.counter[t]<4294967295);t--);},t}();const w=d},5078:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(655),o=r(2403),i=function(){function t(t){this._semaphore=new o.default(1,t)}return t.prototype.acquire=function(){return n.__awaiter(this,void 0,void 0,(function(){return n.__generator(this,(function(t){switch(t.label){case 0:return[4,this._semaphore.acquire()];case 1:return[2,t.sent()[1]]}}))}))},t.prototype.runExclusive=function(t){return this._semaphore.runExclusive((function(){return t()}))},t.prototype.isLocked=function(){return this._semaphore.isLocked()},t.prototype.release=function(){this._semaphore.release()},t.prototype.cancel=function(){return this._semaphore.cancel()},t}();e.default=i},2403:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(655),o=r(1764),i=function(){function t(t,e){if(void 0===e&&(e=o.E_CANCELED),this._maxConcurrency=t,this._cancelError=e,this._queue=[],t<=0)throw new Error("semaphore must be initialized to a positive value");this._value=t}return t.prototype.acquire=function(){var t=this,e=this.isLocked(),r=new Promise((function(e,r){return t._queue.push({resolve:e,reject:r})}));return e||this._dispatch(),r},t.prototype.runExclusive=function(t){return n.__awaiter(this,void 0,void 0,(function(){var e,r,o;return n.__generator(this,(function(n){switch(n.label){case 0:return[4,this.acquire()];case 1:e=n.sent(),r=e[0],o=e[1],n.label=2;case 2:return n.trys.push([2,,4,5]),[4,t(r)];case 3:return[2,n.sent()];case 4:return o(),[7];case 5:return[2]}}))}))},t.prototype.isLocked=function(){return this._value<=0},t.prototype.release=function(){if(this._maxConcurrency>1)throw new Error("this method is unavailable on semaphores with concurrency > 1; use the scoped release returned by acquire instead");if(this._currentReleaser){var t=this._currentReleaser;this._currentReleaser=void 0,t()}},t.prototype.cancel=function(){var t=this;this._queue.forEach((function(e){return e.reject(t._cancelError)})),this._queue=[]},t.prototype._dispatch=function(){var t=this,e=this._queue.shift();if(e){var r=!1;this._currentReleaser=function(){r||(r=!0,t._value++,t._dispatch())},e.resolve([this._value--,this._currentReleaser])}},t}();e.default=i},1764:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.E_CANCELED=e.E_ALREADY_LOCKED=e.E_TIMEOUT=void 0,e.E_TIMEOUT=new Error("timeout while waiting for mutex to become available"),e.E_ALREADY_LOCKED=new Error("mutex already locked"),e.E_CANCELED=new Error("request for lock canceled")},8125:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.tryAcquire=e.withTimeout=e.Semaphore=e.Mutex=void 0;var n=r(655),o=r(5078);Object.defineProperty(e,"Mutex",{enumerable:!0,get:function(){return o.default}});var i=r(2403);Object.defineProperty(e,"Semaphore",{enumerable:!0,get:function(){return i.default}});var s=r(1960);Object.defineProperty(e,"withTimeout",{enumerable:!0,get:function(){return s.withTimeout}});var a=r(3143);Object.defineProperty(e,"tryAcquire",{enumerable:!0,get:function(){return a.tryAcquire}}),n.__exportStar(r(1764),e)},3143:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.tryAcquire=void 0;var n=r(1764),o=r(1960);e.tryAcquire=function(t,e){return void 0===e&&(e=n.E_ALREADY_LOCKED),o.withTimeout(t,0,e)}},1960:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.withTimeout=void 0;var n=r(655),o=r(1764);e.withTimeout=function(t,e,r){var i=this;return void 0===r&&(r=o.E_TIMEOUT),{acquire:function(){return new Promise((function(o,s){return n.__awaiter(i,void 0,void 0,(function(){var i,a,u,f;return n.__generator(this,(function(n){switch(n.label){case 0:i=!1,a=setTimeout((function(){i=!0,s(r)}),e),n.label=1;case 1:return n.trys.push([1,3,,4]),[4,t.acquire()];case 2:return u=n.sent(),i?(Array.isArray(u)?u[1]:u)():(clearTimeout(a),o(u)),[3,4];case 3:return f=n.sent(),i||(clearTimeout(a),s(f)),[3,4];case 4:return[2]}}))}))}))},runExclusive:function(t){return n.__awaiter(this,void 0,void 0,(function(){var e,r;return n.__generator(this,(function(n){switch(n.label){case 0:e=function(){},n.label=1;case 1:return n.trys.push([1,,7,8]),[4,this.acquire()];case 2:return r=n.sent(),Array.isArray(r)?(e=r[1],[4,t(r[0])]):[3,4];case 3:return[2,n.sent()];case 4:return e=r,[4,t()];case 5:return[2,n.sent()];case 6:return[3,8];case 7:return e(),[7];case 8:return[2]}}))}))},release:function(){t.release()},cancel:function(){return t.cancel()},isLocked:function(){return t.isLocked()}}}},9742:(t,e)=>{"use strict";e.byteLength=function(t){var e=u(t),r=e[0],n=e[1];return 3*(r+n)/4-n},e.toByteArray=function(t){var e,r,i=u(t),s=i[0],a=i[1],f=new o(function(t,e,r){return 3*(e+r)/4-r}(0,s,a)),l=0,c=a>0?s-4:s;for(r=0;r<c;r+=4)e=n[t.charCodeAt(r)]<<18|n[t.charCodeAt(r+1)]<<12|n[t.charCodeAt(r+2)]<<6|n[t.charCodeAt(r+3)],f[l++]=e>>16&255,f[l++]=e>>8&255,f[l++]=255&e;return 2===a&&(e=n[t.charCodeAt(r)]<<2|n[t.charCodeAt(r+1)]>>4,f[l++]=255&e),1===a&&(e=n[t.charCodeAt(r)]<<10|n[t.charCodeAt(r+1)]<<4|n[t.charCodeAt(r+2)]>>2,f[l++]=e>>8&255,f[l++]=255&e),f},e.fromByteArray=function(t){for(var e,n=t.length,o=n%3,i=[],s=16383,a=0,u=n-o;a<u;a+=s)i.push(f(t,a,a+s>u?u:a+s));return 1===o?(e=t[n-1],i.push(r[e>>2]+r[e<<4&63]+"==")):2===o&&(e=(t[n-2]<<8)+t[n-1],i.push(r[e>>10]+r[e>>4&63]+r[e<<2&63]+"=")),i.join("")};for(var r=[],n=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,a=i.length;s<a;++s)r[s]=i[s],n[i.charCodeAt(s)]=s;function u(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");return-1===r&&(r=e),[r,r===e?0:4-r%4]}function f(t,e,n){for(var o,i,s=[],a=e;a<n;a+=3)o=(t[a]<<16&16711680)+(t[a+1]<<8&65280)+(255&t[a+2]),s.push(r[(i=o)>>18&63]+r[i>>12&63]+r[i>>6&63]+r[63&i]);return s.join("")}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},4736:(t,e,r)=>{var n;t=r.nmd(t);var o=function(t){"use strict";var e=1e7,r=9007199254740992,n=h(r),i="0123456789abcdefghijklmnopqrstuvwxyz",s="function"==typeof BigInt;function a(t,e,r,n){return void 0===t?a[0]:void 0===e||10==+e&&!r?H(t):K(t,e,r,n)}function u(t,e){this.value=t,this.sign=e,this.isSmall=!1}function f(t){this.value=t,this.sign=t<0,this.isSmall=!0}function l(t){this.value=t}function c(t){return-r<t&&t<r}function h(t){return t<1e7?[t]:t<1e14?[t%1e7,Math.floor(t/1e7)]:[t%1e7,Math.floor(t/1e7)%1e7,Math.floor(t/1e14)]}function p(t){y(t);var r=t.length;if(r<4&&U(t,n)<0)switch(r){case 0:return 0;case 1:return t[0];case 2:return t[0]+t[1]*e;default:return t[0]+(t[1]+t[2]*e)*e}return t}function y(t){for(var e=t.length;0===t[--e];);t.length=e+1}function d(t){for(var e=new Array(t),r=-1;++r<t;)e[r]=0;return e}function g(t){return t>0?Math.floor(t):Math.ceil(t)}function v(t,r){var n,o,i=t.length,s=r.length,a=new Array(i),u=0,f=e;for(o=0;o<s;o++)u=(n=t[o]+r[o]+u)>=f?1:0,a[o]=n-u*f;for(;o<i;)u=(n=t[o]+u)===f?1:0,a[o++]=n-u*f;return u>0&&a.push(u),a}function w(t,e){return t.length>=e.length?v(t,e):v(e,t)}function b(t,r){var n,o,i=t.length,s=new Array(i),a=e;for(o=0;o<i;o++)n=t[o]-a+r,r=Math.floor(n/a),s[o]=n-r*a,r+=1;for(;r>0;)s[o++]=r%a,r=Math.floor(r/a);return s}function m(t,r){var n,o,i=t.length,s=r.length,a=new Array(i),u=0,f=e;for(n=0;n<s;n++)(o=t[n]-u-r[n])<0?(o+=f,u=1):u=0,a[n]=o;for(n=s;n<i;n++){if(!((o=t[n]-u)<0)){a[n++]=o;break}o+=f,a[n]=o}for(;n<i;n++)a[n]=t[n];return y(a),a}function _(t,r,n){var o,i,s=t.length,a=new Array(s),l=-r,c=e;for(o=0;o<s;o++)i=t[o]+l,l=Math.floor(i/c),i%=c,a[o]=i<0?i+c:i;return"number"==typeof(a=p(a))?(n&&(a=-a),new f(a)):new u(a,n)}function E(t,r){var n,o,i,s,a=t.length,u=r.length,f=d(a+u),l=e;for(i=0;i<a;++i){s=t[i];for(var c=0;c<u;++c)n=s*r[c]+f[i+c],o=Math.floor(n/l),f[i+c]=n-o*l,f[i+c+1]+=o}return y(f),f}function A(t,r){var n,o,i=t.length,s=new Array(i),a=e,u=0;for(o=0;o<i;o++)n=t[o]*r+u,u=Math.floor(n/a),s[o]=n-u*a;for(;u>0;)s[o++]=u%a,u=Math.floor(u/a);return s}function k(t,e){for(var r=[];e-- >0;)r.push(0);return r.concat(t)}function B(t,e){var r=Math.max(t.length,e.length);if(r<=30)return E(t,e);r=Math.ceil(r/2);var n=t.slice(r),o=t.slice(0,r),i=e.slice(r),s=e.slice(0,r),a=B(o,s),u=B(n,i),f=B(w(o,n),w(s,i)),l=w(w(a,k(m(m(f,a),u),r)),k(u,2*r));return y(l),l}function S(t,r,n){return new u(t<e?A(r,t):E(r,h(t)),n)}function O(t){var r,n,o,i,s=t.length,a=d(s+s),u=e;for(o=0;o<s;o++){n=0-(i=t[o])*i;for(var f=o;f<s;f++)r=i*t[f]*2+a[o+f]+n,n=Math.floor(r/u),a[o+f]=r-n*u;a[o+s]=n}return y(a),a}function x(t,e){var r,n,o,i,s=t.length,a=d(s);for(o=0,r=s-1;r>=0;--r)o=(i=1e7*o+t[r])-(n=g(i/e))*e,a[r]=0|n;return[a,0|o]}function I(t,r){var n,o=H(r);if(s)return[new l(t.value/o.value),new l(t.value%o.value)];var i,c=t.value,v=o.value;if(0===v)throw new Error("Cannot divide by zero");if(t.isSmall)return o.isSmall?[new f(g(c/v)),new f(c%v)]:[a[0],t];if(o.isSmall){if(1===v)return[t,a[0]];if(-1==v)return[t.negate(),a[0]];var w=Math.abs(v);if(w<e){i=p((n=x(c,w))[0]);var b=n[1];return t.sign&&(b=-b),"number"==typeof i?(t.sign!==o.sign&&(i=-i),[new f(i),new f(b)]):[new u(i,t.sign!==o.sign),new f(b)]}v=h(w)}var _=U(c,v);if(-1===_)return[a[0],t];if(0===_)return[a[t.sign===o.sign?1:-1],a[0]];i=(n=c.length+v.length<=200?function(t,r){var n,o,i,s,a,u,f,l=t.length,c=r.length,h=e,y=d(r.length),g=r[c-1],v=Math.ceil(h/(2*g)),w=A(t,v),b=A(r,v);for(w.length<=l&&w.push(0),b.push(0),g=b[c-1],o=l-c;o>=0;o--){for(n=h-1,w[o+c]!==g&&(n=Math.floor((w[o+c]*h+w[o+c-1])/g)),i=0,s=0,u=b.length,a=0;a<u;a++)i+=n*b[a],f=Math.floor(i/h),s+=w[o+a]-(i-f*h),i=f,s<0?(w[o+a]=s+h,s=-1):(w[o+a]=s,s=0);for(;0!==s;){for(n-=1,i=0,a=0;a<u;a++)(i+=w[o+a]-h+b[a])<0?(w[o+a]=i+h,i=0):(w[o+a]=i,i=1);s+=i}y[o]=n}return w=x(w,v)[0],[p(y),p(w)]}(c,v):function(t,r){for(var n,o,i,s,a,u=t.length,f=r.length,l=[],c=[],h=e;u;)if(c.unshift(t[--u]),y(c),U(c,r)<0)l.push(0);else{i=c[(o=c.length)-1]*h+c[o-2],s=r[f-1]*h+r[f-2],o>f&&(i=(i+1)*h),n=Math.ceil(i/s);do{if(U(a=A(r,n),c)<=0)break;n--}while(n);l.push(n),c=m(c,a)}return l.reverse(),[p(l),p(c)]}(c,v))[0];var E=t.sign!==o.sign,k=n[1],B=t.sign;return"number"==typeof i?(E&&(i=-i),i=new f(i)):i=new u(i,E),"number"==typeof k?(B&&(k=-k),k=new f(k)):k=new u(k,B),[i,k]}function U(t,e){if(t.length!==e.length)return t.length>e.length?1:-1;for(var r=t.length-1;r>=0;r--)if(t[r]!==e[r])return t[r]>e[r]?1:-1;return 0}function R(t){var e=t.abs();return!e.isUnit()&&(!!(e.equals(2)||e.equals(3)||e.equals(5))||!(e.isEven()||e.isDivisibleBy(3)||e.isDivisibleBy(5))&&(!!e.lesser(49)||void 0))}function T(t,e){for(var r,n,i,s=t.prev(),a=s,u=0;a.isEven();)a=a.divide(2),u++;t:for(n=0;n<e.length;n++)if(!t.lesser(e[n])&&!(i=o(e[n]).modPow(a,t)).isUnit()&&!i.equals(s)){for(r=u-1;0!=r;r--){if((i=i.square().mod(t)).isUnit())return!1;if(i.equals(s))continue t}return!1}return!0}u.prototype=Object.create(a.prototype),f.prototype=Object.create(a.prototype),l.prototype=Object.create(a.prototype),u.prototype.add=function(t){var e=H(t);if(this.sign!==e.sign)return this.subtract(e.negate());var r=this.value,n=e.value;return e.isSmall?new u(b(r,Math.abs(n)),this.sign):new u(w(r,n),this.sign)},u.prototype.plus=u.prototype.add,f.prototype.add=function(t){var e=H(t),r=this.value;if(r<0!==e.sign)return this.subtract(e.negate());var n=e.value;if(e.isSmall){if(c(r+n))return new f(r+n);n=h(Math.abs(n))}return new u(b(n,Math.abs(r)),r<0)},f.prototype.plus=f.prototype.add,l.prototype.add=function(t){return new l(this.value+H(t).value)},l.prototype.plus=l.prototype.add,u.prototype.subtract=function(t){var e=H(t);if(this.sign!==e.sign)return this.add(e.negate());var r=this.value,n=e.value;return e.isSmall?_(r,Math.abs(n),this.sign):function(t,e,r){var n;return U(t,e)>=0?n=m(t,e):(n=m(e,t),r=!r),"number"==typeof(n=p(n))?(r&&(n=-n),new f(n)):new u(n,r)}(r,n,this.sign)},u.prototype.minus=u.prototype.subtract,f.prototype.subtract=function(t){var e=H(t),r=this.value;if(r<0!==e.sign)return this.add(e.negate());var n=e.value;return e.isSmall?new f(r-n):_(n,Math.abs(r),r>=0)},f.prototype.minus=f.prototype.subtract,l.prototype.subtract=function(t){return new l(this.value-H(t).value)},l.prototype.minus=l.prototype.subtract,u.prototype.negate=function(){return new u(this.value,!this.sign)},f.prototype.negate=function(){var t=this.sign,e=new f(-this.value);return e.sign=!t,e},l.prototype.negate=function(){return new l(-this.value)},u.prototype.abs=function(){return new u(this.value,!1)},f.prototype.abs=function(){return new f(Math.abs(this.value))},l.prototype.abs=function(){return new l(this.value>=0?this.value:-this.value)},u.prototype.multiply=function(t){var r,n,o,i=H(t),s=this.value,f=i.value,l=this.sign!==i.sign;if(i.isSmall){if(0===f)return a[0];if(1===f)return this;if(-1===f)return this.negate();if((r=Math.abs(f))<e)return new u(A(s,r),l);f=h(r)}return new u(-.012*(n=s.length)-.012*(o=f.length)+15e-6*n*o>0?B(s,f):E(s,f),l)},u.prototype.times=u.prototype.multiply,f.prototype._multiplyBySmall=function(t){return c(t.value*this.value)?new f(t.value*this.value):S(Math.abs(t.value),h(Math.abs(this.value)),this.sign!==t.sign)},u.prototype._multiplyBySmall=function(t){return 0===t.value?a[0]:1===t.value?this:-1===t.value?this.negate():S(Math.abs(t.value),this.value,this.sign!==t.sign)},f.prototype.multiply=function(t){return H(t)._multiplyBySmall(this)},f.prototype.times=f.prototype.multiply,l.prototype.multiply=function(t){return new l(this.value*H(t).value)},l.prototype.times=l.prototype.multiply,u.prototype.square=function(){return new u(O(this.value),!1)},f.prototype.square=function(){var t=this.value*this.value;return c(t)?new f(t):new u(O(h(Math.abs(this.value))),!1)},l.prototype.square=function(t){return new l(this.value*this.value)},u.prototype.divmod=function(t){var e=I(this,t);return{quotient:e[0],remainder:e[1]}},l.prototype.divmod=f.prototype.divmod=u.prototype.divmod,u.prototype.divide=function(t){return I(this,t)[0]},l.prototype.over=l.prototype.divide=function(t){return new l(this.value/H(t).value)},f.prototype.over=f.prototype.divide=u.prototype.over=u.prototype.divide,u.prototype.mod=function(t){return I(this,t)[1]},l.prototype.mod=l.prototype.remainder=function(t){return new l(this.value%H(t).value)},f.prototype.remainder=f.prototype.mod=u.prototype.remainder=u.prototype.mod,u.prototype.pow=function(t){var e,r,n,o=H(t),i=this.value,s=o.value;if(0===s)return a[1];if(0===i)return a[0];if(1===i)return a[1];if(-1===i)return o.isEven()?a[1]:a[-1];if(o.sign)return a[0];if(!o.isSmall)throw new Error("The exponent "+o.toString()+" is too large.");if(this.isSmall&&c(e=Math.pow(i,s)))return new f(g(e));for(r=this,n=a[1];!0&s&&(n=n.times(r),--s),0!==s;)s/=2,r=r.square();return n},f.prototype.pow=u.prototype.pow,l.prototype.pow=function(t){var e=H(t),r=this.value,n=e.value,o=BigInt(0),i=BigInt(1),s=BigInt(2);if(n===o)return a[1];if(r===o)return a[0];if(r===i)return a[1];if(r===BigInt(-1))return e.isEven()?a[1]:a[-1];if(e.isNegative())return new l(o);for(var u=this,f=a[1];(n&i)===i&&(f=f.times(u),--n),n!==o;)n/=s,u=u.square();return f},u.prototype.modPow=function(t,e){if(t=H(t),(e=H(e)).isZero())throw new Error("Cannot take modPow with modulus 0");var r=a[1],n=this.mod(e);for(t.isNegative()&&(t=t.multiply(a[-1]),n=n.modInv(e));t.isPositive();){if(n.isZero())return a[0];t.isOdd()&&(r=r.multiply(n).mod(e)),t=t.divide(2),n=n.square().mod(e)}return r},l.prototype.modPow=f.prototype.modPow=u.prototype.modPow,u.prototype.compareAbs=function(t){var e=H(t),r=this.value,n=e.value;return e.isSmall?1:U(r,n)},f.prototype.compareAbs=function(t){var e=H(t),r=Math.abs(this.value),n=e.value;return e.isSmall?r===(n=Math.abs(n))?0:r>n?1:-1:-1},l.prototype.compareAbs=function(t){var e=this.value,r=H(t).value;return(e=e>=0?e:-e)===(r=r>=0?r:-r)?0:e>r?1:-1},u.prototype.compare=function(t){if(t===1/0)return-1;if(t===-1/0)return 1;var e=H(t),r=this.value,n=e.value;return this.sign!==e.sign?e.sign?1:-1:e.isSmall?this.sign?-1:1:U(r,n)*(this.sign?-1:1)},u.prototype.compareTo=u.prototype.compare,f.prototype.compare=function(t){if(t===1/0)return-1;if(t===-1/0)return 1;var e=H(t),r=this.value,n=e.value;return e.isSmall?r==n?0:r>n?1:-1:r<0!==e.sign?r<0?-1:1:r<0?1:-1},f.prototype.compareTo=f.prototype.compare,l.prototype.compare=function(t){if(t===1/0)return-1;if(t===-1/0)return 1;var e=this.value,r=H(t).value;return e===r?0:e>r?1:-1},l.prototype.compareTo=l.prototype.compare,u.prototype.equals=function(t){return 0===this.compare(t)},l.prototype.eq=l.prototype.equals=f.prototype.eq=f.prototype.equals=u.prototype.eq=u.prototype.equals,u.prototype.notEquals=function(t){return 0!==this.compare(t)},l.prototype.neq=l.prototype.notEquals=f.prototype.neq=f.prototype.notEquals=u.prototype.neq=u.prototype.notEquals,u.prototype.greater=function(t){return this.compare(t)>0},l.prototype.gt=l.prototype.greater=f.prototype.gt=f.prototype.greater=u.prototype.gt=u.prototype.greater,u.prototype.lesser=function(t){return this.compare(t)<0},l.prototype.lt=l.prototype.lesser=f.prototype.lt=f.prototype.lesser=u.prototype.lt=u.prototype.lesser,u.prototype.greaterOrEquals=function(t){return this.compare(t)>=0},l.prototype.geq=l.prototype.greaterOrEquals=f.prototype.geq=f.prototype.greaterOrEquals=u.prototype.geq=u.prototype.greaterOrEquals,u.prototype.lesserOrEquals=function(t){return this.compare(t)<=0},l.prototype.leq=l.prototype.lesserOrEquals=f.prototype.leq=f.prototype.lesserOrEquals=u.prototype.leq=u.prototype.lesserOrEquals,u.prototype.isEven=function(){return 0==(1&this.value[0])},f.prototype.isEven=function(){return 0==(1&this.value)},l.prototype.isEven=function(){return(this.value&BigInt(1))===BigInt(0)},u.prototype.isOdd=function(){return 1==(1&this.value[0])},f.prototype.isOdd=function(){return 1==(1&this.value)},l.prototype.isOdd=function(){return(this.value&BigInt(1))===BigInt(1)},u.prototype.isPositive=function(){return!this.sign},f.prototype.isPositive=function(){return this.value>0},l.prototype.isPositive=f.prototype.isPositive,u.prototype.isNegative=function(){return this.sign},f.prototype.isNegative=function(){return this.value<0},l.prototype.isNegative=f.prototype.isNegative,u.prototype.isUnit=function(){return!1},f.prototype.isUnit=function(){return 1===Math.abs(this.value)},l.prototype.isUnit=function(){return this.abs().value===BigInt(1)},u.prototype.isZero=function(){return!1},f.prototype.isZero=function(){return 0===this.value},l.prototype.isZero=function(){return this.value===BigInt(0)},u.prototype.isDivisibleBy=function(t){var e=H(t);return!e.isZero()&&(!!e.isUnit()||(0===e.compareAbs(2)?this.isEven():this.mod(e).isZero()))},l.prototype.isDivisibleBy=f.prototype.isDivisibleBy=u.prototype.isDivisibleBy,u.prototype.isPrime=function(e){var r=R(this);if(r!==t)return r;var n=this.abs(),i=n.bitLength();if(i<=64)return T(n,[2,3,5,7,11,13,17,19,23,29,31,37]);for(var s=Math.log(2)*i.toJSNumber(),a=Math.ceil(!0===e?2*Math.pow(s,2):s),u=[],f=0;f<a;f++)u.push(o(f+2));return T(n,u)},l.prototype.isPrime=f.prototype.isPrime=u.prototype.isPrime,u.prototype.isProbablePrime=function(e,r){var n=R(this);if(n!==t)return n;for(var i=this.abs(),s=e===t?5:e,a=[],u=0;u<s;u++)a.push(o.randBetween(2,i.minus(2),r));return T(i,a)},l.prototype.isProbablePrime=f.prototype.isProbablePrime=u.prototype.isProbablePrime,u.prototype.modInv=function(t){for(var e,r,n,i=o.zero,s=o.one,a=H(t),u=this.abs();!u.isZero();)e=a.divide(u),r=i,n=a,i=s,a=u,s=r.subtract(e.multiply(s)),u=n.subtract(e.multiply(u));if(!a.isUnit())throw new Error(this.toString()+" and "+t.toString()+" are not co-prime");return-1===i.compare(0)&&(i=i.add(t)),this.isNegative()?i.negate():i},l.prototype.modInv=f.prototype.modInv=u.prototype.modInv,u.prototype.next=function(){var t=this.value;return this.sign?_(t,1,this.sign):new u(b(t,1),this.sign)},f.prototype.next=function(){var t=this.value;return t+1<r?new f(t+1):new u(n,!1)},l.prototype.next=function(){return new l(this.value+BigInt(1))},u.prototype.prev=function(){var t=this.value;return this.sign?new u(b(t,1),!0):_(t,1,this.sign)},f.prototype.prev=function(){var t=this.value;return t-1>-r?new f(t-1):new u(n,!0)},l.prototype.prev=function(){return new l(this.value-BigInt(1))};for(var M=[1];2*M[M.length-1]<=e;)M.push(2*M[M.length-1]);var N=M.length,P=M[N-1];function L(t){return Math.abs(t)<=e}function C(t,e,r){e=H(e);for(var n=t.isNegative(),i=e.isNegative(),s=n?t.not():t,a=i?e.not():e,u=0,f=0,l=null,c=null,h=[];!s.isZero()||!a.isZero();)u=(l=I(s,P))[1].toJSNumber(),n&&(u=P-1-u),f=(c=I(a,P))[1].toJSNumber(),i&&(f=P-1-f),s=l[0],a=c[0],h.push(r(u,f));for(var p=0!==r(n?1:0,i?1:0)?o(-1):o(0),y=h.length-1;y>=0;y-=1)p=p.multiply(P).add(o(h[y]));return p}u.prototype.shiftLeft=function(t){var e=H(t).toJSNumber();if(!L(e))throw new Error(String(e)+" is too large for shifting.");if(e<0)return this.shiftRight(-e);var r=this;if(r.isZero())return r;for(;e>=N;)r=r.multiply(P),e-=N-1;return r.multiply(M[e])},l.prototype.shiftLeft=function(t){return t=H(t),new l(this.value<<t.value)},f.prototype.shiftLeft=u.prototype.shiftLeft,u.prototype.shiftRight=function(t){var e,r=H(t).toJSNumber();if(!L(r))throw new Error(String(r)+" is too large for shifting.");if(r<0)return this.shiftLeft(-r);for(var n=this;r>=N;){if(n.isZero()||n.isNegative()&&n.isUnit())return n;n=(e=I(n,P))[1].isNegative()?e[0].prev():e[0],r-=N-1}return(e=I(n,M[r]))[1].isNegative()?e[0].prev():e[0]},l.prototype.shiftRight=function(t){return t=H(t),new l(this.value>>t.value)},f.prototype.shiftRight=u.prototype.shiftRight,u.prototype.not=function(){return this.negate().prev()},l.prototype.not=f.prototype.not=u.prototype.not,u.prototype.and=function(t){return C(this,t,(function(t,e){return t&e}))},l.prototype.and=f.prototype.and=u.prototype.and,u.prototype.or=function(t){return C(this,t,(function(t,e){return t|e}))},l.prototype.or=f.prototype.or=u.prototype.or,u.prototype.xor=function(t){return C(this,t,(function(t,e){return t^e}))},l.prototype.xor=f.prototype.xor=u.prototype.xor;var j=1<<30;function q(t){var r=t.value,n="number"==typeof r?r|j:"bigint"==typeof r?r|BigInt(j):r[0]+r[1]*e|1073758208;return n&-n}function Z(t,e){if(e.compareTo(t)<=0){var r=Z(t,e.square(e)),n=r.p,i=r.e,s=n.multiply(e);return s.compareTo(t)<=0?{p:s,e:2*i+1}:{p:n,e:2*i}}return{p:o(1),e:0}}function D(t,e){return t=H(t),e=H(e),t.greater(e)?t:e}function z(t,e){return t=H(t),e=H(e),t.lesser(e)?t:e}function F(t,e){if(t=H(t).abs(),e=H(e).abs(),t.equals(e))return t;if(t.isZero())return e;if(e.isZero())return t;for(var r,n,o=a[1];t.isEven()&&e.isEven();)r=z(q(t),q(e)),t=t.divide(r),e=e.divide(r),o=o.multiply(r);for(;t.isEven();)t=t.divide(q(t));do{for(;e.isEven();)e=e.divide(q(e));t.greater(e)&&(n=e,e=t,t=n),e=e.subtract(t)}while(!e.isZero());return o.isUnit()?t:t.multiply(o)}u.prototype.bitLength=function(){var t=this;return t.compareTo(o(0))<0&&(t=t.negate().subtract(o(1))),0===t.compareTo(o(0))?o(0):o(Z(t,o(2)).e).add(o(1))},l.prototype.bitLength=f.prototype.bitLength=u.prototype.bitLength;var K=function(t,e,r,n){r=r||i,t=String(t),n||(t=t.toLowerCase(),r=r.toLowerCase());var o,s=t.length,a=Math.abs(e),u={};for(o=0;o<r.length;o++)u[r[o]]=o;for(o=0;o<s;o++)if("-"!==(c=t[o])&&c in u&&u[c]>=a){if("1"===c&&1===a)continue;throw new Error(c+" is not a valid digit in base "+e+".")}e=H(e);var f=[],l="-"===t[0];for(o=l?1:0;o<t.length;o++){var c;if((c=t[o])in u)f.push(H(u[c]));else{if("<"!==c)throw new Error(c+" is not a valid character");var h=o;do{o++}while(">"!==t[o]&&o<t.length);f.push(H(t.slice(h+1,o)))}}return $(f,e,l)};function $(t,e,r){var n,o=a[0],i=a[1];for(n=t.length-1;n>=0;n--)o=o.add(t[n].times(i)),i=i.times(e);return r?o.negate():o}function J(t,e){if((e=o(e)).isZero()){if(t.isZero())return{value:[0],isNegative:!1};throw new Error("Cannot convert nonzero numbers to base 0.")}if(e.equals(-1)){if(t.isZero())return{value:[0],isNegative:!1};if(t.isNegative())return{value:[].concat.apply([],Array.apply(null,Array(-t.toJSNumber())).map(Array.prototype.valueOf,[1,0])),isNegative:!1};var r=Array.apply(null,Array(t.toJSNumber()-1)).map(Array.prototype.valueOf,[0,1]);return r.unshift([1]),{value:[].concat.apply([],r),isNegative:!1}}var n=!1;if(t.isNegative()&&e.isPositive()&&(n=!0,t=t.abs()),e.isUnit())return t.isZero()?{value:[0],isNegative:!1}:{value:Array.apply(null,Array(t.toJSNumber())).map(Number.prototype.valueOf,1),isNegative:n};for(var i,s=[],a=t;a.isNegative()||a.compareAbs(e)>=0;){i=a.divmod(e),a=i.quotient;var u=i.remainder;u.isNegative()&&(u=e.minus(u).abs(),a=a.next()),s.push(u.toJSNumber())}return s.push(a.toJSNumber()),{value:s.reverse(),isNegative:n}}function Y(t,e,r){var n=J(t,e);return(n.isNegative?"-":"")+n.value.map((function(t){return function(t,e){return t<(e=e||i).length?e[t]:"<"+t+">"}(t,r)})).join("")}function G(t){if(c(+t)){var e=+t;if(e===g(e))return s?new l(BigInt(e)):new f(e);throw new Error("Invalid integer: "+t)}var r="-"===t[0];r&&(t=t.slice(1));var n=t.split(/e/i);if(n.length>2)throw new Error("Invalid integer: "+n.join("e"));if(2===n.length){var o=n[1];if("+"===o[0]&&(o=o.slice(1)),(o=+o)!==g(o)||!c(o))throw new Error("Invalid integer: "+o+" is not a valid exponent.");var i=n[0],a=i.indexOf(".");if(a>=0&&(o-=i.length-a-1,i=i.slice(0,a)+i.slice(a+1)),o<0)throw new Error("Cannot include negative exponent part for integers");t=i+=new Array(o+1).join("0")}if(!/^([0-9][0-9]*)$/.test(t))throw new Error("Invalid integer: "+t);if(s)return new l(BigInt(r?"-"+t:t));for(var h=[],p=t.length,d=p-7;p>0;)h.push(+t.slice(d,p)),(d-=7)<0&&(d=0),p-=7;return y(h),new u(h,r)}function H(t){return"number"==typeof t?function(t){if(s)return new l(BigInt(t));if(c(t)){if(t!==g(t))throw new Error(t+" is not an integer.");return new f(t)}return G(t.toString())}(t):"string"==typeof t?G(t):"bigint"==typeof t?new l(t):t}u.prototype.toArray=function(t){return J(this,t)},f.prototype.toArray=function(t){return J(this,t)},l.prototype.toArray=function(t){return J(this,t)},u.prototype.toString=function(e,r){if(e===t&&(e=10),10!==e)return Y(this,e,r);for(var n,o=this.value,i=o.length,s=String(o[--i]);--i>=0;)n=String(o[i]),s+="0000000".slice(n.length)+n;return(this.sign?"-":"")+s},f.prototype.toString=function(e,r){return e===t&&(e=10),10!=e?Y(this,e,r):String(this.value)},l.prototype.toString=f.prototype.toString,l.prototype.toJSON=u.prototype.toJSON=f.prototype.toJSON=function(){return this.toString()},u.prototype.valueOf=function(){return parseInt(this.toString(),10)},u.prototype.toJSNumber=u.prototype.valueOf,f.prototype.valueOf=function(){return this.value},f.prototype.toJSNumber=f.prototype.valueOf,l.prototype.valueOf=l.prototype.toJSNumber=function(){return parseInt(this.toString(),10)};for(var V=0;V<1e3;V++)a[V]=H(V),V>0&&(a[-V]=H(-V));return a.one=a[1],a.zero=a[0],a.minusOne=a[-1],a.max=D,a.min=z,a.gcd=F,a.lcm=function(t,e){return t=H(t).abs(),e=H(e).abs(),t.divide(F(t,e)).multiply(e)},a.isInstance=function(t){return t instanceof u||t instanceof f||t instanceof l},a.randBetween=function(t,r,n){t=H(t),r=H(r);var o=n||Math.random,i=z(t,r),s=D(t,r).subtract(i).add(1);if(s.isSmall)return i.add(Math.floor(o()*s));for(var u=J(s,e).value,f=[],l=!0,c=0;c<u.length;c++){var h=l?u[c]:e,p=g(o()*h);f.push(p),p<h&&(l=!1)}return i.add(a.fromArray(f,e,!1))},a.fromArray=function(t,e,r){return $(t.map(H),H(e||10),r)},a}();t.hasOwnProperty("exports")&&(t.exports=o),void 0===(n=function(){return o}.call(e,r,e,t))||(t.exports=n)},8764:(t,e,r)=>{"use strict";const n=r(9742),o=r(645),i="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=u,e.SlowBuffer=function(t){return+t!=t&&(t=0),u.alloc(+t)},e.INSPECT_MAX_BYTES=50;const s=2147483647;function a(t){if(t>s)throw new RangeError('The value "'+t+'" is invalid for option "size"');const e=new Uint8Array(t);return Object.setPrototypeOf(e,u.prototype),e}function u(t,e,r){if("number"==typeof t){if("string"==typeof e)throw new TypeError('The "string" argument must be of type string. Received type number');return c(t)}return f(t,e,r)}function f(t,e,r){if("string"==typeof t)return function(t,e){if("string"==typeof e&&""!==e||(e="utf8"),!u.isEncoding(e))throw new TypeError("Unknown encoding: "+e);const r=0|d(t,e);let n=a(r);const o=n.write(t,e);return o!==r&&(n=n.slice(0,o)),n}(t,e);if(ArrayBuffer.isView(t))return function(t){if(H(t,Uint8Array)){const e=new Uint8Array(t);return p(e.buffer,e.byteOffset,e.byteLength)}return h(t)}(t);if(null==t)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(H(t,ArrayBuffer)||t&&H(t.buffer,ArrayBuffer))return p(t,e,r);if("undefined"!=typeof SharedArrayBuffer&&(H(t,SharedArrayBuffer)||t&&H(t.buffer,SharedArrayBuffer)))return p(t,e,r);if("number"==typeof t)throw new TypeError('The "value" argument must not be of type number. Received type number');const n=t.valueOf&&t.valueOf();if(null!=n&&n!==t)return u.from(n,e,r);const o=function(t){if(u.isBuffer(t)){const e=0|y(t.length),r=a(e);return 0===r.length||t.copy(r,0,0,e),r}return void 0!==t.length?"number"!=typeof t.length||V(t.length)?a(0):h(t):"Buffer"===t.type&&Array.isArray(t.data)?h(t.data):void 0}(t);if(o)return o;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof t[Symbol.toPrimitive])return u.from(t[Symbol.toPrimitive]("string"),e,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}function l(t){if("number"!=typeof t)throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function c(t){return l(t),a(t<0?0:0|y(t))}function h(t){const e=t.length<0?0:0|y(t.length),r=a(e);for(let n=0;n<e;n+=1)r[n]=255&t[n];return r}function p(t,e,r){if(e<0||t.byteLength<e)throw new RangeError('"offset" is outside of buffer bounds');if(t.byteLength<e+(r||0))throw new RangeError('"length" is outside of buffer bounds');let n;return n=void 0===e&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,e):new Uint8Array(t,e,r),Object.setPrototypeOf(n,u.prototype),n}function y(t){if(t>=s)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s.toString(16)+" bytes");return 0|t}function d(t,e){if(u.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||H(t,ArrayBuffer))return t.byteLength;if("string"!=typeof t)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);const r=t.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;let o=!1;for(;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return J(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return Y(t).length;default:if(o)return n?-1:J(t).length;e=(""+e).toLowerCase(),o=!0}}function g(t,e,r){let n=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return U(this,e,r);case"utf8":case"utf-8":return S(this,e,r);case"ascii":return x(this,e,r);case"latin1":case"binary":return I(this,e,r);case"base64":return B(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return R(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function v(t,e,r){const n=t[e];t[e]=t[r],t[r]=n}function w(t,e,r,n,o){if(0===t.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),V(r=+r)&&(r=o?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(o)return-1;r=t.length-1}else if(r<0){if(!o)return-1;r=0}if("string"==typeof e&&(e=u.from(e,n)),u.isBuffer(e))return 0===e.length?-1:b(t,e,r,n,o);if("number"==typeof e)return e&=255,"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):b(t,[e],r,n,o);throw new TypeError("val must be string, number or Buffer")}function b(t,e,r,n,o){let i,s=1,a=t.length,u=e.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return-1;s=2,a/=2,u/=2,r/=2}function f(t,e){return 1===s?t[e]:t.readUInt16BE(e*s)}if(o){let n=-1;for(i=r;i<a;i++)if(f(t,i)===f(e,-1===n?0:i-n)){if(-1===n&&(n=i),i-n+1===u)return n*s}else-1!==n&&(i-=i-n),n=-1}else for(r+u>a&&(r=a-u),i=r;i>=0;i--){let r=!0;for(let n=0;n<u;n++)if(f(t,i+n)!==f(e,n)){r=!1;break}if(r)return i}return-1}function m(t,e,r,n){r=Number(r)||0;const o=t.length-r;n?(n=Number(n))>o&&(n=o):n=o;const i=e.length;let s;for(n>i/2&&(n=i/2),s=0;s<n;++s){const n=parseInt(e.substr(2*s,2),16);if(V(n))return s;t[r+s]=n}return s}function _(t,e,r,n){return G(J(e,t.length-r),t,r,n)}function E(t,e,r,n){return G(function(t){const e=[];for(let r=0;r<t.length;++r)e.push(255&t.charCodeAt(r));return e}(e),t,r,n)}function A(t,e,r,n){return G(Y(e),t,r,n)}function k(t,e,r,n){return G(function(t,e){let r,n,o;const i=[];for(let s=0;s<t.length&&!((e-=2)<0);++s)r=t.charCodeAt(s),n=r>>8,o=r%256,i.push(o),i.push(n);return i}(e,t.length-r),t,r,n)}function B(t,e,r){return 0===e&&r===t.length?n.fromByteArray(t):n.fromByteArray(t.slice(e,r))}function S(t,e,r){r=Math.min(t.length,r);const n=[];let o=e;for(;o<r;){const e=t[o];let i=null,s=e>239?4:e>223?3:e>191?2:1;if(o+s<=r){let r,n,a,u;switch(s){case 1:e<128&&(i=e);break;case 2:r=t[o+1],128==(192&r)&&(u=(31&e)<<6|63&r,u>127&&(i=u));break;case 3:r=t[o+1],n=t[o+2],128==(192&r)&&128==(192&n)&&(u=(15&e)<<12|(63&r)<<6|63&n,u>2047&&(u<55296||u>57343)&&(i=u));break;case 4:r=t[o+1],n=t[o+2],a=t[o+3],128==(192&r)&&128==(192&n)&&128==(192&a)&&(u=(15&e)<<18|(63&r)<<12|(63&n)<<6|63&a,u>65535&&u<1114112&&(i=u))}}null===i?(i=65533,s=1):i>65535&&(i-=65536,n.push(i>>>10&1023|55296),i=56320|1023&i),n.push(i),o+=s}return function(t){const e=t.length;if(e<=O)return String.fromCharCode.apply(String,t);let r="",n=0;for(;n<e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=O));return r}(n)}e.kMaxLength=s,u.TYPED_ARRAY_SUPPORT=function(){try{const t=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(t,e),42===t.foo()}catch(t){return!1}}(),u.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(u.prototype,"parent",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.buffer}}),Object.defineProperty(u.prototype,"offset",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.byteOffset}}),u.poolSize=8192,u.from=function(t,e,r){return f(t,e,r)},Object.setPrototypeOf(u.prototype,Uint8Array.prototype),Object.setPrototypeOf(u,Uint8Array),u.alloc=function(t,e,r){return function(t,e,r){return l(t),t<=0?a(t):void 0!==e?"string"==typeof r?a(t).fill(e,r):a(t).fill(e):a(t)}(t,e,r)},u.allocUnsafe=function(t){return c(t)},u.allocUnsafeSlow=function(t){return c(t)},u.isBuffer=function(t){return null!=t&&!0===t._isBuffer&&t!==u.prototype},u.compare=function(t,e){if(H(t,Uint8Array)&&(t=u.from(t,t.offset,t.byteLength)),H(e,Uint8Array)&&(e=u.from(e,e.offset,e.byteLength)),!u.isBuffer(t)||!u.isBuffer(e))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===e)return 0;let r=t.length,n=e.length;for(let o=0,i=Math.min(r,n);o<i;++o)if(t[o]!==e[o]){r=t[o],n=e[o];break}return r<n?-1:n<r?1:0},u.isEncoding=function(t){switch(String(t).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}},u.concat=function(t,e){if(!Array.isArray(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return u.alloc(0);let r;if(void 0===e)for(e=0,r=0;r<t.length;++r)e+=t[r].length;const n=u.allocUnsafe(e);let o=0;for(r=0;r<t.length;++r){let e=t[r];if(H(e,Uint8Array))o+e.length>n.length?(u.isBuffer(e)||(e=u.from(e)),e.copy(n,o)):Uint8Array.prototype.set.call(n,e,o);else{if(!u.isBuffer(e))throw new TypeError('"list" argument must be an Array of Buffers');e.copy(n,o)}o+=e.length}return n},u.byteLength=d,u.prototype._isBuffer=!0,u.prototype.swap16=function(){const t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let e=0;e<t;e+=2)v(this,e,e+1);return this},u.prototype.swap32=function(){const t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let e=0;e<t;e+=4)v(this,e,e+3),v(this,e+1,e+2);return this},u.prototype.swap64=function(){const t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let e=0;e<t;e+=8)v(this,e,e+7),v(this,e+1,e+6),v(this,e+2,e+5),v(this,e+3,e+4);return this},u.prototype.toString=function(){const t=this.length;return 0===t?"":0===arguments.length?S(this,0,t):g.apply(this,arguments)},u.prototype.toLocaleString=u.prototype.toString,u.prototype.equals=function(t){if(!u.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===u.compare(this,t)},u.prototype.inspect=function(){let t="";const r=e.INSPECT_MAX_BYTES;return t=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(t+=" ... "),"<Buffer "+t+">"},i&&(u.prototype[i]=u.prototype.inspect),u.prototype.compare=function(t,e,r,n,o){if(H(t,Uint8Array)&&(t=u.from(t,t.offset,t.byteLength)),!u.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(void 0===e&&(e=0),void 0===r&&(r=t?t.length:0),void 0===n&&(n=0),void 0===o&&(o=this.length),e<0||r>t.length||n<0||o>this.length)throw new RangeError("out of range index");if(n>=o&&e>=r)return 0;if(n>=o)return-1;if(e>=r)return 1;if(this===t)return 0;let i=(o>>>=0)-(n>>>=0),s=(r>>>=0)-(e>>>=0);const a=Math.min(i,s),f=this.slice(n,o),l=t.slice(e,r);for(let t=0;t<a;++t)if(f[t]!==l[t]){i=f[t],s=l[t];break}return i<s?-1:s<i?1:0},u.prototype.includes=function(t,e,r){return-1!==this.indexOf(t,e,r)},u.prototype.indexOf=function(t,e,r){return w(this,t,e,r,!0)},u.prototype.lastIndexOf=function(t,e,r){return w(this,t,e,r,!1)},u.prototype.write=function(t,e,r,n){if(void 0===e)n="utf8",r=this.length,e=0;else if(void 0===r&&"string"==typeof e)n=e,r=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e>>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}const o=this.length-e;if((void 0===r||r>o)&&(r=o),t.length>0&&(r<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");let i=!1;for(;;)switch(n){case"hex":return m(this,t,e,r);case"utf8":case"utf-8":return _(this,t,e,r);case"ascii":case"latin1":case"binary":return E(this,t,e,r);case"base64":return A(this,t,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,t,e,r);default:if(i)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),i=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const O=4096;function x(t,e,r){let n="";r=Math.min(t.length,r);for(let o=e;o<r;++o)n+=String.fromCharCode(127&t[o]);return n}function I(t,e,r){let n="";r=Math.min(t.length,r);for(let o=e;o<r;++o)n+=String.fromCharCode(t[o]);return n}function U(t,e,r){const n=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>n)&&(r=n);let o="";for(let n=e;n<r;++n)o+=X[t[n]];return o}function R(t,e,r){const n=t.slice(e,r);let o="";for(let t=0;t<n.length-1;t+=2)o+=String.fromCharCode(n[t]+256*n[t+1]);return o}function T(t,e,r){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+e>r)throw new RangeError("Trying to access beyond buffer length")}function M(t,e,r,n,o,i){if(!u.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>o||e<i)throw new RangeError('"value" argument is out of bounds');if(r+n>t.length)throw new RangeError("Index out of range")}function N(t,e,r,n,o){z(e,n,o,t,r,7);let i=Number(e&BigInt(4294967295));t[r++]=i,i>>=8,t[r++]=i,i>>=8,t[r++]=i,i>>=8,t[r++]=i;let s=Number(e>>BigInt(32)&BigInt(4294967295));return t[r++]=s,s>>=8,t[r++]=s,s>>=8,t[r++]=s,s>>=8,t[r++]=s,r}function P(t,e,r,n,o){z(e,n,o,t,r,7);let i=Number(e&BigInt(4294967295));t[r+7]=i,i>>=8,t[r+6]=i,i>>=8,t[r+5]=i,i>>=8,t[r+4]=i;let s=Number(e>>BigInt(32)&BigInt(4294967295));return t[r+3]=s,s>>=8,t[r+2]=s,s>>=8,t[r+1]=s,s>>=8,t[r]=s,r+8}function L(t,e,r,n,o,i){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function C(t,e,r,n,i){return e=+e,r>>>=0,i||L(t,0,r,4),o.write(t,e,r,n,23,4),r+4}function j(t,e,r,n,i){return e=+e,r>>>=0,i||L(t,0,r,8),o.write(t,e,r,n,52,8),r+8}u.prototype.slice=function(t,e){const r=this.length;(t=~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),(e=void 0===e?r:~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),e<t&&(e=t);const n=this.subarray(t,e);return Object.setPrototypeOf(n,u.prototype),n},u.prototype.readUintLE=u.prototype.readUIntLE=function(t,e,r){t>>>=0,e>>>=0,r||T(t,e,this.length);let n=this[t],o=1,i=0;for(;++i<e&&(o*=256);)n+=this[t+i]*o;return n},u.prototype.readUintBE=u.prototype.readUIntBE=function(t,e,r){t>>>=0,e>>>=0,r||T(t,e,this.length);let n=this[t+--e],o=1;for(;e>0&&(o*=256);)n+=this[t+--e]*o;return n},u.prototype.readUint8=u.prototype.readUInt8=function(t,e){return t>>>=0,e||T(t,1,this.length),this[t]},u.prototype.readUint16LE=u.prototype.readUInt16LE=function(t,e){return t>>>=0,e||T(t,2,this.length),this[t]|this[t+1]<<8},u.prototype.readUint16BE=u.prototype.readUInt16BE=function(t,e){return t>>>=0,e||T(t,2,this.length),this[t]<<8|this[t+1]},u.prototype.readUint32LE=u.prototype.readUInt32LE=function(t,e){return t>>>=0,e||T(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},u.prototype.readUint32BE=u.prototype.readUInt32BE=function(t,e){return t>>>=0,e||T(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},u.prototype.readBigUInt64LE=W((function(t){F(t>>>=0,"offset");const e=this[t],r=this[t+7];void 0!==e&&void 0!==r||K(t,this.length-8);const n=e+256*this[++t]+65536*this[++t]+this[++t]*2**24,o=this[++t]+256*this[++t]+65536*this[++t]+r*2**24;return BigInt(n)+(BigInt(o)<<BigInt(32))})),u.prototype.readBigUInt64BE=W((function(t){F(t>>>=0,"offset");const e=this[t],r=this[t+7];void 0!==e&&void 0!==r||K(t,this.length-8);const n=e*2**24+65536*this[++t]+256*this[++t]+this[++t],o=this[++t]*2**24+65536*this[++t]+256*this[++t]+r;return(BigInt(n)<<BigInt(32))+BigInt(o)})),u.prototype.readIntLE=function(t,e,r){t>>>=0,e>>>=0,r||T(t,e,this.length);let n=this[t],o=1,i=0;for(;++i<e&&(o*=256);)n+=this[t+i]*o;return o*=128,n>=o&&(n-=Math.pow(2,8*e)),n},u.prototype.readIntBE=function(t,e,r){t>>>=0,e>>>=0,r||T(t,e,this.length);let n=e,o=1,i=this[t+--n];for(;n>0&&(o*=256);)i+=this[t+--n]*o;return o*=128,i>=o&&(i-=Math.pow(2,8*e)),i},u.prototype.readInt8=function(t,e){return t>>>=0,e||T(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},u.prototype.readInt16LE=function(t,e){t>>>=0,e||T(t,2,this.length);const r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt16BE=function(t,e){t>>>=0,e||T(t,2,this.length);const r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt32LE=function(t,e){return t>>>=0,e||T(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},u.prototype.readInt32BE=function(t,e){return t>>>=0,e||T(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},u.prototype.readBigInt64LE=W((function(t){F(t>>>=0,"offset");const e=this[t],r=this[t+7];void 0!==e&&void 0!==r||K(t,this.length-8);const n=this[t+4]+256*this[t+5]+65536*this[t+6]+(r<<24);return(BigInt(n)<<BigInt(32))+BigInt(e+256*this[++t]+65536*this[++t]+this[++t]*2**24)})),u.prototype.readBigInt64BE=W((function(t){F(t>>>=0,"offset");const e=this[t],r=this[t+7];void 0!==e&&void 0!==r||K(t,this.length-8);const n=(e<<24)+65536*this[++t]+256*this[++t]+this[++t];return(BigInt(n)<<BigInt(32))+BigInt(this[++t]*2**24+65536*this[++t]+256*this[++t]+r)})),u.prototype.readFloatLE=function(t,e){return t>>>=0,e||T(t,4,this.length),o.read(this,t,!0,23,4)},u.prototype.readFloatBE=function(t,e){return t>>>=0,e||T(t,4,this.length),o.read(this,t,!1,23,4)},u.prototype.readDoubleLE=function(t,e){return t>>>=0,e||T(t,8,this.length),o.read(this,t,!0,52,8)},u.prototype.readDoubleBE=function(t,e){return t>>>=0,e||T(t,8,this.length),o.read(this,t,!1,52,8)},u.prototype.writeUintLE=u.prototype.writeUIntLE=function(t,e,r,n){t=+t,e>>>=0,r>>>=0,n||M(this,t,e,r,Math.pow(2,8*r)-1,0);let o=1,i=0;for(this[e]=255&t;++i<r&&(o*=256);)this[e+i]=t/o&255;return e+r},u.prototype.writeUintBE=u.prototype.writeUIntBE=function(t,e,r,n){t=+t,e>>>=0,r>>>=0,n||M(this,t,e,r,Math.pow(2,8*r)-1,0);let o=r-1,i=1;for(this[e+o]=255&t;--o>=0&&(i*=256);)this[e+o]=t/i&255;return e+r},u.prototype.writeUint8=u.prototype.writeUInt8=function(t,e,r){return t=+t,e>>>=0,r||M(this,t,e,1,255,0),this[e]=255&t,e+1},u.prototype.writeUint16LE=u.prototype.writeUInt16LE=function(t,e,r){return t=+t,e>>>=0,r||M(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},u.prototype.writeUint16BE=u.prototype.writeUInt16BE=function(t,e,r){return t=+t,e>>>=0,r||M(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},u.prototype.writeUint32LE=u.prototype.writeUInt32LE=function(t,e,r){return t=+t,e>>>=0,r||M(this,t,e,4,4294967295,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t,e+4},u.prototype.writeUint32BE=u.prototype.writeUInt32BE=function(t,e,r){return t=+t,e>>>=0,r||M(this,t,e,4,4294967295,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},u.prototype.writeBigUInt64LE=W((function(t,e=0){return N(this,t,e,BigInt(0),BigInt("0xffffffffffffffff"))})),u.prototype.writeBigUInt64BE=W((function(t,e=0){return P(this,t,e,BigInt(0),BigInt("0xffffffffffffffff"))})),u.prototype.writeIntLE=function(t,e,r,n){if(t=+t,e>>>=0,!n){const n=Math.pow(2,8*r-1);M(this,t,e,r,n-1,-n)}let o=0,i=1,s=0;for(this[e]=255&t;++o<r&&(i*=256);)t<0&&0===s&&0!==this[e+o-1]&&(s=1),this[e+o]=(t/i>>0)-s&255;return e+r},u.prototype.writeIntBE=function(t,e,r,n){if(t=+t,e>>>=0,!n){const n=Math.pow(2,8*r-1);M(this,t,e,r,n-1,-n)}let o=r-1,i=1,s=0;for(this[e+o]=255&t;--o>=0&&(i*=256);)t<0&&0===s&&0!==this[e+o+1]&&(s=1),this[e+o]=(t/i>>0)-s&255;return e+r},u.prototype.writeInt8=function(t,e,r){return t=+t,e>>>=0,r||M(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},u.prototype.writeInt16LE=function(t,e,r){return t=+t,e>>>=0,r||M(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},u.prototype.writeInt16BE=function(t,e,r){return t=+t,e>>>=0,r||M(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},u.prototype.writeInt32LE=function(t,e,r){return t=+t,e>>>=0,r||M(this,t,e,4,2147483647,-2147483648),this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4},u.prototype.writeInt32BE=function(t,e,r){return t=+t,e>>>=0,r||M(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},u.prototype.writeBigInt64LE=W((function(t,e=0){return N(this,t,e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),u.prototype.writeBigInt64BE=W((function(t,e=0){return P(this,t,e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),u.prototype.writeFloatLE=function(t,e,r){return C(this,t,e,!0,r)},u.prototype.writeFloatBE=function(t,e,r){return C(this,t,e,!1,r)},u.prototype.writeDoubleLE=function(t,e,r){return j(this,t,e,!0,r)},u.prototype.writeDoubleBE=function(t,e,r){return j(this,t,e,!1,r)},u.prototype.copy=function(t,e,r,n){if(!u.isBuffer(t))throw new TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e<n-r&&(n=t.length-e+r);const o=n-r;return this===t&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(e,r,n):Uint8Array.prototype.set.call(t,this.subarray(r,n),e),o},u.prototype.fill=function(t,e,r,n){if("string"==typeof t){if("string"==typeof e?(n=e,e=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!u.isEncoding(n))throw new TypeError("Unknown encoding: "+n);if(1===t.length){const e=t.charCodeAt(0);("utf8"===n&&e<128||"latin1"===n)&&(t=e)}}else"number"==typeof t?t&=255:"boolean"==typeof t&&(t=Number(t));if(e<0||this.length<e||this.length<r)throw new RangeError("Out of range index");if(r<=e)return this;let o;if(e>>>=0,r=void 0===r?this.length:r>>>0,t||(t=0),"number"==typeof t)for(o=e;o<r;++o)this[o]=t;else{const i=u.isBuffer(t)?t:u.from(t,n),s=i.length;if(0===s)throw new TypeError('The value "'+t+'" is invalid for argument "value"');for(o=0;o<r-e;++o)this[o+e]=i[o%s]}return this};const q={};function Z(t,e,r){q[t]=class extends r{constructor(){super(),Object.defineProperty(this,"message",{value:e.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${t}]`,this.stack,delete this.name}get code(){return t}set code(t){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:t,writable:!0})}toString(){return`${this.name} [${t}]: ${this.message}`}}}function D(t){let e="",r=t.length;const n="-"===t[0]?1:0;for(;r>=n+4;r-=3)e=`_${t.slice(r-3,r)}${e}`;return`${t.slice(0,r)}${e}`}function z(t,e,r,n,o,i){if(t>r||t<e){const n="bigint"==typeof e?"n":"";let o;throw o=i>3?0===e||e===BigInt(0)?`>= 0${n} and < 2${n} ** ${8*(i+1)}${n}`:`>= -(2${n} ** ${8*(i+1)-1}${n}) and < 2 ** ${8*(i+1)-1}${n}`:`>= ${e}${n} and <= ${r}${n}`,new q.ERR_OUT_OF_RANGE("value",o,t)}!function(t,e,r){F(e,"offset"),void 0!==t[e]&&void 0!==t[e+r]||K(e,t.length-(r+1))}(n,o,i)}function F(t,e){if("number"!=typeof t)throw new q.ERR_INVALID_ARG_TYPE(e,"number",t)}function K(t,e,r){if(Math.floor(t)!==t)throw F(t,r),new q.ERR_OUT_OF_RANGE(r||"offset","an integer",t);if(e<0)throw new q.ERR_BUFFER_OUT_OF_BOUNDS;throw new q.ERR_OUT_OF_RANGE(r||"offset",`>= ${r?1:0} and <= ${e}`,t)}Z("ERR_BUFFER_OUT_OF_BOUNDS",(function(t){return t?`${t} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"}),RangeError),Z("ERR_INVALID_ARG_TYPE",(function(t,e){return`The "${t}" argument must be of type number. Received type ${typeof e}`}),TypeError),Z("ERR_OUT_OF_RANGE",(function(t,e,r){let n=`The value of "${t}" is out of range.`,o=r;return Number.isInteger(r)&&Math.abs(r)>2**32?o=D(String(r)):"bigint"==typeof r&&(o=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(o=D(o)),o+="n"),n+=` It must be ${e}. Received ${o}`,n}),RangeError);const $=/[^+/0-9A-Za-z-_]/g;function J(t,e){let r;e=e||1/0;const n=t.length;let o=null;const i=[];for(let s=0;s<n;++s){if(r=t.charCodeAt(s),r>55295&&r<57344){if(!o){if(r>56319){(e-=3)>-1&&i.push(239,191,189);continue}if(s+1===n){(e-=3)>-1&&i.push(239,191,189);continue}o=r;continue}if(r<56320){(e-=3)>-1&&i.push(239,191,189),o=r;continue}r=65536+(o-55296<<10|r-56320)}else o&&(e-=3)>-1&&i.push(239,191,189);if(o=null,r<128){if((e-=1)<0)break;i.push(r)}else if(r<2048){if((e-=2)<0)break;i.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;i.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return i}function Y(t){return n.toByteArray(function(t){if((t=(t=t.split("=")[0]).trim().replace($,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function G(t,e,r,n){let o;for(o=0;o<n&&!(o+r>=e.length||o>=t.length);++o)e[o+r]=t[o];return o}function H(t,e){return t instanceof e||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===e.name}function V(t){return t!=t}const X=function(){const t="0123456789abcdef",e=new Array(256);for(let r=0;r<16;++r){const n=16*r;for(let o=0;o<16;++o)e[n+o]=t[r]+t[o]}return e}();function W(t){return"undefined"==typeof BigInt?Q:t}function Q(){throw new Error("BigInt not supported")}},284:t=>{var e=function(){if("object"==typeof self&&self)return self;if("object"==typeof window&&window)return window;throw new Error("Unable to resolve global `this`")};t.exports=function(){if(this)return this;if("object"==typeof globalThis&&globalThis)return globalThis;try{Object.defineProperty(Object.prototype,"__global__",{get:function(){return this},configurable:!0})}catch(t){return e()}try{return __global__||e()}finally{delete Object.prototype.__global__}}()},1875:(t,e,r)=>{"use strict";function n(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var o=n(r(9019));function i(t){return new Promise(((e,r)=>{t.oncomplete=t.onsuccess=()=>e(t.result),t.onabort=t.onerror=()=>r(t.error)}))}function s(t,e){const r=o.default().then((()=>{const r=indexedDB.open(t);return r.onupgradeneeded=()=>r.result.createObjectStore(e),i(r)}));return(t,n)=>r.then((r=>n(r.transaction(e,t).objectStore(e))))}let a;function u(){return a||(a=s("keyval-store","keyval")),a}function f(t,e){return t("readonly",(t=>(t.openCursor().onsuccess=function(){this.result&&(e(this.result),this.result.continue())},i(t.transaction))))}e.clear=function(t=u()){return t("readwrite",(t=>(t.clear(),i(t.transaction))))},e.createStore=s,e.del=function(t,e=u()){return e("readwrite",(e=>(e.delete(t),i(e.transaction))))},e.entries=function(t=u()){const e=[];return f(t,(t=>e.push([t.key,t.value]))).then((()=>e))},e.get=function(t,e=u()){return e("readonly",(e=>i(e.get(t))))},e.getMany=function(t,e=u()){return e("readonly",(e=>Promise.all(t.map((t=>i(e.get(t)))))))},e.keys=function(t=u()){const e=[];return f(t,(t=>e.push(t.key))).then((()=>e))},e.promisifyRequest=i,e.set=function(t,e,r=u()){return r("readwrite",(r=>(r.put(e,t),i(r.transaction))))},e.setMany=function(t,e=u()){return e("readwrite",(e=>(t.forEach((t=>e.put(t[1],t[0]))),i(e.transaction))))},e.update=function(t,e,r=u()){return r("readwrite",(r=>new Promise(((n,o)=>{r.get(t).onsuccess=function(){try{r.put(e(this.result),t),n(i(r.transaction))}catch(t){o(t)}}}))))},e.values=function(t=u()){const e=[];return f(t,(t=>e.push(t.value))).then((()=>e))}},645:(t,e)=>{e.read=function(t,e,r,n,o){var i,s,a=8*o-n-1,u=(1<<a)-1,f=u>>1,l=-7,c=r?o-1:0,h=r?-1:1,p=t[e+c];for(c+=h,i=p&(1<<-l)-1,p>>=-l,l+=a;l>0;i=256*i+t[e+c],c+=h,l-=8);for(s=i&(1<<-l)-1,i>>=-l,l+=n;l>0;s=256*s+t[e+c],c+=h,l-=8);if(0===i)i=1-f;else{if(i===u)return s?NaN:1/0*(p?-1:1);s+=Math.pow(2,n),i-=f}return(p?-1:1)*s*Math.pow(2,i-n)},e.write=function(t,e,r,n,o,i){var s,a,u,f=8*i-o-1,l=(1<<f)-1,c=l>>1,h=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:i-1,y=n?1:-1,d=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,s=l):(s=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-s))<1&&(s--,u*=2),(e+=s+c>=1?h/u:h*Math.pow(2,1-c))*u>=2&&(s++,u/=2),s+c>=l?(a=0,s=l):s+c>=1?(a=(e*u-1)*Math.pow(2,o),s+=c):(a=e*Math.pow(2,c-1)*Math.pow(2,o),s=0));o>=8;t[r+p]=255&a,p+=y,a/=256,o-=8);for(s=s<<o|a,f+=o;f>0;t[r+p]=255&s,p+=y,s/=256,f-=8);t[r+p-y]|=128*d}},7435:(t,e)=>{e.endianness=function(){return"LE"},e.hostname=function(){return"undefined"!=typeof location?location.hostname:""},e.loadavg=function(){return[]},e.uptime=function(){return 0},e.freemem=function(){return Number.MAX_VALUE},e.totalmem=function(){return Number.MAX_VALUE},e.cpus=function(){return[]},e.type=function(){return"Browser"},e.release=function(){return"undefined"!=typeof navigator?navigator.appVersion:""},e.networkInterfaces=e.getNetworkInterfaces=function(){return{}},e.arch=function(){return"javascript"},e.platform=function(){return"browser"},e.tmpdir=e.tmpDir=function(){return"/tmp"},e.EOL="\n",e.homedir=function(){return"/"}},5802:function(t,e){!function(t){"use strict";var e=(t,e,r,n)=>{let o=65535&t|0,i=t>>>16&65535|0,s=0;for(;0!==r;){s=r>2e3?2e3:r,r-=s;do{o=o+e[n++]|0,i=i+o|0}while(--s);o%=65521,i%=65521}return o|i<<16|0};const r=new Uint32Array((()=>{let t,e=[];for(var r=0;r<256;r++){t=r;for(var n=0;n<8;n++)t=1&t?3988292384^t>>>1:t>>>1;e[r]=t}return e})());var n=(t,e,n,o)=>{const i=r,s=o+n;t^=-1;for(let r=o;r<s;r++)t=t>>>8^i[255&(t^e[r])];return-1^t};var o=function(t,e){let r,n,o,i,s,a,u,f,l,c,h,p,y,d,g,v,w,b,m,_,E,A,k,B;const S=t.state;r=t.next_in,k=t.input,n=r+(t.avail_in-5),o=t.next_out,B=t.output,i=o-(e-t.avail_out),s=o+(t.avail_out-257),a=S.dmax,u=S.wsize,f=S.whave,l=S.wnext,c=S.window,h=S.hold,p=S.bits,y=S.lencode,d=S.distcode,g=(1<<S.lenbits)-1,v=(1<<S.distbits)-1;t:do{p<15&&(h+=k[r++]<<p,p+=8,h+=k[r++]<<p,p+=8),w=y[h&g];e:for(;;){if(b=w>>>24,h>>>=b,p-=b,b=w>>>16&255,0===b)B[o++]=65535&w;else{if(!(16&b)){if(0==(64&b)){w=y[(65535&w)+(h&(1<<b)-1)];continue e}if(32&b){S.mode=12;break t}t.msg="invalid literal/length code",S.mode=30;break t}m=65535&w,b&=15,b&&(p<b&&(h+=k[r++]<<p,p+=8),m+=h&(1<<b)-1,h>>>=b,p-=b),p<15&&(h+=k[r++]<<p,p+=8,h+=k[r++]<<p,p+=8),w=d[h&v];r:for(;;){if(b=w>>>24,h>>>=b,p-=b,b=w>>>16&255,!(16&b)){if(0==(64&b)){w=d[(65535&w)+(h&(1<<b)-1)];continue r}t.msg="invalid distance code",S.mode=30;break t}if(_=65535&w,b&=15,p<b&&(h+=k[r++]<<p,p+=8,p<b&&(h+=k[r++]<<p,p+=8)),_+=h&(1<<b)-1,_>a){t.msg="invalid distance too far back",S.mode=30;break t}if(h>>>=b,p-=b,b=o-i,_>b){if(b=_-b,b>f&&S.sane){t.msg="invalid distance too far back",S.mode=30;break t}if(E=0,A=c,0===l){if(E+=u-b,b<m){m-=b;do{B[o++]=c[E++]}while(--b);E=o-_,A=B}}else if(l<b){if(E+=u+l-b,b-=l,b<m){m-=b;do{B[o++]=c[E++]}while(--b);if(E=0,l<m){b=l,m-=b;do{B[o++]=c[E++]}while(--b);E=o-_,A=B}}}else if(E+=l-b,b<m){m-=b;do{B[o++]=c[E++]}while(--b);E=o-_,A=B}for(;m>2;)B[o++]=A[E++],B[o++]=A[E++],B[o++]=A[E++],m-=3;m&&(B[o++]=A[E++],m>1&&(B[o++]=A[E++]))}else{E=o-_;do{B[o++]=B[E++],B[o++]=B[E++],B[o++]=B[E++],m-=3}while(m>2);m&&(B[o++]=B[E++],m>1&&(B[o++]=B[E++]))}break}}break}}while(r<n&&o<s);m=p>>3,r-=m,p-=m<<3,h&=(1<<p)-1,t.next_in=r,t.next_out=o,t.avail_in=r<n?n-r+5:5-(r-n),t.avail_out=o<s?s-o+257:257-(o-s),S.hold=h,S.bits=p};const i=15,s=new Uint16Array([3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0]),a=new Uint8Array([16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78]),u=new Uint16Array([1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0]),f=new Uint8Array([16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64]);var l=(t,e,r,n,o,l,c,h)=>{const p=h.bits;let y,d,g,v,w,b,m=0,_=0,E=0,A=0,k=0,B=0,S=0,O=0,x=0,I=0,U=null,R=0;const T=new Uint16Array(16),M=new Uint16Array(16);let N,P,L,C=null,j=0;for(m=0;m<=i;m++)T[m]=0;for(_=0;_<n;_++)T[e[r+_]]++;for(k=p,A=i;A>=1&&0===T[A];A--);if(k>A&&(k=A),0===A)return o[l++]=20971520,o[l++]=20971520,h.bits=1,0;for(E=1;E<A&&0===T[E];E++);for(k<E&&(k=E),O=1,m=1;m<=i;m++)if(O<<=1,O-=T[m],O<0)return-1;if(O>0&&(0===t||1!==A))return-1;for(M[1]=0,m=1;m<i;m++)M[m+1]=M[m]+T[m];for(_=0;_<n;_++)0!==e[r+_]&&(c[M[e[r+_]]++]=_);if(0===t?(U=C=c,b=19):1===t?(U=s,R-=257,C=a,j-=257,b=256):(U=u,C=f,b=-1),I=0,_=0,m=E,w=l,B=k,S=0,g=-1,x=1<<k,v=x-1,1===t&&x>852||2===t&&x>592)return 1;for(;;){N=m-S,c[_]<b?(P=0,L=c[_]):c[_]>b?(P=C[j+c[_]],L=U[R+c[_]]):(P=96,L=0),y=1<<m-S,d=1<<B,E=d;do{d-=y,o[w+(I>>S)+d]=N<<24|P<<16|L|0}while(0!==d);for(y=1<<m-1;I&y;)y>>=1;if(0!==y?(I&=y-1,I+=y):I=0,_++,0==--T[m]){if(m===A)break;m=e[r+c[_]]}if(m>k&&(I&v)!==g){for(0===S&&(S=k),w+=E,B=m-S,O=1<<B;B+S<A&&(O-=T[B+S],!(O<=0));)B++,O<<=1;if(x+=1<<B,1===t&&x>852||2===t&&x>592)return 1;g=I&v,o[g]=k<<24|B<<16|w-l|0}}return 0!==I&&(o[w+I]=m-S<<24|64<<16|0),h.bits=k,0},c={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8};const{Z_FINISH:h,Z_BLOCK:p,Z_TREES:y,Z_OK:d,Z_STREAM_END:g,Z_NEED_DICT:v,Z_STREAM_ERROR:w,Z_DATA_ERROR:b,Z_MEM_ERROR:m,Z_BUF_ERROR:_,Z_DEFLATED:E}=c,A=12,k=30,B=t=>(t>>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24);function S(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}const O=t=>{if(!t||!t.state)return w;const e=t.state;return t.total_in=t.total_out=e.total=0,t.msg="",e.wrap&&(t.adler=1&e.wrap),e.mode=1,e.last=0,e.havedict=0,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new Int32Array(852),e.distcode=e.distdyn=new Int32Array(592),e.sane=1,e.back=-1,d},x=t=>{if(!t||!t.state)return w;const e=t.state;return e.wsize=0,e.whave=0,e.wnext=0,O(t)},I=(t,e)=>{let r;if(!t||!t.state)return w;const n=t.state;return e<0?(r=0,e=-e):(r=1+(e>>4),e<48&&(e&=15)),e&&(e<8||e>15)?w:(null!==n.window&&n.wbits!==e&&(n.window=null),n.wrap=r,n.wbits=e,x(t))},U=(t,e)=>{if(!t)return w;const r=new S;t.state=r,r.window=null;const n=I(t,e);return n!==d&&(t.state=null),n};let R,T,M=!0;const N=t=>{if(M){R=new Int32Array(512),T=new Int32Array(32);let e=0;for(;e<144;)t.lens[e++]=8;for(;e<256;)t.lens[e++]=9;for(;e<280;)t.lens[e++]=7;for(;e<288;)t.lens[e++]=8;for(l(1,t.lens,0,288,R,0,t.work,{bits:9}),e=0;e<32;)t.lens[e++]=5;l(2,t.lens,0,32,T,0,t.work,{bits:5}),M=!1}t.lencode=R,t.lenbits=9,t.distcode=T,t.distbits=5},P=(t,e,r,n)=>{let o;const i=t.state;return null===i.window&&(i.wsize=1<<i.wbits,i.wnext=0,i.whave=0,i.window=new Uint8Array(i.wsize)),n>=i.wsize?(i.window.set(e.subarray(r-i.wsize,r),0),i.wnext=0,i.whave=i.wsize):(o=i.wsize-i.wnext,o>n&&(o=n),i.window.set(e.subarray(r-n,r-n+o),i.wnext),(n-=o)?(i.window.set(e.subarray(r-n,r),0),i.wnext=n,i.whave=i.wsize):(i.wnext+=o,i.wnext===i.wsize&&(i.wnext=0),i.whave<i.wsize&&(i.whave+=o))),0};var L=x,C=U,j=(t,r)=>{let i,s,a,u,f,c,S,O,x,I,U,R,T,M,L,C,j,q,Z,D,z,F,K=0;const $=new Uint8Array(4);let J,Y;const G=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(!t||!t.state||!t.output||!t.input&&0!==t.avail_in)return w;i=t.state,i.mode===A&&(i.mode=13),f=t.next_out,a=t.output,S=t.avail_out,u=t.next_in,s=t.input,c=t.avail_in,O=i.hold,x=i.bits,I=c,U=S,F=d;t:for(;;)switch(i.mode){case 1:if(0===i.wrap){i.mode=13;break}for(;x<16;){if(0===c)break t;c--,O+=s[u++]<<x,x+=8}if(2&i.wrap&&35615===O){i.check=0,$[0]=255&O,$[1]=O>>>8&255,i.check=n(i.check,$,2,0),O=0,x=0,i.mode=2;break}if(i.flags=0,i.head&&(i.head.done=!1),!(1&i.wrap)||(((255&O)<<8)+(O>>8))%31){t.msg="incorrect header check",i.mode=k;break}if((15&O)!==E){t.msg="unknown compression method",i.mode=k;break}if(O>>>=4,x-=4,z=8+(15&O),0===i.wbits)i.wbits=z;else if(z>i.wbits){t.msg="invalid window size",i.mode=k;break}i.dmax=1<<i.wbits,t.adler=i.check=1,i.mode=512&O?10:A,O=0,x=0;break;case 2:for(;x<16;){if(0===c)break t;c--,O+=s[u++]<<x,x+=8}if(i.flags=O,(255&i.flags)!==E){t.msg="unknown compression method",i.mode=k;break}if(57344&i.flags){t.msg="unknown header flags set",i.mode=k;break}i.head&&(i.head.text=O>>8&1),512&i.flags&&($[0]=255&O,$[1]=O>>>8&255,i.check=n(i.check,$,2,0)),O=0,x=0,i.mode=3;case 3:for(;x<32;){if(0===c)break t;c--,O+=s[u++]<<x,x+=8}i.head&&(i.head.time=O),512&i.flags&&($[0]=255&O,$[1]=O>>>8&255,$[2]=O>>>16&255,$[3]=O>>>24&255,i.check=n(i.check,$,4,0)),O=0,x=0,i.mode=4;case 4:for(;x<16;){if(0===c)break t;c--,O+=s[u++]<<x,x+=8}i.head&&(i.head.xflags=255&O,i.head.os=O>>8),512&i.flags&&($[0]=255&O,$[1]=O>>>8&255,i.check=n(i.check,$,2,0)),O=0,x=0,i.mode=5;case 5:if(1024&i.flags){for(;x<16;){if(0===c)break t;c--,O+=s[u++]<<x,x+=8}i.length=O,i.head&&(i.head.extra_len=O),512&i.flags&&($[0]=255&O,$[1]=O>>>8&255,i.check=n(i.check,$,2,0)),O=0,x=0}else i.head&&(i.head.extra=null);i.mode=6;case 6:if(1024&i.flags&&(R=i.length,R>c&&(R=c),R&&(i.head&&(z=i.head.extra_len-i.length,i.head.extra||(i.head.extra=new Uint8Array(i.head.extra_len)),i.head.extra.set(s.subarray(u,u+R),z)),512&i.flags&&(i.check=n(i.check,s,R,u)),c-=R,u+=R,i.length-=R),i.length))break t;i.length=0,i.mode=7;case 7:if(2048&i.flags){if(0===c)break t;R=0;do{z=s[u+R++],i.head&&z&&i.length<65536&&(i.head.name+=String.fromCharCode(z))}while(z&&R<c);if(512&i.flags&&(i.check=n(i.check,s,R,u)),c-=R,u+=R,z)break t}else i.head&&(i.head.name=null);i.length=0,i.mode=8;case 8:if(4096&i.flags){if(0===c)break t;R=0;do{z=s[u+R++],i.head&&z&&i.length<65536&&(i.head.comment+=String.fromCharCode(z))}while(z&&R<c);if(512&i.flags&&(i.check=n(i.check,s,R,u)),c-=R,u+=R,z)break t}else i.head&&(i.head.comment=null);i.mode=9;case 9:if(512&i.flags){for(;x<16;){if(0===c)break t;c--,O+=s[u++]<<x,x+=8}if(O!==(65535&i.check)){t.msg="header crc mismatch",i.mode=k;break}O=0,x=0}i.head&&(i.head.hcrc=i.flags>>9&1,i.head.done=!0),t.adler=i.check=0,i.mode=A;break;case 10:for(;x<32;){if(0===c)break t;c--,O+=s[u++]<<x,x+=8}t.adler=i.check=B(O),O=0,x=0,i.mode=11;case 11:if(0===i.havedict)return t.next_out=f,t.avail_out=S,t.next_in=u,t.avail_in=c,i.hold=O,i.bits=x,v;t.adler=i.check=1,i.mode=A;case A:if(r===p||r===y)break t;case 13:if(i.last){O>>>=7&x,x-=7&x,i.mode=27;break}for(;x<3;){if(0===c)break t;c--,O+=s[u++]<<x,x+=8}switch(i.last=1&O,O>>>=1,x-=1,3&O){case 0:i.mode=14;break;case 1:if(N(i),i.mode=20,r===y){O>>>=2,x-=2;break t}break;case 2:i.mode=17;break;case 3:t.msg="invalid block type",i.mode=k}O>>>=2,x-=2;break;case 14:for(O>>>=7&x,x-=7&x;x<32;){if(0===c)break t;c--,O+=s[u++]<<x,x+=8}if((65535&O)!=(O>>>16^65535)){t.msg="invalid stored block lengths",i.mode=k;break}if(i.length=65535&O,O=0,x=0,i.mode=15,r===y)break t;case 15:i.mode=16;case 16:if(R=i.length,R){if(R>c&&(R=c),R>S&&(R=S),0===R)break t;a.set(s.subarray(u,u+R),f),c-=R,u+=R,S-=R,f+=R,i.length-=R;break}i.mode=A;break;case 17:for(;x<14;){if(0===c)break t;c--,O+=s[u++]<<x,x+=8}if(i.nlen=257+(31&O),O>>>=5,x-=5,i.ndist=1+(31&O),O>>>=5,x-=5,i.ncode=4+(15&O),O>>>=4,x-=4,i.nlen>286||i.ndist>30){t.msg="too many length or distance symbols",i.mode=k;break}i.have=0,i.mode=18;case 18:for(;i.have<i.ncode;){for(;x<3;){if(0===c)break t;c--,O+=s[u++]<<x,x+=8}i.lens[G[i.have++]]=7&O,O>>>=3,x-=3}for(;i.have<19;)i.lens[G[i.have++]]=0;if(i.lencode=i.lendyn,i.lenbits=7,J={bits:i.lenbits},F=l(0,i.lens,0,19,i.lencode,0,i.work,J),i.lenbits=J.bits,F){t.msg="invalid code lengths set",i.mode=k;break}i.have=0,i.mode=19;case 19:for(;i.have<i.nlen+i.ndist;){for(;K=i.lencode[O&(1<<i.lenbits)-1],L=K>>>24,C=K>>>16&255,j=65535&K,!(L<=x);){if(0===c)break t;c--,O+=s[u++]<<x,x+=8}if(j<16)O>>>=L,x-=L,i.lens[i.have++]=j;else{if(16===j){for(Y=L+2;x<Y;){if(0===c)break t;c--,O+=s[u++]<<x,x+=8}if(O>>>=L,x-=L,0===i.have){t.msg="invalid bit length repeat",i.mode=k;break}z=i.lens[i.have-1],R=3+(3&O),O>>>=2,x-=2}else if(17===j){for(Y=L+3;x<Y;){if(0===c)break t;c--,O+=s[u++]<<x,x+=8}O>>>=L,x-=L,z=0,R=3+(7&O),O>>>=3,x-=3}else{for(Y=L+7;x<Y;){if(0===c)break t;c--,O+=s[u++]<<x,x+=8}O>>>=L,x-=L,z=0,R=11+(127&O),O>>>=7,x-=7}if(i.have+R>i.nlen+i.ndist){t.msg="invalid bit length repeat",i.mode=k;break}for(;R--;)i.lens[i.have++]=z}}if(i.mode===k)break;if(0===i.lens[256]){t.msg="invalid code -- missing end-of-block",i.mode=k;break}if(i.lenbits=9,J={bits:i.lenbits},F=l(1,i.lens,0,i.nlen,i.lencode,0,i.work,J),i.lenbits=J.bits,F){t.msg="invalid literal/lengths set",i.mode=k;break}if(i.distbits=6,i.distcode=i.distdyn,J={bits:i.distbits},F=l(2,i.lens,i.nlen,i.ndist,i.distcode,0,i.work,J),i.distbits=J.bits,F){t.msg="invalid distances set",i.mode=k;break}if(i.mode=20,r===y)break t;case 20:i.mode=21;case 21:if(c>=6&&S>=258){t.next_out=f,t.avail_out=S,t.next_in=u,t.avail_in=c,i.hold=O,i.bits=x,o(t,U),f=t.next_out,a=t.output,S=t.avail_out,u=t.next_in,s=t.input,c=t.avail_in,O=i.hold,x=i.bits,i.mode===A&&(i.back=-1);break}for(i.back=0;K=i.lencode[O&(1<<i.lenbits)-1],L=K>>>24,C=K>>>16&255,j=65535&K,!(L<=x);){if(0===c)break t;c--,O+=s[u++]<<x,x+=8}if(C&&0==(240&C)){for(q=L,Z=C,D=j;K=i.lencode[D+((O&(1<<q+Z)-1)>>q)],L=K>>>24,C=K>>>16&255,j=65535&K,!(q+L<=x);){if(0===c)break t;c--,O+=s[u++]<<x,x+=8}O>>>=q,x-=q,i.back+=q}if(O>>>=L,x-=L,i.back+=L,i.length=j,0===C){i.mode=26;break}if(32&C){i.back=-1,i.mode=A;break}if(64&C){t.msg="invalid literal/length code",i.mode=k;break}i.extra=15&C,i.mode=22;case 22:if(i.extra){for(Y=i.extra;x<Y;){if(0===c)break t;c--,O+=s[u++]<<x,x+=8}i.length+=O&(1<<i.extra)-1,O>>>=i.extra,x-=i.extra,i.back+=i.extra}i.was=i.length,i.mode=23;case 23:for(;K=i.distcode[O&(1<<i.distbits)-1],L=K>>>24,C=K>>>16&255,j=65535&K,!(L<=x);){if(0===c)break t;c--,O+=s[u++]<<x,x+=8}if(0==(240&C)){for(q=L,Z=C,D=j;K=i.distcode[D+((O&(1<<q+Z)-1)>>q)],L=K>>>24,C=K>>>16&255,j=65535&K,!(q+L<=x);){if(0===c)break t;c--,O+=s[u++]<<x,x+=8}O>>>=q,x-=q,i.back+=q}if(O>>>=L,x-=L,i.back+=L,64&C){t.msg="invalid distance code",i.mode=k;break}i.offset=j,i.extra=15&C,i.mode=24;case 24:if(i.extra){for(Y=i.extra;x<Y;){if(0===c)break t;c--,O+=s[u++]<<x,x+=8}i.offset+=O&(1<<i.extra)-1,O>>>=i.extra,x-=i.extra,i.back+=i.extra}if(i.offset>i.dmax){t.msg="invalid distance too far back",i.mode=k;break}i.mode=25;case 25:if(0===S)break t;if(R=U-S,i.offset>R){if(R=i.offset-R,R>i.whave&&i.sane){t.msg="invalid distance too far back",i.mode=k;break}R>i.wnext?(R-=i.wnext,T=i.wsize-R):T=i.wnext-R,R>i.length&&(R=i.length),M=i.window}else M=a,T=f-i.offset,R=i.length;R>S&&(R=S),S-=R,i.length-=R;do{a[f++]=M[T++]}while(--R);0===i.length&&(i.mode=21);break;case 26:if(0===S)break t;a[f++]=i.length,S--,i.mode=21;break;case 27:if(i.wrap){for(;x<32;){if(0===c)break t;c--,O|=s[u++]<<x,x+=8}if(U-=S,t.total_out+=U,i.total+=U,U&&(t.adler=i.check=i.flags?n(i.check,a,U,f-U):e(i.check,a,U,f-U)),U=S,(i.flags?O:B(O))!==i.check){t.msg="incorrect data check",i.mode=k;break}O=0,x=0}i.mode=28;case 28:if(i.wrap&&i.flags){for(;x<32;){if(0===c)break t;c--,O+=s[u++]<<x,x+=8}if(O!==(4294967295&i.total)){t.msg="incorrect length check",i.mode=k;break}O=0,x=0}i.mode=29;case 29:F=g;break t;case k:F=b;break t;case 31:return m;case 32:default:return w}return t.next_out=f,t.avail_out=S,t.next_in=u,t.avail_in=c,i.hold=O,i.bits=x,(i.wsize||U!==t.avail_out&&i.mode<k&&(i.mode<27||r!==h))&&P(t,t.output,t.next_out,U-t.avail_out),I-=t.avail_in,U-=t.avail_out,t.total_in+=I,t.total_out+=U,i.total+=U,i.wrap&&U&&(t.adler=i.check=i.flags?n(i.check,a,U,t.next_out-U):e(i.check,a,U,t.next_out-U)),t.data_type=i.bits+(i.last?64:0)+(i.mode===A?128:0)+(20===i.mode||15===i.mode?256:0),(0===I&&0===U||r===h)&&F===d&&(F=_),F},q=t=>{if(!t||!t.state)return w;let e=t.state;return e.window&&(e.window=null),t.state=null,d},Z=(t,e)=>{if(!t||!t.state)return w;const r=t.state;return 0==(2&r.wrap)?w:(r.head=e,e.done=!1,d)},D=(t,r)=>{const n=r.length;let o,i,s;return t&&t.state?(o=t.state,0!==o.wrap&&11!==o.mode?w:11===o.mode&&(i=1,i=e(i,r,n,0),i!==o.check)?b:(s=P(t,r,n,n),s?(o.mode=31,m):(o.havedict=1,d))):w};const z=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var F=function(t){const e=Array.prototype.slice.call(arguments,1);for(;e.length;){const r=e.shift();if(r){if("object"!=typeof r)throw new TypeError(r+"must be non-object");for(const e in r)z(r,e)&&(t[e]=r[e])}}return t},K=t=>{let e=0;for(let r=0,n=t.length;r<n;r++)e+=t[r].length;const r=new Uint8Array(e);for(let e=0,n=0,o=t.length;e<o;e++){let o=t[e];r.set(o,n),n+=o.length}return r};let $=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(t){$=!1}const J=new Uint8Array(256);for(let t=0;t<256;t++)J[t]=t>=252?6:t>=248?5:t>=240?4:t>=224?3:t>=192?2:1;J[254]=J[254]=1;var Y=t=>{if("function"==typeof TextEncoder&&TextEncoder.prototype.encode)return(new TextEncoder).encode(t);let e,r,n,o,i,s=t.length,a=0;for(o=0;o<s;o++)r=t.charCodeAt(o),55296==(64512&r)&&o+1<s&&(n=t.charCodeAt(o+1),56320==(64512&n)&&(r=65536+(r-55296<<10)+(n-56320),o++)),a+=r<128?1:r<2048?2:r<65536?3:4;for(e=new Uint8Array(a),i=0,o=0;i<a;o++)r=t.charCodeAt(o),55296==(64512&r)&&o+1<s&&(n=t.charCodeAt(o+1),56320==(64512&n)&&(r=65536+(r-55296<<10)+(n-56320),o++)),r<128?e[i++]=r:r<2048?(e[i++]=192|r>>>6,e[i++]=128|63&r):r<65536?(e[i++]=224|r>>>12,e[i++]=128|r>>>6&63,e[i++]=128|63&r):(e[i++]=240|r>>>18,e[i++]=128|r>>>12&63,e[i++]=128|r>>>6&63,e[i++]=128|63&r);return e},G=(t,e)=>{const r=e||t.length;if("function"==typeof TextDecoder&&TextDecoder.prototype.decode)return(new TextDecoder).decode(t.subarray(0,e));let n,o;const i=new Array(2*r);for(o=0,n=0;n<r;){let e=t[n++];if(e<128){i[o++]=e;continue}let s=J[e];if(s>4)i[o++]=65533,n+=s-1;else{for(e&=2===s?31:3===s?15:7;s>1&&n<r;)e=e<<6|63&t[n++],s--;s>1?i[o++]=65533:e<65536?i[o++]=e:(e-=65536,i[o++]=55296|e>>10&1023,i[o++]=56320|1023&e)}}return((t,e)=>{if(e<65534&&t.subarray&&$)return String.fromCharCode.apply(null,t.length===e?t:t.subarray(0,e));let r="";for(let n=0;n<e;n++)r+=String.fromCharCode(t[n]);return r})(i,o)},H=(t,e)=>{(e=e||t.length)>t.length&&(e=t.length);let r=e-1;for(;r>=0&&128==(192&t[r]);)r--;return r<0||0===r?e:r+J[t[r]]>e?r:e},V={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"};var X=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0};var W=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1};const Q=Object.prototype.toString,{Z_NO_FLUSH:tt,Z_FINISH:et,Z_OK:rt,Z_STREAM_END:nt,Z_NEED_DICT:ot,Z_STREAM_ERROR:it,Z_DATA_ERROR:st,Z_MEM_ERROR:at}=c;function ut(t){this.options=F({chunkSize:65536,windowBits:15,to:""},t||{});const e=this.options;e.raw&&e.windowBits>=0&&e.windowBits<16&&(e.windowBits=-e.windowBits,0===e.windowBits&&(e.windowBits=-15)),!(e.windowBits>=0&&e.windowBits<16)||t&&t.windowBits||(e.windowBits+=32),e.windowBits>15&&e.windowBits<48&&0==(15&e.windowBits)&&(e.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new X,this.strm.avail_out=0;let r=C(this.strm,e.windowBits);if(r!==rt)throw new Error(V[r]);if(this.header=new W,Z(this.strm,this.header),e.dictionary&&("string"==typeof e.dictionary?e.dictionary=Y(e.dictionary):"[object ArrayBuffer]"===Q.call(e.dictionary)&&(e.dictionary=new Uint8Array(e.dictionary)),e.raw&&(r=D(this.strm,e.dictionary),r!==rt)))throw new Error(V[r])}function ft(t,e){const r=new ut(e);if(r.push(t),r.err)throw r.msg||V[r.err];return r.result}ut.prototype.push=function(t,e){const r=this.strm,n=this.options.chunkSize,o=this.options.dictionary;let i,s,a;if(this.ended)return!1;for(s=e===~~e?e:!0===e?et:tt,"[object ArrayBuffer]"===Q.call(t)?r.input=new Uint8Array(t):r.input=t,r.next_in=0,r.avail_in=r.input.length;;){for(0===r.avail_out&&(r.output=new Uint8Array(n),r.next_out=0,r.avail_out=n),i=j(r,s),i===ot&&o&&(i=D(r,o),i===rt?i=j(r,s):i===st&&(i=ot));r.avail_in>0&&i===nt&&r.state.wrap>0&&0!==t[r.next_in];)L(r),i=j(r,s);switch(i){case it:case st:case ot:case at:return this.onEnd(i),this.ended=!0,!1}if(a=r.avail_out,r.next_out&&(0===r.avail_out||i===nt))if("string"===this.options.to){let t=H(r.output,r.next_out),e=r.next_out-t,o=G(r.output,t);r.next_out=e,r.avail_out=n-e,e&&r.output.set(r.output.subarray(t,t+e),0),this.onData(o)}else this.onData(r.output.length===r.next_out?r.output:r.output.subarray(0,r.next_out));if(i!==rt||0!==a){if(i===nt)return i=q(this.strm),this.onEnd(i),this.ended=!0,!0;if(0===r.avail_in)break}}return!0},ut.prototype.onData=function(t){this.chunks.push(t)},ut.prototype.onEnd=function(t){t===rt&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=K(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg};var lt=ut,ct=ft,ht=function(t,e){return(e=e||{}).raw=!0,ft(t,e)},pt=ft,yt=c,dt={Inflate:lt,inflate:ct,inflateRaw:ht,ungzip:pt,constants:yt};t.Inflate=lt,t.constants=yt,t.default=dt,t.inflate=ct,t.inflateRaw=ht,t.ungzip=pt,Object.defineProperty(t,"__esModule",{value:!0})}(e)},9019:t=>{"use strict";t.exports=function(){if(navigator.userAgentData||!/Safari\//.test(navigator.userAgent)||/Chrom(e|ium)\//.test(navigator.userAgent)||!indexedDB.databases)return Promise.resolve();let t;return new Promise((e=>{const r=()=>indexedDB.databases().finally(e);t=setInterval(r,100),r()})).finally((()=>clearInterval(t)))}},655:(t,e,r)=>{"use strict";r.r(e),r.d(e,{__extends:()=>o,__assign:()=>i,__rest:()=>s,__decorate:()=>a,__param:()=>u,__metadata:()=>f,__awaiter:()=>l,__generator:()=>c,__createBinding:()=>h,__exportStar:()=>p,__values:()=>y,__read:()=>d,__spread:()=>g,__spreadArrays:()=>v,__spreadArray:()=>w,__await:()=>b,__asyncGenerator:()=>m,__asyncDelegator:()=>_,__asyncValues:()=>E,__makeTemplateObject:()=>A,__importStar:()=>B,__importDefault:()=>S,__classPrivateFieldGet:()=>O,__classPrivateFieldSet:()=>x});var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)};function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}var i=function(){return(i=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};function s(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(t);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(r[n[o]]=t[n[o]])}return r}function a(t,e,r,n){var o,i=arguments.length,s=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,r,s):o(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s}function u(t,e){return function(r,n){e(r,n,t)}}function f(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}function l(t,e,r,n){return new(r||(r=Promise))((function(o,i){function s(t){try{u(n.next(t))}catch(t){i(t)}}function a(t){try{u(n.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(s,a)}u((n=n.apply(t,e||[])).next())}))}function c(t,e){var r,n,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;s;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,n=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!((o=(o=s.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){s.label=i[1];break}if(6===i[0]&&s.label<o[1]){s.label=o[1],o=i;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(i);break}o[2]&&s.ops.pop(),s.trys.pop();continue}i=e.call(t,s)}catch(t){i=[6,t],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}}var h=Object.create?function(t,e,r,n){void 0===n&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]};function p(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||h(e,t,r)}function y(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function d(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)s.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return s}function g(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(d(arguments[e]));return t}function v(){for(var t=0,e=0,r=arguments.length;e<r;e++)t+=arguments[e].length;var n=Array(t),o=0;for(e=0;e<r;e++)for(var i=arguments[e],s=0,a=i.length;s<a;s++,o++)n[o]=i[s];return n}function w(t,e,r){if(r||2===arguments.length)for(var n,o=0,i=e.length;o<i;o++)!n&&o in e||(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return t.concat(n||e)}function b(t){return this instanceof b?(this.v=t,this):new b(t)}function m(t,e,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,o=r.apply(t,e||[]),i=[];return n={},s("next"),s("throw"),s("return"),n[Symbol.asyncIterator]=function(){return this},n;function s(t){o[t]&&(n[t]=function(e){return new Promise((function(r,n){i.push([t,e,r,n])>1||a(t,e)}))})}function a(t,e){try{(r=o[t](e)).value instanceof b?Promise.resolve(r.value.v).then(u,f):l(i[0][2],r)}catch(t){l(i[0][3],t)}var r}function u(t){a("next",t)}function f(t){a("throw",t)}function l(t,e){t(e),i.shift(),i.length&&a(i[0][0],i[0][1])}}function _(t){var e,r;return e={},n("next"),n("throw",(function(t){throw t})),n("return"),e[Symbol.iterator]=function(){return this},e;function n(n,o){e[n]=t[n]?function(e){return(r=!r)?{value:b(t[n](e)),done:"return"===n}:o?o(e):e}:o}}function E(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,r=t[Symbol.asyncIterator];return r?r.call(t):(t=y(t),e={},n("next"),n("throw"),n("return"),e[Symbol.asyncIterator]=function(){return this},e);function n(r){e[r]=t[r]&&function(e){return new Promise((function(n,o){!function(t,e,r,n){Promise.resolve(n).then((function(e){t({value:e,done:r})}),e)}(n,o,(e=t[r](e)).done,e.value)}))}}}function A(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}var k=Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e};function B(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)"default"!==r&&Object.prototype.hasOwnProperty.call(t,r)&&h(e,t,r);return k(e,t),e}function S(t){return t&&t.__esModule?t:{default:t}}function O(t,e,r,n){if("a"===r&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(t):n?n.value:e.get(t)}function x(t,e,r,n,o){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!o:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?o.call(t,r):o?o.value=r:e.set(t,r),r}},5840:(t,e,r)=>{var n;if("object"==typeof globalThis)n=globalThis;else try{n=r(284)}catch(t){}finally{if(n||"undefined"==typeof window||(n=window),!n)throw new Error("Could not determine global this")}var o=n.WebSocket||n.MozWebSocket,i=r(9387);function s(t,e){return e?new o(t,e):new o(t)}o&&["CONNECTING","OPEN","CLOSING","CLOSED"].forEach((function(t){Object.defineProperty(s,t,{get:function(){return o[t]}})})),t.exports={w3cwebsocket:o?s:null,version:i}},9387:(t,e,r)=>{t.exports=r(9794).version},9794:t=>{"use strict";t.exports={version:"1.0.34"}}}]);
|
|
//# sourceMappingURL=592.d7ca037ed9b7d1c6792a.js.map
|