!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="single-file-load-deferred-images-start",n="single-file-load-deferred-images-end",r="single-file-load-deferred-images-keep-zoom-level-start",a="single-file-load-deferred-images-keep-zoom-level-end",o="single-file-load-deferred-images-keep-zoom-level-reset",i="single-file-load-deferred-images-reset",s="single-file-block-cookies-start",l="single-file-block-cookies-end",c="single-file-dispatch-scroll-event-start",u="single-file-dispatch-scroll-event-end",h="single-file-block-storage-start",d="single-file-block-storage-end",p="single-file-load-image",m="single-file-image-loaded",g=(e,t,n)=>globalThis.addEventListener(e,t,n),f=e=>{try{globalThis.dispatchEvent(e)}catch(e){}},b=globalThis.CustomEvent,y=globalThis.document,w=globalThis.Document,k=globalThis.JSON;let v;function x(){return Array.from(v.values())}function A(e){e.loadDeferredImagesBlockCookies&&f(new b(s)),e.loadDeferredImagesBlockStorage&&f(new b(h)),e.loadDeferredImagesDispatchScrollEvent&&f(new b(c)),e.loadDeferredImagesKeepZoomLevel?f(new b(r)):f(new b(t))}function E(e){e.loadDeferredImagesBlockCookies&&f(new b(l)),e.loadDeferredImagesBlockStorage&&f(new b(d)),e.loadDeferredImagesDispatchScrollEvent&&f(new b(u)),e.loadDeferredImagesKeepZoomLevel?f(new b(a)):f(new b(n))}function S(e){e.loadDeferredImagesKeepZoomLevel?f(new b(o)):f(new b(i))}v=window._singleFile_fontFaces?window._singleFile_fontFaces:window._singleFile_fontFaces=new Map,y instanceof w&&(g("single-file-new-font-face",(e=>{const t=e.detail,n=Object.assign({},t);delete n.src,v.set(k.stringify(n),t)})),g("single-file-delete-font",(e=>{const t=e.detail,n=Object.assign({},t);delete n.src,v.delete(k.stringify(n))})),g("single-file-clear-fonts",(()=>v=new Map)));var T=Object.freeze({__proto__:null,getFontsData:x,loadDeferredImagesStart:A,loadDeferredImagesEnd:E,loadDeferredImagesResetZoomLevel:S,LOAD_IMAGE_EVENT:p,IMAGE_LOADED_EVENT:m});const C="[\\x20\\t\\r\\n\\f]",R=new RegExp("\\\\([\\da-f]{1,6}"+C+"?|("+C+")|.)","ig");function I(e){return e.replace(R,((e,t,n)=>{const r="0x"+t-65536;return r!=r||n?t:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)}))}var _=Object.freeze({__proto__:null,process:I});const L="single-file-infobar",z="\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 N(e,t,n){if(!e.querySelector(L)){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,L,e.body);let o;if(n)o=a.attachShadow({mode:"open"});else{const t=e.createElement("template");t.setAttribute("shadowroot","open"),a.appendChild(t),o=t}const i=e.createElement("div"),s=e.createElement("style");s.textContent=z.replace(/ {2}/g,"").replace(/\n/g,"").replace(/: /g,":").replace(/, /g,","),i.appendChild(s);const l=e.createElement("form");l.classList.add("infobar"),i.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"),u.appendChild(h);const d=e.createElement("span");d.textContent=r,u.appendChild(d);const p=e.createElement("a");if(p.classList.add("infobar-link-icon"),p.target="_blank",p.rel="noopener noreferrer",p.title="Open source URL: "+t.saveUrl,p.href=t.saveUrl,u.appendChild(p),l.appendChild(u),n)o.appendChild(i);else{const t=e.createElement("script");let n=M.toString();n+=P.toString(),n+="("+U.toString()+")(document)",t.textContent=n,i.appendChild(t),o.innerHTML=i.outerHTML}e.body.appendChild(a)}}function P(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("SingleFile")){const e=n.textContent.split("\n"),[,,t,...r]=e,a=t.match(/^ url: (.*) ?$/),o=a&&a[1];if(o){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;eglobalThis.addEventListener(e,t,n),ye=globalThis.JSON;function we(e){e.querySelectorAll("meta[http-equiv=refresh]").forEach((e=>{e.removeAttribute("http-equiv"),e.setAttribute("disabled-http-equiv","refresh")}))}function ke(e,t,n){e.querySelectorAll("noscript:not(["+re+"])").forEach((e=>{e.setAttribute(re,e.textContent),e.textContent=""})),we(e),e.head&&e.head.querySelectorAll(se).forEach((e=>e.hidden=!0)),e.querySelectorAll("svg foreignObject").forEach((e=>{const t=e.querySelectorAll("html > head > "+se+", html > body > "+se);t.length&&(Array.from(e.childNodes).forEach((e=>e.remove())),t.forEach((t=>e.appendChild(t))))}));const r=new Map;let a;return t&&e.documentElement?(e.querySelectorAll("button button, a a").forEach((t=>{const n=e.createElement("template");n.setAttribute(oe,""),n.content.appendChild(t.cloneNode(!0)),r.set(t,n),t.replaceWith(n)})),a=ve(t,e,e.documentElement,n),n.moveStylesInHead&&e.querySelectorAll("body style, body ~ style").forEach((e=>{const n=Me(t,e);n&&Ce(e,n)&&(e.setAttribute(X,""),a.markedElements.push(e))}))):a={canvases:[],images:[],posters:[],videos:[],usedFonts:[],shadowRoots:[],markedElements:[]},{canvases:a.canvases,fonts:x(),stylesheets:Ie(e),images:a.images,posters:a.posters,videos:a.videos,usedFonts:Array.from(a.usedFonts.values()),shadowRoots:a.shadowRoots,referrer:e.referrer,markedElements:a.markedElements,invalidElements:r,scrollPosition:{x:t.scrollX,y:t.scrollY},adoptedStyleSheets:xe(e.adoptedStyleSheets)}}function ve(e,t,n,r,a={usedFonts:new Map,canvases:[],images:[],posters:[],videos:[],shadowRoots:[],markedElements:[]},o){if(n.childNodes){Array.from(n.childNodes).filter((t=>t instanceof e.HTMLElement||t instanceof e.SVGElement)).forEach((n=>{let i,s,l;if(!r.autoSaveExternalSave&&(r.removeHiddenElements||r.removeUnusedFonts||r.compressHTML)&&(l=Me(e,n),n instanceof e.HTMLElement&&r.removeHiddenElements&&(s=(o||n.closest("html > head"))&&le.includes(n.tagName.toUpperCase())||n.closest("details"),s||(i=o||Ce(n,l),i&&(n.setAttribute(H,""),a.markedElements.push(n)))),!i)){if(r.compressHTML&&l){const e=l.getPropertyValue("white-space");e&&e.startsWith("pre")&&(n.setAttribute($,""),a.markedElements.push(n))}r.removeUnusedFonts&&(Ae(l,r,a.usedFonts),Ae(Me(e,n,":first-letter"),r,a.usedFonts),Ae(Me(e,n,":before"),r,a.usedFonts),Ae(Me(e,n,":after"),r,a.usedFonts))}!function(e,t,n,r,a,o,i){const s=n.tagName&&n.tagName.toUpperCase();if("CANVAS"==s)try{a.canvases.push({dataURI:n.toDataURL("image/png",""),backgroundColor:i.getPropertyValue("background-color")}),n.setAttribute(Z,a.canvases.length-1),a.markedElements.push(n)}catch(e){}if("IMG"==s){const t={currentSrc:o?fe:r.loadDeferredImages&&n.getAttribute(te)||n.currentSrc};if(a.images.push(t),n.setAttribute(Y,a.images.length-1),a.markedElements.push(n),n.removeAttribute(te),i=i||Me(e,n)){t.size=function(e,t,n){let r=t.naturalWidth,a=t.naturalHeight;if(!r&&!a){const o=null==t.getAttribute("style");if(n=n||Me(e,t)){let e,i,s,l,c,u,h,d,p=!1;if("content-box"==n.getPropertyValue("box-sizing")){const e=t.style.getPropertyValue("box-sizing"),n=t.style.getPropertyPriority("box-sizing"),r=t.clientWidth;t.style.setProperty("box-sizing","border-box","important"),p=t.clientWidth!=r,e?t.style.setProperty("box-sizing",e,n):t.style.removeProperty("box-sizing")}e=_e("padding-left",n),i=_e("padding-right",n),s=_e("padding-top",n),l=_e("padding-bottom",n),p?(c=_e("border-left-width",n),u=_e("border-right-width",n),h=_e("border-top-width",n),d=_e("border-bottom-width",n)):c=u=h=d=0,r=Math.max(0,t.clientWidth-e-i-c-u),a=Math.max(0,t.clientHeight-s-l-h-d),o&&t.removeAttribute("style")}}return{pxWidth:r,pxHeight:a}}(e,n,i);const r=i.getPropertyValue("box-shadow"),a=i.getPropertyValue("background-image");r&&"none"!=r||a&&"none"!=a||!(t.size.pxWidth>1||t.size.pxHeight>1)||(t.replaceable=!0,t.backgroundColor=i.getPropertyValue("background-color"),t.objectFit=i.getPropertyValue("object-fit"),t.boxSizing=i.getPropertyValue("box-sizing"),t.objectPosition=i.getPropertyValue("object-position"))}}if("VIDEO"==s){const r=n.currentSrc;if(r&&!r.startsWith("blob:")&&!r.startsWith("data:")){const t=Me(e,n.parentNode);a.videos.push({positionParent:t&&t.getPropertyValue("position"),src:r,size:{pxWidth:n.clientWidth,pxHeight:n.clientHeight},currentTime:n.currentTime}),n.setAttribute(Q,a.videos.length-1)}if(!n.getAttribute("poster")){const e=t.createElement("canvas"),r=e.getContext("2d");e.width=n.clientWidth,e.height=n.clientHeight;try{r.drawImage(n,0,0,e.width,e.height),a.posters.push(e.toDataURL("image/png","")),n.setAttribute(K,a.posters.length-1),a.markedElements.push(n)}catch(e){}}}"IFRAME"==s&&o&&r.removeHiddenElements&&(n.setAttribute(W,""),a.markedElements.push(n));"INPUT"==s&&("password"!=n.type&&(n.setAttribute(ee,n.value),a.markedElements.push(n)),"radio"!=n.type&&"checkbox"!=n.type||(n.setAttribute(ee,n.checked),a.markedElements.push(n)));"TEXTAREA"==s&&(n.setAttribute(ee,n.value),a.markedElements.push(n));"SELECT"==s&&n.querySelectorAll("option").forEach((e=>{e.selected&&(e.setAttribute(ee,""),a.markedElements.push(e))}));"SCRIPT"==s&&(n.async&&""!=n.getAttribute("async")&&"async"!=n.getAttribute("async")&&(n.setAttribute(ie,""),a.markedElements.push(n)),n.textContent=n.textContent.replace(/<\/script>/gi,"<\\/script>"))}(e,t,n,r,a,i,l);const c=!(n instanceof e.SVGElement)&&Ee(n);if(c&&!n.classList.contains(me)){const o={};n.setAttribute(G,a.shadowRoots.length),a.markedElements.push(n),a.shadowRoots.push(o);try{if(c.adoptedStyleSheets)if(c.adoptedStyleSheets.length)o.adoptedStyleSheets=xe(c.adoptedStyleSheets);else if(void 0===c.adoptedStyleSheets.length){const e=e=>o.adoptedStyleSheets=e.detail.adoptedStyleSheets;n.addEventListener(B,e),n.dispatchEvent(new CustomEvent(q,{bubbles:!0})),n.removeEventListener(B,e)}}catch(e){}ve(e,t,c,r,a,i),o.content=c.innerHTML,o.mode=c.mode;try{c.adoptedStyleSheets&&void 0===c.adoptedStyleSheets.length&&n.dispatchEvent(new CustomEvent(F,{bubbles:!0}))}catch(e){}}ve(e,t,n,r,a,i),!r.autoSaveExternalSave&&r.removeHiddenElements&&o&&(s||""==n.getAttribute(V)?n.parentElement&&(n.parentElement.setAttribute(V,""),a.markedElements.push(n.parentElement)):i&&(n.setAttribute(j,""),a.markedElements.push(n)))}))}return a}function xe(e){return Array.from(e).map((e=>Array.from(e.cssRules).map((e=>e.cssText)).join("\n")))}function Ae(e,t,n){if(e){const r=e.getPropertyValue("font-style")||"normal";e.getPropertyValue("font-family").split(",").forEach((a=>{if(a=Te(a),!t.loadedFonts||t.loadedFonts.find((e=>Te(e.family)==a&&e.style==r))){const t=Ne(e.getPropertyValue("font-weight")),o=e.getPropertyValue("font-variant")||"normal",i=[a,t,r,o];n.set(ye.stringify(i),[a,t,r,o])}}))}}function Ee(e){const t=globalThis.chrome;if(e.openOrClosedShadowRoot)return e.openOrClosedShadowRoot;if(!(t&&t.dom&&t.dom.openOrClosedShadowRoot))return e.shadowRoot;try{return t.dom.openOrClosedShadowRoot(e)}catch(t){return e.shadowRoot}}function Se(e,t,n){return N(e,t,n)}function Te(e=""){return ze(I(e.trim())).toLowerCase()}function Ce(e,t){let n=!1;if(t){const r=t.getPropertyValue("display"),a=t.getPropertyValue("opacity"),o=t.getPropertyValue("visibility");if(n="none"==r,!n&&("0"==a||"hidden"==o)&&e.getBoundingClientRect){const t=e.getBoundingClientRect();n=!t.width&&!t.height}}return Boolean(n)}function Re(e,t,n){if(e.querySelectorAll("["+re+"]").forEach((e=>{e.textContent=e.getAttribute(re),e.removeAttribute(re)})),e.querySelectorAll("meta[disabled-http-equiv]").forEach((e=>{e.setAttribute("http-equiv",e.getAttribute("disabled-http-equiv")),e.removeAttribute("disabled-http-equiv")})),e.head&&e.head.querySelectorAll("*:not(base):not(link):not(meta):not(noscript):not(script):not(style):not(template):not(title)").forEach((e=>e.removeAttribute("hidden"))),!t){const n=[j,W,H,$,Y,K,Q,Z,ee,G,ne,ie];t=e.querySelectorAll(n.map((e=>"["+e+"]")).join(","))}t.forEach((e=>{e.removeAttribute(j),e.removeAttribute(H),e.removeAttribute(V),e.removeAttribute(W),e.removeAttribute($),e.removeAttribute(Y),e.removeAttribute(K),e.removeAttribute(Q),e.removeAttribute(Z),e.removeAttribute(ee),e.removeAttribute(G),e.removeAttribute(ne),e.removeAttribute(ie),e.removeAttribute(X)})),n&&n.forEach(((e,t)=>e.replaceWith(t)))}function Ie(e){if(e){const t=[];return e.querySelectorAll("style").forEach(((n,r)=>{try{const a=e.createElement("style");a.textContent=n.textContent,e.body.appendChild(a);const o=a.sheet;a.remove(),o&&o.cssRules.length==n.sheet.cssRules.length||(n.setAttribute(ne,r),t[r]=Array.from(n.sheet.cssRules).map((e=>e.cssText)).join("\n"))}catch(e){}})),t}}function _e(e,t){if(t.getPropertyValue(e).endsWith("px"))return parseFloat(t.getPropertyValue(e))}function Le(e){const t=e.doctype;let n="";return t&&(n=" "),n+e.documentElement.outerHTML}function ze(e){return(e=e.match(ce)?e.replace(ce,"$1"):e.replace(ue,"$1")).trim()}function Ne(e){return he[e.toLowerCase().trim()]||e}function Pe(e){return e.flat?e.flat():e.reduce(((e,t)=>e.concat(Array.isArray(t)?Pe(t):t)),[])}function Me(e,t,n){try{return e.getComputedStyle(t,n)}catch(e){}}var Ue=Object.freeze({__proto__:null,initUserScriptHandler:function(){be("single-file-user-script-init",(()=>globalThis._singleFile_waitForUserScript=async e=>{const t=new CustomEvent(e+"-request",{cancelable:!0}),n=new Promise((t=>be(e+"-response",t)));(e=>{try{globalThis.dispatchEvent(e)}catch(e){}})(t),t.defaultPrevented&&await n}))},initDoc:we,preProcessDoc:ke,postProcessDoc:Re,serialize:Le,removeQuotes:ze,flatten:Pe,getFontWeight:Ne,normalizeFontFamily:Te,getShadowRoot:Ee,appendInfobar:Se,ON_BEFORE_CAPTURE_EVENT_NAME:O,ON_AFTER_CAPTURE_EVENT_NAME:D,WIN_ID_ATTRIBUTE_NAME:J,PRESERVED_SPACE_ELEMENT_ATTRIBUTE_NAME:$,REMOVED_CONTENT_ATTRIBUTE_NAME:j,HIDDEN_CONTENT_ATTRIBUTE_NAME:H,HIDDEN_FRAME_ATTRIBUTE_NAME:W,IMAGE_ATTRIBUTE_NAME:Y,POSTER_ATTRIBUTE_NAME:K,VIDEO_ATTRIBUTE_NAME:Q,CANVAS_ATTRIBUTE_NAME:Z,INPUT_VALUE_ATTRIBUTE_NAME:ee,SHADOW_ROOT_ATTRIBUTE_NAME:G,STYLE_ATTRIBUTE_NAME:X,LAZY_SRC_ATTRIBUTE_NAME:te,STYLESHEET_ATTRIBUTE_NAME:ne,SELECTED_CONTENT_ATTRIBUTE_NAME:ae,INVALID_ELEMENT_ATTRIBUTE_NAME:oe,ASYNC_SCRIPT_ATTRIBUTE_NAME:ie,COMMENT_HEADER:de,COMMENT_HEADER_LEGACY:pe,SINGLE_FILE_UI_ELEMENT_CLASS:me,EMPTY_RESOURCE:fe,INFOBAR_TAGNAME:ge});const Oe={LAZY_SRC_ATTRIBUTE_NAME:te,SINGLE_FILE_UI_ELEMENT_CLASS:me},De=10,qe="attributes",Fe=globalThis.browser,Be=globalThis.document,je=globalThis.MutationObserver,He=(e,t,n)=>globalThis.addEventListener(e,t,n),Ve=(e,t,n)=>globalThis.removeEventListener(e,t,n),We=new Map;let $e;async function Ge(e){if(Be.documentElement){We.clear();const t=Be.body&&Be.body.scrollHeight||Be.documentElement.scrollHeight,n=Be.body&&Be.body.scrollWidth||Be.documentElement.scrollWidth;if(t>globalThis.innerHeight||n>globalThis.innerWidth){const r=Math.max(t-1.5*globalThis.innerHeight,0),a=Math.max(n-1.5*globalThis.innerWidth,0);if(globalThis.scrollY{let n;const r=new Set,a=new je((async t=>{if((t=t.filter((e=>e.type==qe))).length){t.filter((e=>{if("src"==e.attributeName&&(e.target.setAttribute(Oe.LAZY_SRC_ATTRIBUTE_NAME,e.target.src),e.target.addEventListener("load",i)),"src"==e.attributeName||"srcset"==e.attributeName||e.target.tagName&&"SOURCE"==e.target.tagName.toUpperCase())return!e.target.classList||!e.target.classList.contains(Oe.SINGLE_FILE_UI_ELEMENT_CLASS)})).length&&(n=!0,await Ke(a,e,c),r.size||await Ye(a,e,c))}}));async function o(t){await Ze("idleTimeout",(async()=>{n?$eQe(e,t,n)),t.loadDeferredImagesMaxIdleTime,t.loadDeferredImagesNativeTimeout)}async function Ke(e,t,n){await Ze("maxTimeout",(async()=>{await et("loadTimeout"),await Qe(e,t,n)}),10*t.loadDeferredImagesMaxIdleTime,t.loadDeferredImagesNativeTimeout)}async function Qe(e,t,n){await et("idleTimeout"),E(t),await Ze("endTimeout",(async()=>{await et("maxTimeout"),n()}),t.loadDeferredImagesMaxIdleTime/2,t.loadDeferredImagesNativeTimeout),e.disconnect()}async function Ze(e,t,n,r){if(Fe&&Fe.runtime&&Fe.runtime.sendMessage&&!r){if(!We.get(e)||!We.get(e).pending){const r={callback:t,pending:!0};We.set(e,r);try{await Fe.runtime.sendMessage({method:"singlefile.lazyTimeout.setTimeout",type:e,delay:n})}catch(r){Xe(e,t,n)}r.pending=!1}}else Xe(e,t,n)}function Xe(e,t,n){const r=We.get(e);r&&globalThis.clearTimeout(r),We.set(e,t),globalThis.setTimeout(t,n)}async function et(e){if(Fe&&Fe.runtime&&Fe.runtime.sendMessage)try{await Fe.runtime.sendMessage({method:"singlefile.lazyTimeout.clearTimeout",type:e})}catch(t){tt(e)}else tt(e)}function tt(e){const t=We.get(e);We.delete(e),t&&globalThis.clearTimeout(t)}Fe&&Fe.runtime&&Fe.runtime.onMessage&&Fe.runtime.onMessage.addListener&&Fe.runtime.onMessage.addListener((e=>{if("singlefile.lazyTimeout.onTimeout"==e.method){const t=We.get(e.type);if(t){We.delete(e.type);try{t.callback()}catch(t){tt(e.type)}}}}));var nt=Object.freeze({__proto__:null,process:Ge,resetZoomLevel:Je});const rt={ON_BEFORE_CAPTURE_EVENT_NAME:O,ON_AFTER_CAPTURE_EVENT_NAME:D,WIN_ID_ATTRIBUTE_NAME:J,preProcessDoc:ke,serialize:Le,postProcessDoc:Re,getShadowRoot:Ee},at="__frameTree__::",ot='iframe, frame, object[type="text/html"][data]',it="*",st="singlefile.frameTree.initRequest",lt="singlefile.frameTree.ackInitRequest",ct="singlefile.frameTree.cleanupRequest",ut="singlefile.frameTree.initResponse",ht="*",dt=5e3,pt=".",mt=globalThis.window==globalThis.top,gt=globalThis.browser,ft=globalThis.top,bt=globalThis.MessageChannel,yt=globalThis.document,wt=globalThis.JSON;let kt,vt=globalThis.sessions;var xt,At,Et;function St(){return globalThis.crypto.getRandomValues(new Uint32Array(32)).join("")}async function Tt(e){const t=e.sessionId,n=globalThis._singleFile_waitForUserScript;delete globalThis._singleFile_cleaningUp,mt||(kt=globalThis.frameId=e.windowId),It(yt,e.options,kt,t),mt||(e.options.userScriptEnabled&&n&&await n(rt.ON_BEFORE_CAPTURE_EVENT_NAME),Nt({frames:[Mt(yt,globalThis,kt,e.options,e.scrolling)],sessionId:t,requestedFrameId:yt.documentElement.dataset.requestedFrameId&&kt}),e.options.userScriptEnabled&&n&&await n(rt.ON_AFTER_CAPTURE_EVENT_NAME),delete yt.documentElement.dataset.requestedFrameId)}function Ct(e){if(!globalThis._singleFile_cleaningUp){globalThis._singleFile_cleaningUp=!0;const t=e.sessionId;zt(Ut(yt),e.windowId,t)}}function Rt(e){e.frames.forEach((t=>_t("responseTimeouts",e.sessionId,t.windowId)));const t=vt.get(e.sessionId);if(t){e.requestedFrameId&&(t.requestedFrameId=e.requestedFrameId),e.frames.forEach((e=>{let n=t.frames.find((t=>e.windowId==t.windowId));n||(n={windowId:e.windowId},t.frames.push(n)),n.processed||(n.content=e.content,n.baseURI=e.baseURI,n.title=e.title,n.url=e.url,n.canvases=e.canvases,n.fonts=e.fonts,n.stylesheets=e.stylesheets,n.images=e.images,n.posters=e.posters,n.videos=e.videos,n.usedFonts=e.usedFonts,n.shadowRoots=e.shadowRoots,n.processed=e.processed,n.scrollPosition=e.scrollPosition,n.scrolling=e.scrolling,n.adoptedStyleSheets=e.adoptedStyleSheets)}));t.frames.filter((e=>!e.processed)).length||(t.frames=t.frames.sort(((e,t)=>t.windowId.split(pt).length-e.windowId.split(pt).length)),t.resolve&&(t.requestedFrameId&&t.frames.forEach((e=>{e.windowId==t.requestedFrameId&&(e.requestedFrame=!0)})),t.resolve(t.frames)))}}function It(e,t,n,r){const a=Ut(e);!function(e,t,n,r,a){const o=[];let i;vt.get(a)?i=vt.get(a).requestTimeouts:(i={},vt.set(a,{requestTimeouts:i}));t.forEach(((e,t)=>{const n=r+pt+t;e.setAttribute(rt.WIN_ID_ATTRIBUTE_NAME,n),o.push({windowId:n})})),Nt({frames:o,sessionId:a,requestedFrameId:e.documentElement.dataset.requestedFrameId&&r}),t.forEach(((e,t)=>{const o=r+pt+t;try{Pt(e.contentWindow,{method:st,windowId:o,sessionId:a,options:n,scrolling:e.scrolling})}catch(e){}i[o]=globalThis.setTimeout((()=>Nt({frames:[{windowId:o,processed:!0}],sessionId:a})),dt)})),delete e.documentElement.dataset.requestedFrameId}(e,a,t,n,r),a.length&&function(e,t,n,r,a){const o=[];t.forEach(((e,t)=>{const i=r+pt+t;let s;try{s=e.contentDocument}catch(e){}if(s)try{const t=e.contentWindow;t.stop(),_t("requestTimeouts",a,i),It(s,n,i,a),o.push(Mt(s,t,i,n,e.scrolling))}catch(e){o.push({windowId:i,processed:!0})}})),Nt({frames:o,sessionId:a,requestedFrameId:e.documentElement.dataset.requestedFrameId&&r}),delete e.documentElement.dataset.requestedFrameId}(e,a,t,n,r)}function _t(e,t,n){const r=vt.get(t);if(r&&r[e]){const t=r[e][n];t&&(globalThis.clearTimeout(t),delete r[e][n])}}function Lt(e,t){const n=vt.get(e);n&&n.responseTimeouts&&(n.responseTimeouts[t]=globalThis.setTimeout((()=>Nt({frames:[{windowId:t,processed:!0}],sessionId:e})),1e4))}function zt(e,t,n){e.forEach(((e,r)=>{const a=t+pt+r;e.removeAttribute(rt.WIN_ID_ATTRIBUTE_NAME);try{Pt(e.contentWindow,{method:ct,windowId:a,sessionId:n})}catch(e){}})),e.forEach(((e,r)=>{const a=t+pt+r;let o;try{o=e.contentDocument}catch(e){}if(o)try{zt(Ut(o),a,n)}catch(e){}}))}function Nt(e){e.method=ut;try{ft.singlefile.processors.frameTree.initResponse(e)}catch(t){Pt(ft,e,!0)}}function Pt(e,t,n){if(e==ft&>&>.runtime&>.runtime.sendMessage)gt.runtime.sendMessage(t);else if(n){const n=new bt;e.postMessage(at+wt.stringify({method:t.method,sessionId:t.sessionId}),ht,[n.port2]),n.port1.postMessage(t)}else e.postMessage(at+wt.stringify(t),ht)}function Mt(e,t,n,r,a){const o=rt.preProcessDoc(e,t,r),i=rt.serialize(e);rt.postProcessDoc(e,o.markedElements,o.invalidElements);return{windowId:n,content:i,baseURI:e.baseURI.split("#")[0],url:e.location.href,title:e.title,canvases:o.canvases,fonts:o.fonts,stylesheets:o.stylesheets,images:o.images,posters:o.posters,videos:o.videos,usedFonts:o.usedFonts,shadowRoots:o.shadowRoots,scrollPosition:o.scrollPosition,scrolling:a,adoptedStyleSheets:o.adoptedStyleSheets,processed:!0}}function Ut(e){let t=Array.from(e.querySelectorAll(ot));return e.querySelectorAll(it).forEach((e=>{const n=rt.getShadowRoot(e);n&&(t=t.concat(...n.querySelectorAll(ot)))})),t}vt||(vt=globalThis.sessions=new Map),mt&&(kt="0",gt&>.runtime&>.runtime.onMessage&>.runtime.onMessage.addListener&>.runtime.onMessage.addListener((e=>e.method==ut?(Rt(e),Promise.resolve({})):e.method==lt?(_t("requestTimeouts",e.sessionId,e.windowId),Lt(e.sessionId,e.windowId),Promise.resolve({})):void 0))),xt="message",At=async e=>{if("string"==typeof e.data&&e.data.startsWith(at)){e.preventDefault(),e.stopPropagation();const t=wt.parse(e.data.substring(at.length));t.method==st?(e.source&&Pt(e.source,{method:lt,windowId:t.windowId,sessionId:t.sessionId}),mt||(globalThis.stop(),t.options.loadDeferredImages&&Ge(t.options),await Tt(t))):t.method==lt?(_t("requestTimeouts",t.sessionId,t.windowId),Lt(t.sessionId,t.windowId)):t.method==ct?Ct(t):t.method==ut&&vt.get(t.sessionId)&&(e.ports[0].onmessage=e=>Rt(e.data))}},Et=!0,globalThis.addEventListener(xt,At,Et);var Ot=Object.freeze({__proto__:null,getAsync:function(e){const t=St();return e=wt.parse(wt.stringify(e)),new Promise((n=>{vt.set(t,{frames:[],requestTimeouts:{},responseTimeouts:{},resolve:e=>{e.sessionId=t,n(e)}}),Tt({windowId:kt,sessionId:t,options:e})}))},getSync:function(e){const t=St();e=wt.parse(wt.stringify(e)),vt.set(t,{frames:[],requestTimeouts:{},responseTimeouts:{}}),function(e){const t=e.sessionId,n=globalThis._singleFile_waitForUserScript;delete globalThis._singleFile_cleaningUp,mt||(kt=globalThis.frameId=e.windowId);It(yt,e.options,kt,t),mt||(e.options.userScriptEnabled&&n&&n(rt.ON_BEFORE_CAPTURE_EVENT_NAME),Nt({frames:[Mt(yt,globalThis,kt,e.options,e.scrolling)],sessionId:t,requestedFrameId:yt.documentElement.dataset.requestedFrameId&&kt}),e.options.userScriptEnabled&&n&&n(rt.ON_AFTER_CAPTURE_EVENT_NAME),delete yt.documentElement.dataset.requestedFrameId)}({windowId:kt,sessionId:t,options:e});const n=vt.get(t).frames;return n.sessionId=t,n},cleanup:function(e){vt.delete(e),Ct({windowId:kt,sessionId:e,options:{sessionId:e}})},initResponse:Rt,TIMEOUT_INIT_REQUEST_MESSAGE:dt}),Dt=Object.freeze({__proto__:null,frameTree:Ot,hooksFrames:T,lazy:nt}),qt=Object.create,Ft=Object.defineProperty,Bt=Object.getOwnPropertyDescriptor,jt=Object.getOwnPropertyNames,Ht=Object.getPrototypeOf,Vt=Object.prototype.hasOwnProperty,Wt=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),$t=(e,t)=>{for(var n in t)Ft(e,n,{get:t[n],enumerable:!0})},Gt=Wt((e=>{var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");e.encode=function(e){if(0<=e&&e{var t=Gt();e.encode=function(e){var n,r,a="",o=(r=e)<0?1+(-r<<1):0+(r<<1);do{n=31&o,(o>>>=5)>0&&(n|=32),a+=t.encode(n)}while(o>0);return a},e.decode=function(e,n,r){var a,o,i=e.length,s=0,l=0;do{if(n>=i)throw new Error("Expected more digits in base 64 VLQ value.");if(-1===(o=t.decode(e.charCodeAt(n++))))throw new Error("Invalid base64 digit: "+e.charAt(n-1));a=!!(32&o),s+=(o&=31)<>1;return 1==(1&e)?-t:t}(s),r.rest=n}})),Yt=Wt((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 o,i,s=(o=function(t){var n=t,o=r(t);if(o){if(!o.path)return t;n=o.path}for(var i=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=i?"/":"."),o?(o.path=n,a(o)):n},i=[],function(e){for(var t=0;t32&&i.pop(),r});function l(e,t){""===e&&(e="."),""===t&&(t=".");var o=r(t),i=r(e);if(i&&(e=i.path||"/"),o&&!o.scheme)return i&&(o.scheme=i.scheme),a(o);if(o||t.match(n))return t;if(i&&!i.host&&!i.path)return i.host=t,a(i);var l="/"===t.charAt(0)?t:s(e.replace(/\/+$/,"")+"/"+t);return i?(i.path=l,a(i)):l}e.normalize=s,e.join=l,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 c=!("__proto__"in Object.create(null));function u(e){return e}function h(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 d(e,t){return e===t?0:null===e?1:null===t?-1:e>t?1:-1}e.toSetString=c?u:function(e){return h(e)?"$"+e:e},e.fromSetString=c?u:function(e){return h(e)?e.slice(1):e},e.compareByOriginalPositions=function(e,t,n){var r=d(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:d(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:d(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=d(e.source,t.source))||0!==(r=e.originalLine-t.originalLine)||0!==(r=e.originalColumn-t.originalColumn)?r:d(e.name,t.name)},e.compareByGeneratedPositionsDeflatedNoLine=function(e,t,n){var r=e.generatedColumn-t.generatedColumn;return 0!==r||n||0!==(r=d(e.source,t.source))||0!==(r=e.originalLine-t.originalLine)||0!==(r=e.originalColumn-t.originalColumn)?r:d(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=d(e.source,t.source))||0!==(n=e.originalLine-t.originalLine)||0!==(n=e.originalColumn-t.originalColumn)?n:d(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 o=r(n);if(!o)throw new Error("sourceMapURL could not be parsed");if(o.path){var i=o.path.lastIndexOf("/");i>=0&&(o.path=o.path.substring(0,i+1))}t=l(a(o),t)}return s(t)}})),Kt=Wt((e=>{var t=Yt(),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,o=e.length;r=0)return a}else{var o=t.toSetString(e);if(n.call(this._set,o))return this._set[o]}throw new Error('"'+e+'" is not in the set.')},a.prototype.at=function(e){if(e>=0&&e{var t=Yt();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,o=e.generatedColumn,i=n.generatedColumn;return a>r||a==r&&i>=o||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})),Zt=Wt((e=>{var t=Jt(),n=Yt(),r=Kt().ArraySet,a=Qt().MappingList;function o(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}o.prototype._version=3,o.fromSourceMap=function(e){var t=e.sourceRoot,r=new o({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 o=a;null!==t&&(o=n.relative(t,a)),r._sources.has(o)||r._sources.add(o);var i=e.sourceContentFor(a);null!=i&&r.setSourceContent(a,i)})),r},o.prototype.addMapping=function(e){var t=n.getArg(e,"generated"),r=n.getArg(e,"original",null),a=n.getArg(e,"source",null),o=n.getArg(e,"name",null);this._skipValidation||this._validateMapping(t,r,a,o),null!=a&&(a=String(a),this._sources.has(a)||this._sources.add(a)),null!=o&&(o=String(o),this._names.has(o)||this._names.add(o)),this._mappings.add({generatedLine:t.line,generatedColumn:t.column,originalLine:null!=r&&r.line,originalColumn:null!=r&&r.column,source:a,name:o})},o.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))},o.prototype.applySourceMap=function(e,t,a){var o=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.');o=e.file}var i=this._sourceRoot;null!=i&&(o=n.relative(i,o));var s=new r,l=new r;this._mappings.unsortedForEach((function(t){if(t.source===o&&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!=i&&(t.source=n.relative(i,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!=i&&(t=n.relative(i,t)),this.setSourceContent(t,r))}),this)},o.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}))}},o.prototype._serializeMappings=function(){for(var e,r,a,o,i=0,s=1,l=0,c=0,u=0,h=0,d="",p=this._mappings.toArray(),m=0,g=p.length;m0){if(!n.compareByGeneratedPositionsInflated(r,p[m-1]))continue;e+=","}e+=t.encode(r.generatedColumn-i),i=r.generatedColumn,null!=r.source&&(o=this._sources.indexOf(r.source),e+=t.encode(o-h),h=o,e+=t.encode(r.originalLine-1-c),c=r.originalLine-1,e+=t.encode(r.originalColumn-l),l=r.originalColumn,null!=r.name&&(a=this._names.indexOf(r.name),e+=t.encode(a-u),u=a)),d+=e}return d},o.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)},o.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},o.prototype.toString=function(){return JSON.stringify(this.toJSON())},e.SourceMapGenerator=o})),Xt={};$t(Xt,{AtKeyword:()=>rn,BadString:()=>sn,BadUrl:()=>cn,CDC:()=>fn,CDO:()=>gn,Colon:()=>bn,Comma:()=>wn,Comment:()=>Tn,Delim:()=>un,Dimension:()=>pn,EOF:()=>en,Function:()=>nn,Hash:()=>an,Ident:()=>tn,LeftCurlyBracket:()=>En,LeftParenthesis:()=>xn,LeftSquareBracket:()=>kn,Number:()=>hn,Percentage:()=>dn,RightCurlyBracket:()=>Sn,RightParenthesis:()=>An,RightSquareBracket:()=>vn,Semicolon:()=>yn,String:()=>on,Url:()=>ln,WhiteSpace:()=>mn});var en=0,tn=1,nn=2,rn=3,an=4,on=5,sn=6,ln=7,cn=8,un=9,hn=10,dn=11,pn=12,mn=13,gn=14,fn=15,bn=16,yn=17,wn=18,kn=19,vn=20,xn=21,An=22,En=23,Sn=24,Tn=25;function Cn(e){return e>=48&&e<=57}function Rn(e){return Cn(e)||e>=65&&e<=70||e>=97&&e<=102}function In(e){return e>=65&&e<=90}function _n(e){return function(e){return In(e)||function(e){return e>=97&&e<=122}(e)}(e)||function(e){return e>=128}(e)||95===e}function Ln(e){return _n(e)||Cn(e)||45===e}function zn(e){return e>=0&&e<=8||11===e||e>=14&&e<=31||127===e}function Nn(e){return 10===e||13===e||12===e}function Pn(e){return Nn(e)||32===e||9===e}function Mn(e,t){return!(92!==e||Nn(t)||0===t)}function Un(e,t,n){return 45===e?_n(t)||45===t||Mn(t,n):!!_n(e)||92===e&&Mn(e,t)}function On(e,t,n){return 43===e||45===e?Cn(t)?2:46===t&&Cn(n)?3:0:46===e?Cn(t)?2:0:Cn(e)?1:0}function Dn(e){return 65279===e||65534===e?1:0}var qn=new Array(128),Fn=130,Bn=131,jn=132,Hn=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 nr=["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 rr(e=null,t){return null===e||e.length0?Dn(t.charCodeAt(0)):0,a=rr(e.lines,n),o=rr(e.columns,n),i=e.startLine,s=e.startColumn;for(let e=r;e{})){let n=(e=String(e||"")).length,r=rr(this.offsetAndType,e.length+1),a=rr(this.balance,e.length+1),o=0,i=0,s=0,l=-1;for(this.offsetAndType=null,this.balance=null,t(e,((e,t,c)=>{switch(e){default:a[o]=n;break;case i:{let e=s&ir;for(s=a[e],i=s>>sr,a[o]=e,a[e++]=o;e>sr:0}lookupOffset(e){return(e+=this.tokenIndex)0?e>sr,this.tokenEnd=t&ir):(this.tokenIndex=this.tokenCount,this.next())}next(){let e=this.tokenIndex+1;e>sr,this.tokenEnd=e&ir):(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]&ir: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>sr,r,o,t)}}dump(){let e=new Array(this.tokenCount);return this.forEachToken(((t,n,r,a)=>{e[a]={idx:a,type:nr[t],chunk:this.source.substring(n,r),balance:this.balance[a]}})),e}};function ur(e,t){function n(t){return t=e.length?void(cString(e+n+1).padStart(l)+" |"+t)).join("\n")}let o=e.split(/\r\n?|\n|\f/),i=Math.max(1,t-r)-1,s=Math.min(t+r,o.length+1),l=Math.max(4,String(s).length)+1,c=0;(n+=(fr.length-1)*(o[t-1].substr(0,n-1).match(/\t/g)||[]).length)>mr&&(c=n-gr+3,n=gr-2);for(let e=i;e<=s;e++)e>=0&&e0&&o[e].length>c?"…":"")+o[e].substr(c,mr-2)+(o[e].length>c+mr-1?"…":""));return[a(i,t),new Array(n+l+2).join("-")+"^",a(t,s)].filter(Boolean).join("\n")}function yr(e,t,n,r,a){return Object.assign(pr("SyntaxError",e),{source:t,offset:n,line:r,column:a,sourceFragment:e=>br({source:t,line:r,column:a},isNaN(e)?0:e),get formattedMessage(){return`Parse error: ${e}\n`+br({source:t,line:r,column:a},2)}})}function wr(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 kr=()=>{},vr=33,xr=35,Ar=59,Er=123,Sr=0;function Tr(e){return function(){return this[e]()}}function Cr(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 Rr(e){let t="",n="",r=!1,a=kr,o=!1,i=new or,s=Object.assign(new cr,function(e){let t={context:Object.create(null),scope:Object.assign(Object.create(null),e.scope),atrule:Cr(e.atrule),pseudo:Cr(e.pseudo),node:Cr(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]=Tr(e.parseContext[n])}return{config:t,...t,...t.node}}(e||{}),{parseAtrulePrelude:!0,parseRulePrelude:!0,parseValue:!0,parseCustomProperty:!1,readSequence:wr,consumeUntilBalanceEnd:()=>0,consumeUntilLeftCurlyBracket:e=>e===Er?1:0,consumeUntilLeftCurlyBracketOrSemicolon:e=>e===Er||e===Ar?1:0,consumeUntilExclamationMarkOrSemicolon:e=>e===vr||e===Ar?1:0,consumeUntilSemicolonIncluded:e=>e===Ar?2:0,createList:()=>new dr,createSingleNodeList:e=>(new dr).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(o)throw e;let r=t.call(this,n);return o=!0,a(e,r),o=!1,r}},lookupNonWSType(e){let t;do{if(t=this.lookupType(e++),13!==t)return t}while(t!==Sr);return Sr},charCodeAt:e=>e>=0&&et.substring(e,n),substrToCursor(e){return this.source.substring(e,this.tokenStart)},cmpChar:(e,n)=>Gn(t,e,n),cmpStr:(e,n,r)=>Jn(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,Xn(t,this.tokenStart));return this.eat(e),n},eat(e){if(this.tokenType!==e){let t=nr[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(xr)&&(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?i.getLocationRange(e,t,n):null,getLocationFromList(e){if(r){let t=this.getFirstListNode(e),r=this.getLastListNode(e);return i.getLocationRange(null!==t?t.loc.start.offset-i.startOffset:this.tokenStart,null!==r?r.loc.end.offset-i.startOffset:this.tokenStart,n)}return null},error(e,n){let r=typeof n<"u"&&n=0&&Pn(e.charCodeAt(t));t--);return t+1}(t,t.length-1)):i.getLocation(this.tokenStart);throw new yr(e||"Unexpected input",t,r.offset,r.line,r.column)}});return Object.assign((function(e,l){t=e,l=l||{},s.setSource(t,ur),i.setSource(t,l.offset,l.line,l.column),n=l.filename||"",r=Boolean(l.positions),a="function"==typeof l.onParseError?l.onParseError:kr,o=!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=Jn(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:yr,config:s.config})}var Ir,_r,Lr,zr=(Ir=Zt(),_r=1,Lr=null!=Ir?qt(Ht(Ir)):{},((e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let a of jt(t))!Vt.call(e,a)&&a!==n&&Ft(e,a,{get:()=>t[a],enumerable:!(r=Bt(t,a))||r.enumerable});return e})(!_r&&Ir&&Ir.__esModule?Lr:Ft(Lr,"default",{value:Ir,enumerable:!0}),Ir)),Nr=new Set(["Atrule","Selector","Declaration"]);var Pr={};$t(Pr,{safe:()=>Fr,spec:()=>qr});var Mr=(e,t)=>{if(9===e&&(e=t),"string"==typeof e){let t=e.charCodeAt(0);return t>127?32768:t<<8}return e},Ur=[[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],["/","*"]],Or=Ur.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 Dr(e){let t=new Set(e.map((([e,t])=>Mr(e)<<16|Mr(t))));return function(e,n,r){let a=Mr(n,r),o=r.charCodeAt(0);return(45===o&&1!==n&&2!==n&&15!==n||43===o?t.has(e<<16|o<<8):t.has(e<<16|a))&&this.emit(" ",13,!0),a}}var qr=Dr(Ur),Fr=Dr(Or),Br=92;function jr(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 Hr(e){ur(e,((t,n,r)=>{this.token(t,e.slice(n,r))}))}function Vr(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,o={node(e){if(!t.has(e.type))throw new Error("Unknown node type: "+e.type);t.get(e.type).call(i,e)},tokenBefore:Fr,token(e,t){a=this.tokenBefore(a,e,t),this.emit(t,e,!1),9===e&&t.charCodeAt(0)===Br&&this.emit("\n",13,!0)},emit(e){r+=e},result:()=>r};n&&("function"==typeof n.decorator&&(o=n.decorator(o)),n.sourceMap&&(o=function(e){let t=new zr.SourceMapGenerator,n={line:1,column:0},r={line:0,column:0},a={line:1,column:0},o={generated:a},i=1,s=0,l=!1,c=e.node;e.node=function(e){if(e.loc&&e.loc.start&&Nr.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=i,n.column=s,l&&(l=!1,(n.line!==a.line||n.column!==a.column)&&t.addMapping(o)),l=!0,t.addMapping({source:e.loc.source,original:r,generated:n}))}c.call(this,e),l&&Nr.has(e.type)&&(a.line=i,a.column=s)};let u=e.emit;e.emit=function(e,t,n){for(let t=0;to.node(e),children:jr,token:(e,t)=>o.token(e,t),tokenize:Hr};return o.node(e),o.result()}}var{hasOwnProperty:Wr}=Object.prototype,$r=function(){};function Gr(e){return"function"==typeof e?e:$r}function Jr(e,t){return function(n,r,a){n.type===t&&e.call(this,n,r,a)}}function Yr(e,t){let n=t.structure,r=[];for(let e in n){if(!1===Wr.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 Kr(e,t){let n=e.fields.slice(),r=e.context,a="string"==typeof r;return t&&n.reverse(),function(e,o,i,s){let l;a&&(l=o[r],o[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(i(n))return!0}a&&(o[r]=l)}}function Qr({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 Zr(e){let t=function(e){let t={};for(let n in e.node)if(Wr.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]=Yr(0,r)}return t}(e),n={},r={},a=Symbol("break-walk"),o=Symbol("skip-node");for(let e in t)Wr.call(t,e)&&null!==t[e]&&(n[e]=Kr(t[e],!1),r[e]=Kr(t[e],!0));let i=Qr(n),s=Qr(r),l=function(e,l){function c(e,t,n){let r=u.call(m,e,t,n);return r===a||r!==o&&!!(d.hasOwnProperty(e.type)&&d[e.type](e,m,c,p)||h.call(m,e,t,n)===a)}let u=$r,h=$r,d=n,p=(e,t,n,r)=>e||c(t,n,r),m={break:a,skip:o,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=Gr(l.enter),h=Gr(l.leave),l.reverse&&(d=r),l.visit)){if(i.hasOwnProperty(l.visit))d=l.reverse?s[l.visit]:i[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=Jr(u,l.visit),h=Jr(h,l.visit)}if(u===$r&&h===$r)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=o,l.find=function(e,t){let n=null;return l(e,(function(e,r,o){if(t.call(this,e,r,o))return n=e,a})),n},l.findLast=function(e,t){let n=null;return l(e,{reverse:!0,enter(e,r,o){if(t.call(this,e,r,o))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 Xr(e){return e}function ea(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+" ",o=e.terms.map((e=>ea(e,t,n,r))).join(a);return e.explicit||n?(r||","===o[0]?"[":"[ ")+o+(r?"]":" ]"):o}(e,t,n,r)+(e.disallowEmpty?"!":"");break;case"Multiplier":return ea(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 ta(e,t){let n=Xr,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)),ea(e,n,r,a)}var na={offset:0,line:1,column:1};function ra(e,t){let n=e&&e.loc&&e.loc[t];return n?"line"in n?aa(n):n:null}function aa({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 oa=function(e,t){let n=pr("SyntaxReferenceError",e+(t?" `"+t+"`":""));return n.reference=t,n},ia=function(e,t,n,r){let a=pr("SyntaxMatchError",e),{css:o,mismatchOffset:i,mismatchLength:s,start:l,end:c}=function(e,t){let n,r,a=e.tokens,o=e.longestMatch,i=o1?(n=ra(s||t,"end")||aa(na,h),r=aa(n)):(n=ra(s,"start")||aa(ra(t,"start")||na,h.slice(0,l)),r=ra(s,"end")||aa(n,h.substr(l,c))),{css:h,mismatchOffset:l,mismatchLength:c,start:n,end:r}}(r,n);return a.rawMessage=e,a.syntax=t?ta(t):"",a.css=o,a.mismatchOffset=i,a.mismatchLength=s,a.message=e+"\n syntax: "+a.syntax+"\n value: "+(o||"")+"\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},sa=new Map,la=new Map,ca=45,ua=function(e){if(sa.has(e))return sa.get(e);let t=e.toLowerCase(),n=sa.get(t);if(void 0===n){let e=pa(t,0),r=e?"":ma(t,0);n=Object.freeze({basename:t.substr(r.length),name:t,prefix:r,vendor:r,custom:e})}return sa.set(e,n),n},ha=function(e){if(la.has(e))return la.get(e);let t=e,n=e[0];"/"===n?n="/"===e[1]?"//":"/":"_"!==n&&"*"!==n&&"$"!==n&&"#"!==n&&"+"!==n&&"&"!==n&&(n="");let r=pa(t,n.length);if(!r&&(t=t.toLowerCase(),la.has(t))){let n=la.get(t);return la.set(e,n),n}let a=r?"":ma(t,n.length),o=t.substr(0,n.length+a.length),i=Object.freeze({basename:t.substr(o.length),name:t.substr(n.length),hack:n,vendor:a,prefix:o,custom:r});return la.set(e,i),i},da=ma;function pa(e,t){return t=t||0,e.length-t>=2&&e.charCodeAt(t)===ca&&e.charCodeAt(t+1)===ca}function ma(e,t){if(t=t||0,e.length-t>=3&&e.charCodeAt(t)===ca&&e.charCodeAt(t+1)!==ca){let n=e.indexOf("-",t+2);if(-1!==n)return e.substring(t,n+1)}return""}var ga=["initial","inherit","unset","revert","revert-layer"],fa=43,ba=45,ya=!0;function wa(e,t){return null!==e&&9===e.type&&e.value.charCodeAt(0)===t}function ka(e,t,n){for(;null!==e&&(13===e.type||25===e.type);)e=n(++t);return t}function va(e,t,n,r){if(!e)return 0;let a=e.value.charCodeAt(t);if(a===fa||a===ba){if(n)return 0;t++}for(;t6)return 0}return r}function Ca(e,t,n){if(!e)return 0;for(;Sa(n(t),Ea);){if(++e>6)return 0;t++}return t}var Ra=["calc(","-moz-calc(","-webkit-calc("],Ia=new Map([[2,22],[21,22],[19,20],[23,24]]);function _a(e,t){return te.max&&"string"!=typeof e.max)return!0}return!1}function Ma(e){return function(t,n,r){return null===t?0:2===t.type&&za(t.value,Ra)?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=Ia.get(e.type)}a++}while(e=t(a));return a}(t,n):e(t,n,r)}}function Ua(e){return function(t){return null===t||t.type!==e?0:1}}function Oa(e){return e&&(e=new Set(e)),function(t,n,r){if(null===t||12!==t.type)return 0;let a=Xn(t.value,0);if(null!==e){let n=t.value.indexOf("\\",a),r=-1!==n&&Na(t.value,n)?t.value.substring(a,n):t.value.substr(a);if(!1===e.has(r.toLowerCase()))return 0}return Pa(r,t.value,a)?0:1}}function Da(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 qa={"ident-token":Ua(1),"function-token":Ua(2),"at-keyword-token":Ua(3),"hash-token":Ua(4),"string-token":Ua(5),"bad-string-token":Ua(6),"url-token":Ua(7),"bad-url-token":Ua(8),"delim-token":Ua(9),"number-token":Ua(10),"percentage-token":Ua(11),"dimension-token":Ua(12),"whitespace-token":Ua(13),"CDO-token":Ua(14),"CDC-token":Ua(15),"colon-token":Ua(16),"semicolon-token":Ua(17),"comma-token":Ua(18),"[-token":Ua(19),"]-token":Ua(20),"(-token":Ua(21),")-token":Ua(22),"{-token":Ua(23),"}-token":Ua(24)},Fa={string:Ua(5),ident:Ua(1),percentage:Ma((function(e,t,n){return null===e||11!==e.type||Pa(n,e.value,e.value.length-1)?0:1})),zero:Da(),number:Ma((function(e,t,n){if(null===e)return 0;let r=Xn(e.value,0);return r!==e.value.length&&!Na(e.value,r)||Pa(n,e.value,r)?0:1})),integer:Ma((function(e,t,n){if(null===e||10!==e.type)return 0;let r=43===_a(e.value,0)||45===_a(e.value,0)?1:0;for(;rVa,decibel:()=>Ya,flex:()=>Ja,frequency:()=>$a,length:()=>Ha,resolution:()=>Ga,semitones:()=>Ka,time:()=>Wa});var Ha=["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"],Va=["deg","grad","rad","turn"],Wa=["s","ms"],$a=["hz","khz"],Ga=["dpi","dpcm","dppx","x"],Ja=["fr"],Ya=["db"],Ka=["st"],Qa={};function Za(e,t,n){return Object.assign(pr("SyntaxError",e),{input:t,offset:n,rawMessage:e,message:e+"\n "+t+"\n--"+new Array((n||t.length)+1).join("-")+"^"})}$t(Qa,{SyntaxError:()=>Za,generate:()=>ta,parse:()=>qo,walk:()=>jo});var Xa=class{constructor(e){this.str=e,this.pos=0}charCodeAt(e){return e/[a-zA-Z0-9\-]/.test(String.fromCharCode(t))?1:0)),Co={" ":1,"&&":2,"||":3,"|":4};function Ro(e){return e.substringToPos(e.findWsEnd(e.pos))}function Io(e){let t=e.pos;for(;t=128||0===To[n])break}return e.pos===t&&e.error("Expect a keyword"),e.substringToPos(t)}function _o(e){let t=e.pos;for(;t57)break}return e.pos===t&&e.error("Expect a number"),e.substringToPos(t)}function Lo(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 zo(e){let t=null,n=null;return e.eat(xo),t=_o(e),e.charCode()===mo?(e.pos++,e.charCode()!==Eo&&(n=_o(e))):n=t,e.eat(Eo),{min:Number(t),max:n?Number(n):0}}function No(e,t){let n=function(e){let t=null,n=!1;switch(e.charCode()){case ho:e.pos++,t={min:0,max:0};break;case po:e.pos++,t={min:1,max:0};break;case yo:e.pos++,t={min:0,max:1};break;case io:e.pos++,n=!0,e.charCode()===xo?t=zo(e):e.charCode()===yo?(e.pos++,t={min:0,max:0}):t={min:1,max:0};break;case xo:t=zo(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()===io&&e.charCodeAt(e.pos-1)===po?No(e,n):n):t}function Po(e){let t=e.peek();return""===t?null:{type:"Token",value:t}}function Mo(e){let t,n=null;return e.eat(fo),t=Io(e),e.charCode()===co&&e.nextCharCode()===uo&&(e.pos+=2,t+="()"),e.charCodeAt(e.findWsEnd(e.pos))===ko&&(Ro(e),n=function(e){let t=null,n=null,r=1;return e.eat(ko),e.charCode()===go&&(e.peek(),r=-1),-1==r&&e.charCode()===So?e.peek():(t=r*Number(_o(e)),0!==To[e.charCode()]&&(t+=Io(e))),Ro(e),e.eat(mo),Ro(e),e.charCode()===So?e.peek():(r=1,e.charCode()===go&&(e.peek(),r=-1),n=r*Number(_o(e)),0!==To[e.charCode()]&&(n+=Io(e))),e.eat(vo),{type:"Range",min:t,max:n}}(e)),e.eat(bo),No(e,{type:"Type",name:t,opts:n})}function Uo(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)=>Co[e]-Co[t]));t.length>0;){r=t.shift();let a=0,o=0;for(;a1&&(e.splice(o,a-o,n(e.slice(o,a),r)),a=o+1),o=-1))}-1!==o&&t.length&&e.splice(o,a-o,n(e.slice(o,a),r))}return r}function Oo(e){let t,n=[],r={},a=null,o=e.pos;for(;t=Do(e);)"Spaces"!==t.type&&("Combinator"===t.type?((null===a||"Combinator"===a.type)&&(e.pos=o,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,o=e.pos);return null!==a&&"Combinator"===a.type&&(e.pos-=o,e.error("Unexpected combinator")),{type:"Group",terms:n,combinator:Uo(n,r)||" ",disallowEmpty:!1,explicit:!1}}function Do(e){let t=e.charCode();if(t<128&&1===To[t])return function(e){let t=Io(e);return e.charCode()===co?(e.pos++,{type:"Function",name:t}):No(e,{type:"Keyword",name:t})}(e);switch(t){case vo:break;case ko:return No(e,function(e){let t;return e.eat(ko),t=Oo(e),e.eat(vo),t.explicit=!0,e.charCode()===oo&&(e.pos++,t.disallowEmpty=!0),t}(e));case fo:return e.nextCharCode()===lo?function(e){let t;return e.eat(fo),e.eat(lo),t=Io(e),e.eat(lo),e.eat(bo),No(e,{type:"Property",name:t})}(e):Mo(e);case Ao:return{type:"Combinator",value:e.substringToPos(e.pos+(e.nextCharCode()===Ao?2:1))};case so:return e.pos++,e.eat(so),{type:"Combinator",value:"&&"};case mo:return e.pos++,{type:"Comma"};case lo:return No(e,{type:"String",value:Lo(e)});case ao:case eo:case to:case ro:case no:return{type:"Spaces",value:Ro(e)};case wo:return t=e.nextCharCode(),t<128&&1===To[t]?(e.pos++,{type:"AtKeyword",name:Io(e)}):Po(e);case ho:case po:case yo:case io:case oo:break;case xo:if(t=e.nextCharCode(),t<48||t>57)return Po(e);break;default:return Po(e)}}function qo(e){let t=new Xa(e),n=Oo(t);return t.pos!==e.length&&t.error("Unexpected input"),1===n.terms.length&&"Group"===n.terms[0].type?n.terms[0]:n}var Fo=function(){};function Bo(e){return"function"==typeof e?e:Fo}function jo(e,t,n){let r=Fo,a=Fo;if("function"==typeof t?r=t:t&&(r=Bo(t.enter),a=Bo(t.leave)),r===Fo&&a===Fo)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 Ho={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 Vo(e,t){return"string"==typeof e?function(e){let t=[];return ur(e,((n,r,a)=>t.push({type:n,value:e.slice(r,a),node:null}))),t}(e):t.generate(e,Ho)}var Wo={type:"Match"},$o={type:"Mismatch"},Go={type:"DisallowEmpty"},Jo=40,Yo=41;function Ko(e,t,n){return t===Wo&&n===$o||e===Wo&&t===Wo&&n===Wo?e:("If"===e.type&&e.else===$o&&t===Wo&&(t=e.then,e=e.match),{type:"If",match:e,then:t,else:n})}function Qo(e){return e.length>2&&e.charCodeAt(e.length-2)===Jo&&e.charCodeAt(e.length-1)===Yo}function Zo(e){return"Keyword"===e.type||"AtKeyword"===e.type||"Function"===e.type||"Type"===e.type&&Qo(e.name)}function Xo(e,t,n){switch(e){case" ":{let e=Wo;for(let n=t.length-1;n>=0;n--){e=Ko(t[n],e,$o)}return e}case"|":{let e=$o,n=null;for(let r=t.length-1;r>=0;r--){let a=t[r];if(Zo(a)&&(null===n&&r>0&&Zo(t[r-1])&&(n=Object.create(null),e=Ko({type:"Enum",map:n},Wo,e)),null!==n)){let e=(Qo(a.name)?a.name.slice(0,-1):a.name).toLowerCase();if(!(e in n)){n[e]=a;continue}}n=null,e=Ko(a,Wo,e)}return e}case"&&":{if(t.length>5)return{type:"MatchOnce",terms:t,all:!0};let n=$o;for(let r=t.length-1;r>=0;r--){let a,o=t[r];a=t.length>1?Xo(e,t.filter((function(e){return e!==o})),!1):Wo,n=Ko(o,a,n)}return n}case"||":{if(t.length>5)return{type:"MatchOnce",terms:t,all:!1};let r=n?Wo:$o;for(let n=t.length-1;n>=0;n--){let a,o=t[n];a=t.length>1?Xo(e,t.filter((function(e){return e!==o})),!0):Wo,r=Ko(o,a,r)}return r}}}function ei(e){if("function"==typeof e)return{type:"Generic",fn:e};switch(e.type){case"Group":{let t=Xo(e.combinator,e.terms.map(ei),!1);return e.disallowEmpty&&(t=Ko(t,Go,$o)),t}case"Multiplier":return function(e){let t=Wo,n=ei(e.term);if(0===e.max)n=Ko(n,Go,$o),t=Ko(n,null,$o),t.then=Ko(Wo,Wo,t),e.comma&&(t.then.else=Ko({type:"Comma",syntax:e},t,$o));else for(let r=e.min||1;r<=e.max;r++)e.comma&&t!==Wo&&(t=Ko({type:"Comma",syntax:e},t,$o)),t=Ko(n,Ko(Wo,Wo,t),$o);if(0===e.min)t=Ko(Wo,Wo,t);else for(let r=0;r=65&&a<=90&&(a|=32),a!==r)return!1}return!0}function di(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 pi(e){return null===e||(22===e.type||20===e.type||24===e.type||9===e.type&&"/"===e.value)}function mi(e,t,n){let r=function(e,t,n){function r(){do{b++,f=by&&(y=b)}function c(){w=w.type===oi?w.prev:{type:ii,syntax:u.syntax,token:w.token,prev:w},u=u.prev}let u=null,h=null,d=null,p=null,m=0,g=null,f=null,b=-1,y=0,w={type:ri,syntax:null,token:null,prev:null};for(r();null===g&&++md.tokenIndex)&&(d=p,p=!1);else if(null===d){g=li;break}t=d.nextState,h=d.thenStack,u=d.syntaxStack,w=d.matchStack,b=d.tokenIndex,f=bb){for(;b":"<'"+t.name+"'>"));if(!1!==p&&null!==f&&"Type"===t.type&&("custom-ident"===t.name&&1===f.type||"length"===t.name&&"0"===f.value)){null===p&&(p=o(t,d)),t=$o;break}u={syntax:t.syntax,opts:t.syntax.opts||null!==u&&u.opts||null,prev:u},w={type:oi,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].*$/,"")),hi(n,e)){l(),t=Wo;break}}t=$o;break}case"AtKeyword":case"Function":if(null!==f&&hi(f.value,t.name)){l(),t=Wo;break}t=$o;break;case"Token":if(null!==f&&f.value===t.value){l(),t=Wo;break}t=$o;break;case"Comma":null!==f&&18===f.type?di(w.token)?t=$o:(l(),t=pi(f)?$o:Wo):t=di(w.token)||pi(f)?Wo:$o;break;case"String":let r="",m=b;for(;m"Type"===e.type&&e.name===t))}function yi(e,t){return ki(this,e,(e=>"Property"===e.type&&e.name===t))}function wi(e){return ki(this,e,(e=>"Keyword"===e.type))}function ki(e,t,n){let r=fi.call(e,t);return null!==r&&r.some(n)}function vi(e){return"node"in e?e.node:vi(e.match[0])}function xi(e){return"node"in e?e.node:xi(e.match[e.match.length-1])}function Ai(e,t,n,r,a){let o=[];return null!==n.matched&&function n(i){if(null!==i.syntax&&i.syntax.type===r&&i.syntax.name===a){let n=vi(i),r=xi(i);e.syntax.walk(t,(function(e,t,a){if(e===n){let e=new dr;do{if(e.appendData(t.data),t.data===r)break;t=t.next}while(null!==t);o.push({parent:a,nodes:e})}}))}Array.isArray(i.match)&&i.match.forEach(n)}(n.matched),o}$t(gi,{getTrace:()=>fi,isKeyword:()=>wi,isProperty:()=>yi,isType:()=>bi});var{hasOwnProperty:Ei}=Object.prototype;function Si(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&e>=0}function Ti(e){return Boolean(e)&&Si(e.offset)&&Si(e.line)&&Si(e.column)}function Ci(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 o=!0;if(!1!==Ei.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(Ti(n.loc.start)){if(Ti(n.loc.end))continue;a+=".end"}else a+=".start";o=!1}else if(t.hasOwnProperty(a)){o=!1;for(let e=0;!o&&e");else{if(!Array.isArray(r))throw new Error("Wrong value `"+r+"` in `"+e+"."+t+"` structure definition");o.push("List")}}a[t]=o.join(" | ")}return{docs:a,check:Ci(e,r)}}var Ii=ti(ga.join(" | "));function _i(e,t,n){let r={};for(let a in e)e[a].syntax&&(r[a]=n?e[a].syntax:ta(e[a].syntax,{compact:t}));return r}function Li(e,t,n){let r={};for(let[a,o]of Object.entries(e))r[a]={prelude:o.prelude&&(n?o.prelude.syntax:ta(o.prelude.syntax,{compact:t})),descriptors:o.descriptors&&_i(o.descriptors,t,n)};return r}function zi(e,t,n){return{matched:e,iterations:n,error:t,...gi}}function Ni(e,t,n,r){let a,o=Vo(n,e.syntax);return function(e){for(let t=0;t(Object.defineProperty(o,"syntax",{value:qo(e)}),o.syntax)}):o.syntax=e,Object.defineProperty(o,"match",{get:()=>(Object.defineProperty(o,"match",{value:ti(o.syntax,a)}),o.match)})),o}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 oa("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||Ni(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=ua(t);return r.descriptors?r.descriptors[a.name]||r.descriptors[a.basename]?void 0:new oa("Unknown at-rule descriptor",t):new SyntaxError("At-rule `@"+e+"` has no known descriptors")}checkPropertyName(e){if(!this.getProperty(e))return new oa("Unknown property",e)}matchAtrulePrelude(e,t){let n=this.checkAtrulePrelude(e,t);if(n)return zi(null,n);let r=this.getAtrule(e);return r.prelude?Ni(this,r.prelude,t||"",!1):zi(null,null)}matchAtruleDescriptor(e,t,n){let r=this.checkAtruleDescriptorName(e,t);if(r)return zi(null,r);let a=this.getAtrule(e),o=ua(t);return Ni(this,a.descriptors[o.name]||a.descriptors[o.basename],n,!1)}matchDeclaration(e){return"Declaration"!==e.type?zi(null,new Error("Not a Declaration node")):this.matchProperty(e.property,e.value)}matchProperty(e,t){if(ha(e).custom)return zi(null,new Error("Lexer matching doesn't applicable for custom properties"));let n=this.checkPropertyName(e);return n?zi(null,n):Ni(this,this.getProperty(e),t,!0)}matchType(e,t){let n=this.getType(e);return n?Ni(this,n,t,!1):zi(null,new oa("Unknown type",e))}match(e,t){return"string"==typeof e||e&&e.type?(("string"==typeof e||!e.match)&&(e=this.createDescriptor(e,"Type","anonymous")),Ni(this,e,t,!1)):zi(null,new oa("Bad syntax"))}findValueFragments(e,t,n,r){return Ai(this,t,this.matchProperty(e,t),n,r)}findDeclarationValueFragments(e,t,n){return Ai(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=ua(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=ha(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,o,i){if(o.has(a))return o.get(a);o.set(a,!1),null!==i.syntax&&jo(i.syntax,(function(i){if("Type"!==i.type&&"Property"!==i.type)return;let s="Type"===i.type?r.types:r.properties,l="Type"===i.type?t:n;(!hasOwnProperty.call(s,i.name)||e(r,i.name,l,s[i.name]))&&o.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:_i(this.types,!t,e),properties:_i(this.properties,!t,e),atrules:Li(this.atrules,!t,e)}}toString(){return JSON.stringify(this.dump())}};function Mi(e,t){return"string"==typeof t&&/^\s*\|/.test(t)?"string"==typeof e?e+t:t.replace(/^\s*\|\s*/,""):t||null}function Ui(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 Oi(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]||{},o=n[r][e]={prelude:a.prelude||null,descriptors:{...a.descriptors}};if(t){o.prelude=t.prelude?Mi(o.prelude,t.prelude):o.prelude||null;for(let[e,n]of Object.entries(t.descriptors||{}))o.descriptors[e]=n?Mi(o.descriptors[e],n):null;Object.keys(o.descriptors).length||(o.descriptors=null)}}break;case"types":case"properties":n[r]={...e[r]};for(let[e,t]of Object.entries(a))n[r][e]=Mi(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],...Ui(a,["parse"])};break;case"node":n[r]={...e[r],...Ui(a,["name","structure","parse","generate","walkContext"])}}return n}function Di(e){let t=Rr(e),n=Zr(e),r=Vr(e),{fromPlainObject:a,toPlainObject:o}=function(e){return{fromPlainObject:t=>(e(t,{enter(e){e.children&&!(e.children instanceof dr)&&(e.children=(new dr).fromArray(e.children))}}),t),toPlainObject:t=>(e(t,{leave(e){e.children&&e.children instanceof dr&&(e.children=e.children.toArray())}}),t)}}(n),i={lexer:null,createLexer:e=>new Pi(e,i,i.lexer.structure),tokenize:ur,parse:t,generate:r,walk:n,find:n.find,findLast:n.findLast,findAll:n.findAll,fromPlainObject:a,toPlainObject:o,fork(t){let n=Oi({},e);return Di("function"==typeof t?t(n,Object.assign):Oi(n,t))}};return i.lexer=new Pi({generic:!0,units:e.units,types:e.types,atrules:e.atrules,properties:e.properties,node:e.node},i),i}var qi=e=>Di(Oi({},e)),Fi={};$t(Fi,{AnPlusB:()=>Bi,Atrule:()=>ts,AtrulePrelude:()=>cs,AttributeSelector:()=>gs,Block:()=>Rs,Brackets:()=>qs,CDC:()=>Vs,CDO:()=>Ys,ClassSelector:()=>el,Combinator:()=>il,Comment:()=>gl,Declaration:()=>xl,DeclarationList:()=>Fl,Dimension:()=>Gl,Function:()=>Zl,Hash:()=>ac,IdSelector:()=>gc,Identifier:()=>uc,MediaFeature:()=>kc,MediaQuery:()=>Sc,MediaQueryList:()=>_c,NestingSelector:()=>Mc,Nth:()=>Bc,Number:()=>$c,Operator:()=>Qc,Parentheses:()=>nu,Percentage:()=>su,PseudoClassSelector:()=>du,PseudoElementSelector:()=>yu,Ratio:()=>Eu,Raw:()=>zu,Rule:()=>Du,Selector:()=>$u,SelectorList:()=>Qu,String:()=>rh,StyleSheet:()=>mh,TypeSelector:()=>xh,UnicodeRange:()=>_h,Url:()=>jh,Value:()=>nd,WhiteSpace:()=>sd});var Bi={};$t(Bi,{generate:()=>es,name:()=>Qi,parse:()=>Xi,structure:()=>Zi});var ji=43,Hi=45,Vi=110,Wi=!0,$i=!1;function Gi(e,t){let n=this.tokenStart+e,r=this.charCodeAt(n);for((r===ji||r===Hi)&&(t&&this.error("Number sign is not allowed"),n++);n0&&this.skip(e),0===t&&(n=this.charCodeAt(this.tokenStart),n!==ji&&n!==Hi&&this.error("Number sign is expected")),Ji.call(this,0!==t),t===Hi?"-"+this.consume(10):this.consume(10)}var Qi="AnPlusB",Zi={a:[String,null],b:[String,null]};function Xi(){let e=this.tokenStart,t=null,n=null;if(10===this.tokenType)Ji.call(this,$i),n=this.consume(10);else if(1===this.tokenType&&this.cmpChar(this.tokenStart,Hi))switch(t="-1",Yi.call(this,1,Vi),this.tokenEnd-this.tokenStart){case 2:this.next(),n=Ki.call(this);break;case 3:Yi.call(this,2,Hi),this.next(),this.skipSC(),Ji.call(this,Wi),n="-"+this.consume(10);break;default:Yi.call(this,2,Hi),Gi.call(this,3,Wi),this.next(),n=this.substrToCursor(e+2)}else if(1===this.tokenType||this.isDelim(ji)&&1===this.lookupType(1)){let r=0;switch(t="1",this.isDelim(ji)&&(r=1,this.next()),Yi.call(this,0,Vi),this.tokenEnd-this.tokenStart){case 1:this.next(),n=Ki.call(this);break;case 2:Yi.call(this,1,Hi),this.next(),this.skipSC(),Ji.call(this,Wi),n="-"+this.consume(10);break;default:Yi.call(this,1,Hi),Gi.call(this,2,Wi),this.next(),n=this.substrToCursor(e+r+1)}}else if(12===this.tokenType){let r=this.charCodeAt(this.tokenStart),a=r===ji||r===Hi,o=this.tokenStart+a;for(;ols,name:()=>as,parse:()=>ss,structure:()=>is,walkContext:()=>os});var as="Atrule",os="atrule",is={name:String,prelude:["AtrulePrelude","Raw",null],block:["Block",null]};function ss(e=!1){let t,n,r=this.tokenStart,a=null,o=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),ns):ns.call(this,this.tokenIndex),this.skipSC()),this.tokenType){case 17:this.next();break;case 23:o=hasOwnProperty.call(this.atrule,n)&&"function"==typeof this.atrule[n].block?this.atrule[n].block.call(this,e):this.Block(rs.call(this))}return{type:"Atrule",loc:this.getLocation(r,this.tokenStart),name:t,prelude:a,block:o}}function ls(e){this.token(3,"@"+e.name),null!==e.prelude&&this.node(e.prelude),e.block?this.node(e.block):this.token(17,";")}var cs={};$t(cs,{generate:()=>ms,name:()=>us,parse:()=>ps,structure:()=>ds,walkContext:()=>hs});var us="AtrulePrelude",hs="atrulePrelude",ds={children:[[]]};function ps(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 ms(e){this.children(e)}var gs={};$t(gs,{generate:()=>Cs,name:()=>Es,parse:()=>Ts,structure:()=>Ss});var fs=36,bs=42,ys=61,ws=94,ks=124,vs=126;function xs(){this.eof&&this.error("Unexpected end of input");let e=this.tokenStart,t=!1;return this.isDelim(bs)?(t=!0,this.next()):this.isDelim(ks)||this.eat(1),this.isDelim(ks)?this.charCodeAt(this.tokenStart+1)!==ys?(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 As(){let e=this.tokenStart,t=this.charCodeAt(e);return t!==ys&&t!==vs&&t!==ws&&t!==fs&&t!==bs&&t!==ks&&this.error("Attribute selector (=, ~=, ^=, $=, *=, |=) is expected"),this.next(),t!==ys&&(this.isDelim(ys)||this.error("Equal sign is expected"),this.next()),this.substrToCursor(e)}var Es="AttributeSelector",Ss={name:"Identifier",matcher:[String,null],value:["String","Identifier",null],flags:[String,null]};function Ts(){let e,t=this.tokenStart,n=null,r=null,a=null;return this.eat(19),this.skipSC(),e=xs.call(this),this.skipSC(),20!==this.tokenType&&(1!==this.tokenType&&(n=As.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 Cs(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 Rs={};$t(Rs,{generate:()=>Ds,name:()=>Ps,parse:()=>Os,structure:()=>Us,walkContext:()=>Ms});var Is=38;function _s(e){return this.Raw(e,null,!0)}function Ls(){return this.parseWithFallback(this.Rule,_s)}function zs(e){return this.Raw(e,this.consumeUntilSemicolonIncluded,!0)}function Ns(){if(17===this.tokenType)return zs.call(this,this.tokenIndex);let e=this.parseWithFallback(this.Declaration,zs);return 17===this.tokenType&&this.next(),e}var Ps="Block",Ms="block",Us={children:[["Atrule","Rule","Declaration"]]};function Os(e){let t=e?Ns:Ls,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),_s));break;default:e&&this.isDelim(Is)?r.push(Ls.call(this)):r.push(t.call(this))}return this.eof||this.eat(24),{type:"Block",loc:this.getLocation(n,this.tokenStart),children:r}}function Ds(e){this.token(23,"{"),this.children(e,(e=>{"Declaration"===e.type&&this.token(17,";")})),this.token(24,"}")}var qs={};$t(qs,{generate:()=>Hs,name:()=>Fs,parse:()=>js,structure:()=>Bs});var Fs="Brackets",Bs={children:[[]]};function js(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 Hs(e){this.token(9,"["),this.children(e),this.token(9,"]")}var Vs={};$t(Vs,{generate:()=>Js,name:()=>Ws,parse:()=>Gs,structure:()=>$s});var Ws="CDC",$s=[];function Gs(){let e=this.tokenStart;return this.eat(15),{type:"CDC",loc:this.getLocation(e,this.tokenStart)}}function Js(){this.token(15,"--\x3e")}var Ys={};$t(Ys,{generate:()=>Xs,name:()=>Ks,parse:()=>Zs,structure:()=>Qs});var Ks="CDO",Qs=[];function Zs(){let e=this.tokenStart;return this.eat(14),{type:"CDO",loc:this.getLocation(e,this.tokenStart)}}function Xs(){this.token(14,"\x3c!--")}var el={};$t(el,{generate:()=>ol,name:()=>nl,parse:()=>al,structure:()=>rl});var tl=46,nl="ClassSelector",rl={name:String};function al(){return this.eatDelim(tl),{type:"ClassSelector",loc:this.getLocation(this.tokenStart-1,this.tokenEnd),name:this.consume(1)}}function ol(e){this.token(9,"."),this.token(1,e.name)}var il={};$t(il,{generate:()=>ml,name:()=>hl,parse:()=>pl,structure:()=>dl});var sl=43,ll=47,cl=62,ul=126,hl="Combinator",dl={name:String};function pl(){let e,t=this.tokenStart;switch(this.tokenType){case 13:e=" ";break;case 9:switch(this.charCodeAt(this.tokenStart)){case cl:case sl:case ul:this.next();break;case ll:this.next(),this.eatIdent("deep"),this.eatDelim(ll);break;default:this.error("Combinator is expected")}e=this.substrToCursor(t)}return{type:"Combinator",loc:this.getLocation(t,this.tokenStart),name:e}}function ml(e){this.tokenize(e.name)}var gl={};$t(gl,{generate:()=>vl,name:()=>yl,parse:()=>kl,structure:()=>wl});var fl=42,bl=47,yl="Comment",wl={value:String};function kl(){let e=this.tokenStart,t=this.tokenEnd;return this.eat(25),t-e+2>=2&&this.charCodeAt(t-2)===fl&&this.charCodeAt(t-1)===bl&&(t-=2),{type:"Comment",loc:this.getLocation(e,this.tokenStart),value:this.substring(e+2,t)}}function vl(e){this.token(25,"/*"+e.value+"*/")}var xl={};$t(xl,{generate:()=>Ol,name:()=>Nl,parse:()=>Ul,structure:()=>Ml,walkContext:()=>Pl});var Al=33,El=35,Sl=36,Tl=38,Cl=42,Rl=43,Il=47;function _l(e){return this.Raw(e,this.consumeUntilExclamationMarkOrSemicolon,!0)}function Ll(e){return this.Raw(e,this.consumeUntilExclamationMarkOrSemicolon,!1)}function zl(){let e=this.tokenIndex,t=this.Value();return"Raw"!==t.type&&!1===this.eof&&17!==this.tokenType&&!1===this.isDelim(Al)&&!1===this.isBalanceEdge(e)&&this.error(),t}var Nl="Declaration",Pl="declaration",Ml={important:[Boolean,String],property:String,value:["Value","Raw"]};function Ul(){let e,t=this.tokenStart,n=this.tokenIndex,r=Dl.call(this),a=pa(r),o=a?this.parseCustomProperty:this.parseValue,i=a?Ll:_l,s=!1;this.skipSC(),this.eat(16);let l=this.tokenIndex;if(a||this.skipSC(),e=o?this.parseWithFallback(zl,i):i.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(Al)&&(s=ql.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 Ol(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 Dl(){let e=this.tokenStart;if(9===this.tokenType)switch(this.charCodeAt(this.tokenStart)){case Cl:case Sl:case Rl:case El:case Tl:this.next();break;case Il:this.next(),this.isDelim(Il)&&this.next()}return 4===this.tokenType?this.eat(4):this.eat(1),this.substrToCursor(e)}function ql(){this.eat(9),this.skipSC();let e=this.consume(1);return"important"===e||e}var Fl={};$t(Fl,{generate:()=>$l,name:()=>Hl,parse:()=>Wl,structure:()=>Vl});var Bl=38;function jl(e){return this.Raw(e,this.consumeUntilSemicolonIncluded,!0)}var Hl="DeclarationList",Vl={children:[["Declaration","Atrule","Rule"]]};function Wl(){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),jl));break;default:this.isDelim(Bl)?e.push(this.parseWithFallback(this.Rule,jl)):e.push(this.parseWithFallback(this.Declaration,jl))}return{type:"DeclarationList",loc:this.getLocationFromList(e),children:e}}function $l(e){this.children(e,(e=>{"Declaration"===e.type&&this.token(17,";")}))}var Gl={};$t(Gl,{generate:()=>Ql,name:()=>Jl,parse:()=>Kl,structure:()=>Yl});var Jl="Dimension",Yl={value:String,unit:String};function Kl(){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 Ql(e){this.token(12,e.value+e.unit)}var Zl={};$t(Zl,{generate:()=>rc,name:()=>Xl,parse:()=>nc,structure:()=>tc,walkContext:()=>ec});var Xl="Function",ec="function",tc={name:String,children:[[]]};function nc(e,t){let n,r=this.tokenStart,a=this.consumeFunctionName(),o=a.toLowerCase();return n=t.hasOwnProperty(o)?t[o].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 rc(e){this.token(2,e.name+"("),this.children(e),this.token(22,")")}var ac={};$t(ac,{generate:()=>cc,name:()=>ic,parse:()=>lc,structure:()=>sc,xxx:()=>oc});var oc="XXX",ic="Hash",sc={value:String};function lc(){let e=this.tokenStart;return this.eat(4),{type:"Hash",loc:this.getLocation(e,this.tokenStart),value:this.substrToCursor(e+1)}}function cc(e){this.token(4,"#"+e.value)}var uc={};$t(uc,{generate:()=>mc,name:()=>hc,parse:()=>pc,structure:()=>dc});var hc="Identifier",dc={name:String};function pc(){return{type:"Identifier",loc:this.getLocation(this.tokenStart,this.tokenEnd),name:this.consume(1)}}function mc(e){this.token(1,e.name)}var gc={};$t(gc,{generate:()=>wc,name:()=>fc,parse:()=>yc,structure:()=>bc});var fc="IdSelector",bc={name:String};function yc(){let e=this.tokenStart;return this.eat(4),{type:"IdSelector",loc:this.getLocation(e,this.tokenStart),name:this.substrToCursor(e+1)}}function wc(e){this.token(9,"#"+e.name)}var kc={};$t(kc,{generate:()=>Ec,name:()=>vc,parse:()=>Ac,structure:()=>xc});var vc="MediaFeature",xc={name:String,value:["Identifier","Number","Dimension","Ratio",null]};function Ac(){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 Ec(e){this.token(21,"("),this.token(1,e.name),null!==e.value&&(this.token(16,":"),this.node(e.value)),this.token(22,")")}var Sc={};$t(Sc,{generate:()=>Ic,name:()=>Tc,parse:()=>Rc,structure:()=>Cc});var Tc="MediaQuery",Cc={children:[["Identifier","MediaFeature","WhiteSpace"]]};function Rc(){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 Ic(e){this.children(e)}var _c={};$t(_c,{generate:()=>Pc,name:()=>Lc,parse:()=>Nc,structure:()=>zc});var Lc="MediaQueryList",zc={children:[["MediaQuery"]]};function Nc(){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 Pc(e){this.children(e,(()=>this.token(18,",")))}var Mc={};$t(Mc,{generate:()=>Fc,name:()=>Oc,parse:()=>qc,structure:()=>Dc});var Uc=38,Oc="NestingSelector",Dc={};function qc(){let e=this.tokenStart;return this.eatDelim(Uc),{type:"NestingSelector",loc:this.getLocation(e,this.tokenStart)}}function Fc(){this.token(9,"&")}var Bc={};$t(Bc,{generate:()=>Wc,name:()=>jc,parse:()=>Vc,structure:()=>Hc});var jc="Nth",Hc={nth:["AnPlusB","Identifier"],selector:["SelectorList",null]};function Vc(){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 Wc(e){this.node(e.nth),null!==e.selector&&(this.token(1,"of"),this.node(e.selector))}var $c={};$t($c,{generate:()=>Kc,name:()=>Gc,parse:()=>Yc,structure:()=>Jc});var Gc="Number",Jc={value:String};function Yc(){return{type:"Number",loc:this.getLocation(this.tokenStart,this.tokenEnd),value:this.consume(10)}}function Kc(e){this.token(10,e.value)}var Qc={};$t(Qc,{generate:()=>tu,name:()=>Zc,parse:()=>eu,structure:()=>Xc});var Zc="Operator",Xc={value:String};function eu(){let e=this.tokenStart;return this.next(),{type:"Operator",loc:this.getLocation(e,this.tokenStart),value:this.substrToCursor(e)}}function tu(e){this.tokenize(e.value)}var nu={};$t(nu,{generate:()=>iu,name:()=>ru,parse:()=>ou,structure:()=>au});var ru="Parentheses",au={children:[[]]};function ou(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 iu(e){this.token(21,"("),this.children(e),this.token(22,")")}var su={};$t(su,{generate:()=>hu,name:()=>lu,parse:()=>uu,structure:()=>cu});var lu="Percentage",cu={value:String};function uu(){return{type:"Percentage",loc:this.getLocation(this.tokenStart,this.tokenEnd),value:this.consumeNumber(11)}}function hu(e){this.token(11,e.value+"%")}var du={};$t(du,{generate:()=>bu,name:()=>pu,parse:()=>fu,structure:()=>gu,walkContext:()=>mu});var pu="PseudoClassSelector",mu="function",gu={name:String,children:[["Raw"],null]};function fu(){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 bu(e){this.token(16,":"),null===e.children?this.token(1,e.name):(this.token(2,e.name+"("),this.children(e),this.token(22,")"))}var yu={};$t(yu,{generate:()=>Au,name:()=>wu,parse:()=>xu,structure:()=>vu,walkContext:()=>ku});var wu="PseudoElementSelector",ku="function",vu={name:String,children:[["Raw"],null]};function xu(){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 Au(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 Eu={};$t(Eu,{generate:()=>Lu,name:()=>Ru,parse:()=>_u,structure:()=>Iu});var Su=47,Tu=46;function Cu(){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}$t(zu,{generate:()=>Ou,name:()=>Pu,parse:()=>Uu,structure:()=>Mu});var Pu="Raw",Mu={value:String};function Uu(e,t,n){let r,a=this.getTokenStart(e);return this.skipUntilBalanced(e,t||this.consumeUntilBalanceEnd),r=n&&this.tokenStart>a?Nu.call(this):this.tokenStart,{type:"Raw",loc:this.getLocation(a,r),value:this.substring(a,r)}}function Ou(e){this.tokenize(e.value)}var Du={};function qu(e){return this.Raw(e,this.consumeUntilLeftCurlyBracket,!0)}function Fu(){let e=this.SelectorList();return"Raw"!==e.type&&!1===this.eof&&23!==this.tokenType&&this.error(),e}$t(Du,{generate:()=>Wu,name:()=>Bu,parse:()=>Vu,structure:()=>Hu,walkContext:()=>ju});var Bu="Rule",ju="rule",Hu={prelude:["SelectorList","Raw"],block:["Block"]};function Vu(){let e,t,n=this.tokenIndex,r=this.tokenStart;return e=this.parseRulePrelude?this.parseWithFallback(Fu,qu):qu.call(this,n),t=this.Block(!0),{type:"Rule",loc:this.getLocation(r,this.tokenStart),prelude:e,block:t}}function Wu(e){this.node(e.prelude),this.node(e.block)}var $u={};$t($u,{generate:()=>Ku,name:()=>Gu,parse:()=>Yu,structure:()=>Ju});var Gu="Selector",Ju={children:[["TypeSelector","IdSelector","ClassSelector","AttributeSelector","PseudoClassSelector","PseudoElementSelector","Combinator","WhiteSpace"]]};function Yu(){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 Ku(e){this.children(e)}var Qu={};$t(Qu,{generate:()=>nh,name:()=>Zu,parse:()=>th,structure:()=>eh,walkContext:()=>Xu});var Zu="SelectorList",Xu="selector",eh={children:[["Selector","Raw"]]};function th(){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 nh(e){this.children(e,(()=>this.token(18,",")))}var rh={};$t(rh,{generate:()=>ph,name:()=>uh,parse:()=>dh,structure:()=>hh});var ah={};$t(ah,{decode:()=>lh,encode:()=>ch});var oh=92,ih=34,sh=39;function lh(e){let t=e.length,n=e.charCodeAt(0),r=n===ih||n===sh?1:0,a=1===r&&t>1&&e.charCodeAt(t-1)===n?t-2:t-1,o="";for(let n=r;n<=a;n++){let r=e.charCodeAt(n);if(r===oh){if(n===a){n!==t-1&&(o=e.substr(n+1));break}if(r=e.charCodeAt(++n),Mn(oh,r)){let t=n-1,r=Qn(e,t);n=r-1,o+=tr(e.substring(t+1,r))}else 13===r&&10===e.charCodeAt(n+1)&&n++}else o+=e[n]}return o}function ch(e,t){let n=t?"'":'"',r=t?sh:ih,a="",o=!1;for(let t=0;tvh,name:()=>bh,parse:()=>kh,structure:()=>wh,walkContext:()=>yh});var gh=33;function fh(e){return this.Raw(e,null,!1)}var bh="StyleSheet",yh="stylesheet",wh={children:[["Comment","CDO","CDC","Atrule","Rule","Raw"]]};function kh(){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)!==gh){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,fh);break;default:e=this.parseWithFallback(this.Rule,fh)}n.push(e)}return{type:"StyleSheet",loc:this.getLocation(t,this.tokenStart),children:n}}function vh(e){this.children(e)}var xh={};$t(xh,{generate:()=>Ih,name:()=>Th,parse:()=>Rh,structure:()=>Ch});var Ah=42,Eh=124;function Sh(){1!==this.tokenType&&!1===this.isDelim(Ah)&&this.error("Identifier or asterisk is expected"),this.next()}var Th="TypeSelector",Ch={name:String};function Rh(){let e=this.tokenStart;return this.isDelim(Eh)?(this.next(),Sh.call(this)):(Sh.call(this),this.isDelim(Eh)&&(this.next(),Sh.call(this))),{type:"TypeSelector",loc:this.getLocation(e,this.tokenStart),name:this.substrToCursor(e)}}function Ih(e){this.tokenize(e.name)}var _h={};$t(_h,{generate:()=>Bh,name:()=>Dh,parse:()=>Fh,structure:()=>qh});var Lh=43,zh=45,Nh=63;function Ph(e,t){let n=0;for(let r=this.tokenStart+e;r6&&this.error("Too many hex digits",r)}return this.next(),n}function Mh(e){let t=0;for(;this.isDelim(Nh);)++t>e&&this.error("Too many question marks"),this.next()}function Uh(e){this.charCodeAt(this.tokenStart)!==e&&this.error((e===Lh?"Plus sign":"Hyphen minus")+" is expected")}function Oh(){let e=0;switch(this.tokenType){case 10:if(e=Ph.call(this,1,!0),this.isDelim(Nh)){Mh.call(this,6-e);break}if(12===this.tokenType||10===this.tokenType){Uh.call(this,zh),Ph.call(this,1,!1);break}break;case 12:e=Ph.call(this,1,!0),e>0&&Mh.call(this,6-e);break;default:if(this.eatDelim(Lh),1===this.tokenType){e=Ph.call(this,0,!0),e>0&&Mh.call(this,6-e);break}if(this.isDelim(Nh)){this.next(),Mh.call(this,5);break}this.error("Hex digit or question mark is expected")}}var Dh="UnicodeRange",qh={value:String};function Fh(){let e=this.tokenStart;return this.eatIdent("u"),Oh.call(this),{type:"UnicodeRange",loc:this.getLocation(e,this.tokenStart),value:this.substrToCursor(e)}}function Bh(e){this.tokenize(e.value)}var jh={};$t(jh,{generate:()=>td,name:()=>Zh,parse:()=>ed,structure:()=>Xh});var Hh={};$t(Hh,{decode:()=>Kh,encode:()=>Qh});var Vh=32,Wh=92,$h=34,Gh=39,Jh=40,Yh=41;function Kh(e){let t=e.length,n=4,r=e.charCodeAt(t-1)===Yh?t-2:t-1,a="";for(;nid,name:()=>rd,parse:()=>od,structure:()=>ad});var rd="Value",ad={children:[[]]};function od(){let e=this.tokenStart,t=this.readSequence(this.scope.Value);return{type:"Value",loc:this.getLocation(e,this.tokenStart),children:t}}function id(e){this.children(e)}var sd={};$t(sd,{generate:()=>dd,name:()=>cd,parse:()=>hd,structure:()=>ud});var ld=Object.freeze({type:"WhiteSpace",loc:null,value:" "}),cd="WhiteSpace",ud={value:String};function hd(){return this.eat(13),ld}function dd(e){this.token(13,e.value)}var pd={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":"