@cas-smartdesign/element-preview 0.2.2 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/docs/doc.mjs CHANGED
@@ -1,12 +1,12 @@
1
- (function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const s of o.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&n(s)}).observe(document,{childList:!0,subtree:!0});function t(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function n(i){if(i.ep)return;i.ep=!0;const o=t(i);fetch(i.href,o)}})();const Cr="modulepreload",Rr=function(r,e){return new URL(r,e).href},Ht={},Ar=function(e,t,n){let i=Promise.resolve();if(t&&t.length>0){const o=document.getElementsByTagName("link");i=Promise.all(t.map(s=>{if(s=Rr(s,n),s in Ht)return;Ht[s]=!0;const a=s.endsWith(".css"),l=a?'[rel="stylesheet"]':"";if(!!n)for(let b=o.length-1;b>=0;b--){const g=o[b];if(g.href===s&&(!a||g.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${s}"]${l}`))return;const f=document.createElement("link");if(f.rel=a?"stylesheet":Cr,a||(f.as="script",f.crossOrigin=""),f.href=s,document.head.appendChild(f),a)return new Promise((b,g)=>{f.addEventListener("load",b),f.addEventListener("error",()=>g(new Error(`Unable to preload CSS for ${s}`)))})}))}return i.then(()=>e()).catch(o=>{const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=o,window.dispatchEvent(s),!s.defaultPrevented)throw o})},kr=`<!-- Always give the root element a unique ID if it has to be referenced in CSS or TS code -->
1
+ (function(){const g=document.createElement("link").relList;if(g&&g.supports&&g.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))h(r);new MutationObserver(r=>{for(const f of r)if(f.type==="childList")for(const s of f.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&h(s)}).observe(document,{childList:!0,subtree:!0});function b(r){const f={};return r.integrity&&(f.integrity=r.integrity),r.referrerPolicy&&(f.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?f.credentials="include":r.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function h(r){if(r.ep)return;r.ep=!0;const f=b(r);fetch(r.href,f)}})();const Nr="modulepreload",Ir=function(c,g){return new URL(c,g).href},on={},Pr=function(g,b,h){let r=Promise.resolve();if(b&&b.length>0){let l=function(e){return Promise.all(e.map(i=>Promise.resolve(i).then(t=>({status:"fulfilled",value:t}),t=>({status:"rejected",reason:t}))))};const s=document.getElementsByTagName("link"),p=document.querySelector("meta[property=csp-nonce]"),x=p?.nonce||p?.getAttribute("nonce");r=l(b.map(e=>{if(e=Ir(e,h),e in on)return;on[e]=!0;const i=e.endsWith(".css"),t=i?'[rel="stylesheet"]':"";if(!!h)for(let u=s.length-1;u>=0;u--){const d=s[u];if(d.href===e&&(!i||d.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${e}"]${t}`))return;const a=document.createElement("link");if(a.rel=i?"stylesheet":Nr,i||(a.as="script"),a.crossOrigin="",a.href=e,x&&a.setAttribute("nonce",x),document.head.appendChild(a),i)return new Promise((u,d)=>{a.addEventListener("load",u),a.addEventListener("error",()=>d(new Error(`Unable to preload CSS for ${e}`)))})}))}function f(s){const p=new Event("vite:preloadError",{cancelable:!0});if(p.payload=s,window.dispatchEvent(p),!p.defaultPrevented)throw s}return r.then(s=>{for(const p of s||[])p.status==="rejected"&&f(p.reason);return g().catch(f)})},Lr=`<!-- Always give the root element a unique ID if it has to be referenced in CSS or TS code -->
2
2
  <div id="element-preview-example-container">
3
3
  <div id="results"></div>
4
4
  <a id="reset" href="javascript:void(0)">Reset</a>
5
5
  <div id="buttons"></div>
6
6
  </div>
7
- `,Mr=`<h2 id="demo">Demo</h2>
7
+ `,Dr=`<h2 id="demo">Demo</h2>
8
8
  <p>A simple interactive demo to show how to target elements from CSS and from TypeScript code.</p>
9
- `,Tr=`/* Root element can be referenced by a unique ID, not by "body" */
9
+ `,Br=`/* Root element can be referenced by a unique ID, not by "body" */
10
10
  #element-preview-example-container {
11
11
  padding: 16px;
12
12
  background-color: #f0f0f0;
@@ -49,8 +49,7 @@
49
49
  #reset {
50
50
  text-align: right;
51
51
  }
52
- `,Nr=`/* eslint-disable @typescript-eslint/no-non-null-assertion */ ///
53
- // Import additional source
52
+ `,qr=`// Import additional source
54
53
  import { getNextColor } from "./colors";
55
54
 
56
55
  // The root container should be referenced by its ID
@@ -112,7 +111,7 @@ function buttonClicked(event: Event) {
112
111
 
113
112
  start();
114
113
  container.querySelector("#reset")?.addEventListener("click", start);
115
- `,Ir=`let nextColor = 1;
114
+ `,Ur=`let nextColor = 1;
116
115
 
117
116
  export const colors = [
118
117
  "#1467ba",
@@ -130,7 +129,7 @@ export const colors = [
130
129
  export function getNextColor() {
131
130
  return colors[nextColor++ % colors.length];
132
131
  }
133
- `,Pr=`import { ExampleDescription } from "../../../element-preview"; /// import { ExampleDescription } from "@cas-smartdesign/element-preview";
132
+ `,zr=`import { ExampleDescription } from "../../../element-preview"; /// import { ExampleDescription } from "@cas-smartdesign/element-preview";
134
133
 
135
134
  import { default as mainContent } from "./example.html?raw";
136
135
  import { default as description } from "./example.md";
@@ -174,38 +173,41 @@ const example: ExampleDescription = {
174
173
  };
175
174
 
176
175
  export default example;
177
- `,Lr=`## Demo\r
176
+ `,jr=`## Demo\r
178
177
  \r
179
178
  A simple interactive demo to show how to target elements from CSS and from TypeScript code.\r
180
- `,Dr={mainContent:kr,description:Mr,css:Tr,initializer:{content:Nr,type:"typescript",initialize:()=>Ar(()=>import("./example.js"),__vite__mapDeps([]),import.meta.url)},additionalSources:[{type:"source",language:"typescript",content:Ir,label:"colors.ts"},{type:"source",language:"typescript",content:Pr,label:"index.ts"},{type:"source",language:"raw",content:Lr,label:"example.md"}]},$r=Object.freeze(Object.defineProperty({__proto__:null,default:Dr},Symbol.toStringTag,{value:"Module"})),Br="code{white-space:pre}.example{display:flex;flex-wrap:wrap;flex-direction:row;align-items:center;gap:16px}.example>*{flex:1 1 500px}.example .tab-control{overflow:hidden}.example div[role=tab]{cursor:pointer;padding:8px 16px;display:inline-block;font-size:16px;border-bottom:2px solid transparent;background-clip:padding-box;-webkit-user-select:none;user-select:none}.example div[role=tab]:hover{background-color:#1467ba14}.example div[role=tab][selected]{background-color:#1467ba21;border-bottom:2px solid #1467ba}.tab-content{margin:16px 0}.tab-content>pre{padding-top:0}.tab-content.code{max-height:500px;overflow:auto}.tab-content.code pre{margin:0}",Ur="pre code.hljs{display:block;overflow-x:auto;padding:1em}code.hljs{padding:3px 5px}.hljs{color:#24292e;background:#fff}.hljs-doctag,.hljs-keyword,.hljs-meta .hljs-keyword,.hljs-template-tag,.hljs-template-variable,.hljs-type,.hljs-variable.language_{color:#d73a49}.hljs-title,.hljs-title.class_,.hljs-title.class_.inherited__,.hljs-title.function_{color:#6f42c1}.hljs-attr,.hljs-attribute,.hljs-literal,.hljs-meta,.hljs-number,.hljs-operator,.hljs-variable,.hljs-selector-attr,.hljs-selector-class,.hljs-selector-id{color:#005cc5}.hljs-regexp,.hljs-string,.hljs-meta .hljs-string{color:#032f62}.hljs-built_in,.hljs-symbol{color:#e36209}.hljs-comment,.hljs-code,.hljs-formula{color:#6a737d}.hljs-name,.hljs-quote,.hljs-selector-tag,.hljs-selector-pseudo{color:#22863a}.hljs-subst{color:#24292e}.hljs-section{color:#005cc5;font-weight:700}.hljs-bullet{color:#735c0f}.hljs-emphasis{color:#24292e;font-style:italic}.hljs-strong{color:#24292e;font-weight:700}.hljs-addition{color:#22863a;background-color:#f0fff4}.hljs-deletion{color:#b31d28;background-color:#ffeef0}";function _t(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}function zr(r){if(r.__esModule)return r;var e=r.default;if(typeof e=="function"){var t=function n(){return this instanceof n?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};t.prototype=e.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(r).forEach(function(n){var i=Object.getOwnPropertyDescriptor(r,n);Object.defineProperty(t,n,i.get?i:{enumerable:!0,get:function(){return r[n]}})}),t}function bn(r){return r instanceof Map?r.clear=r.delete=r.set=function(){throw new Error("map is read-only")}:r instanceof Set&&(r.add=r.clear=r.delete=function(){throw new Error("set is read-only")}),Object.freeze(r),Object.getOwnPropertyNames(r).forEach(e=>{const t=r[e],n=typeof t;(n==="object"||n==="function")&&!Object.isFrozen(t)&&bn(t)}),r}class Gt{constructor(e){e.data===void 0&&(e.data={}),this.data=e.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function yn(r){return r.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")}function K(r,...e){const t=Object.create(null);for(const n in r)t[n]=r[n];return e.forEach(function(n){for(const i in n)t[i]=n[i]}),t}const jr="</span>",Wt=r=>!!r.scope,qr=(r,{prefix:e})=>{if(r.startsWith("language:"))return r.replace("language:","language-");if(r.includes(".")){const t=r.split(".");return[`${e}${t.shift()}`,...t.map((n,i)=>`${n}${"_".repeat(i+1)}`)].join(" ")}return`${e}${r}`};class Fr{constructor(e,t){this.buffer="",this.classPrefix=t.classPrefix,e.walk(this)}addText(e){this.buffer+=yn(e)}openNode(e){if(!Wt(e))return;const t=qr(e.scope,{prefix:this.classPrefix});this.span(t)}closeNode(e){Wt(e)&&(this.buffer+=jr)}value(){return this.buffer}span(e){this.buffer+=`<span class="${e}">`}}const Kt=(r={})=>{const e={children:[]};return Object.assign(e,r),e};class Ot{constructor(){this.rootNode=Kt(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(e){this.top.children.push(e)}openNode(e){const t=Kt({scope:e});this.add(t),this.stack.push(t)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(e){return this.constructor._walk(e,this.rootNode)}static _walk(e,t){return typeof t=="string"?e.addText(t):t.children&&(e.openNode(t),t.children.forEach(n=>this._walk(e,n)),e.closeNode(t)),e}static _collapse(e){typeof e!="string"&&e.children&&(e.children.every(t=>typeof t=="string")?e.children=[e.children.join("")]:e.children.forEach(t=>{Ot._collapse(t)}))}}class Hr extends Ot{constructor(e){super(),this.options=e}addText(e){e!==""&&this.add(e)}startScope(e){this.openNode(e)}endScope(){this.closeNode()}__addSublanguage(e,t){const n=e.root;t&&(n.scope=`language:${t}`),this.add(n)}toHTML(){return new Fr(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function de(r){return r?typeof r=="string"?r:r.source:null}function wn(r){return Q("(?=",r,")")}function Gr(r){return Q("(?:",r,")*")}function Wr(r){return Q("(?:",r,")?")}function Q(...r){return r.map(t=>de(t)).join("")}function Kr(r){const e=r[r.length-1];return typeof e=="object"&&e.constructor===Object?(r.splice(r.length-1,1),e):{}}function Ct(...r){return"("+(Kr(r).capture?"":"?:")+r.map(n=>de(n)).join("|")+")"}function xn(r){return new RegExp(r.toString()+"|").exec("").length-1}function Zr(r,e){const t=r&&r.exec(e);return t&&t.index===0}const Xr=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function Rt(r,{joinWith:e}){let t=0;return r.map(n=>{t+=1;const i=t;let o=de(n),s="";for(;o.length>0;){const a=Xr.exec(o);if(!a){s+=o;break}s+=o.substring(0,a.index),o=o.substring(a.index+a[0].length),a[0][0]==="\\"&&a[1]?s+="\\"+String(Number(a[1])+i):(s+=a[0],a[0]==="("&&t++)}return s}).map(n=>`(${n})`).join(e)}const Jr=/\b\B/,En="[a-zA-Z]\\w*",At="[a-zA-Z_]\\w*",vn="\\b\\d+(\\.\\d+)?",Sn="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",_n="\\b(0b[01]+)",Vr="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",Yr=(r={})=>{const e=/^#![ ]*\//;return r.binary&&(r.begin=Q(e,/.*\b/,r.binary,/\b.*/)),K({scope:"meta",begin:e,end:/$/,relevance:0,"on:begin":(t,n)=>{t.index!==0&&n.ignoreMatch()}},r)},pe={begin:"\\\\[\\s\\S]",relevance:0},Qr={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[pe]},ei={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[pe]},ti={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},Ge=function(r,e,t={}){const n=K({scope:"comment",begin:r,end:e,contains:[]},t);n.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const i=Ct("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return n.contains.push({begin:Q(/[ ]+/,"(",i,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),n},ni=Ge("//","$"),ri=Ge("/\\*","\\*/"),ii=Ge("#","$"),si={scope:"number",begin:vn,relevance:0},oi={scope:"number",begin:Sn,relevance:0},ai={scope:"number",begin:_n,relevance:0},li={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[pe,{begin:/\[/,end:/\]/,relevance:0,contains:[pe]}]},ci={scope:"title",begin:En,relevance:0},ui={scope:"title",begin:At,relevance:0},fi={begin:"\\.\\s*"+At,relevance:0},hi=function(r){return Object.assign(r,{"on:begin":(e,t)=>{t.data._beginMatch=e[1]},"on:end":(e,t)=>{t.data._beginMatch!==e[1]&&t.ignoreMatch()}})};var Ce=Object.freeze({__proto__:null,APOS_STRING_MODE:Qr,BACKSLASH_ESCAPE:pe,BINARY_NUMBER_MODE:ai,BINARY_NUMBER_RE:_n,COMMENT:Ge,C_BLOCK_COMMENT_MODE:ri,C_LINE_COMMENT_MODE:ni,C_NUMBER_MODE:oi,C_NUMBER_RE:Sn,END_SAME_AS_BEGIN:hi,HASH_COMMENT_MODE:ii,IDENT_RE:En,MATCH_NOTHING_RE:Jr,METHOD_GUARD:fi,NUMBER_MODE:si,NUMBER_RE:vn,PHRASAL_WORDS_MODE:ti,QUOTE_STRING_MODE:ei,REGEXP_MODE:li,RE_STARTERS_RE:Vr,SHEBANG:Yr,TITLE_MODE:ci,UNDERSCORE_IDENT_RE:At,UNDERSCORE_TITLE_MODE:ui});function di(r,e){r.input[r.index-1]==="."&&e.ignoreMatch()}function pi(r,e){r.className!==void 0&&(r.scope=r.className,delete r.className)}function gi(r,e){e&&r.beginKeywords&&(r.begin="\\b("+r.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",r.__beforeBegin=di,r.keywords=r.keywords||r.beginKeywords,delete r.beginKeywords,r.relevance===void 0&&(r.relevance=0))}function mi(r,e){Array.isArray(r.illegal)&&(r.illegal=Ct(...r.illegal))}function bi(r,e){if(r.match){if(r.begin||r.end)throw new Error("begin & end are not supported with match");r.begin=r.match,delete r.match}}function yi(r,e){r.relevance===void 0&&(r.relevance=1)}const wi=(r,e)=>{if(!r.beforeMatch)return;if(r.starts)throw new Error("beforeMatch cannot be used with starts");const t=Object.assign({},r);Object.keys(r).forEach(n=>{delete r[n]}),r.keywords=t.keywords,r.begin=Q(t.beforeMatch,wn(t.begin)),r.starts={relevance:0,contains:[Object.assign(t,{endsParent:!0})]},r.relevance=0,delete t.beforeMatch},xi=["of","and","for","in","not","or","if","then","parent","list","value"],Ei="keyword";function On(r,e,t=Ei){const n=Object.create(null);return typeof r=="string"?i(t,r.split(" ")):Array.isArray(r)?i(t,r):Object.keys(r).forEach(function(o){Object.assign(n,On(r[o],e,o))}),n;function i(o,s){e&&(s=s.map(a=>a.toLowerCase())),s.forEach(function(a){const l=a.split("|");n[l[0]]=[o,vi(l[0],l[1])]})}}function vi(r,e){return e?Number(e):Si(r)?0:1}function Si(r){return xi.includes(r.toLowerCase())}const Zt={},Y=r=>{console.error(r)},Xt=(r,...e)=>{console.log(`WARN: ${r}`,...e)},re=(r,e)=>{Zt[`${r}/${e}`]||(console.log(`Deprecated as of ${r}. ${e}`),Zt[`${r}/${e}`]=!0)},Ue=new Error;function Cn(r,e,{key:t}){let n=0;const i=r[t],o={},s={};for(let a=1;a<=e.length;a++)s[a+n]=i[a],o[a+n]=!0,n+=xn(e[a-1]);r[t]=s,r[t]._emit=o,r[t]._multi=!0}function _i(r){if(Array.isArray(r.begin)){if(r.skip||r.excludeBegin||r.returnBegin)throw Y("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),Ue;if(typeof r.beginScope!="object"||r.beginScope===null)throw Y("beginScope must be object"),Ue;Cn(r,r.begin,{key:"beginScope"}),r.begin=Rt(r.begin,{joinWith:""})}}function Oi(r){if(Array.isArray(r.end)){if(r.skip||r.excludeEnd||r.returnEnd)throw Y("skip, excludeEnd, returnEnd not compatible with endScope: {}"),Ue;if(typeof r.endScope!="object"||r.endScope===null)throw Y("endScope must be object"),Ue;Cn(r,r.end,{key:"endScope"}),r.end=Rt(r.end,{joinWith:""})}}function Ci(r){r.scope&&typeof r.scope=="object"&&r.scope!==null&&(r.beginScope=r.scope,delete r.scope)}function Ri(r){Ci(r),typeof r.beginScope=="string"&&(r.beginScope={_wrap:r.beginScope}),typeof r.endScope=="string"&&(r.endScope={_wrap:r.endScope}),_i(r),Oi(r)}function Ai(r){function e(s,a){return new RegExp(de(s),"m"+(r.case_insensitive?"i":"")+(r.unicodeRegex?"u":"")+(a?"g":""))}class t{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(a,l){l.position=this.position++,this.matchIndexes[this.matchAt]=l,this.regexes.push([l,a]),this.matchAt+=xn(a)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const a=this.regexes.map(l=>l[1]);this.matcherRe=e(Rt(a,{joinWith:"|"}),!0),this.lastIndex=0}exec(a){this.matcherRe.lastIndex=this.lastIndex;const l=this.matcherRe.exec(a);if(!l)return null;const c=l.findIndex((b,g)=>g>0&&b!==void 0),f=this.matchIndexes[c];return l.splice(0,c),Object.assign(l,f)}}class n{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(a){if(this.multiRegexes[a])return this.multiRegexes[a];const l=new t;return this.rules.slice(a).forEach(([c,f])=>l.addRule(c,f)),l.compile(),this.multiRegexes[a]=l,l}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(a,l){this.rules.push([a,l]),l.type==="begin"&&this.count++}exec(a){const l=this.getMatcher(this.regexIndex);l.lastIndex=this.lastIndex;let c=l.exec(a);if(this.resumingScanAtSamePosition()&&!(c&&c.index===this.lastIndex)){const f=this.getMatcher(0);f.lastIndex=this.lastIndex+1,c=f.exec(a)}return c&&(this.regexIndex+=c.position+1,this.regexIndex===this.count&&this.considerAll()),c}}function i(s){const a=new n;return s.contains.forEach(l=>a.addRule(l.begin,{rule:l,type:"begin"})),s.terminatorEnd&&a.addRule(s.terminatorEnd,{type:"end"}),s.illegal&&a.addRule(s.illegal,{type:"illegal"}),a}function o(s,a){const l=s;if(s.isCompiled)return l;[pi,bi,Ri,wi].forEach(f=>f(s,a)),r.compilerExtensions.forEach(f=>f(s,a)),s.__beforeBegin=null,[gi,mi,yi].forEach(f=>f(s,a)),s.isCompiled=!0;let c=null;return typeof s.keywords=="object"&&s.keywords.$pattern&&(s.keywords=Object.assign({},s.keywords),c=s.keywords.$pattern,delete s.keywords.$pattern),c=c||/\w+/,s.keywords&&(s.keywords=On(s.keywords,r.case_insensitive)),l.keywordPatternRe=e(c,!0),a&&(s.begin||(s.begin=/\B|\b/),l.beginRe=e(l.begin),!s.end&&!s.endsWithParent&&(s.end=/\B|\b/),s.end&&(l.endRe=e(l.end)),l.terminatorEnd=de(l.end)||"",s.endsWithParent&&a.terminatorEnd&&(l.terminatorEnd+=(s.end?"|":"")+a.terminatorEnd)),s.illegal&&(l.illegalRe=e(s.illegal)),s.contains||(s.contains=[]),s.contains=[].concat(...s.contains.map(function(f){return ki(f==="self"?s:f)})),s.contains.forEach(function(f){o(f,l)}),s.starts&&o(s.starts,a),l.matcher=i(l),l}if(r.compilerExtensions||(r.compilerExtensions=[]),r.contains&&r.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return r.classNameAliases=K(r.classNameAliases||{}),o(r)}function Rn(r){return r?r.endsWithParent||Rn(r.starts):!1}function ki(r){return r.variants&&!r.cachedVariants&&(r.cachedVariants=r.variants.map(function(e){return K(r,{variants:null},e)})),r.cachedVariants?r.cachedVariants:Rn(r)?K(r,{starts:r.starts?K(r.starts):null}):Object.isFrozen(r)?K(r):r}var Mi="11.9.0";class Ti extends Error{constructor(e,t){super(e),this.name="HTMLInjectionError",this.html=t}}const it=yn,Jt=K,Vt=Symbol("nomatch"),Ni=7,An=function(r){const e=Object.create(null),t=Object.create(null),n=[];let i=!0;const o="Could not find the language '{}', did you forget to load/include a language module?",s={disableAutodetect:!0,name:"Plain text",contains:[]};let a={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:Hr};function l(u){return a.noHighlightRe.test(u)}function c(u){let d=u.className+" ";d+=u.parentNode?u.parentNode.className:"";const w=a.languageDetectRe.exec(d);if(w){const E=I(w[1]);return E||(Xt(o.replace("{}",w[1])),Xt("Falling back to no-highlight mode for this block.",u)),E?w[1]:"no-highlight"}return d.split(/\s+/).find(E=>l(E)||I(E))}function f(u,d,w){let E="",R="";typeof d=="object"?(E=u,w=d.ignoreIllegals,R=d.language):(re("10.7.0","highlight(lang, code, ...args) has been deprecated."),re("10.7.0",`Please use highlight(code, options) instead.
181
- https://github.com/highlightjs/highlight.js/issues/2277`),R=u,E=d),w===void 0&&(w=!0);const N={code:E,language:R};ne("before:highlight",N);const B=N.result?N.result:b(N.language,N.code,w);return B.code=N.code,ne("after:highlight",B),B}function b(u,d,w,E){const R=Object.create(null);function N(h,p){return h.keywords[p]}function B(){if(!y.keywords){M.addText(_);return}let h=0;y.keywordPatternRe.lastIndex=0;let p=y.keywordPatternRe.exec(_),x="";for(;p;){x+=_.substring(h,p.index);const v=q.case_insensitive?p[0].toLowerCase():p[0],T=N(y,v);if(T){const[G,_r]=T;if(M.addText(x),x="",R[v]=(R[v]||0)+1,R[v]<=Ni&&(Oe+=_r),G.startsWith("_"))x+=p[0];else{const Or=q.classNameAliases[G]||G;j(p[0],Or)}}else x+=p[0];h=y.keywordPatternRe.lastIndex,p=y.keywordPatternRe.exec(_)}x+=_.substring(h),M.addText(x)}function Se(){if(_==="")return;let h=null;if(typeof y.subLanguage=="string"){if(!e[y.subLanguage]){M.addText(_);return}h=b(y.subLanguage,_,!0,Ft[y.subLanguage]),Ft[y.subLanguage]=h._top}else h=A(_,y.subLanguage.length?y.subLanguage:null);y.relevance>0&&(Oe+=h.relevance),M.__addSublanguage(h._emitter,h.language)}function P(){y.subLanguage!=null?Se():B(),_=""}function j(h,p){h!==""&&(M.startScope(p),M.addText(h),M.endScope())}function Ut(h,p){let x=1;const v=p.length-1;for(;x<=v;){if(!h._emit[x]){x++;continue}const T=q.classNameAliases[h[x]]||h[x],G=p[x];T?j(G,T):(_=G,B(),_=""),x++}}function zt(h,p){return h.scope&&typeof h.scope=="string"&&M.openNode(q.classNameAliases[h.scope]||h.scope),h.beginScope&&(h.beginScope._wrap?(j(_,q.classNameAliases[h.beginScope._wrap]||h.beginScope._wrap),_=""):h.beginScope._multi&&(Ut(h.beginScope,p),_="")),y=Object.create(h,{parent:{value:y}}),y}function jt(h,p,x){let v=Zr(h.endRe,x);if(v){if(h["on:end"]){const T=new Gt(h);h["on:end"](p,T),T.isMatchIgnored&&(v=!1)}if(v){for(;h.endsParent&&h.parent;)h=h.parent;return h}}if(h.endsWithParent)return jt(h.parent,p,x)}function wr(h){return y.matcher.regexIndex===0?(_+=h[0],1):(rt=!0,0)}function xr(h){const p=h[0],x=h.rule,v=new Gt(x),T=[x.__beforeBegin,x["on:begin"]];for(const G of T)if(G&&(G(h,v),v.isMatchIgnored))return wr(p);return x.skip?_+=p:(x.excludeBegin&&(_+=p),P(),!x.returnBegin&&!x.excludeBegin&&(_=p)),zt(x,h),x.returnBegin?0:p.length}function Er(h){const p=h[0],x=d.substring(h.index),v=jt(y,h,x);if(!v)return Vt;const T=y;y.endScope&&y.endScope._wrap?(P(),j(p,y.endScope._wrap)):y.endScope&&y.endScope._multi?(P(),Ut(y.endScope,h)):T.skip?_+=p:(T.returnEnd||T.excludeEnd||(_+=p),P(),T.excludeEnd&&(_=p));do y.scope&&M.closeNode(),!y.skip&&!y.subLanguage&&(Oe+=y.relevance),y=y.parent;while(y!==v.parent);return v.starts&&zt(v.starts,h),T.returnEnd?0:p.length}function vr(){const h=[];for(let p=y;p!==q;p=p.parent)p.scope&&h.unshift(p.scope);h.forEach(p=>M.openNode(p))}let _e={};function qt(h,p){const x=p&&p[0];if(_+=h,x==null)return P(),0;if(_e.type==="begin"&&p.type==="end"&&_e.index===p.index&&x===""){if(_+=d.slice(p.index,p.index+1),!i){const v=new Error(`0 width match regex (${u})`);throw v.languageName=u,v.badRule=_e.rule,v}return 1}if(_e=p,p.type==="begin")return xr(p);if(p.type==="illegal"&&!w){const v=new Error('Illegal lexeme "'+x+'" for mode "'+(y.scope||"<unnamed>")+'"');throw v.mode=y,v}else if(p.type==="end"){const v=Er(p);if(v!==Vt)return v}if(p.type==="illegal"&&x==="")return 1;if(nt>1e5&&nt>p.index*3)throw new Error("potential infinite loop, way more iterations than matches");return _+=x,x.length}const q=I(u);if(!q)throw Y(o.replace("{}",u)),new Error('Unknown language: "'+u+'"');const Sr=Ai(q);let tt="",y=E||Sr;const Ft={},M=new a.__emitter(a);vr();let _="",Oe=0,V=0,nt=0,rt=!1;try{if(q.__emitTokens)q.__emitTokens(d,M);else{for(y.matcher.considerAll();;){nt++,rt?rt=!1:y.matcher.considerAll(),y.matcher.lastIndex=V;const h=y.matcher.exec(d);if(!h)break;const p=d.substring(V,h.index),x=qt(p,h);V=h.index+x}qt(d.substring(V))}return M.finalize(),tt=M.toHTML(),{language:u,value:tt,relevance:Oe,illegal:!1,_emitter:M,_top:y}}catch(h){if(h.message&&h.message.includes("Illegal"))return{language:u,value:it(d),illegal:!0,relevance:0,_illegalBy:{message:h.message,index:V,context:d.slice(V-100,V+100),mode:h.mode,resultSoFar:tt},_emitter:M};if(i)return{language:u,value:it(d),illegal:!1,relevance:0,errorRaised:h,_emitter:M,_top:y};throw h}}function g(u){const d={value:it(u),illegal:!1,relevance:0,_top:s,_emitter:new a.__emitter(a)};return d._emitter.addText(u),d}function A(u,d){d=d||a.languages||Object.keys(e);const w=g(u),E=d.filter(I).filter(Ee).map(P=>b(P,u,!1));E.unshift(w);const R=E.sort((P,j)=>{if(P.relevance!==j.relevance)return j.relevance-P.relevance;if(P.language&&j.language){if(I(P.language).supersetOf===j.language)return 1;if(I(j.language).supersetOf===P.language)return-1}return 0}),[N,B]=R,Se=N;return Se.secondBest=B,Se}function k(u,d,w){const E=d&&t[d]||w;u.classList.add("hljs"),u.classList.add(`language-${E}`)}function L(u){let d=null;const w=c(u);if(l(w))return;if(ne("before:highlightElement",{el:u,language:w}),u.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",u);return}if(u.children.length>0&&(a.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(u)),a.throwUnescapedHTML))throw new Ti("One of your code blocks includes unescaped HTML.",u.innerHTML);d=u;const E=d.textContent,R=w?f(E,{language:w,ignoreIllegals:!0}):A(E);u.innerHTML=R.value,u.dataset.highlighted="yes",k(u,w,R.language),u.result={language:R.language,re:R.relevance,relevance:R.relevance},R.secondBest&&(u.secondBest={language:R.secondBest.language,relevance:R.secondBest.relevance}),ne("after:highlightElement",{el:u,result:R,text:E})}function m(u){a=Jt(a,u)}const te=()=>{D(),re("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function z(){D(),re("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let Z=!1;function D(){if(document.readyState==="loading"){Z=!0;return}document.querySelectorAll(a.cssSelector).forEach(L)}function X(){Z&&D()}typeof window<"u"&&window.addEventListener&&window.addEventListener("DOMContentLoaded",X,!1);function H(u,d){let w=null;try{w=d(r)}catch(E){if(Y("Language definition for '{}' could not be registered.".replace("{}",u)),i)Y(E);else throw E;w=s}w.name||(w.name=u),e[u]=w,w.rawDefinition=d.bind(null,r),w.aliases&&J(w.aliases,{languageName:u})}function le(u){delete e[u];for(const d of Object.keys(t))t[d]===u&&delete t[d]}function $(){return Object.keys(e)}function I(u){return u=(u||"").toLowerCase(),e[u]||e[t[u]]}function J(u,{languageName:d}){typeof u=="string"&&(u=[u]),u.forEach(w=>{t[w.toLowerCase()]=d})}function Ee(u){const d=I(u);return d&&!d.disableAutodetect}function Ye(u){u["before:highlightBlock"]&&!u["before:highlightElement"]&&(u["before:highlightElement"]=d=>{u["before:highlightBlock"](Object.assign({block:d.el},d))}),u["after:highlightBlock"]&&!u["after:highlightElement"]&&(u["after:highlightElement"]=d=>{u["after:highlightBlock"](Object.assign({block:d.el},d))})}function Qe(u){Ye(u),n.push(u)}function et(u){const d=n.indexOf(u);d!==-1&&n.splice(d,1)}function ne(u,d){const w=u;n.forEach(function(E){E[w]&&E[w](d)})}function ve(u){return re("10.7.0","highlightBlock will be removed entirely in v12.0"),re("10.7.0","Please use highlightElement now."),L(u)}Object.assign(r,{highlight:f,highlightAuto:A,highlightAll:D,highlightElement:L,highlightBlock:ve,configure:m,initHighlighting:te,initHighlightingOnLoad:z,registerLanguage:H,unregisterLanguage:le,listLanguages:$,getLanguage:I,registerAliases:J,autoDetection:Ee,inherit:Jt,addPlugin:Qe,removePlugin:et}),r.debugMode=function(){i=!1},r.safeMode=function(){i=!0},r.versionString=Mi,r.regex={concat:Q,lookahead:wn,either:Ct,optional:Wr,anyNumberOfTimes:Gr};for(const u in Ce)typeof Ce[u]=="object"&&bn(Ce[u]);return Object.assign(r,Ce),r},ie=An({});ie.newInstance=()=>An({});var Ii=ie;ie.HighlightJS=ie;ie.default=ie;const We=_t(Ii);var kt={exports:{}},O=String,kn=function(){return{isColorSupported:!1,reset:O,bold:O,dim:O,italic:O,underline:O,inverse:O,hidden:O,strikethrough:O,black:O,red:O,green:O,yellow:O,blue:O,magenta:O,cyan:O,white:O,gray:O,bgBlack:O,bgRed:O,bgGreen:O,bgYellow:O,bgBlue:O,bgMagenta:O,bgCyan:O,bgWhite:O}};kt.exports=kn();kt.exports.createColors=kn;var Pi=kt.exports;const Li={},Di=Object.freeze(Object.defineProperty({__proto__:null,default:Li},Symbol.toStringTag,{value:"Module"})),U=zr(Di);let Yt=Pi,Qt=U,ct=class Mn extends Error{constructor(e,t,n,i,o,s){super(e),this.name="CssSyntaxError",this.reason=e,o&&(this.file=o),i&&(this.source=i),s&&(this.plugin=s),typeof t<"u"&&typeof n<"u"&&(typeof t=="number"?(this.line=t,this.column=n):(this.line=t.line,this.column=t.column,this.endLine=n.line,this.endColumn=n.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,Mn)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(e){if(!this.source)return"";let t=this.source;e==null&&(e=Yt.isColorSupported),Qt&&e&&(t=Qt(t));let n=t.split(/\r?\n/),i=Math.max(this.line-3,0),o=Math.min(this.line+2,n.length),s=String(o).length,a,l;if(e){let{bold:c,gray:f,red:b}=Yt.createColors(!0);a=g=>c(b(g)),l=g=>f(g)}else a=l=c=>c;return n.slice(i,o).map((c,f)=>{let b=i+1+f,g=" "+(" "+b).slice(-s)+" | ";if(b===this.line){let A=l(g.replace(/\d/g," "))+c.slice(0,this.column-1).replace(/[^\t]/g," ");return a(">")+l(g)+c+`
182
- `+A+a("^")}return" "+l(g)+c}).join(`
183
- `)}toString(){let e=this.showSourceCode();return e&&(e=`
179
+ `,Fr={mainContent:Lr,description:Dr,css:Br,initializer:{content:qr,type:"typescript",initialize:()=>Pr(()=>import("./example.js"),[],import.meta.url)},additionalSources:[{type:"source",language:"typescript",content:Ur,label:"colors.ts"},{type:"source",language:"typescript",content:zr,label:"index.ts"},{type:"source",language:"raw",content:jr,label:"example.md"}]},$r=Object.freeze(Object.defineProperty({__proto__:null,default:Fr},Symbol.toStringTag,{value:"Module"})),Hr="code{white-space:pre}.example{display:flex;flex-wrap:wrap;flex-direction:row;align-items:center;gap:16px}.example>*{flex:1 1 500px}.example .tab-control{overflow:hidden}.example div[role=tab]{cursor:pointer;padding:8px 16px;display:inline-block;font-size:16px;border-bottom:2px solid transparent;background-clip:padding-box;-webkit-user-select:none;user-select:none}.example div[role=tab]:hover{background-color:#1467ba14}.example div[role=tab][selected]{background-color:#1467ba21;border-bottom:2px solid #1467ba}.tab-content{margin:16px 0}.tab-content>pre{padding-top:0}.tab-content.code{max-height:500px;overflow:auto}.tab-content.code pre{margin:0}",Gr="pre code.hljs{display:block;overflow-x:auto;padding:1em}code.hljs{padding:3px 5px}.hljs{color:#24292e;background:#fff}.hljs-doctag,.hljs-keyword,.hljs-meta .hljs-keyword,.hljs-template-tag,.hljs-template-variable,.hljs-type,.hljs-variable.language_{color:#d73a49}.hljs-title,.hljs-title.class_,.hljs-title.class_.inherited__,.hljs-title.function_{color:#6f42c1}.hljs-attr,.hljs-attribute,.hljs-literal,.hljs-meta,.hljs-number,.hljs-operator,.hljs-variable,.hljs-selector-attr,.hljs-selector-class,.hljs-selector-id{color:#005cc5}.hljs-regexp,.hljs-string,.hljs-meta .hljs-string{color:#032f62}.hljs-built_in,.hljs-symbol{color:#e36209}.hljs-comment,.hljs-code,.hljs-formula{color:#6a737d}.hljs-name,.hljs-quote,.hljs-selector-tag,.hljs-selector-pseudo{color:#22863a}.hljs-subst{color:#24292e}.hljs-section{color:#005cc5;font-weight:700}.hljs-bullet{color:#735c0f}.hljs-emphasis{color:#24292e;font-style:italic}.hljs-strong{color:#24292e;font-weight:700}.hljs-addition{color:#22863a;background-color:#f0fff4}.hljs-deletion{color:#b31d28;background-color:#ffeef0}";function Pt(c){return c&&c.__esModule&&Object.prototype.hasOwnProperty.call(c,"default")?c.default:c}function Wr(c){if(Object.prototype.hasOwnProperty.call(c,"__esModule"))return c;var g=c.default;if(typeof g=="function"){var b=function h(){var r=!1;try{r=this instanceof h}catch{}return r?Reflect.construct(g,arguments,this.constructor):g.apply(this,arguments)};b.prototype=g.prototype}else b={};return Object.defineProperty(b,"__esModule",{value:!0}),Object.keys(c).forEach(function(h){var r=Object.getOwnPropertyDescriptor(c,h);Object.defineProperty(b,h,r.get?r:{enumerable:!0,get:function(){return c[h]}})}),b}var ot,an;function Kr(){if(an)return ot;an=1;function c(o){return o instanceof Map?o.clear=o.delete=o.set=function(){throw new Error("map is read-only")}:o instanceof Set&&(o.add=o.clear=o.delete=function(){throw new Error("set is read-only")}),Object.freeze(o),Object.getOwnPropertyNames(o).forEach(E=>{const O=o[E],q=typeof O;(q==="object"||q==="function")&&!Object.isFrozen(O)&&c(O)}),o}class g{constructor(E){E.data===void 0&&(E.data={}),this.data=E.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function b(o){return o.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")}function h(o,...E){const O=Object.create(null);for(const q in o)O[q]=o[q];return E.forEach(function(q){for(const J in q)O[J]=q[J]}),O}const r="</span>",f=o=>!!o.scope,s=(o,{prefix:E})=>{if(o.startsWith("language:"))return o.replace("language:","language-");if(o.includes(".")){const O=o.split(".");return[`${E}${O.shift()}`,...O.map((q,J)=>`${q}${"_".repeat(J+1)}`)].join(" ")}return`${E}${o}`};class p{constructor(E,O){this.buffer="",this.classPrefix=O.classPrefix,E.walk(this)}addText(E){this.buffer+=b(E)}openNode(E){if(!f(E))return;const O=s(E.scope,{prefix:this.classPrefix});this.span(O)}closeNode(E){f(E)&&(this.buffer+=r)}value(){return this.buffer}span(E){this.buffer+=`<span class="${E}">`}}const x=(o={})=>{const E={children:[]};return Object.assign(E,o),E};class l{constructor(){this.rootNode=x(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(E){this.top.children.push(E)}openNode(E){const O=x({scope:E});this.add(O),this.stack.push(O)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(E){return this.constructor._walk(E,this.rootNode)}static _walk(E,O){return typeof O=="string"?E.addText(O):O.children&&(E.openNode(O),O.children.forEach(q=>this._walk(E,q)),E.closeNode(O)),E}static _collapse(E){typeof E!="string"&&E.children&&(E.children.every(O=>typeof O=="string")?E.children=[E.children.join("")]:E.children.forEach(O=>{l._collapse(O)}))}}class e extends l{constructor(E){super(),this.options=E}addText(E){E!==""&&this.add(E)}startScope(E){this.openNode(E)}endScope(){this.closeNode()}__addSublanguage(E,O){const q=E.root;O&&(q.scope=`language:${O}`),this.add(q)}toHTML(){return new p(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function i(o){return o?typeof o=="string"?o:o.source:null}function t(o){return u("(?=",o,")")}function n(o){return u("(?:",o,")*")}function a(o){return u("(?:",o,")?")}function u(...o){return o.map(O=>i(O)).join("")}function d(o){const E=o[o.length-1];return typeof E=="object"&&E.constructor===Object?(o.splice(o.length-1,1),E):{}}function v(...o){return"("+(d(o).capture?"":"?:")+o.map(q=>i(q)).join("|")+")"}function S(o){return new RegExp(o.toString()+"|").exec("").length-1}function w(o,E){const O=o&&o.exec(E);return O&&O.index===0}const y=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function m(o,{joinWith:E}){let O=0;return o.map(q=>{O+=1;const J=O;let V=i(q),T="";for(;V.length>0;){const k=y.exec(V);if(!k){T+=V;break}T+=V.substring(0,k.index),V=V.substring(k.index+k[0].length),k[0][0]==="\\"&&k[1]?T+="\\"+String(Number(k[1])+J):(T+=k[0],k[0]==="("&&O++)}return T}).map(q=>`(${q})`).join(E)}const _=/\b\B/,A="[a-zA-Z]\\w*",L="[a-zA-Z_]\\w*",z="\\b\\d+(\\.\\d+)?",P="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",X="\\b(0b[01]+)",$="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",ye=(o={})=>{const E=/^#![ ]*\//;return o.binary&&(o.begin=u(E,/.*\b/,o.binary,/\b.*/)),h({scope:"meta",begin:E,end:/$/,relevance:0,"on:begin":(O,q)=>{O.index!==0&&q.ignoreMatch()}},o)},ae={begin:"\\\\[\\s\\S]",relevance:0},M={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[ae]},we={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[ae]},ne={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},G=function(o,E,O={}){const q=h({scope:"comment",begin:o,end:E,contains:[]},O);q.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const J=v("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return q.contains.push({begin:u(/[ ]+/,"(",J,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),q},se=G("//","$"),re=G("/\\*","\\*/"),he=G("#","$"),pe={scope:"number",begin:z,relevance:0},D={scope:"number",begin:P,relevance:0},Ce={scope:"number",begin:X,relevance:0},Se={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[ae,{begin:/\[/,end:/\]/,relevance:0,contains:[ae]}]},Ve={scope:"title",begin:A,relevance:0},Ae={scope:"title",begin:L,relevance:0},Ye={begin:"\\.\\s*"+L,relevance:0};var _e=Object.freeze({__proto__:null,APOS_STRING_MODE:M,BACKSLASH_ESCAPE:ae,BINARY_NUMBER_MODE:Ce,BINARY_NUMBER_RE:X,COMMENT:G,C_BLOCK_COMMENT_MODE:re,C_LINE_COMMENT_MODE:se,C_NUMBER_MODE:D,C_NUMBER_RE:P,END_SAME_AS_BEGIN:function(o){return Object.assign(o,{"on:begin":(E,O)=>{O.data._beginMatch=E[1]},"on:end":(E,O)=>{O.data._beginMatch!==E[1]&&O.ignoreMatch()}})},HASH_COMMENT_MODE:he,IDENT_RE:A,MATCH_NOTHING_RE:_,METHOD_GUARD:Ye,NUMBER_MODE:pe,NUMBER_RE:z,PHRASAL_WORDS_MODE:ne,QUOTE_STRING_MODE:we,REGEXP_MODE:Se,RE_STARTERS_RE:$,SHEBANG:ye,TITLE_MODE:Ve,UNDERSCORE_IDENT_RE:L,UNDERSCORE_TITLE_MODE:Ae});function ge(o,E){o.input[o.index-1]==="."&&E.ignoreMatch()}function ke(o,E){o.className!==void 0&&(o.scope=o.className,delete o.className)}function Pe(o,E){E&&o.beginKeywords&&(o.begin="\\b("+o.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",o.__beforeBegin=ge,o.keywords=o.keywords||o.beginKeywords,delete o.beginKeywords,o.relevance===void 0&&(o.relevance=0))}function Vn(o,E){Array.isArray(o.illegal)&&(o.illegal=v(...o.illegal))}function Yn(o,E){if(o.match){if(o.begin||o.end)throw new Error("begin & end are not supported with match");o.begin=o.match,delete o.match}}function Qn(o,E){o.relevance===void 0&&(o.relevance=1)}const er=(o,E)=>{if(!o.beforeMatch)return;if(o.starts)throw new Error("beforeMatch cannot be used with starts");const O=Object.assign({},o);Object.keys(o).forEach(q=>{delete o[q]}),o.keywords=O.keywords,o.begin=u(O.beforeMatch,t(O.begin)),o.starts={relevance:0,contains:[Object.assign(O,{endsParent:!0})]},o.relevance=0,delete O.beforeMatch},tr=["of","and","for","in","not","or","if","then","parent","list","value"],nr="keyword";function $t(o,E,O=nr){const q=Object.create(null);return typeof o=="string"?J(O,o.split(" ")):Array.isArray(o)?J(O,o):Object.keys(o).forEach(function(V){Object.assign(q,$t(o[V],E,V))}),q;function J(V,T){E&&(T=T.map(k=>k.toLowerCase())),T.forEach(function(k){const B=k.split("|");q[B[0]]=[V,rr(B[0],B[1])]})}}function rr(o,E){return E?Number(E):ir(o)?0:1}function ir(o){return tr.includes(o.toLowerCase())}const Ht={},xe=o=>{console.error(o)},Gt=(o,...E)=>{console.log(`WARN: ${o}`,...E)},Re=(o,E)=>{Ht[`${o}/${E}`]||(console.log(`Deprecated as of ${o}. ${E}`),Ht[`${o}/${E}`]=!0)},Le=new Error;function Wt(o,E,{key:O}){let q=0;const J=o[O],V={},T={};for(let k=1;k<=E.length;k++)T[k+q]=J[k],V[k+q]=!0,q+=S(E[k-1]);o[O]=T,o[O]._emit=V,o[O]._multi=!0}function sr(o){if(Array.isArray(o.begin)){if(o.skip||o.excludeBegin||o.returnBegin)throw xe("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),Le;if(typeof o.beginScope!="object"||o.beginScope===null)throw xe("beginScope must be object"),Le;Wt(o,o.begin,{key:"beginScope"}),o.begin=m(o.begin,{joinWith:""})}}function or(o){if(Array.isArray(o.end)){if(o.skip||o.excludeEnd||o.returnEnd)throw xe("skip, excludeEnd, returnEnd not compatible with endScope: {}"),Le;if(typeof o.endScope!="object"||o.endScope===null)throw xe("endScope must be object"),Le;Wt(o,o.end,{key:"endScope"}),o.end=m(o.end,{joinWith:""})}}function ar(o){o.scope&&typeof o.scope=="object"&&o.scope!==null&&(o.beginScope=o.scope,delete o.scope)}function lr(o){ar(o),typeof o.beginScope=="string"&&(o.beginScope={_wrap:o.beginScope}),typeof o.endScope=="string"&&(o.endScope={_wrap:o.endScope}),sr(o),or(o)}function cr(o){function E(T,k){return new RegExp(i(T),"m"+(o.case_insensitive?"i":"")+(o.unicodeRegex?"u":"")+(k?"g":""))}class O{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(k,B){B.position=this.position++,this.matchIndexes[this.matchAt]=B,this.regexes.push([B,k]),this.matchAt+=S(k)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const k=this.regexes.map(B=>B[1]);this.matcherRe=E(m(k,{joinWith:"|"}),!0),this.lastIndex=0}exec(k){this.matcherRe.lastIndex=this.lastIndex;const B=this.matcherRe.exec(k);if(!B)return null;const ee=B.findIndex((Me,et)=>et>0&&Me!==void 0),Y=this.matchIndexes[ee];return B.splice(0,ee),Object.assign(B,Y)}}class q{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(k){if(this.multiRegexes[k])return this.multiRegexes[k];const B=new O;return this.rules.slice(k).forEach(([ee,Y])=>B.addRule(ee,Y)),B.compile(),this.multiRegexes[k]=B,B}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(k,B){this.rules.push([k,B]),B.type==="begin"&&this.count++}exec(k){const B=this.getMatcher(this.regexIndex);B.lastIndex=this.lastIndex;let ee=B.exec(k);if(this.resumingScanAtSamePosition()&&!(ee&&ee.index===this.lastIndex)){const Y=this.getMatcher(0);Y.lastIndex=this.lastIndex+1,ee=Y.exec(k)}return ee&&(this.regexIndex+=ee.position+1,this.regexIndex===this.count&&this.considerAll()),ee}}function J(T){const k=new q;return T.contains.forEach(B=>k.addRule(B.begin,{rule:B,type:"begin"})),T.terminatorEnd&&k.addRule(T.terminatorEnd,{type:"end"}),T.illegal&&k.addRule(T.illegal,{type:"illegal"}),k}function V(T,k){const B=T;if(T.isCompiled)return B;[ke,Yn,lr,er].forEach(Y=>Y(T,k)),o.compilerExtensions.forEach(Y=>Y(T,k)),T.__beforeBegin=null,[Pe,Vn,Qn].forEach(Y=>Y(T,k)),T.isCompiled=!0;let ee=null;return typeof T.keywords=="object"&&T.keywords.$pattern&&(T.keywords=Object.assign({},T.keywords),ee=T.keywords.$pattern,delete T.keywords.$pattern),ee=ee||/\w+/,T.keywords&&(T.keywords=$t(T.keywords,o.case_insensitive)),B.keywordPatternRe=E(ee,!0),k&&(T.begin||(T.begin=/\B|\b/),B.beginRe=E(B.begin),!T.end&&!T.endsWithParent&&(T.end=/\B|\b/),T.end&&(B.endRe=E(B.end)),B.terminatorEnd=i(B.end)||"",T.endsWithParent&&k.terminatorEnd&&(B.terminatorEnd+=(T.end?"|":"")+k.terminatorEnd)),T.illegal&&(B.illegalRe=E(T.illegal)),T.contains||(T.contains=[]),T.contains=[].concat(...T.contains.map(function(Y){return ur(Y==="self"?T:Y)})),T.contains.forEach(function(Y){V(Y,B)}),T.starts&&V(T.starts,k),B.matcher=J(B),B}if(o.compilerExtensions||(o.compilerExtensions=[]),o.contains&&o.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return o.classNameAliases=h(o.classNameAliases||{}),V(o)}function Kt(o){return o?o.endsWithParent||Kt(o.starts):!1}function ur(o){return o.variants&&!o.cachedVariants&&(o.cachedVariants=o.variants.map(function(E){return h(o,{variants:null},E)})),o.cachedVariants?o.cachedVariants:Kt(o)?h(o,{starts:o.starts?h(o.starts):null}):Object.isFrozen(o)?h(o):o}var fr="11.11.1";class hr extends Error{constructor(E,O){super(E),this.name="HTMLInjectionError",this.html=O}}const Qe=b,Zt=h,Xt=Symbol("nomatch"),dr=7,Jt=function(o){const E=Object.create(null),O=Object.create(null),q=[];let J=!0;const V="Could not find the language '{}', did you forget to load/include a language module?",T={disableAutodetect:!0,name:"Plain text",contains:[]};let k={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:e};function B(R){return k.noHighlightRe.test(R)}function ee(R){let I=R.className+" ";I+=R.parentNode?R.parentNode.className:"";const F=k.languageDetectRe.exec(I);if(F){const W=me(F[1]);return W||(Gt(V.replace("{}",F[1])),Gt("Falling back to no-highlight mode for this block.",R)),W?F[1]:"no-highlight"}return I.split(/\s+/).find(W=>B(W)||me(W))}function Y(R,I,F){let W="",Q="";typeof I=="object"?(W=R,F=I.ignoreIllegals,Q=I.language):(Re("10.7.0","highlight(lang, code, ...args) has been deprecated."),Re("10.7.0",`Please use highlight(code, options) instead.
180
+ https://github.com/highlightjs/highlight.js/issues/2277`),Q=R,W=I),F===void 0&&(F=!0);const le={code:W,language:Q};Be("before:highlight",le);const be=le.result?le.result:Me(le.language,le.code,F);return be.code=le.code,Be("after:highlight",be),be}function Me(R,I,F,W){const Q=Object.create(null);function le(C,N){return C.keywords[N]}function be(){if(!U.keywords){te.addText(K);return}let C=0;U.keywordPatternRe.lastIndex=0;let N=U.keywordPatternRe.exec(K),j="";for(;N;){j+=K.substring(C,N.index);const H=fe.case_insensitive?N[0].toLowerCase():N[0],ie=le(U,H);if(ie){const[de,Mr]=ie;if(te.addText(j),j="",Q[H]=(Q[H]||0)+1,Q[H]<=dr&&(ze+=Mr),de.startsWith("_"))j+=N[0];else{const Tr=fe.classNameAliases[de]||de;ue(N[0],Tr)}}else j+=N[0];C=U.keywordPatternRe.lastIndex,N=U.keywordPatternRe.exec(K)}j+=K.substring(C),te.addText(j)}function qe(){if(K==="")return;let C=null;if(typeof U.subLanguage=="string"){if(!E[U.subLanguage]){te.addText(K);return}C=Me(U.subLanguage,K,!0,sn[U.subLanguage]),sn[U.subLanguage]=C._top}else C=tt(K,U.subLanguage.length?U.subLanguage:null);U.relevance>0&&(ze+=C.relevance),te.__addSublanguage(C._emitter,C.language)}function oe(){U.subLanguage!=null?qe():be(),K=""}function ue(C,N){C!==""&&(te.startScope(N),te.addText(C),te.endScope())}function en(C,N){let j=1;const H=N.length-1;for(;j<=H;){if(!C._emit[j]){j++;continue}const ie=fe.classNameAliases[C[j]]||C[j],de=N[j];ie?ue(de,ie):(K=de,be(),K=""),j++}}function tn(C,N){return C.scope&&typeof C.scope=="string"&&te.openNode(fe.classNameAliases[C.scope]||C.scope),C.beginScope&&(C.beginScope._wrap?(ue(K,fe.classNameAliases[C.beginScope._wrap]||C.beginScope._wrap),K=""):C.beginScope._multi&&(en(C.beginScope,N),K="")),U=Object.create(C,{parent:{value:U}}),U}function nn(C,N,j){let H=w(C.endRe,j);if(H){if(C["on:end"]){const ie=new g(C);C["on:end"](N,ie),ie.isMatchIgnored&&(H=!1)}if(H){for(;C.endsParent&&C.parent;)C=C.parent;return C}}if(C.endsWithParent)return nn(C.parent,N,j)}function Rr(C){return U.matcher.regexIndex===0?(K+=C[0],1):(st=!0,0)}function Or(C){const N=C[0],j=C.rule,H=new g(j),ie=[j.__beforeBegin,j["on:begin"]];for(const de of ie)if(de&&(de(C,H),H.isMatchIgnored))return Rr(N);return j.skip?K+=N:(j.excludeBegin&&(K+=N),oe(),!j.returnBegin&&!j.excludeBegin&&(K=N)),tn(j,C),j.returnBegin?0:N.length}function Cr(C){const N=C[0],j=I.substring(C.index),H=nn(U,C,j);if(!H)return Xt;const ie=U;U.endScope&&U.endScope._wrap?(oe(),ue(N,U.endScope._wrap)):U.endScope&&U.endScope._multi?(oe(),en(U.endScope,C)):ie.skip?K+=N:(ie.returnEnd||ie.excludeEnd||(K+=N),oe(),ie.excludeEnd&&(K=N));do U.scope&&te.closeNode(),!U.skip&&!U.subLanguage&&(ze+=U.relevance),U=U.parent;while(U!==H.parent);return H.starts&&tn(H.starts,C),ie.returnEnd?0:N.length}function Ar(){const C=[];for(let N=U;N!==fe;N=N.parent)N.scope&&C.unshift(N.scope);C.forEach(N=>te.openNode(N))}let Ue={};function rn(C,N){const j=N&&N[0];if(K+=C,j==null)return oe(),0;if(Ue.type==="begin"&&N.type==="end"&&Ue.index===N.index&&j===""){if(K+=I.slice(N.index,N.index+1),!J){const H=new Error(`0 width match regex (${R})`);throw H.languageName=R,H.badRule=Ue.rule,H}return 1}if(Ue=N,N.type==="begin")return Or(N);if(N.type==="illegal"&&!F){const H=new Error('Illegal lexeme "'+j+'" for mode "'+(U.scope||"<unnamed>")+'"');throw H.mode=U,H}else if(N.type==="end"){const H=Cr(N);if(H!==Xt)return H}if(N.type==="illegal"&&j==="")return K+=`
181
+ `,1;if(it>1e5&&it>N.index*3)throw new Error("potential infinite loop, way more iterations than matches");return K+=j,j.length}const fe=me(R);if(!fe)throw xe(V.replace("{}",R)),new Error('Unknown language: "'+R+'"');const kr=cr(fe);let rt="",U=W||kr;const sn={},te=new k.__emitter(k);Ar();let K="",ze=0,Ee=0,it=0,st=!1;try{if(fe.__emitTokens)fe.__emitTokens(I,te);else{for(U.matcher.considerAll();;){it++,st?st=!1:U.matcher.considerAll(),U.matcher.lastIndex=Ee;const C=U.matcher.exec(I);if(!C)break;const N=I.substring(Ee,C.index),j=rn(N,C);Ee=C.index+j}rn(I.substring(Ee))}return te.finalize(),rt=te.toHTML(),{language:R,value:rt,relevance:ze,illegal:!1,_emitter:te,_top:U}}catch(C){if(C.message&&C.message.includes("Illegal"))return{language:R,value:Qe(I),illegal:!0,relevance:0,_illegalBy:{message:C.message,index:Ee,context:I.slice(Ee-100,Ee+100),mode:C.mode,resultSoFar:rt},_emitter:te};if(J)return{language:R,value:Qe(I),illegal:!1,relevance:0,errorRaised:C,_emitter:te,_top:U};throw C}}function et(R){const I={value:Qe(R),illegal:!1,relevance:0,_top:T,_emitter:new k.__emitter(k)};return I._emitter.addText(R),I}function tt(R,I){I=I||k.languages||Object.keys(E);const F=et(R),W=I.filter(me).filter(Qt).map(oe=>Me(oe,R,!1));W.unshift(F);const Q=W.sort((oe,ue)=>{if(oe.relevance!==ue.relevance)return ue.relevance-oe.relevance;if(oe.language&&ue.language){if(me(oe.language).supersetOf===ue.language)return 1;if(me(ue.language).supersetOf===oe.language)return-1}return 0}),[le,be]=Q,qe=le;return qe.secondBest=be,qe}function pr(R,I,F){const W=I&&O[I]||F;R.classList.add("hljs"),R.classList.add(`language-${W}`)}function nt(R){let I=null;const F=ee(R);if(B(F))return;if(Be("before:highlightElement",{el:R,language:F}),R.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",R);return}if(R.children.length>0&&(k.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(R)),k.throwUnescapedHTML))throw new hr("One of your code blocks includes unescaped HTML.",R.innerHTML);I=R;const W=I.textContent,Q=F?Y(W,{language:F,ignoreIllegals:!0}):tt(W);R.innerHTML=Q.value,R.dataset.highlighted="yes",pr(R,F,Q.language),R.result={language:Q.language,re:Q.relevance,relevance:Q.relevance},Q.secondBest&&(R.secondBest={language:Q.secondBest.language,relevance:Q.secondBest.relevance}),Be("after:highlightElement",{el:R,result:Q,text:W})}function gr(R){k=Zt(k,R)}const mr=()=>{De(),Re("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function br(){De(),Re("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let Vt=!1;function De(){function R(){De()}if(document.readyState==="loading"){Vt||window.addEventListener("DOMContentLoaded",R,!1),Vt=!0;return}document.querySelectorAll(k.cssSelector).forEach(nt)}function yr(R,I){let F=null;try{F=I(o)}catch(W){if(xe("Language definition for '{}' could not be registered.".replace("{}",R)),J)xe(W);else throw W;F=T}F.name||(F.name=R),E[R]=F,F.rawDefinition=I.bind(null,o),F.aliases&&Yt(F.aliases,{languageName:R})}function wr(R){delete E[R];for(const I of Object.keys(O))O[I]===R&&delete O[I]}function xr(){return Object.keys(E)}function me(R){return R=(R||"").toLowerCase(),E[R]||E[O[R]]}function Yt(R,{languageName:I}){typeof R=="string"&&(R=[R]),R.forEach(F=>{O[F.toLowerCase()]=I})}function Qt(R){const I=me(R);return I&&!I.disableAutodetect}function Er(R){R["before:highlightBlock"]&&!R["before:highlightElement"]&&(R["before:highlightElement"]=I=>{R["before:highlightBlock"](Object.assign({block:I.el},I))}),R["after:highlightBlock"]&&!R["after:highlightElement"]&&(R["after:highlightElement"]=I=>{R["after:highlightBlock"](Object.assign({block:I.el},I))})}function vr(R){Er(R),q.push(R)}function Sr(R){const I=q.indexOf(R);I!==-1&&q.splice(I,1)}function Be(R,I){const F=R;q.forEach(function(W){W[F]&&W[F](I)})}function _r(R){return Re("10.7.0","highlightBlock will be removed entirely in v12.0"),Re("10.7.0","Please use highlightElement now."),nt(R)}Object.assign(o,{highlight:Y,highlightAuto:tt,highlightAll:De,highlightElement:nt,highlightBlock:_r,configure:gr,initHighlighting:mr,initHighlightingOnLoad:br,registerLanguage:yr,unregisterLanguage:wr,listLanguages:xr,getLanguage:me,registerAliases:Yt,autoDetection:Qt,inherit:Zt,addPlugin:vr,removePlugin:Sr}),o.debugMode=function(){J=!1},o.safeMode=function(){J=!0},o.versionString=fr,o.regex={concat:u,lookahead:t,either:v,optional:a,anyNumberOfTimes:n};for(const R in _e)typeof _e[R]=="object"&&c(_e[R]);return Object.assign(o,_e),o},Oe=Jt({});return Oe.newInstance=()=>Jt({}),ot=Oe,Oe.HighlightJS=Oe,Oe.default=Oe,ot}var Zr=Kr();const Ge=Pt(Zr);var je={exports:{}},ln;function Xr(){if(ln)return je.exports;ln=1;var c=String,g=function(){return{isColorSupported:!1,reset:c,bold:c,dim:c,italic:c,underline:c,inverse:c,hidden:c,strikethrough:c,black:c,red:c,green:c,yellow:c,blue:c,magenta:c,cyan:c,white:c,gray:c,bgBlack:c,bgRed:c,bgGreen:c,bgYellow:c,bgBlue:c,bgMagenta:c,bgCyan:c,bgWhite:c,blackBright:c,redBright:c,greenBright:c,yellowBright:c,blueBright:c,magentaBright:c,cyanBright:c,whiteBright:c,bgBlackBright:c,bgRedBright:c,bgGreenBright:c,bgYellowBright:c,bgBlueBright:c,bgMagentaBright:c,bgCyanBright:c,bgWhiteBright:c}};return je.exports=g(),je.exports.createColors=g,je.exports}const Jr={},Vr=Object.freeze(Object.defineProperty({__proto__:null,default:Jr},Symbol.toStringTag,{value:"Module"})),ce=Wr(Vr);var at,cn;function Lt(){if(cn)return at;cn=1;let c=Xr(),g=ce;class b extends Error{constructor(r,f,s,p,x,l){super(r),this.name="CssSyntaxError",this.reason=r,x&&(this.file=x),p&&(this.source=p),l&&(this.plugin=l),typeof f<"u"&&typeof s<"u"&&(typeof f=="number"?(this.line=f,this.column=s):(this.line=f.line,this.column=f.column,this.endLine=s.line,this.endColumn=s.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,b)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(r){if(!this.source)return"";let f=this.source;r==null&&(r=c.isColorSupported);let s=n=>n,p=n=>n,x=n=>n;if(r){let{bold:n,gray:a,red:u}=c.createColors(!0);p=d=>n(u(d)),s=d=>a(d),g&&(x=d=>g(d))}let l=f.split(/\r?\n/),e=Math.max(this.line-3,0),i=Math.min(this.line+2,l.length),t=String(i).length;return l.slice(e,i).map((n,a)=>{let u=e+1+a,d=" "+(" "+u).slice(-t)+" | ";if(u===this.line){if(n.length>160){let S=20,w=Math.max(0,this.column-S),y=Math.max(this.column+S,this.endColumn+S),m=n.slice(w,y),_=s(d.replace(/\d/g," "))+n.slice(0,Math.min(this.column-1,S-1)).replace(/[^\t]/g," ");return p(">")+s(d)+x(m)+`
182
+ `+_+p("^")}let v=s(d.replace(/\d/g," "))+n.slice(0,this.column-1).replace(/[^\t]/g," ");return p(">")+s(d)+x(n)+`
183
+ `+v+p("^")}return" "+s(d)+x(n)}).join(`
184
+ `)}toString(){let r=this.showSourceCode();return r&&(r=`
184
185
 
185
- `+e+`
186
- `),this.name+": "+this.message+e}};var Mt=ct;ct.default=ct;var we={};we.isClean=Symbol("isClean");we.my=Symbol("my");const en={after:`
186
+ `+r+`
187
+ `),this.name+": "+this.message+r}}return at=b,b.default=b,at}var lt,un;function Bn(){if(un)return lt;un=1;const c={after:`
187
188
  `,beforeClose:`
188
189
  `,beforeComment:`
189
190
  `,beforeDecl:`
190
191
  `,beforeOpen:" ",beforeRule:`
191
- `,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function $i(r){return r[0].toUpperCase()+r.slice(1)}let ut=class{constructor(e){this.builder=e}atrule(e,t){let n="@"+e.name,i=e.params?this.rawValue(e,"params"):"";if(typeof e.raws.afterName<"u"?n+=e.raws.afterName:i&&(n+=" "),e.nodes)this.block(e,n+i);else{let o=(e.raws.between||"")+(t?";":"");this.builder(n+i+o,e)}}beforeAfter(e,t){let n;e.type==="decl"?n=this.raw(e,null,"beforeDecl"):e.type==="comment"?n=this.raw(e,null,"beforeComment"):t==="before"?n=this.raw(e,null,"beforeRule"):n=this.raw(e,null,"beforeClose");let i=e.parent,o=0;for(;i&&i.type!=="root";)o+=1,i=i.parent;if(n.includes(`
192
- `)){let s=this.raw(e,null,"indent");if(s.length)for(let a=0;a<o;a++)n+=s}return n}block(e,t){let n=this.raw(e,"between","beforeOpen");this.builder(t+n+"{",e,"start");let i;e.nodes&&e.nodes.length?(this.body(e),i=this.raw(e,"after")):i=this.raw(e,"after","emptyBody"),i&&this.builder(i),this.builder("}",e,"end")}body(e){let t=e.nodes.length-1;for(;t>0&&e.nodes[t].type==="comment";)t-=1;let n=this.raw(e,"semicolon");for(let i=0;i<e.nodes.length;i++){let o=e.nodes[i],s=this.raw(o,"before");s&&this.builder(s),this.stringify(o,t!==i||n)}}comment(e){let t=this.raw(e,"left","commentLeft"),n=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+n+"*/",e)}decl(e,t){let n=this.raw(e,"between","colon"),i=e.prop+n+this.rawValue(e,"value");e.important&&(i+=e.raws.important||" !important"),t&&(i+=";"),this.builder(i,e)}document(e){this.body(e)}raw(e,t,n){let i;if(n||(n=t),t&&(i=e.raws[t],typeof i<"u"))return i;let o=e.parent;if(n==="before"&&(!o||o.type==="root"&&o.first===e||o&&o.type==="document"))return"";if(!o)return en[n];let s=e.root();if(s.rawCache||(s.rawCache={}),typeof s.rawCache[n]<"u")return s.rawCache[n];if(n==="before"||n==="after")return this.beforeAfter(e,n);{let a="raw"+$i(n);this[a]?i=this[a](s,e):s.walk(l=>{if(i=l.raws[t],typeof i<"u")return!1})}return typeof i>"u"&&(i=en[n]),s.rawCache[n]=i,i}rawBeforeClose(e){let t;return e.walk(n=>{if(n.nodes&&n.nodes.length>0&&typeof n.raws.after<"u")return t=n.raws.after,t.includes(`
193
- `)&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t}rawBeforeComment(e,t){let n;return e.walkComments(i=>{if(typeof i.raws.before<"u")return n=i.raws.before,n.includes(`
194
- `)&&(n=n.replace(/[^\n]+$/,"")),!1}),typeof n>"u"?n=this.raw(t,null,"beforeDecl"):n&&(n=n.replace(/\S/g,"")),n}rawBeforeDecl(e,t){let n;return e.walkDecls(i=>{if(typeof i.raws.before<"u")return n=i.raws.before,n.includes(`
195
- `)&&(n=n.replace(/[^\n]+$/,"")),!1}),typeof n>"u"?n=this.raw(t,null,"beforeRule"):n&&(n=n.replace(/\S/g,"")),n}rawBeforeOpen(e){let t;return e.walk(n=>{if(n.type!=="decl"&&(t=n.raws.between,typeof t<"u"))return!1}),t}rawBeforeRule(e){let t;return e.walk(n=>{if(n.nodes&&(n.parent!==e||e.first!==n)&&typeof n.raws.before<"u")return t=n.raws.before,t.includes(`
196
- `)&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t}rawColon(e){let t;return e.walkDecls(n=>{if(typeof n.raws.between<"u")return t=n.raws.between.replace(/[^\s:]/g,""),!1}),t}rawEmptyBody(e){let t;return e.walk(n=>{if(n.nodes&&n.nodes.length===0&&(t=n.raws.after,typeof t<"u"))return!1}),t}rawIndent(e){if(e.raws.indent)return e.raws.indent;let t;return e.walk(n=>{let i=n.parent;if(i&&i!==e&&i.parent&&i.parent===e&&typeof n.raws.before<"u"){let o=n.raws.before.split(`
197
- `);return t=o[o.length-1],t=t.replace(/\S/g,""),!1}}),t}rawSemicolon(e){let t;return e.walk(n=>{if(n.nodes&&n.nodes.length&&n.last.type==="decl"&&(t=n.raws.semicolon,typeof t<"u"))return!1}),t}rawValue(e,t){let n=e[t],i=e.raws[t];return i&&i.value===n?i.raw:n}root(e){this.body(e),e.raws.after&&this.builder(e.raws.after)}rule(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")}stringify(e,t){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)}};var Tn=ut;ut.default=ut;let Bi=Tn;function ft(r,e){new Bi(e).stringify(r)}var Ke=ft;ft.default=ft;let{isClean:Re,my:Ui}=we,zi=Mt,ji=Tn,qi=Ke;function ht(r,e){let t=new r.constructor;for(let n in r){if(!Object.prototype.hasOwnProperty.call(r,n)||n==="proxyCache")continue;let i=r[n],o=typeof i;n==="parent"&&o==="object"?e&&(t[n]=e):n==="source"?t[n]=i:Array.isArray(i)?t[n]=i.map(s=>ht(s,t)):(o==="object"&&i!==null&&(i=ht(i)),t[n]=i)}return t}let dt=class{constructor(e={}){this.raws={},this[Re]=!1,this[Ui]=!0;for(let t in e)if(t==="nodes"){this.nodes=[];for(let n of e[t])typeof n.clone=="function"?this.append(n.clone()):this.append(n)}else this[t]=e[t]}addToError(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){let t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,`$&${t.input.from}:${t.start.line}:${t.start.column}$&`)}return e}after(e){return this.parent.insertAfter(this,e),this}assign(e={}){for(let t in e)this[t]=e[t];return this}before(e){return this.parent.insertBefore(this,e),this}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}clone(e={}){let t=ht(this);for(let n in e)t[n]=e[n];return t}cloneAfter(e={}){let t=this.clone(e);return this.parent.insertAfter(this,t),t}cloneBefore(e={}){let t=this.clone(e);return this.parent.insertBefore(this,t),t}error(e,t={}){if(this.source){let{end:n,start:i}=this.rangeBy(t);return this.source.input.error(e,{column:i.column,line:i.line},{column:n.column,line:n.line},t)}return new zi(e)}getProxyProcessor(){return{get(e,t){return t==="proxyOf"?e:t==="root"?()=>e.root().toProxy():e[t]},set(e,t,n){return e[t]===n||(e[t]=n,(t==="prop"||t==="value"||t==="name"||t==="params"||t==="important"||t==="text")&&e.markDirty()),!0}}}markDirty(){if(this[Re]){this[Re]=!1;let e=this;for(;e=e.parent;)e[Re]=!1}}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e,t){let n=this.source.start;if(e.index)n=this.positionInside(e.index,t);else if(e.word){t=this.toString();let i=t.indexOf(e.word);i!==-1&&(n=this.positionInside(i,t))}return n}positionInside(e,t){let n=t||this.toString(),i=this.source.start.column,o=this.source.start.line;for(let s=0;s<e;s++)n[s]===`
198
- `?(i=1,o+=1):i+=1;return{column:i,line:o}}prev(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e-1]}rangeBy(e){let t={column:this.source.start.column,line:this.source.start.line},n=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:t.column+1,line:t.line};if(e.word){let i=this.toString(),o=i.indexOf(e.word);o!==-1&&(t=this.positionInside(o,i),n=this.positionInside(o+e.word.length,i))}else e.start?t={column:e.start.column,line:e.start.line}:e.index&&(t=this.positionInside(e.index)),e.end?n={column:e.end.column,line:e.end.line}:e.endIndex?n=this.positionInside(e.endIndex):e.index&&(n=this.positionInside(e.index+1));return(n.line<t.line||n.line===t.line&&n.column<=t.column)&&(n={column:t.column+1,line:t.line}),{end:n,start:t}}raw(e,t){return new ji().raw(this,e,t)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...e){if(this.parent){let t=this,n=!1;for(let i of e)i===this?n=!0:n?(this.parent.insertAfter(t,i),t=i):this.parent.insertBefore(t,i);n||this.remove()}return this}root(){let e=this;for(;e.parent&&e.parent.type!=="document";)e=e.parent;return e}toJSON(e,t){let n={},i=t==null;t=t||new Map;let o=0;for(let s in this){if(!Object.prototype.hasOwnProperty.call(this,s)||s==="parent"||s==="proxyCache")continue;let a=this[s];if(Array.isArray(a))n[s]=a.map(l=>typeof l=="object"&&l.toJSON?l.toJSON(null,t):l);else if(typeof a=="object"&&a.toJSON)n[s]=a.toJSON(null,t);else if(s==="source"){let l=t.get(a.input);l==null&&(l=o,t.set(a.input,o),o++),n[s]={end:a.end,inputId:l,start:a.start}}else n[s]=a}return i&&(n.inputs=[...t.keys()].map(s=>s.toJSON())),n}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(e=qi){e.stringify&&(e=e.stringify);let t="";return e(this,n=>{t+=n}),t}warn(e,t,n){let i={node:this};for(let o in n)i[o]=n[o];return e.warn(t,i)}get proxyOf(){return this}};var Ze=dt;dt.default=dt;let Fi=Ze,pt=class extends Fi{constructor(e){e&&typeof e.value<"u"&&typeof e.value!="string"&&(e={...e,value:String(e.value)}),super(e),this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}};var Xe=pt;pt.default=pt;let Hi="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",Gi=(r,e=21)=>(t=e)=>{let n="",i=t;for(;i--;)n+=r[Math.random()*r.length|0];return n},Wi=(r=21)=>{let e="",t=r;for(;t--;)e+=Hi[Math.random()*64|0];return e};var Ki={nanoid:Wi,customAlphabet:Gi};let{SourceMapConsumer:tn,SourceMapGenerator:nn}=U,{existsSync:Zi,readFileSync:Xi}=U,{dirname:st,join:Ji}=U;function Vi(r){return Buffer?Buffer.from(r,"base64").toString():window.atob(r)}let gt=class{constructor(e,t){if(t.map===!1)return;this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");let n=t.map?t.map.prev:void 0,i=this.loadMap(t.from,n);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=st(this.mapFile)),i&&(this.text=i)}consumer(){return this.consumerCache||(this.consumerCache=new tn(this.text)),this.consumerCache}decodeInline(e){let t=/^data:application\/json;charset=utf-?8;base64,/,n=/^data:application\/json;base64,/,i=/^data:application\/json;charset=utf-?8,/,o=/^data:application\/json,/;if(i.test(e)||o.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(t.test(e)||n.test(e))return Vi(e.substr(RegExp.lastMatch.length));let s=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+s)}getAnnotationURL(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(e){return typeof e!="object"?!1:typeof e.mappings=="string"||typeof e._mappings=="string"||Array.isArray(e.sections)}loadAnnotation(e){let t=e.match(/\/\*\s*# sourceMappingURL=/gm);if(!t)return;let n=e.lastIndexOf(t.pop()),i=e.indexOf("*/",n);n>-1&&i>-1&&(this.annotation=this.getAnnotationURL(e.substring(n,i)))}loadFile(e){if(this.root=st(e),Zi(e))return this.mapFile=e,Xi(e,"utf-8").toString().trim()}loadMap(e,t){if(t===!1)return!1;if(t){if(typeof t=="string")return t;if(typeof t=="function"){let n=t(e);if(n){let i=this.loadFile(n);if(!i)throw new Error("Unable to load previous source map: "+n.toString());return i}}else{if(t instanceof tn)return nn.fromSourceMap(t).toString();if(t instanceof nn)return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let n=this.annotation;return e&&(n=Ji(st(e),n)),this.loadFile(n)}}}startWith(e,t){return e?e.substr(0,t.length)===t:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}};var Nn=gt;gt.default=gt;let{SourceMapConsumer:Yi,SourceMapGenerator:Qi}=U,{fileURLToPath:rn,pathToFileURL:Ae}=U,{isAbsolute:mt,resolve:bt}=U,{nanoid:es}=Ki,ot=U,sn=Mt,ts=Nn,at=Symbol("fromOffsetCache"),ns=!!(Yi&&Qi),on=!!(bt&&mt),ze=class{constructor(e,t={}){if(e===null||typeof e>"u"||typeof e=="object"&&!e.toString)throw new Error(`PostCSS received ${e} instead of CSS string`);if(this.css=e.toString(),this.css[0]==="\uFEFF"||this.css[0]==="￾"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(!on||/^\w+:\/\//.test(t.from)||mt(t.from)?this.file=t.from:this.file=bt(t.from)),on&&ns){let n=new ts(this.css,t);if(n.text){this.map=n;let i=n.consumer().file;!this.file&&i&&(this.file=this.mapResolve(i))}}this.file||(this.id="<input css "+es(6)+">"),this.map&&(this.map.file=this.from)}error(e,t,n,i={}){let o,s,a;if(t&&typeof t=="object"){let c=t,f=n;if(typeof c.offset=="number"){let b=this.fromOffset(c.offset);t=b.line,n=b.col}else t=c.line,n=c.column;if(typeof f.offset=="number"){let b=this.fromOffset(f.offset);s=b.line,a=b.col}else s=f.line,a=f.column}else if(!n){let c=this.fromOffset(t);t=c.line,n=c.col}let l=this.origin(t,n,s,a);return l?o=new sn(e,l.endLine===void 0?l.line:{column:l.column,line:l.line},l.endLine===void 0?l.column:{column:l.endColumn,line:l.endLine},l.source,l.file,i.plugin):o=new sn(e,s===void 0?t:{column:n,line:t},s===void 0?n:{column:a,line:s},this.css,this.file,i.plugin),o.input={column:n,endColumn:a,endLine:s,line:t,source:this.css},this.file&&(Ae&&(o.input.url=Ae(this.file).toString()),o.input.file=this.file),o}fromOffset(e){let t,n;if(this[at])n=this[at];else{let o=this.css.split(`
199
- `);n=new Array(o.length);let s=0;for(let a=0,l=o.length;a<l;a++)n[a]=s,s+=o[a].length+1;this[at]=n}t=n[n.length-1];let i=0;if(e>=t)i=n.length-1;else{let o=n.length-2,s;for(;i<o;)if(s=i+(o-i>>1),e<n[s])o=s-1;else if(e>=n[s+1])i=s+1;else{i=s;break}}return{col:e-n[i]+1,line:i+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:bt(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,t,n,i){if(!this.map)return!1;let o=this.map.consumer(),s=o.originalPositionFor({column:t,line:e});if(!s.source)return!1;let a;typeof n=="number"&&(a=o.originalPositionFor({column:i,line:n}));let l;mt(s.source)?l=Ae(s.source):l=new URL(s.source,this.map.consumer().sourceRoot||Ae(this.map.mapFile));let c={column:s.column,endColumn:a&&a.column,endLine:a&&a.line,line:s.line,url:l.toString()};if(l.protocol==="file:")if(rn)c.file=rn(l);else throw new Error("file: protocol is not available in this PostCSS build");let f=o.sourceContentFor(s.source);return f&&(c.source=f),c}toJSON(){let e={};for(let t of["hasBOM","css","file","id"])this[t]!=null&&(e[t]=this[t]);return this.map&&(e.map={...this.map},e.map.consumerCache&&(e.map.consumerCache=void 0)),e}get from(){return this.file||this.id}};var Je=ze;ze.default=ze;ot&&ot.registerInput&&ot.registerInput(ze);let{SourceMapConsumer:In,SourceMapGenerator:$e}=U,{dirname:Be,relative:Pn,resolve:Ln,sep:Dn}=U,{pathToFileURL:an}=U,rs=Je,is=!!(In&&$e),ss=!!(Be&&Ln&&Pn&&Dn),os=class{constructor(e,t,n,i){this.stringify=e,this.mapOpts=n.map||{},this.root=t,this.opts=n,this.css=i,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let e;this.isInline()?e="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?e=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?e=this.mapOpts.annotation(this.opts.to,this.root):e=this.outputFile()+".map";let t=`
192
+ `,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function g(h){return h[0].toUpperCase()+h.slice(1)}class b{constructor(r){this.builder=r}atrule(r,f){let s="@"+r.name,p=r.params?this.rawValue(r,"params"):"";if(typeof r.raws.afterName<"u"?s+=r.raws.afterName:p&&(s+=" "),r.nodes)this.block(r,s+p);else{let x=(r.raws.between||"")+(f?";":"");this.builder(s+p+x,r)}}beforeAfter(r,f){let s;r.type==="decl"?s=this.raw(r,null,"beforeDecl"):r.type==="comment"?s=this.raw(r,null,"beforeComment"):f==="before"?s=this.raw(r,null,"beforeRule"):s=this.raw(r,null,"beforeClose");let p=r.parent,x=0;for(;p&&p.type!=="root";)x+=1,p=p.parent;if(s.includes(`
193
+ `)){let l=this.raw(r,null,"indent");if(l.length)for(let e=0;e<x;e++)s+=l}return s}block(r,f){let s=this.raw(r,"between","beforeOpen");this.builder(f+s+"{",r,"start");let p;r.nodes&&r.nodes.length?(this.body(r),p=this.raw(r,"after")):p=this.raw(r,"after","emptyBody"),p&&this.builder(p),this.builder("}",r,"end")}body(r){let f=r.nodes.length-1;for(;f>0&&r.nodes[f].type==="comment";)f-=1;let s=this.raw(r,"semicolon");for(let p=0;p<r.nodes.length;p++){let x=r.nodes[p],l=this.raw(x,"before");l&&this.builder(l),this.stringify(x,f!==p||s)}}comment(r){let f=this.raw(r,"left","commentLeft"),s=this.raw(r,"right","commentRight");this.builder("/*"+f+r.text+s+"*/",r)}decl(r,f){let s=this.raw(r,"between","colon"),p=r.prop+s+this.rawValue(r,"value");r.important&&(p+=r.raws.important||" !important"),f&&(p+=";"),this.builder(p,r)}document(r){this.body(r)}raw(r,f,s){let p;if(s||(s=f),f&&(p=r.raws[f],typeof p<"u"))return p;let x=r.parent;if(s==="before"&&(!x||x.type==="root"&&x.first===r||x&&x.type==="document"))return"";if(!x)return c[s];let l=r.root();if(l.rawCache||(l.rawCache={}),typeof l.rawCache[s]<"u")return l.rawCache[s];if(s==="before"||s==="after")return this.beforeAfter(r,s);{let e="raw"+g(s);this[e]?p=this[e](l,r):l.walk(i=>{if(p=i.raws[f],typeof p<"u")return!1})}return typeof p>"u"&&(p=c[s]),l.rawCache[s]=p,p}rawBeforeClose(r){let f;return r.walk(s=>{if(s.nodes&&s.nodes.length>0&&typeof s.raws.after<"u")return f=s.raws.after,f.includes(`
194
+ `)&&(f=f.replace(/[^\n]+$/,"")),!1}),f&&(f=f.replace(/\S/g,"")),f}rawBeforeComment(r,f){let s;return r.walkComments(p=>{if(typeof p.raws.before<"u")return s=p.raws.before,s.includes(`
195
+ `)&&(s=s.replace(/[^\n]+$/,"")),!1}),typeof s>"u"?s=this.raw(f,null,"beforeDecl"):s&&(s=s.replace(/\S/g,"")),s}rawBeforeDecl(r,f){let s;return r.walkDecls(p=>{if(typeof p.raws.before<"u")return s=p.raws.before,s.includes(`
196
+ `)&&(s=s.replace(/[^\n]+$/,"")),!1}),typeof s>"u"?s=this.raw(f,null,"beforeRule"):s&&(s=s.replace(/\S/g,"")),s}rawBeforeOpen(r){let f;return r.walk(s=>{if(s.type!=="decl"&&(f=s.raws.between,typeof f<"u"))return!1}),f}rawBeforeRule(r){let f;return r.walk(s=>{if(s.nodes&&(s.parent!==r||r.first!==s)&&typeof s.raws.before<"u")return f=s.raws.before,f.includes(`
197
+ `)&&(f=f.replace(/[^\n]+$/,"")),!1}),f&&(f=f.replace(/\S/g,"")),f}rawColon(r){let f;return r.walkDecls(s=>{if(typeof s.raws.between<"u")return f=s.raws.between.replace(/[^\s:]/g,""),!1}),f}rawEmptyBody(r){let f;return r.walk(s=>{if(s.nodes&&s.nodes.length===0&&(f=s.raws.after,typeof f<"u"))return!1}),f}rawIndent(r){if(r.raws.indent)return r.raws.indent;let f;return r.walk(s=>{let p=s.parent;if(p&&p!==r&&p.parent&&p.parent===r&&typeof s.raws.before<"u"){let x=s.raws.before.split(`
198
+ `);return f=x[x.length-1],f=f.replace(/\S/g,""),!1}}),f}rawSemicolon(r){let f;return r.walk(s=>{if(s.nodes&&s.nodes.length&&s.last.type==="decl"&&(f=s.raws.semicolon,typeof f<"u"))return!1}),f}rawValue(r,f){let s=r[f],p=r.raws[f];return p&&p.value===s?p.raw:s}root(r){this.body(r),r.raws.after&&this.builder(r.raws.after)}rule(r){this.block(r,this.rawValue(r,"selector")),r.raws.ownSemicolon&&this.builder(r.raws.ownSemicolon,r,"end")}stringify(r,f){if(!this[r.type])throw new Error("Unknown AST node type "+r.type+". Maybe you need to change PostCSS stringifier.");this[r.type](r,f)}}return lt=b,b.default=b,lt}var ct,fn;function We(){if(fn)return ct;fn=1;let c=Bn();function g(b,h){new c(h).stringify(b)}return ct=g,g.default=g,ct}var Fe={},hn;function Dt(){return hn||(hn=1,Fe.isClean=Symbol("isClean"),Fe.my=Symbol("my")),Fe}var ut,dn;function Ke(){if(dn)return ut;dn=1;let c=Lt(),g=Bn(),b=We(),{isClean:h,my:r}=Dt();function f(x,l){let e=new x.constructor;for(let i in x){if(!Object.prototype.hasOwnProperty.call(x,i)||i==="proxyCache")continue;let t=x[i],n=typeof t;i==="parent"&&n==="object"?l&&(e[i]=l):i==="source"?e[i]=t:Array.isArray(t)?e[i]=t.map(a=>f(a,e)):(n==="object"&&t!==null&&(t=f(t)),e[i]=t)}return e}function s(x,l){if(l&&typeof l.offset<"u")return l.offset;let e=1,i=1,t=0;for(let n=0;n<x.length;n++){if(i===l.line&&e===l.column){t=n;break}x[n]===`
199
+ `?(e=1,i+=1):e+=1}return t}class p{get proxyOf(){return this}constructor(l={}){this.raws={},this[h]=!1,this[r]=!0;for(let e in l)if(e==="nodes"){this.nodes=[];for(let i of l[e])typeof i.clone=="function"?this.append(i.clone()):this.append(i)}else this[e]=l[e]}addToError(l){if(l.postcssNode=this,l.stack&&this.source&&/\n\s{4}at /.test(l.stack)){let e=this.source;l.stack=l.stack.replace(/\n\s{4}at /,`$&${e.input.from}:${e.start.line}:${e.start.column}$&`)}return l}after(l){return this.parent.insertAfter(this,l),this}assign(l={}){for(let e in l)this[e]=l[e];return this}before(l){return this.parent.insertBefore(this,l),this}cleanRaws(l){delete this.raws.before,delete this.raws.after,l||delete this.raws.between}clone(l={}){let e=f(this);for(let i in l)e[i]=l[i];return e}cloneAfter(l={}){let e=this.clone(l);return this.parent.insertAfter(this,e),e}cloneBefore(l={}){let e=this.clone(l);return this.parent.insertBefore(this,e),e}error(l,e={}){if(this.source){let{end:i,start:t}=this.rangeBy(e);return this.source.input.error(l,{column:t.column,line:t.line},{column:i.column,line:i.line},e)}return new c(l)}getProxyProcessor(){return{get(l,e){return e==="proxyOf"?l:e==="root"?()=>l.root().toProxy():l[e]},set(l,e,i){return l[e]===i||(l[e]=i,(e==="prop"||e==="value"||e==="name"||e==="params"||e==="important"||e==="text")&&l.markDirty()),!0}}}markClean(){this[h]=!0}markDirty(){if(this[h]){this[h]=!1;let l=this;for(;l=l.parent;)l[h]=!1}}next(){if(!this.parent)return;let l=this.parent.index(this);return this.parent.nodes[l+1]}positionBy(l={}){let e=this.source.start;if(l.index)e=this.positionInside(l.index);else if(l.word){let i="document"in this.source.input?this.source.input.document:this.source.input.css,n=i.slice(s(i,this.source.start),s(i,this.source.end)).indexOf(l.word);n!==-1&&(e=this.positionInside(n))}return e}positionInside(l){let e=this.source.start.column,i=this.source.start.line,t="document"in this.source.input?this.source.input.document:this.source.input.css,n=s(t,this.source.start),a=n+l;for(let u=n;u<a;u++)t[u]===`
200
+ `?(e=1,i+=1):e+=1;return{column:e,line:i,offset:a}}prev(){if(!this.parent)return;let l=this.parent.index(this);return this.parent.nodes[l-1]}rangeBy(l={}){let e="document"in this.source.input?this.source.input.document:this.source.input.css,i={column:this.source.start.column,line:this.source.start.line,offset:s(e,this.source.start)},t=this.source.end?{column:this.source.end.column+1,line:this.source.end.line,offset:typeof this.source.end.offset=="number"?this.source.end.offset:s(e,this.source.end)+1}:{column:i.column+1,line:i.line,offset:i.offset+1};if(l.word){let a=e.slice(s(e,this.source.start),s(e,this.source.end)).indexOf(l.word);a!==-1&&(i=this.positionInside(a),t=this.positionInside(a+l.word.length))}else l.start?i={column:l.start.column,line:l.start.line,offset:s(e,l.start)}:l.index&&(i=this.positionInside(l.index)),l.end?t={column:l.end.column,line:l.end.line,offset:s(e,l.end)}:typeof l.endIndex=="number"?t=this.positionInside(l.endIndex):l.index&&(t=this.positionInside(l.index+1));return(t.line<i.line||t.line===i.line&&t.column<=i.column)&&(t={column:i.column+1,line:i.line,offset:i.offset+1}),{end:t,start:i}}raw(l,e){return new g().raw(this,l,e)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...l){if(this.parent){let e=this,i=!1;for(let t of l)t===this?i=!0:i?(this.parent.insertAfter(e,t),e=t):this.parent.insertBefore(e,t);i||this.remove()}return this}root(){let l=this;for(;l.parent&&l.parent.type!=="document";)l=l.parent;return l}toJSON(l,e){let i={},t=e==null;e=e||new Map;let n=0;for(let a in this){if(!Object.prototype.hasOwnProperty.call(this,a)||a==="parent"||a==="proxyCache")continue;let u=this[a];if(Array.isArray(u))i[a]=u.map(d=>typeof d=="object"&&d.toJSON?d.toJSON(null,e):d);else if(typeof u=="object"&&u.toJSON)i[a]=u.toJSON(null,e);else if(a==="source"){if(u==null)continue;let d=e.get(u.input);d==null&&(d=n,e.set(u.input,n),n++),i[a]={end:u.end,inputId:d,start:u.start}}else i[a]=u}return t&&(i.inputs=[...e.keys()].map(a=>a.toJSON())),i}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(l=b){l.stringify&&(l=l.stringify);let e="";return l(this,i=>{e+=i}),e}warn(l,e,i={}){let t={node:this};for(let n in i)t[n]=i[n];return l.warn(e,t)}}return ut=p,p.default=p,ut}var ft,pn;function Ze(){if(pn)return ft;pn=1;let c=Ke();class g extends c{constructor(h){super(h),this.type="comment"}}return ft=g,g.default=g,ft}var ht,gn;function Xe(){if(gn)return ht;gn=1;let c=Ke();class g extends c{get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}constructor(h){h&&typeof h.value<"u"&&typeof h.value!="string"&&(h={...h,value:String(h.value)}),super(h),this.type="decl"}}return ht=g,g.default=g,ht}var dt,mn;function ve(){if(mn)return dt;mn=1;let c=Ze(),g=Xe(),b=Ke(),{isClean:h,my:r}=Dt(),f,s,p,x;function l(t){return t.map(n=>(n.nodes&&(n.nodes=l(n.nodes)),delete n.source,n))}function e(t){if(t[h]=!1,t.proxyOf.nodes)for(let n of t.proxyOf.nodes)e(n)}class i extends b{get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}append(...n){for(let a of n){let u=this.normalize(a,this.last);for(let d of u)this.proxyOf.nodes.push(d)}return this.markDirty(),this}cleanRaws(n){if(super.cleanRaws(n),this.nodes)for(let a of this.nodes)a.cleanRaws(n)}each(n){if(!this.proxyOf.nodes)return;let a=this.getIterator(),u,d;for(;this.indexes[a]<this.proxyOf.nodes.length&&(u=this.indexes[a],d=n(this.proxyOf.nodes[u],u),d!==!1);)this.indexes[a]+=1;return delete this.indexes[a],d}every(n){return this.nodes.every(n)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let n=this.lastEach;return this.indexes[n]=0,n}getProxyProcessor(){return{get(n,a){return a==="proxyOf"?n:n[a]?a==="each"||typeof a=="string"&&a.startsWith("walk")?(...u)=>n[a](...u.map(d=>typeof d=="function"?(v,S)=>d(v.toProxy(),S):d)):a==="every"||a==="some"?u=>n[a]((d,...v)=>u(d.toProxy(),...v)):a==="root"?()=>n.root().toProxy():a==="nodes"?n.nodes.map(u=>u.toProxy()):a==="first"||a==="last"?n[a].toProxy():n[a]:n[a]},set(n,a,u){return n[a]===u||(n[a]=u,(a==="name"||a==="params"||a==="selector")&&n.markDirty()),!0}}}index(n){return typeof n=="number"?n:(n.proxyOf&&(n=n.proxyOf),this.proxyOf.nodes.indexOf(n))}insertAfter(n,a){let u=this.index(n),d=this.normalize(a,this.proxyOf.nodes[u]).reverse();u=this.index(n);for(let S of d)this.proxyOf.nodes.splice(u+1,0,S);let v;for(let S in this.indexes)v=this.indexes[S],u<v&&(this.indexes[S]=v+d.length);return this.markDirty(),this}insertBefore(n,a){let u=this.index(n),d=u===0?"prepend":!1,v=this.normalize(a,this.proxyOf.nodes[u],d).reverse();u=this.index(n);for(let w of v)this.proxyOf.nodes.splice(u,0,w);let S;for(let w in this.indexes)S=this.indexes[w],u<=S&&(this.indexes[w]=S+v.length);return this.markDirty(),this}normalize(n,a){if(typeof n=="string")n=l(s(n).nodes);else if(typeof n>"u")n=[];else if(Array.isArray(n)){n=n.slice(0);for(let d of n)d.parent&&d.parent.removeChild(d,"ignore")}else if(n.type==="root"&&this.type!=="document"){n=n.nodes.slice(0);for(let d of n)d.parent&&d.parent.removeChild(d,"ignore")}else if(n.type)n=[n];else if(n.prop){if(typeof n.value>"u")throw new Error("Value field is missed in node creation");typeof n.value!="string"&&(n.value=String(n.value)),n=[new g(n)]}else if(n.selector||n.selectors)n=[new x(n)];else if(n.name)n=[new f(n)];else if(n.text)n=[new c(n)];else throw new Error("Unknown node type in node creation");return n.map(d=>(d[r]||i.rebuild(d),d=d.proxyOf,d.parent&&d.parent.removeChild(d),d[h]&&e(d),d.raws||(d.raws={}),typeof d.raws.before>"u"&&a&&typeof a.raws.before<"u"&&(d.raws.before=a.raws.before.replace(/\S/g,"")),d.parent=this.proxyOf,d))}prepend(...n){n=n.reverse();for(let a of n){let u=this.normalize(a,this.first,"prepend").reverse();for(let d of u)this.proxyOf.nodes.unshift(d);for(let d in this.indexes)this.indexes[d]=this.indexes[d]+u.length}return this.markDirty(),this}push(n){return n.parent=this,this.proxyOf.nodes.push(n),this}removeAll(){for(let n of this.proxyOf.nodes)n.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(n){n=this.index(n),this.proxyOf.nodes[n].parent=void 0,this.proxyOf.nodes.splice(n,1);let a;for(let u in this.indexes)a=this.indexes[u],a>=n&&(this.indexes[u]=a-1);return this.markDirty(),this}replaceValues(n,a,u){return u||(u=a,a={}),this.walkDecls(d=>{a.props&&!a.props.includes(d.prop)||a.fast&&!d.value.includes(a.fast)||(d.value=d.value.replace(n,u))}),this.markDirty(),this}some(n){return this.nodes.some(n)}walk(n){return this.each((a,u)=>{let d;try{d=n(a,u)}catch(v){throw a.addToError(v)}return d!==!1&&a.walk&&(d=a.walk(n)),d})}walkAtRules(n,a){return a?n instanceof RegExp?this.walk((u,d)=>{if(u.type==="atrule"&&n.test(u.name))return a(u,d)}):this.walk((u,d)=>{if(u.type==="atrule"&&u.name===n)return a(u,d)}):(a=n,this.walk((u,d)=>{if(u.type==="atrule")return a(u,d)}))}walkComments(n){return this.walk((a,u)=>{if(a.type==="comment")return n(a,u)})}walkDecls(n,a){return a?n instanceof RegExp?this.walk((u,d)=>{if(u.type==="decl"&&n.test(u.prop))return a(u,d)}):this.walk((u,d)=>{if(u.type==="decl"&&u.prop===n)return a(u,d)}):(a=n,this.walk((u,d)=>{if(u.type==="decl")return a(u,d)}))}walkRules(n,a){return a?n instanceof RegExp?this.walk((u,d)=>{if(u.type==="rule"&&n.test(u.selector))return a(u,d)}):this.walk((u,d)=>{if(u.type==="rule"&&u.selector===n)return a(u,d)}):(a=n,this.walk((u,d)=>{if(u.type==="rule")return a(u,d)}))}}return i.registerParse=t=>{s=t},i.registerRule=t=>{x=t},i.registerAtRule=t=>{f=t},i.registerRoot=t=>{p=t},dt=i,i.default=i,i.rebuild=t=>{t.type==="atrule"?Object.setPrototypeOf(t,f.prototype):t.type==="rule"?Object.setPrototypeOf(t,x.prototype):t.type==="decl"?Object.setPrototypeOf(t,g.prototype):t.type==="comment"?Object.setPrototypeOf(t,c.prototype):t.type==="root"&&Object.setPrototypeOf(t,p.prototype),t[r]=!0,t.nodes&&t.nodes.forEach(n=>{i.rebuild(n)})},dt}var pt,bn;function Bt(){if(bn)return pt;bn=1;let c=ve();class g extends c{constructor(h){super(h),this.type="atrule"}append(...h){return this.proxyOf.nodes||(this.nodes=[]),super.append(...h)}prepend(...h){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...h)}}return pt=g,g.default=g,c.registerAtRule(g),pt}var gt,yn;function qt(){if(yn)return gt;yn=1;let c=ve(),g,b;class h extends c{constructor(f){super({type:"document",...f}),this.nodes||(this.nodes=[])}toResult(f={}){return new g(new b,this,f).stringify()}}return h.registerLazyResult=r=>{g=r},h.registerProcessor=r=>{b=r},gt=h,h.default=h,gt}var mt,wn;function Yr(){if(wn)return mt;wn=1;let c="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";return mt={nanoid:(h=21)=>{let r="",f=h|0;for(;f--;)r+=c[Math.random()*64|0];return r},customAlphabet:(h,r=21)=>(f=r)=>{let s="",p=f|0;for(;p--;)s+=h[Math.random()*h.length|0];return s}},mt}var bt,xn;function qn(){if(xn)return bt;xn=1;let{existsSync:c,readFileSync:g}=ce,{dirname:b,join:h}=ce,{SourceMapConsumer:r,SourceMapGenerator:f}=ce;function s(x){return Buffer?Buffer.from(x,"base64").toString():window.atob(x)}class p{constructor(l,e){if(e.map===!1)return;this.loadAnnotation(l),this.inline=this.startWith(this.annotation,"data:");let i=e.map?e.map.prev:void 0,t=this.loadMap(e.from,i);!this.mapFile&&e.from&&(this.mapFile=e.from),this.mapFile&&(this.root=b(this.mapFile)),t&&(this.text=t)}consumer(){return this.consumerCache||(this.consumerCache=new r(this.text)),this.consumerCache}decodeInline(l){let e=/^data:application\/json;charset=utf-?8;base64,/,i=/^data:application\/json;base64,/,t=/^data:application\/json;charset=utf-?8,/,n=/^data:application\/json,/,a=l.match(t)||l.match(n);if(a)return decodeURIComponent(l.substr(a[0].length));let u=l.match(e)||l.match(i);if(u)return s(l.substr(u[0].length));let d=l.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+d)}getAnnotationURL(l){return l.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(l){return typeof l!="object"?!1:typeof l.mappings=="string"||typeof l._mappings=="string"||Array.isArray(l.sections)}loadAnnotation(l){let e=l.match(/\/\*\s*# sourceMappingURL=/g);if(!e)return;let i=l.lastIndexOf(e.pop()),t=l.indexOf("*/",i);i>-1&&t>-1&&(this.annotation=this.getAnnotationURL(l.substring(i,t)))}loadFile(l){if(this.root=b(l),c(l))return this.mapFile=l,g(l,"utf-8").toString().trim()}loadMap(l,e){if(e===!1)return!1;if(e){if(typeof e=="string")return e;if(typeof e=="function"){let i=e(l);if(i){let t=this.loadFile(i);if(!t)throw new Error("Unable to load previous source map: "+i.toString());return t}}else{if(e instanceof r)return f.fromSourceMap(e).toString();if(e instanceof f)return e.toString();if(this.isMap(e))return JSON.stringify(e);throw new Error("Unsupported previous source map format: "+e.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let i=this.annotation;return l&&(i=h(b(l),i)),this.loadFile(i)}}}startWith(l,e){return l?l.substr(0,e.length)===e:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}return bt=p,p.default=p,bt}var yt,En;function Je(){if(En)return yt;En=1;let{nanoid:c}=Yr(),{isAbsolute:g,resolve:b}=ce,{SourceMapConsumer:h,SourceMapGenerator:r}=ce,{fileURLToPath:f,pathToFileURL:s}=ce,p=Lt(),x=qn(),l=ce,e=Symbol("lineToIndexCache"),i=!!(h&&r),t=!!(b&&g);function n(u){if(u[e])return u[e];let d=u.css.split(`
201
+ `),v=new Array(d.length),S=0;for(let w=0,y=d.length;w<y;w++)v[w]=S,S+=d[w].length+1;return u[e]=v,v}class a{get from(){return this.file||this.id}constructor(d,v={}){if(d===null||typeof d>"u"||typeof d=="object"&&!d.toString)throw new Error(`PostCSS received ${d} instead of CSS string`);if(this.css=d.toString(),this.css[0]==="\uFEFF"||this.css[0]==="￾"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,this.document=this.css,v.document&&(this.document=v.document.toString()),v.from&&(!t||/^\w+:\/\//.test(v.from)||g(v.from)?this.file=v.from:this.file=b(v.from)),t&&i){let S=new x(this.css,v);if(S.text){this.map=S;let w=S.consumer().file;!this.file&&w&&(this.file=this.mapResolve(w))}}this.file||(this.id="<input css "+c(6)+">"),this.map&&(this.map.file=this.from)}error(d,v,S,w={}){let y,m,_,A,L;if(v&&typeof v=="object"){let P=v,X=S;if(typeof P.offset=="number"){A=P.offset;let $=this.fromOffset(A);v=$.line,S=$.col}else v=P.line,S=P.column,A=this.fromLineAndColumn(v,S);if(typeof X.offset=="number"){_=X.offset;let $=this.fromOffset(_);m=$.line,y=$.col}else m=X.line,y=X.column,_=this.fromLineAndColumn(X.line,X.column)}else if(S)A=this.fromLineAndColumn(v,S);else{A=v;let P=this.fromOffset(A);v=P.line,S=P.col}let z=this.origin(v,S,m,y);return z?L=new p(d,z.endLine===void 0?z.line:{column:z.column,line:z.line},z.endLine===void 0?z.column:{column:z.endColumn,line:z.endLine},z.source,z.file,w.plugin):L=new p(d,m===void 0?v:{column:S,line:v},m===void 0?S:{column:y,line:m},this.css,this.file,w.plugin),L.input={column:S,endColumn:y,endLine:m,endOffset:_,line:v,offset:A,source:this.css},this.file&&(s&&(L.input.url=s(this.file).toString()),L.input.file=this.file),L}fromLineAndColumn(d,v){return n(this)[d-1]+v-1}fromOffset(d){let v=n(this),S=v[v.length-1],w=0;if(d>=S)w=v.length-1;else{let y=v.length-2,m;for(;w<y;)if(m=w+(y-w>>1),d<v[m])y=m-1;else if(d>=v[m+1])w=m+1;else{w=m;break}}return{col:d-v[w]+1,line:w+1}}mapResolve(d){return/^\w+:\/\//.test(d)?d:b(this.map.consumer().sourceRoot||this.map.root||".",d)}origin(d,v,S,w){if(!this.map)return!1;let y=this.map.consumer(),m=y.originalPositionFor({column:v,line:d});if(!m.source)return!1;let _;typeof S=="number"&&(_=y.originalPositionFor({column:w,line:S}));let A;g(m.source)?A=s(m.source):A=new URL(m.source,this.map.consumer().sourceRoot||s(this.map.mapFile));let L={column:m.column,endColumn:_&&_.column,endLine:_&&_.line,line:m.line,url:A.toString()};if(A.protocol==="file:")if(f)L.file=f(A);else throw new Error("file: protocol is not available in this PostCSS build");let z=y.sourceContentFor(m.source);return z&&(L.source=z),L}toJSON(){let d={};for(let v of["hasBOM","css","file","id"])this[v]!=null&&(d[v]=this[v]);return this.map&&(d.map={...this.map},d.map.consumerCache&&(d.map.consumerCache=void 0)),d}}return yt=a,a.default=a,l&&l.registerInput&&l.registerInput(a),yt}var wt,vn;function Ie(){if(vn)return wt;vn=1;let c=ve(),g,b;class h extends c{constructor(f){super(f),this.type="root",this.nodes||(this.nodes=[])}normalize(f,s,p){let x=super.normalize(f);if(s){if(p==="prepend")this.nodes.length>1?s.raws.before=this.nodes[1].raws.before:delete s.raws.before;else if(this.first!==s)for(let l of x)l.raws.before=s.raws.before}return x}removeChild(f,s){let p=this.index(f);return!s&&p===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[p].raws.before),super.removeChild(f)}toResult(f={}){return new g(new b,this,f).stringify()}}return h.registerLazyResult=r=>{g=r},h.registerProcessor=r=>{b=r},wt=h,h.default=h,c.registerRoot(h),wt}var xt,Sn;function Un(){if(Sn)return xt;Sn=1;let c={comma(g){return c.split(g,[","],!0)},space(g){let b=[" ",`
202
+ `," "];return c.split(g,b)},split(g,b,h){let r=[],f="",s=!1,p=0,x=!1,l="",e=!1;for(let i of g)e?e=!1:i==="\\"?e=!0:x?i===l&&(x=!1):i==='"'||i==="'"?(x=!0,l=i):i==="("?p+=1:i===")"?p>0&&(p-=1):p===0&&b.includes(i)&&(s=!0),s?(f!==""&&r.push(f.trim()),f="",s=!1):f+=i;return(h||f!=="")&&r.push(f.trim()),r}};return xt=c,c.default=c,xt}var Et,_n;function Ut(){if(_n)return Et;_n=1;let c=ve(),g=Un();class b extends c{get selectors(){return g.comma(this.selector)}set selectors(r){let f=this.selector?this.selector.match(/,\s*/):null,s=f?f[0]:","+this.raw("between","beforeOpen");this.selector=r.join(s)}constructor(r){super(r),this.type="rule",this.nodes||(this.nodes=[])}}return Et=b,b.default=b,c.registerRule(b),Et}var vt,Rn;function Qr(){if(Rn)return vt;Rn=1;let c=Bt(),g=Ze(),b=Xe(),h=Je(),r=qn(),f=Ie(),s=Ut();function p(x,l){if(Array.isArray(x))return x.map(t=>p(t));let{inputs:e,...i}=x;if(e){l=[];for(let t of e){let n={...t,__proto__:h.prototype};n.map&&(n.map={...n.map,__proto__:r.prototype}),l.push(n)}}if(i.nodes&&(i.nodes=x.nodes.map(t=>p(t,l))),i.source){let{inputId:t,...n}=i.source;i.source=n,t!=null&&(i.source.input=l[t])}if(i.type==="root")return new f(i);if(i.type==="decl")return new b(i);if(i.type==="rule")return new s(i);if(i.type==="comment")return new g(i);if(i.type==="atrule")return new c(i);throw new Error("Unknown node type: "+x.type)}return vt=p,p.default=p,vt}var St,On;function zn(){if(On)return St;On=1;let{dirname:c,relative:g,resolve:b,sep:h}=ce,{SourceMapConsumer:r,SourceMapGenerator:f}=ce,{pathToFileURL:s}=ce,p=Je(),x=!!(r&&f),l=!!(c&&b&&g&&h);class e{constructor(t,n,a,u){this.stringify=t,this.mapOpts=a.map||{},this.root=n,this.opts=a,this.css=u,this.originalCSS=u,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let t;this.isInline()?t="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?t=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?t=this.mapOpts.annotation(this.opts.to,this.root):t=this.outputFile()+".map";let n=`
200
203
  `;this.css.includes(`\r
201
- `)&&(t=`\r
202
- `),this.css+=t+"/*# sourceMappingURL="+e+" */"}applyPrevMaps(){for(let e of this.previous()){let t=this.toUrl(this.path(e.file)),n=e.root||Be(e.file),i;this.mapOpts.sourcesContent===!1?(i=new In(e.text),i.sourcesContent&&(i.sourcesContent=i.sourcesContent.map(()=>null))):i=e.consumer(),this.map.applySourceMap(i,t,this.toUrl(this.path(n)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let e;for(let t=this.root.nodes.length-1;t>=0;t--)e=this.root.nodes[t],e.type==="comment"&&e.text.indexOf("# sourceMappingURL=")===0&&this.root.removeChild(t)}else this.css&&(this.css=this.css.replace(/(\n)?\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),ss&&is&&this.isMap())return this.generateMap();{let e="";return this.stringify(this.root,t=>{e+=t}),[e]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=$e.fromSourceMap(e)}else this.map=new $e({file:this.outputFile()}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new $e({file:this.outputFile()});let e=1,t=1,n="<no source>",i={generated:{column:0,line:0},original:{column:0,line:0},source:""},o,s;this.stringify(this.root,(a,l,c)=>{if(this.css+=a,l&&c!=="end"&&(i.generated.line=e,i.generated.column=t-1,l.source&&l.source.start?(i.source=this.sourcePath(l),i.original.line=l.source.start.line,i.original.column=l.source.start.column-1,this.map.addMapping(i)):(i.source=n,i.original.line=1,i.original.column=0,this.map.addMapping(i))),o=a.match(/\n/g),o?(e+=o.length,s=a.lastIndexOf(`
203
- `),t=a.length-s):t+=a.length,l&&c!=="start"){let f=l.parent||{raws:{}};(!(l.type==="decl"||l.type==="atrule"&&!l.nodes)||l!==f.last||f.raws.semicolon)&&(l.source&&l.source.end?(i.source=this.sourcePath(l),i.original.line=l.source.end.line,i.original.column=l.source.end.column-1,i.generated.line=e,i.generated.column=t-2,this.map.addMapping(i)):(i.source=n,i.original.line=1,i.original.column=0,i.generated.line=e,i.generated.column=t-1,this.map.addMapping(i)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(e=>e.annotation):!0}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let e=this.mapOpts.annotation;return typeof e<"u"&&e!==!0?!1:this.previous().length?this.previous().some(t=>t.inline):!0}isMap(){return typeof this.opts.map<"u"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent<"u"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(e=>e.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(e){if(this.mapOpts.absolute||e.charCodeAt(0)===60||/^\w+:\/\//.test(e))return e;let t=this.memoizedPaths.get(e);if(t)return t;let n=this.opts.to?Be(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(n=Be(Ln(n,this.mapOpts.annotation)));let i=Pn(n,e);return this.memoizedPaths.set(e,i),i}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(e=>{if(e.source&&e.source.input.map){let t=e.source.input.map;this.previousMaps.includes(t)||this.previousMaps.push(t)}});else{let e=new rs(this.css,this.opts);e.map&&this.previousMaps.push(e.map)}return this.previousMaps}setSourcesContent(){let e={};if(this.root)this.root.walk(t=>{if(t.source){let n=t.source.input.from;if(n&&!e[n]){e[n]=!0;let i=this.usesFileUrls?this.toFileUrl(n):this.toUrl(this.path(n));this.map.setSourceContent(i,t.source.input.css)}}});else if(this.css){let t=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(t,this.css)}}sourcePath(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))}toBase64(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))}toFileUrl(e){let t=this.memoizedFileURLs.get(e);if(t)return t;if(an){let n=an(e).toString();return this.memoizedFileURLs.set(e,n),n}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(e){let t=this.memoizedURLs.get(e);if(t)return t;Dn==="\\"&&(e=e.replace(/\\/g,"/"));let n=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,n),n}};var $n=os;let as=Ze,yt=class extends as{constructor(e){super(e),this.type="comment"}};var Ve=yt;yt.default=yt;let{isClean:Bn,my:Un}=we,zn=Xe,jn=Ve,ls=Ze,qn,Tt,Nt,Fn;function Hn(r){return r.map(e=>(e.nodes&&(e.nodes=Hn(e.nodes)),delete e.source,e))}function Gn(r){if(r[Bn]=!1,r.proxyOf.nodes)for(let e of r.proxyOf.nodes)Gn(e)}let W=class Wn extends ls{append(...e){for(let t of e){let n=this.normalize(t,this.last);for(let i of n)this.proxyOf.nodes.push(i)}return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let t of this.nodes)t.cleanRaws(e)}each(e){if(!this.proxyOf.nodes)return;let t=this.getIterator(),n,i;for(;this.indexes[t]<this.proxyOf.nodes.length&&(n=this.indexes[t],i=e(this.proxyOf.nodes[n],n),i!==!1);)this.indexes[t]+=1;return delete this.indexes[t],i}every(e){return this.nodes.every(e)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let e=this.lastEach;return this.indexes[e]=0,e}getProxyProcessor(){return{get(e,t){return t==="proxyOf"?e:e[t]?t==="each"||typeof t=="string"&&t.startsWith("walk")?(...n)=>e[t](...n.map(i=>typeof i=="function"?(o,s)=>i(o.toProxy(),s):i)):t==="every"||t==="some"?n=>e[t]((i,...o)=>n(i.toProxy(),...o)):t==="root"?()=>e.root().toProxy():t==="nodes"?e.nodes.map(n=>n.toProxy()):t==="first"||t==="last"?e[t].toProxy():e[t]:e[t]},set(e,t,n){return e[t]===n||(e[t]=n,(t==="name"||t==="params"||t==="selector")&&e.markDirty()),!0}}}index(e){return typeof e=="number"?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}insertAfter(e,t){let n=this.index(e),i=this.normalize(t,this.proxyOf.nodes[n]).reverse();n=this.index(e);for(let s of i)this.proxyOf.nodes.splice(n+1,0,s);let o;for(let s in this.indexes)o=this.indexes[s],n<o&&(this.indexes[s]=o+i.length);return this.markDirty(),this}insertBefore(e,t){let n=this.index(e),i=n===0?"prepend":!1,o=this.normalize(t,this.proxyOf.nodes[n],i).reverse();n=this.index(e);for(let a of o)this.proxyOf.nodes.splice(n,0,a);let s;for(let a in this.indexes)s=this.indexes[a],n<=s&&(this.indexes[a]=s+o.length);return this.markDirty(),this}normalize(e,t){if(typeof e=="string")e=Hn(qn(e).nodes);else if(Array.isArray(e)){e=e.slice(0);for(let i of e)i.parent&&i.parent.removeChild(i,"ignore")}else if(e.type==="root"&&this.type!=="document"){e=e.nodes.slice(0);for(let i of e)i.parent&&i.parent.removeChild(i,"ignore")}else if(e.type)e=[e];else if(e.prop){if(typeof e.value>"u")throw new Error("Value field is missed in node creation");typeof e.value!="string"&&(e.value=String(e.value)),e=[new zn(e)]}else if(e.selector)e=[new Tt(e)];else if(e.name)e=[new Nt(e)];else if(e.text)e=[new jn(e)];else throw new Error("Unknown node type in node creation");return e.map(i=>(i[Un]||Wn.rebuild(i),i=i.proxyOf,i.parent&&i.parent.removeChild(i),i[Bn]&&Gn(i),typeof i.raws.before>"u"&&t&&typeof t.raws.before<"u"&&(i.raws.before=t.raws.before.replace(/\S/g,"")),i.parent=this.proxyOf,i))}prepend(...e){e=e.reverse();for(let t of e){let n=this.normalize(t,this.first,"prepend").reverse();for(let i of n)this.proxyOf.nodes.unshift(i);for(let i in this.indexes)this.indexes[i]=this.indexes[i]+n.length}return this.markDirty(),this}push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(e){e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1);let t;for(let n in this.indexes)t=this.indexes[n],t>=e&&(this.indexes[n]=t-1);return this.markDirty(),this}replaceValues(e,t,n){return n||(n=t,t={}),this.walkDecls(i=>{t.props&&!t.props.includes(i.prop)||t.fast&&!i.value.includes(t.fast)||(i.value=i.value.replace(e,n))}),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each((t,n)=>{let i;try{i=e(t,n)}catch(o){throw t.addToError(o)}return i!==!1&&t.walk&&(i=t.walk(e)),i})}walkAtRules(e,t){return t?e instanceof RegExp?this.walk((n,i)=>{if(n.type==="atrule"&&e.test(n.name))return t(n,i)}):this.walk((n,i)=>{if(n.type==="atrule"&&n.name===e)return t(n,i)}):(t=e,this.walk((n,i)=>{if(n.type==="atrule")return t(n,i)}))}walkComments(e){return this.walk((t,n)=>{if(t.type==="comment")return e(t,n)})}walkDecls(e,t){return t?e instanceof RegExp?this.walk((n,i)=>{if(n.type==="decl"&&e.test(n.prop))return t(n,i)}):this.walk((n,i)=>{if(n.type==="decl"&&n.prop===e)return t(n,i)}):(t=e,this.walk((n,i)=>{if(n.type==="decl")return t(n,i)}))}walkRules(e,t){return t?e instanceof RegExp?this.walk((n,i)=>{if(n.type==="rule"&&e.test(n.selector))return t(n,i)}):this.walk((n,i)=>{if(n.type==="rule"&&n.selector===e)return t(n,i)}):(t=e,this.walk((n,i)=>{if(n.type==="rule")return t(n,i)}))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}};W.registerParse=r=>{qn=r};W.registerRule=r=>{Tt=r};W.registerAtRule=r=>{Nt=r};W.registerRoot=r=>{Fn=r};var ee=W;W.default=W;W.rebuild=r=>{r.type==="atrule"?Object.setPrototypeOf(r,Nt.prototype):r.type==="rule"?Object.setPrototypeOf(r,Tt.prototype):r.type==="decl"?Object.setPrototypeOf(r,zn.prototype):r.type==="comment"?Object.setPrototypeOf(r,jn.prototype):r.type==="root"&&Object.setPrototypeOf(r,Fn.prototype),r[Un]=!0,r.nodes&&r.nodes.forEach(e=>{W.rebuild(e)})};let cs=ee,Kn,Zn,ge=class extends cs{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(e={}){return new Kn(new Zn,this,e).stringify()}};ge.registerLazyResult=r=>{Kn=r};ge.registerProcessor=r=>{Zn=r};var It=ge;ge.default=ge;let wt=class{constructor(e,t={}){if(this.type="warning",this.text=e,t.node&&t.node.source){let n=t.node.rangeBy(t);this.line=n.start.line,this.column=n.start.column,this.endLine=n.end.line,this.endColumn=n.end.column}for(let n in t)this[n]=t[n]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}};var Xn=wt;wt.default=wt;let us=Xn,xt=class{constructor(e,t,n){this.processor=e,this.messages=[],this.root=t,this.opts=n,this.css=void 0,this.map=void 0}toString(){return this.css}warn(e,t={}){t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);let n=new us(e,t);return this.messages.push(n),n}warnings(){return this.messages.filter(e=>e.type==="warning")}get content(){return this.css}};var Pt=xt;xt.default=xt;const lt=39,ln=34,ke=92,cn=47,Me=10,ce=32,Te=12,Ne=9,Ie=13,fs=91,hs=93,ds=40,ps=41,gs=123,ms=125,bs=59,ys=42,ws=58,xs=64,Pe=/[\t\n\f\r "#'()/;[\\\]{}]/g,Le=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,Es=/.[\r\n"'(/\\]/,un=/[\da-f]/i;var vs=function(e,t={}){let n=e.css.valueOf(),i=t.ignoreErrors,o,s,a,l,c,f,b,g,A,k,L=n.length,m=0,te=[],z=[];function Z(){return m}function D($){throw e.error("Unclosed "+$,m)}function X(){return z.length===0&&m>=L}function H($){if(z.length)return z.pop();if(m>=L)return;let I=$?$.ignoreUnclosed:!1;switch(o=n.charCodeAt(m),o){case Me:case ce:case Ne:case Ie:case Te:{s=m;do s+=1,o=n.charCodeAt(s);while(o===ce||o===Me||o===Ne||o===Ie||o===Te);k=["space",n.slice(m,s)],m=s-1;break}case fs:case hs:case gs:case ms:case ws:case bs:case ps:{let J=String.fromCharCode(o);k=[J,J,m];break}case ds:{if(g=te.length?te.pop()[1]:"",A=n.charCodeAt(m+1),g==="url"&&A!==lt&&A!==ln&&A!==ce&&A!==Me&&A!==Ne&&A!==Te&&A!==Ie){s=m;do{if(f=!1,s=n.indexOf(")",s+1),s===-1)if(i||I){s=m;break}else D("bracket");for(b=s;n.charCodeAt(b-1)===ke;)b-=1,f=!f}while(f);k=["brackets",n.slice(m,s+1),m,s],m=s}else s=n.indexOf(")",m+1),l=n.slice(m,s+1),s===-1||Es.test(l)?k=["(","(",m]:(k=["brackets",l,m,s],m=s);break}case lt:case ln:{a=o===lt?"'":'"',s=m;do{if(f=!1,s=n.indexOf(a,s+1),s===-1)if(i||I){s=m+1;break}else D("string");for(b=s;n.charCodeAt(b-1)===ke;)b-=1,f=!f}while(f);k=["string",n.slice(m,s+1),m,s],m=s;break}case xs:{Pe.lastIndex=m+1,Pe.test(n),Pe.lastIndex===0?s=n.length-1:s=Pe.lastIndex-2,k=["at-word",n.slice(m,s+1),m,s],m=s;break}case ke:{for(s=m,c=!0;n.charCodeAt(s+1)===ke;)s+=1,c=!c;if(o=n.charCodeAt(s+1),c&&o!==cn&&o!==ce&&o!==Me&&o!==Ne&&o!==Ie&&o!==Te&&(s+=1,un.test(n.charAt(s)))){for(;un.test(n.charAt(s+1));)s+=1;n.charCodeAt(s+1)===ce&&(s+=1)}k=["word",n.slice(m,s+1),m,s],m=s;break}default:{o===cn&&n.charCodeAt(m+1)===ys?(s=n.indexOf("*/",m+2)+1,s===0&&(i||I?s=n.length:D("comment")),k=["comment",n.slice(m,s+1),m,s],m=s):(Le.lastIndex=m+1,Le.test(n),Le.lastIndex===0?s=n.length-1:s=Le.lastIndex-2,k=["word",n.slice(m,s+1),m,s],te.push(k),m=s);break}}return m++,k}function le($){z.push($)}return{back:le,endOfFile:X,nextToken:H,position:Z}};let Jn=ee,je=class extends Jn{constructor(e){super(e),this.type="atrule"}append(...e){return this.proxyOf.nodes||(this.nodes=[]),super.append(...e)}prepend(...e){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...e)}};var Lt=je;je.default=je;Jn.registerAtRule(je);let Vn=ee,Yn,Qn,se=class extends Vn{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,t,n){let i=super.normalize(e);if(t){if(n==="prepend")this.nodes.length>1?t.raws.before=this.nodes[1].raws.before:delete t.raws.before;else if(this.first!==t)for(let o of i)o.raws.before=t.raws.before}return i}removeChild(e,t){let n=this.index(e);return!t&&n===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[n].raws.before),super.removeChild(e)}toResult(e={}){return new Yn(new Qn,this,e).stringify()}};se.registerLazyResult=r=>{Yn=r};se.registerProcessor=r=>{Qn=r};var xe=se;se.default=se;Vn.registerRoot(se);let me={comma(r){return me.split(r,[","],!0)},space(r){let e=[" ",`
204
- `," "];return me.split(r,e)},split(r,e,t){let n=[],i="",o=!1,s=0,a=!1,l="",c=!1;for(let f of r)c?c=!1:f==="\\"?c=!0:a?f===l&&(a=!1):f==='"'||f==="'"?(a=!0,l=f):f==="("?s+=1:f===")"?s>0&&(s-=1):s===0&&e.includes(f)&&(o=!0),o?(i!==""&&n.push(i.trim()),i="",o=!1):i+=f;return(t||i!=="")&&n.push(i.trim()),n}};var er=me;me.default=me;let tr=ee,Ss=er,qe=class extends tr{constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return Ss.comma(this.selector)}set selectors(e){let t=this.selector?this.selector.match(/,\s*/):null,n=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(n)}};var Dt=qe;qe.default=qe;tr.registerRule(qe);let _s=Xe,Os=vs,Cs=Ve,Rs=Lt,As=xe,fn=Dt;const hn={empty:!0,space:!0};function ks(r){for(let e=r.length-1;e>=0;e--){let t=r[e],n=t[3]||t[2];if(n)return n}}let Ms=class{constructor(e){this.input=e,this.root=new As,this.current=this.root,this.spaces="",this.semicolon=!1,this.customProperty=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}atrule(e){let t=new Rs;t.name=e[1].slice(1),t.name===""&&this.unnamedAtrule(t,e),this.init(t,e[2]);let n,i,o,s=!1,a=!1,l=[],c=[];for(;!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),n=e[0],n==="("||n==="["?c.push(n==="("?")":"]"):n==="{"&&c.length>0?c.push("}"):n===c[c.length-1]&&c.pop(),c.length===0)if(n===";"){t.source.end=this.getPosition(e[2]),t.source.end.offset++,this.semicolon=!0;break}else if(n==="{"){a=!0;break}else if(n==="}"){if(l.length>0){for(o=l.length-1,i=l[o];i&&i[0]==="space";)i=l[--o];i&&(t.source.end=this.getPosition(i[3]||i[2]),t.source.end.offset++)}this.end(e);break}else l.push(e);else l.push(e);if(this.tokenizer.endOfFile()){s=!0;break}}t.raws.between=this.spacesAndCommentsFromEnd(l),l.length?(t.raws.afterName=this.spacesAndCommentsFromStart(l),this.raw(t,"params",l),s&&(e=l[l.length-1],t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++,this.spaces=t.raws.between,t.raws.between="")):(t.raws.afterName="",t.params=""),a&&(t.nodes=[],this.current=t)}checkMissedSemicolon(e){let t=this.colon(e);if(t===!1)return;let n=0,i;for(let o=t-1;o>=0&&(i=e[o],!(i[0]!=="space"&&(n+=1,n===2)));o--);throw this.input.error("Missed semicolon",i[0]==="word"?i[3]+1:i[2])}colon(e){let t=0,n,i,o;for(let[s,a]of e.entries()){if(n=a,i=n[0],i==="("&&(t+=1),i===")"&&(t-=1),t===0&&i===":")if(!o)this.doubleColon(n);else{if(o[0]==="word"&&o[1]==="progid")continue;return s}o=n}return!1}comment(e){let t=new Cs;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;let n=e[1].slice(2,-2);if(/^\s*$/.test(n))t.text="",t.raws.left=n,t.raws.right="";else{let i=n.match(/^(\s*)([^]*\S)(\s*)$/);t.text=i[2],t.raws.left=i[1],t.raws.right=i[3]}}createTokenizer(){this.tokenizer=Os(this.input)}decl(e,t){let n=new _s;this.init(n,e[0][2]);let i=e[e.length-1];for(i[0]===";"&&(this.semicolon=!0,e.pop()),n.source.end=this.getPosition(i[3]||i[2]||ks(e)),n.source.end.offset++;e[0][0]!=="word";)e.length===1&&this.unknownWord(e),n.raws.before+=e.shift()[1];for(n.source.start=this.getPosition(e[0][2]),n.prop="";e.length;){let c=e[0][0];if(c===":"||c==="space"||c==="comment")break;n.prop+=e.shift()[1]}n.raws.between="";let o;for(;e.length;)if(o=e.shift(),o[0]===":"){n.raws.between+=o[1];break}else o[0]==="word"&&/\w/.test(o[1])&&this.unknownWord([o]),n.raws.between+=o[1];(n.prop[0]==="_"||n.prop[0]==="*")&&(n.raws.before+=n.prop[0],n.prop=n.prop.slice(1));let s=[],a;for(;e.length&&(a=e[0][0],!(a!=="space"&&a!=="comment"));)s.push(e.shift());this.precheckMissedSemicolon(e);for(let c=e.length-1;c>=0;c--){if(o=e[c],o[1].toLowerCase()==="!important"){n.important=!0;let f=this.stringFrom(e,c);f=this.spacesFromEnd(e)+f,f!==" !important"&&(n.raws.important=f);break}else if(o[1].toLowerCase()==="important"){let f=e.slice(0),b="";for(let g=c;g>0;g--){let A=f[g][0];if(b.trim().indexOf("!")===0&&A!=="space")break;b=f.pop()[1]+b}b.trim().indexOf("!")===0&&(n.important=!0,n.raws.important=b,e=f)}if(o[0]!=="space"&&o[0]!=="comment")break}e.some(c=>c[0]!=="space"&&c[0]!=="comment")&&(n.raws.between+=s.map(c=>c[1]).join(""),s=[]),this.raw(n,"value",s.concat(e),t),n.value.includes(":")&&!t&&this.checkMissedSemicolon(e)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){let t=new fn;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t}end(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(e){if(this.spaces+=e[1],this.current.nodes){let t=this.current.nodes[this.current.nodes.length-1];t&&t.type==="rule"&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(e){let t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}}init(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="",e.type!=="comment"&&(this.semicolon=!1)}other(e){let t=!1,n=null,i=!1,o=null,s=[],a=e[1].startsWith("--"),l=[],c=e;for(;c;){if(n=c[0],l.push(c),n==="("||n==="[")o||(o=c),s.push(n==="("?")":"]");else if(a&&i&&n==="{")o||(o=c),s.push("}");else if(s.length===0)if(n===";")if(i){this.decl(l,a);return}else break;else if(n==="{"){this.rule(l);return}else if(n==="}"){this.tokenizer.back(l.pop()),t=!0;break}else n===":"&&(i=!0);else n===s[s.length-1]&&(s.pop(),s.length===0&&(o=null));c=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),s.length>0&&this.unclosedBracket(o),t&&i){if(!a)for(;l.length&&(c=l[l.length-1][0],!(c!=="space"&&c!=="comment"));)this.tokenizer.back(l.pop());this.decl(l,a)}else this.unknownWord(l)}parse(){let e;for(;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e);break}this.endFile()}precheckMissedSemicolon(){}raw(e,t,n,i){let o,s,a=n.length,l="",c=!0,f,b;for(let g=0;g<a;g+=1)o=n[g],s=o[0],s==="space"&&g===a-1&&!i?c=!1:s==="comment"?(b=n[g-1]?n[g-1][0]:"empty",f=n[g+1]?n[g+1][0]:"empty",!hn[b]&&!hn[f]?l.slice(-1)===","?c=!1:l+=o[1]:c=!1):l+=o[1];if(!c){let g=n.reduce((A,k)=>A+k[1],"");e.raws[t]={raw:g,value:l}}e[t]=l}rule(e){e.pop();let t=new fn;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t}spacesAndCommentsFromEnd(e){let t,n="";for(;e.length&&(t=e[e.length-1][0],!(t!=="space"&&t!=="comment"));)n=e.pop()[1]+n;return n}spacesAndCommentsFromStart(e){let t,n="";for(;e.length&&(t=e[0][0],!(t!=="space"&&t!=="comment"));)n+=e.shift()[1];return n}spacesFromEnd(e){let t,n="";for(;e.length&&(t=e[e.length-1][0],t==="space");)n=e.pop()[1]+n;return n}stringFrom(e,t){let n="";for(let i=t;i<e.length;i++)n+=e[i][1];return e.splice(t,e.length-t),n}unclosedBlock(){let e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)}unclosedBracket(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})}unexpectedClose(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})}unknownWord(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})}unnamedAtrule(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})}};var Ts=Ms;let Ns=ee,Is=Ts,Ps=Je;function Fe(r,e){let t=new Ps(r,e),n=new Is(t);try{n.parse()}catch(i){throw i}return n.root}var $t=Fe;Fe.default=Fe;Ns.registerParse(Fe);let{isClean:F,my:Ls}=we,Ds=$n,$s=Ke,Bs=ee,Us=It,dn=Pt,zs=$t,js=xe;const qs={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},Fs={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},Hs={Once:!0,postcssPlugin:!0,prepare:!0},oe=0;function ue(r){return typeof r=="object"&&typeof r.then=="function"}function nr(r){let e=!1,t=qs[r.type];return r.type==="decl"?e=r.prop.toLowerCase():r.type==="atrule"&&(e=r.name.toLowerCase()),e&&r.append?[t,t+"-"+e,oe,t+"Exit",t+"Exit-"+e]:e?[t,t+"-"+e,t+"Exit",t+"Exit-"+e]:r.append?[t,oe,t+"Exit"]:[t,t+"Exit"]}function pn(r){let e;return r.type==="document"?e=["Document",oe,"DocumentExit"]:r.type==="root"?e=["Root",oe,"RootExit"]:e=nr(r),{eventIndex:0,events:e,iterator:0,node:r,visitorIndex:0,visitors:[]}}function Et(r){return r[F]=!1,r.nodes&&r.nodes.forEach(e=>Et(e)),r}let vt={},ae=class rr{constructor(e,t,n){this.stringified=!1,this.processed=!1;let i;if(typeof t=="object"&&t!==null&&(t.type==="root"||t.type==="document"))i=Et(t);else if(t instanceof rr||t instanceof dn)i=Et(t.root),t.map&&(typeof n.map>"u"&&(n.map={}),n.map.inline||(n.map.inline=!1),n.map.prev=t.map);else{let o=zs;n.syntax&&(o=n.syntax.parse),n.parser&&(o=n.parser),o.parse&&(o=o.parse);try{i=o(t,n)}catch(s){this.processed=!0,this.error=s}i&&!i[Ls]&&Bs.rebuild(i)}this.result=new dn(e,i,n),this.helpers={...vt,postcss:vt,result:this.result},this.plugins=this.processor.plugins.map(o=>typeof o=="object"&&o.prepare?{...o,...o.prepare(this.result)}:o)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(e,t){let n=this.result.lastPlugin;try{t&&t.addToError(e),this.error=e,e.name==="CssSyntaxError"&&!e.plugin?(e.plugin=n.postcssPlugin,e.setMessage()):n.postcssVersion}catch(i){console&&console.error&&console.error(i)}return e}prepareVisitors(){this.listeners={};let e=(t,n,i)=>{this.listeners[n]||(this.listeners[n]=[]),this.listeners[n].push([t,i])};for(let t of this.plugins)if(typeof t=="object")for(let n in t){if(!Fs[n]&&/^[A-Z]/.test(n))throw new Error(`Unknown event ${n} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!Hs[n])if(typeof t[n]=="object")for(let i in t[n])i==="*"?e(t,n,t[n][i]):e(t,n+"-"+i.toLowerCase(),t[n][i]);else typeof t[n]=="function"&&e(t,n,t[n])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let e=0;e<this.plugins.length;e++){let t=this.plugins[e],n=this.runOnRoot(t);if(ue(n))try{await n}catch(i){throw this.handleError(i)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[F];){e[F]=!0;let t=[pn(e)];for(;t.length>0;){let n=this.visitTick(t);if(ue(n))try{await n}catch(i){let o=t[t.length-1].node;throw this.handleError(i,o)}}}if(this.listeners.OnceExit)for(let[t,n]of this.listeners.OnceExit){this.result.lastPlugin=t;try{if(e.type==="document"){let i=e.nodes.map(o=>n(o,this.helpers));await Promise.all(i)}else await n(e,this.helpers)}catch(i){throw this.handleError(i)}}}return this.processed=!0,this.stringify()}runOnRoot(e){this.result.lastPlugin=e;try{if(typeof e=="object"&&e.Once){if(this.result.root.type==="document"){let t=this.result.root.nodes.map(n=>e.Once(n,this.helpers));return ue(t[0])?Promise.all(t):t}return e.Once(this.result.root,this.helpers)}else if(typeof e=="function")return e(this.result.root,this.result)}catch(t){throw this.handleError(t)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let e=this.result.opts,t=$s;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let i=new Ds(t,this.result.root,this.result.opts).generate();return this.result.css=i[0],this.result.map=i[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let e of this.plugins){let t=this.runOnRoot(e);if(ue(t))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[F];)e[F]=!0,this.walkSync(e);if(this.listeners.OnceExit)if(e.type==="document")for(let t of e.nodes)this.visitSync(this.listeners.OnceExit,t);else this.visitSync(this.listeners.OnceExit,e)}return this.result}then(e,t){return this.async().then(e,t)}toString(){return this.css}visitSync(e,t){for(let[n,i]of e){this.result.lastPlugin=n;let o;try{o=i(t,this.helpers)}catch(s){throw this.handleError(s,t.proxyOf)}if(t.type!=="root"&&t.type!=="document"&&!t.parent)return!0;if(ue(o))throw this.getAsyncError()}}visitTick(e){let t=e[e.length-1],{node:n,visitors:i}=t;if(n.type!=="root"&&n.type!=="document"&&!n.parent){e.pop();return}if(i.length>0&&t.visitorIndex<i.length){let[s,a]=i[t.visitorIndex];t.visitorIndex+=1,t.visitorIndex===i.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=s;try{return a(n.toProxy(),this.helpers)}catch(l){throw this.handleError(l,n)}}if(t.iterator!==0){let s=t.iterator,a;for(;a=n.nodes[n.indexes[s]];)if(n.indexes[s]+=1,!a[F]){a[F]=!0,e.push(pn(a));return}t.iterator=0,delete n.indexes[s]}let o=t.events;for(;t.eventIndex<o.length;){let s=o[t.eventIndex];if(t.eventIndex+=1,s===oe){n.nodes&&n.nodes.length&&(n[F]=!0,t.iterator=n.getIterator());return}else if(this.listeners[s]){t.visitors=this.listeners[s];return}}e.pop()}walkSync(e){e[F]=!0;let t=nr(e);for(let n of t)if(n===oe)e.nodes&&e.each(i=>{i[F]||this.walkSync(i)});else{let i=this.listeners[n];if(i&&this.visitSync(i,e.toProxy()))return}}warnings(){return this.sync().warnings()}get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}};ae.registerPostcss=r=>{vt=r};var ir=ae;ae.default=ae;js.registerLazyResult(ae);Us.registerLazyResult(ae);let Gs=$n,Ws=Ke,Ks=$t;const Zs=Pt;let St=class{constructor(e,t,n){t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=n,this._map=void 0;let i,o=Ws;this.result=new Zs(this._processor,i,this._opts),this.result.css=t;let s=this;Object.defineProperty(this.result,"root",{get(){return s.root}});let a=new Gs(o,i,this._opts,t);if(a.isMap()){let[l,c]=a.generate();l&&(this.result.css=l),c&&(this.result.map=c)}}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}sync(){if(this.error)throw this.error;return this.result}then(e,t){return this.async().then(e,t)}toString(){return this._css}warnings(){return[]}get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let e,t=Ks;try{e=t(this._css,this._opts)}catch(n){this.error=n}if(this.error)throw this.error;return this._root=e,e}get[Symbol.toStringTag](){return"NoWorkResult"}};var Xs=St;St.default=St;let Js=Xs,Vs=ir,Ys=It,Qs=xe,be=class{constructor(e=[]){this.version="8.4.32",this.plugins=this.normalize(e)}normalize(e){let t=[];for(let n of e)if(n.postcss===!0?n=n():n.postcss&&(n=n.postcss),typeof n=="object"&&Array.isArray(n.plugins))t=t.concat(n.plugins);else if(typeof n=="object"&&n.postcssPlugin)t.push(n);else if(typeof n=="function")t.push(n);else if(!(typeof n=="object"&&(n.parse||n.stringify)))throw new Error(n+" is not a PostCSS plugin");return t}process(e,t={}){return this.plugins.length===0&&typeof t.parser>"u"&&typeof t.stringifier>"u"&&typeof t.syntax>"u"?new Js(this,e,t):new Vs(this,e,t)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}};var eo=be;be.default=be;Qs.registerProcessor(be);Ys.registerProcessor(be);let to=Xe,no=Nn,ro=Ve,io=Lt,so=Je,oo=xe,ao=Dt;function ye(r,e){if(Array.isArray(r))return r.map(i=>ye(i));let{inputs:t,...n}=r;if(t){e=[];for(let i of t){let o={...i,__proto__:so.prototype};o.map&&(o.map={...o.map,__proto__:no.prototype}),e.push(o)}}if(n.nodes&&(n.nodes=r.nodes.map(i=>ye(i,e))),n.source){let{inputId:i,...o}=n.source;n.source=o,i!=null&&(n.source.input=e[i])}if(n.type==="root")return new oo(n);if(n.type==="decl")return new to(n);if(n.type==="rule")return new ao(n);if(n.type==="comment")return new ro(n);if(n.type==="atrule")return new io(n);throw new Error("Unknown node type: "+r.type)}var lo=ye;ye.default=ye;var gn={};let co=Mt,sr=Xe,uo=ir,fo=ee,Bt=eo,ho=Ke,po=lo,or=It,go=Xn,ar=Ve,lr=Lt,mo=Pt,bo=Je,yo=$t,wo=er,cr=Dt,ur=xe,xo=Ze;function S(...r){return r.length===1&&Array.isArray(r[0])&&(r=r[0]),new Bt(r)}S.plugin=function(e,t){let n=!1;function i(...s){console&&console.warn&&!n&&(n=!0,console.warn(e+`: postcss.plugin was deprecated. Migration guide:
205
- https://evilmartians.com/chronicles/postcss-8-plugin-migration`),gn.LANG&&gn.LANG.startsWith("cn")&&console.warn(e+`: 里面 postcss.plugin 被弃用. 迁移指南:
206
- https://www.w3ctech.com/topic/2226`));let a=t(...s);return a.postcssPlugin=e,a.postcssVersion=new Bt().version,a}let o;return Object.defineProperty(i,"postcss",{get(){return o||(o=i()),o}}),i.process=function(s,a,l){return S([i(l)]).process(s,a)},i};S.stringify=ho;S.parse=yo;S.fromJSON=po;S.list=wo;S.comment=r=>new ar(r);S.atRule=r=>new lr(r);S.decl=r=>new sr(r);S.rule=r=>new cr(r);S.root=r=>new ur(r);S.document=r=>new or(r);S.CssSyntaxError=co;S.Declaration=sr;S.Container=fo;S.Processor=Bt;S.Document=or;S.Comment=ar;S.Warning=go;S.AtRule=lr;S.Result=mo;S.Input=bo;S.Rule=cr;S.Root=ur;S.Node=xo;uo.registerPostcss(S);var Eo=S;S.default=S;const C=_t(Eo);C.stringify;C.fromJSON;C.plugin;C.parse;C.list;C.document;C.comment;C.atRule;C.rule;C.decl;C.root;C.CssSyntaxError;C.Declaration;C.Container;C.Processor;C.Document;C.Comment;C.Warning;C.AtRule;C.Result;C.Input;C.Rule;C.Root;C.Node;var vo=function(e){const t=e.prefix,n=/\s+$/.test(t)?t:`${t} `,i=e.ignoreFiles?[].concat(e.ignoreFiles):[],o=e.includeFiles?[].concat(e.includeFiles):[];return function(s){i.length&&s.source.input.file&&mn(s.source.input.file,i)||o.length&&s.source.input.file&&!mn(s.source.input.file,o)||s.walkRules(a=>{const l=["keyframes","-webkit-keyframes","-moz-keyframes","-o-keyframes"];a.parent&&l.includes(a.parent.name)||(a.selectors=a.selectors.map(c=>e.exclude&&So(c,e.exclude)?c:e.transform?e.transform(t,c,n+c,s.source.input.file,a):n+c))})}};function mn(r,e){return e.some(t=>t instanceof RegExp?t.test(r):r.includes(t))}function So(r,e){return e.some(t=>t instanceof RegExp?t.test(r):r===t)}const _o=_t(vo),He="[A-Za-z$_][0-9A-Za-z$_]*",fr=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],hr=["true","false","null","undefined","NaN","Infinity"],dr=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],pr=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],gr=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],mr=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],br=[].concat(gr,dr,pr);function Oo(r){const e=r.regex,t=(d,{after:w})=>{const E="</"+d[0].slice(1);return d.input.indexOf(E,w)!==-1},n=He,i={begin:"<>",end:"</>"},o=/<[A-Za-z0-9\\._:-]+\s*\/>/,s={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(d,w)=>{const E=d[0].length+d.index,R=d.input[E];if(R==="<"||R===","){w.ignoreMatch();return}R===">"&&(t(d,{after:E})||w.ignoreMatch());let N;const B=d.input.substring(E);if(N=B.match(/^\s*=/)){w.ignoreMatch();return}if((N=B.match(/^\s+extends\s+/))&&N.index===0){w.ignoreMatch();return}}},a={$pattern:He,keyword:fr,literal:hr,built_in:br,"variable.language":mr},l="[0-9](_?[0-9])*",c=`\\.(${l})`,f="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",b={className:"number",variants:[{begin:`(\\b(${f})((${c})|\\.)?|(${c}))[eE][+-]?(${l})\\b`},{begin:`\\b(${f})\\b((${c})\\b|\\.)?|(${c})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},g={className:"subst",begin:"\\$\\{",end:"\\}",keywords:a,contains:[]},A={begin:"html`",end:"",starts:{end:"`",returnEnd:!1,contains:[r.BACKSLASH_ESCAPE,g],subLanguage:"xml"}},k={begin:"css`",end:"",starts:{end:"`",returnEnd:!1,contains:[r.BACKSLASH_ESCAPE,g],subLanguage:"css"}},L={begin:"gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[r.BACKSLASH_ESCAPE,g],subLanguage:"graphql"}},m={className:"string",begin:"`",end:"`",contains:[r.BACKSLASH_ESCAPE,g]},z={className:"comment",variants:[r.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:n+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),r.C_BLOCK_COMMENT_MODE,r.C_LINE_COMMENT_MODE]},Z=[r.APOS_STRING_MODE,r.QUOTE_STRING_MODE,A,k,L,m,{match:/\$\d+/},b];g.contains=Z.concat({begin:/\{/,end:/\}/,keywords:a,contains:["self"].concat(Z)});const D=[].concat(z,g.contains),X=D.concat([{begin:/\(/,end:/\)/,keywords:a,contains:["self"].concat(D)}]),H={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:a,contains:X},le={variants:[{match:[/class/,/\s+/,n,/\s+/,/extends/,/\s+/,e.concat(n,"(",e.concat(/\./,n),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,n],scope:{1:"keyword",3:"title.class"}}]},$={relevance:0,match:e.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...dr,...pr]}},I={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},J={variants:[{match:[/function/,/\s+/,n,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[H],illegal:/%/},Ee={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function Ye(d){return e.concat("(?!",d.join("|"),")")}const Qe={match:e.concat(/\b/,Ye([...gr,"super","import"]),n,e.lookahead(/\(/)),className:"title.function",relevance:0},et={begin:e.concat(/\./,e.lookahead(e.concat(n,/(?![0-9A-Za-z$_(])/))),end:n,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},ne={match:[/get|set/,/\s+/,n,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},H]},ve="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+r.UNDERSCORE_IDENT_RE+")\\s*=>",u={match:[/const|var|let/,/\s+/,n,/\s*/,/=\s*/,/(async\s*)?/,e.lookahead(ve)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[H]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:a,exports:{PARAMS_CONTAINS:X,CLASS_REFERENCE:$},illegal:/#(?![$_A-z])/,contains:[r.SHEBANG({label:"shebang",binary:"node",relevance:5}),I,r.APOS_STRING_MODE,r.QUOTE_STRING_MODE,A,k,L,m,z,{match:/\$\d+/},b,$,{className:"attr",begin:n+e.lookahead(":"),relevance:0},u,{begin:"("+r.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[z,r.REGEXP_MODE,{className:"function",begin:ve,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:r.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:a,contains:X}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:i.begin,end:i.end},{match:o},{begin:s.begin,"on:begin":s.isTrulyOpeningTag,end:s.end}],subLanguage:"xml",contains:[{begin:s.begin,end:s.end,skip:!0,contains:["self"]}]}]},J,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+r.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[H,r.inherit(r.TITLE_MODE,{begin:n,className:"title.function"})]},{match:/\.\.\./,relevance:0},et,{match:"\\$"+n,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[H]},Qe,Ee,le,ne,{match:/\$[(.]/}]}}function Co(r){const e=Oo(r),t=He,n=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],i={beginKeywords:"namespace",end:/\{/,excludeEnd:!0,contains:[e.exports.CLASS_REFERENCE]},o={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:n},contains:[e.exports.CLASS_REFERENCE]},s={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},a=["type","namespace","interface","public","private","protected","implements","declare","abstract","readonly","enum","override"],l={$pattern:He,keyword:fr.concat(a),literal:hr,built_in:br.concat(n),"variable.language":mr},c={className:"meta",begin:"@"+t},f=(g,A,k)=>{const L=g.contains.findIndex(m=>m.label===A);if(L===-1)throw new Error("can not find mode to replace");g.contains.splice(L,1,k)};Object.assign(e.keywords,l),e.exports.PARAMS_CONTAINS.push(c),e.contains=e.contains.concat([c,i,o]),f(e,"shebang",r.SHEBANG()),f(e,"use_strict",s);const b=e.contains.find(g=>g.label==="func.def");return b.relevance=0,Object.assign(e,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),e}function Ro(r){const e=r.regex,t=e.concat(/[\p{L}_]/u,e.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),n=/[\p{L}0-9._:-]+/u,i={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},o={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},s=r.inherit(o,{begin:/\(/,end:/\)/}),a=r.inherit(r.APOS_STRING_MODE,{className:"string"}),l=r.inherit(r.QUOTE_STRING_MODE,{className:"string"}),c={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:n,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[i]},{begin:/'/,end:/'/,contains:[i]},{begin:/[^\s"'=<>`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,unicodeRegex:!0,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,relevance:10,contains:[o,l,a,s,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[o,s,l,a]}]}]},r.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},i,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[l]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[c],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[c],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:e.concat(/</,e.lookahead(e.concat(t,e.either(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:t,relevance:0,starts:c}]},{className:"tag",begin:e.concat(/<\//,e.lookahead(e.concat(t,/>/))),contains:[{className:"name",begin:t,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}const Ao=r=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:r.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[r.APOS_STRING_MODE,r.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:r.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),ko=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","p","q","quote","samp","section","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],Mo=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"],To=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"],No=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],Io=["align-content","align-items","align-self","all","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","content-visibility","counter-increment","counter-reset","cue","cue-after","cue-before","cursor","direction","display","empty-cells","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-smoothing","font-stretch","font-style","font-synthesis","font-variant","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","inline-size","isolation","justify-content","left","letter-spacing","line-break","line-height","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","pause","pause-after","pause-before","perspective","perspective-origin","pointer-events","position","quotes","resize","rest","rest-after","rest-before","right","row-gap","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","speak","speak-as","src","tab-size","table-layout","text-align","text-align-all","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-transform","text-underline-position","top","transform","transform-box","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index"].reverse();function Po(r){const e=r.regex,t=Ao(r),n={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},i="and or not only",o=/@-?\w[\w]*(-\w+)*/,s="[a-zA-Z-][a-zA-Z0-9_-]*",a=[r.APOS_STRING_MODE,r.QUOTE_STRING_MODE];return{name:"CSS",case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"},classNameAliases:{keyframePosition:"selector-tag"},contains:[t.BLOCK_COMMENT,n,t.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:"selector-class",begin:"\\."+s,relevance:0},t.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+To.join("|")+")"},{begin:":(:)?("+No.join("|")+")"}]},t.CSS_VARIABLE,{className:"attribute",begin:"\\b("+Io.join("|")+")\\b"},{begin:/:/,end:/[;}{]/,contains:[t.BLOCK_COMMENT,t.HEXCOLOR,t.IMPORTANT,t.CSS_NUMBER_MODE,...a,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[...a,{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},t.FUNCTION_DISPATCH]},{begin:e.lookahead(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:o},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:i,attribute:Mo.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...a,t.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+ko.join("|")+")\\b"}]}}const yr=document.createElement("style");yr.innerText=[Br,Ur].join(`
207
- `);document.head.appendChild(yr);We.registerLanguage("typescript",Co);We.registerLanguage("html",Ro);We.registerLanguage("css",Po);function Lo(...r){const e=document.createElement("div"),t=document.createElement("div");t.classList.add("tab-control");const n=document.createElement("div");return r.forEach(i=>{e.appendChild(i),i.addEventListener("click",()=>{r.forEach(o=>o.removeAttribute("selected")),i.setAttribute("selected",""),n.innerHTML="",n.appendChild(i.content),n.className=i.className,n.classList.add("tab-content")})}),t.appendChild(e),t.appendChild(n),n.classList.add("tab-content"),r[0].setAttribute("selected",""),n.appendChild(r[0].content),t}function fe(r,e){const t=document.createElement("div");return t.role="tab",t.tabIndex=0,t.innerText=r,t.content=e,e.tagName=="PRE"&&t.classList.add("code"),t}function he(r,e){const t=document.createElement(r);return typeof e=="string"?t.innerHTML=e:e.forEach(n=>{t.appendChild(n)}),t}async function Do(r,e,t){var c,f,b;const n=e.mainContent,i=he("div",n);i.id=`example-preview-${t}`;const o=typeof e.css=="string"||(c=e.css)==null?void 0:c.label,s=typeof e.css=="string"?e.css:(f=e.css)==null?void 0:f.content,a=Lo(fe("Preview",i),fe("HTML",De("html",n)),...s?[fe(o??"CSS",De("css",s))]:[],...e.initializer&&e.initializer.content?[fe(e.initializer.label??"TS",De("typescript",e.initializer.content))]:[],...(e.additionalSources||[]).map(g=>fe(g.label,De(g.language,g.content))));e.description&&r.appendChild(he("div",e.description));const l=he("div",[a]);l.classList.add("example"),r.appendChild(l),s&&$o(`#${i.id}`,s),(b=e.initializer)!=null&&b.initialize&&await e.initializer.initialize(i)}function De(r,e){let t=e.split(/\r?\n/).map(n=>{const i=n.indexOf("///");if(i>-1){const o=n.substring(i+3).trimStart();return o?n.replace(/^(\s*)([^\s].*)$/,`$1${o}`):void 0}return n}).filter(n=>typeof n<"u").join(`
208
- `).trim();return r&&r!="raw"&&(t=We.highlight(t,{language:r}).value),he("pre",[he("code",t)])}function $o(r,e){const t=document.createElement("style");t.innerHTML=C().use(_o({prefix:r})).process(e).css,document.head.appendChild(t)}async function Bo(r,e=document.body){const t=zo(e);let n=0;Object.keys(r).forEach(async i=>{const o=document.createElement("div");o.className="example-container",t.appendChild(o);const s=r[i].default;Do(o,s,n++)})}function Uo(r){const e=document.createElement("div");e.id="examples-container";const t=r.querySelector("#examples");return t?t.after(e):r.appendChild(e),e}function zo(r){return r.children?Uo(r):r}const jo=`<h1 id="@cas-smartdesign/element-preview">@cas-smartdesign/element-preview</h1>
204
+ `)&&(n=`\r
205
+ `),this.css+=n+"/*# sourceMappingURL="+t+" */"}applyPrevMaps(){for(let t of this.previous()){let n=this.toUrl(this.path(t.file)),a=t.root||c(t.file),u;this.mapOpts.sourcesContent===!1?(u=new r(t.text),u.sourcesContent&&(u.sourcesContent=null)):u=t.consumer(),this.map.applySourceMap(u,n,this.toUrl(this.path(a)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let t;for(let n=this.root.nodes.length-1;n>=0;n--)t=this.root.nodes[n],t.type==="comment"&&t.text.startsWith("# sourceMappingURL=")&&this.root.removeChild(n)}else this.css&&(this.css=this.css.replace(/\n*\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),l&&x&&this.isMap())return this.generateMap();{let t="";return this.stringify(this.root,n=>{t+=n}),[t]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let t=this.previous()[0].consumer();t.file=this.outputFile(),this.map=f.fromSourceMap(t,{ignoreInvalidMapping:!0})}else this.map=new f({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new f({file:this.outputFile(),ignoreInvalidMapping:!0});let t=1,n=1,a="<no source>",u={generated:{column:0,line:0},original:{column:0,line:0},source:""},d,v;this.stringify(this.root,(S,w,y)=>{if(this.css+=S,w&&y!=="end"&&(u.generated.line=t,u.generated.column=n-1,w.source&&w.source.start?(u.source=this.sourcePath(w),u.original.line=w.source.start.line,u.original.column=w.source.start.column-1,this.map.addMapping(u)):(u.source=a,u.original.line=1,u.original.column=0,this.map.addMapping(u))),v=S.match(/\n/g),v?(t+=v.length,d=S.lastIndexOf(`
206
+ `),n=S.length-d):n+=S.length,w&&y!=="start"){let m=w.parent||{raws:{}};(!(w.type==="decl"||w.type==="atrule"&&!w.nodes)||w!==m.last||m.raws.semicolon)&&(w.source&&w.source.end?(u.source=this.sourcePath(w),u.original.line=w.source.end.line,u.original.column=w.source.end.column-1,u.generated.line=t,u.generated.column=n-2,this.map.addMapping(u)):(u.source=a,u.original.line=1,u.original.column=0,u.generated.line=t,u.generated.column=n-1,this.map.addMapping(u)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(t=>t.annotation):!0}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let t=this.mapOpts.annotation;return typeof t<"u"&&t!==!0?!1:this.previous().length?this.previous().some(n=>n.inline):!0}isMap(){return typeof this.opts.map<"u"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent<"u"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(t=>t.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(t){if(this.mapOpts.absolute||t.charCodeAt(0)===60||/^\w+:\/\//.test(t))return t;let n=this.memoizedPaths.get(t);if(n)return n;let a=this.opts.to?c(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(a=c(b(a,this.mapOpts.annotation)));let u=g(a,t);return this.memoizedPaths.set(t,u),u}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(t=>{if(t.source&&t.source.input.map){let n=t.source.input.map;this.previousMaps.includes(n)||this.previousMaps.push(n)}});else{let t=new p(this.originalCSS,this.opts);t.map&&this.previousMaps.push(t.map)}return this.previousMaps}setSourcesContent(){let t={};if(this.root)this.root.walk(n=>{if(n.source){let a=n.source.input.from;if(a&&!t[a]){t[a]=!0;let u=this.usesFileUrls?this.toFileUrl(a):this.toUrl(this.path(a));this.map.setSourceContent(u,n.source.input.css)}}});else if(this.css){let n=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(n,this.css)}}sourcePath(t){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(t.source.input.from):this.toUrl(this.path(t.source.input.from))}toBase64(t){return Buffer?Buffer.from(t).toString("base64"):window.btoa(unescape(encodeURIComponent(t)))}toFileUrl(t){let n=this.memoizedFileURLs.get(t);if(n)return n;if(s){let a=s(t).toString();return this.memoizedFileURLs.set(t,a),a}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(t){let n=this.memoizedURLs.get(t);if(n)return n;h==="\\"&&(t=t.replace(/\\/g,"/"));let a=encodeURI(t).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(t,a),a}}return St=e,St}var _t,Cn;function ei(){if(Cn)return _t;Cn=1;const c=39,g=34,b=92,h=47,r=10,f=32,s=12,p=9,x=13,l=91,e=93,i=40,t=41,n=123,a=125,u=59,d=42,v=58,S=64,w=/[\t\n\f\r "#'()/;[\\\]{}]/g,y=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,m=/.[\r\n"'(/\\]/,_=/[\da-f]/i;return _t=function(L,z={}){let P=L.css.valueOf(),X=z.ignoreErrors,$,ye,ae,M,we,ne,G,se,re,he,pe=P.length,D=0,Ce=[],Se=[];function Ve(){return D}function Ae(ge){throw L.error("Unclosed "+ge,D)}function Ye(){return Se.length===0&&D>=pe}function Ft(ge){if(Se.length)return Se.pop();if(D>=pe)return;let ke=ge?ge.ignoreUnclosed:!1;switch($=P.charCodeAt(D),$){case r:case f:case p:case x:case s:{M=D;do M+=1,$=P.charCodeAt(M);while($===f||$===r||$===p||$===x||$===s);ne=["space",P.slice(D,M)],D=M-1;break}case l:case e:case n:case a:case v:case u:case t:{let Pe=String.fromCharCode($);ne=[Pe,Pe,D];break}case i:{if(he=Ce.length?Ce.pop()[1]:"",re=P.charCodeAt(D+1),he==="url"&&re!==c&&re!==g&&re!==f&&re!==r&&re!==p&&re!==s&&re!==x){M=D;do{if(G=!1,M=P.indexOf(")",M+1),M===-1)if(X||ke){M=D;break}else Ae("bracket");for(se=M;P.charCodeAt(se-1)===b;)se-=1,G=!G}while(G);ne=["brackets",P.slice(D,M+1),D,M],D=M}else M=P.indexOf(")",D+1),ye=P.slice(D,M+1),M===-1||m.test(ye)?ne=["(","(",D]:(ne=["brackets",ye,D,M],D=M);break}case c:case g:{we=$===c?"'":'"',M=D;do{if(G=!1,M=P.indexOf(we,M+1),M===-1)if(X||ke){M=D+1;break}else Ae("string");for(se=M;P.charCodeAt(se-1)===b;)se-=1,G=!G}while(G);ne=["string",P.slice(D,M+1),D,M],D=M;break}case S:{w.lastIndex=D+1,w.test(P),w.lastIndex===0?M=P.length-1:M=w.lastIndex-2,ne=["at-word",P.slice(D,M+1),D,M],D=M;break}case b:{for(M=D,ae=!0;P.charCodeAt(M+1)===b;)M+=1,ae=!ae;if($=P.charCodeAt(M+1),ae&&$!==h&&$!==f&&$!==r&&$!==p&&$!==x&&$!==s&&(M+=1,_.test(P.charAt(M)))){for(;_.test(P.charAt(M+1));)M+=1;P.charCodeAt(M+1)===f&&(M+=1)}ne=["word",P.slice(D,M+1),D,M],D=M;break}default:{$===h&&P.charCodeAt(D+1)===d?(M=P.indexOf("*/",D+2)+1,M===0&&(X||ke?M=P.length:Ae("comment")),ne=["comment",P.slice(D,M+1),D,M],D=M):(y.lastIndex=D+1,y.test(P),y.lastIndex===0?M=P.length-1:M=y.lastIndex-2,ne=["word",P.slice(D,M+1),D,M],Ce.push(ne),D=M);break}}return D++,ne}function _e(ge){Se.push(ge)}return{back:_e,endOfFile:Ye,nextToken:Ft,position:Ve}},_t}var Rt,An;function ti(){if(An)return Rt;An=1;let c=Bt(),g=Ze(),b=Xe(),h=Ie(),r=Ut(),f=ei();const s={empty:!0,space:!0};function p(l){for(let e=l.length-1;e>=0;e--){let i=l[e],t=i[3]||i[2];if(t)return t}}class x{constructor(e){this.input=e,this.root=new h,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}atrule(e){let i=new c;i.name=e[1].slice(1),i.name===""&&this.unnamedAtrule(i,e),this.init(i,e[2]);let t,n,a,u=!1,d=!1,v=[],S=[];for(;!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),t=e[0],t==="("||t==="["?S.push(t==="("?")":"]"):t==="{"&&S.length>0?S.push("}"):t===S[S.length-1]&&S.pop(),S.length===0)if(t===";"){i.source.end=this.getPosition(e[2]),i.source.end.offset++,this.semicolon=!0;break}else if(t==="{"){d=!0;break}else if(t==="}"){if(v.length>0){for(a=v.length-1,n=v[a];n&&n[0]==="space";)n=v[--a];n&&(i.source.end=this.getPosition(n[3]||n[2]),i.source.end.offset++)}this.end(e);break}else v.push(e);else v.push(e);if(this.tokenizer.endOfFile()){u=!0;break}}i.raws.between=this.spacesAndCommentsFromEnd(v),v.length?(i.raws.afterName=this.spacesAndCommentsFromStart(v),this.raw(i,"params",v),u&&(e=v[v.length-1],i.source.end=this.getPosition(e[3]||e[2]),i.source.end.offset++,this.spaces=i.raws.between,i.raws.between="")):(i.raws.afterName="",i.params=""),d&&(i.nodes=[],this.current=i)}checkMissedSemicolon(e){let i=this.colon(e);if(i===!1)return;let t=0,n;for(let a=i-1;a>=0&&(n=e[a],!(n[0]!=="space"&&(t+=1,t===2)));a--);throw this.input.error("Missed semicolon",n[0]==="word"?n[3]+1:n[2])}colon(e){let i=0,t,n,a;for(let[u,d]of e.entries()){if(n=d,a=n[0],a==="("&&(i+=1),a===")"&&(i-=1),i===0&&a===":")if(!t)this.doubleColon(n);else{if(t[0]==="word"&&t[1]==="progid")continue;return u}t=n}return!1}comment(e){let i=new g;this.init(i,e[2]),i.source.end=this.getPosition(e[3]||e[2]),i.source.end.offset++;let t=e[1].slice(2,-2);if(/^\s*$/.test(t))i.text="",i.raws.left=t,i.raws.right="";else{let n=t.match(/^(\s*)([^]*\S)(\s*)$/);i.text=n[2],i.raws.left=n[1],i.raws.right=n[3]}}createTokenizer(){this.tokenizer=f(this.input)}decl(e,i){let t=new b;this.init(t,e[0][2]);let n=e[e.length-1];for(n[0]===";"&&(this.semicolon=!0,e.pop()),t.source.end=this.getPosition(n[3]||n[2]||p(e)),t.source.end.offset++;e[0][0]!=="word";)e.length===1&&this.unknownWord(e),t.raws.before+=e.shift()[1];for(t.source.start=this.getPosition(e[0][2]),t.prop="";e.length;){let S=e[0][0];if(S===":"||S==="space"||S==="comment")break;t.prop+=e.shift()[1]}t.raws.between="";let a;for(;e.length;)if(a=e.shift(),a[0]===":"){t.raws.between+=a[1];break}else a[0]==="word"&&/\w/.test(a[1])&&this.unknownWord([a]),t.raws.between+=a[1];(t.prop[0]==="_"||t.prop[0]==="*")&&(t.raws.before+=t.prop[0],t.prop=t.prop.slice(1));let u=[],d;for(;e.length&&(d=e[0][0],!(d!=="space"&&d!=="comment"));)u.push(e.shift());this.precheckMissedSemicolon(e);for(let S=e.length-1;S>=0;S--){if(a=e[S],a[1].toLowerCase()==="!important"){t.important=!0;let w=this.stringFrom(e,S);w=this.spacesFromEnd(e)+w,w!==" !important"&&(t.raws.important=w);break}else if(a[1].toLowerCase()==="important"){let w=e.slice(0),y="";for(let m=S;m>0;m--){let _=w[m][0];if(y.trim().startsWith("!")&&_!=="space")break;y=w.pop()[1]+y}y.trim().startsWith("!")&&(t.important=!0,t.raws.important=y,e=w)}if(a[0]!=="space"&&a[0]!=="comment")break}e.some(S=>S[0]!=="space"&&S[0]!=="comment")&&(t.raws.between+=u.map(S=>S[1]).join(""),u=[]),this.raw(t,"value",u.concat(e),i),t.value.includes(":")&&!i&&this.checkMissedSemicolon(e)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){let i=new r;this.init(i,e[2]),i.selector="",i.raws.between="",this.current=i}end(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(e){if(this.spaces+=e[1],this.current.nodes){let i=this.current.nodes[this.current.nodes.length-1];i&&i.type==="rule"&&!i.raws.ownSemicolon&&(i.raws.ownSemicolon=this.spaces,this.spaces="",i.source.end=this.getPosition(e[2]),i.source.end.offset+=i.raws.ownSemicolon.length)}}getPosition(e){let i=this.input.fromOffset(e);return{column:i.col,line:i.line,offset:e}}init(e,i){this.current.push(e),e.source={input:this.input,start:this.getPosition(i)},e.raws.before=this.spaces,this.spaces="",e.type!=="comment"&&(this.semicolon=!1)}other(e){let i=!1,t=null,n=!1,a=null,u=[],d=e[1].startsWith("--"),v=[],S=e;for(;S;){if(t=S[0],v.push(S),t==="("||t==="[")a||(a=S),u.push(t==="("?")":"]");else if(d&&n&&t==="{")a||(a=S),u.push("}");else if(u.length===0)if(t===";")if(n){this.decl(v,d);return}else break;else if(t==="{"){this.rule(v);return}else if(t==="}"){this.tokenizer.back(v.pop()),i=!0;break}else t===":"&&(n=!0);else t===u[u.length-1]&&(u.pop(),u.length===0&&(a=null));S=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(i=!0),u.length>0&&this.unclosedBracket(a),i&&n){if(!d)for(;v.length&&(S=v[v.length-1][0],!(S!=="space"&&S!=="comment"));)this.tokenizer.back(v.pop());this.decl(v,d)}else this.unknownWord(v)}parse(){let e;for(;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e);break}this.endFile()}precheckMissedSemicolon(){}raw(e,i,t,n){let a,u,d=t.length,v="",S=!0,w,y;for(let m=0;m<d;m+=1)a=t[m],u=a[0],u==="space"&&m===d-1&&!n?S=!1:u==="comment"?(y=t[m-1]?t[m-1][0]:"empty",w=t[m+1]?t[m+1][0]:"empty",!s[y]&&!s[w]?v.slice(-1)===","?S=!1:v+=a[1]:S=!1):v+=a[1];if(!S){let m=t.reduce((_,A)=>_+A[1],"");e.raws[i]={raw:m,value:v}}e[i]=v}rule(e){e.pop();let i=new r;this.init(i,e[0][2]),i.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(i,"selector",e),this.current=i}spacesAndCommentsFromEnd(e){let i,t="";for(;e.length&&(i=e[e.length-1][0],!(i!=="space"&&i!=="comment"));)t=e.pop()[1]+t;return t}spacesAndCommentsFromStart(e){let i,t="";for(;e.length&&(i=e[0][0],!(i!=="space"&&i!=="comment"));)t+=e.shift()[1];return t}spacesFromEnd(e){let i,t="";for(;e.length&&(i=e[e.length-1][0],i==="space");)t=e.pop()[1]+t;return t}stringFrom(e,i){let t="";for(let n=i;n<e.length;n++)t+=e[n][1];return e.splice(i,e.length-i),t}unclosedBlock(){let e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)}unclosedBracket(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})}unexpectedClose(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})}unknownWord(e){throw this.input.error("Unknown word "+e[0][1],{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})}unnamedAtrule(e,i){throw this.input.error("At-rule without name",{offset:i[2]},{offset:i[2]+i[1].length})}}return Rt=x,Rt}var Ot,kn;function zt(){if(kn)return Ot;kn=1;let c=ve(),g=Je(),b=ti();function h(r,f){let s=new g(r,f),p=new b(s);try{p.parse()}catch(x){throw x}return p.root}return Ot=h,h.default=h,c.registerParse(h),Ot}var Ct,Mn;function jn(){if(Mn)return Ct;Mn=1;class c{constructor(b,h={}){if(this.type="warning",this.text=b,h.node&&h.node.source){let r=h.node.rangeBy(h);this.line=r.start.line,this.column=r.start.column,this.endLine=r.end.line,this.endColumn=r.end.column}for(let r in h)this[r]=h[r]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}}return Ct=c,c.default=c,Ct}var At,Tn;function jt(){if(Tn)return At;Tn=1;let c=jn();class g{get content(){return this.css}constructor(h,r,f){this.processor=h,this.messages=[],this.root=r,this.opts=f,this.css="",this.map=void 0}toString(){return this.css}warn(h,r={}){r.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(r.plugin=this.lastPlugin.postcssPlugin);let f=new c(h,r);return this.messages.push(f),f}warnings(){return this.messages.filter(h=>h.type==="warning")}}return At=g,g.default=g,At}var kt,Nn;function Fn(){if(Nn)return kt;Nn=1;let c=ve(),g=qt(),b=zn(),h=zt(),r=jt(),f=Ie(),s=We(),{isClean:p,my:x}=Dt();const l={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},e={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},i={Once:!0,postcssPlugin:!0,prepare:!0},t=0;function n(w){return typeof w=="object"&&typeof w.then=="function"}function a(w){let y=!1,m=l[w.type];return w.type==="decl"?y=w.prop.toLowerCase():w.type==="atrule"&&(y=w.name.toLowerCase()),y&&w.append?[m,m+"-"+y,t,m+"Exit",m+"Exit-"+y]:y?[m,m+"-"+y,m+"Exit",m+"Exit-"+y]:w.append?[m,t,m+"Exit"]:[m,m+"Exit"]}function u(w){let y;return w.type==="document"?y=["Document",t,"DocumentExit"]:w.type==="root"?y=["Root",t,"RootExit"]:y=a(w),{eventIndex:0,events:y,iterator:0,node:w,visitorIndex:0,visitors:[]}}function d(w){return w[p]=!1,w.nodes&&w.nodes.forEach(y=>d(y)),w}let v={};class S{get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}constructor(y,m,_){this.stringified=!1,this.processed=!1;let A;if(typeof m=="object"&&m!==null&&(m.type==="root"||m.type==="document"))A=d(m);else if(m instanceof S||m instanceof r)A=d(m.root),m.map&&(typeof _.map>"u"&&(_.map={}),_.map.inline||(_.map.inline=!1),_.map.prev=m.map);else{let L=h;_.syntax&&(L=_.syntax.parse),_.parser&&(L=_.parser),L.parse&&(L=L.parse);try{A=L(m,_)}catch(z){this.processed=!0,this.error=z}A&&!A[x]&&c.rebuild(A)}this.result=new r(y,A,_),this.helpers={...v,postcss:v,result:this.result},this.plugins=this.processor.plugins.map(L=>typeof L=="object"&&L.prepare?{...L,...L.prepare(this.result)}:L)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(y){return this.async().catch(y)}finally(y){return this.async().then(y,y)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(y,m){let _=this.result.lastPlugin;try{m&&m.addToError(y),this.error=y,y.name==="CssSyntaxError"&&!y.plugin?(y.plugin=_.postcssPlugin,y.setMessage()):_.postcssVersion}catch(A){console&&console.error&&console.error(A)}return y}prepareVisitors(){this.listeners={};let y=(m,_,A)=>{this.listeners[_]||(this.listeners[_]=[]),this.listeners[_].push([m,A])};for(let m of this.plugins)if(typeof m=="object")for(let _ in m){if(!e[_]&&/^[A-Z]/.test(_))throw new Error(`Unknown event ${_} in ${m.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!i[_])if(typeof m[_]=="object")for(let A in m[_])A==="*"?y(m,_,m[_][A]):y(m,_+"-"+A.toLowerCase(),m[_][A]);else typeof m[_]=="function"&&y(m,_,m[_])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let y=0;y<this.plugins.length;y++){let m=this.plugins[y],_=this.runOnRoot(m);if(n(_))try{await _}catch(A){throw this.handleError(A)}}if(this.prepareVisitors(),this.hasListener){let y=this.result.root;for(;!y[p];){y[p]=!0;let m=[u(y)];for(;m.length>0;){let _=this.visitTick(m);if(n(_))try{await _}catch(A){let L=m[m.length-1].node;throw this.handleError(A,L)}}}if(this.listeners.OnceExit)for(let[m,_]of this.listeners.OnceExit){this.result.lastPlugin=m;try{if(y.type==="document"){let A=y.nodes.map(L=>_(L,this.helpers));await Promise.all(A)}else await _(y,this.helpers)}catch(A){throw this.handleError(A)}}}return this.processed=!0,this.stringify()}runOnRoot(y){this.result.lastPlugin=y;try{if(typeof y=="object"&&y.Once){if(this.result.root.type==="document"){let m=this.result.root.nodes.map(_=>y.Once(_,this.helpers));return n(m[0])?Promise.all(m):m}return y.Once(this.result.root,this.helpers)}else if(typeof y=="function")return y(this.result.root,this.result)}catch(m){throw this.handleError(m)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let y=this.result.opts,m=s;y.syntax&&(m=y.syntax.stringify),y.stringifier&&(m=y.stringifier),m.stringify&&(m=m.stringify);let A=new b(m,this.result.root,this.result.opts).generate();return this.result.css=A[0],this.result.map=A[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let y of this.plugins){let m=this.runOnRoot(y);if(n(m))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let y=this.result.root;for(;!y[p];)y[p]=!0,this.walkSync(y);if(this.listeners.OnceExit)if(y.type==="document")for(let m of y.nodes)this.visitSync(this.listeners.OnceExit,m);else this.visitSync(this.listeners.OnceExit,y)}return this.result}then(y,m){return this.async().then(y,m)}toString(){return this.css}visitSync(y,m){for(let[_,A]of y){this.result.lastPlugin=_;let L;try{L=A(m,this.helpers)}catch(z){throw this.handleError(z,m.proxyOf)}if(m.type!=="root"&&m.type!=="document"&&!m.parent)return!0;if(n(L))throw this.getAsyncError()}}visitTick(y){let m=y[y.length-1],{node:_,visitors:A}=m;if(_.type!=="root"&&_.type!=="document"&&!_.parent){y.pop();return}if(A.length>0&&m.visitorIndex<A.length){let[z,P]=A[m.visitorIndex];m.visitorIndex+=1,m.visitorIndex===A.length&&(m.visitors=[],m.visitorIndex=0),this.result.lastPlugin=z;try{return P(_.toProxy(),this.helpers)}catch(X){throw this.handleError(X,_)}}if(m.iterator!==0){let z=m.iterator,P;for(;P=_.nodes[_.indexes[z]];)if(_.indexes[z]+=1,!P[p]){P[p]=!0,y.push(u(P));return}m.iterator=0,delete _.indexes[z]}let L=m.events;for(;m.eventIndex<L.length;){let z=L[m.eventIndex];if(m.eventIndex+=1,z===t){_.nodes&&_.nodes.length&&(_[p]=!0,m.iterator=_.getIterator());return}else if(this.listeners[z]){m.visitors=this.listeners[z];return}}y.pop()}walkSync(y){y[p]=!0;let m=a(y);for(let _ of m)if(_===t)y.nodes&&y.each(A=>{A[p]||this.walkSync(A)});else{let A=this.listeners[_];if(A&&this.visitSync(A,y.toProxy()))return}}warnings(){return this.sync().warnings()}}return S.registerPostcss=w=>{v=w},kt=S,S.default=S,f.registerLazyResult(S),g.registerLazyResult(S),kt}var Mt,In;function ni(){if(In)return Mt;In=1;let c=zn(),g=zt();const b=jt();let h=We();class r{get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let s,p=g;try{s=p(this._css,this._opts)}catch(x){this.error=x}if(this.error)throw this.error;return this._root=s,s}get[Symbol.toStringTag](){return"NoWorkResult"}constructor(s,p,x){p=p.toString(),this.stringified=!1,this._processor=s,this._css=p,this._opts=x,this._map=void 0;let l,e=h;this.result=new b(this._processor,l,this._opts),this.result.css=p;let i=this;Object.defineProperty(this.result,"root",{get(){return i.root}});let t=new c(e,l,this._opts,p);if(t.isMap()){let[n,a]=t.generate();n&&(this.result.css=n),a&&(this.result.map=a)}else t.clearAnnotation(),this.result.css=t.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(s){return this.async().catch(s)}finally(s){return this.async().then(s,s)}sync(){if(this.error)throw this.error;return this.result}then(s,p){return this.async().then(s,p)}toString(){return this._css}warnings(){return[]}}return Mt=r,r.default=r,Mt}var Tt,Pn;function ri(){if(Pn)return Tt;Pn=1;let c=qt(),g=Fn(),b=ni(),h=Ie();class r{constructor(s=[]){this.version="8.5.6",this.plugins=this.normalize(s)}normalize(s){let p=[];for(let x of s)if(x.postcss===!0?x=x():x.postcss&&(x=x.postcss),typeof x=="object"&&Array.isArray(x.plugins))p=p.concat(x.plugins);else if(typeof x=="object"&&x.postcssPlugin)p.push(x);else if(typeof x=="function")p.push(x);else if(!(typeof x=="object"&&(x.parse||x.stringify)))throw new Error(x+" is not a PostCSS plugin");return p}process(s,p={}){return!this.plugins.length&&!p.parser&&!p.stringifier&&!p.syntax?new b(this,s,p):new g(this,s,p)}use(s){return this.plugins=this.plugins.concat(this.normalize([s])),this}}return Tt=r,r.default=r,h.registerProcessor(r),c.registerProcessor(r),Tt}var Nt,Ln;function ii(){if(Ln)return Nt;Ln=1;var c={};let g=Bt(),b=Ze(),h=ve(),r=Lt(),f=Xe(),s=qt(),p=Qr(),x=Je(),l=Fn(),e=Un(),i=Ke(),t=zt(),n=ri(),a=jt(),u=Ie(),d=Ut(),v=We(),S=jn();function w(...y){return y.length===1&&Array.isArray(y[0])&&(y=y[0]),new n(y)}return w.plugin=function(m,_){let A=!1;function L(...P){console&&console.warn&&!A&&(A=!0,console.warn(m+`: postcss.plugin was deprecated. Migration guide:
207
+ https://evilmartians.com/chronicles/postcss-8-plugin-migration`),c.LANG&&c.LANG.startsWith("cn")&&console.warn(m+`: 里面 postcss.plugin 被弃用. 迁移指南:
208
+ https://www.w3ctech.com/topic/2226`));let X=_(...P);return X.postcssPlugin=m,X.postcssVersion=new n().version,X}let z;return Object.defineProperty(L,"postcss",{get(){return z||(z=L()),z}}),L.process=function(P,X,$){return w([L($)]).process(P,X)},L},w.stringify=v,w.parse=t,w.fromJSON=p,w.list=e,w.comment=y=>new b(y),w.atRule=y=>new g(y),w.decl=y=>new f(y),w.rule=y=>new d(y),w.root=y=>new u(y),w.document=y=>new s(y),w.CssSyntaxError=r,w.Declaration=f,w.Container=h,w.Processor=n,w.Document=s,w.Comment=b,w.Warning=S,w.AtRule=g,w.Result=a,w.Input=x,w.Rule=d,w.Root=u,w.Node=i,l.registerPostcss(w),Nt=w,w.default=w,Nt}var si=ii();const Z=Pt(si);Z.stringify;Z.fromJSON;Z.plugin;Z.parse;Z.list;Z.document;Z.comment;Z.atRule;Z.rule;Z.decl;Z.root;Z.CssSyntaxError;Z.Declaration;Z.Container;Z.Processor;Z.Document;Z.Comment;Z.Warning;Z.AtRule;Z.Result;Z.Input;Z.Rule;Z.Root;Z.Node;var It,Dn;function oi(){if(Dn)return It;Dn=1;const c=(h={})=>{const r=h.prefix,f=/\s+$/.test(r)?r:`${r} `,s=h.ignoreFiles?[].concat(h.ignoreFiles):[],p=h.includeFiles?[].concat(h.includeFiles):[];return{postcssPlugin:"postcss-prefix-selector",prepare(x){const l=x.root,e=l.source.input.file;if(!(s.length&&e&&g(e,s))&&!(p.length&&e&&!g(e,p)))return{Rule(i,{result:t}){const n=["keyframes","-webkit-keyframes","-moz-keyframes","-o-keyframes","-ms-keyframes"];i.parent&&n.includes(i.parent.name)||(i.selectors=i.selectors.map(a=>h.exclude&&b(a,h.exclude)?a:h.transform?h.transform(r,a,f+a,l.source.input.file,i):[":root","body","html"].some(u=>a.startsWith(u))?h.skipGlobalSelectors?a:a.replace(/(html\s+body|:root\s+body|html|:root|body)/gm,r):f+a))}}}}};function g(h,r){return r.some(f=>f instanceof RegExp?f.test(h):h.includes(f))}function b(h,r){return r.some(f=>f instanceof RegExp?f.test(h):h===f)}return c.postcss=!0,It=c,It}var ai=oi();const li=Pt(ai),He="[A-Za-z$_][0-9A-Za-z$_]*",$n=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],Hn=["true","false","null","undefined","NaN","Infinity"],Gn=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],Wn=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],Kn=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],Zn=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],Xn=[].concat(Kn,Gn,Wn);function ci(c){const g=c.regex,b=(G,{after:se})=>{const re="</"+G[0].slice(1);return G.input.indexOf(re,se)!==-1},h=He,r={begin:"<>",end:"</>"},f=/<[A-Za-z0-9\\._:-]+\s*\/>/,s={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(G,se)=>{const re=G[0].length+G.index,he=G.input[re];if(he==="<"||he===","){se.ignoreMatch();return}he===">"&&(b(G,{after:re})||se.ignoreMatch());let pe;const D=G.input.substring(re);if(pe=D.match(/^\s*=/)){se.ignoreMatch();return}if((pe=D.match(/^\s+extends\s+/))&&pe.index===0){se.ignoreMatch();return}}},p={$pattern:He,keyword:$n,literal:Hn,built_in:Xn,"variable.language":Zn},x="[0-9](_?[0-9])*",l=`\\.(${x})`,e="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",i={className:"number",variants:[{begin:`(\\b(${e})((${l})|\\.)?|(${l}))[eE][+-]?(${x})\\b`},{begin:`\\b(${e})\\b((${l})\\b|\\.)?|(${l})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},t={className:"subst",begin:"\\$\\{",end:"\\}",keywords:p,contains:[]},n={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[c.BACKSLASH_ESCAPE,t],subLanguage:"xml"}},a={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[c.BACKSLASH_ESCAPE,t],subLanguage:"css"}},u={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[c.BACKSLASH_ESCAPE,t],subLanguage:"graphql"}},d={className:"string",begin:"`",end:"`",contains:[c.BACKSLASH_ESCAPE,t]},S={className:"comment",variants:[c.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:h+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),c.C_BLOCK_COMMENT_MODE,c.C_LINE_COMMENT_MODE]},w=[c.APOS_STRING_MODE,c.QUOTE_STRING_MODE,n,a,u,d,{match:/\$\d+/},i];t.contains=w.concat({begin:/\{/,end:/\}/,keywords:p,contains:["self"].concat(w)});const y=[].concat(S,t.contains),m=y.concat([{begin:/(\s*)\(/,end:/\)/,keywords:p,contains:["self"].concat(y)}]),_={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:p,contains:m},A={variants:[{match:[/class/,/\s+/,h,/\s+/,/extends/,/\s+/,g.concat(h,"(",g.concat(/\./,h),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,h],scope:{1:"keyword",3:"title.class"}}]},L={relevance:0,match:g.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...Gn,...Wn]}},z={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},P={variants:[{match:[/function/,/\s+/,h,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[_],illegal:/%/},X={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function $(G){return g.concat("(?!",G.join("|"),")")}const ye={match:g.concat(/\b/,$([...Kn,"super","import"].map(G=>`${G}\\s*\\(`)),h,g.lookahead(/\s*\(/)),className:"title.function",relevance:0},ae={begin:g.concat(/\./,g.lookahead(g.concat(h,/(?![0-9A-Za-z$_(])/))),end:h,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},M={match:[/get|set/,/\s+/,h,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},_]},we="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+c.UNDERSCORE_IDENT_RE+")\\s*=>",ne={match:[/const|var|let/,/\s+/,h,/\s*/,/=\s*/,/(async\s*)?/,g.lookahead(we)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[_]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:p,exports:{PARAMS_CONTAINS:m,CLASS_REFERENCE:L},illegal:/#(?![$_A-z])/,contains:[c.SHEBANG({label:"shebang",binary:"node",relevance:5}),z,c.APOS_STRING_MODE,c.QUOTE_STRING_MODE,n,a,u,d,S,{match:/\$\d+/},i,L,{scope:"attr",match:h+g.lookahead(":"),relevance:0},ne,{begin:"("+c.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[S,c.REGEXP_MODE,{className:"function",begin:we,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:c.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:p,contains:m}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:r.begin,end:r.end},{match:f},{begin:s.begin,"on:begin":s.isTrulyOpeningTag,end:s.end}],subLanguage:"xml",contains:[{begin:s.begin,end:s.end,skip:!0,contains:["self"]}]}]},P,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+c.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[_,c.inherit(c.TITLE_MODE,{begin:h,className:"title.function"})]},{match:/\.\.\./,relevance:0},ae,{match:"\\$"+h,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[_]},ye,X,A,M,{match:/\$[(.]/}]}}function ui(c){const g=c.regex,b=ci(c),h=He,r=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],f={begin:[/namespace/,/\s+/,c.IDENT_RE],beginScope:{1:"keyword",3:"title.class"}},s={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:r},contains:[b.exports.CLASS_REFERENCE]},p={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},x=["type","interface","public","private","protected","implements","declare","abstract","readonly","enum","override","satisfies"],l={$pattern:He,keyword:$n.concat(x),literal:Hn,built_in:Xn.concat(r),"variable.language":Zn},e={className:"meta",begin:"@"+h},i=(u,d,v)=>{const S=u.contains.findIndex(w=>w.label===d);if(S===-1)throw new Error("can not find mode to replace");u.contains.splice(S,1,v)};Object.assign(b.keywords,l),b.exports.PARAMS_CONTAINS.push(e);const t=b.contains.find(u=>u.scope==="attr"),n=Object.assign({},t,{match:g.concat(h,g.lookahead(/\s*\?:/))});b.exports.PARAMS_CONTAINS.push([b.exports.CLASS_REFERENCE,t,n]),b.contains=b.contains.concat([e,f,s,n]),i(b,"shebang",c.SHEBANG()),i(b,"use_strict",p);const a=b.contains.find(u=>u.label==="func.def");return a.relevance=0,Object.assign(b,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),b}function fi(c){const g=c.regex,b=g.concat(/[\p{L}_]/u,g.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),h=/[\p{L}0-9._:-]+/u,r={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},f={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},s=c.inherit(f,{begin:/\(/,end:/\)/}),p=c.inherit(c.APOS_STRING_MODE,{className:"string"}),x=c.inherit(c.QUOTE_STRING_MODE,{className:"string"}),l={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:h,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[r]},{begin:/'/,end:/'/,contains:[r]},{begin:/[^\s"'=<>`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,unicodeRegex:!0,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,relevance:10,contains:[f,x,p,s,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[f,s,x,p]}]}]},c.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},r,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[x]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[l],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[l],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:g.concat(/</,g.lookahead(g.concat(b,g.either(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:b,relevance:0,starts:l}]},{className:"tag",begin:g.concat(/<\//,g.lookahead(g.concat(b,/>/))),contains:[{className:"name",begin:b,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}const hi=c=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:c.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[c.APOS_STRING_MODE,c.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:c.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),di=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],pi=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],gi=[...di,...pi],mi=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),bi=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),yi=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),wi=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse();function xi(c){const g=c.regex,b=hi(c),h={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},r="and or not only",f=/@-?\w[\w]*(-\w+)*/,s="[a-zA-Z-][a-zA-Z0-9_-]*",p=[c.APOS_STRING_MODE,c.QUOTE_STRING_MODE];return{name:"CSS",case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"},classNameAliases:{keyframePosition:"selector-tag"},contains:[b.BLOCK_COMMENT,h,b.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:"selector-class",begin:"\\."+s,relevance:0},b.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+bi.join("|")+")"},{begin:":(:)?("+yi.join("|")+")"}]},b.CSS_VARIABLE,{className:"attribute",begin:"\\b("+wi.join("|")+")\\b"},{begin:/:/,end:/[;}{]/,contains:[b.BLOCK_COMMENT,b.HEXCOLOR,b.IMPORTANT,b.CSS_NUMBER_MODE,...p,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[...p,{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},b.FUNCTION_DISPATCH]},{begin:g.lookahead(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:f},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:r,attribute:mi.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...p,b.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+gi.join("|")+")\\b"}]}}const Jn=document.createElement("style");Jn.innerText=[Hr,Gr].join(`
209
+ `);document.head.appendChild(Jn);Ge.registerLanguage("typescript",ui);Ge.registerLanguage("html",fi);Ge.registerLanguage("css",xi);function Ei(...c){const g=document.createElement("div"),b=document.createElement("div");b.classList.add("tab-control");const h=document.createElement("div");return c.forEach(r=>{g.appendChild(r),r.addEventListener("click",()=>{c.forEach(f=>f.removeAttribute("selected")),r.setAttribute("selected",""),h.innerHTML="",h.appendChild(r.content),h.className=r.className,h.classList.add("tab-content")})}),b.appendChild(g),b.appendChild(h),h.classList.add("tab-content"),c[0].setAttribute("selected",""),h.appendChild(c[0].content),b}function Te(c,g){const b=document.createElement("div");return b.role="tab",b.tabIndex=0,b.innerText=c,b.content=g,g.tagName=="PRE"&&b.classList.add("code"),b}function Ne(c,g){const b=document.createElement(c);return typeof g=="string"?b.innerHTML=g:g.forEach(h=>{b.appendChild(h)}),b}async function vi(c,g,b){const h=g.mainContent,r=Ne("div",h);r.id=`example-preview-${b}`;const f=typeof g.css=="string"?void 0:g.css?.label,s=typeof g.css=="string"?g.css:g.css?.content,p=Ei(Te("Preview",r),Te("HTML",$e("html",h)),...s?[Te(f??"CSS",$e("css",s))]:[],...g.initializer&&g.initializer.content?[Te(g.initializer.label??"TS",$e("typescript",g.initializer.content))]:[],...(g.additionalSources||[]).map(l=>Te(l.label,$e(l.language,l.content))));g.description&&c.appendChild(Ne("div",g.description));const x=Ne("div",[p]);x.classList.add("example"),c.appendChild(x),s&&Si(`#${r.id}`,s),g.initializer?.initialize&&await g.initializer.initialize(r)}function $e(c,g){let b=g.split(/\r?\n/).map(h=>{const r=h.indexOf("///");if(r>-1){const f=h.substring(r+3).trimStart();return f?h.replace(/^(\s*)([^\s].*)$/,`$1${f}`):void 0}return h}).filter(h=>typeof h<"u").join(`
210
+ `).trim();return c&&c!="raw"&&(b=Ge.highlight(b,{language:c}).value),Ne("pre",[Ne("code",b)])}function Si(c,g){const b=document.createElement("style");b.innerHTML=Z().use(li({prefix:c})).process(g).css,document.head.appendChild(b)}async function _i(c,g=document.body){const b=Oi(g);let h=0;Object.keys(c).sort().forEach(async r=>{const f=document.createElement("div");f.className="example-container",b.appendChild(f);const s=c[r].default;vi(f,s,h++)})}function Ri(c){const g=document.createElement("div");g.id="examples-container";const b=c.querySelector("#examples");return b?b.after(g):c.appendChild(g),g}function Oi(c){return c.children?Ri(c):c}const Ci=`<h1 id="@cas-smartdesign/element-preview">@cas-smartdesign/element-preview</h1>
209
211
  <p>A helper library that can be used to include examples in elements documentation with preview and source code(s).</p>
210
212
  <h2 id="disclaimer">Disclaimer</h2>
211
213
  <blockquote>
@@ -319,10 +321,4 @@ document.querySelectorAll(&quot;#sample-buttons sd-button&quot;).forEach((elemen
319
321
  );
320
322
  });
321
323
  </code></pre>
322
- `,qo=document.querySelector("#markdown-container");qo.innerHTML=jo;Bo(Object.assign({"./examples/example/index.ts":$r}),document.querySelector(".markdown-body"));
323
- function __vite__mapDeps(indexes) {
324
- if (!__vite__mapDeps.viteFileDeps) {
325
- __vite__mapDeps.viteFileDeps = []
326
- }
327
- return indexes.map((i) => __vite__mapDeps.viteFileDeps[i])
328
- }
324
+ `,Ai=document.querySelector("#markdown-container");Ai.innerHTML=Ci;_i(Object.assign({"./examples/example/index.ts":$r}),document.querySelector(".markdown-body"));