From 999976a20afb51a18da4abb42f434eac99796e84 Mon Sep 17 00:00:00 2001 From: Gildas Date: Sat, 22 Oct 2022 15:09:02 +0200 Subject: [PATCH] bump version --- lib/single-file.js | 2 +- manifest.json | 2 +- package-lock.json | 4 ++-- package.json | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/single-file.js b/lib/single-file.js index 69d68b424..d3917aac1 100644 --- a/lib/single-file.js +++ b/lib/single-file.js @@ -1 +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-image",r="single-file-image-loaded",n=(e,t,r)=>globalThis.addEventListener(e,t,r),o=e=>{try{globalThis.dispatchEvent(e)}catch(e){}},i=globalThis.CustomEvent,a=globalThis.document,s=globalThis.Document;let l;function c(){return Array.from(l.values())}function u(e){e.loadDeferredImagesBlockCookies&&o(new i("single-file-block-cookies-start")),e.loadDeferredImagesBlockStorage&&o(new i("single-file-block-storage-start")),e.loadDeferredImagesDispatchScrollEvent&&o(new i("single-file-dispatch-scroll-event-start")),e.loadDeferredImagesKeepZoomLevel?o(new i("single-file-load-deferred-images-keep-zoom-level-start")):o(new i("single-file-load-deferred-images-start"))}function h(e){e.loadDeferredImagesBlockCookies&&o(new i("single-file-block-cookies-end")),e.loadDeferredImagesBlockStorage&&o(new i("single-file-block-storage-end")),e.loadDeferredImagesDispatchScrollEvent&&o(new i("single-file-dispatch-scroll-event-end")),e.loadDeferredImagesKeepZoomLevel?o(new i("single-file-load-deferred-images-keep-zoom-level-end")):o(new i("single-file-load-deferred-images-end"))}function d(e){e.loadDeferredImagesKeepZoomLevel?o(new i("single-file-load-deferred-images-keep-zoom-level-reset")):o(new i("single-file-load-deferred-images-reset"))}l=window._singleFile_fontFaces?window._singleFile_fontFaces:window._singleFile_fontFaces=new Map,a instanceof s&&(n("single-file-new-font-face",(e=>{const t=e.detail,r=Object.assign({},t);delete r.src,l.set(JSON.stringify(r),t)})),n("single-file-delete-font",(e=>{const t=e.detail,r=Object.assign({},t);delete r.src,l.delete(JSON.stringify(r))})),n("single-file-clear-fonts",(()=>l=new Map)));var p=Object.freeze({__proto__:null,getFontsData:c,loadDeferredImagesStart:u,loadDeferredImagesEnd:h,loadDeferredImagesResetZoomLevel:d,LOAD_IMAGE_EVENT:t,IMAGE_LOADED_EVENT:r});const m=new RegExp("\\\\([\\da-f]{1,6}[\\x20\\t\\r\\n\\f]?|([\\x20\\t\\r\\n\\f])|.)","ig");function f(e){return e.replace(m,((e,t,r)=>{const n="0x"+t-65536;return n!=n||r?t:n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320)}))}var g=Object.freeze({__proto__:null,process:f});const y="single-file-on-before-capture",b="single-file-on-after-capture",k="data-single-file-removed-content",v="data-single-file-hidden-content",w="data-single-file-kept-content",x="data-single-file-hidden-frame",E="data-single-file-preserved-space-element",A="data-single-file-shadow-root-element",S="data-single-file-win-id",T="data-single-file-image",C="data-single-file-poster",R="data-single-file-video",_="data-single-file-canvas",I="data-single-file-movable-style",L="data-single-file-input-value",N="data-single-file-lazy-loaded-src",z="data-single-file-stylesheet",P="data-single-file-disabled-noscript",M="data-single-file-selected-content",O="data-single-file-invalid-element",U="data-single-file-async-script",D="*:not(base):not(link):not(meta):not(noscript):not(script):not(style):not(template):not(title)",F=["NOSCRIPT","DISABLED-NOSCRIPT","META","LINK","STYLE","TITLE","TEMPLATE","SOURCE","OBJECT","SCRIPT","HEAD","BODY"],q=/^'(.*?)'$/,B=/^"(.*?)"$/,j={regular:"400",normal:"400",bold:"700",bolder:"700",lighter:"100"},H="Page saved with SingleFile",V="Archive processed by SingleFile",W="single-file-ui-element",$="data:,",G=(e,t,r)=>globalThis.addEventListener(e,t,r);function Y(e){e.querySelectorAll("meta[http-equiv=refresh]").forEach((e=>{e.removeAttribute("http-equiv"),e.setAttribute("disabled-http-equiv","refresh")}))}function J(e,t,r){e.querySelectorAll("noscript:not([data-single-file-disabled-noscript])").forEach((e=>{e.setAttribute(P,e.textContent),e.textContent=""})),Y(e),e.head&&e.head.querySelectorAll(D).forEach((e=>e.hidden=!0)),e.querySelectorAll("svg foreignObject").forEach((e=>{const t=e.querySelectorAll("html > head > "+D+", html > body > "+D);t.length&&(Array.from(e.childNodes).forEach((e=>e.remove())),t.forEach((t=>e.appendChild(t))))}));const n=new Map;let o;return t&&e.documentElement?(e.querySelectorAll("button button, a a, p div").forEach((t=>{const r=e.createElement("template");r.setAttribute(O,""),r.content.appendChild(t.cloneNode(!0)),n.set(t,r),t.replaceWith(r)})),o=Q(t,e,e.documentElement,r),r.moveStylesInHead&&e.querySelectorAll("body style, body ~ style").forEach((e=>{const r=le(t,e);r&&ee(e,r)&&(e.setAttribute(I,""),o.markedElements.push(e))}))):o={canvases:[],images:[],posters:[],videos:[],usedFonts:[],shadowRoots:[],markedElements:[]},{canvases:o.canvases,fonts:c(),stylesheets:re(e),images:o.images,posters:o.posters,videos:o.videos,usedFonts:Array.from(o.usedFonts.values()),shadowRoots:o.shadowRoots,referrer:e.referrer,markedElements:o.markedElements,invalidElements:n}}function Q(e,t,r,n,o={usedFonts:new Map,canvases:[],images:[],posters:[],videos:[],shadowRoots:[],markedElements:[]},i){return Array.from(r.childNodes).filter((t=>t instanceof e.HTMLElement||t instanceof e.SVGElement)).forEach((r=>{let a,s,l;if(!n.autoSaveExternalSave&&(n.removeHiddenElements||n.removeUnusedFonts||n.compressHTML)&&(l=le(e,r),r instanceof e.HTMLElement&&n.removeHiddenElements&&(s=(i||r.closest("html > head"))&&F.includes(r.tagName)||r.closest("details"),s||(a=i||ee(r,l),a&&(r.setAttribute(v,""),o.markedElements.push(r)))),!a)){if(n.compressHTML&&l){const e=l.getPropertyValue("white-space");e&&e.startsWith("pre")&&(r.setAttribute(E,""),o.markedElements.push(r))}n.removeUnusedFonts&&(K(l,n,o.usedFonts),K(le(e,r,":first-letter"),n,o.usedFonts),K(le(e,r,":before"),n,o.usedFonts),K(le(e,r,":after"),n,o.usedFonts))}!function(e,t,r,n,o,i,a){if("CANVAS"==r.tagName)try{o.canvases.push({dataURI:r.toDataURL("image/png","")}),r.setAttribute(_,o.canvases.length-1),o.markedElements.push(r)}catch(e){}if("IMG"==r.tagName){const t={currentSrc:i?$:n.loadDeferredImages&&r.getAttribute(N)||r.currentSrc};if(o.images.push(t),r.setAttribute(T,o.images.length-1),o.markedElements.push(r),r.removeAttribute(N),a=a||le(e,r)){t.size=function(e,t,r){let n=t.naturalWidth,o=t.naturalHeight;if(!n&&!o){const i=null==t.getAttribute("style");if(r=r||le(e,t)){let e,a,s,l,c,u,h,d,p=!1;if("content-box"==r.getPropertyValue("box-sizing")){const e=t.style.getPropertyValue("box-sizing"),r=t.style.getPropertyPriority("box-sizing"),n=t.clientWidth;t.style.setProperty("box-sizing","border-box","important"),p=t.clientWidth!=n,e?t.style.setProperty("box-sizing",e,r):t.style.removeProperty("box-sizing")}e=ne("padding-left",r),a=ne("padding-right",r),s=ne("padding-top",r),l=ne("padding-bottom",r),p?(c=ne("border-left-width",r),u=ne("border-right-width",r),h=ne("border-top-width",r),d=ne("border-bottom-width",r)):c=u=h=d=0,n=Math.max(0,t.clientWidth-e-a-c-u),o=Math.max(0,t.clientHeight-s-l-h-d),i&&t.removeAttribute("style")}}return{pxWidth:n,pxHeight:o}}(e,r,a);const n=a.getPropertyValue("box-shadow"),o=a.getPropertyValue("background-image");n&&"none"!=n||o&&"none"!=o||!(t.size.pxWidth>1||t.size.pxHeight>1)||(t.replaceable=!0,t.backgroundColor=a.getPropertyValue("background-color"),t.objectFit=a.getPropertyValue("object-fit"),t.boxSizing=a.getPropertyValue("box-sizing"),t.objectPosition=a.getPropertyValue("object-position"))}}if("VIDEO"==r.tagName){const n=r.currentSrc;if(n&&!n.startsWith("blob:")&&!n.startsWith("data:")){const t=le(e,r.parentNode);o.videos.push({positionParent:t&&t.getPropertyValue("position"),src:n,size:{pxWidth:r.clientWidth,pxHeight:r.clientHeight},currentTime:r.currentTime}),r.setAttribute(R,o.videos.length-1)}if(!r.poster){const e=t.createElement("canvas"),n=e.getContext("2d");e.width=r.clientWidth,e.height=r.clientHeight;try{n.drawImage(r,0,0,e.width,e.height),o.posters.push(e.toDataURL("image/png","")),r.setAttribute(C,o.posters.length-1),o.markedElements.push(r)}catch(e){}}}"IFRAME"==r.tagName&&i&&n.removeHiddenElements&&(r.setAttribute(x,""),o.markedElements.push(r));"INPUT"==r.tagName&&("password"!=r.type&&(r.setAttribute(L,r.value),o.markedElements.push(r)),"radio"!=r.type&&"checkbox"!=r.type||(r.setAttribute(L,r.checked),o.markedElements.push(r)));"TEXTAREA"==r.tagName&&(r.setAttribute(L,r.value),o.markedElements.push(r));"SELECT"==r.tagName&&r.querySelectorAll("option").forEach((e=>{e.selected&&(e.setAttribute(L,""),o.markedElements.push(e))}));"SCRIPT"==r.tagName&&(r.async&&""!=r.getAttribute("async")&&"async"!=r.getAttribute("async")&&(r.setAttribute(U,""),o.markedElements.push(r)),r.textContent=r.textContent.replace(/<\/script>/gi,"<\\/script>"))}(e,t,r,n,o,a,l);const c=!(r instanceof e.SVGElement)&&Z(r);if(c&&!r.classList.contains(W)){const i={};r.setAttribute(A,o.shadowRoots.length),o.markedElements.push(r),o.shadowRoots.push(i),Q(e,t,c,n,o,a),i.content=c.innerHTML,i.mode=c.mode;try{c.adoptedStyleSheets&&c.adoptedStyleSheets.length&&(i.adoptedStyleSheets=Array.from(c.adoptedStyleSheets).map((e=>Array.from(e.cssRules).map((e=>e.cssText)).join("\n"))))}catch(e){}}Q(e,t,r,n,o,a),!n.autoSaveExternalSave&&n.removeHiddenElements&&i&&(s||""==r.getAttribute(w)?r.parentElement&&(r.parentElement.setAttribute(w,""),o.markedElements.push(r.parentElement)):a&&(r.setAttribute(k,""),o.markedElements.push(r)))})),o}function K(e,t,r){if(e){const n=e.getPropertyValue("font-style")||"normal";e.getPropertyValue("font-family").split(",").forEach((o=>{if(o=X(o),!t.loadedFonts||t.loadedFonts.find((e=>X(e.family)==o&&e.style==n))){const t=ae(e.getPropertyValue("font-weight")),i=e.getPropertyValue("font-variant")||"normal",a=[o,t,n,i];r.set(JSON.stringify(a),[o,t,n,i])}}))}}function Z(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 X(e=""){return ie(f(e.trim())).toLowerCase()}function ee(e,t){let r=!1;if(t){const n=t.getPropertyValue("display"),o=t.getPropertyValue("opacity"),i=t.getPropertyValue("visibility");if(r="none"==n,!r&&("0"==o||"hidden"==i)&&e.getBoundingClientRect){const t=e.getBoundingClientRect();r=!t.width&&!t.height}}return Boolean(r)}function te(e,t,r){if(e.querySelectorAll("[data-single-file-disabled-noscript]").forEach((e=>{e.textContent=e.getAttribute(P),e.removeAttribute(P)})),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 r=[k,x,v,E,T,C,R,_,L,A,z,U];t=e.querySelectorAll(r.map((e=>"["+e+"]")).join(","))}t.forEach((e=>{e.removeAttribute(k),e.removeAttribute(v),e.removeAttribute(w),e.removeAttribute(x),e.removeAttribute(E),e.removeAttribute(T),e.removeAttribute(C),e.removeAttribute(R),e.removeAttribute(_),e.removeAttribute(L),e.removeAttribute(A),e.removeAttribute(z),e.removeAttribute(U),e.removeAttribute(I)})),r&&Array.from(r.entries()).forEach((([e,t])=>t.replaceWith(e)))}function re(e){if(e){const t=[];return e.querySelectorAll("style").forEach(((r,n)=>{try{const o=e.createElement("style");o.textContent=r.textContent,e.body.appendChild(o);const i=o.sheet;o.remove(),i&&i.cssRules.length==r.sheet.cssRules.length||(r.setAttribute(z,n),t[n]=Array.from(r.sheet.cssRules).map((e=>e.cssText)).join("\n"))}catch(e){}})),t}}function ne(e,t){if(t.getPropertyValue(e).endsWith("px"))return parseFloat(t.getPropertyValue(e))}function oe(e){const t=e.doctype;let r="";return t&&(r=" "),r+e.documentElement.outerHTML}function ie(e){return(e=e.match(q)?e.replace(q,"$1"):e.replace(B,"$1")).trim()}function ae(e){return j[e.toLowerCase().trim()]||e}function se(e){return e.flat?e.flat():e.reduce(((e,t)=>e.concat(Array.isArray(t)?se(t):t)),[])}function le(e,t,r){try{return e.getComputedStyle(t,r)}catch(e){}}var ce=Object.freeze({__proto__:null,initUserScriptHandler:function(){G("single-file-user-script-init",(()=>globalThis._singleFile_waitForUserScript=async e=>{const t=new CustomEvent(e+"-request",{cancelable:!0}),r=new Promise((t=>G(e+"-response",t)));(e=>{try{globalThis.dispatchEvent(e)}catch(e){}})(t),t.defaultPrevented&&await r}))},initDoc:Y,preProcessDoc:J,postProcessDoc:te,serialize:oe,removeQuotes:ie,flatten:se,getFontWeight:ae,normalizeFontFamily:X,getShadowRoot:Z,ON_BEFORE_CAPTURE_EVENT_NAME:y,ON_AFTER_CAPTURE_EVENT_NAME:b,WIN_ID_ATTRIBUTE_NAME:S,PRESERVED_SPACE_ELEMENT_ATTRIBUTE_NAME:E,REMOVED_CONTENT_ATTRIBUTE_NAME:k,HIDDEN_CONTENT_ATTRIBUTE_NAME:v,HIDDEN_FRAME_ATTRIBUTE_NAME:x,IMAGE_ATTRIBUTE_NAME:T,POSTER_ATTRIBUTE_NAME:C,VIDEO_ATTRIBUTE_NAME:R,CANVAS_ATTRIBUTE_NAME:_,INPUT_VALUE_ATTRIBUTE_NAME:L,SHADOW_ROOT_ATTRIBUTE_NAME:A,STYLE_ATTRIBUTE_NAME:I,LAZY_SRC_ATTRIBUTE_NAME:N,STYLESHEET_ATTRIBUTE_NAME:z,SELECTED_CONTENT_ATTRIBUTE_NAME:M,INVALID_ELEMENT_ATTRIBUTE_NAME:O,ASYNC_SCRIPT_ATTRIBUTE_NAME:U,COMMENT_HEADER:H,COMMENT_HEADER_LEGACY:V,SINGLE_FILE_UI_ELEMENT_CLASS:W,EMPTY_RESOURCE:$});const ue=N,he=W,de="attributes",pe=globalThis.browser,me=globalThis.document,fe=globalThis.MutationObserver,ge=(e,t,r)=>globalThis.addEventListener(e,t,r),ye=(e,t,r)=>globalThis.removeEventListener(e,t,r),be=new Map;let ke;async function ve(e){if(me.documentElement){be.clear();const n=Math.max(me.documentElement.scrollHeight-1.5*me.documentElement.clientHeight,0),o=Math.max(me.documentElement.scrollWidth-1.5*me.documentElement.clientWidth,0);if(globalThis.scrollY<=n&&globalThis.scrollX<=o)return function(e){return ke=0,new Promise((async n=>{let o;const i=new Set,a=new fe((async t=>{if((t=t.filter((e=>e.type==de))).length){t.filter((e=>{if("src"==e.attributeName&&(e.target.setAttribute(ue,e.target.src),e.target.addEventListener("load",l)),"src"==e.attributeName||"srcset"==e.attributeName||"SOURCE"==e.target.tagName)return!e.target.classList||!e.target.classList.contains(he)})).length&&(o=!0,await Ee(a,e,d),i.size||await xe(a,e,d))}}));async function s(t){await Se("idleTimeout",(async()=>{o?ke<10&&(ke++,Ce("idleTimeout"),await s(Math.max(500,t/2))):(Ce("loadTimeout"),Ce("maxTimeout"),Ae(a,e,d))}),t,e.loadDeferredImagesNativeTimeout)}function l(e){const t=e.target;t.removeAttribute(ue),t.removeEventListener("load",l)}async function c(t){o=!0,await Ee(a,e,d),await xe(a,e,d),t.detail&&i.add(t.detail)}async function h(t){await Ee(a,e,d),await xe(a,e,d),i.delete(t.detail),i.size||await xe(a,e,d)}function d(e){a.disconnect(),ye(t,c),ye(r,h),n(e)}await s(2*e.loadDeferredImagesMaxIdleTime),await Ee(a,e,d),a.observe(me,{subtree:!0,childList:!0,attributes:!0}),ge(t,c),ge(r,h),u(e)}))}(e)}}function we(e){d(e)}async function xe(e,t,r){await Se("loadTimeout",(()=>Ae(e,t,r)),t.loadDeferredImagesMaxIdleTime,t.loadDeferredImagesNativeTimeout)}async function Ee(e,t,r){await Se("maxTimeout",(async()=>{await Ce("loadTimeout"),await Ae(e,t,r)}),10*t.loadDeferredImagesMaxIdleTime,t.loadDeferredImagesNativeTimeout)}async function Ae(e,t,r){await Ce("idleTimeout"),h(t),await Se("endTimeout",(async()=>{await Ce("maxTimeout"),r()}),t.loadDeferredImagesMaxIdleTime/2,t.loadDeferredImagesNativeTimeout),e.disconnect()}async function Se(e,t,r,n){if(pe&&pe.runtime&&pe.runtime.sendMessage&&!n){if(!be.get(e)||!be.get(e).pending){const n={callback:t,pending:!0};be.set(e,n);try{await pe.runtime.sendMessage({method:"singlefile.lazyTimeout.setTimeout",type:e,delay:r})}catch(n){Te(e,t,r)}n.pending=!1}}else Te(e,t,r)}function Te(e,t,r){const n=be.get(e);n&&globalThis.clearTimeout(n),be.set(e,t),globalThis.setTimeout(t,r)}async function Ce(e){if(pe&&pe.runtime&&pe.runtime.sendMessage)try{await pe.runtime.sendMessage({method:"singlefile.lazyTimeout.clearTimeout",type:e})}catch(t){Re(e)}else Re(e)}function Re(e){const t=be.get(e);be.delete(e),t&&globalThis.clearTimeout(t)}pe&&pe.runtime&&pe.runtime.onMessage&&pe.runtime.onMessage.addListener&&pe.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){Re(e.type)}}}}));var _e=Object.freeze({__proto__:null,process:ve,resetZoomLevel:we});const Ie={ON_BEFORE_CAPTURE_EVENT_NAME:y,ON_AFTER_CAPTURE_EVENT_NAME:b,WIN_ID_ATTRIBUTE_NAME:S,preProcessDoc:J,serialize:oe,postProcessDoc:te,getShadowRoot:Z},Le="__frameTree__::",Ne='iframe, frame, object[type="text/html"][data]',ze="singlefile.frameTree.initRequest",Pe="singlefile.frameTree.ackInitRequest",Me="singlefile.frameTree.cleanupRequest",Oe="singlefile.frameTree.initResponse",Ue=5e3,De=".",Fe=globalThis.window==globalThis.top,qe=globalThis.browser,Be=globalThis.top,je=globalThis.MessageChannel,He=globalThis.document;let Ve,We=globalThis.sessions;var $e,Ge,Ye;function Je(){return globalThis.crypto.getRandomValues(new Uint32Array(32)).join("")}async function Qe(e){const t=e.sessionId,r=globalThis._singleFile_waitForUserScript;delete globalThis._singleFile_cleaningUp,Fe||(Ve=globalThis.frameId=e.windowId),Xe(He,e.options,Ve,t),Fe||(e.options.userScriptEnabled&&r&&await r(Ie.ON_BEFORE_CAPTURE_EVENT_NAME),nt({frames:[it(He,globalThis,Ve,e.options)],sessionId:t,requestedFrameId:He.documentElement.dataset.requestedFrameId&&Ve}),e.options.userScriptEnabled&&r&&await r(Ie.ON_AFTER_CAPTURE_EVENT_NAME),delete He.documentElement.dataset.requestedFrameId)}function Ke(e){if(!globalThis._singleFile_cleaningUp){globalThis._singleFile_cleaningUp=!0;const t=e.sessionId;rt(at(He),e.windowId,t)}}function Ze(e){e.frames.forEach((t=>et("responseTimeouts",e.sessionId,t.windowId)));const t=We.get(e.sessionId);if(t){e.requestedFrameId&&(t.requestedFrameId=e.requestedFrameId),e.frames.forEach((e=>{let r=t.frames.find((t=>e.windowId==t.windowId));r||(r={windowId:e.windowId},t.frames.push(r)),r.processed||(r.content=e.content,r.baseURI=e.baseURI,r.title=e.title,r.canvases=e.canvases,r.fonts=e.fonts,r.stylesheets=e.stylesheets,r.images=e.images,r.posters=e.posters,r.videos=e.videos,r.usedFonts=e.usedFonts,r.shadowRoots=e.shadowRoots,r.processed=e.processed)}));t.frames.filter((e=>!e.processed)).length||(t.frames=t.frames.sort(((e,t)=>t.windowId.split(De).length-e.windowId.split(De).length)),t.resolve&&(t.requestedFrameId&&t.frames.forEach((e=>{e.windowId==t.requestedFrameId&&(e.requestedFrame=!0)})),t.resolve(t.frames)))}}function Xe(e,t,r,n){const o=at(e);!function(e,t,r,n,o){const i=[];let a;We.get(o)?a=We.get(o).requestTimeouts:(a={},We.set(o,{requestTimeouts:a}));t.forEach(((e,t)=>{const r=n+De+t;e.setAttribute(Ie.WIN_ID_ATTRIBUTE_NAME,r),i.push({windowId:r})})),nt({frames:i,sessionId:o,requestedFrameId:e.documentElement.dataset.requestedFrameId&&n}),t.forEach(((e,t)=>{const i=n+De+t;try{ot(e.contentWindow,{method:ze,windowId:i,sessionId:o,options:r})}catch(e){}a[i]=globalThis.setTimeout((()=>nt({frames:[{windowId:i,processed:!0}],sessionId:o})),Ue)})),delete e.documentElement.dataset.requestedFrameId}(e,o,t,r,n),o.length&&function(e,t,r,n,o){const i=[];t.forEach(((e,t)=>{const a=n+De+t;let s;try{s=e.contentDocument}catch(e){}if(s)try{const t=e.contentWindow;t.stop(),et("requestTimeouts",o,a),Xe(s,r,a,o),i.push(it(s,t,a,r))}catch(e){i.push({windowId:a,processed:!0})}})),nt({frames:i,sessionId:o,requestedFrameId:e.documentElement.dataset.requestedFrameId&&n}),delete e.documentElement.dataset.requestedFrameId}(e,o,t,r,n)}function et(e,t,r){const n=We.get(t);if(n&&n[e]){const t=n[e][r];t&&(globalThis.clearTimeout(t),delete n[e][r])}}function tt(e,t){const r=We.get(e);r&&r.responseTimeouts&&(r.responseTimeouts[t]=globalThis.setTimeout((()=>nt({frames:[{windowId:t,processed:!0}],sessionId:e})),1e4))}function rt(e,t,r){e.forEach(((e,n)=>{const o=t+De+n;e.removeAttribute(Ie.WIN_ID_ATTRIBUTE_NAME);try{ot(e.contentWindow,{method:Me,windowId:o,sessionId:r})}catch(e){}})),e.forEach(((e,n)=>{const o=t+De+n;let i;try{i=e.contentDocument}catch(e){}if(i)try{rt(at(i),o,r)}catch(e){}}))}function nt(e){e.method=Oe;try{Be.singlefile.processors.frameTree.initResponse(e)}catch(t){ot(Be,e,!0)}}function ot(e,t,r){if(e==Be&&qe&&qe.runtime&&qe.runtime.sendMessage)qe.runtime.sendMessage(t);else if(r){const r=new je;e.postMessage(Le+JSON.stringify({method:t.method,sessionId:t.sessionId}),"*",[r.port2]),r.port1.postMessage(t)}else e.postMessage(Le+JSON.stringify(t),"*")}function it(e,t,r,n){const o=Ie.preProcessDoc(e,t,n),i=Ie.serialize(e);Ie.postProcessDoc(e,o.markedElements,o.invalidElements);return{windowId:r,content:i,baseURI:e.baseURI.split("#")[0],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,processed:!0}}function at(e){let t=Array.from(e.querySelectorAll(Ne));return e.querySelectorAll("*").forEach((e=>{const r=Ie.getShadowRoot(e);r&&(t=t.concat(...r.querySelectorAll(Ne)))})),t}We||(We=globalThis.sessions=new Map),Fe&&(Ve="0",qe&&qe.runtime&&qe.runtime.onMessage&&qe.runtime.onMessage.addListener&&qe.runtime.onMessage.addListener((e=>e.method==Oe?(Ze(e),Promise.resolve({})):e.method==Pe?(et("requestTimeouts",e.sessionId,e.windowId),tt(e.sessionId,e.windowId),Promise.resolve({})):void 0))),$e="message",Ge=async e=>{if("string"==typeof e.data&&e.data.startsWith(Le)){e.preventDefault(),e.stopPropagation();const t=JSON.parse(e.data.substring(Le.length));t.method==ze?(e.source&&ot(e.source,{method:Pe,windowId:t.windowId,sessionId:t.sessionId}),Fe||(globalThis.stop(),t.options.loadDeferredImages&&ve(t.options),await Qe(t))):t.method==Pe?(et("requestTimeouts",t.sessionId,t.windowId),tt(t.sessionId,t.windowId)):t.method==Me?Ke(t):t.method==Oe&&We.get(t.sessionId)&&(e.ports[0].onmessage=e=>Ze(e.data))}},Ye=!0,globalThis.addEventListener($e,Ge,Ye);var st=Object.freeze({__proto__:null,getAsync:function(e){const t=Je();return e=JSON.parse(JSON.stringify(e)),new Promise((r=>{We.set(t,{frames:[],requestTimeouts:{},responseTimeouts:{},resolve:e=>{e.sessionId=t,r(e)}}),Qe({windowId:Ve,sessionId:t,options:e})}))},getSync:function(e){const t=Je();e=JSON.parse(JSON.stringify(e)),We.set(t,{frames:[],requestTimeouts:{},responseTimeouts:{}}),function(e){const t=e.sessionId,r=globalThis._singleFile_waitForUserScript;delete globalThis._singleFile_cleaningUp,Fe||(Ve=globalThis.frameId=e.windowId);Xe(He,e.options,Ve,t),Fe||(e.options.userScriptEnabled&&r&&r(Ie.ON_BEFORE_CAPTURE_EVENT_NAME),nt({frames:[it(He,globalThis,Ve,e.options)],sessionId:t,requestedFrameId:He.documentElement.dataset.requestedFrameId&&Ve}),e.options.userScriptEnabled&&r&&r(Ie.ON_AFTER_CAPTURE_EVENT_NAME),delete He.documentElement.dataset.requestedFrameId)}({windowId:Ve,sessionId:t,options:e});const r=We.get(t).frames;return r.sessionId=t,r},cleanup:function(e){We.delete(e),Ke({windowId:Ve,sessionId:e,options:{sessionId:e}})},initResponse:Ze,TIMEOUT_INIT_REQUEST_MESSAGE:Ue}),lt=Object.freeze({__proto__:null,frameTree:st,hooksFrames:p,lazy:_e}),ct=Object.create,ut=Object.defineProperty,ht=Object.getOwnPropertyDescriptor,dt=Object.getOwnPropertyNames,pt=Object.getPrototypeOf,mt=Object.prototype.hasOwnProperty,ft=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),gt=(e,t)=>{for(var r in t)ut(e,r,{get:t[r],enumerable:!0})},yt=ft((e=>{var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");e.encode=function(e){if(0<=e&&e{var t=yt();e.encode=function(e){var r,n,o="",i=(n=e)<0?1+(-n<<1):0+(n<<1);do{r=31&i,(i>>>=5)>0&&(r|=32),o+=t.encode(r)}while(i>0);return o},e.decode=function(e,r,n){var o,i,a=e.length,s=0,l=0;do{if(r>=a)throw new Error("Expected more digits in base 64 VLQ value.");if(-1===(i=t.decode(e.charCodeAt(r++))))throw new Error("Invalid base64 digit: "+e.charAt(r-1));o=!!(32&i),s+=(i&=31)<>1;return 1==(1&e)?-t:t}(s),n.rest=r}})),kt=ft((e=>{e.getArg=function(e,t,r){if(t in e)return e[t];if(3===arguments.length)return r;throw new Error('"'+t+'" is a required argument.')};var t=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,r=/^data:.+\,.+$/;function n(e){var r=e.match(t);return r?{scheme:r[1],auth:r[2],host:r[3],port:r[4],path:r[5]}:null}function o(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=n,e.urlGenerate=o;var i,a,s=(i=function(t){var r=t,i=n(t);if(i){if(!i.path)return t;r=i.path}for(var a=e.isAbsolute(r),s=[],l=0,c=0;;){if(l=c,-1===(c=r.indexOf("/",l))){s.push(r.slice(l));break}for(s.push(r.slice(l,c));c=0;c--)"."===(u=s[c])?s.splice(c,1):".."===u?h++:h>0&&(""===u?(s.splice(c+1,h),h=0):(s.splice(c,2),h--));return""===(r=s.join("/"))&&(r=a?"/":"."),i?(i.path=r,o(i)):r},a=[],function(e){for(var t=0;t32&&a.pop(),n});function l(e,t){""===e&&(e="."),""===t&&(t=".");var i=n(t),a=n(e);if(a&&(e=a.path||"/"),i&&!i.scheme)return a&&(i.scheme=a.scheme),o(i);if(i||t.match(r))return t;if(a&&!a.host&&!a.path)return a.host=t,o(a);var l="/"===t.charAt(0)?t:s(e.replace(/\/+$/,"")+"/"+t);return a?(a.path=l,o(a)):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 r=0;0!==t.indexOf(e+"/");){var n=e.lastIndexOf("/");if(n<0||(e=e.slice(0,n)).match(/^([^\/]+:\/)?\/*$/))return t;++r}return Array(r+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 r=t-10;r>=0;r--)if(36!==e.charCodeAt(r))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,r){var n=d(e.source,t.source);return 0!==n||0!==(n=e.originalLine-t.originalLine)||(0!==(n=e.originalColumn-t.originalColumn)||r)||0!==(n=e.generatedColumn-t.generatedColumn)||0!==(n=e.generatedLine-t.generatedLine)?n:d(e.name,t.name)},e.compareByOriginalPositionsNoSource=function(e,t,r){var n;return 0!==(n=e.originalLine-t.originalLine)||(0!==(n=e.originalColumn-t.originalColumn)||r)||0!==(n=e.generatedColumn-t.generatedColumn)||0!==(n=e.generatedLine-t.generatedLine)?n:d(e.name,t.name)},e.compareByGeneratedPositionsDeflated=function(e,t,r){var n=e.generatedLine-t.generatedLine;return 0!==n||(0!==(n=e.generatedColumn-t.generatedColumn)||r)||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.compareByGeneratedPositionsDeflatedNoLine=function(e,t,r){var n=e.generatedColumn-t.generatedColumn;return 0!==n||r||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.compareByGeneratedPositionsInflated=function(e,t){var r=e.generatedLine-t.generatedLine;return 0!==r||0!==(r=e.generatedColumn-t.generatedColumn)||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.parseSourceMapInput=function(e){return JSON.parse(e.replace(/^\)]}'[^\n]*\n/,""))},e.computeSourceURL=function(e,t,r){if(t=t||"",e&&("/"!==e[e.length-1]&&"/"!==t[0]&&(e+="/"),t=e+t),r){var i=n(r);if(!i)throw new Error("sourceMapURL could not be parsed");if(i.path){var a=i.path.lastIndexOf("/");a>=0&&(i.path=i.path.substring(0,a+1))}t=l(o(i),t)}return s(t)}})),vt=ft((e=>{var t=kt(),r=Object.prototype.hasOwnProperty,n=typeof Map<"u";function o(){this._array=[],this._set=n?new Map:Object.create(null)}o.fromArray=function(e,t){for(var r=new o,n=0,i=e.length;n=0)return o}else{var i=t.toSetString(e);if(r.call(this._set,i))return this._set[i]}throw new Error('"'+e+'" is not in the set.')},o.prototype.at=function(e){if(e>=0&&e{var t=kt();function r(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}r.prototype.unsortedForEach=function(e,t){this._array.forEach(e,t)},r.prototype.add=function(e){!function(e,r){var n=e.generatedLine,o=r.generatedLine,i=e.generatedColumn,a=r.generatedColumn;return o>n||o==n&&a>=i||t.compareByGeneratedPositionsInflated(e,r)<=0}(this._last,e)?(this._sorted=!1,this._array.push(e)):(this._last=e,this._array.push(e))},r.prototype.toArray=function(){return this._sorted||(this._array.sort(t.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},e.MappingList=r})),xt=ft((e=>{var t=bt(),r=kt(),n=vt().ArraySet,o=wt().MappingList;function i(e){e||(e={}),this._file=r.getArg(e,"file",null),this._sourceRoot=r.getArg(e,"sourceRoot",null),this._skipValidation=r.getArg(e,"skipValidation",!1),this._sources=new n,this._names=new n,this._mappings=new o,this._sourcesContents=null}i.prototype._version=3,i.fromSourceMap=function(e){var t=e.sourceRoot,n=new i({file:e.file,sourceRoot:t});return e.eachMapping((function(e){var o={generated:{line:e.generatedLine,column:e.generatedColumn}};null!=e.source&&(o.source=e.source,null!=t&&(o.source=r.relative(t,o.source)),o.original={line:e.originalLine,column:e.originalColumn},null!=e.name&&(o.name=e.name)),n.addMapping(o)})),e.sources.forEach((function(o){var i=o;null!==t&&(i=r.relative(t,o)),n._sources.has(i)||n._sources.add(i);var a=e.sourceContentFor(o);null!=a&&n.setSourceContent(o,a)})),n},i.prototype.addMapping=function(e){var t=r.getArg(e,"generated"),n=r.getArg(e,"original",null),o=r.getArg(e,"source",null),i=r.getArg(e,"name",null);this._skipValidation||this._validateMapping(t,n,o,i),null!=o&&(o=String(o),this._sources.has(o)||this._sources.add(o)),null!=i&&(i=String(i),this._names.has(i)||this._names.add(i)),this._mappings.add({generatedLine:t.line,generatedColumn:t.column,originalLine:null!=n&&n.line,originalColumn:null!=n&&n.column,source:o,name:i})},i.prototype.setSourceContent=function(e,t){var n=e;null!=this._sourceRoot&&(n=r.relative(this._sourceRoot,n)),null!=t?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[r.toSetString(n)]=t):this._sourcesContents&&(delete this._sourcesContents[r.toSetString(n)],0===Object.keys(this._sourcesContents).length&&(this._sourcesContents=null))},i.prototype.applySourceMap=function(e,t,o){var i=t;if(null==t){if(null==e.file)throw new Error('SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map\'s "file" property. Both were omitted.');i=e.file}var a=this._sourceRoot;null!=a&&(i=r.relative(a,i));var s=new n,l=new n;this._mappings.unsortedForEach((function(t){if(t.source===i&&null!=t.originalLine){var n=e.originalPositionFor({line:t.originalLine,column:t.originalColumn});null!=n.source&&(t.source=n.source,null!=o&&(t.source=r.join(o,t.source)),null!=a&&(t.source=r.relative(a,t.source)),t.originalLine=n.line,t.originalColumn=n.column,null!=n.name&&(t.name=n.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 n=e.sourceContentFor(t);null!=n&&(null!=o&&(t=r.join(o,t)),null!=a&&(t=r.relative(a,t)),this.setSourceContent(t,n))}),this)},i.prototype._validateMapping=function(e,t,r,n){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||r||n){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&&r)return;throw new Error("Invalid mapping: "+JSON.stringify({generated:e,source:r,original:t,name:n}))}},i.prototype._serializeMappings=function(){for(var e,n,o,i,a=0,s=1,l=0,c=0,u=0,h=0,d="",p=this._mappings.toArray(),m=0,f=p.length;m0){if(!r.compareByGeneratedPositionsInflated(n,p[m-1]))continue;e+=","}e+=t.encode(n.generatedColumn-a),a=n.generatedColumn,null!=n.source&&(i=this._sources.indexOf(n.source),e+=t.encode(i-h),h=i,e+=t.encode(n.originalLine-1-c),c=n.originalLine-1,e+=t.encode(n.originalColumn-l),l=n.originalColumn,null!=n.name&&(o=this._names.indexOf(n.name),e+=t.encode(o-u),u=o)),d+=e}return d},i.prototype._generateSourcesContent=function(e,t){return e.map((function(e){if(!this._sourcesContents)return null;null!=t&&(e=r.relative(t,e));var n=r.toSetString(e);return Object.prototype.hasOwnProperty.call(this._sourcesContents,n)?this._sourcesContents[n]:null}),this)},i.prototype.toJSON=function(){var e={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return null!=this._file&&(e.file=this._file),null!=this._sourceRoot&&(e.sourceRoot=this._sourceRoot),this._sourcesContents&&(e.sourcesContent=this._generateSourcesContent(e.sources,e.sourceRoot)),e},i.prototype.toString=function(){return JSON.stringify(this.toJSON())},e.SourceMapGenerator=i})),Et={};gt(Et,{AtKeyword:()=>Ct,BadString:()=>It,BadUrl:()=>Nt,CDC:()=>Ft,CDO:()=>Dt,Colon:()=>qt,Comma:()=>jt,Comment:()=>Jt,Delim:()=>zt,Dimension:()=>Ot,EOF:()=>At,Function:()=>Tt,Hash:()=>Rt,Ident:()=>St,LeftCurlyBracket:()=>Gt,LeftParenthesis:()=>Wt,LeftSquareBracket:()=>Ht,Number:()=>Pt,Percentage:()=>Mt,RightCurlyBracket:()=>Yt,RightParenthesis:()=>$t,RightSquareBracket:()=>Vt,Semicolon:()=>Bt,String:()=>_t,Url:()=>Lt,WhiteSpace:()=>Ut});var At=0,St=1,Tt=2,Ct=3,Rt=4,_t=5,It=6,Lt=7,Nt=8,zt=9,Pt=10,Mt=11,Ot=12,Ut=13,Dt=14,Ft=15,qt=16,Bt=17,jt=18,Ht=19,Vt=20,Wt=21,$t=22,Gt=23,Yt=24,Jt=25;function Qt(e){return e>=48&&e<=57}function Kt(e){return Qt(e)||e>=65&&e<=70||e>=97&&e<=102}function Zt(e){return e>=65&&e<=90}function Xt(e){return function(e){return Zt(e)||function(e){return e>=97&&e<=122}(e)}(e)||function(e){return e>=128}(e)||95===e}function er(e){return Xt(e)||Qt(e)||45===e}function tr(e){return e>=0&&e<=8||11===e||e>=14&&e<=31||127===e}function rr(e){return 10===e||13===e||12===e}function nr(e){return rr(e)||32===e||9===e}function or(e,t){return!(92!==e||rr(t)||0===t)}function ir(e,t,r){return 45===e?Xt(t)||45===t||or(t,r):!!Xt(e)||92===e&&or(e,t)}function ar(e,t,r){return 43===e||45===e?Qt(t)?2:46===t&&Qt(r)?3:0:46===e?Qt(t)?2:0:Qt(e)?1:0}function sr(e){return 65279===e||65534===e?1:0}var lr=new Array(128),cr=130;for(let e=0;ee.length)return!1;for(let o=t;o=55296&&t<=57343||t>1114111)&&(t=65533),String.fromCodePoint(t)}var xr=["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"];function Er(e=null,t){return null===e||e.length0?sr(t.charCodeAt(0)):0,o=Er(e.lines,r),i=Er(e.columns,r),a=e.startLine,s=e.startColumn;for(let e=n;e{})){let r=(e=String(e||"")).length,n=Er(this.offsetAndType,e.length+1),o=Er(this.balance,e.length+1),i=0,a=0,s=0,l=-1;for(this.offsetAndType=null,this.balance=null,t(e,((e,t,c)=>{switch(e){default:o[i]=r;break;case a:{let e=s&Sr;for(s=o[e],a=s>>Tr,o[i]=e,o[e++]=i;e>Tr:0}lookupOffset(e){return(e+=this.tokenIndex)0?e>Tr,this.tokenEnd=t&Sr):(this.tokenIndex=this.tokenCount,this.next())}next(){let e=this.tokenIndex+1;e>Tr,this.tokenEnd=e&Sr):(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 r,n,o=e;e:for(;o0?this.offsetAndType[o-1]&Sr:this.firstCharOffset,t(this.source.charCodeAt(n))){case 1:break e;case 2:o++;break e;default:this.balance[r]===o&&(o=r)}this.skip(o-this.tokenIndex)}forEachToken(e){for(let t=0,r=this.firstCharOffset;t>Tr,n,i,t)}}dump(){let e=new Array(this.tokenCount);return this.forEachToken(((t,r,n,o)=>{e[o]={idx:o,type:xr[t],chunk:this.source.substring(r,n),balance:this.balance[o]}})),e}};function _r(e,t){function r(t){return t=e.length?void(cString(e+r+1).padStart(l)+" |"+t)).join("\n")}let i=e.split(/\r\n?|\n|\f/),a=Math.max(1,t-n)-1,s=Math.min(t+n,i.length+1),l=Math.max(4,String(s).length)+1,c=0;(r+=(zr.length-1)*(i[t-1].substr(0,r-1).match(/\t/g)||[]).length)>100&&(c=r-60+3,r=58);for(let e=a;e<=s;e++)e>=0&&e0&&i[e].length>c?"…":"")+i[e].substr(c,98)+(i[e].length>c+100-1?"…":""));return[o(a,t),new Array(r+l+2).join("-")+"^",o(t,s)].filter(Boolean).join("\n")}function Mr(e,t,r,n,o){return Object.assign(Nr("SyntaxError",e),{source:t,offset:r,line:n,column:o,sourceFragment:e=>Pr({source:t,line:n,column:o},isNaN(e)?0:e),get formattedMessage(){return`Parse error: ${e}\n`+Pr({source:t,line:n,column:o},2)}})}function Or(e){let t=this.createList(),r=!1,n={recognizer:e};for(;!this.eof;){switch(this.tokenType){case 25:this.next();continue;case 13:r=!0,this.next();continue}let o=e.getNode.call(this,n);if(void 0===o)break;r&&(e.onWhiteSpace&&e.onWhiteSpace.call(this,o,t,n),r=!1),t.push(o)}return r&&e.onWhiteSpace&&e.onWhiteSpace.call(this,null,t,n),t}var Ur=()=>{};function Dr(e){return function(){return this[e]()}}function Fr(e){let t=Object.create(null);for(let r in e){let n=e[r],o=n.parse||n;o&&(t[r]=o)}return t}function qr(e){let t="",r="",n=!1,o=Ur,i=!1,a=new class{constructor(){this.lines=null,this.columns=null,this.computed=!1}setSource(e,t=0,r=1,n=1){this.source=e,this.startOffset=t,this.startLine=r,this.startColumn=n,this.computed=!1}getLocation(e,t){return this.computed||Ar(this),{source:t,offset:this.startOffset+e,line:this.lines[e],column:this.columns[e]}}getLocationRange(e,t,r){return this.computed||Ar(this),{source:r,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]}}}},s=Object.assign(new Rr,function(e){let t={context:Object.create(null),scope:Object.assign(Object.create(null),e.scope),atrule:Fr(e.atrule),pseudo:Fr(e.pseudo),node:Fr(e.node)};for(let r in e.parseContext)switch(typeof e.parseContext[r]){case"function":t.context[r]=e.parseContext[r];break;case"string":t.context[r]=Dr(e.parseContext[r])}return{config:t,...t,...t.node}}(e||{}),{parseAtrulePrelude:!0,parseRulePrelude:!0,parseValue:!0,parseCustomProperty:!1,readSequence:Or,consumeUntilBalanceEnd:()=>0,consumeUntilLeftCurlyBracket:e=>123===e?1:0,consumeUntilLeftCurlyBracketOrSemicolon:e=>123===e||59===e?1:0,consumeUntilExclamationMarkOrSemicolon:e=>33===e||59===e?1:0,consumeUntilSemicolonIncluded:e=>59===e?2:0,createList:()=>new Lr,createSingleNodeList:e=>(new Lr).appendData(e),getFirstListNode:e=>e&&e.first,getLastListNode:e=>e&&e.last,parseWithFallback(e,t){let r=this.tokenIndex;try{return e.call(this)}catch(e){if(i)throw e;let n=t.call(this,r);return i=!0,o(e,n),i=!1,n}},lookupNonWSType(e){let t;do{if(t=this.lookupType(e++),13!==t)return t}while(0!==t);return 0},charCodeAt:e=>e>=0&&et.substring(e,r),substrToCursor(e){return this.source.substring(e,this.tokenStart)},cmpChar:(e,r)=>pr(t,e,r),cmpStr:(e,r,n)=>mr(t,e,r,n),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 r=t.substring(this.tokenStart,kr(t,this.tokenStart));return this.eat(e),r},eat(e){if(this.tokenType!==e){let t=xr[e].slice(0,-6).replace(/-/g," ").replace(/^./,(e=>e.toUpperCase())),r=`${/[[\](){}]/.test(t)?`"${t}"`:t} is expected`,n=this.tokenStart;switch(e){case 1:2===this.tokenType||7===this.tokenType?(n=this.tokenEnd-1,r="Identifier is expected but function found"):r="Identifier is expected";break;case 4:this.isDelim(35)&&(this.next(),n++,r="Name is expected");break;case 11:10===this.tokenType&&(n=this.tokenEnd,r="Percent sign is expected")}this.error(r,n)}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)=>n?a.getLocationRange(e,t,r):null,getLocationFromList(e){if(n){let t=this.getFirstListNode(e),n=this.getLastListNode(e);return a.getLocationRange(null!==t?t.loc.start.offset-a.startOffset:this.tokenStart,null!==n?n.loc.end.offset-a.startOffset:this.tokenStart,r)}return null},error(e,r){let n=typeof r<"u"&&r=0&&nr(e.charCodeAt(t));t--);return t+1}(t,t.length-1)):a.getLocation(this.tokenStart);throw new Mr(e||"Unexpected input",t,n.offset,n.line,n.column)}});return Object.assign((function(e,l){t=e,l=l||{},s.setSource(t,_r),a.setSource(t,l.offset,l.line,l.column),r=l.filename||"",n=Boolean(l.positions),o="function"==typeof l.onParseError?l.onParseError:Ur,i=!1,s.parseAtrulePrelude=!("parseAtrulePrelude"in l)||Boolean(l.parseAtrulePrelude),s.parseRulePrelude=!("parseRulePrelude"in l)||Boolean(l.parseRulePrelude),s.parseValue=!("parseValue"in l)||Boolean(l.parseValue),s.parseCustomProperty="parseCustomProperty"in l&&Boolean(l.parseCustomProperty);let{context:c="default",onComment:u}=l;if(!(c in s.context))throw new Error("Unknown context `"+c+"`");"function"==typeof u&&s.forEachToken(((e,r,n)=>{if(25===e){let e=s.getLocation(r,n),o=mr(t,n-2,n,"*/")?t.slice(r+2,n-2):t.slice(r+2,n);u(o,e)}}));let h=s.context[c].call(s,l);return s.eof||s.error(),h}),{SyntaxError:Mr,config:s.config})}var Br,jr,Hr=(Br=xt(),jr=1,((e,t,r,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let o of dt(t))!mt.call(e,o)&&(r||"default"!==o)&&ut(e,o,{get:()=>t[o],enumerable:!(n=ht(t,o))||n.enumerable});return e})((e=>ut(e,"__esModule",{value:!0}))(ut(null!=Br?ct(pt(Br)):{},"default",!jr&&Br&&Br.__esModule?{get:()=>Br.default,enumerable:!0}:{value:Br,enumerable:!0})),Br)),Vr=new Set(["Atrule","Selector","Declaration"]);var Wr={};gt(Wr,{safe:()=>Kr,spec:()=>Qr});var $r=(e,t)=>{if(9===e&&(e=t),"string"==typeof e){let t=e.charCodeAt(0);return t>127?32768:t<<8}return e},Gr=[[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],["/","*"]],Yr=Gr.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 Jr(e){let t=new Set(e.map((([e,t])=>$r(e)<<16|$r(t))));return function(e,r,n){let o=$r(r,n),i=n.charCodeAt(0);return(45===i&&1!==r&&2!==r&&15!==r||43===i?t.has(e<<16|i<<8):t.has(e<<16|o))&&this.emit(" ",13,!0),o}}var Qr=Jr(Gr),Kr=Jr(Yr);function Zr(e,t){if("function"!=typeof t)e.children.forEach(this.node,this);else{let r=null;e.children.forEach((e=>{null!==r&&t.call(this,r),this.node(e),r=e}))}}function Xr(e){_r(e,((t,r,n)=>{this.token(t,e.slice(r,n))}))}function en(e){let t=new Map;for(let r in e.node){let n=e.node[r];"function"==typeof(n.generate||n)&&t.set(r,n.generate||n)}return function(e,r){let n="",o=0,i={node(e){if(!t.has(e.type))throw new Error("Unknown node type: "+e.type);t.get(e.type).call(a,e)},tokenBefore:Kr,token(e,t){o=this.tokenBefore(o,e,t),this.emit(t,e,!1),9===e&&92===t.charCodeAt(0)&&this.emit("\n",13,!0)},emit(e){n+=e},result:()=>n};r&&("function"==typeof r.decorator&&(i=r.decorator(i)),r.sourceMap&&(i=function(e){let t=new Hr.SourceMapGenerator,r={line:1,column:0},n={line:0,column:0},o={line:1,column:0},i={generated:o},a=1,s=0,l=!1,c=e.node;e.node=function(e){if(e.loc&&e.loc.start&&Vr.has(e.type)){let c=e.loc.start.line,u=e.loc.start.column-1;(n.line!==c||n.column!==u)&&(n.line=c,n.column=u,r.line=a,r.column=s,l&&(l=!1,(r.line!==o.line||r.column!==o.column)&&t.addMapping(i)),l=!0,t.addMapping({source:e.loc.source,original:n,generated:r}))}c.call(this,e),l&&Vr.has(e.type)&&(o.line=a,o.column=s)};let u=e.emit;e.emit=function(e,t,r){for(let t=0;ti.node(e),children:Zr,token:(e,t)=>i.token(e,t),tokenize:Xr};return i.node(e),i.result()}}var{hasOwnProperty:tn}=Object.prototype,rn=function(){};function nn(e){return"function"==typeof e?e:rn}function on(e,t){return function(r,n,o){r.type===t&&e.call(this,r,n,o)}}function an(e,t){let r=t.structure,n=[];for(let e in r){if(!1===tn.call(r,e))continue;let t=r[e],o={name:e,type:!1,nullable:!1};Array.isArray(t)||(t=[t]);for(let e of t)null===e?o.nullable=!0:"string"==typeof e?o.type="node":Array.isArray(e)&&(o.type="list");o.type&&n.push(o)}return n.length?{context:t.walkContext,fields:n}:null}function sn(e,t){let r=e.fields.slice(),n=e.context,o="string"==typeof n;return t&&r.reverse(),function(e,i,a,s){let l;o&&(l=i[n],i[n]=e);for(let n of r){let r=e[n.name];if(!n.nullable||r)if("list"===n.type){if(t?r.reduceRight(s,!1):r.reduce(s,!1))return!0}else if(a(r))return!0}o&&(i[n]=l)}}function ln({StyleSheet:e,Atrule:t,Rule:r,Block:n,DeclarationList:o}){return{Atrule:{StyleSheet:e,Atrule:t,Rule:r,Block:n},Rule:{StyleSheet:e,Atrule:t,Rule:r,Block:n},Declaration:{StyleSheet:e,Atrule:t,Rule:r,Block:n,DeclarationList:o}}}function cn(e){let t=function(e){let t={};for(let r in e.node)if(tn.call(e.node,r)){let n=e.node[r];if(!n.structure)throw new Error("Missed `structure` field in `"+r+"` node type definition");t[r]=an(0,n)}return t}(e),r={},n={},o=Symbol("break-walk"),i=Symbol("skip-node");for(let e in t)tn.call(t,e)&&null!==t[e]&&(r[e]=sn(t[e],!1),n[e]=sn(t[e],!0));let a=ln(r),s=ln(n),l=function(e,l){function c(e,t,r){let n=u.call(m,e,t,r);return n===o||n!==i&&!!(d.hasOwnProperty(e.type)&&d[e.type](e,m,c,p)||h.call(m,e,t,r)===o)}let u=rn,h=rn,d=r,p=(e,t,r,n)=>e||c(t,r,n),m={break:o,skip:i,root:e,stylesheet:null,atrule:null,atrulePrelude:null,rule:null,selector:null,block:null,declaration:null,function:null};if("function"==typeof l)u=l;else if(l&&(u=nn(l.enter),h=nn(l.leave),l.reverse&&(d=n),l.visit)){if(a.hasOwnProperty(l.visit))d=l.reverse?s[l.visit]:a[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=on(u,l.visit),h=on(h,l.visit)}if(u===rn&&h===rn)throw new Error("Neither `enter` nor `leave` walker handler is set or both aren't a function");c(e)};return l.break=o,l.skip=i,l.find=function(e,t){let r=null;return l(e,(function(e,n,i){if(t.call(this,e,n,i))return r=e,o})),r},l.findLast=function(e,t){let r=null;return l(e,{reverse:!0,enter:function(e,n,i){if(t.call(this,e,n,i))return r=e,o}}),r},l.findAll=function(e,t){let r=[];return l(e,(function(e,n,o){t.call(this,e,n,o)&&r.push(e)})),r},l}function un(e){return e}function hn(e,t,r,n){let o;switch(e.type){case"Group":o=function(e,t,r,n){let o=" "===e.combinator||n?e.combinator:" "+e.combinator+" ",i=e.terms.map((e=>hn(e,t,r,n))).join(o);return e.explicit||r?(n||","===i[0]?"[":"[ ")+i+(n?"]":" ]"):i}(e,t,r,n)+(e.disallowEmpty?"!":"");break;case"Multiplier":return hn(e.term,t,r,n)+t(function(e){let{min:t,max:r,comma:n}=e;return 0===t&&0===r?"*":0===t&&1===r?"?":1===t&&0===r?n?"#":"+":1===t&&1===r?"":(n?"#":"")+(t===r?"{"+t+"}":"{"+t+","+(0!==r?r:"")+"}")}(e),e);case"Type":o="<"+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":o="<'"+e.name+"'>";break;case"Keyword":o=e.name;break;case"AtKeyword":o="@"+e.name;break;case"Function":o=e.name+"(";break;case"String":case"Token":o=e.value;break;case"Comma":o=",";break;default:throw new Error("Unknown node type `"+e.type+"`")}return t(o,e)}function dn(e,t){let r=un,n=!1,o=!1;return"function"==typeof t?r=t:t&&(n=Boolean(t.forceBraces),o=Boolean(t.compact),"function"==typeof t.decorate&&(r=t.decorate)),hn(e,r,n,o)}var pn={offset:0,line:1,column:1};function mn(e,t){let r=e&&e.loc&&e.loc[t];return r?"line"in r?fn(r):r:null}function fn({offset:e,line:t,column:r},n){let o={offset:e,line:t,column:r};if(n){let e=n.split(/\n|\r\n?|\f/);o.offset+=n.length,o.line+=e.length-1,o.column=1===e.length?o.column+n.length:e.pop().length+1}return o}var gn=function(e,t){let r=Nr("SyntaxReferenceError",e+(t?" `"+t+"`":""));return r.reference=t,r},yn=function(e,t,r,n){let o=Nr("SyntaxMatchError",e),{css:i,mismatchOffset:a,mismatchLength:s,start:l,end:c}=function(e,t){let r,n,o=e.tokens,i=e.longestMatch,a=i1?(r=mn(s||t,"end")||fn(pn,h),n=fn(r)):(r=mn(s,"start")||fn(mn(t,"start")||pn,h.slice(0,l)),n=mn(s,"end")||fn(r,h.substr(l,c))),{css:h,mismatchOffset:l,mismatchLength:c,start:r,end:n}}(n,r);return o.rawMessage=e,o.syntax=t?dn(t):"",o.css=i,o.mismatchOffset=a,o.mismatchLength=s,o.message=e+"\n syntax: "+o.syntax+"\n value: "+(i||"")+"\n --------"+new Array(o.mismatchOffset+1).join("-")+"^",Object.assign(o,l),o.loc={source:r&&r.loc&&r.loc.source||"",start:l,end:c},o},bn=new Map,kn=new Map,vn=function(e){if(bn.has(e))return bn.get(e);let t=e.toLowerCase(),r=bn.get(t);if(void 0===r){let e=En(t,0),n=e?"":An(t,0);r=Object.freeze({basename:t.substr(n.length),name:t,prefix:n,vendor:n,custom:e})}return bn.set(e,r),r},wn=function(e){if(kn.has(e))return kn.get(e);let t=e,r=e[0];"/"===r?r="/"===e[1]?"//":"/":"_"!==r&&"*"!==r&&"$"!==r&&"#"!==r&&"+"!==r&&"&"!==r&&(r="");let n=En(t,r.length);if(!n&&(t=t.toLowerCase(),kn.has(t))){let r=kn.get(t);return kn.set(e,r),r}let o=n?"":An(t,r.length),i=t.substr(0,r.length+o.length),a=Object.freeze({basename:t.substr(i.length),name:t.substr(r.length),hack:r,vendor:o,prefix:i,custom:n});return kn.set(e,a),a},xn=An;function En(e,t){return t=t||0,e.length-t>=2&&45===e.charCodeAt(t)&&45===e.charCodeAt(t+1)}function An(e,t){if(t=t||0,e.length-t>=3&&45===e.charCodeAt(t)&&45!==e.charCodeAt(t+1)){let r=e.indexOf("-",t+2);if(-1!==r)return e.substring(t,r+1)}return""}var Sn=45,Tn=!0;function Cn(e,t){return null!==e&&9===e.type&&e.value.charCodeAt(0)===t}function Rn(e,t,r){for(;null!==e&&(13===e.type||25===e.type);)e=r(++t);return t}function _n(e,t,r,n){if(!e)return 0;let o=e.value.charCodeAt(t);if(43===o||o===Sn){if(r)return 0;t++}for(;t6)return 0}return n}function zn(e,t,r){if(!e)return 0;for(;Ln(r(t),63);){if(++e>6)return 0;t++}return t}var Pn=["unset","initial","inherit"],Mn=["calc(","-moz-calc(","-webkit-calc("],On=new Map([[2,22],[21,22],[19,20],[23,24]]);function Un(e,t){return te.max)return!0}return!1}function jn(e,t){let r=0,n=[],o=0;e:do{switch(e.type){case 24:case 22:case 20:if(e.type!==r)break e;if(r=n.pop(),0===n.length){o++;break e}break;case 2:case 21:case 19:case 23:n.push(r),r=On.get(e.type)}o++}while(e=t(o));return o}function Hn(e){return function(t,r,n){return null===t?0:2===t.type&&Fn(t.value,Mn)?jn(t,r):e(t,r,n)}}function Vn(e){return function(t){return null===t||t.type!==e?0:1}}function Wn(e){return e&&(e=new Set(e)),function(t,r,n){if(null===t||12!==t.type)return 0;let o=kr(t.value,0);if(null!==e){let r=t.value.indexOf("\\",o),n=-1!==r&&qn(t.value,r)?t.value.substring(o,r):t.value.substr(o);if(!1===e.has(n.toLowerCase()))return 0}return Bn(n,t.value,o)?0:1}}function $n(e){return"function"!=typeof e&&(e=function(){return 0}),function(t,r,n){return null!==t&&10===t.type&&0===Number(t.value)?1:e(t,r,n)}}var Gn={"ident-token":Vn(1),"function-token":Vn(2),"at-keyword-token":Vn(3),"hash-token":Vn(4),"string-token":Vn(5),"bad-string-token":Vn(6),"url-token":Vn(7),"bad-url-token":Vn(8),"delim-token":Vn(9),"number-token":Vn(10),"percentage-token":Vn(11),"dimension-token":Vn(12),"whitespace-token":Vn(13),"CDO-token":Vn(14),"CDC-token":Vn(15),"colon-token":Vn(16),"semicolon-token":Vn(17),"comma-token":Vn(18),"[-token":Vn(19),"]-token":Vn(20),"(-token":Vn(21),")-token":Vn(22),"{-token":Vn(23),"}-token":Vn(24),string:Vn(5),ident:Vn(1),"custom-ident":function(e){if(null===e||1!==e.type)return 0;let t=e.value.toLowerCase();return Fn(t,Pn)||Dn(t,"default")?0:1},"custom-property-name":function(e){return null===e||1!==e.type||45!==Un(e.value,0)||45!==Un(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 r=1;rJn,generate:()=>dn,parse:()=>uo,walk:()=>mo});var Qn=123,Kn=new Uint8Array(128).map(((e,t)=>/[a-zA-Z0-9\-]/.test(String.fromCharCode(t))?1:0)),Zn={" ":1,"&&":2,"||":3,"|":4};function Xn(e){return e.substringToPos(e.findWsEnd(e.pos))}function eo(e){let t=e.pos;for(;t=128||0===Kn[r])break}return e.pos===t&&e.error("Expect a keyword"),e.substringToPos(t)}function to(e){let t=e.pos;for(;t57)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 no(e){let t=null,r=null;return e.eat(Qn),t=to(e),44===e.charCode()?(e.pos++,125!==e.charCode()&&(r=to(e))):r=t,e.eat(125),{min:Number(t),max:r?Number(r):0}}function oo(e,t){let r=function(e){let t=null,r=!1;switch(e.charCode()){case 42:e.pos++,t={min:0,max:0};break;case 43:e.pos++,t={min:1,max:0};break;case 63:e.pos++,t={min:0,max:1};break;case 35:e.pos++,r=!0,t=e.charCode()===Qn?no(e):{min:1,max:0};break;case Qn:t=no(e);break;default:return null}return{type:"Multiplier",comma:r,min:t.min,max:t.max,term:null}}(e);return null!==r?(r.term=t,r):t}function io(e){let t=e.peek();return""===t?null:{type:"Token",value:t}}function ao(e){let t,r=null;return e.eat(60),t=eo(e),40===e.charCode()&&41===e.nextCharCode()&&(e.pos+=2,t+="()"),91===e.charCodeAt(e.findWsEnd(e.pos))&&(Xn(e),r=function(e){let t=null,r=null,n=1;return e.eat(91),45===e.charCode()&&(e.peek(),n=-1),-1==n&&8734===e.charCode()?e.peek():t=n*Number(to(e)),Xn(e),e.eat(44),Xn(e),8734===e.charCode()?e.peek():(n=1,45===e.charCode()&&(e.peek(),n=-1),r=n*Number(to(e))),e.eat(93),null===t&&null===r?null:{type:"Range",min:t,max:r}}(e)),e.eat(62),oo(e,{type:"Type",name:t,opts:r})}function so(e,t){function r(e,t){return{type:"Group",terms:e,combinator:t,disallowEmpty:!1,explicit:!1}}let n;for(t=Object.keys(t).sort(((e,t)=>Zn[e]-Zn[t]));t.length>0;){n=t.shift();let o=0,i=0;for(;o1&&(e.splice(i,o-i,r(e.slice(i,o),n)),o=i+1),i=-1))}-1!==i&&t.length&&e.splice(i,o-i,r(e.slice(i,o),n))}return n}function lo(e){let t,r=[],n={},o=null,i=e.pos;for(;t=co(e);)"Spaces"!==t.type&&("Combinator"===t.type?((null===o||"Combinator"===o.type)&&(e.pos=i,e.error("Unexpected combinator")),n[t.value]=!0):null!==o&&"Combinator"!==o.type&&(n[" "]=!0,r.push({type:"Combinator",value:" "})),r.push(t),o=t,i=e.pos);return null!==o&&"Combinator"===o.type&&(e.pos-=i,e.error("Unexpected combinator")),{type:"Group",terms:r,combinator:so(r,n)||" ",disallowEmpty:!1,explicit:!1}}function co(e){let t=e.charCode();if(t<128&&1===Kn[t])return function(e){let t=eo(e);return 40===e.charCode()?(e.pos++,{type:"Function",name:t}):oo(e,{type:"Keyword",name:t})}(e);switch(t){case 93:break;case 91:return oo(e,function(e){let t;return e.eat(91),t=lo(e),e.eat(93),t.explicit=!0,33===e.charCode()&&(e.pos++,t.disallowEmpty=!0),t}(e));case 60:return 39===e.nextCharCode()?function(e){let t;return e.eat(60),e.eat(39),t=eo(e),e.eat(39),e.eat(62),oo(e,{type:"Property",name:t})}(e):ao(e);case 124:return{type:"Combinator",value:e.substringToPos(e.pos+(124===e.nextCharCode()?2:1))};case 38:return e.pos++,e.eat(38),{type:"Combinator",value:"&&"};case 44:return e.pos++,{type:"Comma"};case 39:return oo(e,{type:"String",value:ro(e)});case 32:case 9:case 10:case 13:case 12:return{type:"Spaces",value:Xn(e)};case 64:return t=e.nextCharCode(),t<128&&1===Kn[t]?(e.pos++,{type:"AtKeyword",name:eo(e)}):io(e);case 42:case 43:case 63:case 35:case 33:break;case Qn:if(t=e.nextCharCode(),t<48||t>57)return io(e);break;default:return io(e)}}function uo(e){let t=new class{constructor(e){this.str=e,this.pos=0}charCodeAt(e){return et}}};function go(e,t){return"string"==typeof e?function(e){let t=[];return _r(e,((r,n,o)=>t.push({type:r,value:e.slice(n,o),node:null}))),t}(e):t.generate(e,fo)}var yo={type:"Match"},bo={type:"Mismatch"},ko={type:"DisallowEmpty"};function vo(e,t,r){return t===yo&&r===bo||e===yo&&t===yo&&r===yo?e:("If"===e.type&&e.else===bo&&t===yo&&(t=e.then,e=e.match),{type:"If",match:e,then:t,else:r})}function wo(e){return e.length>2&&40===e.charCodeAt(e.length-2)&&41===e.charCodeAt(e.length-1)}function xo(e){return"Keyword"===e.type||"AtKeyword"===e.type||"Function"===e.type||"Type"===e.type&&wo(e.name)}function Eo(e,t,r){switch(e){case" ":{let e=yo;for(let r=t.length-1;r>=0;r--){e=vo(t[r],e,bo)}return e}case"|":{let e=bo,r=null;for(let n=t.length-1;n>=0;n--){let o=t[n];if(xo(o)&&(null===r&&n>0&&xo(t[n-1])&&(r=Object.create(null),e=vo({type:"Enum",map:r},yo,e)),null!==r)){let e=(wo(o.name)?o.name.slice(0,-1):o.name).toLowerCase();if(!(e in r)){r[e]=o;continue}}r=null,e=vo(o,yo,e)}return e}case"&&":{if(t.length>5)return{type:"MatchOnce",terms:t,all:!0};let r=bo;for(let n=t.length-1;n>=0;n--){let o,i=t[n];o=t.length>1?Eo(e,t.filter((function(e){return e!==i})),!1):yo,r=vo(i,o,r)}return r}case"||":{if(t.length>5)return{type:"MatchOnce",terms:t,all:!1};let n=r?yo:bo;for(let r=t.length-1;r>=0;r--){let o,i=t[r];o=t.length>1?Eo(e,t.filter((function(e){return e!==i})),!0):yo,n=vo(i,o,n)}return n}}}function Ao(e){if("function"==typeof e)return{type:"Generic",fn:e};switch(e.type){case"Group":{let t=Eo(e.combinator,e.terms.map(Ao),!1);return e.disallowEmpty&&(t=vo(t,ko,bo)),t}case"Multiplier":return function(e){let t=yo,r=Ao(e.term);if(0===e.max)r=vo(r,ko,bo),t=vo(r,null,bo),t.then=vo(yo,yo,t),e.comma&&(t.then.else=vo({type:"Comma",syntax:e},t,bo));else for(let n=e.min||1;n<=e.max;n++)e.comma&&t!==yo&&(t=vo({type:"Comma",syntax:e},t,bo)),t=vo(r,vo(yo,yo,t),bo);if(0===e.min)t=vo(yo,yo,t);else for(let n=0;n=65&&o<=90&&(o|=32),o!==n)return!1}return!0}function _o(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 Io(e){return null===e||(22===e.type||20===e.type||24===e.type||9===e.type)}function Lo(e,t,r){let n=function(e,t,r){function n(){do{y++,g=yb&&(b=y)}function c(){k=2===k.type?k.prev:{type:3,syntax:u.syntax,token:k.token,prev:k},u=u.prev}let u=null,h=null,d=null,p=null,m=0,f=null,g=null,y=-1,b=0,k={type:0,syntax:null,token:null,prev:null};for(n();null===f&&++m<15e3;)switch(t.type){case"Match":if(null===h){if(null!==g&&(y!==e.length-1||"\\0"!==g.value&&"\\9"!==g.value)){t=bo;break}f=Co;break}if((t=h.nextState)===ko){if(h.matchStack===k){t=bo;break}t=yo}for(;h.syntaxStack!==u;)c();h=h.prev;break;case"Mismatch":if(null!==p&&!1!==p)(null===d||y>d.tokenIndex)&&(d=p,p=!1);else if(null===d){f="Mismatch";break}t=d.nextState,h=d.thenStack,u=d.syntaxStack,k=d.matchStack,y=d.tokenIndex,g=yy){for(;y":"<'"+t.name+"'>"));if(!1!==p&&null!==g&&"Type"===t.type&&("custom-ident"===t.name&&1===g.type||"length"===t.name&&"0"===g.value)){null===p&&(p=i(t,d)),t=bo;break}u={syntax:t.syntax,opts:t.syntax.opts||null!==u&&u.opts||null,prev:u},k={type:2,syntax:t.syntax,token:k.token,prev:k},t=n.match;break}case"Keyword":{let e=t.name;if(null!==g){let r=g.value;if(-1!==r.indexOf("\\")&&(r=r.replace(/\\[09].*$/,"")),Ro(r,e)){l(),t=yo;break}}t=bo;break}case"AtKeyword":case"Function":if(null!==g&&Ro(g.value,t.name)){l(),t=yo;break}t=bo;break;case"Token":if(null!==g&&g.value===t.value){l(),t=yo;break}t=bo;break;case"Comma":null!==g&&18===g.type?_o(k.token)?t=bo:(l(),t=Io(g)?bo:yo):t=_o(k.token)||Io(g)?yo:bo;break;case"String":let n="",m=y;for(;m"Type"===e.type&&e.name===t))}function Mo(e,t){return Uo(this,e,(e=>"Property"===e.type&&e.name===t))}function Oo(e){return Uo(this,e,(e=>"Keyword"===e.type))}function Uo(e,t,r){let n=zo.call(e,t);return null!==n&&n.some(r)}function Do(e){return"node"in e?e.node:Do(e.match[0])}function Fo(e){return"node"in e?e.node:Fo(e.match[e.match.length-1])}function qo(e,t,r,n,o){let i=[];return null!==r.matched&&function r(a){if(null!==a.syntax&&a.syntax.type===n&&a.syntax.name===o){let r=Do(a),n=Fo(a);e.syntax.walk(t,(function(e,t,o){if(e===r){let e=new Lr;do{if(e.appendData(t.data),t.data===n)break;t=t.next}while(null!==t);i.push({parent:o,nodes:e})}}))}Array.isArray(a.match)&&a.match.forEach(r)}(r.matched),i}gt(No,{getTrace:()=>zo,isKeyword:()=>Oo,isProperty:()=>Mo,isType:()=>Po});var{hasOwnProperty:Bo}=Object.prototype;function jo(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&e>=0}function Ho(e){return Boolean(e)&&jo(e.offset)&&jo(e.line)&&jo(e.column)}function Vo(e,t){return function(r,n){if(!r||r.constructor!==Object)return n(r,"Type of node should be an Object");for(let o in r){let i=!0;if(!1!==Bo.call(r,o)){if("type"===o)r.type!==e&&n(r,"Wrong node type `"+r.type+"`, expected `"+e+"`");else if("loc"===o){if(null===r.loc)continue;if(r.loc&&r.loc.constructor===Object)if("string"!=typeof r.loc.source)o+=".source";else if(Ho(r.loc.start)){if(Ho(r.loc.end))continue;o+=".end"}else o+=".start";i=!1}else if(t.hasOwnProperty(o)){i=!1;for(let e=0;!i&&e");else{if(!Array.isArray(n))throw new Error("Wrong value `"+n+"` in `"+e+"."+t+"` structure definition");i.push("List")}}o[t]=i.join(" | ")}return{docs:o,check:Vo(e,n)}}var $o=So("inherit | initial | unset"),Go=So("inherit | initial | unset | <-ms-legacy-expression>");function Yo(e,t,r){let n={};for(let o in e)e[o].syntax&&(n[o]=r?e[o].syntax:dn(e[o].syntax,{compact:t}));return n}function Jo(e,t,r){let n={};for(let[o,i]of Object.entries(e))n[o]={prelude:i.prelude&&(r?i.prelude.syntax:dn(i.prelude.syntax,{compact:t})),descriptors:i.descriptors&&Yo(i.descriptors,t,r)};return n}function Qo(e,t,r){return{matched:e,iterations:r,error:t,...No}}function Ko(e,t,r,n){let o,i=go(r,e.syntax);return function(e){for(let t=0;t(Object.defineProperty(i,"syntax",{value:uo(e)}),i.syntax)}):i.syntax=e,Object.defineProperty(i,"match",{get:()=>(Object.defineProperty(i,"match",{value:So(i.syntax,o)}),i.match)})),i}addAtrule_(e,t){!t||(this.atrules[e]={type:"Atrule",name:e,prelude:t.prelude?this.createDescriptor(t.prelude,"AtrulePrelude",e):null,descriptors:t.descriptors?Object.keys(t.descriptors).reduce(((r,n)=>(r[n]=this.createDescriptor(t.descriptors[n],"AtruleDescriptor",n,e),r)),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),t===Gn["-ms-legacy-expression"]&&(this.valueCommonSyntax=Go))}checkAtruleName(e){if(!this.getAtrule(e))return new gn("Unknown at-rule","@"+e)}checkAtrulePrelude(e,t){let r=this.checkAtruleName(e);if(r)return r;let n=this.getAtrule(e);return!n.prelude&&t?new SyntaxError("At-rule `@"+e+"` should not contain a prelude"):n.prelude&&!t?new SyntaxError("At-rule `@"+e+"` should contain a prelude"):void 0}checkAtruleDescriptorName(e,t){let r=this.checkAtruleName(e);if(r)return r;let n=this.getAtrule(e),o=vn(t);return n.descriptors?n.descriptors[o.name]||n.descriptors[o.basename]?void 0:new gn("Unknown at-rule descriptor",t):new SyntaxError("At-rule `@"+e+"` has no known descriptors")}checkPropertyName(e){if(!this.getProperty(e))return new gn("Unknown property",e)}matchAtrulePrelude(e,t){let r=this.checkAtrulePrelude(e,t);return r?Qo(null,r):t?Ko(this,this.getAtrule(e).prelude,t,!1):Qo(null,null)}matchAtruleDescriptor(e,t,r){let n=this.checkAtruleDescriptorName(e,t);if(n)return Qo(null,n);let o=this.getAtrule(e),i=vn(t);return Ko(this,o.descriptors[i.name]||o.descriptors[i.basename],r,!1)}matchDeclaration(e){return"Declaration"!==e.type?Qo(null,new Error("Not a Declaration node")):this.matchProperty(e.property,e.value)}matchProperty(e,t){if(wn(e).custom)return Qo(null,new Error("Lexer matching doesn't applicable for custom properties"));let r=this.checkPropertyName(e);return r?Qo(null,r):Ko(this,this.getProperty(e),t,!0)}matchType(e,t){let r=this.getType(e);return r?Ko(this,r,t,!1):Qo(null,new gn("Unknown type",e))}match(e,t){return"string"==typeof e||e&&e.type?(("string"==typeof e||!e.match)&&(e=this.createDescriptor(e,"Type","anonymous")),Ko(this,e,t,!1)):Qo(null,new gn("Bad syntax"))}findValueFragments(e,t,r,n){return qo(this,t,this.matchProperty(e,t),r,n)}findDeclarationValueFragments(e,t,r){return qo(this,e.value,this.matchDeclaration(e),t,r)}findAllFragments(e,t,r){let n=[];return this.syntax.walk(e,{visit:"Declaration",enter:e=>{n.push.apply(n,this.findDeclarationValueFragments(e,t,r))}}),n}getAtrule(e,t=!0){let r=vn(e);return(r.vendor&&t?this.atrules[r.name]||this.atrules[r.basename]:this.atrules[r.name])||null}getAtrulePrelude(e,t=!0){let r=this.getAtrule(e,t);return r&&r.prelude||null}getAtruleDescriptor(e,t){return this.atrules.hasOwnProperty(e)&&this.atrules.declarators&&this.atrules[e].declarators[t]||null}getProperty(e,t=!0){let r=wn(e);return(r.vendor&&t?this.properties[r.name]||this.properties[r.basename]:this.properties[r.name])||null}getType(e){return hasOwnProperty.call(this.types,e)?this.types[e]:null}validate(){function e(n,o,i,a){if(i.has(o))return i.get(o);i.set(o,!1),null!==a.syntax&&mo(a.syntax,(function(a){if("Type"!==a.type&&"Property"!==a.type)return;let s="Type"===a.type?n.types:n.properties,l="Type"===a.type?t:r;(!hasOwnProperty.call(s,a.name)||e(n,a.name,l,s[a.name]))&&i.set(o,!0)}),this)}let t=new Map,r=new Map;for(let r in this.types)e(this,r,t,this.types[r]);for(let t in this.properties)e(this,t,r,this.properties[t]);return t=[...t.keys()].filter((e=>t.get(e))),r=[...r.keys()].filter((e=>r.get(e))),t.length||r.length?{types:t,properties:r}:null}dump(e,t){return{generic:this.generic,types:Yo(this.types,!t,e),properties:Yo(this.properties,!t,e),atrules:Jo(this.atrules,!t,e)}}toString(){return JSON.stringify(this.dump())}},{hasOwnProperty:Xo}=Object.prototype,ei={generic:!0,types:oi,atrules:{prelude:ii,descriptors:ii},properties:oi,parseContext:function(e,t){return Object.assign(e,t)},scope:function e(t,r){for(let n in r)Xo.call(r,n)&&(ti(t[n])?e(t[n],ri(r[n])):t[n]=ri(r[n]));return t},atrule:["parse"],pseudo:["parse"],node:["name","structure","parse","generate","walkContext"]};function ti(e){return e&&e.constructor===Object}function ri(e){return ti(e)?{...e}:e}function ni(e,t){return"string"==typeof t&&/^\s*\|/.test(t)?"string"==typeof e?e+t:t.replace(/^\s*\|\s*/,""):t||null}function oi(e,t){if("string"==typeof t)return ni(e,t);let r={...e};for(let n in t)Xo.call(t,n)&&(r[n]=ni(Xo.call(e,n)?e[n]:void 0,t[n]));return r}function ii(e,t){let r=oi(e,t);return!ti(r)||Object.keys(r).length?r:null}function ai(e,t,r){for(let n in r)if(!1!==Xo.call(r,n))if(!0===r[n])n in t&&Xo.call(t,n)&&(e[n]=ri(t[n]));else if(r[n])if("function"==typeof r[n]){let o=r[n];e[n]=o({},e[n]),e[n]=o(e[n]||{},t[n])}else if(ti(r[n])){let o={};for(let t in e[n])o[t]=ai({},e[n][t],r[n]);for(let e in t[n])o[e]=ai(o[e]||{},t[n][e],r[n]);e[n]=o}else if(Array.isArray(r[n])){let o={},i=r[n].reduce((function(e,t){return e[t]=!0,e}),{});for(let[t,r]of Object.entries(e[n]||{}))o[t]={},r&&ai(o[t],r,i);for(let e in t[n])Xo.call(t[n],e)&&(o[e]||(o[e]={}),t[n]&&t[n][e]&&ai(o[e],t[n][e],i));e[n]=o}return e}var si=(e,t)=>ai(e,t,ei);function li(e){let t=qr(e),r=cn(e),n=en(e),{fromPlainObject:o,toPlainObject:i}=function(e){return{fromPlainObject:function(t){return e(t,{enter:function(e){e.children&&!(e.children instanceof Lr)&&(e.children=(new Lr).fromArray(e.children))}}),t},toPlainObject:function(t){return e(t,{leave:function(e){e.children&&e.children instanceof Lr&&(e.children=e.children.toArray())}}),t}}}(r),a={lexer:null,createLexer:e=>new Zo(e,a,a.lexer.structure),tokenize:_r,parse:t,generate:n,walk:r,find:r.find,findLast:r.findLast,findAll:r.findAll,fromPlainObject:o,toPlainObject:i,fork(t){let r=si({},e);return li("function"==typeof t?t(r,Object.assign):si(r,t))}};return a.lexer=new Zo({generic:!0,types:e.types,atrules:e.atrules,properties:e.properties,node:e.node},a),a}var ci=e=>li(si({},e)),ui={};gt(ui,{AnPlusB:()=>hi,Atrule:()=>Ai,AtrulePrelude:()=>Ni,AttributeSelector:()=>Di,Block:()=>Wi,Brackets:()=>ta,CDC:()=>aa,CDO:()=>ha,ClassSelector:()=>ga,Combinator:()=>wa,Comment:()=>Ta,Declaration:()=>La,DeclarationList:()=>ja,Dimension:()=>Ya,Function:()=>Xa,Hash:()=>is,IdSelector:()=>gs,Identifier:()=>hs,MediaFeature:()=>ws,MediaQuery:()=>Ts,MediaQueryList:()=>Ls,Nth:()=>Os,Number:()=>Bs,Operator:()=>$s,Parentheses:()=>Ks,Percentage:()=>rl,PseudoClassSelector:()=>sl,PseudoElementSelector:()=>pl,Ratio:()=>kl,Raw:()=>Sl,Rule:()=>Ll,Selector:()=>Fl,SelectorList:()=>Vl,String:()=>Ql,StyleSheet:()=>oc,TypeSelector:()=>hc,UnicodeRange:()=>yc,Url:()=>Tc,Value:()=>Pc,WhiteSpace:()=>Fc});var hi={};gt(hi,{generate:()=>Ei,name:()=>vi,parse:()=>xi,structure:()=>wi});var di=43,pi=45,mi=110,fi=!0;function gi(e,t){let r=this.tokenStart+e,n=this.charCodeAt(r);for((n===di||n===pi)&&(t&&this.error("Number sign is not allowed"),r++);r0&&this.skip(e),0===t&&(r=this.charCodeAt(this.tokenStart),r!==di&&r!==pi&&this.error("Number sign is expected")),yi.call(this,0!==t),t===pi?"-"+this.consume(10):this.consume(10)}var vi="AnPlusB",wi={a:[String,null],b:[String,null]};function xi(){let e=this.tokenStart,t=null,r=null;if(10===this.tokenType)yi.call(this,false),r=this.consume(10);else if(1===this.tokenType&&this.cmpChar(this.tokenStart,pi))switch(t="-1",bi.call(this,1,mi),this.tokenEnd-this.tokenStart){case 2:this.next(),r=ki.call(this);break;case 3:bi.call(this,2,pi),this.next(),this.skipSC(),yi.call(this,fi),r="-"+this.consume(10);break;default:bi.call(this,2,pi),gi.call(this,3,fi),this.next(),r=this.substrToCursor(e+2)}else if(1===this.tokenType||this.isDelim(di)&&1===this.lookupType(1)){let n=0;switch(t="1",this.isDelim(di)&&(n=1,this.next()),bi.call(this,0,mi),this.tokenEnd-this.tokenStart){case 1:this.next(),r=ki.call(this);break;case 2:bi.call(this,1,pi),this.next(),this.skipSC(),yi.call(this,fi),r="-"+this.consume(10);break;default:bi.call(this,1,pi),gi.call(this,2,fi),this.next(),r=this.substrToCursor(e+n+1)}}else if(12===this.tokenType){let n=this.charCodeAt(this.tokenStart),o=n===di||n===pi,i=this.tokenStart+o;for(;iLi,name:()=>Ci,parse:()=>Ii,structure:()=>_i,walkContext:()=>Ri});var Ci="Atrule",Ri="atrule",_i={name:String,prelude:["AtrulePrelude","Raw",null],block:["Block",null]};function Ii(){let e,t,r=this.tokenStart,n=null,o=null;switch(this.eat(3),e=this.substrToCursor(r+1),t=e.toLowerCase(),this.skipSC(),!1===this.eof&&23!==this.tokenType&&17!==this.tokenType&&(n=this.parseAtrulePrelude?this.parseWithFallback(this.AtrulePrelude.bind(this,e),Si):Si.call(this,this.tokenIndex),this.skipSC()),this.tokenType){case 17:this.next();break;case 23:o=hasOwnProperty.call(this.atrule,t)&&"function"==typeof this.atrule[t].block?this.atrule[t].block.call(this):this.Block(Ti.call(this))}return{type:"Atrule",loc:this.getLocation(r,this.tokenStart),name:e,prelude:n,block:o}}function Li(e){this.token(3,"@"+e.name),null!==e.prelude&&this.node(e.prelude),e.block?this.node(e.block):this.token(17,";")}var Ni={};gt(Ni,{generate:()=>Ui,name:()=>zi,parse:()=>Oi,structure:()=>Mi,walkContext:()=>Pi});var zi="AtrulePrelude",Pi="atrulePrelude",Mi={children:[[]]};function Oi(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 Ui(e){this.children(e)}var Di={};gt(Di,{generate:()=>Vi,name:()=>Bi,parse:()=>Hi,structure:()=>ji});function Fi(){this.eof&&this.error("Unexpected end of input");let e=this.tokenStart,t=!1;return this.isDelim(42)?(t=!0,this.next()):this.isDelim(124)||this.eat(1),this.isDelim(124)?61!==this.charCodeAt(this.tokenStart+1)?(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 qi(){let e=this.tokenStart,t=this.charCodeAt(e);return 61!==t&&126!==t&&94!==t&&36!==t&&42!==t&&124!==t&&this.error("Attribute selector (=, ~=, ^=, $=, *=, |=) is expected"),this.next(),61!==t&&(this.isDelim(61)||this.error("Equal sign is expected"),this.next()),this.substrToCursor(e)}var Bi="AttributeSelector",ji={name:"Identifier",matcher:[String,null],value:["String","Identifier",null],flags:[String,null]};function Hi(){let e,t=this.tokenStart,r=null,n=null,o=null;return this.eat(19),this.skipSC(),e=Fi.call(this),this.skipSC(),20!==this.tokenType&&(1!==this.tokenType&&(r=qi.call(this),this.skipSC(),n=5===this.tokenType?this.String():this.Identifier(),this.skipSC()),1===this.tokenType&&(o=this.consume(1),this.skipSC())),this.eat(20),{type:"AttributeSelector",loc:this.getLocation(t,this.tokenStart),name:e,matcher:r,value:n,flags:o}}function Vi(e){this.token(9,"["),this.node(e.name),null!==e.matcher&&(this.tokenize(e.matcher),this.node(e.value)),null!==e.flags&&this.token(1,e.flags),this.token(9,"]")}var Wi={};function $i(e){return this.Raw(e,null,!0)}function Gi(){return this.parseWithFallback(this.Rule,$i)}function Yi(e){return this.Raw(e,this.consumeUntilSemicolonIncluded,!0)}function Ji(){if(17===this.tokenType)return Yi.call(this,this.tokenIndex);let e=this.parseWithFallback(this.Declaration,Yi);return 17===this.tokenType&&this.next(),e}gt(Wi,{generate:()=>ea,name:()=>Qi,parse:()=>Xi,structure:()=>Zi,walkContext:()=>Ki});var Qi="Block",Ki="block",Zi={children:[["Atrule","Rule","Declaration"]]};function Xi(e){let t=e?Ji:Gi,r=this.tokenStart,n=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:n.push(this.parseWithFallback(this.Atrule,$i));break;default:n.push(t.call(this))}return this.eof||this.eat(24),{type:"Block",loc:this.getLocation(r,this.tokenStart),children:n}}function ea(e){this.token(23,"{"),this.children(e,(e=>{"Declaration"===e.type&&this.token(17,";")})),this.token(24,"}")}var ta={};gt(ta,{generate:()=>ia,name:()=>ra,parse:()=>oa,structure:()=>na});var ra="Brackets",na={children:[[]]};function oa(e,t){let r=this.tokenStart,n=null;return this.eat(19),n=e.call(this,t),this.eof||this.eat(20),{type:"Brackets",loc:this.getLocation(r,this.tokenStart),children:n}}function ia(e){this.token(9,"["),this.children(e),this.token(9,"]")}var aa={};gt(aa,{generate:()=>ua,name:()=>sa,parse:()=>ca,structure:()=>la});var sa="CDC",la=[];function ca(){let e=this.tokenStart;return this.eat(15),{type:"CDC",loc:this.getLocation(e,this.tokenStart)}}function ua(){this.token(15,"--\x3e")}var ha={};gt(ha,{generate:()=>fa,name:()=>da,parse:()=>ma,structure:()=>pa});var da="CDO",pa=[];function ma(){let e=this.tokenStart;return this.eat(14),{type:"CDO",loc:this.getLocation(e,this.tokenStart)}}function fa(){this.token(14,"\x3c!--")}var ga={};gt(ga,{generate:()=>va,name:()=>ya,parse:()=>ka,structure:()=>ba});var ya="ClassSelector",ba={name:String};function ka(){return this.eatDelim(46),{type:"ClassSelector",loc:this.getLocation(this.tokenStart-1,this.tokenEnd),name:this.consume(1)}}function va(e){this.token(9,"."),this.token(1,e.name)}var wa={};gt(wa,{generate:()=>Sa,name:()=>xa,parse:()=>Aa,structure:()=>Ea});var xa="Combinator",Ea={name:String};function Aa(){let e,t=this.tokenStart;switch(this.tokenType){case 13:e=" ";break;case 9:switch(this.charCodeAt(this.tokenStart)){case 62:case 43:case 126:this.next();break;case 47:this.next(),this.eatIdent("deep"),this.eatDelim(47);break;default:this.error("Combinator is expected")}e=this.substrToCursor(t)}return{type:"Combinator",loc:this.getLocation(t,this.tokenStart),name:e}}function Sa(e){this.tokenize(e.name)}var Ta={};gt(Ta,{generate:()=>Ia,name:()=>Ca,parse:()=>_a,structure:()=>Ra});var Ca="Comment",Ra={value:String};function _a(){let e=this.tokenStart,t=this.tokenEnd;return this.eat(25),t-e+2>=2&&42===this.charCodeAt(t-2)&&47===this.charCodeAt(t-1)&&(t-=2),{type:"Comment",loc:this.getLocation(e,this.tokenStart),value:this.substring(e+2,t)}}function Ia(e){this.token(25,"/*"+e.value+"*/")}var La={};gt(La,{generate:()=>Fa,name:()=>Ma,parse:()=>Da,structure:()=>Ua,walkContext:()=>Oa});function Na(e){return this.Raw(e,this.consumeUntilExclamationMarkOrSemicolon,!0)}function za(e){return this.Raw(e,this.consumeUntilExclamationMarkOrSemicolon,!1)}function Pa(){let e=this.tokenIndex,t=this.Value();return"Raw"!==t.type&&!1===this.eof&&17!==this.tokenType&&!1===this.isDelim(33)&&!1===this.isBalanceEdge(e)&&this.error(),t}var Ma="Declaration",Oa="declaration",Ua={important:[Boolean,String],property:String,value:["Value","Raw"]};function Da(){let e,t=this.tokenStart,r=this.tokenIndex,n=qa.call(this),o=En(n),i=o?this.parseCustomProperty:this.parseValue,a=o?za:Na,s=!1;this.skipSC(),this.eat(16);let l=this.tokenIndex;if(o||this.skipSC(),e=i?this.parseWithFallback(Pa,a):a.call(this,this.tokenIndex),o&&"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(33)&&(s=Ba.call(this),this.skipSC()),!1===this.eof&&17!==this.tokenType&&!1===this.isBalanceEdge(r)&&this.error(),{type:"Declaration",loc:this.getLocation(t,this.tokenStart),important:s,property:n,value:e}}function Fa(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 qa(){let e=this.tokenStart;if(9===this.tokenType)switch(this.charCodeAt(this.tokenStart)){case 42:case 36:case 43:case 35:case 38:this.next();break;case 47:this.next(),this.isDelim(47)&&this.next()}return 4===this.tokenType?this.eat(4):this.eat(1),this.substrToCursor(e)}function Ba(){this.eat(9),this.skipSC();let e=this.consume(1);return"important"===e||e}var ja={};function Ha(e){return this.Raw(e,this.consumeUntilSemicolonIncluded,!0)}gt(ja,{generate:()=>Ga,name:()=>Va,parse:()=>$a,structure:()=>Wa});var Va="DeclarationList",Wa={children:[["Declaration"]]};function $a(){let e=this.createList();for(;!this.eof;)switch(this.tokenType){case 13:case 25:case 17:this.next();break;default:e.push(this.parseWithFallback(this.Declaration,Ha))}return{type:"DeclarationList",loc:this.getLocationFromList(e),children:e}}function Ga(e){this.children(e,(e=>{"Declaration"===e.type&&this.token(17,";")}))}var Ya={};gt(Ya,{generate:()=>Za,name:()=>Ja,parse:()=>Ka,structure:()=>Qa});var Ja="Dimension",Qa={value:String,unit:String};function Ka(){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 Za(e){this.token(12,e.value+e.unit)}var Xa={};gt(Xa,{generate:()=>os,name:()=>es,parse:()=>ns,structure:()=>rs,walkContext:()=>ts});var es="Function",ts="function",rs={name:String,children:[[]]};function ns(e,t){let r,n=this.tokenStart,o=this.consumeFunctionName(),i=o.toLowerCase();return r=t.hasOwnProperty(i)?t[i].call(this,t):e.call(this,t),this.eof||this.eat(22),{type:"Function",loc:this.getLocation(n,this.tokenStart),name:o,children:r}}function os(e){this.token(2,e.name+"("),this.children(e),this.token(22,")")}var is={};gt(is,{generate:()=>us,name:()=>ss,parse:()=>cs,structure:()=>ls,xxx:()=>as});var as="XXX",ss="Hash",ls={value:String};function cs(){let e=this.tokenStart;return this.eat(4),{type:"Hash",loc:this.getLocation(e,this.tokenStart),value:this.substrToCursor(e+1)}}function us(e){this.token(4,"#"+e.value)}var hs={};gt(hs,{generate:()=>fs,name:()=>ds,parse:()=>ms,structure:()=>ps});var ds="Identifier",ps={name:String};function ms(){return{type:"Identifier",loc:this.getLocation(this.tokenStart,this.tokenEnd),name:this.consume(1)}}function fs(e){this.token(1,e.name)}var gs={};gt(gs,{generate:()=>vs,name:()=>ys,parse:()=>ks,structure:()=>bs});var ys="IdSelector",bs={name:String};function ks(){let e=this.tokenStart;return this.eat(4),{type:"IdSelector",loc:this.getLocation(e,this.tokenStart),name:this.substrToCursor(e+1)}}function vs(e){this.token(9,"#"+e.name)}var ws={};gt(ws,{generate:()=>Ss,name:()=>xs,parse:()=>As,structure:()=>Es});var xs="MediaFeature",Es={name:String,value:["Identifier","Number","Dimension","Ratio",null]};function As(){let e,t=this.tokenStart,r=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:r=9===this.lookupNonWSType(1)?this.Ratio():this.Number();break;case 12:r=this.Dimension();break;case 1:r=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:r}}function Ss(e){this.token(21,"("),this.token(1,e.name),null!==e.value&&(this.token(16,":"),this.node(e.value)),this.token(22,")")}var Ts={};gt(Ts,{generate:()=>Is,name:()=>Cs,parse:()=>_s,structure:()=>Rs});var Cs="MediaQuery",Rs={children:[["Identifier","MediaFeature","WhiteSpace"]]};function _s(){let e=this.createList(),t=null;this.skipSC();e:for(;!this.eof;){switch(this.tokenType){case 25:case 13:this.next();continue;case 1:t=this.Identifier();break;case 21:t=this.MediaFeature();break;default:break e}e.push(t)}return null===t&&this.error("Identifier or parenthesis is expected"),{type:"MediaQuery",loc:this.getLocationFromList(e),children:e}}function Is(e){this.children(e)}var Ls={};gt(Ls,{generate:()=>Ms,name:()=>Ns,parse:()=>Ps,structure:()=>zs});var Ns="MediaQueryList",zs={children:[["MediaQuery"]]};function Ps(){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 Ms(e){this.children(e,(()=>this.token(18,",")))}var Os={};gt(Os,{generate:()=>qs,name:()=>Us,parse:()=>Fs,structure:()=>Ds});var Us="Nth",Ds={nth:["AnPlusB","Identifier"],selector:["SelectorList",null]};function Fs(){this.skipSC();let e,t=this.tokenStart,r=t,n=null;return e=this.lookupValue(0,"odd")||this.lookupValue(0,"even")?this.Identifier():this.AnPlusB(),r=this.tokenStart,this.skipSC(),this.lookupValue(0,"of")&&(this.next(),n=this.SelectorList(),r=this.tokenStart),{type:"Nth",loc:this.getLocation(t,r),nth:e,selector:n}}function qs(e){this.node(e.nth),null!==e.selector&&(this.token(1,"of"),this.node(e.selector))}var Bs={};gt(Bs,{generate:()=>Ws,name:()=>js,parse:()=>Vs,structure:()=>Hs});var js="Number",Hs={value:String};function Vs(){return{type:"Number",loc:this.getLocation(this.tokenStart,this.tokenEnd),value:this.consume(10)}}function Ws(e){this.token(10,e.value)}var $s={};gt($s,{generate:()=>Qs,name:()=>Gs,parse:()=>Js,structure:()=>Ys});var Gs="Operator",Ys={value:String};function Js(){let e=this.tokenStart;return this.next(),{type:"Operator",loc:this.getLocation(e,this.tokenStart),value:this.substrToCursor(e)}}function Qs(e){this.tokenize(e.value)}var Ks={};gt(Ks,{generate:()=>tl,name:()=>Zs,parse:()=>el,structure:()=>Xs});var Zs="Parentheses",Xs={children:[[]]};function el(e,t){let r=this.tokenStart,n=null;return this.eat(21),n=e.call(this,t),this.eof||this.eat(22),{type:"Parentheses",loc:this.getLocation(r,this.tokenStart),children:n}}function tl(e){this.token(21,"("),this.children(e),this.token(22,")")}var rl={};gt(rl,{generate:()=>al,name:()=>nl,parse:()=>il,structure:()=>ol});var nl="Percentage",ol={value:String};function il(){return{type:"Percentage",loc:this.getLocation(this.tokenStart,this.tokenEnd),value:this.consumeNumber(11)}}function al(e){this.token(11,e.value+"%")}var sl={};gt(sl,{generate:()=>dl,name:()=>ll,parse:()=>hl,structure:()=>ul,walkContext:()=>cl});var ll="PseudoClassSelector",cl="function",ul={name:String,children:[["Raw"],null]};function hl(){let e,t,r=this.tokenStart,n=null;return this.eat(16),2===this.tokenType?(e=this.consumeFunctionName(),t=e.toLowerCase(),hasOwnProperty.call(this.pseudo,t)?(this.skipSC(),n=this.pseudo[t].call(this),this.skipSC()):(n=this.createList(),n.push(this.Raw(this.tokenIndex,null,!1))),this.eat(22)):e=this.consume(1),{type:"PseudoClassSelector",loc:this.getLocation(r,this.tokenStart),name:e,children:n}}function dl(e){this.token(16,":"),null===e.children?this.token(1,e.name):(this.token(2,e.name+"("),this.children(e),this.token(22,")"))}var pl={};gt(pl,{generate:()=>bl,name:()=>ml,parse:()=>yl,structure:()=>gl,walkContext:()=>fl});var ml="PseudoElementSelector",fl="function",gl={name:String,children:[["Raw"],null]};function yl(){let e,t,r=this.tokenStart,n=null;return this.eat(16),this.eat(16),2===this.tokenType?(e=this.consumeFunctionName(),t=e.toLowerCase(),hasOwnProperty.call(this.pseudo,t)?(this.skipSC(),n=this.pseudo[t].call(this),this.skipSC()):(n=this.createList(),n.push(this.Raw(this.tokenIndex,null,!1))),this.eat(22)):e=this.consume(1),{type:"PseudoElementSelector",loc:this.getLocation(r,this.tokenStart),name:e,children:n}}function bl(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 kl={};gt(kl,{generate:()=>Al,name:()=>wl,parse:()=>El,structure:()=>xl});function vl(){this.skipSC();let e=this.consume(10);for(let t=0;t0&&13===this.lookupType(-1)?this.tokenIndex>1?this.getTokenStart(this.tokenIndex-1):this.firstCharOffset:this.tokenStart}gt(Sl,{generate:()=>Il,name:()=>Cl,parse:()=>_l,structure:()=>Rl});var Cl="Raw",Rl={value:String};function _l(e,t,r){let n,o=this.getTokenStart(e);return this.skipUntilBalanced(e,t||this.consumeUntilBalanceEnd),n=r&&this.tokenStart>o?Tl.call(this):this.tokenStart,{type:"Raw",loc:this.getLocation(o,n),value:this.substring(o,n)}}function Il(e){this.tokenize(e.value)}var Ll={};function Nl(e){return this.Raw(e,this.consumeUntilLeftCurlyBracket,!0)}function zl(){let e=this.SelectorList();return"Raw"!==e.type&&!1===this.eof&&23!==this.tokenType&&this.error(),e}gt(Ll,{generate:()=>Dl,name:()=>Pl,parse:()=>Ul,structure:()=>Ol,walkContext:()=>Ml});var Pl="Rule",Ml="rule",Ol={prelude:["SelectorList","Raw"],block:["Block"]};function Ul(){let e,t,r=this.tokenIndex,n=this.tokenStart;return e=this.parseRulePrelude?this.parseWithFallback(zl,Nl):Nl.call(this,r),t=this.Block(!0),{type:"Rule",loc:this.getLocation(n,this.tokenStart),prelude:e,block:t}}function Dl(e){this.node(e.prelude),this.node(e.block)}var Fl={};gt(Fl,{generate:()=>Hl,name:()=>ql,parse:()=>jl,structure:()=>Bl});var ql="Selector",Bl={children:[["TypeSelector","IdSelector","ClassSelector","AttributeSelector","PseudoClassSelector","PseudoElementSelector","Combinator","WhiteSpace"]]};function jl(){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 Hl(e){this.children(e)}var Vl={};gt(Vl,{generate:()=>Jl,name:()=>Wl,parse:()=>Yl,structure:()=>Gl,walkContext:()=>$l});var Wl="SelectorList",$l="selector",Gl={children:[["Selector","Raw"]]};function Yl(){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 Jl(e){this.children(e,(()=>this.token(18,",")))}var Ql={};gt(Ql,{generate:()=>nc,name:()=>ec,parse:()=>rc,structure:()=>tc});var Kl={};gt(Kl,{decode:()=>Zl,encode:()=>Xl});function Zl(e){let t=e.length,r=e.charCodeAt(0),n=34===r||39===r?1:0,o=1===n&&t>1&&e.charCodeAt(t-1)===r?t-2:t-1,i="";for(let r=n;r<=o;r++){let n=e.charCodeAt(r);if(92===n){if(r===o){r!==t-1&&(i=e.substr(r+1));break}if(n=e.charCodeAt(++r),or(92,n)){let t=r-1,n=yr(e,t);r=n-1,i+=wr(e.substring(t+1,n))}else 13===n&&10===e.charCodeAt(r+1)&&r++}else i+=e[r]}return i}function Xl(e,t){let r=t?"'":'"',n=t?39:34,o="",i=!1;for(let t=0;tuc,name:()=>ac,parse:()=>cc,structure:()=>lc,walkContext:()=>sc});function ic(e){return this.Raw(e,null,!1)}var ac="StyleSheet",sc="stylesheet",lc={children:[["Comment","CDO","CDC","Atrule","Rule","Raw"]]};function cc(){let e,t=this.tokenStart,r=this.createList();for(;!this.eof;){switch(this.tokenType){case 13:this.next();continue;case 25:if(33!==this.charCodeAt(this.tokenStart+2)){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,ic);break;default:e=this.parseWithFallback(this.Rule,ic)}r.push(e)}return{type:"StyleSheet",loc:this.getLocation(t,this.tokenStart),children:r}}function uc(e){this.children(e)}var hc={};gt(hc,{generate:()=>gc,name:()=>pc,parse:()=>fc,structure:()=>mc});function dc(){1!==this.tokenType&&!1===this.isDelim(42)&&this.error("Identifier or asterisk is expected"),this.next()}var pc="TypeSelector",mc={name:String};function fc(){let e=this.tokenStart;return this.isDelim(124)?(this.next(),dc.call(this)):(dc.call(this),this.isDelim(124)&&(this.next(),dc.call(this))),{type:"TypeSelector",loc:this.getLocation(e,this.tokenStart),name:this.substrToCursor(e)}}function gc(e){this.tokenize(e.name)}var yc={};gt(yc,{generate:()=>Sc,name:()=>xc,parse:()=>Ac,structure:()=>Ec});function bc(e,t){let r=0;for(let n=this.tokenStart+e;n6&&this.error("Too many hex digits",n)}return this.next(),r}function kc(e){let t=0;for(;this.isDelim(63);)++t>e&&this.error("Too many question marks"),this.next()}function vc(e){this.charCodeAt(this.tokenStart)!==e&&this.error((43===e?"Plus sign":"Hyphen minus")+" is expected")}function wc(){let e=0;switch(this.tokenType){case 10:if(e=bc.call(this,1,!0),this.isDelim(63)){kc.call(this,6-e);break}if(12===this.tokenType||10===this.tokenType){vc.call(this,45),bc.call(this,1,!1);break}break;case 12:e=bc.call(this,1,!0),e>0&&kc.call(this,6-e);break;default:if(this.eatDelim(43),1===this.tokenType){e=bc.call(this,0,!0),e>0&&kc.call(this,6-e);break}if(this.isDelim(63)){this.next(),kc.call(this,5);break}this.error("Hex digit or question mark is expected")}}var xc="UnicodeRange",Ec={value:String};function Ac(){let e=this.tokenStart;return this.eatIdent("u"),wc.call(this),{type:"UnicodeRange",loc:this.getLocation(e,this.tokenStart),value:this.substrToCursor(e)}}function Sc(e){this.tokenize(e.value)}var Tc={};gt(Tc,{generate:()=>zc,name:()=>Ic,parse:()=>Nc,structure:()=>Lc});var Cc={};gt(Cc,{decode:()=>Rc,encode:()=>_c});function Rc(e){let t=e.length,r=4,n=41===e.charCodeAt(t-1)?t-2:t-1,o="";for(;rDc,name:()=>Mc,parse:()=>Uc,structure:()=>Oc});var Mc="Value",Oc={children:[[]]};function Uc(){let e=this.tokenStart,t=this.readSequence(this.scope.Value);return{type:"Value",loc:this.getLocation(e,this.tokenStart),children:t}}function Dc(e){this.children(e)}var Fc={};gt(Fc,{generate:()=>Vc,name:()=>Bc,parse:()=>Hc,structure:()=>jc});var qc=Object.freeze({type:"WhiteSpace",loc:null,value:" "}),Bc="WhiteSpace",jc={value:String};function Hc(){return this.eat(13),qc}function Vc(e){this.token(13,e.value)}var Wc={generic:!0,generic:!0,types:{"absolute-size":"xx-small|x-small|small|medium|large|x-large|xx-large|xxx-large","alpha-value":"|","angle-percentage":"|","angular-color-hint":"","angular-color-stop":"&&?","angular-color-stop-list":"[ [, ]?]# , ","animateable-feature":"scroll-position|contents|",attachment:"scroll|fixed|local","attr()":"attr( ? [, ]? )","attr-matcher":"['~'|'|'|'^'|'$'|'*']? '='","attr-modifier":"i|s","attribute-selector":"'[' ']'|'[' [|] ? ']'","auto-repeat":"repeat( [auto-fill|auto-fit] , [? ]+ ? )","auto-track-list":"[? [|]]* ? [? [|]]* ?","baseline-position":"[first|last]? baseline","basic-shape":"||||","bg-image":"none|","bg-layer":"|| [/ ]?||||||||","bg-position":"[[left|center|right|top|bottom|]|[left|center|right|] [top|center|bottom|]|[center|[left|right] ?]&&[center|[top|bottom] ?]]","bg-size":"[|auto]{1,2}|cover|contain","blur()":"blur( )","blend-mode":"normal|multiply|screen|overlay|darken|lighten|color-dodge|color-burn|hard-light|soft-light|difference|exclusion|hue|saturation|color|luminosity",box:"border-box|padding-box|content-box","brightness()":"brightness( )","calc()":"calc( )","calc-sum":" [['+'|'-'] ]*","calc-product":" ['*' |'/' ]*","calc-value":"|||( )","cf-final-image":"|","cf-mixing-image":"?&&","circle()":"circle( []? [at ]? )","clamp()":"clamp( #{3} )","class-selector":"'.' ","clip-source":"",color:"|||||||currentcolor|","color-stop":"|","color-stop-angle":"{1,2}","color-stop-length":"{1,2}","color-stop-list":"[ [, ]?]# , ",combinator:"'>'|'+'|'~'|['||']","common-lig-values":"[common-ligatures|no-common-ligatures]","compat-auto":"searchfield|textarea|push-button|slider-horizontal|checkbox|radio|square-button|menulist|listbox|meter|progress-bar|button","composite-style":"clear|copy|source-over|source-in|source-out|source-atop|destination-over|destination-in|destination-out|destination-atop|xor","compositing-operator":"add|subtract|intersect|exclude","compound-selector":"[? * [ *]*]!","compound-selector-list":"#","complex-selector":" [? ]*","complex-selector-list":"#","conic-gradient()":"conic-gradient( [from ]? [at ]? , )","contextual-alt-values":"[contextual|no-contextual]","content-distribution":"space-between|space-around|space-evenly|stretch","content-list":"[|contents|||||]+","content-position":"center|start|end|flex-start|flex-end","content-replacement":"","contrast()":"contrast( [] )",counter:"|","counter()":"counter( , ? )","counter-name":"","counter-style":"|symbols( )","counter-style-name":"","counters()":"counters( , , ? )","cross-fade()":"cross-fade( , ? )","cubic-bezier-timing-function":"ease|ease-in|ease-out|ease-in-out|cubic-bezier( , , , )","deprecated-system-color":"ActiveBorder|ActiveCaption|AppWorkspace|Background|ButtonFace|ButtonHighlight|ButtonShadow|ButtonText|CaptionText|GrayText|Highlight|HighlightText|InactiveBorder|InactiveCaption|InactiveCaptionText|InfoBackground|InfoText|Menu|MenuText|Scrollbar|ThreeDDarkShadow|ThreeDFace|ThreeDHighlight|ThreeDLightShadow|ThreeDShadow|Window|WindowFrame|WindowText","discretionary-lig-values":"[discretionary-ligatures|no-discretionary-ligatures]","display-box":"contents|none","display-inside":"flow|flow-root|table|flex|grid|ruby","display-internal":"table-row-group|table-header-group|table-footer-group|table-row|table-cell|table-column-group|table-column|table-caption|ruby-base|ruby-text|ruby-base-container|ruby-text-container","display-legacy":"inline-block|inline-list-item|inline-table|inline-flex|inline-grid","display-listitem":"?&&[flow|flow-root]?&&list-item","display-outside":"block|inline|run-in","drop-shadow()":"drop-shadow( {2,3} ? )","east-asian-variant-values":"[jis78|jis83|jis90|jis04|simplified|traditional]","east-asian-width-values":"[full-width|proportional-width]","element()":"element( , [first|start|last|first-except]? )|element( )","ellipse()":"ellipse( [{2}]? [at ]? )","ending-shape":"circle|ellipse","env()":"env( , ? )","explicit-track-list":"[? ]+ ?","family-name":"|+","feature-tag-value":" [|on|off]?","feature-type":"@stylistic|@historical-forms|@styleset|@character-variant|@swash|@ornaments|@annotation","feature-value-block":" '{' '}'","feature-value-block-list":"+","feature-value-declaration":" : + ;","feature-value-declaration-list":"","feature-value-name":"","fill-rule":"nonzero|evenodd","filter-function":"|||||||||","filter-function-list":"[|]+","final-bg-layer":"<'background-color'>|||| [/ ]?||||||||","fit-content()":"fit-content( [|] )","fixed-breadth":"","fixed-repeat":"repeat( [] , [? ]+ ? )","fixed-size":"|minmax( , )|minmax( , )","font-stretch-absolute":"normal|ultra-condensed|extra-condensed|condensed|semi-condensed|semi-expanded|expanded|extra-expanded|ultra-expanded|","font-variant-css21":"[normal|small-caps]","font-weight-absolute":"normal|bold|","frequency-percentage":"|","general-enclosed":"[ )]|( )","generic-family":"serif|sans-serif|cursive|fantasy|monospace|-apple-system","generic-name":"serif|sans-serif|cursive|fantasy|monospace","geometry-box":"|fill-box|stroke-box|view-box",gradient:"|||||<-legacy-gradient>","grayscale()":"grayscale( )","grid-line":"auto||[&&?]|[span&&[||]]","historical-lig-values":"[historical-ligatures|no-historical-ligatures]","hsl()":"hsl( [/ ]? )|hsl( , , , ? )","hsla()":"hsla( [/ ]? )|hsla( , , , ? )",hue:"|","hue-rotate()":"hue-rotate( )","hwb()":"hwb( [|none] [|none] [|none] [/ [|none]]? )",image:"||||||","image()":"image( ? [? , ?]! )","image-set()":"image-set( # )","image-set-option":"[|] [||type( )]","image-src":"|","image-tags":"ltr|rtl","inflexible-breadth":"||min-content|max-content|auto","inset()":"inset( {1,4} [round <'border-radius'>]? )","invert()":"invert( )","keyframes-name":"|","keyframe-block":"# { }","keyframe-block-list":"+","keyframe-selector":"from|to|","layer()":"layer( )","leader()":"leader( )","leader-type":"dotted|solid|space|","length-percentage":"|","line-names":"'[' * ']'","line-name-list":"[|]+","line-style":"none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset","line-width":"|thin|medium|thick","linear-color-hint":"","linear-color-stop":" ?","linear-gradient()":"linear-gradient( [|to ]? , )","mask-layer":"|| [/ ]?||||||[|no-clip]||||","mask-position":"[|left|center|right] [|top|center|bottom]?","mask-reference":"none||","mask-source":"","masking-mode":"alpha|luminance|match-source","matrix()":"matrix( #{6} )","matrix3d()":"matrix3d( #{16} )","max()":"max( # )","media-and":" [and ]+","media-condition":"|||","media-condition-without-or":"||","media-feature":"( [||] )","media-in-parens":"( )||","media-not":"not ","media-or":" [or ]+","media-query":"|[not|only]? [and ]?","media-query-list":"#","media-type":"","mf-boolean":"","mf-name":"","mf-plain":" : ","mf-range":" ['<'|'>']? '='? | ['<'|'>']? '='? | '<' '='? '<' '='? | '>' '='? '>' '='? ","mf-value":"|||","min()":"min( # )","minmax()":"minmax( [||min-content|max-content|auto] , [|||min-content|max-content|auto] )","name-repeat":"repeat( [|auto-fill] , + )","named-color":"transparent|aliceblue|antiquewhite|aqua|aquamarine|azure|beige|bisque|black|blanchedalmond|blue|blueviolet|brown|burlywood|cadetblue|chartreuse|chocolate|coral|cornflowerblue|cornsilk|crimson|cyan|darkblue|darkcyan|darkgoldenrod|darkgray|darkgreen|darkgrey|darkkhaki|darkmagenta|darkolivegreen|darkorange|darkorchid|darkred|darksalmon|darkseagreen|darkslateblue|darkslategray|darkslategrey|darkturquoise|darkviolet|deeppink|deepskyblue|dimgray|dimgrey|dodgerblue|firebrick|floralwhite|forestgreen|fuchsia|gainsboro|ghostwhite|gold|goldenrod|gray|green|greenyellow|grey|honeydew|hotpink|indianred|indigo|ivory|khaki|lavender|lavenderblush|lawngreen|lemonchiffon|lightblue|lightcoral|lightcyan|lightgoldenrodyellow|lightgray|lightgreen|lightgrey|lightpink|lightsalmon|lightseagreen|lightskyblue|lightslategray|lightslategrey|lightsteelblue|lightyellow|lime|limegreen|linen|magenta|maroon|mediumaquamarine|mediumblue|mediumorchid|mediumpurple|mediumseagreen|mediumslateblue|mediumspringgreen|mediumturquoise|mediumvioletred|midnightblue|mintcream|mistyrose|moccasin|navajowhite|navy|oldlace|olive|olivedrab|orange|orangered|orchid|palegoldenrod|palegreen|paleturquoise|palevioletred|papayawhip|peachpuff|peru|pink|plum|powderblue|purple|rebeccapurple|red|rosybrown|royalblue|saddlebrown|salmon|sandybrown|seagreen|seashell|sienna|silver|skyblue|slateblue|slategray|slategrey|snow|springgreen|steelblue|tan|teal|thistle|tomato|turquoise|violet|wheat|white|whitesmoke|yellow|yellowgreen|<-non-standard-color>","namespace-prefix":"","ns-prefix":"[|'*']? '|'","number-percentage":"|","numeric-figure-values":"[lining-nums|oldstyle-nums]","numeric-fraction-values":"[diagonal-fractions|stacked-fractions]","numeric-spacing-values":"[proportional-nums|tabular-nums]",nth:"|even|odd","opacity()":"opacity( [] )","overflow-position":"unsafe|safe","outline-radius":"|","page-body":"? [; ]?| ","page-margin-box":" '{' '}'","page-margin-box-type":"@top-left-corner|@top-left|@top-center|@top-right|@top-right-corner|@bottom-left-corner|@bottom-left|@bottom-center|@bottom-right|@bottom-right-corner|@left-top|@left-middle|@left-bottom|@right-top|@right-middle|@right-bottom","page-selector-list":"[#]?","page-selector":"+| *","page-size":"A5|A4|A3|B5|B4|JIS-B5|JIS-B4|letter|legal|ledger","path()":"path( [ ,]? )","paint()":"paint( , ? )","perspective()":"perspective( )","polygon()":"polygon( ? , [ ]# )",position:"[[left|center|right]||[top|center|bottom]|[left|center|right|] [top|center|bottom|]?|[[left|right] ]&&[[top|bottom] ]]","pseudo-class-selector":"':' |':' ')'","pseudo-element-selector":"':' ","pseudo-page":": [left|right|first|blank]",quote:"open-quote|close-quote|no-open-quote|no-close-quote","radial-gradient()":"radial-gradient( [||]? [at ]? , )","relative-selector":"? ","relative-selector-list":"#","relative-size":"larger|smaller","repeat-style":"repeat-x|repeat-y|[repeat|space|round|no-repeat]{1,2}","repeating-linear-gradient()":"repeating-linear-gradient( [|to ]? , )","repeating-radial-gradient()":"repeating-radial-gradient( [||]? [at ]? , )","rgb()":"rgb( {3} [/ ]? )|rgb( {3} [/ ]? )|rgb( #{3} , ? )|rgb( #{3} , ? )","rgba()":"rgba( {3} [/ ]? )|rgba( {3} [/ ]? )|rgba( #{3} , ? )|rgba( #{3} , ? )","rotate()":"rotate( [|] )","rotate3d()":"rotate3d( , , , [|] )","rotateX()":"rotateX( [|] )","rotateY()":"rotateY( [|] )","rotateZ()":"rotateZ( [|] )","saturate()":"saturate( )","scale()":"scale( , ? )","scale3d()":"scale3d( , , )","scaleX()":"scaleX( )","scaleY()":"scaleY( )","scaleZ()":"scaleZ( )","self-position":"center|start|end|self-start|self-end|flex-start|flex-end","shape-radius":"|closest-side|farthest-side","skew()":"skew( [|] , [|]? )","skewX()":"skewX( [|] )","skewY()":"skewY( [|] )","sepia()":"sepia( )",shadow:"inset?&&{2,4}&&?","shadow-t":"[{2,3}&&?]",shape:"rect( , , , )|rect( )","shape-box":"|margin-box","side-or-corner":"[left|right]||[top|bottom]","single-animation":"