blockcore-notes/polyfills.b3e0444f2aa96cf3.js
2022-12-21 20:06:09 +00:00

1 line
60 KiB
JavaScript

(self.webpackChunkblockcore_notes=self.webpackChunkblockcore_notes||[]).push([[429],{7435:(Bt,at,X)=>{"use strict";var v=X(3172);window.global=window,global.Buffer=v.Buffer},5343:(Bt,at)=>{"use strict";at.byteLength=function l(C){var L=U(C),pt=L[1];return 3*(L[0]+pt)/4-pt},at.toByteArray=function yt(C){var L,tt,D=U(C),pt=D[0],lt=D[1],ut=new gt(function nt(C,L,D){return 3*(L+D)/4-D}(0,pt,lt)),Et=0,Pt=lt>0?pt-4:pt;for(tt=0;tt<Pt;tt+=4)L=v[C.charCodeAt(tt)]<<18|v[C.charCodeAt(tt+1)]<<12|v[C.charCodeAt(tt+2)]<<6|v[C.charCodeAt(tt+3)],ut[Et++]=L>>16&255,ut[Et++]=L>>8&255,ut[Et++]=255&L;return 2===lt&&(L=v[C.charCodeAt(tt)]<<2|v[C.charCodeAt(tt+1)]>>4,ut[Et++]=255&L),1===lt&&(L=v[C.charCodeAt(tt)]<<10|v[C.charCodeAt(tt+1)]<<4|v[C.charCodeAt(tt+2)]>>2,ut[Et++]=L>>8&255,ut[Et++]=255&L),ut},at.fromByteArray=function Z(C){for(var L,D=C.length,pt=D%3,lt=[],Et=0,Pt=D-pt;Et<Pt;Et+=16383)lt.push(it(C,Et,Et+16383>Pt?Pt:Et+16383));return 1===pt?lt.push(X[(L=C[D-1])>>2]+X[L<<4&63]+"=="):2===pt&&lt.push(X[(L=(C[D-2]<<8)+C[D-1])>>10]+X[L>>4&63]+X[L<<2&63]+"="),lt.join("")};for(var X=[],v=[],gt=typeof Uint8Array<"u"?Uint8Array:Array,dt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",z=0,ot=dt.length;z<ot;++z)X[z]=dt[z],v[dt.charCodeAt(z)]=z;function U(C){var L=C.length;if(L%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var D=C.indexOf("=");return-1===D&&(D=L),[D,D===L?0:4-D%4]}function rt(C){return X[C>>18&63]+X[C>>12&63]+X[C>>6&63]+X[63&C]}function it(C,L,D){for(var lt=[],ut=L;ut<D;ut+=3)lt.push(rt((C[ut]<<16&16711680)+(C[ut+1]<<8&65280)+(255&C[ut+2])));return lt.join("")}v["-".charCodeAt(0)]=62,v["_".charCodeAt(0)]=63},3172:(Bt,at,X)=>{"use strict";const v=X(5343),gt=X(8461),dt="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;at.Buffer=l,at.SlowBuffer=function ut(n){return+n!=n&&(n=0),l.alloc(+n)},at.INSPECT_MAX_BYTES=50;const z=2147483647;function U(n){if(n>z)throw new RangeError('The value "'+n+'" is invalid for option "size"');const t=new Uint8Array(n);return Object.setPrototypeOf(t,l.prototype),t}function l(n,t,e){if("number"==typeof n){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return it(n)}return nt(n,t,e)}function nt(n,t,e){if("string"==typeof n)return function Z(n,t){if(("string"!=typeof t||""===t)&&(t="utf8"),!l.isEncoding(t))throw new TypeError("Unknown encoding: "+t);const e=0|Et(n,t);let r=U(e);const i=r.write(n,t);return i!==e&&(r=r.slice(0,i)),r}(n,t);if(ArrayBuffer.isView(n))return function L(n){if(u(n,Uint8Array)){const t=new Uint8Array(n);return D(t.buffer,t.byteOffset,t.byteLength)}return C(n)}(n);if(null==n)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof n);if(u(n,ArrayBuffer)||n&&u(n.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(u(n,SharedArrayBuffer)||n&&u(n.buffer,SharedArrayBuffer)))return D(n,t,e);if("number"==typeof n)throw new TypeError('The "value" argument must not be of type number. Received type number');const r=n.valueOf&&n.valueOf();if(null!=r&&r!==n)return l.from(r,t,e);const i=function pt(n){if(l.isBuffer(n)){const t=0|lt(n.length),e=U(t);return 0===e.length||n.copy(e,0,0,t),e}return void 0!==n.length?"number"!=typeof n.length||p(n.length)?U(0):C(n):"Buffer"===n.type&&Array.isArray(n.data)?C(n.data):void 0}(n);if(i)return i;if(typeof Symbol<"u"&&null!=Symbol.toPrimitive&&"function"==typeof n[Symbol.toPrimitive])return l.from(n[Symbol.toPrimitive]("string"),t,e);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof n)}function yt(n){if("number"!=typeof n)throw new TypeError('"size" argument must be of type number');if(n<0)throw new RangeError('The value "'+n+'" is invalid for option "size"')}function it(n){return yt(n),U(n<0?0:0|lt(n))}function C(n){const t=n.length<0?0:0|lt(n.length),e=U(t);for(let r=0;r<t;r+=1)e[r]=255&n[r];return e}function D(n,t,e){if(t<0||n.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(n.byteLength<t+(e||0))throw new RangeError('"length" is outside of buffer bounds');let r;return r=void 0===t&&void 0===e?new Uint8Array(n):void 0===e?new Uint8Array(n,t):new Uint8Array(n,t,e),Object.setPrototypeOf(r,l.prototype),r}function lt(n){if(n>=z)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+z.toString(16)+" bytes");return 0|n}function Et(n,t){if(l.isBuffer(n))return n.length;if(ArrayBuffer.isView(n)||u(n,ArrayBuffer))return n.byteLength;if("string"!=typeof n)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof n);const e=n.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===e)return 0;let i=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return e;case"utf8":case"utf-8":return At(n).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*e;case"hex":return e>>>1;case"base64":return oe(n).length;default:if(i)return r?-1:At(n).length;t=(""+t).toLowerCase(),i=!0}}function Pt(n,t,e){let r=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===e||e>this.length)&&(e=this.length),e<=0)||(e>>>=0)<=(t>>>=0))return"";for(n||(n="utf8");;)switch(n){case"hex":return ce(this,t,e);case"utf8":case"utf-8":return bt(this,t,e);case"ascii":return re(this,t,e);case"latin1":case"binary":return Wt(this,t,e);case"base64":return Lt(this,t,e);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ue(this,t,e);default:if(r)throw new TypeError("Unknown encoding: "+n);n=(n+"").toLowerCase(),r=!0}}function tt(n,t,e){const r=n[t];n[t]=n[e],n[e]=r}function Zt(n,t,e,r,i){if(0===n.length)return-1;if("string"==typeof e?(r=e,e=0):e>2147483647?e=2147483647:e<-2147483648&&(e=-2147483648),p(e=+e)&&(e=i?0:n.length-1),e<0&&(e=n.length+e),e>=n.length){if(i)return-1;e=n.length-1}else if(e<0){if(!i)return-1;e=0}if("string"==typeof t&&(t=l.from(t,r)),l.isBuffer(t))return 0===t.length?-1:$t(n,t,e,r,i);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(n,t,e):Uint8Array.prototype.lastIndexOf.call(n,t,e):$t(n,[t],e,r,i);throw new TypeError("val must be string, number or Buffer")}function $t(n,t,e,r,i){let R,c=1,a=n.length,T=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(n.length<2||t.length<2)return-1;c=2,a/=2,T/=2,e/=2}function F(H,P){return 1===c?H[P]:H.readUInt16BE(P*c)}if(i){let H=-1;for(R=e;R<a;R++)if(F(n,R)===F(t,-1===H?0:R-H)){if(-1===H&&(H=R),R-H+1===T)return H*c}else-1!==H&&(R-=R-H),H=-1}else for(e+T>a&&(e=a-T),R=e;R>=0;R--){let H=!0;for(let P=0;P<T;P++)if(F(n,R+P)!==F(t,P)){H=!1;break}if(H)return R}return-1}function jt(n,t,e,r){e=Number(e)||0;const i=n.length-e;r?(r=Number(r))>i&&(r=i):r=i;const c=t.length;let a;for(r>c/2&&(r=c/2),a=0;a<r;++a){const T=parseInt(t.substr(2*a,2),16);if(p(T))return a;n[e+a]=T}return a}function Qt(n,t,e,r){return o(At(t,n.length-e),n,e,r)}function te(n,t,e,r){return o(function fe(n){const t=[];for(let e=0;e<n.length;++e)t.push(255&n.charCodeAt(e));return t}(t),n,e,r)}function ee(n,t,e,r){return o(oe(t),n,e,r)}function It(n,t,e,r){return o(function he(n,t){let e,r,i;const c=[];for(let a=0;a<n.length&&!((t-=2)<0);++a)e=n.charCodeAt(a),r=e>>8,i=e%256,c.push(i),c.push(r);return c}(t,n.length-e),n,e,r)}function Lt(n,t,e){return v.fromByteArray(0===t&&e===n.length?n:n.slice(t,e))}function bt(n,t,e){e=Math.min(n.length,e);const r=[];let i=t;for(;i<e;){const c=n[i];let a=null,T=c>239?4:c>223?3:c>191?2:1;if(i+T<=e){let F,R,H,P;switch(T){case 1:c<128&&(a=c);break;case 2:F=n[i+1],128==(192&F)&&(P=(31&c)<<6|63&F,P>127&&(a=P));break;case 3:F=n[i+1],R=n[i+2],128==(192&F)&&128==(192&R)&&(P=(15&c)<<12|(63&F)<<6|63&R,P>2047&&(P<55296||P>57343)&&(a=P));break;case 4:F=n[i+1],R=n[i+2],H=n[i+3],128==(192&F)&&128==(192&R)&&128==(192&H)&&(P=(15&c)<<18|(63&F)<<12|(63&R)<<6|63&H,P>65535&&P<1114112&&(a=P))}}null===a?(a=65533,T=1):a>65535&&(a-=65536,r.push(a>>>10&1023|55296),a=56320|1023&a),r.push(a),i+=T}return function Rt(n){const t=n.length;if(t<=4096)return String.fromCharCode.apply(String,n);let e="",r=0;for(;r<t;)e+=String.fromCharCode.apply(String,n.slice(r,r+=4096));return e}(r)}function re(n,t,e){let r="";e=Math.min(n.length,e);for(let i=t;i<e;++i)r+=String.fromCharCode(127&n[i]);return r}function Wt(n,t,e){let r="";e=Math.min(n.length,e);for(let i=t;i<e;++i)r+=String.fromCharCode(n[i]);return r}function ce(n,t,e){const r=n.length;(!t||t<0)&&(t=0),(!e||e<0||e>r)&&(e=r);let i="";for(let c=t;c<e;++c)i+=h[n[c]];return i}function ue(n,t,e){const r=n.slice(t,e);let i="";for(let c=0;c<r.length-1;c+=2)i+=String.fromCharCode(r[c]+256*r[c+1]);return i}function et(n,t,e){if(n%1!=0||n<0)throw new RangeError("offset is not uint");if(n+t>e)throw new RangeError("Trying to access beyond buffer length")}function Tt(n,t,e,r,i,c){if(!l.isBuffer(n))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<c)throw new RangeError('"value" argument is out of bounds');if(e+r>n.length)throw new RangeError("Index out of range")}function wt(n,t,e,r,i){Jt(t,r,i,n,e,7);let c=Number(t&BigInt(4294967295));n[e++]=c,c>>=8,n[e++]=c,c>>=8,n[e++]=c,c>>=8,n[e++]=c;let a=Number(t>>BigInt(32)&BigInt(4294967295));return n[e++]=a,a>>=8,n[e++]=a,a>>=8,n[e++]=a,a>>=8,n[e++]=a,e}function qt(n,t,e,r,i){Jt(t,r,i,n,e,7);let c=Number(t&BigInt(4294967295));n[e+7]=c,c>>=8,n[e+6]=c,c>>=8,n[e+5]=c,c>>=8,n[e+4]=c;let a=Number(t>>BigInt(32)&BigInt(4294967295));return n[e+3]=a,a>>=8,n[e+2]=a,a>>=8,n[e+1]=a,a>>=8,n[e]=a,e+8}function Xt(n,t,e,r,i,c){if(e+r>n.length)throw new RangeError("Index out of range");if(e<0)throw new RangeError("Index out of range")}function Yt(n,t,e,r,i){return t=+t,e>>>=0,i||Xt(n,0,e,4),gt.write(n,t,e,r,23,4),e+4}function zt(n,t,e,r,i){return t=+t,e>>>=0,i||Xt(n,0,e,8),gt.write(n,t,e,r,52,8),e+8}at.kMaxLength=z,!(l.TYPED_ARRAY_SUPPORT=function ot(){try{const n=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(n,t),42===n.foo()}catch{return!1}}())&&typeof console<"u"&&"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(n,t,e){return nt(n,t,e)},Object.setPrototypeOf(l.prototype,Uint8Array.prototype),Object.setPrototypeOf(l,Uint8Array),l.alloc=function(n,t,e){return function rt(n,t,e){return yt(n),n<=0?U(n):void 0!==t?"string"==typeof e?U(n).fill(t,e):U(n).fill(t):U(n)}(n,t,e)},l.allocUnsafe=function(n){return it(n)},l.allocUnsafeSlow=function(n){return it(n)},l.isBuffer=function(t){return null!=t&&!0===t._isBuffer&&t!==l.prototype},l.compare=function(t,e){if(u(t,Uint8Array)&&(t=l.from(t,t.offset,t.byteLength)),u(e,Uint8Array)&&(e=l.from(e,e.offset,e.byteLength)),!l.isBuffer(t)||!l.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,i=e.length;for(let c=0,a=Math.min(r,i);c<a;++c)if(t[c]!==e[c]){r=t[c],i=e[c];break}return r<i?-1:i<r?1:0},l.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}},l.concat=function(t,e){if(!Array.isArray(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return l.alloc(0);let r;if(void 0===e)for(e=0,r=0;r<t.length;++r)e+=t[r].length;const i=l.allocUnsafe(e);let c=0;for(r=0;r<t.length;++r){let a=t[r];if(u(a,Uint8Array))c+a.length>i.length?(l.isBuffer(a)||(a=l.from(a)),a.copy(i,c)):Uint8Array.prototype.set.call(i,a,c);else{if(!l.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(i,c)}c+=a.length}return i},l.byteLength=Et,l.prototype._isBuffer=!0,l.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)tt(this,e,e+1);return this},l.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)tt(this,e,e+3),tt(this,e+1,e+2);return this},l.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)tt(this,e,e+7),tt(this,e+1,e+6),tt(this,e+2,e+5),tt(this,e+3,e+4);return this},l.prototype.toLocaleString=l.prototype.toString=function(){const t=this.length;return 0===t?"":0===arguments.length?bt(this,0,t):Pt.apply(this,arguments)},l.prototype.equals=function(t){if(!l.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===l.compare(this,t)},l.prototype.inspect=function(){let t="";const e=at.INSPECT_MAX_BYTES;return t=this.toString("hex",0,e).replace(/(.{2})/g,"$1 ").trim(),this.length>e&&(t+=" ... "),"<Buffer "+t+">"},dt&&(l.prototype[dt]=l.prototype.inspect),l.prototype.compare=function(t,e,r,i,c){if(u(t,Uint8Array)&&(t=l.from(t,t.offset,t.byteLength)),!l.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===i&&(i=0),void 0===c&&(c=this.length),e<0||r>t.length||i<0||c>this.length)throw new RangeError("out of range index");if(i>=c&&e>=r)return 0;if(i>=c)return-1;if(e>=r)return 1;if(this===t)return 0;let a=(c>>>=0)-(i>>>=0),T=(r>>>=0)-(e>>>=0);const F=Math.min(a,T),R=this.slice(i,c),H=t.slice(e,r);for(let P=0;P<F;++P)if(R[P]!==H[P]){a=R[P],T=H[P];break}return a<T?-1:T<a?1:0},l.prototype.includes=function(t,e,r){return-1!==this.indexOf(t,e,r)},l.prototype.indexOf=function(t,e,r){return Zt(this,t,e,r,!0)},l.prototype.lastIndexOf=function(t,e,r){return Zt(this,t,e,r,!1)},l.prototype.write=function(t,e,r,i){if(void 0===e)i="utf8",r=this.length,e=0;else if(void 0===r&&"string"==typeof e)i=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===i&&(i="utf8")):(i=r,r=void 0)}const c=this.length-e;if((void 0===r||r>c)&&(r=c),t.length>0&&(r<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");let a=!1;for(;;)switch(i){case"hex":return jt(this,t,e,r);case"utf8":case"utf-8":return Qt(this,t,e,r);case"ascii":case"latin1":case"binary":return te(this,t,e,r);case"base64":return ee(this,t,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return It(this,t,e,r);default:if(a)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),a=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},l.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 i=this.subarray(t,e);return Object.setPrototypeOf(i,l.prototype),i},l.prototype.readUintLE=l.prototype.readUIntLE=function(t,e,r){t>>>=0,e>>>=0,r||et(t,e,this.length);let i=this[t],c=1,a=0;for(;++a<e&&(c*=256);)i+=this[t+a]*c;return i},l.prototype.readUintBE=l.prototype.readUIntBE=function(t,e,r){t>>>=0,e>>>=0,r||et(t,e,this.length);let i=this[t+--e],c=1;for(;e>0&&(c*=256);)i+=this[t+--e]*c;return i},l.prototype.readUint8=l.prototype.readUInt8=function(t,e){return t>>>=0,e||et(t,1,this.length),this[t]},l.prototype.readUint16LE=l.prototype.readUInt16LE=function(t,e){return t>>>=0,e||et(t,2,this.length),this[t]|this[t+1]<<8},l.prototype.readUint16BE=l.prototype.readUInt16BE=function(t,e){return t>>>=0,e||et(t,2,this.length),this[t]<<8|this[t+1]},l.prototype.readUint32LE=l.prototype.readUInt32LE=function(t,e){return t>>>=0,e||et(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},l.prototype.readUint32BE=l.prototype.readUInt32BE=function(t,e){return t>>>=0,e||et(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},l.prototype.readBigUInt64LE=y(function(t){Dt(t>>>=0,"offset");const e=this[t],r=this[t+7];(void 0===e||void 0===r)&&Nt(t,this.length-8);const i=e+256*this[++t]+65536*this[++t]+this[++t]*2**24,c=this[++t]+256*this[++t]+65536*this[++t]+r*2**24;return BigInt(i)+(BigInt(c)<<BigInt(32))}),l.prototype.readBigUInt64BE=y(function(t){Dt(t>>>=0,"offset");const e=this[t],r=this[t+7];(void 0===e||void 0===r)&&Nt(t,this.length-8);const i=e*2**24+65536*this[++t]+256*this[++t]+this[++t],c=this[++t]*2**24+65536*this[++t]+256*this[++t]+r;return(BigInt(i)<<BigInt(32))+BigInt(c)}),l.prototype.readIntLE=function(t,e,r){t>>>=0,e>>>=0,r||et(t,e,this.length);let i=this[t],c=1,a=0;for(;++a<e&&(c*=256);)i+=this[t+a]*c;return c*=128,i>=c&&(i-=Math.pow(2,8*e)),i},l.prototype.readIntBE=function(t,e,r){t>>>=0,e>>>=0,r||et(t,e,this.length);let i=e,c=1,a=this[t+--i];for(;i>0&&(c*=256);)a+=this[t+--i]*c;return c*=128,a>=c&&(a-=Math.pow(2,8*e)),a},l.prototype.readInt8=function(t,e){return t>>>=0,e||et(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},l.prototype.readInt16LE=function(t,e){t>>>=0,e||et(t,2,this.length);const r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},l.prototype.readInt16BE=function(t,e){t>>>=0,e||et(t,2,this.length);const r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},l.prototype.readInt32LE=function(t,e){return t>>>=0,e||et(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},l.prototype.readInt32BE=function(t,e){return t>>>=0,e||et(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},l.prototype.readBigInt64LE=y(function(t){Dt(t>>>=0,"offset");const e=this[t],r=this[t+7];return(void 0===e||void 0===r)&&Nt(t,this.length-8),(BigInt(this[t+4]+256*this[t+5]+65536*this[t+6]+(r<<24))<<BigInt(32))+BigInt(e+256*this[++t]+65536*this[++t]+this[++t]*2**24)}),l.prototype.readBigInt64BE=y(function(t){Dt(t>>>=0,"offset");const e=this[t],r=this[t+7];(void 0===e||void 0===r)&&Nt(t,this.length-8);const i=(e<<24)+65536*this[++t]+256*this[++t]+this[++t];return(BigInt(i)<<BigInt(32))+BigInt(this[++t]*2**24+65536*this[++t]+256*this[++t]+r)}),l.prototype.readFloatLE=function(t,e){return t>>>=0,e||et(t,4,this.length),gt.read(this,t,!0,23,4)},l.prototype.readFloatBE=function(t,e){return t>>>=0,e||et(t,4,this.length),gt.read(this,t,!1,23,4)},l.prototype.readDoubleLE=function(t,e){return t>>>=0,e||et(t,8,this.length),gt.read(this,t,!0,52,8)},l.prototype.readDoubleBE=function(t,e){return t>>>=0,e||et(t,8,this.length),gt.read(this,t,!1,52,8)},l.prototype.writeUintLE=l.prototype.writeUIntLE=function(t,e,r,i){t=+t,e>>>=0,r>>>=0,i||Tt(this,t,e,r,Math.pow(2,8*r)-1,0);let c=1,a=0;for(this[e]=255&t;++a<r&&(c*=256);)this[e+a]=t/c&255;return e+r},l.prototype.writeUintBE=l.prototype.writeUIntBE=function(t,e,r,i){t=+t,e>>>=0,r>>>=0,i||Tt(this,t,e,r,Math.pow(2,8*r)-1,0);let c=r-1,a=1;for(this[e+c]=255&t;--c>=0&&(a*=256);)this[e+c]=t/a&255;return e+r},l.prototype.writeUint8=l.prototype.writeUInt8=function(t,e,r){return t=+t,e>>>=0,r||Tt(this,t,e,1,255,0),this[e]=255&t,e+1},l.prototype.writeUint16LE=l.prototype.writeUInt16LE=function(t,e,r){return t=+t,e>>>=0,r||Tt(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},l.prototype.writeUint16BE=l.prototype.writeUInt16BE=function(t,e,r){return t=+t,e>>>=0,r||Tt(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},l.prototype.writeUint32LE=l.prototype.writeUInt32LE=function(t,e,r){return t=+t,e>>>=0,r||Tt(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},l.prototype.writeUint32BE=l.prototype.writeUInt32BE=function(t,e,r){return t=+t,e>>>=0,r||Tt(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},l.prototype.writeBigUInt64LE=y(function(t,e=0){return wt(this,t,e,BigInt(0),BigInt("0xffffffffffffffff"))}),l.prototype.writeBigUInt64BE=y(function(t,e=0){return qt(this,t,e,BigInt(0),BigInt("0xffffffffffffffff"))}),l.prototype.writeIntLE=function(t,e,r,i){if(t=+t,e>>>=0,!i){const F=Math.pow(2,8*r-1);Tt(this,t,e,r,F-1,-F)}let c=0,a=1,T=0;for(this[e]=255&t;++c<r&&(a*=256);)t<0&&0===T&&0!==this[e+c-1]&&(T=1),this[e+c]=(t/a>>0)-T&255;return e+r},l.prototype.writeIntBE=function(t,e,r,i){if(t=+t,e>>>=0,!i){const F=Math.pow(2,8*r-1);Tt(this,t,e,r,F-1,-F)}let c=r-1,a=1,T=0;for(this[e+c]=255&t;--c>=0&&(a*=256);)t<0&&0===T&&0!==this[e+c+1]&&(T=1),this[e+c]=(t/a>>0)-T&255;return e+r},l.prototype.writeInt8=function(t,e,r){return t=+t,e>>>=0,r||Tt(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},l.prototype.writeInt16LE=function(t,e,r){return t=+t,e>>>=0,r||Tt(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},l.prototype.writeInt16BE=function(t,e,r){return t=+t,e>>>=0,r||Tt(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},l.prototype.writeInt32LE=function(t,e,r){return t=+t,e>>>=0,r||Tt(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},l.prototype.writeInt32BE=function(t,e,r){return t=+t,e>>>=0,r||Tt(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},l.prototype.writeBigInt64LE=y(function(t,e=0){return wt(this,t,e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),l.prototype.writeBigInt64BE=y(function(t,e=0){return qt(this,t,e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),l.prototype.writeFloatLE=function(t,e,r){return Yt(this,t,e,!0,r)},l.prototype.writeFloatBE=function(t,e,r){return Yt(this,t,e,!1,r)},l.prototype.writeDoubleLE=function(t,e,r){return zt(this,t,e,!0,r)},l.prototype.writeDoubleBE=function(t,e,r){return zt(this,t,e,!1,r)},l.prototype.copy=function(t,e,r,i){if(!l.isBuffer(t))throw new TypeError("argument should be a Buffer");if(r||(r=0),!i&&0!==i&&(i=this.length),e>=t.length&&(e=t.length),e||(e=0),i>0&&i<r&&(i=r),i===r||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(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),t.length-e<i-r&&(i=t.length-e+r);const c=i-r;return this===t&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(e,r,i):Uint8Array.prototype.set.call(t,this.subarray(r,i),e),c},l.prototype.fill=function(t,e,r,i){if("string"==typeof t){if("string"==typeof e?(i=e,e=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===t.length){const a=t.charCodeAt(0);("utf8"===i&&a<128||"latin1"===i)&&(t=a)}}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 c;if(e>>>=0,r=void 0===r?this.length:r>>>0,t||(t=0),"number"==typeof t)for(c=e;c<r;++c)this[c]=t;else{const a=l.isBuffer(t)?t:l.from(t,i),T=a.length;if(0===T)throw new TypeError('The value "'+t+'" is invalid for argument "value"');for(c=0;c<r-e;++c)this[c+e]=a[c%T]}return this};const vt={};function Ht(n,t,e){vt[n]=class extends e{constructor(){super(),Object.defineProperty(this,"message",{value:t.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${n}]`,delete this.name}get code(){return n}set code(i){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:i,writable:!0})}toString(){return`${this.name} [${n}]: ${this.message}`}}}function ie(n){let t="",e=n.length;const r="-"===n[0]?1:0;for(;e>=r+4;e-=3)t=`_${n.slice(e-3,e)}${t}`;return`${n.slice(0,e)}${t}`}function Jt(n,t,e,r,i,c){if(n>e||n<t){const a="bigint"==typeof t?"n":"";let T;throw T=c>3?0===t||t===BigInt(0)?`>= 0${a} and < 2${a} ** ${8*(c+1)}${a}`:`>= -(2${a} ** ${8*(c+1)-1}${a}) and < 2 ** ${8*(c+1)-1}${a}`:`>= ${t}${a} and <= ${e}${a}`,new vt.ERR_OUT_OF_RANGE("value",T,n)}!function ae(n,t,e){Dt(t,"offset"),(void 0===n[t]||void 0===n[t+e])&&Nt(t,n.length-(e+1))}(r,i,c)}function Dt(n,t){if("number"!=typeof n)throw new vt.ERR_INVALID_ARG_TYPE(t,"number",n)}function Nt(n,t,e){throw Math.floor(n)!==n?(Dt(n,e),new vt.ERR_OUT_OF_RANGE(e||"offset","an integer",n)):t<0?new vt.ERR_BUFFER_OUT_OF_BOUNDS:new vt.ERR_OUT_OF_RANGE(e||"offset",`>= ${e?1:0} and <= ${t}`,n)}Ht("ERR_BUFFER_OUT_OF_BOUNDS",function(n){return n?`${n} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),Ht("ERR_INVALID_ARG_TYPE",function(n,t){return`The "${n}" argument must be of type number. Received type ${typeof t}`},TypeError),Ht("ERR_OUT_OF_RANGE",function(n,t,e){let r=`The value of "${n}" is out of range.`,i=e;return Number.isInteger(e)&&Math.abs(e)>2**32?i=ie(String(e)):"bigint"==typeof e&&(i=String(e),(e>BigInt(2)**BigInt(32)||e<-(BigInt(2)**BigInt(32)))&&(i=ie(i)),i+="n"),r+=` It must be ${t}. Received ${i}`,r},RangeError);const le=/[^+/0-9A-Za-z-_]/g;function At(n,t){let e;t=t||1/0;const r=n.length;let i=null;const c=[];for(let a=0;a<r;++a){if(e=n.charCodeAt(a),e>55295&&e<57344){if(!i){if(e>56319){(t-=3)>-1&&c.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&c.push(239,191,189);continue}i=e;continue}if(e<56320){(t-=3)>-1&&c.push(239,191,189),i=e;continue}e=65536+(i-55296<<10|e-56320)}else i&&(t-=3)>-1&&c.push(239,191,189);if(i=null,e<128){if((t-=1)<0)break;c.push(e)}else if(e<2048){if((t-=2)<0)break;c.push(e>>6|192,63&e|128)}else if(e<65536){if((t-=3)<0)break;c.push(e>>12|224,e>>6&63|128,63&e|128)}else{if(!(e<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;c.push(e>>18|240,e>>12&63|128,e>>6&63|128,63&e|128)}}return c}function oe(n){return v.toByteArray(function Gt(n){if((n=(n=n.split("=")[0]).trim().replace(le,"")).length<2)return"";for(;n.length%4!=0;)n+="=";return n}(n))}function o(n,t,e,r){let i;for(i=0;i<r&&!(i+e>=t.length||i>=n.length);++i)t[i+e]=n[i];return i}function u(n,t){return n instanceof t||null!=n&&null!=n.constructor&&null!=n.constructor.name&&n.constructor.name===t.name}function p(n){return n!=n}const h=function(){const n="0123456789abcdef",t=new Array(256);for(let e=0;e<16;++e){const r=16*e;for(let i=0;i<16;++i)t[r+i]=n[e]+n[i]}return t}();function y(n){return typeof BigInt>"u"?E:n}function E(){throw new Error("BigInt not supported")}},8461:(Bt,at)=>{at.read=function(X,v,gt,dt,z){var ot,U,l=8*z-dt-1,nt=(1<<l)-1,yt=nt>>1,rt=-7,it=gt?z-1:0,Z=gt?-1:1,C=X[v+it];for(it+=Z,ot=C&(1<<-rt)-1,C>>=-rt,rt+=l;rt>0;ot=256*ot+X[v+it],it+=Z,rt-=8);for(U=ot&(1<<-rt)-1,ot>>=-rt,rt+=dt;rt>0;U=256*U+X[v+it],it+=Z,rt-=8);if(0===ot)ot=1-yt;else{if(ot===nt)return U?NaN:1/0*(C?-1:1);U+=Math.pow(2,dt),ot-=yt}return(C?-1:1)*U*Math.pow(2,ot-dt)},at.write=function(X,v,gt,dt,z,ot){var U,l,nt,yt=8*ot-z-1,rt=(1<<yt)-1,it=rt>>1,Z=23===z?Math.pow(2,-24)-Math.pow(2,-77):0,C=dt?0:ot-1,L=dt?1:-1,D=v<0||0===v&&1/v<0?1:0;for(v=Math.abs(v),isNaN(v)||v===1/0?(l=isNaN(v)?1:0,U=rt):(U=Math.floor(Math.log(v)/Math.LN2),v*(nt=Math.pow(2,-U))<1&&(U--,nt*=2),(v+=U+it>=1?Z/nt:Z*Math.pow(2,1-it))*nt>=2&&(U++,nt/=2),U+it>=rt?(l=0,U=rt):U+it>=1?(l=(v*nt-1)*Math.pow(2,z),U+=it):(l=v*Math.pow(2,it-1)*Math.pow(2,z),U=0));z>=8;X[gt+C]=255&l,C+=L,l/=256,z-=8);for(U=U<<z|l,yt+=z;yt>0;X[gt+C]=255&U,C+=L,U/=256,yt-=8);X[gt+C-L]|=128*D}},8583:()=>{"use strict";!function(o){const u=o.performance;function p(W){u&&u.mark&&u.mark(W)}function h(W,I){u&&u.measure&&u.measure(W,I)}p("Zone");const y=o.__Zone_symbol_prefix||"__zone_symbol__";function E(W){return y+W}const n=!0===o[E("forceDuplicateZoneCheck")];if(o.Zone){if(n||"function"!=typeof o.Zone.__symbol__)throw new Error("Zone already loaded.");return o.Zone}let t=(()=>{class W{constructor(s,f){this._parent=s,this._name=f?f.name||"unnamed":"<root>",this._properties=f&&f.properties||{},this._zoneDelegate=new r(this,this._parent&&this._parent._zoneDelegate,f)}static assertZonePatched(){if(o.Promise!==St.ZoneAwarePromise)throw new Error("Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten.\nMost likely cause is that a Promise polyfill has been loaded after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. If you must load one, do so before loading zone.js.)")}static get root(){let s=W.current;for(;s.parent;)s=s.parent;return s}static get current(){return st.zone}static get currentTask(){return Ct}static __load_patch(s,f,A=!1){if(St.hasOwnProperty(s)){if(!A&&n)throw Error("Already loaded patch: "+s)}else if(!o["__Zone_disable_"+s]){const M="Zone:"+s;p(M),St[s]=f(o,W,ht),h(M,M)}}get parent(){return this._parent}get name(){return this._name}get(s){const f=this.getZoneWith(s);if(f)return f._properties[s]}getZoneWith(s){let f=this;for(;f;){if(f._properties.hasOwnProperty(s))return f;f=f._parent}return null}fork(s){if(!s)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,s)}wrap(s,f){if("function"!=typeof s)throw new Error("Expecting function got: "+s);const A=this._zoneDelegate.intercept(this,s,f),M=this;return function(){return M.runGuarded(A,this,arguments,f)}}run(s,f,A,M){st={parent:st,zone:this};try{return this._zoneDelegate.invoke(this,s,f,A,M)}finally{st=st.parent}}runGuarded(s,f=null,A,M){st={parent:st,zone:this};try{try{return this._zoneDelegate.invoke(this,s,f,A,M)}catch(_t){if(this._zoneDelegate.handleError(this,_t))throw _t}}finally{st=st.parent}}runTask(s,f,A){if(s.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(s.zone||mt).name+"; Execution: "+this.name+")");if(s.state===Y&&(s.type===kt||s.type===N))return;const M=s.state!=x;M&&s._transitionTo(x,q),s.runCount++;const _t=Ct;Ct=s,st={parent:st,zone:this};try{s.type==N&&s.data&&!s.data.isPeriodic&&(s.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,s,f,A)}catch(_){if(this._zoneDelegate.handleError(this,_))throw _}}finally{s.state!==Y&&s.state!==w&&(s.type==kt||s.data&&s.data.isPeriodic?M&&s._transitionTo(q,x):(s.runCount=0,this._updateTaskCount(s,-1),M&&s._transitionTo(Y,x,Y))),st=st.parent,Ct=_t}}scheduleTask(s){if(s.zone&&s.zone!==this){let A=this;for(;A;){if(A===s.zone)throw Error(`can not reschedule task to ${this.name} which is descendants of the original zone ${s.zone.name}`);A=A.parent}}s._transitionTo(ft,Y);const f=[];s._zoneDelegates=f,s._zone=this;try{s=this._zoneDelegate.scheduleTask(this,s)}catch(A){throw s._transitionTo(w,ft,Y),this._zoneDelegate.handleError(this,A),A}return s._zoneDelegates===f&&this._updateTaskCount(s,1),s.state==ft&&s._transitionTo(q,ft),s}scheduleMicroTask(s,f,A,M){return this.scheduleTask(new i($,s,f,A,M,void 0))}scheduleMacroTask(s,f,A,M,_t){return this.scheduleTask(new i(N,s,f,A,M,_t))}scheduleEventTask(s,f,A,M,_t){return this.scheduleTask(new i(kt,s,f,A,M,_t))}cancelTask(s){if(s.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(s.zone||mt).name+"; Execution: "+this.name+")");if(s.state===q||s.state===x){s._transitionTo(J,q,x);try{this._zoneDelegate.cancelTask(this,s)}catch(f){throw s._transitionTo(w,J),this._zoneDelegate.handleError(this,f),f}return this._updateTaskCount(s,-1),s._transitionTo(Y,J),s.runCount=0,s}}_updateTaskCount(s,f){const A=s._zoneDelegates;-1==f&&(s._zoneDelegates=null);for(let M=0;M<A.length;M++)A[M]._updateTaskCount(s.type,f)}}return W.__symbol__=E,W})();const e={name:"",onHasTask:(W,I,s,f)=>W.hasTask(s,f),onScheduleTask:(W,I,s,f)=>W.scheduleTask(s,f),onInvokeTask:(W,I,s,f,A,M)=>W.invokeTask(s,f,A,M),onCancelTask:(W,I,s,f)=>W.cancelTask(s,f)};class r{constructor(I,s,f){this._taskCounts={microTask:0,macroTask:0,eventTask:0},this.zone=I,this._parentDelegate=s,this._forkZS=f&&(f&&f.onFork?f:s._forkZS),this._forkDlgt=f&&(f.onFork?s:s._forkDlgt),this._forkCurrZone=f&&(f.onFork?this.zone:s._forkCurrZone),this._interceptZS=f&&(f.onIntercept?f:s._interceptZS),this._interceptDlgt=f&&(f.onIntercept?s:s._interceptDlgt),this._interceptCurrZone=f&&(f.onIntercept?this.zone:s._interceptCurrZone),this._invokeZS=f&&(f.onInvoke?f:s._invokeZS),this._invokeDlgt=f&&(f.onInvoke?s:s._invokeDlgt),this._invokeCurrZone=f&&(f.onInvoke?this.zone:s._invokeCurrZone),this._handleErrorZS=f&&(f.onHandleError?f:s._handleErrorZS),this._handleErrorDlgt=f&&(f.onHandleError?s:s._handleErrorDlgt),this._handleErrorCurrZone=f&&(f.onHandleError?this.zone:s._handleErrorCurrZone),this._scheduleTaskZS=f&&(f.onScheduleTask?f:s._scheduleTaskZS),this._scheduleTaskDlgt=f&&(f.onScheduleTask?s:s._scheduleTaskDlgt),this._scheduleTaskCurrZone=f&&(f.onScheduleTask?this.zone:s._scheduleTaskCurrZone),this._invokeTaskZS=f&&(f.onInvokeTask?f:s._invokeTaskZS),this._invokeTaskDlgt=f&&(f.onInvokeTask?s:s._invokeTaskDlgt),this._invokeTaskCurrZone=f&&(f.onInvokeTask?this.zone:s._invokeTaskCurrZone),this._cancelTaskZS=f&&(f.onCancelTask?f:s._cancelTaskZS),this._cancelTaskDlgt=f&&(f.onCancelTask?s:s._cancelTaskDlgt),this._cancelTaskCurrZone=f&&(f.onCancelTask?this.zone:s._cancelTaskCurrZone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;const A=f&&f.onHasTask;(A||s&&s._hasTaskZS)&&(this._hasTaskZS=A?f:e,this._hasTaskDlgt=s,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=I,f.onScheduleTask||(this._scheduleTaskZS=e,this._scheduleTaskDlgt=s,this._scheduleTaskCurrZone=this.zone),f.onInvokeTask||(this._invokeTaskZS=e,this._invokeTaskDlgt=s,this._invokeTaskCurrZone=this.zone),f.onCancelTask||(this._cancelTaskZS=e,this._cancelTaskDlgt=s,this._cancelTaskCurrZone=this.zone))}fork(I,s){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,I,s):new t(I,s)}intercept(I,s,f){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,I,s,f):s}invoke(I,s,f,A,M){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,I,s,f,A,M):s.apply(f,A)}handleError(I,s){return!this._handleErrorZS||this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,I,s)}scheduleTask(I,s){let f=s;if(this._scheduleTaskZS)this._hasTaskZS&&f._zoneDelegates.push(this._hasTaskDlgtOwner),f=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,I,s),f||(f=s);else if(s.scheduleFn)s.scheduleFn(s);else{if(s.type!=$)throw new Error("Task is missing scheduleFn.");O(s)}return f}invokeTask(I,s,f,A){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,I,s,f,A):s.callback.apply(f,A)}cancelTask(I,s){let f;if(this._cancelTaskZS)f=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,I,s);else{if(!s.cancelFn)throw Error("Task is not cancelable");f=s.cancelFn(s)}return f}hasTask(I,s){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,I,s)}catch(f){this.handleError(I,f)}}_updateTaskCount(I,s){const f=this._taskCounts,A=f[I],M=f[I]=A+s;if(M<0)throw new Error("More tasks executed then were scheduled.");0!=A&&0!=M||this.hasTask(this.zone,{microTask:f.microTask>0,macroTask:f.macroTask>0,eventTask:f.eventTask>0,change:I})}}class i{constructor(I,s,f,A,M,_t){if(this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=I,this.source=s,this.data=A,this.scheduleFn=M,this.cancelFn=_t,!f)throw new Error("callback is not defined");this.callback=f;const _=this;this.invoke=I===kt&&A&&A.useG?i.invokeTask:function(){return i.invokeTask.call(o,_,this,arguments)}}static invokeTask(I,s,f){I||(I=this),xt++;try{return I.runCount++,I.zone.runTask(I,s,f)}finally{1==xt&&k(),xt--}}get zone(){return this._zone}get state(){return this._state}cancelScheduleRequest(){this._transitionTo(Y,ft)}_transitionTo(I,s,f){if(this._state!==s&&this._state!==f)throw new Error(`${this.type} '${this.source}': can not transition to '${I}', expecting state '${s}'${f?" or '"+f+"'":""}, was '${this._state}'.`);this._state=I,I==Y&&(this._zoneDelegates=null)}toString(){return this.data&&typeof this.data.handleId<"u"?this.data.handleId.toString():Object.prototype.toString.call(this)}toJSON(){return{type:this.type,state:this.state,source:this.source,zone:this.zone.name,runCount:this.runCount}}}const c=E("setTimeout"),a=E("Promise"),T=E("then");let H,F=[],R=!1;function P(W){if(H||o[a]&&(H=o[a].resolve(0)),H){let I=H[T];I||(I=H.then),I.call(H,W)}else o[c](W,0)}function O(W){0===xt&&0===F.length&&P(k),W&&F.push(W)}function k(){if(!R){for(R=!0;F.length;){const W=F;F=[];for(let I=0;I<W.length;I++){const s=W[I];try{s.zone.runTask(s,null,null)}catch(f){ht.onUnhandledError(f)}}}ht.microtaskDrainDone(),R=!1}}const mt={name:"NO ZONE"},Y="notScheduled",ft="scheduling",q="scheduled",x="running",J="canceling",w="unknown",$="microTask",N="macroTask",kt="eventTask",St={},ht={symbol:E,currentZoneFrame:()=>st,onUnhandledError:ct,microtaskDrainDone:ct,scheduleMicroTask:O,showUncaughtError:()=>!t[E("ignoreConsoleErrorUncaughtError")],patchEventTarget:()=>[],patchOnProperties:ct,patchMethod:()=>ct,bindArguments:()=>[],patchThen:()=>ct,patchMacroTask:()=>ct,patchEventPrototype:()=>ct,isIEOrEdge:()=>!1,getGlobalObjects:()=>{},ObjectDefineProperty:()=>ct,ObjectGetOwnPropertyDescriptor:()=>{},ObjectCreate:()=>{},ArraySlice:()=>[],patchClass:()=>ct,wrapWithCurrentZone:()=>ct,filterProperties:()=>[],attachOriginToPatched:()=>ct,_redefineProperty:()=>ct,patchCallbacks:()=>ct,nativeScheduleMicroTask:P};let st={parent:null,zone:new t(null,null)},Ct=null,xt=0;function ct(){}h("Zone","Zone"),o.Zone=t}(typeof window<"u"&&window||typeof self<"u"&&self||global);const Bt=Object.getOwnPropertyDescriptor,at=Object.defineProperty,X=Object.getPrototypeOf,v=Object.create,gt=Array.prototype.slice,dt="addEventListener",z="removeEventListener",ot=Zone.__symbol__(dt),U=Zone.__symbol__(z),l="true",nt="false",yt=Zone.__symbol__("");function rt(o,u){return Zone.current.wrap(o,u)}function it(o,u,p,h,y){return Zone.current.scheduleMacroTask(o,u,p,h,y)}const Z=Zone.__symbol__,C=typeof window<"u",L=C?window:void 0,D=C&&L||"object"==typeof self&&self||global;function lt(o,u){for(let p=o.length-1;p>=0;p--)"function"==typeof o[p]&&(o[p]=rt(o[p],u+"_"+p));return o}function Et(o){return!o||!1!==o.writable&&!("function"==typeof o.get&&typeof o.set>"u")}const Pt=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope,tt=!("nw"in D)&&typeof D.process<"u"&&"[object process]"==={}.toString.call(D.process),Zt=!tt&&!Pt&&!(!C||!L.HTMLElement),$t=typeof D.process<"u"&&"[object process]"==={}.toString.call(D.process)&&!Pt&&!(!C||!L.HTMLElement),jt={},Qt=function(o){if(!(o=o||D.event))return;let u=jt[o.type];u||(u=jt[o.type]=Z("ON_PROPERTY"+o.type));const p=this||o.target||D,h=p[u];let y;if(Zt&&p===L&&"error"===o.type){const E=o;y=h&&h.call(this,E.message,E.filename,E.lineno,E.colno,E.error),!0===y&&o.preventDefault()}else y=h&&h.apply(this,arguments),null!=y&&!y&&o.preventDefault();return y};function te(o,u,p){let h=Bt(o,u);if(!h&&p&&Bt(p,u)&&(h={enumerable:!0,configurable:!0}),!h||!h.configurable)return;const y=Z("on"+u+"patched");if(o.hasOwnProperty(y)&&o[y])return;delete h.writable,delete h.value;const E=h.get,n=h.set,t=u.slice(2);let e=jt[t];e||(e=jt[t]=Z("ON_PROPERTY"+t)),h.set=function(r){let i=this;!i&&o===D&&(i=D),i&&("function"==typeof i[e]&&i.removeEventListener(t,Qt),n&&n.call(i,null),i[e]=r,"function"==typeof r&&i.addEventListener(t,Qt,!1))},h.get=function(){let r=this;if(!r&&o===D&&(r=D),!r)return null;const i=r[e];if(i)return i;if(E){let c=E.call(this);if(c)return h.set.call(this,c),"function"==typeof r.removeAttribute&&r.removeAttribute(u),c}return null},at(o,u,h),o[y]=!0}function ee(o,u,p){if(u)for(let h=0;h<u.length;h++)te(o,"on"+u[h],p);else{const h=[];for(const y in o)"on"==y.slice(0,2)&&h.push(y);for(let y=0;y<h.length;y++)te(o,h[y],p)}}const It=Z("originalInstance");function Lt(o){const u=D[o];if(!u)return;D[Z(o)]=u,D[o]=function(){const y=lt(arguments,o);switch(y.length){case 0:this[It]=new u;break;case 1:this[It]=new u(y[0]);break;case 2:this[It]=new u(y[0],y[1]);break;case 3:this[It]=new u(y[0],y[1],y[2]);break;case 4:this[It]=new u(y[0],y[1],y[2],y[3]);break;default:throw new Error("Arg list too long.")}},Rt(D[o],u);const p=new u(function(){});let h;for(h in p)"XMLHttpRequest"===o&&"responseBlob"===h||function(y){"function"==typeof p[y]?D[o].prototype[y]=function(){return this[It][y].apply(this[It],arguments)}:at(D[o].prototype,y,{set:function(E){"function"==typeof E?(this[It][y]=rt(E,o+"."+y),Rt(this[It][y],E)):this[It][y]=E},get:function(){return this[It][y]}})}(h);for(h in u)"prototype"!==h&&u.hasOwnProperty(h)&&(D[o][h]=u[h])}function bt(o,u,p){let h=o;for(;h&&!h.hasOwnProperty(u);)h=X(h);!h&&o[u]&&(h=o);const y=Z(u);let E=null;if(h&&(!(E=h[y])||!h.hasOwnProperty(y))&&(E=h[y]=h[u],Et(h&&Bt(h,u)))){const t=p(E,y,u);h[u]=function(){return t(this,arguments)},Rt(h[u],E)}return E}function ne(o,u,p){let h=null;function y(E){const n=E.data;return n.args[n.cbIdx]=function(){E.invoke.apply(this,arguments)},h.apply(n.target,n.args),E}h=bt(o,u,E=>function(n,t){const e=p(n,t);return e.cbIdx>=0&&"function"==typeof t[e.cbIdx]?it(e.name,t[e.cbIdx],e,y):E.apply(n,t)})}function Rt(o,u){o[Z("OriginalDelegate")]=u}let re=!1,Wt=!1;function ue(){if(re)return Wt;re=!0;try{const o=L.navigator.userAgent;(-1!==o.indexOf("MSIE ")||-1!==o.indexOf("Trident/")||-1!==o.indexOf("Edge/"))&&(Wt=!0)}catch{}return Wt}Zone.__load_patch("ZoneAwarePromise",(o,u,p)=>{const h=Object.getOwnPropertyDescriptor,y=Object.defineProperty,n=p.symbol,t=[],e=!0===o[n("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")],r=n("Promise"),i=n("then");p.onUnhandledError=_=>{if(p.showUncaughtError()){const g=_&&_.rejection;g?console.error("Unhandled Promise rejection:",g instanceof Error?g.message:g,"; Zone:",_.zone.name,"; Task:",_.task&&_.task.source,"; Value:",g,g instanceof Error?g.stack:void 0):console.error(_)}},p.microtaskDrainDone=()=>{for(;t.length;){const _=t.shift();try{_.zone.runGuarded(()=>{throw _.throwOriginal?_.rejection:_})}catch(g){T(g)}}};const a=n("unhandledPromiseRejectionHandler");function T(_){p.onUnhandledError(_);try{const g=u[a];"function"==typeof g&&g.call(this,_)}catch{}}function F(_){return _&&_.then}function R(_){return _}function H(_){return s.reject(_)}const P=n("state"),O=n("value"),k=n("finally"),mt=n("parentPromiseValue"),Y=n("parentPromiseState"),q=null,x=!0,J=!1;function $(_,g){return d=>{try{ht(_,g,d)}catch(m){ht(_,!1,m)}}}const N=function(){let _=!1;return function(d){return function(){_||(_=!0,d.apply(null,arguments))}}},St=n("currentTaskTrace");function ht(_,g,d){const m=N();if(_===d)throw new TypeError("Promise resolved with itself");if(_[P]===q){let b=null;try{("object"==typeof d||"function"==typeof d)&&(b=d&&d.then)}catch(S){return m(()=>{ht(_,!1,S)})(),_}if(g!==J&&d instanceof s&&d.hasOwnProperty(P)&&d.hasOwnProperty(O)&&d[P]!==q)Ct(d),ht(_,d[P],d[O]);else if(g!==J&&"function"==typeof b)try{b.call(d,m($(_,g)),m($(_,!1)))}catch(S){m(()=>{ht(_,!1,S)})()}else{_[P]=g;const S=_[O];if(_[O]=d,_[k]===k&&g===x&&(_[P]=_[Y],_[O]=_[mt]),g===J&&d instanceof Error){const B=u.currentTask&&u.currentTask.data&&u.currentTask.data.__creationTrace__;B&&y(d,St,{configurable:!0,enumerable:!1,writable:!0,value:B})}for(let B=0;B<S.length;)xt(_,S[B++],S[B++],S[B++],S[B++]);if(0==S.length&&g==J){_[P]=0;let B=d;try{throw new Error("Uncaught (in promise): "+function E(_){return _&&_.toString===Object.prototype.toString?(_.constructor&&_.constructor.name||"")+": "+JSON.stringify(_):_?_.toString():Object.prototype.toString.call(_)}(d)+(d&&d.stack?"\n"+d.stack:""))}catch(j){B=j}e&&(B.throwOriginal=!0),B.rejection=d,B.promise=_,B.zone=u.current,B.task=u.currentTask,t.push(B),p.scheduleMicroTask()}}}return _}const st=n("rejectionHandledHandler");function Ct(_){if(0===_[P]){try{const g=u[st];g&&"function"==typeof g&&g.call(this,{rejection:_[O],promise:_})}catch{}_[P]=J;for(let g=0;g<t.length;g++)_===t[g].promise&&t.splice(g,1)}}function xt(_,g,d,m,b){Ct(_);const S=_[P],B=S?"function"==typeof m?m:R:"function"==typeof b?b:H;g.scheduleMicroTask("Promise.then",()=>{try{const j=_[O],G=!!d&&k===d[k];G&&(d[mt]=j,d[Y]=S);const V=g.run(B,void 0,G&&B!==H&&B!==R?[]:[j]);ht(d,!0,V)}catch(j){ht(d,!1,j)}},d)}const W=function(){},I=o.AggregateError;class s{static toString(){return"function ZoneAwarePromise() { [native code] }"}static resolve(g){return ht(new this(null),x,g)}static reject(g){return ht(new this(null),J,g)}static any(g){if(!g||"function"!=typeof g[Symbol.iterator])return Promise.reject(new I([],"All promises were rejected"));const d=[];let m=0;try{for(let B of g)m++,d.push(s.resolve(B))}catch{return Promise.reject(new I([],"All promises were rejected"))}if(0===m)return Promise.reject(new I([],"All promises were rejected"));let b=!1;const S=[];return new s((B,j)=>{for(let G=0;G<d.length;G++)d[G].then(V=>{b||(b=!0,B(V))},V=>{S.push(V),m--,0===m&&(b=!0,j(new I(S,"All promises were rejected")))})})}static race(g){let d,m,b=new this((j,G)=>{d=j,m=G});function S(j){d(j)}function B(j){m(j)}for(let j of g)F(j)||(j=this.resolve(j)),j.then(S,B);return b}static all(g){return s.allWithCallback(g)}static allSettled(g){return(this&&this.prototype instanceof s?this:s).allWithCallback(g,{thenCallback:m=>({status:"fulfilled",value:m}),errorCallback:m=>({status:"rejected",reason:m})})}static allWithCallback(g,d){let m,b,S=new this((V,K)=>{m=V,b=K}),B=2,j=0;const G=[];for(let V of g){F(V)||(V=this.resolve(V));const K=j;try{V.then(Q=>{G[K]=d?d.thenCallback(Q):Q,B--,0===B&&m(G)},Q=>{d?(G[K]=d.errorCallback(Q),B--,0===B&&m(G)):b(Q)})}catch(Q){b(Q)}B++,j++}return B-=2,0===B&&m(G),S}constructor(g){const d=this;if(!(d instanceof s))throw new Error("Must be an instanceof Promise.");d[P]=q,d[O]=[];try{const m=N();g&&g(m($(d,x)),m($(d,J)))}catch(m){ht(d,!1,m)}}get[Symbol.toStringTag](){return"Promise"}get[Symbol.species](){return s}then(g,d){var m;let b=null===(m=this.constructor)||void 0===m?void 0:m[Symbol.species];(!b||"function"!=typeof b)&&(b=this.constructor||s);const S=new b(W),B=u.current;return this[P]==q?this[O].push(B,S,g,d):xt(this,B,S,g,d),S}catch(g){return this.then(null,g)}finally(g){var d;let m=null===(d=this.constructor)||void 0===d?void 0:d[Symbol.species];(!m||"function"!=typeof m)&&(m=s);const b=new m(W);b[k]=k;const S=u.current;return this[P]==q?this[O].push(S,b,g,g):xt(this,S,b,g,g),b}}s.resolve=s.resolve,s.reject=s.reject,s.race=s.race,s.all=s.all;const f=o[r]=o.Promise;o.Promise=s;const A=n("thenPatched");function M(_){const g=_.prototype,d=h(g,"then");if(d&&(!1===d.writable||!d.configurable))return;const m=g.then;g[i]=m,_.prototype.then=function(b,S){return new s((j,G)=>{m.call(this,j,G)}).then(b,S)},_[A]=!0}return p.patchThen=M,f&&(M(f),bt(o,"fetch",_=>function _t(_){return function(g,d){let m=_.apply(g,d);if(m instanceof s)return m;let b=m.constructor;return b[A]||M(b),m}}(_))),Promise[u.__symbol__("uncaughtPromiseErrors")]=t,s}),Zone.__load_patch("toString",o=>{const u=Function.prototype.toString,p=Z("OriginalDelegate"),h=Z("Promise"),y=Z("Error"),E=function(){if("function"==typeof this){const r=this[p];if(r)return"function"==typeof r?u.call(r):Object.prototype.toString.call(r);if(this===Promise){const i=o[h];if(i)return u.call(i)}if(this===Error){const i=o[y];if(i)return u.call(i)}}return u.call(this)};E[p]=u,Function.prototype.toString=E;const n=Object.prototype.toString;Object.prototype.toString=function(){return"function"==typeof Promise&&this instanceof Promise?"[object Promise]":n.call(this)}});let et=!1;if(typeof window<"u")try{const o=Object.defineProperty({},"passive",{get:function(){et=!0}});window.addEventListener("test",o,o),window.removeEventListener("test",o,o)}catch{et=!1}const Tt={useG:!0},wt={},qt={},Xt=new RegExp("^"+yt+"(\\w+)(true|false)$"),Yt=Z("propagationStopped");function zt(o,u){const p=(u?u(o):o)+nt,h=(u?u(o):o)+l,y=yt+p,E=yt+h;wt[o]={},wt[o][nt]=y,wt[o][l]=E}function vt(o,u,p,h){const y=h&&h.add||dt,E=h&&h.rm||z,n=h&&h.listeners||"eventListeners",t=h&&h.rmAll||"removeAllListeners",e=Z(y),r="."+y+":",a=function(O,k,mt){if(O.isRemoved)return;const Y=O.callback;let ft;"object"==typeof Y&&Y.handleEvent&&(O.callback=x=>Y.handleEvent(x),O.originalDelegate=Y);try{O.invoke(O,k,[mt])}catch(x){ft=x}const q=O.options;return q&&"object"==typeof q&&q.once&&k[E].call(k,mt.type,O.originalDelegate?O.originalDelegate:O.callback,q),ft};function T(O,k,mt){if(!(k=k||o.event))return;const Y=O||k.target||o,ft=Y[wt[k.type][mt?l:nt]];if(ft){const q=[];if(1===ft.length){const x=a(ft[0],Y,k);x&&q.push(x)}else{const x=ft.slice();for(let J=0;J<x.length&&(!k||!0!==k[Yt]);J++){const w=a(x[J],Y,k);w&&q.push(w)}}if(1===q.length)throw q[0];for(let x=0;x<q.length;x++){const J=q[x];u.nativeScheduleMicroTask(()=>{throw J})}}}const F=function(O){return T(this,O,!1)},R=function(O){return T(this,O,!0)};function H(O,k){if(!O)return!1;let mt=!0;k&&void 0!==k.useG&&(mt=k.useG);const Y=k&&k.vh;let ft=!0;k&&void 0!==k.chkDup&&(ft=k.chkDup);let q=!1;k&&void 0!==k.rt&&(q=k.rt);let x=O;for(;x&&!x.hasOwnProperty(y);)x=X(x);if(!x&&O[y]&&(x=O),!x||x[e])return!1;const J=k&&k.eventNameToString,w={},$=x[e]=x[y],N=x[Z(E)]=x[E],kt=x[Z(n)]=x[n],St=x[Z(t)]=x[t];let ht;function st(d,m){return!et&&"object"==typeof d&&d?!!d.capture:et&&m?"boolean"==typeof d?{capture:d,passive:!0}:d?"object"==typeof d&&!1!==d.passive?Object.assign(Object.assign({},d),{passive:!0}):d:{passive:!0}:d}k&&k.prepend&&(ht=x[Z(k.prepend)]=x[k.prepend]);const s=mt?function(d){if(!w.isExisting)return $.call(w.target,w.eventName,w.capture?R:F,w.options)}:function(d){return $.call(w.target,w.eventName,d.invoke,w.options)},f=mt?function(d){if(!d.isRemoved){const m=wt[d.eventName];let b;m&&(b=m[d.capture?l:nt]);const S=b&&d.target[b];if(S)for(let B=0;B<S.length;B++)if(S[B]===d){S.splice(B,1),d.isRemoved=!0,0===S.length&&(d.allRemoved=!0,d.target[b]=null);break}}if(d.allRemoved)return N.call(d.target,d.eventName,d.capture?R:F,d.options)}:function(d){return N.call(d.target,d.eventName,d.invoke,d.options)},M=k&&k.diff?k.diff:function(d,m){const b=typeof m;return"function"===b&&d.callback===m||"object"===b&&d.originalDelegate===m},_t=Zone[Z("UNPATCHED_EVENTS")],_=o[Z("PASSIVE_EVENTS")],g=function(d,m,b,S,B=!1,j=!1){return function(){const G=this||o;let V=arguments[0];k&&k.transferEventName&&(V=k.transferEventName(V));let K=arguments[1];if(!K)return d.apply(this,arguments);if(tt&&"uncaughtException"===V)return d.apply(this,arguments);let Q=!1;if("function"!=typeof K){if(!K.handleEvent)return d.apply(this,arguments);Q=!0}if(Y&&!Y(d,K,G,arguments))return;const Ot=et&&!!_&&-1!==_.indexOf(V),Ft=st(arguments[2],Ot);if(_t)for(let Mt=0;Mt<_t.length;Mt++)if(V===_t[Mt])return Ot?d.call(G,V,K,Ft):d.apply(this,arguments);const pe=!!Ft&&("boolean"==typeof Ft||Ft.capture),ye=!(!Ft||"object"!=typeof Ft)&&Ft.once,Te=Zone.current;let de=wt[V];de||(zt(V,J),de=wt[V]);const Ee=de[pe?l:nt];let se,Vt=G[Ee],_e=!1;if(Vt){if(_e=!0,ft)for(let Mt=0;Mt<Vt.length;Mt++)if(M(Vt[Mt],K))return}else Vt=G[Ee]=[];const ge=G.constructor.name,me=qt[ge];me&&(se=me[V]),se||(se=ge+m+(J?J(V):V)),w.options=Ft,ye&&(w.options.once=!1),w.target=G,w.capture=pe,w.eventName=V,w.isExisting=_e;const Kt=mt?Tt:void 0;Kt&&(Kt.taskData=w);const Ut=Te.scheduleEventTask(se,K,Kt,b,S);return w.target=null,Kt&&(Kt.taskData=null),ye&&(Ft.once=!0),!et&&"boolean"==typeof Ut.options||(Ut.options=Ft),Ut.target=G,Ut.capture=pe,Ut.eventName=V,Q&&(Ut.originalDelegate=K),j?Vt.unshift(Ut):Vt.push(Ut),B?G:void 0}};return x[y]=g($,r,s,f,q),ht&&(x.prependListener=g(ht,".prependListener:",function(d){return ht.call(w.target,w.eventName,d.invoke,w.options)},f,q,!0)),x[E]=function(){const d=this||o;let m=arguments[0];k&&k.transferEventName&&(m=k.transferEventName(m));const b=arguments[2],S=!!b&&("boolean"==typeof b||b.capture),B=arguments[1];if(!B)return N.apply(this,arguments);if(Y&&!Y(N,B,d,arguments))return;const j=wt[m];let G;j&&(G=j[S?l:nt]);const V=G&&d[G];if(V)for(let K=0;K<V.length;K++){const Q=V[K];if(M(Q,B))return V.splice(K,1),Q.isRemoved=!0,0===V.length&&(Q.allRemoved=!0,d[G]=null,"string"==typeof m)&&(d[yt+"ON_PROPERTY"+m]=null),Q.zone.cancelTask(Q),q?d:void 0}return N.apply(this,arguments)},x[n]=function(){const d=this||o;let m=arguments[0];k&&k.transferEventName&&(m=k.transferEventName(m));const b=[],S=Ht(d,J?J(m):m);for(let B=0;B<S.length;B++){const j=S[B];b.push(j.originalDelegate?j.originalDelegate:j.callback)}return b},x[t]=function(){const d=this||o;let m=arguments[0];if(m){k&&k.transferEventName&&(m=k.transferEventName(m));const b=wt[m];if(b){const j=d[b[nt]],G=d[b[l]];if(j){const V=j.slice();for(let K=0;K<V.length;K++){const Q=V[K];this[E].call(this,m,Q.originalDelegate?Q.originalDelegate:Q.callback,Q.options)}}if(G){const V=G.slice();for(let K=0;K<V.length;K++){const Q=V[K];this[E].call(this,m,Q.originalDelegate?Q.originalDelegate:Q.callback,Q.options)}}}}else{const b=Object.keys(d);for(let S=0;S<b.length;S++){const j=Xt.exec(b[S]);let G=j&&j[1];G&&"removeListener"!==G&&this[t].call(this,G)}this[t].call(this,"removeListener")}if(q)return this},Rt(x[y],$),Rt(x[E],N),St&&Rt(x[t],St),kt&&Rt(x[n],kt),!0}let P=[];for(let O=0;O<p.length;O++)P[O]=H(p[O],h);return P}function Ht(o,u){if(!u){const E=[];for(let n in o){const t=Xt.exec(n);let e=t&&t[1];if(e&&(!u||e===u)){const r=o[n];if(r)for(let i=0;i<r.length;i++)E.push(r[i])}}return E}let p=wt[u];p||(zt(u),p=wt[u]);const h=o[p[nt]],y=o[p[l]];return h?y?h.concat(y):h.slice():y?y.slice():[]}function ie(o,u){const p=o.Event;p&&p.prototype&&u.patchMethod(p.prototype,"stopImmediatePropagation",h=>function(y,E){y[Yt]=!0,h&&h.apply(y,E)})}function ae(o,u,p,h,y){const E=Zone.__symbol__(h);if(u[E])return;const n=u[E]=u[h];u[h]=function(t,e,r){return e&&e.prototype&&y.forEach(function(i){const c=`${p}.${h}::`+i,a=e.prototype;try{if(a.hasOwnProperty(i)){const T=o.ObjectGetOwnPropertyDescriptor(a,i);T&&T.value?(T.value=o.wrapWithCurrentZone(T.value,c),o._redefineProperty(e.prototype,i,T)):a[i]&&(a[i]=o.wrapWithCurrentZone(a[i],c))}else a[i]&&(a[i]=o.wrapWithCurrentZone(a[i],c))}catch{}}),n.call(u,t,e,r)},o.attachOriginToPatched(u[h],n)}function Jt(o,u,p){if(!p||0===p.length)return u;const h=p.filter(E=>E.target===o);if(!h||0===h.length)return u;const y=h[0].ignoreProperties;return u.filter(E=>-1===y.indexOf(E))}function Dt(o,u,p,h){o&&ee(o,Jt(o,u,p),h)}function Nt(o){return Object.getOwnPropertyNames(o).filter(u=>u.startsWith("on")&&u.length>2).map(u=>u.substring(2))}Zone.__load_patch("util",(o,u,p)=>{const h=Nt(o);p.patchOnProperties=ee,p.patchMethod=bt,p.bindArguments=lt,p.patchMacroTask=ne;const y=u.__symbol__("BLACK_LISTED_EVENTS"),E=u.__symbol__("UNPATCHED_EVENTS");o[E]&&(o[y]=o[E]),o[y]&&(u[y]=u[E]=o[y]),p.patchEventPrototype=ie,p.patchEventTarget=vt,p.isIEOrEdge=ue,p.ObjectDefineProperty=at,p.ObjectGetOwnPropertyDescriptor=Bt,p.ObjectCreate=v,p.ArraySlice=gt,p.patchClass=Lt,p.wrapWithCurrentZone=rt,p.filterProperties=Jt,p.attachOriginToPatched=Rt,p._redefineProperty=Object.defineProperty,p.patchCallbacks=ae,p.getGlobalObjects=()=>({globalSources:qt,zoneSymbolEventNames:wt,eventNames:h,isBrowser:Zt,isMix:$t,isNode:tt,TRUE_STR:l,FALSE_STR:nt,ZONE_SYMBOL_PREFIX:yt,ADD_EVENT_LISTENER_STR:dt,REMOVE_EVENT_LISTENER_STR:z})});const Gt=Z("zoneTask");function At(o,u,p,h){let y=null,E=null;p+=h;const n={};function t(r){const i=r.data;return i.args[0]=function(){return r.invoke.apply(this,arguments)},i.handleId=y.apply(o,i.args),r}function e(r){return E.call(o,r.data.handleId)}y=bt(o,u+=h,r=>function(i,c){if("function"==typeof c[0]){const a={isPeriodic:"Interval"===h,delay:"Timeout"===h||"Interval"===h?c[1]||0:void 0,args:c},T=c[0];c[0]=function(){try{return T.apply(this,arguments)}finally{a.isPeriodic||("number"==typeof a.handleId?delete n[a.handleId]:a.handleId&&(a.handleId[Gt]=null))}};const F=it(u,c[0],a,t,e);if(!F)return F;const R=F.data.handleId;return"number"==typeof R?n[R]=F:R&&(R[Gt]=F),R&&R.ref&&R.unref&&"function"==typeof R.ref&&"function"==typeof R.unref&&(F.ref=R.ref.bind(R),F.unref=R.unref.bind(R)),"number"==typeof R||R?R:F}return r.apply(o,c)}),E=bt(o,p,r=>function(i,c){const a=c[0];let T;"number"==typeof a?T=n[a]:(T=a&&a[Gt],T||(T=a)),T&&"string"==typeof T.type?"notScheduled"!==T.state&&(T.cancelFn&&T.data.isPeriodic||0===T.runCount)&&("number"==typeof a?delete n[a]:a&&(a[Gt]=null),T.zone.cancelTask(T)):r.apply(o,c)})}Zone.__load_patch("legacy",o=>{const u=o[Zone.__symbol__("legacyPatch")];u&&u()}),Zone.__load_patch("queueMicrotask",(o,u,p)=>{p.patchMethod(o,"queueMicrotask",h=>function(y,E){u.current.scheduleMicroTask("queueMicrotask",E[0])})}),Zone.__load_patch("timers",o=>{const u="set",p="clear";At(o,u,p,"Timeout"),At(o,u,p,"Interval"),At(o,u,p,"Immediate")}),Zone.__load_patch("requestAnimationFrame",o=>{At(o,"request","cancel","AnimationFrame"),At(o,"mozRequest","mozCancel","AnimationFrame"),At(o,"webkitRequest","webkitCancel","AnimationFrame")}),Zone.__load_patch("blocking",(o,u)=>{const p=["alert","prompt","confirm"];for(let h=0;h<p.length;h++)bt(o,p[h],(E,n,t)=>function(e,r){return u.current.run(E,o,r,t)})}),Zone.__load_patch("EventTarget",(o,u,p)=>{(function oe(o,u){u.patchEventPrototype(o,u)})(o,p),function he(o,u){if(Zone[u.symbol("patchEventTarget")])return;const{eventNames:p,zoneSymbolEventNames:h,TRUE_STR:y,FALSE_STR:E,ZONE_SYMBOL_PREFIX:n}=u.getGlobalObjects();for(let e=0;e<p.length;e++){const r=p[e],a=n+(r+E),T=n+(r+y);h[r]={},h[r][E]=a,h[r][y]=T}const t=o.EventTarget;t&&t.prototype&&u.patchEventTarget(o,u,[t&&t.prototype])}(o,p);const h=o.XMLHttpRequestEventTarget;h&&h.prototype&&p.patchEventTarget(o,p,[h.prototype])}),Zone.__load_patch("MutationObserver",(o,u,p)=>{Lt("MutationObserver"),Lt("WebKitMutationObserver")}),Zone.__load_patch("IntersectionObserver",(o,u,p)=>{Lt("IntersectionObserver")}),Zone.__load_patch("FileReader",(o,u,p)=>{Lt("FileReader")}),Zone.__load_patch("on_property",(o,u,p)=>{!function le(o,u){if(tt&&!$t||Zone[o.symbol("patchEvents")])return;const p=u.__Zone_ignore_on_properties;let h=[];if(Zt){const y=window;h=h.concat(["Document","SVGElement","Element","HTMLElement","HTMLBodyElement","HTMLMediaElement","HTMLFrameSetElement","HTMLFrameElement","HTMLIFrameElement","HTMLMarqueeElement","Worker"]);const E=function ce(){try{const o=L.navigator.userAgent;if(-1!==o.indexOf("MSIE ")||-1!==o.indexOf("Trident/"))return!0}catch{}return!1}()?[{target:y,ignoreProperties:["error"]}]:[];Dt(y,Nt(y),p&&p.concat(E),X(y))}h=h.concat(["XMLHttpRequest","XMLHttpRequestEventTarget","IDBIndex","IDBRequest","IDBOpenDBRequest","IDBDatabase","IDBTransaction","IDBCursor","WebSocket"]);for(let y=0;y<h.length;y++){const E=u[h[y]];E&&E.prototype&&Dt(E.prototype,Nt(E.prototype),p)}}(p,o)}),Zone.__load_patch("customElements",(o,u,p)=>{!function fe(o,u){const{isBrowser:p,isMix:h}=u.getGlobalObjects();(p||h)&&o.customElements&&"customElements"in o&&u.patchCallbacks(u,o.customElements,"customElements","define",["connectedCallback","disconnectedCallback","adoptedCallback","attributeChangedCallback"])}(o,p)}),Zone.__load_patch("XHR",(o,u)=>{!function e(r){const i=r.XMLHttpRequest;if(!i)return;const c=i.prototype;let T=c[ot],F=c[U];if(!T){const w=r.XMLHttpRequestEventTarget;if(w){const $=w.prototype;T=$[ot],F=$[U]}}const R="readystatechange",H="scheduled";function P(w){const $=w.data,N=$.target;N[E]=!1,N[t]=!1;const kt=N[y];T||(T=N[ot],F=N[U]),kt&&F.call(N,R,kt);const St=N[y]=()=>{if(N.readyState===N.DONE)if(!$.aborted&&N[E]&&w.state===H){const st=N[u.__symbol__("loadfalse")];if(0!==N.status&&st&&st.length>0){const Ct=w.invoke;w.invoke=function(){const xt=N[u.__symbol__("loadfalse")];for(let ct=0;ct<xt.length;ct++)xt[ct]===w&&xt.splice(ct,1);!$.aborted&&w.state===H&&Ct.call(w)},st.push(w)}else w.invoke()}else!$.aborted&&!1===N[E]&&(N[t]=!0)};return T.call(N,R,St),N[p]||(N[p]=w),x.apply(N,$.args),N[E]=!0,w}function O(){}function k(w){const $=w.data;return $.aborted=!0,J.apply($.target,$.args)}const mt=bt(c,"open",()=>function(w,$){return w[h]=0==$[2],w[n]=$[1],mt.apply(w,$)}),ft=Z("fetchTaskAborting"),q=Z("fetchTaskScheduling"),x=bt(c,"send",()=>function(w,$){if(!0===u.current[q]||w[h])return x.apply(w,$);{const N={target:w,url:w[n],isPeriodic:!1,args:$,aborted:!1},kt=it("XMLHttpRequest.send",O,N,P,k);w&&!0===w[t]&&!N.aborted&&kt.state===H&&kt.invoke()}}),J=bt(c,"abort",()=>function(w,$){const N=function a(w){return w[p]}(w);if(N&&"string"==typeof N.type){if(null==N.cancelFn||N.data&&N.data.aborted)return;N.zone.cancelTask(N)}else if(!0===u.current[ft])return J.apply(w,$)})}(o);const p=Z("xhrTask"),h=Z("xhrSync"),y=Z("xhrListener"),E=Z("xhrScheduled"),n=Z("xhrURL"),t=Z("xhrErrorBeforeScheduled")}),Zone.__load_patch("geolocation",o=>{o.navigator&&o.navigator.geolocation&&function ut(o,u){const p=o.constructor.name;for(let h=0;h<u.length;h++){const y=u[h],E=o[y];if(E){if(!Et(Bt(o,y)))continue;o[y]=(t=>{const e=function(){return t.apply(this,lt(arguments,p+"."+y))};return Rt(e,t),e})(E)}}}(o.navigator.geolocation,["getCurrentPosition","watchPosition"])}),Zone.__load_patch("PromiseRejectionEvent",(o,u)=>{function p(h){return function(y){Ht(o,h).forEach(n=>{const t=o.PromiseRejectionEvent;if(t){const e=new t(h,{promise:y.promise,reason:y.rejection});n.invoke(e)}})}}o.PromiseRejectionEvent&&(u[Z("unhandledPromiseRejectionHandler")]=p("unhandledrejection"),u[Z("rejectionHandledHandler")]=p("rejectionhandled"))})}},Bt=>{var at=v=>Bt(Bt.s=v);at(8583),at(7435)}]);