var Yl={7267:function(wt,me){me.byteLength=function(w){var g=E(w),h=g[0],r=g[1];return 3*(h+r)/4-r},me.toByteArray=function(w){var g,h,r=E(w),H=r[0],G=r[1],le=new f((function(ce,Le,Be){return 3*(Le+Be)/4-Be})(0,H,G)),de=0,De=G>0?H-4:H;for(h=0;h>16&255,le[de++]=g>>8&255,le[de++]=255&g;return G===2&&(g=F[w.charCodeAt(h)]<<2|F[w.charCodeAt(h+1)]>>4,le[de++]=255&g),G===1&&(g=F[w.charCodeAt(h)]<<10|F[w.charCodeAt(h+1)]<<4|F[w.charCodeAt(h+2)]>>2,le[de++]=g>>8&255,le[de++]=255&g),le},me.fromByteArray=function(w){for(var g,h=w.length,r=h%3,H=[],G=16383,le=0,de=h-r;lede?de:le+G));return r===1?(g=w[h-1],H.push(P[g>>2]+P[g<<4&63]+"==")):r===2&&(g=(w[h-2]<<8)+w[h-1],H.push(P[g>>10]+P[g>>4&63]+P[g<<2&63]+"=")),H.join("")};for(var P=[],F=[],f=typeof Uint8Array<"u"?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",p=0;p<64;++p)P[p]=o[p],F[o.charCodeAt(p)]=p;function E(w){var g=w.length;if(g%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var h=w.indexOf("=");return h===-1&&(h=g),[h,h===g?0:4-h%4]}function _(w,g,h){for(var r,H,G=[],le=g;le>18&63]+P[H>>12&63]+P[H>>6&63]+P[63&H]);return G.join("")}F[45]=62,F[95]=63},44:function(wt,me,P){const F=P(7267),f=P(7986),o=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;me.Buffer=_,me.SlowBuffer=function(i){return+i!=i&&(i=0),_.alloc(+i)},me.INSPECT_MAX_BYTES=50;const p=2147483647;function E(i){if(i>p)throw new RangeError('The value "'+i+'" is invalid for option "size"');const S=new Uint8Array(i);return Object.setPrototypeOf(S,_.prototype),S}function _(i,S,I){if(typeof i=="number"){if(typeof S=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return h(i)}return w(i,S,I)}function w(i,S,I){if(typeof i=="string")return(function(be,tt){if(typeof tt=="string"&&tt!==""||(tt="utf8"),!_.isEncoding(tt))throw new TypeError("Unknown encoding: "+tt);const ae=0|le(be,tt);let ze=E(ae);const je=ze.write(be,tt);return je!==ae&&(ze=ze.slice(0,je)),ze})(i,S);if(ArrayBuffer.isView(i))return(function(be){if(j(be,Uint8Array)){const tt=new Uint8Array(be);return H(tt.buffer,tt.byteOffset,tt.byteLength)}return r(be)})(i);if(i==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof i);if(j(i,ArrayBuffer)||i&&j(i.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(j(i,SharedArrayBuffer)||i&&j(i.buffer,SharedArrayBuffer)))return H(i,S,I);if(typeof i=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const $=i.valueOf&&i.valueOf();if($!=null&&$!==i)return _.from($,S,I);const ie=(function(be){if(_.isBuffer(be)){const tt=0|G(be.length),ae=E(tt);return ae.length===0||be.copy(ae,0,0,tt),ae}return be.length!==void 0?typeof be.length!="number"||qe(be.length)?E(0):r(be):be.type==="Buffer"&&Array.isArray(be.data)?r(be.data):void 0})(i);if(ie)return ie;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof i[Symbol.toPrimitive]=="function")return _.from(i[Symbol.toPrimitive]("string"),S,I);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof i)}function g(i){if(typeof i!="number")throw new TypeError('"size" argument must be of type number');if(i<0)throw new RangeError('The value "'+i+'" is invalid for option "size"')}function h(i){return g(i),E(i<0?0:0|G(i))}function r(i){const S=i.length<0?0:0|G(i.length),I=E(S);for(let $=0;$=p)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+p.toString(16)+" bytes");return 0|i}function le(i,S){if(_.isBuffer(i))return i.length;if(ArrayBuffer.isView(i)||j(i,ArrayBuffer))return i.byteLength;if(typeof i!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof i);const I=i.length,$=arguments.length>2&&arguments[2]===!0;if(!$&&I===0)return 0;let ie=!1;for(;;)switch(S){case"ascii":case"latin1":case"binary":return I;case"utf8":case"utf-8":return V(i).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*I;case"hex":return I>>>1;case"base64":return B(i).length;default:if(ie)return $?-1:V(i).length;S=(""+S).toLowerCase(),ie=!0}}function de(i,S,I){let $=!1;if((S===void 0||S<0)&&(S=0),S>this.length||((I===void 0||I>this.length)&&(I=this.length),I<=0)||(I>>>=0)<=(S>>>=0))return"";for(i||(i="utf8");;)switch(i){case"hex":return pt(this,S,I);case"utf8":case"utf-8":return Ne(this,S,I);case"ascii":return ht(this,S,I);case"latin1":case"binary":return ye(this,S,I);case"base64":return Se(this,S,I);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return He(this,S,I);default:if($)throw new TypeError("Unknown encoding: "+i);i=(i+"").toLowerCase(),$=!0}}function De(i,S,I){const $=i[S];i[S]=i[I],i[I]=$}function ce(i,S,I,$,ie){if(i.length===0)return-1;if(typeof I=="string"?($=I,I=0):I>2147483647?I=2147483647:I<-2147483648&&(I=-2147483648),qe(I=+I)&&(I=ie?0:i.length-1),I<0&&(I=i.length+I),I>=i.length){if(ie)return-1;I=i.length-1}else if(I<0){if(!ie)return-1;I=0}if(typeof S=="string"&&(S=_.from(S,$)),_.isBuffer(S))return S.length===0?-1:Le(i,S,I,$,ie);if(typeof S=="number")return S&=255,typeof Uint8Array.prototype.indexOf=="function"?ie?Uint8Array.prototype.indexOf.call(i,S,I):Uint8Array.prototype.lastIndexOf.call(i,S,I):Le(i,[S],I,$,ie);throw new TypeError("val must be string, number or Buffer")}function Le(i,S,I,$,ie){let be,tt=1,ae=i.length,ze=S.length;if($!==void 0&&(($=String($).toLowerCase())==="ucs2"||$==="ucs-2"||$==="utf16le"||$==="utf-16le")){if(i.length<2||S.length<2)return-1;tt=2,ae/=2,ze/=2,I/=2}function je(Y,he){return tt===1?Y[he]:Y.readUInt16BE(he*tt)}if(ie){let Y=-1;for(be=I;beae&&(I=ae-ze),be=I;be>=0;be--){let Y=!0;for(let he=0;heie&&($=ie):$=ie;const be=S.length;let tt;for($>be/2&&($=be/2),tt=0;tt<$;++tt){const ae=parseInt(S.substr(2*tt,2),16);if(qe(ae))return tt;i[I+tt]=ae}return tt}function ot(i,S,I,$){return Pe(V(S,i.length-I),i,I,$)}function Ge(i,S,I,$){return Pe((function(ie){const be=[];for(let tt=0;tt>8,ze=tt%256,je.push(ze),je.push(ae);return je})(S,i.length-I),i,I,$)}function Se(i,S,I){return S===0&&I===i.length?F.fromByteArray(i):F.fromByteArray(i.slice(S,I))}function Ne(i,S,I){I=Math.min(i.length,I);const $=[];let ie=S;for(;ie239?4:be>223?3:be>191?2:1;if(ie+ae<=I){let ze,je,Y,he;switch(ae){case 1:be<128&&(tt=be);break;case 2:ze=i[ie+1],(192&ze)==128&&(he=(31&be)<<6|63&ze,he>127&&(tt=he));break;case 3:ze=i[ie+1],je=i[ie+2],(192&ze)==128&&(192&je)==128&&(he=(15&be)<<12|(63&ze)<<6|63&je,he>2047&&(he<55296||he>57343)&&(tt=he));break;case 4:ze=i[ie+1],je=i[ie+2],Y=i[ie+3],(192&ze)==128&&(192&je)==128&&(192&Y)==128&&(he=(15&be)<<18|(63&ze)<<12|(63&je)<<6|63&Y,he>65535&&he<1114112&&(tt=he))}}tt===null?(tt=65533,ae=1):tt>65535&&(tt-=65536,$.push(tt>>>10&1023|55296),tt=56320|1023&tt),$.push(tt),ie+=ae}return(function(be){const tt=be.length;if(tt<=ke)return String.fromCharCode.apply(String,be);let ae="",ze=0;for(;ze"u"||typeof console.error!="function"||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(_.prototype,"parent",{enumerable:!0,get:function(){if(_.isBuffer(this))return this.buffer}}),Object.defineProperty(_.prototype,"offset",{enumerable:!0,get:function(){if(_.isBuffer(this))return this.byteOffset}}),_.poolSize=8192,_.from=function(i,S,I){return w(i,S,I)},Object.setPrototypeOf(_.prototype,Uint8Array.prototype),Object.setPrototypeOf(_,Uint8Array),_.alloc=function(i,S,I){return(function($,ie,be){return g($),$<=0?E($):ie!==void 0?typeof be=="string"?E($).fill(ie,be):E($).fill(ie):E($)})(i,S,I)},_.allocUnsafe=function(i){return h(i)},_.allocUnsafeSlow=function(i){return h(i)},_.isBuffer=function(i){return i!=null&&i._isBuffer===!0&&i!==_.prototype},_.compare=function(i,S){if(j(i,Uint8Array)&&(i=_.from(i,i.offset,i.byteLength)),j(S,Uint8Array)&&(S=_.from(S,S.offset,S.byteLength)),!_.isBuffer(i)||!_.isBuffer(S))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(i===S)return 0;let I=i.length,$=S.length;for(let ie=0,be=Math.min(I,$);ie$.length?(_.isBuffer(be)||(be=_.from(be)),be.copy($,ie)):Uint8Array.prototype.set.call($,be,ie);else{if(!_.isBuffer(be))throw new TypeError('"list" argument must be an Array of Buffers');be.copy($,ie)}ie+=be.length}return $},_.byteLength=le,_.prototype._isBuffer=!0,_.prototype.swap16=function(){const i=this.length;if(i%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let S=0;SS&&(i+=" ... "),""},o&&(_.prototype[o]=_.prototype.inspect),_.prototype.compare=function(i,S,I,$,ie){if(j(i,Uint8Array)&&(i=_.from(i,i.offset,i.byteLength)),!_.isBuffer(i))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof i);if(S===void 0&&(S=0),I===void 0&&(I=i?i.length:0),$===void 0&&($=0),ie===void 0&&(ie=this.length),S<0||I>i.length||$<0||ie>this.length)throw new RangeError("out of range index");if($>=ie&&S>=I)return 0;if($>=ie)return-1;if(S>=I)return 1;if(this===i)return 0;let be=(ie>>>=0)-($>>>=0),tt=(I>>>=0)-(S>>>=0);const ae=Math.min(be,tt),ze=this.slice($,ie),je=i.slice(S,I);for(let Y=0;Y>>=0,isFinite(I)?(I>>>=0,$===void 0&&($="utf8")):($=I,I=void 0)}const ie=this.length-S;if((I===void 0||I>ie)&&(I=ie),i.length>0&&(I<0||S<0)||S>this.length)throw new RangeError("Attempt to write outside buffer bounds");$||($="utf8");let be=!1;for(;;)switch($){case"hex":return Be(this,i,S,I);case"utf8":case"utf-8":return ot(this,i,S,I);case"ascii":case"latin1":case"binary":return Ge(this,i,S,I);case"base64":return X(this,i,S,I);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Z(this,i,S,I);default:if(be)throw new TypeError("Unknown encoding: "+$);$=(""+$).toLowerCase(),be=!0}},_.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const ke=4096;function ht(i,S,I){let $="";I=Math.min(i.length,I);for(let ie=S;ie$)&&(I=$);let ie="";for(let be=S;beI)throw new RangeError("Trying to access beyond buffer length")}function Ke(i,S,I,$,ie,be){if(!_.isBuffer(i))throw new TypeError('"buffer" argument must be a Buffer instance');if(S>ie||Si.length)throw new RangeError("Index out of range")}function Pt(i,S,I,$,ie){Ie(S,$,ie,i,I,7);let be=Number(S&BigInt(4294967295));i[I++]=be,be>>=8,i[I++]=be,be>>=8,i[I++]=be,be>>=8,i[I++]=be;let tt=Number(S>>BigInt(32)&BigInt(4294967295));return i[I++]=tt,tt>>=8,i[I++]=tt,tt>>=8,i[I++]=tt,tt>>=8,i[I++]=tt,I}function Nt(i,S,I,$,ie){Ie(S,$,ie,i,I,7);let be=Number(S&BigInt(4294967295));i[I+7]=be,be>>=8,i[I+6]=be,be>>=8,i[I+5]=be,be>>=8,i[I+4]=be;let tt=Number(S>>BigInt(32)&BigInt(4294967295));return i[I+3]=tt,tt>>=8,i[I+2]=tt,tt>>=8,i[I+1]=tt,tt>>=8,i[I]=tt,I+8}function kt(i,S,I,$,ie,be){if(I+$>i.length)throw new RangeError("Index out of range");if(I<0)throw new RangeError("Index out of range")}function Ut(i,S,I,$,ie){return S=+S,I>>>=0,ie||kt(i,0,I,4),f.write(i,S,I,$,23,4),I+4}function ln(i,S,I,$,ie){return S=+S,I>>>=0,ie||kt(i,0,I,8),f.write(i,S,I,$,52,8),I+8}_.prototype.slice=function(i,S){const I=this.length;(i=~~i)<0?(i+=I)<0&&(i=0):i>I&&(i=I),(S=S===void 0?I:~~S)<0?(S+=I)<0&&(S=0):S>I&&(S=I),S>>=0,S>>>=0,I||Fe(i,S,this.length);let $=this[i],ie=1,be=0;for(;++be>>=0,S>>>=0,I||Fe(i,S,this.length);let $=this[i+--S],ie=1;for(;S>0&&(ie*=256);)$+=this[i+--S]*ie;return $},_.prototype.readUint8=_.prototype.readUInt8=function(i,S){return i>>>=0,S||Fe(i,1,this.length),this[i]},_.prototype.readUint16LE=_.prototype.readUInt16LE=function(i,S){return i>>>=0,S||Fe(i,2,this.length),this[i]|this[i+1]<<8},_.prototype.readUint16BE=_.prototype.readUInt16BE=function(i,S){return i>>>=0,S||Fe(i,2,this.length),this[i]<<8|this[i+1]},_.prototype.readUint32LE=_.prototype.readUInt32LE=function(i,S){return i>>>=0,S||Fe(i,4,this.length),(this[i]|this[i+1]<<8|this[i+2]<<16)+16777216*this[i+3]},_.prototype.readUint32BE=_.prototype.readUInt32BE=function(i,S){return i>>>=0,S||Fe(i,4,this.length),16777216*this[i]+(this[i+1]<<16|this[i+2]<<8|this[i+3])},_.prototype.readBigUInt64LE=_e((function(i){mt(i>>>=0,"offset");const S=this[i],I=this[i+7];S!==void 0&&I!==void 0||It(i,this.length-8);const $=S+256*this[++i]+65536*this[++i]+this[++i]*2**24,ie=this[++i]+256*this[++i]+65536*this[++i]+I*2**24;return BigInt($)+(BigInt(ie)<>>=0,"offset");const S=this[i],I=this[i+7];S!==void 0&&I!==void 0||It(i,this.length-8);const $=S*2**24+65536*this[++i]+256*this[++i]+this[++i],ie=this[++i]*2**24+65536*this[++i]+256*this[++i]+I;return(BigInt($)<>>=0,S>>>=0,I||Fe(i,S,this.length);let $=this[i],ie=1,be=0;for(;++be=ie&&($-=Math.pow(2,8*S)),$},_.prototype.readIntBE=function(i,S,I){i>>>=0,S>>>=0,I||Fe(i,S,this.length);let $=S,ie=1,be=this[i+--$];for(;$>0&&(ie*=256);)be+=this[i+--$]*ie;return ie*=128,be>=ie&&(be-=Math.pow(2,8*S)),be},_.prototype.readInt8=function(i,S){return i>>>=0,S||Fe(i,1,this.length),128&this[i]?-1*(255-this[i]+1):this[i]},_.prototype.readInt16LE=function(i,S){i>>>=0,S||Fe(i,2,this.length);const I=this[i]|this[i+1]<<8;return 32768&I?4294901760|I:I},_.prototype.readInt16BE=function(i,S){i>>>=0,S||Fe(i,2,this.length);const I=this[i+1]|this[i]<<8;return 32768&I?4294901760|I:I},_.prototype.readInt32LE=function(i,S){return i>>>=0,S||Fe(i,4,this.length),this[i]|this[i+1]<<8|this[i+2]<<16|this[i+3]<<24},_.prototype.readInt32BE=function(i,S){return i>>>=0,S||Fe(i,4,this.length),this[i]<<24|this[i+1]<<16|this[i+2]<<8|this[i+3]},_.prototype.readBigInt64LE=_e((function(i){mt(i>>>=0,"offset");const S=this[i],I=this[i+7];S!==void 0&&I!==void 0||It(i,this.length-8);const $=this[i+4]+256*this[i+5]+65536*this[i+6]+(I<<24);return(BigInt($)<>>=0,"offset");const S=this[i],I=this[i+7];S!==void 0&&I!==void 0||It(i,this.length-8);const $=(S<<24)+65536*this[++i]+256*this[++i]+this[++i];return(BigInt($)<>>=0,S||Fe(i,4,this.length),f.read(this,i,!0,23,4)},_.prototype.readFloatBE=function(i,S){return i>>>=0,S||Fe(i,4,this.length),f.read(this,i,!1,23,4)},_.prototype.readDoubleLE=function(i,S){return i>>>=0,S||Fe(i,8,this.length),f.read(this,i,!0,52,8)},_.prototype.readDoubleBE=function(i,S){return i>>>=0,S||Fe(i,8,this.length),f.read(this,i,!1,52,8)},_.prototype.writeUintLE=_.prototype.writeUIntLE=function(i,S,I,$){i=+i,S>>>=0,I>>>=0,$||Ke(this,i,S,I,Math.pow(2,8*I)-1,0);let ie=1,be=0;for(this[S]=255&i;++be>>=0,I>>>=0,$||Ke(this,i,S,I,Math.pow(2,8*I)-1,0);let ie=I-1,be=1;for(this[S+ie]=255&i;--ie>=0&&(be*=256);)this[S+ie]=i/be&255;return S+I},_.prototype.writeUint8=_.prototype.writeUInt8=function(i,S,I){return i=+i,S>>>=0,I||Ke(this,i,S,1,255,0),this[S]=255&i,S+1},_.prototype.writeUint16LE=_.prototype.writeUInt16LE=function(i,S,I){return i=+i,S>>>=0,I||Ke(this,i,S,2,65535,0),this[S]=255&i,this[S+1]=i>>>8,S+2},_.prototype.writeUint16BE=_.prototype.writeUInt16BE=function(i,S,I){return i=+i,S>>>=0,I||Ke(this,i,S,2,65535,0),this[S]=i>>>8,this[S+1]=255&i,S+2},_.prototype.writeUint32LE=_.prototype.writeUInt32LE=function(i,S,I){return i=+i,S>>>=0,I||Ke(this,i,S,4,4294967295,0),this[S+3]=i>>>24,this[S+2]=i>>>16,this[S+1]=i>>>8,this[S]=255&i,S+4},_.prototype.writeUint32BE=_.prototype.writeUInt32BE=function(i,S,I){return i=+i,S>>>=0,I||Ke(this,i,S,4,4294967295,0),this[S]=i>>>24,this[S+1]=i>>>16,this[S+2]=i>>>8,this[S+3]=255&i,S+4},_.prototype.writeBigUInt64LE=_e((function(i,S=0){return Pt(this,i,S,BigInt(0),BigInt("0xffffffffffffffff"))})),_.prototype.writeBigUInt64BE=_e((function(i,S=0){return Nt(this,i,S,BigInt(0),BigInt("0xffffffffffffffff"))})),_.prototype.writeIntLE=function(i,S,I,$){if(i=+i,S>>>=0,!$){const ae=Math.pow(2,8*I-1);Ke(this,i,S,I,ae-1,-ae)}let ie=0,be=1,tt=0;for(this[S]=255&i;++ie>>=0,!$){const ae=Math.pow(2,8*I-1);Ke(this,i,S,I,ae-1,-ae)}let ie=I-1,be=1,tt=0;for(this[S+ie]=255&i;--ie>=0&&(be*=256);)i<0&&tt===0&&this[S+ie+1]!==0&&(tt=1),this[S+ie]=(i/be|0)-tt&255;return S+I},_.prototype.writeInt8=function(i,S,I){return i=+i,S>>>=0,I||Ke(this,i,S,1,127,-128),i<0&&(i=255+i+1),this[S]=255&i,S+1},_.prototype.writeInt16LE=function(i,S,I){return i=+i,S>>>=0,I||Ke(this,i,S,2,32767,-32768),this[S]=255&i,this[S+1]=i>>>8,S+2},_.prototype.writeInt16BE=function(i,S,I){return i=+i,S>>>=0,I||Ke(this,i,S,2,32767,-32768),this[S]=i>>>8,this[S+1]=255&i,S+2},_.prototype.writeInt32LE=function(i,S,I){return i=+i,S>>>=0,I||Ke(this,i,S,4,2147483647,-2147483648),this[S]=255&i,this[S+1]=i>>>8,this[S+2]=i>>>16,this[S+3]=i>>>24,S+4},_.prototype.writeInt32BE=function(i,S,I){return i=+i,S>>>=0,I||Ke(this,i,S,4,2147483647,-2147483648),i<0&&(i=4294967295+i+1),this[S]=i>>>24,this[S+1]=i>>>16,this[S+2]=i>>>8,this[S+3]=255&i,S+4},_.prototype.writeBigInt64LE=_e((function(i,S=0){return Pt(this,i,S,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),_.prototype.writeBigInt64BE=_e((function(i,S=0){return Nt(this,i,S,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),_.prototype.writeFloatLE=function(i,S,I){return Ut(this,i,S,!0,I)},_.prototype.writeFloatBE=function(i,S,I){return Ut(this,i,S,!1,I)},_.prototype.writeDoubleLE=function(i,S,I){return ln(this,i,S,!0,I)},_.prototype.writeDoubleBE=function(i,S,I){return ln(this,i,S,!1,I)},_.prototype.copy=function(i,S,I,$){if(!_.isBuffer(i))throw new TypeError("argument should be a Buffer");if(I||(I=0),$||$===0||($=this.length),S>=i.length&&(S=i.length),S||(S=0),$>0&&$=this.length)throw new RangeError("Index out of range");if($<0)throw new RangeError("sourceEnd out of bounds");$>this.length&&($=this.length),i.length-S<$-I&&($=i.length-S+I);const ie=$-I;return this===i&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(S,I,$):Uint8Array.prototype.set.call(i,this.subarray(I,$),S),ie},_.prototype.fill=function(i,S,I,$){if(typeof i=="string"){if(typeof S=="string"?($=S,S=0,I=this.length):typeof I=="string"&&($=I,I=this.length),$!==void 0&&typeof $!="string")throw new TypeError("encoding must be a string");if(typeof $=="string"&&!_.isEncoding($))throw new TypeError("Unknown encoding: "+$);if(i.length===1){const be=i.charCodeAt(0);($==="utf8"&&be<128||$==="latin1")&&(i=be)}}else typeof i=="number"?i&=255:typeof i=="boolean"&&(i=Number(i));if(S<0||this.length>>=0,I=I===void 0?this.length:I>>>0,i||(i=0),typeof i=="number")for(ie=S;ie=$+4;I-=3)S=`_${i.slice(I-3,I)}${S}`;return`${i.slice(0,I)}${S}`}function Ie(i,S,I,$,ie,be){if(i>I||i= 0${tt} and < 2${tt} ** ${8*(be+1)}${tt}`:`>= -(2${tt} ** ${8*(be+1)-1}${tt}) and < 2 ** ${8*(be+1)-1}${tt}`,new an.ERR_OUT_OF_RANGE("value",ae,i)}(function(tt,ae,ze){mt(ae,"offset"),tt[ae]!==void 0&&tt[ae+ze]!==void 0||It(ae,tt.length-(ze+1))})($,ie,be)}function mt(i,S){if(typeof i!="number")throw new an.ERR_INVALID_ARG_TYPE(S,"number",i)}function It(i,S,I){throw Math.floor(i)!==i?(mt(i,I),new an.ERR_OUT_OF_RANGE("offset","an integer",i)):S<0?new an.ERR_BUFFER_OUT_OF_BOUNDS:new an.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${S}`,i)}En("ERR_BUFFER_OUT_OF_BOUNDS",(function(i){return i?`${i} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"}),RangeError),En("ERR_INVALID_ARG_TYPE",(function(i,S){return`The "${i}" argument must be of type number. Received type ${typeof S}`}),TypeError),En("ERR_OUT_OF_RANGE",(function(i,S,I){let $=`The value of "${i}" is out of range.`,ie=I;return Number.isInteger(I)&&Math.abs(I)>4294967296?ie=Oe(String(I)):typeof I=="bigint"&&(ie=String(I),(I>BigInt(2)**BigInt(32)||I<-(BigInt(2)**BigInt(32)))&&(ie=Oe(ie)),ie+="n"),$+=` It must be ${S}. Received ${ie}`,$}),RangeError);const Ye=/[^+/0-9A-Za-z-_]/g;function V(i,S){let I;S=S||1/0;const $=i.length;let ie=null;const be=[];for(let tt=0;tt<$;++tt){if(I=i.charCodeAt(tt),I>55295&&I<57344){if(!ie){if(I>56319){(S-=3)>-1&&be.push(239,191,189);continue}if(tt+1===$){(S-=3)>-1&&be.push(239,191,189);continue}ie=I;continue}if(I<56320){(S-=3)>-1&&be.push(239,191,189),ie=I;continue}I=65536+(ie-55296<<10|I-56320)}else ie&&(S-=3)>-1&&be.push(239,191,189);if(ie=null,I<128){if((S-=1)<0)break;be.push(I)}else if(I<2048){if((S-=2)<0)break;be.push(I>>6|192,63&I|128)}else if(I<65536){if((S-=3)<0)break;be.push(I>>12|224,I>>6&63|128,63&I|128)}else{if(!(I<1114112))throw new Error("Invalid code point");if((S-=4)<0)break;be.push(I>>18|240,I>>12&63|128,I>>6&63|128,63&I|128)}}return be}function B(i){return F.toByteArray((function(S){if((S=(S=S.split("=")[0]).trim().replace(Ye,"")).length<2)return"";for(;S.length%4!=0;)S+="=";return S})(i))}function Pe(i,S,I,$){let ie;for(ie=0;ie<$&&!(ie+I>=S.length||ie>=i.length);++ie)S[ie+I]=i[ie];return ie}function j(i,S){return i instanceof S||i!=null&&i.constructor!=null&&i.constructor.name!=null&&i.constructor.name===S.name}function qe(i){return i!=i}const it=(function(){const i="0123456789abcdef",S=new Array(256);for(let I=0;I<16;++I){const $=16*I;for(let ie=0;ie<16;++ie)S[$+ie]=i[I]+i[ie]}return S})();function _e(i){return typeof BigInt>"u"?Ue:i}function Ue(){throw new Error("BigInt not supported")}},6877:function(wt,me){var P={parseBuffer:function(o){return new F(o).parse()},addBoxProcessor:function(o,p){typeof o=="string"&&typeof p=="function"&&(f.prototype._boxProcessors[o]=p)},createFile:function(){return new F},createBox:function(o,p,E){var _=f.create(o);return p&&p.append(_,E),_},createFullBox:function(o,p,E){var _=P.createBox(o,p,E);return _.version=0,_.flags=0,_},Utils:{}};P.Utils.dataViewToString=function(o,p){var E=p||"utf-8";if(typeof TextDecoder<"u")return new TextDecoder(E).decode(o);var _=[],w=0;if(E==="utf-8")for(;w>6),p.push(128|63&_)):_<65536?(p.push(224|_>>12),p.push(128|63&_>>6),p.push(128|63&_)):(p.push(240|_>>18),p.push(128|63&_>>12),p.push(128|63&_>>6),p.push(128|63&_))}return p},P.Utils.appendBox=function(o,p,E){if(p._offset=o._cursor.offset,p._root=o._root?o._root:o,p._raw=o._raw,p._parent=o,E!==-1)if(E!=null){var _,w=-1;if(typeof E=="number")w=E;else{if(typeof E=="string")_=E;else{if(typeof E!="object"||!E.type)return void o.boxes.push(p);_=E.type}for(var g=0;g>3,p},f.prototype._readUint=function(o){var p,E,_=null,w=this._cursor.offset-this._raw.byteOffset;switch(o){case 8:_=this._raw.getUint8(w);break;case 16:_=this._raw.getUint16(w);break;case 24:_=((p=this._raw.getUint16(w))<<8)+(E=this._raw.getUint8(w+2));break;case 32:_=this._raw.getUint32(w);break;case 64:p=this._raw.getUint32(w),E=this._raw.getUint32(w+4),_=p*Math.pow(2,32)+E}return this._cursor.offset+=o>>3,_},f.prototype._readString=function(o){for(var p="",E=0;E0?o:this._raw.byteLength-(this._cursor.offset-this._offset);if(p>0){var E=new Uint8Array(this._raw.buffer,this._cursor.offset,p);return this._cursor.offset+=p,E}return null},f.prototype._readUTF8String=function(){var o=this._raw.byteLength-(this._cursor.offset-this._offset),p=null;return o>0&&(p=new DataView(this._raw.buffer,this._cursor.offset,o),this._cursor.offset+=o),p&&P.Utils.dataViewToString(p)},f.prototype._readUTF8TerminatedString=function(){var o=this._raw.byteLength-(this._cursor.offset-this._offset),p=null;if(o>0){var E;for(p=new DataView(this._raw.buffer,this._cursor.offset,o),E=0;Ethis._raw.buffer.byteLength)this._root._incomplete=!0;else{switch(this._procField("size","uint",32),this._procField("type","string",4),this.size===1&&this._procField("largesize","uint",64),this.type==="uuid"&&this._procFieldArray("usertype",16,"uint",8),this.size){case 0:this._raw=new DataView(this._raw.buffer,this._offset);break;case 1:this._offset+this.size>this._raw.buffer.byteLength?(this._incomplete=!0,this._root._incomplete=!0):this._raw=new DataView(this._raw.buffer,this._offset,this.largesize);break;default:this._offset+this.size>this._raw.buffer.byteLength?(this._incomplete=!0,this._root._incomplete=!0):this._raw=new DataView(this._raw.buffer,this._offset,this.size)}this._incomplete||(this._boxProcessors[this.type]&&this._boxProcessors[this.type].call(this),this._boxContainers.indexOf(this.type)!==-1?this._parseContainerBox():this._data=this._readData())}},f.prototype._parseFullBox=function(){this.version=this._readUint(8),this.flags=this._readUint(24)},f.prototype._parseContainerBox=function(){for(this.boxes=[];this._cursor.offset-this._raw.byteOffset>3}else this.size+=o>>3},f.prototype._writeUint=function(o,p){if(this._rawo){var E,_,w=this._cursor.offset-this._rawo.byteOffset;switch(o){case 8:this._rawo.setUint8(w,p);break;case 16:this._rawo.setUint16(w,p);break;case 24:E=(16776960&p)>>8,_=255&p,this._rawo.setUint16(w,E),this._rawo.setUint8(w+2,_);break;case 32:this._rawo.setUint32(w,p);break;case 64:_=p-(E=Math.floor(p/Math.pow(2,32)))*Math.pow(2,32),this._rawo.setUint32(w,E),this._rawo.setUint32(w+4,_)}this._cursor.offset+=o>>3}else this.size+=o>>3},f.prototype._writeString=function(o,p){for(var E=0;E>10&31),96+(this.language>>5&31),96+(31&this.language))),this._procField("pre_defined","uint",16)},f.prototype._boxProcessors.mehd=function(){this._procFullBox(),this._procField("fragment_duration","uint",this.version==1?64:32)},f.prototype._boxProcessors.meta=function(){this._procFullBox()},f.prototype._boxProcessors.mfhd=function(){this._procFullBox(),this._procField("sequence_number","uint",32)},f.prototype._boxProcessors.mfro=function(){this._procFullBox(),this._procField("mfra_size","uint",32)},f.prototype._boxProcessors.mp4a=f.prototype._boxProcessors.enca=function(){this._procFieldArray("reserved1",6,"uint",8),this._procField("data_reference_index","uint",16),this._procFieldArray("reserved2",2,"uint",32),this._procField("channelcount","uint",16),this._procField("samplesize","uint",16),this._procField("pre_defined","uint",16),this._procField("reserved3","uint",16),this._procField("samplerate","template",32),this._procField("esds","data",-1)},f.prototype._boxProcessors.mvhd=function(){this._procFullBox(),this._procField("creation_time","uint",this.version==1?64:32),this._procField("modification_time","uint",this.version==1?64:32),this._procField("timescale","uint",32),this._procField("duration","uint",this.version==1?64:32),this._procField("rate","template",32),this._procField("volume","template",16),this._procField("reserved1","uint",16),this._procFieldArray("reserved2",2,"uint",32),this._procFieldArray("matrix",9,"template",32),this._procFieldArray("pre_defined",6,"uint",32),this._procField("next_track_ID","uint",32)},f.prototype._boxProcessors.payl=function(){this._procField("cue_text","utf8")},f.prototype._boxProcessors.prft=function(){this._procFullBox(),this._procField("reference_track_ID","uint",32),this._procField("ntp_timestamp_sec","uint",32),this._procField("ntp_timestamp_frac","uint",32),this._procField("media_time","uint",this.version==1?64:32)},f.prototype._boxProcessors.prsl=function(){this._procFullBox(),this._procField("group_id","uint",32),this._procField("num_entities_in_group","uint",32),this._procEntries("entities",this.num_entities_in_group,(function(o){this._procEntryField(o,"entity_id","uint",32)})),4096&this.flags&&this._procField("preselection_tag","utf8string"),8192&this.flags&&this._procField("selection_priority","uint",8),16384&this.flags&&this._procField("interleaving_tag","utf8string")},f.prototype._boxProcessors.pssh=function(){this._procFullBox(),this._procFieldArray("SystemID",16,"uint",8),this._procField("DataSize","uint",32),this._procFieldArray("Data",this.DataSize,"uint",8)},f.prototype._boxProcessors.schm=function(){this._procFullBox(),this._procField("scheme_type","uint",32),this._procField("scheme_version","uint",32),1&this.flags&&this._procField("scheme_uri","string",-1)},f.prototype._boxProcessors.sdtp=function(){this._procFullBox();var o=-1;this._parsing&&(o=this._raw.byteLength-(this._cursor.offset-this._raw.byteOffset)),this._procFieldArray("sample_dependency_table",o,"uint",8)},f.prototype._boxProcessors.sidx=function(){this._procFullBox(),this._procField("reference_ID","uint",32),this._procField("timescale","uint",32),this._procField("earliest_presentation_time","uint",this.version==1?64:32),this._procField("first_offset","uint",this.version==1?64:32),this._procField("reserved","uint",16),this._procField("reference_count","uint",16),this._procEntries("references",this.reference_count,(function(o){this._parsing||(o.reference=(1&o.reference_type)<<31,o.reference|=2147483647&o.referenced_size,o.sap=(1&o.starts_with_SAP)<<31,o.sap|=(3&o.SAP_type)<<28,o.sap|=268435455&o.SAP_delta_time),this._procEntryField(o,"reference","uint",32),this._procEntryField(o,"subsegment_duration","uint",32),this._procEntryField(o,"sap","uint",32),this._parsing&&(o.reference_type=o.reference>>31&1,o.referenced_size=2147483647&o.reference,o.starts_with_SAP=o.sap>>31&1,o.SAP_type=o.sap>>28&7,o.SAP_delta_time=268435455&o.sap)}))},f.prototype._boxProcessors.smhd=function(){this._procFullBox(),this._procField("balance","uint",16),this._procField("reserved","uint",16)},f.prototype._boxProcessors.ssix=function(){this._procFullBox(),this._procField("subsegment_count","uint",32),this._procEntries("subsegments",this.subsegment_count,(function(o){this._procEntryField(o,"ranges_count","uint",32),this._procSubEntries(o,"ranges",o.ranges_count,(function(p){this._procEntryField(p,"level","uint",8),this._procEntryField(p,"range_size","uint",24)}))}))},f.prototype._boxProcessors.stsd=function(){this._procFullBox(),this._procField("entry_count","uint",32),this._procSubBoxes("entries",this.entry_count)},f.prototype._boxProcessors.sttg=function(){this._procField("settings","utf8")},f.prototype._boxProcessors.stts=function(){this._procFullBox(),this._procField("entry_count","uint",32),this._procEntries("entries",this.entry_count,(function(o){this._procEntryField(o,"sample_count","uint",32),this._procEntryField(o,"sample_delta","uint",32)}))},f.prototype._boxProcessors.subs=function(){this._procFullBox(),this._procField("entry_count","uint",32),this._procEntries("entries",this.entry_count,(function(o){this._procEntryField(o,"sample_delta","uint",32),this._procEntryField(o,"subsample_count","uint",16),this._procSubEntries(o,"subsamples",o.subsample_count,(function(p){this._procEntryField(p,"subsample_size","uint",this.version===1?32:16),this._procEntryField(p,"subsample_priority","uint",8),this._procEntryField(p,"discardable","uint",8),this._procEntryField(p,"codec_specific_parameters","uint",32)}))}))},f.prototype._boxProcessors.tenc=function(){this._procFullBox(),this._procField("default_IsEncrypted","uint",24),this._procField("default_IV_size","uint",8),this._procFieldArray("default_KID",16,"uint",8)},f.prototype._boxProcessors.tfdt=function(){this._procFullBox(),this._procField("baseMediaDecodeTime","uint",this.version==1?64:32)},f.prototype._boxProcessors.tfhd=function(){this._procFullBox(),this._procField("track_ID","uint",32),1&this.flags&&this._procField("base_data_offset","uint",64),2&this.flags&&this._procField("sample_description_offset","uint",32),8&this.flags&&this._procField("default_sample_duration","uint",32),16&this.flags&&this._procField("default_sample_size","uint",32),32&this.flags&&this._procField("default_sample_flags","uint",32)},f.prototype._boxProcessors.tfra=function(){this._procFullBox(),this._procField("track_ID","uint",32),this._parsing||(this.reserved=0,this.reserved|=(48&this.length_size_of_traf_num)<<4,this.reserved|=(12&this.length_size_of_trun_num)<<2,this.reserved|=3&this.length_size_of_sample_num),this._procField("reserved","uint",32),this._parsing&&(this.length_size_of_traf_num=(48&this.reserved)>>4,this.length_size_of_trun_num=(12&this.reserved)>>2,this.length_size_of_sample_num=3&this.reserved),this._procField("number_of_entry","uint",32),this._procEntries("entries",this.number_of_entry,(function(o){this._procEntryField(o,"time","uint",this.version===1?64:32),this._procEntryField(o,"moof_offset","uint",this.version===1?64:32),this._procEntryField(o,"traf_number","uint",8*(this.length_size_of_traf_num+1)),this._procEntryField(o,"trun_number","uint",8*(this.length_size_of_trun_num+1)),this._procEntryField(o,"sample_number","uint",8*(this.length_size_of_sample_num+1))}))},f.prototype._boxProcessors.tkhd=function(){this._procFullBox(),this._procField("creation_time","uint",this.version==1?64:32),this._procField("modification_time","uint",this.version==1?64:32),this._procField("track_ID","uint",32),this._procField("reserved1","uint",32),this._procField("duration","uint",this.version==1?64:32),this._procFieldArray("reserved2",2,"uint",32),this._procField("layer","uint",16),this._procField("alternate_group","uint",16),this._procField("volume","template",16),this._procField("reserved3","uint",16),this._procFieldArray("matrix",9,"template",32),this._procField("width","template",32),this._procField("height","template",32)},f.prototype._boxProcessors.trex=function(){this._procFullBox(),this._procField("track_ID","uint",32),this._procField("default_sample_description_index","uint",32),this._procField("default_sample_duration","uint",32),this._procField("default_sample_size","uint",32),this._procField("default_sample_flags","uint",32)},f.prototype._boxProcessors.trun=function(){this._procFullBox(),this._procField("sample_count","uint",32),1&this.flags&&this._procField("data_offset","int",32),4&this.flags&&this._procField("first_sample_flags","uint",32),this._procEntries("samples",this.sample_count,(function(o){256&this.flags&&this._procEntryField(o,"sample_duration","uint",32),512&this.flags&&this._procEntryField(o,"sample_size","uint",32),1024&this.flags&&this._procEntryField(o,"sample_flags","uint",32),2048&this.flags&&this._procEntryField(o,"sample_composition_time_offset",this.version===1?"int":"uint",32)}))},f.prototype._boxProcessors["url "]=f.prototype._boxProcessors["urn "]=function(){this._procFullBox(),this.type==="urn "&&this._procField("name","string",-1),this._procField("location","string",-1)},f.prototype._boxProcessors.vlab=function(){this._procField("source_label","utf8")},f.prototype._boxProcessors.vmhd=function(){this._procFullBox(),this._procField("graphicsmode","uint",16),this._procFieldArray("opcolor",3,"uint",16)},f.prototype._boxProcessors.vttC=function(){this._procField("config","utf8")},f.prototype._boxProcessors.vtte=function(){}},9826:function(wt){var me,P=typeof Reflect=="object"?Reflect:null,F=P&&typeof P.apply=="function"?P.apply:function(de,De,ce){return Function.prototype.apply.call(de,De,ce)};me=P&&typeof P.ownKeys=="function"?P.ownKeys:Object.getOwnPropertySymbols?function(de){return Object.getOwnPropertyNames(de).concat(Object.getOwnPropertySymbols(de))}:function(de){return Object.getOwnPropertyNames(de)};var f=Number.isNaN||function(de){return de!=de};function o(){o.init.call(this)}wt.exports=o,wt.exports.once=function(de,De){return new Promise((function(ce,Le){function Be(Ge){de.removeListener(De,ot),Le(Ge)}function ot(){typeof de.removeListener=="function"&&de.removeListener("error",Be),ce([].slice.call(arguments))}le(de,De,ot,{once:!0}),De!=="error"&&(function(Ge,X){typeof Ge.on=="function"&&le(Ge,"error",X,{once:!0})})(de,Be)}))},o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var p=10;function E(de){if(typeof de!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof de)}function _(de){return de._maxListeners===void 0?o.defaultMaxListeners:de._maxListeners}function w(de,De,ce,Le){var Be,ot,Ge,X;if(E(ce),(ot=de._events)===void 0?(ot=de._events=Object.create(null),de._eventsCount=0):(ot.newListener!==void 0&&(de.emit("newListener",De,ce.listener?ce.listener:ce),ot=de._events),Ge=ot[De]),Ge===void 0)Ge=ot[De]=ce,++de._eventsCount;else if(typeof Ge=="function"?Ge=ot[De]=Le?[ce,Ge]:[Ge,ce]:Le?Ge.unshift(ce):Ge.push(ce),(Be=_(de))>0&&Ge.length>Be&&!Ge.warned){Ge.warned=!0;var Z=new Error("Possible EventEmitter memory leak detected. "+Ge.length+" "+String(De)+" listeners added. Use emitter.setMaxListeners() to increase limit");Z.name="MaxListenersExceededWarning",Z.emitter=de,Z.type=De,Z.count=Ge.length,X=Z,console&&console.warn&&console.warn(X)}return de}function g(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function h(de,De,ce){var Le={fired:!1,wrapFn:void 0,target:de,type:De,listener:ce},Be=g.bind(Le);return Be.listener=ce,Le.wrapFn=Be,Be}function r(de,De,ce){var Le=de._events;if(Le===void 0)return[];var Be=Le[De];return Be===void 0?[]:typeof Be=="function"?ce?[Be.listener||Be]:[Be]:ce?(function(ot){for(var Ge=new Array(ot.length),X=0;X0&&(ot=De[0]),ot instanceof Error)throw ot;var Ge=new Error("Unhandled error."+(ot?" ("+ot.message+")":""));throw Ge.context=ot,Ge}var X=Be[de];if(X===void 0)return!1;if(typeof X=="function")F(X,this,De);else{var Z=X.length,Se=G(X,Z);for(ce=0;ce=0;ot--)if(ce[ot]===De||ce[ot].listener===De){Ge=ce[ot].listener,Be=ot;break}if(Be<0)return this;Be===0?ce.shift():(function(X,Z){for(;Z+1=0;Le--)this.removeListener(de,De[Le]);return this},o.prototype.listeners=function(de){return r(this,de,!0)},o.prototype.rawListeners=function(de){return r(this,de,!1)},o.listenerCount=function(de,De){return typeof de.listenerCount=="function"?de.listenerCount(De):H.call(de,De)},o.prototype.listenerCount=H,o.prototype.eventNames=function(){return this._eventsCount>0?me(this._events):[]}},7316:function(wt){wt.exports=function me(P,F){if(P===F)return!0;if(P&&F&&typeof P=="object"&&typeof F=="object"){if(P.constructor!==F.constructor)return!1;var f,o,p;if(Array.isArray(P)){if((f=P.length)!=F.length)return!1;for(o=f;o--!=0;)if(!me(P[o],F[o]))return!1;return!0}if(P.constructor===RegExp)return P.source===F.source&&P.flags===F.flags;if(P.valueOf!==Object.prototype.valueOf)return P.valueOf()===F.valueOf();if(P.toString!==Object.prototype.toString)return P.toString()===F.toString();if((f=(p=Object.keys(P)).length)!==Object.keys(F).length)return!1;for(o=f;o--!=0;)if(!Object.prototype.hasOwnProperty.call(F,p[o]))return!1;for(o=f;o--!=0;){var E=p[o];if(!me(P[E],F[E]))return!1}return!0}return P!=P&&F!=F}},7986:function(wt,me){me.read=function(P,F,f,o,p){var E,_,w=8*p-o-1,g=(1<>1,r=-7,H=f?p-1:0,G=f?-1:1,le=P[F+H];for(H+=G,E=le&(1<<-r)-1,le>>=-r,r+=w;r>0;E=256*E+P[F+H],H+=G,r-=8);for(_=E&(1<<-r)-1,E>>=-r,r+=o;r>0;_=256*_+P[F+H],H+=G,r-=8);if(E===0)E=1-h;else{if(E===g)return _?NaN:1/0*(le?-1:1);_+=Math.pow(2,o),E-=h}return(le?-1:1)*_*Math.pow(2,E-o)},me.write=function(P,F,f,o,p,E){var _,w,g,h=8*E-p-1,r=(1<>1,G=p===23?Math.pow(2,-24)-Math.pow(2,-77):0,le=o?0:E-1,de=o?1:-1,De=F<0||F===0&&1/F<0?1:0;for(F=Math.abs(F),isNaN(F)||F===1/0?(w=isNaN(F)?1:0,_=r):(_=Math.floor(Math.log(F)/Math.LN2),F*(g=Math.pow(2,-_))<1&&(_--,g*=2),(F+=_+H>=1?G/g:G*Math.pow(2,1-H))*g>=2&&(_++,g/=2),_+H>=r?(w=0,_=r):_+H>=1?(w=(F*g-1)*Math.pow(2,p),_+=H):(w=F*Math.pow(2,H-1)*Math.pow(2,p),_=0));p>=8;P[f+le]=255&w,le+=de,w/=256,p-=8);for(_=_<0;P[f+le]=255&_,le+=de,_/=256,h-=8);P[f+le-de]|=128*De}},5474:function(wt,me,P){(function(F){F.parser=function(V,B){return new p(V,B)},F.SAXParser=p,F.SAXStream=_,F.createStream=function(V,B){return new _(V,B)},F.MAX_BUFFER_LENGTH=65536;var f,o=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];function p(V,B){if(!(this instanceof p))return new p(V,B);var Pe=this;(function(j){for(var qe=0,it=o.length;qe"?(Fe(B,"onsgmldeclaration",B.sgmlDecl),B.sgmlDecl="",B.state=ye.TEXT):(Z(r,j)&&(B.state=ye.SGML_DECL_QUOTED),B.sgmlDecl+=j);continue;case ye.SGML_DECL_QUOTED:j===B.q&&(B.state=ye.SGML_DECL,B.q=""),B.sgmlDecl+=j;continue;case ye.DOCTYPE:j===">"?(B.state=ye.TEXT,Fe(B,"ondoctype",B.doctype),B.doctype=!0):(B.doctype+=j,j==="["?B.state=ye.DOCTYPE_DTD:Z(r,j)&&(B.state=ye.DOCTYPE_QUOTED,B.q=j));continue;case ye.DOCTYPE_QUOTED:B.doctype+=j,j===B.q&&(B.q="",B.state=ye.DOCTYPE);continue;case ye.DOCTYPE_DTD:B.doctype+=j,j==="]"?B.state=ye.DOCTYPE:Z(r,j)&&(B.state=ye.DOCTYPE_DTD_QUOTED,B.q=j);continue;case ye.DOCTYPE_DTD_QUOTED:B.doctype+=j,j===B.q&&(B.state=ye.DOCTYPE_DTD,B.q="");continue;case ye.COMMENT:j==="-"?B.state=ye.COMMENT_ENDING:B.comment+=j;continue;case ye.COMMENT_ENDING:j==="-"?(B.state=ye.COMMENT_ENDED,B.comment=Pt(B.opt,B.comment),B.comment&&Fe(B,"oncomment",B.comment),B.comment=""):(B.comment+="-"+j,B.state=ye.COMMENT);continue;case ye.COMMENT_ENDED:j!==">"?(Ut(B,"Malformed comment"),B.comment+="--"+j,B.state=ye.COMMENT):B.state=ye.TEXT;continue;case ye.CDATA:j==="]"?B.state=ye.CDATA_ENDING:B.cdata+=j;continue;case ye.CDATA_ENDING:j==="]"?B.state=ye.CDATA_ENDING_2:(B.cdata+="]"+j,B.state=ye.CDATA);continue;case ye.CDATA_ENDING_2:j===">"?(B.cdata&&Fe(B,"oncdata",B.cdata),Fe(B,"onclosecdata"),B.cdata="",B.state=ye.TEXT):j==="]"?B.cdata+="]":(B.cdata+="]]"+j,B.state=ye.CDATA);continue;case ye.PROC_INST:j==="?"?B.state=ye.PROC_INST_ENDING:Z(w,j)?B.state=ye.PROC_INST_BODY:B.procInstName+=j;continue;case ye.PROC_INST_BODY:if(!B.procInstBody&&Z(w,j))continue;j==="?"?B.state=ye.PROC_INST_ENDING:B.procInstBody+=j;continue;case ye.PROC_INST_ENDING:j===">"?(Fe(B,"onprocessinginstruction",{name:B.procInstName,body:B.procInstBody}),B.procInstName=B.procInstBody="",B.state=ye.TEXT):(B.procInstBody+="?"+j,B.state=ye.PROC_INST_BODY);continue;case ye.OPEN_TAG:Z(Be,j)?B.tagName+=j:(ln(B),j===">"?Oe(B):j==="/"?B.state=ye.OPEN_TAG_SLASH:(Se(w,j)&&Ut(B,"Invalid character in tag name"),B.state=ye.ATTRIB));continue;case ye.OPEN_TAG_SLASH:j===">"?(Oe(B,!0),Ie(B)):(Ut(B,"Forward-slash in opening tag not followed by >"),B.state=ye.ATTRIB);continue;case ye.ATTRIB:if(Z(w,j))continue;j===">"?Oe(B):j==="/"?B.state=ye.OPEN_TAG_SLASH:Z(Le,j)?(B.attribName=j,B.attribValue="",B.state=ye.ATTRIB_NAME):Ut(B,"Invalid attribute name");continue;case ye.ATTRIB_NAME:j==="="?B.state=ye.ATTRIB_VALUE:j===">"?(Ut(B,"Attribute without value"),B.attribValue=B.attribName,En(B),Oe(B)):Z(w,j)?B.state=ye.ATTRIB_NAME_SAW_WHITE:Z(Be,j)?B.attribName+=j:Ut(B,"Invalid attribute name");continue;case ye.ATTRIB_NAME_SAW_WHITE:if(j==="=")B.state=ye.ATTRIB_VALUE;else{if(Z(w,j))continue;Ut(B,"Attribute without value"),B.tag.attributes[B.attribName]="",B.attribValue="",Fe(B,"onattribute",{name:B.attribName,value:""}),B.attribName="",j===">"?Oe(B):Z(Le,j)?(B.attribName=j,B.state=ye.ATTRIB_NAME):(Ut(B,"Invalid attribute name"),B.state=ye.ATTRIB)}continue;case ye.ATTRIB_VALUE:if(Z(w,j))continue;Z(r,j)?(B.q=j,B.state=ye.ATTRIB_VALUE_QUOTED):(Ut(B,"Unquoted attribute value"),B.state=ye.ATTRIB_VALUE_UNQUOTED,B.attribValue=j);continue;case ye.ATTRIB_VALUE_QUOTED:if(j!==B.q){j==="&"?B.state=ye.ATTRIB_VALUE_ENTITY_Q:B.attribValue+=j;continue}En(B),B.q="",B.state=ye.ATTRIB_VALUE_CLOSED;continue;case ye.ATTRIB_VALUE_CLOSED:Z(w,j)?B.state=ye.ATTRIB:j===">"?Oe(B):j==="/"?B.state=ye.OPEN_TAG_SLASH:Z(Le,j)?(Ut(B,"No whitespace between attributes"),B.attribName=j,B.attribValue="",B.state=ye.ATTRIB_NAME):Ut(B,"Invalid attribute name");continue;case ye.ATTRIB_VALUE_UNQUOTED:if(Se(H,j)){j==="&"?B.state=ye.ATTRIB_VALUE_ENTITY_U:B.attribValue+=j;continue}En(B),j===">"?Oe(B):B.state=ye.ATTRIB;continue;case ye.CLOSE_TAG:if(B.tagName)j===">"?Ie(B):Z(Be,j)?B.tagName+=j:B.script?(B.script+=""?Ie(B):Ut(B,"Invalid characters in closing tag");continue;case ye.TEXT_ENTITY:case ye.ATTRIB_VALUE_ENTITY_Q:case ye.ATTRIB_VALUE_ENTITY_U:var _e,Ue;switch(B.state){case ye.TEXT_ENTITY:_e=ye.TEXT,Ue="textNode";break;case ye.ATTRIB_VALUE_ENTITY_Q:_e=ye.ATTRIB_VALUE_QUOTED,Ue="attribValue";break;case ye.ATTRIB_VALUE_ENTITY_U:_e=ye.ATTRIB_VALUE_UNQUOTED,Ue="attribValue"}j===";"?(B[Ue]+=mt(B),B.entity="",B.state=_e):Z(B.entity.length?Ge:ot,j)?B.entity+=j:(Ut(B,"Invalid character in entity name"),B[Ue]+="&"+B.entity+j,B.entity="",B.state=_e);continue;default:throw new Error(B,"Unknown state: "+B.state)}return B.position>=B.bufferCheckPosition&&(function(i){for(var S=Math.max(F.MAX_BUFFER_LENGTH,10),I=0,$=0,ie=o.length;$S)switch(o[$]){case"textNode":Ke(i);break;case"cdata":Fe(i,"oncdata",i.cdata),i.cdata="";break;case"script":Fe(i,"onscript",i.script),i.script="";break;default:Nt(i,"Max buffer length exceeded: "+o[$])}I=Math.max(I,be)}var tt=F.MAX_BUFFER_LENGTH-I;i.bufferCheckPosition=tt+i.position})(B),B},resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){var V;Ke(V=this),V.cdata!==""&&(Fe(V,"oncdata",V.cdata),V.cdata=""),V.script!==""&&(Fe(V,"onscript",V.script),V.script="")}};try{f=P(3515).Stream}catch{f=function(){}}var E=F.EVENTS.filter((function(V){return V!=="error"&&V!=="end"}));function _(V,B){if(!(this instanceof _))return new _(V,B);f.apply(this),this._parser=new p(V,B),this.writable=!0,this.readable=!0;var Pe=this;this._parser.onend=function(){Pe.emit("end")},this._parser.onerror=function(j){Pe.emit("error",j),Pe._parser.error=null},this._decoder=null,E.forEach((function(j){Object.defineProperty(Pe,"on"+j,{get:function(){return Pe._parser["on"+j]},set:function(qe){if(!qe)return Pe.removeAllListeners(j),Pe._parser["on"+j]=qe,qe;Pe.on(j,qe)},enumerable:!0,configurable:!1})}))}_.prototype=Object.create(f.prototype,{constructor:{value:_}}),_.prototype.write=function(V){if(typeof Buffer=="function"&&typeof Buffer.isBuffer=="function"&&Buffer.isBuffer(V)){if(!this._decoder){var B=P(748).StringDecoder;this._decoder=new B("utf8")}V=this._decoder.write(V)}return this._parser.write(V.toString()),this.emit("data",V),!0},_.prototype.end=function(V){return V&&V.length&&this.write(V),this._parser.end(),!0},_.prototype.on=function(V,B){var Pe=this;return Pe._parser["on"+V]||E.indexOf(V)===-1||(Pe._parser["on"+V]=function(){var j=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);j.splice(0,0,V),Pe.emit.apply(Pe,j)}),f.prototype.on.call(Pe,V,B)};var w=`\r `,g="0124356789",h="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",r=`'"`,H=w+">",G="[CDATA[",le="DOCTYPE",de="http://www.w3.org/XML/1998/namespace",De="http://www.w3.org/2000/xmlns/",ce={xml:de,xmlns:De};w=X(w),g=X(g),h=X(h);var Le=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,Be=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040\.\d-]/,ot=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,Ge=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040\.\d-]/;function X(V){return V.split("").reduce((function(B,Pe){return B[Pe]=!0,B}),{})}function Z(V,B){return(function(Pe){return Object.prototype.toString.call(Pe)==="[object RegExp]"})(V)?!!B.match(V):V[B]}function Se(V,B){return!Z(V,B)}r=X(r),H=X(H);var Ne,ke,ht,ye=0;for(var pt in F.STATE={BEGIN:ye++,BEGIN_WHITESPACE:ye++,TEXT:ye++,TEXT_ENTITY:ye++,OPEN_WAKA:ye++,SGML_DECL:ye++,SGML_DECL_QUOTED:ye++,DOCTYPE:ye++,DOCTYPE_QUOTED:ye++,DOCTYPE_DTD:ye++,DOCTYPE_DTD_QUOTED:ye++,COMMENT_STARTING:ye++,COMMENT:ye++,COMMENT_ENDING:ye++,COMMENT_ENDED:ye++,CDATA:ye++,CDATA_ENDING:ye++,CDATA_ENDING_2:ye++,PROC_INST:ye++,PROC_INST_BODY:ye++,PROC_INST_ENDING:ye++,OPEN_TAG:ye++,OPEN_TAG_SLASH:ye++,ATTRIB:ye++,ATTRIB_NAME:ye++,ATTRIB_NAME_SAW_WHITE:ye++,ATTRIB_VALUE:ye++,ATTRIB_VALUE_QUOTED:ye++,ATTRIB_VALUE_CLOSED:ye++,ATTRIB_VALUE_UNQUOTED:ye++,ATTRIB_VALUE_ENTITY_Q:ye++,ATTRIB_VALUE_ENTITY_U:ye++,CLOSE_TAG:ye++,CLOSE_TAG_SAW_WHITE:ye++,SCRIPT:ye++,SCRIPT_ENDING:ye++},F.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},F.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},Object.keys(F.ENTITIES).forEach((function(V){var B=F.ENTITIES[V],Pe=typeof B=="number"?String.fromCharCode(B):B;F.ENTITIES[V]=Pe})),F.STATE)F.STATE[F.STATE[pt]]=pt;function He(V,B,Pe){V[B]&&V[B](Pe)}function Fe(V,B,Pe){V.textNode&&Ke(V),He(V,B,Pe)}function Ke(V){V.textNode=Pt(V.opt,V.textNode),V.textNode&&He(V,"ontext",V.textNode),V.textNode=""}function Pt(V,B){return V.trim&&(B=B.trim()),V.normalize&&(B=B.replace(/\s+/g," ")),B}function Nt(V,B){return Ke(V),V.trackPosition&&(B+=` Line: `+V.line+` Column: `+V.column+` Char: `+V.c),B=new Error(B),V.error=B,He(V,"onerror",B),V}function kt(V){return V.sawRoot&&!V.closedRoot&&Ut(V,"Unclosed root tag"),V.state!==ye.BEGIN&&V.state!==ye.BEGIN_WHITESPACE&&V.state!==ye.TEXT&&Nt(V,"Unexpected end"),Ke(V),V.c="",V.closed=!0,He(V,"onend"),p.call(V,V.strict,V.opt),V}function Ut(V,B){if(typeof V!="object"||!(V instanceof p))throw new Error("bad call to strictFail");V.strict&&Nt(V,B)}function ln(V){V.strict||(V.tagName=V.tagName[V.looseCase]());var B=V.tags[V.tags.length-1]||V,Pe=V.tag={name:V.tagName,attributes:{}};V.opt.xmlns&&(Pe.ns=B.ns),V.attribList.length=0,Fe(V,"onopentagstart",Pe)}function an(V,B){var Pe=V.indexOf(":")<0?["",V]:V.split(":"),j=Pe[0],qe=Pe[1];return B&&V==="xmlns"&&(j="xmlns",qe=""),{prefix:j,local:qe}}function En(V){if(V.strict||(V.attribName=V.attribName[V.looseCase]()),V.attribList.indexOf(V.attribName)!==-1||V.tag.attributes.hasOwnProperty(V.attribName))V.attribName=V.attribValue="";else{if(V.opt.xmlns){var B=an(V.attribName,!0),Pe=B.prefix,j=B.local;if(Pe==="xmlns")if(j==="xml"&&V.attribValue!==de)Ut(V,"xml: prefix must be bound to "+de+` Actual: `+V.attribValue);else if(j==="xmlns"&&V.attribValue!==De)Ut(V,"xmlns: prefix must be bound to "+De+` Actual: `+V.attribValue);else{var qe=V.tag,it=V.tags[V.tags.length-1]||V;qe.ns===it.ns&&(qe.ns=Object.create(it.ns)),qe.ns[j]=V.attribValue}V.attribList.push([V.attribName,V.attribValue])}else V.tag.attributes[V.attribName]=V.attribValue,Fe(V,"onattribute",{name:V.attribName,value:V.attribValue});V.attribName=V.attribValue=""}}function Oe(V,B){if(V.opt.xmlns){var Pe=V.tag,j=an(V.tagName);Pe.prefix=j.prefix,Pe.local=j.local,Pe.uri=Pe.ns[j.prefix]||"",Pe.prefix&&!Pe.uri&&(Ut(V,"Unbound namespace prefix: "+JSON.stringify(V.tagName)),Pe.uri=j.prefix);var qe=V.tags[V.tags.length-1]||V;Pe.ns&&qe.ns!==Pe.ns&&Object.keys(Pe.ns).forEach((function(ae){Fe(V,"onopennamespace",{prefix:ae,uri:Pe.ns[ae]})}));for(var it=0,_e=V.attribList.length;it<_e;it++){var Ue=V.attribList[it],i=Ue[0],S=Ue[1],I=an(i,!0),$=I.prefix,ie=I.local,be=$===""?"":Pe.ns[$]||"",tt={name:i,value:S,prefix:$,local:ie,uri:be};$&&$!=="xmlns"&&!be&&(Ut(V,"Unbound namespace prefix: "+JSON.stringify($)),tt.uri=$),V.tag.attributes[i]=tt,Fe(V,"onattribute",tt)}V.attribList.length=0}V.tag.isSelfClosing=!!B,V.sawRoot=!0,V.tags.push(V.tag),Fe(V,"onopentag",V.tag),B||(V.noscript||V.tagName.toLowerCase()!=="script"?V.state=ye.TEXT:V.state=ye.SCRIPT,V.tag=null,V.tagName=""),V.attribName=V.attribValue="",V.attribList.length=0}function Ie(V){if(!V.tagName)return Ut(V,"Weird empty close tag."),V.textNode+="",void(V.state=ye.TEXT);if(V.script){if(V.tagName!=="script")return V.script+="",V.tagName="",void(V.state=ye.SCRIPT);Fe(V,"onscript",V.script),V.script=""}var B=V.tags.length,Pe=V.tagName;V.strict||(Pe=Pe[V.looseCase]());for(var j=Pe;B--&&V.tags[B].name!==j;)Ut(V,"Unexpected close tag");if(B<0)return Ut(V,"Unmatched closing tag: "+V.tagName),V.textNode+="",void(V.state=ye.TEXT);V.tagName=Pe;for(var qe=V.tags.length;qe-- >B;){var it=V.tag=V.tags.pop();V.tagName=V.tag.name,Fe(V,"onclosetag",V.tagName);var _e={};for(var Ue in it.ns)_e[Ue]=it.ns[Ue];var i=V.tags[V.tags.length-1]||V;V.opt.xmlns&&it.ns!==i.ns&&Object.keys(it.ns).forEach((function(S){var I=it.ns[S];Fe(V,"onclosenamespace",{prefix:S,uri:I})}))}B===0&&(V.closedRoot=!0),V.tagName=V.attribValue=V.attribName="",V.attribList.length=0,V.state=ye.TEXT}function mt(V){var B,Pe=V.entity,j=Pe.toLowerCase(),qe="";return V.ENTITIES[Pe]?V.ENTITIES[Pe]:V.ENTITIES[j]?V.ENTITIES[j]:((Pe=j).charAt(0)==="#"&&(Pe.charAt(1)==="x"?(Pe=Pe.slice(2),qe=(B=parseInt(Pe,16)).toString(16)):(Pe=Pe.slice(1),qe=(B=parseInt(Pe,10)).toString(10))),Pe=Pe.replace(/^0+/,""),qe.toLowerCase()!==Pe?(Ut(V,"Invalid character entity"),"&"+V.entity+";"):String.fromCodePoint(B))}function It(V,B){B==="<"?(V.state=ye.OPEN_WAKA,V.startTagPosition=V.position):Se(w,B)&&(Ut(V,"Non-whitespace before first tag."),V.textNode=B,V.state=ye.TEXT)}function Ye(V,B){var Pe="";return B1114111||ke(_e)!==_e)throw RangeError("Invalid code point: "+_e);_e<=65535?Pe.push(_e):(V=55296+((_e-=65536)>>10),B=_e%1024+56320,Pe.push(V,B)),(j+1===qe||Pe.length>16384)&&(it+=Ne.apply(null,Pe),Pe.length=0)}return it},Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:ht,configurable:!0,writable:!0}):String.fromCodePoint=ht)})(me)},6739:function(wt,me,P){(function(F,f,o,p,E){function _(Ye){if("contents"in Ye)for(var V=("styleAttrs"in Ye)?Ye.styleAttrs[p.byName.ruby.qname]:null,B=Ye.kind==="span"&&(V==="container"||V==="textContainer"||V==="baseContainer"),Pe=Ye.contents.length-1;Pe>=0;Pe--)!B||"styleAttrs"in Ye.contents[Pe]&&p.byName.ruby.qname in Ye.contents[Pe].styleAttrs?_(Ye.contents[Pe]):delete Ye.contents[Pe]}function w(Ye,V,B,Pe){var j=Pe&&Pe.timeContainer==="seq",qe=0;Pe&&(qe=j&&B?B.end:Pe.begin),V.begin=V.explicit_begin?V.explicit_begin+qe:qe;var it=V.begin,_e=null;if("sets"in V)for(var Ue=0;Ue "+Ye.attributes[Pe].value)}}return B}function kt(Ye,V,B){for(var Pe in Ye.attributes)if(Ye.attributes[Pe].uri===V&&Ye.attributes[Pe].local===B)return Ye.attributes[Pe].value;return null}function Ut(Ye,V,B){var Pe,j=null;return(Pe=/^(\d+(?:\.\d+)?)f$/.exec(B))!==null?V!==null&&(j=parseFloat(Pe[1])/V):(Pe=/^(\d+(?:\.\d+)?)t$/.exec(B))!==null?Ye!==null&&(j=parseFloat(Pe[1])/Ye):(Pe=/^(\d+(?:\.\d+)?)ms$/.exec(B))!==null?j=parseFloat(Pe[1])/1e3:(Pe=/^(\d+(?:\.\d+)?)s$/.exec(B))!==null?j=parseFloat(Pe[1]):(Pe=/^(\d+(?:\.\d+)?)h$/.exec(B))!==null?j=3600*parseFloat(Pe[1]):(Pe=/^(\d+(?:\.\d+)?)m$/.exec(B))!==null?j=60*parseFloat(Pe[1]):(Pe=/^(\d{2,}):(\d\d):(\d\d(?:\.\d+)?)$/.exec(B))!==null?j=3600*parseInt(Pe[1])+60*parseInt(Pe[2])+parseFloat(Pe[3]):(Pe=/^(\d{2,}):(\d\d):(\d\d)\:(\d{2,})$/.exec(B))!==null&&V!==null&&(j=3600*parseInt(Pe[1])+60*parseInt(Pe[2])+parseInt(Pe[3])+(Pe[4]===null?0:parseInt(Pe[4])/V)),j}function ln(Ye,V,B){for(;V.styleRefs.length>0;){var Pe=V.styleRefs.pop();Pe in Ye.styles?(ln(Ye,Ye.styles[Pe],B),En(Ye.styles[Pe].styleAttrs,V.styleAttrs)):Ie(B,"Non-existant style id referenced")}}function an(Ye,V,B,Pe){for(var j=V.length-1;j>=0;j--){var qe=V[j];qe in Ye.styles?En(Ye.styles[qe].styleAttrs,B):Ie(Pe,"Non-existant style id referenced")}}function En(Ye,V){for(var B in Ye)Ye.hasOwnProperty(B)&&(B in V||(V[B]=Ye[B]))}function Oe(Ye,V){if(Ye&&Ye.warn&&Ye.warn(V))throw V}function Ie(Ye,V){if(Ye&&Ye.error&&Ye.error(V))throw V}function mt(Ye,V){throw Ye&&Ye.fatal&&Ye.fatal(V),V}function It(Ye,V){for(var B,Pe=0,j=Ye.length-1;Pe<=j;){var qe=Ye[B=Math.floor((Pe+j)/2)];if(qeV))return{found:!0,index:B};j=B-1}}return{found:!1,index:Pe}}F.fromXML=function(Ye,V,B){var Pe=f.parser(!0,{xmlns:!0}),j=[],qe=[],it=[],_e=0,Ue=null;Pe.onclosetag=function(ie){if(j[0]instanceof He)Ue.head!==null&&Ue.head.styling!==null&&an(Ue.head.styling,j[0].styleRefs,j[0].styleAttrs,V),delete j[0].styleRefs;else if(j[0]instanceof H)for(var be in j[0].styles)j[0].styles.hasOwnProperty(be)&&ln(j[0],j[0].styles[be],V);else if(j[0]instanceof ke||j[0]instanceof ht){if(j[0].contents.length>1){var tt,ae=[j[0].contents[0]];for(tt=1;tt0&&B&&"onCloseTag"in B&&B.onCloseTag());it.shift(),qe.shift(),j.shift()},Pe.ontext=function(ie){if(j[0]!==void 0)if(j[0]instanceof ht||j[0]instanceof ke){if(j[0]instanceof ht){var be=j[0].styleAttrs[p.byName.ruby.qname];if(be==="container"||be==="textContainer"||be==="baseContainer")return}var tt=new ye;tt.initFromText(Ue,j[0],ie,qe[0],it[0],V),j[0].contents.push(tt)}else j[0]instanceof g&&_e>0&&B&&"onText"in B&&B.onText(ie)},Pe.onopentag=function(ie){var be=ie.attributes["xml:space"];be?it.unshift(be.value):it.length===0?it.unshift("default"):it.unshift(it[0]);var tt=ie.attributes["xml:lang"];if(tt?qe.unshift(tt.value):qe.length===0?qe.unshift(""):qe.unshift(qe[0]),ie.uri===o.ns_tt)if(ie.local==="tt")Ue!==null&&mt(V,"Two elements at ("+this.line+","+this.column+")"),(Ue=new h).initFromNode(ie,qe[0],V),j.unshift(Ue);else if(ie.local==="head")j[0]instanceof h||mt(V,"Parent of element is not at ("+this.line+","+this.column+")"),j.unshift(Ue.head);else if(ie.local==="styling")j[0]instanceof r||mt(V,"Parent of element is not at ("+this.line+","+this.column+")"),j.unshift(Ue.head.styling);else if(ie.local==="style"){var ae;j[0]instanceof H?((ae=new G).initFromNode(ie,V),ae.id?Ue.head.styling.styles[ae.id]=ae:Ie(V,"