@cas-smartdesign/stage 3.0.1 → 3.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/docs/doc.mjs CHANGED
@@ -133,9 +133,9 @@ appendExample(
133
133
  );
134
134
  `,sr={mainContent:er,description:tr,css:nr,initializer:{content:ir,type:"typescript",initialize:()=>Ys(()=>import("./2_create-from-source.js"),__vite__mapDeps([]),import.meta.url)}},rr=Object.freeze(Object.defineProperty({__proto__:null,default:sr},Symbol.toStringTag,{value:"Module"}));const dt=window,dn=dt.ShadowRoot&&(dt.ShadyCSS===void 0||dt.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,fn=Symbol(),jn=new WeakMap;let Ei=class{constructor(e,t,n){if(this._$cssResult$=!0,n!==fn)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o;const t=this.t;if(dn&&e===void 0){const n=t!==void 0&&t.length===1;n&&(e=jn.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),n&&jn.set(t,e))}return e}toString(){return this.cssText}};const pn=i=>new Ei(typeof i=="string"?i:i+"",void 0,fn),$i=(i,...e)=>{const t=i.length===1?i[0]:e.reduce((n,s,o)=>n+(r=>{if(r._$cssResult$===!0)return r.cssText;if(typeof r=="number")return r;throw Error("Value passed to 'css' function must be a 'css' function result: "+r+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+i[o+1],i[0]);return new Ei(t,i,fn)},or=(i,e)=>{dn?i.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet):e.forEach(t=>{const n=document.createElement("style"),s=dt.litNonce;s!==void 0&&n.setAttribute("nonce",s),n.textContent=t.cssText,i.appendChild(n)})},Un=dn?i=>i:i=>i instanceof CSSStyleSheet?(e=>{let t="";for(const n of e.cssRules)t+=n.cssText;return pn(t)})(i):i;var Tt;const gt=window,zn=gt.trustedTypes,lr=zn?zn.emptyScript:"",Dn=gt.reactiveElementPolyfillSupport,Kt={toAttribute(i,e){switch(e){case Boolean:i=i?lr:null;break;case Object:case Array:i=i==null?i:JSON.stringify(i)}return i},fromAttribute(i,e){let t=i;switch(e){case Boolean:t=i!==null;break;case Number:t=i===null?null:Number(i);break;case Object:case Array:try{t=JSON.parse(i)}catch{t=null}}return t}},Si=(i,e)=>e!==i&&(e==e||i==i),Lt={attribute:!0,type:String,converter:Kt,reflect:!1,hasChanged:Si},Zt="finalized";let $e=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this._$Eu()}static addInitializer(e){var t;this.finalize(),((t=this.h)!==null&&t!==void 0?t:this.h=[]).push(e)}static get observedAttributes(){this.finalize();const e=[];return this.elementProperties.forEach((t,n)=>{const s=this._$Ep(n,t);s!==void 0&&(this._$Ev.set(s,n),e.push(s))}),e}static createProperty(e,t=Lt){if(t.state&&(t.attribute=!1),this.finalize(),this.elementProperties.set(e,t),!t.noAccessor&&!this.prototype.hasOwnProperty(e)){const n=typeof e=="symbol"?Symbol():"__"+e,s=this.getPropertyDescriptor(e,n,t);s!==void 0&&Object.defineProperty(this.prototype,e,s)}}static getPropertyDescriptor(e,t,n){return{get(){return this[t]},set(s){const o=this[e];this[t]=s,this.requestUpdate(e,o,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)||Lt}static finalize(){if(this.hasOwnProperty(Zt))return!1;this[Zt]=!0;const e=Object.getPrototypeOf(this);if(e.finalize(),e.h!==void 0&&(this.h=[...e.h]),this.elementProperties=new Map(e.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const t=this.properties,n=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const s of n)this.createProperty(s,t[s])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(e){const t=[];if(Array.isArray(e)){const n=new Set(e.flat(1/0).reverse());for(const s of n)t.unshift(Un(s))}else e!==void 0&&t.push(Un(e));return t}static _$Ep(e,t){const n=t.attribute;return n===!1?void 0:typeof n=="string"?n:typeof e=="string"?e.toLowerCase():void 0}_$Eu(){var e;this._$E_=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$Eg(),this.requestUpdate(),(e=this.constructor.h)===null||e===void 0||e.forEach(t=>t(this))}addController(e){var t,n;((t=this._$ES)!==null&&t!==void 0?t:this._$ES=[]).push(e),this.renderRoot!==void 0&&this.isConnected&&((n=e.hostConnected)===null||n===void 0||n.call(e))}removeController(e){var t;(t=this._$ES)===null||t===void 0||t.splice(this._$ES.indexOf(e)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((e,t)=>{this.hasOwnProperty(t)&&(this._$Ei.set(t,this[t]),delete this[t])})}createRenderRoot(){var e;const t=(e=this.shadowRoot)!==null&&e!==void 0?e:this.attachShadow(this.constructor.shadowRootOptions);return or(t,this.constructor.elementStyles),t}connectedCallback(){var e;this.renderRoot===void 0&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$ES)===null||e===void 0||e.forEach(t=>{var n;return(n=t.hostConnected)===null||n===void 0?void 0:n.call(t)})}enableUpdating(e){}disconnectedCallback(){var e;(e=this._$ES)===null||e===void 0||e.forEach(t=>{var n;return(n=t.hostDisconnected)===null||n===void 0?void 0:n.call(t)})}attributeChangedCallback(e,t,n){this._$AK(e,n)}_$EO(e,t,n=Lt){var s;const o=this.constructor._$Ep(e,n);if(o!==void 0&&n.reflect===!0){const r=(((s=n.converter)===null||s===void 0?void 0:s.toAttribute)!==void 0?n.converter:Kt).toAttribute(t,n.type);this._$El=e,r==null?this.removeAttribute(o):this.setAttribute(o,r),this._$El=null}}_$AK(e,t){var n;const s=this.constructor,o=s._$Ev.get(e);if(o!==void 0&&this._$El!==o){const r=s.getPropertyOptions(o),l=typeof r.converter=="function"?{fromAttribute:r.converter}:((n=r.converter)===null||n===void 0?void 0:n.fromAttribute)!==void 0?r.converter:Kt;this._$El=o,this[o]=l.fromAttribute(t,r.type),this._$El=null}}requestUpdate(e,t,n){let s=!0;e!==void 0&&(((n=n||this.constructor.getPropertyOptions(e)).hasChanged||Si)(this[e],t)?(this._$AL.has(e)||this._$AL.set(e,t),n.reflect===!0&&this._$El!==e&&(this._$EC===void 0&&(this._$EC=new Map),this._$EC.set(e,n))):s=!1),!this.isUpdatePending&&s&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(t){Promise.reject(t)}const e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var e;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach((s,o)=>this[o]=s),this._$Ei=void 0);let t=!1;const n=this._$AL;try{t=this.shouldUpdate(n),t?(this.willUpdate(n),(e=this._$ES)===null||e===void 0||e.forEach(s=>{var o;return(o=s.hostUpdate)===null||o===void 0?void 0:o.call(s)}),this.update(n)):this._$Ek()}catch(s){throw t=!1,this._$Ek(),s}t&&this._$AE(n)}willUpdate(e){}_$AE(e){var t;(t=this._$ES)===null||t===void 0||t.forEach(n=>{var s;return(s=n.hostUpdated)===null||s===void 0?void 0:s.call(n)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(e){return!0}update(e){this._$EC!==void 0&&(this._$EC.forEach((t,n)=>this._$EO(n,this[n],t)),this._$EC=void 0),this._$Ek()}updated(e){}firstUpdated(e){}};$e[Zt]=!0,$e.elementProperties=new Map,$e.elementStyles=[],$e.shadowRootOptions={mode:"open"},Dn==null||Dn({ReactiveElement:$e}),((Tt=gt.reactiveElementVersions)!==null&&Tt!==void 0?Tt:gt.reactiveElementVersions=[]).push("1.6.3");var jt;const mt=window,Se=mt.trustedTypes,Bn=Se?Se.createPolicy("lit-html",{createHTML:i=>i}):void 0,bt="$lit$",ne=`lit$${(Math.random()+"").slice(9)}$`,gn="?"+ne,ar=`<${gn}>`,me=document,ze=()=>me.createComment(""),De=i=>i===null||typeof i!="object"&&typeof i!="function",Ai=Array.isArray,Oi=i=>Ai(i)||typeof(i==null?void 0:i[Symbol.iterator])=="function",Ut=`[
135
135
  \f\r]`,Ne=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Hn=/-->/g,Fn=/>/g,he=RegExp(`>|${Ut}(?:([^\\s"'>=/]+)(${Ut}*=${Ut}*(?:[^
136
- \f\r"'\`<>=]|("|')|))|$)`,"g"),Vn=/'/g,Wn=/"/g,Ci=/^(?:script|style|textarea|title)$/i,cr=i=>(e,...t)=>({_$litType$:i,strings:e,values:t}),re=cr(1),be=Symbol.for("lit-noChange"),L=Symbol.for("lit-nothing"),qn=new WeakMap,fe=me.createTreeWalker(me,129,null,!1);function ki(i,e){if(!Array.isArray(i)||!i.hasOwnProperty("raw"))throw Error("invalid template strings array");return Bn!==void 0?Bn.createHTML(e):e}const Ri=(i,e)=>{const t=i.length-1,n=[];let s,o=e===2?"<svg>":"",r=Ne;for(let l=0;l<t;l++){const a=i[l];let c,u,f=-1,d=0;for(;d<a.length&&(r.lastIndex=d,u=r.exec(a),u!==null);)d=r.lastIndex,r===Ne?u[1]==="!--"?r=Hn:u[1]!==void 0?r=Fn:u[2]!==void 0?(Ci.test(u[2])&&(s=RegExp("</"+u[2],"g")),r=he):u[3]!==void 0&&(r=he):r===he?u[0]===">"?(r=s??Ne,f=-1):u[1]===void 0?f=-2:(f=r.lastIndex-u[2].length,c=u[1],r=u[3]===void 0?he:u[3]==='"'?Wn:Vn):r===Wn||r===Vn?r=he:r===Hn||r===Fn?r=Ne:(r=he,s=void 0);const v=r===he&&i[l+1].startsWith("/>")?" ":"";o+=r===Ne?a+ar:f>=0?(n.push(c),a.slice(0,f)+bt+a.slice(f)+ne+v):a+ne+(f===-2?(n.push(void 0),l):v)}return[ki(i,o+(i[t]||"<?>")+(e===2?"</svg>":"")),n]};class Be{constructor({strings:e,_$litType$:t},n){let s;this.parts=[];let o=0,r=0;const l=e.length-1,a=this.parts,[c,u]=Ri(e,t);if(this.el=Be.createElement(c,n),fe.currentNode=this.el.content,t===2){const f=this.el.content,d=f.firstChild;d.remove(),f.append(...d.childNodes)}for(;(s=fe.nextNode())!==null&&a.length<l;){if(s.nodeType===1){if(s.hasAttributes()){const f=[];for(const d of s.getAttributeNames())if(d.endsWith(bt)||d.startsWith(ne)){const v=u[r++];if(f.push(d),v!==void 0){const w=s.getAttribute(v.toLowerCase()+bt).split(ne),$=/([.?@])?(.*)/.exec(v);a.push({type:1,index:o,name:$[2],strings:w,ctor:$[1]==="."?Ni:$[1]==="?"?Pi:$[1]==="@"?Ii:Ze})}else a.push({type:6,index:o})}for(const d of f)s.removeAttribute(d)}if(Ci.test(s.tagName)){const f=s.textContent.split(ne),d=f.length-1;if(d>0){s.textContent=Se?Se.emptyScript:"";for(let v=0;v<d;v++)s.append(f[v],ze()),fe.nextNode(),a.push({type:2,index:++o});s.append(f[d],ze())}}}else if(s.nodeType===8)if(s.data===gn)a.push({type:2,index:o});else{let f=-1;for(;(f=s.data.indexOf(ne,f+1))!==-1;)a.push({type:7,index:o}),f+=ne.length-1}o++}}static createElement(e,t){const n=me.createElement("template");return n.innerHTML=e,n}}function ve(i,e,t=i,n){var s,o,r,l;if(e===be)return e;let a=n!==void 0?(s=t._$Co)===null||s===void 0?void 0:s[n]:t._$Cl;const c=De(e)?void 0:e._$litDirective$;return(a==null?void 0:a.constructor)!==c&&((o=a==null?void 0:a._$AO)===null||o===void 0||o.call(a,!1),c===void 0?a=void 0:(a=new c(i),a._$AT(i,t,n)),n!==void 0?((r=(l=t)._$Co)!==null&&r!==void 0?r:l._$Co=[])[n]=a:t._$Cl=a),a!==void 0&&(e=ve(i,a._$AS(i,e.values),a,n)),e}class Mi{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){var t;const{el:{content:n},parts:s}=this._$AD,o=((t=e==null?void 0:e.creationScope)!==null&&t!==void 0?t:me).importNode(n,!0);fe.currentNode=o;let r=fe.nextNode(),l=0,a=0,c=s[0];for(;c!==void 0;){if(l===c.index){let u;c.type===2?u=new Re(r,r.nextSibling,this,e):c.type===1?u=new c.ctor(r,c.name,c.strings,this,e):c.type===6&&(u=new Ti(r,this,e)),this._$AV.push(u),c=s[++a]}l!==(c==null?void 0:c.index)&&(r=fe.nextNode(),l++)}return fe.currentNode=me,o}v(e){let t=0;for(const n of this._$AV)n!==void 0&&(n.strings!==void 0?(n._$AI(e,n,t),t+=n.strings.length-2):n._$AI(e[t])),t++}}class Re{constructor(e,t,n,s){var o;this.type=2,this._$AH=L,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=n,this.options=s,this._$Cp=(o=s==null?void 0:s.isConnected)===null||o===void 0||o}get _$AU(){var e,t;return(t=(e=this._$AM)===null||e===void 0?void 0:e._$AU)!==null&&t!==void 0?t:this._$Cp}get parentNode(){let e=this._$AA.parentNode;const t=this._$AM;return t!==void 0&&(e==null?void 0:e.nodeType)===11&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=ve(this,e,t),De(e)?e===L||e==null||e===""?(this._$AH!==L&&this._$AR(),this._$AH=L):e!==this._$AH&&e!==be&&this._(e):e._$litType$!==void 0?this.g(e):e.nodeType!==void 0?this.$(e):Oi(e)?this.T(e):this._(e)}k(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}$(e){this._$AH!==e&&(this._$AR(),this._$AH=this.k(e))}_(e){this._$AH!==L&&De(this._$AH)?this._$AA.nextSibling.data=e:this.$(me.createTextNode(e)),this._$AH=e}g(e){var t;const{values:n,_$litType$:s}=e,o=typeof s=="number"?this._$AC(e):(s.el===void 0&&(s.el=Be.createElement(ki(s.h,s.h[0]),this.options)),s);if(((t=this._$AH)===null||t===void 0?void 0:t._$AD)===o)this._$AH.v(n);else{const r=new Mi(o,this),l=r.u(this.options);r.v(n),this.$(l),this._$AH=r}}_$AC(e){let t=qn.get(e.strings);return t===void 0&&qn.set(e.strings,t=new Be(e)),t}T(e){Ai(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let n,s=0;for(const o of e)s===t.length?t.push(n=new Re(this.k(ze()),this.k(ze()),this,this.options)):n=t[s],n._$AI(o),s++;s<t.length&&(this._$AR(n&&n._$AB.nextSibling,s),t.length=s)}_$AR(e=this._$AA.nextSibling,t){var n;for((n=this._$AP)===null||n===void 0||n.call(this,!1,!0,t);e&&e!==this._$AB;){const s=e.nextSibling;e.remove(),e=s}}setConnected(e){var t;this._$AM===void 0&&(this._$Cp=e,(t=this._$AP)===null||t===void 0||t.call(this,e))}}class Ze{constructor(e,t,n,s,o){this.type=1,this._$AH=L,this._$AN=void 0,this.element=e,this.name=t,this._$AM=s,this.options=o,n.length>2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=L}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(e,t=this,n,s){const o=this.strings;let r=!1;if(o===void 0)e=ve(this,e,t,0),r=!De(e)||e!==this._$AH&&e!==be,r&&(this._$AH=e);else{const l=e;let a,c;for(e=o[0],a=0;a<o.length-1;a++)c=ve(this,l[n+a],t,a),c===be&&(c=this._$AH[a]),r||(r=!De(c)||c!==this._$AH[a]),c===L?e=L:e!==L&&(e+=(c??"")+o[a+1]),this._$AH[a]=c}r&&!s&&this.j(e)}j(e){e===L?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}}class Ni extends Ze{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===L?void 0:e}}const ur=Se?Se.emptyScript:"";class Pi extends Ze{constructor(){super(...arguments),this.type=4}j(e){e&&e!==L?this.element.setAttribute(this.name,ur):this.element.removeAttribute(this.name)}}let Ii=class extends Ze{constructor(e,t,n,s,o){super(e,t,n,s,o),this.type=5}_$AI(e,t=this){var n;if((e=(n=ve(this,e,t,0))!==null&&n!==void 0?n:L)===be)return;const s=this._$AH,o=e===L&&s!==L||e.capture!==s.capture||e.once!==s.once||e.passive!==s.passive,r=e!==L&&(s===L||o);o&&this.element.removeEventListener(this.name,this,s),r&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var t,n;typeof this._$AH=="function"?this._$AH.call((n=(t=this.options)===null||t===void 0?void 0:t.host)!==null&&n!==void 0?n:this.element,e):this._$AH.handleEvent(e)}};class Ti{constructor(e,t,n){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(e){ve(this,e)}}const hr={O:bt,P:ne,A:gn,C:1,M:Ri,L:Mi,R:Oi,D:ve,I:Re,V:Ze,H:Pi,N:Ii,U:Ni,F:Ti},Gn=mt.litHtmlPolyfillSupport;Gn==null||Gn(Be,Re),((jt=mt.litHtmlVersions)!==null&&jt!==void 0?jt:mt.litHtmlVersions=[]).push("2.8.0");const dr=(i,e,t)=>{var n,s;const o=(n=t==null?void 0:t.renderBefore)!==null&&n!==void 0?n:e;let r=o._$litPart$;if(r===void 0){const l=(s=t==null?void 0:t.renderBefore)!==null&&s!==void 0?s:null;o._$litPart$=r=new Re(e.insertBefore(ze(),l),l,void 0,t??{})}return r._$AI(i),r};var zt,Dt;let pe=class extends $e{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e,t;const n=super.createRenderRoot();return(e=(t=this.renderOptions).renderBefore)!==null&&e!==void 0||(t.renderBefore=n.firstChild),n}update(e){const t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=dr(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}};pe.finalized=!0,pe._$litElement$=!0,(zt=globalThis.litElementHydrateSupport)===null||zt===void 0||zt.call(globalThis,{LitElement:pe});const Kn=globalThis.litElementPolyfillSupport;Kn==null||Kn({LitElement:pe});((Dt=globalThis.litElementVersions)!==null&&Dt!==void 0?Dt:globalThis.litElementVersions=[]).push("3.3.3");const fr=(i,e)=>e.kind==="method"&&e.descriptor&&!("value"in e.descriptor)?{...e,finisher(t){t.createProperty(e.key,i)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:e.key,initializer(){typeof e.initializer=="function"&&(this[e.key]=e.initializer.call(this))},finisher(t){t.createProperty(e.key,i)}},pr=(i,e,t)=>{e.constructor.createProperty(t,i)};function le(i){return(e,t)=>t!==void 0?pr(i,e,t):fr(i,e)}const gr={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},mr=i=>(...e)=>({_$litDirective$:i,values:e});class br{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,n){this._$Ct=e,this._$AM=t,this._$Ci=n}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}}const{I:vr}=hr,Zn=()=>document.createComment(""),Pe=(i,e,t)=>{var n;const s=i._$AA.parentNode,o=e===void 0?i._$AB:e._$AA;if(t===void 0){const r=s.insertBefore(Zn(),o),l=s.insertBefore(Zn(),o);t=new vr(r,l,i,i.options)}else{const r=t._$AB.nextSibling,l=t._$AM,a=l!==i;if(a){let c;(n=t._$AQ)===null||n===void 0||n.call(t,i),t._$AM=i,t._$AP!==void 0&&(c=i._$AU)!==l._$AU&&t._$AP(c)}if(r!==o||a){let c=t._$AA;for(;c!==r;){const u=c.nextSibling;s.insertBefore(c,o),c=u}}}return t},de=(i,e,t=i)=>(i._$AI(e,t),i),yr={},wr=(i,e=yr)=>i._$AH=e,xr=i=>i._$AH,Bt=i=>{var e;(e=i._$AP)===null||e===void 0||e.call(i,!1,!0);let t=i._$AA;const n=i._$AB.nextSibling;for(;t!==n;){const s=t.nextSibling;t.remove(),t=s}};const Jn=(i,e,t)=>{const n=new Map;for(let s=e;s<=t;s++)n.set(i[s],s);return n},_r=mr(class extends br{constructor(i){if(super(i),i.type!==gr.CHILD)throw Error("repeat() can only be used in text expressions")}ct(i,e,t){let n;t===void 0?t=e:e!==void 0&&(n=e);const s=[],o=[];let r=0;for(const l of i)s[r]=n?n(l,r):r,o[r]=t(l,r),r++;return{values:o,keys:s}}render(i,e,t){return this.ct(i,e,t).values}update(i,[e,t,n]){var s;const o=xr(i),{values:r,keys:l}=this.ct(e,t,n);if(!Array.isArray(o))return this.ut=l,r;const a=(s=this.ut)!==null&&s!==void 0?s:this.ut=[],c=[];let u,f,d=0,v=o.length-1,w=0,$=r.length-1;for(;d<=v&&w<=$;)if(o[d]===null)d++;else if(o[v]===null)v--;else if(a[d]===l[w])c[w]=de(o[d],r[w]),d++,w++;else if(a[v]===l[$])c[$]=de(o[v],r[$]),v--,$--;else if(a[d]===l[$])c[$]=de(o[d],r[$]),Pe(i,c[$+1],o[d]),d++,$--;else if(a[v]===l[w])c[w]=de(o[v],r[w]),Pe(i,o[d],o[v]),v--,w++;else if(u===void 0&&(u=Jn(l,w,$),f=Jn(a,d,v)),u.has(a[d]))if(u.has(a[v])){const b=f.get(l[w]),D=b!==void 0?o[b]:null;if(D===null){const B=Pe(i,o[d]);de(B,r[w]),c[w]=B}else c[w]=de(D,r[w]),Pe(i,o[d],D),o[b]=null;w++}else Bt(o[v]),v--;else Bt(o[d]),d++;for(;w<=$;){const b=Pe(i,c[$+1]);de(b,r[w]),c[w++]=b}for(;d<=v;){const b=o[d++];b!==null&&Bt(b)}return this.ut=l,wr(i,c),be}});const Ie=i=>i??L,Er=":host{display:inline-block;font-size:13px;line-height:20px;font-family:Segoe UI,Lucida Sans,Arial,sans-serif;color:#111;contain:content}:host([hidden]){display:none!important}:host([level=warn i]){color:#555}:host([level=suggest i]){color:#bf8800}:host([level=error i]){color:#cc0017}:host([level=warn]){color:#555}:host([level=suggest]){color:#bf8800}:host([level=error]){color:#cc0017}.icon{height:12px;width:12px;padding-right:4px;margin-bottom:-1px}",$r="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2012%2012'%3e%3cstyle%20id='style3'%3e%20.st0{fill:%23fff}.st1{fill:%23c00}%20%3c/style%3e%3cg%20id='g5'%3e%3cpath%20class='st1'%20d='M6%20.9c2.8%200%205.1%202.3%205.1%205.1S8.8%2011.1%206%2011.1.9%208.8.9%206%203.2.9%206%20.9m0-1C2.7-.1-.1%202.7-.1%206s2.7%206.1%206.1%206.1%206.1-2.7%206.1-6.1S9.3-.1%206-.1z'%20id='path9'/%3e%3c/g%3e%3cg%20id='g11'%3e%3cpath%20class='st0'%20id='rect13'%20d='M5.5%202.5h1v4h-1z'/%3e%3cpath%20class='st1'%20d='M6%203v3-3m1-1H5v5h2V2z'%20id='path15'/%3e%3c/g%3e%3cg%20id='g17'%3e%3cpath%20class='st0'%20id='rect19'%20d='M5.5%208.5h1v1h-1z'/%3e%3cpath%20class='st1'%20id='polygon21'%20d='M7%208H5v2h2V8z'/%3e%3c/g%3e%3c/svg%3e",Sr="data:image/svg+xml,%3csvg%20id='Ebene_1'%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3e%3cstyle%3e%20.st0{fill:%23bf8800}%20%3c/style%3e%3cpath%20class='st0'%20d='M12%20.8l11%2019.8v1.3H1v-1.3L12%20.8zm.8-.6h-1.6L0%2020v3h24v-3L12.8.2z'/%3e%3cpath%20class='st0'%20d='M11%208h2v8h-2zm0%2010h2v2h-2z'/%3e%3c/svg%3e",Ar="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2012%2012'%3e%3cpath%20class='st1'%20d='M6%20.9c2.8%200%205.1%202.3%205.1%205.1S8.8%2011.1%206%2011.1.9%208.8.9%206%203.2.9%206%20.9m0-1C2.7-.1-.1%202.7-.1%206s2.7%206.1%206.1%206.1%206.1-2.7%206.1-6.1S9.3-.1%206-.1z'%20fill='%23555'/%3e%3cpath%20d='M6%209V6v3m-1%201h2V5H5v5zm2-8H5v2h2z'%20class='st1'%20fill='%23555'/%3e%3c/svg%3e";var Or=Object.defineProperty,Cr=Object.getOwnPropertyDescriptor,mn=(i,e,t,n)=>{for(var s=n>1?void 0:n?Cr(e,t):e,o=i.length-1,r;o>=0;o--)(r=i[o])&&(s=(n?r(e,t,s):r(s))||s);return n&&s&&Or(e,t,s),s},_e;const He=(_e=class extends pe{static parseLevel(i){if(i){const e=Object.keys(vt).find(t=>t.toLowerCase()===i.toLowerCase());return e&&vt[e]}}static get styles(){return[$i`
136
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),Vn=/'/g,Wn=/"/g,Ci=/^(?:script|style|textarea|title)$/i,cr=i=>(e,...t)=>({_$litType$:i,strings:e,values:t}),re=cr(1),be=Symbol.for("lit-noChange"),L=Symbol.for("lit-nothing"),qn=new WeakMap,fe=me.createTreeWalker(me,129,null,!1);function ki(i,e){if(!Array.isArray(i)||!i.hasOwnProperty("raw"))throw Error("invalid template strings array");return Bn!==void 0?Bn.createHTML(e):e}const Ri=(i,e)=>{const t=i.length-1,n=[];let s,o=e===2?"<svg>":"",r=Ne;for(let l=0;l<t;l++){const a=i[l];let c,u,f=-1,d=0;for(;d<a.length&&(r.lastIndex=d,u=r.exec(a),u!==null);)d=r.lastIndex,r===Ne?u[1]==="!--"?r=Hn:u[1]!==void 0?r=Fn:u[2]!==void 0?(Ci.test(u[2])&&(s=RegExp("</"+u[2],"g")),r=he):u[3]!==void 0&&(r=he):r===he?u[0]===">"?(r=s??Ne,f=-1):u[1]===void 0?f=-2:(f=r.lastIndex-u[2].length,c=u[1],r=u[3]===void 0?he:u[3]==='"'?Wn:Vn):r===Wn||r===Vn?r=he:r===Hn||r===Fn?r=Ne:(r=he,s=void 0);const y=r===he&&i[l+1].startsWith("/>")?" ":"";o+=r===Ne?a+ar:f>=0?(n.push(c),a.slice(0,f)+bt+a.slice(f)+ne+y):a+ne+(f===-2?(n.push(void 0),l):y)}return[ki(i,o+(i[t]||"<?>")+(e===2?"</svg>":"")),n]};class Be{constructor({strings:e,_$litType$:t},n){let s;this.parts=[];let o=0,r=0;const l=e.length-1,a=this.parts,[c,u]=Ri(e,t);if(this.el=Be.createElement(c,n),fe.currentNode=this.el.content,t===2){const f=this.el.content,d=f.firstChild;d.remove(),f.append(...d.childNodes)}for(;(s=fe.nextNode())!==null&&a.length<l;){if(s.nodeType===1){if(s.hasAttributes()){const f=[];for(const d of s.getAttributeNames())if(d.endsWith(bt)||d.startsWith(ne)){const y=u[r++];if(f.push(d),y!==void 0){const w=s.getAttribute(y.toLowerCase()+bt).split(ne),$=/([.?@])?(.*)/.exec(y);a.push({type:1,index:o,name:$[2],strings:w,ctor:$[1]==="."?Ni:$[1]==="?"?Pi:$[1]==="@"?Ii:Ze})}else a.push({type:6,index:o})}for(const d of f)s.removeAttribute(d)}if(Ci.test(s.tagName)){const f=s.textContent.split(ne),d=f.length-1;if(d>0){s.textContent=Se?Se.emptyScript:"";for(let y=0;y<d;y++)s.append(f[y],ze()),fe.nextNode(),a.push({type:2,index:++o});s.append(f[d],ze())}}}else if(s.nodeType===8)if(s.data===gn)a.push({type:2,index:o});else{let f=-1;for(;(f=s.data.indexOf(ne,f+1))!==-1;)a.push({type:7,index:o}),f+=ne.length-1}o++}}static createElement(e,t){const n=me.createElement("template");return n.innerHTML=e,n}}function ye(i,e,t=i,n){var s,o,r,l;if(e===be)return e;let a=n!==void 0?(s=t._$Co)===null||s===void 0?void 0:s[n]:t._$Cl;const c=De(e)?void 0:e._$litDirective$;return(a==null?void 0:a.constructor)!==c&&((o=a==null?void 0:a._$AO)===null||o===void 0||o.call(a,!1),c===void 0?a=void 0:(a=new c(i),a._$AT(i,t,n)),n!==void 0?((r=(l=t)._$Co)!==null&&r!==void 0?r:l._$Co=[])[n]=a:t._$Cl=a),a!==void 0&&(e=ye(i,a._$AS(i,e.values),a,n)),e}class Mi{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){var t;const{el:{content:n},parts:s}=this._$AD,o=((t=e==null?void 0:e.creationScope)!==null&&t!==void 0?t:me).importNode(n,!0);fe.currentNode=o;let r=fe.nextNode(),l=0,a=0,c=s[0];for(;c!==void 0;){if(l===c.index){let u;c.type===2?u=new Re(r,r.nextSibling,this,e):c.type===1?u=new c.ctor(r,c.name,c.strings,this,e):c.type===6&&(u=new Ti(r,this,e)),this._$AV.push(u),c=s[++a]}l!==(c==null?void 0:c.index)&&(r=fe.nextNode(),l++)}return fe.currentNode=me,o}v(e){let t=0;for(const n of this._$AV)n!==void 0&&(n.strings!==void 0?(n._$AI(e,n,t),t+=n.strings.length-2):n._$AI(e[t])),t++}}class Re{constructor(e,t,n,s){var o;this.type=2,this._$AH=L,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=n,this.options=s,this._$Cp=(o=s==null?void 0:s.isConnected)===null||o===void 0||o}get _$AU(){var e,t;return(t=(e=this._$AM)===null||e===void 0?void 0:e._$AU)!==null&&t!==void 0?t:this._$Cp}get parentNode(){let e=this._$AA.parentNode;const t=this._$AM;return t!==void 0&&(e==null?void 0:e.nodeType)===11&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=ye(this,e,t),De(e)?e===L||e==null||e===""?(this._$AH!==L&&this._$AR(),this._$AH=L):e!==this._$AH&&e!==be&&this._(e):e._$litType$!==void 0?this.g(e):e.nodeType!==void 0?this.$(e):Oi(e)?this.T(e):this._(e)}k(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}$(e){this._$AH!==e&&(this._$AR(),this._$AH=this.k(e))}_(e){this._$AH!==L&&De(this._$AH)?this._$AA.nextSibling.data=e:this.$(me.createTextNode(e)),this._$AH=e}g(e){var t;const{values:n,_$litType$:s}=e,o=typeof s=="number"?this._$AC(e):(s.el===void 0&&(s.el=Be.createElement(ki(s.h,s.h[0]),this.options)),s);if(((t=this._$AH)===null||t===void 0?void 0:t._$AD)===o)this._$AH.v(n);else{const r=new Mi(o,this),l=r.u(this.options);r.v(n),this.$(l),this._$AH=r}}_$AC(e){let t=qn.get(e.strings);return t===void 0&&qn.set(e.strings,t=new Be(e)),t}T(e){Ai(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let n,s=0;for(const o of e)s===t.length?t.push(n=new Re(this.k(ze()),this.k(ze()),this,this.options)):n=t[s],n._$AI(o),s++;s<t.length&&(this._$AR(n&&n._$AB.nextSibling,s),t.length=s)}_$AR(e=this._$AA.nextSibling,t){var n;for((n=this._$AP)===null||n===void 0||n.call(this,!1,!0,t);e&&e!==this._$AB;){const s=e.nextSibling;e.remove(),e=s}}setConnected(e){var t;this._$AM===void 0&&(this._$Cp=e,(t=this._$AP)===null||t===void 0||t.call(this,e))}}class Ze{constructor(e,t,n,s,o){this.type=1,this._$AH=L,this._$AN=void 0,this.element=e,this.name=t,this._$AM=s,this.options=o,n.length>2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=L}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(e,t=this,n,s){const o=this.strings;let r=!1;if(o===void 0)e=ye(this,e,t,0),r=!De(e)||e!==this._$AH&&e!==be,r&&(this._$AH=e);else{const l=e;let a,c;for(e=o[0],a=0;a<o.length-1;a++)c=ye(this,l[n+a],t,a),c===be&&(c=this._$AH[a]),r||(r=!De(c)||c!==this._$AH[a]),c===L?e=L:e!==L&&(e+=(c??"")+o[a+1]),this._$AH[a]=c}r&&!s&&this.j(e)}j(e){e===L?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}}class Ni extends Ze{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===L?void 0:e}}const ur=Se?Se.emptyScript:"";class Pi extends Ze{constructor(){super(...arguments),this.type=4}j(e){e&&e!==L?this.element.setAttribute(this.name,ur):this.element.removeAttribute(this.name)}}let Ii=class extends Ze{constructor(e,t,n,s,o){super(e,t,n,s,o),this.type=5}_$AI(e,t=this){var n;if((e=(n=ye(this,e,t,0))!==null&&n!==void 0?n:L)===be)return;const s=this._$AH,o=e===L&&s!==L||e.capture!==s.capture||e.once!==s.once||e.passive!==s.passive,r=e!==L&&(s===L||o);o&&this.element.removeEventListener(this.name,this,s),r&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var t,n;typeof this._$AH=="function"?this._$AH.call((n=(t=this.options)===null||t===void 0?void 0:t.host)!==null&&n!==void 0?n:this.element,e):this._$AH.handleEvent(e)}};class Ti{constructor(e,t,n){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(e){ye(this,e)}}const hr={O:bt,P:ne,A:gn,C:1,M:Ri,L:Mi,R:Oi,D:ye,I:Re,V:Ze,H:Pi,N:Ii,U:Ni,F:Ti},Gn=mt.litHtmlPolyfillSupport;Gn==null||Gn(Be,Re),((jt=mt.litHtmlVersions)!==null&&jt!==void 0?jt:mt.litHtmlVersions=[]).push("2.8.0");const dr=(i,e,t)=>{var n,s;const o=(n=t==null?void 0:t.renderBefore)!==null&&n!==void 0?n:e;let r=o._$litPart$;if(r===void 0){const l=(s=t==null?void 0:t.renderBefore)!==null&&s!==void 0?s:null;o._$litPart$=r=new Re(e.insertBefore(ze(),l),l,void 0,t??{})}return r._$AI(i),r};var zt,Dt;let pe=class extends $e{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e,t;const n=super.createRenderRoot();return(e=(t=this.renderOptions).renderBefore)!==null&&e!==void 0||(t.renderBefore=n.firstChild),n}update(e){const t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=dr(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}};pe.finalized=!0,pe._$litElement$=!0,(zt=globalThis.litElementHydrateSupport)===null||zt===void 0||zt.call(globalThis,{LitElement:pe});const Kn=globalThis.litElementPolyfillSupport;Kn==null||Kn({LitElement:pe});((Dt=globalThis.litElementVersions)!==null&&Dt!==void 0?Dt:globalThis.litElementVersions=[]).push("3.3.3");const fr=(i,e)=>e.kind==="method"&&e.descriptor&&!("value"in e.descriptor)?{...e,finisher(t){t.createProperty(e.key,i)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:e.key,initializer(){typeof e.initializer=="function"&&(this[e.key]=e.initializer.call(this))},finisher(t){t.createProperty(e.key,i)}},pr=(i,e,t)=>{e.constructor.createProperty(t,i)};function le(i){return(e,t)=>t!==void 0?pr(i,e,t):fr(i,e)}const gr={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},mr=i=>(...e)=>({_$litDirective$:i,values:e});class br{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,n){this._$Ct=e,this._$AM=t,this._$Ci=n}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}}const{I:yr}=hr,Zn=()=>document.createComment(""),Pe=(i,e,t)=>{var n;const s=i._$AA.parentNode,o=e===void 0?i._$AB:e._$AA;if(t===void 0){const r=s.insertBefore(Zn(),o),l=s.insertBefore(Zn(),o);t=new yr(r,l,i,i.options)}else{const r=t._$AB.nextSibling,l=t._$AM,a=l!==i;if(a){let c;(n=t._$AQ)===null||n===void 0||n.call(t,i),t._$AM=i,t._$AP!==void 0&&(c=i._$AU)!==l._$AU&&t._$AP(c)}if(r!==o||a){let c=t._$AA;for(;c!==r;){const u=c.nextSibling;s.insertBefore(c,o),c=u}}}return t},de=(i,e,t=i)=>(i._$AI(e,t),i),vr={},wr=(i,e=vr)=>i._$AH=e,xr=i=>i._$AH,Bt=i=>{var e;(e=i._$AP)===null||e===void 0||e.call(i,!1,!0);let t=i._$AA;const n=i._$AB.nextSibling;for(;t!==n;){const s=t.nextSibling;t.remove(),t=s}};const Jn=(i,e,t)=>{const n=new Map;for(let s=e;s<=t;s++)n.set(i[s],s);return n},_r=mr(class extends br{constructor(i){if(super(i),i.type!==gr.CHILD)throw Error("repeat() can only be used in text expressions")}ct(i,e,t){let n;t===void 0?t=e:e!==void 0&&(n=e);const s=[],o=[];let r=0;for(const l of i)s[r]=n?n(l,r):r,o[r]=t(l,r),r++;return{values:o,keys:s}}render(i,e,t){return this.ct(i,e,t).values}update(i,[e,t,n]){var s;const o=xr(i),{values:r,keys:l}=this.ct(e,t,n);if(!Array.isArray(o))return this.ut=l,r;const a=(s=this.ut)!==null&&s!==void 0?s:this.ut=[],c=[];let u,f,d=0,y=o.length-1,w=0,$=r.length-1;for(;d<=y&&w<=$;)if(o[d]===null)d++;else if(o[y]===null)y--;else if(a[d]===l[w])c[w]=de(o[d],r[w]),d++,w++;else if(a[y]===l[$])c[$]=de(o[y],r[$]),y--,$--;else if(a[d]===l[$])c[$]=de(o[d],r[$]),Pe(i,c[$+1],o[d]),d++,$--;else if(a[y]===l[w])c[w]=de(o[y],r[w]),Pe(i,o[d],o[y]),y--,w++;else if(u===void 0&&(u=Jn(l,w,$),f=Jn(a,d,y)),u.has(a[d]))if(u.has(a[y])){const b=f.get(l[w]),D=b!==void 0?o[b]:null;if(D===null){const B=Pe(i,o[d]);de(B,r[w]),c[w]=B}else c[w]=de(D,r[w]),Pe(i,o[d],D),o[b]=null;w++}else Bt(o[y]),y--;else Bt(o[d]),d++;for(;w<=$;){const b=Pe(i,c[$+1]);de(b,r[w]),c[w++]=b}for(;d<=y;){const b=o[d++];b!==null&&Bt(b)}return this.ut=l,wr(i,c),be}});const Ie=i=>i??L,Er=":host{display:inline-block;font-size:13px;line-height:20px;font-family:Segoe UI,Lucida Sans,Arial,sans-serif;color:#111;contain:content}:host([hidden]){display:none!important}:host([level=warn i]){color:#555}:host([level=suggest i]){color:#bf8800}:host([level=error i]){color:#cc0017}:host([level=warn]){color:#555}:host([level=suggest]){color:#bf8800}:host([level=error]){color:#cc0017}.icon{height:12px;width:12px;padding-right:4px;margin-bottom:-1px}",$r="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2012%2012'%3e%3cstyle%20id='style3'%3e%20.st0{fill:%23fff}.st1{fill:%23c00}%20%3c/style%3e%3cg%20id='g5'%3e%3cpath%20class='st1'%20d='M6%20.9c2.8%200%205.1%202.3%205.1%205.1S8.8%2011.1%206%2011.1.9%208.8.9%206%203.2.9%206%20.9m0-1C2.7-.1-.1%202.7-.1%206s2.7%206.1%206.1%206.1%206.1-2.7%206.1-6.1S9.3-.1%206-.1z'%20id='path9'/%3e%3c/g%3e%3cg%20id='g11'%3e%3cpath%20class='st0'%20id='rect13'%20d='M5.5%202.5h1v4h-1z'/%3e%3cpath%20class='st1'%20d='M6%203v3-3m1-1H5v5h2V2z'%20id='path15'/%3e%3c/g%3e%3cg%20id='g17'%3e%3cpath%20class='st0'%20id='rect19'%20d='M5.5%208.5h1v1h-1z'/%3e%3cpath%20class='st1'%20id='polygon21'%20d='M7%208H5v2h2V8z'/%3e%3c/g%3e%3c/svg%3e",Sr="data:image/svg+xml,%3csvg%20id='Ebene_1'%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3e%3cstyle%3e%20.st0{fill:%23bf8800}%20%3c/style%3e%3cpath%20class='st0'%20d='M12%20.8l11%2019.8v1.3H1v-1.3L12%20.8zm.8-.6h-1.6L0%2020v3h24v-3L12.8.2z'/%3e%3cpath%20class='st0'%20d='M11%208h2v8h-2zm0%2010h2v2h-2z'/%3e%3c/svg%3e",Ar="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2012%2012'%3e%3cpath%20class='st1'%20d='M6%20.9c2.8%200%205.1%202.3%205.1%205.1S8.8%2011.1%206%2011.1.9%208.8.9%206%203.2.9%206%20.9m0-1C2.7-.1-.1%202.7-.1%206s2.7%206.1%206.1%206.1%206.1-2.7%206.1-6.1S9.3-.1%206-.1z'%20fill='%23555'/%3e%3cpath%20d='M6%209V6v3m-1%201h2V5H5v5zm2-8H5v2h2z'%20class='st1'%20fill='%23555'/%3e%3c/svg%3e";var Or=Object.defineProperty,Cr=Object.getOwnPropertyDescriptor,mn=(i,e,t,n)=>{for(var s=n>1?void 0:n?Cr(e,t):e,o=i.length-1,r;o>=0;o--)(r=i[o])&&(s=(n?r(e,t,s):r(s))||s);return n&&s&&Or(e,t,s),s},_e;const He=(_e=class extends pe{static parseLevel(i){if(i){const e=Object.keys(yt).find(t=>t.toLowerCase()===i.toLowerCase());return e&&yt[e]}}static get styles(){return[$i`
137
137
  ${pn(Er)}
138
- `]}render(){return re`${this.iconToUse&&re`<img class="icon" src="${this.iconToUse}">`}${this.message}`}get iconToUse(){return this.icon||this._defaultIconPath}shouldUpdate(i){return i.has("level")&&(this._defaultIconPath=this.iconForLevel,!this.icon)?!0:super.shouldUpdate(i)}get iconForLevel(){switch(_e.parseLevel(this.level)){case"warn":return Ar;case"suggest":return Sr;case"error":return $r;default:return null}}},_e.ID="sd-field-validation-message",_e.levelConverter={fromAttribute(i){return _e.parseLevel(i)},toAttribute(i){return i&&i.toLowerCase()}},_e);mn([le({type:String,attribute:!0})],He.prototype,"message",2);mn([le({type:String,attribute:!0})],He.prototype,"icon",2);mn([le({converter:He.levelConverter,reflect:!0})],He.prototype,"level",2);let Ht=He;var vt=(i=>(i.Warn="warn",i.Suggest="suggest",i.Error="error",i))(vt||{});customElements.get(Ht.ID)||customElements.define(Ht.ID,Ht);const kr=':host{--component-stage-border-color: var(--color-base-grey-400, #cccccc);--component-stage-border-focus-color: var(--color-base-black, black);--component-stage-border-highlight-color: var(--color-base-white, white);--component-stage-inactive-color: var(--color-base-white, white);--component-stage-active-color: var(--color-base-green-200, #deedbc);--component-stage-selected-color: var(--color-base-green-400, #bedb79);--component-stage-hover-color: var(--color-base-green-300, #cee49c);--component-stage-focus-color: var(--color-base-green-300, #cee49c);--component-stage-font-color: var(--color-base-grey-900, #555555);--component-stage-font-inactive-color: var(--color-base-grey-900, #555555);--component-stage-font-selected-color: var(--color-base-grey-900, #555555);--component-stage-font-hover-color: var(--color-base-grey-900, #555555);--component-stage-font-focus-color: var(--color-base-grey-900, #555555);--component-stage-font-size: var(--size-font-medium, 13px);--component-stage-font-family: var(--font-family-base, "Segoe UI", Tahoma, Geneva, Verdana, sans-serif);--component-stage-transition-time: var(--time-transition-short, 275ms);display:flex;flex-direction:column;width:100%;margin:0;box-sizing:border-box;font-size:var(--component-stage-font-size);font-family:var(--component-stage-font-family);color:var(--component-stage-font-color)}@media (prefers-reduced-motion){:host{--component-stage-transition-time: 1ms}}:host *{box-sizing:border-box}:host *:before,:host *:after{box-sizing:border-box}:host .sections{width:100%;overflow:hidden;display:flex;-webkit-user-select:none;user-select:none}:host .sections .section:first-child{margin-left:0}:host .sections .section:first-child .content{padding-left:0}:host .section{display:flex;flex:1 1 80px;box-sizing:border-box;height:48px;cursor:pointer;overflow:visible;position:relative}:host .section.placeholder{flex:0 0 48px}:host .section.placeholder .index{display:none}:host .section.placeholder .content .label{top:18px;padding:0 16px}:host .section .content{height:100%;flex:1 1 0;overflow:hidden;transition:background-color var(--component-stage-transition-time) ease-in,color var(--component-stage-transition-time) ease-in}:host .section .content .label{position:absolute;top:25px;min-width:28px;width:100%;padding:0 8px 0 16px;text-align:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:host .section .content .index{position:absolute;bottom:25px;width:100%;padding:0 8px 0 16px;text-align:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:host .section .arrow{flex:0 0 auto;position:absolute;right:0;top:0;z-index:1;box-sizing:border-box;height:48px;width:48px;margin-right:-24px;transform-origin:center center;border:3px solid var(--component-stage-border-highlight-color);border-left:0px;border-bottom:0px;transform:scaleX(.5) scale(.707) rotate(45deg);transition:background-color var(--component-stage-transition-time) ease-in}:host .section:last-of-type .arrow{display:none}:host .section:last-of-type .content{margin-right:0}:host .section.inactive:last-of-type .content{border-right:1px solid var(--component-stage-border-color)}:host .section.inactive:first-child .content{border-left:1px solid var(--component-stage-border-color)}:host .section.inactive .arrow{border-color:var(--component-stage-border-color)}:host .section.inactive .content{color:var(--component-stage-font-inactive-color);background:var(--component-stage-inactive-color);border-top:1px solid var(--component-stage-border-color);border-bottom:1px solid var(--component-stage-border-color)}:host .section.inactive .content,:host .section.inactive .arrow{background:var(--component-stage-inactive-color)}:host .section.active .content,:host .section.active .arrow{color:var(--component-stage-font-color);background:var(--component-stage-active-color)}:host .section.selected .content,:host .section.selected .arrow{color:var(--component-stage-font-selected-color);background:var(--component-stage-selected-color)}:host .hidden{flex:0 1 0px;margin:0;overflow:hidden}:host ::slotted(*){display:none}:host(.readonly) .section{cursor:default}:host(:focus){outline:none}@media (hover: hover){:host(:not(.readonly)) .section:hover .content,:host(:not(.readonly)) .section:hover .arrow{color:var(--component-stage-font-hover-color);background:var(--component-stage-hover-color)}}:host(:not(.readonly)) .section.focused:focus-visible{outline:none}:host(:not(.readonly)) .section.focused:focus-visible .content{border-top:1px solid var(--component-stage-border-focus-color);border-bottom:1px solid var(--component-stage-border-focus-color)}:host(:not(.readonly)) .section.focused:focus-visible .content,:host(:not(.readonly)) .section.focused:focus-visible .arrow{color:var(--component-stage-font-focus-color);background:var(--component-stage-focus-color)}';var Rr=Object.defineProperty,Mr=Object.getOwnPropertyDescriptor,Je=(i,e,t,n)=>{for(var s=n>1?void 0:n?Mr(e,t):e,o=i.length-1,r;o>=0;o--)(r=i[o])&&(s=(n?r(e,t,s):r(s))||s);return n&&s&&Rr(e,t,s),s};function Xn(i){return i.label!=null&&i.id!=null}var X;const Me=(X=class extends pe{constructor(){super(...arguments),this._isSpaceOrEnterKeyDown=!1,this._focusIndex=-1,this._focusOutSuspended=!1}static get styles(){return[$i`
138
+ `]}render(){return re`${this.iconToUse&&re`<img class="icon" src="${this.iconToUse}">`}${this.message}`}get iconToUse(){return this.icon||this._defaultIconPath}shouldUpdate(i){return i.has("level")&&(this._defaultIconPath=this.iconForLevel,!this.icon)?!0:super.shouldUpdate(i)}get iconForLevel(){switch(_e.parseLevel(this.level)){case"warn":return Ar;case"suggest":return Sr;case"error":return $r;default:return null}}},_e.ID="sd-field-validation-message",_e.levelConverter={fromAttribute(i){return _e.parseLevel(i)},toAttribute(i){return i&&i.toLowerCase()}},_e);mn([le({type:String,attribute:!0})],He.prototype,"message",2);mn([le({type:String,attribute:!0})],He.prototype,"icon",2);mn([le({converter:He.levelConverter,reflect:!0})],He.prototype,"level",2);let Ht=He;var yt=(i=>(i.Warn="warn",i.Suggest="suggest",i.Error="error",i))(yt||{});customElements.get(Ht.ID)||customElements.define(Ht.ID,Ht);const kr=':host{--component-stage-border-color: var(--color-base-grey-400, #cccccc);--component-stage-border-focus-color: var(--color-base-black, black);--component-stage-border-highlight-color: var(--color-base-white, white);--component-stage-inactive-color: var(--color-base-white, white);--component-stage-active-color: var(--color-base-green-200, #deedbc);--component-stage-selected-color: var(--color-base-green-400, #bedb79);--component-stage-hover-color: var(--color-base-green-300, #cee49c);--component-stage-focus-color: var(--color-base-green-300, #cee49c);--component-stage-font-color: var(--color-base-grey-900, #555555);--component-stage-font-inactive-color: var(--color-base-grey-900, #555555);--component-stage-font-selected-color: var(--color-base-grey-900, #555555);--component-stage-font-hover-color: var(--color-base-grey-900, #555555);--component-stage-font-focus-color: var(--color-base-grey-900, #555555);--component-stage-font-size: var(--size-font-medium, 13px);--component-stage-font-family: var(--font-family-base, "Segoe UI", Tahoma, Geneva, Verdana, sans-serif);--component-stage-transition-time: var(--time-transition-short, 275ms);display:flex;flex-direction:column;width:100%;margin:0;box-sizing:border-box;font-size:var(--component-stage-font-size);font-family:var(--component-stage-font-family);color:var(--component-stage-font-color)}@media (prefers-reduced-motion){:host{--component-stage-transition-time: 1ms}}:host *{box-sizing:border-box}:host *:before,:host *:after{box-sizing:border-box}:host .sections{width:100%;overflow:hidden;display:flex;-webkit-user-select:none;user-select:none}:host .sections .section:first-child{margin-left:0}:host .sections .section:first-child .content{padding-left:0}:host .section{display:flex;flex:1 1 80px;box-sizing:border-box;height:48px;cursor:pointer;overflow:visible;position:relative}:host .section.placeholder{flex:0 0 48px}:host .section.placeholder .index{display:none}:host .section.placeholder .content .label{top:18px;padding:0 16px}:host .section .content{height:100%;flex:1 1 0;overflow:hidden;transition:background-color var(--component-stage-transition-time) ease-in,color var(--component-stage-transition-time) ease-in}:host .section .content .label{position:absolute;top:25px;min-width:28px;width:100%;padding:0 8px 0 16px;text-align:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:host .section .content .index{position:absolute;bottom:25px;width:100%;padding:0 8px 0 16px;text-align:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:host .section .arrow{flex:0 0 auto;position:absolute;right:0;top:0;z-index:1;box-sizing:border-box;height:48px;width:48px;margin-right:-24px;transform-origin:center center;border:3px solid var(--component-stage-border-highlight-color);border-left:0px;border-bottom:0px;transform:scaleX(.5) scale(.707) rotate(45deg);transition:background-color var(--component-stage-transition-time) ease-in}:host .section:last-of-type .arrow{display:none}:host .section:last-of-type .content{margin-right:0}:host .section.inactive:last-of-type .content{border-right:1px solid var(--component-stage-border-color)}:host .section.inactive:first-child .content{border-left:1px solid var(--component-stage-border-color)}:host .section.inactive .arrow{border-color:var(--component-stage-border-color)}:host .section.inactive .content{color:var(--component-stage-font-inactive-color);background:var(--component-stage-inactive-color);border-top:1px solid var(--component-stage-border-color);border-bottom:1px solid var(--component-stage-border-color)}:host .section.inactive .content,:host .section.inactive .arrow{background:var(--component-stage-inactive-color)}:host .section.active .content,:host .section.active .arrow{color:var(--component-stage-font-color);background:var(--component-stage-active-color)}:host .section.selected .content,:host .section.selected .arrow{color:var(--component-stage-font-selected-color);background:var(--component-stage-selected-color)}:host .hidden{flex:0 1 0px;margin:0;overflow:hidden}:host ::slotted(*){display:none}:host(.readonly) .section{cursor:default}:host(:focus){outline:none}@media (hover: hover){:host(:not(.readonly)) .section:hover .content,:host(:not(.readonly)) .section:hover .arrow{color:var(--component-stage-font-hover-color);background:var(--component-stage-hover-color)}}:host(:not(.readonly)) .section.focused:focus-visible{outline:none}:host(:not(.readonly)) .section.focused:focus-visible .content{border-top:1px solid var(--component-stage-border-focus-color);border-bottom:1px solid var(--component-stage-border-focus-color)}:host(:not(.readonly)) .section.focused:focus-visible .content,:host(:not(.readonly)) .section.focused:focus-visible .arrow{color:var(--component-stage-font-focus-color);background:var(--component-stage-focus-color)}';var Rr=Object.defineProperty,Mr=Object.getOwnPropertyDescriptor,Je=(i,e,t,n)=>{for(var s=n>1?void 0:n?Mr(e,t):e,o=i.length-1,r;o>=0;o--)(r=i[o])&&(s=(n?r(e,t,s):r(s))||s);return n&&s&&Rr(e,t,s),s};function Xn(i){return i.label!=null&&i.id!=null}var X;const Me=(X=class extends pe{constructor(){super(...arguments),this._isSpaceOrEnterKeyDown=!1,this._focusIndex=-1,this._focusOutSuspended=!1}static get styles(){return[$i`
139
139
  ${pn(kr)}
140
140
  `]}get value(){return this._value}set value(e){this._value!==e&&(this._value=e,this._focusIndex=this.getIndexOfSelection(this.value),this.requestUpdate())}get readonly(){return this._readonly}set readonly(e){this._readonly=e,this.classList.remove("readonly"),this._readonly&&this.classList.add("readonly"),this.requestUpdate("readonly")}get possibleValues(){return this._possibleValues}set possibleValues(e){this._possibleValues=e,this.requestUpdate()}connectedCallback(){super.connectedCallback(),this._resizeObserver=new ResizeObserver(this.requestUpdate.bind(this)),this._resizeObserver.observe(this)}focusSibling(e){this.updateFocusIndex(this._focusIndex+e)}updateFocusIndex(e){(this.possibleValues||[]).length!=0&&(this._focusIndex=Math.min(Math.max(0,e),this.possibleValues.length-1),this._focusOutSuspended=!0,this.requestUpdate(),this.updateComplete.then(()=>{var t;this._focusOutSuspended=!1,(t=this.shadowRoot.querySelector(".focused"))==null||t.focus()}))}getIndexOfSelection(e){return(this.possibleValues||[]).length==0?-1:this.possibleValues.map(n=>Xn(n)?n.id:n).indexOf(e)}disconnectedCallback(){super.disconnectedCallback(),this._resizeObserver&&(this._resizeObserver.disconnect(),this._resizeObserver=null)}firstUpdated(e){super.firstUpdated(e),this.updatePossibleValuesFromOptionElements(),this.addEventListener("keydown",t=>{t.key=="ArrowLeft"||t.key=="ArrowUp"?(this.focusSibling(-1),t.preventDefault()):t.key=="ArrowRight"||t.key=="ArrowDown"?(this.focusSibling(1),t.preventDefault()):t.key=="PageUp"?(this.focusSibling(-this._renderedItems.length),t.preventDefault()):t.key=="PageDown"&&(this.focusSibling(this._renderedItems.length),t.preventDefault())}),this.addEventListener("focusout",()=>{this._focusOutSuspended||(this._focusIndex=this.getIndexOfSelection(this.value),this.requestUpdate())}),this._focusIndex=this.getIndexOfSelection(this.value)}render(){var Y;let e=this.offsetWidth;const t=re`<slot @slotchange=${this.updatePossibleValuesFromOptionElements}></slot>`,n=re`<sd-field-validation-message
141
141
  class="validation-message"
@@ -143,7 +143,7 @@ appendExample(
143
143
  .icon=${this.validationIconSrc}
144
144
  .level=${this.validationLevel}
145
145
  >
146
- </sd-field-validation-message>`,s=re`${t}${n}`;if((this._possibleValues||[]).length===0)return s;const o=this._possibleValues.map((g,N)=>Xn(g)?{...g,index:N}:{id:g,label:String(g),index:N}),r={label:"...",id:"placeholder1",index:-2,firstHiddenIndex:0},l={label:"...",id:"placeholder2",index:o.length,firstHiddenIndex:o.length},a=80,c=48;let u=[],f=[];if(e/a>=o.length||o.length<=2)f=[...o],u=[...o];else{const g=()=>Math.max(1,Math.floor(e/a)),N=()=>{e=this.offsetWidth},P=se=>{const h=Math.max(0,se);let m=0,x,S,A,I,V,ce,T;do V=A,ce=I,m=g(),A=Math.max(0,Math.min(Math.ceil(h-m/2),o.length-m)),I=A+m,T=!1,A>0&&!x&&(e-=c,x=!0,T=!0),!T&&I<o.length&&!S&&(e-=c,S=!0,T=!0);while(T||V!=A||ce!=I);return{start:A,end:I}};let{start:q,end:F}=P(this._focusIndex);if(this._focusIndex>-1&&F-q>=2&&F<=this._focusIndex+1&&F<o.length){N();const se=P(this._focusIndex+1);q=se.start,F=se.end}const ee=o.slice(q,F),xe=q>0?[r]:[],G=F<o.length?[l]:[];l.firstHiddenIndex=F,f=[...xe,...ee,...G],u=[...xe,...o,...G]}const v=this._value?(Y=u.find(g=>g.id===this._value))==null?void 0:Y.index:-1,w=g=>g==r||g==l,$=g=>g.index==this._focusIndex,b=g=>!w(g)&&v!=null&&g.index===v,D=g=>w(g)?g.firstHiddenIndex<=v:g.index<v,B=g=>{const N=f.indexOf(g)==-1;let P="section";return v!=null?b(g)?P+=" selected":D(g)?P+=" active":P+=" inactive":P+=" inactive",w(g)&&(P+=" placeholder"),$(g)&&(P+=" focused"),N&&(P+=" hidden"),P};this._renderedItems=f.filter(g=>!w(g));const Q=g=>{const N=()=>{if(w(g)){g.index<0?this.focusSibling(-this._renderedItems.length):this.focusSibling(this._renderedItems.length);return}this._readonly||(this.value=g.id,this.fireValueChange())},P=u.indexOf(g),F=f.indexOf(g)==-1?-1:u.length-P;return re`
146
+ </sd-field-validation-message>`,s=re`${t}${n}`;if((this._possibleValues||[]).length===0)return s;const o=this._possibleValues.map((g,N)=>Xn(g)?{...g,index:N}:{id:g,label:String(g),index:N}),r={label:"...",id:"placeholder1",index:-2,firstHiddenIndex:0},l={label:"...",id:"placeholder2",index:o.length,firstHiddenIndex:o.length},a=80,c=48;let u=[],f=[];if(e/a>=o.length||o.length<=2)f=[...o],u=[...o];else{const g=()=>Math.max(1,Math.floor(e/a)),N=()=>{e=this.offsetWidth},P=se=>{const h=Math.max(0,se);let m=0,x,S,A,I,V,ce,T;do V=A,ce=I,m=g(),A=Math.max(0,Math.min(Math.ceil(h-m/2),o.length-m)),I=A+m,T=!1,A>0&&!x&&(e-=c,x=!0,T=!0),!T&&I<o.length&&!S&&(e-=c,S=!0,T=!0);while(T||V!=A||ce!=I);return{start:A,end:I}};let{start:q,end:F}=P(this._focusIndex);if(this._focusIndex>-1&&F-q>=2&&F<=this._focusIndex+1&&F<o.length){N();const se=P(this._focusIndex+1);q=se.start,F=se.end}const ee=o.slice(q,F),xe=q>0?[r]:[],G=F<o.length?[l]:[];l.firstHiddenIndex=F,f=[...xe,...ee,...G],u=[...xe,...o,...G]}const y=this._value?(Y=u.find(g=>g.id===this._value))==null?void 0:Y.index:-1,w=g=>g==r||g==l,$=g=>g.index==this._focusIndex,b=g=>!w(g)&&y!=null&&g.index===y,D=g=>w(g)?g.firstHiddenIndex<=y:g.index<y,B=g=>{const N=f.indexOf(g)==-1;let P="section";return y!=null?b(g)?P+=" selected":D(g)?P+=" active":P+=" inactive":P+=" inactive",w(g)&&(P+=" placeholder"),$(g)&&(P+=" focused"),N&&(P+=" hidden"),P};this._renderedItems=f.filter(g=>!w(g));const Q=g=>{const N=()=>{if(w(g)){g.index<0?this.focusSibling(-this._renderedItems.length):this.focusSibling(this._renderedItems.length);return}this._readonly||(this.value=g.id,this.fireValueChange())},P=u.indexOf(g),F=f.indexOf(g)==-1?-1:u.length-P;return re`
147
147
  <div
148
148
  role="option"
149
149
  style="z-index: ${F}"
@@ -162,7 +162,7 @@ appendExample(
162
162
  </div>
163
163
  <div class="arrow"></div>
164
164
  </div>
165
- `},U=u.find(g=>g.index==v),H=u.find(g=>g.index==this._focusIndex),ae=re`<div
165
+ `},U=u.find(g=>g.index==y),H=u.find(g=>g.index==this._focusIndex),ae=re`<div
166
166
  class="sections"
167
167
  role="listbox"
168
168
  aria-activedescendant="${Ie(H!=null&&H.index?"stage-option-"+H.index:void 0)}"
@@ -171,12 +171,12 @@ appendExample(
171
171
  ?aria-readonly="${this._readonly}"
172
172
  >
173
173
  ${_r(u,g=>g.id,g=>Q(g))}
174
- </div>`;return re`${ae}${s}`}onKeyDown(e){this.isSpaceOrEnter(e)&&(this._isSpaceOrEnterKeyDown=!0,e.preventDefault())}onKeyUp(e,t){this.isSpaceOrEnter(e)&&this._isSpaceOrEnterKeyDown==!0&&(this._isSpaceOrEnterKeyDown=!1,t())}updatePossibleValuesFromOptionElements(){const e=Array.prototype.map.call(this.querySelectorAll("option"),t=>t);this.possibleValues=e.length>0?e.map(t=>({id:t.value,label:t.innerText})):this.possibleValues}isSpaceOrEnter(e){switch(e.key){case" ":case"Space":case"Enter":return!0;default:return!1}}fireValueChange(){this.dispatchEvent(new CustomEvent("value-change",{detail:{value:this.value}}))}},X.ID="sd-stage",X.ensureDefined=()=>{customElements.get(X.ID)||customElements.define(X.ID,X)},X.shadowRootOptions={...pe.shadowRootOptions,delegatesFocus:!0},X);Je([le({type:String})],Me.prototype,"validationMessage",2);Je([le({type:String})],Me.prototype,"validationIconSrc",2);Je([le({type:vt,reflect:!0})],Me.prototype,"validationLevel",2);Je([le({reflect:!0,attribute:!0,converter:{fromAttribute:i=>i,toAttribute:i=>i}})],Me.prototype,"value",1);Je([le({type:Boolean,attribute:!0,reflect:!0})],Me.prototype,"readonly",1);let Nr=Me;Nr.ensureDefined();function Li(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}function Pr(i){if(i.__esModule)return i;var e=i.default;if(typeof e=="function"){var t=function n(){return this instanceof n?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};t.prototype=e.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(i).forEach(function(n){var s=Object.getOwnPropertyDescriptor(i,n);Object.defineProperty(t,n,s.get?s:{enumerable:!0,get:function(){return i[n]}})}),t}var bn={exports:{}},R=String,ji=function(){return{isColorSupported:!1,reset:R,bold:R,dim:R,italic:R,underline:R,inverse:R,hidden:R,strikethrough:R,black:R,red:R,green:R,yellow:R,blue:R,magenta:R,cyan:R,white:R,gray:R,bgBlack:R,bgRed:R,bgGreen:R,bgYellow:R,bgBlue:R,bgMagenta:R,bgCyan:R,bgWhite:R}};bn.exports=ji();bn.exports.createColors=ji;var Ir=bn.exports;const Tr={},Lr=Object.freeze(Object.defineProperty({__proto__:null,default:Tr},Symbol.toStringTag,{value:"Module"})),W=Pr(Lr);let Qn=Ir,Yn=W,Jt=class Ui extends Error{constructor(e,t,n,s,o,r){super(e),this.name="CssSyntaxError",this.reason=e,o&&(this.file=o),s&&(this.source=s),r&&(this.plugin=r),typeof t<"u"&&typeof n<"u"&&(typeof t=="number"?(this.line=t,this.column=n):(this.line=t.line,this.column=t.column,this.endLine=n.line,this.endColumn=n.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,Ui)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(e){if(!this.source)return"";let t=this.source;e==null&&(e=Qn.isColorSupported),Yn&&e&&(t=Yn(t));let n=t.split(/\r?\n/),s=Math.max(this.line-3,0),o=Math.min(this.line+2,n.length),r=String(o).length,l,a;if(e){let{bold:c,gray:u,red:f}=Qn.createColors(!0);l=d=>c(f(d)),a=d=>u(d)}else l=a=c=>c;return n.slice(s,o).map((c,u)=>{let f=s+1+u,d=" "+(" "+f).slice(-r)+" | ";if(f===this.line){let v=a(d.replace(/\d/g," "))+c.slice(0,this.column-1).replace(/[^\t]/g," ");return l(">")+a(d)+c+`
175
- `+v+l("^")}return" "+a(d)+c}).join(`
174
+ </div>`;return re`${ae}${s}`}onKeyDown(e){this.isSpaceOrEnter(e)&&(this._isSpaceOrEnterKeyDown=!0,e.preventDefault())}onKeyUp(e,t){this.isSpaceOrEnter(e)&&this._isSpaceOrEnterKeyDown==!0&&(this._isSpaceOrEnterKeyDown=!1,t())}updatePossibleValuesFromOptionElements(){const e=Array.prototype.map.call(this.querySelectorAll("option"),t=>t);this.possibleValues=e.length>0?e.map(t=>({id:t.value,label:t.innerText})):this.possibleValues}isSpaceOrEnter(e){switch(e.key){case" ":case"Space":case"Enter":return!0;default:return!1}}fireValueChange(){this.dispatchEvent(new CustomEvent("value-change",{detail:{value:this.value}}))}},X.ID="sd-stage",X.ensureDefined=()=>{customElements.get(X.ID)||customElements.define(X.ID,X)},X.shadowRootOptions={...pe.shadowRootOptions,delegatesFocus:!0},X);Je([le({type:String})],Me.prototype,"validationMessage",2);Je([le({type:String})],Me.prototype,"validationIconSrc",2);Je([le({type:yt,reflect:!0})],Me.prototype,"validationLevel",2);Je([le({reflect:!0,attribute:!0,converter:{fromAttribute:i=>i,toAttribute:i=>i}})],Me.prototype,"value",1);Je([le({type:Boolean,attribute:!0,reflect:!0})],Me.prototype,"readonly",1);let Nr=Me;Nr.ensureDefined();function Li(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}function Pr(i){if(i.__esModule)return i;var e=i.default;if(typeof e=="function"){var t=function n(){return this instanceof n?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};t.prototype=e.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(i).forEach(function(n){var s=Object.getOwnPropertyDescriptor(i,n);Object.defineProperty(t,n,s.get?s:{enumerable:!0,get:function(){return i[n]}})}),t}var bn={exports:{}},R=String,ji=function(){return{isColorSupported:!1,reset:R,bold:R,dim:R,italic:R,underline:R,inverse:R,hidden:R,strikethrough:R,black:R,red:R,green:R,yellow:R,blue:R,magenta:R,cyan:R,white:R,gray:R,bgBlack:R,bgRed:R,bgGreen:R,bgYellow:R,bgBlue:R,bgMagenta:R,bgCyan:R,bgWhite:R}};bn.exports=ji();bn.exports.createColors=ji;var Ir=bn.exports;const Tr={},Lr=Object.freeze(Object.defineProperty({__proto__:null,default:Tr},Symbol.toStringTag,{value:"Module"})),W=Pr(Lr);let Qn=Ir,Yn=W,Jt=class Ui extends Error{constructor(e,t,n,s,o,r){super(e),this.name="CssSyntaxError",this.reason=e,o&&(this.file=o),s&&(this.source=s),r&&(this.plugin=r),typeof t<"u"&&typeof n<"u"&&(typeof t=="number"?(this.line=t,this.column=n):(this.line=t.line,this.column=t.column,this.endLine=n.line,this.endColumn=n.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,Ui)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(e){if(!this.source)return"";let t=this.source;e==null&&(e=Qn.isColorSupported),Yn&&e&&(t=Yn(t));let n=t.split(/\r?\n/),s=Math.max(this.line-3,0),o=Math.min(this.line+2,n.length),r=String(o).length,l,a;if(e){let{bold:c,gray:u,red:f}=Qn.createColors(!0);l=d=>c(f(d)),a=d=>u(d)}else l=a=c=>c;return n.slice(s,o).map((c,u)=>{let f=s+1+u,d=" "+(" "+f).slice(-r)+" | ";if(f===this.line){let y=a(d.replace(/\d/g," "))+c.slice(0,this.column-1).replace(/[^\t]/g," ");return l(">")+a(d)+c+`
175
+ `+y+l("^")}return" "+a(d)+c}).join(`
176
176
  `)}toString(){let e=this.showSourceCode();return e&&(e=`
177
177
 
178
178
  `+e+`
179
- `),this.name+": "+this.message+e}};var vn=Jt;Jt.default=Jt;var Xe={};Xe.isClean=Symbol("isClean");Xe.my=Symbol("my");const ei={after:`
179
+ `),this.name+": "+this.message+e}};var yn=Jt;Jt.default=Jt;var Xe={};Xe.isClean=Symbol("isClean");Xe.my=Symbol("my");const ei={after:`
180
180
  `,beforeClose:`
181
181
  `,beforeComment:`
182
182
  `,beforeDecl:`
@@ -187,17 +187,17 @@ appendExample(
187
187
  `)&&(n=n.replace(/[^\n]+$/,"")),!1}),typeof n>"u"?n=this.raw(t,null,"beforeDecl"):n&&(n=n.replace(/\S/g,"")),n}rawBeforeDecl(e,t){let n;return e.walkDecls(s=>{if(typeof s.raws.before<"u")return n=s.raws.before,n.includes(`
188
188
  `)&&(n=n.replace(/[^\n]+$/,"")),!1}),typeof n>"u"?n=this.raw(t,null,"beforeRule"):n&&(n=n.replace(/\S/g,"")),n}rawBeforeOpen(e){let t;return e.walk(n=>{if(n.type!=="decl"&&(t=n.raws.between,typeof t<"u"))return!1}),t}rawBeforeRule(e){let t;return e.walk(n=>{if(n.nodes&&(n.parent!==e||e.first!==n)&&typeof n.raws.before<"u")return t=n.raws.before,t.includes(`
189
189
  `)&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t}rawColon(e){let t;return e.walkDecls(n=>{if(typeof n.raws.between<"u")return t=n.raws.between.replace(/[^\s:]/g,""),!1}),t}rawEmptyBody(e){let t;return e.walk(n=>{if(n.nodes&&n.nodes.length===0&&(t=n.raws.after,typeof t<"u"))return!1}),t}rawIndent(e){if(e.raws.indent)return e.raws.indent;let t;return e.walk(n=>{let s=n.parent;if(s&&s!==e&&s.parent&&s.parent===e&&typeof n.raws.before<"u"){let o=n.raws.before.split(`
190
- `);return t=o[o.length-1],t=t.replace(/\S/g,""),!1}}),t}rawSemicolon(e){let t;return e.walk(n=>{if(n.nodes&&n.nodes.length&&n.last.type==="decl"&&(t=n.raws.semicolon,typeof t<"u"))return!1}),t}rawValue(e,t){let n=e[t],s=e.raws[t];return s&&s.value===n?s.raw:n}root(e){this.body(e),e.raws.after&&this.builder(e.raws.after)}rule(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")}stringify(e,t){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)}};var zi=Xt;Xt.default=Xt;let Ur=zi;function Qt(i,e){new Ur(e).stringify(i)}var St=Qt;Qt.default=Qt;let{isClean:tt,my:zr}=Xe,Dr=vn,Br=zi,Hr=St;function Yt(i,e){let t=new i.constructor;for(let n in i){if(!Object.prototype.hasOwnProperty.call(i,n)||n==="proxyCache")continue;let s=i[n],o=typeof s;n==="parent"&&o==="object"?e&&(t[n]=e):n==="source"?t[n]=s:Array.isArray(s)?t[n]=s.map(r=>Yt(r,t)):(o==="object"&&s!==null&&(s=Yt(s)),t[n]=s)}return t}let en=class{constructor(e={}){this.raws={},this[tt]=!1,this[zr]=!0;for(let t in e)if(t==="nodes"){this.nodes=[];for(let n of e[t])typeof n.clone=="function"?this.append(n.clone()):this.append(n)}else this[t]=e[t]}addToError(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){let t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,`$&${t.input.from}:${t.start.line}:${t.start.column}$&`)}return e}after(e){return this.parent.insertAfter(this,e),this}assign(e={}){for(let t in e)this[t]=e[t];return this}before(e){return this.parent.insertBefore(this,e),this}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}clone(e={}){let t=Yt(this);for(let n in e)t[n]=e[n];return t}cloneAfter(e={}){let t=this.clone(e);return this.parent.insertAfter(this,t),t}cloneBefore(e={}){let t=this.clone(e);return this.parent.insertBefore(this,t),t}error(e,t={}){if(this.source){let{end:n,start:s}=this.rangeBy(t);return this.source.input.error(e,{column:s.column,line:s.line},{column:n.column,line:n.line},t)}return new Dr(e)}getProxyProcessor(){return{get(e,t){return t==="proxyOf"?e:t==="root"?()=>e.root().toProxy():e[t]},set(e,t,n){return e[t]===n||(e[t]=n,(t==="prop"||t==="value"||t==="name"||t==="params"||t==="important"||t==="text")&&e.markDirty()),!0}}}markDirty(){if(this[tt]){this[tt]=!1;let e=this;for(;e=e.parent;)e[tt]=!1}}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e,t){let n=this.source.start;if(e.index)n=this.positionInside(e.index,t);else if(e.word){t=this.toString();let s=t.indexOf(e.word);s!==-1&&(n=this.positionInside(s,t))}return n}positionInside(e,t){let n=t||this.toString(),s=this.source.start.column,o=this.source.start.line;for(let r=0;r<e;r++)n[r]===`
191
- `?(s=1,o+=1):s+=1;return{column:s,line:o}}prev(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e-1]}rangeBy(e){let t={column:this.source.start.column,line:this.source.start.line},n=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:t.column+1,line:t.line};if(e.word){let s=this.toString(),o=s.indexOf(e.word);o!==-1&&(t=this.positionInside(o,s),n=this.positionInside(o+e.word.length,s))}else e.start?t={column:e.start.column,line:e.start.line}:e.index&&(t=this.positionInside(e.index)),e.end?n={column:e.end.column,line:e.end.line}:e.endIndex?n=this.positionInside(e.endIndex):e.index&&(n=this.positionInside(e.index+1));return(n.line<t.line||n.line===t.line&&n.column<=t.column)&&(n={column:t.column+1,line:t.line}),{end:n,start:t}}raw(e,t){return new Br().raw(this,e,t)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...e){if(this.parent){let t=this,n=!1;for(let s of e)s===this?n=!0:n?(this.parent.insertAfter(t,s),t=s):this.parent.insertBefore(t,s);n||this.remove()}return this}root(){let e=this;for(;e.parent&&e.parent.type!=="document";)e=e.parent;return e}toJSON(e,t){let n={},s=t==null;t=t||new Map;let o=0;for(let r in this){if(!Object.prototype.hasOwnProperty.call(this,r)||r==="parent"||r==="proxyCache")continue;let l=this[r];if(Array.isArray(l))n[r]=l.map(a=>typeof a=="object"&&a.toJSON?a.toJSON(null,t):a);else if(typeof l=="object"&&l.toJSON)n[r]=l.toJSON(null,t);else if(r==="source"){let a=t.get(l.input);a==null&&(a=o,t.set(l.input,o),o++),n[r]={end:l.end,inputId:a,start:l.start}}else n[r]=l}return s&&(n.inputs=[...t.keys()].map(r=>r.toJSON())),n}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(e=Hr){e.stringify&&(e=e.stringify);let t="";return e(this,n=>{t+=n}),t}warn(e,t,n){let s={node:this};for(let o in n)s[o]=n[o];return e.warn(t,s)}get proxyOf(){return this}};var At=en;en.default=en;let Fr=At,tn=class extends Fr{constructor(e){e&&typeof e.value<"u"&&typeof e.value!="string"&&(e={...e,value:String(e.value)}),super(e),this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}};var Ot=tn;tn.default=tn;let Vr="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",Wr=(i,e=21)=>(t=e)=>{let n="",s=t;for(;s--;)n+=i[Math.random()*i.length|0];return n},qr=(i=21)=>{let e="",t=i;for(;t--;)e+=Vr[Math.random()*64|0];return e};var Gr={nanoid:qr,customAlphabet:Wr};let{SourceMapConsumer:ti,SourceMapGenerator:ni}=W,{existsSync:Kr,readFileSync:Zr}=W,{dirname:Ft,join:Jr}=W;function Xr(i){return Buffer?Buffer.from(i,"base64").toString():window.atob(i)}let nn=class{constructor(e,t){if(t.map===!1)return;this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");let n=t.map?t.map.prev:void 0,s=this.loadMap(t.from,n);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=Ft(this.mapFile)),s&&(this.text=s)}consumer(){return this.consumerCache||(this.consumerCache=new ti(this.text)),this.consumerCache}decodeInline(e){let t=/^data:application\/json;charset=utf-?8;base64,/,n=/^data:application\/json;base64,/,s=/^data:application\/json;charset=utf-?8,/,o=/^data:application\/json,/;if(s.test(e)||o.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(t.test(e)||n.test(e))return Xr(e.substr(RegExp.lastMatch.length));let r=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+r)}getAnnotationURL(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(e){return typeof e!="object"?!1:typeof e.mappings=="string"||typeof e._mappings=="string"||Array.isArray(e.sections)}loadAnnotation(e){let t=e.match(/\/\*\s*# sourceMappingURL=/gm);if(!t)return;let n=e.lastIndexOf(t.pop()),s=e.indexOf("*/",n);n>-1&&s>-1&&(this.annotation=this.getAnnotationURL(e.substring(n,s)))}loadFile(e){if(this.root=Ft(e),Kr(e))return this.mapFile=e,Zr(e,"utf-8").toString().trim()}loadMap(e,t){if(t===!1)return!1;if(t){if(typeof t=="string")return t;if(typeof t=="function"){let n=t(e);if(n){let s=this.loadFile(n);if(!s)throw new Error("Unable to load previous source map: "+n.toString());return s}}else{if(t instanceof ti)return ni.fromSourceMap(t).toString();if(t instanceof ni)return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let n=this.annotation;return e&&(n=Jr(Ft(e),n)),this.loadFile(n)}}}startWith(e,t){return e?e.substr(0,t.length)===t:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}};var Di=nn;nn.default=nn;let{SourceMapConsumer:Qr,SourceMapGenerator:Yr}=W,{fileURLToPath:ii,pathToFileURL:nt}=W,{isAbsolute:sn,resolve:rn}=W,{nanoid:eo}=Gr,Vt=W,si=vn,to=Di,Wt=Symbol("fromOffsetCache"),no=!!(Qr&&Yr),ri=!!(rn&&sn),yt=class{constructor(e,t={}){if(e===null||typeof e>"u"||typeof e=="object"&&!e.toString)throw new Error(`PostCSS received ${e} instead of CSS string`);if(this.css=e.toString(),this.css[0]==="\uFEFF"||this.css[0]==="￾"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(!ri||/^\w+:\/\//.test(t.from)||sn(t.from)?this.file=t.from:this.file=rn(t.from)),ri&&no){let n=new to(this.css,t);if(n.text){this.map=n;let s=n.consumer().file;!this.file&&s&&(this.file=this.mapResolve(s))}}this.file||(this.id="<input css "+eo(6)+">"),this.map&&(this.map.file=this.from)}error(e,t,n,s={}){let o,r,l;if(t&&typeof t=="object"){let c=t,u=n;if(typeof c.offset=="number"){let f=this.fromOffset(c.offset);t=f.line,n=f.col}else t=c.line,n=c.column;if(typeof u.offset=="number"){let f=this.fromOffset(u.offset);r=f.line,l=f.col}else r=u.line,l=u.column}else if(!n){let c=this.fromOffset(t);t=c.line,n=c.col}let a=this.origin(t,n,r,l);return a?o=new si(e,a.endLine===void 0?a.line:{column:a.column,line:a.line},a.endLine===void 0?a.column:{column:a.endColumn,line:a.endLine},a.source,a.file,s.plugin):o=new si(e,r===void 0?t:{column:n,line:t},r===void 0?n:{column:l,line:r},this.css,this.file,s.plugin),o.input={column:n,endColumn:l,endLine:r,line:t,source:this.css},this.file&&(nt&&(o.input.url=nt(this.file).toString()),o.input.file=this.file),o}fromOffset(e){let t,n;if(this[Wt])n=this[Wt];else{let o=this.css.split(`
192
- `);n=new Array(o.length);let r=0;for(let l=0,a=o.length;l<a;l++)n[l]=r,r+=o[l].length+1;this[Wt]=n}t=n[n.length-1];let s=0;if(e>=t)s=n.length-1;else{let o=n.length-2,r;for(;s<o;)if(r=s+(o-s>>1),e<n[r])o=r-1;else if(e>=n[r+1])s=r+1;else{s=r;break}}return{col:e-n[s]+1,line:s+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:rn(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,t,n,s){if(!this.map)return!1;let o=this.map.consumer(),r=o.originalPositionFor({column:t,line:e});if(!r.source)return!1;let l;typeof n=="number"&&(l=o.originalPositionFor({column:s,line:n}));let a;sn(r.source)?a=nt(r.source):a=new URL(r.source,this.map.consumer().sourceRoot||nt(this.map.mapFile));let c={column:r.column,endColumn:l&&l.column,endLine:l&&l.line,line:r.line,url:a.toString()};if(a.protocol==="file:")if(ii)c.file=ii(a);else throw new Error("file: protocol is not available in this PostCSS build");let u=o.sourceContentFor(r.source);return u&&(c.source=u),c}toJSON(){let e={};for(let t of["hasBOM","css","file","id"])this[t]!=null&&(e[t]=this[t]);return this.map&&(e.map={...this.map},e.map.consumerCache&&(e.map.consumerCache=void 0)),e}get from(){return this.file||this.id}};var Ct=yt;yt.default=yt;Vt&&Vt.registerInput&&Vt.registerInput(yt);let{SourceMapConsumer:Bi,SourceMapGenerator:ft}=W,{dirname:pt,relative:Hi,resolve:Fi,sep:Vi}=W,{pathToFileURL:oi}=W,io=Ct,so=!!(Bi&&ft),ro=!!(pt&&Fi&&Hi&&Vi),oo=class{constructor(e,t,n,s){this.stringify=e,this.mapOpts=n.map||{},this.root=t,this.opts=n,this.css=s,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let e;this.isInline()?e="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?e=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?e=this.mapOpts.annotation(this.opts.to,this.root):e=this.outputFile()+".map";let t=`
190
+ `);return t=o[o.length-1],t=t.replace(/\S/g,""),!1}}),t}rawSemicolon(e){let t;return e.walk(n=>{if(n.nodes&&n.nodes.length&&n.last.type==="decl"&&(t=n.raws.semicolon,typeof t<"u"))return!1}),t}rawValue(e,t){let n=e[t],s=e.raws[t];return s&&s.value===n?s.raw:n}root(e){this.body(e),e.raws.after&&this.builder(e.raws.after)}rule(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")}stringify(e,t){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)}};var zi=Xt;Xt.default=Xt;let Ur=zi;function Qt(i,e){new Ur(e).stringify(i)}var St=Qt;Qt.default=Qt;let{isClean:tt,my:zr}=Xe,Dr=yn,Br=zi,Hr=St;function Yt(i,e){let t=new i.constructor;for(let n in i){if(!Object.prototype.hasOwnProperty.call(i,n)||n==="proxyCache")continue;let s=i[n],o=typeof s;n==="parent"&&o==="object"?e&&(t[n]=e):n==="source"?t[n]=s:Array.isArray(s)?t[n]=s.map(r=>Yt(r,t)):(o==="object"&&s!==null&&(s=Yt(s)),t[n]=s)}return t}let en=class{constructor(e={}){this.raws={},this[tt]=!1,this[zr]=!0;for(let t in e)if(t==="nodes"){this.nodes=[];for(let n of e[t])typeof n.clone=="function"?this.append(n.clone()):this.append(n)}else this[t]=e[t]}addToError(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){let t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,`$&${t.input.from}:${t.start.line}:${t.start.column}$&`)}return e}after(e){return this.parent.insertAfter(this,e),this}assign(e={}){for(let t in e)this[t]=e[t];return this}before(e){return this.parent.insertBefore(this,e),this}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}clone(e={}){let t=Yt(this);for(let n in e)t[n]=e[n];return t}cloneAfter(e={}){let t=this.clone(e);return this.parent.insertAfter(this,t),t}cloneBefore(e={}){let t=this.clone(e);return this.parent.insertBefore(this,t),t}error(e,t={}){if(this.source){let{end:n,start:s}=this.rangeBy(t);return this.source.input.error(e,{column:s.column,line:s.line},{column:n.column,line:n.line},t)}return new Dr(e)}getProxyProcessor(){return{get(e,t){return t==="proxyOf"?e:t==="root"?()=>e.root().toProxy():e[t]},set(e,t,n){return e[t]===n||(e[t]=n,(t==="prop"||t==="value"||t==="name"||t==="params"||t==="important"||t==="text")&&e.markDirty()),!0}}}markDirty(){if(this[tt]){this[tt]=!1;let e=this;for(;e=e.parent;)e[tt]=!1}}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e,t){let n=this.source.start;if(e.index)n=this.positionInside(e.index,t);else if(e.word){t=this.toString();let s=t.indexOf(e.word);s!==-1&&(n=this.positionInside(s,t))}return n}positionInside(e,t){let n=t||this.toString(),s=this.source.start.column,o=this.source.start.line;for(let r=0;r<e;r++)n[r]===`
191
+ `?(s=1,o+=1):s+=1;return{column:s,line:o}}prev(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e-1]}rangeBy(e){let t={column:this.source.start.column,line:this.source.start.line},n=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:t.column+1,line:t.line};if(e.word){let s=this.toString(),o=s.indexOf(e.word);o!==-1&&(t=this.positionInside(o,s),n=this.positionInside(o+e.word.length,s))}else e.start?t={column:e.start.column,line:e.start.line}:e.index&&(t=this.positionInside(e.index)),e.end?n={column:e.end.column,line:e.end.line}:e.endIndex?n=this.positionInside(e.endIndex):e.index&&(n=this.positionInside(e.index+1));return(n.line<t.line||n.line===t.line&&n.column<=t.column)&&(n={column:t.column+1,line:t.line}),{end:n,start:t}}raw(e,t){return new Br().raw(this,e,t)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...e){if(this.parent){let t=this,n=!1;for(let s of e)s===this?n=!0:n?(this.parent.insertAfter(t,s),t=s):this.parent.insertBefore(t,s);n||this.remove()}return this}root(){let e=this;for(;e.parent&&e.parent.type!=="document";)e=e.parent;return e}toJSON(e,t){let n={},s=t==null;t=t||new Map;let o=0;for(let r in this){if(!Object.prototype.hasOwnProperty.call(this,r)||r==="parent"||r==="proxyCache")continue;let l=this[r];if(Array.isArray(l))n[r]=l.map(a=>typeof a=="object"&&a.toJSON?a.toJSON(null,t):a);else if(typeof l=="object"&&l.toJSON)n[r]=l.toJSON(null,t);else if(r==="source"){let a=t.get(l.input);a==null&&(a=o,t.set(l.input,o),o++),n[r]={end:l.end,inputId:a,start:l.start}}else n[r]=l}return s&&(n.inputs=[...t.keys()].map(r=>r.toJSON())),n}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(e=Hr){e.stringify&&(e=e.stringify);let t="";return e(this,n=>{t+=n}),t}warn(e,t,n){let s={node:this};for(let o in n)s[o]=n[o];return e.warn(t,s)}get proxyOf(){return this}};var At=en;en.default=en;let Fr=At,tn=class extends Fr{constructor(e){e&&typeof e.value<"u"&&typeof e.value!="string"&&(e={...e,value:String(e.value)}),super(e),this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}};var Ot=tn;tn.default=tn;let Vr="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",Wr=(i,e=21)=>(t=e)=>{let n="",s=t;for(;s--;)n+=i[Math.random()*i.length|0];return n},qr=(i=21)=>{let e="",t=i;for(;t--;)e+=Vr[Math.random()*64|0];return e};var Gr={nanoid:qr,customAlphabet:Wr};let{SourceMapConsumer:ti,SourceMapGenerator:ni}=W,{existsSync:Kr,readFileSync:Zr}=W,{dirname:Ft,join:Jr}=W;function Xr(i){return Buffer?Buffer.from(i,"base64").toString():window.atob(i)}let nn=class{constructor(e,t){if(t.map===!1)return;this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");let n=t.map?t.map.prev:void 0,s=this.loadMap(t.from,n);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=Ft(this.mapFile)),s&&(this.text=s)}consumer(){return this.consumerCache||(this.consumerCache=new ti(this.text)),this.consumerCache}decodeInline(e){let t=/^data:application\/json;charset=utf-?8;base64,/,n=/^data:application\/json;base64,/,s=/^data:application\/json;charset=utf-?8,/,o=/^data:application\/json,/;if(s.test(e)||o.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(t.test(e)||n.test(e))return Xr(e.substr(RegExp.lastMatch.length));let r=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+r)}getAnnotationURL(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(e){return typeof e!="object"?!1:typeof e.mappings=="string"||typeof e._mappings=="string"||Array.isArray(e.sections)}loadAnnotation(e){let t=e.match(/\/\*\s*# sourceMappingURL=/gm);if(!t)return;let n=e.lastIndexOf(t.pop()),s=e.indexOf("*/",n);n>-1&&s>-1&&(this.annotation=this.getAnnotationURL(e.substring(n,s)))}loadFile(e){if(this.root=Ft(e),Kr(e))return this.mapFile=e,Zr(e,"utf-8").toString().trim()}loadMap(e,t){if(t===!1)return!1;if(t){if(typeof t=="string")return t;if(typeof t=="function"){let n=t(e);if(n){let s=this.loadFile(n);if(!s)throw new Error("Unable to load previous source map: "+n.toString());return s}}else{if(t instanceof ti)return ni.fromSourceMap(t).toString();if(t instanceof ni)return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let n=this.annotation;return e&&(n=Jr(Ft(e),n)),this.loadFile(n)}}}startWith(e,t){return e?e.substr(0,t.length)===t:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}};var Di=nn;nn.default=nn;let{SourceMapConsumer:Qr,SourceMapGenerator:Yr}=W,{fileURLToPath:ii,pathToFileURL:nt}=W,{isAbsolute:sn,resolve:rn}=W,{nanoid:eo}=Gr,Vt=W,si=yn,to=Di,Wt=Symbol("fromOffsetCache"),no=!!(Qr&&Yr),ri=!!(rn&&sn),vt=class{constructor(e,t={}){if(e===null||typeof e>"u"||typeof e=="object"&&!e.toString)throw new Error(`PostCSS received ${e} instead of CSS string`);if(this.css=e.toString(),this.css[0]==="\uFEFF"||this.css[0]==="￾"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(!ri||/^\w+:\/\//.test(t.from)||sn(t.from)?this.file=t.from:this.file=rn(t.from)),ri&&no){let n=new to(this.css,t);if(n.text){this.map=n;let s=n.consumer().file;!this.file&&s&&(this.file=this.mapResolve(s))}}this.file||(this.id="<input css "+eo(6)+">"),this.map&&(this.map.file=this.from)}error(e,t,n,s={}){let o,r,l;if(t&&typeof t=="object"){let c=t,u=n;if(typeof c.offset=="number"){let f=this.fromOffset(c.offset);t=f.line,n=f.col}else t=c.line,n=c.column;if(typeof u.offset=="number"){let f=this.fromOffset(u.offset);r=f.line,l=f.col}else r=u.line,l=u.column}else if(!n){let c=this.fromOffset(t);t=c.line,n=c.col}let a=this.origin(t,n,r,l);return a?o=new si(e,a.endLine===void 0?a.line:{column:a.column,line:a.line},a.endLine===void 0?a.column:{column:a.endColumn,line:a.endLine},a.source,a.file,s.plugin):o=new si(e,r===void 0?t:{column:n,line:t},r===void 0?n:{column:l,line:r},this.css,this.file,s.plugin),o.input={column:n,endColumn:l,endLine:r,line:t,source:this.css},this.file&&(nt&&(o.input.url=nt(this.file).toString()),o.input.file=this.file),o}fromOffset(e){let t,n;if(this[Wt])n=this[Wt];else{let o=this.css.split(`
192
+ `);n=new Array(o.length);let r=0;for(let l=0,a=o.length;l<a;l++)n[l]=r,r+=o[l].length+1;this[Wt]=n}t=n[n.length-1];let s=0;if(e>=t)s=n.length-1;else{let o=n.length-2,r;for(;s<o;)if(r=s+(o-s>>1),e<n[r])o=r-1;else if(e>=n[r+1])s=r+1;else{s=r;break}}return{col:e-n[s]+1,line:s+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:rn(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,t,n,s){if(!this.map)return!1;let o=this.map.consumer(),r=o.originalPositionFor({column:t,line:e});if(!r.source)return!1;let l;typeof n=="number"&&(l=o.originalPositionFor({column:s,line:n}));let a;sn(r.source)?a=nt(r.source):a=new URL(r.source,this.map.consumer().sourceRoot||nt(this.map.mapFile));let c={column:r.column,endColumn:l&&l.column,endLine:l&&l.line,line:r.line,url:a.toString()};if(a.protocol==="file:")if(ii)c.file=ii(a);else throw new Error("file: protocol is not available in this PostCSS build");let u=o.sourceContentFor(r.source);return u&&(c.source=u),c}toJSON(){let e={};for(let t of["hasBOM","css","file","id"])this[t]!=null&&(e[t]=this[t]);return this.map&&(e.map={...this.map},e.map.consumerCache&&(e.map.consumerCache=void 0)),e}get from(){return this.file||this.id}};var Ct=vt;vt.default=vt;Vt&&Vt.registerInput&&Vt.registerInput(vt);let{SourceMapConsumer:Bi,SourceMapGenerator:ft}=W,{dirname:pt,relative:Hi,resolve:Fi,sep:Vi}=W,{pathToFileURL:oi}=W,io=Ct,so=!!(Bi&&ft),ro=!!(pt&&Fi&&Hi&&Vi),oo=class{constructor(e,t,n,s){this.stringify=e,this.mapOpts=n.map||{},this.root=t,this.opts=n,this.css=s,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let e;this.isInline()?e="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?e=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?e=this.mapOpts.annotation(this.opts.to,this.root):e=this.outputFile()+".map";let t=`
193
193
  `;this.css.includes(`\r
194
194
  `)&&(t=`\r
195
195
  `),this.css+=t+"/*# sourceMappingURL="+e+" */"}applyPrevMaps(){for(let e of this.previous()){let t=this.toUrl(this.path(e.file)),n=e.root||pt(e.file),s;this.mapOpts.sourcesContent===!1?(s=new Bi(e.text),s.sourcesContent&&(s.sourcesContent=s.sourcesContent.map(()=>null))):s=e.consumer(),this.map.applySourceMap(s,t,this.toUrl(this.path(n)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let e;for(let t=this.root.nodes.length-1;t>=0;t--)e=this.root.nodes[t],e.type==="comment"&&e.text.indexOf("# sourceMappingURL=")===0&&this.root.removeChild(t)}else this.css&&(this.css=this.css.replace(/(\n)?\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),ro&&so&&this.isMap())return this.generateMap();{let e="";return this.stringify(this.root,t=>{e+=t}),[e]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=ft.fromSourceMap(e)}else this.map=new ft({file:this.outputFile()}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new ft({file:this.outputFile()});let e=1,t=1,n="<no source>",s={generated:{column:0,line:0},original:{column:0,line:0},source:""},o,r;this.stringify(this.root,(l,a,c)=>{if(this.css+=l,a&&c!=="end"&&(s.generated.line=e,s.generated.column=t-1,a.source&&a.source.start?(s.source=this.sourcePath(a),s.original.line=a.source.start.line,s.original.column=a.source.start.column-1,this.map.addMapping(s)):(s.source=n,s.original.line=1,s.original.column=0,this.map.addMapping(s))),o=l.match(/\n/g),o?(e+=o.length,r=l.lastIndexOf(`
196
- `),t=l.length-r):t+=l.length,a&&c!=="start"){let u=a.parent||{raws:{}};(!(a.type==="decl"||a.type==="atrule"&&!a.nodes)||a!==u.last||u.raws.semicolon)&&(a.source&&a.source.end?(s.source=this.sourcePath(a),s.original.line=a.source.end.line,s.original.column=a.source.end.column-1,s.generated.line=e,s.generated.column=t-2,this.map.addMapping(s)):(s.source=n,s.original.line=1,s.original.column=0,s.generated.line=e,s.generated.column=t-1,this.map.addMapping(s)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(e=>e.annotation):!0}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let e=this.mapOpts.annotation;return typeof e<"u"&&e!==!0?!1:this.previous().length?this.previous().some(t=>t.inline):!0}isMap(){return typeof this.opts.map<"u"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent<"u"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(e=>e.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(e){if(this.mapOpts.absolute||e.charCodeAt(0)===60||/^\w+:\/\//.test(e))return e;let t=this.memoizedPaths.get(e);if(t)return t;let n=this.opts.to?pt(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(n=pt(Fi(n,this.mapOpts.annotation)));let s=Hi(n,e);return this.memoizedPaths.set(e,s),s}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(e=>{if(e.source&&e.source.input.map){let t=e.source.input.map;this.previousMaps.includes(t)||this.previousMaps.push(t)}});else{let e=new io(this.css,this.opts);e.map&&this.previousMaps.push(e.map)}return this.previousMaps}setSourcesContent(){let e={};if(this.root)this.root.walk(t=>{if(t.source){let n=t.source.input.from;if(n&&!e[n]){e[n]=!0;let s=this.usesFileUrls?this.toFileUrl(n):this.toUrl(this.path(n));this.map.setSourceContent(s,t.source.input.css)}}});else if(this.css){let t=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(t,this.css)}}sourcePath(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))}toBase64(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))}toFileUrl(e){let t=this.memoizedFileURLs.get(e);if(t)return t;if(oi){let n=oi(e).toString();return this.memoizedFileURLs.set(e,n),n}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(e){let t=this.memoizedURLs.get(e);if(t)return t;Vi==="\\"&&(e=e.replace(/\\/g,"/"));let n=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,n),n}};var Wi=oo;let lo=At,on=class extends lo{constructor(e){super(e),this.type="comment"}};var kt=on;on.default=on;let{isClean:qi,my:Gi}=Xe,Ki=Ot,Zi=kt,ao=At,Ji,yn,wn,Xi;function Qi(i){return i.map(e=>(e.nodes&&(e.nodes=Qi(e.nodes)),delete e.source,e))}function Yi(i){if(i[qi]=!1,i.proxyOf.nodes)for(let e of i.proxyOf.nodes)Yi(e)}let ie=class es extends ao{append(...e){for(let t of e){let n=this.normalize(t,this.last);for(let s of n)this.proxyOf.nodes.push(s)}return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let t of this.nodes)t.cleanRaws(e)}each(e){if(!this.proxyOf.nodes)return;let t=this.getIterator(),n,s;for(;this.indexes[t]<this.proxyOf.nodes.length&&(n=this.indexes[t],s=e(this.proxyOf.nodes[n],n),s!==!1);)this.indexes[t]+=1;return delete this.indexes[t],s}every(e){return this.nodes.every(e)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let e=this.lastEach;return this.indexes[e]=0,e}getProxyProcessor(){return{get(e,t){return t==="proxyOf"?e:e[t]?t==="each"||typeof t=="string"&&t.startsWith("walk")?(...n)=>e[t](...n.map(s=>typeof s=="function"?(o,r)=>s(o.toProxy(),r):s)):t==="every"||t==="some"?n=>e[t]((s,...o)=>n(s.toProxy(),...o)):t==="root"?()=>e.root().toProxy():t==="nodes"?e.nodes.map(n=>n.toProxy()):t==="first"||t==="last"?e[t].toProxy():e[t]:e[t]},set(e,t,n){return e[t]===n||(e[t]=n,(t==="name"||t==="params"||t==="selector")&&e.markDirty()),!0}}}index(e){return typeof e=="number"?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}insertAfter(e,t){let n=this.index(e),s=this.normalize(t,this.proxyOf.nodes[n]).reverse();n=this.index(e);for(let r of s)this.proxyOf.nodes.splice(n+1,0,r);let o;for(let r in this.indexes)o=this.indexes[r],n<o&&(this.indexes[r]=o+s.length);return this.markDirty(),this}insertBefore(e,t){let n=this.index(e),s=n===0?"prepend":!1,o=this.normalize(t,this.proxyOf.nodes[n],s).reverse();n=this.index(e);for(let l of o)this.proxyOf.nodes.splice(n,0,l);let r;for(let l in this.indexes)r=this.indexes[l],n<=r&&(this.indexes[l]=r+o.length);return this.markDirty(),this}normalize(e,t){if(typeof e=="string")e=Qi(Ji(e).nodes);else if(Array.isArray(e)){e=e.slice(0);for(let s of e)s.parent&&s.parent.removeChild(s,"ignore")}else if(e.type==="root"&&this.type!=="document"){e=e.nodes.slice(0);for(let s of e)s.parent&&s.parent.removeChild(s,"ignore")}else if(e.type)e=[e];else if(e.prop){if(typeof e.value>"u")throw new Error("Value field is missed in node creation");typeof e.value!="string"&&(e.value=String(e.value)),e=[new Ki(e)]}else if(e.selector)e=[new yn(e)];else if(e.name)e=[new wn(e)];else if(e.text)e=[new Zi(e)];else throw new Error("Unknown node type in node creation");return e.map(s=>(s[Gi]||es.rebuild(s),s=s.proxyOf,s.parent&&s.parent.removeChild(s),s[qi]&&Yi(s),typeof s.raws.before>"u"&&t&&typeof t.raws.before<"u"&&(s.raws.before=t.raws.before.replace(/\S/g,"")),s.parent=this.proxyOf,s))}prepend(...e){e=e.reverse();for(let t of e){let n=this.normalize(t,this.first,"prepend").reverse();for(let s of n)this.proxyOf.nodes.unshift(s);for(let s in this.indexes)this.indexes[s]=this.indexes[s]+n.length}return this.markDirty(),this}push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(e){e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1);let t;for(let n in this.indexes)t=this.indexes[n],t>=e&&(this.indexes[n]=t-1);return this.markDirty(),this}replaceValues(e,t,n){return n||(n=t,t={}),this.walkDecls(s=>{t.props&&!t.props.includes(s.prop)||t.fast&&!s.value.includes(t.fast)||(s.value=s.value.replace(e,n))}),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each((t,n)=>{let s;try{s=e(t,n)}catch(o){throw t.addToError(o)}return s!==!1&&t.walk&&(s=t.walk(e)),s})}walkAtRules(e,t){return t?e instanceof RegExp?this.walk((n,s)=>{if(n.type==="atrule"&&e.test(n.name))return t(n,s)}):this.walk((n,s)=>{if(n.type==="atrule"&&n.name===e)return t(n,s)}):(t=e,this.walk((n,s)=>{if(n.type==="atrule")return t(n,s)}))}walkComments(e){return this.walk((t,n)=>{if(t.type==="comment")return e(t,n)})}walkDecls(e,t){return t?e instanceof RegExp?this.walk((n,s)=>{if(n.type==="decl"&&e.test(n.prop))return t(n,s)}):this.walk((n,s)=>{if(n.type==="decl"&&n.prop===e)return t(n,s)}):(t=e,this.walk((n,s)=>{if(n.type==="decl")return t(n,s)}))}walkRules(e,t){return t?e instanceof RegExp?this.walk((n,s)=>{if(n.type==="rule"&&e.test(n.selector))return t(n,s)}):this.walk((n,s)=>{if(n.type==="rule"&&n.selector===e)return t(n,s)}):(t=e,this.walk((n,s)=>{if(n.type==="rule")return t(n,s)}))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}};ie.registerParse=i=>{Ji=i};ie.registerRule=i=>{yn=i};ie.registerAtRule=i=>{wn=i};ie.registerRoot=i=>{Xi=i};var ye=ie;ie.default=ie;ie.rebuild=i=>{i.type==="atrule"?Object.setPrototypeOf(i,wn.prototype):i.type==="rule"?Object.setPrototypeOf(i,yn.prototype):i.type==="decl"?Object.setPrototypeOf(i,Ki.prototype):i.type==="comment"?Object.setPrototypeOf(i,Zi.prototype):i.type==="root"&&Object.setPrototypeOf(i,Xi.prototype),i[Gi]=!0,i.nodes&&i.nodes.forEach(e=>{ie.rebuild(e)})};let co=ye,ts,ns,Fe=class extends co{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(e={}){return new ts(new ns,this,e).stringify()}};Fe.registerLazyResult=i=>{ts=i};Fe.registerProcessor=i=>{ns=i};var xn=Fe;Fe.default=Fe;let ln=class{constructor(e,t={}){if(this.type="warning",this.text=e,t.node&&t.node.source){let n=t.node.rangeBy(t);this.line=n.start.line,this.column=n.start.column,this.endLine=n.end.line,this.endColumn=n.end.column}for(let n in t)this[n]=t[n]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}};var is=ln;ln.default=ln;let uo=is,an=class{constructor(e,t,n){this.processor=e,this.messages=[],this.root=t,this.opts=n,this.css=void 0,this.map=void 0}toString(){return this.css}warn(e,t={}){t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);let n=new uo(e,t);return this.messages.push(n),n}warnings(){return this.messages.filter(e=>e.type==="warning")}get content(){return this.css}};var _n=an;an.default=an;const qt=39,li=34,it=92,ai=47,st=10,Te=32,rt=12,ot=9,lt=13,ho=91,fo=93,po=40,go=41,mo=123,bo=125,vo=59,yo=42,wo=58,xo=64,at=/[\t\n\f\r "#'()/;[\\\]{}]/g,ct=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,_o=/.[\r\n"'(/\\]/,ci=/[\da-f]/i;var Eo=function(e,t={}){let n=e.css.valueOf(),s=t.ignoreErrors,o,r,l,a,c,u,f,d,v,w,$=n.length,b=0,D=[],B=[];function Q(){return b}function U(g){throw e.error("Unclosed "+g,b)}function H(){return B.length===0&&b>=$}function ae(g){if(B.length)return B.pop();if(b>=$)return;let N=g?g.ignoreUnclosed:!1;switch(o=n.charCodeAt(b),o){case st:case Te:case ot:case lt:case rt:{r=b;do r+=1,o=n.charCodeAt(r);while(o===Te||o===st||o===ot||o===lt||o===rt);w=["space",n.slice(b,r)],b=r-1;break}case ho:case fo:case mo:case bo:case wo:case vo:case go:{let P=String.fromCharCode(o);w=[P,P,b];break}case po:{if(d=D.length?D.pop()[1]:"",v=n.charCodeAt(b+1),d==="url"&&v!==qt&&v!==li&&v!==Te&&v!==st&&v!==ot&&v!==rt&&v!==lt){r=b;do{if(u=!1,r=n.indexOf(")",r+1),r===-1)if(s||N){r=b;break}else U("bracket");for(f=r;n.charCodeAt(f-1)===it;)f-=1,u=!u}while(u);w=["brackets",n.slice(b,r+1),b,r],b=r}else r=n.indexOf(")",b+1),a=n.slice(b,r+1),r===-1||_o.test(a)?w=["(","(",b]:(w=["brackets",a,b,r],b=r);break}case qt:case li:{l=o===qt?"'":'"',r=b;do{if(u=!1,r=n.indexOf(l,r+1),r===-1)if(s||N){r=b+1;break}else U("string");for(f=r;n.charCodeAt(f-1)===it;)f-=1,u=!u}while(u);w=["string",n.slice(b,r+1),b,r],b=r;break}case xo:{at.lastIndex=b+1,at.test(n),at.lastIndex===0?r=n.length-1:r=at.lastIndex-2,w=["at-word",n.slice(b,r+1),b,r],b=r;break}case it:{for(r=b,c=!0;n.charCodeAt(r+1)===it;)r+=1,c=!c;if(o=n.charCodeAt(r+1),c&&o!==ai&&o!==Te&&o!==st&&o!==ot&&o!==lt&&o!==rt&&(r+=1,ci.test(n.charAt(r)))){for(;ci.test(n.charAt(r+1));)r+=1;n.charCodeAt(r+1)===Te&&(r+=1)}w=["word",n.slice(b,r+1),b,r],b=r;break}default:{o===ai&&n.charCodeAt(b+1)===yo?(r=n.indexOf("*/",b+2)+1,r===0&&(s||N?r=n.length:U("comment")),w=["comment",n.slice(b,r+1),b,r],b=r):(ct.lastIndex=b+1,ct.test(n),ct.lastIndex===0?r=n.length-1:r=ct.lastIndex-2,w=["word",n.slice(b,r+1),b,r],D.push(w),b=r);break}}return b++,w}function Y(g){B.push(g)}return{back:Y,endOfFile:H,nextToken:ae,position:Q}};let ss=ye,wt=class extends ss{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 En=wt;wt.default=wt;ss.registerAtRule(wt);let rs=ye,os,ls,Ae=class extends rs{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,t,n){let s=super.normalize(e);if(t){if(n==="prepend")this.nodes.length>1?t.raws.before=this.nodes[1].raws.before:delete t.raws.before;else if(this.first!==t)for(let o of s)o.raws.before=t.raws.before}return s}removeChild(e,t){let n=this.index(e);return!t&&n===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[n].raws.before),super.removeChild(e)}toResult(e={}){return new os(new ls,this,e).stringify()}};Ae.registerLazyResult=i=>{os=i};Ae.registerProcessor=i=>{ls=i};var Qe=Ae;Ae.default=Ae;rs.registerRoot(Ae);let Ve={comma(i){return Ve.split(i,[","],!0)},space(i){let e=[" ",`
197
- `," "];return Ve.split(i,e)},split(i,e,t){let n=[],s="",o=!1,r=0,l=!1,a="",c=!1;for(let u of i)c?c=!1:u==="\\"?c=!0:l?u===a&&(l=!1):u==='"'||u==="'"?(l=!0,a=u):u==="("?r+=1:u===")"?r>0&&(r-=1):r===0&&e.includes(u)&&(o=!0),o?(s!==""&&n.push(s.trim()),s="",o=!1):s+=u;return(t||s!=="")&&n.push(s.trim()),n}};var as=Ve;Ve.default=Ve;let cs=ye,$o=as,xt=class extends cs{constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return $o.comma(this.selector)}set selectors(e){let t=this.selector?this.selector.match(/,\s*/):null,n=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(n)}};var $n=xt;xt.default=xt;cs.registerRule(xt);let So=Ot,Ao=Eo,Oo=kt,Co=En,ko=Qe,ui=$n;const hi={empty:!0,space:!0};function Ro(i){for(let e=i.length-1;e>=0;e--){let t=i[e],n=t[3]||t[2];if(n)return n}}let Mo=class{constructor(e){this.input=e,this.root=new ko,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 Co;t.name=e[1].slice(1),t.name===""&&this.unnamedAtrule(t,e),this.init(t,e[2]);let n,s,o,r=!1,l=!1,a=[],c=[];for(;!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),n=e[0],n==="("||n==="["?c.push(n==="("?")":"]"):n==="{"&&c.length>0?c.push("}"):n===c[c.length-1]&&c.pop(),c.length===0)if(n===";"){t.source.end=this.getPosition(e[2]),t.source.end.offset++,this.semicolon=!0;break}else if(n==="{"){l=!0;break}else if(n==="}"){if(a.length>0){for(o=a.length-1,s=a[o];s&&s[0]==="space";)s=a[--o];s&&(t.source.end=this.getPosition(s[3]||s[2]),t.source.end.offset++)}this.end(e);break}else a.push(e);else a.push(e);if(this.tokenizer.endOfFile()){r=!0;break}}t.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(t.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(t,"params",a),r&&(e=a[a.length-1],t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++,this.spaces=t.raws.between,t.raws.between="")):(t.raws.afterName="",t.params=""),l&&(t.nodes=[],this.current=t)}checkMissedSemicolon(e){let t=this.colon(e);if(t===!1)return;let n=0,s;for(let o=t-1;o>=0&&(s=e[o],!(s[0]!=="space"&&(n+=1,n===2)));o--);throw this.input.error("Missed semicolon",s[0]==="word"?s[3]+1:s[2])}colon(e){let t=0,n,s,o;for(let[r,l]of e.entries()){if(n=l,s=n[0],s==="("&&(t+=1),s===")"&&(t-=1),t===0&&s===":")if(!o)this.doubleColon(n);else{if(o[0]==="word"&&o[1]==="progid")continue;return r}o=n}return!1}comment(e){let t=new Oo;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;let n=e[1].slice(2,-2);if(/^\s*$/.test(n))t.text="",t.raws.left=n,t.raws.right="";else{let s=n.match(/^(\s*)([^]*\S)(\s*)$/);t.text=s[2],t.raws.left=s[1],t.raws.right=s[3]}}createTokenizer(){this.tokenizer=Ao(this.input)}decl(e,t){let n=new So;this.init(n,e[0][2]);let s=e[e.length-1];for(s[0]===";"&&(this.semicolon=!0,e.pop()),n.source.end=this.getPosition(s[3]||s[2]||Ro(e)),n.source.end.offset++;e[0][0]!=="word";)e.length===1&&this.unknownWord(e),n.raws.before+=e.shift()[1];for(n.source.start=this.getPosition(e[0][2]),n.prop="";e.length;){let c=e[0][0];if(c===":"||c==="space"||c==="comment")break;n.prop+=e.shift()[1]}n.raws.between="";let o;for(;e.length;)if(o=e.shift(),o[0]===":"){n.raws.between+=o[1];break}else o[0]==="word"&&/\w/.test(o[1])&&this.unknownWord([o]),n.raws.between+=o[1];(n.prop[0]==="_"||n.prop[0]==="*")&&(n.raws.before+=n.prop[0],n.prop=n.prop.slice(1));let r=[],l;for(;e.length&&(l=e[0][0],!(l!=="space"&&l!=="comment"));)r.push(e.shift());this.precheckMissedSemicolon(e);for(let c=e.length-1;c>=0;c--){if(o=e[c],o[1].toLowerCase()==="!important"){n.important=!0;let u=this.stringFrom(e,c);u=this.spacesFromEnd(e)+u,u!==" !important"&&(n.raws.important=u);break}else if(o[1].toLowerCase()==="important"){let u=e.slice(0),f="";for(let d=c;d>0;d--){let v=u[d][0];if(f.trim().indexOf("!")===0&&v!=="space")break;f=u.pop()[1]+f}f.trim().indexOf("!")===0&&(n.important=!0,n.raws.important=f,e=u)}if(o[0]!=="space"&&o[0]!=="comment")break}e.some(c=>c[0]!=="space"&&c[0]!=="comment")&&(n.raws.between+=r.map(c=>c[1]).join(""),r=[]),this.raw(n,"value",r.concat(e),t),n.value.includes(":")&&!t&&this.checkMissedSemicolon(e)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){let t=new ui;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t}end(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(e){if(this.spaces+=e[1],this.current.nodes){let t=this.current.nodes[this.current.nodes.length-1];t&&t.type==="rule"&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(e){let t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}}init(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="",e.type!=="comment"&&(this.semicolon=!1)}other(e){let t=!1,n=null,s=!1,o=null,r=[],l=e[1].startsWith("--"),a=[],c=e;for(;c;){if(n=c[0],a.push(c),n==="("||n==="[")o||(o=c),r.push(n==="("?")":"]");else if(l&&s&&n==="{")o||(o=c),r.push("}");else if(r.length===0)if(n===";")if(s){this.decl(a,l);return}else break;else if(n==="{"){this.rule(a);return}else if(n==="}"){this.tokenizer.back(a.pop()),t=!0;break}else n===":"&&(s=!0);else n===r[r.length-1]&&(r.pop(),r.length===0&&(o=null));c=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),r.length>0&&this.unclosedBracket(o),t&&s){if(!l)for(;a.length&&(c=a[a.length-1][0],!(c!=="space"&&c!=="comment"));)this.tokenizer.back(a.pop());this.decl(a,l)}else this.unknownWord(a)}parse(){let e;for(;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e);break}this.endFile()}precheckMissedSemicolon(){}raw(e,t,n,s){let o,r,l=n.length,a="",c=!0,u,f;for(let d=0;d<l;d+=1)o=n[d],r=o[0],r==="space"&&d===l-1&&!s?c=!1:r==="comment"?(f=n[d-1]?n[d-1][0]:"empty",u=n[d+1]?n[d+1][0]:"empty",!hi[f]&&!hi[u]?a.slice(-1)===","?c=!1:a+=o[1]:c=!1):a+=o[1];if(!c){let d=n.reduce((v,w)=>v+w[1],"");e.raws[t]={raw:d,value:a}}e[t]=a}rule(e){e.pop();let t=new ui;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t}spacesAndCommentsFromEnd(e){let t,n="";for(;e.length&&(t=e[e.length-1][0],!(t!=="space"&&t!=="comment"));)n=e.pop()[1]+n;return n}spacesAndCommentsFromStart(e){let t,n="";for(;e.length&&(t=e[0][0],!(t!=="space"&&t!=="comment"));)n+=e.shift()[1];return n}spacesFromEnd(e){let t,n="";for(;e.length&&(t=e[e.length-1][0],t==="space");)n=e.pop()[1]+n;return n}stringFrom(e,t){let n="";for(let s=t;s<e.length;s++)n+=e[s][1];return e.splice(t,e.length-t),n}unclosedBlock(){let e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)}unclosedBracket(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})}unexpectedClose(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})}unknownWord(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})}unnamedAtrule(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})}};var No=Mo;let Po=ye,Io=No,To=Ct;function _t(i,e){let t=new To(i,e),n=new Io(t);try{n.parse()}catch(s){throw s}return n.root}var Sn=_t;_t.default=_t;Po.registerParse(_t);let{isClean:J,my:Lo}=Xe,jo=Wi,Uo=St,zo=ye,Do=xn,di=_n,Bo=Sn,Ho=Qe;const Fo={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},Vo={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},Wo={Once:!0,postcssPlugin:!0,prepare:!0},Oe=0;function Le(i){return typeof i=="object"&&typeof i.then=="function"}function us(i){let e=!1,t=Fo[i.type];return i.type==="decl"?e=i.prop.toLowerCase():i.type==="atrule"&&(e=i.name.toLowerCase()),e&&i.append?[t,t+"-"+e,Oe,t+"Exit",t+"Exit-"+e]:e?[t,t+"-"+e,t+"Exit",t+"Exit-"+e]:i.append?[t,Oe,t+"Exit"]:[t,t+"Exit"]}function fi(i){let e;return i.type==="document"?e=["Document",Oe,"DocumentExit"]:i.type==="root"?e=["Root",Oe,"RootExit"]:e=us(i),{eventIndex:0,events:e,iterator:0,node:i,visitorIndex:0,visitors:[]}}function cn(i){return i[J]=!1,i.nodes&&i.nodes.forEach(e=>cn(e)),i}let un={},Ce=class hs{constructor(e,t,n){this.stringified=!1,this.processed=!1;let s;if(typeof t=="object"&&t!==null&&(t.type==="root"||t.type==="document"))s=cn(t);else if(t instanceof hs||t instanceof di)s=cn(t.root),t.map&&(typeof n.map>"u"&&(n.map={}),n.map.inline||(n.map.inline=!1),n.map.prev=t.map);else{let o=Bo;n.syntax&&(o=n.syntax.parse),n.parser&&(o=n.parser),o.parse&&(o=o.parse);try{s=o(t,n)}catch(r){this.processed=!0,this.error=r}s&&!s[Lo]&&zo.rebuild(s)}this.result=new di(e,s,n),this.helpers={...un,postcss:un,result:this.result},this.plugins=this.processor.plugins.map(o=>typeof o=="object"&&o.prepare?{...o,...o.prepare(this.result)}:o)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(e,t){let n=this.result.lastPlugin;try{t&&t.addToError(e),this.error=e,e.name==="CssSyntaxError"&&!e.plugin?(e.plugin=n.postcssPlugin,e.setMessage()):n.postcssVersion}catch(s){console&&console.error&&console.error(s)}return e}prepareVisitors(){this.listeners={};let e=(t,n,s)=>{this.listeners[n]||(this.listeners[n]=[]),this.listeners[n].push([t,s])};for(let t of this.plugins)if(typeof t=="object")for(let n in t){if(!Vo[n]&&/^[A-Z]/.test(n))throw new Error(`Unknown event ${n} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!Wo[n])if(typeof t[n]=="object")for(let s in t[n])s==="*"?e(t,n,t[n][s]):e(t,n+"-"+s.toLowerCase(),t[n][s]);else typeof t[n]=="function"&&e(t,n,t[n])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let e=0;e<this.plugins.length;e++){let t=this.plugins[e],n=this.runOnRoot(t);if(Le(n))try{await n}catch(s){throw this.handleError(s)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[J];){e[J]=!0;let t=[fi(e)];for(;t.length>0;){let n=this.visitTick(t);if(Le(n))try{await n}catch(s){let o=t[t.length-1].node;throw this.handleError(s,o)}}}if(this.listeners.OnceExit)for(let[t,n]of this.listeners.OnceExit){this.result.lastPlugin=t;try{if(e.type==="document"){let s=e.nodes.map(o=>n(o,this.helpers));await Promise.all(s)}else await n(e,this.helpers)}catch(s){throw this.handleError(s)}}}return this.processed=!0,this.stringify()}runOnRoot(e){this.result.lastPlugin=e;try{if(typeof e=="object"&&e.Once){if(this.result.root.type==="document"){let t=this.result.root.nodes.map(n=>e.Once(n,this.helpers));return Le(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=Uo;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let s=new jo(t,this.result.root,this.result.opts).generate();return this.result.css=s[0],this.result.map=s[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let e of this.plugins){let t=this.runOnRoot(e);if(Le(t))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[J];)e[J]=!0,this.walkSync(e);if(this.listeners.OnceExit)if(e.type==="document")for(let t of e.nodes)this.visitSync(this.listeners.OnceExit,t);else this.visitSync(this.listeners.OnceExit,e)}return this.result}then(e,t){return this.async().then(e,t)}toString(){return this.css}visitSync(e,t){for(let[n,s]of e){this.result.lastPlugin=n;let o;try{o=s(t,this.helpers)}catch(r){throw this.handleError(r,t.proxyOf)}if(t.type!=="root"&&t.type!=="document"&&!t.parent)return!0;if(Le(o))throw this.getAsyncError()}}visitTick(e){let t=e[e.length-1],{node:n,visitors:s}=t;if(n.type!=="root"&&n.type!=="document"&&!n.parent){e.pop();return}if(s.length>0&&t.visitorIndex<s.length){let[r,l]=s[t.visitorIndex];t.visitorIndex+=1,t.visitorIndex===s.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=r;try{return l(n.toProxy(),this.helpers)}catch(a){throw this.handleError(a,n)}}if(t.iterator!==0){let r=t.iterator,l;for(;l=n.nodes[n.indexes[r]];)if(n.indexes[r]+=1,!l[J]){l[J]=!0,e.push(fi(l));return}t.iterator=0,delete n.indexes[r]}let o=t.events;for(;t.eventIndex<o.length;){let r=o[t.eventIndex];if(t.eventIndex+=1,r===Oe){n.nodes&&n.nodes.length&&(n[J]=!0,t.iterator=n.getIterator());return}else if(this.listeners[r]){t.visitors=this.listeners[r];return}}e.pop()}walkSync(e){e[J]=!0;let t=us(e);for(let n of t)if(n===Oe)e.nodes&&e.each(s=>{s[J]||this.walkSync(s)});else{let s=this.listeners[n];if(s&&this.visitSync(s,e.toProxy()))return}}warnings(){return this.sync().warnings()}get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}};Ce.registerPostcss=i=>{un=i};var ds=Ce;Ce.default=Ce;Ho.registerLazyResult(Ce);Do.registerLazyResult(Ce);let qo=Wi,Go=St,Ko=Sn;const Zo=_n;let hn=class{constructor(e,t,n){t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=n,this._map=void 0;let s,o=Go;this.result=new Zo(this._processor,s,this._opts),this.result.css=t;let r=this;Object.defineProperty(this.result,"root",{get(){return r.root}});let l=new qo(o,s,this._opts,t);if(l.isMap()){let[a,c]=l.generate();a&&(this.result.css=a),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=Ko;try{e=t(this._css,this._opts)}catch(n){this.error=n}if(this.error)throw this.error;return this._root=e,e}get[Symbol.toStringTag](){return"NoWorkResult"}};var Jo=hn;hn.default=hn;let Xo=Jo,Qo=ds,Yo=xn,el=Qe,We=class{constructor(e=[]){this.version="8.4.32",this.plugins=this.normalize(e)}normalize(e){let t=[];for(let n of e)if(n.postcss===!0?n=n():n.postcss&&(n=n.postcss),typeof n=="object"&&Array.isArray(n.plugins))t=t.concat(n.plugins);else if(typeof n=="object"&&n.postcssPlugin)t.push(n);else if(typeof n=="function")t.push(n);else if(!(typeof n=="object"&&(n.parse||n.stringify)))throw new Error(n+" is not a PostCSS plugin");return t}process(e,t={}){return this.plugins.length===0&&typeof t.parser>"u"&&typeof t.stringifier>"u"&&typeof t.syntax>"u"?new Xo(this,e,t):new Qo(this,e,t)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}};var tl=We;We.default=We;el.registerProcessor(We);Yo.registerProcessor(We);let nl=Ot,il=Di,sl=kt,rl=En,ol=Ct,ll=Qe,al=$n;function qe(i,e){if(Array.isArray(i))return i.map(s=>qe(s));let{inputs:t,...n}=i;if(t){e=[];for(let s of t){let o={...s,__proto__:ol.prototype};o.map&&(o.map={...o.map,__proto__:il.prototype}),e.push(o)}}if(n.nodes&&(n.nodes=i.nodes.map(s=>qe(s,e))),n.source){let{inputId:s,...o}=n.source;n.source=o,s!=null&&(n.source.input=e[s])}if(n.type==="root")return new ll(n);if(n.type==="decl")return new nl(n);if(n.type==="rule")return new al(n);if(n.type==="comment")return new sl(n);if(n.type==="atrule")return new rl(n);throw new Error("Unknown node type: "+i.type)}var cl=qe;qe.default=qe;var pi={};let ul=vn,fs=Ot,hl=ds,dl=ye,An=tl,fl=St,pl=cl,ps=xn,gl=is,gs=kt,ms=En,ml=_n,bl=Ct,vl=Sn,yl=as,bs=$n,vs=Qe,wl=At;function O(...i){return i.length===1&&Array.isArray(i[0])&&(i=i[0]),new An(i)}O.plugin=function(e,t){let n=!1;function s(...r){console&&console.warn&&!n&&(n=!0,console.warn(e+`: postcss.plugin was deprecated. Migration guide:
196
+ `),t=l.length-r):t+=l.length,a&&c!=="start"){let u=a.parent||{raws:{}};(!(a.type==="decl"||a.type==="atrule"&&!a.nodes)||a!==u.last||u.raws.semicolon)&&(a.source&&a.source.end?(s.source=this.sourcePath(a),s.original.line=a.source.end.line,s.original.column=a.source.end.column-1,s.generated.line=e,s.generated.column=t-2,this.map.addMapping(s)):(s.source=n,s.original.line=1,s.original.column=0,s.generated.line=e,s.generated.column=t-1,this.map.addMapping(s)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(e=>e.annotation):!0}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let e=this.mapOpts.annotation;return typeof e<"u"&&e!==!0?!1:this.previous().length?this.previous().some(t=>t.inline):!0}isMap(){return typeof this.opts.map<"u"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent<"u"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(e=>e.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(e){if(this.mapOpts.absolute||e.charCodeAt(0)===60||/^\w+:\/\//.test(e))return e;let t=this.memoizedPaths.get(e);if(t)return t;let n=this.opts.to?pt(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(n=pt(Fi(n,this.mapOpts.annotation)));let s=Hi(n,e);return this.memoizedPaths.set(e,s),s}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(e=>{if(e.source&&e.source.input.map){let t=e.source.input.map;this.previousMaps.includes(t)||this.previousMaps.push(t)}});else{let e=new io(this.css,this.opts);e.map&&this.previousMaps.push(e.map)}return this.previousMaps}setSourcesContent(){let e={};if(this.root)this.root.walk(t=>{if(t.source){let n=t.source.input.from;if(n&&!e[n]){e[n]=!0;let s=this.usesFileUrls?this.toFileUrl(n):this.toUrl(this.path(n));this.map.setSourceContent(s,t.source.input.css)}}});else if(this.css){let t=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(t,this.css)}}sourcePath(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))}toBase64(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))}toFileUrl(e){let t=this.memoizedFileURLs.get(e);if(t)return t;if(oi){let n=oi(e).toString();return this.memoizedFileURLs.set(e,n),n}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(e){let t=this.memoizedURLs.get(e);if(t)return t;Vi==="\\"&&(e=e.replace(/\\/g,"/"));let n=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,n),n}};var Wi=oo;let lo=At,on=class extends lo{constructor(e){super(e),this.type="comment"}};var kt=on;on.default=on;let{isClean:qi,my:Gi}=Xe,Ki=Ot,Zi=kt,ao=At,Ji,vn,wn,Xi;function Qi(i){return i.map(e=>(e.nodes&&(e.nodes=Qi(e.nodes)),delete e.source,e))}function Yi(i){if(i[qi]=!1,i.proxyOf.nodes)for(let e of i.proxyOf.nodes)Yi(e)}let ie=class es extends ao{append(...e){for(let t of e){let n=this.normalize(t,this.last);for(let s of n)this.proxyOf.nodes.push(s)}return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let t of this.nodes)t.cleanRaws(e)}each(e){if(!this.proxyOf.nodes)return;let t=this.getIterator(),n,s;for(;this.indexes[t]<this.proxyOf.nodes.length&&(n=this.indexes[t],s=e(this.proxyOf.nodes[n],n),s!==!1);)this.indexes[t]+=1;return delete this.indexes[t],s}every(e){return this.nodes.every(e)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let e=this.lastEach;return this.indexes[e]=0,e}getProxyProcessor(){return{get(e,t){return t==="proxyOf"?e:e[t]?t==="each"||typeof t=="string"&&t.startsWith("walk")?(...n)=>e[t](...n.map(s=>typeof s=="function"?(o,r)=>s(o.toProxy(),r):s)):t==="every"||t==="some"?n=>e[t]((s,...o)=>n(s.toProxy(),...o)):t==="root"?()=>e.root().toProxy():t==="nodes"?e.nodes.map(n=>n.toProxy()):t==="first"||t==="last"?e[t].toProxy():e[t]:e[t]},set(e,t,n){return e[t]===n||(e[t]=n,(t==="name"||t==="params"||t==="selector")&&e.markDirty()),!0}}}index(e){return typeof e=="number"?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}insertAfter(e,t){let n=this.index(e),s=this.normalize(t,this.proxyOf.nodes[n]).reverse();n=this.index(e);for(let r of s)this.proxyOf.nodes.splice(n+1,0,r);let o;for(let r in this.indexes)o=this.indexes[r],n<o&&(this.indexes[r]=o+s.length);return this.markDirty(),this}insertBefore(e,t){let n=this.index(e),s=n===0?"prepend":!1,o=this.normalize(t,this.proxyOf.nodes[n],s).reverse();n=this.index(e);for(let l of o)this.proxyOf.nodes.splice(n,0,l);let r;for(let l in this.indexes)r=this.indexes[l],n<=r&&(this.indexes[l]=r+o.length);return this.markDirty(),this}normalize(e,t){if(typeof e=="string")e=Qi(Ji(e).nodes);else if(Array.isArray(e)){e=e.slice(0);for(let s of e)s.parent&&s.parent.removeChild(s,"ignore")}else if(e.type==="root"&&this.type!=="document"){e=e.nodes.slice(0);for(let s of e)s.parent&&s.parent.removeChild(s,"ignore")}else if(e.type)e=[e];else if(e.prop){if(typeof e.value>"u")throw new Error("Value field is missed in node creation");typeof e.value!="string"&&(e.value=String(e.value)),e=[new Ki(e)]}else if(e.selector)e=[new vn(e)];else if(e.name)e=[new wn(e)];else if(e.text)e=[new Zi(e)];else throw new Error("Unknown node type in node creation");return e.map(s=>(s[Gi]||es.rebuild(s),s=s.proxyOf,s.parent&&s.parent.removeChild(s),s[qi]&&Yi(s),typeof s.raws.before>"u"&&t&&typeof t.raws.before<"u"&&(s.raws.before=t.raws.before.replace(/\S/g,"")),s.parent=this.proxyOf,s))}prepend(...e){e=e.reverse();for(let t of e){let n=this.normalize(t,this.first,"prepend").reverse();for(let s of n)this.proxyOf.nodes.unshift(s);for(let s in this.indexes)this.indexes[s]=this.indexes[s]+n.length}return this.markDirty(),this}push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(e){e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1);let t;for(let n in this.indexes)t=this.indexes[n],t>=e&&(this.indexes[n]=t-1);return this.markDirty(),this}replaceValues(e,t,n){return n||(n=t,t={}),this.walkDecls(s=>{t.props&&!t.props.includes(s.prop)||t.fast&&!s.value.includes(t.fast)||(s.value=s.value.replace(e,n))}),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each((t,n)=>{let s;try{s=e(t,n)}catch(o){throw t.addToError(o)}return s!==!1&&t.walk&&(s=t.walk(e)),s})}walkAtRules(e,t){return t?e instanceof RegExp?this.walk((n,s)=>{if(n.type==="atrule"&&e.test(n.name))return t(n,s)}):this.walk((n,s)=>{if(n.type==="atrule"&&n.name===e)return t(n,s)}):(t=e,this.walk((n,s)=>{if(n.type==="atrule")return t(n,s)}))}walkComments(e){return this.walk((t,n)=>{if(t.type==="comment")return e(t,n)})}walkDecls(e,t){return t?e instanceof RegExp?this.walk((n,s)=>{if(n.type==="decl"&&e.test(n.prop))return t(n,s)}):this.walk((n,s)=>{if(n.type==="decl"&&n.prop===e)return t(n,s)}):(t=e,this.walk((n,s)=>{if(n.type==="decl")return t(n,s)}))}walkRules(e,t){return t?e instanceof RegExp?this.walk((n,s)=>{if(n.type==="rule"&&e.test(n.selector))return t(n,s)}):this.walk((n,s)=>{if(n.type==="rule"&&n.selector===e)return t(n,s)}):(t=e,this.walk((n,s)=>{if(n.type==="rule")return t(n,s)}))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}};ie.registerParse=i=>{Ji=i};ie.registerRule=i=>{vn=i};ie.registerAtRule=i=>{wn=i};ie.registerRoot=i=>{Xi=i};var ve=ie;ie.default=ie;ie.rebuild=i=>{i.type==="atrule"?Object.setPrototypeOf(i,wn.prototype):i.type==="rule"?Object.setPrototypeOf(i,vn.prototype):i.type==="decl"?Object.setPrototypeOf(i,Ki.prototype):i.type==="comment"?Object.setPrototypeOf(i,Zi.prototype):i.type==="root"&&Object.setPrototypeOf(i,Xi.prototype),i[Gi]=!0,i.nodes&&i.nodes.forEach(e=>{ie.rebuild(e)})};let co=ve,ts,ns,Fe=class extends co{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(e={}){return new ts(new ns,this,e).stringify()}};Fe.registerLazyResult=i=>{ts=i};Fe.registerProcessor=i=>{ns=i};var xn=Fe;Fe.default=Fe;let ln=class{constructor(e,t={}){if(this.type="warning",this.text=e,t.node&&t.node.source){let n=t.node.rangeBy(t);this.line=n.start.line,this.column=n.start.column,this.endLine=n.end.line,this.endColumn=n.end.column}for(let n in t)this[n]=t[n]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}};var is=ln;ln.default=ln;let uo=is,an=class{constructor(e,t,n){this.processor=e,this.messages=[],this.root=t,this.opts=n,this.css=void 0,this.map=void 0}toString(){return this.css}warn(e,t={}){t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);let n=new uo(e,t);return this.messages.push(n),n}warnings(){return this.messages.filter(e=>e.type==="warning")}get content(){return this.css}};var _n=an;an.default=an;const qt=39,li=34,it=92,ai=47,st=10,Te=32,rt=12,ot=9,lt=13,ho=91,fo=93,po=40,go=41,mo=123,bo=125,yo=59,vo=42,wo=58,xo=64,at=/[\t\n\f\r "#'()/;[\\\]{}]/g,ct=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,_o=/.[\r\n"'(/\\]/,ci=/[\da-f]/i;var Eo=function(e,t={}){let n=e.css.valueOf(),s=t.ignoreErrors,o,r,l,a,c,u,f,d,y,w,$=n.length,b=0,D=[],B=[];function Q(){return b}function U(g){throw e.error("Unclosed "+g,b)}function H(){return B.length===0&&b>=$}function ae(g){if(B.length)return B.pop();if(b>=$)return;let N=g?g.ignoreUnclosed:!1;switch(o=n.charCodeAt(b),o){case st:case Te:case ot:case lt:case rt:{r=b;do r+=1,o=n.charCodeAt(r);while(o===Te||o===st||o===ot||o===lt||o===rt);w=["space",n.slice(b,r)],b=r-1;break}case ho:case fo:case mo:case bo:case wo:case yo:case go:{let P=String.fromCharCode(o);w=[P,P,b];break}case po:{if(d=D.length?D.pop()[1]:"",y=n.charCodeAt(b+1),d==="url"&&y!==qt&&y!==li&&y!==Te&&y!==st&&y!==ot&&y!==rt&&y!==lt){r=b;do{if(u=!1,r=n.indexOf(")",r+1),r===-1)if(s||N){r=b;break}else U("bracket");for(f=r;n.charCodeAt(f-1)===it;)f-=1,u=!u}while(u);w=["brackets",n.slice(b,r+1),b,r],b=r}else r=n.indexOf(")",b+1),a=n.slice(b,r+1),r===-1||_o.test(a)?w=["(","(",b]:(w=["brackets",a,b,r],b=r);break}case qt:case li:{l=o===qt?"'":'"',r=b;do{if(u=!1,r=n.indexOf(l,r+1),r===-1)if(s||N){r=b+1;break}else U("string");for(f=r;n.charCodeAt(f-1)===it;)f-=1,u=!u}while(u);w=["string",n.slice(b,r+1),b,r],b=r;break}case xo:{at.lastIndex=b+1,at.test(n),at.lastIndex===0?r=n.length-1:r=at.lastIndex-2,w=["at-word",n.slice(b,r+1),b,r],b=r;break}case it:{for(r=b,c=!0;n.charCodeAt(r+1)===it;)r+=1,c=!c;if(o=n.charCodeAt(r+1),c&&o!==ai&&o!==Te&&o!==st&&o!==ot&&o!==lt&&o!==rt&&(r+=1,ci.test(n.charAt(r)))){for(;ci.test(n.charAt(r+1));)r+=1;n.charCodeAt(r+1)===Te&&(r+=1)}w=["word",n.slice(b,r+1),b,r],b=r;break}default:{o===ai&&n.charCodeAt(b+1)===vo?(r=n.indexOf("*/",b+2)+1,r===0&&(s||N?r=n.length:U("comment")),w=["comment",n.slice(b,r+1),b,r],b=r):(ct.lastIndex=b+1,ct.test(n),ct.lastIndex===0?r=n.length-1:r=ct.lastIndex-2,w=["word",n.slice(b,r+1),b,r],D.push(w),b=r);break}}return b++,w}function Y(g){B.push(g)}return{back:Y,endOfFile:H,nextToken:ae,position:Q}};let ss=ve,wt=class extends ss{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 En=wt;wt.default=wt;ss.registerAtRule(wt);let rs=ve,os,ls,Ae=class extends rs{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,t,n){let s=super.normalize(e);if(t){if(n==="prepend")this.nodes.length>1?t.raws.before=this.nodes[1].raws.before:delete t.raws.before;else if(this.first!==t)for(let o of s)o.raws.before=t.raws.before}return s}removeChild(e,t){let n=this.index(e);return!t&&n===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[n].raws.before),super.removeChild(e)}toResult(e={}){return new os(new ls,this,e).stringify()}};Ae.registerLazyResult=i=>{os=i};Ae.registerProcessor=i=>{ls=i};var Qe=Ae;Ae.default=Ae;rs.registerRoot(Ae);let Ve={comma(i){return Ve.split(i,[","],!0)},space(i){let e=[" ",`
197
+ `," "];return Ve.split(i,e)},split(i,e,t){let n=[],s="",o=!1,r=0,l=!1,a="",c=!1;for(let u of i)c?c=!1:u==="\\"?c=!0:l?u===a&&(l=!1):u==='"'||u==="'"?(l=!0,a=u):u==="("?r+=1:u===")"?r>0&&(r-=1):r===0&&e.includes(u)&&(o=!0),o?(s!==""&&n.push(s.trim()),s="",o=!1):s+=u;return(t||s!=="")&&n.push(s.trim()),n}};var as=Ve;Ve.default=Ve;let cs=ve,$o=as,xt=class extends cs{constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return $o.comma(this.selector)}set selectors(e){let t=this.selector?this.selector.match(/,\s*/):null,n=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(n)}};var $n=xt;xt.default=xt;cs.registerRule(xt);let So=Ot,Ao=Eo,Oo=kt,Co=En,ko=Qe,ui=$n;const hi={empty:!0,space:!0};function Ro(i){for(let e=i.length-1;e>=0;e--){let t=i[e],n=t[3]||t[2];if(n)return n}}let Mo=class{constructor(e){this.input=e,this.root=new ko,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 Co;t.name=e[1].slice(1),t.name===""&&this.unnamedAtrule(t,e),this.init(t,e[2]);let n,s,o,r=!1,l=!1,a=[],c=[];for(;!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),n=e[0],n==="("||n==="["?c.push(n==="("?")":"]"):n==="{"&&c.length>0?c.push("}"):n===c[c.length-1]&&c.pop(),c.length===0)if(n===";"){t.source.end=this.getPosition(e[2]),t.source.end.offset++,this.semicolon=!0;break}else if(n==="{"){l=!0;break}else if(n==="}"){if(a.length>0){for(o=a.length-1,s=a[o];s&&s[0]==="space";)s=a[--o];s&&(t.source.end=this.getPosition(s[3]||s[2]),t.source.end.offset++)}this.end(e);break}else a.push(e);else a.push(e);if(this.tokenizer.endOfFile()){r=!0;break}}t.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(t.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(t,"params",a),r&&(e=a[a.length-1],t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++,this.spaces=t.raws.between,t.raws.between="")):(t.raws.afterName="",t.params=""),l&&(t.nodes=[],this.current=t)}checkMissedSemicolon(e){let t=this.colon(e);if(t===!1)return;let n=0,s;for(let o=t-1;o>=0&&(s=e[o],!(s[0]!=="space"&&(n+=1,n===2)));o--);throw this.input.error("Missed semicolon",s[0]==="word"?s[3]+1:s[2])}colon(e){let t=0,n,s,o;for(let[r,l]of e.entries()){if(n=l,s=n[0],s==="("&&(t+=1),s===")"&&(t-=1),t===0&&s===":")if(!o)this.doubleColon(n);else{if(o[0]==="word"&&o[1]==="progid")continue;return r}o=n}return!1}comment(e){let t=new Oo;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;let n=e[1].slice(2,-2);if(/^\s*$/.test(n))t.text="",t.raws.left=n,t.raws.right="";else{let s=n.match(/^(\s*)([^]*\S)(\s*)$/);t.text=s[2],t.raws.left=s[1],t.raws.right=s[3]}}createTokenizer(){this.tokenizer=Ao(this.input)}decl(e,t){let n=new So;this.init(n,e[0][2]);let s=e[e.length-1];for(s[0]===";"&&(this.semicolon=!0,e.pop()),n.source.end=this.getPosition(s[3]||s[2]||Ro(e)),n.source.end.offset++;e[0][0]!=="word";)e.length===1&&this.unknownWord(e),n.raws.before+=e.shift()[1];for(n.source.start=this.getPosition(e[0][2]),n.prop="";e.length;){let c=e[0][0];if(c===":"||c==="space"||c==="comment")break;n.prop+=e.shift()[1]}n.raws.between="";let o;for(;e.length;)if(o=e.shift(),o[0]===":"){n.raws.between+=o[1];break}else o[0]==="word"&&/\w/.test(o[1])&&this.unknownWord([o]),n.raws.between+=o[1];(n.prop[0]==="_"||n.prop[0]==="*")&&(n.raws.before+=n.prop[0],n.prop=n.prop.slice(1));let r=[],l;for(;e.length&&(l=e[0][0],!(l!=="space"&&l!=="comment"));)r.push(e.shift());this.precheckMissedSemicolon(e);for(let c=e.length-1;c>=0;c--){if(o=e[c],o[1].toLowerCase()==="!important"){n.important=!0;let u=this.stringFrom(e,c);u=this.spacesFromEnd(e)+u,u!==" !important"&&(n.raws.important=u);break}else if(o[1].toLowerCase()==="important"){let u=e.slice(0),f="";for(let d=c;d>0;d--){let y=u[d][0];if(f.trim().indexOf("!")===0&&y!=="space")break;f=u.pop()[1]+f}f.trim().indexOf("!")===0&&(n.important=!0,n.raws.important=f,e=u)}if(o[0]!=="space"&&o[0]!=="comment")break}e.some(c=>c[0]!=="space"&&c[0]!=="comment")&&(n.raws.between+=r.map(c=>c[1]).join(""),r=[]),this.raw(n,"value",r.concat(e),t),n.value.includes(":")&&!t&&this.checkMissedSemicolon(e)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){let t=new ui;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t}end(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(e){if(this.spaces+=e[1],this.current.nodes){let t=this.current.nodes[this.current.nodes.length-1];t&&t.type==="rule"&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(e){let t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}}init(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="",e.type!=="comment"&&(this.semicolon=!1)}other(e){let t=!1,n=null,s=!1,o=null,r=[],l=e[1].startsWith("--"),a=[],c=e;for(;c;){if(n=c[0],a.push(c),n==="("||n==="[")o||(o=c),r.push(n==="("?")":"]");else if(l&&s&&n==="{")o||(o=c),r.push("}");else if(r.length===0)if(n===";")if(s){this.decl(a,l);return}else break;else if(n==="{"){this.rule(a);return}else if(n==="}"){this.tokenizer.back(a.pop()),t=!0;break}else n===":"&&(s=!0);else n===r[r.length-1]&&(r.pop(),r.length===0&&(o=null));c=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),r.length>0&&this.unclosedBracket(o),t&&s){if(!l)for(;a.length&&(c=a[a.length-1][0],!(c!=="space"&&c!=="comment"));)this.tokenizer.back(a.pop());this.decl(a,l)}else this.unknownWord(a)}parse(){let e;for(;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e);break}this.endFile()}precheckMissedSemicolon(){}raw(e,t,n,s){let o,r,l=n.length,a="",c=!0,u,f;for(let d=0;d<l;d+=1)o=n[d],r=o[0],r==="space"&&d===l-1&&!s?c=!1:r==="comment"?(f=n[d-1]?n[d-1][0]:"empty",u=n[d+1]?n[d+1][0]:"empty",!hi[f]&&!hi[u]?a.slice(-1)===","?c=!1:a+=o[1]:c=!1):a+=o[1];if(!c){let d=n.reduce((y,w)=>y+w[1],"");e.raws[t]={raw:d,value:a}}e[t]=a}rule(e){e.pop();let t=new ui;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t}spacesAndCommentsFromEnd(e){let t,n="";for(;e.length&&(t=e[e.length-1][0],!(t!=="space"&&t!=="comment"));)n=e.pop()[1]+n;return n}spacesAndCommentsFromStart(e){let t,n="";for(;e.length&&(t=e[0][0],!(t!=="space"&&t!=="comment"));)n+=e.shift()[1];return n}spacesFromEnd(e){let t,n="";for(;e.length&&(t=e[e.length-1][0],t==="space");)n=e.pop()[1]+n;return n}stringFrom(e,t){let n="";for(let s=t;s<e.length;s++)n+=e[s][1];return e.splice(t,e.length-t),n}unclosedBlock(){let e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)}unclosedBracket(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})}unexpectedClose(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})}unknownWord(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})}unnamedAtrule(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})}};var No=Mo;let Po=ve,Io=No,To=Ct;function _t(i,e){let t=new To(i,e),n=new Io(t);try{n.parse()}catch(s){throw s}return n.root}var Sn=_t;_t.default=_t;Po.registerParse(_t);let{isClean:J,my:Lo}=Xe,jo=Wi,Uo=St,zo=ve,Do=xn,di=_n,Bo=Sn,Ho=Qe;const Fo={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},Vo={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},Wo={Once:!0,postcssPlugin:!0,prepare:!0},Oe=0;function Le(i){return typeof i=="object"&&typeof i.then=="function"}function us(i){let e=!1,t=Fo[i.type];return i.type==="decl"?e=i.prop.toLowerCase():i.type==="atrule"&&(e=i.name.toLowerCase()),e&&i.append?[t,t+"-"+e,Oe,t+"Exit",t+"Exit-"+e]:e?[t,t+"-"+e,t+"Exit",t+"Exit-"+e]:i.append?[t,Oe,t+"Exit"]:[t,t+"Exit"]}function fi(i){let e;return i.type==="document"?e=["Document",Oe,"DocumentExit"]:i.type==="root"?e=["Root",Oe,"RootExit"]:e=us(i),{eventIndex:0,events:e,iterator:0,node:i,visitorIndex:0,visitors:[]}}function cn(i){return i[J]=!1,i.nodes&&i.nodes.forEach(e=>cn(e)),i}let un={},Ce=class hs{constructor(e,t,n){this.stringified=!1,this.processed=!1;let s;if(typeof t=="object"&&t!==null&&(t.type==="root"||t.type==="document"))s=cn(t);else if(t instanceof hs||t instanceof di)s=cn(t.root),t.map&&(typeof n.map>"u"&&(n.map={}),n.map.inline||(n.map.inline=!1),n.map.prev=t.map);else{let o=Bo;n.syntax&&(o=n.syntax.parse),n.parser&&(o=n.parser),o.parse&&(o=o.parse);try{s=o(t,n)}catch(r){this.processed=!0,this.error=r}s&&!s[Lo]&&zo.rebuild(s)}this.result=new di(e,s,n),this.helpers={...un,postcss:un,result:this.result},this.plugins=this.processor.plugins.map(o=>typeof o=="object"&&o.prepare?{...o,...o.prepare(this.result)}:o)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(e,t){let n=this.result.lastPlugin;try{t&&t.addToError(e),this.error=e,e.name==="CssSyntaxError"&&!e.plugin?(e.plugin=n.postcssPlugin,e.setMessage()):n.postcssVersion}catch(s){console&&console.error&&console.error(s)}return e}prepareVisitors(){this.listeners={};let e=(t,n,s)=>{this.listeners[n]||(this.listeners[n]=[]),this.listeners[n].push([t,s])};for(let t of this.plugins)if(typeof t=="object")for(let n in t){if(!Vo[n]&&/^[A-Z]/.test(n))throw new Error(`Unknown event ${n} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!Wo[n])if(typeof t[n]=="object")for(let s in t[n])s==="*"?e(t,n,t[n][s]):e(t,n+"-"+s.toLowerCase(),t[n][s]);else typeof t[n]=="function"&&e(t,n,t[n])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let e=0;e<this.plugins.length;e++){let t=this.plugins[e],n=this.runOnRoot(t);if(Le(n))try{await n}catch(s){throw this.handleError(s)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[J];){e[J]=!0;let t=[fi(e)];for(;t.length>0;){let n=this.visitTick(t);if(Le(n))try{await n}catch(s){let o=t[t.length-1].node;throw this.handleError(s,o)}}}if(this.listeners.OnceExit)for(let[t,n]of this.listeners.OnceExit){this.result.lastPlugin=t;try{if(e.type==="document"){let s=e.nodes.map(o=>n(o,this.helpers));await Promise.all(s)}else await n(e,this.helpers)}catch(s){throw this.handleError(s)}}}return this.processed=!0,this.stringify()}runOnRoot(e){this.result.lastPlugin=e;try{if(typeof e=="object"&&e.Once){if(this.result.root.type==="document"){let t=this.result.root.nodes.map(n=>e.Once(n,this.helpers));return Le(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=Uo;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let s=new jo(t,this.result.root,this.result.opts).generate();return this.result.css=s[0],this.result.map=s[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let e of this.plugins){let t=this.runOnRoot(e);if(Le(t))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[J];)e[J]=!0,this.walkSync(e);if(this.listeners.OnceExit)if(e.type==="document")for(let t of e.nodes)this.visitSync(this.listeners.OnceExit,t);else this.visitSync(this.listeners.OnceExit,e)}return this.result}then(e,t){return this.async().then(e,t)}toString(){return this.css}visitSync(e,t){for(let[n,s]of e){this.result.lastPlugin=n;let o;try{o=s(t,this.helpers)}catch(r){throw this.handleError(r,t.proxyOf)}if(t.type!=="root"&&t.type!=="document"&&!t.parent)return!0;if(Le(o))throw this.getAsyncError()}}visitTick(e){let t=e[e.length-1],{node:n,visitors:s}=t;if(n.type!=="root"&&n.type!=="document"&&!n.parent){e.pop();return}if(s.length>0&&t.visitorIndex<s.length){let[r,l]=s[t.visitorIndex];t.visitorIndex+=1,t.visitorIndex===s.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=r;try{return l(n.toProxy(),this.helpers)}catch(a){throw this.handleError(a,n)}}if(t.iterator!==0){let r=t.iterator,l;for(;l=n.nodes[n.indexes[r]];)if(n.indexes[r]+=1,!l[J]){l[J]=!0,e.push(fi(l));return}t.iterator=0,delete n.indexes[r]}let o=t.events;for(;t.eventIndex<o.length;){let r=o[t.eventIndex];if(t.eventIndex+=1,r===Oe){n.nodes&&n.nodes.length&&(n[J]=!0,t.iterator=n.getIterator());return}else if(this.listeners[r]){t.visitors=this.listeners[r];return}}e.pop()}walkSync(e){e[J]=!0;let t=us(e);for(let n of t)if(n===Oe)e.nodes&&e.each(s=>{s[J]||this.walkSync(s)});else{let s=this.listeners[n];if(s&&this.visitSync(s,e.toProxy()))return}}warnings(){return this.sync().warnings()}get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}};Ce.registerPostcss=i=>{un=i};var ds=Ce;Ce.default=Ce;Ho.registerLazyResult(Ce);Do.registerLazyResult(Ce);let qo=Wi,Go=St,Ko=Sn;const Zo=_n;let hn=class{constructor(e,t,n){t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=n,this._map=void 0;let s,o=Go;this.result=new Zo(this._processor,s,this._opts),this.result.css=t;let r=this;Object.defineProperty(this.result,"root",{get(){return r.root}});let l=new qo(o,s,this._opts,t);if(l.isMap()){let[a,c]=l.generate();a&&(this.result.css=a),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=Ko;try{e=t(this._css,this._opts)}catch(n){this.error=n}if(this.error)throw this.error;return this._root=e,e}get[Symbol.toStringTag](){return"NoWorkResult"}};var Jo=hn;hn.default=hn;let Xo=Jo,Qo=ds,Yo=xn,el=Qe,We=class{constructor(e=[]){this.version="8.4.32",this.plugins=this.normalize(e)}normalize(e){let t=[];for(let n of e)if(n.postcss===!0?n=n():n.postcss&&(n=n.postcss),typeof n=="object"&&Array.isArray(n.plugins))t=t.concat(n.plugins);else if(typeof n=="object"&&n.postcssPlugin)t.push(n);else if(typeof n=="function")t.push(n);else if(!(typeof n=="object"&&(n.parse||n.stringify)))throw new Error(n+" is not a PostCSS plugin");return t}process(e,t={}){return this.plugins.length===0&&typeof t.parser>"u"&&typeof t.stringifier>"u"&&typeof t.syntax>"u"?new Xo(this,e,t):new Qo(this,e,t)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}};var tl=We;We.default=We;el.registerProcessor(We);Yo.registerProcessor(We);let nl=Ot,il=Di,sl=kt,rl=En,ol=Ct,ll=Qe,al=$n;function qe(i,e){if(Array.isArray(i))return i.map(s=>qe(s));let{inputs:t,...n}=i;if(t){e=[];for(let s of t){let o={...s,__proto__:ol.prototype};o.map&&(o.map={...o.map,__proto__:il.prototype}),e.push(o)}}if(n.nodes&&(n.nodes=i.nodes.map(s=>qe(s,e))),n.source){let{inputId:s,...o}=n.source;n.source=o,s!=null&&(n.source.input=e[s])}if(n.type==="root")return new ll(n);if(n.type==="decl")return new nl(n);if(n.type==="rule")return new al(n);if(n.type==="comment")return new sl(n);if(n.type==="atrule")return new rl(n);throw new Error("Unknown node type: "+i.type)}var cl=qe;qe.default=qe;var pi={};let ul=yn,fs=Ot,hl=ds,dl=ve,An=tl,fl=St,pl=cl,ps=xn,gl=is,gs=kt,ms=En,ml=_n,bl=Ct,yl=Sn,vl=as,bs=$n,ys=Qe,wl=At;function O(...i){return i.length===1&&Array.isArray(i[0])&&(i=i[0]),new An(i)}O.plugin=function(e,t){let n=!1;function s(...r){console&&console.warn&&!n&&(n=!0,console.warn(e+`: postcss.plugin was deprecated. Migration guide:
198
198
  https://evilmartians.com/chronicles/postcss-8-plugin-migration`),pi.LANG&&pi.LANG.startsWith("cn")&&console.warn(e+`: 里面 postcss.plugin 被弃用. 迁移指南:
199
- https://www.w3ctech.com/topic/2226`));let l=t(...r);return l.postcssPlugin=e,l.postcssVersion=new An().version,l}let o;return Object.defineProperty(s,"postcss",{get(){return o||(o=s()),o}}),s.process=function(r,l,a){return O([s(a)]).process(r,l)},s};O.stringify=fl;O.parse=vl;O.fromJSON=pl;O.list=yl;O.comment=i=>new gs(i);O.atRule=i=>new ms(i);O.decl=i=>new fs(i);O.rule=i=>new bs(i);O.root=i=>new vs(i);O.document=i=>new ps(i);O.CssSyntaxError=ul;O.Declaration=fs;O.Container=dl;O.Processor=An;O.Document=ps;O.Comment=gs;O.Warning=gl;O.AtRule=ms;O.Result=ml;O.Input=bl;O.Rule=bs;O.Root=vs;O.Node=wl;hl.registerPostcss(O);var xl=O;O.default=O;const M=Li(xl);M.stringify;M.fromJSON;M.plugin;M.parse;M.list;M.document;M.comment;M.atRule;M.rule;M.decl;M.root;M.CssSyntaxError;M.Declaration;M.Container;M.Processor;M.Document;M.Comment;M.Warning;M.AtRule;M.Result;M.Input;M.Rule;M.Root;M.Node;var _l=function(e){const t=e.prefix,n=/\s+$/.test(t)?t:`${t} `,s=e.ignoreFiles?[].concat(e.ignoreFiles):[],o=e.includeFiles?[].concat(e.includeFiles):[];return function(r){s.length&&r.source.input.file&&gi(r.source.input.file,s)||o.length&&r.source.input.file&&!gi(r.source.input.file,o)||r.walkRules(l=>{const a=["keyframes","-webkit-keyframes","-moz-keyframes","-o-keyframes"];l.parent&&a.includes(l.parent.name)||(l.selectors=l.selectors.map(c=>e.exclude&&El(c,e.exclude)?c:e.transform?e.transform(t,c,n+c,r.source.input.file,l):n+c))})}};function gi(i,e){return e.some(t=>t instanceof RegExp?t.test(i):i.includes(t))}function El(i,e){return e.some(t=>t instanceof RegExp?t.test(i):i===t)}const $l=Li(_l),Sl="code{white-space:pre}.example{display:flex;flex-wrap:wrap;flex-direction:row;align-items:center;gap:16px}.example>*{flex:1 1 500px}.example .tab-control{overflow:hidden}.example div[role=tab]{cursor:pointer;padding:8px 16px;display:inline-block;font-size:16px;border-bottom:2px solid transparent;background-clip:padding-box;-webkit-user-select:none;user-select:none}.example div[role=tab]:hover{background-color:#1467ba14}.example div[role=tab][selected]{background-color:#1467ba21;border-bottom:2px solid #1467ba}.tab-content{margin:16px 0}.tab-content>pre{padding-top:0}.tab-content.code{max-height:500px;overflow:auto}.tab-content.code pre{margin:0}",Al="pre code.hljs{display:block;overflow-x:auto;padding:1em}code.hljs{padding:3px 5px}.hljs{color:#24292e;background:#fff}.hljs-doctag,.hljs-keyword,.hljs-meta .hljs-keyword,.hljs-template-tag,.hljs-template-variable,.hljs-type,.hljs-variable.language_{color:#d73a49}.hljs-title,.hljs-title.class_,.hljs-title.class_.inherited__,.hljs-title.function_{color:#6f42c1}.hljs-attr,.hljs-attribute,.hljs-literal,.hljs-meta,.hljs-number,.hljs-operator,.hljs-variable,.hljs-selector-attr,.hljs-selector-class,.hljs-selector-id{color:#005cc5}.hljs-regexp,.hljs-string,.hljs-meta .hljs-string{color:#032f62}.hljs-built_in,.hljs-symbol{color:#e36209}.hljs-comment,.hljs-code,.hljs-formula{color:#6a737d}.hljs-name,.hljs-quote,.hljs-selector-tag,.hljs-selector-pseudo{color:#22863a}.hljs-subst{color:#24292e}.hljs-section{color:#005cc5;font-weight:700}.hljs-bullet{color:#735c0f}.hljs-emphasis{color:#24292e;font-style:italic}.hljs-strong{color:#24292e;font-weight:700}.hljs-addition{color:#22863a;background-color:#f0fff4}.hljs-deletion{color:#b31d28;background-color:#ffeef0}";function Ol(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}function ys(i){return i instanceof Map?i.clear=i.delete=i.set=function(){throw new Error("map is read-only")}:i instanceof Set&&(i.add=i.clear=i.delete=function(){throw new Error("set is read-only")}),Object.freeze(i),Object.getOwnPropertyNames(i).forEach(e=>{const t=i[e],n=typeof t;(n==="object"||n==="function")&&!Object.isFrozen(t)&&ys(t)}),i}class mi{constructor(e){e.data===void 0&&(e.data={}),this.data=e.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function ws(i){return i.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")}function oe(i,...e){const t=Object.create(null);for(const n in i)t[n]=i[n];return e.forEach(function(n){for(const s in n)t[s]=n[s]}),t}const Cl="</span>",bi=i=>!!i.scope,kl=(i,{prefix:e})=>{if(i.startsWith("language:"))return i.replace("language:","language-");if(i.includes(".")){const t=i.split(".");return[`${e}${t.shift()}`,...t.map((n,s)=>`${n}${"_".repeat(s+1)}`)].join(" ")}return`${e}${i}`};class Rl{constructor(e,t){this.buffer="",this.classPrefix=t.classPrefix,e.walk(this)}addText(e){this.buffer+=ws(e)}openNode(e){if(!bi(e))return;const t=kl(e.scope,{prefix:this.classPrefix});this.span(t)}closeNode(e){bi(e)&&(this.buffer+=Cl)}value(){return this.buffer}span(e){this.buffer+=`<span class="${e}">`}}const vi=(i={})=>{const e={children:[]};return Object.assign(e,i),e};class On{constructor(){this.rootNode=vi(),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=vi({scope:e});this.add(t),this.stack.push(t)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(e){return this.constructor._walk(e,this.rootNode)}static _walk(e,t){return typeof t=="string"?e.addText(t):t.children&&(e.openNode(t),t.children.forEach(n=>this._walk(e,n)),e.closeNode(t)),e}static _collapse(e){typeof e!="string"&&e.children&&(e.children.every(t=>typeof t=="string")?e.children=[e.children.join("")]:e.children.forEach(t=>{On._collapse(t)}))}}class Ml extends On{constructor(e){super(),this.options=e}addText(e){e!==""&&this.add(e)}startScope(e){this.openNode(e)}endScope(){this.closeNode()}__addSublanguage(e,t){const n=e.root;t&&(n.scope=`language:${t}`),this.add(n)}toHTML(){return new Rl(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function Ge(i){return i?typeof i=="string"?i:i.source:null}function xs(i){return we("(?=",i,")")}function Nl(i){return we("(?:",i,")*")}function Pl(i){return we("(?:",i,")?")}function we(...i){return i.map(e=>Ge(e)).join("")}function Il(i){const e=i[i.length-1];return typeof e=="object"&&e.constructor===Object?(i.splice(i.length-1,1),e):{}}function Cn(...i){return"("+(Il(i).capture?"":"?:")+i.map(e=>Ge(e)).join("|")+")"}function _s(i){return new RegExp(i.toString()+"|").exec("").length-1}function Tl(i,e){const t=i&&i.exec(e);return t&&t.index===0}const Ll=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function kn(i,{joinWith:e}){let t=0;return i.map(n=>{t+=1;const s=t;let o=Ge(n),r="";for(;o.length>0;){const l=Ll.exec(o);if(!l){r+=o;break}r+=o.substring(0,l.index),o=o.substring(l.index+l[0].length),l[0][0]==="\\"&&l[1]?r+="\\"+String(Number(l[1])+s):(r+=l[0],l[0]==="("&&t++)}return r}).map(n=>`(${n})`).join(e)}const jl=/\b\B/,Es="[a-zA-Z]\\w*",Rn="[a-zA-Z_]\\w*",$s="\\b\\d+(\\.\\d+)?",Ss="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",As="\\b(0b[01]+)",Ul="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",zl=(i={})=>{const e=/^#![ ]*\//;return i.binary&&(i.begin=we(e,/.*\b/,i.binary,/\b.*/)),oe({scope:"meta",begin:e,end:/$/,relevance:0,"on:begin":(t,n)=>{t.index!==0&&n.ignoreMatch()}},i)},Ke={begin:"\\\\[\\s\\S]",relevance:0},Dl={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[Ke]},Bl={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[Ke]},Hl={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/},Rt=function(i,e,t={}){const n=oe({scope:"comment",begin:i,end:e,contains:[]},t);n.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const s=Cn("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return n.contains.push({begin:we(/[ ]+/,"(",s,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),n},Fl=Rt("//","$"),Vl=Rt("/\\*","\\*/"),Wl=Rt("#","$"),ql={scope:"number",begin:$s,relevance:0},Gl={scope:"number",begin:Ss,relevance:0},Kl={scope:"number",begin:As,relevance:0},Zl={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[Ke,{begin:/\[/,end:/\]/,relevance:0,contains:[Ke]}]},Jl={scope:"title",begin:Es,relevance:0},Xl={scope:"title",begin:Rn,relevance:0},Ql={begin:"\\.\\s*"+Rn,relevance:0},Yl=function(i){return Object.assign(i,{"on:begin":(e,t)=>{t.data._beginMatch=e[1]},"on:end":(e,t)=>{t.data._beginMatch!==e[1]&&t.ignoreMatch()}})};var ut=Object.freeze({__proto__:null,APOS_STRING_MODE:Dl,BACKSLASH_ESCAPE:Ke,BINARY_NUMBER_MODE:Kl,BINARY_NUMBER_RE:As,COMMENT:Rt,C_BLOCK_COMMENT_MODE:Vl,C_LINE_COMMENT_MODE:Fl,C_NUMBER_MODE:Gl,C_NUMBER_RE:Ss,END_SAME_AS_BEGIN:Yl,HASH_COMMENT_MODE:Wl,IDENT_RE:Es,MATCH_NOTHING_RE:jl,METHOD_GUARD:Ql,NUMBER_MODE:ql,NUMBER_RE:$s,PHRASAL_WORDS_MODE:Hl,QUOTE_STRING_MODE:Bl,REGEXP_MODE:Zl,RE_STARTERS_RE:Ul,SHEBANG:zl,TITLE_MODE:Jl,UNDERSCORE_IDENT_RE:Rn,UNDERSCORE_TITLE_MODE:Xl});function ea(i,e){i.input[i.index-1]==="."&&e.ignoreMatch()}function ta(i,e){i.className!==void 0&&(i.scope=i.className,delete i.className)}function na(i,e){e&&i.beginKeywords&&(i.begin="\\b("+i.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",i.__beforeBegin=ea,i.keywords=i.keywords||i.beginKeywords,delete i.beginKeywords,i.relevance===void 0&&(i.relevance=0))}function ia(i,e){Array.isArray(i.illegal)&&(i.illegal=Cn(...i.illegal))}function sa(i,e){if(i.match){if(i.begin||i.end)throw new Error("begin & end are not supported with match");i.begin=i.match,delete i.match}}function ra(i,e){i.relevance===void 0&&(i.relevance=1)}const oa=(i,e)=>{if(!i.beforeMatch)return;if(i.starts)throw new Error("beforeMatch cannot be used with starts");const t=Object.assign({},i);Object.keys(i).forEach(n=>{delete i[n]}),i.keywords=t.keywords,i.begin=we(t.beforeMatch,xs(t.begin)),i.starts={relevance:0,contains:[Object.assign(t,{endsParent:!0})]},i.relevance=0,delete t.beforeMatch},la=["of","and","for","in","not","or","if","then","parent","list","value"],aa="keyword";function Os(i,e,t=aa){const n=Object.create(null);return typeof i=="string"?s(t,i.split(" ")):Array.isArray(i)?s(t,i):Object.keys(i).forEach(function(o){Object.assign(n,Os(i[o],e,o))}),n;function s(o,r){e&&(r=r.map(l=>l.toLowerCase())),r.forEach(function(l){const a=l.split("|");n[a[0]]=[o,ca(a[0],a[1])]})}}function ca(i,e){return e?Number(e):ua(i)?0:1}function ua(i){return la.includes(i.toLowerCase())}const yi={},ge=i=>{console.error(i)},wi=(i,...e)=>{console.log(`WARN: ${i}`,...e)},Ee=(i,e)=>{yi[`${i}/${e}`]||(console.log(`Deprecated as of ${i}. ${e}`),yi[`${i}/${e}`]=!0)},Et=new Error;function Cs(i,e,{key:t}){let n=0;const s=i[t],o={},r={};for(let l=1;l<=e.length;l++)r[l+n]=s[l],o[l+n]=!0,n+=_s(e[l-1]);i[t]=r,i[t]._emit=o,i[t]._multi=!0}function ha(i){if(Array.isArray(i.begin)){if(i.skip||i.excludeBegin||i.returnBegin)throw ge("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),Et;if(typeof i.beginScope!="object"||i.beginScope===null)throw ge("beginScope must be object"),Et;Cs(i,i.begin,{key:"beginScope"}),i.begin=kn(i.begin,{joinWith:""})}}function da(i){if(Array.isArray(i.end)){if(i.skip||i.excludeEnd||i.returnEnd)throw ge("skip, excludeEnd, returnEnd not compatible with endScope: {}"),Et;if(typeof i.endScope!="object"||i.endScope===null)throw ge("endScope must be object"),Et;Cs(i,i.end,{key:"endScope"}),i.end=kn(i.end,{joinWith:""})}}function fa(i){i.scope&&typeof i.scope=="object"&&i.scope!==null&&(i.beginScope=i.scope,delete i.scope)}function pa(i){fa(i),typeof i.beginScope=="string"&&(i.beginScope={_wrap:i.beginScope}),typeof i.endScope=="string"&&(i.endScope={_wrap:i.endScope}),ha(i),da(i)}function ga(i){function e(r,l){return new RegExp(Ge(r),"m"+(i.case_insensitive?"i":"")+(i.unicodeRegex?"u":"")+(l?"g":""))}class t{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(l,a){a.position=this.position++,this.matchIndexes[this.matchAt]=a,this.regexes.push([a,l]),this.matchAt+=_s(l)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const l=this.regexes.map(a=>a[1]);this.matcherRe=e(kn(l,{joinWith:"|"}),!0),this.lastIndex=0}exec(l){this.matcherRe.lastIndex=this.lastIndex;const a=this.matcherRe.exec(l);if(!a)return null;const c=a.findIndex((f,d)=>d>0&&f!==void 0),u=this.matchIndexes[c];return a.splice(0,c),Object.assign(a,u)}}class n{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(l){if(this.multiRegexes[l])return this.multiRegexes[l];const a=new t;return this.rules.slice(l).forEach(([c,u])=>a.addRule(c,u)),a.compile(),this.multiRegexes[l]=a,a}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(l,a){this.rules.push([l,a]),a.type==="begin"&&this.count++}exec(l){const a=this.getMatcher(this.regexIndex);a.lastIndex=this.lastIndex;let c=a.exec(l);if(this.resumingScanAtSamePosition()&&!(c&&c.index===this.lastIndex)){const u=this.getMatcher(0);u.lastIndex=this.lastIndex+1,c=u.exec(l)}return c&&(this.regexIndex+=c.position+1,this.regexIndex===this.count&&this.considerAll()),c}}function s(r){const l=new n;return r.contains.forEach(a=>l.addRule(a.begin,{rule:a,type:"begin"})),r.terminatorEnd&&l.addRule(r.terminatorEnd,{type:"end"}),r.illegal&&l.addRule(r.illegal,{type:"illegal"}),l}function o(r,l){const a=r;if(r.isCompiled)return a;[ta,sa,pa,oa].forEach(u=>u(r,l)),i.compilerExtensions.forEach(u=>u(r,l)),r.__beforeBegin=null,[na,ia,ra].forEach(u=>u(r,l)),r.isCompiled=!0;let c=null;return typeof r.keywords=="object"&&r.keywords.$pattern&&(r.keywords=Object.assign({},r.keywords),c=r.keywords.$pattern,delete r.keywords.$pattern),c=c||/\w+/,r.keywords&&(r.keywords=Os(r.keywords,i.case_insensitive)),a.keywordPatternRe=e(c,!0),l&&(r.begin||(r.begin=/\B|\b/),a.beginRe=e(a.begin),!r.end&&!r.endsWithParent&&(r.end=/\B|\b/),r.end&&(a.endRe=e(a.end)),a.terminatorEnd=Ge(a.end)||"",r.endsWithParent&&l.terminatorEnd&&(a.terminatorEnd+=(r.end?"|":"")+l.terminatorEnd)),r.illegal&&(a.illegalRe=e(r.illegal)),r.contains||(r.contains=[]),r.contains=[].concat(...r.contains.map(function(u){return ma(u==="self"?r:u)})),r.contains.forEach(function(u){o(u,a)}),r.starts&&o(r.starts,l),a.matcher=s(a),a}if(i.compilerExtensions||(i.compilerExtensions=[]),i.contains&&i.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return i.classNameAliases=oe(i.classNameAliases||{}),o(i)}function ks(i){return i?i.endsWithParent||ks(i.starts):!1}function ma(i){return i.variants&&!i.cachedVariants&&(i.cachedVariants=i.variants.map(function(e){return oe(i,{variants:null},e)})),i.cachedVariants?i.cachedVariants:ks(i)?oe(i,{starts:i.starts?oe(i.starts):null}):Object.isFrozen(i)?oe(i):i}var ba="11.9.0";class va extends Error{constructor(e,t){super(e),this.name="HTMLInjectionError",this.html=t}}const Gt=ws,xi=oe,_i=Symbol("nomatch"),ya=7,Rs=function(i){const e=Object.create(null),t=Object.create(null),n=[];let s=!0;const o="Could not find the language '{}', did you forget to load/include a language module?",r={disableAutodetect:!0,name:"Plain text",contains:[]};let l={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:Ml};function a(h){return l.noHighlightRe.test(h)}function c(h){let m=h.className+" ";m+=h.parentNode?h.parentNode.className:"";const x=l.languageDetectRe.exec(m);if(x){const S=N(x[1]);return S||(wi(o.replace("{}",x[1])),wi("Falling back to no-highlight mode for this block.",h)),S?x[1]:"no-highlight"}return m.split(/\s+/).find(S=>a(S)||N(S))}function u(h,m,x){let S="",A="";typeof m=="object"?(S=h,x=m.ignoreIllegals,A=m.language):(Ee("10.7.0","highlight(lang, code, ...args) has been deprecated."),Ee("10.7.0",`Please use highlight(code, options) instead.
200
- https://github.com/highlightjs/highlight.js/issues/2277`),A=h,S=m),x===void 0&&(x=!0);const I={code:S,language:A};G("before:highlight",I);const V=I.result?I.result:f(I.language,I.code,x);return V.code=I.code,G("after:highlight",V),V}function f(h,m,x,S){const A=Object.create(null);function I(p,y){return p.keywords[y]}function V(){if(!_.keywords){j.addText(k);return}let p=0;_.keywordPatternRe.lastIndex=0;let y=_.keywordPatternRe.exec(k),E="";for(;y;){E+=k.substring(p,y.index);const C=Z.case_insensitive?y[0].toLowerCase():y[0],z=I(_,C);if(z){const[te,Vs]=z;if(j.addText(E),E="",A[C]=(A[C]||0)+1,A[C]<=ya&&(et+=Vs),te.startsWith("_"))E+=y[0];else{const Ws=Z.classNameAliases[te]||te;K(y[0],Ws)}}else E+=y[0];p=_.keywordPatternRe.lastIndex,y=_.keywordPatternRe.exec(k)}E+=k.substring(p),j.addText(E)}function ce(){if(k==="")return;let p=null;if(typeof _.subLanguage=="string"){if(!e[_.subLanguage]){j.addText(k);return}p=f(_.subLanguage,k,!0,Tn[_.subLanguage]),Tn[_.subLanguage]=p._top}else p=v(k,_.subLanguage.length?_.subLanguage:null);_.relevance>0&&(et+=p.relevance),j.__addSublanguage(p._emitter,p.language)}function T(){_.subLanguage!=null?ce():V(),k=""}function K(p,y){p!==""&&(j.startScope(y),j.addText(p),j.endScope())}function Mn(p,y){let E=1;const C=y.length-1;for(;E<=C;){if(!p._emit[E]){E++;continue}const z=Z.classNameAliases[p[E]]||p[E],te=y[E];z?K(te,z):(k=te,V(),k=""),E++}}function Nn(p,y){return p.scope&&typeof p.scope=="string"&&j.openNode(Z.classNameAliases[p.scope]||p.scope),p.beginScope&&(p.beginScope._wrap?(K(k,Z.classNameAliases[p.beginScope._wrap]||p.beginScope._wrap),k=""):p.beginScope._multi&&(Mn(p.beginScope,y),k="")),_=Object.create(p,{parent:{value:_}}),_}function Pn(p,y,E){let C=Tl(p.endRe,E);if(C){if(p["on:end"]){const z=new mi(p);p["on:end"](y,z),z.isMatchIgnored&&(C=!1)}if(C){for(;p.endsParent&&p.parent;)p=p.parent;return p}}if(p.endsWithParent)return Pn(p.parent,y,E)}function zs(p){return _.matcher.regexIndex===0?(k+=p[0],1):(It=!0,0)}function Ds(p){const y=p[0],E=p.rule,C=new mi(E),z=[E.__beforeBegin,E["on:begin"]];for(const te of z)if(te&&(te(p,C),C.isMatchIgnored))return zs(y);return E.skip?k+=y:(E.excludeBegin&&(k+=y),T(),!E.returnBegin&&!E.excludeBegin&&(k=y)),Nn(E,p),E.returnBegin?0:y.length}function Bs(p){const y=p[0],E=m.substring(p.index),C=Pn(_,p,E);if(!C)return _i;const z=_;_.endScope&&_.endScope._wrap?(T(),K(y,_.endScope._wrap)):_.endScope&&_.endScope._multi?(T(),Mn(_.endScope,p)):z.skip?k+=y:(z.returnEnd||z.excludeEnd||(k+=y),T(),z.excludeEnd&&(k=y));do _.scope&&j.closeNode(),!_.skip&&!_.subLanguage&&(et+=_.relevance),_=_.parent;while(_!==C.parent);return C.starts&&Nn(C.starts,p),z.returnEnd?0:y.length}function Hs(){const p=[];for(let y=_;y!==Z;y=y.parent)y.scope&&p.unshift(y.scope);p.forEach(y=>j.openNode(y))}let Ye={};function In(p,y){const E=y&&y[0];if(k+=p,E==null)return T(),0;if(Ye.type==="begin"&&y.type==="end"&&Ye.index===y.index&&E===""){if(k+=m.slice(y.index,y.index+1),!s){const C=new Error(`0 width match regex (${h})`);throw C.languageName=h,C.badRule=Ye.rule,C}return 1}if(Ye=y,y.type==="begin")return Ds(y);if(y.type==="illegal"&&!x){const C=new Error('Illegal lexeme "'+E+'" for mode "'+(_.scope||"<unnamed>")+'"');throw C.mode=_,C}else if(y.type==="end"){const C=Bs(y);if(C!==_i)return C}if(y.type==="illegal"&&E==="")return 1;if(Pt>1e5&&Pt>y.index*3)throw new Error("potential infinite loop, way more iterations than matches");return k+=E,E.length}const Z=N(h);if(!Z)throw ge(o.replace("{}",h)),new Error('Unknown language: "'+h+'"');const Fs=ga(Z);let Nt="",_=S||Fs;const Tn={},j=new l.__emitter(l);Hs();let k="",et=0,ue=0,Pt=0,It=!1;try{if(Z.__emitTokens)Z.__emitTokens(m,j);else{for(_.matcher.considerAll();;){Pt++,It?It=!1:_.matcher.considerAll(),_.matcher.lastIndex=ue;const p=_.matcher.exec(m);if(!p)break;const y=m.substring(ue,p.index),E=In(y,p);ue=p.index+E}In(m.substring(ue))}return j.finalize(),Nt=j.toHTML(),{language:h,value:Nt,relevance:et,illegal:!1,_emitter:j,_top:_}}catch(p){if(p.message&&p.message.includes("Illegal"))return{language:h,value:Gt(m),illegal:!0,relevance:0,_illegalBy:{message:p.message,index:ue,context:m.slice(ue-100,ue+100),mode:p.mode,resultSoFar:Nt},_emitter:j};if(s)return{language:h,value:Gt(m),illegal:!1,relevance:0,errorRaised:p,_emitter:j,_top:_};throw p}}function d(h){const m={value:Gt(h),illegal:!1,relevance:0,_top:r,_emitter:new l.__emitter(l)};return m._emitter.addText(h),m}function v(h,m){m=m||l.languages||Object.keys(e);const x=d(h),S=m.filter(N).filter(q).map(T=>f(T,h,!1));S.unshift(x);const A=S.sort((T,K)=>{if(T.relevance!==K.relevance)return K.relevance-T.relevance;if(T.language&&K.language){if(N(T.language).supersetOf===K.language)return 1;if(N(K.language).supersetOf===T.language)return-1}return 0}),[I,V]=A,ce=I;return ce.secondBest=V,ce}function w(h,m,x){const S=m&&t[m]||x;h.classList.add("hljs"),h.classList.add(`language-${S}`)}function $(h){let m=null;const x=c(h);if(a(x))return;if(G("before:highlightElement",{el:h,language:x}),h.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",h);return}if(h.children.length>0&&(l.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(h)),l.throwUnescapedHTML))throw new va("One of your code blocks includes unescaped HTML.",h.innerHTML);m=h;const S=m.textContent,A=x?u(S,{language:x,ignoreIllegals:!0}):v(S);h.innerHTML=A.value,h.dataset.highlighted="yes",w(h,x,A.language),h.result={language:A.language,re:A.relevance,relevance:A.relevance},A.secondBest&&(h.secondBest={language:A.secondBest.language,relevance:A.secondBest.relevance}),G("after:highlightElement",{el:h,result:A,text:S})}function b(h){l=xi(l,h)}const D=()=>{U(),Ee("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function B(){U(),Ee("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let Q=!1;function U(){if(document.readyState==="loading"){Q=!0;return}document.querySelectorAll(l.cssSelector).forEach($)}function H(){Q&&U()}typeof window<"u"&&window.addEventListener&&window.addEventListener("DOMContentLoaded",H,!1);function ae(h,m){let x=null;try{x=m(i)}catch(S){if(ge("Language definition for '{}' could not be registered.".replace("{}",h)),s)ge(S);else throw S;x=r}x.name||(x.name=h),e[h]=x,x.rawDefinition=m.bind(null,i),x.aliases&&P(x.aliases,{languageName:h})}function Y(h){delete e[h];for(const m of Object.keys(t))t[m]===h&&delete t[m]}function g(){return Object.keys(e)}function N(h){return h=(h||"").toLowerCase(),e[h]||e[t[h]]}function P(h,{languageName:m}){typeof h=="string"&&(h=[h]),h.forEach(x=>{t[x.toLowerCase()]=m})}function q(h){const m=N(h);return m&&!m.disableAutodetect}function F(h){h["before:highlightBlock"]&&!h["before:highlightElement"]&&(h["before:highlightElement"]=m=>{h["before:highlightBlock"](Object.assign({block:m.el},m))}),h["after:highlightBlock"]&&!h["after:highlightElement"]&&(h["after:highlightElement"]=m=>{h["after:highlightBlock"](Object.assign({block:m.el},m))})}function ee(h){F(h),n.push(h)}function xe(h){const m=n.indexOf(h);m!==-1&&n.splice(m,1)}function G(h,m){const x=h;n.forEach(function(S){S[x]&&S[x](m)})}function se(h){return Ee("10.7.0","highlightBlock will be removed entirely in v12.0"),Ee("10.7.0","Please use highlightElement now."),$(h)}Object.assign(i,{highlight:u,highlightAuto:v,highlightAll:U,highlightElement:$,highlightBlock:se,configure:b,initHighlighting:D,initHighlightingOnLoad:B,registerLanguage:ae,unregisterLanguage:Y,listLanguages:g,getLanguage:N,registerAliases:P,autoDetection:q,inherit:xi,addPlugin:ee,removePlugin:xe}),i.debugMode=function(){s=!1},i.safeMode=function(){s=!0},i.versionString=ba,i.regex={concat:we,lookahead:xs,either:Cn,optional:Pl,anyNumberOfTimes:Nl};for(const h in ut)typeof ut[h]=="object"&&ys(ut[h]);return Object.assign(i,ut),i},ke=Rs({});ke.newInstance=()=>Rs({});var wa=ke;ke.HighlightJS=ke;ke.default=ke;const Mt=Ol(wa),$t="[A-Za-z$_][0-9A-Za-z$_]*",Ms=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],Ns=["true","false","null","undefined","NaN","Infinity"],Ps=["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"],Is=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],Ts=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],Ls=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],js=[].concat(Ts,Ps,Is);function xa(i){const e=i.regex,t=(h,{after:m})=>{const x="</"+h[0].slice(1);return h.input.indexOf(x,m)!==-1},n=$t,s={begin:"<>",end:"</>"},o=/<[A-Za-z0-9\\._:-]+\s*\/>/,r={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(h,m)=>{const x=h[0].length+h.index,S=h.input[x];if(S==="<"||S===","){m.ignoreMatch();return}S===">"&&(t(h,{after:x})||m.ignoreMatch());let A;const I=h.input.substring(x);if(A=I.match(/^\s*=/)){m.ignoreMatch();return}if((A=I.match(/^\s+extends\s+/))&&A.index===0){m.ignoreMatch();return}}},l={$pattern:$t,keyword:Ms,literal:Ns,built_in:js,"variable.language":Ls},a="[0-9](_?[0-9])*",c=`\\.(${a})`,u="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",f={className:"number",variants:[{begin:`(\\b(${u})((${c})|\\.)?|(${c}))[eE][+-]?(${a})\\b`},{begin:`\\b(${u})\\b((${c})\\b|\\.)?|(${c})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},d={className:"subst",begin:"\\$\\{",end:"\\}",keywords:l,contains:[]},v={begin:"html`",end:"",starts:{end:"`",returnEnd:!1,contains:[i.BACKSLASH_ESCAPE,d],subLanguage:"xml"}},w={begin:"css`",end:"",starts:{end:"`",returnEnd:!1,contains:[i.BACKSLASH_ESCAPE,d],subLanguage:"css"}},$={begin:"gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[i.BACKSLASH_ESCAPE,d],subLanguage:"graphql"}},b={className:"string",begin:"`",end:"`",contains:[i.BACKSLASH_ESCAPE,d]},D={className:"comment",variants:[i.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:n+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),i.C_BLOCK_COMMENT_MODE,i.C_LINE_COMMENT_MODE]},B=[i.APOS_STRING_MODE,i.QUOTE_STRING_MODE,v,w,$,b,{match:/\$\d+/},f];d.contains=B.concat({begin:/\{/,end:/\}/,keywords:l,contains:["self"].concat(B)});const Q=[].concat(D,d.contains),U=Q.concat([{begin:/\(/,end:/\)/,keywords:l,contains:["self"].concat(Q)}]),H={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:l,contains:U},ae={variants:[{match:[/class/,/\s+/,n,/\s+/,/extends/,/\s+/,e.concat(n,"(",e.concat(/\./,n),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,n],scope:{1:"keyword",3:"title.class"}}]},Y={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:{_:[...Ps,...Is]}},g={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},N={variants:[{match:[/function/,/\s+/,n,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[H],illegal:/%/},P={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function q(h){return e.concat("(?!",h.join("|"),")")}const F={match:e.concat(/\b/,q([...Ts,"super","import"]),n,e.lookahead(/\(/)),className:"title.function",relevance:0},ee={begin:e.concat(/\./,e.lookahead(e.concat(n,/(?![0-9A-Za-z$_(])/))),end:n,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},xe={match:[/get|set/,/\s+/,n,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},H]},G="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+i.UNDERSCORE_IDENT_RE+")\\s*=>",se={match:[/const|var|let/,/\s+/,n,/\s*/,/=\s*/,/(async\s*)?/,e.lookahead(G)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[H]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:l,exports:{PARAMS_CONTAINS:U,CLASS_REFERENCE:Y},illegal:/#(?![$_A-z])/,contains:[i.SHEBANG({label:"shebang",binary:"node",relevance:5}),g,i.APOS_STRING_MODE,i.QUOTE_STRING_MODE,v,w,$,b,D,{match:/\$\d+/},f,Y,{className:"attr",begin:n+e.lookahead(":"),relevance:0},se,{begin:"("+i.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[D,i.REGEXP_MODE,{className:"function",begin:G,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:i.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:l,contains:U}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:s.begin,end:s.end},{match:o},{begin:r.begin,"on:begin":r.isTrulyOpeningTag,end:r.end}],subLanguage:"xml",contains:[{begin:r.begin,end:r.end,skip:!0,contains:["self"]}]}]},N,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+i.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[H,i.inherit(i.TITLE_MODE,{begin:n,className:"title.function"})]},{match:/\.\.\./,relevance:0},ee,{match:"\\$"+n,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[H]},F,P,ae,xe,{match:/\$[(.]/}]}}function _a(i){const e=xa(i),t=$t,n=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],s={beginKeywords:"namespace",end:/\{/,excludeEnd:!0,contains:[e.exports.CLASS_REFERENCE]},o={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:n},contains:[e.exports.CLASS_REFERENCE]},r={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},l=["type","namespace","interface","public","private","protected","implements","declare","abstract","readonly","enum","override"],a={$pattern:$t,keyword:Ms.concat(l),literal:Ns,built_in:js.concat(n),"variable.language":Ls},c={className:"meta",begin:"@"+t},u=(d,v,w)=>{const $=d.contains.findIndex(b=>b.label===v);if($===-1)throw new Error("can not find mode to replace");d.contains.splice($,1,w)};Object.assign(e.keywords,a),e.exports.PARAMS_CONTAINS.push(c),e.contains=e.contains.concat([c,s,o]),u(e,"shebang",i.SHEBANG()),u(e,"use_strict",r);const f=e.contains.find(d=>d.label==="func.def");return f.relevance=0,Object.assign(e,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),e}function Ea(i){const e=i.regex,t=e.concat(/[\p{L}_]/u,e.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),n=/[\p{L}0-9._:-]+/u,s={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},o={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},r=i.inherit(o,{begin:/\(/,end:/\)/}),l=i.inherit(i.APOS_STRING_MODE,{className:"string"}),a=i.inherit(i.QUOTE_STRING_MODE,{className:"string"}),c={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:n,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[s]},{begin:/'/,end:/'/,contains:[s]},{begin:/[^\s"'=<>`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,unicodeRegex:!0,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,relevance:10,contains:[o,a,l,r,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[o,r,a,l]}]}]},i.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},s,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[a]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[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 $a=i=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:i.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[i.APOS_STRING_MODE,i.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:i.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),Sa=["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"],Aa=["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"],Oa=["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"],Ca=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],ka=["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 Ra(i){const e=i.regex,t=$a(i),n={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},s="and or not only",o=/@-?\w[\w]*(-\w+)*/,r="[a-zA-Z-][a-zA-Z0-9_-]*",l=[i.APOS_STRING_MODE,i.QUOTE_STRING_MODE];return{name:"CSS",case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"},classNameAliases:{keyframePosition:"selector-tag"},contains:[t.BLOCK_COMMENT,n,t.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:"selector-class",begin:"\\."+r,relevance:0},t.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+Oa.join("|")+")"},{begin:":(:)?("+Ca.join("|")+")"}]},t.CSS_VARIABLE,{className:"attribute",begin:"\\b("+ka.join("|")+")\\b"},{begin:/:/,end:/[;}{]/,contains:[t.BLOCK_COMMENT,t.HEXCOLOR,t.IMPORTANT,t.CSS_NUMBER_MODE,...l,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[...l,{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},t.FUNCTION_DISPATCH]},{begin:e.lookahead(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:o},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:s,attribute:Aa.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...l,t.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+Sa.join("|")+")\\b"}]}}const Us=document.createElement("style");Us.innerText=[Sl,Al].join(`
199
+ https://www.w3ctech.com/topic/2226`));let l=t(...r);return l.postcssPlugin=e,l.postcssVersion=new An().version,l}let o;return Object.defineProperty(s,"postcss",{get(){return o||(o=s()),o}}),s.process=function(r,l,a){return O([s(a)]).process(r,l)},s};O.stringify=fl;O.parse=yl;O.fromJSON=pl;O.list=vl;O.comment=i=>new gs(i);O.atRule=i=>new ms(i);O.decl=i=>new fs(i);O.rule=i=>new bs(i);O.root=i=>new ys(i);O.document=i=>new ps(i);O.CssSyntaxError=ul;O.Declaration=fs;O.Container=dl;O.Processor=An;O.Document=ps;O.Comment=gs;O.Warning=gl;O.AtRule=ms;O.Result=ml;O.Input=bl;O.Rule=bs;O.Root=ys;O.Node=wl;hl.registerPostcss(O);var xl=O;O.default=O;const M=Li(xl);M.stringify;M.fromJSON;M.plugin;M.parse;M.list;M.document;M.comment;M.atRule;M.rule;M.decl;M.root;M.CssSyntaxError;M.Declaration;M.Container;M.Processor;M.Document;M.Comment;M.Warning;M.AtRule;M.Result;M.Input;M.Rule;M.Root;M.Node;var _l=function(e){const t=e.prefix,n=/\s+$/.test(t)?t:`${t} `,s=e.ignoreFiles?[].concat(e.ignoreFiles):[],o=e.includeFiles?[].concat(e.includeFiles):[];return function(r){s.length&&r.source.input.file&&gi(r.source.input.file,s)||o.length&&r.source.input.file&&!gi(r.source.input.file,o)||r.walkRules(l=>{const a=["keyframes","-webkit-keyframes","-moz-keyframes","-o-keyframes"];l.parent&&a.includes(l.parent.name)||(l.selectors=l.selectors.map(c=>e.exclude&&El(c,e.exclude)?c:e.transform?e.transform(t,c,n+c,r.source.input.file,l):n+c))})}};function gi(i,e){return e.some(t=>t instanceof RegExp?t.test(i):i.includes(t))}function El(i,e){return e.some(t=>t instanceof RegExp?t.test(i):i===t)}const $l=Li(_l),Sl="code{white-space:pre}.example{display:flex;flex-wrap:wrap;flex-direction:row;align-items:center;gap:16px}.example>*{flex:1 1 500px}.example .tab-control{overflow:hidden}.example div[role=tab]{cursor:pointer;padding:8px 16px;display:inline-block;font-size:16px;border-bottom:2px solid transparent;background-clip:padding-box;-webkit-user-select:none;user-select:none}.example div[role=tab]:hover{background-color:#1467ba14}.example div[role=tab][selected]{background-color:#1467ba21;border-bottom:2px solid #1467ba}.tab-content{margin:16px 0}.tab-content>pre{padding-top:0}.tab-content.code{max-height:500px;overflow:auto}.tab-content.code pre{margin:0}",Al="pre code.hljs{display:block;overflow-x:auto;padding:1em}code.hljs{padding:3px 5px}.hljs{color:#24292e;background:#fff}.hljs-doctag,.hljs-keyword,.hljs-meta .hljs-keyword,.hljs-template-tag,.hljs-template-variable,.hljs-type,.hljs-variable.language_{color:#d73a49}.hljs-title,.hljs-title.class_,.hljs-title.class_.inherited__,.hljs-title.function_{color:#6f42c1}.hljs-attr,.hljs-attribute,.hljs-literal,.hljs-meta,.hljs-number,.hljs-operator,.hljs-variable,.hljs-selector-attr,.hljs-selector-class,.hljs-selector-id{color:#005cc5}.hljs-regexp,.hljs-string,.hljs-meta .hljs-string{color:#032f62}.hljs-built_in,.hljs-symbol{color:#e36209}.hljs-comment,.hljs-code,.hljs-formula{color:#6a737d}.hljs-name,.hljs-quote,.hljs-selector-tag,.hljs-selector-pseudo{color:#22863a}.hljs-subst{color:#24292e}.hljs-section{color:#005cc5;font-weight:700}.hljs-bullet{color:#735c0f}.hljs-emphasis{color:#24292e;font-style:italic}.hljs-strong{color:#24292e;font-weight:700}.hljs-addition{color:#22863a;background-color:#f0fff4}.hljs-deletion{color:#b31d28;background-color:#ffeef0}";function Ol(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}function vs(i){return i instanceof Map?i.clear=i.delete=i.set=function(){throw new Error("map is read-only")}:i instanceof Set&&(i.add=i.clear=i.delete=function(){throw new Error("set is read-only")}),Object.freeze(i),Object.getOwnPropertyNames(i).forEach(e=>{const t=i[e],n=typeof t;(n==="object"||n==="function")&&!Object.isFrozen(t)&&vs(t)}),i}class mi{constructor(e){e.data===void 0&&(e.data={}),this.data=e.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function ws(i){return i.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")}function oe(i,...e){const t=Object.create(null);for(const n in i)t[n]=i[n];return e.forEach(function(n){for(const s in n)t[s]=n[s]}),t}const Cl="</span>",bi=i=>!!i.scope,kl=(i,{prefix:e})=>{if(i.startsWith("language:"))return i.replace("language:","language-");if(i.includes(".")){const t=i.split(".");return[`${e}${t.shift()}`,...t.map((n,s)=>`${n}${"_".repeat(s+1)}`)].join(" ")}return`${e}${i}`};class Rl{constructor(e,t){this.buffer="",this.classPrefix=t.classPrefix,e.walk(this)}addText(e){this.buffer+=ws(e)}openNode(e){if(!bi(e))return;const t=kl(e.scope,{prefix:this.classPrefix});this.span(t)}closeNode(e){bi(e)&&(this.buffer+=Cl)}value(){return this.buffer}span(e){this.buffer+=`<span class="${e}">`}}const yi=(i={})=>{const e={children:[]};return Object.assign(e,i),e};class On{constructor(){this.rootNode=yi(),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=yi({scope:e});this.add(t),this.stack.push(t)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(e){return this.constructor._walk(e,this.rootNode)}static _walk(e,t){return typeof t=="string"?e.addText(t):t.children&&(e.openNode(t),t.children.forEach(n=>this._walk(e,n)),e.closeNode(t)),e}static _collapse(e){typeof e!="string"&&e.children&&(e.children.every(t=>typeof t=="string")?e.children=[e.children.join("")]:e.children.forEach(t=>{On._collapse(t)}))}}class Ml extends On{constructor(e){super(),this.options=e}addText(e){e!==""&&this.add(e)}startScope(e){this.openNode(e)}endScope(){this.closeNode()}__addSublanguage(e,t){const n=e.root;t&&(n.scope=`language:${t}`),this.add(n)}toHTML(){return new Rl(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function Ge(i){return i?typeof i=="string"?i:i.source:null}function xs(i){return we("(?=",i,")")}function Nl(i){return we("(?:",i,")*")}function Pl(i){return we("(?:",i,")?")}function we(...i){return i.map(e=>Ge(e)).join("")}function Il(i){const e=i[i.length-1];return typeof e=="object"&&e.constructor===Object?(i.splice(i.length-1,1),e):{}}function Cn(...i){return"("+(Il(i).capture?"":"?:")+i.map(e=>Ge(e)).join("|")+")"}function _s(i){return new RegExp(i.toString()+"|").exec("").length-1}function Tl(i,e){const t=i&&i.exec(e);return t&&t.index===0}const Ll=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function kn(i,{joinWith:e}){let t=0;return i.map(n=>{t+=1;const s=t;let o=Ge(n),r="";for(;o.length>0;){const l=Ll.exec(o);if(!l){r+=o;break}r+=o.substring(0,l.index),o=o.substring(l.index+l[0].length),l[0][0]==="\\"&&l[1]?r+="\\"+String(Number(l[1])+s):(r+=l[0],l[0]==="("&&t++)}return r}).map(n=>`(${n})`).join(e)}const jl=/\b\B/,Es="[a-zA-Z]\\w*",Rn="[a-zA-Z_]\\w*",$s="\\b\\d+(\\.\\d+)?",Ss="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",As="\\b(0b[01]+)",Ul="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",zl=(i={})=>{const e=/^#![ ]*\//;return i.binary&&(i.begin=we(e,/.*\b/,i.binary,/\b.*/)),oe({scope:"meta",begin:e,end:/$/,relevance:0,"on:begin":(t,n)=>{t.index!==0&&n.ignoreMatch()}},i)},Ke={begin:"\\\\[\\s\\S]",relevance:0},Dl={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[Ke]},Bl={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[Ke]},Hl={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/},Rt=function(i,e,t={}){const n=oe({scope:"comment",begin:i,end:e,contains:[]},t);n.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const s=Cn("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return n.contains.push({begin:we(/[ ]+/,"(",s,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),n},Fl=Rt("//","$"),Vl=Rt("/\\*","\\*/"),Wl=Rt("#","$"),ql={scope:"number",begin:$s,relevance:0},Gl={scope:"number",begin:Ss,relevance:0},Kl={scope:"number",begin:As,relevance:0},Zl={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[Ke,{begin:/\[/,end:/\]/,relevance:0,contains:[Ke]}]},Jl={scope:"title",begin:Es,relevance:0},Xl={scope:"title",begin:Rn,relevance:0},Ql={begin:"\\.\\s*"+Rn,relevance:0},Yl=function(i){return Object.assign(i,{"on:begin":(e,t)=>{t.data._beginMatch=e[1]},"on:end":(e,t)=>{t.data._beginMatch!==e[1]&&t.ignoreMatch()}})};var ut=Object.freeze({__proto__:null,APOS_STRING_MODE:Dl,BACKSLASH_ESCAPE:Ke,BINARY_NUMBER_MODE:Kl,BINARY_NUMBER_RE:As,COMMENT:Rt,C_BLOCK_COMMENT_MODE:Vl,C_LINE_COMMENT_MODE:Fl,C_NUMBER_MODE:Gl,C_NUMBER_RE:Ss,END_SAME_AS_BEGIN:Yl,HASH_COMMENT_MODE:Wl,IDENT_RE:Es,MATCH_NOTHING_RE:jl,METHOD_GUARD:Ql,NUMBER_MODE:ql,NUMBER_RE:$s,PHRASAL_WORDS_MODE:Hl,QUOTE_STRING_MODE:Bl,REGEXP_MODE:Zl,RE_STARTERS_RE:Ul,SHEBANG:zl,TITLE_MODE:Jl,UNDERSCORE_IDENT_RE:Rn,UNDERSCORE_TITLE_MODE:Xl});function ea(i,e){i.input[i.index-1]==="."&&e.ignoreMatch()}function ta(i,e){i.className!==void 0&&(i.scope=i.className,delete i.className)}function na(i,e){e&&i.beginKeywords&&(i.begin="\\b("+i.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",i.__beforeBegin=ea,i.keywords=i.keywords||i.beginKeywords,delete i.beginKeywords,i.relevance===void 0&&(i.relevance=0))}function ia(i,e){Array.isArray(i.illegal)&&(i.illegal=Cn(...i.illegal))}function sa(i,e){if(i.match){if(i.begin||i.end)throw new Error("begin & end are not supported with match");i.begin=i.match,delete i.match}}function ra(i,e){i.relevance===void 0&&(i.relevance=1)}const oa=(i,e)=>{if(!i.beforeMatch)return;if(i.starts)throw new Error("beforeMatch cannot be used with starts");const t=Object.assign({},i);Object.keys(i).forEach(n=>{delete i[n]}),i.keywords=t.keywords,i.begin=we(t.beforeMatch,xs(t.begin)),i.starts={relevance:0,contains:[Object.assign(t,{endsParent:!0})]},i.relevance=0,delete t.beforeMatch},la=["of","and","for","in","not","or","if","then","parent","list","value"],aa="keyword";function Os(i,e,t=aa){const n=Object.create(null);return typeof i=="string"?s(t,i.split(" ")):Array.isArray(i)?s(t,i):Object.keys(i).forEach(function(o){Object.assign(n,Os(i[o],e,o))}),n;function s(o,r){e&&(r=r.map(l=>l.toLowerCase())),r.forEach(function(l){const a=l.split("|");n[a[0]]=[o,ca(a[0],a[1])]})}}function ca(i,e){return e?Number(e):ua(i)?0:1}function ua(i){return la.includes(i.toLowerCase())}const vi={},ge=i=>{console.error(i)},wi=(i,...e)=>{console.log(`WARN: ${i}`,...e)},Ee=(i,e)=>{vi[`${i}/${e}`]||(console.log(`Deprecated as of ${i}. ${e}`),vi[`${i}/${e}`]=!0)},Et=new Error;function Cs(i,e,{key:t}){let n=0;const s=i[t],o={},r={};for(let l=1;l<=e.length;l++)r[l+n]=s[l],o[l+n]=!0,n+=_s(e[l-1]);i[t]=r,i[t]._emit=o,i[t]._multi=!0}function ha(i){if(Array.isArray(i.begin)){if(i.skip||i.excludeBegin||i.returnBegin)throw ge("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),Et;if(typeof i.beginScope!="object"||i.beginScope===null)throw ge("beginScope must be object"),Et;Cs(i,i.begin,{key:"beginScope"}),i.begin=kn(i.begin,{joinWith:""})}}function da(i){if(Array.isArray(i.end)){if(i.skip||i.excludeEnd||i.returnEnd)throw ge("skip, excludeEnd, returnEnd not compatible with endScope: {}"),Et;if(typeof i.endScope!="object"||i.endScope===null)throw ge("endScope must be object"),Et;Cs(i,i.end,{key:"endScope"}),i.end=kn(i.end,{joinWith:""})}}function fa(i){i.scope&&typeof i.scope=="object"&&i.scope!==null&&(i.beginScope=i.scope,delete i.scope)}function pa(i){fa(i),typeof i.beginScope=="string"&&(i.beginScope={_wrap:i.beginScope}),typeof i.endScope=="string"&&(i.endScope={_wrap:i.endScope}),ha(i),da(i)}function ga(i){function e(r,l){return new RegExp(Ge(r),"m"+(i.case_insensitive?"i":"")+(i.unicodeRegex?"u":"")+(l?"g":""))}class t{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(l,a){a.position=this.position++,this.matchIndexes[this.matchAt]=a,this.regexes.push([a,l]),this.matchAt+=_s(l)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const l=this.regexes.map(a=>a[1]);this.matcherRe=e(kn(l,{joinWith:"|"}),!0),this.lastIndex=0}exec(l){this.matcherRe.lastIndex=this.lastIndex;const a=this.matcherRe.exec(l);if(!a)return null;const c=a.findIndex((f,d)=>d>0&&f!==void 0),u=this.matchIndexes[c];return a.splice(0,c),Object.assign(a,u)}}class n{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(l){if(this.multiRegexes[l])return this.multiRegexes[l];const a=new t;return this.rules.slice(l).forEach(([c,u])=>a.addRule(c,u)),a.compile(),this.multiRegexes[l]=a,a}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(l,a){this.rules.push([l,a]),a.type==="begin"&&this.count++}exec(l){const a=this.getMatcher(this.regexIndex);a.lastIndex=this.lastIndex;let c=a.exec(l);if(this.resumingScanAtSamePosition()&&!(c&&c.index===this.lastIndex)){const u=this.getMatcher(0);u.lastIndex=this.lastIndex+1,c=u.exec(l)}return c&&(this.regexIndex+=c.position+1,this.regexIndex===this.count&&this.considerAll()),c}}function s(r){const l=new n;return r.contains.forEach(a=>l.addRule(a.begin,{rule:a,type:"begin"})),r.terminatorEnd&&l.addRule(r.terminatorEnd,{type:"end"}),r.illegal&&l.addRule(r.illegal,{type:"illegal"}),l}function o(r,l){const a=r;if(r.isCompiled)return a;[ta,sa,pa,oa].forEach(u=>u(r,l)),i.compilerExtensions.forEach(u=>u(r,l)),r.__beforeBegin=null,[na,ia,ra].forEach(u=>u(r,l)),r.isCompiled=!0;let c=null;return typeof r.keywords=="object"&&r.keywords.$pattern&&(r.keywords=Object.assign({},r.keywords),c=r.keywords.$pattern,delete r.keywords.$pattern),c=c||/\w+/,r.keywords&&(r.keywords=Os(r.keywords,i.case_insensitive)),a.keywordPatternRe=e(c,!0),l&&(r.begin||(r.begin=/\B|\b/),a.beginRe=e(a.begin),!r.end&&!r.endsWithParent&&(r.end=/\B|\b/),r.end&&(a.endRe=e(a.end)),a.terminatorEnd=Ge(a.end)||"",r.endsWithParent&&l.terminatorEnd&&(a.terminatorEnd+=(r.end?"|":"")+l.terminatorEnd)),r.illegal&&(a.illegalRe=e(r.illegal)),r.contains||(r.contains=[]),r.contains=[].concat(...r.contains.map(function(u){return ma(u==="self"?r:u)})),r.contains.forEach(function(u){o(u,a)}),r.starts&&o(r.starts,l),a.matcher=s(a),a}if(i.compilerExtensions||(i.compilerExtensions=[]),i.contains&&i.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return i.classNameAliases=oe(i.classNameAliases||{}),o(i)}function ks(i){return i?i.endsWithParent||ks(i.starts):!1}function ma(i){return i.variants&&!i.cachedVariants&&(i.cachedVariants=i.variants.map(function(e){return oe(i,{variants:null},e)})),i.cachedVariants?i.cachedVariants:ks(i)?oe(i,{starts:i.starts?oe(i.starts):null}):Object.isFrozen(i)?oe(i):i}var ba="11.9.0";class ya extends Error{constructor(e,t){super(e),this.name="HTMLInjectionError",this.html=t}}const Gt=ws,xi=oe,_i=Symbol("nomatch"),va=7,Rs=function(i){const e=Object.create(null),t=Object.create(null),n=[];let s=!0;const o="Could not find the language '{}', did you forget to load/include a language module?",r={disableAutodetect:!0,name:"Plain text",contains:[]};let l={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:Ml};function a(h){return l.noHighlightRe.test(h)}function c(h){let m=h.className+" ";m+=h.parentNode?h.parentNode.className:"";const x=l.languageDetectRe.exec(m);if(x){const S=N(x[1]);return S||(wi(o.replace("{}",x[1])),wi("Falling back to no-highlight mode for this block.",h)),S?x[1]:"no-highlight"}return m.split(/\s+/).find(S=>a(S)||N(S))}function u(h,m,x){let S="",A="";typeof m=="object"?(S=h,x=m.ignoreIllegals,A=m.language):(Ee("10.7.0","highlight(lang, code, ...args) has been deprecated."),Ee("10.7.0",`Please use highlight(code, options) instead.
200
+ https://github.com/highlightjs/highlight.js/issues/2277`),A=h,S=m),x===void 0&&(x=!0);const I={code:S,language:A};G("before:highlight",I);const V=I.result?I.result:f(I.language,I.code,x);return V.code=I.code,G("after:highlight",V),V}function f(h,m,x,S){const A=Object.create(null);function I(p,v){return p.keywords[v]}function V(){if(!_.keywords){j.addText(k);return}let p=0;_.keywordPatternRe.lastIndex=0;let v=_.keywordPatternRe.exec(k),E="";for(;v;){E+=k.substring(p,v.index);const C=Z.case_insensitive?v[0].toLowerCase():v[0],z=I(_,C);if(z){const[te,Vs]=z;if(j.addText(E),E="",A[C]=(A[C]||0)+1,A[C]<=va&&(et+=Vs),te.startsWith("_"))E+=v[0];else{const Ws=Z.classNameAliases[te]||te;K(v[0],Ws)}}else E+=v[0];p=_.keywordPatternRe.lastIndex,v=_.keywordPatternRe.exec(k)}E+=k.substring(p),j.addText(E)}function ce(){if(k==="")return;let p=null;if(typeof _.subLanguage=="string"){if(!e[_.subLanguage]){j.addText(k);return}p=f(_.subLanguage,k,!0,Tn[_.subLanguage]),Tn[_.subLanguage]=p._top}else p=y(k,_.subLanguage.length?_.subLanguage:null);_.relevance>0&&(et+=p.relevance),j.__addSublanguage(p._emitter,p.language)}function T(){_.subLanguage!=null?ce():V(),k=""}function K(p,v){p!==""&&(j.startScope(v),j.addText(p),j.endScope())}function Mn(p,v){let E=1;const C=v.length-1;for(;E<=C;){if(!p._emit[E]){E++;continue}const z=Z.classNameAliases[p[E]]||p[E],te=v[E];z?K(te,z):(k=te,V(),k=""),E++}}function Nn(p,v){return p.scope&&typeof p.scope=="string"&&j.openNode(Z.classNameAliases[p.scope]||p.scope),p.beginScope&&(p.beginScope._wrap?(K(k,Z.classNameAliases[p.beginScope._wrap]||p.beginScope._wrap),k=""):p.beginScope._multi&&(Mn(p.beginScope,v),k="")),_=Object.create(p,{parent:{value:_}}),_}function Pn(p,v,E){let C=Tl(p.endRe,E);if(C){if(p["on:end"]){const z=new mi(p);p["on:end"](v,z),z.isMatchIgnored&&(C=!1)}if(C){for(;p.endsParent&&p.parent;)p=p.parent;return p}}if(p.endsWithParent)return Pn(p.parent,v,E)}function zs(p){return _.matcher.regexIndex===0?(k+=p[0],1):(It=!0,0)}function Ds(p){const v=p[0],E=p.rule,C=new mi(E),z=[E.__beforeBegin,E["on:begin"]];for(const te of z)if(te&&(te(p,C),C.isMatchIgnored))return zs(v);return E.skip?k+=v:(E.excludeBegin&&(k+=v),T(),!E.returnBegin&&!E.excludeBegin&&(k=v)),Nn(E,p),E.returnBegin?0:v.length}function Bs(p){const v=p[0],E=m.substring(p.index),C=Pn(_,p,E);if(!C)return _i;const z=_;_.endScope&&_.endScope._wrap?(T(),K(v,_.endScope._wrap)):_.endScope&&_.endScope._multi?(T(),Mn(_.endScope,p)):z.skip?k+=v:(z.returnEnd||z.excludeEnd||(k+=v),T(),z.excludeEnd&&(k=v));do _.scope&&j.closeNode(),!_.skip&&!_.subLanguage&&(et+=_.relevance),_=_.parent;while(_!==C.parent);return C.starts&&Nn(C.starts,p),z.returnEnd?0:v.length}function Hs(){const p=[];for(let v=_;v!==Z;v=v.parent)v.scope&&p.unshift(v.scope);p.forEach(v=>j.openNode(v))}let Ye={};function In(p,v){const E=v&&v[0];if(k+=p,E==null)return T(),0;if(Ye.type==="begin"&&v.type==="end"&&Ye.index===v.index&&E===""){if(k+=m.slice(v.index,v.index+1),!s){const C=new Error(`0 width match regex (${h})`);throw C.languageName=h,C.badRule=Ye.rule,C}return 1}if(Ye=v,v.type==="begin")return Ds(v);if(v.type==="illegal"&&!x){const C=new Error('Illegal lexeme "'+E+'" for mode "'+(_.scope||"<unnamed>")+'"');throw C.mode=_,C}else if(v.type==="end"){const C=Bs(v);if(C!==_i)return C}if(v.type==="illegal"&&E==="")return 1;if(Pt>1e5&&Pt>v.index*3)throw new Error("potential infinite loop, way more iterations than matches");return k+=E,E.length}const Z=N(h);if(!Z)throw ge(o.replace("{}",h)),new Error('Unknown language: "'+h+'"');const Fs=ga(Z);let Nt="",_=S||Fs;const Tn={},j=new l.__emitter(l);Hs();let k="",et=0,ue=0,Pt=0,It=!1;try{if(Z.__emitTokens)Z.__emitTokens(m,j);else{for(_.matcher.considerAll();;){Pt++,It?It=!1:_.matcher.considerAll(),_.matcher.lastIndex=ue;const p=_.matcher.exec(m);if(!p)break;const v=m.substring(ue,p.index),E=In(v,p);ue=p.index+E}In(m.substring(ue))}return j.finalize(),Nt=j.toHTML(),{language:h,value:Nt,relevance:et,illegal:!1,_emitter:j,_top:_}}catch(p){if(p.message&&p.message.includes("Illegal"))return{language:h,value:Gt(m),illegal:!0,relevance:0,_illegalBy:{message:p.message,index:ue,context:m.slice(ue-100,ue+100),mode:p.mode,resultSoFar:Nt},_emitter:j};if(s)return{language:h,value:Gt(m),illegal:!1,relevance:0,errorRaised:p,_emitter:j,_top:_};throw p}}function d(h){const m={value:Gt(h),illegal:!1,relevance:0,_top:r,_emitter:new l.__emitter(l)};return m._emitter.addText(h),m}function y(h,m){m=m||l.languages||Object.keys(e);const x=d(h),S=m.filter(N).filter(q).map(T=>f(T,h,!1));S.unshift(x);const A=S.sort((T,K)=>{if(T.relevance!==K.relevance)return K.relevance-T.relevance;if(T.language&&K.language){if(N(T.language).supersetOf===K.language)return 1;if(N(K.language).supersetOf===T.language)return-1}return 0}),[I,V]=A,ce=I;return ce.secondBest=V,ce}function w(h,m,x){const S=m&&t[m]||x;h.classList.add("hljs"),h.classList.add(`language-${S}`)}function $(h){let m=null;const x=c(h);if(a(x))return;if(G("before:highlightElement",{el:h,language:x}),h.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",h);return}if(h.children.length>0&&(l.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(h)),l.throwUnescapedHTML))throw new ya("One of your code blocks includes unescaped HTML.",h.innerHTML);m=h;const S=m.textContent,A=x?u(S,{language:x,ignoreIllegals:!0}):y(S);h.innerHTML=A.value,h.dataset.highlighted="yes",w(h,x,A.language),h.result={language:A.language,re:A.relevance,relevance:A.relevance},A.secondBest&&(h.secondBest={language:A.secondBest.language,relevance:A.secondBest.relevance}),G("after:highlightElement",{el:h,result:A,text:S})}function b(h){l=xi(l,h)}const D=()=>{U(),Ee("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function B(){U(),Ee("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let Q=!1;function U(){if(document.readyState==="loading"){Q=!0;return}document.querySelectorAll(l.cssSelector).forEach($)}function H(){Q&&U()}typeof window<"u"&&window.addEventListener&&window.addEventListener("DOMContentLoaded",H,!1);function ae(h,m){let x=null;try{x=m(i)}catch(S){if(ge("Language definition for '{}' could not be registered.".replace("{}",h)),s)ge(S);else throw S;x=r}x.name||(x.name=h),e[h]=x,x.rawDefinition=m.bind(null,i),x.aliases&&P(x.aliases,{languageName:h})}function Y(h){delete e[h];for(const m of Object.keys(t))t[m]===h&&delete t[m]}function g(){return Object.keys(e)}function N(h){return h=(h||"").toLowerCase(),e[h]||e[t[h]]}function P(h,{languageName:m}){typeof h=="string"&&(h=[h]),h.forEach(x=>{t[x.toLowerCase()]=m})}function q(h){const m=N(h);return m&&!m.disableAutodetect}function F(h){h["before:highlightBlock"]&&!h["before:highlightElement"]&&(h["before:highlightElement"]=m=>{h["before:highlightBlock"](Object.assign({block:m.el},m))}),h["after:highlightBlock"]&&!h["after:highlightElement"]&&(h["after:highlightElement"]=m=>{h["after:highlightBlock"](Object.assign({block:m.el},m))})}function ee(h){F(h),n.push(h)}function xe(h){const m=n.indexOf(h);m!==-1&&n.splice(m,1)}function G(h,m){const x=h;n.forEach(function(S){S[x]&&S[x](m)})}function se(h){return Ee("10.7.0","highlightBlock will be removed entirely in v12.0"),Ee("10.7.0","Please use highlightElement now."),$(h)}Object.assign(i,{highlight:u,highlightAuto:y,highlightAll:U,highlightElement:$,highlightBlock:se,configure:b,initHighlighting:D,initHighlightingOnLoad:B,registerLanguage:ae,unregisterLanguage:Y,listLanguages:g,getLanguage:N,registerAliases:P,autoDetection:q,inherit:xi,addPlugin:ee,removePlugin:xe}),i.debugMode=function(){s=!1},i.safeMode=function(){s=!0},i.versionString=ba,i.regex={concat:we,lookahead:xs,either:Cn,optional:Pl,anyNumberOfTimes:Nl};for(const h in ut)typeof ut[h]=="object"&&vs(ut[h]);return Object.assign(i,ut),i},ke=Rs({});ke.newInstance=()=>Rs({});var wa=ke;ke.HighlightJS=ke;ke.default=ke;const Mt=Ol(wa),$t="[A-Za-z$_][0-9A-Za-z$_]*",Ms=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],Ns=["true","false","null","undefined","NaN","Infinity"],Ps=["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"],Is=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],Ts=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],Ls=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],js=[].concat(Ts,Ps,Is);function xa(i){const e=i.regex,t=(h,{after:m})=>{const x="</"+h[0].slice(1);return h.input.indexOf(x,m)!==-1},n=$t,s={begin:"<>",end:"</>"},o=/<[A-Za-z0-9\\._:-]+\s*\/>/,r={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(h,m)=>{const x=h[0].length+h.index,S=h.input[x];if(S==="<"||S===","){m.ignoreMatch();return}S===">"&&(t(h,{after:x})||m.ignoreMatch());let A;const I=h.input.substring(x);if(A=I.match(/^\s*=/)){m.ignoreMatch();return}if((A=I.match(/^\s+extends\s+/))&&A.index===0){m.ignoreMatch();return}}},l={$pattern:$t,keyword:Ms,literal:Ns,built_in:js,"variable.language":Ls},a="[0-9](_?[0-9])*",c=`\\.(${a})`,u="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",f={className:"number",variants:[{begin:`(\\b(${u})((${c})|\\.)?|(${c}))[eE][+-]?(${a})\\b`},{begin:`\\b(${u})\\b((${c})\\b|\\.)?|(${c})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},d={className:"subst",begin:"\\$\\{",end:"\\}",keywords:l,contains:[]},y={begin:"html`",end:"",starts:{end:"`",returnEnd:!1,contains:[i.BACKSLASH_ESCAPE,d],subLanguage:"xml"}},w={begin:"css`",end:"",starts:{end:"`",returnEnd:!1,contains:[i.BACKSLASH_ESCAPE,d],subLanguage:"css"}},$={begin:"gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[i.BACKSLASH_ESCAPE,d],subLanguage:"graphql"}},b={className:"string",begin:"`",end:"`",contains:[i.BACKSLASH_ESCAPE,d]},D={className:"comment",variants:[i.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:n+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),i.C_BLOCK_COMMENT_MODE,i.C_LINE_COMMENT_MODE]},B=[i.APOS_STRING_MODE,i.QUOTE_STRING_MODE,y,w,$,b,{match:/\$\d+/},f];d.contains=B.concat({begin:/\{/,end:/\}/,keywords:l,contains:["self"].concat(B)});const Q=[].concat(D,d.contains),U=Q.concat([{begin:/\(/,end:/\)/,keywords:l,contains:["self"].concat(Q)}]),H={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:l,contains:U},ae={variants:[{match:[/class/,/\s+/,n,/\s+/,/extends/,/\s+/,e.concat(n,"(",e.concat(/\./,n),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,n],scope:{1:"keyword",3:"title.class"}}]},Y={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:{_:[...Ps,...Is]}},g={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},N={variants:[{match:[/function/,/\s+/,n,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[H],illegal:/%/},P={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function q(h){return e.concat("(?!",h.join("|"),")")}const F={match:e.concat(/\b/,q([...Ts,"super","import"]),n,e.lookahead(/\(/)),className:"title.function",relevance:0},ee={begin:e.concat(/\./,e.lookahead(e.concat(n,/(?![0-9A-Za-z$_(])/))),end:n,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},xe={match:[/get|set/,/\s+/,n,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},H]},G="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+i.UNDERSCORE_IDENT_RE+")\\s*=>",se={match:[/const|var|let/,/\s+/,n,/\s*/,/=\s*/,/(async\s*)?/,e.lookahead(G)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[H]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:l,exports:{PARAMS_CONTAINS:U,CLASS_REFERENCE:Y},illegal:/#(?![$_A-z])/,contains:[i.SHEBANG({label:"shebang",binary:"node",relevance:5}),g,i.APOS_STRING_MODE,i.QUOTE_STRING_MODE,y,w,$,b,D,{match:/\$\d+/},f,Y,{className:"attr",begin:n+e.lookahead(":"),relevance:0},se,{begin:"("+i.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[D,i.REGEXP_MODE,{className:"function",begin:G,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:i.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:l,contains:U}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:s.begin,end:s.end},{match:o},{begin:r.begin,"on:begin":r.isTrulyOpeningTag,end:r.end}],subLanguage:"xml",contains:[{begin:r.begin,end:r.end,skip:!0,contains:["self"]}]}]},N,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+i.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[H,i.inherit(i.TITLE_MODE,{begin:n,className:"title.function"})]},{match:/\.\.\./,relevance:0},ee,{match:"\\$"+n,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[H]},F,P,ae,xe,{match:/\$[(.]/}]}}function _a(i){const e=xa(i),t=$t,n=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],s={beginKeywords:"namespace",end:/\{/,excludeEnd:!0,contains:[e.exports.CLASS_REFERENCE]},o={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:n},contains:[e.exports.CLASS_REFERENCE]},r={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},l=["type","namespace","interface","public","private","protected","implements","declare","abstract","readonly","enum","override"],a={$pattern:$t,keyword:Ms.concat(l),literal:Ns,built_in:js.concat(n),"variable.language":Ls},c={className:"meta",begin:"@"+t},u=(d,y,w)=>{const $=d.contains.findIndex(b=>b.label===y);if($===-1)throw new Error("can not find mode to replace");d.contains.splice($,1,w)};Object.assign(e.keywords,a),e.exports.PARAMS_CONTAINS.push(c),e.contains=e.contains.concat([c,s,o]),u(e,"shebang",i.SHEBANG()),u(e,"use_strict",r);const f=e.contains.find(d=>d.label==="func.def");return f.relevance=0,Object.assign(e,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),e}function Ea(i){const e=i.regex,t=e.concat(/[\p{L}_]/u,e.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),n=/[\p{L}0-9._:-]+/u,s={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},o={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},r=i.inherit(o,{begin:/\(/,end:/\)/}),l=i.inherit(i.APOS_STRING_MODE,{className:"string"}),a=i.inherit(i.QUOTE_STRING_MODE,{className:"string"}),c={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:n,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[s]},{begin:/'/,end:/'/,contains:[s]},{begin:/[^\s"'=<>`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,unicodeRegex:!0,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,relevance:10,contains:[o,a,l,r,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[o,r,a,l]}]}]},i.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},s,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[a]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[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 $a=i=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:i.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[i.APOS_STRING_MODE,i.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:i.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),Sa=["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"],Aa=["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"],Oa=["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"],Ca=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],ka=["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 Ra(i){const e=i.regex,t=$a(i),n={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},s="and or not only",o=/@-?\w[\w]*(-\w+)*/,r="[a-zA-Z-][a-zA-Z0-9_-]*",l=[i.APOS_STRING_MODE,i.QUOTE_STRING_MODE];return{name:"CSS",case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"},classNameAliases:{keyframePosition:"selector-tag"},contains:[t.BLOCK_COMMENT,n,t.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:"selector-class",begin:"\\."+r,relevance:0},t.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+Oa.join("|")+")"},{begin:":(:)?("+Ca.join("|")+")"}]},t.CSS_VARIABLE,{className:"attribute",begin:"\\b("+ka.join("|")+")\\b"},{begin:/:/,end:/[;}{]/,contains:[t.BLOCK_COMMENT,t.HEXCOLOR,t.IMPORTANT,t.CSS_NUMBER_MODE,...l,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[...l,{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},t.FUNCTION_DISPATCH]},{begin:e.lookahead(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:o},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:s,attribute:Aa.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...l,t.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+Sa.join("|")+")\\b"}]}}const Us=document.createElement("style");Us.innerText=[Sl,Al].join(`
201
201
  `);document.head.appendChild(Us);Mt.registerLanguage("typescript",_a);Mt.registerLanguage("html",Ea);Mt.registerLanguage("css",Ra);function Ma(...i){const e=document.createElement("div"),t=document.createElement("div");t.classList.add("tab-control");const n=document.createElement("div");return i.forEach(s=>{e.appendChild(s),s.addEventListener("click",()=>{i.forEach(o=>o.removeAttribute("selected")),s.setAttribute("selected",""),n.innerHTML="",n.appendChild(s.content),n.className=s.className,n.classList.add("tab-content")})}),t.appendChild(e),t.appendChild(n),n.classList.add("tab-content"),i[0].setAttribute("selected",""),n.appendChild(i[0].content),t}function je(i,e){const t=document.createElement("div");return t.role="tab",t.tabIndex=0,t.innerText=i,t.content=e,e.tagName=="PRE"&&t.classList.add("code"),t}function Ue(i,e){const t=document.createElement(i);return typeof e=="string"?t.innerHTML=e:e.forEach(n=>{t.appendChild(n)}),t}async function Na(i,e,t){var n,s,o;const r=e.mainContent,l=Ue("div",r);l.id=`example-preview-${t}`;const a=typeof e.css=="string"||(n=e.css)==null?void 0:n.label,c=typeof e.css=="string"?e.css:(s=e.css)==null?void 0:s.content,u=Ma(je("Preview",l),je("HTML",ht("html",r)),...c?[je(a??"CSS",ht("css",c))]:[],...e.initializer&&e.initializer.content?[je(e.initializer.label??"TS",ht("typescript",e.initializer.content))]:[],...(e.additionalSources||[]).map(d=>je(d.label,ht(d.language,d.content))));e.description&&i.appendChild(Ue("div",e.description));const f=Ue("div",[u]);f.classList.add("example"),i.appendChild(f),c&&Pa(`#${l.id}`,c),(o=e.initializer)!=null&&o.initialize&&await e.initializer.initialize(l)}function ht(i,e){let t=e.split(/\r?\n/).map(n=>{const s=n.indexOf("///");if(s>-1){const o=n.substring(s+3).trimStart();return o?n.replace(/^(\s*)([^\s].*)$/,`$1${o}`):void 0}return n}).filter(n=>typeof n<"u").join(`
202
202
  `).trim();return i&&i!="raw"&&(t=Mt.highlight(t,{language:i}).value),Ue("pre",[Ue("code",t)])}function Pa(i,e){const t=document.createElement("style");t.innerHTML=M().use($l({prefix:i})).process(e).css,document.head.appendChild(t)}async function Ia(i,e=document.body){const t=La(e);let n=0;Object.keys(i).forEach(async s=>{const o=document.createElement("div");o.className="example-container",t.appendChild(o);const r=i[s].default;Na(o,r,n++)})}function Ta(i){const e=document.createElement("div");e.id="examples-container";const t=i.querySelector("#examples");return t?t.after(e):i.appendChild(e),e}function La(i){return i.children?Ta(i):i}const ja=`<h1 id="@cas-smartdesign/stage">@cas-smartdesign/stage</h1>
203
203
  <p>An element which can be used to represent the progress in a given workflow</p>
@@ -266,8 +266,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`),A=h,S=m),x===void 0&&(
266
266
  <li><code>--component-stage-font-family</code></li>
267
267
  <li><code>--component-stage-transition-time-short</code></li>
268
268
  </ul>
269
- <h2 id="examples">Examples</h2>
270
- `;document.querySelector("#markdown-container").innerHTML=ja;Ia(Object.assign({"./examples/1_declarative/index.ts":Js,"./examples/2_create-from-source/index.ts":rr}));export{Nr as S};
269
+ `,Ua=document.querySelector("#markdown-container");Ua.innerHTML=ja;Ia(Object.assign({"./examples/1_declarative/index.ts":Js,"./examples/2_create-from-source/index.ts":rr}),document.querySelector(".markdown-body"));export{Nr as S};
271
270
  function __vite__mapDeps(indexes) {
272
271
  if (!__vite__mapDeps.viteFileDeps) {
273
272
  __vite__mapDeps.viteFileDeps = []
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cas-smartdesign/stage",
3
- "version": "3.0.1",
3
+ "version": "3.0.2",
4
4
  "description": "An element which can be used to represent the progress in a given workflow",
5
5
  "main": "dist/stage-with-externals.js",
6
6
  "module": "dist/stage.mjs",
@@ -8,11 +8,11 @@
8
8
  "license": "SEE LICENSE IN LICENSE",
9
9
  "dependencies": {
10
10
  "lit": "^2.8.0",
11
- "@cas-smartdesign/field-validation-message": "^5.0.1"
11
+ "@cas-smartdesign/field-validation-message": "^5.0.2"
12
12
  },
13
13
  "devDependencies": {
14
- "@cas-smartdesign/element-preview": "^0.2.1",
15
- "@cas-smartdesign/license-generator": "^1.6.1"
14
+ "@cas-smartdesign/license-generator": "^1.6.3",
15
+ "@cas-smartdesign/element-preview": "^0.2.2"
16
16
  },
17
17
  "files": [
18
18
  "dist",
package/readme.md CHANGED
@@ -54,5 +54,3 @@ The element is configured to use `@cas-smartdesign/design-tokens` package and in
54
54
  - `--component-stage-font-size`
55
55
  - `--component-stage-font-family`
56
56
  - `--component-stage-transition-time-short`
57
-
58
- ## Examples