| 1 |
- !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 P(e,t,n){if(!e.querySelector(L)){let r=t.infobarContent?t.infobarContent: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+=N.toString(),n+="("+U.toString()+")(document)",t.textContent=n,i.appendChild(t),o.innerHTML=i.outerHTML}e.body.appendChild(a)}}function N(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;e<r.length-1;e++)t+="\n"+r[e].trim();e=t.trim()}return{saveUrl:o,infobarContent:e,saveDate:t}}}}function M(e,{saveUrl:t,infobarContent:n,saveDate:r}){if(t){const a=e.querySelector("single-file-infobar").shadowRoot;a.querySelector(".infobar-content span").textContent=n||r;a.querySelector(".infobar-content .infobar-link-icon").href=t}}function U(e){const t=N(e);t&&t.saveUrl&&M(e,t)}const O="single-file-on-before-capture",D="single-file-on-after-capture",q="single-file-request-get-adopted-stylesheets",F="single-file-response-get-adopted-stylesheets",j="data-single-file-removed-content",B="data-single-file-hidden-content",H="data-single-file-kept-content",V="data-single-file-hidden-frame",W="data-single-file-preserved-space-element",$="data-single-file-shadow-root-element",J="data-single-file-win-id",G="data-single-file-image",Y="data-single-file-poster",K="data-single-file-video",Q="data-single-file-canvas",Z="data-single-file-movable-style",X="data-single-file-input-value",ee="data-single-file-lazy-loaded-src",te="data-single-file-stylesheet",ne="data-single-file-disabled-noscript",re="data-single-file-selected-content",ae="data-single-file-invalid-element",oe="data-single-file-async-script",ie="*:not(base):not(link):not(meta):not(noscript):not(script):not(style):not(template):not(title)",se=["NOSCRIPT","DISABLED-NOSCRIPT","META","LINK","STYLE","TITLE","TEMPLATE","SOURCE","OBJECT","SCRIPT","HEAD","BODY"],le=/^'(.*?)'$/,ce=/^"(.*?)"$/,ue={regular:"400",normal:"400",bold:"700",bolder:"700",lighter:"100"},he="Page saved with SingleFile",de="Archive processed by SingleFile",pe="single-file-ui-element",me="data:,",ge=(e,t,n)=>globalThis.addEventListener(e,t,n),fe=globalThis.JSON;function be(e){e.querySelectorAll("meta[http-equiv=refresh]").forEach((e=>{e.removeAttribute("http-equiv"),e.setAttribute("disabled-http-equiv","refresh")}))}function ye(e,t,n){e.querySelectorAll("noscript:not(["+ne+"])").forEach((e=>{e.setAttribute(ne,e.textContent),e.textContent=""})),be(e),e.head&&e.head.querySelectorAll(ie).forEach((e=>e.hidden=!0)),e.querySelectorAll("svg foreignObject").forEach((e=>{const t=e.querySelectorAll("html > head > "+ie+", html > body > "+ie);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(ae,""),n.content.appendChild(t.cloneNode(!0)),r.set(t,n),t.replaceWith(n)})),a=we(t,e,e.documentElement,n),n.moveStylesInHead&&e.querySelectorAll("body style, body ~ style").forEach((e=>{const n=ze(t,e);n&&Ee(e,n)&&(e.setAttribute(Z,""),a.markedElements.push(e))}))):a={canvases:[],images:[],posters:[],videos:[],usedFonts:[],shadowRoots:[],markedElements:[]},{canvases:a.canvases,fonts:x(),stylesheets:Te(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}}}function we(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=ze(e,n),n instanceof e.HTMLElement&&r.removeHiddenElements&&(s=(o||n.closest("html > head"))&&se.includes(n.tagName.toUpperCase())||n.closest("details"),s||(i=o||Ee(n,l),i&&(n.setAttribute(B,""),a.markedElements.push(n)))),!i)){if(r.compressHTML&&l){const e=l.getPropertyValue("white-space");e&&e.startsWith("pre")&&(n.setAttribute(W,""),a.markedElements.push(n))}r.removeUnusedFonts&&(ke(l,r,a.usedFonts),ke(ze(e,n,":first-letter"),r,a.usedFonts),ke(ze(e,n,":before"),r,a.usedFonts),ke(ze(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(Q,a.canvases.length-1),a.markedElements.push(n)}catch(e){}if("IMG"==s){const t={currentSrc:o?me:r.loadDeferredImages&&n.getAttribute(ee)||n.currentSrc};if(a.images.push(t),n.setAttribute(G,a.images.length-1),a.markedElements.push(n),n.removeAttribute(ee),i=i||ze(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||ze(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=Ce("padding-left",n),i=Ce("padding-right",n),s=Ce("padding-top",n),l=Ce("padding-bottom",n),p?(c=Ce("border-left-width",n),u=Ce("border-right-width",n),h=Ce("border-top-width",n),d=Ce("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=ze(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(K,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(Y,a.posters.length-1),a.markedElements.push(n)}catch(e){}}}"IFRAME"==s&&o&&r.removeHiddenElements&&(n.setAttribute(V,""),a.markedElements.push(n));"INPUT"==s&&("password"!=n.type&&(n.setAttribute(X,n.value),a.markedElements.push(n)),"radio"!=n.type&&"checkbox"!=n.type||(n.setAttribute(X,n.checked),a.markedElements.push(n)));"TEXTAREA"==s&&(n.setAttribute(X,n.value),a.markedElements.push(n));"SELECT"==s&&n.querySelectorAll("option").forEach((e=>{e.selected&&(e.setAttribute(X,""),a.markedElements.push(e))}));"SCRIPT"==s&&(n.async&&""!=n.getAttribute("async")&&"async"!=n.getAttribute("async")&&(n.setAttribute(oe,""),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)&&ve(n);if(c&&!n.classList.contains(pe)){const o={};n.setAttribute($,a.shadowRoots.length),a.markedElements.push(n),a.shadowRoots.push(o),we(e,t,c,r,a,i),o.content=c.innerHTML,o.mode=c.mode;try{if(c.adoptedStyleSheets)if(c.adoptedStyleSheets.length)o.adoptedStyleSheets=Array.from(c.adoptedStyleSheets).map((e=>Array.from(e.cssRules).map((e=>e.cssText)).join("\n")));else if(void 0===c.adoptedStyleSheets.length){const e=e=>o.adoptedStyleSheets=e.detail.adoptedStyleSheets;n.addEventListener(F,e),n.dispatchEvent(new CustomEvent(q,{options:{bubbles:!0,composed:!0}})),n.removeEventListener(F,e)}}catch(e){}}we(e,t,n,r,a,i),!r.autoSaveExternalSave&&r.removeHiddenElements&&o&&(s||""==n.getAttribute(H)?n.parentElement&&(n.parentElement.setAttribute(H,""),a.markedElements.push(n.parentElement)):i&&(n.setAttribute(j,""),a.markedElements.push(n)))}))}return a}function ke(e,t,n){if(e){const r=e.getPropertyValue("font-style")||"normal";e.getPropertyValue("font-family").split(",").forEach((a=>{if(a=Ae(a),!t.loadedFonts||t.loadedFonts.find((e=>Ae(e.family)==a&&e.style==r))){const t=_e(e.getPropertyValue("font-weight")),o=e.getPropertyValue("font-variant")||"normal",i=[a,t,r,o];n.set(fe.stringify(i),[a,t,r,o])}}))}}function ve(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 xe(e,t,n){return P(e,t,n)}function Ae(e=""){return Ie(I(e.trim())).toLowerCase()}function Ee(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 Se(e,t,n){if(e.querySelectorAll("["+ne+"]").forEach((e=>{e.textContent=e.getAttribute(ne),e.removeAttribute(ne)})),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,V,B,W,G,Y,K,Q,X,$,te,oe];t=e.querySelectorAll(n.map((e=>"["+e+"]")).join(","))}t.forEach((e=>{e.removeAttribute(j),e.removeAttribute(B),e.removeAttribute(H),e.removeAttribute(V),e.removeAttribute(W),e.removeAttribute(G),e.removeAttribute(Y),e.removeAttribute(K),e.removeAttribute(Q),e.removeAttribute(X),e.removeAttribute($),e.removeAttribute(te),e.removeAttribute(oe),e.removeAttribute(Z)})),n&&n.forEach(((e,t)=>e.replaceWith(t)))}function Te(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(te,r),t[r]=Array.from(n.sheet.cssRules).map((e=>e.cssText)).join("\n"))}catch(e){}})),t}}function Ce(e,t){if(t.getPropertyValue(e).endsWith("px"))return parseFloat(t.getPropertyValue(e))}function Re(e){const t=e.doctype;let n="";return t&&(n="<!DOCTYPE "+t.nodeName,t.publicId?(n+=' PUBLIC "'+t.publicId+'"',t.systemId&&(n+=' "'+t.systemId+'"')):t.systemId&&(n+=' SYSTEM "'+t.systemId+'"'),t.internalSubset&&(n+=" ["+t.internalSubset+"]"),n+="> "),n+e.documentElement.outerHTML}function Ie(e){return(e=e.match(le)?e.replace(le,"$1"):e.replace(ce,"$1")).trim()}function _e(e){return ue[e.toLowerCase().trim()]||e}function Le(e){return e.flat?e.flat():e.reduce(((e,t)=>e.concat(Array.isArray(t)?Le(t):t)),[])}function ze(e,t,n){try{return e.getComputedStyle(t,n)}catch(e){}}var Pe=Object.freeze({__proto__:null,initUserScriptHandler:function(){ge("single-file-user-script-init",(()=>globalThis._singleFile_waitForUserScript=async e=>{const t=new CustomEvent(e+"-request",{cancelable:!0}),n=new Promise((t=>ge(e+"-response",t)));(e=>{try{globalThis.dispatchEvent(e)}catch(e){}})(t),t.defaultPrevented&&await n}))},initDoc:be,preProcessDoc:ye,postProcessDoc:Se,serialize:Re,removeQuotes:Ie,flatten:Le,getFontWeight:_e,normalizeFontFamily:Ae,getShadowRoot:ve,appendInfobar:xe,ON_BEFORE_CAPTURE_EVENT_NAME:O,ON_AFTER_CAPTURE_EVENT_NAME:D,WIN_ID_ATTRIBUTE_NAME:J,PRESERVED_SPACE_ELEMENT_ATTRIBUTE_NAME:W,REMOVED_CONTENT_ATTRIBUTE_NAME:j,HIDDEN_CONTENT_ATTRIBUTE_NAME:B,HIDDEN_FRAME_ATTRIBUTE_NAME:V,IMAGE_ATTRIBUTE_NAME:G,POSTER_ATTRIBUTE_NAME:Y,VIDEO_ATTRIBUTE_NAME:K,CANVAS_ATTRIBUTE_NAME:Q,INPUT_VALUE_ATTRIBUTE_NAME:X,SHADOW_ROOT_ATTRIBUTE_NAME:$,STYLE_ATTRIBUTE_NAME:Z,LAZY_SRC_ATTRIBUTE_NAME:ee,STYLESHEET_ATTRIBUTE_NAME:te,SELECTED_CONTENT_ATTRIBUTE_NAME:re,INVALID_ELEMENT_ATTRIBUTE_NAME:ae,ASYNC_SCRIPT_ATTRIBUTE_NAME:oe,COMMENT_HEADER:he,COMMENT_HEADER_LEGACY:de,SINGLE_FILE_UI_ELEMENT_CLASS:pe,EMPTY_RESOURCE:me});const Ne={LAZY_SRC_ATTRIBUTE_NAME:ee,SINGLE_FILE_UI_ELEMENT_CLASS:pe},Me=10,Ue="attributes",Oe=globalThis.browser,De=globalThis.document,qe=globalThis.MutationObserver,Fe=(e,t,n)=>globalThis.addEventListener(e,t,n),je=(e,t,n)=>globalThis.removeEventListener(e,t,n),Be=new Map;let He;async function Ve(e){if(De.documentElement){Be.clear();const t=De.body&&De.body.scrollHeight||De.documentElement.scrollHeight,n=De.body&&De.body.scrollWidth||De.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<r||globalThis.scrollX<a)return function(e){return He=0,new Promise((async t=>{let n;const r=new Set,a=new qe((async t=>{if((t=t.filter((e=>e.type==Ue))).length){t.filter((e=>{if("src"==e.attributeName&&(e.target.setAttribute(Ne.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(Ne.SINGLE_FILE_UI_ELEMENT_CLASS)})).length&&(n=!0,await Je(a,e,c),r.size||await $e(a,e,c))}}));async function o(t){await Ye("idleTimeout",(async()=>{n?He<Me&&(He++,Qe("idleTimeout"),await o(Math.max(500,t/2))):(Qe("loadTimeout"),Qe("maxTimeout"),Ge(a,e,c))}),t,e.loadDeferredImagesNativeTimeout)}function i(e){const t=e.target;t.removeAttribute(Ne.LAZY_SRC_ATTRIBUTE_NAME),t.removeEventListener("load",i)}async function s(t){n=!0,await Je(a,e,c),await $e(a,e,c),t.detail&&r.add(t.detail)}async function l(t){await Je(a,e,c),await $e(a,e,c),r.delete(t.detail),r.size||await $e(a,e,c)}function c(e){a.disconnect(),je(p,s),je(m,l),t(e)}await o(2*e.loadDeferredImagesMaxIdleTime),await Je(a,e,c),a.observe(De,{subtree:!0,childList:!0,attributes:!0}),Fe(p,s),Fe(m,l),A(e)}))}(e)}}}function We(e){S(e)}async function $e(e,t,n){await Ye("loadTimeout",(()=>Ge(e,t,n)),t.loadDeferredImagesMaxIdleTime,t.loadDeferredImagesNativeTimeout)}async function Je(e,t,n){await Ye("maxTimeout",(async()=>{await Qe("loadTimeout"),await Ge(e,t,n)}),10*t.loadDeferredImagesMaxIdleTime,t.loadDeferredImagesNativeTimeout)}async function Ge(e,t,n){await Qe("idleTimeout"),E(t),await Ye("endTimeout",(async()=>{await Qe("maxTimeout"),n()}),t.loadDeferredImagesMaxIdleTime/2,t.loadDeferredImagesNativeTimeout),e.disconnect()}async function Ye(e,t,n,r){if(Oe&&Oe.runtime&&Oe.runtime.sendMessage&&!r){if(!Be.get(e)||!Be.get(e).pending){const r={callback:t,pending:!0};Be.set(e,r);try{await Oe.runtime.sendMessage({method:"singlefile.lazyTimeout.setTimeout",type:e,delay:n})}catch(r){Ke(e,t,n)}r.pending=!1}}else Ke(e,t,n)}function Ke(e,t,n){const r=Be.get(e);r&&globalThis.clearTimeout(r),Be.set(e,t),globalThis.setTimeout(t,n)}async function Qe(e){if(Oe&&Oe.runtime&&Oe.runtime.sendMessage)try{await Oe.runtime.sendMessage({method:"singlefile.lazyTimeout.clearTimeout",type:e})}catch(t){Ze(e)}else Ze(e)}function Ze(e){const t=Be.get(e);Be.delete(e),t&&globalThis.clearTimeout(t)}Oe&&Oe.runtime&&Oe.runtime.onMessage&&Oe.runtime.onMessage.addListener&&Oe.runtime.onMessage.addListener((e=>{if("singlefile.lazyTimeout.onTimeout"==e.method){const t=Be.get(e.type);if(t){Be.delete(e.type);try{t.callback()}catch(t){Ze(e.type)}}}}));var Xe=Object.freeze({__proto__:null,process:Ve,resetZoomLevel:We});const et={ON_BEFORE_CAPTURE_EVENT_NAME:O,ON_AFTER_CAPTURE_EVENT_NAME:D,WIN_ID_ATTRIBUTE_NAME:J,preProcessDoc:ye,serialize:Re,postProcessDoc:Se,getShadowRoot:ve},tt="__frameTree__::",nt='iframe, frame, object[type="text/html"][data]',rt="*",at="singlefile.frameTree.initRequest",ot="singlefile.frameTree.ackInitRequest",it="singlefile.frameTree.cleanupRequest",st="singlefile.frameTree.initResponse",lt="*",ct=5e3,ut=".",ht=globalThis.window==globalThis.top,dt=globalThis.browser,pt=globalThis.top,mt=globalThis.MessageChannel,gt=globalThis.document,ft=globalThis.JSON;let bt,yt=globalThis.sessions;var wt,kt,vt;function xt(){return globalThis.crypto.getRandomValues(new Uint32Array(32)).join("")}async function At(e){const t=e.sessionId,n=globalThis._singleFile_waitForUserScript;delete globalThis._singleFile_cleaningUp,ht||(bt=globalThis.frameId=e.windowId),Tt(gt,e.options,bt,t),ht||(e.options.userScriptEnabled&&n&&await n(et.ON_BEFORE_CAPTURE_EVENT_NAME),_t({frames:[zt(gt,globalThis,bt,e.options,e.scrolling)],sessionId:t,requestedFrameId:gt.documentElement.dataset.requestedFrameId&&bt}),e.options.userScriptEnabled&&n&&await n(et.ON_AFTER_CAPTURE_EVENT_NAME),delete gt.documentElement.dataset.requestedFrameId)}function Et(e){if(!globalThis._singleFile_cleaningUp){globalThis._singleFile_cleaningUp=!0;const t=e.sessionId;It(Pt(gt),e.windowId,t)}}function St(e){e.frames.forEach((t=>Ct("responseTimeouts",e.sessionId,t.windowId)));const t=yt.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)}));t.frames.filter((e=>!e.processed)).length||(t.frames=t.frames.sort(((e,t)=>t.windowId.split(ut).length-e.windowId.split(ut).length)),t.resolve&&(t.requestedFrameId&&t.frames.forEach((e=>{e.windowId==t.requestedFrameId&&(e.requestedFrame=!0)})),t.resolve(t.frames)))}}function Tt(e,t,n,r){const a=Pt(e);!function(e,t,n,r,a){const o=[];let i;yt.get(a)?i=yt.get(a).requestTimeouts:(i={},yt.set(a,{requestTimeouts:i}));t.forEach(((e,t)=>{const n=r+ut+t;e.setAttribute(et.WIN_ID_ATTRIBUTE_NAME,n),o.push({windowId:n})})),_t({frames:o,sessionId:a,requestedFrameId:e.documentElement.dataset.requestedFrameId&&r}),t.forEach(((e,t)=>{const o=r+ut+t;try{Lt(e.contentWindow,{method:at,windowId:o,sessionId:a,options:n,scrolling:e.scrolling})}catch(e){}i[o]=globalThis.setTimeout((()=>_t({frames:[{windowId:o,processed:!0}],sessionId:a})),ct)})),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+ut+t;let s;try{s=e.contentDocument}catch(e){}if(s)try{const t=e.contentWindow;t.stop(),Ct("requestTimeouts",a,i),Tt(s,n,i,a),o.push(zt(s,t,i,n,e.scrolling))}catch(e){o.push({windowId:i,processed:!0})}})),_t({frames:o,sessionId:a,requestedFrameId:e.documentElement.dataset.requestedFrameId&&r}),delete e.documentElement.dataset.requestedFrameId}(e,a,t,n,r)}function Ct(e,t,n){const r=yt.get(t);if(r&&r[e]){const t=r[e][n];t&&(globalThis.clearTimeout(t),delete r[e][n])}}function Rt(e,t){const n=yt.get(e);n&&n.responseTimeouts&&(n.responseTimeouts[t]=globalThis.setTimeout((()=>_t({frames:[{windowId:t,processed:!0}],sessionId:e})),1e4))}function It(e,t,n){e.forEach(((e,r)=>{const a=t+ut+r;e.removeAttribute(et.WIN_ID_ATTRIBUTE_NAME);try{Lt(e.contentWindow,{method:it,windowId:a,sessionId:n})}catch(e){}})),e.forEach(((e,r)=>{const a=t+ut+r;let o;try{o=e.contentDocument}catch(e){}if(o)try{It(Pt(o),a,n)}catch(e){}}))}function _t(e){e.method=st;try{pt.singlefile.processors.frameTree.initResponse(e)}catch(t){Lt(pt,e,!0)}}function Lt(e,t,n){if(e==pt&&dt&&dt.runtime&&dt.runtime.sendMessage)dt.runtime.sendMessage(t);else if(n){const n=new mt;e.postMessage(tt+ft.stringify({method:t.method,sessionId:t.sessionId}),lt,[n.port2]),n.port1.postMessage(t)}else e.postMessage(tt+ft.stringify(t),lt)}function zt(e,t,n,r,a){const o=et.preProcessDoc(e,t,r),i=et.serialize(e);et.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,processed:!0}}function Pt(e){let t=Array.from(e.querySelectorAll(nt));return e.querySelectorAll(rt).forEach((e=>{const n=et.getShadowRoot(e);n&&(t=t.concat(...n.querySelectorAll(nt)))})),t}yt||(yt=globalThis.sessions=new Map),ht&&(bt="0",dt&&dt.runtime&&dt.runtime.onMessage&&dt.runtime.onMessage.addListener&&dt.runtime.onMessage.addListener((e=>e.method==st?(St(e),Promise.resolve({})):e.method==ot?(Ct("requestTimeouts",e.sessionId,e.windowId),Rt(e.sessionId,e.windowId),Promise.resolve({})):void 0))),wt="message",kt=async e=>{if("string"==typeof e.data&&e.data.startsWith(tt)){e.preventDefault(),e.stopPropagation();const t=ft.parse(e.data.substring(tt.length));t.method==at?(e.source&&Lt(e.source,{method:ot,windowId:t.windowId,sessionId:t.sessionId}),ht||(globalThis.stop(),t.options.loadDeferredImages&&Ve(t.options),await At(t))):t.method==ot?(Ct("requestTimeouts",t.sessionId,t.windowId),Rt(t.sessionId,t.windowId)):t.method==it?Et(t):t.method==st&&yt.get(t.sessionId)&&(e.ports[0].onmessage=e=>St(e.data))}},vt=!0,globalThis.addEventListener(wt,kt,vt);var Nt=Object.freeze({__proto__:null,getAsync:function(e){const t=xt();return e=ft.parse(ft.stringify(e)),new Promise((n=>{yt.set(t,{frames:[],requestTimeouts:{},responseTimeouts:{},resolve:e=>{e.sessionId=t,n(e)}}),At({windowId:bt,sessionId:t,options:e})}))},getSync:function(e){const t=xt();e=ft.parse(ft.stringify(e)),yt.set(t,{frames:[],requestTimeouts:{},responseTimeouts:{}}),function(e){const t=e.sessionId,n=globalThis._singleFile_waitForUserScript;delete globalThis._singleFile_cleaningUp,ht||(bt=globalThis.frameId=e.windowId);Tt(gt,e.options,bt,t),ht||(e.options.userScriptEnabled&&n&&n(et.ON_BEFORE_CAPTURE_EVENT_NAME),_t({frames:[zt(gt,globalThis,bt,e.options,e.scrolling)],sessionId:t,requestedFrameId:gt.documentElement.dataset.requestedFrameId&&bt}),e.options.userScriptEnabled&&n&&n(et.ON_AFTER_CAPTURE_EVENT_NAME),delete gt.documentElement.dataset.requestedFrameId)}({windowId:bt,sessionId:t,options:e});const n=yt.get(t).frames;return n.sessionId=t,n},cleanup:function(e){yt.delete(e),Et({windowId:bt,sessionId:e,options:{sessionId:e}})},initResponse:St,TIMEOUT_INIT_REQUEST_MESSAGE:ct}),Mt=Object.freeze({__proto__:null,frameTree:Nt,hooksFrames:T,lazy:Xe}),Ut=Object.create,Ot=Object.defineProperty,Dt=Object.getOwnPropertyDescriptor,qt=Object.getOwnPropertyNames,Ft=Object.getPrototypeOf,jt=Object.prototype.hasOwnProperty,Bt=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Ht=(e,t)=>{for(var n in t)Ot(e,n,{get:t[n],enumerable:!0})},Vt=Bt((e=>{var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");e.encode=function(e){if(0<=e&&e<t.length)return t[e];throw new TypeError("Must be between 0 and 63: "+e)},e.decode=function(e){return 65<=e&&e<=90?e-65:97<=e&&e<=122?e-97+26:48<=e&&e<=57?e-48+52:43==e?62:47==e?63:-1}})),Wt=Bt((e=>{var t=Vt();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)<<l,l+=5}while(a);r.value=function(e){var t=e>>1;return 1==(1&e)?-t:t}(s),r.rest=n}})),$t=Bt((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<n.length&&"/"===n[c];)c++}var u,h=0;for(c=s.length-1;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;t<i.length;t++)if(i[t].input===e){var n=i[0];return i[0]=i[t],i[t]=n,i[0].result}var r=o(e);return i.unshift({input:e,result:r}),i.length>32&&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)}})),Jt=Bt((e=>{var t=$t(),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<o;r++)n.add(e[r],t);return n},a.prototype.size=function(){return r?this._set.size:Object.getOwnPropertyNames(this._set).length},a.prototype.add=function(e,a){var o=r?e:t.toSetString(e),i=r?this.has(e):n.call(this._set,o),s=this._array.length;(!i||a)&&this._array.push(e),i||(r?this._set.set(e,s):this._set[o]=s)},a.prototype.has=function(e){if(r)return this._set.has(e);var a=t.toSetString(e);return n.call(this._set,a)},a.prototype.indexOf=function(e){if(r){var a=this._set.get(e);if(a>=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<this._array.length)return this._array[e];throw new Error("No element indexed by "+e)},a.prototype.toArray=function(){return this._array.slice()},e.ArraySet=a})),Gt=Bt((e=>{var t=$t();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})),Yt=Bt((e=>{var t=Wt(),n=$t(),r=Jt().ArraySet,a=Gt().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;m<g;m++){if(e="",(r=p[m]).generatedLine!==s)for(i=0;r.generatedLine!==s;)e+=";",s++;else if(m>0){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})),Kt={};Ht(Kt,{AtKeyword:()=>en,BadString:()=>rn,BadUrl:()=>on,CDC:()=>pn,CDO:()=>dn,Colon:()=>mn,Comma:()=>fn,Comment:()=>An,Delim:()=>sn,Dimension:()=>un,EOF:()=>Qt,Function:()=>Xt,Hash:()=>tn,Ident:()=>Zt,LeftCurlyBracket:()=>vn,LeftParenthesis:()=>wn,LeftSquareBracket:()=>bn,Number:()=>ln,Percentage:()=>cn,RightCurlyBracket:()=>xn,RightParenthesis:()=>kn,RightSquareBracket:()=>yn,Semicolon:()=>gn,String:()=>nn,Url:()=>an,WhiteSpace:()=>hn});var Qt=0,Zt=1,Xt=2,en=3,tn=4,nn=5,rn=6,an=7,on=8,sn=9,ln=10,cn=11,un=12,hn=13,dn=14,pn=15,mn=16,gn=17,fn=18,bn=19,yn=20,wn=21,kn=22,vn=23,xn=24,An=25;function En(e){return e>=48&&e<=57}function Sn(e){return En(e)||e>=65&&e<=70||e>=97&&e<=102}function Tn(e){return e>=65&&e<=90}function Cn(e){return function(e){return Tn(e)||function(e){return e>=97&&e<=122}(e)}(e)||function(e){return e>=128}(e)||95===e}function Rn(e){return Cn(e)||En(e)||45===e}function In(e){return e>=0&&e<=8||11===e||e>=14&&e<=31||127===e}function _n(e){return 10===e||13===e||12===e}function Ln(e){return _n(e)||32===e||9===e}function zn(e,t){return!(92!==e||_n(t)||0===t)}function Pn(e,t,n){return 45===e?Cn(t)||45===t||zn(t,n):!!Cn(e)||92===e&&zn(e,t)}function Nn(e,t,n){return 43===e||45===e?En(t)?2:46===t&&En(n)?3:0:46===e?En(t)?2:0:En(e)?1:0}function Mn(e){return 65279===e||65534===e?1:0}var Un=new Array(128),On=130,Dn=131,qn=132,Fn=133;for(let e=0;e<Un.length;e++)Un[e]=Ln(e)&&On||En(e)&&Dn||Cn(e)&&qn||In(e)&&Fn||e||128;function jn(e){return e<128?Un[e]:qn}function Bn(e,t){return t<e.length?e.charCodeAt(t):0}function Hn(e,t,n){return 13===n&&10===Bn(e,t+1)?2:1}function Vn(e,t,n){let r=e.charCodeAt(t);return Tn(r)&&(r|=32),r===n}function Wn(e,t,n,r){if(n-t!==r.length||t<0||n>e.length)return!1;for(let a=t;a<n;a++){let n=r.charCodeAt(a-t),o=e.charCodeAt(a);if(Tn(o)&&(o|=32),o!==n)return!1}return!0}function $n(e,t){for(;t<e.length&&Ln(e.charCodeAt(t));t++);return t}function Jn(e,t){for(;t<e.length&&En(e.charCodeAt(t));t++);return t}function Gn(e,t){if(Sn(Bn(e,(t+=2)-1))){for(let n=Math.min(e.length,t+5);t<n&&Sn(Bn(e,t));t++);let n=Bn(e,t);Ln(n)&&(t+=Hn(e,t,n))}return t}function Yn(e,t){for(;t<e.length;t++){let n=e.charCodeAt(t);if(!Rn(n)){if(zn(n,Bn(e,t+1))){t=Gn(e,t)-1;continue}break}}return t}function Kn(e,t){let n=e.charCodeAt(t);if((43===n||45===n)&&(n=e.charCodeAt(t+=1)),En(n)&&(t=Jn(e,t+1),n=e.charCodeAt(t)),46===n&&En(e.charCodeAt(t+1))&&(t=Jn(e,t+=2)),Vn(e,t,101)){let r=0;n=e.charCodeAt(t+1),(45===n||43===n)&&(r=1,n=e.charCodeAt(t+2)),En(n)&&(t=Jn(e,t+1+r+1))}return t}function Qn(e,t){for(;t<e.length;t++){let n=e.charCodeAt(t);if(41===n){t++;break}zn(n,Bn(e,t+1))&&(t=Gn(e,t))}return t}function Zn(e){if(1===e.length&&!Sn(e.charCodeAt(0)))return e[0];let t=parseInt(e,16);return(0===t||t>=55296&&t<=57343||t>1114111)&&(t=65533),String.fromCodePoint(t)}var Xn=["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 er(e=null,t){return null===e||e.length<t?new Uint32Array(Math.max(t+1024,16384)):e}function tr(e){let t=e.source,n=t.length,r=t.length>0?Mn(t.charCodeAt(0)):0,a=er(e.lines,n),o=er(e.columns,n),i=e.startLine,s=e.startColumn;for(let e=r;e<n;e++){let r=t.charCodeAt(e);a[e]=i,o[e]=s++,(10===r||13===r||12===r)&&(13===r&&e+1<n&&10===t.charCodeAt(e+1)&&(e++,a[e]=i,o[e]=s),i++,s=1)}a[n]=i,o[n]=s,e.lines=a,e.columns=o,e.computed=!0}var nr=class{constructor(){this.lines=null,this.columns=null,this.computed=!1}setSource(e,t=0,n=1,r=1){this.source=e,this.startOffset=t,this.startLine=n,this.startColumn=r,this.computed=!1}getLocation(e,t){return this.computed||tr(this),{source:t,offset:this.startOffset+e,line:this.lines[e],column:this.columns[e]}}getLocationRange(e,t,n){return this.computed||tr(this),{source:n,start:{offset:this.startOffset+e,line:this.lines[e],column:this.columns[e]},end:{offset:this.startOffset+t,line:this.lines[t],column:this.columns[t]}}}},rr=16777215,ar=24,or=new Map([[2,22],[21,22],[19,20],[23,24]]),ir=class{constructor(e,t){this.setSource(e,t)}reset(){this.eof=!1,this.tokenIndex=-1,this.tokenType=0,this.tokenStart=this.firstCharOffset,this.tokenEnd=this.firstCharOffset}setSource(e="",t=(()=>{})){let n=(e=String(e||"")).length,r=er(this.offsetAndType,e.length+1),a=er(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&rr;for(s=a[e],i=s>>ar,a[o]=e,a[e++]=o;e<o;e++)a[e]===n&&(a[e]=o);break}case 21:case 2:case 19:case 23:a[o]=s,i=or.get(e),s=i<<ar|o}r[o++]=e<<ar|c,-1===l&&(l=t)})),r[o]=0|n,a[o]=n,a[n]=n;0!==s;){let e=s&rr;s=a[e],a[e]=n}this.source=e,this.firstCharOffset=-1===l?0:l,this.tokenCount=o,this.offsetAndType=r,this.balance=a,this.reset(),this.next()}lookupType(e){return(e+=this.tokenIndex)<this.tokenCount?this.offsetAndType[e]>>ar:0}lookupOffset(e){return(e+=this.tokenIndex)<this.tokenCount?this.offsetAndType[e-1]&rr:this.source.length}lookupValue(e,t){return(e+=this.tokenIndex)<this.tokenCount&&Wn(this.source,this.offsetAndType[e-1]&rr,this.offsetAndType[e]&rr,t)}getTokenStart(e){return e===this.tokenIndex?this.tokenStart:e>0?e<this.tokenCount?this.offsetAndType[e-1]&rr:this.offsetAndType[this.tokenCount]&rr:this.firstCharOffset}substrToCursor(e){return this.source.substring(e,this.tokenStart)}isBalanceEdge(e){return this.balance[this.tokenIndex]<e}isDelim(e,t){return t?9===this.lookupType(t)&&this.source.charCodeAt(this.lookupOffset(t))===e:9===this.tokenType&&this.source.charCodeAt(this.tokenStart)===e}skip(e){let t=this.tokenIndex+e;t<this.tokenCount?(this.tokenIndex=t,this.tokenStart=this.offsetAndType[t-1]&rr,t=this.offsetAndType[t],this.tokenType=t>>ar,this.tokenEnd=t&rr):(this.tokenIndex=this.tokenCount,this.next())}next(){let e=this.tokenIndex+1;e<this.tokenCount?(this.tokenIndex=e,this.tokenStart=this.tokenEnd,e=this.offsetAndType[e],this.tokenType=e>>ar,this.tokenEnd=e&rr):(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(;a<this.tokenCount&&(n=this.balance[a],!(n<e));a++)switch(r=a>0?this.offsetAndType[a-1]&rr: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<this.tokenCount;t++){let r=n,a=this.offsetAndType[t],o=a&rr;n=o,e(a>>ar,r,o,t)}}dump(){let e=new Array(this.tokenCount);return this.forEachToken(((t,n,r,a)=>{e[a]={idx:a,type:Xn[t],chunk:this.source.substring(n,r),balance:this.balance[a]}})),e}};function sr(e,t){function n(t){return t<s?e.charCodeAt(t):0}function r(){return c=Kn(e,c),Pn(n(c),n(c+1),n(c+2))?(i=12,void(c=Yn(e,c))):37===n(c)?(i=11,void c++):void(i=10)}function a(){let t=c;return c=Yn(e,c),Wn(e,t,c,"url")&&40===n(c)?(c=$n(e,c+1),34===n(c)||39===n(c)?(i=2,void(c=t+4)):void function(){for(i=7,c=$n(e,c);c<e.length;c++){let t=e.charCodeAt(c);switch(jn(t)){case 41:return void c++;case On:return c=$n(e,c),41===n(c)||c>=e.length?void(c<e.length&&c++):(c=Qn(e,c),void(i=8));case 34:case 39:case 40:case Fn:return c=Qn(e,c),void(i=8);case 92:if(zn(t,n(c+1))){c=Gn(e,c)-1;break}return c=Qn(e,c),void(i=8)}}}()):40===n(c)?(i=2,void c++):void(i=1)}function o(t){for(t||(t=n(c++)),i=5;c<e.length;c++){let r=e.charCodeAt(c);switch(jn(r)){case t:return void c++;case On:if(_n(r))return c+=Hn(e,c,r),void(i=6);break;case 92:if(c===e.length-1)break;let a=n(c+1);_n(a)?c+=Hn(e,c+1,a):zn(r,a)&&(c=Gn(e,c)-1)}}}let i,s=(e=String(e||"")).length,l=Mn(n(0)),c=l;for(;c<s;){let s=e.charCodeAt(c);switch(jn(s)){case On:i=13,c=$n(e,c+1);break;case 34:o();break;case 35:Rn(n(c+1))||zn(n(c+1),n(c+2))?(i=4,c=Yn(e,c+1)):(i=9,c++);break;case 39:o();break;case 40:i=21,c++;break;case 41:i=22,c++;break;case 43:Nn(s,n(c+1),n(c+2))?r():(i=9,c++);break;case 44:i=18,c++;break;case 45:Nn(s,n(c+1),n(c+2))?r():45===n(c+1)&&62===n(c+2)?(i=15,c+=3):Pn(s,n(c+1),n(c+2))?a():(i=9,c++);break;case 46:Nn(s,n(c+1),n(c+2))?r():(i=9,c++);break;case 47:42===n(c+1)?(i=25,c=e.indexOf("*/",c+2),c=-1===c?e.length:c+2):(i=9,c++);break;case 58:i=16,c++;break;case 59:i=17,c++;break;case 60:33===n(c+1)&&45===n(c+2)&&45===n(c+3)?(i=14,c+=4):(i=9,c++);break;case 64:Pn(n(c+1),n(c+2),n(c+3))?(i=3,c=Yn(e,c+1)):(i=9,c++);break;case 91:i=19,c++;break;case 92:zn(s,n(c+1))?a():(i=9,c++);break;case 93:i=20,c++;break;case 123:i=23,c++;break;case 125:i=24,c++;break;case Dn:r();break;case qn:a();break;default:i=9,c++}t(i,l,l=c)}}var lr=null,cr=class{static createItem(e){return{prev:null,next:null,data:e}}constructor(){this.head=null,this.tail=null,this.cursor=null}createItem(e){return cr.createItem(e)}allocateCursor(e,t){let n;return null!==lr?(n=lr,lr=lr.cursor,n.prev=e,n.next=t,n.cursor=this.cursor):n={prev:e,next:t,cursor:this.cursor},this.cursor=n,n}releaseCursor(){let{cursor:e}=this;this.cursor=e.cursor,e.prev=null,e.next=null,e.cursor=lr,lr=e}updateCursors(e,t,n,r){let{cursor:a}=this;for(;null!==a;)a.prev===e&&(a.prev=t),a.next===n&&(a.next=r),a=a.cursor}*[Symbol.iterator](){for(let e=this.head;null!==e;e=e.next)yield e.data}get size(){let e=0;for(let t=this.head;null!==t;t=t.next)e++;return e}get isEmpty(){return null===this.head}get first(){return this.head&&this.head.data}get last(){return this.tail&&this.tail.data}fromArray(e){let t=null;this.head=null;for(let n of e){let e=cr.createItem(n);null!==t?t.next=e:this.head=e,e.prev=t,t=e}return this.tail=t,this}toArray(){return[...this]}toJSON(){return[...this]}forEach(e,t=this){let n=this.allocateCursor(null,this.head);for(;null!==n.next;){let r=n.next;n.next=r.next,e.call(t,r.data,r,this)}this.releaseCursor()}forEachRight(e,t=this){let n=this.allocateCursor(this.tail,null);for(;null!==n.prev;){let r=n.prev;n.prev=r.prev,e.call(t,r.data,r,this)}this.releaseCursor()}reduce(e,t,n=this){let r,a=this.allocateCursor(null,this.head),o=t;for(;null!==a.next;)r=a.next,a.next=r.next,o=e.call(n,o,r.data,r,this);return this.releaseCursor(),o}reduceRight(e,t,n=this){let r,a=this.allocateCursor(this.tail,null),o=t;for(;null!==a.prev;)r=a.prev,a.prev=r.prev,o=e.call(n,o,r.data,r,this);return this.releaseCursor(),o}some(e,t=this){for(let n=this.head;null!==n;n=n.next)if(e.call(t,n.data,n,this))return!0;return!1}map(e,t=this){let n=new cr;for(let r=this.head;null!==r;r=r.next)n.appendData(e.call(t,r.data,r,this));return n}filter(e,t=this){let n=new cr;for(let r=this.head;null!==r;r=r.next)e.call(t,r.data,r,this)&&n.appendData(r.data);return n}nextUntil(e,t,n=this){if(null===e)return;let r=this.allocateCursor(null,e);for(;null!==r.next;){let e=r.next;if(r.next=e.next,t.call(n,e.data,e,this))break}this.releaseCursor()}prevUntil(e,t,n=this){if(null===e)return;let r=this.allocateCursor(e,null);for(;null!==r.prev;){let e=r.prev;if(r.prev=e.prev,t.call(n,e.data,e,this))break}this.releaseCursor()}clear(){this.head=null,this.tail=null}copy(){let e=new cr;for(let t of this)e.appendData(t);return e}prepend(e){return this.updateCursors(null,e,this.head,e),null!==this.head?(this.head.prev=e,e.next=this.head):this.tail=e,this.head=e,this}prependData(e){return this.prepend(cr.createItem(e))}append(e){return this.insert(e)}appendData(e){return this.insert(cr.createItem(e))}insert(e,t=null){if(null!==t)if(this.updateCursors(t.prev,e,t,e),null===t.prev){if(this.head!==t)throw new Error("before doesn't belong to list");this.head=e,t.prev=e,e.next=t,this.updateCursors(null,e)}else t.prev.next=e,e.prev=t.prev,t.prev=e,e.next=t;else this.updateCursors(this.tail,e,null,e),null!==this.tail?(this.tail.next=e,e.prev=this.tail):this.head=e,this.tail=e;return this}insertData(e,t){return this.insert(cr.createItem(e),t)}remove(e){if(this.updateCursors(e,e.prev,e,e.next),null!==e.prev)e.prev.next=e.next;else{if(this.head!==e)throw new Error("item doesn't belong to list");this.head=e.next}if(null!==e.next)e.next.prev=e.prev;else{if(this.tail!==e)throw new Error("item doesn't belong to list");this.tail=e.prev}return e.prev=null,e.next=null,e}push(e){this.insert(cr.createItem(e))}pop(){return null!==this.tail?this.remove(this.tail):null}unshift(e){this.prepend(cr.createItem(e))}shift(){return null!==this.head?this.remove(this.head):null}prependList(e){return this.insertList(e,this.head)}appendList(e){return this.insertList(e)}insertList(e,t){return null===e.head||(null!=t?(this.updateCursors(t.prev,e.tail,t,e.head),null!==t.prev?(t.prev.next=e.head,e.head.prev=t.prev):this.head=e.head,t.prev=e.tail,e.tail.next=t):(this.updateCursors(this.tail,e.tail,null,e.head),null!==this.tail?(this.tail.next=e.head,e.head.prev=this.tail):this.head=e.head,this.tail=e.tail),e.head=null,e.tail=null),this}replace(e,t){"head"in t?this.insertList(t,e):this.insert(t,e),this.remove(e)}};function ur(e,t){let n=Object.create(SyntaxError.prototype),r=new Error;return Object.assign(n,{name:e,message:t,get stack(){return(r.stack||"").replace(/^(.+\n){1,3}/,`${e}: ${t}\n`)}})}var hr=100,dr=60,pr=" ";function mr({source:e,line:t,column:n},r){function a(e,t){return o.slice(e,t).map(((t,n)=>String(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+=(pr.length-1)*(o[t-1].substr(0,n-1).match(/\t/g)||[]).length)>hr&&(c=n-dr+3,n=dr-2);for(let e=i;e<=s;e++)e>=0&&e<o.length&&(o[e]=o[e].replace(/\t/g,pr),o[e]=(c>0&&o[e].length>c?"…":"")+o[e].substr(c,hr-2)+(o[e].length>c+hr-1?"…":""));return[a(i,t),new Array(n+l+2).join("-")+"^",a(t,s)].filter(Boolean).join("\n")}function gr(e,t,n,r,a){return Object.assign(ur("SyntaxError",e),{source:t,offset:n,line:r,column:a,sourceFragment:e=>mr({source:t,line:r,column:a},isNaN(e)?0:e),get formattedMessage(){return`Parse error: ${e}\n`+mr({source:t,line:r,column:a},2)}})}function fr(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 br=()=>{},yr=33,wr=35,kr=59,vr=123,xr=0;function Ar(e){return function(){return this[e]()}}function Er(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 Sr(e){let t="",n="<unknown>",r=!1,a=br,o=!1,i=new nr,s=Object.assign(new ir,function(e){let t={context:Object.create(null),scope:Object.assign(Object.create(null),e.scope),atrule:Er(e.atrule),pseudo:Er(e.pseudo),node:Er(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]=Ar(e.parseContext[n])}return{config:t,...t,...t.node}}(e||{}),{parseAtrulePrelude:!0,parseRulePrelude:!0,parseValue:!0,parseCustomProperty:!1,readSequence:fr,consumeUntilBalanceEnd:()=>0,consumeUntilLeftCurlyBracket:e=>e===vr?1:0,consumeUntilLeftCurlyBracketOrSemicolon:e=>e===vr||e===kr?1:0,consumeUntilExclamationMarkOrSemicolon:e=>e===yr||e===kr?1:0,consumeUntilSemicolonIncluded:e=>e===kr?2:0,createList:()=>new cr,createSingleNodeList:e=>(new cr).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!==xr);return xr},charCodeAt:e=>e>=0&&e<t.length?t.charCodeAt(e):0,substring:(e,n)=>t.substring(e,n),substrToCursor(e){return this.source.substring(e,this.tokenStart)},cmpChar:(e,n)=>Vn(t,e,n),cmpStr:(e,n,r)=>Wn(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,Kn(t,this.tokenStart));return this.eat(e),n},eat(e){if(this.tokenType!==e){let t=Xn[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(wr)&&(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<t.length?i.getLocation(n):this.eof?i.getLocation(function(e,t){for(;t>=0&&Ln(e.charCodeAt(t));t--);return t+1}(t,t.length-1)):i.getLocation(this.tokenStart);throw new gr(e||"Unexpected input",t,r.offset,r.line,r.column)}});return Object.assign((function(e,l){t=e,l=l||{},s.setSource(t,sr),i.setSource(t,l.offset,l.line,l.column),n=l.filename||"<unknown>",r=Boolean(l.positions),a="function"==typeof l.onParseError?l.onParseError:br,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=Wn(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:gr,config:s.config})}var Tr,Cr,Rr,Ir=(Tr=Yt(),Cr=1,Rr=null!=Tr?Ut(Ft(Tr)):{},((e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let a of qt(t))!jt.call(e,a)&&a!==n&&Ot(e,a,{get:()=>t[a],enumerable:!(r=Dt(t,a))||r.enumerable});return e})(!Cr&&Tr&&Tr.__esModule?Rr:Ot(Rr,"default",{value:Tr,enumerable:!0}),Tr)),_r=new Set(["Atrule","Selector","Declaration"]);var Lr={};Ht(Lr,{safe:()=>Or,spec:()=>Ur});var zr=(e,t)=>{if(9===e&&(e=t),"string"==typeof e){let t=e.charCodeAt(0);return t>127?32768:t<<8}return e},Pr=[[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],["/","*"]],Nr=Pr.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 Mr(e){let t=new Set(e.map((([e,t])=>zr(e)<<16|zr(t))));return function(e,n,r){let a=zr(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 Ur=Mr(Pr),Or=Mr(Nr),Dr=92;function qr(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 Fr(e){sr(e,((t,n,r)=>{this.token(t,e.slice(n,r))}))}function jr(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:Or,token(e,t){a=this.tokenBefore(a,e,t),this.emit(t,e,!1),9===e&&t.charCodeAt(0)===Dr&&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 Ir.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&&_r.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&&_r.has(e.type)&&(a.line=i,a.column=s)};let u=e.emit;e.emit=function(e,t,n){for(let t=0;t<e.length;t++)10===e.charCodeAt(t)?(i++,s=0):s++;u(e,t,n)};let h=e.result;return e.result=function(){return l&&t.addMapping(o),{css:h(),map:t}},e}(o)),n.mode in Lr&&(o.tokenBefore=Lr[n.mode]));let i={node:e=>o.node(e),children:qr,token:(e,t)=>o.token(e,t),tokenize:Fr};return o.node(e),o.result()}}var{hasOwnProperty:Br}=Object.prototype,Hr=function(){};function Vr(e){return"function"==typeof e?e:Hr}function Wr(e,t){return function(n,r,a){n.type===t&&e.call(this,n,r,a)}}function $r(e,t){let n=t.structure,r=[];for(let e in n){if(!1===Br.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 Jr(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 Gr({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 Yr(e){let t=function(e){let t={};for(let n in e.node)if(Br.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]=$r(0,r)}return t}(e),n={},r={},a=Symbol("break-walk"),o=Symbol("skip-node");for(let e in t)Br.call(t,e)&&null!==t[e]&&(n[e]=Jr(t[e],!1),r[e]=Jr(t[e],!0));let i=Gr(n),s=Gr(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=Hr,h=Hr,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=Vr(l.enter),h=Vr(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=Wr(u,l.visit),h=Wr(h,l.visit)}if(u===Hr&&h===Hr)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 Kr(e){return e}function Qr(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=>Qr(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 Qr(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 Zr(e,t){let n=Kr,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)),Qr(e,n,r,a)}var Xr={offset:0,line:1,column:1};function ea(e,t){let n=e&&e.loc&&e.loc[t];return n?"line"in n?ta(n):n:null}function ta({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 na=function(e,t){let n=ur("SyntaxReferenceError",e+(t?" `"+t+"`":""));return n.reference=t,n},ra=function(e,t,n,r){let a=ur("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=o<a.length&&a[o].node||null,s=i!==t?i:null,l=0,c=0,u=0,h="";for(let e=0;e<a.length;e++){let t=a[e].value;e===o&&(c=t.length,l=h.length),null!==s&&a[e].node===s&&(e<=o?u++:u=0),h+=t}return o===a.length||u>1?(n=ea(s||t,"end")||ta(Xr,h),r=ta(n)):(n=ea(s,"start")||ta(ea(t,"start")||Xr,h.slice(0,l)),r=ea(s,"end")||ta(n,h.substr(l,c))),{css:h,mismatchOffset:l,mismatchLength:c,start:n,end:r}}(r,n);return a.rawMessage=e,a.syntax=t?Zr(t):"<generic>",a.css=o,a.mismatchOffset=i,a.mismatchLength=s,a.message=e+"\n syntax: "+a.syntax+"\n value: "+(o||"<empty string>")+"\n --------"+new Array(a.mismatchOffset+1).join("-")+"^",Object.assign(a,l),a.loc={source:n&&n.loc&&n.loc.source||"<unknown>",start:l,end:c},a},aa=new Map,oa=new Map,ia=45,sa=function(e){if(aa.has(e))return aa.get(e);let t=e.toLowerCase(),n=aa.get(t);if(void 0===n){let e=ua(t,0),r=e?"":ha(t,0);n=Object.freeze({basename:t.substr(r.length),name:t,prefix:r,vendor:r,custom:e})}return aa.set(e,n),n},la=function(e){if(oa.has(e))return oa.get(e);let t=e,n=e[0];"/"===n?n="/"===e[1]?"//":"/":"_"!==n&&"*"!==n&&"$"!==n&&"#"!==n&&"+"!==n&&"&"!==n&&(n="");let r=ua(t,n.length);if(!r&&(t=t.toLowerCase(),oa.has(t))){let n=oa.get(t);return oa.set(e,n),n}let a=r?"":ha(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 oa.set(e,i),i},ca=ha;function ua(e,t){return t=t||0,e.length-t>=2&&e.charCodeAt(t)===ia&&e.charCodeAt(t+1)===ia}function ha(e,t){if(t=t||0,e.length-t>=3&&e.charCodeAt(t)===ia&&e.charCodeAt(t+1)!==ia){let n=e.indexOf("-",t+2);if(-1!==n)return e.substring(t,n+1)}return""}var da=["initial","inherit","unset","revert","revert-layer"],pa=43,ma=45,ga=!0;function fa(e,t){return null!==e&&9===e.type&&e.value.charCodeAt(0)===t}function ba(e,t,n){for(;null!==e&&(13===e.type||25===e.type);)e=n(++t);return t}function ya(e,t,n,r){if(!e)return 0;let a=e.value.charCodeAt(t);if(a===pa||a===ma){if(n)return 0;t++}for(;t<e.value.length;t++)if(!En(e.value.charCodeAt(t)))return 0;return r+1}function wa(e,t,n){let r=!1,a=ba(e,t,n);if(null===(e=n(a)))return t;if(10!==e.type){if(!fa(e,pa)&&!fa(e,ma))return t;if(r=!0,a=ba(n(++a),a,n),null===(e=n(a))||10!==e.type)return 0}if(!r){let t=e.value.charCodeAt(0);if(t!==pa&&t!==ma)return 0}return ya(e,r?0:1,r,a)}var ka=45,va=63;function xa(e,t){return null!==e&&9===e.type&&e.value.charCodeAt(0)===t}function Aa(e,t,n){let r=0;for(let a=t;a<e.value.length;a++){let o=e.value.charCodeAt(a);if(o===ka&&n&&0!==r)return Aa(e,t+r+1,!1),6;if(!Sn(o)||++r>6)return 0}return r}function Ea(e,t,n){if(!e)return 0;for(;xa(n(t),va);){if(++e>6)return 0;t++}return t}var Sa=["calc(","-moz-calc(","-webkit-calc("],Ta=new Map([[2,22],[21,22],[19,20],[23,24]]);function Ca(e,t){return t<e.length?e.charCodeAt(t):0}function Ra(e,t){return Wn(e,0,e.length,t)}function Ia(e,t){for(let n=0;n<t.length;n++)if(Ra(e,t[n]))return!0;return!1}function _a(e,t){return t===e.length-2&&(92===Ca(e,t)&&En(Ca(e,t+1)))}function La(e,t,n){if(e&&"Range"===e.type){let r=Number(void 0!==n&&n!==t.length?t.substr(0,n):t);if(isNaN(r)||null!==e.min&&r<e.min&&"string"!=typeof e.min||null!==e.max&&r>e.max&&"string"!=typeof e.max)return!0}return!1}function za(e){return function(t,n,r){return null===t?0:2===t.type&&Ia(t.value,Sa)?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=Ta.get(e.type)}a++}while(e=t(a));return a}(t,n):e(t,n,r)}}function Pa(e){return function(t){return null===t||t.type!==e?0:1}}function Na(e){return e&&(e=new Set(e)),function(t,n,r){if(null===t||12!==t.type)return 0;let a=Kn(t.value,0);if(null!==e){let n=t.value.indexOf("\\",a),r=-1!==n&&_a(t.value,n)?t.value.substring(a,n):t.value.substr(a);if(!1===e.has(r.toLowerCase()))return 0}return La(r,t.value,a)?0:1}}function Ma(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 Ua={"ident-token":Pa(1),"function-token":Pa(2),"at-keyword-token":Pa(3),"hash-token":Pa(4),"string-token":Pa(5),"bad-string-token":Pa(6),"url-token":Pa(7),"bad-url-token":Pa(8),"delim-token":Pa(9),"number-token":Pa(10),"percentage-token":Pa(11),"dimension-token":Pa(12),"whitespace-token":Pa(13),"CDO-token":Pa(14),"CDC-token":Pa(15),"colon-token":Pa(16),"semicolon-token":Pa(17),"comma-token":Pa(18),"[-token":Pa(19),"]-token":Pa(20),"(-token":Pa(21),")-token":Pa(22),"{-token":Pa(23),"}-token":Pa(24)},Oa={string:Pa(5),ident:Pa(1),percentage:za((function(e,t,n){return null===e||11!==e.type||La(n,e.value,e.value.length-1)?0:1})),zero:Ma(),number:za((function(e,t,n){if(null===e)return 0;let r=Kn(e.value,0);return r!==e.value.length&&!_a(e.value,r)||La(n,e.value,r)?0:1})),integer:za((function(e,t,n){if(null===e||10!==e.type)return 0;let r=43===Ca(e.value,0)||45===Ca(e.value,0)?1:0;for(;r<e.value.length;r++)if(!En(Ca(e.value,r)))return 0;return La(n,e.value,r)?0:1})),"custom-ident":function(e){if(null===e||1!==e.type)return 0;let t=e.value.toLowerCase();return Ia(t,da)||Ra(t,"default")?0:1},"custom-property-name":function(e){return null===e||1!==e.type||45!==Ca(e.value,0)||45!==Ca(e.value,1)?0:1},"hex-color":function(e){if(null===e||4!==e.type)return 0;let t=e.value.length;if(4!==t&&5!==t&&7!==t&&9!==t)return 0;for(let n=1;n<t;n++)if(!Sn(Ca(e.value,n)))return 0;return 1},"id-selector":function(e){return null!==e&&4===e.type&&Pn(Ca(e.value,1),Ca(e.value,2),Ca(e.value,3))?1:0},"an-plus-b":function(e,t){let n=0;if(!e)return 0;if(10===e.type)return ya(e,0,false,n);if(1===e.type&&e.value.charCodeAt(0)===ma){if(!Vn(e.value,1,110))return 0;switch(e.value.length){case 2:return wa(t(++n),n,t);case 3:return e.value.charCodeAt(2)!==ma?0:(n=ba(t(++n),n,t),ya(e=t(n),0,ga,n));default:return e.value.charCodeAt(2)!==ma?0:ya(e,3,ga,n)}}else if(1===e.type||fa(e,pa)&&1===t(n+1).type){if(1!==e.type&&(e=t(++n)),null===e||!Vn(e.value,0,110))return 0;switch(e.value.length){case 1:return wa(t(++n),n,t);case 2:return e.value.charCodeAt(1)!==ma?0:(n=ba(t(++n),n,t),ya(e=t(n),0,ga,n));default:return e.value.charCodeAt(1)!==ma?0:ya(e,2,ga,n)}}else if(12===e.type){let r=e.value.charCodeAt(0),a=r===pa||r===ma?1:0,o=a;for(;o<e.value.length&&En(e.value.charCodeAt(o));o++);return o!==a&&Vn(e.value,o,110)?o+1===e.value.length?wa(t(++n),n,t):e.value.charCodeAt(o+1)!==ma?0:o+2===e.value.length?(n=ba(t(++n),n,t),ya(e=t(n),0,ga,n)):ya(e,o+2,ga,n):0}return 0},urange:function(e,t){let n=0;if(null===e||1!==e.type||!Vn(e.value,0,117)||null===(e=t(++n)))return 0;if(xa(e,43))return null===(e=t(++n))?0:1===e.type?Ea(Aa(e,0,!0),++n,t):xa(e,va)?Ea(1,++n,t):0;if(10===e.type){let r=Aa(e,1,!0);return 0===r?0:null===(e=t(++n))?n:12===e.type||10===e.type?function(e,t){return e.value.charCodeAt(0)===t}(e,ka)&&Aa(e,1,!1)?n+1:0:Ea(r,n,t)}return 12===e.type?Ea(Aa(e,1,!0),++n,t):0},"declaration-value":function(e,t){if(!e)return 0;let n=0,r=[],a=0;e:do{switch(e.type){case 6:case 8:break e;case 24:case 22:case 20:if(e.type!==n)break e;n=r.pop();break;case 17:if(0===n)break e;break;case 9:if(0===n&&"!"===e.value)break e;break;case 2:case 21:case 19:case 23:r.push(n),n=Ta.get(e.type)}a++}while(e=t(a));return a},"any-value":function(e,t){if(!e)return 0;let n=0,r=[],a=0;e:do{switch(e.type){case 6:case 8:break e;case 24:case 22:case 20:if(e.type!==n)break e;n=r.pop();break;case 2:case 21:case 19:case 23:r.push(n),n=Ta.get(e.type)}a++}while(e=t(a));return a}};function Da(e){let{angle:t,decibel:n,frequency:r,flex:a,length:o,resolution:i,semitones:s,time:l}=e||{};return{dimension:za(Na(null)),angle:za(Na(t)),decibel:za(Na(n)),frequency:za(Na(r)),flex:za(Na(a)),length:za(Ma(Na(o))),resolution:za(Na(i)),semitones:za(Na(s)),time:za(Na(l))}}var qa={};Ht(qa,{angle:()=>ja,decibel:()=>$a,flex:()=>Wa,frequency:()=>Ha,length:()=>Fa,resolution:()=>Va,semitones:()=>Ja,time:()=>Ba});var Fa=["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"],ja=["deg","grad","rad","turn"],Ba=["s","ms"],Ha=["hz","khz"],Va=["dpi","dpcm","dppx","x"],Wa=["fr"],$a=["db"],Ja=["st"],Ga={};function Ya(e,t,n){return Object.assign(ur("SyntaxError",e),{input:t,offset:n,rawMessage:e,message:e+"\n "+t+"\n--"+new Array((n||t.length)+1).join("-")+"^"})}Ht(Ga,{SyntaxError:()=>Ya,generate:()=>Zr,parse:()=>Uo,walk:()=>qo});var Ka=class{constructor(e){this.str=e,this.pos=0}charCodeAt(e){return e<this.str.length?this.str.charCodeAt(e):0}charCode(){return this.charCodeAt(this.pos)}nextCharCode(){return this.charCodeAt(this.pos+1)}nextNonWsCode(e){return this.charCodeAt(this.findWsEnd(e))}findWsEnd(e){for(;e<this.str.length;e++){let t=this.str.charCodeAt(e);if(13!==t&&10!==t&&12!==t&&32!==t&&9!==t)break}return e}substringToPos(e){return this.str.substring(this.pos,this.pos=e)}eat(e){this.charCode()!==e&&this.error("Expect `"+String.fromCharCode(e)+"`"),this.pos++}peek(){return this.pos<this.str.length?this.str.charAt(this.pos++):""}error(e){throw new Ya(e,this.str,this.pos)}},Qa=9,Za=10,Xa=12,eo=13,to=32,no=33,ro=35,ao=38,oo=39,io=40,so=41,lo=42,co=43,uo=44,ho=45,po=60,mo=62,go=63,fo=64,bo=91,yo=93,wo=123,ko=124,vo=125,xo=8734,Ao=new Uint8Array(128).map(((e,t)=>/[a-zA-Z0-9\-]/.test(String.fromCharCode(t))?1:0)),Eo={" ":1,"&&":2,"||":3,"|":4};function So(e){return e.substringToPos(e.findWsEnd(e.pos))}function To(e){let t=e.pos;for(;t<e.str.length;t++){let n=e.str.charCodeAt(t);if(n>=128||0===Ao[n])break}return e.pos===t&&e.error("Expect a keyword"),e.substringToPos(t)}function Co(e){let t=e.pos;for(;t<e.str.length;t++){let n=e.str.charCodeAt(t);if(n<48||n>57)break}return e.pos===t&&e.error("Expect a number"),e.substringToPos(t)}function Ro(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 Io(e){let t=null,n=null;return e.eat(wo),t=Co(e),e.charCode()===uo?(e.pos++,e.charCode()!==vo&&(n=Co(e))):n=t,e.eat(vo),{min:Number(t),max:n?Number(n):0}}function _o(e,t){let n=function(e){let t=null,n=!1;switch(e.charCode()){case lo:e.pos++,t={min:0,max:0};break;case co:e.pos++,t={min:1,max:0};break;case go:e.pos++,t={min:0,max:1};break;case ro:e.pos++,n=!0,e.charCode()===wo?t=Io(e):e.charCode()===go?(e.pos++,t={min:0,max:0}):t={min:1,max:0};break;case wo:t=Io(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()===ro&&e.charCodeAt(e.pos-1)===co?_o(e,n):n):t}function Lo(e){let t=e.peek();return""===t?null:{type:"Token",value:t}}function zo(e){let t,n=null;return e.eat(po),t=To(e),e.charCode()===io&&e.nextCharCode()===so&&(e.pos+=2,t+="()"),e.charCodeAt(e.findWsEnd(e.pos))===bo&&(So(e),n=function(e){let t=null,n=null,r=1;return e.eat(bo),e.charCode()===ho&&(e.peek(),r=-1),-1==r&&e.charCode()===xo?e.peek():(t=r*Number(Co(e)),0!==Ao[e.charCode()]&&(t+=To(e))),So(e),e.eat(uo),So(e),e.charCode()===xo?e.peek():(r=1,e.charCode()===ho&&(e.peek(),r=-1),n=r*Number(Co(e)),0!==Ao[e.charCode()]&&(n+=To(e))),e.eat(yo),{type:"Range",min:t,max:n}}(e)),e.eat(mo),_o(e,{type:"Type",name:t,opts:n})}function Po(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)=>Eo[e]-Eo[t]));t.length>0;){r=t.shift();let a=0,o=0;for(;a<e.length;a++){let t=e[a];"Combinator"===t.type&&(t.value===r?(-1===o&&(o=a-1),e.splice(a,1),a--):(-1!==o&&a-o>1&&(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 No(e){let t,n=[],r={},a=null,o=e.pos;for(;t=Mo(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:Po(n,r)||" ",disallowEmpty:!1,explicit:!1}}function Mo(e){let t=e.charCode();if(t<128&&1===Ao[t])return function(e){let t=To(e);return e.charCode()===io?(e.pos++,{type:"Function",name:t}):_o(e,{type:"Keyword",name:t})}(e);switch(t){case yo:break;case bo:return _o(e,function(e){let t;return e.eat(bo),t=No(e),e.eat(yo),t.explicit=!0,e.charCode()===no&&(e.pos++,t.disallowEmpty=!0),t}(e));case po:return e.nextCharCode()===oo?function(e){let t;return e.eat(po),e.eat(oo),t=To(e),e.eat(oo),e.eat(mo),_o(e,{type:"Property",name:t})}(e):zo(e);case ko:return{type:"Combinator",value:e.substringToPos(e.pos+(e.nextCharCode()===ko?2:1))};case ao:return e.pos++,e.eat(ao),{type:"Combinator",value:"&&"};case uo:return e.pos++,{type:"Comma"};case oo:return _o(e,{type:"String",value:Ro(e)});case to:case Qa:case Za:case eo:case Xa:return{type:"Spaces",value:So(e)};case fo:return t=e.nextCharCode(),t<128&&1===Ao[t]?(e.pos++,{type:"AtKeyword",name:To(e)}):Lo(e);case lo:case co:case go:case ro:case no:break;case wo:if(t=e.nextCharCode(),t<48||t>57)return Lo(e);break;default:return Lo(e)}}function Uo(e){let t=new Ka(e),n=No(t);return t.pos!==e.length&&t.error("Unexpected input"),1===n.terms.length&&"Group"===n.terms[0].type?n.terms[0]:n}var Oo=function(){};function Do(e){return"function"==typeof e?e:Oo}function qo(e,t,n){let r=Oo,a=Oo;if("function"==typeof t?r=t:t&&(r=Do(t.enter),a=Do(t.leave)),r===Oo&&a===Oo)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 Fo={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 jo(e,t){return"string"==typeof e?function(e){let t=[];return sr(e,((n,r,a)=>t.push({type:n,value:e.slice(r,a),node:null}))),t}(e):t.generate(e,Fo)}var Bo={type:"Match"},Ho={type:"Mismatch"},Vo={type:"DisallowEmpty"},Wo=40,$o=41;function Jo(e,t,n){return t===Bo&&n===Ho||e===Bo&&t===Bo&&n===Bo?e:("If"===e.type&&e.else===Ho&&t===Bo&&(t=e.then,e=e.match),{type:"If",match:e,then:t,else:n})}function Go(e){return e.length>2&&e.charCodeAt(e.length-2)===Wo&&e.charCodeAt(e.length-1)===$o}function Yo(e){return"Keyword"===e.type||"AtKeyword"===e.type||"Function"===e.type||"Type"===e.type&&Go(e.name)}function Ko(e,t,n){switch(e){case" ":{let e=Bo;for(let n=t.length-1;n>=0;n--){e=Jo(t[n],e,Ho)}return e}case"|":{let e=Ho,n=null;for(let r=t.length-1;r>=0;r--){let a=t[r];if(Yo(a)&&(null===n&&r>0&&Yo(t[r-1])&&(n=Object.create(null),e=Jo({type:"Enum",map:n},Bo,e)),null!==n)){let e=(Go(a.name)?a.name.slice(0,-1):a.name).toLowerCase();if(!(e in n)){n[e]=a;continue}}n=null,e=Jo(a,Bo,e)}return e}case"&&":{if(t.length>5)return{type:"MatchOnce",terms:t,all:!0};let n=Ho;for(let r=t.length-1;r>=0;r--){let a,o=t[r];a=t.length>1?Ko(e,t.filter((function(e){return e!==o})),!1):Bo,n=Jo(o,a,n)}return n}case"||":{if(t.length>5)return{type:"MatchOnce",terms:t,all:!1};let r=n?Bo:Ho;for(let n=t.length-1;n>=0;n--){let a,o=t[n];a=t.length>1?Ko(e,t.filter((function(e){return e!==o})),!0):Bo,r=Jo(o,a,r)}return r}}}function Qo(e){if("function"==typeof e)return{type:"Generic",fn:e};switch(e.type){case"Group":{let t=Ko(e.combinator,e.terms.map(Qo),!1);return e.disallowEmpty&&(t=Jo(t,Vo,Ho)),t}case"Multiplier":return function(e){let t=Bo,n=Qo(e.term);if(0===e.max)n=Jo(n,Vo,Ho),t=Jo(n,null,Ho),t.then=Jo(Bo,Bo,t),e.comma&&(t.then.else=Jo({type:"Comma",syntax:e},t,Ho));else for(let r=e.min||1;r<=e.max;r++)e.comma&&t!==Bo&&(t=Jo({type:"Comma",syntax:e},t,Ho)),t=Jo(n,Jo(Bo,Bo,t),Ho);if(0===e.min)t=Jo(Bo,Bo,t);else for(let r=0;r<e.min-1;r++)e.comma&&t!==Bo&&(t=Jo({type:"Comma",syntax:e},t,Ho)),t=Jo(n,t,Ho);return t}(e);case"Type":case"Property":return{type:e.type,name:e.name,syntax:e};case"Keyword":return{type:e.type,name:e.name.toLowerCase(),syntax:e};case"AtKeyword":return{type:e.type,name:"@"+e.name.toLowerCase(),syntax:e};case"Function":return{type:e.type,name:e.name.toLowerCase()+"(",syntax:e};case"String":return 3===e.value.length?{type:"Token",value:e.value.charAt(1),syntax:e}:{type:e.type,value:e.value.substr(1,e.value.length-2).replace(/\\'/g,"'"),syntax:e};case"Token":return{type:e.type,value:e.value,syntax:e};case"Comma":return{type:e.type,syntax:e};default:throw new Error("Unknown node type:",e.type)}}function Zo(e,t){return"string"==typeof e&&(e=Uo(e)),{type:"MatchGraph",match:Qo(e),syntax:t||null,source:e}}var{hasOwnProperty:Xo}=Object.prototype,ei=0,ti=1,ni=2,ri=3,ai="Match",oi="Mismatch",ii="Maximum iteration number exceeded (please fill an issue on https://github.com/csstree/csstree/issues)",si=15e3;function li(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++){let r=t.charCodeAt(n),a=e.charCodeAt(n);if(a>=65&&a<=90&&(a|=32),a!==r)return!1}return!0}function ci(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 ui(e){return null===e||(22===e.type||20===e.type||24===e.type||9===e.type&&"/"===e.value)}function hi(e,t,n){let r=function(e,t,n){function r(){do{b++,f=b<e.length?e[b]:null}while(null!==f&&(13===f.type||25===f.type))}function a(t){let n=b+t;return n<e.length?e[n]:null}function o(e,t){return{nextState:e,matchStack:w,syntaxStack:u,thenStack:h,tokenIndex:b,prev:t}}function i(e){h={nextState:e,matchStack:w,syntaxStack:u,prev:h}}function s(e){d=o(e,d)}function l(){w={type:ti,syntax:t.syntax,token:f,prev:w},r(),p=null,b>y&&(y=b)}function c(){w=w.type===ni?w.prev:{type:ri,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:ei,syntax:null,token:null,prev:null};for(r();null===g&&++m<si;)switch(t.type){case"Match":if(null===h){if(null!==f&&(b!==e.length-1||"\\0"!==f.value&&"\\9"!==f.value)){t=Ho;break}g=ai;break}if((t=h.nextState)===Vo){if(h.matchStack===w){t=Ho;break}t=Bo}for(;h.syntaxStack!==u;)c();h=h.prev;break;case"Mismatch":if(null!==p&&!1!==p)(null===d||b>d.tokenIndex)&&(d=p,p=!1);else if(null===d){g=oi;break}t=d.nextState,h=d.thenStack,u=d.syntaxStack,w=d.matchStack,b=d.tokenIndex,f=b<e.length?e[b]:null,d=d.prev;break;case"MatchGraph":t=t.match;break;case"If":t.else!==Ho&&s(t.else),t.then!==Bo&&i(t.then),t=t.match;break;case"MatchOnce":t={type:"MatchOnceBuffer",syntax:t,index:0,mask:0};break;case"MatchOnceBuffer":{let e=t.syntax.terms;if(t.index===e.length){if(0===t.mask||t.syntax.all){t=Ho;break}t=Bo;break}if(t.mask===(1<<e.length)-1){t=Bo;break}for(;t.index<e.length;t.index++){let n=1<<t.index;if(0==(t.mask&n)){s(t),i({type:"AddMatchOnce",syntax:t.syntax,mask:t.mask|n}),t=e[t.index++];break}}break}case"AddMatchOnce":t={type:"MatchOnceBuffer",syntax:t.syntax,index:0,mask:t.mask};break;case"Enum":if(null!==f){let e=f.value.toLowerCase();if(-1!==e.indexOf("\\")&&(e=e.replace(/\\[09].*$/,"")),Xo.call(t.map,e)){t=t.map[e];break}}t=Ho;break;case"Generic":{let e=null!==u?u.opts:null,n=b+Math.floor(t.fn(f,a,e));if(!isNaN(n)&&n>b){for(;b<n;)l();t=Bo}else t=Ho;break}case"Type":case"Property":{let e="Type"===t.type?"types":"properties",r=Xo.call(n,e)?n[e][t.name]:null;if(!r||!r.match)throw new Error("Bad syntax reference: "+("Type"===t.type?"<"+t.name+">":"<'"+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=Ho;break}u={syntax:t.syntax,opts:t.syntax.opts||null!==u&&u.opts||null,prev:u},w={type:ni,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].*$/,"")),li(n,e)){l(),t=Bo;break}}t=Ho;break}case"AtKeyword":case"Function":if(null!==f&&li(f.value,t.name)){l(),t=Bo;break}t=Ho;break;case"Token":if(null!==f&&f.value===t.value){l(),t=Bo;break}t=Ho;break;case"Comma":null!==f&&18===f.type?ci(w.token)?t=Ho:(l(),t=ui(f)?Ho:Bo):t=ci(w.token)||ui(f)?Bo:Ho;break;case"String":let r="",m=b;for(;m<e.length&&r.length<t.value.length;m++)r+=e[m].value;if(li(r,t.value)){for(;b<m;)l();t=Bo}else t=Ho;break;default:throw new Error("Unknown node type: "+t.type)}switch(g){case null:console.warn("[csstree-match] BREAK after "+si+" iterations"),g=ii,w=null;break;case ai:for(;null!==u;)c();break;default:w=null}return{tokens:e,reason:g,iterations:m,match:w,longestMatch:y}}(e,t,n||{});if(null===r.match)return r;let a=r.match,o=r.match={syntax:t.syntax||null,match:[]},i=[o];for(a=function(e){let t=null,n=null,r=e;for(;null!==r;)n=r.prev,r.prev=t,t=r,r=n;return t}(a).prev;null!==a;){switch(a.type){case ni:o.match.push(o={syntax:a.syntax,match:[]}),i.push(o);break;case ri:i.pop(),o=i[i.length-1];break;default:o.match.push({syntax:a.syntax||null,token:a.token.value,node:a.token.node})}a=a.prev}return r}var di={};function pi(e){function t(e){return null!==e&&("Type"===e.type||"Property"===e.type||"Keyword"===e.type)}let n=null;return null!==this.matched&&function r(a){if(Array.isArray(a.match)){for(let e=0;e<a.match.length;e++)if(r(a.match[e]))return t(a.syntax)&&n.unshift(a.syntax),!0}else if(a.node===e)return n=t(a.syntax)?[a.syntax]:[],!0;return!1}(this.matched),n}function mi(e,t){return bi(this,e,(e=>"Type"===e.type&&e.name===t))}function gi(e,t){return bi(this,e,(e=>"Property"===e.type&&e.name===t))}function fi(e){return bi(this,e,(e=>"Keyword"===e.type))}function bi(e,t,n){let r=pi.call(e,t);return null!==r&&r.some(n)}function yi(e){return"node"in e?e.node:yi(e.match[0])}function wi(e){return"node"in e?e.node:wi(e.match[e.match.length-1])}function ki(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=yi(i),r=wi(i);e.syntax.walk(t,(function(e,t,a){if(e===n){let e=new cr;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}Ht(di,{getTrace:()=>pi,isKeyword:()=>fi,isProperty:()=>gi,isType:()=>mi});var{hasOwnProperty:vi}=Object.prototype;function xi(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&e>=0}function Ai(e){return Boolean(e)&&xi(e.offset)&&xi(e.line)&&xi(e.column)}function Ei(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!==vi.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(Ai(n.loc.start)){if(Ai(n.loc.end))continue;a+=".end"}else a+=".start";o=!1}else if(t.hasOwnProperty(a)){o=!1;for(let e=0;!o&&e<t[a].length;e++){let r=t[a][e];switch(r){case String:o="string"==typeof n[a];break;case Boolean:o="boolean"==typeof n[a];break;case null:o=null===n[a];break;default:"string"==typeof r?o=n[a]&&n[a].type===r:Array.isArray(r)&&(o=n[a]instanceof cr)}}}else r(n,"Unknown field `"+a+"` for "+e+" node type");o||r(n,"Bad value for `"+e+"."+a+"`")}}for(let a in t)vi.call(t,a)&&!1===vi.call(n,a)&&r(n,"Field `"+e+"."+a+"` is missed")}}function Si(e,t){let n=t.structure,r={type:String,loc:!0},a={type:'"'+e+'"'};for(let t in n){if(!1===vi.call(n,t))continue;let o=[],i=r[t]=Array.isArray(n[t])?n[t].slice():[n[t]];for(let n=0;n<i.length;n++){let r=i[n];if(r===String||r===Boolean)o.push(r.name);else if(null===r)o.push("null");else if("string"==typeof r)o.push("<"+r+">");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:Ei(e,r)}}var Ti=Zo(da.join(" | "));function Ci(e,t,n){let r={};for(let a in e)e[a].syntax&&(r[a]=n?e[a].syntax:Zr(e[a].syntax,{compact:t}));return r}function Ri(e,t,n){let r={};for(let[a,o]of Object.entries(e))r[a]={prelude:o.prelude&&(n?o.prelude.syntax:Zr(o.prelude.syntax,{compact:t})),descriptors:o.descriptors&&Ci(o.descriptors,t,n)};return r}function Ii(e,t,n){return{matched:e,iterations:n,error:t,...di}}function _i(e,t,n,r){let a,o=jo(n,e.syntax);return function(e){for(let t=0;t<e.length;t++)if("var("===e[t].value.toLowerCase())return!0;return!1}(o)?Ii(null,new Error("Matching for a tree with var() is not supported")):(r&&(a=hi(o,e.cssWideKeywordsSyntax,e)),r&&a.match||(a=hi(o,t.match,e),a.match)?Ii(a.match,null,a.iterations):Ii(null,new ra(a.reason,t.syntax,n,a),a.iterations))}var Li=class{constructor(e,t,n){if(this.cssWideKeywordsSyntax=Ti,this.syntax=t,this.generic=!1,this.units={...qa},this.atrules=Object.create(null),this.properties=Object.create(null),this.types=Object.create(null),this.structure=n||function(e){let t={};if(e.node)for(let n in e.node)if(vi.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]=Si(n,r)}return t}(e),e){if(e.units)for(let t of Object.keys(qa))Array.isArray(e.units[t])&&(this.units[t]=e.units[t]);if(e.types)for(let t in e.types)this.addType_(t,e.types[t]);if(e.generic){this.generic=!0;for(let[e,t]of Object.entries(function(e){return{...Ua,...Oa,...Da(e)}}(this.units)))this.addType_(e,t)}if(e.atrules)for(let t in e.atrules)this.addAtrule_(t,e.atrules[t]);if(e.properties)for(let t in e.properties)this.addProperty_(t,e.properties[t])}}checkStructure(e){function t(e,t){r.push({node:e,message:t})}let n=this.structure,r=[];return this.syntax.walk(e,(function(e){n.hasOwnProperty(e.type)?n[e.type].check(e,t):t(e,"Unknown node type `"+e.type+"`")})),!!r.length&&r}createDescriptor(e,t,n,r=null){let a={type:t,name:n},o={type:t,name:n,parent:r,serializable:"string"==typeof e||e&&"string"==typeof e.type,syntax:null,match:null};return"function"==typeof e?o.match=Zo(e,a):("string"==typeof e?Object.defineProperty(o,"syntax",{get:()=>(Object.defineProperty(o,"syntax",{value:Uo(e)}),o.syntax)}):o.syntax=e,Object.defineProperty(o,"match",{get:()=>(Object.defineProperty(o,"match",{value:Zo(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 na("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||_i(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=sa(t);return r.descriptors?r.descriptors[a.name]||r.descriptors[a.basename]?void 0:new na("Unknown at-rule descriptor",t):new SyntaxError("At-rule `@"+e+"` has no known descriptors")}checkPropertyName(e){if(!this.getProperty(e))return new na("Unknown property",e)}matchAtrulePrelude(e,t){let n=this.checkAtrulePrelude(e,t);if(n)return Ii(null,n);let r=this.getAtrule(e);return r.prelude?_i(this,r.prelude,t||"",!1):Ii(null,null)}matchAtruleDescriptor(e,t,n){let r=this.checkAtruleDescriptorName(e,t);if(r)return Ii(null,r);let a=this.getAtrule(e),o=sa(t);return _i(this,a.descriptors[o.name]||a.descriptors[o.basename],n,!1)}matchDeclaration(e){return"Declaration"!==e.type?Ii(null,new Error("Not a Declaration node")):this.matchProperty(e.property,e.value)}matchProperty(e,t){if(la(e).custom)return Ii(null,new Error("Lexer matching doesn't applicable for custom properties"));let n=this.checkPropertyName(e);return n?Ii(null,n):_i(this,this.getProperty(e),t,!0)}matchType(e,t){let n=this.getType(e);return n?_i(this,n,t,!1):Ii(null,new na("Unknown type",e))}match(e,t){return"string"==typeof e||e&&e.type?(("string"==typeof e||!e.match)&&(e=this.createDescriptor(e,"Type","anonymous")),_i(this,e,t,!1)):Ii(null,new na("Bad syntax"))}findValueFragments(e,t,n,r){return ki(this,t,this.matchProperty(e,t),n,r)}findDeclarationValueFragments(e,t,n){return ki(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=sa(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=la(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&&qo(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:Ci(this.types,!t,e),properties:Ci(this.properties,!t,e),atrules:Ri(this.atrules,!t,e)}}toString(){return JSON.stringify(this.dump())}};function zi(e,t){return"string"==typeof t&&/^\s*\|/.test(t)?"string"==typeof e?e+t:t.replace(/^\s*\|\s*/,""):t||null}function Pi(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 Ni(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?zi(o.prelude,t.prelude):o.prelude||null;for(let[e,n]of Object.entries(t.descriptors||{}))o.descriptors[e]=n?zi(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]=zi(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],...Pi(a,["parse"])};break;case"node":n[r]={...e[r],...Pi(a,["name","structure","parse","generate","walkContext"])}}return n}function Mi(e){let t=Sr(e),n=Yr(e),r=jr(e),{fromPlainObject:a,toPlainObject:o}=function(e){return{fromPlainObject:t=>(e(t,{enter(e){e.children&&!(e.children instanceof cr)&&(e.children=(new cr).fromArray(e.children))}}),t),toPlainObject:t=>(e(t,{leave(e){e.children&&e.children instanceof cr&&(e.children=e.children.toArray())}}),t)}}(n),i={lexer:null,createLexer:e=>new Li(e,i,i.lexer.structure),tokenize:sr,parse:t,generate:r,walk:n,find:n.find,findLast:n.findLast,findAll:n.findAll,fromPlainObject:a,toPlainObject:o,fork(t){let n=Ni({},e);return Mi("function"==typeof t?t(n,Object.assign):Ni(n,t))}};return i.lexer=new Li({generic:!0,units:e.units,types:e.types,atrules:e.atrules,properties:e.properties,node:e.node},i),i}var Ui=e=>Mi(Ni({},e)),Oi={};Ht(Oi,{AnPlusB:()=>Di,Atrule:()=>Zi,AtrulePrelude:()=>is,AttributeSelector:()=>ds,Block:()=>Ss,Brackets:()=>Us,CDC:()=>js,CDO:()=>$s,ClassSelector:()=>Qs,Combinator:()=>rl,Comment:()=>dl,Declaration:()=>wl,DeclarationList:()=>Ol,Dimension:()=>Vl,Function:()=>Yl,Hash:()=>tc,IdSelector:()=>dc,Identifier:()=>sc,MediaFeature:()=>bc,MediaQuery:()=>xc,MediaQueryList:()=>Cc,NestingSelector:()=>zc,Nth:()=>Dc,Number:()=>Hc,Operator:()=>Gc,Parentheses:()=>Xc,Percentage:()=>au,PseudoClassSelector:()=>cu,PseudoElementSelector:()=>gu,Ratio:()=>vu,Raw:()=>Iu,Rule:()=>Mu,Selector:()=>Hu,SelectorList:()=>Gu,String:()=>eh,StyleSheet:()=>hh,TypeSelector:()=>wh,UnicodeRange:()=>Ch,Url:()=>qh,Value:()=>Xh,WhiteSpace:()=>ad});var Di={};Ht(Di,{generate:()=>Qi,name:()=>Gi,parse:()=>Ki,structure:()=>Yi});var qi=43,Fi=45,ji=110,Bi=!0,Hi=!1;function Vi(e,t){let n=this.tokenStart+e,r=this.charCodeAt(n);for((r===qi||r===Fi)&&(t&&this.error("Number sign is not allowed"),n++);n<this.tokenEnd;n++)En(this.charCodeAt(n))||this.error("Integer is expected",n)}function Wi(e){return Vi.call(this,0,e)}function $i(e,t){if(!this.cmpChar(this.tokenStart+e,t)){let n="";switch(t){case ji:n="N is expected";break;case Fi:n="HyphenMinus is expected"}this.error(n,this.tokenStart+e)}}function Ji(){let e=0,t=0,n=this.tokenType;for(;13===n||25===n;)n=this.lookupType(++e);if(10!==n){if(!this.isDelim(qi,e)&&!this.isDelim(Fi,e))return null;t=this.isDelim(qi,e)?qi:Fi;do{n=this.lookupType(++e)}while(13===n||25===n);10!==n&&(this.skip(e),Wi.call(this,Bi))}return e>0&&this.skip(e),0===t&&(n=this.charCodeAt(this.tokenStart),n!==qi&&n!==Fi&&this.error("Number sign is expected")),Wi.call(this,0!==t),t===Fi?"-"+this.consume(10):this.consume(10)}var Gi="AnPlusB",Yi={a:[String,null],b:[String,null]};function Ki(){let e=this.tokenStart,t=null,n=null;if(10===this.tokenType)Wi.call(this,Hi),n=this.consume(10);else if(1===this.tokenType&&this.cmpChar(this.tokenStart,Fi))switch(t="-1",$i.call(this,1,ji),this.tokenEnd-this.tokenStart){case 2:this.next(),n=Ji.call(this);break;case 3:$i.call(this,2,Fi),this.next(),this.skipSC(),Wi.call(this,Bi),n="-"+this.consume(10);break;default:$i.call(this,2,Fi),Vi.call(this,3,Bi),this.next(),n=this.substrToCursor(e+2)}else if(1===this.tokenType||this.isDelim(qi)&&1===this.lookupType(1)){let r=0;switch(t="1",this.isDelim(qi)&&(r=1,this.next()),$i.call(this,0,ji),this.tokenEnd-this.tokenStart){case 1:this.next(),n=Ji.call(this);break;case 2:$i.call(this,1,Fi),this.next(),this.skipSC(),Wi.call(this,Bi),n="-"+this.consume(10);break;default:$i.call(this,1,Fi),Vi.call(this,2,Bi),this.next(),n=this.substrToCursor(e+r+1)}}else if(12===this.tokenType){let r=this.charCodeAt(this.tokenStart),a=r===qi||r===Fi,o=this.tokenStart+a;for(;o<this.tokenEnd&&En(this.charCodeAt(o));o++);o===this.tokenStart+a&&this.error("Integer is expected",this.tokenStart+a),$i.call(this,o-this.tokenStart,ji),t=this.substring(e,o),o+1===this.tokenEnd?(this.next(),n=Ji.call(this)):($i.call(this,o-this.tokenStart+1,Fi),o+2===this.tokenEnd?(this.next(),this.skipSC(),Wi.call(this,Bi),n="-"+this.consume(10)):(Vi.call(this,o-this.tokenStart+2,Bi),this.next(),n=this.substrToCursor(o+1)))}else this.error();return null!==t&&t.charCodeAt(0)===qi&&(t=t.substr(1)),null!==n&&n.charCodeAt(0)===qi&&(n=n.substr(1)),{type:"AnPlusB",loc:this.getLocation(e,this.tokenStart),a:t,b:n}}function Qi(e){if(e.a){let t=("+1"===e.a||"1"===e.a?"n":"-1"===e.a&&"-n")||e.a+"n";if(e.b){let n="-"===e.b[0]||"+"===e.b[0]?e.b:"+"+e.b;this.tokenize(t+n)}else this.tokenize(t)}else this.tokenize(e.b)}var Zi={};function Xi(e){return this.Raw(e,this.consumeUntilLeftCurlyBracketOrSemicolon,!0)}function es(){for(let e,t=1;e=this.lookupType(t);t++){if(24===e)return!0;if(23===e||3===e)return!1}return!1}Ht(Zi,{generate:()=>os,name:()=>ts,parse:()=>as,structure:()=>rs,walkContext:()=>ns});var ts="Atrule",ns="atrule",rs={name:String,prelude:["AtrulePrelude","Raw",null],block:["Block",null]};function as(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),Xi):Xi.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(es.call(this))}return{type:"Atrule",loc:this.getLocation(r,this.tokenStart),name:t,prelude:a,block:o}}function os(e){this.token(3,"@"+e.name),null!==e.prelude&&this.node(e.prelude),e.block?this.node(e.block):this.token(17,";")}var is={};Ht(is,{generate:()=>hs,name:()=>ss,parse:()=>us,structure:()=>cs,walkContext:()=>ls});var ss="AtrulePrelude",ls="atrulePrelude",cs={children:[[]]};function us(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 hs(e){this.children(e)}var ds={};Ht(ds,{generate:()=>Es,name:()=>vs,parse:()=>As,structure:()=>xs});var ps=36,ms=42,gs=61,fs=94,bs=124,ys=126;function ws(){this.eof&&this.error("Unexpected end of input");let e=this.tokenStart,t=!1;return this.isDelim(ms)?(t=!0,this.next()):this.isDelim(bs)||this.eat(1),this.isDelim(bs)?this.charCodeAt(this.tokenStart+1)!==gs?(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 ks(){let e=this.tokenStart,t=this.charCodeAt(e);return t!==gs&&t!==ys&&t!==fs&&t!==ps&&t!==ms&&t!==bs&&this.error("Attribute selector (=, ~=, ^=, $=, *=, |=) is expected"),this.next(),t!==gs&&(this.isDelim(gs)||this.error("Equal sign is expected"),this.next()),this.substrToCursor(e)}var vs="AttributeSelector",xs={name:"Identifier",matcher:[String,null],value:["String","Identifier",null],flags:[String,null]};function As(){let e,t=this.tokenStart,n=null,r=null,a=null;return this.eat(19),this.skipSC(),e=ws.call(this),this.skipSC(),20!==this.tokenType&&(1!==this.tokenType&&(n=ks.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 Es(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 Ss={};Ht(Ss,{generate:()=>Ms,name:()=>Ls,parse:()=>Ns,structure:()=>Ps,walkContext:()=>zs});var Ts=38;function Cs(e){return this.Raw(e,null,!0)}function Rs(){return this.parseWithFallback(this.Rule,Cs)}function Is(e){return this.Raw(e,this.consumeUntilSemicolonIncluded,!0)}function _s(){if(17===this.tokenType)return Is.call(this,this.tokenIndex);let e=this.parseWithFallback(this.Declaration,Is);return 17===this.tokenType&&this.next(),e}var Ls="Block",zs="block",Ps={children:[["Atrule","Rule","Declaration"]]};function Ns(e){let t=e?_s:Rs,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),Cs));break;default:e&&this.isDelim(Ts)?r.push(Rs.call(this)):r.push(t.call(this))}return this.eof||this.eat(24),{type:"Block",loc:this.getLocation(n,this.tokenStart),children:r}}function Ms(e){this.token(23,"{"),this.children(e,(e=>{"Declaration"===e.type&&this.token(17,";")})),this.token(24,"}")}var Us={};Ht(Us,{generate:()=>Fs,name:()=>Os,parse:()=>qs,structure:()=>Ds});var Os="Brackets",Ds={children:[[]]};function qs(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 Fs(e){this.token(9,"["),this.children(e),this.token(9,"]")}var js={};Ht(js,{generate:()=>Ws,name:()=>Bs,parse:()=>Vs,structure:()=>Hs});var Bs="CDC",Hs=[];function Vs(){let e=this.tokenStart;return this.eat(15),{type:"CDC",loc:this.getLocation(e,this.tokenStart)}}function Ws(){this.token(15,"--\x3e")}var $s={};Ht($s,{generate:()=>Ks,name:()=>Js,parse:()=>Ys,structure:()=>Gs});var Js="CDO",Gs=[];function Ys(){let e=this.tokenStart;return this.eat(14),{type:"CDO",loc:this.getLocation(e,this.tokenStart)}}function Ks(){this.token(14,"\x3c!--")}var Qs={};Ht(Qs,{generate:()=>nl,name:()=>Xs,parse:()=>tl,structure:()=>el});var Zs=46,Xs="ClassSelector",el={name:String};function tl(){return this.eatDelim(Zs),{type:"ClassSelector",loc:this.getLocation(this.tokenStart-1,this.tokenEnd),name:this.consume(1)}}function nl(e){this.token(9,"."),this.token(1,e.name)}var rl={};Ht(rl,{generate:()=>hl,name:()=>ll,parse:()=>ul,structure:()=>cl});var al=43,ol=47,il=62,sl=126,ll="Combinator",cl={name:String};function ul(){let e,t=this.tokenStart;switch(this.tokenType){case 13:e=" ";break;case 9:switch(this.charCodeAt(this.tokenStart)){case il:case al:case sl:this.next();break;case ol:this.next(),this.eatIdent("deep"),this.eatDelim(ol);break;default:this.error("Combinator is expected")}e=this.substrToCursor(t)}return{type:"Combinator",loc:this.getLocation(t,this.tokenStart),name:e}}function hl(e){this.tokenize(e.name)}var dl={};Ht(dl,{generate:()=>yl,name:()=>gl,parse:()=>bl,structure:()=>fl});var pl=42,ml=47,gl="Comment",fl={value:String};function bl(){let e=this.tokenStart,t=this.tokenEnd;return this.eat(25),t-e+2>=2&&this.charCodeAt(t-2)===pl&&this.charCodeAt(t-1)===ml&&(t-=2),{type:"Comment",loc:this.getLocation(e,this.tokenStart),value:this.substring(e+2,t)}}function yl(e){this.token(25,"/*"+e.value+"*/")}var wl={};Ht(wl,{generate:()=>Nl,name:()=>_l,parse:()=>Pl,structure:()=>zl,walkContext:()=>Ll});var kl=33,vl=35,xl=36,Al=38,El=42,Sl=43,Tl=47;function Cl(e){return this.Raw(e,this.consumeUntilExclamationMarkOrSemicolon,!0)}function Rl(e){return this.Raw(e,this.consumeUntilExclamationMarkOrSemicolon,!1)}function Il(){let e=this.tokenIndex,t=this.Value();return"Raw"!==t.type&&!1===this.eof&&17!==this.tokenType&&!1===this.isDelim(kl)&&!1===this.isBalanceEdge(e)&&this.error(),t}var _l="Declaration",Ll="declaration",zl={important:[Boolean,String],property:String,value:["Value","Raw"]};function Pl(){let e,t=this.tokenStart,n=this.tokenIndex,r=Ml.call(this),a=ua(r),o=a?this.parseCustomProperty:this.parseValue,i=a?Rl:Cl,s=!1;this.skipSC(),this.eat(16);let l=this.tokenIndex;if(a||this.skipSC(),e=o?this.parseWithFallback(Il,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(kl)&&(s=Ul.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 Nl(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 Ml(){let e=this.tokenStart;if(9===this.tokenType)switch(this.charCodeAt(this.tokenStart)){case El:case xl:case Sl:case vl:case Al:this.next();break;case Tl:this.next(),this.isDelim(Tl)&&this.next()}return 4===this.tokenType?this.eat(4):this.eat(1),this.substrToCursor(e)}function Ul(){this.eat(9),this.skipSC();let e=this.consume(1);return"important"===e||e}var Ol={};Ht(Ol,{generate:()=>Hl,name:()=>Fl,parse:()=>Bl,structure:()=>jl});var Dl=38;function ql(e){return this.Raw(e,this.consumeUntilSemicolonIncluded,!0)}var Fl="DeclarationList",jl={children:[["Declaration","Atrule","Rule"]]};function Bl(){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),ql));break;default:this.isDelim(Dl)?e.push(this.parseWithFallback(this.Rule,ql)):e.push(this.parseWithFallback(this.Declaration,ql))}return{type:"DeclarationList",loc:this.getLocationFromList(e),children:e}}function Hl(e){this.children(e,(e=>{"Declaration"===e.type&&this.token(17,";")}))}var Vl={};Ht(Vl,{generate:()=>Gl,name:()=>Wl,parse:()=>Jl,structure:()=>$l});var Wl="Dimension",$l={value:String,unit:String};function Jl(){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 Gl(e){this.token(12,e.value+e.unit)}var Yl={};Ht(Yl,{generate:()=>ec,name:()=>Kl,parse:()=>Xl,structure:()=>Zl,walkContext:()=>Ql});var Kl="Function",Ql="function",Zl={name:String,children:[[]]};function Xl(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 ec(e){this.token(2,e.name+"("),this.children(e),this.token(22,")")}var tc={};Ht(tc,{generate:()=>ic,name:()=>rc,parse:()=>oc,structure:()=>ac,xxx:()=>nc});var nc="XXX",rc="Hash",ac={value:String};function oc(){let e=this.tokenStart;return this.eat(4),{type:"Hash",loc:this.getLocation(e,this.tokenStart),value:this.substrToCursor(e+1)}}function ic(e){this.token(4,"#"+e.value)}var sc={};Ht(sc,{generate:()=>hc,name:()=>lc,parse:()=>uc,structure:()=>cc});var lc="Identifier",cc={name:String};function uc(){return{type:"Identifier",loc:this.getLocation(this.tokenStart,this.tokenEnd),name:this.consume(1)}}function hc(e){this.token(1,e.name)}var dc={};Ht(dc,{generate:()=>fc,name:()=>pc,parse:()=>gc,structure:()=>mc});var pc="IdSelector",mc={name:String};function gc(){let e=this.tokenStart;return this.eat(4),{type:"IdSelector",loc:this.getLocation(e,this.tokenStart),name:this.substrToCursor(e+1)}}function fc(e){this.token(9,"#"+e.name)}var bc={};Ht(bc,{generate:()=>vc,name:()=>yc,parse:()=>kc,structure:()=>wc});var yc="MediaFeature",wc={name:String,value:["Identifier","Number","Dimension","Ratio",null]};function kc(){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 vc(e){this.token(21,"("),this.token(1,e.name),null!==e.value&&(this.token(16,":"),this.node(e.value)),this.token(22,")")}var xc={};Ht(xc,{generate:()=>Tc,name:()=>Ac,parse:()=>Sc,structure:()=>Ec});var Ac="MediaQuery",Ec={children:[["Identifier","MediaFeature","WhiteSpace"]]};function Sc(){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 Tc(e){this.children(e)}var Cc={};Ht(Cc,{generate:()=>Lc,name:()=>Rc,parse:()=>_c,structure:()=>Ic});var Rc="MediaQueryList",Ic={children:[["MediaQuery"]]};function _c(){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 Lc(e){this.children(e,(()=>this.token(18,",")))}var zc={};Ht(zc,{generate:()=>Oc,name:()=>Nc,parse:()=>Uc,structure:()=>Mc});var Pc=38,Nc="NestingSelector",Mc={};function Uc(){let e=this.tokenStart;return this.eatDelim(Pc),{type:"NestingSelector",loc:this.getLocation(e,this.tokenStart)}}function Oc(){this.token(9,"&")}var Dc={};Ht(Dc,{generate:()=>Bc,name:()=>qc,parse:()=>jc,structure:()=>Fc});var qc="Nth",Fc={nth:["AnPlusB","Identifier"],selector:["SelectorList",null]};function jc(){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 Bc(e){this.node(e.nth),null!==e.selector&&(this.token(1,"of"),this.node(e.selector))}var Hc={};Ht(Hc,{generate:()=>Jc,name:()=>Vc,parse:()=>$c,structure:()=>Wc});var Vc="Number",Wc={value:String};function $c(){return{type:"Number",loc:this.getLocation(this.tokenStart,this.tokenEnd),value:this.consume(10)}}function Jc(e){this.token(10,e.value)}var Gc={};Ht(Gc,{generate:()=>Zc,name:()=>Yc,parse:()=>Qc,structure:()=>Kc});var Yc="Operator",Kc={value:String};function Qc(){let e=this.tokenStart;return this.next(),{type:"Operator",loc:this.getLocation(e,this.tokenStart),value:this.substrToCursor(e)}}function Zc(e){this.tokenize(e.value)}var Xc={};Ht(Xc,{generate:()=>ru,name:()=>eu,parse:()=>nu,structure:()=>tu});var eu="Parentheses",tu={children:[[]]};function nu(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 ru(e){this.token(21,"("),this.children(e),this.token(22,")")}var au={};Ht(au,{generate:()=>lu,name:()=>ou,parse:()=>su,structure:()=>iu});var ou="Percentage",iu={value:String};function su(){return{type:"Percentage",loc:this.getLocation(this.tokenStart,this.tokenEnd),value:this.consumeNumber(11)}}function lu(e){this.token(11,e.value+"%")}var cu={};Ht(cu,{generate:()=>mu,name:()=>uu,parse:()=>pu,structure:()=>du,walkContext:()=>hu});var uu="PseudoClassSelector",hu="function",du={name:String,children:[["Raw"],null]};function pu(){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 mu(e){this.token(16,":"),null===e.children?this.token(1,e.name):(this.token(2,e.name+"("),this.children(e),this.token(22,")"))}var gu={};Ht(gu,{generate:()=>ku,name:()=>fu,parse:()=>wu,structure:()=>yu,walkContext:()=>bu});var fu="PseudoElementSelector",bu="function",yu={name:String,children:[["Raw"],null]};function wu(){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 ku(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 vu={};Ht(vu,{generate:()=>Ru,name:()=>Su,parse:()=>Cu,structure:()=>Tu});var xu=47,Au=46;function Eu(){this.skipSC();let e=this.consume(10);for(let t=0;t<e.length;t++){let n=e.charCodeAt(t);!En(n)&&n!==Au&&this.error("Unsigned number is expected",this.tokenStart-e.length+t)}return 0===Number(e)&&this.error("Zero number is not allowed",this.tokenStart-e.length),e}var Su="Ratio",Tu={left:String,right:String};function Cu(){let e,t=this.tokenStart,n=Eu.call(this);return this.skipSC(),this.eatDelim(xu),e=Eu.call(this),{type:"Ratio",loc:this.getLocation(t,this.tokenStart),left:n,right:e}}function Ru(e){this.token(10,e.left),this.token(9,"/"),this.token(10,e.right)}var Iu={};function _u(){return this.tokenIndex>0&&13===this.lookupType(-1)?this.tokenIndex>1?this.getTokenStart(this.tokenIndex-1):this.firstCharOffset:this.tokenStart}Ht(Iu,{generate:()=>Nu,name:()=>Lu,parse:()=>Pu,structure:()=>zu});var Lu="Raw",zu={value:String};function Pu(e,t,n){let r,a=this.getTokenStart(e);return this.skipUntilBalanced(e,t||this.consumeUntilBalanceEnd),r=n&&this.tokenStart>a?_u.call(this):this.tokenStart,{type:"Raw",loc:this.getLocation(a,r),value:this.substring(a,r)}}function Nu(e){this.tokenize(e.value)}var Mu={};function Uu(e){return this.Raw(e,this.consumeUntilLeftCurlyBracket,!0)}function Ou(){let e=this.SelectorList();return"Raw"!==e.type&&!1===this.eof&&23!==this.tokenType&&this.error(),e}Ht(Mu,{generate:()=>Bu,name:()=>Du,parse:()=>ju,structure:()=>Fu,walkContext:()=>qu});var Du="Rule",qu="rule",Fu={prelude:["SelectorList","Raw"],block:["Block"]};function ju(){let e,t,n=this.tokenIndex,r=this.tokenStart;return e=this.parseRulePrelude?this.parseWithFallback(Ou,Uu):Uu.call(this,n),t=this.Block(!0),{type:"Rule",loc:this.getLocation(r,this.tokenStart),prelude:e,block:t}}function Bu(e){this.node(e.prelude),this.node(e.block)}var Hu={};Ht(Hu,{generate:()=>Ju,name:()=>Vu,parse:()=>$u,structure:()=>Wu});var Vu="Selector",Wu={children:[["TypeSelector","IdSelector","ClassSelector","AttributeSelector","PseudoClassSelector","PseudoElementSelector","Combinator","WhiteSpace"]]};function $u(){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 Ju(e){this.children(e)}var Gu={};Ht(Gu,{generate:()=>Xu,name:()=>Yu,parse:()=>Zu,structure:()=>Qu,walkContext:()=>Ku});var Yu="SelectorList",Ku="selector",Qu={children:[["Selector","Raw"]]};function Zu(){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 Xu(e){this.children(e,(()=>this.token(18,",")))}var eh={};Ht(eh,{generate:()=>uh,name:()=>sh,parse:()=>ch,structure:()=>lh});var th={};Ht(th,{decode:()=>oh,encode:()=>ih});var nh=92,rh=34,ah=39;function oh(e){let t=e.length,n=e.charCodeAt(0),r=n===rh||n===ah?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===nh){if(n===a){n!==t-1&&(o=e.substr(n+1));break}if(r=e.charCodeAt(++n),zn(nh,r)){let t=n-1,r=Gn(e,t);n=r-1,o+=Zn(e.substring(t+1,r))}else 13===r&&10===e.charCodeAt(n+1)&&n++}else o+=e[n]}return o}function ih(e,t){let n=t?"'":'"',r=t?ah:rh,a="",o=!1;for(let t=0;t<e.length;t++){let n=e.charCodeAt(t);0!==n?n<=31||127===n?(a+="\\"+n.toString(16),o=!0):n===r||n===nh?(a+="\\"+e.charAt(t),o=!1):(o&&(Sn(n)||Ln(n))&&(a+=" "),a+=e.charAt(t),o=!1):a+="�"}return n+a+n}var sh="String",lh={value:String};function ch(){return{type:"String",loc:this.getLocation(this.tokenStart,this.tokenEnd),value:oh(this.consume(5))}}function uh(e){this.token(5,ih(e.value))}var hh={};Ht(hh,{generate:()=>yh,name:()=>mh,parse:()=>bh,structure:()=>fh,walkContext:()=>gh});var dh=33;function ph(e){return this.Raw(e,null,!1)}var mh="StyleSheet",gh="stylesheet",fh={children:[["Comment","CDO","CDC","Atrule","Rule","Raw"]]};function bh(){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)!==dh){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,ph);break;default:e=this.parseWithFallback(this.Rule,ph)}n.push(e)}return{type:"StyleSheet",loc:this.getLocation(t,this.tokenStart),children:n}}function yh(e){this.children(e)}var wh={};Ht(wh,{generate:()=>Th,name:()=>Ah,parse:()=>Sh,structure:()=>Eh});var kh=42,vh=124;function xh(){1!==this.tokenType&&!1===this.isDelim(kh)&&this.error("Identifier or asterisk is expected"),this.next()}var Ah="TypeSelector",Eh={name:String};function Sh(){let e=this.tokenStart;return this.isDelim(vh)?(this.next(),xh.call(this)):(xh.call(this),this.isDelim(vh)&&(this.next(),xh.call(this))),{type:"TypeSelector",loc:this.getLocation(e,this.tokenStart),name:this.substrToCursor(e)}}function Th(e){this.tokenize(e.name)}var Ch={};Ht(Ch,{generate:()=>Dh,name:()=>Mh,parse:()=>Oh,structure:()=>Uh});var Rh=43,Ih=45,_h=63;function Lh(e,t){let n=0;for(let r=this.tokenStart+e;r<this.tokenEnd;r++){let a=this.charCodeAt(r);if(a===Ih&&t&&0!==n)return Lh.call(this,e+n+1,!1),-1;Sn(a)||this.error(t&&0!==n?"Hyphen minus"+(n<6?" or hex digit":"")+" is expected":n<6?"Hex digit is expected":"Unexpected input",r),++n>6&&this.error("Too many hex digits",r)}return this.next(),n}function zh(e){let t=0;for(;this.isDelim(_h);)++t>e&&this.error("Too many question marks"),this.next()}function Ph(e){this.charCodeAt(this.tokenStart)!==e&&this.error((e===Rh?"Plus sign":"Hyphen minus")+" is expected")}function Nh(){let e=0;switch(this.tokenType){case 10:if(e=Lh.call(this,1,!0),this.isDelim(_h)){zh.call(this,6-e);break}if(12===this.tokenType||10===this.tokenType){Ph.call(this,Ih),Lh.call(this,1,!1);break}break;case 12:e=Lh.call(this,1,!0),e>0&&zh.call(this,6-e);break;default:if(this.eatDelim(Rh),1===this.tokenType){e=Lh.call(this,0,!0),e>0&&zh.call(this,6-e);break}if(this.isDelim(_h)){this.next(),zh.call(this,5);break}this.error("Hex digit or question mark is expected")}}var Mh="UnicodeRange",Uh={value:String};function Oh(){let e=this.tokenStart;return this.eatIdent("u"),Nh.call(this),{type:"UnicodeRange",loc:this.getLocation(e,this.tokenStart),value:this.substrToCursor(e)}}function Dh(e){this.tokenize(e.value)}var qh={};Ht(qh,{generate:()=>Zh,name:()=>Yh,parse:()=>Qh,structure:()=>Kh});var Fh={};Ht(Fh,{decode:()=>Jh,encode:()=>Gh});var jh=32,Bh=92,Hh=34,Vh=39,Wh=40,$h=41;function Jh(e){let t=e.length,n=4,r=e.charCodeAt(t-1)===$h?t-2:t-1,a="";for(;n<r&&Ln(e.charCodeAt(n));)n++;for(;n<r&&Ln(e.charCodeAt(r));)r--;for(let o=n;o<=r;o++){let n=e.charCodeAt(o);if(n===Bh){if(o===r){o!==t-1&&(a=e.substr(o+1));break}if(n=e.charCodeAt(++o),zn(Bh,n)){let t=o-1,n=Gn(e,t);o=n-1,a+=Zn(e.substring(t+1,n))}else 13===n&&10===e.charCodeAt(o+1)&&o++}else a+=e[o]}return a}function Gh(e){let t="",n=!1;for(let r=0;r<e.length;r++){let a=e.charCodeAt(r);0!==a?a<=31||127===a?(t+="\\"+a.toString(16),n=!0):a===jh||a===Bh||a===Hh||a===Vh||a===Wh||a===$h?(t+="\\"+e.charAt(r),n=!1):(n&&Sn(a)&&(t+=" "),t+=e.charAt(r),n=!1):t+="�"}return"url("+t+")"}var Yh="Url",Kh={value:String};function Qh(){let e,t=this.tokenStart;switch(this.tokenType){case 7:e=Jh(this.consume(7));break;case 2:this.cmpStr(this.tokenStart,this.tokenEnd,"url(")||this.error("Function name must be `url`"),this.eat(2),this.skipSC(),e=oh(this.consume(5)),this.skipSC(),this.eof||this.eat(22);break;default:this.error("Url or Function is expected")}return{type:"Url",loc:this.getLocation(t,this.tokenStart),value:e}}function Zh(e){this.token(7,Gh(e.value))}var Xh={};Ht(Xh,{generate:()=>rd,name:()=>ed,parse:()=>nd,structure:()=>td});var ed="Value",td={children:[[]]};function nd(){let e=this.tokenStart,t=this.readSequence(this.scope.Value);return{type:"Value",loc:this.getLocation(e,this.tokenStart),children:t}}function rd(e){this.children(e)}var ad={};Ht(ad,{generate:()=>cd,name:()=>id,parse:()=>ld,structure:()=>sd});var od=Object.freeze({type:"WhiteSpace",loc:null,value:" "}),id="WhiteSpace",sd={value:String};function ld(){return this.eat(13),od}function cd(e){this.token(13,e.value)}var ud={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( <calc-sum> )","absolute-size":"xx-small|x-small|small|medium|large|x-large|xx-large|xxx-large","acos()":"acos( <calc-sum> )","alpha-value":"<number>|<percentage>","angle-percentage":"<angle>|<percentage>","angular-color-hint":"<angle-percentage>","angular-color-stop":"<color>&&<color-stop-angle>?","angular-color-stop-list":"[<angular-color-stop> [, <angular-color-hint>]?]# , <angular-color-stop>","animateable-feature":"scroll-position|contents|<custom-ident>","asin()":"asin( <calc-sum> )","atan()":"atan( <calc-sum> )","atan2()":"atan2( <calc-sum> , <calc-sum> )",attachment:"scroll|fixed|local","attr()":"attr( <attr-name> <type-or-unit>? [, <attr-fallback>]? )","attr-matcher":"['~'|'|'|'^'|'$'|'*']? '='","attr-modifier":"i|s","attribute-selector":"'[' <wq-name> ']'|'[' <wq-name> <attr-matcher> [<string-token>|<ident-token>] <attr-modifier>? ']'","auto-repeat":"repeat( [auto-fill|auto-fit] , [<line-names>? <fixed-size>]+ <line-names>? )","auto-track-list":"[<line-names>? [<fixed-size>|<fixed-repeat>]]* <line-names>? <auto-repeat> [<line-names>? [<fixed-size>|<fixed-repeat>]]* <line-names>?",axis:"block|inline|vertical|horizontal","baseline-position":"[first|last]? baseline","basic-shape":"<inset()>|<circle()>|<ellipse()>|<polygon()>|<path()>","bg-image":"none|<image>","bg-layer":"<bg-image>||<bg-position> [/ <bg-size>]?||<repeat-style>||<attachment>||<box>||<box>","bg-position":"[[left|center|right|top|bottom|<length-percentage>]|[left|center|right|<length-percentage>] [top|center|bottom|<length-percentage>]|[center|[left|right] <length-percentage>?]&&[center|[top|bottom] <length-percentage>?]]","bg-size":"[<length-percentage>|auto]{1,2}|cover|contain","blur()":"blur( <length> )","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( <number-percentage> )","calc()":"calc( <calc-sum> )","calc-sum":"<calc-product> [['+'|'-'] <calc-product>]*","calc-product":"<calc-value> ['*' <calc-value>|'/' <number>]*","calc-value":"<number>|<dimension>|<percentage>|<calc-constant>|( <calc-sum> )","calc-constant":"e|pi|infinity|-infinity|NaN","cf-final-image":"<image>|<color>","cf-mixing-image":"<percentage>?&&<image>","circle()":"circle( [<shape-radius>]? [at <position>]? )","clamp()":"clamp( <calc-sum>#{3} )","class-selector":"'.' <ident-token>","clip-source":"<url>",color:"<rgb()>|<rgba()>|<hsl()>|<hsla()>|<hwb()>|<lab()>|<lch()>|<hex-color>|<named-color>|currentcolor|<deprecated-system-color>","color-stop":"<color-stop-length>|<color-stop-angle>","color-stop-angle":"<angle-percentage>{1,2}","color-stop-length":"<length-percentage>{1,2}","color-stop-list":"[<linear-color-stop> [, <linear-color-hint>]?]# , <linear-color-stop>",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":"[<type-selector>? <subclass-selector>* [<pseudo-element-selector> <pseudo-class-selector>*]*]!","compound-selector-list":"<compound-selector>#","complex-selector":"<compound-selector> [<combinator>? <compound-selector>]*","complex-selector-list":"<complex-selector>#","conic-gradient()":"conic-gradient( [from <angle>]? [at <position>]? , <angular-color-stop-list> )","contextual-alt-values":"[contextual|no-contextual]","content-distribution":"space-between|space-around|space-evenly|stretch","content-list":"[<string>|contents|<image>|<counter>|<quote>|<target>|<leader()>|<attr()>]+","content-position":"center|start|end|flex-start|flex-end","content-replacement":"<image>","contrast()":"contrast( [<number-percentage>] )","cos()":"cos( <calc-sum> )",counter:"<counter()>|<counters()>","counter()":"counter( <counter-name> , <counter-style>? )","counter-name":"<custom-ident>","counter-style":"<counter-style-name>|symbols( )","counter-style-name":"<custom-ident>","counters()":"counters( <counter-name> , <string> , <counter-style>? )","cross-fade()":"cross-fade( <cf-mixing-image> , <cf-final-image>? )","cubic-bezier-timing-function":"ease|ease-in|ease-out|ease-in-out|cubic-bezier( <number [0,1]> , <number> , <number [0,1]> , <number> )","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":"<display-outside>?&&[flow|flow-root]?&&list-item","display-outside":"block|inline|run-in","drop-shadow()":"drop-shadow( <length>{2,3} <color>? )","east-asian-variant-values":"[jis78|jis83|jis90|jis04|simplified|traditional]","east-asian-width-values":"[full-width|proportional-width]","element()":"element( <custom-ident> , [first|start|last|first-except]? )|element( <id-selector> )","ellipse()":"ellipse( [<shape-radius>{2}]? [at <position>]? )","ending-shape":"circle|ellipse","env()":"env( <custom-ident> , <declaration-value>? )","exp()":"exp( <calc-sum> )","explicit-track-list":"[<line-names>? <track-size>]+ <line-names>?","family-name":"<string>|<custom-ident>+","feature-tag-value":"<string> [<integer>|on|off]?","feature-type":"@stylistic|@historical-forms|@styleset|@character-variant|@swash|@ornaments|@annotation","feature-value-block":"<feature-type> '{' <feature-value-declaration-list> '}'","feature-value-block-list":"<feature-value-block>+","feature-value-declaration":"<custom-ident> : <integer>+ ;","feature-value-declaration-list":"<feature-value-declaration>","feature-value-name":"<custom-ident>","fill-rule":"nonzero|evenodd","filter-function":"<blur()>|<brightness()>|<contrast()>|<drop-shadow()>|<grayscale()>|<hue-rotate()>|<invert()>|<opacity()>|<saturate()>|<sepia()>","filter-function-list":"[<filter-function>|<url>]+","final-bg-layer":"<'background-color'>||<bg-image>||<bg-position> [/ <bg-size>]?||<repeat-style>||<attachment>||<box>||<box>","fixed-breadth":"<length-percentage>","fixed-repeat":"repeat( [<integer [1,∞]>] , [<line-names>? <fixed-size>]+ <line-names>? )","fixed-size":"<fixed-breadth>|minmax( <fixed-breadth> , <track-breadth> )|minmax( <inflexible-breadth> , <fixed-breadth> )","font-stretch-absolute":"normal|ultra-condensed|extra-condensed|condensed|semi-condensed|semi-expanded|expanded|extra-expanded|ultra-expanded|<percentage>","font-variant-css21":"[normal|small-caps]","font-weight-absolute":"normal|bold|<number [1,1000]>","frequency-percentage":"<frequency>|<percentage>","general-enclosed":"[<function-token> <any-value> )]|( <ident> <any-value> )","generic-family":"serif|sans-serif|cursive|fantasy|monospace|-apple-system","generic-name":"serif|sans-serif|cursive|fantasy|monospace","geometry-box":"<shape-box>|fill-box|stroke-box|view-box",gradient:"<linear-gradient()>|<repeating-linear-gradient()>|<radial-gradient()>|<repeating-radial-gradient()>|<conic-gradient()>|<repeating-conic-gradient()>|<-legacy-gradient>","grayscale()":"grayscale( <number-percentage> )","grid-line":"auto|<custom-ident>|[<integer>&&<custom-ident>?]|[span&&[<integer>||<custom-ident>]]","historical-lig-values":"[historical-ligatures|no-historical-ligatures]","hsl()":"hsl( <hue> <percentage> <percentage> [/ <alpha-value>]? )|hsl( <hue> , <percentage> , <percentage> , <alpha-value>? )","hsla()":"hsla( <hue> <percentage> <percentage> [/ <alpha-value>]? )|hsla( <hue> , <percentage> , <percentage> , <alpha-value>? )",hue:"<number>|<angle>","hue-rotate()":"hue-rotate( <angle> )","hwb()":"hwb( [<hue>|none] [<percentage>|none] [<percentage>|none] [/ [<alpha-value>|none]]? )","hypot()":"hypot( <calc-sum># )",image:"<url>|<image()>|<image-set()>|<element()>|<paint()>|<cross-fade()>|<gradient>","image()":"image( <image-tags>? [<image-src>? , <color>?]! )","image-set()":"image-set( <image-set-option># )","image-set-option":"[<image>|<string>] [<resolution>||type( <string> )]","image-src":"<url>|<string>","image-tags":"ltr|rtl","inflexible-breadth":"<length-percentage>|min-content|max-content|auto","inset()":"inset( <length-percentage>{1,4} [round <'border-radius'>]? )","invert()":"invert( <number-percentage> )","keyframes-name":"<custom-ident>|<string>","keyframe-block":"<keyframe-selector># { <declaration-list> }","keyframe-block-list":"<keyframe-block>+","keyframe-selector":"from|to|<percentage>","lab()":"lab( [<percentage>|<number>|none] [<percentage>|<number>|none] [<percentage>|<number>|none] [/ [<alpha-value>|none]]? )","layer()":"layer( <layer-name> )","layer-name":"<ident> ['.' <ident>]*","lch()":"lch( [<percentage>|<number>|none] [<percentage>|<number>|none] [<hue>|none] [/ [<alpha-value>|none]]? )","leader()":"leader( <leader-type> )","leader-type":"dotted|solid|space|<string>","length-percentage":"<length>|<percentage>","line-names":"'[' <custom-ident>* ']'","line-name-list":"[<line-names>|<name-repeat>]+","line-style":"none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset","line-width":"<length>|thin|medium|thick","linear-color-hint":"<length-percentage>","linear-color-stop":"<color> <color-stop-length>?","linear-gradient()":"linear-gradient( [<angle>|to <side-or-corner>]? , <color-stop-list> )","log()":"log( <calc-sum> , <calc-sum>? )","mask-layer":"<mask-reference>||<position> [/ <bg-size>]?||<repeat-style>||<geometry-box>||[<geometry-box>|no-clip]||<compositing-operator>||<masking-mode>","mask-position":"[<length-percentage>|left|center|right] [<length-percentage>|top|center|bottom]?","mask-reference":"none|<image>|<mask-source>","mask-source":"<url>","masking-mode":"alpha|luminance|match-source","matrix()":"matrix( <number>#{6} )","matrix3d()":"matrix3d( <number>#{16} )","max()":"max( <calc-sum># )","media-and":"<media-in-parens> [and <media-in-parens>]+","media-condition":"<media-not>|<media-and>|<media-or>|<media-in-parens>","media-condition-without-or":"<media-not>|<media-and>|<media-in-parens>","media-feature":"( [<mf-plain>|<mf-boolean>|<mf-range>] )","media-in-parens":"( <media-condition> )|<media-feature>|<general-enclosed>","media-not":"not <media-in-parens>","media-or":"<media-in-parens> [or <media-in-parens>]+","media-query":"<media-condition>|[not|only]? <media-type> [and <media-condition-without-or>]?","media-query-list":"<media-query>#","media-type":"<ident>","mf-boolean":"<mf-name>","mf-name":"<ident>","mf-plain":"<mf-name> : <mf-value>","mf-range":"<mf-name> ['<'|'>']? '='? <mf-value>|<mf-value> ['<'|'>']? '='? <mf-name>|<mf-value> '<' '='? <mf-name> '<' '='? <mf-value>|<mf-value> '>' '='? <mf-name> '>' '='? <mf-value>","mf-value":"<number>|<dimension>|<ident>|<ratio>","min()":"min( <calc-sum># )","minmax()":"minmax( [<length-percentage>|min-content|max-content|auto] , [<length-percentage>|<flex>|min-content|max-content|auto] )","mod()":"mod( <calc-sum> , <calc-sum> )","name-repeat":"repeat( [<integer [1,∞]>|auto-fill] , <line-names>+ )","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":"<ident>","ns-prefix":"[<ident-token>|'*']? '|'","number-percentage":"<number>|<percentage>","numeric-figure-values":"[lining-nums|oldstyle-nums]","numeric-fraction-values":"[diagonal-fractions|stacked-fractions]","numeric-spacing-values":"[proportional-nums|tabular-nums]",nth:"<an-plus-b>|even|odd","opacity()":"opacity( [<number-percentage>] )","overflow-position":"unsafe|safe","outline-radius":"<length>|<percentage>","page-body":"<declaration>? [; <page-body>]?|<page-margin-box> <page-body>","page-margin-box":"<page-margin-box-type> '{' <declaration-list> '}'","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-selector":"<pseudo-page>+|<ident> <pseudo-page>*","page-size":"A5|A4|A3|B5|B4|JIS-B5|JIS-B4|letter|legal|ledger","path()":"path( [<fill-rule> ,]? <string> )","paint()":"paint( <ident> , <declaration-value>? )","perspective()":"perspective( [<length [0,∞]>|none] )","polygon()":"polygon( <fill-rule>? , [<length-percentage> <length-percentage>]# )",position:"[[left|center|right]||[top|center|bottom]|[left|center|right|<length-percentage>] [top|center|bottom|<length-percentage>]?|[[left|right] <length-percentage>]&&[[top|bottom] <length-percentage>]]","pow()":"pow( <calc-sum> , <calc-sum> )","pseudo-class-selector":"':' <ident-token>|':' <function-token> <any-value> ')'","pseudo-element-selector":"':' <pseudo-class-selector>","pseudo-page":": [left|right|first|blank]",quote:"open-quote|close-quote|no-open-quote|no-close-quote","radial-gradient()":"radial-gradient( [<ending-shape>||<size>]? [at <position>]? , <color-stop-list> )",ratio:"<number [0,∞]> [/ <number [0,∞]>]?","relative-selector":"<combinator>? <complex-selector>","relative-selector-list":"<relative-selector>#","relative-size":"larger|smaller","rem()":"rem( <calc-sum> , <calc-sum> )","repeat-style":"repeat-x|repeat-y|[repeat|space|round|no-repeat]{1,2}","repeating-conic-gradient()":"repeating-conic-gradient( [from <angle>]? [at <position>]? , <angular-color-stop-list> )","repeating-linear-gradient()":"repeating-linear-gradient( [<angle>|to <side-or-corner>]? , <color-stop-list> )","repeating-radial-gradient()":"repeating-radial-gradient( [<ending-shape>||<size>]? [at <position>]? , <color-stop-list> )","reversed-counter-name":"reversed( <counter-name> )","rgb()":"rgb( <percentage>{3} [/ <alpha-value>]? )|rgb( <number>{3} [/ <alpha-value>]? )|rgb( <percentage>#{3} , <alpha-value>? )|rgb( <number>#{3} , <alpha-value>? )","rgba()":"rgba( <percentage>{3} [/ <alpha-value>]? )|rgba( <number>{3} [/ <alpha-value>]? )|rgba( <percentage>#{3} , <alpha-value>? )|rgba( <number>#{3} , <alpha-value>? )","rotate()":"rotate( [<angle>|<zero>] )","rotate3d()":"rotate3d( <number> , <number> , <number> , [<angle>|<zero>] )","rotateX()":"rotateX( [<angle>|<zero>] )","rotateY()":"rotateY( [<angle>|<zero>] )","rotateZ()":"rotateZ( [<angle>|<zero>] )","round()":"round( <rounding-strategy>? , <calc-sum> , <calc-sum> )","rounding-strategy":"nearest|up|down|to-zero","saturate()":"saturate( <number-percentage> )","scale()":"scale( [<number>|<percentage>]#{1,2} )","scale3d()":"scale3d( [<number>|<percentage>]#{3} )","scaleX()":"scaleX( [<number>|<percentage>] )","scaleY()":"scaleY( [<number>|<percentage>] )","scaleZ()":"scaleZ( [<number>|<percentage>] )",scroller:"root|nearest","self-position":"center|start|end|self-start|self-end|flex-start|flex-end","shape-radius":"<length-percentage>|closest-side|farthest-side","sign()":"sign( <calc-sum> )","skew()":"skew( [<angle>|<zero>] , [<angle>|<zero>]? )","skewX()":"skewX( [<angle>|<zero>] )","skewY()":"skewY( [<angle>|<zero>] )","sepia()":"sepia( <number-percentage> )",shadow:"inset?&&<length>{2,4}&&<color>?","shadow-t":"[<length>{2,3}&&<color>?]",shape:"rect( <top> , <right> , <bottom> , <left> )|rect( <top> <right> <bottom> <left> )","shape-box":"<box>|margin-box","side-or-corner":"[left|right]||[top|bottom]","sin()":"sin( <calc-sum> )","single-animation":"<time>||<easing-function>||<time>||<single-animation-iteration-count>||<single-animation-direction>||<single-animation-fill-mode>||<single-animation-play-state>||[none|<keyframes-name>]","single-animation-direction":"normal|reverse|alternate|alternate-reverse","single-animation-fill-mode":"none|forwards|backwards|both","single-animation-iteration-count":"infinite|<number>","single-animation-play-state":"running|paused","single-animation-timeline":"auto|none|<timeline-name>|scroll( <axis>? <scroller>? )","single-transition":"[none|<single-transition-property>]||<time>||<easing-function>||<time>","single-transition-property":"all|<custom-ident>",size:"closest-side|farthest-side|closest-corner|farthest-corner|<length>|<length-percentage>{2}","sqrt()":"sqrt( <calc-sum> )","step-position":"jump-start|jump-end|jump-none|jump-both|start|end","step-timing-function":"step-start|step-end|steps( <integer> [, <step-position>]? )","subclass-selector":"<id-selector>|<class-selector>|<attribute-selector>|<pseudo-class-selector>","supports-condition":"not <supports-in-parens>|<supports-in-parens> [and <supports-in-parens>]*|<supports-in-parens> [or <supports-in-parens>]*","supports-in-parens":"( <supports-condition> )|<supports-feature>|<general-enclosed>","supports-feature":"<supports-decl>|<supports-selector-fn>","supports-decl":"( <declaration> )","supports-selector-fn":"selector( <complex-selector> )",symbol:"<string>|<image>|<custom-ident>","tan()":"tan( <calc-sum> )",target:"<target-counter()>|<target-counters()>|<target-text()>","target-counter()":"target-counter( [<string>|<url>] , <custom-ident> , <counter-style>? )","target-counters()":"target-counters( [<string>|<url>] , <custom-ident> , <string> , <counter-style>? )","target-text()":"target-text( [<string>|<url>] , [content|before|after|first-letter]? )","time-percentage":"<time>|<percentage>","timeline-name":"<custom-ident>|<string>","easing-function":"linear|<cubic-bezier-timing-function>|<step-timing-function>","track-breadth":"<length-percentage>|<flex>|min-content|max-content|auto","track-list":"[<line-names>? [<track-size>|<track-repeat>]]+ <line-names>?","track-repeat":"repeat( [<integer [1,∞]>] , [<line-names>? <track-size>]+ <line-names>? )","track-size":"<track-breadth>|minmax( <inflexible-breadth> , <track-breadth> )|fit-content( <length-percentage> )","transform-function":"<matrix()>|<translate()>|<translateX()>|<translateY()>|<scale()>|<scaleX()>|<scaleY()>|<rotate()>|<skew()>|<skewX()>|<skewY()>|<matrix3d()>|<translate3d()>|<translateZ()>|<scale3d()>|<scaleZ()>|<rotate3d()>|<rotateX()>|<rotateY()>|<rotateZ()>|<perspective()>","transform-list":"<transform-function>+","translate()":"translate( <length-percentage> , <length-percentage>? )","translate3d()":"translate3d( <length-percentage> , <length-percentage> , <length> )","translateX()":"translateX( <length-percentage> )","translateY()":"translateY( <length-percentage> )","translateZ()":"translateZ( <length> )","type-or-unit":"string|color|url|integer|number|length|angle|time|frequency|cap|ch|em|ex|ic|lh|rlh|rem|vb|vi|vw|vh|vmin|vmax|mm|Q|cm|in|pt|pc|px|deg|grad|rad|turn|ms|s|Hz|kHz|%","type-selector":"<wq-name>|<ns-prefix>? '*'","var()":"var( <custom-property-name> , <declaration-value>? )","viewport-length":"auto|<length-percentage>","visual-box":"content-box|padding-box|border-box","wq-name":"<ns-prefix>? <ident-token>","-legacy-gradient":"<-webkit-gradient()>|<-legacy-linear-gradient>|<-legacy-repeating-linear-gradient>|<-legacy-radial-gradient>|<-legacy-repeating-radial-gradient>","-legacy-linear-gradient":"-moz-linear-gradient( <-legacy-linear-gradient-arguments> )|-webkit-linear-gradient( <-legacy-linear-gradient-arguments> )|-o-linear-gradient( <-legacy-linear-gradient-arguments> )","-legacy-repeating-linear-gradient":"-moz-repeating-linear-gradient( <-legacy-linear-gradient-arguments> )|-webkit-repeating-linear-gradient( <-legacy-linear-gradient-arguments> )|-o-repeating-linear-gradient( <-legacy-linear-gradient-arguments> )","-legacy-linear-gradient-arguments":"[<angle>|<side-or-corner>]? , <color-stop-list>","-legacy-radial-gradient":"-moz-radial-gradient( <-legacy-radial-gradient-arguments> )|-webkit-radial-gradient( <-legacy-radial-gradient-arguments> )|-o-radial-gradient( <-legacy-radial-gradient-arguments> )","-legacy-repeating-radial-gradient":"-moz-repeating-radial-gradient( <-legacy-radial-gradient-arguments> )|-webkit-repeating-radial-gradient( <-legacy-radial-gradient-arguments> )|-o-repeating-radial-gradient( <-legacy-radial-gradient-arguments> )","-legacy-radial-gradient-arguments":"[<position> ,]? [[[<-legacy-radial-gradient-shape>||<-legacy-radial-gradient-size>]|[<length>|<percentage>]{2}] ,]? <color-stop-list>","-legacy-radial-gradient-size":"closest-side|closest-corner|farthest-side|farthest-corner|contain|cover","-legacy-radial-gradient-shape":"circle|ellipse","-non-standard-font":"-apple-system-body|-apple-system-headline|-apple-system-subheadline|-apple-system-caption1|-apple-system-caption2|-apple-system-footnote|-apple-system-short-body|-apple-system-short-headline|-apple-system-short-subheadline|-apple-system-short-caption1|-apple-system-short-footnote|-apple-system-tall-body","-non-standard-color":"-moz-ButtonDefault|-moz-ButtonHoverFace|-moz-ButtonHoverText|-moz-CellHighlight|-moz-CellHighlightText|-moz-Combobox|-moz-ComboboxText|-moz-Dialog|-moz-DialogText|-moz-dragtargetzone|-moz-EvenTreeRow|-moz-Field|-moz-FieldText|-moz-html-CellHighlight|-moz-html-CellHighlightText|-moz-mac-accentdarkestshadow|-moz-mac-accentdarkshadow|-moz-mac-accentface|-moz-mac-accentlightesthighlight|-moz-mac-accentlightshadow|-moz-mac-accentregularhighlight|-moz-mac-accentregularshadow|-moz-mac-chrome-active|-moz-mac-chrome-inactive|-moz-mac-focusring|-moz-mac-menuselect|-moz-mac-menushadow|-moz-mac-menutextselect|-moz-MenuHover|-moz-MenuHoverText|-moz-MenuBarText|-moz-MenuBarHoverText|-moz-nativehyperlinktext|-moz-OddTreeRow|-moz-win-communicationstext|-moz-win-mediatext|-moz-activehyperlinktext|-moz-default-background-color|-moz-default-color|-moz-hyperlinktext|-moz-visitedhyperlinktext|-webkit-activelink|-webkit-focus-ring-color|-webkit-link|-webkit-text","-non-standard-image-rendering":"optimize-contrast|-moz-crisp-edges|-o-crisp-edges|-webkit-optimize-contrast","-non-standard-overflow":"-moz-scrollbars-none|-moz-scrollbars-horizontal|-moz-scrollbars-vertical|-moz-hidden-unscrollable","-non-standard-width":"fill-available|min-intrinsic|intrinsic|-moz-available|-moz-fit-content|-moz-min-content|-moz-max-content|-webkit-min-content|-webkit-max-content","-webkit-gradient()":"-webkit-gradient( <-webkit-gradient-type> , <-webkit-gradient-point> [, <-webkit-gradient-point>|, <-webkit-gradient-radius> , <-webkit-gradient-point>] [, <-webkit-gradient-radius>]? [, <-webkit-gradient-color-stop>]* )","-webkit-gradient-color-stop":"from( <color> )|color-stop( [<number-zero-one>|<percentage>] , <color> )|to( <color> )","-webkit-gradient-point":"[left|center|right|<length-percentage>] [top|center|bottom|<length-percentage>]","-webkit-gradient-radius":"<length>|<percentage>","-webkit-gradient-type":"linear|radial","-webkit-mask-box-repeat":"repeat|stretch|round","-webkit-mask-clip-style":"border|border-box|padding|padding-box|content|content-box|text","-ms-filter-function-list":"<-ms-filter-function>+","-ms-filter-function":"<-ms-filter-function-progid>|<-ms-filter-function-legacy>","-ms-filter-function-progid":"'progid:' [<ident-token> '.']* [<ident-token>|<function-token> <any-value>? )]","-ms-filter-function-legacy":"<ident-token>|<function-token> <any-value>? )","-ms-filter":"<string>",age:"child|young|old","attr-name":"<wq-name>","attr-fallback":"<any-value>","bg-clip":"<box>|border|text",bottom:"<length>|auto","generic-voice":"[<age>? <gender> <integer>?]",gender:"male|female|neutral",left:"<length>|auto","mask-image":"<mask-reference>#",paint:"none|<color>|<url> [none|<color>]?|context-fill|context-stroke",right:"<length>|auto","single-animation-composition":"replace|add|accumulate","svg-length":"<percentage>|<length>|<number>","svg-writing-mode":"lr-tb|rl-tb|tb-rl|lr|rl|tb",top:"<length>|auto",x:"<number>",y:"<number>",declaration:"<ident-token> : <declaration-value>? ['!' important]?","declaration-list":"[<declaration>? ';']* <declaration>?",url:"url( <string> <url-modifier>* )|<url-token>","url-modifier":"<ident>|<function-token> <any-value> )","number-zero-one":"<number [0,1]>","number-one-or-greater":"<number [1,∞]>","-non-standard-display":"-ms-inline-flexbox|-ms-grid|-ms-inline-grid|-webkit-flex|-webkit-inline-flex|-webkit-box|-webkit-inline-box|-moz-inline-stack|-moz-box|-moz-inline-box"},properties:{"--*":"<declaration-value>","-ms-accelerator":"false|true","-ms-block-progression":"tb|rl|bt|lr","-ms-content-zoom-chaining":"none|chained","-ms-content-zooming":"none|zoom","-ms-content-zoom-limit":"<'-ms-content-zoom-limit-min'> <'-ms-content-zoom-limit-max'>","-ms-content-zoom-limit-max":"<percentage>","-ms-content-zoom-limit-min":"<percentage>","-ms-content-zoom-snap":"<'-ms-content-zoom-snap-type'>||<'-ms-content-zoom-snap-points'>","-ms-content-zoom-snap-points":"snapInterval( <percentage> , <percentage> )|snapList( <percentage># )","-ms-content-zoom-snap-type":"none|proximity|mandatory","-ms-filter":"<string>","-ms-flow-from":"[none|<custom-ident>]#","-ms-flow-into":"[none|<custom-ident>]#","-ms-grid-columns":"none|<track-list>|<auto-track-list>","-ms-grid-rows":"none|<track-list>|<auto-track-list>","-ms-high-contrast-adjust":"auto|none","-ms-hyphenate-limit-chars":"auto|<integer>{1,3}","-ms-hyphenate-limit-lines":"no-limit|<integer>","-ms-hyphenate-limit-zone":"<percentage>|<length>","-ms-ime-align":"auto|after","-ms-overflow-style":"auto|none|scrollbar|-ms-autohiding-scrollbar","-ms-scrollbar-3dlight-color":"<color>","-ms-scrollbar-arrow-color":"<color>","-ms-scrollbar-base-color":"<color>","-ms-scrollbar-darkshadow-color":"<color>","-ms-scrollbar-face-color":"<color>","-ms-scrollbar-highlight-color":"<color>","-ms-scrollbar-shadow-color":"<color>","-ms-scrollbar-track-color":"<color>","-ms-scroll-chaining":"chained|none","-ms-scroll-limit":"<'-ms-scroll-limit-x-min'> <'-ms-scroll-limit-y-min'> <'-ms-scroll-limit-x-max'> <'-ms-scroll-limit-y-max'>","-ms-scroll-limit-x-max":"auto|<length>","-ms-scroll-limit-x-min":"<length>","-ms-scroll-limit-y-max":"auto|<length>","-ms-scroll-limit-y-min":"<length>","-ms-scroll-rails":"none|railed","-ms-scroll-snap-points-x":"snapInterval( <length-percentage> , <length-percentage> )|snapList( <length-percentage># )","-ms-scroll-snap-points-y":"snapInterval( <length-percentage> , <length-percentage> )|snapList( <length-percentage># )","-ms-scroll-snap-type":"none|proximity|mandatory","-ms-scroll-snap-x":"<'-ms-scroll-snap-type'> <'-ms-scroll-snap-points-x'>","-ms-scroll-snap-y":"<'-ms-scroll-snap-type'> <'-ms-scroll-snap-points-y'>","-ms-scroll-translation":"none|vertical-to-horizontal","-ms-text-autospace":"none|ideograph-alpha|ideograph-numeric|ideograph-parenthesis|ideograph-space","-ms-touch-select":"grippers|none","-ms-user-select":"none|element|text","-ms-wrap-flow":"auto|both|start|end|maximum|clear","-ms-wrap-margin":"<length>","-ms-wrap-through":"wrap|none","-moz-appearance":"none|button|button-arrow-down|button-arrow-next|button-arrow-previous|button-arrow-up|button-bevel|button-focus|caret|checkbox|checkbox-container|checkbox-label|checkmenuitem|dualbutton|groupbox|listbox|listitem|menuarrow|menubar|menucheckbox|menuimage|menuitem|menuitemtext|menulist|menulist-button|menulist-text|menulist-textfield|menupopup|menuradio|menuseparator|meterbar|meterchunk|progressbar|progressbar-vertical|progresschunk|progresschunk-vertical|radio|radio-container|radio-label|radiomenuitem|range|range-thumb|resizer|resizerpanel|scale-horizontal|scalethumbend|scalethumb-horizontal|scalethumbstart|scalethumbtick|scalethumb-vertical|scale-vertical|scrollbarbutton-down|scrollbarbutton-left|scrollbarbutton-right|scrollbarbutton-up|scrollbarthumb-horizontal|scrollbarthumb-vertical|scrollbartrack-horizontal|scrollbartrack-vertical|searchfield|separator|sheet|spinner|spinner-downbutton|spinner-textfield|spinner-upbutton|splitter|statusbar|statusbarpanel|tab|tabpanel|tabpanels|tab-scroll-arrow-back|tab-scroll-arrow-forward|textfield|textfield-multiline|toolbar|toolbarbutton|toolbarbutton-dropdown|toolbargripper|toolbox|tooltip|treeheader|treeheadercell|treeheadersortarrow|treeitem|treeline|treetwisty|treetwistyopen|treeview|-moz-mac-unified-toolbar|-moz-win-borderless-glass|-moz-win-browsertabbar-toolbox|-moz-win-communicationstext|-moz-win-communications-toolbox|-moz-win-exclude-glass|-moz-win-glass|-moz-win-mediatext|-moz-win-media-toolbox|-moz-window-button-box|-moz-window-button-box-maximized|-moz-window-button-close|-moz-window-button-maximize|-moz-window-button-minimize|-moz-window-button-restore|-moz-window-frame-bottom|-moz-window-frame-left|-moz-window-frame-right|-moz-window-titlebar|-moz-window-titlebar-maximized","-moz-binding":"<url>|none","-moz-border-bottom-colors":"<color>+|none","-moz-border-left-colors":"<color>+|none","-moz-border-right-colors":"<color>+|none","-moz-border-top-colors":"<color>+|none","-moz-context-properties":"none|[fill|fill-opacity|stroke|stroke-opacity]#","-moz-float-edge":"border-box|content-box|margin-box|padding-box","-moz-force-broken-image-icon":"0|1","-moz-image-region":"<shape>|auto","-moz-orient":"inline|block|horizontal|vertical","-moz-outline-radius":"<outline-radius>{1,4} [/ <outline-radius>{1,4}]?","-moz-outline-radius-bottomleft":"<outline-radius>","-moz-outline-radius-bottomright":"<outline-radius>","-moz-outline-radius-topleft":"<outline-radius>","-moz-outline-radius-topright":"<outline-radius>","-moz-stack-sizing":"ignore|stretch-to-fit","-moz-text-blink":"none|blink","-moz-user-focus":"ignore|normal|select-after|select-before|select-menu|select-same|select-all|none","-moz-user-input":"auto|none|enabled|disabled","-moz-user-modify":"read-only|read-write|write-only","-moz-window-dragging":"drag|no-drag","-moz-window-shadow":"default|menu|tooltip|sheet|none","-webkit-appearance":"none|button|button-bevel|caps-lock-indicator|caret|checkbox|default-button|inner-spin-button|listbox|listitem|media-controls-background|media-controls-fullscreen-background|media-current-time-display|media-enter-fullscreen-button|media-exit-fullscreen-button|media-fullscreen-button|media-mute-button|media-overlay-play-button|media-play-button|media-seek-back-button|media-seek-forward-button|media-slider|media-sliderthumb|media-time-remaining-display|media-toggle-closed-captions-button|media-volume-slider|media-volume-slider-container|media-volume-sliderthumb|menulist|menulist-button|menulist-text|menulist-textfield|meter|progress-bar|progress-bar-value|push-button|radio|scrollbarbutton-down|scrollbarbutton-left|scrollbarbutton-right|scrollbarbutton-up|scrollbargripper-horizontal|scrollbargripper-vertical|scrollbarthumb-horizontal|scrollbarthumb-vertical|scrollbartrack-horizontal|scrollbartrack-vertical|searchfield|searchfield-cancel-button|searchfield-decoration|searchfield-results-button|searchfield-results-decoration|slider-horizontal|slider-vertical|sliderthumb-horizontal|sliderthumb-vertical|square-button|textarea|textfield|-apple-pay-button","-webkit-border-before":"<'border-width'>||<'border-style'>||<color>","-webkit-border-before-color":"<color>","-webkit-border-before-style":"<'border-style'>","-webkit-border-before-width":"<'border-width'>","-webkit-box-reflect":"[above|below|right|left]? <length>? <image>?","-webkit-line-clamp":"none|<integer>","-webkit-mask":"[<mask-reference>||<position> [/ <bg-size>]?||<repeat-style>||[<box>|border|padding|content|text]||[<box>|border|padding|content]]#","-webkit-mask-attachment":"<attachment>#","-webkit-mask-clip":"[<box>|border|padding|content|text]#","-webkit-mask-composite":"<composite-style>#","-webkit-mask-image":"<mask-reference>#","-webkit-mask-origin":"[<box>|border|padding|content]#","-webkit-mask-position":"<position>#","-webkit-mask-position-x":"[<length-percentage>|left|center|right]#","-webkit-mask-position-y":"[<length-percentage>|top|center|bottom]#","-webkit-mask-repeat":"<repeat-style>#","-webkit-mask-repeat-x":"repeat|no-repeat|space|round","-webkit-mask-repeat-y":"repeat|no-repeat|space|round","-webkit-mask-size":"<bg-size>#","-webkit-overflow-scrolling":"auto|touch","-webkit-tap-highlight-color":"<color>","-webkit-text-fill-color":"<color>","-webkit-text-stroke":"<length>||<color>","-webkit-text-stroke-color":"<color>","-webkit-text-stroke-width":"<length>","-webkit-touch-callout":"default|none","-webkit-user-modify":"read-only|read-write|read-write-plaintext-only","accent-color":"auto|<color>","align-content":"normal|<baseline-position>|<content-distribution>|<overflow-position>? <content-position>","align-items":"normal|stretch|<baseline-position>|[<overflow-position>? <self-position>]","align-self":"auto|normal|stretch|<baseline-position>|<overflow-position>? <self-position>","align-tracks":"[normal|<baseline-position>|<content-distribution>|<overflow-position>? <content-position>]#",all:"initial|inherit|unset|revert|revert-layer",animation:"<single-animation>#","animation-composition":"<single-animation-composition>#","animation-delay":"<time>#","animation-direction":"<single-animation-direction>#","animation-duration":"<time>#","animation-fill-mode":"<single-animation-fill-mode>#","animation-iteration-count":"<single-animation-iteration-count>#","animation-name":"[none|<keyframes-name>]#","animation-play-state":"<single-animation-play-state>#","animation-timing-function":"<easing-function>#","animation-timeline":"<single-animation-timeline>#",appearance:"none|auto|textfield|menulist-button|<compat-auto>","aspect-ratio":"auto|<ratio>",azimuth:"<angle>|[[left-side|far-left|left|center-left|center|center-right|right|far-right|right-side]||behind]|leftwards|rightwards","backdrop-filter":"none|<filter-function-list>","backface-visibility":"visible|hidden",background:"[<bg-layer> ,]* <final-bg-layer>","background-attachment":"<attachment>#","background-blend-mode":"<blend-mode>#","background-clip":"<bg-clip>#","background-color":"<color>","background-image":"<bg-image>#","background-origin":"<box>#","background-position":"<bg-position>#","background-position-x":"[center|[[left|right|x-start|x-end]? <length-percentage>?]!]#","background-position-y":"[center|[[top|bottom|y-start|y-end]? <length-percentage>?]!]#","background-repeat":"<repeat-style>#","background-size":"<bg-size>#","block-overflow":"clip|ellipsis|<string>","block-size":"<'width'>",border:"<line-width>||<line-style>||<color>","border-block":"<'border-top-width'>||<'border-top-style'>||<color>","border-block-color":"<'border-top-color'>{1,2}","border-block-style":"<'border-top-style'>","border-block-width":"<'border-top-width'>","border-block-end":"<'border-top-width'>||<'border-top-style'>||<color>","border-block-end-color":"<'border-top-color'>","border-block-end-style":"<'border-top-style'>","border-block-end-width":"<'border-top-width'>","border-block-start":"<'border-top-width'>||<'border-top-style'>||<color>","border-block-start-color":"<'border-top-color'>","border-block-start-style":"<'border-top-style'>","border-block-start-width":"<'border-top-width'>","border-bottom":"<line-width>||<line-style>||<color>","border-bottom-color":"<'border-top-color'>","border-bottom-left-radius":"<length-percentage>{1,2}","border-bottom-right-radius":"<length-percentage>{1,2}","border-bottom-style":"<line-style>","border-bottom-width":"<line-width>","border-collapse":"collapse|separate","border-color":"<color>{1,4}","border-end-end-radius":"<length-percentage>{1,2}","border-end-start-radius":"<length-percentage>{1,2}","border-image":"<'border-image-source'>||<'border-image-slice'> [/ <'border-image-width'>|/ <'border-image-width'>? / <'border-image-outset'>]?||<'border-image-repeat'>","border-image-outset":"[<length>|<number>]{1,4}","border-image-repeat":"[stretch|repeat|round|space]{1,2}","border-image-slice":"<number-percentage>{1,4}&&fill?","border-image-source":"none|<image>","border-image-width":"[<length-percentage>|<number>|auto]{1,4}","border-inline":"<'border-top-width'>||<'border-top-style'>||<color>","border-inline-end":"<'border-top-width'>||<'border-top-style'>||<color>","border-inline-color":"<'border-top-color'>{1,2}","border-inline-style":"<'border-top-style'>","border-inline-width":"<'border-top-width'>","border-inline-end-color":"<'border-top-color'>","border-inline-end-style":"<'border-top-style'>","border-inline-end-width":"<'border-top-width'>","border-inline-start":"<'border-top-width'>||<'border-top-style'>||<color>","border-inline-start-color":"<'border-top-color'>","border-inline-start-style":"<'border-top-style'>","border-inline-start-width":"<'border-top-width'>","border-left":"<line-width>||<line-style>||<color>","border-left-color":"<color>","border-left-style":"<line-style>","border-left-width":"<line-width>","border-radius":"<length-percentage>{1,4} [/ <length-percentage>{1,4}]?","border-right":"<line-width>||<line-style>||<color>","border-right-color":"<color>","border-right-style":"<line-style>","border-right-width":"<line-width>","border-spacing":"<length> <length>?","border-start-end-radius":"<length-percentage>{1,2}","border-start-start-radius":"<length-percentage>{1,2}","border-style":"<line-style>{1,4}","border-top":"<line-width>||<line-style>||<color>","border-top-color":"<color>","border-top-left-radius":"<length-percentage>{1,2}","border-top-right-radius":"<length-percentage>{1,2}","border-top-style":"<line-style>","border-top-width":"<line-width>","border-width":"<line-width>{1,4}",bottom:"<length>|<percentage>|auto","box-align":"start|center|end|baseline|stretch","box-decoration-break":"slice|clone","box-direction":"normal|reverse|inherit","box-flex":"<number>","box-flex-group":"<integer>","box-lines":"single|multiple","box-ordinal-group":"<integer>","box-orient":"horizontal|vertical|inline-axis|block-axis|inherit","box-pack":"start|center|end|justify","box-shadow":"none|<shadow>#","box-sizing":"content-box|border-box","break-after":"auto|avoid|always|all|avoid-page|page|left|right|recto|verso|avoid-column|column|avoid-region|region","break-before":"auto|avoid|always|all|avoid-page|page|left|right|recto|verso|avoid-column|column|avoid-region|region","break-inside":"auto|avoid|avoid-page|avoid-column|avoid-region","caption-side":"top|bottom|block-start|block-end|inline-start|inline-end",caret:"<'caret-color'>||<'caret-shape'>","caret-color":"auto|<color>","caret-shape":"auto|bar|block|underscore",clear:"none|left|right|both|inline-start|inline-end",clip:"<shape>|auto","clip-path":"<clip-source>|[<basic-shape>||<geometry-box>]|none",color:"<color>","print-color-adjust":"economy|exact","color-scheme":"normal|[light|dark|<custom-ident>]+&&only?","column-count":"<integer>|auto","column-fill":"auto|balance|balance-all","column-gap":"normal|<length-percentage>","column-rule":"<'column-rule-width'>||<'column-rule-style'>||<'column-rule-color'>","column-rule-color":"<color>","column-rule-style":"<'border-style'>","column-rule-width":"<'border-width'>","column-span":"none|all","column-width":"<length>|auto",columns:"<'column-width'>||<'column-count'>",contain:"none|strict|content|[[size||inline-size]||layout||style||paint]","contain-intrinsic-size":"[none|<length>|auto <length>]{1,2}","contain-intrinsic-block-size":"none|<length>|auto <length>","contain-intrinsic-height":"none|<length>|auto <length>","contain-intrinsic-inline-size":"none|<length>|auto <length>","contain-intrinsic-width":"none|<length>|auto <length>",content:"normal|none|[<content-replacement>|<content-list>] [/ [<string>|<counter>]+]?","content-visibility":"visible|auto|hidden","counter-increment":"[<counter-name> <integer>?]+|none","counter-reset":"[<counter-name> <integer>?|<reversed-counter-name> <integer>?]+|none","counter-set":"[<counter-name> <integer>?]+|none",cursor:"[[<url> [<x> <y>]? ,]* [auto|default|none|context-menu|help|pointer|progress|wait|cell|crosshair|text|vertical-text|alias|copy|move|no-drop|not-allowed|e-resize|n-resize|ne-resize|nw-resize|s-resize|se-resize|sw-resize|w-resize|ew-resize|ns-resize|nesw-resize|nwse-resize|col-resize|row-resize|all-scroll|zoom-in|zoom-out|grab|grabbing|hand|-webkit-grab|-webkit-grabbing|-webkit-zoom-in|-webkit-zoom-out|-moz-grab|-moz-grabbing|-moz-zoom-in|-moz-zoom-out]]",direction:"ltr|rtl",display:"[<display-outside>||<display-inside>]|<display-listitem>|<display-internal>|<display-box>|<display-legacy>|<-non-standard-display>","empty-cells":"show|hide",filter:"none|<filter-function-list>|<-ms-filter-function-list>",flex:"none|[<'flex-grow'> <'flex-shrink'>?||<'flex-basis'>]","flex-basis":"content|<'width'>","flex-direction":"row|row-reverse|column|column-reverse","flex-flow":"<'flex-direction'>||<'flex-wrap'>","flex-grow":"<number>","flex-shrink":"<number>","flex-wrap":"nowrap|wrap|wrap-reverse",float:"left|right|none|inline-start|inline-end",font:"[[<'font-style'>||<font-variant-css21>||<'font-weight'>||<'font-stretch'>]? <'font-size'> [/ <'line-height'>]? <'font-family'>]|caption|icon|menu|message-box|small-caption|status-bar","font-family":"[<family-name>|<generic-family>]#","font-feature-settings":"normal|<feature-tag-value>#","font-kerning":"auto|normal|none","font-language-override":"normal|<string>","font-optical-sizing":"auto|none","font-variation-settings":"normal|[<string> <number>]#","font-size":"<absolute-size>|<relative-size>|<length-percentage>","font-size-adjust":"none|[ex-height|cap-height|ch-width|ic-width|ic-height]? [from-font|<number>]","font-smooth":"auto|never|always|<absolute-size>|<length>","font-stretch":"<font-stretch-absolute>","font-style":"normal|italic|oblique <angle>?","font-synthesis":"none|[weight||style||small-caps]","font-variant":"normal|none|[<common-lig-values>||<discretionary-lig-values>||<historical-lig-values>||<contextual-alt-values>||stylistic( <feature-value-name> )||historical-forms||styleset( <feature-value-name># )||character-variant( <feature-value-name># )||swash( <feature-value-name> )||ornaments( <feature-value-name> )||annotation( <feature-value-name> )||[small-caps|all-small-caps|petite-caps|all-petite-caps|unicase|titling-caps]||<numeric-figure-values>||<numeric-spacing-values>||<numeric-fraction-values>||ordinal||slashed-zero||<east-asian-variant-values>||<east-asian-width-values>||ruby]","font-variant-alternates":"normal|[stylistic( <feature-value-name> )||historical-forms||styleset( <feature-value-name># )||character-variant( <feature-value-name># )||swash( <feature-value-name> )||ornaments( <feature-value-name> )||annotation( <feature-value-name> )]","font-variant-caps":"normal|small-caps|all-small-caps|petite-caps|all-petite-caps|unicase|titling-caps","font-variant-east-asian":"normal|[<east-asian-variant-values>||<east-asian-width-values>||ruby]","font-variant-ligatures":"normal|none|[<common-lig-values>||<discretionary-lig-values>||<historical-lig-values>||<contextual-alt-values>]","font-variant-numeric":"normal|[<numeric-figure-values>||<numeric-spacing-values>||<numeric-fraction-values>||ordinal||slashed-zero]","font-variant-position":"normal|sub|super","font-weight":"<font-weight-absolute>|bolder|lighter","forced-color-adjust":"auto|none",gap:"<'row-gap'> <'column-gap'>?",grid:"<'grid-template'>|<'grid-template-rows'> / [auto-flow&&dense?] <'grid-auto-columns'>?|[auto-flow&&dense?] <'grid-auto-rows'>? / <'grid-template-columns'>","grid-area":"<grid-line> [/ <grid-line>]{0,3}","grid-auto-columns":"<track-size>+","grid-auto-flow":"[row|column]||dense","grid-auto-rows":"<track-size>+","grid-column":"<grid-line> [/ <grid-line>]?","grid-column-end":"<grid-line>","grid-column-gap":"<length-percentage>","grid-column-start":"<grid-line>","grid-gap":"<'grid-row-gap'> <'grid-column-gap'>?","grid-row":"<grid-line> [/ <grid-line>]?","grid-row-end":"<grid-line>","grid-row-gap":"<length-percentage>","grid-row-start":"<grid-line>","grid-template":"none|[<'grid-template-rows'> / <'grid-template-columns'>]|[<line-names>? <string> <track-size>? <line-names>?]+ [/ <explicit-track-list>]?","grid-template-areas":"none|<string>+","grid-template-columns":"none|<track-list>|<auto-track-list>|subgrid <line-name-list>?","grid-template-rows":"none|<track-list>|<auto-track-list>|subgrid <line-name-list>?","hanging-punctuation":"none|[first||[force-end|allow-end]||last]",height:"auto|<length>|<percentage>|min-content|max-content|fit-content|fit-content( <length-percentage> )","hyphenate-character":"auto|<string>",hyphens:"none|manual|auto","image-orientation":"from-image|<angle>|[<angle>? flip]","image-rendering":"auto|crisp-edges|pixelated|optimizeSpeed|optimizeQuality|<-non-standard-image-rendering>","image-resolution":"[from-image||<resolution>]&&snap?","ime-mode":"auto|normal|active|inactive|disabled","initial-letter":"normal|[<number> <integer>?]","initial-letter-align":"[auto|alphabetic|hanging|ideographic]","inline-size":"<'width'>","input-security":"auto|none",inset:"<'top'>{1,4}","inset-block":"<'top'>{1,2}","inset-block-end":"<'top'>","inset-block-start":"<'top'>","inset-inline":"<'top'>{1,2}","inset-inline-end":"<'top'>","inset-inline-start":"<'top'>",isolation:"auto|isolate","justify-content":"normal|<content-distribution>|<overflow-position>? [<content-position>|left|right]","justify-items":"normal|stretch|<baseline-position>|<overflow-position>? [<self-position>|left|right]|legacy|legacy&&[left|right|center]","justify-self":"auto|normal|stretch|<baseline-position>|<overflow-position>? [<self-position>|left|right]","justify-tracks":"[normal|<content-distribution>|<overflow-position>? [<content-position>|left|right]]#",left:"<length>|<percentage>|auto","letter-spacing":"normal|<length-percentage>","line-break":"auto|loose|normal|strict|anywhere","line-clamp":"none|<integer>","line-height":"normal|<number>|<length>|<percentage>","line-height-step":"<length>","list-style":"<'list-style-type'>||<'list-style-position'>||<'list-style-image'>","list-style-image":"<image>|none","list-style-position":"inside|outside","list-style-type":"<counter-style>|<string>|none",margin:"[<length>|<percentage>|auto]{1,4}","margin-block":"<'margin-left'>{1,2}","margin-block-end":"<'margin-left'>","margin-block-start":"<'margin-left'>","margin-bottom":"<length>|<percentage>|auto","margin-inline":"<'margin-left'>{1,2}","margin-inline-end":"<'margin-left'>","margin-inline-start":"<'margin-left'>","margin-left":"<length>|<percentage>|auto","margin-right":"<length>|<percentage>|auto","margin-top":"<length>|<percentage>|auto","margin-trim":"none|in-flow|all",mask:"<mask-layer>#","mask-border":"<'mask-border-source'>||<'mask-border-slice'> [/ <'mask-border-width'>? [/ <'mask-border-outset'>]?]?||<'mask-border-repeat'>||<'mask-border-mode'>","mask-border-mode":"luminance|alpha","mask-border-outset":"[<length>|<number>]{1,4}","mask-border-repeat":"[stretch|repeat|round|space]{1,2}","mask-border-slice":"<number-percentage>{1,4} fill?","mask-border-source":"none|<image>","mask-border-width":"[<length-percentage>|<number>|auto]{1,4}","mask-clip":"[<geometry-box>|no-clip]#","mask-composite":"<compositing-operator>#","mask-image":"<mask-reference>#","mask-mode":"<masking-mode>#","mask-origin":"<geometry-box>#","mask-position":"<position>#","mask-repeat":"<repeat-style>#","mask-size":"<bg-size>#","mask-type":"luminance|alpha","masonry-auto-flow":"[pack|next]||[definite-first|ordered]","math-depth":"auto-add|add( <integer> )|<integer>","math-shift":"normal|compact","math-style":"normal|compact","max-block-size":"<'max-width'>","max-height":"none|<length-percentage>|min-content|max-content|fit-content|fit-content( <length-percentage> )","max-inline-size":"<'max-width'>","max-lines":"none|<integer>","max-width":"none|<length-percentage>|min-content|max-content|fit-content|fit-content( <length-percentage> )|<-non-standard-width>","min-block-size":"<'min-width'>","min-height":"auto|<length>|<percentage>|min-content|max-content|fit-content|fit-content( <length-percentage> )","min-inline-size":"<'min-width'>","min-width":"auto|<length>|<percentage>|min-content|max-content|fit-content|fit-content( <length-percentage> )|<-non-standard-width>","mix-blend-mode":"<blend-mode>|plus-lighter","object-fit":"fill|contain|cover|none|scale-down","object-position":"<position>",offset:"[<'offset-position'>? [<'offset-path'> [<'offset-distance'>||<'offset-rotate'>]?]?]! [/ <'offset-anchor'>]?","offset-anchor":"auto|<position>","offset-distance":"<length-percentage>","offset-path":"none|ray( [<angle>&&<size>&&contain?] )|<path()>|<url>|[<basic-shape>||<geometry-box>]","offset-position":"auto|<position>","offset-rotate":"[auto|reverse]||<angle>",opacity:"<alpha-value>",order:"<integer>",orphans:"<integer>",outline:"[<'outline-color'>||<'outline-style'>||<'outline-width'>]","outline-color":"<color>|invert","outline-offset":"<length>","outline-style":"auto|<'border-style'>","outline-width":"<line-width>",overflow:"[visible|hidden|clip|scroll|auto]{1,2}|<-non-standard-overflow>","overflow-anchor":"auto|none","overflow-block":"visible|hidden|clip|scroll|auto","overflow-clip-box":"padding-box|content-box","overflow-clip-margin":"<visual-box>||<length [0,∞]>","overflow-inline":"visible|hidden|clip|scroll|auto","overflow-wrap":"normal|break-word|anywhere","overflow-x":"visible|hidden|clip|scroll|auto","overflow-y":"visible|hidden|clip|scroll|auto","overscroll-behavior":"[contain|none|auto]{1,2}","overscroll-behavior-block":"contain|none|auto","overscroll-behavior-inline":"contain|none|auto","overscroll-behavior-x":"contain|none|auto","overscroll-behavior-y":"contain|none|auto",padding:"[<length>|<percentage>]{1,4}","padding-block":"<'padding-left'>{1,2}","padding-block-end":"<'padding-left'>","padding-block-start":"<'padding-left'>","padding-bottom":"<length>|<percentage>","padding-inline":"<'padding-left'>{1,2}","padding-inline-end":"<'padding-left'>","padding-inline-start":"<'padding-left'>","padding-left":"<length>|<percentage>","padding-right":"<length>|<percentage>","padding-top":"<length>|<percentage>","page-break-after":"auto|always|avoid|left|right|recto|verso","page-break-before":"auto|always|avoid|left|right|recto|verso","page-break-inside":"auto|avoid","paint-order":"normal|[fill||stroke||markers]",perspective:"none|<length>","perspective-origin":"<position>","place-content":"<'align-content'> <'justify-content'>?","place-items":"<'align-items'> <'justify-items'>?","place-self":"<'align-self'> <'justify-self'>?","pointer-events":"auto|none|visiblePainted|visibleFill|visibleStroke|visible|painted|fill|stroke|all|inherit",position:"static|relative|absolute|sticky|fixed|-webkit-sticky",quotes:"none|auto|[<string> <string>]+",resize:"none|both|horizontal|vertical|block|inline",right:"<length>|<percentage>|auto",rotate:"none|<angle>|[x|y|z|<number>{3}]&&<angle>","row-gap":"normal|<length-percentage>","ruby-align":"start|center|space-between|space-around","ruby-merge":"separate|collapse|auto","ruby-position":"[alternate||[over|under]]|inter-character",scale:"none|<number>{1,3}","scrollbar-color":"auto|<color>{2}","scrollbar-gutter":"auto|stable&&both-edges?","scrollbar-width":"auto|thin|none","scroll-behavior":"auto|smooth","scroll-margin":"<length>{1,4}","scroll-margin-block":"<length>{1,2}","scroll-margin-block-start":"<length>","scroll-margin-block-end":"<length>","scroll-margin-bottom":"<length>","scroll-margin-inline":"<length>{1,2}","scroll-margin-inline-start":"<length>","scroll-margin-inline-end":"<length>","scroll-margin-left":"<length>","scroll-margin-right":"<length>","scroll-margin-top":"<length>","scroll-padding":"[auto|<length-percentage>]{1,4}","scroll-padding-block":"[auto|<length-percentage>]{1,2}","scroll-padding-block-start":"auto|<length-percentage>","scroll-padding-block-end":"auto|<length-percentage>","scroll-padding-bottom":"auto|<length-percentage>","scroll-padding-inline":"[auto|<length-percentage>]{1,2}","scroll-padding-inline-start":"auto|<length-percentage>","scroll-padding-inline-end":"auto|<length-percentage>","scroll-padding-left":"auto|<length-percentage>","scroll-padding-right":"auto|<length-percentage>","scroll-padding-top":"auto|<length-percentage>","scroll-snap-align":"[none|start|end|center]{1,2}","scroll-snap-coordinate":"none|<position>#","scroll-snap-destination":"<position>","scroll-snap-points-x":"none|repeat( <length-percentage> )","scroll-snap-points-y":"none|repeat( <length-percentage> )","scroll-snap-stop":"normal|always","scroll-snap-type":"none|[x|y|block|inline|both] [mandatory|proximity]?","scroll-snap-type-x":"none|mandatory|proximity","scroll-snap-type-y":"none|mandatory|proximity","scroll-timeline":"[<'scroll-timeline-name'>||<'scroll-timeline-axis'>]#","scroll-timeline-axis":"[block|inline|vertical|horizontal]#","scroll-timeline-name":"none|<custom-ident>#","shape-image-threshold":"<alpha-value>","shape-margin":"<length-percentage>","shape-outside":"none|[<shape-box>||<basic-shape>]|<image>","tab-size":"<integer>|<length>","table-layout":"auto|fixed","text-align":"start|end|left|right|center|justify|match-parent","text-align-last":"auto|start|end|left|right|center|justify","text-combine-upright":"none|all|[digits <integer>?]","text-decoration":"<'text-decoration-line'>||<'text-decoration-style'>||<'text-decoration-color'>||<'text-decoration-thickness'>","text-decoration-color":"<color>","text-decoration-line":"none|[underline||overline||line-through||blink]|spelling-error|grammar-error","text-decoration-skip":"none|[objects||[spaces|[leading-spaces||trailing-spaces]]||edges||box-decoration]","text-decoration-skip-ink":"auto|all|none","text-decoration-style":"solid|double|dotted|dashed|wavy","text-decoration-thickness":"auto|from-font|<length>|<percentage>","text-emphasis":"<'text-emphasis-style'>||<'text-emphasis-color'>","text-emphasis-color":"<color>","text-emphasis-position":"[over|under]&&[right|left]","text-emphasis-style":"none|[[filled|open]||[dot|circle|double-circle|triangle|sesame]]|<string>","text-indent":"<length-percentage>&&hanging?&&each-line?","text-justify":"auto|inter-character|inter-word|none","text-orientation":"mixed|upright|sideways","text-overflow":"[clip|ellipsis|<string>]{1,2}","text-rendering":"auto|optimizeSpeed|optimizeLegibility|geometricPrecision","text-shadow":"none|<shadow-t>#","text-size-adjust":"none|auto|<percentage>","text-transform":"none|capitalize|uppercase|lowercase|full-width|full-size-kana","text-underline-offset":"auto|<length>|<percentage>","text-underline-position":"auto|from-font|[under||[left|right]]",top:"<length>|<percentage>|auto","touch-action":"auto|none|[[pan-x|pan-left|pan-right]||[pan-y|pan-up|pan-down]||pinch-zoom]|manipulation",transform:"none|<transform-list>","transform-box":"content-box|border-box|fill-box|stroke-box|view-box","transform-origin":"[<length-percentage>|left|center|right|top|bottom]|[[<length-percentage>|left|center|right]&&[<length-percentage>|top|center|bottom]] <length>?","transform-style":"flat|preserve-3d",transition:"<single-transition>#","transition-delay":"<time>#","transition-duration":"<time>#","transition-property":"none|<single-transition-property>#","transition-timing-function":"<easing-function>#",translate:"none|<length-percentage> [<length-percentage> <length>?]?","unicode-bidi":"normal|embed|isolate|bidi-override|isolate-override|plaintext|-moz-isolate|-moz-isolate-override|-moz-plaintext|-webkit-isolate|-webkit-isolate-override|-webkit-plaintext","user-select":"auto|text|none|contain|all","vertical-align":"baseline|sub|super|text-top|text-bottom|middle|top|bottom|<percentage>|<length>",visibility:"visible|hidden|collapse","white-space":"normal|pre|nowrap|pre-wrap|pre-line|break-spaces",widows:"<integer>",width:"auto|<length>|<percentage>|min-content|max-content|fit-content|fit-content( <length-percentage> )|fill|stretch|intrinsic|-moz-max-content|-webkit-max-content|-moz-fit-content|-webkit-fit-content","will-change":"auto|<animateable-feature>#","word-break":"normal|break-all|keep-all|break-word","word-spacing":"normal|<length>","word-wrap":"normal|break-word","writing-mode":"horizontal-tb|vertical-rl|vertical-lr|sideways-rl|sideways-lr|<svg-writing-mode>","z-index":"auto|<integer>",zoom:"normal|reset|<number>|<percentage>","-moz-background-clip":"padding|border","-moz-border-radius-bottomleft":"<'border-bottom-left-radius'>","-moz-border-radius-bottomright":"<'border-bottom-right-radius'>","-moz-border-radius-topleft":"<'border-top-left-radius'>","-moz-border-radius-topright":"<'border-bottom-right-radius'>","-moz-control-character-visibility":"visible|hidden","-moz-osx-font-smoothing":"auto|grayscale","-moz-user-select":"none|text|all|-moz-none","-ms-flex-align":"start|end|center|baseline|stretch","-ms-flex-item-align":"auto|start|end|center|baseline|stretch","-ms-flex-line-pack":"start|end|center|justify|distribute|stretch","-ms-flex-negative":"<'flex-shrink'>","-ms-flex-pack":"start|end|center|justify|distribute","-ms-flex-order":"<integer>","-ms-flex-positive":"<'flex-grow'>","-ms-flex-preferred-size":"<'flex-basis'>","-ms-interpolation-mode":"nearest-neighbor|bicubic","-ms-grid-column-align":"start|end|center|stretch","-ms-grid-row-align":"start|end|center|stretch","-ms-hyphenate-limit-last":"none|always|column|page|spread","-webkit-background-clip":"[<box>|border|padding|content|text]#","-webkit-column-break-after":"always|auto|avoid","-webkit-column-break-before":"always|auto|avoid","-webkit-column-break-inside":"always|auto|avoid","-webkit-font-smoothing":"auto|none|antialiased|subpixel-antialiased","-webkit-mask-box-image":"[<url>|<gradient>|none] [<length-percentage>{4} <-webkit-mask-box-repeat>{2}]?","-webkit-print-color-adjust":"economy|exact","-webkit-text-security":"none|circle|disc|square","-webkit-user-drag":"none|element|auto","-webkit-user-select":"auto|none|text|all","alignment-baseline":"auto|baseline|before-edge|text-before-edge|middle|central|after-edge|text-after-edge|ideographic|alphabetic|hanging|mathematical","baseline-shift":"baseline|sub|super|<svg-length>",behavior:"<url>+","clip-rule":"nonzero|evenodd",cue:"<'cue-before'> <'cue-after'>?","cue-after":"<url> <decibel>?|none","cue-before":"<url> <decibel>?|none","dominant-baseline":"auto|use-script|no-change|reset-size|ideographic|alphabetic|hanging|mathematical|central|middle|text-after-edge|text-before-edge",fill:"<paint>","fill-opacity":"<number-zero-one>","fill-rule":"nonzero|evenodd","glyph-orientation-horizontal":"<angle>","glyph-orientation-vertical":"<angle>",kerning:"auto|<svg-length>",marker:"none|<url>","marker-end":"none|<url>","marker-mid":"none|<url>","marker-start":"none|<url>",pause:"<'pause-before'> <'pause-after'>?","pause-after":"<time>|none|x-weak|weak|medium|strong|x-strong","pause-before":"<time>|none|x-weak|weak|medium|strong|x-strong",rest:"<'rest-before'> <'rest-after'>?","rest-after":"<time>|none|x-weak|weak|medium|strong|x-strong","rest-before":"<time>|none|x-weak|weak|medium|strong|x-strong","shape-rendering":"auto|optimizeSpeed|crispEdges|geometricPrecision",src:"[<url> [format( <string># )]?|local( <family-name> )]#",speak:"auto|none|normal","speak-as":"normal|spell-out||digits||[literal-punctuation|no-punctuation]",stroke:"<paint>","stroke-dasharray":"none|[<svg-length>+]#","stroke-dashoffset":"<svg-length>","stroke-linecap":"butt|round|square","stroke-linejoin":"miter|round|bevel","stroke-miterlimit":"<number-one-or-greater>","stroke-opacity":"<number-zero-one>","stroke-width":"<svg-length>","text-anchor":"start|middle|end","unicode-range":"<urange>#","voice-balance":"<number>|left|center|right|leftwards|rightwards","voice-duration":"auto|<time>","voice-family":"[[<family-name>|<generic-voice>] ,]* [<family-name>|<generic-voice>]|preserve","voice-pitch":"<frequency>&&absolute|[[x-low|low|medium|high|x-high]||[<frequency>|<semitones>|<percentage>]]","voice-range":"<frequency>&&absolute|[[x-low|low|medium|high|x-high]||[<frequency>|<semitones>|<percentage>]]","voice-rate":"[normal|x-slow|slow|medium|fast|x-fast]||<percentage>","voice-stress":"normal|strong|moderate|none|reduced","voice-volume":"silent|[[x-soft|soft|medium|loud|x-loud]||<decibel>]"},atrules:{charset:{prelude:"<string>",descriptors:null},"counter-style":{prelude:"<counter-style-name>",descriptors:{"additive-symbols":"[<integer>&&<symbol>]#",fallback:"<counter-style-name>",negative:"<symbol> <symbol>?",pad:"<integer>&&<symbol>",prefix:"<symbol>",range:"[[<integer>|infinite]{2}]#|auto","speak-as":"auto|bullets|numbers|words|spell-out|<counter-style-name>",suffix:"<symbol>",symbols:"<symbol>+",system:"cyclic|numeric|alphabetic|symbolic|additive|[fixed <integer>?]|[extends <counter-style-name>]"}},document:{prelude:"[<url>|url-prefix( <string> )|domain( <string> )|media-document( <string> )|regexp( <string> )]#",descriptors:null},"font-face":{prelude:null,descriptors:{"ascent-override":"normal|<percentage>","descent-override":"normal|<percentage>","font-display":"[auto|block|swap|fallback|optional]","font-family":"<family-name>","font-feature-settings":"normal|<feature-tag-value>#","font-variation-settings":"normal|[<string> <number>]#","font-stretch":"<font-stretch-absolute>{1,2}","font-style":"normal|italic|oblique <angle>{0,2}","font-weight":"<font-weight-absolute>{1,2}","font-variant":"normal|none|[<common-lig-values>||<discretionary-lig-values>||<historical-lig-values>||<contextual-alt-values>||stylistic( <feature-value-name> )||historical-forms||styleset( <feature-value-name># )||character-variant( <feature-value-name># )||swash( <feature-value-name> )||ornaments( <feature-value-name> )||annotation( <feature-value-name> )||[small-caps|all-small-caps|petite-caps|all-petite-caps|unicase|titling-caps]||<numeric-figure-values>||<numeric-spacing-values>||<numeric-fraction-values>||ordinal||slashed-zero||<east-asian-variant-values>||<east-asian-width-values>||ruby]","line-gap-override":"normal|<percentage>","size-adjust":"<percentage>",src:"[<url> [format( <string># )]?|local( <family-name> )]#","unicode-range":"<urange>#"}},"font-feature-values":{prelude:"<family-name>#",descriptors:null},import:{prelude:"[<string>|<url>] [layer|layer( <layer-name> )]? [supports( [<supports-condition>|<declaration>] )]? <media-query-list>?",descriptors:null},keyframes:{prelude:"<keyframes-name>",descriptors:null},layer:{prelude:"[<layer-name>#|<layer-name>?]",descriptors:null},media:{prelude:"<media-query-list>",descriptors:null},namespace:{prelude:"<namespace-prefix>? [<string>|<url>]",descriptors:null},page:{prelude:"<page-selector-list>",descriptors:{bleed:"auto|<length>",marks:"none|[crop||cross]",size:"<length>{1,2}|auto|[<page-size>||[portrait|landscape]]"}},property:{prelude:"<custom-property-name>",descriptors:{syntax:"<string>",inherits:"true|false","initial-value":"<string>"}},"scroll-timeline":{prelude:"<timeline-name>",descriptors:null},supports:{prelude:"<supports-condition>",descriptors:null},viewport:{prelude:null,descriptors:{height:"<viewport-length>{1,2}","max-height":"<viewport-length>","max-width":"<viewport-length>","max-zoom":"auto|<number>|<percentage>","min-height":"<viewport-length>","min-width":"<viewport-length>","min-zoom":"auto|<number>|<percentage>",orientation:"auto|portrait|landscape","user-zoom":"zoom|fixed","viewport-fit":"auto|contain|cover",width:"<viewport-length>{1,2}",zoom:"auto|<number>|<percentage>"}},nest:{prelude:"<complex-selector-list>",descriptors:null}},node:Oi},hd={};Ht(hd,{AtrulePrelude:()=>pd,Selector:()=>md,Value:()=>fd});function dd(e){switch(this.tokenType){case 4:return this.Hash();case 18:return this.Operator();case 21:return this.Parentheses(this.readSequence,e.recognizer);case 19:return this.Brackets(this.readSequence,e.recognizer);case 5:return this.String();case 12:return this.Dimension();case 11:return this.Percentage();case 10:return this.Number();case 2:return this.cmpStr(this.tokenStart,this.tokenEnd,"url(")?this.Url():this.Function(this.readSequence,e.recognizer);case 7:return this.Url();case 1:return this.cmpChar(this.tokenStart,117)&&this.cmpChar(this.tokenStart+1,43)?this.UnicodeRange():this.Identifier();case 9:{let e=this.charCodeAt(this.tokenStart);if(47===e||42===e||43===e||45===e)return this.Operator();35===e&&this.error("Hex or identifier is expected",this.tokenStart+1);break}}}var pd={getNode:dd};var md={onWhiteSpace:function(e,t){null!==t.last&&"Combinator"!==t.last.type&&null!==e&&"Combinator"!==e.type&&t.push({type:"Combinator",loc:null,name:" "})},getNode:function(){switch(this.tokenType){case 19:return this.AttributeSelector();case 4:return this.IdSelector();case 16:return 16===this.lookupType(1)?this.PseudoElementSelector():this.PseudoClassSelector();case 1:return this.TypeSelector();case 10:case 11:return this.Percentage();case 12:46===this.charCodeAt(this.tokenStart)&&this.error("Identifier is expected",this.tokenStart+1);break;case 9:switch(this.charCodeAt(this.tokenStart)){case 43:case 62:case 126:case 47:return this.Combinator();case 46:return this.ClassSelector();case 42:case 124:return this.TypeSelector();case 35:return this.IdSelector();case 38:return this.NestingSelector()}}}};function gd(e){return null!==e&&"Operator"===e.type&&("-"===e.value[e.value.length-1]||"+"===e.value[e.value.length-1])}var fd={getNode:dd,onWhiteSpace(e,t){gd(e)&&(e.value=" "+e.value),gd(t.last)&&(t.last.value+=" ")},expression:function(){return this.createSingleNodeList(this.Raw(this.tokenIndex,null,!1))},var:function(){let e=this.createList();if(this.skipSC(),e.push(this.Identifier()),this.skipSC(),18===this.tokenType){e.push(this.Operator());let t=this.tokenIndex,n=this.parseCustomProperty?this.Value(null):this.Raw(this.tokenIndex,this.consumeUntilExclamationMarkOrSemicolon,!1);if("Value"===n.type&&n.children.isEmpty)for(let e=t-this.tokenIndex;e<=0;e++)if(13===this.lookupType(e)){n.children.appendData({type:"WhiteSpace",loc:null,value:" "});break}e.push(n)}return e}},bd={parse:{prelude(){let e=this.createList();switch(this.skipSC(),this.tokenType){case 5:e.push(this.String());break;case 7:case 2:e.push(this.Url());break;default:this.error("String or url() is expected")}return(1===this.lookupNonWSType(0)||21===this.lookupNonWSType(0))&&e.push(this.MediaQueryList()),e},block:null}},yd={parse:{prelude(){return this.createSingleNodeList(this.MediaQueryList())},block(e=!1){return this.Block(e)}}};function wd(){return this.createSingleNodeList(this.Raw(this.tokenIndex,null,!1))}function kd(){return this.skipSC(),1===this.tokenType&&16===this.lookupNonWSType(1)?this.createSingleNodeList(this.Declaration()):vd.call(this)}function vd(){let e,t=this.createList();this.skipSC();e:for(;!this.eof;){switch(this.tokenType){case 25:case 13:this.next();continue;case 2:e=this.Function(wd,this.scope.AtrulePrelude);break;case 1:e=this.Identifier();break;case 21:e=this.Parentheses(kd,this.scope.AtrulePrelude);break;default:break e}t.push(e)}return t}var xd={parse:{prelude(){let e=vd.call(this);return null===this.getFirstListNode(e)&&this.error("Condition is expected"),e},block(e=!1){return this.Block(e)}}},Ad={"font-face":{parse:{prelude:null,block(){return this.Block(!0)}}},import:bd,media:yd,nest:{parse:{prelude(){return this.createSingleNodeList(this.SelectorList())},block(){return this.Block(!0)}}},page:{parse:{prelude(){return this.createSingleNodeList(this.SelectorList())},block(){return this.Block(!0)}}},supports:xd},Ed={parse(){return this.createSingleNodeList(this.SelectorList())}},Sd={parse(){return this.createSingleNodeList(this.Selector())}},Td={parse(){return this.createSingleNodeList(this.Identifier())}},Cd={parse(){return this.createSingleNodeList(this.Nth())}},Rd={dir:Td,has:Ed,lang:Td,matches:Ed,is:Ed,"-moz-any":Ed,"-webkit-any":Ed,where:Ed,not:Ed,"nth-child":Cd,"nth-last-child":Cd,"nth-last-of-type":Cd,"nth-of-type":Cd,slotted:Sd,host:Sd,"host-context":Sd},Id={};Ht(Id,{AnPlusB:()=>Ki,Atrule:()=>as,AtrulePrelude:()=>us,AttributeSelector:()=>As,Block:()=>Ns,Brackets:()=>qs,CDC:()=>Vs,CDO:()=>Ys,ClassSelector:()=>tl,Combinator:()=>ul,Comment:()=>bl,Declaration:()=>Pl,DeclarationList:()=>Bl,Dimension:()=>Jl,Function:()=>Xl,Hash:()=>oc,IdSelector:()=>gc,Identifier:()=>uc,MediaFeature:()=>kc,MediaQuery:()=>Sc,MediaQueryList:()=>_c,NestingSelector:()=>Uc,Nth:()=>jc,Number:()=>$c,Operator:()=>Qc,Parentheses:()=>nu,Percentage:()=>su,PseudoClassSelector:()=>pu,PseudoElementSelector:()=>wu,Ratio:()=>Cu,Raw:()=>Pu,Rule:()=>ju,Selector:()=>$u,SelectorList:()=>Zu,String:()=>ch,StyleSheet:()=>bh,TypeSelector:()=>Sh,UnicodeRange:()=>Oh,Url:()=>Qh,Value:()=>nd,WhiteSpace:()=>ld});var _d={parseContext:{default:"StyleSheet",stylesheet:"StyleSheet",atrule:"Atrule",atrulePrelude(e){return this.AtrulePrelude(e.atrule?String(e.atrule):null)},mediaQueryList:"MediaQueryList",mediaQuery:"MediaQuery",rule:"Rule",selectorList:"SelectorList",selector:"Selector",block(){return this.Block(!0)},declarationList:"DeclarationList",declaration:"Declaration",value:"Value"},scope:hd,atrule:Ad,pseudo:Rd,node:Id},Ld=Ui({...ud,..._d,...{node:Oi}});var zd={};Ht(zd,{decode:()=>Nd,encode:()=>Md});var Pd=92;function Nd(e){let t=e.length-1,n="";for(let r=0;r<e.length;r++){let a=e.charCodeAt(r);if(a===Pd){if(r===t)break;if(a=e.charCodeAt(++r),zn(Pd,a)){let t=r-1,a=Gn(e,t);r=a-1,n+=Zn(e.substring(t+1,a))}else 13===a&&10===e.charCodeAt(r+1)&&r++}else n+=e[r]}return n}function Md(e){let t="";if(1===e.length&&45===e.charCodeAt(0))return"\\-";for(let n=0;n<e.length;n++){let r=e.charCodeAt(n);0!==r?r<=31||127===r||r>=48&&r<=57&&(0===n||1===n&&45===e.charCodeAt(0))?t+="\\"+r.toString(16)+" ":Rn(r)?t+=e.charAt(n):t+="\\"+e.charAt(n):t+="�"}return t}var{tokenize:Ud,parse:Od,generate:Dd,lexer:qd,createLexer:Fd,walk:jd,find:Bd,findLast:Hd,findAll:Vd,toPlainObject:Wd,fromPlainObject:$d,fork:Jd}=Ld,Gd=Object.freeze({__proto__:null,Lexer:Li,List:cr,TokenStream:ir,clone:function e(t){let n={};for(let r in t){let a=t[r];a&&(Array.isArray(a)||a instanceof cr?a=a.map(e):a.constructor===Object&&(a=e(a))),n[r]=a}return n},createLexer:Fd,createSyntax:Ui,definitionSyntax:Ga,find:Bd,findAll:Vd,findLast:Hd,fork:Jd,fromPlainObject:$d,generate:Dd,ident:zd,isCustomProperty:ua,keyword:sa,lexer:qd,parse:Od,property:la,string:th,toPlainObject:Wd,tokenNames:Xn,tokenTypes:Kt,tokenize:Ud,url:Fh,vendorPrefix:ca,version:"2.3.1",walk:jd});const Yd=/^'(.*?)'$/,Kd=/^"(.*?)"$/,Qd=["inherit","initial","unset"],Zd=["caption","icon","menu","message-box","small-caption","status-bar"],Xd=["normal","bold","bolder","lighter","100","200","300","400","500","600","700","800","900"],ep=["normal","italic","oblique"],tp=["normal","condensed","semi-condensed","extra-condensed","ultra-condensed","expanded","semi-expanded","extra-expanded","ultra-expanded"],np="[parse-css-font] ";function rp(e){const t=Dd(e);if(-1!==Zd.indexOf(t))return{system:t};const n=e.children,r={lineHeight:"normal",stretch:"normal",style:"normal",variant:"normal",weight:"normal"};let a=!1;for(let e=n.head;e;e=e.next){const t=Dd(e.data);if("normal"!==t&&-1===Qd.indexOf(t))if(-1===Xd.indexOf(t))if(-1===ep.indexOf(t))if(-1===tp.indexOf(t)){if("Dimension"==e.data.type){if(r.size=Dd(e.data),e=e.next,e&&"Operator"==e.data.type&&"/"==e.data.value&&e.next?(e=e.next,r.lineHeight=Dd(e.data),e=e.next):"Operator"==n.head.data.type&&"/"==n.head.data.value&&n.head.next&&(r.lineHeight=Dd(n.head.next.data),e=n.head.next.next),!e)throw ap("Missing required font-family.");r.family=[];let t="";for(;e;){for(;e&&"Operator"==e.data.type&&","==e.data.value;)e=e.next;if(e)if("Identifier"==e.data.type)for(;e&&"Identifier"==e.data.type;)t+=" "+Dd(e.data),e=e.next;else t=op(Dd(e.data)),e=e.next;t=t.trim(),t&&(r.family.push(t),t="")}return r}if("normal"!==r.variant)throw ap("Unknown or unsupported font token: "+r.variant);a||(r.variant=t)}else{if(a)continue;r.stretch=t}else{if(a)continue;r.style=t}else{if(a)continue;r.weight=t}else["style","variant","weight","stretch"].forEach((e=>{r[e]=t})),a=!0}throw ap("Missing required font-size.")}function ap(e){return new Error(np+e)}function op(e){return(e=e.match(Yd)?e.replace(Yd,"$1"):e.replace(Kd,"$1")).trim()}var ip=Object.freeze({__proto__:null,parse:rp});function sp(e,t=0){const n=[{mode:"normal",character:null}],r=[];let a=0,o="",i=null,s=null,l=t,c=e;"("===e[0]&&")"===e[e.length-1]&&(c=e.substring(1,e.length-1),l++);for(let e=0;e<c.length;e++){const t=c[e];if("'"!==t&&'"'!==t||(!0===n[a].isCalculationEnabled?(n.push({mode:"string",isCalculationEnabled:!1,character:t}),a++):"string"===n[a].mode&&n[a].character===t&&"\\"!==c[e-1]&&(n.pop(),a--)),"{"===t?(n.push({mode:"interpolation",isCalculationEnabled:!0}),a++):"}"===t&&(n.pop(),a--),"normal"===n[a].mode&&":"===t){const t=c.substring(e+1);s={type:"value",before:/^(\s*)/.exec(t)[1],after:/(\s*)$/.exec(t)[1],value:t.trim()},s.sourceIndex=s.before.length+e+1+l,i={type:"colon",sourceIndex:e+l,after:s.before,value:":"};break}o+=t}return o={type:"media-feature",before:/^(\s*)/.exec(o)[1],after:/(\s*)$/.exec(o)[1],value:o.trim()},o.sourceIndex=o.before.length+l,r.push(o),null!==i&&(i.before=o.after,r.push(i)),null!==s&&r.push(s),r}function lp(e,t=0){const n=[];let r,a=0,o=!1;r={before:"",after:"",value:""};for(let i=0;i<e.length;i++){const s=e[i];o?(r.value+=s,"{"!==s&&"("!==s||a++,")"!==s&&"}"!==s||a--):-1!==s.search(/\s/)?r.before+=s:("("===s&&(r.type="media-feature-expression",a++),r.value=s,r.sourceIndex=t+i,o=!0),!o||0!==a||")"!==s&&i!==e.length-1&&-1===e[i+1].search(/\s/)||(-1!==["not","only","and"].indexOf(r.value)&&(r.type="keyword"),"media-feature-expression"===r.type&&(r.nodes=sp(r.value,r.sourceIndex)),n.push(Array.isArray(r.nodes)?new up(r):new hp(r)),r={before:"",after:"",value:""},o=!1)}for(let e=0;e<n.length;e++)if(r=n[e],e>0&&(n[e-1].after=r.before),void 0===r.type){if(e>0){if("media-feature-expression"===n[e-1].type){r.type="keyword";continue}if("not"===n[e-1].value||"only"===n[e-1].value){r.type="media-type";continue}if("and"===n[e-1].value){r.type="media-feature-expression";continue}"media-type"===n[e-1].type&&(n[e+1]?r.type="media-feature-expression"===n[e+1].type?"keyword":"media-feature-expression":r.type="media-feature-expression")}if(0===e){if(!n[e+1]){r.type="media-type";continue}if(n[e+1]&&("media-feature-expression"===n[e+1].type||"keyword"===n[e+1].type)){r.type="media-type";continue}if(n[e+2]){if("media-feature-expression"===n[e+2].type){r.type="media-type",n[e+1].type="keyword";continue}if("keyword"===n[e+2].type){r.type="keyword",n[e+1].type="media-type";continue}}if(n[e+3]&&"media-feature-expression"===n[e+3].type){r.type="keyword",n[e+1].type="media-type",n[e+2].type="keyword";continue}}}return n}function cp(e){const t=[];let n=0,r=0;const a=/^(\s*)url\s*\(/.exec(e);if(null!==a){let r=a[0].length,o=1;for(;o>0;){const t=e[r];"("===t&&o++,")"===t&&o--,r++}t.unshift(new hp({type:"url",value:e.substring(0,r).trim(),sourceIndex:a[1].length,before:a[1],after:/^(\s*)/.exec(e.substring(r))[1]})),n=r}for(let a=n;a<e.length;a++){const o=e[a];if("("===o&&r++,")"===o&&r--,0===r&&","===o){const r=e.substring(n,a),o=/^(\s*)/.exec(r)[1];t.push(new up({type:"media-query",value:r.trim(),sourceIndex:n+o.length,nodes:lp(r,n),before:o,after:/(\s*)$/.exec(r)[1]})),n=a+1}}const o=e.substring(n),i=/^(\s*)/.exec(o)[1];return t.push(new up({type:"media-query",value:o.trim(),sourceIndex:n+i.length,nodes:lp(o,n),before:i,after:/(\s*)$/.exec(o)[1]})),t}function up(e){this.constructor(e),this.nodes=e.nodes,void 0===this.after&&(this.after=this.nodes.length>0?this.nodes[this.nodes.length-1].after:""),void 0===this.before&&(this.before=this.nodes.length>0?this.nodes[0].before:""),void 0===this.sourceIndex&&(this.sourceIndex=this.before.length),this.nodes.forEach((e=>{e.parent=this}))}function hp(e){this.after=e.after,this.before=e.before,this.type=e.type,this.value=e.value,this.sourceIndex=e.sourceIndex}up.prototype=Object.create(hp.prototype),up.constructor=hp,up.prototype.walk=function(e,t){const n="string"==typeof e||e instanceof RegExp,r=n?t:e,a="string"==typeof e?new RegExp(e):e;for(let o=0;o<this.nodes.length;o++){const i=this.nodes[o];if((!n||a.test(i.type))&&r&&!1===r(i,o,this.nodes))return!1;if(i.nodes&&!1===i.walk(e,t))return!1}return!0},up.prototype.each=function(e=(()=>{})){for(let t=0;t<this.nodes.length;t++){if(!1===e(this.nodes[t],t,this.nodes))return!1}return!0};var dp=Object.freeze({__proto__:null,parseMediaList:cp});const pp="___PRESERVED_TOKEN_",mp={maxLineLen:0,expandVars:!1,uglyComments:!1,cuteComments:!1,debug:!1,output:""},gp=/url\(\s*(["']?)data:/g,fp=/\s+/g,bp=/\n/g;const yp=/(=\s*?["']?)?#([0-9a-f])([0-9a-f])([0-9a-f])([0-9a-f])([0-9a-f])([0-9a-f])(\}|[^0-9a-f{][^{]*?\})/gi;const wp=/@[a-z0-9-_]*keyframes\s+[a-z0-9-_]+\s*{/gi,kp=/(^\s|\s$)/g;const vp=/"([^\\"])*"/g,xp=/"(\\.)*"/g,Ap=/"(\\)*"/g,Ep=/'([^\\']|\\.|\\)*'/g,Sp=/progid:DXImageTransform.Microsoft.Alpha\(Opacity=/gi,Tp=/\r\n/g,Cp=/[\r\n]/g,Rp=/@variables\s*\{\s*([^}]+)\s*\}/g,Ip=/\s*([a-z0-9-]+)\s*:\s*([^;}]+)\s*/gi,_p=/var\s*\(\s*([^)]+)\s*\)/g,Lp=/calc\(([^;}]*)\)/g,zp=/(^\s*|\s*$)/g,Pp=/\( /g,Np=/ \)/g,Mp=/\s*filter:\s*progid:DXImageTransform.Microsoft.Matrix\(([^)]+)\);/g,Up=/(^|\})(([^{:])+:)+([^{]*{)/g,Op=/\s+([!{;:>+()\],])/g,Dp=/([^\\])\s+([}])/g,qp=/!important/g,Fp=/___PSEUDOCLASSCOLON___/g,jp=/:/g,Bp=/\s*(animation|animation-delay|animation-duration|transition|transition-delay|transition-duration):\s*([^;}]+)/gi,Hp=/(^|\D)0?\.?0(m?s)/gi,Vp=/\s*(flex|flex-basis):\s*([^;}]+)/gi,Wp=/\s+/,$p=/(hsla?)\(([^)]+)\)/g,Jp=/(^\s+|\s+$)/g,Gp=/:first-(line|letter)(\{|,)/gi,Yp=/^(.*)(@charset)( "[^"]*";)/gi,Kp=/^((\s*)(@charset)( [^;]+;\s*))+/gi,Qp=/@(font-face|import|(?:-(?:atsc|khtml|moz|ms|o|wap|webkit)-)?keyframe|media|page|namespace)/gi,Zp=/:(active|after|before|checked|disabled|empty|enabled|first-(?:child|of-type)|focus|hover|last-(?:child|of-type)|link|only-(?:child|of-type)|root|:selection|target|visited)/gi,Xp=/^(.*)(@charset "[^"]*";)/g,em=/^(\s*@charset [^;]+;\s*)+/g,tm=/:(lang|not|nth-child|nth-last-child|nth-last-of-type|nth-of-type|(?:-(?:atsc|khtml|moz|ms|o|wap|webkit)-)?any)\(/gi,nm=/([:,( ]\s*)(attr|color-stop|from|rgba|to|url|(?:-(?:atsc|khtml|moz|ms|o|wap|webkit)-)?(?:calc|max|min|(?:repeating-)?(?:linear|radial)-gradient)|-webkit-gradient)/gi,rm=/\s*\/\*/g,am=/\*\/\s*/g,om=/\band\(/gi,im=/([^:])not\(/gi,sm=/\bor\(/gi,lm=/([!{}:;>+([,])\s+/g,cm=/;+\}/g,um=/([0-9])\.0(ex|ch|r?em|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|g?rad|turn|m?s|k?Hz|dpi|dpcm|dppx|%| |;)/gi,hm=/:0 0 0 0(;|\})/g,dm=/:0 0 0(;|\})/g,pm=/(transform-origin|webkit-transform-origin|moz-transform-origin|o-transform-origin|ms-transform-origin|box-shadow):0(;|\})/gi,mm=/(:|\s)0+\.(\d+)/g,gm=/rgb\s*\(\s*([0-9,\s]+)\s*\)/gi,fm=/(border|border-top|border-right|border-bottom|border-left|outline|background):none(;|\})/gi,bm=/progid:DXImageTransform\.Microsoft\.Alpha\(Opacity=/gi,ym=/\(([-A-Za-z]+):([0-9]+)\/([0-9]+)\)/g,wm=/___QUERY_FRACTION___/g,km=/;;+/g,vm=/(:|\s)(#f00)(;|})/g,xm=/___PRESERVED_NEWLINE___/g,Am=/(:|\s)(#000080)(;|})/g,Em=/(:|\s)(#808080)(;|})/g,Sm=/(:|\s)(#808000)(;|})/g,Tm=/(:|\s)(#800080)(;|})/g,Cm=/(:|\s)(#c0c0c0)(;|})/g,Rm=/(:|\s)(#008080)(;|})/g,Im=/(:|\s)(#ffa500)(;|})/g,_m=/(:|\s)(#800000)(;|})/g;function Lm(e="",t=mp){const n=[],r=[];let a;const o=e;function i(t){e=e.replace(t,(e=>{const t=e.substring(0,1);if((e=e.slice(1,-1)).indexOf("___PRESERVE_CANDIDATE_COMMENT_")>=0)for(let t=0,r=n.length;t<r;t+=1)e=e.replace("___PRESERVE_CANDIDATE_COMMENT_"+t+"___",n[t]);return e=e.replace(Sp,"alpha(opacity="),r.push(e),t+pp+(r.length-1)+"___"+t}))}e=function(e,t){const n=gp,r=e.length-1,a=[];let o,i=0;for(;null!==(o=n.exec(e));){const s=o.index+4;let l=o[1];0===l.length&&(l=")");let c=!1,u=n.lastIndex-1;for(;!1===c&&u+1<=r&&-1!=u;)u=e.indexOf(l,u+1),u>0&&"\\"!==e.charAt(u-1)&&(c=!0,")"!=l&&(u=e.indexOf(")",u)));if(a.push(e.substring(i,o.index)),c){let n=e.substring(s,u);const r=n.split(",");r.length>1&&";base64"==r[0].slice(-7)?n=n.replace(fp,""):(n=n.replace(bp," "),n=n.replace(fp," "),n=n.replace(Jp,"")),t.push(n);const o="url("+pp+(t.length-1)+"___)";a.push(o),i=u+1}else a.push(e.substring(o.index,n.lastIndex)),i=n.lastIndex}return a.push(e.substring(i)),a.join("")}(e,r),e=function(e,t){const n=[];let r,a=0;for(;;){const o=e.indexOf("/*",a);if(!(o>-1))break;if(r=e.indexOf("*/",o+2),!(r>-1)){r=-2;break}t.push(e.slice(o+2,r)),n.push(e.slice(a,o)),n.push("/*___PRESERVE_CANDIDATE_COMMENT_"+(t.length-1)+"___*/"),a=r+2}return n.push(e.slice(r+2)),n.join("")}(e,n),i(vp),i(xp),i(Ap),i(Ep);for(let a=0,o=n.length;a<o;a+=1){const o=n[a],i="___PRESERVE_CANDIDATE_COMMENT_"+a+"___";if("!"!==o.charAt(0))if("\\"!==o.charAt(o.length-1)){if(0===o.length){const t=e.indexOf(i);t>2&&">"===e.charAt(t-3)&&(r.push(""),e=e.replace(i,pp+(r.length-1)+"___"))}e=e.replace(`/*${i}*/`,"")}else r.push("\\"),e=e.replace(i,pp+(r.length-1)+"___"),a+=1,r.push(""),e=e.replace("___PRESERVE_CANDIDATE_COMMENT_"+a+"___",pp+(r.length-1)+"___");else t.cuteComments?r.push(o.substring(1).replace(Tp,"\n")):t.uglyComments?r.push(o.substring(1).replace(Cp,"")):r.push(o),e=e.replace(i,pp+(r.length-1)+"___")}if(t.expandVars){const t={};a=Rp,e=e.replace(a,((e,n)=>(a=Ip,n.replace(a,((e,n,r)=>(n&&r&&(t[n]=r),""))),""))),a=_p,e=e.replace(a,((e,n)=>t[n]||"none"))}e=e.replace(fp," "),a=Lp,e=e.replace(a,((e,t)=>(r.push("calc("+t.replace(zp,"").replace(Pp,"(").replace(Np,")")+")"),pp+(r.length-1)+"___"))),a=Mp,e=e.replace(a,((e,t)=>(r.push(t),"filter:progid:DXImageTransform.Microsoft.Matrix("+pp+(r.length-1)+"___);")));try{a=Up,e=e.replace(a,(e=>e.replace(jp,"___PSEUDOCLASSCOLON___")))}catch(e){}if(e=(e=(e=(e=e.replace(Op,"$1")).replace(Dp,"$1$2")).replace(qp," !important")).replace(Fp,":"),a=Bp,e=e.replace(a,((e,t,n)=>t+":"+(n=n.replace(Hp,((e,t,n)=>(r.push("0"+n),t+pp+(r.length-1)+"___")))))),a=Vp,e=function(e,t){const n=wp;let r,a=0;const o=(e,n)=>{"0"===(e=e.replace(kp,"")).charAt(0)&&(t.push(e),r[n]=pp+(t.length-1)+"___")};for(;;){let t=0;r="";let i=e.slice(a).search(n);if(i<0)break;a+=i,i=a;const s=e.length,l=[];for(;a<s;++a){const n=e.charAt(a);if("{"===n)0===t?l.push(r.replace(kp,"")):1===t&&(r=r.split(","),r.forEach(o),l.push(r.join(",").replace(kp,""))),r="",t+=1;else if("}"===n){if(2===t)l.push("{"+r.replace(kp,"")+"}"),r="";else if(1===t){e=e.slice(0,i)+l.shift()+"{"+l.join("")+e.slice(a);break}t-=1}if(t<0)break;"{"!==n&&"}"!==n&&(r+=n)}}return e}(e=(e=e.replace(a,((e,t,n)=>{let a=n.split(Wp);return r.push(a.pop()),a.push(pp+(r.length-1)+"___"),a=a.join(" "),`${t}:${a}`}))).replace($p,((e,t,n)=>{const a=[];return n.split(",").forEach((e=>{"0%"===(e=e.replace(Jp,""))?(r.push("0%"),a.push(pp+(r.length-1)+"___")):a.push(e)})),t+"("+a.join(",")+")"})),r),e=e.replace(Gp,((e,t,n)=>":first-"+t.toLowerCase()+" "+n)),e=t.cuteComments?(e=e.replace(rm,"___PRESERVED_NEWLINE___/*")).replace(am,"*/___PRESERVED_NEWLINE___"):e.replace(am,"*/"),a=Yp,e=e.replace(a,((e,t,n,r)=>n.toLowerCase()+r+t)),a=Kp,e=e.replace(a,((e,t,n,r,a)=>n+r.toLowerCase()+a)),a=Qp,e=e.replace(a,((e,t)=>"@"+t.toLowerCase())),a=Zp,e=(e=(e=e.replace(a,((e,t)=>":"+t.toLowerCase()))).replace(Xp,"$2$1")).replace(em,"$1"),a=tm,e=e.replace(a,((e,t)=>":"+t.toLowerCase()+"(")),a=nm,e=(e=(e=(e=(e=(e=(e=(e=(e=e.replace(a,((e,t,n)=>t+n.toLowerCase()))).replace(om,"and (")).replace(im,"$1not (")).replace(sm,"or (")).replace(lm,"$1")).replace(cm,"}")).replace(um,"$1$2")).replace(hm,":0$1")).replace(dm,":0$1"),a=pm,e=(e=e.replace(a,((e,t,n)=>t.toLowerCase()+":0 0"+n))).replace(mm,"$1.$2"),a=gm,e=function(e){const t=yp,n=[];let r,a=0;for(;null!==(r=t.exec(e));)n.push(e.substring(a,r.index)),r[1]?n.push(r[1]+"#"+(r[2]+r[3]+r[4]+r[5]+r[6]+r[7])):r[2].toLowerCase()==r[3].toLowerCase()&&r[4].toLowerCase()==r[5].toLowerCase()&&r[6].toLowerCase()==r[7].toLowerCase()?n.push("#"+(r[3]+r[5]+r[7]).toLowerCase()):n.push("#"+(r[2]+r[3]+r[4]+r[5]+r[6]+r[7]).toLowerCase()),a=t.lastIndex=t.lastIndex-r[8].length;return n.push(e.substring(a)),n.join("")}(e=e.replace(a,((e,t)=>{const n=t.split(",");let r="#";for(let e=0;e<n.length;e+=1){let t=parseInt(n[e],10);t<16&&(r+="0"),t>255&&(t=255),r+=t.toString(16)}return r}))),e=(e=(e=(e=(e=(e=(e=(e=(e=e.replace(vm,"$1red$3")).replace(Am,"$1navy$3")).replace(Em,"$1gray$3")).replace(Sm,"$1olive$3")).replace(Tm,"$1purple$3")).replace(Cm,"$1silver$3")).replace(Rm,"$1teal$3")).replace(Im,"$1orange$3")).replace(_m,"$1maroon$3"),a=fm,e=(e=(e=(e=e.replace(a,((e,t,n)=>t.toLowerCase()+":0"+n))).replace(bm,"alpha(opacity=")).replace(ym,"($1:$2___QUERY_FRACTION___$3)")).replace(wm,"/"),t.maxLineLen>0){const n=[];let r=[];for(let a=0,o=e.length;a<o;a+=1){const o=e.charAt(a);r.push(o),"}"===o&&r.length>t.maxLineLen&&(n.push(r.join("")),r=[])}r.length&&n.push(r.join("")),e=n.join("\n")}if(e=(e=e.replace(km,";")).replace(zp,""),r.length>1e3)return o;for(let t=r.length-1;t>=0;t--)e=e.replace(pp+t+"___",r[t],"g");return e=e.replace(xm,"\n")}var zm=Object.freeze({__proto__:null,defaultOptions:mp,processString:Lm});function Pm(e){function t(e){return" "===e||"\t"===e||"\n"===e||"\f"===e||"\r"===e}function n(t){let n;const r=t.exec(e.substring(g));if(r)return n=r[0],g+=n.length,n}const r=e.length,a=/^[ \t\n\r\u000c]+/,o=/^[, \t\n\r\u000c]+/,i=/^[^ \t\n\r\u000c]+/,s=/[,]+$/,l=/^\d+$/,c=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/;let u,h,d,p,m,g=0;const f=[];for(;;){if(n(o),g>=r)return f;u=n(i),h=[],","===u.slice(-1)?(u=u.replace(s,""),y()):b()}function b(){for(n(a),d="",p="in descriptor";;){if(m=e.charAt(g),"in descriptor"===p)if(t(m))d&&(h.push(d),d="",p="after descriptor");else{if(","===m)return g+=1,d&&h.push(d),void y();if("("===m)d+=m,p="in parens";else{if(""===m)return d&&h.push(d),void y();d+=m}}else if("in parens"===p)if(")"===m)d+=m,p="in descriptor";else{if(""===m)return h.push(d),void y();d+=m}else if("after descriptor"===p)if(t(m));else{if(""===m)return void y();p="in descriptor",g-=1}g+=1}}function y(){let t,n,r,a,o,i,s,d,p,m=!1;const g={};for(a=0;a<h.length;a++)o=h[a],i=o[o.length-1],s=o.substring(0,o.length-1),d=parseInt(s,10),p=parseFloat(s),l.test(s)&&"w"===i?((t||n)&&(m=!0),0===d?m=!0:t=d):c.test(s)&&"x"===i?((t||n||r)&&(m=!0),p<0?m=!0:n=p):l.test(s)&&"h"===i?((r||n)&&(m=!0),0===d?m=!0:r=d):m=!0;m?console&&console.log&&console.log('Invalid srcset descriptor found in "'+e+'" at "'+o+'".'):(g.url=u,t&&(g.w=t),n&&(g.d=n),r&&(g.h=r),f.push(g))}}var Nm=Object.freeze({__proto__:null,process:Pm});let Mm,Um,Om,Dm;Mm={},Mm.removeLeadingAndTrailingHTTPWhitespace=e=>e.replace(/^[ \t\n\r]+/,"").replace(/[ \t\n\r]+$/,""),Mm.removeTrailingHTTPWhitespace=e=>e.replace(/[ \t\n\r]+$/,""),Mm.isHTTPWhitespaceChar=e=>" "===e||"\t"===e||"\n"===e||"\r"===e,Mm.solelyContainsHTTPTokenCodePoints=e=>/^[-!#$%&'*+.^_`|~A-Za-z0-9]*$/.test(e),Mm.soleyContainsHTTPQuotedStringTokenCodePoints=e=>/^[\t\u0020-\u007E\u0080-\u00FF]*$/.test(e),Mm.asciiLowercase=e=>e.replace(/[A-Z]/g,(e=>e.toLowerCase())),Mm.collectAnHTTPQuotedString=(e,t)=>{let n="";for(t++;;){for(;t<e.length&&'"'!==e[t]&&"\\"!==e[t];)n+=e[t],++t;if(t>=e.length)break;const r=e[t];if(++t,"\\"!==r)break;if(t>=e.length){n+="\\";break}n+=e[t],++t}return[n,t]};{const{solelyContainsHTTPTokenCodePoints:e}=Mm;Om=t=>{let n=`${t.type}/${t.subtype}`;if(0===t.parameters.size)return n;for(let[r,a]of t.parameters)n+=";",n+=r,n+="=",e(a)&&0!==a.length||(a=a.replace(/(["\\])/g,"\\$1"),a=`"${a}"`),n+=a;return n}}{const{removeLeadingAndTrailingHTTPWhitespace:e,removeTrailingHTTPWhitespace:t,isHTTPWhitespaceChar:n,solelyContainsHTTPTokenCodePoints:r,soleyContainsHTTPQuotedStringTokenCodePoints:a,asciiLowercase:o,collectAnHTTPQuotedString:i}=Mm;Um=s=>{s=e(s);let l=0,c="";for(;l<s.length&&"/"!==s[l];)c+=s[l],++l;if(0===c.length||!r(c))return null;if(l>=s.length)return null;++l;let u="";for(;l<s.length&&";"!==s[l];)u+=s[l],++l;if(u=t(u),0===u.length||!r(u))return null;const h={type:o(c),subtype:o(u),parameters:new Map};for(;l<s.length;){for(++l;n(s[l]);)++l;let e="";for(;l<s.length&&";"!==s[l]&&"="!==s[l];)e+=s[l],++l;if(e=o(e),l<s.length){if(";"===s[l])continue;++l}let c=null;if('"'===s[l])for([c,l]=i(s,l);l<s.length&&";"!==s[l];)++l;else{for(c="";l<s.length&&";"!==s[l];)c+=s[l],++l;if(c=t(c),""===c)continue}e.length>0&&r(e)&&a(c)&&!h.parameters.has(e)&&h.parameters.set(e,c)}return h}}{const e=Um,t=Om,{asciiLowercase:n,solelyContainsHTTPTokenCodePoints:r,soleyContainsHTTPQuotedStringTokenCodePoints:a}=Mm;Dm=class{constructor(t){t=String(t);const n=e(t);if(null===n)throw new Error(`Could not parse MIME type string "${t}"`);this._type=n.type,this._subtype=n.subtype,this._parameters=new o(n.parameters)}static parse(e){try{return new this(e)}catch(e){return null}}get essence(){return`${this.type}/${this.subtype}`}get type(){return this._type}set type(e){if(0===(e=n(String(e))).length)throw new Error("Invalid type: must be a non-empty string");if(!r(e))throw new Error(`Invalid type ${e}: must contain only HTTP token code points`);this._type=e}get subtype(){return this._subtype}set subtype(e){if(0===(e=n(String(e))).length)throw new Error("Invalid subtype: must be a non-empty string");if(!r(e))throw new Error(`Invalid subtype ${e}: must contain only HTTP token code points`);this._subtype=e}get parameters(){return this._parameters}toString(){return t(this)}isJavaScript({allowParameters:e=!1}={}){switch(this._type){case"text":switch(this._subtype){case"ecmascript":case"javascript":case"javascript1.0":case"javascript1.1":case"javascript1.2":case"javascript1.3":case"javascript1.4":case"javascript1.5":case"jscript":case"livescript":case"x-ecmascript":case"x-javascript":return e||0===this._parameters.size;default:return!1}case"application":switch(this._subtype){case"ecmascript":case"javascript":case"x-ecmascript":case"x-javascript":return e||0===this._parameters.size;default:return!1}default:return!1}}isXML(){return"xml"===this._subtype&&("text"===this._type||"application"===this._type)||this._subtype.endsWith("+xml")}isHTML(){return"html"===this._subtype&&"text"===this._type}};class o{constructor(e){this._map=e}get size(){return this._map.size}get(e){return e=n(String(e)),this._map.get(e)}has(e){return e=n(String(e)),this._map.has(e)}set(e,t){if(e=n(String(e)),t=String(t),!r(e))throw new Error(`Invalid MIME type parameter name "${e}": only HTTP token code points are valid.`);if(!a(t))throw new Error(`Invalid MIME type parameter value "${t}": only HTTP quoted-string token code points are valid.`);return this._map.set(e,t)}clear(){this._map.clear()}delete(e){return e=n(String(e)),this._map.delete(e)}forEach(e,t){this._map.forEach(e,t)}keys(){return this._map.keys()}values(){return this._map.values()}entries(){return this._map.entries()}[Symbol.iterator](){return this._map[Symbol.iterator]()}}}var qm=Object.freeze({__proto__:null,fontPropertyParser:ip,mediaQueryParser:dp,cssMinifier:zm,cssTree:Gd,cssUnescape:_,srcsetParser:Nm,get MIMEType(){return Dm}});const Fm={normalizeFontFamily:Ae,getFontWeight:_e},jm=globalThis.FontFace,Bm=globalThis.JSON,Hm=/url\s*\(\s*'(.*?)'\s*\)/i,Vm=/url\s*\(\s*"(.*?)"\s*\)/i,Wm=/url\s*\(\s*(.*?)\s*\)/i,$m=/(url|local|-sf-url-original)\(.*?\)\s*(,|$)/g,Jm=/^'(.*?)'$/,Gm=/^"(.*?)"$/,Ym=/^url\(\s*["']?data:font\/(woff2?)/,Km=/^url\(\s*["']?data:application\/x-font-(woff)/,Qm=/\.([^.?#]+)((\?|#).*?)?$/,Zm=/format\((.*?)\)\s*,?$/,Xm=/(.*?)\s*,?$/,eg=/^url\(["']?data:[^,]*,?["']?\)/,tg="local(",ng="all",rg={"ultra-condensed":"50%","extra-condensed":"62.5%",condensed:"75%","semi-condensed":"87.5%",normal:"100%","semi-expanded":"112.5%",expanded:"125%","extra-expanded":"150%","ultra-expanded":"200%"},ag=5e3;async function og(e,t,n,r){const a={fonts:new Map,medias:new Map,supports:new Map},o={rules:{processed:0,discarded:0},fonts:{processed:0,discarded:0}};let i=0;return t.forEach((t=>{const n=t.stylesheet.children;if(n)if(o.rules.processed+=n.size,o.rules.discarded+=n.size,t.mediaText&&t.mediaText!=ng){const r=dg();a.medias.set("media-"+i+"-"+t.mediaText,r),ig(e,n,i,r)}else ig(e,n,i,a);i++})),sg(a),await Promise.all([...t].map((async([,e],t)=>{const i=e.stylesheet.children,s=e.mediaText;i&&(s&&s!=ng?await lg(i,t,a.medias.get("media-"+t+"-"+s),n,r,o):await lg(i,t,a,n,r,o),o.rules.discarded-=i.size)}))),o}function ig(e,t,n,r){let a=0,o=0;t.forEach((t=>{if("Atrule"==t.type&&"media"==t.name&&t.block&&t.block.children&&t.prelude){const o=Dd(t.prelude),i=dg();r.medias.set("media-"+n+"-"+a+"-"+o,i),a++,ig(e,t.block.children,n,i)}else if("Atrule"==t.type&&"supports"==t.name&&t.block&&t.block.children&&t.prelude){const a=Dd(t.prelude),i=dg();r.supports.set("supports-"+n+"-"+o+"-"+a,i),o++,ig(e,t.block.children,n,i)}else if("Atrule"==t.type&&"font-face"==t.name&&t.block&&t.block.children){const e=hg(t);let n=r.fonts.get(e);n||(n=[],r.fonts.set(e,n));const a=ug(t,"src");if(a){const e=a.match($m);e&&e.forEach((e=>n.unshift(e)))}}}))}function sg(e){e.fonts.forEach(((t,n)=>{e.fonts.set(n,t.map((e=>{const t=e.match(Zm);let n;const r=function(e){const t=(e=e.replace(/url\(-sf-url-original\\\(\\"(.*?)\\"\\\)\\ /g,"")).match(Hm)||e.match(Vm)||e.match(Wm);return t&&t[1]}(e);if(t&&t[1]&&(n=t[1].replace(Jm,"$1").replace(Gm,"$1").toLowerCase()),!n){const t=e.match(Ym);if(t&&t[1])n=t[1];else{const t=e.match(Km);t&&t[1]&&(n=t[1])}}if(!n&&r){const e=r.match(Qm);e&&e[1]&&(n=e[1])}return{src:e.match(Xm)[1],fontUrl:r,format:n}})))})),e.medias.forEach((e=>sg(e))),e.supports.forEach((e=>sg(e)))}async function lg(e,t,n,r,a,o){const i=[];let s=0,l=0;for(let c=e.head;c;c=c.next){const e=c.data;if("Atrule"==e.type&&"media"==e.name&&e.block&&e.block.children&&e.prelude){const i=Dd(e.prelude);await lg(e.block.children,t,n.medias.get("media-"+t+"-"+s+"-"+i),r,a,o),s++}else if("Atrule"==e.type&&"supports"==e.name&&e.block&&e.block.children&&e.prelude){const i=Dd(e.prelude);await lg(e.block.children,t,n.supports.get("supports-"+t+"-"+l+"-"+i),r,a,o),l++}else if("Atrule"==e.type&&"font-face"==e.name){const t=hg(e),s=n.fonts.get(t);if(s){await cg(e,s,r,a,o)&&n.fonts.delete(t)}else i.push(c)}}i.forEach((t=>e.remove(t)))}async function cg(e,t,n,r,a){const o=[];for(let t=e.block.children.head;t;t=t.next)"src"==t.data.property&&o.push(t);o.pop(),o.forEach((t=>e.block.children.remove(t)));const i=e.block.children.filter((e=>"src"==e.property)).tail;if(i){await Promise.all(t.map((async e=>{if(r.has(e.src))e.valid=r.get(e.src);else{if(jm&&e.fontUrl){const t=new jm("test-font",e.src);try{let n;await Promise.race([t.load().then((()=>t.loaded)).then((()=>{e.valid=!0,globalThis.clearTimeout(n)})),new Promise((t=>n=globalThis.setTimeout((()=>{e.valid=!0,t()}),ag)))])}catch(t){const r=Vd(i.data,(e=>"Url"==e.type)),a=Array.from(n).find((([t])=>r.includes(t)&&t.value==e.fontUrl));if(a&&a[1].length){const t=a[1][0];if(t){const n=new jm("test-font","url("+t+")");try{let t;await Promise.race([n.load().then((()=>n.loaded)).then((()=>{e.valid=!0,globalThis.clearTimeout(t)})),new Promise((n=>t=globalThis.setTimeout((()=>{e.valid=!0,n()}),ag)))])}catch(e){}}}else e.valid=!0}}else e.valid=!0;r.set(e.src,e.valid)}})));const e=(e,n)=>t.find((t=>!t.src.match(eg)&&t.format==e&&(!n||t.valid))),o=e=>t.filter((t=>t==e||t.src.startsWith(tg)));a.fonts.processed+=t.length,a.fonts.discarded+=t.length;const s=e("woff2-variations",!0)||e("woff2",!0)||e("woff",!0);if(s)t=o(s);else{const n=e("truetype-variations",!0)||e("truetype",!0);if(n)t=o(n);else{const n=e("opentype")||e("embedded-opentype");t=n?o(n):t.filter((e=>!e.src.match(eg)&&e.valid||e.src.startsWith(tg)))}}a.fonts.discarded-=t.length,t.reverse();try{i.data.value=Od(t.map((e=>e.src)).join(","),{context:"value",parseCustomProperty:!0})}catch(e){}return!0}return!1}function ug(e,t){let n;if(e.block.children&&(n=e.block.children.filter((e=>{try{return e.property==t&&!Dd(e.value).match(/\\9$/)}catch(n){return e.property==t}})).tail),n)try{return Dd(n.data.value)}catch(e){}}function hg(e){return Bm.stringify([Fm.normalizeFontFamily(ug(e,"font-family")),Fm.getFontWeight(ug(e,"font-weight")||"400"),ug(e,"font-style")||"normal",ug(e,"unicode-range"),(t=ug(e,"font-stretch"),rg[t]||t),ug(e,"font-variant")||"normal",ug(e,"font-feature-settings"),ug(e,"font-variation-settings")]);var t}function dg(){return{fonts:new Map,medias:new Map,supports:new Map}}var pg=Object.freeze({__proto__:null,process:og});const mg={normalizeFontFamily:Ae,flatten:Le,getFontWeight:_e,removeQuotes:Ie},gg=/\s*,\s*/,fg=/-/,bg=/\?/g,yg=/^U\+/i,wg=[/^normal$/,/^italic$/,/^oblique$/,/^oblique\s+/];function kg(e,t,n,r){const a={rules:{processed:0,discarded:0},fonts:{processed:0,discarded:0}},o={declared:[],used:[]},i=e.createElement("style");let s="";e.body.appendChild(i),t.forEach((t=>{const n=t.stylesheet.children;n&&(a.processed+=n.size,a.discarded+=n.size,vg(n,o),s=_g(e,n,i,s))})),n.forEach((e=>{const t=Tg(e);t.length&&o.used.push(t),s=Lg(e.children,i,s)})),i.remove(),s+=e.body.innerText,globalThis.getComputedStyle&&r.doc&&(o.used=o.used.map((e=>e.map((e=>{const t=e.match(/^var\((--.*)\)$/);if(t&&t[1]){const n=globalThis.getComputedStyle(r.doc.body).getPropertyValue(t[1]);return n&&n.split(",").map((e=>mg.normalizeFontFamily(e)))||e}return e})))),o.used=o.used.map((e=>mg.flatten(e))));let l,c;return o.used.find((e=>e.find((e=>e.match(/^var\(--/)))))?l=[]:(c=new Map,o.used.forEach((e=>e.forEach((e=>{if(o.declared.find((t=>t.fontFamily==e))){const t=r.usedFonts&&r.usedFonts.filter((t=>t[0]==e));t&&t.length&&c.set(e,t)}})))),l=o.declared.filter((e=>!c.has(e.fontFamily)))),t.forEach((e=>{const t=e.stylesheet.children;t&&(xg(t,o.declared,l,c,s),a.rules.discarded-=t.size)})),a}function vg(e,t){e.forEach((e=>{if("Atrule"==e.type&&("media"==e.name||"supports"==e.name)&&e.block&&e.block.children)vg(e.block.children,t);else if("Rule"==e.type){const n=Tg(e.block);n.length&&t.used.push(n)}else if("Atrule"==e.type&&"font-face"==e.name){const n=mg.normalizeFontFamily(Sg(e.block.children,"font-family"));if(n){const r=Sg(e.block.children,"font-weight")||"400",a=Sg(e.block.children,"font-style")||"normal",o=Sg(e.block.children,"font-variant")||"normal";r.split(",").forEach((e=>t.declared.push({fontFamily:n,fontWeight:mg.getFontWeight(mg.removeQuotes(e)),fontStyle:a,fontVariant:o})))}}}))}function xg(e,t,n,r,a){const o=[];for(let i=e.head;i;i=i.next){const e=i.data;if("Atrule"==e.type&&("media"==e.name||"supports"==e.name)&&e.block&&e.block.children)xg(e.block.children,t,n,r,a);else if("Atrule"==e.type&&"font-face"==e.name){const s=mg.normalizeFontFamily(Sg(e.block.children,"font-family"));if(s){const l=Sg(e.block.children,"unicode-range");!n.find((e=>e.fontFamily==s))&&Pg(a,l)&&Ag(e,s,t,r)||o.push(i)}const l=[];for(let t=e.block.children.head;t;t=t.next)"font-display"==t.data.property&&l.push(t);l.length&&l.forEach((t=>e.block.children.remove(t)))}}o.forEach((t=>e.remove(t)))}function Ag(e,t,n,r){let a;const o=r&&r.get(t);if(o&&o.length){let r=Sg(e.block.children,"font-style")||"normal";if(wg.find((e=>r.trim().match(e)))){const i=mg.getFontWeight(Sg(e.block.children,"font-weight")||"400"),s=n.filter((e=>e.fontFamily==t&&e.fontStyle==r)).map((e=>e.fontWeight)).sort(((e,t)=>Number.parseInt(e,10)-Number.parseInt(t,10)));let l=o.map((e=>Cg(e,r,s)));a=Eg(i,l),a||(l=o.map((e=>((e=Array.from(e))[2]="normal",Cg(e,r,s))))),a=Eg(i,l)}else a=!0}else a=!0;return a}function Eg(e,t){let n;for(const r of e.split(/[ ,]/))n=n||t.includes(mg.getFontWeight(mg.removeQuotes(r)));return n}function Sg(e,t){let n;if(e&&(n=e.filter((e=>e.property==t)).tail),n)try{return mg.removeQuotes(Dd(n.data.value)).toLowerCase()}catch(e){}}function Tg(e){let t=e.children.filter((e=>"font-family"==e.property)).tail,n=[];if(t){let e="";if(t.data.value.children){let r;t.data.value.children.forEach((t=>{"Operator"==t.type&&","==t.value&&e?(n.push(mg.normalizeFontFamily(e)),e="",r=null):("Identifier"==r&&"Identifier"==t.type&&(e+=" "),e+=Dd(t)),r=t.type}))}else t=Dd(t.data.value);e&&n.push(mg.normalizeFontFamily(e))}const r=e.children.filter((e=>"font"==e.property)).tail;if(r&&r.data&&r.data.value)try{rp(r.data.value).family.forEach((e=>n.push(mg.normalizeFontFamily(e))))}catch(e){}return n}function Cg(e,t,n){let r;if(n=n.map((e=>String(Number.parseInt(e,10)))),e[2]==t){let t=Number(e[1]);n.length>1?(t>=400&&t<=500&&(r=n.find((e=>e>=t&&e<=500)),r||(r=Rg(t,n)),r||(r=Ig(t,n))),t<400&&(r=n.slice().reverse().find((e=>e<=t)),r||(r=Ig(t,n))),t>500&&(r=n.find((e=>e>=t)),r||(r=Rg(t,n)))):r=n[0]}return r}function Rg(e,t){return t.slice().reverse().find((t=>t<e))}function Ig(e,t){return t.find((t=>t>e))}function _g(e,t,n,r){return t.forEach((t=>{t.block&&t.block.children&&t.prelude&&t.prelude.children&&("Atrule"!=t.type||"media"!=t.name&&"supports"!=t.name?"Rule"==t.type&&(r=Lg(t.block.children,n,r)):r=_g(e,t.block.children,n,r))})),r}function Lg(e,t,n){const r=zg(e,"content",t),a=zg(e,"quotes",t);return n.includes(r)||(n+=r),n.includes(a)||(n+=a),n}function zg(e,t,n){const r=Sg(e,t)||"";return r?(n.textContent='tmp { content:"'+r+'"}',n.sheet&&n.sheet.cssRules?mg.removeQuotes(n.sheet.cssRules[0].style.getPropertyValue("content")):r):""}function Pg(e,t){if(t){const n=t.split(gg);let r;const a=n.filter((t=>{const n=t.split(fg);let a;if(2==n.length&&(n[0]=Ng(n[0]),a="["+n[0]+"-"+Ng("U+"+n[1])+"]"),1==n.length)if(n[0].includes("?")){const e=Ng(n[0]),t=e;a="["+e.replace(bg,"0")+"-"+t.replace(bg,"F")+"]"}else n[0]&&(a="["+Ng(n[0])+"]");if(a)try{return new RegExp(a,"u").test(e)}catch(e){return r=!0,!1}return!0}));return!r&&(!n.length||a.length)}return!0}function Ng(e){for(e=e.replace(yg,"");e.length<6;)e="0"+e;return"\\u{"+e+"}"}var Mg=Object.freeze({__proto__:null,process:kg});const Ug="all",Og=["after","before","first-letter","first-line","placeholder","selection","part","marker"],Dg="sf-hidden",qg="display",Fg=/-(ms|webkit|moz|o)-/;class jg{constructor(e,t,n){this.doc=e,this.mediaAllInfo=Hg(Ug);const r=new Map;let a=0;const o=e.createElement("style");e.body.appendChild(o);const i=e.createElement("span");e.body.appendChild(i),t.forEach((t=>{if(!t.scoped){const i=t.stylesheet.children;if(i)if(t.mediaText&&t.mediaText!=Ug){const s=Hg(t.mediaText);this.mediaAllInfo.medias.set("style-"+a+"-"+t.mediaText,s),Vg(e,i,s,a,n,r,o)}else Vg(e,i,this.mediaAllInfo,a,n,r,o)}a++})),Gg(this.mediaAllInfo),$g(this.mediaAllInfo,[],this.mediaAllInfo,o,i),o.remove(),i.remove()}getMediaAllInfo(){return this.mediaAllInfo}}function Bg(e,t,n){return new jg(e,t,n).getMediaAllInfo()}function Hg(e){const t={media:e,elements:new Map,medias:new Map,rules:new Map,pseudoRules:new Map};return e==Ug&&(t.matchedStyles=new Map),t}function Vg(e,t,n,r,a,o,i){let s=0,l=0;t.forEach((t=>{if(t.block&&t.block.children&&t.prelude&&t.prelude.children)if("Atrule"==t.type&&"media"==t.name){const l=Dd(t.prelude),c=Hg(l);n.medias.set("rule-"+r+"-"+s+"-"+l,c),s++,Vg(e,t.block.children,c,r,a,o,i)}else if("Rule"==t.type){const s=t.prelude.children.toArray(),c=t.prelude.children.toArray().map((e=>Dd(e))),u={ruleData:t,mediaInfo:n,ruleIndex:l,sheetIndex:r,matchedSelectors:new Set,declarations:new Set,selectors:s,selectorsText:c};if(!function(e,t){return t.textContent=e+"{}",t.sheet?!t.sheet.cssRules.length:t.sheet}(c.join(","),i)||c.find((e=>e.includes("|"))))for(let n=t.prelude.children.head,r=0;n;n=n.next,r++){const t=c[r];Wg(e,{selector:n,selectorText:t,ruleInfo:u},a,o)}l++}}))}function Wg(e,t,n,r){const a=function(e,t){const n=[];let r;o(e={data:Od(Dd(e.data),{context:"selector"})}),r&&(t=Dd(e.data).trim());a(e),n.length&&(n.forEach((({parentSelector:e,selector:t})=>{0!=e.data.children.size&&t.prev&&"Combinator"!=t.prev.data.type&&"WhiteSpace"!=t.prev.data.type?e.data.children.remove(t):e.data.children.replace(t,Od("*",{context:"selector"}).children.head)})),t=Dd(e.data).trim());return t;function a(e,t){if(e.data.children)for(let t=e.data.children.head;t;t=t.next)a(t,e);("PseudoClassSelector"==e.data.type||"PseudoElementSelector"==e.data.type&&(i(e)||Og.includes(e.data.name)))&&n.push({parentSelector:t,selector:e})}function o(e){if(e.data.children)for(let t=e.data.children.head;t;t=t.next)o(t);"TypeSelector"==e.data.type&&e.data.name.includes("|")&&(r=!0,e.data.name=e.data.name.substring(e.data.name.lastIndexOf("|")+1))}function i(e){const t=e.data.name;return t.startsWith("-")||t.startsWith("\\-")}}(t.selector,t.selectorText),o=a!=t.selectorText?a:t.selectorText,i=r.get(o);let s=i;if(!s)try{s=e.querySelectorAll(o),o!="."+Dg&&(s=Array.from(e.querySelectorAll(o)).filter((e=>!e.classList.contains(Dg)&&("none"!=e.style.getPropertyValue(qg)||"important"!=e.style.getPropertyPriority("display")))))}catch(e){}if(s&&(i||r.set(o,s),s.length))if(a==t.selectorText)s.forEach((e=>function(e,t,n){const r=t.ruleInfo.mediaInfo,a=n.get(e);let o=r.elements.get(e);o||(o=[],a&&o.push({styleInfo:{styleData:a,declarations:new Set}}),r.elements.set(e,o));const i=Yg(t.selector.data);i.ruleIndex=t.ruleInfo.ruleIndex,i.sheetIndex=t.ruleInfo.sheetIndex,t.specificity=i,o.push(t)}(e,t,n)));else{let e=t.ruleInfo.mediaInfo.pseudoRules.get(t.ruleInfo.ruleData);e||(e=new Set,t.ruleInfo.mediaInfo.pseudoRules.set(t.ruleInfo.ruleData,e)),e.add(t.selectorText)}}function $g(e,t,n,r,a){e.elements.forEach((r=>function(e,t,n){const r=new Map,a=new Set;return e.forEach((e=>{let t;t=e.styleInfo?e.styleInfo.styleData.children:e.ruleInfo.ruleData.block.children,function(e,t,n,r,a,o){for(let a=t.tail;a;a=a.prev){const t=a.data,i=Dd(t);if("Declaration"==t.type&&(i.match(Fg)||!r.has(t.property)||t.important)&&!Jg(i,o)){const a=e.get(t);(!a||t.important&&!a.important)&&(e.set(t,{selectorInfo:n,important:t.important}),i.match(Fg)||r.add(t.property))}}}(r,t,e,a,0,n)})),r}(r,0,a).forEach(((r,a)=>{if(r.selectorInfo.ruleInfo||e==n){let o;if(r.selectorInfo.ruleInfo){o=r.selectorInfo.ruleInfo;const n=o.ruleData;([e,...t].find((e=>e.rules.get(n)))||e).rules.set(n,o),n&&o.matchedSelectors.add(r.selectorInfo.selectorText)}else{o=r.selectorInfo.styleInfo;const e=o.styleData;n.matchedStyles.get(e)||n.matchedStyles.set(e,o)}o.declarations.has(a)||o.declarations.add(a)}})))),delete e.elements,e.medias.forEach((o=>$g(o,[e,...t],n,r,a)))}function Jg(e,t){let n;return t.style=e,t.style.length||e.match(Fg)||(n=!0),n}function Gg(e){e.elements.forEach((e=>e.sort(((e,t)=>{return e.styleInfo&&!t.styleInfo?-1:!e.styleInfo&&t.styleInfo?1:(n=e.specificity,r=t.specificity,n.a>r.a?-1:n.a<r.a?1:n.b>r.b?-1:n.b<r.b?1:n.c>r.c?-1:n.c<r.c?1:n.sheetIndex>r.sheetIndex?-1:n.sheetIndex<r.sheetIndex?1:n.ruleIndex>r.ruleIndex?-1:n.ruleIndex<r.ruleIndex?1:-1);var n,r})))),e.medias.forEach(Gg)}function Yg(e,t={a:0,b:0,c:0}){return"IdSelector"==e.type&&t.a++,("ClassSelector"==e.type||"AttributeSelector"==e.type||"PseudoClassSelector"==e.type&&"not"!=e.name)&&t.b++,("TypeSelector"==e.type&&"*"!=e.name||"PseudoElementSelector"==e.type)&&t.c++,e.children&&e.children.forEach((e=>Yg(e,t))),t}var Kg=Object.freeze({__proto__:null,getMediaAllInfo:Bg});const Qg={flatten:Le},Zg="all",Xg="screen";function ef(e){const t={processed:0,discarded:0};return e.forEach(((n,r)=>{if(nf(n.mediaText||Zg,Xg)&&n.stylesheet.children){tf(n.stylesheet.children,t).forEach((({cssRules:e,cssRule:t})=>e.remove(t)))}else e.delete(r)})),t}function tf(e,t,n=[]){for(let r=e.head;r;r=r.next){const a=r.data;"Atrule"==a.type&&"media"==a.name&&a.block&&a.block.children&&a.prelude&&a.prelude.children&&(t.processed++,nf(Dd(a.prelude),Xg)?tf(a.block.children,t,n):(n.push({cssRules:e,cssRule:r}),t.discarded++))}return n}function nf(e,t){return Qg.flatten(cp(e).map((e=>rf(e,t)))).find((e=>!e.not&&(e.value==t||e.value==Zg)||e.not&&(e.value==Zg||e.value!=t)))}function rf(e,t,n=[]){return e.nodes.map(((r,a)=>{if("media-query"==r.type)return rf(r,t,n);if("media-type"==r.type){const t={not:Boolean(a&&"keyword"==e.nodes[0].type&&"not"==e.nodes[0].value),value:r.value};n.find((e=>t.not==e.not&&t.value==e.value))||n.push(t)}})),n.length||n.push({not:!1,value:Zg}),n}var af=Object.freeze({__proto__:null,process:ef});function of(e,t,n){const r={processed:0,discarded:0};let a=0;return e.forEach((e=>{if(!e.scoped){const t=e.stylesheet.children;if(t){let o;r.processed+=t.size,r.discarded+=t.size,o=e.mediaText&&"all"!=e.mediaText?n.medias.get("style-"+a+"-"+e.mediaText):n,sf(t,a,o),r.discarded-=t.size}}a++})),t.forEach((e=>function(e,t){const n=[],r=t.matchedStyles.get(e);if(r){let t;for(let a=e.children.head;a&&!t;a=a.next)r.declarations.has(a.data)||n.push(a);n.forEach((t=>e.children.remove(t)))}}(e,n))),r}function sf(e,t,n){let r=0;const a=[];for(let o=e.head;o;o=o.next){const e=o.data;if(e.block&&e.block.children&&e.prelude&&e.prelude.children){if("Atrule"==e.type&&"media"==e.name){const i=Dd(e.prelude);sf(e.block.children,t,n.medias.get("rule-"+t+"-"+r+"-"+i)),e.prelude.children.size&&e.block.children.size||a.push(o),r++}else if("Rule"==e.type){const t=n.rules.get(e),r=n.pseudoRules.get(e);t||r?t&&(lf(e,t,r),e.prelude.children.size&&e.block.children.size||a.push(o)):a.push(o)}}else e&&"Raw"!=e.type&&("Rule"!=e.type||e.prelude&&"Raw"!=e.prelude.type)||a.push(o)}a.forEach((t=>e.remove(t)))}function lf(e,t,n){const r=[],a=[];let o;for(let r=e.prelude.children.head;r;r=r.next){const e=Dd(r.data);n&&n.has(e)&&(o=!0),t.matchedSelectors.has(e)||n&&n.has(e)||a.push(r)}if(!o)for(let n=e.block.children.tail;n;n=n.prev)t.declarations.has(n.data)||r.push(n);r.forEach((t=>e.block.children.remove(t))),a.forEach((t=>e.prelude.children.remove(t)))}var cf=Object.freeze({__proto__:null,process:of});const uf="data:,";function hf(e){e.querySelectorAll("picture").forEach((e=>{const t=e.querySelector("img");if(t){let{src:n,srcset:r}=df(t);if(!n){const t=function(e){let t=e.find((e=>e.src)),n=t&&t.src,r=t&&t.srcset;n||(t=e.find((e=>mf(e.src))),n=t&&t.src,n==uf&&(n=null));r||(t=e.find((e=>mf(e.srcset))),r=t&&t.srcset,r==uf&&(r=null));return{src:n,srcset:r}}(Array.from(e.querySelectorAll("source")).reverse());n=t.src,r||(r=t.srcset)}pf({src:n,srcset:r},t,e)}})),e.querySelectorAll(":not(picture) > img[srcset]").forEach((e=>pf(df(e),e)))}function df(e){let t=e.getAttribute("src");t==uf&&(t=null);let n=mf(e.getAttribute("srcset"));return n==uf&&(n=null),{src:t,srcset:n}}function pf(e,t,n){e.src?(t.setAttribute("src",e.src),t.setAttribute("srcset",""),t.setAttribute("sizes","")):(t.setAttribute("src",uf),e.srcset?t.setAttribute("srcset",e.srcset):(t.setAttribute("srcset",""),t.setAttribute("sizes",""))),n&&n.querySelectorAll("source").forEach((e=>e.remove()))}function mf(e){if(e)try{const t=Pm(e);if(t.length)return t.find((e=>e.url)).url}catch(e){}}var gf=Object.freeze({__proto__:null,process:hf});const ff=["allowfullscreen","async","autofocus","autoplay","checked","compact","controls","declare","default","defaultchecked","defaultmuted","defaultselected","defer","disabled","enabled","formnovalidate","hidden","indeterminate","inert","ismap","itemscope","loop","multiple","muted","nohref","noresize","noshade","novalidate","nowrap","open","pauseonexit","readonly","required","reversed","scoped","seamless","selected","sortable","truespeed","typemustmatch","visible"],bf=["SCRIPT","STYLE","PRE","TEXTAREA"],yf=["id","class","style","lang","dir","onclick","ondblclick","onmousedown","onmouseup","onmouseover","onmousemove","onmouseout","onkeypress","onkeydown","onkeyup"],wf={FORM:{method:"get"},SCRIPT:{language:"javascript",type:"text/javascript",charset:e=>!e.getAttribute("src")},STYLE:{media:"all",type:"text/css"},LINK:{media:"all"}},kf=/[ \t\f\r]+/g,vf=/[\n]+/g,xf=/^\s+$/,Af=4294967295,Ef=[function(e){1==e.nodeType&&Array.from(e.attributes).forEach((t=>{ff.includes(t.name)&&e.setAttribute(t.name,"")}))},function(e){3==e.nodeType&&e.previousSibling&&3==e.previousSibling.nodeType&&(e.textContent=e.previousSibling.textContent+e.textContent,e.previousSibling.remove())},function(e,t){if(3==e.nodeType){let n=e.parentElement;if(!(""==n.getAttribute(t.PRESERVED_SPACE_ELEMENT_ATTRIBUTE_NAME))){const t=e.textContent;let r=Tf(n);for(;r;)n=n.parentElement,r=n&&Tf(n);(!n||r)&&t.length>1&&(e.textContent=t.replace(kf,function(e){return e.parentElement&&"HEAD"==Cf(e.parentElement)?"\n":" "}(e)).replace(vf,"\n"))}}},function(e){if(8==e.nodeType&&"HTML"!=Cf(e.parentElement))return!e.textContent.toLowerCase().trim().startsWith("[if")},function(e){1==e.nodeType&&Array.from(e.attributes).forEach((t=>{if(yf.includes(t.name.toLowerCase())){const n=e.getAttribute(t.name);(""==n||(n||"").match(xf))&&e.removeAttribute(t.name)}}))},function(e){if(1==e.nodeType){const t=wf[Cf(e)];t&&Object.keys(t).forEach((n=>{const r=t[n];("function"==typeof r?r(e):e.getAttribute(n)==r)&&e.removeAttribute(n)}))}},function(e){if(1==e.nodeType&&"SCRIPT"==Cf(e)&&"application/ld+json"==e.type&&e.textContent.trim())try{e.textContent=JSON.stringify(JSON.parse(e.textContent))}catch(e){}},e=>function(e,t,n){if(1==e.nodeType&&Cf(e)==t.toUpperCase()){let t=e.previousSibling;const r=[];for(;t&&3==t.nodeType&&!t.textContent.trim();)r.push(t),t=t.previousSibling;t&&1==t.nodeType&&t.tagName==e.tagName&&n(e,t)&&(e.textContent=t.textContent+e.textContent,r.forEach((e=>e.remove())),t.remove())}}(e,"style",((e,t)=>e.parentElement&&"HEAD"==Cf(e.parentElement)&&e.media==t.media&&e.title==t.title))];function Sf(e,t){!function(e){e.querySelectorAll("style, script:not([src])").forEach((e=>{e.textContent.trim()||e.remove()}))}(e);const n=e.createTreeWalker(e.documentElement,Af,null,!1);let r=n.nextNode();for(;r;){const e=Ef.find((e=>e(r,t))),a=r;r=n.nextNode(),e&&a.remove()}}function Tf(e){return e&&!bf.includes(Cf(e))}function Cf(e){return e.tagName&&e.tagName.toUpperCase()}var Rf=Object.freeze({__proto__:null,process:Sf});const If=["AREA","BASE","BR","COL","COMMAND","EMBED","HR","IMG","INPUT","KEYGEN","LINK","META","PARAM","SOURCE","TRACK","WBR"],_f=1,Lf=3,zf=8,Pf=[{tagName:"HEAD",accept:e=>!e.childNodes.length||e.childNodes[0].nodeType==_f},{tagName:"BODY",accept:e=>!e.childNodes.length}],Nf=[{tagName:"HTML",accept:e=>!e||e.nodeType!=zf},{tagName:"HEAD",accept:e=>!e||e.nodeType!=zf&&(e.nodeType!=Lf||!Df(e.textContent))},{tagName:"BODY",accept:e=>!e||e.nodeType!=zf},{tagName:"LI",accept:(e,t)=>!e&&t.parentElement&&("UL"==qf(t.parentElement)||"OL"==qf(t.parentElement))||e&&["LI"].includes(qf(e))},{tagName:"DT",accept:e=>!e||["DT","DD"].includes(qf(e))},{tagName:"P",accept:e=>e&&["ADDRESS","ARTICLE","ASIDE","BLOCKQUOTE","DETAILS","DIV","DL","FIELDSET","FIGCAPTION","FIGURE","FOOTER","FORM","H1","H2","H3","H4","H5","H6","HEADER","HR","MAIN","NAV","OL","P","PRE","SECTION","TABLE","UL"].includes(qf(e))},{tagName:"DD",accept:e=>!e||["DT","DD"].includes(qf(e))},{tagName:"RT",accept:e=>!e||["RT","RP"].includes(qf(e))},{tagName:"RP",accept:e=>!e||["RT","RP"].includes(qf(e))},{tagName:"OPTGROUP",accept:e=>!e||["OPTGROUP"].includes(qf(e))},{tagName:"OPTION",accept:e=>!e||["OPTION","OPTGROUP"].includes(qf(e))},{tagName:"COLGROUP",accept:e=>!e||e.nodeType!=zf&&(e.nodeType!=Lf||!Df(e.textContent))},{tagName:"CAPTION",accept:e=>!e||e.nodeType!=zf&&(e.nodeType!=Lf||!Df(e.textContent))},{tagName:"THEAD",accept:e=>!e||["TBODY","TFOOT"].includes(qf(e))},{tagName:"TBODY",accept:e=>!e||["TBODY","TFOOT"].includes(qf(e))},{tagName:"TFOOT",accept:e=>!e},{tagName:"TR",accept:e=>!e||["TR"].includes(qf(e))},{tagName:"TD",accept:e=>!e||["TD","TH"].includes(qf(e))},{tagName:"TH",accept:e=>!e||["TD","TH"].includes(qf(e))}],Mf=["STYLE","SCRIPT","XMP","IFRAME","NOEMBED","NOFRAMES","PLAINTEXT","NOSCRIPT"];function Uf(e,t){const n=e.doctype;let r="";return n&&(r="<!DOCTYPE "+n.nodeName,n.publicId?(r+=' PUBLIC "'+n.publicId+'"',n.systemId&&(r+=' "'+n.systemId+'"')):n.systemId&&(r+=' SYSTEM "'+n.systemId+'"'),n.internalSubset&&(r+=" ["+n.internalSubset+"]"),r+="> "),r+Of(e.documentElement,t)}function Of(e,t,n){return e.nodeType==Lf?function(e){const t=e.parentNode;let n;t&&t.nodeType==_f&&(n=qf(t));return!n||Mf.includes(n)?"SCRIPT"==n||"STYLE"==n?e.textContent.replace(/<\//gi,"<\\/").replace(/\/>/gi,"\\/>"):e.textContent:e.textContent.replace(/&/g,"&").replace(/\u00a0/g," ").replace(/</g,"<").replace(/>/g,">")}(e):e.nodeType==zf?"\x3c!--"+e.textContent+"--\x3e":e.nodeType==_f?function(e,t,n){const r=qf(e),a=t&&Pf.find((t=>r==qf(t)&&t.accept(e)));let o="";a&&!e.attributes.length||(o="<"+r.toLowerCase(),Array.from(e.attributes).forEach((n=>o+=function(e,t,n){const r=e.name;let a="";if(!r.match(/["'>/=]/)){let o,i=e.value;n&&"class"==r&&(i=Array.from(t.classList).map((e=>e.trim())).join(" ")),i=i.replace(/&/g,"&").replace(/\u00a0/g," "),i.includes('"')&&(i.includes("'")||!n?i=i.replace(/"/g,"""):o=!0);const s=!n||i.match(/[ \t\n\f\r'"`=<>]/);a+=" ",e.namespace?"http://www.w3.org/XML/1998/namespace"==e.namespaceURI?a+="xml:"+r:"http://www.w3.org/2000/xmlns/"==e.namespaceURI?("xmlns"!==r&&(a+="xmlns:"),a+=r):"http://www.w3.org/1999/xlink"==e.namespaceURI?a+="xlink:"+r:a+=r:a+=r,""!=i&&(a+="=",s&&(a+=o?"'":'"'),a+=i,s&&(a+=o?"'":'"'))}return a}(n,e,t))),o+=">");"TEMPLATE"!=r||e.childNodes.length?Array.from(e.childNodes).forEach((e=>o+=Of(e,t,n||"svg"==r))):o+=e.innerHTML;const i=t&&Nf.find((t=>r==qf(t)&&t.accept(e.nextSibling,e)));(n||!i&&!If.includes(r))&&(o+="</"+r.toLowerCase()+">");return o}(e,t,n):void 0}function Df(e){return Boolean(e.match(/^[ \t\n\f\r]/))}function qf(e){return e.tagName&&e.tagName.toUpperCase()}var Ff=Object.freeze({__proto__:null,process:Uf});const jf=["~","+","\\\\","?","%","*",":","|",'"',"<",">","\0-",""],Bf="_",Hf={"😀":"grinning-face","😃":"grinning-face-with-big-eyes","😄":"grinning-face-with-smiling-eyes","😁":"beaming-face-with-smiling-eyes","😆":"grinning-squinting-face","😅":"grinning-face-with-sweat","🤣":"rolling-on-the-floor-laughing","😂":"face-with-tears-of-joy","🙂":"slightly-smiling-face","🙃":"upside-down-face","🫠":"melting-face","😉":"winking-face","😊":"smiling-face-with-smiling-eyes","😇":"smiling-face-with-halo","🥰":"smiling-face-with-hearts","😍":"smiling-face-with-heart-eyes","🤩":"star-struck","😘":"face-blowing-a-kiss","😗":"kissing-face","☺":"smiling-face","😚":"kissing-face-with-closed-eyes","😙":"kissing-face-with-smiling-eyes","🥲":"smiling-face-with-tear","😋":"face-savoring-food","😛":"face-with-tongue","😜":"winking-face-with-tongue","🤪":"zany-face","😝":"squinting-face-with-tongue","🤑":"money-mouth-face","🤗":"smiling-face-with-open-hands","🤭":"face-with-hand-over-mouth","🫢":"face-with-open-eyes-and-hand-over-mouth","🫣":"face-with-peeking-eye","🤫":"shushing-face","🤔":"thinking-face","🫡":"saluting-face","🤐":"zipper-mouth-face","🤨":"face-with-raised-eyebrow","😐":"neutral-face","😑":"expressionless-face","😶":"face-without-mouth","🫥":"dotted-line-face","😶🌫️":"face-in-clouds","😏":"smirking-face","😒":"unamused-face","🙄":"face-with-rolling-eyes","😬":"grimacing-face","😮💨":"face-exhaling","🤥":"lying-face","🫨":"⊛-shaking-face","😌":"relieved-face","😔":"pensive-face","😪":"sleepy-face","🤤":"drooling-face","😴":"sleeping-face","😷":"face-with-medical-mask","🤒":"face-with-thermometer","🤕":"face-with-head-bandage","🤢":"nauseated-face","🤮":"face-vomiting","🤧":"sneezing-face","🥵":"hot-face","🥶":"cold-face","🥴":"woozy-face","😵":"face-with-crossed-out-eyes","😵💫":"face-with-spiral-eyes","🤯":"exploding-head","🤠":"cowboy-hat-face","🥳":"partying-face","🥸":"disguised-face","😎":"smiling-face-with-sunglasses","🤓":"nerd-face","🧐":"face-with-monocle","😕":"confused-face","🫤":"face-with-diagonal-mouth","😟":"worried-face","🙁":"slightly-frowning-face","☹":"frowning-face","😮":"face-with-open-mouth","😯":"hushed-face","😲":"astonished-face","😳":"flushed-face","🥺":"pleading-face","🥹":"face-holding-back-tears","😦":"frowning-face-with-open-mouth","😧":"anguished-face","😨":"fearful-face","😰":"anxious-face-with-sweat","😥":"sad-but-relieved-face","😢":"crying-face","😭":"loudly-crying-face","😱":"face-screaming-in-fear","😖":"confounded-face","😣":"persevering-face","😞":"disappointed-face","😓":"downcast-face-with-sweat","😩":"weary-face","😫":"tired-face","🥱":"yawning-face","😤":"face-with-steam-from-nose","😡":"enraged-face","😠":"angry-face","🤬":"face-with-symbols-on-mouth","😈":"smiling-face-with-horns","👿":"angry-face-with-horns","💀":"skull","☠":"skull-and-crossbones","💩":"pile-of-poo","🤡":"clown-face","👹":"ogre","👺":"goblin","👻":"ghost","👽":"alien","👾":"alien-monster","🤖":"robot","😺":"grinning-cat","😸":"grinning-cat-with-smiling-eyes","😹":"cat-with-tears-of-joy","😻":"smiling-cat-with-heart-eyes","😼":"cat-with-wry-smile","😽":"kissing-cat","🙀":"weary-cat","😿":"crying-cat","😾":"pouting-cat","🙈":"see-no-evil-monkey","🙉":"hear-no-evil-monkey","🙊":"speak-no-evil-monkey","💌":"love-letter","💘":"heart-with-arrow","💝":"heart-with-ribbon","💖":"sparkling-heart","💗":"growing-heart","💓":"beating-heart","💞":"revolving-hearts","💕":"two-hearts","💟":"heart-decoration","❣":"heart-exclamation","💔":"broken-heart","❤️🔥":"heart-on-fire","❤️🩹":"mending-heart","❤":"red-heart","🩷":"⊛-pink-heart","🧡":"orange-heart","💛":"yellow-heart","💚":"green-heart","💙":"blue-heart","🩵":"⊛-light-blue-heart","💜":"purple-heart","🤎":"brown-heart","🖤":"black-heart","🩶":"⊛-grey-heart","🤍":"white-heart","💋":"kiss-mark","💯":"hundred-points","💢":"anger-symbol","💥":"collision","💫":"dizzy","💦":"sweat-droplets","💨":"dashing-away","🕳":"hole","💬":"speech-balloon","👁️🗨️":"eye-in-speech-bubble","🗨":"left-speech-bubble","🗯":"right-anger-bubble","💭":"thought-balloon","💤":"zzz","👋":"waving-hand","🤚":"raised-back-of-hand","🖐":"hand-with-fingers-splayed","✋":"raised-hand","🖖":"vulcan-salute","🫱":"rightwards-hand","🫲":"leftwards-hand","🫳":"palm-down-hand","🫴":"palm-up-hand","🫷":"⊛-leftwards-pushing-hand","🫸":"⊛-rightwards-pushing-hand","👌":"ok-hand","🤌":"pinched-fingers","🤏":"pinching-hand","✌":"victory-hand","🤞":"crossed-fingers","🫰":"hand-with-index-finger-and-thumb-crossed","🤟":"love-you-gesture","🤘":"sign-of-the-horns","🤙":"call-me-hand","👈":"backhand-index-pointing-left","👉":"backhand-index-pointing-right","👆":"backhand-index-pointing-up","🖕":"middle-finger","👇":"backhand-index-pointing-down","☝":"index-pointing-up","🫵":"index-pointing-at-the-viewer","👍":"thumbs-up","👎":"thumbs-down","✊":"raised-fist","👊":"oncoming-fist","🤛":"left-facing-fist","🤜":"right-facing-fist","👏":"clapping-hands","🙌":"raising-hands","🫶":"heart-hands","👐":"open-hands","🤲":"palms-up-together","🤝":"handshake","🙏":"folded-hands","✍":"writing-hand","💅":"nail-polish","🤳":"selfie","💪":"flexed-biceps","🦾":"mechanical-arm","🦿":"mechanical-leg","🦵":"leg","🦶":"foot","👂":"ear","🦻":"ear-with-hearing-aid","👃":"nose","🧠":"brain","🫀":"anatomical-heart","🫁":"lungs","🦷":"tooth","🦴":"bone","👀":"eyes","👁":"eye","👅":"tongue","👄":"mouth","🫦":"biting-lip","👶":"baby","🧒":"child","👦":"boy","👧":"girl","🧑":"person","👱":"person-blond-hair","👨":"man","🧔":"person-beard","🧔♂️":"man-beard","🧔♀️":"woman-beard","👨🦰":"man-red-hair","👨🦱":"man-curly-hair","👨🦳":"man-white-hair","👨🦲":"man-bald","👩":"woman","👩🦰":"woman-red-hair","🧑🦰":"person-red-hair","👩🦱":"woman-curly-hair","🧑🦱":"person-curly-hair","👩🦳":"woman-white-hair","🧑🦳":"person-white-hair","👩🦲":"woman-bald","🧑🦲":"person-bald","👱♀️":"woman-blond-hair","👱♂️":"man-blond-hair","🧓":"older-person","👴":"old-man","👵":"old-woman","🙍":"person-frowning","🙍♂️":"man-frowning","🙍♀️":"woman-frowning","🙎":"person-pouting","🙎♂️":"man-pouting","🙎♀️":"woman-pouting","🙅":"person-gesturing-no","🙅♂️":"man-gesturing-no","🙅♀️":"woman-gesturing-no","🙆":"person-gesturing-ok","🙆♂️":"man-gesturing-ok","🙆♀️":"woman-gesturing-ok","💁":"person-tipping-hand","💁♂️":"man-tipping-hand","💁♀️":"woman-tipping-hand","🙋":"person-raising-hand","🙋♂️":"man-raising-hand","🙋♀️":"woman-raising-hand","🧏":"deaf-person","🧏♂️":"deaf-man","🧏♀️":"deaf-woman","🙇":"person-bowing","🙇♂️":"man-bowing","🙇♀️":"woman-bowing","🤦":"person-facepalming","🤦♂️":"man-facepalming","🤦♀️":"woman-facepalming","🤷":"person-shrugging","🤷♂️":"man-shrugging","🤷♀️":"woman-shrugging","🧑⚕️":"health-worker","👨⚕️":"man-health-worker","👩⚕️":"woman-health-worker","🧑🎓":"student","👨🎓":"man-student","👩🎓":"woman-student","🧑🏫":"teacher","👨🏫":"man-teacher","👩🏫":"woman-teacher","🧑⚖️":"judge","👨⚖️":"man-judge","👩⚖️":"woman-judge","🧑🌾":"farmer","👨🌾":"man-farmer","👩🌾":"woman-farmer","🧑🍳":"cook","👨🍳":"man-cook","👩🍳":"woman-cook","🧑🔧":"mechanic","👨🔧":"man-mechanic","👩🔧":"woman-mechanic","🧑🏭":"factory-worker","👨🏭":"man-factory-worker","👩🏭":"woman-factory-worker","🧑💼":"office-worker","👨💼":"man-office-worker","👩💼":"woman-office-worker","🧑🔬":"scientist","👨🔬":"man-scientist","👩🔬":"woman-scientist","🧑💻":"technologist","👨💻":"man-technologist","👩💻":"woman-technologist","🧑🎤":"singer","👨🎤":"man-singer","👩🎤":"woman-singer","🧑🎨":"artist","👨🎨":"man-artist","👩🎨":"woman-artist","🧑✈️":"pilot","👨✈️":"man-pilot","👩✈️":"woman-pilot","🧑🚀":"astronaut","👨🚀":"man-astronaut","👩🚀":"woman-astronaut","🧑🚒":"firefighter","👨🚒":"man-firefighter","👩🚒":"woman-firefighter","👮":"police-officer","👮♂️":"man-police-officer","👮♀️":"woman-police-officer","🕵":"detective","🕵️♂️":"man-detective","🕵️♀️":"woman-detective","💂":"guard","💂♂️":"man-guard","💂♀️":"woman-guard","🥷":"ninja","👷":"construction-worker","👷♂️":"man-construction-worker","👷♀️":"woman-construction-worker","🫅":"person-with-crown","🤴":"prince","👸":"princess","👳":"person-wearing-turban","👳♂️":"man-wearing-turban","👳♀️":"woman-wearing-turban","👲":"person-with-skullcap","🧕":"woman-with-headscarf","🤵":"person-in-tuxedo","🤵♂️":"man-in-tuxedo","🤵♀️":"woman-in-tuxedo","👰":"person-with-veil","👰♂️":"man-with-veil","👰♀️":"woman-with-veil","🤰":"pregnant-woman","🫃":"pregnant-man","🫄":"pregnant-person","🤱":"breast-feeding","👩🍼":"woman-feeding-baby","👨🍼":"man-feeding-baby","🧑🍼":"person-feeding-baby","👼":"baby-angel","🎅":"santa-claus","🤶":"mrs-claus","🧑🎄":"mx-claus","🦸":"superhero","🦸♂️":"man-superhero","🦸♀️":"woman-superhero","🦹":"supervillain","🦹♂️":"man-supervillain","🦹♀️":"woman-supervillain","🧙":"mage","🧙♂️":"man-mage","🧙♀️":"woman-mage","🧚":"fairy","🧚♂️":"man-fairy","🧚♀️":"woman-fairy","🧛":"vampire","🧛♂️":"man-vampire","🧛♀️":"woman-vampire","🧜":"merperson","🧜♂️":"merman","🧜♀️":"mermaid","🧝":"elf","🧝♂️":"man-elf","🧝♀️":"woman-elf","🧞":"genie","🧞♂️":"man-genie","🧞♀️":"woman-genie","🧟":"zombie","🧟♂️":"man-zombie","🧟♀️":"woman-zombie","🧌":"troll","💆":"person-getting-massage","💆♂️":"man-getting-massage","💆♀️":"woman-getting-massage","💇":"person-getting-haircut","💇♂️":"man-getting-haircut","💇♀️":"woman-getting-haircut","🚶":"person-walking","🚶♂️":"man-walking","🚶♀️":"woman-walking","🧍":"person-standing","🧍♂️":"man-standing","🧍♀️":"woman-standing","🧎":"person-kneeling","🧎♂️":"man-kneeling","🧎♀️":"woman-kneeling","🧑🦯":"person-with-white-cane","👨🦯":"man-with-white-cane","👩🦯":"woman-with-white-cane","🧑🦼":"person-in-motorized-wheelchair","👨🦼":"man-in-motorized-wheelchair","👩🦼":"woman-in-motorized-wheelchair","🧑🦽":"person-in-manual-wheelchair","👨🦽":"man-in-manual-wheelchair","👩🦽":"woman-in-manual-wheelchair","🏃":"person-running","🏃♂️":"man-running","🏃♀️":"woman-running","💃":"woman-dancing","🕺":"man-dancing","🕴":"person-in-suit-levitating","👯":"people-with-bunny-ears","👯♂️":"men-with-bunny-ears","👯♀️":"women-with-bunny-ears","🧖":"person-in-steamy-room","🧖♂️":"man-in-steamy-room","🧖♀️":"woman-in-steamy-room","🧗":"person-climbing","🧗♂️":"man-climbing","🧗♀️":"woman-climbing","🤺":"person-fencing","🏇":"horse-racing","⛷":"skier","🏂":"snowboarder","🏌":"person-golfing","🏌️♂️":"man-golfing","🏌️♀️":"woman-golfing","🏄":"person-surfing","🏄♂️":"man-surfing","🏄♀️":"woman-surfing","🚣":"person-rowing-boat","🚣♂️":"man-rowing-boat","🚣♀️":"woman-rowing-boat","🏊":"person-swimming","🏊♂️":"man-swimming","🏊♀️":"woman-swimming","⛹":"person-bouncing-ball","⛹️♂️":"man-bouncing-ball","⛹️♀️":"woman-bouncing-ball","🏋":"person-lifting-weights","🏋️♂️":"man-lifting-weights","🏋️♀️":"woman-lifting-weights","🚴":"person-biking","🚴♂️":"man-biking","🚴♀️":"woman-biking","🚵":"person-mountain-biking","🚵♂️":"man-mountain-biking","🚵♀️":"woman-mountain-biking","🤸":"person-cartwheeling","🤸♂️":"man-cartwheeling","🤸♀️":"woman-cartwheeling","🤼":"people-wrestling","🤼♂️":"men-wrestling","🤼♀️":"women-wrestling","🤽":"person-playing-water-polo","🤽♂️":"man-playing-water-polo","🤽♀️":"woman-playing-water-polo","🤾":"person-playing-handball","🤾♂️":"man-playing-handball","🤾♀️":"woman-playing-handball","🤹":"person-juggling","🤹♂️":"man-juggling","🤹♀️":"woman-juggling","🧘":"person-in-lotus-position","🧘♂️":"man-in-lotus-position","🧘♀️":"woman-in-lotus-position","🛀":"person-taking-bath","🛌":"person-in-bed","🧑🤝🧑":"people-holding-hands","👭":"women-holding-hands","👫":"woman-and-man-holding-hands","👬":"men-holding-hands","💏":"kiss","👩❤️💋👨":"kiss-woman,-man","👨❤️💋👨":"kiss-man,-man","👩❤️💋👩":"kiss-woman,-woman","💑":"couple-with-heart","👩❤️👨":"couple-with-heart-woman,-man","👨❤️👨":"couple-with-heart-man,-man","👩❤️👩":"couple-with-heart-woman,-woman","👪":"family","👨👩👦":"family-man,-woman,-boy","👨👩👧":"family-man,-woman,-girl","👨👩👧👦":"family-man,-woman,-girl,-boy","👨👩👦👦":"family-man,-woman,-boy,-boy","👨👩👧👧":"family-man,-woman,-girl,-girl","👨👨👦":"family-man,-man,-boy","👨👨👧":"family-man,-man,-girl","👨👨👧👦":"family-man,-man,-girl,-boy","👨👨👦👦":"family-man,-man,-boy,-boy","👨👨👧👧":"family-man,-man,-girl,-girl","👩👩👦":"family-woman,-woman,-boy","👩👩👧":"family-woman,-woman,-girl","👩👩👧👦":"family-woman,-woman,-girl,-boy","👩👩👦👦":"family-woman,-woman,-boy,-boy","👩👩👧👧":"family-woman,-woman,-girl,-girl","👨👦":"family-man,-boy","👨👦👦":"family-man,-boy,-boy","👨👧":"family-man,-girl","👨👧👦":"family-man,-girl,-boy","👨👧👧":"family-man,-girl,-girl","👩👦":"family-woman,-boy","👩👦👦":"family-woman,-boy,-boy","👩👧":"family-woman,-girl","👩👧👦":"family-woman,-girl,-boy","👩👧👧":"family-woman,-girl,-girl","🗣":"speaking-head","👤":"bust-in-silhouette","👥":"busts-in-silhouette","🫂":"people-hugging","👣":"footprints","🦰":"red-hair","🦱":"curly-hair","🦳":"white-hair","🦲":"bald","🐵":"monkey-face","🐒":"monkey","🦍":"gorilla","🦧":"orangutan","🐶":"dog-face","🐕":"dog","🦮":"guide-dog","🐕🦺":"service-dog","🐩":"poodle","🐺":"wolf","🦊":"fox","🦝":"raccoon","🐱":"cat-face","🐈":"cat","🐈⬛":"black-cat","🦁":"lion","🐯":"tiger-face","🐅":"tiger","🐆":"leopard","🐴":"horse-face","🫎":"⊛-moose","🫏":"⊛-donkey","🐎":"horse","🦄":"unicorn","🦓":"zebra","🦌":"deer","🦬":"bison","🐮":"cow-face","🐂":"ox","🐃":"water-buffalo","🐄":"cow","🐷":"pig-face","🐖":"pig","🐗":"boar","🐽":"pig-nose","🐏":"ram","🐑":"ewe","🐐":"goat","🐪":"camel","🐫":"two-hump-camel","🦙":"llama","🦒":"giraffe","🐘":"elephant","🦣":"mammoth","🦏":"rhinoceros","🦛":"hippopotamus","🐭":"mouse-face","🐁":"mouse","🐀":"rat","🐹":"hamster","🐰":"rabbit-face","🐇":"rabbit","🐿":"chipmunk","🦫":"beaver","🦔":"hedgehog","🦇":"bat","🐻":"bear","🐻❄️":"polar-bear","🐨":"koala","🐼":"panda","🦥":"sloth","🦦":"otter","🦨":"skunk","🦘":"kangaroo","🦡":"badger","🐾":"paw-prints","🦃":"turkey","🐔":"chicken","🐓":"rooster","🐣":"hatching-chick","🐤":"baby-chick","🐥":"front-facing-baby-chick","🐦":"bird","🐧":"penguin","🕊":"dove","🦅":"eagle","🦆":"duck","🦢":"swan","🦉":"owl","🦤":"dodo","🪶":"feather","🦩":"flamingo","🦚":"peacock","🦜":"parrot","🪽":"⊛-wing","🐦⬛":"⊛-black-bird","🪿":"⊛-goose","🐸":"frog","🐊":"crocodile","🐢":"turtle","🦎":"lizard","🐍":"snake","🐲":"dragon-face","🐉":"dragon","🦕":"sauropod","🦖":"t-rex","🐳":"spouting-whale","🐋":"whale","🐬":"dolphin","🦭":"seal","🐟":"fish","🐠":"tropical-fish","🐡":"blowfish","🦈":"shark","🐙":"octopus","🐚":"spiral-shell","🪸":"coral","🪼":"⊛-jellyfish","🐌":"snail","🦋":"butterfly","🐛":"bug","🐜":"ant","🐝":"honeybee","🪲":"beetle","🐞":"lady-beetle","🦗":"cricket","🪳":"cockroach","🕷":"spider","🕸":"spider-web","🦂":"scorpion","🦟":"mosquito","🪰":"fly","🪱":"worm","🦠":"microbe","💐":"bouquet","🌸":"cherry-blossom","💮":"white-flower","🪷":"lotus","🏵":"rosette","🌹":"rose","🥀":"wilted-flower","🌺":"hibiscus","🌻":"sunflower","🌼":"blossom","🌷":"tulip","🪻":"⊛-hyacinth","🌱":"seedling","🪴":"potted-plant","🌲":"evergreen-tree","🌳":"deciduous-tree","🌴":"palm-tree","🌵":"cactus","🌾":"sheaf-of-rice","🌿":"herb","☘":"shamrock","🍀":"four-leaf-clover","🍁":"maple-leaf","🍂":"fallen-leaf","🍃":"leaf-fluttering-in-wind","🪹":"empty-nest","🪺":"nest-with-eggs","🍄":"mushroom","🍇":"grapes","🍈":"melon","🍉":"watermelon","🍊":"tangerine","🍋":"lemon","🍌":"banana","🍍":"pineapple","🥭":"mango","🍎":"red-apple","🍏":"green-apple","🍐":"pear","🍑":"peach","🍒":"cherries","🍓":"strawberry","🫐":"blueberries","🥝":"kiwi-fruit","🍅":"tomato","🫒":"olive","🥥":"coconut","🥑":"avocado","🍆":"eggplant","🥔":"potato","🥕":"carrot","🌽":"ear-of-corn","🌶":"hot-pepper","🫑":"bell-pepper","🥒":"cucumber","🥬":"leafy-green","🥦":"broccoli","🧄":"garlic","🧅":"onion","🥜":"peanuts","🫘":"beans","🌰":"chestnut","🫚":"⊛-ginger-root","🫛":"⊛-pea-pod","🍞":"bread","🥐":"croissant","🥖":"baguette-bread","🫓":"flatbread","🥨":"pretzel","🥯":"bagel","🥞":"pancakes","🧇":"waffle","🧀":"cheese-wedge","🍖":"meat-on-bone","🍗":"poultry-leg","🥩":"cut-of-meat","🥓":"bacon","🍔":"hamburger","🍟":"french-fries","🍕":"pizza","🌭":"hot-dog","🥪":"sandwich","🌮":"taco","🌯":"burrito","🫔":"tamale","🥙":"stuffed-flatbread","🧆":"falafel","🥚":"egg","🍳":"cooking","🥘":"shallow-pan-of-food","🍲":"pot-of-food","🫕":"fondue","🥣":"bowl-with-spoon","🥗":"green-salad","🍿":"popcorn","🧈":"butter","🧂":"salt","🥫":"canned-food","🍱":"bento-box","🍘":"rice-cracker","🍙":"rice-ball","🍚":"cooked-rice","🍛":"curry-rice","🍜":"steaming-bowl","🍝":"spaghetti","🍠":"roasted-sweet-potato","🍢":"oden","🍣":"sushi","🍤":"fried-shrimp","🍥":"fish-cake-with-swirl","🥮":"moon-cake","🍡":"dango","🥟":"dumpling","🥠":"fortune-cookie","🥡":"takeout-box","🦀":"crab","🦞":"lobster","🦐":"shrimp","🦑":"squid","🦪":"oyster","🍦":"soft-ice-cream","🍧":"shaved-ice","🍨":"ice-cream","🍩":"doughnut","🍪":"cookie","🎂":"birthday-cake","🍰":"shortcake","🧁":"cupcake","🥧":"pie","🍫":"chocolate-bar","🍬":"candy","🍭":"lollipop","🍮":"custard","🍯":"honey-pot","🍼":"baby-bottle","🥛":"glass-of-milk","☕":"hot-beverage","🫖":"teapot","🍵":"teacup-without-handle","🍶":"sake","🍾":"bottle-with-popping-cork","🍷":"wine-glass","🍸":"cocktail-glass","🍹":"tropical-drink","🍺":"beer-mug","🍻":"clinking-beer-mugs","🥂":"clinking-glasses","🥃":"tumbler-glass","🫗":"pouring-liquid","🥤":"cup-with-straw","🧋":"bubble-tea","🧃":"beverage-box","🧉":"mate","🧊":"ice","🥢":"chopsticks","🍽":"fork-and-knife-with-plate","🍴":"fork-and-knife","🥄":"spoon","🔪":"kitchen-knife","🫙":"jar","🏺":"amphora","🌍":"globe-showing-europe-africa","🌎":"globe-showing-americas","🌏":"globe-showing-asia-australia","🌐":"globe-with-meridians","🗺":"world-map","🗾":"map-of-japan","🧭":"compass","🏔":"snow-capped-mountain","⛰":"mountain","🌋":"volcano","🗻":"mount-fuji","🏕":"camping","🏖":"beach-with-umbrella","🏜":"desert","🏝":"desert-island","🏞":"national-park","🏟":"stadium","🏛":"classical-building","🏗":"building-construction","🧱":"brick","🪨":"rock","🪵":"wood","🛖":"hut","🏘":"houses","🏚":"derelict-house","🏠":"house","🏡":"house-with-garden","🏢":"office-building","🏣":"japanese-post-office","🏤":"post-office","🏥":"hospital","🏦":"bank","🏨":"hotel","🏩":"love-hotel","🏪":"convenience-store","🏫":"school","🏬":"department-store","🏭":"factory","🏯":"japanese-castle","🏰":"castle","💒":"wedding","🗼":"tokyo-tower","🗽":"statue-of-liberty","⛪":"church","🕌":"mosque","🛕":"hindu-temple","🕍":"synagogue","⛩":"shinto-shrine","🕋":"kaaba","⛲":"fountain","⛺":"tent","🌁":"foggy","🌃":"night-with-stars","🏙":"cityscape","🌄":"sunrise-over-mountains","🌅":"sunrise","🌆":"cityscape-at-dusk","🌇":"sunset","🌉":"bridge-at-night","♨":"hot-springs","🎠":"carousel-horse","🛝":"playground-slide","🎡":"ferris-wheel","🎢":"roller-coaster","💈":"barber-pole","🎪":"circus-tent","🚂":"locomotive","🚃":"railway-car","🚄":"high-speed-train","🚅":"bullet-train","🚆":"train","🚇":"metro","🚈":"light-rail","🚉":"station","🚊":"tram","🚝":"monorail","🚞":"mountain-railway","🚋":"tram-car","🚌":"bus","🚍":"oncoming-bus","🚎":"trolleybus","🚐":"minibus","🚑":"ambulance","🚒":"fire-engine","🚓":"police-car","🚔":"oncoming-police-car","🚕":"taxi","🚖":"oncoming-taxi","🚗":"automobile","🚘":"oncoming-automobile","🚙":"sport-utility-vehicle","🛻":"pickup-truck","🚚":"delivery-truck","🚛":"articulated-lorry","🚜":"tractor","🏎":"racing-car","🏍":"motorcycle","🛵":"motor-scooter","🦽":"manual-wheelchair","🦼":"motorized-wheelchair","🛺":"auto-rickshaw","🚲":"bicycle","🛴":"kick-scooter","🛹":"skateboard","🛼":"roller-skate","🚏":"bus-stop","🛣":"motorway","🛤":"railway-track","🛢":"oil-drum","⛽":"fuel-pump","🛞":"wheel","🚨":"police-car-light","🚥":"horizontal-traffic-light","🚦":"vertical-traffic-light","🛑":"stop-sign","🚧":"construction","⚓":"anchor","🛟":"ring-buoy","⛵":"sailboat","🛶":"canoe","🚤":"speedboat","🛳":"passenger-ship","⛴":"ferry","🛥":"motor-boat","🚢":"ship","✈":"airplane","🛩":"small-airplane","🛫":"airplane-departure","🛬":"airplane-arrival","🪂":"parachute","💺":"seat","🚁":"helicopter","🚟":"suspension-railway","🚠":"mountain-cableway","🚡":"aerial-tramway","🛰":"satellite","🚀":"rocket","🛸":"flying-saucer","🛎":"bellhop-bell","🧳":"luggage","⌛":"hourglass-done","⏳":"hourglass-not-done","⌚":"watch","⏰":"alarm-clock","⏱":"stopwatch","⏲":"timer-clock","🕰":"mantelpiece-clock","🕛":"twelve-o-clock","🕧":"twelve-thirty","🕐":"one-o-clock","🕜":"one-thirty","🕑":"two-o-clock","🕝":"two-thirty","🕒":"three-o-clock","🕞":"three-thirty","🕓":"four-o-clock","🕟":"four-thirty","🕔":"five-o-clock","🕠":"five-thirty","🕕":"six-o-clock","🕡":"six-thirty","🕖":"seven-o-clock","🕢":"seven-thirty","🕗":"eight-o-clock","🕣":"eight-thirty","🕘":"nine-o-clock","🕤":"nine-thirty","🕙":"ten-o-clock","🕥":"ten-thirty","🕚":"eleven-o-clock","🕦":"eleven-thirty","🌑":"new-moon","🌒":"waxing-crescent-moon","🌓":"first-quarter-moon","🌔":"waxing-gibbous-moon","🌕":"full-moon","🌖":"waning-gibbous-moon","🌗":"last-quarter-moon","🌘":"waning-crescent-moon","🌙":"crescent-moon","🌚":"new-moon-face","🌛":"first-quarter-moon-face","🌜":"last-quarter-moon-face","🌡":"thermometer","☀":"sun","🌝":"full-moon-face","🌞":"sun-with-face","🪐":"ringed-planet","⭐":"star","🌟":"glowing-star","🌠":"shooting-star","🌌":"milky-way","☁":"cloud","⛅":"sun-behind-cloud","⛈":"cloud-with-lightning-and-rain","🌤":"sun-behind-small-cloud","🌥":"sun-behind-large-cloud","🌦":"sun-behind-rain-cloud","🌧":"cloud-with-rain","🌨":"cloud-with-snow","🌩":"cloud-with-lightning","🌪":"tornado","🌫":"fog","🌬":"wind-face","🌀":"cyclone","🌈":"rainbow","🌂":"closed-umbrella","☂":"umbrella","☔":"umbrella-with-rain-drops","⛱":"umbrella-on-ground","⚡":"high-voltage","❄":"snowflake","☃":"snowman","⛄":"snowman-without-snow","☄":"comet","🔥":"fire","💧":"droplet","🌊":"water-wave","🎃":"jack-o-lantern","🎄":"christmas-tree","🎆":"fireworks","🎇":"sparkler","🧨":"firecracker","✨":"sparkles","🎈":"balloon","🎉":"party-popper","🎊":"confetti-ball","🎋":"tanabata-tree","🎍":"pine-decoration","🎎":"japanese-dolls","🎏":"carp-streamer","🎐":"wind-chime","🎑":"moon-viewing-ceremony","🧧":"red-envelope","🎀":"ribbon","🎁":"wrapped-gift","🎗":"reminder-ribbon","🎟":"admission-tickets","🎫":"ticket","🎖":"military-medal","🏆":"trophy","🏅":"sports-medal","🥇":"1st-place-medal","🥈":"2nd-place-medal","🥉":"3rd-place-medal","⚽":"soccer-ball","⚾":"baseball","🥎":"softball","🏀":"basketball","🏐":"volleyball","🏈":"american-football","🏉":"rugby-football","🎾":"tennis","🥏":"flying-disc","🎳":"bowling","🏏":"cricket-game","🏑":"field-hockey","🏒":"ice-hockey","🥍":"lacrosse","🏓":"ping-pong","🏸":"badminton","🥊":"boxing-glove","🥋":"martial-arts-uniform","🥅":"goal-net","⛳":"flag-in-hole","⛸":"ice-skate","🎣":"fishing-pole","🤿":"diving-mask","🎽":"running-shirt","🎿":"skis","🛷":"sled","🥌":"curling-stone","🎯":"bullseye","🪀":"yo-yo","🪁":"kite","🔫":"water-pistol","🎱":"pool-8-ball","🔮":"crystal-ball","🪄":"magic-wand","🎮":"video-game","🕹":"joystick","🎰":"slot-machine","🎲":"game-die","🧩":"puzzle-piece","🧸":"teddy-bear","🪅":"piñata","🪩":"mirror-ball","🪆":"nesting-dolls","♠":"spade-suit","♥":"heart-suit","♦":"diamond-suit","♣":"club-suit","♟":"chess-pawn","🃏":"joker","🀄":"mahjong-red-dragon","🎴":"flower-playing-cards","🎭":"performing-arts","🖼":"framed-picture","🎨":"artist-palette","🧵":"thread","🪡":"sewing-needle","🧶":"yarn","🪢":"knot","👓":"glasses","🕶":"sunglasses","🥽":"goggles","🥼":"lab-coat","🦺":"safety-vest","👔":"necktie","👕":"t-shirt","👖":"jeans","🧣":"scarf","🧤":"gloves","🧥":"coat","🧦":"socks","👗":"dress","👘":"kimono","🥻":"sari","🩱":"one-piece-swimsuit","🩲":"briefs","🩳":"shorts","👙":"bikini","👚":"woman-s-clothes","🪭":"⊛-folding-hand-fan","👛":"purse","👜":"handbag","👝":"clutch-bag","🛍":"shopping-bags","🎒":"backpack","🩴":"thong-sandal","👞":"man-s-shoe","👟":"running-shoe","🥾":"hiking-boot","🥿":"flat-shoe","👠":"high-heeled-shoe","👡":"woman-s-sandal","🩰":"ballet-shoes","👢":"woman-s-boot","🪮":"⊛-hair-pick","👑":"crown","👒":"woman-s-hat","🎩":"top-hat","🎓":"graduation-cap","🧢":"billed-cap","🪖":"military-helmet","⛑":"rescue-worker-s-helmet","📿":"prayer-beads","💄":"lipstick","💍":"ring","💎":"gem-stone","🔇":"muted-speaker","🔈":"speaker-low-volume","🔉":"speaker-medium-volume","🔊":"speaker-high-volume","📢":"loudspeaker","📣":"megaphone","📯":"postal-horn","🔔":"bell","🔕":"bell-with-slash","🎼":"musical-score","🎵":"musical-note","🎶":"musical-notes","🎙":"studio-microphone","🎚":"level-slider","🎛":"control-knobs","🎤":"microphone","🎧":"headphone","📻":"radio","🎷":"saxophone","🪗":"accordion","🎸":"guitar","🎹":"musical-keyboard","🎺":"trumpet","🎻":"violin","🪕":"banjo","🥁":"drum","🪘":"long-drum","🪇":"maracas","🪈":"flute","📱":"mobile-phone","📲":"mobile-phone-with-arrow","☎":"telephone","📞":"telephone-receiver","📟":"pager","📠":"fax-machine","🔋":"battery","🪫":"low-battery","🔌":"electric-plug","💻":"laptop","🖥":"desktop-computer","🖨":"printer","⌨":"keyboard","🖱":"computer-mouse","🖲":"trackball","💽":"computer-disk","💾":"floppy-disk","💿":"optical-disk","📀":"dvd","🧮":"abacus","🎥":"movie-camera","🎞":"film-frames","📽":"film-projector","🎬":"clapper-board","📺":"television","📷":"camera","📸":"camera-with-flash","📹":"video-camera","📼":"videocassette","🔍":"magnifying-glass-tilted-left","🔎":"magnifying-glass-tilted-right","🕯":"candle","💡":"light-bulb","🔦":"flashlight","🏮":"red-paper-lantern","🪔":"diya-lamp","📔":"notebook-with-decorative-cover","📕":"closed-book","📖":"open-book","📗":"green-book","📘":"blue-book","📙":"orange-book","📚":"books","📓":"notebook","📒":"ledger","📃":"page-with-curl","📜":"scroll","📄":"page-facing-up","📰":"newspaper","🗞":"rolled-up-newspaper","📑":"bookmark-tabs","🔖":"bookmark","🏷":"label","💰":"money-bag","🪙":"coin","💴":"yen-banknote","💵":"dollar-banknote","💶":"euro-banknote","💷":"pound-banknote","💸":"money-with-wings","💳":"credit-card","🧾":"receipt","💹":"chart-increasing-with-yen","✉":"envelope","📧":"e-mail","📨":"incoming-envelope","📩":"envelope-with-arrow","📤":"outbox-tray","📥":"inbox-tray","📦":"package","📫":"closed-mailbox-with-raised-flag","📪":"closed-mailbox-with-lowered-flag","📬":"open-mailbox-with-raised-flag","📭":"open-mailbox-with-lowered-flag","📮":"postbox","🗳":"ballot-box-with-ballot","✏":"pencil","✒":"black-nib","🖋":"fountain-pen","🖊":"pen","🖌":"paintbrush","🖍":"crayon","📝":"memo","💼":"briefcase","📁":"file-folder","📂":"open-file-folder","🗂":"card-index-dividers","📅":"calendar","📆":"tear-off-calendar","🗒":"spiral-notepad","🗓":"spiral-calendar","📇":"card-index","📈":"chart-increasing","📉":"chart-decreasing","📊":"bar-chart","📋":"clipboard","📌":"pushpin","📍":"round-pushpin","📎":"paperclip","🖇":"linked-paperclips","📏":"straight-ruler","📐":"triangular-ruler","✂":"scissors","🗃":"card-file-box","🗄":"file-cabinet","🗑":"wastebasket","🔒":"locked","🔓":"unlocked","🔏":"locked-with-pen","🔐":"locked-with-key","🔑":"key","🗝":"old-key","🔨":"hammer","🪓":"axe","⛏":"pick","⚒":"hammer-and-pick","🛠":"hammer-and-wrench","🗡":"dagger","⚔":"crossed-swords","💣":"bomb","🪃":"boomerang","🏹":"bow-and-arrow","🛡":"shield","🪚":"carpentry-saw","🔧":"wrench","🪛":"screwdriver","🔩":"nut-and-bolt","⚙":"gear","🗜":"clamp","⚖":"balance-scale","🦯":"white-cane","🔗":"link","⛓":"chains","🪝":"hook","🧰":"toolbox","🧲":"magnet","🪜":"ladder","⚗":"alembic","🧪":"test-tube","🧫":"petri-dish","🧬":"dna","🔬":"microscope","🔭":"telescope","📡":"satellite-antenna","💉":"syringe","🩸":"drop-of-blood","💊":"pill","🩹":"adhesive-bandage","🩼":"crutch","🩺":"stethoscope","🩻":"x-ray","🚪":"door","🛗":"elevator","🪞":"mirror","🪟":"window","🛏":"bed","🛋":"couch-and-lamp","🪑":"chair","🚽":"toilet","🪠":"plunger","🚿":"shower","🛁":"bathtub","🪤":"mouse-trap","🪒":"razor","🧴":"lotion-bottle","🧷":"safety-pin","🧹":"broom","🧺":"basket","🧻":"roll-of-paper","🪣":"bucket","🧼":"soap","🫧":"bubbles","🪥":"toothbrush","🧽":"sponge","🧯":"fire-extinguisher","🛒":"shopping-cart","🚬":"cigarette","⚰":"coffin","🪦":"headstone","⚱":"funeral-urn","🧿":"nazar-amulet","🪬":"hamsa","🗿":"moai","🪧":"placard","🪪":"identification-card","🏧":"atm-sign","🚮":"litter-in-bin-sign","🚰":"potable-water","♿":"wheelchair-symbol","🚹":"men-s-room","🚺":"women-s-room","🚻":"restroom","🚼":"baby-symbol","🚾":"water-closet","🛂":"passport-control","🛃":"customs","🛄":"baggage-claim","🛅":"left-luggage","⚠":"warning","🚸":"children-crossing","⛔":"no-entry","🚫":"prohibited","🚳":"no-bicycles","🚭":"no-smoking","🚯":"no-littering","🚱":"non-potable-water","🚷":"no-pedestrians","📵":"no-mobile-phones","🔞":"no-one-under-eighteen","☢":"radioactive","☣":"biohazard","⬆":"up-arrow","↗":"up-right-arrow","➡":"right-arrow","↘":"down-right-arrow","⬇":"down-arrow","↙":"down-left-arrow","⬅":"left-arrow","↖":"up-left-arrow","↕":"up-down-arrow","↔":"left-right-arrow","↩":"right-arrow-curving-left","↪":"left-arrow-curving-right","⤴":"right-arrow-curving-up","⤵":"right-arrow-curving-down","🔃":"clockwise-vertical-arrows","🔄":"counterclockwise-arrows-button","🔙":"back-arrow","🔚":"end-arrow","🔛":"on!-arrow","🔜":"soon-arrow","🔝":"top-arrow","🛐":"place-of-worship","⚛":"atom-symbol","🕉":"om","✡":"star-of-david","☸":"wheel-of-dharma","☯":"yin-yang","✝":"latin-cross","☦":"orthodox-cross","☪":"star-and-crescent","☮":"peace-symbol","🕎":"menorah","🔯":"dotted-six-pointed-star","🪯":"⊛-khanda","♈":"aries","♉":"taurus","♊":"gemini","♋":"cancer","♌":"leo","♍":"virgo","♎":"libra","♏":"scorpio","♐":"sagittarius","♑":"capricorn","♒":"aquarius","♓":"pisces","⛎":"ophiuchus","🔀":"shuffle-tracks-button","🔁":"repeat-button","🔂":"repeat-single-button","▶":"play-button","⏩":"fast-forward-button","⏭":"next-track-button","⏯":"play-or-pause-button","◀":"reverse-button","⏪":"fast-reverse-button","⏮":"last-track-button","🔼":"upwards-button","⏫":"fast-up-button","🔽":"downwards-button","⏬":"fast-down-button","⏸":"pause-button","⏹":"stop-button","⏺":"record-button","⏏":"eject-button","🎦":"cinema","🔅":"dim-button","🔆":"bright-button","📶":"antenna-bars","🛜":"⊛-wireless","📳":"vibration-mode","📴":"mobile-phone-off","♀":"female-sign","♂":"male-sign","⚧":"transgender-symbol","✖":"multiply","➕":"plus","➖":"minus","➗":"divide","🟰":"heavy-equals-sign","♾":"infinity","‼":"double-exclamation-mark","⁉":"exclamation-question-mark","❓":"red-question-mark","❔":"white-question-mark","❕":"white-exclamation-mark","❗":"red-exclamation-mark","〰":"wavy-dash","💱":"currency-exchange","💲":"heavy-dollar-sign","⚕":"medical-symbol","♻":"recycling-symbol","⚜":"fleur-de-lis","🔱":"trident-emblem","📛":"name-badge","🔰":"japanese-symbol-for-beginner","⭕":"hollow-red-circle","✅":"check-mark-button","☑":"check-box-with-check","✔":"check-mark","❌":"cross-mark","❎":"cross-mark-button","➰":"curly-loop","➿":"double-curly-loop","〽":"part-alternation-mark","✳":"eight-spoked-asterisk","✴":"eight-pointed-star","❇":"sparkle","©":"copyright","®":"registered","™":"trade-mark","#️⃣":"keycap-#","*️⃣":"keycap-*","0️⃣":"keycap-0","1️⃣":"keycap-1","2️⃣":"keycap-2","3️⃣":"keycap-3","4️⃣":"keycap-4","5️⃣":"keycap-5","6️⃣":"keycap-6","7️⃣":"keycap-7","8️⃣":"keycap-8","9️⃣":"keycap-9","🔟":"keycap-10","🔠":"input-latin-uppercase","🔡":"input-latin-lowercase","🔢":"input-numbers","🔣":"input-symbols","🔤":"input-latin-letters","🅰":"a-button-(blood-type)","🆎":"ab-button-(blood-type)","🅱":"b-button-(blood-type)","🆑":"cl-button","🆒":"cool-button","🆓":"free-button","ℹ":"information","🆔":"id-button","Ⓜ":"circled-m","🆕":"new-button","🆖":"ng-button","🅾":"o-button-(blood-type)","🆗":"ok-button","🅿":"p-button","🆘":"sos-button","🆙":"up!-button","🆚":"vs-button","🈁":"japanese-here-button","🈂":"japanese-service-charge-button","🈷":"japanese-monthly-amount-button","🈶":"japanese-not-free-of-charge-button","🈯":"japanese-reserved-button","🉐":"japanese-bargain-button","🈹":"japanese-discount-button","🈚":"japanese-free-of-charge-button","🈲":"japanese-prohibited-button","🉑":"japanese-acceptable-button","🈸":"japanese-application-button","🈴":"japanese-passing-grade-button","🈳":"japanese-vacancy-button","㊗":"japanese-congratulations-button","㊙":"japanese-secret-button","🈺":"japanese-open-for-business-button","🈵":"japanese-no-vacancy-button","🔴":"red-circle","🟠":"orange-circle","🟡":"yellow-circle","🟢":"green-circle","🔵":"blue-circle","🟣":"purple-circle","🟤":"brown-circle","⚫":"black-circle","⚪":"white-circle","🟥":"red-square","🟧":"orange-square","🟨":"yellow-square","🟩":"green-square","🟦":"blue-square","🟪":"purple-square","🟫":"brown-square","⬛":"black-large-square","⬜":"white-large-square","◼":"black-medium-square","◻":"white-medium-square","◾":"black-medium-small-square","◽":"white-medium-small-square","▪":"black-small-square","▫":"white-small-square","🔶":"large-orange-diamond","🔷":"large-blue-diamond","🔸":"small-orange-diamond","🔹":"small-blue-diamond","🔺":"red-triangle-pointed-up","🔻":"red-triangle-pointed-down","💠":"diamond-with-a-dot","🔘":"radio-button","🔳":"white-square-button","🔲":"black-square-button","🏁":"chequered-flag","🚩":"triangular-flag","🎌":"crossed-flags","🏴":"black-flag","🏳":"white-flag","🏳️🌈":"rainbow-flag","🏳️⚧️":"transgender-flag","🏴☠️":"pirate-flag","🇦🇨":"flag-ascension-island","🇦🇩":"flag-andorra","🇦🇪":"flag-united-arab-emirates","🇦🇫":"flag-afghanistan","🇦🇬":"flag-antigua-and-barbuda","🇦🇮":"flag-anguilla","🇦🇱":"flag-albania","🇦🇲":"flag-armenia","🇦🇴":"flag-angola","🇦🇶":"flag-antarctica","🇦🇷":"flag-argentina","🇦🇸":"flag-american-samoa","🇦🇹":"flag-austria","🇦🇺":"flag-australia","🇦🇼":"flag-aruba","🇦🇽":"flag-åland-islands","🇦🇿":"flag-azerbaijan","🇧🇦":"flag-bosnia-and-herzegovina","🇧🇧":"flag-barbados","🇧🇩":"flag-bangladesh","🇧🇪":"flag-belgium","🇧🇫":"flag-burkina-faso","🇧🇬":"flag-bulgaria","🇧🇭":"flag-bahrain","🇧🇮":"flag-burundi","🇧🇯":"flag-benin","🇧🇱":"flag-st-barthelemy","🇧🇲":"flag-bermuda","🇧🇳":"flag-brunei","🇧🇴":"flag-bolivia","🇧🇶":"flag-caribbean-netherlands","🇧🇷":"flag-brazil","🇧🇸":"flag-bahamas","🇧🇹":"flag-bhutan","🇧🇻":"flag-bouvet-island","🇧🇼":"flag-botswana","🇧🇾":"flag-belarus","🇧🇿":"flag-belize","🇨🇦":"flag-canada","🇨🇨":"flag-cocos-(keeling)-islands","🇨🇩":"flag-congo---kinshasa","🇨🇫":"flag-central-african-republic","🇨🇬":"flag-congo---brazzaville","🇨🇭":"flag-switzerland","🇨🇮":"flag-côte-d-ivoire","🇨🇰":"flag-cook-islands","🇨🇱":"flag-chile","🇨🇲":"flag-cameroon","🇨🇳":"flag-china","🇨🇴":"flag-colombia","🇨🇵":"flag-clipperton-island","🇨🇷":"flag-costa-rica","🇨🇺":"flag-cuba","🇨🇻":"flag-cape-verde","🇨🇼":"flag-curaçao","🇨🇽":"flag-christmas-island","🇨🇾":"flag-cyprus","🇨🇿":"flag-czechia","🇩🇪":"flag-germany","🇩🇬":"flag-diego-garcia","🇩🇯":"flag-djibouti","🇩🇰":"flag-denmark","🇩🇲":"flag-dominica","🇩🇴":"flag-dominican-republic","🇩🇿":"flag-algeria","🇪🇦":"flag-ceuta-and-melilla","🇪🇨":"flag-ecuador","🇪🇪":"flag-estonia","🇪🇬":"flag-egypt","🇪🇭":"flag-western-sahara","🇪🇷":"flag-eritrea","🇪🇸":"flag-spain","🇪🇹":"flag-ethiopia","🇪🇺":"flag-european-union","🇫🇮":"flag-finland","🇫🇯":"flag-fiji","🇫🇰":"flag-falkland-islands","🇫🇲":"flag-micronesia","🇫🇴":"flag-faroe-islands","🇫🇷":"flag-france","🇬🇦":"flag-gabon","🇬🇧":"flag-united-kingdom","🇬🇩":"flag-grenada","🇬🇪":"flag-georgia","🇬🇫":"flag-french-guiana","🇬🇬":"flag-guernsey","🇬🇭":"flag-ghana","🇬🇮":"flag-gibraltar","🇬🇱":"flag-greenland","🇬🇲":"flag-gambia","🇬🇳":"flag-guinea","🇬🇵":"flag-guadeloupe","🇬🇶":"flag-equatorial-guinea","🇬🇷":"flag-greece","🇬🇸":"flag-south-georgia-and-south-sandwich-islands","🇬🇹":"flag-guatemala","🇬🇺":"flag-guam","🇬🇼":"flag-guinea-bissau","🇬🇾":"flag-guyana","🇭🇰":"flag-hong-kong-sar-china","🇭🇲":"flag-heard-and-mcdonald-islands","🇭🇳":"flag-honduras","🇭🇷":"flag-croatia","🇭🇹":"flag-haiti","🇭🇺":"flag-hungary","🇮🇨":"flag-canary-islands","🇮🇩":"flag-indonesia","🇮🇪":"flag-ireland","🇮🇱":"flag-israel","🇮🇲":"flag-isle-of-man","🇮🇳":"flag-india","🇮🇴":"flag-british-indian-ocean-territory","🇮🇶":"flag-iraq","🇮🇷":"flag-iran","🇮🇸":"flag-iceland","🇮🇹":"flag-italy","🇯🇪":"flag-jersey","🇯🇲":"flag-jamaica","🇯🇴":"flag-jordan","🇯🇵":"flag-japan","🇰🇪":"flag-kenya","🇰🇬":"flag-kyrgyzstan","🇰🇭":"flag-cambodia","🇰🇮":"flag-kiribati","🇰🇲":"flag-comoros","🇰🇳":"flag-st-kitts-and-nevis","🇰🇵":"flag-north-korea","🇰🇷":"flag-south-korea","🇰🇼":"flag-kuwait","🇰🇾":"flag-cayman-islands","🇰🇿":"flag-kazakhstan","🇱🇦":"flag-laos","🇱🇧":"flag-lebanon","🇱🇨":"flag-st-lucia","🇱🇮":"flag-liechtenstein","🇱🇰":"flag-sri-lanka","🇱🇷":"flag-liberia","🇱🇸":"flag-lesotho","🇱🇹":"flag-lithuania","🇱🇺":"flag-luxembourg","🇱🇻":"flag-latvia","🇱🇾":"flag-libya","🇲🇦":"flag-morocco","🇲🇨":"flag-monaco","🇲🇩":"flag-moldova","🇲🇪":"flag-montenegro","🇲🇫":"flag-st-martin","🇲🇬":"flag-madagascar","🇲🇭":"flag-marshall-islands","🇲🇰":"flag-north-macedonia","🇲🇱":"flag-mali","🇲🇲":"flag-myanmar-(burma)","🇲🇳":"flag-mongolia","🇲🇴":"flag-macao-sar-china","🇲🇵":"flag-northern-mariana-islands","🇲🇶":"flag-martinique","🇲🇷":"flag-mauritania","🇲🇸":"flag-montserrat","🇲🇹":"flag-malta","🇲🇺":"flag-mauritius","🇲🇻":"flag-maldives","🇲🇼":"flag-malawi","🇲🇽":"flag-mexico","🇲🇾":"flag-malaysia","🇲🇿":"flag-mozambique","🇳🇦":"flag-namibia","🇳🇨":"flag-new-caledonia","🇳🇪":"flag-niger","🇳🇫":"flag-norfolk-island","🇳🇬":"flag-nigeria","🇳🇮":"flag-nicaragua","🇳🇱":"flag-netherlands","🇳🇴":"flag-norway","🇳🇵":"flag-nepal","🇳🇷":"flag-nauru","🇳🇺":"flag-niue","🇳🇿":"flag-new-zealand","🇴🇲":"flag-oman","🇵🇦":"flag-panama","🇵🇪":"flag-peru","🇵🇫":"flag-french-polynesia","🇵🇬":"flag-papua-new-guinea","🇵🇭":"flag-philippines","🇵🇰":"flag-pakistan","🇵🇱":"flag-poland","🇵🇲":"flag-st-pierre-and-miquelon","🇵🇳":"flag-pitcairn-islands","🇵🇷":"flag-puerto-rico","🇵🇸":"flag-palestinian-territories","🇵🇹":"flag-portugal","🇵🇼":"flag-palau","🇵🇾":"flag-paraguay","🇶🇦":"flag-qatar","🇷🇪":"flag-reunion","🇷🇴":"flag-romania","🇷🇸":"flag-serbia","🇷🇺":"flag-russia","🇷🇼":"flag-rwanda","🇸🇦":"flag-saudi-arabia","🇸🇧":"flag-solomon-islands","🇸🇨":"flag-seychelles","🇸🇩":"flag-sudan","🇸🇪":"flag-sweden","🇸🇬":"flag-singapore","🇸🇭":"flag-st-helena","🇸🇮":"flag-slovenia","🇸🇯":"flag-svalbard-and-jan-mayen","🇸🇰":"flag-slovakia","🇸🇱":"flag-sierra-leone","🇸🇲":"flag-san-marino","🇸🇳":"flag-senegal","🇸🇴":"flag-somalia","🇸🇷":"flag-suriname","🇸🇸":"flag-south-sudan","🇸🇹":"flag-são-tome-and-príncipe","🇸🇻":"flag-el-salvador","🇸🇽":"flag-sint-maarten","🇸🇾":"flag-syria","🇸🇿":"flag-eswatini","🇹🇦":"flag-tristan-da-cunha","🇹🇨":"flag-turks-and-caicos-islands","🇹🇩":"flag-chad","🇹🇫":"flag-french-southern-territories","🇹🇬":"flag-togo","🇹🇭":"flag-thailand","🇹🇯":"flag-tajikistan","🇹🇰":"flag-tokelau","🇹🇱":"flag-timor-leste","🇹🇲":"flag-turkmenistan","🇹🇳":"flag-tunisia","🇹🇴":"flag-tonga","🇹🇷":"flag-turkey","🇹🇹":"flag-trinidad-and-tobago","🇹🇻":"flag-tuvalu","🇹🇼":"flag-taiwan","🇹🇿":"flag-tanzania","🇺🇦":"flag-ukraine","🇺🇬":"flag-uganda","🇺🇲":"flag-us-outlying-islands","🇺🇳":"flag-united-nations","🇺🇸":"flag-united-states","🇺🇾":"flag-uruguay","🇺🇿":"flag-uzbekistan","🇻🇦":"flag-vatican-city","🇻🇨":"flag-st-vincent-and-grenadines","🇻🇪":"flag-venezuela","🇻🇬":"flag-british-virgin-islands","🇻🇮":"flag-us-virgin-islands","🇻🇳":"flag-vietnam","🇻🇺":"flag-vanuatu","🇼🇫":"flag-wallis-and-futuna","🇼🇸":"flag-samoa","🇽🇰":"flag-kosovo","🇾🇪":"flag-yemen","🇾🇹":"flag-mayotte","🇿🇦":"flag-south-africa","🇿🇲":"flag-zambia","🇿🇼":"flag-zimbabwe","🏴":"flag-england","🏴":"flag-scotland","🏴":"flag-wales"},Vf=Object.keys(Hf);async function Wf(e,t,n){let r=await $f(t.filenameTemplate,t,n,e)||"";t.replaceEmojisInFilename&&Vf.forEach((e=>r=r.replaceAll(e," _"+Hf[e]+"_ ")));const a=t.filenameReplacementCharacter;if(r=function(e,t=jf,n=Bf){return t.forEach((t=>e=e.replace(new RegExp("["+t+"]+","g"),n))),e=e.replace(/\.\.\//g,"").replace(/^\/+/,"").replace(/\/+/g,"/").replace(/\/$/,"").replace(/\.$/,"").replace(/\.\//g,"."+n).replace(/\/\./g,"/"+n),e}(r,t.filenameReplacedCharacters,a),t.backgroundSave||(r=r.replace(/\//g,a)),!t.keepFilename&&("bytes"==t.filenameMaxLengthUnit&&n.getContentSize(r)>t.filenameMaxLength||r.length>t.filenameMaxLength)){const e=r.match(/(\.[^.]{3,4})$/),n=e&&e[0]&&e[0].length>1?e[0]:"";r="bytes"==t.filenameMaxLengthUnit?await Jf(r,t.filenameMaxLength-n.length):r.substring(0,t.filenameMaxLength-n.length),r=r+"…"+n}return r||(r="Unnamed page"),r}async function $f(e="",t,n,r,a){const o=new URL(t.saveUrl);e=await h(e,"page-title",(()=>t.title||"No title"),a,t.filenameReplacementCharacter),e=await h(e,"page-heading",(()=>t.info.heading||"No heading"),a,t.filenameReplacementCharacter),e=await h(e,"page-language",(()=>t.info.lang||"No language"),a,t.filenameReplacementCharacter),e=await h(e,"page-description",(()=>t.info.description||"No description"),a,t.filenameReplacementCharacter),e=await h(e,"page-author",(()=>t.info.author||"No author"),a,t.filenameReplacementCharacter),e=await h(e,"page-creator",(()=>t.info.creator||"No creator"),a,t.filenameReplacementCharacter),e=await h(e,"page-publisher",(()=>t.info.publisher||"No publisher"),a,t.filenameReplacementCharacter),await u(t.saveDate),await u(t.visitDate,"visit-"),e=await h(e,"url-hash",(()=>o.hash.substring(1)||"No hash"),a,t.filenameReplacementCharacter),e=await h(e,"url-host",(()=>o.host.replace(/\/$/,"")||"No host"),a,t.filenameReplacementCharacter),e=await h(e,"url-hostname",(()=>o.hostname.replace(/\/$/,"")||"No hostname"),a,t.filenameReplacementCharacter);const i=c(o.href);e=await h(e,"url-href",(()=>i||"No href"),void 0===a||a,t.filenameReplacementCharacter),e=await h(e,"url-href-digest-sha-1",i?async()=>n.digest("SHA-1",i):"No href",a,t.filenameReplacementCharacter),e=await h(e,"url-href-flat",(()=>c(o.href)||"No href"),!1,t.filenameReplacementCharacter),e=await h(e,"url-referrer",(()=>c(t.referrer)||"No referrer"),void 0===a||a,t.filenameReplacementCharacter),e=await h(e,"url-referrer-flat",(()=>c(t.referrer)||"No referrer"),!1,t.filenameReplacementCharacter),e=await h(e,"url-password",(()=>o.password||"No password"),a,t.filenameReplacementCharacter),e=await h(e,"url-pathname",(()=>c(o.pathname).replace(/^\//,"").replace(/\/$/,"")||"No pathname"),void 0===a||a,t.filenameReplacementCharacter),e=await h(e,"url-pathname-flat",(()=>c(o.pathname)||"No pathname"),!1,t.filenameReplacementCharacter),e=await h(e,"url-port",(()=>o.port||"No port"),a,t.filenameReplacementCharacter),e=await h(e,"url-protocol",(()=>o.protocol||"No protocol"),a,t.filenameReplacementCharacter),e=await h(e,"url-search",(()=>o.search.substring(1)||"No search"),a,t.filenameReplacementCharacter);const s=Array.from(new URLSearchParams(o.search));for(const[n,r]of s)e=await h(e,"url-search-"+n,(()=>r||""),a,t.filenameReplacementCharacter);e=e.replace(/{\s*url-search-[^}\s]*\s*}/gi,""),e=await h(e,"url-username",(()=>o.username||"No username"),a,t.filenameReplacementCharacter),e=await h(e,"tab-id",(()=>String(t.tabId||"No tab id")),a,t.filenameReplacementCharacter),e=await h(e,"tab-index",(()=>String(t.tabIndex||"No tab index")),a,t.filenameReplacementCharacter),e=await h(e,"url-last-segment",(()=>c(function(e,t){let n=e.pathname.match(/\/([^/]+)$/),r=n&&n[0];r||(n=e.href.match(/([^/]+)\/?$/),r=n&&n[0]);r||(n=r.match(/(.*)\.[^.]+$/),r=n&&n[0]);r||(r=e.hostname.replace(/\/+/g,t).replace(/\/$/,""));n=r.match(/(.*)\.[^.]+$/),n&&n[1]&&(r=n[1]);return r=r.replace(/\/$/,"").replace(/^\//,""),r}(o,t.filenameReplacementCharacter))||"No last segment"),a,t.filenameReplacementCharacter),r&&(e=await h(e,"digest-sha-256",(async()=>n.digest("SHA-256",r)),a,t.filenameReplacementCharacter),e=await h(e,"digest-sha-384",(async()=>n.digest("SHA-384",r)),a,t.filenameReplacementCharacter),e=await h(e,"digest-sha-512",(async()=>n.digest("SHA-512",r)),a,t.filenameReplacementCharacter));const l=t.bookmarkFolders&&t.bookmarkFolders.join("/")||"";return e=await h(e,"bookmark-pathname",(()=>l),void 0===a||a,t.filenameReplacementCharacter),e=await h(e,"bookmark-pathname-flat",(()=>l),!1,t.filenameReplacementCharacter),(e=await h(e,"profile-name",(()=>t.profileName),a,t.filenameReplacementCharacter)).trim();function c(e){try{return decodeURI(e)}catch(t){return e}}async function u(n,r=""){n&&(e=await h(e,r+"datetime-iso",(()=>n.toISOString()),a,t.filenameReplacementCharacter),e=await h(e,r+"date-iso",(()=>n.toISOString().split("T")[0]),a,t.filenameReplacementCharacter),e=await h(e,r+"time-iso",(()=>n.toISOString().split("T")[1].split("Z")[0]),a,t.filenameReplacementCharacter),e=await h(e,r+"date-locale",(()=>n.toLocaleDateString()),a,t.filenameReplacementCharacter),e=await h(e,r+"time-locale",(()=>n.toLocaleTimeString()),a,t.filenameReplacementCharacter),e=await h(e,r+"day-locale",(()=>String(n.getDate()).padStart(2,"0")),a,t.filenameReplacementCharacter),e=await h(e,r+"month-locale",(()=>String(n.getMonth()+1).padStart(2,"0")),a,t.filenameReplacementCharacter),e=await h(e,r+"year-locale",(()=>String(n.getFullYear())),a,t.filenameReplacementCharacter),e=await h(e,r+"datetime-locale",(()=>n.toLocaleString()),a,t.filenameReplacementCharacter),e=await h(e,r+"datetime-utc",(()=>n.toUTCString()),a,t.filenameReplacementCharacter),e=await h(e,r+"day-utc",(()=>String(n.getUTCDate()).padStart(2,"0")),a,t.filenameReplacementCharacter),e=await h(e,r+"month-utc",(()=>String(n.getUTCMonth()+1).padStart(2,"0")),a,t.filenameReplacementCharacter),e=await h(e,r+"year-utc",(()=>String(n.getUTCFullYear())),a,t.filenameReplacementCharacter),e=await h(e,r+"hours-locale",(()=>String(n.getHours()).padStart(2,"0")),a,t.filenameReplacementCharacter),e=await h(e,r+"minutes-locale",(()=>String(n.getMinutes()).padStart(2,"0")),a,t.filenameReplacementCharacter),e=await h(e,r+"seconds-locale",(()=>String(n.getSeconds()).padStart(2,"0")),a,t.filenameReplacementCharacter),e=await h(e,r+"hours-utc",(()=>String(n.getUTCHours()).padStart(2,"0")),a,t.filenameReplacementCharacter),e=await h(e,r+"minutes-utc",(()=>String(n.getUTCMinutes()).padStart(2,"0")),a,t.filenameReplacementCharacter),e=await h(e,r+"seconds-utc",(()=>String(n.getUTCSeconds()).padStart(2,"0")),a,t.filenameReplacementCharacter),e=await h(e,r+"time-ms",(()=>String(n.getTime())),a,t.filenameReplacementCharacter))}async function h(e,t,n,r,a){let o,i;if(e){const s="{\\s*"+t.replace(/\W|_/g,"[$&]")+"\\s*}";let l=new RegExp(s+"\\[\\d+(ch)?\\]","g");if(e.match(l)){const t=e.match(l)[0];t.match(/\[(\d+)\]$/)?(o=Number(t.match(/\[(\d+)\]$/)[1]),(isNaN(o)||o<=0)&&(o=null)):(i=Number(t.match(/\[(\d+)ch\]$/)[1]),(isNaN(i)||i<=0)&&(i=null))}else l=new RegExp(s,"g");if(e.match(l)){let t=await n();return r||(t=t.replace(/\/+/g,a)),o?t=await Jf(t,o):i&&(t=t.substring(0,i)),e.replace(l,t)}}return e}}function Jf(e,t){const n=new Blob([e]),r=new FileReader;return r.readAsText(n.slice(0,t)),new Promise(((n,a)=>{r.addEventListener("load",(()=>{e.startsWith(r.result)?n(r.result):Jf(e,t-1).then(n).catch(a)}),!1),r.addEventListener("error",a,!1)}))}var Gf=Object.freeze({__proto__:null,formatFilename:Wf,evalTemplate:$f}),Yf=Object.freeze({__proto__:null,fontsAltMinifier:pg,fontsMinifier:Mg,matchedRules:Kg,mediasAltMinifier:af,cssRulesMinifier:cf,imagesAltMinifier:gf,htmlMinifier:Rf,serializer:Ff,templateFormatter:Gf});const Kf=globalThis.Set,Qf=globalThis.Map,Zf=globalThis.JSON,Xf=globalThis.setTimeout,eb=globalThis.clearTimeout,tb=globalThis.Image;let nb,rb;class ab{constructor(e){this.options=e}async run(){const e=globalThis._singleFile_waitForUserScript;this.options.userScriptEnabled&&e&&await e(nb.ON_BEFORE_CAPTURE_EVENT_NAME),this.runner=new bb(this.options,!0),await this.runner.loadPage(),await this.runner.initialize(),this.options.userScriptEnabled&&e&&await e(nb.ON_AFTER_CAPTURE_EVENT_NAME),await this.runner.run()}cancel(){this.cancelled=!0,this.runner&&this.runner.cancel()}getPageData(){return this.runner.getPageData()}}const ob="page-loading",ib="page-loaded",sb="resource-initializing",lb="resources-initialized",cb="resource-loaded",ub="page-ended",hb="stage-started",db="stage-ended",pb="stage-task-started",mb="stage-task-ended";class gb{constructor(e,t){return{type:e,detail:t,PAGE_LOADING:ob,PAGE_LOADED:ib,RESOURCES_INITIALIZING:sb,RESOURCES_INITIALIZED:lb,RESOURCE_LOADED:cb,PAGE_ENDED:ub,STAGE_STARTED:hb,STAGE_ENDED:db,STAGE_TASK_STARTED:pb,STAGE_TASK_ENDED:mb}}}const fb=[{sequential:[{action:"preProcessPage"},{option:"loadDeferredImagesKeepZoomLevel",action:"resetZoomLevel"},{action:"replaceStyleContents"},{action:"replaceInvalidElements"},{action:"resetCharsetMeta"},{option:"saveFavicon",action:"saveFavicon"},{action:"insertFonts"},{action:"insertShadowRootContents"},{action:"replaceCanvasElements"},{action:"setInputValues"},{option:"moveStylesInHead",action:"moveStylesInHead"},{option:"blockScripts",action:"removeEmbedScripts"},{option:"selected",action:"removeUnselectedElements"},{option:"blockVideos",action:"insertVideoPosters"},{option:"blockVideos",action:"insertVideoLinks"},{option:"removeFrames",action:"removeFrames"},{action:"removeDiscardedResources"},{option:"removeHiddenElements",action:"removeHiddenElements"},{action:"saveScrollPosition"},{action:"resolveHrefs"},{action:"resolveStyleAttributeURLs"}],parallel:[{option:"blockVideos",action:"insertMissingVideoPosters"},{action:"resolveStylesheetURLs"},{option:"!removeFrames",action:"resolveFrameURLs"}]},{sequential:[{option:"removeUnusedStyles",action:"removeUnusedStyles"},{option:"removeAlternativeMedias",action:"removeAlternativeMedias"},{option:"removeUnusedFonts",action:"removeUnusedFonts"}],parallel:[{action:"processStylesheets"},{action:"processStyleAttributes"},{action:"processPageResources"},{action:"processScripts"}]},{sequential:[{option:"removeAlternativeImages",action:"removeAlternativeImages"}],parallel:[{option:"removeAlternativeFonts",action:"removeAlternativeFonts"},{option:"!removeFrames",action:"processFrames"}]},{sequential:[{action:"replaceStylesheets"},{action:"replaceStyleAttributes"},{action:"insertVariables"},{option:"compressHTML",action:"compressHTML"},{action:"cleanupPage"}],parallel:[{option:"enableMaff",action:"insertMAFFMetaData"},{action:"setDocInfo"}]}];class bb{constructor(e,t){const n=t&&e.doc;this.root=t,this.options=e,this.options.url=this.options.url||n&&this.options.doc.location.href;const r=this.options.url.match(/^.*\//);if(this.options.resourceReferrer=this.options.passReferrerOnError&&r&&r[0],this.options.baseURI=n&&this.options.doc.baseURI,this.options.rootDocument=t,this.options.updatedResources=this.options.updatedResources||{},this.options.fontTests=new Qf,this.batchRequest=new yb,this.processor=new Cb(e,this.batchRequest),n){const e=nb.preProcessDoc(this.options.doc,this.options.win,this.options);this.options.canvases=e.canvases,this.options.fonts=e.fonts,this.options.stylesheets=e.stylesheets,this.options.images=e.images,this.options.posters=e.posters,this.options.videos=e.videos,this.options.usedFonts=e.usedFonts,this.options.shadowRoots=e.shadowRoots,this.options.referrer=e.referrer,this.markedElements=e.markedElements,this.invalidElements=e.invalidElements}this.options.saveRawPage&&(this.options.removeFrames=!0),this.options.content=this.options.content||(n?nb.serialize(this.options.doc):null),this.onprogress=e.onprogress||(()=>{})}async loadPage(){this.onprogress(new gb(ob,{pageURL:this.options.url,frame:!this.root})),await this.processor.loadPage(this.options.content),this.onprogress(new gb(ib,{pageURL:this.options.url,frame:!this.root}))}async initialize(){this.onprogress(new gb(sb,{pageURL:this.options.url})),await this.executeStage(0),this.pendingPromises=this.executeStage(1),this.root&&this.options.doc&&nb.postProcessDoc(this.options.doc,this.markedElements,this.invalidElements)}cancel(){this.cancelled=!0,this.batchRequest.cancel(),this.root&&this.options.frames&&this.options.frames.forEach((function(e){e.runner&&e.runner.cancel()}))}async run(){this.root&&(this.processor.initialize(this.batchRequest),this.onprogress(new gb(lb,{pageURL:this.options.url,max:this.processor.maxResources}))),await this.batchRequest.run((e=>{e.pageURL=this.options.url,this.onprogress(new gb(cb,e))}),this.options),await this.pendingPromises,this.options.doc=null,this.options.win=null,await this.executeStage(2),await this.executeStage(3),this.processor.finalize()}getDocument(){return this.processor.doc}getStyleSheets(){return this.processor.stylesheets}getPageData(){return this.root&&this.onprogress(new gb(ub,{pageURL:this.options.url})),this.processor.getPageData()}async executeStage(e){const t=!this.root;let n;return this.onprogress(new gb(hb,{pageURL:this.options.url,step:e,frame:t})),fb[e].sequential.forEach((n=>{this.onprogress(new gb(pb,{pageURL:this.options.url,step:e,task:n.action,frame:t})),this.cancelled||this.executeTask(n),this.onprogress(new gb(mb,{pageURL:this.options.url,step:e,task:n.action,frame:t}))})),n=fb[e].parallel?await Promise.all(fb[e].parallel.map((async n=>{this.onprogress(new gb(pb,{pageURL:this.options.url,step:e,task:n.action,frame:t})),this.cancelled||await this.executeTask(n),this.onprogress(new gb(mb,{pageURL:this.options.url,step:e,task:n.action,frame:t}))}))):Promise.resolve(),this.onprogress(new gb(db,{pageURL:this.options.url,step:e,frame:t})),n}executeTask(e){if(!e.option||e.option.startsWith("!")&&!this.options[e.option]||this.options[e.option])return this.processor[e.action]()}}class yb{constructor(){this.requests=new Qf,this.duplicates=new Qf}addURL(e,{asBinary:t,expectedType:n,groupDuplicates:r,baseURI:a,blockMixedContent:o}={}){return new Promise(((i,s)=>{const l=Zf.stringify([e,t,n,a,o]);let c=this.requests.get(l);c||(c=[],this.requests.set(l,c));const u={resolve:i,reject:s};if(c.push(u),r){let e=this.duplicates.get(l);e||(e=[],this.duplicates.set(l,e)),e.push(u)}}))}getMaxResources(){return this.requests.size}run(e,t){const n=[...this.requests.keys()];let r=0;return Promise.all(n.map((async n=>{const[a,o,i,s,l]=Zf.parse(n),c=this.requests.get(n);try{const u=r;r+=1;const h=await nb.getContent(a,{asBinary:o,expectedType:i,maxResourceSize:t.maxResourceSize,maxResourceSizeEnabled:t.maxResourceSizeEnabled,frameId:t.windowId,resourceReferrer:t.resourceReferrer,baseURI:s,blockMixedContent:l,acceptHeaders:t.acceptHeaders,networkTimeout:t.networkTimeout});e({url:a}),this.cancelled||c.forEach((e=>{const t=this.duplicates.get(n),r=t&&t.length>1&&t.includes(e);e.resolve({content:h.data,indexResource:u,duplicate:r})}))}catch(t){r+=1,e({url:a}),c.forEach((e=>e.reject(t)))}this.requests.delete(n)})))}cancel(){this.cancelled=!0;[...this.requests.keys()].forEach((e=>{this.requests.get(e).forEach((e=>e.reject())),this.requests.delete(e)}))}}const wb=["data:text/"],kb="data:image/svg+xml",vb=/<script/gi,xb=/<noscript/gi,Ab=/<canvas/gi,Eb="shadowroot",Sb="data-template-shadow-root",Tb="utf-8";class Cb{constructor(e,t){this.options=e,this.stats=new Qb(e),this.baseURI=Fb(e.baseURI||e.url),this.batchRequest=t,this.stylesheets=new Qf,this.styles=new Qf,this.cssVariables=new Qf,this.fontTests=e.fontTests}initialize(){this.options.saveDate=new Date,this.options.saveUrl=this.options.url,this.options.enableMaff&&(this.maffMetaDataPromise=this.batchRequest.addURL(nb.resolveURL("index.rdf",this.options.baseURI||this.options.url),{expectedType:"document"})),this.maxResources=this.batchRequest.getMaxResources(),this.options.saveRawPage||this.options.removeFrames||!this.options.frames||this.options.frames.forEach((e=>this.maxResources+=e.maxResources||0)),this.stats.set("processed","resources",this.maxResources)}async loadPage(e,t){let n;if(e&&!this.options.saveRawPage||(n=await nb.getContent(this.baseURI,{maxResourceSize:this.options.maxResourceSize,maxResourceSizeEnabled:this.options.maxResourceSizeEnabled,charset:t,frameId:this.options.windowId,resourceReferrer:this.options.resourceReferrer,expectedType:"document",acceptHeaders:this.options.acceptHeaders,networkTimeout:this.options.networkTimeout}),e=n.data),this.doc=nb.parseDocContent(e,this.baseURI),this.options.saveRawPage){let t;if(this.doc.querySelectorAll('meta[charset], meta[http-equiv="content-type"]').forEach((e=>{const n=e.content.split(";")[1];n&&!t&&(t=n.split("=")[1].trim().toLowerCase())})),t&&n.charset&&t.toLowerCase()!=n.charset.toLowerCase())return this.loadPage(e,t)}this.workStyleElement=this.doc.createElement("style"),this.doc.body.appendChild(this.workStyleElement),this.onEventAttributeNames=function(e){const t=e.createElement("div"),n=[];for(const e in t)e.startsWith("on")&&n.push(e);return n.push("onunload"),n}(this.doc)}finalize(){this.workStyleElement.parentNode&&this.workStyleElement.remove()}async getPageData(){nb.postProcessDoc(this.doc);const e=nb.parseURL(this.baseURI);if(this.options.insertSingleFileComment){const e=this.doc.documentElement.firstChild;let t=this.options.saveUrl,n=this.options.saveDate;if(8==e.nodeType&&(e.textContent.includes(nb.COMMENT_HEADER_LEGACY)||e.textContent.includes(nb.COMMENT_HEADER))){const r=this.doc.documentElement.firstChild.textContent.split("\n");try{const[,,a,o]=r;t=a.split("url: ")[1],n=o.split("saved date: ")[1],e.remove()}catch(e){}}const r=(this.options.infobarContent||"").replace(/\\n/g,"\n").replace(/\\t/g,"\t"),a=this.doc.createComment("\n "+(this.options.useLegacyCommentHeader?nb.COMMENT_HEADER_LEGACY:nb.COMMENT_HEADER)+" \n url: "+t+(this.options.removeSavedDate?" ":" \n saved date: "+n)+(r?" \n info: "+r:"")+"\n");this.doc.documentElement.insertBefore(a,this.doc.documentElement.firstChild)}if(this.options.includeInfobar&&nb.appendInfobar(this.doc,this.options),this.doc.querySelector("template["+Eb+"]")||this.options.shadowRoots&&this.options.shadowRoots.length){this.options.blockScripts&&this.doc.querySelectorAll("script["+Sb+"]").forEach((e=>e.remove()));const e=this.doc.createElement("script");e.setAttribute(Sb,""),e.textContent=`(()=>{document.currentScript.remove();processNode(document);function processNode(node){node.querySelectorAll("template[${Eb}]").forEach(element=>{let shadowRoot = element.parentElement.shadowRoot;if (!shadowRoot) {try {shadowRoot=element.parentElement.attachShadow({mode:element.getAttribute("${Eb}")});shadowRoot.innerHTML=element.innerHTML;element.remove()} catch (error) {} if (shadowRoot) {processNode(shadowRoot)}}})}})()`,this.doc.body.appendChild(e)}if(this.options.insertCanonicalLink&&this.options.saveUrl.match(Mb)){let e=this.doc.querySelector("link[rel=canonical]");e||(e=this.doc.createElement("link"),e.setAttribute("rel","canonical"),this.doc.head.appendChild(e)),e&&!e.href&&(e.href=this.options.saveUrl)}if(this.options.insertMetaCSP){const e=this.doc.createElement("meta");e.httpEquiv="content-security-policy",e.content="default-src 'none'; font-src 'self' data:; img-src 'self' data:; style-src 'unsafe-inline'; media-src 'self' data:; script-src 'unsafe-inline' data:; object-src 'self' data:; frame-src 'self' data:;",this.doc.head.appendChild(e)}if(this.options.insertMetaNoIndex){let e=this.doc.querySelector("meta[name=robots][content*=noindex]");e||(e=this.doc.createElement("meta"),e.setAttribute("name","robots"),e.setAttribute("content","noindex"),this.doc.head.appendChild(e))}const t=this.doc.createElement("style");let n;t.textContent='img[src="data:,"],source[src="data:,"]{display:none!important}',this.doc.head.appendChild(t),this.options.displayStats&&(n=nb.getContentSize(this.doc.documentElement.outerHTML));const r=nb.serialize(this.doc,this.options.compressHTML);if(this.options.displayStats){const e=nb.getContentSize(r);this.stats.set("processed","HTML bytes",e),this.stats.add("discarded","HTML bytes",n-e)}const a=await nb.formatFilename(r,this.options),o=this.baseURI.match(/([^/]*)\/?(\.html?.*)$/)||this.baseURI.match(/\/\/([^/]*)\/?$/),i={stats:this.stats.data,title:this.options.title||(this.baseURI&&o?o[1]:e.hostname?e.hostname:""),filename:a,content:r};return this.options.addProof&&(i.hash=await nb.digest("SHA-256",r)),this.options.retrieveLinks&&(i.links=Array.from(new Kf(Array.from(this.doc.links).map((e=>e.href))))),i}preProcessPage(){this.options.win&&this.doc.body.querySelectorAll(':not(svg) title, meta, link[href][rel*="icon"]').forEach((e=>e instanceof this.options.win.HTMLElement&&this.doc.head.appendChild(e))),this.options.images&&!this.options.saveRawPage&&(this.doc.querySelectorAll("img["+nb.IMAGE_ATTRIBUTE_NAME+"]").forEach((e=>{const t=e.getAttribute(nb.IMAGE_ATTRIBUTE_NAME);if(t){const n=this.options.images[Number(t)];n&&(this.options.removeHiddenElements&&(n.size&&!n.size.pxWidth&&!n.size.pxHeight||""==e.getAttribute(nb.HIDDEN_CONTENT_ATTRIBUTE_NAME))?e.setAttribute("src",nb.EMPTY_RESOURCE):(n.currentSrc&&(e.dataset.singleFileOriginURL=e.getAttribute("src"),e.setAttribute("src",n.currentSrc)),this.options.loadDeferredImages&&(e.getAttribute("src")&&e.getAttribute("src")!=nb.EMPTY_RESOURCE||!e.getAttribute("data-src")||(n.src=e.dataset.src,e.setAttribute("src",e.dataset.src),e.removeAttribute("data-src")))))}})),this.options.loadDeferredImages&&this.doc.querySelectorAll("img[data-srcset]").forEach((e=>{!e.getAttribute("srcset")&&e.getAttribute("data-srcset")&&(e.setAttribute("srcset",e.dataset.srcset),e.removeAttribute("data-srcset"))})))}replaceStyleContents(){this.options.stylesheets&&this.doc.querySelectorAll("style").forEach(((e,t)=>{if(e.getAttribute(nb.STYLESHEET_ATTRIBUTE_NAME)){const n=this.options.stylesheets[Number(t)];n&&(e.textContent=n)}}))}removeUnselectedElements(){function e(e){1==e.nodeType&&e.querySelector("svg,style,link")||!n(e)?t(e):e.remove()}function t(t){n(t)&&(t.style.setProperty("display","none","important"),t.removeAttribute("src"),t.removeAttribute("srcset"),t.removeAttribute("srcdoc"),Array.from(t.childNodes).forEach(e))}function n(e){if(1==e.nodeType){const t=e.tagName&&e.tagName.toUpperCase();return"SVG"!=t&&"STYLE"!=t&&"LINK"!=t}}!function n(r){let a=!1;Array.from(r.childNodes).forEach((r=>{if(1==r.nodeType){const o=""==r.getAttribute(nb.SELECTED_CONTENT_ATTRIBUTE_NAME);a=a||o,o?(r.removeAttribute(nb.SELECTED_CONTENT_ATTRIBUTE_NAME),n(r)):a?e(r):t(r)}}))}(this.doc.body),this.doc.body.removeAttribute(nb.SELECTED_CONTENT_ATTRIBUTE_NAME)}insertVideoPosters(){this.options.posters&&this.doc.querySelectorAll("video, video > source").forEach((e=>{let t;t="VIDEO"==e.tagName.toUpperCase()?e:e.parentElement;const n=e.getAttribute(nb.POSTER_ATTRIBUTE_NAME);if(n){const e=this.options.posters[Number(n)];!t.getAttribute("poster")&&e&&t.setAttribute("poster",e)}}))}insertVideoLinks(){const e="16px";this.doc.querySelectorAll("video").forEach((t=>{const n=t.getAttribute(nb.VIDEO_ATTRIBUTE_NAME);if(n){const r=this.options.videos[Number(n)],a=r.src||t.src;if(t&&a){const n=this.doc.createElement("a"),o=this.doc.createElement("img");n.href=a,n.target="_blank",n.style.setProperty("z-index",2147483647,"important"),n.style.setProperty("position","absolute","important"),n.style.setProperty("top","8px","important"),n.style.setProperty("left","8px","important"),n.style.setProperty("width",e,"important"),n.style.setProperty("height",e,"important"),n.style.setProperty("min-width",e,"important"),n.style.setProperty("min-height",e,"important"),n.style.setProperty("max-width",e,"important"),n.style.setProperty("max-height",e,"important"),o.src="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",o.style.setProperty("width",e,"important"),o.style.setProperty("height",e,"important"),o.style.setProperty("min-width",e,"important"),o.style.setProperty("min-height",e,"important"),o.style.setProperty("max-width",e,"important"),o.style.setProperty("max-height",e,"important"),n.appendChild(o),t.insertAdjacentElement("afterend",n);const i=t.parentNode.style.getPropertyValue("position");(r.positionParent||i&&"static"==i)&&"static"!=r.positionParent||t.parentNode.style.setProperty("position","relative","important")}}}))}removeFrames(){const e=this.doc.querySelectorAll('iframe, frame, object[type="text/html"][data]');this.stats.set("discarded","frames",e.length),this.stats.set("processed","frames",e.length),this.doc.querySelectorAll('iframe, frame, object[type="text/html"][data]').forEach((e=>e.remove()))}removeEmbedScripts(){const e="javascript:",t="javascript:void(0)";this.onEventAttributeNames.forEach((e=>this.doc.querySelectorAll("["+e+"]").forEach((t=>t.removeAttribute(e))))),this.doc.querySelectorAll("[href]").forEach((n=>{n.href&&n.href.match&&n.href.trim().startsWith(e)&&n.setAttribute("href",t)})),this.doc.querySelectorAll("[src]").forEach((n=>{n.src&&n.src.trim().startsWith(e)&&n.setAttribute("src",t)}));const n=this.doc.querySelectorAll('script:not([type="application/ld+json"]):not(['+Sb+"])");this.stats.set("discarded","scripts",n.length),this.stats.set("processed","scripts",n.length),n.forEach((e=>e.remove()))}removeDiscardedResources(){this.doc.querySelectorAll("."+nb.SINGLE_FILE_UI_ELEMENT_CLASS).forEach((e=>e.remove()));const e=new Qf;this.doc.querySelectorAll("noscript").forEach((t=>{const n=this.doc.createElement("div");n.innerHTML=t.dataset.singleFileDisabledNoscript,t.replaceWith(n),e.set(n,t)})),this.doc.querySelectorAll("meta[http-equiv=refresh], meta[disabled-http-equiv]").forEach((e=>e.remove())),e.forEach(((e,t)=>{e.dataset.singleFileDisabledNoscript=t.innerHTML,t.replaceWith(e)})),this.doc.querySelectorAll('meta[http-equiv="content-security-policy"]').forEach((e=>e.remove()));const t=this.doc.querySelectorAll('applet, object[data]:not([type="image/svg+xml"]):not([type="image/svg-xml"]):not([type="text/html"]):not([data*=".svg"]):not([data*=".pdf"]), embed[src]:not([src*=".svg"]):not([src*=".pdf"])');this.stats.set("discarded","objects",t.length),this.stats.set("processed","objects",t.length),t.forEach((e=>e.remove()));this.doc.querySelectorAll("link[rel~=preconnect], link[rel~=prerender], link[rel~=dns-prefetch], link[rel~=preload], link[rel~=manifest], link[rel~=prefetch]").forEach((e=>{const t=e.getAttribute("rel").replace(/(preconnect|prerender|dns-prefetch|preload|prefetch|manifest)/g,"").trim();t.length?e.setAttribute("rel",t):e.remove()})),this.doc.querySelectorAll('link[rel*=stylesheet][rel*=alternate][title],link[rel*=stylesheet]:not([href]),link[rel*=stylesheet][href=""]').forEach((e=>e.remove())),this.options.removeHiddenElements&&this.doc.querySelectorAll("input[type=hidden]").forEach((e=>e.remove())),this.options.saveFavicon||this.doc.querySelectorAll('link[rel*="icon"]').forEach((e=>e.remove())),this.doc.querySelectorAll("a[ping]").forEach((e=>e.removeAttribute("ping"))),this.doc.querySelectorAll("link[rel=import][href]").forEach((e=>e.remove()))}replaceInvalidElements(){this.doc.querySelectorAll("template["+nb.INVALID_ELEMENT_ATTRIBUTE_NAME+"]").forEach((e=>{const t=this.doc.createElement("span");if(e.content){const n=e.content.firstChild;n&&(n.hasAttributes()&&Array.from(n.attributes).forEach((e=>t.setAttribute(e.name,e.value))),n.childNodes.forEach((e=>t.appendChild(e.cloneNode(!0))))),e.replaceWith(t)}}))}resetCharsetMeta(){let e;this.doc.querySelectorAll('meta[charset], meta[http-equiv="content-type"]').forEach((t=>{const n=t.content.split(";")[1];n&&!e&&(e=n.split("=")[1],e&&(this.charset=e.trim().toLowerCase())),t.remove()}));const t=this.doc.createElement("meta");t.setAttribute("charset",Tb),this.doc.head.firstChild?this.doc.head.insertBefore(t,this.doc.head.firstChild):this.doc.head.appendChild(t)}setInputValues(){this.doc.querySelectorAll("input:not([type=radio]):not([type=checkbox])").forEach((e=>{const t=e.getAttribute(nb.INPUT_VALUE_ATTRIBUTE_NAME);e.setAttribute("value",t||"")})),this.doc.querySelectorAll("input[type=radio], input[type=checkbox]").forEach((e=>{"true"==e.getAttribute(nb.INPUT_VALUE_ATTRIBUTE_NAME)&&e.setAttribute("checked","")})),this.doc.querySelectorAll("textarea").forEach((e=>{const t=e.getAttribute(nb.INPUT_VALUE_ATTRIBUTE_NAME);e.textContent=t||""})),this.doc.querySelectorAll("select").forEach((e=>{e.querySelectorAll("option").forEach((e=>{null!=e.getAttribute(nb.INPUT_VALUE_ATTRIBUTE_NAME)&&e.setAttribute("selected","")}))}))}moveStylesInHead(){this.doc.querySelectorAll("style").forEach((e=>{""==e.getAttribute(nb.STYLE_ATTRIBUTE_NAME)&&this.doc.head.appendChild(e)}))}saveFavicon(){let e=this.doc.querySelector('link[href][rel="shortcut icon"]');e||(e=this.doc.querySelector('link[href][rel="icon"]')),e||(e=this.doc.createElement("link"),e.setAttribute("type","image/x-icon"),e.setAttribute("rel","shortcut icon"),e.setAttribute("href","/favicon.ico")),this.doc.head.appendChild(e)}saveScrollPosition(){if(this.options.scrollPosition&&"no"==this.options.scrolling&&(this.options.scrollPosition.x||this.options.scrollPosition.y)){const e=this.doc.createElement("script");e.textContent='document.currentScript.remove();addEventListener("load",()=>scrollTo('+this.options.scrollPosition.x+","+this.options.scrollPosition.y+"))",this.doc.body.appendChild(e)}}replaceCanvasElements(){this.options.canvases&&this.doc.querySelectorAll("canvas").forEach((e=>{const t=e.getAttribute(nb.CANVAS_ATTRIBUTE_NAME);if(t){const n=this.options.canvases[Number(t)];if(n){const t={};n.backgroundColor&&(t["background-color"]=n.backgroundColor),Pb.setBackgroundImage(e,"url("+n.dataURI+")",t),this.stats.add("processed","canvas",1)}}}))}insertFonts(){if(this.options.fonts&&this.options.fonts.length){let e,t=this.doc.querySelector("style, link[rel=stylesheet]");this.options.fonts.forEach((n=>{if(n["font-family"]&&n.src){let r="@font-face{",a="";Object.keys(n).forEach((e=>{a&&(a+=";"),a+=e+":"+n[e]})),r+=a+"}";const o=this.doc.createElement("style");o.textContent=r,e?e.insertAdjacentElement("afterend",o):t?t.parentElement.insertBefore(o,t):this.doc.head.appendChild(o),e=o}}))}}removeHiddenElements(){const e=this.doc.querySelectorAll("["+nb.HIDDEN_CONTENT_ATTRIBUTE_NAME+"]"),t=this.doc.querySelectorAll("["+nb.REMOVED_CONTENT_ATTRIBUTE_NAME+"]");if(this.stats.set("discarded","hidden elements",t.length),this.stats.set("processed","hidden elements",t.length),e.length){const t=this.doc.createElement("style");t.textContent=".sf-hidden{display:none!important;}",this.doc.head.appendChild(t),e.forEach((e=>{"none"!=e.style.getPropertyValue("display")&&("important"==e.style.getPropertyPriority("display")?e.style.setProperty("display","none","important"):e.classList.add("sf-hidden"))}))}t.forEach((e=>e.remove()))}resolveHrefs(){this.doc.querySelectorAll("a[href], area[href], link[href]").forEach((e=>{const t=e.getAttribute("href").trim();if("LINK"==e.tagName.toUpperCase()&&e.rel.includes("stylesheet")&&this.options.saveOriginalURLs&&!$b(t)&&e.setAttribute("data-sf-original-href",t),!Jb(t)){let n;try{n=nb.resolveURL(t,this.options.baseURI||this.options.url)}catch(e){}if(n){const t=Fb(this.options.url);!n.startsWith(t+"#")||n.startsWith(t+"#!")||this.options.resolveFragmentIdentifierURLs||(n=n.substring(t.length));try{e.setAttribute("href",n)}catch(e){}}}}))}async insertMissingVideoPosters(){await Promise.all(Array.from(this.doc.querySelectorAll("video[src], video > source[src]")).map((async e=>{let t;if(t="VIDEO"==e.tagName.toUpperCase()?e:e.parentElement,!t.poster){const e=t.getAttribute(nb.VIDEO_ATTRIBUTE_NAME);if(e){const n=this.options.videos[Number(e)],r=n.src||t.src;if(r){const e=this.doc.createElement("video");e.src=r,e.style.setProperty("width",n.size.pxWidth+"px","important"),e.style.setProperty("height",n.size.pxHeight+"px","important"),e.style.setProperty("display","none","important"),e.crossOrigin="anonymous";const a=this.doc.createElement("canvas"),o=a.getContext("2d");return this.options.doc.body.appendChild(e),new Promise((r=>{e.currentTime=n.currentTime,e.oncanplay=()=>{a.width=n.size.pxWidth,a.height=n.size.pxHeight,o.drawImage(e,0,0,a.width,a.height);try{t.poster=a.toDataURL("image/png","")}catch(e){}e.remove(),r()},e.onerror=()=>{e.remove(),r()}}))}}}})))}resolveStyleAttributeURLs(){this.doc.querySelectorAll("[style]").forEach((e=>{if(this.options.blockStylesheets)e.removeAttribute("style");else{const t=e.getAttribute("style"),n=rb.parse(t,{context:"declarationList",parseCustomProperty:!0});Pb.resolveStylesheetURLs(n,this.baseURI,this.workStyleElement),this.styles.set(e,n)}}))}async resolveStylesheetURLs(){if(await Promise.all(Array.from(this.doc.querySelectorAll("style, link[rel*=stylesheet]")).map((async t=>{const n=Object.assign({},this.options,{charset:this.charset});let r;t.media&&(r=t.media.toLowerCase());const a={mediaText:r,scoped:Boolean(t.closest("["+Eb+"]"))};"LINK"==t.tagName.toUpperCase()&&t.charset&&(n.charset=t.charset),await e(t,a,this.stylesheets,this.baseURI,n,this.workStyleElement)}))),this.options.rootDocument){const t=Object.keys(this.options.updatedResources).filter((e=>"stylesheet"==this.options.updatedResources[e].type&&!this.options.updatedResources[e].retrieved)).map((e=>this.options.updatedResources[e]));await Promise.all(t.map((async t=>{if(t.retrieved=!0,!this.options.blockStylesheets){const n={},r=this.doc.createElement("style");this.doc.body.appendChild(r),r.textContent=t.content,await e(r,n,this.stylesheets,this.baseURI,this.options,this.workStyleElement)}})))}async function e(e,t,n,r,a,o){let i;if(n.set(e,t),!a.blockStylesheets)if("LINK"==e.tagName.toUpperCase())i=await Pb.resolveLinkStylesheetURLs(e.href,r,a,o);else{i=rb.parse(e.textContent,{context:"stylesheet",parseCustomProperty:!0});await Pb.resolveImportURLs(i,r,a,o)&&(i=rb.parse(rb.generate(i),{context:"stylesheet",parseCustomProperty:!0}))}i&&i.children?(a.compressCSS&&Pb.removeSingleLineCssComments(i),Pb.replacePseudoClassDefined(i),t.stylesheet=i):n.delete(e)}}async resolveFrameURLs(){if(!this.options.saveRawPage){const e=Array.from(this.doc.querySelectorAll('iframe, frame, object[type="text/html"][data]'));await Promise.all(e.map((async e=>{if("OBJECT"==e.tagName.toUpperCase())e.setAttribute("data","data:text/html,");else{const t=e.getAttribute("src");this.options.saveOriginalURLs&&t&&!$b(t)&&e.setAttribute("data-sf-original-src",t),e.removeAttribute("src"),e.removeAttribute("srcdoc")}Array.from(e.childNodes).forEach((e=>e.remove()));const t=e.getAttribute(nb.WIN_ID_ATTRIBUTE_NAME);if(this.options.frames&&t){const n=this.options.frames.find((e=>e.windowId==t));n&&await async function(e,t,n,r,a){a.insertSingleFileComment=!1,a.insertCanonicalLink=!1,a.insertMetaNoIndex=!1,a.saveFavicon=!1,a.includeInfobar=!1,a.url=e.baseURI,a.windowId=n,e.content&&(a.content=e.content,a.canvases=e.canvases,a.fonts=e.fonts,a.stylesheets=e.stylesheets,a.images=e.images,a.posters=e.posters,a.videos=e.videos,a.usedFonts=e.usedFonts,a.shadowRoots=e.shadowRoots,a.scrollPosition=e.scrollPosition,a.scrolling=e.scrolling,e.runner=new bb(a),e.frameElement=t,await e.runner.loadPage(),await e.runner.initialize(),e.maxResources=r.getMaxResources())}(n,e,t,this.batchRequest,Object.create(this.options))}})))}}insertShadowRootContents(){const e=this.doc,t=this.options;t.shadowRoots&&t.shadowRoots.length&&function n(r){Array.from(r.querySelectorAll("["+nb.SHADOW_ROOT_ATTRIBUTE_NAME+"]")).forEach((r=>{const a=r.getAttribute(nb.SHADOW_ROOT_ATTRIBUTE_NAME);if(a){const o=t.shadowRoots[Number(a)];if(o){const t=e.createElement("template");t.setAttribute(Eb,o.mode),o.adoptedStyleSheets&&o.adoptedStyleSheets.forEach((n=>{const r=e.createElement("style");r.textContent=n,t.appendChild(r)}));const a=nb.parseDocContent(o.content);if(a.head){const e=a.head.querySelector("meta[charset]");e&&e.remove(),a.head.childNodes.forEach((e=>t.appendChild(a.importNode(e,!0))))}a.body&&a.body.childNodes.forEach((e=>t.appendChild(a.importNode(e,!0)))),n(t),r.firstChild?r.insertBefore(t,r.firstChild):r.appendChild(t)}}}))}(this.doc)}removeUnusedStyles(){this.mediaAllInfo||(this.mediaAllInfo=nb.getMediaAllInfo(this.doc,this.stylesheets,this.styles));const e=nb.minifyCSSRules(this.stylesheets,this.styles,this.mediaAllInfo);this.stats.set("processed","CSS rules",e.processed),this.stats.set("discarded","CSS rules",e.discarded)}removeUnusedFonts(){nb.removeUnusedFonts(this.doc,this.stylesheets,this.styles,this.options)}removeAlternativeMedias(){const e=nb.minifyMedias(this.stylesheets);this.stats.set("processed","medias",e.processed),this.stats.set("discarded","medias",e.discarded)}async processStylesheets(){this.options.fontDeclarations=new Qf,await Promise.all([...this.stylesheets].map((([,e])=>Pb.processStylesheet(e.stylesheet.children,this.baseURI,this.options,this.cssVariables,this.batchRequest))))}async processStyleAttributes(){return Promise.all([...this.styles].map((([,e])=>Pb.processStyle(e,this.baseURI,this.options,this.cssVariables,this.batchRequest))))}async processPageResources(){this.options.blockImages&&this.doc.querySelectorAll("svg").forEach((e=>e.remove()));let e=[['link[href][rel*="icon"]',"href",!1,!0],['object[type="image/svg+xml"], object[type="image/svg-xml"], object[data*=".svg"]',"data"],["img[src], input[src][type=image]","src",!0],['embed[src*=".svg"]',"src"],["video[poster]","poster"],["*[background]","background"],["image","xlink:href"],["image","href"]].map((([e,t,n,r])=>Pb.processAttribute(this.doc.querySelectorAll(e),t,this.baseURI,this.options,"image",this.cssVariables,this.styles,this.batchRequest,n,r)));e.push(Pb.processAttribute(this.doc.querySelectorAll('object[data*=".pdf"]'),"data",this.baseURI,this.options,null,this.cssVariables,this.styles,this.batchRequest)),e.push(Pb.processAttribute(this.doc.querySelectorAll('embed[src*=".pdf"]'),"src",this.baseURI,this.options,null,this.cssVariables,this.styles,this.batchRequest)),e=e.concat([Pb.processXLinks(this.doc.querySelectorAll("use"),this.doc,this.baseURI,this.options,this.batchRequest),Pb.processSrcset(this.doc.querySelectorAll("img[srcset], source[srcset]"),this.baseURI,this.options,this.batchRequest)]),e.push(Pb.processAttribute(this.doc.querySelectorAll("audio[src], audio > source[src]"),"src",this.baseURI,this.options,"audio",this.cssVariables,this.styles,this.batchRequest)),e.push(Pb.processAttribute(this.doc.querySelectorAll("video[src], video > source[src]"),"src",this.baseURI,this.options,"video",this.cssVariables,this.styles,this.batchRequest)),await Promise.all(e),this.options.saveFavicon&&Pb.processShortcutIcons(this.doc)}async processScripts(){await Promise.all(Array.from(this.doc.querySelectorAll("script[src]")).map((async e=>{let t,n;if(n=e.getAttribute("src"),this.options.saveOriginalURLs&&!$b(n)&&e.setAttribute("data-sf-original-src",n),e.removeAttribute("integrity"),this.options.blockScripts)e.removeAttribute("src");else{e.textContent="";try{t=nb.resolveURL(n,this.baseURI)}catch(e){}if(Yb(t)){e.removeAttribute("src");const n=await nb.getContent(t,{asBinary:!0,charset:this.charset!=Tb&&this.charset,maxResourceSize:this.options.maxResourceSize,maxResourceSizeEnabled:this.options.maxResourceSizeEnabled,frameId:this.options.windowId,resourceReferrer:this.options.resourceReferrer,baseURI:this.options.baseURI,blockMixedContent:this.options.blockMixedContent,expectedType:"script",acceptHeaders:this.options.acceptHeaders,networkTimeout:this.options.networkTimeout});n.data=qb(t,n,this.options),e.setAttribute("src",n.data),"async"!=e.getAttribute("async")&&""!=e.getAttribute(nb.ASYNC_SCRIPT_ATTRIBUTE_NAME)||e.setAttribute("async","")}}this.stats.add("processed","scripts",1)})))}removeAlternativeImages(){nb.removeAlternativeImages(this.doc)}async removeAlternativeFonts(){await nb.removeAlternativeFonts(this.doc,this.stylesheets,this.options.fontDeclarations,this.options.fontTests)}async processFrames(){if(this.options.frames){const e=Array.from(this.doc.querySelectorAll('iframe, frame, object[type="text/html"][data]'));await Promise.all(e.map((async e=>{const t=e.getAttribute(nb.WIN_ID_ATTRIBUTE_NAME);if(t){const n=this.options.frames.find((e=>e.windowId==t));if(n)if(this.options.frames=this.options.frames.filter((e=>e.windowId!=t)),n.runner&&""!=e.getAttribute(nb.HIDDEN_FRAME_ATTRIBUTE_NAME)){this.stats.add("processed","frames",1),await n.runner.run();const t=await n.runner.getPageData();e.removeAttribute(nb.WIN_ID_ATTRIBUTE_NAME);let r="allow-popups allow-top-navigation allow-top-navigation-by-user-activation";(t.content.match(xb)||t.content.match(Ab)||t.content.match(vb))&&(r+=" allow-scripts allow-same-origin"),e.setAttribute("sandbox",r),"OBJECT"==e.tagName.toUpperCase()?e.setAttribute("data","data:text/html,"+t.content):"FRAME"==e.tagName.toUpperCase()?e.setAttribute("src","data:text/html,"+t.content.replace(/%/g,"%25").replace(/#/g,"%23")):(e.setAttribute("srcdoc",t.content),e.removeAttribute("src")),this.stats.addAll(t)}else e.removeAttribute(nb.WIN_ID_ATTRIBUTE_NAME),this.stats.add("discarded","frames",1)}})))}}replaceStylesheets(){this.doc.querySelectorAll("style").forEach((e=>{const t=this.stylesheets.get(e);t?(this.stylesheets.delete(e),e.textContent=Vb(t.stylesheet,this.options),t.mediaText&&(e.media=t.mediaText)):e.remove()})),this.doc.querySelectorAll("link[rel*=stylesheet]").forEach((e=>{const t=this.stylesheets.get(e);if(t){this.stylesheets.delete(e);const n=this.doc.createElement("style");t.mediaText&&(n.media=t.mediaText),n.textContent=Vb(t.stylesheet,this.options),e.parentElement.replaceChild(n,e)}else e.remove()}))}replaceStyleAttributes(){this.doc.querySelectorAll("[style]").forEach((e=>{const t=this.styles.get(e);t?(this.styles.delete(e),e.setAttribute("style",Vb(t,this.options))):e.setAttribute("style","")}))}insertVariables(){if(this.cssVariables.size){const e=this.doc.createElement("style"),t=this.doc.head.querySelector("style");t?this.doc.head.insertBefore(e,t):this.doc.head.appendChild(e);let n="";this.cssVariables.forEach((({content:e,url:t},r)=>{this.cssVariables.delete(r),n&&(n+=";"),n+=`${Lb+r}: `,this.options.saveOriginalURLs&&(n+=`/* original URL: ${t} */ `),n+=`url("${e}")`})),e.textContent=":root{"+n+"}"}}compressHTML(){let e;this.options.displayStats&&(e=nb.getContentSize(this.doc.documentElement.outerHTML)),nb.minifyHTML(this.doc,{PRESERVED_SPACE_ELEMENT_ATTRIBUTE_NAME:nb.PRESERVED_SPACE_ELEMENT_ATTRIBUTE_NAME}),this.options.displayStats&&this.stats.add("discarded","HTML bytes",e-nb.getContentSize(this.doc.documentElement.outerHTML))}cleanupPage(){this.doc.querySelectorAll("base").forEach((e=>e.remove()));const e=this.doc.head.querySelector("meta[charset]");e&&(this.doc.head.insertBefore(e,this.doc.head.firstChild),1==this.doc.head.querySelectorAll("*").length&&0==this.doc.body.childNodes.length&&this.doc.head.querySelector("meta[charset]").remove())}resetZoomLevel(){const e=this.doc.documentElement.style.getPropertyValue("-sf-transform"),t=this.doc.documentElement.style.getPropertyPriority("-sf-transform"),n=this.doc.documentElement.style.getPropertyValue("-sf-transform-origin"),r=this.doc.documentElement.style.getPropertyPriority("-sf-transform-origin"),a=this.doc.documentElement.style.getPropertyValue("-sf-min-height"),o=this.doc.documentElement.style.getPropertyPriority("-sf-min-height");this.doc.documentElement.style.setProperty("transform",e,t),this.doc.documentElement.style.setProperty("transform-origin",n,r),this.doc.documentElement.style.setProperty("min-height",a,o),this.doc.documentElement.style.removeProperty("-sf-transform"),this.doc.documentElement.style.removeProperty("-sf-transform-origin"),this.doc.documentElement.style.removeProperty("-sf-min-height")}async insertMAFFMetaData(){const e=await this.maffMetaDataPromise;if(e&&e.content){const t="http://www.w3.org/1999/02/22-rdf-syntax-ns#",n=nb.parseXMLContent(e.content),r=n.querySelector("RDF > Description > originalurl"),a=n.querySelector("RDF > Description > archivetime");if(r&&(this.options.saveUrl=r.getAttributeNS(t,"resource")),a){const e=a.getAttributeNS(t,"resource");if(e){const t=new Date(e);isNaN(t.getTime())||(this.options.saveDate=new Date(e))}}}}async setDocInfo(){const e=this.doc.querySelector("title"),t=this.doc.querySelector("meta[name=description]"),n=this.doc.querySelector("meta[name=author]"),r=this.doc.querySelector("meta[name=creator]"),a=this.doc.querySelector("meta[name=publisher]"),o=this.doc.querySelector("h1");this.options.title=e?e.textContent.trim():"",this.options.info={description:t&&t.content?t.content.trim():"",lang:this.doc.documentElement.lang,author:n&&n.content?n.content.trim():"",creator:r&&r.content?r.content.trim():"",publisher:a&&a.content?a.content.trim():"",heading:o&&o.textContent?o.textContent.trim():""},this.options.infobarContent=await nb.evalTemplate(this.options.infobarTemplate,this.options,null,!0)}}const Rb="data:",Ib="about:blank",_b=/(#.+?)$/,Lb="--sf-img-",zb=524288;class Pb{static setBackgroundImage(e,t,n){e.style.setProperty("background-blend-mode","normal","important"),e.style.setProperty("background-clip","content-box","important"),e.style.setProperty("background-position",n&&n["background-position"]?n["background-position"]:"center","important"),e.style.setProperty("background-color",n&&n["background-color"]?n["background-color"]:"transparent","important"),e.style.setProperty("background-image",t,"important"),e.style.setProperty("background-size",n&&n["background-size"]?n["background-size"]:"100% 100%","important"),e.style.setProperty("background-origin","content-box","important"),e.style.setProperty("background-repeat","no-repeat","important")}static processShortcutIcons(e){let t=Wb(Array.from(e.querySelectorAll('link[href][rel="shortcut icon"]')));t||(t=Wb(Array.from(e.querySelectorAll('link[href][rel="icon"]')))),t||(t=Wb(Array.from(e.querySelectorAll('link[href][rel*="icon"]'))),t&&(t.rel="shortcut icon")),t&&e.querySelectorAll('link[href][rel*="icon"]').forEach((e=>{e!=t&&e.remove()}))}static removeSingleLineCssComments(e){if(e.children){const t=[];for(let n=e.children.head;n;n=n.next){const e=n.data;"Raw"==e.type&&e.value&&e.value.trim().startsWith("//")&&t.push(n)}t.forEach((t=>e.children.remove(t)))}}static replacePseudoClassDefined(e){const t=[];if(e.children)for(let t=e.children.head;t;t=t.next){const e=t.data;if("Rule"==e.type&&e.prelude&&e.prelude.children)for(let t=e.prelude.children.head;t;t=t.next)n(t,e.prelude)}function n(e,r){if(e.data.children)for(let t=e.data.children.head;t;t=t.next)n(t,e);"PseudoClassSelector"==e.data.type&&"defined"==e.data.name&&t.push({parentSelector:r,selector:e})}t.length&&t.forEach((({parentSelector:e,selector:t})=>{0!=e.data.children.size&&t.prev&&"Combinator"!=t.prev.data.type&&"WhiteSpace"!=t.prev.data.type?e.data.children.remove(t):e.data.children.replace(t,rb.parse("*",{context:"selector"}).children.head)}))}static async resolveImportURLs(e,t,n,r,a=new Kf){let o;Pb.resolveStylesheetURLs(e,t,r);const i=(s=e,rb.findAll(s,(e=>"Atrule"==e.type&&"import"==e.name)));var s;return await Promise.all(i.map((async e=>{const i=rb.find(e,(e=>"Url"==e.type))||rb.find(e,(e=>"String"==e.type));if(i){let c=Fb(i.value);if(!Jb(c)&&Gb(c)){i.value=nb.EMPTY_RESOURCE;try{c=nb.resolveURL(c,t)}catch(e){}if(Yb(c)&&!a.has(c)){const t=await async function(e){const t=await nb.getContent(e,{maxResourceSize:n.maxResourceSize,maxResourceSizeEnabled:n.maxResourceSizeEnabled,validateTextContentType:!0,frameId:n.frameId,charset:n.charset,resourceReferrer:n.resourceReferrer,baseURI:n.baseURI,blockMixedContent:n.blockMixedContent,expectedType:"stylesheet",acceptHeaders:n.acceptHeaders,networkTimeout:n.networkTimeout});return jb(t.data,t.charset)||jb(t.data,n.charset)?t:(n=Object.assign({},n,{charset:Bb(t.data)}),nb.getContent(e,{maxResourceSize:n.maxResourceSize,maxResourceSizeEnabled:n.maxResourceSizeEnabled,validateTextContentType:!0,frameId:n.frameId,charset:n.charset,resourceReferrer:n.resourceReferrer,baseURI:n.baseURI,blockMixedContent:n.blockMixedContent,expectedType:"stylesheet",acceptHeaders:n.acceptHeaders,networkTimeout:n.networkTimeout}))}(c);c=t.resourceURL,t.data=qb(c,t,n),t.data&&t.data.match(/^<!doctype /i)&&(t.data="");const i=rb.find(e,(e=>"MediaQueryList"==e.type));i&&(t.data=(s=t.data,(l=rb.generate(i))?"@media "+l+"{ "+s+" }":s)),t.data=t.data.replace(/:defined/gi,"*");const u=rb.parse(t.data,{context:"stylesheet",parseCustomProperty:!0}),h=new Kf(a);h.add(c),await Pb.resolveImportURLs(u,c,n,r,h);for(let t of Object.keys(u))e[t]=u[t];o=!0}}}var s,l}))),o}static resolveStylesheetURLs(e,t,n){Hb(e).map((e=>{const r=e.value;let a=Fb(r);if(!Jb(a)&&(n.textContent='tmp { content:"'+a+'"}',n.sheet&&n.sheet.cssRules&&(a=nb.removeQuotes(n.sheet.cssRules[0].style.getPropertyValue("content"))),!Jb(a)))if(!a||Gb(a)){let n;if(!r.startsWith("#"))try{n=nb.resolveURL(a,t)}catch(e){}Yb(n)&&(e.value=n)}else e.value=nb.EMPTY_RESOURCE}))}static async resolveLinkStylesheetURLs(e,t,n,r){if((e=Fb(e))&&e!=t&&e!=Ib){const a=await nb.getContent(e,{maxResourceSize:n.maxResourceSize,maxResourceSizeEnabled:n.maxResourceSizeEnabled,charset:n.charset,frameId:n.frameId,resourceReferrer:n.resourceReferrer,validateTextContentType:!0,baseURI:t,blockMixedContent:n.blockMixedContent,expectedType:"stylesheet",acceptHeaders:n.acceptHeaders,networkTimeout:n.networkTimeout});if(!jb(a.data,a.charset)&&!jb(a.data,n.charset))return n=Object.assign({},n,{charset:Bb(a.data)}),Pb.resolveLinkStylesheetURLs(e,t,n,r);e=a.resourceURL,a.data=qb(a.resourceURL,a,n),a.data&&a.data.match(/^<!doctype /i)&&(a.data=""),a.data=a.data.replace(/:defined/gi,"*");let o=rb.parse(a.data,{context:"stylesheet",parseCustomProperty:!0});return await Pb.resolveImportURLs(o,e,n,r)&&(o=rb.parse(rb.generate(o),{context:"stylesheet",parseCustomProperty:!0})),o}}static async processStylesheet(e,t,n,r,a){const o=[],i=[];for(let l=e.head;l;l=l.next){const e=l.data;"Atrule"==e.type&&"charset"==e.name?i.push(l):e.block&&e.block.children&&("Rule"==e.type?o.push(this.processStyle(e,t,n,r,a)):"Atrule"!=e.type||"media"!=e.name&&"supports"!=e.name?"Atrule"==e.type&&"font-face"==e.name&&o.push(s(e)):o.push(this.processStylesheet(e.block.children,t,n,r,a)))}async function s(e){const r=Hb(e);await Promise.all(r.map((async e=>{const r=e.value;if(n.blockFonts)e.value=nb.EMPTY_RESOURCE;else{const o=Fb(r);if(!Jb(o)&&Yb(o)){let{content:i}=await a.addURL(o,{asBinary:!0,expectedType:"font",baseURI:t,blockMixedContent:n.blockMixedContent}),s=n.fontDeclarations.get(e);s||(s=[],n.fontDeclarations.set(e,s)),s.push(o),!$b(o)&&n.saveOriginalURLs?e.value="-sf-url-original("+Zf.stringify(r)+") "+i:e.value=i}}})))}i.forEach((t=>e.remove(t))),await Promise.all(o)}static async processStyle(e,t,n,r,a){const o=Hb(e);await Promise.all(o.map((async e=>{const t=e.value;if(n.blockImages)e.value=nb.EMPTY_RESOURCE;else{const o=Fb(t);if(!Jb(o)&&Yb(o)){let{content:i,indexResource:s,duplicate:l}=await a.addURL(o,{asBinary:!0,expectedType:"image",groupDuplicates:n.groupDuplicateImages});if(!t.startsWith("#")){const a=n.maxSizeDuplicateImages||zb;if(l&&n.groupDuplicateImages&&nb.getContentSize(i)<a){const n=rb.parse("var("+Lb+s+")",{context:"value"});for(let t of Object.keys(n.children.head.data))e[t]=n.children.head.data[t];r.set(s,{content:i,url:t})}else!$b(o)&&n.saveOriginalURLs?e.value="-sf-url-original("+Zf.stringify(t)+") "+i:e.value=i}}}})))}static async processAttribute(e,t,n,r,a,o,i,s,l,c){function u(e,t,n){"video"==n||"audio"==n?e.removeAttribute(t):e.setAttribute(t,nb.EMPTY_RESOURCE)}await Promise.all(Array.from(e).map((async e=>{let h=e.getAttribute(t);if(null!=h){h=Fb(h);let d=e.dataset.singleFileOriginURL;if(r.saveOriginalURLs&&!$b(h)&&e.setAttribute("data-sf-original-"+t,h),delete e.dataset.singleFileOriginURL,r["block"+a.charAt(0).toUpperCase()+a.substring(1)+"s"])u(e,t,a);else if(!Jb(h)&&(u(e,t,a),Gb(h))){try{h=nb.resolveURL(h,n)}catch(e){}if(Yb(h)){let{content:u,indexResource:p,duplicate:m}=await s.addURL(h,{asBinary:!0,expectedType:a,groupDuplicates:r.groupDuplicateImages&&"IMG"==e.tagName.toUpperCase()&&"src"==t});if(d&&u==nb.EMPTY_RESOURCE){try{d=nb.resolveURL(d,n)}catch(e){}try{h=d,u=(await nb.getContent(h,{asBinary:!0,expectedType:a,maxResourceSize:r.maxResourceSize,maxResourceSizeEnabled:r.maxResourceSizeEnabled,frameId:r.windowId,resourceReferrer:r.resourceReferrer,acceptHeaders:r.acceptHeaders,networkTimeout:r.networkTimeout})).data}catch(e){}}if(c&&u==nb.EMPTY_RESOURCE)e.remove();else if(u!==nb.EMPTY_RESOURCE){let n=wb.filter((e=>u.startsWith(e))).length;if("image"==a){if(n&&tb&&(n=await new Promise((e=>{const t=new tb,n=Xf((()=>e(!0)),100);function r(t){eb(n),e(t)}t.src=u,t.onload=()=>r(),t.onerror=()=>r(!0)}))),!n){const n=u.startsWith(kb),a=r.maxSizeDuplicateImages||zb;if(l&&m&&!n&&nb.getContentSize(u)<a)if(Pb.replaceImageSource(e,Lb+p,r)){o.set(p,{content:u,url:d});const t=rb.parse(e.getAttribute("style"),{context:"declarationList",parseCustomProperty:!0});i.set(e,t)}else e.setAttribute(t,u);else e.setAttribute(t,u)}}else e.setAttribute(t,u)}}}}})))}static async processXLinks(e,t,n,r,a){let o="xlink:href";await Promise.all(Array.from(e).map((async e=>{let t=e.getAttribute(o);null==t&&(o="href",t=e.getAttribute(o)),r.saveOriginalURLs&&!$b(t)&&e.setAttribute("data-sf-original-href",t);let i=Fb(t);if(r.blockImages)e.setAttribute(o,nb.EMPTY_RESOURCE);else if(Gb(i)&&!Jb(i)){e.setAttribute(o,nb.EMPTY_RESOURCE);try{i=nb.resolveURL(i,n)}catch(e){}if(Yb(i)){const r=t.match(_b);if(t.startsWith(n+"#"))e.setAttribute(o,r[0]);else{const t=await a.addURL(i,{expectedType:"image"}),n=nb.parseSVGContent(t.content);if(r&&r[0]){let t;try{t=n.querySelector(r[0])}catch(e){}t&&(e.setAttribute(o,r[0]),e.parentElement.insertBefore(t,e.parentElement.firstChild))}else{const t=await a.addURL(i,{expectedType:"image"});e.setAttribute(o,kb+","+t)}}}}else i==r.url&&e.setAttribute(o,t.substring(i.length))})))}static async processSrcset(e,t,n,r){await Promise.all(Array.from(e).map((async e=>{const a=e.getAttribute("srcset"),o=nb.parseSrcset(a);if(n.saveOriginalURLs&&!$b(a)&&e.setAttribute("data-sf-original-srcset",a),n.blockImages)e.setAttribute("srcset","");else{const n=await Promise.all(o.map((async e=>{let n=Fb(e.url);if(Jb(n))return n+(e.w?" "+e.w+"w":e.d?" "+e.d+"x":"");if(Gb(n)){try{n=nb.resolveURL(n,t)}catch(e){}if(Yb(n)){const{content:t}=await r.addURL(n,{asBinary:!0,expectedType:"image"});return wb.filter((e=>t.startsWith(e))).length?"":t+(e.w?" "+e.w+"w":e.d?" "+e.d+"x":"")}return""}return""})));e.setAttribute("srcset",n.join(", "))}})))}static replaceImageSource(e,t,n){if(e.getAttribute(nb.IMAGE_ATTRIBUTE_NAME)){const r=n.images[Number(e.getAttribute(nb.IMAGE_ATTRIBUTE_NAME))];if(r&&r.replaceable){e.setAttribute("src",`${kb},<svg xmlns="http://www.w3.org/2000/svg" width="${r.size.pxWidth}" height="${r.size.pxHeight}"><rect fill-opacity="0"/></svg>`);const n={};return("content"==r.objectFit||"cover"==r.objectFit)&&r.objectFit&&(n["background-size"]=r.objectFit),r.objectPosition&&(n["background-position"]=r.objectPosition),r.backgroundColor&&(n["background-color"]=r.backgroundColor),Pb.setBackgroundImage(e,"var("+t+")",n),e.removeAttribute(nb.IMAGE_ATTRIBUTE_NAME),!0}}}}const Nb="blob:",Mb=/^https?:\/\//,Ub=/^file:\/\//,Ob=/^https?:\/\/+\s*$/,Db=/^(https?:\/\/|file:\/\/|blob:).+/;function qb(e,t,n){return n.rootDocument&&n.updatedResources[e]?(n.updatedResources[e].retrieved=!0,n.updatedResources[e].content):t.data||""}function Fb(e){return!e||e.startsWith(Rb)?e:e.split("#")[0]}function jb(e,t=Tb){const n=Bb(e);return!n||n==t.toLowerCase()}function Bb(e){const t=e.match(/^@charset\s+"([^"]*)";/i);if(t&&t[1])return t[1].toLowerCase().trim()}function Hb(e){return rb.findAll(e,(e=>"Url"==e.type))}function Vb(e,t){let n=rb.generate(e);return t.compressCSS&&(n=nb.compressCSS(n)),t.saveOriginalURLs&&(n=function(e){return e.replace(/url\(-sf-url-original\\\(\\"(.*?)\\"\\\)\\ /g,"/* original URL: $1 */url(")}(n)),n}function Wb(e){return(e=e.filter((e=>e.href!=nb.EMPTY_RESOURCE))).sort(((e,t)=>(parseInt(t.sizes,10)||16)-(parseInt(e.sizes,10)||16))),e[0]}function $b(e){return e&&(e.startsWith(Rb)||e.startsWith(Nb))}function Jb(e){return e&&(e.startsWith(Rb)||e==Ib)}function Gb(e){return e&&!e.match(Ob)}function Yb(e){return Gb(e)&&(e.match(Mb)||e.match(Ub)||e.startsWith(Nb))&&e.match(Db)}const Kb={discarded:{"HTML bytes":0,"hidden elements":0,scripts:0,objects:0,"audio sources":0,"video sources":0,frames:0,"CSS rules":0,canvas:0,stylesheets:0,resources:0,medias:0},processed:{"HTML bytes":0,"hidden elements":0,scripts:0,objects:0,"audio sources":0,"video sources":0,frames:0,"CSS rules":0,canvas:0,stylesheets:0,resources:0,medias:0}};class Qb{constructor(e){this.options=e,e.displayStats&&(this.data=Zf.parse(Zf.stringify(Kb)))}set(e,t,n){this.options.displayStats&&(this.data[e][t]=n)}add(e,t,n){this.options.displayStats&&(this.data[e][t]+=n)}addAll(e){this.options.displayStats&&(Object.keys(this.data.discarded).forEach((t=>this.add("discarded",t,e.stats.discarded[t]||0))),Object.keys(this.data.processed).forEach((t=>this.add("processed",t,e.stats.processed[t]||0))))}}const Zb=1048576,Xb="text/",ey=["~","+","\\\\","?","%","*",":","|",'"',"<",">","\0-",""],ty="_",ny=globalThis.URL,ry=globalThis.DOMParser,ay=globalThis.Blob,oy=globalThis.FileReader,iy=(e,t)=>globalThis.fetch(e,t),sy=globalThis.crypto,ly=globalThis.TextDecoder,cy=globalThis.TextEncoder;function uy(e){return(e=e||{}).fetch=e.fetch||iy,e.frameFetch=e.frameFetch||e.fetch||iy,{getContent:async function(t,n){let r,a,o,i;const s=e.fetch,l=e.frameFetch;if(n.blockMixedContent&&/^https:/i.test(n.baseURI)&&!/^https:/i.test(t))return hy(t,n);o=n.networkTimeout?new Promise(((e,t)=>{i=e,a=globalThis.setTimeout((()=>t(new Error("network timeout"))),n.networkTimeout)})):new Promise((e=>{i=e}));try{const e=n.acceptHeaders?n.acceptHeaders[n.expectedType]:"*/*";if(n.frameId)try{r=await Promise.race([l(t,{frameId:n.frameId,referrer:n.resourceReferrer,headers:{accept:e}}),o])}catch(n){r=await Promise.race([s(t,{headers:{accept:e}}),o])}else r=await Promise.race([s(t,{referrer:n.resourceReferrer,headers:{accept:e}}),o])}catch(e){return hy(t,n)}finally{i(),n.networkTimeout&&globalThis.clearTimeout(a)}let c;try{c=await r.arrayBuffer()}catch(e){return{data:n.asBinary?me:"",resourceURL:t}}t=r.url||t;let u,h="";try{const e=new Dm(r.headers.get("content-type"));h=e.type+"/"+e.subtype,u=e.parameters.get("charset")}catch(e){}h||(h=function(e,t){if("image"==e){if(n([255,255,255,255],[0,0,1,0]))return"image/x-icon";if(n([255,255,255,255],[0,0,2,0]))return"image/x-icon";if(n([255,255],[78,77]))return"image/bmp";if(n([255,255,255,255,255,255],[71,73,70,56,57,97]))return"image/gif";if(n([255,255,255,255,255,255],[71,73,70,56,59,97]))return"image/gif";if(n([255,255,255,255,0,0,0,0,255,255,255,255,255,255],[82,73,70,70,0,0,0,0,87,69,66,80,86,80]))return"image/webp";if(n([255,255,255,255,255,255,255,255],[137,80,78,71,13,10,26,10]))return"image/png";if(n([255,255,255],[255,216,255]))return"image/jpeg"}if("font"==e){if(n([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,76,80]))return"application/vnd.ms-fontobject";if(n([255,255,255,255],[0,1,0,0]))return"font/ttf";if(n([255,255,255,255],[79,84,84,79]))return"font/otf";if(n([255,255,255,255],[116,116,99,102]))return"font/collection";if(n([255,255,255,255],[119,79,70,70]))return"font/woff";if(n([255,255,255,255],[119,79,70,50]))return"font/woff2"}function n(e,n){let r=!0,a=0;if(t.byteLength>=n.length){const o=new Uint8Array(t,0,e.length);for(a=0;a<e.length&&r;a++)r=r&&(o[a]&e[a])==n[a];return r}}}(n.expectedType,c));!u&&n.charset&&(u=n.charset);if(n.asBinary){if(r.status>=400)return hy(t,n);try{return n.maxResourceSizeEnabled&&c.byteLength>n.maxResourceSize*Zb?hy(t,n):hy(t,n,c,null,h)}catch(e){return hy(t,n)}}else{if(r.status>=400||n.validateTextContentType&&h&&!h.startsWith(Xb))return hy(t,n);if(u||(u="utf-8"),n.maxResourceSizeEnabled&&c.byteLength>n.maxResourceSize*Zb)return hy(t,n,null,u);try{return hy(t,n,c,u,h)}catch(e){return hy(t,n,null,u)}}},parseURL:(e,t)=>void 0===t?new ny(e):new ny(e,t),resolveURL(e,t){return this.parseURL(e,t).href},getSearchParams:e=>Array.from(new URLSearchParams(e)),getValidFilename:(e,t=ey,n=ty)=>(t.forEach((t=>e=e.replace(new RegExp("["+t+"]+","g"),n))),e=e.replace(/\.\.\//g,"").replace(/^\/+/,"").replace(/\/+/g,"/").replace(/\/$/,"").replace(/\.$/,"").replace(/\.\//g,"."+n).replace(/\/\./g,"/"+n)),parseDocContent(e,t){const n=(new ry).parseFromString(e,"text/html");n.head||n.documentElement.insertBefore(n.createElement("HEAD"),n.body);let r=n.querySelector("base");return r&&r.getAttribute("href")||(r&&r.remove(),r=n.createElement("base"),r.setAttribute("href",t),n.head.insertBefore(r,n.head.firstChild)),n},parseXMLContent:e=>(new ry).parseFromString(e,"text/xml"),parseSVGContent(e){const t=(new ry).parseFromString(e,"image/svg+xml");return t.querySelector("parsererror")?(new ry).parseFromString(e,"text/html"):t},async digest(e,t){try{return function(e){const t=[],n=new DataView(e);for(let e=0;e<n.byteLength;e+=4){const r="00000000",a=(r+n.getUint32(e).toString(16)).slice(-r.length);t.push(a)}return t.join("")}(await sy.subtle.digest(e,new cy("utf-8").encode(t)))}catch(e){return""}},getContentSize:e=>new ay([e]).size,formatFilename(e,t){return Wf(e,t,this)},evalTemplate(e,t,n,r){return $f(e,t,this,n,r)},minifyHTML:(e,t)=>Sf(e,t),minifyCSSRules:(e,t,n)=>of(e,t,n),removeUnusedFonts:(e,t,n,r)=>kg(e,t,n,r),removeAlternativeFonts:(e,t,n,r)=>og(e,t,n,r),getMediaAllInfo:(e,t,n)=>Bg(e,t,n),compressCSS:(e,t)=>Lm(e,t),minifyMedias:e=>ef(e),removeAlternativeImages:e=>hf(e),parseSrcset:e=>Pm(e),preProcessDoc:(e,t,n)=>ye(e,t,n),postProcessDoc(e,t,n){Se(e,t,n)},serialize:(e,t)=>Uf(e,t),removeQuotes:e=>Ie(e),appendInfobar:(e,t)=>xe(e,t),ON_BEFORE_CAPTURE_EVENT_NAME:O,ON_AFTER_CAPTURE_EVENT_NAME:D,WIN_ID_ATTRIBUTE_NAME:J,REMOVED_CONTENT_ATTRIBUTE_NAME:j,HIDDEN_CONTENT_ATTRIBUTE_NAME:B,HIDDEN_FRAME_ATTRIBUTE_NAME:V,IMAGE_ATTRIBUTE_NAME:G,POSTER_ATTRIBUTE_NAME:Y,VIDEO_ATTRIBUTE_NAME:K,CANVAS_ATTRIBUTE_NAME:Q,STYLE_ATTRIBUTE_NAME:Z,INPUT_VALUE_ATTRIBUTE_NAME:X,SHADOW_ROOT_ATTRIBUTE_NAME:$,PRESERVED_SPACE_ELEMENT_ATTRIBUTE_NAME:W,STYLESHEET_ATTRIBUTE_NAME:te,SELECTED_CONTENT_ATTRIBUTE_NAME:re,INVALID_ELEMENT_ATTRIBUTE_NAME:ae,COMMENT_HEADER:he,COMMENT_HEADER_LEGACY:de,SINGLE_FILE_UI_ELEMENT_CLASS:pe,EMPTY_RESOURCE:me}}async function hy(e,t,n,r,a){if(n)if(t.asBinary){const e=new oy;e.readAsDataURL(new ay([n],{type:a+(t.charset?";charset="+t.charset:"")})),n=await new Promise(((t,n)=>{e.addEventListener("load",(()=>t(e.result)),!1),e.addEventListener("error",n,!1)}))}else{const e=new Uint8Array(n.slice(0,4));132==e[0]&&49==e[1]&&149==e[2]&&51==e[3]?r="gb18030":255==e[0]&&254==e[1]?r="utf-16le":254==e[0]&&255==e[1]&&(r="utf-16be");try{n=new ly(r).decode(n)}catch(e){n=new ly(r="utf-8").decode(n)}n=n.replace(/\ufeff/gi,"")}else n=t.asBinary?me:"";return{data:n,resourceURL:e,charset:r}}function dy(t){void 0===e.SingleFile&&(e.SingleFile=function(...e){return[nb,rb]=e,ab}(uy(t),Gd))}e.SingleFile=void 0,e.getPageData=async function(t={},n,r=globalThis.document,a=globalThis){const o=Nt;let i;if(dy(n),r&&a){be(r);const e=[];if(!t.saveRawPage){let n;if(t.loadDeferredImages&&(n=Ve(t),t.loadDeferredImagesBeforeFrames&&await n),!t.removeFrames&&o&&globalThis.frames){let n;n=t.loadDeferredImages?new Promise((e=>globalThis.setTimeout((()=>e(o.getAsync(t))),t.loadDeferredImagesBeforeFrames?0:t.loadDeferredImagesMaxIdleTime))):o.getAsync(t),t.loadDeferredImagesBeforeFrames?t.frames=await n:e.push(n)}t.loadDeferredImages&&!t.loadDeferredImagesBeforeFrames&&e.push(n)}t.loadDeferredImagesBeforeFrames||([t.frames]=await Promise.all(e)),i=t.frames&&t.frames.sessionId}t.doc=r,t.win=a,t.insertCanonicalLink=!0,t.onprogress=e=>{e.type===e.RESOURCES_INITIALIZED&&r&&a&&t.loadDeferredImages&&We(t)};const s=new e.SingleFile(t);return await s.run(),i&&o.cleanup(i),await s.getPageData()},e.helper=Pe,e.init=dy,e.modules=Yf,e.processors=Mt,e.vendor=qm,Object.defineProperty(e,"__esModule",{value:!0})}));
|