@cas-smartdesign/tab-bar 4.0.2 → 4.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/docs/doc.css +1 -1
- package/dist/docs/doc.mjs +75 -79
- package/dist/tab-bar-with-externals.js +45 -68
- package/dist/tab-bar-with-externals.js.map +4 -4
- package/dist/tab-bar.mjs +40 -40
- package/dist/tab-bar.mjs.map +1 -1
- package/npm-third-party-licenses.json +62 -47
- package/package.json +5 -5
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 Xs=`<!-- Load element with all dependencies directly -->
|
|
2
2
|
<script src="./tab-bar-with-externals.js"><\/script>
|
|
3
3
|
|
|
4
4
|
<sd-tab-bar>
|
|
@@ -6,14 +6,14 @@
|
|
|
6
6
|
<sd-tab text="Contact" anchors="["Address","Contact persons"]"></sd-tab>
|
|
7
7
|
<sd-tab text="Dossier"></sd-tab>
|
|
8
8
|
</sd-tab-bar>
|
|
9
|
-
`,
|
|
10
|
-
`,
|
|
9
|
+
`,Js=`<h3 id="declarative-tab-bar">Declarative tab bar</h3>
|
|
10
|
+
`,Ys=`sd-tab-bar {
|
|
11
11
|
background: white;
|
|
12
12
|
font-family: "Segoe UI", "Lucida Sans", Arial, sans-serif;
|
|
13
13
|
font-weight: 500;
|
|
14
14
|
margin-bottom: 32px;
|
|
15
15
|
}
|
|
16
|
-
`,
|
|
16
|
+
`,Qs={mainContent:Xs,description:Js,css:Ys},eo=Object.freeze(Object.defineProperty({__proto__:null,default:Qs},Symbol.toStringTag,{value:"Module"})),to="modulepreload",io=function(t,e){return new URL(t,e).href},Fn={},Wr=function(e,i,r){let n=Promise.resolve();if(i&&i.length>0){let h=function(o){return Promise.all(o.map(u=>Promise.resolve(u).then(c=>({status:"fulfilled",value:c}),c=>({status:"rejected",reason:c}))))};const a=document.getElementsByTagName("link"),d=document.querySelector("meta[property=csp-nonce]"),f=d?.nonce||d?.getAttribute("nonce");n=h(i.map(o=>{if(o=io(o,r),o in Fn)return;Fn[o]=!0;const u=o.endsWith(".css"),c=u?'[rel="stylesheet"]':"";if(!!r)for(let m=a.length-1;m>=0;m--){const b=a[m];if(b.href===o&&(!u||b.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${o}"]${c}`))return;const p=document.createElement("link");if(p.rel=u?"stylesheet":to,u||(p.as="script"),p.crossOrigin="",p.href=o,f&&p.setAttribute("nonce",f),document.head.appendChild(p),u)return new Promise((m,b)=>{p.addEventListener("load",m),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)})},no=`<div id="horizontal-examples">
|
|
17
17
|
<div class="tab-bar-example">
|
|
18
18
|
<b>Default</b>
|
|
19
19
|
<sd-tab-bar></sd-tab-bar>
|
|
@@ -35,8 +35,8 @@
|
|
|
35
35
|
<sd-tab-bar class="custom-color"></sd-tab-bar>
|
|
36
36
|
</div>
|
|
37
37
|
</div>
|
|
38
|
-
`,
|
|
39
|
-
`,
|
|
38
|
+
`,ro=`<h3 id="horizontal-tab-bars">Horizontal tab bars</h3>
|
|
39
|
+
`,so=`sd-tab-bar {
|
|
40
40
|
background: white;
|
|
41
41
|
font-family: "Segoe UI", "Lucida Sans", Arial, sans-serif;
|
|
42
42
|
font-weight: 500;
|
|
@@ -50,7 +50,7 @@ sd-tab-bar[show-separators] sd-tab:not(:last-of-type) {
|
|
|
50
50
|
sd-tab-bar[show-selection-background] sd-tab[selected] {
|
|
51
51
|
background-color: #d3e6fa;
|
|
52
52
|
}
|
|
53
|
-
`,
|
|
53
|
+
`,oo=`import "@cas-smartdesign/tab-bar";
|
|
54
54
|
import TabBar, { Tab } from "@cas-smartdesign/tab-bar";
|
|
55
55
|
|
|
56
56
|
const container = document.querySelector("#horizontal-examples");
|
|
@@ -72,12 +72,12 @@ container.querySelectorAll("sd-tab-bar").forEach((tabBar: TabBar) => {
|
|
|
72
72
|
tabBar.appendChild(tab);
|
|
73
73
|
});
|
|
74
74
|
});
|
|
75
|
-
`,
|
|
75
|
+
`,ao={mainContent:no,description:ro,css:so,initializer:{content:oo,type:"typescript",initialize:()=>Wr(()=>import("./2_horizontal.js"),[],import.meta.url)}},lo=Object.freeze(Object.defineProperty({__proto__:null,default:ao},Symbol.toStringTag,{value:"Module"})),co=`<div id="vertical-example">
|
|
76
76
|
<sd-tab-bar vertical show-separators show-counter show-selection-background no-bar></sd-tab-bar>
|
|
77
77
|
<div id="tab-content"></div>
|
|
78
78
|
</div>
|
|
79
|
-
`,
|
|
80
|
-
`,
|
|
79
|
+
`,uo=`<h3 id="vertical,-wizard-like-use-case">Vertical, wizard like use case</h3>
|
|
80
|
+
`,ho=`#vertical-example {
|
|
81
81
|
display: grid;
|
|
82
82
|
grid-template-columns: 25% 75%;
|
|
83
83
|
background: #f3f3f3;
|
|
@@ -117,7 +117,7 @@ sd-tab-bar {
|
|
|
117
117
|
sd-tab-bar[show-selection-background] sd-tab[selected] {
|
|
118
118
|
background-color: #d3e6fa;
|
|
119
119
|
}
|
|
120
|
-
`,
|
|
120
|
+
`,fo=`import "@cas-smartdesign/tab-bar";
|
|
121
121
|
import TabBar, { ISelectionEvent, Tab } from "@cas-smartdesign/tab-bar";
|
|
122
122
|
|
|
123
123
|
const container = document.querySelector("#vertical-example");
|
|
@@ -161,109 +161,111 @@ updateContent(tabs[0].caption);
|
|
|
161
161
|
function updateContent(caption: string, anchor?: string) {
|
|
162
162
|
tabContent.innerHTML = \`<h1>\${caption}</h1><section>\${anchor ?? ""}</section>\`;
|
|
163
163
|
}
|
|
164
|
-
`,
|
|
165
|
-
\f\r]`,
|
|
166
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),Tn=/'/g,Mn=/"/g,$r=/^(?:script|style|textarea|title)$/i,po=n=>(e,...t)=>({_$litType$:n,strings:e,values:t}),ae=po(1),Be=Symbol.for("lit-noChange"),H=Symbol.for("lit-nothing"),Dn=new WeakMap,Te=je.createTreeWalker(je,129,null,!1);function Or(n,e){if(!Array.isArray(n)||!n.hasOwnProperty("raw"))throw Error("invalid template strings array");return Pn!==void 0?Pn.createHTML(e):e}const mo=(n,e)=>{const t=n.length-1,i=[];let r,o=e===2?"<svg>":"",s=ct;for(let a=0;a<t;a++){const l=n[a];let c,h,u=-1,f=0;for(;f<l.length&&(s.lastIndex=f,h=s.exec(l),h!==null);)f=s.lastIndex,s===ct?h[1]==="!--"?s=Nn:h[1]!==void 0?s=Ln:h[2]!==void 0?($r.test(h[2])&&(r=RegExp("</"+h[2],"g")),s=Ne):h[3]!==void 0&&(s=Ne):s===Ne?h[0]===">"?(s=r??ct,u=-1):h[1]===void 0?u=-2:(u=s.lastIndex-h[2].length,c=h[1],s=h[3]===void 0?Ne:h[3]==='"'?Mn:Tn):s===Mn||s===Tn?s=Ne:s===Nn||s===Ln?s=ct:(s=Ne,r=void 0);const g=s===Ne&&n[a+1].startsWith("/>")?" ":"";o+=s===ct?l+uo:u>=0?(i.push(c),l.slice(0,u)+Mi+l.slice(u)+$e+g):l+$e+(u===-2?(i.push(void 0),a):g)}return[Or(n,o+(n[t]||"<?>")+(e===2?"</svg>":"")),i]};class yt{constructor({strings:e,_$litType$:t},i){let r;this.parts=[];let o=0,s=0;const a=e.length-1,l=this.parts,[c,h]=mo(e,t);if(this.el=yt.createElement(c,i),Te.currentNode=this.el.content,t===2){const u=this.el.content,f=u.firstChild;f.remove(),u.append(...f.childNodes)}for(;(r=Te.nextNode())!==null&&l.length<a;){if(r.nodeType===1){if(r.hasAttributes()){const u=[];for(const f of r.getAttributeNames())if(f.endsWith(Mi)||f.startsWith($e)){const g=h[s++];if(u.push(f),g!==void 0){const E=r.getAttribute(g.toLowerCase()+Mi).split($e),y=/([.?@])?(.*)/.exec(g);l.push({type:1,index:o,name:y[2],strings:E,ctor:y[1]==="."?bo:y[1]==="?"?yo:y[1]==="@"?wo:ui})}else l.push({type:6,index:o})}for(const f of u)r.removeAttribute(f)}if($r.test(r.tagName)){const u=r.textContent.split($e),f=u.length-1;if(f>0){r.textContent=Xe?Xe.emptyScript:"";for(let g=0;g<f;g++)r.append(u[g],bt()),Te.nextNode(),l.push({type:2,index:++o});r.append(u[f],bt())}}}else if(r.nodeType===8)if(r.data===Ar)l.push({type:2,index:o});else{let u=-1;for(;(u=r.data.indexOf($e,u+1))!==-1;)l.push({type:7,index:o}),u+=$e.length-1}o++}}static createElement(e,t){const i=je.createElement("template");return i.innerHTML=e,i}}function Ye(n,e,t=n,i){var r,o,s,a;if(e===Be)return e;let l=i!==void 0?(r=t._$Co)===null||r===void 0?void 0:r[i]:t._$Cl;const c=vt(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?((s=(a=t)._$Co)!==null&&s!==void 0?s:a._$Co=[])[i]=l:t._$Cl=l),l!==void 0&&(e=Ye(n,l._$AS(n,e.values),l,i)),e}class go{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:r}=this._$AD,o=((t=e==null?void 0:e.creationScope)!==null&&t!==void 0?t:je).importNode(i,!0);Te.currentNode=o;let s=Te.nextNode(),a=0,l=0,c=r[0];for(;c!==void 0;){if(a===c.index){let h;c.type===2?h=new kt(s,s.nextSibling,this,e):c.type===1?h=new c.ctor(s,c.name,c.strings,this,e):c.type===6&&(h=new xo(s,this,e)),this._$AV.push(h),c=r[++l]}a!==(c==null?void 0:c.index)&&(s=Te.nextNode(),a++)}return Te.currentNode=je,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 kt{constructor(e,t,i,r){var o;this.type=2,this._$AH=H,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=i,this.options=r,this._$Cp=(o=r==null?void 0:r.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=Ye(this,e,t),vt(e)?e===H||e==null||e===""?(this._$AH!==H&&this._$AR(),this._$AH=H):e!==this._$AH&&e!==Be&&this._(e):e._$litType$!==void 0?this.g(e):e.nodeType!==void 0?this.$(e):fo(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!==H&&vt(this._$AH)?this._$AA.nextSibling.data=e:this.$(je.createTextNode(e)),this._$AH=e}g(e){var t;const{values:i,_$litType$:r}=e,o=typeof r=="number"?this._$AC(e):(r.el===void 0&&(r.el=yt.createElement(Or(r.h,r.h[0]),this.options)),r);if(((t=this._$AH)===null||t===void 0?void 0:t._$AD)===o)this._$AH.v(i);else{const s=new go(o,this),a=s.u(this.options);s.v(i),this.$(a),this._$AH=s}}_$AC(e){let t=Dn.get(e.strings);return t===void 0&&Dn.set(e.strings,t=new yt(e)),t}T(e){Cr(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let i,r=0;for(const o of e)r===t.length?t.push(i=new kt(this.k(bt()),this.k(bt()),this,this.options)):i=t[r],i._$AI(o),r++;r<t.length&&(this._$AR(i&&i._$AB.nextSibling,r),t.length=r)}_$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 r=e.nextSibling;e.remove(),e=r}}setConnected(e){var t;this._$AM===void 0&&(this._$Cp=e,(t=this._$AP)===null||t===void 0||t.call(this,e))}}let ui=class{constructor(e,t,i,r,o){this.type=1,this._$AH=H,this._$AN=void 0,this.element=e,this.name=t,this._$AM=r,this.options=o,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=H}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(e,t=this,i,r){const o=this.strings;let s=!1;if(o===void 0)e=Ye(this,e,t,0),s=!vt(e)||e!==this._$AH&&e!==Be,s&&(this._$AH=e);else{const a=e;let l,c;for(e=o[0],l=0;l<o.length-1;l++)c=Ye(this,a[i+l],t,l),c===Be&&(c=this._$AH[l]),s||(s=!vt(c)||c!==this._$AH[l]),c===H?e=H:e!==H&&(e+=(c??"")+o[l+1]),this._$AH[l]=c}s&&!r&&this.j(e)}j(e){e===H?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}};class bo extends ui{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===H?void 0:e}}const vo=Xe?Xe.emptyScript:"";let yo=class extends ui{constructor(){super(...arguments),this.type=4}j(e){e&&e!==H?this.element.setAttribute(this.name,vo):this.element.removeAttribute(this.name)}},wo=class extends ui{constructor(e,t,i,r,o){super(e,t,i,r,o),this.type=5}_$AI(e,t=this){var i;if((e=(i=Ye(this,e,t,0))!==null&&i!==void 0?i:H)===Be)return;const r=this._$AH,o=e===H&&r!==H||e.capture!==r.capture||e.once!==r.once||e.passive!==r.passive,s=e!==H&&(r===H||o);o&&this.element.removeEventListener(this.name,this,r),s&&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 xo{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){Ye(this,e)}}const jn=ii.litHtmlPolyfillSupport;jn==null||jn(yt,kt),((Ai=ii.litHtmlVersions)!==null&&Ai!==void 0?Ai:ii.litHtmlVersions=[]).push("2.8.0");const Eo=(n,e,t)=>{var i,r;const o=(i=t==null?void 0:t.renderBefore)!==null&&i!==void 0?i:e;let s=o._$litPart$;if(s===void 0){const a=(r=t==null?void 0:t.renderBefore)!==null&&r!==void 0?r:null;o._$litPart$=s=new kt(e.insertBefore(bt(),a),a,void 0,t??{})}return s._$AI(n),s};var $i,Oi;let Ee=class extends Ge{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=Eo(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 Be}};Ee.finalized=!0,Ee._$litElement$=!0,($i=globalThis.litElementHydrateSupport)===null||$i===void 0||$i.call(globalThis,{LitElement:Ee});const Bn=globalThis.litElementPolyfillSupport;Bn==null||Bn({LitElement:Ee});((Oi=globalThis.litElementVersions)!==null&&Oi!==void 0?Oi:globalThis.litElementVersions=[]).push("3.3.3");const _o=(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)}},So=(n,e,t)=>{e.constructor.createProperty(t,n)};function k(n){return(e,t)=>t!==void 0?So(n,e,t):_o(n,e)}var te="top",ce="bottom",he="right",ie="left",rn="auto",It=[te,ce,he,ie],Je="start",wt="end",Ao="clippingParents",kr="viewport",ht="popper",Co="reference",zn=It.reduce(function(n,e){return n.concat([e+"-"+Je,e+"-"+wt])},[]),Ir=[].concat(It,[rn]).reduce(function(n,e){return n.concat([e,e+"-"+Je,e+"-"+wt])},[]),$o="beforeRead",Oo="read",ko="afterRead",Io="beforeMain",Ro="main",Po="afterMain",No="beforeWrite",Lo="write",To="afterWrite",Mo=[$o,Oo,ko,Io,Ro,Po,No,Lo,To];function we(n){return n?(n.nodeName||"").toLowerCase():null}function oe(n){if(n==null)return window;if(n.toString()!=="[object Window]"){var e=n.ownerDocument;return e&&e.defaultView||window}return n}function ze(n){var e=oe(n).Element;return n instanceof e||n instanceof Element}function le(n){var e=oe(n).HTMLElement;return n instanceof e||n instanceof HTMLElement}function sn(n){if(typeof ShadowRoot>"u")return!1;var e=oe(n).ShadowRoot;return n instanceof e||n instanceof ShadowRoot}function Do(n){var e=n.state;Object.keys(e.elements).forEach(function(t){var i=e.styles[t]||{},r=e.attributes[t]||{},o=e.elements[t];!le(o)||!we(o)||(Object.assign(o.style,i),Object.keys(r).forEach(function(s){var a=r[s];a===!1?o.removeAttribute(s):o.setAttribute(s,a===!0?"":a)}))})}function jo(n){var e=n.state,t={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,t.popper),e.styles=t,e.elements.arrow&&Object.assign(e.elements.arrow.style,t.arrow),function(){Object.keys(e.elements).forEach(function(i){var r=e.elements[i],o=e.attributes[i]||{},s=Object.keys(e.styles.hasOwnProperty(i)?e.styles[i]:t[i]),a=s.reduce(function(l,c){return l[c]="",l},{});!le(r)||!we(r)||(Object.assign(r.style,a),Object.keys(o).forEach(function(l){r.removeAttribute(l)}))})}}const Bo={name:"applyStyles",enabled:!0,phase:"write",fn:Do,effect:jo,requires:["computeStyles"]};function ye(n){return n.split("-")[0]}var Me=Math.max,ni=Math.min,Qe=Math.round;function Di(){var n=navigator.userAgentData;return n!=null&&n.brands&&Array.isArray(n.brands)?n.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function Rr(){return!/^((?!chrome|android).)*safari/i.test(Di())}function et(n,e,t){e===void 0&&(e=!1),t===void 0&&(t=!1);var i=n.getBoundingClientRect(),r=1,o=1;e&&le(n)&&(r=n.offsetWidth>0&&Qe(i.width)/n.offsetWidth||1,o=n.offsetHeight>0&&Qe(i.height)/n.offsetHeight||1);var s=ze(n)?oe(n):window,a=s.visualViewport,l=!Rr()&&t,c=(i.left+(l&&a?a.offsetLeft:0))/r,h=(i.top+(l&&a?a.offsetTop:0))/o,u=i.width/r,f=i.height/o;return{width:u,height:f,top:h,right:c+u,bottom:h+f,left:c,x:c,y:h}}function on(n){var e=et(n),t=n.offsetWidth,i=n.offsetHeight;return Math.abs(e.width-t)<=1&&(t=e.width),Math.abs(e.height-i)<=1&&(i=e.height),{x:n.offsetLeft,y:n.offsetTop,width:t,height:i}}function Pr(n,e){var t=e.getRootNode&&e.getRootNode();if(n.contains(e))return!0;if(t&&sn(t)){var i=e;do{if(i&&n.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function _e(n){return oe(n).getComputedStyle(n)}function zo(n){return["table","td","th"].indexOf(we(n))>=0}function ke(n){return((ze(n)?n.ownerDocument:n.document)||window.document).documentElement}function fi(n){return we(n)==="html"?n:n.assignedSlot||n.parentNode||(sn(n)?n.host:null)||ke(n)}function Un(n){return!le(n)||_e(n).position==="fixed"?null:n.offsetParent}function Uo(n){var e=/firefox/i.test(Di()),t=/Trident/i.test(Di());if(t&&le(n)){var i=_e(n);if(i.position==="fixed")return null}var r=fi(n);for(sn(r)&&(r=r.host);le(r)&&["html","body"].indexOf(we(r))<0;){var o=_e(r);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||e&&o.willChange==="filter"||e&&o.filter&&o.filter!=="none")return r;r=r.parentNode}return null}function Rt(n){for(var e=oe(n),t=Un(n);t&&zo(t)&&_e(t).position==="static";)t=Un(t);return t&&(we(t)==="html"||we(t)==="body"&&_e(t).position==="static")?e:t||Uo(n)||e}function an(n){return["top","bottom"].indexOf(n)>=0?"x":"y"}function pt(n,e,t){return Me(n,ni(e,t))}function Ho(n,e,t){var i=pt(n,e,t);return i>t?t:i}function Nr(){return{top:0,right:0,bottom:0,left:0}}function Lr(n){return Object.assign({},Nr(),n)}function Tr(n,e){return e.reduce(function(t,i){return t[i]=n,t},{})}var Wo=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,Lr(typeof e!="number"?e:Tr(e,It))};function Fo(n){var e,t=n.state,i=n.name,r=n.options,o=t.elements.arrow,s=t.modifiersData.popperOffsets,a=ye(t.placement),l=an(a),c=[ie,he].indexOf(a)>=0,h=c?"height":"width";if(!(!o||!s)){var u=Wo(r.padding,t),f=on(o),g=l==="y"?te:ie,E=l==="y"?ce:he,y=t.rects.reference[h]+t.rects.reference[l]-s[l]-t.rects.popper[h],p=s[l]-t.rects.reference[l],C=Rt(o),R=C?l==="y"?C.clientHeight||0:C.clientWidth||0:0,P=y/2-p/2,w=u[g],A=R-f[h]-u[E],O=R/2-f[h]/2+P,N=pt(w,O,A),T=l;t.modifiersData[i]=(e={},e[T]=N,e.centerOffset=N-O,e)}}function qo(n){var e=n.state,t=n.options,i=t.element,r=i===void 0?"[data-popper-arrow]":i;r!=null&&(typeof r=="string"&&(r=e.elements.popper.querySelector(r),!r)||Pr(e.elements.popper,r)&&(e.elements.arrow=r))}const Ko={name:"arrow",enabled:!0,phase:"main",fn:Fo,effect:qo,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function tt(n){return n.split("-")[1]}var Vo={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Go(n,e){var t=n.x,i=n.y,r=e.devicePixelRatio||1;return{x:Qe(t*r)/r||0,y:Qe(i*r)/r||0}}function Hn(n){var e,t=n.popper,i=n.popperRect,r=n.placement,o=n.variation,s=n.offsets,a=n.position,l=n.gpuAcceleration,c=n.adaptive,h=n.roundOffsets,u=n.isFixed,f=s.x,g=f===void 0?0:f,E=s.y,y=E===void 0?0:E,p=typeof h=="function"?h({x:g,y}):{x:g,y};g=p.x,y=p.y;var C=s.hasOwnProperty("x"),R=s.hasOwnProperty("y"),P=ie,w=te,A=window;if(c){var O=Rt(t),N="clientHeight",T="clientWidth";if(O===oe(t)&&(O=ke(t),_e(O).position!=="static"&&a==="absolute"&&(N="scrollHeight",T="scrollWidth")),O=O,r===te||(r===ie||r===he)&&o===wt){w=ce;var I=u&&O===A&&A.visualViewport?A.visualViewport.height:O[N];y-=I-i.height,y*=l?1:-1}if(r===ie||(r===te||r===ce)&&o===wt){P=he;var j=u&&O===A&&A.visualViewport?A.visualViewport.width:O[T];g-=j-i.width,g*=l?1:-1}}var q=Object.assign({position:a},c&&Vo),J=h===!0?Go({x:g,y},oe(t)):{x:g,y};if(g=J.x,y=J.y,l){var K;return Object.assign({},q,(K={},K[w]=R?"0":"",K[P]=C?"0":"",K.transform=(A.devicePixelRatio||1)<=1?"translate("+g+"px, "+y+"px)":"translate3d("+g+"px, "+y+"px, 0)",K))}return Object.assign({},q,(e={},e[w]=R?y+"px":"",e[P]=C?g+"px":"",e.transform="",e))}function Zo(n){var e=n.state,t=n.options,i=t.gpuAcceleration,r=i===void 0?!0:i,o=t.adaptive,s=o===void 0?!0:o,a=t.roundOffsets,l=a===void 0?!0:a,c={placement:ye(e.placement),variation:tt(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:r,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,Hn(Object.assign({},c,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:s,roundOffsets:l})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,Hn(Object.assign({},c,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const Xo={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Zo,data:{}};var jt={passive:!0};function Yo(n){var e=n.state,t=n.instance,i=n.options,r=i.scroll,o=r===void 0?!0:r,s=i.resize,a=s===void 0?!0:s,l=oe(e.elements.popper),c=[].concat(e.scrollParents.reference,e.scrollParents.popper);return o&&c.forEach(function(h){h.addEventListener("scroll",t.update,jt)}),a&&l.addEventListener("resize",t.update,jt),function(){o&&c.forEach(function(h){h.removeEventListener("scroll",t.update,jt)}),a&&l.removeEventListener("resize",t.update,jt)}}const Jo={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Yo,data:{}};var Qo={left:"right",right:"left",bottom:"top",top:"bottom"};function Jt(n){return n.replace(/left|right|bottom|top/g,function(e){return Qo[e]})}var ea={start:"end",end:"start"};function Wn(n){return n.replace(/start|end/g,function(e){return ea[e]})}function ln(n){var e=oe(n),t=e.pageXOffset,i=e.pageYOffset;return{scrollLeft:t,scrollTop:i}}function cn(n){return et(ke(n)).left+ln(n).scrollLeft}function ta(n,e){var t=oe(n),i=ke(n),r=t.visualViewport,o=i.clientWidth,s=i.clientHeight,a=0,l=0;if(r){o=r.width,s=r.height;var c=Rr();(c||!c&&e==="fixed")&&(a=r.offsetLeft,l=r.offsetTop)}return{width:o,height:s,x:a+cn(n),y:l}}function ia(n){var e,t=ke(n),i=ln(n),r=(e=n.ownerDocument)==null?void 0:e.body,o=Me(t.scrollWidth,t.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),s=Me(t.scrollHeight,t.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),a=-i.scrollLeft+cn(n),l=-i.scrollTop;return _e(r||t).direction==="rtl"&&(a+=Me(t.clientWidth,r?r.clientWidth:0)-o),{width:o,height:s,x:a,y:l}}function hn(n){var e=_e(n),t=e.overflow,i=e.overflowX,r=e.overflowY;return/auto|scroll|overlay|hidden/.test(t+r+i)}function Mr(n){return["html","body","#document"].indexOf(we(n))>=0?n.ownerDocument.body:le(n)&&hn(n)?n:Mr(fi(n))}function mt(n,e){var t;e===void 0&&(e=[]);var i=Mr(n),r=i===((t=n.ownerDocument)==null?void 0:t.body),o=oe(i),s=r?[o].concat(o.visualViewport||[],hn(i)?i:[]):i,a=e.concat(s);return r?a:a.concat(mt(fi(s)))}function ji(n){return Object.assign({},n,{left:n.x,top:n.y,right:n.x+n.width,bottom:n.y+n.height})}function na(n,e){var t=et(n,!1,e==="fixed");return t.top=t.top+n.clientTop,t.left=t.left+n.clientLeft,t.bottom=t.top+n.clientHeight,t.right=t.left+n.clientWidth,t.width=n.clientWidth,t.height=n.clientHeight,t.x=t.left,t.y=t.top,t}function Fn(n,e,t){return e===kr?ji(ta(n,t)):ze(e)?na(e,t):ji(ia(ke(n)))}function ra(n){var e=mt(fi(n)),t=["absolute","fixed"].indexOf(_e(n).position)>=0,i=t&&le(n)?Rt(n):n;return ze(i)?e.filter(function(r){return ze(r)&&Pr(r,i)&&we(r)!=="body"}):[]}function sa(n,e,t,i){var r=e==="clippingParents"?ra(n):[].concat(e),o=[].concat(r,[t]),s=o[0],a=o.reduce(function(l,c){var h=Fn(n,c,i);return l.top=Me(h.top,l.top),l.right=ni(h.right,l.right),l.bottom=ni(h.bottom,l.bottom),l.left=Me(h.left,l.left),l},Fn(n,s,i));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function Dr(n){var e=n.reference,t=n.element,i=n.placement,r=i?ye(i):null,o=i?tt(i):null,s=e.x+e.width/2-t.width/2,a=e.y+e.height/2-t.height/2,l;switch(r){case te:l={x:s,y:e.y-t.height};break;case ce:l={x:s,y:e.y+e.height};break;case he:l={x:e.x+e.width,y:a};break;case ie:l={x:e.x-t.width,y:a};break;default:l={x:e.x,y:e.y}}var c=r?an(r):null;if(c!=null){var h=c==="y"?"height":"width";switch(o){case Je:l[c]=l[c]-(e[h]/2-t[h]/2);break;case wt:l[c]=l[c]+(e[h]/2-t[h]/2);break}}return l}function xt(n,e){e===void 0&&(e={});var t=e,i=t.placement,r=i===void 0?n.placement:i,o=t.strategy,s=o===void 0?n.strategy:o,a=t.boundary,l=a===void 0?Ao:a,c=t.rootBoundary,h=c===void 0?kr:c,u=t.elementContext,f=u===void 0?ht:u,g=t.altBoundary,E=g===void 0?!1:g,y=t.padding,p=y===void 0?0:y,C=Lr(typeof p!="number"?p:Tr(p,It)),R=f===ht?Co:ht,P=n.rects.popper,w=n.elements[E?R:f],A=sa(ze(w)?w:w.contextElement||ke(n.elements.popper),l,h,s),O=et(n.elements.reference),N=Dr({reference:O,element:P,strategy:"absolute",placement:r}),T=ji(Object.assign({},P,N)),I=f===ht?T:O,j={top:A.top-I.top+C.top,bottom:I.bottom-A.bottom+C.bottom,left:A.left-I.left+C.left,right:I.right-A.right+C.right},q=n.modifiersData.offset;if(f===ht&&q){var J=q[r];Object.keys(j).forEach(function(K){var de=[he,ce].indexOf(K)>=0?1:-1,Q=[te,ce].indexOf(K)>=0?"y":"x";j[K]+=J[Q]*de})}return j}function oa(n,e){e===void 0&&(e={});var t=e,i=t.placement,r=t.boundary,o=t.rootBoundary,s=t.padding,a=t.flipVariations,l=t.allowedAutoPlacements,c=l===void 0?Ir:l,h=tt(i),u=h?a?zn:zn.filter(function(E){return tt(E)===h}):It,f=u.filter(function(E){return c.indexOf(E)>=0});f.length===0&&(f=u);var g=f.reduce(function(E,y){return E[y]=xt(n,{placement:y,boundary:r,rootBoundary:o,padding:s})[ye(y)],E},{});return Object.keys(g).sort(function(E,y){return g[E]-g[y]})}function aa(n){if(ye(n)===rn)return[];var e=Jt(n);return[Wn(n),e,Wn(e)]}function la(n){var e=n.state,t=n.options,i=n.name;if(!e.modifiersData[i]._skip){for(var r=t.mainAxis,o=r===void 0?!0:r,s=t.altAxis,a=s===void 0?!0:s,l=t.fallbackPlacements,c=t.padding,h=t.boundary,u=t.rootBoundary,f=t.altBoundary,g=t.flipVariations,E=g===void 0?!0:g,y=t.allowedAutoPlacements,p=e.options.placement,C=ye(p),R=C===p,P=l||(R||!E?[Jt(p)]:aa(p)),w=[p].concat(P).reduce(function(ue,W){return ue.concat(ye(W)===rn?oa(e,{placement:W,boundary:h,rootBoundary:u,padding:c,flipVariations:E,allowedAutoPlacements:y}):W)},[]),A=e.rects.reference,O=e.rects.popper,N=new Map,T=!0,I=w[0],j=0;j<w.length;j++){var q=w[j],J=ye(q),K=tt(q)===Je,de=[te,ce].indexOf(J)>=0,Q=de?"width":"height",G=xt(e,{placement:q,boundary:h,rootBoundary:u,altBoundary:f,padding:c}),d=de?K?he:ie:K?ce:te;A[Q]>O[Q]&&(d=Jt(d));var b=Jt(d),x=[];if(o&&x.push(G[J]<=0),a&&x.push(G[d]<=0,G[b]<=0),x.every(function(ue){return ue})){I=q,T=!1;break}N.set(q,x)}if(T)for(var $=E?3:1,B=function(W){var Z=w.find(function(Re){var ge=N.get(Re);if(ge)return ge.slice(0,W).every(function(We){return We})});if(Z)return I=Z,"break"},V=$;V>0;V--){var ne=B(V);if(ne==="break")break}e.placement!==I&&(e.modifiersData[i]._skip=!0,e.placement=I,e.reset=!0)}}const ca={name:"flip",enabled:!0,phase:"main",fn:la,requiresIfExists:["offset"],data:{_skip:!1}};function qn(n,e,t){return t===void 0&&(t={x:0,y:0}),{top:n.top-e.height-t.y,right:n.right-e.width+t.x,bottom:n.bottom-e.height+t.y,left:n.left-e.width-t.x}}function Kn(n){return[te,he,ce,ie].some(function(e){return n[e]>=0})}function ha(n){var e=n.state,t=n.name,i=e.rects.reference,r=e.rects.popper,o=e.modifiersData.preventOverflow,s=xt(e,{elementContext:"reference"}),a=xt(e,{altBoundary:!0}),l=qn(s,i),c=qn(a,r,o),h=Kn(l),u=Kn(c);e.modifiersData[t]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:h,hasPopperEscaped:u},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":h,"data-popper-escaped":u})}const da={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:ha};function ua(n,e,t){var i=ye(n),r=[ie,te].indexOf(i)>=0?-1:1,o=typeof t=="function"?t(Object.assign({},e,{placement:n})):t,s=o[0],a=o[1];return s=s||0,a=(a||0)*r,[ie,he].indexOf(i)>=0?{x:a,y:s}:{x:s,y:a}}function fa(n){var e=n.state,t=n.options,i=n.name,r=t.offset,o=r===void 0?[0,0]:r,s=Ir.reduce(function(h,u){return h[u]=ua(u,e.rects,o),h},{}),a=s[e.placement],l=a.x,c=a.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=l,e.modifiersData.popperOffsets.y+=c),e.modifiersData[i]=s}const pa={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:fa};function ma(n){var e=n.state,t=n.name;e.modifiersData[t]=Dr({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}const ga={name:"popperOffsets",enabled:!0,phase:"read",fn:ma,data:{}};function ba(n){return n==="x"?"y":"x"}function va(n){var e=n.state,t=n.options,i=n.name,r=t.mainAxis,o=r===void 0?!0:r,s=t.altAxis,a=s===void 0?!1:s,l=t.boundary,c=t.rootBoundary,h=t.altBoundary,u=t.padding,f=t.tether,g=f===void 0?!0:f,E=t.tetherOffset,y=E===void 0?0:E,p=xt(e,{boundary:l,rootBoundary:c,padding:u,altBoundary:h}),C=ye(e.placement),R=tt(e.placement),P=!R,w=an(C),A=ba(w),O=e.modifiersData.popperOffsets,N=e.rects.reference,T=e.rects.popper,I=typeof y=="function"?y(Object.assign({},e.rects,{placement:e.placement})):y,j=typeof I=="number"?{mainAxis:I,altAxis:I}:Object.assign({mainAxis:0,altAxis:0},I),q=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,J={x:0,y:0};if(O){if(o){var K,de=w==="y"?te:ie,Q=w==="y"?ce:he,G=w==="y"?"height":"width",d=O[w],b=d+p[de],x=d-p[Q],$=g?-T[G]/2:0,B=R===Je?N[G]:T[G],V=R===Je?-T[G]:-N[G],ne=e.elements.arrow,ue=g&&ne?on(ne):{width:0,height:0},W=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:Nr(),Z=W[de],Re=W[Q],ge=pt(0,N[G],ue[G]),We=P?N[G]/2-$-ge-Z-j.mainAxis:B-ge-Z-j.mainAxis,xi=P?-N[G]/2+$+ge+Re+j.mainAxis:V+ge+Re+j.mainAxis,at=e.elements.arrow&&Rt(e.elements.arrow),Ei=at?w==="y"?at.clientTop||0:at.clientLeft||0:0,Tt=(K=q==null?void 0:q[w])!=null?K:0,Fe=d+We-Tt-Ei,Mt=d+xi-Tt,re=pt(g?ni(b,Fe):b,d,g?Me(x,Mt):x);O[w]=re,J[w]=re-d}if(a){var Dt,lt=w==="x"?te:ie,_=w==="x"?ce:he,be=O[A],F=A==="y"?"height":"width",M=be+p[lt],Pe=be-p[_],fe=[te,ie].indexOf(C)!==-1,qe=(Dt=q==null?void 0:q[A])!=null?Dt:0,Ke=fe?M:be-N[F]-T[F]-qe+j.altAxis,m=fe?be+N[F]+T[F]-qe-j.altAxis:Pe,v=g&&fe?Ho(Ke,be,m):pt(g?Ke:M,be,g?m:Pe);O[A]=v,J[A]=v-be}e.modifiersData[i]=J}}const ya={name:"preventOverflow",enabled:!0,phase:"main",fn:va,requiresIfExists:["offset"]};function wa(n){return{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}}function xa(n){return n===oe(n)||!le(n)?ln(n):wa(n)}function Ea(n){var e=n.getBoundingClientRect(),t=Qe(e.width)/n.offsetWidth||1,i=Qe(e.height)/n.offsetHeight||1;return t!==1||i!==1}function _a(n,e,t){t===void 0&&(t=!1);var i=le(e),r=le(e)&&Ea(e),o=ke(e),s=et(n,r,t),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(i||!i&&!t)&&((we(e)!=="body"||hn(o))&&(a=xa(e)),le(e)?(l=et(e,!0),l.x+=e.clientLeft,l.y+=e.clientTop):o&&(l.x=cn(o))),{x:s.left+a.scrollLeft-l.x,y:s.top+a.scrollTop-l.y,width:s.width,height:s.height}}function Sa(n){var e=new Map,t=new Set,i=[];n.forEach(function(o){e.set(o.name,o)});function r(o){t.add(o.name);var s=[].concat(o.requires||[],o.requiresIfExists||[]);s.forEach(function(a){if(!t.has(a)){var l=e.get(a);l&&r(l)}}),i.push(o)}return n.forEach(function(o){t.has(o.name)||r(o)}),i}function Aa(n){var e=Sa(n);return Mo.reduce(function(t,i){return t.concat(e.filter(function(r){return r.phase===i}))},[])}function Ca(n){var e;return function(){return e||(e=new Promise(function(t){Promise.resolve().then(function(){e=void 0,t(n())})})),e}}function $a(n){var e=n.reduce(function(t,i){var r=t[i.name];return t[i.name]=r?Object.assign({},r,i,{options:Object.assign({},r.options,i.options),data:Object.assign({},r.data,i.data)}):i,t},{});return Object.keys(e).map(function(t){return e[t]})}var Vn={placement:"bottom",modifiers:[],strategy:"absolute"};function Gn(){for(var n=arguments.length,e=new Array(n),t=0;t<n;t++)e[t]=arguments[t];return!e.some(function(i){return!(i&&typeof i.getBoundingClientRect=="function")})}function Oa(n){n===void 0&&(n={});var e=n,t=e.defaultModifiers,i=t===void 0?[]:t,r=e.defaultOptions,o=r===void 0?Vn:r;return function(a,l,c){c===void 0&&(c=o);var h={placement:"bottom",orderedModifiers:[],options:Object.assign({},Vn,o),modifiersData:{},elements:{reference:a,popper:l},attributes:{},styles:{}},u=[],f=!1,g={state:h,setOptions:function(C){var R=typeof C=="function"?C(h.options):C;y(),h.options=Object.assign({},o,h.options,R),h.scrollParents={reference:ze(a)?mt(a):a.contextElement?mt(a.contextElement):[],popper:mt(l)};var P=Aa($a([].concat(i,h.options.modifiers)));return h.orderedModifiers=P.filter(function(w){return w.enabled}),E(),g.update()},forceUpdate:function(){if(!f){var C=h.elements,R=C.reference,P=C.popper;if(Gn(R,P)){h.rects={reference:_a(R,Rt(P),h.options.strategy==="fixed"),popper:on(P)},h.reset=!1,h.placement=h.options.placement,h.orderedModifiers.forEach(function(j){return h.modifiersData[j.name]=Object.assign({},j.data)});for(var w=0;w<h.orderedModifiers.length;w++){if(h.reset===!0){h.reset=!1,w=-1;continue}var A=h.orderedModifiers[w],O=A.fn,N=A.options,T=N===void 0?{}:N,I=A.name;typeof O=="function"&&(h=O({state:h,options:T,name:I,instance:g})||h)}}}},update:Ca(function(){return new Promise(function(p){g.forceUpdate(),p(h)})}),destroy:function(){y(),f=!0}};if(!Gn(a,l))return g;g.setOptions(c).then(function(p){!f&&c.onFirstUpdate&&c.onFirstUpdate(p)});function E(){h.orderedModifiers.forEach(function(p){var C=p.name,R=p.options,P=R===void 0?{}:R,w=p.effect;if(typeof w=="function"){var A=w({state:h,name:C,instance:g,options:P}),O=function(){};u.push(A||O)}})}function y(){u.forEach(function(p){return p()}),u=[]}return g}}var ka=[Jo,ga,Xo,Bo,pa,ca,ya,Ko,da],Ia=Oa({defaultModifiers:ka});const Ra={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Pa=n=>(...e)=>({_$litDirective$:n,values:e});class Na{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,i){this._$Ct=e,this._$AM=t,this._$Ci=i}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}}class Bi extends Na{constructor(e){if(super(e),this.et=H,e.type!==Ra.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===H||e==null)return this.ft=void 0,this.et=e;if(e===Be)return e;if(typeof e!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.et)return this.ft;this.et=e;const t=[e];return t.raw=t,this.ft={_$litType$:this.constructor.resultType,strings:t,values:[]}}}Bi.directiveName="unsafeHTML",Bi.resultType=1;const La=Pa(Bi);const Bt=n=>n??H;let Ta=class{static showImage(e,t,i,r){let o;if(r||!(e instanceof HTMLImageElement)?o=s=>e.style.backgroundImage=this.prepareSrc(s):o=s=>e.src=s,o(i),t){const s=()=>{o(t)},a=new Image;a.addEventListener("load",s),a.src=t,a.complete&&(a.removeEventListener("load",s),s())}}static prepareSrc(e){return e?e.startsWith("url")?e:`url("${e}")`:null}};const Ma=':host{display:block;contain:strict;height:50px}:host([selected]){background-color:#d3e6fa}:host(:not([selected]):hover),:host(:not([selected])[focused]){background-color:#e7f1fa}@media (forced-colors: active){:host([selected]){outline:4px solid}:host(:not([selected]):hover){outline:4px dotted}:host(:not([selected])[focused]){outline:4px dashed}}:host([enable-line-clamp]) .labels>:only-child{display:-webkit-box;overflow:hidden;-webkit-line-clamp:2;-webkit-box-orient:vertical;white-space:normal;word-wrap:break-word}.container{display:flex;height:100%;box-sizing:border-box}.container .level-indicator{width:7px;height:100%}.container .level-indicator.level-0{background-color:#a0c3ef}.container .level-indicator.level-1{background-color:#e7c374}.container .level-indicator.level-2{background-color:#bfd596}.container .level-indicator.level-3{background-color:#fd998d}.container .level-indicator.level-4{background-color:#c6e8f5}.container .level-indicator.level-5{background-color:#fde3a4}.container .level-indicator.level-6{background-color:#dcbfe0}.side-content{display:flex;align-items:center;flex-grow:0}.labels{display:flex;flex-direction:column;justify-content:center;flex:1 1 0px;height:100%;line-height:normal;overflow:hidden;padding:var(--sd-list-item-label-content-padding, 0 8px)}.caption,.description{width:100%;font-family:var(--sd-list-item-font-family, "Segoe UI", "Lucida Sans", Arial, sans-serif);font-style:normal;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;-webkit-user-select:none;user-select:none;text-decoration:var(--sd-list-item-text-decoration, inherit)}.caption em,.description em{font-weight:bolder}.caption{font-size:var(--sd-list-item-caption-font-size, 16px);color:var(--sd-list-item-caption-text-color, #111);font-weight:var(--sd-list-item-caption-font-weight, normal)}.description{font-size:var(--sd-list-item-description-font-size, 13px);color:var(--sd-list-item-description-text-color, #767676);font-weight:var(--sd-list-item-description-font-weight, normal)}.icon-wrapper{width:var(--sd-list-item-icon-wrapper-width, 45px);height:100%;display:flex;align-items:center;justify-content:center}.icon-wrapper .icon{min-height:var(--sd-list-item-icon-size, 24px);min-width:var(--sd-list-item-icon-size, 24px);background-repeat:no-repeat;background-position:center;background-size:cover}';var Da=Object.defineProperty,ja=Object.getOwnPropertyDescriptor,ee=(n,e,t,i)=>{for(var r=i>1?void 0:i?ja(e,t):e,o=n.length-1,s;o>=0;o--)(s=n[o])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&Da(e,t,r),r},Le;const Y=(Le=class extends Ee{constructor(){super(...arguments),this.contentMode="text",this.role="option"}static get styles(){return[di`
|
|
167
|
-
${
|
|
168
|
-
`]}render(){return
|
|
164
|
+
`,po={mainContent:co,description:uo,css:ho,initializer:{content:fo,type:"typescript",initialize:()=>Wr(()=>import("./3_vertical.js"),[],import.meta.url)}},mo=Object.freeze(Object.defineProperty({__proto__:null,default:po},Symbol.toStringTag,{value:"Module"}));const ni=globalThis,un=ni.ShadowRoot&&(ni.ShadyCSS===void 0||ni.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,hn=Symbol(),Kn=new WeakMap;let Fr=class{constructor(e,i,r){if(this._$cssResult$=!0,r!==hn)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(un&&e===void 0){const r=i!==void 0&&i.length===1;r&&(e=Kn.get(i)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),r&&Kn.set(i,e))}return e}toString(){return this.cssText}};const Dt=t=>new Fr(typeof t=="string"?t:t+"",void 0,hn),hi=(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 Fr(i,t,hn)},go=(t,e)=>{if(un)t.adoptedStyleSheets=e.map((i=>i instanceof CSSStyleSheet?i:i.styleSheet));else for(const i of e){const r=document.createElement("style"),n=ni.litNonce;n!==void 0&&r.setAttribute("nonce",n),r.textContent=i.cssText,t.appendChild(r)}},Vn=un?t=>t:t=>t instanceof CSSStyleSheet?(e=>{let i="";for(const r of e.cssRules)i+=r.cssText;return Dt(i)})(t):t;const{is:bo,defineProperty:vo,getOwnPropertyDescriptor:yo,getOwnPropertyNames:wo,getOwnPropertySymbols:xo,getPrototypeOf:_o}=Object,di=globalThis,Gn=di.trustedTypes,Eo=Gn?Gn.emptyScript:"",So=di.reactiveElementPolyfillSupport,Ot=(t,e)=>t,si={toAttribute(t,e){switch(e){case Boolean:t=t?Eo: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}},dn=(t,e)=>!bo(t,e),Zn={attribute:!0,type:String,converter:si,reflect:!1,useDefault:!1,hasChanged:dn};Symbol.metadata??=Symbol("metadata"),di.litPropertyMetadata??=new WeakMap;let dt=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=Zn){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&&vo(this.prototype,e,n)}}static getPropertyDescriptor(e,i,r){const{get:n,set:s}=yo(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)??Zn}static _$Ei(){if(this.hasOwnProperty(Ot("elementProperties")))return;const e=_o(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(Ot("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Ot("properties"))){const i=this.properties,r=[...wo(i),...xo(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(Vn(n))}else e!==void 0&&i.push(Vn(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 go(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:si).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:si;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??dn)(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){}};dt.elementStyles=[],dt.shadowRootOptions={mode:"open"},dt[Ot("elementProperties")]=new Map,dt[Ot("finalized")]=new Map,So?.({ReactiveElement:dt}),(di.reactiveElementVersions??=[]).push("2.1.1");const fn=globalThis,oi=fn.trustedTypes,Xn=oi?oi.createPolicy("lit-html",{createHTML:t=>t}):void 0,Kr="$lit$",Ge=`lit$${Math.random().toFixed(9).slice(2)}$`,Vr="?"+Ge,Ao=`<${Vr}>`,st=document,Pt=()=>st.createComment(""),Nt=t=>t===null||typeof t!="object"&&typeof t!="function",pn=Array.isArray,Co=t=>pn(t)||typeof t?.[Symbol.iterator]=="function",Ii=`[
|
|
165
|
+
\f\r]`,St=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Jn=/-->/g,Yn=/>/g,tt=RegExp(`>|${Ii}(?:([^\\s"'>=/]+)(${Ii}*=${Ii}*(?:[^
|
|
166
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),Qn=/'/g,er=/"/g,Gr=/^(?:script|style|textarea|title)$/i,Oo=t=>(e,...i)=>({_$litType$:t,strings:e,values:i}),ve=Oo(1),ot=Symbol.for("lit-noChange"),Y=Symbol.for("lit-nothing"),tr=new WeakMap,nt=st.createTreeWalker(st,129);function Zr(t,e){if(!pn(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return Xn!==void 0?Xn.createHTML(e):e}const ko=(t,e)=>{const i=t.length-1,r=[];let n,s=e===2?"<svg>":e===3?"<math>":"",a=St;for(let d=0;d<i;d++){const f=t[d];let h,o,u=-1,c=0;for(;c<f.length&&(a.lastIndex=c,o=a.exec(f),o!==null);)c=a.lastIndex,a===St?o[1]==="!--"?a=Jn:o[1]!==void 0?a=Yn:o[2]!==void 0?(Gr.test(o[2])&&(n=RegExp("</"+o[2],"g")),a=tt):o[3]!==void 0&&(a=tt):a===tt?o[0]===">"?(a=n??St,u=-1):o[1]===void 0?u=-2:(u=a.lastIndex-o[2].length,h=o[1],a=o[3]===void 0?tt:o[3]==='"'?er:Qn):a===er||a===Qn?a=tt:a===Jn||a===Yn?a=St:(a=tt,n=void 0);const l=a===tt&&t[d+1].startsWith("/>")?" ":"";s+=a===St?f+Ao:u>=0?(r.push(h),f.slice(0,u)+Kr+f.slice(u)+Ge+l):f+Ge+(u===-2?d:l)}return[Zr(t,s+(t[i]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),r]};class Mt{constructor({strings:e,_$litType$:i},r){let n;this.parts=[];let s=0,a=0;const d=e.length-1,f=this.parts,[h,o]=ko(e,i);if(this.el=Mt.createElement(h,r),nt.currentNode=this.el.content,i===2||i===3){const u=this.el.content.firstChild;u.replaceWith(...u.childNodes)}for(;(n=nt.nextNode())!==null&&f.length<d;){if(n.nodeType===1){if(n.hasAttributes())for(const u of n.getAttributeNames())if(u.endsWith(Kr)){const c=o[a++],l=n.getAttribute(u).split(Ge),p=/([.?@])?(.*)/.exec(c);f.push({type:1,index:s,name:p[2],strings:l,ctor:p[1]==="."?Ro:p[1]==="?"?Io:p[1]==="@"?Po:fi}),n.removeAttribute(u)}else u.startsWith(Ge)&&(f.push({type:6,index:s}),n.removeAttribute(u));if(Gr.test(n.tagName)){const u=n.textContent.split(Ge),c=u.length-1;if(c>0){n.textContent=oi?oi.emptyScript:"";for(let l=0;l<c;l++)n.append(u[l],Pt()),nt.nextNode(),f.push({type:2,index:++s});n.append(u[c],Pt())}}}else if(n.nodeType===8)if(n.data===Vr)f.push({type:2,index:s});else{let u=-1;for(;(u=n.data.indexOf(Ge,u+1))!==-1;)f.push({type:7,index:s}),u+=Ge.length-1}s++}}static createElement(e,i){const r=st.createElement("template");return r.innerHTML=e,r}}function pt(t,e,i=t,r){if(e===ot)return e;let n=r!==void 0?i._$Co?.[r]:i._$Cl;const s=Nt(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=pt(t,n._$AS(t,e.values),n,r)),e}class $o{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??st).importNode(i,!0);nt.currentNode=n;let s=nt.nextNode(),a=0,d=0,f=r[0];for(;f!==void 0;){if(a===f.index){let h;f.type===2?h=new jt(s,s.nextSibling,this,e):f.type===1?h=new f.ctor(s,f.name,f.strings,this,e):f.type===6&&(h=new No(s,this,e)),this._$AV.push(h),f=r[++d]}a!==f?.index&&(s=nt.nextNode(),a++)}return nt.currentNode=st,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 jt{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,i,r,n){this.type=2,this._$AH=Y,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=pt(this,e,i),Nt(e)?e===Y||e==null||e===""?(this._$AH!==Y&&this._$AR(),this._$AH=Y):e!==this._$AH&&e!==ot&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):Co(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!==Y&&Nt(this._$AH)?this._$AA.nextSibling.data=e:this.T(st.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=Mt.createElement(Zr(r.h,r.h[0]),this.options)),r);if(this._$AH?._$AD===n)this._$AH.p(i);else{const s=new $o(n,this),a=s.u(this.options);s.p(i),this.T(a),this._$AH=s}}_$AC(e){let i=tr.get(e.strings);return i===void 0&&tr.set(e.strings,i=new Mt(e)),i}k(e){pn(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 jt(this.O(Pt()),this.O(Pt()),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 fi{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,i,r,n,s){this.type=1,this._$AH=Y,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=Y}_$AI(e,i=this,r,n){const s=this.strings;let a=!1;if(s===void 0)e=pt(this,e,i,0),a=!Nt(e)||e!==this._$AH&&e!==ot,a&&(this._$AH=e);else{const d=e;let f,h;for(e=s[0],f=0;f<s.length-1;f++)h=pt(this,d[r+f],i,f),h===ot&&(h=this._$AH[f]),a||=!Nt(h)||h!==this._$AH[f],h===Y?e=Y:e!==Y&&(e+=(h??"")+s[f+1]),this._$AH[f]=h}a&&!n&&this.j(e)}j(e){e===Y?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}}class Ro extends fi{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===Y?void 0:e}}let Io=class extends fi{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==Y)}},Po=class extends fi{constructor(e,i,r,n,s){super(e,i,r,n,s),this.type=5}_$AI(e,i=this){if((e=pt(this,e,i,0)??Y)===ot)return;const r=this._$AH,n=e===Y&&r!==Y||e.capture!==r.capture||e.once!==r.once||e.passive!==r.passive,s=e!==Y&&(r===Y||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)}};class No{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){pt(this,e)}}const Mo=fn.litHtmlPolyfillSupport;Mo?.(Mt,jt),(fn.litHtmlVersions??=[]).push("3.3.1");const To=(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 jt(e.insertBefore(Pt(),s),s,void 0,i??{})}return n._$AI(t),n};const mn=globalThis;let qe=class extends dt{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=To(i,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return ot}};qe._$litElement$=!0,qe.finalized=!0,mn.litElementHydrateSupport?.({LitElement:qe});const Lo=mn.litElementPolyfillSupport;Lo?.({LitElement:qe});(mn.litElementVersions??=[]).push("4.2.1");const Do={attribute:!0,type:String,converter:si,reflect:!1,hasChanged:dn},jo=(t=Do,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 f=e.get.call(this);e.set.call(this,d),this.requestUpdate(a,f,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 f=this[a];e.call(this,d),this.requestUpdate(a,f,t)}}throw Error("Unsupported decorator location: "+r)};function K(t){return(e,i)=>typeof i=="object"?jo(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)}var pe="top",Ae="bottom",Ce="right",me="left",gn="auto",Bt=[pe,Ae,Ce,me],mt="start",Tt="end",Bo="clippingParents",Xr="viewport",At="popper",zo="reference",ir=Bt.reduce(function(t,e){return t.concat([e+"-"+mt,e+"-"+Tt])},[]),Jr=[].concat(Bt,[gn]).reduce(function(t,e){return t.concat([e,e+"-"+mt,e+"-"+Tt])},[]),Uo="beforeRead",qo="read",Ho="afterRead",Wo="beforeMain",Fo="main",Ko="afterMain",Vo="beforeWrite",Go="write",Zo="afterWrite",Xo=[Uo,qo,Ho,Wo,Fo,Ko,Vo,Go,Zo];function De(t){return t?(t.nodeName||"").toLowerCase():null}function we(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function at(t){var e=we(t).Element;return t instanceof e||t instanceof Element}function Se(t){var e=we(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function bn(t){if(typeof ShadowRoot>"u")return!1;var e=we(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function Jo(t){var e=t.state;Object.keys(e.elements).forEach(function(i){var r=e.styles[i]||{},n=e.attributes[i]||{},s=e.elements[i];!Se(s)||!De(s)||(Object.assign(s.style,r),Object.keys(n).forEach(function(a){var d=n[a];d===!1?s.removeAttribute(a):s.setAttribute(a,d===!0?"":d)}))})}function Yo(t){var e=t.state,i={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,i.popper),e.styles=i,e.elements.arrow&&Object.assign(e.elements.arrow.style,i.arrow),function(){Object.keys(e.elements).forEach(function(r){var n=e.elements[r],s=e.attributes[r]||{},a=Object.keys(e.styles.hasOwnProperty(r)?e.styles[r]:i[r]),d=a.reduce(function(f,h){return f[h]="",f},{});!Se(n)||!De(n)||(Object.assign(n.style,d),Object.keys(s).forEach(function(f){n.removeAttribute(f)}))})}}const Qo={name:"applyStyles",enabled:!0,phase:"write",fn:Jo,effect:Yo,requires:["computeStyles"]};function Le(t){return t.split("-")[0]}var rt=Math.max,ai=Math.min,gt=Math.round;function an(){var t=navigator.userAgentData;return t!=null&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function Yr(){return!/^((?!chrome|android).)*safari/i.test(an())}function bt(t,e,i){e===void 0&&(e=!1),i===void 0&&(i=!1);var r=t.getBoundingClientRect(),n=1,s=1;e&&Se(t)&&(n=t.offsetWidth>0&>(r.width)/t.offsetWidth||1,s=t.offsetHeight>0&>(r.height)/t.offsetHeight||1);var a=at(t)?we(t):window,d=a.visualViewport,f=!Yr()&&i,h=(r.left+(f&&d?d.offsetLeft:0))/n,o=(r.top+(f&&d?d.offsetTop:0))/s,u=r.width/n,c=r.height/s;return{width:u,height:c,top:o,right:h+u,bottom:o+c,left:h,x:h,y:o}}function vn(t){var e=bt(t),i=t.offsetWidth,r=t.offsetHeight;return Math.abs(e.width-i)<=1&&(i=e.width),Math.abs(e.height-r)<=1&&(r=e.height),{x:t.offsetLeft,y:t.offsetTop,width:i,height:r}}function Qr(t,e){var i=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(i&&bn(i)){var r=e;do{if(r&&t.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function He(t){return we(t).getComputedStyle(t)}function ea(t){return["table","td","th"].indexOf(De(t))>=0}function Ze(t){return((at(t)?t.ownerDocument:t.document)||window.document).documentElement}function pi(t){return De(t)==="html"?t:t.assignedSlot||t.parentNode||(bn(t)?t.host:null)||Ze(t)}function nr(t){return!Se(t)||He(t).position==="fixed"?null:t.offsetParent}function ta(t){var e=/firefox/i.test(an()),i=/Trident/i.test(an());if(i&&Se(t)){var r=He(t);if(r.position==="fixed")return null}var n=pi(t);for(bn(n)&&(n=n.host);Se(n)&&["html","body"].indexOf(De(n))<0;){var s=He(n);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||e&&s.willChange==="filter"||e&&s.filter&&s.filter!=="none")return n;n=n.parentNode}return null}function zt(t){for(var e=we(t),i=nr(t);i&&ea(i)&&He(i).position==="static";)i=nr(i);return i&&(De(i)==="html"||De(i)==="body"&&He(i).position==="static")?e:i||ta(t)||e}function yn(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function kt(t,e,i){return rt(t,ai(e,i))}function ia(t,e,i){var r=kt(t,e,i);return r>i?i:r}function es(){return{top:0,right:0,bottom:0,left:0}}function ts(t){return Object.assign({},es(),t)}function is(t,e){return e.reduce(function(i,r){return i[r]=t,i},{})}var na=function(e,i){return e=typeof e=="function"?e(Object.assign({},i.rects,{placement:i.placement})):e,ts(typeof e!="number"?e:is(e,Bt))};function ra(t){var e,i=t.state,r=t.name,n=t.options,s=i.elements.arrow,a=i.modifiersData.popperOffsets,d=Le(i.placement),f=yn(d),h=[me,Ce].indexOf(d)>=0,o=h?"height":"width";if(!(!s||!a)){var u=na(n.padding,i),c=vn(s),l=f==="y"?pe:me,p=f==="y"?Ae:Ce,m=i.rects.reference[o]+i.rects.reference[f]-a[f]-i.rects.popper[o],b=a[f]-i.rects.reference[f],x=zt(s),_=x?f==="y"?x.clientHeight||0:x.clientWidth||0:0,w=m/2-b/2,y=u[l],v=_-c[o]-u[p],E=_/2-c[o]/2+w,A=kt(y,E,v),I=f;i.modifiersData[r]=(e={},e[I]=A,e.centerOffset=A-E,e)}}function sa(t){var e=t.state,i=t.options,r=i.element,n=r===void 0?"[data-popper-arrow]":r;n!=null&&(typeof n=="string"&&(n=e.elements.popper.querySelector(n),!n)||Qr(e.elements.popper,n)&&(e.elements.arrow=n))}const oa={name:"arrow",enabled:!0,phase:"main",fn:ra,effect:sa,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function vt(t){return t.split("-")[1]}var aa={top:"auto",right:"auto",bottom:"auto",left:"auto"};function la(t,e){var i=t.x,r=t.y,n=e.devicePixelRatio||1;return{x:gt(i*n)/n||0,y:gt(r*n)/n||0}}function rr(t){var e,i=t.popper,r=t.popperRect,n=t.placement,s=t.variation,a=t.offsets,d=t.position,f=t.gpuAcceleration,h=t.adaptive,o=t.roundOffsets,u=t.isFixed,c=a.x,l=c===void 0?0:c,p=a.y,m=p===void 0?0:p,b=typeof o=="function"?o({x:l,y:m}):{x:l,y:m};l=b.x,m=b.y;var x=a.hasOwnProperty("x"),_=a.hasOwnProperty("y"),w=me,y=pe,v=window;if(h){var E=zt(i),A="clientHeight",I="clientWidth";if(E===we(i)&&(E=Ze(i),He(E).position!=="static"&&d==="absolute"&&(A="scrollHeight",I="scrollWidth")),E=E,n===pe||(n===me||n===Ce)&&s===Tt){y=Ae;var M=u&&E===v&&v.visualViewport?v.visualViewport.height:E[A];m-=M-r.height,m*=f?1:-1}if(n===me||(n===pe||n===Ae)&&s===Tt){w=Ce;var O=u&&E===v&&v.visualViewport?v.visualViewport.width:E[I];l-=O-r.width,l*=f?1:-1}}var q=Object.assign({position:d},h&&aa),z=o===!0?la({x:l,y:m},we(i)):{x:l,y:m};if(l=z.x,m=z.y,f){var Q;return Object.assign({},q,(Q={},Q[y]=_?"0":"",Q[w]=x?"0":"",Q.transform=(v.devicePixelRatio||1)<=1?"translate("+l+"px, "+m+"px)":"translate3d("+l+"px, "+m+"px, 0)",Q))}return Object.assign({},q,(e={},e[y]=_?m+"px":"",e[w]=x?l+"px":"",e.transform="",e))}function ca(t){var e=t.state,i=t.options,r=i.gpuAcceleration,n=r===void 0?!0:r,s=i.adaptive,a=s===void 0?!0:s,d=i.roundOffsets,f=d===void 0?!0:d,h={placement:Le(e.placement),variation:vt(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:n,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,rr(Object.assign({},h,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:a,roundOffsets:f})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,rr(Object.assign({},h,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:f})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const ua={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:ca,data:{}};var Yt={passive:!0};function ha(t){var e=t.state,i=t.instance,r=t.options,n=r.scroll,s=n===void 0?!0:n,a=r.resize,d=a===void 0?!0:a,f=we(e.elements.popper),h=[].concat(e.scrollParents.reference,e.scrollParents.popper);return s&&h.forEach(function(o){o.addEventListener("scroll",i.update,Yt)}),d&&f.addEventListener("resize",i.update,Yt),function(){s&&h.forEach(function(o){o.removeEventListener("scroll",i.update,Yt)}),d&&f.removeEventListener("resize",i.update,Yt)}}const da={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:ha,data:{}};var fa={left:"right",right:"left",bottom:"top",top:"bottom"};function ri(t){return t.replace(/left|right|bottom|top/g,function(e){return fa[e]})}var pa={start:"end",end:"start"};function sr(t){return t.replace(/start|end/g,function(e){return pa[e]})}function wn(t){var e=we(t),i=e.pageXOffset,r=e.pageYOffset;return{scrollLeft:i,scrollTop:r}}function xn(t){return bt(Ze(t)).left+wn(t).scrollLeft}function ma(t,e){var i=we(t),r=Ze(t),n=i.visualViewport,s=r.clientWidth,a=r.clientHeight,d=0,f=0;if(n){s=n.width,a=n.height;var h=Yr();(h||!h&&e==="fixed")&&(d=n.offsetLeft,f=n.offsetTop)}return{width:s,height:a,x:d+xn(t),y:f}}function ga(t){var e,i=Ze(t),r=wn(t),n=(e=t.ownerDocument)==null?void 0:e.body,s=rt(i.scrollWidth,i.clientWidth,n?n.scrollWidth:0,n?n.clientWidth:0),a=rt(i.scrollHeight,i.clientHeight,n?n.scrollHeight:0,n?n.clientHeight:0),d=-r.scrollLeft+xn(t),f=-r.scrollTop;return He(n||i).direction==="rtl"&&(d+=rt(i.clientWidth,n?n.clientWidth:0)-s),{width:s,height:a,x:d,y:f}}function _n(t){var e=He(t),i=e.overflow,r=e.overflowX,n=e.overflowY;return/auto|scroll|overlay|hidden/.test(i+n+r)}function ns(t){return["html","body","#document"].indexOf(De(t))>=0?t.ownerDocument.body:Se(t)&&_n(t)?t:ns(pi(t))}function $t(t,e){var i;e===void 0&&(e=[]);var r=ns(t),n=r===((i=t.ownerDocument)==null?void 0:i.body),s=we(r),a=n?[s].concat(s.visualViewport||[],_n(r)?r:[]):r,d=e.concat(a);return n?d:d.concat($t(pi(a)))}function ln(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function ba(t,e){var i=bt(t,!1,e==="fixed");return i.top=i.top+t.clientTop,i.left=i.left+t.clientLeft,i.bottom=i.top+t.clientHeight,i.right=i.left+t.clientWidth,i.width=t.clientWidth,i.height=t.clientHeight,i.x=i.left,i.y=i.top,i}function or(t,e,i){return e===Xr?ln(ma(t,i)):at(e)?ba(e,i):ln(ga(Ze(t)))}function va(t){var e=$t(pi(t)),i=["absolute","fixed"].indexOf(He(t).position)>=0,r=i&&Se(t)?zt(t):t;return at(r)?e.filter(function(n){return at(n)&&Qr(n,r)&&De(n)!=="body"}):[]}function ya(t,e,i,r){var n=e==="clippingParents"?va(t):[].concat(e),s=[].concat(n,[i]),a=s[0],d=s.reduce(function(f,h){var o=or(t,h,r);return f.top=rt(o.top,f.top),f.right=ai(o.right,f.right),f.bottom=ai(o.bottom,f.bottom),f.left=rt(o.left,f.left),f},or(t,a,r));return d.width=d.right-d.left,d.height=d.bottom-d.top,d.x=d.left,d.y=d.top,d}function rs(t){var e=t.reference,i=t.element,r=t.placement,n=r?Le(r):null,s=r?vt(r):null,a=e.x+e.width/2-i.width/2,d=e.y+e.height/2-i.height/2,f;switch(n){case pe:f={x:a,y:e.y-i.height};break;case Ae:f={x:a,y:e.y+e.height};break;case Ce:f={x:e.x+e.width,y:d};break;case me:f={x:e.x-i.width,y:d};break;default:f={x:e.x,y:e.y}}var h=n?yn(n):null;if(h!=null){var o=h==="y"?"height":"width";switch(s){case mt:f[h]=f[h]-(e[o]/2-i[o]/2);break;case Tt:f[h]=f[h]+(e[o]/2-i[o]/2);break}}return f}function Lt(t,e){e===void 0&&(e={});var i=e,r=i.placement,n=r===void 0?t.placement:r,s=i.strategy,a=s===void 0?t.strategy:s,d=i.boundary,f=d===void 0?Bo:d,h=i.rootBoundary,o=h===void 0?Xr:h,u=i.elementContext,c=u===void 0?At:u,l=i.altBoundary,p=l===void 0?!1:l,m=i.padding,b=m===void 0?0:m,x=ts(typeof b!="number"?b:is(b,Bt)),_=c===At?zo:At,w=t.rects.popper,y=t.elements[p?_:c],v=ya(at(y)?y:y.contextElement||Ze(t.elements.popper),f,o,a),E=bt(t.elements.reference),A=rs({reference:E,element:w,placement:n}),I=ln(Object.assign({},w,A)),M=c===At?I:E,O={top:v.top-M.top+x.top,bottom:M.bottom-v.bottom+x.bottom,left:v.left-M.left+x.left,right:M.right-v.right+x.right},q=t.modifiersData.offset;if(c===At&&q){var z=q[n];Object.keys(O).forEach(function(Q){var ne=[Ce,Ae].indexOf(Q)>=0?1:-1,R=[pe,Ae].indexOf(Q)>=0?"y":"x";O[Q]+=z[R]*ne})}return O}function wa(t,e){e===void 0&&(e={});var i=e,r=i.placement,n=i.boundary,s=i.rootBoundary,a=i.padding,d=i.flipVariations,f=i.allowedAutoPlacements,h=f===void 0?Jr:f,o=vt(r),u=o?d?ir:ir.filter(function(p){return vt(p)===o}):Bt,c=u.filter(function(p){return h.indexOf(p)>=0});c.length===0&&(c=u);var l=c.reduce(function(p,m){return p[m]=Lt(t,{placement:m,boundary:n,rootBoundary:s,padding:a})[Le(m)],p},{});return Object.keys(l).sort(function(p,m){return l[p]-l[m]})}function xa(t){if(Le(t)===gn)return[];var e=ri(t);return[sr(t),e,sr(e)]}function _a(t){var e=t.state,i=t.options,r=t.name;if(!e.modifiersData[r]._skip){for(var n=i.mainAxis,s=n===void 0?!0:n,a=i.altAxis,d=a===void 0?!0:a,f=i.fallbackPlacements,h=i.padding,o=i.boundary,u=i.rootBoundary,c=i.altBoundary,l=i.flipVariations,p=l===void 0?!0:l,m=i.allowedAutoPlacements,b=e.options.placement,x=Le(b),_=x===b,w=f||(_||!p?[ri(b)]:xa(b)),y=[b].concat(w).reduce(function(_e,fe){return _e.concat(Le(fe)===gn?wa(e,{placement:fe,boundary:o,rootBoundary:u,padding:h,flipVariations:p,allowedAutoPlacements:m}):fe)},[]),v=e.rects.reference,E=e.rects.popper,A=new Map,I=!0,M=y[0],O=0;O<y.length;O++){var q=y[O],z=Le(q),Q=vt(q)===mt,ne=[pe,Ae].indexOf(z)>=0,R=ne?"width":"height",re=Lt(e,{placement:q,boundary:o,rootBoundary:u,altBoundary:c,padding:h}),H=ne?Q?Ce:me:Q?Ae:pe;v[R]>E[R]&&(H=ri(H));var X=ri(H),ee=[];if(s&&ee.push(re[z]<=0),d&&ee.push(re[H]<=0,re[X]<=0),ee.every(function(_e){return _e})){M=q,I=!1;break}A.set(q,ee)}if(I)for(var oe=p?3:1,xe=function(fe){var je=y.find(function(Re){var Oe=A.get(Re);if(Oe)return Oe.slice(0,fe).every(function(Ie){return Ie})});if(je)return M=je,"break"},ge=oe;ge>0;ge--){var D=xe(ge);if(D==="break")break}e.placement!==M&&(e.modifiersData[r]._skip=!0,e.placement=M,e.reset=!0)}}const Ea={name:"flip",enabled:!0,phase:"main",fn:_a,requiresIfExists:["offset"],data:{_skip:!1}};function ar(t,e,i){return i===void 0&&(i={x:0,y:0}),{top:t.top-e.height-i.y,right:t.right-e.width+i.x,bottom:t.bottom-e.height+i.y,left:t.left-e.width-i.x}}function lr(t){return[pe,Ce,Ae,me].some(function(e){return t[e]>=0})}function Sa(t){var e=t.state,i=t.name,r=e.rects.reference,n=e.rects.popper,s=e.modifiersData.preventOverflow,a=Lt(e,{elementContext:"reference"}),d=Lt(e,{altBoundary:!0}),f=ar(a,r),h=ar(d,n,s),o=lr(f),u=lr(h);e.modifiersData[i]={referenceClippingOffsets:f,popperEscapeOffsets:h,isReferenceHidden:o,hasPopperEscaped:u},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":o,"data-popper-escaped":u})}const Aa={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Sa};function Ca(t,e,i){var r=Le(t),n=[me,pe].indexOf(r)>=0?-1:1,s=typeof i=="function"?i(Object.assign({},e,{placement:t})):i,a=s[0],d=s[1];return a=a||0,d=(d||0)*n,[me,Ce].indexOf(r)>=0?{x:d,y:a}:{x:a,y:d}}function Oa(t){var e=t.state,i=t.options,r=t.name,n=i.offset,s=n===void 0?[0,0]:n,a=Jr.reduce(function(o,u){return o[u]=Ca(u,e.rects,s),o},{}),d=a[e.placement],f=d.x,h=d.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=f,e.modifiersData.popperOffsets.y+=h),e.modifiersData[r]=a}const ka={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Oa};function $a(t){var e=t.state,i=t.name;e.modifiersData[i]=rs({reference:e.rects.reference,element:e.rects.popper,placement:e.placement})}const Ra={name:"popperOffsets",enabled:!0,phase:"read",fn:$a,data:{}};function Ia(t){return t==="x"?"y":"x"}function Pa(t){var e=t.state,i=t.options,r=t.name,n=i.mainAxis,s=n===void 0?!0:n,a=i.altAxis,d=a===void 0?!1:a,f=i.boundary,h=i.rootBoundary,o=i.altBoundary,u=i.padding,c=i.tether,l=c===void 0?!0:c,p=i.tetherOffset,m=p===void 0?0:p,b=Lt(e,{boundary:f,rootBoundary:h,padding:u,altBoundary:o}),x=Le(e.placement),_=vt(e.placement),w=!_,y=yn(x),v=Ia(y),E=e.modifiersData.popperOffsets,A=e.rects.reference,I=e.rects.popper,M=typeof m=="function"?m(Object.assign({},e.rects,{placement:e.placement})):m,O=typeof M=="number"?{mainAxis:M,altAxis:M}:Object.assign({mainAxis:0,altAxis:0},M),q=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,z={x:0,y:0};if(E){if(s){var Q,ne=y==="y"?pe:me,R=y==="y"?Ae:Ce,re=y==="y"?"height":"width",H=E[y],X=H+b[ne],ee=H-b[R],oe=l?-I[re]/2:0,xe=_===mt?A[re]:I[re],ge=_===mt?-I[re]:-A[re],D=e.elements.arrow,_e=l&&D?vn(D):{width:0,height:0},fe=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:es(),je=fe[ne],Re=fe[R],Oe=kt(0,A[re],_e[re]),Ie=w?A[re]/2-oe-Oe-je-O.mainAxis:xe-Oe-je-O.mainAxis,wt=w?-A[re]/2+oe+Oe+Re+O.mainAxis:ge+Oe+Re+O.mainAxis,Ee=e.elements.arrow&&zt(e.elements.arrow),Je=Ee?y==="y"?Ee.clientTop||0:Ee.clientLeft||0:0,Ye=(Q=q?.[y])!=null?Q:0,xi=H+Ie-Ye-Je,_i=H+wt-Ye,Ht=kt(l?ai(X,xi):X,H,l?rt(ee,_i):ee);E[y]=Ht,z[y]=Ht-H}if(d){var Wt,Ei=y==="x"?pe:me,Ft=y==="x"?Ae:Ce,Be=E[v],ct=v==="y"?"height":"width",xt=Be+b[Ei],Pe=Be-b[Ft],ut=[pe,me].indexOf(x)!==-1,ze=(Wt=q?.[v])!=null?Wt:0,Qe=ut?xt:Be-A[ct]-I[ct]-ze+O.altAxis,_t=ut?Be+A[ct]+I[ct]-ze-O.altAxis:Pe,Kt=l&&ut?ia(Qe,Be,_t):kt(l?Qe:xt,Be,l?_t:Pe);E[v]=Kt,z[v]=Kt-Be}e.modifiersData[r]=z}}const Na={name:"preventOverflow",enabled:!0,phase:"main",fn:Pa,requiresIfExists:["offset"]};function Ma(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function Ta(t){return t===we(t)||!Se(t)?wn(t):Ma(t)}function La(t){var e=t.getBoundingClientRect(),i=gt(e.width)/t.offsetWidth||1,r=gt(e.height)/t.offsetHeight||1;return i!==1||r!==1}function Da(t,e,i){i===void 0&&(i=!1);var r=Se(e),n=Se(e)&&La(e),s=Ze(e),a=bt(t,n,i),d={scrollLeft:0,scrollTop:0},f={x:0,y:0};return(r||!r&&!i)&&((De(e)!=="body"||_n(s))&&(d=Ta(e)),Se(e)?(f=bt(e,!0),f.x+=e.clientLeft,f.y+=e.clientTop):s&&(f.x=xn(s))),{x:a.left+d.scrollLeft-f.x,y:a.top+d.scrollTop-f.y,width:a.width,height:a.height}}function ja(t){var e=new Map,i=new Set,r=[];t.forEach(function(s){e.set(s.name,s)});function n(s){i.add(s.name);var a=[].concat(s.requires||[],s.requiresIfExists||[]);a.forEach(function(d){if(!i.has(d)){var f=e.get(d);f&&n(f)}}),r.push(s)}return t.forEach(function(s){i.has(s.name)||n(s)}),r}function Ba(t){var e=ja(t);return Xo.reduce(function(i,r){return i.concat(e.filter(function(n){return n.phase===r}))},[])}function za(t){var e;return function(){return e||(e=new Promise(function(i){Promise.resolve().then(function(){e=void 0,i(t())})})),e}}function Ua(t){var e=t.reduce(function(i,r){var n=i[r.name];return i[r.name]=n?Object.assign({},n,r,{options:Object.assign({},n.options,r.options),data:Object.assign({},n.data,r.data)}):r,i},{});return Object.keys(e).map(function(i){return e[i]})}var cr={placement:"bottom",modifiers:[],strategy:"absolute"};function ur(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return!e.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function qa(t){t===void 0&&(t={});var e=t,i=e.defaultModifiers,r=i===void 0?[]:i,n=e.defaultOptions,s=n===void 0?cr:n;return function(d,f,h){h===void 0&&(h=s);var o={placement:"bottom",orderedModifiers:[],options:Object.assign({},cr,s),modifiersData:{},elements:{reference:d,popper:f},attributes:{},styles:{}},u=[],c=!1,l={state:o,setOptions:function(x){var _=typeof x=="function"?x(o.options):x;m(),o.options=Object.assign({},s,o.options,_),o.scrollParents={reference:at(d)?$t(d):d.contextElement?$t(d.contextElement):[],popper:$t(f)};var w=Ba(Ua([].concat(r,o.options.modifiers)));return o.orderedModifiers=w.filter(function(y){return y.enabled}),p(),l.update()},forceUpdate:function(){if(!c){var x=o.elements,_=x.reference,w=x.popper;if(ur(_,w)){o.rects={reference:Da(_,zt(w),o.options.strategy==="fixed"),popper:vn(w)},o.reset=!1,o.placement=o.options.placement,o.orderedModifiers.forEach(function(O){return o.modifiersData[O.name]=Object.assign({},O.data)});for(var y=0;y<o.orderedModifiers.length;y++){if(o.reset===!0){o.reset=!1,y=-1;continue}var v=o.orderedModifiers[y],E=v.fn,A=v.options,I=A===void 0?{}:A,M=v.name;typeof E=="function"&&(o=E({state:o,options:I,name:M,instance:l})||o)}}}},update:za(function(){return new Promise(function(b){l.forceUpdate(),b(o)})}),destroy:function(){m(),c=!0}};if(!ur(d,f))return l;l.setOptions(h).then(function(b){!c&&h.onFirstUpdate&&h.onFirstUpdate(b)});function p(){o.orderedModifiers.forEach(function(b){var x=b.name,_=b.options,w=_===void 0?{}:_,y=b.effect;if(typeof y=="function"){var v=y({state:o,name:x,instance:l,options:w}),E=function(){};u.push(v||E)}})}function m(){u.forEach(function(b){return b()}),u=[]}return l}}var Ha=[da,Ra,ua,Qo,ka,Ea,Na,oa,Aa],Wa=qa({defaultModifiers:Ha});const En={ATTRIBUTE:1,CHILD:2},ss=t=>(...e)=>({_$litDirective$:t,values:e});let os=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,i,r){this._$Ct=e,this._$AM=i,this._$Ci=r}_$AS(e,i){return this.update(e,i)}update(e,i){return this.render(...i)}};class cn extends os{constructor(e){if(super(e),this.it=Y,e.type!==En.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===Y||e==null)return this._t=void 0,this.it=e;if(e===ot)return e;if(typeof e!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.it)return this._t;this.it=e;const i=[e];return i.raw=i,this._t={_$litType$:this.constructor.resultType,strings:i,values:[]}}}cn.directiveName="unsafeHTML",cn.resultType=1;const Fa=ss(cn);const Qt=t=>t??Y;const Ka=t=>t.strings===void 0;const Rt=(t,e)=>{const i=t._$AN;if(i===void 0)return!1;for(const r of i)r._$AO?.(e,!1),Rt(r,e);return!0},li=t=>{let e,i;do{if((e=t._$AM)===void 0)break;i=e._$AN,i.delete(t),t=e}while(i?.size===0)},as=t=>{for(let e;e=t._$AM;t=e){let i=e._$AN;if(i===void 0)e._$AN=i=new Set;else if(i.has(t))break;i.add(t),Za(e)}};function Va(t){this._$AN!==void 0?(li(this),this._$AM=t,as(this)):this._$AM=t}function Ga(t,e=!1,i=0){const r=this._$AH,n=this._$AN;if(n!==void 0&&n.size!==0)if(e)if(Array.isArray(r))for(let s=i;s<r.length;s++)Rt(r[s],!1),li(r[s]);else r!=null&&(Rt(r,!1),li(r));else Rt(this,t)}const Za=t=>{t.type==En.CHILD&&(t._$AP??=Ga,t._$AQ??=Va)};class Xa extends os{constructor(){super(...arguments),this._$AN=void 0}_$AT(e,i,r){super._$AT(e,i,r),as(this),this.isConnected=e._$AU}_$AO(e,i=!0){e!==this.isConnected&&(this.isConnected=e,e?this.reconnected?.():this.disconnected?.()),i&&(Rt(this,e),li(this))}setValue(e){if(Ka(this._$Ct))this._$Ct._$AI(e,this);else{const i=[...this._$Ct._$AH];i[this._$Ci]=e,this._$Ct._$AI(i,this,0)}}disconnected(){}reconnected(){}}const hr=t=>t?t.startsWith("url")?t:`url("${t}")`:null,Ja=(t,e)=>{if(t){const i=new Image;i.addEventListener("load",e),i.src=t,i.complete&&(i.removeEventListener("load",e),window.queueMicrotask(()=>e()))}};class Ya extends Xa{constructor(e){if(super(e),e.type!==En.ATTRIBUTE||e.name!=="src"&&e.name!=="style")throw new Error("The `placeholder` directive must be used in the `src` or `style` attributes")}update(e,[i,r]){return this.useCssBackground=e.name=="style",this.render(i,r)}render(e,i){this.loadingToken!=null&&(this.loadingToken.cancelled=!0);const r={cancelled:!1};return this.loadingToken=r,typeof e=="string"?this.preload(e,r):e?.then(n=>{this.preload(n,r)}),this.useCssBackground?hr(i):i}preload(e,i){e!=null&&!i.cancelled&&Ja(e,()=>{i.cancelled||this.setValue(this.useCssBackground?hr(e):e)})}}const Qa=ss(Ya),el=':host{display:block;contain:strict;height:50px}:host([selected]){background-color:#d3e6fa}:host(:not([selected]):hover),:host(:not([selected])[focused]){background-color:#e7f1fa}@media (forced-colors: active){:host([selected]){outline:4px solid}:host(:not([selected]):hover){outline:4px dotted}:host(:not([selected])[focused]){outline:4px dashed}}:host([enable-line-clamp]) .labels>:only-child{display:-webkit-box;overflow:hidden;-webkit-line-clamp:2;-webkit-box-orient:vertical;white-space:normal;overflow-wrap:break-word}.container{display:flex;height:100%;box-sizing:border-box}.container .level-indicator{width:7px;height:100%}.container .level-indicator.level-0{background-color:#a0c3ef}.container .level-indicator.level-1{background-color:#e7c374}.container .level-indicator.level-2{background-color:#bfd596}.container .level-indicator.level-3{background-color:#fd998d}.container .level-indicator.level-4{background-color:#c6e8f5}.container .level-indicator.level-5{background-color:#fde3a4}.container .level-indicator.level-6{background-color:#dcbfe0}.side-content{display:flex;align-items:center;flex-grow:0}.labels{display:flex;flex-direction:column;justify-content:center;flex:1 1 0px;height:100%;line-height:normal;overflow:hidden;padding:var(--sd-list-item-label-content-padding, 0 8px)}.caption,.description{width:100%;font-family:var(--sd-list-item-font-family, "Segoe UI", "Lucida Sans", Arial, sans-serif);font-style:normal;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;-webkit-user-select:none;user-select:none;text-decoration:var(--sd-list-item-text-decoration, inherit)}.caption em,.description em{font-weight:bolder}.caption{font-size:var(--sd-list-item-caption-font-size, 16px);color:var(--sd-list-item-caption-text-color, #111);font-weight:var(--sd-list-item-caption-font-weight, normal)}.description{font-size:var(--sd-list-item-description-font-size, 13px);color:var(--sd-list-item-description-text-color, #767676);font-weight:var(--sd-list-item-description-font-weight, normal)}.description.with-icon{display:flex;align-items:center;gap:4px}.description.with-icon .description-icon{width:var(--sd-list-item-description-font-size, 13px);height:var(--sd-list-item-description-font-size, 13px);background-repeat:no-repeat;background-position:bottom;background-size:90%}.icon-wrapper{width:var(--sd-list-item-icon-wrapper-width, 45px);height:100%;display:flex;align-items:center;justify-content:center}.icon-wrapper .icon{min-height:var(--sd-list-item-icon-size, 24px);min-width:var(--sd-list-item-icon-size, 24px);background-repeat:no-repeat;background-position:center;background-size:cover}';var tl=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&&tl(e,i,n),n},it;const ue=(it=class extends qe{constructor(){super(...arguments),this.contentMode="text",this.role="option"}static get styles(){return[hi`
|
|
167
|
+
${Dt(el)}
|
|
168
|
+
`]}render(){return ve`
|
|
169
169
|
<div class="container">
|
|
170
|
-
${this.getLevelIndicators().map((
|
|
170
|
+
${this.getLevelIndicators().map((t,e)=>ve` <div class="level-indicator level-${e}"></div> `)}
|
|
171
171
|
<div class="side-content">
|
|
172
172
|
<slot name="left-content"></slot>
|
|
173
173
|
${this.renderIcon()}
|
|
174
174
|
</div>
|
|
175
175
|
<div class="labels">
|
|
176
176
|
${this.renderLabel("caption",this.caption,this.captionAttrTitle)}
|
|
177
|
-
${this.renderLabel("description",this.description,this.descriptionAttrTitle)}
|
|
177
|
+
${this.renderLabel("description",this.description,this.descriptionAttrTitle,this.descriptionIcon)}
|
|
178
178
|
</div>
|
|
179
179
|
<div class="side-content">
|
|
180
180
|
<slot name="right-content"></slot>
|
|
181
181
|
</div>
|
|
182
182
|
</div>
|
|
183
|
-
`}renderIcon(){
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
>
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
${this.contentMode==="html"?La(e):e}
|
|
183
|
+
`}renderIcon(){return this.icon||this.iconPlaceholder?ve`<div
|
|
184
|
+
class="icon-wrapper"
|
|
185
|
+
@pointerdown="${this.handleIconClick}"
|
|
186
|
+
style="background-color:${Qt(this.iconBackgroundColor)};"
|
|
187
|
+
role="img"
|
|
188
|
+
aria-label="${Qt(this.iconAttrAriaLabel)}"
|
|
189
|
+
title="${Qt(this.iconAttrTitle)}"
|
|
190
|
+
>
|
|
191
|
+
<div class="icon" style="background-image:${Qa(this.icon,this.iconPlaceholder)}"></div>
|
|
192
|
+
</div> `:Y}renderLabel(t,e,i,r){return e?ve`
|
|
193
|
+
<div class="${t} ${r?"with-icon":""}" title="${Qt(i)}">
|
|
194
|
+
${r?ve` <div class="${t}-icon" style="background-image:url('${r}')" aria-hidden="true"></div> `:Y}
|
|
195
|
+
${this.contentMode==="html"?Fa(e):e}
|
|
197
196
|
</div>
|
|
198
|
-
`:
|
|
199
|
-
${
|
|
200
|
-
`]}render(){return this.updateItemsRenderData(),
|
|
197
|
+
`:Y}updated(t){super.updated(t),t.has("selected")&&this.setAttribute("aria-selected",String(this.selected))}get missingWidthForTexts(){const t=this.enableLineClamp;this.removeAttribute("enable-line-clamp");let e=0;const i=this.shadowRoot.querySelector(".caption");i&&(e+=i.scrollWidth-i.clientWidth);const r=this.shadowRoot.querySelector(".description");return r&&(e=Math.max(e,r.scrollWidth-r.clientWidth)),e>0&&e++,t&&this.setAttribute("enable-line-clamp",""),e}handleIconClick(t){!this.disabled&&!this.dispatchEvent(new PointerEvent("list-item-icon-click",t))&&t.preventDefault()}getLevelIndicators(){return this.level?Array(Number(this.level)).fill(null):[]}},it.ID="sd-list-item",it.ensureDefined=()=>{customElements.get(it.ID)||customElements.define(it.ID,it)},it);de([K({type:String})],ue.prototype,"caption");de([K({type:String})],ue.prototype,"description");de([K({type:String})],ue.prototype,"descriptionIcon");de([K({type:Boolean})],ue.prototype,"selected");de([K({type:String})],ue.prototype,"icon");de([K({type:String})],ue.prototype,"iconBackgroundColor");de([K({type:String})],ue.prototype,"iconPlaceholder");de([K({type:Number})],ue.prototype,"level");de([K()],ue.prototype,"contentMode");de([K({type:Boolean,reflect:!0,attribute:"enable-line-clamp"})],ue.prototype,"enableLineClamp");de([K({converter:{fromAttribute:t=>t=="true",toAttribute:t=>t},reflect:!0,attribute:"aria-disabled"})],ue.prototype,"disabled");de([K({type:String,attribute:"icon-attr-aria-label"})],ue.prototype,"iconAttrAriaLabel");de([K({type:String,reflect:!0})],ue.prototype,"role");de([K({type:String,attribute:"caption-attr-title"})],ue.prototype,"captionAttrTitle");de([K({type:String,attribute:"description-attr-title"})],ue.prototype,"descriptionAttrTitle");de([K({type:String,attribute:"icon-attr-title"})],ue.prototype,"iconAttrTitle");let ft=ue;const il=(t,e)=>{const i=document.createElement(ft.ID);if(t){if(i.caption=t.caption,i.description=t.description,i.descriptionIcon=t.descriptionIcon,i.icon=t.icon,i.iconBackgroundColor=t.iconBackgroundColor,i.iconPlaceholder=t.iconPlaceholder,i.level=t.level,i.disabled=t.disabled,t.contentMode&&(i.contentMode=t.contentMode),t.leftContentGenerator){const r=t.leftContentGenerator(t,i);r&&(r.slot="left-content",i.appendChild(r))}if(t.rightContentGenerator){const r=t.rightContentGenerator(t,i);r&&(r.slot="right-content",i.appendChild(r))}}return i};ft.ensureDefined();class nl{getOffsetForIndexAndAlignment(e,i,r,n,s,a){const d=Math.max(0,a*n),f=Math.min(d,e*n),h=Math.max(0,e*n-s+n);switch(i){case"start":return f;case"end":return h;case"center":{const o=Math.round(h+(f-h)/2);return o<Math.ceil(s/2)?0:o>d+Math.floor(s/2)?d:o}case"auto":default:return r>=h&&r<=f?r:r<h?h:f}}debounce(e){let i;return(...r)=>{i&&window.cancelAnimationFrame(i),i=window.requestAnimationFrame(()=>{e(...r),i=null})}}}const rl=new nl;class sl{constructor(e=100,i=5){this.pageSize=e,this.preloadedItemsCount=i,this._finalSizeIsKnown=!1,this._itemCache=[],this._lastRequestedFirstIndex=0,this._lastRequestedLastIndex=0,this._lastLoadedIndex=0,this.handleListDataRequest=r=>{const{startIndex:n,stopIndex:s}=r.detail;this._lastRequestedFirstIndex=n,this._lastRequestedLastIndex=s,this._list.items=this._itemCache.slice(n,s+1),!this.finalSizeIsKnown&&this._lastLoadedIndex<s+this.preloadedItemsCount&&this.requestData()},this.itemCount=e}get currentPage(){return this.items.length==0&&this.finalSizeIsKnown?0:Math.floor((this.items.length-1)/this.pageSize)}get finalSizeIsKnown(){return this._finalSizeIsKnown}set finalSizeIsKnown(e){this._finalSizeIsKnown=e,e&&(this.itemCount=this._itemCache.length),this._list&&(this._list.finalSizeIsKnown=e)}get itemCount(){return this._itemCount}set itemCount(e){this._itemCount=e,this._list&&(this._list.itemCount=e)}get items(){return this._itemCache}set items(e){this._itemCache=e,this.onItemsChange()}addItems(e){this._itemCache=this._itemCache.concat(e),this.onItemsChange()}connectList(e){this._list&&this._list.removeEventListener("data-request",this.handleListDataRequest),this._list=e,e.itemCount=this.itemCount,e.addEventListener("data-request",this.handleListDataRequest),e.finalSizeIsKnown=this._finalSizeIsKnown}onItemsChange(){this._pendingDataRequest=!1,this._lastLoadedIndex=this._itemCache.length-1,this.finalSizeIsKnown?this.itemCount=this._itemCache.length:this._lastLoadedIndex>this.itemCount&&(this.itemCount=this._lastLoadedIndex),this._list&&(this._list.items=this._itemCache.slice(this._lastRequestedFirstIndex,this._lastRequestedLastIndex+1))}requestData(){if(!this._pendingDataRequest)if(this.onDataRequest)this._pendingDataRequest=!0,this.onDataRequest(this.currentPage+1),this._lastLoadedIndex+=this.pageSize-1,this._lastLoadedIndex>this.itemCount&&(this.itemCount=this._lastLoadedIndex);else throw Error("The final size is not yet known and the list would require item data from index "+this._lastRequestedFirstIndex+". to "+this._lastRequestedLastIndex+". which is not possible to load without a configured onDataRequest")}}const ol=":host{display:block;position:relative;contain:layout}:host(:focus){outline:none}:host(:focus-visible) ::slotted([focused]){box-shadow:0 0 0 1px #1467ba inset}.container{width:100%}.container>::slotted(*){width:100%;position:absolute;box-sizing:border-box}.container>::slotted(:not([last])){border-bottom:1px solid #d9d9d9}";var al=Object.defineProperty,ll=Object.getOwnPropertyDescriptor,Xe=(t,e,i,r)=>{for(var n=r>1?void 0:r?ll(e,i):e,s=t.length-1,a;s>=0;s--)(a=t[s])&&(n=(r?a(e,i,n):a(n))||n);return r&&n&&al(e,i,n),n},ls=(t=>(t.TriggerOnly="trigger-only",t.Single="single",t.Multi="multi",t))(ls||{});let cl=0;var Ve;const We=(Ve=class extends qe{constructor(){super(),this.items=[],this.selectionType="trigger-only",this.id=Ve.ID+"_"+cl++,this.role="listbox",this.itemGenerator=il,this._lastKnownScrollTop=0,this._lastRenderedScrollTop=0,this._itemsRenderData=[],this._elementCache=new Map,this._visibleItemsNum=0,this._selectedIndices=[],this._focusIndex=-1,this._lastKnownHeight=0,this.onScroll=()=>{this._lastKnownScrollTop=this.scrollTop;const t=this._lastRenderedScrollTop-this._lastKnownScrollTop;Math.abs(t)>=this.itemHeight&&(this._lastRenderedScrollTop=this._lastKnownScrollTop,this.requestUpdate())},this.handleKeyDown=t=>{let e=!0;switch(t.key){case"Down":case"ArrowDown":this.focusIndex=this.normalizeIndex(this.focusIndex+1);break;case"Up":case"ArrowUp":this.focusIndex=this.normalizeIndex(this.focusIndex-1);break;case"Enter":this.handleSelection(this.focusIndex,t.metaKey||t.ctrlKey);break;case"End":this.focusIndex=this.itemCount-1;break;case"PageDown":this.focusIndex=this.normalizeIndex(this.focusIndex+this._visibleItemsNum-1);break;case"Home":this.focusIndex=0;break;case"PageUp":this.focusIndex=this.normalizeIndex(this.focusIndex-this._visibleItemsNum+1);break;default:e=!1;break}e&&(t.preventDefault(),t.stopPropagation())},this._resizeObserver=new ResizeObserver(()=>{this._lastKnownHeight!==this.offsetHeight&&(this._lastKnownHeight=this.offsetHeight,this.requestUpdate())})}get focusTarget(){return this.hasAttribute("focus-target")}set focusTarget(t){this.toggleAttribute("focus-target",t)}get focusIndex(){return this._focusIndex}set focusIndex(t){if(t>=-1&&t<this.itemCount){const e=this._focusIndex;this._focusIndex=t,(t<=this._firstVisibleIndex||this._lastVisibleIndex<=t)&&this.scrollToItem(t),e!=t&&(t==-1&&this.removeAttribute("aria-activedescendant"),this.requestUpdate("focusIndex",e))}}get selectedIndices(){return this._selectedIndices}set selectedIndices(t){t?this._selectedIndices=t.map(e=>Number(e)):this._selectedIndices=[],this.requestUpdate("selectedIndices")}scrollToItem(t,e="auto"){this.scrollTop=rl.getOffsetForIndexAndAlignment(this.normalizeIndex(t),e,this.scrollTop,this.itemHeight,this.height,this.itemCount),this._lastKnownScrollTop=this.scrollTop}getListItem(t){return!this.shadowRoot||t<this._firstVisibleIndex||this._lastVisibleIndex<t?null:this.querySelector(`[item-index="${t}"]`)}connectedCallback(){super.connectedCallback(),this._resizeObserver.observe(this),this.scrollTop!==this._lastKnownScrollTop&&(this.scrollTop=this._lastKnownScrollTop,this.requestUpdate())}disconnectedCallback(){super.disconnectedCallback(),this._resizeObserver.disconnect()}firstUpdated(t){super.firstUpdated(t),this.addEventListener("scroll",this.onScroll),this.addEventListener("keydown",this.handleKeyDown),this.addEventListener("click",this.handleClick),this.addEventListener("mousedown",e=>{e.button==1&&e.preventDefault()}),this.addEventListener("auxclick",this.handleClick),this.addEventListener("focus",()=>{this.matches(":focus-visible")&&(this.focusIndex==-1?(this.selectedIndices&&(this.focusIndex=this.selectedIndices[0]),this.focusIndex==-1&&this.itemCount>0&&(this.focusIndex=0)):this.updateFocusedItemAttributes())}),this.addEventListener("blur",()=>{this.focusIndex!=-1&&this.updateFocusedItemAttributes()}),this.selectedIndices.length>0&&this.scrollToItem(this.selectedIndices[0],"center")}updateFocusedItemAttributes(){const t=this.getListItem(this.focusIndex);t&&(this.focusTarget||document.activeElement==this?(t.setAttribute("focused",""),this.setAttribute("aria-activedescendant",t.id)):(t.removeAttribute("focused"),this.removeAttribute("aria-activedescendant")))}static get styles(){return[hi`
|
|
198
|
+
${Dt(ol)}
|
|
199
|
+
`]}render(){return this.updateItemsRenderData(),ve`
|
|
201
200
|
<div class="container" style="height: ${this.itemCount*this.itemHeight}px">
|
|
202
201
|
<slot name="items"></slot>
|
|
203
202
|
</div>
|
|
204
|
-
`}updated(
|
|
205
|
-
${
|
|
206
|
-
`]}render(){return
|
|
203
|
+
`}updated(t){if(super.updated(t),this._lastRenderedScrollTop=this._lastKnownScrollTop,this.updateItems(),(this._increaseWidthOnNextRenderIfNeeded||this._reachedMaxWidth)&&this._firstVisibleIndex<this._lastVisibleIndex)if(this.querySelector("[item-index]"))this.adjustWidthIfNeeded();else{const e=new MutationObserver(()=>{this.adjustWidthIfNeeded(),e.disconnect()});e.observe(this)}}adjustWidthIfNeeded(){this._increaseWidthOnNextRenderIfNeeded?(this._increaseWidthOnNextRenderIfNeeded=!1,window.requestAnimationFrame(()=>{const t=Number.parseInt(getComputedStyle(this).maxWidth)-this.offsetWidth;if(t==0)this._reachedMaxWidth=!0,this.enableLineClampOnItemsIfNeeded();else{this._reachedMaxWidth=!1;const e=[...this.querySelectorAll("[item-index]")].map(r=>{if(r instanceof ft){r.enableLineClamp=!1;const n=r.missingWidthForTexts;return n>t&&(r.enableLineClamp=!0),n}}),i=Math.max(...e);i>0&&(this.style.width=`${this.offsetWidth+i}px`)}})):this._reachedMaxWidth&&this.enableLineClampOnItemsIfNeeded()}enableLineClampOnItemsIfNeeded(){this.querySelectorAll("[item-index]").forEach(t=>{t instanceof ft&&(t.enableLineClamp=t.enableLineClamp||t.missingWidthForTexts>0)})}increaseWidthOnNextRenderIfNeeded(){this._increaseWidthOnNextRenderIfNeeded=!0}updateItems(){const t=[...this.querySelectorAll("[item-index]")],e=new Map,i=document.createDocumentFragment();for(const r of this._itemsRenderData){const n=this.renderItem(r);n.parentElement||i.appendChild(n),e.set(r.dataHash,n);const s=t.indexOf(n);s!==-1&&t.splice(s,1)}this.appendChild(i);for(const r of t)r instanceof ft&&(r.enableLineClamp=!1),this.removeChild(r);e.forEach((r,n)=>{this._elementCache.set(n,r)})}renderItem({index:t,top:e,dataHash:i,data:r}){let n;return r?this._elementCache.has(i)?(n=this._elementCache.get(i),this._elementCache.delete(i)):(n=this.itemGenerator(r,t),n.setAttribute("slot","items")):(n=document.createElement("div"),n.setAttribute("placeholder-item",""),n.setAttribute("slot","items")),Object.assign(n.style,{transform:`translateY(${e}px)`,height:`${this.itemHeight}px`}),n.setAttribute("item-index",t.toString()),n.setAttribute("aria-setsize",String(this.finalSizeIsKnown?this.itemCount:-1)),n.setAttribute("aria-posinset",String(t+1)),(!n.id||n.id.startsWith(this.id+"_item_"))&&(n.id=this.id+"_item_"+t),this.itemCount-1==t?n.setAttribute("last",""):n.removeAttribute("last"),this.updateSelectedAttribute(t,n),this.updateFocusedAttribute(t,n),n}updateFocusedAttribute(t,e){this.focusIndex==t&&(this.focusTarget||document.activeElement==this)?(e.setAttribute("focused",""),this.setAttribute("aria-activedescendant",e.id)):e.removeAttribute("focused")}updateSelectedAttribute(t,e){const i=this.selectedIndices.indexOf(t)!==-1;i?e.setAttribute("selected",""):e.removeAttribute("selected"),e.setAttribute("aria-selected",String(i))}updateItemsRenderData(){if(this._itemsRenderData=[],this._visibleItemsNum=Math.min(Math.ceil(this.height/this.itemHeight),this.itemCount),this._visibleItemsNum>0){this._firstVisibleIndex=this.normalizeIndex(Math.floor(this._lastKnownScrollTop/this.itemHeight)),this._lastVisibleIndex=this.normalizeIndex(this._firstVisibleIndex+this._visibleItemsNum);const t=this.normalizeIndex(this._firstVisibleIndex-2),e=this.normalizeIndex(this._lastVisibleIndex+2);this.requestData(t,e);for(let i=t;i<=e;i++){const r=i-t,n=this.items[r];let s;n?s=JSON.stringify(n):s=`placeholder-${r}`,this._itemsRenderData.push({index:i,top:this.itemHeight*i,physicalIndex:r,dataHash:s,data:n})}}else this._firstVisibleIndex=0,this._lastVisibleIndex=0}normalizeIndex(t){return Math.max(0,Math.min(t,this.itemCount-1))}get height(){return this.offsetHeight}requestData(t,e){!Number.isNaN(t)&&!Number.isNaN(e)&&this.dispatchEvent(new CustomEvent("data-request",{detail:{startIndex:t,stopIndex:e}}))}handleSelection(t,e){if(t<0||this.itemCount<=t)return;const i=this.getListItem(t);if(i.getAttribute("aria-disabled")=="true"||i.hasAttribute("disabled"))return;let r=!0;if(this.selectionType!=="trigger-only"){const n=this.selectedIndices.indexOf(t);r=n==-1,r?this.selectionType==="single"?this.selectedIndices=[t]:this.selectedIndices.push(t):this.selectedIndices.splice(n,1),this.requestUpdate("selectedIndices")}this.focusIndex=t,this.dispatchSelectionEvent(t,r,e)}dispatchSelectionEvent(t,e,i){this.dispatchEvent(new CustomEvent("selection",{detail:{index:t,selected:e,hasModifier:i}}))}handleClick(t){const e=t.composedPath().find(i=>i.hasAttribute&&i.hasAttribute("item-index"));if(e){const i=parseInt(e.getAttribute("item-index"));if(Number.isInteger(i)){if(t.button==0||t.button==1){const r=t.type=="auxclick"&&t.button==1||t.metaKey||t.ctrlKey;this.handleSelection(i,r)}this.focusIndex=i}}}},Ve.ID="sd-virtual-list",Ve.ensureDefined=()=>{ft.ensureDefined(),customElements.get(Ve.ID)||customElements.define(Ve.ID,Ve)},Ve);Xe([K({type:Number,attribute:"item-height",reflect:!0})],We.prototype,"itemHeight",2);Xe([K({type:Number})],We.prototype,"itemCount",2);Xe([K({type:Array,attribute:!1})],We.prototype,"items",2);Xe([K({type:String,attribute:"selection-type",reflect:!0,noAccessor:!0})],We.prototype,"selectionType",2);Xe([K({type:String,attribute:!0,reflect:!0})],We.prototype,"id",2);Xe([K({type:String,reflect:!0})],We.prototype,"role",2);Xe([K({type:Number,attribute:"focus-index",reflect:!0})],We.prototype,"focusIndex",1);Xe([K({type:Array,attribute:!1})],We.prototype,"selectedIndices",1);let Sn=We;Sn.ensureDefined();const ul=":host{contain:content;outline:none}:host(:not([selected])) .text{opacity:.8}:host(:hover),:host(:focus),:host([anchors-shown]){background-color:var(--sd-tab-bar-hover-color, #e7f1fa);cursor:pointer}:host(:focus-visible){box-shadow:0 0 0 1px var(--sd-tab-bar-focus-color, #1467ba) inset}.root{position:relative;overflow:hidden;width:100%;height:100%;display:flex;align-items:center;justify-content:flex-start;padding:var(--sd-tab-bar-padding, 8px) calc(2 * var(--sd-tab-bar-padding, 8px));box-sizing:border-box}.counter{text-align:center;background-color:#d9d9d9;min-width:24px;height:24px;line-height:24px;margin-left:calc(-.5 * var(--sd-tab-bar-padding, 8px));margin-right:var(--sd-tab-bar-padding, 8px)}:host([selected]) .counter{color:var(--sd-tab-bar-selected-counter-color, white);background-color:var(--sd-tab-bar-selected-counter-background-color, #3b85d1)}.text{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;flex-grow:1}.down-arrow{padding-left:calc(1.5 * var(--sd-tab-bar-padding, 8px));margin-right:calc(-1 * var(--sd-tab-bar-padding, 8px));outline:none;fill:var(--sd-tab-bar-color, #1467ba);flex:0 0 auto}.ripple{position:absolute;background:var(--sd-tab-bar-color, #1467ba);border-radius:50%;width:5px;height:5px;animation:rippleEffect .88s 1;opacity:0}@keyframes rippleEffect{0%{transform:scale(1);opacity:.4}to{transform:scale(100);opacity:0}}";var hl=Object.defineProperty,Ut=(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&&hl(e,i,n),n};const dr=navigator.userAgent.indexOf("Trident")!==-1,Pn=class Pn extends qe{constructor(){super(...arguments),this.minimumOverlayWidth=150,this.handleKeyDown=e=>{this.hasAnchors?(this.vertical?["Left","ArrowLeft","Right","ArrowRight","Enter"]:["Down","ArrowDown","Up","ArrowUp","Enter"]).indexOf(e.key)===-1?(this.hideAnchors(),this.focus()):(this.anchorsShown||(this.showAnchors(),window.requestAnimationFrame(()=>{this.list.focusIndex=0,this.list.focus(),this.updateDropdownSizes()})),e.preventDefault(),e.stopPropagation()):e.key==="Enter"&&(this.dispatchSelectionEvent(),e.preventDefault(),e.stopPropagation())},this.handleListSelection=e=>{this.hideAnchors(),e.stopPropagation(),this.dispatchSelectionEvent(this.anchors[e.detail.index]),this.focus()},this.handlePointerLeave=e=>{(dr||this.list&&!this.list.contains(e.target))&&window.addEventListener("pointermove",this.handlePointerMove)},this.handlePointerMove=e=>{!this.isPointerAbove(e,this)&&!this.isPointerAbove(e,this.list)&&(this.hideAnchors(),window.removeEventListener("pointermove",this.handlePointerMove))}}get selected(){return this.hasAttribute("selected")}set selected(e){if(e)this.setAttribute("selected","");else if(this.removeAttribute("selected"),this.shadowRoot&&this.showRipple){const i=this.shadowRoot.querySelector(".ripple");i.style.display="none",this.showRipple=!1}}firstUpdated(e){super.firstUpdated(e);const i=window.CSS&&window.CSS.supports;this._cssMathMaxSupported=i&&CSS.supports("max-width","max(50vw)");const r=this.ownerDocument;r.adoptedStyleSheets&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,...r.adoptedStyleSheets]),this.addEventListener("pointerdown",n=>{if(!this.noInk&&!this.showRipple){this.showRipple=!0;const s=this.getBoundingClientRect(),a=this.shadowRoot.querySelector(".ripple");a.style.left=`${n.clientX-s.left}px`,a.style.top=`${n.clientY-s.top}px`,a.style.display="",a.addEventListener("animationend",()=>{a.style.display="none",this.showRipple=!1},{once:!0})}}),this.addEventListener("click",n=>{n.composedPath().indexOf(this.list)===-1&&(this.dispatchSelectionEvent(),n.preventDefault(),n.stopPropagation())}),this.addEventListener("keydown",this.handleKeyDown),this.hasAttribute("tabindex")||this.setAttribute("tabindex","0")}disconnectedCallback(){super.disconnectedCallback(),this.hideAnchors()}static get styles(){return[hi`
|
|
204
|
+
${Dt(ul)}
|
|
205
|
+
`]}render(){return ve`
|
|
207
206
|
<div class="root" @pointerover=${this.showAnchors} @pointerdown=${this.showAnchors}>
|
|
208
|
-
${this.showCounter?
|
|
207
|
+
${this.showCounter?ve` <span class="counter">${this.index+1}</span> `:""}
|
|
209
208
|
<div class="text">${this.text}</div>
|
|
210
209
|
<div class="ripple" style="display: none"></div>
|
|
211
|
-
${this.hasAnchors?
|
|
210
|
+
${this.hasAnchors?ve`
|
|
212
211
|
<svg class="down-arrow" tabindex="-1" viewBox="0 0 16 16" width="16" height="16">
|
|
213
212
|
<path d="M13 4v2l-5 5-5-5v-2l5 5z"></path>
|
|
214
213
|
</svg>
|
|
215
214
|
`:""}
|
|
216
215
|
</div>
|
|
217
|
-
`}updateDropdownSizes(){const
|
|
216
|
+
`}updateDropdownSizes(){const i=((window.innerHeight||document.documentElement.clientHeight)-this.offsetHeight)*.5;Object.assign(this.list.style,{maxHeight:`${i}px`,minWidth:`${Math.max(this.offsetWidth,this.minimumOverlayWidth)}px`,maxWidth:this._cssMathMaxSupported?`max(50vw, ${this.offsetWidth}px)`:Math.max((window.innerWidth||document.documentElement.clientWidth)/2,this.offsetWidth)+"px"})}dispatchSelectionEvent(e){this.dispatchEvent(new CustomEvent("selection",{detail:{anchor:e}}))}isPointerAbove(e,i){const r=i.getBoundingClientRect();return r.left<=e.clientX&&r.right>=e.clientX&&r.top<=e.clientY&&r.bottom>=e.clientY}showAnchors(){!this.anchorsShown&&this.hasAnchors&&(this.root.addEventListener("pointerleave",this.handlePointerLeave),this.list||this.createList(),this.dataProvider.items=this.anchors.map((e,i)=>({caption:e,index:i})),this.updateDropdownSizes(),this.ownerDocument.body.appendChild(this.list),this.popper||(this.popper=Wa(this,this.list,{placement:this.vertical?"right-start":"bottom-start",modifiers:[{name:"computeStyles",options:{gpuAcceleration:!dr}},{name:"hide",enabled:!1},{name:"preventOverflow",options:{padding:0}},{name:"adjustWidthIfNeeded",enabled:!0,phase:"read",fn({state:e}){e.elements.popper.increaseWidthOnNextRenderIfNeeded()}}]})),window.requestAnimationFrame(()=>{this.popper&&this.popper.update()}),this.anchorsShown=!0)}createList(){this.list=document.createElement(Sn.ID),this.dataProvider=new sl,this.dataProvider.finalSizeIsKnown=!0,this.dataProvider.connectList(this.list),this.list.classList.add("anchor-list"),this.list.tabIndex=0,this.list.selectionType=ls.TriggerOnly,this.list.addEventListener("selection",this.handleListSelection),this.list.addEventListener("keydown",e=>{e.key=="Escape"&&(this.hideAnchors(),this.focus())}),this.list.addEventListener("focusout",()=>{this.hideAnchors()}),this.list.setAttribute("slot","anchors"),this.list.itemHeight=50,Object.assign(this.list.style,{zIndex:"21000",boxShadow:`rgba(0, 0, 0, 0.14) 0px 2px 2px 0px,
|
|
218
217
|
rgba(0, 0, 0, 0.12) 0px 1px 5px 0px,
|
|
219
|
-
rgba(0, 0, 0, 0.2) 0px 3px 1px -2px`,background:"white",overflowY:"auto"})}hideAnchors(){this.anchorsShown&&(this.anchorsShown=!1,this.root.removeEventListener("pointerleave",this.handlePointerLeave),this.list&&(this.list.focusIndex=-1,this.list.parentElement.removeChild(this.list))),this.popper&&(this.popper.destroy(),this.popper=null)}get hasAnchors(){return!!(this.anchors&&this.anchors.length)}get root(){return this.shadowRoot?this.shadowRoot.querySelector(".root"):null}};
|
|
220
|
-
${
|
|
221
|
-
`]}render(){return
|
|
218
|
+
rgba(0, 0, 0, 0.2) 0px 3px 1px -2px`,background:"white",overflowY:"auto"})}hideAnchors(){this.anchorsShown&&(this.anchorsShown=!1,this.root.removeEventListener("pointerleave",this.handlePointerLeave),this.list&&(this.list.focusIndex=-1,this.list.parentElement.removeChild(this.list))),this.popper&&(this.popper.destroy(),this.popper=null)}get hasAnchors(){return!!(this.anchors&&this.anchors.length)}get root(){return this.shadowRoot?this.shadowRoot.querySelector(".root"):null}};Pn.ID="sd-tab";let ye=Pn;Ut([K({type:String})],ye.prototype,"text");Ut([K({type:Array})],ye.prototype,"anchors");Ut([K()],ye.prototype,"index");Ut([K()],ye.prototype,"showCounter");Ut([K({type:Boolean,reflect:!0,attribute:"anchors-shown"})],ye.prototype,"anchorsShown");Sn.ensureDefined();customElements.get(ye.ID)||customElements.define(ye.ID,ye);const dl=":host{display:block;outline:none;contain:content}:host([vertical]) .tab-button-container{flex-direction:column}:host([vertical]) .slider{top:0;width:2px}:host(:not([vertical])) .slider{bottom:0;height:2px}.root{display:flex;width:100%;overflow:hidden}.tab-button-container{display:flex;flex-wrap:nowrap;overflow:hidden;position:relative;flex:1 1 auto}@supports (scrollbar-width: none){:host(:not([vertical])) .tab-button-container{overflow-x:auto;scrollbar-width:none}:host(:not([vertical])) .tab-button-container::-webkit-scrollbar{display:none}}@supports selector(::-webkit-scrollbar){:host(:not([vertical])) .tab-button-container{overflow-x:auto;scrollbar-width:none}:host(:not([vertical])) .tab-button-container::-webkit-scrollbar{display:none}}:host([vertical]) .root{height:100%}:host([vertical]) .tab-button-container{overflow-y:auto;height:100%}:host([vertical]) ::slotted(*){flex-shrink:0;flex-grow:0}.slider{background-color:var(--sd-tab-bar-color, #1467ba);position:absolute;left:0}:host(:not([no-slide])) .slider,:host([no-slide=false]) .slider{transition-duration:var(--sd-tab-bar-slide-duration, .5s)}.scroll-button{cursor:pointer;padding:4px;position:relative;flex:0 0 auto;display:flex;align-items:center;justify-content:center;box-shadow:0 2px 2px #00000024,0 1px 5px #0000001f,0 3px 1px -2px #0003}.scroll-button>svg{width:24px;height:24px;fill:var(--sd-tab-bar-color, #1467ba)}.ripple{position:absolute;left:0;top:0;background-position:center;transition:background-color .88s;opacity:.4;width:100%;height:100%;border-radius:50%}.ripple:active{background-color:var(--sd-tab-bar-color, #1467ba);background-size:100%;transition:background-color 0s}";var fl=Object.defineProperty,yt=(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&&fl(e,i,n),n};const fr=40,ui=class ui extends qe{constructor(){super(...arguments),this.handleSlotChange=()=>{this.tabElements=this.shadowRoot.querySelector("slot").assignedNodes().filter(i=>i instanceof ye);let e=0;this.tabElements.forEach(i=>{i.vertical=this.vertical,i.showCounter=this.showCounter,i.index=e++,i.addEventListener("focus",this.handleTabFocus),i.addEventListener("selection",this.handleTabSelection)}),this.updateScrollButtonVisibility(),this.selectedIndex==null&&(this._focusedIndex=0,this._selectedIndex=0),this.updateSelectionState()},this.handleTabFocus=e=>{const i=e.target.index;this.focusedIndex!==i&&(this._focusedIndex=i,this.scrollToFocusedIfNeeded())},this.handleTabSelection=e=>{this.selectedIndex=e.target.index,this.dispatchSelectionEvent(e.detail.anchor)},this.handleKeyDown=e=>{switch(e.key){case"Up":case"ArrowUp":case"Left":case"ArrowLeft":e.preventDefault(),this.focusedIndex=Math.max(this.focusedIndex-1,0);break;case"Down":case"ArrowDown":case"Right":case"ArrowRight":e.preventDefault(),this.focusedIndex=Math.min(this.focusedIndex+1,this.tabElements.length-1);break}},this.debounced={}}connectedCallback(){super.connectedCallback(),this.resizeObserver=new ResizeObserver(()=>{this.debounce("update-scroll-button-visibility",()=>{this.lastKnownWidth!==this.offsetWidth&&(this.lastKnownWidth=this.offsetWidth,this.updateScrollButtonVisibility())})}),this.resizeObserver.observe(this)}disconnectedCallback(){super.disconnectedCallback(),this.resizeObserver.disconnect()}firstUpdated(e){super.firstUpdated(e);const i=this.ownerDocument;i.adoptedStyleSheets&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,...i.adoptedStyleSheets]),this.shadowRoot.querySelector("slot").addEventListener("slotchange",this.handleSlotChange),this.addEventListener("keydown",this.handleKeyDown),this.tabButtonContainer.addEventListener("wheel",n=>{if(this.tabButtonContainer.scrollWidth>this.tabButtonContainer.offsetWidth){const s=document.elementsFromPoint(n.x,n.y)[0];this.tabButtonContainer.scrollLeft+=n.deltaY;const a=document.elementsFromPoint(n.x,n.y)[0];s!=a&&(s instanceof ye&&s.hideAnchors(),a instanceof ye&&a.showAnchors()),n.preventDefault()}})}static get styles(){return[hi`
|
|
219
|
+
${Dt(dl)}
|
|
220
|
+
`]}render(){return ve`
|
|
222
221
|
<div class="root">
|
|
223
|
-
${!this.vertical&&this.showLeftScrollButton?
|
|
224
|
-
<div class="scroll-button left" @pointerdown="${()=>{this.tabButtonContainer.scrollLeft-=
|
|
222
|
+
${!this.vertical&&this.showLeftScrollButton?ve`
|
|
223
|
+
<div class="scroll-button left" @pointerdown="${()=>{this.tabButtonContainer.scrollLeft-=fr}}">
|
|
225
224
|
<div class="ripple"></div>
|
|
226
225
|
<svg><g><path d="M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"></path></g></svg>
|
|
227
226
|
</div>`:""}
|
|
228
227
|
<div class="tab-button-container" @scroll="${this.updateScrollButtonVisibility}">
|
|
229
228
|
<slot></slot>
|
|
230
|
-
${this.noBar?"":
|
|
229
|
+
${this.noBar?"":ve` <div class="slider"></div>`}
|
|
231
230
|
</div>
|
|
232
|
-
${!this.vertical&&this.showRightScrollButton?
|
|
233
|
-
<div class="scroll-button right" @pointerdown="${()=>{this.tabButtonContainer.scrollLeft+=
|
|
231
|
+
${!this.vertical&&this.showRightScrollButton?ve`
|
|
232
|
+
<div class="scroll-button right" @pointerdown="${()=>{this.tabButtonContainer.scrollLeft+=fr}}">
|
|
234
233
|
<div class="ripple"></div>
|
|
235
234
|
<svg><g><path d="M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"></path></g></svg>
|
|
236
235
|
</div>`:""}
|
|
237
236
|
</div>
|
|
238
|
-
`}set selectedIndex(e){this._selectedIndex!==e&&(this.focusedIndex=e,this._selectedIndex=e,this.updateSelectionState())}get selectedIndex(){return this._selectedIndex}updateSelectionState(){this.tabElements&&this.tabElements.forEach((e,
|
|
239
|
-
`+
|
|
240
|
-
|
|
237
|
+
`}set selectedIndex(e){this._selectedIndex!==e&&(this.focusedIndex=e,this._selectedIndex=e,this.updateSelectionState())}get selectedIndex(){return this._selectedIndex}updateSelectionState(){this.tabElements&&this.tabElements.forEach((e,i)=>{i===this._selectedIndex?(e.selected=!0,this.slider&&window.requestAnimationFrame(()=>{let r=e.offsetLeft,n=e.offsetTop;e.offsetParent!=this._tabButtonContainer&&(r-=this._tabButtonContainer.offsetLeft,n-=this._tabButtonContainer.offsetTop);const s=this.slider;this.vertical?(s.style.height=e.offsetHeight+"px",s.style.transform=`translateY(${n}px)`):(s.style.width=e.offsetWidth+"px",s.style.transform=`translateX(${r}px)`)})):e.selected=!1})}set focusedIndex(e){this._focusedIndex!==e&&(this._focusedIndex=e,this.updateFocusedState())}get focusedIndex(){return this._focusedIndex}updateFocusedState(){this.tabElements&&this.focusedIndex>=0&&this.focusedIndex<this.tabElements.length&&(this.scrollToFocusedIfNeeded(),this.tabElements[this.focusedIndex].focus())}get slider(){return this.shadowRoot.querySelector(".slider")}get tabButtonContainer(){return this._tabButtonContainer||(this._tabButtonContainer=this.shadowRoot.querySelector(".tab-button-container")),this._tabButtonContainer}scrollToFocusedIfNeeded(){if(this.tabElements&&this.focusedIndex>=0&&this.focusedIndex<this.tabElements.length){const e=this.tabElements[this.focusedIndex];let i=e.offsetLeft;e.offsetParent!=this._tabButtonContainer&&(i-=this._tabButtonContainer.offsetLeft);const r=e.offsetWidth,n=i+r;if(i>this.tabButtonContainer.scrollLeft&&n<this.tabButtonContainer.scrollLeft+this.tabButtonContainer.offsetWidth)return;this.tabButtonContainer.scrollLeft<i?this.tabButtonContainer.scrollLeft=n-this.tabButtonContainer.offsetWidth:this.tabButtonContainer.scrollLeft+this.tabButtonContainer.offsetWidth>n&&(this.tabButtonContainer.scrollLeft=i)}}updateScrollButtonVisibility(){this.showLeftScrollButton=this.tabButtonContainer.scrollLeft!==0,this.showRightScrollButton=this.tabButtonContainer.scrollLeft<this.tabButtonContainer.scrollWidth-this.tabButtonContainer.offsetWidth}dispatchSelectionEvent(e){this.dispatchEvent(new CustomEvent("selection",{detail:{selectedTab:{index:this.selectedIndex,tabElement:this.tabElements[this.selectedIndex]},anchor:e}}))}debounce(e,i){this.debounced[e]||(this.debounced[e]=!0,requestAnimationFrame(()=>{delete this.debounced[e],i()}))}};ui.ID="sd-tab-bar",ui.shadowRootOptions={...qe.shadowRootOptions,delegatesFocus:!0};let $e=ui;yt([K({type:Boolean,reflect:!0,attribute:"no-bar"})],$e.prototype,"noBar");yt([K({type:Boolean,reflect:!0,attribute:"no-slide"})],$e.prototype,"noSlide");yt([K({type:Boolean,reflect:!0})],$e.prototype,"vertical");yt([K({type:Boolean,reflect:!0,attribute:"show-counter"})],$e.prototype,"showCounter");yt([K()],$e.prototype,"showLeftScrollButton");yt([K()],$e.prototype,"showRightScrollButton");customElements.get($e.ID)||customElements.define($e.ID,$e);function cs(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function pl(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 ei={exports:{}},pr;function ml(){if(pr)return ei.exports;pr=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 ei.exports=e(),ei.exports.createColors=e,ei.exports}const gl={},bl=Object.freeze(Object.defineProperty({__proto__:null,default:gl},Symbol.toStringTag,{value:"Module"})),ke=pl(bl);var Pi,mr;function An(){if(mr)return Pi;mr=1;let t=ml(),e=ke;class i extends Error{constructor(n,s,a,d,f,h){super(n),this.name="CssSyntaxError",this.reason=n,f&&(this.file=f),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=l=>l,d=l=>l,f=l=>l;if(n){let{bold:l,gray:p,red:m}=t.createColors(!0);d=b=>l(m(b)),a=b=>p(b),e&&(f=b=>e(b))}let h=s.split(/\r?\n/),o=Math.max(this.line-3,0),u=Math.min(this.line+2,h.length),c=String(u).length;return h.slice(o,u).map((l,p)=>{let m=o+1+p,b=" "+(" "+m).slice(-c)+" | ";if(m===this.line){if(l.length>160){let _=20,w=Math.max(0,this.column-_),y=Math.max(this.column+_,this.endColumn+_),v=l.slice(w,y),E=a(b.replace(/\d/g," "))+l.slice(0,Math.min(this.column-1,_-1)).replace(/[^\t]/g," ");return d(">")+a(b)+f(v)+`
|
|
238
|
+
`+E+d("^")}let x=a(b.replace(/\d/g," "))+l.slice(0,this.column-1).replace(/[^\t]/g," ");return d(">")+a(b)+f(l)+`
|
|
239
|
+
`+x+d("^")}return" "+a(b)+f(l)}).join(`
|
|
240
|
+
`)}toString(){let n=this.showSourceCode();return n&&(n=`
|
|
241
241
|
|
|
242
|
-
`+
|
|
243
|
-
`),this.name+": "+this.message+
|
|
242
|
+
`+n+`
|
|
243
|
+
`),this.name+": "+this.message+n}}return Pi=i,i.default=i,Pi}var Ni,gr;function us(){if(gr)return Ni;gr=1;const t={after:`
|
|
244
244
|
`,beforeClose:`
|
|
245
245
|
`,beforeComment:`
|
|
246
246
|
`,beforeDecl:`
|
|
247
247
|
`,beforeOpen:" ",beforeRule:`
|
|
248
|
-
`,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function
|
|
249
|
-
`)){let
|
|
250
|
-
`)&&(
|
|
251
|
-
`)&&(
|
|
252
|
-
`)&&(
|
|
253
|
-
`)&&(
|
|
254
|
-
`);return
|
|
255
|
-
`?(
|
|
256
|
-
`);i=new Array(o.length);let s=0;for(let a=0,l=o.length;a<l;a++)i[a]=s,s+=o[a].length+1;this[Ri]=i}t=i[i.length-1];let r=0;if(e>=t)r=i.length-1;else{let o=i.length-2,s;for(;r<o;)if(s=r+(o-r>>1),e<i[s])o=s-1;else if(e>=i[s+1])r=s+1;else{r=s;break}}return{col:e-i[r]+1,line:r+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:Gi(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,t,i,r){if(!this.map)return!1;let o=this.map.consumer(),s=o.originalPositionFor({column:t,line:e});if(!s.source)return!1;let a;typeof i=="number"&&(a=o.originalPositionFor({column:r,line:i}));let l;Vi(s.source)?l=Ut(s.source):l=new URL(s.source,this.map.consumer().sourceRoot||Ut(this.map.mapFile));let c={column:s.column,endColumn:a&&a.column,endLine:a&&a.line,line:s.line,url:l.toString()};if(l.protocol==="file:")if(ir)c.file=ir(l);else throw new Error("file: protocol is not available in this PostCSS build");let h=o.sourceContentFor(s.source);return h&&(c.source=h),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 bi=ri;ri.default=ri;Ii&&Ii.registerInput&&Ii.registerInput(ri);let{SourceMapConsumer:Fr,SourceMapGenerator:Qt}=me,{dirname:ei,relative:qr,resolve:Kr,sep:Vr}=me,{pathToFileURL:sr}=me,_l=bi,Sl=!!(Fr&&Qt),Al=!!(ei&&Kr&&qr&&Vr),Cl=class{constructor(e,t,i,r){this.stringify=e,this.mapOpts=i.map||{},this.root=t,this.opts=i,this.css=r,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=`
|
|
248
|
+
`,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 f=(n.raws.between||"")+(s?";":"");this.builder(a+d+f,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,f=0;for(;d&&d.type!=="root";)f+=1,d=d.parent;if(a.includes(`
|
|
249
|
+
`)){let h=this.raw(n,null,"indent");if(h.length)for(let o=0;o<f;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 f=n.nodes[d],h=this.raw(f,"before");h&&this.builder(h),this.stringify(f,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 f=n.parent;if(a==="before"&&(!f||f.type==="root"&&f.first===n||f&&f.type==="document"))return"";if(!f)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(u=>{if(d=u.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(`
|
|
250
|
+
`)&&(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(`
|
|
251
|
+
`)&&(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(`
|
|
252
|
+
`)&&(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(`
|
|
253
|
+
`)&&(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 f=a.raws.before.split(`
|
|
254
|
+
`);return s=f[f.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 Ni=i,i.default=i,Ni}var Mi,br;function mi(){if(br)return Mi;br=1;let t=us();function e(i,r){new t(r).stringify(i)}return Mi=e,e.default=e,Mi}var ti={},vr;function Cn(){return vr||(vr=1,ti.isClean=Symbol("isClean"),ti.my=Symbol("my")),ti}var Ti,yr;function gi(){if(yr)return Ti;yr=1;let t=An(),e=us(),i=mi(),{isClean:r,my:n}=Cn();function s(f,h){let o=new f.constructor;for(let u in f){if(!Object.prototype.hasOwnProperty.call(f,u)||u==="proxyCache")continue;let c=f[u],l=typeof c;u==="parent"&&l==="object"?h&&(o[u]=h):u==="source"?o[u]=c:Array.isArray(c)?o[u]=c.map(p=>s(p,o)):(l==="object"&&c!==null&&(c=s(c)),o[u]=c)}return o}function a(f,h){if(h&&typeof h.offset<"u")return h.offset;let o=1,u=1,c=0;for(let l=0;l<f.length;l++){if(u===h.line&&o===h.column){c=l;break}f[l]===`
|
|
255
|
+
`?(o=1,u+=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 u of h[o])typeof u.clone=="function"?this.append(u.clone()):this.append(u)}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 u in h)o[u]=h[u];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:u,start:c}=this.rangeBy(o);return this.source.input.error(h,{column:c.column,line:c.line},{column:u.column,line:u.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,u){return h[o]===u||(h[o]=u,(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 u="document"in this.source.input?this.source.input.document:this.source.input.css,l=u.slice(a(u,this.source.start),a(u,this.source.end)).indexOf(h.word);l!==-1&&(o=this.positionInside(l))}return o}positionInside(h){let o=this.source.start.column,u=this.source.start.line,c="document"in this.source.input?this.source.input.document:this.source.input.css,l=a(c,this.source.start),p=l+h;for(let m=l;m<p;m++)c[m]===`
|
|
256
|
+
`?(o=1,u+=1):o+=1;return{column:o,line:u,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,u={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:u.column+1,line:u.line,offset:u.offset+1};if(h.word){let p=o.slice(a(o,this.source.start),a(o,this.source.end)).indexOf(h.word);p!==-1&&(u=this.positionInside(p),c=this.positionInside(p+h.word.length))}else h.start?u={column:h.start.column,line:h.start.line,offset:a(o,h.start)}:h.index&&(u=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<u.line||c.line===u.line&&c.column<=u.column)&&(c={column:u.column+1,line:u.line,offset:u.offset+1}),{end:c,start:u}}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,u=!1;for(let c of h)c===this?u=!0:u?(this.parent.insertAfter(o,c),o=c):this.parent.insertBefore(o,c);u||this.remove()}return this}root(){let h=this;for(;h.parent&&h.parent.type!=="document";)h=h.parent;return h}toJSON(h,o){let u={},c=o==null;o=o||new Map;let l=0;for(let p in this){if(!Object.prototype.hasOwnProperty.call(this,p)||p==="parent"||p==="proxyCache")continue;let m=this[p];if(Array.isArray(m))u[p]=m.map(b=>typeof b=="object"&&b.toJSON?b.toJSON(null,o):b);else if(typeof m=="object"&&m.toJSON)u[p]=m.toJSON(null,o);else if(p==="source"){if(m==null)continue;let b=o.get(m.input);b==null&&(b=l,o.set(m.input,l),l++),u[p]={end:m.end,inputId:b,start:m.start}}else u[p]=m}return c&&(u.inputs=[...o.keys()].map(p=>p.toJSON())),u}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,u=>{o+=u}),o}warn(h,o,u={}){let c={node:this};for(let l in u)c[l]=u[l];return h.warn(o,c)}}return Ti=d,d.default=d,Ti}var Li,wr;function bi(){if(wr)return Li;wr=1;let t=gi();class e extends t{constructor(r){super(r),this.type="comment"}}return Li=e,e.default=e,Li}var Di,xr;function vi(){if(xr)return Di;xr=1;let t=gi();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 Di=e,e.default=e,Di}var ji,_r;function lt(){if(_r)return ji;_r=1;let t=bi(),e=vi(),i=gi(),{isClean:r,my:n}=Cn(),s,a,d,f;function h(c){return c.map(l=>(l.nodes&&(l.nodes=h(l.nodes)),delete l.source,l))}function o(c){if(c[r]=!1,c.proxyOf.nodes)for(let l of c.proxyOf.nodes)o(l)}class u 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(...l){for(let p of l){let m=this.normalize(p,this.last);for(let b of m)this.proxyOf.nodes.push(b)}return this.markDirty(),this}cleanRaws(l){if(super.cleanRaws(l),this.nodes)for(let p of this.nodes)p.cleanRaws(l)}each(l){if(!this.proxyOf.nodes)return;let p=this.getIterator(),m,b;for(;this.indexes[p]<this.proxyOf.nodes.length&&(m=this.indexes[p],b=l(this.proxyOf.nodes[m],m),b!==!1);)this.indexes[p]+=1;return delete this.indexes[p],b}every(l){return this.nodes.every(l)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let l=this.lastEach;return this.indexes[l]=0,l}getProxyProcessor(){return{get(l,p){return p==="proxyOf"?l:l[p]?p==="each"||typeof p=="string"&&p.startsWith("walk")?(...m)=>l[p](...m.map(b=>typeof b=="function"?(x,_)=>b(x.toProxy(),_):b)):p==="every"||p==="some"?m=>l[p]((b,...x)=>m(b.toProxy(),...x)):p==="root"?()=>l.root().toProxy():p==="nodes"?l.nodes.map(m=>m.toProxy()):p==="first"||p==="last"?l[p].toProxy():l[p]:l[p]},set(l,p,m){return l[p]===m||(l[p]=m,(p==="name"||p==="params"||p==="selector")&&l.markDirty()),!0}}}index(l){return typeof l=="number"?l:(l.proxyOf&&(l=l.proxyOf),this.proxyOf.nodes.indexOf(l))}insertAfter(l,p){let m=this.index(l),b=this.normalize(p,this.proxyOf.nodes[m]).reverse();m=this.index(l);for(let _ of b)this.proxyOf.nodes.splice(m+1,0,_);let x;for(let _ in this.indexes)x=this.indexes[_],m<x&&(this.indexes[_]=x+b.length);return this.markDirty(),this}insertBefore(l,p){let m=this.index(l),b=m===0?"prepend":!1,x=this.normalize(p,this.proxyOf.nodes[m],b).reverse();m=this.index(l);for(let w of x)this.proxyOf.nodes.splice(m,0,w);let _;for(let w in this.indexes)_=this.indexes[w],m<=_&&(this.indexes[w]=_+x.length);return this.markDirty(),this}normalize(l,p){if(typeof l=="string")l=h(a(l).nodes);else if(typeof l>"u")l=[];else if(Array.isArray(l)){l=l.slice(0);for(let b of l)b.parent&&b.parent.removeChild(b,"ignore")}else if(l.type==="root"&&this.type!=="document"){l=l.nodes.slice(0);for(let b of l)b.parent&&b.parent.removeChild(b,"ignore")}else if(l.type)l=[l];else if(l.prop){if(typeof l.value>"u")throw new Error("Value field is missed in node creation");typeof l.value!="string"&&(l.value=String(l.value)),l=[new e(l)]}else if(l.selector||l.selectors)l=[new f(l)];else if(l.name)l=[new s(l)];else if(l.text)l=[new t(l)];else throw new Error("Unknown node type in node creation");return l.map(b=>(b[n]||u.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(...l){l=l.reverse();for(let p of l){let m=this.normalize(p,this.first,"prepend").reverse();for(let b of m)this.proxyOf.nodes.unshift(b);for(let b in this.indexes)this.indexes[b]=this.indexes[b]+m.length}return this.markDirty(),this}push(l){return l.parent=this,this.proxyOf.nodes.push(l),this}removeAll(){for(let l of this.proxyOf.nodes)l.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(l){l=this.index(l),this.proxyOf.nodes[l].parent=void 0,this.proxyOf.nodes.splice(l,1);let p;for(let m in this.indexes)p=this.indexes[m],p>=l&&(this.indexes[m]=p-1);return this.markDirty(),this}replaceValues(l,p,m){return m||(m=p,p={}),this.walkDecls(b=>{p.props&&!p.props.includes(b.prop)||p.fast&&!b.value.includes(p.fast)||(b.value=b.value.replace(l,m))}),this.markDirty(),this}some(l){return this.nodes.some(l)}walk(l){return this.each((p,m)=>{let b;try{b=l(p,m)}catch(x){throw p.addToError(x)}return b!==!1&&p.walk&&(b=p.walk(l)),b})}walkAtRules(l,p){return p?l instanceof RegExp?this.walk((m,b)=>{if(m.type==="atrule"&&l.test(m.name))return p(m,b)}):this.walk((m,b)=>{if(m.type==="atrule"&&m.name===l)return p(m,b)}):(p=l,this.walk((m,b)=>{if(m.type==="atrule")return p(m,b)}))}walkComments(l){return this.walk((p,m)=>{if(p.type==="comment")return l(p,m)})}walkDecls(l,p){return p?l instanceof RegExp?this.walk((m,b)=>{if(m.type==="decl"&&l.test(m.prop))return p(m,b)}):this.walk((m,b)=>{if(m.type==="decl"&&m.prop===l)return p(m,b)}):(p=l,this.walk((m,b)=>{if(m.type==="decl")return p(m,b)}))}walkRules(l,p){return p?l instanceof RegExp?this.walk((m,b)=>{if(m.type==="rule"&&l.test(m.selector))return p(m,b)}):this.walk((m,b)=>{if(m.type==="rule"&&m.selector===l)return p(m,b)}):(p=l,this.walk((m,b)=>{if(m.type==="rule")return p(m,b)}))}}return u.registerParse=c=>{a=c},u.registerRule=c=>{f=c},u.registerAtRule=c=>{s=c},u.registerRoot=c=>{d=c},ji=u,u.default=u,u.rebuild=c=>{c.type==="atrule"?Object.setPrototypeOf(c,s.prototype):c.type==="rule"?Object.setPrototypeOf(c,f.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(l=>{u.rebuild(l)})},ji}var Bi,Er;function On(){if(Er)return Bi;Er=1;let t=lt();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 Bi=e,e.default=e,t.registerAtRule(e),Bi}var zi,Sr;function kn(){if(Sr)return zi;Sr=1;let t=lt(),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},zi=r,r.default=r,zi}var Ui,Ar;function vl(){if(Ar)return Ui;Ar=1;let t="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";return Ui={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}},Ui}var qi,Cr;function hs(){if(Cr)return qi;Cr=1;let{existsSync:t,readFileSync:e}=ke,{dirname:i,join:r}=ke,{SourceMapConsumer:n,SourceMapGenerator:s}=ke;function a(f){return Buffer?Buffer.from(f,"base64").toString():window.atob(f)}class d{constructor(h,o){if(o.map===!1)return;this.loadAnnotation(h),this.inline=this.startWith(this.annotation,"data:");let u=o.map?o.map.prev:void 0,c=this.loadMap(o.from,u);!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,/,u=/^data:application\/json;base64,/,c=/^data:application\/json;charset=utf-?8,/,l=/^data:application\/json,/,p=h.match(c)||h.match(l);if(p)return decodeURIComponent(h.substr(p[0].length));let m=h.match(o)||h.match(u);if(m)return a(h.substr(m[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 u=h.lastIndexOf(o.pop()),c=h.indexOf("*/",u);u>-1&&c>-1&&(this.annotation=this.getAnnotationURL(h.substring(u,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 u=o(h);if(u){let c=this.loadFile(u);if(!c)throw new Error("Unable to load previous source map: "+u.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 u=this.annotation;return h&&(u=r(i(h),u)),this.loadFile(u)}}}startWith(h,o){return h?h.substr(0,o.length)===o:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}return qi=d,d.default=d,qi}var Hi,Or;function yi(){if(Or)return Hi;Or=1;let{nanoid:t}=vl(),{isAbsolute:e,resolve:i}=ke,{SourceMapConsumer:r,SourceMapGenerator:n}=ke,{fileURLToPath:s,pathToFileURL:a}=ke,d=An(),f=hs(),h=ke,o=Symbol("lineToIndexCache"),u=!!(r&&n),c=!!(i&&e);function l(m){if(m[o])return m[o];let b=m.css.split(`
|
|
257
|
+
`),x=new Array(b.length),_=0;for(let w=0,y=b.length;w<y;w++)x[w]=_,_+=b[w].length+1;return m[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&&u){let _=new f(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,E,A,I;if(x&&typeof x=="object"){let O=x,q=_;if(typeof O.offset=="number"){A=O.offset;let z=this.fromOffset(A);x=z.line,_=z.col}else x=O.line,_=O.column,A=this.fromLineAndColumn(x,_);if(typeof q.offset=="number"){E=q.offset;let z=this.fromOffset(E);v=z.line,y=z.col}else v=q.line,y=q.column,E=this.fromLineAndColumn(q.line,q.column)}else if(_)A=this.fromLineAndColumn(x,_);else{A=x;let O=this.fromOffset(A);x=O.line,_=O.col}let M=this.origin(x,_,v,y);return M?I=new d(b,M.endLine===void 0?M.line:{column:M.column,line:M.line},M.endLine===void 0?M.column:{column:M.endColumn,line:M.endLine},M.source,M.file,w.plugin):I=new d(b,v===void 0?x:{column:_,line:x},v===void 0?_:{column:y,line:v},this.css,this.file,w.plugin),I.input={column:_,endColumn:y,endLine:v,endOffset:E,line:x,offset:A,source:this.css},this.file&&(a&&(I.input.url=a(this.file).toString()),I.input.file=this.file),I}fromLineAndColumn(b,x){return l(this)[b-1]+x-1}fromOffset(b){let x=l(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 E;typeof _=="number"&&(E=y.originalPositionFor({column:w,line:_}));let A;e(v.source)?A=a(v.source):A=new URL(v.source,this.map.consumer().sourceRoot||a(this.map.mapFile));let I={column:v.column,endColumn:E&&E.column,endLine:E&&E.line,line:v.line,url:A.toString()};if(A.protocol==="file:")if(s)I.file=s(A);else throw new Error("file: protocol is not available in this PostCSS build");let M=y.sourceContentFor(v.source);return M&&(I.source=M),I}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 Wi,kr;function qt(){if(kr)return Wi;kr=1;let t=lt(),e,i;class r extends t{constructor(s){super(s),this.type="root",this.nodes||(this.nodes=[])}normalize(s,a,d){let f=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 f)h.raws.before=a.raws.before}return f}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},Wi=r,r.default=r,t.registerRoot(r),Wi}var Fi,$r;function ds(){if($r)return Fi;$r=1;let t={comma(e){return t.split(e,[","],!0)},space(e){let i=[" ",`
|
|
258
|
+
`," "];return t.split(e,i)},split(e,i,r){let n=[],s="",a=!1,d=0,f=!1,h="",o=!1;for(let u of e)o?o=!1:u==="\\"?o=!0:f?u===h&&(f=!1):u==='"'||u==="'"?(f=!0,h=u):u==="("?d+=1:u===")"?d>0&&(d-=1):d===0&&i.includes(u)&&(a=!0),a?(s!==""&&n.push(s.trim()),s="",a=!1):s+=u;return(r||s!=="")&&n.push(s.trim()),n}};return Fi=t,t.default=t,Fi}var Ki,Rr;function $n(){if(Rr)return Ki;Rr=1;let t=lt(),e=ds();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 Ki=i,i.default=i,t.registerRule(i),Ki}var Vi,Ir;function yl(){if(Ir)return Vi;Ir=1;let t=On(),e=bi(),i=vi(),r=yi(),n=hs(),s=qt(),a=$n();function d(f,h){if(Array.isArray(f))return f.map(c=>d(c));let{inputs:o,...u}=f;if(o){h=[];for(let c of o){let l={...c,__proto__:r.prototype};l.map&&(l.map={...l.map,__proto__:n.prototype}),h.push(l)}}if(u.nodes&&(u.nodes=f.nodes.map(c=>d(c,h))),u.source){let{inputId:c,...l}=u.source;u.source=l,c!=null&&(u.source.input=h[c])}if(u.type==="root")return new s(u);if(u.type==="decl")return new i(u);if(u.type==="rule")return new a(u);if(u.type==="comment")return new e(u);if(u.type==="atrule")return new t(u);throw new Error("Unknown node type: "+f.type)}return Vi=d,d.default=d,Vi}var Gi,Pr;function fs(){if(Pr)return Gi;Pr=1;let{dirname:t,relative:e,resolve:i,sep:r}=ke,{SourceMapConsumer:n,SourceMapGenerator:s}=ke,{pathToFileURL:a}=ke,d=yi(),f=!!(n&&s),h=!!(t&&i&&e&&r);class o{constructor(c,l,p,m){this.stringify=c,this.mapOpts=p.map||{},this.root=l,this.opts=p,this.css=m,this.originalCSS=m,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 l=`
|
|
257
259
|
`;this.css.includes(`\r
|
|
258
|
-
`)&&(
|
|
259
|
-
`),this.css+=
|
|
260
|
-
`),t=a.length-s):t+=a.length,l&&c!=="start"){let h=l.parent||{raws:{}};(!(l.type==="decl"||l.type==="atrule"&&!l.nodes)||l!==h.last||h.raws.semicolon)&&(l.source&&l.source.end?(r.source=this.sourcePath(l),r.original.line=l.source.end.line,r.original.column=l.source.end.column-1,r.generated.line=e,r.generated.column=t-2,this.map.addMapping(r)):(r.source=i,r.original.line=1,r.original.column=0,r.generated.line=e,r.generated.column=t-1,this.map.addMapping(r)))}})}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?ei(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(i=ei(Kr(i,this.mapOpts.annotation)));let r=qr(i,e);return this.memoizedPaths.set(e,r),r}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 _l(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 r=this.usesFileUrls?this.toFileUrl(i):this.toUrl(this.path(i));this.map.setSourceContent(r,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(sr){let i=sr(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;Vr==="\\"&&(e=e.replace(/\\/g,"/"));let i=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,i),i}};var Gr=Cl;let $l=mi,Zi=class extends $l{constructor(e){super(e),this.type="comment"}};var vi=Zi;Zi.default=Zi;let{isClean:Zr,my:Xr}=Nt,Yr=gi,Jr=vi,Ol=mi,Qr,pn,mn,es;function ts(n){return n.map(e=>(e.nodes&&(e.nodes=ts(e.nodes)),delete e.source,e))}function is(n){if(n[Zr]=!1,n.proxyOf.nodes)for(let e of n.proxyOf.nodes)is(e)}let Se=class ns extends Ol{append(...e){for(let t of e){let i=this.normalize(t,this.last);for(let r of i)this.proxyOf.nodes.push(r)}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,r;for(;this.indexes[t]<this.proxyOf.nodes.length&&(i=this.indexes[t],r=e(this.proxyOf.nodes[i],i),r!==!1);)this.indexes[t]+=1;return delete this.indexes[t],r}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(r=>typeof r=="function"?(o,s)=>r(o.toProxy(),s):r)):t==="every"||t==="some"?i=>e[t]((r,...o)=>i(r.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),r=this.normalize(t,this.proxyOf.nodes[i]).reverse();i=this.index(e);for(let s of r)this.proxyOf.nodes.splice(i+1,0,s);let o;for(let s in this.indexes)o=this.indexes[s],i<o&&(this.indexes[s]=o+r.length);return this.markDirty(),this}insertBefore(e,t){let i=this.index(e),r=i===0?"prepend":!1,o=this.normalize(t,this.proxyOf.nodes[i],r).reverse();i=this.index(e);for(let a of o)this.proxyOf.nodes.splice(i,0,a);let s;for(let a in this.indexes)s=this.indexes[a],i<=s&&(this.indexes[a]=s+o.length);return this.markDirty(),this}normalize(e,t){if(typeof e=="string")e=ts(Qr(e).nodes);else if(Array.isArray(e)){e=e.slice(0);for(let r of e)r.parent&&r.parent.removeChild(r,"ignore")}else if(e.type==="root"&&this.type!=="document"){e=e.nodes.slice(0);for(let r of e)r.parent&&r.parent.removeChild(r,"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 Yr(e)]}else if(e.selector)e=[new pn(e)];else if(e.name)e=[new mn(e)];else if(e.text)e=[new Jr(e)];else throw new Error("Unknown node type in node creation");return e.map(r=>(r[Xr]||ns.rebuild(r),r=r.proxyOf,r.parent&&r.parent.removeChild(r),r[Zr]&&is(r),typeof r.raws.before>"u"&&t&&typeof t.raws.before<"u"&&(r.raws.before=t.raws.before.replace(/\S/g,"")),r.parent=this.proxyOf,r))}prepend(...e){e=e.reverse();for(let t of e){let i=this.normalize(t,this.first,"prepend").reverse();for(let r of i)this.proxyOf.nodes.unshift(r);for(let r in this.indexes)this.indexes[r]=this.indexes[r]+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(r=>{t.props&&!t.props.includes(r.prop)||t.fast&&!r.value.includes(t.fast)||(r.value=r.value.replace(e,i))}),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each((t,i)=>{let r;try{r=e(t,i)}catch(o){throw t.addToError(o)}return r!==!1&&t.walk&&(r=t.walk(e)),r})}walkAtRules(e,t){return t?e instanceof RegExp?this.walk((i,r)=>{if(i.type==="atrule"&&e.test(i.name))return t(i,r)}):this.walk((i,r)=>{if(i.type==="atrule"&&i.name===e)return t(i,r)}):(t=e,this.walk((i,r)=>{if(i.type==="atrule")return t(i,r)}))}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,r)=>{if(i.type==="decl"&&e.test(i.prop))return t(i,r)}):this.walk((i,r)=>{if(i.type==="decl"&&i.prop===e)return t(i,r)}):(t=e,this.walk((i,r)=>{if(i.type==="decl")return t(i,r)}))}walkRules(e,t){return t?e instanceof RegExp?this.walk((i,r)=>{if(i.type==="rule"&&e.test(i.selector))return t(i,r)}):this.walk((i,r)=>{if(i.type==="rule"&&i.selector===e)return t(i,r)}):(t=e,this.walk((i,r)=>{if(i.type==="rule")return t(i,r)}))}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=>{Qr=n};Se.registerRule=n=>{pn=n};Se.registerAtRule=n=>{mn=n};Se.registerRoot=n=>{es=n};var Ue=Se;Se.default=Se;Se.rebuild=n=>{n.type==="atrule"?Object.setPrototypeOf(n,mn.prototype):n.type==="rule"?Object.setPrototypeOf(n,pn.prototype):n.type==="decl"?Object.setPrototypeOf(n,Yr.prototype):n.type==="comment"?Object.setPrototypeOf(n,Jr.prototype):n.type==="root"&&Object.setPrototypeOf(n,es.prototype),n[Xr]=!0,n.nodes&&n.nodes.forEach(e=>{Se.rebuild(e)})};let kl=Ue,rs,ss,Et=class extends kl{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(e={}){return new rs(new ss,this,e).stringify()}};Et.registerLazyResult=n=>{rs=n};Et.registerProcessor=n=>{ss=n};var gn=Et;Et.default=Et;let Xi=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 os=Xi;Xi.default=Xi;let Il=os,Yi=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 Il(e,t);return this.messages.push(i),i}warnings(){return this.messages.filter(e=>e.type==="warning")}get content(){return this.css}};var bn=Yi;Yi.default=Yi;const Pi=39,or=34,Ht=92,ar=47,Wt=10,dt=32,Ft=12,qt=9,Kt=13,Rl=91,Pl=93,Nl=40,Ll=41,Tl=123,Ml=125,Dl=59,jl=42,Bl=58,zl=64,Vt=/[\t\n\f\r "#'()/;[\\\]{}]/g,Gt=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,Ul=/.[\r\n"'(/\\]/,lr=/[\da-f]/i;var Hl=function(e,t={}){let i=e.css.valueOf(),r=t.ignoreErrors,o,s,a,l,c,h,u,f,g,E,y=i.length,p=0,C=[],R=[];function P(){return p}function w(T){throw e.error("Unclosed "+T,p)}function A(){return R.length===0&&p>=y}function O(T){if(R.length)return R.pop();if(p>=y)return;let I=T?T.ignoreUnclosed:!1;switch(o=i.charCodeAt(p),o){case Wt:case dt:case qt:case Kt:case Ft:{s=p;do s+=1,o=i.charCodeAt(s);while(o===dt||o===Wt||o===qt||o===Kt||o===Ft);E=["space",i.slice(p,s)],p=s-1;break}case Rl:case Pl:case Tl:case Ml:case Bl:case Dl:case Ll:{let j=String.fromCharCode(o);E=[j,j,p];break}case Nl:{if(f=C.length?C.pop()[1]:"",g=i.charCodeAt(p+1),f==="url"&&g!==Pi&&g!==or&&g!==dt&&g!==Wt&&g!==qt&&g!==Ft&&g!==Kt){s=p;do{if(h=!1,s=i.indexOf(")",s+1),s===-1)if(r||I){s=p;break}else w("bracket");for(u=s;i.charCodeAt(u-1)===Ht;)u-=1,h=!h}while(h);E=["brackets",i.slice(p,s+1),p,s],p=s}else s=i.indexOf(")",p+1),l=i.slice(p,s+1),s===-1||Ul.test(l)?E=["(","(",p]:(E=["brackets",l,p,s],p=s);break}case Pi:case or:{a=o===Pi?"'":'"',s=p;do{if(h=!1,s=i.indexOf(a,s+1),s===-1)if(r||I){s=p+1;break}else w("string");for(u=s;i.charCodeAt(u-1)===Ht;)u-=1,h=!h}while(h);E=["string",i.slice(p,s+1),p,s],p=s;break}case zl:{Vt.lastIndex=p+1,Vt.test(i),Vt.lastIndex===0?s=i.length-1:s=Vt.lastIndex-2,E=["at-word",i.slice(p,s+1),p,s],p=s;break}case Ht:{for(s=p,c=!0;i.charCodeAt(s+1)===Ht;)s+=1,c=!c;if(o=i.charCodeAt(s+1),c&&o!==ar&&o!==dt&&o!==Wt&&o!==qt&&o!==Kt&&o!==Ft&&(s+=1,lr.test(i.charAt(s)))){for(;lr.test(i.charAt(s+1));)s+=1;i.charCodeAt(s+1)===dt&&(s+=1)}E=["word",i.slice(p,s+1),p,s],p=s;break}default:{o===ar&&i.charCodeAt(p+1)===jl?(s=i.indexOf("*/",p+2)+1,s===0&&(r||I?s=i.length:w("comment")),E=["comment",i.slice(p,s+1),p,s],p=s):(Gt.lastIndex=p+1,Gt.test(i),Gt.lastIndex===0?s=i.length-1:s=Gt.lastIndex-2,E=["word",i.slice(p,s+1),p,s],C.push(E),p=s);break}}return p++,E}function N(T){R.push(T)}return{back:N,endOfFile:A,nextToken:O,position:P}};let as=Ue,si=class extends as{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 vn=si;si.default=si;as.registerAtRule(si);let ls=Ue,cs,hs,it=class extends ls{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,t,i){let r=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 r)o.raws.before=t.raws.before}return r}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 cs(new hs,this,e).stringify()}};it.registerLazyResult=n=>{cs=n};it.registerProcessor=n=>{hs=n};var Lt=it;it.default=it;ls.registerRoot(it);let _t={comma(n){return _t.split(n,[","],!0)},space(n){let e=[" ",`
|
|
261
|
-
`," "];return _t.split(n,e)},split(n,e,t){let i=[],r="",o=!1,s=0,a=!1,l="",c=!1;for(let h of n)c?c=!1:h==="\\"?c=!0:a?h===l&&(a=!1):h==='"'||h==="'"?(a=!0,l=h):h==="("?s+=1:h===")"?s>0&&(s-=1):s===0&&e.includes(h)&&(o=!0),o?(r!==""&&i.push(r.trim()),r="",o=!1):r+=h;return(t||r!=="")&&i.push(r.trim()),i}};var ds=_t;_t.default=_t;let us=Ue,Wl=ds,oi=class extends us{constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return Wl.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 yn=oi;oi.default=oi;us.registerRule(oi);let Fl=gi,ql=Hl,Kl=vi,Vl=vn,Gl=Lt,cr=yn;const hr={empty:!0,space:!0};function Zl(n){for(let e=n.length-1;e>=0;e--){let t=n[e],i=t[3]||t[2];if(i)return i}}let Xl=class{constructor(e){this.input=e,this.root=new Gl,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 Vl;t.name=e[1].slice(1),t.name===""&&this.unnamedAtrule(t,e),this.init(t,e[2]);let i,r,o,s=!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,r=l[o];r&&r[0]==="space";)r=l[--o];r&&(t.source.end=this.getPosition(r[3]||r[2]),t.source.end.offset++)}this.end(e);break}else l.push(e);else l.push(e);if(this.tokenizer.endOfFile()){s=!0;break}}t.raws.between=this.spacesAndCommentsFromEnd(l),l.length?(t.raws.afterName=this.spacesAndCommentsFromStart(l),this.raw(t,"params",l),s&&(e=l[l.length-1],t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++,this.spaces=t.raws.between,t.raws.between="")):(t.raws.afterName="",t.params=""),a&&(t.nodes=[],this.current=t)}checkMissedSemicolon(e){let t=this.colon(e);if(t===!1)return;let i=0,r;for(let o=t-1;o>=0&&(r=e[o],!(r[0]!=="space"&&(i+=1,i===2)));o--);throw this.input.error("Missed semicolon",r[0]==="word"?r[3]+1:r[2])}colon(e){let t=0,i,r,o;for(let[s,a]of e.entries()){if(i=a,r=i[0],r==="("&&(t+=1),r===")"&&(t-=1),t===0&&r===":")if(!o)this.doubleColon(i);else{if(o[0]==="word"&&o[1]==="progid")continue;return s}o=i}return!1}comment(e){let t=new Kl;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 r=i.match(/^(\s*)([^]*\S)(\s*)$/);t.text=r[2],t.raws.left=r[1],t.raws.right=r[3]}}createTokenizer(){this.tokenizer=ql(this.input)}decl(e,t){let i=new Fl;this.init(i,e[0][2]);let r=e[e.length-1];for(r[0]===";"&&(this.semicolon=!0,e.pop()),i.source.end=this.getPosition(r[3]||r[2]||Zl(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 s=[],a;for(;e.length&&(a=e[0][0],!(a!=="space"&&a!=="comment"));)s.push(e.shift());this.precheckMissedSemicolon(e);for(let c=e.length-1;c>=0;c--){if(o=e[c],o[1].toLowerCase()==="!important"){i.important=!0;let h=this.stringFrom(e,c);h=this.spacesFromEnd(e)+h,h!==" !important"&&(i.raws.important=h);break}else if(o[1].toLowerCase()==="important"){let h=e.slice(0),u="";for(let f=c;f>0;f--){let g=h[f][0];if(u.trim().indexOf("!")===0&&g!=="space")break;u=h.pop()[1]+u}u.trim().indexOf("!")===0&&(i.important=!0,i.raws.important=u,e=h)}if(o[0]!=="space"&&o[0]!=="comment")break}e.some(c=>c[0]!=="space"&&c[0]!=="comment")&&(i.raws.between+=s.map(c=>c[1]).join(""),s=[]),this.raw(i,"value",s.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 cr;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,r=!1,o=null,s=[],a=e[1].startsWith("--"),l=[],c=e;for(;c;){if(i=c[0],l.push(c),i==="("||i==="[")o||(o=c),s.push(i==="("?")":"]");else if(a&&r&&i==="{")o||(o=c),s.push("}");else if(s.length===0)if(i===";")if(r){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===":"&&(r=!0);else i===s[s.length-1]&&(s.pop(),s.length===0&&(o=null));c=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),s.length>0&&this.unclosedBracket(o),t&&r){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,r){let o,s,a=i.length,l="",c=!0,h,u;for(let f=0;f<a;f+=1)o=i[f],s=o[0],s==="space"&&f===a-1&&!r?c=!1:s==="comment"?(u=i[f-1]?i[f-1][0]:"empty",h=i[f+1]?i[f+1][0]:"empty",!hr[u]&&!hr[h]?l.slice(-1)===","?c=!1:l+=o[1]:c=!1):l+=o[1];if(!c){let f=i.reduce((g,E)=>g+E[1],"");e.raws[t]={raw:f,value:l}}e[t]=l}rule(e){e.pop();let t=new cr;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 r=t;r<e.length;r++)i+=e[r][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 Yl=Xl;let Jl=Ue,Ql=Yl,ec=bi;function ai(n,e){let t=new ec(n,e),i=new Ql(t);try{i.parse()}catch(r){throw r}return i.root}var wn=ai;ai.default=ai;Jl.registerParse(ai);let{isClean:ve,my:tc}=Nt,ic=Gr,nc=pi,rc=Ue,sc=gn,dr=bn,oc=wn,ac=Lt;const lc={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},cc={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},hc={Once:!0,postcssPlugin:!0,prepare:!0},nt=0;function ut(n){return typeof n=="object"&&typeof n.then=="function"}function fs(n){let e=!1,t=lc[n.type];return n.type==="decl"?e=n.prop.toLowerCase():n.type==="atrule"&&(e=n.name.toLowerCase()),e&&n.append?[t,t+"-"+e,nt,t+"Exit",t+"Exit-"+e]:e?[t,t+"-"+e,t+"Exit",t+"Exit-"+e]:n.append?[t,nt,t+"Exit"]:[t,t+"Exit"]}function ur(n){let e;return n.type==="document"?e=["Document",nt,"DocumentExit"]:n.type==="root"?e=["Root",nt,"RootExit"]:e=fs(n),{eventIndex:0,events:e,iterator:0,node:n,visitorIndex:0,visitors:[]}}function Ji(n){return n[ve]=!1,n.nodes&&n.nodes.forEach(e=>Ji(e)),n}let Qi={},rt=class ps{constructor(e,t,i){this.stringified=!1,this.processed=!1;let r;if(typeof t=="object"&&t!==null&&(t.type==="root"||t.type==="document"))r=Ji(t);else if(t instanceof ps||t instanceof dr)r=Ji(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=oc;i.syntax&&(o=i.syntax.parse),i.parser&&(o=i.parser),o.parse&&(o=o.parse);try{r=o(t,i)}catch(s){this.processed=!0,this.error=s}r&&!r[tc]&&rc.rebuild(r)}this.result=new dr(e,r,i),this.helpers={...Qi,postcss:Qi,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(r){console&&console.error&&console.error(r)}return e}prepareVisitors(){this.listeners={};let e=(t,i,r)=>{this.listeners[i]||(this.listeners[i]=[]),this.listeners[i].push([t,r])};for(let t of this.plugins)if(typeof t=="object")for(let i in t){if(!cc[i]&&/^[A-Z]/.test(i))throw new Error(`Unknown event ${i} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!hc[i])if(typeof t[i]=="object")for(let r in t[i])r==="*"?e(t,i,t[i][r]):e(t,i+"-"+r.toLowerCase(),t[i][r]);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(ut(i))try{await i}catch(r){throw this.handleError(r)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[ve];){e[ve]=!0;let t=[ur(e)];for(;t.length>0;){let i=this.visitTick(t);if(ut(i))try{await i}catch(r){let o=t[t.length-1].node;throw this.handleError(r,o)}}}if(this.listeners.OnceExit)for(let[t,i]of this.listeners.OnceExit){this.result.lastPlugin=t;try{if(e.type==="document"){let r=e.nodes.map(o=>i(o,this.helpers));await Promise.all(r)}else await i(e,this.helpers)}catch(r){throw this.handleError(r)}}}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 ut(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=nc;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let r=new ic(t,this.result.root,this.result.opts).generate();return this.result.css=r[0],this.result.map=r[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(ut(t))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[ve];)e[ve]=!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,r]of e){this.result.lastPlugin=i;let o;try{o=r(t,this.helpers)}catch(s){throw this.handleError(s,t.proxyOf)}if(t.type!=="root"&&t.type!=="document"&&!t.parent)return!0;if(ut(o))throw this.getAsyncError()}}visitTick(e){let t=e[e.length-1],{node:i,visitors:r}=t;if(i.type!=="root"&&i.type!=="document"&&!i.parent){e.pop();return}if(r.length>0&&t.visitorIndex<r.length){let[s,a]=r[t.visitorIndex];t.visitorIndex+=1,t.visitorIndex===r.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=s;try{return a(i.toProxy(),this.helpers)}catch(l){throw this.handleError(l,i)}}if(t.iterator!==0){let s=t.iterator,a;for(;a=i.nodes[i.indexes[s]];)if(i.indexes[s]+=1,!a[ve]){a[ve]=!0,e.push(ur(a));return}t.iterator=0,delete i.indexes[s]}let o=t.events;for(;t.eventIndex<o.length;){let s=o[t.eventIndex];if(t.eventIndex+=1,s===nt){i.nodes&&i.nodes.length&&(i[ve]=!0,t.iterator=i.getIterator());return}else if(this.listeners[s]){t.visitors=this.listeners[s];return}}e.pop()}walkSync(e){e[ve]=!0;let t=fs(e);for(let i of t)if(i===nt)e.nodes&&e.each(r=>{r[ve]||this.walkSync(r)});else{let r=this.listeners[i];if(r&&this.visitSync(r,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"}};rt.registerPostcss=n=>{Qi=n};var ms=rt;rt.default=rt;ac.registerLazyResult(rt);sc.registerLazyResult(rt);let dc=Gr,uc=pi,fc=wn;const pc=bn;let en=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 r,o=uc;this.result=new pc(this._processor,r,this._opts),this.result.css=t;let s=this;Object.defineProperty(this.result,"root",{get(){return s.root}});let a=new dc(o,r,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=fc;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 mc=en;en.default=en;let gc=mc,bc=ms,vc=gn,yc=Lt,St=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 gc(this,e,t):new bc(this,e,t)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}};var wc=St;St.default=St;yc.registerProcessor(St);vc.registerProcessor(St);let xc=gi,Ec=Wr,_c=vi,Sc=vn,Ac=bi,Cc=Lt,$c=yn;function At(n,e){if(Array.isArray(n))return n.map(r=>At(r));let{inputs:t,...i}=n;if(t){e=[];for(let r of t){let o={...r,__proto__:Ac.prototype};o.map&&(o.map={...o.map,__proto__:Ec.prototype}),e.push(o)}}if(i.nodes&&(i.nodes=n.nodes.map(r=>At(r,e))),i.source){let{inputId:r,...o}=i.source;i.source=o,r!=null&&(i.source.input=e[r])}if(i.type==="root")return new Cc(i);if(i.type==="decl")return new xc(i);if(i.type==="rule")return new $c(i);if(i.type==="comment")return new _c(i);if(i.type==="atrule")return new Sc(i);throw new Error("Unknown node type: "+n.type)}var Oc=At;At.default=At;var fr={};let kc=fn,gs=gi,Ic=ms,Rc=Ue,xn=wc,Pc=pi,Nc=Oc,bs=gn,Lc=os,vs=vi,ys=vn,Tc=bn,Mc=bi,Dc=wn,jc=ds,ws=yn,xs=Lt,Bc=mi;function L(...n){return n.length===1&&Array.isArray(n[0])&&(n=n[0]),new xn(n)}L.plugin=function(e,t){let i=!1;function r(...s){console&&console.warn&&!i&&(i=!0,console.warn(e+`: postcss.plugin was deprecated. Migration guide:
|
|
262
|
-
https://evilmartians.com/chronicles/postcss-8-plugin-migration`),fr.LANG&&fr.LANG.startsWith("cn")&&console.warn(e+`: 里面 postcss.plugin 被弃用. 迁移指南:
|
|
263
|
-
https://www.w3ctech.com/topic/2226`));let a=t(...s);return a.postcssPlugin=e,a.postcssVersion=new xn().version,a}let o;return Object.defineProperty(r,"postcss",{get(){return o||(o=r()),o}}),r.process=function(s,a,l){return L([r(l)]).process(s,a)},r};L.stringify=Pc;L.parse=Dc;L.fromJSON=Nc;L.list=jc;L.comment=n=>new vs(n);L.atRule=n=>new ys(n);L.decl=n=>new gs(n);L.rule=n=>new ws(n);L.root=n=>new xs(n);L.document=n=>new bs(n);L.CssSyntaxError=kc;L.Declaration=gs;L.Container=Rc;L.Processor=xn;L.Document=bs;L.Comment=vs;L.Warning=Lc;L.AtRule=ys;L.Result=Tc;L.Input=Mc;L.Rule=ws;L.Root=xs;L.Node=Bc;Ic.registerPostcss(L);var zc=L;L.default=L;const U=Br(zc);U.stringify;U.fromJSON;U.plugin;U.parse;U.list;U.document;U.comment;U.atRule;U.rule;U.decl;U.root;U.CssSyntaxError;U.Declaration;U.Container;U.Processor;U.Document;U.Comment;U.Warning;U.AtRule;U.Result;U.Input;U.Rule;U.Root;U.Node;var Uc=function(e){const t=e.prefix,i=/\s+$/.test(t)?t:`${t} `,r=e.ignoreFiles?[].concat(e.ignoreFiles):[],o=e.includeFiles?[].concat(e.includeFiles):[];return function(s){r.length&&s.source.input.file&&pr(s.source.input.file,r)||o.length&&s.source.input.file&&!pr(s.source.input.file,o)||s.walkRules(a=>{const l=["keyframes","-webkit-keyframes","-moz-keyframes","-o-keyframes"];a.parent&&l.includes(a.parent.name)||(a.selectors=a.selectors.map(c=>e.exclude&&Hc(c,e.exclude)?c:e.transform?e.transform(t,c,i+c,s.source.input.file,a):i+c))})}};function pr(n,e){return e.some(t=>t instanceof RegExp?t.test(n):n.includes(t))}function Hc(n,e){return e.some(t=>t instanceof RegExp?t.test(n):n===t)}const Wc=Br(Uc),Fc="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}",qc="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 Kc(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}function Es(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)&&Es(t)}),n}class mr{constructor(e){e.data===void 0&&(e.data={}),this.data=e.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function _s(n){return n.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function Oe(n,...e){const t=Object.create(null);for(const i in n)t[i]=n[i];return e.forEach(function(i){for(const r in i)t[r]=i[r]}),t}const Vc="</span>",gr=n=>!!n.scope,Gc=(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,r)=>`${i}${"_".repeat(r+1)}`)].join(" ")}return`${e}${n}`};class Zc{constructor(e,t){this.buffer="",this.classPrefix=t.classPrefix,e.walk(this)}addText(e){this.buffer+=_s(e)}openNode(e){if(!gr(e))return;const t=Gc(e.scope,{prefix:this.classPrefix});this.span(t)}closeNode(e){gr(e)&&(this.buffer+=Vc)}value(){return this.buffer}span(e){this.buffer+=`<span class="${e}">`}}const br=(n={})=>{const e={children:[]};return Object.assign(e,n),e};class En{constructor(){this.rootNode=br(),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=br({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=>{En._collapse(t)}))}}class Xc extends En{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 Zc(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function Ct(n){return n?typeof n=="string"?n:n.source:null}function Ss(n){return He("(?=",n,")")}function Yc(n){return He("(?:",n,")*")}function Jc(n){return He("(?:",n,")?")}function He(...n){return n.map(e=>Ct(e)).join("")}function Qc(n){const e=n[n.length-1];return typeof e=="object"&&e.constructor===Object?(n.splice(n.length-1,1),e):{}}function _n(...n){return"("+(Qc(n).capture?"":"?:")+n.map(e=>Ct(e)).join("|")+")"}function As(n){return new RegExp(n.toString()+"|").exec("").length-1}function eh(n,e){const t=n&&n.exec(e);return t&&t.index===0}const th=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function Sn(n,{joinWith:e}){let t=0;return n.map(i=>{t+=1;const r=t;let o=Ct(i),s="";for(;o.length>0;){const a=th.exec(o);if(!a){s+=o;break}s+=o.substring(0,a.index),o=o.substring(a.index+a[0].length),a[0][0]==="\\"&&a[1]?s+="\\"+String(Number(a[1])+r):(s+=a[0],a[0]==="("&&t++)}return s}).map(i=>`(${i})`).join(e)}const ih=/\b\B/,Cs="[a-zA-Z]\\w*",An="[a-zA-Z_]\\w*",$s="\\b\\d+(\\.\\d+)?",Os="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",ks="\\b(0b[01]+)",nh="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",rh=(n={})=>{const e=/^#![ ]*\//;return n.binary&&(n.begin=He(e,/.*\b/,n.binary,/\b.*/)),Oe({scope:"meta",begin:e,end:/$/,relevance:0,"on:begin":(t,i)=>{t.index!==0&&i.ignoreMatch()}},n)},$t={begin:"\\\\[\\s\\S]",relevance:0},sh={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[$t]},oh={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[$t]},ah={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/},yi=function(n,e,t={}){const i=Oe({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 r=_n("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:He(/[ ]+/,"(",r,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),i},lh=yi("//","$"),ch=yi("/\\*","\\*/"),hh=yi("#","$"),dh={scope:"number",begin:$s,relevance:0},uh={scope:"number",begin:Os,relevance:0},fh={scope:"number",begin:ks,relevance:0},ph={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[$t,{begin:/\[/,end:/\]/,relevance:0,contains:[$t]}]},mh={scope:"title",begin:Cs,relevance:0},gh={scope:"title",begin:An,relevance:0},bh={begin:"\\.\\s*"+An,relevance:0},vh=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 Zt=Object.freeze({__proto__:null,APOS_STRING_MODE:sh,BACKSLASH_ESCAPE:$t,BINARY_NUMBER_MODE:fh,BINARY_NUMBER_RE:ks,COMMENT:yi,C_BLOCK_COMMENT_MODE:ch,C_LINE_COMMENT_MODE:lh,C_NUMBER_MODE:uh,C_NUMBER_RE:Os,END_SAME_AS_BEGIN:vh,HASH_COMMENT_MODE:hh,IDENT_RE:Cs,MATCH_NOTHING_RE:ih,METHOD_GUARD:bh,NUMBER_MODE:dh,NUMBER_RE:$s,PHRASAL_WORDS_MODE:ah,QUOTE_STRING_MODE:oh,REGEXP_MODE:ph,RE_STARTERS_RE:nh,SHEBANG:rh,TITLE_MODE:mh,UNDERSCORE_IDENT_RE:An,UNDERSCORE_TITLE_MODE:gh});function yh(n,e){n.input[n.index-1]==="."&&e.ignoreMatch()}function wh(n,e){n.className!==void 0&&(n.scope=n.className,delete n.className)}function xh(n,e){e&&n.beginKeywords&&(n.begin="\\b("+n.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",n.__beforeBegin=yh,n.keywords=n.keywords||n.beginKeywords,delete n.beginKeywords,n.relevance===void 0&&(n.relevance=0))}function Eh(n,e){Array.isArray(n.illegal)&&(n.illegal=_n(...n.illegal))}function _h(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 Sh(n,e){n.relevance===void 0&&(n.relevance=1)}const Ah=(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=He(t.beforeMatch,Ss(t.begin)),n.starts={relevance:0,contains:[Object.assign(t,{endsParent:!0})]},n.relevance=0,delete t.beforeMatch},Ch=["of","and","for","in","not","or","if","then","parent","list","value"],$h="keyword";function Is(n,e,t=$h){const i=Object.create(null);return typeof n=="string"?r(t,n.split(" ")):Array.isArray(n)?r(t,n):Object.keys(n).forEach(function(o){Object.assign(i,Is(n[o],e,o))}),i;function r(o,s){e&&(s=s.map(a=>a.toLowerCase())),s.forEach(function(a){const l=a.split("|");i[l[0]]=[o,Oh(l[0],l[1])]})}}function Oh(n,e){return e?Number(e):kh(n)?0:1}function kh(n){return Ch.includes(n.toLowerCase())}const vr={},De=n=>{console.error(n)},yr=(n,...e)=>{console.log(`WARN: ${n}`,...e)},Ve=(n,e)=>{vr[`${n}/${e}`]||(console.log(`Deprecated as of ${n}. ${e}`),vr[`${n}/${e}`]=!0)},li=new Error;function Rs(n,e,{key:t}){let i=0;const r=n[t],o={},s={};for(let a=1;a<=e.length;a++)s[a+i]=r[a],o[a+i]=!0,i+=As(e[a-1]);n[t]=s,n[t]._emit=o,n[t]._multi=!0}function Ih(n){if(Array.isArray(n.begin)){if(n.skip||n.excludeBegin||n.returnBegin)throw De("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),li;if(typeof n.beginScope!="object"||n.beginScope===null)throw De("beginScope must be object"),li;Rs(n,n.begin,{key:"beginScope"}),n.begin=Sn(n.begin,{joinWith:""})}}function Rh(n){if(Array.isArray(n.end)){if(n.skip||n.excludeEnd||n.returnEnd)throw De("skip, excludeEnd, returnEnd not compatible with endScope: {}"),li;if(typeof n.endScope!="object"||n.endScope===null)throw De("endScope must be object"),li;Rs(n,n.end,{key:"endScope"}),n.end=Sn(n.end,{joinWith:""})}}function Ph(n){n.scope&&typeof n.scope=="object"&&n.scope!==null&&(n.beginScope=n.scope,delete n.scope)}function Nh(n){Ph(n),typeof n.beginScope=="string"&&(n.beginScope={_wrap:n.beginScope}),typeof n.endScope=="string"&&(n.endScope={_wrap:n.endScope}),Ih(n),Rh(n)}function Lh(n){function e(s,a){return new RegExp(Ct(s),"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+=As(a)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const a=this.regexes.map(l=>l[1]);this.matcherRe=e(Sn(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((u,f)=>f>0&&u!==void 0),h=this.matchIndexes[c];return l.splice(0,c),Object.assign(l,h)}}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,h])=>l.addRule(c,h)),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 h=this.getMatcher(0);h.lastIndex=this.lastIndex+1,c=h.exec(a)}return c&&(this.regexIndex+=c.position+1,this.regexIndex===this.count&&this.considerAll()),c}}function r(s){const a=new i;return s.contains.forEach(l=>a.addRule(l.begin,{rule:l,type:"begin"})),s.terminatorEnd&&a.addRule(s.terminatorEnd,{type:"end"}),s.illegal&&a.addRule(s.illegal,{type:"illegal"}),a}function o(s,a){const l=s;if(s.isCompiled)return l;[wh,_h,Nh,Ah].forEach(h=>h(s,a)),n.compilerExtensions.forEach(h=>h(s,a)),s.__beforeBegin=null,[xh,Eh,Sh].forEach(h=>h(s,a)),s.isCompiled=!0;let c=null;return typeof s.keywords=="object"&&s.keywords.$pattern&&(s.keywords=Object.assign({},s.keywords),c=s.keywords.$pattern,delete s.keywords.$pattern),c=c||/\w+/,s.keywords&&(s.keywords=Is(s.keywords,n.case_insensitive)),l.keywordPatternRe=e(c,!0),a&&(s.begin||(s.begin=/\B|\b/),l.beginRe=e(l.begin),!s.end&&!s.endsWithParent&&(s.end=/\B|\b/),s.end&&(l.endRe=e(l.end)),l.terminatorEnd=Ct(l.end)||"",s.endsWithParent&&a.terminatorEnd&&(l.terminatorEnd+=(s.end?"|":"")+a.terminatorEnd)),s.illegal&&(l.illegalRe=e(s.illegal)),s.contains||(s.contains=[]),s.contains=[].concat(...s.contains.map(function(h){return Th(h==="self"?s:h)})),s.contains.forEach(function(h){o(h,l)}),s.starts&&o(s.starts,a),l.matcher=r(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=Oe(n.classNameAliases||{}),o(n)}function Ps(n){return n?n.endsWithParent||Ps(n.starts):!1}function Th(n){return n.variants&&!n.cachedVariants&&(n.cachedVariants=n.variants.map(function(e){return Oe(n,{variants:null},e)})),n.cachedVariants?n.cachedVariants:Ps(n)?Oe(n,{starts:n.starts?Oe(n.starts):null}):Object.isFrozen(n)?Oe(n):n}var Mh="11.9.0";class Dh extends Error{constructor(e,t){super(e),this.name="HTMLInjectionError",this.html=t}}const Ni=_s,wr=Oe,xr=Symbol("nomatch"),jh=7,Ns=function(n){const e=Object.create(null),t=Object.create(null),i=[];let r=!0;const o="Could not find the language '{}', did you forget to load/include a language module?",s={disableAutodetect:!0,name:"Plain text",contains:[]};let a={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:Xc};function l(d){return a.noHighlightRe.test(d)}function c(d){let b=d.className+" ";b+=d.parentNode?d.parentNode.className:"";const x=a.languageDetectRe.exec(b);if(x){const $=I(x[1]);return $||(yr(o.replace("{}",x[1])),yr("Falling back to no-highlight mode for this block.",d)),$?x[1]:"no-highlight"}return b.split(/\s+/).find($=>l($)||I($))}function h(d,b,x){let $="",B="";typeof b=="object"?($=d,x=b.ignoreIllegals,B=b.language):(Ve("10.7.0","highlight(lang, code, ...args) has been deprecated."),Ve("10.7.0",`Please use highlight(code, options) instead.
|
|
264
|
-
https://github.com/highlightjs/highlight.js/issues/2277`),B=d,$=b),x===void 0&&(x=!0);const V={code:$,language:B};Q("before:highlight",V);const ne=V.result?V.result:u(V.language,V.code,x);return ne.code=V.code,Q("after:highlight",ne),ne}function u(d,b,x,$){const B=Object.create(null);function V(m,v){return m.keywords[v]}function ne(){if(!_.keywords){F.addText(M);return}let m=0;_.keywordPatternRe.lastIndex=0;let v=_.keywordPatternRe.exec(M),S="";for(;v;){S+=M.substring(m,v.index);const D=re.case_insensitive?v[0].toLowerCase():v[0],X=V(_,D);if(X){const[xe,Hs]=X;if(F.addText(S),S="",B[D]=(B[D]||0)+1,B[D]<=jh&&(Pe+=Hs),xe.startsWith("_"))S+=v[0];else{const Ws=re.classNameAliases[xe]||xe;Z(v[0],Ws)}}else S+=v[0];m=_.keywordPatternRe.lastIndex,v=_.keywordPatternRe.exec(M)}S+=M.substring(m),F.addText(S)}function ue(){if(M==="")return;let m=null;if(typeof _.subLanguage=="string"){if(!e[_.subLanguage]){F.addText(M);return}m=u(_.subLanguage,M,!0,be[_.subLanguage]),be[_.subLanguage]=m._top}else m=g(M,_.subLanguage.length?_.subLanguage:null);_.relevance>0&&(Pe+=m.relevance),F.__addSublanguage(m._emitter,m.language)}function W(){_.subLanguage!=null?ue():ne(),M=""}function Z(m,v){m!==""&&(F.startScope(v),F.addText(m),F.endScope())}function Re(m,v){let S=1;const D=v.length-1;for(;S<=D;){if(!m._emit[S]){S++;continue}const X=re.classNameAliases[m[S]]||m[S],xe=v[S];X?Z(xe,X):(M=xe,ne(),M=""),S++}}function ge(m,v){return m.scope&&typeof m.scope=="string"&&F.openNode(re.classNameAliases[m.scope]||m.scope),m.beginScope&&(m.beginScope._wrap?(Z(M,re.classNameAliases[m.beginScope._wrap]||m.beginScope._wrap),M=""):m.beginScope._multi&&(Re(m.beginScope,v),M="")),_=Object.create(m,{parent:{value:_}}),_}function We(m,v,S){let D=eh(m.endRe,S);if(D){if(m["on:end"]){const X=new mr(m);m["on:end"](v,X),X.isMatchIgnored&&(D=!1)}if(D){for(;m.endsParent&&m.parent;)m=m.parent;return m}}if(m.endsWithParent)return We(m.parent,v,S)}function xi(m){return _.matcher.regexIndex===0?(M+=m[0],1):(Ke=!0,0)}function at(m){const v=m[0],S=m.rule,D=new mr(S),X=[S.__beforeBegin,S["on:begin"]];for(const xe of X)if(xe&&(xe(m,D),D.isMatchIgnored))return xi(v);return S.skip?M+=v:(S.excludeBegin&&(M+=v),W(),!S.returnBegin&&!S.excludeBegin&&(M=v)),ge(S,m),S.returnBegin?0:v.length}function Ei(m){const v=m[0],S=b.substring(m.index),D=We(_,m,S);if(!D)return xr;const X=_;_.endScope&&_.endScope._wrap?(W(),Z(v,_.endScope._wrap)):_.endScope&&_.endScope._multi?(W(),Re(_.endScope,m)):X.skip?M+=v:(X.returnEnd||X.excludeEnd||(M+=v),W(),X.excludeEnd&&(M=v));do _.scope&&F.closeNode(),!_.skip&&!_.subLanguage&&(Pe+=_.relevance),_=_.parent;while(_!==D.parent);return D.starts&&ge(D.starts,m),X.returnEnd?0:v.length}function Tt(){const m=[];for(let v=_;v!==re;v=v.parent)v.scope&&m.unshift(v.scope);m.forEach(v=>F.openNode(v))}let Fe={};function Mt(m,v){const S=v&&v[0];if(M+=m,S==null)return W(),0;if(Fe.type==="begin"&&v.type==="end"&&Fe.index===v.index&&S===""){if(M+=b.slice(v.index,v.index+1),!r){const D=new Error(`0 width match regex (${d})`);throw D.languageName=d,D.badRule=Fe.rule,D}return 1}if(Fe=v,v.type==="begin")return at(v);if(v.type==="illegal"&&!x){const D=new Error('Illegal lexeme "'+S+'" for mode "'+(_.scope||"<unnamed>")+'"');throw D.mode=_,D}else if(v.type==="end"){const D=Ei(v);if(D!==xr)return D}if(v.type==="illegal"&&S==="")return 1;if(qe>1e5&&qe>v.index*3)throw new Error("potential infinite loop, way more iterations than matches");return M+=S,S.length}const re=I(d);if(!re)throw De(o.replace("{}",d)),new Error('Unknown language: "'+d+'"');const Dt=Lh(re);let lt="",_=$||Dt;const be={},F=new a.__emitter(a);Tt();let M="",Pe=0,fe=0,qe=0,Ke=!1;try{if(re.__emitTokens)re.__emitTokens(b,F);else{for(_.matcher.considerAll();;){qe++,Ke?Ke=!1:_.matcher.considerAll(),_.matcher.lastIndex=fe;const m=_.matcher.exec(b);if(!m)break;const v=b.substring(fe,m.index),S=Mt(v,m);fe=m.index+S}Mt(b.substring(fe))}return F.finalize(),lt=F.toHTML(),{language:d,value:lt,relevance:Pe,illegal:!1,_emitter:F,_top:_}}catch(m){if(m.message&&m.message.includes("Illegal"))return{language:d,value:Ni(b),illegal:!0,relevance:0,_illegalBy:{message:m.message,index:fe,context:b.slice(fe-100,fe+100),mode:m.mode,resultSoFar:lt},_emitter:F};if(r)return{language:d,value:Ni(b),illegal:!1,relevance:0,errorRaised:m,_emitter:F,_top:_};throw m}}function f(d){const b={value:Ni(d),illegal:!1,relevance:0,_top:s,_emitter:new a.__emitter(a)};return b._emitter.addText(d),b}function g(d,b){b=b||a.languages||Object.keys(e);const x=f(d),$=b.filter(I).filter(q).map(W=>u(W,d,!1));$.unshift(x);const B=$.sort((W,Z)=>{if(W.relevance!==Z.relevance)return Z.relevance-W.relevance;if(W.language&&Z.language){if(I(W.language).supersetOf===Z.language)return 1;if(I(Z.language).supersetOf===W.language)return-1}return 0}),[V,ne]=B,ue=V;return ue.secondBest=ne,ue}function E(d,b,x){const $=b&&t[b]||x;d.classList.add("hljs"),d.classList.add(`language-${$}`)}function y(d){let b=null;const x=c(d);if(l(x))return;if(Q("before:highlightElement",{el:d,language:x}),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 Dh("One of your code blocks includes unescaped HTML.",d.innerHTML);b=d;const $=b.textContent,B=x?h($,{language:x,ignoreIllegals:!0}):g($);d.innerHTML=B.value,d.dataset.highlighted="yes",E(d,x,B.language),d.result={language:B.language,re:B.relevance,relevance:B.relevance},B.secondBest&&(d.secondBest={language:B.secondBest.language,relevance:B.secondBest.relevance}),Q("after:highlightElement",{el:d,result:B,text:$})}function p(d){a=wr(a,d)}const C=()=>{w(),Ve("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function R(){w(),Ve("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let P=!1;function w(){if(document.readyState==="loading"){P=!0;return}document.querySelectorAll(a.cssSelector).forEach(y)}function A(){P&&w()}typeof window<"u"&&window.addEventListener&&window.addEventListener("DOMContentLoaded",A,!1);function O(d,b){let x=null;try{x=b(n)}catch($){if(De("Language definition for '{}' could not be registered.".replace("{}",d)),r)De($);else throw $;x=s}x.name||(x.name=d),e[d]=x,x.rawDefinition=b.bind(null,n),x.aliases&&j(x.aliases,{languageName:d})}function N(d){delete e[d];for(const b of Object.keys(t))t[b]===d&&delete t[b]}function T(){return Object.keys(e)}function I(d){return d=(d||"").toLowerCase(),e[d]||e[t[d]]}function j(d,{languageName:b}){typeof d=="string"&&(d=[d]),d.forEach(x=>{t[x.toLowerCase()]=b})}function q(d){const b=I(d);return b&&!b.disableAutodetect}function J(d){d["before:highlightBlock"]&&!d["before:highlightElement"]&&(d["before:highlightElement"]=b=>{d["before:highlightBlock"](Object.assign({block:b.el},b))}),d["after:highlightBlock"]&&!d["after:highlightElement"]&&(d["after:highlightElement"]=b=>{d["after:highlightBlock"](Object.assign({block:b.el},b))})}function K(d){J(d),i.push(d)}function de(d){const b=i.indexOf(d);b!==-1&&i.splice(b,1)}function Q(d,b){const x=d;i.forEach(function($){$[x]&&$[x](b)})}function G(d){return Ve("10.7.0","highlightBlock will be removed entirely in v12.0"),Ve("10.7.0","Please use highlightElement now."),y(d)}Object.assign(n,{highlight:h,highlightAuto:g,highlightAll:w,highlightElement:y,highlightBlock:G,configure:p,initHighlighting:C,initHighlightingOnLoad:R,registerLanguage:O,unregisterLanguage:N,listLanguages:T,getLanguage:I,registerAliases:j,autoDetection:q,inherit:wr,addPlugin:K,removePlugin:de}),n.debugMode=function(){r=!1},n.safeMode=function(){r=!0},n.versionString=Mh,n.regex={concat:He,lookahead:Ss,either:_n,optional:Jc,anyNumberOfTimes:Yc};for(const d in Zt)typeof Zt[d]=="object"&&Es(Zt[d]);return Object.assign(n,Zt),n},st=Ns({});st.newInstance=()=>Ns({});var Bh=st;st.HighlightJS=st;st.default=st;const wi=Kc(Bh),ci="[A-Za-z$_][0-9A-Za-z$_]*",Ls=["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"],Ts=["true","false","null","undefined","NaN","Infinity"],Ms=["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"],Ds=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],js=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],Bs=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],zs=[].concat(js,Ms,Ds);function zh(n){const e=n.regex,t=(d,{after:b})=>{const x="</"+d[0].slice(1);return d.input.indexOf(x,b)!==-1},i=ci,r={begin:"<>",end:"</>"},o=/<[A-Za-z0-9\\._:-]+\s*\/>/,s={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(d,b)=>{const x=d[0].length+d.index,$=d.input[x];if($==="<"||$===","){b.ignoreMatch();return}$===">"&&(t(d,{after:x})||b.ignoreMatch());let B;const V=d.input.substring(x);if(B=V.match(/^\s*=/)){b.ignoreMatch();return}if((B=V.match(/^\s+extends\s+/))&&B.index===0){b.ignoreMatch();return}}},a={$pattern:ci,keyword:Ls,literal:Ts,built_in:zs,"variable.language":Bs},l="[0-9](_?[0-9])*",c=`\\.(${l})`,h="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",u={className:"number",variants:[{begin:`(\\b(${h})((${c})|\\.)?|(${c}))[eE][+-]?(${l})\\b`},{begin:`\\b(${h})\\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},f={className:"subst",begin:"\\$\\{",end:"\\}",keywords:a,contains:[]},g={begin:"html`",end:"",starts:{end:"`",returnEnd:!1,contains:[n.BACKSLASH_ESCAPE,f],subLanguage:"xml"}},E={begin:"css`",end:"",starts:{end:"`",returnEnd:!1,contains:[n.BACKSLASH_ESCAPE,f],subLanguage:"css"}},y={begin:"gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[n.BACKSLASH_ESCAPE,f],subLanguage:"graphql"}},p={className:"string",begin:"`",end:"`",contains:[n.BACKSLASH_ESCAPE,f]},C={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]},R=[n.APOS_STRING_MODE,n.QUOTE_STRING_MODE,g,E,y,p,{match:/\$\d+/},u];f.contains=R.concat({begin:/\{/,end:/\}/,keywords:a,contains:["self"].concat(R)});const P=[].concat(C,f.contains),w=P.concat([{begin:/\(/,end:/\)/,keywords:a,contains:["self"].concat(P)}]),A={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:a,contains:w},O={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"}}]},N={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:{_:[...Ms,...Ds]}},T={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},I={variants:[{match:[/function/,/\s+/,i,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[A],illegal:/%/},j={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function q(d){return e.concat("(?!",d.join("|"),")")}const J={match:e.concat(/\b/,q([...js,"super","import"]),i,e.lookahead(/\(/)),className:"title.function",relevance:0},K={begin:e.concat(/\./,e.lookahead(e.concat(i,/(?![0-9A-Za-z$_(])/))),end:i,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},de={match:[/get|set/,/\s+/,i,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},A]},Q="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+n.UNDERSCORE_IDENT_RE+")\\s*=>",G={match:[/const|var|let/,/\s+/,i,/\s*/,/=\s*/,/(async\s*)?/,e.lookahead(Q)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[A]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:a,exports:{PARAMS_CONTAINS:w,CLASS_REFERENCE:N},illegal:/#(?![$_A-z])/,contains:[n.SHEBANG({label:"shebang",binary:"node",relevance:5}),T,n.APOS_STRING_MODE,n.QUOTE_STRING_MODE,g,E,y,p,C,{match:/\$\d+/},u,N,{className:"attr",begin:i+e.lookahead(":"),relevance:0},G,{begin:"("+n.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[C,n.REGEXP_MODE,{className:"function",begin:Q,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:w}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:r.begin,end:r.end},{match:o},{begin:s.begin,"on:begin":s.isTrulyOpeningTag,end:s.end}],subLanguage:"xml",contains:[{begin:s.begin,end:s.end,skip:!0,contains:["self"]}]}]},I,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+n.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[A,n.inherit(n.TITLE_MODE,{begin:i,className:"title.function"})]},{match:/\.\.\./,relevance:0},K,{match:"\\$"+i,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[A]},J,j,O,de,{match:/\$[(.]/}]}}function Uh(n){const e=zh(n),t=ci,i=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],r={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]},s={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},a=["type","namespace","interface","public","private","protected","implements","declare","abstract","readonly","enum","override"],l={$pattern:ci,keyword:Ls.concat(a),literal:Ts,built_in:zs.concat(i),"variable.language":Bs},c={className:"meta",begin:"@"+t},h=(f,g,E)=>{const y=f.contains.findIndex(p=>p.label===g);if(y===-1)throw new Error("can not find mode to replace");f.contains.splice(y,1,E)};Object.assign(e.keywords,l),e.exports.PARAMS_CONTAINS.push(c),e.contains=e.contains.concat([c,r,o]),h(e,"shebang",n.SHEBANG()),h(e,"use_strict",s);const u=e.contains.find(f=>f.label==="func.def");return u.relevance=0,Object.assign(e,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),e}function Hh(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,r={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},o={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},s=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:[r]},{begin:/'/,end:/'/,contains:[r]},{begin:/[^\s"'=<>`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,unicodeRegex:!0,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,relevance:10,contains:[o,l,a,s,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[o,s,l,a]}]}]},n.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},r,{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 Wh=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_-]*/}}),Fh=["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"],qh=["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"],Kh=["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"],Vh=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],Gh=["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 Zh(n){const e=n.regex,t=Wh(n),i={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},r="and or not only",o=/@-?\w[\w]*(-\w+)*/,s="[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:"\\."+s,relevance:0},t.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+Kh.join("|")+")"},{begin:":(:)?("+Vh.join("|")+")"}]},t.CSS_VARIABLE,{className:"attribute",begin:"\\b("+Gh.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:r,attribute:qh.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...a,t.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+Fh.join("|")+")\\b"}]}}const Us=document.createElement("style");Us.innerText=[Fc,qc].join(`
|
|
265
|
-
`);document.head.appendChild(
|
|
266
|
-
`).trim();return
|
|
260
|
+
`)&&(l=`\r
|
|
261
|
+
`),this.css+=l+"/*# sourceMappingURL="+c+" */"}applyPrevMaps(){for(let c of this.previous()){let l=this.toUrl(this.path(c.file)),p=c.root||t(c.file),m;this.mapOpts.sourcesContent===!1?(m=new n(c.text),m.sourcesContent&&(m.sourcesContent=null)):m=c.consumer(),this.map.applySourceMap(m,l,this.toUrl(this.path(p)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let c;for(let l=this.root.nodes.length-1;l>=0;l--)c=this.root.nodes[l],c.type==="comment"&&c.text.startsWith("# sourceMappingURL=")&&this.root.removeChild(l)}else this.css&&(this.css=this.css.replace(/\n*\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),h&&f&&this.isMap())return this.generateMap();{let c="";return this.stringify(this.root,l=>{c+=l}),[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,l=1,p="<no source>",m={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"&&(m.generated.line=c,m.generated.column=l-1,w.source&&w.source.start?(m.source=this.sourcePath(w),m.original.line=w.source.start.line,m.original.column=w.source.start.column-1,this.map.addMapping(m)):(m.source=p,m.original.line=1,m.original.column=0,this.map.addMapping(m))),x=_.match(/\n/g),x?(c+=x.length,b=_.lastIndexOf(`
|
|
262
|
+
`),l=_.length-b):l+=_.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?(m.source=this.sourcePath(w),m.original.line=w.source.end.line,m.original.column=w.source.end.column-1,m.generated.line=c,m.generated.column=l-2,this.map.addMapping(m)):(m.source=p,m.original.line=1,m.original.column=0,m.generated.line=c,m.generated.column=l-1,this.map.addMapping(m)))}})}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(l=>l.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 l=this.memoizedPaths.get(c);if(l)return l;let p=this.opts.to?t(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(p=t(i(p,this.mapOpts.annotation)));let m=e(p,c);return this.memoizedPaths.set(c,m),m}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(c=>{if(c.source&&c.source.input.map){let l=c.source.input.map;this.previousMaps.includes(l)||this.previousMaps.push(l)}});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(l=>{if(l.source){let p=l.source.input.from;if(p&&!c[p]){c[p]=!0;let m=this.usesFileUrls?this.toFileUrl(p):this.toUrl(this.path(p));this.map.setSourceContent(m,l.source.input.css)}}});else if(this.css){let l=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(l,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 l=this.memoizedFileURLs.get(c);if(l)return l;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 l=this.memoizedURLs.get(c);if(l)return l;r==="\\"&&(c=c.replace(/\\/g,"/"));let p=encodeURI(c).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(c,p),p}}return Gi=o,Gi}var Zi,Nr;function wl(){if(Nr)return Zi;Nr=1;const t=39,e=34,i=92,r=47,n=10,s=32,a=12,d=9,f=13,h=91,o=93,u=40,c=41,l=123,p=125,m=59,b=42,x=58,_=64,w=/[\t\n\f\r "#'()/;[\\\]{}]/g,y=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,v=/.[\r\n"'(/\\]/,E=/[\da-f]/i;return Zi=function(I,M={}){let O=I.css.valueOf(),q=M.ignoreErrors,z,Q,ne,R,re,H,X,ee,oe,xe,ge=O.length,D=0,_e=[],fe=[];function je(){return D}function Re(Ee){throw I.error("Unclosed "+Ee,D)}function Oe(){return fe.length===0&&D>=ge}function Ie(Ee){if(fe.length)return fe.pop();if(D>=ge)return;let Je=Ee?Ee.ignoreUnclosed:!1;switch(z=O.charCodeAt(D),z){case n:case s:case d:case f:case a:{R=D;do R+=1,z=O.charCodeAt(R);while(z===s||z===n||z===d||z===f||z===a);H=["space",O.slice(D,R)],D=R-1;break}case h:case o:case l:case p:case x:case m:case c:{let Ye=String.fromCharCode(z);H=[Ye,Ye,D];break}case u:{if(xe=_e.length?_e.pop()[1]:"",oe=O.charCodeAt(D+1),xe==="url"&&oe!==t&&oe!==e&&oe!==s&&oe!==n&&oe!==d&&oe!==a&&oe!==f){R=D;do{if(X=!1,R=O.indexOf(")",R+1),R===-1)if(q||Je){R=D;break}else Re("bracket");for(ee=R;O.charCodeAt(ee-1)===i;)ee-=1,X=!X}while(X);H=["brackets",O.slice(D,R+1),D,R],D=R}else R=O.indexOf(")",D+1),Q=O.slice(D,R+1),R===-1||v.test(Q)?H=["(","(",D]:(H=["brackets",Q,D,R],D=R);break}case t:case e:{re=z===t?"'":'"',R=D;do{if(X=!1,R=O.indexOf(re,R+1),R===-1)if(q||Je){R=D+1;break}else Re("string");for(ee=R;O.charCodeAt(ee-1)===i;)ee-=1,X=!X}while(X);H=["string",O.slice(D,R+1),D,R],D=R;break}case _:{w.lastIndex=D+1,w.test(O),w.lastIndex===0?R=O.length-1:R=w.lastIndex-2,H=["at-word",O.slice(D,R+1),D,R],D=R;break}case i:{for(R=D,ne=!0;O.charCodeAt(R+1)===i;)R+=1,ne=!ne;if(z=O.charCodeAt(R+1),ne&&z!==r&&z!==s&&z!==n&&z!==d&&z!==f&&z!==a&&(R+=1,E.test(O.charAt(R)))){for(;E.test(O.charAt(R+1));)R+=1;O.charCodeAt(R+1)===s&&(R+=1)}H=["word",O.slice(D,R+1),D,R],D=R;break}default:{z===r&&O.charCodeAt(D+1)===b?(R=O.indexOf("*/",D+2)+1,R===0&&(q||Je?R=O.length:Re("comment")),H=["comment",O.slice(D,R+1),D,R],D=R):(y.lastIndex=D+1,y.test(O),y.lastIndex===0?R=O.length-1:R=y.lastIndex-2,H=["word",O.slice(D,R+1),D,R],_e.push(H),D=R);break}}return D++,H}function wt(Ee){fe.push(Ee)}return{back:wt,endOfFile:Oe,nextToken:Ie,position:je}},Zi}var Xi,Mr;function xl(){if(Mr)return Xi;Mr=1;let t=On(),e=bi(),i=vi(),r=qt(),n=$n(),s=wl();const a={empty:!0,space:!0};function d(h){for(let o=h.length-1;o>=0;o--){let u=h[o],c=u[3]||u[2];if(c)return c}}class f{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 u=new t;u.name=o[1].slice(1),u.name===""&&this.unnamedAtrule(u,o),this.init(u,o[2]);let c,l,p,m=!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===";"){u.source.end=this.getPosition(o[2]),u.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,l=x[p];l&&l[0]==="space";)l=x[--p];l&&(u.source.end=this.getPosition(l[3]||l[2]),u.source.end.offset++)}this.end(o);break}else x.push(o);else x.push(o);if(this.tokenizer.endOfFile()){m=!0;break}}u.raws.between=this.spacesAndCommentsFromEnd(x),x.length?(u.raws.afterName=this.spacesAndCommentsFromStart(x),this.raw(u,"params",x),m&&(o=x[x.length-1],u.source.end=this.getPosition(o[3]||o[2]),u.source.end.offset++,this.spaces=u.raws.between,u.raws.between="")):(u.raws.afterName="",u.params=""),b&&(u.nodes=[],this.current=u)}checkMissedSemicolon(o){let u=this.colon(o);if(u===!1)return;let c=0,l;for(let p=u-1;p>=0&&(l=o[p],!(l[0]!=="space"&&(c+=1,c===2)));p--);throw this.input.error("Missed semicolon",l[0]==="word"?l[3]+1:l[2])}colon(o){let u=0,c,l,p;for(let[m,b]of o.entries()){if(l=b,p=l[0],p==="("&&(u+=1),p===")"&&(u-=1),u===0&&p===":")if(!c)this.doubleColon(l);else{if(c[0]==="word"&&c[1]==="progid")continue;return m}c=l}return!1}comment(o){let u=new e;this.init(u,o[2]),u.source.end=this.getPosition(o[3]||o[2]),u.source.end.offset++;let c=o[1].slice(2,-2);if(/^\s*$/.test(c))u.text="",u.raws.left=c,u.raws.right="";else{let l=c.match(/^(\s*)([^]*\S)(\s*)$/);u.text=l[2],u.raws.left=l[1],u.raws.right=l[3]}}createTokenizer(){this.tokenizer=s(this.input)}decl(o,u){let c=new i;this.init(c,o[0][2]);let l=o[o.length-1];for(l[0]===";"&&(this.semicolon=!0,o.pop()),c.source.end=this.getPosition(l[3]||l[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 m=[],b;for(;o.length&&(b=o[0][0],!(b!=="space"&&b!=="comment"));)m.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 E=w[v][0];if(y.trim().startsWith("!")&&E!=="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+=m.map(_=>_[1]).join(""),m=[]),this.raw(c,"value",m.concat(o),u),c.value.includes(":")&&!u&&this.checkMissedSemicolon(o)}doubleColon(o){throw this.input.error("Double colon",{offset:o[2]},{offset:o[2]+o[1].length})}emptyRule(o){let u=new n;this.init(u,o[2]),u.selector="",u.raws.between="",this.current=u}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 u=this.current.nodes[this.current.nodes.length-1];u&&u.type==="rule"&&!u.raws.ownSemicolon&&(u.raws.ownSemicolon=this.spaces,this.spaces="",u.source.end=this.getPosition(o[2]),u.source.end.offset+=u.raws.ownSemicolon.length)}}getPosition(o){let u=this.input.fromOffset(o);return{column:u.col,line:u.line,offset:o}}init(o,u){this.current.push(o),o.source={input:this.input,start:this.getPosition(u)},o.raws.before=this.spaces,this.spaces="",o.type!=="comment"&&(this.semicolon=!1)}other(o){let u=!1,c=null,l=!1,p=null,m=[],b=o[1].startsWith("--"),x=[],_=o;for(;_;){if(c=_[0],x.push(_),c==="("||c==="[")p||(p=_),m.push(c==="("?")":"]");else if(b&&l&&c==="{")p||(p=_),m.push("}");else if(m.length===0)if(c===";")if(l){this.decl(x,b);return}else break;else if(c==="{"){this.rule(x);return}else if(c==="}"){this.tokenizer.back(x.pop()),u=!0;break}else c===":"&&(l=!0);else c===m[m.length-1]&&(m.pop(),m.length===0&&(p=null));_=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(u=!0),m.length>0&&this.unclosedBracket(p),u&&l){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,u,c,l){let p,m,b=c.length,x="",_=!0,w,y;for(let v=0;v<b;v+=1)p=c[v],m=p[0],m==="space"&&v===b-1&&!l?_=!1:m==="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((E,A)=>E+A[1],"");o.raws[u]={raw:v,value:x}}o[u]=x}rule(o){o.pop();let u=new n;this.init(u,o[0][2]),u.raws.between=this.spacesAndCommentsFromEnd(o),this.raw(u,"selector",o),this.current=u}spacesAndCommentsFromEnd(o){let u,c="";for(;o.length&&(u=o[o.length-1][0],!(u!=="space"&&u!=="comment"));)c=o.pop()[1]+c;return c}spacesAndCommentsFromStart(o){let u,c="";for(;o.length&&(u=o[0][0],!(u!=="space"&&u!=="comment"));)c+=o.shift()[1];return c}spacesFromEnd(o){let u,c="";for(;o.length&&(u=o[o.length-1][0],u==="space");)c=o.pop()[1]+c;return c}stringFrom(o,u){let c="";for(let l=u;l<o.length;l++)c+=o[l][1];return o.splice(u,o.length-u),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,u){throw this.input.error("At-rule without name",{offset:u[2]},{offset:u[2]+u[1].length})}}return Xi=f,Xi}var Ji,Tr;function Rn(){if(Tr)return Ji;Tr=1;let t=lt(),e=yi(),i=xl();function r(n,s){let a=new e(n,s),d=new i(a);try{d.parse()}catch(f){throw f}return d.root}return Ji=r,r.default=r,t.registerParse(r),Ji}var Yi,Lr;function ps(){if(Lr)return Yi;Lr=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 Yi=t,t.default=t,Yi}var Qi,Dr;function In(){if(Dr)return Qi;Dr=1;let t=ps();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 Qi=e,e.default=e,Qi}var en,jr;function ms(){if(jr)return en;jr=1;let t=lt(),e=kn(),i=fs(),r=Rn(),n=In(),s=qt(),a=mi(),{isClean:d,my:f}=Cn();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},u={Once:!0,postcssPlugin:!0,prepare:!0},c=0;function l(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 m(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,E){this.stringified=!1,this.processed=!1;let A;if(typeof v=="object"&&v!==null&&(v.type==="root"||v.type==="document"))A=b(v);else if(v instanceof _||v instanceof n)A=b(v.root),v.map&&(typeof E.map>"u"&&(E.map={}),E.map.inline||(E.map.inline=!1),E.map.prev=v.map);else{let I=r;E.syntax&&(I=E.syntax.parse),E.parser&&(I=E.parser),I.parse&&(I=I.parse);try{A=I(v,E)}catch(M){this.processed=!0,this.error=M}A&&!A[f]&&t.rebuild(A)}this.result=new n(y,A,E),this.helpers={...x,postcss:x,result:this.result},this.plugins=this.processor.plugins.map(I=>typeof I=="object"&&I.prepare?{...I,...I.prepare(this.result)}:I)}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 E=this.result.lastPlugin;try{v&&v.addToError(y),this.error=y,y.name==="CssSyntaxError"&&!y.plugin?(y.plugin=E.postcssPlugin,y.setMessage()):E.postcssVersion}catch(A){console&&console.error&&console.error(A)}return y}prepareVisitors(){this.listeners={};let y=(v,E,A)=>{this.listeners[E]||(this.listeners[E]=[]),this.listeners[E].push([v,A])};for(let v of this.plugins)if(typeof v=="object")for(let E in v){if(!o[E]&&/^[A-Z]/.test(E))throw new Error(`Unknown event ${E} in ${v.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!u[E])if(typeof v[E]=="object")for(let A in v[E])A==="*"?y(v,E,v[E][A]):y(v,E+"-"+A.toLowerCase(),v[E][A]);else typeof v[E]=="function"&&y(v,E,v[E])}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],E=this.runOnRoot(v);if(l(E))try{await E}catch(A){throw this.handleError(A)}}if(this.prepareVisitors(),this.hasListener){let y=this.result.root;for(;!y[d];){y[d]=!0;let v=[m(y)];for(;v.length>0;){let E=this.visitTick(v);if(l(E))try{await E}catch(A){let I=v[v.length-1].node;throw this.handleError(A,I)}}}if(this.listeners.OnceExit)for(let[v,E]of this.listeners.OnceExit){this.result.lastPlugin=v;try{if(y.type==="document"){let A=y.nodes.map(I=>E(I,this.helpers));await Promise.all(A)}else await E(y,this.helpers)}catch(A){throw this.handleError(A)}}}return this.processed=!0,this.stringify()}runOnRoot(y){this.result.lastPlugin=y;try{if(typeof y=="object"&&y.Once){if(this.result.root.type==="document"){let v=this.result.root.nodes.map(E=>y.Once(E,this.helpers));return l(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 A=new i(v,this.result.root,this.result.opts).generate();return this.result.css=A[0],this.result.map=A[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let y of this.plugins){let v=this.runOnRoot(y);if(l(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[E,A]of y){this.result.lastPlugin=E;let I;try{I=A(v,this.helpers)}catch(M){throw this.handleError(M,v.proxyOf)}if(v.type!=="root"&&v.type!=="document"&&!v.parent)return!0;if(l(I))throw this.getAsyncError()}}visitTick(y){let v=y[y.length-1],{node:E,visitors:A}=v;if(E.type!=="root"&&E.type!=="document"&&!E.parent){y.pop();return}if(A.length>0&&v.visitorIndex<A.length){let[M,O]=A[v.visitorIndex];v.visitorIndex+=1,v.visitorIndex===A.length&&(v.visitors=[],v.visitorIndex=0),this.result.lastPlugin=M;try{return O(E.toProxy(),this.helpers)}catch(q){throw this.handleError(q,E)}}if(v.iterator!==0){let M=v.iterator,O;for(;O=E.nodes[E.indexes[M]];)if(E.indexes[M]+=1,!O[d]){O[d]=!0,y.push(m(O));return}v.iterator=0,delete E.indexes[M]}let I=v.events;for(;v.eventIndex<I.length;){let M=I[v.eventIndex];if(v.eventIndex+=1,M===c){E.nodes&&E.nodes.length&&(E[d]=!0,v.iterator=E.getIterator());return}else if(this.listeners[M]){v.visitors=this.listeners[M];return}}y.pop()}walkSync(y){y[d]=!0;let v=p(y);for(let E of v)if(E===c)y.nodes&&y.each(A=>{A[d]||this.walkSync(A)});else{let A=this.listeners[E];if(A&&this.visitSync(A,y.toProxy()))return}}warnings(){return this.sync().warnings()}}return _.registerPostcss=w=>{x=w},en=_,_.default=_,s.registerLazyResult(_),e.registerLazyResult(_),en}var tn,Br;function _l(){if(Br)return tn;Br=1;let t=fs(),e=Rn();const i=In();let r=mi();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(f){this.error=f}if(this.error)throw this.error;return this._root=a,a}get[Symbol.toStringTag](){return"NoWorkResult"}constructor(a,d,f){d=d.toString(),this.stringified=!1,this._processor=a,this._css=d,this._opts=f,this._map=void 0;let h,o=r;this.result=new i(this._processor,h,this._opts),this.result.css=d;let u=this;Object.defineProperty(this.result,"root",{get(){return u.root}});let c=new t(o,h,this._opts,d);if(c.isMap()){let[l,p]=c.generate();l&&(this.result.css=l),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 tn=n,n.default=n,tn}var nn,zr;function El(){if(zr)return nn;zr=1;let t=kn(),e=ms(),i=_l(),r=qt();class n{constructor(a=[]){this.version="8.5.6",this.plugins=this.normalize(a)}normalize(a){let d=[];for(let f of a)if(f.postcss===!0?f=f():f.postcss&&(f=f.postcss),typeof f=="object"&&Array.isArray(f.plugins))d=d.concat(f.plugins);else if(typeof f=="object"&&f.postcssPlugin)d.push(f);else if(typeof f=="function")d.push(f);else if(!(typeof f=="object"&&(f.parse||f.stringify)))throw new Error(f+" 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 nn=n,n.default=n,r.registerProcessor(n),t.registerProcessor(n),nn}var rn,Ur;function Sl(){if(Ur)return rn;Ur=1;var t={};let e=On(),i=bi(),r=lt(),n=An(),s=vi(),a=kn(),d=yl(),f=yi(),h=ms(),o=ds(),u=gi(),c=Rn(),l=El(),p=In(),m=qt(),b=$n(),x=mi(),_=ps();function w(...y){return y.length===1&&Array.isArray(y[0])&&(y=y[0]),new l(y)}return w.plugin=function(v,E){let A=!1;function I(...O){console&&console.warn&&!A&&(A=!0,console.warn(v+`: postcss.plugin was deprecated. Migration guide:
|
|
263
|
+
https://evilmartians.com/chronicles/postcss-8-plugin-migration`),t.LANG&&t.LANG.startsWith("cn")&&console.warn(v+`: 里面 postcss.plugin 被弃用. 迁移指南:
|
|
264
|
+
https://www.w3ctech.com/topic/2226`));let q=E(...O);return q.postcssPlugin=v,q.postcssVersion=new l().version,q}let M;return Object.defineProperty(I,"postcss",{get(){return M||(M=I()),M}}),I.process=function(O,q,z){return w([I(z)]).process(O,q)},I},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 m(y),w.document=y=>new a(y),w.CssSyntaxError=n,w.Declaration=s,w.Container=r,w.Processor=l,w.Document=a,w.Comment=i,w.Warning=_,w.AtRule=e,w.Result=p,w.Input=f,w.Rule=b,w.Root=m,w.Node=u,h.registerPostcss(w),rn=w,w.default=w,rn}var Al=Sl();const J=cs(Al);J.stringify;J.fromJSON;J.plugin;J.parse;J.list;J.document;J.comment;J.atRule;J.rule;J.decl;J.root;J.CssSyntaxError;J.Declaration;J.Container;J.Processor;J.Document;J.Comment;J.Warning;J.AtRule;J.Result;J.Input;J.Rule;J.Root;J.Node;var sn,qr;function Cl(){if(qr)return sn;qr=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(f){const h=f.root,o=h.source.input.file;if(!(a.length&&o&&e(o,a))&&!(d.length&&o&&!e(o,d)))return{Rule(u,{result:c}){const l=["keyframes","-webkit-keyframes","-moz-keyframes","-o-keyframes","-ms-keyframes"];u.parent&&l.includes(u.parent.name)||(u.selectors=u.selectors.map(p=>r.exclude&&i(p,r.exclude)?p:r.transform?r.transform(n,p,s+p,h.source.input.file,u):[":root","body","html"].some(m=>p.startsWith(m))?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,sn=t,sn}var Ol=Cl();const kl=cs(Ol),$l="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}",Rl="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 Il(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var on,Hr;function Pl(){if(Hr)return on;Hr=1;function t(g){return g instanceof Map?g.clear=g.delete=g.set=function(){throw new Error("map is read-only")}:g instanceof Set&&(g.add=g.clear=g.delete=function(){throw new Error("set is read-only")}),Object.freeze(g),Object.getOwnPropertyNames(g).forEach(S=>{const $=g[S],U=typeof $;(U==="object"||U==="function")&&!Object.isFrozen($)&&t($)}),g}class e{constructor(S){S.data===void 0&&(S.data={}),this.data=S.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function i(g){return g.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function r(g,...S){const $=Object.create(null);for(const U in g)$[U]=g[U];return S.forEach(function(U){for(const te in U)$[te]=U[te]}),$}const n="</span>",s=g=>!!g.scope,a=(g,{prefix:S})=>{if(g.startsWith("language:"))return g.replace("language:","language-");if(g.includes(".")){const $=g.split(".");return[`${S}${$.shift()}`,...$.map((U,te)=>`${U}${"_".repeat(te+1)}`)].join(" ")}return`${S}${g}`};class d{constructor(S,$){this.buffer="",this.classPrefix=$.classPrefix,S.walk(this)}addText(S){this.buffer+=i(S)}openNode(S){if(!s(S))return;const $=a(S.scope,{prefix:this.classPrefix});this.span($)}closeNode(S){s(S)&&(this.buffer+=n)}value(){return this.buffer}span(S){this.buffer+=`<span class="${S}">`}}const f=(g={})=>{const S={children:[]};return Object.assign(S,g),S};class h{constructor(){this.rootNode=f(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(S){this.top.children.push(S)}openNode(S){const $=f({scope:S});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(S){return this.constructor._walk(S,this.rootNode)}static _walk(S,$){return typeof $=="string"?S.addText($):$.children&&(S.openNode($),$.children.forEach(U=>this._walk(S,U)),S.closeNode($)),S}static _collapse(S){typeof S!="string"&&S.children&&(S.children.every($=>typeof $=="string")?S.children=[S.children.join("")]:S.children.forEach($=>{h._collapse($)}))}}class o extends h{constructor(S){super(),this.options=S}addText(S){S!==""&&this.add(S)}startScope(S){this.openNode(S)}endScope(){this.closeNode()}__addSublanguage(S,$){const U=S.root;$&&(U.scope=`language:${$}`),this.add(U)}toHTML(){return new d(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function u(g){return g?typeof g=="string"?g:g.source:null}function c(g){return m("(?=",g,")")}function l(g){return m("(?:",g,")*")}function p(g){return m("(?:",g,")?")}function m(...g){return g.map(S=>u(S)).join("")}function b(g){const S=g[g.length-1];return typeof S=="object"&&S.constructor===Object?(g.splice(g.length-1,1),S):{}}function x(...g){return"("+(b(g).capture?"":"?:")+g.map(S=>u(S)).join("|")+")"}function _(g){return new RegExp(g.toString()+"|").exec("").length-1}function w(g,S){const $=g&&g.exec(S);return $&&$.index===0}const y=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function v(g,{joinWith:S}){let $=0;return g.map(U=>{$+=1;const te=$;let ie=u(U),N="";for(;ie.length>0;){const P=y.exec(ie);if(!P){N+=ie;break}N+=ie.substring(0,P.index),ie=ie.substring(P.index+P[0].length),P[0][0]==="\\"&&P[1]?N+="\\"+String(Number(P[1])+te):(N+=P[0],P[0]==="("&&$++)}return N}).map(U=>`(${U})`).join(S)}const E=/\b\B/,A="[a-zA-Z]\\w*",I="[a-zA-Z_]\\w*",M="\\b\\d+(\\.\\d+)?",O="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",q="\\b(0b[01]+)",z="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",Q=(g={})=>{const S=/^#![ ]*\//;return g.binary&&(g.begin=m(S,/.*\b/,g.binary,/\b.*/)),r({scope:"meta",begin:S,end:/$/,relevance:0,"on:begin":($,U)=>{$.index!==0&&U.ignoreMatch()}},g)},ne={begin:"\\\\[\\s\\S]",relevance:0},R={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[ne]},re={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[ne]},H={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/},X=function(g,S,$={}){const U=r({scope:"comment",begin:g,end:S,contains:[]},$);U.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 te=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 U.contains.push({begin:m(/[ ]+/,"(",te,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),U},ee=X("//","$"),oe=X("/\\*","\\*/"),xe=X("#","$"),ge={scope:"number",begin:M,relevance:0},D={scope:"number",begin:O,relevance:0},_e={scope:"number",begin:q,relevance:0},fe={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[ne,{begin:/\[/,end:/\]/,relevance:0,contains:[ne]}]},je={scope:"title",begin:A,relevance:0},Re={scope:"title",begin:I,relevance:0},Oe={begin:"\\.\\s*"+I,relevance:0};var Ie=Object.freeze({__proto__:null,APOS_STRING_MODE:R,BACKSLASH_ESCAPE:ne,BINARY_NUMBER_MODE:_e,BINARY_NUMBER_RE:q,COMMENT:X,C_BLOCK_COMMENT_MODE:oe,C_LINE_COMMENT_MODE:ee,C_NUMBER_MODE:D,C_NUMBER_RE:O,END_SAME_AS_BEGIN:function(g){return Object.assign(g,{"on:begin":(S,$)=>{$.data._beginMatch=S[1]},"on:end":(S,$)=>{$.data._beginMatch!==S[1]&&$.ignoreMatch()}})},HASH_COMMENT_MODE:xe,IDENT_RE:A,MATCH_NOTHING_RE:E,METHOD_GUARD:Oe,NUMBER_MODE:ge,NUMBER_RE:M,PHRASAL_WORDS_MODE:H,QUOTE_STRING_MODE:re,REGEXP_MODE:fe,RE_STARTERS_RE:z,SHEBANG:Q,TITLE_MODE:je,UNDERSCORE_IDENT_RE:I,UNDERSCORE_TITLE_MODE:Re});function wt(g,S){g.input[g.index-1]==="."&&S.ignoreMatch()}function Ee(g,S){g.className!==void 0&&(g.scope=g.className,delete g.className)}function Je(g,S){S&&g.beginKeywords&&(g.begin="\\b("+g.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",g.__beforeBegin=wt,g.keywords=g.keywords||g.beginKeywords,delete g.beginKeywords,g.relevance===void 0&&(g.relevance=0))}function Ye(g,S){Array.isArray(g.illegal)&&(g.illegal=x(...g.illegal))}function xi(g,S){if(g.match){if(g.begin||g.end)throw new Error("begin & end are not supported with match");g.begin=g.match,delete g.match}}function _i(g,S){g.relevance===void 0&&(g.relevance=1)}const Ht=(g,S)=>{if(!g.beforeMatch)return;if(g.starts)throw new Error("beforeMatch cannot be used with starts");const $=Object.assign({},g);Object.keys(g).forEach(U=>{delete g[U]}),g.keywords=$.keywords,g.begin=m($.beforeMatch,c($.begin)),g.starts={relevance:0,contains:[Object.assign($,{endsParent:!0})]},g.relevance=0,delete $.beforeMatch},Wt=["of","and","for","in","not","or","if","then","parent","list","value"],Ei="keyword";function Ft(g,S,$=Ei){const U=Object.create(null);return typeof g=="string"?te($,g.split(" ")):Array.isArray(g)?te($,g):Object.keys(g).forEach(function(ie){Object.assign(U,Ft(g[ie],S,ie))}),U;function te(ie,N){S&&(N=N.map(P=>P.toLowerCase())),N.forEach(function(P){const j=P.split("|");U[j[0]]=[ie,Be(j[0],j[1])]})}}function Be(g,S){return S?Number(S):ct(g)?0:1}function ct(g){return Wt.includes(g.toLowerCase())}const xt={},Pe=g=>{console.error(g)},ut=(g,...S)=>{console.log(`WARN: ${g}`,...S)},ze=(g,S)=>{xt[`${g}/${S}`]||(console.log(`Deprecated as of ${g}. ${S}`),xt[`${g}/${S}`]=!0)},Qe=new Error;function _t(g,S,{key:$}){let U=0;const te=g[$],ie={},N={};for(let P=1;P<=S.length;P++)N[P+U]=te[P],ie[P+U]=!0,U+=_(S[P-1]);g[$]=N,g[$]._emit=ie,g[$]._multi=!0}function Kt(g){if(Array.isArray(g.begin)){if(g.skip||g.excludeBegin||g.returnBegin)throw Pe("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),Qe;if(typeof g.beginScope!="object"||g.beginScope===null)throw Pe("beginScope must be object"),Qe;_t(g,g.begin,{key:"beginScope"}),g.begin=v(g.begin,{joinWith:""})}}function Ss(g){if(Array.isArray(g.end)){if(g.skip||g.excludeEnd||g.returnEnd)throw Pe("skip, excludeEnd, returnEnd not compatible with endScope: {}"),Qe;if(typeof g.endScope!="object"||g.endScope===null)throw Pe("endScope must be object"),Qe;_t(g,g.end,{key:"endScope"}),g.end=v(g.end,{joinWith:""})}}function As(g){g.scope&&typeof g.scope=="object"&&g.scope!==null&&(g.beginScope=g.scope,delete g.scope)}function Cs(g){As(g),typeof g.beginScope=="string"&&(g.beginScope={_wrap:g.beginScope}),typeof g.endScope=="string"&&(g.endScope={_wrap:g.endScope}),Kt(g),Ss(g)}function Os(g){function S(N,P){return new RegExp(u(N),"m"+(g.case_insensitive?"i":"")+(g.unicodeRegex?"u":"")+(P?"g":""))}class ${constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(P,j){j.position=this.position++,this.matchIndexes[this.matchAt]=j,this.regexes.push([j,P]),this.matchAt+=_(P)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const P=this.regexes.map(j=>j[1]);this.matcherRe=S(v(P,{joinWith:"|"}),!0),this.lastIndex=0}exec(P){this.matcherRe.lastIndex=this.lastIndex;const j=this.matcherRe.exec(P);if(!j)return null;const le=j.findIndex((Et,Ai)=>Ai>0&&Et!==void 0),se=this.matchIndexes[le];return j.splice(0,le),Object.assign(j,se)}}class U{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(P){if(this.multiRegexes[P])return this.multiRegexes[P];const j=new $;return this.rules.slice(P).forEach(([le,se])=>j.addRule(le,se)),j.compile(),this.multiRegexes[P]=j,j}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(P,j){this.rules.push([P,j]),j.type==="begin"&&this.count++}exec(P){const j=this.getMatcher(this.regexIndex);j.lastIndex=this.lastIndex;let le=j.exec(P);if(this.resumingScanAtSamePosition()&&!(le&&le.index===this.lastIndex)){const se=this.getMatcher(0);se.lastIndex=this.lastIndex+1,le=se.exec(P)}return le&&(this.regexIndex+=le.position+1,this.regexIndex===this.count&&this.considerAll()),le}}function te(N){const P=new U;return N.contains.forEach(j=>P.addRule(j.begin,{rule:j,type:"begin"})),N.terminatorEnd&&P.addRule(N.terminatorEnd,{type:"end"}),N.illegal&&P.addRule(N.illegal,{type:"illegal"}),P}function ie(N,P){const j=N;if(N.isCompiled)return j;[Ee,xi,Cs,Ht].forEach(se=>se(N,P)),g.compilerExtensions.forEach(se=>se(N,P)),N.__beforeBegin=null,[Je,Ye,_i].forEach(se=>se(N,P)),N.isCompiled=!0;let le=null;return typeof N.keywords=="object"&&N.keywords.$pattern&&(N.keywords=Object.assign({},N.keywords),le=N.keywords.$pattern,delete N.keywords.$pattern),le=le||/\w+/,N.keywords&&(N.keywords=Ft(N.keywords,g.case_insensitive)),j.keywordPatternRe=S(le,!0),P&&(N.begin||(N.begin=/\B|\b/),j.beginRe=S(j.begin),!N.end&&!N.endsWithParent&&(N.end=/\B|\b/),N.end&&(j.endRe=S(j.end)),j.terminatorEnd=u(j.end)||"",N.endsWithParent&&P.terminatorEnd&&(j.terminatorEnd+=(N.end?"|":"")+P.terminatorEnd)),N.illegal&&(j.illegalRe=S(N.illegal)),N.contains||(N.contains=[]),N.contains=[].concat(...N.contains.map(function(se){return ks(se==="self"?N:se)})),N.contains.forEach(function(se){ie(se,j)}),N.starts&&ie(N.starts,P),j.matcher=te(j),j}if(g.compilerExtensions||(g.compilerExtensions=[]),g.contains&&g.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return g.classNameAliases=r(g.classNameAliases||{}),ie(g)}function Nn(g){return g?g.endsWithParent||Nn(g.starts):!1}function ks(g){return g.variants&&!g.cachedVariants&&(g.cachedVariants=g.variants.map(function(S){return r(g,{variants:null},S)})),g.cachedVariants?g.cachedVariants:Nn(g)?r(g,{starts:g.starts?r(g.starts):null}):Object.isFrozen(g)?r(g):g}var $s="11.11.1";class Rs extends Error{constructor(S,$){super(S),this.name="HTMLInjectionError",this.html=$}}const Si=i,Mn=r,Tn=Symbol("nomatch"),Is=7,Ln=function(g){const S=Object.create(null),$=Object.create(null),U=[];let te=!0;const ie="Could not find the language '{}', did you forget to load/include a language module?",N={disableAutodetect:!0,name:"Plain text",contains:[]};let P={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:o};function j(C){return P.noHighlightRe.test(C)}function le(C){let L=C.className+" ";L+=C.parentNode?C.parentNode.className:"";const F=P.languageDetectRe.exec(L);if(F){const G=Fe(F[1]);return G||(ut(ie.replace("{}",F[1])),ut("Falling back to no-highlight mode for this block.",C)),G?F[1]:"no-highlight"}return L.split(/\s+/).find(G=>j(G)||Fe(G))}function se(C,L,F){let G="",ae="";typeof L=="object"?(G=C,F=L.ignoreIllegals,ae=L.language):(ze("10.7.0","highlight(lang, code, ...args) has been deprecated."),ze("10.7.0",`Please use highlight(code, options) instead.
|
|
265
|
+
https://github.com/highlightjs/highlight.js/issues/2277`),ae=C,G=L),F===void 0&&(F=!0);const Ne={code:G,language:ae};Gt("before:highlight",Ne);const Ke=Ne.result?Ne.result:Et(Ne.language,Ne.code,F);return Ke.code=Ne.code,Gt("after:highlight",Ke),Ke}function Et(C,L,F,G){const ae=Object.create(null);function Ne(k,T){return k.keywords[T]}function Ke(){if(!B.keywords){ce.addText(Z);return}let k=0;B.keywordPatternRe.lastIndex=0;let T=B.keywordPatternRe.exec(Z),W="";for(;T;){W+=Z.substring(k,T.index);const V=Te.case_insensitive?T[0].toLowerCase():T[0],he=Ne(B,V);if(he){const[Ue,Gs]=he;if(ce.addText(W),W="",ae[V]=(ae[V]||0)+1,ae[V]<=Is&&(Jt+=Gs),Ue.startsWith("_"))W+=T[0];else{const Zs=Te.classNameAliases[Ue]||Ue;Me(T[0],Zs)}}else W+=T[0];k=B.keywordPatternRe.lastIndex,T=B.keywordPatternRe.exec(Z)}W+=Z.substring(k),ce.addText(W)}function Zt(){if(Z==="")return;let k=null;if(typeof B.subLanguage=="string"){if(!S[B.subLanguage]){ce.addText(Z);return}k=Et(B.subLanguage,Z,!0,Wn[B.subLanguage]),Wn[B.subLanguage]=k._top}else k=Ci(Z,B.subLanguage.length?B.subLanguage:null);B.relevance>0&&(Jt+=k.relevance),ce.__addSublanguage(k._emitter,k.language)}function be(){B.subLanguage!=null?Zt():Ke(),Z=""}function Me(k,T){k!==""&&(ce.startScope(T),ce.addText(k),ce.endScope())}function zn(k,T){let W=1;const V=T.length-1;for(;W<=V;){if(!k._emit[W]){W++;continue}const he=Te.classNameAliases[k[W]]||k[W],Ue=T[W];he?Me(Ue,he):(Z=Ue,Ke(),Z=""),W++}}function Un(k,T){return k.scope&&typeof k.scope=="string"&&ce.openNode(Te.classNameAliases[k.scope]||k.scope),k.beginScope&&(k.beginScope._wrap?(Me(Z,Te.classNameAliases[k.beginScope._wrap]||k.beginScope._wrap),Z=""):k.beginScope._multi&&(zn(k.beginScope,T),Z="")),B=Object.create(k,{parent:{value:B}}),B}function qn(k,T,W){let V=w(k.endRe,W);if(V){if(k["on:end"]){const he=new e(k);k["on:end"](T,he),he.isMatchIgnored&&(V=!1)}if(V){for(;k.endsParent&&k.parent;)k=k.parent;return k}}if(k.endsWithParent)return qn(k.parent,T,W)}function Hs(k){return B.matcher.regexIndex===0?(Z+=k[0],1):(Ri=!0,0)}function Ws(k){const T=k[0],W=k.rule,V=new e(W),he=[W.__beforeBegin,W["on:begin"]];for(const Ue of he)if(Ue&&(Ue(k,V),V.isMatchIgnored))return Hs(T);return W.skip?Z+=T:(W.excludeBegin&&(Z+=T),be(),!W.returnBegin&&!W.excludeBegin&&(Z=T)),Un(W,k),W.returnBegin?0:T.length}function Fs(k){const T=k[0],W=L.substring(k.index),V=qn(B,k,W);if(!V)return Tn;const he=B;B.endScope&&B.endScope._wrap?(be(),Me(T,B.endScope._wrap)):B.endScope&&B.endScope._multi?(be(),zn(B.endScope,k)):he.skip?Z+=T:(he.returnEnd||he.excludeEnd||(Z+=T),be(),he.excludeEnd&&(Z=T));do B.scope&&ce.closeNode(),!B.skip&&!B.subLanguage&&(Jt+=B.relevance),B=B.parent;while(B!==V.parent);return V.starts&&Un(V.starts,k),he.returnEnd?0:T.length}function Ks(){const k=[];for(let T=B;T!==Te;T=T.parent)T.scope&&k.unshift(T.scope);k.forEach(T=>ce.openNode(T))}let Xt={};function Hn(k,T){const W=T&&T[0];if(Z+=k,W==null)return be(),0;if(Xt.type==="begin"&&T.type==="end"&&Xt.index===T.index&&W===""){if(Z+=L.slice(T.index,T.index+1),!te){const V=new Error(`0 width match regex (${C})`);throw V.languageName=C,V.badRule=Xt.rule,V}return 1}if(Xt=T,T.type==="begin")return Ws(T);if(T.type==="illegal"&&!F){const V=new Error('Illegal lexeme "'+W+'" for mode "'+(B.scope||"<unnamed>")+'"');throw V.mode=B,V}else if(T.type==="end"){const V=Fs(T);if(V!==Tn)return V}if(T.type==="illegal"&&W==="")return Z+=`
|
|
266
|
+
`,1;if($i>1e5&&$i>T.index*3)throw new Error("potential infinite loop, way more iterations than matches");return Z+=W,W.length}const Te=Fe(C);if(!Te)throw Pe(ie.replace("{}",C)),new Error('Unknown language: "'+C+'"');const Vs=Os(Te);let ki="",B=G||Vs;const Wn={},ce=new P.__emitter(P);Ks();let Z="",Jt=0,et=0,$i=0,Ri=!1;try{if(Te.__emitTokens)Te.__emitTokens(L,ce);else{for(B.matcher.considerAll();;){$i++,Ri?Ri=!1:B.matcher.considerAll(),B.matcher.lastIndex=et;const k=B.matcher.exec(L);if(!k)break;const T=L.substring(et,k.index),W=Hn(T,k);et=k.index+W}Hn(L.substring(et))}return ce.finalize(),ki=ce.toHTML(),{language:C,value:ki,relevance:Jt,illegal:!1,_emitter:ce,_top:B}}catch(k){if(k.message&&k.message.includes("Illegal"))return{language:C,value:Si(L),illegal:!0,relevance:0,_illegalBy:{message:k.message,index:et,context:L.slice(et-100,et+100),mode:k.mode,resultSoFar:ki},_emitter:ce};if(te)return{language:C,value:Si(L),illegal:!1,relevance:0,errorRaised:k,_emitter:ce,_top:B};throw k}}function Ai(C){const L={value:Si(C),illegal:!1,relevance:0,_top:N,_emitter:new P.__emitter(P)};return L._emitter.addText(C),L}function Ci(C,L){L=L||P.languages||Object.keys(S);const F=Ai(C),G=L.filter(Fe).filter(Bn).map(be=>Et(be,C,!1));G.unshift(F);const ae=G.sort((be,Me)=>{if(be.relevance!==Me.relevance)return Me.relevance-be.relevance;if(be.language&&Me.language){if(Fe(be.language).supersetOf===Me.language)return 1;if(Fe(Me.language).supersetOf===be.language)return-1}return 0}),[Ne,Ke]=ae,Zt=Ne;return Zt.secondBest=Ke,Zt}function Ps(C,L,F){const G=L&&$[L]||F;C.classList.add("hljs"),C.classList.add(`language-${G}`)}function Oi(C){let L=null;const F=le(C);if(j(F))return;if(Gt("before:highlightElement",{el:C,language:F}),C.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",C);return}if(C.children.length>0&&(P.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(C)),P.throwUnescapedHTML))throw new Rs("One of your code blocks includes unescaped HTML.",C.innerHTML);L=C;const G=L.textContent,ae=F?se(G,{language:F,ignoreIllegals:!0}):Ci(G);C.innerHTML=ae.value,C.dataset.highlighted="yes",Ps(C,F,ae.language),C.result={language:ae.language,re:ae.relevance,relevance:ae.relevance},ae.secondBest&&(C.secondBest={language:ae.secondBest.language,relevance:ae.secondBest.relevance}),Gt("after:highlightElement",{el:C,result:ae,text:G})}function Ns(C){P=Mn(P,C)}const Ms=()=>{Vt(),ze("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function Ts(){Vt(),ze("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let Dn=!1;function Vt(){function C(){Vt()}if(document.readyState==="loading"){Dn||window.addEventListener("DOMContentLoaded",C,!1),Dn=!0;return}document.querySelectorAll(P.cssSelector).forEach(Oi)}function Ls(C,L){let F=null;try{F=L(g)}catch(G){if(Pe("Language definition for '{}' could not be registered.".replace("{}",C)),te)Pe(G);else throw G;F=N}F.name||(F.name=C),S[C]=F,F.rawDefinition=L.bind(null,g),F.aliases&&jn(F.aliases,{languageName:C})}function Ds(C){delete S[C];for(const L of Object.keys($))$[L]===C&&delete $[L]}function js(){return Object.keys(S)}function Fe(C){return C=(C||"").toLowerCase(),S[C]||S[$[C]]}function jn(C,{languageName:L}){typeof C=="string"&&(C=[C]),C.forEach(F=>{$[F.toLowerCase()]=L})}function Bn(C){const L=Fe(C);return L&&!L.disableAutodetect}function Bs(C){C["before:highlightBlock"]&&!C["before:highlightElement"]&&(C["before:highlightElement"]=L=>{C["before:highlightBlock"](Object.assign({block:L.el},L))}),C["after:highlightBlock"]&&!C["after:highlightElement"]&&(C["after:highlightElement"]=L=>{C["after:highlightBlock"](Object.assign({block:L.el},L))})}function zs(C){Bs(C),U.push(C)}function Us(C){const L=U.indexOf(C);L!==-1&&U.splice(L,1)}function Gt(C,L){const F=C;U.forEach(function(G){G[F]&&G[F](L)})}function qs(C){return ze("10.7.0","highlightBlock will be removed entirely in v12.0"),ze("10.7.0","Please use highlightElement now."),Oi(C)}Object.assign(g,{highlight:se,highlightAuto:Ci,highlightAll:Vt,highlightElement:Oi,highlightBlock:qs,configure:Ns,initHighlighting:Ms,initHighlightingOnLoad:Ts,registerLanguage:Ls,unregisterLanguage:Ds,listLanguages:js,getLanguage:Fe,registerAliases:jn,autoDetection:Bn,inherit:Mn,addPlugin:zs,removePlugin:Us}),g.debugMode=function(){te=!1},g.safeMode=function(){te=!0},g.versionString=$s,g.regex={concat:m,lookahead:c,either:x,optional:p,anyNumberOfTimes:l};for(const C in Ie)typeof Ie[C]=="object"&&t(Ie[C]);return Object.assign(g,Ie),g},ht=Ln({});return ht.newInstance=()=>Ln({}),on=ht,ht.HighlightJS=ht,ht.default=ht,on}var Nl=Pl();const wi=Il(Nl),ci="[A-Za-z$_][0-9A-Za-z$_]*",gs=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],bs=["true","false","null","undefined","NaN","Infinity"],vs=["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"],ys=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],ws=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],xs=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],_s=[].concat(ws,vs,ys);function Ml(t){const e=t.regex,i=(H,{after:X})=>{const ee="</"+H[0].slice(1);return H.input.indexOf(ee,X)!==-1},r=ci,n={begin:"<>",end:"</>"},s=/<[A-Za-z0-9\\._:-]+\s*\/>/,a={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(H,X)=>{const ee=H[0].length+H.index,oe=H.input[ee];if(oe==="<"||oe===","){X.ignoreMatch();return}oe===">"&&(i(H,{after:ee})||X.ignoreMatch());let xe;const ge=H.input.substring(ee);if(xe=ge.match(/^\s*=/)){X.ignoreMatch();return}if((xe=ge.match(/^\s+extends\s+/))&&xe.index===0){X.ignoreMatch();return}}},d={$pattern:ci,keyword:gs,literal:bs,built_in:_s,"variable.language":xs},f="[0-9](_?[0-9])*",h=`\\.(${f})`,o="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",u={className:"number",variants:[{begin:`(\\b(${o})((${h})|\\.)?|(${h}))[eE][+-]?(${f})\\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:[]},l={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"}},m={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,l,p,m,b,{match:/\$\d+/},u];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},E={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"}}]},A={relevance:0,match:e.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...vs,...ys]}},I={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},M={variants:[{match:[/function/,/\s+/,r,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[v],illegal:/%/},O={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function q(H){return e.concat("(?!",H.join("|"),")")}const z={match:e.concat(/\b/,q([...ws,"super","import"].map(H=>`${H}\\s*\\(`)),r,e.lookahead(/\s*\(/)),className:"title.function",relevance:0},Q={begin:e.concat(/\./,e.lookahead(e.concat(r,/(?![0-9A-Za-z$_(])/))),end:r,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},ne={match:[/get|set/,/\s+/,r,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},v]},R="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+t.UNDERSCORE_IDENT_RE+")\\s*=>",re={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:A},illegal:/#(?![$_A-z])/,contains:[t.SHEBANG({label:"shebang",binary:"node",relevance:5}),I,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,l,p,m,b,x,{match:/\$\d+/},u,A,{scope:"attr",match:r+e.lookahead(":"),relevance:0},re,{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"]}]}]},M,{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},Q,{match:"\\$"+r,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[v]},z,O,E,ne,{match:/\$[(.]/}]}}function Tl(t){const e=t.regex,i=Ml(t),r=ci,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['"]/},f=["type","interface","public","private","protected","implements","declare","abstract","readonly","enum","override","satisfies"],h={$pattern:ci,keyword:gs.concat(f),literal:bs,built_in:_s.concat(n),"variable.language":xs},o={className:"meta",begin:"@"+r},u=(m,b,x)=>{const _=m.contains.findIndex(w=>w.label===b);if(_===-1)throw new Error("can not find mode to replace");m.contains.splice(_,1,x)};Object.assign(i.keywords,h),i.exports.PARAMS_CONTAINS.push(o);const c=i.contains.find(m=>m.scope==="attr"),l=Object.assign({},c,{match:e.concat(r,e.lookahead(/\s*\?:/))});i.exports.PARAMS_CONTAINS.push([i.exports.CLASS_REFERENCE,c,l]),i.contains=i.contains.concat([o,s,a,l]),u(i,"shebang",t.SHEBANG()),u(i,"use_strict",d);const p=i.contains.find(m=>m.label==="func.def");return p.relevance=0,Object.assign(i,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),i}function Ll(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"}),f=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,f,d,a,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[s,a,f,d]}]}]},t.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},n,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[f]},{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 Dl=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_-]*/}}),jl=["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"],Bl=["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"],zl=[...jl,...Bl],Ul=["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(),ql=["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(),Hl=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),Wl=["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 Fl(t){const e=t.regex,i=Dl(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:":("+ql.join("|")+")"},{begin:":(:)?("+Hl.join("|")+")"}]},i.CSS_VARIABLE,{className:"attribute",begin:"\\b("+Wl.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:Ul.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...d,i.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+zl.join("|")+")\\b"}]}}const Es=document.createElement("style");Es.innerText=[$l,Rl].join(`
|
|
267
|
+
`);document.head.appendChild(Es);wi.registerLanguage("typescript",Tl);wi.registerLanguage("html",Ll);wi.registerLanguage("css",Fl);function Kl(...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 Ct(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 It(t,e){const i=document.createElement(t);return typeof e=="string"?i.innerHTML=e:e.forEach(r=>{i.appendChild(r)}),i}async function Vl(t,e,i){const r=e.mainContent,n=It("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=Kl(Ct("Preview",n),Ct("HTML",ii("html",r)),...a?[Ct(s??"CSS",ii("css",a))]:[],...e.initializer&&e.initializer.content?[Ct(e.initializer.label??"TS",ii("typescript",e.initializer.content))]:[],...(e.additionalSources||[]).map(h=>Ct(h.label,ii(h.language,h.content))));e.description&&t.appendChild(It("div",e.description));const f=It("div",[d]);f.classList.add("example"),t.appendChild(f),a&&Gl(`#${n.id}`,a),e.initializer?.initialize&&await e.initializer.initialize(n)}function ii(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(`
|
|
268
|
+
`).trim();return t&&t!="raw"&&(i=wi.highlight(i,{language:t}).value),It("pre",[It("code",i)])}function Gl(t,e){const i=document.createElement("style");i.innerHTML=J().use(kl({prefix:t})).process(e).css,document.head.appendChild(i)}async function Zl(t,e=document.body){const i=Jl(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;Vl(s,a,r++)})}function Xl(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 Jl(t){return t.children?Xl(t):t}const Yl=`<h1 id="@cas-smartdesign/tab-bar">@cas-smartdesign/tab-bar</h1>
|
|
267
269
|
<p>A TabBar element with SmartDesign look & feel</p>
|
|
268
270
|
<p>The sd-tab-bar element should contain only sd-tab elements as distributed children via a slot element because the internal logic is based on that type.</p>
|
|
269
271
|
<h2 id="attributes">Attributes</h2>
|
|
@@ -358,10 +360,4 @@ https://github.com/highlightjs/highlight.js/issues/2277`),B=d,$=b),x===void 0&&(
|
|
|
358
360
|
</ul>
|
|
359
361
|
</li>
|
|
360
362
|
</ul>
|
|
361
|
-
`,
|
|
362
|
-
function __vite__mapDeps(indexes) {
|
|
363
|
-
if (!__vite__mapDeps.viteFileDeps) {
|
|
364
|
-
__vite__mapDeps.viteFileDeps = []
|
|
365
|
-
}
|
|
366
|
-
return indexes.map((i) => __vite__mapDeps.viteFileDeps[i])
|
|
367
|
-
}
|
|
363
|
+
`,Ql=document.querySelector("#markdown-container");Ql.innerHTML=Yl;Zl(Object.assign({"./examples/1_declarative/index.ts":eo,"./examples/2_horizontal/index.ts":lo,"./examples/3_vertical/index.ts":mo}),document.querySelector(".markdown-body"));export{ye as T};
|