!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 p="single-file-",d="SingleFile",m="single-file-infobar",g="\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 f(e,t,n){if(!e.querySelector(m)){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,m,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=g.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 p=e.createElement("span");p.textContent=r,u.appendChild(p);const d=e.createElement("a");if(d.classList.add("infobar-link-icon"),d.target="_blank",d.rel="noopener noreferrer",d.title="Open source URL: "+t.saveUrl,d.href=t.saveUrl,u.appendChild(d),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(d)){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?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~⌂ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜ¢£¥₧ƒáíóúñѪº¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ ".split("").length,new L([7,0,2,0,65,69,3,0,0]);try{ce="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){}ne({baseURL:ce}),function(e){const t=()=>R.createObjectURL(new D(['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]}})}(ne);var ue=Object.create,he=Object.defineProperty,pe=Object.getOwnPropertyDescriptor,de=Object.getOwnPropertyNames,me=Object.getPrototypeOf,ge=Object.prototype.hasOwnProperty,fe=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),be=(e,t)=>{for(var n in t)he(e,n,{get:t[n],enumerable:!0})},ye=fe((e=>{var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");e.encode=function(e){if(0<=e&&e{var t=ye();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}})),ke=fe((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)}})),ve=fe((e=>{var t=ke(),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=ke();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})),Se=fe((e=>{var t=we(),n=ke(),r=ve().ArraySet,a=xe().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,p="",d=this._mappings.toArray(),m=0,g=d.length;m0){if(!n.compareByGeneratedPositionsInflated(r,d[m-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)),p+=e}return p},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}));be({},{AtKeyword:()=>Te,BadString:()=>Re,BadUrl:()=>Le,CDC:()=>Be,CDO:()=>je,Colon:()=>Ue,Comma:()=>Fe,Comment:()=>Qe,Delim:()=>Oe,Dimension:()=>De,EOF:()=>Ae,Function:()=>Ee,Hash:()=>ze,Ident:()=>Ce,LeftCurlyBracket:()=>Ke,LeftParenthesis:()=>We,LeftSquareBracket:()=>He,Number:()=>Pe,Percentage:()=>Ne,RightCurlyBracket:()=>Je,RightParenthesis:()=>$e,RightSquareBracket:()=>Ve,Semicolon:()=>qe,String:()=>_e,Url:()=>Ie,WhiteSpace:()=>Me});var Ae=0,Ce=1,Ee=2,Te=3,ze=4,_e=5,Re=6,Ie=7,Le=8,Oe=9,Pe=10,Ne=11,De=12,Me=13,je=14,Be=15,Ue=16,qe=17,Fe=18,He=19,Ve=20,We=21,$e=22,Ke=23,Je=24,Qe=25;function Ge(e){return e>=48&&e<=57}function Xe(e){return Ge(e)||e>=65&&e<=70||e>=97&&e<=102}function Ye(e){return e>=65&&e<=90}function Ze(e){return function(e){return Ye(e)||function(e){return e>=97&&e<=122}(e)}(e)||function(e){return e>=128}(e)||95===e}function et(e){return Ze(e)||Ge(e)||45===e}function tt(e){return e>=0&&e<=8||11===e||e>=14&&e<=31||127===e}function nt(e){return 10===e||13===e||12===e}function rt(e){return nt(e)||32===e||9===e}function at(e,t){return!(92!==e||nt(t)||0===t)}function it(e,t,n){return 45===e?Ze(t)||45===t||at(t,n):!!Ze(e)||92===e&&at(e,t)}function ot(e,t,n){return 43===e||45===e?Ge(t)?2:46===t&&Ge(n)?3:0:46===e?Ge(t)?2:0:Ge(e)?1:0}function st(e){return 65279===e||65534===e?1:0}var lt=new Array(128),ct=130,ut=131,ht=132,pt=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 Ct=["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 Et(e=null,t){return null===e||e.length0?st(t.charCodeAt(0)):0,a=Et(e.lines,n),i=Et(e.columns,n),o=e.startLine,s=e.startColumn;for(let e=r;e{})){let n=(e=String(e||"")).length,r=Et(this.offsetAndType,e.length+1),a=Et(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&_t;for(s=a[e],o=s>>Rt,a[i]=e,a[e++]=i;e>Rt:0}lookupOffset(e){return(e+=this.tokenIndex)0?e>Rt,this.tokenEnd=t&_t):(this.tokenIndex=this.tokenCount,this.next())}next(){let e=this.tokenIndex+1;e>Rt,this.tokenEnd=e&_t):(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]&_t: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>Rt,r,i,t)}}dump(){let e=new Array(this.tokenCount);return this.forEachToken(((t,n,r,a)=>{e[a]={idx:a,type:Ct[t],chunk:this.source.substring(n,r),balance:this.balance[a]}})),e}};function Ot(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+=(Bt.length-1)*(i[t-1].substr(0,n-1).match(/\t/g)||[]).length)>Mt&&(c=n-jt+3,n=jt-2);for(let e=o;e<=s;e++)e>=0&&e0&&i[e].length>c?"…":"")+i[e].substr(c,Mt-2)+(i[e].length>c+Mt-1?"…":""));return[a(o,t),new Array(n+l+2).join("-")+"^",a(t,s)].filter(Boolean).join("\n")}function qt(e,t,n,r,a){return Object.assign(Dt("SyntaxError",e),{source:t,offset:n,line:r,column:a,sourceFragment:e=>Ut({source:t,line:r,column:a},isNaN(e)?0:e),get formattedMessage(){return`Parse error: ${e}\n`+Ut({source:t,line:r,column:a},2)}})}function Ft(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 Ht=()=>{},Vt=33,Wt=35,$t=59,Kt=123,Jt=0;function Qt(e){return function(){return this[e]()}}function Gt(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 Xt(e){let t="",n="",r=!1,a=Ht,i=!1,o=new zt,s=Object.assign(new Lt,function(e){let t={context:Object.create(null),scope:Object.assign(Object.create(null),e.scope),atrule:Gt(e.atrule),pseudo:Gt(e.pseudo),node:Gt(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]=Qt(e.parseContext[n])}return{config:t,...t,...t.node}}(e||{}),{parseAtrulePrelude:!0,parseRulePrelude:!0,parseValue:!0,parseCustomProperty:!1,readSequence:Ft,consumeUntilBalanceEnd:()=>0,consumeUntilLeftCurlyBracket:e=>e===Kt?1:0,consumeUntilLeftCurlyBracketOrSemicolon:e=>e===Kt||e===$t?1:0,consumeUntilExclamationMarkOrSemicolon:e=>e===Vt||e===$t?1:0,consumeUntilSemicolonIncluded:e=>e===$t?2:0,createList:()=>new Nt,createSingleNodeList:e=>(new Nt).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!==Jt);return Jt},charCodeAt:e=>e>=0&&et.substring(e,n),substrToCursor(e){return this.source.substring(e,this.tokenStart)},cmpChar:(e,n)=>ft(t,e,n),cmpStr:(e,n,r)=>bt(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,xt(t,this.tokenStart));return this.eat(e),n},eat(e){if(this.tokenType!==e){let t=Ct[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(Wt)&&(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&&rt(e.charCodeAt(t));t--);return t+1}(t,t.length-1)):o.getLocation(this.tokenStart);throw new qt(e||"Unexpected input",t,r.offset,r.line,r.column)}});return Object.assign((function(e,l){t=e,l=l||{},s.setSource(t,Ot),o.setSource(t,l.offset,l.line,l.column),n=l.filename||"",r=Boolean(l.positions),a="function"==typeof l.onParseError?l.onParseError:Ht,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=bt(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:qt,config:s.config})}var Yt=((e,t,n)=>(n=null!=e?ue(me(e)):{},((e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let a of de(t))!ge.call(e,a)&&a!==n&&he(e,a,{get:()=>t[a],enumerable:!(r=pe(t,a))||r.enumerable});return e})(!t&&e&&e.__esModule?n:he(n,"default",{value:e,enumerable:!0}),e)))(Se(),1),Zt=new Set(["Atrule","Selector","Declaration"]);var en={};be(en,{safe:()=>sn,spec:()=>on});var tn=(e,t)=>{if(9===e&&(e=t),"string"==typeof e){let t=e.charCodeAt(0);return t>127?32768:t<<8}return e},nn=[[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],["/","*"]],rn=nn.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 an(e){let t=new Set(e.map((([e,t])=>tn(e)<<16|tn(t))));return function(e,n,r){let a=tn(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 on=an(nn),sn=an(rn),ln=92;function cn(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 un(e){Ot(e,((t,n,r)=>{this.token(t,e.slice(n,r))}))}function hn(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:sn,token(e,t){a=this.tokenBefore(a,e,t),this.emit(t,e,!1),9===e&&t.charCodeAt(0)===ln&&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 Yt.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&&Zt.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&&Zt.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:cn,token:(e,t)=>i.token(e,t),tokenize:un};return i.node(e),i.result()}}var{hasOwnProperty:pn}=Object.prototype,dn=function(){};function mn(e){return"function"==typeof e?e:dn}function gn(e,t){return function(n,r,a){n.type===t&&e.call(this,n,r,a)}}function fn(e,t){let n=t.structure,r=[];for(let e in n){if(!1===pn.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 bn(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 yn({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 wn(e){let t=function(e){let t={};for(let n in e.node)if(pn.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]=fn(0,r)}return t}(e),n={},r={},a=Symbol("break-walk"),i=Symbol("skip-node");for(let e in t)pn.call(t,e)&&null!==t[e]&&(n[e]=bn(t[e],!1),r[e]=bn(t[e],!0));let o=yn(n),s=yn(r),l=function(e,l){function c(e,t,n){let r=u.call(m,e,t,n);return r===a||r!==i&&!!(p.hasOwnProperty(e.type)&&p[e.type](e,m,c,d)||h.call(m,e,t,n)===a)}let u=dn,h=dn,p=n,d=(e,t,n,r)=>e||c(t,n,r),m={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=mn(l.enter),h=mn(l.leave),l.reverse&&(p=r),l.visit)){if(o.hasOwnProperty(l.visit))p=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=gn(u,l.visit),h=gn(h,l.visit)}if(u===dn&&h===dn)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 kn(e){return e}function vn(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=>vn(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 vn(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 xn(e,t){let n=kn,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)),vn(e,n,r,a)}var Sn={offset:0,line:1,column:1};function An(e,t){let n=e&&e.loc&&e.loc[t];return n?"line"in n?Cn(n):n:null}function Cn({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 En=function(e,t){let n=Dt("SyntaxReferenceError",e+(t?" `"+t+"`":""));return n.reference=t,n},Tn=function(e,t,n,r){let a=Dt("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=An(s||t,"end")||Cn(Sn,h),r=Cn(n)):(n=An(s,"start")||Cn(An(t,"start")||Sn,h.slice(0,l)),r=An(s,"end")||Cn(n,h.substr(l,c))),{css:h,mismatchOffset:l,mismatchLength:c,start:n,end:r}}(r,n);return a.rawMessage=e,a.syntax=t?xn(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},zn=new Map,_n=new Map,Rn=45,In=function(e){if(zn.has(e))return zn.get(e);let t=e.toLowerCase(),n=zn.get(t);if(void 0===n){let e=On(t,0),r=e?"":Pn(t,0);n=Object.freeze({basename:t.substr(r.length),name:t,prefix:r,vendor:r,custom:e})}return zn.set(e,n),n},Ln=function(e){if(_n.has(e))return _n.get(e);let t=e,n=e[0];"/"===n?n="/"===e[1]?"//":"/":"_"!==n&&"*"!==n&&"$"!==n&&"#"!==n&&"+"!==n&&"&"!==n&&(n="");let r=On(t,n.length);if(!r&&(t=t.toLowerCase(),_n.has(t))){let n=_n.get(t);return _n.set(e,n),n}let a=r?"":Pn(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 _n.set(e,o),o};function On(e,t){return t=t||0,e.length-t>=2&&e.charCodeAt(t)===Rn&&e.charCodeAt(t+1)===Rn}function Pn(e,t){if(t=t||0,e.length-t>=3&&e.charCodeAt(t)===Rn&&e.charCodeAt(t+1)!==Rn){let n=e.indexOf("-",t+2);if(-1!==n)return e.substring(t,n+1)}return""}var Nn=["initial","inherit","unset","revert","revert-layer"],Dn=43,Mn=45,jn=!0;function Bn(e,t){return null!==e&&9===e.type&&e.value.charCodeAt(0)===t}function Un(e,t,n){for(;null!==e&&(13===e.type||25===e.type);)e=n(++t);return t}function qn(e,t,n,r){if(!e)return 0;let a=e.value.charCodeAt(t);if(a===Dn||a===Mn){if(n)return 0;t++}for(;t6)return 0}return r}function Kn(e,t,n){if(!e)return 0;for(;Wn(n(t),Vn);){if(++e>6)return 0;t++}return t}var Jn=["calc(","-moz-calc(","-webkit-calc("],Qn=new Map([[2,22],[21,22],[19,20],[23,24]]);function Gn(e,t){return te.max&&"string"!=typeof e.max)return!0}return!1}function tr(e){return function(t,n,r){return null===t?0:2===t.type&&Yn(t.value,Jn)?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=Qn.get(e.type)}a++}while(e=t(a));return a}(t,n):e(t,n,r)}}function nr(e){return function(t){return null===t||t.type!==e?0:1}}function rr(e){return e&&(e=new Set(e)),function(t,n,r){if(null===t||12!==t.type)return 0;let a=xt(t.value,0);if(null!==e){let n=t.value.indexOf("\\",a),r=-1!==n&&Zn(t.value,n)?t.value.substring(a,n):t.value.substr(a);if(!1===e.has(r.toLowerCase()))return 0}return er(r,t.value,a)?0:1}}function ar(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 ir={"ident-token":nr(1),"function-token":nr(2),"at-keyword-token":nr(3),"hash-token":nr(4),"string-token":nr(5),"bad-string-token":nr(6),"url-token":nr(7),"bad-url-token":nr(8),"delim-token":nr(9),"number-token":nr(10),"percentage-token":nr(11),"dimension-token":nr(12),"whitespace-token":nr(13),"CDO-token":nr(14),"CDC-token":nr(15),"colon-token":nr(16),"semicolon-token":nr(17),"comma-token":nr(18),"[-token":nr(19),"]-token":nr(20),"(-token":nr(21),")-token":nr(22),"{-token":nr(23),"}-token":nr(24)},or={string:nr(5),ident:nr(1),percentage:tr((function(e,t,n){return null===e||11!==e.type||er(n,e.value,e.value.length-1)?0:1})),zero:ar(),number:tr((function(e,t,n){if(null===e)return 0;let r=xt(e.value,0);return r!==e.value.length&&!Zn(e.value,r)||er(n,e.value,r)?0:1})),integer:tr((function(e,t,n){if(null===e||10!==e.type)return 0;let r=43===Gn(e.value,0)||45===Gn(e.value,0)?1:0;for(;rur,decibel:()=>gr,flex:()=>mr,frequency:()=>pr,length:()=>cr,resolution:()=>dr,semitones:()=>fr,time:()=>hr});var cr=["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"],ur=["deg","grad","rad","turn"],hr=["s","ms"],pr=["hz","khz"],dr=["dpi","dpcm","dppx","x"],mr=["fr"],gr=["db"],fr=["st"];function br(e,t,n){return Object.assign(Dt("SyntaxError",e),{input:t,offset:n,rawMessage:e,message:e+"\n "+t+"\n--"+new Array((n||t.length)+1).join("-")+"^"})}be({},{SyntaxError:()=>br,generate:()=>xn,parse:()=>ra,walk:()=>oa});var yr=class{constructor(e){this.str=e,this.pos=0}charCodeAt(e){return e/[a-zA-Z0-9\-]/.test(String.fromCharCode(t))?1:0)),Wr={" ":1,"&&":2,"||":3,"|":4};function $r(e){return e.substringToPos(e.findWsEnd(e.pos))}function Kr(e){let t=e.pos;for(;t=128||0===Vr[n])break}return e.pos===t&&e.error("Expect a keyword"),e.substringToPos(t)}function Jr(e){let t=e.pos;for(;t57)break}return e.pos===t&&e.error("Expect a number"),e.substringToPos(t)}function Qr(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 Gr(e){let t=null,n=null;return e.eat(Ur),t=Jr(e),e.charCode()===Lr?(e.pos++,e.charCode()!==Fr&&(n=Jr(e))):n=t,e.eat(Fr),{min:Number(t),max:n?Number(n):0}}function Xr(e,t){let n=function(e){let t=null,n=!1;switch(e.charCode()){case Rr:e.pos++,t={min:0,max:0};break;case Ir:e.pos++,t={min:1,max:0};break;case Dr:e.pos++,t={min:0,max:1};break;case Cr:e.pos++,n=!0,e.charCode()===Ur?t=Gr(e):e.charCode()===Dr?(e.pos++,t={min:0,max:0}):t={min:1,max:0};break;case Ur:t=Gr(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()===Cr&&e.charCodeAt(e.pos-1)===Ir?Xr(e,n):n):t}function Yr(e){let t=e.peek();return""===t?null:{type:"Token",value:t}}function Zr(e){let t,n=null;return e.eat(Pr),t=Kr(e),e.charCode()===zr&&e.nextCharCode()===_r&&(e.pos+=2,t+="()"),e.charCodeAt(e.findWsEnd(e.pos))===jr&&($r(e),n=function(e){let t=null,n=null,r=1;return e.eat(jr),e.charCode()===Or&&(e.peek(),r=-1),-1==r&&e.charCode()===Hr?e.peek():(t=r*Number(Jr(e)),0!==Vr[e.charCode()]&&(t+=Kr(e))),$r(e),e.eat(Lr),$r(e),e.charCode()===Hr?e.peek():(r=1,e.charCode()===Or&&(e.peek(),r=-1),n=r*Number(Jr(e)),0!==Vr[e.charCode()]&&(n+=Kr(e))),e.eat(Br),{type:"Range",min:t,max:n}}(e)),e.eat(Nr),Xr(e,{type:"Type",name:t,opts:n})}function ea(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)=>Wr[e]-Wr[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 ta(e){let t,n=[],r={},a=null,i=e.pos;for(;t=na(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:ea(n,r)||" ",disallowEmpty:!1,explicit:!1}}function na(e){let t=e.charCode();if(t<128&&1===Vr[t])return function(e){let t=Kr(e);return e.charCode()===zr?(e.pos++,{type:"Function",name:t}):Xr(e,{type:"Keyword",name:t})}(e);switch(t){case Br:break;case jr:return Xr(e,function(e){let t;return e.eat(jr),t=ta(e),e.eat(Br),t.explicit=!0,e.charCode()===Ar&&(e.pos++,t.disallowEmpty=!0),t}(e));case Pr:return e.nextCharCode()===Tr?function(e){let t;return e.eat(Pr),e.eat(Tr),t=Kr(e),e.eat(Tr),e.eat(Nr),Xr(e,{type:"Property",name:t})}(e):Zr(e);case qr:return{type:"Combinator",value:e.substringToPos(e.pos+(e.nextCharCode()===qr?2:1))};case Er:return e.pos++,e.eat(Er),{type:"Combinator",value:"&&"};case Lr:return e.pos++,{type:"Comma"};case Tr:return Xr(e,{type:"String",value:Qr(e)});case Sr:case wr:case kr:case xr:case vr:return{type:"Spaces",value:$r(e)};case Mr:return t=e.nextCharCode(),t<128&&1===Vr[t]?(e.pos++,{type:"AtKeyword",name:Kr(e)}):Yr(e);case Rr:case Ir:case Dr:case Cr:case Ar:break;case Ur:if(t=e.nextCharCode(),t<48||t>57)return Yr(e);break;default:return Yr(e)}}function ra(e){let t=new yr(e),n=ta(t);return t.pos!==e.length&&t.error("Unexpected input"),1===n.terms.length&&"Group"===n.terms[0].type?n.terms[0]:n}var aa=function(){};function ia(e){return"function"==typeof e?e:aa}function oa(e,t,n){let r=aa,a=aa;if("function"==typeof t?r=t:t&&(r=ia(t.enter),a=ia(t.leave)),r===aa&&a===aa)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 sa={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 la(e,t){return"string"==typeof e?function(e){let t=[];return Ot(e,((n,r,a)=>t.push({type:n,value:e.slice(r,a),node:null}))),t}(e):t.generate(e,sa)}var ca={type:"Match"},ua={type:"Mismatch"},ha={type:"DisallowEmpty"},pa=40,da=41;function ma(e,t,n){return t===ca&&n===ua||e===ca&&t===ca&&n===ca?e:("If"===e.type&&e.else===ua&&t===ca&&(t=e.then,e=e.match),{type:"If",match:e,then:t,else:n})}function ga(e){return e.length>2&&e.charCodeAt(e.length-2)===pa&&e.charCodeAt(e.length-1)===da}function fa(e){return"Keyword"===e.type||"AtKeyword"===e.type||"Function"===e.type||"Type"===e.type&&ga(e.name)}function ba(e,t,n){switch(e){case" ":{let e=ca;for(let n=t.length-1;n>=0;n--){e=ma(t[n],e,ua)}return e}case"|":{let e=ua,n=null;for(let r=t.length-1;r>=0;r--){let a=t[r];if(fa(a)&&(null===n&&r>0&&fa(t[r-1])&&(n=Object.create(null),e=ma({type:"Enum",map:n},ca,e)),null!==n)){let e=(ga(a.name)?a.name.slice(0,-1):a.name).toLowerCase();if(!(e in n)){n[e]=a;continue}}n=null,e=ma(a,ca,e)}return e}case"&&":{if(t.length>5)return{type:"MatchOnce",terms:t,all:!0};let n=ua;for(let r=t.length-1;r>=0;r--){let a,i=t[r];a=t.length>1?ba(e,t.filter((function(e){return e!==i})),!1):ca,n=ma(i,a,n)}return n}case"||":{if(t.length>5)return{type:"MatchOnce",terms:t,all:!1};let r=n?ca:ua;for(let n=t.length-1;n>=0;n--){let a,i=t[n];a=t.length>1?ba(e,t.filter((function(e){return e!==i})),!0):ca,r=ma(i,a,r)}return r}}}function ya(e){if("function"==typeof e)return{type:"Generic",fn:e};switch(e.type){case"Group":{let t=ba(e.combinator,e.terms.map(ya),!1);return e.disallowEmpty&&(t=ma(t,ha,ua)),t}case"Multiplier":return function(e){let t=ca,n=ya(e.term);if(0===e.max)n=ma(n,ha,ua),t=ma(n,null,ua),t.then=ma(ca,ca,t),e.comma&&(t.then.else=ma({type:"Comma",syntax:e},t,ua));else for(let r=e.min||1;r<=e.max;r++)e.comma&&t!==ca&&(t=ma({type:"Comma",syntax:e},t,ua)),t=ma(n,ma(ca,ca,t),ua);if(0===e.min)t=ma(ca,ca,t);else for(let r=0;r=65&&a<=90&&(a|=32),a!==r)return!1}return!0}function Ra(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 Ia(e){return null===e||(22===e.type||20===e.type||24===e.type||9===e.type&&"/"===e.value)}function La(e,t,n){let r=function(e,t,n){function r(){do{b++,f=by&&(y=b)}function c(){w=w.type===Sa?w.prev:{type:Aa,syntax:u.syntax,token:w.token,prev:w},u=u.prev}let u=null,h=null,p=null,d=null,m=0,g=null,f=null,b=-1,y=0,w={type:va,syntax:null,token:null,prev:null};for(r();null===g&&++mp.tokenIndex)&&(p=d,d=!1);else if(null===p){g=Ea;break}t=p.nextState,h=p.thenStack,u=p.syntaxStack,w=p.matchStack,b=p.tokenIndex,f=bb){for(;b":"<'"+t.name+"'>"));if(!1!==d&&null!==f&&"Type"===t.type&&("custom-ident"===t.name&&1===f.type||"length"===t.name&&"0"===f.value)){null===d&&(d=i(t,p)),t=ua;break}u={syntax:t.syntax,opts:t.syntax.opts||null!==u&&u.opts||null,prev:u},w={type:Sa,syntax:t.syntax,token:w.token,prev:w},t=r.match;break}case"Keyword":{let e=t.name;if(null!==f){let n=f.value;if(-1!==n.indexOf("\\")&&(n=n.replace(/\\[09].*$/,"")),_a(n,e)){l(),t=ca;break}}t=ua;break}case"AtKeyword":case"Function":if(null!==f&&_a(f.value,t.name)){l(),t=ca;break}t=ua;break;case"Token":if(null!==f&&f.value===t.value){l(),t=ca;break}t=ua;break;case"Comma":null!==f&&18===f.type?Ra(w.token)?t=ua:(l(),t=Ia(f)?ua:ca):t=Ra(w.token)||Ia(f)?ca:ua;break;case"String":let r="",m=b;for(;m"Type"===e.type&&e.name===t))}function Da(e,t){return ja(this,e,(e=>"Property"===e.type&&e.name===t))}function Ma(e){return ja(this,e,(e=>"Keyword"===e.type))}function ja(e,t,n){let r=Pa.call(e,t);return null!==r&&r.some(n)}function Ba(e){return"node"in e?e.node:Ba(e.match[0])}function Ua(e){return"node"in e?e.node:Ua(e.match[e.match.length-1])}function qa(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=Ba(o),r=Ua(o);e.syntax.walk(t,(function(e,t,a){if(e===n){let e=new Nt;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}be(Oa,{getTrace:()=>Pa,isKeyword:()=>Ma,isProperty:()=>Da,isType:()=>Na});var{hasOwnProperty:Fa}=Object.prototype;function Ha(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&e>=0}function Va(e){return Boolean(e)&&Ha(e.offset)&&Ha(e.line)&&Ha(e.column)}function Wa(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!==Fa.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(Va(n.loc.start)){if(Va(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:Wa(e,r)}}var Ka=wa(Nn.join(" | "));function Ja(e,t,n){let r={};for(let a in e)e[a].syntax&&(r[a]=n?e[a].syntax:xn(e[a].syntax,{compact:t}));return r}function Qa(e,t,n){let r={};for(let[a,i]of Object.entries(e))r[a]={prelude:i.prelude&&(n?i.prelude.syntax:xn(i.prelude.syntax,{compact:t})),descriptors:i.descriptors&&Ja(i.descriptors,t,n)};return r}function Ga(e,t,n){return{matched:e,iterations:n,error:t,...Oa}}function Xa(e,t,n,r){let a,i=la(n,e.syntax);return function(e){for(let t=0;t(Object.defineProperty(i,"syntax",{value:ra(e)}),i.syntax)}):i.syntax=e,Object.defineProperty(i,"match",{get:()=>(Object.defineProperty(i,"match",{value:wa(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 En("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||Xa(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=In(t);return r.descriptors?r.descriptors[a.name]||r.descriptors[a.basename]?void 0:new En("Unknown at-rule descriptor",t):new SyntaxError("At-rule `@"+e+"` has no known descriptors")}checkPropertyName(e){if(!this.getProperty(e))return new En("Unknown property",e)}matchAtrulePrelude(e,t){let n=this.checkAtrulePrelude(e,t);if(n)return Ga(null,n);let r=this.getAtrule(e);return r.prelude?Xa(this,r.prelude,t||"",!1):Ga(null,null)}matchAtruleDescriptor(e,t,n){let r=this.checkAtruleDescriptorName(e,t);if(r)return Ga(null,r);let a=this.getAtrule(e),i=In(t);return Xa(this,a.descriptors[i.name]||a.descriptors[i.basename],n,!1)}matchDeclaration(e){return"Declaration"!==e.type?Ga(null,new Error("Not a Declaration node")):this.matchProperty(e.property,e.value)}matchProperty(e,t){if(Ln(e).custom)return Ga(null,new Error("Lexer matching doesn't applicable for custom properties"));let n=this.checkPropertyName(e);return n?Ga(null,n):Xa(this,this.getProperty(e),t,!0)}matchType(e,t){let n=this.getType(e);return n?Xa(this,n,t,!1):Ga(null,new En("Unknown type",e))}match(e,t){return"string"==typeof e||e&&e.type?(("string"==typeof e||!e.match)&&(e=this.createDescriptor(e,"Type","anonymous")),Xa(this,e,t,!1)):Ga(null,new En("Bad syntax"))}findValueFragments(e,t,n,r){return qa(this,t,this.matchProperty(e,t),n,r)}findDeclarationValueFragments(e,t,n){return qa(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=In(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=Ln(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&&oa(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:Ja(this.types,!t,e),properties:Ja(this.properties,!t,e),atrules:Qa(this.atrules,!t,e)}}toString(){return JSON.stringify(this.dump())}};function Za(e,t){return"string"==typeof t&&/^\s*\|/.test(t)?"string"==typeof e?e+t:t.replace(/^\s*\|\s*/,""):t||null}function ei(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 ti(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?Za(i.prelude,t.prelude):i.prelude||null;for(let[e,n]of Object.entries(t.descriptors||{}))i.descriptors[e]=n?Za(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]=Za(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],...ei(a,["parse"])};break;case"node":n[r]={...e[r],...ei(a,["name","structure","parse","generate","walkContext"])}}return n}function ni(e){let t=Xt(e),n=wn(e),r=hn(e),{fromPlainObject:a,toPlainObject:i}=function(e){return{fromPlainObject:t=>(e(t,{enter(e){e.children&&!(e.children instanceof Nt)&&(e.children=(new Nt).fromArray(e.children))}}),t),toPlainObject:t=>(e(t,{leave(e){e.children&&e.children instanceof Nt&&(e.children=e.children.toArray())}}),t)}}(n),o={lexer:null,createLexer:e=>new Ya(e,o,o.lexer.structure),tokenize:Ot,parse:t,generate:r,walk:n,find:n.find,findLast:n.findLast,findAll:n.findAll,fromPlainObject:a,toPlainObject:i,fork(t){let n=ti({},e);return ni("function"==typeof t?t(n,Object.assign):ti(n,t))}};return o.lexer=new Ya({generic:!0,units:e.units,types:e.types,atrules:e.atrules,properties:e.properties,node:e.node},o),o}var ri={};be(ri,{AnPlusB:()=>ai,Atrule:()=>yi,AtrulePrelude:()=>Ei,AttributeSelector:()=>Li,Block:()=>Wi,Brackets:()=>no,CDC:()=>so,CDO:()=>po,ClassSelector:()=>yo,Combinator:()=>Ao,Comment:()=>Oo,Declaration:()=>Uo,DeclarationList:()=>as,Dimension:()=>hs,Function:()=>fs,Hash:()=>xs,IdSelector:()=>Os,Identifier:()=>zs,MediaFeature:()=>js,MediaQuery:()=>Hs,MediaQueryList:()=>Js,NestingSelector:()=>Zs,Nth:()=>il,Number:()=>ul,Operator:()=>gl,Parentheses:()=>kl,Percentage:()=>Cl,PseudoClassSelector:()=>Rl,PseudoElementSelector:()=>Dl,Ratio:()=>Fl,Raw:()=>Gl,Rule:()=>nc,Selector:()=>uc,SelectorList:()=>gc,String:()=>vc,StyleSheet:()=>Ic,TypeSelector:()=>Bc,UnicodeRange:()=>Kc,Url:()=>iu,Value:()=>yu,WhiteSpace:()=>Su});var ai={};be(ai,{generate:()=>bi,name:()=>mi,parse:()=>fi,structure:()=>gi});var ii=43,oi=45,si=110,li=!0,ci=!1;function ui(e,t){let n=this.tokenStart+e,r=this.charCodeAt(n);for((r===ii||r===oi)&&(t&&this.error("Number sign is not allowed"),n++);n0&&this.skip(e),0===t&&(n=this.charCodeAt(this.tokenStart),n!==ii&&n!==oi&&this.error("Number sign is expected")),hi.call(this,0!==t),t===oi?"-"+this.consume(10):this.consume(10)}var mi="AnPlusB",gi={a:[String,null],b:[String,null]};function fi(){let e=this.tokenStart,t=null,n=null;if(10===this.tokenType)hi.call(this,ci),n=this.consume(10);else if(1===this.tokenType&&this.cmpChar(this.tokenStart,oi))switch(t="-1",pi.call(this,1,si),this.tokenEnd-this.tokenStart){case 2:this.next(),n=di.call(this);break;case 3:pi.call(this,2,oi),this.next(),this.skipSC(),hi.call(this,li),n="-"+this.consume(10);break;default:pi.call(this,2,oi),ui.call(this,3,li),this.next(),n=this.substrToCursor(e+2)}else if(1===this.tokenType||this.isDelim(ii)&&1===this.lookupType(1)){let r=0;switch(t="1",this.isDelim(ii)&&(r=1,this.next()),pi.call(this,0,si),this.tokenEnd-this.tokenStart){case 1:this.next(),n=di.call(this);break;case 2:pi.call(this,1,oi),this.next(),this.skipSC(),hi.call(this,li),n="-"+this.consume(10);break;default:pi.call(this,1,oi),ui.call(this,2,li),this.next(),n=this.substrToCursor(e+r+1)}}else if(12===this.tokenType){let r=this.charCodeAt(this.tokenStart),a=r===ii||r===oi,i=this.tokenStart+a;for(;iCi,name:()=>vi,parse:()=>Ai,structure:()=>Si,walkContext:()=>xi});var vi="Atrule",xi="atrule",Si={name:String,prelude:["AtrulePrelude","Raw",null],block:["Block",null]};function Ai(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),wi):wi.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(ki.call(this))}return{type:"Atrule",loc:this.getLocation(r,this.tokenStart),name:t,prelude:a,block:i}}function Ci(e){this.token(3,"@"+e.name),null!==e.prelude&&this.node(e.prelude),e.block?this.node(e.block):this.token(17,";")}var Ei={};be(Ei,{generate:()=>Ii,name:()=>Ti,parse:()=>Ri,structure:()=>_i,walkContext:()=>zi});var Ti="AtrulePrelude",zi="atrulePrelude",_i={children:[[]]};function Ri(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 Ii(e){this.children(e)}var Li={};be(Li,{generate:()=>Vi,name:()=>qi,parse:()=>Hi,structure:()=>Fi});var Oi=36,Pi=42,Ni=61,Di=94,Mi=124,ji=126;function Bi(){this.eof&&this.error("Unexpected end of input");let e=this.tokenStart,t=!1;return this.isDelim(Pi)?(t=!0,this.next()):this.isDelim(Mi)||this.eat(1),this.isDelim(Mi)?this.charCodeAt(this.tokenStart+1)!==Ni?(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 Ui(){let e=this.tokenStart,t=this.charCodeAt(e);return t!==Ni&&t!==ji&&t!==Di&&t!==Oi&&t!==Pi&&t!==Mi&&this.error("Attribute selector (=, ~=, ^=, $=, *=, |=) is expected"),this.next(),t!==Ni&&(this.isDelim(Ni)||this.error("Equal sign is expected"),this.next()),this.substrToCursor(e)}var qi="AttributeSelector",Fi={name:"Identifier",matcher:[String,null],value:["String","Identifier",null],flags:[String,null]};function Hi(){let e,t=this.tokenStart,n=null,r=null,a=null;return this.eat(19),this.skipSC(),e=Bi.call(this),this.skipSC(),20!==this.tokenType&&(1!==this.tokenType&&(n=Ui.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 Vi(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 Wi={};be(Wi,{generate:()=>to,name:()=>Xi,parse:()=>eo,structure:()=>Zi,walkContext:()=>Yi});var $i=38;function Ki(e){return this.Raw(e,null,!0)}function Ji(){return this.parseWithFallback(this.Rule,Ki)}function Qi(e){return this.Raw(e,this.consumeUntilSemicolonIncluded,!0)}function Gi(){if(17===this.tokenType)return Qi.call(this,this.tokenIndex);let e=this.parseWithFallback(this.Declaration,Qi);return 17===this.tokenType&&this.next(),e}var Xi="Block",Yi="block",Zi={children:[["Atrule","Rule","Declaration"]]};function eo(e){let t=e?Gi:Ji,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),Ki));break;default:e&&this.isDelim($i)?r.push(Ji.call(this)):r.push(t.call(this))}return this.eof||this.eat(24),{type:"Block",loc:this.getLocation(n,this.tokenStart),children:r}}function to(e){this.token(23,"{"),this.children(e,(e=>{"Declaration"===e.type&&this.token(17,";")})),this.token(24,"}")}var no={};be(no,{generate:()=>oo,name:()=>ro,parse:()=>io,structure:()=>ao});var ro="Brackets",ao={children:[[]]};function io(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 oo(e){this.token(9,"["),this.children(e),this.token(9,"]")}var so={};be(so,{generate:()=>ho,name:()=>lo,parse:()=>uo,structure:()=>co});var lo="CDC",co=[];function uo(){let e=this.tokenStart;return this.eat(15),{type:"CDC",loc:this.getLocation(e,this.tokenStart)}}function ho(){this.token(15,"--\x3e")}var po={};be(po,{generate:()=>bo,name:()=>mo,parse:()=>fo,structure:()=>go});var mo="CDO",go=[];function fo(){let e=this.tokenStart;return this.eat(14),{type:"CDO",loc:this.getLocation(e,this.tokenStart)}}function bo(){this.token(14,"\x3c!--")}var yo={};be(yo,{generate:()=>So,name:()=>ko,parse:()=>xo,structure:()=>vo});var wo=46,ko="ClassSelector",vo={name:String};function xo(){return this.eatDelim(wo),{type:"ClassSelector",loc:this.getLocation(this.tokenStart-1,this.tokenEnd),name:this.consume(1)}}function So(e){this.token(9,"."),this.token(1,e.name)}var Ao={};be(Ao,{generate:()=>Lo,name:()=>_o,parse:()=>Io,structure:()=>Ro});var Co=43,Eo=47,To=62,zo=126,_o="Combinator",Ro={name:String};function Io(){let e,t=this.tokenStart;switch(this.tokenType){case 13:e=" ";break;case 9:switch(this.charCodeAt(this.tokenStart)){case To:case Co:case zo:this.next();break;case Eo:this.next(),this.eatIdent("deep"),this.eatDelim(Eo);break;default:this.error("Combinator is expected")}e=this.substrToCursor(t)}return{type:"Combinator",loc:this.getLocation(t,this.tokenStart),name:e}}function Lo(e){this.tokenize(e.name)}var Oo={};be(Oo,{generate:()=>Bo,name:()=>Do,parse:()=>jo,structure:()=>Mo});var Po=42,No=47,Do="Comment",Mo={value:String};function jo(){let e=this.tokenStart,t=this.tokenEnd;return this.eat(25),t-e+2>=2&&this.charCodeAt(t-2)===Po&&this.charCodeAt(t-1)===No&&(t-=2),{type:"Comment",loc:this.getLocation(e,this.tokenStart),value:this.substring(e+2,t)}}function Bo(e){this.token(25,"/*"+e.value+"*/")}var Uo={};be(Uo,{generate:()=>ts,name:()=>Xo,parse:()=>es,structure:()=>Zo,walkContext:()=>Yo});var qo=33,Fo=35,Ho=36,Vo=38,Wo=42,$o=43,Ko=47;function Jo(e){return this.Raw(e,this.consumeUntilExclamationMarkOrSemicolon,!0)}function Qo(e){return this.Raw(e,this.consumeUntilExclamationMarkOrSemicolon,!1)}function Go(){let e=this.tokenIndex,t=this.Value();return"Raw"!==t.type&&!1===this.eof&&17!==this.tokenType&&!1===this.isDelim(qo)&&!1===this.isBalanceEdge(e)&&this.error(),t}var Xo="Declaration",Yo="declaration",Zo={important:[Boolean,String],property:String,value:["Value","Raw"]};function es(){let e,t=this.tokenStart,n=this.tokenIndex,r=ns.call(this),a=On(r),i=a?this.parseCustomProperty:this.parseValue,o=a?Qo:Jo,s=!1;this.skipSC(),this.eat(16);let l=this.tokenIndex;if(a||this.skipSC(),e=i?this.parseWithFallback(Go,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(qo)&&(s=rs.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 ts(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 ns(){let e=this.tokenStart;if(9===this.tokenType)switch(this.charCodeAt(this.tokenStart)){case Wo:case Ho:case $o:case Fo:case Vo:this.next();break;case Ko:this.next(),this.isDelim(Ko)&&this.next()}return 4===this.tokenType?this.eat(4):this.eat(1),this.substrToCursor(e)}function rs(){this.eat(9),this.skipSC();let e=this.consume(1);return"important"===e||e}var as={};be(as,{generate:()=>us,name:()=>ss,parse:()=>cs,structure:()=>ls});var is=38;function os(e){return this.Raw(e,this.consumeUntilSemicolonIncluded,!0)}var ss="DeclarationList",ls={children:[["Declaration","Atrule","Rule"]]};function cs(){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),os));break;default:this.isDelim(is)?e.push(this.parseWithFallback(this.Rule,os)):e.push(this.parseWithFallback(this.Declaration,os))}return{type:"DeclarationList",loc:this.getLocationFromList(e),children:e}}function us(e){this.children(e,(e=>{"Declaration"===e.type&&this.token(17,";")}))}var hs={};be(hs,{generate:()=>gs,name:()=>ps,parse:()=>ms,structure:()=>ds});var ps="Dimension",ds={value:String,unit:String};function ms(){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 gs(e){this.token(12,e.value+e.unit)}var fs={};be(fs,{generate:()=>vs,name:()=>bs,parse:()=>ks,structure:()=>ws,walkContext:()=>ys});var bs="Function",ys="function",ws={name:String,children:[[]]};function ks(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 vs(e){this.token(2,e.name+"("),this.children(e),this.token(22,")")}var xs={};be(xs,{generate:()=>Ts,name:()=>As,parse:()=>Es,structure:()=>Cs,xxx:()=>Ss});var Ss="XXX",As="Hash",Cs={value:String};function Es(){let e=this.tokenStart;return this.eat(4),{type:"Hash",loc:this.getLocation(e,this.tokenStart),value:this.substrToCursor(e+1)}}function Ts(e){this.token(4,"#"+e.value)}var zs={};be(zs,{generate:()=>Ls,name:()=>_s,parse:()=>Is,structure:()=>Rs});var _s="Identifier",Rs={name:String};function Is(){return{type:"Identifier",loc:this.getLocation(this.tokenStart,this.tokenEnd),name:this.consume(1)}}function Ls(e){this.token(1,e.name)}var Os={};be(Os,{generate:()=>Ms,name:()=>Ps,parse:()=>Ds,structure:()=>Ns});var Ps="IdSelector",Ns={name:String};function Ds(){let e=this.tokenStart;return this.eat(4),{type:"IdSelector",loc:this.getLocation(e,this.tokenStart),name:this.substrToCursor(e+1)}}function Ms(e){this.token(9,"#"+e.name)}var js={};be(js,{generate:()=>Fs,name:()=>Bs,parse:()=>qs,structure:()=>Us});var Bs="MediaFeature",Us={name:String,value:["Identifier","Number","Dimension","Ratio",null]};function qs(){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 Fs(e){this.token(21,"("),this.token(1,e.name),null!==e.value&&(this.token(16,":"),this.node(e.value)),this.token(22,")")}var Hs={};be(Hs,{generate:()=>Ks,name:()=>Vs,parse:()=>$s,structure:()=>Ws});var Vs="MediaQuery",Ws={children:[["Identifier","MediaFeature","WhiteSpace"]]};function $s(){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 Ks(e){this.children(e)}var Js={};be(Js,{generate:()=>Ys,name:()=>Qs,parse:()=>Xs,structure:()=>Gs});var Qs="MediaQueryList",Gs={children:[["MediaQuery"]]};function Xs(){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 Ys(e){this.children(e,(()=>this.token(18,",")))}var Zs={};be(Zs,{generate:()=>al,name:()=>tl,parse:()=>rl,structure:()=>nl});var el=38,tl="NestingSelector",nl={};function rl(){let e=this.tokenStart;return this.eatDelim(el),{type:"NestingSelector",loc:this.getLocation(e,this.tokenStart)}}function al(){this.token(9,"&")}var il={};be(il,{generate:()=>cl,name:()=>ol,parse:()=>ll,structure:()=>sl});var ol="Nth",sl={nth:["AnPlusB","Identifier"],selector:["SelectorList",null]};function ll(){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 cl(e){this.node(e.nth),null!==e.selector&&(this.token(1,"of"),this.node(e.selector))}var ul={};be(ul,{generate:()=>ml,name:()=>hl,parse:()=>dl,structure:()=>pl});var hl="Number",pl={value:String};function dl(){return{type:"Number",loc:this.getLocation(this.tokenStart,this.tokenEnd),value:this.consume(10)}}function ml(e){this.token(10,e.value)}var gl={};be(gl,{generate:()=>wl,name:()=>fl,parse:()=>yl,structure:()=>bl});var fl="Operator",bl={value:String};function yl(){let e=this.tokenStart;return this.next(),{type:"Operator",loc:this.getLocation(e,this.tokenStart),value:this.substrToCursor(e)}}function wl(e){this.tokenize(e.value)}var kl={};be(kl,{generate:()=>Al,name:()=>vl,parse:()=>Sl,structure:()=>xl});var vl="Parentheses",xl={children:[[]]};function Sl(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 Al(e){this.token(21,"("),this.children(e),this.token(22,")")}var Cl={};be(Cl,{generate:()=>_l,name:()=>El,parse:()=>zl,structure:()=>Tl});var El="Percentage",Tl={value:String};function zl(){return{type:"Percentage",loc:this.getLocation(this.tokenStart,this.tokenEnd),value:this.consumeNumber(11)}}function _l(e){this.token(11,e.value+"%")}var Rl={};be(Rl,{generate:()=>Nl,name:()=>Il,parse:()=>Pl,structure:()=>Ol,walkContext:()=>Ll});var Il="PseudoClassSelector",Ll="function",Ol={name:String,children:[["Raw"],null]};function Pl(){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 Nl(e){this.token(16,":"),null===e.children?this.token(1,e.name):(this.token(2,e.name+"("),this.children(e),this.token(22,")"))}var Dl={};be(Dl,{generate:()=>ql,name:()=>Ml,parse:()=>Ul,structure:()=>Bl,walkContext:()=>jl});var Ml="PseudoElementSelector",jl="function",Bl={name:String,children:[["Raw"],null]};function Ul(){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 ql(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 Fl={};be(Fl,{generate:()=>Ql,name:()=>$l,parse:()=>Jl,structure:()=>Kl});var Hl=47,Vl=46;function Wl(){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}be(Gl,{generate:()=>tc,name:()=>Yl,parse:()=>ec,structure:()=>Zl});var Yl="Raw",Zl={value:String};function ec(e,t,n){let r,a=this.getTokenStart(e);return this.skipUntilBalanced(e,t||this.consumeUntilBalanceEnd),r=n&&this.tokenStart>a?Xl.call(this):this.tokenStart,{type:"Raw",loc:this.getLocation(a,r),value:this.substring(a,r)}}function tc(e){this.tokenize(e.value)}var nc={};function rc(e){return this.Raw(e,this.consumeUntilLeftCurlyBracket,!0)}function ac(){let e=this.SelectorList();return"Raw"!==e.type&&!1===this.eof&&23!==this.tokenType&&this.error(),e}be(nc,{generate:()=>cc,name:()=>ic,parse:()=>lc,structure:()=>sc,walkContext:()=>oc});var ic="Rule",oc="rule",sc={prelude:["SelectorList","Raw"],block:["Block"]};function lc(){let e,t,n=this.tokenIndex,r=this.tokenStart;return e=this.parseRulePrelude?this.parseWithFallback(ac,rc):rc.call(this,n),t=this.Block(!0),{type:"Rule",loc:this.getLocation(r,this.tokenStart),prelude:e,block:t}}function cc(e){this.node(e.prelude),this.node(e.block)}var uc={};be(uc,{generate:()=>mc,name:()=>hc,parse:()=>dc,structure:()=>pc});var hc="Selector",pc={children:[["TypeSelector","IdSelector","ClassSelector","AttributeSelector","PseudoClassSelector","PseudoElementSelector","Combinator","WhiteSpace"]]};function dc(){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 mc(e){this.children(e)}var gc={};be(gc,{generate:()=>kc,name:()=>fc,parse:()=>wc,structure:()=>yc,walkContext:()=>bc});var fc="SelectorList",bc="selector",yc={children:[["Selector","Raw"]]};function wc(){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 kc(e){this.children(e,(()=>this.token(18,",")))}var vc={};be(vc,{generate:()=>Rc,name:()=>Tc,parse:()=>_c,structure:()=>zc});be({},{decode:()=>Cc,encode:()=>Ec});var xc=92,Sc=34,Ac=39;function Cc(e){let t=e.length,n=e.charCodeAt(0),r=n===Sc||n===Ac?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===xc){if(n===a){n!==t-1&&(i=e.substr(n+1));break}if(r=e.charCodeAt(++n),at(xc,r)){let t=n-1,r=kt(e,t);n=r-1,i+=At(e.substring(t+1,r))}else 13===r&&10===e.charCodeAt(n+1)&&n++}else i+=e[n]}return i}function Ec(e,t){let n=t?"'":'"',r=t?Ac:Sc,a="",i=!1;for(let t=0;tjc,name:()=>Pc,parse:()=>Mc,structure:()=>Dc,walkContext:()=>Nc});var Lc=33;function Oc(e){return this.Raw(e,null,!1)}var Pc="StyleSheet",Nc="stylesheet",Dc={children:[["Comment","CDO","CDC","Atrule","Rule","Raw"]]};function Mc(){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)!==Lc){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,Oc);break;default:e=this.parseWithFallback(this.Rule,Oc)}n.push(e)}return{type:"StyleSheet",loc:this.getLocation(t,this.tokenStart),children:n}}function jc(e){this.children(e)}var Bc={};be(Bc,{generate:()=>$c,name:()=>Hc,parse:()=>Wc,structure:()=>Vc});var Uc=42,qc=124;function Fc(){1!==this.tokenType&&!1===this.isDelim(Uc)&&this.error("Identifier or asterisk is expected"),this.next()}var Hc="TypeSelector",Vc={name:String};function Wc(){let e=this.tokenStart;return this.isDelim(qc)?(this.next(),Fc.call(this)):(Fc.call(this),this.isDelim(qc)&&(this.next(),Fc.call(this))),{type:"TypeSelector",loc:this.getLocation(e,this.tokenStart),name:this.substrToCursor(e)}}function $c(e){this.tokenize(e.name)}var Kc={};be(Kc,{generate:()=>au,name:()=>tu,parse:()=>ru,structure:()=>nu});var Jc=43,Qc=45,Gc=63;function Xc(e,t){let n=0;for(let r=this.tokenStart+e;r6&&this.error("Too many hex digits",r)}return this.next(),n}function Yc(e){let t=0;for(;this.isDelim(Gc);)++t>e&&this.error("Too many question marks"),this.next()}function Zc(e){this.charCodeAt(this.tokenStart)!==e&&this.error((e===Jc?"Plus sign":"Hyphen minus")+" is expected")}function eu(){let e=0;switch(this.tokenType){case 10:if(e=Xc.call(this,1,!0),this.isDelim(Gc)){Yc.call(this,6-e);break}if(12===this.tokenType||10===this.tokenType){Zc.call(this,Qc),Xc.call(this,1,!1);break}break;case 12:e=Xc.call(this,1,!0),e>0&&Yc.call(this,6-e);break;default:if(this.eatDelim(Jc),1===this.tokenType){e=Xc.call(this,0,!0),e>0&&Yc.call(this,6-e);break}if(this.isDelim(Gc)){this.next(),Yc.call(this,5);break}this.error("Hex digit or question mark is expected")}}var tu="UnicodeRange",nu={value:String};function ru(){let e=this.tokenStart;return this.eatIdent("u"),eu.call(this),{type:"UnicodeRange",loc:this.getLocation(e,this.tokenStart),value:this.substrToCursor(e)}}function au(e){this.tokenize(e.value)}var iu={};be(iu,{generate:()=>bu,name:()=>mu,parse:()=>fu,structure:()=>gu});be({},{decode:()=>pu,encode:()=>du});var ou=32,su=92,lu=34,cu=39,uu=40,hu=41;function pu(e){let t=e.length,n=4,r=e.charCodeAt(t-1)===hu?t-2:t-1,a="";for(;nxu,name:()=>wu,parse:()=>vu,structure:()=>ku});var wu="Value",ku={children:[[]]};function vu(){let e=this.tokenStart,t=this.readSequence(this.scope.Value);return{type:"Value",loc:this.getLocation(e,this.tokenStart),children:t}}function xu(e){this.children(e)}var Su={};be(Su,{generate:()=>zu,name:()=>Cu,parse:()=>Tu,structure:()=>Eu});var Au=Object.freeze({type:"WhiteSpace",loc:null,value:" "}),Cu="WhiteSpace",Eu={value:String};function Tu(){return this.eat(13),Au}function zu(e){this.token(13,e.value)}var _u={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":"