@ngageoint/mage.web-app
Version:
The MAGE web-app is the UI for interacting with the MAGE service in a web browser.
1 lines • 60.8 kB
JavaScript
(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[429],{22061:(Xe,ke,K)=>{"use strict";K(88583),window.global=window,window.process={browser:!0},window.Buffer=window.Buffer||K(93172).lW},5343:(Xe,ke)=>{"use strict";ke.byteLength=function se(g){var L=Y(g),U=L[1];return 3*(L[0]+U)/4-U},ke.toByteArray=function Ee(g){var L,Ie,$=Y(g),U=$[0],Se=$[1],fe=new Pe(function l(g,L,$){return 3*(L+$)/4-$}(0,U,Se)),Ce=0,He=Se>0?U-4:U;for(Ie=0;Ie<He;Ie+=4)L=N[g.charCodeAt(Ie)]<<18|N[g.charCodeAt(Ie+1)]<<12|N[g.charCodeAt(Ie+2)]<<6|N[g.charCodeAt(Ie+3)],fe[Ce++]=L>>16&255,fe[Ce++]=L>>8&255,fe[Ce++]=255&L;return 2===Se&&(L=N[g.charCodeAt(Ie)]<<2|N[g.charCodeAt(Ie+1)]>>4,fe[Ce++]=255&L),1===Se&&(L=N[g.charCodeAt(Ie)]<<10|N[g.charCodeAt(Ie+1)]<<4|N[g.charCodeAt(Ie+2)]>>2,fe[Ce++]=L>>8&255,fe[Ce++]=255&L),fe},ke.fromByteArray=function Ae(g){for(var L,$=g.length,U=$%3,Se=[],Ce=0,He=$-U;Ce<He;Ce+=16383)Se.push(me(g,Ce,Ce+16383>He?He:Ce+16383));return 1===U?Se.push(K[(L=g[$-1])>>2]+K[L<<4&63]+"=="):2===U&&Se.push(K[(L=(g[$-2]<<8)+g[$-1])>>10]+K[L>>4&63]+K[L<<2&63]+"="),Se.join("")};for(var K=[],N=[],Pe=typeof Uint8Array<"u"?Uint8Array:Array,we="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ce=0,ue=we.length;ce<ue;++ce)K[ce]=we[ce],N[we.charCodeAt(ce)]=ce;function Y(g){var L=g.length;if(L%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var $=g.indexOf("=");return-1===$&&($=L),[$,$===L?0:4-$%4]}function ae(g){return K[g>>18&63]+K[g>>12&63]+K[g>>6&63]+K[63&g]}function me(g,L,$){for(var Se=[],fe=L;fe<$;fe+=3)Se.push(ae((g[fe]<<16&16711680)+(g[fe+1]<<8&65280)+(255&g[fe+2])));return Se.join("")}N["-".charCodeAt(0)]=62,N["_".charCodeAt(0)]=63},93172:(Xe,ke,K)=>{"use strict";var Pe=K(5343),we=K(48461),ce="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;ke.lW=l,ke.h2=50;var ue=2147483647;function se(r){if(r>ue)throw new RangeError('The value "'+r+'" is invalid for option "size"');var e=new Uint8Array(r);return Object.setPrototypeOf(e,l.prototype),e}function l(r,e,t){if("number"==typeof r){if("string"==typeof e)throw new TypeError('The "string" argument must be of type string. Received type number');return Ae(r)}return Ee(r,e,t)}function Ee(r,e,t){if("string"==typeof r)return function g(r,e){if(("string"!=typeof e||""===e)&&(e="utf8"),!l.isEncoding(e))throw new TypeError("Unknown encoding: "+e);var t=0|He(r,e),n=se(t),s=n.write(r,e);return s!==t&&(n=n.slice(0,s)),n}(r,e);if(ArrayBuffer.isView(r))return function $(r){if(Me(r,Uint8Array)){var e=new Uint8Array(r);return U(e.buffer,e.byteOffset,e.byteLength)}return L(r)}(r);if(null==r)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof r);if(Me(r,ArrayBuffer)||r&&Me(r.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Me(r,SharedArrayBuffer)||r&&Me(r.buffer,SharedArrayBuffer)))return U(r,e,t);if("number"==typeof r)throw new TypeError('The "value" argument must not be of type number. Received type number');var n=r.valueOf&&r.valueOf();if(null!=n&&n!==r)return l.from(n,e,t);var s=function Se(r){if(l.isBuffer(r)){var e=0|fe(r.length),t=se(e);return 0===t.length||r.copy(t,0,0,e),t}return void 0!==r.length?"number"!=typeof r.length||at(r.length)?se(0):L(r):"Buffer"===r.type&&Array.isArray(r.data)?L(r.data):void 0}(r);if(s)return s;if(typeof Symbol<"u"&&null!=Symbol.toPrimitive&&"function"==typeof r[Symbol.toPrimitive])return l.from(r[Symbol.toPrimitive]("string"),e,t);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof r)}function ae(r){if("number"!=typeof r)throw new TypeError('"size" argument must be of type number');if(r<0)throw new RangeError('The value "'+r+'" is invalid for option "size"')}function Ae(r){return ae(r),se(r<0?0:0|fe(r))}function L(r){for(var e=r.length<0?0:0|fe(r.length),t=se(e),n=0;n<e;n+=1)t[n]=255&r[n];return t}function U(r,e,t){if(e<0||r.byteLength<e)throw new RangeError('"offset" is outside of buffer bounds');if(r.byteLength<e+(t||0))throw new RangeError('"length" is outside of buffer bounds');var n;return n=void 0===e&&void 0===t?new Uint8Array(r):void 0===t?new Uint8Array(r,e):new Uint8Array(r,e,t),Object.setPrototypeOf(n,l.prototype),n}function fe(r){if(r>=ue)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+ue.toString(16)+" bytes");return 0|r}function He(r,e){if(l.isBuffer(r))return r.length;if(ArrayBuffer.isView(r)||Me(r,ArrayBuffer))return r.byteLength;if("string"!=typeof r)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof r);var t=r.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===t)return 0;for(var s=!1;;)switch(e){case"ascii":case"latin1":case"binary":return t;case"utf8":case"utf-8":return Qe(r).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*t;case"hex":return t>>>1;case"base64":return gt(r).length;default:if(s)return n?-1:Qe(r).length;e=(""+e).toLowerCase(),s=!0}}function Ie(r,e,t){var n=!1;if((void 0===e||e<0)&&(e=0),e>this.length||((void 0===t||t>this.length)&&(t=this.length),t<=0)||(t>>>=0)<=(e>>>=0))return"";for(r||(r="utf8");;)switch(r){case"hex":return ot(this,e,t);case"utf8":case"utf-8":return ze(this,e,t);case"ascii":return Ze(this,e,t);case"latin1":case"binary":return yt(this,e,t);case"base64":return Be(this,e,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return kt(this,e,t);default:if(n)throw new TypeError("Unknown encoding: "+r);r=(r+"").toLowerCase(),n=!0}}function je(r,e,t){var n=r[e];r[e]=r[t],r[t]=n}function Ye(r,e,t,n,s){if(0===r.length)return-1;if("string"==typeof t?(n=t,t=0):t>2147483647?t=2147483647:t<-2147483648&&(t=-2147483648),at(t=+t)&&(t=s?0:r.length-1),t<0&&(t=r.length+t),t>=r.length){if(s)return-1;t=r.length-1}else if(t<0){if(!s)return-1;t=0}if("string"==typeof e&&(e=l.from(e,n)),l.isBuffer(e))return 0===e.length?-1:Je(r,e,t,n,s);if("number"==typeof e)return e&=255,"function"==typeof Uint8Array.prototype.indexOf?s?Uint8Array.prototype.indexOf.call(r,e,t):Uint8Array.prototype.lastIndexOf.call(r,e,t):Je(r,[e],t,n,s);throw new TypeError("val must be string, number or Buffer")}function Je(r,e,t,n,s){var oe,d=1,E=r.length,j=e.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(r.length<2||e.length<2)return-1;d=2,E/=2,j/=2,t/=2}function te(Ve,ut){return 1===d?Ve[ut]:Ve.readUInt16BE(ut*d)}if(s){var he=-1;for(oe=t;oe<E;oe++)if(te(r,oe)===te(e,-1===he?0:oe-he)){if(-1===he&&(he=oe),oe-he+1===j)return he*d}else-1!==he&&(oe-=oe-he),he=-1}else for(t+j>E&&(t=E-j),oe=t;oe>=0;oe--){for(var le=!0,tt=0;tt<j;tt++)if(te(r,oe+tt)!==te(e,tt)){le=!1;break}if(le)return oe}return-1}function ft(r,e,t,n){t=Number(t)||0;var s=r.length-t;n?(n=Number(n))>s&&(n=s):n=s;var d=e.length;n>d/2&&(n=d/2);for(var E=0;E<n;++E){var j=parseInt(e.substr(2*E,2),16);if(at(j))return E;r[t+E]=j}return E}function Ke(r,e,t,n){return et(Qe(e,r.length-t),r,t,n)}function ht(r,e,t,n){return et(function xt(r){for(var e=[],t=0;t<r.length;++t)e.push(255&r.charCodeAt(t));return e}(e),r,t,n)}function pt(r,e,t,n){return et(gt(e),r,t,n)}function dt(r,e,t,n){return et(function _t(r,e){for(var t,n,d=[],E=0;E<r.length&&!((e-=2)<0);++E)n=(t=r.charCodeAt(E))>>8,d.push(t%256),d.push(n);return d}(e,r.length-t),r,t,n)}function Be(r,e,t){return Pe.fromByteArray(0===e&&t===r.length?r:r.slice(e,t))}function ze(r,e,t){t=Math.min(r.length,t);for(var n=[],s=e;s<t;){var te,oe,he,le,d=r[s],E=null,j=d>239?4:d>223?3:d>191?2:1;if(s+j<=t)switch(j){case 1:d<128&&(E=d);break;case 2:128==(192&(te=r[s+1]))&&(le=(31&d)<<6|63&te)>127&&(E=le);break;case 3:oe=r[s+2],128==(192&(te=r[s+1]))&&128==(192&oe)&&(le=(15&d)<<12|(63&te)<<6|63&oe)>2047&&(le<55296||le>57343)&&(E=le);break;case 4:oe=r[s+2],he=r[s+3],128==(192&(te=r[s+1]))&&128==(192&oe)&&128==(192&he)&&(le=(15&d)<<18|(63&te)<<12|(63&oe)<<6|63&he)>65535&&le<1114112&&(E=le)}null===E?(E=65533,j=1):E>65535&&(n.push((E-=65536)>>>10&1023|55296),E=56320|1023&E),n.push(E),s+=j}return function vt(r){var e=r.length;if(e<=4096)return String.fromCharCode.apply(String,r);for(var t="",n=0;n<e;)t+=String.fromCharCode.apply(String,r.slice(n,n+=4096));return t}(n)}function Ze(r,e,t){var n="";t=Math.min(r.length,t);for(var s=e;s<t;++s)n+=String.fromCharCode(127&r[s]);return n}function yt(r,e,t){var n="";t=Math.min(r.length,t);for(var s=e;s<t;++s)n+=String.fromCharCode(r[s]);return n}function ot(r,e,t){var n=r.length;(!e||e<0)&&(e=0),(!t||t<0||t>n)&&(t=n);for(var s="",d=e;d<t;++d)s+=ct[r[d]];return s}function kt(r,e,t){for(var n=r.slice(e,t),s="",d=0;d<n.length-1;d+=2)s+=String.fromCharCode(n[d]+256*n[d+1]);return s}function Te(r,e,t){if(r%1!=0||r<0)throw new RangeError("offset is not uint");if(r+e>t)throw new RangeError("Trying to access beyond buffer length")}function _e(r,e,t,n,s,d){if(!l.isBuffer(r))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>s||e<d)throw new RangeError('"value" argument is out of bounds');if(t+n>r.length)throw new RangeError("Index out of range")}function Et(r,e,t,n,s,d){if(t+n>r.length)throw new RangeError("Index out of range");if(t<0)throw new RangeError("Index out of range")}function De(r,e,t,n,s){return e=+e,t>>>=0,s||Et(r,0,t,4),we.write(r,e,t,n,23,4),t+4}function it(r,e,t,n,s){return e=+e,t>>>=0,s||Et(r,0,t,8),we.write(r,e,t,n,52,8),t+8}!(l.TYPED_ARRAY_SUPPORT=function Y(){try{var r=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(r,e),42===r.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(r,e,t){return Ee(r,e,t)},Object.setPrototypeOf(l.prototype,Uint8Array.prototype),Object.setPrototypeOf(l,Uint8Array),l.alloc=function(r,e,t){return function me(r,e,t){return ae(r),r<=0?se(r):void 0!==e?"string"==typeof t?se(r).fill(e,t):se(r).fill(e):se(r)}(r,e,t)},l.allocUnsafe=function(r){return Ae(r)},l.allocUnsafeSlow=function(r){return Ae(r)},l.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==l.prototype},l.compare=function(e,t){if(Me(e,Uint8Array)&&(e=l.from(e,e.offset,e.byteLength)),Me(t,Uint8Array)&&(t=l.from(t,t.offset,t.byteLength)),!l.isBuffer(e)||!l.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var n=e.length,s=t.length,d=0,E=Math.min(n,s);d<E;++d)if(e[d]!==t[d]){n=e[d],s=t[d];break}return n<s?-1:s<n?1:0},l.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},l.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return l.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var s=l.allocUnsafe(t),d=0;for(n=0;n<e.length;++n){var E=e[n];if(Me(E,Uint8Array))d+E.length>s.length?l.from(E).copy(s,d):Uint8Array.prototype.set.call(s,E,d);else{if(!l.isBuffer(E))throw new TypeError('"list" argument must be an Array of Buffers');E.copy(s,d)}d+=E.length}return s},l.byteLength=He,l.prototype._isBuffer=!0,l.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)je(this,t,t+1);return this},l.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)je(this,t,t+3),je(this,t+1,t+2);return this},l.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)je(this,t,t+7),je(this,t+1,t+6),je(this,t+2,t+5),je(this,t+3,t+4);return this},l.prototype.toLocaleString=l.prototype.toString=function(){var e=this.length;return 0===e?"":0===arguments.length?ze(this,0,e):Ie.apply(this,arguments)},l.prototype.equals=function(e){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===l.compare(this,e)},l.prototype.inspect=function(){var e="",t=ke.h2;return e=this.toString("hex",0,t).replace(/(.{2})/g,"$1 ").trim(),this.length>t&&(e+=" ... "),"<Buffer "+e+">"},ce&&(l.prototype[ce]=l.prototype.inspect),l.prototype.compare=function(e,t,n,s,d){if(Me(e,Uint8Array)&&(e=l.from(e,e.offset,e.byteLength)),!l.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===s&&(s=0),void 0===d&&(d=this.length),t<0||n>e.length||s<0||d>this.length)throw new RangeError("out of range index");if(s>=d&&t>=n)return 0;if(s>=d)return-1;if(t>=n)return 1;if(this===e)return 0;for(var E=(d>>>=0)-(s>>>=0),j=(n>>>=0)-(t>>>=0),te=Math.min(E,j),oe=this.slice(s,d),he=e.slice(t,n),le=0;le<te;++le)if(oe[le]!==he[le]){E=oe[le],j=he[le];break}return E<j?-1:j<E?1:0},l.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},l.prototype.indexOf=function(e,t,n){return Ye(this,e,t,n,!0)},l.prototype.lastIndexOf=function(e,t,n){return Ye(this,e,t,n,!1)},l.prototype.write=function(e,t,n,s){if(void 0===t)s="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)s=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(n)?(n>>>=0,void 0===s&&(s="utf8")):(s=n,n=void 0)}var d=this.length-t;if((void 0===n||n>d)&&(n=d),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");s||(s="utf8");for(var E=!1;;)switch(s){case"hex":return ft(this,e,t,n);case"utf8":case"utf-8":return Ke(this,e,t,n);case"ascii":case"latin1":case"binary":return ht(this,e,t,n);case"base64":return pt(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return dt(this,e,t,n);default:if(E)throw new TypeError("Unknown encoding: "+s);s=(""+s).toLowerCase(),E=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},l.prototype.slice=function(e,t){var n=this.length;(e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e);var s=this.subarray(e,t);return Object.setPrototypeOf(s,l.prototype),s},l.prototype.readUintLE=l.prototype.readUIntLE=function(e,t,n){e>>>=0,t>>>=0,n||Te(e,t,this.length);for(var s=this[e],d=1,E=0;++E<t&&(d*=256);)s+=this[e+E]*d;return s},l.prototype.readUintBE=l.prototype.readUIntBE=function(e,t,n){e>>>=0,t>>>=0,n||Te(e,t,this.length);for(var s=this[e+--t],d=1;t>0&&(d*=256);)s+=this[e+--t]*d;return s},l.prototype.readUint8=l.prototype.readUInt8=function(e,t){return e>>>=0,t||Te(e,1,this.length),this[e]},l.prototype.readUint16LE=l.prototype.readUInt16LE=function(e,t){return e>>>=0,t||Te(e,2,this.length),this[e]|this[e+1]<<8},l.prototype.readUint16BE=l.prototype.readUInt16BE=function(e,t){return e>>>=0,t||Te(e,2,this.length),this[e]<<8|this[e+1]},l.prototype.readUint32LE=l.prototype.readUInt32LE=function(e,t){return e>>>=0,t||Te(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},l.prototype.readUint32BE=l.prototype.readUInt32BE=function(e,t){return e>>>=0,t||Te(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},l.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||Te(e,t,this.length);for(var s=this[e],d=1,E=0;++E<t&&(d*=256);)s+=this[e+E]*d;return s>=(d*=128)&&(s-=Math.pow(2,8*t)),s},l.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||Te(e,t,this.length);for(var s=t,d=1,E=this[e+--s];s>0&&(d*=256);)E+=this[e+--s]*d;return E>=(d*=128)&&(E-=Math.pow(2,8*t)),E},l.prototype.readInt8=function(e,t){return e>>>=0,t||Te(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},l.prototype.readInt16LE=function(e,t){e>>>=0,t||Te(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt16BE=function(e,t){e>>>=0,t||Te(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt32LE=function(e,t){return e>>>=0,t||Te(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},l.prototype.readInt32BE=function(e,t){return e>>>=0,t||Te(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},l.prototype.readFloatLE=function(e,t){return e>>>=0,t||Te(e,4,this.length),we.read(this,e,!0,23,4)},l.prototype.readFloatBE=function(e,t){return e>>>=0,t||Te(e,4,this.length),we.read(this,e,!1,23,4)},l.prototype.readDoubleLE=function(e,t){return e>>>=0,t||Te(e,8,this.length),we.read(this,e,!0,52,8)},l.prototype.readDoubleBE=function(e,t){return e>>>=0,t||Te(e,8,this.length),we.read(this,e,!1,52,8)},l.prototype.writeUintLE=l.prototype.writeUIntLE=function(e,t,n,s){e=+e,t>>>=0,n>>>=0,s||_e(this,e,t,n,Math.pow(2,8*n)-1,0);var E=1,j=0;for(this[t]=255&e;++j<n&&(E*=256);)this[t+j]=e/E&255;return t+n},l.prototype.writeUintBE=l.prototype.writeUIntBE=function(e,t,n,s){e=+e,t>>>=0,n>>>=0,s||_e(this,e,t,n,Math.pow(2,8*n)-1,0);var E=n-1,j=1;for(this[t+E]=255&e;--E>=0&&(j*=256);)this[t+E]=e/j&255;return t+n},l.prototype.writeUint8=l.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||_e(this,e,t,1,255,0),this[t]=255&e,t+1},l.prototype.writeUint16LE=l.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||_e(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},l.prototype.writeUint16BE=l.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||_e(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},l.prototype.writeUint32LE=l.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||_e(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},l.prototype.writeUint32BE=l.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||_e(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},l.prototype.writeIntLE=function(e,t,n,s){if(e=+e,t>>>=0,!s){var d=Math.pow(2,8*n-1);_e(this,e,t,n,d-1,-d)}var E=0,j=1,te=0;for(this[t]=255&e;++E<n&&(j*=256);)e<0&&0===te&&0!==this[t+E-1]&&(te=1),this[t+E]=(e/j>>0)-te&255;return t+n},l.prototype.writeIntBE=function(e,t,n,s){if(e=+e,t>>>=0,!s){var d=Math.pow(2,8*n-1);_e(this,e,t,n,d-1,-d)}var E=n-1,j=1,te=0;for(this[t+E]=255&e;--E>=0&&(j*=256);)e<0&&0===te&&0!==this[t+E+1]&&(te=1),this[t+E]=(e/j>>0)-te&255;return t+n},l.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||_e(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},l.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||_e(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},l.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||_e(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},l.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||_e(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},l.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||_e(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},l.prototype.writeFloatLE=function(e,t,n){return De(this,e,t,!0,n)},l.prototype.writeFloatBE=function(e,t,n){return De(this,e,t,!1,n)},l.prototype.writeDoubleLE=function(e,t,n){return it(this,e,t,!0,n)},l.prototype.writeDoubleBE=function(e,t,n){return it(this,e,t,!1,n)},l.prototype.copy=function(e,t,n,s){if(!l.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),!s&&0!==s&&(s=this.length),t>=e.length&&(t=e.length),t||(t=0),s>0&&s<n&&(s=n),s===n||0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(s<0)throw new RangeError("sourceEnd out of bounds");s>this.length&&(s=this.length),e.length-t<s-n&&(s=e.length-t+n);var d=s-n;return this===e&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(t,n,s):Uint8Array.prototype.set.call(e,this.subarray(n,s),t),d},l.prototype.fill=function(e,t,n,s){if("string"==typeof e){if("string"==typeof t?(s=t,t=0,n=this.length):"string"==typeof n&&(s=n,n=this.length),void 0!==s&&"string"!=typeof s)throw new TypeError("encoding must be a string");if("string"==typeof s&&!l.isEncoding(s))throw new TypeError("Unknown encoding: "+s);if(1===e.length){var d=e.charCodeAt(0);("utf8"===s&&d<128||"latin1"===s)&&(e=d)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var E;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(E=t;E<n;++E)this[E]=e;else{var j=l.isBuffer(e)?e:l.from(e,s),te=j.length;if(0===te)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(E=0;E<n-t;++E)this[E+t]=j[E%te]}return this};var mt=/[^+/0-9A-Za-z-_]/g;function Qe(r,e){e=e||1/0;for(var t,n=r.length,s=null,d=[],E=0;E<n;++E){if((t=r.charCodeAt(E))>55295&&t<57344){if(!s){if(t>56319){(e-=3)>-1&&d.push(239,191,189);continue}if(E+1===n){(e-=3)>-1&&d.push(239,191,189);continue}s=t;continue}if(t<56320){(e-=3)>-1&&d.push(239,191,189),s=t;continue}t=65536+(s-55296<<10|t-56320)}else s&&(e-=3)>-1&&d.push(239,191,189);if(s=null,t<128){if((e-=1)<0)break;d.push(t)}else if(t<2048){if((e-=2)<0)break;d.push(t>>6|192,63&t|128)}else if(t<65536){if((e-=3)<0)break;d.push(t>>12|224,t>>6&63|128,63&t|128)}else{if(!(t<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;d.push(t>>18|240,t>>12&63|128,t>>6&63|128,63&t|128)}}return d}function gt(r){return Pe.toByteArray(function st(r){if((r=(r=r.split("=")[0]).trim().replace(mt,"")).length<2)return"";for(;r.length%4!=0;)r+="=";return r}(r))}function et(r,e,t,n){for(var s=0;s<n&&!(s+t>=e.length||s>=r.length);++s)e[s+t]=r[s];return s}function Me(r,e){return r instanceof e||null!=r&&null!=r.constructor&&null!=r.constructor.name&&r.constructor.name===e.name}function at(r){return r!=r}var ct=function(){for(var r="0123456789abcdef",e=new Array(256),t=0;t<16;++t)for(var n=16*t,s=0;s<16;++s)e[n+s]=r[t]+r[s];return e}()},48461:(Xe,ke)=>{ke.read=function(K,N,Pe,we,ce){var ue,Y,se=8*ce-we-1,l=(1<<se)-1,Ee=l>>1,ae=-7,me=Pe?ce-1:0,Ae=Pe?-1:1,g=K[N+me];for(me+=Ae,ue=g&(1<<-ae)-1,g>>=-ae,ae+=se;ae>0;ue=256*ue+K[N+me],me+=Ae,ae-=8);for(Y=ue&(1<<-ae)-1,ue>>=-ae,ae+=we;ae>0;Y=256*Y+K[N+me],me+=Ae,ae-=8);if(0===ue)ue=1-Ee;else{if(ue===l)return Y?NaN:1/0*(g?-1:1);Y+=Math.pow(2,we),ue-=Ee}return(g?-1:1)*Y*Math.pow(2,ue-we)},ke.write=function(K,N,Pe,we,ce,ue){var Y,se,l,Ee=8*ue-ce-1,ae=(1<<Ee)-1,me=ae>>1,Ae=23===ce?Math.pow(2,-24)-Math.pow(2,-77):0,g=we?0:ue-1,L=we?1:-1,$=N<0||0===N&&1/N<0?1:0;for(N=Math.abs(N),isNaN(N)||N===1/0?(se=isNaN(N)?1:0,Y=ae):(Y=Math.floor(Math.log(N)/Math.LN2),N*(l=Math.pow(2,-Y))<1&&(Y--,l*=2),(N+=Y+me>=1?Ae/l:Ae*Math.pow(2,1-me))*l>=2&&(Y++,l/=2),Y+me>=ae?(se=0,Y=ae):Y+me>=1?(se=(N*l-1)*Math.pow(2,ce),Y+=me):(se=N*Math.pow(2,me-1)*Math.pow(2,ce),Y=0));ce>=8;K[Pe+g]=255&se,g+=L,se/=256,ce-=8);for(Y=Y<<ce|se,Ee+=ce;Ee>0;K[Pe+g]=255&Y,g+=L,Y/=256,Ee-=8);K[Pe+g-L]|=128*$}},88583:()=>{"use strict";!function(o){const a=o.performance;function h(z){a&&a.mark&&a.mark(z)}function c(z,x){a&&a.measure&&a.measure(z,x)}h("Zone");const p=o.__Zone_symbol_prefix||"__zone_symbol__";function _(z){return p+z}const w=!0===o[_("forceDuplicateZoneCheck")];if(o.Zone){if(w||"function"!=typeof o.Zone.__symbol__)throw new Error("Zone already loaded.");return o.Zone}let k=(()=>{class z{constructor(i,u){this._parent=i,this._name=u?u.name||"unnamed":"<root>",this._properties=u&&u.properties||{},this._zoneDelegate=new I(this,this._parent&&this._parent._zoneDelegate,u)}static assertZonePatched(){if(o.Promise!==Fe.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 i=z.current;for(;i.parent;)i=i.parent;return i}static get current(){return ne.zone}static get currentTask(){return Oe}static __load_patch(i,u,R=!1){if(Fe.hasOwnProperty(i)){if(!R&&w)throw Error("Already loaded patch: "+i)}else if(!o["__Zone_disable_"+i]){const B="Zone:"+i;h(B),Fe[i]=u(o,z,We),c(B,B)}}get parent(){return this._parent}get name(){return this._name}get(i){const u=this.getZoneWith(i);if(u)return u._properties[i]}getZoneWith(i){let u=this;for(;u;){if(u._properties.hasOwnProperty(i))return u;u=u._parent}return null}fork(i){if(!i)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,i)}wrap(i,u){if("function"!=typeof i)throw new Error("Expecting function got: "+i);const R=this._zoneDelegate.intercept(this,i,u),B=this;return function(){return B.runGuarded(R,this,arguments,u)}}run(i,u,R,B){ne={parent:ne,zone:this};try{return this._zoneDelegate.invoke(this,i,u,R,B)}finally{ne=ne.parent}}runGuarded(i,u=null,R,B){ne={parent:ne,zone:this};try{try{return this._zoneDelegate.invoke(this,i,u,R,B)}catch(Re){if(this._zoneDelegate.handleError(this,Re))throw Re}}finally{ne=ne.parent}}runTask(i,u,R){if(i.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(i.zone||ie).name+"; Execution: "+this.name+")");if(i.state===Q&&(i.type===M||i.type===X))return;const B=i.state!=xe;B&&i._transitionTo(xe,V),i.runCount++;const Re=Oe;Oe=i,ne={parent:ne,zone:this};try{i.type==X&&i.data&&!i.data.isPeriodic&&(i.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,i,u,R)}catch(m){if(this._zoneDelegate.handleError(this,m))throw m}}finally{i.state!==Q&&i.state!==be&&(i.type==M||i.data&&i.data.isPeriodic?B&&i._transitionTo(V,xe):(i.runCount=0,this._updateTaskCount(i,-1),B&&i._transitionTo(Q,xe,Q))),ne=ne.parent,Oe=Re}}scheduleTask(i){if(i.zone&&i.zone!==this){let R=this;for(;R;){if(R===i.zone)throw Error(`can not reschedule task to ${this.name} which is descendants of the original zone ${i.zone.name}`);R=R.parent}}i._transitionTo(ve,Q);const u=[];i._zoneDelegates=u,i._zone=this;try{i=this._zoneDelegate.scheduleTask(this,i)}catch(R){throw i._transitionTo(be,ve,Q),this._zoneDelegate.handleError(this,R),R}return i._zoneDelegates===u&&this._updateTaskCount(i,1),i.state==ve&&i._transitionTo(V,ve),i}scheduleMicroTask(i,u,R,B){return this.scheduleTask(new b(D,i,u,R,B,void 0))}scheduleMacroTask(i,u,R,B,Re){return this.scheduleTask(new b(X,i,u,R,B,Re))}scheduleEventTask(i,u,R,B,Re){return this.scheduleTask(new b(M,i,u,R,B,Re))}cancelTask(i){if(i.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(i.zone||ie).name+"; Execution: "+this.name+")");i._transitionTo(J,V,xe);try{this._zoneDelegate.cancelTask(this,i)}catch(u){throw i._transitionTo(be,J),this._zoneDelegate.handleError(this,u),u}return this._updateTaskCount(i,-1),i._transitionTo(Q,J),i.runCount=0,i}_updateTaskCount(i,u){const R=i._zoneDelegates;-1==u&&(i._zoneDelegates=null);for(let B=0;B<R.length;B++)R[B]._updateTaskCount(i.type,u)}}return z.__symbol__=_,z})();const A={name:"",onHasTask:(z,x,i,u)=>z.hasTask(i,u),onScheduleTask:(z,x,i,u)=>z.scheduleTask(i,u),onInvokeTask:(z,x,i,u,R,B)=>z.invokeTask(i,u,R,B),onCancelTask:(z,x,i,u)=>z.cancelTask(i,u)};class I{constructor(x,i,u){this._taskCounts={microTask:0,macroTask:0,eventTask:0},this.zone=x,this._parentDelegate=i,this._forkZS=u&&(u&&u.onFork?u:i._forkZS),this._forkDlgt=u&&(u.onFork?i:i._forkDlgt),this._forkCurrZone=u&&(u.onFork?this.zone:i._forkCurrZone),this._interceptZS=u&&(u.onIntercept?u:i._interceptZS),this._interceptDlgt=u&&(u.onIntercept?i:i._interceptDlgt),this._interceptCurrZone=u&&(u.onIntercept?this.zone:i._interceptCurrZone),this._invokeZS=u&&(u.onInvoke?u:i._invokeZS),this._invokeDlgt=u&&(u.onInvoke?i:i._invokeDlgt),this._invokeCurrZone=u&&(u.onInvoke?this.zone:i._invokeCurrZone),this._handleErrorZS=u&&(u.onHandleError?u:i._handleErrorZS),this._handleErrorDlgt=u&&(u.onHandleError?i:i._handleErrorDlgt),this._handleErrorCurrZone=u&&(u.onHandleError?this.zone:i._handleErrorCurrZone),this._scheduleTaskZS=u&&(u.onScheduleTask?u:i._scheduleTaskZS),this._scheduleTaskDlgt=u&&(u.onScheduleTask?i:i._scheduleTaskDlgt),this._scheduleTaskCurrZone=u&&(u.onScheduleTask?this.zone:i._scheduleTaskCurrZone),this._invokeTaskZS=u&&(u.onInvokeTask?u:i._invokeTaskZS),this._invokeTaskDlgt=u&&(u.onInvokeTask?i:i._invokeTaskDlgt),this._invokeTaskCurrZone=u&&(u.onInvokeTask?this.zone:i._invokeTaskCurrZone),this._cancelTaskZS=u&&(u.onCancelTask?u:i._cancelTaskZS),this._cancelTaskDlgt=u&&(u.onCancelTask?i:i._cancelTaskDlgt),this._cancelTaskCurrZone=u&&(u.onCancelTask?this.zone:i._cancelTaskCurrZone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;const R=u&&u.onHasTask;(R||i&&i._hasTaskZS)&&(this._hasTaskZS=R?u:A,this._hasTaskDlgt=i,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=x,u.onScheduleTask||(this._scheduleTaskZS=A,this._scheduleTaskDlgt=i,this._scheduleTaskCurrZone=this.zone),u.onInvokeTask||(this._invokeTaskZS=A,this._invokeTaskDlgt=i,this._invokeTaskCurrZone=this.zone),u.onCancelTask||(this._cancelTaskZS=A,this._cancelTaskDlgt=i,this._cancelTaskCurrZone=this.zone))}fork(x,i){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,x,i):new k(x,i)}intercept(x,i,u){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,x,i,u):i}invoke(x,i,u,R,B){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,x,i,u,R,B):i.apply(u,R)}handleError(x,i){return!this._handleErrorZS||this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,x,i)}scheduleTask(x,i){let u=i;if(this._scheduleTaskZS)this._hasTaskZS&&u._zoneDelegates.push(this._hasTaskDlgtOwner),u=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,x,i),u||(u=i);else if(i.scheduleFn)i.scheduleFn(i);else{if(i.type!=D)throw new Error("Task is missing scheduleFn.");v(i)}return u}invokeTask(x,i,u,R){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,x,i,u,R):i.callback.apply(u,R)}cancelTask(x,i){let u;if(this._cancelTaskZS)u=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,x,i);else{if(!i.cancelFn)throw Error("Task is not cancelable");u=i.cancelFn(i)}return u}hasTask(x,i){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,x,i)}catch(u){this.handleError(x,u)}}_updateTaskCount(x,i){const u=this._taskCounts,R=u[x],B=u[x]=R+i;if(B<0)throw new Error("More tasks executed then were scheduled.");0!=R&&0!=B||this.hasTask(this.zone,{microTask:u.microTask>0,macroTask:u.macroTask>0,eventTask:u.eventTask>0,change:x})}}class b{constructor(x,i,u,R,B,Re){if(this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=x,this.source=i,this.data=R,this.scheduleFn=B,this.cancelFn=Re,!u)throw new Error("callback is not defined");this.callback=u;const m=this;this.invoke=x===M&&R&&R.useG?b.invokeTask:function(){return b.invokeTask.call(o,m,this,arguments)}}static invokeTask(x,i,u){x||(x=this),Ue++;try{return x.runCount++,x.zone.runTask(x,i,u)}finally{1==Ue&&q(),Ue--}}get zone(){return this._zone}get state(){return this._state}cancelScheduleRequest(){this._transitionTo(Q,ve)}_transitionTo(x,i,u){if(this._state!==i&&this._state!==u)throw new Error(`${this.type} '${this.source}': can not transition to '${x}', expecting state '${i}'${u?" or '"+u+"'":""}, was '${this._state}'.`);this._state=x,x==Q&&(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 G=_("setTimeout"),H=_("Promise"),W=_("then");let C,pe=[],re=!1;function v(z){if(0===Ue&&0===pe.length)if(C||o[H]&&(C=o[H].resolve(0)),C){let x=C[W];x||(x=C.then),x.call(C,q)}else o[G](q,0);z&&pe.push(z)}function q(){if(!re){for(re=!0;pe.length;){const z=pe;pe=[];for(let x=0;x<z.length;x++){const i=z[x];try{i.zone.runTask(i,null,null)}catch(u){We.onUnhandledError(u)}}}We.microtaskDrainDone(),re=!1}}const ie={name:"NO ZONE"},Q="notScheduled",ve="scheduling",V="scheduled",xe="running",J="canceling",be="unknown",D="microTask",X="macroTask",M="eventTask",Fe={},We={symbol:_,currentZoneFrame:()=>ne,onUnhandledError:de,microtaskDrainDone:de,scheduleMicroTask:v,showUncaughtError:()=>!k[_("ignoreConsoleErrorUncaughtError")],patchEventTarget:()=>[],patchOnProperties:de,patchMethod:()=>de,bindArguments:()=>[],patchThen:()=>de,patchMacroTask:()=>de,patchEventPrototype:()=>de,isIEOrEdge:()=>!1,getGlobalObjects:()=>{},ObjectDefineProperty:()=>de,ObjectGetOwnPropertyDescriptor:()=>{},ObjectCreate:()=>{},ArraySlice:()=>[],patchClass:()=>de,wrapWithCurrentZone:()=>de,filterProperties:()=>[],attachOriginToPatched:()=>de,_redefineProperty:()=>de,patchCallbacks:()=>de};let ne={parent:null,zone:new k(null,null)},Oe=null,Ue=0;function de(){}c("Zone","Zone"),o.Zone=k}(typeof window<"u"&&window||typeof self<"u"&&self||global);const ke=Object.getOwnPropertyDescriptor,K=Object.defineProperty,N=Object.getPrototypeOf,Pe=Object.create,we=Array.prototype.slice,ce="addEventListener",ue="removeEventListener",Y=Zone.__symbol__(ce),se=Zone.__symbol__(ue),l="true",Ee="false",ae=Zone.__symbol__("");function me(o,a){return Zone.current.wrap(o,a)}function Ae(o,a,h,c,p){return Zone.current.scheduleMacroTask(o,a,h,c,p)}const g=Zone.__symbol__,L=typeof window<"u",$=L?window:void 0,U=L&&$||"object"==typeof self&&self||global,fe=[null];function Ce(o,a){for(let h=o.length-1;h>=0;h--)"function"==typeof o[h]&&(o[h]=me(o[h],a+"_"+h));return o}function Ie(o){return!o||!1!==o.writable&&!("function"==typeof o.get&&typeof o.set>"u")}const je=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope,Ye=!("nw"in U)&&typeof U.process<"u"&&"[object process]"==={}.toString.call(U.process),Je=!Ye&&!je&&!(!L||!$.HTMLElement),ft=typeof U.process<"u"&&"[object process]"==={}.toString.call(U.process)&&!je&&!(!L||!$.HTMLElement),Ke={},ht=function(o){if(!(o=o||U.event))return;let a=Ke[o.type];a||(a=Ke[o.type]=g("ON_PROPERTY"+o.type));const h=this||o.target||U,c=h[a];let p;if(Je&&h===$&&"error"===o.type){const _=o;p=c&&c.call(this,_.message,_.filename,_.lineno,_.colno,_.error),!0===p&&o.preventDefault()}else p=c&&c.apply(this,arguments),null!=p&&!p&&o.preventDefault();return p};function pt(o,a,h){let c=ke(o,a);if(!c&&h&&ke(h,a)&&(c={enumerable:!0,configurable:!0}),!c||!c.configurable)return;const p=g("on"+a+"patched");if(o.hasOwnProperty(p)&&o[p])return;delete c.writable,delete c.value;const _=c.get,w=c.set,k=a.substr(2);let A=Ke[k];A||(A=Ke[k]=g("ON_PROPERTY"+k)),c.set=function(I){let b=this;!b&&o===U&&(b=U),b&&(b[A]&&b.removeEventListener(k,ht),w&&w.apply(b,fe),"function"==typeof I?(b[A]=I,b.addEventListener(k,ht,!1)):b[A]=null)},c.get=function(){let I=this;if(!I&&o===U&&(I=U),!I)return null;const b=I[A];if(b)return b;if(_){let G=_&&_.call(this);if(G)return c.set.call(this,G),"function"==typeof I.removeAttribute&&I.removeAttribute(a),G}return null},K(o,a,c),o[p]=!0}function dt(o,a,h){if(a)for(let c=0;c<a.length;c++)pt(o,"on"+a[c],h);else{const c=[];for(const p in o)"on"==p.substr(0,2)&&c.push(p);for(let p=0;p<c.length;p++)pt(o,c[p],h)}}const Be=g("originalInstance");function ze(o){const a=U[o];if(!a)return;U[g(o)]=a,U[o]=function(){const p=Ce(arguments,o);switch(p.length){case 0:this[Be]=new a;break;case 1:this[Be]=new a(p[0]);break;case 2:this[Be]=new a(p[0],p[1]);break;case 3:this[Be]=new a(p[0],p[1],p[2]);break;case 4:this[Be]=new a(p[0],p[1],p[2],p[3]);break;default:throw new Error("Arg list too long.")}},Ze(U[o],a);const h=new a(function(){});let c;for(c in h)"XMLHttpRequest"===o&&"responseBlob"===c||function(p){"function"==typeof h[p]?U[o].prototype[p]=function(){return this[Be][p].apply(this[Be],arguments)}:K(U[o].prototype,p,{set:function(_){"function"==typeof _?(this[Be][p]=me(_,o+"."+p),Ze(this[Be][p],_)):this[Be][p]=_},get:function(){return this[Be][p]}})}(c);for(c in a)"prototype"!==c&&a.hasOwnProperty(c)&&(U[o][c]=a[c])}function Le(o,a,h){let c=o;for(;c&&!c.hasOwnProperty(a);)c=N(c);!c&&o[a]&&(c=o);const p=g(a);let _=null;if(c&&(!(_=c[p])||!c.hasOwnProperty(p))&&(_=c[p]=c[a],Ie(c&&ke(c,a)))){const k=h(_,p,a);c[a]=function(){return k(this,arguments)},Ze(c[a],_)}return _}function vt(o,a,h){let c=null;function p(_){const w=_.data;return w.args[w.cbIdx]=function(){_.invoke.apply(this,arguments)},c.apply(w.target,w.args),_}c=Le(o,a,_=>function(w,k){const A=h(w,k);return A.cbIdx>=0&&"function"==typeof k[A.cbIdx]?Ae(A.name,k[A.cbIdx],A,p):_.apply(w,k)})}function Ze(o,a){o[g("OriginalDelegate")]=a}let yt=!1,ot=!1;function Te(){if(yt)return ot;yt=!0;try{const o=$.navigator.userAgent;(-1!==o.indexOf("MSIE ")||-1!==o.indexOf("Trident/")||-1!==o.indexOf("Edge/"))&&(ot=!0)}catch{}return ot}Zone.__load_patch("ZoneAwarePromise",(o,a,h)=>{const c=Object.getOwnPropertyDescriptor,p=Object.defineProperty,w=h.symbol,k=[],A=!0===o[w("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")],I=w("Promise"),b=w("then");h.onUnhandledError=m=>{if(h.showUncaughtError()){const f=m&&m.rejection;f?console.error("Unhandled Promise rejection:",f instanceof Error?f.message:f,"; Zone:",m.zone.name,"; Task:",m.task&&m.task.source,"; Value:",f,f instanceof Error?f.stack:void 0):console.error(m)}},h.microtaskDrainDone=()=>{for(;k.length;){const m=k.shift();try{m.zone.runGuarded(()=>{throw m.throwOriginal?m.rejection:m})}catch(f){W(f)}}};const H=w("unhandledPromiseRejectionHandler");function W(m){h.onUnhandledError(m);try{const f=a[H];"function"==typeof f&&f.call(this,m)}catch{}}function pe(m){return m&&m.then}function re(m){return m}function C(m){return i.reject(m)}const v=w("state"),q=w("value"),ie=w("finally"),Q=w("parentPromiseValue"),ve=w("parentPromiseState"),xe=null,J=!0,be=!1;function X(m,f){return y=>{try{ne(m,f,y)}catch(T){ne(m,!1,T)}}}const We=w("currentTaskTrace");function ne(m,f,y){const T=function(){let m=!1;return function(y){return function(){m||(m=!0,y.apply(null,arguments))}}}();if(m===y)throw new TypeError("Promise resolved with itself");if(m[v]===xe){let P=null;try{("object"==typeof y||"function"==typeof y)&&(P=y&&y.then)}catch(O){return T(()=>{ne(m,!1,O)})(),m}if(f!==be&&y instanceof i&&y.hasOwnProperty(v)&&y.hasOwnProperty(q)&&y[v]!==xe)Ue(y),ne(m,y[v],y[q]);else if(f!==be&&"function"==typeof P)try{P.call(y,T(X(m,f)),T(X(m,!1)))}catch(O){T(()=>{ne(m,!1,O)})()}else{m[v]=f;const O=m[q];if(m[q]=y,m[ie]===ie&&f===J&&(m[v]=m[ve],m[q]=m[Q]),f===be&&y instanceof Error){const S=a.currentTask&&a.currentTask.data&&a.currentTask.data.__creationTrace__;S&&p(y,We,{configurable:!0,enumerable:!1,writable:!0,value:S})}for(let S=0;S<O.length;)de(m,O[S++],O[S++],O[S++],O[S++]);if(0==O.length&&f==be){m[v]=0;let S=y;try{throw new Error("Uncaught (in promise): "+function _(m){return m&&m.toString===Object.prototype.toString?(m.constructor&&m.constructor.name||"")+": "+JSON.stringify(m):m?m.toString():Object.prototype.toString.call(m)}(y)+(y&&y.stack?"\n"+y.stack:""))}catch(F){S=F}A&&(S.throwOriginal=!0),S.rejection=y,S.promise=m,S.zone=a.current,S.task=a.currentTask,k.push(S),h.scheduleMicroTask()}}}return m}const Oe=w("rejectionHandledHandler");function Ue(m){if(0===m[v]){try{const f=a[Oe];f&&"function"==typeof f&&f.call(this,{rejection:m[q],promise:m})}catch{}m[v]=be;for(let f=0;f<k.length;f++)m===k[f].promise&&k.splice(f,1)}}function de(m,f,y,T,P){Ue(m);const O=m[v],S=O?"function"==typeof T?T:re:"function"==typeof P?P:C;f.scheduleMicroTask("Promise.then",()=>{try{const F=m[q],Z=!!y&&ie===y[ie];Z&&(y[Q]=F,y[ve]=O);const ee=f.run(S,void 0,Z&&S!==C&&S!==re?[]:[F]);ne(y,!0,ee)}catch(F){ne(y,!1,F)}},y)}const x=function(){};class i{static toString(){return"function ZoneAwarePromise() { [native code] }"}static resolve(f){return ne(new this(null),J,f)}static reject(f){return ne(new this(null),be,f)}static race(f){let y,T,P=new this((F,Z)=>{y=F,T=Z});function O(F){y(F)}function S(F){T(F)}for(let F of f)pe(F)||(F=this.resolve(F)),F.then(O,S);return P}static all(f){return i.allWithCallback(f)}static allSettled(f){return(this&&this.prototype instanceof i?this:i).allWithCallback(f,{thenCallback:T=>({status:"fulfilled",value:T}),errorCallback:T=>({status:"rejected",reason:T})})}static allWithCallback(f,y){let T,P,O=new this((ee,ye)=>{T=ee,P=ye}),S=2,F=0;const Z=[];for(let ee of f){pe(ee)||(ee=this.resolve(ee));const ye=F;try{ee.then(Ne=>{Z[ye]=y?y.thenCallback(Ne):Ne,S--,0===S&&T(Z)},Ne=>{y?(Z[ye]=y.errorCallback(Ne),S--,0===S&&T(Z)):P(Ne)})}catch(Ne){P(Ne)}S++,F++}return S-=2,0===S&&T(Z),O}constructor(f){const y=this;if(!(y instanceof i))throw new Error("Must be an instanceof Promise.");y[v]=xe,y[q]=[];try{f&&f(X(y,J),X(y,be))}catch(T){ne(y,!1,T)}}get[Symbol.toStringTag](){return"Promise"}get[Symbol.species](){return i}then(f,y){let T=this.constructor[Symbol.species];(!T||"function"!=typeof T)&&(T=this.constructor||i);const P=new T(x),O=a.current;return this[v]==xe?this[q].push(O,P,f,y):de(this,O,P,f,y),P}catch(f){return this.then(null,f)}finally(f){let y=this.constructor[Symbol.species];(!y||"function"!=typeof y)&&(y=i);const T=new y(x);T[ie]=ie;const P=a.current;return this[v]==xe?this[q].push(P,T,f,f):de(this,P,T,f,f),T}}i.resolve=i.resolve,i.reject=i.reject,i.race=i.race,i.all=i.all;const u=o[I]=o.Promise;o.Promise=i;const R=w("thenPatched");function B(m){const f=m.prototype,y=c(f,"then");if(y&&(!1===y.writable||!y.configurable))return;const T=f.then;f[b]=T,m.prototype.then=function(P,O){return new i((F,Z)=>{T.call(this,F,Z)}).then(P,O)},m[R]=!0}return h.patchThen=B,u&&(B(u),Le(o,"fetch",m=>function Re(m){return function(f,y){let T=m.apply(f,y);if(T instanceof i)return T;let P=T.constructor;return P[R]||B(P),T}}(m))),Promise[a.__symbol__("uncaughtPromiseErrors")]=k,i}),Zone.__load_patch("toString",o=>{const a=Function.prototype.toString,h=g("OriginalDelegate"),c=g("Promise"),p=g("Error"),_=function(){if("function"==typeof this){const I=this[h];if(I)return"function"==typeof I?a.call(I):Object.prototype.toString.call(I);if(this===Promise){const b=o[c];if(b)return a.call(b)}if(this===Error){const b=o[p];if(b)return a.call(b)}}return a.call(this)};_[h]=a,Function.prototype.toString=_;const w=Object.prototype.toString;Object.prototype.toString=function(){return"function"==typeof Promise&&this instanceof Promise?"[object Promise]":w.call(this)}});let _e=!1;if(typeof window<"u")try{const o=Object.defineProperty({},"passive",{get:function(){_e=!0}});window.addEventListener("test",o,o),window.removeEventListener("test",o,o)}catch{_e=!1}const Et={useG:!0},De={},it={},mt=new RegExp("^"+ae+"(\\w+)(true|false)$"),st=g("propagationStopped");function Qe(o,a){const h=(a?a(o):o)+Ee,c=(a?a(o):o)+l,p=ae+h,_=ae+c;De[o]={},De[o][Ee]=p,De[o][l]=_}function xt(o,a,h){const c=h&&h.add||ce,p=h&&h.rm||ue,_=h&&h.listeners||"eventListeners",w=h&&h.rmAll||"removeAllListeners",k=g(c),A="."+c+":",G=function(C,v,q){if(C.isRemoved)return;const ie=C.callback;"object"==typeof ie&&ie.handleEvent&&(C.callback=ve=>ie.handleEvent(ve),C.originalDelegate=ie),C.invoke(C,v,[q]);const Q=C.options;Q&&"object"==typeof Q&&Q.once&&v[p].call(v,q.type,C.originalDelegate?C.originalDelegate:C.callback,Q)},H=function(C){if(!(C=C||o.event))return;const v=this||C.target||o,q=v[De[C.type][Ee]];if(q)if(1===q.length)G(q[0],v,C);else{const ie=q.slice();for(let Q=0;Q<ie.length&&(!C||!0!==C[st]);Q++)G(ie[Q],v,C)}},W=function(C){if(!(C=C||o.event))return;const v=this||C.target||o,q=v[De[C.type][l]];if(q)if(1===q.length)G(q[0],v,C);else{const ie=q.slice();for(let Q=0;Q<ie.length&&(!C||!0!==C[st]);Q++)G(ie[Q],v,C)}};function pe(C,v){if(!C)return!1;let q=!0;v&&void 0!==v.useG&&(q=v.useG);const ie=v&&v.vh;let Q=!0;v&&void 0!==v.chkDup&&(Q=v.chkDup);let ve=!1;v&&void 0!==v.rt&&(ve=v.rt);let V=C;for(;V&&!V.hasOwnProperty(c);)V=N(V);if(!V&&C[c]&&(V=C),!V||V[k])return!1;const xe=v&&v.eventNameToString,J={},be=V[k]=V[c],D=V[g(p)]=V[p],X=V[g(_)]=V[_],M=V[g(w)]=V[w];let Fe;function We(f,y){return!_e&&"object"==typeof f&&f?!!f.capture:_e&&y?"boolean"==typeof f?{capture:f,passive:!0}:f?"object"==typeof f&&!1!==f.passive?Object.assign(Object.assign({},f),{passive:!0}):f:{passive:!0}:f}v&&v.prepend&&(Fe=V[g(v.prepend)]=V[v.prepend]);const x=q?function(f){if(!J.isExisting)return be.call(J.target,J.eventName,J.capture?W:H,J.options)}:function(f){return be.call(J.target,J.eventName,f.invoke,J.options)},i=q?function(f){if(!f.isRemoved){const y=De[f.eventName];let T;y&&(T=y[f.capture?l:Ee]);const P=T&&f.target[T];if(P)for(let O=0;O<P.length;O++)if(P[O]===f){P.splice(O,1),f.isRemoved=!0,0===P.length&&(f.allRemoved=!0,f.target[T]=null);break}}if(f.allRemoved)return D.call(f.target,f.eventName,f.capture?W:H,f.options)}:function(f){return D.call(f.target,f.eventName,f.invoke,f.options)},R=v&&v.diff?v.diff:function(f,y){const T=typeof y;return"function"===T&&f.callback===y||"object"===T&&f.originalDelegate===y},B=Zone[g("UNPATCHED_EVENTS")],Re=o[g("PASSIVE_EVENTS")],m=function(f,y,T,P,O=!1,S=!1){return function(){const F=this||o;let Z=arguments[0];v&&v.transferEventName&&(Z=v.transferEventName(Z));let ee=arguments[1];if(!ee)return f.apply(this,arguments);if(Ye&&"uncaughtException"===Z)return f.apply(this,arguments);let ye=!1;if("function"!=typeof ee){if(!ee.handleEvent)return f.apply(this,arguments);ye=!0}if(ie&&!ie(f,ee,F,arguments))return;const Ne=_e&&!!Re&&-1!==Re.indexOf(Z),Ge=We(arguments[2],Ne);if(B)for(let $e=0;$e<B.length;$e++)if(Z===B[$e])return Ne?f.call(F,Z,ee,Ge):f.apply(this,arguments);const bt=!!Ge&&("boolean"==typeof Ge||Ge.capture),It=!(!Ge||"object"!=typeof Ge)&&Ge.once,Lt=Zone.current;let Ct=De[Z];Ct||(Qe(Z,xe),Ct=De[Z]);const Rt=Ct[bt?l:Ee];let Tt,nt=F[Rt],At=!1;if(nt){if(At=!0,Q)for(let $e=0;$e<nt.length;$e++)if(R(nt[$e],ee))return}else nt=F[Rt]=[];const St=F.constructor.name,Dt=it[St];Dt&&(Tt=Dt[Z]),Tt||(Tt=St+y+(xe?xe(Z):Z)),J.options=Ge,It&&(J.options.once=!1),J.target=F,J.capture=bt,J.eventName=Z,J.isExisting=At;const lt=q?Et:void 0;lt&&(lt.taskData=J);const qe=Lt.scheduleEventTask(Tt,ee,lt,T,P);return J.target=null,lt&&(lt.taskData=null),It&&(Ge.once=!0),!_e&&"boolean"==typeof qe.options||(qe.options=Ge),qe.target=F,qe.capture=bt,qe.eventName=Z,ye&&(qe.originalDelegate=ee),S?nt.unshift(qe):nt.push(qe),O?F:void 0}};return V[c]=m(be,A,x,i,ve),Fe&&(V.prependListener=m(Fe,".prependListener:",function(f){return Fe.call(J.target,J.eventName,f.invoke,J.options)},i,ve,!0)),V[p]=function(){const f=this||o;let y=arguments[0];v&&v.transferEventName&&(y=v.transferEventName(y));const T=arguments[2],P=!!T&&("boolean"==typeof T||T.capture),O=arguments[1];if(!O)return D.apply(this,arguments);if(ie&&!ie(D,O,f,arguments))return;const S=De[y];let F;S&&(F=S[P?l:Ee]);const Z=F&&f[F];if(Z)for(let ee=0;ee<Z.length;ee++){const ye=Z[ee];if(R(ye,O))return Z.splice(ee,1),ye.isRemoved=!0,0===Z.length&&(ye.allRemoved=!0,f[F]=null,"string"==typeof y)&&(f[ae+"ON_PROPERTY"+y]=null),ye.zone.cancelTask(ye),ve?f:void 0}return D.apply(this,arguments)},V[_]=function(){const f=this||o;let y=arguments[0];v&&v.transferEventName&&(y=v.transferEventName(y));const T=[],P=_t(f,xe?xe(y):y);for(let O=0;O<P.length;O++){const S=P[O];T.push(S.originalDelegate?S.originalDelegate:S.callback)}return T},V[w]=function(){const f=this||o;let y=arguments[0];if(y){v&&v.transferEventName&&(y=v.transferEventName(y));const T=De[y];if(T){const S=f[T[Ee]],F=f[T[l]];if(S){const Z=S.slice();for(let ee=0;ee<Z.length;ee++){const ye=Z[ee];this[p].call(this,y,ye.originalDelegate?ye.originalDelegate:ye.callback,ye.options)}}if(F){const Z=F.slice();for(let ee=0;ee<Z.length;ee++){const ye=Z[ee];this[p].call(this,y,ye.originalDelegate?ye.originalDelegate:ye.callback,ye.options)}}}}else{const T=Object.keys(f);for(let P=0;P<T.length;P++){const S=mt.exec(T[P]);let F=S&&S[1];F&&"removeListener"!==F&&this[w].call(this,F)}this[w].call(this,"removeListener")}if(ve)return this},Ze(V[c],be),Ze(V[p],D),M&&Ze(V[w],M),X&&Ze(V[_],X),!0}let re=[];for(let C=0;C<a.length;C++)re[C]=pe(a[C],h);return re}function _t(o,a){if(!a){const _=[];for(let w in o){const k=mt.exec(w);let A=k&&k[1];if(A&&(!a||A===a)){const I=o[w];if(I)for(let b=0;b<I.length;b++)_.push(I[b])}}return _}let h=De[a];h||(Qe(a),h=De[a]);const c=o[h[Ee]],p=o[h[l]];return c?p?c.concat(p):c.slice():p?p.slice():[]}function gt(o,a){const h=o.Event;h&&h.prototype&&a.patchMethod(h.prototype,"stopImmediatePropagation",c=>function(p,_){p[st]=!0,c&&c.apply(p,_)})}function et(o,a,h,c,p){const _=Zone.__symbol__(c);if(a[_])return;const w=a[_]=a[c];a[c]=function(k,A,I){return A&&A.prototype&&p.forEach(function(b){const G=`${h}.${c}::`+b,H=A.prototype;if(H.hasOwnProperty(b)){const W=o.ObjectGetOwnPropertyDescriptor(H,b);W&&W.value?(W.value=o.wrapWithCurrentZone(W.value,G),o._redefineProperty(A.prototype,b,W)):H[b]&&(H[b]=o.wrapWithCurrentZone(H[b],G))}else H[b]&&(H[b]=o.wrapWithCurrentZone(H[b],G))}),w.call(a,k,A,I)},o.attachOriginToPatched(a[c],w)}const ct=["absolutedeviceorientation","afterinput","afterprint","appinstalled","beforeinstallprompt","beforeprint","beforeunload","devicelight","devicemotion","deviceorientation","deviceorientationabsolute","deviceproximity","hashchange","languagechange","message","mozbeforepaint","offline","online","paint","pageshow","pagehide","popstate","rejectionhandled","storage","unhandledrejection","unload","userproximity","vrdisplayconnected","vrdi