@cas-smartdesign/tree 4.0.5 → 4.1.1
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/3_lazy_loading.js +1 -1
- package/dist/docs/doc.css +1 -1
- package/dist/docs/doc.mjs +78 -81
- package/dist/tree-with-externals.js +34 -52
- package/dist/tree-with-externals.js.map +4 -4
- package/dist/tree.mjs +206 -208
- package/dist/tree.mjs.map +1 -1
- package/npm-third-party-licenses.json +52 -47
- package/package.json +10 -10
package/dist/docs/doc.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const
|
|
1
|
+
(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const t of document.querySelectorAll('link[rel="modulepreload"]'))i(t);new MutationObserver(t=>{for(const o of t)if(o.type==="childList")for(const r of o.addedNodes)r.tagName==="LINK"&&r.rel==="modulepreload"&&i(r)}).observe(document,{childList:!0,subtree:!0});function n(t){const o={};return t.integrity&&(o.integrity=t.integrity),t.referrerPolicy&&(o.referrerPolicy=t.referrerPolicy),t.crossOrigin==="use-credentials"?o.credentials="include":t.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function i(t){if(t.ep)return;t.ep=!0;const o=n(t);fetch(t.href,o)}})();const sr=`<!-- Load element with all dependencies directly -->
|
|
2
2
|
<script src="./tree-with-externals.js"><\/script>
|
|
3
3
|
|
|
4
4
|
<div id="example-root">
|
|
@@ -53,8 +53,8 @@
|
|
|
53
53
|
</sd-tree>
|
|
54
54
|
</div>
|
|
55
55
|
</div>
|
|
56
|
-
`,
|
|
57
|
-
`,
|
|
56
|
+
`,rr=`<h3 id="declarative-example-with-checkboxes-only">Declarative example with checkboxes only</h3>
|
|
57
|
+
`,or=`#example-root {
|
|
58
58
|
display: grid;
|
|
59
59
|
grid-template-columns: repeat(2, 1fr);
|
|
60
60
|
column-gap: 16px;
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
sd-tree {
|
|
63
63
|
max-height: 500px;
|
|
64
64
|
}
|
|
65
|
-
`,ar={mainContent:
|
|
65
|
+
`,ar={mainContent:sr,description:rr,css:or},lr=Object.freeze(Object.defineProperty({__proto__:null,default:ar},Symbol.toStringTag,{value:"Module"})),dr=`<!-- Load element with all dependencies directly -->
|
|
66
66
|
<script src="./tree-with-externals.js"><\/script>
|
|
67
67
|
|
|
68
68
|
<div id="example-root">
|
|
@@ -171,8 +171,8 @@ sd-tree {
|
|
|
171
171
|
</sd-tree>
|
|
172
172
|
</div>
|
|
173
173
|
</div>
|
|
174
|
-
`,
|
|
175
|
-
`,
|
|
174
|
+
`,cr=`<h3 id="declarative-example-with-radio-buttons">Declarative example with radio buttons</h3>
|
|
175
|
+
`,hr=`#example-root {
|
|
176
176
|
display: grid;
|
|
177
177
|
grid-template-columns: repeat(2, 1fr);
|
|
178
178
|
column-gap: 16px;
|
|
@@ -181,7 +181,7 @@ sd-tree {
|
|
|
181
181
|
sd-tree {
|
|
182
182
|
max-height: 500px;
|
|
183
183
|
}
|
|
184
|
-
`,
|
|
184
|
+
`,ur={mainContent:dr,description:cr,css:hr},fr=Object.freeze(Object.defineProperty({__proto__:null,default:ur},Symbol.toStringTag,{value:"Module"})),pr="modulepreload",gr=function(s,e){return new URL(s,e).href},ci={},mr=function(e,n,i){let t=Promise.resolve();if(n&&n.length>0){let h=function(a){return Promise.all(a.map(c=>Promise.resolve(c).then(l=>({status:"fulfilled",value:l}),l=>({status:"rejected",reason:l}))))};const r=document.getElementsByTagName("link"),u=document.querySelector("meta[property=csp-nonce]"),m=u?.nonce||u?.getAttribute("nonce");t=h(n.map(a=>{if(a=gr(a,i),a in ci)return;ci[a]=!0;const c=a.endsWith(".css"),l=c?'[rel="stylesheet"]':"";if(!!i)for(let g=r.length-1;g>=0;g--){const b=r[g];if(b.href===a&&(!c||b.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${a}"]${l}`))return;const p=document.createElement("link");if(p.rel=c?"stylesheet":pr,c||(p.as="script"),p.crossOrigin="",p.href=a,m&&p.setAttribute("nonce",m),document.head.appendChild(p),c)return new Promise((g,b)=>{p.addEventListener("load",g),p.addEventListener("error",()=>b(new Error(`Unable to preload CSS for ${a}`)))})}))}function o(r){const u=new Event("vite:preloadError",{cancelable:!0});if(u.payload=r,window.dispatchEvent(u),!u.defaultPrevented)throw r}return t.then(r=>{for(const u of r||[])u.status==="rejected"&&o(u.reason);return e().catch(o)})},br=`<!-- Load element with all dependencies directly -->
|
|
185
185
|
<script src="./tree-with-externals.js"><\/script>
|
|
186
186
|
|
|
187
187
|
<div id="lazy-loading-example-root">
|
|
@@ -196,8 +196,8 @@ sd-tree {
|
|
|
196
196
|
<button id="collapse-btn">Collapse All</button>
|
|
197
197
|
</div>
|
|
198
198
|
</div>
|
|
199
|
-
`,
|
|
200
|
-
`,
|
|
199
|
+
`,yr=`<h3 id="creating-tree-with-server-data">Creating tree with server data</h3>
|
|
200
|
+
`,xr=`#lazy-loading-example-root {
|
|
201
201
|
display: grid;
|
|
202
202
|
grid-template-columns: repeat(2, 1fr);
|
|
203
203
|
column-gap: 16px;
|
|
@@ -244,7 +244,7 @@ container.querySelectorAll(".tree-example").forEach((example) => {
|
|
|
244
244
|
example.querySelector("#collapse-btn").addEventListener("click", () => server.collapseAll());
|
|
245
245
|
example.appendChild(tree);
|
|
246
246
|
});
|
|
247
|
-
`,
|
|
247
|
+
`,vr=`import {
|
|
248
248
|
Tree,
|
|
249
249
|
CheckboxNode,
|
|
250
250
|
Node,
|
|
@@ -392,27 +392,27 @@ export class Server {
|
|
|
392
392
|
return findNodeByPath(this._nodes, path);
|
|
393
393
|
};
|
|
394
394
|
}
|
|
395
|
-
`,
|
|
396
|
-
\f\r]`,
|
|
397
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),oi=/'/g,li=/"/g,zi=/^(?:script|style|textarea|title)$/i,Nr=i=>(e,...t)=>({_$litType$:i,strings:e,values:t}),I=Nr(1),Ie=Symbol.for("lit-noChange"),R=Symbol.for("lit-nothing"),ai=new WeakMap,ye=ve.createTreeWalker(ve,129,null,!1);function Ui(i,e){if(!Array.isArray(i)||!i.hasOwnProperty("raw"))throw Error("invalid template strings array");return ii!==void 0?ii.createHTML(e):e}const Or=(i,e)=>{const t=i.length-1,n=[];let s,o=e===2?"<svg>":"",r=je;for(let l=0;l<t;l++){const a=i[l];let d,c,p=-1,f=0;for(;f<a.length&&(r.lastIndex=f,c=r.exec(a),c!==null);)f=r.lastIndex,r===je?c[1]==="!--"?r=si:c[1]!==void 0?r=ri:c[2]!==void 0?(zi.test(c[2])&&(s=RegExp("</"+c[2],"g")),r=me):c[3]!==void 0&&(r=me):r===me?c[0]===">"?(r=s??je,p=-1):c[1]===void 0?p=-2:(p=r.lastIndex-c[2].length,d=c[1],r=c[3]===void 0?me:c[3]==='"'?li:oi):r===li||r===oi?r=me:r===si||r===ri?r=je:(r=me,s=void 0);const _=r===me&&i[l+1].startsWith("/>")?" ":"";o+=r===je?a+Cr:p>=0?(n.push(d),a.slice(0,p)+un+a.slice(p)+ae+_):a+ae+(p===-2?(n.push(void 0),l):_)}return[Ui(i,o+(i[t]||"<?>")+(e===2?"</svg>":"")),n]};class Ge{constructor({strings:e,_$litType$:t},n){let s;this.parts=[];let o=0,r=0;const l=e.length-1,a=this.parts,[d,c]=Or(e,t);if(this.el=Ge.createElement(d,n),ye.currentNode=this.el.content,t===2){const p=this.el.content,f=p.firstChild;f.remove(),p.append(...f.childNodes)}for(;(s=ye.nextNode())!==null&&a.length<l;){if(s.nodeType===1){if(s.hasAttributes()){const p=[];for(const f of s.getAttributeNames())if(f.endsWith(un)||f.startsWith(ae)){const _=c[r++];if(p.push(f),_!==void 0){const N=s.getAttribute(_.toLowerCase()+un).split(ae),P=/([.?@])?(.*)/.exec(_);a.push({type:1,index:o,name:P[2],strings:N,ctor:P[1]==="."?Rr:P[1]==="?"?Mr:P[1]==="@"?Tr:Mt})}else a.push({type:6,index:o})}for(const f of p)s.removeAttribute(f)}if(zi.test(s.tagName)){const p=s.textContent.split(ae),f=p.length-1;if(f>0){s.textContent=Oe?Oe.emptyScript:"";for(let _=0;_<f;_++)s.append(p[_],Ve()),ye.nextNode(),a.push({type:2,index:++o});s.append(p[f],Ve())}}}else if(s.nodeType===8)if(s.data===Bi)a.push({type:2,index:o});else{let p=-1;for(;(p=s.data.indexOf(ae,p+1))!==-1;)a.push({type:7,index:o}),p+=ae.length-1}o++}}static createElement(e,t){const n=ve.createElement("template");return n.innerHTML=e,n}}function Re(i,e,t=i,n){var s,o,r,l;if(e===Ie)return e;let a=n!==void 0?(s=t._$Co)===null||s===void 0?void 0:s[n]:t._$Cl;const d=qe(e)?void 0:e._$litDirective$;return(a==null?void 0:a.constructor)!==d&&((o=a==null?void 0:a._$AO)===null||o===void 0||o.call(a,!1),d===void 0?a=void 0:(a=new d(i),a._$AT(i,t,n)),n!==void 0?((r=(l=t)._$Co)!==null&&r!==void 0?r:l._$Co=[])[n]=a:t._$Cl=a),a!==void 0&&(e=Re(i,a._$AS(i,e.values),a,n)),e}class Ir{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){var t;const{el:{content:n},parts:s}=this._$AD,o=((t=e==null?void 0:e.creationScope)!==null&&t!==void 0?t:ve).importNode(n,!0);ye.currentNode=o;let r=ye.nextNode(),l=0,a=0,d=s[0];for(;d!==void 0;){if(l===d.index){let c;d.type===2?c=new nt(r,r.nextSibling,this,e):d.type===1?c=new d.ctor(r,d.name,d.strings,this,e):d.type===6&&(c=new Lr(r,this,e)),this._$AV.push(c),d=s[++a]}l!==(d==null?void 0:d.index)&&(r=ye.nextNode(),l++)}return ye.currentNode=ve,o}v(e){let t=0;for(const n of this._$AV)n!==void 0&&(n.strings!==void 0?(n._$AI(e,n,t),t+=n.strings.length-2):n._$AI(e[t])),t++}}class nt{constructor(e,t,n,s){var o;this.type=2,this._$AH=R,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=n,this.options=s,this._$Cp=(o=s==null?void 0:s.isConnected)===null||o===void 0||o}get _$AU(){var e,t;return(t=(e=this._$AM)===null||e===void 0?void 0:e._$AU)!==null&&t!==void 0?t:this._$Cp}get parentNode(){let e=this._$AA.parentNode;const t=this._$AM;return t!==void 0&&(e==null?void 0:e.nodeType)===11&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=Re(this,e,t),qe(e)?e===R||e==null||e===""?(this._$AH!==R&&this._$AR(),this._$AH=R):e!==this._$AH&&e!==Ie&&this._(e):e._$litType$!==void 0?this.g(e):e.nodeType!==void 0?this.$(e):Ar(e)?this.T(e):this._(e)}k(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}$(e){this._$AH!==e&&(this._$AR(),this._$AH=this.k(e))}_(e){this._$AH!==R&&qe(this._$AH)?this._$AA.nextSibling.data=e:this.$(ve.createTextNode(e)),this._$AH=e}g(e){var t;const{values:n,_$litType$:s}=e,o=typeof s=="number"?this._$AC(e):(s.el===void 0&&(s.el=Ge.createElement(Ui(s.h,s.h[0]),this.options)),s);if(((t=this._$AH)===null||t===void 0?void 0:t._$AD)===o)this._$AH.v(n);else{const r=new Ir(o,this),l=r.u(this.options);r.v(n),this.$(l),this._$AH=r}}_$AC(e){let t=ai.get(e.strings);return t===void 0&&ai.set(e.strings,t=new Ge(e)),t}T(e){ji(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let n,s=0;for(const o of e)s===t.length?t.push(n=new nt(this.k(Ve()),this.k(Ve()),this,this.options)):n=t[s],n._$AI(o),s++;s<t.length&&(this._$AR(n&&n._$AB.nextSibling,s),t.length=s)}_$AR(e=this._$AA.nextSibling,t){var n;for((n=this._$AP)===null||n===void 0||n.call(this,!1,!0,t);e&&e!==this._$AB;){const s=e.nextSibling;e.remove(),e=s}}setConnected(e){var t;this._$AM===void 0&&(this._$Cp=e,(t=this._$AP)===null||t===void 0||t.call(this,e))}}let Mt=class{constructor(e,t,n,s,o){this.type=1,this._$AH=R,this._$AN=void 0,this.element=e,this.name=t,this._$AM=s,this.options=o,n.length>2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=R}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(e,t=this,n,s){const o=this.strings;let r=!1;if(o===void 0)e=Re(this,e,t,0),r=!qe(e)||e!==this._$AH&&e!==Ie,r&&(this._$AH=e);else{const l=e;let a,d;for(e=o[0],a=0;a<o.length-1;a++)d=Re(this,l[n+a],t,a),d===Ie&&(d=this._$AH[a]),r||(r=!qe(d)||d!==this._$AH[a]),d===R?e=R:e!==R&&(e+=(d??"")+o[a+1]),this._$AH[a]=d}r&&!s&&this.j(e)}j(e){e===R?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}};class Rr extends Mt{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===R?void 0:e}}const Pr=Oe?Oe.emptyScript:"";class Mr extends Mt{constructor(){super(...arguments),this.type=4}j(e){e&&e!==R?this.element.setAttribute(this.name,Pr):this.element.removeAttribute(this.name)}}let Tr=class extends Mt{constructor(e,t,n,s,o){super(e,t,n,s,o),this.type=5}_$AI(e,t=this){var n;if((e=(n=Re(this,e,t,0))!==null&&n!==void 0?n:R)===Ie)return;const s=this._$AH,o=e===R&&s!==R||e.capture!==s.capture||e.once!==s.once||e.passive!==s.passive,r=e!==R&&(s===R||o);o&&this.element.removeEventListener(this.name,this,s),r&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var t,n;typeof this._$AH=="function"?this._$AH.call((n=(t=this.options)===null||t===void 0?void 0:t.host)!==null&&n!==void 0?n:this.element,e):this._$AH.handleEvent(e)}};class Lr{constructor(e,t,n){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(e){Re(this,e)}}const di=Ct.litHtmlPolyfillSupport;di==null||di(Ge,nt),((Qt=Ct.litHtmlVersions)!==null&&Qt!==void 0?Qt:Ct.litHtmlVersions=[]).push("2.8.0");const Fi=(i,e,t)=>{var n,s;const o=(n=t==null?void 0:t.renderBefore)!==null&&n!==void 0?n:e;let r=o._$litPart$;if(r===void 0){const l=(s=t==null?void 0:t.renderBefore)!==null&&s!==void 0?s:null;o._$litPart$=r=new nt(e.insertBefore(Ve(),l),l,void 0,t??{})}return r._$AI(i),r};var en,tn;class U extends Ne{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e,t;const n=super.createRenderRoot();return(e=(t=this.renderOptions).renderBefore)!==null&&e!==void 0||(t.renderBefore=n.firstChild),n}update(e){const t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=Fi(t,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),(e=this._$Do)===null||e===void 0||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this._$Do)===null||e===void 0||e.setConnected(!1)}render(){return Ie}}U.finalized=!0,U._$litElement$=!0,(en=globalThis.litElementHydrateSupport)===null||en===void 0||en.call(globalThis,{LitElement:U});const ci=globalThis.litElementPolyfillSupport;ci==null||ci({LitElement:U});((tn=globalThis.litElementVersions)!==null&&tn!==void 0?tn:globalThis.litElementVersions=[]).push("3.3.3");const Dr=(i,e)=>e.kind==="method"&&e.descriptor&&!("value"in e.descriptor)?{...e,finisher(t){t.createProperty(e.key,i)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:e.key,initializer(){typeof e.initializer=="function"&&(this[e.key]=e.initializer.call(this))},finisher(t){t.createProperty(e.key,i)}},Br=(i,e,t)=>{e.constructor.createProperty(t,i)};function x(i){return(e,t)=>t!==void 0?Br(i,e,t):Dr(i,e)}const Hi=i=>i??R,jr=":host{display:inline-block;font-size:13px;line-height:20px;font-family:Segoe UI,Lucida Sans,Arial,sans-serif;color:#111;contain:content}:host([hidden]){display:none!important}:host([level=warn i]){color:#555}:host([level=suggest i]){color:#bf8800}:host([level=error i]){color:#cc0017}:host([level=warn]){color:#555}:host([level=suggest]){color:#bf8800}:host([level=error]){color:#cc0017}.icon{height:12px;width:12px;padding-right:4px;margin-bottom:-1px}",zr="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2012%2012'%3e%3cstyle%20id='style3'%3e%20.st0{fill:%23fff}.st1{fill:%23c00}%20%3c/style%3e%3cg%20id='g5'%3e%3cpath%20class='st1'%20d='M6%20.9c2.8%200%205.1%202.3%205.1%205.1S8.8%2011.1%206%2011.1.9%208.8.9%206%203.2.9%206%20.9m0-1C2.7-.1-.1%202.7-.1%206s2.7%206.1%206.1%206.1%206.1-2.7%206.1-6.1S9.3-.1%206-.1z'%20id='path9'/%3e%3c/g%3e%3cg%20id='g11'%3e%3cpath%20class='st0'%20id='rect13'%20d='M5.5%202.5h1v4h-1z'/%3e%3cpath%20class='st1'%20d='M6%203v3-3m1-1H5v5h2V2z'%20id='path15'/%3e%3c/g%3e%3cg%20id='g17'%3e%3cpath%20class='st0'%20id='rect19'%20d='M5.5%208.5h1v1h-1z'/%3e%3cpath%20class='st1'%20id='polygon21'%20d='M7%208H5v2h2V8z'/%3e%3c/g%3e%3c/svg%3e",Ur="data:image/svg+xml,%3csvg%20id='Ebene_1'%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3e%3cstyle%3e%20.st0{fill:%23bf8800}%20%3c/style%3e%3cpath%20class='st0'%20d='M12%20.8l11%2019.8v1.3H1v-1.3L12%20.8zm.8-.6h-1.6L0%2020v3h24v-3L12.8.2z'/%3e%3cpath%20class='st0'%20d='M11%208h2v8h-2zm0%2010h2v2h-2z'/%3e%3c/svg%3e",Fr="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2012%2012'%3e%3cpath%20class='st1'%20d='M6%20.9c2.8%200%205.1%202.3%205.1%205.1S8.8%2011.1%206%2011.1.9%208.8.9%206%203.2.9%206%20.9m0-1C2.7-.1-.1%202.7-.1%206s2.7%206.1%206.1%206.1%206.1-2.7%206.1-6.1S9.3-.1%206-.1z'%20fill='%23555'/%3e%3cpath%20d='M6%209V6v3m-1%201h2V5H5v5zm2-8H5v2h2z'%20class='st1'%20fill='%23555'/%3e%3c/svg%3e";var Hr=Object.defineProperty,Wr=Object.getOwnPropertyDescriptor,On=(i,e,t,n)=>{for(var s=n>1?void 0:n?Wr(e,t):e,o=i.length-1,r;o>=0;o--)(r=i[o])&&(s=(n?r(e,t,s):r(s))||s);return n&&s&&Hr(e,t,s),s},$e;const Ke=($e=class extends U{static parseLevel(i){if(i){const e=Object.keys(Ze).find(t=>t.toLowerCase()===i.toLowerCase());return e&&Ze[e]}}static get styles(){return[we`
|
|
398
|
-
${
|
|
399
|
-
`]}render(){return
|
|
395
|
+
`,_r={mainContent:br,description:yr,css:xr,initializer:{content:wr,type:"typescript",initialize:()=>mr(()=>import("./3_lazy_loading.js"),[],import.meta.url)},additionalSources:[{type:"source",language:"typescript",label:"server.ts",content:vr}]},Sr=Object.freeze(Object.defineProperty({__proto__:null,default:_r},Symbol.toStringTag,{value:"Module"}));const Ot=globalThis,Rn=Ot.ShadowRoot&&(Ot.ShadyCSS===void 0||Ot.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Pn=Symbol(),hi=new WeakMap;let Xi=class{constructor(e,n,i){if(this._$cssResult$=!0,i!==Pn)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=n}get styleSheet(){let e=this.o;const n=this.t;if(Rn&&e===void 0){const i=n!==void 0&&n.length===1;i&&(e=hi.get(n)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),i&&hi.set(n,e))}return e}toString(){return this.cssText}};const Re=s=>new Xi(typeof s=="string"?s:s+"",void 0,Pn),Fe=(s,...e)=>{const n=s.length===1?s[0]:e.reduce(((i,t,o)=>i+(r=>{if(r._$cssResult$===!0)return r.cssText;if(typeof r=="number")return r;throw Error("Value passed to 'css' function must be a 'css' function result: "+r+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(t)+s[o+1]),s[0]);return new Xi(n,s,Pn)},kr=(s,e)=>{if(Rn)s.adoptedStyleSheets=e.map((n=>n instanceof CSSStyleSheet?n:n.styleSheet));else for(const n of e){const i=document.createElement("style"),t=Ot.litNonce;t!==void 0&&i.setAttribute("nonce",t),i.textContent=n.cssText,s.appendChild(i)}},ui=Rn?s=>s:s=>s instanceof CSSStyleSheet?(e=>{let n="";for(const i of e.cssRules)n+=i.cssText;return Re(n)})(s):s;const{is:Er,defineProperty:Cr,getOwnPropertyDescriptor:Nr,getOwnPropertyNames:Ar,getOwnPropertySymbols:$r,getPrototypeOf:Or}=Object,Tt=globalThis,fi=Tt.trustedTypes,Ir=fi?fi.emptyScript:"",Rr=Tt.reactiveElementPolyfillSupport,dt=(s,e)=>s,Rt={toAttribute(s,e){switch(e){case Boolean:s=s?Ir:null;break;case Object:case Array:s=s==null?s:JSON.stringify(s)}return s},fromAttribute(s,e){let n=s;switch(e){case Boolean:n=s!==null;break;case Number:n=s===null?null:Number(s);break;case Object:case Array:try{n=JSON.parse(s)}catch{n=null}}return n}},Mn=(s,e)=>!Er(s,e),pi={attribute:!0,type:String,converter:Rt,reflect:!1,useDefault:!1,hasChanged:Mn};Symbol.metadata??=Symbol("metadata"),Tt.litPropertyMetadata??=new WeakMap;let Qe=class extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,n=pi){if(n.state&&(n.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((n=Object.create(n)).wrapped=!0),this.elementProperties.set(e,n),!n.noAccessor){const i=Symbol(),t=this.getPropertyDescriptor(e,i,n);t!==void 0&&Cr(this.prototype,e,t)}}static getPropertyDescriptor(e,n,i){const{get:t,set:o}=Nr(this.prototype,e)??{get(){return this[n]},set(r){this[n]=r}};return{get:t,set(r){const u=t?.call(this);o?.call(this,r),this.requestUpdate(e,u,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??pi}static _$Ei(){if(this.hasOwnProperty(dt("elementProperties")))return;const e=Or(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(dt("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(dt("properties"))){const n=this.properties,i=[...Ar(n),...$r(n)];for(const t of i)this.createProperty(t,n[t])}const e=this[Symbol.metadata];if(e!==null){const n=litPropertyMetadata.get(e);if(n!==void 0)for(const[i,t]of n)this.elementProperties.set(i,t)}this._$Eh=new Map;for(const[n,i]of this.elementProperties){const t=this._$Eu(n,i);t!==void 0&&this._$Eh.set(t,n)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){const n=[];if(Array.isArray(e)){const i=new Set(e.flat(1/0).reverse());for(const t of i)n.unshift(ui(t))}else e!==void 0&&n.push(ui(e));return n}static _$Eu(e,n){const i=n.attribute;return i===!1?void 0:typeof i=="string"?i:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise((e=>this.enableUpdating=e)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((e=>e(this)))}addController(e){(this._$EO??=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$EO?.delete(e)}_$E_(){const e=new Map,n=this.constructor.elementProperties;for(const i of n.keys())this.hasOwnProperty(i)&&(e.set(i,this[i]),delete this[i]);e.size>0&&(this._$Ep=e)}createRenderRoot(){const e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return kr(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach((e=>e.hostConnected?.()))}enableUpdating(e){}disconnectedCallback(){this._$EO?.forEach((e=>e.hostDisconnected?.()))}attributeChangedCallback(e,n,i){this._$AK(e,i)}_$ET(e,n){const i=this.constructor.elementProperties.get(e),t=this.constructor._$Eu(e,i);if(t!==void 0&&i.reflect===!0){const o=(i.converter?.toAttribute!==void 0?i.converter:Rt).toAttribute(n,i.type);this._$Em=e,o==null?this.removeAttribute(t):this.setAttribute(t,o),this._$Em=null}}_$AK(e,n){const i=this.constructor,t=i._$Eh.get(e);if(t!==void 0&&this._$Em!==t){const o=i.getPropertyOptions(t),r=typeof o.converter=="function"?{fromAttribute:o.converter}:o.converter?.fromAttribute!==void 0?o.converter:Rt;this._$Em=t;const u=r.fromAttribute(n,o.type);this[t]=u??this._$Ej?.get(t)??u,this._$Em=null}}requestUpdate(e,n,i){if(e!==void 0){const t=this.constructor,o=this[e];if(i??=t.getPropertyOptions(e),!((i.hasChanged??Mn)(o,n)||i.useDefault&&i.reflect&&o===this._$Ej?.get(e)&&!this.hasAttribute(t._$Eu(e,i))))return;this.C(e,n,i)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(e,n,{useDefault:i,reflect:t,wrapped:o},r){i&&!(this._$Ej??=new Map).has(e)&&(this._$Ej.set(e,r??n??this[e]),o!==!0||r!==void 0)||(this._$AL.has(e)||(this.hasUpdated||i||(n=void 0),this._$AL.set(e,n)),t===!0&&this._$Em!==e&&(this._$Eq??=new Set).add(e))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(n){Promise.reject(n)}const e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,o]of this._$Ep)this[t]=o;this._$Ep=void 0}const i=this.constructor.elementProperties;if(i.size>0)for(const[t,o]of i){const{wrapped:r}=o,u=this[t];r!==!0||this._$AL.has(t)||u===void 0||this.C(t,void 0,o,u)}}let e=!1;const n=this._$AL;try{e=this.shouldUpdate(n),e?(this.willUpdate(n),this._$EO?.forEach((i=>i.hostUpdate?.())),this.update(n)):this._$EM()}catch(i){throw e=!1,this._$EM(),i}e&&this._$AE(n)}willUpdate(e){}_$AE(e){this._$EO?.forEach((n=>n.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Eq&&=this._$Eq.forEach((n=>this._$ET(n,this[n]))),this._$EM()}updated(e){}firstUpdated(e){}};Qe.elementStyles=[],Qe.shadowRootOptions={mode:"open"},Qe[dt("elementProperties")]=new Map,Qe[dt("finalized")]=new Map,Rr?.({ReactiveElement:Qe}),(Tt.reactiveElementVersions??=[]).push("2.1.1");const Tn=globalThis,Pt=Tn.trustedTypes,gi=Pt?Pt.createPolicy("lit-html",{createHTML:s=>s}):void 0,Qi="$lit$",Ie=`lit$${Math.random().toFixed(9).slice(2)}$`,Yi="?"+Ie,Pr=`<${Yi}>`,Ue=document,ht=()=>Ue.createComment(""),ut=s=>s===null||typeof s!="object"&&typeof s!="function",Ln=Array.isArray,Mr=s=>Ln(s)||typeof s?.[Symbol.iterator]=="function",en=`[
|
|
396
|
+
\f\r]`,ot=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,mi=/-->/g,bi=/>/g,Be=RegExp(`>|${en}(?:([^\\s"'>=/]+)(${en}*=${en}*(?:[^
|
|
397
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),yi=/'/g,xi=/"/g,es=/^(?:script|style|textarea|title)$/i,Tr=s=>(e,...n)=>({_$litType$:s,strings:e,values:n}),te=Tr(1),Ye=Symbol.for("lit-noChange"),ie=Symbol.for("lit-nothing"),wi=new WeakMap,ze=Ue.createTreeWalker(Ue,129);function ts(s,e){if(!Ln(s)||!s.hasOwnProperty("raw"))throw Error("invalid template strings array");return gi!==void 0?gi.createHTML(e):e}const Lr=(s,e)=>{const n=s.length-1,i=[];let t,o=e===2?"<svg>":e===3?"<math>":"",r=ot;for(let u=0;u<n;u++){const m=s[u];let h,a,c=-1,l=0;for(;l<m.length&&(r.lastIndex=l,a=r.exec(m),a!==null);)l=r.lastIndex,r===ot?a[1]==="!--"?r=mi:a[1]!==void 0?r=bi:a[2]!==void 0?(es.test(a[2])&&(t=RegExp("</"+a[2],"g")),r=Be):a[3]!==void 0&&(r=Be):r===Be?a[0]===">"?(r=t??ot,c=-1):a[1]===void 0?c=-2:(c=r.lastIndex-a[2].length,h=a[1],r=a[3]===void 0?Be:a[3]==='"'?xi:yi):r===xi||r===yi?r=Be:r===mi||r===bi?r=ot:(r=Be,t=void 0);const d=r===Be&&s[u+1].startsWith("/>")?" ":"";o+=r===ot?m+Pr:c>=0?(i.push(h),m.slice(0,c)+Qi+m.slice(c)+Ie+d):m+Ie+(c===-2?u:d)}return[ts(s,o+(s[n]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),i]};class ft{constructor({strings:e,_$litType$:n},i){let t;this.parts=[];let o=0,r=0;const u=e.length-1,m=this.parts,[h,a]=Lr(e,n);if(this.el=ft.createElement(h,i),ze.currentNode=this.el.content,n===2||n===3){const c=this.el.content.firstChild;c.replaceWith(...c.childNodes)}for(;(t=ze.nextNode())!==null&&m.length<u;){if(t.nodeType===1){if(t.hasAttributes())for(const c of t.getAttributeNames())if(c.endsWith(Qi)){const l=a[r++],d=t.getAttribute(c).split(Ie),p=/([.?@])?(.*)/.exec(l);m.push({type:1,index:o,name:p[2],strings:d,ctor:p[1]==="."?Br:p[1]==="?"?jr:p[1]==="@"?zr:Lt}),t.removeAttribute(c)}else c.startsWith(Ie)&&(m.push({type:6,index:o}),t.removeAttribute(c));if(es.test(t.tagName)){const c=t.textContent.split(Ie),l=c.length-1;if(l>0){t.textContent=Pt?Pt.emptyScript:"";for(let d=0;d<l;d++)t.append(c[d],ht()),ze.nextNode(),m.push({type:2,index:++o});t.append(c[l],ht())}}}else if(t.nodeType===8)if(t.data===Yi)m.push({type:2,index:o});else{let c=-1;for(;(c=t.data.indexOf(Ie,c+1))!==-1;)m.push({type:7,index:o}),c+=Ie.length-1}o++}}static createElement(e,n){const i=Ue.createElement("template");return i.innerHTML=e,i}}function et(s,e,n=s,i){if(e===Ye)return e;let t=i!==void 0?n._$Co?.[i]:n._$Cl;const o=ut(e)?void 0:e._$litDirective$;return t?.constructor!==o&&(t?._$AO?.(!1),o===void 0?t=void 0:(t=new o(s),t._$AT(s,n,i)),i!==void 0?(n._$Co??=[])[i]=t:n._$Cl=t),t!==void 0&&(e=et(s,t._$AS(s,e.values),t,i)),e}class Dr{constructor(e,n){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=n}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){const{el:{content:n},parts:i}=this._$AD,t=(e?.creationScope??Ue).importNode(n,!0);ze.currentNode=t;let o=ze.nextNode(),r=0,u=0,m=i[0];for(;m!==void 0;){if(r===m.index){let h;m.type===2?h=new mt(o,o.nextSibling,this,e):m.type===1?h=new m.ctor(o,m.name,m.strings,this,e):m.type===6&&(h=new Ur(o,this,e)),this._$AV.push(h),m=i[++u]}r!==m?.index&&(o=ze.nextNode(),r++)}return ze.currentNode=Ue,t}p(e){let n=0;for(const i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(e,i,n),n+=i.strings.length-2):i._$AI(e[n])),n++}}class mt{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,n,i,t){this.type=2,this._$AH=ie,this._$AN=void 0,this._$AA=e,this._$AB=n,this._$AM=i,this.options=t,this._$Cv=t?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode;const n=this._$AM;return n!==void 0&&e?.nodeType===11&&(e=n.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,n=this){e=et(this,e,n),ut(e)?e===ie||e==null||e===""?(this._$AH!==ie&&this._$AR(),this._$AH=ie):e!==this._$AH&&e!==Ye&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):Mr(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==ie&&ut(this._$AH)?this._$AA.nextSibling.data=e:this.T(Ue.createTextNode(e)),this._$AH=e}$(e){const{values:n,_$litType$:i}=e,t=typeof i=="number"?this._$AC(e):(i.el===void 0&&(i.el=ft.createElement(ts(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===t)this._$AH.p(n);else{const o=new Dr(t,this),r=o.u(this.options);o.p(n),this.T(r),this._$AH=o}}_$AC(e){let n=wi.get(e.strings);return n===void 0&&wi.set(e.strings,n=new ft(e)),n}k(e){Ln(this._$AH)||(this._$AH=[],this._$AR());const n=this._$AH;let i,t=0;for(const o of e)t===n.length?n.push(i=new mt(this.O(ht()),this.O(ht()),this,this.options)):i=n[t],i._$AI(o),t++;t<n.length&&(this._$AR(i&&i._$AB.nextSibling,t),n.length=t)}_$AR(e=this._$AA.nextSibling,n){for(this._$AP?.(!1,!0,n);e!==this._$AB;){const i=e.nextSibling;e.remove(),e=i}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}}let Lt=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,n,i,t,o){this.type=1,this._$AH=ie,this._$AN=void 0,this.element=e,this.name=n,this._$AM=t,this.options=o,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=ie}_$AI(e,n=this,i,t){const o=this.strings;let r=!1;if(o===void 0)e=et(this,e,n,0),r=!ut(e)||e!==this._$AH&&e!==Ye,r&&(this._$AH=e);else{const u=e;let m,h;for(e=o[0],m=0;m<o.length-1;m++)h=et(this,u[i+m],n,m),h===Ye&&(h=this._$AH[m]),r||=!ut(h)||h!==this._$AH[m],h===ie?e=ie:e!==ie&&(e+=(h??"")+o[m+1]),this._$AH[m]=h}r&&!t&&this.j(e)}j(e){e===ie?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}};class Br extends Lt{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===ie?void 0:e}}let jr=class extends Lt{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==ie)}};class zr extends Lt{constructor(e,n,i,t,o){super(e,n,i,t,o),this.type=5}_$AI(e,n=this){if((e=et(this,e,n,0)??ie)===Ye)return;const i=this._$AH,t=e===ie&&i!==ie||e.capture!==i.capture||e.once!==i.once||e.passive!==i.passive,o=e!==ie&&(i===ie||t);t&&this.element.removeEventListener(this.name,this,i),o&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}}let Ur=class{constructor(e,n,i){this.element=e,this.type=6,this._$AN=void 0,this._$AM=n,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(e){et(this,e)}};const Fr=Tn.litHtmlPolyfillSupport;Fr?.(ft,mt),(Tn.litHtmlVersions??=[]).push("3.3.1");const ns=(s,e,n)=>{const i=n?.renderBefore??e;let t=i._$litPart$;if(t===void 0){const o=n?.renderBefore??null;i._$litPart$=t=new mt(e.insertBefore(ht(),o),o,void 0,n??{})}return t._$AI(s),t};const Dn=globalThis;let ue=class extends Qe{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const e=super.createRenderRoot();return this.renderOptions.renderBefore??=e.firstChild,e}update(e){const n=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=ns(n,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return Ye}};ue._$litElement$=!0,ue.finalized=!0,Dn.litElementHydrateSupport?.({LitElement:ue});const qr=Dn.litElementPolyfillSupport;qr?.({LitElement:ue});(Dn.litElementVersions??=[]).push("4.2.1");const Hr={attribute:!0,type:String,converter:Rt,reflect:!1,hasChanged:Mn},Wr=(s=Hr,e,n)=>{const{kind:i,metadata:t}=n;let o=globalThis.litPropertyMetadata.get(t);if(o===void 0&&globalThis.litPropertyMetadata.set(t,o=new Map),i==="setter"&&((s=Object.create(s)).wrapped=!0),o.set(n.name,s),i==="accessor"){const{name:r}=n;return{set(u){const m=e.get.call(this);e.set.call(this,u),this.requestUpdate(r,m,s)},init(u){return u!==void 0&&this.C(r,void 0,s,u),u}}}if(i==="setter"){const{name:r}=n;return function(u){const m=this[r];e.call(this,u),this.requestUpdate(r,m,s)}}throw Error("Unsupported decorator location: "+i)};function z(s){return(e,n)=>typeof n=="object"?Wr(s,e,n):((i,t,o)=>{const r=t.hasOwnProperty(o);return t.constructor.createProperty(o,i),r?Object.getOwnPropertyDescriptor(t,o):void 0})(s,e,n)}const is=s=>s??ie,Gr=":host{display:inline-block;font-size:13px;line-height:20px;font-family:Segoe UI,Lucida Sans,Arial,sans-serif;color:#111;contain:content}:host([hidden]){display:none!important}:host([level=warn i]){color:#555}:host([level=suggest i]){color:#bf8800}:host([level=error i]){color:#cc0017}:host([level=warn]){color:#555}:host([level=suggest]){color:#bf8800}:host([level=error]){color:#cc0017}.icon{height:12px;width:12px;padding-right:4px;margin-bottom:-1px}",Vr="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2012%2012'%3e%3cstyle%20id='style3'%3e%20.st0{fill:%23fff}.st1{fill:%23c00}%20%3c/style%3e%3cg%20id='g5'%3e%3cpath%20class='st1'%20d='M6%20.9c2.8%200%205.1%202.3%205.1%205.1S8.8%2011.1%206%2011.1.9%208.8.9%206%203.2.9%206%20.9m0-1C2.7-.1-.1%202.7-.1%206s2.7%206.1%206.1%206.1%206.1-2.7%206.1-6.1S9.3-.1%206-.1z'%20id='path9'/%3e%3c/g%3e%3cg%20id='g11'%3e%3cpath%20class='st0'%20id='rect13'%20d='M5.5%202.5h1v4h-1z'/%3e%3cpath%20class='st1'%20d='M6%203v3-3m1-1H5v5h2V2z'%20id='path15'/%3e%3c/g%3e%3cg%20id='g17'%3e%3cpath%20class='st0'%20id='rect19'%20d='M5.5%208.5h1v1h-1z'/%3e%3cpath%20class='st1'%20id='polygon21'%20d='M7%208H5v2h2V8z'/%3e%3c/g%3e%3c/svg%3e",Kr="data:image/svg+xml,%3csvg%20id='Ebene_1'%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3e%3cstyle%3e%20.st0{fill:%23bf8800}%20%3c/style%3e%3cpath%20class='st0'%20d='M12%20.8l11%2019.8v1.3H1v-1.3L12%20.8zm.8-.6h-1.6L0%2020v3h24v-3L12.8.2z'/%3e%3cpath%20class='st0'%20d='M11%208h2v8h-2zm0%2010h2v2h-2z'/%3e%3c/svg%3e",Zr="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2012%2012'%3e%3cpath%20class='st1'%20d='M6%20.9c2.8%200%205.1%202.3%205.1%205.1S8.8%2011.1%206%2011.1.9%208.8.9%206%203.2.9%206%20.9m0-1C2.7-.1-.1%202.7-.1%206s2.7%206.1%206.1%206.1%206.1-2.7%206.1-6.1S9.3-.1%206-.1z'%20fill='%23555'/%3e%3cpath%20d='M6%209V6v3m-1%201h2V5H5v5zm2-8H5v2h2z'%20class='st1'%20fill='%23555'/%3e%3c/svg%3e";var Jr=Object.defineProperty,Bn=(s,e,n,i)=>{for(var t=void 0,o=s.length-1,r;o>=0;o--)(r=s[o])&&(t=r(e,n,t)||t);return t&&Jr(e,n,t),t},Je;const pt=(Je=class extends ue{static parseLevel(s){if(s){const e=Object.keys(gt).find(n=>n.toLowerCase()===s.toLowerCase());return e&>[e]}}static get styles(){return[Fe`
|
|
398
|
+
${Re(Gr)}
|
|
399
|
+
`]}render(){return te`${this.iconToUse&&te`<img class="icon" src="${this.iconToUse}">`}${this.message}`}get iconToUse(){return this.icon||this._defaultIconPath}shouldUpdate(s){return s.has("level")&&(this._defaultIconPath=this.iconForLevel,!this.icon)?!0:super.shouldUpdate(s)}get iconForLevel(){switch(Je.parseLevel(this.level)){case"warn":return Zr;case"suggest":return Kr;case"error":return Vr;default:return null}}},Je.ID="sd-field-validation-message",Je.levelConverter={fromAttribute(s){return Je.parseLevel(s)},toAttribute(s){return s&&s.toLowerCase()}},Je);Bn([z({type:String,attribute:!0})],pt.prototype,"message");Bn([z({type:String,attribute:!0})],pt.prototype,"icon");Bn([z({converter:pt.levelConverter,reflect:!0})],pt.prototype,"level");let tn=pt;var gt=(s=>(s.Warn="warn",s.Suggest="suggest",s.Error="error",s))(gt||{});customElements.get(tn.ID)||customElements.define(tn.ID,tn);const Xr=`:host{display:block}:host,.label,.checkbox{outline:none}.checkbox-container{display:flex;flex-direction:row;align-items:flex-start}.checkbox{appearance:none;-moz-appearance:none;-webkit-appearance:none;display:block;margin:0;width:20px;height:20px;border:2px solid #767676;cursor:pointer;background-color:#fff}:host(:not([disabled]):focus) .highlight,:host(:not([disabled])[focused]) .highlight{background-color:#1467ba4d;border-radius:4px}:host(:not([disabled]):focus) .highlight .checkbox,:host(:not([disabled])[focused]) .highlight .checkbox{border-color:#1467ba}:host([checked]) .checkbox{background:#1467ba url("data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='15'%20height='15'%20viewBox='0%200%2020%2020'%3e%3cpath%20d='M15.9%204.6L17.4%206l-9.5%209.5-5.2-5.2%201.4-1.4%203.8%203.8%208-8.1z'%20fill='%23fff'/%3e%3c/svg%3e") no-repeat center center;border-color:#1467ba}.checkbox.indeterminate{background:#1467ba url("data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='32'%20height='32'%3e%3cpath%20fill='%23fff'%20d='M8%2014h16v4H8z'/%3e%3c/svg%3e") no-repeat center center;background-size:20px;border-color:#1467ba}.highlight{border:4px solid transparent;margin-right:6px}:host([disabled]) .checkbox-container{opacity:.6;cursor:default;filter:grayscale(100%);pointer-events:none}.validation-message{margin-left:4px}.label{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;margin-top:4px;line-height:20px}:host([oneline]) .label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}`;var Qr=Object.defineProperty,Yr=Object.getOwnPropertyDescriptor,ke=(s,e,n,i)=>{for(var t=i>1?void 0:i?Yr(e,n):e,o=s.length-1,r;o>=0;o--)(r=s[o])&&(t=(i?r(e,n,t):r(t))||t);return i&&t&&Qr(e,n,t),t};const eo="indeterminate",nn="delegatesFocus"in window.ShadowRoot.prototype;var $e;const ve=($e=class extends ue{constructor(){super(...arguments),this._checked=!1,this._indeterminate=!1}get checked(){return this._checked}set checked(s){const e=this._checked;this._checked=s,this._checked&&(this.indeterminate=!1),this.requestUpdate("checked",e)}get indeterminate(){return this._indeterminate}set indeterminate(s){const e=this._indeterminate;this._indeterminate=s,this._indeterminate&&(this.checked=!1),this.requestUpdate("indeterminate",e)}firstUpdated(s){super.firstUpdated(s),nn||(this.checkboxElement.onfocus=()=>this.setAttribute("focused",""),this.checkboxElement.onblur=()=>this.removeAttribute("focused"),this.addEventListener("focus",e=>{e.target===this&&this.checkboxElement.focus()}))}focus(){this.checkboxElement?this.checkboxElement.focus():super.focus()}attributeChangedCallback(s,e,n){super.attributeChangedCallback(s,e,n),!nn&&s==="tabindex"&&e!==n&&n==="0"&&this.removeAttribute("tabindex")}render(){return te`
|
|
400
400
|
<div class="checkbox-container">
|
|
401
401
|
<div class="highlight">
|
|
402
402
|
<input
|
|
403
403
|
type="checkbox"
|
|
404
404
|
id="input"
|
|
405
405
|
?disabled=${this.disabled}
|
|
406
|
-
tabindex=${
|
|
406
|
+
tabindex=${is(this.tabIndex==null?void 0:this.tabIndex)}
|
|
407
407
|
.checked=${this.checked}
|
|
408
408
|
.indeterminate=${this.indeterminate}
|
|
409
|
-
class="checkbox${this.indeterminate?" "+
|
|
409
|
+
class="checkbox${this.indeterminate?" "+eo:""}"
|
|
410
410
|
@change="${this.onInputValueChange}"
|
|
411
411
|
/>
|
|
412
412
|
</div>
|
|
413
413
|
<label class="label" for="input">${this.label}</label>
|
|
414
414
|
</div>
|
|
415
|
-
${this.validationMessage&&
|
|
415
|
+
${this.validationMessage&&te`
|
|
416
416
|
<sd-field-validation-message
|
|
417
417
|
class="validation-message"
|
|
418
418
|
.message=${this.validationMessage}
|
|
@@ -421,11 +421,11 @@ export class Server {
|
|
|
421
421
|
>
|
|
422
422
|
</sd-field-validation-message>
|
|
423
423
|
`}
|
|
424
|
-
`}onInputValueChange(
|
|
425
|
-
${
|
|
426
|
-
`]}}
|
|
427
|
-
${
|
|
428
|
-
`]}render(){return
|
|
424
|
+
`}onInputValueChange(s){s.preventDefault(),s.stopPropagation(),this.checked=s.target.checked,this.fireValueChange()}fireValueChange(){this.dispatchEvent(new CustomEvent("value-change",{detail:{value:this.checked}}))}get checkboxElement(){return this.shadowRoot.querySelector(".checkbox")}static get styles(){return[Fe`
|
|
425
|
+
${Re(Xr)}
|
|
426
|
+
`]}},$e.ID="sd-checkbox",$e.ensureDefined=()=>{customElements.get($e.ID)||customElements.define($e.ID,$e)},$e.shadowRootOptions={...ue.shadowRootOptions,delegatesFocus:nn},$e);ke([z({type:Boolean,reflect:!0})],ve.prototype,"disabled",2);ke([z({type:String,reflect:!0})],ve.prototype,"label",2);ke([z({type:String})],ve.prototype,"validationMessage",2);ke([z({type:String})],ve.prototype,"validationIconSrc",2);ke([z({type:gt,reflect:!0})],ve.prototype,"validationLevel",2);ke([z({type:Number})],ve.prototype,"tabIndex",2);ke([z({type:Boolean,reflect:!0})],ve.prototype,"oneLine",2);ke([z({type:Boolean,reflect:!0})],ve.prototype,"checked",1);ke([z({type:Boolean,reflect:!1,attribute:!1})],ve.prototype,"indeterminate",1);let ss=ve;ss.ensureDefined();const to=":host{display:block}:host,.label,.checkbox{outline:none}:host([disabled]){pointer-events:none}:host([disabled]) .root{opacity:.6;cursor:default;filter:grayscale(100%)}:host(:not([disabled])[focused]) .highlight{display:block!important}:host([checked]) circle.inner{display:block!important}:host([checked]) circle.outer{stroke:var(--sd-radio-button-checked-color, #1467ba)!important}:host([oneline]) .label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.root{display:inline-flex;align-items:center;vertical-align:middle;width:100%;padding-top:6px;padding-bottom:6px}.root .radio-button-container{position:relative;display:inline-block;width:28px;height:28px;box-sizing:border-box;cursor:pointer;margin-right:5px;flex-shrink:0}.root .radio-button-container input{position:absolute;top:0;left:0;opacity:0}.root .radio-button-container circle.highlight{stroke:var(--sd-radio-button-highlight-color, rgba(20, 103, 186, .3))}.root .radio-button-container circle.inner{fill:var(--sd-radio-button-checked-color, #1467ba)}.root .radio-button-container circle.outer{stroke:var(--sd-radio-button-unchecked-color, #767676)}.root .label{font-family:Segoe UI,Lucida Sans,Arial,sans-serif;text-overflow:ellipsis;overflow-x:hidden;-webkit-user-select:none;user-select:none;cursor:pointer;padding-top:2px;padding-bottom:2px}";var no=Object.defineProperty,Dt=(s,e,n,i)=>{for(var t=void 0,o=s.length-1,r;o>=0;o--)(r=s[o])&&(t=r(e,n,t)||t);return t&&no(e,n,t),t};let io=0;var Oe;const bt=(Oe=class extends ue{constructor(){super(),this.checked=!1,this.value="",this.disabled=!1,this.label="",this.handleClick=s=>{s.preventDefault()},this.a11yID=Oe.ID+"_"+io++}static get styles(){return[Fe`
|
|
427
|
+
${Re(to)}
|
|
428
|
+
`]}render(){return te`
|
|
429
429
|
<div class="root">
|
|
430
430
|
<div class="radio-button-container">
|
|
431
431
|
<input
|
|
@@ -450,16 +450,16 @@ export class Server {
|
|
|
450
450
|
</div>
|
|
451
451
|
<label class="label" for="${this.a11yID}" @click="${this.handleClick}">${this.label}</label>
|
|
452
452
|
</div>
|
|
453
|
-
`}},
|
|
454
|
-
${
|
|
455
|
-
`]}render(){return
|
|
453
|
+
`}},Oe.ID="sd-radio-button",Oe.ensureDefined=()=>{customElements.get(Oe.ID)||customElements.define(Oe.ID,Oe)},Oe);Dt([z({type:Boolean,reflect:!0,attribute:!0})],bt.prototype,"checked");Dt([z({type:String,reflect:!0,attribute:!0})],bt.prototype,"value");Dt([z({type:Boolean,reflect:!0,attribute:!0})],bt.prototype,"disabled");Dt([z({type:String,reflect:!0,attribute:!0})],bt.prototype,"label");let rs=bt;const so=":host(:focus){outline:none}.buttons-container{display:flex}.buttons-container.vertical{flex-direction:column}.validation-message{margin-left:5px}";var ro=Object.defineProperty,qe=(s,e,n,i)=>{for(var t=void 0,o=s.length-1,r;o>=0;o--)(r=s[o])&&(t=r(e,n,t)||t);return t&&ro(e,n,t),t},je;const Pe=(je=class extends ue{constructor(){super(...arguments),this.layout="horizontal",this.value="",this.uncheckAllowed=!1,this.disabled=!1,this._focusIndex=-1,this._checkedButton=null,this.handleSlotChange=()=>{this._buttons=this.buttonsSlot.assignedElements(),this._buttons.forEach(s=>{!s.hasAttribute("disabled")&&this.disabled&&s.setAttribute("disabled",""),s.setAttribute("tabIndex","-1"),this.updateCheckedButton(s)})},this.handleFocusIn=s=>{const e=s.target,n=this._buttons.findIndex(i=>i==e);this.focusIndex=this.focusIndex>=0?this.focusIndex:this.getNextFocusIndex(n!==-1?n:0),this.updateFocused(null,this._buttons[this.focusIndex])},this.handleFocusOut=()=>{this.updateFocused(this._buttons[this.focusIndex])},this.handleButtonClick=s=>{this.focus();const e=this._buttons.find(i=>i.contains(s.target)),n=this._buttons.findIndex(i=>i==e);n>=0&&(this.focusIndex=n,this.updateChecked())},this.handleKeyDown=s=>{let e=!0;switch(s.key){case"Down":case"ArrowDown":{const n=this.getNextFocusIndex(this.focusIndex+1);this.focusIndex=n!==-1?n:this.getNextFocusIndex(0),this.uncheckAllowed||this.updateChecked();break}case"Up":case"ArrowUp":{const n=this.getPreviousFocusIndex(this.focusIndex-1);this.focusIndex=n!==-1?n:this.getPreviousFocusIndex(this.childElementCount-1),this.uncheckAllowed||this.updateChecked();break}case"Enter":{this.updateChecked();break}default:e=!1}e&&(s.preventDefault(),s.stopPropagation())}}get focusIndex(){return this._focusIndex}set focusIndex(s){if(s>=-1&&s<this.childElementCount){const e=this._focusIndex;if(this._focusIndex=s,e!==s){const n=this._buttons[e],i=this._buttons[this.focusIndex];this.updateFocused(n,i)}}}firstUpdated(s){super.firstUpdated(s),this.buttonsSlot.addEventListener("slotchange",this.handleSlotChange),this.addEventListener("focusin",this.handleFocusIn),this.addEventListener("focusout",this.handleFocusOut),this.addEventListener("keydown",this.handleKeyDown)}updated(s){super.updated(s),s.has("disabled")&&(this.disabled?this.disableButtons():this.enableButtons())}static get styles(){return[Fe`
|
|
454
|
+
${Re(so)}
|
|
455
|
+
`]}render(){return te`
|
|
456
456
|
<div
|
|
457
457
|
class="buttons-container ${this.layout==="vertical"?"vertical":"horizontal"}"
|
|
458
|
-
@click="${
|
|
458
|
+
@click="${is(this.disabled?void 0:this.handleButtonClick)}"
|
|
459
459
|
>
|
|
460
460
|
<slot></slot>
|
|
461
461
|
</div>
|
|
462
|
-
${this.validationMessage&&
|
|
462
|
+
${this.validationMessage&&te`
|
|
463
463
|
<sd-field-validation-message
|
|
464
464
|
class="validation-message"
|
|
465
465
|
.message=${this.validationMessage}
|
|
@@ -468,13 +468,13 @@ export class Server {
|
|
|
468
468
|
>
|
|
469
469
|
</sd-field-validation-message>
|
|
470
470
|
`}
|
|
471
|
-
`}updateCheckedButton(
|
|
472
|
-
${
|
|
473
|
-
`]}render(){const e=this.childCount>0||this.children.length>0;return
|
|
474
|
-
<li class="node" style="margin-left: ${this.depth*
|
|
475
|
-
${e?
|
|
476
|
-
${this.readonly?
|
|
477
|
-
${this.type==="checkbox"?
|
|
471
|
+
`}updateCheckedButton(s){if(this._checkedButton&&this._checkedButton!==s)this.uncheckButton(s);else if(s.hasAttribute("checked")){this._checkedButton=s;const e=s.getAttribute("value");this.updateValue(e)}}disableButtons(){this._buttons?.forEach(s=>{s.setAttribute("disabled","")})}enableButtons(){this._buttons?.forEach(s=>{s.removeAttribute("disabled")})}fireValueChangeEvent(){this.dispatchEvent(new CustomEvent("value-change",{detail:{value:this.value,selectedIndex:this.selectedIndex}}))}getNextFocusIndex(s){for(let e=s;e<this.childElementCount;e++){const n=this._buttons[e];if(this.isFocusable(n))return e}return-1}getPreviousFocusIndex(s){for(let e=s;e>=0;e--){const n=this._buttons[e];if(this.isFocusable(n))return e}return-1}isFocusable(s){return!s.hasAttribute("disabled")}updateChecked(){const s=this._checkedButton,e=this._buttons[this.focusIndex];this._checkedButton=e,s&&s!==e&&this.uncheckButton(s),e&&this.toggleButton(e)}toggleButton(s){s.hasAttribute("checked")?this.uncheckAllowed&&(this.uncheckButton(s),this._checkedButton=null,this.updateValue("")):(this.checkButton(s),this.updateValue(s.getAttribute("value")))}updateValue(s){this.value=s,this.fireValueChangeEvent()}updateFocused(s,e){s?.removeAttribute?.("focused"),e?.setAttribute?.("focused","")}checkButton(s){s.setAttribute("checked","")}uncheckButton(s){s.removeAttribute("checked")}get buttonsSlot(){return this.shadowRoot&&!this._buttonsSlot&&(this._buttonsSlot=this.shadowRoot.querySelector("slot")),this._buttonsSlot}get selectedIndex(){return this._buttons.indexOf(this._checkedButton)}},je.ID="sd-radio-button-group",je.ensureDefined=()=>{rs.ensureDefined(),customElements.get(je.ID)||customElements.define(je.ID,je)},je);qe([z({type:String,reflect:!0,attribute:!0})],Pe.prototype,"layout");qe([z({type:String})],Pe.prototype,"value");qe([z({type:Boolean,reflect:!0,attribute:"uncheck-allowed"})],Pe.prototype,"uncheckAllowed");qe([z({type:Boolean,reflect:!0,attribute:!0})],Pe.prototype,"disabled");qe([z({type:String})],Pe.prototype,"validationMessage");qe([z({type:String})],Pe.prototype,"validationIconSrc");qe([z({type:{fromAttribute(s){return s&>[s.toLowerCase()]},toAttribute(s){return s&&s.toLowerCase()}},reflect:!0})],Pe.prototype,"validationLevel");let oo=Pe;oo.ensureDefined();const os=16,Xe=35;class as{constructor(e,n,i,t){this.id=e,this.text=n,this.path=i,this.nodes=t,this.depth=0,this.selectionState="unchecked",this.expanded=!1,this.parentSelectionAllowed=!1,this.lastLoadingChild=!1,this.loading=!1,this.disabled=!1,this.parent=[],i?(this.depth=i.length-1,this.parent=i.slice(0,-1)):this.path=[e],this.childCount=t?t.length:0}updateSelectionStateOfChildren(){this.nodes.forEach(e=>{if(this.selectionState==="checked"){if(e.childrenType==="radio"||lo(e))return;e.selectionState="checked"}else this.selectionState==="unchecked"&&(e.selectionState="unchecked");e.updateSelectionStateOfChildren()})}updateParent(){const e=this.parentNode;return e&&(!this.parentSelectionAllowed||this.selectionState!=="unchecked"||e.disabled)&&(e.updateSelectionStateByChildren(),e.updateParent()),e}get parentNode(){return this.parent.length?this.nodeGetter(this.parent):null}check(){this.selectionState!=="checked"&&(this.selectionState="checked",this.updateBranch())}uncheck(){this.selectionState!=="unchecked"&&(this.selectionState="unchecked",this.updateBranch())}hasRadioButtonDescendant(){if(this.childrenType==="radio")return!0;for(const e of this.nodes)if(e.hasRadioButtonDescendant())return!0}}const ao=s=>s?.type==="checkbox",lo=s=>s?.type==="radio";class co extends as{constructor(e,n,i,t){super(e,n,i,t),this.type="checkbox"}toggle(){this.selectionState==="checked"?this.selectionState="unchecked":this.selectionState="checked",this.updateBranch()}updateBranch(){(!this.parentSelectionAllowed||this.selectionState==="unchecked")&&(this.updateSelectionStateOfChildren(),this.updateSelectionStateByChildren()),this.updateParent()}updateSelectionStateByChildren(){if(this.nodes.length===0)return;const e=this.nodes.map(i=>i.selectionState==="checked"||i.selectionState==="indeterminate"),n=e.some(Boolean);if(this.parentSelectionAllowed)this.selectionState=n?"checked":"unchecked";else{const i=e.every(Boolean),t=this.nodes.map(o=>o.selectionState).some(o=>o==="indeterminate");this.childrenType==="radio"?this.selectionState=n?"checked":"unchecked":t?this.selectionState="indeterminate":i?this.selectionState="checked":n?this.selectionState="indeterminate":this.selectionState="unchecked"}}getFlattenedSubtree(e){return e.reduce((n,i)=>n.concat(ao(i)&&i.childCount>0&&i.expanded?[i,...this.getFlattenedSubtree(i.nodes)]:i),[])}}class jn extends as{constructor(e,n,i,t){super(e,n,i,t),this.type="radio"}toggle(){this.selectionState==="checked"?this.selectionState="unchecked":(this.selectionState="checked",this.clearSiblings()),this.updateBranch()}check(){this.selectionState!=="checked"&&(this.selectionState="checked",this.clearSiblings(),this.updateBranch())}updateBranch(){this.selectionState==="unchecked"&&this.updateSelectionStateOfChildren(),this.updateParent()}updateParent(){const e=super.updateParent();return e instanceof jn&&e.clearSiblings(),e}updateSelectionStateByChildren(){if(this.nodes.length===0)return;this.nodes.map(n=>n.selectionState==="checked").some(Boolean)?this.selectionState="checked":this.selectionState="unchecked"}clearSiblings(){this.getSiblings().forEach(n=>{n.uncheck()})}}const ho=`:host{width:100%;display:block;contain:layout;position:absolute}:host([readonly][focused]){background-color:#1467ba4d}.node{height:35px;display:flex;align-items:center}.node .expander,.node .placeholder{height:28px;width:30px;flex-shrink:0}.node .expander{cursor:pointer;background-position:center;background-size:24px;flex:0 0 auto}.node .expander.more{background-image:url("data:image/svg+xml,%3csvg%20height='32'%20viewBox='0%200%2032%2032'%20width='32'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='m15%2021%209.5-9.5%209.5%209.5'%20fill='none'%20stroke='%23999'%20stroke-linecap='square'%20stroke-width='2'%20transform='matrix(0%201%20-1%200%2032.25%20-8.25)'/%3e%3c/svg%3e")}.node .expander.less{background-image:url("data:image/svg+xml,%3csvg%20height='32'%20viewBox='0%200%2032%2032'%20width='32'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='m19.75%206.75%209.5%209.5-9.5%209.5'%20fill='none'%20stroke='%23999'%20stroke-linecap='square'%20stroke-width='2'%20transform='matrix(0%201%20-1%200%2032.25%20-8.25)'/%3e%3c/svg%3e")}.node .label{outline:none}.node .input{overflow:hidden}.node ul{list-style-type:none;margin:0;padding:0}`;var uo=Object.defineProperty,fe=(s,e,n,i)=>{for(var t=void 0,o=s.length-1,r;o>=0;o--)(r=s[o])&&(t=r(e,n,t)||t);return t&&uo(e,n,t),t},ye;const ce=(ye=class extends ue{constructor(){super(...arguments),this.text="",this.expanded=!1,this.childCount=0,this.focused=!1,this.readonly=!1,this.depth=0,this.path=[],this.type="checkbox",this.selectionState="unchecked",this.disabled=!1,this.loading=!1,this.onSelectionChange=()=>{if(!this.readonly){if(this.type=="checkbox"){const e=this.shadowRoot.querySelector(".input");this.selectionState=e.checked?"checked":e.indeterminate?"indeterminate":"unchecked"}else{const e=this.shadowRoot.querySelector(".input");this.selectionState=e.checked?"checked":"unchecked"}this.updateComplete.then(()=>{this.dispatchEvent(new CustomEvent("selection",{detail:{path:this.path,checked:this.selectionState==="checked",indeterminate:this.selectionState==="indeterminate"},bubbles:!0,composed:!0}))})}}}static get styles(){return[Fe`
|
|
472
|
+
${Re(ho)}
|
|
473
|
+
`]}render(){const e=this.childCount>0||this.children.length>0;return te`
|
|
474
|
+
<li class="node" style="margin-left: ${this.depth*os}px">
|
|
475
|
+
${e?te` <div class="expander ${this.expanded?"less":"more"}" @click="${this.toggle}"></div> `:te` <div class="placeholder"></div> `}
|
|
476
|
+
${this.readonly?te` <div class="label">${this.text}</div> `:te`
|
|
477
|
+
${this.type==="checkbox"?te`
|
|
478
478
|
<sd-checkbox
|
|
479
479
|
class="input"
|
|
480
480
|
tabIndex="-1"
|
|
@@ -486,7 +486,7 @@ export class Server {
|
|
|
486
486
|
@value-change="${this.onSelectionChange}"
|
|
487
487
|
oneline
|
|
488
488
|
></sd-checkbox>
|
|
489
|
-
`:
|
|
489
|
+
`:te`
|
|
490
490
|
<sd-radio-button
|
|
491
491
|
class="input"
|
|
492
492
|
tabIndex="-1"
|
|
@@ -499,34 +499,34 @@ export class Server {
|
|
|
499
499
|
></sd-radio-button>
|
|
500
500
|
`}
|
|
501
501
|
`}
|
|
502
|
-
${e&&this.expanded?
|
|
502
|
+
${e&&this.expanded?te`
|
|
503
503
|
<ul>
|
|
504
504
|
<slot></slot>
|
|
505
505
|
</ul>
|
|
506
506
|
`:""}
|
|
507
507
|
</li>
|
|
508
|
-
`}toggle(){this.loading||(this.expanded=!this.expanded,this.dispatchExpansionEvent())}expand(){if(!this.loading){const e=!this.expanded;this.expanded=!0,e&&this.dispatchExpansionEvent()}}collapse(){if(!this.loading){const e=this.expanded;this.expanded=!1,e&&this.dispatchExpansionEvent()}}getState(e){
|
|
509
|
-
${
|
|
510
|
-
`]}render(){return
|
|
511
|
-
<li class="root" style="margin-left: ${this.depth*
|
|
508
|
+
`}toggle(){this.loading||(this.expanded=!this.expanded,this.dispatchExpansionEvent())}expand(){if(!this.loading){const e=!this.expanded;this.expanded=!0,e&&this.dispatchExpansionEvent()}}collapse(){if(!this.loading){const e=this.expanded;this.expanded=!1,e&&this.dispatchExpansionEvent()}}getState(e){const n=Array.isArray(e)?[...e,this.nodeId]:[this.nodeId],i=[...this.children].map(o=>o.getState(n));let t;return this.type==="checkbox"?t=new co(this.nodeId,this.text,n,i):t=new jn(this.nodeId,this.text,n,i),t.selectionState=this.selectionState,t.childrenType=i[0]?.type,t.expanded=this.expanded,t.disabled=this.disabled,t}dispatchExpansionEvent(){this.dispatchEvent(new CustomEvent("expansion",{detail:{path:this.path,expanded:this.expanded},bubbles:!0,composed:!0}))}},ye.ID="sd-tree-node",ye.ensureDefined=()=>{rs.ensureDefined(),ss.ensureDefined(),customElements.get(ye.ID)||customElements.define(ye.ID,ye)},ye);fe([z({type:String,reflect:!0,attribute:!0})],ce.prototype,"text");fe([z({type:Boolean,reflect:!0,attribute:!0})],ce.prototype,"expanded");fe([z({type:String,reflect:!0,attribute:"node-id"})],ce.prototype,"nodeId");fe([z({type:Number,reflect:!0,attribute:"child-count"})],ce.prototype,"childCount");fe([z({type:Boolean,reflect:!0,attribute:!0})],ce.prototype,"focused");fe([z({type:Boolean,reflect:!0,attribute:!0})],ce.prototype,"readonly");fe([z({type:Number})],ce.prototype,"depth");fe([z({type:Array,attribute:!1})],ce.prototype,"path");fe([z({type:String,reflect:!0,attribute:!0})],ce.prototype,"type");fe([z({type:String,reflect:!0,attribute:"selection-state"})],ce.prototype,"selectionState");fe([z({type:Boolean,reflect:!0,attribute:!0})],ce.prototype,"disabled");fe([z({type:Boolean,reflect:!0,attribute:!0})],ce.prototype,"loading");let fo=ce;const po=":host{position:absolute;width:100%}:host([readonly]) li{padding-left:30px}li{height:35px;padding-left:34px}.text{vertical-align:middle;line-height:35px;font-family:Segoe UI,Lucida Sans,Arial,sans-serif;color:#111;font-size:16px}";var go=Object.defineProperty,ls=(s,e,n,i)=>{for(var t=void 0,o=s.length-1,r;o>=0;o--)(r=s[o])&&(t=r(e,n,t)||t);return t&&go(e,n,t),t},xe;const zn=(xe=class extends ue{constructor(){super(...arguments),this.readonly=!1,this.depth=0}static get styles(){return[Fe`
|
|
509
|
+
${Re(po)}
|
|
510
|
+
`]}render(){return te`
|
|
511
|
+
<li class="root" style="margin-left: ${this.depth*os}px;">
|
|
512
512
|
<div class="text">
|
|
513
513
|
<slot>Loading...</slot>
|
|
514
514
|
</div>
|
|
515
515
|
</li>
|
|
516
|
-
`}},
|
|
517
|
-
${
|
|
518
|
-
`]}firstUpdated(e){super.firstUpdated(e),this.addEventListener("scroll",this.onScroll),this.addEventListener("keydown",this.handleKeyDown),this.addEventListener("expansion",this.handleNodeExpansion),this.addEventListener("selection",this.handleNodeSelection),this.addEventListener("focus",()=>{this.focusIndex==-1&&(this.focusIndex=this.normalizeIndex(0))}),this._nodeStates.size===0&&(this.children.length>0?this.syncState():this.requestData())}updated(e){super.updated(e),this.updateNodes(),e.has("parentSelectionAllowed")&&this.updateParentSelectionAllowed()}render(){return this.updateRenderData(),
|
|
519
|
-
<div class="root" style="height: ${this._allNodeCount*
|
|
516
|
+
`}},xe.ID="sd-tree-loading-indicator",xe.ensureDefined=()=>{customElements.get(xe.ID)||customElements.define(xe.ID,xe)},xe);ls([z({type:Boolean,reflect:!0,attribute:!0})],zn.prototype,"readonly");ls([z({type:Number})],zn.prototype,"depth");let mo=zn;const It=(s,e=1,n=0)=>e>0?s.reduce((i,t)=>i.concat(t.childCount>0&&t.expanded?[t,...It(t.nodes,e-1,n+1)]:t),[]):s.slice(),bo=(s,e,n=0)=>{if(!e)return null;const i=e[n],t=s.find(o=>o.id===i);return e.length-1===n?t:t?.nodes.length>0?bo(t.nodes,e,n+1):null},yo=(s,e,n,i,t,o)=>{const r=Math.max(0,o*i),u=Math.min(r,s*i),m=Math.max(0,s*i-t+i);switch(e){case"start":return u;case"end":return m;case"center":{const h=Math.round(m+(u-m)/2);return h<Math.ceil(t/2)?0:h>r+Math.floor(t/2)?r:h}case"auto":default:return n>=m&&n<=u?n:n<m?m:u}},at=(s,e)=>s.findIndex(n=>typeof n=="string"&&n===JSON.stringify(e)),Se=s=>typeof s=="string",xo=":host{display:block;position:relative;contain:layout;overflow:auto}:host(:focus){outline:none}ul{list-style-type:none;margin:0;padding:0}.root{width:100%}";var wo=Object.defineProperty,vo=Object.getOwnPropertyDescriptor,yt=(s,e,n,i)=>{for(var t=i>1?void 0:i?vo(e,n):e,o=s.length-1,r;o>=0;o--)(r=s[o])&&(t=(i?r(e,n,t):r(t))||t);return i&&t&&wo(e,n,t),t},we;const tt=(we=class extends ue{constructor(){super(),this.pageSize=50,this.loadingText="Loading...",this.parentSelectionAllowed=!1,this.readonly=!1,this._lastKnownHeight=0,this._lastKnownScrollTop=0,this._lastRenderedScrollTop=0,this._visibleItemsNum=0,this._firstVisibleIndex=0,this._lastVisibleIndex=0,this._firstRenderedIndex=0,this._lastRenderedIndex=0,this._focusIndex=-1,this._flattenedNodes=[],this._rootItemsLoading=!1,this._rootNodeCount=0,this._loadedRootNodeCount=0,this._allNodeCount=0,this._nodeStates=new Map,this.onScroll=()=>{this._lastKnownScrollTop=this.scrollTop;const e=this._lastRenderedScrollTop-this._lastKnownScrollTop;Math.abs(e)>=Xe&&(this._lastRenderedScrollTop=this._lastKnownScrollTop,this.requestUpdate())},this.handleNodeExpansion=e=>{const{path:n,expanded:i}=e.detail;this.updateAfterExpansion(n,i)},this.handleKeyDown=e=>{let n=!0;switch(e.key){case"ArrowDown":{this.focusIndex=this.normalizeIndex(this.focusIndex+1);break}case"ArrowUp":{this.focusIndex=this.normalizeIndex(this.focusIndex-1);break}case"ArrowRight":{const i=this.focusedNode;if(i)if(i.childCount>0&&!i.expanded){const t=this.querySelector(`[node-id='${i.id}']`);t&&t.expand()}else this.focusIndex=this.normalizeIndex(this.focusIndex+1);break}case"ArrowLeft":{const i=this.focusedNode;if(i)if(i.childCount>0&&i.expanded){const t=this.querySelector(`[node-id='${i.id}']`);t&&t.collapse()}else this.focusIndex=this.normalizeIndex(this.focusIndex-1);break}case"Enter":{const i=this.focusedNode;i&&(this.toggleSelection(i.path),this.updateComplete.then(()=>{this.dispatchEvent(new CustomEvent("selection",{detail:{path:i.path,checked:i.selectionState==="checked",indeterminate:i.selectionState==="indeterminate"},bubbles:!0,composed:!0}))}));break}default:{n=!1;break}}n&&(e.preventDefault(),e.stopPropagation())},this.handleNodeSelection=e=>{if(e.target==this)return;this._reusePreviousRenderData=!0;const{path:n}=e.detail;this.focusIndex=at(this._flattenedNodes,n),this.focus(),this.toggleSelection(n),this.updateComplete.then(()=>{this._reusePreviousRenderData=!1})},this.getFlattenedNodeId=e=>JSON.stringify(e.path),this.nodeGetter=e=>e?this._nodeStates.get(JSON.stringify(e)):null,this._resizeObserver=new ResizeObserver(()=>{this._lastKnownHeight!==this.offsetHeight&&(this._lastKnownHeight=this.offsetHeight,this.requestUpdate())})}get rootNodeCount(){return this._rootNodeCount}set rootNodeCount(e){e===0?this._allNodeCount=0:e>0&&(this._allNodeCount+=e-this.rootNodeCount),this._rootNodeCount=e,this.requestUpdate()}get focusIndex(){return this._focusIndex}set focusIndex(e){if(e>=-1&&e<this._allNodeCount){const n=this._focusIndex;this._focusIndex=e,(e<=this._firstVisibleIndex||this._lastVisibleIndex<=e)&&this.scrollToNode(e),n!=e&&this.requestUpdate("focusIndex",n)}}setNodes(e){this.stopLoadingIndicator(),this.setLastLoadingChildren(e,this.rootNodeCount,e.length),e.forEach((n,i)=>{const t=[...e];t.splice(i,1),this.updateNodeMap(n,t)}),this.updateCount(e),this._loadedRootNodeCount=e.length,this._flattenedNodes=It(e,1/0).map(this.getFlattenedNodeId),this.requestUpdate()}addNodes(e,n){this.stopLoadingIndicator(n),e.forEach((t,o)=>{const r=[...e];r.splice(o,1),this.updateNodeMap(t,r)});const i=this.nodeGetter(n);i?i.expanded&&(this._allNodeCount+=e.length+this.getNodeCount(e)):this._loadedRootNodeCount+=e.length,this.updateFlattenedNodes(e,n),this.requestUpdate()}connectedCallback(){super.connectedCallback(),this._resizeObserver.observe(this)}disconnectedCallback(){super.disconnectedCallback(),this._resizeObserver.disconnect()}static get styles(){return[Fe`
|
|
517
|
+
${Re(xo)}
|
|
518
|
+
`]}firstUpdated(e){super.firstUpdated(e),this.addEventListener("scroll",this.onScroll),this.addEventListener("keydown",this.handleKeyDown),this.addEventListener("expansion",this.handleNodeExpansion),this.addEventListener("selection",this.handleNodeSelection),this.addEventListener("focus",()=>{this.focusIndex==-1&&this.matches(":focus-visible")&&(this.focusIndex=this.normalizeIndex(0))}),this._nodeStates.size===0&&(this.children.length>0?this.syncState():this.requestData())}updated(e){super.updated(e),this.updateNodes(),e.has("parentSelectionAllowed")&&this.updateParentSelectionAllowed()}render(){return this.updateRenderData(),te`
|
|
519
|
+
<div class="root" style="height: ${this._allNodeCount*Xe}px">
|
|
520
520
|
<ul>
|
|
521
521
|
<slot></slot>
|
|
522
522
|
</ul>
|
|
523
523
|
</div>
|
|
524
|
-
`}scrollToNode(e,
|
|
525
|
-
${e.map((
|
|
526
|
-
<sd-tree-loading-indicator .depth="${
|
|
524
|
+
`}scrollToNode(e,n="auto"){this.scrollTop=yo(this.normalizeIndex(e),n,this.scrollTop,Xe,this.height,this._allNodeCount)}updateNodeMap(e,n){e&&(e.nodeGetter=this.nodeGetter,e.getSiblings=()=>n,this._nodeStates.set(JSON.stringify(e.path),e),e.nodes.forEach((i,t)=>{const o=[...e.nodes];o.splice(t,1),this.updateNodeMap(i,o)}))}updateParentSelectionAllowed(){this._nodeStates.forEach(e=>{e.parentSelectionAllowed=this.parentSelectionAllowed})}updateNodes(){const e=this._flattenedNodes.slice(this._firstRenderedIndex,this._lastRenderedIndex+1);ns(te`
|
|
525
|
+
${e.map((n,i)=>{const t=i+this._firstRenderedIndex,o=this.getTopPosition(t);if(!Se(n))return te`
|
|
526
|
+
<sd-tree-loading-indicator .depth="${n.depth}" style="transform: translateY(${o}px)"
|
|
527
527
|
>${this.loadingText}</sd-tree-loading-indicator
|
|
528
528
|
>
|
|
529
|
-
`;const r=this._nodeStates.get(
|
|
529
|
+
`;const r=this._nodeStates.get(n),u=t===this.focusIndex;let m=r.disabled;return this.parentSelectionAllowed||(m=m||r.hasRadioButtonDescendant()),te`
|
|
530
530
|
<sd-tree-node
|
|
531
531
|
text="${r.text}"
|
|
532
532
|
selection-state="${r.selectionState}"
|
|
@@ -534,44 +534,47 @@ export class Server {
|
|
|
534
534
|
.depth="${r.depth}"
|
|
535
535
|
style="transform: translateY(${o}px);"
|
|
536
536
|
.path="${r.path}"
|
|
537
|
-
?focused="${
|
|
537
|
+
?focused="${u}"
|
|
538
538
|
?readonly="${this.readonly}"
|
|
539
539
|
type="${r.type}"
|
|
540
540
|
?expanded="${r.expanded}"
|
|
541
541
|
child-count="${r.childCount}"
|
|
542
|
-
?disabled="${
|
|
542
|
+
?disabled="${m}"
|
|
543
543
|
.loading="${r.loading}"
|
|
544
544
|
></sd-tree-node>
|
|
545
545
|
`})}
|
|
546
|
-
`,this)}getTopPosition(e){return e*
|
|
547
|
-
`+
|
|
548
|
-
|
|
546
|
+
`,this)}getTopPosition(e){return e*Xe}updateRenderData(){if(!this._reusePreviousRenderData)if(this._lastRenderedScrollTop=this.scrollTop,this._visibleItemsNum=Math.min(Math.ceil(this.height/Xe),this._allNodeCount),this._visibleItemsNum>0){this._firstVisibleIndex=this.normalizeIndex(Math.floor(this._lastRenderedScrollTop/Xe)),this._lastVisibleIndex=this.normalizeIndex(this._firstVisibleIndex+this._visibleItemsNum),this._firstRenderedIndex=this.normalizeIndex(this._firstVisibleIndex-2),this._lastRenderedIndex=this.normalizeIndex(this._lastVisibleIndex+2);for(const e of this._flattenedNodes.slice(this._firstRenderedIndex,this._lastRenderedIndex+1)){const n=Se(e)&&this._nodeStates.get(e);if(n){if(n.lastLoadingChild){const i=n.parentNode;if(i){if(this.needsFurtherData(i)){this.requestData(i);break}}else if(this._loadedRootNodeCount<this.rootNodeCount&&!this._rootItemsLoading){this.requestData();break}}else if(this.needsFurtherData(n)){this.requestData(n);break}}}}else this._firstVisibleIndex=0,this._lastVisibleIndex=0,this._firstRenderedIndex=0,this._lastRenderedIndex=0}needsFurtherData(e){return e.expanded&&e.childCount>e.nodes.length&&this.nodeIndex(e.id)+e.nodes.length<this._lastRenderedIndex}nodeIndex(e){return this._flattenedNodes.findIndex(n=>n===e)}normalizeIndex(e){return Math.max(0,Math.min(e,this._allNodeCount-1))}get height(){return this.offsetHeight}requestData(e){if(!e?.loading){const n=e?.path;this.startLoadingIndicator(n),this.dispatchEvent(new CustomEvent("data-request",{detail:{path:n}}))}}updateAfterExpansion(e,n){const i=this._nodeStates.get(JSON.stringify(e));if(i){i.expanded=n;const t=at(this._flattenedNodes,e),o=this._flattenedNodes[this.focusIndex];if(n){const r=this.addSubtree(i,t+1),u=i.childCount>i.nodes.length,m=t+i.nodes.length<this._lastRenderedIndex;u&&m&&this.requestData(i),this._allNodeCount+=r}else{const r=this.removeSubtree(t);this._allNodeCount-=r}if(o){const r=this._flattenedNodes.findIndex(u=>u==o);r!==this.focusIndex&&(this._focusIndex=r)}}this.requestUpdate()}addSubtree(e,n){const i=this.getFlattenedSubtree(e.nodes);return this._flattenedNodes.splice(n,0,...i),i.length}getFlattenedSubtree(e){return e.reduce((n,i)=>n.concat(i&&i.childCount>0&&i.expanded?[JSON.stringify(i.path),...this.getFlattenedSubtree(i.nodes)]:JSON.stringify(i.path)),[])}removeSubtree(e){const n=this.getNextNonDescendantIndex(e);let i=0;return n!==-1?(i=n-e-1,this._flattenedNodes.splice(e+1,i)):(i=this._flattenedNodes.length-e-1,this._flattenedNodes.splice(e+1)),i}getNextNonDescendantIndex(e){const n=this._flattenedNodes[e],i=Se(n)&&this._nodeStates.get(n);if(i)for(let t=e+1;t<this._flattenedNodes.length;t++){const o=this._flattenedNodes[t],r=Se(o)&&this._nodeStates.get(o);if(r&&r.path.length<=i.path.length)return t}return-1}get focusedNode(){const e=this._flattenedNodes[this.focusIndex];return Se(e)&&this._nodeStates.get(e)}toggleSelection(e){this.nodeGetter(e).toggle(),this.requestUpdate()}updateFlattenedNodes(e,n){if(n){const i=at(this._flattenedNodes,n),t=this._flattenedNodes[i];if(Se(t)){const o=this._nodeStates.get(t);if(o){const r=i+o.nodes.length+1,u=o.depth,m=It(e,1/0,u+1).map(this.getFlattenedNodeId);o.expanded&&this._flattenedNodes.splice(r,0,...m),o.nodes=[...o.nodes,...e],o.loading=!1,this.updateLastLoadingChild(o.nodes,m)}}}else{const i=It(e,1/0).map(this.getFlattenedNodeId);this.updateLastLoadingChild(this._flattenedNodes,i),this._flattenedNodes=[...this._flattenedNodes,...i]}}updateLastLoadingChild(e,n){const i=e[e.length-1],t=Se(i)&&this._nodeStates.get(i),o=n[n.length-1],r=Se(o)&&this._nodeStates.get(o);if(t&&(t.lastLoadingChild=!1),r){const u=r.parentNode;(u&&u.childCount>u.nodes.length||!u&&this.rootNodeCount>this._loadedRootNodeCount)&&(r.lastLoadingChild=!0)}}setLastLoadingChildren(e,n,i){if(i<n){const t=e[e.length-1];t&&(t.lastLoadingChild=!0)}e.forEach(t=>{this.setLastLoadingChildren(t.nodes,t.childCount,t.nodes.length)})}startLoadingIndicator(e){if(e){const n=this._nodeStates.get(JSON.stringify(e));if(n){const i=at(this._flattenedNodes,e);n.loading=!0,this.addPlaceholders(i,n)}}else this._rootItemsLoading=!0,this._flattenedNodes=[...this._flattenedNodes,...new Array(this.rootNodeCount-this._loadedRootNodeCount).fill({depth:0})];this.updateNodes()}addPlaceholders(e,n){const i=e+n.nodes.length+1,t=n.childCount-n.nodes.length;this._flattenedNodes.splice(i,0,...new Array(t).fill({depth:n.depth+1}))}stopLoadingIndicator(e){if(e){const n=this._nodeStates.get(JSON.stringify(e));if(n&&(n.loading=!1,n.expanded)){const i=at(this._flattenedNodes,e);this.removePlaceHolders(i,n)}}else{this._rootItemsLoading=!1;const n=this._flattenedNodes.findIndex(i=>!Se(i));this._flattenedNodes.splice(n)}}removePlaceHolders(e,n){const i=e+n.nodes.length+1,t=n.childCount-n.nodes.length;this._flattenedNodes.splice(i,t)}syncState(){const n=[...this.children].map(i=>i.getState());this.addNodes(n),this.rootNodeCount=n.length,this.innerHTML=""}updateCount(e){this._allNodeCount=e.length+this.getNodeCount(e)}getNodeCount(e){let n=0;return e.forEach(i=>{i.expanded&&(n+=i.childCount+this.getNodeCount(i.nodes))}),n}},we.ID="sd-tree",we.ensureDefined=()=>{fo.ensureDefined(),mo.ensureDefined(),customElements.get(we.ID)||customElements.define(we.ID,we)},we);yt([z({type:String})],tt.prototype,"loadingText",2);yt([z({type:Boolean,reflect:!0,attribute:"parent-selection-allowed"})],tt.prototype,"parentSelectionAllowed",2);yt([z({type:Boolean,reflect:!0,attribute:!0})],tt.prototype,"readonly",2);yt([z({type:Number})],tt.prototype,"rootNodeCount",1);yt([z({type:Number,attribute:"focus-index",reflect:!0})],tt.prototype,"focusIndex",1);let _o=tt;_o.ensureDefined();function ds(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}function So(s){if(Object.prototype.hasOwnProperty.call(s,"__esModule"))return s;var e=s.default;if(typeof e=="function"){var n=function i(){var t=!1;try{t=this instanceof i}catch{}return t?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(s).forEach(function(i){var t=Object.getOwnPropertyDescriptor(s,i);Object.defineProperty(n,i,t.get?t:{enumerable:!0,get:function(){return s[i]}})}),n}var Nt={exports:{}},vi;function ko(){if(vi)return Nt.exports;vi=1;var s=String,e=function(){return{isColorSupported:!1,reset:s,bold:s,dim:s,italic:s,underline:s,inverse:s,hidden:s,strikethrough:s,black:s,red:s,green:s,yellow:s,blue:s,magenta:s,cyan:s,white:s,gray:s,bgBlack:s,bgRed:s,bgGreen:s,bgYellow:s,bgBlue:s,bgMagenta:s,bgCyan:s,bgWhite:s,blackBright:s,redBright:s,greenBright:s,yellowBright:s,blueBright:s,magentaBright:s,cyanBright:s,whiteBright:s,bgBlackBright:s,bgRedBright:s,bgGreenBright:s,bgYellowBright:s,bgBlueBright:s,bgMagentaBright:s,bgCyanBright:s,bgWhiteBright:s}};return Nt.exports=e(),Nt.exports.createColors=e,Nt.exports}const Eo={},Co=Object.freeze(Object.defineProperty({__proto__:null,default:Eo},Symbol.toStringTag,{value:"Module"})),pe=So(Co);var sn,_i;function Un(){if(_i)return sn;_i=1;let s=ko(),e=pe;class n extends Error{constructor(t,o,r,u,m,h){super(t),this.name="CssSyntaxError",this.reason=t,m&&(this.file=m),u&&(this.source=u),h&&(this.plugin=h),typeof o<"u"&&typeof r<"u"&&(typeof o=="number"?(this.line=o,this.column=r):(this.line=o.line,this.column=o.column,this.endLine=r.line,this.endColumn=r.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,n)}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(t){if(!this.source)return"";let o=this.source;t==null&&(t=s.isColorSupported);let r=d=>d,u=d=>d,m=d=>d;if(t){let{bold:d,gray:p,red:g}=s.createColors(!0);u=b=>d(g(b)),r=b=>p(b),e&&(m=b=>e(b))}let h=o.split(/\r?\n/),a=Math.max(this.line-3,0),c=Math.min(this.line+2,h.length),l=String(c).length;return h.slice(a,c).map((d,p)=>{let g=a+1+p,b=" "+(" "+g).slice(-l)+" | ";if(g===this.line){if(d.length>160){let S=20,w=Math.max(0,this.column-S),x=Math.max(this.column+S,this.endColumn+S),y=d.slice(w,x),k=r(b.replace(/\d/g," "))+d.slice(0,Math.min(this.column-1,S-1)).replace(/[^\t]/g," ");return u(">")+r(b)+m(y)+`
|
|
547
|
+
`+k+u("^")}let _=r(b.replace(/\d/g," "))+d.slice(0,this.column-1).replace(/[^\t]/g," ");return u(">")+r(b)+m(d)+`
|
|
548
|
+
`+_+u("^")}return" "+r(b)+m(d)}).join(`
|
|
549
|
+
`)}toString(){let t=this.showSourceCode();return t&&(t=`
|
|
549
550
|
|
|
550
|
-
`+
|
|
551
|
-
`),this.name+": "+this.message+
|
|
551
|
+
`+t+`
|
|
552
|
+
`),this.name+": "+this.message+t}}return sn=n,n.default=n,sn}var rn,Si;function cs(){if(Si)return rn;Si=1;const s={after:`
|
|
552
553
|
`,beforeClose:`
|
|
553
554
|
`,beforeComment:`
|
|
554
555
|
`,beforeDecl:`
|
|
555
556
|
`,beforeOpen:" ",beforeRule:`
|
|
556
|
-
`,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function
|
|
557
|
-
`)){let
|
|
558
|
-
`)&&(
|
|
559
|
-
`)&&(
|
|
560
|
-
`)&&(
|
|
561
|
-
`)&&(
|
|
562
|
-
`);return
|
|
563
|
-
`?(
|
|
564
|
-
`);n=new Array(o.length);let r=0;for(let l=0,a=o.length;l<a;l++)n[l]=r,r+=o[l].length+1;this[ln]=n}t=n[n.length-1];let s=0;if(e>=t)s=n.length-1;else{let o=n.length-2,r;for(;s<o;)if(r=s+(o-s>>1),e<n[r])o=r-1;else if(e>=n[r+1])s=r+1;else{s=r;break}}return{col:e-n[s]+1,line:s+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:wn(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,t,n,s){if(!this.map)return!1;let o=this.map.consumer(),r=o.originalPositionFor({column:t,line:e});if(!r.source)return!1;let l;typeof n=="number"&&(l=o.originalPositionFor({column:s,line:n}));let a;vn(r.source)?a=ut(r.source):a=new URL(r.source,this.map.consumer().sourceRoot||ut(this.map.mapFile));let d={column:r.column,endColumn:l&&l.column,endLine:l&&l.line,line:r.line,url:a.toString()};if(a.protocol==="file:")if(mi)d.file=mi(a);else throw new Error("file: protocol is not available in this PostCSS build");let c=o.sourceContentFor(r.source);return c&&(d.source=c),d}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 jt=At;At.default=At;on&&on.registerInput&&on.registerInput(At);let{SourceMapConsumer:es,SourceMapGenerator:Et}=H,{dirname:kt,relative:ts,resolve:ns,sep:is}=H,{pathToFileURL:xi}=H,Vo=jt,qo=!!(es&&Et),Go=!!(kt&&ns&&ts&&is),Ko=class{constructor(e,t,n,s){this.stringify=e,this.mapOpts=n.map||{},this.root=t,this.opts=n,this.css=s,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=`
|
|
557
|
+
`,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function e(i){return i[0].toUpperCase()+i.slice(1)}class n{constructor(t){this.builder=t}atrule(t,o){let r="@"+t.name,u=t.params?this.rawValue(t,"params"):"";if(typeof t.raws.afterName<"u"?r+=t.raws.afterName:u&&(r+=" "),t.nodes)this.block(t,r+u);else{let m=(t.raws.between||"")+(o?";":"");this.builder(r+u+m,t)}}beforeAfter(t,o){let r;t.type==="decl"?r=this.raw(t,null,"beforeDecl"):t.type==="comment"?r=this.raw(t,null,"beforeComment"):o==="before"?r=this.raw(t,null,"beforeRule"):r=this.raw(t,null,"beforeClose");let u=t.parent,m=0;for(;u&&u.type!=="root";)m+=1,u=u.parent;if(r.includes(`
|
|
558
|
+
`)){let h=this.raw(t,null,"indent");if(h.length)for(let a=0;a<m;a++)r+=h}return r}block(t,o){let r=this.raw(t,"between","beforeOpen");this.builder(o+r+"{",t,"start");let u;t.nodes&&t.nodes.length?(this.body(t),u=this.raw(t,"after")):u=this.raw(t,"after","emptyBody"),u&&this.builder(u),this.builder("}",t,"end")}body(t){let o=t.nodes.length-1;for(;o>0&&t.nodes[o].type==="comment";)o-=1;let r=this.raw(t,"semicolon");for(let u=0;u<t.nodes.length;u++){let m=t.nodes[u],h=this.raw(m,"before");h&&this.builder(h),this.stringify(m,o!==u||r)}}comment(t){let o=this.raw(t,"left","commentLeft"),r=this.raw(t,"right","commentRight");this.builder("/*"+o+t.text+r+"*/",t)}decl(t,o){let r=this.raw(t,"between","colon"),u=t.prop+r+this.rawValue(t,"value");t.important&&(u+=t.raws.important||" !important"),o&&(u+=";"),this.builder(u,t)}document(t){this.body(t)}raw(t,o,r){let u;if(r||(r=o),o&&(u=t.raws[o],typeof u<"u"))return u;let m=t.parent;if(r==="before"&&(!m||m.type==="root"&&m.first===t||m&&m.type==="document"))return"";if(!m)return s[r];let h=t.root();if(h.rawCache||(h.rawCache={}),typeof h.rawCache[r]<"u")return h.rawCache[r];if(r==="before"||r==="after")return this.beforeAfter(t,r);{let a="raw"+e(r);this[a]?u=this[a](h,t):h.walk(c=>{if(u=c.raws[o],typeof u<"u")return!1})}return typeof u>"u"&&(u=s[r]),h.rawCache[r]=u,u}rawBeforeClose(t){let o;return t.walk(r=>{if(r.nodes&&r.nodes.length>0&&typeof r.raws.after<"u")return o=r.raws.after,o.includes(`
|
|
559
|
+
`)&&(o=o.replace(/[^\n]+$/,"")),!1}),o&&(o=o.replace(/\S/g,"")),o}rawBeforeComment(t,o){let r;return t.walkComments(u=>{if(typeof u.raws.before<"u")return r=u.raws.before,r.includes(`
|
|
560
|
+
`)&&(r=r.replace(/[^\n]+$/,"")),!1}),typeof r>"u"?r=this.raw(o,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeDecl(t,o){let r;return t.walkDecls(u=>{if(typeof u.raws.before<"u")return r=u.raws.before,r.includes(`
|
|
561
|
+
`)&&(r=r.replace(/[^\n]+$/,"")),!1}),typeof r>"u"?r=this.raw(o,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeOpen(t){let o;return t.walk(r=>{if(r.type!=="decl"&&(o=r.raws.between,typeof o<"u"))return!1}),o}rawBeforeRule(t){let o;return t.walk(r=>{if(r.nodes&&(r.parent!==t||t.first!==r)&&typeof r.raws.before<"u")return o=r.raws.before,o.includes(`
|
|
562
|
+
`)&&(o=o.replace(/[^\n]+$/,"")),!1}),o&&(o=o.replace(/\S/g,"")),o}rawColon(t){let o;return t.walkDecls(r=>{if(typeof r.raws.between<"u")return o=r.raws.between.replace(/[^\s:]/g,""),!1}),o}rawEmptyBody(t){let o;return t.walk(r=>{if(r.nodes&&r.nodes.length===0&&(o=r.raws.after,typeof o<"u"))return!1}),o}rawIndent(t){if(t.raws.indent)return t.raws.indent;let o;return t.walk(r=>{let u=r.parent;if(u&&u!==t&&u.parent&&u.parent===t&&typeof r.raws.before<"u"){let m=r.raws.before.split(`
|
|
563
|
+
`);return o=m[m.length-1],o=o.replace(/\S/g,""),!1}}),o}rawSemicolon(t){let o;return t.walk(r=>{if(r.nodes&&r.nodes.length&&r.last.type==="decl"&&(o=r.raws.semicolon,typeof o<"u"))return!1}),o}rawValue(t,o){let r=t[o],u=t.raws[o];return u&&u.value===r?u.raw:r}root(t){this.body(t),t.raws.after&&this.builder(t.raws.after)}rule(t){this.block(t,this.rawValue(t,"selector")),t.raws.ownSemicolon&&this.builder(t.raws.ownSemicolon,t,"end")}stringify(t,o){if(!this[t.type])throw new Error("Unknown AST node type "+t.type+". Maybe you need to change PostCSS stringifier.");this[t.type](t,o)}}return rn=n,n.default=n,rn}var on,ki;function Bt(){if(ki)return on;ki=1;let s=cs();function e(n,i){new s(i).stringify(n)}return on=e,e.default=e,on}var At={},Ei;function Fn(){return Ei||(Ei=1,At.isClean=Symbol("isClean"),At.my=Symbol("my")),At}var an,Ci;function jt(){if(Ci)return an;Ci=1;let s=Un(),e=cs(),n=Bt(),{isClean:i,my:t}=Fn();function o(m,h){let a=new m.constructor;for(let c in m){if(!Object.prototype.hasOwnProperty.call(m,c)||c==="proxyCache")continue;let l=m[c],d=typeof l;c==="parent"&&d==="object"?h&&(a[c]=h):c==="source"?a[c]=l:Array.isArray(l)?a[c]=l.map(p=>o(p,a)):(d==="object"&&l!==null&&(l=o(l)),a[c]=l)}return a}function r(m,h){if(h&&typeof h.offset<"u")return h.offset;let a=1,c=1,l=0;for(let d=0;d<m.length;d++){if(c===h.line&&a===h.column){l=d;break}m[d]===`
|
|
564
|
+
`?(a=1,c+=1):a+=1}return l}class u{get proxyOf(){return this}constructor(h={}){this.raws={},this[i]=!1,this[t]=!0;for(let a in h)if(a==="nodes"){this.nodes=[];for(let c of h[a])typeof c.clone=="function"?this.append(c.clone()):this.append(c)}else this[a]=h[a]}addToError(h){if(h.postcssNode=this,h.stack&&this.source&&/\n\s{4}at /.test(h.stack)){let a=this.source;h.stack=h.stack.replace(/\n\s{4}at /,`$&${a.input.from}:${a.start.line}:${a.start.column}$&`)}return h}after(h){return this.parent.insertAfter(this,h),this}assign(h={}){for(let a in h)this[a]=h[a];return this}before(h){return this.parent.insertBefore(this,h),this}cleanRaws(h){delete this.raws.before,delete this.raws.after,h||delete this.raws.between}clone(h={}){let a=o(this);for(let c in h)a[c]=h[c];return a}cloneAfter(h={}){let a=this.clone(h);return this.parent.insertAfter(this,a),a}cloneBefore(h={}){let a=this.clone(h);return this.parent.insertBefore(this,a),a}error(h,a={}){if(this.source){let{end:c,start:l}=this.rangeBy(a);return this.source.input.error(h,{column:l.column,line:l.line},{column:c.column,line:c.line},a)}return new s(h)}getProxyProcessor(){return{get(h,a){return a==="proxyOf"?h:a==="root"?()=>h.root().toProxy():h[a]},set(h,a,c){return h[a]===c||(h[a]=c,(a==="prop"||a==="value"||a==="name"||a==="params"||a==="important"||a==="text")&&h.markDirty()),!0}}}markClean(){this[i]=!0}markDirty(){if(this[i]){this[i]=!1;let h=this;for(;h=h.parent;)h[i]=!1}}next(){if(!this.parent)return;let h=this.parent.index(this);return this.parent.nodes[h+1]}positionBy(h={}){let a=this.source.start;if(h.index)a=this.positionInside(h.index);else if(h.word){let c="document"in this.source.input?this.source.input.document:this.source.input.css,d=c.slice(r(c,this.source.start),r(c,this.source.end)).indexOf(h.word);d!==-1&&(a=this.positionInside(d))}return a}positionInside(h){let a=this.source.start.column,c=this.source.start.line,l="document"in this.source.input?this.source.input.document:this.source.input.css,d=r(l,this.source.start),p=d+h;for(let g=d;g<p;g++)l[g]===`
|
|
565
|
+
`?(a=1,c+=1):a+=1;return{column:a,line:c,offset:p}}prev(){if(!this.parent)return;let h=this.parent.index(this);return this.parent.nodes[h-1]}rangeBy(h={}){let a="document"in this.source.input?this.source.input.document:this.source.input.css,c={column:this.source.start.column,line:this.source.start.line,offset:r(a,this.source.start)},l=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:r(a,this.source.end)+1}:{column:c.column+1,line:c.line,offset:c.offset+1};if(h.word){let p=a.slice(r(a,this.source.start),r(a,this.source.end)).indexOf(h.word);p!==-1&&(c=this.positionInside(p),l=this.positionInside(p+h.word.length))}else h.start?c={column:h.start.column,line:h.start.line,offset:r(a,h.start)}:h.index&&(c=this.positionInside(h.index)),h.end?l={column:h.end.column,line:h.end.line,offset:r(a,h.end)}:typeof h.endIndex=="number"?l=this.positionInside(h.endIndex):h.index&&(l=this.positionInside(h.index+1));return(l.line<c.line||l.line===c.line&&l.column<=c.column)&&(l={column:c.column+1,line:c.line,offset:c.offset+1}),{end:l,start:c}}raw(h,a){return new e().raw(this,h,a)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...h){if(this.parent){let a=this,c=!1;for(let l of h)l===this?c=!0:c?(this.parent.insertAfter(a,l),a=l):this.parent.insertBefore(a,l);c||this.remove()}return this}root(){let h=this;for(;h.parent&&h.parent.type!=="document";)h=h.parent;return h}toJSON(h,a){let c={},l=a==null;a=a||new Map;let d=0;for(let p in this){if(!Object.prototype.hasOwnProperty.call(this,p)||p==="parent"||p==="proxyCache")continue;let g=this[p];if(Array.isArray(g))c[p]=g.map(b=>typeof b=="object"&&b.toJSON?b.toJSON(null,a):b);else if(typeof g=="object"&&g.toJSON)c[p]=g.toJSON(null,a);else if(p==="source"){if(g==null)continue;let b=a.get(g.input);b==null&&(b=d,a.set(g.input,d),d++),c[p]={end:g.end,inputId:b,start:g.start}}else c[p]=g}return l&&(c.inputs=[...a.keys()].map(p=>p.toJSON())),c}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(h=n){h.stringify&&(h=h.stringify);let a="";return h(this,c=>{a+=c}),a}warn(h,a,c={}){let l={node:this};for(let d in c)l[d]=c[d];return h.warn(a,l)}}return an=u,u.default=u,an}var ln,Ni;function zt(){if(Ni)return ln;Ni=1;let s=jt();class e extends s{constructor(i){super(i),this.type="comment"}}return ln=e,e.default=e,ln}var dn,Ai;function Ut(){if(Ai)return dn;Ai=1;let s=jt();class e extends s{get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}constructor(i){i&&typeof i.value<"u"&&typeof i.value!="string"&&(i={...i,value:String(i.value)}),super(i),this.type="decl"}}return dn=e,e.default=e,dn}var cn,$i;function He(){if($i)return cn;$i=1;let s=zt(),e=Ut(),n=jt(),{isClean:i,my:t}=Fn(),o,r,u,m;function h(l){return l.map(d=>(d.nodes&&(d.nodes=h(d.nodes)),delete d.source,d))}function a(l){if(l[i]=!1,l.proxyOf.nodes)for(let d of l.proxyOf.nodes)a(d)}class c extends n{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(...d){for(let p of d){let g=this.normalize(p,this.last);for(let b of g)this.proxyOf.nodes.push(b)}return this.markDirty(),this}cleanRaws(d){if(super.cleanRaws(d),this.nodes)for(let p of this.nodes)p.cleanRaws(d)}each(d){if(!this.proxyOf.nodes)return;let p=this.getIterator(),g,b;for(;this.indexes[p]<this.proxyOf.nodes.length&&(g=this.indexes[p],b=d(this.proxyOf.nodes[g],g),b!==!1);)this.indexes[p]+=1;return delete this.indexes[p],b}every(d){return this.nodes.every(d)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let d=this.lastEach;return this.indexes[d]=0,d}getProxyProcessor(){return{get(d,p){return p==="proxyOf"?d:d[p]?p==="each"||typeof p=="string"&&p.startsWith("walk")?(...g)=>d[p](...g.map(b=>typeof b=="function"?(_,S)=>b(_.toProxy(),S):b)):p==="every"||p==="some"?g=>d[p]((b,..._)=>g(b.toProxy(),..._)):p==="root"?()=>d.root().toProxy():p==="nodes"?d.nodes.map(g=>g.toProxy()):p==="first"||p==="last"?d[p].toProxy():d[p]:d[p]},set(d,p,g){return d[p]===g||(d[p]=g,(p==="name"||p==="params"||p==="selector")&&d.markDirty()),!0}}}index(d){return typeof d=="number"?d:(d.proxyOf&&(d=d.proxyOf),this.proxyOf.nodes.indexOf(d))}insertAfter(d,p){let g=this.index(d),b=this.normalize(p,this.proxyOf.nodes[g]).reverse();g=this.index(d);for(let S of b)this.proxyOf.nodes.splice(g+1,0,S);let _;for(let S in this.indexes)_=this.indexes[S],g<_&&(this.indexes[S]=_+b.length);return this.markDirty(),this}insertBefore(d,p){let g=this.index(d),b=g===0?"prepend":!1,_=this.normalize(p,this.proxyOf.nodes[g],b).reverse();g=this.index(d);for(let w of _)this.proxyOf.nodes.splice(g,0,w);let S;for(let w in this.indexes)S=this.indexes[w],g<=S&&(this.indexes[w]=S+_.length);return this.markDirty(),this}normalize(d,p){if(typeof d=="string")d=h(r(d).nodes);else if(typeof d>"u")d=[];else if(Array.isArray(d)){d=d.slice(0);for(let b of d)b.parent&&b.parent.removeChild(b,"ignore")}else if(d.type==="root"&&this.type!=="document"){d=d.nodes.slice(0);for(let b of d)b.parent&&b.parent.removeChild(b,"ignore")}else if(d.type)d=[d];else if(d.prop){if(typeof d.value>"u")throw new Error("Value field is missed in node creation");typeof d.value!="string"&&(d.value=String(d.value)),d=[new e(d)]}else if(d.selector||d.selectors)d=[new m(d)];else if(d.name)d=[new o(d)];else if(d.text)d=[new s(d)];else throw new Error("Unknown node type in node creation");return d.map(b=>(b[t]||c.rebuild(b),b=b.proxyOf,b.parent&&b.parent.removeChild(b),b[i]&&a(b),b.raws||(b.raws={}),typeof b.raws.before>"u"&&p&&typeof p.raws.before<"u"&&(b.raws.before=p.raws.before.replace(/\S/g,"")),b.parent=this.proxyOf,b))}prepend(...d){d=d.reverse();for(let p of d){let g=this.normalize(p,this.first,"prepend").reverse();for(let b of g)this.proxyOf.nodes.unshift(b);for(let b in this.indexes)this.indexes[b]=this.indexes[b]+g.length}return this.markDirty(),this}push(d){return d.parent=this,this.proxyOf.nodes.push(d),this}removeAll(){for(let d of this.proxyOf.nodes)d.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(d){d=this.index(d),this.proxyOf.nodes[d].parent=void 0,this.proxyOf.nodes.splice(d,1);let p;for(let g in this.indexes)p=this.indexes[g],p>=d&&(this.indexes[g]=p-1);return this.markDirty(),this}replaceValues(d,p,g){return g||(g=p,p={}),this.walkDecls(b=>{p.props&&!p.props.includes(b.prop)||p.fast&&!b.value.includes(p.fast)||(b.value=b.value.replace(d,g))}),this.markDirty(),this}some(d){return this.nodes.some(d)}walk(d){return this.each((p,g)=>{let b;try{b=d(p,g)}catch(_){throw p.addToError(_)}return b!==!1&&p.walk&&(b=p.walk(d)),b})}walkAtRules(d,p){return p?d instanceof RegExp?this.walk((g,b)=>{if(g.type==="atrule"&&d.test(g.name))return p(g,b)}):this.walk((g,b)=>{if(g.type==="atrule"&&g.name===d)return p(g,b)}):(p=d,this.walk((g,b)=>{if(g.type==="atrule")return p(g,b)}))}walkComments(d){return this.walk((p,g)=>{if(p.type==="comment")return d(p,g)})}walkDecls(d,p){return p?d instanceof RegExp?this.walk((g,b)=>{if(g.type==="decl"&&d.test(g.prop))return p(g,b)}):this.walk((g,b)=>{if(g.type==="decl"&&g.prop===d)return p(g,b)}):(p=d,this.walk((g,b)=>{if(g.type==="decl")return p(g,b)}))}walkRules(d,p){return p?d instanceof RegExp?this.walk((g,b)=>{if(g.type==="rule"&&d.test(g.selector))return p(g,b)}):this.walk((g,b)=>{if(g.type==="rule"&&g.selector===d)return p(g,b)}):(p=d,this.walk((g,b)=>{if(g.type==="rule")return p(g,b)}))}}return c.registerParse=l=>{r=l},c.registerRule=l=>{m=l},c.registerAtRule=l=>{o=l},c.registerRoot=l=>{u=l},cn=c,c.default=c,c.rebuild=l=>{l.type==="atrule"?Object.setPrototypeOf(l,o.prototype):l.type==="rule"?Object.setPrototypeOf(l,m.prototype):l.type==="decl"?Object.setPrototypeOf(l,e.prototype):l.type==="comment"?Object.setPrototypeOf(l,s.prototype):l.type==="root"&&Object.setPrototypeOf(l,u.prototype),l[t]=!0,l.nodes&&l.nodes.forEach(d=>{c.rebuild(d)})},cn}var hn,Oi;function qn(){if(Oi)return hn;Oi=1;let s=He();class e extends s{constructor(i){super(i),this.type="atrule"}append(...i){return this.proxyOf.nodes||(this.nodes=[]),super.append(...i)}prepend(...i){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...i)}}return hn=e,e.default=e,s.registerAtRule(e),hn}var un,Ii;function Hn(){if(Ii)return un;Ii=1;let s=He(),e,n;class i extends s{constructor(o){super({type:"document",...o}),this.nodes||(this.nodes=[])}toResult(o={}){return new e(new n,this,o).stringify()}}return i.registerLazyResult=t=>{e=t},i.registerProcessor=t=>{n=t},un=i,i.default=i,un}var fn,Ri;function No(){if(Ri)return fn;Ri=1;let s="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";return fn={nanoid:(i=21)=>{let t="",o=i|0;for(;o--;)t+=s[Math.random()*64|0];return t},customAlphabet:(i,t=21)=>(o=t)=>{let r="",u=o|0;for(;u--;)r+=i[Math.random()*i.length|0];return r}},fn}var pn,Pi;function hs(){if(Pi)return pn;Pi=1;let{existsSync:s,readFileSync:e}=pe,{dirname:n,join:i}=pe,{SourceMapConsumer:t,SourceMapGenerator:o}=pe;function r(m){return Buffer?Buffer.from(m,"base64").toString():window.atob(m)}class u{constructor(h,a){if(a.map===!1)return;this.loadAnnotation(h),this.inline=this.startWith(this.annotation,"data:");let c=a.map?a.map.prev:void 0,l=this.loadMap(a.from,c);!this.mapFile&&a.from&&(this.mapFile=a.from),this.mapFile&&(this.root=n(this.mapFile)),l&&(this.text=l)}consumer(){return this.consumerCache||(this.consumerCache=new t(this.text)),this.consumerCache}decodeInline(h){let a=/^data:application\/json;charset=utf-?8;base64,/,c=/^data:application\/json;base64,/,l=/^data:application\/json;charset=utf-?8,/,d=/^data:application\/json,/,p=h.match(l)||h.match(d);if(p)return decodeURIComponent(h.substr(p[0].length));let g=h.match(a)||h.match(c);if(g)return r(h.substr(g[0].length));let b=h.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+b)}getAnnotationURL(h){return h.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(h){return typeof h!="object"?!1:typeof h.mappings=="string"||typeof h._mappings=="string"||Array.isArray(h.sections)}loadAnnotation(h){let a=h.match(/\/\*\s*# sourceMappingURL=/g);if(!a)return;let c=h.lastIndexOf(a.pop()),l=h.indexOf("*/",c);c>-1&&l>-1&&(this.annotation=this.getAnnotationURL(h.substring(c,l)))}loadFile(h){if(this.root=n(h),s(h))return this.mapFile=h,e(h,"utf-8").toString().trim()}loadMap(h,a){if(a===!1)return!1;if(a){if(typeof a=="string")return a;if(typeof a=="function"){let c=a(h);if(c){let l=this.loadFile(c);if(!l)throw new Error("Unable to load previous source map: "+c.toString());return l}}else{if(a instanceof t)return o.fromSourceMap(a).toString();if(a instanceof o)return a.toString();if(this.isMap(a))return JSON.stringify(a);throw new Error("Unsupported previous source map format: "+a.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let c=this.annotation;return h&&(c=i(n(h),c)),this.loadFile(c)}}}startWith(h,a){return h?h.substr(0,a.length)===a:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}return pn=u,u.default=u,pn}var gn,Mi;function Ft(){if(Mi)return gn;Mi=1;let{nanoid:s}=No(),{isAbsolute:e,resolve:n}=pe,{SourceMapConsumer:i,SourceMapGenerator:t}=pe,{fileURLToPath:o,pathToFileURL:r}=pe,u=Un(),m=hs(),h=pe,a=Symbol("lineToIndexCache"),c=!!(i&&t),l=!!(n&&e);function d(g){if(g[a])return g[a];let b=g.css.split(`
|
|
566
|
+
`),_=new Array(b.length),S=0;for(let w=0,x=b.length;w<x;w++)_[w]=S,S+=b[w].length+1;return g[a]=_,_}class p{get from(){return this.file||this.id}constructor(b,_={}){if(b===null||typeof b>"u"||typeof b=="object"&&!b.toString)throw new Error(`PostCSS received ${b} instead of CSS string`);if(this.css=b.toString(),this.css[0]==="\uFEFF"||this.css[0]===""?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,this.document=this.css,_.document&&(this.document=_.document.toString()),_.from&&(!l||/^\w+:\/\//.test(_.from)||e(_.from)?this.file=_.from:this.file=n(_.from)),l&&c){let S=new m(this.css,_);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 "+s(6)+">"),this.map&&(this.map.file=this.from)}error(b,_,S,w={}){let x,y,k,A,T;if(_&&typeof _=="object"){let P=_,J=S;if(typeof P.offset=="number"){A=P.offset;let H=this.fromOffset(A);_=H.line,S=H.col}else _=P.line,S=P.column,A=this.fromLineAndColumn(_,S);if(typeof J.offset=="number"){k=J.offset;let H=this.fromOffset(k);y=H.line,x=H.col}else y=J.line,x=J.column,k=this.fromLineAndColumn(J.line,J.column)}else if(S)A=this.fromLineAndColumn(_,S);else{A=_;let P=this.fromOffset(A);_=P.line,S=P.col}let U=this.origin(_,S,y,x);return U?T=new u(b,U.endLine===void 0?U.line:{column:U.column,line:U.line},U.endLine===void 0?U.column:{column:U.endColumn,line:U.endLine},U.source,U.file,w.plugin):T=new u(b,y===void 0?_:{column:S,line:_},y===void 0?S:{column:x,line:y},this.css,this.file,w.plugin),T.input={column:S,endColumn:x,endLine:y,endOffset:k,line:_,offset:A,source:this.css},this.file&&(r&&(T.input.url=r(this.file).toString()),T.input.file=this.file),T}fromLineAndColumn(b,_){return d(this)[b-1]+_-1}fromOffset(b){let _=d(this),S=_[_.length-1],w=0;if(b>=S)w=_.length-1;else{let x=_.length-2,y;for(;w<x;)if(y=w+(x-w>>1),b<_[y])x=y-1;else if(b>=_[y+1])w=y+1;else{w=y;break}}return{col:b-_[w]+1,line:w+1}}mapResolve(b){return/^\w+:\/\//.test(b)?b:n(this.map.consumer().sourceRoot||this.map.root||".",b)}origin(b,_,S,w){if(!this.map)return!1;let x=this.map.consumer(),y=x.originalPositionFor({column:_,line:b});if(!y.source)return!1;let k;typeof S=="number"&&(k=x.originalPositionFor({column:w,line:S}));let A;e(y.source)?A=r(y.source):A=new URL(y.source,this.map.consumer().sourceRoot||r(this.map.mapFile));let T={column:y.column,endColumn:k&&k.column,endLine:k&&k.line,line:y.line,url:A.toString()};if(A.protocol==="file:")if(o)T.file=o(A);else throw new Error("file: protocol is not available in this PostCSS build");let U=x.sourceContentFor(y.source);return U&&(T.source=U),T}toJSON(){let b={};for(let _ of["hasBOM","css","file","id"])this[_]!=null&&(b[_]=this[_]);return this.map&&(b.map={...this.map},b.map.consumerCache&&(b.map.consumerCache=void 0)),b}}return gn=p,p.default=p,h&&h.registerInput&&h.registerInput(p),gn}var mn,Ti;function xt(){if(Ti)return mn;Ti=1;let s=He(),e,n;class i extends s{constructor(o){super(o),this.type="root",this.nodes||(this.nodes=[])}normalize(o,r,u){let m=super.normalize(o);if(r){if(u==="prepend")this.nodes.length>1?r.raws.before=this.nodes[1].raws.before:delete r.raws.before;else if(this.first!==r)for(let h of m)h.raws.before=r.raws.before}return m}removeChild(o,r){let u=this.index(o);return!r&&u===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[u].raws.before),super.removeChild(o)}toResult(o={}){return new e(new n,this,o).stringify()}}return i.registerLazyResult=t=>{e=t},i.registerProcessor=t=>{n=t},mn=i,i.default=i,s.registerRoot(i),mn}var bn,Li;function us(){if(Li)return bn;Li=1;let s={comma(e){return s.split(e,[","],!0)},space(e){let n=[" ",`
|
|
567
|
+
`," "];return s.split(e,n)},split(e,n,i){let t=[],o="",r=!1,u=0,m=!1,h="",a=!1;for(let c of e)a?a=!1:c==="\\"?a=!0:m?c===h&&(m=!1):c==='"'||c==="'"?(m=!0,h=c):c==="("?u+=1:c===")"?u>0&&(u-=1):u===0&&n.includes(c)&&(r=!0),r?(o!==""&&t.push(o.trim()),o="",r=!1):o+=c;return(i||o!=="")&&t.push(o.trim()),t}};return bn=s,s.default=s,bn}var yn,Di;function Wn(){if(Di)return yn;Di=1;let s=He(),e=us();class n extends s{get selectors(){return e.comma(this.selector)}set selectors(t){let o=this.selector?this.selector.match(/,\s*/):null,r=o?o[0]:","+this.raw("between","beforeOpen");this.selector=t.join(r)}constructor(t){super(t),this.type="rule",this.nodes||(this.nodes=[])}}return yn=n,n.default=n,s.registerRule(n),yn}var xn,Bi;function Ao(){if(Bi)return xn;Bi=1;let s=qn(),e=zt(),n=Ut(),i=Ft(),t=hs(),o=xt(),r=Wn();function u(m,h){if(Array.isArray(m))return m.map(l=>u(l));let{inputs:a,...c}=m;if(a){h=[];for(let l of a){let d={...l,__proto__:i.prototype};d.map&&(d.map={...d.map,__proto__:t.prototype}),h.push(d)}}if(c.nodes&&(c.nodes=m.nodes.map(l=>u(l,h))),c.source){let{inputId:l,...d}=c.source;c.source=d,l!=null&&(c.source.input=h[l])}if(c.type==="root")return new o(c);if(c.type==="decl")return new n(c);if(c.type==="rule")return new r(c);if(c.type==="comment")return new e(c);if(c.type==="atrule")return new s(c);throw new Error("Unknown node type: "+m.type)}return xn=u,u.default=u,xn}var wn,ji;function fs(){if(ji)return wn;ji=1;let{dirname:s,relative:e,resolve:n,sep:i}=pe,{SourceMapConsumer:t,SourceMapGenerator:o}=pe,{pathToFileURL:r}=pe,u=Ft(),m=!!(t&&o),h=!!(s&&n&&e&&i);class a{constructor(l,d,p,g){this.stringify=l,this.mapOpts=p.map||{},this.root=d,this.opts=p,this.css=g,this.originalCSS=g,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let l;this.isInline()?l="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?l=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?l=this.mapOpts.annotation(this.opts.to,this.root):l=this.outputFile()+".map";let d=`
|
|
565
568
|
`;this.css.includes(`\r
|
|
566
|
-
`)&&(
|
|
567
|
-
`),this.css+=
|
|
568
|
-
`),t=l.length-r):t+=l.length,a&&d!=="start"){let c=a.parent||{raws:{}};(!(a.type==="decl"||a.type==="atrule"&&!a.nodes)||a!==c.last||c.raws.semicolon)&&(a.source&&a.source.end?(s.source=this.sourcePath(a),s.original.line=a.source.end.line,s.original.column=a.source.end.column-1,s.generated.line=e,s.generated.column=t-2,this.map.addMapping(s)):(s.source=n,s.original.line=1,s.original.column=0,s.generated.line=e,s.generated.column=t-1,this.map.addMapping(s)))}})}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?kt(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(n=kt(ns(n,this.mapOpts.annotation)));let s=ts(n,e);return this.memoizedPaths.set(e,s),s}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 Vo(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 s=this.usesFileUrls?this.toFileUrl(n):this.toUrl(this.path(n));this.map.setSourceContent(s,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(xi){let n=xi(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;is==="\\"&&(e=e.replace(/\\/g,"/"));let n=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,n),n}};var ss=Ko;let Zo=Dt,_n=class extends Zo{constructor(e){super(e),this.type="comment"}};var zt=_n;_n.default=_n;let{isClean:rs,my:os}=rt,ls=Bt,as=zt,Jo=Dt,ds,Tn,Ln,cs;function hs(i){return i.map(e=>(e.nodes&&(e.nodes=hs(e.nodes)),delete e.source,e))}function us(i){if(i[rs]=!1,i.proxyOf.nodes)for(let e of i.proxyOf.nodes)us(e)}let ie=class ps extends Jo{append(...e){for(let t of e){let n=this.normalize(t,this.last);for(let s of n)this.proxyOf.nodes.push(s)}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,s;for(;this.indexes[t]<this.proxyOf.nodes.length&&(n=this.indexes[t],s=e(this.proxyOf.nodes[n],n),s!==!1);)this.indexes[t]+=1;return delete this.indexes[t],s}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(s=>typeof s=="function"?(o,r)=>s(o.toProxy(),r):s)):t==="every"||t==="some"?n=>e[t]((s,...o)=>n(s.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),s=this.normalize(t,this.proxyOf.nodes[n]).reverse();n=this.index(e);for(let r of s)this.proxyOf.nodes.splice(n+1,0,r);let o;for(let r in this.indexes)o=this.indexes[r],n<o&&(this.indexes[r]=o+s.length);return this.markDirty(),this}insertBefore(e,t){let n=this.index(e),s=n===0?"prepend":!1,o=this.normalize(t,this.proxyOf.nodes[n],s).reverse();n=this.index(e);for(let l of o)this.proxyOf.nodes.splice(n,0,l);let r;for(let l in this.indexes)r=this.indexes[l],n<=r&&(this.indexes[l]=r+o.length);return this.markDirty(),this}normalize(e,t){if(typeof e=="string")e=hs(ds(e).nodes);else if(Array.isArray(e)){e=e.slice(0);for(let s of e)s.parent&&s.parent.removeChild(s,"ignore")}else if(e.type==="root"&&this.type!=="document"){e=e.nodes.slice(0);for(let s of e)s.parent&&s.parent.removeChild(s,"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 ls(e)]}else if(e.selector)e=[new Tn(e)];else if(e.name)e=[new Ln(e)];else if(e.text)e=[new as(e)];else throw new Error("Unknown node type in node creation");return e.map(s=>(s[os]||ps.rebuild(s),s=s.proxyOf,s.parent&&s.parent.removeChild(s),s[rs]&&us(s),typeof s.raws.before>"u"&&t&&typeof t.raws.before<"u"&&(s.raws.before=t.raws.before.replace(/\S/g,"")),s.parent=this.proxyOf,s))}prepend(...e){e=e.reverse();for(let t of e){let n=this.normalize(t,this.first,"prepend").reverse();for(let s of n)this.proxyOf.nodes.unshift(s);for(let s in this.indexes)this.indexes[s]=this.indexes[s]+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(s=>{t.props&&!t.props.includes(s.prop)||t.fast&&!s.value.includes(t.fast)||(s.value=s.value.replace(e,n))}),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each((t,n)=>{let s;try{s=e(t,n)}catch(o){throw t.addToError(o)}return s!==!1&&t.walk&&(s=t.walk(e)),s})}walkAtRules(e,t){return t?e instanceof RegExp?this.walk((n,s)=>{if(n.type==="atrule"&&e.test(n.name))return t(n,s)}):this.walk((n,s)=>{if(n.type==="atrule"&&n.name===e)return t(n,s)}):(t=e,this.walk((n,s)=>{if(n.type==="atrule")return t(n,s)}))}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,s)=>{if(n.type==="decl"&&e.test(n.prop))return t(n,s)}):this.walk((n,s)=>{if(n.type==="decl"&&n.prop===e)return t(n,s)}):(t=e,this.walk((n,s)=>{if(n.type==="decl")return t(n,s)}))}walkRules(e,t){return t?e instanceof RegExp?this.walk((n,s)=>{if(n.type==="rule"&&e.test(n.selector))return t(n,s)}):this.walk((n,s)=>{if(n.type==="rule"&&n.selector===e)return t(n,s)}):(t=e,this.walk((n,s)=>{if(n.type==="rule")return t(n,s)}))}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]}};ie.registerParse=i=>{ds=i};ie.registerRule=i=>{Tn=i};ie.registerAtRule=i=>{Ln=i};ie.registerRoot=i=>{cs=i};var Se=ie;ie.default=ie;ie.rebuild=i=>{i.type==="atrule"?Object.setPrototypeOf(i,Ln.prototype):i.type==="rule"?Object.setPrototypeOf(i,Tn.prototype):i.type==="decl"?Object.setPrototypeOf(i,ls.prototype):i.type==="comment"?Object.setPrototypeOf(i,as.prototype):i.type==="root"&&Object.setPrototypeOf(i,cs.prototype),i[os]=!0,i.nodes&&i.nodes.forEach(e=>{ie.rebuild(e)})};let Xo=Se,fs,gs,Je=class extends Xo{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(e={}){return new fs(new gs,this,e).stringify()}};Je.registerLazyResult=i=>{fs=i};Je.registerProcessor=i=>{gs=i};var Dn=Je;Je.default=Je;let Sn=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 ms=Sn;Sn.default=Sn;let Qo=ms,En=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 Qo(e,t);return this.messages.push(n),n}warnings(){return this.messages.filter(e=>e.type==="warning")}get content(){return this.css}};var Bn=En;En.default=En;const an=39,vi=34,pt=92,wi=47,ft=10,Ue=32,gt=12,mt=9,bt=13,Yo=91,el=93,tl=40,nl=41,il=123,sl=125,rl=59,ol=42,ll=58,al=64,yt=/[\t\n\f\r "#'()/;[\\\]{}]/g,xt=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,dl=/.[\r\n"'(/\\]/,_i=/[\da-f]/i;var cl=function(e,t={}){let n=e.css.valueOf(),s=t.ignoreErrors,o,r,l,a,d,c,p,f,_,N,P=n.length,b=0,Z=[],J=[];function ue(){return b}function z(W){throw e.error("Unclosed "+W,b)}function X(){return J.length===0&&b>=P}function Be(W){if(J.length)return J.pop();if(b>=P)return;let L=W?W.ignoreUnclosed:!1;switch(o=n.charCodeAt(b),o){case ft:case Ue:case mt:case bt:case gt:{r=b;do r+=1,o=n.charCodeAt(r);while(o===Ue||o===ft||o===mt||o===bt||o===gt);N=["space",n.slice(b,r)],b=r-1;break}case Yo:case el:case il:case sl:case ll:case rl:case nl:{let pe=String.fromCharCode(o);N=[pe,pe,b];break}case tl:{if(f=Z.length?Z.pop()[1]:"",_=n.charCodeAt(b+1),f==="url"&&_!==an&&_!==vi&&_!==Ue&&_!==ft&&_!==mt&&_!==gt&&_!==bt){r=b;do{if(c=!1,r=n.indexOf(")",r+1),r===-1)if(s||L){r=b;break}else z("bracket");for(p=r;n.charCodeAt(p-1)===pt;)p-=1,c=!c}while(c);N=["brackets",n.slice(b,r+1),b,r],b=r}else r=n.indexOf(")",b+1),a=n.slice(b,r+1),r===-1||dl.test(a)?N=["(","(",b]:(N=["brackets",a,b,r],b=r);break}case an:case vi:{l=o===an?"'":'"',r=b;do{if(c=!1,r=n.indexOf(l,r+1),r===-1)if(s||L){r=b+1;break}else z("string");for(p=r;n.charCodeAt(p-1)===pt;)p-=1,c=!c}while(c);N=["string",n.slice(b,r+1),b,r],b=r;break}case al:{yt.lastIndex=b+1,yt.test(n),yt.lastIndex===0?r=n.length-1:r=yt.lastIndex-2,N=["at-word",n.slice(b,r+1),b,r],b=r;break}case pt:{for(r=b,d=!0;n.charCodeAt(r+1)===pt;)r+=1,d=!d;if(o=n.charCodeAt(r+1),d&&o!==wi&&o!==Ue&&o!==ft&&o!==mt&&o!==bt&&o!==gt&&(r+=1,_i.test(n.charAt(r)))){for(;_i.test(n.charAt(r+1));)r+=1;n.charCodeAt(r+1)===Ue&&(r+=1)}N=["word",n.slice(b,r+1),b,r],b=r;break}default:{o===wi&&n.charCodeAt(b+1)===ol?(r=n.indexOf("*/",b+2)+1,r===0&&(s||L?r=n.length:z("comment")),N=["comment",n.slice(b,r+1),b,r],b=r):(xt.lastIndex=b+1,xt.test(n),xt.lastIndex===0?r=n.length-1:r=xt.lastIndex-2,N=["word",n.slice(b,r+1),b,r],Z.push(N),b=r);break}}return b++,N}function ke(W){J.push(W)}return{back:ke,endOfFile:X,nextToken:Be,position:ue}};let bs=Se,Nt=class extends bs{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 jn=Nt;Nt.default=Nt;bs.registerAtRule(Nt);let ys=Se,xs,vs,Pe=class extends ys{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,t,n){let s=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 s)o.raws.before=t.raws.before}return s}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 xs(new vs,this,e).stringify()}};Pe.registerLazyResult=i=>{xs=i};Pe.registerProcessor=i=>{vs=i};var ot=Pe;Pe.default=Pe;ys.registerRoot(Pe);let Xe={comma(i){return Xe.split(i,[","],!0)},space(i){let e=[" ",`
|
|
569
|
-
`," "];return Xe.split(i,e)},split(i,e,t){let n=[],s="",o=!1,r=0,l=!1,a="",d=!1;for(let c of i)d?d=!1:c==="\\"?d=!0:l?c===a&&(l=!1):c==='"'||c==="'"?(l=!0,a=c):c==="("?r+=1:c===")"?r>0&&(r-=1):r===0&&e.includes(c)&&(o=!0),o?(s!==""&&n.push(s.trim()),s="",o=!1):s+=c;return(t||s!=="")&&n.push(s.trim()),n}};var ws=Xe;Xe.default=Xe;let _s=Se,hl=ws,Ot=class extends _s{constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return hl.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 zn=Ot;Ot.default=Ot;_s.registerRule(Ot);let ul=Bt,pl=cl,fl=zt,gl=jn,ml=ot,Si=zn;const Ei={empty:!0,space:!0};function bl(i){for(let e=i.length-1;e>=0;e--){let t=i[e],n=t[3]||t[2];if(n)return n}}let yl=class{constructor(e){this.input=e,this.root=new ml,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 gl;t.name=e[1].slice(1),t.name===""&&this.unnamedAtrule(t,e),this.init(t,e[2]);let n,s,o,r=!1,l=!1,a=[],d=[];for(;!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),n=e[0],n==="("||n==="["?d.push(n==="("?")":"]"):n==="{"&&d.length>0?d.push("}"):n===d[d.length-1]&&d.pop(),d.length===0)if(n===";"){t.source.end=this.getPosition(e[2]),t.source.end.offset++,this.semicolon=!0;break}else if(n==="{"){l=!0;break}else if(n==="}"){if(a.length>0){for(o=a.length-1,s=a[o];s&&s[0]==="space";)s=a[--o];s&&(t.source.end=this.getPosition(s[3]||s[2]),t.source.end.offset++)}this.end(e);break}else a.push(e);else a.push(e);if(this.tokenizer.endOfFile()){r=!0;break}}t.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(t.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(t,"params",a),r&&(e=a[a.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=""),l&&(t.nodes=[],this.current=t)}checkMissedSemicolon(e){let t=this.colon(e);if(t===!1)return;let n=0,s;for(let o=t-1;o>=0&&(s=e[o],!(s[0]!=="space"&&(n+=1,n===2)));o--);throw this.input.error("Missed semicolon",s[0]==="word"?s[3]+1:s[2])}colon(e){let t=0,n,s,o;for(let[r,l]of e.entries()){if(n=l,s=n[0],s==="("&&(t+=1),s===")"&&(t-=1),t===0&&s===":")if(!o)this.doubleColon(n);else{if(o[0]==="word"&&o[1]==="progid")continue;return r}o=n}return!1}comment(e){let t=new fl;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 s=n.match(/^(\s*)([^]*\S)(\s*)$/);t.text=s[2],t.raws.left=s[1],t.raws.right=s[3]}}createTokenizer(){this.tokenizer=pl(this.input)}decl(e,t){let n=new ul;this.init(n,e[0][2]);let s=e[e.length-1];for(s[0]===";"&&(this.semicolon=!0,e.pop()),n.source.end=this.getPosition(s[3]||s[2]||bl(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 d=e[0][0];if(d===":"||d==="space"||d==="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 r=[],l;for(;e.length&&(l=e[0][0],!(l!=="space"&&l!=="comment"));)r.push(e.shift());this.precheckMissedSemicolon(e);for(let d=e.length-1;d>=0;d--){if(o=e[d],o[1].toLowerCase()==="!important"){n.important=!0;let c=this.stringFrom(e,d);c=this.spacesFromEnd(e)+c,c!==" !important"&&(n.raws.important=c);break}else if(o[1].toLowerCase()==="important"){let c=e.slice(0),p="";for(let f=d;f>0;f--){let _=c[f][0];if(p.trim().indexOf("!")===0&&_!=="space")break;p=c.pop()[1]+p}p.trim().indexOf("!")===0&&(n.important=!0,n.raws.important=p,e=c)}if(o[0]!=="space"&&o[0]!=="comment")break}e.some(d=>d[0]!=="space"&&d[0]!=="comment")&&(n.raws.between+=r.map(d=>d[1]).join(""),r=[]),this.raw(n,"value",r.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 Si;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,s=!1,o=null,r=[],l=e[1].startsWith("--"),a=[],d=e;for(;d;){if(n=d[0],a.push(d),n==="("||n==="[")o||(o=d),r.push(n==="("?")":"]");else if(l&&s&&n==="{")o||(o=d),r.push("}");else if(r.length===0)if(n===";")if(s){this.decl(a,l);return}else break;else if(n==="{"){this.rule(a);return}else if(n==="}"){this.tokenizer.back(a.pop()),t=!0;break}else n===":"&&(s=!0);else n===r[r.length-1]&&(r.pop(),r.length===0&&(o=null));d=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),r.length>0&&this.unclosedBracket(o),t&&s){if(!l)for(;a.length&&(d=a[a.length-1][0],!(d!=="space"&&d!=="comment"));)this.tokenizer.back(a.pop());this.decl(a,l)}else this.unknownWord(a)}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,s){let o,r,l=n.length,a="",d=!0,c,p;for(let f=0;f<l;f+=1)o=n[f],r=o[0],r==="space"&&f===l-1&&!s?d=!1:r==="comment"?(p=n[f-1]?n[f-1][0]:"empty",c=n[f+1]?n[f+1][0]:"empty",!Ei[p]&&!Ei[c]?a.slice(-1)===","?d=!1:a+=o[1]:d=!1):a+=o[1];if(!d){let f=n.reduce((_,N)=>_+N[1],"");e.raws[t]={raw:f,value:a}}e[t]=a}rule(e){e.pop();let t=new Si;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 s=t;s<e.length;s++)n+=e[s][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 xl=yl;let vl=Se,wl=xl,_l=jt;function It(i,e){let t=new _l(i,e),n=new wl(t);try{n.parse()}catch(s){throw s}return n.root}var Un=It;It.default=It;vl.registerParse(It);let{isClean:G,my:Sl}=rt,El=ss,kl=Lt,$l=Se,Cl=Dn,ki=Bn,Al=Un,Nl=ot;const Ol={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},Il={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},Rl={Once:!0,postcssPlugin:!0,prepare:!0},Me=0;function Fe(i){return typeof i=="object"&&typeof i.then=="function"}function Ss(i){let e=!1,t=Ol[i.type];return i.type==="decl"?e=i.prop.toLowerCase():i.type==="atrule"&&(e=i.name.toLowerCase()),e&&i.append?[t,t+"-"+e,Me,t+"Exit",t+"Exit-"+e]:e?[t,t+"-"+e,t+"Exit",t+"Exit-"+e]:i.append?[t,Me,t+"Exit"]:[t,t+"Exit"]}function $i(i){let e;return i.type==="document"?e=["Document",Me,"DocumentExit"]:i.type==="root"?e=["Root",Me,"RootExit"]:e=Ss(i),{eventIndex:0,events:e,iterator:0,node:i,visitorIndex:0,visitors:[]}}function kn(i){return i[G]=!1,i.nodes&&i.nodes.forEach(e=>kn(e)),i}let $n={},Te=class Es{constructor(e,t,n){this.stringified=!1,this.processed=!1;let s;if(typeof t=="object"&&t!==null&&(t.type==="root"||t.type==="document"))s=kn(t);else if(t instanceof Es||t instanceof ki)s=kn(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=Al;n.syntax&&(o=n.syntax.parse),n.parser&&(o=n.parser),o.parse&&(o=o.parse);try{s=o(t,n)}catch(r){this.processed=!0,this.error=r}s&&!s[Sl]&&$l.rebuild(s)}this.result=new ki(e,s,n),this.helpers={...$n,postcss:$n,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(s){console&&console.error&&console.error(s)}return e}prepareVisitors(){this.listeners={};let e=(t,n,s)=>{this.listeners[n]||(this.listeners[n]=[]),this.listeners[n].push([t,s])};for(let t of this.plugins)if(typeof t=="object")for(let n in t){if(!Il[n]&&/^[A-Z]/.test(n))throw new Error(`Unknown event ${n} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!Rl[n])if(typeof t[n]=="object")for(let s in t[n])s==="*"?e(t,n,t[n][s]):e(t,n+"-"+s.toLowerCase(),t[n][s]);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(Fe(n))try{await n}catch(s){throw this.handleError(s)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[G];){e[G]=!0;let t=[$i(e)];for(;t.length>0;){let n=this.visitTick(t);if(Fe(n))try{await n}catch(s){let o=t[t.length-1].node;throw this.handleError(s,o)}}}if(this.listeners.OnceExit)for(let[t,n]of this.listeners.OnceExit){this.result.lastPlugin=t;try{if(e.type==="document"){let s=e.nodes.map(o=>n(o,this.helpers));await Promise.all(s)}else await n(e,this.helpers)}catch(s){throw this.handleError(s)}}}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 Fe(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=kl;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let s=new El(t,this.result.root,this.result.opts).generate();return this.result.css=s[0],this.result.map=s[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(Fe(t))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[G];)e[G]=!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,s]of e){this.result.lastPlugin=n;let o;try{o=s(t,this.helpers)}catch(r){throw this.handleError(r,t.proxyOf)}if(t.type!=="root"&&t.type!=="document"&&!t.parent)return!0;if(Fe(o))throw this.getAsyncError()}}visitTick(e){let t=e[e.length-1],{node:n,visitors:s}=t;if(n.type!=="root"&&n.type!=="document"&&!n.parent){e.pop();return}if(s.length>0&&t.visitorIndex<s.length){let[r,l]=s[t.visitorIndex];t.visitorIndex+=1,t.visitorIndex===s.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=r;try{return l(n.toProxy(),this.helpers)}catch(a){throw this.handleError(a,n)}}if(t.iterator!==0){let r=t.iterator,l;for(;l=n.nodes[n.indexes[r]];)if(n.indexes[r]+=1,!l[G]){l[G]=!0,e.push($i(l));return}t.iterator=0,delete n.indexes[r]}let o=t.events;for(;t.eventIndex<o.length;){let r=o[t.eventIndex];if(t.eventIndex+=1,r===Me){n.nodes&&n.nodes.length&&(n[G]=!0,t.iterator=n.getIterator());return}else if(this.listeners[r]){t.visitors=this.listeners[r];return}}e.pop()}walkSync(e){e[G]=!0;let t=Ss(e);for(let n of t)if(n===Me)e.nodes&&e.each(s=>{s[G]||this.walkSync(s)});else{let s=this.listeners[n];if(s&&this.visitSync(s,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"}};Te.registerPostcss=i=>{$n=i};var ks=Te;Te.default=Te;Nl.registerLazyResult(Te);Cl.registerLazyResult(Te);let Pl=ss,Ml=Lt,Tl=Un;const Ll=Bn;let Cn=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 s,o=Ml;this.result=new Ll(this._processor,s,this._opts),this.result.css=t;let r=this;Object.defineProperty(this.result,"root",{get(){return r.root}});let l=new Pl(o,s,this._opts,t);if(l.isMap()){let[a,d]=l.generate();a&&(this.result.css=a),d&&(this.result.map=d)}}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=Tl;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 Dl=Cn;Cn.default=Cn;let Bl=Dl,jl=ks,zl=Dn,Ul=ot,Qe=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 Bl(this,e,t):new jl(this,e,t)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}};var Fl=Qe;Qe.default=Qe;Ul.registerProcessor(Qe);zl.registerProcessor(Qe);let Hl=Bt,Wl=Yi,Vl=zt,ql=jn,Gl=jt,Kl=ot,Zl=zn;function Ye(i,e){if(Array.isArray(i))return i.map(s=>Ye(s));let{inputs:t,...n}=i;if(t){e=[];for(let s of t){let o={...s,__proto__:Gl.prototype};o.map&&(o.map={...o.map,__proto__:Wl.prototype}),e.push(o)}}if(n.nodes&&(n.nodes=i.nodes.map(s=>Ye(s,e))),n.source){let{inputId:s,...o}=n.source;n.source=o,s!=null&&(n.source.input=e[s])}if(n.type==="root")return new Kl(n);if(n.type==="decl")return new Hl(n);if(n.type==="rule")return new Zl(n);if(n.type==="comment")return new Vl(n);if(n.type==="atrule")return new ql(n);throw new Error("Unknown node type: "+i.type)}var Jl=Ye;Ye.default=Ye;var Ci={};let Xl=Mn,$s=Bt,Ql=ks,Yl=Se,Fn=Fl,ea=Lt,ta=Jl,Cs=Dn,na=ms,As=zt,Ns=jn,ia=Bn,sa=jt,ra=Un,oa=ws,Os=zn,Is=ot,la=Dt;function E(...i){return i.length===1&&Array.isArray(i[0])&&(i=i[0]),new Fn(i)}E.plugin=function(e,t){let n=!1;function s(...r){console&&console.warn&&!n&&(n=!0,console.warn(e+`: postcss.plugin was deprecated. Migration guide:
|
|
570
|
-
https://evilmartians.com/chronicles/postcss-8-plugin-migration`),Ci.LANG&&Ci.LANG.startsWith("cn")&&console.warn(e+`: 里面 postcss.plugin 被弃用. 迁移指南:
|
|
571
|
-
https://www.w3ctech.com/topic/2226`));let l=t(...r);return l.postcssPlugin=e,l.postcssVersion=new Fn().version,l}let o;return Object.defineProperty(s,"postcss",{get(){return o||(o=s()),o}}),s.process=function(r,l,a){return E([s(a)]).process(r,l)},s};E.stringify=ea;E.parse=ra;E.fromJSON=ta;E.list=oa;E.comment=i=>new As(i);E.atRule=i=>new Ns(i);E.decl=i=>new $s(i);E.rule=i=>new Os(i);E.root=i=>new Is(i);E.document=i=>new Cs(i);E.CssSyntaxError=Xl;E.Declaration=$s;E.Container=Yl;E.Processor=Fn;E.Document=Cs;E.Comment=As;E.Warning=na;E.AtRule=Ns;E.Result=ia;E.Input=sa;E.Rule=Os;E.Root=Is;E.Node=la;Ql.registerPostcss(E);var aa=E;E.default=E;const A=Zi(aa);A.stringify;A.fromJSON;A.plugin;A.parse;A.list;A.document;A.comment;A.atRule;A.rule;A.decl;A.root;A.CssSyntaxError;A.Declaration;A.Container;A.Processor;A.Document;A.Comment;A.Warning;A.AtRule;A.Result;A.Input;A.Rule;A.Root;A.Node;var da=function(e){const t=e.prefix,n=/\s+$/.test(t)?t:`${t} `,s=e.ignoreFiles?[].concat(e.ignoreFiles):[],o=e.includeFiles?[].concat(e.includeFiles):[];return function(r){s.length&&r.source.input.file&&Ai(r.source.input.file,s)||o.length&&r.source.input.file&&!Ai(r.source.input.file,o)||r.walkRules(l=>{const a=["keyframes","-webkit-keyframes","-moz-keyframes","-o-keyframes"];l.parent&&a.includes(l.parent.name)||(l.selectors=l.selectors.map(d=>e.exclude&&ca(d,e.exclude)?d:e.transform?e.transform(t,d,n+d,r.source.input.file,l):n+d))})}};function Ai(i,e){return e.some(t=>t instanceof RegExp?t.test(i):i.includes(t))}function ca(i,e){return e.some(t=>t instanceof RegExp?t.test(i):i===t)}const ha=Zi(da),ua="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}",pa="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 fa(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}function Rs(i){return i instanceof Map?i.clear=i.delete=i.set=function(){throw new Error("map is read-only")}:i instanceof Set&&(i.add=i.clear=i.delete=function(){throw new Error("set is read-only")}),Object.freeze(i),Object.getOwnPropertyNames(i).forEach(e=>{const t=i[e],n=typeof t;(n==="object"||n==="function")&&!Object.isFrozen(t)&&Rs(t)}),i}class Ni{constructor(e){e.data===void 0&&(e.data={}),this.data=e.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function Ps(i){return i.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function de(i,...e){const t=Object.create(null);for(const n in i)t[n]=i[n];return e.forEach(function(n){for(const s in n)t[s]=n[s]}),t}const ga="</span>",Oi=i=>!!i.scope,ma=(i,{prefix:e})=>{if(i.startsWith("language:"))return i.replace("language:","language-");if(i.includes(".")){const t=i.split(".");return[`${e}${t.shift()}`,...t.map((n,s)=>`${n}${"_".repeat(s+1)}`)].join(" ")}return`${e}${i}`};class ba{constructor(e,t){this.buffer="",this.classPrefix=t.classPrefix,e.walk(this)}addText(e){this.buffer+=Ps(e)}openNode(e){if(!Oi(e))return;const t=ma(e.scope,{prefix:this.classPrefix});this.span(t)}closeNode(e){Oi(e)&&(this.buffer+=ga)}value(){return this.buffer}span(e){this.buffer+=`<span class="${e}">`}}const Ii=(i={})=>{const e={children:[]};return Object.assign(e,i),e};class Hn{constructor(){this.rootNode=Ii(),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=Ii({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=>{Hn._collapse(t)}))}}class ya extends Hn{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 ba(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function et(i){return i?typeof i=="string"?i:i.source:null}function Ms(i){return Ee("(?=",i,")")}function xa(i){return Ee("(?:",i,")*")}function va(i){return Ee("(?:",i,")?")}function Ee(...i){return i.map(e=>et(e)).join("")}function wa(i){const e=i[i.length-1];return typeof e=="object"&&e.constructor===Object?(i.splice(i.length-1,1),e):{}}function Wn(...i){return"("+(wa(i).capture?"":"?:")+i.map(e=>et(e)).join("|")+")"}function Ts(i){return new RegExp(i.toString()+"|").exec("").length-1}function _a(i,e){const t=i&&i.exec(e);return t&&t.index===0}const Sa=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function Vn(i,{joinWith:e}){let t=0;return i.map(n=>{t+=1;const s=t;let o=et(n),r="";for(;o.length>0;){const l=Sa.exec(o);if(!l){r+=o;break}r+=o.substring(0,l.index),o=o.substring(l.index+l[0].length),l[0][0]==="\\"&&l[1]?r+="\\"+String(Number(l[1])+s):(r+=l[0],l[0]==="("&&t++)}return r}).map(n=>`(${n})`).join(e)}const Ea=/\b\B/,Ls="[a-zA-Z]\\w*",qn="[a-zA-Z_]\\w*",Ds="\\b\\d+(\\.\\d+)?",Bs="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",js="\\b(0b[01]+)",ka="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",$a=(i={})=>{const e=/^#![ ]*\//;return i.binary&&(i.begin=Ee(e,/.*\b/,i.binary,/\b.*/)),de({scope:"meta",begin:e,end:/$/,relevance:0,"on:begin":(t,n)=>{t.index!==0&&n.ignoreMatch()}},i)},tt={begin:"\\\\[\\s\\S]",relevance:0},Ca={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[tt]},Aa={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[tt]},Na={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/},Ut=function(i,e,t={}){const n=de({scope:"comment",begin:i,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 s=Wn("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:Ee(/[ ]+/,"(",s,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),n},Oa=Ut("//","$"),Ia=Ut("/\\*","\\*/"),Ra=Ut("#","$"),Pa={scope:"number",begin:Ds,relevance:0},Ma={scope:"number",begin:Bs,relevance:0},Ta={scope:"number",begin:js,relevance:0},La={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[tt,{begin:/\[/,end:/\]/,relevance:0,contains:[tt]}]},Da={scope:"title",begin:Ls,relevance:0},Ba={scope:"title",begin:qn,relevance:0},ja={begin:"\\.\\s*"+qn,relevance:0},za=function(i){return Object.assign(i,{"on:begin":(e,t)=>{t.data._beginMatch=e[1]},"on:end":(e,t)=>{t.data._beginMatch!==e[1]&&t.ignoreMatch()}})};var vt=Object.freeze({__proto__:null,APOS_STRING_MODE:Ca,BACKSLASH_ESCAPE:tt,BINARY_NUMBER_MODE:Ta,BINARY_NUMBER_RE:js,COMMENT:Ut,C_BLOCK_COMMENT_MODE:Ia,C_LINE_COMMENT_MODE:Oa,C_NUMBER_MODE:Ma,C_NUMBER_RE:Bs,END_SAME_AS_BEGIN:za,HASH_COMMENT_MODE:Ra,IDENT_RE:Ls,MATCH_NOTHING_RE:Ea,METHOD_GUARD:ja,NUMBER_MODE:Pa,NUMBER_RE:Ds,PHRASAL_WORDS_MODE:Na,QUOTE_STRING_MODE:Aa,REGEXP_MODE:La,RE_STARTERS_RE:ka,SHEBANG:$a,TITLE_MODE:Da,UNDERSCORE_IDENT_RE:qn,UNDERSCORE_TITLE_MODE:Ba});function Ua(i,e){i.input[i.index-1]==="."&&e.ignoreMatch()}function Fa(i,e){i.className!==void 0&&(i.scope=i.className,delete i.className)}function Ha(i,e){e&&i.beginKeywords&&(i.begin="\\b("+i.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",i.__beforeBegin=Ua,i.keywords=i.keywords||i.beginKeywords,delete i.beginKeywords,i.relevance===void 0&&(i.relevance=0))}function Wa(i,e){Array.isArray(i.illegal)&&(i.illegal=Wn(...i.illegal))}function Va(i,e){if(i.match){if(i.begin||i.end)throw new Error("begin & end are not supported with match");i.begin=i.match,delete i.match}}function qa(i,e){i.relevance===void 0&&(i.relevance=1)}const Ga=(i,e)=>{if(!i.beforeMatch)return;if(i.starts)throw new Error("beforeMatch cannot be used with starts");const t=Object.assign({},i);Object.keys(i).forEach(n=>{delete i[n]}),i.keywords=t.keywords,i.begin=Ee(t.beforeMatch,Ms(t.begin)),i.starts={relevance:0,contains:[Object.assign(t,{endsParent:!0})]},i.relevance=0,delete t.beforeMatch},Ka=["of","and","for","in","not","or","if","then","parent","list","value"],Za="keyword";function zs(i,e,t=Za){const n=Object.create(null);return typeof i=="string"?s(t,i.split(" ")):Array.isArray(i)?s(t,i):Object.keys(i).forEach(function(o){Object.assign(n,zs(i[o],e,o))}),n;function s(o,r){e&&(r=r.map(l=>l.toLowerCase())),r.forEach(function(l){const a=l.split("|");n[a[0]]=[o,Ja(a[0],a[1])]})}}function Ja(i,e){return e?Number(e):Xa(i)?0:1}function Xa(i){return Ka.includes(i.toLowerCase())}const Ri={},xe=i=>{console.error(i)},Pi=(i,...e)=>{console.log(`WARN: ${i}`,...e)},Ae=(i,e)=>{Ri[`${i}/${e}`]||(console.log(`Deprecated as of ${i}. ${e}`),Ri[`${i}/${e}`]=!0)},Rt=new Error;function Us(i,e,{key:t}){let n=0;const s=i[t],o={},r={};for(let l=1;l<=e.length;l++)r[l+n]=s[l],o[l+n]=!0,n+=Ts(e[l-1]);i[t]=r,i[t]._emit=o,i[t]._multi=!0}function Qa(i){if(Array.isArray(i.begin)){if(i.skip||i.excludeBegin||i.returnBegin)throw xe("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),Rt;if(typeof i.beginScope!="object"||i.beginScope===null)throw xe("beginScope must be object"),Rt;Us(i,i.begin,{key:"beginScope"}),i.begin=Vn(i.begin,{joinWith:""})}}function Ya(i){if(Array.isArray(i.end)){if(i.skip||i.excludeEnd||i.returnEnd)throw xe("skip, excludeEnd, returnEnd not compatible with endScope: {}"),Rt;if(typeof i.endScope!="object"||i.endScope===null)throw xe("endScope must be object"),Rt;Us(i,i.end,{key:"endScope"}),i.end=Vn(i.end,{joinWith:""})}}function ed(i){i.scope&&typeof i.scope=="object"&&i.scope!==null&&(i.beginScope=i.scope,delete i.scope)}function td(i){ed(i),typeof i.beginScope=="string"&&(i.beginScope={_wrap:i.beginScope}),typeof i.endScope=="string"&&(i.endScope={_wrap:i.endScope}),Qa(i),Ya(i)}function nd(i){function e(r,l){return new RegExp(et(r),"m"+(i.case_insensitive?"i":"")+(i.unicodeRegex?"u":"")+(l?"g":""))}class t{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(l,a){a.position=this.position++,this.matchIndexes[this.matchAt]=a,this.regexes.push([a,l]),this.matchAt+=Ts(l)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const l=this.regexes.map(a=>a[1]);this.matcherRe=e(Vn(l,{joinWith:"|"}),!0),this.lastIndex=0}exec(l){this.matcherRe.lastIndex=this.lastIndex;const a=this.matcherRe.exec(l);if(!a)return null;const d=a.findIndex((p,f)=>f>0&&p!==void 0),c=this.matchIndexes[d];return a.splice(0,d),Object.assign(a,c)}}class n{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(l){if(this.multiRegexes[l])return this.multiRegexes[l];const a=new t;return this.rules.slice(l).forEach(([d,c])=>a.addRule(d,c)),a.compile(),this.multiRegexes[l]=a,a}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(l,a){this.rules.push([l,a]),a.type==="begin"&&this.count++}exec(l){const a=this.getMatcher(this.regexIndex);a.lastIndex=this.lastIndex;let d=a.exec(l);if(this.resumingScanAtSamePosition()&&!(d&&d.index===this.lastIndex)){const c=this.getMatcher(0);c.lastIndex=this.lastIndex+1,d=c.exec(l)}return d&&(this.regexIndex+=d.position+1,this.regexIndex===this.count&&this.considerAll()),d}}function s(r){const l=new n;return r.contains.forEach(a=>l.addRule(a.begin,{rule:a,type:"begin"})),r.terminatorEnd&&l.addRule(r.terminatorEnd,{type:"end"}),r.illegal&&l.addRule(r.illegal,{type:"illegal"}),l}function o(r,l){const a=r;if(r.isCompiled)return a;[Fa,Va,td,Ga].forEach(c=>c(r,l)),i.compilerExtensions.forEach(c=>c(r,l)),r.__beforeBegin=null,[Ha,Wa,qa].forEach(c=>c(r,l)),r.isCompiled=!0;let d=null;return typeof r.keywords=="object"&&r.keywords.$pattern&&(r.keywords=Object.assign({},r.keywords),d=r.keywords.$pattern,delete r.keywords.$pattern),d=d||/\w+/,r.keywords&&(r.keywords=zs(r.keywords,i.case_insensitive)),a.keywordPatternRe=e(d,!0),l&&(r.begin||(r.begin=/\B|\b/),a.beginRe=e(a.begin),!r.end&&!r.endsWithParent&&(r.end=/\B|\b/),r.end&&(a.endRe=e(a.end)),a.terminatorEnd=et(a.end)||"",r.endsWithParent&&l.terminatorEnd&&(a.terminatorEnd+=(r.end?"|":"")+l.terminatorEnd)),r.illegal&&(a.illegalRe=e(r.illegal)),r.contains||(r.contains=[]),r.contains=[].concat(...r.contains.map(function(c){return id(c==="self"?r:c)})),r.contains.forEach(function(c){o(c,a)}),r.starts&&o(r.starts,l),a.matcher=s(a),a}if(i.compilerExtensions||(i.compilerExtensions=[]),i.contains&&i.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return i.classNameAliases=de(i.classNameAliases||{}),o(i)}function Fs(i){return i?i.endsWithParent||Fs(i.starts):!1}function id(i){return i.variants&&!i.cachedVariants&&(i.cachedVariants=i.variants.map(function(e){return de(i,{variants:null},e)})),i.cachedVariants?i.cachedVariants:Fs(i)?de(i,{starts:i.starts?de(i.starts):null}):Object.isFrozen(i)?de(i):i}var sd="11.9.0";class rd extends Error{constructor(e,t){super(e),this.name="HTMLInjectionError",this.html=t}}const dn=Ps,Mi=de,Ti=Symbol("nomatch"),od=7,Hs=function(i){const e=Object.create(null),t=Object.create(null),n=[];let s=!0;const o="Could not find the language '{}', did you forget to load/include a language module?",r={disableAutodetect:!0,name:"Plain text",contains:[]};let l={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:ya};function a(h){return l.noHighlightRe.test(h)}function d(h){let g=h.className+" ";g+=h.parentNode?h.parentNode.className:"";const v=l.languageDetectRe.exec(g);if(v){const S=L(v[1]);return S||(Pi(o.replace("{}",v[1])),Pi("Falling back to no-highlight mode for this block.",h)),S?v[1]:"no-highlight"}return g.split(/\s+/).find(S=>a(S)||L(S))}function c(h,g,v){let S="",O="";typeof g=="object"?(S=h,v=g.ignoreIllegals,O=g.language):(Ae("10.7.0","highlight(lang, code, ...args) has been deprecated."),Ae("10.7.0",`Please use highlight(code, options) instead.
|
|
572
|
-
https://github.com/highlightjs/highlight.js/issues/2277`),O=h,S=g),v===void 0&&(v=!0);const D={code:S,language:O};fe("before:highlight",D);const re=D.result?D.result:p(D.language,D.code,v);return re.code=D.code,fe("after:highlight",re),re}function p(h,g,v,S){const O=Object.create(null);function D(u,m){return u.keywords[m]}function re(){if(!y.keywords){M.addText($);return}let u=0;y.keywordPatternRe.lastIndex=0;let m=y.keywordPatternRe.exec($),w="";for(;m;){w+=$.substring(u,m.index);const k=q.case_insensitive?m[0].toLowerCase():m[0],T=D(y,k);if(T){const[Q,ir]=T;if(M.addText(w),w="",O[k]=(O[k]||0)+1,O[k]<=od&&(ct+=ir),Q.startsWith("_"))w+=m[0];else{const sr=q.classNameAliases[Q]||Q;V(m[0],sr)}}else w+=m[0];u=y.keywordPatternRe.lastIndex,m=y.keywordPatternRe.exec($)}w+=$.substring(u),M.addText(w)}function at(){if($==="")return;let u=null;if(typeof y.subLanguage=="string"){if(!e[y.subLanguage]){M.addText($);return}u=p(y.subLanguage,$,!0,Xn[y.subLanguage]),Xn[y.subLanguage]=u._top}else u=_($,y.subLanguage.length?y.subLanguage:null);y.relevance>0&&(ct+=u.relevance),M.__addSublanguage(u._emitter,u.language)}function B(){y.subLanguage!=null?at():re(),$=""}function V(u,m){u!==""&&(M.startScope(m),M.addText(u),M.endScope())}function Gn(u,m){let w=1;const k=m.length-1;for(;w<=k;){if(!u._emit[w]){w++;continue}const T=q.classNameAliases[u[w]]||u[w],Q=m[w];T?V(Q,T):($=Q,re(),$=""),w++}}function Kn(u,m){return u.scope&&typeof u.scope=="string"&&M.openNode(q.classNameAliases[u.scope]||u.scope),u.beginScope&&(u.beginScope._wrap?(V($,q.classNameAliases[u.beginScope._wrap]||u.beginScope._wrap),$=""):u.beginScope._multi&&(Gn(u.beginScope,m),$="")),y=Object.create(u,{parent:{value:y}}),y}function Zn(u,m,w){let k=_a(u.endRe,w);if(k){if(u["on:end"]){const T=new Ni(u);u["on:end"](m,T),T.isMatchIgnored&&(k=!1)}if(k){for(;u.endsParent&&u.parent;)u=u.parent;return u}}if(u.endsWithParent)return Zn(u.parent,m,w)}function Qs(u){return y.matcher.regexIndex===0?($+=u[0],1):(Zt=!0,0)}function Ys(u){const m=u[0],w=u.rule,k=new Ni(w),T=[w.__beforeBegin,w["on:begin"]];for(const Q of T)if(Q&&(Q(u,k),k.isMatchIgnored))return Qs(m);return w.skip?$+=m:(w.excludeBegin&&($+=m),B(),!w.returnBegin&&!w.excludeBegin&&($=m)),Kn(w,u),w.returnBegin?0:m.length}function er(u){const m=u[0],w=g.substring(u.index),k=Zn(y,u,w);if(!k)return Ti;const T=y;y.endScope&&y.endScope._wrap?(B(),V(m,y.endScope._wrap)):y.endScope&&y.endScope._multi?(B(),Gn(y.endScope,u)):T.skip?$+=m:(T.returnEnd||T.excludeEnd||($+=m),B(),T.excludeEnd&&($=m));do y.scope&&M.closeNode(),!y.skip&&!y.subLanguage&&(ct+=y.relevance),y=y.parent;while(y!==k.parent);return k.starts&&Kn(k.starts,u),T.returnEnd?0:m.length}function tr(){const u=[];for(let m=y;m!==q;m=m.parent)m.scope&&u.unshift(m.scope);u.forEach(m=>M.openNode(m))}let dt={};function Jn(u,m){const w=m&&m[0];if($+=u,w==null)return B(),0;if(dt.type==="begin"&&m.type==="end"&&dt.index===m.index&&w===""){if($+=g.slice(m.index,m.index+1),!s){const k=new Error(`0 width match regex (${h})`);throw k.languageName=h,k.badRule=dt.rule,k}return 1}if(dt=m,m.type==="begin")return Ys(m);if(m.type==="illegal"&&!v){const k=new Error('Illegal lexeme "'+w+'" for mode "'+(y.scope||"<unnamed>")+'"');throw k.mode=y,k}else if(m.type==="end"){const k=er(m);if(k!==Ti)return k}if(m.type==="illegal"&&w==="")return 1;if(Kt>1e5&&Kt>m.index*3)throw new Error("potential infinite loop, way more iterations than matches");return $+=w,w.length}const q=L(h);if(!q)throw xe(o.replace("{}",h)),new Error('Unknown language: "'+h+'"');const nr=nd(q);let Gt="",y=S||nr;const Xn={},M=new l.__emitter(l);tr();let $="",ct=0,ge=0,Kt=0,Zt=!1;try{if(q.__emitTokens)q.__emitTokens(g,M);else{for(y.matcher.considerAll();;){Kt++,Zt?Zt=!1:y.matcher.considerAll(),y.matcher.lastIndex=ge;const u=y.matcher.exec(g);if(!u)break;const m=g.substring(ge,u.index),w=Jn(m,u);ge=u.index+w}Jn(g.substring(ge))}return M.finalize(),Gt=M.toHTML(),{language:h,value:Gt,relevance:ct,illegal:!1,_emitter:M,_top:y}}catch(u){if(u.message&&u.message.includes("Illegal"))return{language:h,value:dn(g),illegal:!0,relevance:0,_illegalBy:{message:u.message,index:ge,context:g.slice(ge-100,ge+100),mode:u.mode,resultSoFar:Gt},_emitter:M};if(s)return{language:h,value:dn(g),illegal:!1,relevance:0,errorRaised:u,_emitter:M,_top:y};throw u}}function f(h){const g={value:dn(h),illegal:!1,relevance:0,_top:r,_emitter:new l.__emitter(l)};return g._emitter.addText(h),g}function _(h,g){g=g||l.languages||Object.keys(e);const v=f(h),S=g.filter(L).filter(lt).map(B=>p(B,h,!1));S.unshift(v);const O=S.sort((B,V)=>{if(B.relevance!==V.relevance)return V.relevance-B.relevance;if(B.language&&V.language){if(L(B.language).supersetOf===V.language)return 1;if(L(V.language).supersetOf===B.language)return-1}return 0}),[D,re]=O,at=D;return at.secondBest=re,at}function N(h,g,v){const S=g&&t[g]||v;h.classList.add("hljs"),h.classList.add(`language-${S}`)}function P(h){let g=null;const v=d(h);if(a(v))return;if(fe("before:highlightElement",{el:h,language:v}),h.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",h);return}if(h.children.length>0&&(l.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(h)),l.throwUnescapedHTML))throw new rd("One of your code blocks includes unescaped HTML.",h.innerHTML);g=h;const S=g.textContent,O=v?c(S,{language:v,ignoreIllegals:!0}):_(S);h.innerHTML=O.value,h.dataset.highlighted="yes",N(h,v,O.language),h.result={language:O.language,re:O.relevance,relevance:O.relevance},O.secondBest&&(h.secondBest={language:O.secondBest.language,relevance:O.secondBest.relevance}),fe("after:highlightElement",{el:h,result:O,text:S})}function b(h){l=Mi(l,h)}const Z=()=>{z(),Ae("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function J(){z(),Ae("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let ue=!1;function z(){if(document.readyState==="loading"){ue=!0;return}document.querySelectorAll(l.cssSelector).forEach(P)}function X(){ue&&z()}typeof window<"u"&&window.addEventListener&&window.addEventListener("DOMContentLoaded",X,!1);function Be(h,g){let v=null;try{v=g(i)}catch(S){if(xe("Language definition for '{}' could not be registered.".replace("{}",h)),s)xe(S);else throw S;v=r}v.name||(v.name=h),e[h]=v,v.rawDefinition=g.bind(null,i),v.aliases&&pe(v.aliases,{languageName:h})}function ke(h){delete e[h];for(const g of Object.keys(t))t[g]===h&&delete t[g]}function W(){return Object.keys(e)}function L(h){return h=(h||"").toLowerCase(),e[h]||e[t[h]]}function pe(h,{languageName:g}){typeof h=="string"&&(h=[h]),h.forEach(v=>{t[v.toLowerCase()]=g})}function lt(h){const g=L(h);return g&&!g.disableAutodetect}function Ht(h){h["before:highlightBlock"]&&!h["before:highlightElement"]&&(h["before:highlightElement"]=g=>{h["before:highlightBlock"](Object.assign({block:g.el},g))}),h["after:highlightBlock"]&&!h["after:highlightElement"]&&(h["after:highlightElement"]=g=>{h["after:highlightBlock"](Object.assign({block:g.el},g))})}function Wt(h){Ht(h),n.push(h)}function Vt(h){const g=n.indexOf(h);g!==-1&&n.splice(g,1)}function fe(h,g){const v=h;n.forEach(function(S){S[v]&&S[v](g)})}function qt(h){return Ae("10.7.0","highlightBlock will be removed entirely in v12.0"),Ae("10.7.0","Please use highlightElement now."),P(h)}Object.assign(i,{highlight:c,highlightAuto:_,highlightAll:z,highlightElement:P,highlightBlock:qt,configure:b,initHighlighting:Z,initHighlightingOnLoad:J,registerLanguage:Be,unregisterLanguage:ke,listLanguages:W,getLanguage:L,registerAliases:pe,autoDetection:lt,inherit:Mi,addPlugin:Wt,removePlugin:Vt}),i.debugMode=function(){s=!1},i.safeMode=function(){s=!0},i.versionString=sd,i.regex={concat:Ee,lookahead:Ms,either:Wn,optional:va,anyNumberOfTimes:xa};for(const h in vt)typeof vt[h]=="object"&&Rs(vt[h]);return Object.assign(i,vt),i},Le=Hs({});Le.newInstance=()=>Hs({});var ld=Le;Le.HighlightJS=Le;Le.default=Le;const Ft=fa(ld),Pt="[A-Za-z$_][0-9A-Za-z$_]*",Ws=["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"],Vs=["true","false","null","undefined","NaN","Infinity"],qs=["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"],Gs=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],Ks=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],Zs=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],Js=[].concat(Ks,qs,Gs);function ad(i){const e=i.regex,t=(h,{after:g})=>{const v="</"+h[0].slice(1);return h.input.indexOf(v,g)!==-1},n=Pt,s={begin:"<>",end:"</>"},o=/<[A-Za-z0-9\\._:-]+\s*\/>/,r={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(h,g)=>{const v=h[0].length+h.index,S=h.input[v];if(S==="<"||S===","){g.ignoreMatch();return}S===">"&&(t(h,{after:v})||g.ignoreMatch());let O;const D=h.input.substring(v);if(O=D.match(/^\s*=/)){g.ignoreMatch();return}if((O=D.match(/^\s+extends\s+/))&&O.index===0){g.ignoreMatch();return}}},l={$pattern:Pt,keyword:Ws,literal:Vs,built_in:Js,"variable.language":Zs},a="[0-9](_?[0-9])*",d=`\\.(${a})`,c="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",p={className:"number",variants:[{begin:`(\\b(${c})((${d})|\\.)?|(${d}))[eE][+-]?(${a})\\b`},{begin:`\\b(${c})\\b((${d})\\b|\\.)?|(${d})\\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},f={className:"subst",begin:"\\$\\{",end:"\\}",keywords:l,contains:[]},_={begin:"html`",end:"",starts:{end:"`",returnEnd:!1,contains:[i.BACKSLASH_ESCAPE,f],subLanguage:"xml"}},N={begin:"css`",end:"",starts:{end:"`",returnEnd:!1,contains:[i.BACKSLASH_ESCAPE,f],subLanguage:"css"}},P={begin:"gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[i.BACKSLASH_ESCAPE,f],subLanguage:"graphql"}},b={className:"string",begin:"`",end:"`",contains:[i.BACKSLASH_ESCAPE,f]},Z={className:"comment",variants:[i.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}]}]}),i.C_BLOCK_COMMENT_MODE,i.C_LINE_COMMENT_MODE]},J=[i.APOS_STRING_MODE,i.QUOTE_STRING_MODE,_,N,P,b,{match:/\$\d+/},p];f.contains=J.concat({begin:/\{/,end:/\}/,keywords:l,contains:["self"].concat(J)});const ue=[].concat(Z,f.contains),z=ue.concat([{begin:/\(/,end:/\)/,keywords:l,contains:["self"].concat(ue)}]),X={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:l,contains:z},Be={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"}}]},ke={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:{_:[...qs,...Gs]}},W={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},L={variants:[{match:[/function/,/\s+/,n,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[X],illegal:/%/},pe={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function lt(h){return e.concat("(?!",h.join("|"),")")}const Ht={match:e.concat(/\b/,lt([...Ks,"super","import"]),n,e.lookahead(/\(/)),className:"title.function",relevance:0},Wt={begin:e.concat(/\./,e.lookahead(e.concat(n,/(?![0-9A-Za-z$_(])/))),end:n,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},Vt={match:[/get|set/,/\s+/,n,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},X]},fe="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+i.UNDERSCORE_IDENT_RE+")\\s*=>",qt={match:[/const|var|let/,/\s+/,n,/\s*/,/=\s*/,/(async\s*)?/,e.lookahead(fe)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[X]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:l,exports:{PARAMS_CONTAINS:z,CLASS_REFERENCE:ke},illegal:/#(?![$_A-z])/,contains:[i.SHEBANG({label:"shebang",binary:"node",relevance:5}),W,i.APOS_STRING_MODE,i.QUOTE_STRING_MODE,_,N,P,b,Z,{match:/\$\d+/},p,ke,{className:"attr",begin:n+e.lookahead(":"),relevance:0},qt,{begin:"("+i.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[Z,i.REGEXP_MODE,{className:"function",begin:fe,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:i.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:l,contains:z}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:s.begin,end:s.end},{match:o},{begin:r.begin,"on:begin":r.isTrulyOpeningTag,end:r.end}],subLanguage:"xml",contains:[{begin:r.begin,end:r.end,skip:!0,contains:["self"]}]}]},L,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+i.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[X,i.inherit(i.TITLE_MODE,{begin:n,className:"title.function"})]},{match:/\.\.\./,relevance:0},Wt,{match:"\\$"+n,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[X]},Ht,pe,Be,Vt,{match:/\$[(.]/}]}}function dd(i){const e=ad(i),t=Pt,n=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],s={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]},r={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},l=["type","namespace","interface","public","private","protected","implements","declare","abstract","readonly","enum","override"],a={$pattern:Pt,keyword:Ws.concat(l),literal:Vs,built_in:Js.concat(n),"variable.language":Zs},d={className:"meta",begin:"@"+t},c=(f,_,N)=>{const P=f.contains.findIndex(b=>b.label===_);if(P===-1)throw new Error("can not find mode to replace");f.contains.splice(P,1,N)};Object.assign(e.keywords,a),e.exports.PARAMS_CONTAINS.push(d),e.contains=e.contains.concat([d,s,o]),c(e,"shebang",i.SHEBANG()),c(e,"use_strict",r);const p=e.contains.find(f=>f.label==="func.def");return p.relevance=0,Object.assign(e,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),e}function cd(i){const e=i.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,s={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/}]},r=i.inherit(o,{begin:/\(/,end:/\)/}),l=i.inherit(i.APOS_STRING_MODE,{className:"string"}),a=i.inherit(i.QUOTE_STRING_MODE,{className:"string"}),d={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:[s]},{begin:/'/,end:/'/,contains:[s]},{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,a,l,r,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[o,r,a,l]}]}]},i.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},s,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[a]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[d],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[d],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:d}]},{className:"tag",begin:e.concat(/<\//,e.lookahead(e.concat(t,/>/))),contains:[{className:"name",begin:t,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}const hd=i=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:i.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:[i.APOS_STRING_MODE,i.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:i.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_-]*/}}),ud=["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"],pd=["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"],fd=["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"],gd=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],md=["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 bd(i){const e=i.regex,t=hd(i),n={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},s="and or not only",o=/@-?\w[\w]*(-\w+)*/,r="[a-zA-Z-][a-zA-Z0-9_-]*",l=[i.APOS_STRING_MODE,i.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:"\\."+r,relevance:0},t.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+fd.join("|")+")"},{begin:":(:)?("+gd.join("|")+")"}]},t.CSS_VARIABLE,{className:"attribute",begin:"\\b("+md.join("|")+")\\b"},{begin:/:/,end:/[;}{]/,contains:[t.BLOCK_COMMENT,t.HEXCOLOR,t.IMPORTANT,t.CSS_NUMBER_MODE,...l,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[...l,{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:s,attribute:pd.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...l,t.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+ud.join("|")+")\\b"}]}}const Xs=document.createElement("style");Xs.innerText=[ua,pa].join(`
|
|
573
|
-
`);document.head.appendChild(
|
|
574
|
-
`).trim();return
|
|
569
|
+
`)&&(d=`\r
|
|
570
|
+
`),this.css+=d+"/*# sourceMappingURL="+l+" */"}applyPrevMaps(){for(let l of this.previous()){let d=this.toUrl(this.path(l.file)),p=l.root||s(l.file),g;this.mapOpts.sourcesContent===!1?(g=new t(l.text),g.sourcesContent&&(g.sourcesContent=null)):g=l.consumer(),this.map.applySourceMap(g,d,this.toUrl(this.path(p)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let l;for(let d=this.root.nodes.length-1;d>=0;d--)l=this.root.nodes[d],l.type==="comment"&&l.text.startsWith("# sourceMappingURL=")&&this.root.removeChild(d)}else this.css&&(this.css=this.css.replace(/\n*\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),h&&m&&this.isMap())return this.generateMap();{let l="";return this.stringify(this.root,d=>{l+=d}),[l]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let l=this.previous()[0].consumer();l.file=this.outputFile(),this.map=o.fromSourceMap(l,{ignoreInvalidMapping:!0})}else this.map=new o({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 o({file:this.outputFile(),ignoreInvalidMapping:!0});let l=1,d=1,p="<no source>",g={generated:{column:0,line:0},original:{column:0,line:0},source:""},b,_;this.stringify(this.root,(S,w,x)=>{if(this.css+=S,w&&x!=="end"&&(g.generated.line=l,g.generated.column=d-1,w.source&&w.source.start?(g.source=this.sourcePath(w),g.original.line=w.source.start.line,g.original.column=w.source.start.column-1,this.map.addMapping(g)):(g.source=p,g.original.line=1,g.original.column=0,this.map.addMapping(g))),_=S.match(/\n/g),_?(l+=_.length,b=S.lastIndexOf(`
|
|
571
|
+
`),d=S.length-b):d+=S.length,w&&x!=="start"){let y=w.parent||{raws:{}};(!(w.type==="decl"||w.type==="atrule"&&!w.nodes)||w!==y.last||y.raws.semicolon)&&(w.source&&w.source.end?(g.source=this.sourcePath(w),g.original.line=w.source.end.line,g.original.column=w.source.end.column-1,g.generated.line=l,g.generated.column=d-2,this.map.addMapping(g)):(g.source=p,g.original.line=1,g.original.column=0,g.generated.line=l,g.generated.column=d-1,this.map.addMapping(g)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(l=>l.annotation):!0}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let l=this.mapOpts.annotation;return typeof l<"u"&&l!==!0?!1:this.previous().length?this.previous().some(d=>d.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(l=>l.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(l){if(this.mapOpts.absolute||l.charCodeAt(0)===60||/^\w+:\/\//.test(l))return l;let d=this.memoizedPaths.get(l);if(d)return d;let p=this.opts.to?s(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(p=s(n(p,this.mapOpts.annotation)));let g=e(p,l);return this.memoizedPaths.set(l,g),g}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(l=>{if(l.source&&l.source.input.map){let d=l.source.input.map;this.previousMaps.includes(d)||this.previousMaps.push(d)}});else{let l=new u(this.originalCSS,this.opts);l.map&&this.previousMaps.push(l.map)}return this.previousMaps}setSourcesContent(){let l={};if(this.root)this.root.walk(d=>{if(d.source){let p=d.source.input.from;if(p&&!l[p]){l[p]=!0;let g=this.usesFileUrls?this.toFileUrl(p):this.toUrl(this.path(p));this.map.setSourceContent(g,d.source.input.css)}}});else if(this.css){let d=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(d,this.css)}}sourcePath(l){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(l.source.input.from):this.toUrl(this.path(l.source.input.from))}toBase64(l){return Buffer?Buffer.from(l).toString("base64"):window.btoa(unescape(encodeURIComponent(l)))}toFileUrl(l){let d=this.memoizedFileURLs.get(l);if(d)return d;if(r){let p=r(l).toString();return this.memoizedFileURLs.set(l,p),p}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(l){let d=this.memoizedURLs.get(l);if(d)return d;i==="\\"&&(l=l.replace(/\\/g,"/"));let p=encodeURI(l).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(l,p),p}}return wn=a,wn}var vn,zi;function $o(){if(zi)return vn;zi=1;const s=39,e=34,n=92,i=47,t=10,o=32,r=12,u=9,m=13,h=91,a=93,c=40,l=41,d=123,p=125,g=59,b=42,_=58,S=64,w=/[\t\n\f\r "#'()/;[\\\]{}]/g,x=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,y=/.[\r\n"'(/\\]/,k=/[\da-f]/i;return vn=function(T,U={}){let P=T.css.valueOf(),J=U.ignoreErrors,H,Me,he,O,We,G,Y,ae,le,Ee,Te=P.length,D=0,nt=[],Ge=[];function Ht(){return D}function it(Ce){throw T.error("Unclosed "+Ce,D)}function Wt(){return Ge.length===0&&D>=Te}function Ve(Ce){if(Ge.length)return Ge.pop();if(D>=Te)return;let st=Ce?Ce.ignoreUnclosed:!1;switch(H=P.charCodeAt(D),H){case t:case o:case u:case m:case r:{O=D;do O+=1,H=P.charCodeAt(O);while(H===o||H===t||H===u||H===m||H===r);G=["space",P.slice(D,O)],D=O-1;break}case h:case a:case d:case p:case _:case g:case l:{let wt=String.fromCharCode(H);G=[wt,wt,D];break}case c:{if(Ee=nt.length?nt.pop()[1]:"",le=P.charCodeAt(D+1),Ee==="url"&&le!==s&&le!==e&&le!==o&&le!==t&&le!==u&&le!==r&&le!==m){O=D;do{if(Y=!1,O=P.indexOf(")",O+1),O===-1)if(J||st){O=D;break}else it("bracket");for(ae=O;P.charCodeAt(ae-1)===n;)ae-=1,Y=!Y}while(Y);G=["brackets",P.slice(D,O+1),D,O],D=O}else O=P.indexOf(")",D+1),Me=P.slice(D,O+1),O===-1||y.test(Me)?G=["(","(",D]:(G=["brackets",Me,D,O],D=O);break}case s:case e:{We=H===s?"'":'"',O=D;do{if(Y=!1,O=P.indexOf(We,O+1),O===-1)if(J||st){O=D+1;break}else it("string");for(ae=O;P.charCodeAt(ae-1)===n;)ae-=1,Y=!Y}while(Y);G=["string",P.slice(D,O+1),D,O],D=O;break}case S:{w.lastIndex=D+1,w.test(P),w.lastIndex===0?O=P.length-1:O=w.lastIndex-2,G=["at-word",P.slice(D,O+1),D,O],D=O;break}case n:{for(O=D,he=!0;P.charCodeAt(O+1)===n;)O+=1,he=!he;if(H=P.charCodeAt(O+1),he&&H!==i&&H!==o&&H!==t&&H!==u&&H!==m&&H!==r&&(O+=1,k.test(P.charAt(O)))){for(;k.test(P.charAt(O+1));)O+=1;P.charCodeAt(O+1)===o&&(O+=1)}G=["word",P.slice(D,O+1),D,O],D=O;break}default:{H===i&&P.charCodeAt(D+1)===b?(O=P.indexOf("*/",D+2)+1,O===0&&(J||st?O=P.length:it("comment")),G=["comment",P.slice(D,O+1),D,O],D=O):(x.lastIndex=D+1,x.test(P),x.lastIndex===0?O=P.length-1:O=x.lastIndex-2,G=["word",P.slice(D,O+1),D,O],nt.push(G),D=O);break}}return D++,G}function Gt(Ce){Ge.push(Ce)}return{back:Gt,endOfFile:Wt,nextToken:Ve,position:Ht}},vn}var _n,Ui;function Oo(){if(Ui)return _n;Ui=1;let s=qn(),e=zt(),n=Ut(),i=xt(),t=Wn(),o=$o();const r={empty:!0,space:!0};function u(h){for(let a=h.length-1;a>=0;a--){let c=h[a],l=c[3]||c[2];if(l)return l}}class m{constructor(a){this.input=a,this.root=new i,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:a,start:{column:1,line:1,offset:0}}}atrule(a){let c=new s;c.name=a[1].slice(1),c.name===""&&this.unnamedAtrule(c,a),this.init(c,a[2]);let l,d,p,g=!1,b=!1,_=[],S=[];for(;!this.tokenizer.endOfFile();){if(a=this.tokenizer.nextToken(),l=a[0],l==="("||l==="["?S.push(l==="("?")":"]"):l==="{"&&S.length>0?S.push("}"):l===S[S.length-1]&&S.pop(),S.length===0)if(l===";"){c.source.end=this.getPosition(a[2]),c.source.end.offset++,this.semicolon=!0;break}else if(l==="{"){b=!0;break}else if(l==="}"){if(_.length>0){for(p=_.length-1,d=_[p];d&&d[0]==="space";)d=_[--p];d&&(c.source.end=this.getPosition(d[3]||d[2]),c.source.end.offset++)}this.end(a);break}else _.push(a);else _.push(a);if(this.tokenizer.endOfFile()){g=!0;break}}c.raws.between=this.spacesAndCommentsFromEnd(_),_.length?(c.raws.afterName=this.spacesAndCommentsFromStart(_),this.raw(c,"params",_),g&&(a=_[_.length-1],c.source.end=this.getPosition(a[3]||a[2]),c.source.end.offset++,this.spaces=c.raws.between,c.raws.between="")):(c.raws.afterName="",c.params=""),b&&(c.nodes=[],this.current=c)}checkMissedSemicolon(a){let c=this.colon(a);if(c===!1)return;let l=0,d;for(let p=c-1;p>=0&&(d=a[p],!(d[0]!=="space"&&(l+=1,l===2)));p--);throw this.input.error("Missed semicolon",d[0]==="word"?d[3]+1:d[2])}colon(a){let c=0,l,d,p;for(let[g,b]of a.entries()){if(d=b,p=d[0],p==="("&&(c+=1),p===")"&&(c-=1),c===0&&p===":")if(!l)this.doubleColon(d);else{if(l[0]==="word"&&l[1]==="progid")continue;return g}l=d}return!1}comment(a){let c=new e;this.init(c,a[2]),c.source.end=this.getPosition(a[3]||a[2]),c.source.end.offset++;let l=a[1].slice(2,-2);if(/^\s*$/.test(l))c.text="",c.raws.left=l,c.raws.right="";else{let d=l.match(/^(\s*)([^]*\S)(\s*)$/);c.text=d[2],c.raws.left=d[1],c.raws.right=d[3]}}createTokenizer(){this.tokenizer=o(this.input)}decl(a,c){let l=new n;this.init(l,a[0][2]);let d=a[a.length-1];for(d[0]===";"&&(this.semicolon=!0,a.pop()),l.source.end=this.getPosition(d[3]||d[2]||u(a)),l.source.end.offset++;a[0][0]!=="word";)a.length===1&&this.unknownWord(a),l.raws.before+=a.shift()[1];for(l.source.start=this.getPosition(a[0][2]),l.prop="";a.length;){let S=a[0][0];if(S===":"||S==="space"||S==="comment")break;l.prop+=a.shift()[1]}l.raws.between="";let p;for(;a.length;)if(p=a.shift(),p[0]===":"){l.raws.between+=p[1];break}else p[0]==="word"&&/\w/.test(p[1])&&this.unknownWord([p]),l.raws.between+=p[1];(l.prop[0]==="_"||l.prop[0]==="*")&&(l.raws.before+=l.prop[0],l.prop=l.prop.slice(1));let g=[],b;for(;a.length&&(b=a[0][0],!(b!=="space"&&b!=="comment"));)g.push(a.shift());this.precheckMissedSemicolon(a);for(let S=a.length-1;S>=0;S--){if(p=a[S],p[1].toLowerCase()==="!important"){l.important=!0;let w=this.stringFrom(a,S);w=this.spacesFromEnd(a)+w,w!==" !important"&&(l.raws.important=w);break}else if(p[1].toLowerCase()==="important"){let w=a.slice(0),x="";for(let y=S;y>0;y--){let k=w[y][0];if(x.trim().startsWith("!")&&k!=="space")break;x=w.pop()[1]+x}x.trim().startsWith("!")&&(l.important=!0,l.raws.important=x,a=w)}if(p[0]!=="space"&&p[0]!=="comment")break}a.some(S=>S[0]!=="space"&&S[0]!=="comment")&&(l.raws.between+=g.map(S=>S[1]).join(""),g=[]),this.raw(l,"value",g.concat(a),c),l.value.includes(":")&&!c&&this.checkMissedSemicolon(a)}doubleColon(a){throw this.input.error("Double colon",{offset:a[2]},{offset:a[2]+a[1].length})}emptyRule(a){let c=new t;this.init(c,a[2]),c.selector="",c.raws.between="",this.current=c}end(a){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(a[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(a)}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(a){if(this.spaces+=a[1],this.current.nodes){let c=this.current.nodes[this.current.nodes.length-1];c&&c.type==="rule"&&!c.raws.ownSemicolon&&(c.raws.ownSemicolon=this.spaces,this.spaces="",c.source.end=this.getPosition(a[2]),c.source.end.offset+=c.raws.ownSemicolon.length)}}getPosition(a){let c=this.input.fromOffset(a);return{column:c.col,line:c.line,offset:a}}init(a,c){this.current.push(a),a.source={input:this.input,start:this.getPosition(c)},a.raws.before=this.spaces,this.spaces="",a.type!=="comment"&&(this.semicolon=!1)}other(a){let c=!1,l=null,d=!1,p=null,g=[],b=a[1].startsWith("--"),_=[],S=a;for(;S;){if(l=S[0],_.push(S),l==="("||l==="[")p||(p=S),g.push(l==="("?")":"]");else if(b&&d&&l==="{")p||(p=S),g.push("}");else if(g.length===0)if(l===";")if(d){this.decl(_,b);return}else break;else if(l==="{"){this.rule(_);return}else if(l==="}"){this.tokenizer.back(_.pop()),c=!0;break}else l===":"&&(d=!0);else l===g[g.length-1]&&(g.pop(),g.length===0&&(p=null));S=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(c=!0),g.length>0&&this.unclosedBracket(p),c&&d){if(!b)for(;_.length&&(S=_[_.length-1][0],!(S!=="space"&&S!=="comment"));)this.tokenizer.back(_.pop());this.decl(_,b)}else this.unknownWord(_)}parse(){let a;for(;!this.tokenizer.endOfFile();)switch(a=this.tokenizer.nextToken(),a[0]){case"space":this.spaces+=a[1];break;case";":this.freeSemicolon(a);break;case"}":this.end(a);break;case"comment":this.comment(a);break;case"at-word":this.atrule(a);break;case"{":this.emptyRule(a);break;default:this.other(a);break}this.endFile()}precheckMissedSemicolon(){}raw(a,c,l,d){let p,g,b=l.length,_="",S=!0,w,x;for(let y=0;y<b;y+=1)p=l[y],g=p[0],g==="space"&&y===b-1&&!d?S=!1:g==="comment"?(x=l[y-1]?l[y-1][0]:"empty",w=l[y+1]?l[y+1][0]:"empty",!r[x]&&!r[w]?_.slice(-1)===","?S=!1:_+=p[1]:S=!1):_+=p[1];if(!S){let y=l.reduce((k,A)=>k+A[1],"");a.raws[c]={raw:y,value:_}}a[c]=_}rule(a){a.pop();let c=new t;this.init(c,a[0][2]),c.raws.between=this.spacesAndCommentsFromEnd(a),this.raw(c,"selector",a),this.current=c}spacesAndCommentsFromEnd(a){let c,l="";for(;a.length&&(c=a[a.length-1][0],!(c!=="space"&&c!=="comment"));)l=a.pop()[1]+l;return l}spacesAndCommentsFromStart(a){let c,l="";for(;a.length&&(c=a[0][0],!(c!=="space"&&c!=="comment"));)l+=a.shift()[1];return l}spacesFromEnd(a){let c,l="";for(;a.length&&(c=a[a.length-1][0],c==="space");)l=a.pop()[1]+l;return l}stringFrom(a,c){let l="";for(let d=c;d<a.length;d++)l+=a[d][1];return a.splice(c,a.length-c),l}unclosedBlock(){let a=this.current.source.start;throw this.input.error("Unclosed block",a.line,a.column)}unclosedBracket(a){throw this.input.error("Unclosed bracket",{offset:a[2]},{offset:a[2]+1})}unexpectedClose(a){throw this.input.error("Unexpected }",{offset:a[2]},{offset:a[2]+1})}unknownWord(a){throw this.input.error("Unknown word "+a[0][1],{offset:a[0][2]},{offset:a[0][2]+a[0][1].length})}unnamedAtrule(a,c){throw this.input.error("At-rule without name",{offset:c[2]},{offset:c[2]+c[1].length})}}return _n=m,_n}var Sn,Fi;function Gn(){if(Fi)return Sn;Fi=1;let s=He(),e=Ft(),n=Oo();function i(t,o){let r=new e(t,o),u=new n(r);try{u.parse()}catch(m){throw m}return u.root}return Sn=i,i.default=i,s.registerParse(i),Sn}var kn,qi;function ps(){if(qi)return kn;qi=1;class s{constructor(n,i={}){if(this.type="warning",this.text=n,i.node&&i.node.source){let t=i.node.rangeBy(i);this.line=t.start.line,this.column=t.start.column,this.endLine=t.end.line,this.endColumn=t.end.column}for(let t in i)this[t]=i[t]}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 kn=s,s.default=s,kn}var En,Hi;function Vn(){if(Hi)return En;Hi=1;let s=ps();class e{get content(){return this.css}constructor(i,t,o){this.processor=i,this.messages=[],this.root=t,this.opts=o,this.css="",this.map=void 0}toString(){return this.css}warn(i,t={}){t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);let o=new s(i,t);return this.messages.push(o),o}warnings(){return this.messages.filter(i=>i.type==="warning")}}return En=e,e.default=e,En}var Cn,Wi;function gs(){if(Wi)return Cn;Wi=1;let s=He(),e=Hn(),n=fs(),i=Gn(),t=Vn(),o=xt(),r=Bt(),{isClean:u,my:m}=Fn();const h={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},a={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},c={Once:!0,postcssPlugin:!0,prepare:!0},l=0;function d(w){return typeof w=="object"&&typeof w.then=="function"}function p(w){let x=!1,y=h[w.type];return w.type==="decl"?x=w.prop.toLowerCase():w.type==="atrule"&&(x=w.name.toLowerCase()),x&&w.append?[y,y+"-"+x,l,y+"Exit",y+"Exit-"+x]:x?[y,y+"-"+x,y+"Exit",y+"Exit-"+x]:w.append?[y,l,y+"Exit"]:[y,y+"Exit"]}function g(w){let x;return w.type==="document"?x=["Document",l,"DocumentExit"]:w.type==="root"?x=["Root",l,"RootExit"]:x=p(w),{eventIndex:0,events:x,iterator:0,node:w,visitorIndex:0,visitors:[]}}function b(w){return w[u]=!1,w.nodes&&w.nodes.forEach(x=>b(x)),w}let _={};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(x,y,k){this.stringified=!1,this.processed=!1;let A;if(typeof y=="object"&&y!==null&&(y.type==="root"||y.type==="document"))A=b(y);else if(y instanceof S||y instanceof t)A=b(y.root),y.map&&(typeof k.map>"u"&&(k.map={}),k.map.inline||(k.map.inline=!1),k.map.prev=y.map);else{let T=i;k.syntax&&(T=k.syntax.parse),k.parser&&(T=k.parser),T.parse&&(T=T.parse);try{A=T(y,k)}catch(U){this.processed=!0,this.error=U}A&&!A[m]&&s.rebuild(A)}this.result=new t(x,A,k),this.helpers={..._,postcss:_,result:this.result},this.plugins=this.processor.plugins.map(T=>typeof T=="object"&&T.prepare?{...T,...T.prepare(this.result)}:T)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(x){return this.async().catch(x)}finally(x){return this.async().then(x,x)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(x,y){let k=this.result.lastPlugin;try{y&&y.addToError(x),this.error=x,x.name==="CssSyntaxError"&&!x.plugin?(x.plugin=k.postcssPlugin,x.setMessage()):k.postcssVersion}catch(A){console&&console.error&&console.error(A)}return x}prepareVisitors(){this.listeners={};let x=(y,k,A)=>{this.listeners[k]||(this.listeners[k]=[]),this.listeners[k].push([y,A])};for(let y of this.plugins)if(typeof y=="object")for(let k in y){if(!a[k]&&/^[A-Z]/.test(k))throw new Error(`Unknown event ${k} in ${y.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!c[k])if(typeof y[k]=="object")for(let A in y[k])A==="*"?x(y,k,y[k][A]):x(y,k+"-"+A.toLowerCase(),y[k][A]);else typeof y[k]=="function"&&x(y,k,y[k])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let x=0;x<this.plugins.length;x++){let y=this.plugins[x],k=this.runOnRoot(y);if(d(k))try{await k}catch(A){throw this.handleError(A)}}if(this.prepareVisitors(),this.hasListener){let x=this.result.root;for(;!x[u];){x[u]=!0;let y=[g(x)];for(;y.length>0;){let k=this.visitTick(y);if(d(k))try{await k}catch(A){let T=y[y.length-1].node;throw this.handleError(A,T)}}}if(this.listeners.OnceExit)for(let[y,k]of this.listeners.OnceExit){this.result.lastPlugin=y;try{if(x.type==="document"){let A=x.nodes.map(T=>k(T,this.helpers));await Promise.all(A)}else await k(x,this.helpers)}catch(A){throw this.handleError(A)}}}return this.processed=!0,this.stringify()}runOnRoot(x){this.result.lastPlugin=x;try{if(typeof x=="object"&&x.Once){if(this.result.root.type==="document"){let y=this.result.root.nodes.map(k=>x.Once(k,this.helpers));return d(y[0])?Promise.all(y):y}return x.Once(this.result.root,this.helpers)}else if(typeof x=="function")return x(this.result.root,this.result)}catch(y){throw this.handleError(y)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let x=this.result.opts,y=r;x.syntax&&(y=x.syntax.stringify),x.stringifier&&(y=x.stringifier),y.stringify&&(y=y.stringify);let A=new n(y,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 x of this.plugins){let y=this.runOnRoot(x);if(d(y))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let x=this.result.root;for(;!x[u];)x[u]=!0,this.walkSync(x);if(this.listeners.OnceExit)if(x.type==="document")for(let y of x.nodes)this.visitSync(this.listeners.OnceExit,y);else this.visitSync(this.listeners.OnceExit,x)}return this.result}then(x,y){return this.async().then(x,y)}toString(){return this.css}visitSync(x,y){for(let[k,A]of x){this.result.lastPlugin=k;let T;try{T=A(y,this.helpers)}catch(U){throw this.handleError(U,y.proxyOf)}if(y.type!=="root"&&y.type!=="document"&&!y.parent)return!0;if(d(T))throw this.getAsyncError()}}visitTick(x){let y=x[x.length-1],{node:k,visitors:A}=y;if(k.type!=="root"&&k.type!=="document"&&!k.parent){x.pop();return}if(A.length>0&&y.visitorIndex<A.length){let[U,P]=A[y.visitorIndex];y.visitorIndex+=1,y.visitorIndex===A.length&&(y.visitors=[],y.visitorIndex=0),this.result.lastPlugin=U;try{return P(k.toProxy(),this.helpers)}catch(J){throw this.handleError(J,k)}}if(y.iterator!==0){let U=y.iterator,P;for(;P=k.nodes[k.indexes[U]];)if(k.indexes[U]+=1,!P[u]){P[u]=!0,x.push(g(P));return}y.iterator=0,delete k.indexes[U]}let T=y.events;for(;y.eventIndex<T.length;){let U=T[y.eventIndex];if(y.eventIndex+=1,U===l){k.nodes&&k.nodes.length&&(k[u]=!0,y.iterator=k.getIterator());return}else if(this.listeners[U]){y.visitors=this.listeners[U];return}}x.pop()}walkSync(x){x[u]=!0;let y=p(x);for(let k of y)if(k===l)x.nodes&&x.each(A=>{A[u]||this.walkSync(A)});else{let A=this.listeners[k];if(A&&this.visitSync(A,x.toProxy()))return}}warnings(){return this.sync().warnings()}}return S.registerPostcss=w=>{_=w},Cn=S,S.default=S,o.registerLazyResult(S),e.registerLazyResult(S),Cn}var Nn,Gi;function Io(){if(Gi)return Nn;Gi=1;let s=fs(),e=Gn();const n=Vn();let i=Bt();class t{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 r,u=e;try{r=u(this._css,this._opts)}catch(m){this.error=m}if(this.error)throw this.error;return this._root=r,r}get[Symbol.toStringTag](){return"NoWorkResult"}constructor(r,u,m){u=u.toString(),this.stringified=!1,this._processor=r,this._css=u,this._opts=m,this._map=void 0;let h,a=i;this.result=new n(this._processor,h,this._opts),this.result.css=u;let c=this;Object.defineProperty(this.result,"root",{get(){return c.root}});let l=new s(a,h,this._opts,u);if(l.isMap()){let[d,p]=l.generate();d&&(this.result.css=d),p&&(this.result.map=p)}else l.clearAnnotation(),this.result.css=l.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(r){return this.async().catch(r)}finally(r){return this.async().then(r,r)}sync(){if(this.error)throw this.error;return this.result}then(r,u){return this.async().then(r,u)}toString(){return this._css}warnings(){return[]}}return Nn=t,t.default=t,Nn}var An,Vi;function Ro(){if(Vi)return An;Vi=1;let s=Hn(),e=gs(),n=Io(),i=xt();class t{constructor(r=[]){this.version="8.5.6",this.plugins=this.normalize(r)}normalize(r){let u=[];for(let m of r)if(m.postcss===!0?m=m():m.postcss&&(m=m.postcss),typeof m=="object"&&Array.isArray(m.plugins))u=u.concat(m.plugins);else if(typeof m=="object"&&m.postcssPlugin)u.push(m);else if(typeof m=="function")u.push(m);else if(!(typeof m=="object"&&(m.parse||m.stringify)))throw new Error(m+" is not a PostCSS plugin");return u}process(r,u={}){return!this.plugins.length&&!u.parser&&!u.stringifier&&!u.syntax?new n(this,r,u):new e(this,r,u)}use(r){return this.plugins=this.plugins.concat(this.normalize([r])),this}}return An=t,t.default=t,i.registerProcessor(t),s.registerProcessor(t),An}var $n,Ki;function Po(){if(Ki)return $n;Ki=1;var s={};let e=qn(),n=zt(),i=He(),t=Un(),o=Ut(),r=Hn(),u=Ao(),m=Ft(),h=gs(),a=us(),c=jt(),l=Gn(),d=Ro(),p=Vn(),g=xt(),b=Wn(),_=Bt(),S=ps();function w(...x){return x.length===1&&Array.isArray(x[0])&&(x=x[0]),new d(x)}return w.plugin=function(y,k){let A=!1;function T(...P){console&&console.warn&&!A&&(A=!0,console.warn(y+`: postcss.plugin was deprecated. Migration guide:
|
|
572
|
+
https://evilmartians.com/chronicles/postcss-8-plugin-migration`),s.LANG&&s.LANG.startsWith("cn")&&console.warn(y+`: 里面 postcss.plugin 被弃用. 迁移指南:
|
|
573
|
+
https://www.w3ctech.com/topic/2226`));let J=k(...P);return J.postcssPlugin=y,J.postcssVersion=new d().version,J}let U;return Object.defineProperty(T,"postcss",{get(){return U||(U=T()),U}}),T.process=function(P,J,H){return w([T(H)]).process(P,J)},T},w.stringify=_,w.parse=l,w.fromJSON=u,w.list=a,w.comment=x=>new n(x),w.atRule=x=>new e(x),w.decl=x=>new o(x),w.rule=x=>new b(x),w.root=x=>new g(x),w.document=x=>new r(x),w.CssSyntaxError=t,w.Declaration=o,w.Container=i,w.Processor=d,w.Document=r,w.Comment=n,w.Warning=S,w.AtRule=e,w.Result=p,w.Input=m,w.Rule=b,w.Root=g,w.Node=c,h.registerPostcss(w),$n=w,w.default=w,$n}var Mo=Po();const Z=ds(Mo);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 On,Zi;function To(){if(Zi)return On;Zi=1;const s=(i={})=>{const t=i.prefix,o=/\s+$/.test(t)?t:`${t} `,r=i.ignoreFiles?[].concat(i.ignoreFiles):[],u=i.includeFiles?[].concat(i.includeFiles):[];return{postcssPlugin:"postcss-prefix-selector",prepare(m){const h=m.root,a=h.source.input.file;if(!(r.length&&a&&e(a,r))&&!(u.length&&a&&!e(a,u)))return{Rule(c,{result:l}){const d=["keyframes","-webkit-keyframes","-moz-keyframes","-o-keyframes","-ms-keyframes"];c.parent&&d.includes(c.parent.name)||(c.selectors=c.selectors.map(p=>i.exclude&&n(p,i.exclude)?p:i.transform?i.transform(t,p,o+p,h.source.input.file,c):[":root","body","html"].some(g=>p.startsWith(g))?i.skipGlobalSelectors?p:p.replace(/(html\s+body|:root\s+body|html|:root|body)/gm,t):o+p))}}}}};function e(i,t){return t.some(o=>o instanceof RegExp?o.test(i):i.includes(o))}function n(i,t){return t.some(o=>o instanceof RegExp?o.test(i):i===o)}return s.postcss=!0,On=s,On}var Lo=To();const Do=ds(Lo),Bo="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}",jo="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 zo(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}var In,Ji;function Uo(){if(Ji)return In;Ji=1;function s(f){return f instanceof Map?f.clear=f.delete=f.set=function(){throw new Error("map is read-only")}:f instanceof Set&&(f.add=f.clear=f.delete=function(){throw new Error("set is read-only")}),Object.freeze(f),Object.getOwnPropertyNames(f).forEach(v=>{const N=f[v],j=typeof N;(j==="object"||j==="function")&&!Object.isFrozen(N)&&s(N)}),f}class e{constructor(v){v.data===void 0&&(v.data={}),this.data=v.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function n(f){return f.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function i(f,...v){const N=Object.create(null);for(const j in f)N[j]=f[j];return v.forEach(function(j){for(const X in j)N[X]=j[X]}),N}const t="</span>",o=f=>!!f.scope,r=(f,{prefix:v})=>{if(f.startsWith("language:"))return f.replace("language:","language-");if(f.includes(".")){const N=f.split(".");return[`${v}${N.shift()}`,...N.map((j,X)=>`${j}${"_".repeat(X+1)}`)].join(" ")}return`${v}${f}`};class u{constructor(v,N){this.buffer="",this.classPrefix=N.classPrefix,v.walk(this)}addText(v){this.buffer+=n(v)}openNode(v){if(!o(v))return;const N=r(v.scope,{prefix:this.classPrefix});this.span(N)}closeNode(v){o(v)&&(this.buffer+=t)}value(){return this.buffer}span(v){this.buffer+=`<span class="${v}">`}}const m=(f={})=>{const v={children:[]};return Object.assign(v,f),v};class h{constructor(){this.rootNode=m(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(v){this.top.children.push(v)}openNode(v){const N=m({scope:v});this.add(N),this.stack.push(N)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(v){return this.constructor._walk(v,this.rootNode)}static _walk(v,N){return typeof N=="string"?v.addText(N):N.children&&(v.openNode(N),N.children.forEach(j=>this._walk(v,j)),v.closeNode(N)),v}static _collapse(v){typeof v!="string"&&v.children&&(v.children.every(N=>typeof N=="string")?v.children=[v.children.join("")]:v.children.forEach(N=>{h._collapse(N)}))}}class a extends h{constructor(v){super(),this.options=v}addText(v){v!==""&&this.add(v)}startScope(v){this.openNode(v)}endScope(){this.closeNode()}__addSublanguage(v,N){const j=v.root;N&&(j.scope=`language:${N}`),this.add(j)}toHTML(){return new u(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function c(f){return f?typeof f=="string"?f:f.source:null}function l(f){return g("(?=",f,")")}function d(f){return g("(?:",f,")*")}function p(f){return g("(?:",f,")?")}function g(...f){return f.map(v=>c(v)).join("")}function b(f){const v=f[f.length-1];return typeof v=="object"&&v.constructor===Object?(f.splice(f.length-1,1),v):{}}function _(...f){return"("+(b(f).capture?"":"?:")+f.map(v=>c(v)).join("|")+")"}function S(f){return new RegExp(f.toString()+"|").exec("").length-1}function w(f,v){const N=f&&f.exec(v);return N&&N.index===0}const x=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function y(f,{joinWith:v}){let N=0;return f.map(j=>{N+=1;const X=N;let Q=c(j),I="";for(;Q.length>0;){const $=x.exec(Q);if(!$){I+=Q;break}I+=Q.substring(0,$.index),Q=Q.substring($.index+$[0].length),$[0][0]==="\\"&&$[1]?I+="\\"+String(Number($[1])+X):(I+=$[0],$[0]==="("&&N++)}return I}).map(j=>`(${j})`).join(v)}const k=/\b\B/,A="[a-zA-Z]\\w*",T="[a-zA-Z_]\\w*",U="\\b\\d+(\\.\\d+)?",P="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",J="\\b(0b[01]+)",H="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",Me=(f={})=>{const v=/^#![ ]*\//;return f.binary&&(f.begin=g(v,/.*\b/,f.binary,/\b.*/)),i({scope:"meta",begin:v,end:/$/,relevance:0,"on:begin":(N,j)=>{N.index!==0&&j.ignoreMatch()}},f)},he={begin:"\\\\[\\s\\S]",relevance:0},O={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[he]},We={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[he]},G={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/},Y=function(f,v,N={}){const j=i({scope:"comment",begin:f,end:v,contains:[]},N);j.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 X=_("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 j.contains.push({begin:g(/[ ]+/,"(",X,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),j},ae=Y("//","$"),le=Y("/\\*","\\*/"),Ee=Y("#","$"),Te={scope:"number",begin:U,relevance:0},D={scope:"number",begin:P,relevance:0},nt={scope:"number",begin:J,relevance:0},Ge={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[he,{begin:/\[/,end:/\]/,relevance:0,contains:[he]}]},Ht={scope:"title",begin:A,relevance:0},it={scope:"title",begin:T,relevance:0},Wt={begin:"\\.\\s*"+T,relevance:0};var Ve=Object.freeze({__proto__:null,APOS_STRING_MODE:O,BACKSLASH_ESCAPE:he,BINARY_NUMBER_MODE:nt,BINARY_NUMBER_RE:J,COMMENT:Y,C_BLOCK_COMMENT_MODE:le,C_LINE_COMMENT_MODE:ae,C_NUMBER_MODE:D,C_NUMBER_RE:P,END_SAME_AS_BEGIN:function(f){return Object.assign(f,{"on:begin":(v,N)=>{N.data._beginMatch=v[1]},"on:end":(v,N)=>{N.data._beginMatch!==v[1]&&N.ignoreMatch()}})},HASH_COMMENT_MODE:Ee,IDENT_RE:A,MATCH_NOTHING_RE:k,METHOD_GUARD:Wt,NUMBER_MODE:Te,NUMBER_RE:U,PHRASAL_WORDS_MODE:G,QUOTE_STRING_MODE:We,REGEXP_MODE:Ge,RE_STARTERS_RE:H,SHEBANG:Me,TITLE_MODE:Ht,UNDERSCORE_IDENT_RE:T,UNDERSCORE_TITLE_MODE:it});function Gt(f,v){f.input[f.index-1]==="."&&v.ignoreMatch()}function Ce(f,v){f.className!==void 0&&(f.scope=f.className,delete f.className)}function st(f,v){v&&f.beginKeywords&&(f.begin="\\b("+f.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",f.__beforeBegin=Gt,f.keywords=f.keywords||f.beginKeywords,delete f.beginKeywords,f.relevance===void 0&&(f.relevance=0))}function wt(f,v){Array.isArray(f.illegal)&&(f.illegal=_(...f.illegal))}function ks(f,v){if(f.match){if(f.begin||f.end)throw new Error("begin & end are not supported with match");f.begin=f.match,delete f.match}}function Es(f,v){f.relevance===void 0&&(f.relevance=1)}const Cs=(f,v)=>{if(!f.beforeMatch)return;if(f.starts)throw new Error("beforeMatch cannot be used with starts");const N=Object.assign({},f);Object.keys(f).forEach(j=>{delete f[j]}),f.keywords=N.keywords,f.begin=g(N.beforeMatch,l(N.begin)),f.starts={relevance:0,contains:[Object.assign(N,{endsParent:!0})]},f.relevance=0,delete N.beforeMatch},Ns=["of","and","for","in","not","or","if","then","parent","list","value"],As="keyword";function Kn(f,v,N=As){const j=Object.create(null);return typeof f=="string"?X(N,f.split(" ")):Array.isArray(f)?X(N,f):Object.keys(f).forEach(function(Q){Object.assign(j,Kn(f[Q],v,Q))}),j;function X(Q,I){v&&(I=I.map($=>$.toLowerCase())),I.forEach(function($){const L=$.split("|");j[L[0]]=[Q,$s(L[0],L[1])]})}}function $s(f,v){return v?Number(v):Os(f)?0:1}function Os(f){return Ns.includes(f.toLowerCase())}const Zn={},Le=f=>{console.error(f)},Jn=(f,...v)=>{console.log(`WARN: ${f}`,...v)},Ke=(f,v)=>{Zn[`${f}/${v}`]||(console.log(`Deprecated as of ${f}. ${v}`),Zn[`${f}/${v}`]=!0)},vt=new Error;function Xn(f,v,{key:N}){let j=0;const X=f[N],Q={},I={};for(let $=1;$<=v.length;$++)I[$+j]=X[$],Q[$+j]=!0,j+=S(v[$-1]);f[N]=I,f[N]._emit=Q,f[N]._multi=!0}function Is(f){if(Array.isArray(f.begin)){if(f.skip||f.excludeBegin||f.returnBegin)throw Le("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),vt;if(typeof f.beginScope!="object"||f.beginScope===null)throw Le("beginScope must be object"),vt;Xn(f,f.begin,{key:"beginScope"}),f.begin=y(f.begin,{joinWith:""})}}function Rs(f){if(Array.isArray(f.end)){if(f.skip||f.excludeEnd||f.returnEnd)throw Le("skip, excludeEnd, returnEnd not compatible with endScope: {}"),vt;if(typeof f.endScope!="object"||f.endScope===null)throw Le("endScope must be object"),vt;Xn(f,f.end,{key:"endScope"}),f.end=y(f.end,{joinWith:""})}}function Ps(f){f.scope&&typeof f.scope=="object"&&f.scope!==null&&(f.beginScope=f.scope,delete f.scope)}function Ms(f){Ps(f),typeof f.beginScope=="string"&&(f.beginScope={_wrap:f.beginScope}),typeof f.endScope=="string"&&(f.endScope={_wrap:f.endScope}),Is(f),Rs(f)}function Ts(f){function v(I,$){return new RegExp(c(I),"m"+(f.case_insensitive?"i":"")+(f.unicodeRegex?"u":"")+($?"g":""))}class N{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule($,L){L.position=this.position++,this.matchIndexes[this.matchAt]=L,this.regexes.push([L,$]),this.matchAt+=S($)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const $=this.regexes.map(L=>L[1]);this.matcherRe=v(y($,{joinWith:"|"}),!0),this.lastIndex=0}exec($){this.matcherRe.lastIndex=this.lastIndex;const L=this.matcherRe.exec($);if(!L)return null;const se=L.findIndex((rt,Kt)=>Kt>0&&rt!==void 0),ee=this.matchIndexes[se];return L.splice(0,se),Object.assign(L,ee)}}class j{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher($){if(this.multiRegexes[$])return this.multiRegexes[$];const L=new N;return this.rules.slice($).forEach(([se,ee])=>L.addRule(se,ee)),L.compile(),this.multiRegexes[$]=L,L}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule($,L){this.rules.push([$,L]),L.type==="begin"&&this.count++}exec($){const L=this.getMatcher(this.regexIndex);L.lastIndex=this.lastIndex;let se=L.exec($);if(this.resumingScanAtSamePosition()&&!(se&&se.index===this.lastIndex)){const ee=this.getMatcher(0);ee.lastIndex=this.lastIndex+1,se=ee.exec($)}return se&&(this.regexIndex+=se.position+1,this.regexIndex===this.count&&this.considerAll()),se}}function X(I){const $=new j;return I.contains.forEach(L=>$.addRule(L.begin,{rule:L,type:"begin"})),I.terminatorEnd&&$.addRule(I.terminatorEnd,{type:"end"}),I.illegal&&$.addRule(I.illegal,{type:"illegal"}),$}function Q(I,$){const L=I;if(I.isCompiled)return L;[Ce,ks,Ms,Cs].forEach(ee=>ee(I,$)),f.compilerExtensions.forEach(ee=>ee(I,$)),I.__beforeBegin=null,[st,wt,Es].forEach(ee=>ee(I,$)),I.isCompiled=!0;let se=null;return typeof I.keywords=="object"&&I.keywords.$pattern&&(I.keywords=Object.assign({},I.keywords),se=I.keywords.$pattern,delete I.keywords.$pattern),se=se||/\w+/,I.keywords&&(I.keywords=Kn(I.keywords,f.case_insensitive)),L.keywordPatternRe=v(se,!0),$&&(I.begin||(I.begin=/\B|\b/),L.beginRe=v(L.begin),!I.end&&!I.endsWithParent&&(I.end=/\B|\b/),I.end&&(L.endRe=v(L.end)),L.terminatorEnd=c(L.end)||"",I.endsWithParent&&$.terminatorEnd&&(L.terminatorEnd+=(I.end?"|":"")+$.terminatorEnd)),I.illegal&&(L.illegalRe=v(I.illegal)),I.contains||(I.contains=[]),I.contains=[].concat(...I.contains.map(function(ee){return Ls(ee==="self"?I:ee)})),I.contains.forEach(function(ee){Q(ee,L)}),I.starts&&Q(I.starts,$),L.matcher=X(L),L}if(f.compilerExtensions||(f.compilerExtensions=[]),f.contains&&f.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return f.classNameAliases=i(f.classNameAliases||{}),Q(f)}function Qn(f){return f?f.endsWithParent||Qn(f.starts):!1}function Ls(f){return f.variants&&!f.cachedVariants&&(f.cachedVariants=f.variants.map(function(v){return i(f,{variants:null},v)})),f.cachedVariants?f.cachedVariants:Qn(f)?i(f,{starts:f.starts?i(f.starts):null}):Object.isFrozen(f)?i(f):f}var Ds="11.11.1";class Bs extends Error{constructor(v,N){super(v),this.name="HTMLInjectionError",this.html=N}}const Vt=n,Yn=i,ei=Symbol("nomatch"),js=7,ti=function(f){const v=Object.create(null),N=Object.create(null),j=[];let X=!0;const Q="Could not find the language '{}', did you forget to load/include a language module?",I={disableAutodetect:!0,name:"Plain text",contains:[]};let $={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:a};function L(E){return $.noHighlightRe.test(E)}function se(E){let M=E.className+" ";M+=E.parentNode?E.parentNode.className:"";const q=$.languageDetectRe.exec(M);if(q){const V=Ne(q[1]);return V||(Jn(Q.replace("{}",q[1])),Jn("Falling back to no-highlight mode for this block.",E)),V?q[1]:"no-highlight"}return M.split(/\s+/).find(V=>L(V)||Ne(V))}function ee(E,M,q){let V="",ne="";typeof M=="object"?(V=E,q=M.ignoreIllegals,ne=M.language):(Ke("10.7.0","highlight(lang, code, ...args) has been deprecated."),Ke("10.7.0",`Please use highlight(code, options) instead.
|
|
574
|
+
https://github.com/highlightjs/highlight.js/issues/2277`),ne=E,V=M),q===void 0&&(q=!0);const ge={code:V,language:ne};St("before:highlight",ge);const Ae=ge.result?ge.result:rt(ge.language,ge.code,q);return Ae.code=ge.code,St("after:highlight",Ae),Ae}function rt(E,M,q,V){const ne=Object.create(null);function ge(C,R){return C.keywords[R]}function Ae(){if(!B.keywords){re.addText(K);return}let C=0;B.keywordPatternRe.lastIndex=0;let R=B.keywordPatternRe.exec(K),F="";for(;R;){F+=K.substring(C,R.index);const W=be.case_insensitive?R[0].toLowerCase():R[0],oe=ge(B,W);if(oe){const[_e,nr]=oe;if(re.addText(F),F="",ne[W]=(ne[W]||0)+1,ne[W]<=js&&(Ct+=nr),_e.startsWith("_"))F+=R[0];else{const ir=be.classNameAliases[_e]||_e;me(R[0],ir)}}else F+=R[0];C=B.keywordPatternRe.lastIndex,R=B.keywordPatternRe.exec(K)}F+=K.substring(C),re.addText(F)}function kt(){if(K==="")return;let C=null;if(typeof B.subLanguage=="string"){if(!v[B.subLanguage]){re.addText(K);return}C=rt(B.subLanguage,K,!0,di[B.subLanguage]),di[B.subLanguage]=C._top}else C=Zt(K,B.subLanguage.length?B.subLanguage:null);B.relevance>0&&(Ct+=C.relevance),re.__addSublanguage(C._emitter,C.language)}function de(){B.subLanguage!=null?kt():Ae(),K=""}function me(C,R){C!==""&&(re.startScope(R),re.addText(C),re.endScope())}function ri(C,R){let F=1;const W=R.length-1;for(;F<=W;){if(!C._emit[F]){F++;continue}const oe=be.classNameAliases[C[F]]||C[F],_e=R[F];oe?me(_e,oe):(K=_e,Ae(),K=""),F++}}function oi(C,R){return C.scope&&typeof C.scope=="string"&&re.openNode(be.classNameAliases[C.scope]||C.scope),C.beginScope&&(C.beginScope._wrap?(me(K,be.classNameAliases[C.beginScope._wrap]||C.beginScope._wrap),K=""):C.beginScope._multi&&(ri(C.beginScope,R),K="")),B=Object.create(C,{parent:{value:B}}),B}function ai(C,R,F){let W=w(C.endRe,F);if(W){if(C["on:end"]){const oe=new e(C);C["on:end"](R,oe),oe.isMatchIgnored&&(W=!1)}if(W){for(;C.endsParent&&C.parent;)C=C.parent;return C}}if(C.endsWithParent)return ai(C.parent,R,F)}function Xs(C){return B.matcher.regexIndex===0?(K+=C[0],1):(Yt=!0,0)}function Qs(C){const R=C[0],F=C.rule,W=new e(F),oe=[F.__beforeBegin,F["on:begin"]];for(const _e of oe)if(_e&&(_e(C,W),W.isMatchIgnored))return Xs(R);return F.skip?K+=R:(F.excludeBegin&&(K+=R),de(),!F.returnBegin&&!F.excludeBegin&&(K=R)),oi(F,C),F.returnBegin?0:R.length}function Ys(C){const R=C[0],F=M.substring(C.index),W=ai(B,C,F);if(!W)return ei;const oe=B;B.endScope&&B.endScope._wrap?(de(),me(R,B.endScope._wrap)):B.endScope&&B.endScope._multi?(de(),ri(B.endScope,C)):oe.skip?K+=R:(oe.returnEnd||oe.excludeEnd||(K+=R),de(),oe.excludeEnd&&(K=R));do B.scope&&re.closeNode(),!B.skip&&!B.subLanguage&&(Ct+=B.relevance),B=B.parent;while(B!==W.parent);return W.starts&&oi(W.starts,C),oe.returnEnd?0:R.length}function er(){const C=[];for(let R=B;R!==be;R=R.parent)R.scope&&C.unshift(R.scope);C.forEach(R=>re.openNode(R))}let Et={};function li(C,R){const F=R&&R[0];if(K+=C,F==null)return de(),0;if(Et.type==="begin"&&R.type==="end"&&Et.index===R.index&&F===""){if(K+=M.slice(R.index,R.index+1),!X){const W=new Error(`0 width match regex (${E})`);throw W.languageName=E,W.badRule=Et.rule,W}return 1}if(Et=R,R.type==="begin")return Qs(R);if(R.type==="illegal"&&!q){const W=new Error('Illegal lexeme "'+F+'" for mode "'+(B.scope||"<unnamed>")+'"');throw W.mode=B,W}else if(R.type==="end"){const W=Ys(R);if(W!==ei)return W}if(R.type==="illegal"&&F==="")return K+=`
|
|
575
|
+
`,1;if(Qt>1e5&&Qt>R.index*3)throw new Error("potential infinite loop, way more iterations than matches");return K+=F,F.length}const be=Ne(E);if(!be)throw Le(Q.replace("{}",E)),new Error('Unknown language: "'+E+'"');const tr=Ts(be);let Xt="",B=V||tr;const di={},re=new $.__emitter($);er();let K="",Ct=0,De=0,Qt=0,Yt=!1;try{if(be.__emitTokens)be.__emitTokens(M,re);else{for(B.matcher.considerAll();;){Qt++,Yt?Yt=!1:B.matcher.considerAll(),B.matcher.lastIndex=De;const C=B.matcher.exec(M);if(!C)break;const R=M.substring(De,C.index),F=li(R,C);De=C.index+F}li(M.substring(De))}return re.finalize(),Xt=re.toHTML(),{language:E,value:Xt,relevance:Ct,illegal:!1,_emitter:re,_top:B}}catch(C){if(C.message&&C.message.includes("Illegal"))return{language:E,value:Vt(M),illegal:!0,relevance:0,_illegalBy:{message:C.message,index:De,context:M.slice(De-100,De+100),mode:C.mode,resultSoFar:Xt},_emitter:re};if(X)return{language:E,value:Vt(M),illegal:!1,relevance:0,errorRaised:C,_emitter:re,_top:B};throw C}}function Kt(E){const M={value:Vt(E),illegal:!1,relevance:0,_top:I,_emitter:new $.__emitter($)};return M._emitter.addText(E),M}function Zt(E,M){M=M||$.languages||Object.keys(v);const q=Kt(E),V=M.filter(Ne).filter(si).map(de=>rt(de,E,!1));V.unshift(q);const ne=V.sort((de,me)=>{if(de.relevance!==me.relevance)return me.relevance-de.relevance;if(de.language&&me.language){if(Ne(de.language).supersetOf===me.language)return 1;if(Ne(me.language).supersetOf===de.language)return-1}return 0}),[ge,Ae]=ne,kt=ge;return kt.secondBest=Ae,kt}function zs(E,M,q){const V=M&&N[M]||q;E.classList.add("hljs"),E.classList.add(`language-${V}`)}function Jt(E){let M=null;const q=se(E);if(L(q))return;if(St("before:highlightElement",{el:E,language:q}),E.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",E);return}if(E.children.length>0&&($.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(E)),$.throwUnescapedHTML))throw new Bs("One of your code blocks includes unescaped HTML.",E.innerHTML);M=E;const V=M.textContent,ne=q?ee(V,{language:q,ignoreIllegals:!0}):Zt(V);E.innerHTML=ne.value,E.dataset.highlighted="yes",zs(E,q,ne.language),E.result={language:ne.language,re:ne.relevance,relevance:ne.relevance},ne.secondBest&&(E.secondBest={language:ne.secondBest.language,relevance:ne.secondBest.relevance}),St("after:highlightElement",{el:E,result:ne,text:V})}function Us(E){$=Yn($,E)}const Fs=()=>{_t(),Ke("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function qs(){_t(),Ke("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let ni=!1;function _t(){function E(){_t()}if(document.readyState==="loading"){ni||window.addEventListener("DOMContentLoaded",E,!1),ni=!0;return}document.querySelectorAll($.cssSelector).forEach(Jt)}function Hs(E,M){let q=null;try{q=M(f)}catch(V){if(Le("Language definition for '{}' could not be registered.".replace("{}",E)),X)Le(V);else throw V;q=I}q.name||(q.name=E),v[E]=q,q.rawDefinition=M.bind(null,f),q.aliases&&ii(q.aliases,{languageName:E})}function Ws(E){delete v[E];for(const M of Object.keys(N))N[M]===E&&delete N[M]}function Gs(){return Object.keys(v)}function Ne(E){return E=(E||"").toLowerCase(),v[E]||v[N[E]]}function ii(E,{languageName:M}){typeof E=="string"&&(E=[E]),E.forEach(q=>{N[q.toLowerCase()]=M})}function si(E){const M=Ne(E);return M&&!M.disableAutodetect}function Vs(E){E["before:highlightBlock"]&&!E["before:highlightElement"]&&(E["before:highlightElement"]=M=>{E["before:highlightBlock"](Object.assign({block:M.el},M))}),E["after:highlightBlock"]&&!E["after:highlightElement"]&&(E["after:highlightElement"]=M=>{E["after:highlightBlock"](Object.assign({block:M.el},M))})}function Ks(E){Vs(E),j.push(E)}function Zs(E){const M=j.indexOf(E);M!==-1&&j.splice(M,1)}function St(E,M){const q=E;j.forEach(function(V){V[q]&&V[q](M)})}function Js(E){return Ke("10.7.0","highlightBlock will be removed entirely in v12.0"),Ke("10.7.0","Please use highlightElement now."),Jt(E)}Object.assign(f,{highlight:ee,highlightAuto:Zt,highlightAll:_t,highlightElement:Jt,highlightBlock:Js,configure:Us,initHighlighting:Fs,initHighlightingOnLoad:qs,registerLanguage:Hs,unregisterLanguage:Ws,listLanguages:Gs,getLanguage:Ne,registerAliases:ii,autoDetection:si,inherit:Yn,addPlugin:Ks,removePlugin:Zs}),f.debugMode=function(){X=!1},f.safeMode=function(){X=!0},f.versionString=Ds,f.regex={concat:g,lookahead:l,either:_,optional:p,anyNumberOfTimes:d};for(const E in Ve)typeof Ve[E]=="object"&&s(Ve[E]);return Object.assign(f,Ve),f},Ze=ti({});return Ze.newInstance=()=>ti({}),In=Ze,Ze.HighlightJS=Ze,Ze.default=Ze,In}var Fo=Uo();const qt=zo(Fo),Mt="[A-Za-z$_][0-9A-Za-z$_]*",ms=["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"],bs=["true","false","null","undefined","NaN","Infinity"],ys=["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"],xs=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],ws=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],vs=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],_s=[].concat(ws,ys,xs);function qo(s){const e=s.regex,n=(G,{after:Y})=>{const ae="</"+G[0].slice(1);return G.input.indexOf(ae,Y)!==-1},i=Mt,t={begin:"<>",end:"</>"},o=/<[A-Za-z0-9\\._:-]+\s*\/>/,r={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(G,Y)=>{const ae=G[0].length+G.index,le=G.input[ae];if(le==="<"||le===","){Y.ignoreMatch();return}le===">"&&(n(G,{after:ae})||Y.ignoreMatch());let Ee;const Te=G.input.substring(ae);if(Ee=Te.match(/^\s*=/)){Y.ignoreMatch();return}if((Ee=Te.match(/^\s+extends\s+/))&&Ee.index===0){Y.ignoreMatch();return}}},u={$pattern:Mt,keyword:ms,literal:bs,built_in:_s,"variable.language":vs},m="[0-9](_?[0-9])*",h=`\\.(${m})`,a="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",c={className:"number",variants:[{begin:`(\\b(${a})((${h})|\\.)?|(${h}))[eE][+-]?(${m})\\b`},{begin:`\\b(${a})\\b((${h})\\b|\\.)?|(${h})\\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},l={className:"subst",begin:"\\$\\{",end:"\\}",keywords:u,contains:[]},d={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[s.BACKSLASH_ESCAPE,l],subLanguage:"xml"}},p={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[s.BACKSLASH_ESCAPE,l],subLanguage:"css"}},g={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[s.BACKSLASH_ESCAPE,l],subLanguage:"graphql"}},b={className:"string",begin:"`",end:"`",contains:[s.BACKSLASH_ESCAPE,l]},_={className:"comment",variants:[s.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:i+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),s.C_BLOCK_COMMENT_MODE,s.C_LINE_COMMENT_MODE]},S=[s.APOS_STRING_MODE,s.QUOTE_STRING_MODE,d,p,g,b,{match:/\$\d+/},c];l.contains=S.concat({begin:/\{/,end:/\}/,keywords:u,contains:["self"].concat(S)});const w=[].concat(_,l.contains),x=w.concat([{begin:/(\s*)\(/,end:/\)/,keywords:u,contains:["self"].concat(w)}]),y={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:u,contains:x},k={variants:[{match:[/class/,/\s+/,i,/\s+/,/extends/,/\s+/,e.concat(i,"(",e.concat(/\./,i),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,i],scope:{1:"keyword",3:"title.class"}}]},A={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:{_:[...ys,...xs]}},T={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},U={variants:[{match:[/function/,/\s+/,i,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[y],illegal:/%/},P={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function J(G){return e.concat("(?!",G.join("|"),")")}const H={match:e.concat(/\b/,J([...ws,"super","import"].map(G=>`${G}\\s*\\(`)),i,e.lookahead(/\s*\(/)),className:"title.function",relevance:0},Me={begin:e.concat(/\./,e.lookahead(e.concat(i,/(?![0-9A-Za-z$_(])/))),end:i,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},he={match:[/get|set/,/\s+/,i,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},y]},O="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+s.UNDERSCORE_IDENT_RE+")\\s*=>",We={match:[/const|var|let/,/\s+/,i,/\s*/,/=\s*/,/(async\s*)?/,e.lookahead(O)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[y]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:u,exports:{PARAMS_CONTAINS:x,CLASS_REFERENCE:A},illegal:/#(?![$_A-z])/,contains:[s.SHEBANG({label:"shebang",binary:"node",relevance:5}),T,s.APOS_STRING_MODE,s.QUOTE_STRING_MODE,d,p,g,b,_,{match:/\$\d+/},c,A,{scope:"attr",match:i+e.lookahead(":"),relevance:0},We,{begin:"("+s.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[_,s.REGEXP_MODE,{className:"function",begin:O,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:s.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:u,contains:x}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:t.begin,end:t.end},{match:o},{begin:r.begin,"on:begin":r.isTrulyOpeningTag,end:r.end}],subLanguage:"xml",contains:[{begin:r.begin,end:r.end,skip:!0,contains:["self"]}]}]},U,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+s.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[y,s.inherit(s.TITLE_MODE,{begin:i,className:"title.function"})]},{match:/\.\.\./,relevance:0},Me,{match:"\\$"+i,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[y]},H,P,k,he,{match:/\$[(.]/}]}}function Ho(s){const e=s.regex,n=qo(s),i=Mt,t=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],o={begin:[/namespace/,/\s+/,s.IDENT_RE],beginScope:{1:"keyword",3:"title.class"}},r={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:t},contains:[n.exports.CLASS_REFERENCE]},u={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},m=["type","interface","public","private","protected","implements","declare","abstract","readonly","enum","override","satisfies"],h={$pattern:Mt,keyword:ms.concat(m),literal:bs,built_in:_s.concat(t),"variable.language":vs},a={className:"meta",begin:"@"+i},c=(g,b,_)=>{const S=g.contains.findIndex(w=>w.label===b);if(S===-1)throw new Error("can not find mode to replace");g.contains.splice(S,1,_)};Object.assign(n.keywords,h),n.exports.PARAMS_CONTAINS.push(a);const l=n.contains.find(g=>g.scope==="attr"),d=Object.assign({},l,{match:e.concat(i,e.lookahead(/\s*\?:/))});n.exports.PARAMS_CONTAINS.push([n.exports.CLASS_REFERENCE,l,d]),n.contains=n.contains.concat([a,o,r,d]),c(n,"shebang",s.SHEBANG()),c(n,"use_strict",u);const p=n.contains.find(g=>g.label==="func.def");return p.relevance=0,Object.assign(n,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),n}function Wo(s){const e=s.regex,n=e.concat(/[\p{L}_]/u,e.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),i=/[\p{L}0-9._:-]+/u,t={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/}]},r=s.inherit(o,{begin:/\(/,end:/\)/}),u=s.inherit(s.APOS_STRING_MODE,{className:"string"}),m=s.inherit(s.QUOTE_STRING_MODE,{className:"string"}),h={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:i,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[t]},{begin:/'/,end:/'/,contains:[t]},{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,m,u,r,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[o,r,m,u]}]}]},s.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},t,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[m]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[h],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[h],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:e.concat(/</,e.lookahead(e.concat(n,e.either(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:n,relevance:0,starts:h}]},{className:"tag",begin:e.concat(/<\//,e.lookahead(e.concat(n,/>/))),contains:[{className:"name",begin:n,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}const Go=s=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:s.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:[s.APOS_STRING_MODE,s.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:s.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_-]*/}}),Vo=["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"],Ko=["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"],Zo=[...Vo,...Ko],Jo=["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(),Xo=["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(),Qo=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),Yo=["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 ea(s){const e=s.regex,n=Go(s),i={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},t="and or not only",o=/@-?\w[\w]*(-\w+)*/,r="[a-zA-Z-][a-zA-Z0-9_-]*",u=[s.APOS_STRING_MODE,s.QUOTE_STRING_MODE];return{name:"CSS",case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"},classNameAliases:{keyframePosition:"selector-tag"},contains:[n.BLOCK_COMMENT,i,n.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:"selector-class",begin:"\\."+r,relevance:0},n.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+Xo.join("|")+")"},{begin:":(:)?("+Qo.join("|")+")"}]},n.CSS_VARIABLE,{className:"attribute",begin:"\\b("+Yo.join("|")+")\\b"},{begin:/:/,end:/[;}{]/,contains:[n.BLOCK_COMMENT,n.HEXCOLOR,n.IMPORTANT,n.CSS_NUMBER_MODE,...u,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[...u,{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},n.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:t,attribute:Jo.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...u,n.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+Zo.join("|")+")\\b"}]}}const Ss=document.createElement("style");Ss.innerText=[Bo,jo].join(`
|
|
576
|
+
`);document.head.appendChild(Ss);qt.registerLanguage("typescript",Ho);qt.registerLanguage("html",Wo);qt.registerLanguage("css",ea);function ta(...s){const e=document.createElement("div"),n=document.createElement("div");n.classList.add("tab-control");const i=document.createElement("div");return s.forEach(t=>{e.appendChild(t),t.addEventListener("click",()=>{s.forEach(o=>o.removeAttribute("selected")),t.setAttribute("selected",""),i.innerHTML="",i.appendChild(t.content),i.className=t.className,i.classList.add("tab-content")})}),n.appendChild(e),n.appendChild(i),i.classList.add("tab-content"),s[0].setAttribute("selected",""),i.appendChild(s[0].content),n}function lt(s,e){const n=document.createElement("div");return n.role="tab",n.tabIndex=0,n.innerText=s,n.content=e,e.tagName=="PRE"&&n.classList.add("code"),n}function ct(s,e){const n=document.createElement(s);return typeof e=="string"?n.innerHTML=e:e.forEach(i=>{n.appendChild(i)}),n}async function na(s,e,n){const i=e.mainContent,t=ct("div",i);t.id=`example-preview-${n}`;const o=typeof e.css=="string"?void 0:e.css?.label,r=typeof e.css=="string"?e.css:e.css?.content,u=ta(lt("Preview",t),lt("HTML",$t("html",i)),...r?[lt(o??"CSS",$t("css",r))]:[],...e.initializer&&e.initializer.content?[lt(e.initializer.label??"TS",$t("typescript",e.initializer.content))]:[],...(e.additionalSources||[]).map(h=>lt(h.label,$t(h.language,h.content))));e.description&&s.appendChild(ct("div",e.description));const m=ct("div",[u]);m.classList.add("example"),s.appendChild(m),r&&ia(`#${t.id}`,r),e.initializer?.initialize&&await e.initializer.initialize(t)}function $t(s,e){let n=e.split(/\r?\n/).map(i=>{const t=i.indexOf("///");if(t>-1){const o=i.substring(t+3).trimStart();return o?i.replace(/^(\s*)([^\s].*)$/,`$1${o}`):void 0}return i}).filter(i=>typeof i<"u").join(`
|
|
577
|
+
`).trim();return s&&s!="raw"&&(n=qt.highlight(n,{language:s}).value),ct("pre",[ct("code",n)])}function ia(s,e){const n=document.createElement("style");n.innerHTML=Z().use(Do({prefix:s})).process(e).css,document.head.appendChild(n)}async function sa(s,e=document.body){const n=oa(e);let i=0;Object.keys(s).sort().forEach(async t=>{const o=document.createElement("div");o.className="example-container",n.appendChild(o);const r=s[t].default;na(o,r,i++)})}function ra(s){const e=document.createElement("div");e.id="examples-container";const n=s.querySelector("#examples");return n?n.after(e):s.appendChild(e),e}function oa(s){return s.children?ra(s):s}const aa=`<h1 id="@cas-smartdesign/tree">@cas-smartdesign/tree</h1>
|
|
575
578
|
<p>An element for visualizing tree data structure.</p>
|
|
576
579
|
<h2 id="attributes---tree">Attributes - Tree</h2>
|
|
577
580
|
<ul>
|
|
@@ -746,10 +749,4 @@ https://github.com/highlightjs/highlight.js/issues/2277`),O=h,S=g),v===void 0&&(
|
|
|
746
749
|
</ul>
|
|
747
750
|
</li>
|
|
748
751
|
</ul>
|
|
749
|
-
`,
|
|
750
|
-
function __vite__mapDeps(indexes) {
|
|
751
|
-
if (!__vite__mapDeps.viteFileDeps) {
|
|
752
|
-
__vite__mapDeps.viteFileDeps = []
|
|
753
|
-
}
|
|
754
|
-
return indexes.map((i) => __vite__mapDeps.viteFileDeps[i])
|
|
755
|
-
}
|
|
752
|
+
`,la=document.querySelector("#markdown-container");la.innerHTML=aa;sa(Object.assign({"./examples/1_declarative_checkbox/index.ts":lr,"./examples/2_declarative_radiobutton/index.ts":fr,"./examples/3_lazy_loading/index.ts":Sr}),document.querySelector(".markdown-body"));export{co as C,jn as R,_o as T,bo as f,ao as i};
|