/*! sw.js (wabac.js 2.27.2) is part of Webrecorder project. Copyright (C) 2020-2026, Webrecorder Software. Licensed under the Affero General Public License v3. */var e={152(e,t){class n{static isArrayBuffer(e){return"[object ArrayBuffer]"===Object.prototype.toString.call(e)}static toArrayBuffer(e){return this.isArrayBuffer(e)?e:e.byteLength===e.buffer.byteLength?e.buffer:this.toUint8Array(e).slice().buffer}static toUint8Array(e){return this.toView(e,Uint8Array)}static toView(e,t){if(e.constructor===t)return e;if(this.isArrayBuffer(e))return new t(e);if(this.isArrayBufferView(e))return new t(e.buffer,e.byteOffset,e.byteLength);throw new TypeError("The provided value is not of type '(ArrayBuffer or ArrayBufferView)'")}static isBufferSource(e){return this.isArrayBufferView(e)||this.isArrayBuffer(e)}static isArrayBufferView(e){return ArrayBuffer.isView(e)||e&&this.isArrayBuffer(e.buffer)}static isEqual(e,t){const r=n.toUint8Array(e),i=n.toUint8Array(t);if(r.length!==i.byteLength)return!1;for(let e=0;ee.byteLength).reduce((e,t)=>e+t),n=new Uint8Array(t);let r=0;return e.map(e=>new Uint8Array(e)).forEach(e=>{for(const t of e)n[r++]=t}),n.buffer},t.n4=function(e,t){if(!e||!t)return!1;if(e.byteLength!==t.byteLength)return!1;const n=new Uint8Array(e),r=new Uint8Array(t);for(let t=0;t */ t.read=function(e,t,n,r,i){var s,o,a=8*i-r-1,c=(1<>1,h=-7,u=n?i-1:0,p=n?-1:1,d=e[t+u];for(u+=p,s=d&(1<<-h)-1,d>>=-h,h+=a;h>0;s=256*s+e[t+u],u+=p,h-=8);for(o=s&(1<<-h)-1,s>>=-h,h+=r;h>0;o=256*o+e[t+u],u+=p,h-=8);if(0===s)s=1-l;else{if(s===c)return o?NaN:1/0*(d?-1:1);o+=Math.pow(2,r),s-=l}return(d?-1:1)*o*Math.pow(2,s-r)},t.write=function(e,t,n,r,i,s){var o,a,c,l=8*s-i-1,h=(1<>1,p=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,d=r?0:s-1,f=r?1:-1,g=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,o=h):(o=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-o))<1&&(o--,c*=2),(t+=o+u>=1?p/c:p*Math.pow(2,1-u))*c>=2&&(o++,c/=2),o+u>=h?(a=0,o=h):o+u>=1?(a=(t*c-1)*Math.pow(2,i),o+=u):(a=t*Math.pow(2,u-1)*Math.pow(2,i),o=0));i>=8;e[n+d]=255&a,d+=f,a/=256,i-=8);for(o=o<0;e[n+d]=255&o,d+=f,o/=256,l-=8);e[n+d-f]|=128*g}},345(e,t,n){e.exports=n(7007).EventEmitter},460(e,t,n){const{DANGEROUS_PROPERTY_NAMES:r,criticalProperties:i}=n(5334),s=e=>r.includes(e)?"__"+e:e,o={preserveOrder:!1,attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0},tagValueProcessor:function(e,t){return t},attributeValueProcessor:function(e,t){return t},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(e,t,n){return e},captureMetaData:!1,maxNestedTags:100,strictReservedNames:!0,onDangerousProperty:s};function a(e,t){if("string"!=typeof e)return;const n=e.toLowerCase();if(r.some(e=>n===e.toLowerCase()))throw new Error(`[SECURITY] Invalid ${t}: "${e}" is a reserved JavaScript keyword that could cause prototype pollution`);if(i.some(e=>n===e.toLowerCase()))throw new Error(`[SECURITY] Invalid ${t}: "${e}" is a reserved JavaScript keyword that could cause prototype pollution`)}function c(e){return"boolean"==typeof e?{enabled:e,maxEntitySize:1e4,maxExpansionDepth:10,maxTotalExpansions:1e3,maxExpandedLength:1e5,allowedTags:null,tagFilter:null}:"object"==typeof e&&null!==e?{enabled:!1!==e.enabled,maxEntitySize:Math.max(1,e.maxEntitySize??1e4),maxExpansionDepth:Math.max(1,e.maxExpansionDepth??10),maxTotalExpansions:Math.max(1,e.maxTotalExpansions??1e3),maxExpandedLength:Math.max(1,e.maxExpandedLength??1e5),maxEntityCount:Math.max(1,e.maxEntityCount??100),allowedTags:e.allowedTags??null,tagFilter:e.tagFilter??null}:c(!0)}t.buildOptions=function(e){const t=Object.assign({},o,e),n=[{value:t.attributeNamePrefix,name:"attributeNamePrefix"},{value:t.attributesGroupName,name:"attributesGroupName"},{value:t.textNodeName,name:"textNodeName"},{value:t.cdataPropName,name:"cdataPropName"},{value:t.commentPropName,name:"commentPropName"}];for(const{value:e,name:t}of n)e&&a(e,t);return null===t.onDangerousProperty&&(t.onDangerousProperty=s),t.processEntities=c(t.processEntities),t},t.defaultOptions=o},575(){},640(e){!function(t){const n="(0?\\d+|0x[a-f0-9]+)",r={fourOctet:new RegExp(`^${n}\\.${n}\\.${n}\\.${n}$`,"i"),threeOctet:new RegExp(`^${n}\\.${n}\\.${n}$`,"i"),twoOctet:new RegExp(`^${n}\\.${n}$`,"i"),longValue:new RegExp(`^${n}$`,"i")},i=new RegExp("^0[0-7]+$","i"),s=new RegExp("^0x[a-f0-9]+$","i"),o="%[0-9a-z]{1,}",a="(?:[0-9a-f]+::?)+",c={zoneIndex:new RegExp(o,"i"),native:new RegExp(`^(::)?(${a})?([0-9a-f]+)?(::)?(${o})?$`,"i"),deprecatedTransitional:new RegExp(`^(?:::)(${n}\\.${n}\\.${n}\\.${n}(${o})?)$`,"i"),transitional:new RegExp(`^((?:${a})|(?:::)(?:${a})?)${n}\\.${n}\\.${n}\\.${n}(${o})?$`,"i")};function l(e,t){if(e.indexOf("::")!==e.lastIndexOf("::"))return null;let n,r,i=0,s=-1,o=(e.match(c.zoneIndex)||[])[0];for(o&&(o=o.substring(1),e=e.replace(/%.+$/,""));(s=e.indexOf(":",s+1))>=0;)i++;if("::"===e.substr(0,2)&&i--,"::"===e.substr(-2,2)&&i--,i>t)return null;for(r=t-i,n=":";r--;)n+="0:";return":"===(e=e.replace("::",n))[0]&&(e=e.slice(1)),":"===e[e.length-1]&&(e=e.slice(0,-1)),t=function(){const t=e.split(":"),n=[];for(let e=0;e0;){if(i=n-r,i<0&&(i=0),e[s]>>i!==t[s]>>i)return!1;r-=n,s+=1}return!0}function u(e){if(s.test(e))return parseInt(e,16);if("0"===e[0]&&!isNaN(parseInt(e[1],10))){if(i.test(e))return parseInt(e,8);throw new Error(`ipaddr: cannot parse ${e} as octal`)}return parseInt(e,10)}function p(e,t){for(;e.length=0;r-=1){if(i=this.octets[r],!(i in n))return null;if(s=n[i],t&&0!==s)return null;8!==s&&(t=!0),e+=s}return 32-e},e.prototype.range=function(){return d.subnetMatch(this,this.SpecialRanges)},e.prototype.toByteArray=function(){return this.octets.slice(0)},e.prototype.toIPv4MappedAddress=function(){return d.IPv6.parse(`::ffff:${this.toString()}`)},e.prototype.toNormalizedString=function(){return this.toString()},e.prototype.toString=function(){return this.octets.join(".")},e}(),d.IPv4.broadcastAddressFromCIDR=function(e){try{const t=this.parseCIDR(e),n=t[0].toByteArray(),r=this.subnetMaskFromPrefixLength(t[1]).toByteArray(),i=[];let s=0;for(;s<4;)i.push(parseInt(n[s],10)|255^parseInt(r[s],10)),s++;return new this(i)}catch(e){throw new Error("ipaddr: the address does not have IPv4 CIDR format")}},d.IPv4.isIPv4=function(e){return null!==this.parser(e)},d.IPv4.isValid=function(e){try{return new this(this.parser(e)),!0}catch(e){return!1}},d.IPv4.isValidFourPartDecimal=function(e){return!(!d.IPv4.isValid(e)||!e.match(/^(0|[1-9]\d*)(\.(0|[1-9]\d*)){3}$/))},d.IPv4.networkAddressFromCIDR=function(e){let t,n,r,i,s;try{for(t=this.parseCIDR(e),r=t[0].toByteArray(),s=this.subnetMaskFromPrefixLength(t[1]).toByteArray(),i=[],n=0;n<4;)i.push(parseInt(r[n],10)&parseInt(s[n],10)),n++;return new this(i)}catch(e){throw new Error("ipaddr: the address does not have IPv4 CIDR format")}},d.IPv4.parse=function(e){const t=this.parser(e);if(null===t)throw new Error("ipaddr: string is not formatted like an IPv4 Address");return new this(t)},d.IPv4.parseCIDR=function(e){let t;if(t=e.match(/^(.+)\/(\d+)$/)){const e=parseInt(t[2]);if(e>=0&&e<=32){const n=[this.parse(t[1]),e];return Object.defineProperty(n,"toString",{value:function(){return this.join("/")}}),n}}throw new Error("ipaddr: string is not formatted like an IPv4 CIDR range")},d.IPv4.parser=function(e){let t,n,i;if(t=e.match(r.fourOctet))return function(){const e=t.slice(1,6),r=[];for(let t=0;t4294967295||i<0)throw new Error("ipaddr: address outside defined range");return function(){const e=[];let t;for(t=0;t<=24;t+=8)e.push(i>>t&255);return e}().reverse()}return(t=e.match(r.twoOctet))?function(){const e=t.slice(1,4),n=[];if(i=u(e[1]),i>16777215||i<0)throw new Error("ipaddr: address outside defined range");return n.push(u(e[0])),n.push(i>>16&255),n.push(i>>8&255),n.push(255&i),n}():(t=e.match(r.threeOctet))?function(){const e=t.slice(1,5),n=[];if(i=u(e[2]),i>65535||i<0)throw new Error("ipaddr: address outside defined range");return n.push(u(e[0])),n.push(u(e[1])),n.push(i>>8&255),n.push(255&i),n}():null},d.IPv4.subnetMaskFromPrefixLength=function(e){if((e=parseInt(e))<0||e>32)throw new Error("ipaddr: invalid IPv4 prefix length");const t=[0,0,0,0];let n=0;const r=Math.floor(e/8);for(;n=0;s-=1){if(r=this.parts[s],!(r in n))return null;if(i=n[r],t&&0!==i)return null;16!==i&&(t=!0),e+=i}return 128-e},e.prototype.range=function(){return d.subnetMatch(this,this.SpecialRanges)},e.prototype.toByteArray=function(){let e;const t=[],n=this.parts;for(let r=0;r>8),t.push(255&e);return t},e.prototype.toFixedLengthString=function(){const e=function(){const e=[];for(let t=0;t>8,255&t,n>>8,255&n])},e.prototype.toNormalizedString=function(){const e=function(){const e=[];for(let t=0;ti&&(r=n.index,i=n[0].length);return i<0?t:`${t.substring(0,r)}::${t.substring(r+i)}`},e.prototype.toString=function(){return this.toNormalizedString().replace(/((^|:)(0(:|$))+)/,"::")},e}(),d.IPv6.broadcastAddressFromCIDR=function(e){try{const t=this.parseCIDR(e),n=t[0].toByteArray(),r=this.subnetMaskFromPrefixLength(t[1]).toByteArray(),i=[];let s=0;for(;s<16;)i.push(parseInt(n[s],10)|255^parseInt(r[s],10)),s++;return new this(i)}catch(e){throw new Error(`ipaddr: the address does not have IPv6 CIDR format (${e})`)}},d.IPv6.isIPv6=function(e){return null!==this.parser(e)},d.IPv6.isValid=function(e){if("string"==typeof e&&-1===e.indexOf(":"))return!1;try{const t=this.parser(e);return new this(t.parts,t.zoneId),!0}catch(e){return!1}},d.IPv6.networkAddressFromCIDR=function(e){let t,n,r,i,s;try{for(t=this.parseCIDR(e),r=t[0].toByteArray(),s=this.subnetMaskFromPrefixLength(t[1]).toByteArray(),i=[],n=0;n<16;)i.push(parseInt(r[n],10)&parseInt(s[n],10)),n++;return new this(i)}catch(e){throw new Error(`ipaddr: the address does not have IPv6 CIDR format (${e})`)}},d.IPv6.parse=function(e){const t=this.parser(e);if(null===t.parts)throw new Error("ipaddr: string is not formatted like an IPv6 Address");return new this(t.parts,t.zoneId)},d.IPv6.parseCIDR=function(e){let t,n,r;if((n=e.match(/^(.+)\/(\d+)$/))&&(t=parseInt(n[2]),t>=0&&t<=128))return r=[this.parse(n[1]),t],Object.defineProperty(r,"toString",{value:function(){return this.join("/")}}),r;throw new Error("ipaddr: string is not formatted like an IPv6 CIDR range")},d.IPv6.parser=function(e){let t,n,r,i,s,o;if(r=e.match(c.deprecatedTransitional))return this.parser(`::ffff:${r[1]}`);if(c.native.test(e))return l(e,8);if((r=e.match(c.transitional))&&(o=r[6]||"",t=l(r[1].slice(0,-1)+o,6),t.parts)){for(s=[parseInt(r[2]),parseInt(r[3]),parseInt(r[4]),parseInt(r[5])],n=0;n128)throw new Error("ipaddr: invalid IPv6 prefix length");const t=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];let n=0;const r=Math.floor(e/8);for(;n>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function p(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new r.Buf16(320),this.work=new r.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function d(e){var t;return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=1,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new r.Buf32(852),t.distcode=t.distdyn=new r.Buf32(592),t.sane=1,t.back=-1,0):c}function f(e){var t;return e&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,d(e)):c}function g(e,t){var n,r;return e&&e.state?(r=e.state,t<0?(n=0,t=-t):(n=1+(t>>4),t<48&&(t&=15)),t&&(t<8||t>15)?c:(null!==r.window&&r.wbits!==t&&(r.window=null),r.wrap=n,r.wbits=t,f(e))):c}function m(e,t){var n,r;return e?(r=new p,e.state=r,r.window=null,0!==(n=g(e,t))&&(e.state=null),n):c}var w,y,b=!0;function A(e){if(b){var t;for(w=new r.Buf32(512),y=new r.Buf32(32),t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(a(1,e.lens,0,288,w,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;a(2,e.lens,0,32,y,0,e.work,{bits:5}),b=!1}e.lencode=w,e.lenbits=9,e.distcode=y,e.distbits=5}function v(e,t,n,i){var s,o=e.state;return null===o.window&&(o.wsize=1<=o.wsize?(r.arraySet(o.window,t,n-o.wsize,o.wsize,0),o.wnext=0,o.whave=o.wsize):((s=o.wsize-o.wnext)>i&&(s=i),r.arraySet(o.window,t,n-i,s,o.wnext),(i-=s)?(r.arraySet(o.window,t,n-i,i,0),o.wnext=i,o.whave=o.wsize):(o.wnext+=s,o.wnext===o.wsize&&(o.wnext=0),o.whave>>8&255,n.check=s(n.check,M,2,0),y=0,b=0,n.mode=2;break}if(n.flags=0,n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&y)<<8)+(y>>8))%31){e.msg="incorrect header check",n.mode=h;break}if(8!=(15&y)){e.msg="unknown compression method",n.mode=h;break}if(b-=4,B=8+(15&(y>>>=4)),0===n.wbits)n.wbits=B;else if(B>n.wbits){e.msg="invalid window size",n.mode=h;break}n.dmax=1<>8&1),512&n.flags&&(M[0]=255&y,M[1]=y>>>8&255,n.check=s(n.check,M,2,0)),y=0,b=0,n.mode=3;case 3:for(;b<32;){if(0===m)break e;m--,y+=p[f++]<>>8&255,M[2]=y>>>16&255,M[3]=y>>>24&255,n.check=s(n.check,M,4,0)),y=0,b=0,n.mode=4;case 4:for(;b<16;){if(0===m)break e;m--,y+=p[f++]<>8),512&n.flags&&(M[0]=255&y,M[1]=y>>>8&255,n.check=s(n.check,M,2,0)),y=0,b=0,n.mode=5;case 5:if(1024&n.flags){for(;b<16;){if(0===m)break e;m--,y+=p[f++]<>>8&255,n.check=s(n.check,M,2,0)),y=0,b=0}else n.head&&(n.head.extra=null);n.mode=6;case 6:if(1024&n.flags&&((x=n.length)>m&&(x=m),x&&(n.head&&(B=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Array(n.head.extra_len)),r.arraySet(n.head.extra,p,f,x,B)),512&n.flags&&(n.check=s(n.check,p,x,f)),m-=x,f+=x,n.length-=x),n.length))break e;n.length=0,n.mode=7;case 7:if(2048&n.flags){if(0===m)break e;x=0;do{B=p[f+x++],n.head&&B&&n.length<65536&&(n.head.name+=String.fromCharCode(B))}while(B&&x>9&1,n.head.done=!0),e.adler=n.check=0,n.mode=l;break;case 10:for(;b<32;){if(0===m)break e;m--,y+=p[f++]<>>=7&b,b-=7&b,n.mode=27;break}for(;b<3;){if(0===m)break e;m--,y+=p[f++]<>>=1)){case 0:n.mode=14;break;case 1:if(A(n),n.mode=20,6===t){y>>>=2,b-=2;break e}break;case 2:n.mode=17;break;case 3:e.msg="invalid block type",n.mode=h}y>>>=2,b-=2;break;case 14:for(y>>>=7&b,b-=7&b;b<32;){if(0===m)break e;m--,y+=p[f++]<>>16^65535)){e.msg="invalid stored block lengths",n.mode=h;break}if(n.length=65535&y,y=0,b=0,n.mode=15,6===t)break e;case 15:n.mode=16;case 16:if(x=n.length){if(x>m&&(x=m),x>w&&(x=w),0===x)break e;r.arraySet(d,p,f,x,g),m-=x,f+=x,w-=x,g+=x,n.length-=x;break}n.mode=l;break;case 17:for(;b<14;){if(0===m)break e;m--,y+=p[f++]<>>=5,b-=5,n.ndist=1+(31&y),y>>>=5,b-=5,n.ncode=4+(15&y),y>>>=4,b-=4,n.nlen>286||n.ndist>30){e.msg="too many length or distance symbols",n.mode=h;break}n.have=0,n.mode=18;case 18:for(;n.have>>=3,b-=3}for(;n.have<19;)n.lens[F[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,D={bits:n.lenbits},P=a(0,n.lens,0,19,n.lencode,0,n.work,D),n.lenbits=D.bits,P){e.msg="invalid code lengths set",n.mode=h;break}n.have=0,n.mode=19;case 19:for(;n.have>>16&255,R=65535&U,!((T=U>>>24)<=b);){if(0===m)break e;m--,y+=p[f++]<>>=T,b-=T,n.lens[n.have++]=R;else{if(16===R){for(L=T+2;b>>=T,b-=T,0===n.have){e.msg="invalid bit length repeat",n.mode=h;break}B=n.lens[n.have-1],x=3+(3&y),y>>>=2,b-=2}else if(17===R){for(L=T+3;b>>=T)),y>>>=3,b-=3}else{for(L=T+7;b>>=T)),y>>>=7,b-=7}if(n.have+x>n.nlen+n.ndist){e.msg="invalid bit length repeat",n.mode=h;break}for(;x--;)n.lens[n.have++]=B}}if(n.mode===h)break;if(0===n.lens[256]){e.msg="invalid code -- missing end-of-block",n.mode=h;break}if(n.lenbits=9,D={bits:n.lenbits},P=a(1,n.lens,0,n.nlen,n.lencode,0,n.work,D),n.lenbits=D.bits,P){e.msg="invalid literal/lengths set",n.mode=h;break}if(n.distbits=6,n.distcode=n.distdyn,D={bits:n.distbits},P=a(2,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,D),n.distbits=D.bits,P){e.msg="invalid distances set",n.mode=h;break}if(n.mode=20,6===t)break e;case 20:n.mode=21;case 21:if(m>=6&&w>=258){e.next_out=g,e.avail_out=w,e.next_in=f,e.avail_in=m,n.hold=y,n.bits=b,o(e,E),g=e.next_out,d=e.output,w=e.avail_out,f=e.next_in,p=e.input,m=e.avail_in,y=n.hold,b=n.bits,n.mode===l&&(n.back=-1);break}for(n.back=0;C=(U=n.lencode[y&(1<>>16&255,R=65535&U,!((T=U>>>24)<=b);){if(0===m)break e;m--,y+=p[f++]<>O)])>>>16&255,R=65535&U,!(O+(T=U>>>24)<=b);){if(0===m)break e;m--,y+=p[f++]<>>=O,b-=O,n.back+=O}if(y>>>=T,b-=T,n.back+=T,n.length=R,0===C){n.mode=26;break}if(32&C){n.back=-1,n.mode=l;break}if(64&C){e.msg="invalid literal/length code",n.mode=h;break}n.extra=15&C,n.mode=22;case 22:if(n.extra){for(L=n.extra;b>>=n.extra,b-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=23;case 23:for(;C=(U=n.distcode[y&(1<>>16&255,R=65535&U,!((T=U>>>24)<=b);){if(0===m)break e;m--,y+=p[f++]<>O)])>>>16&255,R=65535&U,!(O+(T=U>>>24)<=b);){if(0===m)break e;m--,y+=p[f++]<>>=O,b-=O,n.back+=O}if(y>>>=T,b-=T,n.back+=T,64&C){e.msg="invalid distance code",n.mode=h;break}n.offset=R,n.extra=15&C,n.mode=24;case 24:if(n.extra){for(L=n.extra;b>>=n.extra,b-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){e.msg="invalid distance too far back",n.mode=h;break}n.mode=25;case 25:if(0===w)break e;if(x=E-w,n.offset>x){if((x=n.offset-x)>n.whave&&n.sane){e.msg="invalid distance too far back",n.mode=h;break}x>n.wnext?(x-=n.wnext,I=n.wsize-x):I=n.wnext-x,x>n.length&&(x=n.length),S=n.window}else S=d,I=g-n.offset,x=n.length;x>w&&(x=w),w-=x,n.length-=x;do{d[g++]=S[I++]}while(--x);0===n.length&&(n.mode=21);break;case 26:if(0===w)break e;d[g++]=n.length,w--,n.mode=21;break;case 27:if(n.wrap){for(;b<32;){if(0===m)break e;m--,y|=p[f++]<=252?6:a>=248?5:a>=240?4:a>=224?3:a>=192?2:1;function c(e,t){if(t<65534&&(e.subarray&&s||!e.subarray&&i))return String.fromCharCode.apply(null,r.shrinkBuf(e,t));for(var n="",o=0;o>>6,t[o++]=128|63&n):n<65536?(t[o++]=224|n>>>12,t[o++]=128|n>>>6&63,t[o++]=128|63&n):(t[o++]=240|n>>>18,t[o++]=128|n>>>12&63,t[o++]=128|n>>>6&63,t[o++]=128|63&n);return t},t.buf2binstring=function(e){return c(e,e.length)},t.binstring2buf=function(e){for(var t=new r.Buf8(e.length),n=0,i=t.length;n4)l[r++]=65533,n+=s-1;else{for(i&=2===s?31:3===s?15:7;s>1&&n1?l[r++]=65533:i<65536?l[r++]=i:(i-=65536,l[r++]=55296|i>>10&1023,l[r++]=56320|1023&i)}return c(l,r)},t.utf8border=function(e,t){var n;for((t=t||e.length)>e.length&&(t=e.length),n=t-1;n>=0&&128==(192&e[n]);)n--;return n<0||0===n?t:n+o[e[n]]>t?n:t}},1998(e,t,n){var r=n(9805),i=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],s=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],o=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],a=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];e.exports=function(e,t,n,c,l,h,u,p){var d,f,g,m,w,y,b,A,v,_=p.bits,E=0,x=0,I=0,S=0,T=0,C=0,R=0,O=0,k=0,N=0,B=null,P=0,D=new r.Buf16(16),L=new r.Buf16(16),U=null,M=0;for(E=0;E<=15;E++)D[E]=0;for(x=0;x=1&&0===D[S];S--);if(T>S&&(T=S),0===S)return l[h++]=20971520,l[h++]=20971520,p.bits=1,0;for(I=1;I0&&(0===e||1!==S))return-1;for(L[1]=0,E=1;E<15;E++)L[E+1]=L[E]+D[E];for(x=0;x852||2===e&&k>592)return 1;for(;;){b=E-R,u[x]y?(A=U[M+u[x]],v=B[P+u[x]]):(A=96,v=0),d=1<>R)+(f-=d)]=b<<24|A<<16|v}while(0!==f);for(d=1<>=1;if(0!==d?(N&=d-1,N+=d):N=0,x++,0===--D[E]){if(E===S)break;E=t[n+u[x]]}if(E>T&&(N&m)!==g){for(0===R&&(R=T),w+=I,O=1<<(C=E-R);C+R852||2===e&&k>592)return 1;l[g=N&m]=T<<24|C<<16|w-h}}return 0!==N&&(l[w+N]=E-R<<24|64<<16),p.bits=T,0}},2726(e,t,n){function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(e,t){for(var n=0;n0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var t=this.head,n=""+t.data;t=t.next;)n+=e+t.data;return n}},{key:"concat",value:function(e){if(0===this.length)return o.alloc(0);for(var t=o.allocUnsafe(e>>>0),n=this.head,r=0;n;)l(n.data,t,r),r+=n.data.length,n=n.next;return t}},{key:"consume",value:function(e,t){var n;return ei.length?i.length:e;if(s===i.length?r+=i:r+=i.slice(0,e),0===(e-=s)){s===i.length?(++n,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=i.slice(s));break}++n}return this.length-=n,r}},{key:"_getBuffer",value:function(e){var t=o.allocUnsafe(e),n=this.head,r=1;for(n.data.copy(t),e-=n.data.length;n=n.next;){var i=n.data,s=e>i.length?i.length:e;if(i.copy(t,t.length-e,0,s),0===(e-=s)){s===i.length?(++r,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=i.slice(s));break}++r}return this.length-=r,t}},{key:c,value:function(e,t){return a(this,function(e){for(var t=1;t`,h=!1;continue}if(d===o.commentPropName){l+=c+`\x3c!--${p[d][0][o.textNodeName]}--\x3e`,h=!0;continue}if("?"===d[0]){const e=r(p[":@"],o),t="?xml"===d?"":c;let n=p[d][0][o.textNodeName];n=0!==n.length?" "+n:"",l+=t+`<${d}${n}${e}?>`,h=!0;continue}let g=c;""!==g&&(g+=o.indentBy);const m=c+`<${d}${r(p[":@"],o)}`,w=t(p[d],o,f,g);-1!==o.unpairedTags.indexOf(d)?o.suppressUnpairedNode?l+=m+">":l+=m+"/>":w&&0!==w.length||!o.suppressEmptyNode?w&&w.endsWith(">")?l+=m+`>${w}${c}`:(l+=m+">",w&&""!==c&&(w.includes("/>")||w.includes("`):l+=m+"/>",h=!0}return l}function n(e){const t=Object.keys(e);for(let n=0;n0&&t.processEntities)for(let n=0;n0&&(r="\n"),t(e,n,"",r)}},2805(e,t){t.lookup=new Uint8Array([0,0,0,0,0,0,0,0,0,4,4,0,0,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8,12,16,12,12,20,12,16,24,28,12,12,32,12,36,12,44,44,44,44,44,44,44,44,44,44,32,32,24,40,28,12,12,48,52,52,52,48,52,52,52,48,52,52,52,52,52,48,52,52,52,52,52,48,52,52,52,52,52,24,12,28,12,12,12,56,60,60,60,56,60,60,60,56,60,60,60,60,60,56,60,60,60,60,60,56,60,60,60,60,60,24,12,28,12,0,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,0,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,56,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,6,6,6,6,7,7,7,7,8,8,8,8,9,9,9,9,10,10,10,10,11,11,11,11,12,12,12,12,13,13,13,13,14,14,14,14,15,15,15,15,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,22,22,22,22,23,23,23,23,24,24,24,24,25,25,25,25,26,26,26,26,27,27,27,27,28,28,28,28,29,29,29,29,30,30,30,30,31,31,31,31,32,32,32,32,33,33,33,33,34,34,34,34,35,35,35,35,36,36,36,36,37,37,37,37,38,38,38,38,39,39,39,39,40,40,40,40,41,41,41,41,42,42,42,42,43,43,43,43,44,44,44,44,45,45,45,45,46,46,46,46,47,47,47,47,48,48,48,48,49,49,49,49,50,50,50,50,51,51,51,51,52,52,52,52,53,53,53,53,54,54,54,54,55,55,55,55,56,56,56,56,57,57,57,57,58,58,58,58,59,59,59,59,60,60,60,60,61,61,61,61,62,62,62,62,63,63,63,63,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),t.lookupOffsets=new Uint16Array([1024,1536,1280,1536,0,256,768,512])},2861(e,t,n){ /*! safe-buffer. MIT License. Feross Aboukhadijeh */ var r=n(8287),i=r.Buffer;function s(e,t){for(var n in e)t[n]=e[n]}function o(e,t,n){return i(e,t,n)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=r:(s(r,t),t.Buffer=o),o.prototype=Object.create(i.prototype),s(i,o),o.from=function(e,t,n){if("number"==typeof e)throw new TypeError("Argument must not be a number");return i(e,t,n)},o.alloc=function(e,t,n){if("number"!=typeof e)throw new TypeError("Argument must be a number");var r=i(e);return void 0!==t?"string"==typeof n?r.fill(t,n):r.fill(t):r.fill(0),r},o.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i(e)},o.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return r.SlowBuffer(e)}},2923(e,t,n){const{buildOptions:r}=n(460),i=n(7680),{prettify:s}=n(5629),o=n(3918);e.exports=class{constructor(e){this.externalEntities={},this.options=r(e)}parse(e,t){if("string"==typeof e);else{if(!e.toString)throw new Error("XML data is accepted in String or Bytes[] form.");e=e.toString()}if(t){!0===t&&(t={});const n=o.validate(e,t);if(!0!==n)throw Error(`${n.err.msg}:${n.err.line}:${n.err.col}`)}const n=new i(this.options);n.addExternalEntities(this.externalEntities);const r=n.parseXml(e);return this.options.preserveOrder||void 0===r?r:s(r,this.options)}addEntity(e,t){if(-1!==t.indexOf("&"))throw new Error("Entity value can't have '&'");if(-1!==e.indexOf("&")||-1!==e.indexOf(";"))throw new Error("An entity must be set without '&' and ';'. Eg. use '#xD' for ' '");if("&"===t)throw new Error("An entity with value '&' is not permitted");this.externalEntities[e]=t}}},2955(e,t,n){var r,i=n(5606);function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=n(6238),a=Symbol("lastResolve"),c=Symbol("lastReject"),l=Symbol("error"),h=Symbol("ended"),u=Symbol("lastPromise"),p=Symbol("handlePromise"),d=Symbol("stream");function f(e,t){return{value:e,done:t}}function g(e){var t=e[a];if(null!==t){var n=e[d].read();null!==n&&(e[u]=null,e[a]=null,e[c]=null,t(f(n,!1)))}}function m(e){i.nextTick(g,e)}var w=Object.getPrototypeOf(function(){}),y=Object.setPrototypeOf((r={get stream(){return this[d]},next:function(){var e=this,t=this[l];if(null!==t)return Promise.reject(t);if(this[h])return Promise.resolve(f(void 0,!0));if(this[d].destroyed)return new Promise(function(t,n){i.nextTick(function(){e[l]?n(e[l]):t(f(void 0,!0))})});var n,r=this[u];if(r)n=new Promise(function(e,t){return function(n,r){e.then(function(){t[h]?n(f(void 0,!0)):t[p](n,r)},r)}}(r,this));else{var s=this[d].read();if(null!==s)return Promise.resolve(f(s,!1));n=new Promise(this[p])}return this[u]=n,n}},s(r,Symbol.asyncIterator,function(){return this}),s(r,"return",function(){var e=this;return new Promise(function(t,n){e[d].destroy(null,function(e){e?n(e):t(f(void 0,!0))})})}),r),w);e.exports=function(e){var t,n=Object.create(y,(s(t={},d,{value:e,writable:!0}),s(t,a,{value:null,writable:!0}),s(t,c,{value:null,writable:!0}),s(t,l,{value:null,writable:!0}),s(t,h,{value:e._readableState.endEmitted,writable:!0}),s(t,p,{value:function(e,t){var r=n[d].read();r?(n[u]=null,n[a]=null,n[c]=null,e(f(r,!1))):(n[a]=e,n[c]=t)},writable:!0}),t));return n[u]=null,o(e,function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=n[c];return null!==t&&(n[u]=null,n[a]=null,n[c]=null,t(e)),void(n[l]=e)}var r=n[a];null!==r&&(n[u]=null,n[a]=null,n[c]=null,r(f(void 0,!0))),n[h]=!0}),e.on("readable",m.bind(null,n)),n}},3085(e){e.exports=function(e){return"function"==typeof e?e:Array.isArray(e)?t=>{for(const n of e){if("string"==typeof n&&t===n)return!0;if(n instanceof RegExp&&n.test(t))return!0}}:()=>!1}},3141(e,t,n){var r=n(2861).Buffer,i=r.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function s(e){var t;switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!=typeof t&&(r.isEncoding===i||!i(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=c,this.end=l,t=4;break;case"utf8":this.fillLast=a,t=4;break;case"base64":this.text=h,this.end=u,t=3;break;default:return this.write=p,void(this.end=d)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(t)}function o(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function a(e){var t=this.lastTotal-this.lastNeed,n=function(e,t){if(128!=(192&t[0]))return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"�"}}(this,e);return void 0!==n?n:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function c(e,t){if((e.length-t)%2==0){var n=e.toString("utf16le",t);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function l(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,n)}return t}function h(e,t){var n=(e.length-t)%3;return 0===n?e.toString("base64",t):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-n))}function u(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function p(e){return e.toString(this.encoding)}function d(e){return e&&e.length?this.write(e):""}t.I=s,s.prototype.write=function(e){if(0===e.length)return"";var t,n;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n=0?(i>0&&(e.lastNeed=i-1),i):--r=0?(i>0&&(e.lastNeed=i-2),i):--r=0?(i>0&&(2===i?i=0:e.lastNeed=i-3),i):0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=n;var r=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString("utf8",t,r)},s.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},3269(e){e.exports=function(e,t,n,r){for(var i=65535&e,s=e>>>16&65535,o=0;0!==n;){n-=o=n>2e3?2e3:n;do{s=s+(i=i+t[r++]|0)|0}while(--o);i%=65521,s%=65521}return i|s<<16}},3303(e,t,n){var r=n(8411),i=n(9805),s=n(1996),o=n(4674),a=n(4442),c=Object.prototype.toString;function l(e){if(!(this instanceof l))return new l(e);this.options=i.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},e||{});var t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new a,this.strm.avail_out=0;var n=r.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(0!==n)throw new Error(o[n]);if(t.header&&r.deflateSetHeader(this.strm,t.header),t.dictionary){var h;if(h="string"==typeof t.dictionary?s.string2buf(t.dictionary):"[object ArrayBuffer]"===c.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,0!==(n=r.deflateSetDictionary(this.strm,h)))throw new Error(o[n]);this._dict_set=!0}}function h(e,t){var n=new l(t);if(n.push(e,!0),n.err)throw n.msg||o[n.err];return n.result}l.prototype.push=function(e,t){var n,o,a=this.strm,l=this.options.chunkSize;if(this.ended)return!1;o=t===~~t?t:!0===t?4:0,"string"==typeof e?a.input=s.string2buf(e):"[object ArrayBuffer]"===c.call(e)?a.input=new Uint8Array(e):a.input=e,a.next_in=0,a.avail_in=a.input.length;do{if(0===a.avail_out&&(a.output=new i.Buf8(l),a.next_out=0,a.avail_out=l),1!==(n=r.deflate(a,o))&&0!==n)return this.onEnd(n),this.ended=!0,!1;0!==a.avail_out&&(0!==a.avail_in||4!==o&&2!==o)||("string"===this.options.to?this.onData(s.buf2binstring(i.shrinkBuf(a.output,a.next_out))):this.onData(i.shrinkBuf(a.output,a.next_out)))}while((a.avail_in>0||0===a.avail_out)&&1!==n);return 4===o?(n=r.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,0===n):2!==o||(this.onEnd(0),a.avail_out=0,!0)},l.prototype.onData=function(e){this.chunks.push(e)},l.prototype.onEnd=function(e){0===e&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},t.Deflate=l,t.deflate=h,t.deflateRaw=function(e,t){return(t=t||{}).raw=!0,h(e,t)},t.gzip=function(e,t){return(t=t||{}).gzip=!0,h(e,t)}},3390(e,t){t.byteLength=function(e){var t=a(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){for(var t,n=a(e),s=n[0],o=n[1],c=new i(function(e,t,n){return 3*(t+n)/4-n}(0,s,o)),l=0,h=o>0?s-4:s,u=0;u>16&255,c[l++]=t>>8&255,c[l++]=255&t;return 2===o&&(t=r[e.charCodeAt(u)]<<2|r[e.charCodeAt(u+1)]>>4,c[l++]=255&t),1===o&&(t=r[e.charCodeAt(u)]<<10|r[e.charCodeAt(u+1)]<<4|r[e.charCodeAt(u+2)]>>2,c[l++]=t>>8&255,c[l++]=255&t),c},t.fromByteArray=function(e){for(var t,r=e.length,i=r%3,s=[],o=16383,a=0,c=r-i;ac?c:a+o));return 1===i?(t=e[r-1],s.push(n[t>>2]+n[t<<4&63]+"==")):2===i&&(t=(e[r-2]<<8)+e[r-1],s.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"=")),s.join("")};for(var n=[],r=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0;o<64;++o)n[o]=s[o],r[s.charCodeAt(o)]=o;function a(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function c(e){return n[e>>18&63]+n[e>>12&63]+n[e>>6&63]+n[63&e]}function l(e,t,n){for(var r,i=[],s=t;s=0;)e[t]=0}var s=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],o=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],a=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],c=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],l=new Array(576);i(l);var h=new Array(60);i(h);var u=new Array(512);i(u);var p=new Array(256);i(p);var d=new Array(29);i(d);var f,g,m,w=new Array(30);function y(e,t,n,r,i){this.static_tree=e,this.extra_bits=t,this.extra_base=n,this.elems=r,this.max_length=i,this.has_stree=e&&e.length}function b(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function A(e){return e<256?u[e]:u[256+(e>>>7)]}function v(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function _(e,t,n){e.bi_valid>16-n?(e.bi_buf|=t<>16-e.bi_valid,e.bi_valid+=n-16):(e.bi_buf|=t<>>=1,n<<=1}while(--t>0);return n>>>1}function I(e,t,n){var r,i,s=new Array(16),o=0;for(r=1;r<=15;r++)s[r]=o=o+n[r-1]<<1;for(i=0;i<=t;i++){var a=e[2*i+1];0!==a&&(e[2*i]=x(s[a]++,a))}}function S(e){var t;for(t=0;t<286;t++)e.dyn_ltree[2*t]=0;for(t=0;t<30;t++)e.dyn_dtree[2*t]=0;for(t=0;t<19;t++)e.bl_tree[2*t]=0;e.dyn_ltree[512]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function T(e){e.bi_valid>8?v(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function C(e,t,n,r){var i=2*t,s=2*n;return e[i]>1;n>=1;n--)R(e,s,n);i=c;do{n=e.heap[1],e.heap[1]=e.heap[e.heap_len--],R(e,s,1),r=e.heap[1],e.heap[--e.heap_max]=n,e.heap[--e.heap_max]=r,s[2*i]=s[2*n]+s[2*r],e.depth[i]=(e.depth[n]>=e.depth[r]?e.depth[n]:e.depth[r])+1,s[2*n+1]=s[2*r+1]=i,e.heap[1]=i++,R(e,s,1)}while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],function(e,t){var n,r,i,s,o,a,c=t.dyn_tree,l=t.max_code,h=t.stat_desc.static_tree,u=t.stat_desc.has_stree,p=t.stat_desc.extra_bits,d=t.stat_desc.extra_base,f=t.stat_desc.max_length,g=0;for(s=0;s<=15;s++)e.bl_count[s]=0;for(c[2*e.heap[e.heap_max]+1]=0,n=e.heap_max+1;n<573;n++)(s=c[2*c[2*(r=e.heap[n])+1]+1]+1)>f&&(s=f,g++),c[2*r+1]=s,r>l||(e.bl_count[s]++,o=0,r>=d&&(o=p[r-d]),a=c[2*r],e.opt_len+=a*(s+o),u&&(e.static_len+=a*(h[2*r+1]+o)));if(0!==g){do{for(s=f-1;0===e.bl_count[s];)s--;e.bl_count[s]--,e.bl_count[s+1]+=2,e.bl_count[f]--,g-=2}while(g>0);for(s=f;0!==s;s--)for(r=e.bl_count[s];0!==r;)(i=e.heap[--n])>l||(c[2*i+1]!==s&&(e.opt_len+=(s-c[2*i+1])*c[2*i],c[2*i+1]=s),r--)}}(e,t),I(s,l,e.bl_count)}function N(e,t,n){var r,i,s=-1,o=t[1],a=0,c=7,l=4;for(0===o&&(c=138,l=3),t[2*(n+1)+1]=65535,r=0;r<=n;r++)i=o,o=t[2*(r+1)+1],++a>=7;r<30;r++)for(w[r]=i<<7,e=0;e<1<0?(2===e.strm.data_type&&(e.strm.data_type=function(e){var t,n=4093624447;for(t=0;t<=31;t++,n>>>=1)if(1&n&&0!==e.dyn_ltree[2*t])return 0;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return 1;for(t=32;t<256;t++)if(0!==e.dyn_ltree[2*t])return 1;return 0}(e)),k(e,e.l_desc),k(e,e.d_desc),o=function(e){var t;for(N(e,e.dyn_ltree,e.l_desc.max_code),N(e,e.dyn_dtree,e.d_desc.max_code),k(e,e.bl_desc),t=18;t>=3&&0===e.bl_tree[2*c[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t}(e),i=e.opt_len+3+7>>>3,(s=e.static_len+3+7>>>3)<=i&&(i=s)):i=s=n+5,n+4<=i&&-1!==t?D(e,t,n,r):4===e.strategy||s===i?(_(e,2+(r?1:0),3),O(e,l,h)):(_(e,4+(r?1:0),3),function(e,t,n,r){var i;for(_(e,t-257,5),_(e,n-1,5),_(e,r-4,4),i=0;i>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&n,e.last_lit++,0===t?e.dyn_ltree[2*n]++:(e.matches++,t--,e.dyn_ltree[2*(p[n]+256+1)]++,e.dyn_dtree[2*A(t)]++),e.last_lit===e.lit_bufsize-1},t._tr_align=function(e){_(e,2,3),E(e,256,l),function(e){16===e.bi_valid?(v(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)}(e)}},3832(e){e.exports=class{constructor(e){this.tagname=e,this.child=[],this[":@"]={}}add(e,t){"__proto__"===e&&(e="#__proto__"),this.child.push({[e]:t})}addChild(e){"__proto__"===e.tagname&&(e.tagname="#__proto__"),e[":@"]&&Object.keys(e[":@"]).length>0?this.child.push({[e.tagname]:e.child,":@":e[":@"]}):this.child.push({[e.tagname]:e.child})}}},3918(e,t,n){const r=n(5334),i={allowBooleanAttributes:!1,unpairedTags:[]};function s(e){return" "===e||"\t"===e||"\n"===e||"\r"===e}function o(e,t){const n=t;for(;t5&&"xml"===r)return p("InvalidXml","XML declaration allowed only at the start of the document.",g(e,t));if("?"==e[t]&&">"==e[t+1]){t++;break}continue}return t}function a(e,t){if(e.length>t+5&&"-"===e[t+1]&&"-"===e[t+2]){for(t+=3;t"===e[t+2]){t+=2;break}}else if(e.length>t+8&&"D"===e[t+1]&&"O"===e[t+2]&&"C"===e[t+3]&&"T"===e[t+4]&&"Y"===e[t+5]&&"P"===e[t+6]&&"E"===e[t+7]){let n=1;for(t+=8;t"===e[t]&&(n--,0===n))break}else if(e.length>t+9&&"["===e[t+1]&&"C"===e[t+2]&&"D"===e[t+3]&&"A"===e[t+4]&&"T"===e[t+5]&&"A"===e[t+6]&&"["===e[t+7])for(t+=8;t"===e[t+2]){t+=2;break}return t}function c(e,t){let n="",r="",i=!1;for(;t"===e[t]&&""===r){i=!0;break}n+=e[t]}return""===r&&{value:n,index:t,tagClosed:i}}t.validate=function(e,t){t=Object.assign({},i,t);const n=[];let r=!1,l=!1;"\ufeff"===e[0]&&(e=e.substr(1));for(let i=0;i"!==e[i]&&" "!==e[i]&&"\t"!==e[i]&&"\n"!==e[i]&&"\r"!==e[i];i++)w+=e[i];if(w=w.trim(),"/"===w[w.length-1]&&(w=w.substring(0,w.length-1),i--),!f(w)){let t;return t=0===w.trim().length?"Invalid space after '<'.":"Tag '"+w+"' is an invalid name.",p("InvalidTag",t,g(e,i))}const y=c(e,i);if(!1===y)return p("InvalidAttr","Attributes for '"+w+"' have open quote.",g(e,i));let b=y.value;if(i=y.index,"/"===b[b.length-1]){const n=i-b.length;b=b.substring(0,b.length-1);const s=h(b,t);if(!0!==s)return p(s.err.code,s.err.msg,g(e,n+s.err.line));r=!0}else if(m){if(!y.tagClosed)return p("InvalidTag","Closing tag '"+w+"' doesn't have proper closing.",g(e,i));if(b.trim().length>0)return p("InvalidTag","Closing tag '"+w+"' can't have attributes or invalid starting.",g(e,d));if(0===n.length)return p("InvalidTag","Closing tag '"+w+"' has not been opened.",g(e,d));{const t=n.pop();if(w!==t.tagName){let n=g(e,t.tagStartPos);return p("InvalidTag","Expected closing tag '"+t.tagName+"' (opened in line "+n.line+", col "+n.col+") instead of closing tag '"+w+"'.",g(e,d))}0==n.length&&(l=!0)}}else{const s=h(b,t);if(!0!==s)return p(s.err.code,s.err.msg,g(e,i-b.length+s.err.line));if(!0===l)return p("InvalidXml","Multiple possible root nodes found.",g(e,i));-1!==t.unpairedTags.indexOf(w)||n.push({tagName:w,tagStartPos:d}),r=!0}for(i++;i0)||p("InvalidXml","Invalid '"+JSON.stringify(n.map(e=>e.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1}):p("InvalidXml","Start tag expected.",1)};const l=new RegExp("(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['\"])(([\\s\\S])*?)\\5)?","g");function h(e,t){const n=r.getAllMatches(e,l),i={};for(let e=0;ec.BUFFER_SIZE)&&(s=0,t=c.randomBytes(c.BUFFER_SIZE)),t.slice(s,s+=16));return e[6]=15&e[6]|64,e[8]=63&e[8]|128,e}function c(){var e=a();return o[e[0]]+o[e[1]]+o[e[2]]+o[e[3]]+"-"+o[e[4]]+o[e[5]]+"-"+o[e[6]]+o[e[7]]+"-"+o[e[8]]+o[e[9]]+"-"+o[e[10]]+o[e[11]]+o[e[12]]+o[e[13]]+o[e[14]]+o[e[15]]}c.BUFFER_SIZE=4096,c.bin=a,c.clearBuffer=function(){t=null,s=0},c.test=function(e){return"string"==typeof e&&/^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(e)},"undefined"!=typeof crypto?i=crypto:"undefined"!=typeof window&&void 0!==window.msCrypto&&(i=window.msCrypto),i=i||n(575),e.exports=c,c.randomBytes=function(){if(i){if(i.randomBytes)return i.randomBytes;if(i.getRandomValues)return"function"!=typeof Uint8Array.prototype.slice?function(e){var t=new Uint8Array(e);return i.getRandomValues(t),Array.from(t)}:function(e){var t=new Uint8Array(e);return i.getRandomValues(t),t}}return function(e){var t,n=[];for(t=0;tn?n+1:e+1:r===i?t:t+1}return function(t,n){if(t===n)return 0;if(t.length>n.length){var r=t;t=n,n=r}for(var i=t.length,s=n.length;i>0&&t.charCodeAt(i-1)===n.charCodeAt(s-1);)i--,s--;for(var o=0;o=0&&e=this._keys.length?(this._index=-1,this._keys=t,this._values=t):this._index++,{value:n,done:!1}}return{value:void 0,done:!0}},e.prototype.throw=function(e){throw this._index>=0&&(this._index=-1,this._keys=t,this._values=t),e},e.prototype.return=function(e){return this._index>=0&&(this._index=-1,this._keys=t,this._values=t),{value:e,done:!0}},e}();return function(){function t(){this._keys=[],this._values=[],this._cacheKey=e,this._cacheIndex=-2}return Object.defineProperty(t.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),t.prototype.has=function(e){return this._find(e,!1)>=0},t.prototype.get=function(e){var t=this._find(e,!1);return t>=0?this._values[t]:void 0},t.prototype.set=function(e,t){var n=this._find(e,!0);return this._values[n]=t,this},t.prototype.delete=function(t){var n=this._find(t,!1);if(n>=0){for(var r=this._keys.length,i=n+1;i=0;--n){var r=(0,e[n])(t);if(!x(r)&&!I(r)){if(!k(r))throw new TypeError;t=r}}return t}(e,t)}if(!R(e))throw new TypeError;if(!S(t))throw new TypeError;if(!S(r)&&!x(r)&&!I(r))throw new TypeError;return I(r)&&(r=void 0),function(e,t,n,r){for(var i=e.length-1;i>=0;--i){var s=(0,e[i])(t,n,r);if(!x(s)&&!I(s)){if(!S(s))throw new TypeError;r=s}}return r}(e,t,n=C(n),r)}),e("metadata",function(e,t){return function(n,r){if(!S(n))throw new TypeError;if(!x(r)&&!function(e){switch(E(e)){case 3:case 4:return!0;default:return!1}}(r))throw new TypeError;A(e,t,n,r)}}),e("defineMetadata",function(e,t,n,r){if(!S(n))throw new TypeError;return x(r)||(r=C(r)),A(e,t,n,r)}),e("hasMetadata",function(e,t,n){if(!S(t))throw new TypeError;return x(n)||(n=C(n)),m(e,t,n)}),e("hasOwnMetadata",function(e,t,n){if(!S(t))throw new TypeError;return x(n)||(n=C(n)),w(e,t,n)}),e("getMetadata",function(e,t,n){if(!S(t))throw new TypeError;return x(n)||(n=C(n)),y(e,t,n)}),e("getOwnMetadata",function(e,t,n){if(!S(t))throw new TypeError;return x(n)||(n=C(n)),b(e,t,n)}),e("getMetadataKeys",function(e,t){if(!S(e))throw new TypeError;return x(t)||(t=C(t)),v(e,t)}),e("getOwnMetadataKeys",function(e,t){if(!S(e))throw new TypeError;return x(t)||(t=C(t)),_(e,t)}),e("deleteMetadata",function(e,t,n){if(!S(t))throw new TypeError;x(n)||(n=C(n));var r=g(t,n,!1);if(x(r))return!1;if(!r.delete(e))return!1;if(r.size>0)return!0;var i=f.get(t);return i.delete(n),i.size>0||f.delete(t),!0})}(r)}()}(r||(r={}))},4823(e){var t=function(){for(var e,t=[],n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=1&e?3988292384^e>>>1:e>>>1;t[n]=e}return t}();e.exports=function(e,n,r,i){var s=t,o=i+r;e^=-1;for(var a=i;a>>8^s[255&(e^n[a])];return-1^e}},4927(e,t){function n(e){this.buffer=e,this.pos=0}function r(e){this.buffer=e,this.pos=0}n.prototype.read=function(e,t,n){this.pos+n>this.buffer.length&&(n=this.buffer.length-this.pos);for(var r=0;rthis.buffer.length)throw new Error("Output buffer is not large enough");return this.buffer.set(e.subarray(0,t),this.pos),this.pos+=t,t},t.y=r},5157(e){e.exports=function(){throw new Error("Readable.from is not available in the browser")}},5291(e,t,n){var r=n(6048).F.ERR_INVALID_OPT_VALUE;e.exports={getHighWaterMark:function(e,t,n,i){var s=function(e,t,n){return null!=e.highWaterMark?e.highWaterMark:t?e[n]:null}(t,i,n);if(null!=s){if(!isFinite(s)||Math.floor(s)!==s||s<0)throw new r(i?n:"highWaterMark",s);return Math.floor(s)}return e.objectMode?16:16384}}},5334(e,t){const n=":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",r="["+n+"]["+n+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*",i=new RegExp("^"+r+"$");t.isExist=function(e){return void 0!==e},t.isEmptyObject=function(e){return 0===Object.keys(e).length},t.merge=function(e,t,n){if(t){const r=Object.keys(t),i=r.length;for(let s=0;s0)if("string"==typeof t||a.objectMode||Object.getPrototypeOf(t)===c.prototype||(t=function(e){return c.from(e)}(t)),r)a.endEmitted?_(e,new v):T(e,a,t,!0);else if(a.ended)_(e,new b);else{if(a.destroyed)return!1;a.reading=!1,a.decoder&&!n?(t=a.decoder.write(t),a.objectMode||0!==t.length?T(e,a,t,!1):N(e,a)):T(e,a,t,!1)}else r||(a.reading=!1,N(e,a));return!a.ended&&(a.lengtht.highWaterMark&&(t.highWaterMark=function(e){return e>=C?e=C:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function O(e){var t=e._readableState;s("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(s("emitReadable",t.flowing),t.emittedReadable=!0,i.nextTick(k,e))}function k(e){var t=e._readableState;s("emitReadable_",t.destroyed,t.length,t.ended),t.destroyed||!t.length&&!t.ended||(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,U(e)}function N(e,t){t.readingMore||(t.readingMore=!0,i.nextTick(B,e,t))}function B(e,t){for(;!t.reading&&!t.ended&&(t.length0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function D(e){s("readable nexttick read 0"),e.read(0)}function L(e,t){s("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),U(e),t.flowing&&!t.reading&&e.read(0)}function U(e){var t=e._readableState;for(s("flow",t.flowing);t.flowing&&null!==e.read(););}function M(e,t){return 0===t.length?null:(t.objectMode?n=t.buffer.shift():!e||e>=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):n=t.buffer.consume(e,t.decoder),n);var n}function F(e){var t=e._readableState;s("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,i.nextTick(j,t,e))}function j(e,t){if(s("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var n=t._writableState;(!n||n.autoDestroy&&n.finished)&&t.destroy()}}function H(e,t){for(var n=0,r=e.length;n=t.highWaterMark:t.length>0)||t.ended))return s("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?F(this):O(this),null;if(0===(e=R(e,t))&&t.ended)return 0===t.length&&F(this),null;var r,i=t.needReadable;return s("need readable",i),(0===t.length||t.length-e0?M(e,t):null)?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&F(this)),null!==r&&this.emit("data",r),r},I.prototype._read=function(e){_(this,new A("_read()"))},I.prototype.pipe=function(e,t){var n=this,r=this._readableState;switch(r.pipesCount){case 0:r.pipes=e;break;case 1:r.pipes=[r.pipes,e];break;default:r.pipes.push(e)}r.pipesCount+=1,s("pipe count=%d opts=%j",r.pipesCount,t);var a=t&&!1===t.end||e===i.stdout||e===i.stderr?g:c;function c(){s("onend"),e.end()}r.endEmitted?i.nextTick(a):n.once("end",a),e.on("unpipe",function t(i,o){s("onunpipe"),i===n&&o&&!1===o.hasUnpiped&&(o.hasUnpiped=!0,s("cleanup"),e.removeListener("close",d),e.removeListener("finish",f),e.removeListener("drain",l),e.removeListener("error",p),e.removeListener("unpipe",t),n.removeListener("end",c),n.removeListener("end",g),n.removeListener("data",u),h=!0,!r.awaitDrain||e._writableState&&!e._writableState.needDrain||l())});var l=function(e){return function(){var t=e._readableState;s("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&o(e,"data")&&(t.flowing=!0,U(e))}}(n);e.on("drain",l);var h=!1;function u(t){s("ondata");var i=e.write(t);s("dest.write",i),!1===i&&((1===r.pipesCount&&r.pipes===e||r.pipesCount>1&&-1!==H(r.pipes,e))&&!h&&(s("false write response, pause",r.awaitDrain),r.awaitDrain++),n.pause())}function p(t){s("onerror",t),g(),e.removeListener("error",p),0===o(e,"error")&&_(e,t)}function d(){e.removeListener("finish",f),g()}function f(){s("onfinish"),e.removeListener("close",d),g()}function g(){s("unpipe"),n.unpipe(e)}return n.on("data",u),function(e,t,n){if("function"==typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}(e,"error",p),e.once("close",d),e.once("finish",f),e.emit("pipe",n),r.flowing||(s("pipe resume"),n.resume()),e},I.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,n)),this;if(!e){var r=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var s=0;s0,!1!==r.flowing&&this.resume()):"readable"===e&&(r.endEmitted||r.readableListening||(r.readableListening=r.needReadable=!0,r.flowing=!1,r.emittedReadable=!1,s("on readable",r.length,r.reading),r.length?O(this):r.reading||i.nextTick(D,this))),n},I.prototype.addListener=I.prototype.on,I.prototype.removeListener=function(e,t){var n=a.prototype.removeListener.call(this,e,t);return"readable"===e&&i.nextTick(P,this),n},I.prototype.removeAllListeners=function(e){var t=a.prototype.removeAllListeners.apply(this,arguments);return"readable"!==e&&void 0!==e||i.nextTick(P,this),t},I.prototype.resume=function(){var e=this._readableState;return e.flowing||(s("resume"),e.flowing=!e.readableListening,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,i.nextTick(L,e,t))}(this,e)),e.paused=!1,this},I.prototype.pause=function(){return s("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(s("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},I.prototype.wrap=function(e){var t=this,n=this._readableState,r=!1;for(var i in e.on("end",function(){if(s("wrapped end"),n.decoder&&!n.ended){var e=n.decoder.end();e&&e.length&&t.push(e)}t.push(null)}),e.on("data",function(i){s("wrapped data"),n.decoder&&(i=n.decoder.write(i)),n.objectMode&&null==i||(n.objectMode||i&&i.length)&&(t.push(i)||(r=!0,e.pause()))}),e)void 0===this[i]&&"function"==typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var o=0;o1)for(var n=1;n0&&(c[t.textNodeName]=a):void 0!==a&&(c[t.textNodeName]=a),c}function r(e){const t=Object.keys(e);for(let e=0;e0},r.prototype.readMoreInput=function(){if(!(this.bit_end_pos_>256))if(this.eos_){if(this.bit_pos_>this.bit_end_pos_)throw new Error("Unexpected end of input "+this.bit_pos_+" "+this.bit_end_pos_)}else{var e=this.buf_ptr_,n=this.input_.read(this.buf_,e,t);if(n<0)throw new Error("Unexpected end of input");if(n=8;)this.val_>>>=8,this.val_|=this.buf_[8191&this.pos_]<<24,++this.pos_,this.bit_pos_=this.bit_pos_-8>>>0,this.bit_end_pos_=this.bit_end_pos_-8>>>0},r.prototype.readBits=function(e){32-this.bit_pos_>>this.bit_pos_&n[e];return this.bit_pos_+=e,t},e.exports=r},6048(e){var t={};function n(e,n,r){r||(r=Error);var i=function(e){var t,r;function i(t,r,i){return e.call(this,function(e,t,r){return"string"==typeof n?n:n(e,t,r)}(t,r,i))||this}return r=e,(t=i).prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r,i}(r);i.prototype.name=r.name,i.prototype.code=e,t[e]=i}function r(e,t){if(Array.isArray(e)){var n=e.length;return e=e.map(function(e){return String(e)}),n>2?"one of ".concat(t," ").concat(e.slice(0,n-1).join(", "),", or ")+e[n-1]:2===n?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}n("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'},TypeError),n("ERR_INVALID_ARG_TYPE",function(e,t,n){var i,s;if("string"==typeof t&&function(e,t){return e.substr(0,4)===t}(t,"not ")?(i="must not be",t=t.replace(/^not /,"")):i="must be",function(e,t,n){return(void 0===n||n>e.length)&&(n=e.length),e.substring(n-9,n)===t}(e," argument"))s="The ".concat(e," ").concat(i," ").concat(r(t,"type"));else{var o=function(e,t,n){return"number"!=typeof n&&(n=0),!(n+1>e.length)&&-1!==e.indexOf(".",n)}(e)?"property":"argument";s='The "'.concat(e,'" ').concat(o," ").concat(i," ").concat(r(t,"type"))}return s+". Received type ".concat(typeof n)},TypeError),n("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),n("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"}),n("ERR_STREAM_PREMATURE_CLOSE","Premature close"),n("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"}),n("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),n("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),n("ERR_STREAM_WRITE_AFTER_END","write after end"),n("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),n("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError),n("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),e.exports.F=t},6238(e,t,n){var r=n(6048).F.ERR_STREAM_PREMATURE_CLOSE;function i(){}e.exports=function e(t,n,s){if("function"==typeof n)return e(t,null,n);n||(n={}),s=function(e){var t=!1;return function(){if(!t){t=!0;for(var n=arguments.length,r=new Array(n),i=0;i-1))throw new v(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(I.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(I.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),I.prototype._write=function(e,t,n){n(new g("_write()"))},I.prototype._writev=null,I.prototype.end=function(e,t,n){var r=this._writableState;return"function"==typeof e?(n=e,e=null,t=null):"function"==typeof t&&(n=t,t=null),null!=e&&this.write(e,t),r.corked&&(r.corked=1,this.uncork()),r.ending||function(e,t,n){t.ending=!0,k(e,t),n&&(t.finished?i.nextTick(n):e.once("finish",n)),t.ended=!0,e.writable=!1}(this,r,n),this},Object.defineProperty(I.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(I.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),I.prototype.destroy=u.destroy,I.prototype._undestroy=u.undestroy,I.prototype._destroy=function(e,t){t(e)}},7007(e){var t,n="object"==typeof Reflect?Reflect:null,r=n&&"function"==typeof n.apply?n.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};t=n&&"function"==typeof n.ownKeys?n.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var i=Number.isNaN||function(e){return e!=e};function s(){s.init.call(this)}e.exports=s,e.exports.once=function(e,t){return new Promise(function(n,r){function i(n){e.removeListener(t,s),r(n)}function s(){"function"==typeof e.removeListener&&e.removeListener("error",i),n([].slice.call(arguments))}g(e,t,s,{once:!0}),"error"!==t&&function(e,t){"function"==typeof e.on&&g(e,"error",t,{once:!0})}(e,i)})},s.EventEmitter=s,s.prototype._events=void 0,s.prototype._eventsCount=0,s.prototype._maxListeners=void 0;var o=10;function a(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function c(e){return void 0===e._maxListeners?s.defaultMaxListeners:e._maxListeners}function l(e,t,n,r){var i,s,o,l;if(a(n),void 0===(s=e._events)?(s=e._events=Object.create(null),e._eventsCount=0):(void 0!==s.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),s=e._events),o=s[t]),void 0===o)o=s[t]=n,++e._eventsCount;else if("function"==typeof o?o=s[t]=r?[n,o]:[o,n]:r?o.unshift(n):o.push(n),(i=c(e))>0&&o.length>i&&!o.warned){o.warned=!0;var h=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");h.name="MaxListenersExceededWarning",h.emitter=e,h.type=t,h.count=o.length,l=h,console&&console.warn&&console.warn(l)}return e}function h(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function u(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=h.bind(r);return i.listener=n,r.wrapFn=i,i}function p(e,t,n){var r=e._events;if(void 0===r)return[];var i=r[t];return void 0===i?[]:"function"==typeof i?n?[i.listener||i]:[i]:n?function(e){for(var t=new Array(e.length),n=0;n0&&(o=t[0]),o instanceof Error)throw o;var a=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw a.context=o,a}var c=s[e];if(void 0===c)return!1;if("function"==typeof c)r(c,this,t);else{var l=c.length,h=f(c,l);for(n=0;n=0;s--)if(n[s]===t||n[s].listener===t){o=n[s].listener,i=s;break}if(i<0)return this;0===i?n.shift():function(e,t){for(;t+1=0;r--)this.removeListener(e,t[r]);return this},s.prototype.listeners=function(e){return p(this,e,!0)},s.prototype.rawListeners=function(e){return p(this,e,!1)},s.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):d.call(e,t)},s.prototype.listenerCount=d,s.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},7083(e,t,n){var r=n(1447),i=n(9805),s=n(1996),o=n(9681),a=n(4674),c=n(4442),l=n(7414),h=Object.prototype.toString;function u(e){if(!(this instanceof u))return new u(e);this.options=i.assign({chunkSize:16384,windowBits:0,to:""},e||{});var t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,0===t.windowBits&&(t.windowBits=-15)),!(t.windowBits>=0&&t.windowBits<16)||e&&e.windowBits||(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&(15&t.windowBits||(t.windowBits|=15)),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new c,this.strm.avail_out=0;var n=r.inflateInit2(this.strm,t.windowBits);if(n!==o.Z_OK)throw new Error(a[n]);if(this.header=new l,r.inflateGetHeader(this.strm,this.header),t.dictionary&&("string"==typeof t.dictionary?t.dictionary=s.string2buf(t.dictionary):"[object ArrayBuffer]"===h.call(t.dictionary)&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(n=r.inflateSetDictionary(this.strm,t.dictionary))!==o.Z_OK))throw new Error(a[n])}function p(e,t){var n=new u(t);if(n.push(e,!0),n.err)throw n.msg||a[n.err];return n.result}u.prototype.push=function(e,t){var n,a,c,l,u,p=this.strm,d=this.options.chunkSize,f=this.options.dictionary,g=!1;if(this.ended)return!1;a=t===~~t?t:!0===t?o.Z_FINISH:o.Z_NO_FLUSH,"string"==typeof e?p.input=s.binstring2buf(e):"[object ArrayBuffer]"===h.call(e)?p.input=new Uint8Array(e):p.input=e,p.next_in=0,p.avail_in=p.input.length;do{if(0===p.avail_out&&(p.output=new i.Buf8(d),p.next_out=0,p.avail_out=d),(n=r.inflate(p,o.Z_NO_FLUSH))===o.Z_NEED_DICT&&f&&(n=r.inflateSetDictionary(this.strm,f)),n===o.Z_BUF_ERROR&&!0===g&&(n=o.Z_OK,g=!1),n!==o.Z_STREAM_END&&n!==o.Z_OK)return this.onEnd(n),this.ended=!0,!1;p.next_out&&(0!==p.avail_out&&n!==o.Z_STREAM_END&&(0!==p.avail_in||a!==o.Z_FINISH&&a!==o.Z_SYNC_FLUSH)||("string"===this.options.to?(c=s.utf8border(p.output,p.next_out),l=p.next_out-c,u=s.buf2string(p.output,c),p.next_out=l,p.avail_out=d-l,l&&i.arraySet(p.output,p.output,c,l,0),this.onData(u)):this.onData(i.shrinkBuf(p.output,p.next_out)))),0===p.avail_in&&0===p.avail_out&&(g=!0)}while((p.avail_in>0||0===p.avail_out)&&n!==o.Z_STREAM_END);return n===o.Z_STREAM_END&&(a=o.Z_FINISH),a===o.Z_FINISH?(n=r.inflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===o.Z_OK):a!==o.Z_SYNC_FLUSH||(this.onEnd(o.Z_OK),p.avail_out=0,!0)},u.prototype.onData=function(e){this.chunks.push(e)},u.prototype.onEnd=function(e){e===o.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},t.Inflate=u,t.inflate=p,t.inflateRaw=function(e,t){return(t=t||{}).raw=!0,p(e,t)},t.ungzip=p},7293(e){e.exports=function(e,t){var n,r,i,s,o,a,c,l,h,u,p,d,f,g,m,w,y,b,A,v,_,E,x,I,S;n=e.state,r=e.next_in,I=e.input,i=r+(e.avail_in-5),s=e.next_out,S=e.output,o=s-(t-e.avail_out),a=s+(e.avail_out-257),c=n.dmax,l=n.wsize,h=n.whave,u=n.wnext,p=n.window,d=n.hold,f=n.bits,g=n.lencode,m=n.distcode,w=(1<>>=A=b>>>24,f-=A,0==(A=b>>>16&255))S[s++]=65535&b;else{if(!(16&A)){if(64&A){if(32&A){n.mode=12;break e}e.msg="invalid literal/length code",n.mode=30;break e}b=g[(65535&b)+(d&(1<>>=A,f-=A),f<15&&(d+=I[r++]<>>=A=b>>>24,f-=A,16&(A=b>>>16&255)){if(_=65535&b,f<(A&=15)&&(d+=I[r++]<c){e.msg="invalid distance too far back",n.mode=30;break e}if(d>>>=A,f-=A,_>(A=s-o)){if((A=_-A)>h&&n.sane){e.msg="invalid distance too far back",n.mode=30;break e}if(E=0,x=p,0===u){if(E+=l-A,A2;)S[s++]=x[E++],S[s++]=x[E++],S[s++]=x[E++],v-=3;v&&(S[s++]=x[E++],v>1&&(S[s++]=x[E++]))}else{E=s-_;do{S[s++]=S[E++],S[s++]=S[E++],S[s++]=S[E++],v-=3}while(v>2);v&&(S[s++]=S[E++],v>1&&(S[s++]=S[E++]))}break}if(64&A){e.msg="invalid distance code",n.mode=30;break e}b=m[(65535&b)+(d&(1<>3,d&=(1<<(f-=v<<3))-1,e.next_in=r,e.next_out=s,e.avail_in=r0?o-4:o;for(n=0;n>16&255,l[h++]=t>>8&255,l[h++]=255&t;return 2===c&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,l[h++]=255&t),1===c&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,l[h++]=t>>8&255,l[h++]=255&t),l},t.fromByteArray=function(e){for(var t,r=e.length,i=r%3,s=[],o=16383,a=0,c=r-i;ac?c:a+o));return 1===i?(t=e[r-1],s.push(n[t>>2]+n[t<<4&63]+"==")):2===i&&(t=(e[r-2]<<8)+e[r-1],s.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"=")),s.join("")};for(var n=[],r=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0;o<64;++o)n[o]=s[o],r[s.charCodeAt(o)]=o;function a(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function c(e){return n[e>>18&63]+n[e>>12&63]+n[e>>6&63]+n[63&e]}function l(e,t,n){for(var r,i=[],s=t;s0)){o||(e=this.replaceEntitiesValue(e,t,n));const r=this.options.tagValueProcessor(t,e,n,i,s);return null==r?e:typeof r!=typeof e||r!==e?r:this.options.trimValues||e.trim()===e?v(e,this.options.parseTagValue,this.options.numberParseOptions):e}}function h(e){if(this.options.removeNSPrefix){const t=e.split(":"),n="/"===e.charAt(0)?"/":"";if("xmlns"===t[0])return"";2===t.length&&(e=n+t[1])}return e}const u=new RegExp("([^\\s=]+)\\s*(=\\s*(['\"])([\\s\\S]*?)\\3)?","gm");function p(e,t,n){if(!0!==this.options.ignoreAttributes&&"string"==typeof e){const i=r.getAllMatches(e,u),s=i.length,o={};for(let e=0;e",s,"Closing Tag is not closed.");let i=e.substring(s+2,t).trim();if(this.options.removeNSPrefix){const e=i.indexOf(":");-1!==e&&(i=i.substr(e+1))}this.options.transformTagName&&(i=this.options.transformTagName(i)),n&&(r=this.saveTextToParentTag(r,n,o));const a=o.substring(o.lastIndexOf(".")+1);if(i&&-1!==this.options.unpairedTags.indexOf(i))throw new Error(`Unpaired tag can not be used as closing tag: `);let c=0;a&&-1!==this.options.unpairedTags.indexOf(a)?(c=o.lastIndexOf(".",o.lastIndexOf(".")-1),this.tagsNodeStack.pop()):c=o.lastIndexOf("."),o=o.substring(0,c),n=this.tagsNodeStack.pop(),r="",s=t}else if("?"===e[s+1]){let t=b(e,s,!1,"?>");if(!t)throw new Error("Pi Tag is not closed.");if(r=this.saveTextToParentTag(r,n,o),this.options.ignoreDeclaration&&"?xml"===t.tagName||this.options.ignorePiTags);else{const e=new i(t.tagName);e.add(this.options.textNodeName,""),t.tagName!==t.tagExp&&t.attrExpPresent&&(e[":@"]=this.buildAttributesMap(t.tagExp,o,t.tagName)),this.addChild(n,e,o,s)}s=t.closeIndex+1}else if("!--"===e.substr(s+1,3)){const t=y(e,"--\x3e",s+4,"Comment is not closed.");if(this.options.commentPropName){const i=e.substring(s+4,t-2);r=this.saveTextToParentTag(r,n,o),n.add(this.options.commentPropName,[{[this.options.textNodeName]:i}])}s=t}else if("!D"===e.substr(s+1,2)){const t=a.readDocType(e,s);this.docTypeEntities=t.entities,s=t.i}else if("!["===e.substr(s+1,2)){const t=y(e,"]]>",s,"CDATA is not closed.")-2,i=e.substring(s+9,t);r=this.saveTextToParentTag(r,n,o);let a=this.parseTextData(i,n.tagname,o,!0,!1,!0,!0);null==a&&(a=""),this.options.cdataPropName?n.add(this.options.cdataPropName,[{[this.options.textNodeName]:i}]):n.add(this.options.textNodeName,a),s=t+2}else{let a=b(e,s,this.options.removeNSPrefix),c=a.tagName;const l=a.rawTagName;let h=a.tagExp,u=a.attrExpPresent,p=a.closeIndex;if(this.options.transformTagName){const e=this.options.transformTagName(c);h===c&&(h=e),c=e}if(this.options.strictReservedNames&&(c===this.options.commentPropName||c===this.options.cdataPropName||c===this.options.textNodeName||c===this.options.attributesGroupName))throw new Error(`Invalid tag name: ${c}`);n&&r&&"!xml"!==n.tagname&&(r=this.saveTextToParentTag(r,n,o,!1));const d=n;d&&-1!==this.options.unpairedTags.indexOf(d.tagname)&&(n=this.tagsNodeStack.pop(),o=o.substring(0,o.lastIndexOf("."))),c!==t.tagname&&(o+=o?"."+c:c);const f=s;if(this.isItStopNode(this.stopNodesExact,this.stopNodesWildcard,o,c)){let t="";if(h.length>0&&h.lastIndexOf("/")===h.length-1)"/"===c[c.length-1]?(c=c.substr(0,c.length-1),o=o.substr(0,o.length-1),h=c):h=h.substr(0,h.length-1),s=a.closeIndex;else if(-1!==this.options.unpairedTags.indexOf(c))s=a.closeIndex;else{const n=this.readStopNodeData(e,l,p+1);if(!n)throw new Error(`Unexpected end of ${l}`);s=n.i,t=n.tagContent}const r=new i(c);c!==h&&u&&(r[":@"]=this.buildAttributesMap(h,o,c)),t&&(t=this.parseTextData(t,c,o,!0,u,!0,!0)),o=o.substr(0,o.lastIndexOf(".")),r.add(this.options.textNodeName,t),this.addChild(n,r,o,f)}else{if(h.length>0&&h.lastIndexOf("/")===h.length-1){if("/"===c[c.length-1]?(c=c.substr(0,c.length-1),o=o.substr(0,o.length-1),h=c):h=h.substr(0,h.length-1),this.options.transformTagName){const e=this.options.transformTagName(c);h===c&&(h=e),c=e}const e=new i(c);c!==h&&u&&(e[":@"]=this.buildAttributesMap(h,o,c)),this.addChild(n,e,o,f),o=o.substr(0,o.lastIndexOf("."))}else{if(-1!==this.options.unpairedTags.indexOf(c)){const e=new i(c);c!==h&&u&&(e[":@"]=this.buildAttributesMap(h,o)),this.addChild(n,e,o,f),o=o.substr(0,o.lastIndexOf(".")),s=a.closeIndex;continue}{const e=new i(c);if(this.tagsNodeStack.length>this.options.maxNestedTags)throw new Error("Maximum nested tags exceeded");this.tagsNodeStack.push(n),c!==h&&u&&(e[":@"]=this.buildAttributesMap(h,o,c)),this.addChild(n,e,o),n=e}}r="",s=p}}else r+=e[s];return t.child};function f(e,t,n,r){this.options.captureMetaData||(r=void 0);const i=this.options.updateTag(t.tagname,n,t[":@"]);!1===i||("string"==typeof i?(t.tagname=i,e.addChild(t,r)):e.addChild(t,r))}const g=function(e,t,n){if(-1===e.indexOf("&"))return e;const r=this.options.processEntities;if(!r.enabled)return e;if(r.allowedTags&&!r.allowedTags.includes(t))return e;if(r.tagFilter&&!r.tagFilter(t,n))return e;for(let t in this.docTypeEntities){const n=this.docTypeEntities[t],i=e.match(n.regx);if(i){if(this.entityExpansionCount+=i.length,r.maxTotalExpansions&&this.entityExpansionCount>r.maxTotalExpansions)throw new Error(`Entity expansion limit exceeded: ${this.entityExpansionCount} > ${r.maxTotalExpansions}`);const t=e.length;if(e=e.replace(n.regx,n.val),r.maxExpandedLength&&(this.currentExpandedLength+=e.length-t,this.currentExpandedLength>r.maxExpandedLength))throw new Error(`Total expanded content size exceeded: ${this.currentExpandedLength} > ${r.maxExpandedLength}`)}}if(-1===e.indexOf("&"))return e;for(const t of Object.keys(this.lastEntities)){const n=this.lastEntities[t],i=e.match(n.regex);if(i&&(this.entityExpansionCount+=i.length,r.maxTotalExpansions&&this.entityExpansionCount>r.maxTotalExpansions))throw new Error(`Entity expansion limit exceeded: ${this.entityExpansionCount} > ${r.maxTotalExpansions}`);e=e.replace(n.regex,n.val)}if(-1===e.indexOf("&"))return e;if(this.options.htmlEntities)for(const t of Object.keys(this.htmlEntities)){const n=this.htmlEntities[t],i=e.match(n.regex);if(i&&(this.entityExpansionCount+=i.length,r.maxTotalExpansions&&this.entityExpansionCount>r.maxTotalExpansions))throw new Error(`Entity expansion limit exceeded: ${this.entityExpansionCount} > ${r.maxTotalExpansions}`);e=e.replace(n.regex,n.val)}return e.replace(this.ampEntity.regex,this.ampEntity.val)};function m(e,t,n,r){return e&&(void 0===r&&(r=0===t.child.length),void 0!==(e=this.parseTextData(e,t.tagname,n,!1,!!t[":@"]&&0!==Object.keys(t[":@"]).length,r))&&""!==e&&t.add(this.options.textNodeName,e),e=""),e}function w(e,t,n,r){return!(!t||!t.has(r))||!(!e||!e.has(n))}function y(e,t,n,r){const i=e.indexOf(t,n);if(-1===i)throw new Error(r);return i+t.length-1}function b(e,t,n,r=">"){const i=function(e,t,n=">"){let r,i="";for(let s=t;s",n,`${t} is not closed`);if(e.substring(n+2,s).trim()===t&&(i--,0===i))return{tagContent:e.substring(r,n),i:s};n=s}else if("?"===e[n+1])n=y(e,"?>",n+1,"StopNode is not closed.");else if("!--"===e.substr(n+1,3))n=y(e,"--\x3e",n+3,"StopNode is not closed.");else if("!["===e.substr(n+1,2))n=y(e,"]]>",n,"StopNode is not closed.")-2;else{const r=b(e,n,">");r&&((r&&r.tagName)===t&&"/"!==r.tagExp[r.tagExp.length-1]&&i++,n=r.closeIndex)}}function v(e,t,n){if(t&&"string"==typeof e){const t=e.trim();return"true"===t||"false"!==t&&o(e,n)}return r.isExist(e)?e:""}function _(e,t,n){const r=Number.parseInt(e,t);return r>=0&&r<=1114111?String.fromCodePoint(r):n+e+";"}function E(e,t){if(r.criticalProperties.includes(e))throw new Error(`[SECURITY] Invalid name: "${e}" is a reserved JavaScript keyword that could cause prototype pollution`);return r.DANGEROUS_PROPERTY_NAMES.includes(e)?t.onDangerousProperty(e):e}e.exports=class{constructor(e){if(this.options=e,this.currentNode=null,this.tagsNodeStack=[],this.docTypeEntities={},this.lastEntities={apos:{regex:/&(apos|#39|#x27);/g,val:"'"},gt:{regex:/&(gt|#62|#x3E);/g,val:">"},lt:{regex:/&(lt|#60|#x3C);/g,val:"<"},quot:{regex:/&(quot|#34|#x22);/g,val:'"'}},this.ampEntity={regex:/&(amp|#38|#x26);/g,val:"&"},this.htmlEntities={space:{regex:/&(nbsp|#160);/g,val:" "},cent:{regex:/&(cent|#162);/g,val:"¢"},pound:{regex:/&(pound|#163);/g,val:"£"},yen:{regex:/&(yen|#165);/g,val:"¥"},euro:{regex:/&(euro|#8364);/g,val:"€"},copyright:{regex:/&(copy|#169);/g,val:"©"},reg:{regex:/&(reg|#174);/g,val:"®"},inr:{regex:/&(inr|#8377);/g,val:"₹"},num_dec:{regex:/&#([0-9]{1,7});/g,val:(e,t)=>_(t,10,"&#")},num_hex:{regex:/&#x([0-9a-fA-F]{1,6});/g,val:(e,t)=>_(t,16,"&#x")}},this.addExternalEntities=c,this.parseXml=d,this.parseTextData=l,this.resolveNameSpace=h,this.buildAttributesMap=p,this.isItStopNode=w,this.replaceEntitiesValue=g,this.readStopNodeData=A,this.saveTextToParentTag=m,this.addChild=f,this.ignoreAttributesFn=a(this.options.ignoreAttributes),this.entityExpansionCount=0,this.currentExpandedLength=0,this.options.stopNodes&&this.options.stopNodes.length>0){this.stopNodesExact=new Set,this.stopNodesWildcard=new Set;for(let e=0;e0,function(e){h||(h=e),e&&p.forEach(c),s||(p.forEach(c),u(h))})});return t.reduce(l)}},7983(e){const t=/^[-+]?0x[a-fA-F0-9]+$/,n=/^([\-\+])?(0*)(\.[0-9]+([eE]\-?[0-9]+)?|[0-9]+(\.[0-9]+([eE]\-?[0-9]+)?)?)$/;!Number.parseInt&&window.parseInt&&(Number.parseInt=window.parseInt),!Number.parseFloat&&window.parseFloat&&(Number.parseFloat=window.parseFloat);const r={hex:!0,leadingZeros:!0,decimalPoint:".",eNotation:!0};e.exports=function(e,i={}){if(i=Object.assign({},r,i),!e||"string"!=typeof e)return e;let s=e.trim();if(void 0!==i.skipLike&&i.skipLike.test(s))return e;if(i.hex&&t.test(s))return Number.parseInt(s,16);{const t=n.exec(s);if(t){const n=t[1],r=t[2];let o=function(e){return e&&-1!==e.indexOf(".")?("."===(e=e.replace(/0+$/,""))?e="0":"."===e[0]?e="0"+e:"."===e[e.length-1]&&(e=e.substr(0,e.length-1)),e):e}(t[3]);const a=t[4]||t[6];if(!i.leadingZeros&&r.length>0&&n&&"."!==s[2])return e;if(!i.leadingZeros&&r.length>0&&!n&&"."!==s[1])return e;{const t=Number(s),c=""+t;return-1!==c.search(/[eE]/)||a?i.eNotation?t:e:-1!==s.indexOf(".")?"0"===c&&""===o||c===o||n&&c==="-"+o?t:e:r?o===c||n+o===c?t:e:s===c||s===n+c?t:e}}return e}}},8171(e,t){function n(e,t){this.bits=e,this.value=t}t.z=n;function r(e,t){for(var n=1<>=1;return(e&n-1)+n}function i(e,t,r,i,s){do{e[t+(i-=r)]=new n(s.bits,s.value)}while(i>0)}function s(e,t,n){for(var r=1<0;--A[l])i(e,t+u,p,m,new n(255&l,65535&y[h++])),u=r(u,l);for(f=w-1,d=-1,l=o+1,p=2;l<=15;++l,p<<=1)for(;A[l]>0;--A[l])(u&f)!==d&&(t+=m,w+=m=1<<(g=s(A,l,o)),e[b+(d=u&f)]=new n(g+o&255,t-b-d&65535)),i(e,t+(u>>o),p,m,new n(l-o&255,65535&y[h++])),u=r(u,l);return w}},8270(e,t,n){var r=n(8712),i=10,s=11;function o(e,t,n){this.prefix=new Uint8Array(e.length),this.transform=t,this.suffix=new Uint8Array(n.length);for(var r=0;r'),new o("",0,"\n"),new o("",3,""),new o("",0,"]"),new o("",0," for "),new o("",14,""),new o("",2,""),new o("",0," a "),new o("",0," that "),new o(" ",i,""),new o("",0,". "),new o(".",0,""),new o(" ",0,", "),new o("",15,""),new o("",0," with "),new o("",0,"'"),new o("",0," from "),new o("",0," by "),new o("",16,""),new o("",17,""),new o(" the ",0,""),new o("",4,""),new o("",0,". The "),new o("",s,""),new o("",0," on "),new o("",0," as "),new o("",0," is "),new o("",7,""),new o("",1,"ing "),new o("",0,"\n\t"),new o("",0,":"),new o(" ",0,". "),new o("",0,"ed "),new o("",20,""),new o("",18,""),new o("",6,""),new o("",0,"("),new o("",i,", "),new o("",8,""),new o("",0," at "),new o("",0,"ly "),new o(" the ",0," of "),new o("",5,""),new o("",9,""),new o(" ",i,", "),new o("",i,'"'),new o(".",0,"("),new o("",s," "),new o("",i,'">'),new o("",0,'="'),new o(" ",0,"."),new o(".com/",0,""),new o(" the ",0," of the "),new o("",i,"'"),new o("",0,". This "),new o("",0,","),new o(".",0," "),new o("",i,"("),new o("",i,"."),new o("",0," not "),new o(" ",0,'="'),new o("",0,"er "),new o(" ",s," "),new o("",0,"al "),new o(" ",s,""),new o("",0,"='"),new o("",s,'"'),new o("",i,". "),new o(" ",0,"("),new o("",0,"ful "),new o(" ",i,". "),new o("",0,"ive "),new o("",0,"less "),new o("",s,"'"),new o("",0,"est "),new o(" ",i,"."),new o("",s,'">'),new o(" ",0,"='"),new o("",i,","),new o("",0,"ize "),new o("",s,"."),new o(" ",0,""),new o(" ",0,","),new o("",i,'="'),new o("",s,'="'),new o("",0,"ous "),new o("",s,", "),new o("",i,"='"),new o(" ",i,","),new o(" ",s,'="'),new o(" ",s,", "),new o("",s,","),new o("",s,"("),new o("",s,". "),new o(" ",s,"."),new o("",s,"='"),new o(" ",s,". "),new o(" ",i,'="'),new o(" ",s,"='"),new o(" ",i,"='")];function c(e,t){return e[t]<192?(e[t]>=97&&e[t]<=122&&(e[t]^=32),1):e[t]<224?(e[t+1]^=32,2):(e[t+2]^=5,3)}t.kTransforms=a,t.kNumTransforms=a.length,t.transformDictionaryWord=function(e,t,n,o,l){var h,u=a[l].prefix,p=a[l].suffix,d=a[l].transform,f=d<12?0:d-11,g=0,m=t;f>o&&(f=o);for(var w=0;w0;){var y=c(e,h);h+=y,o-=y}for(var b=0;b * @license MIT */ const r=n(7526),i=n(251),s="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=c,t.SlowBuffer=function(e){return+e!=e&&(e=0),c.alloc(+e)},t.INSPECT_MAX_BYTES=50;const o=2147483647;function a(e){if(e>o)throw new RangeError('The value "'+e+'" is invalid for option "size"');const t=new Uint8Array(e);return Object.setPrototypeOf(t,c.prototype),t}function c(e,t,n){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return u(e)}return l(e,t,n)}function l(e,t,n){if("string"==typeof e)return function(e,t){if("string"==typeof t&&""!==t||(t="utf8"),!c.isEncoding(t))throw new TypeError("Unknown encoding: "+t);const n=0|g(e,t);let r=a(n);const i=r.write(e,t);return i!==n&&(r=r.slice(0,i)),r}(e,t);if(ArrayBuffer.isView(e))return function(e){if(X(e,Uint8Array)){const t=new Uint8Array(e);return d(t.buffer,t.byteOffset,t.byteLength)}return p(e)}(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(X(e,ArrayBuffer)||e&&X(e.buffer,ArrayBuffer))return d(e,t,n);if("undefined"!=typeof SharedArrayBuffer&&(X(e,SharedArrayBuffer)||e&&X(e.buffer,SharedArrayBuffer)))return d(e,t,n);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');const r=e.valueOf&&e.valueOf();if(null!=r&&r!==e)return c.from(r,t,n);const i=function(e){if(c.isBuffer(e)){const t=0|f(e.length),n=a(t);return 0===n.length||e.copy(n,0,0,t),n}return void 0!==e.length?"number"!=typeof e.length||Y(e.length)?a(0):p(e):"Buffer"===e.type&&Array.isArray(e.data)?p(e.data):void 0}(e);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return c.from(e[Symbol.toPrimitive]("string"),t,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function h(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function u(e){return h(e),a(e<0?0:0|f(e))}function p(e){const t=e.length<0?0:0|f(e.length),n=a(t);for(let r=0;r=o)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o.toString(16)+" bytes");return 0|e}function g(e,t){if(c.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||X(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);const n=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;let i=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return G(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return q(e).length;default:if(i)return r?-1:G(e).length;t=(""+t).toLowerCase(),i=!0}}function m(e,t,n){let r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return O(this,t,n);case"utf8":case"utf-8":return S(this,t,n);case"ascii":return C(this,t,n);case"latin1":case"binary":return R(this,t,n);case"base64":return I(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function w(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function y(e,t,n,r,i){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),Y(n=+n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=c.from(t,r)),c.isBuffer(t))return 0===t.length?-1:b(e,t,n,r,i);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):b(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function b(e,t,n,r,i){let s,o=1,a=e.length,c=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;o=2,a/=2,c/=2,n/=2}function l(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(i){let r=-1;for(s=n;sa&&(n=a-c),s=n;s>=0;s--){let n=!0;for(let r=0;ri&&(r=i):r=i;const s=t.length;let o;for(r>s/2&&(r=s/2),o=0;o>8,i=n%256,s.push(i),s.push(r);return s}(t,e.length-n),e,n,r)}function I(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function S(e,t,n){n=Math.min(e.length,n);const r=[];let i=t;for(;i239?4:t>223?3:t>191?2:1;if(i+o<=n){let n,r,a,c;switch(o){case 1:t<128&&(s=t);break;case 2:n=e[i+1],128==(192&n)&&(c=(31&t)<<6|63&n,c>127&&(s=c));break;case 3:n=e[i+1],r=e[i+2],128==(192&n)&&128==(192&r)&&(c=(15&t)<<12|(63&n)<<6|63&r,c>2047&&(c<55296||c>57343)&&(s=c));break;case 4:n=e[i+1],r=e[i+2],a=e[i+3],128==(192&n)&&128==(192&r)&&128==(192&a)&&(c=(15&t)<<18|(63&n)<<12|(63&r)<<6|63&a,c>65535&&c<1114112&&(s=c))}}null===s?(s=65533,o=1):s>65535&&(s-=65536,r.push(s>>>10&1023|55296),s=56320|1023&s),r.push(s),i+=o}return function(e){const t=e.length;if(t<=T)return String.fromCharCode.apply(String,e);let n="",r=0;for(;rr.length?(c.isBuffer(t)||(t=c.from(t)),t.copy(r,i)):Uint8Array.prototype.set.call(r,t,i);else{if(!c.isBuffer(t))throw new TypeError('"list" argument must be an Array of Buffers');t.copy(r,i)}i+=t.length}return r},c.byteLength=g,c.prototype._isBuffer=!0,c.prototype.swap16=function(){const e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;tn&&(e+=" ... "),""},s&&(c.prototype[s]=c.prototype.inspect),c.prototype.compare=function(e,t,n,r,i){if(X(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),!c.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===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;let s=(i>>>=0)-(r>>>=0),o=(n>>>=0)-(t>>>=0);const a=Math.min(s,o),l=this.slice(r,i),h=e.slice(t,n);for(let e=0;e>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}const i=this.length-t;if((void 0===n||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");let s=!1;for(;;)switch(r){case"hex":return A(this,e,t,n);case"utf8":case"utf-8":return v(this,e,t,n);case"ascii":case"latin1":case"binary":return _(this,e,t,n);case"base64":return E(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return x(this,e,t,n);default:if(s)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),s=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const T=4096;function C(e,t,n){let r="";n=Math.min(e.length,n);for(let i=t;ir)&&(n=r);let i="";for(let r=t;rn)throw new RangeError("Trying to access beyond buffer length")}function B(e,t,n,r,i,s){if(!c.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw new RangeError("Index out of range")}function P(e,t,n,r,i){W(t,r,i,e,n,7);let s=Number(t&BigInt(4294967295));e[n++]=s,s>>=8,e[n++]=s,s>>=8,e[n++]=s,s>>=8,e[n++]=s;let o=Number(t>>BigInt(32)&BigInt(4294967295));return e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o,n}function D(e,t,n,r,i){W(t,r,i,e,n,7);let s=Number(t&BigInt(4294967295));e[n+7]=s,s>>=8,e[n+6]=s,s>>=8,e[n+5]=s,s>>=8,e[n+4]=s;let o=Number(t>>BigInt(32)&BigInt(4294967295));return e[n+3]=o,o>>=8,e[n+2]=o,o>>=8,e[n+1]=o,o>>=8,e[n]=o,n+8}function L(e,t,n,r,i,s){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function U(e,t,n,r,s){return t=+t,n>>>=0,s||L(e,0,n,4),i.write(e,t,n,r,23,4),n+4}function M(e,t,n,r,s){return t=+t,n>>>=0,s||L(e,0,n,8),i.write(e,t,n,r,52,8),n+8}c.prototype.slice=function(e,t){const 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>>=0,t>>>=0,n||N(e,t,this.length);let r=this[e],i=1,s=0;for(;++s>>=0,t>>>=0,n||N(e,t,this.length);let r=this[e+--t],i=1;for(;t>0&&(i*=256);)r+=this[e+--t]*i;return r},c.prototype.readUint8=c.prototype.readUInt8=function(e,t){return e>>>=0,t||N(e,1,this.length),this[e]},c.prototype.readUint16LE=c.prototype.readUInt16LE=function(e,t){return e>>>=0,t||N(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUint16BE=c.prototype.readUInt16BE=function(e,t){return e>>>=0,t||N(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUint32LE=c.prototype.readUInt32LE=function(e,t){return e>>>=0,t||N(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},c.prototype.readUint32BE=c.prototype.readUInt32BE=function(e,t){return e>>>=0,t||N(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readBigUInt64LE=Z(function(e){V(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||Q(e,this.length-8);const r=t+256*this[++e]+65536*this[++e]+this[++e]*2**24,i=this[++e]+256*this[++e]+65536*this[++e]+n*2**24;return BigInt(r)+(BigInt(i)<>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||Q(e,this.length-8);const r=t*2**24+65536*this[++e]+256*this[++e]+this[++e],i=this[++e]*2**24+65536*this[++e]+256*this[++e]+n;return(BigInt(r)<>>=0,t>>>=0,n||N(e,t,this.length);let r=this[e],i=1,s=0;for(;++s=i&&(r-=Math.pow(2,8*t)),r},c.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||N(e,t,this.length);let r=t,i=1,s=this[e+--r];for(;r>0&&(i*=256);)s+=this[e+--r]*i;return i*=128,s>=i&&(s-=Math.pow(2,8*t)),s},c.prototype.readInt8=function(e,t){return e>>>=0,t||N(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.prototype.readInt16LE=function(e,t){e>>>=0,t||N(e,2,this.length);const n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt16BE=function(e,t){e>>>=0,t||N(e,2,this.length);const n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt32LE=function(e,t){return e>>>=0,t||N(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return e>>>=0,t||N(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readBigInt64LE=Z(function(e){V(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||Q(e,this.length-8);const r=this[e+4]+256*this[e+5]+65536*this[e+6]+(n<<24);return(BigInt(r)<>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||Q(e,this.length-8);const r=(t<<24)+65536*this[++e]+256*this[++e]+this[++e];return(BigInt(r)<>>=0,t||N(e,4,this.length),i.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return e>>>=0,t||N(e,4,this.length),i.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return e>>>=0,t||N(e,8,this.length),i.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return e>>>=0,t||N(e,8,this.length),i.read(this,e,!1,52,8)},c.prototype.writeUintLE=c.prototype.writeUIntLE=function(e,t,n,r){e=+e,t>>>=0,n>>>=0,r||B(this,e,t,n,Math.pow(2,8*n)-1,0);let i=1,s=0;for(this[t]=255&e;++s>>=0,n>>>=0,r||B(this,e,t,n,Math.pow(2,8*n)-1,0);let i=n-1,s=1;for(this[t+i]=255&e;--i>=0&&(s*=256);)this[t+i]=e/s&255;return t+n},c.prototype.writeUint8=c.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||B(this,e,t,1,255,0),this[t]=255&e,t+1},c.prototype.writeUint16LE=c.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||B(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeUint16BE=c.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||B(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeUint32LE=c.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||B(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},c.prototype.writeUint32BE=c.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||B(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},c.prototype.writeBigUInt64LE=Z(function(e,t=0){return P(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),c.prototype.writeBigUInt64BE=Z(function(e,t=0){return D(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),c.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){const r=Math.pow(2,8*n-1);B(this,e,t,n,r-1,-r)}let i=0,s=1,o=0;for(this[t]=255&e;++i>>=0,!r){const r=Math.pow(2,8*n-1);B(this,e,t,n,r-1,-r)}let i=n-1,s=1,o=0;for(this[t+i]=255&e;--i>=0&&(s*=256);)e<0&&0===o&&0!==this[t+i+1]&&(o=1),this[t+i]=(e/s|0)-o&255;return t+n},c.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||B(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||B(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||B(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||B(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},c.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||B(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},c.prototype.writeBigInt64LE=Z(function(e,t=0){return P(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),c.prototype.writeBigInt64BE=Z(function(e,t=0){return D(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),c.prototype.writeFloatLE=function(e,t,n){return U(this,e,t,!0,n)},c.prototype.writeFloatBE=function(e,t,n){return U(this,e,t,!1,n)},c.prototype.writeDoubleLE=function(e,t,n){return M(this,e,t,!0,n)},c.prototype.writeDoubleBE=function(e,t,n){return M(this,e,t,!1,n)},c.prototype.copy=function(e,t,n,r){if(!c.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i=r+4;n-=3)t=`_${e.slice(n-3,n)}${t}`;return`${e.slice(0,n)}${t}`}function W(e,t,n,r,i,s){if(e>n||e3?0===t||t===BigInt(0)?`>= 0${r} and < 2${r} ** ${8*(s+1)}${r}`:`>= -(2${r} ** ${8*(s+1)-1}${r}) and < 2 ** ${8*(s+1)-1}${r}`:`>= ${t}${r} and <= ${n}${r}`,new F.ERR_OUT_OF_RANGE("value",i,e)}!function(e,t,n){V(t,"offset"),void 0!==e[t]&&void 0!==e[t+n]||Q(t,e.length-(n+1))}(r,i,s)}function V(e,t){if("number"!=typeof e)throw new F.ERR_INVALID_ARG_TYPE(t,"number",e)}function Q(e,t,n){if(Math.floor(e)!==e)throw V(e,n),new F.ERR_OUT_OF_RANGE(n||"offset","an integer",e);if(t<0)throw new F.ERR_BUFFER_OUT_OF_BOUNDS;throw new F.ERR_OUT_OF_RANGE(n||"offset",`>= ${n?1:0} and <= ${t}`,e)}j("ERR_BUFFER_OUT_OF_BOUNDS",function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),j("ERR_INVALID_ARG_TYPE",function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`},TypeError),j("ERR_OUT_OF_RANGE",function(e,t,n){let r=`The value of "${e}" is out of range.`,i=n;return Number.isInteger(n)&&Math.abs(n)>2**32?i=H(String(n)):"bigint"==typeof n&&(i=String(n),(n>BigInt(2)**BigInt(32)||n<-(BigInt(2)**BigInt(32)))&&(i=H(i)),i+="n"),r+=` It must be ${t}. Received ${i}`,r},RangeError);const z=/[^+/0-9A-Za-z-_]/g;function G(e,t){let n;t=t||1/0;const r=e.length;let i=null;const s=[];for(let o=0;o55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&s.push(239,191,189);continue}if(o+1===r){(t-=3)>-1&&s.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&s.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&s.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;s.push(n)}else if(n<2048){if((t-=2)<0)break;s.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;s.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;s.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return s}function q(e){return r.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(z,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function K(e,t,n,r){let i;for(i=0;i=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function X(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function Y(e){return e!=e}const J=function(){const e="0123456789abcdef",t=new Array(256);for(let n=0;n<16;++n){const r=16*n;for(let i=0;i<16;++i)t[r+i]=e[n]+e[i]}return t}();function Z(e){return"undefined"==typeof BigInt?$:e}function $(){throw new Error("BigInt not supported")}},8310(e,t,n){e.exports=i;var r=n(7007).EventEmitter;function i(){r.call(this)}n(6698)(i,r),i.Readable=n(5412),i.Writable=n(6708),i.Duplex=n(5382),i.Transform=n(4610),i.PassThrough=n(3600),i.finished=n(6238),i.pipeline=n(7758),i.Stream=i,i.prototype.pipe=function(e,t){var n=this;function i(t){e.writable&&!1===e.write(t)&&n.pause&&n.pause()}function s(){n.readable&&n.resume&&n.resume()}n.on("data",i),e.on("drain",s),e._isStdio||t&&!1===t.end||(n.on("end",a),n.on("close",c));var o=!1;function a(){o||(o=!0,e.end())}function c(){o||(o=!0,"function"==typeof e.destroy&&e.destroy())}function l(e){if(h(),0===r.listenerCount(this,"error"))throw e}function h(){n.removeListener("data",i),e.removeListener("drain",s),n.removeListener("end",a),n.removeListener("close",c),n.removeListener("error",l),e.removeListener("error",l),n.removeListener("end",h),n.removeListener("close",h),e.removeListener("close",h)}return n.on("error",l),e.on("error",l),n.on("end",h),n.on("close",h),e.on("close",h),e.emit("pipe",n),e}},8411(e,t,n){var r,i=n(9805),s=n(3665),o=n(3269),a=n(4823),c=n(4674),l=-2,h=258,u=262,p=103,d=113,f=666;function g(e,t){return e.msg=c[t],t}function m(e){return(e<<1)-(e>4?9:0)}function w(e){for(var t=e.length;--t>=0;)e[t]=0}function y(e){var t=e.state,n=t.pending;n>e.avail_out&&(n=e.avail_out),0!==n&&(i.arraySet(e.output,t.pending_buf,t.pending_out,n,e.next_out),e.next_out+=n,t.pending_out+=n,e.total_out+=n,e.avail_out-=n,t.pending-=n,0===t.pending&&(t.pending_out=0))}function b(e,t){s._tr_flush_block(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,y(e.strm)}function A(e,t){e.pending_buf[e.pending++]=t}function v(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function _(e,t,n,r){var s=e.avail_in;return s>r&&(s=r),0===s?0:(e.avail_in-=s,i.arraySet(t,e.input,e.next_in,s,n),1===e.state.wrap?e.adler=o(e.adler,t,s,n):2===e.state.wrap&&(e.adler=a(e.adler,t,s,n)),e.next_in+=s,e.total_in+=s,s)}function E(e,t){var n,r,i=e.max_chain_length,s=e.strstart,o=e.prev_length,a=e.nice_match,c=e.strstart>e.w_size-u?e.strstart-(e.w_size-u):0,l=e.window,p=e.w_mask,d=e.prev,f=e.strstart+h,g=l[s+o-1],m=l[s+o];e.prev_length>=e.good_match&&(i>>=2),a>e.lookahead&&(a=e.lookahead);do{if(l[(n=t)+o]===m&&l[n+o-1]===g&&l[n]===l[s]&&l[++n]===l[s+1]){s+=2,n++;do{}while(l[++s]===l[++n]&&l[++s]===l[++n]&&l[++s]===l[++n]&&l[++s]===l[++n]&&l[++s]===l[++n]&&l[++s]===l[++n]&&l[++s]===l[++n]&&l[++s]===l[++n]&&so){if(e.match_start=t,o=r,r>=a)break;g=l[s+o-1],m=l[s+o]}}}while((t=d[t&p])>c&&0!==--i);return o<=e.lookahead?o:e.lookahead}function x(e){var t,n,r,s,o,a=e.w_size;do{if(s=e.window_size-e.lookahead-e.strstart,e.strstart>=a+(a-u)){i.arraySet(e.window,e.window,a,a,0),e.match_start-=a,e.strstart-=a,e.block_start-=a,t=n=e.hash_size;do{r=e.head[--t],e.head[t]=r>=a?r-a:0}while(--n);t=n=a;do{r=e.prev[--t],e.prev[t]=r>=a?r-a:0}while(--n);s+=a}if(0===e.strm.avail_in)break;if(n=_(e.strm,e.window,e.strstart+e.lookahead,s),e.lookahead+=n,e.lookahead+e.insert>=3)for(o=e.strstart-e.insert,e.ins_h=e.window[o],e.ins_h=(e.ins_h<=3&&(e.ins_h=(e.ins_h<=3)if(r=s._tr_tally(e,e.strstart-e.match_start,e.match_length-3),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=3){e.match_length--;do{e.strstart++,e.ins_h=(e.ins_h<=3&&(e.ins_h=(e.ins_h<4096)&&(e.match_length=2)),e.prev_length>=3&&e.match_length<=e.prev_length){i=e.strstart+e.lookahead-3,r=s._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-3),e.lookahead-=e.prev_length-1,e.prev_length-=2;do{++e.strstart<=i&&(e.ins_h=(e.ins_h<15&&(a=2,r-=16),s<1||s>9||8!==n||r<8||r>15||t<0||t>9||o<0||o>4)return g(e,l);8===r&&(r=9);var c=new C;return e.state=c,c.strm=e,c.wrap=a,c.gzhead=null,c.w_bits=r,c.w_size=1<e.pending_buf_size-5&&(n=e.pending_buf_size-5);;){if(e.lookahead<=1){if(x(e),0===e.lookahead&&0===t)return 1;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;var r=e.block_start+n;if((0===e.strstart||e.strstart>=r)&&(e.lookahead=e.strstart-r,e.strstart=r,b(e,!1),0===e.strm.avail_out))return 1;if(e.strstart-e.block_start>=e.w_size-u&&(b(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(b(e,!0),0===e.strm.avail_out?3:4):(e.strstart>e.block_start&&(b(e,!1),e.strm.avail_out),1)}),new T(4,4,8,4,I),new T(4,5,16,8,I),new T(4,6,32,32,I),new T(4,4,16,16,S),new T(8,16,32,32,S),new T(8,16,128,128,S),new T(8,32,128,256,S),new T(32,128,258,1024,S),new T(32,258,258,4096,S)],t.deflateInit=function(e,t){return k(e,t,8,15,8,0)},t.deflateInit2=k,t.deflateReset=O,t.deflateResetKeep=R,t.deflateSetHeader=function(e,t){return e&&e.state?2!==e.state.wrap?l:(e.state.gzhead=t,0):l},t.deflate=function(e,t){var n,i,o,c;if(!e||!e.state||t>5||t<0)return e?g(e,l):l;if(i=e.state,!e.output||!e.input&&0!==e.avail_in||i.status===f&&4!==t)return g(e,0===e.avail_out?-5:l);if(i.strm=e,n=i.last_flush,i.last_flush=t,42===i.status)if(2===i.wrap)e.adler=0,A(i,31),A(i,139),A(i,8),i.gzhead?(A(i,(i.gzhead.text?1:0)+(i.gzhead.hcrc?2:0)+(i.gzhead.extra?4:0)+(i.gzhead.name?8:0)+(i.gzhead.comment?16:0)),A(i,255&i.gzhead.time),A(i,i.gzhead.time>>8&255),A(i,i.gzhead.time>>16&255),A(i,i.gzhead.time>>24&255),A(i,9===i.level?2:i.strategy>=2||i.level<2?4:0),A(i,255&i.gzhead.os),i.gzhead.extra&&i.gzhead.extra.length&&(A(i,255&i.gzhead.extra.length),A(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(e.adler=a(e.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=69):(A(i,0),A(i,0),A(i,0),A(i,0),A(i,0),A(i,9===i.level?2:i.strategy>=2||i.level<2?4:0),A(i,3),i.status=d);else{var u=8+(i.w_bits-8<<4)<<8;u|=(i.strategy>=2||i.level<2?0:i.level<6?1:6===i.level?2:3)<<6,0!==i.strstart&&(u|=32),u+=31-u%31,i.status=d,v(i,u),0!==i.strstart&&(v(i,e.adler>>>16),v(i,65535&e.adler)),e.adler=1}if(69===i.status)if(i.gzhead.extra){for(o=i.pending;i.gzindex<(65535&i.gzhead.extra.length)&&(i.pending!==i.pending_buf_size||(i.gzhead.hcrc&&i.pending>o&&(e.adler=a(e.adler,i.pending_buf,i.pending-o,o)),y(e),o=i.pending,i.pending!==i.pending_buf_size));)A(i,255&i.gzhead.extra[i.gzindex]),i.gzindex++;i.gzhead.hcrc&&i.pending>o&&(e.adler=a(e.adler,i.pending_buf,i.pending-o,o)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=73)}else i.status=73;if(73===i.status)if(i.gzhead.name){o=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>o&&(e.adler=a(e.adler,i.pending_buf,i.pending-o,o)),y(e),o=i.pending,i.pending===i.pending_buf_size)){c=1;break}c=i.gzindexo&&(e.adler=a(e.adler,i.pending_buf,i.pending-o,o)),0===c&&(i.gzindex=0,i.status=91)}else i.status=91;if(91===i.status)if(i.gzhead.comment){o=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>o&&(e.adler=a(e.adler,i.pending_buf,i.pending-o,o)),y(e),o=i.pending,i.pending===i.pending_buf_size)){c=1;break}c=i.gzindexo&&(e.adler=a(e.adler,i.pending_buf,i.pending-o,o)),0===c&&(i.status=p)}else i.status=p;if(i.status===p&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&y(e),i.pending+2<=i.pending_buf_size&&(A(i,255&e.adler),A(i,e.adler>>8&255),e.adler=0,i.status=d)):i.status=d),0!==i.pending){if(y(e),0===e.avail_out)return i.last_flush=-1,0}else if(0===e.avail_in&&m(t)<=m(n)&&4!==t)return g(e,-5);if(i.status===f&&0!==e.avail_in)return g(e,-5);if(0!==e.avail_in||0!==i.lookahead||0!==t&&i.status!==f){var _=2===i.strategy?function(e,t){for(var n;;){if(0===e.lookahead&&(x(e),0===e.lookahead)){if(0===t)return 1;break}if(e.match_length=0,n=s._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,n&&(b(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(b(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(b(e,!1),0===e.strm.avail_out)?1:2}(i,t):3===i.strategy?function(e,t){for(var n,r,i,o,a=e.window;;){if(e.lookahead<=h){if(x(e),e.lookahead<=h&&0===t)return 1;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=3&&e.strstart>0&&(r=a[i=e.strstart-1])===a[++i]&&r===a[++i]&&r===a[++i]){o=e.strstart+h;do{}while(r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&ie.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=3?(n=s._tr_tally(e,1,e.match_length-3),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(n=s._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),n&&(b(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(b(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(b(e,!1),0===e.strm.avail_out)?1:2}(i,t):r[i.level].func(i,t);if(3!==_&&4!==_||(i.status=f),1===_||3===_)return 0===e.avail_out&&(i.last_flush=-1),0;if(2===_&&(1===t?s._tr_align(i):5!==t&&(s._tr_stored_block(i,0,0,!1),3===t&&(w(i.head),0===i.lookahead&&(i.strstart=0,i.block_start=0,i.insert=0))),y(e),0===e.avail_out))return i.last_flush=-1,0}return 4!==t?0:i.wrap<=0?1:(2===i.wrap?(A(i,255&e.adler),A(i,e.adler>>8&255),A(i,e.adler>>16&255),A(i,e.adler>>24&255),A(i,255&e.total_in),A(i,e.total_in>>8&255),A(i,e.total_in>>16&255),A(i,e.total_in>>24&255)):(v(i,e.adler>>>16),v(i,65535&e.adler)),y(e),i.wrap>0&&(i.wrap=-i.wrap),0!==i.pending?0:1)},t.deflateEnd=function(e){var t;return e&&e.state?42!==(t=e.state.status)&&69!==t&&73!==t&&91!==t&&t!==p&&t!==d&&t!==f?g(e,l):(e.state=null,t===d?g(e,-3):0):l},t.deflateSetDictionary=function(e,t){var n,r,s,a,c,h,u,p,d=t.length;if(!e||!e.state)return l;if(2===(a=(n=e.state).wrap)||1===a&&42!==n.status||n.lookahead)return l;for(1===a&&(e.adler=o(e.adler,t,d,0)),n.wrap=0,d>=n.w_size&&(0===a&&(w(n.head),n.strstart=0,n.block_start=0,n.insert=0),p=new i.Buf8(n.w_size),i.arraySet(p,t,d-n.w_size,n.w_size,0),t=p,d=n.w_size),c=e.avail_in,h=e.next_in,u=e.input,e.avail_in=d,e.next_in=0,e.input=t,x(n);n.lookahead>=3;){r=n.strstart,s=n.lookahead-2;do{n.ins_h=(n.ins_h<","g"),val:">"},{regex:new RegExp("<","g"),val:"<"},{regex:new RegExp("'","g"),val:"'"},{regex:new RegExp('"',"g"),val:"""}],processEntities:!0,stopNodes:[],oneListGroup:!1};function o(e){this.options=Object.assign({},s,e),!0===this.options.ignoreAttributes||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.ignoreAttributesFn=i(this.options.ignoreAttributes),this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=l),this.processTextOrObjNode=a,this.options.format?(this.indentate=c,this.tagEndChar=">\n",this.newLine="\n"):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}function a(e,t,n,r){const i=this.j2x(e,n+1,r.concat(t));return void 0!==e[this.options.textNodeName]&&1===Object.keys(e).length?this.buildTextValNode(e[this.options.textNodeName],t,i.attrStr,n):this.buildObjectNode(i.val,t,i.attrStr,n)}function c(e){return this.options.indentBy.repeat(e)}function l(e){return!(!e.startsWith(this.options.attributeNamePrefix)||e===this.options.textNodeName)&&e.substr(this.attrPrefixLen)}o.prototype.build=function(e){return this.options.preserveOrder?r(e,this.options):(Array.isArray(e)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(e={[this.options.arrayNodeName]:e}),this.j2x(e,0,[]).val)},o.prototype.j2x=function(e,t,n){let r="",i="";const s=n.join(".");for(let o in e)if(Object.prototype.hasOwnProperty.call(e,o))if(void 0===e[o])this.isAttribute(o)&&(i+="");else if(null===e[o])this.isAttribute(o)||o===this.options.cdataPropName?i+="":"?"===o[0]?i+=this.indentate(t)+"<"+o+"?"+this.tagEndChar:i+=this.indentate(t)+"<"+o+"/"+this.tagEndChar;else if(e[o]instanceof Date)i+=this.buildTextValNode(e[o],o,"",t);else if("object"!=typeof e[o]){const n=this.isAttribute(o);if(n&&!this.ignoreAttributesFn(n,s))r+=this.buildAttrPairStr(n,""+e[o]);else if(!n)if(o===this.options.textNodeName){let t=this.options.tagValueProcessor(o,""+e[o]);i+=this.replaceEntitiesValue(t)}else i+=this.buildTextValNode(e[o],o,"",t)}else if(Array.isArray(e[o])){const r=e[o].length;let s="",a="";for(let c=0;c"+e+i}},o.prototype.closeTag=function(e){let t="";return-1!==this.options.unpairedTags.indexOf(e)?this.options.suppressUnpairedNode||(t="/"):t=this.options.suppressEmptyNode?"/":`>`+this.newLine;if(!1!==this.options.commentPropName&&t===this.options.commentPropName)return this.indentate(r)+`\x3c!--${e}--\x3e`+this.newLine;if("?"===t[0])return this.indentate(r)+"<"+t+n+"?"+this.tagEndChar;{let i=this.options.tagValueProcessor(t,e);return i=this.replaceEntitiesValue(i),""===i?this.indentate(r)+"<"+t+n+this.closeTag(t)+this.tagEndChar:this.indentate(r)+"<"+t+n+">"+i+"0&&this.options.processEntities)for(let t=0;t0?17+t:(t=e.readBits(3))>0?8+t:17}function y(e){if(e.readBits(1)){var t=e.readBits(3);return 0===t?1:e.readBits(t)+(1<1&&0===s)throw new Error("Invalid size byte");i.meta_block_length|=s<<8*r}}else for(r=0;r4&&0===o)throw new Error("Invalid size nibble");i.meta_block_length|=o<<4*r}return++i.meta_block_length,i.input_end||i.is_metadata||(i.is_uncompressed=e.readBits(1)),i}function v(e,t,n){var r;return n.fillBitWindow(),(r=e[t+=n.val_>>>n.bit_pos_&255].bits-8)>0&&(n.bit_pos_+=8,t+=e[t].value,t+=n.val_>>>n.bit_pos_&(1<>=1,++h;for(f=0;f0;++f){var b,A=d[f],v=0;r.fillBitWindow(),v+=r.val_>>>r.bit_pos_&15,r.bit_pos_+=y[v].bits,b=y[v].value,g[A]=b,0!==b&&(m-=32>>b,++w)}if(1!==w&&0!==m)throw new Error("[ReadHuffmanCode] invalid num_codes or space");!function(e,t,n,r){for(var i=0,s=8,o=0,l=0,h=32768,u=[],p=0;p<32;p++)u.push(new a(0,0));for(c(u,0,5,e,18);i0;){var d,f=0;if(r.readMoreInput(),r.fillBitWindow(),f+=r.val_>>>r.bit_pos_&31,r.bit_pos_+=u[f].bits,(d=255&u[f].value)<16)o=0,n[i++]=d,0!==d&&(s=d,h-=32768>>d);else{var g,m,w=d-14,y=0;if(16===d&&(y=s),l!==y&&(o=0,l=y),g=o,o>0&&(o-=2,o<<=w),i+(m=(o+=r.readBits(w)+3)-g)>t)throw new Error("[ReadHuffmanCodeLengths] symbol + repeat_delta > num_symbols");for(var b=0;b>>5]),this.htrees=new Uint32Array(t)}function T(e,t){var n,r,i={num_htrees:null,context_map:null},s=0;t.readMoreInput();var o=i.num_htrees=y(t)+1,c=i.context_map=new Uint8Array(e);if(o<=1)return i;for(t.readBits(1)&&(s=t.readBits(4)+1),n=[],r=0;r=e)throw new Error("[DecodeContextMap] i >= context_map_size");c[r]=0,++r}else c[r]=l-s,++r}return t.readBits(1)&&function(e,t){var n,r=new Uint8Array(256);for(n=0;n<256;++n)r[n]=n;for(n=0;n=e&&(a-=e),r[n]=a,i[c+(1&s[l])]=a,++s[l]}function R(e,t,n,r,i,o){var a,c=i+1,l=n&i,h=o.pos_&s.IBUF_MASK;if(t<8||o.bit_pos_+(t<<3)0;)o.readMoreInput(),r[l++]=o.readBits(8),l===c&&(e.write(r,c),l=0);else{if(o.bit_end_pos_<32)throw new Error("[CopyUncompressedBlockToOutput] br.bit_end_pos_ < 32");for(;o.bit_pos_<32;)r[l]=o.val_>>>o.bit_pos_,o.bit_pos_+=8,++l,--t;if(h+(a=o.bit_end_pos_-o.bit_pos_>>3)>s.IBUF_MASK){for(var u=s.IBUF_MASK+1-h,p=0;p=c)for(e.write(r,c),l-=c,p=0;p=c;){if(a=c-l,o.input_.read(r,l,a)t.buffer.length){var pe=new Uint8Array(k+Z);pe.set(t.buffer),t.buffer=pe}if(N=ue.input_end,H=ue.is_uncompressed,ue.is_metadata)for(O(I);Z>0;--Z)I.readMoreInput(),I.readBits(8);else if(0!==Z)if(H)I.bit_pos_=I.bit_pos_+7&-8,R(t,Z,k,f,d,I),k+=Z;else{for(n=0;n<3;++n)te[n]=y(I)+1,te[n]>=2&&(_(te[n]+2,m,n*p,I),_(26,b,n*p,I),$[n]=E(b,n*p,I),re[n]=1);for(I.readMoreInput(),Q=(1<<(W=I.readBits(2)))-1,z=(V=16+(I.readBits(4)<0;){var ge,me,we,ye,be,Ae,ve,_e,Ee,xe,Ie,Se;for(I.readMoreInput(),0===$[1]&&(C(te[1],m,1,ee,ne,re,I),$[1]=E(b,p,I),J=M[1].htrees[ee[1]]),--$[1],(me=(ge=v(M[1].codes,J,I))>>6)>=2?(me-=2,ve=-1):ve=0,we=h.kInsertRangeLut[me]+(ge>>3&7),ye=h.kCopyRangeLut[me]+(7&ge),be=h.kInsertLengthPrefixCode[we].offset+I.readBits(h.kInsertLengthPrefixCode[we].nbits),Ae=h.kCopyLengthPrefixCode[ye].offset+I.readBits(h.kCopyLengthPrefixCode[ye].nbits),L=f[k-1&d],U=f[k-2&d],Ee=0;Ee4?3:Ae-2))],(ve=v(M[2].codes,M[2].htrees[ce],I))>=V&&(Se=(ve-=V)&Q,ve=V+((Te=(2+(1&(ve>>=W))<<(Ie=1+(ve>>1)))-4)+I.readBits(Ie)<(B=k=o.minDictionaryWordLength&&Ae<=o.maxDictionaryWordLength))throw new Error("Invalid backward reference. pos: "+k+" distance: "+_e+" len: "+Ae+" bytes left: "+Z);var Te=o.offsetsByLength[Ae],Ce=_e-B-1,Re=o.sizeBitsByLength[Ae],Oe=Ce>>Re;if(Te+=(Ce&(1<=g){t.write(f,c);for(var Ne=0;Ne0&&(P[3&D]=_e,++D),Ae>Z)throw new Error("Invalid backward reference. pos: "+k+" distance: "+_e+" len: "+Ae+" bytes left: "+Z);for(Ee=0;Ee{for(;t"===e[t]){if(a?"-"===e[t-1]&&"-"===e[t-2]&&(a=!1,i--):i--,0===i)break}else"["===e[t]?o=!0:c+=e[t];else{if(o&&s(e,"!ENTITY",t)){let i,s;if(t+=7,[i,s,t]=this.readEntityExp(e,t+1,this.suppressValidationErr),-1===s.indexOf("&")){if(!1!==this.options.enabled&&null!=this.options.maxEntityCount&&r>=this.options.maxEntityCount)throw new Error(`Entity count (${r+1}) exceeds maximum allowed (${this.options.maxEntityCount})`);const e=i.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");n[i]={regx:RegExp(`&${e};`,"g"),val:s},r++}}else if(o&&s(e,"!ELEMENT",t)){t+=8;const{index:n}=this.readElementExp(e,t+1);t=n}else if(o&&s(e,"!ATTLIST",t))t+=8;else if(o&&s(e,"!NOTATION",t)){t+=9;const{index:n}=this.readNotationExp(e,t+1,this.suppressValidationErr);t=n}else{if(!s(e,"!--",t))throw new Error("Invalid DOCTYPE");a=!0}i++,c=""}if(0!==i)throw new Error("Unclosed DOCTYPE")}return{entities:n,i:t}}readEntityExp(e,t){t=i(e,t);let n="";for(;tthis.options.maxEntitySize)throw new Error(`Entity "${n}" size (${r.length}) exceeds maximum allowed size (${this.options.maxEntitySize})`);return[n,r,--t]}readNotationExp(e,t){t=i(e,t);let n="";for(;t{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};n.r(r),n.d(r,{Any:()=>Hu,BaseBlock:()=>nh,BaseStringBlock:()=>ih,BitString:()=>tu,BmpString:()=>_u,Boolean:()=>Jh,CharacterString:()=>Bu,Choice:()=>Wu,Constructed:()=>qh,DATE:()=>Du,DateTime:()=>Fu,Duration:()=>Mu,EndOfContent:()=>Kh,Enumerated:()=>au,GeneralString:()=>Ou,GeneralizedTime:()=>Lu,GraphicString:()=>ku,HexBlock:()=>Yl,IA5String:()=>Ru,Integer:()=>ou,Null:()=>Xh,NumericString:()=>Su,ObjectIdentifier:()=>hu,OctetString:()=>$h,Primitive:()=>Hh,PrintableString:()=>Iu,RawData:()=>Vu,RelativeObjectIdentifier:()=>du,Repeated:()=>Qu,Sequence:()=>fu,Set:()=>gu,TIME:()=>ju,TeletexString:()=>Tu,TimeOfDay:()=>Uu,UTCTime:()=>Pu,UniversalString:()=>xu,Utf8String:()=>Au,ValueBlock:()=>Zl,VideotexString:()=>Cu,ViewWriter:()=>Nl,VisibleString:()=>Nu,compareSchema:()=>zu,fromBER:()=>Qh,verifySchema:()=>qu});const i=(e,t)=>t.some(t=>e instanceof t);let s,o;const a=new WeakMap,c=new WeakMap,l=new WeakMap,h=new WeakMap,u=new WeakMap;let p={get(e,t,n){if(e instanceof IDBTransaction){if("done"===t)return c.get(e);if("objectStoreNames"===t)return e.objectStoreNames||l.get(e);if("store"===t)return n.objectStoreNames[1]?void 0:n.objectStore(n.objectStoreNames[0])}return m(e[t])},set:(e,t,n)=>(e[t]=n,!0),has:(e,t)=>e instanceof IDBTransaction&&("done"===t||"store"===t)||t in e};function d(e){p=e(p)}function f(e){return e!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?(o||(o=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])).includes(e)?function(...t){return e.apply(w(this),t),m(a.get(this))}:function(...t){return m(e.apply(w(this),t))}:function(t,...n){const r=e.call(w(this),t,...n);return l.set(r,t.sort?t.sort():[t]),m(r)}}function g(e){return"function"==typeof e?f(e):(e instanceof IDBTransaction&&function(e){if(c.has(e))return;const t=new Promise((t,n)=>{const r=()=>{e.removeEventListener("complete",i),e.removeEventListener("error",s),e.removeEventListener("abort",s)},i=()=>{t(),r()},s=()=>{n(e.error||new DOMException("AbortError","AbortError")),r()};e.addEventListener("complete",i),e.addEventListener("error",s),e.addEventListener("abort",s)});c.set(e,t)}(e),i(e,s||(s=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction]))?new Proxy(e,p):e)}function m(e){if(e instanceof IDBRequest)return function(e){const t=new Promise((t,n)=>{const r=()=>{e.removeEventListener("success",i),e.removeEventListener("error",s)},i=()=>{t(m(e.result)),r()},s=()=>{n(e.error),r()};e.addEventListener("success",i),e.addEventListener("error",s)});return t.then(t=>{t instanceof IDBCursor&&a.set(t,e)}).catch(()=>{}),u.set(t,e),t}(e);if(h.has(e))return h.get(e);const t=g(e);return t!==e&&(h.set(e,t),u.set(t,e)),t}const w=e=>u.get(e);function y(e,t,{blocked:n,upgrade:r,blocking:i,terminated:s}={}){const o=indexedDB.open(e,t),a=m(o);return r&&o.addEventListener("upgradeneeded",e=>{r(m(o.result),e.oldVersion,e.newVersion,m(o.transaction),e)}),n&&o.addEventListener("blocked",e=>n(e.oldVersion,e.newVersion,e)),a.then(e=>{s&&e.addEventListener("close",()=>s()),i&&e.addEventListener("versionchange",e=>i(e.oldVersion,e.newVersion,e))}).catch(()=>{}),a}function b(e,{blocked:t}={}){const n=indexedDB.deleteDatabase(e);return t&&n.addEventListener("blocked",e=>t(e.oldVersion,e)),m(n).then(()=>{})}const A=["get","getKey","getAll","getAllKeys","count"],v=["put","add","delete","clear"],_=new Map;function E(e,t){if(!(e instanceof IDBDatabase)||t in e||"string"!=typeof t)return;if(_.get(t))return _.get(t);const n=t.replace(/FromIndex$/,""),r=t!==n,i=v.includes(n);if(!(n in(r?IDBIndex:IDBObjectStore).prototype)||!i&&!A.includes(n))return;const s=async function(e,...t){const s=this.transaction(e,i?"readwrite":"readonly");let o=s.store;return r&&(o=o.index(t.shift())),(await Promise.all([o[n](...t),i&&s.done]))[0]};return _.set(t,s),s}d(e=>({...e,get:(t,n,r)=>E(t,n)||e.get(t,n,r),has:(t,n)=>!!E(t,n)||e.has(t,n)}));const x=["continue","continuePrimaryKey","advance"],S={},I=new WeakMap,T=new WeakMap,C={get(e,t){if(!x.includes(t))return e[t];let n=S[t];return n||(n=S[t]=function(...e){I.set(this,T.get(this)[t](...e))}),n}};async function*R(...e){let t=this;if(t instanceof IDBCursor||(t=await t.openCursor(...e)),!t)return;const n=new Proxy(t,C);for(T.set(n,t),u.set(n,w(t));t;)yield n,t=await(I.get(n)||t.continue()),I.delete(n)}function k(e,t){return t===Symbol.asyncIterator&&i(e,[IDBIndex,IDBObjectStore,IDBCursor])||"iterate"===t&&i(e,[IDBIndex,IDBObjectStore])}d(e=>({...e,get:(t,n,r)=>k(t,n)?R:e.get(t,n,r),has:(t,n)=>k(t,n)||e.has(t,n)}));var N={202:"Accepted",502:"Bad Gateway",400:"Bad Request",409:"Conflict",100:"Continue",201:"Created",417:"Expectation Failed",424:"Failed Dependency",403:"Forbidden",504:"Gateway Timeout",410:"Gone",505:"HTTP Version Not Supported",418:"I'm a teapot",419:"Insufficient Space on Resource",507:"Insufficient Storage",500:"Internal Server Error",411:"Length Required",423:"Locked",420:"Method Failure",405:"Method Not Allowed",301:"Moved Permanently",302:"Moved Temporarily",207:"Multi-Status",300:"Multiple Choices",511:"Network Authentication Required",204:"No Content",203:"Non Authoritative Information",406:"Not Acceptable",404:"Not Found",501:"Not Implemented",304:"Not Modified",200:"OK",206:"Partial Content",402:"Payment Required",308:"Permanent Redirect",412:"Precondition Failed",428:"Precondition Required",102:"Processing",407:"Proxy Authentication Required",431:"Request Header Fields Too Large",408:"Request Timeout",413:"Request Entity Too Large",414:"Request-URI Too Long",416:"Requested Range Not Satisfiable",205:"Reset Content",303:"See Other",503:"Service Unavailable",101:"Switching Protocols",307:"Temporary Redirect",429:"Too Many Requests",401:"Unauthorized",451:"Unavailable For Legal Reasons",422:"Unprocessable Entity",415:"Unsupported Media Type",305:"Use Proxy"};function O(e){var t=N[e.toString()];if(!t)throw new Error("Status code does not exist: "+e);return t}const B=25e6,P=262144,L="___wb_replay_top_frame",D=/Expires=\w{3},\s\d[^;,]+(?:;\s*)?/gi;let U="default-src 'unsafe-eval' 'unsafe-inline' 'self' data: blob: mediastream: ws: wss: ; form-action 'self' ; object-src 'none'";function F(){return U}function M(e,t){for(const n of t)if(e.startsWith(n))return!0;return!1}function j(e){return e.replace(/[-:T]/g,"").slice(0,14)}function H(e){if(!e)return new Date;e.length<17&&(e+="00000101000000000".substring(e.length));const t=e.substring(0,4)+"-"+e.substring(4,6)+"-"+e.substring(6,8)+"T"+e.substring(8,10)+":"+e.substring(10,12)+":"+e.substring(12,14)+"."+e.substring(14)+"Z";return new Date(t)}function W(e){if(!e)return"";try{return""+e.getTime()/1e3}catch(e){return""}}function Q(e){return Array.from(new Uint8Array(e)).map(e=>e.toString(16).padStart(2,"0")).join("")}async function V(e,t,n=null){const r="string"==typeof e?(new TextEncoder).encode(e):e,i=await crypto.subtle.digest(t,r);return""===n?Q(i):(n||t)+":"+Q(i)}function z(e){let t="";for(let n=0;nsetTimeout(t,e))}const ae=new Set;function ce(e){for(const t of e)try{const e=new URL(t,self.location.href);ae.add(e.href)}catch(e){}}var le,he=n(4668),ue=n.n(he),pe=n(1668),de=n.n(pe),fe=n(4342); /*! * hash-wasm (https://www.npmjs.com/package/hash-wasm) * (c) Dani Biro * @license MIT */ /*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */function ge(e,t,n,r){return new(n||(n=Promise))(function(i,s){function o(e){try{c(r.next(e))}catch(e){s(e)}}function a(e){try{c(r.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(o,a)}c((r=r.apply(e,t||[])).next())})}class me{constructor(){this.mutex=Promise.resolve()}lock(){let e=()=>{};return this.mutex=this.mutex.then(()=>new Promise(e)),new Promise(t=>{e=t})}dispatch(e){return ge(this,void 0,void 0,function*(){const t=yield this.lock();try{return yield Promise.resolve(e())}finally{t()}})}}const we="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:n.g,ye=null!==(le=we.Buffer)&&void 0!==le?le:null,be=we.TextEncoder?new we.TextEncoder:null;function Ae(e,t){return(15&e)+(e>>6|e>>3&8)<<4|(15&t)+(t>>6|t>>3&8)}function ve(e,t){const n=t.length>>1;for(let r=0;r>>4;e[r++]=n>9?n+_e:n+Ee,n=15&t[i],e[r++]=n>9?n+_e:n+Ee}return String.fromCharCode.apply(null,e)}const Se=null!==ye?e=>{if("string"==typeof e){const t=ye.from(e,"utf8");return new Uint8Array(t.buffer,t.byteOffset,t.length)}if(ye.isBuffer(e))return new Uint8Array(e.buffer,e.byteOffset,e.length);if(ArrayBuffer.isView(e))return new Uint8Array(e.buffer,e.byteOffset,e.byteLength);throw new Error("Invalid data type!")}:e=>{if("string"==typeof e)return be.encode(e);if(ArrayBuffer.isView(e))return new Uint8Array(e.buffer,e.byteOffset,e.byteLength);throw new Error("Invalid data type!")},Ie="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Te=new Uint8Array(256);for(let e=0;e<64;e++)Te[Ie.charCodeAt(e)]=e;function Ce(e){let t=Math.floor(.75*e.length);const n=e.length;return"="===e[n-1]&&(t-=1,"="===e[n-2]&&(t-=1)),t}function Re(e){const t=Ce(e),n=e.length,r=new Uint8Array(t);let i=0;for(let t=0;t>4,i+=1,r[i]=(15&s)<<4|o>>2,i+=1,r[i]=(3&o)<<6|63&a,i+=1}return r}const ke=16384,Ne=new me,Oe=new Map;function Be(e,t){return ge(this,void 0,void 0,function*(){let n=null,r=null,i=!1;if("undefined"==typeof WebAssembly)throw new Error("WebAssembly is not supported in this environment!");const s=()=>new DataView(n.exports.memory.buffer).getUint32(n.exports.STATE_SIZE,!0),o=Ne.dispatch(()=>ge(this,void 0,void 0,function*(){if(!Oe.has(e.name)){const t=Re(e.data),n=WebAssembly.compile(t);Oe.set(e.name,n)}const t=yield Oe.get(e.name);n=yield WebAssembly.instantiate(t,{})})),a=(e=null)=>{i=!0,n.exports.Hash_Init(e)},c=e=>{if(!i)throw new Error("update() called before init()");(e=>{let t=0;for(;t{if(!i)throw new Error("digest() called before init()");return i=!1,n.exports.Hash_Final(s),"binary"===e?r.slice(0,t):xe(l,r,t)},u=e=>"string"==typeof e?e.length<4096:e.byteLength!0;break;case"blake2b":case"blake2s":p=(e,t)=>t<=512&&u(e);break;case"blake3":p=(e,t)=>0===t&&u(e);break;case"xxhash64":case"xxhash3":case"xxhash128":p=()=>!1}return yield(()=>ge(this,void 0,void 0,function*(){n||(yield o);const e=n.exports.Hash_GetBuffer(),t=n.exports.memory.buffer;r=new Uint8Array(t,e,ke)}))(),{getMemory:()=>r,writeMemory:(e,t=0)=>{r.set(e,t)},getExports:()=>n.exports,setMemorySize:e=>{n.exports.Hash_SetMemorySize(e);const t=n.exports.Hash_GetBuffer(),i=n.exports.memory.buffer;r=new Uint8Array(i,t,e)},init:a,update:c,digest:h,save:()=>{if(!i)throw new Error("save() can only be called after init() and before digest()");const t=n.exports.Hash_GetState(),r=s(),o=n.exports.memory.buffer,a=new Uint8Array(o,t,r),c=new Uint8Array(4+r);return ve(c,e.hash),c.set(a,4),c},load:t=>{if(!(t instanceof Uint8Array))throw new Error("load() expects an Uint8Array generated by save()");const r=n.exports.Hash_GetState(),o=s(),a=4+o,c=n.exports.memory.buffer;if(t.length!==a)throw new Error(`Bad state length (expected ${a} bytes, got ${t.length})`);if(!function(e,t){if(e.length!==2*t.length)return!1;for(let n=0;n{if(!p(e,i))return a(i),c(e),h("hex",s);const o=Se(e);return r.set(o),n.exports.Hash_Calculate(o.length,i,s),xe(l,r,t)},hashLength:t}})}new me,new me,new DataView(new ArrayBuffer(4)),new me,new me,new me,new me,new me,new me;var Pe={name:"sha1",data:"AGFzbQEAAAABEQRgAAF/YAJ/fwBgAABgAX8AAwkIAAECAQMCAAMEBQFwAQEBBQQBAQICBg4CfwFB4IkFC38AQYAICwdwCAZtZW1vcnkCAA5IYXNoX0dldEJ1ZmZlcgAACUhhc2hfSW5pdAACC0hhc2hfVXBkYXRlAAQKSGFzaF9GaW5hbAAFDUhhc2hfR2V0U3RhdGUABg5IYXNoX0NhbGN1bGF0ZQAHClNUQVRFX1NJWkUDAQqfKQgFAEGACQurIgoBfgJ/AX4BfwF+A38BfgF/AX5HfyAAIAEpAxAiAkIgiKciA0EYdCADQQh0QYCA/AdxciACQiiIp0GA/gNxIAJCOIincnIiBCABKQMIIgVCIIinIgNBGHQgA0EIdEGAgPwHcXIgBUIoiKdBgP4DcSAFQjiIp3JyIgZzIAEpAygiB0IgiKciA0EYdCADQQh0QYCA/AdxciAHQiiIp0GA/gNxIAdCOIincnIiCHMgBaciA0EYdCADQQh0QYCA/AdxciADQQh2QYD+A3EgA0EYdnJyIgkgASkDACIFpyIDQRh0IANBCHRBgID8B3FyIANBCHZBgP4DcSADQRh2cnIiCnMgASkDICILpyIDQRh0IANBCHRBgID8B3FyIANBCHZBgP4DcSADQRh2cnIiDHMgASkDMCINQiCIpyIDQRh0IANBCHRBgID8B3FyIA1CKIinQYD+A3EgDUI4iKdyciIDc0EBdyIOc0EBdyIPIAYgBUIgiKciEEEYdCAQQQh0QYCA/AdxciAFQiiIp0GA/gNxIAVCOIincnIiEXMgC0IgiKciEEEYdCAQQQh0QYCA/AdxciALQiiIp0GA/gNxIAtCOIincnIiEnMgASkDOCIFpyIQQRh0IBBBCHRBgID8B3FyIBBBCHZBgP4DcSAQQRh2cnIiEHNBAXciE3MgCCAScyATcyAMIAEpAxgiC6ciAUEYdCABQQh0QYCA/AdxciABQQh2QYD+A3EgAUEYdnJyIhRzIBBzIA9zQQF3IgFzQQF3IhVzIA4gEHMgAXMgAyAIcyAPcyAHpyIWQRh0IBZBCHRBgID8B3FyIBZBCHZBgP4DcSAWQRh2cnIiFyAMcyAOcyALQiCIpyIWQRh0IBZBCHRBgID8B3FyIAtCKIinQYD+A3EgC0I4iKdyciIYIARzIANzIAKnIhZBGHQgFkEIdEGAgPwHcXIgFkEIdkGA/gNxIBZBGHZyciIZIAlzIBdzIAVCIIinIhZBGHQgFkEIdEGAgPwHcXIgBUIoiKdBgP4DcSAFQjiIp3JyIhZzQQF3IhpzQQF3IhtzQQF3IhxzQQF3Ih1zQQF3Ih5zQQF3Ih8gEyAWcyASIBhzIBZzIBQgGXMgDaciIEEYdCAgQQh0QYCA/AdxciAgQQh2QYD+A3EgIEEYdnJyIiFzIBNzQQF3IiBzQQF3IiJzIBAgIXMgIHMgFXNBAXciI3NBAXciJHMgFSAicyAkcyABICBzICNzIB9zQQF3IiVzQQF3IiZzIB4gI3MgJXMgHSAVcyAfcyAcIAFzIB5zIBsgD3MgHXMgGiAOcyAccyAWIANzIBtzICEgF3MgGnMgInNBAXciJ3NBAXciKHNBAXciKXNBAXciKnNBAXciK3NBAXciLHNBAXciLXNBAXciLiAkIChzICIgG3MgKHMgICAacyAncyAkc0EBdyIvc0EBdyIwcyAjICdzIC9zICZzQQF3IjFzQQF3IjJzICYgMHMgMnMgJSAvcyAxcyAuc0EBdyIzc0EBdyI0cyAtIDFzIDNzICwgJnMgLnMgKyAlcyAtcyAqIB9zICxzICkgHnMgK3MgKCAdcyAqcyAnIBxzIClzIDBzQQF3IjVzQQF3IjZzQQF3IjdzQQF3IjhzQQF3IjlzQQF3IjpzQQF3IjtzQQF3IjwgMiA2cyAwICpzIDZzIC8gKXMgNXMgMnNBAXciPXNBAXciPnMgMSA1cyA9cyA0c0EBdyI/c0EBdyJAcyA0ID5zIEBzIDMgPXMgP3MgPHNBAXciQXNBAXciQnMgOyA/cyBBcyA6IDRzIDxzIDkgM3MgO3MgOCAucyA6cyA3IC1zIDlzIDYgLHMgOHMgNSArcyA3cyA+c0EBdyJDc0EBdyJEc0EBdyJFc0EBdyJGc0EBdyJHc0EBdyJIc0EBdyJJc0EBdyJKID8gQ3MgPSA3cyBDcyBAc0EBdyJLcyBCc0EBdyJMID4gOHMgRHMgS3NBAXciTSBFIDogMyAyIDUgKiAeIBUgICAWIBcgACgCACJOQQV3IAAoAhAiT2ogCmogACgCDCJQIAAoAggiCnMgACgCBCJRcSBQc2pBmfOJ1AVqIlJBHnciUyAEaiBRQR53IgQgBmogUCAEIApzIE5xIApzaiARaiBSQQV3akGZ84nUBWoiESBTIE5BHnciBnNxIAZzaiAKIAlqIFIgBCAGc3EgBHNqIBFBBXdqQZnzidQFaiJSQQV3akGZ84nUBWoiVCBSQR53IgQgEUEedyIJc3EgCXNqIAYgGWogUiAJIFNzcSBTc2ogVEEFd2pBmfOJ1AVqIgZBBXdqQZnzidQFaiIZQR53IlNqIAwgVEEedyIXaiAJIBRqIAYgFyAEc3EgBHNqIBlBBXdqQZnzidQFaiIJIFMgBkEedyIMc3EgDHNqIBggBGogGSAMIBdzcSAXc2ogCUEFd2pBmfOJ1AVqIgZBBXdqQZnzidQFaiIUIAZBHnciFyAJQR53IgRzcSAEc2ogEiAMaiAGIAQgU3NxIFNzaiAUQQV3akGZ84nUBWoiEkEFd2pBmfOJ1AVqIlNBHnciDGogAyAUQR53IhZqIAggBGogEiAWIBdzcSAXc2ogU0EFd2pBmfOJ1AVqIgggDCASQR53IgNzcSADc2ogISAXaiBTIAMgFnNxIBZzaiAIQQV3akGZ84nUBWoiEkEFd2pBmfOJ1AVqIhcgEkEedyIWIAhBHnciCHNxIAhzaiAQIANqIBIgCCAMc3EgDHNqIBdBBXdqQZnzidQFaiIMQQV3akGZ84nUBWoiEkEedyIDaiATIBZqIBIgDEEedyIQIBdBHnciE3NxIBNzaiAOIAhqIAwgEyAWc3EgFnNqIBJBBXdqQZnzidQFaiIOQQV3akGZ84nUBWoiFkEedyIgIA5BHnciCHMgGiATaiAOIAMgEHNxIBBzaiAWQQV3akGZ84nUBWoiDnNqIA8gEGogFiAIIANzcSADc2ogDkEFd2pBmfOJ1AVqIgNBBXdqQaHX5/YGaiIPQR53IhBqIAEgIGogA0EedyIBIA5BHnciDnMgD3NqIBsgCGogDiAgcyADc2ogD0EFd2pBodfn9gZqIgNBBXdqQaHX5/YGaiIPQR53IhMgA0EedyIVcyAiIA5qIBAgAXMgA3NqIA9BBXdqQaHX5/YGaiIDc2ogHCABaiAVIBBzIA9zaiADQQV3akGh1+f2BmoiAUEFd2pBodfn9gZqIg5BHnciD2ogHSATaiABQR53IhAgA0EedyIDcyAOc2ogJyAVaiADIBNzIAFzaiAOQQV3akGh1+f2BmoiAUEFd2pBodfn9gZqIg5BHnciEyABQR53IhVzICMgA2ogDyAQcyABc2ogDkEFd2pBodfn9gZqIgFzaiAoIBBqIBUgD3MgDnNqIAFBBXdqQaHX5/YGaiIDQQV3akGh1+f2BmoiDkEedyIPaiApIBNqIANBHnciECABQR53IgFzIA5zaiAkIBVqIAEgE3MgA3NqIA5BBXdqQaHX5/YGaiIDQQV3akGh1+f2BmoiDkEedyITIANBHnciFXMgHyABaiAPIBBzIANzaiAOQQV3akGh1+f2BmoiAXNqIC8gEGogFSAPcyAOc2ogAUEFd2pBodfn9gZqIgNBBXdqQaHX5/YGaiIOQR53Ig9qICsgAUEedyIBaiAPIANBHnciEHMgJSAVaiABIBNzIANzaiAOQQV3akGh1+f2BmoiFXNqIDAgE2ogECABcyAOc2ogFUEFd2pBodfn9gZqIg5BBXdqQaHX5/YGaiIBIA5BHnciA3IgFUEedyITcSABIANxcmogJiAQaiATIA9zIA5zaiABQQV3akGh1+f2BmoiDkEFd2pB3Pnu+HhqIg9BHnciEGogNiABQR53IgFqICwgE2ogDiABciADcSAOIAFxcmogD0EFd2pB3Pnu+HhqIhMgEHIgDkEedyIOcSATIBBxcmogMSADaiAPIA5yIAFxIA8gDnFyaiATQQV3akHc+e74eGoiAUEFd2pB3Pnu+HhqIgMgAUEedyIPciATQR53IhNxIAMgD3FyaiAtIA5qIAEgE3IgEHEgASATcXJqIANBBXdqQdz57vh4aiIBQQV3akHc+e74eGoiDkEedyIQaiA9IANBHnciA2ogNyATaiABIANyIA9xIAEgA3FyaiAOQQV3akHc+e74eGoiEyAQciABQR53IgFxIBMgEHFyaiAuIA9qIA4gAXIgA3EgDiABcXJqIBNBBXdqQdz57vh4aiIDQQV3akHc+e74eGoiDiADQR53Ig9yIBNBHnciE3EgDiAPcXJqIDggAWogAyATciAQcSADIBNxcmogDkEFd2pB3Pnu+HhqIgFBBXdqQdz57vh4aiIDQR53IhBqIDQgDkEedyIOaiA+IBNqIAEgDnIgD3EgASAOcXJqIANBBXdqQdz57vh4aiITIBByIAFBHnciAXEgEyAQcXJqIDkgD2ogAyABciAOcSADIAFxcmogE0EFd2pB3Pnu+HhqIgNBBXdqQdz57vh4aiIOIANBHnciD3IgE0EedyITcSAOIA9xcmogQyABaiADIBNyIBBxIAMgE3FyaiAOQQV3akHc+e74eGoiAUEFd2pB3Pnu+HhqIgNBHnciEGogRCAPaiADIAFBHnciFXIgDkEedyIOcSADIBVxcmogPyATaiABIA5yIA9xIAEgDnFyaiADQQV3akHc+e74eGoiAUEFd2pB3Pnu+HhqIgNBHnciEyABQR53Ig9zIDsgDmogASAQciAVcSABIBBxcmogA0EFd2pB3Pnu+HhqIgFzaiBAIBVqIAMgD3IgEHEgAyAPcXJqIAFBBXdqQdz57vh4aiIDQQV3akHWg4vTfGoiDkEedyIQaiBLIBNqIANBHnciFSABQR53IgFzIA5zaiA8IA9qIAEgE3MgA3NqIA5BBXdqQdaDi9N8aiIDQQV3akHWg4vTfGoiDkEedyIPIANBHnciE3MgRiABaiAQIBVzIANzaiAOQQV3akHWg4vTfGoiAXNqIEEgFWogEyAQcyAOc2ogAUEFd2pB1oOL03xqIgNBBXdqQdaDi9N8aiIOQR53IhBqIEIgD2ogA0EedyIVIAFBHnciAXMgDnNqIEcgE2ogASAPcyADc2ogDkEFd2pB1oOL03xqIgNBBXdqQdaDi9N8aiIOQR53Ig8gA0EedyITcyBDIDlzIEVzIE1zQQF3IhYgAWogECAVcyADc2ogDkEFd2pB1oOL03xqIgFzaiBIIBVqIBMgEHMgDnNqIAFBBXdqQdaDi9N8aiIDQQV3akHWg4vTfGoiDkEedyIQaiBJIA9qIANBHnciFSABQR53IgFzIA5zaiBEIDpzIEZzIBZzQQF3IhogE2ogASAPcyADc2ogDkEFd2pB1oOL03xqIgNBBXdqQdaDi9N8aiIOQR53Ig8gA0EedyITcyBAIERzIE1zIExzQQF3IhsgAWogECAVcyADc2ogDkEFd2pB1oOL03xqIgFzaiBFIDtzIEdzIBpzQQF3IhwgFWogEyAQcyAOc2ogAUEFd2pB1oOL03xqIgNBBXdqQdaDi9N8aiIOQR53IhAgT2o2AhAgACBQIEsgRXMgFnMgG3NBAXciFSATaiABQR53IgEgD3MgA3NqIA5BBXdqQdaDi9N8aiITQR53IhZqNgIMIAAgCiBGIDxzIEhzIBxzQQF3IA9qIANBHnciAyABcyAOc2ogE0EFd2pB1oOL03xqIg5BHndqNgIIIAAgUSBBIEtzIExzIEpzQQF3IAFqIBAgA3MgE3NqIA5BBXdqQdaDi9N8aiIBajYCBCAAIE4gTSBGcyAacyAVc0EBd2ogA2ogFiAQcyAOc2ogAUEFd2pB1oOL03xqNgIACzoAQQBC/rnrxemOlZkQNwKIiQFBAEKBxpS6lvHq5m83AoCJAUEAQvDDy54MNwKQiQFBAEEANgKYiQELqgIBBH9BACECQQBBACgClIkBIgMgAUEDdGoiBDYClIkBQQAoApiJASEFAkAgBCADTw0AQQAgBUEBaiIFNgKYiQELQQAgBSABQR12ajYCmIkBAkAgA0EDdkE/cSIEIAFqQcAASQ0AQcAAIARrIQJBACEDQQAhBQNAIAMgBGpBnIkBaiAAIANqLQAAOgAAIAIgBUEBaiIFQf8BcSIDSw0AC0GAiQFBnIkBEAEgBEH/AHMhA0EAIQQgAyABTw0AA0BBgIkBIAAgAmoQASACQf8AaiEDIAJBwABqIgUhAiADIAFJDQALIAUhAgsCQCABIAJrIgFFDQBBACEDQQAhBQNAIAMgBGpBnIkBaiAAIAMgAmpqLQAAOgAAIAEgBUEBaiIFQf8BcSIDSw0ACwsLCQBBgAkgABADC60DAQJ/IwBBEGsiACQAIABBgAE6AAcgAEEAKAKYiQEiAUEYdCABQQh0QYCA/AdxciABQQh2QYD+A3EgAUEYdnJyNgAIIABBACgClIkBIgFBGHQgAUEIdEGAgPwHcXIgAUEIdkGA/gNxIAFBGHZycjYADCAAQQdqQQEQAwJAQQAoApSJAUH4A3FBwANGDQADQCAAQQA6AAcgAEEHakEBEANBACgClIkBQfgDcUHAA0cNAAsLIABBCGpBCBADQQBBACgCgIkBIgFBGHQgAUEIdEGAgPwHcXIgAUEIdkGA/gNxIAFBGHZycjYCgAlBAEEAKAKEiQEiAUEYdCABQQh0QYCA/AdxciABQQh2QYD+A3EgAUEYdnJyNgKECUEAQQAoAoiJASIBQRh0IAFBCHRBgID8B3FyIAFBCHZBgP4DcSABQRh2cnI2AogJQQBBACgCjIkBIgFBGHQgAUEIdEGAgPwHcXIgAUEIdkGA/gNxIAFBGHZycjYCjAlBAEEAKAKQiQEiAUEYdCABQQh0QYCA/AdxciABQQh2QYD+A3EgAUEYdnJyNgKQCSAAQRBqJAALBgBBgIkBC0MAQQBC/rnrxemOlZkQNwKIiQFBAEKBxpS6lvHq5m83AoCJAUEAQvDDy54MNwKQiQFBAEEANgKYiQFBgAkgABADEAULCwsBAEGACAsEXAAAAA==",hash:"40d92e5d"};new me,new me,new me;var Le={name:"sha256",data:"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",hash:"817d957e"};function De(){return Be(Le,32).then(e=>{e.init(256);const t={init:()=>(e.init(256),t),update:n=>(e.update(n),t),digest:t=>e.digest(t),save:()=>e.save(),load:n=>(e.load(n),t),blockSize:64,digestSize:32};return t})}function Ue(e){let t;t="string"==typeof e?e:e?.length?e.reduce((e,t)=>e+String.fromCharCode(t),""):e?e.toString():"";try{return"__wb_post_data="+btoa(t)}catch{return"__wb_post_data="}}function Fe(e){try{if(!e.startsWith("https:")&&!e.startsWith("http:"))return e;let t=(e=e.replace(/^(https?:\/\/)www\d*\./,"$1")).toLowerCase(),n=new URL(t),r=n.hostname.split(".").reverse().join(",");if(n.port&&(r+=":"+n.port),r+=")",r+=n.pathname,n.search){let e=n.search.slice(1).split("&");e.sort(),r+="?"+e.join("&")}return r}catch{return e}}function Me(e,t=0){let{method:n,headers:r,postData:i=""}=e;if("GET"===n)return!1;let s=(e=>{let t=e.get("content-type");if(t)return t;if(!(e instanceof Headers))for(let[t,n]of e.entries())if(t&&"content-type"===t.toLowerCase())return n;return""})(r);function o(e){return e instanceof Uint8Array&&(e=(new TextDecoder).decode(e)),e}let a="";switch(s.split(";")[0]){case"application/x-www-form-urlencoded":a=o(i);break;case"application/json":a=We(o(i));break;case"text/plain":try{a=We(o(i),!1)}catch{a=Ue(i)}break;case"multipart/form-data":if(!s)throw new Error("utils cannot call postToGetURL when missing content-type header");a=function(e,t){return function(e="",t){let n=new URLSearchParams;e instanceof Uint8Array&&(e=(new TextDecoder).decode(e));try{let r=t.split("boundary=")[1],i=e.split(new RegExp("-*"+r+"-*","mi"));for(let e of i){let t=e.trim().match(/name="([^"]+)"\r\n\r\n(.*)/im);t&&n.set(t[1],t[2])}}catch{}return n}(e,t).toString()}(o(i),s);break;default:a=Ue(i)}if(null!=a){t>0&&a.length>t&&(a=a.slice(0,t)),e.requestBody=a;try{a=decodeURI(a)}catch{a=""}return e.url=je(e.url,a,e.method),e.method="GET",!0}return!1}function je(e,t,n){if(!n)return e;let r=e.indexOf("?")>0?"&":"?";return`${e}${r}__wb_method=${n}&${t}`}function He(e,t=!0){if("string"==typeof e)try{e=JSON.parse(e)}catch{e={}}let n=new URLSearchParams,r={},i=(e,t="")=>{let s="";if("object"!=typeof e||e instanceof Array){if(e instanceof Array)for(let n=0;nn.has(e)?(e in r||(r[e]=1),e+"."+ ++r[e]+"_"):e)(t),s)};try{i(e)}catch(e){if(!t)throw e}return n}function We(e="",t=!0){return He(e,t).toString()}function Qe(e,t){if(1===e.length)return e[0];let n=new Uint8Array(t),r=0;for(let t of e)n.set(t,r),r+=t.byteLength;return n}function Ve(e,t){return[e.slice(0,t),e.slice(t)]}function ze(e){let t=new Uint8Array(e.length);for(let n=0;n0&&Xe(e)}getMultiple(e){let t=super.get(e);if(t)return this.isMultiValue(e,t)?t.split(Ke):[t]}append(e,t){let n=this.get(e);n?(Xe(e),this.set(e,n+Ke+t)):this.set(e,t)}*[Symbol.iterator](){for(let[e,t]of super[Symbol.iterator]())if(this.isMultiValue(e,t))for(let n of t.split(Ke))yield[e,n];else yield[e,t]}},Je=new TextDecoder("utf-8"),Ze=class extends pe.Inflate{constructor(e,t){super(e),this.ended=!1,this.chunks=[],this.reader=t}onEnd(e){this.err=e,this.err||(this.reader._rawOffset+=this.strm.total_in)}},$e=class e{static async readFully(e){let t=[],n=0;for await(let r of e)t.push(r),n+=r.byteLength;return Qe(t,n)}getReadableStream(){let e=this[Symbol.asyncIterator]();return new ReadableStream({pull:async t=>e.next().then(e=>{e.done||!e.value?t.close():t.enqueue(e.value)})})}async readFully(){return await e.readFully(this)}async readline(e=0){let t=await this.readlineRaw(e);return t?Je.decode(t):""}async*iterLines(e=0){let t=null;for(;t=await this.readline(e);)yield t}},et=class e extends $e{constructor(t,n="gzip",r=!1){let i;if(super(),this.compressed=n,this.opts={raw:"deflateRaw"===n},this.inflator=n?new Ze(this.opts,this):null,function(e){return!(!e||!(Symbol.asyncIterator in Object(e)))}(t))i=t;else if("object"==typeof t&&"read"in t&&"function"==typeof t.read)i=e.fromReadable(t);else if(t instanceof ReadableStream)i=e.fromReadable(t.getReader());else{if(!function(e){return!(!e||!(Symbol.iterator in Object(e)))}(t))throw new TypeError("Invalid Stream Source");i=e.fromIter(t)}this._sourceIter=r?this.dechunk(i):i[Symbol.asyncIterator](),this.lastValue=null,this.errored=!1,this._savedChunk=null,this._rawOffset=0,this._readOffset=0,this.numChunks=0}async _loadNext(){let e=await this._sourceIter.next();return e.done?null:e.value}async*dechunk(t){let n=t instanceof e?t:new e(t,null),r=-1,i=!0;for(;0!=r;){let e=await n.readlineRaw(64),t=new Uint8Array;if(r=e?parseInt(Je.decode(e),16):0,!r||r>2**32){if(Number.isNaN(r)||r>2**32){i||(this.errored=!0),yield e;break}}else if(t=await n.readSize(r),t.length!=r){i?yield e:this.errored=!0,yield t;break}let s=await n.readSize(2);if(13!=s[0]||10!=s[1]){i?yield e:this.errored=!0,yield t,yield s;break}if(i=!1,!t||0===r)return;yield t}yield*n}unread(e){e.length&&(this._readOffset-=e.length,this._savedChunk&&console.log("Already have chunk!"),this._savedChunk=e)}async _next(){if(this._savedChunk){let e=this._savedChunk;return this._savedChunk=null,e}if(this.compressed){let e=this._getNextChunk();if(e)return e}let e=await this._loadNext();for(;this.compressed&&e;){this._push(e);let t=this._getNextChunk(e);if(t)return t;e=await this._loadNext()}return e}_push(e){if(!this.inflator)throw new Error("AsyncIterReader cannot call _push when this.compressed is null");this.lastValue=e,this.inflator.ended&&(this.inflator=new Ze(this.opts,this)),this.inflator.push(e),this.inflator.err&&this.inflator.ended&&"deflate"===this.compressed&&!this.opts.raw&&0===this.numChunks&&(this.opts.raw=!0,this.compressed="deflateRaw",this.inflator=new Ze(this.opts,this),this.inflator.push(e))}_getNextChunk(e){if(!this.inflator)throw new Error("AsyncIterReader cannot call _getNextChunk when this.compressed is null");for(;;){if(this.inflator.chunks.length>0)return this.numChunks++,this.inflator.chunks.shift();if(this.inflator.ended){if(0!==this.inflator.err)return this.compressed=null,e;let t=this.inflator.strm.avail_in;if(t&&this.lastValue){this._push(this.lastValue.slice(-t));continue}}return null}}async*[Symbol.asyncIterator](){let e=null;for(;e=await this._next();)this._readOffset+=e.length,yield e}async readlineRaw(e){let t=[],n=0,r=-1,i=null;for await(let s of this){if(e&&n+s.byteLength>e){i=s,r=e-n-1;let t=s.slice(0,r+1).indexOf(10);t>=0&&(r=t);break}if(r=s.indexOf(10),r>=0){i=s;break}t.push(s),n+=s.byteLength}if(i){let[e,s]=Ve(i,r+1);t.push(e),n+=e.byteLength,this.unread(s)}else if(!t.length)return null;return Qe(t,n)}async readFully(){return(await this._readOrSkip())[1]}async readSize(e){return(await this._readOrSkip(e))[1]}async skipSize(e){return(await this._readOrSkip(e,!0))[0]}async _readOrSkip(e=-1,t=!1){let n=[],r=0;for await(let i of this){if(e>=0){if(i.length>e){let[s,o]=Ve(i,e);t||n.push(s),r+=s.byteLength,this.unread(o);break}if(i.length===e){t||n.push(i),r+=i.byteLength,e=0;break}e-=i.length}t||n.push(i),r+=i.byteLength}return t?[r,new Uint8Array]:[r,Qe(n,r)]}getReadOffset(){return this._readOffset}getRawOffset(){return this.compressed?this._rawOffset:this._readOffset}getRawLength(e){return this.compressed?this.inflator.strm.total_in:this._readOffset-e}static fromReadable(e){return{async*[Symbol.asyncIterator](){let t=null;for(;(t=await e.read())&&!t.done;)yield t.value}}}static fromIter(e){return{async*[Symbol.asyncIterator](){for(let t of e)yield t}}}},tt=class extends $e{constructor(e,t,n=0){super(),this.sourceIter=e,this.length=t,this.limit=t,this.skip=n}setLimitSkip(e,t=0){this.limit=e,this.skip=t}async*[Symbol.asyncIterator](){if(!(this.limit<=0))for await(let e of this.sourceIter){if(this.skip>0){if(!(e.length>=this.skip)){this.skip-=e.length;continue}{let[,t]=Ve(e,this.skip);e=t,this.skip=0}}if(e.length>this.limit){let[t,n]=Ve(e,this.limit);e=t,this.sourceIter.unread&&this.sourceIter.unread(n)}if(e.length&&(this.limit-=e.length,yield e),this.limit<=0)break}}async readlineRaw(e){if(this.limit<=0)return null;let t=await this.sourceIter.readlineRaw(e?Math.min(e,this.limit):this.limit);return this.limit-=t?.length||0,t}async skipFully(){let e=this.limit;for(;this.limit>0;)this.limit-=await this.sourceIter.skipSize(this.limit);return e}},nt=new Uint8Array([13,10]),rt=new Uint8Array([13,10,13,10]),it=new TextDecoder("utf-8"),st=class{constructor({statusline:e,headers:t,reencodeHeaders:n}){this.statusline=e,this.headers=t,this.reencodeHeaders=n}toString(){let e=[this.statusline],t=this.headers instanceof Headers;for(let[n,r]of this.headers)t&&this.reencodeHeaders?.has(n)?e.push(`${n}: ${ze(r)}`):e.push(`${n}: ${r}`);return e.join("\r\n")+"\r\n"}async*iterSerialize(e){yield e.encode(this.statusline),yield nt;for(let[t,n]of this.headers)yield e.encode(`${t}: ${n}\r\n`)}_parseResponseStatusLine(){let e=function(e){let t=e.split(" "),n=t.slice(0,2);return t.slice(2).length>0&&n.push(t.slice(2).join(" ")),n}(this.statusline);this._protocol=e[0]??"",this._statusCode=e.length>1?Number(e[1]):"",this._statusText=e.length>2?e[2]:""}get statusCode(){return void 0===this._statusCode&&this._parseResponseStatusLine(),this._statusCode}get protocol(){return void 0===this._protocol&&this._parseResponseStatusLine(),this._protocol}get statusText(){return void 0===this._statusText&&this._parseResponseStatusLine(),this._statusText}_parseRequestStatusLine(){let e=this.statusline.split(" ",2);this._method=e[0]??"",this._requestPath=e.length>1?e[1]:""}get method(){return void 0===this._method&&this._parseRequestStatusLine(),this._method}get requestPath(){return void 0===this._requestPath&&this._parseRequestStatusLine(),this._requestPath}},ot=class{constructor(){this.reencodeHeaders=new Set}async parse(e,{headersClass:t,firstLine:n}={headersClass:Ye}){let r=n||await e.readline();if(!r)return null;let i=r.trimEnd();if(!i)return null;let s,o,a,c,l=new t,h=await async function(e){let t=[],n=0,r=0,i=null,s=e[Symbol.asyncIterator]();for await(let e of s){if([r,e]=await at(e,s),r>=0){i=e;break}t.push(e),n+=e.byteLength}if(i){let[s,o]=Ve(i,r+1);t.push(s),n+=s.byteLength,e.unread(o)}else if(!t.length)return"";return it.decode(Qe(t,n))}(e),u=0,p="";for(;u=0&&sn+=String.fromCharCode(e)),n}(t),n,!0)}}};async function at(e,t){let n=0;for(let r=0;r=e.length){let{value:n}=await t.next();if(!n)break;let r=new Uint8Array(n.length+e.length);r.set(e,0),r.set(n,e.length),e=r}if(10===e[r+1]&&13===e[r+2]&&10===e[r+3])return[r+3,e];n=r+1}return[-1,e]}var ct=new TextDecoder("utf-8"),lt=new TextEncoder,ht="WARC/1.0",ut={warcinfo:"application/warc-fields",response:"application/http; msgtype=response",revisit:"application/http; msgtype=response",request:"application/http; msgtype=request",metadata:"application/warc-fields"},pt=class e extends $e{constructor({warcHeaders:e,reader:t}){super(),this._offset=0,this._length=0,this._urlkey="",this.warcHeaders=e,this._reader=t,this._contentReader=null,this.payload=null,this.httpHeaders=null,this.consumed="",this.fixUp()}static create({url:t,date:n,type:r,warcHeaders:i={},filename:s="",httpHeaders:o={},statusline:a="HTTP/1.1 200 OK",warcVersion:c=ht,keepHeadersCase:l=!0,refersToUrl:h,refersToDate:u}={},p){function d(e){let t=e;return c===ht&&"Z"!=(e=e.split(".")[0]).charAt(t.length-1)&&(e+="Z"),e}n=d(n||(new Date).toISOString());let f=new Ye(i);if("warcinfo"===r)s&&f.set("WARC-Filename",s);else if(t)try{f.set("WARC-Target-URI",new URL(t).href)}catch{f.set("WARC-Target-URI",t)}f.set("WARC-Date",n),r&&f.set("WARC-Type",r),"revisit"===r&&(f.set("WARC-Profile","WARC/1.1"===c?"http://netpreserve.org/warc/1.1/revisit/identical-payload-digest":"http://netpreserve.org/warc/1.0/revisit/identical-payload-digest"),h&&(f.set("WARC-Refers-To-Target-URI",h),f.set("WARC-Refers-To-Date",d(u||(new Date).toISOString()))));let g=new st({statusline:c,headers:f});g.headers.get("WARC-Record-ID")||g.headers.set("WARC-Record-ID",``),g.headers.get("Content-Type")||g.headers.set("Content-Type",r&&ut[r]||"application/octet-stream"),p||(p=dt());let m=new e({warcHeaders:g,reader:p}),w=null,y=!1;switch(r){case"response":case"request":case"revisit":l?(w=new Ye(o),y=!w.size):(w=new Headers(o),y=!Object.entries(o).length),(!y||"revisit"!==r)&&(m.httpHeaders=new st({statusline:a,headers:w}))}return m}static createWARCInfo(t={},n){return t.type="warcinfo",e.create(t,async function*(){for(let[e,t]of Object.entries(n))yield lt.encode(`${e}: ${t}\r\n`)}())}getResponseInfo(){let e=this.httpHeaders;return e?{headers:e.headers,status:e.statusCode,statusText:e.statusText}:null}fixUp(){let e=this.warcHeaders.headers.get("WARC-Target-URI");e&&e.startsWith("<")&&e.endsWith(">")&&this.warcHeaders.headers.set("WARC-Target-URI",e.slice(1,-1))}async readFully(e=!1){if(this.httpHeaders){if(this.payload&&!this.payload.length)return this.payload;if(this._contentReader&&!e)throw new TypeError("WARC Record decoding already started, but requesting raw payload");if(e&&"raw"===this.consumed&&this.payload)return await this._createDecodingReader([this.payload]).readFully()}return this.payload||(e?(this.payload=await super.readFully(),this.consumed="content"):(this.payload=await $e.readFully(this._reader),this.consumed="raw")),this.payload}get reader(){if(this.payload&&!this.payload.length)return dt();if(this._contentReader)throw new TypeError("WARC Record decoding already started, but requesting raw payload");return this._reader}get contentReader(){return this.httpHeaders?(this._contentReader||(this._contentReader=this._createDecodingReader(this._reader)),this._contentReader):this._reader}_createDecodingReader(e){if(!this.httpHeaders)throw new Error("WARCRecord cannot call _createDecodingReader when this.httpHeaders === null");let t=this.httpHeaders.headers.get("Content-Encoding"),n=this.httpHeaders.headers.get("Transfer-Encoding"),r="chunked"===n;return!t&&!r&&(t=n),new et(e,t,r)}async readlineRaw(e){if(this.consumed)throw new Error("Record already consumed.. Perhaps a promise was not awaited?");if(this.contentReader instanceof $e)return this.contentReader.readlineRaw(e);throw new Error("WARCRecord cannot call readlineRaw on this.contentReader if it does not extend BaseAsyncIterReader")}async contentText(){let e=await this.readFully(!0);return ct.decode(e)}async*[Symbol.asyncIterator](){for await(let e of this.contentReader)if(yield e,this.consumed)throw new Error("Record already consumed.. Perhaps a promise was not awaited?");this.consumed="content"}async skipFully(){if(!this.consumed){if(this._reader instanceof tt){let e=await this._reader.skipFully();return this.consumed="skipped",e}throw new Error("WARCRecord cannot call skipFully on this._reader if it is not a LimitReader")}}warcHeader(e){return this.warcHeaders.headers.get(e)}get warcType(){return this.warcHeaders.headers.get("WARC-Type")}get warcTargetURI(){return this.warcHeaders.headers.get("WARC-Target-URI")}get warcDate(){return this.warcHeaders.headers.get("WARC-Date")}get warcRefersToTargetURI(){return this.warcHeaders.headers.get("WARC-Refers-To-Target-URI")}get warcRefersToDate(){return this.warcHeaders.headers.get("WARC-Refers-To-Date")}get warcPayloadDigest(){return this.warcHeaders.headers.get("WARC-Payload-Digest")}get warcBlockDigest(){return this.warcHeaders.headers.get("WARC-Block-Digest")}get warcContentType(){return this.warcHeaders.headers.get("Content-Type")}get warcContentLength(){return Number(this.warcHeaders.headers.get("Content-Length"))}get warcConcurrentTo(){if(this.warcHeaders.headers instanceof Ye)return this.warcHeaders.headers.getMultiple("WARC-Concurrent-To");{let e=this.warcHeaders.headers.get("WARC-Concurrent-To");return e?e.split(","):[]}}};async function*dt(){}var ft=new TextDecoder,gt=new Uint8Array([]),mt=class e{static async parse(t,n){return new e(t,n).parse()}static iterRecords(t,n){return new e(t,n)[Symbol.asyncIterator]()}constructor(e,{keepHeadersCase:t=!1,parseHttp:n=!0}={}){this._offset=0,this._warcHeadersLength=0,this._headersClass=t?Ye:Headers,this._parseHttp=n,this._reader=e instanceof et?e:new et(e),this._record=null}async readToNextRecord(){if(!this._reader||!this._record)return gt;await this._record.skipFully(),this._reader.compressed&&(this._offset=this._reader.getRawOffset());let e=await this._reader.readlineRaw(),t=0;if(e){if(t=e.byteLength-1,9===t&&ft.decode(e).startsWith("WARC/"))return e;for(;t>0;){let n=e[t-1];if(10!==n&&13!==n)break;t--}t&&console.warn(`Content-Length Too Small: Record not followed by newline, Remainder Length: ${t}, Offset: ${this._reader.getRawOffset()-e.byteLength}`)}else e=gt;if(this._reader.compressed)await this._reader.skipSize(2),e=gt;else{for(e=await this._reader.readlineRaw();e&&2===e.byteLength;)e=await this._reader.readlineRaw();this._offset=this._reader.getRawOffset(),e&&(this._offset-=e.length)}return e}_initRecordReader(e){return new tt(this._reader,Number(e.headers.get("Content-Length")||0))}async parse(){let e=await this.readToNextRecord(),t=e?ft.decode(e):"",n=new ot,r=await n.parse(this._reader,{firstLine:t,headersClass:this._headersClass});if(!r)return null;this._warcHeadersLength=this._reader.getReadOffset();let i=new pt({warcHeaders:r,reader:this._initRecordReader(r)});if(this._record=i,this._parseHttp)switch(i.warcType){case"response":case"request":await this._addHttpHeaders(i,n);break;case"revisit":i.warcContentLength>0&&await this._addHttpHeaders(i,n)}return i}get offset(){return this._offset}get recordLength(){return this._reader.getRawLength(this._offset)}async*[Symbol.asyncIterator](){let e=null;for(;null!==(e=await this.parse());)yield e;this._record=null}async _addHttpHeaders(e,t){let n=await t.parse(this._reader,{headersClass:this._headersClass});e.httpHeaders=n;let r=this._reader.getReadOffset()-this._warcHeadersLength;e.reader instanceof tt&&e.reader.setLimitSkip(e.warcContentLength-r)}};function wt(e,t,n){let r,i;switch(n=n||{},t){case"RFC3548":case"RFC4648":r="ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",i=!0;break;case"RFC4648-HEX":r="0123456789ABCDEFGHIJKLMNOPQRSTUV",i=!0;break;case"Crockford":r="0123456789ABCDEFGHJKMNPQRSTVWXYZ",i=!1;break;default:throw new Error("Unknown base32 variant: "+t)}let s=void 0!==n.padding?n.padding:i,o=function(e){if(e instanceof Int8Array||e instanceof Uint8Array||e instanceof Uint8ClampedArray)return new DataView(e.buffer,e.byteOffset,e.byteLength);if(e instanceof ArrayBuffer)return new DataView(e);throw new TypeError("Expected `data` to be an ArrayBuffer, Buffer, Int8Array, Uint8Array or Uint8ClampedArray")}(e),a=0,c=0,l="";for(let e=0;e=5;)l+=r[c>>>a-5&31],a-=5;if(a>0&&(l+=r[c<<5-a&31]),s)for(;l.length%8!=0;)l+="=";return l}var yt=new TextEncoder,bt=class{},At=class extends bt{constructor(){super(...arguments),this.buffers=[]}write(e){this.buffers.push(e)}async*readAll(){for(let e of this.buffers)yield e}purge(){this.buffers=[]}},vt=(Symbol.asyncIterator,["offset","warc-type","warc-target-uri"]),_t=class{constructor(e={},t=vt){this.opts=e,e.fields?(this.fields=e.fields,this.reqFields=this.fields.filter(e=>{return(t=e).startsWith("req.")||"referrer"===t.toLowerCase();var t})):(this.fields=t,this.reqFields=[]),this.parseHttp=!1}serialize(e){return JSON.stringify(e)+"\n"}write(e,t){t.write(this.serialize(e))}async writeAll(e,t){for await(let n of this.iterIndex(e))this.write(n,t)}async*iterIndex(e){let t={strictHeaders:!0,parseHttp:this.parseHttp};for(let{filename:n,reader:r}of e){let e=new mt(r,t);yield*this.iterRecords(e,n)}}async*iterRecords(e,t){for await(let n of e){await n.skipFully();let r=this.indexRecord(n,e,t);r&&(yield r)}}indexRecord(e,t,n){if(this.filterRecord&&!this.filterRecord(e))return null;let r={},{offset:i,recordLength:s}=t,o={offset:i,length:s,filename:n};for(let t of this.fields)t in o?r[t]=o[t]:this.setField(t,e,r);return r}setField(e,t,n){let r=this.getField(e,t);null!==r&&(n[e]=r)}getField(e,t){if(e.startsWith("req.")){if("request"!==t.warcType)return null;e=e.slice(4)}if("http:status"===e)return!t.httpHeaders||"response"!==t.warcType&&"revisit"!==t.warcType?null:t.httpHeaders.statusCode;if(e.startsWith("http:")){if(t.httpHeaders){let n=t.httpHeaders.headers,r=e.slice(5),i=n.get(r);if(n instanceof Map){let e=r.toLowerCase();for(let t of n.keys())e===t.toLowerCase()&&(i=n.get(t))}return i}return null}return t.warcHeaders.headers.get(e)||null}},Et=class extends _t{constructor(e,t){super(e,t);for(let e of this.fields)if(e.startsWith("http:")){this.parseHttp=!0;break}}},xt="urlkey,timestamp,url,mime,status,digest,length,offset,filename".split(","),St="urlkey,timestamp,url,mime,status,digest,redirect,meta,length,offset,filename".split(","),It=class extends Et{constructor(e){switch(super(e,xt),this.includeAll=!!e?.all,this.overrideIndexForAll=!!e?.all,this.parseHttp=!0,this.noSurt=!!e?.noSurt,this._lastRecord=null,e?.format){case"cdxj":this.serialize=this.serializeCDXJ;break;case"cdx":this.serialize=this.serializeCDX11}}async*iterRecords(e,t){this._lastRecord=null;for await(let n of e){await n.readFully();let r=this.indexRecord(n,e,t);r&&(yield r)}let n=this.indexRecord(null,e,t);n&&(yield n)}filterRecord(e){if(this.includeAll)return!0;let t=e.warcType;return!("request"===t||"warcinfo"===t||("metadata"===t||"resource"===t)&&"application/warc-fields"===e.warcContentType)}indexRecord(e,t,n){if(this.overrideIndexForAll)return e?super.indexRecord(e,t,n):null;let r=this._lastRecord;if(this._lastRecord=e,e&&(e._offset=t.offset,e._length=t.recordLength),!r)return null;if(!e||r.warcTargetURI!=e.warcTargetURI)return this.indexRecordPair(r,null,t,n);let i=e.warcType,s=r.warcType;return"request"!==i||"response"!==s&&"revisit"!==s?"response"!==i&&"revisit"!==i||"request"!==s?this.indexRecordPair(r,null,t,n):(this._lastRecord=null,this.indexRecordPair(e,r,t,n)):(this._lastRecord=null,this.indexRecordPair(r,e,t,n))}indexRecordPair(e,t,n,r,i=4096){let s,o,a=e.warcTargetURI||"";if(t?.httpHeaders&&"GET"!==t.httpHeaders.method){let e={url:a,method:t.httpHeaders.method,headers:t.httpHeaders.headers,postData:t.payload};s=e.method,Me(e,i)&&(o=e.requestBody,a=e.url)}e._urlkey=a;let c=super.indexRecord(e,n,r);if(c&&(void 0!==e._offset&&(c.offset=e._offset,c.length=e._length),s&&(c.method=s),o&&(c.requestBody=o),t&&this.reqFields.length))for(let e of this.reqFields)this.setField(e,t,c);return c}serializeCDXJ(e){let{urlkey:t,timestamp:n}=e;return delete e.urlkey,delete e.timestamp,`${t} ${n} ${JSON.stringify(e,(e,t)=>["offset","length","status"].includes(e)?null==t?"":""+t:t)}\n`}serializeCDX11(e){let t=[];for(let n of St)t.push(null!=e[n]?e[n]:"-");return t.join(" ")+"\n"}getField(e,t){let n=null;switch(e){case"urlkey":return n=t._urlkey||t.warcTargetURI||null,this.noSurt||null===n?n:Fe(n);case"timestamp":return n=t.warcDate??"",n.replace(/[-:T]/g,"").slice(0,14);case"url":return t.warcTargetURI;case"mime":switch(t.warcType){case"revisit":return"warc/revisit";case"response":case"request":e="http:content-type";break;default:return t.warcContentType}return n=super.getField(e,t),n?n.toString().split(";",1)[0]?.trim():null;case"status":return super.getField("http:status",t);case"referrer":return super.getField("req.http:referer",t);case"digest":return n=t.warcPayloadDigest,n?n.split(":",2)[1]:null;default:return super.getField(e,t)}}};const Tt=1024,Ct=/\[\d]+/,Rt=[{match:/\/\/.*(?:gcs-vimeo|vod|vod-progressive|vod-adaptive)\.akamaized\.net.*?\/([\d/]+\.mp4)/,fuzzyCanonReplace:"//vimeo-cdn.fuzzy.replayweb.page/$1",split:".net"},{match:/\/\/.*player.vimeo.com\/(video\/[\d]+)\?.*/i,fuzzyCanonReplace:"//vimeo.fuzzy.replayweb.page/$1"},{match:/www.\washingtonpost\.com\/wp-apps\/imrs.php/,args:[["src"]]},{match:/(static.wixstatic.com\/.*\.[\w]+\/v1\/fill\/)(w_.*)/,replace:"$1?_args=$2",split:"/v1/fill"},{match:/(twimg.com\/profile_images\/[^/]+\/[^_]+)_([\w]+\.[\w]+)/,replace:"$1=_args=$2",split:"_",splitLast:!0},{match:/^https?:\/\/(?:www\.)?(youtube\.com\/embed\/[^?]+)[?].*/i,replace:"$1"},{match:/^(https?:\/\/(?:www\.)?)(youtube\.com\/@[^?]+)[?].*/i,fuzzyCanonReplace:"$1$2"},{match:/\/\/(?:www\.)?youtube(?:-nocookie)?\.com\/(get_video_info)/i,fuzzyCanonReplace:"//youtube.fuzzy.replayweb.page/$1",args:[["video_id"]]},{match:/\/\/(?:www\.)?youtube(?:-nocookie)?\.com\/(youtubei\/v1\/[^?]+\?).*(videoId[^&]+).*/i,fuzzyCanonReplace:"//youtube.fuzzy.replayweb.page/$1$2",args:[["videoId"]]},{match:/\/\/.*googlevideo.com\/(videoplayback)/i,fuzzyCanonReplace:"//youtube.fuzzy.replayweb.page/$1",args:[["id","itag"],["id"]],fuzzyArgs:!0},{match:/facebook\.com\/ajax\/pagelet\/generic.php\/photoviewerinitpagelet/i,args:[[{arg:"data",keys:["query_type","fbid","v","cursor","data"]}]]},{match:/((?:twitter|x)\.com\/[^/]+\/status\/[^?]+)(\?.*)/,fuzzyCanonReplace:"$1"},{match:/((?:twitter|x)\.com\/i\/api\/graphql\/.*)/,args:[["cursor"]],fuzzyArgs:!0},{match:/facebook\.com\/ajax\//i,fuzzySet:!0},{match:(kt=["(callback=jsonp)[^&]+(?=&|$)","((?:\\w+)=jquery)[\\d]+_[\\d]+","utm_[^=]+=[^&]+(?=&|$)","(_|cb|_ga|\\w*cache\\w*)=[\\d.-]+(?=$|&)"],new RegExp("[?&]"+kt.map(e=>"("+e+")").join("|"),"gi")),replace:""},{match:/(\.(?:js|webm|mp4|gif|jpg|png|css|json|m3u8))\?.*/i,replace:"$1",maxResults:2}];var kt;const Nt=new class{rules;constructor(e){this.rules=e||Rt}getRuleFor(e){let t;const n=-1===e.indexOf("?")?e+"?":e;for(const e of this.rules)if(n.length<4096&&n.match(e.match)){t=e;break}let r=e;t?.fuzzyCanonReplace&&(r=e.replace(t.match,t.fuzzyCanonReplace));const i=t?.split||"?",s=t?.splitLast?e.lastIndexOf(i):e.indexOf(i);return{prefix:s>0?e.slice(0,s+i.length):e,rule:t,fuzzyCanonUrl:r}}getFuzzyCanonsWithArgs(e){let{fuzzyCanonUrl:t,prefix:n,rule:r}=this.getRuleFor(e);t===e&&(t=n);const i=[];if(r?.args){const n=new URL(t),s=new URL(e);for(const e of r.args){const t=new URLSearchParams;for(const n of e)t.set(n,s.searchParams.get(n)||"");n.search=t.toString(),i.push(n.href)}return i}return[t]}fuzzyCompareUrls(e,t,n){if(!t?.length)return null;if(void 0!==n?.replace&&void 0!==n.match&&(!n.maxResults||t.length<=n.maxResults)){const r=n.match,i=n.replace,s=e.replace(r,i),o=[];for(const e of t){const t=e.url.replace(r,i);if(s===t)return e;e.fuzzyMatchUrl=t,o.push(e)}t=o,e=s}return this.fuzzyBestMatchQuery(e,t,n)}fuzzyBestMatchQuery(e,t,n){let r;try{r=new URL(e)}catch(e){return null}const i=n?.args&&!n.fuzzyArgs?new Set(n.args[0]):null;let s=Number.MIN_SAFE_INTEGER,o=null;const a=new URLSearchParams(r.search);for(const r of t){if(304===r.status)continue;let t;try{t=new URL(r.fuzzyMatchUrl||r.url)}catch(e){continue}const c=new URLSearchParams(t.search);let l=this.getMatch(a,c,i,n?.fuzzySet);l+=this.getMatch(c,a,i),l/=2,r.status>200&&(l+=.1*(200-r.status)),l>s&&(s=l,o=r)}return o}getMatch(e,t,n=null,r=!1){let i=1,s=1;const o={};for(let[a,c]of e){let e,l=t.get(a);if(n&&n.has(a)&&l!==c)return-1e3;e=a.startsWith("_")?.1:10,null!==l&&(i+=.5*e,l.length>Tt&&(l=l.slice(0,Tt))),c&&c.length>Tt&&(c=c.slice(0,Tt));const h=Number(c),u=Number(l);if(s+=e,r&&l&&this.addSetMatch(o,a,c,l),l===c)i+=e*c.length;else if(null===l||null===c)i+=0;else if(isNaN(h)||isNaN(u))if(c.startsWith("{")&&l.startsWith("{"))try{const t=He(c),n=He(l);i+=this.getMatch(t,n)*e*2}catch(t){i+=.5*e*this.levScore(c,l)}else r||(i+=e*this.levScore(c,l));else i+=10-Math.log(Math.abs(h-u)+1)}return i/s+(r?this.paramSetMatch(o,100):0)}addSetMatch(e,t,n,r){if(!(n&&r&&n.startsWith("/")&&r.startsWith("/")))return;const i=t.split(Ct);if(i.length<=1)return;const s=n.indexOf("?"),o=r.indexOf("?"),a=i[0],c=s>0?n.slice(0,s):n,l=o>0?r.slice(0,o):r;e[a]||(e[a]={value:[],found:new Set}),e[a].value.push(c),e[a].found.add(l)}paramSetMatch(e,t){let n=0;for(const r of Object.values(e)){let e=t;for(const t of r.value)r.found.has(t)&&(n+=e),e*=.33}return n}levScore(e,t){const n=Math.min(e.length,t.length),r=ue()(e,t);return r0&&(h=h.slice(e+1))}l.set("location",h),l.delete("x-orig-location"),l.delete("x-redirect-status"),l.delete("x-redirect-statusText")}let u=null;const p=l.get("x-orig-ts");p&&(n=H(p),l.delete("x-orig-ts"),p&&h&&(u=p));const d=l.get("memento-datetime");d&&(n=new Date(d));const f=l.get("x-proxy-set-cookie");if(f){const e=[];f.split(",").forEach(t=>{const n=t.split(";",1)[0].trim();n.indexOf("=")>0&&e.push(n)}),l.delete("x-proxy-set-cookie"),e.length&&l.set("x-wabac-preset-cookie",e.join(";"))}return new Lt({payload:o,status:a,statusText:c,headers:l,url:e,date:n,noRW:r,isLive:i,updateTS:u})}reader;buffer;status;statusText;url;date;extraOpts;headers;noRW;isLive;updateTS;clonedResponse=null;constructor({payload:e,status:t,statusText:n,headers:r,url:i,date:s,extraOpts:o=null,noRW:a=!1,isLive:c=!1,updateTS:l=null}){this.reader=null,this.buffer=null,e&&e instanceof $e?this.reader=e:this.buffer=e,this.status=t,this.statusText=n||J(t),this.headers=r,this.url=i,this.date=s,this.extraOpts=o,this.noRW=a,this.isLive=c,this.updateTS=l}async getText(e=!1,t=!1){const n=await this.getBuffer();return"string"==typeof n?{bomFound:!1,text:n}:n?239===n[0]&&187===n[1]&&191===n[2]?{bomFound:!0,text:Pt.decode(n.slice(3))}:254===n[0]&&255===n[1]?{bomFound:!0,text:Ot.Buffer.from(n.slice(2)).swap16().toString("utf16le")}:255===n[0]&&254===n[1]?{bomFound:!0,text:Ot.Buffer.from(n.slice(2)).toString("utf16le")}:{bomFound:!1,text:t?"":e?Pt.decode(n):z(n)}:{bomFound:!1,text:""}}setText(e,t=!1){this.setBuffer(t?Bt.encode(e):q(e))}async getBuffer(){return this.buffer||!this.reader||(this.buffer=await this.reader.readFully()),this.buffer}setBuffer(e){this.buffer=e,this.reader=null}setReader(e){e instanceof $e?(this.reader=e,this.buffer=null):e.getReader&&(this.reader=new et(e.getReader()),this.buffer=null)}setRange(e){if(206===this.status){const e=this.headers.get("Content-Range");if(e&&!e.startsWith("bytes 0-"))return!1}const t=e.match(/^bytes=(\d+)-(\d+)?$/);let n=0;if(this.buffer)n=this.buffer.length;else if(this.reader&&(n=Number(this.headers.get("content-length")),!n))return!1;if(!t)return this.status=416,this.statusText="Range Not Satisfiable",this.headers.set("Content-Range",`*/${n}`),!1;const r=Number(t[1]),i=Number(t[2])||n-1;return!!this.setRawRange(r,i)&&(this.headers.set("Content-Range",`bytes ${r}-${i}/${n}`),this.headers.set("Content-Length",String(i-r+1)),this.status=206,this.statusText="Partial Content",!0)}setRawRange(e,t){const n=this.reader;return this.buffer?(this.buffer=this.buffer.slice(e,t+1),!0):!!n?.setLimitSkip&&(n.setLimitSkip(t-e+1,e),!0)}makeResponse(e=!1,t=!1){let n=null;Y(this.status)||(n=this.buffer||!this.reader?this.buffer:this.reader.getReadableStream());const r=new Response(n,{status:this.status,statusText:this.statusText,headers:this.headers});return r.date=this.date,e&&(r.headers.set("Cross-Origin-Opener-Policy","same-origin"),r.headers.set("Cross-Origin-Embedder-Policy","require-corp")),t&&r.headers.set("content-disposition","inline"),r}}const Dt=new Date("9999-01-01").getTime(),Ut="warc/revisit";class Ft{name;minDedupSize;version;autoHttpsCheck=!0;useRefCounts=!1;allowRepeats=!0;repeatTracker=null;fuzzyPrefixSearch=!0;initing;db=null;constructor(e,t={}){this.name=e,this.db=null;const{minDedupSize:n,noRefCounts:r}=t;this.minDedupSize=Number.isInteger(n)?n:1024,this.version=4,this.autoHttpsCheck=!0,this.useRefCounts=!r,this.allowRepeats=!0,this.repeatTracker=new Mt,this.fuzzyPrefixSearch=!0,this.initing=this.init()}async init(){let e=0;this.db=await y(this.name,this.version,{upgrade:(t,n,r,i)=>{e=n,this._initDB(t,n,r,i)},blocking:(e,t)=>{t||this.close()}}),1===e&&await this.convertCuratedPagesToV2(this.db)}_initDB(e,t,n,r){if(!t){const t=e.createObjectStore("pages",{keyPath:"id"});t.createIndex("url","url"),t.createIndex("ts","ts"),t.createIndex("state","state"),e.createObjectStore("pageLists",{keyPath:"id",autoIncrement:!0}),e.createObjectStore("curatedPages",{keyPath:"id",autoIncrement:!0}).createIndex("listPages",["list","pos"]);const n=e.createObjectStore("resources",{keyPath:["url","ts"]});n.createIndex("pageId","pageId"),n.createIndex("mimeStatusUrl",["mime","status","url"]),e.createObjectStore("payload",{keyPath:"digest"}).createIndex("digest","digest",{unique:!0}),e.createObjectStore("digestRef",{keyPath:"digest"}).createIndex("digest","digest",{unique:!0})}}async clearAll(){const e=["pages","resources","payload","digestRef"];if(this.db)for(const t of e)await this.db.clear(t)}close(){this.db&&(this.db.close(),this.db=null)}async delete(){this.close(),await b(this.name,{blocked(e,t){console.log("Unable to delete: "+t)}})}async addPage(e,t){const n=e.url,r=e.title||e.url,i=e.id||this.newPageId(),s=e.state||17;let o=e.ts;if("number"!=typeof o)if(e.timestamp)o=H(e.timestamp).getTime();else{const t=e.ts||e.date||e.datetime;t&&(o=new Date(t).getTime())}const a={...e,url:n,ts:o,title:r,id:i,state:s};return t?(t.store.put(a),a.id):await this.db.put("pages",a)}async addPages(e,t="pages",n=!1){const r=this.db.transaction(t,"readwrite");for(const t of e)n?r.store.put(t):this.addPage(t,r);try{await r.done}catch(e){console.warn("addPages tx",String(e))}}async createPageList(e){const t={title:e.title,desc:e.desc||e.description,slug:e.id||e.slug};return await this.db.put("pageLists",t)}async addCuratedPageList(e,t){const n=await this.createPageList(e);let r=0;for(const e of t)e.pos=r++,e.list=n;await this.addPages(t,"curatedPages")}async addCuratedPageLists(e,t="pages",n="public"){for(const r of e){if(n&&!r[n])continue;const e=r[t]||[];await this.addCuratedPageList(r,e)}}async convertCuratedPagesToV2(e){const t=await e.getAll("curatedPages");if(!t?.length)return;const n=await e.getAll("pages"),r=new Map;for(const e of n)r.set(e.id,e);for(const e of t)if(e.page){const t=r.get(e.page);t&&(e.id=this.newPageId(),e.url=t.url,e.ts=t.ts,!e.title&&t.title&&(e.title=t.title)),delete e.page}await e.clear("curatedPages");const i=e.transaction("curatedPages","readwrite");for(const e of t)i.store.put(e);try{await i.done}catch(e){console.warn("Conversion Failed",e)}}async getCuratedPagesByList(){const e=await this.db.getAll("pageLists"),t=this.db.transaction("curatedPages","readonly");for await(const n of t.store.index("listPages").iterate()){const t=e[n.value.list-1];t&&(t.show=!0,t.pages||(t.pages=[]),t.pages.push(n.value))}return e}newPageId(){return G()}async getAllPages(){return await this.db.getAll("pages")}async getPagesByUrl(e){return await this.db.getAllFromIndex("pages","url",e)}async getPages(e){const t=[];e.sort();for await(const n of this.matchAny("pages",null,e))t.push(n);return t}async getTimestampsByURL(e){const t=this.db.transaction("resources"),n=IDBKeyRange.bound([e],[e,Dt]),r=[];for await(const e of t.store.iterate(n))r.push(e.key[1]);return r}async getPagesWithState(e){return await this.db.getAllFromIndex("pages","state",e)}async getVerifyInfo(){return{}}async addVerifyData(e="",t,n,r=null,i=!1){}async addVerifyDataList(e,t){}async dedupResource(e,t,n,r=1){const i=n.objectStore("digestRef"),s=await i.get(e);if(s)return++s.count,s;if(t)try{return n.objectStore("payload").put({digest:e,payload:t}),{digest:e,count:r,size:t.length}}catch(e){console.log(e)}return null}async addResources(e){const t=[],n=[],r=[],i={},s=new Set,o=this.db.transaction(["digestRef","payload"],"readwrite");for(const a of e){let e=1;const c=a.status||200,l=a.mime===Ut?t:c>=300?n:r;l.push(a);const h=this.getFuzzyUrl(a);if(h&&(l.push(h),e=2),this.useRefCounts&&a.digest){const t=i[a.digest];t?(t.count+=e,s.add(a.digest)):i[a.digest]=await this.dedupResource(a.digest,a.payload,o,e),delete a.payload}}if(this.useRefCounts){const e=o.objectStore("digestRef");for(const t of s)e.put(i[t])}try{await o.done}catch(e){console.error("Payload and Ref Count Bulk Add Failed: ",e)}const a=this.db.transaction("resources","readwrite");for(const e of t)a.store.put(e);for(const e of n)a.store.put(e);for(const e of r)a.store.put(e);try{await a.done}catch(e){console.error("Resources Bulk Add Failed",e)}}getFuzzyUrl(e){if(e.status&&e.status>=200&&e.status<400&&304!==e.status&&204!==e.status){const{fuzzyCanonUrl:t}=Nt.getRuleFor(e.url);return t&&t!==e.url?{url:t,ts:e.ts,origURL:e.url,origTS:e.ts,pageId:e.pageId,digest:e.digest}:null}return null}async addResource(e){e.payload&&e.payload.length>this.minDedupSize&&(e.digest||(e.digest=await V(e.payload,"sha-256")));let t=null,n=!1;const r=this.db.transaction(["resources","digestRef","payload"],"readwrite");if(e.payload&&e.payload.length>this.minDedupSize?(t=await this.dedupResource(e.digest||"",e.payload,r),n=!!t&&1===t.count,delete e.payload):e.payload&&(n=!0),e.mime!==Ut){r.objectStore("resources").put(e);const n=this.getFuzzyUrl(e);n&&(r.objectStore("resources").put(n),t&&t.count++)}else r.objectStore("resources").add(e);t&&r.objectStore("digestRef").put(t);try{await r.done}catch(t){e.mime===Ut?console.log("Skip Duplicate revisit for: "+e.url):console.log("Add Error for "+e.url),console.log(t)}return n}async getResource(e,t,n,r={}){const i=H(e.timestamp).getTime();let s=e.url,o=null;const a=this.repeatTracker?this.repeatTracker.getSkipCount(n,s,e.request.method):0,c={...r,skip:a};if(e.httpToHttpsNeeded&&(s=s.slice(s.indexOf("//"))),s.startsWith("//")){let t=!1;o=await this.lookupUrl("https:"+s,i,c),o||(o=await this.lookupUrl("http:"+s,i,c),(o||e.request.referrer.indexOf("/http://",2)>0)&&(t=!0)),s=(t?"http:":"https:")+s}else if(o=await this.lookupUrl(s,i,c),!o&&this.autoHttpsCheck&&s.startsWith("http://")){const e=s.replace("http://","https://");o=await this.lookupUrl(e,i,c),o&&(s=e)}if(o||!this.fuzzyPrefixSearch||r.noFuzzyCheck||(o=await this.lookupQueryPrefix(s,r)),o?.origURL){const e=await this.lookupUrl(o.origURL,o.origTS||o.ts,r);e&&(s=e.url,o=e)}if(!o)return null;const l=o.status||0,h=o.statusText||J(l);let u=null;if(!Y(l)&&(u=await this.loadPayload(o,r),!u))return null;const p=o.respHeaders?K(o.respHeaders):new Headers,d=new Date(o.ts),f=o.extraOpts||null;return s=o.url,s!==e.url&&p.set("Content-Location",s),new Lt({url:s,payload:u,status:l,statusText:h,headers:p,date:d,extraOpts:f})}async loadPayload(e,t){if(e.digest&&!e.payload){if("sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"===e.digest||"sha1:3I42H3S6NNFQ2MSVX7XZKYAYSCX5QBYJ"===e.digest)return new Uint8Array([]);const t=await this.db.get("payload",e.digest);if(!t)return null;const{payload:n}=t;return n}return e.payload||null}shouldSkipResult(e,t,n){try{if(n&&t?.status&&t.status>=500)return!0;if(t?.respHeaders&&t.status&&t.status>=300&&t.status<400){const n=new Headers(t.respHeaders).get("location")||"";if(new URL(n,e).href===e)return!0}}catch(e){}return!1}async lookupUrl(e,t,n={}){const r=this.db.transaction("resources","readonly");if(t){const i=IDBKeyRange.bound([e,t],[e,Dt]);if(n.noRevisits||n.pageId){let t=await r.store.getAll(i,16);t=t||[];for(const r of t)if(!(n.pageId&&r.pageId&&r.pageId!==n.pageId||n.noRevisits&&r.mime===Ut||this.shouldSkipResult(e,r,n.skip5xx)))return r}else{const s=await r.store.get(i);if(s&&this.shouldSkipResult(e,s,n.skip5xx))t+=1e4;else if(s)return s}}const i=IDBKeyRange.bound([e],[e,t||Dt]);for await(const t of r.store.iterate(i,"prev")){const r=t.value;if(!(n.pageId&&r.pageId&&r.pageId!==n.pageId||n.noRevisits&&r.mime===Ut||this.shouldSkipResult(e,r,n.skip5xx)))return r}return null}async lookupQueryPrefix(e,t){const{rule:n,prefix:r,fuzzyCanonUrl:i}=Nt.getRuleFor(e);if(i!==e){const e=await this.lookupUrl(i,0,t);if(e)return e}if(!n&&r===e&&r===i&&!e.endsWith("?"))return null;const s=await this.db.getAll("resources",this.getLookupRange(r,"prefix"),128e3);return Nt.fuzzyCompareUrls(e,s,n)}resJson(e){const t=new Date(e.ts).toISOString();return{url:e.url,date:t,ts:j(t),mime:e.mime||"",status:e.status||0}}async resourcesByPage(e){return this.db.getAllFromIndex("resources","pageId",e)}async*resourcesByPages2(e){e.sort(),yield*this.matchAny("resources","pageId",e)}async*resourcesByPages(e){const t=this.db.transaction("resources","readonly");for await(const n of t.store.iterate())e.includes(n.value.pageId)&&(yield n.value)}async*matchAny(e,t,n,r,i=!1){const s=this.db.transaction(e,"readonly"),o=IDBKeyRange.lowerBound(n[0],i);let a=t?await s.store.index(t).openCursor(o):await s.store.openCursor(o),c=0;for(;a&&ct?++c:i?(yield a.value,a=await a.continue()):a=await a.continue(n[c])}}async resourcesByUrlAndMime(e,t,n=1e3,r=!0,i="",s=""){const o=t?0:n,a=await this.db.getAll("resources",this.getLookupRange(e,r?"prefix":"exact",i,s),o),c=t.split(","),l=[];for(const e of a)for(const t of c)if(!t||e.mime?.startsWith(t)){if(l.push(this.resJson(e)),l.length===n)return l;break}return l}async resourcesByMime(e,t=100,n="",r="",i=0){const s=e.split(","),o=[];s.sort();const a=[];n&&a.push([n,i,r]);for(const e of s)(!n||!e||e>n)&&a.push([e,0,""]);for await(const e of this.matchAny("resources","mimeStatusUrl",a,0,!0))if(o.push(this.resJson(e)),o.length===t)break;return o}async deletePage(e){const t=this.db.transaction("pages","readwrite"),n=await t.store.get(e);await t.store.delete(e);const r=await this.deletePageResources(e);return{pageSize:n?.size||0,dedupSize:r}}async deletePageResources(e){const t={},n=this.db.transaction("resources","readwrite");let r=await n.store.index("pageId").openCursor(e),i=0;for(;r;){const e=r.value.digest;e?t[e]=(t[e]||0)+1:r.value.payload&&(i+=r.value.payload.length),n.store.delete(r.primaryKey),r=await r.continue()}await n.done;const s=this.db.transaction(["payload","digestRef"],"readwrite"),o=s.objectStore("digestRef");for(const e of Object.keys(t)){const n=await o.get(e);n&&(n.count-=t[e]),n&&n.count>=1?o.put(n):(i+=n?n.size:0,o.delete(e),s.objectStore("payload").delete(e))}return await s.done,i}prefixUpperBound(e){return e.slice(0,-1)+String.fromCharCode(e.charCodeAt(e.length-1)+1)}getLookupRange(e,t,n,r){let i,s,o;switch(t){case"prefix":i=[e],s=[this.prefixUpperBound(e)];break;case"host":{const t=new URL(e).origin;i=[t+"/"],s=[t+"0"];break}default:i=[e],s=[e,Number.MAX_SAFE_INTEGER]}return n?(i=[n,r||""],o=!0):o=!1,IDBKeyRange.bound(i,s,o,!0)}}class Mt{repeats={};getSkipCount(e,t,n){if("POST"!==n&&!t.endsWith(".m3u8"))return 0;e.replacesClientId&&delete this.repeats[e.replacesClientId];const r=e.resultingClientId||e.clientId;return r?(void 0===this.repeats[r]&&(this.repeats[r]={}),void 0===this.repeats[r][t]?this.repeats[r][t]=0:this.repeats[r][t]++,this.repeats[r][t]):0}}var jt=n(8310);class Ht extends jt.Writable{_write(e,t,n){n()}}const Wt=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]),Qt="�";var Vt;!function(e){e[e.EOF=-1]="EOF",e[e.NULL=0]="NULL",e[e.TABULATION=9]="TABULATION",e[e.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",e[e.LINE_FEED=10]="LINE_FEED",e[e.FORM_FEED=12]="FORM_FEED",e[e.SPACE=32]="SPACE",e[e.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",e[e.QUOTATION_MARK=34]="QUOTATION_MARK",e[e.NUMBER_SIGN=35]="NUMBER_SIGN",e[e.AMPERSAND=38]="AMPERSAND",e[e.APOSTROPHE=39]="APOSTROPHE",e[e.HYPHEN_MINUS=45]="HYPHEN_MINUS",e[e.SOLIDUS=47]="SOLIDUS",e[e.DIGIT_0=48]="DIGIT_0",e[e.DIGIT_9=57]="DIGIT_9",e[e.SEMICOLON=59]="SEMICOLON",e[e.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",e[e.EQUALS_SIGN=61]="EQUALS_SIGN",e[e.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",e[e.QUESTION_MARK=63]="QUESTION_MARK",e[e.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",e[e.LATIN_CAPITAL_F=70]="LATIN_CAPITAL_F",e[e.LATIN_CAPITAL_X=88]="LATIN_CAPITAL_X",e[e.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",e[e.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",e[e.GRAVE_ACCENT=96]="GRAVE_ACCENT",e[e.LATIN_SMALL_A=97]="LATIN_SMALL_A",e[e.LATIN_SMALL_F=102]="LATIN_SMALL_F",e[e.LATIN_SMALL_X=120]="LATIN_SMALL_X",e[e.LATIN_SMALL_Z=122]="LATIN_SMALL_Z",e[e.REPLACEMENT_CHARACTER=65533]="REPLACEMENT_CHARACTER"}(Vt=Vt||(Vt={}));const zt="--",qt="[CDATA[",Gt="doctype",Kt="script",Xt="public",Yt="system";function Jt(e){return e>=55296&&e<=57343}function Zt(e){return 32!==e&&10!==e&&13!==e&&9!==e&&12!==e&&e>=1&&e<=31||e>=127&&e<=159}function $t(e){return e>=64976&&e<=65007||Wt.has(e)}var en,nn;!function(e){e.controlCharacterInInputStream="control-character-in-input-stream",e.noncharacterInInputStream="noncharacter-in-input-stream",e.surrogateInInputStream="surrogate-in-input-stream",e.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",e.endTagWithAttributes="end-tag-with-attributes",e.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",e.unexpectedSolidusInTag="unexpected-solidus-in-tag",e.unexpectedNullCharacter="unexpected-null-character",e.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",e.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",e.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",e.missingEndTagName="missing-end-tag-name",e.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",e.unknownNamedCharacterReference="unknown-named-character-reference",e.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",e.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",e.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",e.eofBeforeTagName="eof-before-tag-name",e.eofInTag="eof-in-tag",e.missingAttributeValue="missing-attribute-value",e.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",e.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",e.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",e.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",e.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",e.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",e.missingDoctypePublicIdentifier="missing-doctype-public-identifier",e.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",e.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",e.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",e.cdataInHtmlContent="cdata-in-html-content",e.incorrectlyOpenedComment="incorrectly-opened-comment",e.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",e.eofInDoctype="eof-in-doctype",e.nestedComment="nested-comment",e.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",e.eofInComment="eof-in-comment",e.incorrectlyClosedComment="incorrectly-closed-comment",e.eofInCdata="eof-in-cdata",e.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",e.nullCharacterReference="null-character-reference",e.surrogateCharacterReference="surrogate-character-reference",e.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",e.controlCharacterReference="control-character-reference",e.noncharacterCharacterReference="noncharacter-character-reference",e.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",e.missingDoctypeName="missing-doctype-name",e.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",e.duplicateAttribute="duplicate-attribute",e.nonConformingDoctype="non-conforming-doctype",e.missingDoctype="missing-doctype",e.misplacedDoctype="misplaced-doctype",e.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",e.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",e.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",e.openElementsLeftAfterEof="open-elements-left-after-eof",e.abandonedHeadElementChild="abandoned-head-element-child",e.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",e.nestedNoscriptInHead="nested-noscript-in-head",e.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text"}(en=en||(en={}));class tn{constructor(e){this.handler=e,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=65536,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+Number(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(e){const{line:t,col:n,offset:r}=this;return{code:e,startLine:t,endLine:t,startCol:n,endCol:n,startOffset:r,endOffset:r}}_err(e){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(e)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(e){if(this.pos!==this.html.length-1){const t=this.html.charCodeAt(this.pos+1);if(function(e){return e>=56320&&e<=57343}(t))return this.pos++,this._addGap(),1024*(e-55296)+9216+t}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,Vt.EOF;return this._err(en.surrogateInInputStream),e}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(e,t){this.html.length>0?this.html+=e:this.html=e,this.endOfChunkHit=!1,this.lastChunkWritten=t}insertHtmlAtCurrentPos(e){this.html=this.html.substring(0,this.pos+1)+e+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(e,t){if(this.pos+e.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(t)return this.html.startsWith(e,this.pos);for(let t=0;t=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,Vt.EOF;const n=this.html.charCodeAt(t);return n===Vt.CARRIAGE_RETURN?Vt.LINE_FEED:n}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,Vt.EOF;let e=this.html.charCodeAt(this.pos);return e===Vt.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,Vt.LINE_FEED):e===Vt.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,Jt(e)&&(e=this._processSurrogate(e)),null===this.handler.onParseError||e>31&&e<127||e===Vt.LINE_FEED||e===Vt.CARRIAGE_RETURN||e>159&&e<64976||this._checkForProblematicCharacters(e),e)}_checkForProblematicCharacters(e){Zt(e)?this._err(en.controlCharacterInInputStream):$t(e)&&this._err(en.noncharacterInInputStream)}retreat(e){for(this.pos-=e;this.pos䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0))),sn=new Uint16Array("Ȁaglq\tɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(e=>e.charCodeAt(0)));var on;const an=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),cn=null!==(on=String.fromCodePoint)&&void 0!==on?on:function(e){let t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|1023&e),t+=String.fromCharCode(e),t};function ln(e){return cn(function(e){var t;return e>=55296&&e<=57343||e>1114111?65533:null!==(t=an.get(e))&&void 0!==t?t:e}(e))}var hn,un,fn,gn,mn,wn,yn;function pn(e){return function(t,n){let r="",i=0,s=0;for(;(s=t.indexOf("&",s))>=0;){if(r+=t.slice(i,s),i=s,s+=1,t.charCodeAt(s)===hn.NUM){let e=s+1,o=10,a=t.charCodeAt(e);(a|hn.To_LOWER_BIT)===hn.LOWER_X&&(o=16,s+=1,e+=1);do{a=t.charCodeAt(++s)}while(a>=hn.ZERO&&a<=hn.NINE||16===o&&(a|hn.To_LOWER_BIT)>=hn.LOWER_A&&(a|hn.To_LOWER_BIT)<=hn.LOWER_F);if(e!==s){const a=t.substring(e,s),c=parseInt(a,o);if(t.charCodeAt(s)===hn.SEMI)s+=1;else if(n)continue;r+=ln(c),i=s}continue}let o=0,a=1,c=0,l=e[c];for(;s>14)-1;if(0===e)break;c+=e}}if(0!==o){const t=(e[o]&un.VALUE_LENGTH)>>14;r+=1===t?String.fromCharCode(e[o]&~un.VALUE_LENGTH):2===t?String.fromCharCode(e[o+1]):String.fromCharCode(e[o+1],e[o+2]),i=s-a+1}}return r+t.slice(i)}}function dn(e,t,n,r){const i=(t&un.BRANCH_LENGTH)>>7,s=t&un.JUMP_TABLE;if(0===i)return 0!==s&&r===s?n:-1;if(s){const t=r-s;return t<0||t>=i?-1:e[n+t]-1}let o=n,a=o+i-1;for(;o<=a;){const t=o+a>>>1,n=e[t];if(nr))return e[t+i];a=t-1}}return-1}!function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.To_LOWER_BIT=32]="To_LOWER_BIT"}(hn||(hn={})),function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"}(un||(un={})),pn(rn),pn(sn),function(e){e.HTML="http://www.w3.org/1999/xhtml",e.MATHML="http://www.w3.org/1998/Math/MathML",e.SVG="http://www.w3.org/2000/svg",e.XLINK="http://www.w3.org/1999/xlink",e.XML="http://www.w3.org/XML/1998/namespace",e.XMLNS="http://www.w3.org/2000/xmlns/"}(fn=fn||(fn={})),function(e){e.TYPE="type",e.ACTION="action",e.ENCODING="encoding",e.PROMPT="prompt",e.NAME="name",e.COLOR="color",e.FACE="face",e.SIZE="size"}(gn=gn||(gn={})),function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"}(mn=mn||(mn={})),function(e){e.A="a",e.ADDRESS="address",e.ANNOTATION_XML="annotation-xml",e.APPLET="applet",e.AREA="area",e.ARTICLE="article",e.ASIDE="aside",e.B="b",e.BASE="base",e.BASEFONT="basefont",e.BGSOUND="bgsound",e.BIG="big",e.BLOCKQUOTE="blockquote",e.BODY="body",e.BR="br",e.BUTTON="button",e.CAPTION="caption",e.CENTER="center",e.CODE="code",e.COL="col",e.COLGROUP="colgroup",e.DD="dd",e.DESC="desc",e.DETAILS="details",e.DIALOG="dialog",e.DIR="dir",e.DIV="div",e.DL="dl",e.DT="dt",e.EM="em",e.EMBED="embed",e.FIELDSET="fieldset",e.FIGCAPTION="figcaption",e.FIGURE="figure",e.FONT="font",e.FOOTER="footer",e.FOREIGN_OBJECT="foreignObject",e.FORM="form",e.FRAME="frame",e.FRAMESET="frameset",e.H1="h1",e.H2="h2",e.H3="h3",e.H4="h4",e.H5="h5",e.H6="h6",e.HEAD="head",e.HEADER="header",e.HGROUP="hgroup",e.HR="hr",e.HTML="html",e.I="i",e.IMG="img",e.IMAGE="image",e.INPUT="input",e.IFRAME="iframe",e.KEYGEN="keygen",e.LABEL="label",e.LI="li",e.LINK="link",e.LISTING="listing",e.MAIN="main",e.MALIGNMARK="malignmark",e.MARQUEE="marquee",e.MATH="math",e.MENU="menu",e.META="meta",e.MGLYPH="mglyph",e.MI="mi",e.MO="mo",e.MN="mn",e.MS="ms",e.MTEXT="mtext",e.NAV="nav",e.NOBR="nobr",e.NOFRAMES="noframes",e.NOEMBED="noembed",e.NOSCRIPT="noscript",e.OBJECT="object",e.OL="ol",e.OPTGROUP="optgroup",e.OPTION="option",e.P="p",e.PARAM="param",e.PLAINTEXT="plaintext",e.PRE="pre",e.RB="rb",e.RP="rp",e.RT="rt",e.RTC="rtc",e.RUBY="ruby",e.S="s",e.SCRIPT="script",e.SECTION="section",e.SELECT="select",e.SOURCE="source",e.SMALL="small",e.SPAN="span",e.STRIKE="strike",e.STRONG="strong",e.STYLE="style",e.SUB="sub",e.SUMMARY="summary",e.SUP="sup",e.TABLE="table",e.TBODY="tbody",e.TEMPLATE="template",e.TEXTAREA="textarea",e.TFOOT="tfoot",e.TD="td",e.TH="th",e.THEAD="thead",e.TITLE="title",e.TR="tr",e.TRACK="track",e.TT="tt",e.U="u",e.UL="ul",e.SVG="svg",e.VAR="var",e.WBR="wbr",e.XMP="xmp"}(wn=wn||(wn={})),function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.A=1]="A",e[e.ADDRESS=2]="ADDRESS",e[e.ANNOTATION_XML=3]="ANNOTATION_XML",e[e.APPLET=4]="APPLET",e[e.AREA=5]="AREA",e[e.ARTICLE=6]="ARTICLE",e[e.ASIDE=7]="ASIDE",e[e.B=8]="B",e[e.BASE=9]="BASE",e[e.BASEFONT=10]="BASEFONT",e[e.BGSOUND=11]="BGSOUND",e[e.BIG=12]="BIG",e[e.BLOCKQUOTE=13]="BLOCKQUOTE",e[e.BODY=14]="BODY",e[e.BR=15]="BR",e[e.BUTTON=16]="BUTTON",e[e.CAPTION=17]="CAPTION",e[e.CENTER=18]="CENTER",e[e.CODE=19]="CODE",e[e.COL=20]="COL",e[e.COLGROUP=21]="COLGROUP",e[e.DD=22]="DD",e[e.DESC=23]="DESC",e[e.DETAILS=24]="DETAILS",e[e.DIALOG=25]="DIALOG",e[e.DIR=26]="DIR",e[e.DIV=27]="DIV",e[e.DL=28]="DL",e[e.DT=29]="DT",e[e.EM=30]="EM",e[e.EMBED=31]="EMBED",e[e.FIELDSET=32]="FIELDSET",e[e.FIGCAPTION=33]="FIGCAPTION",e[e.FIGURE=34]="FIGURE",e[e.FONT=35]="FONT",e[e.FOOTER=36]="FOOTER",e[e.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",e[e.FORM=38]="FORM",e[e.FRAME=39]="FRAME",e[e.FRAMESET=40]="FRAMESET",e[e.H1=41]="H1",e[e.H2=42]="H2",e[e.H3=43]="H3",e[e.H4=44]="H4",e[e.H5=45]="H5",e[e.H6=46]="H6",e[e.HEAD=47]="HEAD",e[e.HEADER=48]="HEADER",e[e.HGROUP=49]="HGROUP",e[e.HR=50]="HR",e[e.HTML=51]="HTML",e[e.I=52]="I",e[e.IMG=53]="IMG",e[e.IMAGE=54]="IMAGE",e[e.INPUT=55]="INPUT",e[e.IFRAME=56]="IFRAME",e[e.KEYGEN=57]="KEYGEN",e[e.LABEL=58]="LABEL",e[e.LI=59]="LI",e[e.LINK=60]="LINK",e[e.LISTING=61]="LISTING",e[e.MAIN=62]="MAIN",e[e.MALIGNMARK=63]="MALIGNMARK",e[e.MARQUEE=64]="MARQUEE",e[e.MATH=65]="MATH",e[e.MENU=66]="MENU",e[e.META=67]="META",e[e.MGLYPH=68]="MGLYPH",e[e.MI=69]="MI",e[e.MO=70]="MO",e[e.MN=71]="MN",e[e.MS=72]="MS",e[e.MTEXT=73]="MTEXT",e[e.NAV=74]="NAV",e[e.NOBR=75]="NOBR",e[e.NOFRAMES=76]="NOFRAMES",e[e.NOEMBED=77]="NOEMBED",e[e.NOSCRIPT=78]="NOSCRIPT",e[e.OBJECT=79]="OBJECT",e[e.OL=80]="OL",e[e.OPTGROUP=81]="OPTGROUP",e[e.OPTION=82]="OPTION",e[e.P=83]="P",e[e.PARAM=84]="PARAM",e[e.PLAINTEXT=85]="PLAINTEXT",e[e.PRE=86]="PRE",e[e.RB=87]="RB",e[e.RP=88]="RP",e[e.RT=89]="RT",e[e.RTC=90]="RTC",e[e.RUBY=91]="RUBY",e[e.S=92]="S",e[e.SCRIPT=93]="SCRIPT",e[e.SECTION=94]="SECTION",e[e.SELECT=95]="SELECT",e[e.SOURCE=96]="SOURCE",e[e.SMALL=97]="SMALL",e[e.SPAN=98]="SPAN",e[e.STRIKE=99]="STRIKE",e[e.STRONG=100]="STRONG",e[e.STYLE=101]="STYLE",e[e.SUB=102]="SUB",e[e.SUMMARY=103]="SUMMARY",e[e.SUP=104]="SUP",e[e.TABLE=105]="TABLE",e[e.TBODY=106]="TBODY",e[e.TEMPLATE=107]="TEMPLATE",e[e.TEXTAREA=108]="TEXTAREA",e[e.TFOOT=109]="TFOOT",e[e.TD=110]="TD",e[e.TH=111]="TH",e[e.THEAD=112]="THEAD",e[e.TITLE=113]="TITLE",e[e.TR=114]="TR",e[e.TRACK=115]="TRACK",e[e.TT=116]="TT",e[e.U=117]="U",e[e.UL=118]="UL",e[e.SVG=119]="SVG",e[e.VAR=120]="VAR",e[e.WBR=121]="WBR",e[e.XMP=122]="XMP"}(yn=yn||(yn={}));const bn=new Map([[wn.A,yn.A],[wn.ADDRESS,yn.ADDRESS],[wn.ANNOTATION_XML,yn.ANNOTATION_XML],[wn.APPLET,yn.APPLET],[wn.AREA,yn.AREA],[wn.ARTICLE,yn.ARTICLE],[wn.ASIDE,yn.ASIDE],[wn.B,yn.B],[wn.BASE,yn.BASE],[wn.BASEFONT,yn.BASEFONT],[wn.BGSOUND,yn.BGSOUND],[wn.BIG,yn.BIG],[wn.BLOCKQUOTE,yn.BLOCKQUOTE],[wn.BODY,yn.BODY],[wn.BR,yn.BR],[wn.BUTTON,yn.BUTTON],[wn.CAPTION,yn.CAPTION],[wn.CENTER,yn.CENTER],[wn.CODE,yn.CODE],[wn.COL,yn.COL],[wn.COLGROUP,yn.COLGROUP],[wn.DD,yn.DD],[wn.DESC,yn.DESC],[wn.DETAILS,yn.DETAILS],[wn.DIALOG,yn.DIALOG],[wn.DIR,yn.DIR],[wn.DIV,yn.DIV],[wn.DL,yn.DL],[wn.DT,yn.DT],[wn.EM,yn.EM],[wn.EMBED,yn.EMBED],[wn.FIELDSET,yn.FIELDSET],[wn.FIGCAPTION,yn.FIGCAPTION],[wn.FIGURE,yn.FIGURE],[wn.FONT,yn.FONT],[wn.FOOTER,yn.FOOTER],[wn.FOREIGN_OBJECT,yn.FOREIGN_OBJECT],[wn.FORM,yn.FORM],[wn.FRAME,yn.FRAME],[wn.FRAMESET,yn.FRAMESET],[wn.H1,yn.H1],[wn.H2,yn.H2],[wn.H3,yn.H3],[wn.H4,yn.H4],[wn.H5,yn.H5],[wn.H6,yn.H6],[wn.HEAD,yn.HEAD],[wn.HEADER,yn.HEADER],[wn.HGROUP,yn.HGROUP],[wn.HR,yn.HR],[wn.HTML,yn.HTML],[wn.I,yn.I],[wn.IMG,yn.IMG],[wn.IMAGE,yn.IMAGE],[wn.INPUT,yn.INPUT],[wn.IFRAME,yn.IFRAME],[wn.KEYGEN,yn.KEYGEN],[wn.LABEL,yn.LABEL],[wn.LI,yn.LI],[wn.LINK,yn.LINK],[wn.LISTING,yn.LISTING],[wn.MAIN,yn.MAIN],[wn.MALIGNMARK,yn.MALIGNMARK],[wn.MARQUEE,yn.MARQUEE],[wn.MATH,yn.MATH],[wn.MENU,yn.MENU],[wn.META,yn.META],[wn.MGLYPH,yn.MGLYPH],[wn.MI,yn.MI],[wn.MO,yn.MO],[wn.MN,yn.MN],[wn.MS,yn.MS],[wn.MTEXT,yn.MTEXT],[wn.NAV,yn.NAV],[wn.NOBR,yn.NOBR],[wn.NOFRAMES,yn.NOFRAMES],[wn.NOEMBED,yn.NOEMBED],[wn.NOSCRIPT,yn.NOSCRIPT],[wn.OBJECT,yn.OBJECT],[wn.OL,yn.OL],[wn.OPTGROUP,yn.OPTGROUP],[wn.OPTION,yn.OPTION],[wn.P,yn.P],[wn.PARAM,yn.PARAM],[wn.PLAINTEXT,yn.PLAINTEXT],[wn.PRE,yn.PRE],[wn.RB,yn.RB],[wn.RP,yn.RP],[wn.RT,yn.RT],[wn.RTC,yn.RTC],[wn.RUBY,yn.RUBY],[wn.S,yn.S],[wn.SCRIPT,yn.SCRIPT],[wn.SECTION,yn.SECTION],[wn.SELECT,yn.SELECT],[wn.SOURCE,yn.SOURCE],[wn.SMALL,yn.SMALL],[wn.SPAN,yn.SPAN],[wn.STRIKE,yn.STRIKE],[wn.STRONG,yn.STRONG],[wn.STYLE,yn.STYLE],[wn.SUB,yn.SUB],[wn.SUMMARY,yn.SUMMARY],[wn.SUP,yn.SUP],[wn.TABLE,yn.TABLE],[wn.TBODY,yn.TBODY],[wn.TEMPLATE,yn.TEMPLATE],[wn.TEXTAREA,yn.TEXTAREA],[wn.TFOOT,yn.TFOOT],[wn.TD,yn.TD],[wn.TH,yn.TH],[wn.THEAD,yn.THEAD],[wn.TITLE,yn.TITLE],[wn.TR,yn.TR],[wn.TRACK,yn.TRACK],[wn.TT,yn.TT],[wn.U,yn.U],[wn.UL,yn.UL],[wn.SVG,yn.SVG],[wn.VAR,yn.VAR],[wn.WBR,yn.WBR],[wn.XMP,yn.XMP]]);function An(e){var t;return null!==(t=bn.get(e))&&void 0!==t?t:yn.UNKNOWN}const vn=yn;fn.HTML,new Set([vn.ADDRESS,vn.APPLET,vn.AREA,vn.ARTICLE,vn.ASIDE,vn.BASE,vn.BASEFONT,vn.BGSOUND,vn.BLOCKQUOTE,vn.BODY,vn.BR,vn.BUTTON,vn.CAPTION,vn.CENTER,vn.COL,vn.COLGROUP,vn.DD,vn.DETAILS,vn.DIR,vn.DIV,vn.DL,vn.DT,vn.EMBED,vn.FIELDSET,vn.FIGCAPTION,vn.FIGURE,vn.FOOTER,vn.FORM,vn.FRAME,vn.FRAMESET,vn.H1,vn.H2,vn.H3,vn.H4,vn.H5,vn.H6,vn.HEAD,vn.HEADER,vn.HGROUP,vn.HR,vn.HTML,vn.IFRAME,vn.IMG,vn.INPUT,vn.LI,vn.LINK,vn.LISTING,vn.MAIN,vn.MARQUEE,vn.MENU,vn.META,vn.NAV,vn.NOEMBED,vn.NOFRAMES,vn.NOSCRIPT,vn.OBJECT,vn.OL,vn.P,vn.PARAM,vn.PLAINTEXT,vn.PRE,vn.SCRIPT,vn.SECTION,vn.SELECT,vn.SOURCE,vn.STYLE,vn.SUMMARY,vn.TABLE,vn.TBODY,vn.TD,vn.TEMPLATE,vn.TEXTAREA,vn.TFOOT,vn.TH,vn.THEAD,vn.TITLE,vn.TR,vn.TRACK,vn.UL,vn.WBR,vn.XMP]),fn.MATHML,new Set([vn.MI,vn.MO,vn.MN,vn.MS,vn.MTEXT,vn.ANNOTATION_XML]),fn.SVG,new Set([vn.TITLE,vn.FOREIGN_OBJECT,vn.DESC]),fn.XLINK,new Set,fn.XML,new Set,fn.XMLNS,new Set;const _n=new Set([wn.STYLE,wn.SCRIPT,wn.XMP,wn.IFRAME,wn.NOEMBED,wn.NOFRAMES,wn.PLAINTEXT]),En=new Map([[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);var xn;!function(e){e[e.DATA=0]="DATA",e[e.RCDATA=1]="RCDATA",e[e.RAWTEXT=2]="RAWTEXT",e[e.SCRIPT_DATA=3]="SCRIPT_DATA",e[e.PLAINTEXT=4]="PLAINTEXT",e[e.TAG_OPEN=5]="TAG_OPEN",e[e.END_TAG_OPEN=6]="END_TAG_OPEN",e[e.TAG_NAME=7]="TAG_NAME",e[e.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",e[e.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",e[e.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",e[e.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",e[e.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",e[e.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",e[e.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",e[e.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",e[e.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",e[e.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",e[e.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",e[e.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",e[e.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",e[e.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",e[e.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",e[e.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",e[e.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",e[e.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",e[e.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",e[e.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",e[e.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",e[e.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",e[e.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",e[e.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",e[e.BOGUS_COMMENT=40]="BOGUS_COMMENT",e[e.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",e[e.COMMENT_START=42]="COMMENT_START",e[e.COMMENT_START_DASH=43]="COMMENT_START_DASH",e[e.COMMENT=44]="COMMENT",e[e.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",e[e.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",e[e.COMMENT_END_DASH=49]="COMMENT_END_DASH",e[e.COMMENT_END=50]="COMMENT_END",e[e.COMMENT_END_BANG=51]="COMMENT_END_BANG",e[e.DOCTYPE=52]="DOCTYPE",e[e.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",e[e.DOCTYPE_NAME=54]="DOCTYPE_NAME",e[e.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",e[e.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",e[e.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",e[e.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",e[e.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",e[e.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",e[e.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",e[e.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",e[e.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",e[e.CDATA_SECTION=68]="CDATA_SECTION",e[e.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",e[e.CDATA_SECTION_END=70]="CDATA_SECTION_END",e[e.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",e[e.NAMED_CHARACTER_REFERENCE=72]="NAMED_CHARACTER_REFERENCE",e[e.AMBIGUOUS_AMPERSAND=73]="AMBIGUOUS_AMPERSAND",e[e.NUMERIC_CHARACTER_REFERENCE=74]="NUMERIC_CHARACTER_REFERENCE",e[e.HEXADEMICAL_CHARACTER_REFERENCE_START=75]="HEXADEMICAL_CHARACTER_REFERENCE_START",e[e.HEXADEMICAL_CHARACTER_REFERENCE=76]="HEXADEMICAL_CHARACTER_REFERENCE",e[e.DECIMAL_CHARACTER_REFERENCE=77]="DECIMAL_CHARACTER_REFERENCE",e[e.NUMERIC_CHARACTER_REFERENCE_END=78]="NUMERIC_CHARACTER_REFERENCE_END"}(xn||(xn={}));const Sn={DATA:xn.DATA,RCDATA:xn.RCDATA,RAWTEXT:xn.RAWTEXT,SCRIPT_DATA:xn.SCRIPT_DATA,PLAINTEXT:xn.PLAINTEXT,CDATA_SECTION:xn.CDATA_SECTION};function In(e){return e>=Vt.DIGIT_0&&e<=Vt.DIGIT_9}function Tn(e){return e>=Vt.LATIN_CAPITAL_A&&e<=Vt.LATIN_CAPITAL_Z}function Cn(e){return function(e){return e>=Vt.LATIN_SMALL_A&&e<=Vt.LATIN_SMALL_Z}(e)||Tn(e)}function Rn(e){return Cn(e)||In(e)}function kn(e){return e>=Vt.LATIN_CAPITAL_A&&e<=Vt.LATIN_CAPITAL_F}function Nn(e){return e>=Vt.LATIN_SMALL_A&&e<=Vt.LATIN_SMALL_F}function On(e){return e+32}function Bn(e){return e===Vt.SPACE||e===Vt.LINE_FEED||e===Vt.TABULATION||e===Vt.FORM_FEED}function Pn(e){return e===Vt.EQUALS_SIGN||Rn(e)}function Ln(e){return Bn(e)||e===Vt.SOLIDUS||e===Vt.GREATER_THAN_SIGN}class Dn{constructor(e,t){this.options=e,this.handler=t,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=xn.DATA,this.returnState=xn.DATA,this.charRefCode=-1,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new tn(t),this.currentLocation=this.getCurrentLocation(-1)}_err(e){var t,n;null===(n=(t=this.handler).onParseError)||void 0===n||n.call(t,this.preprocessor.getError(e))}getCurrentLocation(e){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-e,startOffset:this.preprocessor.offset-e,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;const e=this._consume();this._ensureHibernation()||this._callState(e)}this.inLoop=!1}}pause(){this.paused=!0}resume(e){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,this.inLoop||(this._runParsingLoop(),this.paused||null==e||e())}write(e,t,n){this.active=!0,this.preprocessor.write(e,t),this._runParsingLoop(),this.paused||null==n||n()}insertHtmlAtCurrentPos(e){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(e),this._runParsingLoop()}_ensureHibernation(){return!!this.preprocessor.endOfChunkHit&&(this._unconsume(this.consumedAfterSnapshot),this.active=!1,!0)}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_unconsume(e){this.consumedAfterSnapshot-=e,this.preprocessor.retreat(e)}_reconsumeInState(e,t){this.state=e,this._callState(t)}_advanceBy(e){this.consumedAfterSnapshot+=e;for(let t=0;t=0;n--)if(e.attrs[n].name===t)return e.attrs[n].value;return null}(n,this.currentAttr.name)?(n.attrs.push(this.currentAttr),n.location&&this.currentLocation&&((null!==(e=(t=n.location).attrs)&&void 0!==e?e:t.attrs=Object.create(null))[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue())):this._err(en.duplicateAttribute)}_leaveAttrValue(){this.currentLocation&&(this.currentLocation.endLine=this.preprocessor.line,this.currentLocation.endCol=this.preprocessor.col,this.currentLocation.endOffset=this.preprocessor.offset)}prepareToken(e){this._emitCurrentCharacterToken(e.location),this.currentToken=null,e.location&&(e.location.endLine=this.preprocessor.line,e.location.endCol=this.preprocessor.col+1,e.location.endOffset=this.preprocessor.offset+1),this.currentLocation=this.getCurrentLocation(-1)}emitCurrentTagToken(){const e=this.currentToken;this.prepareToken(e),e.tagID=An(e.tagName),e.type===nn.START_TAG?(this.lastStartTagName=e.tagName,this.handler.onStartTag(e)):(e.attrs.length>0&&this._err(en.endTagWithAttributes),e.selfClosing&&this._err(en.endTagWithTrailingSolidus),this.handler.onEndTag(e)),this.preprocessor.dropParsedChunk()}emitCurrentComment(e){this.prepareToken(e),this.handler.onComment(e),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(e){this.prepareToken(e),this.handler.onDoctype(e),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(e){if(this.currentCharacterToken){switch(e&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=e.startLine,this.currentCharacterToken.location.endCol=e.startCol,this.currentCharacterToken.location.endOffset=e.startOffset),this.currentCharacterToken.type){case nn.CHARACTER:this.handler.onCharacter(this.currentCharacterToken);break;case nn.NULL_CHARACTER:this.handler.onNullCharacter(this.currentCharacterToken);break;case nn.WHITESPACE_CHARACTER:this.handler.onWhitespaceCharacter(this.currentCharacterToken)}this.currentCharacterToken=null}}_emitEOFToken(){const e=this.getCurrentLocation(0);e&&(e.endLine=e.startLine,e.endCol=e.startCol,e.endOffset=e.startOffset),this._emitCurrentCharacterToken(e),this.handler.onEof({type:nn.EOF,location:e}),this.active=!1}_appendCharToCurrentCharacterToken(e,t){if(this.currentCharacterToken){if(this.currentCharacterToken.type===e)return void(this.currentCharacterToken.chars+=t);this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk()}this._createCharacterToken(e,t)}_emitCodePoint(e){const t=Bn(e)?nn.WHITESPACE_CHARACTER:e===Vt.NULL?nn.NULL_CHARACTER:nn.CHARACTER;this._appendCharToCurrentCharacterToken(t,String.fromCodePoint(e))}_emitChars(e){this._appendCharToCurrentCharacterToken(nn.CHARACTER,e)}_matchNamedCharacterReference(e){let t=null,n=0,r=!1;for(let i=0,s=rn[0];i>=0&&(i=dn(rn,s,i+1,e),!(i<0));e=this._consume()){n+=1,s=rn[i];const o=s&un.VALUE_LENGTH;if(o){const s=(o>>14)-1;if(e!==Vt.SEMICOLON&&this._isCharacterReferenceInAttribute()&&Pn(this.preprocessor.peek(1))?(t=[Vt.AMPERSAND],i+=s):(t=0===s?[rn[i]&~un.VALUE_LENGTH]:1===s?[rn[++i]]:[rn[++i],rn[++i]],n=0,r=e!==Vt.SEMICOLON),0===s){this._consume();break}}}return this._unconsume(n),r&&!this.preprocessor.endOfChunkHit&&this._err(en.missingSemicolonAfterCharacterReference),this._unconsume(1),t}_isCharacterReferenceInAttribute(){return this.returnState===xn.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===xn.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===xn.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(e){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(e):this._emitCodePoint(e)}_callState(e){switch(this.state){case xn.DATA:this._stateData(e);break;case xn.RCDATA:this._stateRcdata(e);break;case xn.RAWTEXT:this._stateRawtext(e);break;case xn.SCRIPT_DATA:this._stateScriptData(e);break;case xn.PLAINTEXT:this._statePlaintext(e);break;case xn.TAG_OPEN:this._stateTagOpen(e);break;case xn.END_TAG_OPEN:this._stateEndTagOpen(e);break;case xn.TAG_NAME:this._stateTagName(e);break;case xn.RCDATA_LESS_THAN_SIGN:this._stateRcdataLessThanSign(e);break;case xn.RCDATA_END_TAG_OPEN:this._stateRcdataEndTagOpen(e);break;case xn.RCDATA_END_TAG_NAME:this._stateRcdataEndTagName(e);break;case xn.RAWTEXT_LESS_THAN_SIGN:this._stateRawtextLessThanSign(e);break;case xn.RAWTEXT_END_TAG_OPEN:this._stateRawtextEndTagOpen(e);break;case xn.RAWTEXT_END_TAG_NAME:this._stateRawtextEndTagName(e);break;case xn.SCRIPT_DATA_LESS_THAN_SIGN:this._stateScriptDataLessThanSign(e);break;case xn.SCRIPT_DATA_END_TAG_OPEN:this._stateScriptDataEndTagOpen(e);break;case xn.SCRIPT_DATA_END_TAG_NAME:this._stateScriptDataEndTagName(e);break;case xn.SCRIPT_DATA_ESCAPE_START:this._stateScriptDataEscapeStart(e);break;case xn.SCRIPT_DATA_ESCAPE_START_DASH:this._stateScriptDataEscapeStartDash(e);break;case xn.SCRIPT_DATA_ESCAPED:this._stateScriptDataEscaped(e);break;case xn.SCRIPT_DATA_ESCAPED_DASH:this._stateScriptDataEscapedDash(e);break;case xn.SCRIPT_DATA_ESCAPED_DASH_DASH:this._stateScriptDataEscapedDashDash(e);break;case xn.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:this._stateScriptDataEscapedLessThanSign(e);break;case xn.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:this._stateScriptDataEscapedEndTagOpen(e);break;case xn.SCRIPT_DATA_ESCAPED_END_TAG_NAME:this._stateScriptDataEscapedEndTagName(e);break;case xn.SCRIPT_DATA_DOUBLE_ESCAPE_START:this._stateScriptDataDoubleEscapeStart(e);break;case xn.SCRIPT_DATA_DOUBLE_ESCAPED:this._stateScriptDataDoubleEscaped(e);break;case xn.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:this._stateScriptDataDoubleEscapedDash(e);break;case xn.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:this._stateScriptDataDoubleEscapedDashDash(e);break;case xn.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:this._stateScriptDataDoubleEscapedLessThanSign(e);break;case xn.SCRIPT_DATA_DOUBLE_ESCAPE_END:this._stateScriptDataDoubleEscapeEnd(e);break;case xn.BEFORE_ATTRIBUTE_NAME:this._stateBeforeAttributeName(e);break;case xn.ATTRIBUTE_NAME:this._stateAttributeName(e);break;case xn.AFTER_ATTRIBUTE_NAME:this._stateAfterAttributeName(e);break;case xn.BEFORE_ATTRIBUTE_VALUE:this._stateBeforeAttributeValue(e);break;case xn.ATTRIBUTE_VALUE_DOUBLE_QUOTED:this._stateAttributeValueDoubleQuoted(e);break;case xn.ATTRIBUTE_VALUE_SINGLE_QUOTED:this._stateAttributeValueSingleQuoted(e);break;case xn.ATTRIBUTE_VALUE_UNQUOTED:this._stateAttributeValueUnquoted(e);break;case xn.AFTER_ATTRIBUTE_VALUE_QUOTED:this._stateAfterAttributeValueQuoted(e);break;case xn.SELF_CLOSING_START_TAG:this._stateSelfClosingStartTag(e);break;case xn.BOGUS_COMMENT:this._stateBogusComment(e);break;case xn.MARKUP_DECLARATION_OPEN:this._stateMarkupDeclarationOpen(e);break;case xn.COMMENT_START:this._stateCommentStart(e);break;case xn.COMMENT_START_DASH:this._stateCommentStartDash(e);break;case xn.COMMENT:this._stateComment(e);break;case xn.COMMENT_LESS_THAN_SIGN:this._stateCommentLessThanSign(e);break;case xn.COMMENT_LESS_THAN_SIGN_BANG:this._stateCommentLessThanSignBang(e);break;case xn.COMMENT_LESS_THAN_SIGN_BANG_DASH:this._stateCommentLessThanSignBangDash(e);break;case xn.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:this._stateCommentLessThanSignBangDashDash(e);break;case xn.COMMENT_END_DASH:this._stateCommentEndDash(e);break;case xn.COMMENT_END:this._stateCommentEnd(e);break;case xn.COMMENT_END_BANG:this._stateCommentEndBang(e);break;case xn.DOCTYPE:this._stateDoctype(e);break;case xn.BEFORE_DOCTYPE_NAME:this._stateBeforeDoctypeName(e);break;case xn.DOCTYPE_NAME:this._stateDoctypeName(e);break;case xn.AFTER_DOCTYPE_NAME:this._stateAfterDoctypeName(e);break;case xn.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._stateAfterDoctypePublicKeyword(e);break;case xn.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:this._stateBeforeDoctypePublicIdentifier(e);break;case xn.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:this._stateDoctypePublicIdentifierDoubleQuoted(e);break;case xn.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:this._stateDoctypePublicIdentifierSingleQuoted(e);break;case xn.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:this._stateAfterDoctypePublicIdentifier(e);break;case xn.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:this._stateBetweenDoctypePublicAndSystemIdentifiers(e);break;case xn.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._stateAfterDoctypeSystemKeyword(e);break;case xn.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:this._stateBeforeDoctypeSystemIdentifier(e);break;case xn.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:this._stateDoctypeSystemIdentifierDoubleQuoted(e);break;case xn.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:this._stateDoctypeSystemIdentifierSingleQuoted(e);break;case xn.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:this._stateAfterDoctypeSystemIdentifier(e);break;case xn.BOGUS_DOCTYPE:this._stateBogusDoctype(e);break;case xn.CDATA_SECTION:this._stateCdataSection(e);break;case xn.CDATA_SECTION_BRACKET:this._stateCdataSectionBracket(e);break;case xn.CDATA_SECTION_END:this._stateCdataSectionEnd(e);break;case xn.CHARACTER_REFERENCE:this._stateCharacterReference(e);break;case xn.NAMED_CHARACTER_REFERENCE:this._stateNamedCharacterReference(e);break;case xn.AMBIGUOUS_AMPERSAND:this._stateAmbiguousAmpersand(e);break;case xn.NUMERIC_CHARACTER_REFERENCE:this._stateNumericCharacterReference(e);break;case xn.HEXADEMICAL_CHARACTER_REFERENCE_START:this._stateHexademicalCharacterReferenceStart(e);break;case xn.HEXADEMICAL_CHARACTER_REFERENCE:this._stateHexademicalCharacterReference(e);break;case xn.DECIMAL_CHARACTER_REFERENCE:this._stateDecimalCharacterReference(e);break;case xn.NUMERIC_CHARACTER_REFERENCE_END:this._stateNumericCharacterReferenceEnd(e);break;default:throw new Error("Unknown state")}}_stateData(e){switch(e){case Vt.LESS_THAN_SIGN:this.state=xn.TAG_OPEN;break;case Vt.AMPERSAND:this.returnState=xn.DATA,this.state=xn.CHARACTER_REFERENCE;break;case Vt.NULL:this._err(en.unexpectedNullCharacter),this._emitCodePoint(e);break;case Vt.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateRcdata(e){switch(e){case Vt.AMPERSAND:this.returnState=xn.RCDATA,this.state=xn.CHARACTER_REFERENCE;break;case Vt.LESS_THAN_SIGN:this.state=xn.RCDATA_LESS_THAN_SIGN;break;case Vt.NULL:this._err(en.unexpectedNullCharacter),this._emitChars(Qt);break;case Vt.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateRawtext(e){switch(e){case Vt.LESS_THAN_SIGN:this.state=xn.RAWTEXT_LESS_THAN_SIGN;break;case Vt.NULL:this._err(en.unexpectedNullCharacter),this._emitChars(Qt);break;case Vt.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateScriptData(e){switch(e){case Vt.LESS_THAN_SIGN:this.state=xn.SCRIPT_DATA_LESS_THAN_SIGN;break;case Vt.NULL:this._err(en.unexpectedNullCharacter),this._emitChars(Qt);break;case Vt.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_statePlaintext(e){switch(e){case Vt.NULL:this._err(en.unexpectedNullCharacter),this._emitChars(Qt);break;case Vt.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateTagOpen(e){if(Cn(e))this._createStartTagToken(),this.state=xn.TAG_NAME,this._stateTagName(e);else switch(e){case Vt.EXCLAMATION_MARK:this.state=xn.MARKUP_DECLARATION_OPEN;break;case Vt.SOLIDUS:this.state=xn.END_TAG_OPEN;break;case Vt.QUESTION_MARK:this._err(en.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=xn.BOGUS_COMMENT,this._stateBogusComment(e);break;case Vt.EOF:this._err(en.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break;default:this._err(en.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=xn.DATA,this._stateData(e)}}_stateEndTagOpen(e){if(Cn(e))this._createEndTagToken(),this.state=xn.TAG_NAME,this._stateTagName(e);else switch(e){case Vt.GREATER_THAN_SIGN:this._err(en.missingEndTagName),this.state=xn.DATA;break;case Vt.EOF:this._err(en.eofBeforeTagName),this._emitChars("");break;case Vt.NULL:this._err(en.unexpectedNullCharacter),this.state=xn.SCRIPT_DATA_ESCAPED,this._emitChars(Qt);break;case Vt.EOF:this._err(en.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=xn.SCRIPT_DATA_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataEscapedLessThanSign(e){e===Vt.SOLIDUS?this.state=xn.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:Cn(e)?(this._emitChars("<"),this.state=xn.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(e)):(this._emitChars("<"),this.state=xn.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataEscapedEndTagOpen(e){Cn(e)?(this.state=xn.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(e)):(this._emitChars("");break;case Vt.NULL:this._err(en.unexpectedNullCharacter),this.state=xn.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(Qt);break;case Vt.EOF:this._err(en.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=xn.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedLessThanSign(e){e===Vt.SOLIDUS?(this.state=xn.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=xn.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(e))}_stateScriptDataDoubleEscapeEnd(e){if(this.preprocessor.startsWith(Kt,!1)&&Ln(this.preprocessor.peek(6))){this._emitCodePoint(e);for(let e=0;e<6;e++)this._emitCodePoint(this._consume());this.state=xn.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=xn.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(e))}_stateBeforeAttributeName(e){switch(e){case Vt.SPACE:case Vt.LINE_FEED:case Vt.TABULATION:case Vt.FORM_FEED:break;case Vt.SOLIDUS:case Vt.GREATER_THAN_SIGN:case Vt.EOF:this.state=xn.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(e);break;case Vt.EQUALS_SIGN:this._err(en.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=xn.ATTRIBUTE_NAME;break;default:this._createAttr(""),this.state=xn.ATTRIBUTE_NAME,this._stateAttributeName(e)}}_stateAttributeName(e){switch(e){case Vt.SPACE:case Vt.LINE_FEED:case Vt.TABULATION:case Vt.FORM_FEED:case Vt.SOLIDUS:case Vt.GREATER_THAN_SIGN:case Vt.EOF:this._leaveAttrName(),this.state=xn.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(e);break;case Vt.EQUALS_SIGN:this._leaveAttrName(),this.state=xn.BEFORE_ATTRIBUTE_VALUE;break;case Vt.QUOTATION_MARK:case Vt.APOSTROPHE:case Vt.LESS_THAN_SIGN:this._err(en.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(e);break;case Vt.NULL:this._err(en.unexpectedNullCharacter),this.currentAttr.name+=Qt;break;default:this.currentAttr.name+=String.fromCodePoint(Tn(e)?On(e):e)}}_stateAfterAttributeName(e){switch(e){case Vt.SPACE:case Vt.LINE_FEED:case Vt.TABULATION:case Vt.FORM_FEED:break;case Vt.SOLIDUS:this.state=xn.SELF_CLOSING_START_TAG;break;case Vt.EQUALS_SIGN:this.state=xn.BEFORE_ATTRIBUTE_VALUE;break;case Vt.GREATER_THAN_SIGN:this.state=xn.DATA,this.emitCurrentTagToken();break;case Vt.EOF:this._err(en.eofInTag),this._emitEOFToken();break;default:this._createAttr(""),this.state=xn.ATTRIBUTE_NAME,this._stateAttributeName(e)}}_stateBeforeAttributeValue(e){switch(e){case Vt.SPACE:case Vt.LINE_FEED:case Vt.TABULATION:case Vt.FORM_FEED:break;case Vt.QUOTATION_MARK:this.state=xn.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break;case Vt.APOSTROPHE:this.state=xn.ATTRIBUTE_VALUE_SINGLE_QUOTED;break;case Vt.GREATER_THAN_SIGN:this._err(en.missingAttributeValue),this.state=xn.DATA,this.emitCurrentTagToken();break;default:this.state=xn.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(e)}}_stateAttributeValueDoubleQuoted(e){switch(e){case Vt.QUOTATION_MARK:this.state=xn.AFTER_ATTRIBUTE_VALUE_QUOTED;break;case Vt.AMPERSAND:this.returnState=xn.ATTRIBUTE_VALUE_DOUBLE_QUOTED,this.state=xn.CHARACTER_REFERENCE;break;case Vt.NULL:this._err(en.unexpectedNullCharacter),this.currentAttr.value+=Qt;break;case Vt.EOF:this._err(en.eofInTag),this._emitEOFToken();break;default:this.currentAttr.value+=String.fromCodePoint(e)}}_stateAttributeValueSingleQuoted(e){switch(e){case Vt.APOSTROPHE:this.state=xn.AFTER_ATTRIBUTE_VALUE_QUOTED;break;case Vt.AMPERSAND:this.returnState=xn.ATTRIBUTE_VALUE_SINGLE_QUOTED,this.state=xn.CHARACTER_REFERENCE;break;case Vt.NULL:this._err(en.unexpectedNullCharacter),this.currentAttr.value+=Qt;break;case Vt.EOF:this._err(en.eofInTag),this._emitEOFToken();break;default:this.currentAttr.value+=String.fromCodePoint(e)}}_stateAttributeValueUnquoted(e){switch(e){case Vt.SPACE:case Vt.LINE_FEED:case Vt.TABULATION:case Vt.FORM_FEED:this._leaveAttrValue(),this.state=xn.BEFORE_ATTRIBUTE_NAME;break;case Vt.AMPERSAND:this.returnState=xn.ATTRIBUTE_VALUE_UNQUOTED,this.state=xn.CHARACTER_REFERENCE;break;case Vt.GREATER_THAN_SIGN:this._leaveAttrValue(),this.state=xn.DATA,this.emitCurrentTagToken();break;case Vt.NULL:this._err(en.unexpectedNullCharacter),this.currentAttr.value+=Qt;break;case Vt.QUOTATION_MARK:case Vt.APOSTROPHE:case Vt.LESS_THAN_SIGN:case Vt.EQUALS_SIGN:case Vt.GRAVE_ACCENT:this._err(en.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(e);break;case Vt.EOF:this._err(en.eofInTag),this._emitEOFToken();break;default:this.currentAttr.value+=String.fromCodePoint(e)}}_stateAfterAttributeValueQuoted(e){switch(e){case Vt.SPACE:case Vt.LINE_FEED:case Vt.TABULATION:case Vt.FORM_FEED:this._leaveAttrValue(),this.state=xn.BEFORE_ATTRIBUTE_NAME;break;case Vt.SOLIDUS:this._leaveAttrValue(),this.state=xn.SELF_CLOSING_START_TAG;break;case Vt.GREATER_THAN_SIGN:this._leaveAttrValue(),this.state=xn.DATA,this.emitCurrentTagToken();break;case Vt.EOF:this._err(en.eofInTag),this._emitEOFToken();break;default:this._err(en.missingWhitespaceBetweenAttributes),this.state=xn.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(e)}}_stateSelfClosingStartTag(e){switch(e){case Vt.GREATER_THAN_SIGN:this.currentToken.selfClosing=!0,this.state=xn.DATA,this.emitCurrentTagToken();break;case Vt.EOF:this._err(en.eofInTag),this._emitEOFToken();break;default:this._err(en.unexpectedSolidusInTag),this.state=xn.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(e)}}_stateBogusComment(e){const t=this.currentToken;switch(e){case Vt.GREATER_THAN_SIGN:this.state=xn.DATA,this.emitCurrentComment(t);break;case Vt.EOF:this.emitCurrentComment(t),this._emitEOFToken();break;case Vt.NULL:this._err(en.unexpectedNullCharacter),t.data+=Qt;break;default:t.data+=String.fromCodePoint(e)}}_stateMarkupDeclarationOpen(e){this._consumeSequenceIfMatch(zt,!0)?(this._createCommentToken(3),this.state=xn.COMMENT_START):this._consumeSequenceIfMatch(Gt,!1)?(this.currentLocation=this.getCurrentLocation(8),this.state=xn.DOCTYPE):this._consumeSequenceIfMatch(qt,!0)?this.inForeignNode?this.state=xn.CDATA_SECTION:(this._err(en.cdataInHtmlContent),this._createCommentToken(8),this.currentToken.data="[CDATA[",this.state=xn.BOGUS_COMMENT):this._ensureHibernation()||(this._err(en.incorrectlyOpenedComment),this._createCommentToken(2),this.state=xn.BOGUS_COMMENT,this._stateBogusComment(e))}_stateCommentStart(e){switch(e){case Vt.HYPHEN_MINUS:this.state=xn.COMMENT_START_DASH;break;case Vt.GREATER_THAN_SIGN:{this._err(en.abruptClosingOfEmptyComment),this.state=xn.DATA;const e=this.currentToken;this.emitCurrentComment(e);break}default:this.state=xn.COMMENT,this._stateComment(e)}}_stateCommentStartDash(e){const t=this.currentToken;switch(e){case Vt.HYPHEN_MINUS:this.state=xn.COMMENT_END;break;case Vt.GREATER_THAN_SIGN:this._err(en.abruptClosingOfEmptyComment),this.state=xn.DATA,this.emitCurrentComment(t);break;case Vt.EOF:this._err(en.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+="-",this.state=xn.COMMENT,this._stateComment(e)}}_stateComment(e){const t=this.currentToken;switch(e){case Vt.HYPHEN_MINUS:this.state=xn.COMMENT_END_DASH;break;case Vt.LESS_THAN_SIGN:t.data+="<",this.state=xn.COMMENT_LESS_THAN_SIGN;break;case Vt.NULL:this._err(en.unexpectedNullCharacter),t.data+=Qt;break;case Vt.EOF:this._err(en.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+=String.fromCodePoint(e)}}_stateCommentLessThanSign(e){const t=this.currentToken;switch(e){case Vt.EXCLAMATION_MARK:t.data+="!",this.state=xn.COMMENT_LESS_THAN_SIGN_BANG;break;case Vt.LESS_THAN_SIGN:t.data+="<";break;default:this.state=xn.COMMENT,this._stateComment(e)}}_stateCommentLessThanSignBang(e){e===Vt.HYPHEN_MINUS?this.state=xn.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=xn.COMMENT,this._stateComment(e))}_stateCommentLessThanSignBangDash(e){e===Vt.HYPHEN_MINUS?this.state=xn.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=xn.COMMENT_END_DASH,this._stateCommentEndDash(e))}_stateCommentLessThanSignBangDashDash(e){e!==Vt.GREATER_THAN_SIGN&&e!==Vt.EOF&&this._err(en.nestedComment),this.state=xn.COMMENT_END,this._stateCommentEnd(e)}_stateCommentEndDash(e){const t=this.currentToken;switch(e){case Vt.HYPHEN_MINUS:this.state=xn.COMMENT_END;break;case Vt.EOF:this._err(en.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+="-",this.state=xn.COMMENT,this._stateComment(e)}}_stateCommentEnd(e){const t=this.currentToken;switch(e){case Vt.GREATER_THAN_SIGN:this.state=xn.DATA,this.emitCurrentComment(t);break;case Vt.EXCLAMATION_MARK:this.state=xn.COMMENT_END_BANG;break;case Vt.HYPHEN_MINUS:t.data+="-";break;case Vt.EOF:this._err(en.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+="--",this.state=xn.COMMENT,this._stateComment(e)}}_stateCommentEndBang(e){const t=this.currentToken;switch(e){case Vt.HYPHEN_MINUS:t.data+="--!",this.state=xn.COMMENT_END_DASH;break;case Vt.GREATER_THAN_SIGN:this._err(en.incorrectlyClosedComment),this.state=xn.DATA,this.emitCurrentComment(t);break;case Vt.EOF:this._err(en.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+="--!",this.state=xn.COMMENT,this._stateComment(e)}}_stateDoctype(e){switch(e){case Vt.SPACE:case Vt.LINE_FEED:case Vt.TABULATION:case Vt.FORM_FEED:this.state=xn.BEFORE_DOCTYPE_NAME;break;case Vt.GREATER_THAN_SIGN:this.state=xn.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(e);break;case Vt.EOF:{this._err(en.eofInDoctype),this._createDoctypeToken(null);const e=this.currentToken;e.forceQuirks=!0,this.emitCurrentDoctype(e),this._emitEOFToken();break}default:this._err(en.missingWhitespaceBeforeDoctypeName),this.state=xn.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(e)}}_stateBeforeDoctypeName(e){if(Tn(e))this._createDoctypeToken(String.fromCharCode(On(e))),this.state=xn.DOCTYPE_NAME;else switch(e){case Vt.SPACE:case Vt.LINE_FEED:case Vt.TABULATION:case Vt.FORM_FEED:break;case Vt.NULL:this._err(en.unexpectedNullCharacter),this._createDoctypeToken(Qt),this.state=xn.DOCTYPE_NAME;break;case Vt.GREATER_THAN_SIGN:{this._err(en.missingDoctypeName),this._createDoctypeToken(null);const e=this.currentToken;e.forceQuirks=!0,this.emitCurrentDoctype(e),this.state=xn.DATA;break}case Vt.EOF:{this._err(en.eofInDoctype),this._createDoctypeToken(null);const e=this.currentToken;e.forceQuirks=!0,this.emitCurrentDoctype(e),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(e)),this.state=xn.DOCTYPE_NAME}}_stateDoctypeName(e){const t=this.currentToken;switch(e){case Vt.SPACE:case Vt.LINE_FEED:case Vt.TABULATION:case Vt.FORM_FEED:this.state=xn.AFTER_DOCTYPE_NAME;break;case Vt.GREATER_THAN_SIGN:this.state=xn.DATA,this.emitCurrentDoctype(t);break;case Vt.NULL:this._err(en.unexpectedNullCharacter),t.name+=Qt;break;case Vt.EOF:this._err(en.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.name+=String.fromCodePoint(Tn(e)?On(e):e)}}_stateAfterDoctypeName(e){const t=this.currentToken;switch(e){case Vt.SPACE:case Vt.LINE_FEED:case Vt.TABULATION:case Vt.FORM_FEED:break;case Vt.GREATER_THAN_SIGN:this.state=xn.DATA,this.emitCurrentDoctype(t);break;case Vt.EOF:this._err(en.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._consumeSequenceIfMatch(Xt,!1)?this.state=xn.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(Yt,!1)?this.state=xn.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(en.invalidCharacterSequenceAfterDoctypeName),t.forceQuirks=!0,this.state=xn.BOGUS_DOCTYPE,this._stateBogusDoctype(e))}}_stateAfterDoctypePublicKeyword(e){const t=this.currentToken;switch(e){case Vt.SPACE:case Vt.LINE_FEED:case Vt.TABULATION:case Vt.FORM_FEED:this.state=xn.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break;case Vt.QUOTATION_MARK:this._err(en.missingWhitespaceAfterDoctypePublicKeyword),t.publicId="",this.state=xn.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break;case Vt.APOSTROPHE:this._err(en.missingWhitespaceAfterDoctypePublicKeyword),t.publicId="",this.state=xn.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break;case Vt.GREATER_THAN_SIGN:this._err(en.missingDoctypePublicIdentifier),t.forceQuirks=!0,this.state=xn.DATA,this.emitCurrentDoctype(t);break;case Vt.EOF:this._err(en.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(en.missingQuoteBeforeDoctypePublicIdentifier),t.forceQuirks=!0,this.state=xn.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBeforeDoctypePublicIdentifier(e){const t=this.currentToken;switch(e){case Vt.SPACE:case Vt.LINE_FEED:case Vt.TABULATION:case Vt.FORM_FEED:break;case Vt.QUOTATION_MARK:t.publicId="",this.state=xn.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break;case Vt.APOSTROPHE:t.publicId="",this.state=xn.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break;case Vt.GREATER_THAN_SIGN:this._err(en.missingDoctypePublicIdentifier),t.forceQuirks=!0,this.state=xn.DATA,this.emitCurrentDoctype(t);break;case Vt.EOF:this._err(en.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(en.missingQuoteBeforeDoctypePublicIdentifier),t.forceQuirks=!0,this.state=xn.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateDoctypePublicIdentifierDoubleQuoted(e){const t=this.currentToken;switch(e){case Vt.QUOTATION_MARK:this.state=xn.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break;case Vt.NULL:this._err(en.unexpectedNullCharacter),t.publicId+=Qt;break;case Vt.GREATER_THAN_SIGN:this._err(en.abruptDoctypePublicIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=xn.DATA;break;case Vt.EOF:this._err(en.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.publicId+=String.fromCodePoint(e)}}_stateDoctypePublicIdentifierSingleQuoted(e){const t=this.currentToken;switch(e){case Vt.APOSTROPHE:this.state=xn.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break;case Vt.NULL:this._err(en.unexpectedNullCharacter),t.publicId+=Qt;break;case Vt.GREATER_THAN_SIGN:this._err(en.abruptDoctypePublicIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=xn.DATA;break;case Vt.EOF:this._err(en.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.publicId+=String.fromCodePoint(e)}}_stateAfterDoctypePublicIdentifier(e){const t=this.currentToken;switch(e){case Vt.SPACE:case Vt.LINE_FEED:case Vt.TABULATION:case Vt.FORM_FEED:this.state=xn.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break;case Vt.GREATER_THAN_SIGN:this.state=xn.DATA,this.emitCurrentDoctype(t);break;case Vt.QUOTATION_MARK:this._err(en.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),t.systemId="",this.state=xn.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case Vt.APOSTROPHE:this._err(en.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),t.systemId="",this.state=xn.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case Vt.EOF:this._err(en.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(en.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=xn.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBetweenDoctypePublicAndSystemIdentifiers(e){const t=this.currentToken;switch(e){case Vt.SPACE:case Vt.LINE_FEED:case Vt.TABULATION:case Vt.FORM_FEED:break;case Vt.GREATER_THAN_SIGN:this.emitCurrentDoctype(t),this.state=xn.DATA;break;case Vt.QUOTATION_MARK:t.systemId="",this.state=xn.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case Vt.APOSTROPHE:t.systemId="",this.state=xn.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case Vt.EOF:this._err(en.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(en.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=xn.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateAfterDoctypeSystemKeyword(e){const t=this.currentToken;switch(e){case Vt.SPACE:case Vt.LINE_FEED:case Vt.TABULATION:case Vt.FORM_FEED:this.state=xn.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break;case Vt.QUOTATION_MARK:this._err(en.missingWhitespaceAfterDoctypeSystemKeyword),t.systemId="",this.state=xn.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case Vt.APOSTROPHE:this._err(en.missingWhitespaceAfterDoctypeSystemKeyword),t.systemId="",this.state=xn.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case Vt.GREATER_THAN_SIGN:this._err(en.missingDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=xn.DATA,this.emitCurrentDoctype(t);break;case Vt.EOF:this._err(en.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(en.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=xn.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBeforeDoctypeSystemIdentifier(e){const t=this.currentToken;switch(e){case Vt.SPACE:case Vt.LINE_FEED:case Vt.TABULATION:case Vt.FORM_FEED:break;case Vt.QUOTATION_MARK:t.systemId="",this.state=xn.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case Vt.APOSTROPHE:t.systemId="",this.state=xn.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case Vt.GREATER_THAN_SIGN:this._err(en.missingDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=xn.DATA,this.emitCurrentDoctype(t);break;case Vt.EOF:this._err(en.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(en.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=xn.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateDoctypeSystemIdentifierDoubleQuoted(e){const t=this.currentToken;switch(e){case Vt.QUOTATION_MARK:this.state=xn.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break;case Vt.NULL:this._err(en.unexpectedNullCharacter),t.systemId+=Qt;break;case Vt.GREATER_THAN_SIGN:this._err(en.abruptDoctypeSystemIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=xn.DATA;break;case Vt.EOF:this._err(en.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.systemId+=String.fromCodePoint(e)}}_stateDoctypeSystemIdentifierSingleQuoted(e){const t=this.currentToken;switch(e){case Vt.APOSTROPHE:this.state=xn.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break;case Vt.NULL:this._err(en.unexpectedNullCharacter),t.systemId+=Qt;break;case Vt.GREATER_THAN_SIGN:this._err(en.abruptDoctypeSystemIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=xn.DATA;break;case Vt.EOF:this._err(en.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.systemId+=String.fromCodePoint(e)}}_stateAfterDoctypeSystemIdentifier(e){const t=this.currentToken;switch(e){case Vt.SPACE:case Vt.LINE_FEED:case Vt.TABULATION:case Vt.FORM_FEED:break;case Vt.GREATER_THAN_SIGN:this.emitCurrentDoctype(t),this.state=xn.DATA;break;case Vt.EOF:this._err(en.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(en.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=xn.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBogusDoctype(e){const t=this.currentToken;switch(e){case Vt.GREATER_THAN_SIGN:this.emitCurrentDoctype(t),this.state=xn.DATA;break;case Vt.NULL:this._err(en.unexpectedNullCharacter);break;case Vt.EOF:this.emitCurrentDoctype(t),this._emitEOFToken()}}_stateCdataSection(e){switch(e){case Vt.RIGHT_SQUARE_BRACKET:this.state=xn.CDATA_SECTION_BRACKET;break;case Vt.EOF:this._err(en.eofInCdata),this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateCdataSectionBracket(e){e===Vt.RIGHT_SQUARE_BRACKET?this.state=xn.CDATA_SECTION_END:(this._emitChars("]"),this.state=xn.CDATA_SECTION,this._stateCdataSection(e))}_stateCdataSectionEnd(e){switch(e){case Vt.GREATER_THAN_SIGN:this.state=xn.DATA;break;case Vt.RIGHT_SQUARE_BRACKET:this._emitChars("]");break;default:this._emitChars("]]"),this.state=xn.CDATA_SECTION,this._stateCdataSection(e)}}_stateCharacterReference(e){e===Vt.NUMBER_SIGN?this.state=xn.NUMERIC_CHARACTER_REFERENCE:Rn(e)?(this.state=xn.NAMED_CHARACTER_REFERENCE,this._stateNamedCharacterReference(e)):(this._flushCodePointConsumedAsCharacterReference(Vt.AMPERSAND),this._reconsumeInState(this.returnState,e))}_stateNamedCharacterReference(e){const t=this._matchNamedCharacterReference(e);if(this._ensureHibernation());else if(t){for(let e=0;e1114111)this._err(en.characterReferenceOutsideUnicodeRange),this.charRefCode=Vt.REPLACEMENT_CHARACTER;else if(Jt(this.charRefCode))this._err(en.surrogateCharacterReference),this.charRefCode=Vt.REPLACEMENT_CHARACTER;else if($t(this.charRefCode))this._err(en.noncharacterCharacterReference);else if(Zt(this.charRefCode)||this.charRefCode===Vt.CARRIAGE_RETURN){this._err(en.controlCharacterReference);const e=En.get(this.charRefCode);void 0!==e&&(this.charRefCode=e)}this._flushCodePointConsumedAsCharacterReference(this.charRefCode),this._reconsumeInState(this.returnState,e)}}const Un=new Set([yn.DD,yn.DT,yn.LI,yn.OPTGROUP,yn.OPTION,yn.P,yn.RB,yn.RP,yn.RT,yn.RTC]);var Fn;new Set([...Un,yn.CAPTION,yn.COLGROUP,yn.TBODY,yn.TD,yn.TFOOT,yn.TH,yn.THEAD,yn.TR]),new Map([[yn.APPLET,fn.HTML],[yn.CAPTION,fn.HTML],[yn.HTML,fn.HTML],[yn.MARQUEE,fn.HTML],[yn.OBJECT,fn.HTML],[yn.TABLE,fn.HTML],[yn.TD,fn.HTML],[yn.TEMPLATE,fn.HTML],[yn.TH,fn.HTML],[yn.ANNOTATION_XML,fn.MATHML],[yn.MI,fn.MATHML],[yn.MN,fn.MATHML],[yn.MO,fn.MATHML],[yn.MS,fn.MATHML],[yn.MTEXT,fn.MATHML],[yn.DESC,fn.SVG],[yn.FOREIGN_OBJECT,fn.SVG],[yn.TITLE,fn.SVG]]),yn.H1,yn.H2,yn.H3,yn.H4,yn.H5,yn.H6,yn.TR,yn.TEMPLATE,yn.HTML,yn.TBODY,yn.TFOOT,yn.THEAD,yn.TEMPLATE,yn.HTML,yn.TABLE,yn.TEMPLATE,yn.HTML,yn.TD,yn.TH,function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"}(Fn=Fn||(Fn={})),Fn.Marker;const Mn=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],jn=(new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"]),Hn="text/html",Wn="application/xhtml+xml",Qn=new Map(["attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(e=>[e.toLowerCase(),e])),Vn=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:fn.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:fn.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:fn.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:fn.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:fn.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:fn.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:fn.XLINK}],["xml:base",{prefix:"xml",name:"base",namespace:fn.XML}],["xml:lang",{prefix:"xml",name:"lang",namespace:fn.XML}],["xml:space",{prefix:"xml",name:"space",namespace:fn.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:fn.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:fn.XMLNS}]]),zn=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(e=>[e.toLowerCase(),e])),qn=new Set([yn.B,yn.BIG,yn.BLOCKQUOTE,yn.BODY,yn.BR,yn.CENTER,yn.CODE,yn.DD,yn.DIV,yn.DL,yn.DT,yn.EM,yn.EMBED,yn.H1,yn.H2,yn.H3,yn.H4,yn.H5,yn.H6,yn.HEAD,yn.HR,yn.I,yn.IMG,yn.LI,yn.LISTING,yn.MENU,yn.META,yn.NOBR,yn.OL,yn.P,yn.PRE,yn.RUBY,yn.S,yn.SMALL,yn.SPAN,yn.STRONG,yn.STRIKE,yn.SUB,yn.SUP,yn.TABLE,yn.TT,yn.U,yn.UL,yn.VAR]);function Gn(e){const t=zn.get(e.tagName);null!=t&&(e.tagName=t,e.tagID=An(e.tagName))}function Kn(e,t,n,r){return(!r||r===fn.HTML)&&function(e,t,n){if(t===fn.MATHML&&e===yn.ANNOTATION_XML)for(let e=0;e'"]/g,Yn);const Zn=Jn(/["&\u00A0]/g,new Map([[34,"""],[38,"&"],[160," "]])),$n=Jn(/[&<>\u00A0]/g,new Map([[38,"&"],[60,"<"],[62,">"],[160," "]]));new Set([wn.AREA,wn.BASE,wn.BASEFONT,wn.BGSOUND,wn.BR,wn.COL,wn.EMBED,wn.FRAME,wn.HR,wn.IMG,wn.INPUT,wn.KEYGEN,wn.LINK,wn.META,wn.PARAM,wn.SOURCE,wn.TRACK,wn.WBR]);const er=yn;class tr{constructor(e,t){this.handler=t,this.namespaceStack=[],this.inForeignContent=!1,this.skipNextNewLine=!1,this.tokenizer=new Dn(e,this),this._enterNamespace(fn.HTML)}onNullCharacter(e){this.skipNextNewLine=!1,this.inForeignContent?this.handler.onCharacter({type:nn.CHARACTER,chars:"�",location:e.location}):this.handler.onNullCharacter(e)}onWhitespaceCharacter(e){if(this.skipNextNewLine&&10===e.chars.charCodeAt(0)){if(this.skipNextNewLine=!1,1===e.chars.length)return;e.chars=e.chars.substr(1)}this.handler.onWhitespaceCharacter(e)}onCharacter(e){this.skipNextNewLine=!1,this.handler.onCharacter(e)}onComment(e){this.skipNextNewLine=!1,this.handler.onComment(e)}onDoctype(e){this.skipNextNewLine=!1,this.handler.onDoctype(e)}onEof(e){this.skipNextNewLine=!1,this.handler.onEof(e)}_enterNamespace(e){this.namespaceStack.unshift(e),this.inForeignContent=e!==fn.HTML,this.tokenizer.inForeignNode=this.inForeignContent}_leaveCurrentNamespace(){this.namespaceStack.shift(),this.inForeignContent=this.namespaceStack[0]!==fn.HTML,this.tokenizer.inForeignNode=this.inForeignContent}_ensureTokenizerMode(e){switch(e){case er.TEXTAREA:case er.TITLE:this.tokenizer.state=Sn.RCDATA;break;case er.PLAINTEXT:this.tokenizer.state=Sn.PLAINTEXT;break;case er.SCRIPT:this.tokenizer.state=Sn.SCRIPT_DATA;break;case er.STYLE:case er.IFRAME:case er.XMP:case er.NOEMBED:case er.NOFRAMES:case er.NOSCRIPT:this.tokenizer.state=Sn.RAWTEXT}}onStartTag(e){let t=e.tagID;switch(t){case er.SVG:this._enterNamespace(fn.SVG);break;case er.MATH:this._enterNamespace(fn.MATHML)}if(this.inForeignContent)if(function(e){const t=e.tagID;return t===yn.FONT&&e.attrs.some(({name:e})=>e===gn.COLOR||e===gn.SIZE||e===gn.FACE)||qn.has(t)}(e))this._leaveCurrentNamespace();else{const n=this.namespaceStack[0];n===fn.MATHML?function(e){for(let t=0;t=48&&e[i]<=57||e[i]>=65&&e[i]<=70||e[i]>=97&&e[i]<=102;)i++;if(0===i)return e;if(13!=e[i]||10!=e[i+1])return e;i+=2;const s=parseInt(r.decode(e.subarray(t,i)),16);if(0==s)break;e.set(e.subarray(i,i+s),n),i+=s,n+=s,13==e[i]&&10==e[i+1]&&(i+=2),t=i}return e.subarray(0,n)}(e))}catch(e){console.log("Chunk-Encoding Ignored: "+e)}try{if("br"===t)0===(e=ir()(e)).length&&(e=r);else if("gzip"===t||"gzip"===n){const t=new(de().Inflate);t.push(e,!0),t.result&&!t.err&&(e=t.result)}}catch(e){console.log("Content-Encoding Ignored: "+e)}return e}const or=["script","style","header","footer","banner-div","noscript"];class ar{batchSize;promises=[];batch=[];count=0;dupeSet=new Set;db;constructor(e=1e3){this.batchSize=e}addPage(e){this.promises.push(this.db.addPage(e))}isBatchFull(){return this.batch.length>=this.batchSize}addResource(e){if(this.isBatchFull()&&this.flush(),Number.isNaN(e.ts))return void console.warn("Skipping resource with missing/invalid ts: "+e.url);const t=e.url+" "+e.ts;if("warc/revisit"===e.mime){if(this.dupeSet.has(t))return void console.warn("Skipping duplicate revisit, prevent overriding non-revisit")}else this.dupeSet.add(t);this.batch.push(e)}flush(){this.batch.length>0&&this.promises.push(this.db.addResources(this.batch)),console.log(`Read ${this.count+=this.batch.length} records`),this.batch=[]}async finishIndexing(){this.flush(),this._finishLoad();try{await Promise.all(this.promises)}catch(e){console.warn(e)}this.promises=[]}_finishLoad(){}}class cr extends ar{reader;abort;loadId;sourceExtra;anyPages=!1;detectPages=!1;_lastRecord=null;metadata={};pages=[];lists=[];pageMap={};constructor(e,t=null,n=null,r=null){super(),this.reader=e,this.abort=t,this.loadId=n,this._lastRecord=null,this.metadata={},this.pageMap={},this.pages=[],this.lists=[],this.sourceExtra=r}parseWarcInfo(e){if(!e.payload)return;const t=new TextDecoder("utf-8").decode(e.payload);for(const n of t.split("\n"))if(n.startsWith("json-metadata:"))try{const e=JSON.parse(n.slice(14));if("collection"===e.type&&(this.metadata.desc=e.desc,this.metadata.title=e.title),e.pages?.length){this.pages=this.pages.concat(e.pages);for(const t of e.pages)t.ts=H(t.timestamp).getTime(),this.pageMap[t.ts+"/"+t.url]={page:t};this.anyPages=!0}e.lists?.length&&(this.lists=this.lists.concat(e.lists))}catch(e){console.log("Page Add Error",e.toString())}}index(e,t){if("warcinfo"!==e.warcType){if(this._lastRecord)return this._lastRecord.warcTargetURI!=e.warcTargetURI?(this.indexReqResponse(this._lastRecord,null,t),void(this._lastRecord=e)):void("request"===e.warcType&&"response"===this._lastRecord.warcType?(this.indexReqResponse(this._lastRecord,e,t),this._lastRecord=null):"response"===e.warcType&&"request"===this._lastRecord.warcType?(this.indexReqResponse(e,this._lastRecord,t),this._lastRecord=null):(this.indexReqResponse(this._lastRecord,null,t),this._lastRecord=e));this._lastRecord=e}else this.parseWarcInfo(e)}indexDone(e){this._lastRecord&&(this.indexReqResponse(this._lastRecord,null,e),this._lastRecord=null)}shouldIndexMetadataRecord(e){const t=e.warcTargetURI;return!!t?.startsWith("metadata://")}parseRevisitRecord(e,t){const n=e.warcTargetURI.split("#")[0],r=e.warcDate,i=r?new Date(r).getTime():Date.now();let s,o=null;if(e.httpHeaders){const r=this.parseResponseHttpHeaders(e,n,t);r&&(o=Object.fromEntries(r.headers.entries()),s=r.status)}const a=e.warcRefersToTargetURI,c=new Date(e.warcRefersToDate).getTime(),l=e.warcHeader("WARC-Refers-To-Container");let h="";return l?.endsWith(".wacz")&&(h=l,l.startsWith("file://")&&(h=h.slice(7))),a===n&&c===i?null:{url:n,ts:i,origURL:a,origTS:c,origWACZ:h,digest:e.warcPayloadDigest||null,pageId:null,respHeaders:o,status:s}}parseResponseHttpHeaders(e,t,n){let r=200,i=null,s="";const o=n?.httpHeaders?.method;if(e.httpHeaders){if(r=Number(e.httpHeaders.statusCode)||200,"OPTIONS"===o||"HEAD"===o)return null;if(i=K(e.httpHeaders.headers),s=(i.get("content-type")||"").split(";")[0],206===r&&!this.isFullRangeRequest(i))return null}else i=new Headers,i.set("content-type",e.warcContentType),i.set("content-length",String(e.warcContentLength)),s=e.warcContentType||"";return{status:r,method:o,headers:i,mime:s}}indexReqResponse(e,t,n){const r=this.parseRecords(e,t);r&&this.addResource(r)}parseRecords(e,t){switch(e.warcType){case"revisit":return this.parseRevisitRecord(e,t);case"resource":t=null;break;case"response":break;case"metadata":if(!this.shouldIndexMetadataRecord(e))return null;break;default:return null}let n=e.warcTargetURI.split("#")[0];const r=e.warcDate,i=this.parseResponseHttpHeaders(e,n,t);if(!i)return null;const{status:s,method:o,headers:a,mime:c}=i;let l,h,u=null,p=null;if(t?.httpHeaders?.headers){let e=null;try{e=new Headers(t.httpHeaders.headers);const n=e.get("cookie");n&&a.set("x-wabac-preset-cookie",n),u=t.httpHeaders.headers.get("Referer")||null}catch(t){e=new Headers,console.warn(t)}if(h=Object.fromEntries(e.entries()),"GET"!==o){const r={headers:e,method:o||"GET",url:n,postData:t.payload};Me(r)&&(l=n,n=r.url,p=t.payload)}}if(void 0===this.detectPages&&(this.detectPages=!this.anyPages),this.detectPages&&function(e,t,n){if(200!=t)return!1;if(!e.startsWith("http:")&&!e.startsWith("https:")&&!e.startsWith("blob:"))return!1;if(e.endsWith("/robots.txt"))return!1;const r=e.split("?",2);return!(2===r.length&&r[1].length>r[0].length)&&(!r[0].substring(r[0].lastIndexOf("/")+1).startsWith(".")&&(!n||"text/html"===n))}(n,s,c)){const e=n;this.addPage({url:n,date:r,title:e})}const d=r?new Date(r).getTime():Date.now(),f=Object.fromEntries(a.entries()),g=e.warcPayloadDigest||null,m=e.payload,w={url:n,ts:d,status:s,mime:c,respHeaders:f,reqHeaders:h,digest:g,payload:m,reader:m?null:e.reader,referrer:u};this.pageMap[d+"/"+n]&&m&&c.startsWith("text/")&&(this.pageMap[d+"/"+n].textPromise=async function(e,t,n,r){const i=new nr,s=[];let o=null;i.on("text",e=>{if(o)return;const t=e.text.trim();t&&s.push(t)}),i.on("startTag",e=>{!e.selfClosing&&or.includes(e.tagName)&&(o=e.tagName)}),i.on("endTag",e=>{e.tagName===o&&(o=null)}),(n||r)&&(t=await sr(t,n,r)),i.end((new TextDecoder).decode(t));const a=new Promise(e=>{i.on("end",()=>{e(s.join(" "))})});return await a}(0,m,a.get("content-encoding"),a.get("transfer-encoding")));const y=e.warcHeader("WARC-JSON-Metadata");if(y)try{w.extraOpts=JSON.parse(y)}catch(e){}const b=e.warcHeader("WARC-Identified-Payload-Type");b&&(w.extraOpts||(w.extraOpts={}),w.extraOpts.detectedCT=b);const A=e.warcHeader("WARC-Page-ID");return A&&(w.pageId=A),this.sourceExtra&&(w.source=this.sourceExtra),"GET"!==o&&l&&(w.requestUrl=l,w.method=o,w.requestBody=p||new Uint8Array([])),w}isFullRangeRequest(e){const t=e.get("content-range"),n=parseInt(e.get("content-length")||"0");return t&&t===`bytes 0-${n-1}/${n}`}filterRecord(e){return null}async load(e,t,n=0){if(t&&!n)throw new Error("totalSize is required");this.db=e;const r=new mt(this.reader);let i=0,s=0,o=0;try{for await(const a of r){if(o++,!a.warcType){console.log("skip empty record");continue}const c=self.interruptLoads;if(t&&this.loadId&&c[this.loadId])throw t(Math.round(r.offset/n*95),"Loading Canceled",r.offset,n),c[this.loadId](),this.abort&&this.abort.abort(),new ie;if(s=(new Date).getTime(),s-i>500){const e=`Processed ${o} records`;t(Math.round(r.offset/n*95),null,r.offset,n,null,e),i=s}const l=this.filterRecord(a);if("done"===l){this.abort&&this.abort.abort();break}if("skip"!==l&&("skipContent"===l?await a.skipFully():await a.readFully(),o++,this.index(a,r),this.promises.length>0)){try{await Promise.all(this.promises)}catch(e){console.warn(e.toString())}this.promises=[]}}}catch(e){if(e instanceof ie)throw e;t(Math.round(r.offset/n*95),`Sorry there was an error downloading. Please try again (${e})`,r.offset,n),console.warn(e)}return this.indexDone(r),t(95,null,r.offset,n),await this.finishIndexing(),t(100,null,n,n),this.metadata}async _finishLoad(){if(this.pages.length){for(const{page:e,textPromise:t}of Object.values(this.pageMap))if(t)try{e.text=await t}catch(e){console.warn("Error adding text: "+e.toString())}this.promises.push(this.db.addPages(this.pages))}this.lists.length&&this.promises.push(this.db.addCuratedPageLists(this.lists,"bookmarks","public"))}}class lr extends cr{constructor(e){super(e),this.detectPages=!1}addPage(){}async load(){const e=await new mt(this.reader).parse();if(!e)return null;const t=this.parseRecords(e,null);return t&&"revisit"!==e.warcType||await e.readFully(),t}}const hr="https://w3s.link/";function ur(e){const{hostname:t,protocol:n,pathname:r}=new URL(e),i=n.slice(0,-1);if(!t){const[e,...t]=r.slice(2).split("/");return{type:i,cid:e,path:"/"+t.join("/")}}return{type:i,cid:t,path:r}}async function pr(e){return yr(e)?e:br(e)?gr(e):e}async function dr(e){return new Response(e).blob()}async function*fr(e){const t=await e.getReader();try{for(;;){const{done:e,value:n}=await t.read();if(e)return;yield n}}finally{t.releaseLock()}}function gr(e){let t=e;t.next||(t=e[Symbol.asyncIterator]());const n=new TextEncoder;return new ReadableStream({async pull(e){const{value:r,done:i}=await t.next();if(i)await e.close();else{let t=r;"string"==typeof t&&(t=n.encode(t)),await e.enqueue(t)}}})}async function mr(e){if(!e.ok){const t=await e.text(),n=e.status;throw new Error(`HTTP Error ${n}: ${t}`)}}async function wr({url:e,file:t,fileName:n="",parameterName:r="file",fetch:i=globalThis.fetch,signal:s}){const o=new FormData,a=new Headers;Ar(e,a);const c=await async function(e){if(yr(e))return await dr(e);if(br(e)){const t=gr(e);return await dr(t)}return e instanceof Blob?e:new Blob([e])}(t);n?o.append(r,c,n):o.append(r,c);const l=await i(e,{method:"POST",body:o,headers:a,signal:s});return await mr(l),l}function yr(e){return"function"==typeof e.getReader}function br(e){return e[Symbol.asyncIterator]}function Ar(e,t){if(e.password)if(e.username){const n=`Basic ${btoa(`${unescape(e.username)}:${unescape(e.password)}`)}`;t.append("Authorization",unescape(n)),e.username="",e.password=""}else{const n=`Bearer ${e.password}`;t.append("Authorization",unescape(n)),e.password=""}}async function vr({url:e,fetch:t=globalThis.fetch,signal:n}){const r=await t(e,{method:"HEAD",signal:n});await mr(r);const i=r.headers.get("x-ipfs-datasize")||r.headers.get("Content-Length");return parseInt(i,10)}async function*_r({url:e,start:t,end:n,format:r,signal:i,fetch:s=globalThis.fetch}){const o=new Headers;Number.isInteger(t)&&(Number.isInteger(n)?o.set("Range",`bytes=${t}-${n}`):o.set("Range",`bytes=${t}-`));const a=new URL(e);r&&(o.set("Accept",`application/vnd.ipld.${r}`),o.set("cache-control","no-cache"));const c=await s(a.href,{headers:o,signal:i});await mr(c),yield*fr(c.body)}async function*Er({url:e,start:t,end:n,format:r,signal:i,gatewayURL:s=xr()}){const o=function(e,t=xr()){const{cid:n,path:r,type:i}=ur(e);return new URL(`/${i}/${n}${r}`,t)}(e,s);yield*_r({url:o,start:t,end:n,format:r,signal:i})}function xr(){if(!globalThis.location)return hr;const{pathname:e,hostname:t,protocol:n}=globalThis.location;if(e.startsWith("/ipfs/")||e.startsWith("/ipns/"))return`${n}//${t}/`;const[r,...i]=t.split(".");return 59===r.length&&i.length>=2?`${n}//${i.join(".")}/`:hr}let Sr=!1;const Ir=[5001,45001,45002,45003,45004,45005],Tr="https://api.web3.storage/",Cr="https://api.estuary.tech/",Rr="http://localhost:5001/",kr="agregore",Nr="daemon",Or="web3.storage",Br="estuary",Pr="readonly",Lr=[kr,Nr,Or,Br,Pr];class Dr{get type(){return"invalid"}async*get(e,{start:t,end:n,signal:r=null,format:i=null}={}){throw new Error("Not Implemented")}async getSize(e,t=null){throw new Error("Not Implemented")}async uploadCAR(e,t=null){throw new Error("Not Implemented")}async uploadFile(e,t,n=null){throw new Error("Not Implemented")}async clear(e,t=null){throw new Error("Not Implemented")}}async function Ur({daemonURL:e,web3StorageToken:t,web3StorageURL:n=Tr,estuaryToken:r,estuaryURL:i=Cr,publicGatewayURL:s=xr(),readonly:o=!0,timeout:a=1e3,fetch:c=globalThis.fetch}={}){const l=[],h=[];if(h.push(async function(e=globalThis.fetch){try{return await e("ipfs://localhost/"),!0}catch(e){return Sr&&console.warn("Unable to detect Agregore",e),!1}}(c).then(e=>e&&l.push({type:kr,fetch:c}))),h.push(async function(){const e=Ir.map(e=>`http://localhost:${e}`);try{const n=await Promise.any(e.map(e=>qr(e).then(t=>{if(t)return e;throw new Error("Not found")})));return!!n&&(zr&&!Vr&&(t=n,Vr=!0,globalThis.chrome.webRequest.onBeforeSendHeaders.addListener(e=>{const{requestHeaders:n}=e;for(const e of n)if("origin"===e.name.toLowerCase())return e.value=t,{requestHeaders:n};return e.requestHeaders.push({name:"Origin",value:t}),{requestHeaders:n}},{urls:[t+"/*"]},["blocking","requestHeaders","extraHeaders"])),n)}catch{return!1}var t}().then(e=>e&&l.push({type:Nr,url:e,fetch:c}))),e&&h.push(qr(e,a,c).then(t=>t&&l.push({type:Nr,url:e,fetch:c}))),r){const e=i,t=r;l.push({type:Br,url:e,authorization:t,fetch:c,publicGatewayURL:s})}if(t){const e=n,r=t;l.push({type:Or,url:e,authorization:r,fetch:c,publicGatewayURL:s})}return o&&s&&l.push({type:Pr,fetch:c,publicGatewayURL:s}),await Promise.allSettled(h),l}async function Fr({chooseOrder:e=Lr,...t}={}){const n=function(e,t=Lr){const n=e.filter(({type:e})=>t.includes(e)).sort(({type:e},{type:n})=>t.indexOf(e)-t.indexOf(n))[0];if(!n)throw new Error("Unable to find valid type");return n}(await Ur(t),e);return async function(e){const{type:t}=e;let n=null;if(t===kr)n=new Hr(e.fetch||globalThis.fetch);else if(t===Nr)n=new Qr(e.url);else if(t===Or)n=new Wr(e.authorization,e.url,e.publicGatewayURL);else if(t===Br)n=new jr(e.authorization,e.url,e.publicGatewayURL);else{if(t!==Pr)throw new TypeError(`Unknown API type: ${t}.`);n=new Mr(e.publicGatewayURL)}return n}(n)}class Mr extends Dr{constructor(e=xr()){super(),this.gatewayURL=e}get type(){return Pr}async*get(e,{start:t,end:n,signal:r=null,format:i=null}={}){yield*Er({url:e,start:t,end:n,format:i,gatewayURL:this.gatewayURL,signal:r})}async getSize(e,t=null){const{cid:n,path:r,type:i}=ur(e);return vr({url:new URL(`/${i}/${n}${r}`,this.gatewayURL),signal:t})}}class jr extends Mr{constructor(e,t=Cr,n=xr()){super(n),this.authorization=e,this.url=t}get type(){return Br}async uploadCAR(e,t=null){throw new Error("Not Implemented")}async uploadFile(e,t,n=null){const r=new URL("/content/add",this.url);r.password=this.authorization;const i=await wr({url:r,file:e,fileName:t,parameterName:"data",signal:n}),{cid:s}=await i.json();return`ipfs://${s}/`}}class Hr extends Dr{constructor(e=globalThis.fetch){super(),this.fetch=e}get type(){return kr}async*get(e,{start:t,end:n,signal:r=null,format:i=null}={}){const{fetch:s}=this;yield*_r({url:e,start:t,end:n,format:i,fetch:s,signal:r})}async getSize(e,t=null){const{fetch:n}=this;return vr({url:e,fetch:n,signal:t})}async uploadCAR(e,t=null){const n=await pr(e),{fetch:r}=this,i=await r("ipfs://localhost",{method:"POST",headers:{"Content-Type":"application/vnd.ipld.car"},signal:t,body:n});return await mr(i),(await i.text()).split("\n")}async uploadFile(e,t=null){const n=await pr(e),{fetch:r}=this,i=await r("ipfs://localhost",{method:"POST",headers:{"Content-Type":"application/octet-stream"},signal:t,body:n});return await mr(i),i.headers.get("Location")}}class Wr extends Mr{constructor(e,t=Tr,n=xr()){super(n),this.authorization=e,this.url=t}get type(){return Or}async uploadCAR(e,t=null){const n=new URL("/car",this.url);n.password=this.authorization;const r=await async function({url:e,fileIterator:t,signal:n}){const r=new Headers;r.set("Content-Type","application/octet-stream"),Ar(e,r);const i=await pr(t),s=await fetch(e,{method:"POST",signal:n,body:i,headers:r,duplex:"half"});return await mr(s),s}({url:n,fileIterator:e,signal:t});return(await r.text()).split("\n").filter(e=>e).map(e=>{const{cid:t}=JSON.parse(e);return`ipfs://${t}/`})}async uploadFile(e,{fileName:t="",signal:n=null}={}){const r=new URL("/upload",this.url);r.password=this.authorization;const i=await wr({url:r,file:e,fileName:t,signal:n}),{cid:s}=await i.json();return`ipfs://${s}/`}}class Qr extends Dr{constructor(e=Rr){super(),this.url=e}get type(){return Nr}async*get(e,{start:t,end:n,signal:r=null,format:i=null}={}){const{cid:s,path:o,type:a}=ur(e),c=new URL(`/api/v0/cat?arg=/${a}/${s}${o}`,this.url);if(t&&c.searchParams.set("offset",t),n&&c.searchParams.set("length",n-(t||0)+1),i)throw new Error("Format is unsupported on Kubo Daemons for now");const l=await fetch(c,{method:"POST",signal:r});await mr(l),yield*fr(l.body)}async getSize(e,t=null){try{const{cid:n,path:r,type:i}=ur(e),s=`/api/v0/file/ls?arg=/${i}/${n}${r}&size=true`,o=new URL(s,this.url),a=await fetch(o,{method:"POST",signal:t});await mr(a);const{Objects:c}=await a.json(),[{Size:l}]=Object.values(c);return l}catch(n){return Sr&&console.warn(n),this._getSizeWithDag(e,t)}}async _getSizeWithDag(e,t=null){const{cid:n,path:r,type:i}=ur(e),s=new URL(`/api/v0/dag/stat?arg=/${i}/${n}${r}`,this.url),o=await fetch(s,{method:"POST",signal:t});await mr(o);const{Size:a}=await o.json();return parseInt(a,10)}async _pin(e,t=null){const{cid:n,path:r,type:i}=ur(e),s=new URL(`/api/v0/pin/add?arg=/${i}/${n}${r}`,this.url),o=await fetch(s,{method:"POST",signal:t});await mr(o)}async _unpin(e,t=null){const{cid:n,path:r,type:i}=ur(e),s=new URL(`/api/v0/pin/rm?arg=/${i}/${n}${r}`,this.url),o=await fetch(s,{method:"POST",signal:t});await mr(o)}async clear(e,t=null){return this._unpin(e,t)}async uploadCAR(e,t=null){const n=new URL("/api/v0/dag/import?allow-big-block=true&pin-roots=true",this.url),r=await wr({url:n,file:e,signal:t});return(await r.text()).split("\n").filter(e=>e).map(e=>{const{Root:t}=JSON.parse(e);return`ipfs://${t.Cid["/"]}/`})}async uploadFile(e,t="",n=null){const r=new URL("/api/v0/add?pin=true&cid-version=1&inline=false&raw-leaves=true",this.url),i=e.name&&e instanceof Blob;(t||i)&&r.searchParams.set("wrap-with-directory","true");const s=await wr({url:r,file:e,fileName:t,signal:n}),o=await s.text(),[a]=o.split("\n"),{Hash:c}=JSON.parse(a),l=`ipfs://${c}/`;return await this._pin(l,n),l}}let Vr=!1;const zr=!!(globalThis&&globalThis.chrome&&globalThis.chrome.webRequest&&globalThis.chrome.webRequest.onBeforeSendHeaders&&globalThis.chrome.webRequest.onBeforeSendHeaders.addListener);async function qr(e=Rr,t=1e3,n=globalThis.fetch){try{const r=new AbortController,{signal:i}=r;setTimeout(()=>r.abort(),t);const s=await n(new URL("/api/v0/version",e),{method:"POST",signal:i});return!!s.ok||!(!s.status||404===s.status)}catch(t){return Sr&&console.warn("Unable to detect Kubo Daemon",t,e),!1}}let Gr=null;async function Kr(e){return Gr||(Gr=await Fr(e)),Gr}const Xr="https://helper-proxy.webrecorder.workers.dev";async function Yr(e){const{url:t}=e;if(e.extra?.arrayBuffer)return new ei(e.extra.arrayBuffer);const n=t.split(":",1)[0];switch(n){case"blob":return new ti(e);case"http":case"https":return new Zr(e);case"file":return new ni(e);case"googledrive":return new $r(e);case"ipfs":return new ri(e)}try{if(self.location&&n===self.location.protocol.split(":")[0])return new Zr(e)}catch(e){}try{await fetch(`${n}://localhost`,{method:"HEAD"});try{new URL(t)}catch(n){let r=t.replace(":\\","//");r=r.replaceAll("\\","/"),e.url=r}return new Zr(e)}catch(e){}throw new Error("Invalid URL: "+t)}class Jr{canLoadOnDemand=!0;headers={};length=null;canDoNegativeRange=!1;constructor(e){this.canLoadOnDemand=e}async getRangeFromEnd(e,t,n){if(this.canDoNegativeRange)return await this.getRange(0,-e,t,n);{const r=await this.getLength();return e=Math.min(e,r),await this.getRange(r-e,e,t,n)}}getFullBuffer(){return null}}class Zr extends Jr{url;length;isValid=!1;ipfsAPI=null;loadingIPFS=null;arrayBuffer=null;constructor({url:e,headers:t,length:n=null,canLoadOnDemand:r=!1}){super(r),this.url=e,this.headers=t||{},this.length=n,this.canLoadOnDemand=r,this.canDoNegativeRange=!0}async doInitialFetch(e,t=!1){const n=new Headers(this.headers);t||n.set("Range","bytes=0-"),this.isValid=!1;let r=null,i=null;if(e)try{i=await this.retryFetch(this.url,{headers:n,method:"HEAD",cache:"no-store"}),200!==i.status&&206!=i.status||(this.canLoadOnDemand=206===i.status||"bytes"===i.headers.get("Accept-Ranges"),this.isValid=!0)}catch(e){}if(!this.isValid||!this.canLoadOnDemand){r=new AbortController;const t=r.signal;i=await this.retryFetch(this.url,{headers:n,signal:t,cache:"no-store"}),this.canLoadOnDemand=206===i.status||"bytes"===i.headers.get("Accept-Ranges"),this.isValid=206===i.status||200===i.status,e&&(r.abort(),r=null)}if(null===this.length&&i&&(this.length=Number(i.headers.get("Content-Length")),this.length||206!==i.status||this.parseLengthFromContentRange(i.headers)),null===this.length)try{const e=await fetch(`${Xr}/c/${this.url}`),t=await e.json();t.size&&(this.length=t.size)}catch(e){console.log("Error fetching from helper: "+e)}if(this.length=Number(this.length||0),!this.canLoadOnDemand&&this.isValid&&this.length>0&&this.length<=B){const e=await this.retryFetch(this.url,{headers:n,cache:"no-store"});e.ok&&(this.arrayBuffer=new ei(new Uint8Array(await e.arrayBuffer())),this.canLoadOnDemand=!0,this.canDoNegativeRange=!1)}return{response:i,abort:r}}async getLength(){if(null===this.length){const{abort:e}=await this.doInitialFetch(!0);e&&e.abort()}return this.length||0}async getRange(e,t,n=!1,r=null){if(this.arrayBuffer)return await this.arrayBuffer.getRange(e,t,n);const i=new Headers(this.headers);t<0?i.set("Range",`bytes=${t}`):i.set("Range",`bytes=${e}-${e+t-1}`);const s={signal:r,headers:i,cache:"no-store"};let o;try{o=await this.retryFetch(this.url,s)}catch(e){throw new te(this.url)}if(206!=o.status){if(t<0){const e=await this.getLength();return-t>e&&(t=-e),await this.getRange(e+t,-t,n,r)}const e={url:this.url,status:o.status,resp:o};throw 401===o.status?new ne(e):403==o.status?new re(e):new te(e)}return null===this.length&&this.parseLengthFromContentRange(o.headers),n?o.body||new Uint8Array:new Uint8Array(await o.arrayBuffer())}async retryFetch(e,t){let n=1e3;for(let r=0;r<20;r++){const r=await fetch(e,t);if(429!==r.status&&503!==r.status)return r;await oe(n),n+=2e3}throw new Error("retryFetch failed")}parseLengthFromContentRange(e){const t=e.get("Content-Range");if(t){const e=t.split("/");2===e.length&&(this.length=parseInt(e[1]))}}getFullBuffer(){return this.arrayBuffer?.getFullBuffer()??null}}class $r extends Jr{fileId;apiUrl;length;publicUrl=null;isValid=!1;constructor({url:e,headers:t,size:n,extra:r}){super(!0),this.fileId=e.slice(14),this.apiUrl=`https://www.googleapis.com/drive/v3/files/${this.fileId}?alt=media`,this.headers=t||{},r?.publicUrl&&(this.publicUrl=r.publicUrl),this.length=n||0}async getLength(){return this.length}async doInitialFetch(e){let t=null,n=null;if(this.publicUrl){t=new Zr({url:this.publicUrl,length:this.length});try{n=await t.doInitialFetch(e)}catch(e){}if(!t.isValid&&(n?.abort&&n.abort.abort(),await this.refreshPublicUrl())){t=new Zr({url:this.publicUrl,length:this.length});try{n=await t.doInitialFetch(e)}catch(e){}!t.isValid&&n?.abort&&n.abort.abort()}}return t?.isValid||(this.publicUrl=null,t=new Zr({url:this.apiUrl,headers:this.headers,length:this.length}),n=await t.doInitialFetch(e)),this.isValid=t.isValid,!this.length&&t.length&&(this.length=t.length),n}async getRange(e,t,n=!1,r){let i=null;if(this.publicUrl){i=new Zr({url:this.publicUrl,length:this.length});try{return await i.getRange(e,t,n,r)}catch(s){if(await this.refreshPublicUrl()){i=new Zr({url:this.publicUrl,length:this.length});try{return await i.getRange(e,t,n,r)}catch(e){}}}this.publicUrl=null}i=new Zr({url:this.apiUrl,headers:this.headers,length:this.length});let s=50;for(;s<2e3;)try{return await i.getRange(e,t,n,r)}catch(e){if(e instanceof re&&e.info.resp?.headers.get("content-type").startsWith("application/json")){const t=await e.info.resp.json();if(t.error?.errors&&"userRateLimitExceeded"===t.error.errors[0].reason){console.log(`Exponential backoff, waiting for: ${s}`),await oe(s),s*=2;continue}}throw e}throw new te("not found")}async refreshPublicUrl(){try{const e=await fetch(`${Xr}/g/${this.fileId}`),t=await e.json();if(t.url)return this.publicUrl=t.url,!0}catch(e){}return!1}}class ei extends Jr{arrayBuffer;size;constructor(e){super(!0),this.arrayBuffer=e,this.size=e.length,this.length=this.size}get isValid(){return!!this.arrayBuffer}async getLength(){return this.size}async doInitialFetch(e=!1){const t=e?null:si(this.arrayBuffer);return{response:new Response(t),abort:null}}async getRange(e,t,n=!1){const r=this.arrayBuffer.slice(e,e+t);return n?si(r):r}getFullBuffer(){return this.arrayBuffer}}class ti extends Jr{url;blob;size;arrayBuffer=null;constructor({url:e,blob:t=null,size:n=null}){super(!0),this.url=e,this.blob=t,this.size=this.blob?this.blob.size:n||0,this.length=this.size}get isValid(){return!!this.blob}async getLength(){if(!this.blob?.size){const e=await fetch(this.url);this.blob=await e.blob(),this.size=this.blob.size,this.length=this.size}return this.size}async doInitialFetch(e=!1){if(!this.blob)try{const e=await fetch(this.url);this.blob=await e.blob(),this.size=this.blob.size,this.length=this.size}catch(e){throw console.warn(e),e}const t=this.blob.arrayBuffer?await this.blob.arrayBuffer():await this._getArrayBuffer();this.arrayBuffer=new Uint8Array(t);const n=e?null:si(this.arrayBuffer);return{response:new Response(n),abort:null}}async getRange(e,t,n=!1){this.arrayBuffer||await this.doInitialFetch(!0);const r=this.arrayBuffer.slice(e,e+t);return n?si(r):r}async _getArrayBuffer(){return new Promise((e,t)=>{const n=new FileReader;n.onloadend=()=>{n.result instanceof ArrayBuffer?e(n.result):t(n.result)},this.blob&&n.readAsArrayBuffer(this.blob)})}}class ni extends Jr{url;file;size;fileHandle;constructor({blob:e,size:t,extra:n,url:r}){super(!0),this.url=r,this.file=null,this.size=e?e.size:t||0,this.length=this.size,this.fileHandle=n.fileHandle}get isValid(){return!!this.file}async getLength(){return void 0===this.size&&await this.initFileObject(),this.size}async initFileObject(){const e={mode:"read"};if("granted"!==await this.fileHandle.queryPermission(e)&&"granted"!==await this.fileHandle.requestPermission(e))throw new ne({fileHandle:this.fileHandle});this.file=await this.fileHandle.getFile(),this.size=this.file.size,this.length=this.size}async doInitialFetch(e=!1){this.file||await this.initFileObject();const t=e?null:this.file.stream();return{response:new Response(t),abort:null}}async getRange(e,t,n=!1){this.file||await this.initFileObject();const r=this.file.slice(e,e+t);return n?r.stream():new Uint8Array(await r.arrayBuffer())}}class ri extends Jr{url;opts;length;isValid=!1;constructor({url:e,headers:t,...n}){super(!0),this.url=e,this.opts=n,this.headers=t||{},this.length=null}async getLength(){return null===this.length&&await this.doInitialFetch(!0),this.length}async doInitialFetch(e){const t=await Kr(this.opts);try{this.length=await t.getSize(this.url),this.isValid=null!==this.length}catch(e){console.warn(e),this.length=null,this.isValid=!1}let n=206;this.isValid||(n=404);const r=new AbortController,i=r.signal;let s;return s=e||!this.isValid?new Uint8Array([]):ii(t.get(this.url,{signal:i})),{response:new Response(s,{status:n}),abort:r}}async getRange(e,t,n=!1,r=null){const i=(await Kr(this.opts)).get(this.url,{start:e,end:e+t-1,signal:r});if(n)return ii(i);{const e=[];let t=0;for await(const n of i)e.push(n),t+=n.byteLength;return Qe(e,t)}}}function ii(e){return new ReadableStream({start:async t=>{try{for await(const n of e)t.enqueue(n)}catch(e){console.log(e)}t.close()}})}function si(e){return new ReadableStream({start(t){t.enqueue(e),t.close()}})}class oi extends Error{cdx;constructor(e,t){super(e),this.cdx=t}}class ai extends Ft{noCache;streamMap;constructor(e,t=!1){super(e),this.noCache=t,this.useRefCounts=!t,this.streamMap=new Map}isSameUrl(e,t,n){if(e===t)return!0;const r=decodeURIComponent(e),i=decodeURIComponent(t);return r===i||!(!n||!i.startsWith(r))}async loadPayload(e,t){let n=await super.loadPayload(e,t);if(n&&e.respHeaders&&("warc/revisit"!==e.mime||e.status>=300&&e.status<400))return n;const r=this.streamMap.get(e.url);if(r)return console.log(`Reuse stream for ${e.url}`),new ui(r);const{remote:i,hasher:s}=await this.loadRecordFromSource(e);if(!i)return console.log(`No WARC Record Loaded for: ${e.url}`),null;if(!this.isSameUrl(i.url,e.url,e.method))return console.log(`Wrong url: expected ${e.url}, got ${i.url}`),null;const o=e.origTS||e.ts;if(i.ts!==o&&1e3*Math.floor(i.ts/1e3)!==o)return console.log(`Wrong timestamp: expected ${o}, got ${i.ts}`),null;if(i.digest!==e.digest&&e.digest&&i.digest){const t=i.digest.split(":"),n=e.digest.split(":");2===t.length&&2===n.length&&n[1]===t[1]?e.digest=t[0]+":"+n[1]:console.log(`Wrong digest: expected ${e.digest}, got ${i.digest}`)}if(i.origURL){if(!n&&e.status>=300&&e.status<400&&i.respHeaders){if(e.respHeaders=i.respHeaders,!this.noCache)try{await this.db.put("resources",e)}catch(e){console.log(e)}return new Uint8Array([])}const r={...t,noRevisits:!0};i.origWACZ&&(r.waczname=i.origWACZ);const s=await this.lookupUrl(i.origURL,i.origTS||0,r);if(!s)throw new oi(`Encountered revisit record but unable to locate original record for ${i.origURL}`,e);const o=t.depth||0;if(!n&&(o<2?n=await this.loadPayload(s,{...t,depth:o+1}):console.warn("Avoiding revisit lookup loop for: "+JSON.stringify(i)),!n))return null;if(i.respHeaders&&s.respHeaders?(e.respHeaders=i.respHeaders,s.respHeaders["content-length"]&&(e.respHeaders["content-length"]=s.respHeaders["content-length"])):e.respHeaders=s.respHeaders,e.mime=s.mime,e.origTS=s.ts,e.origURL=s.url,e.source=s.source,e.digest=s.digest,s.extraOpts&&(e.extraOpts=s.extraOpts),!this.noCache){delete e.payload;try{await this.db.put("resources",e)}catch(e){console.log(e)}s.digest!==i.digest&&i.digest&&n instanceof Uint8Array&&await this.commitPayload(n,i.digest)}return n}const a=i.digest,c=e.source.length>=25e6;if(!this.noCache&&!c&&i.reader&&a&&(i.reader=new di(this,i.reader,a,e.url,this.streamMap,s||null,e.recordDigest,e.source)),c&&console.log("Not cacheing, too big: "+e.url),n=i.payload||null,!n&&!i.reader)return null;try{n&&!this.noCache&&!c&&a&&await this.commitPayload(n,a)}catch(t){console.warn(`Payload Update Error: ${e.url}`),console.warn(t)}if(!(e.respHeaders&&e.digest||(e.respHeaders=i.respHeaders,e.digest=a,i.extraOpts&&(e.extraOpts=i.extraOpts),this.noCache||c)))try{await this.db.put("resources",e)}catch(t){console.warn(`Resource Update Error: ${e.url}`),console.warn(t)}return n||i.reader||null}async commitPayload(e,t){if(!e||0===e.length)return;const n=this.db.transaction(["payload","digestRef"],"readwrite");try{if(n.objectStore("payload").put({payload:e,digest:t}),this.useRefCounts){const r=await n.objectStore("digestRef").get(t);r&&(r.size=e.length,n.objectStore("digestRef").put(r))}await n.done}catch(e){console.warn("Payload Commit Error: "+e)}}}class ci extends ai{async loadRecordFromSource(e){const t=await this.loadSource(e.source),n=new lr(t);return{remote:await n.load()}}}class li extends ci{loader;constructor(e,t,n=!1){super(e,n),this.loader=t}updateHeaders(e){this.loader.headers=e}async loadSource(e){const{start:t,length:n}=e;return await this.loader.getRange(t,n,!0)}}class hi extends ci{remoteUrlPrefix;headers;constructor(e,t,n,r=!1){super(e,r),this.remoteUrlPrefix=t,this.headers=n}updateHeaders(e){this.headers=e}async loadSource(e){const{start:t,length:n}=e,r=new Headers(this.headers),i=new URL(e.path,this.remoteUrlPrefix).href,s=await Yr({url:i,headers:r});return await s.getRange(t,n,!0)}}class ui extends $e{chunkstore;offset;size;constructor(e){super(),this.chunkstore=e,this.offset=0,this.size=this.chunkstore.totalLength}setLimitSkip(e=-1,t=0){this.offset=t,e>0&&(this.size=e)}setRangeAll(e){this.size=e}async*[Symbol.asyncIterator](){yield*this.chunkstore.getChunkIter()}getReadableStream(){console.log(`Offset: ${this.offset}, Size: ${this.size}`);const e=this.chunkstore.getChunkIter();return new tt(e,this.size,this.offset).getReadableStream()}async readlineRaw(e){throw new Error("Method not implemented.")}}class pi{chunks;size=0;done=!1;totalLength;nextChunk;_nextResolve=()=>{};constructor(e){this.chunks=[],this.size=0,this.done=!1,this.totalLength=e,this.nextChunk=new Promise(e=>this._nextResolve=e)}add(e){this.chunks.push(e),this.size+=e.byteLength,this._nextResolve(!0),this.nextChunk=new Promise(e=>this._nextResolve=e)}concatChunks(){return this._nextResolve(!1),this.done=!0,Qe(this.chunks,this.size)}async*getChunkIter(){for(const e of this.chunks)yield e;let e=this.chunks.length;for(;!this.done&&await this.nextChunk;)for(;e0)&&(this.commit=!1),this.reader.setLimitSkip(e,t)):this.fixedSize=2}async*[Symbol.asyncIterator](){let e=null;this.commit&&(e=new pi(this.totalLength),this.isRange&&(console.log(`Store stream for ${this.url}, ${this.totalLength}`),this.streamMap.set(this.url,e)));for await(const t of this.reader)e&&e.add(t),yield t;if(0!==this.reader.limit)console.warn(`Expected payload not consumed, ${this.reader.limit} bytes left`);else{if(!this.isRange&&this.hasher&&this.expectedHash&&this.source){const e=this.hasher.getHash(),{path:t,start:n,length:r}=this.source,i=`${t}:${n}-${r}`;this.db.addVerifyData(i,this.expectedHash,e)}this.commit&&(this.fullbuff=e.concatChunks(),await this.db.commitPayload(this.fullbuff,this.digest))}this.commit&&this.isRange&&(this.streamMap.delete(this.url),console.log(`Delete stream for ${this.url}`))}async _consumeIter(e){for await(const t of e);}async readFully(){return this.fullbuff||await this._consumeIter(this),this.fullbuff}getReadableStream(){const e=super.getReadableStream();if(!this.commit)return e;const t=e.tee();return this._consumeIter(et.fromReadable(t[1].getReader())),this.fixedSize?this.getFixedSizeReader(t[0].getReader(),this.fixedSize):t[0]}getFixedSizeReader(e,t){return new ReadableStream({async start(n){const{value:r,done:i}=await e.read();i||n.enqueue(r.slice(0,t)),n.close()}})}async readlineRaw(e){throw new Error("Method not implemented.")}}var fi=n(6454);function gi(e){let t,n;const r=e.response,i=r?.extraOpts;if(i&&(t=i.adaptive_max_resolution||i.maxRes,n=i.adaptive_max_bandwidth||i.maxBand,t&&n))return{maxRes:t,maxBand:n};let s;return s=e.response&&!e.response.isLive?{maxRes:921600,maxBand:2e6}:{maxRes:412800,maxBand:1e6},e.save&&(e.save.maxRes=s.maxRes,e.save.maxBand=s.maxBand),s}function mi(e,t){const n=/#EXT-X-STREAM-INF:(?:.*[,])?BANDWIDTH=([\d]+)/,r=/RESOLUTION=([\d]+)x([\d]+)/,{maxRes:i,maxBand:s}=gi(t),o=i||s,a=[];let c=0;const l=[],h=e.trimEnd().split("\n");for(const e of h){const s=e.match(n);if(!s){t.rewriteUrl&&!e.startsWith("#")&&(h[c]=t.rewriteUrl(e)),c+=1;continue}a.push(c);const o=Number(s[1]),u=e.match(r),p=u?Number(u[1])*Number(u[2]):0;l.push({value:i?p:o,index:c}),c+=1}l.sort((e,t)=>e.value-t.value);let u=null,p=null;for(const e of l){if(e.value>o)break;p!=e.value&&(p=e.value,u=e.index)}null===u&&l.length>0&&(u=l[0].index),a.reverse();for(const e of a)e!==u&&h.splice(e,2);return h.join("\n")}const wi={ignoreAttributes:!1,removeNSPrefix:!1,format:!1,suppressEmptyNode:!0,suppressBooleanAttributes:!1};function yi(e,t,n){try{return function(e,t,n){const r=new fi.XMLParser(wi).parse(e),{maxRes:i,maxBand:s}=gi(t);let o,a=null,c=0,l=0;o=Array.isArray(r.MPD.Period.AdaptationSet)?r.MPD.Period.AdaptationSet:[r.MPD.Period.AdaptationSet];for(const e of o){let t;a=null,c=0,l=0,t=Array.isArray(e.Representation)?e.Representation:[e.Representation];for(const e of t){const t=Number(e["@_width"]||"0")*Number(e["@_height"]||"0"),n=Number(e["@_bandwidth"]||"0");t&&i&&t<=i?t>c&&(c=t,l=n,a=e):n<=s&&n>l&&(c=t,l=n,a=e)}a&&Array.isArray(n)&&n.push(a["@_id"]),a&&(e.Representation=[a])}const h=new fi.XMLBuilder(wi).build(r).trim();return h.slice(0,5).toLowerCase().startsWith("\n"+h}(e,t,n)}catch(t){return console.log(t),e}}const bi=[{contains:["youtube.com","youtube-nocookie.com"],rxRules:[[/ytplayer.load\(\);/,xi('ytplayer.config.args.dash = "0"; ytplayer.config.args.dashmpd = ""; {0}')],[/yt\.setConfig.*PLAYER_CONFIG.*args":\s*{/,xi('{0} "dash": "0", dashmpd: "", ')],[/(?:"player":|ytplayer\.config).*"args":\s*{/,xi('{0}"dash":"0","dashmpd":"",')],[/yt\.setConfig.*PLAYER_VARS.*?{/,xi('{0}"dash":"0","dashmpd":"",')],[/ytplayer.config={args:\s*{/,xi('{0}"dash":"0","dashmpd":"",')],[/"0"\s*?==\s*?\w+\.dash&&/m,xi("1&&")]]},{contains:["player.vimeo.com/video/"],rxRules:[[/^\{.+\}$/,function(e){let t;try{t=JSON.parse(e)}catch(t){return e}if(t?.request?.files){const e=t.request.files;if("object"==typeof e.progressive&&e.progressive.length)return e.dash&&(e.__dash=e.dash,delete e.dash),e.hls&&(e.__hls=e.hls,delete e.hls),JSON.stringify(t)}return e.replace(/query_string_ranges=1/g,"query_string_ranges=0")}]]},{contains:["master.json?query_string_ranges=0","master.json?base64"],rxRules:[[/^\{.+\}$/,function(e,t){if(!t)return e;let n=null;const r=Ii(t);try{n=JSON.parse(e),console.log("manifest",n)}catch(t){return e}function i(e,t,n){if(!e)return null;let r=null,i=0;for(const s of e)s.mime_type==n&&s.bitrate>i&&s.bitrate<=t&&(i=s.bitrate,r=s);return r?[r]:e}return n.video=i(n.video,r,"video/mp4"),n.audio=i(n.audio,r,"audio/mp4"),JSON.stringify(n)}]]},{contains:["facebook.com/","fbsbx.com/"],rxRules:[[/"dash_manifests.*?,"failure_reason":null}]/,function(e,t){const n=e.indexOf("\\u003C?xml"),r=e.indexOf("/MPD>",n)+5;if(r<5)return e;let i=yi(JSON.parse('"'+e.slice(n,r)+'"'),t);i=JSON.stringify(i).replaceAll("<","\\u003C").slice(1,-1);const s=e.slice(0,n)+i+e.slice(r),o=Math.max(0,e.length-s.length);return s+" ".repeat(o)}],[/"playlist/,Si('"playli__')],[/"debugNoBatching\s?":(?:false|0)/,Si('"debugNoBatching":1')],[/"bulkRouteFetchBatchSize\s?":(?:[^{},]+)/,Si('"bulkRouteFetchBatchSize":1')],[/"maxBatchSize\s?":(?:[^{},]+)/,Si('"maxBatchSize":1')]]},{contains:["instagram.com/"],rxRules:[[/"is_dash_eligible":(?:true|1)/,Si('"is_dash_eligible":0')],[/"debugNoBatching\s?":(?:false|0)/,Si('"debugNoBatching":1')],[/"bulkRouteFetchBatchSize\s?":(?:[^{},]+)/,Si('"bulkRouteFetchBatchSize":1')],[/"maxBatchSize\s?":(?:[^{},]+)/,Si('"maxBatchSize":1')]]},{contains:["api.twitter.com/2/","twitter.com/i/api/2/","twitter.com/i/api/graphql/","api.x.com/2/","x.com/i/api/2/","x.com/i/api/graphql/"],rxRules:[[/"video_info":.*?}]}/,Ti('"video_info":')]]},{contains:["cdn.syndication.twimg.com/tweet-result"],rxRules:[[/"video":.*?viewCount":\d+}/,Ti('"video":')]]},{contains:["/vqlweb.js"],rxRules:[[/\b\w+\.updatePortSize\(\);this\.updateApplicationSize\(\)(?![*])/gim,xi("/*{0}*/")]]}],Ai=' ;Object.defineProperty(MediaSource, "isTypeSupported", {value: () => false, configurable: false, writable: false});',vi=[{contains:["youtube.com","youtube-nocookie.com"],rxRules:[[/[^"]/,e=>`\n ${e}