@cas-smartdesign/lit-slider 7.1.1 → 7.2.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/basic-usages.js +2 -2
- package/dist/docs/doc.css +1 -1
- package/dist/docs/doc.mjs +77 -81
- package/dist/slider-with-externals.js +23 -41
- package/dist/slider-with-externals.js.map +4 -4
- package/dist/slider.mjs +22 -22
- package/dist/slider.mjs.map +1 -1
- package/npm-third-party-licenses.json +53 -48
- package/package.json +7 -7
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 n of document.querySelectorAll('link[rel="modulepreload"]'))r(n);new MutationObserver(n=>{for(const s of n)if(s.type==="childList")for(const a of s.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function i(n){const s={};return n.integrity&&(s.integrity=n.integrity),n.referrerPolicy&&(s.referrerPolicy=n.referrerPolicy),n.crossOrigin==="use-credentials"?s.credentials="include":n.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(n){if(n.ep)return;n.ep=!0;const s=i(n);fetch(n.href,s)}})();const Jr="modulepreload",Yr=function(t,e){return new URL(t,e).href},on={},Ot=function(e,i,r){let n=Promise.resolve();if(i&&i.length>0){let h=function(o){return Promise.all(o.map(l=>Promise.resolve(l).then(c=>({status:"fulfilled",value:c}),c=>({status:"rejected",reason:c}))))};const a=document.getElementsByTagName("link"),d=document.querySelector("meta[property=csp-nonce]"),g=d?.nonce||d?.getAttribute("nonce");n=h(i.map(o=>{if(o=Yr(o,r),o in on)return;on[o]=!0;const l=o.endsWith(".css"),c=l?'[rel="stylesheet"]':"";if(!!r)for(let f=a.length-1;f>=0;f--){const b=a[f];if(b.href===o&&(!l||b.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${o}"]${c}`))return;const p=document.createElement("link");if(p.rel=l?"stylesheet":Jr,l||(p.as="script"),p.crossOrigin="",p.href=o,g&&p.setAttribute("nonce",g),document.head.appendChild(p),l)return new Promise((f,b)=>{p.addEventListener("load",f),p.addEventListener("error",()=>b(new Error(`Unable to preload CSS for ${o}`)))})}))}function s(a){const d=new Event("vite:preloadError",{cancelable:!0});if(d.payload=a,window.dispatchEvent(d),!d.defaultPrevented)throw a}return n.then(a=>{for(const d of a||[])d.status==="rejected"&&s(d.reason);return e().catch(s)})},Qr=`<div id="basic-usage">
|
|
2
2
|
<div class="example-container">
|
|
3
3
|
<span>(default) 0-1</span>
|
|
4
4
|
<sd-lit-slider></sd-lit-slider>
|
|
@@ -51,8 +51,8 @@
|
|
|
51
51
|
<wrapper-element value="12"></wrapper-element>
|
|
52
52
|
</div>
|
|
53
53
|
</div>
|
|
54
|
-
`,
|
|
55
|
-
`,
|
|
54
|
+
`,es=`<h3 id="basic-usage">Basic usage</h3>
|
|
55
|
+
`,ts=`sd-lit-slider,
|
|
56
56
|
wrapper-element {
|
|
57
57
|
margin: 0 16px;
|
|
58
58
|
width: 400px;
|
|
@@ -68,7 +68,7 @@ wrapper-element {
|
|
|
68
68
|
width: 280px;
|
|
69
69
|
text-align: right;
|
|
70
70
|
}
|
|
71
|
-
`,
|
|
71
|
+
`,is=`import "@cas-smartdesign/lit-slider";
|
|
72
72
|
import Slider from "@cas-smartdesign/lit-slider";
|
|
73
73
|
import { html, LitElement } from "lit";
|
|
74
74
|
import { customElement, property, query } from "lit/decorators.js";
|
|
@@ -117,7 +117,7 @@ export class WrapperElement extends LitElement {
|
|
|
117
117
|
><span>Last value change: not yet</span>\`;
|
|
118
118
|
}
|
|
119
119
|
}
|
|
120
|
-
`,
|
|
120
|
+
`,ns={mainContent:Qr,description:es,css:ts,initializer:{content:is,type:"typescript",initialize:()=>Ot(()=>import("./basic-usages.js"),[],import.meta.url)}},rs=Object.freeze(Object.defineProperty({__proto__:null,default:ns},Symbol.toStringTag,{value:"Module"})),ss=`<div id="coloring-examples">
|
|
121
121
|
<div class="example-container" id="one-custom-color">
|
|
122
122
|
<span>One custom color</span>
|
|
123
123
|
<sd-lit-slider></sd-lit-slider>
|
|
@@ -139,8 +139,8 @@ export class WrapperElement extends LitElement {
|
|
|
139
139
|
<sd-lit-slider></sd-lit-slider>
|
|
140
140
|
</div>
|
|
141
141
|
</div>
|
|
142
|
-
`,
|
|
143
|
-
`,
|
|
142
|
+
`,os=`<h3 id="coloring-examples">Coloring examples</h3>
|
|
143
|
+
`,as=`sd-lit-slider {
|
|
144
144
|
margin: 0 16px;
|
|
145
145
|
width: 400px;
|
|
146
146
|
}
|
|
@@ -155,7 +155,7 @@ export class WrapperElement extends LitElement {
|
|
|
155
155
|
width: 280px;
|
|
156
156
|
text-align: right;
|
|
157
157
|
}
|
|
158
|
-
`,
|
|
158
|
+
`,ls=`import "@cas-smartdesign/lit-slider";
|
|
159
159
|
import Slider from "@cas-smartdesign/lit-slider";
|
|
160
160
|
|
|
161
161
|
const oneCustomColorSlider = document.querySelector("#one-custom-color sd-lit-slider") as Slider;
|
|
@@ -192,7 +192,7 @@ rainbowSlider.colors = new Map([
|
|
|
192
192
|
[5 / 6, "#FF7F00"],
|
|
193
193
|
[1, "#FF0000"],
|
|
194
194
|
]);
|
|
195
|
-
`,
|
|
195
|
+
`,cs={mainContent:ss,description:os,css:as,initializer:{content:ls,type:"typescript",initialize:()=>Ot(()=>import("./coloring.js"),[],import.meta.url)}},us=Object.freeze(Object.defineProperty({__proto__:null,default:cs},Symbol.toStringTag,{value:"Module"})),hs=`<div id="editable-usage">
|
|
196
196
|
<div class="example-container">
|
|
197
197
|
<span>Percentage (decimal)</span>
|
|
198
198
|
<sd-lit-slider editable inputSuffix="%" min="0" max="100" step="1"></sd-lit-slider>
|
|
@@ -233,8 +233,7 @@ rainbowSlider.colors = new Map([
|
|
|
233
233
|
style="--slider-suffix-width: 120px"></sd-lit-slider>
|
|
234
234
|
</div>
|
|
235
235
|
</div>
|
|
236
|
-
`,
|
|
237
|
-
`,fr=`sd-lit-slider {
|
|
236
|
+
`,ds='<h3 id="examples-with-the-`editable`-setting">Examples with the `editable` setting</h3>\n',fs=`sd-lit-slider {
|
|
238
237
|
margin: 0 16px;
|
|
239
238
|
width: 400px;
|
|
240
239
|
}
|
|
@@ -249,7 +248,7 @@ rainbowSlider.colors = new Map([
|
|
|
249
248
|
width: 280px;
|
|
250
249
|
text-align: right;
|
|
251
250
|
}
|
|
252
|
-
`,
|
|
251
|
+
`,ps=`import "@cas-smartdesign/lit-slider";
|
|
253
252
|
import Slider from "@cas-smartdesign/lit-slider";
|
|
254
253
|
|
|
255
254
|
function bindSliderAndInput(slider: Slider, input: HTMLInputElement, immediate?: boolean) {
|
|
@@ -275,7 +274,7 @@ syncTestExample.querySelector("sd-lit-slider").addEventListener("immediate-value
|
|
|
275
274
|
syncTestExample.querySelector("sd-lit-slider").addEventListener("value-change", (event: CustomEvent) => {
|
|
276
275
|
syncTestExample.querySelector("[normal]").innerHTML = \`normal: \${event.detail.value}\`;
|
|
277
276
|
});
|
|
278
|
-
`,
|
|
277
|
+
`,ms={mainContent:hs,description:ds,css:fs,initializer:{content:ps,type:"typescript",initialize:()=>Ot(()=>import("./editable-usages.js"),[],import.meta.url)}},gs=Object.freeze(Object.defineProperty({__proto__:null,default:ms},Symbol.toStringTag,{value:"Module"})),bs=`<div id="validation-examples">
|
|
279
278
|
<div class="example-container" validate-it>
|
|
280
279
|
<span>Default validation level</span>
|
|
281
280
|
<sd-lit-slider></sd-lit-slider>
|
|
@@ -293,8 +292,8 @@ syncTestExample.querySelector("sd-lit-slider").addEventListener("value-change",
|
|
|
293
292
|
<sd-lit-slider validationlevel="error"></sd-lit-slider>
|
|
294
293
|
</div>
|
|
295
294
|
</div>
|
|
296
|
-
`,
|
|
297
|
-
`,
|
|
295
|
+
`,vs=`<h3 id="validation-examples">Validation examples</h3>
|
|
296
|
+
`,ys=`sd-lit-slider {
|
|
298
297
|
margin: 0 16px;
|
|
299
298
|
width: 400px;
|
|
300
299
|
}
|
|
@@ -309,7 +308,7 @@ syncTestExample.querySelector("sd-lit-slider").addEventListener("value-change",
|
|
|
309
308
|
width: 280px;
|
|
310
309
|
text-align: right;
|
|
311
310
|
}
|
|
312
|
-
`,
|
|
311
|
+
`,ws=`import "@cas-smartdesign/lit-slider";
|
|
313
312
|
import Slider from "@cas-smartdesign/lit-slider";
|
|
314
313
|
|
|
315
314
|
document.querySelectorAll("[validate-it] sd-lit-slider").forEach((slider: Slider) => {
|
|
@@ -327,60 +326,60 @@ document.querySelectorAll("[validate-it] sd-lit-slider").forEach((slider: Slider
|
|
|
327
326
|
validate(event.detail.value);
|
|
328
327
|
});
|
|
329
328
|
});
|
|
330
|
-
`,
|
|
331
|
-
\f\r]`,
|
|
332
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),tn=/'/g,nn=/"/g,Dn=/^(?:script|style|textarea|title)$/i,kr=n=>(e,...t)=>({_$litType$:n,strings:e,values:t}),Z=kr(1),Ce=Symbol.for("lit-noChange"),L=Symbol.for("lit-nothing"),sn=new WeakMap,fe=ge.createTreeWalker(ge,129,null,!1);function zn(n,e){if(!Array.isArray(n)||!n.hasOwnProperty("raw"))throw Error("invalid template strings array");return Yi!==void 0?Yi.createHTML(e):e}const Or=(n,e)=>{const t=n.length-1,i=[];let s,o=e===2?"<svg>":"",r=Le;for(let a=0;a<t;a++){const l=n[a];let c,u,h=-1,p=0;for(;p<l.length&&(r.lastIndex=p,u=r.exec(l),u!==null);)p=r.lastIndex,r===Le?u[1]==="!--"?r=Qi:u[1]!==void 0?r=en:u[2]!==void 0?(Dn.test(u[2])&&(s=RegExp("</"+u[2],"g")),r=pe):u[3]!==void 0&&(r=pe):r===pe?u[0]===">"?(r=s??Le,h=-1):u[1]===void 0?h=-2:(h=r.lastIndex-u[2].length,c=u[1],r=u[3]===void 0?pe:u[3]==='"'?nn:tn):r===nn||r===tn?r=pe:r===Qi||r===en?r=Le:(r=pe,s=void 0);const E=r===pe&&n[a+1].startsWith("/>")?" ":"";o+=r===Le?l+Ar:h>=0?(i.push(c),l.slice(0,h)+li+l.slice(h)+oe+E):l+oe+(h===-2?(i.push(void 0),a):E)}return[zn(n,o+(n[t]||"<?>")+(e===2?"</svg>":"")),i]};class Fe{constructor({strings:e,_$litType$:t},i){let s;this.parts=[];let o=0,r=0;const a=e.length-1,l=this.parts,[c,u]=Or(e,t);if(this.el=Fe.createElement(c,i),fe.currentNode=this.el.content,t===2){const h=this.el.content,p=h.firstChild;p.remove(),h.append(...p.childNodes)}for(;(s=fe.nextNode())!==null&&l.length<a;){if(s.nodeType===1){if(s.hasAttributes()){const h=[];for(const p of s.getAttributeNames())if(p.endsWith(li)||p.startsWith(oe)){const E=u[r++];if(h.push(p),E!==void 0){const k=s.getAttribute(E.toLowerCase()+li).split(oe),_=/([.?@])?(.*)/.exec(E);l.push({type:1,index:o,name:_[2],strings:k,ctor:_[1]==="."?Mr:_[1]==="?"?Pr:_[1]==="@"?Tr:Rt})}else l.push({type:6,index:o})}for(const p of h)s.removeAttribute(p)}if(Dn.test(s.tagName)){const h=s.textContent.split(oe),p=h.length-1;if(p>0){s.textContent=Ae?Ae.emptyScript:"";for(let E=0;E<p;E++)s.append(h[E],Be()),fe.nextNode(),l.push({type:2,index:++o});s.append(h[p],Be())}}}else if(s.nodeType===8)if(s.data===In)l.push({type:2,index:o});else{let h=-1;for(;(h=s.data.indexOf(oe,h+1))!==-1;)l.push({type:7,index:o}),h+=oe.length-1}o++}}static createElement(e,t){const i=ge.createElement("template");return i.innerHTML=e,i}}function ke(n,e,t=n,i){var s,o,r,a;if(e===Ce)return e;let l=i!==void 0?(s=t._$Co)===null||s===void 0?void 0:s[i]:t._$Cl;const c=Ue(e)?void 0:e._$litDirective$;return(l==null?void 0:l.constructor)!==c&&((o=l==null?void 0:l._$AO)===null||o===void 0||o.call(l,!1),c===void 0?l=void 0:(l=new c(n),l._$AT(n,t,i)),i!==void 0?((r=(a=t)._$Co)!==null&&r!==void 0?r:a._$Co=[])[i]=l:t._$Cl=l),l!==void 0&&(e=ke(n,l._$AS(n,e.values),l,i)),e}class Rr{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:i},parts:s}=this._$AD,o=((t=e==null?void 0:e.creationScope)!==null&&t!==void 0?t:ge).importNode(i,!0);fe.currentNode=o;let r=fe.nextNode(),a=0,l=0,c=s[0];for(;c!==void 0;){if(a===c.index){let u;c.type===2?u=new Ye(r,r.nextSibling,this,e):c.type===1?u=new c.ctor(r,c.name,c.strings,this,e):c.type===6&&(u=new Lr(r,this,e)),this._$AV.push(u),c=s[++l]}a!==(c==null?void 0:c.index)&&(r=fe.nextNode(),a++)}return fe.currentNode=ge,o}v(e){let t=0;for(const i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(e,i,t),t+=i.strings.length-2):i._$AI(e[t])),t++}}class Ye{constructor(e,t,i,s){var o;this.type=2,this._$AH=L,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=i,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=ke(this,e,t),Ue(e)?e===L||e==null||e===""?(this._$AH!==L&&this._$AR(),this._$AH=L):e!==this._$AH&&e!==Ce&&this._(e):e._$litType$!==void 0?this.g(e):e.nodeType!==void 0?this.$(e):Cr(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!==L&&Ue(this._$AH)?this._$AA.nextSibling.data=e:this.$(ge.createTextNode(e)),this._$AH=e}g(e){var t;const{values:i,_$litType$:s}=e,o=typeof s=="number"?this._$AC(e):(s.el===void 0&&(s.el=Fe.createElement(zn(s.h,s.h[0]),this.options)),s);if(((t=this._$AH)===null||t===void 0?void 0:t._$AD)===o)this._$AH.v(i);else{const r=new Rr(o,this),a=r.u(this.options);r.v(i),this.$(a),this._$AH=r}}_$AC(e){let t=sn.get(e.strings);return t===void 0&&sn.set(e.strings,t=new Fe(e)),t}T(e){jn(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let i,s=0;for(const o of e)s===t.length?t.push(i=new Ye(this.k(Be()),this.k(Be()),this,this.options)):i=t[s],i._$AI(o),s++;s<t.length&&(this._$AR(i&&i._$AB.nextSibling,s),t.length=s)}_$AR(e=this._$AA.nextSibling,t){var i;for((i=this._$AP)===null||i===void 0||i.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))}}class Rt{constructor(e,t,i,s,o){this.type=1,this._$AH=L,this._$AN=void 0,this.element=e,this.name=t,this._$AM=s,this.options=o,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=L}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(e,t=this,i,s){const o=this.strings;let r=!1;if(o===void 0)e=ke(this,e,t,0),r=!Ue(e)||e!==this._$AH&&e!==Ce,r&&(this._$AH=e);else{const a=e;let l,c;for(e=o[0],l=0;l<o.length-1;l++)c=ke(this,a[i+l],t,l),c===Ce&&(c=this._$AH[l]),r||(r=!Ue(c)||c!==this._$AH[l]),c===L?e=L:e!==L&&(e+=(c??"")+o[l+1]),this._$AH[l]=c}r&&!s&&this.j(e)}j(e){e===L?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}}class Mr extends Rt{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===L?void 0:e}}const Nr=Ae?Ae.emptyScript:"";class Pr extends Rt{constructor(){super(...arguments),this.type=4}j(e){e&&e!==L?this.element.setAttribute(this.name,Nr):this.element.removeAttribute(this.name)}}let Tr=class extends Rt{constructor(e,t,i,s,o){super(e,t,i,s,o),this.type=5}_$AI(e,t=this){var i;if((e=(i=ke(this,e,t,0))!==null&&i!==void 0?i:L)===Ce)return;const s=this._$AH,o=e===L&&s!==L||e.capture!==s.capture||e.once!==s.once||e.passive!==s.passive,r=e!==L&&(s===L||o);o&&this.element.removeEventListener(this.name,this,s),r&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var t,i;typeof this._$AH=="function"?this._$AH.call((i=(t=this.options)===null||t===void 0?void 0:t.host)!==null&&i!==void 0?i:this.element,e):this._$AH.handleEvent(e)}};class Lr{constructor(e,t,i){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(e){ke(this,e)}}const rn=xt.litHtmlPolyfillSupport;rn==null||rn(Fe,Ye),((Zt=xt.litHtmlVersions)!==null&&Zt!==void 0?Zt:xt.litHtmlVersions=[]).push("2.8.0");const Ir=(n,e,t)=>{var i,s;const o=(i=t==null?void 0:t.renderBefore)!==null&&i!==void 0?i:e;let r=o._$litPart$;if(r===void 0){const a=(s=t==null?void 0:t.renderBefore)!==null&&s!==void 0?s:null;o._$litPart$=r=new Ye(e.insertBefore(Be(),a),a,void 0,t??{})}return r._$AI(n),r};var Xt,Jt;let ce=class extends $e{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e,t;const i=super.createRenderRoot();return(e=(t=this.renderOptions).renderBefore)!==null&&e!==void 0||(t.renderBefore=i.firstChild),i}update(e){const t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=Ir(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 Ce}};ce.finalized=!0,ce._$litElement$=!0,(Xt=globalThis.litElementHydrateSupport)===null||Xt===void 0||Xt.call(globalThis,{LitElement:ce});const on=globalThis.litElementPolyfillSupport;on==null||on({LitElement:ce});((Jt=globalThis.litElementVersions)!==null&&Jt!==void 0?Jt:globalThis.litElementVersions=[]).push("3.3.3");const jr=(n,e)=>e.kind==="method"&&e.descriptor&&!("value"in e.descriptor)?{...e,finisher(t){t.createProperty(e.key,n)}}:{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,n)}},Dr=(n,e,t)=>{e.constructor.createProperty(t,n)};function x(n){return(e,t)=>t!==void 0?Dr(n,e,t):jr(n,e)}const He="a-f\\d",zr=`#?[${He}]{3}[${He}]?`,Br=`#?[${He}]{6}([${He}]{2})?`,Ur=new RegExp(`[^#${He}]`,"gi"),Fr=new RegExp(`^${zr}$|^${Br}$`,"i");function Hr(n,e={}){if(typeof n!="string"||Ur.test(n)||!Fr.test(n))throw new TypeError("Expected a valid hex string");n=n.replace(/^#/,"");let t=1;n.length===8&&(t=Number.parseInt(n.slice(6,8),16)/255,n=n.slice(0,6)),n.length===4&&(t=Number.parseInt(n.slice(3,4).repeat(2),16)/255,n=n.slice(0,3)),n.length===3&&(n=n[0]+n[0]+n[1]+n[1]+n[2]+n[2]);const i=Number.parseInt(n,16),s=i>>16,o=i>>8&255,r=i&255,a=typeof e.alpha=="number"?e.alpha:t;if(e.format==="array")return[s,o,r,a];if(e.format==="css"){const l=a===1?"":` / ${Number((a*100).toFixed(2))}%`;return`rgb(${s} ${o} ${r}${l})`}return{red:s,green:o,blue:r,alpha:a}}class Vr{constructor(){this._rgbaColors=new Map,this._originalColors=new Map}get colors(){return this._originalColors}set colors(e){if(this._rgbaColors.clear(),this._originalColors=e,e&&e.size){if(Array.from(e.keys()).find(s=>s<0||s>1))throw Error("The keys of the colors must represent the relative value where the color is fully applied.");e.forEach((s,o)=>{const r=this.convertFromRGBAString(s)||this.convertFromHex(s);if(Object.keys(r).length===0&&r.constructor===Object)throw Error(`Cannot convert color: ${s} to rgba-color`);this._rgbaColors.set(o,r)});const i=Array.from(this._rgbaColors.entries()).sort();this._rgbaColors=new Map(i)}}blend(e){if(!this._rgbaColors.size)throw Error("It is not possible to blend without a color list.");let t,i;for(const o of this._rgbaColors)if(t||(t=o),o[0]<e)t=o;else if(o[0]===e){t=i=o;break}else{i=o;break}i||(i=t);const s=i[0]-t[0];return s?this.blendColors(t[1],i[1],(e-t[0])/s):this.convertToRGBAString(t[1])}blendColors(e,t,i){return this.convertToRGBAString({red:Math.round(e.red+(t.red-e.red)*i),green:Math.round(e.green+(t.green-e.green)*i),blue:Math.round(e.blue+(t.blue-e.blue)*i),alpha:e.alpha+(t.alpha-e.alpha)*i})}convertFromHex(e){const t=Hr(e);return t.alpha>1&&(t.alpha/=255),t}convertFromRGBAString(e){const t=e.match(/rgba?\((\d{1,3}), ?(\d{1,3}), ?(\d{1,3})\)?(?:, ?(\d(?:\.\d?))\))?/);return t?{red:parseInt(t[1],10),green:parseInt(t[2],10),blue:parseInt(t[3],10),alpha:parseInt(t[4],10)||1}:null}transparentize(e,t){return this.convertToRGBAString(this.convertFromRGBAString(e),t)}convertToRGBAString(e,t){return`rgba(${e.red},${e.green},${e.blue},${t||e.alpha})`}}const G=n=>n??L,qr=":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}",Wr="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",Gr="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 Kr=Object.defineProperty,Xr=Object.getOwnPropertyDescriptor,Ci=(n,e,t,i)=>{for(var s=i>1?void 0:i?Xr(e,t):e,o=n.length-1,r;o>=0;o--)(r=n[o])&&(s=(i?r(e,t,s):r(s))||s);return i&&s&&Kr(e,t,s),s},_e;const Ve=(_e=class extends ce{static parseLevel(n){if(n){const e=Object.keys(qe).find(t=>t.toLowerCase()===n.toLowerCase());return e&&qe[e]}}static get styles(){return[Ai`
|
|
333
|
-
${
|
|
334
|
-
`]}render(){return
|
|
335
|
-
${
|
|
336
|
-
`]}render(){
|
|
329
|
+
`,xs={mainContent:bs,description:vs,css:ys,initializer:{content:ws,type:"typescript",initialize:()=>Ot(()=>import("./validation.js"),[],import.meta.url)}},Es=Object.freeze(Object.defineProperty({__proto__:null,default:xs},Symbol.toStringTag,{value:"Module"}));const St=globalThis,ki=St.ShadowRoot&&(St.ShadyCSS===void 0||St.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Oi=Symbol(),an=new WeakMap;let Kn=class{constructor(e,i,r){if(this._$cssResult$=!0,r!==Oi)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=i}get styleSheet(){let e=this.o;const i=this.t;if(ki&&e===void 0){const r=i!==void 0&&i.length===1;r&&(e=an.get(i)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),r&&an.set(i,e))}return e}toString(){return this.cssText}};const Rt=t=>new Kn(typeof t=="string"?t:t+"",void 0,Oi),Ri=(t,...e)=>{const i=t.length===1?t[0]:e.reduce(((r,n,s)=>r+(a=>{if(a._$cssResult$===!0)return a.cssText;if(typeof a=="number")return a;throw Error("Value passed to 'css' function must be a 'css' function result: "+a+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(n)+t[s+1]),t[0]);return new Kn(i,t,Oi)},_s=(t,e)=>{if(ki)t.adoptedStyleSheets=e.map((i=>i instanceof CSSStyleSheet?i:i.styleSheet));else for(const i of e){const r=document.createElement("style"),n=St.litNonce;n!==void 0&&r.setAttribute("nonce",n),r.textContent=i.cssText,t.appendChild(r)}},ln=ki?t=>t:t=>t instanceof CSSStyleSheet?(e=>{let i="";for(const r of e.cssRules)i+=r.cssText;return Rt(i)})(t):t;const{is:Ss,defineProperty:As,getOwnPropertyDescriptor:Cs,getOwnPropertyNames:$s,getOwnPropertySymbols:ks,getPrototypeOf:Os}=Object,Mt=globalThis,cn=Mt.trustedTypes,Rs=cn?cn.emptyScript:"",Ms=Mt.reactiveElementPolyfillSupport,rt=(t,e)=>t,At={toAttribute(t,e){switch(e){case Boolean:t=t?Rs:null;break;case Object:case Array:t=t==null?t:JSON.stringify(t)}return t},fromAttribute(t,e){let i=t;switch(e){case Boolean:i=t!==null;break;case Number:i=t===null?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t)}catch{i=null}}return i}},Mi=(t,e)=>!Ss(t,e),un={attribute:!0,type:String,converter:At,reflect:!1,useDefault:!1,hasChanged:Mi};Symbol.metadata??=Symbol("metadata"),Mt.litPropertyMetadata??=new WeakMap;let Ke=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,i=un){if(i.state&&(i.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((i=Object.create(i)).wrapped=!0),this.elementProperties.set(e,i),!i.noAccessor){const r=Symbol(),n=this.getPropertyDescriptor(e,r,i);n!==void 0&&As(this.prototype,e,n)}}static getPropertyDescriptor(e,i,r){const{get:n,set:s}=Cs(this.prototype,e)??{get(){return this[i]},set(a){this[i]=a}};return{get:n,set(a){const d=n?.call(this);s?.call(this,a),this.requestUpdate(e,d,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??un}static _$Ei(){if(this.hasOwnProperty(rt("elementProperties")))return;const e=Os(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(rt("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(rt("properties"))){const i=this.properties,r=[...$s(i),...ks(i)];for(const n of r)this.createProperty(n,i[n])}const e=this[Symbol.metadata];if(e!==null){const i=litPropertyMetadata.get(e);if(i!==void 0)for(const[r,n]of i)this.elementProperties.set(r,n)}this._$Eh=new Map;for(const[i,r]of this.elementProperties){const n=this._$Eu(i,r);n!==void 0&&this._$Eh.set(n,i)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){const i=[];if(Array.isArray(e)){const r=new Set(e.flat(1/0).reverse());for(const n of r)i.unshift(ln(n))}else e!==void 0&&i.push(ln(e));return i}static _$Eu(e,i){const r=i.attribute;return r===!1?void 0:typeof r=="string"?r: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,i=this.constructor.elementProperties;for(const r of i.keys())this.hasOwnProperty(r)&&(e.set(r,this[r]),delete this[r]);e.size>0&&(this._$Ep=e)}createRenderRoot(){const e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return _s(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,i,r){this._$AK(e,r)}_$ET(e,i){const r=this.constructor.elementProperties.get(e),n=this.constructor._$Eu(e,r);if(n!==void 0&&r.reflect===!0){const s=(r.converter?.toAttribute!==void 0?r.converter:At).toAttribute(i,r.type);this._$Em=e,s==null?this.removeAttribute(n):this.setAttribute(n,s),this._$Em=null}}_$AK(e,i){const r=this.constructor,n=r._$Eh.get(e);if(n!==void 0&&this._$Em!==n){const s=r.getPropertyOptions(n),a=typeof s.converter=="function"?{fromAttribute:s.converter}:s.converter?.fromAttribute!==void 0?s.converter:At;this._$Em=n;const d=a.fromAttribute(i,s.type);this[n]=d??this._$Ej?.get(n)??d,this._$Em=null}}requestUpdate(e,i,r){if(e!==void 0){const n=this.constructor,s=this[e];if(r??=n.getPropertyOptions(e),!((r.hasChanged??Mi)(s,i)||r.useDefault&&r.reflect&&s===this._$Ej?.get(e)&&!this.hasAttribute(n._$Eu(e,r))))return;this.C(e,i,r)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(e,i,{useDefault:r,reflect:n,wrapped:s},a){r&&!(this._$Ej??=new Map).has(e)&&(this._$Ej.set(e,a??i??this[e]),s!==!0||a!==void 0)||(this._$AL.has(e)||(this.hasUpdated||r||(i=void 0),this._$AL.set(e,i)),n===!0&&this._$Em!==e&&(this._$Eq??=new Set).add(e))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(i){Promise.reject(i)}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[n,s]of this._$Ep)this[n]=s;this._$Ep=void 0}const r=this.constructor.elementProperties;if(r.size>0)for(const[n,s]of r){const{wrapped:a}=s,d=this[n];a!==!0||this._$AL.has(n)||d===void 0||this.C(n,void 0,s,d)}}let e=!1;const i=this._$AL;try{e=this.shouldUpdate(i),e?(this.willUpdate(i),this._$EO?.forEach((r=>r.hostUpdate?.())),this.update(i)):this._$EM()}catch(r){throw e=!1,this._$EM(),r}e&&this._$AE(i)}willUpdate(e){}_$AE(e){this._$EO?.forEach((i=>i.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((i=>this._$ET(i,this[i]))),this._$EM()}updated(e){}firstUpdated(e){}};Ke.elementStyles=[],Ke.shadowRootOptions={mode:"open"},Ke[rt("elementProperties")]=new Map,Ke[rt("finalized")]=new Map,Ms?.({ReactiveElement:Ke}),(Mt.reactiveElementVersions??=[]).push("2.1.1");const Pi=globalThis,Ct=Pi.trustedTypes,hn=Ct?Ct.createPolicy("lit-html",{createHTML:t=>t}):void 0,Xn="$lit$",Oe=`lit$${Math.random().toFixed(9).slice(2)}$`,Jn="?"+Oe,Ps=`<${Jn}>`,je=document,ot=()=>je.createComment(""),at=t=>t===null||typeof t!="object"&&typeof t!="function",Ni=Array.isArray,Ns=t=>Ni(t)||typeof t?.[Symbol.iterator]=="function",Xt=`[
|
|
330
|
+
\f\r]`,it=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,dn=/-->/g,fn=/>/g,Le=RegExp(`>|${Xt}(?:([^\\s"'>=/]+)(${Xt}*=${Xt}*(?:[^
|
|
331
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),pn=/'/g,mn=/"/g,Yn=/^(?:script|style|textarea|title)$/i,Ts=t=>(e,...i)=>({_$litType$:t,strings:e,values:i}),ge=Ts(1),Xe=Symbol.for("lit-noChange"),re=Symbol.for("lit-nothing"),gn=new WeakMap,Ie=je.createTreeWalker(je,129);function Qn(t,e){if(!Ni(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return hn!==void 0?hn.createHTML(e):e}const Ls=(t,e)=>{const i=t.length-1,r=[];let n,s=e===2?"<svg>":e===3?"<math>":"",a=it;for(let d=0;d<i;d++){const g=t[d];let h,o,l=-1,c=0;for(;c<g.length&&(a.lastIndex=c,o=a.exec(g),o!==null);)c=a.lastIndex,a===it?o[1]==="!--"?a=dn:o[1]!==void 0?a=fn:o[2]!==void 0?(Yn.test(o[2])&&(n=RegExp("</"+o[2],"g")),a=Le):o[3]!==void 0&&(a=Le):a===Le?o[0]===">"?(a=n??it,l=-1):o[1]===void 0?l=-2:(l=a.lastIndex-o[2].length,h=o[1],a=o[3]===void 0?Le:o[3]==='"'?mn:pn):a===mn||a===pn?a=Le:a===dn||a===fn?a=it:(a=Le,n=void 0);const u=a===Le&&t[d+1].startsWith("/>")?" ":"";s+=a===it?g+Ps:l>=0?(r.push(h),g.slice(0,l)+Xn+g.slice(l)+Oe+u):g+Oe+(l===-2?d:u)}return[Qn(t,s+(t[i]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),r]};class lt{constructor({strings:e,_$litType$:i},r){let n;this.parts=[];let s=0,a=0;const d=e.length-1,g=this.parts,[h,o]=Ls(e,i);if(this.el=lt.createElement(h,r),Ie.currentNode=this.el.content,i===2||i===3){const l=this.el.content.firstChild;l.replaceWith(...l.childNodes)}for(;(n=Ie.nextNode())!==null&&g.length<d;){if(n.nodeType===1){if(n.hasAttributes())for(const l of n.getAttributeNames())if(l.endsWith(Xn)){const c=o[a++],u=n.getAttribute(l).split(Oe),p=/([.?@])?(.*)/.exec(c);g.push({type:1,index:s,name:p[2],strings:u,ctor:p[1]==="."?js:p[1]==="?"?Ds:p[1]==="@"?zs:Pt}),n.removeAttribute(l)}else l.startsWith(Oe)&&(g.push({type:6,index:s}),n.removeAttribute(l));if(Yn.test(n.tagName)){const l=n.textContent.split(Oe),c=l.length-1;if(c>0){n.textContent=Ct?Ct.emptyScript:"";for(let u=0;u<c;u++)n.append(l[u],ot()),Ie.nextNode(),g.push({type:2,index:++s});n.append(l[c],ot())}}}else if(n.nodeType===8)if(n.data===Jn)g.push({type:2,index:s});else{let l=-1;for(;(l=n.data.indexOf(Oe,l+1))!==-1;)g.push({type:7,index:s}),l+=Oe.length-1}s++}}static createElement(e,i){const r=je.createElement("template");return r.innerHTML=e,r}}function Je(t,e,i=t,r){if(e===Xe)return e;let n=r!==void 0?i._$Co?.[r]:i._$Cl;const s=at(e)?void 0:e._$litDirective$;return n?.constructor!==s&&(n?._$AO?.(!1),s===void 0?n=void 0:(n=new s(t),n._$AT(t,i,r)),r!==void 0?(i._$Co??=[])[r]=n:i._$Cl=n),n!==void 0&&(e=Je(t,n._$AS(t,e.values),n,r)),e}class Is{constructor(e,i){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){const{el:{content:i},parts:r}=this._$AD,n=(e?.creationScope??je).importNode(i,!0);Ie.currentNode=n;let s=Ie.nextNode(),a=0,d=0,g=r[0];for(;g!==void 0;){if(a===g.index){let h;g.type===2?h=new ht(s,s.nextSibling,this,e):g.type===1?h=new g.ctor(s,g.name,g.strings,this,e):g.type===6&&(h=new Bs(s,this,e)),this._$AV.push(h),g=r[++d]}a!==g?.index&&(s=Ie.nextNode(),a++)}return Ie.currentNode=je,n}p(e){let i=0;for(const r of this._$AV)r!==void 0&&(r.strings!==void 0?(r._$AI(e,r,i),i+=r.strings.length-2):r._$AI(e[i])),i++}}class ht{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,i,r,n){this.type=2,this._$AH=re,this._$AN=void 0,this._$AA=e,this._$AB=i,this._$AM=r,this.options=n,this._$Cv=n?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode;const i=this._$AM;return i!==void 0&&e?.nodeType===11&&(e=i.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,i=this){e=Je(this,e,i),at(e)?e===re||e==null||e===""?(this._$AH!==re&&this._$AR(),this._$AH=re):e!==this._$AH&&e!==Xe&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):Ns(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!==re&&at(this._$AH)?this._$AA.nextSibling.data=e:this.T(je.createTextNode(e)),this._$AH=e}$(e){const{values:i,_$litType$:r}=e,n=typeof r=="number"?this._$AC(e):(r.el===void 0&&(r.el=lt.createElement(Qn(r.h,r.h[0]),this.options)),r);if(this._$AH?._$AD===n)this._$AH.p(i);else{const s=new Is(n,this),a=s.u(this.options);s.p(i),this.T(a),this._$AH=s}}_$AC(e){let i=gn.get(e.strings);return i===void 0&&gn.set(e.strings,i=new lt(e)),i}k(e){Ni(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let r,n=0;for(const s of e)n===i.length?i.push(r=new ht(this.O(ot()),this.O(ot()),this,this.options)):r=i[n],r._$AI(s),n++;n<i.length&&(this._$AR(r&&r._$AB.nextSibling,n),i.length=n)}_$AR(e=this._$AA.nextSibling,i){for(this._$AP?.(!1,!0,i);e!==this._$AB;){const r=e.nextSibling;e.remove(),e=r}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}}class Pt{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,i,r,n,s){this.type=1,this._$AH=re,this._$AN=void 0,this.element=e,this.name=i,this._$AM=n,this.options=s,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=re}_$AI(e,i=this,r,n){const s=this.strings;let a=!1;if(s===void 0)e=Je(this,e,i,0),a=!at(e)||e!==this._$AH&&e!==Xe,a&&(this._$AH=e);else{const d=e;let g,h;for(e=s[0],g=0;g<s.length-1;g++)h=Je(this,d[r+g],i,g),h===Xe&&(h=this._$AH[g]),a||=!at(h)||h!==this._$AH[g],h===re?e=re:e!==re&&(e+=(h??"")+s[g+1]),this._$AH[g]=h}a&&!n&&this.j(e)}j(e){e===re?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}}class js extends Pt{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===re?void 0:e}}class Ds extends Pt{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==re)}}class zs extends Pt{constructor(e,i,r,n,s){super(e,i,r,n,s),this.type=5}_$AI(e,i=this){if((e=Je(this,e,i,0)??re)===Xe)return;const r=this._$AH,n=e===re&&r!==re||e.capture!==r.capture||e.once!==r.once||e.passive!==r.passive,s=e!==re&&(r===re||n);n&&this.element.removeEventListener(this.name,this,r),s&&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 Bs=class{constructor(e,i,r){this.element=e,this.type=6,this._$AN=void 0,this._$AM=i,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(e){Je(this,e)}};const Us=Pi.litHtmlPolyfillSupport;Us?.(lt,ht),(Pi.litHtmlVersions??=[]).push("3.3.1");const qs=(t,e,i)=>{const r=i?.renderBefore??e;let n=r._$litPart$;if(n===void 0){const s=i?.renderBefore??null;r._$litPart$=n=new ht(e.insertBefore(ot(),s),s,void 0,i??{})}return n._$AI(t),n};const Ti=globalThis;class Re extends Ke{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 i=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=qs(i,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return Xe}}Re._$litElement$=!0,Re.finalized=!0,Ti.litElementHydrateSupport?.({LitElement:Re});const Fs=Ti.litElementPolyfillSupport;Fs?.({LitElement:Re});(Ti.litElementVersions??=[]).push("4.2.1");const Hs={attribute:!0,type:String,converter:At,reflect:!1,hasChanged:Mi},Vs=(t=Hs,e,i)=>{const{kind:r,metadata:n}=i;let s=globalThis.litPropertyMetadata.get(n);if(s===void 0&&globalThis.litPropertyMetadata.set(n,s=new Map),r==="setter"&&((t=Object.create(t)).wrapped=!0),s.set(i.name,t),r==="accessor"){const{name:a}=i;return{set(d){const g=e.get.call(this);e.set.call(this,d),this.requestUpdate(a,g,t)},init(d){return d!==void 0&&this.C(a,void 0,t,d),d}}}if(r==="setter"){const{name:a}=i;return function(d){const g=this[a];e.call(this,d),this.requestUpdate(a,g,t)}}throw Error("Unsupported decorator location: "+r)};function q(t){return(e,i)=>typeof i=="object"?Vs(t,e,i):((r,n,s)=>{const a=n.hasOwnProperty(s);return n.constructor.createProperty(s,r),a?Object.getOwnPropertyDescriptor(n,s):void 0})(t,e,i)}const ct="a-f\\d",Ws=`#?[${ct}]{3}[${ct}]?`,Gs=`#?[${ct}]{6}([${ct}]{2})?`,Zs=new RegExp(`[^#${ct}]`,"gi"),Ks=new RegExp(`^${Ws}$|^${Gs}$`,"i");function Xs(t,e={}){if(typeof t!="string"||Zs.test(t)||!Ks.test(t))throw new TypeError("Expected a valid hex string");t=t.replace(/^#/,"");let i=1;t.length===8&&(i=Number.parseInt(t.slice(6,8),16)/255,t=t.slice(0,6)),t.length===4&&(i=Number.parseInt(t.slice(3,4).repeat(2),16)/255,t=t.slice(0,3)),t.length===3&&(t=t[0]+t[0]+t[1]+t[1]+t[2]+t[2]);const r=Number.parseInt(t,16),n=r>>16,s=r>>8&255,a=r&255,d=typeof e.alpha=="number"?e.alpha:i;if(e.format==="array")return[n,s,a,d];if(e.format==="css"){const g=d===1?"":` / ${Number((d*100).toFixed(2))}%`;return`rgb(${n} ${s} ${a}${g})`}return{red:n,green:s,blue:a,alpha:d}}class Js{constructor(){this._rgbaColors=new Map,this._originalColors=new Map}get colors(){return this._originalColors}set colors(e){if(this._rgbaColors.clear(),this._originalColors=e,e&&e.size){if(Array.from(e.keys()).find(n=>n<0||n>1))throw Error("The keys of the colors must represent the relative value where the color is fully applied.");e.forEach((n,s)=>{const a=this.convertFromRGBAString(n)||this.convertFromHex(n);if(Object.keys(a).length===0&&a.constructor===Object)throw Error(`Cannot convert color: ${n} to rgba-color`);this._rgbaColors.set(s,a)});const r=Array.from(this._rgbaColors.entries()).sort();this._rgbaColors=new Map(r)}}blend(e){if(!this._rgbaColors.size)throw Error("It is not possible to blend without a color list.");let i,r;for(const s of this._rgbaColors)if(i||(i=s),s[0]<e)i=s;else if(s[0]===e){i=r=s;break}else{r=s;break}r||(r=i);const n=r[0]-i[0];return n?this.blendColors(i[1],r[1],(e-i[0])/n):this.convertToRGBAString(i[1])}blendColors(e,i,r){return this.convertToRGBAString({red:Math.round(e.red+(i.red-e.red)*r),green:Math.round(e.green+(i.green-e.green)*r),blue:Math.round(e.blue+(i.blue-e.blue)*r),alpha:e.alpha+(i.alpha-e.alpha)*r})}convertFromHex(e){const i=Xs(e);return i.alpha>1&&(i.alpha/=255),i}convertFromRGBAString(e){const i=e.match(/rgba?\((\d{1,3}), ?(\d{1,3}), ?(\d{1,3})\)?(?:, ?(\d(?:\.\d?))\))?/);return i?{red:parseInt(i[1],10),green:parseInt(i[2],10),blue:parseInt(i[3],10),alpha:parseInt(i[4],10)||1}:null}transparentize(e,i){return this.convertToRGBAString(this.convertFromRGBAString(e),i)}convertToRGBAString(e,i){return`rgba(${e.red},${e.green},${e.blue},${i||e.alpha})`}}const me=t=>t??re,Ys=":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}",Qs="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",eo="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",to="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 io=Object.defineProperty,Li=(t,e,i,r)=>{for(var n=void 0,s=t.length-1,a;s>=0;s--)(a=t[s])&&(n=a(e,i,n)||n);return n&&io(e,i,n),n},Ze;const ut=(Ze=class extends Re{static parseLevel(t){if(t){const e=Object.keys($t).find(i=>i.toLowerCase()===t.toLowerCase());return e&&$t[e]}}static get styles(){return[Ri`
|
|
332
|
+
${Rt(Ys)}
|
|
333
|
+
`]}render(){return ge`${this.iconToUse&&ge`<img class="icon" src="${this.iconToUse}">`}${this.message}`}get iconToUse(){return this.icon||this._defaultIconPath}shouldUpdate(t){return t.has("level")&&(this._defaultIconPath=this.iconForLevel,!this.icon)?!0:super.shouldUpdate(t)}get iconForLevel(){switch(Ze.parseLevel(this.level)){case"warn":return to;case"suggest":return eo;case"error":return Qs;default:return null}}},Ze.ID="sd-field-validation-message",Ze.levelConverter={fromAttribute(t){return Ze.parseLevel(t)},toAttribute(t){return t&&t.toLowerCase()}},Ze);Li([q({type:String,attribute:!0})],ut.prototype,"message");Li([q({type:String,attribute:!0})],ut.prototype,"icon");Li([q({converter:ut.levelConverter,reflect:!0})],ut.prototype,"level");let Jt=ut;var $t=(t=>(t.Warn="warn",t.Suggest="suggest",t.Error="error",t))($t||{});customElements.get(Jt.ID)||customElements.define(Jt.ID,Jt);const no=":host{display:inline-flex;position:relative;cursor:text;font-family:Segoe UI,Lucida Sans,Arial,sans-serif;font-size:16px;color:#111;contain:layout style;flex-direction:column}:host([hidden]),:host([type=hidden]){display:none!important}:host([effective-disabled]){opacity:.6;cursor:default;filter:grayscale(100%)}:host([effective-disabled]) .unfocused-line,:host([effective-disabled]) .focused-line{border-bottom-style:dashed}:host(:not([effective-disabled]):focus) .focused-line,:host(:not([effective-disabled])[focused]) .focused-line{transform:none;transition:transform .25s}:host(:not([effective-disabled]):focus) .label.float,:host(:not([effective-disabled])[focused]) .label.float{color:var(--sd-input-focused-color, #1467ba)}:host([inactive]) .input{pointer-events:none}:host([effective-disabled]:focus),:host([effective-disabled][focused]){box-shadow:0 0 0 1px #111}:host(:not([effective-disabled])[validationlevel]) .focused-line,:host(:not([effective-disabled]):invalid) .focused-line{transform:none;transition:transform .25s}:host([validationlevel=warn i]) .focused-line{border-bottom-color:var(--sd-input-validation-color, #555555)}:host([validationlevel=warn i]) .label,:host([validationlevel=warn i]) .validation-message{color:var(--sd-input-validation-color, #555555)!important}:host([validationlevel=suggest i]) .focused-line{border-bottom-color:var(--sd-input-validation-color, #bf8800)}:host([validationlevel=suggest i]) .label,:host([validationlevel=suggest i]) .validation-message{color:var(--sd-input-validation-color, #bf8800)!important}:host([validationlevel=error i]) .focused-line,:host(:not([validationlevel]):invalid) .focused-line{border-bottom-color:var(--sd-input-validation-color, #cc0017)}:host([validationlevel=error i]) .label,:host([validationlevel=error i]) .validation-message,:host(:not([validationlevel]):invalid) .label,:host(:not([validationlevel]):invalid) .validation-message{color:var(--sd-input-validation-color, #cc0017)!important}.validation-message-wrapper{min-height:var(--sd-input-validation-message-minheight, 0px);position:relative;font-size:0}.validation-message{position:relative;position:var(--sd-input-validation-message-minheight, absolute);left:0;right:0}.label.float{transform:translateY(-75%) scale(.75);width:133%}.label:not(.float){max-width:100%}.floated-label-placeholder{height:20px;width:100%}.label{position:absolute;top:0;left:0;line-height:24px;pointer-events:none;color:var(--sd-input-color, #767676);transition:transform .25s,width .25s;transform-origin:left top}.input-wrapper{position:relative;display:flex;flex-direction:row;align-items:center;background-color:var(--input-wrapper-background-color)}:host([extended-prefix]:focus-within:not([effective-disabled])) .input-wrapper{flex-direction:column;align-items:baseline}:host([extended-prefix]:focus-within:not([effective-disabled])) .input-container{width:100%}:host([extended-prefix]:not(:focus-within)) .input-container,:host([extended-prefix][effective-disabled]) .input-container{width:0px}.input-container{line-height:var(--sd-input-line-height, 24px);flex:1 1 auto}.input{width:100%;background:var(--sd-input-background, transparent);font-family:inherit;font-size:inherit;text-align:inherit;color:inherit;border:none;outline:none;resize:none;padding-left:0;padding-right:0}.input:-webkit-autofill{animation-name:onautofillstart}.input:not(:-webkit-autofill){animation-name:onautofillcancel}@keyframes onautofillstart{0%{outline:none}}@keyframes onautofillcancel{0%{outline:none}}.label,input.input{text-overflow:ellipsis;overflow-x:hidden;white-space:nowrap}.validation-message{text-overflow:ellipsis;overflow-x:hidden;white-space:normal;white-space:var(--sd-input-validation-message-minheight, nowrap)}.input::placeholder{color:var(--sd-input-color, #767676)}.underline{height:2px;width:100%;position:relative}.unfocused-line,.focused-line{position:absolute;inset:0}.unfocused-line{border-bottom:1px solid var(--sd-input-underline-color, #959595)}.focused-line{border-bottom:2px solid var(--sd-input-focused-color, #1467ba);transform-origin:center center;transform:scale3d(0,1,1)}.prefix,.suffix{display:flex;flex-wrap:nowrap;max-width:100%}.prefix ::slotted(*),.suffix ::slotted(*){display:flex}";var ro=Object.defineProperty,Q=(t,e,i,r)=>{for(var n=void 0,s=t.length-1,a;s>=0;s--)(a=t[s])&&(n=a(e,i,n)||n);return n&&ro(e,i,n),n};const so="sd-lit-input",bn="delegatesFocus"in window.ShadowRoot.prototype;let oo=0;var xe;const Y=(xe=class extends Re{constructor(){super(),this.rows=1,this.effectiveDisabled=!1,this.type="text",this.autocomplete="off";const t=oo++;this._validationMessageId=xe.ID+"_message_"+t,this._inputId=xe.ID+"_input_"+t,this.attachInternals&&!this.activeShadyDOM&&(this._internals=this.attachInternals())}connectedCallback(){super.connectedCallback(),this.hasAttribute("tabIndex")||(this.tabIndex=0)}firstUpdated(t){super.firstUpdated(t),this.initAutocompleted(this.inputElement),this.updateInitialValue(),this.updateFormValidity(),this.hasAttribute("disabled")&&(this.disabled=!0),this.inputElement.oninput=e=>{this.autocompleted=e.inputType==="insertReplacementText"||!("data"in e),this.currentText=this.inputElement.value,this.fireValueChange(!0)},this.inputElement.onchange=()=>this.fireValueChange(),bn||(this.inputElement.onfocus=()=>this.setAttribute("focused",""),this.inputElement.onblur=()=>this.removeAttribute("focused"),this.addEventListener("focus",e=>{e.target===this&&this.inputElement.focus()})),this.inputElement.addEventListener("keyup",()=>{this.updateFormValidity()}),this.addEventListener("keydown",e=>{e.key=="Enter"&&this._internals?.form?.requestSubmit()}),this._initialized=!0}initAutocompleted(t){const e=i=>{/^onautofillstart(-sd-lit-input-\d+|\s?)$/.test(i.animationName)?this.autocompleted=!0:/^onautofillcancel(-sd-lit-input-\d+|\s?)$/.test(i.animationName)&&(this.autocompleted=!1)};this.activeShadyDOM?(this._needsAutocompletedCheck=!0,this.activeShadyDOM.nativeMethods.addEventListener.call(t,"animationstart",e)):t.addEventListener("animationstart",e)}get activeShadyDOM(){const t=window.ShadyDOM;return t&&t.inUse?t:null}updateInitialValue(){typeof this.currentText<"u"?this.value=this.currentText:this.value=this.getAttribute("value"),this.value&&(this.currentText=this.inputElement.value),this._initialValue=this.value}get disabled(){return this.hasAttribute("disabled")}set disabled(t){t?this.setAttribute("disabled",""):this.removeAttribute("disabled"),this._internals||(this.effectiveDisabled=t)}get inputElement(){return this.shadowRoot&&!this._inputElement&&(this._inputElement=this.shadowRoot.querySelector(".input")),this._inputElement}get value(){return this.inputElement&&this.inputElement.value}set value(t){this.currentText=t||"",this.inputElement&&(this.inputElement.value=this.currentText),this.setFormValue(this.currentText)}get selectionStart(){return this.inputElement?this.inputElement.selectionStart:0}focus(){this.inputElement?this.inputElement.focus():super.focus()}select(){this.inputElement&&this.inputElement.select()}setSelectionRange(t,e){this.updateComplete.then(()=>{this.inputElement&&this.inputElement.setSelectionRange(t,e)})}static get styles(){return[Ri`
|
|
334
|
+
${Rt(no)}
|
|
335
|
+
`]}render(){let t;const e=this.validationMessage||this.inputElement?.validationMessage,i=e||this.validationLevel!=null;return this.rows===1?t=ge`
|
|
337
336
|
<input
|
|
338
337
|
id=${this._inputId}
|
|
339
338
|
class="input"
|
|
340
339
|
.type=${this.type}
|
|
341
|
-
placeholder=${
|
|
342
|
-
name=${
|
|
340
|
+
placeholder=${me(this.placeholder||void 0)}
|
|
341
|
+
name=${me(this.name||void 0)}
|
|
343
342
|
aria-disabled=${this.effectiveDisabled}
|
|
344
343
|
autocomplete=${this.autocomplete}
|
|
345
344
|
?disabled=${this.inactive}
|
|
346
345
|
?readonly=${this.readonly||this.effectiveDisabled}
|
|
347
346
|
?required=${this.required}
|
|
348
|
-
maxlength=${this.maxlength>0?this.maxlength:
|
|
347
|
+
maxlength=${this.maxlength>0?this.maxlength:xe.DEFAULT_MAX_LENGTH}
|
|
349
348
|
aria-describedby=${this._validationMessageId}
|
|
350
|
-
aria-invalid=${
|
|
351
|
-
aria-label=${
|
|
352
|
-
min=${
|
|
353
|
-
max=${
|
|
354
|
-
pattern=${
|
|
349
|
+
aria-invalid=${me(i)}
|
|
350
|
+
aria-label=${me(this.sdAriaLabel||void 0)}
|
|
351
|
+
min=${me(this.min||void 0)}
|
|
352
|
+
max=${me(this.max||void 0)}
|
|
353
|
+
pattern=${me(this.pattern||void 0)}
|
|
355
354
|
/>
|
|
356
|
-
`:
|
|
355
|
+
`:t=ge`
|
|
357
356
|
<textarea
|
|
358
357
|
id=${this._inputId}
|
|
359
358
|
class="input"
|
|
360
|
-
placeholder=${
|
|
361
|
-
name=${
|
|
359
|
+
placeholder=${me(this.placeholder||void 0)}
|
|
360
|
+
name=${me(this.name||void 0)}
|
|
362
361
|
aria-disabled=${this.effectiveDisabled}
|
|
363
362
|
autocomplete=${this.autocomplete}
|
|
364
363
|
?disabled=${this.inactive}
|
|
365
364
|
?readonly=${this.readonly||this.effectiveDisabled}
|
|
366
365
|
?required=${this.required}
|
|
367
|
-
maxlength=${this.maxlength>0?this.maxlength:
|
|
366
|
+
maxlength=${this.maxlength>0?this.maxlength:xe.DEFAULT_MAX_LENGTH}
|
|
368
367
|
rows=${this.rows}
|
|
369
368
|
aria-describedby=${this._validationMessageId}
|
|
370
|
-
aria-invalid=${
|
|
371
|
-
aria-label=${
|
|
369
|
+
aria-invalid=${me(i)}
|
|
370
|
+
aria-label=${me(this.sdAriaLabel||void 0)}
|
|
372
371
|
></textarea>
|
|
373
|
-
`,
|
|
374
|
-
${this.label?
|
|
372
|
+
`,ge`
|
|
373
|
+
${this.label?ge` <div class="floated-label-placeholder" aria-hidden="true"> </div> `:re}
|
|
375
374
|
<div class="input-wrapper">
|
|
376
375
|
<span class="prefix"><slot name="prefix"></slot></span>
|
|
377
376
|
<div class="input-container" style="position:${this.shouldFloat()?"static":"relative"};">
|
|
378
|
-
${this.label&&
|
|
377
|
+
${this.label&&ge`
|
|
379
378
|
<label for="${this._inputId}" class="label ${this.shouldFloat()?"float":""}"
|
|
380
379
|
>${this.label}</label
|
|
381
380
|
>
|
|
382
381
|
`}
|
|
383
|
-
${
|
|
382
|
+
${t}
|
|
384
383
|
</div>
|
|
385
384
|
<span class="suffix"><slot name="suffix"></slot></span>
|
|
386
385
|
</div>
|
|
@@ -389,25 +388,25 @@ document.querySelectorAll("[validate-it] sd-lit-slider").forEach((slider: Slider
|
|
|
389
388
|
<div class="focused-line"></div>
|
|
390
389
|
</div>
|
|
391
390
|
<div class="validation-message-wrapper" aria-hidden="true">
|
|
392
|
-
${
|
|
391
|
+
${(e||this.validationIconSrc)&&ge`
|
|
393
392
|
<sd-field-validation-message
|
|
394
393
|
id=${this._validationMessageId}
|
|
395
394
|
class="validation-message"
|
|
396
|
-
.message=${
|
|
395
|
+
.message=${e}
|
|
397
396
|
.icon=${this.validationIconSrc}
|
|
398
397
|
.level=${this.validationLevel}
|
|
399
398
|
>
|
|
400
399
|
</sd-field-validation-message>
|
|
401
400
|
`}
|
|
402
401
|
</div>
|
|
403
|
-
`}updated(n){super.updated(n),this._needsAutocompletedCheck&&!this.autocompleted&&setTimeout(()=>{try{this.autocompleted=this.autocompleted||!!this.shadowRoot.querySelector(":-webkit-autofill")}catch{}},0),this.rows>1&&((n.has("min")||n.has("max")||n.has("pattern"))&&console.warn("min, max & pattern attributes are not supported with multiple rows configuration."),this.type!="text"&&console.warn(`type: ${this.type} is not supported with multiple rows configuration.`))}update(n){var e,t;if(super.update(n),n.has("validationMessage")&&(this.validationMessage?(this.validationLevel||(this.validationLevel=qe.Error),(e=this._internals)==null||e.setValidity({customError:!0},this.validationMessage)):(this.validationLevel=null,(t=this._internals)==null||t.setValidity(this.inputElement.validity,this.inputElement.validationMessage))),this._initialized&&n.has("rows"))throw Error("rows attribute cannot be changed after the input is attached to the DOM")}fireValueChange(n){this.dispatchEvent(new CustomEvent(`${n?"immediate-":""}value-change`,{detail:{value:this.value}})),this.setFormValue(this.value),this.updateFormValidity()}updateFormValidity(){if(this.validationMessage==null){this._internals.setValidity(this.inputElement.validity,this.inputElement.validationMessage);const n=this.shadowRoot.querySelector("sd-field-validation-message");this.requestUpdate("validationMessage",n==null?null:n.message)}}shouldFloat(){return this.alwaysFloatLabel||this.currentText||this.placeholder||this.autocompleted||this.type==="date"}setFormValue(n){var e;(e=this._internals)==null||e.setFormValue(n)}formResetCallback(){this.value=this._initialValue}formDisabledCallback(n){this.effectiveDisabled=n||this.hasAttribute("disabled")}formAssociatedCallback(n){this._needsAutocompletedCheck=!0}formStateRestoreCallback(n,e){typeof n=="string"&&(this.value=n)}},Q.ID=eo,Q.DEFAULT_MAX_LENGTH=524288,Q.formAssociated=!0,Q.shadowRootOptions={...ce.shadowRootOptions,delegatesFocus:an},Q);T([x({type:String,reflect:!0})],P.prototype,"label",2);T([x({type:String,attribute:!0})],P.prototype,"validationMessage",2);T([x({type:String,attribute:!0})],P.prototype,"validationIconSrc",2);T([x({type:qe,attribute:!0,reflect:!0})],P.prototype,"validationLevel",2);T([x({type:String,hasChanged(n,e){return e!=null&&e!=n}})],P.prototype,"currentText",2);T([x({type:Boolean,attribute:!0})],P.prototype,"alwaysFloatLabel",2);T([x({type:Boolean,attribute:!0})],P.prototype,"autocompleted",2);T([x({type:Number,attribute:!0})],P.prototype,"rows",2);T([x({type:Boolean,reflect:!0,attribute:"effective-disabled"})],P.prototype,"effectiveDisabled",2);T([x({type:Boolean,reflect:!0,attribute:"extended-prefix"})],P.prototype,"extendedPrefix",2);T([x({type:String,reflect:!0})],P.prototype,"type",2);T([x({type:String,reflect:!0})],P.prototype,"placeholder",2);T([x({type:String,reflect:!0})],P.prototype,"sdAriaLabel",2);T([x({type:Number,reflect:!0})],P.prototype,"maxlength",2);T([x({type:Boolean,reflect:!0})],P.prototype,"readonly",2);T([x({type:Boolean,reflect:!0})],P.prototype,"required",2);T([x({type:String,reflect:!0})],P.prototype,"name",2);T([x({type:Boolean,reflect:!0})],P.prototype,"inactive",2);T([x({type:String,attribute:!0})],P.prototype,"autocomplete",2);T([x({type:String,attribute:!0})],P.prototype,"min",2);T([x({type:String,attribute:!0})],P.prototype,"max",2);T([x({type:String,attribute:!0})],P.prototype,"pattern",2);let Qt=P;customElements.get(Qt.ID)||customElements.define(Qt.ID,Qt);var io=20,no=1,be=1e6,ln=1e6,so=-7,ro=21,oo=!1,Qe="[big.js] ",ve=Qe+"Invalid ",Mt=ve+"decimal places",ao=ve+"rounding mode",Bn=Qe+"Division by zero",$={},te=void 0,lo=/^-?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i;function Un(){function n(e){var t=this;if(!(t instanceof n))return e===te?Un():new n(e);if(e instanceof n)t.s=e.s,t.e=e.e,t.c=e.c.slice();else{if(typeof e!="string"){if(n.strict===!0&&typeof e!="bigint")throw TypeError(ve+"value");e=e===0&&1/e<0?"-0":String(e)}co(t,e)}t.constructor=n}return n.prototype=$,n.DP=io,n.RM=no,n.NE=so,n.PE=ro,n.strict=oo,n.roundDown=0,n.roundHalfUp=1,n.roundHalfEven=2,n.roundUp=3,n}function co(n,e){var t,i,s;if(!lo.test(e))throw Error(ve+"number");for(n.s=e.charAt(0)=="-"?(e=e.slice(1),-1):1,(t=e.indexOf("."))>-1&&(e=e.replace(".","")),(i=e.search(/e/i))>0?(t<0&&(t=i),t+=+e.slice(i+1),e=e.substring(0,i)):t<0&&(t=e.length),s=e.length,i=0;i<s&&e.charAt(i)=="0";)++i;if(i==s)n.c=[n.e=0];else{for(;s>0&&e.charAt(--s)=="0";);for(n.e=t-i-1,n.c=[],t=0;i<=s;)n.c[t++]=+e.charAt(i++)}return n}function ye(n,e,t,i){var s=n.c;if(t===te&&(t=n.constructor.RM),t!==0&&t!==1&&t!==2&&t!==3)throw Error(ao);if(e<1)i=t===3&&(i||!!s[0])||e===0&&(t===1&&s[0]>=5||t===2&&(s[0]>5||s[0]===5&&(i||s[1]!==te))),s.length=1,i?(n.e=n.e-e+1,s[0]=1):s[0]=n.e=0;else if(e<s.length){if(i=t===1&&s[e]>=5||t===2&&(s[e]>5||s[e]===5&&(i||s[e+1]!==te||s[e-1]&1))||t===3&&(i||!!s[0]),s.length=e,i){for(;++s[--e]>9;)if(s[e]=0,e===0){++n.e,s.unshift(1);break}}for(e=s.length;!s[--e];)s.pop()}return n}function Pe(n,e,t){var i=n.e,s=n.c.join(""),o=s.length;if(e)s=s.charAt(0)+(o>1?"."+s.slice(1):"")+(i<0?"e":"e+")+i;else if(i<0){for(;++i;)s="0"+s;s="0."+s}else if(i>0)if(++i>o)for(i-=o;i--;)s+="0";else i<o&&(s=s.slice(0,i)+"."+s.slice(i));else o>1&&(s=s.charAt(0)+"."+s.slice(1));return n.s<0&&t?"-"+s:s}$.abs=function(){var n=new this.constructor(this);return n.s=1,n};$.cmp=function(n){var e,t=this,i=t.c,s=(n=new t.constructor(n)).c,o=t.s,r=n.s,a=t.e,l=n.e;if(!i[0]||!s[0])return i[0]?o:s[0]?-r:0;if(o!=r)return o;if(e=o<0,a!=l)return a>l^e?1:-1;for(r=(a=i.length)<(l=s.length)?a:l,o=-1;++o<r;)if(i[o]!=s[o])return i[o]>s[o]^e?1:-1;return a==l?0:a>l^e?1:-1};$.div=function(n){var e=this,t=e.constructor,i=e.c,s=(n=new t(n)).c,o=e.s==n.s?1:-1,r=t.DP;if(r!==~~r||r<0||r>be)throw Error(Mt);if(!s[0])throw Error(Bn);if(!i[0])return n.s=o,n.c=[n.e=0],n;var a,l,c,u,h,p=s.slice(),E=a=s.length,k=i.length,_=i.slice(0,a),m=_.length,D=n,H=D.c=[],W=0,I=r+(D.e=e.e-n.e)+1;for(D.s=o,o=I<0?0:I,p.unshift(0);m++<a;)_.push(0);do{for(c=0;c<10;c++){if(a!=(m=_.length))u=a>m?1:-1;else for(h=-1,u=0;++h<a;)if(s[h]!=_[h]){u=s[h]>_[h]?1:-1;break}if(u<0){for(l=m==a?s:p;m;){if(_[--m]<l[m]){for(h=m;h&&!_[--h];)_[h]=9;--_[h],_[m]+=10}_[m]-=l[m]}for(;!_[0];)_.shift()}else break}H[W++]=u?c:++c,_[0]&&u?_[m]=i[E]||0:_=[i[E]]}while((E++<k||_[0]!==te)&&o--);return!H[0]&&W!=1&&(H.shift(),D.e--,I--),W>I&&ye(D,I,t.RM,_[0]!==te),D};$.eq=function(n){return this.cmp(n)===0};$.gt=function(n){return this.cmp(n)>0};$.gte=function(n){return this.cmp(n)>-1};$.lt=function(n){return this.cmp(n)<0};$.lte=function(n){return this.cmp(n)<1};$.minus=$.sub=function(n){var e,t,i,s,o=this,r=o.constructor,a=o.s,l=(n=new r(n)).s;if(a!=l)return n.s=-l,o.plus(n);var c=o.c.slice(),u=o.e,h=n.c,p=n.e;if(!c[0]||!h[0])return h[0]?n.s=-l:c[0]?n=new r(o):n.s=1,n;if(a=u-p){for((s=a<0)?(a=-a,i=c):(p=u,i=h),i.reverse(),l=a;l--;)i.push(0);i.reverse()}else for(t=((s=c.length<h.length)?c:h).length,a=l=0;l<t;l++)if(c[l]!=h[l]){s=c[l]<h[l];break}if(s&&(i=c,c=h,h=i,n.s=-n.s),(l=(t=h.length)-(e=c.length))>0)for(;l--;)c[e++]=0;for(l=e;t>a;){if(c[--t]<h[t]){for(e=t;e&&!c[--e];)c[e]=9;--c[e],c[t]+=10}c[t]-=h[t]}for(;c[--l]===0;)c.pop();for(;c[0]===0;)c.shift(),--p;return c[0]||(n.s=1,c=[p=0]),n.c=c,n.e=p,n};$.mod=function(n){var e,t=this,i=t.constructor,s=t.s,o=(n=new i(n)).s;if(!n.c[0])throw Error(Bn);return t.s=n.s=1,e=n.cmp(t)==1,t.s=s,n.s=o,e?new i(t):(s=i.DP,o=i.RM,i.DP=i.RM=0,t=t.div(n),i.DP=s,i.RM=o,this.minus(t.times(n)))};$.neg=function(){var n=new this.constructor(this);return n.s=-n.s,n};$.plus=$.add=function(n){var e,t,i,s=this,o=s.constructor;if(n=new o(n),s.s!=n.s)return n.s=-n.s,s.minus(n);var r=s.e,a=s.c,l=n.e,c=n.c;if(!a[0]||!c[0])return c[0]||(a[0]?n=new o(s):n.s=s.s),n;if(a=a.slice(),e=r-l){for(e>0?(l=r,i=c):(e=-e,i=a),i.reverse();e--;)i.push(0);i.reverse()}for(a.length-c.length<0&&(i=c,c=a,a=i),e=c.length,t=0;e;a[e]%=10)t=(a[--e]=a[e]+c[e]+t)/10|0;for(t&&(a.unshift(t),++l),e=a.length;a[--e]===0;)a.pop();return n.c=a,n.e=l,n};$.pow=function(n){var e=this,t=new e.constructor("1"),i=t,s=n<0;if(n!==~~n||n<-ln||n>ln)throw Error(ve+"exponent");for(s&&(n=-n);n&1&&(i=i.times(e)),n>>=1,!!n;)e=e.times(e);return s?t.div(i):i};$.prec=function(n,e){if(n!==~~n||n<1||n>be)throw Error(ve+"precision");return ye(new this.constructor(this),n,e)};$.round=function(n,e){if(n===te)n=0;else if(n!==~~n||n<-be||n>be)throw Error(Mt);return ye(new this.constructor(this),n+this.e+1,e)};$.sqrt=function(){var n,e,t,i=this,s=i.constructor,o=i.s,r=i.e,a=new s("0.5");if(!i.c[0])return new s(i);if(o<0)throw Error(Qe+"No square root");o=Math.sqrt(i+""),o===0||o===1/0?(e=i.c.join(""),e.length+r&1||(e+="0"),o=Math.sqrt(e),r=((r+1)/2|0)-(r<0||r&1),n=new s((o==1/0?"5e":(o=o.toExponential()).slice(0,o.indexOf("e")+1))+r)):n=new s(o+""),r=n.e+(s.DP+=4);do t=n,n=a.times(t.plus(i.div(t)));while(t.c.slice(0,r).join("")!==n.c.slice(0,r).join(""));return ye(n,(s.DP-=4)+n.e+1,s.RM)};$.times=$.mul=function(n){var e,t=this,i=t.constructor,s=t.c,o=(n=new i(n)).c,r=s.length,a=o.length,l=t.e,c=n.e;if(n.s=t.s==n.s?1:-1,!s[0]||!o[0])return n.c=[n.e=0],n;for(n.e=l+c,r<a&&(e=s,s=o,o=e,c=r,r=a,a=c),e=new Array(c=r+a);c--;)e[c]=0;for(l=a;l--;){for(a=0,c=r+l;c>l;)a=e[c]+o[l]*s[c-l-1]+a,e[c--]=a%10,a=a/10|0;e[c]=a}for(a?++n.e:e.shift(),l=e.length;!e[--l];)e.pop();return n.c=e,n};$.toExponential=function(n,e){var t=this,i=t.c[0];if(n!==te){if(n!==~~n||n<0||n>be)throw Error(Mt);for(t=ye(new t.constructor(t),++n,e);t.c.length<n;)t.c.push(0)}return Pe(t,!0,!!i)};$.toFixed=function(n,e){var t=this,i=t.c[0];if(n!==te){if(n!==~~n||n<0||n>be)throw Error(Mt);for(t=ye(new t.constructor(t),n+t.e+1,e),n=n+t.e+1;t.c.length<n;)t.c.push(0)}return Pe(t,!1,!!i)};$[Symbol.for("nodejs.util.inspect.custom")]=$.toJSON=$.toString=function(){var n=this,e=n.constructor;return Pe(n,n.e<=e.NE||n.e>=e.PE,!!n.c[0])};$.toNumber=function(){var n=Number(Pe(this,!0,!0));if(this.constructor.strict===!0&&!this.eq(n.toString()))throw Error(Qe+"Imprecise conversion");return n};$.toPrecision=function(n,e){var t=this,i=t.constructor,s=t.c[0];if(n!==te){if(n!==~~n||n<1||n>be)throw Error(ve+"precision");for(t=ye(new i(t),n,e);t.c.length<n;)t.c.push(0)}return Pe(t,n<=t.e||t.e<=i.NE||t.e>=i.PE,!!s)};$.valueOf=function(){var n=this,e=n.constructor;if(e.strict===!0)throw Error(Qe+"valueOf disallowed");return Pe(n,n.e<=e.NE||n.e>=e.PE,!0)};var uo=Un();const ho=":host{display:block;position:relative;width:100%;height:48px;cursor:pointer;touch-action:none;contain:layout style}:host([hidden]){display:none!important}:host([disabled]){opacity:.6;cursor:default;filter:grayscale(100%)}:host([disabled]) sd-lit-input{opacity:1}#track-container{position:absolute;top:50%;left:0;height:2px;overflow:hidden}#track{position:absolute;width:100%;height:100%;transform-origin:left top;will-change:transform}:host(:focus) #thumb{top:11px;left:-14px;border-width:8px}#thumb[active]{top:7px!important;left:-18px!important;border-width:12px!important}#thumb{width:12px;height:12px;position:absolute;top:19px;left:-6px;border-radius:50%;border-width:0;background-clip:padding-box;-webkit-user-select:none;user-select:none;will-change:transform;border-style:solid}sd-lit-input{position:absolute;height:100%;width:var(--slider-suffix-width, 50px);right:0;text-align:center;outline:none;white-space:nowrap}sd-field-validation-message{position:absolute;bottom:0}";var po=Object.defineProperty,fo=Object.getOwnPropertyDescriptor,F=(n,e,t,i)=>{for(var s=i>1?void 0:i?fo(e,t):e,o=n.length-1,r;o>=0;o--)(r=n[o])&&(s=(i?r(e,t,s):r(s))||s);return i&&s&&po(e,t,s),s},le;const B=(le=class extends ce{constructor(){super(),this.thumbPosition=0,this._value=0,this._relativeValue=0,this.min=0,this.max=1,this.colorBlender=new Vr,this.baseColor=le.defaultColor,this.resizeObserver=new ResizeObserver(()=>{window.requestAnimationFrame(()=>{this.lastKnownWidth!==this.trackContainerWidth&&(this.lastKnownWidth=this.trackContainerWidth,this.doUpdateRelativeValue(this._relativeValue,!0))})})}firstUpdated(e){super.firstUpdated(e),this.updateValue(Number.parseFloat(this.getAttribute("value"))||this._value),this.addEventListener(this.useTouchEvents()?"touchstart":"pointerdown",t=>{!this.hasAttribute("disabled")&&t.composedPath().indexOf(this.inputElement)===-1&&(t.preventDefault(),t.pointerId&&this.setPointerCapture(t.pointerId),this.focus(),this.listenMoveEvents(t.clientX||t.changedTouches[0].clientX))}),this.addEventListener("keydown",this.handleKeyDown,!0),this.setAttribute("aria-valuemin",this.min.toString()),this.setAttribute("aria-valuemax",this.max.toString()),this.hasAttribute("tabindex")||this.setAttribute("tabindex","0")}connectedCallback(){super.connectedCallback(),["colors","min","max","step","editable","inputSuffix","value"].forEach(e=>{this.upgradeProperty(e)}),this.resizeObserver.observe(this)}disconnectedCallback(){super.disconnectedCallback(),this.lastKnownWidth=void 0,this.resizeObserver.disconnect()}upgradeProperty(e){if(Object.prototype.hasOwnProperty.call(this,e)){const t=this[e];delete this[e],this[e]=t}}static get observedAttributes(){const e=super.observedAttributes;return e.push("value"),e}attributeChangedCallback(e,t,i){super.attributeChangedCallback(e,t,i),(e==="value"||e=="step")&&this.hasUpdated&&this.updateValue(Number.parseFloat(i))}updateValue(e){this.setValueInternal(e)&&(this.inputElement&&(this.inputElement.value=this.formattedValue()),this._value!=e&&this.fireBothValueChangeEvents())}get value(){return this._value}set value(e){this.setValueInternal(e)&&this.fireBothValueChangeEvents()}roundToStep(e){let t=Number.parseFloat(e);if(Number.isNaN(t))return this._value;if(this.step&&t>=this.min&&t<=this.max){const i=uo(t).minus(this.min).div(this.step).round().mul(this.step).plus(this.min);t=Number.parseFloat(i.toString())}return t}setValueInternal(e){const t=this.roundToStep(e),i=this.clampValue?Math.max(this.min,Math.min(this.max,t)):t;if(this._value!==i){const s=this._value;return this._value=i,this.relativeValue=(i-this.min)/(this.max-this.min),this.setAttribute("aria-valuenow",this._value.toString()),this.requestUpdate("value",s),!0}return!1}get relativeValue(){return this._relativeValue}set relativeValue(e){this._relativeValue!==e&&this.doUpdateRelativeValue(e)}doUpdateRelativeValue(e,t){this._relativeValue=e,this.thumbPosition=Math.min(Math.max(0,e),1)*this.trackContainerWidth;const i=this.min+(this.max-this.min)*this._relativeValue;this.setValueInternal(i),!t&&this.colors&&this.colors.size&&(this.baseColor=this.colorBlender.blend(this._relativeValue))}get colors(){return this.colorBlender.colors}set colors(e){this.colorBlender.colors=e,this.colors&&this.colors.size?this.baseColor=this.colorBlender.blend(this._relativeValue):this.baseColor=le.defaultColor}static get styles(){return[Ai`
|
|
404
|
-
${
|
|
405
|
-
`]}render(){const e=this.colorBlender.transparentize(this.baseColor,.26),
|
|
406
|
-
<div id="track-container" style="${
|
|
407
|
-
<div id="track" style="${
|
|
402
|
+
`}updated(t){super.updated(t),this._needsAutocompletedCheck&&!this.autocompleted&&setTimeout(()=>{try{this.autocompleted=this.autocompleted||!!this.shadowRoot.querySelector(":-webkit-autofill")}catch{}},0),this.rows>1&&((t.has("min")||t.has("max")||t.has("pattern"))&&console.warn("min, max & pattern attributes are not supported with multiple rows configuration."),this.type!="text"&&console.warn(`type: ${this.type} is not supported with multiple rows configuration.`))}update(t){if(super.update(t),t.has("validationMessage")&&(this.validationMessage?this._internals?.setValidity({customError:!0},this.validationMessage):this._internals?.setValidity(this.inputElement.validity,this.inputElement.validationMessage)),this._initialized&&t.has("rows"))throw Error("rows attribute cannot be changed after the input is attached to the DOM")}fireValueChange(t){this.dispatchEvent(new CustomEvent(`${t?"immediate-":""}value-change`,{detail:{value:this.value}})),this.setFormValue(this.value)}updateFormValidity(){if(this.validationMessage==null){this._internals.setValidity(this.inputElement.validity,this.inputElement.validationMessage);const t=this.shadowRoot.querySelector("sd-field-validation-message");this.requestUpdate("validationMessage",t==null?null:t.message)}}shouldFloat(){return this.alwaysFloatLabel||this.currentText||this.placeholder||this.autocompleted||this.type==="date"}setFormValue(t){this._internals?.setFormValue(t),this.updateFormValidity()}formResetCallback(){this.value=this._initialValue}formDisabledCallback(t){this.effectiveDisabled=t||this.hasAttribute("disabled")}formAssociatedCallback(t){this._needsAutocompletedCheck=!0}formStateRestoreCallback(t,e){typeof t=="string"&&(this.value=t)}},xe.ID=so,xe.DEFAULT_MAX_LENGTH=524288,xe.formAssociated=!0,xe.shadowRootOptions={...Re.shadowRootOptions,delegatesFocus:bn},xe);Q([q({type:String,reflect:!0})],Y.prototype,"label");Q([q({type:String,attribute:!0})],Y.prototype,"validationMessage");Q([q({type:String,attribute:!0})],Y.prototype,"validationIconSrc");Q([q({type:$t,attribute:!0,reflect:!0})],Y.prototype,"validationLevel");Q([q({type:String,hasChanged(t,e){return e!=null&&e!=t}})],Y.prototype,"currentText");Q([q({type:Boolean,attribute:!0})],Y.prototype,"alwaysFloatLabel");Q([q({type:Boolean,attribute:!0})],Y.prototype,"autocompleted");Q([q({type:Number,attribute:!0})],Y.prototype,"rows");Q([q({type:Boolean,reflect:!0,attribute:"effective-disabled"})],Y.prototype,"effectiveDisabled");Q([q({type:Boolean,reflect:!0,attribute:"extended-prefix"})],Y.prototype,"extendedPrefix");Q([q({type:String,reflect:!0})],Y.prototype,"type");Q([q({type:String,reflect:!0})],Y.prototype,"placeholder");Q([q({type:String,reflect:!0})],Y.prototype,"sdAriaLabel");Q([q({type:Number,reflect:!0})],Y.prototype,"maxlength");Q([q({type:Boolean,reflect:!0})],Y.prototype,"readonly");Q([q({type:Boolean,reflect:!0})],Y.prototype,"required");Q([q({type:String,reflect:!0})],Y.prototype,"name");Q([q({type:Boolean,reflect:!0})],Y.prototype,"inactive");Q([q({type:String,attribute:!0})],Y.prototype,"autocomplete");Q([q({type:String,attribute:!0})],Y.prototype,"min");Q([q({type:String,attribute:!0})],Y.prototype,"max");Q([q({type:String,attribute:!0})],Y.prototype,"pattern");let Yt=Y;customElements.get(Yt.ID)||customElements.define(Yt.ID,Yt);var ao=20,lo=1,De=1e6,vn=1e6,co=-7,uo=21,ho=!1,dt="[big.js] ",ze=dt+"Invalid ",Nt=ze+"decimal places",fo=ze+"rounding mode",er=dt+"Division by zero",V={},Ee=void 0,po=/^-?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i;function tr(){function t(e){var i=this;if(!(i instanceof t))return e===Ee&&arguments.length===0?tr():new t(e);if(e instanceof t)i.s=e.s,i.e=e.e,i.c=e.c.slice();else{if(typeof e!="string"){if(t.strict===!0&&typeof e!="bigint")throw TypeError(ze+"value");e=e===0&&1/e<0?"-0":String(e)}mo(i,e)}i.constructor=t}return t.prototype=V,t.DP=ao,t.RM=lo,t.NE=co,t.PE=uo,t.strict=ho,t.roundDown=0,t.roundHalfUp=1,t.roundHalfEven=2,t.roundUp=3,t}function mo(t,e){var i,r,n;if(!po.test(e))throw Error(ze+"number");for(t.s=e.charAt(0)=="-"?(e=e.slice(1),-1):1,(i=e.indexOf("."))>-1&&(e=e.replace(".","")),(r=e.search(/e/i))>0?(i<0&&(i=r),i+=+e.slice(r+1),e=e.substring(0,r)):i<0&&(i=e.length),n=e.length,r=0;r<n&&e.charAt(r)=="0";)++r;if(r==n)t.c=[t.e=0];else{for(;n>0&&e.charAt(--n)=="0";);for(t.e=i-r-1,t.c=[],i=0;r<=n;)t.c[i++]=+e.charAt(r++)}return t}function Be(t,e,i,r){var n=t.c;if(i===Ee&&(i=t.constructor.RM),i!==0&&i!==1&&i!==2&&i!==3)throw Error(fo);if(e<1)r=i===3&&(r||!!n[0])||e===0&&(i===1&&n[0]>=5||i===2&&(n[0]>5||n[0]===5&&(r||n[1]!==Ee))),n.length=1,r?(t.e=t.e-e+1,n[0]=1):n[0]=t.e=0;else if(e<n.length){if(r=i===1&&n[e]>=5||i===2&&(n[e]>5||n[e]===5&&(r||n[e+1]!==Ee||n[e-1]&1))||i===3&&(r||!!n[0]),n.length=e,r){for(;++n[--e]>9;)if(n[e]=0,e===0){++t.e,n.unshift(1);break}}for(e=n.length;!n[--e];)n.pop()}return t}function Ue(t,e,i){var r=t.e,n=t.c.join(""),s=n.length;if(e)n=n.charAt(0)+(s>1?"."+n.slice(1):"")+(r<0?"e":"e+")+r;else if(r<0){for(;++r;)n="0"+n;n="0."+n}else if(r>0)if(++r>s)for(r-=s;r--;)n+="0";else r<s&&(n=n.slice(0,r)+"."+n.slice(r));else s>1&&(n=n.charAt(0)+"."+n.slice(1));return t.s<0&&i?"-"+n:n}V.abs=function(){var t=new this.constructor(this);return t.s=1,t};V.cmp=function(t){var e,i=this,r=i.c,n=(t=new i.constructor(t)).c,s=i.s,a=t.s,d=i.e,g=t.e;if(!r[0]||!n[0])return r[0]?s:n[0]?-a:0;if(s!=a)return s;if(e=s<0,d!=g)return d>g^e?1:-1;for(a=(d=r.length)<(g=n.length)?d:g,s=-1;++s<a;)if(r[s]!=n[s])return r[s]>n[s]^e?1:-1;return d==g?0:d>g^e?1:-1};V.div=function(t){var e=this,i=e.constructor,r=e.c,n=(t=new i(t)).c,s=e.s==t.s?1:-1,a=i.DP;if(a!==~~a||a<0||a>De)throw Error(Nt);if(!n[0])throw Error(er);if(!r[0])return t.s=s,t.c=[t.e=0],t;var d,g,h,o,l,c=n.slice(),u=d=n.length,p=r.length,f=r.slice(0,d),b=f.length,x=t,_=x.c=[],w=0,y=a+(x.e=e.e-t.e)+1;for(x.s=s,s=y<0?0:y,c.unshift(0);b++<d;)f.push(0);do{for(h=0;h<10;h++){if(d!=(b=f.length))o=d>b?1:-1;else for(l=-1,o=0;++l<d;)if(n[l]!=f[l]){o=n[l]>f[l]?1:-1;break}if(o<0){for(g=b==d?n:c;b;){if(f[--b]<g[b]){for(l=b;l&&!f[--l];)f[l]=9;--f[l],f[b]+=10}f[b]-=g[b]}for(;!f[0];)f.shift()}else break}_[w++]=o?h:++h,f[0]&&o?f[b]=r[u]||0:f=[r[u]]}while((u++<p||f[0]!==Ee)&&s--);return!_[0]&&w!=1&&(_.shift(),x.e--,y--),w>y&&Be(x,y,i.RM,f[0]!==Ee),x};V.eq=function(t){return this.cmp(t)===0};V.gt=function(t){return this.cmp(t)>0};V.gte=function(t){return this.cmp(t)>-1};V.lt=function(t){return this.cmp(t)<0};V.lte=function(t){return this.cmp(t)<1};V.minus=V.sub=function(t){var e,i,r,n,s=this,a=s.constructor,d=s.s,g=(t=new a(t)).s;if(d!=g)return t.s=-g,s.plus(t);var h=s.c.slice(),o=s.e,l=t.c,c=t.e;if(!h[0]||!l[0])return l[0]?t.s=-g:h[0]?t=new a(s):t.s=1,t;if(d=o-c){for((n=d<0)?(d=-d,r=h):(c=o,r=l),r.reverse(),g=d;g--;)r.push(0);r.reverse()}else for(i=((n=h.length<l.length)?h:l).length,d=g=0;g<i;g++)if(h[g]!=l[g]){n=h[g]<l[g];break}if(n&&(r=h,h=l,l=r,t.s=-t.s),(g=(i=l.length)-(e=h.length))>0)for(;g--;)h[e++]=0;for(g=e;i>d;){if(h[--i]<l[i]){for(e=i;e&&!h[--e];)h[e]=9;--h[e],h[i]+=10}h[i]-=l[i]}for(;h[--g]===0;)h.pop();for(;h[0]===0;)h.shift(),--c;return h[0]||(t.s=1,h=[c=0]),t.c=h,t.e=c,t};V.mod=function(t){var e,i=this,r=i.constructor,n=i.s,s=(t=new r(t)).s;if(!t.c[0])throw Error(er);return i.s=t.s=1,e=t.cmp(i)==1,i.s=n,t.s=s,e?new r(i):(n=r.DP,s=r.RM,r.DP=r.RM=0,i=i.div(t),r.DP=n,r.RM=s,this.minus(i.times(t)))};V.neg=function(){var t=new this.constructor(this);return t.s=-t.s,t};V.plus=V.add=function(t){var e,i,r,n=this,s=n.constructor;if(t=new s(t),n.s!=t.s)return t.s=-t.s,n.minus(t);var a=n.e,d=n.c,g=t.e,h=t.c;if(!d[0]||!h[0])return h[0]||(d[0]?t=new s(n):t.s=n.s),t;if(d=d.slice(),e=a-g){for(e>0?(g=a,r=h):(e=-e,r=d),r.reverse();e--;)r.push(0);r.reverse()}for(d.length-h.length<0&&(r=h,h=d,d=r),e=h.length,i=0;e;d[e]%=10)i=(d[--e]=d[e]+h[e]+i)/10|0;for(i&&(d.unshift(i),++g),e=d.length;d[--e]===0;)d.pop();return t.c=d,t.e=g,t};V.pow=function(t){var e=this,i=new e.constructor("1"),r=i,n=t<0;if(t!==~~t||t<-vn||t>vn)throw Error(ze+"exponent");for(n&&(t=-t);t&1&&(r=r.times(e)),t>>=1,!!t;)e=e.times(e);return n?i.div(r):r};V.prec=function(t,e){if(t!==~~t||t<1||t>De)throw Error(ze+"precision");return Be(new this.constructor(this),t,e)};V.round=function(t,e){if(t===Ee)t=0;else if(t!==~~t||t<-De||t>De)throw Error(Nt);return Be(new this.constructor(this),t+this.e+1,e)};V.sqrt=function(){var t,e,i,r=this,n=r.constructor,s=r.s,a=r.e,d=new n("0.5");if(!r.c[0])return new n(r);if(s<0)throw Error(dt+"No square root");s=Math.sqrt(+Ue(r,!0,!0)),s===0||s===1/0?(e=r.c.join(""),e.length+a&1||(e+="0"),s=Math.sqrt(e),a=((a+1)/2|0)-(a<0||a&1),t=new n((s==1/0?"5e":(s=s.toExponential()).slice(0,s.indexOf("e")+1))+a)):t=new n(s+""),a=t.e+(n.DP+=4);do i=t,t=d.times(i.plus(r.div(i)));while(i.c.slice(0,a).join("")!==t.c.slice(0,a).join(""));return Be(t,(n.DP-=4)+t.e+1,n.RM)};V.times=V.mul=function(t){var e,i=this,r=i.constructor,n=i.c,s=(t=new r(t)).c,a=n.length,d=s.length,g=i.e,h=t.e;if(t.s=i.s==t.s?1:-1,!n[0]||!s[0])return t.c=[t.e=0],t;for(t.e=g+h,a<d&&(e=n,n=s,s=e,h=a,a=d,d=h),e=new Array(h=a+d);h--;)e[h]=0;for(g=d;g--;){for(d=0,h=a+g;h>g;)d=e[h]+s[g]*n[h-g-1]+d,e[h--]=d%10,d=d/10|0;e[h]=d}for(d?++t.e:e.shift(),g=e.length;!e[--g];)e.pop();return t.c=e,t};V.toExponential=function(t,e){var i=this,r=i.c[0];if(t!==Ee){if(t!==~~t||t<0||t>De)throw Error(Nt);for(i=Be(new i.constructor(i),++t,e);i.c.length<t;)i.c.push(0)}return Ue(i,!0,!!r)};V.toFixed=function(t,e){var i=this,r=i.c[0];if(t!==Ee){if(t!==~~t||t<0||t>De)throw Error(Nt);for(i=Be(new i.constructor(i),t+i.e+1,e),t=t+i.e+1;i.c.length<t;)i.c.push(0)}return Ue(i,!1,!!r)};V.toJSON=V.toString=function(){var t=this,e=t.constructor;return Ue(t,t.e<=e.NE||t.e>=e.PE,!!t.c[0])};typeof Symbol<"u"&&(V[Symbol.for("nodejs.util.inspect.custom")]=V.toJSON);V.toNumber=function(){var t=+Ue(this,!0,!0);if(this.constructor.strict===!0&&!this.eq(t.toString()))throw Error(dt+"Imprecise conversion");return t};V.toPrecision=function(t,e){var i=this,r=i.constructor,n=i.c[0];if(t!==Ee){if(t!==~~t||t<1||t>De)throw Error(ze+"precision");for(i=Be(new r(i),t,e);i.c.length<t;)i.c.push(0)}return Ue(i,t<=i.e||i.e<=r.NE||i.e>=r.PE,!!n)};V.valueOf=function(){var t=this,e=t.constructor;if(e.strict===!0)throw Error(dt+"valueOf disallowed");return Ue(t,t.e<=e.NE||t.e>=e.PE,!0)};var go=tr();const bo=":host{display:block;position:relative;width:100%;height:48px;cursor:pointer;touch-action:none;contain:layout style}:host([hidden]){display:none!important}:host([disabled]){opacity:.6;cursor:default;filter:grayscale(100%)}:host([disabled]) sd-lit-input{opacity:1}#track-container{position:absolute;top:50%;left:0;height:2px;overflow:hidden}#track{position:absolute;width:100%;height:100%;transform-origin:left top;will-change:transform}:host(:focus) #thumb{top:11px;left:-14px;border-width:8px}#thumb[active]{top:7px!important;left:-18px!important;border-width:12px!important}#thumb{width:12px;height:12px;position:absolute;top:19px;left:-6px;border-radius:50%;border-width:0;background-clip:padding-box;-webkit-user-select:none;user-select:none;will-change:transform;border-style:solid}sd-lit-input{position:absolute;height:100%;width:var(--slider-suffix-width, 50px);right:0;text-align:center;outline:none;white-space:nowrap}sd-field-validation-message{position:absolute;bottom:0}";var vo=Object.defineProperty,de=(t,e,i,r)=>{for(var n=void 0,s=t.length-1,a;s>=0;s--)(a=t[s])&&(n=a(e,i,n)||n);return n&&vo(e,i,n),n},Se;const ce=(Se=class extends Re{constructor(){super(),this.thumbPosition=0,this._value=0,this._relativeValue=0,this.min=0,this.max=1,this.colorBlender=new Js,this.baseColor=Se.defaultColor,this.resizeObserver=new ResizeObserver(()=>{window.requestAnimationFrame(()=>{this.lastKnownWidth!==this.trackContainerWidth&&(this.lastKnownWidth=this.trackContainerWidth,this.doUpdateRelativeValue(this._relativeValue,!0))})})}firstUpdated(e){super.firstUpdated(e),this.updateValue(Number.parseFloat(this.getAttribute("value"))||this._value),this.addEventListener(this.useTouchEvents()?"touchstart":"pointerdown",i=>{!this.hasAttribute("disabled")&&i.composedPath().indexOf(this.inputElement)===-1&&(i.preventDefault(),i.pointerId&&this.setPointerCapture(i.pointerId),this.focus(),this.listenMoveEvents(i.clientX||i.changedTouches[0].clientX))}),this.addEventListener("keydown",this.handleKeyDown,!0),this.setAttribute("aria-valuemin",this.min.toString()),this.setAttribute("aria-valuemax",this.max.toString()),this.hasAttribute("tabindex")||this.setAttribute("tabindex","0")}connectedCallback(){super.connectedCallback(),["colors","min","max","step","editable","inputSuffix","value"].forEach(e=>{this.upgradeProperty(e)}),this.resizeObserver.observe(this)}disconnectedCallback(){super.disconnectedCallback(),this.lastKnownWidth=void 0,this.resizeObserver.disconnect()}upgradeProperty(e){if(Object.prototype.hasOwnProperty.call(this,e)){const i=this[e];delete this[e],this[e]=i}}static get observedAttributes(){const e=super.observedAttributes;return e.push("value"),e}attributeChangedCallback(e,i,r){super.attributeChangedCallback(e,i,r),(e==="value"||e=="step")&&this.hasUpdated&&this.updateValue(Number.parseFloat(r))}updateValue(e){this.setValueInternal(e)&&(this.inputElement&&(this.inputElement.value=this.formattedValue()),this._value!=e&&this.fireBothValueChangeEvents())}get value(){return this._value}set value(e){this.setValueInternal(e)&&this.fireBothValueChangeEvents()}roundToStep(e){let i=Number.parseFloat(e);if(Number.isNaN(i))return this._value;if(this.step&&i>=this.min&&i<=this.max){const r=new go(i).minus(this.min).div(this.step).round().mul(this.step).plus(this.min);i=Number.parseFloat(r.toString())}return i}setValueInternal(e){const i=this.roundToStep(e),r=this.clampValue?Math.max(this.min,Math.min(this.max,i)):i;if(this._value!==r){const n=this._value;return this._value=r,this.relativeValue=(r-this.min)/(this.max-this.min),this.setAttribute("aria-valuenow",this._value.toString()),this.requestUpdate("value",n),!0}return!1}get relativeValue(){return this._relativeValue}set relativeValue(e){this._relativeValue!==e&&this.doUpdateRelativeValue(e)}doUpdateRelativeValue(e,i){this._relativeValue=e,this.thumbPosition=Math.min(Math.max(0,e),1)*this.trackContainerWidth;const r=this.min+(this.max-this.min)*this._relativeValue;this.setValueInternal(r),!i&&this.colors&&this.colors.size&&(this.baseColor=this.colorBlender.blend(this._relativeValue))}get colors(){return this.colorBlender.colors}set colors(e){this.colorBlender.colors=e,this.colors&&this.colors.size?this.baseColor=this.colorBlender.blend(this._relativeValue):this.baseColor=Se.defaultColor}static get styles(){return[Ri`
|
|
403
|
+
${Rt(bo)}
|
|
404
|
+
`]}render(){const e=this.colorBlender.transparentize(this.baseColor,.26),i=`background-color:${e}; right: ${this.editable?"calc(var(--slider-suffix-width, 50px) + 8px)":"0"}`,r=`transform: scaleX(${this.relativeValue}); background-color:${this.baseColor};`,n=`transform: translateX(${this.thumbPosition}px); background-color:${this.baseColor}; border-color:${e};`;return ge`
|
|
405
|
+
<div id="track-container" style="${i}">
|
|
406
|
+
<div id="track" style="${r}"></div>
|
|
408
407
|
</div>
|
|
409
|
-
<div id="thumb" ?active="${this.active}" style="${
|
|
410
|
-
${this.editable&&
|
|
408
|
+
<div id="thumb" ?active="${this.active}" style="${n}"></div>
|
|
409
|
+
${this.editable&&ge`
|
|
411
410
|
<sd-lit-input
|
|
412
411
|
.value="${this.formattedValue()}"
|
|
413
412
|
@value-change="${this.onInputValueChange}"
|
|
@@ -415,7 +414,7 @@ document.querySelectorAll("[validate-it] sd-lit-slider").forEach((slider: Slider
|
|
|
415
414
|
><span slot="suffix">${this.inputSuffix}</span>
|
|
416
415
|
</sd-lit-input>
|
|
417
416
|
`}
|
|
418
|
-
${this.validationMessage&&
|
|
417
|
+
${this.validationMessage&&ge`
|
|
419
418
|
<sd-field-validation-message
|
|
420
419
|
.message="${this.validationMessage}"
|
|
421
420
|
.icon="${this.validationIconSrc}"
|
|
@@ -423,35 +422,38 @@ document.querySelectorAll("[validate-it] sd-lit-slider").forEach((slider: Slider
|
|
|
423
422
|
>
|
|
424
423
|
</sd-field-validation-message>
|
|
425
424
|
`}
|
|
426
|
-
`}listenMoveEvents(e){this.active=!0,this.onPointerMove(e);const
|
|
427
|
-
`+
|
|
428
|
-
|
|
425
|
+
`}listenMoveEvents(e){this.active=!0,this.onPointerMove(e);const i=[],r=s=>{s.stopPropagation(),s.preventDefault(),this.onPointerMove(s.clientX||s.changedTouches&&s.changedTouches[0].clientX)},n=()=>{this.active=!1,i.forEach(s=>s.remove()),this.fireValueChange()};this.useTouchEvents()?(i.push(this.addPointerEventListener("touchmove",r)),i.push(this.addPointerEventListener("touchend",n)),i.push(this.addPointerEventListener("touchcancel",n))):(i.push(this.addPointerEventListener("pointermove",r)),i.push(this.addPointerEventListener("pointerup",n)))}onPointerMove(e){this.updateAlreadyRequested||(this.updateAlreadyRequested=!0,window.requestAnimationFrame(async()=>{this.updateAlreadyRequested=!1,this.updateThumbPosition(e);const i=this.relativeValue;this.relativeValue=this.thumbPosition/this.trackContainerWidth,this.relativeValue!==i&&(await this.updateComplete,this.fireValueChange(!0),this.active||this.fireValueChange())}))}addPointerEventListener(e,i){return window.addEventListener(e,i,!0),{remove:()=>{window.removeEventListener(e,i,!0)}}}updateThumbPosition(e){if(this.thumbPosition=Math.min(this.trackContainerWidth,Math.max(0,e-this.getBoundingClientRect().left)),this.max-this.min>1){const i=this.trackContainerWidth/(this.max-this.min),r=this.thumbPosition%i;r&&(r<i/2?this.thumbPosition-=r:this.thumbPosition+=i-r)}}onInputValueChange(e){this.value=Number(e.detail.value.replace(RegExp(this.escapedDecimalSeparator),".")),String(this.value)!==String(e.detail.value)&&(e.target.value=String(this.value))}formattedValue(){return this.value.toString().replace(/\./,this.decimalSeparatorOrDefault)}get escapedDecimalSeparator(){return this.decimalSeparatorOrDefault.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}get decimalSeparatorOrDefault(){return this.decimalSeparator||1.1.toLocaleString(this.navigatorLanguage).substring(1,2)}get navigatorLanguage(){return navigator.languages&&navigator.languages.length?navigator.languages[0]:navigator.userLanguage||navigator.language||navigator.browserLanguage||"en"}handleKeyDown(e){if(!this.hasAttribute("disabled")&&e.composedPath().indexOf(this.inputElement)===-1){let i=this.step||(this.max-this.min)/100;switch(this.max-this.min>1&&(i=Math.round(i)||1),e.keyCode){case 37:case 40:this.value=Math.max(this.value-i,this.min),e.preventDefault();break;case 38:case 39:this.value=Math.min(this.value+i,this.max),e.preventDefault();break}}}get inputElement(){return this._inputElement||(this._inputElement=this.shadowRoot.querySelector("sd-lit-input")),this._inputElement}get trackContainer(){return this._trackContainer||(this._trackContainer=this.shadowRoot.querySelector("#track-container")),this._trackContainer}get trackContainerWidth(){return this.trackContainer&&this.trackContainer.offsetWidth}fireBothValueChangeEvents(){this.fireValueChange(!0),this.fireValueChange()}fireValueChange(e){this.dispatchEvent(new CustomEvent(`${e?"immediate-":""}value-change`,{detail:{value:this.value}}))}useTouchEvents(){return this.hasAttribute("use-touch-events")}},Se.ID="sd-lit-slider",Se.defaultColor="rgb(20, 103, 186)",Se);de([q({type:Number})],ce.prototype,"thumbPosition");de([q({type:Number,reflect:!0})],ce.prototype,"min");de([q({type:Number,reflect:!0})],ce.prototype,"max");de([q({type:Number,reflect:!0})],ce.prototype,"step");de([q({type:Boolean,reflect:!0})],ce.prototype,"editable");de([q({type:Boolean,reflect:!0})],ce.prototype,"clampValue");de([q({type:String,reflect:!0})],ce.prototype,"inputSuffix");de([q({type:Boolean,reflect:!0})],ce.prototype,"disabled");de([q({type:String,attribute:!0})],ce.prototype,"validationMessage");de([q({type:String,attribute:!0})],ce.prototype,"validationIconSrc");de([q({type:String,attribute:!0})],ce.prototype,"validationLevel");de([q({type:String,attribute:!0})],ce.prototype,"decimalSeparator");de([q({type:Boolean})],ce.prototype,"active");de([q()],ce.prototype,"baseColor");let Qt=ce;customElements.get(Qt.ID)||customElements.define(Qt.ID,Qt);function ir(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function yo(t){if(Object.prototype.hasOwnProperty.call(t,"__esModule"))return t;var e=t.default;if(typeof e=="function"){var i=function r(){var n=!1;try{n=this instanceof r}catch{}return n?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};i.prototype=e.prototype}else i={};return Object.defineProperty(i,"__esModule",{value:!0}),Object.keys(t).forEach(function(r){var n=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(i,r,n.get?n:{enumerable:!0,get:function(){return t[r]}})}),i}var xt={exports:{}},yn;function wo(){if(yn)return xt.exports;yn=1;var t=String,e=function(){return{isColorSupported:!1,reset:t,bold:t,dim:t,italic:t,underline:t,inverse:t,hidden:t,strikethrough:t,black:t,red:t,green:t,yellow:t,blue:t,magenta:t,cyan:t,white:t,gray:t,bgBlack:t,bgRed:t,bgGreen:t,bgYellow:t,bgBlue:t,bgMagenta:t,bgCyan:t,bgWhite:t,blackBright:t,redBright:t,greenBright:t,yellowBright:t,blueBright:t,magentaBright:t,cyanBright:t,whiteBright:t,bgBlackBright:t,bgRedBright:t,bgGreenBright:t,bgYellowBright:t,bgBlueBright:t,bgMagentaBright:t,bgCyanBright:t,bgWhiteBright:t}};return xt.exports=e(),xt.exports.createColors=e,xt.exports}const xo={},Eo=Object.freeze(Object.defineProperty({__proto__:null,default:xo},Symbol.toStringTag,{value:"Module"})),be=yo(Eo);var ei,wn;function Ii(){if(wn)return ei;wn=1;let t=wo(),e=be;class i extends Error{constructor(n,s,a,d,g,h){super(n),this.name="CssSyntaxError",this.reason=n,g&&(this.file=g),d&&(this.source=d),h&&(this.plugin=h),typeof s<"u"&&typeof a<"u"&&(typeof s=="number"?(this.line=s,this.column=a):(this.line=s.line,this.column=s.column,this.endLine=a.line,this.endColumn=a.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,i)}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(n){if(!this.source)return"";let s=this.source;n==null&&(n=t.isColorSupported);let a=u=>u,d=u=>u,g=u=>u;if(n){let{bold:u,gray:p,red:f}=t.createColors(!0);d=b=>u(f(b)),a=b=>p(b),e&&(g=b=>e(b))}let h=s.split(/\r?\n/),o=Math.max(this.line-3,0),l=Math.min(this.line+2,h.length),c=String(l).length;return h.slice(o,l).map((u,p)=>{let f=o+1+p,b=" "+(" "+f).slice(-c)+" | ";if(f===this.line){if(u.length>160){let _=20,w=Math.max(0,this.column-_),y=Math.max(this.column+_,this.endColumn+_),v=u.slice(w,y),S=a(b.replace(/\d/g," "))+u.slice(0,Math.min(this.column-1,_-1)).replace(/[^\t]/g," ");return d(">")+a(b)+g(v)+`
|
|
426
|
+
`+S+d("^")}let x=a(b.replace(/\d/g," "))+u.slice(0,this.column-1).replace(/[^\t]/g," ");return d(">")+a(b)+g(u)+`
|
|
427
|
+
`+x+d("^")}return" "+a(b)+g(u)}).join(`
|
|
428
|
+
`)}toString(){let n=this.showSourceCode();return n&&(n=`
|
|
429
429
|
|
|
430
|
-
`+
|
|
431
|
-
`),this.name+": "+this.message+
|
|
430
|
+
`+n+`
|
|
431
|
+
`),this.name+": "+this.message+n}}return ei=i,i.default=i,ei}var ti,xn;function nr(){if(xn)return ti;xn=1;const t={after:`
|
|
432
432
|
`,beforeClose:`
|
|
433
433
|
`,beforeComment:`
|
|
434
434
|
`,beforeDecl:`
|
|
435
435
|
`,beforeOpen:" ",beforeRule:`
|
|
436
|
-
`,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function
|
|
437
|
-
`)){let
|
|
438
|
-
`)&&(
|
|
439
|
-
`)&&(
|
|
440
|
-
`)&&(
|
|
441
|
-
`)&&(
|
|
442
|
-
`);return
|
|
443
|
-
`?(
|
|
444
|
-
`);i=new Array(o.length);let r=0;for(let a=0,l=o.length;a<l;a++)i[a]=r,r+=o[a].length+1;this[ni]=i}t=i[i.length-1];let s=0;if(e>=t)s=i.length-1;else{let o=i.length-2,r;for(;s<o;)if(r=s+(o-s>>1),e<i[r])o=r-1;else if(e>=i[r+1])s=r+1;else{s=r;break}}return{col:e-i[s]+1,line:s+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:bi(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,t,i,s){if(!this.map)return!1;let o=this.map.consumer(),r=o.originalPositionFor({column:t,line:e});if(!r.source)return!1;let a;typeof i=="number"&&(a=o.originalPositionFor({column:s,line:i}));let l;gi(r.source)?l=at(r.source):l=new URL(r.source,this.map.consumer().sourceRoot||at(this.map.mapFile));let c={column:r.column,endColumn:a&&a.column,endLine:a&&a.line,line:r.line,url:l.toString()};if(l.protocol==="file:")if(fn)c.file=fn(l);else throw new Error("file: protocol is not available in this PostCSS build");let u=o.sourceContentFor(r.source);return u&&(c.source=u),c}toJSON(){let e={};for(let t of["hasBOM","css","file","id"])this[t]!=null&&(e[t]=this[t]);return this.map&&(e.map={...this.map},e.map.consumerCache&&(e.map.consumerCache=void 0)),e}get from(){return this.file||this.id}};var Lt=Et;Et.default=Et;ii&&ii.registerInput&&ii.registerInput(Et);let{SourceMapConsumer:Gn,SourceMapGenerator:vt}=K,{dirname:yt,relative:Zn,resolve:Kn,sep:Xn}=K,{pathToFileURL:bn}=K,zo=Lt,Bo=!!(Gn&&vt),Uo=!!(yt&&Kn&&Zn&&Xn),Fo=class{constructor(e,t,i,s){this.stringify=e,this.mapOpts=i.map||{},this.root=t,this.opts=i,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=`
|
|
436
|
+
`,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function e(r){return r[0].toUpperCase()+r.slice(1)}class i{constructor(n){this.builder=n}atrule(n,s){let a="@"+n.name,d=n.params?this.rawValue(n,"params"):"";if(typeof n.raws.afterName<"u"?a+=n.raws.afterName:d&&(a+=" "),n.nodes)this.block(n,a+d);else{let g=(n.raws.between||"")+(s?";":"");this.builder(a+d+g,n)}}beforeAfter(n,s){let a;n.type==="decl"?a=this.raw(n,null,"beforeDecl"):n.type==="comment"?a=this.raw(n,null,"beforeComment"):s==="before"?a=this.raw(n,null,"beforeRule"):a=this.raw(n,null,"beforeClose");let d=n.parent,g=0;for(;d&&d.type!=="root";)g+=1,d=d.parent;if(a.includes(`
|
|
437
|
+
`)){let h=this.raw(n,null,"indent");if(h.length)for(let o=0;o<g;o++)a+=h}return a}block(n,s){let a=this.raw(n,"between","beforeOpen");this.builder(s+a+"{",n,"start");let d;n.nodes&&n.nodes.length?(this.body(n),d=this.raw(n,"after")):d=this.raw(n,"after","emptyBody"),d&&this.builder(d),this.builder("}",n,"end")}body(n){let s=n.nodes.length-1;for(;s>0&&n.nodes[s].type==="comment";)s-=1;let a=this.raw(n,"semicolon");for(let d=0;d<n.nodes.length;d++){let g=n.nodes[d],h=this.raw(g,"before");h&&this.builder(h),this.stringify(g,s!==d||a)}}comment(n){let s=this.raw(n,"left","commentLeft"),a=this.raw(n,"right","commentRight");this.builder("/*"+s+n.text+a+"*/",n)}decl(n,s){let a=this.raw(n,"between","colon"),d=n.prop+a+this.rawValue(n,"value");n.important&&(d+=n.raws.important||" !important"),s&&(d+=";"),this.builder(d,n)}document(n){this.body(n)}raw(n,s,a){let d;if(a||(a=s),s&&(d=n.raws[s],typeof d<"u"))return d;let g=n.parent;if(a==="before"&&(!g||g.type==="root"&&g.first===n||g&&g.type==="document"))return"";if(!g)return t[a];let h=n.root();if(h.rawCache||(h.rawCache={}),typeof h.rawCache[a]<"u")return h.rawCache[a];if(a==="before"||a==="after")return this.beforeAfter(n,a);{let o="raw"+e(a);this[o]?d=this[o](h,n):h.walk(l=>{if(d=l.raws[s],typeof d<"u")return!1})}return typeof d>"u"&&(d=t[a]),h.rawCache[a]=d,d}rawBeforeClose(n){let s;return n.walk(a=>{if(a.nodes&&a.nodes.length>0&&typeof a.raws.after<"u")return s=a.raws.after,s.includes(`
|
|
438
|
+
`)&&(s=s.replace(/[^\n]+$/,"")),!1}),s&&(s=s.replace(/\S/g,"")),s}rawBeforeComment(n,s){let a;return n.walkComments(d=>{if(typeof d.raws.before<"u")return a=d.raws.before,a.includes(`
|
|
439
|
+
`)&&(a=a.replace(/[^\n]+$/,"")),!1}),typeof a>"u"?a=this.raw(s,null,"beforeDecl"):a&&(a=a.replace(/\S/g,"")),a}rawBeforeDecl(n,s){let a;return n.walkDecls(d=>{if(typeof d.raws.before<"u")return a=d.raws.before,a.includes(`
|
|
440
|
+
`)&&(a=a.replace(/[^\n]+$/,"")),!1}),typeof a>"u"?a=this.raw(s,null,"beforeRule"):a&&(a=a.replace(/\S/g,"")),a}rawBeforeOpen(n){let s;return n.walk(a=>{if(a.type!=="decl"&&(s=a.raws.between,typeof s<"u"))return!1}),s}rawBeforeRule(n){let s;return n.walk(a=>{if(a.nodes&&(a.parent!==n||n.first!==a)&&typeof a.raws.before<"u")return s=a.raws.before,s.includes(`
|
|
441
|
+
`)&&(s=s.replace(/[^\n]+$/,"")),!1}),s&&(s=s.replace(/\S/g,"")),s}rawColon(n){let s;return n.walkDecls(a=>{if(typeof a.raws.between<"u")return s=a.raws.between.replace(/[^\s:]/g,""),!1}),s}rawEmptyBody(n){let s;return n.walk(a=>{if(a.nodes&&a.nodes.length===0&&(s=a.raws.after,typeof s<"u"))return!1}),s}rawIndent(n){if(n.raws.indent)return n.raws.indent;let s;return n.walk(a=>{let d=a.parent;if(d&&d!==n&&d.parent&&d.parent===n&&typeof a.raws.before<"u"){let g=a.raws.before.split(`
|
|
442
|
+
`);return s=g[g.length-1],s=s.replace(/\S/g,""),!1}}),s}rawSemicolon(n){let s;return n.walk(a=>{if(a.nodes&&a.nodes.length&&a.last.type==="decl"&&(s=a.raws.semicolon,typeof s<"u"))return!1}),s}rawValue(n,s){let a=n[s],d=n.raws[s];return d&&d.value===a?d.raw:a}root(n){this.body(n),n.raws.after&&this.builder(n.raws.after)}rule(n){this.block(n,this.rawValue(n,"selector")),n.raws.ownSemicolon&&this.builder(n.raws.ownSemicolon,n,"end")}stringify(n,s){if(!this[n.type])throw new Error("Unknown AST node type "+n.type+". Maybe you need to change PostCSS stringifier.");this[n.type](n,s)}}return ti=i,i.default=i,ti}var ii,En;function Tt(){if(En)return ii;En=1;let t=nr();function e(i,r){new t(r).stringify(i)}return ii=e,e.default=e,ii}var Et={},_n;function ji(){return _n||(_n=1,Et.isClean=Symbol("isClean"),Et.my=Symbol("my")),Et}var ni,Sn;function Lt(){if(Sn)return ni;Sn=1;let t=Ii(),e=nr(),i=Tt(),{isClean:r,my:n}=ji();function s(g,h){let o=new g.constructor;for(let l in g){if(!Object.prototype.hasOwnProperty.call(g,l)||l==="proxyCache")continue;let c=g[l],u=typeof c;l==="parent"&&u==="object"?h&&(o[l]=h):l==="source"?o[l]=c:Array.isArray(c)?o[l]=c.map(p=>s(p,o)):(u==="object"&&c!==null&&(c=s(c)),o[l]=c)}return o}function a(g,h){if(h&&typeof h.offset<"u")return h.offset;let o=1,l=1,c=0;for(let u=0;u<g.length;u++){if(l===h.line&&o===h.column){c=u;break}g[u]===`
|
|
443
|
+
`?(o=1,l+=1):o+=1}return c}class d{get proxyOf(){return this}constructor(h={}){this.raws={},this[r]=!1,this[n]=!0;for(let o in h)if(o==="nodes"){this.nodes=[];for(let l of h[o])typeof l.clone=="function"?this.append(l.clone()):this.append(l)}else this[o]=h[o]}addToError(h){if(h.postcssNode=this,h.stack&&this.source&&/\n\s{4}at /.test(h.stack)){let o=this.source;h.stack=h.stack.replace(/\n\s{4}at /,`$&${o.input.from}:${o.start.line}:${o.start.column}$&`)}return h}after(h){return this.parent.insertAfter(this,h),this}assign(h={}){for(let o in h)this[o]=h[o];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 o=s(this);for(let l in h)o[l]=h[l];return o}cloneAfter(h={}){let o=this.clone(h);return this.parent.insertAfter(this,o),o}cloneBefore(h={}){let o=this.clone(h);return this.parent.insertBefore(this,o),o}error(h,o={}){if(this.source){let{end:l,start:c}=this.rangeBy(o);return this.source.input.error(h,{column:c.column,line:c.line},{column:l.column,line:l.line},o)}return new t(h)}getProxyProcessor(){return{get(h,o){return o==="proxyOf"?h:o==="root"?()=>h.root().toProxy():h[o]},set(h,o,l){return h[o]===l||(h[o]=l,(o==="prop"||o==="value"||o==="name"||o==="params"||o==="important"||o==="text")&&h.markDirty()),!0}}}markClean(){this[r]=!0}markDirty(){if(this[r]){this[r]=!1;let h=this;for(;h=h.parent;)h[r]=!1}}next(){if(!this.parent)return;let h=this.parent.index(this);return this.parent.nodes[h+1]}positionBy(h={}){let o=this.source.start;if(h.index)o=this.positionInside(h.index);else if(h.word){let l="document"in this.source.input?this.source.input.document:this.source.input.css,u=l.slice(a(l,this.source.start),a(l,this.source.end)).indexOf(h.word);u!==-1&&(o=this.positionInside(u))}return o}positionInside(h){let o=this.source.start.column,l=this.source.start.line,c="document"in this.source.input?this.source.input.document:this.source.input.css,u=a(c,this.source.start),p=u+h;for(let f=u;f<p;f++)c[f]===`
|
|
444
|
+
`?(o=1,l+=1):o+=1;return{column:o,line:l,offset:p}}prev(){if(!this.parent)return;let h=this.parent.index(this);return this.parent.nodes[h-1]}rangeBy(h={}){let o="document"in this.source.input?this.source.input.document:this.source.input.css,l={column:this.source.start.column,line:this.source.start.line,offset:a(o,this.source.start)},c=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:a(o,this.source.end)+1}:{column:l.column+1,line:l.line,offset:l.offset+1};if(h.word){let p=o.slice(a(o,this.source.start),a(o,this.source.end)).indexOf(h.word);p!==-1&&(l=this.positionInside(p),c=this.positionInside(p+h.word.length))}else h.start?l={column:h.start.column,line:h.start.line,offset:a(o,h.start)}:h.index&&(l=this.positionInside(h.index)),h.end?c={column:h.end.column,line:h.end.line,offset:a(o,h.end)}:typeof h.endIndex=="number"?c=this.positionInside(h.endIndex):h.index&&(c=this.positionInside(h.index+1));return(c.line<l.line||c.line===l.line&&c.column<=l.column)&&(c={column:l.column+1,line:l.line,offset:l.offset+1}),{end:c,start:l}}raw(h,o){return new e().raw(this,h,o)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...h){if(this.parent){let o=this,l=!1;for(let c of h)c===this?l=!0:l?(this.parent.insertAfter(o,c),o=c):this.parent.insertBefore(o,c);l||this.remove()}return this}root(){let h=this;for(;h.parent&&h.parent.type!=="document";)h=h.parent;return h}toJSON(h,o){let l={},c=o==null;o=o||new Map;let u=0;for(let p in this){if(!Object.prototype.hasOwnProperty.call(this,p)||p==="parent"||p==="proxyCache")continue;let f=this[p];if(Array.isArray(f))l[p]=f.map(b=>typeof b=="object"&&b.toJSON?b.toJSON(null,o):b);else if(typeof f=="object"&&f.toJSON)l[p]=f.toJSON(null,o);else if(p==="source"){if(f==null)continue;let b=o.get(f.input);b==null&&(b=u,o.set(f.input,u),u++),l[p]={end:f.end,inputId:b,start:f.start}}else l[p]=f}return c&&(l.inputs=[...o.keys()].map(p=>p.toJSON())),l}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(h=i){h.stringify&&(h=h.stringify);let o="";return h(this,l=>{o+=l}),o}warn(h,o,l={}){let c={node:this};for(let u in l)c[u]=l[u];return h.warn(o,c)}}return ni=d,d.default=d,ni}var ri,An;function It(){if(An)return ri;An=1;let t=Lt();class e extends t{constructor(r){super(r),this.type="comment"}}return ri=e,e.default=e,ri}var si,Cn;function jt(){if(Cn)return si;Cn=1;let t=Lt();class e extends t{get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}constructor(r){r&&typeof r.value<"u"&&typeof r.value!="string"&&(r={...r,value:String(r.value)}),super(r),this.type="decl"}}return si=e,e.default=e,si}var oi,$n;function qe(){if($n)return oi;$n=1;let t=It(),e=jt(),i=Lt(),{isClean:r,my:n}=ji(),s,a,d,g;function h(c){return c.map(u=>(u.nodes&&(u.nodes=h(u.nodes)),delete u.source,u))}function o(c){if(c[r]=!1,c.proxyOf.nodes)for(let u of c.proxyOf.nodes)o(u)}class l extends i{get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}append(...u){for(let p of u){let f=this.normalize(p,this.last);for(let b of f)this.proxyOf.nodes.push(b)}return this.markDirty(),this}cleanRaws(u){if(super.cleanRaws(u),this.nodes)for(let p of this.nodes)p.cleanRaws(u)}each(u){if(!this.proxyOf.nodes)return;let p=this.getIterator(),f,b;for(;this.indexes[p]<this.proxyOf.nodes.length&&(f=this.indexes[p],b=u(this.proxyOf.nodes[f],f),b!==!1);)this.indexes[p]+=1;return delete this.indexes[p],b}every(u){return this.nodes.every(u)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let u=this.lastEach;return this.indexes[u]=0,u}getProxyProcessor(){return{get(u,p){return p==="proxyOf"?u:u[p]?p==="each"||typeof p=="string"&&p.startsWith("walk")?(...f)=>u[p](...f.map(b=>typeof b=="function"?(x,_)=>b(x.toProxy(),_):b)):p==="every"||p==="some"?f=>u[p]((b,...x)=>f(b.toProxy(),...x)):p==="root"?()=>u.root().toProxy():p==="nodes"?u.nodes.map(f=>f.toProxy()):p==="first"||p==="last"?u[p].toProxy():u[p]:u[p]},set(u,p,f){return u[p]===f||(u[p]=f,(p==="name"||p==="params"||p==="selector")&&u.markDirty()),!0}}}index(u){return typeof u=="number"?u:(u.proxyOf&&(u=u.proxyOf),this.proxyOf.nodes.indexOf(u))}insertAfter(u,p){let f=this.index(u),b=this.normalize(p,this.proxyOf.nodes[f]).reverse();f=this.index(u);for(let _ of b)this.proxyOf.nodes.splice(f+1,0,_);let x;for(let _ in this.indexes)x=this.indexes[_],f<x&&(this.indexes[_]=x+b.length);return this.markDirty(),this}insertBefore(u,p){let f=this.index(u),b=f===0?"prepend":!1,x=this.normalize(p,this.proxyOf.nodes[f],b).reverse();f=this.index(u);for(let w of x)this.proxyOf.nodes.splice(f,0,w);let _;for(let w in this.indexes)_=this.indexes[w],f<=_&&(this.indexes[w]=_+x.length);return this.markDirty(),this}normalize(u,p){if(typeof u=="string")u=h(a(u).nodes);else if(typeof u>"u")u=[];else if(Array.isArray(u)){u=u.slice(0);for(let b of u)b.parent&&b.parent.removeChild(b,"ignore")}else if(u.type==="root"&&this.type!=="document"){u=u.nodes.slice(0);for(let b of u)b.parent&&b.parent.removeChild(b,"ignore")}else if(u.type)u=[u];else if(u.prop){if(typeof u.value>"u")throw new Error("Value field is missed in node creation");typeof u.value!="string"&&(u.value=String(u.value)),u=[new e(u)]}else if(u.selector||u.selectors)u=[new g(u)];else if(u.name)u=[new s(u)];else if(u.text)u=[new t(u)];else throw new Error("Unknown node type in node creation");return u.map(b=>(b[n]||l.rebuild(b),b=b.proxyOf,b.parent&&b.parent.removeChild(b),b[r]&&o(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(...u){u=u.reverse();for(let p of u){let f=this.normalize(p,this.first,"prepend").reverse();for(let b of f)this.proxyOf.nodes.unshift(b);for(let b in this.indexes)this.indexes[b]=this.indexes[b]+f.length}return this.markDirty(),this}push(u){return u.parent=this,this.proxyOf.nodes.push(u),this}removeAll(){for(let u of this.proxyOf.nodes)u.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(u){u=this.index(u),this.proxyOf.nodes[u].parent=void 0,this.proxyOf.nodes.splice(u,1);let p;for(let f in this.indexes)p=this.indexes[f],p>=u&&(this.indexes[f]=p-1);return this.markDirty(),this}replaceValues(u,p,f){return f||(f=p,p={}),this.walkDecls(b=>{p.props&&!p.props.includes(b.prop)||p.fast&&!b.value.includes(p.fast)||(b.value=b.value.replace(u,f))}),this.markDirty(),this}some(u){return this.nodes.some(u)}walk(u){return this.each((p,f)=>{let b;try{b=u(p,f)}catch(x){throw p.addToError(x)}return b!==!1&&p.walk&&(b=p.walk(u)),b})}walkAtRules(u,p){return p?u instanceof RegExp?this.walk((f,b)=>{if(f.type==="atrule"&&u.test(f.name))return p(f,b)}):this.walk((f,b)=>{if(f.type==="atrule"&&f.name===u)return p(f,b)}):(p=u,this.walk((f,b)=>{if(f.type==="atrule")return p(f,b)}))}walkComments(u){return this.walk((p,f)=>{if(p.type==="comment")return u(p,f)})}walkDecls(u,p){return p?u instanceof RegExp?this.walk((f,b)=>{if(f.type==="decl"&&u.test(f.prop))return p(f,b)}):this.walk((f,b)=>{if(f.type==="decl"&&f.prop===u)return p(f,b)}):(p=u,this.walk((f,b)=>{if(f.type==="decl")return p(f,b)}))}walkRules(u,p){return p?u instanceof RegExp?this.walk((f,b)=>{if(f.type==="rule"&&u.test(f.selector))return p(f,b)}):this.walk((f,b)=>{if(f.type==="rule"&&f.selector===u)return p(f,b)}):(p=u,this.walk((f,b)=>{if(f.type==="rule")return p(f,b)}))}}return l.registerParse=c=>{a=c},l.registerRule=c=>{g=c},l.registerAtRule=c=>{s=c},l.registerRoot=c=>{d=c},oi=l,l.default=l,l.rebuild=c=>{c.type==="atrule"?Object.setPrototypeOf(c,s.prototype):c.type==="rule"?Object.setPrototypeOf(c,g.prototype):c.type==="decl"?Object.setPrototypeOf(c,e.prototype):c.type==="comment"?Object.setPrototypeOf(c,t.prototype):c.type==="root"&&Object.setPrototypeOf(c,d.prototype),c[n]=!0,c.nodes&&c.nodes.forEach(u=>{l.rebuild(u)})},oi}var ai,kn;function Di(){if(kn)return ai;kn=1;let t=qe();class e extends t{constructor(r){super(r),this.type="atrule"}append(...r){return this.proxyOf.nodes||(this.nodes=[]),super.append(...r)}prepend(...r){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...r)}}return ai=e,e.default=e,t.registerAtRule(e),ai}var li,On;function zi(){if(On)return li;On=1;let t=qe(),e,i;class r extends t{constructor(s){super({type:"document",...s}),this.nodes||(this.nodes=[])}toResult(s={}){return new e(new i,this,s).stringify()}}return r.registerLazyResult=n=>{e=n},r.registerProcessor=n=>{i=n},li=r,r.default=r,li}var ci,Rn;function _o(){if(Rn)return ci;Rn=1;let t="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";return ci={nanoid:(r=21)=>{let n="",s=r|0;for(;s--;)n+=t[Math.random()*64|0];return n},customAlphabet:(r,n=21)=>(s=n)=>{let a="",d=s|0;for(;d--;)a+=r[Math.random()*r.length|0];return a}},ci}var ui,Mn;function rr(){if(Mn)return ui;Mn=1;let{existsSync:t,readFileSync:e}=be,{dirname:i,join:r}=be,{SourceMapConsumer:n,SourceMapGenerator:s}=be;function a(g){return Buffer?Buffer.from(g,"base64").toString():window.atob(g)}class d{constructor(h,o){if(o.map===!1)return;this.loadAnnotation(h),this.inline=this.startWith(this.annotation,"data:");let l=o.map?o.map.prev:void 0,c=this.loadMap(o.from,l);!this.mapFile&&o.from&&(this.mapFile=o.from),this.mapFile&&(this.root=i(this.mapFile)),c&&(this.text=c)}consumer(){return this.consumerCache||(this.consumerCache=new n(this.text)),this.consumerCache}decodeInline(h){let o=/^data:application\/json;charset=utf-?8;base64,/,l=/^data:application\/json;base64,/,c=/^data:application\/json;charset=utf-?8,/,u=/^data:application\/json,/,p=h.match(c)||h.match(u);if(p)return decodeURIComponent(h.substr(p[0].length));let f=h.match(o)||h.match(l);if(f)return a(h.substr(f[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 o=h.match(/\/\*\s*# sourceMappingURL=/g);if(!o)return;let l=h.lastIndexOf(o.pop()),c=h.indexOf("*/",l);l>-1&&c>-1&&(this.annotation=this.getAnnotationURL(h.substring(l,c)))}loadFile(h){if(this.root=i(h),t(h))return this.mapFile=h,e(h,"utf-8").toString().trim()}loadMap(h,o){if(o===!1)return!1;if(o){if(typeof o=="string")return o;if(typeof o=="function"){let l=o(h);if(l){let c=this.loadFile(l);if(!c)throw new Error("Unable to load previous source map: "+l.toString());return c}}else{if(o instanceof n)return s.fromSourceMap(o).toString();if(o instanceof s)return o.toString();if(this.isMap(o))return JSON.stringify(o);throw new Error("Unsupported previous source map format: "+o.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let l=this.annotation;return h&&(l=r(i(h),l)),this.loadFile(l)}}}startWith(h,o){return h?h.substr(0,o.length)===o:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}return ui=d,d.default=d,ui}var hi,Pn;function Dt(){if(Pn)return hi;Pn=1;let{nanoid:t}=_o(),{isAbsolute:e,resolve:i}=be,{SourceMapConsumer:r,SourceMapGenerator:n}=be,{fileURLToPath:s,pathToFileURL:a}=be,d=Ii(),g=rr(),h=be,o=Symbol("lineToIndexCache"),l=!!(r&&n),c=!!(i&&e);function u(f){if(f[o])return f[o];let b=f.css.split(`
|
|
445
|
+
`),x=new Array(b.length),_=0;for(let w=0,y=b.length;w<y;w++)x[w]=_,_+=b[w].length+1;return f[o]=x,x}class p{get from(){return this.file||this.id}constructor(b,x={}){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,x.document&&(this.document=x.document.toString()),x.from&&(!c||/^\w+:\/\//.test(x.from)||e(x.from)?this.file=x.from:this.file=i(x.from)),c&&l){let _=new g(this.css,x);if(_.text){this.map=_;let w=_.consumer().file;!this.file&&w&&(this.file=this.mapResolve(w))}}this.file||(this.id="<input css "+t(6)+">"),this.map&&(this.map.file=this.from)}error(b,x,_,w={}){let y,v,S,k,L;if(x&&typeof x=="object"){let N=x,J=_;if(typeof N.offset=="number"){k=N.offset;let H=this.fromOffset(k);x=H.line,_=H.col}else x=N.line,_=N.column,k=this.fromLineAndColumn(x,_);if(typeof J.offset=="number"){S=J.offset;let H=this.fromOffset(S);v=H.line,y=H.col}else v=J.line,y=J.column,S=this.fromLineAndColumn(J.line,J.column)}else if(_)k=this.fromLineAndColumn(x,_);else{k=x;let N=this.fromOffset(k);x=N.line,_=N.col}let B=this.origin(x,_,v,y);return B?L=new d(b,B.endLine===void 0?B.line:{column:B.column,line:B.line},B.endLine===void 0?B.column:{column:B.endColumn,line:B.endLine},B.source,B.file,w.plugin):L=new d(b,v===void 0?x:{column:_,line:x},v===void 0?_:{column:y,line:v},this.css,this.file,w.plugin),L.input={column:_,endColumn:y,endLine:v,endOffset:S,line:x,offset:k,source:this.css},this.file&&(a&&(L.input.url=a(this.file).toString()),L.input.file=this.file),L}fromLineAndColumn(b,x){return u(this)[b-1]+x-1}fromOffset(b){let x=u(this),_=x[x.length-1],w=0;if(b>=_)w=x.length-1;else{let y=x.length-2,v;for(;w<y;)if(v=w+(y-w>>1),b<x[v])y=v-1;else if(b>=x[v+1])w=v+1;else{w=v;break}}return{col:b-x[w]+1,line:w+1}}mapResolve(b){return/^\w+:\/\//.test(b)?b:i(this.map.consumer().sourceRoot||this.map.root||".",b)}origin(b,x,_,w){if(!this.map)return!1;let y=this.map.consumer(),v=y.originalPositionFor({column:x,line:b});if(!v.source)return!1;let S;typeof _=="number"&&(S=y.originalPositionFor({column:w,line:_}));let k;e(v.source)?k=a(v.source):k=new URL(v.source,this.map.consumer().sourceRoot||a(this.map.mapFile));let L={column:v.column,endColumn:S&&S.column,endLine:S&&S.line,line:v.line,url:k.toString()};if(k.protocol==="file:")if(s)L.file=s(k);else throw new Error("file: protocol is not available in this PostCSS build");let B=y.sourceContentFor(v.source);return B&&(L.source=B),L}toJSON(){let b={};for(let x of["hasBOM","css","file","id"])this[x]!=null&&(b[x]=this[x]);return this.map&&(b.map={...this.map},b.map.consumerCache&&(b.map.consumerCache=void 0)),b}}return hi=p,p.default=p,h&&h.registerInput&&h.registerInput(p),hi}var di,Nn;function ft(){if(Nn)return di;Nn=1;let t=qe(),e,i;class r extends t{constructor(s){super(s),this.type="root",this.nodes||(this.nodes=[])}normalize(s,a,d){let g=super.normalize(s);if(a){if(d==="prepend")this.nodes.length>1?a.raws.before=this.nodes[1].raws.before:delete a.raws.before;else if(this.first!==a)for(let h of g)h.raws.before=a.raws.before}return g}removeChild(s,a){let d=this.index(s);return!a&&d===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[d].raws.before),super.removeChild(s)}toResult(s={}){return new e(new i,this,s).stringify()}}return r.registerLazyResult=n=>{e=n},r.registerProcessor=n=>{i=n},di=r,r.default=r,t.registerRoot(r),di}var fi,Tn;function sr(){if(Tn)return fi;Tn=1;let t={comma(e){return t.split(e,[","],!0)},space(e){let i=[" ",`
|
|
446
|
+
`," "];return t.split(e,i)},split(e,i,r){let n=[],s="",a=!1,d=0,g=!1,h="",o=!1;for(let l of e)o?o=!1:l==="\\"?o=!0:g?l===h&&(g=!1):l==='"'||l==="'"?(g=!0,h=l):l==="("?d+=1:l===")"?d>0&&(d-=1):d===0&&i.includes(l)&&(a=!0),a?(s!==""&&n.push(s.trim()),s="",a=!1):s+=l;return(r||s!=="")&&n.push(s.trim()),n}};return fi=t,t.default=t,fi}var pi,Ln;function Bi(){if(Ln)return pi;Ln=1;let t=qe(),e=sr();class i extends t{get selectors(){return e.comma(this.selector)}set selectors(n){let s=this.selector?this.selector.match(/,\s*/):null,a=s?s[0]:","+this.raw("between","beforeOpen");this.selector=n.join(a)}constructor(n){super(n),this.type="rule",this.nodes||(this.nodes=[])}}return pi=i,i.default=i,t.registerRule(i),pi}var mi,In;function So(){if(In)return mi;In=1;let t=Di(),e=It(),i=jt(),r=Dt(),n=rr(),s=ft(),a=Bi();function d(g,h){if(Array.isArray(g))return g.map(c=>d(c));let{inputs:o,...l}=g;if(o){h=[];for(let c of o){let u={...c,__proto__:r.prototype};u.map&&(u.map={...u.map,__proto__:n.prototype}),h.push(u)}}if(l.nodes&&(l.nodes=g.nodes.map(c=>d(c,h))),l.source){let{inputId:c,...u}=l.source;l.source=u,c!=null&&(l.source.input=h[c])}if(l.type==="root")return new s(l);if(l.type==="decl")return new i(l);if(l.type==="rule")return new a(l);if(l.type==="comment")return new e(l);if(l.type==="atrule")return new t(l);throw new Error("Unknown node type: "+g.type)}return mi=d,d.default=d,mi}var gi,jn;function or(){if(jn)return gi;jn=1;let{dirname:t,relative:e,resolve:i,sep:r}=be,{SourceMapConsumer:n,SourceMapGenerator:s}=be,{pathToFileURL:a}=be,d=Dt(),g=!!(n&&s),h=!!(t&&i&&e&&r);class o{constructor(c,u,p,f){this.stringify=c,this.mapOpts=p.map||{},this.root=u,this.opts=p,this.css=f,this.originalCSS=f,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let c;this.isInline()?c="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?c=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?c=this.mapOpts.annotation(this.opts.to,this.root):c=this.outputFile()+".map";let u=`
|
|
445
447
|
`;this.css.includes(`\r
|
|
446
|
-
`)&&(
|
|
447
|
-
`),this.css+=
|
|
448
|
-
`),t=a.length-r):t+=a.length,l&&c!=="start"){let u=l.parent||{raws:{}};(!(l.type==="decl"||l.type==="atrule"&&!l.nodes)||l!==u.last||u.raws.semicolon)&&(l.source&&l.source.end?(s.source=this.sourcePath(l),s.original.line=l.source.end.line,s.original.column=l.source.end.column-1,s.generated.line=e,s.generated.column=t-2,this.map.addMapping(s)):(s.source=i,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 i=this.opts.to?yt(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(i=yt(Kn(i,this.mapOpts.annotation)));let s=Zn(i,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 zo(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 i=t.source.input.from;if(i&&!e[i]){e[i]=!0;let s=this.usesFileUrls?this.toFileUrl(i):this.toUrl(this.path(i));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(bn){let i=bn(e).toString();return this.memoizedFileURLs.set(e,i),i}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;Xn==="\\"&&(e=e.replace(/\\/g,"/"));let i=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,i),i}};var Jn=Fo;let Ho=Pt,vi=class extends Ho{constructor(e){super(e),this.type="comment"}};var It=vi;vi.default=vi;let{isClean:Yn,my:Qn}=et,es=Tt,ts=It,Vo=Pt,is,Ri,Mi,ns;function ss(n){return n.map(e=>(e.nodes&&(e.nodes=ss(e.nodes)),delete e.source,e))}function rs(n){if(n[Yn]=!1,n.proxyOf.nodes)for(let e of n.proxyOf.nodes)rs(e)}let se=class os extends Vo{append(...e){for(let t of e){let i=this.normalize(t,this.last);for(let s of i)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(),i,s;for(;this.indexes[t]<this.proxyOf.nodes.length&&(i=this.indexes[t],s=e(this.proxyOf.nodes[i],i),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")?(...i)=>e[t](...i.map(s=>typeof s=="function"?(o,r)=>s(o.toProxy(),r):s)):t==="every"||t==="some"?i=>e[t]((s,...o)=>i(s.toProxy(),...o)):t==="root"?()=>e.root().toProxy():t==="nodes"?e.nodes.map(i=>i.toProxy()):t==="first"||t==="last"?e[t].toProxy():e[t]:e[t]},set(e,t,i){return e[t]===i||(e[t]=i,(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 i=this.index(e),s=this.normalize(t,this.proxyOf.nodes[i]).reverse();i=this.index(e);for(let r of s)this.proxyOf.nodes.splice(i+1,0,r);let o;for(let r in this.indexes)o=this.indexes[r],i<o&&(this.indexes[r]=o+s.length);return this.markDirty(),this}insertBefore(e,t){let i=this.index(e),s=i===0?"prepend":!1,o=this.normalize(t,this.proxyOf.nodes[i],s).reverse();i=this.index(e);for(let a of o)this.proxyOf.nodes.splice(i,0,a);let r;for(let a in this.indexes)r=this.indexes[a],i<=r&&(this.indexes[a]=r+o.length);return this.markDirty(),this}normalize(e,t){if(typeof e=="string")e=ss(is(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 es(e)]}else if(e.selector)e=[new Ri(e)];else if(e.name)e=[new Mi(e)];else if(e.text)e=[new ts(e)];else throw new Error("Unknown node type in node creation");return e.map(s=>(s[Qn]||os.rebuild(s),s=s.proxyOf,s.parent&&s.parent.removeChild(s),s[Yn]&&rs(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 i=this.normalize(t,this.first,"prepend").reverse();for(let s of i)this.proxyOf.nodes.unshift(s);for(let s in this.indexes)this.indexes[s]=this.indexes[s]+i.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 i in this.indexes)t=this.indexes[i],t>=e&&(this.indexes[i]=t-1);return this.markDirty(),this}replaceValues(e,t,i){return i||(i=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,i))}),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each((t,i)=>{let s;try{s=e(t,i)}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((i,s)=>{if(i.type==="atrule"&&e.test(i.name))return t(i,s)}):this.walk((i,s)=>{if(i.type==="atrule"&&i.name===e)return t(i,s)}):(t=e,this.walk((i,s)=>{if(i.type==="atrule")return t(i,s)}))}walkComments(e){return this.walk((t,i)=>{if(t.type==="comment")return e(t,i)})}walkDecls(e,t){return t?e instanceof RegExp?this.walk((i,s)=>{if(i.type==="decl"&&e.test(i.prop))return t(i,s)}):this.walk((i,s)=>{if(i.type==="decl"&&i.prop===e)return t(i,s)}):(t=e,this.walk((i,s)=>{if(i.type==="decl")return t(i,s)}))}walkRules(e,t){return t?e instanceof RegExp?this.walk((i,s)=>{if(i.type==="rule"&&e.test(i.selector))return t(i,s)}):this.walk((i,s)=>{if(i.type==="rule"&&i.selector===e)return t(i,s)}):(t=e,this.walk((i,s)=>{if(i.type==="rule")return t(i,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]}};se.registerParse=n=>{is=n};se.registerRule=n=>{Ri=n};se.registerAtRule=n=>{Mi=n};se.registerRoot=n=>{ns=n};var we=se;se.default=se;se.rebuild=n=>{n.type==="atrule"?Object.setPrototypeOf(n,Mi.prototype):n.type==="rule"?Object.setPrototypeOf(n,Ri.prototype):n.type==="decl"?Object.setPrototypeOf(n,es.prototype):n.type==="comment"?Object.setPrototypeOf(n,ts.prototype):n.type==="root"&&Object.setPrototypeOf(n,ns.prototype),n[Qn]=!0,n.nodes&&n.nodes.forEach(e=>{se.rebuild(e)})};let qo=we,as,ls,We=class extends qo{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(e={}){return new as(new ls,this,e).stringify()}};We.registerLazyResult=n=>{as=n};We.registerProcessor=n=>{ls=n};var Ni=We;We.default=We;let yi=class{constructor(e,t={}){if(this.type="warning",this.text=e,t.node&&t.node.source){let i=t.node.rangeBy(t);this.line=i.start.line,this.column=i.start.column,this.endLine=i.end.line,this.endColumn=i.end.column}for(let i in t)this[i]=t[i]}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 cs=yi;yi.default=yi;let Wo=cs,wi=class{constructor(e,t,i){this.processor=e,this.messages=[],this.root=t,this.opts=i,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 i=new Wo(e,t);return this.messages.push(i),i}warnings(){return this.messages.filter(e=>e.type==="warning")}get content(){return this.css}};var Pi=wi;wi.default=wi;const si=39,vn=34,lt=92,yn=47,ct=10,Ie=32,ut=12,dt=9,ht=13,Go=91,Zo=93,Ko=40,Xo=41,Jo=123,Yo=125,Qo=59,ea=42,ta=58,ia=64,pt=/[\t\n\f\r "#'()/;[\\\]{}]/g,ft=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,na=/.[\r\n"'(/\\]/,wn=/[\da-f]/i;var sa=function(e,t={}){let i=e.css.valueOf(),s=t.ignoreErrors,o,r,a,l,c,u,h,p,E,k,_=i.length,m=0,D=[],H=[];function W(){return m}function I(X){throw e.error("Unclosed "+X,m)}function ie(){return H.length===0&&m>=_}function Te(X){if(H.length)return H.pop();if(m>=_)return;let U=X?X.ignoreUnclosed:!1;switch(o=i.charCodeAt(m),o){case ct:case Ie:case dt:case ht:case ut:{r=m;do r+=1,o=i.charCodeAt(r);while(o===Ie||o===ct||o===dt||o===ht||o===ut);k=["space",i.slice(m,r)],m=r-1;break}case Go:case Zo:case Jo:case Yo:case ta:case Qo:case Xo:{let ue=String.fromCharCode(o);k=[ue,ue,m];break}case Ko:{if(p=D.length?D.pop()[1]:"",E=i.charCodeAt(m+1),p==="url"&&E!==si&&E!==vn&&E!==Ie&&E!==ct&&E!==dt&&E!==ut&&E!==ht){r=m;do{if(u=!1,r=i.indexOf(")",r+1),r===-1)if(s||U){r=m;break}else I("bracket");for(h=r;i.charCodeAt(h-1)===lt;)h-=1,u=!u}while(u);k=["brackets",i.slice(m,r+1),m,r],m=r}else r=i.indexOf(")",m+1),l=i.slice(m,r+1),r===-1||na.test(l)?k=["(","(",m]:(k=["brackets",l,m,r],m=r);break}case si:case vn:{a=o===si?"'":'"',r=m;do{if(u=!1,r=i.indexOf(a,r+1),r===-1)if(s||U){r=m+1;break}else I("string");for(h=r;i.charCodeAt(h-1)===lt;)h-=1,u=!u}while(u);k=["string",i.slice(m,r+1),m,r],m=r;break}case ia:{pt.lastIndex=m+1,pt.test(i),pt.lastIndex===0?r=i.length-1:r=pt.lastIndex-2,k=["at-word",i.slice(m,r+1),m,r],m=r;break}case lt:{for(r=m,c=!0;i.charCodeAt(r+1)===lt;)r+=1,c=!c;if(o=i.charCodeAt(r+1),c&&o!==yn&&o!==Ie&&o!==ct&&o!==dt&&o!==ht&&o!==ut&&(r+=1,wn.test(i.charAt(r)))){for(;wn.test(i.charAt(r+1));)r+=1;i.charCodeAt(r+1)===Ie&&(r+=1)}k=["word",i.slice(m,r+1),m,r],m=r;break}default:{o===yn&&i.charCodeAt(m+1)===ea?(r=i.indexOf("*/",m+2)+1,r===0&&(s||U?r=i.length:I("comment")),k=["comment",i.slice(m,r+1),m,r],m=r):(ft.lastIndex=m+1,ft.test(i),ft.lastIndex===0?r=i.length-1:r=ft.lastIndex-2,k=["word",i.slice(m,r+1),m,r],D.push(k),m=r);break}}return m++,k}function Ee(X){H.push(X)}return{back:Ee,endOfFile:ie,nextToken:Te,position:W}};let us=we,_t=class extends us{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 Ti=_t;_t.default=_t;us.registerAtRule(_t);let ds=we,hs,ps,Oe=class extends ds{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,t,i){let s=super.normalize(e);if(t){if(i==="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 i=this.index(e);return!t&&i===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[i].raws.before),super.removeChild(e)}toResult(e={}){return new hs(new ps,this,e).stringify()}};Oe.registerLazyResult=n=>{hs=n};Oe.registerProcessor=n=>{ps=n};var tt=Oe;Oe.default=Oe;ds.registerRoot(Oe);let Ge={comma(n){return Ge.split(n,[","],!0)},space(n){let e=[" ",`
|
|
449
|
-
`," "];return Ge.split(n,e)},split(n,e,t){let i=[],s="",o=!1,r=0,a=!1,l="",c=!1;for(let u of n)c?c=!1:u==="\\"?c=!0:a?u===l&&(a=!1):u==='"'||u==="'"?(a=!0,l=u):u==="("?r+=1:u===")"?r>0&&(r-=1):r===0&&e.includes(u)&&(o=!0),o?(s!==""&&i.push(s.trim()),s="",o=!1):s+=u;return(t||s!=="")&&i.push(s.trim()),i}};var fs=Ge;Ge.default=Ge;let ms=we,ra=fs,St=class extends ms{constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return ra.comma(this.selector)}set selectors(e){let t=this.selector?this.selector.match(/,\s*/):null,i=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(i)}};var Li=St;St.default=St;ms.registerRule(St);let oa=Tt,aa=sa,la=It,ca=Ti,ua=tt,xn=Li;const En={empty:!0,space:!0};function da(n){for(let e=n.length-1;e>=0;e--){let t=n[e],i=t[3]||t[2];if(i)return i}}let ha=class{constructor(e){this.input=e,this.root=new ua,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 ca;t.name=e[1].slice(1),t.name===""&&this.unnamedAtrule(t,e),this.init(t,e[2]);let i,s,o,r=!1,a=!1,l=[],c=[];for(;!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),i=e[0],i==="("||i==="["?c.push(i==="("?")":"]"):i==="{"&&c.length>0?c.push("}"):i===c[c.length-1]&&c.pop(),c.length===0)if(i===";"){t.source.end=this.getPosition(e[2]),t.source.end.offset++,this.semicolon=!0;break}else if(i==="{"){a=!0;break}else if(i==="}"){if(l.length>0){for(o=l.length-1,s=l[o];s&&s[0]==="space";)s=l[--o];s&&(t.source.end=this.getPosition(s[3]||s[2]),t.source.end.offset++)}this.end(e);break}else l.push(e);else l.push(e);if(this.tokenizer.endOfFile()){r=!0;break}}t.raws.between=this.spacesAndCommentsFromEnd(l),l.length?(t.raws.afterName=this.spacesAndCommentsFromStart(l),this.raw(t,"params",l),r&&(e=l[l.length-1],t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++,this.spaces=t.raws.between,t.raws.between="")):(t.raws.afterName="",t.params=""),a&&(t.nodes=[],this.current=t)}checkMissedSemicolon(e){let t=this.colon(e);if(t===!1)return;let i=0,s;for(let o=t-1;o>=0&&(s=e[o],!(s[0]!=="space"&&(i+=1,i===2)));o--);throw this.input.error("Missed semicolon",s[0]==="word"?s[3]+1:s[2])}colon(e){let t=0,i,s,o;for(let[r,a]of e.entries()){if(i=a,s=i[0],s==="("&&(t+=1),s===")"&&(t-=1),t===0&&s===":")if(!o)this.doubleColon(i);else{if(o[0]==="word"&&o[1]==="progid")continue;return r}o=i}return!1}comment(e){let t=new la;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;let i=e[1].slice(2,-2);if(/^\s*$/.test(i))t.text="",t.raws.left=i,t.raws.right="";else{let s=i.match(/^(\s*)([^]*\S)(\s*)$/);t.text=s[2],t.raws.left=s[1],t.raws.right=s[3]}}createTokenizer(){this.tokenizer=aa(this.input)}decl(e,t){let i=new oa;this.init(i,e[0][2]);let s=e[e.length-1];for(s[0]===";"&&(this.semicolon=!0,e.pop()),i.source.end=this.getPosition(s[3]||s[2]||da(e)),i.source.end.offset++;e[0][0]!=="word";)e.length===1&&this.unknownWord(e),i.raws.before+=e.shift()[1];for(i.source.start=this.getPosition(e[0][2]),i.prop="";e.length;){let c=e[0][0];if(c===":"||c==="space"||c==="comment")break;i.prop+=e.shift()[1]}i.raws.between="";let o;for(;e.length;)if(o=e.shift(),o[0]===":"){i.raws.between+=o[1];break}else o[0]==="word"&&/\w/.test(o[1])&&this.unknownWord([o]),i.raws.between+=o[1];(i.prop[0]==="_"||i.prop[0]==="*")&&(i.raws.before+=i.prop[0],i.prop=i.prop.slice(1));let r=[],a;for(;e.length&&(a=e[0][0],!(a!=="space"&&a!=="comment"));)r.push(e.shift());this.precheckMissedSemicolon(e);for(let c=e.length-1;c>=0;c--){if(o=e[c],o[1].toLowerCase()==="!important"){i.important=!0;let u=this.stringFrom(e,c);u=this.spacesFromEnd(e)+u,u!==" !important"&&(i.raws.important=u);break}else if(o[1].toLowerCase()==="important"){let u=e.slice(0),h="";for(let p=c;p>0;p--){let E=u[p][0];if(h.trim().indexOf("!")===0&&E!=="space")break;h=u.pop()[1]+h}h.trim().indexOf("!")===0&&(i.important=!0,i.raws.important=h,e=u)}if(o[0]!=="space"&&o[0]!=="comment")break}e.some(c=>c[0]!=="space"&&c[0]!=="comment")&&(i.raws.between+=r.map(c=>c[1]).join(""),r=[]),this.raw(i,"value",r.concat(e),t),i.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 xn;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,i=null,s=!1,o=null,r=[],a=e[1].startsWith("--"),l=[],c=e;for(;c;){if(i=c[0],l.push(c),i==="("||i==="[")o||(o=c),r.push(i==="("?")":"]");else if(a&&s&&i==="{")o||(o=c),r.push("}");else if(r.length===0)if(i===";")if(s){this.decl(l,a);return}else break;else if(i==="{"){this.rule(l);return}else if(i==="}"){this.tokenizer.back(l.pop()),t=!0;break}else i===":"&&(s=!0);else i===r[r.length-1]&&(r.pop(),r.length===0&&(o=null));c=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),r.length>0&&this.unclosedBracket(o),t&&s){if(!a)for(;l.length&&(c=l[l.length-1][0],!(c!=="space"&&c!=="comment"));)this.tokenizer.back(l.pop());this.decl(l,a)}else this.unknownWord(l)}parse(){let e;for(;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e);break}this.endFile()}precheckMissedSemicolon(){}raw(e,t,i,s){let o,r,a=i.length,l="",c=!0,u,h;for(let p=0;p<a;p+=1)o=i[p],r=o[0],r==="space"&&p===a-1&&!s?c=!1:r==="comment"?(h=i[p-1]?i[p-1][0]:"empty",u=i[p+1]?i[p+1][0]:"empty",!En[h]&&!En[u]?l.slice(-1)===","?c=!1:l+=o[1]:c=!1):l+=o[1];if(!c){let p=i.reduce((E,k)=>E+k[1],"");e.raws[t]={raw:p,value:l}}e[t]=l}rule(e){e.pop();let t=new xn;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t}spacesAndCommentsFromEnd(e){let t,i="";for(;e.length&&(t=e[e.length-1][0],!(t!=="space"&&t!=="comment"));)i=e.pop()[1]+i;return i}spacesAndCommentsFromStart(e){let t,i="";for(;e.length&&(t=e[0][0],!(t!=="space"&&t!=="comment"));)i+=e.shift()[1];return i}spacesFromEnd(e){let t,i="";for(;e.length&&(t=e[e.length-1][0],t==="space");)i=e.pop()[1]+i;return i}stringFrom(e,t){let i="";for(let s=t;s<e.length;s++)i+=e[s][1];return e.splice(t,e.length-t),i}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 pa=ha;let fa=we,ma=pa,ga=Lt;function $t(n,e){let t=new ga(n,e),i=new ma(t);try{i.parse()}catch(s){throw s}return i.root}var Ii=$t;$t.default=$t;fa.registerParse($t);let{isClean:ee,my:ba}=et,va=Jn,ya=Nt,wa=we,xa=Ni,_n=Pi,Ea=Ii,_a=tt;const Sa={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},Aa={Once:!0,postcssPlugin:!0,prepare:!0},Re=0;function je(n){return typeof n=="object"&&typeof n.then=="function"}function gs(n){let e=!1,t=Sa[n.type];return n.type==="decl"?e=n.prop.toLowerCase():n.type==="atrule"&&(e=n.name.toLowerCase()),e&&n.append?[t,t+"-"+e,Re,t+"Exit",t+"Exit-"+e]:e?[t,t+"-"+e,t+"Exit",t+"Exit-"+e]:n.append?[t,Re,t+"Exit"]:[t,t+"Exit"]}function Sn(n){let e;return n.type==="document"?e=["Document",Re,"DocumentExit"]:n.type==="root"?e=["Root",Re,"RootExit"]:e=gs(n),{eventIndex:0,events:e,iterator:0,node:n,visitorIndex:0,visitors:[]}}function xi(n){return n[ee]=!1,n.nodes&&n.nodes.forEach(e=>xi(e)),n}let Ei={},Me=class bs{constructor(e,t,i){this.stringified=!1,this.processed=!1;let s;if(typeof t=="object"&&t!==null&&(t.type==="root"||t.type==="document"))s=xi(t);else if(t instanceof bs||t instanceof _n)s=xi(t.root),t.map&&(typeof i.map>"u"&&(i.map={}),i.map.inline||(i.map.inline=!1),i.map.prev=t.map);else{let o=Ea;i.syntax&&(o=i.syntax.parse),i.parser&&(o=i.parser),o.parse&&(o=o.parse);try{s=o(t,i)}catch(r){this.processed=!0,this.error=r}s&&!s[ba]&&wa.rebuild(s)}this.result=new _n(e,s,i),this.helpers={...Ei,postcss:Ei,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 i=this.result.lastPlugin;try{t&&t.addToError(e),this.error=e,e.name==="CssSyntaxError"&&!e.plugin?(e.plugin=i.postcssPlugin,e.setMessage()):i.postcssVersion}catch(s){console&&console.error&&console.error(s)}return e}prepareVisitors(){this.listeners={};let e=(t,i,s)=>{this.listeners[i]||(this.listeners[i]=[]),this.listeners[i].push([t,s])};for(let t of this.plugins)if(typeof t=="object")for(let i in t){if(!$a[i]&&/^[A-Z]/.test(i))throw new Error(`Unknown event ${i} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!Aa[i])if(typeof t[i]=="object")for(let s in t[i])s==="*"?e(t,i,t[i][s]):e(t,i+"-"+s.toLowerCase(),t[i][s]);else typeof t[i]=="function"&&e(t,i,t[i])}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],i=this.runOnRoot(t);if(je(i))try{await i}catch(s){throw this.handleError(s)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[ee];){e[ee]=!0;let t=[Sn(e)];for(;t.length>0;){let i=this.visitTick(t);if(je(i))try{await i}catch(s){let o=t[t.length-1].node;throw this.handleError(s,o)}}}if(this.listeners.OnceExit)for(let[t,i]of this.listeners.OnceExit){this.result.lastPlugin=t;try{if(e.type==="document"){let s=e.nodes.map(o=>i(o,this.helpers));await Promise.all(s)}else await i(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(i=>e.Once(i,this.helpers));return je(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=ya;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let s=new va(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(je(t))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[ee];)e[ee]=!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[i,s]of e){this.result.lastPlugin=i;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(je(o))throw this.getAsyncError()}}visitTick(e){let t=e[e.length-1],{node:i,visitors:s}=t;if(i.type!=="root"&&i.type!=="document"&&!i.parent){e.pop();return}if(s.length>0&&t.visitorIndex<s.length){let[r,a]=s[t.visitorIndex];t.visitorIndex+=1,t.visitorIndex===s.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=r;try{return a(i.toProxy(),this.helpers)}catch(l){throw this.handleError(l,i)}}if(t.iterator!==0){let r=t.iterator,a;for(;a=i.nodes[i.indexes[r]];)if(i.indexes[r]+=1,!a[ee]){a[ee]=!0,e.push(Sn(a));return}t.iterator=0,delete i.indexes[r]}let o=t.events;for(;t.eventIndex<o.length;){let r=o[t.eventIndex];if(t.eventIndex+=1,r===Re){i.nodes&&i.nodes.length&&(i[ee]=!0,t.iterator=i.getIterator());return}else if(this.listeners[r]){t.visitors=this.listeners[r];return}}e.pop()}walkSync(e){e[ee]=!0;let t=gs(e);for(let i of t)if(i===Re)e.nodes&&e.each(s=>{s[ee]||this.walkSync(s)});else{let s=this.listeners[i];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"}};Me.registerPostcss=n=>{Ei=n};var vs=Me;Me.default=Me;_a.registerLazyResult(Me);xa.registerLazyResult(Me);let Ca=Jn,ka=Nt,Oa=Ii;const Ra=Pi;let _i=class{constructor(e,t,i){t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=i,this._map=void 0;let s,o=ka;this.result=new Ra(this._processor,s,this._opts),this.result.css=t;let r=this;Object.defineProperty(this.result,"root",{get(){return r.root}});let a=new Ca(o,s,this._opts,t);if(a.isMap()){let[l,c]=a.generate();l&&(this.result.css=l),c&&(this.result.map=c)}}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}sync(){if(this.error)throw this.error;return this.result}then(e,t){return this.async().then(e,t)}toString(){return this._css}warnings(){return[]}get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let e,t=Oa;try{e=t(this._css,this._opts)}catch(i){this.error=i}if(this.error)throw this.error;return this._root=e,e}get[Symbol.toStringTag](){return"NoWorkResult"}};var Ma=_i;_i.default=_i;let Na=Ma,Pa=vs,Ta=Ni,La=tt,Ze=class{constructor(e=[]){this.version="8.4.32",this.plugins=this.normalize(e)}normalize(e){let t=[];for(let i of e)if(i.postcss===!0?i=i():i.postcss&&(i=i.postcss),typeof i=="object"&&Array.isArray(i.plugins))t=t.concat(i.plugins);else if(typeof i=="object"&&i.postcssPlugin)t.push(i);else if(typeof i=="function")t.push(i);else if(!(typeof i=="object"&&(i.parse||i.stringify)))throw new Error(i+" 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 Na(this,e,t):new Pa(this,e,t)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}};var Ia=Ze;Ze.default=Ze;La.registerProcessor(Ze);Ta.registerProcessor(Ze);let ja=Tt,Da=Wn,za=It,Ba=Ti,Ua=Lt,Fa=tt,Ha=Li;function Ke(n,e){if(Array.isArray(n))return n.map(s=>Ke(s));let{inputs:t,...i}=n;if(t){e=[];for(let s of t){let o={...s,__proto__:Ua.prototype};o.map&&(o.map={...o.map,__proto__:Da.prototype}),e.push(o)}}if(i.nodes&&(i.nodes=n.nodes.map(s=>Ke(s,e))),i.source){let{inputId:s,...o}=i.source;i.source=o,s!=null&&(i.source.input=e[s])}if(i.type==="root")return new Fa(i);if(i.type==="decl")return new ja(i);if(i.type==="rule")return new Ha(i);if(i.type==="comment")return new za(i);if(i.type==="atrule")return new Ba(i);throw new Error("Unknown node type: "+n.type)}var Va=Ke;Ke.default=Ke;var $n={};let qa=Oi,ys=Tt,Wa=vs,Ga=we,ji=Ia,Za=Nt,Ka=Va,ws=Ni,Xa=cs,xs=It,Es=Ti,Ja=Pi,Ya=Lt,Qa=Ii,el=fs,_s=Li,Ss=tt,tl=Pt;function A(...n){return n.length===1&&Array.isArray(n[0])&&(n=n[0]),new ji(n)}A.plugin=function(e,t){let i=!1;function s(...r){console&&console.warn&&!i&&(i=!0,console.warn(e+`: postcss.plugin was deprecated. Migration guide:
|
|
450
|
-
https://evilmartians.com/chronicles/postcss-8-plugin-migration`),$n.LANG&&$n.LANG.startsWith("cn")&&console.warn(e+`: 里面 postcss.plugin 被弃用. 迁移指南:
|
|
451
|
-
https://www.w3ctech.com/topic/2226`));let a=t(...r);return a.postcssPlugin=e,a.postcssVersion=new ji().version,a}let o;return Object.defineProperty(s,"postcss",{get(){return o||(o=s()),o}}),s.process=function(r,a,l){return A([s(l)]).process(r,a)},s};A.stringify=Za;A.parse=Qa;A.fromJSON=Ka;A.list=el;A.comment=n=>new xs(n);A.atRule=n=>new Es(n);A.decl=n=>new ys(n);A.rule=n=>new _s(n);A.root=n=>new Ss(n);A.document=n=>new ws(n);A.CssSyntaxError=qa;A.Declaration=ys;A.Container=Ga;A.Processor=ji;A.Document=ws;A.Comment=xs;A.Warning=Xa;A.AtRule=Es;A.Result=Ja;A.Input=Ya;A.Rule=_s;A.Root=Ss;A.Node=tl;Wa.registerPostcss(A);var il=A;A.default=A;const M=Fn(il);M.stringify;M.fromJSON;M.plugin;M.parse;M.list;M.document;M.comment;M.atRule;M.rule;M.decl;M.root;M.CssSyntaxError;M.Declaration;M.Container;M.Processor;M.Document;M.Comment;M.Warning;M.AtRule;M.Result;M.Input;M.Rule;M.Root;M.Node;var nl=function(e){const t=e.prefix,i=/\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&&An(r.source.input.file,s)||o.length&&r.source.input.file&&!An(r.source.input.file,o)||r.walkRules(a=>{const l=["keyframes","-webkit-keyframes","-moz-keyframes","-o-keyframes"];a.parent&&l.includes(a.parent.name)||(a.selectors=a.selectors.map(c=>e.exclude&&sl(c,e.exclude)?c:e.transform?e.transform(t,c,i+c,r.source.input.file,a):i+c))})}};function An(n,e){return e.some(t=>t instanceof RegExp?t.test(n):n.includes(t))}function sl(n,e){return e.some(t=>t instanceof RegExp?t.test(n):n===t)}const rl=Fn(nl),ol="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}",al="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 ll(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}function $s(n){return n instanceof Map?n.clear=n.delete=n.set=function(){throw new Error("map is read-only")}:n instanceof Set&&(n.add=n.clear=n.delete=function(){throw new Error("set is read-only")}),Object.freeze(n),Object.getOwnPropertyNames(n).forEach(e=>{const t=n[e],i=typeof t;(i==="object"||i==="function")&&!Object.isFrozen(t)&&$s(t)}),n}class Cn{constructor(e){e.data===void 0&&(e.data={}),this.data=e.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function As(n){return n.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function ae(n,...e){const t=Object.create(null);for(const i in n)t[i]=n[i];return e.forEach(function(i){for(const s in i)t[s]=i[s]}),t}const cl="</span>",kn=n=>!!n.scope,ul=(n,{prefix:e})=>{if(n.startsWith("language:"))return n.replace("language:","language-");if(n.includes(".")){const t=n.split(".");return[`${e}${t.shift()}`,...t.map((i,s)=>`${i}${"_".repeat(s+1)}`)].join(" ")}return`${e}${n}`};class dl{constructor(e,t){this.buffer="",this.classPrefix=t.classPrefix,e.walk(this)}addText(e){this.buffer+=As(e)}openNode(e){if(!kn(e))return;const t=ul(e.scope,{prefix:this.classPrefix});this.span(t)}closeNode(e){kn(e)&&(this.buffer+=cl)}value(){return this.buffer}span(e){this.buffer+=`<span class="${e}">`}}const On=(n={})=>{const e={children:[]};return Object.assign(e,n),e};class Di{constructor(){this.rootNode=On(),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=On({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(i=>this._walk(e,i)),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=>{Di._collapse(t)}))}}class hl extends Di{constructor(e){super(),this.options=e}addText(e){e!==""&&this.add(e)}startScope(e){this.openNode(e)}endScope(){this.closeNode()}__addSublanguage(e,t){const i=e.root;t&&(i.scope=`language:${t}`),this.add(i)}toHTML(){return new dl(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function Xe(n){return n?typeof n=="string"?n:n.source:null}function Cs(n){return xe("(?=",n,")")}function pl(n){return xe("(?:",n,")*")}function fl(n){return xe("(?:",n,")?")}function xe(...n){return n.map(e=>Xe(e)).join("")}function ml(n){const e=n[n.length-1];return typeof e=="object"&&e.constructor===Object?(n.splice(n.length-1,1),e):{}}function zi(...n){return"("+(ml(n).capture?"":"?:")+n.map(e=>Xe(e)).join("|")+")"}function ks(n){return new RegExp(n.toString()+"|").exec("").length-1}function gl(n,e){const t=n&&n.exec(e);return t&&t.index===0}const bl=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function Bi(n,{joinWith:e}){let t=0;return n.map(i=>{t+=1;const s=t;let o=Xe(i),r="";for(;o.length>0;){const a=bl.exec(o);if(!a){r+=o;break}r+=o.substring(0,a.index),o=o.substring(a.index+a[0].length),a[0][0]==="\\"&&a[1]?r+="\\"+String(Number(a[1])+s):(r+=a[0],a[0]==="("&&t++)}return r}).map(i=>`(${i})`).join(e)}const vl=/\b\B/,Os="[a-zA-Z]\\w*",Ui="[a-zA-Z_]\\w*",Rs="\\b\\d+(\\.\\d+)?",Ms="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",Ns="\\b(0b[01]+)",yl="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",wl=(n={})=>{const e=/^#![ ]*\//;return n.binary&&(n.begin=xe(e,/.*\b/,n.binary,/\b.*/)),ae({scope:"meta",begin:e,end:/$/,relevance:0,"on:begin":(t,i)=>{t.index!==0&&i.ignoreMatch()}},n)},Je={begin:"\\\\[\\s\\S]",relevance:0},xl={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[Je]},El={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[Je]},_l={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/},jt=function(n,e,t={}){const i=ae({scope:"comment",begin:n,end:e,contains:[]},t);i.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=zi("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 i.contains.push({begin:xe(/[ ]+/,"(",s,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),i},Sl=jt("//","$"),$l=jt("/\\*","\\*/"),Al=jt("#","$"),Cl={scope:"number",begin:Rs,relevance:0},kl={scope:"number",begin:Ms,relevance:0},Ol={scope:"number",begin:Ns,relevance:0},Rl={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[Je,{begin:/\[/,end:/\]/,relevance:0,contains:[Je]}]},Ml={scope:"title",begin:Os,relevance:0},Nl={scope:"title",begin:Ui,relevance:0},Pl={begin:"\\.\\s*"+Ui,relevance:0},Tl=function(n){return Object.assign(n,{"on:begin":(e,t)=>{t.data._beginMatch=e[1]},"on:end":(e,t)=>{t.data._beginMatch!==e[1]&&t.ignoreMatch()}})};var mt=Object.freeze({__proto__:null,APOS_STRING_MODE:xl,BACKSLASH_ESCAPE:Je,BINARY_NUMBER_MODE:Ol,BINARY_NUMBER_RE:Ns,COMMENT:jt,C_BLOCK_COMMENT_MODE:$l,C_LINE_COMMENT_MODE:Sl,C_NUMBER_MODE:kl,C_NUMBER_RE:Ms,END_SAME_AS_BEGIN:Tl,HASH_COMMENT_MODE:Al,IDENT_RE:Os,MATCH_NOTHING_RE:vl,METHOD_GUARD:Pl,NUMBER_MODE:Cl,NUMBER_RE:Rs,PHRASAL_WORDS_MODE:_l,QUOTE_STRING_MODE:El,REGEXP_MODE:Rl,RE_STARTERS_RE:yl,SHEBANG:wl,TITLE_MODE:Ml,UNDERSCORE_IDENT_RE:Ui,UNDERSCORE_TITLE_MODE:Nl});function Ll(n,e){n.input[n.index-1]==="."&&e.ignoreMatch()}function Il(n,e){n.className!==void 0&&(n.scope=n.className,delete n.className)}function jl(n,e){e&&n.beginKeywords&&(n.begin="\\b("+n.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",n.__beforeBegin=Ll,n.keywords=n.keywords||n.beginKeywords,delete n.beginKeywords,n.relevance===void 0&&(n.relevance=0))}function Dl(n,e){Array.isArray(n.illegal)&&(n.illegal=zi(...n.illegal))}function zl(n,e){if(n.match){if(n.begin||n.end)throw new Error("begin & end are not supported with match");n.begin=n.match,delete n.match}}function Bl(n,e){n.relevance===void 0&&(n.relevance=1)}const Ul=(n,e)=>{if(!n.beforeMatch)return;if(n.starts)throw new Error("beforeMatch cannot be used with starts");const t=Object.assign({},n);Object.keys(n).forEach(i=>{delete n[i]}),n.keywords=t.keywords,n.begin=xe(t.beforeMatch,Cs(t.begin)),n.starts={relevance:0,contains:[Object.assign(t,{endsParent:!0})]},n.relevance=0,delete t.beforeMatch},Fl=["of","and","for","in","not","or","if","then","parent","list","value"],Hl="keyword";function Ps(n,e,t=Hl){const i=Object.create(null);return typeof n=="string"?s(t,n.split(" ")):Array.isArray(n)?s(t,n):Object.keys(n).forEach(function(o){Object.assign(i,Ps(n[o],e,o))}),i;function s(o,r){e&&(r=r.map(a=>a.toLowerCase())),r.forEach(function(a){const l=a.split("|");i[l[0]]=[o,Vl(l[0],l[1])]})}}function Vl(n,e){return e?Number(e):ql(n)?0:1}function ql(n){return Fl.includes(n.toLowerCase())}const Rn={},me=n=>{console.error(n)},Mn=(n,...e)=>{console.log(`WARN: ${n}`,...e)},Se=(n,e)=>{Rn[`${n}/${e}`]||(console.log(`Deprecated as of ${n}. ${e}`),Rn[`${n}/${e}`]=!0)},At=new Error;function Ts(n,e,{key:t}){let i=0;const s=n[t],o={},r={};for(let a=1;a<=e.length;a++)r[a+i]=s[a],o[a+i]=!0,i+=ks(e[a-1]);n[t]=r,n[t]._emit=o,n[t]._multi=!0}function Wl(n){if(Array.isArray(n.begin)){if(n.skip||n.excludeBegin||n.returnBegin)throw me("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),At;if(typeof n.beginScope!="object"||n.beginScope===null)throw me("beginScope must be object"),At;Ts(n,n.begin,{key:"beginScope"}),n.begin=Bi(n.begin,{joinWith:""})}}function Gl(n){if(Array.isArray(n.end)){if(n.skip||n.excludeEnd||n.returnEnd)throw me("skip, excludeEnd, returnEnd not compatible with endScope: {}"),At;if(typeof n.endScope!="object"||n.endScope===null)throw me("endScope must be object"),At;Ts(n,n.end,{key:"endScope"}),n.end=Bi(n.end,{joinWith:""})}}function Zl(n){n.scope&&typeof n.scope=="object"&&n.scope!==null&&(n.beginScope=n.scope,delete n.scope)}function Kl(n){Zl(n),typeof n.beginScope=="string"&&(n.beginScope={_wrap:n.beginScope}),typeof n.endScope=="string"&&(n.endScope={_wrap:n.endScope}),Wl(n),Gl(n)}function Xl(n){function e(r,a){return new RegExp(Xe(r),"m"+(n.case_insensitive?"i":"")+(n.unicodeRegex?"u":"")+(a?"g":""))}class t{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(a,l){l.position=this.position++,this.matchIndexes[this.matchAt]=l,this.regexes.push([l,a]),this.matchAt+=ks(a)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const a=this.regexes.map(l=>l[1]);this.matcherRe=e(Bi(a,{joinWith:"|"}),!0),this.lastIndex=0}exec(a){this.matcherRe.lastIndex=this.lastIndex;const l=this.matcherRe.exec(a);if(!l)return null;const c=l.findIndex((h,p)=>p>0&&h!==void 0),u=this.matchIndexes[c];return l.splice(0,c),Object.assign(l,u)}}class i{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(a){if(this.multiRegexes[a])return this.multiRegexes[a];const l=new t;return this.rules.slice(a).forEach(([c,u])=>l.addRule(c,u)),l.compile(),this.multiRegexes[a]=l,l}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(a,l){this.rules.push([a,l]),l.type==="begin"&&this.count++}exec(a){const l=this.getMatcher(this.regexIndex);l.lastIndex=this.lastIndex;let c=l.exec(a);if(this.resumingScanAtSamePosition()&&!(c&&c.index===this.lastIndex)){const u=this.getMatcher(0);u.lastIndex=this.lastIndex+1,c=u.exec(a)}return c&&(this.regexIndex+=c.position+1,this.regexIndex===this.count&&this.considerAll()),c}}function s(r){const a=new i;return r.contains.forEach(l=>a.addRule(l.begin,{rule:l,type:"begin"})),r.terminatorEnd&&a.addRule(r.terminatorEnd,{type:"end"}),r.illegal&&a.addRule(r.illegal,{type:"illegal"}),a}function o(r,a){const l=r;if(r.isCompiled)return l;[Il,zl,Kl,Ul].forEach(u=>u(r,a)),n.compilerExtensions.forEach(u=>u(r,a)),r.__beforeBegin=null,[jl,Dl,Bl].forEach(u=>u(r,a)),r.isCompiled=!0;let c=null;return typeof r.keywords=="object"&&r.keywords.$pattern&&(r.keywords=Object.assign({},r.keywords),c=r.keywords.$pattern,delete r.keywords.$pattern),c=c||/\w+/,r.keywords&&(r.keywords=Ps(r.keywords,n.case_insensitive)),l.keywordPatternRe=e(c,!0),a&&(r.begin||(r.begin=/\B|\b/),l.beginRe=e(l.begin),!r.end&&!r.endsWithParent&&(r.end=/\B|\b/),r.end&&(l.endRe=e(l.end)),l.terminatorEnd=Xe(l.end)||"",r.endsWithParent&&a.terminatorEnd&&(l.terminatorEnd+=(r.end?"|":"")+a.terminatorEnd)),r.illegal&&(l.illegalRe=e(r.illegal)),r.contains||(r.contains=[]),r.contains=[].concat(...r.contains.map(function(u){return Jl(u==="self"?r:u)})),r.contains.forEach(function(u){o(u,l)}),r.starts&&o(r.starts,a),l.matcher=s(l),l}if(n.compilerExtensions||(n.compilerExtensions=[]),n.contains&&n.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return n.classNameAliases=ae(n.classNameAliases||{}),o(n)}function Ls(n){return n?n.endsWithParent||Ls(n.starts):!1}function Jl(n){return n.variants&&!n.cachedVariants&&(n.cachedVariants=n.variants.map(function(e){return ae(n,{variants:null},e)})),n.cachedVariants?n.cachedVariants:Ls(n)?ae(n,{starts:n.starts?ae(n.starts):null}):Object.isFrozen(n)?ae(n):n}var Yl="11.9.0";class Ql extends Error{constructor(e,t){super(e),this.name="HTMLInjectionError",this.html=t}}const ri=As,Nn=ae,Pn=Symbol("nomatch"),ec=7,Is=function(n){const e=Object.create(null),t=Object.create(null),i=[];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 a={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:hl};function l(d){return a.noHighlightRe.test(d)}function c(d){let g=d.className+" ";g+=d.parentNode?d.parentNode.className:"";const y=a.languageDetectRe.exec(g);if(y){const S=U(y[1]);return S||(Mn(o.replace("{}",y[1])),Mn("Falling back to no-highlight mode for this block.",d)),S?y[1]:"no-highlight"}return g.split(/\s+/).find(S=>l(S)||U(S))}function u(d,g,y){let S="",N="";typeof g=="object"?(S=d,y=g.ignoreIllegals,N=g.language):(Se("10.7.0","highlight(lang, code, ...args) has been deprecated."),Se("10.7.0",`Please use highlight(code, options) instead.
|
|
452
|
-
https://github.com/highlightjs/highlight.js/issues/2277`),N=d,S=g),y===void 0&&(y=!0);const V={code:S,language:N};de("before:highlight",V);const re=V.result?V.result:h(V.language,V.code,y);return re.code=V.code,de("after:highlight",re),re}function h(d,g,y,S){const N=Object.create(null);function V(f,b){return f.keywords[b]}function re(){if(!v.keywords){j.addText(O);return}let f=0;v.keywordPatternRe.lastIndex=0;let b=v.keywordPatternRe.exec(O),w="";for(;b;){w+=O.substring(f,b.index);const C=Y.case_insensitive?b[0].toLowerCase():b[0],z=V(v,C);if(z){const[ne,Xs]=z;if(j.addText(w),w="",N[C]=(N[C]||0)+1,N[C]<=ec&&(rt+=Xs),ne.startsWith("_"))w+=b[0];else{const Js=Y.classNameAliases[ne]||ne;J(b[0],Js)}}else w+=b[0];f=v.keywordPatternRe.lastIndex,b=v.keywordPatternRe.exec(O)}w+=O.substring(f),j.addText(w)}function nt(){if(O==="")return;let f=null;if(typeof v.subLanguage=="string"){if(!e[v.subLanguage]){j.addText(O);return}f=h(v.subLanguage,O,!0,Wi[v.subLanguage]),Wi[v.subLanguage]=f._top}else f=E(O,v.subLanguage.length?v.subLanguage:null);v.relevance>0&&(rt+=f.relevance),j.__addSublanguage(f._emitter,f.language)}function q(){v.subLanguage!=null?nt():re(),O=""}function J(f,b){f!==""&&(j.startScope(b),j.addText(f),j.endScope())}function Fi(f,b){let w=1;const C=b.length-1;for(;w<=C;){if(!f._emit[w]){w++;continue}const z=Y.classNameAliases[f[w]]||f[w],ne=b[w];z?J(ne,z):(O=ne,re(),O=""),w++}}function Hi(f,b){return f.scope&&typeof f.scope=="string"&&j.openNode(Y.classNameAliases[f.scope]||f.scope),f.beginScope&&(f.beginScope._wrap?(J(O,Y.classNameAliases[f.beginScope._wrap]||f.beginScope._wrap),O=""):f.beginScope._multi&&(Fi(f.beginScope,b),O="")),v=Object.create(f,{parent:{value:v}}),v}function Vi(f,b,w){let C=gl(f.endRe,w);if(C){if(f["on:end"]){const z=new Cn(f);f["on:end"](b,z),z.isMatchIgnored&&(C=!1)}if(C){for(;f.endsParent&&f.parent;)f=f.parent;return f}}if(f.endsWithParent)return Vi(f.parent,b,w)}function qs(f){return v.matcher.regexIndex===0?(O+=f[0],1):(qt=!0,0)}function Ws(f){const b=f[0],w=f.rule,C=new Cn(w),z=[w.__beforeBegin,w["on:begin"]];for(const ne of z)if(ne&&(ne(f,C),C.isMatchIgnored))return qs(b);return w.skip?O+=b:(w.excludeBegin&&(O+=b),q(),!w.returnBegin&&!w.excludeBegin&&(O=b)),Hi(w,f),w.returnBegin?0:b.length}function Gs(f){const b=f[0],w=g.substring(f.index),C=Vi(v,f,w);if(!C)return Pn;const z=v;v.endScope&&v.endScope._wrap?(q(),J(b,v.endScope._wrap)):v.endScope&&v.endScope._multi?(q(),Fi(v.endScope,f)):z.skip?O+=b:(z.returnEnd||z.excludeEnd||(O+=b),q(),z.excludeEnd&&(O=b));do v.scope&&j.closeNode(),!v.skip&&!v.subLanguage&&(rt+=v.relevance),v=v.parent;while(v!==C.parent);return C.starts&&Hi(C.starts,f),z.returnEnd?0:b.length}function Zs(){const f=[];for(let b=v;b!==Y;b=b.parent)b.scope&&f.unshift(b.scope);f.forEach(b=>j.openNode(b))}let st={};function qi(f,b){const w=b&&b[0];if(O+=f,w==null)return q(),0;if(st.type==="begin"&&b.type==="end"&&st.index===b.index&&w===""){if(O+=g.slice(b.index,b.index+1),!s){const C=new Error(`0 width match regex (${d})`);throw C.languageName=d,C.badRule=st.rule,C}return 1}if(st=b,b.type==="begin")return Ws(b);if(b.type==="illegal"&&!y){const C=new Error('Illegal lexeme "'+w+'" for mode "'+(v.scope||"<unnamed>")+'"');throw C.mode=v,C}else if(b.type==="end"){const C=Gs(b);if(C!==Pn)return C}if(b.type==="illegal"&&w==="")return 1;if(Vt>1e5&&Vt>b.index*3)throw new Error("potential infinite loop, way more iterations than matches");return O+=w,w.length}const Y=U(d);if(!Y)throw me(o.replace("{}",d)),new Error('Unknown language: "'+d+'"');const Ks=Xl(Y);let Ht="",v=S||Ks;const Wi={},j=new a.__emitter(a);Zs();let O="",rt=0,he=0,Vt=0,qt=!1;try{if(Y.__emitTokens)Y.__emitTokens(g,j);else{for(v.matcher.considerAll();;){Vt++,qt?qt=!1:v.matcher.considerAll(),v.matcher.lastIndex=he;const f=v.matcher.exec(g);if(!f)break;const b=g.substring(he,f.index),w=qi(b,f);he=f.index+w}qi(g.substring(he))}return j.finalize(),Ht=j.toHTML(),{language:d,value:Ht,relevance:rt,illegal:!1,_emitter:j,_top:v}}catch(f){if(f.message&&f.message.includes("Illegal"))return{language:d,value:ri(g),illegal:!0,relevance:0,_illegalBy:{message:f.message,index:he,context:g.slice(he-100,he+100),mode:f.mode,resultSoFar:Ht},_emitter:j};if(s)return{language:d,value:ri(g),illegal:!1,relevance:0,errorRaised:f,_emitter:j,_top:v};throw f}}function p(d){const g={value:ri(d),illegal:!1,relevance:0,_top:r,_emitter:new a.__emitter(a)};return g._emitter.addText(d),g}function E(d,g){g=g||a.languages||Object.keys(e);const y=p(d),S=g.filter(U).filter(it).map(q=>h(q,d,!1));S.unshift(y);const N=S.sort((q,J)=>{if(q.relevance!==J.relevance)return J.relevance-q.relevance;if(q.language&&J.language){if(U(q.language).supersetOf===J.language)return 1;if(U(J.language).supersetOf===q.language)return-1}return 0}),[V,re]=N,nt=V;return nt.secondBest=re,nt}function k(d,g,y){const S=g&&t[g]||y;d.classList.add("hljs"),d.classList.add(`language-${S}`)}function _(d){let g=null;const y=c(d);if(l(y))return;if(de("before:highlightElement",{el:d,language:y}),d.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",d);return}if(d.children.length>0&&(a.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(d)),a.throwUnescapedHTML))throw new Ql("One of your code blocks includes unescaped HTML.",d.innerHTML);g=d;const S=g.textContent,N=y?u(S,{language:y,ignoreIllegals:!0}):E(S);d.innerHTML=N.value,d.dataset.highlighted="yes",k(d,y,N.language),d.result={language:N.language,re:N.relevance,relevance:N.relevance},N.secondBest&&(d.secondBest={language:N.secondBest.language,relevance:N.secondBest.relevance}),de("after:highlightElement",{el:d,result:N,text:S})}function m(d){a=Nn(a,d)}const D=()=>{I(),Se("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function H(){I(),Se("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let W=!1;function I(){if(document.readyState==="loading"){W=!0;return}document.querySelectorAll(a.cssSelector).forEach(_)}function ie(){W&&I()}typeof window<"u"&&window.addEventListener&&window.addEventListener("DOMContentLoaded",ie,!1);function Te(d,g){let y=null;try{y=g(n)}catch(S){if(me("Language definition for '{}' could not be registered.".replace("{}",d)),s)me(S);else throw S;y=r}y.name||(y.name=d),e[d]=y,y.rawDefinition=g.bind(null,n),y.aliases&&ue(y.aliases,{languageName:d})}function Ee(d){delete e[d];for(const g of Object.keys(t))t[g]===d&&delete t[g]}function X(){return Object.keys(e)}function U(d){return d=(d||"").toLowerCase(),e[d]||e[t[d]]}function ue(d,{languageName:g}){typeof d=="string"&&(d=[d]),d.forEach(y=>{t[y.toLowerCase()]=g})}function it(d){const g=U(d);return g&&!g.disableAutodetect}function zt(d){d["before:highlightBlock"]&&!d["before:highlightElement"]&&(d["before:highlightElement"]=g=>{d["before:highlightBlock"](Object.assign({block:g.el},g))}),d["after:highlightBlock"]&&!d["after:highlightElement"]&&(d["after:highlightElement"]=g=>{d["after:highlightBlock"](Object.assign({block:g.el},g))})}function Bt(d){zt(d),i.push(d)}function Ut(d){const g=i.indexOf(d);g!==-1&&i.splice(g,1)}function de(d,g){const y=d;i.forEach(function(S){S[y]&&S[y](g)})}function Ft(d){return Se("10.7.0","highlightBlock will be removed entirely in v12.0"),Se("10.7.0","Please use highlightElement now."),_(d)}Object.assign(n,{highlight:u,highlightAuto:E,highlightAll:I,highlightElement:_,highlightBlock:Ft,configure:m,initHighlighting:D,initHighlightingOnLoad:H,registerLanguage:Te,unregisterLanguage:Ee,listLanguages:X,getLanguage:U,registerAliases:ue,autoDetection:it,inherit:Nn,addPlugin:Bt,removePlugin:Ut}),n.debugMode=function(){s=!1},n.safeMode=function(){s=!0},n.versionString=Yl,n.regex={concat:xe,lookahead:Cs,either:zi,optional:fl,anyNumberOfTimes:pl};for(const d in mt)typeof mt[d]=="object"&&$s(mt[d]);return Object.assign(n,mt),n},Ne=Is({});Ne.newInstance=()=>Is({});var tc=Ne;Ne.HighlightJS=Ne;Ne.default=Ne;const Dt=ll(tc),Ct="[A-Za-z$_][0-9A-Za-z$_]*",js=["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"],Ds=["true","false","null","undefined","NaN","Infinity"],zs=["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"],Bs=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],Us=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],Fs=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],Hs=[].concat(Us,zs,Bs);function ic(n){const e=n.regex,t=(d,{after:g})=>{const y="</"+d[0].slice(1);return d.input.indexOf(y,g)!==-1},i=Ct,s={begin:"<>",end:"</>"},o=/<[A-Za-z0-9\\._:-]+\s*\/>/,r={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(d,g)=>{const y=d[0].length+d.index,S=d.input[y];if(S==="<"||S===","){g.ignoreMatch();return}S===">"&&(t(d,{after:y})||g.ignoreMatch());let N;const V=d.input.substring(y);if(N=V.match(/^\s*=/)){g.ignoreMatch();return}if((N=V.match(/^\s+extends\s+/))&&N.index===0){g.ignoreMatch();return}}},a={$pattern:Ct,keyword:js,literal:Ds,built_in:Hs,"variable.language":Fs},l="[0-9](_?[0-9])*",c=`\\.(${l})`,u="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",h={className:"number",variants:[{begin:`(\\b(${u})((${c})|\\.)?|(${c}))[eE][+-]?(${l})\\b`},{begin:`\\b(${u})\\b((${c})\\b|\\.)?|(${c})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},p={className:"subst",begin:"\\$\\{",end:"\\}",keywords:a,contains:[]},E={begin:"html`",end:"",starts:{end:"`",returnEnd:!1,contains:[n.BACKSLASH_ESCAPE,p],subLanguage:"xml"}},k={begin:"css`",end:"",starts:{end:"`",returnEnd:!1,contains:[n.BACKSLASH_ESCAPE,p],subLanguage:"css"}},_={begin:"gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[n.BACKSLASH_ESCAPE,p],subLanguage:"graphql"}},m={className:"string",begin:"`",end:"`",contains:[n.BACKSLASH_ESCAPE,p]},D={className:"comment",variants:[n.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}]}]}),n.C_BLOCK_COMMENT_MODE,n.C_LINE_COMMENT_MODE]},H=[n.APOS_STRING_MODE,n.QUOTE_STRING_MODE,E,k,_,m,{match:/\$\d+/},h];p.contains=H.concat({begin:/\{/,end:/\}/,keywords:a,contains:["self"].concat(H)});const W=[].concat(D,p.contains),I=W.concat([{begin:/\(/,end:/\)/,keywords:a,contains:["self"].concat(W)}]),ie={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:a,contains:I},Te={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"}}]},Ee={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:{_:[...zs,...Bs]}},X={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:[ie],illegal:/%/},ue={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function it(d){return e.concat("(?!",d.join("|"),")")}const zt={match:e.concat(/\b/,it([...Us,"super","import"]),i,e.lookahead(/\(/)),className:"title.function",relevance:0},Bt={begin:e.concat(/\./,e.lookahead(e.concat(i,/(?![0-9A-Za-z$_(])/))),end:i,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},Ut={match:[/get|set/,/\s+/,i,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},ie]},de="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+n.UNDERSCORE_IDENT_RE+")\\s*=>",Ft={match:[/const|var|let/,/\s+/,i,/\s*/,/=\s*/,/(async\s*)?/,e.lookahead(de)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[ie]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:a,exports:{PARAMS_CONTAINS:I,CLASS_REFERENCE:Ee},illegal:/#(?![$_A-z])/,contains:[n.SHEBANG({label:"shebang",binary:"node",relevance:5}),X,n.APOS_STRING_MODE,n.QUOTE_STRING_MODE,E,k,_,m,D,{match:/\$\d+/},h,Ee,{className:"attr",begin:i+e.lookahead(":"),relevance:0},Ft,{begin:"("+n.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[D,n.REGEXP_MODE,{className:"function",begin:de,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:n.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:a,contains:I}]}]},{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"]}]}]},U,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+n.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[ie,n.inherit(n.TITLE_MODE,{begin:i,className:"title.function"})]},{match:/\.\.\./,relevance:0},Bt,{match:"\\$"+i,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[ie]},zt,ue,Te,Ut,{match:/\$[(.]/}]}}function nc(n){const e=ic(n),t=Ct,i=["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:i},contains:[e.exports.CLASS_REFERENCE]},r={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},a=["type","namespace","interface","public","private","protected","implements","declare","abstract","readonly","enum","override"],l={$pattern:Ct,keyword:js.concat(a),literal:Ds,built_in:Hs.concat(i),"variable.language":Fs},c={className:"meta",begin:"@"+t},u=(p,E,k)=>{const _=p.contains.findIndex(m=>m.label===E);if(_===-1)throw new Error("can not find mode to replace");p.contains.splice(_,1,k)};Object.assign(e.keywords,l),e.exports.PARAMS_CONTAINS.push(c),e.contains=e.contains.concat([c,s,o]),u(e,"shebang",n.SHEBANG()),u(e,"use_strict",r);const h=e.contains.find(p=>p.label==="func.def");return h.relevance=0,Object.assign(e,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),e}function sc(n){const e=n.regex,t=e.concat(/[\p{L}_]/u,e.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),i=/[\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=n.inherit(o,{begin:/\(/,end:/\)/}),a=n.inherit(n.APOS_STRING_MODE,{className:"string"}),l=n.inherit(n.QUOTE_STRING_MODE,{className:"string"}),c={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:[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,l,a,r,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[o,r,l,a]}]}]},n.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},s,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[l]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[c],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[c],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:e.concat(/</,e.lookahead(e.concat(t,e.either(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:t,relevance:0,starts:c}]},{className:"tag",begin:e.concat(/<\//,e.lookahead(e.concat(t,/>/))),contains:[{className:"name",begin:t,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}const rc=n=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:n.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:[n.APOS_STRING_MODE,n.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:n.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_-]*/}}),oc=["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"],ac=["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"],lc=["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"],cc=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],uc=["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 dc(n){const e=n.regex,t=rc(n),i={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},s="and or not only",o=/@-?\w[\w]*(-\w+)*/,r="[a-zA-Z-][a-zA-Z0-9_-]*",a=[n.APOS_STRING_MODE,n.QUOTE_STRING_MODE];return{name:"CSS",case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"},classNameAliases:{keyframePosition:"selector-tag"},contains:[t.BLOCK_COMMENT,i,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:":("+lc.join("|")+")"},{begin:":(:)?("+cc.join("|")+")"}]},t.CSS_VARIABLE,{className:"attribute",begin:"\\b("+uc.join("|")+")\\b"},{begin:/:/,end:/[;}{]/,contains:[t.BLOCK_COMMENT,t.HEXCOLOR,t.IMPORTANT,t.CSS_NUMBER_MODE,...a,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[...a,{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},t.FUNCTION_DISPATCH]},{begin:e.lookahead(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:o},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:s,attribute:ac.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...a,t.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+oc.join("|")+")\\b"}]}}const Vs=document.createElement("style");Vs.innerText=[ol,al].join(`
|
|
453
|
-
`);document.head.appendChild(
|
|
454
|
-
`).trim();return
|
|
448
|
+
`)&&(u=`\r
|
|
449
|
+
`),this.css+=u+"/*# sourceMappingURL="+c+" */"}applyPrevMaps(){for(let c of this.previous()){let u=this.toUrl(this.path(c.file)),p=c.root||t(c.file),f;this.mapOpts.sourcesContent===!1?(f=new n(c.text),f.sourcesContent&&(f.sourcesContent=null)):f=c.consumer(),this.map.applySourceMap(f,u,this.toUrl(this.path(p)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let c;for(let u=this.root.nodes.length-1;u>=0;u--)c=this.root.nodes[u],c.type==="comment"&&c.text.startsWith("# sourceMappingURL=")&&this.root.removeChild(u)}else this.css&&(this.css=this.css.replace(/\n*\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),h&&g&&this.isMap())return this.generateMap();{let c="";return this.stringify(this.root,u=>{c+=u}),[c]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let c=this.previous()[0].consumer();c.file=this.outputFile(),this.map=s.fromSourceMap(c,{ignoreInvalidMapping:!0})}else this.map=new s({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 s({file:this.outputFile(),ignoreInvalidMapping:!0});let c=1,u=1,p="<no source>",f={generated:{column:0,line:0},original:{column:0,line:0},source:""},b,x;this.stringify(this.root,(_,w,y)=>{if(this.css+=_,w&&y!=="end"&&(f.generated.line=c,f.generated.column=u-1,w.source&&w.source.start?(f.source=this.sourcePath(w),f.original.line=w.source.start.line,f.original.column=w.source.start.column-1,this.map.addMapping(f)):(f.source=p,f.original.line=1,f.original.column=0,this.map.addMapping(f))),x=_.match(/\n/g),x?(c+=x.length,b=_.lastIndexOf(`
|
|
450
|
+
`),u=_.length-b):u+=_.length,w&&y!=="start"){let v=w.parent||{raws:{}};(!(w.type==="decl"||w.type==="atrule"&&!w.nodes)||w!==v.last||v.raws.semicolon)&&(w.source&&w.source.end?(f.source=this.sourcePath(w),f.original.line=w.source.end.line,f.original.column=w.source.end.column-1,f.generated.line=c,f.generated.column=u-2,this.map.addMapping(f)):(f.source=p,f.original.line=1,f.original.column=0,f.generated.line=c,f.generated.column=u-1,this.map.addMapping(f)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(c=>c.annotation):!0}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let c=this.mapOpts.annotation;return typeof c<"u"&&c!==!0?!1:this.previous().length?this.previous().some(u=>u.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(c=>c.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(c){if(this.mapOpts.absolute||c.charCodeAt(0)===60||/^\w+:\/\//.test(c))return c;let u=this.memoizedPaths.get(c);if(u)return u;let p=this.opts.to?t(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(p=t(i(p,this.mapOpts.annotation)));let f=e(p,c);return this.memoizedPaths.set(c,f),f}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(c=>{if(c.source&&c.source.input.map){let u=c.source.input.map;this.previousMaps.includes(u)||this.previousMaps.push(u)}});else{let c=new d(this.originalCSS,this.opts);c.map&&this.previousMaps.push(c.map)}return this.previousMaps}setSourcesContent(){let c={};if(this.root)this.root.walk(u=>{if(u.source){let p=u.source.input.from;if(p&&!c[p]){c[p]=!0;let f=this.usesFileUrls?this.toFileUrl(p):this.toUrl(this.path(p));this.map.setSourceContent(f,u.source.input.css)}}});else if(this.css){let u=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(u,this.css)}}sourcePath(c){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(c.source.input.from):this.toUrl(this.path(c.source.input.from))}toBase64(c){return Buffer?Buffer.from(c).toString("base64"):window.btoa(unescape(encodeURIComponent(c)))}toFileUrl(c){let u=this.memoizedFileURLs.get(c);if(u)return u;if(a){let p=a(c).toString();return this.memoizedFileURLs.set(c,p),p}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(c){let u=this.memoizedURLs.get(c);if(u)return u;r==="\\"&&(c=c.replace(/\\/g,"/"));let p=encodeURI(c).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(c,p),p}}return gi=o,gi}var bi,Dn;function Ao(){if(Dn)return bi;Dn=1;const t=39,e=34,i=92,r=47,n=10,s=32,a=12,d=9,g=13,h=91,o=93,l=40,c=41,u=123,p=125,f=59,b=42,x=58,_=64,w=/[\t\n\f\r "#'()/;[\\\]{}]/g,y=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,v=/.[\r\n"'(/\\]/,S=/[\da-f]/i;return bi=function(L,B={}){let N=L.css.valueOf(),J=B.ignoreErrors,H,Me,pe,R,Fe,G,ie,ue,he,Ae,Pe=N.length,j=0,Ye=[],He=[];function Bt(){return j}function Qe(Ce){throw L.error("Unclosed "+Ce,j)}function Ut(){return He.length===0&&j>=Pe}function Ve(Ce){if(He.length)return He.pop();if(j>=Pe)return;let et=Ce?Ce.ignoreUnclosed:!1;switch(H=N.charCodeAt(j),H){case n:case s:case d:case g:case a:{R=j;do R+=1,H=N.charCodeAt(R);while(H===s||H===n||H===d||H===g||H===a);G=["space",N.slice(j,R)],j=R-1;break}case h:case o:case u:case p:case x:case f:case c:{let pt=String.fromCharCode(H);G=[pt,pt,j];break}case l:{if(Ae=Ye.length?Ye.pop()[1]:"",he=N.charCodeAt(j+1),Ae==="url"&&he!==t&&he!==e&&he!==s&&he!==n&&he!==d&&he!==a&&he!==g){R=j;do{if(ie=!1,R=N.indexOf(")",R+1),R===-1)if(J||et){R=j;break}else Qe("bracket");for(ue=R;N.charCodeAt(ue-1)===i;)ue-=1,ie=!ie}while(ie);G=["brackets",N.slice(j,R+1),j,R],j=R}else R=N.indexOf(")",j+1),Me=N.slice(j,R+1),R===-1||v.test(Me)?G=["(","(",j]:(G=["brackets",Me,j,R],j=R);break}case t:case e:{Fe=H===t?"'":'"',R=j;do{if(ie=!1,R=N.indexOf(Fe,R+1),R===-1)if(J||et){R=j+1;break}else Qe("string");for(ue=R;N.charCodeAt(ue-1)===i;)ue-=1,ie=!ie}while(ie);G=["string",N.slice(j,R+1),j,R],j=R;break}case _:{w.lastIndex=j+1,w.test(N),w.lastIndex===0?R=N.length-1:R=w.lastIndex-2,G=["at-word",N.slice(j,R+1),j,R],j=R;break}case i:{for(R=j,pe=!0;N.charCodeAt(R+1)===i;)R+=1,pe=!pe;if(H=N.charCodeAt(R+1),pe&&H!==r&&H!==s&&H!==n&&H!==d&&H!==g&&H!==a&&(R+=1,S.test(N.charAt(R)))){for(;S.test(N.charAt(R+1));)R+=1;N.charCodeAt(R+1)===s&&(R+=1)}G=["word",N.slice(j,R+1),j,R],j=R;break}default:{H===r&&N.charCodeAt(j+1)===b?(R=N.indexOf("*/",j+2)+1,R===0&&(J||et?R=N.length:Qe("comment")),G=["comment",N.slice(j,R+1),j,R],j=R):(y.lastIndex=j+1,y.test(N),y.lastIndex===0?R=N.length-1:R=y.lastIndex-2,G=["word",N.slice(j,R+1),j,R],Ye.push(G),j=R);break}}return j++,G}function qt(Ce){He.push(Ce)}return{back:qt,endOfFile:Ut,nextToken:Ve,position:Bt}},bi}var vi,zn;function Co(){if(zn)return vi;zn=1;let t=Di(),e=It(),i=jt(),r=ft(),n=Bi(),s=Ao();const a={empty:!0,space:!0};function d(h){for(let o=h.length-1;o>=0;o--){let l=h[o],c=l[3]||l[2];if(c)return c}}class g{constructor(o){this.input=o,this.root=new r,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:o,start:{column:1,line:1,offset:0}}}atrule(o){let l=new t;l.name=o[1].slice(1),l.name===""&&this.unnamedAtrule(l,o),this.init(l,o[2]);let c,u,p,f=!1,b=!1,x=[],_=[];for(;!this.tokenizer.endOfFile();){if(o=this.tokenizer.nextToken(),c=o[0],c==="("||c==="["?_.push(c==="("?")":"]"):c==="{"&&_.length>0?_.push("}"):c===_[_.length-1]&&_.pop(),_.length===0)if(c===";"){l.source.end=this.getPosition(o[2]),l.source.end.offset++,this.semicolon=!0;break}else if(c==="{"){b=!0;break}else if(c==="}"){if(x.length>0){for(p=x.length-1,u=x[p];u&&u[0]==="space";)u=x[--p];u&&(l.source.end=this.getPosition(u[3]||u[2]),l.source.end.offset++)}this.end(o);break}else x.push(o);else x.push(o);if(this.tokenizer.endOfFile()){f=!0;break}}l.raws.between=this.spacesAndCommentsFromEnd(x),x.length?(l.raws.afterName=this.spacesAndCommentsFromStart(x),this.raw(l,"params",x),f&&(o=x[x.length-1],l.source.end=this.getPosition(o[3]||o[2]),l.source.end.offset++,this.spaces=l.raws.between,l.raws.between="")):(l.raws.afterName="",l.params=""),b&&(l.nodes=[],this.current=l)}checkMissedSemicolon(o){let l=this.colon(o);if(l===!1)return;let c=0,u;for(let p=l-1;p>=0&&(u=o[p],!(u[0]!=="space"&&(c+=1,c===2)));p--);throw this.input.error("Missed semicolon",u[0]==="word"?u[3]+1:u[2])}colon(o){let l=0,c,u,p;for(let[f,b]of o.entries()){if(u=b,p=u[0],p==="("&&(l+=1),p===")"&&(l-=1),l===0&&p===":")if(!c)this.doubleColon(u);else{if(c[0]==="word"&&c[1]==="progid")continue;return f}c=u}return!1}comment(o){let l=new e;this.init(l,o[2]),l.source.end=this.getPosition(o[3]||o[2]),l.source.end.offset++;let c=o[1].slice(2,-2);if(/^\s*$/.test(c))l.text="",l.raws.left=c,l.raws.right="";else{let u=c.match(/^(\s*)([^]*\S)(\s*)$/);l.text=u[2],l.raws.left=u[1],l.raws.right=u[3]}}createTokenizer(){this.tokenizer=s(this.input)}decl(o,l){let c=new i;this.init(c,o[0][2]);let u=o[o.length-1];for(u[0]===";"&&(this.semicolon=!0,o.pop()),c.source.end=this.getPosition(u[3]||u[2]||d(o)),c.source.end.offset++;o[0][0]!=="word";)o.length===1&&this.unknownWord(o),c.raws.before+=o.shift()[1];for(c.source.start=this.getPosition(o[0][2]),c.prop="";o.length;){let _=o[0][0];if(_===":"||_==="space"||_==="comment")break;c.prop+=o.shift()[1]}c.raws.between="";let p;for(;o.length;)if(p=o.shift(),p[0]===":"){c.raws.between+=p[1];break}else p[0]==="word"&&/\w/.test(p[1])&&this.unknownWord([p]),c.raws.between+=p[1];(c.prop[0]==="_"||c.prop[0]==="*")&&(c.raws.before+=c.prop[0],c.prop=c.prop.slice(1));let f=[],b;for(;o.length&&(b=o[0][0],!(b!=="space"&&b!=="comment"));)f.push(o.shift());this.precheckMissedSemicolon(o);for(let _=o.length-1;_>=0;_--){if(p=o[_],p[1].toLowerCase()==="!important"){c.important=!0;let w=this.stringFrom(o,_);w=this.spacesFromEnd(o)+w,w!==" !important"&&(c.raws.important=w);break}else if(p[1].toLowerCase()==="important"){let w=o.slice(0),y="";for(let v=_;v>0;v--){let S=w[v][0];if(y.trim().startsWith("!")&&S!=="space")break;y=w.pop()[1]+y}y.trim().startsWith("!")&&(c.important=!0,c.raws.important=y,o=w)}if(p[0]!=="space"&&p[0]!=="comment")break}o.some(_=>_[0]!=="space"&&_[0]!=="comment")&&(c.raws.between+=f.map(_=>_[1]).join(""),f=[]),this.raw(c,"value",f.concat(o),l),c.value.includes(":")&&!l&&this.checkMissedSemicolon(o)}doubleColon(o){throw this.input.error("Double colon",{offset:o[2]},{offset:o[2]+o[1].length})}emptyRule(o){let l=new n;this.init(l,o[2]),l.selector="",l.raws.between="",this.current=l}end(o){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(o[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(o)}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(o){if(this.spaces+=o[1],this.current.nodes){let l=this.current.nodes[this.current.nodes.length-1];l&&l.type==="rule"&&!l.raws.ownSemicolon&&(l.raws.ownSemicolon=this.spaces,this.spaces="",l.source.end=this.getPosition(o[2]),l.source.end.offset+=l.raws.ownSemicolon.length)}}getPosition(o){let l=this.input.fromOffset(o);return{column:l.col,line:l.line,offset:o}}init(o,l){this.current.push(o),o.source={input:this.input,start:this.getPosition(l)},o.raws.before=this.spaces,this.spaces="",o.type!=="comment"&&(this.semicolon=!1)}other(o){let l=!1,c=null,u=!1,p=null,f=[],b=o[1].startsWith("--"),x=[],_=o;for(;_;){if(c=_[0],x.push(_),c==="("||c==="[")p||(p=_),f.push(c==="("?")":"]");else if(b&&u&&c==="{")p||(p=_),f.push("}");else if(f.length===0)if(c===";")if(u){this.decl(x,b);return}else break;else if(c==="{"){this.rule(x);return}else if(c==="}"){this.tokenizer.back(x.pop()),l=!0;break}else c===":"&&(u=!0);else c===f[f.length-1]&&(f.pop(),f.length===0&&(p=null));_=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(l=!0),f.length>0&&this.unclosedBracket(p),l&&u){if(!b)for(;x.length&&(_=x[x.length-1][0],!(_!=="space"&&_!=="comment"));)this.tokenizer.back(x.pop());this.decl(x,b)}else this.unknownWord(x)}parse(){let o;for(;!this.tokenizer.endOfFile();)switch(o=this.tokenizer.nextToken(),o[0]){case"space":this.spaces+=o[1];break;case";":this.freeSemicolon(o);break;case"}":this.end(o);break;case"comment":this.comment(o);break;case"at-word":this.atrule(o);break;case"{":this.emptyRule(o);break;default:this.other(o);break}this.endFile()}precheckMissedSemicolon(){}raw(o,l,c,u){let p,f,b=c.length,x="",_=!0,w,y;for(let v=0;v<b;v+=1)p=c[v],f=p[0],f==="space"&&v===b-1&&!u?_=!1:f==="comment"?(y=c[v-1]?c[v-1][0]:"empty",w=c[v+1]?c[v+1][0]:"empty",!a[y]&&!a[w]?x.slice(-1)===","?_=!1:x+=p[1]:_=!1):x+=p[1];if(!_){let v=c.reduce((S,k)=>S+k[1],"");o.raws[l]={raw:v,value:x}}o[l]=x}rule(o){o.pop();let l=new n;this.init(l,o[0][2]),l.raws.between=this.spacesAndCommentsFromEnd(o),this.raw(l,"selector",o),this.current=l}spacesAndCommentsFromEnd(o){let l,c="";for(;o.length&&(l=o[o.length-1][0],!(l!=="space"&&l!=="comment"));)c=o.pop()[1]+c;return c}spacesAndCommentsFromStart(o){let l,c="";for(;o.length&&(l=o[0][0],!(l!=="space"&&l!=="comment"));)c+=o.shift()[1];return c}spacesFromEnd(o){let l,c="";for(;o.length&&(l=o[o.length-1][0],l==="space");)c=o.pop()[1]+c;return c}stringFrom(o,l){let c="";for(let u=l;u<o.length;u++)c+=o[u][1];return o.splice(l,o.length-l),c}unclosedBlock(){let o=this.current.source.start;throw this.input.error("Unclosed block",o.line,o.column)}unclosedBracket(o){throw this.input.error("Unclosed bracket",{offset:o[2]},{offset:o[2]+1})}unexpectedClose(o){throw this.input.error("Unexpected }",{offset:o[2]},{offset:o[2]+1})}unknownWord(o){throw this.input.error("Unknown word "+o[0][1],{offset:o[0][2]},{offset:o[0][2]+o[0][1].length})}unnamedAtrule(o,l){throw this.input.error("At-rule without name",{offset:l[2]},{offset:l[2]+l[1].length})}}return vi=g,vi}var yi,Bn;function Ui(){if(Bn)return yi;Bn=1;let t=qe(),e=Dt(),i=Co();function r(n,s){let a=new e(n,s),d=new i(a);try{d.parse()}catch(g){throw g}return d.root}return yi=r,r.default=r,t.registerParse(r),yi}var wi,Un;function ar(){if(Un)return wi;Un=1;class t{constructor(i,r={}){if(this.type="warning",this.text=i,r.node&&r.node.source){let n=r.node.rangeBy(r);this.line=n.start.line,this.column=n.start.column,this.endLine=n.end.line,this.endColumn=n.end.column}for(let n in r)this[n]=r[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}}return wi=t,t.default=t,wi}var xi,qn;function qi(){if(qn)return xi;qn=1;let t=ar();class e{get content(){return this.css}constructor(r,n,s){this.processor=r,this.messages=[],this.root=n,this.opts=s,this.css="",this.map=void 0}toString(){return this.css}warn(r,n={}){n.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(n.plugin=this.lastPlugin.postcssPlugin);let s=new t(r,n);return this.messages.push(s),s}warnings(){return this.messages.filter(r=>r.type==="warning")}}return xi=e,e.default=e,xi}var Ei,Fn;function lr(){if(Fn)return Ei;Fn=1;let t=qe(),e=zi(),i=or(),r=Ui(),n=qi(),s=ft(),a=Tt(),{isClean:d,my:g}=ji();const h={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},o={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},l={Once:!0,postcssPlugin:!0,prepare:!0},c=0;function u(w){return typeof w=="object"&&typeof w.then=="function"}function p(w){let y=!1,v=h[w.type];return w.type==="decl"?y=w.prop.toLowerCase():w.type==="atrule"&&(y=w.name.toLowerCase()),y&&w.append?[v,v+"-"+y,c,v+"Exit",v+"Exit-"+y]:y?[v,v+"-"+y,v+"Exit",v+"Exit-"+y]:w.append?[v,c,v+"Exit"]:[v,v+"Exit"]}function f(w){let y;return w.type==="document"?y=["Document",c,"DocumentExit"]:w.type==="root"?y=["Root",c,"RootExit"]:y=p(w),{eventIndex:0,events:y,iterator:0,node:w,visitorIndex:0,visitors:[]}}function b(w){return w[d]=!1,w.nodes&&w.nodes.forEach(y=>b(y)),w}let x={};class _{get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}constructor(y,v,S){this.stringified=!1,this.processed=!1;let k;if(typeof v=="object"&&v!==null&&(v.type==="root"||v.type==="document"))k=b(v);else if(v instanceof _||v instanceof n)k=b(v.root),v.map&&(typeof S.map>"u"&&(S.map={}),S.map.inline||(S.map.inline=!1),S.map.prev=v.map);else{let L=r;S.syntax&&(L=S.syntax.parse),S.parser&&(L=S.parser),L.parse&&(L=L.parse);try{k=L(v,S)}catch(B){this.processed=!0,this.error=B}k&&!k[g]&&t.rebuild(k)}this.result=new n(y,k,S),this.helpers={...x,postcss:x,result:this.result},this.plugins=this.processor.plugins.map(L=>typeof L=="object"&&L.prepare?{...L,...L.prepare(this.result)}:L)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(y){return this.async().catch(y)}finally(y){return this.async().then(y,y)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(y,v){let S=this.result.lastPlugin;try{v&&v.addToError(y),this.error=y,y.name==="CssSyntaxError"&&!y.plugin?(y.plugin=S.postcssPlugin,y.setMessage()):S.postcssVersion}catch(k){console&&console.error&&console.error(k)}return y}prepareVisitors(){this.listeners={};let y=(v,S,k)=>{this.listeners[S]||(this.listeners[S]=[]),this.listeners[S].push([v,k])};for(let v of this.plugins)if(typeof v=="object")for(let S in v){if(!o[S]&&/^[A-Z]/.test(S))throw new Error(`Unknown event ${S} in ${v.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!l[S])if(typeof v[S]=="object")for(let k in v[S])k==="*"?y(v,S,v[S][k]):y(v,S+"-"+k.toLowerCase(),v[S][k]);else typeof v[S]=="function"&&y(v,S,v[S])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let y=0;y<this.plugins.length;y++){let v=this.plugins[y],S=this.runOnRoot(v);if(u(S))try{await S}catch(k){throw this.handleError(k)}}if(this.prepareVisitors(),this.hasListener){let y=this.result.root;for(;!y[d];){y[d]=!0;let v=[f(y)];for(;v.length>0;){let S=this.visitTick(v);if(u(S))try{await S}catch(k){let L=v[v.length-1].node;throw this.handleError(k,L)}}}if(this.listeners.OnceExit)for(let[v,S]of this.listeners.OnceExit){this.result.lastPlugin=v;try{if(y.type==="document"){let k=y.nodes.map(L=>S(L,this.helpers));await Promise.all(k)}else await S(y,this.helpers)}catch(k){throw this.handleError(k)}}}return this.processed=!0,this.stringify()}runOnRoot(y){this.result.lastPlugin=y;try{if(typeof y=="object"&&y.Once){if(this.result.root.type==="document"){let v=this.result.root.nodes.map(S=>y.Once(S,this.helpers));return u(v[0])?Promise.all(v):v}return y.Once(this.result.root,this.helpers)}else if(typeof y=="function")return y(this.result.root,this.result)}catch(v){throw this.handleError(v)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let y=this.result.opts,v=a;y.syntax&&(v=y.syntax.stringify),y.stringifier&&(v=y.stringifier),v.stringify&&(v=v.stringify);let k=new i(v,this.result.root,this.result.opts).generate();return this.result.css=k[0],this.result.map=k[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let y of this.plugins){let v=this.runOnRoot(y);if(u(v))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let y=this.result.root;for(;!y[d];)y[d]=!0,this.walkSync(y);if(this.listeners.OnceExit)if(y.type==="document")for(let v of y.nodes)this.visitSync(this.listeners.OnceExit,v);else this.visitSync(this.listeners.OnceExit,y)}return this.result}then(y,v){return this.async().then(y,v)}toString(){return this.css}visitSync(y,v){for(let[S,k]of y){this.result.lastPlugin=S;let L;try{L=k(v,this.helpers)}catch(B){throw this.handleError(B,v.proxyOf)}if(v.type!=="root"&&v.type!=="document"&&!v.parent)return!0;if(u(L))throw this.getAsyncError()}}visitTick(y){let v=y[y.length-1],{node:S,visitors:k}=v;if(S.type!=="root"&&S.type!=="document"&&!S.parent){y.pop();return}if(k.length>0&&v.visitorIndex<k.length){let[B,N]=k[v.visitorIndex];v.visitorIndex+=1,v.visitorIndex===k.length&&(v.visitors=[],v.visitorIndex=0),this.result.lastPlugin=B;try{return N(S.toProxy(),this.helpers)}catch(J){throw this.handleError(J,S)}}if(v.iterator!==0){let B=v.iterator,N;for(;N=S.nodes[S.indexes[B]];)if(S.indexes[B]+=1,!N[d]){N[d]=!0,y.push(f(N));return}v.iterator=0,delete S.indexes[B]}let L=v.events;for(;v.eventIndex<L.length;){let B=L[v.eventIndex];if(v.eventIndex+=1,B===c){S.nodes&&S.nodes.length&&(S[d]=!0,v.iterator=S.getIterator());return}else if(this.listeners[B]){v.visitors=this.listeners[B];return}}y.pop()}walkSync(y){y[d]=!0;let v=p(y);for(let S of v)if(S===c)y.nodes&&y.each(k=>{k[d]||this.walkSync(k)});else{let k=this.listeners[S];if(k&&this.visitSync(k,y.toProxy()))return}}warnings(){return this.sync().warnings()}}return _.registerPostcss=w=>{x=w},Ei=_,_.default=_,s.registerLazyResult(_),e.registerLazyResult(_),Ei}var _i,Hn;function $o(){if(Hn)return _i;Hn=1;let t=or(),e=Ui();const i=qi();let r=Tt();class n{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 a,d=e;try{a=d(this._css,this._opts)}catch(g){this.error=g}if(this.error)throw this.error;return this._root=a,a}get[Symbol.toStringTag](){return"NoWorkResult"}constructor(a,d,g){d=d.toString(),this.stringified=!1,this._processor=a,this._css=d,this._opts=g,this._map=void 0;let h,o=r;this.result=new i(this._processor,h,this._opts),this.result.css=d;let l=this;Object.defineProperty(this.result,"root",{get(){return l.root}});let c=new t(o,h,this._opts,d);if(c.isMap()){let[u,p]=c.generate();u&&(this.result.css=u),p&&(this.result.map=p)}else c.clearAnnotation(),this.result.css=c.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(a){return this.async().catch(a)}finally(a){return this.async().then(a,a)}sync(){if(this.error)throw this.error;return this.result}then(a,d){return this.async().then(a,d)}toString(){return this._css}warnings(){return[]}}return _i=n,n.default=n,_i}var Si,Vn;function ko(){if(Vn)return Si;Vn=1;let t=zi(),e=lr(),i=$o(),r=ft();class n{constructor(a=[]){this.version="8.5.6",this.plugins=this.normalize(a)}normalize(a){let d=[];for(let g of a)if(g.postcss===!0?g=g():g.postcss&&(g=g.postcss),typeof g=="object"&&Array.isArray(g.plugins))d=d.concat(g.plugins);else if(typeof g=="object"&&g.postcssPlugin)d.push(g);else if(typeof g=="function")d.push(g);else if(!(typeof g=="object"&&(g.parse||g.stringify)))throw new Error(g+" is not a PostCSS plugin");return d}process(a,d={}){return!this.plugins.length&&!d.parser&&!d.stringifier&&!d.syntax?new i(this,a,d):new e(this,a,d)}use(a){return this.plugins=this.plugins.concat(this.normalize([a])),this}}return Si=n,n.default=n,r.registerProcessor(n),t.registerProcessor(n),Si}var Ai,Wn;function Oo(){if(Wn)return Ai;Wn=1;var t={};let e=Di(),i=It(),r=qe(),n=Ii(),s=jt(),a=zi(),d=So(),g=Dt(),h=lr(),o=sr(),l=Lt(),c=Ui(),u=ko(),p=qi(),f=ft(),b=Bi(),x=Tt(),_=ar();function w(...y){return y.length===1&&Array.isArray(y[0])&&(y=y[0]),new u(y)}return w.plugin=function(v,S){let k=!1;function L(...N){console&&console.warn&&!k&&(k=!0,console.warn(v+`: postcss.plugin was deprecated. Migration guide:
|
|
451
|
+
https://evilmartians.com/chronicles/postcss-8-plugin-migration`),t.LANG&&t.LANG.startsWith("cn")&&console.warn(v+`: 里面 postcss.plugin 被弃用. 迁移指南:
|
|
452
|
+
https://www.w3ctech.com/topic/2226`));let J=S(...N);return J.postcssPlugin=v,J.postcssVersion=new u().version,J}let B;return Object.defineProperty(L,"postcss",{get(){return B||(B=L()),B}}),L.process=function(N,J,H){return w([L(H)]).process(N,J)},L},w.stringify=x,w.parse=c,w.fromJSON=d,w.list=o,w.comment=y=>new i(y),w.atRule=y=>new e(y),w.decl=y=>new s(y),w.rule=y=>new b(y),w.root=y=>new f(y),w.document=y=>new a(y),w.CssSyntaxError=n,w.Declaration=s,w.Container=r,w.Processor=u,w.Document=a,w.Comment=i,w.Warning=_,w.AtRule=e,w.Result=p,w.Input=g,w.Rule=b,w.Root=f,w.Node=l,h.registerPostcss(w),Ai=w,w.default=w,Ai}var Ro=Oo();const X=ir(Ro);X.stringify;X.fromJSON;X.plugin;X.parse;X.list;X.document;X.comment;X.atRule;X.rule;X.decl;X.root;X.CssSyntaxError;X.Declaration;X.Container;X.Processor;X.Document;X.Comment;X.Warning;X.AtRule;X.Result;X.Input;X.Rule;X.Root;X.Node;var Ci,Gn;function Mo(){if(Gn)return Ci;Gn=1;const t=(r={})=>{const n=r.prefix,s=/\s+$/.test(n)?n:`${n} `,a=r.ignoreFiles?[].concat(r.ignoreFiles):[],d=r.includeFiles?[].concat(r.includeFiles):[];return{postcssPlugin:"postcss-prefix-selector",prepare(g){const h=g.root,o=h.source.input.file;if(!(a.length&&o&&e(o,a))&&!(d.length&&o&&!e(o,d)))return{Rule(l,{result:c}){const u=["keyframes","-webkit-keyframes","-moz-keyframes","-o-keyframes","-ms-keyframes"];l.parent&&u.includes(l.parent.name)||(l.selectors=l.selectors.map(p=>r.exclude&&i(p,r.exclude)?p:r.transform?r.transform(n,p,s+p,h.source.input.file,l):[":root","body","html"].some(f=>p.startsWith(f))?r.skipGlobalSelectors?p:p.replace(/(html\s+body|:root\s+body|html|:root|body)/gm,n):s+p))}}}}};function e(r,n){return n.some(s=>s instanceof RegExp?s.test(r):r.includes(s))}function i(r,n){return n.some(s=>s instanceof RegExp?s.test(r):r===s)}return t.postcss=!0,Ci=t,Ci}var Po=Mo();const No=ir(Po),To="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}",Lo="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 Io(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var $i,Zn;function jo(){if(Zn)return $i;Zn=1;function t(m){return m instanceof Map?m.clear=m.delete=m.set=function(){throw new Error("map is read-only")}:m instanceof Set&&(m.add=m.clear=m.delete=function(){throw new Error("set is read-only")}),Object.freeze(m),Object.getOwnPropertyNames(m).forEach(E=>{const $=m[E],z=typeof $;(z==="object"||z==="function")&&!Object.isFrozen($)&&t($)}),m}class e{constructor(E){E.data===void 0&&(E.data={}),this.data=E.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function i(m){return m.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function r(m,...E){const $=Object.create(null);for(const z in m)$[z]=m[z];return E.forEach(function(z){for(const ee in z)$[ee]=z[ee]}),$}const n="</span>",s=m=>!!m.scope,a=(m,{prefix:E})=>{if(m.startsWith("language:"))return m.replace("language:","language-");if(m.includes(".")){const $=m.split(".");return[`${E}${$.shift()}`,...$.map((z,ee)=>`${z}${"_".repeat(ee+1)}`)].join(" ")}return`${E}${m}`};class d{constructor(E,$){this.buffer="",this.classPrefix=$.classPrefix,E.walk(this)}addText(E){this.buffer+=i(E)}openNode(E){if(!s(E))return;const $=a(E.scope,{prefix:this.classPrefix});this.span($)}closeNode(E){s(E)&&(this.buffer+=n)}value(){return this.buffer}span(E){this.buffer+=`<span class="${E}">`}}const g=(m={})=>{const E={children:[]};return Object.assign(E,m),E};class h{constructor(){this.rootNode=g(),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 $=g({scope:E});this.add($),this.stack.push($)}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,$){return typeof $=="string"?E.addText($):$.children&&(E.openNode($),$.children.forEach(z=>this._walk(E,z)),E.closeNode($)),E}static _collapse(E){typeof E!="string"&&E.children&&(E.children.every($=>typeof $=="string")?E.children=[E.children.join("")]:E.children.forEach($=>{h._collapse($)}))}}class o extends h{constructor(E){super(),this.options=E}addText(E){E!==""&&this.add(E)}startScope(E){this.openNode(E)}endScope(){this.closeNode()}__addSublanguage(E,$){const z=E.root;$&&(z.scope=`language:${$}`),this.add(z)}toHTML(){return new d(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function l(m){return m?typeof m=="string"?m:m.source:null}function c(m){return f("(?=",m,")")}function u(m){return f("(?:",m,")*")}function p(m){return f("(?:",m,")?")}function f(...m){return m.map(E=>l(E)).join("")}function b(m){const E=m[m.length-1];return typeof E=="object"&&E.constructor===Object?(m.splice(m.length-1,1),E):{}}function x(...m){return"("+(b(m).capture?"":"?:")+m.map(E=>l(E)).join("|")+")"}function _(m){return new RegExp(m.toString()+"|").exec("").length-1}function w(m,E){const $=m&&m.exec(E);return $&&$.index===0}const y=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function v(m,{joinWith:E}){let $=0;return m.map(z=>{$+=1;const ee=$;let te=l(z),M="";for(;te.length>0;){const O=y.exec(te);if(!O){M+=te;break}M+=te.substring(0,O.index),te=te.substring(O.index+O[0].length),O[0][0]==="\\"&&O[1]?M+="\\"+String(Number(O[1])+ee):(M+=O[0],O[0]==="("&&$++)}return M}).map(z=>`(${z})`).join(E)}const S=/\b\B/,k="[a-zA-Z]\\w*",L="[a-zA-Z_]\\w*",B="\\b\\d+(\\.\\d+)?",N="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",J="\\b(0b[01]+)",H="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",Me=(m={})=>{const E=/^#![ ]*\//;return m.binary&&(m.begin=f(E,/.*\b/,m.binary,/\b.*/)),r({scope:"meta",begin:E,end:/$/,relevance:0,"on:begin":($,z)=>{$.index!==0&&z.ignoreMatch()}},m)},pe={begin:"\\\\[\\s\\S]",relevance:0},R={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[pe]},Fe={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[pe]},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/},ie=function(m,E,$={}){const z=r({scope:"comment",begin:m,end:E,contains:[]},$);z.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 ee=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 z.contains.push({begin:f(/[ ]+/,"(",ee,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),z},ue=ie("//","$"),he=ie("/\\*","\\*/"),Ae=ie("#","$"),Pe={scope:"number",begin:B,relevance:0},j={scope:"number",begin:N,relevance:0},Ye={scope:"number",begin:J,relevance:0},He={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[pe,{begin:/\[/,end:/\]/,relevance:0,contains:[pe]}]},Bt={scope:"title",begin:k,relevance:0},Qe={scope:"title",begin:L,relevance:0},Ut={begin:"\\.\\s*"+L,relevance:0};var Ve=Object.freeze({__proto__:null,APOS_STRING_MODE:R,BACKSLASH_ESCAPE:pe,BINARY_NUMBER_MODE:Ye,BINARY_NUMBER_RE:J,COMMENT:ie,C_BLOCK_COMMENT_MODE:he,C_LINE_COMMENT_MODE:ue,C_NUMBER_MODE:j,C_NUMBER_RE:N,END_SAME_AS_BEGIN:function(m){return Object.assign(m,{"on:begin":(E,$)=>{$.data._beginMatch=E[1]},"on:end":(E,$)=>{$.data._beginMatch!==E[1]&&$.ignoreMatch()}})},HASH_COMMENT_MODE:Ae,IDENT_RE:k,MATCH_NOTHING_RE:S,METHOD_GUARD:Ut,NUMBER_MODE:Pe,NUMBER_RE:B,PHRASAL_WORDS_MODE:G,QUOTE_STRING_MODE:Fe,REGEXP_MODE:He,RE_STARTERS_RE:H,SHEBANG:Me,TITLE_MODE:Bt,UNDERSCORE_IDENT_RE:L,UNDERSCORE_TITLE_MODE:Qe});function qt(m,E){m.input[m.index-1]==="."&&E.ignoreMatch()}function Ce(m,E){m.className!==void 0&&(m.scope=m.className,delete m.className)}function et(m,E){E&&m.beginKeywords&&(m.begin="\\b("+m.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",m.__beforeBegin=qt,m.keywords=m.keywords||m.beginKeywords,delete m.beginKeywords,m.relevance===void 0&&(m.relevance=0))}function pt(m,E){Array.isArray(m.illegal)&&(m.illegal=x(...m.illegal))}function br(m,E){if(m.match){if(m.begin||m.end)throw new Error("begin & end are not supported with match");m.begin=m.match,delete m.match}}function vr(m,E){m.relevance===void 0&&(m.relevance=1)}const yr=(m,E)=>{if(!m.beforeMatch)return;if(m.starts)throw new Error("beforeMatch cannot be used with starts");const $=Object.assign({},m);Object.keys(m).forEach(z=>{delete m[z]}),m.keywords=$.keywords,m.begin=f($.beforeMatch,c($.begin)),m.starts={relevance:0,contains:[Object.assign($,{endsParent:!0})]},m.relevance=0,delete $.beforeMatch},wr=["of","and","for","in","not","or","if","then","parent","list","value"],xr="keyword";function Fi(m,E,$=xr){const z=Object.create(null);return typeof m=="string"?ee($,m.split(" ")):Array.isArray(m)?ee($,m):Object.keys(m).forEach(function(te){Object.assign(z,Fi(m[te],E,te))}),z;function ee(te,M){E&&(M=M.map(O=>O.toLowerCase())),M.forEach(function(O){const I=O.split("|");z[I[0]]=[te,Er(I[0],I[1])]})}}function Er(m,E){return E?Number(E):_r(m)?0:1}function _r(m){return wr.includes(m.toLowerCase())}const Hi={},Ne=m=>{console.error(m)},Vi=(m,...E)=>{console.log(`WARN: ${m}`,...E)},We=(m,E)=>{Hi[`${m}/${E}`]||(console.log(`Deprecated as of ${m}. ${E}`),Hi[`${m}/${E}`]=!0)},mt=new Error;function Wi(m,E,{key:$}){let z=0;const ee=m[$],te={},M={};for(let O=1;O<=E.length;O++)M[O+z]=ee[O],te[O+z]=!0,z+=_(E[O-1]);m[$]=M,m[$]._emit=te,m[$]._multi=!0}function Sr(m){if(Array.isArray(m.begin)){if(m.skip||m.excludeBegin||m.returnBegin)throw Ne("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),mt;if(typeof m.beginScope!="object"||m.beginScope===null)throw Ne("beginScope must be object"),mt;Wi(m,m.begin,{key:"beginScope"}),m.begin=v(m.begin,{joinWith:""})}}function Ar(m){if(Array.isArray(m.end)){if(m.skip||m.excludeEnd||m.returnEnd)throw Ne("skip, excludeEnd, returnEnd not compatible with endScope: {}"),mt;if(typeof m.endScope!="object"||m.endScope===null)throw Ne("endScope must be object"),mt;Wi(m,m.end,{key:"endScope"}),m.end=v(m.end,{joinWith:""})}}function Cr(m){m.scope&&typeof m.scope=="object"&&m.scope!==null&&(m.beginScope=m.scope,delete m.scope)}function $r(m){Cr(m),typeof m.beginScope=="string"&&(m.beginScope={_wrap:m.beginScope}),typeof m.endScope=="string"&&(m.endScope={_wrap:m.endScope}),Sr(m),Ar(m)}function kr(m){function E(M,O){return new RegExp(l(M),"m"+(m.case_insensitive?"i":"")+(m.unicodeRegex?"u":"")+(O?"g":""))}class ${constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(O,I){I.position=this.position++,this.matchIndexes[this.matchAt]=I,this.regexes.push([I,O]),this.matchAt+=_(O)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const O=this.regexes.map(I=>I[1]);this.matcherRe=E(v(O,{joinWith:"|"}),!0),this.lastIndex=0}exec(O){this.matcherRe.lastIndex=this.lastIndex;const I=this.matcherRe.exec(O);if(!I)return null;const oe=I.findIndex((tt,Ht)=>Ht>0&&tt!==void 0),ne=this.matchIndexes[oe];return I.splice(0,oe),Object.assign(I,ne)}}class z{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(O){if(this.multiRegexes[O])return this.multiRegexes[O];const I=new $;return this.rules.slice(O).forEach(([oe,ne])=>I.addRule(oe,ne)),I.compile(),this.multiRegexes[O]=I,I}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(O,I){this.rules.push([O,I]),I.type==="begin"&&this.count++}exec(O){const I=this.getMatcher(this.regexIndex);I.lastIndex=this.lastIndex;let oe=I.exec(O);if(this.resumingScanAtSamePosition()&&!(oe&&oe.index===this.lastIndex)){const ne=this.getMatcher(0);ne.lastIndex=this.lastIndex+1,oe=ne.exec(O)}return oe&&(this.regexIndex+=oe.position+1,this.regexIndex===this.count&&this.considerAll()),oe}}function ee(M){const O=new z;return M.contains.forEach(I=>O.addRule(I.begin,{rule:I,type:"begin"})),M.terminatorEnd&&O.addRule(M.terminatorEnd,{type:"end"}),M.illegal&&O.addRule(M.illegal,{type:"illegal"}),O}function te(M,O){const I=M;if(M.isCompiled)return I;[Ce,br,$r,yr].forEach(ne=>ne(M,O)),m.compilerExtensions.forEach(ne=>ne(M,O)),M.__beforeBegin=null,[et,pt,vr].forEach(ne=>ne(M,O)),M.isCompiled=!0;let oe=null;return typeof M.keywords=="object"&&M.keywords.$pattern&&(M.keywords=Object.assign({},M.keywords),oe=M.keywords.$pattern,delete M.keywords.$pattern),oe=oe||/\w+/,M.keywords&&(M.keywords=Fi(M.keywords,m.case_insensitive)),I.keywordPatternRe=E(oe,!0),O&&(M.begin||(M.begin=/\B|\b/),I.beginRe=E(I.begin),!M.end&&!M.endsWithParent&&(M.end=/\B|\b/),M.end&&(I.endRe=E(I.end)),I.terminatorEnd=l(I.end)||"",M.endsWithParent&&O.terminatorEnd&&(I.terminatorEnd+=(M.end?"|":"")+O.terminatorEnd)),M.illegal&&(I.illegalRe=E(M.illegal)),M.contains||(M.contains=[]),M.contains=[].concat(...M.contains.map(function(ne){return Or(ne==="self"?M:ne)})),M.contains.forEach(function(ne){te(ne,I)}),M.starts&&te(M.starts,O),I.matcher=ee(I),I}if(m.compilerExtensions||(m.compilerExtensions=[]),m.contains&&m.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return m.classNameAliases=r(m.classNameAliases||{}),te(m)}function Gi(m){return m?m.endsWithParent||Gi(m.starts):!1}function Or(m){return m.variants&&!m.cachedVariants&&(m.cachedVariants=m.variants.map(function(E){return r(m,{variants:null},E)})),m.cachedVariants?m.cachedVariants:Gi(m)?r(m,{starts:m.starts?r(m.starts):null}):Object.isFrozen(m)?r(m):m}var Rr="11.11.1";class Mr extends Error{constructor(E,$){super(E),this.name="HTMLInjectionError",this.html=$}}const Ft=i,Zi=r,Ki=Symbol("nomatch"),Pr=7,Xi=function(m){const E=Object.create(null),$=Object.create(null),z=[];let ee=!0;const te="Could not find the language '{}', did you forget to load/include a language module?",M={disableAutodetect:!0,name:"Plain text",contains:[]};let O={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:o};function I(A){return O.noHighlightRe.test(A)}function oe(A){let T=A.className+" ";T+=A.parentNode?A.parentNode.className:"";const F=O.languageDetectRe.exec(T);if(F){const Z=$e(F[1]);return Z||(Vi(te.replace("{}",F[1])),Vi("Falling back to no-highlight mode for this block.",A)),Z?F[1]:"no-highlight"}return T.split(/\s+/).find(Z=>I(Z)||$e(Z))}function ne(A,T,F){let Z="",se="";typeof T=="object"?(Z=A,F=T.ignoreIllegals,se=T.language):(We("10.7.0","highlight(lang, code, ...args) has been deprecated."),We("10.7.0",`Please use highlight(code, options) instead.
|
|
453
|
+
https://github.com/highlightjs/highlight.js/issues/2277`),se=A,Z=T),F===void 0&&(F=!0);const ve={code:Z,language:se};bt("before:highlight",ve);const ke=ve.result?ve.result:tt(ve.language,ve.code,F);return ke.code=ve.code,bt("after:highlight",ke),ke}function tt(A,T,F,Z){const se=Object.create(null);function ve(C,P){return C.keywords[P]}function ke(){if(!D.keywords){ae.addText(K);return}let C=0;D.keywordPatternRe.lastIndex=0;let P=D.keywordPatternRe.exec(K),U="";for(;P;){U+=K.substring(C,P.index);const W=we.case_insensitive?P[0].toLowerCase():P[0],le=ve(D,W);if(le){const[_e,Kr]=le;if(ae.addText(U),U="",se[W]=(se[W]||0)+1,se[W]<=Pr&&(wt+=Kr),_e.startsWith("_"))U+=P[0];else{const Xr=we.classNameAliases[_e]||_e;ye(P[0],Xr)}}else U+=P[0];C=D.keywordPatternRe.lastIndex,P=D.keywordPatternRe.exec(K)}U+=K.substring(C),ae.addText(U)}function vt(){if(K==="")return;let C=null;if(typeof D.subLanguage=="string"){if(!E[D.subLanguage]){ae.addText(K);return}C=tt(D.subLanguage,K,!0,sn[D.subLanguage]),sn[D.subLanguage]=C._top}else C=Vt(K,D.subLanguage.length?D.subLanguage:null);D.relevance>0&&(wt+=C.relevance),ae.__addSublanguage(C._emitter,C.language)}function fe(){D.subLanguage!=null?vt():ke(),K=""}function ye(C,P){C!==""&&(ae.startScope(P),ae.addText(C),ae.endScope())}function en(C,P){let U=1;const W=P.length-1;for(;U<=W;){if(!C._emit[U]){U++;continue}const le=we.classNameAliases[C[U]]||C[U],_e=P[U];le?ye(_e,le):(K=_e,ke(),K=""),U++}}function tn(C,P){return C.scope&&typeof C.scope=="string"&&ae.openNode(we.classNameAliases[C.scope]||C.scope),C.beginScope&&(C.beginScope._wrap?(ye(K,we.classNameAliases[C.beginScope._wrap]||C.beginScope._wrap),K=""):C.beginScope._multi&&(en(C.beginScope,P),K="")),D=Object.create(C,{parent:{value:D}}),D}function nn(C,P,U){let W=w(C.endRe,U);if(W){if(C["on:end"]){const le=new e(C);C["on:end"](P,le),le.isMatchIgnored&&(W=!1)}if(W){for(;C.endsParent&&C.parent;)C=C.parent;return C}}if(C.endsWithParent)return nn(C.parent,P,U)}function Hr(C){return D.matcher.regexIndex===0?(K+=C[0],1):(Kt=!0,0)}function Vr(C){const P=C[0],U=C.rule,W=new e(U),le=[U.__beforeBegin,U["on:begin"]];for(const _e of le)if(_e&&(_e(C,W),W.isMatchIgnored))return Hr(P);return U.skip?K+=P:(U.excludeBegin&&(K+=P),fe(),!U.returnBegin&&!U.excludeBegin&&(K=P)),tn(U,C),U.returnBegin?0:P.length}function Wr(C){const P=C[0],U=T.substring(C.index),W=nn(D,C,U);if(!W)return Ki;const le=D;D.endScope&&D.endScope._wrap?(fe(),ye(P,D.endScope._wrap)):D.endScope&&D.endScope._multi?(fe(),en(D.endScope,C)):le.skip?K+=P:(le.returnEnd||le.excludeEnd||(K+=P),fe(),le.excludeEnd&&(K=P));do D.scope&&ae.closeNode(),!D.skip&&!D.subLanguage&&(wt+=D.relevance),D=D.parent;while(D!==W.parent);return W.starts&&tn(W.starts,C),le.returnEnd?0:P.length}function Gr(){const C=[];for(let P=D;P!==we;P=P.parent)P.scope&&C.unshift(P.scope);C.forEach(P=>ae.openNode(P))}let yt={};function rn(C,P){const U=P&&P[0];if(K+=C,U==null)return fe(),0;if(yt.type==="begin"&&P.type==="end"&&yt.index===P.index&&U===""){if(K+=T.slice(P.index,P.index+1),!ee){const W=new Error(`0 width match regex (${A})`);throw W.languageName=A,W.badRule=yt.rule,W}return 1}if(yt=P,P.type==="begin")return Vr(P);if(P.type==="illegal"&&!F){const W=new Error('Illegal lexeme "'+U+'" for mode "'+(D.scope||"<unnamed>")+'"');throw W.mode=D,W}else if(P.type==="end"){const W=Wr(P);if(W!==Ki)return W}if(P.type==="illegal"&&U==="")return K+=`
|
|
454
|
+
`,1;if(Zt>1e5&&Zt>P.index*3)throw new Error("potential infinite loop, way more iterations than matches");return K+=U,U.length}const we=$e(A);if(!we)throw Ne(te.replace("{}",A)),new Error('Unknown language: "'+A+'"');const Zr=kr(we);let Gt="",D=Z||Zr;const sn={},ae=new O.__emitter(O);Gr();let K="",wt=0,Te=0,Zt=0,Kt=!1;try{if(we.__emitTokens)we.__emitTokens(T,ae);else{for(D.matcher.considerAll();;){Zt++,Kt?Kt=!1:D.matcher.considerAll(),D.matcher.lastIndex=Te;const C=D.matcher.exec(T);if(!C)break;const P=T.substring(Te,C.index),U=rn(P,C);Te=C.index+U}rn(T.substring(Te))}return ae.finalize(),Gt=ae.toHTML(),{language:A,value:Gt,relevance:wt,illegal:!1,_emitter:ae,_top:D}}catch(C){if(C.message&&C.message.includes("Illegal"))return{language:A,value:Ft(T),illegal:!0,relevance:0,_illegalBy:{message:C.message,index:Te,context:T.slice(Te-100,Te+100),mode:C.mode,resultSoFar:Gt},_emitter:ae};if(ee)return{language:A,value:Ft(T),illegal:!1,relevance:0,errorRaised:C,_emitter:ae,_top:D};throw C}}function Ht(A){const T={value:Ft(A),illegal:!1,relevance:0,_top:M,_emitter:new O.__emitter(O)};return T._emitter.addText(A),T}function Vt(A,T){T=T||O.languages||Object.keys(E);const F=Ht(A),Z=T.filter($e).filter(Qi).map(fe=>tt(fe,A,!1));Z.unshift(F);const se=Z.sort((fe,ye)=>{if(fe.relevance!==ye.relevance)return ye.relevance-fe.relevance;if(fe.language&&ye.language){if($e(fe.language).supersetOf===ye.language)return 1;if($e(ye.language).supersetOf===fe.language)return-1}return 0}),[ve,ke]=se,vt=ve;return vt.secondBest=ke,vt}function Nr(A,T,F){const Z=T&&$[T]||F;A.classList.add("hljs"),A.classList.add(`language-${Z}`)}function Wt(A){let T=null;const F=oe(A);if(I(F))return;if(bt("before:highlightElement",{el:A,language:F}),A.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",A);return}if(A.children.length>0&&(O.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(A)),O.throwUnescapedHTML))throw new Mr("One of your code blocks includes unescaped HTML.",A.innerHTML);T=A;const Z=T.textContent,se=F?ne(Z,{language:F,ignoreIllegals:!0}):Vt(Z);A.innerHTML=se.value,A.dataset.highlighted="yes",Nr(A,F,se.language),A.result={language:se.language,re:se.relevance,relevance:se.relevance},se.secondBest&&(A.secondBest={language:se.secondBest.language,relevance:se.secondBest.relevance}),bt("after:highlightElement",{el:A,result:se,text:Z})}function Tr(A){O=Zi(O,A)}const Lr=()=>{gt(),We("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function Ir(){gt(),We("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let Ji=!1;function gt(){function A(){gt()}if(document.readyState==="loading"){Ji||window.addEventListener("DOMContentLoaded",A,!1),Ji=!0;return}document.querySelectorAll(O.cssSelector).forEach(Wt)}function jr(A,T){let F=null;try{F=T(m)}catch(Z){if(Ne("Language definition for '{}' could not be registered.".replace("{}",A)),ee)Ne(Z);else throw Z;F=M}F.name||(F.name=A),E[A]=F,F.rawDefinition=T.bind(null,m),F.aliases&&Yi(F.aliases,{languageName:A})}function Dr(A){delete E[A];for(const T of Object.keys($))$[T]===A&&delete $[T]}function zr(){return Object.keys(E)}function $e(A){return A=(A||"").toLowerCase(),E[A]||E[$[A]]}function Yi(A,{languageName:T}){typeof A=="string"&&(A=[A]),A.forEach(F=>{$[F.toLowerCase()]=T})}function Qi(A){const T=$e(A);return T&&!T.disableAutodetect}function Br(A){A["before:highlightBlock"]&&!A["before:highlightElement"]&&(A["before:highlightElement"]=T=>{A["before:highlightBlock"](Object.assign({block:T.el},T))}),A["after:highlightBlock"]&&!A["after:highlightElement"]&&(A["after:highlightElement"]=T=>{A["after:highlightBlock"](Object.assign({block:T.el},T))})}function Ur(A){Br(A),z.push(A)}function qr(A){const T=z.indexOf(A);T!==-1&&z.splice(T,1)}function bt(A,T){const F=A;z.forEach(function(Z){Z[F]&&Z[F](T)})}function Fr(A){return We("10.7.0","highlightBlock will be removed entirely in v12.0"),We("10.7.0","Please use highlightElement now."),Wt(A)}Object.assign(m,{highlight:ne,highlightAuto:Vt,highlightAll:gt,highlightElement:Wt,highlightBlock:Fr,configure:Tr,initHighlighting:Lr,initHighlightingOnLoad:Ir,registerLanguage:jr,unregisterLanguage:Dr,listLanguages:zr,getLanguage:$e,registerAliases:Yi,autoDetection:Qi,inherit:Zi,addPlugin:Ur,removePlugin:qr}),m.debugMode=function(){ee=!1},m.safeMode=function(){ee=!0},m.versionString=Rr,m.regex={concat:f,lookahead:c,either:x,optional:p,anyNumberOfTimes:u};for(const A in Ve)typeof Ve[A]=="object"&&t(Ve[A]);return Object.assign(m,Ve),m},Ge=Xi({});return Ge.newInstance=()=>Xi({}),$i=Ge,Ge.HighlightJS=Ge,Ge.default=Ge,$i}var Do=jo();const zt=Io(Do),kt="[A-Za-z$_][0-9A-Za-z$_]*",cr=["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"],ur=["true","false","null","undefined","NaN","Infinity"],hr=["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"],dr=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],fr=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],pr=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],mr=[].concat(fr,hr,dr);function zo(t){const e=t.regex,i=(G,{after:ie})=>{const ue="</"+G[0].slice(1);return G.input.indexOf(ue,ie)!==-1},r=kt,n={begin:"<>",end:"</>"},s=/<[A-Za-z0-9\\._:-]+\s*\/>/,a={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(G,ie)=>{const ue=G[0].length+G.index,he=G.input[ue];if(he==="<"||he===","){ie.ignoreMatch();return}he===">"&&(i(G,{after:ue})||ie.ignoreMatch());let Ae;const Pe=G.input.substring(ue);if(Ae=Pe.match(/^\s*=/)){ie.ignoreMatch();return}if((Ae=Pe.match(/^\s+extends\s+/))&&Ae.index===0){ie.ignoreMatch();return}}},d={$pattern:kt,keyword:cr,literal:ur,built_in:mr,"variable.language":pr},g="[0-9](_?[0-9])*",h=`\\.(${g})`,o="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",l={className:"number",variants:[{begin:`(\\b(${o})((${h})|\\.)?|(${h}))[eE][+-]?(${g})\\b`},{begin:`\\b(${o})\\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},c={className:"subst",begin:"\\$\\{",end:"\\}",keywords:d,contains:[]},u={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[t.BACKSLASH_ESCAPE,c],subLanguage:"xml"}},p={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[t.BACKSLASH_ESCAPE,c],subLanguage:"css"}},f={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[t.BACKSLASH_ESCAPE,c],subLanguage:"graphql"}},b={className:"string",begin:"`",end:"`",contains:[t.BACKSLASH_ESCAPE,c]},x={className:"comment",variants:[t.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:r+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),t.C_BLOCK_COMMENT_MODE,t.C_LINE_COMMENT_MODE]},_=[t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,u,p,f,b,{match:/\$\d+/},l];c.contains=_.concat({begin:/\{/,end:/\}/,keywords:d,contains:["self"].concat(_)});const w=[].concat(x,c.contains),y=w.concat([{begin:/(\s*)\(/,end:/\)/,keywords:d,contains:["self"].concat(w)}]),v={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:d,contains:y},S={variants:[{match:[/class/,/\s+/,r,/\s+/,/extends/,/\s+/,e.concat(r,"(",e.concat(/\./,r),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,r],scope:{1:"keyword",3:"title.class"}}]},k={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:{_:[...hr,...dr]}},L={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},B={variants:[{match:[/function/,/\s+/,r,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[v],illegal:/%/},N={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([...fr,"super","import"].map(G=>`${G}\\s*\\(`)),r,e.lookahead(/\s*\(/)),className:"title.function",relevance:0},Me={begin:e.concat(/\./,e.lookahead(e.concat(r,/(?![0-9A-Za-z$_(])/))),end:r,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},pe={match:[/get|set/,/\s+/,r,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},v]},R="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+t.UNDERSCORE_IDENT_RE+")\\s*=>",Fe={match:[/const|var|let/,/\s+/,r,/\s*/,/=\s*/,/(async\s*)?/,e.lookahead(R)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[v]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:d,exports:{PARAMS_CONTAINS:y,CLASS_REFERENCE:k},illegal:/#(?![$_A-z])/,contains:[t.SHEBANG({label:"shebang",binary:"node",relevance:5}),L,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,u,p,f,b,x,{match:/\$\d+/},l,k,{scope:"attr",match:r+e.lookahead(":"),relevance:0},Fe,{begin:"("+t.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[x,t.REGEXP_MODE,{className:"function",begin:R,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:t.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:d,contains:y}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:n.begin,end:n.end},{match:s},{begin:a.begin,"on:begin":a.isTrulyOpeningTag,end:a.end}],subLanguage:"xml",contains:[{begin:a.begin,end:a.end,skip:!0,contains:["self"]}]}]},B,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+t.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[v,t.inherit(t.TITLE_MODE,{begin:r,className:"title.function"})]},{match:/\.\.\./,relevance:0},Me,{match:"\\$"+r,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[v]},H,N,S,pe,{match:/\$[(.]/}]}}function Bo(t){const e=t.regex,i=zo(t),r=kt,n=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],s={begin:[/namespace/,/\s+/,t.IDENT_RE],beginScope:{1:"keyword",3:"title.class"}},a={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:n},contains:[i.exports.CLASS_REFERENCE]},d={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},g=["type","interface","public","private","protected","implements","declare","abstract","readonly","enum","override","satisfies"],h={$pattern:kt,keyword:cr.concat(g),literal:ur,built_in:mr.concat(n),"variable.language":pr},o={className:"meta",begin:"@"+r},l=(f,b,x)=>{const _=f.contains.findIndex(w=>w.label===b);if(_===-1)throw new Error("can not find mode to replace");f.contains.splice(_,1,x)};Object.assign(i.keywords,h),i.exports.PARAMS_CONTAINS.push(o);const c=i.contains.find(f=>f.scope==="attr"),u=Object.assign({},c,{match:e.concat(r,e.lookahead(/\s*\?:/))});i.exports.PARAMS_CONTAINS.push([i.exports.CLASS_REFERENCE,c,u]),i.contains=i.contains.concat([o,s,a,u]),l(i,"shebang",t.SHEBANG()),l(i,"use_strict",d);const p=i.contains.find(f=>f.label==="func.def");return p.relevance=0,Object.assign(i,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),i}function Uo(t){const e=t.regex,i=e.concat(/[\p{L}_]/u,e.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),r=/[\p{L}0-9._:-]+/u,n={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},s={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},a=t.inherit(s,{begin:/\(/,end:/\)/}),d=t.inherit(t.APOS_STRING_MODE,{className:"string"}),g=t.inherit(t.QUOTE_STRING_MODE,{className:"string"}),h={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:r,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[n]},{begin:/'/,end:/'/,contains:[n]},{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:[s,g,d,a,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[s,a,g,d]}]}]},t.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},n,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[g]},{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(i,e.either(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:i,relevance:0,starts:h}]},{className:"tag",begin:e.concat(/<\//,e.lookahead(e.concat(i,/>/))),contains:[{className:"name",begin:i,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}const qo=t=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:t.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:[t.APOS_STRING_MODE,t.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:t.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_-]*/}}),Fo=["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"],Ho=["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"],Vo=[...Fo,...Ho],Wo=["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(),Go=["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(),Zo=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),Ko=["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 Xo(t){const e=t.regex,i=qo(t),r={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},n="and or not only",s=/@-?\w[\w]*(-\w+)*/,a="[a-zA-Z-][a-zA-Z0-9_-]*",d=[t.APOS_STRING_MODE,t.QUOTE_STRING_MODE];return{name:"CSS",case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"},classNameAliases:{keyframePosition:"selector-tag"},contains:[i.BLOCK_COMMENT,r,i.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:"selector-class",begin:"\\."+a,relevance:0},i.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+Go.join("|")+")"},{begin:":(:)?("+Zo.join("|")+")"}]},i.CSS_VARIABLE,{className:"attribute",begin:"\\b("+Ko.join("|")+")\\b"},{begin:/:/,end:/[;}{]/,contains:[i.BLOCK_COMMENT,i.HEXCOLOR,i.IMPORTANT,i.CSS_NUMBER_MODE,...d,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[...d,{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},i.FUNCTION_DISPATCH]},{begin:e.lookahead(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:s},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:n,attribute:Wo.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...d,i.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+Vo.join("|")+")\\b"}]}}const gr=document.createElement("style");gr.innerText=[To,Lo].join(`
|
|
455
|
+
`);document.head.appendChild(gr);zt.registerLanguage("typescript",Bo);zt.registerLanguage("html",Uo);zt.registerLanguage("css",Xo);function Jo(...t){const e=document.createElement("div"),i=document.createElement("div");i.classList.add("tab-control");const r=document.createElement("div");return t.forEach(n=>{e.appendChild(n),n.addEventListener("click",()=>{t.forEach(s=>s.removeAttribute("selected")),n.setAttribute("selected",""),r.innerHTML="",r.appendChild(n.content),r.className=n.className,r.classList.add("tab-content")})}),i.appendChild(e),i.appendChild(r),r.classList.add("tab-content"),t[0].setAttribute("selected",""),r.appendChild(t[0].content),i}function nt(t,e){const i=document.createElement("div");return i.role="tab",i.tabIndex=0,i.innerText=t,i.content=e,e.tagName=="PRE"&&i.classList.add("code"),i}function st(t,e){const i=document.createElement(t);return typeof e=="string"?i.innerHTML=e:e.forEach(r=>{i.appendChild(r)}),i}async function Yo(t,e,i){const r=e.mainContent,n=st("div",r);n.id=`example-preview-${i}`;const s=typeof e.css=="string"?void 0:e.css?.label,a=typeof e.css=="string"?e.css:e.css?.content,d=Jo(nt("Preview",n),nt("HTML",_t("html",r)),...a?[nt(s??"CSS",_t("css",a))]:[],...e.initializer&&e.initializer.content?[nt(e.initializer.label??"TS",_t("typescript",e.initializer.content))]:[],...(e.additionalSources||[]).map(h=>nt(h.label,_t(h.language,h.content))));e.description&&t.appendChild(st("div",e.description));const g=st("div",[d]);g.classList.add("example"),t.appendChild(g),a&&Qo(`#${n.id}`,a),e.initializer?.initialize&&await e.initializer.initialize(n)}function _t(t,e){let i=e.split(/\r?\n/).map(r=>{const n=r.indexOf("///");if(n>-1){const s=r.substring(n+3).trimStart();return s?r.replace(/^(\s*)([^\s].*)$/,`$1${s}`):void 0}return r}).filter(r=>typeof r<"u").join(`
|
|
456
|
+
`).trim();return t&&t!="raw"&&(i=zt.highlight(i,{language:t}).value),st("pre",[st("code",i)])}function Qo(t,e){const i=document.createElement("style");i.innerHTML=X().use(No({prefix:t})).process(e).css,document.head.appendChild(i)}async function ea(t,e=document.body){const i=ia(e);let r=0;Object.keys(t).sort().forEach(async n=>{const s=document.createElement("div");s.className="example-container",i.appendChild(s);const a=t[n].default;Yo(s,a,r++)})}function ta(t){const e=document.createElement("div");e.id="examples-container";const i=t.querySelector("#examples");return i?i.after(e):t.appendChild(e),e}function ia(t){return t.children?ta(t):t}const na=`<h1 id="@cas-smartdesign/lit-slider">@cas-smartdesign/lit-slider</h1>
|
|
455
457
|
<p>A slider element based on <a href="https://github.com/Polymer/lit-element">lit-element</a> with SmartDesign look & feel.</p>
|
|
456
458
|
<h2 id="requirements">Requirements</h2>
|
|
457
459
|
<p>The main entry point requires ES6 & support for Custom Elements v1</p>
|
|
@@ -525,10 +527,4 @@ https://github.com/highlightjs/highlight.js/issues/2277`),N=d,S=g),y===void 0&&(
|
|
|
525
527
|
</ul>
|
|
526
528
|
<h2 id="other">Other</h2>
|
|
527
529
|
<p>It supports touch devices, uses aria attributes and includes the default keydown event handling such as arrow- left, top, right, bottom.</p>
|
|
528
|
-
`,
|
|
529
|
-
function __vite__mapDeps(indexes) {
|
|
530
|
-
if (!__vite__mapDeps.viteFileDeps) {
|
|
531
|
-
__vite__mapDeps.viteFileDeps = []
|
|
532
|
-
}
|
|
533
|
-
return indexes.map((i) => __vite__mapDeps.viteFileDeps[i])
|
|
534
|
-
}
|
|
530
|
+
`,ra=document.querySelector("#markdown-container");ra.innerHTML=na;ea(Object.assign({"./examples/basic-usages/index.ts":rs,"./examples/coloring/index.ts":us,"./examples/editable-usages/index.ts":gs,"./examples/validation/index.ts":Es}),document.querySelector(".markdown-body"));export{Re as i,q as n,ge as x};
|