!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).singlefile={})}(this,(function(e){"use strict";const t=["AREA","BASE","BR","COL","COMMAND","EMBED","HR","IMG","INPUT","KEYGEN","LINK","META","PARAM","SOURCE","TRACK","WBR"],n=1,r=3,a=8,i=[{tagName:"HEAD",accept:e=>!e.childNodes.length||e.childNodes[0].nodeType==n},{tagName:"BODY",accept:e=>!e.childNodes.length}],o=[{tagName:"HTML",accept:e=>!e||e.nodeType!=a},{tagName:"HEAD",accept:e=>!e||e.nodeType!=a&&(e.nodeType!=r||!u(e.textContent))},{tagName:"BODY",accept:e=>!e||e.nodeType!=a},{tagName:"LI",accept:(e,t)=>!e&&t.parentElement&&("UL"==h(t.parentElement)||"OL"==h(t.parentElement))||e&&["LI"].includes(h(e))},{tagName:"DT",accept:e=>!e||["DT","DD"].includes(h(e))},{tagName:"P",accept:e=>e&&["ADDRESS","ARTICLE","ASIDE","BLOCKQUOTE","DETAILS","DIV","DL","FIELDSET","FIGCAPTION","FIGURE","FOOTER","FORM","H1","H2","H3","H4","H5","H6","HEADER","HR","MAIN","NAV","OL","P","PRE","SECTION","TABLE","UL"].includes(h(e))},{tagName:"DD",accept:e=>!e||["DT","DD"].includes(h(e))},{tagName:"RT",accept:e=>!e||["RT","RP"].includes(h(e))},{tagName:"RP",accept:e=>!e||["RT","RP"].includes(h(e))},{tagName:"OPTGROUP",accept:e=>!e||["OPTGROUP"].includes(h(e))},{tagName:"OPTION",accept:e=>!e||["OPTION","OPTGROUP"].includes(h(e))},{tagName:"COLGROUP",accept:e=>!e||e.nodeType!=a&&(e.nodeType!=r||!u(e.textContent))},{tagName:"CAPTION",accept:e=>!e||e.nodeType!=a&&(e.nodeType!=r||!u(e.textContent))},{tagName:"THEAD",accept:e=>!e||["TBODY","TFOOT"].includes(h(e))},{tagName:"TBODY",accept:e=>!e||["TBODY","TFOOT"].includes(h(e))},{tagName:"TFOOT",accept:e=>!e},{tagName:"TR",accept:e=>!e||["TR"].includes(h(e))},{tagName:"TD",accept:e=>!e||["TD","TH"].includes(h(e))},{tagName:"TH",accept:e=>!e||["TD","TH"].includes(h(e))}],s=["STYLE","SCRIPT","XMP","IFRAME","NOEMBED","NOFRAMES","PLAINTEXT","NOSCRIPT"];function l(e,t){const n=e.doctype;let r="";return n&&(r=" "),r+c(e.documentElement,t)}function c(e,l,u){return e.nodeType==r?function(e){const t=e.parentNode;let r;t&&t.nodeType==n&&(r=h(t));return!r||s.includes(r)?"SCRIPT"==r||"STYLE"==r?e.textContent.replace(/<\//gi,"<\\/").replace(/\/>/gi,"\\/>"):e.textContent:e.textContent.replace(/&/g,"&").replace(/\u00a0/g," ").replace(//g,">")}(e):e.nodeType==a?"\x3c!--"+e.textContent+"--\x3e":e.nodeType==n?function(e,n,r){const a=h(e),s=n&&i.find((t=>a==h(t)&&t.accept(e)));let l="";s&&!e.attributes.length||(l="<"+a.toLowerCase(),Array.from(e.attributes).forEach((t=>l+=function(e,t,n){const r=e.name;let a="";if(!r.match(/["'>/=]/)){let i,o=e.value;n&&"class"==r&&(o=Array.from(t.classList).map((e=>e.trim())).join(" ")),o=o.replace(/&/g,"&").replace(/\u00a0/g," "),o.includes('"')&&(o.includes("'")||!n?o=o.replace(/"/g,"""):i=!0);const s=!n||o.match(/[ \t\n\f\r'"`=<>]/);a+=" ",e.namespace?"http://www.w3.org/XML/1998/namespace"==e.namespaceURI?a+="xml:"+r:"http://www.w3.org/2000/xmlns/"==e.namespaceURI?("xmlns"!==r&&(a+="xmlns:"),a+=r):"http://www.w3.org/1999/xlink"==e.namespaceURI?a+="xlink:"+r:a+=r:a+=r,""!=o&&(a+="=",s&&(a+=i?"'":'"'),a+=o,s&&(a+=i?"'":'"'))}return a}(t,e,n))),l+=">");"TEMPLATE"!=a||e.childNodes.length?Array.from(e.childNodes).forEach((e=>l+=c(e,n,r||"svg"==a))):l+=e.innerHTML;const u=n&&o.find((t=>a==h(t)&&t.accept(e.nextSibling,e)));(r||!u&&!t.includes(a))&&(l+="");return l}(e,l,u):void 0}function u(e){return Boolean(e.match(/^[ \t\n\f\r]/))}function h(e){return e.tagName&&e.tagName.toUpperCase()}const d="single-file-",p="SingleFile",f="single-file-infobar",m="\n.infobar,\n.infobar .infobar-icon,\n.infobar .infobar-link-icon {\n min-inline-size: 28px;\n min-block-size: 28px;\n box-sizing: border-box;\n}\n\n.infobar,\n.infobar .infobar-close-icon,\n.infobar .infobar-link-icon {\n opacity: 0.7;\n transition: opacity 250ms;\n}\n\n.infobar:hover,\n.infobar .infobar-close-icon:hover,\n.infobar .infobar-link-icon:hover {\n opacity: 1;\n}\n\n.infobar,\n.infobar-content {\n display: flex;\n}\n\n.infobar {\n position: fixed;\n top: 16px;\n right: 16px;\n margin-inline-start: 16px;\n margin-block-end: 16px;\n color: #2d2d2d;\n background-color: #737373;\n border: 2px solid;\n border-color: #eee;\n border-radius: 16px;\n z-index: 2147483647;\n}\n\n.infobar:valid, .infobar:not(:focus-within) .infobar-content {\n display: none;\n}\n\n.infobar:focus-within {\n background-color: #f9f9f9;\n border-color: #878787;\n border-radius: 8px;\n opacity: 1;\n transition-property: opacity, background-color, border-color, border-radius,\n color;\n}\n\n.infobar-content {\n align-items: center;\n}\n\n.infobar-content span {\n font-family: Arial, Helvetica, sans-serif;\n font-size: 14px;\n line-height: 18px;\n word-break: break-word;\n white-space: pre-wrap;\n margin-inline: 4px;\n margin-block: 4px;\n}\n\n.infobar .infobar-icon,\n.infobar .infobar-close-icon,\n.infobar .infobar-link-icon {\n cursor: pointer;\n background-position: center;\n background-repeat: no-repeat;\n}\n\n.infobar .infobar-close-icon,\n.infobar .infobar-link-icon {\n align-self: flex-start;\n}\n\n.infobar .infobar-icon {\n position: absolute;\n min-inline-size: 24px;\n min-block-size: 24px;\n}\n\n.infobar:focus-within .infobar-icon {\n z-index: -1;\n background-image: none;\n}\n\n.infobar .infobar-close-icon {\n min-inline-size: 22px;\n min-block-size: 22px;\n}\n\n.infobar .infobar-icon {\n background-color: transparent;\n background-size: 70%;\n background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABABAMAAABYR2ztAAABhmlDQ1BJQ0MgcHJvZmlsZQAAKJF9kj1Iw0AYht+mSkUrDnYQcchQnSyIijqWKhbBQmkrtOpgcukfNGlIUlwcBdeCgz+LVQcXZ10dXAVB8AfEydFJ0UVK/C4ptIjx4LiH9+59+e67A4RGhalm1wSgapaRisfEbG5VDLyiDwEAvZiVmKkn0osZeI6ve/j4ehfhWd7n/hz9St5kgE8kjjLdsIg3iGc2LZ3zPnGIlSSF+Jx43KACiR+5Lrv8xrnosMAzQ0YmNU8cIhaLHSx3MCsZKvE0cVhRNcoXsi4rnLc4q5Uaa9XJbxjMaytprtMcQRxLSCAJETJqKKMCCxFaNVJMpGg/5uEfdvxJcsnkKoORYwFVqJAcP/gb/O6tWZiadJOCMaD7xbY/RoHALtCs2/b3sW03TwD/M3Cltf3VBjD3SXq9rYWPgIFt4OK6rcl7wOUOMPSkS4bkSH6aQqEAvJ/RM+WAwVv6EGtu31r7OH0AMtSr5Rvg4BAYK1L2use9ezr79u+ZVv9+AFlNcp0UUpiqAAAACXBIWXMAAC4jAAAuIwF4pT92AAAAB3RJTUUH5AsHADIRLMaOHwAAABl0RVh0Q29tbWVudABDcmVhdGVkIHdpdGggR0lNUFeBDhcAAAAPUExURQAAAIqKioyNjY2OjvDw8L2y1DEAAAABdFJOUwBA5thmAAAAAWJLR0QB/wIt3gAAAGNJREFUSMdjYCAJsLi4OBCQx6/CBQwIGIDPCBcXAkYQUsACU+AwlBVQHg6Eg5pgZBGOboIJZugDFwRwoJECJCUOhJI1wZwzqmBUwagCuipgIqTABG9h7YIKaKGAURAFEF/6AQAO4HqSoDP8bgAAAABJRU5ErkJggg==);\n}\n\n.infobar .infobar-link-icon {\n background-size: 60%;\n background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABAAgMAAADXB5lNAAABhmlDQ1BJQ0MgcHJvZmlsZQAAKJF9kj1Iw0AYht+mSkUrDnYQcchQnSyIijqWKhbBQmkrtOpgcukfNGlIUlwcBdeCgz+LVQcXZ10dXAVB8AfEydFJ0UVK/C4ptIjx4LiH9+59+e67A4RGhalm1wSgapaRisfEbG5VDLyiDwEAvZiVmKkn0osZeI6ve/j4ehfhWd7n/hz9St5kgE8kjjLdsIg3iGc2LZ3zPnGIlSSF+Jx43KACiR+5Lrv8xrnosMAzQ0YmNU8cIhaLHSx3MCsZKvE0cVhRNcoXsi4rnLc4q5Uaa9XJbxjMaytprtMcQRxLSCAJETJqKKMCCxFaNVJMpGg/5uEfdvxJcsnkKoORYwFVqJAcP/gb/O6tWZiadJOCMaD7xbY/RoHALtCs2/b3sW03TwD/M3Cltf3VBjD3SXq9rYWPgIFt4OK6rcl7wOUOMPSkS4bkSH6aQqEAvJ/RM+WAwVv6EGtu31r7OH0AMtSr5Rvg4BAYK1L2use9ezr79u+ZVv9+AFlNcp0UUpiqAAAACXBIWXMAAC4jAAAuIwF4pT92AAAAB3RJTUUH5AsHAB8H+DhhoQAAABl0RVh0Q29tbWVudABDcmVhdGVkIHdpdGggR0lNUFeBDhcAAAAJUExURQAAAICHi4qKioTuJAkAAAABdFJOUwBA5thmAAAAAWJLR0QCZgt8ZAAAAJJJREFUOI3t070NRCEMA2CnYAOyDyPwpHj/Va7hJ3FzV7zy3ET5JIwoAF6Jk4wzAJAkzxAYG9YRTgB+24wBgKmfrGAKTcEfAY4KRlRoIeBTgKOCERVaCPgU4Khge2GqKOBTgKOCERVaAEC/4PNcnyoSWHpjqkhwKxbcig0Q6AorXYF/+A6eIYD1lVbwG/jdA6/kA2THRAURVubcAAAAAElFTkSuQmCC);\n}\n\n.infobar .infobar-close-icon {\n appearance: none;\n background-size: 80%;\n background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABAAgMAAADXB5lNAAABhmlDQ1BJQ0MgcHJvZmlsZQAAKJF9kj1Iw0AYht+mSkUrDnYQcchQnSyIijqWKhbBQmkrtOpgcukfNGlIUlwcBdeCgz+LVQcXZ10dXAVB8AfEydFJ0UVK/C4ptIjx4LiH9+59+e67A4RGhalm1wSgapaRisfEbG5VDLyiDwEAvZiVmKkn0osZeI6ve/j4ehfhWd7n/hz9St5kgE8kjjLdsIg3iGc2LZ3zPnGIlSSF+Jx43KACiR+5Lrv8xrnosMAzQ0YmNU8cIhaLHSx3MCsZKvE0cVhRNcoXsi4rnLc4q5Uaa9XJbxjMaytprtMcQRxLSCAJETJqKKMCCxFaNVJMpGg/5uEfdvxJcsnkKoORYwFVqJAcP/gb/O6tWZiadJOCMaD7xbY/RoHALtCs2/b3sW03TwD/M3Cltf3VBjD3SXq9rYWPgIFt4OK6rcl7wOUOMPSkS4bkSH6aQqEAvJ/RM+WAwVv6EGtu31r7OH0AMtSr5Rvg4BAYK1L2use9ezr79u+ZVv9+AFlNcp0UUpiqAAAACXBIWXMAAC4jAAAuIwF4pT92AAAAB3RJTUUH5AsHAB8VC4EQ6QAAABl0RVh0Q29tbWVudABDcmVhdGVkIHdpdGggR0lNUFeBDhcAAAAJUExURQAAAICHi4qKioTuJAkAAAABdFJOUwBA5thmAAAAAWJLR0QCZgt8ZAAAAJtJREFUOI3NkrsBgCAMRLFwBPdxBArcfxXFkO8rbKWAAJfHJ9faf9vuYX/749T5NmShm3bEwbe2SxeuM4+2oxDL1cDoKtVUjRy+tH78Cv2CS+wIiQNC1AEhk4AQeUTMWUJMfUJMSEJMSEY8kIx4IONroaYAimNxsXp1PA7PxwfVL8QnowwoVC0lig07wDDVUjAdbAnjwtow/z/bDW7eI4M2KruJAAAAAElFTkSuQmCC);\n}\n";function g(e,t,n){if(!e.querySelector(f)){let r;t.infobarContent?r=t.infobarContent.replace(/\\n/g,"\n").replace(/\\t/g,"\t"):t.saveDate&&(r=t.saveDate),r=r||"No info";const a=function(e,t,n){const r=e.createElement(t);return n.appendChild(r),Array.from(getComputedStyle(r)).forEach((e=>r.style.setProperty(e,"initial","important"))),r}(e,f,e.body);let i;if(n)i=a.attachShadow({mode:"open"});else{const t=e.createElement("template");t.setAttribute("shadowrootmode","open"),a.appendChild(t),i=t}const o=e.createElement("div"),s=e.createElement("style");s.textContent=m.replace(/ {2}/g,"").replace(/\n/g,"").replace(/: /g,":").replace(/, /g,","),o.appendChild(s);const l=e.createElement("form");l.classList.add("infobar"),o.appendChild(l);const c=e.createElement("span");c.tabIndex=-1,c.classList.add("infobar-icon"),l.appendChild(c);const u=e.createElement("span");u.tabIndex=-1,u.classList.add("infobar-content");const h=e.createElement("input");h.type="checkbox",h.required=!0,h.classList.add("infobar-close-icon"),h.title="Close",u.appendChild(h);const d=e.createElement("span");d.textContent=r,u.appendChild(d);const p=e.createElement("a");if(p.classList.add("infobar-link-icon"),p.target="_blank",p.rel="noopener noreferrer",p.title="Open source URL: "+t.saveUrl,p.href=t.saveUrl,u.appendChild(p),l.appendChild(u),n)i.appendChild(o);else{const t=e.createElement("script");let n=y.toString();n+=b.toString(),n+="("+w.toString()+")(document)",t.textContent=n,o.appendChild(t),i.innerHTML=o.outerHTML}e.body.appendChild(a)}}function b(e){const t=e.evaluate("//comment()",e,null,XPathResult.FIRST_ORDERED_NODE_TYPE,null);let n=t&&t.singleNodeValue;if(n&&n.nodeType==Node.COMMENT_NODE&&n.textContent.includes(p)){const e=n.textContent.split("\n"),[,,t,...r]=e,a=t.match(/^ url: (.*) ?$/),i=a&&a[1];if(i){let e,t;if(r.length&&(t=r[0].split("saved date: ")[1],t&&r.shift(),r.length>1)){let t=r[0].split("info: ")[1].trim();for(let e=1;e{if(a.pendingData){const t=a.pendingData;a.pendingData=new D(t.length+e.length);const{pendingData:n}=a;n.set(t,0),n.set(e,t.length)}else a.pendingData=new D(e)}))}append(e){return this.codec.push(e),r(this)}flush(){return this.codec.push(new D,!0),r(this)}};function r(e){if(e.pendingData){const t=e.pendingData;return e.pendingData=null,t}return new D}}const Pe=[];for(let e=0;e<256;e++){let t=e;for(let e=0;e<8;e++)1&t?t=t>>>1^3988292384:t>>>=1;Pe[e]=t}class Fe{constructor(e){this.crc=e||-1}append(e){let t=0|this.crc;for(let n=0,r=0|e.length;n>>8^Pe[255&(t^e[n])];this.crc=t}get(){return~this.crc}}class Me extends H{constructor(){let e;const t=new Fe;super({transform(e,n){t.append(e),n.enqueue(e)},flush(){const n=new D(4);new N(n.buffer).setUint32(0,t.get()),e.value=n}}),e=this}}function Ue(e){if(void 0===M){e=unescape(encodeURIComponent(e));const t=new D(e.length);for(let n=0;n0&&t&&(e[n-1]=Be.partial(t,e[n-1]&2147483648>>t-1,1)),e},partial:(e,t,n)=>32===e?t:(n?0|t:t<<32-e)+1099511627776*e,getPartial:e=>C.round(e/1099511627776)||32,_shiftRight(e,t,n,r){for(void 0===r&&(r=[]);t>=32;t-=32)r.push(n),n=0;if(0===t)return r.concat(e);for(let a=0;a>>t),n=e[a]<<32-t;const a=e.length?e[e.length-1]:0,i=Be.getPartial(a);return r.push(Be.partial(t+i&31,t+i>32?n:r.pop(),1)),r}},je={bytes:{fromBits(e){const t=Be.bitLength(e)/8,n=new D(t);let r;for(let a=0;a>>24,r<<=8;return n},toBits(e){const t=[];let n,r=0;for(n=0;n9007199254740991)throw new L("Cannot hash more than 2^53 - 1 bits");const i=new O(n);let o=0;for(let e=t.blockSize+r-(t.blockSize+r&t.blockSize-1);e<=a;e+=t.blockSize)t._block(i.subarray(16*o,16*(o+1))),o+=1;return n.splice(0,16*o),t}finalize(){const e=this;let t=e._buffer;const n=e._h;t=Be.concat(t,[Be.partial(1,1)]);for(let e=t.length+2;15&e;e++)t.push(0);for(t.push(C.floor(e._length/4294967296)),t.push(0|e._length);t.length;)e._block(t.splice(0,16));return e.reset(),n}_f(e,t,n,r){return e<=19?t&n|~t&r:e<=39?t^n^r:e<=59?t&n|t&r|n&r:e<=79?t^n^r:void 0}_S(e,t){return t<>>32-e}_block(e){const t=this,n=t._h,r=k(80);for(let t=0;t<16;t++)r[t]=e[t];let a=n[0],i=n[1],o=n[2],s=n[3],l=n[4];for(let e=0;e<=79;e++){e>=16&&(r[e]=t._S(1,r[e-3]^r[e-8]^r[e-14]^r[e-16]));const n=t._S(5,a)+t._f(e,i,o,s)+l+r[e]+t._key[C.floor(e/20)]|0;l=s,s=o,o=t._S(30,i),i=a,a=n}n[0]=n[0]+a|0,n[1]=n[1]+i|0,n[2]=n[2]+o|0,n[3]=n[3]+s|0,n[4]=n[4]+l|0}}},He={aes:class{constructor(e){const t=this;t._tables=[[[],[],[],[],[]],[[],[],[],[],[]]],t._tables[0][0][0]||t._precompute();const n=t._tables[0][4],r=t._tables[1],a=e.length;let i,o,s,l=1;if(4!==a&&6!==a&&8!==a)throw new L("invalid aes key size");for(t._key=[o=e.slice(0),s=[]],i=a;i<4*a+28;i++){let e=o[i-1];(i%a==0||8===a&&i%a==4)&&(e=n[e>>>24]<<24^n[e>>16&255]<<16^n[e>>8&255]<<8^n[255&e],i%a==0&&(e=e<<8^e>>>24^l<<24,l=l<<1^283*(l>>7))),o[i]=o[i-a]^e}for(let e=0;i;e++,i--){const t=o[3&e?i:i-4];s[e]=i<=4||e<4?t:r[0][n[t>>>24]]^r[1][n[t>>16&255]]^r[2][n[t>>8&255]]^r[3][n[255&t]]}}encrypt(e){return this._crypt(e,0)}decrypt(e){return this._crypt(e,1)}_precompute(){const e=this._tables[0],t=this._tables[1],n=e[4],r=t[4],a=[],i=[];let o,s,l,c;for(let e=0;e<256;e++)i[(a[e]=e<<1^283*(e>>7))^e]=e;for(let u=o=0;!n[u];u^=s||1,o=i[o]||1){let i=o^o<<1^o<<2^o<<3^o<<4;i=i>>8^255&i^99,n[u]=i,r[i]=u,c=a[l=a[s=a[u]]];let h=16843009*c^65537*l^257*s^16843008*u,d=257*a[i]^16843008*i;for(let n=0;n<4;n++)e[n][u]=d=d<<24^d>>>8,t[n][i]=h=h<<24^h>>>8}for(let n=0;n<5;n++)e[n]=e[n].slice(0),t[n]=t[n].slice(0)}_crypt(e,t){if(4!==e.length)throw new L("invalid aes block size");const n=this._key[t],r=n.length/4-2,a=[0,0,0,0],i=this._tables[t],o=i[0],s=i[1],l=i[2],c=i[3],u=i[4];let h,d,p,f=e[0]^n[0],m=e[t?3:1]^n[1],g=e[2]^n[2],b=e[t?1:3]^n[3],y=4;for(let e=0;e>>24]^s[m>>16&255]^l[g>>8&255]^c[255&b]^n[y],d=o[m>>>24]^s[g>>16&255]^l[b>>8&255]^c[255&f]^n[y+1],p=o[g>>>24]^s[b>>16&255]^l[f>>8&255]^c[255&m]^n[y+2],b=o[b>>>24]^s[f>>16&255]^l[m>>8&255]^c[255&g]^n[y+3],y+=4,f=h,m=d,g=p;for(let e=0;e<4;e++)a[t?3&-e:e]=u[f>>>24]<<24^u[m>>16&255]<<16^u[g>>8&255]<<8^u[255&b]^n[y++],h=f,f=m,m=g,g=b,b=h;return a}}},We={getRandomValues(e){const t=new O(e.buffer),n=e=>{let t=987654321;const n=4294967295;return function(){t=36969*(65535&t)+(t>>16)&n;return(((t<<16)+(e=18e3*(65535&e)+(e>>16)&n)&n)/4294967296+.5)*(C.random()>.5?1:-1)}};for(let r,a=0;a>24&255)){let t=e>>16&255,n=e>>8&255,r=255&e;255===t?(t=0,255===n?(n=0,255===r?r=0:++r):++n):++t,e=0,e+=t<<16,e+=n<<8,e+=r}else e+=1<<24;return e}incCounter(e){0===(e[0]=this.incWord(e[0]))&&(e[1]=this.incWord(e[1]))}calculate(e,t,n){let r;if(!(r=t.length))return[];const a=Be.bitLength(t);for(let a=0;anew Ke.hmacSha1(je.bytes.toBits(e)),pbkdf2(e,t,n,r){if(n=n||1e4,r<0||n<0)throw new L("invalid params to pbkdf2");const a=1+(r>>5)<<2;let i,o,s,l,c;const u=new ArrayBuffer(a),h=new N(u);let d=0;const p=Be;for(t=je.bytes.toBits(t),c=1;d<(a||1);c++){for(i=o=e.encrypt(p.concat(t,[c])),s=1;sa&&(e=(new n).update(e).finalize());for(let t=0;tthis.resolveReady=e)),password:e,signed:t,strength:n-1,pending:new D})},async transform(e,t){const n=this,{password:a,strength:i,resolveReady:o,ready:s}=n;a?(await async function(e,t,n,r){const a=await xt(e,t,n,At(r,0,at[t])),i=At(r,at[t]);if(a[0]!=i[0]||a[1]!=i[1])throw new L(Je)}(n,i,a,At(e,0,at[i]+2)),e=At(e,at[i]+2),r?t.error(new L(Qe)):o()):await s;const l=new D(e.length-ot-(e.length-ot)%Ye);t.enqueue(vt(n,e,l,0,ot,!0))},async flush(e){const{signed:t,ctr:n,hmac:r,pending:a,ready:i}=this;await i;const o=At(a,0,a.length-ot),s=At(a,a.length-ot);let l=new D;if(o.length){const e=Et(pt,o);r.update(e);const t=n.update(e);l=Ct(pt,t)}if(t){const e=At(Ct(pt,r.digest()),0,ot);for(let t=0;tthis.resolveReady=e)),password:e,strength:t-1,pending:new D})},async transform(e,t){const n=this,{password:r,strength:a,resolveReady:i,ready:o}=n;let s=new D;r?(s=await async function(e,t,n){const r=Xe(new D(at[t])),a=await xt(e,t,n,r);return St(r,a)}(n,a,r),i()):await o;const l=new D(s.length+e.length-e.length%Ye);l.set(s,0),t.enqueue(vt(n,e,l,s.length,0))},async flush(e){const{ctr:t,hmac:r,pending:a,ready:i}=this;await i;let o=new D;if(a.length){const e=t.update(Et(pt,a));r.update(e),o=Ct(pt,e)}n.signature=Ct(pt,r.digest()).slice(0,ot),e.enqueue(St(o,n.signature))}}),n=this}}function vt(e,t,n,r,a,i){const{ctr:o,hmac:s,pending:l}=e,c=t.length-a;let u;for(l.length&&(t=St(l,t),n=function(e,t){if(t&&t>e.length){const n=e;(e=new D(t)).set(n,0)}return e}(n,c-c%Ye)),u=0;u<=c-Ye;u+=Ye){const e=Et(pt,At(t,u,u+Ye));i&&s.update(e);const a=o.update(e);i||s.update(a),n.set(Ct(pt,a),u+r)}return e.pending=At(t,u),n}async function xt(e,t,n,r){e.password=null;const a=Ue(n),i=await async function(e,t,n,r,a){if(!bt)return Ke.importKey(t);try{return await ht.importKey(e,t,n,r,a)}catch(e){return bt=!1,Ke.importKey(t)}}(Ze,a,tt,!1,rt),o=await async function(e,t,n){if(!yt)return Ke.pbkdf2(t,e.salt,nt.iterations,n);try{return await ht.deriveBits(e,t,n)}catch(r){return yt=!1,Ke.pbkdf2(t,e.salt,nt.iterations,n)}}(v.assign({salt:r},nt),i,8*(2*it[t]+2)),s=new D(o),l=Et(pt,At(s,0,it[t])),c=Et(pt,At(s,it[t],2*it[t])),u=At(s,2*it[t]);return v.assign(e,{keys:{key:l,authentication:c,passwordVerification:u},ctr:new mt(new ft(l),k.from(st)),hmac:new gt(c)}),u}function St(e,t){let n=e;return e.length+t.length&&(n=new D(e.length+t.length),n.set(e,0),n.set(t,e.length)),n}function At(e,t,n){return e.subarray(t,n)}function Ct(e,t){return e.fromBits(t)}function Et(e,t){return e.toBits(t)}const zt=12;class Tt extends H{constructor({password:e,passwordVerification:t,checkPasswordOnly:n}){super({start(){v.assign(this,{password:e,passwordVerification:t}),Dt(this,e)},transform(e,t){const r=this;if(r.password){const t=_t(r,e.subarray(0,zt));if(r.password=null,t[11]!=r.passwordVerification)throw new L(Je);e=e.subarray(zt)}n?t.error(new L(Qe)):t.enqueue(_t(r,e))}})}}class Rt extends H{constructor({password:e,passwordVerification:t}){super({start(){v.assign(this,{password:e,passwordVerification:t}),Dt(this,e)},transform(e,t){const n=this;let r,a;if(n.password){n.password=null;const t=Xe(new D(zt));t[11]=n.passwordVerification,r=new D(e.length+t.length),r.set(Lt(n,t),0),a=zt}else r=new D(e.length),a=0;r.set(Lt(n,e),a),t.enqueue(r)}})}}function _t(e,t){const n=new D(t.length);for(let r=0;r>>24]),a=~e.crcKey2.get(),e.keys=[n,r,a]}function Ot(e){const t=2|e.keys[2];return Nt(C.imul(t,1^t)>>>8)}function Nt(e){return 255&e}function Pt(e){return 4294967295&e}const Ft="deflate-raw";class Mt extends H{constructor(e,{chunkSize:t,CompressionStream:n,CompressionStreamNative:r}){super({});const{compressed:a,encrypted:i,useCompressionStream:o,zipCrypto:s,signed:l,level:c}=e,u=this;let h,d,p=Bt(super.readable);i&&!s||!l||(h=new Me,p=Ht(p,h)),a&&(p=qt(p,o,{level:c,chunkSize:t},r,n)),i&&(s?p=Ht(p,new Rt(e)):(d=new kt(e),p=Ht(p,d))),jt(u,p,(()=>{let e;i&&!s&&(e=d.signature),i&&!s||!l||(e=new N(h.value.buffer).getUint32(0)),u.signature=e}))}}class Ut extends H{constructor(e,{chunkSize:t,DecompressionStream:n,DecompressionStreamNative:r}){super({});const{zipCrypto:a,encrypted:i,signed:o,signature:s,compressed:l,useCompressionStream:c}=e;let u,h,d=Bt(super.readable);i&&(a?d=Ht(d,new Tt(e)):(h=new wt(e),d=Ht(d,h))),l&&(d=qt(d,c,{chunkSize:t},r,n)),i&&!a||!o||(u=new Me,d=Ht(d,u)),jt(this,d,(()=>{if((!i||a)&&o){const e=new N(u.value.buffer);if(s!=e.getUint32(0,!1))throw new L(Ge)}}))}}function Bt(e){return Ht(e,new H({transform(e,t){e&&e.length&&t.enqueue(e)}}))}function jt(e,t,n){t=Ht(t,new H({flush:n})),v.defineProperty(e,"readable",{get:()=>t})}function qt(e,t,n,r,a){try{e=Ht(e,new(t&&r?r:a)(Ft,n))}catch(r){if(!t)throw r;e=Ht(e,new a(Ft,n))}return e}function Ht(e,t){return e.pipeThrough(t)}const Wt="message",Vt="start",Kt="pull",$t="data",Jt="ack",Gt="close",Qt="deflate",Xt="inflate";class Yt extends H{constructor(e,t){super({});const n=this,{codecType:r}=e;let a;r.startsWith(Qt)?a=Mt:r.startsWith(Xt)&&(a=Ut);let i=0;const o=new a(e,t),s=super.readable,l=new H({transform(e,t){e&&e.length&&(i+=e.length,t.enqueue(e))},flush(){const{signature:e}=o;v.assign(n,{signature:e,size:i})}});v.defineProperty(n,"readable",{get:()=>s.pipeThrough(o).pipeThrough(l)})}}const Zt=typeof G!=Ae;class en{constructor(e,{readable:t,writable:n},{options:r,config:a,streamOptions:i,useWebWorkers:o,transferStreams:s,scripts:l},c){const{signal:u}=i;return v.assign(e,{busy:!0,readable:t.pipeThrough(new tn(t,i,a),{signal:u}),writable:n,options:v.assign({},r),scripts:l,transferStreams:s,terminate(){const{worker:t,busy:n}=e;t&&!n&&(t.terminate(),e.interface=null)},onTaskFinished(){e.busy=!1,c(e)}}),(o&&Zt?an:rn)(e,a)}}class tn extends H{constructor(e,{onstart:t,onprogress:n,size:r,onend:a},{chunkSize:i}){let o=0;super({start(){t&&nn(t,r)},async transform(e,t){o+=e.length,n&&await nn(n,o,r),t.enqueue(e)},flush(){e.size=o,a&&nn(a,o)}},{highWaterMark:1,size:()=>i})}}async function nn(e,...t){try{await e(...t)}catch(e){}}function rn(e,t){return{run:()=>async function({options:e,readable:t,writable:n,onTaskFinished:r},a){const i=new Yt(e,a);try{await t.pipeThrough(i).pipeTo(n,{preventClose:!0,preventAbort:!0});const{signature:e,size:r}=i;return{signature:e,size:r}}finally{r()}}(e,t)}}function an(e,{baseURL:t,chunkSize:n}){return e.interface||v.assign(e,{worker:ln(e.scripts[0],t,e),interface:{run:()=>async function(e,t){let n,r;const a=new F(((e,t)=>{n=e,r=t}));v.assign(e,{reader:null,writer:null,resolveResult:n,rejectResult:r,result:a});const{readable:i,options:o,scripts:s}=e,{writable:l,closed:c}=function(e){const t=e.getWriter();let n;const r=new F((e=>n=e)),a=new V({async write(e){await t.ready,await t.write(e)},close(){t.releaseLock(),n()},abort:e=>t.abort(e)});return{writable:a,closed:r}}(e.writable),u=cn({type:Vt,scripts:s.slice(1),options:o,config:t,readable:i,writable:l},e);u||v.assign(e,{reader:i.getReader(),writer:l.getWriter()});const h=await a;try{await l.getWriter().close()}catch(e){}return await c,h}(e,{chunkSize:n})}}),e.interface}let on=!0,sn=!0;function ln(e,t,n){const r={type:"module"};let a,i;typeof e==Ce&&(e=e());try{a=new _(e,t)}catch(t){a=e}if(on)try{i=new G(a)}catch(e){on=!1,i=new G(a,r)}else i=new G(a,r);return i.addEventListener(Wt,(e=>async function({data:e},t){const{type:n,value:r,messageId:a,result:i,error:o}=e,{reader:s,writer:l,resolveResult:c,rejectResult:u,onTaskFinished:h}=t;try{if(o){const{message:e,stack:t,code:n,name:r}=o,a=new L(e);v.assign(a,{stack:t,code:n,name:r}),d(a)}else{if(n==Kt){const{value:e,done:n}=await s.read();cn({type:$t,value:e,done:n,messageId:a},t)}n==$t&&(await l.ready,await l.write(new D(r)),cn({type:Jt,messageId:a},t)),n==Gt&&d(null,i)}}catch(o){d(o)}function d(e,t){e?u(e):c(t),l&&l.releaseLock(),h()}}(e,n))),i}function cn(e,{worker:t,writer:n,onTaskFinished:r,transferStreams:a}){try{let{value:n,readable:r,writable:i}=e;const o=[];if(n&&(e.value=n.buffer,o.push(e.value)),a&&sn?(r&&o.push(r),i&&o.push(i)):e.readable=e.writable=null,o.length)try{return t.postMessage(e,o),!0}catch(n){sn=!1,e.readable=e.writable=null,t.postMessage(e)}else t.postMessage(e)}catch(e){throw n&&n.releaseLock(),r(),e}}let un=[];const hn=[];let dn=0;async function pn(e,t){const{options:n,config:r}=t,{transferStreams:a,useWebWorkers:i,useCompressionStream:o,codecType:s,compressed:l,signed:c,encrypted:u}=n,{workerScripts:h,maxWorkers:d,terminateWorkerTimeout:p}=r;t.transferStreams=a||a===Se;const f=!(l||c||u||t.transferStreams);let m;t.useWebWorkers=!f&&(i||i===Se&&r.useWebWorkers),t.scripts=t.useWebWorkers&&h?h[s]:[],n.useCompressionStream=o||o===Se&&r.useCompressionStream;const g=un.find((e=>!e.busy));if(g)fn(g),m=new en(g,e,t,b);else if(un.lengthhn.push({resolve:n,stream:e,workerOptions:t})));return m.run();function b(e){if(hn.length){const[{resolve:t,stream:n,workerOptions:r}]=hn.splice(0,1);t(new en(e,n,r,b))}else e.worker?(fn(e),S.isFinite(p)&&p>=0&&(e.terminateTimeout=setTimeout((()=>{un=un.filter((t=>t!=e)),e.terminate()}),p))):un=un.filter((t=>t!=e))}}function fn(e){const{terminateTimeout:t}=e;t&&(clearTimeout(t),e.terminateTimeout=null)}const mn="HTTP error ",gn="HTTP Range not supported",bn="Writer iterator completed too soon",yn="Content-Length",wn="Range",kn="HEAD",vn="GET",xn="bytes",Sn=65536,An="writable";class Cn{constructor(){this.size=0}init(){this.initialized=!0}}class En extends Cn{get readable(){const e=this,{chunkSize:t=Sn}=e,n=new W({start(){this.chunkOffset=0},async pull(r){const{offset:a=0,size:i,diskNumberStart:o}=n,{chunkOffset:s}=this;r.enqueue(await Gn(e,a+s,C.min(t,i-s),o)),s+t>i?r.close():this.chunkOffset+=t}});return n}}class zn extends Cn{constructor(){super();const e=this,t=new V({write:t=>e.writeUint8Array(t)});v.defineProperty(e,An,{get:()=>t})}writeUint8Array(){}}class Tn extends En{constructor(e){super(),v.assign(this,{blob:e,size:e.size})}async readUint8Array(e,t){const n=this,r=e+t,a=e||rt&&(i=i.slice(e,r)),new D(i)}}class Rn extends Cn{constructor(e){super();const t=new H,n=[];e&&n.push(["Content-Type",e]),v.defineProperty(this,An,{get:()=>t.writable}),this.blob=new R(t.readable,{headers:n}).blob()}getData(){return this.blob}}class _n extends En{constructor(e,t){super(),Dn(this,e,t)}async init(){await In(this,jn,Fn),super.init()}readUint8Array(e,t){return On(this,e,t,jn,Fn)}}class Ln extends En{constructor(e,t){super(),Dn(this,e,t)}async init(){await In(this,qn,Mn),super.init()}readUint8Array(e,t){return On(this,e,t,qn,Mn)}}function Dn(e,t,n){const{preventHeadRequest:r,useRangeHeader:a,forceRangeRequests:i}=n;delete(n=v.assign({},n)).preventHeadRequest,delete n.useRangeHeader,delete n.forceRangeRequests,delete n.useXHR,v.assign(e,{url:t,options:n,preventHeadRequest:r,useRangeHeader:a,forceRangeRequests:i})}async function In(e,t,n){const{url:r,useRangeHeader:a,forceRangeRequests:i}=e;if(function(e){const{baseURL:t}=Le(),{protocol:n}=new _(e,t);return"http:"==n||"https:"==n}(r)&&(a||i)){const{headers:r}=await t(vn,e,Nn(e));if(!i&&r.get("Accept-Ranges")!=xn)throw new L(gn);{let a;const i=r.get("Content-Range");if(i){const e=i.trim().split(/\s*\/\s*/);if(e.length){const t=e[1];t&&"*"!=t&&(a=S(t))}}a===Se?await Bn(e,t,n):e.size=a}}else await Bn(e,t,n)}async function On(e,t,n,r,a){const{useRangeHeader:i,forceRangeRequests:o,options:s}=e;if(i||o){const a=await r(vn,e,Nn(e,t,n));if(206!=a.status)throw new L(gn);return new D(await a.arrayBuffer())}{const{data:r}=e;return r||await a(e,s),new D(e.data.subarray(t,t+n))}}function Nn(e,t=0,n=1){return v.assign({},Pn(e),{[wn]:xn+"="+t+"-"+(t+n-1)})}function Pn({options:e}){const{headers:t}=e;if(t)return Symbol.iterator in t?v.fromEntries(t):t}async function Fn(e){await Un(e,jn)}async function Mn(e){await Un(e,qn)}async function Un(e,t){const n=await t(vn,e,Pn(e));e.data=new D(await n.arrayBuffer()),e.size||(e.size=e.data.length)}async function Bn(e,t,n){if(e.preventHeadRequest)await n(e,e.options);else{const r=(await t(kn,e,Pn(e))).headers.get(yn);r?e.size=S(r):await n(e,e.options)}}async function jn(e,{options:t,url:n},r){const a=await fetch(n,v.assign({},t,{method:e,headers:r}));if(a.status<400)return a;throw 416==a.status?new L(gn):new L(mn+(a.statusText||a.status))}function qn(e,{url:t},n){return new F(((r,a)=>{const i=new XMLHttpRequest;if(i.addEventListener("load",(()=>{if(i.status<400){const e=[];i.getAllResponseHeaders().trim().split(/[\r\n]+/).forEach((t=>{const n=t.trim().split(/\s*:\s*/);n[0]=n[0].trim().replace(/^[a-z]|-[a-z]/g,(e=>e.toUpperCase())),e.push(n)})),r({status:i.status,arrayBuffer:()=>i.response,headers:new z(e)})}else a(416==i.status?new L(gn):new L(mn+(i.statusText||i.status)))}),!1),i.addEventListener("error",(e=>a(e.detail?e.detail.error:new L("Network error"))),!1),i.open(e,t),n)for(const e of v.entries(n))i.setRequestHeader(e[0],e[1]);i.responseType="arraybuffer",i.send()}))}class Hn extends En{constructor(e,t={}){super(),v.assign(this,{url:e,reader:t.useXHR?new Ln(e,t):new _n(e,t)})}set size(e){}get size(){return this.reader.size}async init(){await this.reader.init(),super.init()}readUint8Array(e,t){return this.reader.readUint8Array(e,t)}}class Wn extends En{constructor(e){super(),this.readers=e}async init(){const e=this,{readers:t}=e;e.lastDiskNumber=0,e.lastDiskOffset=0,await F.all(t.map((async(n,r)=>{await n.init(),r!=t.length-1&&(e.lastDiskOffset+=n.size),e.size+=n.size}))),super.init()}async readUint8Array(e,t,n=0){const r=this,{readers:a}=this;let i,o=n;-1==o&&(o=a.length-1);let s=e;for(;s>=a[o].size;)s-=a[o].size,o++;const l=a[o],c=l.size;if(s+t<=c)i=await Gn(l,s,t);else{const a=c-s;i=new D(t),i.set(await Gn(l,s,a)),i.set(await r.readUint8Array(e+a,t-a,n),a)}return r.lastDiskNumber=C.max(o,r.lastDiskNumber),i}}class Vn extends Cn{constructor(e,t=4294967295){super();const n=this;let r,a,i;v.assign(n,{diskNumber:0,diskOffset:0,size:0,maxSize:t,availableSize:t});const o=new V({async write(t){const{availableSize:o}=n;if(i)t.length>=o?(await s(t.slice(0,o)),await l(),n.diskOffset+=r.size,n.diskNumber++,i=null,await this.write(t.slice(o))):await s(t);else{const{value:o,done:s}=await e.next();if(s&&!o)throw new L(bn);r=o,r.size=0,r.maxSize&&(n.maxSize=r.maxSize),n.availableSize=n.maxSize,await Kn(r),a=o.writable,i=a.getWriter(),await this.write(t)}},async close(){await i.ready,await l()}});async function s(e){const t=e.length;t&&(await i.ready,await i.write(e),r.size+=t,n.size+=t,n.availableSize-=t)}async function l(){a.size=r.size,await i.close()}v.defineProperty(n,An,{get:()=>o})}}async function Kn(e,t){e.init&&!e.initialized&&await e.init(t)}function $n(e){return k.isArray(e)&&(e=new Wn(e)),e instanceof W&&(e={readable:e}),e}function Jn(e){e.writable===Se&&typeof e.next==Ce&&(e=new Vn(e)),e instanceof V&&(e={writable:e});const{writable:t}=e;t.size===Se&&(t.size=0);return e instanceof Vn||v.assign(e,{diskNumber:0,diskOffset:0,availableSize:1/0,maxSize:1/0}),e}function Gn(e,t,n,r){return e.readUint8Array(t,n,r)}const Qn=Wn,Xn=Vn,Yn="\0☺☻♥♦♣♠•◘○◙♂♀♪♫☼►◄↕‼¶§▬↨↑↓→←∟↔▲▼ !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~⌂ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜ¢£¥₧ƒáíóúñѪº¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ ".split(""),Zn=256==Yn.length;function er(e,t){return t&&"cp437"==t.trim().toLowerCase()?function(e){if(Zn){let t="";for(let n=0;nthis[t]=e[t]))}}const vr="File format is not recognized",xr="End of central directory not found",Sr="End of Zip64 central directory not found",Ar="End of Zip64 central directory locator not found",Cr="Central directory header not found",Er="Local file header not found",zr="Zip64 extra field not found",Tr="File contains encrypted entry",Rr="Encryption method not supported",_r="Compression method not supported",Lr="Split zip file",Dr="utf-8",Ir="cp437",Or=[[ir,Q],[or,Q],[sr,Q],[lr,X]],Nr={[X]:{getValue:Vr,bytes:4},[Q]:{getValue:Kr,bytes:8}};class Pr{constructor(e,t,n){v.assign(this,{reader:e,config:t,options:n})}async getData(e,t,n={}){const r=this,{reader:a,offset:i,diskNumberStart:o,extraFieldAES:s,compressionMethod:l,config:c,bitFlag:u,signature:h,rawLastModDate:d,uncompressedSize:p,compressedSize:f}=r,m=t.localDirectory={},g=$r(await Gn(a,i,30,o));let b=Br(r,n,"password");if(b=b&&b.length&&b,s&&s.originalCompressionMethod!=ee)throw new L(_r);if(l!=Z&&l!=Y)throw new L(_r);if(Vr(g,0)!=te)throw new L(Er);Fr(m,g,4),m.rawExtraField=m.extraFieldLength?await Gn(a,i+30+m.filenameLength,m.extraFieldLength,o):new D,await Mr(r,m,g,4,!0),v.assign(t,{lastAccessDate:m.lastAccessDate,creationDate:m.creationDate});const y=r.encrypted&&m.encrypted,w=y&&!s;if(y){if(!w&&s.strength===Se)throw new L(Rr);if(!b)throw new L(Tr)}const k=i+30+m.filenameLength+m.extraFieldLength,x=f,S=a.readable;v.assign(S,{diskNumberStart:o,offset:k,size:x});const A=Br(r,n,"signal"),C=Br(r,n,"checkPasswordOnly");C&&(e=new V),e=Jn(e),await Kn(e,p);const{writable:E}=e,{onstart:z,onprogress:T,onend:R}=n,_={options:{codecType:Xt,password:b,zipCrypto:w,encryptionStrength:s&&s.strength,signed:Br(r,n,"checkSignature"),passwordVerification:w&&(u.dataDescriptor?d>>>8&255:h>>>24&255),signature:h,compressed:0!=l,encrypted:y,useWebWorkers:Br(r,n,"useWebWorkers"),useCompressionStream:Br(r,n,"useCompressionStream"),transferStreams:Br(r,n,"transferStreams"),checkPasswordOnly:C},config:c,streamOptions:{signal:A,size:x,onstart:z,onprogress:T,onend:R}};let I=0;try{({outputSize:I}=await pn({readable:S,writable:E},_))}catch(e){if(!C||e.message!=Qe)throw e}finally{const e=Br(r,n,"preventClose");E.size+=I,e||E.locked||await E.getWriter().close()}return C?void 0:e.getData?e.getData():E}}function Fr(e,t,n){const r=e.rawBitFlag=Wr(t,n+2),a=(r&me)==me,i=Vr(t,n+6);v.assign(e,{encrypted:a,version:Wr(t,n),bitFlag:{level:(6&r)>>1,dataDescriptor:(r&ge)==ge,languageEncodingFlag:(r&be)==be},rawLastModDate:i,lastModDate:jr(i),filenameLength:Wr(t,n+22),extraFieldLength:Wr(t,n+24)})}async function Mr(e,t,n,r,a){const{rawExtraField:i}=t,o=t.extraField=new z,s=$r(new D(i));let l=0;try{for(;lt[e]==n));for(let a=0,i=0;a=5&&(i.push(cr),o.push(ur));let s=1;i.forEach(((n,a)=>{if(e.data.length>=s+4){const i=Vr(r,s);t[n]=e[n]=new E(1e3*i);const l=o[a];e[l]=i}s+=4}))}(m,t,a),t.extraFieldExtendedTimestamp=m);const g=o.get(fe);g&&(t.extraFieldUSDZ=g)}async function Ur(e,t,n,r,a){const i=$r(e.data),o=new Fe;o.append(a[n]);const s=$r(new D(4));s.setUint32(0,o.get(),!0);const l=Vr(i,1);v.assign(e,{version:Hr(i,0),[t]:er(e.data.subarray(5)),valid:!a.bitFlag.languageEncodingFlag&&l==Vr(s,0)}),e.valid&&(r[t]=e[t],r[t+"UTF8"]=!0)}function Br(e,t,n){return t[n]===Se?e.options[n]:t[n]}function jr(e){const t=(4294901760&e)>>16,n=65535&e;try{return new E(1980+((65024&t)>>9),((480&t)>>5)-1,31&t,(63488&n)>>11,(2016&n)>>5,2*(31&n),0)}catch(e){}}function qr(e){return new E(S(e/A(1e4)-A(116444736e5)))}function Hr(e,t){return e.getUint8(t)}function Wr(e,t){return e.getUint16(t,!0)}function Vr(e,t){return e.getUint32(t,!0)}function Kr(e,t){return S(e.getBigUint64(t,!0))}function $r(e){return new N(e.buffer)}const Jr="File already exists",Gr="Zip file comment exceeds 64KB",Qr="File entry comment exceeds 64KB",Xr="File entry name exceeds 64KB",Yr="Version exceeds 65535",Zr="The strength must equal 1, 2, or 3",ea="Extra field type exceeds 65535",ta="Extra field data exceeds 64KB",na="Zip64 is not supported (make sure 'keepOrder' is set to 'true')",ra=new D([7,0,2,0,65,69,3,0,0]);let aa=0;const ia=[];async function oa(e,t){const n=e.getWriter();await n.ready,e.size+=ma(t),await n.write(t),n.releaseLock()}function sa(e){if(e)return(A(e.getTime())+A(116444736e5))*A(1e4)}function la(e,t,n,r){const a=t[n]===Se?e.options[n]:t[n];return a===Se?r:a}function ca(e,t,n){e.setUint8(t,n)}function ua(e,t,n){e.setUint16(t,n,!0)}function ha(e,t,n){e.setUint32(t,n,!0)}function da(e,t,n){e.setBigUint64(t,n,!0)}function pa(e,t,n){e.set(t,n)}function fa(e){return new N(e.buffer)}function ma(...e){let t=0;return e.forEach((e=>e&&(t+=e.length))),t}let ga;try{ga="undefined"==typeof document&&"undefined"==typeof location?new(require("url").URL)("file:"+__filename).href:"undefined"==typeof document?location.href:document.currentScript&&document.currentScript.src||new URL("single-file-extension-editor-helper.js",document.baseURI).href}catch(e){}Ie({baseURL:ga}),function(e){const t=()=>_.createObjectURL(new P(['const{Array:e,Object:t,Number:n,Math:r,Error:s,Uint8Array:a,Uint16Array:i,Uint32Array:o,Int32Array:l,Map:c,DataView:h,Promise:f,TextEncoder:u,crypto:p,postMessage:d,TransformStream:g,ReadableStream:w,WritableStream:v,CompressionStream:y,DecompressionStream:b}=self;class m{constructor(e){return class extends g{constructor(t,n){const r=new e(n);super({transform(e,t){t.enqueue(r.append(e))},flush(e){const t=r.flush();t&&e.enqueue(t)}})}}}}const _=[];for(let e=0;256>e;e++){let t=e;for(let e=0;8>e;e++)1&t?t=t>>>1^3988292384:t>>>=1;_[e]=t}class k{constructor(e){this.crc=e||-1}append(e){let t=0|this.crc;for(let n=0,r=0|e.length;r>n;n++)t=t>>>8^_[255&(t^e[n])];this.crc=t}get(){return~this.crc}}class S extends g{constructor(){let e;const t=new k;super({transform(e,n){t.append(e),n.enqueue(e)},flush(){const n=new a(4);new h(n.buffer).setUint32(0,t.get()),e.value=n}}),e=this}}const z={concat(e,t){if(0===e.length||0===t.length)return e.concat(t);const n=e[e.length-1],r=z.getPartial(n);return 32===r?e.concat(t):z._shiftRight(t,r,0|n,e.slice(0,e.length-1))},bitLength(e){const t=e.length;if(0===t)return 0;const n=e[t-1];return 32*(t-1)+z.getPartial(n)},clamp(e,t){if(32*e.length0&&t&&(e[n-1]=z.partial(t,e[n-1]&2147483648>>t-1,1)),e},partial:(e,t,n)=>32===e?t:(n?0|t:t<<32-e)+1099511627776*e,getPartial:e=>r.round(e/1099511627776)||32,_shiftRight(e,t,n,r){for(void 0===r&&(r=[]);t>=32;t-=32)r.push(n),n=0;if(0===t)return r.concat(e);for(let s=0;s>>t),n=e[s]<<32-t;const s=e.length?e[e.length-1]:0,a=z.getPartial(s);return r.push(z.partial(t+a&31,t+a>32?n:r.pop(),1)),r}},D={bytes:{fromBits(e){const t=z.bitLength(e)/8,n=new a(t);let r;for(let s=0;t>s;s++)0==(3&s)&&(r=e[s/4]),n[s]=r>>>24,r<<=8;return n},toBits(e){const t=[];let n,r=0;for(n=0;n9007199254740991)throw new s("Cannot hash more than 2^53 - 1 bits");const i=new o(n);let l=0;for(let e=t.blockSize+r-(t.blockSize+r&t.blockSize-1);a>=e;e+=t.blockSize)t._block(i.subarray(16*l,16*(l+1))),l+=1;return n.splice(0,16*l),t}finalize(){const e=this;let t=e._buffer;const n=e._h;t=z.concat(t,[z.partial(1,1)]);for(let e=t.length+2;15&e;e++)t.push(0);for(t.push(r.floor(e._length/4294967296)),t.push(0|e._length);t.length;)e._block(t.splice(0,16));return e.reset(),n}_f(e,t,n,r){return e>19?e>39?e>59?e>79?void 0:t^n^r:t&n|t&r|n&r:t^n^r:t&n|~t&r}_S(e,t){return t<>>32-e}_block(t){const n=this,s=n._h,a=e(80);for(let e=0;16>e;e++)a[e]=t[e];let i=s[0],o=s[1],l=s[2],c=s[3],h=s[4];for(let e=0;79>=e;e++){16>e||(a[e]=n._S(1,a[e-3]^a[e-8]^a[e-14]^a[e-16]));const t=n._S(5,i)+n._f(e,o,l,c)+h+a[e]+n._key[r.floor(e/20)]|0;h=c,c=l,l=n._S(30,o),o=i,i=t}s[0]=s[0]+i|0,s[1]=s[1]+o|0,s[2]=s[2]+l|0,s[3]=s[3]+c|0,s[4]=s[4]+h|0}},I={getRandomValues(e){const t=new o(e.buffer),n=e=>{let t=987654321;const n=4294967295;return()=>(t=36969*(65535&t)+(t>>16)&n,(((t<<16)+(e=18e3*(65535&e)+(e>>16)&n)&n)/4294967296+.5)*(r.random()>.5?1:-1))};for(let s,a=0;anew x.hmacSha1(D.bytes.toBits(e)),pbkdf2(e,t,n,r){if(n=n||1e4,0>r||0>n)throw new s("invalid params to pbkdf2");const a=1+(r>>5)<<2;let i,o,l,c,f;const u=new ArrayBuffer(a),p=new h(u);let d=0;const g=z;for(t=D.bytes.toBits(t),f=1;(a||1)>d;f++){for(i=o=e.encrypt(g.concat(t,[f])),l=1;n>l;l++)for(o=e.encrypt(o),c=0;cd&&ls&&(e=(new n).update(e).finalize());for(let t=0;s>t;t++)r[0][t]=909522486^e[t],r[1][t]=1549556828^e[t];t._baseHash[0].update(r[0]),t._baseHash[1].update(r[1]),t._resultHash=new n(t._baseHash[0])}reset(){const e=this;e._resultHash=new e._hash(e._baseHash[0]),e._updated=!1}update(e){this._updated=!0,this._resultHash.update(e)}digest(){const e=this,t=e._resultHash.finalize(),n=new e._hash(e._baseHash[1]).update(t).finalize();return e.reset(),n}encrypt(e){if(this._updated)throw new s("encrypt on already updated hmac called!");return this.update(e),this.digest(e)}}},A=void 0!==p&&"function"==typeof p.getRandomValues,T="Invalid password",R="Invalid signature",H="zipjs-abort-check-password";function q(e){return A?p.getRandomValues(e):I.getRandomValues(e)}const B=16,K={name:"PBKDF2"},V=t.assign({hash:{name:"HMAC"}},K),P=t.assign({iterations:1e3,hash:{name:"SHA-1"}},K),E=["deriveBits"],U=[8,12,16],W=[16,24,32],M=10,N=[0,0,0,0],O="undefined",F="function",L=typeof p!=O,j=L&&p.subtle,G=L&&typeof j!=O,X=D.bytes,J=class{constructor(e){const t=this;t._tables=[[[],[],[],[],[]],[[],[],[],[],[]]],t._tables[0][0][0]||t._precompute();const n=t._tables[0][4],r=t._tables[1],a=e.length;let i,o,l,c=1;if(4!==a&&6!==a&&8!==a)throw new s("invalid aes key size");for(t._key=[o=e.slice(0),l=[]],i=a;4*a+28>i;i++){let e=o[i-1];(i%a==0||8===a&&i%a==4)&&(e=n[e>>>24]<<24^n[e>>16&255]<<16^n[e>>8&255]<<8^n[255&e],i%a==0&&(e=e<<8^e>>>24^c<<24,c=c<<1^283*(c>>7))),o[i]=o[i-a]^e}for(let e=0;i;e++,i--){const t=o[3&e?i:i-4];l[e]=4>=i||4>e?t:r[0][n[t>>>24]]^r[1][n[t>>16&255]]^r[2][n[t>>8&255]]^r[3][n[255&t]]}}encrypt(e){return this._crypt(e,0)}decrypt(e){return this._crypt(e,1)}_precompute(){const e=this._tables[0],t=this._tables[1],n=e[4],r=t[4],s=[],a=[];let i,o,l,c;for(let e=0;256>e;e++)a[(s[e]=e<<1^283*(e>>7))^e]=e;for(let h=i=0;!n[h];h^=o||1,i=a[i]||1){let a=i^i<<1^i<<2^i<<3^i<<4;a=a>>8^255&a^99,n[h]=a,r[a]=h,c=s[l=s[o=s[h]]];let f=16843009*c^65537*l^257*o^16843008*h,u=257*s[a]^16843008*a;for(let n=0;4>n;n++)e[n][h]=u=u<<24^u>>>8,t[n][a]=f=f<<24^f>>>8}for(let n=0;5>n;n++)e[n]=e[n].slice(0),t[n]=t[n].slice(0)}_crypt(e,t){if(4!==e.length)throw new s("invalid aes block size");const n=this._key[t],r=n.length/4-2,a=[0,0,0,0],i=this._tables[t],o=i[0],l=i[1],c=i[2],h=i[3],f=i[4];let u,p,d,g=e[0]^n[0],w=e[t?3:1]^n[1],v=e[2]^n[2],y=e[t?1:3]^n[3],b=4;for(let e=0;r>e;e++)u=o[g>>>24]^l[w>>16&255]^c[v>>8&255]^h[255&y]^n[b],p=o[w>>>24]^l[v>>16&255]^c[y>>8&255]^h[255&g]^n[b+1],d=o[v>>>24]^l[y>>16&255]^c[g>>8&255]^h[255&w]^n[b+2],y=o[y>>>24]^l[g>>16&255]^c[w>>8&255]^h[255&v]^n[b+3],b+=4,g=u,w=p,v=d;for(let e=0;4>e;e++)a[t?3&-e:e]=f[g>>>24]<<24^f[w>>16&255]<<16^f[v>>8&255]<<8^f[255&y]^n[b++],u=g,g=w,w=v,v=y,y=u;return a}},Q=class{constructor(e,t){this._prf=e,this._initIv=t,this._iv=t}reset(){this._iv=this._initIv}update(e){return this.calculate(this._prf,e,this._iv)}incWord(e){if(255==(e>>24&255)){let t=e>>16&255,n=e>>8&255,r=255&e;255===t?(t=0,255===n?(n=0,255===r?r=0:++r):++n):++t,e=0,e+=t<<16,e+=n<<8,e+=r}else e+=1<<24;return e}incCounter(e){0===(e[0]=this.incWord(e[0]))&&(e[1]=this.incWord(e[1]))}calculate(e,t,n){let r;if(!(r=t.length))return[];const s=z.bitLength(t);for(let s=0;r>s;s+=4){this.incCounter(n);const r=e.encrypt(n);t[s]^=r[0],t[s+1]^=r[1],t[s+2]^=r[2],t[s+3]^=r[3]}return z.clamp(t,s)}},Y=x.hmacSha1;let Z=L&&G&&typeof j.importKey==F,$=L&&G&&typeof j.deriveBits==F;class ee extends g{constructor({password:e,signed:n,encryptionStrength:r,checkPasswordOnly:i}){super({start(){t.assign(this,{ready:new f((e=>this.resolveReady=e)),password:e,signed:n,strength:r-1,pending:new a})},async transform(e,t){const n=this,{password:r,strength:o,resolveReady:l,ready:c}=n;r?(await(async(e,t,n,r)=>{const a=await re(e,t,n,ae(r,0,U[t])),i=ae(r,U[t]);if(a[0]!=i[0]||a[1]!=i[1])throw new s(T)})(n,o,r,ae(e,0,U[o]+2)),e=ae(e,U[o]+2),i?t.error(new s(H)):l()):await c;const h=new a(e.length-M-(e.length-M)%B);t.enqueue(ne(n,e,h,0,M,!0))},async flush(e){const{signed:t,ctr:n,hmac:r,pending:i,ready:o}=this;await o;const l=ae(i,0,i.length-M),c=ae(i,i.length-M);let h=new a;if(l.length){const e=oe(X,l);r.update(e);const t=n.update(e);h=ie(X,t)}if(t){const e=ae(ie(X,r.digest()),0,M);for(let t=0;M>t;t++)if(e[t]!=c[t])throw new s(R)}e.enqueue(h)}})}}class te extends g{constructor({password:e,encryptionStrength:n}){let r;super({start(){t.assign(this,{ready:new f((e=>this.resolveReady=e)),password:e,strength:n-1,pending:new a})},async transform(e,t){const n=this,{password:r,strength:s,resolveReady:i,ready:o}=n;let l=new a;r?(l=await(async(e,t,n)=>{const r=q(new a(U[t]));return se(r,await re(e,t,n,r))})(n,s,r),i()):await o;const c=new a(l.length+e.length-e.length%B);c.set(l,0),t.enqueue(ne(n,e,c,l.length,0))},async flush(e){const{ctr:t,hmac:n,pending:s,ready:i}=this;await i;let o=new a;if(s.length){const e=t.update(oe(X,s));n.update(e),o=ie(X,e)}r.signature=ie(X,n.digest()).slice(0,M),e.enqueue(se(o,r.signature))}}),r=this}}function ne(e,t,n,r,s,i){const{ctr:o,hmac:l,pending:c}=e,h=t.length-s;let f;for(c.length&&(t=se(c,t),n=((e,t)=>{if(t&&t>e.length){const n=e;(e=new a(t)).set(n,0)}return e})(n,h-h%B)),f=0;h-B>=f;f+=B){const e=oe(X,ae(t,f,f+B));i&&l.update(e);const s=o.update(e);i||l.update(s),n.set(ie(X,s),f+r)}return e.pending=ae(t,f),n}async function re(n,r,s,i){n.password=null;const o=(e=>{if(void 0===u){const t=new a((e=unescape(encodeURIComponent(e))).length);for(let n=0;n{if(!Z)return x.importKey(t);try{return await j.importKey("raw",t,n,!1,s)}catch(e){return Z=!1,x.importKey(t)}})(0,o,V,0,E),c=await(async(e,t,n)=>{if(!$)return x.pbkdf2(t,e.salt,P.iterations,n);try{return await j.deriveBits(e,t,n)}catch(r){return $=!1,x.pbkdf2(t,e.salt,P.iterations,n)}})(t.assign({salt:i},P),l,8*(2*W[r]+2)),h=new a(c),f=oe(X,ae(h,0,W[r])),p=oe(X,ae(h,W[r],2*W[r])),d=ae(h,2*W[r]);return t.assign(n,{keys:{key:f,authentication:p,passwordVerification:d},ctr:new Q(new J(f),e.from(N)),hmac:new Y(p)}),d}function se(e,t){let n=e;return e.length+t.length&&(n=new a(e.length+t.length),n.set(e,0),n.set(t,e.length)),n}function ae(e,t,n){return e.subarray(t,n)}function ie(e,t){return e.fromBits(t)}function oe(e,t){return e.toBits(t)}class le extends g{constructor({password:e,passwordVerification:n,checkPasswordOnly:r}){super({start(){t.assign(this,{password:e,passwordVerification:n}),ue(this,e)},transform(e,t){const n=this;if(n.password){const t=he(n,e.subarray(0,12));if(n.password=null,t[11]!=n.passwordVerification)throw new s(T);e=e.subarray(12)}r?t.error(new s(H)):t.enqueue(he(n,e))}})}}class ce extends g{constructor({password:e,passwordVerification:n}){super({start(){t.assign(this,{password:e,passwordVerification:n}),ue(this,e)},transform(e,t){const n=this;let r,s;if(n.password){n.password=null;const t=q(new a(12));t[11]=n.passwordVerification,r=new a(e.length+t.length),r.set(fe(n,t),0),s=12}else r=new a(e.length),s=0;r.set(fe(n,e),s),t.enqueue(r)}})}}function he(e,t){const n=new a(t.length);for(let r=0;r>>24]),a=~e.crcKey2.get(),e.keys=[n,s,a]}function de(e){const t=2|e.keys[2];return ge(r.imul(t,1^t)>>>8)}function ge(e){return 255&e}function we(e){return 4294967295&e}const ve="deflate-raw";class ye extends g{constructor(e,{chunkSize:t,CompressionStream:n,CompressionStreamNative:r}){super({});const{compressed:s,encrypted:a,useCompressionStream:i,zipCrypto:o,signed:l,level:c}=e,f=this;let u,p,d=me(super.readable);a&&!o||!l||(u=new S,d=Se(d,u)),s&&(d=ke(d,i,{level:c,chunkSize:t},r,n)),a&&(o?d=Se(d,new ce(e)):(p=new te(e),d=Se(d,p))),_e(f,d,(()=>{let e;a&&!o&&(e=p.signature),a&&!o||!l||(e=new h(u.value.buffer).getUint32(0)),f.signature=e}))}}class be extends g{constructor(e,{chunkSize:t,DecompressionStream:n,DecompressionStreamNative:r}){super({});const{zipCrypto:a,encrypted:i,signed:o,signature:l,compressed:c,useCompressionStream:f}=e;let u,p,d=me(super.readable);i&&(a?d=Se(d,new le(e)):(p=new ee(e),d=Se(d,p))),c&&(d=ke(d,f,{chunkSize:t},r,n)),i&&!a||!o||(u=new S,d=Se(d,u)),_e(this,d,(()=>{if((!i||a)&&o){const e=new h(u.value.buffer);if(l!=e.getUint32(0,!1))throw new s(R)}}))}}function me(e){return Se(e,new g({transform(e,t){e&&e.length&&t.enqueue(e)}}))}function _e(e,n,r){n=Se(n,new g({flush:r})),t.defineProperty(e,"readable",{get:()=>n})}function ke(e,t,n,r,s){try{e=Se(e,new(t&&r?r:s)(ve,n))}catch(r){if(!t)throw r;e=Se(e,new s(ve,n))}return e}function Se(e,t){return e.pipeThrough(t)}const ze="data";class De extends g{constructor(e,n){super({});const r=this,{codecType:s}=e;let a;s.startsWith("deflate")?a=ye:s.startsWith("inflate")&&(a=be);let i=0;const o=new a(e,n),l=super.readable,c=new g({transform(e,t){e&&e.length&&(i+=e.length,t.enqueue(e))},flush(){const{signature:e}=o;t.assign(r,{signature:e,size:i})}});t.defineProperty(r,"readable",{get:()=>l.pipeThrough(o).pipeThrough(c)})}}const Ce=new c,Ie=new c;let xe=0;async function Ae(e){try{const{options:t,scripts:r,config:s}=e;r&&r.length&&importScripts.apply(void 0,r),self.initCodec&&self.initCodec(),s.CompressionStreamNative=self.CompressionStream,s.DecompressionStreamNative=self.DecompressionStream,self.Deflate&&(s.CompressionStream=new m(self.Deflate)),self.Inflate&&(s.DecompressionStream=new m(self.Inflate));const a={highWaterMark:1,size:()=>s.chunkSize},i=e.readable||new w({async pull(e){const t=new f((e=>Ce.set(xe,e)));Te({type:"pull",messageId:xe}),xe=(xe+1)%n.MAX_SAFE_INTEGER;const{value:r,done:s}=await t;e.enqueue(r),s&&e.close()}},a),o=e.writable||new v({async write(e){let t;const r=new f((e=>t=e));Ie.set(xe,t),Te({type:ze,value:e,messageId:xe}),xe=(xe+1)%n.MAX_SAFE_INTEGER,await r}},a),l=new De(t,s);await i.pipeThrough(l).pipeTo(o,{preventClose:!0,preventAbort:!0});try{await o.getWriter().close()}catch(e){}const{signature:c,size:h}=l;Te({type:"close",result:{signature:c,size:h}})}catch(e){Re(e)}}function Te(e){let{value:t}=e;if(t)if(t.length)try{t=new a(t),e.value=t.buffer,d(e,[e.value])}catch(t){d(e)}else d(e);else d(e)}function Re(e=new s("Unknown error")){const{message:t,stack:n,code:r,name:a}=e;d({error:{message:t,stack:n,code:r,name:a}})}addEventListener("message",(({data:e})=>{const{type:t,messageId:n,value:r,done:s}=e;try{if("start"==t&&Ae(e),t==ze){const e=Ce.get(n);Ce.delete(n),e({value:new a(r),done:s})}if("ack"==t){const e=Ie.get(n);Ie.delete(n),e()}}catch(e){Re(e)}}));var He=a,qe=i,Be=l,Ke=new He([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,0,0,0]),Ve=new He([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,0,0]),Pe=new He([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Ee=(e,t)=>{for(var n=new qe(31),r=0;31>r;++r)n[r]=t+=1<r;++r)for(var a=n[r];aje;++je){var Ge=(43690&je)>>1|(21845&je)<<1;Ge=(61680&(Ge=(52428&Ge)>>2|(13107&Ge)<<2))>>4|(3855&Ge)<<4,Le[je]=((65280&Ge)>>8|(255&Ge)<<8)>>1}var Xe=(e,t,n)=>{for(var r=e.length,s=0,a=new qe(t);r>s;++s)e[s]&&++a[e[s]-1];var i,o=new qe(t);for(s=1;t>s;++s)o[s]=o[s-1]+a[s-1]<<1;if(n){i=new qe(1<s;++s)if(e[s])for(var c=s<<4|e[s],h=t-e[s],f=o[e[s]-1]++<=f;++f)i[Le[f]>>l]=c}else for(i=new qe(r),s=0;r>s;++s)e[s]&&(i[s]=Le[o[e[s]-1]++]>>15-e[s]);return i},Je=new He(288);for(je=0;144>je;++je)Je[je]=8;for(je=144;256>je;++je)Je[je]=9;for(je=256;280>je;++je)Je[je]=7;for(je=280;288>je;++je)Je[je]=8;var Qe=new He(32);for(je=0;32>je;++je)Qe[je]=5;var Ye=Xe(Je,9,0),Ze=Xe(Je,9,1),$e=Xe(Qe,5,0),et=Xe(Qe,5,1),tt=e=>{for(var t=e[0],n=1;nt&&(t=e[n]);return t},nt=(e,t,n)=>{var r=t/8|0;return(e[r]|e[r+1]<<8)>>(7&t)&n},rt=(e,t)=>{var n=t/8|0;return(e[n]|e[n+1]<<8|e[n+2]<<16)>>(7&t)},st=e=>(e+7)/8|0,at=(e,t,n)=>{(null==t||0>t)&&(t=0),(null==n||n>e.length)&&(n=e.length);var r=new He(n-t);return r.set(e.subarray(t,n)),r},it=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],ot=(e,t,n)=>{var r=new s(t||it[e]);if(r.code=e,s.captureStackTrace&&s.captureStackTrace(r,ot),!n)throw r;return r},lt=(e,t,n)=>{n<<=7&t;var r=t/8|0;e[r]|=n,e[r+1]|=n>>8},ct=(e,t,n)=>{n<<=7&t;var r=t/8|0;e[r]|=n,e[r+1]|=n>>8,e[r+2]|=n>>16},ht=(e,t)=>{for(var n=[],r=0;re.f-t.f)),n.push({s:-1,f:25001});var o=n[0],l=n[1],c=0,h=1,f=2;for(n[0]={s:-1,f:o.f+l.f,l:o,r:l};h!=s-1;)o=n[n[c].fr;++r)a[r].s>u&&(u=a[r].s);var p=new qe(u+1),d=ft(n[h-1],p,0);if(d>t){r=0;var g=0,w=d-t,v=1<p[t.s]-p[e.s]||e.f-t.f));s>r;++r){var y=a[r].s;if(p[y]<=t)break;g+=v-(1<>=w;g>0;){var b=a[r].s;p[b]=0&&g;--r){var m=a[r].s;p[m]==t&&(--p[m],++g)}d=t}return{t:new He(p),l:d}},ft=(e,t,n)=>-1==e.s?r.max(ft(e.l,t,n+1),ft(e.r,t,n+1)):t[e.s]=n,ut=e=>{for(var t=e.length;t&&!e[--t];);for(var n=new qe(++t),r=0,s=e[0],a=1,i=e=>{n[r++]=e},o=1;t>=o;++o)if(e[o]==s&&o!=t)++a;else{if(!s&&a>2){for(;a>138;a-=138)i(32754);a>2&&(i(a>10?a-11<<5|28690:a-3<<5|12305),a=0)}else if(a>3){for(i(s),--a;a>6;a-=6)i(8304);a>2&&(i(a-3<<5|8208),a=0)}for(;a--;)i(s);a=1,s=e[o]}return{c:n.subarray(0,r),n:t}},pt=(e,t)=>{for(var n=0,r=0;r{var r=n.length,s=st(t+2);e[s]=255&r,e[s+1]=r>>8,e[s+2]=255^e[s],e[s+3]=255^e[s+1];for(var a=0;r>a;++a)e[s+a+4]=n[a];return 8*(s+4+r)},gt=(e,t,n,r,s,a,i,o,l,c,h)=>{lt(t,h++,n),++s[256];for(var f=ht(s,15),u=f.t,p=f.l,d=ht(a,15),g=d.t,w=d.l,v=ut(u),y=v.c,b=v.n,m=ut(g),_=m.c,k=m.n,S=new qe(19),z=0;z4&&!C[Pe[x-1]];--x);var A,T,R,H,q=c+5<<3,B=pt(s,Je)+pt(a,Qe)+i,K=pt(s,u)+pt(a,g)+i+14+3*x+pt(S,C)+2*S[16]+3*S[17]+7*S[18];if(l>=0&&B>=q&&K>=q)return dt(t,h,e.subarray(l,l+c));if(lt(t,h,1+(B>K)),h+=2,B>K){A=Xe(u,p,0),T=u,R=Xe(g,w,0),H=g;var V=Xe(C,I,0);for(lt(t,h,b-257),lt(t,h+5,k-1),lt(t,h+10,x-4),h+=14,z=0;x>z;++z)lt(t,h+3*z,C[Pe[z]]);h+=3*x;for(var P=[y,_],E=0;2>E;++E){var U=P[E];for(z=0;z15&&(lt(t,h,U[z]>>5&127),h+=U[z]>>12)}}}else A=Ye,T=Je,R=$e,H=Qe;for(z=0;o>z;++z){var M=r[z];if(M>255){ct(t,h,A[257+(W=M>>18&31)]),h+=T[W+257],W>7&&(lt(t,h,M>>23&31),h+=Ke[W]);var N=31&M;ct(t,h,R[N]),h+=H[N],N>3&&(ct(t,h,M>>5&8191),h+=Ve[N])}else ct(t,h,A[M]),h+=T[M]}return ct(t,h,A[256]),h+T[256]},wt=new Be([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),vt=new He(0),yt=function(){function e(e,t){if("function"==typeof e&&(t=e,e={}),this.ondata=t,this.o=e||{},this.s={l:0,i:32768,w:32768,z:32768},this.b=new He(98304),this.o.dictionary){var n=this.o.dictionary.subarray(-32768);this.b.set(n,32768-n.length),this.s.i=32768-n.length}}return e.prototype.p=function(e,t){this.ondata(((e,t,n,s,a)=>{if(!a&&(a={l:1},t.dictionary)){var i=t.dictionary.subarray(-32768),o=new He(i.length+e.length);o.set(i),o.set(e,i.length),e=o,a.w=i.length}return((e,t,n,s,a,i)=>{var o=i.z||e.length,l=new He(0+o+5*(1+r.ceil(o/7e3))+0),c=l.subarray(0,l.length-0),h=i.l,f=7&(i.r||0);if(t){f&&(c[0]=i.r>>3);for(var u=wt[t-1],p=u>>13,d=8191&u,g=(1<(e[t]^e[t+1]<C+2;++C){var T=m(C),R=32767&C,H=v[T];if(w[R]=H,v[T]=R,C>=x){var q=o-C;if((z>7e3||I>24576)&&(q>423||!h)){f=gt(e,c,0,_,k,S,D,I,A,C-A,f),I=z=D=0,A=C;for(var B=0;286>B;++B)k[B]=0;for(B=0;30>B;++B)S[B]=0}var K=2,V=0,P=d,E=R-H&32767;if(q>2&&T==m(C-E))for(var U=r.min(p,q)-1,W=r.min(32767,C),M=r.min(258,q);W>=E&&--P&&R!=H;){if(e[C+K]==e[C+K-E]){for(var N=0;M>N&&e[C+N]==e[C+N-E];++N);if(N>K){if(K=N,V=E,N>U)break;var O=r.min(E,N-2),F=0;for(B=0;O>B;++B){var L=C-E+B&32767,j=L-w[L]&32767;j>F&&(F=j,H=L)}}}E+=(R=H)-(H=w[R])&32767}if(V){_[I++]=268435456|Me[K]<<18|Fe[V];var G=31&Me[K],X=31&Fe[V];D+=Ke[G]+Ve[X],++k[257+G],++S[X],x=C+K,++z}else _[I++]=e[C],++k[e[C]]}}for(C=r.max(C,x);o>C;++C)_[I++]=e[C],++k[e[C]];f=gt(e,c,h,_,k,S,D,I,A,C-A,f),h||(i.r=7&f|c[f/8|0]<<3,f-=7,i.h=v,i.p=w,i.i=C,i.w=x)}else{for(C=i.w||0;o+h>C;C+=65535){var J=C+65535;o>J||(c[f/8|0]=h,J=o),f=dt(c,f+1,e.subarray(C,J))}i.i=o}return at(l,0,0+st(f)+0)})(e,null==t.level?6:t.level,null==t.mem?r.ceil(1.5*r.max(8,r.min(13,r.log(e.length)))):12+t.mem,0,0,a)})(e,this.o,0,0,this.s),t)},e.prototype.push=function(e,t){this.ondata||ot(5),this.s.l&&ot(4);var n=e.length+this.s.z;if(n>this.b.length){if(n>2*this.b.length-32768){var r=new He(-32768&n);r.set(this.b.subarray(0,this.s.z)),this.b=r}var s=this.b.length-this.s.z;s&&(this.b.set(e.subarray(0,s),this.s.z),this.s.z=this.b.length,this.p(this.b,!1)),this.b.set(this.b.subarray(-32768)),this.b.set(e.subarray(s),32768),this.s.z=e.length-s+32768,this.s.i=32766,this.s.w=32768}else this.b.set(e,this.s.z),this.s.z+=e.length;this.s.l=1&t,(this.s.z>this.s.w+8191||t)&&(this.p(this.b,t||!1),this.s.w=this.s.i,this.s.i-=2)},e}(),bt=function(){function e(e,t){"function"==typeof e&&(t=e,e={}),this.ondata=t;var n=e&&e.dictionary&&e.dictionary.subarray(-32768);this.s={i:0,b:n?n.length:0},this.o=new He(32768),this.p=new He(0),n&&this.o.set(n)}return e.prototype.e=function(e){if(this.ondata||ot(5),this.d&&ot(4),this.p.length){if(e.length){var t=new He(this.p.length+e.length);t.set(this.p),t.set(e,this.p.length),this.p=t}}else this.p=e},e.prototype.c=function(e){this.s.i=+(this.d=e||!1);var t=this.s.b,n=((e,t,n)=>{var s=e.length;if(!s||t.f&&!t.l)return n||new He(0);var a=!n||2!=t.i,i=t.i;n||(n=new He(3*s));var o=e=>{var t=n.length;if(e>t){var s=new He(r.max(2*t,e));s.set(n),n=s}},l=t.f||0,c=t.p||0,h=t.b||0,f=t.l,u=t.d,p=t.m,d=t.n,g=8*s;do{if(!f){l=nt(e,c,1);var w=nt(e,c+1,3);if(c+=3,!w){var v=e[(x=st(c)+4)-4]|e[x-3]<<8,y=x+v;if(y>s){i&&ot(0);break}a&&o(h+v),n.set(e.subarray(x,y),h),t.b=h+=v,t.p=c=8*y,t.f=l;continue}if(1==w)f=Ze,u=et,p=9,d=5;else if(2==w){var b=nt(e,c,31)+257,m=nt(e,c+10,15)+4,_=b+nt(e,c+5,31)+1;c+=14;for(var k=new He(_),S=new He(19),z=0;m>z;++z)S[Pe[z]]=nt(e,c+3*z,7);c+=3*m;var D=tt(S),C=(1<z;){var x,A=I[nt(e,c,C)];if(c+=15&A,16>(x=A>>4))k[z++]=x;else{var T=0,R=0;for(16==x?(R=3+nt(e,c,3),c+=2,T=k[z-1]):17==x?(R=3+nt(e,c,7),c+=3):18==x&&(R=11+nt(e,c,127),c+=7);R--;)k[z++]=T}}var H=k.subarray(0,b),q=k.subarray(b);p=tt(H),d=tt(q),f=Xe(H,p,1),u=Xe(q,d,1)}else ot(1);if(c>g){i&&ot(0);break}}a&&o(h+131072);for(var B=(1<>4;if((c+=15&T)>g){i&&ot(0);break}if(T||ot(2),256>P)n[h++]=P;else{if(256==P){V=c,f=null;break}var E=P-254;if(P>264){var U=Ke[z=P-257];E=nt(e,c,(1<>4;if(W||ot(3),c+=15&W,q=Oe[M],M>3&&(U=Ve[M],q+=rt(e,c)&(1<g){i&&ot(0);break}a&&o(h+131072);var N=h+E;if(q>h){var O=0-q,F=r.min(q,N);for(0>O+h&&ot(3);F>h;++h)n[h]=undefined[O+h]}for(;N>h;h+=4)n[h]=n[h-q],n[h+1]=n[h+1-q],n[h+2]=n[h+2-q],n[h+3]=n[h+3-q];h=N}}t.l=f,t.p=V,t.b=h,t.f=l,f&&(l=1,t.m=p,t.d=u,t.n=d)}while(!l);return h==n.length?n:at(n,0,h)})(this.p,this.s,this.o);this.ondata(at(n,t,this.s.b),this.d),this.o=at(n,this.s.b-32768),this.s.b=this.o.length,this.p=at(this.p,this.s.p/8|0),this.s.p&=7},e.prototype.push=function(e,t){this.e(e),this.c(t)},e}(),mt="undefined"!=typeof TextDecoder&&new TextDecoder;try{mt.decode(vt,{stream:!0})}catch(e){}function _t(e,n,r){return class{constructor(s){const i=this;var o,l;o=s,l="level",("function"==typeof t.hasOwn?t.hasOwn(o,l):o.hasOwnProperty(l))&&void 0===s.level&&delete s.level,i.codec=new e(t.assign({},n,s)),r(i.codec,(e=>{if(i.pendingData){const t=i.pendingData;i.pendingData=new a(t.length+e.length);const{pendingData:n}=i;n.set(t,0),n.set(e,t.length)}else i.pendingData=new a(e)}))}append(e){return this.codec.push(e),s(this)}flush(){return this.codec.push(new a,!0),s(this)}};function s(e){if(e.pendingData){const t=e.pendingData;return e.pendingData=null,t}return new a}}const{Deflate:kt,Inflate:St}=((e,t={},n)=>({Deflate:_t(e.Deflate,t.deflate,n),Inflate:_t(e.Inflate,t.inflate,n)}))({Deflate:yt,Inflate:bt},void 0,((e,t)=>e.ondata=t));self.initCodec=()=>{self.Deflate=kt,self.Inflate=St};\n'],{type:"text/javascript"}));e({workerScripts:{inflate:[t],deflate:[t]}})}(Ie);var ba=Object.freeze({__proto__:null,BlobReader:Tn,BlobWriter:Rn,Data64URIReader:class extends En{constructor(e){super();let t=e.length;for(;"="==e.charAt(t-1);)t--;const n=e.indexOf(",")+1;v.assign(this,{dataURI:e,dataStart:n,size:C.floor(.75*(t-n))})}readUint8Array(e,t){const{dataStart:n,dataURI:r}=this,a=new D(t),i=4*C.floor(e/3),o=atob(r.substring(i+n,4*C.ceil((e+t)/3)+n)),s=e-3*C.floor(i/4);for(let e=s;e2?t.data+=q(r):t.pending=r}getData(){return this.data+q(this.pending)}},ERR_BAD_FORMAT:vr,ERR_CENTRAL_DIRECTORY_NOT_FOUND:Cr,ERR_DUPLICATED_NAME:Jr,ERR_ENCRYPTED:Tr,ERR_EOCDR_LOCATOR_ZIP64_NOT_FOUND:Ar,ERR_EOCDR_NOT_FOUND:xr,ERR_EOCDR_ZIP64_NOT_FOUND:Sr,ERR_EXTRAFIELD_ZIP64_NOT_FOUND:zr,ERR_HTTP_RANGE:gn,ERR_INVALID_COMMENT:Gr,ERR_INVALID_ENCRYPTION_STRENGTH:Zr,ERR_INVALID_ENTRY_COMMENT:Qr,ERR_INVALID_ENTRY_NAME:Xr,ERR_INVALID_EXTRAFIELD_DATA:ta,ERR_INVALID_EXTRAFIELD_TYPE:ea,ERR_INVALID_PASSWORD:Je,ERR_INVALID_SIGNATURE:Ge,ERR_INVALID_VERSION:Yr,ERR_ITERATOR_COMPLETED_TOO_SOON:bn,ERR_LOCAL_FILE_HEADER_NOT_FOUND:Er,ERR_SPLIT_ZIP_FILE:Lr,ERR_UNSUPPORTED_COMPRESSION:_r,ERR_UNSUPPORTED_ENCRYPTION:Rr,ERR_UNSUPPORTED_FORMAT:na,HttpRangeReader:class extends Hn{constructor(e,t={}){t.useRangeHeader=!0,super(e,t)}},HttpReader:Hn,Reader:En,SplitDataReader:Wn,SplitDataWriter:Vn,SplitZipReader:Qn,SplitZipWriter:Xn,TextReader:class extends Tn{constructor(e){super(new P([e],{type:"text/plain"}))}},TextWriter:class extends Rn{constructor(e){super(e),v.assign(this,{encoding:e,utf8:!e||"utf-8"==e.toLowerCase()})}async getData(){const{encoding:e,utf8:t}=this,n=await super.getData();if(n.text&&t)return n.text();{const t=new FileReader;return new F(((r,a)=>{v.assign(t,{onload:({target:e})=>r(e.result),onerror:()=>a(t.error)}),t.readAsText(n,e)}))}}},Uint8ArrayReader:class extends En{constructor(e){super(),v.assign(this,{array:e,size:e.length})}readUint8Array(e,t){return this.array.slice(e,e+t)}},Uint8ArrayWriter:class extends zn{init(e=0){v.assign(this,{offset:0,array:new D(e)}),super.init()}writeUint8Array(e){const t=this;if(t.offset+e.length>t.array.length){const n=t.array;t.array=new D(n.length+e.length),t.array.set(n)}t.array.set(e,t.offset),t.offset+=e.length}getData(){return this.array}},Writer:zn,ZipReader:class{constructor(e,t={}){v.assign(this,{reader:$n(e),options:t,config:Le()})}async*getEntriesGenerator(e={}){const t=this;let{reader:n}=t;const{config:r}=t;if(await Kn(n),n.size!==Se&&n.readUint8Array||(n=new Tn(await new R(n.readable).blob()),await Kn(n)),n.size=0;e--)if(o[e]==i[0]&&o[e+1]==i[1]&&o[e+2]==i[2]&&o[e+3]==i[3])return{offset:a+e,buffer:o.slice(e,e+r).buffer}}}(n,ie,n.size,le,1048560);if(!a){throw Vr($r(await Gn(n,0,4)))==ne?new L(Lr):new L(xr)}const i=$r(a);let o=Vr(i,12),s=Vr(i,16);const l=a.offset,c=Wr(i,20),u=l+le+c;let h=Wr(i,4);const d=n.lastDiskNumber||0;let p=Wr(i,6),f=Wr(i,8),m=0,g=0;if(s==Q||o==Q||f==X||p==X){const e=$r(await Gn(n,a.offset-20,20));if(Vr(e,0)!=se)throw new L(Sr);s=Kr(e,8);let t=await Gn(n,s,56,-1),r=$r(t);const i=a.offset-20-56;if(Vr(r,0)!=oe&&s!=i){const e=s;s=i,m=s-e,t=await Gn(n,s,56,-1),r=$r(t)}if(Vr(r,0)!=oe)throw new L(Ar);h==X&&(h=Vr(r,16)),p==X&&(p=Vr(r,20)),f==X&&(f=Kr(r,32)),o==Q&&(o=Kr(r,40)),s-=o}if(d!=h)throw new L(Lr);if(s<0||s>=n.size)throw new L(vr);let b=0,y=await Gn(n,s,o,p),w=$r(y);if(o){const e=a.offset-o;if(Vr(w,b)!=ae&&s!=e){const t=s;s=e,m=s-t,y=await Gn(n,s,o,p),w=$r(y)}}const k=a.offset-s-(n.lastDiskOffset||0);if(o!=k&&k>=0&&(o=k,y=await Gn(n,s,o,p),w=$r(y)),s<0||s>=n.size)throw new L(vr);const x=Br(t,e,"filenameEncoding"),S=Br(t,e,"commentEncoding");for(let a=0;ai.getData(e,I,t),b=k;const{onprogress:O}=e;if(O)try{await O(a+1,f,new kr(i))}catch(e){}yield I}const A=Br(t,e,"extractPrependedData"),E=Br(t,e,"extractAppendedData");return A&&(t.prependedData=g>0?await Gn(n,0,g):new D),t.comment=c?await Gn(n,l+le,c):new D,E&&(t.appendedData=uia.push(e)));try{if(e=e.trim(),r.filenames.has(e))throw new L(Jr);return r.filenames.add(e),o=async function(e,t,n,r){t=t.trim(),r.directory&&!t.endsWith(ke)?t+=ke:r.directory=t.endsWith(ke);const a=Ue(t);if(ma(a)>X)throw new L(Xr);const i=r.comment||"",o=Ue(i);if(ma(o)>X)throw new L(Qr);const s=la(e,r,"version",20);if(s>X)throw new L(Yr);const l=la(e,r,"versionMadeBy",20);if(l>X)throw new L(Yr);const c=la(e,r,cr,new E),u=la(e,r,hr),h=la(e,r,pr),d=la(e,r,br,!0),p=la(e,r,mr,0),f=la(e,r,gr,0),m=la(e,r,"password"),g=la(e,r,"encryptionStrength",3),b=la(e,r,"zipCrypto"),y=la(e,r,"extendedTimestamp",!0),w=la(e,r,"keepOrder",!0),x=la(e,r,"level"),S=la(e,r,"useWebWorkers"),z=la(e,r,"bufferedWrite"),T=la(e,r,"dataDescriptorSignature",!1),R=la(e,r,"signal"),_=la(e,r,"useCompressionStream");let P=la(e,r,"dataDescriptor",!0),M=la(e,r,yr);if(m!==Se&&g!==Se&&(g<1||g>3))throw new L(Zr);let U=new D;const{extraField:B}=r;if(B){let e=0,t=0;B.forEach((t=>e+=4+ma(t))),U=new D(e),B.forEach(((e,n)=>{if(n>X)throw new L(ea);if(ma(e)>X)throw new L(ta);pa(U,new I([n]),t),pa(U,new I([ma(e)]),t+2),pa(U,e,t+4),t+=4+ma(e)}))}let j=0,q=0,H=0;const W=!0===M;n&&(n=$n(n),await Kn(n),n.size===Se?(P=!0,(M||M===Se)&&(M=!0,H=j=Q)):(H=n.size,j=function(e){return e+5*(C.floor(e/16383)+1)}(H)));const{diskOffset:V,diskNumber:K,maxSize:$}=e.writer,J=W||H>=Q,G=W||j>=Q,ae=W||e.offset+e.pendingEntriesSize-V>=Q,ie=la(e,r,"supportZip64SplitFile",!0),oe=ie&&W||K+C.ceil(e.pendingEntriesSize/$)>=X;if(ae||J||G||oe){if(!1===M||!w)throw new L(na);M=!0}M=M||!1,r=v.assign({},r,{rawFilename:a,rawComment:o,version:s,versionMadeBy:l,lastModDate:c,lastAccessDate:u,creationDate:h,rawExtraField:U,zip64:M,zip64UncompressedSize:J,zip64CompressedSize:G,zip64Offset:ae,zip64DiskNumberStart:oe,password:m,level:x,useWebWorkers:S,encryptionStrength:g,extendedTimestamp:y,zipCrypto:b,bufferedWrite:z,keepOrder:w,dataDescriptor:P,dataDescriptorSignature:T,signal:R,msDosCompatible:d,internalFileAttribute:p,externalFileAttribute:f,useCompressionStream:_});const se=function(e){const{rawFilename:t,lastModDate:n,lastAccessDate:r,creationDate:a,password:i,level:o,zip64:s,zipCrypto:l,dataDescriptor:c,directory:u,rawExtraField:h,encryptionStrength:d,extendedTimestamp:p}=e,f=0!==o&&!u,m=Boolean(i&&ma(i));let g,b,y,w,k=e.version;if(m&&!l){g=new D(ma(ra)+2);const e=fa(g);ua(e,0,ue),pa(g,ra,2),ca(e,8,d)}else g=new D;if(p){y=new D(9+(r?4:0)+(a?4:0));const e=fa(y);ua(e,0,pe),ua(e,2,ma(y)-4),w=1+(r?2:0)+(a?4:0),ca(e,4,w);let t=5;ha(e,t,C.floor(n.getTime()/1e3)),t+=4,r&&(ha(e,t,C.floor(r.getTime()/1e3)),t+=4),a&&ha(e,t,C.floor(a.getTime()/1e3));try{b=new D(36);const e=fa(b),t=sa(n);ua(e,0,he),ua(e,2,32),ua(e,8,de),ua(e,10,24),da(e,12,t),da(e,20,sa(r)||t),da(e,28,sa(a)||t)}catch(e){b=new D}}else b=y=new D;let v=be;c&&(v|=ge);let x=Z;f&&(x=Y);s&&(k=k>ye?k:ye);m&&(v|=me,l||(k=k>we?k:we,x=ee,f&&(g[9]=Y)));const S=new D(26),A=fa(S);ua(A,0,k),ua(A,2,v),ua(A,4,x);const E=new O(1),z=fa(E);let T;T=nve?ve:n;ua(z,0,(T.getHours()<<6|T.getMinutes())<<5|T.getSeconds()/2),ua(z,2,(T.getFullYear()-1980<<4|T.getMonth()+1)<<5|T.getDate());const R=E[0];ha(A,6,R),ua(A,22,ma(t));const _=ma(g,y,b,h);ua(A,24,_);const L=new D(30+ma(t)+_);return ha(fa(L),0,te),pa(L,S,4),pa(L,t,30),pa(L,g,30+ma(t)),pa(L,y,30+ma(t,g)),pa(L,b,30+ma(t,g,y)),pa(L,h,30+ma(t,g,y,b)),{localHeaderArray:L,headerArray:S,headerView:A,lastModDate:n,rawLastModDate:R,encrypted:m,compressed:f,version:k,compressionMethod:x,extraFieldExtendedTimestampFlag:w,rawExtraFieldExtendedTimestamp:y,rawExtraFieldNTFS:b,rawExtraFieldAES:g,extraFieldLength:_}}(r),le=function(e){const{zip64:t,dataDescriptor:n,dataDescriptorSignature:r}=e;let a,i=new D,o=0;n&&(i=new D(t?r?24:20:r?16:12),a=fa(i),r&&(o=4,ha(a,0,re)));return{dataDescriptorArray:i,dataDescriptorView:a,dataDescriptorOffset:o}}(r),Ae=ma(se.localHeaderArray,le.dataDescriptorArray);q=Ae+j,e.options.usdz&&(q+=q+64);let Ce;e.pendingEntriesSize+=q;try{Ce=await async function(e,t,n,r,a){const{files:i,writer:o}=e,{keepOrder:s,dataDescriptor:l,signal:c}=a,{headerInfo:u}=r,{usdz:h}=e.options,d=k.from(i.values()).pop();let p,f,m,g,b,y,w={};i.set(t,w);try{let u;s&&(u=d&&d.lock,x()),!(a.bufferedWrite||e.writerLocked||e.bufferedWrites&&s)&&l||h?(y=o,await S()):(y=new Rn,y.writable.size=0,p=!0,e.bufferedWrites++,await Kn(o)),await Kn(y);const{writable:f}=o;let{diskOffset:m}=o;if(e.addSplitZipSignature){delete e.addSplitZipSignature;const t=new D(4);ha(fa(t),0,ne),await oa(f,t),e.offset+=4}p||(await u,await C(f));const{diskNumber:k}=o;if(b=!0,w.diskNumberStart=k,h&&function(e,t){const{headerInfo:n}=e;let{localHeaderArray:r,extraFieldLength:a}=n,i=fa(r),o=64-(t+r.length)%64;o<4&&(o+=64);const s=new D(o),l=fa(s);ua(l,0,fe),ua(l,2,o-2);const c=r;n.localHeaderArray=r=new D(c.length+o),pa(r,c),pa(r,s,c.length),i=fa(r),ua(i,28,a+o),e.metadataSize+=o}(r,e.offset-m),w=await async function(e,t,{diskNumberStart:n,lock:r},a,i,o){const{headerInfo:s,dataDescriptorInfo:l,metadataSize:c}=a,{localHeaderArray:u,headerArray:h,lastModDate:d,rawLastModDate:p,encrypted:f,compressed:m,version:g,compressionMethod:b,rawExtraFieldExtendedTimestamp:y,extraFieldExtendedTimestampFlag:w,rawExtraFieldNTFS:k,rawExtraFieldAES:x}=s,{dataDescriptorArray:S}=l,{rawFilename:C,lastAccessDate:E,creationDate:z,password:T,level:R,zip64:_,zip64UncompressedSize:L,zip64CompressedSize:I,zip64Offset:O,zip64DiskNumberStart:N,zipCrypto:P,dataDescriptor:F,directory:M,versionMadeBy:U,rawComment:B,rawExtraField:j,useWebWorkers:q,onstart:H,onprogress:W,onend:V,signal:K,encryptionStrength:$,extendedTimestamp:J,msDosCompatible:G,internalFileAttribute:X,externalFileAttribute:Y,useCompressionStream:Z}=o,ee={lock:r,versionMadeBy:U,zip64:_,directory:Boolean(M),filenameUTF8:!0,rawFilename:C,commentUTF8:!0,rawComment:B,rawExtraFieldExtendedTimestamp:y,rawExtraFieldNTFS:k,rawExtraFieldAES:x,rawExtraField:j,extendedTimestamp:J,msDosCompatible:G,internalFileAttribute:X,externalFileAttribute:Y,diskNumberStart:n};let te,ne=0,re=0;const{writable:ae}=t;if(e){e.chunkSize=De(i),await oa(ae,u);const t=e.readable,n=t.size=e.size,r={options:{codecType:Qt,level:R,password:T,encryptionStrength:$,zipCrypto:f&&P,passwordVerification:f&&P&&p>>8&255,signed:!0,compressed:m,encrypted:f,useWebWorkers:q,useCompressionStream:Z,transferStreams:!1},config:i,streamOptions:{signal:K,size:n,onstart:H,onprogress:W,onend:V}},a=await pn({readable:t,writable:ae},r);ae.size+=a.size,te=a.signature,re=e.size=t.size,ne=a.size}else await oa(ae,u);let ie;if(_){let e=4;L&&(e+=8),I&&(e+=8),O&&(e+=8),N&&(e+=4),ie=new D(e)}else ie=new D;(function(e,t){const{signature:n,rawExtraFieldZip64:r,compressedSize:a,uncompressedSize:i,headerInfo:o,dataDescriptorInfo:s}=e,{headerView:l,encrypted:c}=o,{dataDescriptorView:u,dataDescriptorOffset:h}=s,{zip64:d,zip64UncompressedSize:p,zip64CompressedSize:f,zipCrypto:m,dataDescriptor:g}=t;c&&!m||n===Se||(ha(l,10,n),g&&ha(u,h,n));if(d){const e=fa(r);ua(e,0,ce),ua(e,2,r.length-4);let t=4;p&&(ha(l,18,Q),da(e,t,A(i)),t+=8),f&&(ha(l,14,Q),da(e,t,A(a))),g&&(da(u,h+4,A(a)),da(u,h+12,A(i)))}else ha(l,14,a),ha(l,18,i),g&&(ha(u,h+4,a),ha(u,h+8,i))})({signature:te,rawExtraFieldZip64:ie,compressedSize:ne,uncompressedSize:re,headerInfo:s,dataDescriptorInfo:l},o),F&&await oa(ae,S);return v.assign(ee,{uncompressedSize:re,compressedSize:ne,lastModDate:d,rawLastModDate:p,creationDate:z,lastAccessDate:E,encrypted:f,length:c+ne,compressionMethod:b,version:g,headerArray:h,signature:te,rawExtraFieldZip64:ie,extraFieldExtendedTimestampFlag:w,zip64UncompressedSize:L,zip64CompressedSize:I,zip64Offset:O,zip64DiskNumberStart:N}),ee}(n,y,w,r,e.config,a),b=!1,i.set(t,w),w.filename=t,p){await y.writable.getWriter().close();let e=await y.getData();await u,await S(),g=!0,l||(e=await async function(e,t,n,{zipCrypto:r}){let a;a=await t.slice(0,26).arrayBuffer(),26!=a.byteLength&&(a=a.slice(0,26));const i=new N(a);e.encrypted&&!r||ha(i,14,e.signature);e.zip64?(ha(i,18,Q),ha(i,22,Q)):(ha(i,18,e.compressedSize),ha(i,22,e.uncompressedSize));return await oa(n,new D(a)),t.slice(a.byteLength)}(w,e,f,a)),await C(f),w.diskNumberStart=o.diskNumber,m=o.diskOffset,await e.stream().pipeTo(f,{preventClose:!0,preventAbort:!0,signal:c}),f.size+=e.size,g=!1}if(w.offset=e.offset-m,w.zip64)!function(e,t){const{rawExtraFieldZip64:n,offset:r,diskNumberStart:a}=e,{zip64UncompressedSize:i,zip64CompressedSize:o,zip64Offset:s,zip64DiskNumberStart:l}=t,c=fa(n);let u=4;i&&(u+=8);o&&(u+=8);s&&(da(c,u,A(r)),u+=8);l&&ha(c,u,a)}(w,a);else if(w.offset>=Q)throw new L(na);return e.offset+=w.length,w}catch(n){if(p&&g||!p&&b){if(e.hasCorruptedEntries=!0,n)try{n.corruptedEntry=!0}catch(e){}p?e.offset+=y.writable.size:e.offset=y.writable.size}throw i.delete(t),n}finally{p&&e.bufferedWrites--,m&&m(),f&&f()}function x(){w.lock=new F((e=>m=e))}async function S(){e.writerLocked=!0;const{lockWriter:t}=e;e.lockWriter=new F((t=>f=()=>{e.writerLocked=!1,t()})),await t}async function C(e){u.localHeaderArray.length>o.availableSize&&(o.availableSize=0,await oa(e,new D))}}(e,t,n,{headerInfo:se,dataDescriptorInfo:le,metadataSize:Ae},r)}finally{e.pendingEntriesSize-=q}return v.assign(Ce,{name:t,comment:i,extraField:B}),new kr(Ce)}(r,e,t,n),a.add(o),await o}catch(t){throw r.filenames.delete(e),t}finally{a.delete(o);const e=ia.shift();e?e():aa--}}async close(e=new D,t={}){const{pendingAddFileCalls:n,writer:r}=this,{writable:a}=r;for(;n.size;)await F.all(k.from(n));await async function(e,t,n){const{files:r,writer:a}=e,{diskOffset:i,writable:o}=a;let{diskNumber:s}=a,l=0,c=0,u=e.offset-i,h=r.size;for(const[,e]of r){const{rawFilename:t,rawExtraFieldZip64:n,rawExtraFieldAES:r,rawComment:a,rawExtraFieldNTFS:i,rawExtraField:o,extendedTimestamp:s,extraFieldExtendedTimestampFlag:l,lastModDate:u}=e;let h;if(s){h=new D(9);const e=fa(h);ua(e,0,pe),ua(e,2,5),ca(e,4,l),ha(e,5,C.floor(u.getTime()/1e3))}else h=new D;e.rawExtraFieldCDExtendedTimestamp=h,c+=46+ma(t,a,n,r,i,h,o)}const d=new D(c),p=fa(d);await Kn(a);let f=0;for(const[e,t]of k.from(r.values()).entries()){const{offset:i,rawFilename:s,rawExtraFieldZip64:c,rawExtraFieldAES:u,rawExtraFieldCDExtendedTimestamp:h,rawExtraFieldNTFS:m,rawExtraField:g,rawComment:b,versionMadeBy:y,headerArray:w,directory:k,zip64:v,zip64UncompressedSize:x,zip64CompressedSize:S,zip64DiskNumberStart:A,zip64Offset:C,msDosCompatible:E,internalFileAttribute:z,externalFileAttribute:T,diskNumberStart:R,uncompressedSize:_,compressedSize:L}=t,D=ma(c,u,h,m,g);ha(p,l,ae),ua(p,l+4,y);const I=fa(w);x||ha(I,18,_),S||ha(I,14,L),pa(d,w,l+6),ua(p,l+30,D),ua(p,l+32,ma(b)),ua(p,l+34,v&&A?X:R),ua(p,l+36,z),T?ha(p,l+38,T):k&&E&&ca(p,l+38,16),ha(p,l+42,v&&C?Q:i),pa(d,s,l+46),pa(d,c,l+46+ma(s)),pa(d,u,l+46+ma(s,c)),pa(d,h,l+46+ma(s,c,u)),pa(d,m,l+46+ma(s,c,u,h)),pa(d,g,l+46+ma(s,c,u,h,m)),pa(d,b,l+46+ma(s)+D);const O=46+ma(s,b)+D;if(l-f>a.availableSize&&(a.availableSize=0,await oa(o,d.slice(f,l)),f=l),l+=O,n.onprogress)try{await n.onprogress(e+1,r.size,new kr(t))}catch(e){}}await oa(o,f?d.slice(f):d);let m=a.diskNumber;const{availableSize:g}=a;g=Q||c>=Q||h>=X||m>=X){if(!1===b)throw new L(na);b=!0}const y=new D(b?98:le),w=fa(y);if(l=0,b){ha(w,0,oe),da(w,4,A(44)),ua(w,12,45),ua(w,14,45),ha(w,16,m),ha(w,20,s),da(w,24,A(h)),da(w,32,A(h)),da(w,40,A(c)),da(w,48,A(u)),ha(w,56,se),da(w,64,A(u)+A(c)),ha(w,72,m+1);la(e,n,"supportZip64SplitFile",!0)&&(m=X,s=X),h=X,u=Q,c=Q,l+=76}ha(w,l,ie),ua(w,l+4,m),ua(w,l+6,s),ua(w,l+8,h),ua(w,l+10,h),ha(w,l+12,c),ha(w,l+16,u);const v=ma(t);if(v){if(!(v<=X))throw new L(Gr);ua(w,l+20,v)}await oa(o,y),v&&await oa(o,t)}(this,e,t);return la(this,t,"preventClose")||await a.getWriter().close(),r.getData?r.getData():a}},configure:Ie,getMimeType:function(){return"application/octet-stream"},initReader:$n,initShimAsyncCodec:function(e,t={},n){return{Deflate:Ne(e.Deflate,t.deflate,n),Inflate:Ne(e.Inflate,t.inflate,n)}},initStream:Kn,initWriter:Jn,readUint8Array:Gn,terminateWorkers:function(){un.forEach((e=>{fn(e),e.terminate()}))}}),ya=Object.create,wa=Object.defineProperty,ka=Object.getOwnPropertyDescriptor,va=Object.getOwnPropertyNames,xa=Object.getPrototypeOf,Sa=Object.prototype.hasOwnProperty,Aa=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Ca=(e,t)=>{for(var n in t)wa(e,n,{get:t[n],enumerable:!0})},Ea=Aa((e=>{var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");e.encode=function(e){if(0<=e&&e{var t=Ea();e.encode=function(e){var n,r="",a=function(e){return e<0?1+(-e<<1):0+(e<<1)}(e);do{n=31&a,(a>>>=5)>0&&(n|=32),r+=t.encode(n)}while(a>0);return r},e.decode=function(e,n,r){var a,i,o=e.length,s=0,l=0;do{if(n>=o)throw new Error("Expected more digits in base 64 VLQ value.");if(-1===(i=t.decode(e.charCodeAt(n++))))throw new Error("Invalid base64 digit: "+e.charAt(n-1));a=!!(32&i),s+=(i&=31)<>1;return 1==(1&e)?-t:t}(s),r.rest=n}})),Ta=Aa((e=>{e.getArg=function(e,t,n){if(t in e)return e[t];if(3===arguments.length)return n;throw new Error('"'+t+'" is a required argument.')};var t=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,n=/^data:.+\,.+$/;function r(e){var n=e.match(t);return n?{scheme:n[1],auth:n[2],host:n[3],port:n[4],path:n[5]}:null}function a(e){var t="";return e.scheme&&(t+=e.scheme+":"),t+="//",e.auth&&(t+=e.auth+"@"),e.host&&(t+=e.host),e.port&&(t+=":"+e.port),e.path&&(t+=e.path),t}e.urlParse=r,e.urlGenerate=a;var i=function(e){var t=[];return function(n){for(var r=0;r32&&t.pop(),i}}((function(t){var n=t,i=r(t);if(i){if(!i.path)return t;n=i.path}for(var o=e.isAbsolute(n),s=[],l=0,c=0;;){if(l=c,-1===(c=n.indexOf("/",l))){s.push(n.slice(l));break}for(s.push(n.slice(l,c));c=0;c--)"."===(u=s[c])?s.splice(c,1):".."===u?h++:h>0&&(""===u?(s.splice(c+1,h),h=0):(s.splice(c,2),h--));return""===(n=s.join("/"))&&(n=o?"/":"."),i?(i.path=n,a(i)):n}));function o(e,t){""===e&&(e="."),""===t&&(t=".");var o=r(t),s=r(e);if(s&&(e=s.path||"/"),o&&!o.scheme)return s&&(o.scheme=s.scheme),a(o);if(o||t.match(n))return t;if(s&&!s.host&&!s.path)return s.host=t,a(s);var l="/"===t.charAt(0)?t:i(e.replace(/\/+$/,"")+"/"+t);return s?(s.path=l,a(s)):l}e.normalize=i,e.join=o,e.isAbsolute=function(e){return"/"===e.charAt(0)||t.test(e)},e.relative=function(e,t){""===e&&(e="."),e=e.replace(/\/$/,"");for(var n=0;0!==t.indexOf(e+"/");){var r=e.lastIndexOf("/");if(r<0||(e=e.slice(0,r)).match(/^([^\/]+:\/)?\/*$/))return t;++n}return Array(n+1).join("../")+t.substr(e.length+1)};var s=!("__proto__"in Object.create(null));function l(e){return e}function c(e){if(!e)return!1;var t=e.length;if(t<9||95!==e.charCodeAt(t-1)||95!==e.charCodeAt(t-2)||111!==e.charCodeAt(t-3)||116!==e.charCodeAt(t-4)||111!==e.charCodeAt(t-5)||114!==e.charCodeAt(t-6)||112!==e.charCodeAt(t-7)||95!==e.charCodeAt(t-8)||95!==e.charCodeAt(t-9))return!1;for(var n=t-10;n>=0;n--)if(36!==e.charCodeAt(n))return!1;return!0}function u(e,t){return e===t?0:null===e?1:null===t?-1:e>t?1:-1}e.toSetString=s?l:function(e){return c(e)?"$"+e:e},e.fromSetString=s?l:function(e){return c(e)?e.slice(1):e},e.compareByOriginalPositions=function(e,t,n){var r=u(e.source,t.source);return 0!==r||0!==(r=e.originalLine-t.originalLine)||(0!==(r=e.originalColumn-t.originalColumn)||n)||0!==(r=e.generatedColumn-t.generatedColumn)||0!==(r=e.generatedLine-t.generatedLine)?r:u(e.name,t.name)},e.compareByOriginalPositionsNoSource=function(e,t,n){var r;return 0!==(r=e.originalLine-t.originalLine)||(0!==(r=e.originalColumn-t.originalColumn)||n)||0!==(r=e.generatedColumn-t.generatedColumn)||0!==(r=e.generatedLine-t.generatedLine)?r:u(e.name,t.name)},e.compareByGeneratedPositionsDeflated=function(e,t,n){var r=e.generatedLine-t.generatedLine;return 0!==r||(0!==(r=e.generatedColumn-t.generatedColumn)||n)||0!==(r=u(e.source,t.source))||0!==(r=e.originalLine-t.originalLine)||0!==(r=e.originalColumn-t.originalColumn)?r:u(e.name,t.name)},e.compareByGeneratedPositionsDeflatedNoLine=function(e,t,n){var r=e.generatedColumn-t.generatedColumn;return 0!==r||n||0!==(r=u(e.source,t.source))||0!==(r=e.originalLine-t.originalLine)||0!==(r=e.originalColumn-t.originalColumn)?r:u(e.name,t.name)},e.compareByGeneratedPositionsInflated=function(e,t){var n=e.generatedLine-t.generatedLine;return 0!==n||0!==(n=e.generatedColumn-t.generatedColumn)||0!==(n=u(e.source,t.source))||0!==(n=e.originalLine-t.originalLine)||0!==(n=e.originalColumn-t.originalColumn)?n:u(e.name,t.name)},e.parseSourceMapInput=function(e){return JSON.parse(e.replace(/^\)]}'[^\n]*\n/,""))},e.computeSourceURL=function(e,t,n){if(t=t||"",e&&("/"!==e[e.length-1]&&"/"!==t[0]&&(e+="/"),t=e+t),n){var s=r(n);if(!s)throw new Error("sourceMapURL could not be parsed");if(s.path){var l=s.path.lastIndexOf("/");l>=0&&(s.path=s.path.substring(0,l+1))}t=o(a(s),t)}return i(t)}})),Ra=Aa((e=>{var t=Ta(),n=Object.prototype.hasOwnProperty,r=typeof Map<"u";function a(){this._array=[],this._set=r?new Map:Object.create(null)}a.fromArray=function(e,t){for(var n=new a,r=0,i=e.length;r=0)return a}else{var i=t.toSetString(e);if(n.call(this._set,i))return this._set[i]}throw new Error('"'+e+'" is not in the set.')},a.prototype.at=function(e){if(e>=0&&e{var t=Ta();function n(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}n.prototype.unsortedForEach=function(e,t){this._array.forEach(e,t)},n.prototype.add=function(e){!function(e,n){var r=e.generatedLine,a=n.generatedLine,i=e.generatedColumn,o=n.generatedColumn;return a>r||a==r&&o>=i||t.compareByGeneratedPositionsInflated(e,n)<=0}(this._last,e)?(this._sorted=!1,this._array.push(e)):(this._last=e,this._array.push(e))},n.prototype.toArray=function(){return this._sorted||(this._array.sort(t.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},e.MappingList=n})),La=Aa((e=>{var t=za(),n=Ta(),r=Ra().ArraySet,a=_a().MappingList;function i(e){e||(e={}),this._file=n.getArg(e,"file",null),this._sourceRoot=n.getArg(e,"sourceRoot",null),this._skipValidation=n.getArg(e,"skipValidation",!1),this._sources=new r,this._names=new r,this._mappings=new a,this._sourcesContents=null}i.prototype._version=3,i.fromSourceMap=function(e){var t=e.sourceRoot,r=new i({file:e.file,sourceRoot:t});return e.eachMapping((function(e){var a={generated:{line:e.generatedLine,column:e.generatedColumn}};null!=e.source&&(a.source=e.source,null!=t&&(a.source=n.relative(t,a.source)),a.original={line:e.originalLine,column:e.originalColumn},null!=e.name&&(a.name=e.name)),r.addMapping(a)})),e.sources.forEach((function(a){var i=a;null!==t&&(i=n.relative(t,a)),r._sources.has(i)||r._sources.add(i);var o=e.sourceContentFor(a);null!=o&&r.setSourceContent(a,o)})),r},i.prototype.addMapping=function(e){var t=n.getArg(e,"generated"),r=n.getArg(e,"original",null),a=n.getArg(e,"source",null),i=n.getArg(e,"name",null);this._skipValidation||this._validateMapping(t,r,a,i),null!=a&&(a=String(a),this._sources.has(a)||this._sources.add(a)),null!=i&&(i=String(i),this._names.has(i)||this._names.add(i)),this._mappings.add({generatedLine:t.line,generatedColumn:t.column,originalLine:null!=r&&r.line,originalColumn:null!=r&&r.column,source:a,name:i})},i.prototype.setSourceContent=function(e,t){var r=e;null!=this._sourceRoot&&(r=n.relative(this._sourceRoot,r)),null!=t?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[n.toSetString(r)]=t):this._sourcesContents&&(delete this._sourcesContents[n.toSetString(r)],0===Object.keys(this._sourcesContents).length&&(this._sourcesContents=null))},i.prototype.applySourceMap=function(e,t,a){var i=t;if(null==t){if(null==e.file)throw new Error('SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map\'s "file" property. Both were omitted.');i=e.file}var o=this._sourceRoot;null!=o&&(i=n.relative(o,i));var s=new r,l=new r;this._mappings.unsortedForEach((function(t){if(t.source===i&&null!=t.originalLine){var r=e.originalPositionFor({line:t.originalLine,column:t.originalColumn});null!=r.source&&(t.source=r.source,null!=a&&(t.source=n.join(a,t.source)),null!=o&&(t.source=n.relative(o,t.source)),t.originalLine=r.line,t.originalColumn=r.column,null!=r.name&&(t.name=r.name))}var c=t.source;null!=c&&!s.has(c)&&s.add(c);var u=t.name;null!=u&&!l.has(u)&&l.add(u)}),this),this._sources=s,this._names=l,e.sources.forEach((function(t){var r=e.sourceContentFor(t);null!=r&&(null!=a&&(t=n.join(a,t)),null!=o&&(t=n.relative(o,t)),this.setSourceContent(t,r))}),this)},i.prototype._validateMapping=function(e,t,n,r){if(t&&"number"!=typeof t.line&&"number"!=typeof t.column)throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if(!(e&&"line"in e&&"column"in e&&e.line>0&&e.column>=0)||t||n||r){if(e&&"line"in e&&"column"in e&&t&&"line"in t&&"column"in t&&e.line>0&&e.column>=0&&t.line>0&&t.column>=0&&n)return;throw new Error("Invalid mapping: "+JSON.stringify({generated:e,source:n,original:t,name:r}))}},i.prototype._serializeMappings=function(){for(var e,r,a,i,o=0,s=1,l=0,c=0,u=0,h=0,d="",p=this._mappings.toArray(),f=0,m=p.length;f0){if(!n.compareByGeneratedPositionsInflated(r,p[f-1]))continue;e+=","}e+=t.encode(r.generatedColumn-o),o=r.generatedColumn,null!=r.source&&(i=this._sources.indexOf(r.source),e+=t.encode(i-h),h=i,e+=t.encode(r.originalLine-1-c),c=r.originalLine-1,e+=t.encode(r.originalColumn-l),l=r.originalColumn,null!=r.name&&(a=this._names.indexOf(r.name),e+=t.encode(a-u),u=a)),d+=e}return d},i.prototype._generateSourcesContent=function(e,t){return e.map((function(e){if(!this._sourcesContents)return null;null!=t&&(e=n.relative(t,e));var r=n.toSetString(e);return Object.prototype.hasOwnProperty.call(this._sourcesContents,r)?this._sourcesContents[r]:null}),this)},i.prototype.toJSON=function(){var e={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return null!=this._file&&(e.file=this._file),null!=this._sourceRoot&&(e.sourceRoot=this._sourceRoot),this._sourcesContents&&(e.sourcesContent=this._generateSourcesContent(e.sources,e.sourceRoot)),e},i.prototype.toString=function(){return JSON.stringify(this.toJSON())},e.SourceMapGenerator=i}));Ca({},{AtKeyword:()=>Na,BadString:()=>Ma,BadUrl:()=>Ba,CDC:()=>$a,CDO:()=>Ka,Colon:()=>Ja,Comma:()=>Qa,Comment:()=>ri,Delim:()=>ja,Dimension:()=>Wa,EOF:()=>Da,Function:()=>Oa,Hash:()=>Pa,Ident:()=>Ia,LeftCurlyBracket:()=>ti,LeftParenthesis:()=>Za,LeftSquareBracket:()=>Xa,Number:()=>qa,Percentage:()=>Ha,RightCurlyBracket:()=>ni,RightParenthesis:()=>ei,RightSquareBracket:()=>Ya,Semicolon:()=>Ga,String:()=>Fa,Url:()=>Ua,WhiteSpace:()=>Va});var Da=0,Ia=1,Oa=2,Na=3,Pa=4,Fa=5,Ma=6,Ua=7,Ba=8,ja=9,qa=10,Ha=11,Wa=12,Va=13,Ka=14,$a=15,Ja=16,Ga=17,Qa=18,Xa=19,Ya=20,Za=21,ei=22,ti=23,ni=24,ri=25;function ai(e){return e>=48&&e<=57}function ii(e){return ai(e)||e>=65&&e<=70||e>=97&&e<=102}function oi(e){return e>=65&&e<=90}function si(e){return function(e){return oi(e)||function(e){return e>=97&&e<=122}(e)}(e)||function(e){return e>=128}(e)||95===e}function li(e){return si(e)||ai(e)||45===e}function ci(e){return e>=0&&e<=8||11===e||e>=14&&e<=31||127===e}function ui(e){return 10===e||13===e||12===e}function hi(e){return ui(e)||32===e||9===e}function di(e,t){return!(92!==e||ui(t)||0===t)}function pi(e,t,n){return 45===e?si(t)||45===t||di(t,n):!!si(e)||92===e&&di(e,t)}function fi(e,t,n){return 43===e||45===e?ai(t)?2:46===t&&ai(n)?3:0:46===e?ai(t)?2:0:ai(e)?1:0}function mi(e){return 65279===e||65534===e?1:0}var gi=new Array(128),bi=130,yi=131,wi=132,ki=133;for(let e=0;ee.length)return!1;for(let a=t;a=55296&&t<=57343||t>1114111)&&(t=65533),String.fromCodePoint(t)}var Ii=["EOF-token","ident-token","function-token","at-keyword-token","hash-token","string-token","bad-string-token","url-token","bad-url-token","delim-token","number-token","percentage-token","dimension-token","whitespace-token","CDO-token","CDC-token","colon-token","semicolon-token","comma-token","[-token","]-token","(-token",")-token","{-token","}-token","comment-token"];function Oi(e=null,t){return null===e||e.length0?mi(t.charCodeAt(0)):0,a=Oi(e.lines,n),i=Oi(e.columns,n),o=e.startLine,s=e.startColumn;for(let e=r;e{})){let n=(e=String(e||"")).length,r=Oi(this.offsetAndType,e.length+1),a=Oi(this.balance,e.length+1),i=0,o=0,s=0,l=-1;for(this.offsetAndType=null,this.balance=null,t(e,((e,t,c)=>{switch(e){default:a[i]=n;break;case o:{let e=s&Fi;for(s=a[e],o=s>>Mi,a[i]=e,a[e++]=i;e>Mi:0}lookupOffset(e){return(e+=this.tokenIndex)0?e>Mi,this.tokenEnd=t&Fi):(this.tokenIndex=this.tokenCount,this.next())}next(){let e=this.tokenIndex+1;e>Mi,this.tokenEnd=e&Fi):(this.eof=!0,this.tokenIndex=this.tokenCount,this.tokenType=0,this.tokenStart=this.tokenEnd=this.source.length)}skipSC(){for(;13===this.tokenType||25===this.tokenType;)this.next()}skipUntilBalanced(e,t){let n,r,a=e;e:for(;a0?this.offsetAndType[a-1]&Fi:this.firstCharOffset,t(this.source.charCodeAt(r))){case 1:break e;case 2:a++;break e;default:this.balance[n]===a&&(a=n)}this.skip(a-this.tokenIndex)}forEachToken(e){for(let t=0,n=this.firstCharOffset;t>Mi,r,i,t)}}dump(){let e=new Array(this.tokenCount);return this.forEachToken(((t,n,r,a)=>{e[a]={idx:a,type:Ii[t],chunk:this.source.substring(n,r),balance:this.balance[a]}})),e}};function ji(e,t){function n(t){return t=e.length?void(cString(e+n+1).padStart(l)+" |"+t)).join("\n")}let i=e.split(/\r\n?|\n|\f/),o=Math.max(1,t-r)-1,s=Math.min(t+r,i.length+1),l=Math.max(4,String(s).length)+1,c=0;(n+=($i.length-1)*(i[t-1].substr(0,n-1).match(/\t/g)||[]).length)>Vi&&(c=n-Ki+3,n=Ki-2);for(let e=o;e<=s;e++)e>=0&&e0&&i[e].length>c?"…":"")+i[e].substr(c,Vi-2)+(i[e].length>c+Vi-1?"…":""));return[a(o,t),new Array(n+l+2).join("-")+"^",a(t,s)].filter(Boolean).join("\n")}function Gi(e,t,n,r,a){return Object.assign(Wi("SyntaxError",e),{source:t,offset:n,line:r,column:a,sourceFragment:e=>Ji({source:t,line:r,column:a},isNaN(e)?0:e),get formattedMessage(){return`Parse error: ${e}\n`+Ji({source:t,line:r,column:a},2)}})}function Qi(e){let t=this.createList(),n=!1,r={recognizer:e};for(;!this.eof;){switch(this.tokenType){case 25:this.next();continue;case 13:n=!0,this.next();continue}let a=e.getNode.call(this,r);if(void 0===a)break;n&&(e.onWhiteSpace&&e.onWhiteSpace.call(this,a,t,r),n=!1),t.push(a)}return n&&e.onWhiteSpace&&e.onWhiteSpace.call(this,null,t,r),t}var Xi=()=>{},Yi=33,Zi=35,eo=59,to=123,no=0;function ro(e){return function(){return this[e]()}}function ao(e){let t=Object.create(null);for(let n in e){let r=e[n],a=r.parse||r;a&&(t[n]=a)}return t}function io(e){let t="",n="",r=!1,a=Xi,i=!1,o=new Pi,s=Object.assign(new Bi,function(e){let t={context:Object.create(null),scope:Object.assign(Object.create(null),e.scope),atrule:ao(e.atrule),pseudo:ao(e.pseudo),node:ao(e.node)};for(let n in e.parseContext)switch(typeof e.parseContext[n]){case"function":t.context[n]=e.parseContext[n];break;case"string":t.context[n]=ro(e.parseContext[n])}return{config:t,...t,...t.node}}(e||{}),{parseAtrulePrelude:!0,parseRulePrelude:!0,parseValue:!0,parseCustomProperty:!1,readSequence:Qi,consumeUntilBalanceEnd:()=>0,consumeUntilLeftCurlyBracket:e=>e===to?1:0,consumeUntilLeftCurlyBracketOrSemicolon:e=>e===to||e===eo?1:0,consumeUntilExclamationMarkOrSemicolon:e=>e===Yi||e===eo?1:0,consumeUntilSemicolonIncluded:e=>e===eo?2:0,createList:()=>new Hi,createSingleNodeList:e=>(new Hi).appendData(e),getFirstListNode:e=>e&&e.first,getLastListNode:e=>e&&e.last,parseWithFallback(e,t){let n=this.tokenIndex;try{return e.call(this)}catch(e){if(i)throw e;let r=t.call(this,n);return i=!0,a(e,r),i=!1,r}},lookupNonWSType(e){let t;do{if(t=this.lookupType(e++),13!==t)return t}while(t!==no);return no},charCodeAt:e=>e>=0&&et.substring(e,n),substrToCursor(e){return this.source.substring(e,this.tokenStart)},cmpChar:(e,n)=>Ai(t,e,n),cmpStr:(e,n,r)=>Ci(t,e,n,r),consume(e){let t=this.tokenStart;return this.eat(e),this.substrToCursor(t)},consumeFunctionName(){let e=t.substring(this.tokenStart,this.tokenEnd-1);return this.eat(2),e},consumeNumber(e){let n=t.substring(this.tokenStart,_i(t,this.tokenStart));return this.eat(e),n},eat(e){if(this.tokenType!==e){let t=Ii[e].slice(0,-6).replace(/-/g," ").replace(/^./,(e=>e.toUpperCase())),n=`${/[[\](){}]/.test(t)?`"${t}"`:t} is expected`,r=this.tokenStart;switch(e){case 1:2===this.tokenType||7===this.tokenType?(r=this.tokenEnd-1,n="Identifier is expected but function found"):n="Identifier is expected";break;case 4:this.isDelim(Zi)&&(this.next(),r++,n="Name is expected");break;case 11:10===this.tokenType&&(r=this.tokenEnd,n="Percent sign is expected")}this.error(n,r)}this.next()},eatIdent(e){(1!==this.tokenType||!1===this.lookupValue(0,e))&&this.error(`Identifier "${e}" is expected`),this.next()},eatDelim(e){this.isDelim(e)||this.error(`Delim "${String.fromCharCode(e)}" is expected`),this.next()},getLocation:(e,t)=>r?o.getLocationRange(e,t,n):null,getLocationFromList(e){if(r){let t=this.getFirstListNode(e),r=this.getLastListNode(e);return o.getLocationRange(null!==t?t.loc.start.offset-o.startOffset:this.tokenStart,null!==r?r.loc.end.offset-o.startOffset:this.tokenStart,n)}return null},error(e,n){let r=typeof n<"u"&&n=0&&hi(e.charCodeAt(t));t--);return t+1}(t,t.length-1)):o.getLocation(this.tokenStart);throw new Gi(e||"Unexpected input",t,r.offset,r.line,r.column)}});return Object.assign((function(e,l){t=e,l=l||{},s.setSource(t,ji),o.setSource(t,l.offset,l.line,l.column),n=l.filename||"",r=Boolean(l.positions),a="function"==typeof l.onParseError?l.onParseError:Xi,i=!1,s.parseAtrulePrelude=!("parseAtrulePrelude"in l)||Boolean(l.parseAtrulePrelude),s.parseRulePrelude=!("parseRulePrelude"in l)||Boolean(l.parseRulePrelude),s.parseValue=!("parseValue"in l)||Boolean(l.parseValue),s.parseCustomProperty="parseCustomProperty"in l&&Boolean(l.parseCustomProperty);let{context:c="default",onComment:u}=l;if(!(c in s.context))throw new Error("Unknown context `"+c+"`");"function"==typeof u&&s.forEachToken(((e,n,r)=>{if(25===e){let e=s.getLocation(n,r),a=Ci(t,r-2,r,"*/")?t.slice(n+2,r-2):t.slice(n+2,r);u(a,e)}}));let h=s.context[c].call(s,l);return s.eof||s.error(),h}),{SyntaxError:Gi,config:s.config})}var oo=((e,t,n)=>(n=null!=e?ya(xa(e)):{},((e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let a of va(t))!Sa.call(e,a)&&a!==n&&wa(e,a,{get:()=>t[a],enumerable:!(r=ka(t,a))||r.enumerable});return e})(!t&&e&&e.__esModule?n:wa(n,"default",{value:e,enumerable:!0}),e)))(La(),1),so=new Set(["Atrule","Selector","Declaration"]);var lo={};Ca(lo,{safe:()=>mo,spec:()=>fo});var co=(e,t)=>{if(9===e&&(e=t),"string"==typeof e){let t=e.charCodeAt(0);return t>127?32768:t<<8}return e},uo=[[1,1],[1,2],[1,7],[1,8],[1,"-"],[1,10],[1,11],[1,12],[1,15],[1,21],[3,1],[3,2],[3,7],[3,8],[3,"-"],[3,10],[3,11],[3,12],[3,15],[4,1],[4,2],[4,7],[4,8],[4,"-"],[4,10],[4,11],[4,12],[4,15],[12,1],[12,2],[12,7],[12,8],[12,"-"],[12,10],[12,11],[12,12],[12,15],["#",1],["#",2],["#",7],["#",8],["#","-"],["#",10],["#",11],["#",12],["#",15],["-",1],["-",2],["-",7],["-",8],["-","-"],["-",10],["-",11],["-",12],["-",15],[10,1],[10,2],[10,7],[10,8],[10,10],[10,11],[10,12],[10,"%"],[10,15],["@",1],["@",2],["@",7],["@",8],["@","-"],["@",15],[".",10],[".",11],[".",12],["+",10],["+",11],["+",12],["/","*"]],ho=uo.concat([[1,4],[12,4],[4,4],[3,21],[3,5],[3,16],[11,11],[11,12],[11,2],[11,"-"],[22,1],[22,2],[22,11],[22,12],[22,4],[22,"-"]]);function po(e){let t=new Set(e.map((([e,t])=>co(e)<<16|co(t))));return function(e,n,r){let a=co(n,r),i=r.charCodeAt(0);return(45===i&&1!==n&&2!==n&&15!==n||43===i?t.has(e<<16|i<<8):t.has(e<<16|a))&&this.emit(" ",13,!0),a}}var fo=po(uo),mo=po(ho),go=92;function bo(e,t){if("function"!=typeof t)e.children.forEach(this.node,this);else{let n=null;e.children.forEach((e=>{null!==n&&t.call(this,n),this.node(e),n=e}))}}function yo(e){ji(e,((t,n,r)=>{this.token(t,e.slice(n,r))}))}function wo(e){let t=new Map;for(let n in e.node){let r=e.node[n];"function"==typeof(r.generate||r)&&t.set(n,r.generate||r)}return function(e,n){let r="",a=0,i={node(e){if(!t.has(e.type))throw new Error("Unknown node type: "+e.type);t.get(e.type).call(o,e)},tokenBefore:mo,token(e,t){a=this.tokenBefore(a,e,t),this.emit(t,e,!1),9===e&&t.charCodeAt(0)===go&&this.emit("\n",13,!0)},emit(e){r+=e},result:()=>r};n&&("function"==typeof n.decorator&&(i=n.decorator(i)),n.sourceMap&&(i=function(e){let t=new oo.SourceMapGenerator,n={line:1,column:0},r={line:0,column:0},a={line:1,column:0},i={generated:a},o=1,s=0,l=!1,c=e.node;e.node=function(e){if(e.loc&&e.loc.start&&so.has(e.type)){let c=e.loc.start.line,u=e.loc.start.column-1;(r.line!==c||r.column!==u)&&(r.line=c,r.column=u,n.line=o,n.column=s,l&&(l=!1,(n.line!==a.line||n.column!==a.column)&&t.addMapping(i)),l=!0,t.addMapping({source:e.loc.source,original:r,generated:n}))}c.call(this,e),l&&so.has(e.type)&&(a.line=o,a.column=s)};let u=e.emit;e.emit=function(e,t,n){for(let t=0;ti.node(e),children:bo,token:(e,t)=>i.token(e,t),tokenize:yo};return i.node(e),i.result()}}var{hasOwnProperty:ko}=Object.prototype,vo=function(){};function xo(e){return"function"==typeof e?e:vo}function So(e,t){return function(n,r,a){n.type===t&&e.call(this,n,r,a)}}function Ao(e,t){let n=t.structure,r=[];for(let e in n){if(!1===ko.call(n,e))continue;let t=n[e],a={name:e,type:!1,nullable:!1};Array.isArray(t)||(t=[t]);for(let e of t)null===e?a.nullable=!0:"string"==typeof e?a.type="node":Array.isArray(e)&&(a.type="list");a.type&&r.push(a)}return r.length?{context:t.walkContext,fields:r}:null}function Co(e,t){let n=e.fields.slice(),r=e.context,a="string"==typeof r;return t&&n.reverse(),function(e,i,o,s){let l;a&&(l=i[r],i[r]=e);for(let r of n){let n=e[r.name];if(!r.nullable||n)if("list"===r.type){if(t?n.reduceRight(s,!1):n.reduce(s,!1))return!0}else if(o(n))return!0}a&&(i[r]=l)}}function Eo({StyleSheet:e,Atrule:t,Rule:n,Block:r,DeclarationList:a}){return{Atrule:{StyleSheet:e,Atrule:t,Rule:n,Block:r},Rule:{StyleSheet:e,Atrule:t,Rule:n,Block:r},Declaration:{StyleSheet:e,Atrule:t,Rule:n,Block:r,DeclarationList:a}}}function zo(e){let t=function(e){let t={};for(let n in e.node)if(ko.call(e.node,n)){let r=e.node[n];if(!r.structure)throw new Error("Missed `structure` field in `"+n+"` node type definition");t[n]=Ao(0,r)}return t}(e),n={},r={},a=Symbol("break-walk"),i=Symbol("skip-node");for(let e in t)ko.call(t,e)&&null!==t[e]&&(n[e]=Co(t[e],!1),r[e]=Co(t[e],!0));let o=Eo(n),s=Eo(r),l=function(e,l){function c(e,t,n){let r=u.call(f,e,t,n);return r===a||r!==i&&!!(d.hasOwnProperty(e.type)&&d[e.type](e,f,c,p)||h.call(f,e,t,n)===a)}let u=vo,h=vo,d=n,p=(e,t,n,r)=>e||c(t,n,r),f={break:a,skip:i,root:e,stylesheet:null,atrule:null,atrulePrelude:null,rule:null,selector:null,block:null,declaration:null,function:null};if("function"==typeof l)u=l;else if(l&&(u=xo(l.enter),h=xo(l.leave),l.reverse&&(d=r),l.visit)){if(o.hasOwnProperty(l.visit))d=l.reverse?s[l.visit]:o[l.visit];else if(!t.hasOwnProperty(l.visit))throw new Error("Bad value `"+l.visit+"` for `visit` option (should be: "+Object.keys(t).sort().join(", ")+")");u=So(u,l.visit),h=So(h,l.visit)}if(u===vo&&h===vo)throw new Error("Neither `enter` nor `leave` walker handler is set or both aren't a function");c(e)};return l.break=a,l.skip=i,l.find=function(e,t){let n=null;return l(e,(function(e,r,i){if(t.call(this,e,r,i))return n=e,a})),n},l.findLast=function(e,t){let n=null;return l(e,{reverse:!0,enter(e,r,i){if(t.call(this,e,r,i))return n=e,a}}),n},l.findAll=function(e,t){let n=[];return l(e,(function(e,r,a){t.call(this,e,r,a)&&n.push(e)})),n},l}function To(e){return e}function Ro(e,t,n,r){let a;switch(e.type){case"Group":a=function(e,t,n,r){let a=" "===e.combinator||r?e.combinator:" "+e.combinator+" ",i=e.terms.map((e=>Ro(e,t,n,r))).join(a);return e.explicit||n?(r||","===i[0]?"[":"[ ")+i+(r?"]":" ]"):i}(e,t,n,r)+(e.disallowEmpty?"!":"");break;case"Multiplier":return Ro(e.term,t,n,r)+t(function(e){let{min:t,max:n,comma:r}=e;return 0===t&&0===n?r?"#?":"*":0===t&&1===n?"?":1===t&&0===n?r?"#":"+":1===t&&1===n?"":(r?"#":"")+(t===n?"{"+t+"}":"{"+t+","+(0!==n?n:"")+"}")}(e),e);case"Type":a="<"+e.name+(e.opts?t(function(e){if("Range"===e.type)return" ["+(null===e.min?"-∞":e.min)+","+(null===e.max?"∞":e.max)+"]";throw new Error("Unknown node type `"+e.type+"`")}(e.opts),e.opts):"")+">";break;case"Property":a="<'"+e.name+"'>";break;case"Keyword":a=e.name;break;case"AtKeyword":a="@"+e.name;break;case"Function":a=e.name+"(";break;case"String":case"Token":a=e.value;break;case"Comma":a=",";break;default:throw new Error("Unknown node type `"+e.type+"`")}return t(a,e)}function _o(e,t){let n=To,r=!1,a=!1;return"function"==typeof t?n=t:t&&(r=Boolean(t.forceBraces),a=Boolean(t.compact),"function"==typeof t.decorate&&(n=t.decorate)),Ro(e,n,r,a)}var Lo={offset:0,line:1,column:1};function Do(e,t){let n=e&&e.loc&&e.loc[t];return n?"line"in n?Io(n):n:null}function Io({offset:e,line:t,column:n},r){let a={offset:e,line:t,column:n};if(r){let e=r.split(/\n|\r\n?|\f/);a.offset+=r.length,a.line+=e.length-1,a.column=1===e.length?a.column+r.length:e.pop().length+1}return a}var Oo=function(e,t){let n=Wi("SyntaxReferenceError",e+(t?" `"+t+"`":""));return n.reference=t,n},No=function(e,t,n,r){let a=Wi("SyntaxMatchError",e),{css:i,mismatchOffset:o,mismatchLength:s,start:l,end:c}=function(e,t){let n,r,a=e.tokens,i=e.longestMatch,o=i1?(n=Do(s||t,"end")||Io(Lo,h),r=Io(n)):(n=Do(s,"start")||Io(Do(t,"start")||Lo,h.slice(0,l)),r=Do(s,"end")||Io(n,h.substr(l,c))),{css:h,mismatchOffset:l,mismatchLength:c,start:n,end:r}}(r,n);return a.rawMessage=e,a.syntax=t?_o(t):"",a.css=i,a.mismatchOffset=o,a.mismatchLength=s,a.message=e+"\n syntax: "+a.syntax+"\n value: "+(i||"")+"\n --------"+new Array(a.mismatchOffset+1).join("-")+"^",Object.assign(a,l),a.loc={source:n&&n.loc&&n.loc.source||"",start:l,end:c},a},Po=new Map,Fo=new Map,Mo=45,Uo=function(e){if(Po.has(e))return Po.get(e);let t=e.toLowerCase(),n=Po.get(t);if(void 0===n){let e=jo(t,0),r=e?"":qo(t,0);n=Object.freeze({basename:t.substr(r.length),name:t,prefix:r,vendor:r,custom:e})}return Po.set(e,n),n},Bo=function(e){if(Fo.has(e))return Fo.get(e);let t=e,n=e[0];"/"===n?n="/"===e[1]?"//":"/":"_"!==n&&"*"!==n&&"$"!==n&&"#"!==n&&"+"!==n&&"&"!==n&&(n="");let r=jo(t,n.length);if(!r&&(t=t.toLowerCase(),Fo.has(t))){let n=Fo.get(t);return Fo.set(e,n),n}let a=r?"":qo(t,n.length),i=t.substr(0,n.length+a.length),o=Object.freeze({basename:t.substr(i.length),name:t.substr(n.length),hack:n,vendor:a,prefix:i,custom:r});return Fo.set(e,o),o};function jo(e,t){return t=t||0,e.length-t>=2&&e.charCodeAt(t)===Mo&&e.charCodeAt(t+1)===Mo}function qo(e,t){if(t=t||0,e.length-t>=3&&e.charCodeAt(t)===Mo&&e.charCodeAt(t+1)!==Mo){let n=e.indexOf("-",t+2);if(-1!==n)return e.substring(t,n+1)}return""}var Ho=["initial","inherit","unset","revert","revert-layer"],Wo=43,Vo=45,Ko=!0;function $o(e,t){return null!==e&&9===e.type&&e.value.charCodeAt(0)===t}function Jo(e,t,n){for(;null!==e&&(13===e.type||25===e.type);)e=n(++t);return t}function Go(e,t,n,r){if(!e)return 0;let a=e.value.charCodeAt(t);if(a===Wo||a===Vo){if(n)return 0;t++}for(;t6)return 0}return r}function ts(e,t,n){if(!e)return 0;for(;Zo(n(t),Yo);){if(++e>6)return 0;t++}return t}var ns=["calc(","-moz-calc(","-webkit-calc("],rs=new Map([[2,22],[21,22],[19,20],[23,24]]);function as(e,t){return te.max&&"string"!=typeof e.max)return!0}return!1}function cs(e){return function(t,n,r){return null===t?0:2===t.type&&os(t.value,ns)?function(e,t){let n=0,r=[],a=0;e:do{switch(e.type){case 24:case 22:case 20:if(e.type!==n)break e;if(n=r.pop(),0===r.length){a++;break e}break;case 2:case 21:case 19:case 23:r.push(n),n=rs.get(e.type)}a++}while(e=t(a));return a}(t,n):e(t,n,r)}}function us(e){return function(t){return null===t||t.type!==e?0:1}}function hs(e){return e&&(e=new Set(e)),function(t,n,r){if(null===t||12!==t.type)return 0;let a=_i(t.value,0);if(null!==e){let n=t.value.indexOf("\\",a),r=-1!==n&&ss(t.value,n)?t.value.substring(a,n):t.value.substr(a);if(!1===e.has(r.toLowerCase()))return 0}return ls(r,t.value,a)?0:1}}function ds(e){return"function"!=typeof e&&(e=function(){return 0}),function(t,n,r){return null!==t&&10===t.type&&0===Number(t.value)?1:e(t,n,r)}}var ps={"ident-token":us(1),"function-token":us(2),"at-keyword-token":us(3),"hash-token":us(4),"string-token":us(5),"bad-string-token":us(6),"url-token":us(7),"bad-url-token":us(8),"delim-token":us(9),"number-token":us(10),"percentage-token":us(11),"dimension-token":us(12),"whitespace-token":us(13),"CDO-token":us(14),"CDC-token":us(15),"colon-token":us(16),"semicolon-token":us(17),"comma-token":us(18),"[-token":us(19),"]-token":us(20),"(-token":us(21),")-token":us(22),"{-token":us(23),"}-token":us(24)},fs={string:us(5),ident:us(1),percentage:cs((function(e,t,n){return null===e||11!==e.type||ls(n,e.value,e.value.length-1)?0:1})),zero:ds(),number:cs((function(e,t,n){if(null===e)return 0;let r=_i(e.value,0);return r!==e.value.length&&!ss(e.value,r)||ls(n,e.value,r)?0:1})),integer:cs((function(e,t,n){if(null===e||10!==e.type)return 0;let r=43===as(e.value,0)||45===as(e.value,0)?1:0;for(;rys,decibel:()=>Ss,flex:()=>xs,frequency:()=>ks,length:()=>bs,resolution:()=>vs,semitones:()=>As,time:()=>ws});var bs=["cm","mm","q","in","pt","pc","px","em","rem","ex","rex","cap","rcap","ch","rch","ic","ric","lh","rlh","vw","svw","lvw","dvw","vh","svh","lvh","dvh","vi","svi","lvi","dvi","vb","svb","lvb","dvb","vmin","svmin","lvmin","dvmin","vmax","svmax","lvmax","dvmax","cqw","cqh","cqi","cqb","cqmin","cqmax"],ys=["deg","grad","rad","turn"],ws=["s","ms"],ks=["hz","khz"],vs=["dpi","dpcm","dppx","x"],xs=["fr"],Ss=["db"],As=["st"];function Cs(e,t,n){return Object.assign(Wi("SyntaxError",e),{input:t,offset:n,rawMessage:e,message:e+"\n "+t+"\n--"+new Array((n||t.length)+1).join("-")+"^"})}Ca({},{SyntaxError:()=>Cs,generate:()=>_o,parse:()=>hl,walk:()=>fl});var Es=class{constructor(e){this.str=e,this.pos=0}charCodeAt(e){return e/[a-zA-Z0-9\-]/.test(String.fromCharCode(t))?1:0)),Zs={" ":1,"&&":2,"||":3,"|":4};function el(e){return e.substringToPos(e.findWsEnd(e.pos))}function tl(e){let t=e.pos;for(;t=128||0===Ys[n])break}return e.pos===t&&e.error("Expect a keyword"),e.substringToPos(t)}function nl(e){let t=e.pos;for(;t57)break}return e.pos===t&&e.error("Expect a number"),e.substringToPos(t)}function rl(e){let t=e.str.indexOf("'",e.pos+1);return-1===t&&(e.pos=e.str.length,e.error("Expect an apostrophe")),e.substringToPos(t+1)}function al(e){let t=null,n=null;return e.eat(Js),t=nl(e),e.charCode()===Bs?(e.pos++,e.charCode()!==Qs&&(n=nl(e))):n=t,e.eat(Qs),{min:Number(t),max:n?Number(n):0}}function il(e,t){let n=function(e){let t=null,n=!1;switch(e.charCode()){case Ms:e.pos++,t={min:0,max:0};break;case Us:e.pos++,t={min:1,max:0};break;case Ws:e.pos++,t={min:0,max:1};break;case Is:e.pos++,n=!0,e.charCode()===Js?t=al(e):e.charCode()===Ws?(e.pos++,t={min:0,max:0}):t={min:1,max:0};break;case Js:t=al(e);break;default:return null}return{type:"Multiplier",comma:n,min:t.min,max:t.max,term:null}}(e);return null!==n?(n.term=t,e.charCode()===Is&&e.charCodeAt(e.pos-1)===Us?il(e,n):n):t}function ol(e){let t=e.peek();return""===t?null:{type:"Token",value:t}}function sl(e){let t,n=null;return e.eat(qs),t=tl(e),e.charCode()===Ps&&e.nextCharCode()===Fs&&(e.pos+=2,t+="()"),e.charCodeAt(e.findWsEnd(e.pos))===Ks&&(el(e),n=function(e){let t=null,n=null,r=1;return e.eat(Ks),e.charCode()===js&&(e.peek(),r=-1),-1==r&&e.charCode()===Xs?e.peek():(t=r*Number(nl(e)),0!==Ys[e.charCode()]&&(t+=tl(e))),el(e),e.eat(Bs),el(e),e.charCode()===Xs?e.peek():(r=1,e.charCode()===js&&(e.peek(),r=-1),n=r*Number(nl(e)),0!==Ys[e.charCode()]&&(n+=tl(e))),e.eat($s),{type:"Range",min:t,max:n}}(e)),e.eat(Hs),il(e,{type:"Type",name:t,opts:n})}function ll(e,t){function n(e,t){return{type:"Group",terms:e,combinator:t,disallowEmpty:!1,explicit:!1}}let r;for(t=Object.keys(t).sort(((e,t)=>Zs[e]-Zs[t]));t.length>0;){r=t.shift();let a=0,i=0;for(;a1&&(e.splice(i,a-i,n(e.slice(i,a),r)),a=i+1),i=-1))}-1!==i&&t.length&&e.splice(i,a-i,n(e.slice(i,a),r))}return r}function cl(e){let t,n=[],r={},a=null,i=e.pos;for(;t=ul(e);)"Spaces"!==t.type&&("Combinator"===t.type?((null===a||"Combinator"===a.type)&&(e.pos=i,e.error("Unexpected combinator")),r[t.value]=!0):null!==a&&"Combinator"!==a.type&&(r[" "]=!0,n.push({type:"Combinator",value:" "})),n.push(t),a=t,i=e.pos);return null!==a&&"Combinator"===a.type&&(e.pos-=i,e.error("Unexpected combinator")),{type:"Group",terms:n,combinator:ll(n,r)||" ",disallowEmpty:!1,explicit:!1}}function ul(e){let t=e.charCode();if(t<128&&1===Ys[t])return function(e){let t=tl(e);return e.charCode()===Ps?(e.pos++,{type:"Function",name:t}):il(e,{type:"Keyword",name:t})}(e);switch(t){case $s:break;case Ks:return il(e,function(e){let t;return e.eat(Ks),t=cl(e),e.eat($s),t.explicit=!0,e.charCode()===Ds&&(e.pos++,t.disallowEmpty=!0),t}(e));case qs:return e.nextCharCode()===Ns?function(e){let t;return e.eat(qs),e.eat(Ns),t=tl(e),e.eat(Ns),e.eat(Hs),il(e,{type:"Property",name:t})}(e):sl(e);case Gs:return{type:"Combinator",value:e.substringToPos(e.pos+(e.nextCharCode()===Gs?2:1))};case Os:return e.pos++,e.eat(Os),{type:"Combinator",value:"&&"};case Bs:return e.pos++,{type:"Comma"};case Ns:return il(e,{type:"String",value:rl(e)});case Ls:case zs:case Ts:case _s:case Rs:return{type:"Spaces",value:el(e)};case Vs:return t=e.nextCharCode(),t<128&&1===Ys[t]?(e.pos++,{type:"AtKeyword",name:tl(e)}):ol(e);case Ms:case Us:case Ws:case Is:case Ds:break;case Js:if(t=e.nextCharCode(),t<48||t>57)return ol(e);break;default:return ol(e)}}function hl(e){let t=new Es(e),n=cl(t);return t.pos!==e.length&&t.error("Unexpected input"),1===n.terms.length&&"Group"===n.terms[0].type?n.terms[0]:n}var dl=function(){};function pl(e){return"function"==typeof e?e:dl}function fl(e,t,n){let r=dl,a=dl;if("function"==typeof t?r=t:t&&(r=pl(t.enter),a=pl(t.leave)),r===dl&&a===dl)throw new Error("Neither `enter` nor `leave` walker handler is set or both aren't a function");!function e(t){switch(r.call(n,t),t.type){case"Group":t.terms.forEach(e);break;case"Multiplier":e(t.term);break;case"Type":case"Property":case"Keyword":case"AtKeyword":case"Function":case"String":case"Token":case"Comma":break;default:throw new Error("Unknown type: "+t.type)}a.call(n,t)}(e)}var ml={decorator(e){let t=[],n=null;return{...e,node(t){let r=n;n=t,e.node.call(this,t),n=r},emit(e,r,a){t.push({type:r,value:e,node:a?null:n})},result:()=>t}}};function gl(e,t){return"string"==typeof e?function(e){let t=[];return ji(e,((n,r,a)=>t.push({type:n,value:e.slice(r,a),node:null}))),t}(e):t.generate(e,ml)}var bl={type:"Match"},yl={type:"Mismatch"},wl={type:"DisallowEmpty"},kl=40,vl=41;function xl(e,t,n){return t===bl&&n===yl||e===bl&&t===bl&&n===bl?e:("If"===e.type&&e.else===yl&&t===bl&&(t=e.then,e=e.match),{type:"If",match:e,then:t,else:n})}function Sl(e){return e.length>2&&e.charCodeAt(e.length-2)===kl&&e.charCodeAt(e.length-1)===vl}function Al(e){return"Keyword"===e.type||"AtKeyword"===e.type||"Function"===e.type||"Type"===e.type&&Sl(e.name)}function Cl(e,t,n){switch(e){case" ":{let e=bl;for(let n=t.length-1;n>=0;n--){e=xl(t[n],e,yl)}return e}case"|":{let e=yl,n=null;for(let r=t.length-1;r>=0;r--){let a=t[r];if(Al(a)&&(null===n&&r>0&&Al(t[r-1])&&(n=Object.create(null),e=xl({type:"Enum",map:n},bl,e)),null!==n)){let e=(Sl(a.name)?a.name.slice(0,-1):a.name).toLowerCase();if(!(e in n)){n[e]=a;continue}}n=null,e=xl(a,bl,e)}return e}case"&&":{if(t.length>5)return{type:"MatchOnce",terms:t,all:!0};let n=yl;for(let r=t.length-1;r>=0;r--){let a,i=t[r];a=t.length>1?Cl(e,t.filter((function(e){return e!==i})),!1):bl,n=xl(i,a,n)}return n}case"||":{if(t.length>5)return{type:"MatchOnce",terms:t,all:!1};let r=n?bl:yl;for(let n=t.length-1;n>=0;n--){let a,i=t[n];a=t.length>1?Cl(e,t.filter((function(e){return e!==i})),!0):bl,r=xl(i,a,r)}return r}}}function El(e){if("function"==typeof e)return{type:"Generic",fn:e};switch(e.type){case"Group":{let t=Cl(e.combinator,e.terms.map(El),!1);return e.disallowEmpty&&(t=xl(t,wl,yl)),t}case"Multiplier":return function(e){let t=bl,n=El(e.term);if(0===e.max)n=xl(n,wl,yl),t=xl(n,null,yl),t.then=xl(bl,bl,t),e.comma&&(t.then.else=xl({type:"Comma",syntax:e},t,yl));else for(let r=e.min||1;r<=e.max;r++)e.comma&&t!==bl&&(t=xl({type:"Comma",syntax:e},t,yl)),t=xl(n,xl(bl,bl,t),yl);if(0===e.min)t=xl(bl,bl,t);else for(let r=0;r=65&&a<=90&&(a|=32),a!==r)return!1}return!0}function Ml(e){return null===e||(18===e.type||2===e.type||21===e.type||19===e.type||23===e.type||function(e){return 9===e.type&&"?"!==e.value}(e))}function Ul(e){return null===e||(22===e.type||20===e.type||24===e.type||9===e.type&&"/"===e.value)}function Bl(e,t,n){let r=function(e,t,n){function r(){do{b++,g=by&&(y=b)}function c(){w=w.type===Ll?w.prev:{type:Dl,syntax:u.syntax,token:w.token,prev:w},u=u.prev}let u=null,h=null,d=null,p=null,f=0,m=null,g=null,b=-1,y=0,w={type:Rl,syntax:null,token:null,prev:null};for(r();null===m&&++fd.tokenIndex)&&(d=p,p=!1);else if(null===d){m=Ol;break}t=d.nextState,h=d.thenStack,u=d.syntaxStack,w=d.matchStack,b=d.tokenIndex,g=bb){for(;b":"<'"+t.name+"'>"));if(!1!==p&&null!==g&&"Type"===t.type&&("custom-ident"===t.name&&1===g.type||"length"===t.name&&"0"===g.value)){null===p&&(p=i(t,d)),t=yl;break}u={syntax:t.syntax,opts:t.syntax.opts||null!==u&&u.opts||null,prev:u},w={type:Ll,syntax:t.syntax,token:w.token,prev:w},t=r.match;break}case"Keyword":{let e=t.name;if(null!==g){let n=g.value;if(-1!==n.indexOf("\\")&&(n=n.replace(/\\[09].*$/,"")),Fl(n,e)){l(),t=bl;break}}t=yl;break}case"AtKeyword":case"Function":if(null!==g&&Fl(g.value,t.name)){l(),t=bl;break}t=yl;break;case"Token":if(null!==g&&g.value===t.value){l(),t=bl;break}t=yl;break;case"Comma":null!==g&&18===g.type?Ml(w.token)?t=yl:(l(),t=Ul(g)?yl:bl):t=Ml(w.token)||Ul(g)?bl:yl;break;case"String":let r="",f=b;for(;f"Type"===e.type&&e.name===t))}function Wl(e,t){return Kl(this,e,(e=>"Property"===e.type&&e.name===t))}function Vl(e){return Kl(this,e,(e=>"Keyword"===e.type))}function Kl(e,t,n){let r=ql.call(e,t);return null!==r&&r.some(n)}function $l(e){return"node"in e?e.node:$l(e.match[0])}function Jl(e){return"node"in e?e.node:Jl(e.match[e.match.length-1])}function Gl(e,t,n,r,a){let i=[];return null!==n.matched&&function n(o){if(null!==o.syntax&&o.syntax.type===r&&o.syntax.name===a){let n=$l(o),r=Jl(o);e.syntax.walk(t,(function(e,t,a){if(e===n){let e=new Hi;do{if(e.appendData(t.data),t.data===r)break;t=t.next}while(null!==t);i.push({parent:a,nodes:e})}}))}Array.isArray(o.match)&&o.match.forEach(n)}(n.matched),i}Ca(jl,{getTrace:()=>ql,isKeyword:()=>Vl,isProperty:()=>Wl,isType:()=>Hl});var{hasOwnProperty:Ql}=Object.prototype;function Xl(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&e>=0}function Yl(e){return Boolean(e)&&Xl(e.offset)&&Xl(e.line)&&Xl(e.column)}function Zl(e,t){return function(n,r){if(!n||n.constructor!==Object)return r(n,"Type of node should be an Object");for(let a in n){let i=!0;if(!1!==Ql.call(n,a)){if("type"===a)n.type!==e&&r(n,"Wrong node type `"+n.type+"`, expected `"+e+"`");else if("loc"===a){if(null===n.loc)continue;if(n.loc&&n.loc.constructor===Object)if("string"!=typeof n.loc.source)a+=".source";else if(Yl(n.loc.start)){if(Yl(n.loc.end))continue;a+=".end"}else a+=".start";i=!1}else if(t.hasOwnProperty(a)){i=!1;for(let e=0;!i&&e");else{if(!Array.isArray(r))throw new Error("Wrong value `"+r+"` in `"+e+"."+t+"` structure definition");i.push("List")}}a[t]=i.join(" | ")}return{docs:a,check:Zl(e,r)}}var tc=zl(Ho.join(" | "));function nc(e,t,n){let r={};for(let a in e)e[a].syntax&&(r[a]=n?e[a].syntax:_o(e[a].syntax,{compact:t}));return r}function rc(e,t,n){let r={};for(let[a,i]of Object.entries(e))r[a]={prelude:i.prelude&&(n?i.prelude.syntax:_o(i.prelude.syntax,{compact:t})),descriptors:i.descriptors&&nc(i.descriptors,t,n)};return r}function ac(e,t,n){return{matched:e,iterations:n,error:t,...jl}}function ic(e,t,n,r){let a,i=gl(n,e.syntax);return function(e){for(let t=0;t(Object.defineProperty(i,"syntax",{value:hl(e)}),i.syntax)}):i.syntax=e,Object.defineProperty(i,"match",{get:()=>(Object.defineProperty(i,"match",{value:zl(i.syntax,a)}),i.match)})),i}addAtrule_(e,t){!t||(this.atrules[e]={type:"Atrule",name:e,prelude:t.prelude?this.createDescriptor(t.prelude,"AtrulePrelude",e):null,descriptors:t.descriptors?Object.keys(t.descriptors).reduce(((n,r)=>(n[r]=this.createDescriptor(t.descriptors[r],"AtruleDescriptor",r,e),n)),Object.create(null)):null})}addProperty_(e,t){!t||(this.properties[e]=this.createDescriptor(t,"Property",e))}addType_(e,t){!t||(this.types[e]=this.createDescriptor(t,"Type",e))}checkAtruleName(e){if(!this.getAtrule(e))return new Oo("Unknown at-rule","@"+e)}checkAtrulePrelude(e,t){let n=this.checkAtruleName(e);if(n)return n;let r=this.getAtrule(e);return!r.prelude&&t?new SyntaxError("At-rule `@"+e+"` should not contain a prelude"):!r.prelude||t||ic(this,r.prelude,"",!1).matched?void 0:new SyntaxError("At-rule `@"+e+"` should contain a prelude")}checkAtruleDescriptorName(e,t){let n=this.checkAtruleName(e);if(n)return n;let r=this.getAtrule(e),a=Uo(t);return r.descriptors?r.descriptors[a.name]||r.descriptors[a.basename]?void 0:new Oo("Unknown at-rule descriptor",t):new SyntaxError("At-rule `@"+e+"` has no known descriptors")}checkPropertyName(e){if(!this.getProperty(e))return new Oo("Unknown property",e)}matchAtrulePrelude(e,t){let n=this.checkAtrulePrelude(e,t);if(n)return ac(null,n);let r=this.getAtrule(e);return r.prelude?ic(this,r.prelude,t||"",!1):ac(null,null)}matchAtruleDescriptor(e,t,n){let r=this.checkAtruleDescriptorName(e,t);if(r)return ac(null,r);let a=this.getAtrule(e),i=Uo(t);return ic(this,a.descriptors[i.name]||a.descriptors[i.basename],n,!1)}matchDeclaration(e){return"Declaration"!==e.type?ac(null,new Error("Not a Declaration node")):this.matchProperty(e.property,e.value)}matchProperty(e,t){if(Bo(e).custom)return ac(null,new Error("Lexer matching doesn't applicable for custom properties"));let n=this.checkPropertyName(e);return n?ac(null,n):ic(this,this.getProperty(e),t,!0)}matchType(e,t){let n=this.getType(e);return n?ic(this,n,t,!1):ac(null,new Oo("Unknown type",e))}match(e,t){return"string"==typeof e||e&&e.type?(("string"==typeof e||!e.match)&&(e=this.createDescriptor(e,"Type","anonymous")),ic(this,e,t,!1)):ac(null,new Oo("Bad syntax"))}findValueFragments(e,t,n,r){return Gl(this,t,this.matchProperty(e,t),n,r)}findDeclarationValueFragments(e,t,n){return Gl(this,e.value,this.matchDeclaration(e),t,n)}findAllFragments(e,t,n){let r=[];return this.syntax.walk(e,{visit:"Declaration",enter:e=>{r.push.apply(r,this.findDeclarationValueFragments(e,t,n))}}),r}getAtrule(e,t=!0){let n=Uo(e);return(n.vendor&&t?this.atrules[n.name]||this.atrules[n.basename]:this.atrules[n.name])||null}getAtrulePrelude(e,t=!0){let n=this.getAtrule(e,t);return n&&n.prelude||null}getAtruleDescriptor(e,t){return this.atrules.hasOwnProperty(e)&&this.atrules.declarators&&this.atrules[e].declarators[t]||null}getProperty(e,t=!0){let n=Bo(e);return(n.vendor&&t?this.properties[n.name]||this.properties[n.basename]:this.properties[n.name])||null}getType(e){return hasOwnProperty.call(this.types,e)?this.types[e]:null}validate(){function e(r,a,i,o){if(i.has(a))return i.get(a);i.set(a,!1),null!==o.syntax&&fl(o.syntax,(function(o){if("Type"!==o.type&&"Property"!==o.type)return;let s="Type"===o.type?r.types:r.properties,l="Type"===o.type?t:n;(!hasOwnProperty.call(s,o.name)||e(r,o.name,l,s[o.name]))&&i.set(a,!0)}),this)}let t=new Map,n=new Map;for(let n in this.types)e(this,n,t,this.types[n]);for(let t in this.properties)e(this,t,n,this.properties[t]);return t=[...t.keys()].filter((e=>t.get(e))),n=[...n.keys()].filter((e=>n.get(e))),t.length||n.length?{types:t,properties:n}:null}dump(e,t){return{generic:this.generic,units:this.units,types:nc(this.types,!t,e),properties:nc(this.properties,!t,e),atrules:rc(this.atrules,!t,e)}}toString(){return JSON.stringify(this.dump())}};function sc(e,t){return"string"==typeof t&&/^\s*\|/.test(t)?"string"==typeof e?e+t:t.replace(/^\s*\|\s*/,""):t||null}function lc(e,t){let n=Object.create(null);for(let[r,a]of Object.entries(e))if(a){n[r]={};for(let e of Object.keys(a))t.includes(e)&&(n[r][e]=a[e])}return n}function cc(e,t){let n={...e};for(let[r,a]of Object.entries(t))switch(r){case"generic":n[r]=Boolean(a);break;case"units":n[r]={...e[r]};for(let[e,t]of Object.entries(a))n[r][e]=Array.isArray(t)?t:[];break;case"atrules":n[r]={...e[r]};for(let[e,t]of Object.entries(a)){let a=n[r][e]||{},i=n[r][e]={prelude:a.prelude||null,descriptors:{...a.descriptors}};if(t){i.prelude=t.prelude?sc(i.prelude,t.prelude):i.prelude||null;for(let[e,n]of Object.entries(t.descriptors||{}))i.descriptors[e]=n?sc(i.descriptors[e],n):null;Object.keys(i.descriptors).length||(i.descriptors=null)}}break;case"types":case"properties":n[r]={...e[r]};for(let[e,t]of Object.entries(a))n[r][e]=sc(n[r][e],t);break;case"scope":n[r]={...e[r]};for(let[e,t]of Object.entries(a))n[r][e]={...n[r][e],...t};break;case"parseContext":n[r]={...e[r],...a};break;case"atrule":case"pseudo":n[r]={...e[r],...lc(a,["parse"])};break;case"node":n[r]={...e[r],...lc(a,["name","structure","parse","generate","walkContext"])}}return n}function uc(e){let t=io(e),n=zo(e),r=wo(e),{fromPlainObject:a,toPlainObject:i}=function(e){return{fromPlainObject:t=>(e(t,{enter(e){e.children&&!(e.children instanceof Hi)&&(e.children=(new Hi).fromArray(e.children))}}),t),toPlainObject:t=>(e(t,{leave(e){e.children&&e.children instanceof Hi&&(e.children=e.children.toArray())}}),t)}}(n),o={lexer:null,createLexer:e=>new oc(e,o,o.lexer.structure),tokenize:ji,parse:t,generate:r,walk:n,find:n.find,findLast:n.findLast,findAll:n.findAll,fromPlainObject:a,toPlainObject:i,fork(t){let n=cc({},e);return uc("function"==typeof t?t(n,Object.assign):cc(n,t))}};return o.lexer=new oc({generic:!0,units:e.units,types:e.types,atrules:e.atrules,properties:e.properties,node:e.node},o),o}var hc={};Ca(hc,{AnPlusB:()=>dc,Atrule:()=>Ec,AtrulePrelude:()=>Oc,AttributeSelector:()=>Bc,Block:()=>Zc,Brackets:()=>uu,CDC:()=>mu,CDO:()=>ku,ClassSelector:()=>Cu,Combinator:()=>Lu,Comment:()=>Bu,Declaration:()=>$u,DeclarationList:()=>hh,Dimension:()=>yh,Function:()=>Sh,Hash:()=>Rh,IdSelector:()=>Bh,Identifier:()=>Nh,MediaFeature:()=>Vh,MediaQuery:()=>Qh,MediaQueryList:()=>td,NestingSelector:()=>od,Nth:()=>dd,Number:()=>bd,Operator:()=>xd,Parentheses:()=>zd,Percentage:()=>Dd,PseudoClassSelector:()=>Fd,PseudoElementSelector:()=>Hd,Ratio:()=>Gd,Raw:()=>rp,Rule:()=>cp,Selector:()=>bp,SelectorList:()=>xp,String:()=>Tp,StyleSheet:()=>Mp,TypeSelector:()=>Kp,UnicodeRange:()=>ef,Url:()=>pf,Value:()=>Ef,WhiteSpace:()=>Lf});var dc={};Ca(dc,{generate:()=>Cc,name:()=>xc,parse:()=>Ac,structure:()=>Sc});var pc=43,fc=45,mc=110,gc=!0,bc=!1;function yc(e,t){let n=this.tokenStart+e,r=this.charCodeAt(n);for((r===pc||r===fc)&&(t&&this.error("Number sign is not allowed"),n++);n0&&this.skip(e),0===t&&(n=this.charCodeAt(this.tokenStart),n!==pc&&n!==fc&&this.error("Number sign is expected")),wc.call(this,0!==t),t===fc?"-"+this.consume(10):this.consume(10)}var xc="AnPlusB",Sc={a:[String,null],b:[String,null]};function Ac(){let e=this.tokenStart,t=null,n=null;if(10===this.tokenType)wc.call(this,bc),n=this.consume(10);else if(1===this.tokenType&&this.cmpChar(this.tokenStart,fc))switch(t="-1",kc.call(this,1,mc),this.tokenEnd-this.tokenStart){case 2:this.next(),n=vc.call(this);break;case 3:kc.call(this,2,fc),this.next(),this.skipSC(),wc.call(this,gc),n="-"+this.consume(10);break;default:kc.call(this,2,fc),yc.call(this,3,gc),this.next(),n=this.substrToCursor(e+2)}else if(1===this.tokenType||this.isDelim(pc)&&1===this.lookupType(1)){let r=0;switch(t="1",this.isDelim(pc)&&(r=1,this.next()),kc.call(this,0,mc),this.tokenEnd-this.tokenStart){case 1:this.next(),n=vc.call(this);break;case 2:kc.call(this,1,fc),this.next(),this.skipSC(),wc.call(this,gc),n="-"+this.consume(10);break;default:kc.call(this,1,fc),yc.call(this,2,gc),this.next(),n=this.substrToCursor(e+r+1)}}else if(12===this.tokenType){let r=this.charCodeAt(this.tokenStart),a=r===pc||r===fc,i=this.tokenStart+a;for(;iIc,name:()=>Rc,parse:()=>Dc,structure:()=>Lc,walkContext:()=>_c});var Rc="Atrule",_c="atrule",Lc={name:String,prelude:["AtrulePrelude","Raw",null],block:["Block",null]};function Dc(e=!1){let t,n,r=this.tokenStart,a=null,i=null;switch(this.eat(3),t=this.substrToCursor(r+1),n=t.toLowerCase(),this.skipSC(),!1===this.eof&&23!==this.tokenType&&17!==this.tokenType&&(a=this.parseAtrulePrelude?this.parseWithFallback(this.AtrulePrelude.bind(this,t,e),zc):zc.call(this,this.tokenIndex),this.skipSC()),this.tokenType){case 17:this.next();break;case 23:i=hasOwnProperty.call(this.atrule,n)&&"function"==typeof this.atrule[n].block?this.atrule[n].block.call(this,e):this.Block(Tc.call(this))}return{type:"Atrule",loc:this.getLocation(r,this.tokenStart),name:t,prelude:a,block:i}}function Ic(e){this.token(3,"@"+e.name),null!==e.prelude&&this.node(e.prelude),e.block?this.node(e.block):this.token(17,";")}var Oc={};Ca(Oc,{generate:()=>Uc,name:()=>Nc,parse:()=>Mc,structure:()=>Fc,walkContext:()=>Pc});var Nc="AtrulePrelude",Pc="atrulePrelude",Fc={children:[[]]};function Mc(e){let t=null;return null!==e&&(e=e.toLowerCase()),this.skipSC(),t=hasOwnProperty.call(this.atrule,e)&&"function"==typeof this.atrule[e].prelude?this.atrule[e].prelude.call(this):this.readSequence(this.scope.AtrulePrelude),this.skipSC(),!0!==this.eof&&23!==this.tokenType&&17!==this.tokenType&&this.error("Semicolon or block is expected"),{type:"AtrulePrelude",loc:this.getLocationFromList(t),children:t}}function Uc(e){this.children(e)}var Bc={};Ca(Bc,{generate:()=>Yc,name:()=>Gc,parse:()=>Xc,structure:()=>Qc});var jc=36,qc=42,Hc=61,Wc=94,Vc=124,Kc=126;function $c(){this.eof&&this.error("Unexpected end of input");let e=this.tokenStart,t=!1;return this.isDelim(qc)?(t=!0,this.next()):this.isDelim(Vc)||this.eat(1),this.isDelim(Vc)?this.charCodeAt(this.tokenStart+1)!==Hc?(this.next(),this.eat(1)):t&&this.error("Identifier is expected",this.tokenEnd):t&&this.error("Vertical line is expected"),{type:"Identifier",loc:this.getLocation(e,this.tokenStart),name:this.substrToCursor(e)}}function Jc(){let e=this.tokenStart,t=this.charCodeAt(e);return t!==Hc&&t!==Kc&&t!==Wc&&t!==jc&&t!==qc&&t!==Vc&&this.error("Attribute selector (=, ~=, ^=, $=, *=, |=) is expected"),this.next(),t!==Hc&&(this.isDelim(Hc)||this.error("Equal sign is expected"),this.next()),this.substrToCursor(e)}var Gc="AttributeSelector",Qc={name:"Identifier",matcher:[String,null],value:["String","Identifier",null],flags:[String,null]};function Xc(){let e,t=this.tokenStart,n=null,r=null,a=null;return this.eat(19),this.skipSC(),e=$c.call(this),this.skipSC(),20!==this.tokenType&&(1!==this.tokenType&&(n=Jc.call(this),this.skipSC(),r=5===this.tokenType?this.String():this.Identifier(),this.skipSC()),1===this.tokenType&&(a=this.consume(1),this.skipSC())),this.eat(20),{type:"AttributeSelector",loc:this.getLocation(t,this.tokenStart),name:e,matcher:n,value:r,flags:a}}function Yc(e){this.token(9,"["),this.node(e.name),null!==e.matcher&&(this.tokenize(e.matcher),this.node(e.value)),null!==e.flags&&this.token(1,e.flags),this.token(9,"]")}var Zc={};Ca(Zc,{generate:()=>cu,name:()=>iu,parse:()=>lu,structure:()=>su,walkContext:()=>ou});var eu=38;function tu(e){return this.Raw(e,null,!0)}function nu(){return this.parseWithFallback(this.Rule,tu)}function ru(e){return this.Raw(e,this.consumeUntilSemicolonIncluded,!0)}function au(){if(17===this.tokenType)return ru.call(this,this.tokenIndex);let e=this.parseWithFallback(this.Declaration,ru);return 17===this.tokenType&&this.next(),e}var iu="Block",ou="block",su={children:[["Atrule","Rule","Declaration"]]};function lu(e){let t=e?au:nu,n=this.tokenStart,r=this.createList();this.eat(23);e:for(;!this.eof;)switch(this.tokenType){case 24:break e;case 13:case 25:this.next();break;case 3:r.push(this.parseWithFallback(this.Atrule.bind(this,e),tu));break;default:e&&this.isDelim(eu)?r.push(nu.call(this)):r.push(t.call(this))}return this.eof||this.eat(24),{type:"Block",loc:this.getLocation(n,this.tokenStart),children:r}}function cu(e){this.token(23,"{"),this.children(e,(e=>{"Declaration"===e.type&&this.token(17,";")})),this.token(24,"}")}var uu={};Ca(uu,{generate:()=>fu,name:()=>hu,parse:()=>pu,structure:()=>du});var hu="Brackets",du={children:[[]]};function pu(e,t){let n=this.tokenStart,r=null;return this.eat(19),r=e.call(this,t),this.eof||this.eat(20),{type:"Brackets",loc:this.getLocation(n,this.tokenStart),children:r}}function fu(e){this.token(9,"["),this.children(e),this.token(9,"]")}var mu={};Ca(mu,{generate:()=>wu,name:()=>gu,parse:()=>yu,structure:()=>bu});var gu="CDC",bu=[];function yu(){let e=this.tokenStart;return this.eat(15),{type:"CDC",loc:this.getLocation(e,this.tokenStart)}}function wu(){this.token(15,"--\x3e")}var ku={};Ca(ku,{generate:()=>Au,name:()=>vu,parse:()=>Su,structure:()=>xu});var vu="CDO",xu=[];function Su(){let e=this.tokenStart;return this.eat(14),{type:"CDO",loc:this.getLocation(e,this.tokenStart)}}function Au(){this.token(14,"\x3c!--")}var Cu={};Ca(Cu,{generate:()=>_u,name:()=>zu,parse:()=>Ru,structure:()=>Tu});var Eu=46,zu="ClassSelector",Tu={name:String};function Ru(){return this.eatDelim(Eu),{type:"ClassSelector",loc:this.getLocation(this.tokenStart-1,this.tokenEnd),name:this.consume(1)}}function _u(e){this.token(9,"."),this.token(1,e.name)}var Lu={};Ca(Lu,{generate:()=>Uu,name:()=>Pu,parse:()=>Mu,structure:()=>Fu});var Du=43,Iu=47,Ou=62,Nu=126,Pu="Combinator",Fu={name:String};function Mu(){let e,t=this.tokenStart;switch(this.tokenType){case 13:e=" ";break;case 9:switch(this.charCodeAt(this.tokenStart)){case Ou:case Du:case Nu:this.next();break;case Iu:this.next(),this.eatIdent("deep"),this.eatDelim(Iu);break;default:this.error("Combinator is expected")}e=this.substrToCursor(t)}return{type:"Combinator",loc:this.getLocation(t,this.tokenStart),name:e}}function Uu(e){this.tokenize(e.name)}var Bu={};Ca(Bu,{generate:()=>Ku,name:()=>Hu,parse:()=>Vu,structure:()=>Wu});var ju=42,qu=47,Hu="Comment",Wu={value:String};function Vu(){let e=this.tokenStart,t=this.tokenEnd;return this.eat(25),t-e+2>=2&&this.charCodeAt(t-2)===ju&&this.charCodeAt(t-1)===qu&&(t-=2),{type:"Comment",loc:this.getLocation(e,this.tokenStart),value:this.substring(e+2,t)}}function Ku(e){this.token(25,"/*"+e.value+"*/")}var $u={};Ca($u,{generate:()=>lh,name:()=>ah,parse:()=>sh,structure:()=>oh,walkContext:()=>ih});var Ju=33,Gu=35,Qu=36,Xu=38,Yu=42,Zu=43,eh=47;function th(e){return this.Raw(e,this.consumeUntilExclamationMarkOrSemicolon,!0)}function nh(e){return this.Raw(e,this.consumeUntilExclamationMarkOrSemicolon,!1)}function rh(){let e=this.tokenIndex,t=this.Value();return"Raw"!==t.type&&!1===this.eof&&17!==this.tokenType&&!1===this.isDelim(Ju)&&!1===this.isBalanceEdge(e)&&this.error(),t}var ah="Declaration",ih="declaration",oh={important:[Boolean,String],property:String,value:["Value","Raw"]};function sh(){let e,t=this.tokenStart,n=this.tokenIndex,r=ch.call(this),a=jo(r),i=a?this.parseCustomProperty:this.parseValue,o=a?nh:th,s=!1;this.skipSC(),this.eat(16);let l=this.tokenIndex;if(a||this.skipSC(),e=i?this.parseWithFallback(rh,o):o.call(this,this.tokenIndex),a&&"Value"===e.type&&e.children.isEmpty)for(let t=l-this.tokenIndex;t<=0;t++)if(13===this.lookupType(t)){e.children.appendData({type:"WhiteSpace",loc:null,value:" "});break}return this.isDelim(Ju)&&(s=uh.call(this),this.skipSC()),!1===this.eof&&17!==this.tokenType&&!1===this.isBalanceEdge(n)&&this.error(),{type:"Declaration",loc:this.getLocation(t,this.tokenStart),important:s,property:r,value:e}}function lh(e){this.token(1,e.property),this.token(16,":"),this.node(e.value),e.important&&(this.token(9,"!"),this.token(1,!0===e.important?"important":e.important))}function ch(){let e=this.tokenStart;if(9===this.tokenType)switch(this.charCodeAt(this.tokenStart)){case Yu:case Qu:case Zu:case Gu:case Xu:this.next();break;case eh:this.next(),this.isDelim(eh)&&this.next()}return 4===this.tokenType?this.eat(4):this.eat(1),this.substrToCursor(e)}function uh(){this.eat(9),this.skipSC();let e=this.consume(1);return"important"===e||e}var hh={};Ca(hh,{generate:()=>bh,name:()=>fh,parse:()=>gh,structure:()=>mh});var dh=38;function ph(e){return this.Raw(e,this.consumeUntilSemicolonIncluded,!0)}var fh="DeclarationList",mh={children:[["Declaration","Atrule","Rule"]]};function gh(){let e=this.createList();for(;!this.eof;)switch(this.tokenType){case 13:case 25:case 17:this.next();break;case 3:e.push(this.parseWithFallback(this.Atrule.bind(this,!0),ph));break;default:this.isDelim(dh)?e.push(this.parseWithFallback(this.Rule,ph)):e.push(this.parseWithFallback(this.Declaration,ph))}return{type:"DeclarationList",loc:this.getLocationFromList(e),children:e}}function bh(e){this.children(e,(e=>{"Declaration"===e.type&&this.token(17,";")}))}var yh={};Ca(yh,{generate:()=>xh,name:()=>wh,parse:()=>vh,structure:()=>kh});var wh="Dimension",kh={value:String,unit:String};function vh(){let e=this.tokenStart,t=this.consumeNumber(12);return{type:"Dimension",loc:this.getLocation(e,this.tokenStart),value:t,unit:this.substring(e+t.length,this.tokenStart)}}function xh(e){this.token(12,e.value+e.unit)}var Sh={};Ca(Sh,{generate:()=>Th,name:()=>Ah,parse:()=>zh,structure:()=>Eh,walkContext:()=>Ch});var Ah="Function",Ch="function",Eh={name:String,children:[[]]};function zh(e,t){let n,r=this.tokenStart,a=this.consumeFunctionName(),i=a.toLowerCase();return n=t.hasOwnProperty(i)?t[i].call(this,t):e.call(this,t),this.eof||this.eat(22),{type:"Function",loc:this.getLocation(r,this.tokenStart),name:a,children:n}}function Th(e){this.token(2,e.name+"("),this.children(e),this.token(22,")")}var Rh={};Ca(Rh,{generate:()=>Oh,name:()=>Lh,parse:()=>Ih,structure:()=>Dh,xxx:()=>_h});var _h="XXX",Lh="Hash",Dh={value:String};function Ih(){let e=this.tokenStart;return this.eat(4),{type:"Hash",loc:this.getLocation(e,this.tokenStart),value:this.substrToCursor(e+1)}}function Oh(e){this.token(4,"#"+e.value)}var Nh={};Ca(Nh,{generate:()=>Uh,name:()=>Ph,parse:()=>Mh,structure:()=>Fh});var Ph="Identifier",Fh={name:String};function Mh(){return{type:"Identifier",loc:this.getLocation(this.tokenStart,this.tokenEnd),name:this.consume(1)}}function Uh(e){this.token(1,e.name)}var Bh={};Ca(Bh,{generate:()=>Wh,name:()=>jh,parse:()=>Hh,structure:()=>qh});var jh="IdSelector",qh={name:String};function Hh(){let e=this.tokenStart;return this.eat(4),{type:"IdSelector",loc:this.getLocation(e,this.tokenStart),name:this.substrToCursor(e+1)}}function Wh(e){this.token(9,"#"+e.name)}var Vh={};Ca(Vh,{generate:()=>Gh,name:()=>Kh,parse:()=>Jh,structure:()=>$h});var Kh="MediaFeature",$h={name:String,value:["Identifier","Number","Dimension","Ratio",null]};function Jh(){let e,t=this.tokenStart,n=null;if(this.eat(21),this.skipSC(),e=this.consume(1),this.skipSC(),22!==this.tokenType){switch(this.eat(16),this.skipSC(),this.tokenType){case 10:n=9===this.lookupNonWSType(1)?this.Ratio():this.Number();break;case 12:n=this.Dimension();break;case 1:n=this.Identifier();break;default:this.error("Number, dimension, ratio or identifier is expected")}this.skipSC()}return this.eat(22),{type:"MediaFeature",loc:this.getLocation(t,this.tokenStart),name:e,value:n}}function Gh(e){this.token(21,"("),this.token(1,e.name),null!==e.value&&(this.token(16,":"),this.node(e.value)),this.token(22,")")}var Qh={};Ca(Qh,{generate:()=>ed,name:()=>Xh,parse:()=>Zh,structure:()=>Yh});var Xh="MediaQuery",Yh={children:[["Identifier","MediaFeature","WhiteSpace"]]};function Zh(){let e=this.createList(),t=null;this.skipSC();e:for(;!this.eof;){switch(this.tokenType){case 25:case 13:this.next();continue;case 1:t=this.Identifier();break;case 21:t=this.MediaFeature();break;default:break e}e.push(t)}return null===t&&this.error("Identifier or parenthesis is expected"),{type:"MediaQuery",loc:this.getLocationFromList(e),children:e}}function ed(e){this.children(e)}var td={};Ca(td,{generate:()=>id,name:()=>nd,parse:()=>ad,structure:()=>rd});var nd="MediaQueryList",rd={children:[["MediaQuery"]]};function ad(){let e=this.createList();for(this.skipSC();!this.eof&&(e.push(this.MediaQuery()),18===this.tokenType);)this.next();return{type:"MediaQueryList",loc:this.getLocationFromList(e),children:e}}function id(e){this.children(e,(()=>this.token(18,",")))}var od={};Ca(od,{generate:()=>hd,name:()=>ld,parse:()=>ud,structure:()=>cd});var sd=38,ld="NestingSelector",cd={};function ud(){let e=this.tokenStart;return this.eatDelim(sd),{type:"NestingSelector",loc:this.getLocation(e,this.tokenStart)}}function hd(){this.token(9,"&")}var dd={};Ca(dd,{generate:()=>gd,name:()=>pd,parse:()=>md,structure:()=>fd});var pd="Nth",fd={nth:["AnPlusB","Identifier"],selector:["SelectorList",null]};function md(){this.skipSC();let e,t=this.tokenStart,n=t,r=null;return e=this.lookupValue(0,"odd")||this.lookupValue(0,"even")?this.Identifier():this.AnPlusB(),n=this.tokenStart,this.skipSC(),this.lookupValue(0,"of")&&(this.next(),r=this.SelectorList(),n=this.tokenStart),{type:"Nth",loc:this.getLocation(t,n),nth:e,selector:r}}function gd(e){this.node(e.nth),null!==e.selector&&(this.token(1,"of"),this.node(e.selector))}var bd={};Ca(bd,{generate:()=>vd,name:()=>yd,parse:()=>kd,structure:()=>wd});var yd="Number",wd={value:String};function kd(){return{type:"Number",loc:this.getLocation(this.tokenStart,this.tokenEnd),value:this.consume(10)}}function vd(e){this.token(10,e.value)}var xd={};Ca(xd,{generate:()=>Ed,name:()=>Sd,parse:()=>Cd,structure:()=>Ad});var Sd="Operator",Ad={value:String};function Cd(){let e=this.tokenStart;return this.next(),{type:"Operator",loc:this.getLocation(e,this.tokenStart),value:this.substrToCursor(e)}}function Ed(e){this.tokenize(e.value)}var zd={};Ca(zd,{generate:()=>Ld,name:()=>Td,parse:()=>_d,structure:()=>Rd});var Td="Parentheses",Rd={children:[[]]};function _d(e,t){let n=this.tokenStart,r=null;return this.eat(21),r=e.call(this,t),this.eof||this.eat(22),{type:"Parentheses",loc:this.getLocation(n,this.tokenStart),children:r}}function Ld(e){this.token(21,"("),this.children(e),this.token(22,")")}var Dd={};Ca(Dd,{generate:()=>Pd,name:()=>Id,parse:()=>Nd,structure:()=>Od});var Id="Percentage",Od={value:String};function Nd(){return{type:"Percentage",loc:this.getLocation(this.tokenStart,this.tokenEnd),value:this.consumeNumber(11)}}function Pd(e){this.token(11,e.value+"%")}var Fd={};Ca(Fd,{generate:()=>qd,name:()=>Md,parse:()=>jd,structure:()=>Bd,walkContext:()=>Ud});var Md="PseudoClassSelector",Ud="function",Bd={name:String,children:[["Raw"],null]};function jd(){let e,t,n=this.tokenStart,r=null;return this.eat(16),2===this.tokenType?(e=this.consumeFunctionName(),t=e.toLowerCase(),22==this.lookupNonWSType(0)?r=this.createList():hasOwnProperty.call(this.pseudo,t)?(this.skipSC(),r=this.pseudo[t].call(this),this.skipSC()):(r=this.createList(),r.push(this.Raw(this.tokenIndex,null,!1))),this.eat(22)):e=this.consume(1),{type:"PseudoClassSelector",loc:this.getLocation(n,this.tokenStart),name:e,children:r}}function qd(e){this.token(16,":"),null===e.children?this.token(1,e.name):(this.token(2,e.name+"("),this.children(e),this.token(22,")"))}var Hd={};Ca(Hd,{generate:()=>Jd,name:()=>Wd,parse:()=>$d,structure:()=>Kd,walkContext:()=>Vd});var Wd="PseudoElementSelector",Vd="function",Kd={name:String,children:[["Raw"],null]};function $d(){let e,t,n=this.tokenStart,r=null;return this.eat(16),this.eat(16),2===this.tokenType?(e=this.consumeFunctionName(),t=e.toLowerCase(),22==this.lookupNonWSType(0)?r=this.createList():hasOwnProperty.call(this.pseudo,t)?(this.skipSC(),r=this.pseudo[t].call(this),this.skipSC()):(r=this.createList(),r.push(this.Raw(this.tokenIndex,null,!1))),this.eat(22)):e=this.consume(1),{type:"PseudoElementSelector",loc:this.getLocation(n,this.tokenStart),name:e,children:r}}function Jd(e){this.token(16,":"),this.token(16,":"),null===e.children?this.token(1,e.name):(this.token(2,e.name+"("),this.children(e),this.token(22,")"))}var Gd={};Ca(Gd,{generate:()=>np,name:()=>Zd,parse:()=>tp,structure:()=>ep});var Qd=47,Xd=46;function Yd(){this.skipSC();let e=this.consume(10);for(let t=0;t0&&13===this.lookupType(-1)?this.tokenIndex>1?this.getTokenStart(this.tokenIndex-1):this.firstCharOffset:this.tokenStart}Ca(rp,{generate:()=>lp,name:()=>ip,parse:()=>sp,structure:()=>op});var ip="Raw",op={value:String};function sp(e,t,n){let r,a=this.getTokenStart(e);return this.skipUntilBalanced(e,t||this.consumeUntilBalanceEnd),r=n&&this.tokenStart>a?ap.call(this):this.tokenStart,{type:"Raw",loc:this.getLocation(a,r),value:this.substring(a,r)}}function lp(e){this.tokenize(e.value)}var cp={};function up(e){return this.Raw(e,this.consumeUntilLeftCurlyBracket,!0)}function hp(){let e=this.SelectorList();return"Raw"!==e.type&&!1===this.eof&&23!==this.tokenType&&this.error(),e}Ca(cp,{generate:()=>gp,name:()=>dp,parse:()=>mp,structure:()=>fp,walkContext:()=>pp});var dp="Rule",pp="rule",fp={prelude:["SelectorList","Raw"],block:["Block"]};function mp(){let e,t,n=this.tokenIndex,r=this.tokenStart;return e=this.parseRulePrelude?this.parseWithFallback(hp,up):up.call(this,n),t=this.Block(!0),{type:"Rule",loc:this.getLocation(r,this.tokenStart),prelude:e,block:t}}function gp(e){this.node(e.prelude),this.node(e.block)}var bp={};Ca(bp,{generate:()=>vp,name:()=>yp,parse:()=>kp,structure:()=>wp});var yp="Selector",wp={children:[["TypeSelector","IdSelector","ClassSelector","AttributeSelector","PseudoClassSelector","PseudoElementSelector","Combinator","WhiteSpace"]]};function kp(){let e=this.readSequence(this.scope.Selector);return null===this.getFirstListNode(e)&&this.error("Selector is expected"),{type:"Selector",loc:this.getLocationFromList(e),children:e}}function vp(e){this.children(e)}var xp={};Ca(xp,{generate:()=>zp,name:()=>Sp,parse:()=>Ep,structure:()=>Cp,walkContext:()=>Ap});var Sp="SelectorList",Ap="selector",Cp={children:[["Selector","Raw"]]};function Ep(){let e=this.createList();for(;!this.eof&&(e.push(this.Selector()),18===this.tokenType);)this.next();return{type:"SelectorList",loc:this.getLocationFromList(e),children:e}}function zp(e){this.children(e,(()=>this.token(18,",")))}var Tp={};Ca(Tp,{generate:()=>Fp,name:()=>Op,parse:()=>Pp,structure:()=>Np});Ca({},{decode:()=>Dp,encode:()=>Ip});var Rp=92,_p=34,Lp=39;function Dp(e){let t=e.length,n=e.charCodeAt(0),r=n===_p||n===Lp?1:0,a=1===r&&t>1&&e.charCodeAt(t-1)===n?t-2:t-1,i="";for(let n=r;n<=a;n++){let r=e.charCodeAt(n);if(r===Rp){if(n===a){n!==t-1&&(i=e.substr(n+1));break}if(r=e.charCodeAt(++n),di(Rp,r)){let t=n-1,r=Ti(e,t);n=r-1,i+=Di(e.substring(t+1,r))}else 13===r&&10===e.charCodeAt(n+1)&&n++}else i+=e[n]}return i}function Ip(e,t){let n=t?"'":'"',r=t?Lp:_p,a="",i=!1;for(let t=0;tVp,name:()=>jp,parse:()=>Wp,structure:()=>Hp,walkContext:()=>qp});var Up=33;function Bp(e){return this.Raw(e,null,!1)}var jp="StyleSheet",qp="stylesheet",Hp={children:[["Comment","CDO","CDC","Atrule","Rule","Raw"]]};function Wp(){let e,t=this.tokenStart,n=this.createList();for(;!this.eof;){switch(this.tokenType){case 13:this.next();continue;case 25:if(this.charCodeAt(this.tokenStart+2)!==Up){this.next();continue}e=this.Comment();break;case 14:e=this.CDO();break;case 15:e=this.CDC();break;case 3:e=this.parseWithFallback(this.Atrule,Bp);break;default:e=this.parseWithFallback(this.Rule,Bp)}n.push(e)}return{type:"StyleSheet",loc:this.getLocation(t,this.tokenStart),children:n}}function Vp(e){this.children(e)}var Kp={};Ca(Kp,{generate:()=>Zp,name:()=>Qp,parse:()=>Yp,structure:()=>Xp});var $p=42,Jp=124;function Gp(){1!==this.tokenType&&!1===this.isDelim($p)&&this.error("Identifier or asterisk is expected"),this.next()}var Qp="TypeSelector",Xp={name:String};function Yp(){let e=this.tokenStart;return this.isDelim(Jp)?(this.next(),Gp.call(this)):(Gp.call(this),this.isDelim(Jp)&&(this.next(),Gp.call(this))),{type:"TypeSelector",loc:this.getLocation(e,this.tokenStart),name:this.substrToCursor(e)}}function Zp(e){this.tokenize(e.name)}var ef={};Ca(ef,{generate:()=>df,name:()=>cf,parse:()=>hf,structure:()=>uf});var tf=43,nf=45,rf=63;function af(e,t){let n=0;for(let r=this.tokenStart+e;r6&&this.error("Too many hex digits",r)}return this.next(),n}function of(e){let t=0;for(;this.isDelim(rf);)++t>e&&this.error("Too many question marks"),this.next()}function sf(e){this.charCodeAt(this.tokenStart)!==e&&this.error((e===tf?"Plus sign":"Hyphen minus")+" is expected")}function lf(){let e=0;switch(this.tokenType){case 10:if(e=af.call(this,1,!0),this.isDelim(rf)){of.call(this,6-e);break}if(12===this.tokenType||10===this.tokenType){sf.call(this,nf),af.call(this,1,!1);break}break;case 12:e=af.call(this,1,!0),e>0&&of.call(this,6-e);break;default:if(this.eatDelim(tf),1===this.tokenType){e=af.call(this,0,!0),e>0&&of.call(this,6-e);break}if(this.isDelim(rf)){this.next(),of.call(this,5);break}this.error("Hex digit or question mark is expected")}}var cf="UnicodeRange",uf={value:String};function hf(){let e=this.tokenStart;return this.eatIdent("u"),lf.call(this),{type:"UnicodeRange",loc:this.getLocation(e,this.tokenStart),value:this.substrToCursor(e)}}function df(e){this.tokenize(e.value)}var pf={};Ca(pf,{generate:()=>Cf,name:()=>xf,parse:()=>Af,structure:()=>Sf});Ca({},{decode:()=>kf,encode:()=>vf});var ff=32,mf=92,gf=34,bf=39,yf=40,wf=41;function kf(e){let t=e.length,n=4,r=e.charCodeAt(t-1)===wf?t-2:t-1,a="";for(;n_f,name:()=>zf,parse:()=>Rf,structure:()=>Tf});var zf="Value",Tf={children:[[]]};function Rf(){let e=this.tokenStart,t=this.readSequence(this.scope.Value);return{type:"Value",loc:this.getLocation(e,this.tokenStart),children:t}}function _f(e){this.children(e)}var Lf={};Ca(Lf,{generate:()=>Pf,name:()=>If,parse:()=>Nf,structure:()=>Of});var Df=Object.freeze({type:"WhiteSpace",loc:null,value:" "}),If="WhiteSpace",Of={value:String};function Nf(){return this.eat(13),Df}function Pf(e){this.token(13,e.value)}var Ff={generic:!0,generic:!0,units:{angle:["deg","grad","rad","turn"],decibel:["db"],flex:["fr"],frequency:["hz","khz"],length:["cm","mm","q","in","pt","pc","px","em","rem","ex","rex","cap","rcap","ch","rch","ic","ric","lh","rlh","vw","svw","lvw","dvw","vh","svh","lvh","dvh","vi","svi","lvi","dvi","vb","svb","lvb","dvb","vmin","svmin","lvmin","dvmin","vmax","svmax","lvmax","dvmax","cqw","cqh","cqi","cqb","cqmin","cqmax"],resolution:["dpi","dpcm","dppx","x"],semitones:["st"],time:["s","ms"]},types:{"abs()":"abs( )","absolute-size":"xx-small|x-small|small|medium|large|x-large|xx-large|xxx-large","acos()":"acos( )","alpha-value":"|","angle-percentage":"|","angular-color-hint":"","angular-color-stop":"&&?","angular-color-stop-list":"[ [, ]?]# , ","animateable-feature":"scroll-position|contents|","asin()":"asin( )","atan()":"atan( )","atan2()":"atan2( , )",attachment:"scroll|fixed|local","attr()":"attr( ? [, ]? )","attr-matcher":"['~'|'|'|'^'|'$'|'*']? '='","attr-modifier":"i|s","attribute-selector":"'[' ']'|'[' [|] ? ']'","auto-repeat":"repeat( [auto-fill|auto-fit] , [? ]+ ? )","auto-track-list":"[? [|]]* ? [? [|]]* ?",axis:"block|inline|vertical|horizontal","baseline-position":"[first|last]? baseline","basic-shape":"||||","bg-image":"none|","bg-layer":"|| [/ ]?||||||||","bg-position":"[[left|center|right|top|bottom|]|[left|center|right|] [top|center|bottom|]|[center|[left|right] ?]&&[center|[top|bottom] ?]]","bg-size":"[|auto]{1,2}|cover|contain","blur()":"blur( )","blend-mode":"normal|multiply|screen|overlay|darken|lighten|color-dodge|color-burn|hard-light|soft-light|difference|exclusion|hue|saturation|color|luminosity",box:"border-box|padding-box|content-box","brightness()":"brightness( )","calc()":"calc( )","calc-sum":" [['+'|'-'] ]*","calc-product":" ['*' |'/' ]*","calc-value":"||||( )","calc-constant":"e|pi|infinity|-infinity|NaN","cf-final-image":"|","cf-mixing-image":"?&&","circle()":"circle( []? [at ]? )","clamp()":"clamp( #{3} )","class-selector":"'.' ","clip-source":"",color:"|||||||||currentcolor|","color-stop":"|","color-stop-angle":"{1,2}","color-stop-length":"{1,2}","color-stop-list":"[ [, ]?]# , ",combinator:"'>'|'+'|'~'|['||']","common-lig-values":"[common-ligatures|no-common-ligatures]","compat-auto":"searchfield|textarea|push-button|slider-horizontal|checkbox|radio|square-button|menulist|listbox|meter|progress-bar|button","composite-style":"clear|copy|source-over|source-in|source-out|source-atop|destination-over|destination-in|destination-out|destination-atop|xor","compositing-operator":"add|subtract|intersect|exclude","compound-selector":"[? * [ *]*]!","compound-selector-list":"#","complex-selector":" [? ]*","complex-selector-list":"#","conic-gradient()":"conic-gradient( [from ]? [at ]? , )","contextual-alt-values":"[contextual|no-contextual]","content-distribution":"space-between|space-around|space-evenly|stretch","content-list":"[|contents||||||]+","content-position":"center|start|end|flex-start|flex-end","content-replacement":"","contrast()":"contrast( [] )","cos()":"cos( )",counter:"|","counter()":"counter( , ? )","counter-name":"","counter-style":"|symbols( )","counter-style-name":"","counters()":"counters( , , ? )","cross-fade()":"cross-fade( , ? )","cubic-bezier-timing-function":"ease|ease-in|ease-out|ease-in-out|cubic-bezier( , , , )","deprecated-system-color":"ActiveBorder|ActiveCaption|AppWorkspace|Background|ButtonFace|ButtonHighlight|ButtonShadow|ButtonText|CaptionText|GrayText|Highlight|HighlightText|InactiveBorder|InactiveCaption|InactiveCaptionText|InfoBackground|InfoText|Menu|MenuText|Scrollbar|ThreeDDarkShadow|ThreeDFace|ThreeDHighlight|ThreeDLightShadow|ThreeDShadow|Window|WindowFrame|WindowText","discretionary-lig-values":"[discretionary-ligatures|no-discretionary-ligatures]","display-box":"contents|none","display-inside":"flow|flow-root|table|flex|grid|ruby","display-internal":"table-row-group|table-header-group|table-footer-group|table-row|table-cell|table-column-group|table-column|table-caption|ruby-base|ruby-text|ruby-base-container|ruby-text-container","display-legacy":"inline-block|inline-list-item|inline-table|inline-flex|inline-grid","display-listitem":"?&&[flow|flow-root]?&&list-item","display-outside":"block|inline|run-in","drop-shadow()":"drop-shadow( {2,3} ? )","east-asian-variant-values":"[jis78|jis83|jis90|jis04|simplified|traditional]","east-asian-width-values":"[full-width|proportional-width]","element()":"element( , [first|start|last|first-except]? )|element( )","ellipse()":"ellipse( [{2}]? [at ]? )","ending-shape":"circle|ellipse","env()":"env( , ? )","exp()":"exp( )","explicit-track-list":"[? ]+ ?","family-name":"|+","feature-tag-value":" [|on|off]?","feature-type":"@stylistic|@historical-forms|@styleset|@character-variant|@swash|@ornaments|@annotation","feature-value-block":" '{' '}'","feature-value-block-list":"+","feature-value-declaration":" : + ;","feature-value-declaration-list":"","feature-value-name":"","fill-rule":"nonzero|evenodd","filter-function":"|||||||||","filter-function-list":"[|]+","final-bg-layer":"<'background-color'>|||| [/ ]?||||||||","fixed-breadth":"","fixed-repeat":"repeat( [] , [? ]+ ? )","fixed-size":"|minmax( , )|minmax( , )","font-stretch-absolute":"normal|ultra-condensed|extra-condensed|condensed|semi-condensed|semi-expanded|expanded|extra-expanded|ultra-expanded|","font-variant-css21":"[normal|small-caps]","font-weight-absolute":"normal|bold|","frequency-percentage":"|","general-enclosed":"[ )]|( )","generic-family":"serif|sans-serif|cursive|fantasy|monospace|-apple-system","generic-name":"serif|sans-serif|cursive|fantasy|monospace","geometry-box":"|fill-box|stroke-box|view-box",gradient:"||||||<-legacy-gradient>","grayscale()":"grayscale( )","grid-line":"auto||[&&?]|[span&&[||]]","historical-lig-values":"[historical-ligatures|no-historical-ligatures]","hsl()":"hsl( [/ ]? )|hsl( , , , ? )","hsla()":"hsla( [/ ]? )|hsla( , , , ? )",hue:"|","hue-rotate()":"hue-rotate( )","hwb()":"hwb( [|none] [|none] [|none] [/ [|none]]? )","hypot()":"hypot( # )",image:"||||||","image()":"image( ? [? , ?]! )","image-set()":"image-set( # )","image-set-option":"[|] [||type( )]","image-src":"|","image-tags":"ltr|rtl","inflexible-breadth":"|min-content|max-content|auto","inset()":"inset( {1,4} [round <'border-radius'>]? )","invert()":"invert( )","keyframes-name":"|","keyframe-block":"# { }","keyframe-block-list":"+","keyframe-selector":"from|to|","lab()":"lab( [||none] [||none] [||none] [/ [|none]]? )","layer()":"layer( )","layer-name":" ['.' ]*","lch()":"lch( [||none] [||none] [|none] [/ [|none]]? )","leader()":"leader( )","leader-type":"dotted|solid|space|","length-percentage":"|","line-names":"'[' * ']'","line-name-list":"[|]+","line-style":"none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset","line-width":"|thin|medium|thick","linear-color-hint":"","linear-color-stop":" ?","linear-gradient()":"linear-gradient( [|to ]? , )","log()":"log( , ? )","mask-layer":"|| [/ ]?||||||[|no-clip]||||","mask-position":"[|left|center|right] [|top|center|bottom]?","mask-reference":"none||","mask-source":"","masking-mode":"alpha|luminance|match-source","matrix()":"matrix( #{6} )","matrix3d()":"matrix3d( #{16} )","max()":"max( # )","media-and":" [and ]+","media-condition":"|||","media-condition-without-or":"||","media-feature":"( [||] )","media-in-parens":"( )||","media-not":"not ","media-or":" [or ]+","media-query":"|[not|only]? [and ]?","media-query-list":"#","media-type":"","mf-boolean":"","mf-name":"","mf-plain":" : ","mf-range":" ['<'|'>']? '='? | ['<'|'>']? '='? | '<' '='? '<' '='? | '>' '='? '>' '='? ","mf-value":"|||","min()":"min( # )","minmax()":"minmax( [|min-content|max-content|auto] , [||min-content|max-content|auto] )","mod()":"mod( , )","name-repeat":"repeat( [|auto-fill] , + )","named-color":"transparent|aliceblue|antiquewhite|aqua|aquamarine|azure|beige|bisque|black|blanchedalmond|blue|blueviolet|brown|burlywood|cadetblue|chartreuse|chocolate|coral|cornflowerblue|cornsilk|crimson|cyan|darkblue|darkcyan|darkgoldenrod|darkgray|darkgreen|darkgrey|darkkhaki|darkmagenta|darkolivegreen|darkorange|darkorchid|darkred|darksalmon|darkseagreen|darkslateblue|darkslategray|darkslategrey|darkturquoise|darkviolet|deeppink|deepskyblue|dimgray|dimgrey|dodgerblue|firebrick|floralwhite|forestgreen|fuchsia|gainsboro|ghostwhite|gold|goldenrod|gray|green|greenyellow|grey|honeydew|hotpink|indianred|indigo|ivory|khaki|lavender|lavenderblush|lawngreen|lemonchiffon|lightblue|lightcoral|lightcyan|lightgoldenrodyellow|lightgray|lightgreen|lightgrey|lightpink|lightsalmon|lightseagreen|lightskyblue|lightslategray|lightslategrey|lightsteelblue|lightyellow|lime|limegreen|linen|magenta|maroon|mediumaquamarine|mediumblue|mediumorchid|mediumpurple|mediumseagreen|mediumslateblue|mediumspringgreen|mediumturquoise|mediumvioletred|midnightblue|mintcream|mistyrose|moccasin|navajowhite|navy|oldlace|olive|olivedrab|orange|orangered|orchid|palegoldenrod|palegreen|paleturquoise|palevioletred|papayawhip|peachpuff|peru|pink|plum|powderblue|purple|rebeccapurple|red|rosybrown|royalblue|saddlebrown|salmon|sandybrown|seagreen|seashell|sienna|silver|skyblue|slateblue|slategray|slategrey|snow|springgreen|steelblue|tan|teal|thistle|tomato|turquoise|violet|wheat|white|whitesmoke|yellow|yellowgreen|<-non-standard-color>","namespace-prefix":"","ns-prefix":"[|'*']? '|'","number-percentage":"|","numeric-figure-values":"[lining-nums|oldstyle-nums]","numeric-fraction-values":"[diagonal-fractions|stacked-fractions]","numeric-spacing-values":"[proportional-nums|tabular-nums]",nth:"|even|odd","opacity()":"opacity( [] )","overflow-position":"unsafe|safe","outline-radius":"|","page-body":"? [; ]?| ","page-margin-box":" '{' '}'","page-margin-box-type":"@top-left-corner|@top-left|@top-center|@top-right|@top-right-corner|@bottom-left-corner|@bottom-left|@bottom-center|@bottom-right|@bottom-right-corner|@left-top|@left-middle|@left-bottom|@right-top|@right-middle|@right-bottom","page-selector-list":"[#]?","page-selector":"+| *","page-size":"A5|A4|A3|B5|B4|JIS-B5|JIS-B4|letter|legal|ledger","path()":"path( [ ,]? )","paint()":"paint( , ? )","perspective()":"perspective( [|none] )","polygon()":"polygon( ? , [ ]# )",position:"[[left|center|right]||[top|center|bottom]|[left|center|right|] [top|center|bottom|]?|[[left|right] ]&&[[top|bottom] ]]","pow()":"pow( , )","pseudo-class-selector":"':' |':' ')'","pseudo-element-selector":"':' ","pseudo-page":": [left|right|first|blank]",quote:"open-quote|close-quote|no-open-quote|no-close-quote","radial-gradient()":"radial-gradient( [||]? [at ]? , )",ratio:" [/ ]?","relative-selector":"? ","relative-selector-list":"#","relative-size":"larger|smaller","rem()":"rem( , )","repeat-style":"repeat-x|repeat-y|[repeat|space|round|no-repeat]{1,2}","repeating-conic-gradient()":"repeating-conic-gradient( [from ]? [at ]? , )","repeating-linear-gradient()":"repeating-linear-gradient( [|to ]? , )","repeating-radial-gradient()":"repeating-radial-gradient( [||]? [at ]? , )","reversed-counter-name":"reversed( )","rgb()":"rgb( {3} [/ ]? )|rgb( {3} [/ ]? )|rgb( #{3} , ? )|rgb( #{3} , ? )","rgba()":"rgba( {3} [/ ]? )|rgba( {3} [/ ]? )|rgba( #{3} , ? )|rgba( #{3} , ? )","rotate()":"rotate( [|] )","rotate3d()":"rotate3d( , , , [|] )","rotateX()":"rotateX( [|] )","rotateY()":"rotateY( [|] )","rotateZ()":"rotateZ( [|] )","round()":"round( ? , , )","rounding-strategy":"nearest|up|down|to-zero","saturate()":"saturate( )","scale()":"scale( [|]#{1,2} )","scale3d()":"scale3d( [|]#{3} )","scaleX()":"scaleX( [|] )","scaleY()":"scaleY( [|] )","scaleZ()":"scaleZ( [|] )",scroller:"root|nearest","self-position":"center|start|end|self-start|self-end|flex-start|flex-end","shape-radius":"|closest-side|farthest-side","sign()":"sign( )","skew()":"skew( [|] , [|]? )","skewX()":"skewX( [|] )","skewY()":"skewY( [|] )","sepia()":"sepia( )",shadow:"inset?&&{2,4}&&?","shadow-t":"[{2,3}&&?]",shape:"rect( , , , )|rect( )","shape-box":"|margin-box","side-or-corner":"[left|right]||[top|bottom]","sin()":"sin( )","single-animation":"