@cas-smartdesign/button 5.2.1 → 5.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -14,6 +14,7 @@ var window;(window||={})["@cas-smartdesign/button"]=(()=>{var n=Object.definePro
14
14
  justify-content: center;
15
15
  box-sizing: border-box;
16
16
  vertical-align: middle;
17
+ border-radius: var(--sd-button-border-radius, 0px);
17
18
  }
18
19
 
19
20
  :host(:focus),
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../element-base/element-base.ts", "../button.html", "../button.ts"],
4
- "sourcesContent": ["export type IReadyEvent = void;\n\nexport interface CustomEventMap extends HTMLElementEventMap {\n ready: CustomEvent<IReadyEvent>;\n}\n\nexport interface ElementBase {\n addEventListener<K extends keyof CustomEventMap>(\n event: K,\n listener: ((this: this, ev: CustomEventMap[K]) => unknown) | null,\n options?: AddEventListenerOptions | boolean,\n ): void;\n addEventListener(\n type: string,\n callback: EventListenerOrEventListenerObject | null,\n options?: AddEventListenerOptions | boolean,\n ): void;\n removeEventListener<K extends keyof CustomEventMap>(\n type: K,\n listener: (this: this, ev: CustomEventMap[K]) => unknown,\n options?: boolean | EventListenerOptions,\n ): void;\n removeEventListener(\n type: string,\n listener: EventListenerOrEventListenerObject,\n options?: boolean | EventListenerOptions,\n ): void;\n dispatchEvent<EventType extends CustomEventMap[keyof CustomEventMap]>(event: EventType): boolean;\n}\n\nexport abstract class ElementBase extends HTMLElement {\n public abstract is(): string;\n\n protected abstract template(): HTMLTemplateElement;\n private static readonly TEMPLATE_CACHE: {\n [name: string]: HTMLTemplateElement;\n } = {};\n private memoizedTemplate(): HTMLTemplateElement {\n const is = this.is();\n if (ElementBase.TEMPLATE_CACHE[is]) {\n return ElementBase.TEMPLATE_CACHE[is];\n }\n const template = this.template();\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n if ((window as any).ShadyCSS) {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n (window as any).ShadyCSS.prepareTemplate(template, this.is());\n }\n ElementBase.TEMPLATE_CACHE[is] = template;\n return template;\n }\n\n public connectedCallback() {\n const template = this.memoizedTemplate();\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n if ((window as any).ShadyCSS) {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n (window as any).ShadyCSS.styleElement(this);\n }\n if (!this.shadowRoot) {\n this.attachShadow({ mode: \"open\" });\n this.shadowRoot.appendChild(document.importNode(template.content, true));\n requestAnimationFrame(() => this.dispatchEvent(new CustomEvent<IReadyEvent>(\"ready\")));\n }\n }\n\n public whenReady(actor: () => void) {\n if (this.shadowRoot) {\n actor();\n } else {\n this.addEventListener(\"ready\", () => actor());\n }\n }\n}\n", "export default \"<style>\\n\\t:host {\\n\\t\\tcontain: content;\\n\\t\\tbackground: rgba(20, 103, 186, 0);\\n\\t\\tcolor: #1467ba;\\n\\t\\tborder: none;\\n\\t\\toutline: none;\\n\\t\\tpadding: 0 8px;\\n\\t\\theight: 32px;\\n\\t\\tcursor: pointer;\\n\\t\\tuser-select: none;\\n\\t\\tdisplay: inline-flex;\\n\\t\\talign-items: center;\\n\\t\\tjustify-content: center;\\n\\t\\tbox-sizing: border-box;\\n\\t\\tvertical-align: middle;\\n\\t}\\n\\n\\t:host(:focus),\\n\\t:host(:not([disabled], [aria-disabled=\\\"true\\\"]):hover) {\\n\\t\\tbackground: rgba(20, 103, 186, 0.1);\\n\\t}\\n\\n\\t@media (forced-colors: active) {\\n\\t\\t:host(:not([disabled], [aria-disabled=\\\"true\\\"]):focus-visible) {\\n\\t\\t\\toutline: 1px solid;\\n\\t\\t}\\n\\t\\t:host {\\n\\t\\t\\tmargin: 1px;\\n\\t\\t}\\n\\t}\\n\\n\\t:host(:not([disabled], [aria-disabled=\\\"true\\\"]):focus-visible) {\\n\\t\\tbox-shadow: 0 0 0 1px #1467ba inset;\\n\\t}\\n\\n\\t:host(:not([disabled], [aria-disabled=\\\"true\\\"]):active) {\\n\\t\\tbackground: rgba(20, 103, 186, 0.2);\\n\\t}\\n\\n\\t:host([primary]) {\\n\\t\\tbackground: #1467ba;\\n\\t\\tcolor: #fff;\\n\\t}\\n\\n\\t:host([primary]:focus),\\n\\t:host(:not([disabled], [aria-disabled=\\\"true\\\"])[primary]:hover) {\\n\\t\\tbackground: #125da8;\\n\\t}\\n\\n\\t:host([primary]:focus-visible) {\\n\\t\\tbox-shadow: 0 0 0 1px white inset;\\n\\t}\\n\\n\\t:host(:not([disabled], [aria-disabled=\\\"true\\\"])[primary]:focus-visible) {\\n\\t\\toutline: 1px solid #1467ba;\\n\\t}\\n\\n\\t:host(:not([disabled], [aria-disabled=\\\"true\\\"])[primary]:active) {\\n\\t\\tbackground: #0e4883;\\n\\t}\\n\\n\\t:host([disabled]),\\n\\t:host([aria-disabled=\\\"true\\\"]) {\\n\\t\\tfilter: grayscale(100%);\\n\\t\\topacity: 0.5;\\n\\t\\tcursor: default;\\n\\t}\\n\\n\\t:host([disabled]:focus-visible),\\n\\t:host([aria-disabled=\\\"true\\\"]:focus-visible) {\\n\\t\\toutline: 1px dashed #111;\\n\\t}\\n\\n\\t.icon:not([src]),\\n\\t.icon[src=\\\"\\\"],\\n\\t.icon[src=\\\"data:,\\\"] {\\n\\t\\tdisplay: none;\\n\\t}\\n\\n\\t.content {\\n\\t\\tdisplay: flex;\\n\\t\\talign-items: center;\\n\\t\\tmin-width: 0px;\\n\\t}\\n\\n\\t.content ::slotted(*) {\\n\\t\\tmargin-left: var(--sd-button-content-padding, 8px);\\n\\t}\\n\\n\\t.content ::slotted(*:last-child) {\\n\\t\\tmargin-right: var(--sd-button-content-padding, 8px);\\n\\t}\\n\\n\\t.icon {\\n\\t\\tmax-height: var(--sd-button-max-icon-size, 32px);\\n\\t\\tmax-width: var(--sd-button-max-icon-size, 32px);\\n\\t}\\n</style>\\n<slot name=\\\"icon\\\">\\n\\t<img class=\\\"icon\\\" src=\\\"data:,\\\" alt part=\\\"icon\\\" />\\n</slot>\\n<div class=\\\"content\\\">\\n\\t<slot></slot>\\n</div>\\n\"", "import { ElementBase } from \"@cas-smartdesign/element-base\";\n\nimport { default as htmlTemplate } from \"./button.html?raw\";\n\ndeclare global {\n interface HTMLElementTagNameMap {\n [Button.ID]: Button;\n }\n}\n\nexport class Button extends ElementBase {\n public static readonly ID = \"sd-button\";\n private _image: HTMLImageElement;\n private _isSpaceOrEnterKeyDown = false;\n\n public get imageElement() {\n return this._image;\n }\n\n public get icon(): string {\n return this.getAttribute(\"icon\");\n }\n\n public set icon(icon: string) {\n if (this.icon !== icon) {\n if (icon) {\n this.setAttribute(\"icon\", icon);\n } else {\n this.removeAttribute(\"icon\");\n }\n this.updateIcon();\n }\n }\n\n public get primary(): boolean {\n return this.hasAttribute(\"primary\");\n }\n\n public set primary(primary: boolean) {\n if (primary) {\n this.setAttribute(\"primary\", \"\");\n } else {\n this.removeAttribute(\"primary\");\n }\n }\n\n public get disabled(): boolean {\n return this.getAttribute(\"aria-disabled\") == \"true\";\n }\n\n public set disabled(disabled: boolean) {\n this.setAttribute(\"aria-disabled\", disabled.toString());\n }\n\n static get observedAttributes() {\n return [\"icon\"];\n }\n\n public is(): string {\n return Button.ID;\n }\n\n protected template(): HTMLTemplateElement {\n const template = document.createElement(\"template\");\n template.innerHTML = htmlTemplate;\n return template;\n }\n\n constructor() {\n super();\n this.addEventListener(\"keydown\", (e) => {\n if (this.isSpaceOrEnter(e)) {\n this._isSpaceOrEnterKeyDown = true;\n e.preventDefault(); // prevent potential scroll-down triggered by space\n }\n });\n this.addEventListener(\"keyup\", (e) => {\n if (this.isSpaceOrEnter(e) && this._isSpaceOrEnterKeyDown == true) {\n this._isSpaceOrEnterKeyDown = false;\n this.click();\n }\n });\n // As Button is not an input element, click is fired even in disabled state\n this.addEventListener(\n \"click\",\n (event) => {\n if (this.disabled || this.hasAttribute(\"disabled\")) {\n event.stopImmediatePropagation();\n return;\n }\n\n const type = this.getAttribute(\"type\")?.toLowerCase()?.trim();\n\n if (type !== \"submit\" && type !== \"reset\") {\n return;\n }\n\n const form = this.closest(\"form\");\n\n if (form && type === \"submit\") {\n form.requestSubmit();\n }\n\n if (form && type === \"reset\") {\n form.reset();\n }\n },\n { capture: true },\n );\n }\n\n private isSpaceOrEnter(event: KeyboardEvent): boolean {\n switch (event.key) {\n case \" \":\n case \"Space\":\n case \"Enter\":\n return true;\n default:\n return false;\n }\n }\n\n public click() {\n if (!this.disabled && !this.hasAttribute(\"disabled\")) {\n super.click();\n }\n }\n\n public connectedCallback() {\n super.connectedCallback();\n\n if (!this.hasAttribute(\"tabIndex\")) {\n this.tabIndex = 0;\n }\n\n this._image = this.shadowRoot.querySelector(\".icon\") as HTMLImageElement;\n\n this.updateIcon();\n if (!this.hasAttribute(\"role\")) {\n this.setAttribute(\"role\", \"button\");\n }\n }\n\n public attributeChangedCallback(): void {\n this.updateIcon();\n }\n\n private updateIcon() {\n if (this._image) {\n const iconSrc = this.getAttribute(\"icon\");\n if (iconSrc) {\n this._image.src = iconSrc;\n }\n }\n }\n}\n\nif (!customElements.get(Button.ID)) {\n customElements.define(Button.ID, Button);\n}\n"],
5
- "mappings": "mfA8BO,IAAeA,EAAf,MAAeA,UAAoB,WAAY,CAO1C,kBAAwC,CAC5C,IAAMC,EAAK,KAAK,GAAA,EAChB,GAAID,EAAY,eAAeC,CAAE,EAC7B,OAAOD,EAAY,eAAeC,CAAE,EAExC,IAAMC,EAAW,KAAK,SAAA,EAEtB,OAAK,OAAe,UAEf,OAAe,SAAS,gBAAgBA,EAAU,KAAK,GAAA,CAAI,EAEhEF,EAAY,eAAeC,CAAE,EAAIC,EAC1BA,CACX,CAEO,mBAAoB,CACvB,IAAMA,EAAW,KAAK,iBAAA,EAEjB,OAAe,UAEf,OAAe,SAAS,aAAa,IAAI,EAEzC,KAAK,aACN,KAAK,aAAa,CAAE,KAAM,MAAA,CAAQ,EAClC,KAAK,WAAW,YAAY,SAAS,WAAWA,EAAS,QAAS,EAAI,CAAC,EACvE,sBAAsB,IAAM,KAAK,cAAc,IAAI,YAAyB,OAAO,CAAC,CAAC,EAE7F,CAEO,UAAUC,EAAmB,CAC5B,KAAK,WACLA,EAAA,EAEA,KAAK,iBAAiB,QAAS,IAAMA,EAAA,CAAO,CAEpD,CACJ,EAvCIH,EAAwB,eAEpB,CAAA,EAND,IAAeI,EAAfJ,EC9BP,IAAAK,EAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ECUFC,EAAN,MAAMA,UAAeC,CAAY,CA0DpC,aAAc,CACV,MAAA,EAxDJ,KAAQ,uBAAyB,GAyD7B,KAAK,iBAAiB,UAAYC,GAAM,CAChC,KAAK,eAAeA,CAAC,IACrB,KAAK,uBAAyB,GAC9BA,EAAE,eAAA,EAEV,CAAC,EACD,KAAK,iBAAiB,QAAUA,GAAM,CAC9B,KAAK,eAAeA,CAAC,GAAK,KAAK,wBAA0B,KACzD,KAAK,uBAAyB,GAC9B,KAAK,MAAA,EAEb,CAAC,EAED,KAAK,iBACD,QACCC,GAAU,CACP,GAAI,KAAK,UAAY,KAAK,aAAa,UAAU,EAAG,CAChDA,EAAM,yBAAA,EACN,MACJ,CAEA,IAAMC,EAAO,KAAK,aAAa,MAAM,GAAG,YAAA,GAAe,KAAA,EAEvD,GAAIA,IAAS,UAAYA,IAAS,QAC9B,OAGJ,IAAMC,EAAO,KAAK,QAAQ,MAAM,EAE5BA,GAAQD,IAAS,UACjBC,EAAK,cAAA,EAGLA,GAAQD,IAAS,SACjBC,EAAK,MAAA,CAEb,EACA,CAAE,QAAS,EAAA,CAAK,CAExB,CA9FA,IAAW,cAAe,CACtB,OAAO,KAAK,MAChB,CAEA,IAAW,MAAe,CACtB,OAAO,KAAK,aAAa,MAAM,CACnC,CAEA,IAAW,KAAKC,EAAc,CACtB,KAAK,OAASA,IACVA,EACA,KAAK,aAAa,OAAQA,CAAI,EAE9B,KAAK,gBAAgB,MAAM,EAE/B,KAAK,WAAA,EAEb,CAEA,IAAW,SAAmB,CAC1B,OAAO,KAAK,aAAa,SAAS,CACtC,CAEA,IAAW,QAAQC,EAAkB,CAC7BA,EACA,KAAK,aAAa,UAAW,EAAE,EAE/B,KAAK,gBAAgB,SAAS,CAEtC,CAEA,IAAW,UAAoB,CAC3B,OAAO,KAAK,aAAa,eAAe,GAAK,MACjD,CAEA,IAAW,SAASC,EAAmB,CACnC,KAAK,aAAa,gBAAiBA,EAAS,SAAA,CAAU,CAC1D,CAEA,WAAW,oBAAqB,CAC5B,MAAO,CAAC,MAAM,CAClB,CAEO,IAAa,CAChB,OAAOR,EAAO,EAClB,CAEU,UAAgC,CACtC,IAAMS,EAAW,SAAS,cAAc,UAAU,EAClD,OAAAA,EAAS,UAAYV,EACdU,CACX,CA6CQ,eAAeN,EAA+B,CAClD,OAAQA,EAAM,IAAA,CACV,IAAK,IACL,IAAK,QACL,IAAK,QACD,MAAO,GACX,QACI,MAAO,EAAA,CAEnB,CAEO,OAAQ,CACP,CAAC,KAAK,UAAY,CAAC,KAAK,aAAa,UAAU,GAC/C,MAAM,MAAA,CAEd,CAEO,mBAAoB,CACvB,MAAM,kBAAA,EAED,KAAK,aAAa,UAAU,IAC7B,KAAK,SAAW,GAGpB,KAAK,OAAS,KAAK,WAAW,cAAc,OAAO,EAEnD,KAAK,WAAA,EACA,KAAK,aAAa,MAAM,GACzB,KAAK,aAAa,OAAQ,QAAQ,CAE1C,CAEO,0BAAiC,CACpC,KAAK,WAAA,CACT,CAEQ,YAAa,CACjB,GAAI,KAAK,OAAQ,CACb,IAAMO,EAAU,KAAK,aAAa,MAAM,EACpCA,IACA,KAAK,OAAO,IAAMA,EAE1B,CACJ,CACJ,EAhJIV,EAAuB,GAAK,YADzB,IAAMW,EAANX,EAmJF,eAAe,IAAIW,EAAO,EAAE,GAC7B,eAAe,OAAOA,EAAO,GAAIA,CAAM",
4
+ "sourcesContent": ["export type IReadyEvent = void;\n\nexport interface CustomEventMap extends HTMLElementEventMap {\n ready: CustomEvent<IReadyEvent>;\n}\n\nexport interface ElementBase {\n addEventListener<K extends keyof CustomEventMap>(\n event: K,\n listener: ((this: this, ev: CustomEventMap[K]) => unknown) | null,\n options?: AddEventListenerOptions | boolean,\n ): void;\n addEventListener(\n type: string,\n callback: EventListenerOrEventListenerObject | null,\n options?: AddEventListenerOptions | boolean,\n ): void;\n removeEventListener<K extends keyof CustomEventMap>(\n type: K,\n listener: (this: this, ev: CustomEventMap[K]) => unknown,\n options?: boolean | EventListenerOptions,\n ): void;\n removeEventListener(\n type: string,\n listener: EventListenerOrEventListenerObject,\n options?: boolean | EventListenerOptions,\n ): void;\n dispatchEvent<EventType extends CustomEventMap[keyof CustomEventMap]>(event: EventType): boolean;\n}\n\nexport abstract class ElementBase extends HTMLElement {\n public abstract is(): string;\n\n protected abstract template(): HTMLTemplateElement;\n private static readonly TEMPLATE_CACHE: {\n [name: string]: HTMLTemplateElement;\n } = {};\n private memoizedTemplate(): HTMLTemplateElement {\n const is = this.is();\n if (ElementBase.TEMPLATE_CACHE[is]) {\n return ElementBase.TEMPLATE_CACHE[is];\n }\n const template = this.template();\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n if ((window as any).ShadyCSS) {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n (window as any).ShadyCSS.prepareTemplate(template, this.is());\n }\n ElementBase.TEMPLATE_CACHE[is] = template;\n return template;\n }\n\n public connectedCallback() {\n const template = this.memoizedTemplate();\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n if ((window as any).ShadyCSS) {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n (window as any).ShadyCSS.styleElement(this);\n }\n if (!this.shadowRoot) {\n this.attachShadow({ mode: \"open\" });\n this.shadowRoot.appendChild(document.importNode(template.content, true));\n requestAnimationFrame(() => this.dispatchEvent(new CustomEvent<IReadyEvent>(\"ready\")));\n }\n }\n\n public whenReady(actor: () => void) {\n if (this.shadowRoot) {\n actor();\n } else {\n this.addEventListener(\"ready\", () => actor());\n }\n }\n}\n", "export default \"<style>\\n\\t:host {\\n\\t\\tcontain: content;\\n\\t\\tbackground: rgba(20, 103, 186, 0);\\n\\t\\tcolor: #1467ba;\\n\\t\\tborder: none;\\n\\t\\toutline: none;\\n\\t\\tpadding: 0 8px;\\n\\t\\theight: 32px;\\n\\t\\tcursor: pointer;\\n\\t\\tuser-select: none;\\n\\t\\tdisplay: inline-flex;\\n\\t\\talign-items: center;\\n\\t\\tjustify-content: center;\\n\\t\\tbox-sizing: border-box;\\n\\t\\tvertical-align: middle;\\n\\t\\tborder-radius: var(--sd-button-border-radius, 0px);\\n\\t}\\n\\n\\t:host(:focus),\\n\\t:host(:not([disabled], [aria-disabled=\\\"true\\\"]):hover) {\\n\\t\\tbackground: rgba(20, 103, 186, 0.1);\\n\\t}\\n\\n\\t@media (forced-colors: active) {\\n\\t\\t:host(:not([disabled], [aria-disabled=\\\"true\\\"]):focus-visible) {\\n\\t\\t\\toutline: 1px solid;\\n\\t\\t}\\n\\t\\t:host {\\n\\t\\t\\tmargin: 1px;\\n\\t\\t}\\n\\t}\\n\\n\\t:host(:not([disabled], [aria-disabled=\\\"true\\\"]):focus-visible) {\\n\\t\\tbox-shadow: 0 0 0 1px #1467ba inset;\\n\\t}\\n\\n\\t:host(:not([disabled], [aria-disabled=\\\"true\\\"]):active) {\\n\\t\\tbackground: rgba(20, 103, 186, 0.2);\\n\\t}\\n\\n\\t:host([primary]) {\\n\\t\\tbackground: #1467ba;\\n\\t\\tcolor: #fff;\\n\\t}\\n\\n\\t:host([primary]:focus),\\n\\t:host(:not([disabled], [aria-disabled=\\\"true\\\"])[primary]:hover) {\\n\\t\\tbackground: #125da8;\\n\\t}\\n\\n\\t:host([primary]:focus-visible) {\\n\\t\\tbox-shadow: 0 0 0 1px white inset;\\n\\t}\\n\\n\\t:host(:not([disabled], [aria-disabled=\\\"true\\\"])[primary]:focus-visible) {\\n\\t\\toutline: 1px solid #1467ba;\\n\\t}\\n\\n\\t:host(:not([disabled], [aria-disabled=\\\"true\\\"])[primary]:active) {\\n\\t\\tbackground: #0e4883;\\n\\t}\\n\\n\\t:host([disabled]),\\n\\t:host([aria-disabled=\\\"true\\\"]) {\\n\\t\\tfilter: grayscale(100%);\\n\\t\\topacity: 0.5;\\n\\t\\tcursor: default;\\n\\t}\\n\\n\\t:host([disabled]:focus-visible),\\n\\t:host([aria-disabled=\\\"true\\\"]:focus-visible) {\\n\\t\\toutline: 1px dashed #111;\\n\\t}\\n\\n\\t.icon:not([src]),\\n\\t.icon[src=\\\"\\\"],\\n\\t.icon[src=\\\"data:,\\\"] {\\n\\t\\tdisplay: none;\\n\\t}\\n\\n\\t.content {\\n\\t\\tdisplay: flex;\\n\\t\\talign-items: center;\\n\\t\\tmin-width: 0px;\\n\\t}\\n\\n\\t.content ::slotted(*) {\\n\\t\\tmargin-left: var(--sd-button-content-padding, 8px);\\n\\t}\\n\\n\\t.content ::slotted(*:last-child) {\\n\\t\\tmargin-right: var(--sd-button-content-padding, 8px);\\n\\t}\\n\\n\\t.icon {\\n\\t\\tmax-height: var(--sd-button-max-icon-size, 32px);\\n\\t\\tmax-width: var(--sd-button-max-icon-size, 32px);\\n\\t}\\n</style>\\n<slot name=\\\"icon\\\">\\n\\t<img class=\\\"icon\\\" src=\\\"data:,\\\" alt part=\\\"icon\\\" />\\n</slot>\\n<div class=\\\"content\\\">\\n\\t<slot></slot>\\n</div>\\n\"", "import { ElementBase } from \"@cas-smartdesign/element-base\";\n\nimport { default as htmlTemplate } from \"./button.html?raw\";\n\ndeclare global {\n interface HTMLElementTagNameMap {\n [Button.ID]: Button;\n }\n}\n\nexport class Button extends ElementBase {\n public static readonly ID = \"sd-button\";\n private _image: HTMLImageElement;\n private _isSpaceOrEnterKeyDown = false;\n\n public get imageElement() {\n return this._image;\n }\n\n public get icon(): string {\n return this.getAttribute(\"icon\");\n }\n\n public set icon(icon: string) {\n if (this.icon !== icon) {\n if (icon) {\n this.setAttribute(\"icon\", icon);\n } else {\n this.removeAttribute(\"icon\");\n }\n this.updateIcon();\n }\n }\n\n public get primary(): boolean {\n return this.hasAttribute(\"primary\");\n }\n\n public set primary(primary: boolean) {\n if (primary) {\n this.setAttribute(\"primary\", \"\");\n } else {\n this.removeAttribute(\"primary\");\n }\n }\n\n public get disabled(): boolean {\n return this.getAttribute(\"aria-disabled\") == \"true\";\n }\n\n public set disabled(disabled: boolean) {\n this.setAttribute(\"aria-disabled\", disabled.toString());\n }\n\n static get observedAttributes() {\n return [\"icon\"];\n }\n\n public is(): string {\n return Button.ID;\n }\n\n protected template(): HTMLTemplateElement {\n const template = document.createElement(\"template\");\n template.innerHTML = htmlTemplate;\n return template;\n }\n\n constructor() {\n super();\n this.addEventListener(\"keydown\", (e) => {\n if (this.isSpaceOrEnter(e)) {\n this._isSpaceOrEnterKeyDown = true;\n e.preventDefault(); // prevent potential scroll-down triggered by space\n }\n });\n this.addEventListener(\"keyup\", (e) => {\n if (this.isSpaceOrEnter(e) && this._isSpaceOrEnterKeyDown == true) {\n this._isSpaceOrEnterKeyDown = false;\n this.click();\n }\n });\n // As Button is not an input element, click is fired even in disabled state\n this.addEventListener(\n \"click\",\n (event) => {\n if (this.disabled || this.hasAttribute(\"disabled\")) {\n event.stopImmediatePropagation();\n return;\n }\n\n const type = this.getAttribute(\"type\")?.toLowerCase()?.trim();\n\n if (type !== \"submit\" && type !== \"reset\") {\n return;\n }\n\n const form = this.closest(\"form\");\n\n if (form && type === \"submit\") {\n form.requestSubmit();\n }\n\n if (form && type === \"reset\") {\n form.reset();\n }\n },\n { capture: true },\n );\n }\n\n private isSpaceOrEnter(event: KeyboardEvent): boolean {\n switch (event.key) {\n case \" \":\n case \"Space\":\n case \"Enter\":\n return true;\n default:\n return false;\n }\n }\n\n public click() {\n if (!this.disabled && !this.hasAttribute(\"disabled\")) {\n super.click();\n }\n }\n\n public connectedCallback() {\n super.connectedCallback();\n\n if (!this.hasAttribute(\"tabIndex\")) {\n this.tabIndex = 0;\n }\n\n this._image = this.shadowRoot.querySelector(\".icon\") as HTMLImageElement;\n\n this.updateIcon();\n if (!this.hasAttribute(\"role\")) {\n this.setAttribute(\"role\", \"button\");\n }\n }\n\n public attributeChangedCallback(): void {\n this.updateIcon();\n }\n\n private updateIcon() {\n if (this._image) {\n const iconSrc = this.getAttribute(\"icon\");\n if (iconSrc) {\n this._image.src = iconSrc;\n }\n }\n }\n}\n\nif (!customElements.get(Button.ID)) {\n customElements.define(Button.ID, Button);\n}\n"],
5
+ "mappings": "mfA8BO,IAAeA,EAAf,MAAeA,UAAoB,WAAY,CAO1C,kBAAwC,CAC5C,IAAMC,EAAK,KAAK,GAAA,EAChB,GAAID,EAAY,eAAeC,CAAE,EAC7B,OAAOD,EAAY,eAAeC,CAAE,EAExC,IAAMC,EAAW,KAAK,SAAA,EAEtB,OAAK,OAAe,UAEf,OAAe,SAAS,gBAAgBA,EAAU,KAAK,GAAA,CAAI,EAEhEF,EAAY,eAAeC,CAAE,EAAIC,EAC1BA,CACX,CAEO,mBAAoB,CACvB,IAAMA,EAAW,KAAK,iBAAA,EAEjB,OAAe,UAEf,OAAe,SAAS,aAAa,IAAI,EAEzC,KAAK,aACN,KAAK,aAAa,CAAE,KAAM,MAAA,CAAQ,EAClC,KAAK,WAAW,YAAY,SAAS,WAAWA,EAAS,QAAS,EAAI,CAAC,EACvE,sBAAsB,IAAM,KAAK,cAAc,IAAI,YAAyB,OAAO,CAAC,CAAC,EAE7F,CAEO,UAAUC,EAAmB,CAC5B,KAAK,WACLA,EAAA,EAEA,KAAK,iBAAiB,QAAS,IAAMA,EAAA,CAAO,CAEpD,CACJ,EAvCIH,EAAwB,eAEpB,CAAA,EAND,IAAeI,EAAfJ,EC9BP,IAAAK,EAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ECUFC,EAAN,MAAMA,UAAeC,CAAY,CA0DpC,aAAc,CACV,MAAA,EAxDJ,KAAQ,uBAAyB,GAyD7B,KAAK,iBAAiB,UAAYC,GAAM,CAChC,KAAK,eAAeA,CAAC,IACrB,KAAK,uBAAyB,GAC9BA,EAAE,eAAA,EAEV,CAAC,EACD,KAAK,iBAAiB,QAAUA,GAAM,CAC9B,KAAK,eAAeA,CAAC,GAAK,KAAK,wBAA0B,KACzD,KAAK,uBAAyB,GAC9B,KAAK,MAAA,EAEb,CAAC,EAED,KAAK,iBACD,QACCC,GAAU,CACP,GAAI,KAAK,UAAY,KAAK,aAAa,UAAU,EAAG,CAChDA,EAAM,yBAAA,EACN,MACJ,CAEA,IAAMC,EAAO,KAAK,aAAa,MAAM,GAAG,YAAA,GAAe,KAAA,EAEvD,GAAIA,IAAS,UAAYA,IAAS,QAC9B,OAGJ,IAAMC,EAAO,KAAK,QAAQ,MAAM,EAE5BA,GAAQD,IAAS,UACjBC,EAAK,cAAA,EAGLA,GAAQD,IAAS,SACjBC,EAAK,MAAA,CAEb,EACA,CAAE,QAAS,EAAA,CAAK,CAExB,CA9FA,IAAW,cAAe,CACtB,OAAO,KAAK,MAChB,CAEA,IAAW,MAAe,CACtB,OAAO,KAAK,aAAa,MAAM,CACnC,CAEA,IAAW,KAAKC,EAAc,CACtB,KAAK,OAASA,IACVA,EACA,KAAK,aAAa,OAAQA,CAAI,EAE9B,KAAK,gBAAgB,MAAM,EAE/B,KAAK,WAAA,EAEb,CAEA,IAAW,SAAmB,CAC1B,OAAO,KAAK,aAAa,SAAS,CACtC,CAEA,IAAW,QAAQC,EAAkB,CAC7BA,EACA,KAAK,aAAa,UAAW,EAAE,EAE/B,KAAK,gBAAgB,SAAS,CAEtC,CAEA,IAAW,UAAoB,CAC3B,OAAO,KAAK,aAAa,eAAe,GAAK,MACjD,CAEA,IAAW,SAASC,EAAmB,CACnC,KAAK,aAAa,gBAAiBA,EAAS,SAAA,CAAU,CAC1D,CAEA,WAAW,oBAAqB,CAC5B,MAAO,CAAC,MAAM,CAClB,CAEO,IAAa,CAChB,OAAOR,EAAO,EAClB,CAEU,UAAgC,CACtC,IAAMS,EAAW,SAAS,cAAc,UAAU,EAClD,OAAAA,EAAS,UAAYV,EACdU,CACX,CA6CQ,eAAeN,EAA+B,CAClD,OAAQA,EAAM,IAAA,CACV,IAAK,IACL,IAAK,QACL,IAAK,QACD,MAAO,GACX,QACI,MAAO,EAAA,CAEnB,CAEO,OAAQ,CACP,CAAC,KAAK,UAAY,CAAC,KAAK,aAAa,UAAU,GAC/C,MAAM,MAAA,CAEd,CAEO,mBAAoB,CACvB,MAAM,kBAAA,EAED,KAAK,aAAa,UAAU,IAC7B,KAAK,SAAW,GAGpB,KAAK,OAAS,KAAK,WAAW,cAAc,OAAO,EAEnD,KAAK,WAAA,EACA,KAAK,aAAa,MAAM,GACzB,KAAK,aAAa,OAAQ,QAAQ,CAE1C,CAEO,0BAAiC,CACpC,KAAK,WAAA,CACT,CAEQ,YAAa,CACjB,GAAI,KAAK,OAAQ,CACb,IAAMO,EAAU,KAAK,aAAa,MAAM,EACpCA,IACA,KAAK,OAAO,IAAMA,EAE1B,CACJ,CACJ,EAhJIV,EAAuB,GAAK,YADzB,IAAMW,EAANX,EAmJF,eAAe,IAAIW,EAAO,EAAE,GAC7B,eAAe,OAAOA,EAAO,GAAIA,CAAM",
6
6
  "names": ["_ElementBase", "is", "template", "actor", "ElementBase", "htmlTemplate", "_Button", "ElementBase", "e", "event", "type", "form", "icon", "primary", "disabled", "template", "iconSrc", "Button"]
7
7
  }
package/dist/button.mjs CHANGED
@@ -15,6 +15,7 @@ const a = `<style>
15
15
  justify-content: center;
16
16
  box-sizing: border-box;
17
17
  vertical-align: middle;
18
+ border-radius: var(--sd-button-border-radius, 0px);
18
19
  }
19
20
 
20
21
  :host(:focus),
@@ -1 +1 @@
1
- {"version":3,"file":"button.mjs","sources":["../button.html?raw","../button.ts"],"sourcesContent":["export default \"<style>\\n\\t:host {\\n\\t\\tcontain: content;\\n\\t\\tbackground: rgba(20, 103, 186, 0);\\n\\t\\tcolor: #1467ba;\\n\\t\\tborder: none;\\n\\t\\toutline: none;\\n\\t\\tpadding: 0 8px;\\n\\t\\theight: 32px;\\n\\t\\tcursor: pointer;\\n\\t\\tuser-select: none;\\n\\t\\tdisplay: inline-flex;\\n\\t\\talign-items: center;\\n\\t\\tjustify-content: center;\\n\\t\\tbox-sizing: border-box;\\n\\t\\tvertical-align: middle;\\n\\t}\\n\\n\\t:host(:focus),\\n\\t:host(:not([disabled], [aria-disabled=\\\"true\\\"]):hover) {\\n\\t\\tbackground: rgba(20, 103, 186, 0.1);\\n\\t}\\n\\n\\t@media (forced-colors: active) {\\n\\t\\t:host(:not([disabled], [aria-disabled=\\\"true\\\"]):focus-visible) {\\n\\t\\t\\toutline: 1px solid;\\n\\t\\t}\\n\\t\\t:host {\\n\\t\\t\\tmargin: 1px;\\n\\t\\t}\\n\\t}\\n\\n\\t:host(:not([disabled], [aria-disabled=\\\"true\\\"]):focus-visible) {\\n\\t\\tbox-shadow: 0 0 0 1px #1467ba inset;\\n\\t}\\n\\n\\t:host(:not([disabled], [aria-disabled=\\\"true\\\"]):active) {\\n\\t\\tbackground: rgba(20, 103, 186, 0.2);\\n\\t}\\n\\n\\t:host([primary]) {\\n\\t\\tbackground: #1467ba;\\n\\t\\tcolor: #fff;\\n\\t}\\n\\n\\t:host([primary]:focus),\\n\\t:host(:not([disabled], [aria-disabled=\\\"true\\\"])[primary]:hover) {\\n\\t\\tbackground: #125da8;\\n\\t}\\n\\n\\t:host([primary]:focus-visible) {\\n\\t\\tbox-shadow: 0 0 0 1px white inset;\\n\\t}\\n\\n\\t:host(:not([disabled], [aria-disabled=\\\"true\\\"])[primary]:focus-visible) {\\n\\t\\toutline: 1px solid #1467ba;\\n\\t}\\n\\n\\t:host(:not([disabled], [aria-disabled=\\\"true\\\"])[primary]:active) {\\n\\t\\tbackground: #0e4883;\\n\\t}\\n\\n\\t:host([disabled]),\\n\\t:host([aria-disabled=\\\"true\\\"]) {\\n\\t\\tfilter: grayscale(100%);\\n\\t\\topacity: 0.5;\\n\\t\\tcursor: default;\\n\\t}\\n\\n\\t:host([disabled]:focus-visible),\\n\\t:host([aria-disabled=\\\"true\\\"]:focus-visible) {\\n\\t\\toutline: 1px dashed #111;\\n\\t}\\n\\n\\t.icon:not([src]),\\n\\t.icon[src=\\\"\\\"],\\n\\t.icon[src=\\\"data:,\\\"] {\\n\\t\\tdisplay: none;\\n\\t}\\n\\n\\t.content {\\n\\t\\tdisplay: flex;\\n\\t\\talign-items: center;\\n\\t\\tmin-width: 0px;\\n\\t}\\n\\n\\t.content ::slotted(*) {\\n\\t\\tmargin-left: var(--sd-button-content-padding, 8px);\\n\\t}\\n\\n\\t.content ::slotted(*:last-child) {\\n\\t\\tmargin-right: var(--sd-button-content-padding, 8px);\\n\\t}\\n\\n\\t.icon {\\n\\t\\tmax-height: var(--sd-button-max-icon-size, 32px);\\n\\t\\tmax-width: var(--sd-button-max-icon-size, 32px);\\n\\t}\\n</style>\\n<slot name=\\\"icon\\\">\\n\\t<img class=\\\"icon\\\" src=\\\"data:,\\\" alt part=\\\"icon\\\" />\\n</slot>\\n<div class=\\\"content\\\">\\n\\t<slot></slot>\\n</div>\\n\"","import { ElementBase } from \"@cas-smartdesign/element-base\";\n\nimport { default as htmlTemplate } from \"./button.html?raw\";\n\ndeclare global {\n interface HTMLElementTagNameMap {\n [Button.ID]: Button;\n }\n}\n\nexport class Button extends ElementBase {\n public static readonly ID = \"sd-button\";\n private _image: HTMLImageElement;\n private _isSpaceOrEnterKeyDown = false;\n\n public get imageElement() {\n return this._image;\n }\n\n public get icon(): string {\n return this.getAttribute(\"icon\");\n }\n\n public set icon(icon: string) {\n if (this.icon !== icon) {\n if (icon) {\n this.setAttribute(\"icon\", icon);\n } else {\n this.removeAttribute(\"icon\");\n }\n this.updateIcon();\n }\n }\n\n public get primary(): boolean {\n return this.hasAttribute(\"primary\");\n }\n\n public set primary(primary: boolean) {\n if (primary) {\n this.setAttribute(\"primary\", \"\");\n } else {\n this.removeAttribute(\"primary\");\n }\n }\n\n public get disabled(): boolean {\n return this.getAttribute(\"aria-disabled\") == \"true\";\n }\n\n public set disabled(disabled: boolean) {\n this.setAttribute(\"aria-disabled\", disabled.toString());\n }\n\n static get observedAttributes() {\n return [\"icon\"];\n }\n\n public is(): string {\n return Button.ID;\n }\n\n protected template(): HTMLTemplateElement {\n const template = document.createElement(\"template\");\n template.innerHTML = htmlTemplate;\n return template;\n }\n\n constructor() {\n super();\n this.addEventListener(\"keydown\", (e) => {\n if (this.isSpaceOrEnter(e)) {\n this._isSpaceOrEnterKeyDown = true;\n e.preventDefault(); // prevent potential scroll-down triggered by space\n }\n });\n this.addEventListener(\"keyup\", (e) => {\n if (this.isSpaceOrEnter(e) && this._isSpaceOrEnterKeyDown == true) {\n this._isSpaceOrEnterKeyDown = false;\n this.click();\n }\n });\n // As Button is not an input element, click is fired even in disabled state\n this.addEventListener(\n \"click\",\n (event) => {\n if (this.disabled || this.hasAttribute(\"disabled\")) {\n event.stopImmediatePropagation();\n return;\n }\n\n const type = this.getAttribute(\"type\")?.toLowerCase()?.trim();\n\n if (type !== \"submit\" && type !== \"reset\") {\n return;\n }\n\n const form = this.closest(\"form\");\n\n if (form && type === \"submit\") {\n form.requestSubmit();\n }\n\n if (form && type === \"reset\") {\n form.reset();\n }\n },\n { capture: true },\n );\n }\n\n private isSpaceOrEnter(event: KeyboardEvent): boolean {\n switch (event.key) {\n case \" \":\n case \"Space\":\n case \"Enter\":\n return true;\n default:\n return false;\n }\n }\n\n public click() {\n if (!this.disabled && !this.hasAttribute(\"disabled\")) {\n super.click();\n }\n }\n\n public connectedCallback() {\n super.connectedCallback();\n\n if (!this.hasAttribute(\"tabIndex\")) {\n this.tabIndex = 0;\n }\n\n this._image = this.shadowRoot.querySelector(\".icon\") as HTMLImageElement;\n\n this.updateIcon();\n if (!this.hasAttribute(\"role\")) {\n this.setAttribute(\"role\", \"button\");\n }\n }\n\n public attributeChangedCallback(): void {\n this.updateIcon();\n }\n\n private updateIcon() {\n if (this._image) {\n const iconSrc = this.getAttribute(\"icon\");\n if (iconSrc) {\n this._image.src = iconSrc;\n }\n }\n }\n}\n\nif (!customElements.get(Button.ID)) {\n customElements.define(Button.ID, Button);\n}\n"],"names":["htmlTemplate","_Button","ElementBase","e","event","type","form","icon","primary","disabled","template","iconSrc","Button"],"mappings":";AAAA,MAAAA,IAAe;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,GCUFC,IAAN,MAAMA,UAAeC,EAAY;AAAA,EA0DpC,cAAc;AACV,UAAA,GAxDJ,KAAQ,yBAAyB,IAyD7B,KAAK,iBAAiB,WAAW,CAACC,MAAM;AACpC,MAAI,KAAK,eAAeA,CAAC,MACrB,KAAK,yBAAyB,IAC9BA,EAAE,eAAA;AAAA,IAEV,CAAC,GACD,KAAK,iBAAiB,SAAS,CAACA,MAAM;AAClC,MAAI,KAAK,eAAeA,CAAC,KAAK,KAAK,0BAA0B,OACzD,KAAK,yBAAyB,IAC9B,KAAK,MAAA;AAAA,IAEb,CAAC,GAED,KAAK;AAAA,MACD;AAAA,MACA,CAACC,MAAU;AACP,YAAI,KAAK,YAAY,KAAK,aAAa,UAAU,GAAG;AAChD,UAAAA,EAAM,yBAAA;AACN;AAAA,QACJ;AAEA,cAAMC,IAAO,KAAK,aAAa,MAAM,GAAG,YAAA,GAAe,KAAA;AAEvD,YAAIA,MAAS,YAAYA,MAAS;AAC9B;AAGJ,cAAMC,IAAO,KAAK,QAAQ,MAAM;AAEhC,QAAIA,KAAQD,MAAS,YACjBC,EAAK,cAAA,GAGLA,KAAQD,MAAS,WACjBC,EAAK,MAAA;AAAA,MAEb;AAAA,MACA,EAAE,SAAS,GAAA;AAAA,IAAK;AAAA,EAExB;AAAA,EA9FA,IAAW,eAAe;AACtB,WAAO,KAAK;AAAA,EAChB;AAAA,EAEA,IAAW,OAAe;AACtB,WAAO,KAAK,aAAa,MAAM;AAAA,EACnC;AAAA,EAEA,IAAW,KAAKC,GAAc;AAC1B,IAAI,KAAK,SAASA,MACVA,IACA,KAAK,aAAa,QAAQA,CAAI,IAE9B,KAAK,gBAAgB,MAAM,GAE/B,KAAK,WAAA;AAAA,EAEb;AAAA,EAEA,IAAW,UAAmB;AAC1B,WAAO,KAAK,aAAa,SAAS;AAAA,EACtC;AAAA,EAEA,IAAW,QAAQC,GAAkB;AACjC,IAAIA,IACA,KAAK,aAAa,WAAW,EAAE,IAE/B,KAAK,gBAAgB,SAAS;AAAA,EAEtC;AAAA,EAEA,IAAW,WAAoB;AAC3B,WAAO,KAAK,aAAa,eAAe,KAAK;AAAA,EACjD;AAAA,EAEA,IAAW,SAASC,GAAmB;AACnC,SAAK,aAAa,iBAAiBA,EAAS,SAAA,CAAU;AAAA,EAC1D;AAAA,EAEA,WAAW,qBAAqB;AAC5B,WAAO,CAAC,MAAM;AAAA,EAClB;AAAA,EAEO,KAAa;AAChB,WAAOR,EAAO;AAAA,EAClB;AAAA,EAEU,WAAgC;AACtC,UAAMS,IAAW,SAAS,cAAc,UAAU;AAClD,WAAAA,EAAS,YAAYV,GACdU;AAAA,EACX;AAAA,EA6CQ,eAAeN,GAA+B;AAClD,YAAQA,EAAM,KAAA;AAAA,MACV,KAAK;AAAA,MACL,KAAK;AAAA,MACL,KAAK;AACD,eAAO;AAAA,MACX;AACI,eAAO;AAAA,IAAA;AAAA,EAEnB;AAAA,EAEO,QAAQ;AACX,IAAI,CAAC,KAAK,YAAY,CAAC,KAAK,aAAa,UAAU,KAC/C,MAAM,MAAA;AAAA,EAEd;AAAA,EAEO,oBAAoB;AACvB,UAAM,kBAAA,GAED,KAAK,aAAa,UAAU,MAC7B,KAAK,WAAW,IAGpB,KAAK,SAAS,KAAK,WAAW,cAAc,OAAO,GAEnD,KAAK,WAAA,GACA,KAAK,aAAa,MAAM,KACzB,KAAK,aAAa,QAAQ,QAAQ;AAAA,EAE1C;AAAA,EAEO,2BAAiC;AACpC,SAAK,WAAA;AAAA,EACT;AAAA,EAEQ,aAAa;AACjB,QAAI,KAAK,QAAQ;AACb,YAAMO,IAAU,KAAK,aAAa,MAAM;AACxC,MAAIA,MACA,KAAK,OAAO,MAAMA;AAAA,IAE1B;AAAA,EACJ;AACJ;AAhJIV,EAAuB,KAAK;AADzB,IAAMW,IAANX;AAmJF,eAAe,IAAIW,EAAO,EAAE,KAC7B,eAAe,OAAOA,EAAO,IAAIA,CAAM;"}
1
+ {"version":3,"file":"button.mjs","sources":["../button.html?raw","../button.ts"],"sourcesContent":["export default \"<style>\\n\\t:host {\\n\\t\\tcontain: content;\\n\\t\\tbackground: rgba(20, 103, 186, 0);\\n\\t\\tcolor: #1467ba;\\n\\t\\tborder: none;\\n\\t\\toutline: none;\\n\\t\\tpadding: 0 8px;\\n\\t\\theight: 32px;\\n\\t\\tcursor: pointer;\\n\\t\\tuser-select: none;\\n\\t\\tdisplay: inline-flex;\\n\\t\\talign-items: center;\\n\\t\\tjustify-content: center;\\n\\t\\tbox-sizing: border-box;\\n\\t\\tvertical-align: middle;\\n\\t\\tborder-radius: var(--sd-button-border-radius, 0px);\\n\\t}\\n\\n\\t:host(:focus),\\n\\t:host(:not([disabled], [aria-disabled=\\\"true\\\"]):hover) {\\n\\t\\tbackground: rgba(20, 103, 186, 0.1);\\n\\t}\\n\\n\\t@media (forced-colors: active) {\\n\\t\\t:host(:not([disabled], [aria-disabled=\\\"true\\\"]):focus-visible) {\\n\\t\\t\\toutline: 1px solid;\\n\\t\\t}\\n\\t\\t:host {\\n\\t\\t\\tmargin: 1px;\\n\\t\\t}\\n\\t}\\n\\n\\t:host(:not([disabled], [aria-disabled=\\\"true\\\"]):focus-visible) {\\n\\t\\tbox-shadow: 0 0 0 1px #1467ba inset;\\n\\t}\\n\\n\\t:host(:not([disabled], [aria-disabled=\\\"true\\\"]):active) {\\n\\t\\tbackground: rgba(20, 103, 186, 0.2);\\n\\t}\\n\\n\\t:host([primary]) {\\n\\t\\tbackground: #1467ba;\\n\\t\\tcolor: #fff;\\n\\t}\\n\\n\\t:host([primary]:focus),\\n\\t:host(:not([disabled], [aria-disabled=\\\"true\\\"])[primary]:hover) {\\n\\t\\tbackground: #125da8;\\n\\t}\\n\\n\\t:host([primary]:focus-visible) {\\n\\t\\tbox-shadow: 0 0 0 1px white inset;\\n\\t}\\n\\n\\t:host(:not([disabled], [aria-disabled=\\\"true\\\"])[primary]:focus-visible) {\\n\\t\\toutline: 1px solid #1467ba;\\n\\t}\\n\\n\\t:host(:not([disabled], [aria-disabled=\\\"true\\\"])[primary]:active) {\\n\\t\\tbackground: #0e4883;\\n\\t}\\n\\n\\t:host([disabled]),\\n\\t:host([aria-disabled=\\\"true\\\"]) {\\n\\t\\tfilter: grayscale(100%);\\n\\t\\topacity: 0.5;\\n\\t\\tcursor: default;\\n\\t}\\n\\n\\t:host([disabled]:focus-visible),\\n\\t:host([aria-disabled=\\\"true\\\"]:focus-visible) {\\n\\t\\toutline: 1px dashed #111;\\n\\t}\\n\\n\\t.icon:not([src]),\\n\\t.icon[src=\\\"\\\"],\\n\\t.icon[src=\\\"data:,\\\"] {\\n\\t\\tdisplay: none;\\n\\t}\\n\\n\\t.content {\\n\\t\\tdisplay: flex;\\n\\t\\talign-items: center;\\n\\t\\tmin-width: 0px;\\n\\t}\\n\\n\\t.content ::slotted(*) {\\n\\t\\tmargin-left: var(--sd-button-content-padding, 8px);\\n\\t}\\n\\n\\t.content ::slotted(*:last-child) {\\n\\t\\tmargin-right: var(--sd-button-content-padding, 8px);\\n\\t}\\n\\n\\t.icon {\\n\\t\\tmax-height: var(--sd-button-max-icon-size, 32px);\\n\\t\\tmax-width: var(--sd-button-max-icon-size, 32px);\\n\\t}\\n</style>\\n<slot name=\\\"icon\\\">\\n\\t<img class=\\\"icon\\\" src=\\\"data:,\\\" alt part=\\\"icon\\\" />\\n</slot>\\n<div class=\\\"content\\\">\\n\\t<slot></slot>\\n</div>\\n\"","import { ElementBase } from \"@cas-smartdesign/element-base\";\n\nimport { default as htmlTemplate } from \"./button.html?raw\";\n\ndeclare global {\n interface HTMLElementTagNameMap {\n [Button.ID]: Button;\n }\n}\n\nexport class Button extends ElementBase {\n public static readonly ID = \"sd-button\";\n private _image: HTMLImageElement;\n private _isSpaceOrEnterKeyDown = false;\n\n public get imageElement() {\n return this._image;\n }\n\n public get icon(): string {\n return this.getAttribute(\"icon\");\n }\n\n public set icon(icon: string) {\n if (this.icon !== icon) {\n if (icon) {\n this.setAttribute(\"icon\", icon);\n } else {\n this.removeAttribute(\"icon\");\n }\n this.updateIcon();\n }\n }\n\n public get primary(): boolean {\n return this.hasAttribute(\"primary\");\n }\n\n public set primary(primary: boolean) {\n if (primary) {\n this.setAttribute(\"primary\", \"\");\n } else {\n this.removeAttribute(\"primary\");\n }\n }\n\n public get disabled(): boolean {\n return this.getAttribute(\"aria-disabled\") == \"true\";\n }\n\n public set disabled(disabled: boolean) {\n this.setAttribute(\"aria-disabled\", disabled.toString());\n }\n\n static get observedAttributes() {\n return [\"icon\"];\n }\n\n public is(): string {\n return Button.ID;\n }\n\n protected template(): HTMLTemplateElement {\n const template = document.createElement(\"template\");\n template.innerHTML = htmlTemplate;\n return template;\n }\n\n constructor() {\n super();\n this.addEventListener(\"keydown\", (e) => {\n if (this.isSpaceOrEnter(e)) {\n this._isSpaceOrEnterKeyDown = true;\n e.preventDefault(); // prevent potential scroll-down triggered by space\n }\n });\n this.addEventListener(\"keyup\", (e) => {\n if (this.isSpaceOrEnter(e) && this._isSpaceOrEnterKeyDown == true) {\n this._isSpaceOrEnterKeyDown = false;\n this.click();\n }\n });\n // As Button is not an input element, click is fired even in disabled state\n this.addEventListener(\n \"click\",\n (event) => {\n if (this.disabled || this.hasAttribute(\"disabled\")) {\n event.stopImmediatePropagation();\n return;\n }\n\n const type = this.getAttribute(\"type\")?.toLowerCase()?.trim();\n\n if (type !== \"submit\" && type !== \"reset\") {\n return;\n }\n\n const form = this.closest(\"form\");\n\n if (form && type === \"submit\") {\n form.requestSubmit();\n }\n\n if (form && type === \"reset\") {\n form.reset();\n }\n },\n { capture: true },\n );\n }\n\n private isSpaceOrEnter(event: KeyboardEvent): boolean {\n switch (event.key) {\n case \" \":\n case \"Space\":\n case \"Enter\":\n return true;\n default:\n return false;\n }\n }\n\n public click() {\n if (!this.disabled && !this.hasAttribute(\"disabled\")) {\n super.click();\n }\n }\n\n public connectedCallback() {\n super.connectedCallback();\n\n if (!this.hasAttribute(\"tabIndex\")) {\n this.tabIndex = 0;\n }\n\n this._image = this.shadowRoot.querySelector(\".icon\") as HTMLImageElement;\n\n this.updateIcon();\n if (!this.hasAttribute(\"role\")) {\n this.setAttribute(\"role\", \"button\");\n }\n }\n\n public attributeChangedCallback(): void {\n this.updateIcon();\n }\n\n private updateIcon() {\n if (this._image) {\n const iconSrc = this.getAttribute(\"icon\");\n if (iconSrc) {\n this._image.src = iconSrc;\n }\n }\n }\n}\n\nif (!customElements.get(Button.ID)) {\n customElements.define(Button.ID, Button);\n}\n"],"names":["htmlTemplate","_Button","ElementBase","e","event","type","form","icon","primary","disabled","template","iconSrc","Button"],"mappings":";AAAA,MAAAA,IAAe;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,GCUFC,IAAN,MAAMA,UAAeC,EAAY;AAAA,EA0DpC,cAAc;AACV,UAAA,GAxDJ,KAAQ,yBAAyB,IAyD7B,KAAK,iBAAiB,WAAW,CAACC,MAAM;AACpC,MAAI,KAAK,eAAeA,CAAC,MACrB,KAAK,yBAAyB,IAC9BA,EAAE,eAAA;AAAA,IAEV,CAAC,GACD,KAAK,iBAAiB,SAAS,CAACA,MAAM;AAClC,MAAI,KAAK,eAAeA,CAAC,KAAK,KAAK,0BAA0B,OACzD,KAAK,yBAAyB,IAC9B,KAAK,MAAA;AAAA,IAEb,CAAC,GAED,KAAK;AAAA,MACD;AAAA,MACA,CAACC,MAAU;AACP,YAAI,KAAK,YAAY,KAAK,aAAa,UAAU,GAAG;AAChD,UAAAA,EAAM,yBAAA;AACN;AAAA,QACJ;AAEA,cAAMC,IAAO,KAAK,aAAa,MAAM,GAAG,YAAA,GAAe,KAAA;AAEvD,YAAIA,MAAS,YAAYA,MAAS;AAC9B;AAGJ,cAAMC,IAAO,KAAK,QAAQ,MAAM;AAEhC,QAAIA,KAAQD,MAAS,YACjBC,EAAK,cAAA,GAGLA,KAAQD,MAAS,WACjBC,EAAK,MAAA;AAAA,MAEb;AAAA,MACA,EAAE,SAAS,GAAA;AAAA,IAAK;AAAA,EAExB;AAAA,EA9FA,IAAW,eAAe;AACtB,WAAO,KAAK;AAAA,EAChB;AAAA,EAEA,IAAW,OAAe;AACtB,WAAO,KAAK,aAAa,MAAM;AAAA,EACnC;AAAA,EAEA,IAAW,KAAKC,GAAc;AAC1B,IAAI,KAAK,SAASA,MACVA,IACA,KAAK,aAAa,QAAQA,CAAI,IAE9B,KAAK,gBAAgB,MAAM,GAE/B,KAAK,WAAA;AAAA,EAEb;AAAA,EAEA,IAAW,UAAmB;AAC1B,WAAO,KAAK,aAAa,SAAS;AAAA,EACtC;AAAA,EAEA,IAAW,QAAQC,GAAkB;AACjC,IAAIA,IACA,KAAK,aAAa,WAAW,EAAE,IAE/B,KAAK,gBAAgB,SAAS;AAAA,EAEtC;AAAA,EAEA,IAAW,WAAoB;AAC3B,WAAO,KAAK,aAAa,eAAe,KAAK;AAAA,EACjD;AAAA,EAEA,IAAW,SAASC,GAAmB;AACnC,SAAK,aAAa,iBAAiBA,EAAS,SAAA,CAAU;AAAA,EAC1D;AAAA,EAEA,WAAW,qBAAqB;AAC5B,WAAO,CAAC,MAAM;AAAA,EAClB;AAAA,EAEO,KAAa;AAChB,WAAOR,EAAO;AAAA,EAClB;AAAA,EAEU,WAAgC;AACtC,UAAMS,IAAW,SAAS,cAAc,UAAU;AAClD,WAAAA,EAAS,YAAYV,GACdU;AAAA,EACX;AAAA,EA6CQ,eAAeN,GAA+B;AAClD,YAAQA,EAAM,KAAA;AAAA,MACV,KAAK;AAAA,MACL,KAAK;AAAA,MACL,KAAK;AACD,eAAO;AAAA,MACX;AACI,eAAO;AAAA,IAAA;AAAA,EAEnB;AAAA,EAEO,QAAQ;AACX,IAAI,CAAC,KAAK,YAAY,CAAC,KAAK,aAAa,UAAU,KAC/C,MAAM,MAAA;AAAA,EAEd;AAAA,EAEO,oBAAoB;AACvB,UAAM,kBAAA,GAED,KAAK,aAAa,UAAU,MAC7B,KAAK,WAAW,IAGpB,KAAK,SAAS,KAAK,WAAW,cAAc,OAAO,GAEnD,KAAK,WAAA,GACA,KAAK,aAAa,MAAM,KACzB,KAAK,aAAa,QAAQ,QAAQ;AAAA,EAE1C;AAAA,EAEO,2BAAiC;AACpC,SAAK,WAAA;AAAA,EACT;AAAA,EAEQ,aAAa;AACjB,QAAI,KAAK,QAAQ;AACb,YAAMO,IAAU,KAAK,aAAa,MAAM;AACxC,MAAIA,MACA,KAAK,OAAO,MAAMA;AAAA,IAE1B;AAAA,EACJ;AACJ;AAhJIV,EAAuB,KAAK;AADzB,IAAMW,IAANX;AAmJF,eAAe,IAAIW,EAAO,EAAE,KAC7B,eAAe,OAAOA,EAAO,IAAIA,CAAM;"}
package/dist/docs/doc.mjs CHANGED
@@ -1,4 +1,4 @@
1
- (function(){const f=document.createElement("link").relList;if(f&&f.supports&&f.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))d(r);new MutationObserver(r=>{for(const h of r)if(h.type==="childList")for(const s of h.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&d(s)}).observe(document,{childList:!0,subtree:!0});function m(r){const h={};return r.integrity&&(h.integrity=r.integrity),r.referrerPolicy&&(h.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?h.credentials="include":r.crossOrigin==="anonymous"?h.credentials="omit":h.credentials="same-origin",h}function d(r){if(r.ep)return;r.ep=!0;const h=m(r);fetch(r.href,h)}})();const jr="modulepreload",zr=function(a,f){return new URL(a,f).href},ln={},Dn=function(f,m,d){let r=Promise.resolve();if(m&&m.length>0){let c=function(e){return Promise.all(e.map(i=>Promise.resolve(i).then(t=>({status:"fulfilled",value:t}),t=>({status:"rejected",reason:t}))))};const s=document.getElementsByTagName("link"),g=document.querySelector("meta[property=csp-nonce]"),x=g?.nonce||g?.getAttribute("nonce");r=c(m.map(e=>{if(e=zr(e,d),e in ln)return;ln[e]=!0;const i=e.endsWith(".css"),t=i?'[rel="stylesheet"]':"";if(!!d)for(let u=s.length-1;u>=0;u--){const p=s[u];if(p.href===e&&(!i||p.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${e}"]${t}`))return;const l=document.createElement("link");if(l.rel=i?"stylesheet":jr,i||(l.as="script"),l.crossOrigin="",l.href=e,x&&l.setAttribute("nonce",x),document.head.appendChild(l),i)return new Promise((u,p)=>{l.addEventListener("load",u),l.addEventListener("error",()=>p(new Error(`Unable to preload CSS for ${e}`)))})}))}function h(s){const g=new Event("vite:preloadError",{cancelable:!0});if(g.payload=s,window.dispatchEvent(g),!g.defaultPrevented)throw s}return r.then(s=>{for(const g of s||[])g.status==="rejected"&&h(g.reason);return f().catch(h)})},Br=`<style>
1
+ (function(){const f=document.createElement("link").relList;if(f&&f.supports&&f.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))d(r);new MutationObserver(r=>{for(const h of r)if(h.type==="childList")for(const s of h.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&d(s)}).observe(document,{childList:!0,subtree:!0});function m(r){const h={};return r.integrity&&(h.integrity=r.integrity),r.referrerPolicy&&(h.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?h.credentials="include":r.crossOrigin==="anonymous"?h.credentials="omit":h.credentials="same-origin",h}function d(r){if(r.ep)return;r.ep=!0;const h=m(r);fetch(r.href,h)}})();const jr="modulepreload",zr=function(a,f){return new URL(a,f).href},ln={},Dn=function(f,m,d){let r=Promise.resolve();if(m&&m.length>0){let l=function(e){return Promise.all(e.map(i=>Promise.resolve(i).then(n=>({status:"fulfilled",value:n}),n=>({status:"rejected",reason:n}))))};const s=document.getElementsByTagName("link"),p=document.querySelector("meta[property=csp-nonce]"),x=p?.nonce||p?.getAttribute("nonce");r=l(m.map(e=>{if(e=zr(e,d),e in ln)return;ln[e]=!0;const i=e.endsWith(".css"),n=i?'[rel="stylesheet"]':"";if(d)for(let c=s.length-1;c>=0;c--){const u=s[c];if(u.href===e&&(!i||u.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${e}"]${n}`))return;const t=document.createElement("link");if(t.rel=i?"stylesheet":jr,i||(t.as="script"),t.crossOrigin="",t.href=e,x&&t.setAttribute("nonce",x),document.head.appendChild(t),i)return new Promise((c,u)=>{t.addEventListener("load",c),t.addEventListener("error",()=>u(new Error(`Unable to preload CSS for ${e}`)))})}))}function h(s){const p=new Event("vite:preloadError",{cancelable:!0});if(p.payload=s,window.dispatchEvent(p),!p.defaultPrevented)throw s}return r.then(s=>{for(const p of s||[])p.status==="rejected"&&h(p.reason);return f().catch(h)})},Br=`<style>
2
2
  sd-button {
3
3
  --sd-button-max-icon-size: 20px;
4
4
  }
@@ -94,6 +94,7 @@ document.querySelector("#declarative-with-code").addEventListener("click", (even
94
94
  justify-content: center;
95
95
  box-sizing: border-box;
96
96
  vertical-align: middle;
97
+ border-radius: var(--sd-button-border-radius, 0px);
97
98
  }
98
99
 
99
100
  :host(:focus),
@@ -183,9 +184,9 @@ document.querySelector("#declarative-with-code").addEventListener("click", (even
183
184
  <div class="content">
184
185
  <slot></slot>
185
186
  </div>
186
- `,Ze=class Ze extends ni{constructor(){super(),this._isSpaceOrEnterKeyDown=!1,this.addEventListener("keydown",f=>{this.isSpaceOrEnter(f)&&(this._isSpaceOrEnterKeyDown=!0,f.preventDefault())}),this.addEventListener("keyup",f=>{this.isSpaceOrEnter(f)&&this._isSpaceOrEnterKeyDown==!0&&(this._isSpaceOrEnterKeyDown=!1,this.click())}),this.addEventListener("click",f=>{if(this.disabled||this.hasAttribute("disabled")){f.stopImmediatePropagation();return}const m=this.getAttribute("type")?.toLowerCase()?.trim();if(m!=="submit"&&m!=="reset")return;const d=this.closest("form");d&&m==="submit"&&d.requestSubmit(),d&&m==="reset"&&d.reset()},{capture:!0})}get imageElement(){return this._image}get icon(){return this.getAttribute("icon")}set icon(f){this.icon!==f&&(f?this.setAttribute("icon",f):this.removeAttribute("icon"),this.updateIcon())}get primary(){return this.hasAttribute("primary")}set primary(f){f?this.setAttribute("primary",""):this.removeAttribute("primary")}get disabled(){return this.getAttribute("aria-disabled")=="true"}set disabled(f){this.setAttribute("aria-disabled",f.toString())}static get observedAttributes(){return["icon"]}is(){return Ze.ID}template(){const f=document.createElement("template");return f.innerHTML=ri,f}isSpaceOrEnter(f){switch(f.key){case" ":case"Space":case"Enter":return!0;default:return!1}}click(){!this.disabled&&!this.hasAttribute("disabled")&&super.click()}connectedCallback(){super.connectedCallback(),this.hasAttribute("tabIndex")||(this.tabIndex=0),this._image=this.shadowRoot.querySelector(".icon"),this.updateIcon(),this.hasAttribute("role")||this.setAttribute("role","button")}attributeChangedCallback(){this.updateIcon()}updateIcon(){if(this._image){const f=this.getAttribute("icon");f&&(this._image.src=f)}}};Ze.ID="sd-button";let Pe=Ze;customElements.get(Pe.ID)||customElements.define(Pe.ID,Pe);function $n(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}function ii(a){if(Object.prototype.hasOwnProperty.call(a,"__esModule"))return a;var f=a.default;if(typeof f=="function"){var m=function d(){var r=!1;try{r=this instanceof d}catch{}return r?Reflect.construct(f,arguments,this.constructor):f.apply(this,arguments)};m.prototype=f.prototype}else m={};return Object.defineProperty(m,"__esModule",{value:!0}),Object.keys(a).forEach(function(d){var r=Object.getOwnPropertyDescriptor(a,d);Object.defineProperty(m,d,r.get?r:{enumerable:!0,get:function(){return a[d]}})}),m}var Fe={exports:{}},cn;function si(){if(cn)return Fe.exports;cn=1;var a=String,f=function(){return{isColorSupported:!1,reset:a,bold:a,dim:a,italic:a,underline:a,inverse:a,hidden:a,strikethrough:a,black:a,red:a,green:a,yellow:a,blue:a,magenta:a,cyan:a,white:a,gray:a,bgBlack:a,bgRed:a,bgGreen:a,bgYellow:a,bgBlue:a,bgMagenta:a,bgCyan:a,bgWhite:a,blackBright:a,redBright:a,greenBright:a,yellowBright:a,blueBright:a,magentaBright:a,cyanBright:a,whiteBright:a,bgBlackBright:a,bgRedBright:a,bgGreenBright:a,bgYellowBright:a,bgBlueBright:a,bgMagentaBright:a,bgCyanBright:a,bgWhiteBright:a}};return Fe.exports=f(),Fe.exports.createColors=f,Fe.exports}const oi={},ai=Object.freeze(Object.defineProperty({__proto__:null,default:oi},Symbol.toStringTag,{value:"Module"})),le=ii(ai);var ut,un;function Bt(){if(un)return ut;un=1;let a=si(),f=le;class m extends Error{constructor(r,h,s,g,x,c){super(r),this.name="CssSyntaxError",this.reason=r,x&&(this.file=x),g&&(this.source=g),c&&(this.plugin=c),typeof h<"u"&&typeof s<"u"&&(typeof h=="number"?(this.line=h,this.column=s):(this.line=h.line,this.column=h.column,this.endLine=s.line,this.endColumn=s.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,m)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(r){if(!this.source)return"";let h=this.source;r==null&&(r=a.isColorSupported);let s=n=>n,g=n=>n,x=n=>n;if(r){let{bold:n,gray:l,red:u}=a.createColors(!0);g=p=>n(u(p)),s=p=>l(p),f&&(x=p=>f(p))}let c=h.split(/\r?\n/),e=Math.max(this.line-3,0),i=Math.min(this.line+2,c.length),t=String(i).length;return c.slice(e,i).map((n,l)=>{let u=e+1+l,p=" "+(" "+u).slice(-t)+" | ";if(u===this.line){if(n.length>160){let S=20,w=Math.max(0,this.column-S),y=Math.max(this.column+S,this.endColumn+S),b=n.slice(w,y),k=s(p.replace(/\d/g," "))+n.slice(0,Math.min(this.column-1,S-1)).replace(/[^\t]/g," ");return g(">")+s(p)+x(b)+`
187
- `+k+g("^")}let E=s(p.replace(/\d/g," "))+n.slice(0,this.column-1).replace(/[^\t]/g," ");return g(">")+s(p)+x(n)+`
188
- `+E+g("^")}return" "+s(p)+x(n)}).join(`
187
+ `,Ze=class Ze extends ni{constructor(){super(),this._isSpaceOrEnterKeyDown=!1,this.addEventListener("keydown",f=>{this.isSpaceOrEnter(f)&&(this._isSpaceOrEnterKeyDown=!0,f.preventDefault())}),this.addEventListener("keyup",f=>{this.isSpaceOrEnter(f)&&this._isSpaceOrEnterKeyDown==!0&&(this._isSpaceOrEnterKeyDown=!1,this.click())}),this.addEventListener("click",f=>{if(this.disabled||this.hasAttribute("disabled")){f.stopImmediatePropagation();return}const m=this.getAttribute("type")?.toLowerCase()?.trim();if(m!=="submit"&&m!=="reset")return;const d=this.closest("form");d&&m==="submit"&&d.requestSubmit(),d&&m==="reset"&&d.reset()},{capture:!0})}get imageElement(){return this._image}get icon(){return this.getAttribute("icon")}set icon(f){this.icon!==f&&(f?this.setAttribute("icon",f):this.removeAttribute("icon"),this.updateIcon())}get primary(){return this.hasAttribute("primary")}set primary(f){f?this.setAttribute("primary",""):this.removeAttribute("primary")}get disabled(){return this.getAttribute("aria-disabled")=="true"}set disabled(f){this.setAttribute("aria-disabled",f.toString())}static get observedAttributes(){return["icon"]}is(){return Ze.ID}template(){const f=document.createElement("template");return f.innerHTML=ri,f}isSpaceOrEnter(f){switch(f.key){case" ":case"Space":case"Enter":return!0;default:return!1}}click(){!this.disabled&&!this.hasAttribute("disabled")&&super.click()}connectedCallback(){super.connectedCallback(),this.hasAttribute("tabIndex")||(this.tabIndex=0),this._image=this.shadowRoot.querySelector(".icon"),this.updateIcon(),this.hasAttribute("role")||this.setAttribute("role","button")}attributeChangedCallback(){this.updateIcon()}updateIcon(){if(this._image){const f=this.getAttribute("icon");f&&(this._image.src=f)}}};Ze.ID="sd-button";let Pe=Ze;customElements.get(Pe.ID)||customElements.define(Pe.ID,Pe);function $n(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}function ii(a){if(Object.prototype.hasOwnProperty.call(a,"__esModule"))return a;var f=a.default;if(typeof f=="function"){var m=function d(){var r=!1;try{r=this instanceof d}catch{}return r?Reflect.construct(f,arguments,this.constructor):f.apply(this,arguments)};m.prototype=f.prototype}else m={};return Object.defineProperty(m,"__esModule",{value:!0}),Object.keys(a).forEach(function(d){var r=Object.getOwnPropertyDescriptor(a,d);Object.defineProperty(m,d,r.get?r:{enumerable:!0,get:function(){return a[d]}})}),m}var Fe={exports:{}},cn;function si(){if(cn)return Fe.exports;cn=1;var a=String,f=function(){return{isColorSupported:!1,reset:a,bold:a,dim:a,italic:a,underline:a,inverse:a,hidden:a,strikethrough:a,black:a,red:a,green:a,yellow:a,blue:a,magenta:a,cyan:a,white:a,gray:a,bgBlack:a,bgRed:a,bgGreen:a,bgYellow:a,bgBlue:a,bgMagenta:a,bgCyan:a,bgWhite:a,blackBright:a,redBright:a,greenBright:a,yellowBright:a,blueBright:a,magentaBright:a,cyanBright:a,whiteBright:a,bgBlackBright:a,bgRedBright:a,bgGreenBright:a,bgYellowBright:a,bgBlueBright:a,bgMagentaBright:a,bgCyanBright:a,bgWhiteBright:a}};return Fe.exports=f(),Fe.exports.createColors=f,Fe.exports}const oi={},ai=Object.freeze(Object.defineProperty({__proto__:null,default:oi},Symbol.toStringTag,{value:"Module"})),le=ii(ai);var ut,un;function Bt(){if(un)return ut;un=1;let a=si(),f=le;class m extends Error{constructor(r,h,s,p,x,l){super(r),this.name="CssSyntaxError",this.reason=r,x&&(this.file=x),p&&(this.source=p),l&&(this.plugin=l),typeof h<"u"&&typeof s<"u"&&(typeof h=="number"?(this.line=h,this.column=s):(this.line=h.line,this.column=h.column,this.endLine=s.line,this.endColumn=s.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,m)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(r){if(!this.source)return"";let h=this.source;r==null&&(r=a.isColorSupported);let s=t=>t,p=t=>t,x=t=>t;if(r){let{bold:t,gray:c,red:u}=a.createColors(!0);p=g=>t(u(g)),s=g=>c(g),f&&(x=g=>f(g))}let l=h.split(/\r?\n/),e=Math.max(this.line-3,0),i=Math.min(this.line+2,l.length),n=String(i).length;return l.slice(e,i).map((t,c)=>{let u=e+1+c,g=" "+(" "+u).slice(-n)+" | ";if(u===this.line){if(t.length>160){let S=20,w=Math.max(0,this.column-S),y=Math.max(this.column+S,this.endColumn+S),b=t.slice(w,y),k=s(g.replace(/\d/g," "))+t.slice(0,Math.min(this.column-1,S-1)).replace(/[^\t]/g," ");return p(">")+s(g)+x(b)+`
188
+ `+k+p("^")}let E=s(g.replace(/\d/g," "))+t.slice(0,this.column-1).replace(/[^\t]/g," ");return p(">")+s(g)+x(t)+`
189
+ `+E+p("^")}return" "+s(g)+x(t)}).join(`
189
190
  `)}toString(){let r=this.showSourceCode();return r&&(r=`
190
191
 
191
192
  `+r+`
@@ -194,26 +195,26 @@ document.querySelector("#declarative-with-code").addEventListener("click", (even
194
195
  `,beforeComment:`
195
196
  `,beforeDecl:`
196
197
  `,beforeOpen:" ",beforeRule:`
197
- `,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function f(d){return d[0].toUpperCase()+d.slice(1)}class m{constructor(r){this.builder=r}atrule(r,h){let s="@"+r.name,g=r.params?this.rawValue(r,"params"):"";if(typeof r.raws.afterName<"u"?s+=r.raws.afterName:g&&(s+=" "),r.nodes)this.block(r,s+g);else{let x=(r.raws.between||"")+(h?";":"");this.builder(s+g+x,r)}}beforeAfter(r,h){let s;r.type==="decl"?s=this.raw(r,null,"beforeDecl"):r.type==="comment"?s=this.raw(r,null,"beforeComment"):h==="before"?s=this.raw(r,null,"beforeRule"):s=this.raw(r,null,"beforeClose");let g=r.parent,x=0;for(;g&&g.type!=="root";)x+=1,g=g.parent;if(s.includes(`
198
- `)){let c=this.raw(r,null,"indent");if(c.length)for(let e=0;e<x;e++)s+=c}return s}block(r,h){let s=this.raw(r,"between","beforeOpen");this.builder(h+s+"{",r,"start");let g;r.nodes&&r.nodes.length?(this.body(r),g=this.raw(r,"after")):g=this.raw(r,"after","emptyBody"),g&&this.builder(g),this.builder("}",r,"end")}body(r){let h=r.nodes.length-1;for(;h>0&&r.nodes[h].type==="comment";)h-=1;let s=this.raw(r,"semicolon");for(let g=0;g<r.nodes.length;g++){let x=r.nodes[g],c=this.raw(x,"before");c&&this.builder(c),this.stringify(x,h!==g||s)}}comment(r){let h=this.raw(r,"left","commentLeft"),s=this.raw(r,"right","commentRight");this.builder("/*"+h+r.text+s+"*/",r)}decl(r,h){let s=this.raw(r,"between","colon"),g=r.prop+s+this.rawValue(r,"value");r.important&&(g+=r.raws.important||" !important"),h&&(g+=";"),this.builder(g,r)}document(r){this.body(r)}raw(r,h,s){let g;if(s||(s=h),h&&(g=r.raws[h],typeof g<"u"))return g;let x=r.parent;if(s==="before"&&(!x||x.type==="root"&&x.first===r||x&&x.type==="document"))return"";if(!x)return a[s];let c=r.root();if(c.rawCache||(c.rawCache={}),typeof c.rawCache[s]<"u")return c.rawCache[s];if(s==="before"||s==="after")return this.beforeAfter(r,s);{let e="raw"+f(s);this[e]?g=this[e](c,r):c.walk(i=>{if(g=i.raws[h],typeof g<"u")return!1})}return typeof g>"u"&&(g=a[s]),c.rawCache[s]=g,g}rawBeforeClose(r){let h;return r.walk(s=>{if(s.nodes&&s.nodes.length>0&&typeof s.raws.after<"u")return h=s.raws.after,h.includes(`
199
- `)&&(h=h.replace(/[^\n]+$/,"")),!1}),h&&(h=h.replace(/\S/g,"")),h}rawBeforeComment(r,h){let s;return r.walkComments(g=>{if(typeof g.raws.before<"u")return s=g.raws.before,s.includes(`
200
- `)&&(s=s.replace(/[^\n]+$/,"")),!1}),typeof s>"u"?s=this.raw(h,null,"beforeDecl"):s&&(s=s.replace(/\S/g,"")),s}rawBeforeDecl(r,h){let s;return r.walkDecls(g=>{if(typeof g.raws.before<"u")return s=g.raws.before,s.includes(`
198
+ `,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function f(d){return d[0].toUpperCase()+d.slice(1)}class m{constructor(r){this.builder=r}atrule(r,h){let s="@"+r.name,p=r.params?this.rawValue(r,"params"):"";if(typeof r.raws.afterName<"u"?s+=r.raws.afterName:p&&(s+=" "),r.nodes)this.block(r,s+p);else{let x=(r.raws.between||"")+(h?";":"");this.builder(s+p+x,r)}}beforeAfter(r,h){let s;r.type==="decl"?s=this.raw(r,null,"beforeDecl"):r.type==="comment"?s=this.raw(r,null,"beforeComment"):h==="before"?s=this.raw(r,null,"beforeRule"):s=this.raw(r,null,"beforeClose");let p=r.parent,x=0;for(;p&&p.type!=="root";)x+=1,p=p.parent;if(s.includes(`
199
+ `)){let l=this.raw(r,null,"indent");if(l.length)for(let e=0;e<x;e++)s+=l}return s}block(r,h){let s=this.raw(r,"between","beforeOpen");this.builder(h+s+"{",r,"start");let p;r.nodes&&r.nodes.length?(this.body(r),p=this.raw(r,"after")):p=this.raw(r,"after","emptyBody"),p&&this.builder(p),this.builder("}",r,"end")}body(r){let h=r.nodes.length-1;for(;h>0&&r.nodes[h].type==="comment";)h-=1;let s=this.raw(r,"semicolon");for(let p=0;p<r.nodes.length;p++){let x=r.nodes[p],l=this.raw(x,"before");l&&this.builder(l),this.stringify(x,h!==p||s)}}comment(r){let h=this.raw(r,"left","commentLeft"),s=this.raw(r,"right","commentRight");this.builder("/*"+h+r.text+s+"*/",r)}decl(r,h){let s=this.raw(r,"between","colon"),p=r.prop+s+this.rawValue(r,"value");r.important&&(p+=r.raws.important||" !important"),h&&(p+=";"),this.builder(p,r)}document(r){this.body(r)}raw(r,h,s){let p;if(s||(s=h),h&&(p=r.raws[h],typeof p<"u"))return p;let x=r.parent;if(s==="before"&&(!x||x.type==="root"&&x.first===r||x&&x.type==="document"))return"";if(!x)return a[s];let l=r.root();if(l.rawCache||(l.rawCache={}),typeof l.rawCache[s]<"u")return l.rawCache[s];if(s==="before"||s==="after")return this.beforeAfter(r,s);{let e="raw"+f(s);this[e]?p=this[e](l,r):l.walk(i=>{if(p=i.raws[h],typeof p<"u")return!1})}return typeof p>"u"&&(p=a[s]),l.rawCache[s]=p,p}rawBeforeClose(r){let h;return r.walk(s=>{if(s.nodes&&s.nodes.length>0&&typeof s.raws.after<"u")return h=s.raws.after,h.includes(`
200
+ `)&&(h=h.replace(/[^\n]+$/,"")),!1}),h&&(h=h.replace(/\S/g,"")),h}rawBeforeComment(r,h){let s;return r.walkComments(p=>{if(typeof p.raws.before<"u")return s=p.raws.before,s.includes(`
201
+ `)&&(s=s.replace(/[^\n]+$/,"")),!1}),typeof s>"u"?s=this.raw(h,null,"beforeDecl"):s&&(s=s.replace(/\S/g,"")),s}rawBeforeDecl(r,h){let s;return r.walkDecls(p=>{if(typeof p.raws.before<"u")return s=p.raws.before,s.includes(`
201
202
  `)&&(s=s.replace(/[^\n]+$/,"")),!1}),typeof s>"u"?s=this.raw(h,null,"beforeRule"):s&&(s=s.replace(/\S/g,"")),s}rawBeforeOpen(r){let h;return r.walk(s=>{if(s.type!=="decl"&&(h=s.raws.between,typeof h<"u"))return!1}),h}rawBeforeRule(r){let h;return r.walk(s=>{if(s.nodes&&(s.parent!==r||r.first!==s)&&typeof s.raws.before<"u")return h=s.raws.before,h.includes(`
202
- `)&&(h=h.replace(/[^\n]+$/,"")),!1}),h&&(h=h.replace(/\S/g,"")),h}rawColon(r){let h;return r.walkDecls(s=>{if(typeof s.raws.between<"u")return h=s.raws.between.replace(/[^\s:]/g,""),!1}),h}rawEmptyBody(r){let h;return r.walk(s=>{if(s.nodes&&s.nodes.length===0&&(h=s.raws.after,typeof h<"u"))return!1}),h}rawIndent(r){if(r.raws.indent)return r.raws.indent;let h;return r.walk(s=>{let g=s.parent;if(g&&g!==r&&g.parent&&g.parent===r&&typeof s.raws.before<"u"){let x=s.raws.before.split(`
203
- `);return h=x[x.length-1],h=h.replace(/\S/g,""),!1}}),h}rawSemicolon(r){let h;return r.walk(s=>{if(s.nodes&&s.nodes.length&&s.last.type==="decl"&&(h=s.raws.semicolon,typeof h<"u"))return!1}),h}rawValue(r,h){let s=r[h],g=r.raws[h];return g&&g.value===s?g.raw:s}root(r){this.body(r),r.raws.after&&this.builder(r.raws.after)}rule(r){this.block(r,this.rawValue(r,"selector")),r.raws.ownSemicolon&&this.builder(r.raws.ownSemicolon,r,"end")}stringify(r,h){if(!this[r.type])throw new Error("Unknown AST node type "+r.type+". Maybe you need to change PostCSS stringifier.");this[r.type](r,h)}}return ht=m,m.default=m,ht}var ft,fn;function Ke(){if(fn)return ft;fn=1;let a=Fn();function f(m,d){new a(d).stringify(m)}return ft=f,f.default=f,ft}var qe={},dn;function Dt(){return dn||(dn=1,qe.isClean=Symbol("isClean"),qe.my=Symbol("my")),qe}var dt,pn;function Je(){if(pn)return dt;pn=1;let a=Bt(),f=Fn(),m=Ke(),{isClean:d,my:r}=Dt();function h(x,c){let e=new x.constructor;for(let i in x){if(!Object.prototype.hasOwnProperty.call(x,i)||i==="proxyCache")continue;let t=x[i],n=typeof t;i==="parent"&&n==="object"?c&&(e[i]=c):i==="source"?e[i]=t:Array.isArray(t)?e[i]=t.map(l=>h(l,e)):(n==="object"&&t!==null&&(t=h(t)),e[i]=t)}return e}function s(x,c){if(c&&typeof c.offset<"u")return c.offset;let e=1,i=1,t=0;for(let n=0;n<x.length;n++){if(i===c.line&&e===c.column){t=n;break}x[n]===`
204
- `?(e=1,i+=1):e+=1}return t}class g{get proxyOf(){return this}constructor(c={}){this.raws={},this[d]=!1,this[r]=!0;for(let e in c)if(e==="nodes"){this.nodes=[];for(let i of c[e])typeof i.clone=="function"?this.append(i.clone()):this.append(i)}else this[e]=c[e]}addToError(c){if(c.postcssNode=this,c.stack&&this.source&&/\n\s{4}at /.test(c.stack)){let e=this.source;c.stack=c.stack.replace(/\n\s{4}at /,`$&${e.input.from}:${e.start.line}:${e.start.column}$&`)}return c}after(c){return this.parent.insertAfter(this,c),this}assign(c={}){for(let e in c)this[e]=c[e];return this}before(c){return this.parent.insertBefore(this,c),this}cleanRaws(c){delete this.raws.before,delete this.raws.after,c||delete this.raws.between}clone(c={}){let e=h(this);for(let i in c)e[i]=c[i];return e}cloneAfter(c={}){let e=this.clone(c);return this.parent.insertAfter(this,e),e}cloneBefore(c={}){let e=this.clone(c);return this.parent.insertBefore(this,e),e}error(c,e={}){if(this.source){let{end:i,start:t}=this.rangeBy(e);return this.source.input.error(c,{column:t.column,line:t.line},{column:i.column,line:i.line},e)}return new a(c)}getProxyProcessor(){return{get(c,e){return e==="proxyOf"?c:e==="root"?()=>c.root().toProxy():c[e]},set(c,e,i){return c[e]===i||(c[e]=i,(e==="prop"||e==="value"||e==="name"||e==="params"||e==="important"||e==="text")&&c.markDirty()),!0}}}markClean(){this[d]=!0}markDirty(){if(this[d]){this[d]=!1;let c=this;for(;c=c.parent;)c[d]=!1}}next(){if(!this.parent)return;let c=this.parent.index(this);return this.parent.nodes[c+1]}positionBy(c={}){let e=this.source.start;if(c.index)e=this.positionInside(c.index);else if(c.word){let i="document"in this.source.input?this.source.input.document:this.source.input.css,n=i.slice(s(i,this.source.start),s(i,this.source.end)).indexOf(c.word);n!==-1&&(e=this.positionInside(n))}return e}positionInside(c){let e=this.source.start.column,i=this.source.start.line,t="document"in this.source.input?this.source.input.document:this.source.input.css,n=s(t,this.source.start),l=n+c;for(let u=n;u<l;u++)t[u]===`
205
- `?(e=1,i+=1):e+=1;return{column:e,line:i,offset:l}}prev(){if(!this.parent)return;let c=this.parent.index(this);return this.parent.nodes[c-1]}rangeBy(c={}){let e="document"in this.source.input?this.source.input.document:this.source.input.css,i={column:this.source.start.column,line:this.source.start.line,offset:s(e,this.source.start)},t=this.source.end?{column:this.source.end.column+1,line:this.source.end.line,offset:typeof this.source.end.offset=="number"?this.source.end.offset:s(e,this.source.end)+1}:{column:i.column+1,line:i.line,offset:i.offset+1};if(c.word){let l=e.slice(s(e,this.source.start),s(e,this.source.end)).indexOf(c.word);l!==-1&&(i=this.positionInside(l),t=this.positionInside(l+c.word.length))}else c.start?i={column:c.start.column,line:c.start.line,offset:s(e,c.start)}:c.index&&(i=this.positionInside(c.index)),c.end?t={column:c.end.column,line:c.end.line,offset:s(e,c.end)}:typeof c.endIndex=="number"?t=this.positionInside(c.endIndex):c.index&&(t=this.positionInside(c.index+1));return(t.line<i.line||t.line===i.line&&t.column<=i.column)&&(t={column:i.column+1,line:i.line,offset:i.offset+1}),{end:t,start:i}}raw(c,e){return new f().raw(this,c,e)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...c){if(this.parent){let e=this,i=!1;for(let t of c)t===this?i=!0:i?(this.parent.insertAfter(e,t),e=t):this.parent.insertBefore(e,t);i||this.remove()}return this}root(){let c=this;for(;c.parent&&c.parent.type!=="document";)c=c.parent;return c}toJSON(c,e){let i={},t=e==null;e=e||new Map;let n=0;for(let l in this){if(!Object.prototype.hasOwnProperty.call(this,l)||l==="parent"||l==="proxyCache")continue;let u=this[l];if(Array.isArray(u))i[l]=u.map(p=>typeof p=="object"&&p.toJSON?p.toJSON(null,e):p);else if(typeof u=="object"&&u.toJSON)i[l]=u.toJSON(null,e);else if(l==="source"){if(u==null)continue;let p=e.get(u.input);p==null&&(p=n,e.set(u.input,n),n++),i[l]={end:u.end,inputId:p,start:u.start}}else i[l]=u}return t&&(i.inputs=[...e.keys()].map(l=>l.toJSON())),i}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(c=m){c.stringify&&(c=c.stringify);let e="";return c(this,i=>{e+=i}),e}warn(c,e,i={}){let t={node:this};for(let n in i)t[n]=i[n];return c.warn(e,t)}}return dt=g,g.default=g,dt}var pt,gn;function Ve(){if(gn)return pt;gn=1;let a=Je();class f extends a{constructor(d){super(d),this.type="comment"}}return pt=f,f.default=f,pt}var gt,mn;function Xe(){if(mn)return gt;mn=1;let a=Je();class f extends a{get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}constructor(d){d&&typeof d.value<"u"&&typeof d.value!="string"&&(d={...d,value:String(d.value)}),super(d),this.type="decl"}}return gt=f,f.default=f,gt}var mt,bn;function ve(){if(bn)return mt;bn=1;let a=Ve(),f=Xe(),m=Je(),{isClean:d,my:r}=Dt(),h,s,g,x;function c(t){return t.map(n=>(n.nodes&&(n.nodes=c(n.nodes)),delete n.source,n))}function e(t){if(t[d]=!1,t.proxyOf.nodes)for(let n of t.proxyOf.nodes)e(n)}class i extends m{get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}append(...n){for(let l of n){let u=this.normalize(l,this.last);for(let p of u)this.proxyOf.nodes.push(p)}return this.markDirty(),this}cleanRaws(n){if(super.cleanRaws(n),this.nodes)for(let l of this.nodes)l.cleanRaws(n)}each(n){if(!this.proxyOf.nodes)return;let l=this.getIterator(),u,p;for(;this.indexes[l]<this.proxyOf.nodes.length&&(u=this.indexes[l],p=n(this.proxyOf.nodes[u],u),p!==!1);)this.indexes[l]+=1;return delete this.indexes[l],p}every(n){return this.nodes.every(n)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let n=this.lastEach;return this.indexes[n]=0,n}getProxyProcessor(){return{get(n,l){return l==="proxyOf"?n:n[l]?l==="each"||typeof l=="string"&&l.startsWith("walk")?(...u)=>n[l](...u.map(p=>typeof p=="function"?(E,S)=>p(E.toProxy(),S):p)):l==="every"||l==="some"?u=>n[l]((p,...E)=>u(p.toProxy(),...E)):l==="root"?()=>n.root().toProxy():l==="nodes"?n.nodes.map(u=>u.toProxy()):l==="first"||l==="last"?n[l].toProxy():n[l]:n[l]},set(n,l,u){return n[l]===u||(n[l]=u,(l==="name"||l==="params"||l==="selector")&&n.markDirty()),!0}}}index(n){return typeof n=="number"?n:(n.proxyOf&&(n=n.proxyOf),this.proxyOf.nodes.indexOf(n))}insertAfter(n,l){let u=this.index(n),p=this.normalize(l,this.proxyOf.nodes[u]).reverse();u=this.index(n);for(let S of p)this.proxyOf.nodes.splice(u+1,0,S);let E;for(let S in this.indexes)E=this.indexes[S],u<E&&(this.indexes[S]=E+p.length);return this.markDirty(),this}insertBefore(n,l){let u=this.index(n),p=u===0?"prepend":!1,E=this.normalize(l,this.proxyOf.nodes[u],p).reverse();u=this.index(n);for(let w of E)this.proxyOf.nodes.splice(u,0,w);let S;for(let w in this.indexes)S=this.indexes[w],u<=S&&(this.indexes[w]=S+E.length);return this.markDirty(),this}normalize(n,l){if(typeof n=="string")n=c(s(n).nodes);else if(typeof n>"u")n=[];else if(Array.isArray(n)){n=n.slice(0);for(let p of n)p.parent&&p.parent.removeChild(p,"ignore")}else if(n.type==="root"&&this.type!=="document"){n=n.nodes.slice(0);for(let p of n)p.parent&&p.parent.removeChild(p,"ignore")}else if(n.type)n=[n];else if(n.prop){if(typeof n.value>"u")throw new Error("Value field is missed in node creation");typeof n.value!="string"&&(n.value=String(n.value)),n=[new f(n)]}else if(n.selector||n.selectors)n=[new x(n)];else if(n.name)n=[new h(n)];else if(n.text)n=[new a(n)];else throw new Error("Unknown node type in node creation");return n.map(p=>(p[r]||i.rebuild(p),p=p.proxyOf,p.parent&&p.parent.removeChild(p),p[d]&&e(p),p.raws||(p.raws={}),typeof p.raws.before>"u"&&l&&typeof l.raws.before<"u"&&(p.raws.before=l.raws.before.replace(/\S/g,"")),p.parent=this.proxyOf,p))}prepend(...n){n=n.reverse();for(let l of n){let u=this.normalize(l,this.first,"prepend").reverse();for(let p of u)this.proxyOf.nodes.unshift(p);for(let p in this.indexes)this.indexes[p]=this.indexes[p]+u.length}return this.markDirty(),this}push(n){return n.parent=this,this.proxyOf.nodes.push(n),this}removeAll(){for(let n of this.proxyOf.nodes)n.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(n){n=this.index(n),this.proxyOf.nodes[n].parent=void 0,this.proxyOf.nodes.splice(n,1);let l;for(let u in this.indexes)l=this.indexes[u],l>=n&&(this.indexes[u]=l-1);return this.markDirty(),this}replaceValues(n,l,u){return u||(u=l,l={}),this.walkDecls(p=>{l.props&&!l.props.includes(p.prop)||l.fast&&!p.value.includes(l.fast)||(p.value=p.value.replace(n,u))}),this.markDirty(),this}some(n){return this.nodes.some(n)}walk(n){return this.each((l,u)=>{let p;try{p=n(l,u)}catch(E){throw l.addToError(E)}return p!==!1&&l.walk&&(p=l.walk(n)),p})}walkAtRules(n,l){return l?n instanceof RegExp?this.walk((u,p)=>{if(u.type==="atrule"&&n.test(u.name))return l(u,p)}):this.walk((u,p)=>{if(u.type==="atrule"&&u.name===n)return l(u,p)}):(l=n,this.walk((u,p)=>{if(u.type==="atrule")return l(u,p)}))}walkComments(n){return this.walk((l,u)=>{if(l.type==="comment")return n(l,u)})}walkDecls(n,l){return l?n instanceof RegExp?this.walk((u,p)=>{if(u.type==="decl"&&n.test(u.prop))return l(u,p)}):this.walk((u,p)=>{if(u.type==="decl"&&u.prop===n)return l(u,p)}):(l=n,this.walk((u,p)=>{if(u.type==="decl")return l(u,p)}))}walkRules(n,l){return l?n instanceof RegExp?this.walk((u,p)=>{if(u.type==="rule"&&n.test(u.selector))return l(u,p)}):this.walk((u,p)=>{if(u.type==="rule"&&u.selector===n)return l(u,p)}):(l=n,this.walk((u,p)=>{if(u.type==="rule")return l(u,p)}))}}return i.registerParse=t=>{s=t},i.registerRule=t=>{x=t},i.registerAtRule=t=>{h=t},i.registerRoot=t=>{g=t},mt=i,i.default=i,i.rebuild=t=>{t.type==="atrule"?Object.setPrototypeOf(t,h.prototype):t.type==="rule"?Object.setPrototypeOf(t,x.prototype):t.type==="decl"?Object.setPrototypeOf(t,f.prototype):t.type==="comment"?Object.setPrototypeOf(t,a.prototype):t.type==="root"&&Object.setPrototypeOf(t,g.prototype),t[r]=!0,t.nodes&&t.nodes.forEach(n=>{i.rebuild(n)})},mt}var bt,yn;function Ut(){if(yn)return bt;yn=1;let a=ve();class f extends a{constructor(d){super(d),this.type="atrule"}append(...d){return this.proxyOf.nodes||(this.nodes=[]),super.append(...d)}prepend(...d){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...d)}}return bt=f,f.default=f,a.registerAtRule(f),bt}var yt,wn;function $t(){if(wn)return yt;wn=1;let a=ve(),f,m;class d extends a{constructor(h){super({type:"document",...h}),this.nodes||(this.nodes=[])}toResult(h={}){return new f(new m,this,h).stringify()}}return d.registerLazyResult=r=>{f=r},d.registerProcessor=r=>{m=r},yt=d,d.default=d,yt}var wt,xn;function li(){if(xn)return wt;xn=1;let a="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";return wt={nanoid:(d=21)=>{let r="",h=d|0;for(;h--;)r+=a[Math.random()*64|0];return r},customAlphabet:(d,r=21)=>(h=r)=>{let s="",g=h|0;for(;g--;)s+=d[Math.random()*d.length|0];return s}},wt}var xt,vn;function qn(){if(vn)return xt;vn=1;let{existsSync:a,readFileSync:f}=le,{dirname:m,join:d}=le,{SourceMapConsumer:r,SourceMapGenerator:h}=le;function s(x){return Buffer?Buffer.from(x,"base64").toString():window.atob(x)}class g{constructor(c,e){if(e.map===!1)return;this.loadAnnotation(c),this.inline=this.startWith(this.annotation,"data:");let i=e.map?e.map.prev:void 0,t=this.loadMap(e.from,i);!this.mapFile&&e.from&&(this.mapFile=e.from),this.mapFile&&(this.root=m(this.mapFile)),t&&(this.text=t)}consumer(){return this.consumerCache||(this.consumerCache=new r(this.text)),this.consumerCache}decodeInline(c){let e=/^data:application\/json;charset=utf-?8;base64,/,i=/^data:application\/json;base64,/,t=/^data:application\/json;charset=utf-?8,/,n=/^data:application\/json,/,l=c.match(t)||c.match(n);if(l)return decodeURIComponent(c.substr(l[0].length));let u=c.match(e)||c.match(i);if(u)return s(c.substr(u[0].length));let p=c.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+p)}getAnnotationURL(c){return c.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(c){return typeof c!="object"?!1:typeof c.mappings=="string"||typeof c._mappings=="string"||Array.isArray(c.sections)}loadAnnotation(c){let e=c.match(/\/\*\s*# sourceMappingURL=/g);if(!e)return;let i=c.lastIndexOf(e.pop()),t=c.indexOf("*/",i);i>-1&&t>-1&&(this.annotation=this.getAnnotationURL(c.substring(i,t)))}loadFile(c){if(this.root=m(c),a(c))return this.mapFile=c,f(c,"utf-8").toString().trim()}loadMap(c,e){if(e===!1)return!1;if(e){if(typeof e=="string")return e;if(typeof e=="function"){let i=e(c);if(i){let t=this.loadFile(i);if(!t)throw new Error("Unable to load previous source map: "+i.toString());return t}}else{if(e instanceof r)return h.fromSourceMap(e).toString();if(e instanceof h)return e.toString();if(this.isMap(e))return JSON.stringify(e);throw new Error("Unsupported previous source map format: "+e.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let i=this.annotation;return c&&(i=d(m(c),i)),this.loadFile(i)}}}startWith(c,e){return c?c.substr(0,e.length)===e:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}return xt=g,g.default=g,xt}var vt,En;function Qe(){if(En)return vt;En=1;let{nanoid:a}=li(),{isAbsolute:f,resolve:m}=le,{SourceMapConsumer:d,SourceMapGenerator:r}=le,{fileURLToPath:h,pathToFileURL:s}=le,g=Bt(),x=qn(),c=le,e=Symbol("lineToIndexCache"),i=!!(d&&r),t=!!(m&&f);function n(u){if(u[e])return u[e];let p=u.css.split(`
206
- `),E=new Array(p.length),S=0;for(let w=0,y=p.length;w<y;w++)E[w]=S,S+=p[w].length+1;return u[e]=E,E}class l{get from(){return this.file||this.id}constructor(p,E={}){if(p===null||typeof p>"u"||typeof p=="object"&&!p.toString)throw new Error(`PostCSS received ${p} instead of CSS string`);if(this.css=p.toString(),this.css[0]==="\uFEFF"||this.css[0]==="￾"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,this.document=this.css,E.document&&(this.document=E.document.toString()),E.from&&(!t||/^\w+:\/\//.test(E.from)||f(E.from)?this.file=E.from:this.file=m(E.from)),t&&i){let S=new x(this.css,E);if(S.text){this.map=S;let w=S.consumer().file;!this.file&&w&&(this.file=this.mapResolve(w))}}this.file||(this.id="<input css "+a(6)+">"),this.map&&(this.map.file=this.from)}error(p,E,S,w={}){let y,b,k,R,L;if(E&&typeof E=="object"){let T=E,J=S;if(typeof T.offset=="number"){R=T.offset;let q=this.fromOffset(R);E=q.line,S=q.col}else E=T.line,S=T.column,R=this.fromLineAndColumn(E,S);if(typeof J.offset=="number"){k=J.offset;let q=this.fromOffset(k);b=q.line,y=q.col}else b=J.line,y=J.column,k=this.fromLineAndColumn(J.line,J.column)}else if(S)R=this.fromLineAndColumn(E,S);else{R=E;let T=this.fromOffset(R);E=T.line,S=T.col}let U=this.origin(E,S,b,y);return U?L=new g(p,U.endLine===void 0?U.line:{column:U.column,line:U.line},U.endLine===void 0?U.column:{column:U.endColumn,line:U.endLine},U.source,U.file,w.plugin):L=new g(p,b===void 0?E:{column:S,line:E},b===void 0?S:{column:y,line:b},this.css,this.file,w.plugin),L.input={column:S,endColumn:y,endLine:b,endOffset:k,line:E,offset:R,source:this.css},this.file&&(s&&(L.input.url=s(this.file).toString()),L.input.file=this.file),L}fromLineAndColumn(p,E){return n(this)[p-1]+E-1}fromOffset(p){let E=n(this),S=E[E.length-1],w=0;if(p>=S)w=E.length-1;else{let y=E.length-2,b;for(;w<y;)if(b=w+(y-w>>1),p<E[b])y=b-1;else if(p>=E[b+1])w=b+1;else{w=b;break}}return{col:p-E[w]+1,line:w+1}}mapResolve(p){return/^\w+:\/\//.test(p)?p:m(this.map.consumer().sourceRoot||this.map.root||".",p)}origin(p,E,S,w){if(!this.map)return!1;let y=this.map.consumer(),b=y.originalPositionFor({column:E,line:p});if(!b.source)return!1;let k;typeof S=="number"&&(k=y.originalPositionFor({column:w,line:S}));let R;f(b.source)?R=s(b.source):R=new URL(b.source,this.map.consumer().sourceRoot||s(this.map.mapFile));let L={column:b.column,endColumn:k&&k.column,endLine:k&&k.line,line:b.line,url:R.toString()};if(R.protocol==="file:")if(h)L.file=h(R);else throw new Error("file: protocol is not available in this PostCSS build");let U=y.sourceContentFor(b.source);return U&&(L.source=U),L}toJSON(){let p={};for(let E of["hasBOM","css","file","id"])this[E]!=null&&(p[E]=this[E]);return this.map&&(p.map={...this.map},p.map.consumerCache&&(p.map.consumerCache=void 0)),p}}return vt=l,l.default=l,c&&c.registerInput&&c.registerInput(l),vt}var Et,Sn;function Ie(){if(Sn)return Et;Sn=1;let a=ve(),f,m;class d extends a{constructor(h){super(h),this.type="root",this.nodes||(this.nodes=[])}normalize(h,s,g){let x=super.normalize(h);if(s){if(g==="prepend")this.nodes.length>1?s.raws.before=this.nodes[1].raws.before:delete s.raws.before;else if(this.first!==s)for(let c of x)c.raws.before=s.raws.before}return x}removeChild(h,s){let g=this.index(h);return!s&&g===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[g].raws.before),super.removeChild(h)}toResult(h={}){return new f(new m,this,h).stringify()}}return d.registerLazyResult=r=>{f=r},d.registerProcessor=r=>{m=r},Et=d,d.default=d,a.registerRoot(d),Et}var St,kn;function Hn(){if(kn)return St;kn=1;let a={comma(f){return a.split(f,[","],!0)},space(f){let m=[" ",`
207
- `," "];return a.split(f,m)},split(f,m,d){let r=[],h="",s=!1,g=0,x=!1,c="",e=!1;for(let i of f)e?e=!1:i==="\\"?e=!0:x?i===c&&(x=!1):i==='"'||i==="'"?(x=!0,c=i):i==="("?g+=1:i===")"?g>0&&(g-=1):g===0&&m.includes(i)&&(s=!0),s?(h!==""&&r.push(h.trim()),h="",s=!1):h+=i;return(d||h!=="")&&r.push(h.trim()),r}};return St=a,a.default=a,St}var kt,_n;function Ft(){if(_n)return kt;_n=1;let a=ve(),f=Hn();class m extends a{get selectors(){return f.comma(this.selector)}set selectors(r){let h=this.selector?this.selector.match(/,\s*/):null,s=h?h[0]:","+this.raw("between","beforeOpen");this.selector=r.join(s)}constructor(r){super(r),this.type="rule",this.nodes||(this.nodes=[])}}return kt=m,m.default=m,a.registerRule(m),kt}var _t,On;function ci(){if(On)return _t;On=1;let a=Ut(),f=Ve(),m=Xe(),d=Qe(),r=qn(),h=Ie(),s=Ft();function g(x,c){if(Array.isArray(x))return x.map(t=>g(t));let{inputs:e,...i}=x;if(e){c=[];for(let t of e){let n={...t,__proto__:d.prototype};n.map&&(n.map={...n.map,__proto__:r.prototype}),c.push(n)}}if(i.nodes&&(i.nodes=x.nodes.map(t=>g(t,c))),i.source){let{inputId:t,...n}=i.source;i.source=n,t!=null&&(i.source.input=c[t])}if(i.type==="root")return new h(i);if(i.type==="decl")return new m(i);if(i.type==="rule")return new s(i);if(i.type==="comment")return new f(i);if(i.type==="atrule")return new a(i);throw new Error("Unknown node type: "+x.type)}return _t=g,g.default=g,_t}var Ot,Cn;function Wn(){if(Cn)return Ot;Cn=1;let{dirname:a,relative:f,resolve:m,sep:d}=le,{SourceMapConsumer:r,SourceMapGenerator:h}=le,{pathToFileURL:s}=le,g=Qe(),x=!!(r&&h),c=!!(a&&m&&f&&d);class e{constructor(t,n,l,u){this.stringify=t,this.mapOpts=l.map||{},this.root=n,this.opts=l,this.css=u,this.originalCSS=u,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let t;this.isInline()?t="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?t=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?t=this.mapOpts.annotation(this.opts.to,this.root):t=this.outputFile()+".map";let n=`
203
+ `)&&(h=h.replace(/[^\n]+$/,"")),!1}),h&&(h=h.replace(/\S/g,"")),h}rawColon(r){let h;return r.walkDecls(s=>{if(typeof s.raws.between<"u")return h=s.raws.between.replace(/[^\s:]/g,""),!1}),h}rawEmptyBody(r){let h;return r.walk(s=>{if(s.nodes&&s.nodes.length===0&&(h=s.raws.after,typeof h<"u"))return!1}),h}rawIndent(r){if(r.raws.indent)return r.raws.indent;let h;return r.walk(s=>{let p=s.parent;if(p&&p!==r&&p.parent&&p.parent===r&&typeof s.raws.before<"u"){let x=s.raws.before.split(`
204
+ `);return h=x[x.length-1],h=h.replace(/\S/g,""),!1}}),h}rawSemicolon(r){let h;return r.walk(s=>{if(s.nodes&&s.nodes.length&&s.last.type==="decl"&&(h=s.raws.semicolon,typeof h<"u"))return!1}),h}rawValue(r,h){let s=r[h],p=r.raws[h];return p&&p.value===s?p.raw:s}root(r){this.body(r),r.raws.after&&this.builder(r.raws.after)}rule(r){this.block(r,this.rawValue(r,"selector")),r.raws.ownSemicolon&&this.builder(r.raws.ownSemicolon,r,"end")}stringify(r,h){if(!this[r.type])throw new Error("Unknown AST node type "+r.type+". Maybe you need to change PostCSS stringifier.");this[r.type](r,h)}}return ht=m,m.default=m,ht}var ft,fn;function Ke(){if(fn)return ft;fn=1;let a=Fn();function f(m,d){new a(d).stringify(m)}return ft=f,f.default=f,ft}var qe={},dn;function Dt(){return dn||(dn=1,qe.isClean=Symbol("isClean"),qe.my=Symbol("my")),qe}var dt,pn;function Je(){if(pn)return dt;pn=1;let a=Bt(),f=Fn(),m=Ke(),{isClean:d,my:r}=Dt();function h(x,l){let e=new x.constructor;for(let i in x){if(!Object.prototype.hasOwnProperty.call(x,i)||i==="proxyCache")continue;let n=x[i],t=typeof n;i==="parent"&&t==="object"?l&&(e[i]=l):i==="source"?e[i]=n:Array.isArray(n)?e[i]=n.map(c=>h(c,e)):(t==="object"&&n!==null&&(n=h(n)),e[i]=n)}return e}function s(x,l){if(l&&typeof l.offset<"u")return l.offset;let e=1,i=1,n=0;for(let t=0;t<x.length;t++){if(i===l.line&&e===l.column){n=t;break}x[t]===`
205
+ `?(e=1,i+=1):e+=1}return n}class p{get proxyOf(){return this}constructor(l={}){this.raws={},this[d]=!1,this[r]=!0;for(let e in l)if(e==="nodes"){this.nodes=[];for(let i of l[e])typeof i.clone=="function"?this.append(i.clone()):this.append(i)}else this[e]=l[e]}addToError(l){if(l.postcssNode=this,l.stack&&this.source&&/\n\s{4}at /.test(l.stack)){let e=this.source;l.stack=l.stack.replace(/\n\s{4}at /,`$&${e.input.from}:${e.start.line}:${e.start.column}$&`)}return l}after(l){return this.parent.insertAfter(this,l),this}assign(l={}){for(let e in l)this[e]=l[e];return this}before(l){return this.parent.insertBefore(this,l),this}cleanRaws(l){delete this.raws.before,delete this.raws.after,l||delete this.raws.between}clone(l={}){let e=h(this);for(let i in l)e[i]=l[i];return e}cloneAfter(l={}){let e=this.clone(l);return this.parent.insertAfter(this,e),e}cloneBefore(l={}){let e=this.clone(l);return this.parent.insertBefore(this,e),e}error(l,e={}){if(this.source){let{end:i,start:n}=this.rangeBy(e);return this.source.input.error(l,{column:n.column,line:n.line},{column:i.column,line:i.line},e)}return new a(l)}getProxyProcessor(){return{get(l,e){return e==="proxyOf"?l:e==="root"?()=>l.root().toProxy():l[e]},set(l,e,i){return l[e]===i||(l[e]=i,(e==="prop"||e==="value"||e==="name"||e==="params"||e==="important"||e==="text")&&l.markDirty()),!0}}}markClean(){this[d]=!0}markDirty(){if(this[d]){this[d]=!1;let l=this;for(;l=l.parent;)l[d]=!1}}next(){if(!this.parent)return;let l=this.parent.index(this);return this.parent.nodes[l+1]}positionBy(l={}){let e=this.source.start;if(l.index)e=this.positionInside(l.index);else if(l.word){let i="document"in this.source.input?this.source.input.document:this.source.input.css,t=i.slice(s(i,this.source.start),s(i,this.source.end)).indexOf(l.word);t!==-1&&(e=this.positionInside(t))}return e}positionInside(l){let e=this.source.start.column,i=this.source.start.line,n="document"in this.source.input?this.source.input.document:this.source.input.css,t=s(n,this.source.start),c=t+l;for(let u=t;u<c;u++)n[u]===`
206
+ `?(e=1,i+=1):e+=1;return{column:e,line:i,offset:c}}prev(){if(!this.parent)return;let l=this.parent.index(this);return this.parent.nodes[l-1]}rangeBy(l={}){let e="document"in this.source.input?this.source.input.document:this.source.input.css,i={column:this.source.start.column,line:this.source.start.line,offset:s(e,this.source.start)},n=this.source.end?{column:this.source.end.column+1,line:this.source.end.line,offset:typeof this.source.end.offset=="number"?this.source.end.offset:s(e,this.source.end)+1}:{column:i.column+1,line:i.line,offset:i.offset+1};if(l.word){let c=e.slice(s(e,this.source.start),s(e,this.source.end)).indexOf(l.word);c!==-1&&(i=this.positionInside(c),n=this.positionInside(c+l.word.length))}else l.start?i={column:l.start.column,line:l.start.line,offset:s(e,l.start)}:l.index&&(i=this.positionInside(l.index)),l.end?n={column:l.end.column,line:l.end.line,offset:s(e,l.end)}:typeof l.endIndex=="number"?n=this.positionInside(l.endIndex):l.index&&(n=this.positionInside(l.index+1));return(n.line<i.line||n.line===i.line&&n.column<=i.column)&&(n={column:i.column+1,line:i.line,offset:i.offset+1}),{end:n,start:i}}raw(l,e){return new f().raw(this,l,e)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...l){if(this.parent){let e=this,i=!1;for(let n of l)n===this?i=!0:i?(this.parent.insertAfter(e,n),e=n):this.parent.insertBefore(e,n);i||this.remove()}return this}root(){let l=this;for(;l.parent&&l.parent.type!=="document";)l=l.parent;return l}toJSON(l,e){let i={},n=e==null;e=e||new Map;let t=0;for(let c in this){if(!Object.prototype.hasOwnProperty.call(this,c)||c==="parent"||c==="proxyCache")continue;let u=this[c];if(Array.isArray(u))i[c]=u.map(g=>typeof g=="object"&&g.toJSON?g.toJSON(null,e):g);else if(typeof u=="object"&&u.toJSON)i[c]=u.toJSON(null,e);else if(c==="source"){if(u==null)continue;let g=e.get(u.input);g==null&&(g=t,e.set(u.input,t),t++),i[c]={end:u.end,inputId:g,start:u.start}}else i[c]=u}return n&&(i.inputs=[...e.keys()].map(c=>c.toJSON())),i}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(l=m){l.stringify&&(l=l.stringify);let e="";return l(this,i=>{e+=i}),e}warn(l,e,i={}){let n={node:this};for(let t in i)n[t]=i[t];return l.warn(e,n)}}return dt=p,p.default=p,dt}var pt,gn;function Ve(){if(gn)return pt;gn=1;let a=Je();class f extends a{constructor(d){super(d),this.type="comment"}}return pt=f,f.default=f,pt}var gt,mn;function Xe(){if(mn)return gt;mn=1;let a=Je();class f extends a{get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}constructor(d){d&&typeof d.value<"u"&&typeof d.value!="string"&&(d={...d,value:String(d.value)}),super(d),this.type="decl"}}return gt=f,f.default=f,gt}var mt,bn;function ve(){if(bn)return mt;bn=1;let a=Ve(),f=Xe(),m=Je(),{isClean:d,my:r}=Dt(),h,s,p,x;function l(n){return n.map(t=>(t.nodes&&(t.nodes=l(t.nodes)),delete t.source,t))}function e(n){if(n[d]=!1,n.proxyOf.nodes)for(let t of n.proxyOf.nodes)e(t)}class i extends m{get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}append(...t){for(let c of t){let u=this.normalize(c,this.last);for(let g of u)this.proxyOf.nodes.push(g)}return this.markDirty(),this}cleanRaws(t){if(super.cleanRaws(t),this.nodes)for(let c of this.nodes)c.cleanRaws(t)}each(t){if(!this.proxyOf.nodes)return;let c=this.getIterator(),u,g;for(;this.indexes[c]<this.proxyOf.nodes.length&&(u=this.indexes[c],g=t(this.proxyOf.nodes[u],u),g!==!1);)this.indexes[c]+=1;return delete this.indexes[c],g}every(t){return this.nodes.every(t)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let t=this.lastEach;return this.indexes[t]=0,t}getProxyProcessor(){return{get(t,c){return c==="proxyOf"?t:t[c]?c==="each"||typeof c=="string"&&c.startsWith("walk")?(...u)=>t[c](...u.map(g=>typeof g=="function"?(E,S)=>g(E.toProxy(),S):g)):c==="every"||c==="some"?u=>t[c]((g,...E)=>u(g.toProxy(),...E)):c==="root"?()=>t.root().toProxy():c==="nodes"?t.nodes.map(u=>u.toProxy()):c==="first"||c==="last"?t[c].toProxy():t[c]:t[c]},set(t,c,u){return t[c]===u||(t[c]=u,(c==="name"||c==="params"||c==="selector")&&t.markDirty()),!0}}}index(t){return typeof t=="number"?t:(t.proxyOf&&(t=t.proxyOf),this.proxyOf.nodes.indexOf(t))}insertAfter(t,c){let u=this.index(t),g=this.normalize(c,this.proxyOf.nodes[u]).reverse();u=this.index(t);for(let S of g)this.proxyOf.nodes.splice(u+1,0,S);let E;for(let S in this.indexes)E=this.indexes[S],u<E&&(this.indexes[S]=E+g.length);return this.markDirty(),this}insertBefore(t,c){let u=this.index(t),g=u===0?"prepend":!1,E=this.normalize(c,this.proxyOf.nodes[u],g).reverse();u=this.index(t);for(let w of E)this.proxyOf.nodes.splice(u,0,w);let S;for(let w in this.indexes)S=this.indexes[w],u<=S&&(this.indexes[w]=S+E.length);return this.markDirty(),this}normalize(t,c){if(typeof t=="string")t=l(s(t).nodes);else if(typeof t>"u")t=[];else if(Array.isArray(t)){t=t.slice(0);for(let g of t)g.parent&&g.parent.removeChild(g,"ignore")}else if(t.type==="root"&&this.type!=="document"){t=t.nodes.slice(0);for(let g of t)g.parent&&g.parent.removeChild(g,"ignore")}else if(t.type)t=[t];else if(t.prop){if(typeof t.value>"u")throw new Error("Value field is missed in node creation");typeof t.value!="string"&&(t.value=String(t.value)),t=[new f(t)]}else if(t.selector||t.selectors)t=[new x(t)];else if(t.name)t=[new h(t)];else if(t.text)t=[new a(t)];else throw new Error("Unknown node type in node creation");return t.map(g=>(g[r]||i.rebuild(g),g=g.proxyOf,g.parent&&g.parent.removeChild(g),g[d]&&e(g),g.raws||(g.raws={}),typeof g.raws.before>"u"&&c&&typeof c.raws.before<"u"&&(g.raws.before=c.raws.before.replace(/\S/g,"")),g.parent=this.proxyOf,g))}prepend(...t){t=t.reverse();for(let c of t){let u=this.normalize(c,this.first,"prepend").reverse();for(let g of u)this.proxyOf.nodes.unshift(g);for(let g in this.indexes)this.indexes[g]=this.indexes[g]+u.length}return this.markDirty(),this}push(t){return t.parent=this,this.proxyOf.nodes.push(t),this}removeAll(){for(let t of this.proxyOf.nodes)t.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(t){t=this.index(t),this.proxyOf.nodes[t].parent=void 0,this.proxyOf.nodes.splice(t,1);let c;for(let u in this.indexes)c=this.indexes[u],c>=t&&(this.indexes[u]=c-1);return this.markDirty(),this}replaceValues(t,c,u){return u||(u=c,c={}),this.walkDecls(g=>{c.props&&!c.props.includes(g.prop)||c.fast&&!g.value.includes(c.fast)||(g.value=g.value.replace(t,u))}),this.markDirty(),this}some(t){return this.nodes.some(t)}walk(t){return this.each((c,u)=>{let g;try{g=t(c,u)}catch(E){throw c.addToError(E)}return g!==!1&&c.walk&&(g=c.walk(t)),g})}walkAtRules(t,c){return c?t instanceof RegExp?this.walk((u,g)=>{if(u.type==="atrule"&&t.test(u.name))return c(u,g)}):this.walk((u,g)=>{if(u.type==="atrule"&&u.name===t)return c(u,g)}):(c=t,this.walk((u,g)=>{if(u.type==="atrule")return c(u,g)}))}walkComments(t){return this.walk((c,u)=>{if(c.type==="comment")return t(c,u)})}walkDecls(t,c){return c?t instanceof RegExp?this.walk((u,g)=>{if(u.type==="decl"&&t.test(u.prop))return c(u,g)}):this.walk((u,g)=>{if(u.type==="decl"&&u.prop===t)return c(u,g)}):(c=t,this.walk((u,g)=>{if(u.type==="decl")return c(u,g)}))}walkRules(t,c){return c?t instanceof RegExp?this.walk((u,g)=>{if(u.type==="rule"&&t.test(u.selector))return c(u,g)}):this.walk((u,g)=>{if(u.type==="rule"&&u.selector===t)return c(u,g)}):(c=t,this.walk((u,g)=>{if(u.type==="rule")return c(u,g)}))}}return i.registerParse=n=>{s=n},i.registerRule=n=>{x=n},i.registerAtRule=n=>{h=n},i.registerRoot=n=>{p=n},mt=i,i.default=i,i.rebuild=n=>{n.type==="atrule"?Object.setPrototypeOf(n,h.prototype):n.type==="rule"?Object.setPrototypeOf(n,x.prototype):n.type==="decl"?Object.setPrototypeOf(n,f.prototype):n.type==="comment"?Object.setPrototypeOf(n,a.prototype):n.type==="root"&&Object.setPrototypeOf(n,p.prototype),n[r]=!0,n.nodes&&n.nodes.forEach(t=>{i.rebuild(t)})},mt}var bt,yn;function Ut(){if(yn)return bt;yn=1;let a=ve();class f extends a{constructor(d){super(d),this.type="atrule"}append(...d){return this.proxyOf.nodes||(this.nodes=[]),super.append(...d)}prepend(...d){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...d)}}return bt=f,f.default=f,a.registerAtRule(f),bt}var yt,wn;function $t(){if(wn)return yt;wn=1;let a=ve(),f,m;class d extends a{constructor(h){super({type:"document",...h}),this.nodes||(this.nodes=[])}toResult(h={}){return new f(new m,this,h).stringify()}}return d.registerLazyResult=r=>{f=r},d.registerProcessor=r=>{m=r},yt=d,d.default=d,yt}var wt,xn;function li(){if(xn)return wt;xn=1;let a="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";return wt={nanoid:(d=21)=>{let r="",h=d|0;for(;h--;)r+=a[Math.random()*64|0];return r},customAlphabet:(d,r=21)=>(h=r)=>{let s="",p=h|0;for(;p--;)s+=d[Math.random()*d.length|0];return s}},wt}var xt,vn;function qn(){if(vn)return xt;vn=1;let{existsSync:a,readFileSync:f}=le,{dirname:m,join:d}=le,{SourceMapConsumer:r,SourceMapGenerator:h}=le;function s(x){return Buffer?Buffer.from(x,"base64").toString():window.atob(x)}class p{constructor(l,e){if(e.map===!1)return;this.loadAnnotation(l),this.inline=this.startWith(this.annotation,"data:");let i=e.map?e.map.prev:void 0,n=this.loadMap(e.from,i);!this.mapFile&&e.from&&(this.mapFile=e.from),this.mapFile&&(this.root=m(this.mapFile)),n&&(this.text=n)}consumer(){return this.consumerCache||(this.consumerCache=new r(this.text)),this.consumerCache}decodeInline(l){let e=/^data:application\/json;charset=utf-?8;base64,/,i=/^data:application\/json;base64,/,n=/^data:application\/json;charset=utf-?8,/,t=/^data:application\/json,/,c=l.match(n)||l.match(t);if(c)return decodeURIComponent(l.substr(c[0].length));let u=l.match(e)||l.match(i);if(u)return s(l.substr(u[0].length));let g=l.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+g)}getAnnotationURL(l){return l.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(l){return typeof l!="object"?!1:typeof l.mappings=="string"||typeof l._mappings=="string"||Array.isArray(l.sections)}loadAnnotation(l){let e=l.match(/\/\*\s*# sourceMappingURL=/g);if(!e)return;let i=l.lastIndexOf(e.pop()),n=l.indexOf("*/",i);i>-1&&n>-1&&(this.annotation=this.getAnnotationURL(l.substring(i,n)))}loadFile(l){if(this.root=m(l),a(l))return this.mapFile=l,f(l,"utf-8").toString().trim()}loadMap(l,e){if(e===!1)return!1;if(e){if(typeof e=="string")return e;if(typeof e=="function"){let i=e(l);if(i){let n=this.loadFile(i);if(!n)throw new Error("Unable to load previous source map: "+i.toString());return n}}else{if(e instanceof r)return h.fromSourceMap(e).toString();if(e instanceof h)return e.toString();if(this.isMap(e))return JSON.stringify(e);throw new Error("Unsupported previous source map format: "+e.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let i=this.annotation;return l&&(i=d(m(l),i)),this.loadFile(i)}}}startWith(l,e){return l?l.substr(0,e.length)===e:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}return xt=p,p.default=p,xt}var vt,En;function Qe(){if(En)return vt;En=1;let{nanoid:a}=li(),{isAbsolute:f,resolve:m}=le,{SourceMapConsumer:d,SourceMapGenerator:r}=le,{fileURLToPath:h,pathToFileURL:s}=le,p=Bt(),x=qn(),l=le,e=Symbol("lineToIndexCache"),i=!!(d&&r),n=!!(m&&f);function t(u){if(u[e])return u[e];let g=u.css.split(`
207
+ `),E=new Array(g.length),S=0;for(let w=0,y=g.length;w<y;w++)E[w]=S,S+=g[w].length+1;return u[e]=E,E}class c{get from(){return this.file||this.id}constructor(g,E={}){if(g===null||typeof g>"u"||typeof g=="object"&&!g.toString)throw new Error(`PostCSS received ${g} instead of CSS string`);if(this.css=g.toString(),this.css[0]==="\uFEFF"||this.css[0]==="￾"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,this.document=this.css,E.document&&(this.document=E.document.toString()),E.from&&(!n||/^\w+:\/\//.test(E.from)||f(E.from)?this.file=E.from:this.file=m(E.from)),n&&i){let S=new x(this.css,E);if(S.text){this.map=S;let w=S.consumer().file;!this.file&&w&&(this.file=this.mapResolve(w))}}this.file||(this.id="<input css "+a(6)+">"),this.map&&(this.map.file=this.from)}error(g,E,S,w={}){let y,b,k,A,L;if(E&&typeof E=="object"){let T=E,J=S;if(typeof T.offset=="number"){A=T.offset;let q=this.fromOffset(A);E=q.line,S=q.col}else E=T.line,S=T.column,A=this.fromLineAndColumn(E,S);if(typeof J.offset=="number"){k=J.offset;let q=this.fromOffset(k);b=q.line,y=q.col}else b=J.line,y=J.column,k=this.fromLineAndColumn(J.line,J.column)}else if(S)A=this.fromLineAndColumn(E,S);else{A=E;let T=this.fromOffset(A);E=T.line,S=T.col}let U=this.origin(E,S,b,y);return U?L=new p(g,U.endLine===void 0?U.line:{column:U.column,line:U.line},U.endLine===void 0?U.column:{column:U.endColumn,line:U.endLine},U.source,U.file,w.plugin):L=new p(g,b===void 0?E:{column:S,line:E},b===void 0?S:{column:y,line:b},this.css,this.file,w.plugin),L.input={column:S,endColumn:y,endLine:b,endOffset:k,line:E,offset:A,source:this.css},this.file&&(s&&(L.input.url=s(this.file).toString()),L.input.file=this.file),L}fromLineAndColumn(g,E){return t(this)[g-1]+E-1}fromOffset(g){let E=t(this),S=E[E.length-1],w=0;if(g>=S)w=E.length-1;else{let y=E.length-2,b;for(;w<y;)if(b=w+(y-w>>1),g<E[b])y=b-1;else if(g>=E[b+1])w=b+1;else{w=b;break}}return{col:g-E[w]+1,line:w+1}}mapResolve(g){return/^\w+:\/\//.test(g)?g:m(this.map.consumer().sourceRoot||this.map.root||".",g)}origin(g,E,S,w){if(!this.map)return!1;let y=this.map.consumer(),b=y.originalPositionFor({column:E,line:g});if(!b.source)return!1;let k;typeof S=="number"&&(k=y.originalPositionFor({column:w,line:S}));let A;f(b.source)?A=s(b.source):A=new URL(b.source,this.map.consumer().sourceRoot||s(this.map.mapFile));let L={column:b.column,endColumn:k&&k.column,endLine:k&&k.line,line:b.line,url:A.toString()};if(A.protocol==="file:")if(h)L.file=h(A);else throw new Error("file: protocol is not available in this PostCSS build");let U=y.sourceContentFor(b.source);return U&&(L.source=U),L}toJSON(){let g={};for(let E of["hasBOM","css","file","id"])this[E]!=null&&(g[E]=this[E]);return this.map&&(g.map={...this.map},g.map.consumerCache&&(g.map.consumerCache=void 0)),g}}return vt=c,c.default=c,l&&l.registerInput&&l.registerInput(c),vt}var Et,Sn;function Ie(){if(Sn)return Et;Sn=1;let a=ve(),f,m;class d extends a{constructor(h){super(h),this.type="root",this.nodes||(this.nodes=[])}normalize(h,s,p){let x=super.normalize(h);if(s){if(p==="prepend")this.nodes.length>1?s.raws.before=this.nodes[1].raws.before:delete s.raws.before;else if(this.first!==s)for(let l of x)l.raws.before=s.raws.before}return x}removeChild(h,s){let p=this.index(h);return!s&&p===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[p].raws.before),super.removeChild(h)}toResult(h={}){return new f(new m,this,h).stringify()}}return d.registerLazyResult=r=>{f=r},d.registerProcessor=r=>{m=r},Et=d,d.default=d,a.registerRoot(d),Et}var St,kn;function Hn(){if(kn)return St;kn=1;let a={comma(f){return a.split(f,[","],!0)},space(f){let m=[" ",`
208
+ `," "];return a.split(f,m)},split(f,m,d){let r=[],h="",s=!1,p=0,x=!1,l="",e=!1;for(let i of f)e?e=!1:i==="\\"?e=!0:x?i===l&&(x=!1):i==='"'||i==="'"?(x=!0,l=i):i==="("?p+=1:i===")"?p>0&&(p-=1):p===0&&m.includes(i)&&(s=!0),s?(h!==""&&r.push(h.trim()),h="",s=!1):h+=i;return(d||h!=="")&&r.push(h.trim()),r}};return St=a,a.default=a,St}var kt,_n;function Ft(){if(_n)return kt;_n=1;let a=ve(),f=Hn();class m extends a{get selectors(){return f.comma(this.selector)}set selectors(r){let h=this.selector?this.selector.match(/,\s*/):null,s=h?h[0]:","+this.raw("between","beforeOpen");this.selector=r.join(s)}constructor(r){super(r),this.type="rule",this.nodes||(this.nodes=[])}}return kt=m,m.default=m,a.registerRule(m),kt}var _t,On;function ci(){if(On)return _t;On=1;let a=Ut(),f=Ve(),m=Xe(),d=Qe(),r=qn(),h=Ie(),s=Ft();function p(x,l){if(Array.isArray(x))return x.map(n=>p(n));let{inputs:e,...i}=x;if(e){l=[];for(let n of e){let t={...n,__proto__:d.prototype};t.map&&(t.map={...t.map,__proto__:r.prototype}),l.push(t)}}if(i.nodes&&(i.nodes=x.nodes.map(n=>p(n,l))),i.source){let{inputId:n,...t}=i.source;i.source=t,n!=null&&(i.source.input=l[n])}if(i.type==="root")return new h(i);if(i.type==="decl")return new m(i);if(i.type==="rule")return new s(i);if(i.type==="comment")return new f(i);if(i.type==="atrule")return new a(i);throw new Error("Unknown node type: "+x.type)}return _t=p,p.default=p,_t}var Ot,Cn;function Wn(){if(Cn)return Ot;Cn=1;let{dirname:a,relative:f,resolve:m,sep:d}=le,{SourceMapConsumer:r,SourceMapGenerator:h}=le,{pathToFileURL:s}=le,p=Qe(),x=!!(r&&h),l=!!(a&&m&&f&&d);class e{constructor(n,t,c,u){this.stringify=n,this.mapOpts=c.map||{},this.root=t,this.opts=c,this.css=u,this.originalCSS=u,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let n;this.isInline()?n="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?n=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?n=this.mapOpts.annotation(this.opts.to,this.root):n=this.outputFile()+".map";let t=`
208
209
  `;this.css.includes(`\r
209
- `)&&(n=`\r
210
- `),this.css+=n+"/*# sourceMappingURL="+t+" */"}applyPrevMaps(){for(let t of this.previous()){let n=this.toUrl(this.path(t.file)),l=t.root||a(t.file),u;this.mapOpts.sourcesContent===!1?(u=new r(t.text),u.sourcesContent&&(u.sourcesContent=null)):u=t.consumer(),this.map.applySourceMap(u,n,this.toUrl(this.path(l)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let t;for(let n=this.root.nodes.length-1;n>=0;n--)t=this.root.nodes[n],t.type==="comment"&&t.text.startsWith("# sourceMappingURL=")&&this.root.removeChild(n)}else this.css&&(this.css=this.css.replace(/\n*\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),c&&x&&this.isMap())return this.generateMap();{let t="";return this.stringify(this.root,n=>{t+=n}),[t]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let t=this.previous()[0].consumer();t.file=this.outputFile(),this.map=h.fromSourceMap(t,{ignoreInvalidMapping:!0})}else this.map=new h({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new h({file:this.outputFile(),ignoreInvalidMapping:!0});let t=1,n=1,l="<no source>",u={generated:{column:0,line:0},original:{column:0,line:0},source:""},p,E;this.stringify(this.root,(S,w,y)=>{if(this.css+=S,w&&y!=="end"&&(u.generated.line=t,u.generated.column=n-1,w.source&&w.source.start?(u.source=this.sourcePath(w),u.original.line=w.source.start.line,u.original.column=w.source.start.column-1,this.map.addMapping(u)):(u.source=l,u.original.line=1,u.original.column=0,this.map.addMapping(u))),E=S.match(/\n/g),E?(t+=E.length,p=S.lastIndexOf(`
211
- `),n=S.length-p):n+=S.length,w&&y!=="start"){let b=w.parent||{raws:{}};(!(w.type==="decl"||w.type==="atrule"&&!w.nodes)||w!==b.last||b.raws.semicolon)&&(w.source&&w.source.end?(u.source=this.sourcePath(w),u.original.line=w.source.end.line,u.original.column=w.source.end.column-1,u.generated.line=t,u.generated.column=n-2,this.map.addMapping(u)):(u.source=l,u.original.line=1,u.original.column=0,u.generated.line=t,u.generated.column=n-1,this.map.addMapping(u)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(t=>t.annotation):!0}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let t=this.mapOpts.annotation;return typeof t<"u"&&t!==!0?!1:this.previous().length?this.previous().some(n=>n.inline):!0}isMap(){return typeof this.opts.map<"u"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent<"u"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(t=>t.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(t){if(this.mapOpts.absolute||t.charCodeAt(0)===60||/^\w+:\/\//.test(t))return t;let n=this.memoizedPaths.get(t);if(n)return n;let l=this.opts.to?a(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(l=a(m(l,this.mapOpts.annotation)));let u=f(l,t);return this.memoizedPaths.set(t,u),u}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(t=>{if(t.source&&t.source.input.map){let n=t.source.input.map;this.previousMaps.includes(n)||this.previousMaps.push(n)}});else{let t=new g(this.originalCSS,this.opts);t.map&&this.previousMaps.push(t.map)}return this.previousMaps}setSourcesContent(){let t={};if(this.root)this.root.walk(n=>{if(n.source){let l=n.source.input.from;if(l&&!t[l]){t[l]=!0;let u=this.usesFileUrls?this.toFileUrl(l):this.toUrl(this.path(l));this.map.setSourceContent(u,n.source.input.css)}}});else if(this.css){let n=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(n,this.css)}}sourcePath(t){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(t.source.input.from):this.toUrl(this.path(t.source.input.from))}toBase64(t){return Buffer?Buffer.from(t).toString("base64"):window.btoa(unescape(encodeURIComponent(t)))}toFileUrl(t){let n=this.memoizedFileURLs.get(t);if(n)return n;if(s){let l=s(t).toString();return this.memoizedFileURLs.set(t,l),l}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(t){let n=this.memoizedURLs.get(t);if(n)return n;d==="\\"&&(t=t.replace(/\\/g,"/"));let l=encodeURI(t).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(t,l),l}}return Ot=e,Ot}var Ct,Rn;function ui(){if(Rn)return Ct;Rn=1;const a=39,f=34,m=92,d=47,r=10,h=32,s=12,g=9,x=13,c=91,e=93,i=40,t=41,n=123,l=125,u=59,p=42,E=58,S=64,w=/[\t\n\f\r "#'()/;[\\\]{}]/g,y=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,b=/.[\r\n"'(/\\]/,k=/[\da-f]/i;return Ct=function(L,U={}){let T=L.css.valueOf(),J=U.ignoreErrors,q,be,ae,N,Ee,W,Q,ie,se,de,ye=T.length,z=0,Ce=[],Se=[];function et(){return z}function Re(pe){throw L.error("Unclosed "+pe,z)}function tt(){return Se.length===0&&z>=ye}function ke(pe){if(Se.length)return Se.pop();if(z>=ye)return;let Ae=pe?pe.ignoreUnclosed:!1;switch(q=T.charCodeAt(z),q){case r:case h:case g:case x:case s:{N=z;do N+=1,q=T.charCodeAt(N);while(q===h||q===r||q===g||q===x||q===s);W=["space",T.slice(z,N)],z=N-1;break}case c:case e:case n:case l:case E:case u:case t:{let Le=String.fromCharCode(q);W=[Le,Le,z];break}case i:{if(de=Ce.length?Ce.pop()[1]:"",se=T.charCodeAt(z+1),de==="url"&&se!==a&&se!==f&&se!==h&&se!==r&&se!==g&&se!==s&&se!==x){N=z;do{if(Q=!1,N=T.indexOf(")",N+1),N===-1)if(J||Ae){N=z;break}else Re("bracket");for(ie=N;T.charCodeAt(ie-1)===m;)ie-=1,Q=!Q}while(Q);W=["brackets",T.slice(z,N+1),z,N],z=N}else N=T.indexOf(")",z+1),be=T.slice(z,N+1),N===-1||b.test(be)?W=["(","(",z]:(W=["brackets",be,z,N],z=N);break}case a:case f:{Ee=q===a?"'":'"',N=z;do{if(Q=!1,N=T.indexOf(Ee,N+1),N===-1)if(J||Ae){N=z+1;break}else Re("string");for(ie=N;T.charCodeAt(ie-1)===m;)ie-=1,Q=!Q}while(Q);W=["string",T.slice(z,N+1),z,N],z=N;break}case S:{w.lastIndex=z+1,w.test(T),w.lastIndex===0?N=T.length-1:N=w.lastIndex-2,W=["at-word",T.slice(z,N+1),z,N],z=N;break}case m:{for(N=z,ae=!0;T.charCodeAt(N+1)===m;)N+=1,ae=!ae;if(q=T.charCodeAt(N+1),ae&&q!==d&&q!==h&&q!==r&&q!==g&&q!==x&&q!==s&&(N+=1,k.test(T.charAt(N)))){for(;k.test(T.charAt(N+1));)N+=1;T.charCodeAt(N+1)===h&&(N+=1)}W=["word",T.slice(z,N+1),z,N],z=N;break}default:{q===d&&T.charCodeAt(z+1)===p?(N=T.indexOf("*/",z+2)+1,N===0&&(J||Ae?N=T.length:Re("comment")),W=["comment",T.slice(z,N+1),z,N],z=N):(y.lastIndex=z+1,y.test(T),y.lastIndex===0?N=T.length-1:N=y.lastIndex-2,W=["word",T.slice(z,N+1),z,N],Ce.push(W),z=N);break}}return z++,W}function nt(pe){Se.push(pe)}return{back:nt,endOfFile:tt,nextToken:ke,position:et}},Ct}var Rt,An;function hi(){if(An)return Rt;An=1;let a=Ut(),f=Ve(),m=Xe(),d=Ie(),r=Ft(),h=ui();const s={empty:!0,space:!0};function g(c){for(let e=c.length-1;e>=0;e--){let i=c[e],t=i[3]||i[2];if(t)return t}}class x{constructor(e){this.input=e,this.root=new d,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}atrule(e){let i=new a;i.name=e[1].slice(1),i.name===""&&this.unnamedAtrule(i,e),this.init(i,e[2]);let t,n,l,u=!1,p=!1,E=[],S=[];for(;!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),t=e[0],t==="("||t==="["?S.push(t==="("?")":"]"):t==="{"&&S.length>0?S.push("}"):t===S[S.length-1]&&S.pop(),S.length===0)if(t===";"){i.source.end=this.getPosition(e[2]),i.source.end.offset++,this.semicolon=!0;break}else if(t==="{"){p=!0;break}else if(t==="}"){if(E.length>0){for(l=E.length-1,n=E[l];n&&n[0]==="space";)n=E[--l];n&&(i.source.end=this.getPosition(n[3]||n[2]),i.source.end.offset++)}this.end(e);break}else E.push(e);else E.push(e);if(this.tokenizer.endOfFile()){u=!0;break}}i.raws.between=this.spacesAndCommentsFromEnd(E),E.length?(i.raws.afterName=this.spacesAndCommentsFromStart(E),this.raw(i,"params",E),u&&(e=E[E.length-1],i.source.end=this.getPosition(e[3]||e[2]),i.source.end.offset++,this.spaces=i.raws.between,i.raws.between="")):(i.raws.afterName="",i.params=""),p&&(i.nodes=[],this.current=i)}checkMissedSemicolon(e){let i=this.colon(e);if(i===!1)return;let t=0,n;for(let l=i-1;l>=0&&(n=e[l],!(n[0]!=="space"&&(t+=1,t===2)));l--);throw this.input.error("Missed semicolon",n[0]==="word"?n[3]+1:n[2])}colon(e){let i=0,t,n,l;for(let[u,p]of e.entries()){if(n=p,l=n[0],l==="("&&(i+=1),l===")"&&(i-=1),i===0&&l===":")if(!t)this.doubleColon(n);else{if(t[0]==="word"&&t[1]==="progid")continue;return u}t=n}return!1}comment(e){let i=new f;this.init(i,e[2]),i.source.end=this.getPosition(e[3]||e[2]),i.source.end.offset++;let t=e[1].slice(2,-2);if(/^\s*$/.test(t))i.text="",i.raws.left=t,i.raws.right="";else{let n=t.match(/^(\s*)([^]*\S)(\s*)$/);i.text=n[2],i.raws.left=n[1],i.raws.right=n[3]}}createTokenizer(){this.tokenizer=h(this.input)}decl(e,i){let t=new m;this.init(t,e[0][2]);let n=e[e.length-1];for(n[0]===";"&&(this.semicolon=!0,e.pop()),t.source.end=this.getPosition(n[3]||n[2]||g(e)),t.source.end.offset++;e[0][0]!=="word";)e.length===1&&this.unknownWord(e),t.raws.before+=e.shift()[1];for(t.source.start=this.getPosition(e[0][2]),t.prop="";e.length;){let S=e[0][0];if(S===":"||S==="space"||S==="comment")break;t.prop+=e.shift()[1]}t.raws.between="";let l;for(;e.length;)if(l=e.shift(),l[0]===":"){t.raws.between+=l[1];break}else l[0]==="word"&&/\w/.test(l[1])&&this.unknownWord([l]),t.raws.between+=l[1];(t.prop[0]==="_"||t.prop[0]==="*")&&(t.raws.before+=t.prop[0],t.prop=t.prop.slice(1));let u=[],p;for(;e.length&&(p=e[0][0],!(p!=="space"&&p!=="comment"));)u.push(e.shift());this.precheckMissedSemicolon(e);for(let S=e.length-1;S>=0;S--){if(l=e[S],l[1].toLowerCase()==="!important"){t.important=!0;let w=this.stringFrom(e,S);w=this.spacesFromEnd(e)+w,w!==" !important"&&(t.raws.important=w);break}else if(l[1].toLowerCase()==="important"){let w=e.slice(0),y="";for(let b=S;b>0;b--){let k=w[b][0];if(y.trim().startsWith("!")&&k!=="space")break;y=w.pop()[1]+y}y.trim().startsWith("!")&&(t.important=!0,t.raws.important=y,e=w)}if(l[0]!=="space"&&l[0]!=="comment")break}e.some(S=>S[0]!=="space"&&S[0]!=="comment")&&(t.raws.between+=u.map(S=>S[1]).join(""),u=[]),this.raw(t,"value",u.concat(e),i),t.value.includes(":")&&!i&&this.checkMissedSemicolon(e)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){let i=new r;this.init(i,e[2]),i.selector="",i.raws.between="",this.current=i}end(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(e){if(this.spaces+=e[1],this.current.nodes){let i=this.current.nodes[this.current.nodes.length-1];i&&i.type==="rule"&&!i.raws.ownSemicolon&&(i.raws.ownSemicolon=this.spaces,this.spaces="",i.source.end=this.getPosition(e[2]),i.source.end.offset+=i.raws.ownSemicolon.length)}}getPosition(e){let i=this.input.fromOffset(e);return{column:i.col,line:i.line,offset:e}}init(e,i){this.current.push(e),e.source={input:this.input,start:this.getPosition(i)},e.raws.before=this.spaces,this.spaces="",e.type!=="comment"&&(this.semicolon=!1)}other(e){let i=!1,t=null,n=!1,l=null,u=[],p=e[1].startsWith("--"),E=[],S=e;for(;S;){if(t=S[0],E.push(S),t==="("||t==="[")l||(l=S),u.push(t==="("?")":"]");else if(p&&n&&t==="{")l||(l=S),u.push("}");else if(u.length===0)if(t===";")if(n){this.decl(E,p);return}else break;else if(t==="{"){this.rule(E);return}else if(t==="}"){this.tokenizer.back(E.pop()),i=!0;break}else t===":"&&(n=!0);else t===u[u.length-1]&&(u.pop(),u.length===0&&(l=null));S=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(i=!0),u.length>0&&this.unclosedBracket(l),i&&n){if(!p)for(;E.length&&(S=E[E.length-1][0],!(S!=="space"&&S!=="comment"));)this.tokenizer.back(E.pop());this.decl(E,p)}else this.unknownWord(E)}parse(){let e;for(;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e);break}this.endFile()}precheckMissedSemicolon(){}raw(e,i,t,n){let l,u,p=t.length,E="",S=!0,w,y;for(let b=0;b<p;b+=1)l=t[b],u=l[0],u==="space"&&b===p-1&&!n?S=!1:u==="comment"?(y=t[b-1]?t[b-1][0]:"empty",w=t[b+1]?t[b+1][0]:"empty",!s[y]&&!s[w]?E.slice(-1)===","?S=!1:E+=l[1]:S=!1):E+=l[1];if(!S){let b=t.reduce((k,R)=>k+R[1],"");e.raws[i]={raw:b,value:E}}e[i]=E}rule(e){e.pop();let i=new r;this.init(i,e[0][2]),i.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(i,"selector",e),this.current=i}spacesAndCommentsFromEnd(e){let i,t="";for(;e.length&&(i=e[e.length-1][0],!(i!=="space"&&i!=="comment"));)t=e.pop()[1]+t;return t}spacesAndCommentsFromStart(e){let i,t="";for(;e.length&&(i=e[0][0],!(i!=="space"&&i!=="comment"));)t+=e.shift()[1];return t}spacesFromEnd(e){let i,t="";for(;e.length&&(i=e[e.length-1][0],i==="space");)t=e.pop()[1]+t;return t}stringFrom(e,i){let t="";for(let n=i;n<e.length;n++)t+=e[n][1];return e.splice(i,e.length-i),t}unclosedBlock(){let e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)}unclosedBracket(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})}unexpectedClose(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})}unknownWord(e){throw this.input.error("Unknown word "+e[0][1],{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})}unnamedAtrule(e,i){throw this.input.error("At-rule without name",{offset:i[2]},{offset:i[2]+i[1].length})}}return Rt=x,Rt}var At,Nn;function qt(){if(Nn)return At;Nn=1;let a=ve(),f=Qe(),m=hi();function d(r,h){let s=new f(r,h),g=new m(s);try{g.parse()}catch(x){throw x}return g.root}return At=d,d.default=d,a.registerParse(d),At}var Nt,Mn;function Gn(){if(Mn)return Nt;Mn=1;class a{constructor(m,d={}){if(this.type="warning",this.text=m,d.node&&d.node.source){let r=d.node.rangeBy(d);this.line=r.start.line,this.column=r.start.column,this.endLine=r.end.line,this.endColumn=r.end.column}for(let r in d)this[r]=d[r]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}}return Nt=a,a.default=a,Nt}var Mt,Pn;function Ht(){if(Pn)return Mt;Pn=1;let a=Gn();class f{get content(){return this.css}constructor(d,r,h){this.processor=d,this.messages=[],this.root=r,this.opts=h,this.css="",this.map=void 0}toString(){return this.css}warn(d,r={}){r.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(r.plugin=this.lastPlugin.postcssPlugin);let h=new a(d,r);return this.messages.push(h),h}warnings(){return this.messages.filter(d=>d.type==="warning")}}return Mt=f,f.default=f,Mt}var Pt,Tn;function Zn(){if(Tn)return Pt;Tn=1;let a=ve(),f=$t(),m=Wn(),d=qt(),r=Ht(),h=Ie(),s=Ke(),{isClean:g,my:x}=Dt();const c={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},e={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},i={Once:!0,postcssPlugin:!0,prepare:!0},t=0;function n(w){return typeof w=="object"&&typeof w.then=="function"}function l(w){let y=!1,b=c[w.type];return w.type==="decl"?y=w.prop.toLowerCase():w.type==="atrule"&&(y=w.name.toLowerCase()),y&&w.append?[b,b+"-"+y,t,b+"Exit",b+"Exit-"+y]:y?[b,b+"-"+y,b+"Exit",b+"Exit-"+y]:w.append?[b,t,b+"Exit"]:[b,b+"Exit"]}function u(w){let y;return w.type==="document"?y=["Document",t,"DocumentExit"]:w.type==="root"?y=["Root",t,"RootExit"]:y=l(w),{eventIndex:0,events:y,iterator:0,node:w,visitorIndex:0,visitors:[]}}function p(w){return w[g]=!1,w.nodes&&w.nodes.forEach(y=>p(y)),w}let E={};class S{get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}constructor(y,b,k){this.stringified=!1,this.processed=!1;let R;if(typeof b=="object"&&b!==null&&(b.type==="root"||b.type==="document"))R=p(b);else if(b instanceof S||b instanceof r)R=p(b.root),b.map&&(typeof k.map>"u"&&(k.map={}),k.map.inline||(k.map.inline=!1),k.map.prev=b.map);else{let L=d;k.syntax&&(L=k.syntax.parse),k.parser&&(L=k.parser),L.parse&&(L=L.parse);try{R=L(b,k)}catch(U){this.processed=!0,this.error=U}R&&!R[x]&&a.rebuild(R)}this.result=new r(y,R,k),this.helpers={...E,postcss:E,result:this.result},this.plugins=this.processor.plugins.map(L=>typeof L=="object"&&L.prepare?{...L,...L.prepare(this.result)}:L)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(y){return this.async().catch(y)}finally(y){return this.async().then(y,y)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(y,b){let k=this.result.lastPlugin;try{b&&b.addToError(y),this.error=y,y.name==="CssSyntaxError"&&!y.plugin?(y.plugin=k.postcssPlugin,y.setMessage()):k.postcssVersion}catch(R){console&&console.error&&console.error(R)}return y}prepareVisitors(){this.listeners={};let y=(b,k,R)=>{this.listeners[k]||(this.listeners[k]=[]),this.listeners[k].push([b,R])};for(let b of this.plugins)if(typeof b=="object")for(let k in b){if(!e[k]&&/^[A-Z]/.test(k))throw new Error(`Unknown event ${k} in ${b.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!i[k])if(typeof b[k]=="object")for(let R in b[k])R==="*"?y(b,k,b[k][R]):y(b,k+"-"+R.toLowerCase(),b[k][R]);else typeof b[k]=="function"&&y(b,k,b[k])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let y=0;y<this.plugins.length;y++){let b=this.plugins[y],k=this.runOnRoot(b);if(n(k))try{await k}catch(R){throw this.handleError(R)}}if(this.prepareVisitors(),this.hasListener){let y=this.result.root;for(;!y[g];){y[g]=!0;let b=[u(y)];for(;b.length>0;){let k=this.visitTick(b);if(n(k))try{await k}catch(R){let L=b[b.length-1].node;throw this.handleError(R,L)}}}if(this.listeners.OnceExit)for(let[b,k]of this.listeners.OnceExit){this.result.lastPlugin=b;try{if(y.type==="document"){let R=y.nodes.map(L=>k(L,this.helpers));await Promise.all(R)}else await k(y,this.helpers)}catch(R){throw this.handleError(R)}}}return this.processed=!0,this.stringify()}runOnRoot(y){this.result.lastPlugin=y;try{if(typeof y=="object"&&y.Once){if(this.result.root.type==="document"){let b=this.result.root.nodes.map(k=>y.Once(k,this.helpers));return n(b[0])?Promise.all(b):b}return y.Once(this.result.root,this.helpers)}else if(typeof y=="function")return y(this.result.root,this.result)}catch(b){throw this.handleError(b)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let y=this.result.opts,b=s;y.syntax&&(b=y.syntax.stringify),y.stringifier&&(b=y.stringifier),b.stringify&&(b=b.stringify);let R=new m(b,this.result.root,this.result.opts).generate();return this.result.css=R[0],this.result.map=R[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let y of this.plugins){let b=this.runOnRoot(y);if(n(b))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let y=this.result.root;for(;!y[g];)y[g]=!0,this.walkSync(y);if(this.listeners.OnceExit)if(y.type==="document")for(let b of y.nodes)this.visitSync(this.listeners.OnceExit,b);else this.visitSync(this.listeners.OnceExit,y)}return this.result}then(y,b){return this.async().then(y,b)}toString(){return this.css}visitSync(y,b){for(let[k,R]of y){this.result.lastPlugin=k;let L;try{L=R(b,this.helpers)}catch(U){throw this.handleError(U,b.proxyOf)}if(b.type!=="root"&&b.type!=="document"&&!b.parent)return!0;if(n(L))throw this.getAsyncError()}}visitTick(y){let b=y[y.length-1],{node:k,visitors:R}=b;if(k.type!=="root"&&k.type!=="document"&&!k.parent){y.pop();return}if(R.length>0&&b.visitorIndex<R.length){let[U,T]=R[b.visitorIndex];b.visitorIndex+=1,b.visitorIndex===R.length&&(b.visitors=[],b.visitorIndex=0),this.result.lastPlugin=U;try{return T(k.toProxy(),this.helpers)}catch(J){throw this.handleError(J,k)}}if(b.iterator!==0){let U=b.iterator,T;for(;T=k.nodes[k.indexes[U]];)if(k.indexes[U]+=1,!T[g]){T[g]=!0,y.push(u(T));return}b.iterator=0,delete k.indexes[U]}let L=b.events;for(;b.eventIndex<L.length;){let U=L[b.eventIndex];if(b.eventIndex+=1,U===t){k.nodes&&k.nodes.length&&(k[g]=!0,b.iterator=k.getIterator());return}else if(this.listeners[U]){b.visitors=this.listeners[U];return}}y.pop()}walkSync(y){y[g]=!0;let b=l(y);for(let k of b)if(k===t)y.nodes&&y.each(R=>{R[g]||this.walkSync(R)});else{let R=this.listeners[k];if(R&&this.visitSync(R,y.toProxy()))return}}warnings(){return this.sync().warnings()}}return S.registerPostcss=w=>{E=w},Pt=S,S.default=S,h.registerLazyResult(S),f.registerLazyResult(S),Pt}var Tt,In;function fi(){if(In)return Tt;In=1;let a=Wn(),f=qt();const m=Ht();let d=Ke();class r{get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let s,g=f;try{s=g(this._css,this._opts)}catch(x){this.error=x}if(this.error)throw this.error;return this._root=s,s}get[Symbol.toStringTag](){return"NoWorkResult"}constructor(s,g,x){g=g.toString(),this.stringified=!1,this._processor=s,this._css=g,this._opts=x,this._map=void 0;let c,e=d;this.result=new m(this._processor,c,this._opts),this.result.css=g;let i=this;Object.defineProperty(this.result,"root",{get(){return i.root}});let t=new a(e,c,this._opts,g);if(t.isMap()){let[n,l]=t.generate();n&&(this.result.css=n),l&&(this.result.map=l)}else t.clearAnnotation(),this.result.css=t.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(s){return this.async().catch(s)}finally(s){return this.async().then(s,s)}sync(){if(this.error)throw this.error;return this.result}then(s,g){return this.async().then(s,g)}toString(){return this._css}warnings(){return[]}}return Tt=r,r.default=r,Tt}var It,Ln;function di(){if(Ln)return It;Ln=1;let a=$t(),f=Zn(),m=fi(),d=Ie();class r{constructor(s=[]){this.version="8.5.6",this.plugins=this.normalize(s)}normalize(s){let g=[];for(let x of s)if(x.postcss===!0?x=x():x.postcss&&(x=x.postcss),typeof x=="object"&&Array.isArray(x.plugins))g=g.concat(x.plugins);else if(typeof x=="object"&&x.postcssPlugin)g.push(x);else if(typeof x=="function")g.push(x);else if(!(typeof x=="object"&&(x.parse||x.stringify)))throw new Error(x+" is not a PostCSS plugin");return g}process(s,g={}){return!this.plugins.length&&!g.parser&&!g.stringifier&&!g.syntax?new m(this,s,g):new f(this,s,g)}use(s){return this.plugins=this.plugins.concat(this.normalize([s])),this}}return It=r,r.default=r,d.registerProcessor(r),a.registerProcessor(r),It}var Lt,jn;function pi(){if(jn)return Lt;jn=1;var a={};let f=Ut(),m=Ve(),d=ve(),r=Bt(),h=Xe(),s=$t(),g=ci(),x=Qe(),c=Zn(),e=Hn(),i=Je(),t=qt(),n=di(),l=Ht(),u=Ie(),p=Ft(),E=Ke(),S=Gn();function w(...y){return y.length===1&&Array.isArray(y[0])&&(y=y[0]),new n(y)}return w.plugin=function(b,k){let R=!1;function L(...T){console&&console.warn&&!R&&(R=!0,console.warn(b+`: postcss.plugin was deprecated. Migration guide:
210
+ `)&&(t=`\r
211
+ `),this.css+=t+"/*# sourceMappingURL="+n+" */"}applyPrevMaps(){for(let n of this.previous()){let t=this.toUrl(this.path(n.file)),c=n.root||a(n.file),u;this.mapOpts.sourcesContent===!1?(u=new r(n.text),u.sourcesContent&&(u.sourcesContent=null)):u=n.consumer(),this.map.applySourceMap(u,t,this.toUrl(this.path(c)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let n;for(let t=this.root.nodes.length-1;t>=0;t--)n=this.root.nodes[t],n.type==="comment"&&n.text.startsWith("# sourceMappingURL=")&&this.root.removeChild(t)}else this.css&&(this.css=this.css.replace(/\n*\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),l&&x&&this.isMap())return this.generateMap();{let n="";return this.stringify(this.root,t=>{n+=t}),[n]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let n=this.previous()[0].consumer();n.file=this.outputFile(),this.map=h.fromSourceMap(n,{ignoreInvalidMapping:!0})}else this.map=new h({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new h({file:this.outputFile(),ignoreInvalidMapping:!0});let n=1,t=1,c="<no source>",u={generated:{column:0,line:0},original:{column:0,line:0},source:""},g,E;this.stringify(this.root,(S,w,y)=>{if(this.css+=S,w&&y!=="end"&&(u.generated.line=n,u.generated.column=t-1,w.source&&w.source.start?(u.source=this.sourcePath(w),u.original.line=w.source.start.line,u.original.column=w.source.start.column-1,this.map.addMapping(u)):(u.source=c,u.original.line=1,u.original.column=0,this.map.addMapping(u))),E=S.match(/\n/g),E?(n+=E.length,g=S.lastIndexOf(`
212
+ `),t=S.length-g):t+=S.length,w&&y!=="start"){let b=w.parent||{raws:{}};(!(w.type==="decl"||w.type==="atrule"&&!w.nodes)||w!==b.last||b.raws.semicolon)&&(w.source&&w.source.end?(u.source=this.sourcePath(w),u.original.line=w.source.end.line,u.original.column=w.source.end.column-1,u.generated.line=n,u.generated.column=t-2,this.map.addMapping(u)):(u.source=c,u.original.line=1,u.original.column=0,u.generated.line=n,u.generated.column=t-1,this.map.addMapping(u)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(n=>n.annotation):!0}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let n=this.mapOpts.annotation;return typeof n<"u"&&n!==!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(n=>n.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(n){if(this.mapOpts.absolute||n.charCodeAt(0)===60||/^\w+:\/\//.test(n))return n;let t=this.memoizedPaths.get(n);if(t)return t;let c=this.opts.to?a(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(c=a(m(c,this.mapOpts.annotation)));let u=f(c,n);return this.memoizedPaths.set(n,u),u}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(n=>{if(n.source&&n.source.input.map){let t=n.source.input.map;this.previousMaps.includes(t)||this.previousMaps.push(t)}});else{let n=new p(this.originalCSS,this.opts);n.map&&this.previousMaps.push(n.map)}return this.previousMaps}setSourcesContent(){let n={};if(this.root)this.root.walk(t=>{if(t.source){let c=t.source.input.from;if(c&&!n[c]){n[c]=!0;let u=this.usesFileUrls?this.toFileUrl(c):this.toUrl(this.path(c));this.map.setSourceContent(u,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(n){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(n.source.input.from):this.toUrl(this.path(n.source.input.from))}toBase64(n){return Buffer?Buffer.from(n).toString("base64"):window.btoa(unescape(encodeURIComponent(n)))}toFileUrl(n){let t=this.memoizedFileURLs.get(n);if(t)return t;if(s){let c=s(n).toString();return this.memoizedFileURLs.set(n,c),c}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(n){let t=this.memoizedURLs.get(n);if(t)return t;d==="\\"&&(n=n.replace(/\\/g,"/"));let c=encodeURI(n).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(n,c),c}}return Ot=e,Ot}var Ct,An;function ui(){if(An)return Ct;An=1;const a=39,f=34,m=92,d=47,r=10,h=32,s=12,p=9,x=13,l=91,e=93,i=40,n=41,t=123,c=125,u=59,g=42,E=58,S=64,w=/[\t\n\f\r "#'()/;[\\\]{}]/g,y=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,b=/.[\r\n"'(/\\]/,k=/[\da-f]/i;return Ct=function(L,U={}){let T=L.css.valueOf(),J=U.ignoreErrors,q,be,ae,N,Ee,W,Q,ie,se,de,ye=T.length,z=0,Ce=[],Se=[];function et(){return z}function Ae(pe){throw L.error("Unclosed "+pe,z)}function tt(){return Se.length===0&&z>=ye}function ke(pe){if(Se.length)return Se.pop();if(z>=ye)return;let Re=pe?pe.ignoreUnclosed:!1;switch(q=T.charCodeAt(z),q){case r:case h:case p:case x:case s:{N=z;do N+=1,q=T.charCodeAt(N);while(q===h||q===r||q===p||q===x||q===s);W=["space",T.slice(z,N)],z=N-1;break}case l:case e:case t:case c:case E:case u:case n:{let Le=String.fromCharCode(q);W=[Le,Le,z];break}case i:{if(de=Ce.length?Ce.pop()[1]:"",se=T.charCodeAt(z+1),de==="url"&&se!==a&&se!==f&&se!==h&&se!==r&&se!==p&&se!==s&&se!==x){N=z;do{if(Q=!1,N=T.indexOf(")",N+1),N===-1)if(J||Re){N=z;break}else Ae("bracket");for(ie=N;T.charCodeAt(ie-1)===m;)ie-=1,Q=!Q}while(Q);W=["brackets",T.slice(z,N+1),z,N],z=N}else N=T.indexOf(")",z+1),be=T.slice(z,N+1),N===-1||b.test(be)?W=["(","(",z]:(W=["brackets",be,z,N],z=N);break}case a:case f:{Ee=q===a?"'":'"',N=z;do{if(Q=!1,N=T.indexOf(Ee,N+1),N===-1)if(J||Re){N=z+1;break}else Ae("string");for(ie=N;T.charCodeAt(ie-1)===m;)ie-=1,Q=!Q}while(Q);W=["string",T.slice(z,N+1),z,N],z=N;break}case S:{w.lastIndex=z+1,w.test(T),w.lastIndex===0?N=T.length-1:N=w.lastIndex-2,W=["at-word",T.slice(z,N+1),z,N],z=N;break}case m:{for(N=z,ae=!0;T.charCodeAt(N+1)===m;)N+=1,ae=!ae;if(q=T.charCodeAt(N+1),ae&&q!==d&&q!==h&&q!==r&&q!==p&&q!==x&&q!==s&&(N+=1,k.test(T.charAt(N)))){for(;k.test(T.charAt(N+1));)N+=1;T.charCodeAt(N+1)===h&&(N+=1)}W=["word",T.slice(z,N+1),z,N],z=N;break}default:{q===d&&T.charCodeAt(z+1)===g?(N=T.indexOf("*/",z+2)+1,N===0&&(J||Re?N=T.length:Ae("comment")),W=["comment",T.slice(z,N+1),z,N],z=N):(y.lastIndex=z+1,y.test(T),y.lastIndex===0?N=T.length-1:N=y.lastIndex-2,W=["word",T.slice(z,N+1),z,N],Ce.push(W),z=N);break}}return z++,W}function nt(pe){Se.push(pe)}return{back:nt,endOfFile:tt,nextToken:ke,position:et}},Ct}var At,Rn;function hi(){if(Rn)return At;Rn=1;let a=Ut(),f=Ve(),m=Xe(),d=Ie(),r=Ft(),h=ui();const s={empty:!0,space:!0};function p(l){for(let e=l.length-1;e>=0;e--){let i=l[e],n=i[3]||i[2];if(n)return n}}class x{constructor(e){this.input=e,this.root=new d,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}atrule(e){let i=new a;i.name=e[1].slice(1),i.name===""&&this.unnamedAtrule(i,e),this.init(i,e[2]);let n,t,c,u=!1,g=!1,E=[],S=[];for(;!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),n=e[0],n==="("||n==="["?S.push(n==="("?")":"]"):n==="{"&&S.length>0?S.push("}"):n===S[S.length-1]&&S.pop(),S.length===0)if(n===";"){i.source.end=this.getPosition(e[2]),i.source.end.offset++,this.semicolon=!0;break}else if(n==="{"){g=!0;break}else if(n==="}"){if(E.length>0){for(c=E.length-1,t=E[c];t&&t[0]==="space";)t=E[--c];t&&(i.source.end=this.getPosition(t[3]||t[2]),i.source.end.offset++)}this.end(e);break}else E.push(e);else E.push(e);if(this.tokenizer.endOfFile()){u=!0;break}}i.raws.between=this.spacesAndCommentsFromEnd(E),E.length?(i.raws.afterName=this.spacesAndCommentsFromStart(E),this.raw(i,"params",E),u&&(e=E[E.length-1],i.source.end=this.getPosition(e[3]||e[2]),i.source.end.offset++,this.spaces=i.raws.between,i.raws.between="")):(i.raws.afterName="",i.params=""),g&&(i.nodes=[],this.current=i)}checkMissedSemicolon(e){let i=this.colon(e);if(i===!1)return;let n=0,t;for(let c=i-1;c>=0&&(t=e[c],!(t[0]!=="space"&&(n+=1,n===2)));c--);throw this.input.error("Missed semicolon",t[0]==="word"?t[3]+1:t[2])}colon(e){let i=0,n,t,c;for(let[u,g]of e.entries()){if(t=g,c=t[0],c==="("&&(i+=1),c===")"&&(i-=1),i===0&&c===":")if(!n)this.doubleColon(t);else{if(n[0]==="word"&&n[1]==="progid")continue;return u}n=t}return!1}comment(e){let i=new f;this.init(i,e[2]),i.source.end=this.getPosition(e[3]||e[2]),i.source.end.offset++;let n=e[1].slice(2,-2);if(/^\s*$/.test(n))i.text="",i.raws.left=n,i.raws.right="";else{let t=n.match(/^(\s*)([^]*\S)(\s*)$/);i.text=t[2],i.raws.left=t[1],i.raws.right=t[3]}}createTokenizer(){this.tokenizer=h(this.input)}decl(e,i){let n=new m;this.init(n,e[0][2]);let t=e[e.length-1];for(t[0]===";"&&(this.semicolon=!0,e.pop()),n.source.end=this.getPosition(t[3]||t[2]||p(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 S=e[0][0];if(S===":"||S==="space"||S==="comment")break;n.prop+=e.shift()[1]}n.raws.between="";let c;for(;e.length;)if(c=e.shift(),c[0]===":"){n.raws.between+=c[1];break}else c[0]==="word"&&/\w/.test(c[1])&&this.unknownWord([c]),n.raws.between+=c[1];(n.prop[0]==="_"||n.prop[0]==="*")&&(n.raws.before+=n.prop[0],n.prop=n.prop.slice(1));let u=[],g;for(;e.length&&(g=e[0][0],!(g!=="space"&&g!=="comment"));)u.push(e.shift());this.precheckMissedSemicolon(e);for(let S=e.length-1;S>=0;S--){if(c=e[S],c[1].toLowerCase()==="!important"){n.important=!0;let w=this.stringFrom(e,S);w=this.spacesFromEnd(e)+w,w!==" !important"&&(n.raws.important=w);break}else if(c[1].toLowerCase()==="important"){let w=e.slice(0),y="";for(let b=S;b>0;b--){let k=w[b][0];if(y.trim().startsWith("!")&&k!=="space")break;y=w.pop()[1]+y}y.trim().startsWith("!")&&(n.important=!0,n.raws.important=y,e=w)}if(c[0]!=="space"&&c[0]!=="comment")break}e.some(S=>S[0]!=="space"&&S[0]!=="comment")&&(n.raws.between+=u.map(S=>S[1]).join(""),u=[]),this.raw(n,"value",u.concat(e),i),n.value.includes(":")&&!i&&this.checkMissedSemicolon(e)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){let i=new r;this.init(i,e[2]),i.selector="",i.raws.between="",this.current=i}end(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(e){if(this.spaces+=e[1],this.current.nodes){let i=this.current.nodes[this.current.nodes.length-1];i&&i.type==="rule"&&!i.raws.ownSemicolon&&(i.raws.ownSemicolon=this.spaces,this.spaces="",i.source.end=this.getPosition(e[2]),i.source.end.offset+=i.raws.ownSemicolon.length)}}getPosition(e){let i=this.input.fromOffset(e);return{column:i.col,line:i.line,offset:e}}init(e,i){this.current.push(e),e.source={input:this.input,start:this.getPosition(i)},e.raws.before=this.spaces,this.spaces="",e.type!=="comment"&&(this.semicolon=!1)}other(e){let i=!1,n=null,t=!1,c=null,u=[],g=e[1].startsWith("--"),E=[],S=e;for(;S;){if(n=S[0],E.push(S),n==="("||n==="[")c||(c=S),u.push(n==="("?")":"]");else if(g&&t&&n==="{")c||(c=S),u.push("}");else if(u.length===0)if(n===";")if(t){this.decl(E,g);return}else break;else if(n==="{"){this.rule(E);return}else if(n==="}"){this.tokenizer.back(E.pop()),i=!0;break}else n===":"&&(t=!0);else n===u[u.length-1]&&(u.pop(),u.length===0&&(c=null));S=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(i=!0),u.length>0&&this.unclosedBracket(c),i&&t){if(!g)for(;E.length&&(S=E[E.length-1][0],!(S!=="space"&&S!=="comment"));)this.tokenizer.back(E.pop());this.decl(E,g)}else this.unknownWord(E)}parse(){let e;for(;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e);break}this.endFile()}precheckMissedSemicolon(){}raw(e,i,n,t){let c,u,g=n.length,E="",S=!0,w,y;for(let b=0;b<g;b+=1)c=n[b],u=c[0],u==="space"&&b===g-1&&!t?S=!1:u==="comment"?(y=n[b-1]?n[b-1][0]:"empty",w=n[b+1]?n[b+1][0]:"empty",!s[y]&&!s[w]?E.slice(-1)===","?S=!1:E+=c[1]:S=!1):E+=c[1];if(!S){let b=n.reduce((k,A)=>k+A[1],"");e.raws[i]={raw:b,value:E}}e[i]=E}rule(e){e.pop();let i=new r;this.init(i,e[0][2]),i.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(i,"selector",e),this.current=i}spacesAndCommentsFromEnd(e){let i,n="";for(;e.length&&(i=e[e.length-1][0],!(i!=="space"&&i!=="comment"));)n=e.pop()[1]+n;return n}spacesAndCommentsFromStart(e){let i,n="";for(;e.length&&(i=e[0][0],!(i!=="space"&&i!=="comment"));)n+=e.shift()[1];return n}spacesFromEnd(e){let i,n="";for(;e.length&&(i=e[e.length-1][0],i==="space");)n=e.pop()[1]+n;return n}stringFrom(e,i){let n="";for(let t=i;t<e.length;t++)n+=e[t][1];return e.splice(i,e.length-i),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 "+e[0][1],{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})}unnamedAtrule(e,i){throw this.input.error("At-rule without name",{offset:i[2]},{offset:i[2]+i[1].length})}}return At=x,At}var Rt,Nn;function qt(){if(Nn)return Rt;Nn=1;let a=ve(),f=Qe(),m=hi();function d(r,h){let s=new f(r,h),p=new m(s);try{p.parse()}catch(x){throw x}return p.root}return Rt=d,d.default=d,a.registerParse(d),Rt}var Nt,Mn;function Gn(){if(Mn)return Nt;Mn=1;class a{constructor(m,d={}){if(this.type="warning",this.text=m,d.node&&d.node.source){let r=d.node.rangeBy(d);this.line=r.start.line,this.column=r.start.column,this.endLine=r.end.line,this.endColumn=r.end.column}for(let r in d)this[r]=d[r]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}}return Nt=a,a.default=a,Nt}var Mt,Pn;function Ht(){if(Pn)return Mt;Pn=1;let a=Gn();class f{get content(){return this.css}constructor(d,r,h){this.processor=d,this.messages=[],this.root=r,this.opts=h,this.css="",this.map=void 0}toString(){return this.css}warn(d,r={}){r.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(r.plugin=this.lastPlugin.postcssPlugin);let h=new a(d,r);return this.messages.push(h),h}warnings(){return this.messages.filter(d=>d.type==="warning")}}return Mt=f,f.default=f,Mt}var Pt,Tn;function Zn(){if(Tn)return Pt;Tn=1;let a=ve(),f=$t(),m=Wn(),d=qt(),r=Ht(),h=Ie(),s=Ke(),{isClean:p,my:x}=Dt();const l={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},e={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},i={Once:!0,postcssPlugin:!0,prepare:!0},n=0;function t(w){return typeof w=="object"&&typeof w.then=="function"}function c(w){let y=!1,b=l[w.type];return w.type==="decl"?y=w.prop.toLowerCase():w.type==="atrule"&&(y=w.name.toLowerCase()),y&&w.append?[b,b+"-"+y,n,b+"Exit",b+"Exit-"+y]:y?[b,b+"-"+y,b+"Exit",b+"Exit-"+y]:w.append?[b,n,b+"Exit"]:[b,b+"Exit"]}function u(w){let y;return w.type==="document"?y=["Document",n,"DocumentExit"]:w.type==="root"?y=["Root",n,"RootExit"]:y=c(w),{eventIndex:0,events:y,iterator:0,node:w,visitorIndex:0,visitors:[]}}function g(w){return w[p]=!1,w.nodes&&w.nodes.forEach(y=>g(y)),w}let E={};class S{get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}constructor(y,b,k){this.stringified=!1,this.processed=!1;let A;if(typeof b=="object"&&b!==null&&(b.type==="root"||b.type==="document"))A=g(b);else if(b instanceof S||b instanceof r)A=g(b.root),b.map&&(typeof k.map>"u"&&(k.map={}),k.map.inline||(k.map.inline=!1),k.map.prev=b.map);else{let L=d;k.syntax&&(L=k.syntax.parse),k.parser&&(L=k.parser),L.parse&&(L=L.parse);try{A=L(b,k)}catch(U){this.processed=!0,this.error=U}A&&!A[x]&&a.rebuild(A)}this.result=new r(y,A,k),this.helpers={...E,postcss:E,result:this.result},this.plugins=this.processor.plugins.map(L=>typeof L=="object"&&L.prepare?{...L,...L.prepare(this.result)}:L)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(y){return this.async().catch(y)}finally(y){return this.async().then(y,y)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(y,b){let k=this.result.lastPlugin;try{b&&b.addToError(y),this.error=y,y.name==="CssSyntaxError"&&!y.plugin?(y.plugin=k.postcssPlugin,y.setMessage()):k.postcssVersion}catch(A){console&&console.error&&console.error(A)}return y}prepareVisitors(){this.listeners={};let y=(b,k,A)=>{this.listeners[k]||(this.listeners[k]=[]),this.listeners[k].push([b,A])};for(let b of this.plugins)if(typeof b=="object")for(let k in b){if(!e[k]&&/^[A-Z]/.test(k))throw new Error(`Unknown event ${k} in ${b.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!i[k])if(typeof b[k]=="object")for(let A in b[k])A==="*"?y(b,k,b[k][A]):y(b,k+"-"+A.toLowerCase(),b[k][A]);else typeof b[k]=="function"&&y(b,k,b[k])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let y=0;y<this.plugins.length;y++){let b=this.plugins[y],k=this.runOnRoot(b);if(t(k))try{await k}catch(A){throw this.handleError(A)}}if(this.prepareVisitors(),this.hasListener){let y=this.result.root;for(;!y[p];){y[p]=!0;let b=[u(y)];for(;b.length>0;){let k=this.visitTick(b);if(t(k))try{await k}catch(A){let L=b[b.length-1].node;throw this.handleError(A,L)}}}if(this.listeners.OnceExit)for(let[b,k]of this.listeners.OnceExit){this.result.lastPlugin=b;try{if(y.type==="document"){let A=y.nodes.map(L=>k(L,this.helpers));await Promise.all(A)}else await k(y,this.helpers)}catch(A){throw this.handleError(A)}}}return this.processed=!0,this.stringify()}runOnRoot(y){this.result.lastPlugin=y;try{if(typeof y=="object"&&y.Once){if(this.result.root.type==="document"){let b=this.result.root.nodes.map(k=>y.Once(k,this.helpers));return t(b[0])?Promise.all(b):b}return y.Once(this.result.root,this.helpers)}else if(typeof y=="function")return y(this.result.root,this.result)}catch(b){throw this.handleError(b)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let y=this.result.opts,b=s;y.syntax&&(b=y.syntax.stringify),y.stringifier&&(b=y.stringifier),b.stringify&&(b=b.stringify);let A=new m(b,this.result.root,this.result.opts).generate();return this.result.css=A[0],this.result.map=A[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let y of this.plugins){let b=this.runOnRoot(y);if(t(b))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let y=this.result.root;for(;!y[p];)y[p]=!0,this.walkSync(y);if(this.listeners.OnceExit)if(y.type==="document")for(let b of y.nodes)this.visitSync(this.listeners.OnceExit,b);else this.visitSync(this.listeners.OnceExit,y)}return this.result}then(y,b){return this.async().then(y,b)}toString(){return this.css}visitSync(y,b){for(let[k,A]of y){this.result.lastPlugin=k;let L;try{L=A(b,this.helpers)}catch(U){throw this.handleError(U,b.proxyOf)}if(b.type!=="root"&&b.type!=="document"&&!b.parent)return!0;if(t(L))throw this.getAsyncError()}}visitTick(y){let b=y[y.length-1],{node:k,visitors:A}=b;if(k.type!=="root"&&k.type!=="document"&&!k.parent){y.pop();return}if(A.length>0&&b.visitorIndex<A.length){let[U,T]=A[b.visitorIndex];b.visitorIndex+=1,b.visitorIndex===A.length&&(b.visitors=[],b.visitorIndex=0),this.result.lastPlugin=U;try{return T(k.toProxy(),this.helpers)}catch(J){throw this.handleError(J,k)}}if(b.iterator!==0){let U=b.iterator,T;for(;T=k.nodes[k.indexes[U]];)if(k.indexes[U]+=1,!T[p]){T[p]=!0,y.push(u(T));return}b.iterator=0,delete k.indexes[U]}let L=b.events;for(;b.eventIndex<L.length;){let U=L[b.eventIndex];if(b.eventIndex+=1,U===n){k.nodes&&k.nodes.length&&(k[p]=!0,b.iterator=k.getIterator());return}else if(this.listeners[U]){b.visitors=this.listeners[U];return}}y.pop()}walkSync(y){y[p]=!0;let b=c(y);for(let k of b)if(k===n)y.nodes&&y.each(A=>{A[p]||this.walkSync(A)});else{let A=this.listeners[k];if(A&&this.visitSync(A,y.toProxy()))return}}warnings(){return this.sync().warnings()}}return S.registerPostcss=w=>{E=w},Pt=S,S.default=S,h.registerLazyResult(S),f.registerLazyResult(S),Pt}var Tt,In;function fi(){if(In)return Tt;In=1;let a=Wn(),f=qt();const m=Ht();let d=Ke();class r{get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let s,p=f;try{s=p(this._css,this._opts)}catch(x){this.error=x}if(this.error)throw this.error;return this._root=s,s}get[Symbol.toStringTag](){return"NoWorkResult"}constructor(s,p,x){p=p.toString(),this.stringified=!1,this._processor=s,this._css=p,this._opts=x,this._map=void 0;let l,e=d;this.result=new m(this._processor,l,this._opts),this.result.css=p;let i=this;Object.defineProperty(this.result,"root",{get(){return i.root}});let n=new a(e,l,this._opts,p);if(n.isMap()){let[t,c]=n.generate();t&&(this.result.css=t),c&&(this.result.map=c)}else n.clearAnnotation(),this.result.css=n.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(s){return this.async().catch(s)}finally(s){return this.async().then(s,s)}sync(){if(this.error)throw this.error;return this.result}then(s,p){return this.async().then(s,p)}toString(){return this._css}warnings(){return[]}}return Tt=r,r.default=r,Tt}var It,Ln;function di(){if(Ln)return It;Ln=1;let a=$t(),f=Zn(),m=fi(),d=Ie();class r{constructor(s=[]){this.version="8.5.6",this.plugins=this.normalize(s)}normalize(s){let p=[];for(let x of s)if(x.postcss===!0?x=x():x.postcss&&(x=x.postcss),typeof x=="object"&&Array.isArray(x.plugins))p=p.concat(x.plugins);else if(typeof x=="object"&&x.postcssPlugin)p.push(x);else if(typeof x=="function")p.push(x);else if(!(typeof x=="object"&&(x.parse||x.stringify)))throw new Error(x+" is not a PostCSS plugin");return p}process(s,p={}){return!this.plugins.length&&!p.parser&&!p.stringifier&&!p.syntax?new m(this,s,p):new f(this,s,p)}use(s){return this.plugins=this.plugins.concat(this.normalize([s])),this}}return It=r,r.default=r,d.registerProcessor(r),a.registerProcessor(r),It}var Lt,jn;function pi(){if(jn)return Lt;jn=1;var a={};let f=Ut(),m=Ve(),d=ve(),r=Bt(),h=Xe(),s=$t(),p=ci(),x=Qe(),l=Zn(),e=Hn(),i=Je(),n=qt(),t=di(),c=Ht(),u=Ie(),g=Ft(),E=Ke(),S=Gn();function w(...y){return y.length===1&&Array.isArray(y[0])&&(y=y[0]),new t(y)}return w.plugin=function(b,k){let A=!1;function L(...T){console&&console.warn&&!A&&(A=!0,console.warn(b+`: postcss.plugin was deprecated. Migration guide:
212
213
  https://evilmartians.com/chronicles/postcss-8-plugin-migration`),a.LANG&&a.LANG.startsWith("cn")&&console.warn(b+`: 里面 postcss.plugin 被弃用. 迁移指南:
213
- https://www.w3ctech.com/topic/2226`));let J=k(...T);return J.postcssPlugin=b,J.postcssVersion=new n().version,J}let U;return Object.defineProperty(L,"postcss",{get(){return U||(U=L()),U}}),L.process=function(T,J,q){return w([L(q)]).process(T,J)},L},w.stringify=E,w.parse=t,w.fromJSON=g,w.list=e,w.comment=y=>new m(y),w.atRule=y=>new f(y),w.decl=y=>new h(y),w.rule=y=>new p(y),w.root=y=>new u(y),w.document=y=>new s(y),w.CssSyntaxError=r,w.Declaration=h,w.Container=d,w.Processor=n,w.Document=s,w.Comment=m,w.Warning=S,w.AtRule=f,w.Result=l,w.Input=x,w.Rule=p,w.Root=u,w.Node=i,c.registerPostcss(w),Lt=w,w.default=w,Lt}var gi=pi();const K=$n(gi);K.stringify;K.fromJSON;K.plugin;K.parse;K.list;K.document;K.comment;K.atRule;K.rule;K.decl;K.root;K.CssSyntaxError;K.Declaration;K.Container;K.Processor;K.Document;K.Comment;K.Warning;K.AtRule;K.Result;K.Input;K.Rule;K.Root;K.Node;var jt,zn;function mi(){if(zn)return jt;zn=1;const a=(d={})=>{const r=d.prefix,h=/\s+$/.test(r)?r:`${r} `,s=d.ignoreFiles?[].concat(d.ignoreFiles):[],g=d.includeFiles?[].concat(d.includeFiles):[];return{postcssPlugin:"postcss-prefix-selector",prepare(x){const c=x.root,e=c.source.input.file;if(!(s.length&&e&&f(e,s))&&!(g.length&&e&&!f(e,g)))return{Rule(i,{result:t}){const n=["keyframes","-webkit-keyframes","-moz-keyframes","-o-keyframes","-ms-keyframes"];i.parent&&n.includes(i.parent.name)||(i.selectors=i.selectors.map(l=>d.exclude&&m(l,d.exclude)?l:d.transform?d.transform(r,l,h+l,c.source.input.file,i):[":root","body","html"].some(u=>l.startsWith(u))?d.skipGlobalSelectors?l:l.replace(/(html\s+body|:root\s+body|html|:root|body)/gm,r):h+l))}}}}};function f(d,r){return r.some(h=>h instanceof RegExp?h.test(d):d.includes(h))}function m(d,r){return r.some(h=>h instanceof RegExp?h.test(d):d===h)}return a.postcss=!0,jt=a,jt}var bi=mi();const yi=$n(bi),wi="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}",xi="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 vi(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}var zt,Bn;function Ei(){if(Bn)return zt;Bn=1;function a(o){return o instanceof Map?o.clear=o.delete=o.set=function(){throw new Error("map is read-only")}:o instanceof Set&&(o.add=o.clear=o.delete=function(){throw new Error("set is read-only")}),Object.freeze(o),Object.getOwnPropertyNames(o).forEach(v=>{const C=o[v],D=typeof C;(D==="object"||D==="function")&&!Object.isFrozen(C)&&a(C)}),o}class f{constructor(v){v.data===void 0&&(v.data={}),this.data=v.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function m(o){return o.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")}function d(o,...v){const C=Object.create(null);for(const D in o)C[D]=o[D];return v.forEach(function(D){for(const V in D)C[V]=D[V]}),C}const r="</span>",h=o=>!!o.scope,s=(o,{prefix:v})=>{if(o.startsWith("language:"))return o.replace("language:","language-");if(o.includes(".")){const C=o.split(".");return[`${v}${C.shift()}`,...C.map((D,V)=>`${D}${"_".repeat(V+1)}`)].join(" ")}return`${v}${o}`};class g{constructor(v,C){this.buffer="",this.classPrefix=C.classPrefix,v.walk(this)}addText(v){this.buffer+=m(v)}openNode(v){if(!h(v))return;const C=s(v.scope,{prefix:this.classPrefix});this.span(C)}closeNode(v){h(v)&&(this.buffer+=r)}value(){return this.buffer}span(v){this.buffer+=`<span class="${v}">`}}const x=(o={})=>{const v={children:[]};return Object.assign(v,o),v};class c{constructor(){this.rootNode=x(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(v){this.top.children.push(v)}openNode(v){const C=x({scope:v});this.add(C),this.stack.push(C)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(v){return this.constructor._walk(v,this.rootNode)}static _walk(v,C){return typeof C=="string"?v.addText(C):C.children&&(v.openNode(C),C.children.forEach(D=>this._walk(v,D)),v.closeNode(C)),v}static _collapse(v){typeof v!="string"&&v.children&&(v.children.every(C=>typeof C=="string")?v.children=[v.children.join("")]:v.children.forEach(C=>{c._collapse(C)}))}}class e extends c{constructor(v){super(),this.options=v}addText(v){v!==""&&this.add(v)}startScope(v){this.openNode(v)}endScope(){this.closeNode()}__addSublanguage(v,C){const D=v.root;C&&(D.scope=`language:${C}`),this.add(D)}toHTML(){return new g(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function i(o){return o?typeof o=="string"?o:o.source:null}function t(o){return u("(?=",o,")")}function n(o){return u("(?:",o,")*")}function l(o){return u("(?:",o,")?")}function u(...o){return o.map(v=>i(v)).join("")}function p(o){const v=o[o.length-1];return typeof v=="object"&&v.constructor===Object?(o.splice(o.length-1,1),v):{}}function E(...o){return"("+(p(o).capture?"":"?:")+o.map(v=>i(v)).join("|")+")"}function S(o){return new RegExp(o.toString()+"|").exec("").length-1}function w(o,v){const C=o&&o.exec(v);return C&&C.index===0}const y=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function b(o,{joinWith:v}){let C=0;return o.map(D=>{C+=1;const V=C;let X=i(D),M="";for(;X.length>0;){const A=y.exec(X);if(!A){M+=X;break}M+=X.substring(0,A.index),X=X.substring(A.index+A[0].length),A[0][0]==="\\"&&A[1]?M+="\\"+String(Number(A[1])+V):(M+=A[0],A[0]==="("&&C++)}return M}).map(D=>`(${D})`).join(v)}const k=/\b\B/,R="[a-zA-Z]\\w*",L="[a-zA-Z_]\\w*",U="\\b\\d+(\\.\\d+)?",T="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",J="\\b(0b[01]+)",q="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",be=(o={})=>{const v=/^#![ ]*\//;return o.binary&&(o.begin=u(v,/.*\b/,o.binary,/\b.*/)),d({scope:"meta",begin:v,end:/$/,relevance:0,"on:begin":(C,D)=>{C.index!==0&&D.ignoreMatch()}},o)},ae={begin:"\\\\[\\s\\S]",relevance:0},N={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[ae]},Ee={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[ae]},W={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/},Q=function(o,v,C={}){const D=d({scope:"comment",begin:o,end:v,contains:[]},C);D.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 V=E("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 D.contains.push({begin:u(/[ ]+/,"(",V,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),D},ie=Q("//","$"),se=Q("/\\*","\\*/"),de=Q("#","$"),ye={scope:"number",begin:U,relevance:0},z={scope:"number",begin:T,relevance:0},Ce={scope:"number",begin:J,relevance:0},Se={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[ae,{begin:/\[/,end:/\]/,relevance:0,contains:[ae]}]},et={scope:"title",begin:R,relevance:0},Re={scope:"title",begin:L,relevance:0},tt={begin:"\\.\\s*"+L,relevance:0};var ke=Object.freeze({__proto__:null,APOS_STRING_MODE:N,BACKSLASH_ESCAPE:ae,BINARY_NUMBER_MODE:Ce,BINARY_NUMBER_RE:J,COMMENT:Q,C_BLOCK_COMMENT_MODE:se,C_LINE_COMMENT_MODE:ie,C_NUMBER_MODE:z,C_NUMBER_RE:T,END_SAME_AS_BEGIN:function(o){return Object.assign(o,{"on:begin":(v,C)=>{C.data._beginMatch=v[1]},"on:end":(v,C)=>{C.data._beginMatch!==v[1]&&C.ignoreMatch()}})},HASH_COMMENT_MODE:de,IDENT_RE:R,MATCH_NOTHING_RE:k,METHOD_GUARD:tt,NUMBER_MODE:ye,NUMBER_RE:U,PHRASAL_WORDS_MODE:W,QUOTE_STRING_MODE:Ee,REGEXP_MODE:Se,RE_STARTERS_RE:q,SHEBANG:be,TITLE_MODE:et,UNDERSCORE_IDENT_RE:L,UNDERSCORE_TITLE_MODE:Re});function nt(o,v){o.input[o.index-1]==="."&&v.ignoreMatch()}function pe(o,v){o.className!==void 0&&(o.scope=o.className,delete o.className)}function Ae(o,v){v&&o.beginKeywords&&(o.begin="\\b("+o.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",o.__beforeBegin=nt,o.keywords=o.keywords||o.beginKeywords,delete o.beginKeywords,o.relevance===void 0&&(o.relevance=0))}function Le(o,v){Array.isArray(o.illegal)&&(o.illegal=E(...o.illegal))}function nr(o,v){if(o.match){if(o.begin||o.end)throw new Error("begin & end are not supported with match");o.begin=o.match,delete o.match}}function rr(o,v){o.relevance===void 0&&(o.relevance=1)}const ir=(o,v)=>{if(!o.beforeMatch)return;if(o.starts)throw new Error("beforeMatch cannot be used with starts");const C=Object.assign({},o);Object.keys(o).forEach(D=>{delete o[D]}),o.keywords=C.keywords,o.begin=u(C.beforeMatch,t(C.begin)),o.starts={relevance:0,contains:[Object.assign(C,{endsParent:!0})]},o.relevance=0,delete C.beforeMatch},sr=["of","and","for","in","not","or","if","then","parent","list","value"],or="keyword";function Wt(o,v,C=or){const D=Object.create(null);return typeof o=="string"?V(C,o.split(" ")):Array.isArray(o)?V(C,o):Object.keys(o).forEach(function(X){Object.assign(D,Wt(o[X],v,X))}),D;function V(X,M){v&&(M=M.map(A=>A.toLowerCase())),M.forEach(function(A){const j=A.split("|");D[j[0]]=[X,ar(j[0],j[1])]})}}function ar(o,v){return v?Number(v):lr(o)?0:1}function lr(o){return sr.includes(o.toLowerCase())}const Gt={},we=o=>{console.error(o)},Zt=(o,...v)=>{console.log(`WARN: ${o}`,...v)},_e=(o,v)=>{Gt[`${o}/${v}`]||(console.log(`Deprecated as of ${o}. ${v}`),Gt[`${o}/${v}`]=!0)},je=new Error;function Kt(o,v,{key:C}){let D=0;const V=o[C],X={},M={};for(let A=1;A<=v.length;A++)M[A+D]=V[A],X[A+D]=!0,D+=S(v[A-1]);o[C]=M,o[C]._emit=X,o[C]._multi=!0}function cr(o){if(Array.isArray(o.begin)){if(o.skip||o.excludeBegin||o.returnBegin)throw we("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),je;if(typeof o.beginScope!="object"||o.beginScope===null)throw we("beginScope must be object"),je;Kt(o,o.begin,{key:"beginScope"}),o.begin=b(o.begin,{joinWith:""})}}function ur(o){if(Array.isArray(o.end)){if(o.skip||o.excludeEnd||o.returnEnd)throw we("skip, excludeEnd, returnEnd not compatible with endScope: {}"),je;if(typeof o.endScope!="object"||o.endScope===null)throw we("endScope must be object"),je;Kt(o,o.end,{key:"endScope"}),o.end=b(o.end,{joinWith:""})}}function hr(o){o.scope&&typeof o.scope=="object"&&o.scope!==null&&(o.beginScope=o.scope,delete o.scope)}function fr(o){hr(o),typeof o.beginScope=="string"&&(o.beginScope={_wrap:o.beginScope}),typeof o.endScope=="string"&&(o.endScope={_wrap:o.endScope}),cr(o),ur(o)}function dr(o){function v(M,A){return new RegExp(i(M),"m"+(o.case_insensitive?"i":"")+(o.unicodeRegex?"u":"")+(A?"g":""))}class C{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(A,j){j.position=this.position++,this.matchIndexes[this.matchAt]=j,this.regexes.push([j,A]),this.matchAt+=S(A)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const A=this.regexes.map(j=>j[1]);this.matcherRe=v(b(A,{joinWith:"|"}),!0),this.lastIndex=0}exec(A){this.matcherRe.lastIndex=this.lastIndex;const j=this.matcherRe.exec(A);if(!j)return null;const te=j.findIndex((Ne,it)=>it>0&&Ne!==void 0),Y=this.matchIndexes[te];return j.splice(0,te),Object.assign(j,Y)}}class D{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(A){if(this.multiRegexes[A])return this.multiRegexes[A];const j=new C;return this.rules.slice(A).forEach(([te,Y])=>j.addRule(te,Y)),j.compile(),this.multiRegexes[A]=j,j}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(A,j){this.rules.push([A,j]),j.type==="begin"&&this.count++}exec(A){const j=this.getMatcher(this.regexIndex);j.lastIndex=this.lastIndex;let te=j.exec(A);if(this.resumingScanAtSamePosition()&&!(te&&te.index===this.lastIndex)){const Y=this.getMatcher(0);Y.lastIndex=this.lastIndex+1,te=Y.exec(A)}return te&&(this.regexIndex+=te.position+1,this.regexIndex===this.count&&this.considerAll()),te}}function V(M){const A=new D;return M.contains.forEach(j=>A.addRule(j.begin,{rule:j,type:"begin"})),M.terminatorEnd&&A.addRule(M.terminatorEnd,{type:"end"}),M.illegal&&A.addRule(M.illegal,{type:"illegal"}),A}function X(M,A){const j=M;if(M.isCompiled)return j;[pe,nr,fr,ir].forEach(Y=>Y(M,A)),o.compilerExtensions.forEach(Y=>Y(M,A)),M.__beforeBegin=null,[Ae,Le,rr].forEach(Y=>Y(M,A)),M.isCompiled=!0;let te=null;return typeof M.keywords=="object"&&M.keywords.$pattern&&(M.keywords=Object.assign({},M.keywords),te=M.keywords.$pattern,delete M.keywords.$pattern),te=te||/\w+/,M.keywords&&(M.keywords=Wt(M.keywords,o.case_insensitive)),j.keywordPatternRe=v(te,!0),A&&(M.begin||(M.begin=/\B|\b/),j.beginRe=v(j.begin),!M.end&&!M.endsWithParent&&(M.end=/\B|\b/),M.end&&(j.endRe=v(j.end)),j.terminatorEnd=i(j.end)||"",M.endsWithParent&&A.terminatorEnd&&(j.terminatorEnd+=(M.end?"|":"")+A.terminatorEnd)),M.illegal&&(j.illegalRe=v(M.illegal)),M.contains||(M.contains=[]),M.contains=[].concat(...M.contains.map(function(Y){return pr(Y==="self"?M:Y)})),M.contains.forEach(function(Y){X(Y,j)}),M.starts&&X(M.starts,A),j.matcher=V(j),j}if(o.compilerExtensions||(o.compilerExtensions=[]),o.contains&&o.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return o.classNameAliases=d(o.classNameAliases||{}),X(o)}function Jt(o){return o?o.endsWithParent||Jt(o.starts):!1}function pr(o){return o.variants&&!o.cachedVariants&&(o.cachedVariants=o.variants.map(function(v){return d(o,{variants:null},v)})),o.cachedVariants?o.cachedVariants:Jt(o)?d(o,{starts:o.starts?d(o.starts):null}):Object.isFrozen(o)?d(o):o}var gr="11.11.1";class mr extends Error{constructor(v,C){super(v),this.name="HTMLInjectionError",this.html=C}}const rt=m,Vt=d,Xt=Symbol("nomatch"),br=7,Qt=function(o){const v=Object.create(null),C=Object.create(null),D=[];let V=!0;const X="Could not find the language '{}', did you forget to load/include a language module?",M={disableAutodetect:!0,name:"Plain text",contains:[]};let A={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:e};function j(_){return A.noHighlightRe.test(_)}function te(_){let I=_.className+" ";I+=_.parentNode?_.parentNode.className:"";const F=A.languageDetectRe.exec(I);if(F){const G=ge(F[1]);return G||(Zt(X.replace("{}",F[1])),Zt("Falling back to no-highlight mode for this block.",_)),G?F[1]:"no-highlight"}return I.split(/\s+/).find(G=>j(G)||ge(G))}function Y(_,I,F){let G="",ee="";typeof I=="object"?(G=_,F=I.ignoreIllegals,ee=I.language):(_e("10.7.0","highlight(lang, code, ...args) has been deprecated."),_e("10.7.0",`Please use highlight(code, options) instead.
214
- https://github.com/highlightjs/highlight.js/issues/2277`),ee=_,G=I),F===void 0&&(F=!0);const ce={code:G,language:ee};Be("before:highlight",ce);const me=ce.result?ce.result:Ne(ce.language,ce.code,F);return me.code=ce.code,Be("after:highlight",me),me}function Ne(_,I,F,G){const ee=Object.create(null);function ce(O,P){return O.keywords[P]}function me(){if(!B.keywords){ne.addText(Z);return}let O=0;B.keywordPatternRe.lastIndex=0;let P=B.keywordPatternRe.exec(Z),$="";for(;P;){$+=Z.substring(O,P.index);const H=he.case_insensitive?P[0].toLowerCase():P[0],re=ce(B,H);if(re){const[fe,Ir]=re;if(ne.addText($),$="",ee[H]=(ee[H]||0)+1,ee[H]<=br&&($e+=Ir),fe.startsWith("_"))$+=P[0];else{const Lr=he.classNameAliases[fe]||fe;ue(P[0],Lr)}}else $+=P[0];O=B.keywordPatternRe.lastIndex,P=B.keywordPatternRe.exec(Z)}$+=Z.substring(O),ne.addText($)}function De(){if(Z==="")return;let O=null;if(typeof B.subLanguage=="string"){if(!v[B.subLanguage]){ne.addText(Z);return}O=Ne(B.subLanguage,Z,!0,an[B.subLanguage]),an[B.subLanguage]=O._top}else O=st(Z,B.subLanguage.length?B.subLanguage:null);B.relevance>0&&($e+=O.relevance),ne.__addSublanguage(O._emitter,O.language)}function oe(){B.subLanguage!=null?De():me(),Z=""}function ue(O,P){O!==""&&(ne.startScope(P),ne.addText(O),ne.endScope())}function nn(O,P){let $=1;const H=P.length-1;for(;$<=H;){if(!O._emit[$]){$++;continue}const re=he.classNameAliases[O[$]]||O[$],fe=P[$];re?ue(fe,re):(Z=fe,me(),Z=""),$++}}function rn(O,P){return O.scope&&typeof O.scope=="string"&&ne.openNode(he.classNameAliases[O.scope]||O.scope),O.beginScope&&(O.beginScope._wrap?(ue(Z,he.classNameAliases[O.beginScope._wrap]||O.beginScope._wrap),Z=""):O.beginScope._multi&&(nn(O.beginScope,P),Z="")),B=Object.create(O,{parent:{value:B}}),B}function sn(O,P,$){let H=w(O.endRe,$);if(H){if(O["on:end"]){const re=new f(O);O["on:end"](P,re),re.isMatchIgnored&&(H=!1)}if(H){for(;O.endsParent&&O.parent;)O=O.parent;return O}}if(O.endsWithParent)return sn(O.parent,P,$)}function Ar(O){return B.matcher.regexIndex===0?(Z+=O[0],1):(ct=!0,0)}function Nr(O){const P=O[0],$=O.rule,H=new f($),re=[$.__beforeBegin,$["on:begin"]];for(const fe of re)if(fe&&(fe(O,H),H.isMatchIgnored))return Ar(P);return $.skip?Z+=P:($.excludeBegin&&(Z+=P),oe(),!$.returnBegin&&!$.excludeBegin&&(Z=P)),rn($,O),$.returnBegin?0:P.length}function Mr(O){const P=O[0],$=I.substring(O.index),H=sn(B,O,$);if(!H)return Xt;const re=B;B.endScope&&B.endScope._wrap?(oe(),ue(P,B.endScope._wrap)):B.endScope&&B.endScope._multi?(oe(),nn(B.endScope,O)):re.skip?Z+=P:(re.returnEnd||re.excludeEnd||(Z+=P),oe(),re.excludeEnd&&(Z=P));do B.scope&&ne.closeNode(),!B.skip&&!B.subLanguage&&($e+=B.relevance),B=B.parent;while(B!==H.parent);return H.starts&&rn(H.starts,O),re.returnEnd?0:P.length}function Pr(){const O=[];for(let P=B;P!==he;P=P.parent)P.scope&&O.unshift(P.scope);O.forEach(P=>ne.openNode(P))}let Ue={};function on(O,P){const $=P&&P[0];if(Z+=O,$==null)return oe(),0;if(Ue.type==="begin"&&P.type==="end"&&Ue.index===P.index&&$===""){if(Z+=I.slice(P.index,P.index+1),!V){const H=new Error(`0 width match regex (${_})`);throw H.languageName=_,H.badRule=Ue.rule,H}return 1}if(Ue=P,P.type==="begin")return Nr(P);if(P.type==="illegal"&&!F){const H=new Error('Illegal lexeme "'+$+'" for mode "'+(B.scope||"<unnamed>")+'"');throw H.mode=B,H}else if(P.type==="end"){const H=Mr(P);if(H!==Xt)return H}if(P.type==="illegal"&&$==="")return Z+=`
215
- `,1;if(lt>1e5&&lt>P.index*3)throw new Error("potential infinite loop, way more iterations than matches");return Z+=$,$.length}const he=ge(_);if(!he)throw we(X.replace("{}",_)),new Error('Unknown language: "'+_+'"');const Tr=dr(he);let at="",B=G||Tr;const an={},ne=new A.__emitter(A);Pr();let Z="",$e=0,xe=0,lt=0,ct=!1;try{if(he.__emitTokens)he.__emitTokens(I,ne);else{for(B.matcher.considerAll();;){lt++,ct?ct=!1:B.matcher.considerAll(),B.matcher.lastIndex=xe;const O=B.matcher.exec(I);if(!O)break;const P=I.substring(xe,O.index),$=on(P,O);xe=O.index+$}on(I.substring(xe))}return ne.finalize(),at=ne.toHTML(),{language:_,value:at,relevance:$e,illegal:!1,_emitter:ne,_top:B}}catch(O){if(O.message&&O.message.includes("Illegal"))return{language:_,value:rt(I),illegal:!0,relevance:0,_illegalBy:{message:O.message,index:xe,context:I.slice(xe-100,xe+100),mode:O.mode,resultSoFar:at},_emitter:ne};if(V)return{language:_,value:rt(I),illegal:!1,relevance:0,errorRaised:O,_emitter:ne,_top:B};throw O}}function it(_){const I={value:rt(_),illegal:!1,relevance:0,_top:M,_emitter:new A.__emitter(A)};return I._emitter.addText(_),I}function st(_,I){I=I||A.languages||Object.keys(v);const F=it(_),G=I.filter(ge).filter(tn).map(oe=>Ne(oe,_,!1));G.unshift(F);const ee=G.sort((oe,ue)=>{if(oe.relevance!==ue.relevance)return ue.relevance-oe.relevance;if(oe.language&&ue.language){if(ge(oe.language).supersetOf===ue.language)return 1;if(ge(ue.language).supersetOf===oe.language)return-1}return 0}),[ce,me]=ee,De=ce;return De.secondBest=me,De}function yr(_,I,F){const G=I&&C[I]||F;_.classList.add("hljs"),_.classList.add(`language-${G}`)}function ot(_){let I=null;const F=te(_);if(j(F))return;if(Be("before:highlightElement",{el:_,language:F}),_.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",_);return}if(_.children.length>0&&(A.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(_)),A.throwUnescapedHTML))throw new mr("One of your code blocks includes unescaped HTML.",_.innerHTML);I=_;const G=I.textContent,ee=F?Y(G,{language:F,ignoreIllegals:!0}):st(G);_.innerHTML=ee.value,_.dataset.highlighted="yes",yr(_,F,ee.language),_.result={language:ee.language,re:ee.relevance,relevance:ee.relevance},ee.secondBest&&(_.secondBest={language:ee.secondBest.language,relevance:ee.secondBest.relevance}),Be("after:highlightElement",{el:_,result:ee,text:G})}function wr(_){A=Vt(A,_)}const xr=()=>{ze(),_e("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function vr(){ze(),_e("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let Yt=!1;function ze(){function _(){ze()}if(document.readyState==="loading"){Yt||window.addEventListener("DOMContentLoaded",_,!1),Yt=!0;return}document.querySelectorAll(A.cssSelector).forEach(ot)}function Er(_,I){let F=null;try{F=I(o)}catch(G){if(we("Language definition for '{}' could not be registered.".replace("{}",_)),V)we(G);else throw G;F=M}F.name||(F.name=_),v[_]=F,F.rawDefinition=I.bind(null,o),F.aliases&&en(F.aliases,{languageName:_})}function Sr(_){delete v[_];for(const I of Object.keys(C))C[I]===_&&delete C[I]}function kr(){return Object.keys(v)}function ge(_){return _=(_||"").toLowerCase(),v[_]||v[C[_]]}function en(_,{languageName:I}){typeof _=="string"&&(_=[_]),_.forEach(F=>{C[F.toLowerCase()]=I})}function tn(_){const I=ge(_);return I&&!I.disableAutodetect}function _r(_){_["before:highlightBlock"]&&!_["before:highlightElement"]&&(_["before:highlightElement"]=I=>{_["before:highlightBlock"](Object.assign({block:I.el},I))}),_["after:highlightBlock"]&&!_["after:highlightElement"]&&(_["after:highlightElement"]=I=>{_["after:highlightBlock"](Object.assign({block:I.el},I))})}function Or(_){_r(_),D.push(_)}function Cr(_){const I=D.indexOf(_);I!==-1&&D.splice(I,1)}function Be(_,I){const F=_;D.forEach(function(G){G[F]&&G[F](I)})}function Rr(_){return _e("10.7.0","highlightBlock will be removed entirely in v12.0"),_e("10.7.0","Please use highlightElement now."),ot(_)}Object.assign(o,{highlight:Y,highlightAuto:st,highlightAll:ze,highlightElement:ot,highlightBlock:Rr,configure:wr,initHighlighting:xr,initHighlightingOnLoad:vr,registerLanguage:Er,unregisterLanguage:Sr,listLanguages:kr,getLanguage:ge,registerAliases:en,autoDetection:tn,inherit:Vt,addPlugin:Or,removePlugin:Cr}),o.debugMode=function(){V=!1},o.safeMode=function(){V=!0},o.versionString=gr,o.regex={concat:u,lookahead:t,either:E,optional:l,anyNumberOfTimes:n};for(const _ in ke)typeof ke[_]=="object"&&a(ke[_]);return Object.assign(o,ke),o},Oe=Qt({});return Oe.newInstance=()=>Qt({}),zt=Oe,Oe.HighlightJS=Oe,Oe.default=Oe,zt}var Si=Ei();const Ye=vi(Si),Ge="[A-Za-z$_][0-9A-Za-z$_]*",Kn=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],Jn=["true","false","null","undefined","NaN","Infinity"],Vn=["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"],Xn=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],Qn=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],Yn=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],er=[].concat(Qn,Vn,Xn);function ki(a){const f=a.regex,m=(W,{after:Q})=>{const ie="</"+W[0].slice(1);return W.input.indexOf(ie,Q)!==-1},d=Ge,r={begin:"<>",end:"</>"},h=/<[A-Za-z0-9\\._:-]+\s*\/>/,s={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(W,Q)=>{const ie=W[0].length+W.index,se=W.input[ie];if(se==="<"||se===","){Q.ignoreMatch();return}se===">"&&(m(W,{after:ie})||Q.ignoreMatch());let de;const ye=W.input.substring(ie);if(de=ye.match(/^\s*=/)){Q.ignoreMatch();return}if((de=ye.match(/^\s+extends\s+/))&&de.index===0){Q.ignoreMatch();return}}},g={$pattern:Ge,keyword:Kn,literal:Jn,built_in:er,"variable.language":Yn},x="[0-9](_?[0-9])*",c=`\\.(${x})`,e="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",i={className:"number",variants:[{begin:`(\\b(${e})((${c})|\\.)?|(${c}))[eE][+-]?(${x})\\b`},{begin:`\\b(${e})\\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},t={className:"subst",begin:"\\$\\{",end:"\\}",keywords:g,contains:[]},n={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[a.BACKSLASH_ESCAPE,t],subLanguage:"xml"}},l={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[a.BACKSLASH_ESCAPE,t],subLanguage:"css"}},u={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[a.BACKSLASH_ESCAPE,t],subLanguage:"graphql"}},p={className:"string",begin:"`",end:"`",contains:[a.BACKSLASH_ESCAPE,t]},E={className:"comment",variants:[a.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:d+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),a.C_BLOCK_COMMENT_MODE,a.C_LINE_COMMENT_MODE]},S=[a.APOS_STRING_MODE,a.QUOTE_STRING_MODE,n,l,u,p,{match:/\$\d+/},i];t.contains=S.concat({begin:/\{/,end:/\}/,keywords:g,contains:["self"].concat(S)});const w=[].concat(E,t.contains),y=w.concat([{begin:/(\s*)\(/,end:/\)/,keywords:g,contains:["self"].concat(w)}]),b={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:g,contains:y},k={variants:[{match:[/class/,/\s+/,d,/\s+/,/extends/,/\s+/,f.concat(d,"(",f.concat(/\./,d),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,d],scope:{1:"keyword",3:"title.class"}}]},R={relevance:0,match:f.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:{_:[...Vn,...Xn]}},L={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},U={variants:[{match:[/function/,/\s+/,d,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[b],illegal:/%/},T={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function J(W){return f.concat("(?!",W.join("|"),")")}const q={match:f.concat(/\b/,J([...Qn,"super","import"].map(W=>`${W}\\s*\\(`)),d,f.lookahead(/\s*\(/)),className:"title.function",relevance:0},be={begin:f.concat(/\./,f.lookahead(f.concat(d,/(?![0-9A-Za-z$_(])/))),end:d,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},ae={match:[/get|set/,/\s+/,d,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},b]},N="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+a.UNDERSCORE_IDENT_RE+")\\s*=>",Ee={match:[/const|var|let/,/\s+/,d,/\s*/,/=\s*/,/(async\s*)?/,f.lookahead(N)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[b]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:g,exports:{PARAMS_CONTAINS:y,CLASS_REFERENCE:R},illegal:/#(?![$_A-z])/,contains:[a.SHEBANG({label:"shebang",binary:"node",relevance:5}),L,a.APOS_STRING_MODE,a.QUOTE_STRING_MODE,n,l,u,p,E,{match:/\$\d+/},i,R,{scope:"attr",match:d+f.lookahead(":"),relevance:0},Ee,{begin:"("+a.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[E,a.REGEXP_MODE,{className:"function",begin:N,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:a.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:g,contains:y}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:r.begin,end:r.end},{match:h},{begin:s.begin,"on:begin":s.isTrulyOpeningTag,end:s.end}],subLanguage:"xml",contains:[{begin:s.begin,end:s.end,skip:!0,contains:["self"]}]}]},U,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+a.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[b,a.inherit(a.TITLE_MODE,{begin:d,className:"title.function"})]},{match:/\.\.\./,relevance:0},be,{match:"\\$"+d,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[b]},q,T,k,ae,{match:/\$[(.]/}]}}function _i(a){const f=a.regex,m=ki(a),d=Ge,r=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],h={begin:[/namespace/,/\s+/,a.IDENT_RE],beginScope:{1:"keyword",3:"title.class"}},s={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:r},contains:[m.exports.CLASS_REFERENCE]},g={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},x=["type","interface","public","private","protected","implements","declare","abstract","readonly","enum","override","satisfies"],c={$pattern:Ge,keyword:Kn.concat(x),literal:Jn,built_in:er.concat(r),"variable.language":Yn},e={className:"meta",begin:"@"+d},i=(u,p,E)=>{const S=u.contains.findIndex(w=>w.label===p);if(S===-1)throw new Error("can not find mode to replace");u.contains.splice(S,1,E)};Object.assign(m.keywords,c),m.exports.PARAMS_CONTAINS.push(e);const t=m.contains.find(u=>u.scope==="attr"),n=Object.assign({},t,{match:f.concat(d,f.lookahead(/\s*\?:/))});m.exports.PARAMS_CONTAINS.push([m.exports.CLASS_REFERENCE,t,n]),m.contains=m.contains.concat([e,h,s,n]),i(m,"shebang",a.SHEBANG()),i(m,"use_strict",g);const l=m.contains.find(u=>u.label==="func.def");return l.relevance=0,Object.assign(m,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),m}function Oi(a){const f=a.regex,m=f.concat(/[\p{L}_]/u,f.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),d=/[\p{L}0-9._:-]+/u,r={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},h={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},s=a.inherit(h,{begin:/\(/,end:/\)/}),g=a.inherit(a.APOS_STRING_MODE,{className:"string"}),x=a.inherit(a.QUOTE_STRING_MODE,{className:"string"}),c={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:d,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[r]},{begin:/'/,end:/'/,contains:[r]},{begin:/[^\s"'=<>`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,unicodeRegex:!0,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,relevance:10,contains:[h,x,g,s,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[h,s,x,g]}]}]},a.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},r,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[x]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[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:f.concat(/</,f.lookahead(f.concat(m,f.either(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:m,relevance:0,starts:c}]},{className:"tag",begin:f.concat(/<\//,f.lookahead(f.concat(m,/>/))),contains:[{className:"name",begin:m,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}const Ci=a=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:a.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:[a.APOS_STRING_MODE,a.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:a.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_-]*/}}),Ri=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],Ai=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],Ni=[...Ri,...Ai],Mi=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),Pi=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),Ti=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),Ii=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse();function Li(a){const f=a.regex,m=Ci(a),d={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},r="and or not only",h=/@-?\w[\w]*(-\w+)*/,s="[a-zA-Z-][a-zA-Z0-9_-]*",g=[a.APOS_STRING_MODE,a.QUOTE_STRING_MODE];return{name:"CSS",case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"},classNameAliases:{keyframePosition:"selector-tag"},contains:[m.BLOCK_COMMENT,d,m.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:"selector-class",begin:"\\."+s,relevance:0},m.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+Pi.join("|")+")"},{begin:":(:)?("+Ti.join("|")+")"}]},m.CSS_VARIABLE,{className:"attribute",begin:"\\b("+Ii.join("|")+")\\b"},{begin:/:/,end:/[;}{]/,contains:[m.BLOCK_COMMENT,m.HEXCOLOR,m.IMPORTANT,m.CSS_NUMBER_MODE,...g,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[...g,{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},m.FUNCTION_DISPATCH]},{begin:f.lookahead(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:h},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:r,attribute:Mi.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...g,m.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+Ni.join("|")+")\\b"}]}}const tr=document.createElement("style");tr.innerText=[wi,xi].join(`
216
- `);document.head.appendChild(tr);Ye.registerLanguage("typescript",_i);Ye.registerLanguage("html",Oi);Ye.registerLanguage("css",Li);function ji(...a){const f=document.createElement("div"),m=document.createElement("div");m.classList.add("tab-control");const d=document.createElement("div");return a.forEach(r=>{f.appendChild(r),r.addEventListener("click",()=>{a.forEach(h=>h.removeAttribute("selected")),r.setAttribute("selected",""),d.innerHTML="",d.appendChild(r.content),d.className=r.className,d.classList.add("tab-content")})}),m.appendChild(f),m.appendChild(d),d.classList.add("tab-content"),a[0].setAttribute("selected",""),d.appendChild(a[0].content),m}function Me(a,f){const m=document.createElement("div");return m.role="tab",m.tabIndex=0,m.innerText=a,m.content=f,f.tagName=="PRE"&&m.classList.add("code"),m}function Te(a,f){const m=document.createElement(a);return typeof f=="string"?m.innerHTML=f:f.forEach(d=>{m.appendChild(d)}),m}async function zi(a,f,m){const d=f.mainContent,r=Te("div",d);r.id=`example-preview-${m}`;const h=typeof f.css=="string"?void 0:f.css?.label,s=typeof f.css=="string"?f.css:f.css?.content,g=ji(Me("Preview",r),Me("HTML",He("html",d)),...s?[Me(h??"CSS",He("css",s))]:[],...f.initializer&&f.initializer.content?[Me(f.initializer.label??"TS",He("typescript",f.initializer.content))]:[],...(f.additionalSources||[]).map(c=>Me(c.label,He(c.language,c.content))));f.description&&a.appendChild(Te("div",f.description));const x=Te("div",[g]);x.classList.add("example"),a.appendChild(x),s&&Bi(`#${r.id}`,s),f.initializer?.initialize&&await f.initializer.initialize(r)}function He(a,f){let m=f.split(/\r?\n/).map(d=>{const r=d.indexOf("///");if(r>-1){const h=d.substring(r+3).trimStart();return h?d.replace(/^(\s*)([^\s].*)$/,`$1${h}`):void 0}return d}).filter(d=>typeof d<"u").join(`
214
+ https://www.w3ctech.com/topic/2226`));let J=k(...T);return J.postcssPlugin=b,J.postcssVersion=new t().version,J}let U;return Object.defineProperty(L,"postcss",{get(){return U||(U=L()),U}}),L.process=function(T,J,q){return w([L(q)]).process(T,J)},L},w.stringify=E,w.parse=n,w.fromJSON=p,w.list=e,w.comment=y=>new m(y),w.atRule=y=>new f(y),w.decl=y=>new h(y),w.rule=y=>new g(y),w.root=y=>new u(y),w.document=y=>new s(y),w.CssSyntaxError=r,w.Declaration=h,w.Container=d,w.Processor=t,w.Document=s,w.Comment=m,w.Warning=S,w.AtRule=f,w.Result=c,w.Input=x,w.Rule=g,w.Root=u,w.Node=i,l.registerPostcss(w),Lt=w,w.default=w,Lt}var gi=pi();const K=$n(gi);K.stringify;K.fromJSON;K.plugin;K.parse;K.list;K.document;K.comment;K.atRule;K.rule;K.decl;K.root;K.CssSyntaxError;K.Declaration;K.Container;K.Processor;K.Document;K.Comment;K.Warning;K.AtRule;K.Result;K.Input;K.Rule;K.Root;K.Node;var jt,zn;function mi(){if(zn)return jt;zn=1;const a=(d={})=>{const r=d.prefix,h=/\s+$/.test(r)?r:`${r} `,s=d.ignoreFiles?[].concat(d.ignoreFiles):[],p=d.includeFiles?[].concat(d.includeFiles):[];return{postcssPlugin:"postcss-prefix-selector",prepare(x){const l=x.root,e=l.source.input.file;if(!(s.length&&e&&f(e,s))&&!(p.length&&e&&!f(e,p)))return{Rule(i,{result:n}){const t=["keyframes","-webkit-keyframes","-moz-keyframes","-o-keyframes","-ms-keyframes"];i.parent&&t.includes(i.parent.name)||(i.selectors=i.selectors.map(c=>d.exclude&&m(c,d.exclude)?c:d.transform?d.transform(r,c,h+c,l.source.input.file,i):[":root","body","html"].some(u=>c.startsWith(u))?d.skipGlobalSelectors?c:c.replace(/(html\s+body|:root\s+body|html|:root|body)/gm,r):h+c))}}}}};function f(d,r){return r.some(h=>h instanceof RegExp?h.test(d):d.includes(h))}function m(d,r){return r.some(h=>h instanceof RegExp?h.test(d):d===h)}return a.postcss=!0,jt=a,jt}var bi=mi();const yi=$n(bi),wi="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}",xi="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 vi(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}var zt,Bn;function Ei(){if(Bn)return zt;Bn=1;function a(o){return o instanceof Map?o.clear=o.delete=o.set=function(){throw new Error("map is read-only")}:o instanceof Set&&(o.add=o.clear=o.delete=function(){throw new Error("set is read-only")}),Object.freeze(o),Object.getOwnPropertyNames(o).forEach(v=>{const C=o[v],D=typeof C;(D==="object"||D==="function")&&!Object.isFrozen(C)&&a(C)}),o}class f{constructor(v){v.data===void 0&&(v.data={}),this.data=v.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function m(o){return o.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")}function d(o,...v){const C=Object.create(null);for(const D in o)C[D]=o[D];return v.forEach(function(D){for(const V in D)C[V]=D[V]}),C}const r="</span>",h=o=>!!o.scope,s=(o,{prefix:v})=>{if(o.startsWith("language:"))return o.replace("language:","language-");if(o.includes(".")){const C=o.split(".");return[`${v}${C.shift()}`,...C.map((D,V)=>`${D}${"_".repeat(V+1)}`)].join(" ")}return`${v}${o}`};class p{constructor(v,C){this.buffer="",this.classPrefix=C.classPrefix,v.walk(this)}addText(v){this.buffer+=m(v)}openNode(v){if(!h(v))return;const C=s(v.scope,{prefix:this.classPrefix});this.span(C)}closeNode(v){h(v)&&(this.buffer+=r)}value(){return this.buffer}span(v){this.buffer+=`<span class="${v}">`}}const x=(o={})=>{const v={children:[]};return Object.assign(v,o),v};class l{constructor(){this.rootNode=x(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(v){this.top.children.push(v)}openNode(v){const C=x({scope:v});this.add(C),this.stack.push(C)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(v){return this.constructor._walk(v,this.rootNode)}static _walk(v,C){return typeof C=="string"?v.addText(C):C.children&&(v.openNode(C),C.children.forEach(D=>this._walk(v,D)),v.closeNode(C)),v}static _collapse(v){typeof v!="string"&&v.children&&(v.children.every(C=>typeof C=="string")?v.children=[v.children.join("")]:v.children.forEach(C=>{l._collapse(C)}))}}class e extends l{constructor(v){super(),this.options=v}addText(v){v!==""&&this.add(v)}startScope(v){this.openNode(v)}endScope(){this.closeNode()}__addSublanguage(v,C){const D=v.root;C&&(D.scope=`language:${C}`),this.add(D)}toHTML(){return new p(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function i(o){return o?typeof o=="string"?o:o.source:null}function n(o){return u("(?=",o,")")}function t(o){return u("(?:",o,")*")}function c(o){return u("(?:",o,")?")}function u(...o){return o.map(v=>i(v)).join("")}function g(o){const v=o[o.length-1];return typeof v=="object"&&v.constructor===Object?(o.splice(o.length-1,1),v):{}}function E(...o){return"("+(g(o).capture?"":"?:")+o.map(v=>i(v)).join("|")+")"}function S(o){return new RegExp(o.toString()+"|").exec("").length-1}function w(o,v){const C=o&&o.exec(v);return C&&C.index===0}const y=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function b(o,{joinWith:v}){let C=0;return o.map(D=>{C+=1;const V=C;let X=i(D),M="";for(;X.length>0;){const R=y.exec(X);if(!R){M+=X;break}M+=X.substring(0,R.index),X=X.substring(R.index+R[0].length),R[0][0]==="\\"&&R[1]?M+="\\"+String(Number(R[1])+V):(M+=R[0],R[0]==="("&&C++)}return M}).map(D=>`(${D})`).join(v)}const k=/\b\B/,A="[a-zA-Z]\\w*",L="[a-zA-Z_]\\w*",U="\\b\\d+(\\.\\d+)?",T="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",J="\\b(0b[01]+)",q="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",be=(o={})=>{const v=/^#![ ]*\//;return o.binary&&(o.begin=u(v,/.*\b/,o.binary,/\b.*/)),d({scope:"meta",begin:v,end:/$/,relevance:0,"on:begin":(C,D)=>{C.index!==0&&D.ignoreMatch()}},o)},ae={begin:"\\\\[\\s\\S]",relevance:0},N={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[ae]},Ee={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[ae]},W={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/},Q=function(o,v,C={}){const D=d({scope:"comment",begin:o,end:v,contains:[]},C);D.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 V=E("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 D.contains.push({begin:u(/[ ]+/,"(",V,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),D},ie=Q("//","$"),se=Q("/\\*","\\*/"),de=Q("#","$"),ye={scope:"number",begin:U,relevance:0},z={scope:"number",begin:T,relevance:0},Ce={scope:"number",begin:J,relevance:0},Se={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[ae,{begin:/\[/,end:/\]/,relevance:0,contains:[ae]}]},et={scope:"title",begin:A,relevance:0},Ae={scope:"title",begin:L,relevance:0},tt={begin:"\\.\\s*"+L,relevance:0};var ke=Object.freeze({__proto__:null,APOS_STRING_MODE:N,BACKSLASH_ESCAPE:ae,BINARY_NUMBER_MODE:Ce,BINARY_NUMBER_RE:J,COMMENT:Q,C_BLOCK_COMMENT_MODE:se,C_LINE_COMMENT_MODE:ie,C_NUMBER_MODE:z,C_NUMBER_RE:T,END_SAME_AS_BEGIN:function(o){return Object.assign(o,{"on:begin":(v,C)=>{C.data._beginMatch=v[1]},"on:end":(v,C)=>{C.data._beginMatch!==v[1]&&C.ignoreMatch()}})},HASH_COMMENT_MODE:de,IDENT_RE:A,MATCH_NOTHING_RE:k,METHOD_GUARD:tt,NUMBER_MODE:ye,NUMBER_RE:U,PHRASAL_WORDS_MODE:W,QUOTE_STRING_MODE:Ee,REGEXP_MODE:Se,RE_STARTERS_RE:q,SHEBANG:be,TITLE_MODE:et,UNDERSCORE_IDENT_RE:L,UNDERSCORE_TITLE_MODE:Ae});function nt(o,v){o.input[o.index-1]==="."&&v.ignoreMatch()}function pe(o,v){o.className!==void 0&&(o.scope=o.className,delete o.className)}function Re(o,v){v&&o.beginKeywords&&(o.begin="\\b("+o.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",o.__beforeBegin=nt,o.keywords=o.keywords||o.beginKeywords,delete o.beginKeywords,o.relevance===void 0&&(o.relevance=0))}function Le(o,v){Array.isArray(o.illegal)&&(o.illegal=E(...o.illegal))}function nr(o,v){if(o.match){if(o.begin||o.end)throw new Error("begin & end are not supported with match");o.begin=o.match,delete o.match}}function rr(o,v){o.relevance===void 0&&(o.relevance=1)}const ir=(o,v)=>{if(!o.beforeMatch)return;if(o.starts)throw new Error("beforeMatch cannot be used with starts");const C=Object.assign({},o);Object.keys(o).forEach(D=>{delete o[D]}),o.keywords=C.keywords,o.begin=u(C.beforeMatch,n(C.begin)),o.starts={relevance:0,contains:[Object.assign(C,{endsParent:!0})]},o.relevance=0,delete C.beforeMatch},sr=["of","and","for","in","not","or","if","then","parent","list","value"],or="keyword";function Wt(o,v,C=or){const D=Object.create(null);return typeof o=="string"?V(C,o.split(" ")):Array.isArray(o)?V(C,o):Object.keys(o).forEach(function(X){Object.assign(D,Wt(o[X],v,X))}),D;function V(X,M){v&&(M=M.map(R=>R.toLowerCase())),M.forEach(function(R){const j=R.split("|");D[j[0]]=[X,ar(j[0],j[1])]})}}function ar(o,v){return v?Number(v):lr(o)?0:1}function lr(o){return sr.includes(o.toLowerCase())}const Gt={},we=o=>{console.error(o)},Zt=(o,...v)=>{console.log(`WARN: ${o}`,...v)},_e=(o,v)=>{Gt[`${o}/${v}`]||(console.log(`Deprecated as of ${o}. ${v}`),Gt[`${o}/${v}`]=!0)},je=new Error;function Kt(o,v,{key:C}){let D=0;const V=o[C],X={},M={};for(let R=1;R<=v.length;R++)M[R+D]=V[R],X[R+D]=!0,D+=S(v[R-1]);o[C]=M,o[C]._emit=X,o[C]._multi=!0}function cr(o){if(Array.isArray(o.begin)){if(o.skip||o.excludeBegin||o.returnBegin)throw we("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),je;if(typeof o.beginScope!="object"||o.beginScope===null)throw we("beginScope must be object"),je;Kt(o,o.begin,{key:"beginScope"}),o.begin=b(o.begin,{joinWith:""})}}function ur(o){if(Array.isArray(o.end)){if(o.skip||o.excludeEnd||o.returnEnd)throw we("skip, excludeEnd, returnEnd not compatible with endScope: {}"),je;if(typeof o.endScope!="object"||o.endScope===null)throw we("endScope must be object"),je;Kt(o,o.end,{key:"endScope"}),o.end=b(o.end,{joinWith:""})}}function hr(o){o.scope&&typeof o.scope=="object"&&o.scope!==null&&(o.beginScope=o.scope,delete o.scope)}function fr(o){hr(o),typeof o.beginScope=="string"&&(o.beginScope={_wrap:o.beginScope}),typeof o.endScope=="string"&&(o.endScope={_wrap:o.endScope}),cr(o),ur(o)}function dr(o){function v(M,R){return new RegExp(i(M),"m"+(o.case_insensitive?"i":"")+(o.unicodeRegex?"u":"")+(R?"g":""))}class C{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(R,j){j.position=this.position++,this.matchIndexes[this.matchAt]=j,this.regexes.push([j,R]),this.matchAt+=S(R)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const R=this.regexes.map(j=>j[1]);this.matcherRe=v(b(R,{joinWith:"|"}),!0),this.lastIndex=0}exec(R){this.matcherRe.lastIndex=this.lastIndex;const j=this.matcherRe.exec(R);if(!j)return null;const te=j.findIndex((Ne,it)=>it>0&&Ne!==void 0),Y=this.matchIndexes[te];return j.splice(0,te),Object.assign(j,Y)}}class D{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(R){if(this.multiRegexes[R])return this.multiRegexes[R];const j=new C;return this.rules.slice(R).forEach(([te,Y])=>j.addRule(te,Y)),j.compile(),this.multiRegexes[R]=j,j}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(R,j){this.rules.push([R,j]),j.type==="begin"&&this.count++}exec(R){const j=this.getMatcher(this.regexIndex);j.lastIndex=this.lastIndex;let te=j.exec(R);if(this.resumingScanAtSamePosition()&&!(te&&te.index===this.lastIndex)){const Y=this.getMatcher(0);Y.lastIndex=this.lastIndex+1,te=Y.exec(R)}return te&&(this.regexIndex+=te.position+1,this.regexIndex===this.count&&this.considerAll()),te}}function V(M){const R=new D;return M.contains.forEach(j=>R.addRule(j.begin,{rule:j,type:"begin"})),M.terminatorEnd&&R.addRule(M.terminatorEnd,{type:"end"}),M.illegal&&R.addRule(M.illegal,{type:"illegal"}),R}function X(M,R){const j=M;if(M.isCompiled)return j;[pe,nr,fr,ir].forEach(Y=>Y(M,R)),o.compilerExtensions.forEach(Y=>Y(M,R)),M.__beforeBegin=null,[Re,Le,rr].forEach(Y=>Y(M,R)),M.isCompiled=!0;let te=null;return typeof M.keywords=="object"&&M.keywords.$pattern&&(M.keywords=Object.assign({},M.keywords),te=M.keywords.$pattern,delete M.keywords.$pattern),te=te||/\w+/,M.keywords&&(M.keywords=Wt(M.keywords,o.case_insensitive)),j.keywordPatternRe=v(te,!0),R&&(M.begin||(M.begin=/\B|\b/),j.beginRe=v(j.begin),!M.end&&!M.endsWithParent&&(M.end=/\B|\b/),M.end&&(j.endRe=v(j.end)),j.terminatorEnd=i(j.end)||"",M.endsWithParent&&R.terminatorEnd&&(j.terminatorEnd+=(M.end?"|":"")+R.terminatorEnd)),M.illegal&&(j.illegalRe=v(M.illegal)),M.contains||(M.contains=[]),M.contains=[].concat(...M.contains.map(function(Y){return pr(Y==="self"?M:Y)})),M.contains.forEach(function(Y){X(Y,j)}),M.starts&&X(M.starts,R),j.matcher=V(j),j}if(o.compilerExtensions||(o.compilerExtensions=[]),o.contains&&o.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return o.classNameAliases=d(o.classNameAliases||{}),X(o)}function Jt(o){return o?o.endsWithParent||Jt(o.starts):!1}function pr(o){return o.variants&&!o.cachedVariants&&(o.cachedVariants=o.variants.map(function(v){return d(o,{variants:null},v)})),o.cachedVariants?o.cachedVariants:Jt(o)?d(o,{starts:o.starts?d(o.starts):null}):Object.isFrozen(o)?d(o):o}var gr="11.11.1";class mr extends Error{constructor(v,C){super(v),this.name="HTMLInjectionError",this.html=C}}const rt=m,Vt=d,Xt=Symbol("nomatch"),br=7,Qt=function(o){const v=Object.create(null),C=Object.create(null),D=[];let V=!0;const X="Could not find the language '{}', did you forget to load/include a language module?",M={disableAutodetect:!0,name:"Plain text",contains:[]};let R={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:e};function j(_){return R.noHighlightRe.test(_)}function te(_){let I=_.className+" ";I+=_.parentNode?_.parentNode.className:"";const F=R.languageDetectRe.exec(I);if(F){const G=ge(F[1]);return G||(Zt(X.replace("{}",F[1])),Zt("Falling back to no-highlight mode for this block.",_)),G?F[1]:"no-highlight"}return I.split(/\s+/).find(G=>j(G)||ge(G))}function Y(_,I,F){let G="",ee="";typeof I=="object"?(G=_,F=I.ignoreIllegals,ee=I.language):(_e("10.7.0","highlight(lang, code, ...args) has been deprecated."),_e("10.7.0",`Please use highlight(code, options) instead.
215
+ https://github.com/highlightjs/highlight.js/issues/2277`),ee=_,G=I),F===void 0&&(F=!0);const ce={code:G,language:ee};Be("before:highlight",ce);const me=ce.result?ce.result:Ne(ce.language,ce.code,F);return me.code=ce.code,Be("after:highlight",me),me}function Ne(_,I,F,G){const ee=Object.create(null);function ce(O,P){return O.keywords[P]}function me(){if(!B.keywords){ne.addText(Z);return}let O=0;B.keywordPatternRe.lastIndex=0;let P=B.keywordPatternRe.exec(Z),$="";for(;P;){$+=Z.substring(O,P.index);const H=he.case_insensitive?P[0].toLowerCase():P[0],re=ce(B,H);if(re){const[fe,Ir]=re;if(ne.addText($),$="",ee[H]=(ee[H]||0)+1,ee[H]<=br&&($e+=Ir),fe.startsWith("_"))$+=P[0];else{const Lr=he.classNameAliases[fe]||fe;ue(P[0],Lr)}}else $+=P[0];O=B.keywordPatternRe.lastIndex,P=B.keywordPatternRe.exec(Z)}$+=Z.substring(O),ne.addText($)}function De(){if(Z==="")return;let O=null;if(typeof B.subLanguage=="string"){if(!v[B.subLanguage]){ne.addText(Z);return}O=Ne(B.subLanguage,Z,!0,an[B.subLanguage]),an[B.subLanguage]=O._top}else O=st(Z,B.subLanguage.length?B.subLanguage:null);B.relevance>0&&($e+=O.relevance),ne.__addSublanguage(O._emitter,O.language)}function oe(){B.subLanguage!=null?De():me(),Z=""}function ue(O,P){O!==""&&(ne.startScope(P),ne.addText(O),ne.endScope())}function nn(O,P){let $=1;const H=P.length-1;for(;$<=H;){if(!O._emit[$]){$++;continue}const re=he.classNameAliases[O[$]]||O[$],fe=P[$];re?ue(fe,re):(Z=fe,me(),Z=""),$++}}function rn(O,P){return O.scope&&typeof O.scope=="string"&&ne.openNode(he.classNameAliases[O.scope]||O.scope),O.beginScope&&(O.beginScope._wrap?(ue(Z,he.classNameAliases[O.beginScope._wrap]||O.beginScope._wrap),Z=""):O.beginScope._multi&&(nn(O.beginScope,P),Z="")),B=Object.create(O,{parent:{value:B}}),B}function sn(O,P,$){let H=w(O.endRe,$);if(H){if(O["on:end"]){const re=new f(O);O["on:end"](P,re),re.isMatchIgnored&&(H=!1)}if(H){for(;O.endsParent&&O.parent;)O=O.parent;return O}}if(O.endsWithParent)return sn(O.parent,P,$)}function Rr(O){return B.matcher.regexIndex===0?(Z+=O[0],1):(ct=!0,0)}function Nr(O){const P=O[0],$=O.rule,H=new f($),re=[$.__beforeBegin,$["on:begin"]];for(const fe of re)if(fe&&(fe(O,H),H.isMatchIgnored))return Rr(P);return $.skip?Z+=P:($.excludeBegin&&(Z+=P),oe(),!$.returnBegin&&!$.excludeBegin&&(Z=P)),rn($,O),$.returnBegin?0:P.length}function Mr(O){const P=O[0],$=I.substring(O.index),H=sn(B,O,$);if(!H)return Xt;const re=B;B.endScope&&B.endScope._wrap?(oe(),ue(P,B.endScope._wrap)):B.endScope&&B.endScope._multi?(oe(),nn(B.endScope,O)):re.skip?Z+=P:(re.returnEnd||re.excludeEnd||(Z+=P),oe(),re.excludeEnd&&(Z=P));do B.scope&&ne.closeNode(),!B.skip&&!B.subLanguage&&($e+=B.relevance),B=B.parent;while(B!==H.parent);return H.starts&&rn(H.starts,O),re.returnEnd?0:P.length}function Pr(){const O=[];for(let P=B;P!==he;P=P.parent)P.scope&&O.unshift(P.scope);O.forEach(P=>ne.openNode(P))}let Ue={};function on(O,P){const $=P&&P[0];if(Z+=O,$==null)return oe(),0;if(Ue.type==="begin"&&P.type==="end"&&Ue.index===P.index&&$===""){if(Z+=I.slice(P.index,P.index+1),!V){const H=new Error(`0 width match regex (${_})`);throw H.languageName=_,H.badRule=Ue.rule,H}return 1}if(Ue=P,P.type==="begin")return Nr(P);if(P.type==="illegal"&&!F){const H=new Error('Illegal lexeme "'+$+'" for mode "'+(B.scope||"<unnamed>")+'"');throw H.mode=B,H}else if(P.type==="end"){const H=Mr(P);if(H!==Xt)return H}if(P.type==="illegal"&&$==="")return Z+=`
216
+ `,1;if(lt>1e5&&lt>P.index*3)throw new Error("potential infinite loop, way more iterations than matches");return Z+=$,$.length}const he=ge(_);if(!he)throw we(X.replace("{}",_)),new Error('Unknown language: "'+_+'"');const Tr=dr(he);let at="",B=G||Tr;const an={},ne=new R.__emitter(R);Pr();let Z="",$e=0,xe=0,lt=0,ct=!1;try{if(he.__emitTokens)he.__emitTokens(I,ne);else{for(B.matcher.considerAll();;){lt++,ct?ct=!1:B.matcher.considerAll(),B.matcher.lastIndex=xe;const O=B.matcher.exec(I);if(!O)break;const P=I.substring(xe,O.index),$=on(P,O);xe=O.index+$}on(I.substring(xe))}return ne.finalize(),at=ne.toHTML(),{language:_,value:at,relevance:$e,illegal:!1,_emitter:ne,_top:B}}catch(O){if(O.message&&O.message.includes("Illegal"))return{language:_,value:rt(I),illegal:!0,relevance:0,_illegalBy:{message:O.message,index:xe,context:I.slice(xe-100,xe+100),mode:O.mode,resultSoFar:at},_emitter:ne};if(V)return{language:_,value:rt(I),illegal:!1,relevance:0,errorRaised:O,_emitter:ne,_top:B};throw O}}function it(_){const I={value:rt(_),illegal:!1,relevance:0,_top:M,_emitter:new R.__emitter(R)};return I._emitter.addText(_),I}function st(_,I){I=I||R.languages||Object.keys(v);const F=it(_),G=I.filter(ge).filter(tn).map(oe=>Ne(oe,_,!1));G.unshift(F);const ee=G.sort((oe,ue)=>{if(oe.relevance!==ue.relevance)return ue.relevance-oe.relevance;if(oe.language&&ue.language){if(ge(oe.language).supersetOf===ue.language)return 1;if(ge(ue.language).supersetOf===oe.language)return-1}return 0}),[ce,me]=ee,De=ce;return De.secondBest=me,De}function yr(_,I,F){const G=I&&C[I]||F;_.classList.add("hljs"),_.classList.add(`language-${G}`)}function ot(_){let I=null;const F=te(_);if(j(F))return;if(Be("before:highlightElement",{el:_,language:F}),_.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",_);return}if(_.children.length>0&&(R.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(_)),R.throwUnescapedHTML))throw new mr("One of your code blocks includes unescaped HTML.",_.innerHTML);I=_;const G=I.textContent,ee=F?Y(G,{language:F,ignoreIllegals:!0}):st(G);_.innerHTML=ee.value,_.dataset.highlighted="yes",yr(_,F,ee.language),_.result={language:ee.language,re:ee.relevance,relevance:ee.relevance},ee.secondBest&&(_.secondBest={language:ee.secondBest.language,relevance:ee.secondBest.relevance}),Be("after:highlightElement",{el:_,result:ee,text:G})}function wr(_){R=Vt(R,_)}const xr=()=>{ze(),_e("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function vr(){ze(),_e("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let Yt=!1;function ze(){function _(){ze()}if(document.readyState==="loading"){Yt||window.addEventListener("DOMContentLoaded",_,!1),Yt=!0;return}document.querySelectorAll(R.cssSelector).forEach(ot)}function Er(_,I){let F=null;try{F=I(o)}catch(G){if(we("Language definition for '{}' could not be registered.".replace("{}",_)),V)we(G);else throw G;F=M}F.name||(F.name=_),v[_]=F,F.rawDefinition=I.bind(null,o),F.aliases&&en(F.aliases,{languageName:_})}function Sr(_){delete v[_];for(const I of Object.keys(C))C[I]===_&&delete C[I]}function kr(){return Object.keys(v)}function ge(_){return _=(_||"").toLowerCase(),v[_]||v[C[_]]}function en(_,{languageName:I}){typeof _=="string"&&(_=[_]),_.forEach(F=>{C[F.toLowerCase()]=I})}function tn(_){const I=ge(_);return I&&!I.disableAutodetect}function _r(_){_["before:highlightBlock"]&&!_["before:highlightElement"]&&(_["before:highlightElement"]=I=>{_["before:highlightBlock"](Object.assign({block:I.el},I))}),_["after:highlightBlock"]&&!_["after:highlightElement"]&&(_["after:highlightElement"]=I=>{_["after:highlightBlock"](Object.assign({block:I.el},I))})}function Or(_){_r(_),D.push(_)}function Cr(_){const I=D.indexOf(_);I!==-1&&D.splice(I,1)}function Be(_,I){const F=_;D.forEach(function(G){G[F]&&G[F](I)})}function Ar(_){return _e("10.7.0","highlightBlock will be removed entirely in v12.0"),_e("10.7.0","Please use highlightElement now."),ot(_)}Object.assign(o,{highlight:Y,highlightAuto:st,highlightAll:ze,highlightElement:ot,highlightBlock:Ar,configure:wr,initHighlighting:xr,initHighlightingOnLoad:vr,registerLanguage:Er,unregisterLanguage:Sr,listLanguages:kr,getLanguage:ge,registerAliases:en,autoDetection:tn,inherit:Vt,addPlugin:Or,removePlugin:Cr}),o.debugMode=function(){V=!1},o.safeMode=function(){V=!0},o.versionString=gr,o.regex={concat:u,lookahead:n,either:E,optional:c,anyNumberOfTimes:t};for(const _ in ke)typeof ke[_]=="object"&&a(ke[_]);return Object.assign(o,ke),o},Oe=Qt({});return Oe.newInstance=()=>Qt({}),zt=Oe,Oe.HighlightJS=Oe,Oe.default=Oe,zt}var Si=Ei();const Ye=vi(Si),Ge="[A-Za-z$_][0-9A-Za-z$_]*",Kn=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],Jn=["true","false","null","undefined","NaN","Infinity"],Vn=["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"],Xn=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],Qn=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],Yn=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],er=[].concat(Qn,Vn,Xn);function ki(a){const f=a.regex,m=(W,{after:Q})=>{const ie="</"+W[0].slice(1);return W.input.indexOf(ie,Q)!==-1},d=Ge,r={begin:"<>",end:"</>"},h=/<[A-Za-z0-9\\._:-]+\s*\/>/,s={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(W,Q)=>{const ie=W[0].length+W.index,se=W.input[ie];if(se==="<"||se===","){Q.ignoreMatch();return}se===">"&&(m(W,{after:ie})||Q.ignoreMatch());let de;const ye=W.input.substring(ie);if(de=ye.match(/^\s*=/)){Q.ignoreMatch();return}if((de=ye.match(/^\s+extends\s+/))&&de.index===0){Q.ignoreMatch();return}}},p={$pattern:Ge,keyword:Kn,literal:Jn,built_in:er,"variable.language":Yn},x="[0-9](_?[0-9])*",l=`\\.(${x})`,e="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",i={className:"number",variants:[{begin:`(\\b(${e})((${l})|\\.)?|(${l}))[eE][+-]?(${x})\\b`},{begin:`\\b(${e})\\b((${l})\\b|\\.)?|(${l})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},n={className:"subst",begin:"\\$\\{",end:"\\}",keywords:p,contains:[]},t={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[a.BACKSLASH_ESCAPE,n],subLanguage:"xml"}},c={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[a.BACKSLASH_ESCAPE,n],subLanguage:"css"}},u={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[a.BACKSLASH_ESCAPE,n],subLanguage:"graphql"}},g={className:"string",begin:"`",end:"`",contains:[a.BACKSLASH_ESCAPE,n]},E={className:"comment",variants:[a.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:d+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),a.C_BLOCK_COMMENT_MODE,a.C_LINE_COMMENT_MODE]},S=[a.APOS_STRING_MODE,a.QUOTE_STRING_MODE,t,c,u,g,{match:/\$\d+/},i];n.contains=S.concat({begin:/\{/,end:/\}/,keywords:p,contains:["self"].concat(S)});const w=[].concat(E,n.contains),y=w.concat([{begin:/(\s*)\(/,end:/\)/,keywords:p,contains:["self"].concat(w)}]),b={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:p,contains:y},k={variants:[{match:[/class/,/\s+/,d,/\s+/,/extends/,/\s+/,f.concat(d,"(",f.concat(/\./,d),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,d],scope:{1:"keyword",3:"title.class"}}]},A={relevance:0,match:f.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:{_:[...Vn,...Xn]}},L={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},U={variants:[{match:[/function/,/\s+/,d,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[b],illegal:/%/},T={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function J(W){return f.concat("(?!",W.join("|"),")")}const q={match:f.concat(/\b/,J([...Qn,"super","import"].map(W=>`${W}\\s*\\(`)),d,f.lookahead(/\s*\(/)),className:"title.function",relevance:0},be={begin:f.concat(/\./,f.lookahead(f.concat(d,/(?![0-9A-Za-z$_(])/))),end:d,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},ae={match:[/get|set/,/\s+/,d,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},b]},N="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+a.UNDERSCORE_IDENT_RE+")\\s*=>",Ee={match:[/const|var|let/,/\s+/,d,/\s*/,/=\s*/,/(async\s*)?/,f.lookahead(N)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[b]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:p,exports:{PARAMS_CONTAINS:y,CLASS_REFERENCE:A},illegal:/#(?![$_A-z])/,contains:[a.SHEBANG({label:"shebang",binary:"node",relevance:5}),L,a.APOS_STRING_MODE,a.QUOTE_STRING_MODE,t,c,u,g,E,{match:/\$\d+/},i,A,{scope:"attr",match:d+f.lookahead(":"),relevance:0},Ee,{begin:"("+a.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[E,a.REGEXP_MODE,{className:"function",begin:N,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:a.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:p,contains:y}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:r.begin,end:r.end},{match:h},{begin:s.begin,"on:begin":s.isTrulyOpeningTag,end:s.end}],subLanguage:"xml",contains:[{begin:s.begin,end:s.end,skip:!0,contains:["self"]}]}]},U,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+a.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[b,a.inherit(a.TITLE_MODE,{begin:d,className:"title.function"})]},{match:/\.\.\./,relevance:0},be,{match:"\\$"+d,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[b]},q,T,k,ae,{match:/\$[(.]/}]}}function _i(a){const f=a.regex,m=ki(a),d=Ge,r=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],h={begin:[/namespace/,/\s+/,a.IDENT_RE],beginScope:{1:"keyword",3:"title.class"}},s={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:r},contains:[m.exports.CLASS_REFERENCE]},p={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},x=["type","interface","public","private","protected","implements","declare","abstract","readonly","enum","override","satisfies"],l={$pattern:Ge,keyword:Kn.concat(x),literal:Jn,built_in:er.concat(r),"variable.language":Yn},e={className:"meta",begin:"@"+d},i=(u,g,E)=>{const S=u.contains.findIndex(w=>w.label===g);if(S===-1)throw new Error("can not find mode to replace");u.contains.splice(S,1,E)};Object.assign(m.keywords,l),m.exports.PARAMS_CONTAINS.push(e);const n=m.contains.find(u=>u.scope==="attr"),t=Object.assign({},n,{match:f.concat(d,f.lookahead(/\s*\?:/))});m.exports.PARAMS_CONTAINS.push([m.exports.CLASS_REFERENCE,n,t]),m.contains=m.contains.concat([e,h,s,t]),i(m,"shebang",a.SHEBANG()),i(m,"use_strict",p);const c=m.contains.find(u=>u.label==="func.def");return c.relevance=0,Object.assign(m,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),m}function Oi(a){const f=a.regex,m=f.concat(/[\p{L}_]/u,f.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),d=/[\p{L}0-9._:-]+/u,r={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},h={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},s=a.inherit(h,{begin:/\(/,end:/\)/}),p=a.inherit(a.APOS_STRING_MODE,{className:"string"}),x=a.inherit(a.QUOTE_STRING_MODE,{className:"string"}),l={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:d,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[r]},{begin:/'/,end:/'/,contains:[r]},{begin:/[^\s"'=<>`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,unicodeRegex:!0,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,relevance:10,contains:[h,x,p,s,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[h,s,x,p]}]}]},a.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},r,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[x]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[l],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[l],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:f.concat(/</,f.lookahead(f.concat(m,f.either(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:m,relevance:0,starts:l}]},{className:"tag",begin:f.concat(/<\//,f.lookahead(f.concat(m,/>/))),contains:[{className:"name",begin:m,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}const Ci=a=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:a.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:[a.APOS_STRING_MODE,a.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:a.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_-]*/}}),Ai=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],Ri=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],Ni=[...Ai,...Ri],Mi=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),Pi=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),Ti=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),Ii=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse();function Li(a){const f=a.regex,m=Ci(a),d={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},r="and or not only",h=/@-?\w[\w]*(-\w+)*/,s="[a-zA-Z-][a-zA-Z0-9_-]*",p=[a.APOS_STRING_MODE,a.QUOTE_STRING_MODE];return{name:"CSS",case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"},classNameAliases:{keyframePosition:"selector-tag"},contains:[m.BLOCK_COMMENT,d,m.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:"selector-class",begin:"\\."+s,relevance:0},m.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+Pi.join("|")+")"},{begin:":(:)?("+Ti.join("|")+")"}]},m.CSS_VARIABLE,{className:"attribute",begin:"\\b("+Ii.join("|")+")\\b"},{begin:/:/,end:/[;}{]/,contains:[m.BLOCK_COMMENT,m.HEXCOLOR,m.IMPORTANT,m.CSS_NUMBER_MODE,...p,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[...p,{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},m.FUNCTION_DISPATCH]},{begin:f.lookahead(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:h},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:r,attribute:Mi.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...p,m.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+Ni.join("|")+")\\b"}]}}const tr=document.createElement("style");tr.innerText=[wi,xi].join(`
217
+ `);document.head.appendChild(tr);Ye.registerLanguage("typescript",_i);Ye.registerLanguage("html",Oi);Ye.registerLanguage("css",Li);function ji(...a){const f=document.createElement("div"),m=document.createElement("div");m.classList.add("tab-control");const d=document.createElement("div");return a.forEach(r=>{f.appendChild(r),r.addEventListener("click",()=>{a.forEach(h=>h.removeAttribute("selected")),r.setAttribute("selected",""),d.innerHTML="",d.appendChild(r.content),d.className=r.className,d.classList.add("tab-content")})}),m.appendChild(f),m.appendChild(d),d.classList.add("tab-content"),a[0].setAttribute("selected",""),d.appendChild(a[0].content),m}function Me(a,f){const m=document.createElement("div");return m.role="tab",m.tabIndex=0,m.innerText=a,m.content=f,f.tagName=="PRE"&&m.classList.add("code"),m}function Te(a,f){const m=document.createElement(a);return typeof f=="string"?m.innerHTML=f:f.forEach(d=>{m.appendChild(d)}),m}async function zi(a,f,m){const d=f.mainContent,r=Te("div",d);r.id=`example-preview-${m}`;const h=typeof f.css=="string"?void 0:f.css?.label,s=typeof f.css=="string"?f.css:f.css?.content,p=ji(Me("Preview",r),Me("HTML",He("html",d)),...s?[Me(h??"CSS",He("css",s))]:[],...f.initializer&&f.initializer.content?[Me(f.initializer.label??"TS",He("typescript",f.initializer.content))]:[],...(f.additionalSources||[]).map(l=>Me(l.label,He(l.language,l.content))));f.description&&a.appendChild(Te("div",f.description));const x=Te("div",[p]);x.classList.add("example"),a.appendChild(x),s&&Bi(`#${r.id}`,s),f.initializer?.initialize&&await f.initializer.initialize(r)}function He(a,f){let m=f.split(/\r?\n/).map(d=>{const r=d.indexOf("///");if(r>-1){const h=d.substring(r+3).trimStart();return h?d.replace(/^(\s*)([^\s].*)$/,`$1${h}`):void 0}return d}).filter(d=>typeof d<"u").join(`
217
218
  `).trim();return a&&a!="raw"&&(m=Ye.highlight(m,{language:a}).value),Te("pre",[Te("code",m)])}function Bi(a,f){const m=document.createElement("style");m.innerHTML=K().use(yi({prefix:a})).process(f).css,document.head.appendChild(m)}async function Di(a,f=document.body){const m=$i(f);let d=0;Object.keys(a).sort().forEach(async r=>{const h=document.createElement("div");h.className="example-container",m.appendChild(h);const s=a[r].default;zi(h,s,d++)})}function Ui(a){const f=document.createElement("div");f.id="examples-container";const m=a.querySelector("#examples");return m?m.after(f):a.appendChild(f),f}function $i(a){return a.children?Ui(a):a}const Fi=`<h1 id="@cas-smartdesign/button">@cas-smartdesign/button</h1>
218
219
  <p>A button element which encloses the look and feel of the smartdesign button.</p>
219
220
  <h2 id="attributes">Attributes</h2>
@@ -252,5 +253,9 @@ https://github.com/highlightjs/highlight.js/issues/2277`),ee=_,G=I),F===void 0&&
252
253
  <li>Defines the value of max-width, max-height (default is 32px)</li>
253
254
  </ul>
254
255
  </li>
256
+ <li><code>--sd-button-border-radius</code><ul>
257
+ <li>Defines the border radius of the button</li>
258
+ </ul>
259
+ </li>
255
260
  </ul>
256
261
  `,qi=document.querySelector("#markdown-container");qi.innerHTML=Fi;Di(Object.assign({"./examples/created_from_source/index.ts":Fr,"./examples/declarative/index.ts":Gr,"./examples/declarative_with_source/index.ts":Xr,"./examples/html_form/index.ts":ti}),document.querySelector(".markdown-body"));export{Pe as B};
@@ -34,15 +34,15 @@
34
34
  "repository": "https://github.com/typescript-eslint/typescript-eslint",
35
35
  "licenseUrl": "https://unpkg.com/@typescript-eslint/parser@8.41.0/LICENSE"
36
36
  },
37
- "@vitest/coverage-v8@3.2.4": {
37
+ "@vitest/coverage-v8@4.0.18": {
38
38
  "licenses": "MIT",
39
39
  "repository": "https://github.com/vitest-dev/vitest",
40
- "licenseUrl": "https://unpkg.com/@vitest/coverage-v8@3.2.4/LICENSE"
40
+ "licenseUrl": "https://unpkg.com/@vitest/coverage-v8@4.0.18/LICENSE"
41
41
  },
42
- "@vitest/ui@3.2.4": {
42
+ "@vitest/ui@4.0.18": {
43
43
  "licenses": "MIT",
44
44
  "repository": "https://github.com/vitest-dev/vitest",
45
- "licenseUrl": "https://unpkg.com/@vitest/ui@3.2.4/LICENSE"
45
+ "licenseUrl": "https://unpkg.com/@vitest/ui@4.0.18/LICENSE"
46
46
  },
47
47
  "axe-core@4.10.3": {
48
48
  "licenses": "MPL-2.0",
@@ -59,10 +59,10 @@
59
59
  "repository": "https://github.com/cypress-io/cypress",
60
60
  "licenseUrl": "https://cypress.io"
61
61
  },
62
- "esbuild@0.25.9": {
62
+ "esbuild@0.27.2": {
63
63
  "licenses": "MIT",
64
64
  "repository": "https://github.com/evanw/esbuild",
65
- "licenseUrl": "https://unpkg.com/esbuild@0.25.9/LICENSE.md"
65
+ "licenseUrl": "https://unpkg.com/esbuild@0.27.2/LICENSE.md"
66
66
  },
67
67
  "eslint-config-google@0.14.0": {
68
68
  "licenses": "Apache-2.0",
@@ -114,10 +114,10 @@
114
114
  "repository": "https://github.com/postcss/postcss",
115
115
  "licenseUrl": "https://unpkg.com/postcss@8.5.6/LICENSE"
116
116
  },
117
- "prettier@3.6.2": {
117
+ "prettier@3.8.1": {
118
118
  "licenses": "MIT",
119
119
  "repository": "https://github.com/prettier/prettier",
120
- "licenseUrl": "https://unpkg.com/prettier@3.6.2/LICENSE"
120
+ "licenseUrl": "https://unpkg.com/prettier@3.8.1/LICENSE"
121
121
  },
122
122
  "resolve-pkg@2.0.0": {
123
123
  "licenses": "MIT",
@@ -149,10 +149,10 @@
149
149
  "repository": "https://github.com/stylelint/stylelint",
150
150
  "licenseUrl": "https://unpkg.com/stylelint@16.23.1/LICENSE"
151
151
  },
152
- "tsup@8.5.0": {
152
+ "tsup@8.5.1": {
153
153
  "licenses": "MIT",
154
154
  "repository": "https://github.com/egoist/tsup",
155
- "licenseUrl": "https://unpkg.com/tsup@8.5.0/LICENSE"
155
+ "licenseUrl": "https://unpkg.com/tsup@8.5.1/LICENSE"
156
156
  },
157
157
  "turbo@2.5.6": {
158
158
  "licenses": "MIT",
@@ -164,25 +164,25 @@
164
164
  "repository": "https://github.com/typescript-eslint/typescript-eslint",
165
165
  "licenseUrl": "https://unpkg.com/typescript-eslint@8.41.0/LICENSE"
166
166
  },
167
- "typescript@5.9.2": {
167
+ "typescript@5.9.3": {
168
168
  "licenses": "Apache-2.0",
169
169
  "repository": "https://github.com/microsoft/TypeScript",
170
- "licenseUrl": "https://unpkg.com/typescript@5.9.2/LICENSE.txt"
170
+ "licenseUrl": "https://unpkg.com/typescript@5.9.3/LICENSE.txt"
171
171
  },
172
172
  "vite-tsconfig-paths@5.1.4": {
173
173
  "licenses": "MIT",
174
174
  "repository": "https://github.com/aleclarson/vite-tsconfig-paths",
175
175
  "licenseUrl": "https://unpkg.com/vite-tsconfig-paths@5.1.4/LICENSE"
176
176
  },
177
- "vite@7.1.3": {
177
+ "vite@7.3.1": {
178
178
  "licenses": "MIT",
179
179
  "repository": "https://github.com/vitejs/vite",
180
- "licenseUrl": "https://unpkg.com/vite@7.1.3/LICENSE.md"
180
+ "licenseUrl": "https://unpkg.com/vite@7.3.1/LICENSE.md"
181
181
  },
182
- "vitest@3.2.4": {
182
+ "vitest@4.0.18": {
183
183
  "licenses": "MIT",
184
184
  "repository": "https://github.com/vitest-dev/vitest",
185
- "licenseUrl": "https://unpkg.com/vitest@3.2.4/LICENSE.md"
185
+ "licenseUrl": "https://unpkg.com/vitest@4.0.18/LICENSE.md"
186
186
  },
187
187
  "yargs@18.0.0": {
188
188
  "licenses": "MIT",
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@cas-smartdesign/button",
3
- "version": "5.2.1",
3
+ "version": "5.4.0",
4
4
  "description": "A button element which encloses the look and feel of the smartdesign button",
5
5
  "main": "dist/button-with-externals.js",
6
6
  "module": "dist/button.mjs",
7
7
  "types": "dist/button.d.ts",
8
8
  "license": "SEE LICENSE IN LICENSE",
9
9
  "dependencies": {
10
- "@cas-smartdesign/element-base": "^5.1.1"
10
+ "@cas-smartdesign/element-base": "^5.2.0"
11
11
  },
12
12
  "files": [
13
13
  "dist",
@@ -18,8 +18,8 @@
18
18
  "access": "public"
19
19
  },
20
20
  "devDependencies": {
21
- "@cas-smartdesign/license-generator": "^1.8.1",
22
- "@cas-smartdesign/element-preview": "^0.3.1"
21
+ "@cas-smartdesign/license-generator": "^1.9.0",
22
+ "@cas-smartdesign/element-preview": "^0.4.0"
23
23
  },
24
24
  "scripts": {
25
25
  "version": "pnpm version",
package/readme.md CHANGED
@@ -24,3 +24,5 @@ A button element which encloses the look and feel of the smartdesign button.
24
24
  - Defines the value of margin-left, margin-right (default is 8px)
25
25
  - `--sd-button-max-icon-size`
26
26
  - Defines the value of max-width, max-height (default is 32px)
27
+ - `--sd-button-border-radius`
28
+ - Defines the border radius of the button