godown 3.10.1 → 3.11.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -63
- package/alert.d.ts.map +1 -1
- package/avatar.d.ts.map +1 -1
- package/badge.d.ts.map +1 -1
- package/breath.d.ts.map +1 -1
- package/build/godown+lit.iife.js +14 -14
- package/build/godown+lit.iife.js.map +1 -1
- package/build/godown+lit.js +14 -14
- package/build/godown+lit.js.map +1 -1
- package/build/godown+lit.umd.js +14 -14
- package/build/godown+lit.umd.js.map +1 -1
- package/build/godown.iife.js +9 -9
- package/build/godown.js +7 -7
- package/build/godown.js.map +1 -1
- package/build/godown.umd.js +10 -10
- package/build/godown.umd.js.map +1 -1
- package/button.d.ts.map +1 -1
- package/card.d.ts.map +1 -1
- package/carousel.d.ts.map +1 -1
- package/chip.d.ts +2 -0
- package/chip.d.ts.map +1 -0
- package/chip.js +2 -0
- package/chip.js.map +1 -0
- package/custom-elements.json +1 -1
- package/details.d.ts.map +1 -1
- package/dialog.d.ts.map +1 -1
- package/divider.d.ts.map +1 -1
- package/dragbox.d.ts.map +1 -1
- package/flex.d.ts.map +1 -1
- package/form.d.ts.map +1 -1
- package/grid.d.ts.map +1 -1
- package/heading.d.ts.map +1 -1
- package/index.d.ts +1 -0
- package/index.d.ts.map +1 -1
- package/index.js +1 -1
- package/input.d.ts.map +1 -1
- package/internal/direction.d.ts.map +1 -1
- package/internal/direction.js.map +1 -1
- package/internal/global-style.d.ts +8 -9
- package/internal/global-style.d.ts.map +1 -1
- package/internal/global-style.js +1 -1
- package/internal/global-style.js.map +1 -1
- package/internal/icons/caret-down.d.ts +4 -0
- package/internal/icons/caret-down.d.ts.map +1 -0
- package/internal/icons/caret-down.js +2 -0
- package/internal/icons/caret-down.js.map +1 -0
- package/internal/icons/caret-left.d.ts +4 -0
- package/internal/icons/caret-left.d.ts.map +1 -0
- package/internal/icons/caret-left.js +2 -0
- package/internal/icons/caret-left.js.map +1 -0
- package/internal/icons/caret-right.d.ts +4 -0
- package/internal/icons/caret-right.d.ts.map +1 -0
- package/internal/icons/caret-right.js +2 -0
- package/internal/icons/caret-right.js.map +1 -0
- package/internal/icons/eye-slash.d.ts +4 -0
- package/internal/icons/eye-slash.d.ts.map +1 -0
- package/internal/icons/eye-slash.js +2 -0
- package/internal/icons/eye-slash.js.map +1 -0
- package/internal/ring.d.ts +19 -0
- package/internal/ring.d.ts.map +1 -0
- package/internal/ring.js +2 -0
- package/internal/ring.js.map +1 -0
- package/internal/super-input.d.ts +2 -2
- package/internal/super-input.d.ts.map +1 -1
- package/internal/super-input.js +1 -1
- package/internal/super-input.js.map +1 -1
- package/internal/super-openable.d.ts.map +1 -1
- package/internal/super-openable.js.map +1 -1
- package/layout.d.ts.map +1 -1
- package/link.d.ts.map +1 -1
- package/package.json +3 -6
- package/progress.d.ts.map +1 -1
- package/range.d.ts.map +1 -1
- package/rotate.d.ts.map +1 -1
- package/router.d.ts.map +1 -1
- package/select.d.ts.map +1 -1
- package/skeleton.d.ts.map +1 -1
- package/split.d.ts.map +1 -1
- package/src/chip.ts +1 -0
- package/src/index.ts +1 -0
- package/src/internal/global-style.ts +40 -37
- package/src/internal/icons/caret-down.ts +7 -0
- package/src/internal/icons/caret-left.ts +7 -0
- package/src/internal/icons/caret-right.ts +7 -0
- package/src/internal/icons/eye-slash.ts +7 -0
- package/src/internal/ring.ts +57 -0
- package/src/internal/super-input.ts +9 -70
- package/src/web-components/alert/component.ts +16 -195
- package/src/web-components/badge/component.ts +7 -92
- package/src/web-components/breath/component.ts +8 -8
- package/src/web-components/button/component.ts +9 -139
- package/src/web-components/card/component.ts +11 -6
- package/src/web-components/carousel/component.ts +6 -6
- package/src/web-components/chip/component.ts +115 -0
- package/src/web-components/chip/definition.ts +11 -0
- package/src/web-components/details/component.ts +2 -2
- package/src/web-components/divider/component.ts +2 -17
- package/src/web-components/heading/component.ts +12 -16
- package/src/web-components/input/component.ts +85 -39
- package/src/web-components/link/component.ts +53 -3
- package/src/web-components/progress/component.ts +2 -1
- package/src/web-components/range/component.ts +19 -25
- package/src/web-components/rotate/component.ts +2 -3
- package/src/web-components/select/component.ts +14 -18
- package/src/web-components/select/definition.ts +1 -1
- package/src/web-components/skeleton/component.ts +14 -58
- package/src/web-components/split/component.ts +16 -14
- package/src/web-components/switch/component.ts +4 -7
- package/src/web-components/tabs/component.ts +11 -8
- package/src/web-components/text/component.ts +2 -2
- package/switch.d.ts.map +1 -1
- package/tabs.d.ts.map +1 -1
- package/text.d.ts.map +1 -1
- package/time.d.ts.map +1 -1
- package/tooltip.d.ts.map +1 -1
- package/typewriter.d.ts.map +1 -1
- package/vscode.html-custom-data.json +1 -1
- package/web-components/alert/component.d.ts +5 -32
- package/web-components/alert/component.d.ts.map +1 -1
- package/web-components/alert/component.js +1 -1
- package/web-components/alert/component.js.map +1 -1
- package/web-components/alert/definition.d.ts.map +1 -1
- package/web-components/alert/definition.js.map +1 -1
- package/web-components/avatar/component.d.ts.map +1 -1
- package/web-components/avatar/component.js.map +1 -1
- package/web-components/avatar/definition.d.ts.map +1 -1
- package/web-components/avatar/definition.js.map +1 -1
- package/web-components/badge/component.d.ts +4 -21
- package/web-components/badge/component.d.ts.map +1 -1
- package/web-components/badge/component.js +1 -1
- package/web-components/badge/component.js.map +1 -1
- package/web-components/badge/definition.d.ts.map +1 -1
- package/web-components/badge/definition.js.map +1 -1
- package/web-components/breath/component.d.ts.map +1 -1
- package/web-components/breath/component.js +1 -1
- package/web-components/breath/component.js.map +1 -1
- package/web-components/breath/definition.d.ts.map +1 -1
- package/web-components/breath/definition.js.map +1 -1
- package/web-components/button/component.d.ts +0 -18
- package/web-components/button/component.d.ts.map +1 -1
- package/web-components/button/component.js +1 -1
- package/web-components/button/component.js.map +1 -1
- package/web-components/button/definition.d.ts.map +1 -1
- package/web-components/button/definition.js.map +1 -1
- package/web-components/card/component.d.ts +3 -0
- package/web-components/card/component.d.ts.map +1 -1
- package/web-components/card/component.js +1 -1
- package/web-components/card/component.js.map +1 -1
- package/web-components/card/definition.d.ts.map +1 -1
- package/web-components/card/definition.js.map +1 -1
- package/web-components/carousel/component.d.ts.map +1 -1
- package/web-components/carousel/component.js +1 -1
- package/web-components/carousel/component.js.map +1 -1
- package/web-components/carousel/definition.d.ts.map +1 -1
- package/web-components/carousel/definition.js.map +1 -1
- package/web-components/chip/component.d.ts +31 -0
- package/web-components/chip/component.d.ts.map +1 -0
- package/web-components/chip/component.js +2 -0
- package/web-components/chip/component.js.map +1 -0
- package/web-components/chip/definition.d.ts +8 -0
- package/web-components/chip/definition.d.ts.map +1 -0
- package/web-components/chip/definition.js +2 -0
- package/web-components/chip/definition.js.map +1 -0
- package/web-components/details/component.d.ts.map +1 -1
- package/web-components/details/component.js +1 -1
- package/web-components/details/component.js.map +1 -1
- package/web-components/details/definition.d.ts.map +1 -1
- package/web-components/details/definition.js.map +1 -1
- package/web-components/dialog/component.d.ts.map +1 -1
- package/web-components/dialog/component.js.map +1 -1
- package/web-components/dialog/definition.d.ts.map +1 -1
- package/web-components/dialog/definition.js.map +1 -1
- package/web-components/divider/component.d.ts.map +1 -1
- package/web-components/divider/component.js +1 -1
- package/web-components/divider/component.js.map +1 -1
- package/web-components/divider/definition.d.ts.map +1 -1
- package/web-components/divider/definition.js.map +1 -1
- package/web-components/dragbox/component.d.ts.map +1 -1
- package/web-components/dragbox/component.js.map +1 -1
- package/web-components/dragbox/definition.d.ts.map +1 -1
- package/web-components/dragbox/definition.js.map +1 -1
- package/web-components/flex/component.d.ts.map +1 -1
- package/web-components/flex/component.js.map +1 -1
- package/web-components/flex/definition.d.ts.map +1 -1
- package/web-components/flex/definition.js.map +1 -1
- package/web-components/form/component.d.ts.map +1 -1
- package/web-components/form/component.js.map +1 -1
- package/web-components/form/definition.d.ts.map +1 -1
- package/web-components/form/definition.js.map +1 -1
- package/web-components/grid/component.d.ts.map +1 -1
- package/web-components/grid/component.js.map +1 -1
- package/web-components/grid/definition.d.ts.map +1 -1
- package/web-components/grid/definition.js.map +1 -1
- package/web-components/heading/component.d.ts +2 -2
- package/web-components/heading/component.d.ts.map +1 -1
- package/web-components/heading/component.js +1 -1
- package/web-components/heading/component.js.map +1 -1
- package/web-components/heading/definition.d.ts.map +1 -1
- package/web-components/heading/definition.js.map +1 -1
- package/web-components/input/component.d.ts +3 -3
- package/web-components/input/component.d.ts.map +1 -1
- package/web-components/input/component.js +1 -1
- package/web-components/input/component.js.map +1 -1
- package/web-components/input/definition.d.ts.map +1 -1
- package/web-components/input/definition.js.map +1 -1
- package/web-components/layout/component.d.ts.map +1 -1
- package/web-components/layout/component.js.map +1 -1
- package/web-components/layout/definition.d.ts.map +1 -1
- package/web-components/layout/definition.js.map +1 -1
- package/web-components/link/component.d.ts +13 -2
- package/web-components/link/component.d.ts.map +1 -1
- package/web-components/link/component.js +1 -1
- package/web-components/link/component.js.map +1 -1
- package/web-components/link/definition.d.ts.map +1 -1
- package/web-components/link/definition.js.map +1 -1
- package/web-components/progress/component.d.ts.map +1 -1
- package/web-components/progress/component.js +1 -1
- package/web-components/progress/component.js.map +1 -1
- package/web-components/progress/definition.d.ts.map +1 -1
- package/web-components/progress/definition.js.map +1 -1
- package/web-components/range/component.d.ts.map +1 -1
- package/web-components/range/component.js +1 -1
- package/web-components/range/component.js.map +1 -1
- package/web-components/range/definition.d.ts.map +1 -1
- package/web-components/range/definition.js.map +1 -1
- package/web-components/rotate/component.d.ts.map +1 -1
- package/web-components/rotate/component.js +1 -1
- package/web-components/rotate/component.js.map +1 -1
- package/web-components/rotate/definition.d.ts.map +1 -1
- package/web-components/rotate/definition.js.map +1 -1
- package/web-components/router/component.d.ts.map +1 -1
- package/web-components/router/component.js.map +1 -1
- package/web-components/router/definition.d.ts.map +1 -1
- package/web-components/router/definition.js.map +1 -1
- package/web-components/select/component.d.ts +2 -1
- package/web-components/select/component.d.ts.map +1 -1
- package/web-components/select/component.js +1 -1
- package/web-components/select/component.js.map +1 -1
- package/web-components/select/definition.d.ts +1 -1
- package/web-components/select/definition.d.ts.map +1 -1
- package/web-components/select/definition.js.map +1 -1
- package/web-components/skeleton/component.d.ts +0 -9
- package/web-components/skeleton/component.d.ts.map +1 -1
- package/web-components/skeleton/component.js +1 -1
- package/web-components/skeleton/component.js.map +1 -1
- package/web-components/skeleton/definition.d.ts.map +1 -1
- package/web-components/skeleton/definition.js.map +1 -1
- package/web-components/split/component.d.ts +1 -1
- package/web-components/split/component.d.ts.map +1 -1
- package/web-components/split/component.js +1 -1
- package/web-components/split/component.js.map +1 -1
- package/web-components/split/definition.d.ts.map +1 -1
- package/web-components/split/definition.js.map +1 -1
- package/web-components/switch/component.d.ts.map +1 -1
- package/web-components/switch/component.js +1 -1
- package/web-components/switch/component.js.map +1 -1
- package/web-components/switch/definition.d.ts.map +1 -1
- package/web-components/switch/definition.js.map +1 -1
- package/web-components/tabs/component.d.ts +3 -3
- package/web-components/tabs/component.d.ts.map +1 -1
- package/web-components/tabs/component.js +1 -1
- package/web-components/tabs/component.js.map +1 -1
- package/web-components/tabs/definition.d.ts.map +1 -1
- package/web-components/tabs/definition.js.map +1 -1
- package/web-components/text/component.d.ts +1 -1
- package/web-components/text/component.d.ts.map +1 -1
- package/web-components/text/component.js +1 -1
- package/web-components/text/component.js.map +1 -1
- package/web-components/text/definition.d.ts.map +1 -1
- package/web-components/text/definition.js.map +1 -1
- package/web-components/time/component.d.ts.map +1 -1
- package/web-components/time/component.js.map +1 -1
- package/web-components/time/definition.d.ts.map +1 -1
- package/web-components/time/definition.js.map +1 -1
- package/web-components/tooltip/component.d.ts.map +1 -1
- package/web-components/tooltip/component.js.map +1 -1
- package/web-components/tooltip/definition.d.ts.map +1 -1
- package/web-components/tooltip/definition.js.map +1 -1
- package/web-components/typewriter/component.d.ts.map +1 -1
- package/web-components/typewriter/component.js.map +1 -1
- package/web-components/typewriter/definition.d.ts.map +1 -1
- package/web-components/typewriter/definition.js.map +1 -1
- package/web-types.json +1 -1
- package/internal/outline.d.ts +0 -19
- package/internal/outline.d.ts.map +0 -1
- package/internal/outline.js +0 -2
- package/internal/outline.js.map +0 -1
- package/internal/super-anchor.d.ts +0 -18
- package/internal/super-anchor.d.ts.map +0 -1
- package/internal/super-anchor.js +0 -2
- package/internal/super-anchor.js.map +0 -1
- package/src/internal/outline.ts +0 -58
- package/src/internal/super-anchor.ts +0 -60
package/build/godown+lit.js
CHANGED
@@ -1,59 +1,59 @@
|
|
1
1
|
/**
|
2
2
|
* @license MIT
|
3
|
-
* @version 3.
|
3
|
+
* @version 3.11.1
|
4
4
|
*/
|
5
|
-
function t(t,e,o
|
5
|
+
function t(t,e,s,o){var a,l=arguments.length,h=l<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,s):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)h=Reflect.decorate(t,e,s,o);else for(var d=t.length-1;d>=0;d--)(a=t[d])&&(h=(l<3?a(h):l>3?a(e,s,h):a(e,s))||h);return l>3&&h&&Object.defineProperty(e,s,h),h}"function"==typeof SuppressedError&&SuppressedError;const e=t=>null==t,s=t=>"string"==typeof t,o=t=>null!==t&&"object"==typeof t,{isArray:a}=Array,l=(t,...e)=>{const s={};for(const o in t)e.includes(o)||(s[o]=t[o]);return s},h=t=>(t=>{var e;return(null===(e=t.match(/[A-Z][^A-Z_-\s]*|[^A-Z_-\s]+/g))||void 0===e?void 0:e.map((t=>t.toLowerCase())))||[]})(t).join("-");
|
6
6
|
/**
|
7
7
|
* @license
|
8
8
|
* Copyright 2019 Google LLC
|
9
9
|
* SPDX-License-Identifier: BSD-3-Clause
|
10
|
-
|
10
|
+
*/
|
11
|
+
const d=globalThis,c=d.ShadowRoot&&(void 0===d.ShadyCSS||d.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,p=Symbol(),u=new WeakMap;let f=class n{constructor(t,e,s){if(this._$cssResult$=!0,s!==p)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(c&&void 0===t){const s=void 0!==e&&1===e.length;s&&(t=u.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),s&&u.set(e,t))}return t}toString(){return this.cssText}};const v=t=>new f("string"==typeof t?t:t+"",void 0,p),m=(t,...e)=>{const s=1===t.length?t[0]:e.reduce(((e,s,o)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+t[o+1]),t[0]);return new f(s,t,p)},g=c?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return v(e)})(t):t
|
11
12
|
/**
|
12
13
|
* @license
|
13
14
|
* Copyright 2017 Google LLC
|
14
15
|
* SPDX-License-Identifier: BSD-3-Clause
|
15
|
-
*/,{is:
|
16
|
+
*/,{is:y,defineProperty:$,getOwnPropertyDescriptor:_,getOwnPropertyNames:w,getOwnPropertySymbols:x,getPrototypeOf:C}=Object,S=globalThis,A=S.trustedTypes,E=A?A.emptyScript:"",T=S.reactiveElementPolyfillSupport,P=(t,e)=>t,O={toAttribute(t,e){switch(e){case Boolean:t=t?E:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let s=t;switch(e){case Boolean:s=null!==t;break;case Number:s=null===t?null:Number(t);break;case Object:case Array:try{s=JSON.parse(t)}catch(t){s=null}}return s}},B=(t,e)=>!y(t,e),D={attribute:!0,type:String,converter:O,reflect:!1,hasChanged:B};Symbol.metadata??=Symbol("metadata"),S.litPropertyMetadata??=new WeakMap;let U=class b extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=D){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){const s=Symbol(),o=this.getPropertyDescriptor(t,s,e);void 0!==o&&$(this.prototype,t,o)}}static getPropertyDescriptor(t,e,s){const{get:o,set:a}=_(this.prototype,t)??{get(){return this[e]},set(t){this[e]=t}};return{get(){return o?.call(this)},set(e){const l=o?.call(this);a.call(this,e),this.requestUpdate(t,l,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??D}static _$Ei(){if(this.hasOwnProperty(P("elementProperties")))return;const t=C(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(P("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(P("properties"))){const t=this.properties,e=[...w(t),...x(t)];for(const s of e)this.createProperty(s,t[s])}const t=this[Symbol.metadata];if(null!==t){const e=litPropertyMetadata.get(t);if(void 0!==e)for(const[t,s]of e)this.elementProperties.set(t,s)}this._$Eh=new Map;for(const[t,e]of this.elementProperties){const s=this._$Eu(t,e);void 0!==s&&this._$Eh.set(s,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const s=new Set(t.flat(1/0).reverse());for(const t of s)e.unshift(g(t))}else void 0!==t&&e.push(g(t));return e}static _$Eu(t,e){const s=e.attribute;return!1===s?void 0:"string"==typeof s?s:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)))}addController(t){(this._$EO??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const s of e.keys())this.hasOwnProperty(s)&&(t.set(s,this[s]),delete this[s]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return((t,e)=>{if(c)t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const s of e){const e=document.createElement("style"),o=d.litNonce;void 0!==o&&e.setAttribute("nonce",o),e.textContent=s.cssText,t.appendChild(e)}})(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach((t=>t.hostConnected?.()))}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach((t=>t.hostDisconnected?.()))}attributeChangedCallback(t,e,s){this._$AK(t,s)}_$EC(t,e){const s=this.constructor.elementProperties.get(t),o=this.constructor._$Eu(t,s);if(void 0!==o&&!0===s.reflect){const a=(void 0!==s.converter?.toAttribute?s.converter:O).toAttribute(e,s.type);this._$Em=t,null==a?this.removeAttribute(o):this.setAttribute(o,a),this._$Em=null}}_$AK(t,e){const s=this.constructor,o=s._$Eh.get(t);if(void 0!==o&&this._$Em!==o){const t=s.getPropertyOptions(o),a="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:O;this._$Em=o,this[o]=a.fromAttribute(e,t.type),this._$Em=null}}requestUpdate(t,e,s){if(void 0!==t){if(s??=this.constructor.getPropertyOptions(t),!(s.hasChanged??B)(this[t],e))return;this.P(t,e,s)}!1===this.isUpdatePending&&(this._$ES=this._$ET())}P(t,e,s){this._$AL.has(t)||this._$AL.set(t,e),!0===s.reflect&&this._$Em!==t&&(this._$Ej??=new Set).add(t)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,e]of this._$Ep)this[t]=e;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[e,s]of t)!0!==s.wrapped||this._$AL.has(e)||void 0===this[e]||this.P(e,this[e],s)}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$EO?.forEach((t=>t.hostUpdate?.())),this.update(e)):this._$EU()}catch(e){throw t=!1,this._$EU(),e}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$EO?.forEach((t=>t.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Ej&&=this._$Ej.forEach((t=>this._$EC(t,this[t]))),this._$EU()}updated(t){}firstUpdated(t){}};U.elementStyles=[],U.shadowRootOptions={mode:"open"},U[P("elementProperties")]=new Map,U[P("finalized")]=new Map,T?.({ReactiveElement:U}),(S.reactiveElementVersions??=[]).push("2.0.4");
|
16
17
|
/**
|
17
18
|
* @license
|
18
19
|
* Copyright 2017 Google LLC
|
19
20
|
* SPDX-License-Identifier: BSD-3-Clause
|
20
21
|
*/
|
21
|
-
const
|
22
|
+
const j=globalThis,V=j.trustedTypes,G=V?V.createPolicy("lit-html",{createHTML:t=>t}):void 0,F="$lit$",W=`lit$${Math.random().toFixed(9).slice(2)}$`,q="?"+W,Y=`<${q}>`,X=document,Z=()=>X.createComment(""),K=t=>null===t||"object"!=typeof t&&"function"!=typeof t,Q=Array.isArray,J="[ \t\n\f\r]",tt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,et=/-->/g,it=/>/g,st=RegExp(`>|${J}(?:([^\\s"'>=/]+)(${J}*=${J}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),ot=/'/g,rt=/"/g,nt=/^(?:script|style|textarea|title)$/i,at=t=>(e,...s)=>({_$litType$:t,strings:e,values:s}),lt=at(1),ht=at(2),dt=Symbol.for("lit-noChange"),ct=Symbol.for("lit-nothing"),pt=new WeakMap,ut=X.createTreeWalker(X,129);function ft(t,e){if(!Q(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==G?G.createHTML(e):e}class N{constructor({strings:t,_$litType$:e},s){let o;this.parts=[];let a=0,l=0;const h=t.length-1,d=this.parts,[c,p]=((t,e)=>{const s=t.length-1,o=[];let a,l=2===e?"<svg>":3===e?"<math>":"",h=tt;for(let e=0;e<s;e++){const s=t[e];let d,c,p=-1,u=0;for(;u<s.length&&(h.lastIndex=u,c=h.exec(s),null!==c);)u=h.lastIndex,h===tt?"!--"===c[1]?h=et:void 0!==c[1]?h=it:void 0!==c[2]?(nt.test(c[2])&&(a=RegExp("</"+c[2],"g")),h=st):void 0!==c[3]&&(h=st):h===st?">"===c[0]?(h=a??tt,p=-1):void 0===c[1]?p=-2:(p=h.lastIndex-c[2].length,d=c[1],h=void 0===c[3]?st:'"'===c[3]?rt:ot):h===rt||h===ot?h=st:h===et||h===it?h=tt:(h=st,a=void 0);const f=h===st&&t[e+1].startsWith("/>")?" ":"";l+=h===tt?s+Y:p>=0?(o.push(d),s.slice(0,p)+F+s.slice(p)+W+f):s+W+(-2===p?e:f)}return[ft(t,l+(t[s]||"<?>")+(2===e?"</svg>":3===e?"</math>":"")),o]})(t,e);if(this.el=N.createElement(c,s),ut.currentNode=this.el.content,2===e||3===e){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(o=ut.nextNode())&&d.length<h;){if(1===o.nodeType){if(o.hasAttributes())for(const t of o.getAttributeNames())if(t.endsWith(F)){const e=p[l++],s=o.getAttribute(t).split(W),h=/([.?@])?(.*)/.exec(e);d.push({type:1,index:a,name:h[2],strings:s,ctor:"."===h[1]?H:"?"===h[1]?I:"@"===h[1]?L:mt}),o.removeAttribute(t)}else t.startsWith(W)&&(d.push({type:6,index:a}),o.removeAttribute(t));if(nt.test(o.tagName)){const t=o.textContent.split(W),e=t.length-1;if(e>0){o.textContent=V?V.emptyScript:"";for(let s=0;s<e;s++)o.append(t[s],Z()),ut.nextNode(),d.push({type:2,index:++a});o.append(t[e],Z())}}}else if(8===o.nodeType)if(o.data===q)d.push({type:2,index:a});else{let t=-1;for(;-1!==(t=o.data.indexOf(W,t+1));)d.push({type:7,index:a}),t+=W.length-1}a++}}static createElement(t,e){const s=X.createElement("template");return s.innerHTML=t,s}}function vt(t,e,s=t,o){if(e===dt)return e;let a=void 0!==o?s._$Co?.[o]:s._$Cl;const l=K(e)?void 0:e._$litDirective$;return a?.constructor!==l&&(a?._$AO?.(!1),void 0===l?a=void 0:(a=new l(t),a._$AT(t,s,o)),void 0!==o?(s._$Co??=[])[o]=a:s._$Cl=a),void 0!==a&&(e=vt(t,a._$AS(t,e.values),a,o)),e}class M{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:s}=this._$AD,o=(t?.creationScope??X).importNode(e,!0);ut.currentNode=o;let a=ut.nextNode(),l=0,h=0,d=s[0];for(;void 0!==d;){if(l===d.index){let e;2===d.type?e=new R(a,a.nextSibling,this,t):1===d.type?e=new d.ctor(a,d.name,d.strings,this,t):6===d.type&&(e=new z(a,this,t)),this._$AV.push(e),d=s[++h]}l!==d?.index&&(a=ut.nextNode(),l++)}return ut.currentNode=X,o}p(t){let e=0;for(const s of this._$AV)void 0!==s&&(void 0!==s.strings?(s._$AI(t,s,e),e+=s.strings.length-2):s._$AI(t[e])),e++}}class R{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,s,o){this.type=2,this._$AH=ct,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=s,this.options=o,this._$Cv=o?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t?.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=vt(this,t,e),K(t)?t===ct||null==t||""===t?(this._$AH!==ct&&this._$AR(),this._$AH=ct):t!==this._$AH&&t!==dt&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):(t=>Q(t)||"function"==typeof t?.[Symbol.iterator])(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==ct&&K(this._$AH)?this._$AA.nextSibling.data=t:this.T(X.createTextNode(t)),this._$AH=t}$(t){const{values:e,_$litType$:s}=t,o="number"==typeof s?this._$AC(t):(void 0===s.el&&(s.el=N.createElement(ft(s.h,s.h[0]),this.options)),s);if(this._$AH?._$AD===o)this._$AH.p(e);else{const t=new M(o,this),s=t.u(this.options);t.p(e),this.T(s),this._$AH=t}}_$AC(t){let e=pt.get(t.strings);return void 0===e&&pt.set(t.strings,e=new N(t)),e}k(t){Q(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let s,o=0;for(const a of t)o===e.length?e.push(s=new R(this.O(Z()),this.O(Z()),this,this.options)):s=e[o],s._$AI(a),o++;o<e.length&&(this._$AR(s&&s._$AB.nextSibling,o),e.length=o)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}}let mt=class k{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,s,o,a){this.type=1,this._$AH=ct,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=a,s.length>2||""!==s[0]||""!==s[1]?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=ct}_$AI(t,e=this,s,o){const a=this.strings;let l=!1;if(void 0===a)t=vt(this,t,e,0),l=!K(t)||t!==this._$AH&&t!==dt,l&&(this._$AH=t);else{const o=t;let h,d;for(t=a[0],h=0;h<a.length-1;h++)d=vt(this,o[s+h],e,h),d===dt&&(d=this._$AH[h]),l||=!K(d)||d!==this._$AH[h],d===ct?t=ct:t!==ct&&(t+=(d??"")+a[h+1]),this._$AH[h]=d}l&&!o&&this.j(t)}j(t){t===ct?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}};class H extends mt{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===ct?void 0:t}}class I extends mt{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==ct)}}class L extends mt{constructor(t,e,s,o,a){super(t,e,s,o,a),this.type=5}_$AI(t,e=this){if((t=vt(this,t,e,0)??ct)===dt)return;const s=this._$AH,o=t===ct&&s!==ct||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,a=t!==ct&&(s===ct||o);o&&this.element.removeEventListener(this.name,this,s),a&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}}class z{constructor(t,e,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(t){vt(this,t)}}const gt=j.litHtmlPolyfillSupport;gt?.(N,R),(j.litHtmlVersions??=[]).push("3.2.1");
|
22
23
|
/**
|
23
24
|
* @license
|
24
25
|
* Copyright 2017 Google LLC
|
25
26
|
* SPDX-License-Identifier: BSD-3-Clause
|
26
|
-
*/
|
27
|
+
*/
|
28
|
+
let yt=class r extends U{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,e,s)=>{const o=s?.renderBefore??e;let a=o._$litPart$;if(void 0===a){const t=s?.renderBefore??null;o._$litPart$=a=new R(e.insertBefore(Z(),t),t,void 0,s??{})}return a._$AI(t),a})(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return dt}};yt._$litElement$=!0,yt.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:yt});const $t=globalThis.litElementPolyfillSupport;function*bt(t){for(const e of a(t)?t:Object.entries(t))e&&(yield e)}$t?.({LitElement:yt}),(globalThis.litElementVersions??=[]).push("4.1.1");const _t=t=>o(t)&&"_$cssResult$"in t,wt=t=>!e(t)&&!1!==t,xt=t=>{let e="";for(const[s,a]of bt(t))if(a){const t=o(a)&&!_t(a)?kt(a):a;wt(t)&&(e+=s?`${s}{${t}}`:t)}return e},kt=t=>{let e="";for(const[s,o]of bt(t))s&&wt(o)&&(e+=`${s}:${o};`);return e},Ct=(t,e)=>t?`var(${t})`:"";class StyleController{constructor(t,e){(this.host=t).addController(this),this.computeStyle=e}hostUpdated(){const t=this.host.shadowRoot?.adoptedStyleSheets;if(!t)return;void 0!==this.styleID&&t.splice(this.styleID,1);const e=this.computeStyle();this.styleID=e?t.push((t=>{if(s(t)){const e=new CSSStyleSheet;return e.replaceSync(t),e}return _t(t)?t.styleSheet:t})(e))-1:void 0}}const St=(...t)=>e=>{const s=[];for(let t=Object.getPrototypeOf(e);t.styles;t=Object.getPrototypeOf(t))s.push(t.styles);e.styles=[...s,...t]},At=(t,e)=>s=>{t||=h(s.name),s.protoName=t;(({tagName:t,styles:e,autoDefine:s=!1,registry:o=customElements})=>a=>{a.elementTagName=t,e&&St(e)(a),s&&!o.get(t)&&o.define(t,a)})({tagName:s.godownConfig.tag(t),...e})(s)}
|
27
29
|
/**
|
28
30
|
* @license
|
29
31
|
* Copyright 2017 Google LLC
|
30
32
|
* SPDX-License-Identifier: BSD-3-Clause
|
31
|
-
|
33
|
+
*/,Rt={attribute:!0,type:String,converter:O,reflect:!1,hasChanged:B},Et=(t=Rt,e,s)=>{const{kind:o,metadata:a}=s;let l=globalThis.litPropertyMetadata.get(a);if(void 0===l&&globalThis.litPropertyMetadata.set(a,l=new Map),l.set(s.name,t),"accessor"===o){const{name:o}=s;return{set(s){const a=e.get.call(this);e.set.call(this,s),this.requestUpdate(o,a,t)},init(e){return void 0!==e&&this.P(o,void 0,t),e}}}if("setter"===o){const{name:o}=s;return function(s){const a=this[o];e.call(this,s),this.requestUpdate(o,a,t)}}throw Error("Unsupported decorator location: "+o)};function Tt(t){return(e,s)=>"object"==typeof s?Et(t,e,s):((t,e,s)=>{const o=e.hasOwnProperty(s);return e.constructor.createProperty(s,o?{...t,wrapped:!0}:t),o?Object.getOwnPropertyDescriptor(e,s):void 0})(t,e,s)
|
32
34
|
/**
|
33
35
|
* @license
|
34
36
|
* Copyright 2017 Google LLC
|
35
37
|
* SPDX-License-Identifier: BSD-3-Clause
|
36
|
-
|
38
|
+
*/}function Mt(t){return Tt({...t,state:!0,attribute:!1})}
|
37
39
|
/**
|
38
40
|
* @license
|
39
41
|
* Copyright 2017 Google LLC
|
40
42
|
* SPDX-License-Identifier: BSD-3-Clause
|
41
|
-
*/
|
43
|
+
*/const Pt=(t,e,s)=>(s.configurable=!0,s.enumerable=!0,Reflect.decorate&&"object"!=typeof e&&Object.defineProperty(t,e,s),s)
|
42
44
|
/**
|
43
45
|
* @license
|
44
46
|
* Copyright 2017 Google LLC
|
45
47
|
* SPDX-License-Identifier: BSD-3-Clause
|
46
|
-
|
48
|
+
*/;function Nt(t,e){return(s,o,a)=>{const l=e=>e.renderRoot?.querySelector(t)??null;if(e){const{get:t,set:e}="object"==typeof o?s:a??(()=>{const t=Symbol();return{get(){return this[t]},set(e){this[t]=e}}})();return Pt(s,o,{get(){let s=t.call(this);return void 0===s&&(s=l(this),(null!==s||this.hasUpdated)&&e.call(this,s)),s}})}return Pt(s,o,{get(){return l(this)}})}}
|
47
49
|
/**
|
48
50
|
* @license
|
49
51
|
* Copyright 2017 Google LLC
|
50
52
|
* SPDX-License-Identifier: BSD-3-Clause
|
51
|
-
*/
|
52
|
-
let Ot=class r extends Z{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,e,o)=>{const s=o?.renderBefore??e;let a=s._$litPart$;if(void 0===a){const t=o?.renderBefore??null;s._$litPart$=a=new R(e.insertBefore(ut(),t),t,void 0,o??{})}return a._$AI(t),a})(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return At}};Ot._$litElement$=!0,Ot.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:Ot});const zt=globalThis.litElementPolyfillSupport;zt?.({LitElement:Ot}),(globalThis.litElementVersions??=[]).push("4.1.1");
|
53
|
+
*/let Ot;function Bt(t){return(e,s)=>Pt(e,s,{get(){return(this.renderRoot??(Ot??=document.createDocumentFragment())).querySelectorAll(t)}})}const It=(t,e=!0)=>{return Nt((s=t,o?`::part(${s})`:((t,e)=>e?`[${t}~="${e}"]`:`[${t}]`)("part",s)),e);
|
53
54
|
/**
|
54
55
|
* @license
|
55
56
|
* Copyright 2017 Google LLC
|
56
57
|
* SPDX-License-Identifier: BSD-3-Clause
|
57
|
-
*/
|
58
|
-
const Bt=6;let Dt=class i{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,o){this._$Ct=t,this._$AM=e,this._$Ci=o}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}};function Ut(t,s){(t=>e(t)||!1===t)(s)?this.removeAttribute(t):!0===s?this.setAttribute(t,""):o(s)||(t=>"number"==typeof t)(s)&&!Number.isNaN(s)?this.setAttribute(t,String(s)):this[t]=s}const Ht=(t=>(...e)=>({_$litDirective$:t,values:e}))(class AttrDirective extends Dt{render(t,e){}update(t,[e,o=Ut]){if(e&&t.type===Bt)for(const s in e)o.call(t.element,s,e[s]);return At}}),Lt=((t,e)=>o=>t({...e,...o}))(Ht,{width:"1em",height:"1em",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"}),Vt=t=>Ct`<slot name="${t||Rt}"></slot>`,jt=(t,e)=>{if(!t)return Rt;const s=o(t)?t:v(t);return s?Ct`<style media="${Rt}">${s}</style>`:Rt},Gt=t=>(e,...s)=>{const a=St(e,s),l=o(t)?t:t.join(" "),h=t=>Ct`<svg viewBox="${l}" ${Lt(t)}>${a}</svg>`;return h.body=a,h.viewBox=l,h};function*Ft(t,e,o){for(let o=0;o<t;o++)yield e(o)}const qt=(...t)=>t.reduce(((t,e)=>{if(!e)return t;if(a(e))return h(t,qt(...e)," ");if(s(e)){for(const o in e)e[o]&&(t=h(t,o," "));return t}return h(t,e," ")}),"");function Wt(t,e=this){if(!e||!t)return[];const o=new Set;e instanceof Element&&e.shadowRoot&&Wt(t,e.shadowRoot).forEach((t=>o.add(t))),e.querySelectorAll(t).forEach((t=>o.add(t)));for(const s of e.children)Wt(t,s).forEach((t=>o.add(t)));return Array.from(o)}function Yt(t,e=this){if(!e||!t)return null;let o;if(e instanceof Element&&e.shadowRoot&&(o=Yt(t,e.shadowRoot),o))return o;if(o=e.querySelector(t),o)return o;for(const s of e.children)if(o=Yt(t,s),o)return o;return null}class Events{constructor(){this.inner=new Map}add(t,e,o,s){if(!t||!o)return;const a=this.inner.get(e)||new Map,l=a.get(t)||new Set;return l.add(o),a.set(t,l),this.inner.set(e,a),t.addEventListener(e,o,s),o}remove(t,e,o,s){if(!t||!o)return;const a=this.inner.get(e);if(a){const s=a.get(t);s&&(s.delete(o),s.size||(a.delete(t),a.size||this.inner.delete(e)))}t.removeEventListener(e,o,s)}removeAll(){this.inner.forEach(((t,e)=>{t.forEach(((t,o)=>{t.forEach((t=>{o.removeEventListener(e,t)}))})),t.clear()})),this.inner.clear()}}class Observers{constructor(){this.inner=new Map}add(t,e,o,s){const[a,l]=((t,e,o)=>{let s,a;switch(t){case MutationObserver:case ResizeObserver:s=new t(e),a=t=>s.observe(t,o);break;case IntersectionObserver:s=new t(e,o),a=t=>s.observe(t);break;case PerformanceObserver:s=new t(e),a=()=>s.observe(o)}return[s,a]})(e,o,s);if(a)return this.inner.set(a,(this.inner.get(a)||new Set).add(t)),l(t),a}remove(t,e){t.disconnect();const o=this.inner.get(t);"unobserve"in t?(e?(t.unobserve(e),o?.delete(e)):(o?.forEach((e=>{t.unobserve(e)})),o?.clear()),o&&!o.size&&this.inner.delete(t)):o&&this.inner.delete(t)}removeAll(){this.inner.forEach(((t,e)=>{this.remove(e)}))}}class Ranger{constructor(t,e,o){this.max=Math.max(t,e),this.min=Math.min(t,e),this.diff=this.max-this.min,this.step=o}random(){return this.normalize(Math.random()*this.diff+this.min)}present(t){return this.normalize(t*this.diff)}normalize(t){return t=this.restrict(t),this.step?this.min+Math.round((t-this.min)/this.step)*this.step:t}restrict(t){return this.max<=t?this.max:this.min>=t?this.min:t}}class RouteTree{constructor(){this.matchType=RouteTree.MatchTypes.strict,this.children=[]}insert(t,e,o=0){if(e||(e=RouteTree.split(t)),e.length===o)return void(this.pattern=t);const s=e[o];let a=this.findStrict(s);a||(a=new RouteTree,a.part=s,a.matchType=RouteTree.dynamic(s).matchType,this.children.push(a),this.sorted=!1),a.insert(t,e,o+1)}search(t,e=0){if(o(t)&&(t=RouteTree.split(t)),this.sorted||this.sort(),t.length===e||RouteTree.dynamic(this.part).matchType===RouteTree.MatchTypes.multi)return this.pattern?this:null;const s=t[e],a=this.filterWide(s);for(const o of a){const s=o.search(t,e+1);if(null!==s)return s}return null}findStrict(t){return this.children.find((e=>e.part===t))||null}filterWide(t){return this.children.filter((e=>e.part===t||e.matchType))}sort(){const{children:t}=this;if(t.length){t.sort(((t,e)=>t.matchType-e.matchType));for(const e of t)e.sort()}this.sorted=!0}static parseParams(t,e){const o=RouteTree.split(t),s=RouteTree.split(e),a={};for(let t=0;t<s.length;t++){const e=s[t],{key:l,matchType:h}=RouteTree.dynamic(e);if(h===RouteTree.MatchTypes.single)a[l]=o[t];else if(h===RouteTree.MatchTypes.multi){a[l]=o.slice(t).join("/");break}}return a}static dynamic(t){if(t){if(c(t,"{","}")||c(t,"[","]")){t=t.slice(1,-1);const e=RouteTree.dynamic(t);return e.matchType||=RouteTree.MatchTypes.single,e}if(t.startsWith(":"))return{key:t.slice(1),matchType:RouteTree.MatchTypes.single};if(t.startsWith("*"))return{key:t.slice(1),matchType:RouteTree.MatchTypes.multi};if(t.startsWith("..."))return{key:t.slice(3),matchType:RouteTree.MatchTypes.multi}}return{key:t,matchType:RouteTree.MatchTypes.strict}}static split(t){return t.split("/").filter((t=>t))}}RouteTree.MatchTypes={strict:0,single:1,multi:2};class Timeouts{constructor(){this.inner=new Set}add(t){if(void 0!==t)return t=+t,this.inner.has(t)&&clearTimeout(t),this.inner.add(t),t}remove(t){void 0!==t&&(t=+t,clearTimeout(t),this.inner.delete(t))}removeAll(){this.inner.forEach(clearTimeout),this.inner.clear()}}const Zt=(t,{attribute:e})=>!0===e||void 0===e?String(t).toLowerCase():!1!==e&&"symbol"!=typeof t?e:void 0,Xt=/^[\s\S]*{[\s\S]*}$/;class GodownElement extends Ot{static define(t=this.elementTagName,e){this.isDefined()||this.godownConfig.define(t,this,e)}static isDefined(){return!!this.getDefined()}static getDefined(){return this.godownConfig.get(this.elementTagName)}static finalize(){super.finalize(),this.elementAttributes=new Map;for(const[t,e]of this.elementProperties.entries()){const o=Zt(t,e);o&&this.elementAttributes.set(o,t)}}get observedRecord(){const t={};for(const[e,o]of this.constructor.elementAttributes.entries())t[e]=this[o];return t}get _slot(){return this.shadowRoot?this.shadowRoot.querySelector("slot:not([name])"):null}get _slotAll(){return this.shadowRoot?[...this.shadowRoot.querySelectorAll("slot")]:[]}get _slottedAll(){return[...this.querySelectorAll("[slot]")]}get _slottedNames(){return this._slottedAll.map((t=>t.getAttribute("slot"))).filter((t=>t))}getBoundingClientRect(){let t;return this.contents&&(t=this.contentsRoot||this.shadowRoot?.firstElementChild)&&t!==this?t.getBoundingClientRect():super.getBoundingClientRect()}getClientRects(){let t;return this.contents&&(t=this.contentsRoot||this.shadowRoot?.firstElementChild)&&t!==this?t.getClientRects():super.getClientRects()}get stylex(){return this.__stylex.css}set stylex(t){t=t.trim(),Xt.test(t)||(t=`:host{${t}}`),this.shadowRoot?(this.__stylex.index&&this.shadowRoot.adoptedStyleSheets.splice(this.__stylex.index,1),this.__stylex.css=t,this.__stylex.index=this.adoptStyles(t)):this.__stylex.lazy=t}constructor(t){super(),this.events=new Events,this.observers=new Observers,this.timeouts=new Timeouts,this.__stylex={},this.assign={...GodownElement.godownConfig?.assign||{},...t}}connectedCallback(){super.connectedCallback(),this.assign&&(Object.assign(this,this.assign),this.assign=null);const{lazy:t}=this.__stylex;t&&(this.adoptStyles(t),this.__stylex.lazy="")}disconnectedCallback(){this.events.removeAll(),this.observers.removeAll(),this.timeouts.removeAll()}mount(t){this.firstUpdated(t)}unmount(){this.disconnectedCallback()}remount(t){this.unmount(),this.connectedCallback(),this.mount(t)}deepQuerySelector(t){return Yt.call(this,t)}deepQuerySelectorAll(t){return Wt.call(this,t)}adoptStyles(...t){if(!this.shadowRoot||!t.length)return;const e=this.shadowRoot.adoptedStyleSheets,o=new CSSStyleSheet;return t.forEach((t=>o.insertRule(t.toString()))),e.push(o),e.length-1}dispatchCustomEvent(t,e,o){this.dispatchEvent(new CustomEvent(t,{detail:e,composed:!0,...o}))}}GodownElement.godownConfig=new class GodownConfig{constructor(t){this.assign=null,this.prefix="godown",this.suffix="",this.components=new Map,this.registry=customElements,t&&Object.assign(this,t)}tag(t){return d(this.prefix+"-"+t+"-"+this.suffix)}define(t,e,o){this.registry.define(t,e,o),this.components.set(t,e)}get(t){return this.registry.get(t)}getName(t){const{getName:e}=this.registry;return e?e(t):[...this.components.entries()].find((([,e])=>e===t))?.[0]||null}whenDefined(t){return this.registry.whenDefined(t)}upgrade(t){this.registry.upgrade(t)}},t([Q({type:Boolean,reflect:!0})],GodownElement.prototype,"contents",void 0),t([Q({reflect:!0})],GodownElement.prototype,"stylex",null);var Kt=Gt("0 0 56 56")`<path fill="currentColor" d="M28 4c13.255 0 24 10.745 24 24S41.255 52 28 52S4 41.255 4 28S14.745 4 28 4m0 4C16.954 8 8 16.954 8 28s8.954 20 20 20s20-8.954 20-20S39.046 8 28 8m10.788 11.93c.67.67.67 1.756 0 2.425l-13.36 13.36a1.715 1.715 0 0 1-2.424 0l-5.645-5.646a1.714 1.714 0 0 1 2.425-2.424l3.22 3.22c.67.67 1.755.67 2.425 0l10.934-10.934c.67-.67 1.755-.67 2.425 0"/>`,Qt=Gt("0 0 56 56")`<path fill="currentColor" d="M28 51.906c13.055 0 23.906-10.828 23.906-23.906c0-13.055-10.875-23.906-23.93-23.906C14.899 4.094 4.095 14.945 4.095 28c0 13.078 10.828 23.906 23.906 23.906m0-3.984C16.937 47.922 8.1 39.062 8.1 28c0-11.04 8.813-19.922 19.876-19.922c11.039 0 19.921 8.883 19.945 19.922c.023 11.063-8.883 19.922-19.922 19.922m-.023-15.68c1.124 0 1.757-.633 1.78-1.851l.352-12.375c.024-1.196-.914-2.086-2.156-2.086c-1.266 0-2.156.867-2.133 2.062l.305 12.399c.023 1.195.68 1.851 1.852 1.851m0 7.617c1.335 0 2.53-1.078 2.53-2.437c0-1.383-1.171-2.438-2.53-2.438c-1.383 0-2.532 1.078-2.532 2.438c0 1.336 1.172 2.437 2.532 2.437"/>`,Jt=Gt("0 0 56 56")`<path fill="currentColor" d="M28 51.906c13.055 0 23.906-10.828 23.906-23.906c0-13.055-10.875-23.906-23.93-23.906C14.899 4.094 4.095 14.945 4.095 28c0 13.078 10.828 23.906 23.906 23.906m0-3.984C16.937 47.922 8.1 39.062 8.1 28c0-11.04 8.813-19.922 19.876-19.922c11.039 0 19.921 8.883 19.945 19.922c.023 11.063-8.883 19.922-19.922 19.922m-.211-28.266c1.71 0 3.047-1.36 3.047-3.047c0-1.71-1.336-3.07-3.047-3.07s-3.047 1.36-3.047 3.07a3.026 3.026 0 0 0 3.047 3.047m-3.914 21.235h9.562c.961 0 1.711-.68 1.711-1.641c0-.914-.75-1.64-1.71-1.64H30.53V25.68c0-1.266-.656-2.11-1.828-2.11h-4.43c-.937 0-1.687.727-1.687 1.64c0 .962.75 1.642 1.687 1.642h2.532v10.757h-2.93c-.938 0-1.688.727-1.688 1.641c0 .96.75 1.64 1.688 1.64"/>`,te=Gt("0 0 56 56")`<path fill="currentColor" d="M19.504 43.152h16.969c.797 0 1.289-.492 1.289-1.289v-3.75c0-5.672 8.25-9.328 8.25-19.453C46.012 7.996 38.793.871 27.988.871s-18 7.125-18 17.79c0 10.124 8.227 13.78 8.227 19.452v3.75c0 .797.515 1.29 1.289 1.29m2.203-4.992c0-6.89-8.18-10.57-8.18-19.476c0-8.579 5.79-14.274 14.461-14.274c8.672 0 14.485 5.695 14.485 14.274c0 8.906-8.203 12.586-8.203 19.476v1.453H21.707Zm-1.336 11.32h15.235c1.195 0 2.156-.984 2.156-2.203s-.961-2.203-2.157-2.203H20.371c-1.195 0-2.156.985-2.156 2.203c0 1.22.96 2.203 2.156 2.203m7.617 5.649c3.235 0 5.508-1.477 5.742-3.75H22.246c.211 2.273 2.484 3.75 5.742 3.75"/>`,ee=Gt("0 0 56 56")`<path fill="currentColor" d="M28 51.906c13.055 0 23.906-10.828 23.906-23.906c0-13.055-10.875-23.906-23.93-23.906C14.899 4.094 4.095 14.945 4.095 28c0 13.078 10.828 23.906 23.906 23.906m0-3.984C16.937 47.922 8.1 39.062 8.1 28c0-11.04 8.813-19.922 19.876-19.922c11.039 0 19.921 8.883 19.945 19.922c.023 11.063-8.883 19.922-19.922 19.922m-.492-15.07c1.172 0 1.898-.727 1.898-1.664v-.282c0-1.312.75-2.133 2.39-3.21c2.274-1.5 3.891-2.884 3.891-5.673c0-3.914-3.468-6-7.453-6c-4.031 0-6.68 1.899-7.312 4.055c-.117.399-.211.774-.211 1.172c0 1.031.844 1.617 1.617 1.617c1.336 0 1.547-.726 2.297-1.594c.773-1.289 1.898-2.062 3.469-2.062c2.133 0 3.515 1.195 3.515 3c0 1.594-.984 2.367-3.023 3.773c-1.688 1.172-2.953 2.414-2.953 4.711V31c0 1.242.68 1.852 1.875 1.852m-.047 7.007c1.36 0 2.531-1.078 2.531-2.437c0-1.383-1.148-2.438-2.531-2.438s-2.531 1.078-2.531 2.438c0 1.336 1.171 2.437 2.53 2.437"/>`,ie=Gt("0 0 56 56")`<path fill="currentColor" d="M28 51.906c13.055 0 23.906-10.828 23.906-23.906c0-13.055-10.875-23.906-23.93-23.906C14.899 4.094 4.095 14.945 4.095 28c0 13.078 10.828 23.906 23.906 23.906m0-3.984C16.937 47.922 8.1 39.062 8.1 28c0-11.04 8.813-19.922 19.876-19.922c11.039 0 19.921 8.883 19.945 19.922c.023 11.063-8.883 19.922-19.922 19.922m-8.156-9.727c.656 0 1.148-.28 1.664-.797l15.75-15.984c.492-.492.797-1.078.797-1.617c0-1.078-.891-1.945-1.97-1.945c-.562 0-1.1.28-1.616.796L18.742 34.61c-.539.516-.797 1.102-.797 1.641c0 1.055.774 1.945 1.899 1.945"/>`,oe=Gt("0 0 56 56")`<path fill="currentColor" d="M28 51.906c13.055 0 23.906-10.828 23.906-23.906c0-13.055-10.875-23.906-23.93-23.906C14.899 4.094 4.095 14.945 4.095 28c0 13.078 10.828 23.906 23.906 23.906m0-3.984C16.937 47.922 8.1 39.062 8.1 28c0-11.04 8.813-19.922 19.876-19.922c11.039 0 19.921 8.883 19.945 19.922c.023 11.063-8.883 19.922-19.922 19.922m-8.016-9.984c.516 0 .985-.211 1.336-.586l6.657-6.68l6.656 6.68c.351.351.82.586 1.36.586c1.03 0 1.874-.868 1.874-1.899c0-.539-.21-.984-.562-1.336l-6.657-6.656l6.68-6.703c.375-.399.563-.797.563-1.313a1.865 1.865 0 0 0-1.875-1.875c-.493 0-.915.164-1.313.563l-6.727 6.703l-6.703-6.68c-.351-.375-.773-.539-1.289-.539c-1.054 0-1.875.797-1.875 1.852c0 .515.188.96.563 1.312l6.656 6.68l-6.656 6.68c-.375.328-.563.796-.563 1.312c0 1.031.82 1.898 1.875 1.898"/>`,re=Gt("0 0 56 56")`<path fill="currentColor" d="M10.023 43.023c-.796.797-.82 2.157 0 2.954c.82.796 2.157.796 2.977 0l15-15l15 15c.797.796 2.156.82 2.977 0c.796-.82.796-2.157 0-2.954L30.953 28l15.024-15c.796-.797.82-2.156 0-2.953c-.844-.82-2.18-.82-2.977 0l-15 15l-15-15c-.82-.82-2.18-.844-2.977 0c-.796.82-.796 2.156 0 2.953l15 15Z"/>`;const se=(t,e,o)=>({r:t,g:e,b:o,toString(){return`${this.r} ${this.g} ${this.b}`}}),ne={darkgray:[se(121,121,121),se(109,109,109),se(97,97,97),se(85,85,85),se(73,73,73),se(61,61,61),se(48,48,48),se(36,36,36),se(24,24,24),se(12,12,12)],lightgray:[se(243,243,243),se(231,231,231),se(219,219,219),se(206,206,206),se(194,194,194),se(182,182,182),se(170,170,170),se(158,158,158),se(146,146,146),se(133,133,133)],teal:[se(213,249,248),se(170,243,241),se(128,237,234),se(85,231,226),se(43,225,219),se(0,219,212),se(0,175,170),se(0,131,127),se(0,88,85),se(0,44,42)],blue:[se(213,240,255),se(170,224,255),se(128,209,255),se(85,193,255),se(43,178,255),se(0,162,255),se(0,130,204),se(0,97,153),se(0,65,102),se(0,32,51)],green:[se(221,243,221),se(186,231,186),se(152,219,152),se(117,206,117),se(82,194,82),se(48,182,48),se(38,146,38),se(29,109,29),se(19,73,19),se(10,36,10)],red:[se(251,221,221),se(247,186,187),se(243,152,154),se(239,118,120),se(235,83,86),se(231,49,52),se(185,39,42),se(139,29,31),se(92,20,21),se(46,10,10)],purple:[se(242,228,253),se(229,201,250),se(217,174,248),se(204,146,245),se(191,119,243),se(178,92,240),se(142,74,192),se(107,55,144),se(71,37,96),se(36,18,48)],orange:[se(255,235,213),se(255,216,170),se(255,196,128),se(255,176,85),se(255,157,43),se(255,137,0),se(204,110,0),se(153,82,0),se(102,55,0),se(51,27,0)],yellow:[se(251,252,216),se(247,248,177),se(243,245,138),se(239,242,98),se(235,238,59),se(231,235,20),se(185,188,16),se(139,141,12),se(92,94,8),se(46,47,4)],pink:[se(254,222,233),se(253,189,211),se(252,156,190),se(251,123,168),se(250,90,146),se(249,57,124),se(199,46,99),se(149,34,74),se(100,23,50),se(50,11,25)]};class GlobalStyle extends GodownElement{}const ae=((t,e)=>((t,e)=>((t,e)=>{if(!t||!e)return t;let o=0;for(;o<t.length&&e(t.slice(o,o+1));)o+=1;return t.slice(o)})(((t,e)=>{if(!t||!e)return t;let o=t.length;for(;o>0&&e(t.slice(o-1,o));)o-=1;return t.slice(0,o)})(t,e),e))(t,(t=>t===e)))(GlobalStyle.godownConfig.prefix,"-");function le(t,e=1){return function(t){return C(`--${t}`)}(ae+"-".repeat(e)+t)}const he={clipBackground:le("clip-background",2),active:le("active",2),passive:le("passive",2),_colors:{},input:le("input",2),white:le("color-white",2),black:le("color-black",2),color:le("color",2),radius:le("radius",2),outlineWidth:le("outline-width",2),outlineColor:le("outline-color",2)};var ce,de;GlobalStyle.styles=[C(`:host{${he.black}:rgb(0 0 0);${he.white}:rgb(255 255 255);`+(ce=(t,e,o)=>{he._colors[t]||=[],he._colors[t].push(C(he.color+"-"+t+"-"+e));const s=`-${t}-${e}`;return`${he.color+s}:rgb(${o});`},de=ne,Object.entries(de).flatMap((([t,e])=>e.map(((e,o)=>ce(t,o,e)))))).join("")+f([[he.active,`var(${he._colors.blue[5]})`],[he.passive,`var(${he._colors.darkgray[5]})`],[he.clipBackground,`linear-gradient(to bottom, var(${he._colors.lightgray[0]}), var(${he._colors.darkgray[0]}))`],[he.outlineColor,`var(${he._colors.darkgray[4]})`],[he.outlineWidth,".075em"]])+"}"),S`button,dialog,input{border:0;outline:0}*{box-sizing:border-box;font-size:100%;font-style:normal;margin:0;padding:0}:host{border-style:none;box-sizing:border-box;outline-style:none}a{text-decoration:none}span{white-space:nowrap}svg{-webkit-user-select:none;user-select:none}:host([contents]){display:contents}[part=root]{height:100%;width:100%}:host([contents]) [part=root]{height:inherit;width:inherit}:where(:host([contents]) [part=root]){all:inherit;display:revert}`,S`:host{${he.radius}:0.2em;border-radius:var(${he.radius})}`];const pe="alert",ue=le(pe),ve=t=>[he._colors[t][5],he._colors[t][9]],fe={green:ve("green"),blue:ve("blue"),orange:ve("orange"),red:ve("red"),yellow:ve("yellow"),purple:ve("purple"),teal:ve("teal"),pink:ve("pink"),gray:[he._colors.lightgray[5],he._colors.darkgray[5]],white:[he._colors.lightgray[2],he._colors.darkgray[7]],black:[he._colors.darkgray[8],he._colors.lightgray[5]]},me={tip:{color:"teal",icon:te},success:{color:"green",icon:Kt},info:{color:"blue",icon:Jt},warning:{color:"orange",icon:Qt},danger:{color:"red",icon:oe},error:{color:"red",icon:oe},help:{color:"purple",icon:ee},deprecated:{color:"gray",icon:ie}};let ge=class Alert extends GlobalStyle{constructor(){super(...arguments),this.__colorSC=new StyleController(this,(()=>{const t=me[this.call]?.color||this.color;if(t in fe){const[e,o]=fe[t];return v({":host":[[`${ue}--color`,`var(${e})`],[`${ue}--background`,`var(${o})`]]})}return null})),this.color="blue",this.autoclose=0,this.hideClose=!1,this.variant="dark"}render(){const t=this.call?me[this.call].icon():Vt("icon");return Ct`<div part="root" ${Ht(this.observedRecord)}> <div part="icon" class="start"> ${t} </div> <div part="content"> <strong part="title">${this.title||Vt("title")}</strong> ${this.content||Vt()} </div> ${this.hideClose||"blockquote"===this.variant?"":Ct`<div part="icon close" class="end" tabindex="0" @click="${this.close}"> ${re()} </div>`} </div>`}close(){this.remove(),this.dispatchCustomEvent("close",void 0,{bubbles:!0})}firstUpdated(){this.autoclose&&this.timeouts.add(setTimeout((()=>this.close()),this.autoclose))}static alert(t,e){const o=new this;return Object.assign(o,e),t.appendChild(o),o}};t([Q()],ge.prototype,"call",void 0),t([Q()],ge.prototype,"color",void 0),t([Q({type:Number})],ge.prototype,"autoclose",void 0),t([Q()],ge.prototype,"title",void 0),t([Q()],ge.prototype,"content",void 0),t([Q({type:Boolean})],ge.prototype,"hideClose",void 0),t([Q()],ge.prototype,"variant",void 0),ge=t([g(pe),m(S`:host{${ue}--border-width:.075em;${ue}--blockquote-width:.2em;${ue}--blockquote-background:transparent;${ue}--gap:.5em}:host,:where(:host([contents]) [part=root]){display:block}[part=root]{align-items:center;background:var(${ue}--background);border-color:currentColor;border-radius:inherit;border-style:solid;border-width:var(${ue}--border-width);color:var(${ue}--color,currentColor);display:grid;grid-template-columns:auto 1fr auto;grid-template-rows:auto 1fr;padding:var(${ue}--gap)}[variant=blockquote]{background:var(${ue}--blockquote-background);border-radius:0;border-width:0;border-left-width:var(${ue}--blockquote-width)}[part~=icon]{align-items:center;display:grid;height:2em}.start svg{margin-inline-end:var(${ue}--gap)}.end svg{margin-inline-start:var(${ue}--gap)}svg{height:1.25em;width:1.25em}[part=content]{grid-row:span 2/span 2}`)],ge);var ye=ge;ye.define();let $e=class Avatar extends GlobalStyle{constructor(){super(...arguments),this.name="",this.round=!1}render(){return Ct`<div part="root" ${Ht(l(this.observedRecord,"src"))}> ${this._renderAvatar()} </div>`}_renderAvatar(){return this.src?Ct`<img part="image" src="${this.src}" alt="${this.name}" @error=${this._handleError}/>`:this.name?Ct`<span part="name">${this.formatName()}</span>`:Vt()}formatName(){return this.name}_handleError(){this.src=void 0}};t([Q()],$e.prototype,"src",void 0),t([Q()],$e.prototype,"name",void 0),t([Q({type:Boolean})],$e.prototype,"round",void 0),$e=t([g("avatar"),m(S`:host{background:var(${he.passive});height:2em;overflow:hidden;vertical-align:bottom;width:2em}:host,[part=root]{display:inline-flex}:host([contents]) [part=root]{display:inline-flex;height:inherit;width:inherit}:host([round]){border-radius:50%}[part=image]{height:100%;object-fit:cover;width:100%}[part=root]{align-items:center;border-radius:inherit;justify-content:center;position:relative}`)],$e);var be=$e;be.define();const _e="badge",we=le(_e);let xe=class Badge extends GlobalStyle{constructor(){super(...arguments),this.position="top-right",this.value=0,this.dot=!1,this.max=99}formatValue(t){return t>this.max?this.max+"+":t+""}render(){return Ct`<div part="root" ${Ht(this.observedRecord)}> ${Vt()} ${this.value||this.dot?Ct`<div part="badge">${this.dot?"":this.formatValue(this.value)}</div>`:""} </div>`}};t([Q()],xe.prototype,"position",void 0),t([Q({type:Number})],xe.prototype,"value",void 0),t([Q({type:Boolean})],xe.prototype,"dot",void 0),t([Q({type:Number})],xe.prototype,"max",void 0),xe=t([g(_e),m(S`:host{${we}--background:var(${he.active});${we}--offset:0%;${we}--offset-x:var(${we}--offset);${we}--offset-y:var(${we}--offset)}:host,:host([contents]) [part=root]{display:inline-block}[part=root]{position:relative}[part=badge]{background:var(${we}--background);border-radius:calc(infinity*1px);font-size:75%;padding:0 .5em;position:absolute;transform:translate(-50%,-50%);-webkit-user-select:none;user-select:none}[part=badge]:empty{border-radius:50%;font-size:100%;height:.5em;padding:0;width:.5em}[position^=top] [part=badge]{top:calc(var(${we}--offset-y))}[position$=right] [part=badge]{left:calc(100% - var(${we}--offset-x))}[position^=bottom] [part=badge]{top:calc(100% - var(${we}--offset-y))}[position$=left] [part=badge]{left:calc(var(${we}--offset-x))}`)],xe);var ke=xe;ke.define();const Ce="breath",Se=le(Ce),Ae=/[\s,]+/;let Re=class Breath extends GlobalStyle{render(){const t=this.getTexts();return Ct`<div part="root" ${Ht(this.observedRecord)}> ${[t.map(this._renderText),jt(this._computeStyle(t.length))]} </div>`}_renderText(t){return Ct`<span class="rel"> <span class="nocolor">${t}</span> <span class="colorful">${t}</span> </span>`}getTexts(){return Array.isArray(this.content)?this.content:(this.content||this.textContent).split(Ae).filter((t=>t))}_computeStyle(t){const e=50/t,o=this.duration||1e3*(2*t+2);let s="";for(let e=1;e<=t;e++)s+=`.rel:nth-child(${e}) .colorful{animation-delay:${-o/t*(t-e+1)}ms;background:var(${Se}--${e},var(${Se}--${(e-1)%3+1}));}`;return`.colorful{animation-duration:${o}ms;}@keyframes colorfulN{0%,${3*e}%{opacity:0;}${e}%,${2*e}%{opacity:1;}}${s}`}};t([Q()],Re.prototype,"content",void 0),t([Q({type:Number})],Re.prototype,"duration",void 0),Re=t([g(Ce),m(S`:host{${Se}--deg:60deg;${Se}--1-1:var(${he._colors.red[5]});${Se}--1-2:var(${he._colors.yellow[5]});${Se}--2-1:var(${he._colors.green[5]});${Se}--2-2:var(${he._colors.purple[5]});${Se}--3-1:var(${he._colors.blue[5]});${Se}--3-2:var(${he._colors.pink[5]});${Se}--1:linear-gradient(var(${Se}--deg),var(${Se}--1-1),var(${Se}--1-2));${Se}--2:linear-gradient(var(${Se}--deg),var(${Se}--2-1),var(${Se}--2-2));${Se}--3:linear-gradient(var(${Se}--deg),var(${Se}--3-1),var(${Se}--3-2))}`,S`:host{align-items:center;direction:ltr;font-size:2em;margin:auto;width:-moz-fit-content;width:fit-content}:host,:host([contents]) [part=root]{display:flex}[part=root]{display:contents}::selection{background:none}.rel{font-size:inherit;font-weight:800;letter-spacing:-.05em;position:relative}`,S`.colorful,.nocolor{animation-iteration-count:infinite;-webkit-background-clip:text!important;background-clip:text!important;box-sizing:border-box;color:transparent;display:inline-block;padding:0 .05em}.colorful{animation-name:colorfulN;opacity:0}.nocolor{background:var(${he.clipBackground});position:absolute;top:0}`)],Re);var Ee=Re;Ee.define();const Te="button",Me=le(Te),Pe=he.white,Ne=he.black,Ie={black:[Pe,he._colors.darkgray[7],he._colors.darkgray[5]],gray:[Pe,he._colors.darkgray[1],he._colors.lightgray[8]],white:[Ne,he._colors.lightgray[3],he._colors.lightgray[0]],blue:[Pe,he._colors.blue[6],he._colors.blue[4]],green:[Pe,he._colors.green[6],he._colors.green[4]],red:[Pe,he._colors.red[6],he._colors.red[4]],orange:[Pe,he._colors.orange[6],he._colors.orange[4]],pink:[Pe,he._colors.pink[6],he._colors.pink[4]],purple:[Pe,he._colors.purple[6],he._colors.purple[4]],yellow:[Ne,he._colors.yellow[6],he._colors.yellow[4]],teal:[Pe,he._colors.teal[6],he._colors.teal[4]]};let Oe=class Button extends GlobalStyle{constructor(){super(...arguments),this.__colorSC=new StyleController(this,(()=>{const t=this.nextColor();if(t in Ie){const[e,o,s]=Ie[t];return v({":host":[[`${Me}--color`,`var(${e})`],[`${Me}--background`,`var(${o})`],[`${Me}--gradients`,`var(${s})`]]})}return null})),this.plain=!1,this.disabled=!1,this.ghost=!1,this.active=!1,this.round=!1,this.color="black"}render(){return Ct`<div part="root" ${Ht(this.observedRecord)}> ${this.content||Vt()} <span part="modal-root"></span> </div>`}focus(){this.disabled||(this.active=!0,super.focus())}blur(){this.active=!1,super.blur()}connectedCallback(){super.connectedCallback(),this.events.add(this,"click",this._handelClick,!0)}_handelClick(t){if(this.disabled)return t.stopPropagation(),void t.preventDefault();this.plain||this._handleModal(t)}_handleModal(t){const e=document.createElement("i"),{width:o,height:s}=this.getBoundingClientRect(),{x:a,y:l}=this._root.getBoundingClientRect(),h=2*Math.sqrt(s**2+o**2)+"px";e.style.height=h,e.style.width=h,e.style.left=t.x-a+"px",e.style.top=t.y-l+"px",e.style.animationName="kf",this._modalRoot.appendChild(e),e.addEventListener("animationend",(()=>e.remove()),{once:!0})}nextColor(){return this.color}};t([Q({type:Boolean,reflect:!0})],Oe.prototype,"plain",void 0),t([Q({type:Boolean,reflect:!0})],Oe.prototype,"disabled",void 0),t([Q({type:Boolean,reflect:!0})],Oe.prototype,"ghost",void 0),t([Q({type:Boolean,reflect:!0})],Oe.prototype,"active",void 0),t([Q({type:Boolean,reflect:!0})],Oe.prototype,"round",void 0),t([Q({reflect:!0})],Oe.prototype,"color",void 0),t([Q()],Oe.prototype,"content",void 0),t([rt("modal-root")],Oe.prototype,"_modalRoot",void 0),t([rt("root")],Oe.prototype,"_root",void 0),Oe=t([g(Te),m(S`:host(:not([disabled]):active){transform:scale(var(${Me}--focus-scale))}:host([round]){border-radius:calc(infinity*1px)}:host([disabled]){cursor:not-allowed;filter:brightness(.85)}:host([ghost]){${Me}--modal-background:var(${Me}--ghost-color);background:transparent;box-shadow:inset 0 0 0 var(${Me}--ghost-width) var(${Me}--ghost-color);color:var(${Me}--ghost-color)}:host([plain]){${Me}--gradients:unset;${Me}--focus-scale:unset}`,S`:host{${Me}--padding-x:.8em;${Me}--padding-y:calc(var(${Me}--padding-x)/4);${Me}--padding:var(${Me}--padding-y) var(${Me}--padding-x);${Me}--modal-animation-duration:1s;${Me}--ghost-width:.08em;${Me}--focus-scale:.97;${Me}--deg:45deg;${Me}--ghost-color:var(${Me}--background);background:linear-gradient(var(${Me}--deg),var(${Me}--background),var(${Me}--gradients,var(${Me}--background)));color:var(${Me}--color,inherit);cursor:pointer;display:block;overflow:hidden;padding:var(${Me}--padding);text-align:center;width:-moz-fit-content;width:fit-content}[part=root]:not([contents]){height:100%;width:100%}[part=root]{border-radius:inherit;position:relative;transition:none;transition-duration:inherit;-webkit-user-select:none;user-select:none}i{animation-duration:var(${Me}--modal-animation-duration);background:var(${Me}--modal-background,currentColor);border-radius:50%;height:100%;inset:0;opacity:0;pointer-events:none;position:absolute;transform-origin:0 0;visibility:visible;width:100%}@keyframes kf{0%{opacity:var(${Me}--modal-opacity,.1);transform:scale(0) translate(-50%,-50%)}80%{transform:scale(1) translate(-50%,-50%)}to{opacity:0}}`)],Oe);var ze=Oe;ze.define();const Be="card",De=le(Be);let Ue=class Card extends GlobalStyle{constructor(){super(...arguments),this.footer=!1,this.header=!1}render(){return Ct`<div part="root" ${Ht(this.observedRecord)}> ${[this.header?Vt("header"):"",Vt(),this.footer?Vt("footer"):""]} </div>`}};t([Q({type:Boolean})],Ue.prototype,"footer",void 0),t([Q({type:Boolean})],Ue.prototype,"header",void 0),Ue=t([g(Be),m(S`:host{${De}--border-width:.075em;${De}--border-color:var(${he.passive});${De}--padding:.75em;display:block;flex-shrink:0}slot{display:block;padding:var(${De}--padding)}[part=root]{border-color:var(${De}--border-color);border-radius:inherit;border-style:solid;border-width:var(${De}--border-width)}[name=footer]{padding-top:0}[name=header]{padding-bottom:0}`)],Ue);var He=Ue;He.define();var Le=Gt("0 0 56 56")`<path fill="currentColor" d="M35.805 47.723c.398.398.914.633 1.523.633c1.219 0 2.133-.915 2.133-2.133c0-.586-.234-1.125-.61-1.524L21.79 28.012l17.063-16.688c.375-.398.609-.96.609-1.523c0-1.219-.914-2.157-2.133-2.157c-.61 0-1.125.235-1.523.633L17.242 26.441c-.445.375-.703.961-.703 1.57c0 .587.258 1.126.703 1.571Z"/>`,Ve=Gt("0 0 56 56")`<path fill="currentColor" d="M18.695 48.367c.586 0 1.102-.234 1.524-.633L38.78 29.57c.446-.445.68-.984.68-1.57c0-.61-.234-1.172-.68-1.57L20.22 8.289a2.07 2.07 0 0 0-1.524-.656a2.12 2.12 0 0 0-2.156 2.156c0 .563.258 1.125.633 1.524L34.21 28L17.17 44.688c-.374.398-.632.937-.632 1.523c0 1.219.938 2.156 2.156 2.156"/>`;function je(t){return t.getBoundingClientRect().width}let Ge=class Carousel extends GlobalStyle{constructor(){super(...arguments),this.index=0,this.autoChange=0}render(){return Ct`<div part="root" ${Ht(this.observedRecord)}> <i part="prev" @click="${this.prev}"> ${Le()} </i> <div part="move-root">${Vt()}</div> <i part="next" @click="${this.next}"> ${Ve()} </i> </div>`}connectedCallback(){super.connectedCallback(),this.children.length&&(this.__cloneFirst?.remove(),this.__cloneLast?.remove(),this.__cloneLast=this.firstElementChild.cloneNode(!0),this.__cloneFirst=this.lastElementChild.cloneNode(!0),this.appendChild(this.__cloneLast),this.insertBefore(this.__cloneFirst,this.firstElementChild)),this.observers.add(this,ResizeObserver,(()=>{this._offset=this._computeOffset(),this._doTranslateX(`${this._offset}px`,!0)}))}async firstUpdated(){await this.updateComplete,this.show(this.index,!0)}attributeChangedCallback(t,e,o){super.attributeChangedCallback(t,e,o),"index"===t&&this.isConnected&&this.show(this.index)}show(t,e){t=this.normalizeIndex(t),this.index=t,this._offset=this._computeOffset(),this._doTranslateX(`${this._offset}px`,e),this.dispatchCustomEvent("change",t),this.timeouts.remove(this.intervalID),this.autoChange>0&&(this.intervalID=this.timeouts.add(setInterval((()=>{this.next()}),this.autoChange)))}next(){this.index===this.childElementCount-3?(this._doTranslateX("0",!0),this.show(0)):this.show(this.index+1)}prev(){0===this.index?(this._doTranslateX(`-${this.childElementCount-1}00%`,!0),this.show(this.children.length-3)):this.show(this.index-1)}_doTranslateX(t,e){this._moveRoot.style.transform=`translateX(${t})`,this._moveRoot.style.transition=e?"none":""}_computeOffset(){let t=0;for(let e=0;e<=this.index;e++)t-=je(this.children[e]);return t+=(je(this)-je(this.children[this.index+1]))/2,t}normalizeIndex(t){return t<0?0:t>this.children.length-3?this.children.length-3:t}};t([Q({type:Number})],Ge.prototype,"index",void 0),t([Q({type:Number})],Ge.prototype,"autoChange",void 0),t([rt("move-root")],Ge.prototype,"_moveRoot",void 0),Ge=t([g("carousel"),m(S`:host{display:block;transition:.3s}[part=root]{direction:ltr;overflow:hidden}[part=move-root],[part=root]{display:flex;height:100%;position:relative;transition:inherit;width:100%}[part=next],[part=prev]{align-items:center;display:flex;height:100%;justify-content:center;position:absolute;-webkit-user-select:none;user-select:none;width:1.5em;z-index:1}[part=prev]{left:0}[part=next]{right:0}slot::slotted(*){flex-shrink:0!important}`)],Ge);var Fe=Ge;Fe.define();var qe=Gt("0 0 56 56")`<path fill="currentColor" d="M28 39.46a2.1 2.1 0 0 0 1.57-.679l18.164-18.586a2.1 2.1 0 0 0 .633-1.5a2.12 2.12 0 0 0-2.156-2.156a2.27 2.27 0 0 0-1.523.61L28 34.21L11.313 17.148a2.23 2.23 0 0 0-1.524-.609a2.12 2.12 0 0 0-2.156 2.156c0 .586.234 1.102.633 1.524L26.43 38.78c.445.446.96.68 1.57.68"/>`;class SuperOpenable extends GlobalStyle{constructor(){super(...arguments),this.open=!1}toggle(t=!this.open){this.open=t}close(){this.open=!1}show(){this.open=!0}updated(t){void 0!==t.get("open")&&this.dispatchCustomEvent("change",this.open)}}t([Q({type:Boolean,reflect:!0})],SuperOpenable.prototype,"open",void 0);const We="details",Ye=le(We);let Ze=class Details extends SuperOpenable{constructor(){super(...arguments),this.float=!1,this.fill=!1,this.summary=""}render(){return Ct`<dl part="root" ${Ht(this.observedRecord)}> <dt part="title" @click="${()=>this.toggle()}"> <span part="summary">${this.summary||Vt("summary")}</span> <span part="icon">${qe()}</span> </dt> <dd part="details" @click=${this.fill?()=>this.toggle():null}> <div style="min-height: 0;">${Vt()}</div> </dd> </dl>`}};t([Q({type:Boolean})],Ze.prototype,"float",void 0),t([Q({type:Boolean})],Ze.prototype,"fill",void 0),t([Q()],Ze.prototype,"summary",void 0),Ze=t([g(We),m(S`:host{${Ye}--icon-deg-open:0deg;${Ye}--icon-deg-close:90deg;display:block;padding:.2em;transition:.3s}[part=root]{position:relative}[part=title]{align-items:center;direction:ltr;grid-template-columns:auto auto;height:100%;justify-content:space-between}[part=details],[part=title]{display:grid;overflow:hidden;transition:inherit}[part=details]{grid-template-rows:0fr}:host([open]) [part=details]{grid-template-rows:1fr}[float] [part=details]{position:absolute;top:100%;width:100%}[part]{transition:inherit;transition-property:transform,grid-template-rows}[part=icon]{-webkit-backface-visibility:hidden;backface-visibility:hidden;display:flex;transform:rotate(var(${Ye}--icon-deg-close))}:host([open]) [part=icon]{transform:rotate(var(${Ye}--icon-deg-open))}`)],Ze);var Xe=Ze;Xe.define();const Ke="dialog",Qe=le(Ke),Je=/[\s,]+/;let ti=class Dialog extends SuperOpenable{constructor(){super(...arguments),this.key="Escape",this.__modalInvoke=!1}set modal(t){this.contents=t}get modal(){return this.contents}render(){return Ct`<dialog part="root" ${Ht(this.observedRecord)}> ${Vt()} </dialog>`}showModal(){this.modal=!0,this.__modalInvoke=!0,this.show()}attributeChangedCallback(t,e,o){super.attributeChangedCallback(t,e,o),"open"===t&&(this.open?this.modal?this._dialog.showModal():this._dialog.show():this._dialog.close())}updated(t){t.has("open")&&(this.open?(this.__submitEvent=this.events.add(this,"submit",this._handelSubmit),this.key&&(this.__keydownEvent=this.events.add(document,"keydown",this._handleKeydown.bind(this)))):(this.events.remove(this,"submit",this.__submitEvent),this.events.remove(document,"keydown",this.__keydownEvent)))}_handleKeydown(t){const e=this.key.split(Je);(e.includes(t.key)||e.includes(t.code))&&(t.preventDefault(),this.close())}_handelSubmit(t){"dialog"===t.target.method&&(t.preventDefault(),this.close())}close(){this.__modalInvoke&&(this.modal=!1,this.__modalInvoke=!1),this.open=!1}};t([Q({type:Boolean,reflect:!0})],ti.prototype,"modal",null),t([Q()],ti.prototype,"key",void 0),t([et("dialog")],ti.prototype,"_dialog",void 0),ti=t([g(Ke),m(S`:host{${Qe}--background-modal:#000;${Qe}--opacity-modal:0.2;background:none;display:block;left:50%;margin:auto;position:fixed;top:50%;transform:translate(-50%,-50%);width:-moz-fit-content;width:fit-content}:host(:not([open])){visibility:hidden}:host([contents]) dialog{position:fixed}dialog{background:inherit;position:relative}::backdrop{background:var(${Qe}--background-modal);opacity:var(${Qe}--opacity-modal)}`)],ti);var ei=ti;ei.define();let ii=class Divider extends GlobalStyle{constructor(){super(...arguments),this.vertical=!1}render(){return Ct`<div part="root" ${Ht(this.observedRecord)}></div>`}};t([Q({type:Boolean,reflect:!0})],ii.prototype,"vertical",void 0),ii=t([g("divider"),m(S`:host{background:currentColor;color:var(${he.passive});display:block;height:.05em;width:100%}:host([vertical]){height:100%;width:.05em}:host([contents]) [part=root]{background:currentColor;display:block;height:.05em;margin:auto;width:100%}[part=root]{display:contents}`)],ii);var oi=ii;oi.define();let ri=class Dragbox extends GlobalStyle{constructor(){super(...arguments),this.__drag=!1}get _offsetParent(){return this.offsetParent??document.body}render(){return Ct`<div part="root" ${Ht(this.observedRecord)} @mousedown="${this._handleDragStart}"> ${Vt()} </div>`}firstUpdated(){this.reset()}_handleDragStart(t){this.__x=t.x,this.__y=t.y;const e=this._offsetParent.getBoundingClientRect(),o=this.getBoundingClientRect();this.__t=o.top-e.top,this.__l=o.left-e.left,this.__drag=!0,this.__handleMouseMove=this.events.add(document,"mousemove",this._handleDrag.bind(this)),this.__handleMouseLeave=this.events.add(document,"mouseleave",this._handleDragEnd.bind(this)),this.__handleMouseUp=this.events.add(document,"mouseup",this._handleDragEnd.bind(this))}_handleDragEnd(){this.__drag=!1,this.events.remove(document,"mousemove",this.__handleMouseMove),this.events.remove(document,"mouseleave",this.__handleMouseLeave),this.events.remove(document,"mouseup",this.__handleMouseUp)}_handleDrag(t){if(!this.__drag)return;const{__x:e,__y:o,__l:s,__t:a,style:l}=this,{height:h,width:c}=this._offsetParent.getBoundingClientRect(),{width:d,height:p}=this.getBoundingClientRect(),u=t.x-(e-s),v=t.y-(o-a);l.left=u<0?"0":u<c-d?`${u}px`:c-d+"px",l.top=v<0?"0":v<h-p?`${v}px`:h-p+"px"}reset(){const{x:t,y:e,style:o,offsetWidth:s,offsetHeight:a,offsetLeft:l,offsetTop:h}=this,{height:c,width:d}=this._offsetParent.getBoundingClientRect();o.left=t||"0",o.top=e||"0",l>d-s&&(o.left=d-s+"px"),h>c-a&&(o.top=c-a+"px")}};t([Q()],ri.prototype,"x",void 0),t([Q()],ri.prototype,"y",void 0),ri=t([g("dragbox"),m(S`:host{display:block;position:absolute}:host(:active){-webkit-user-select:none;user-select:none}`)],ri);var si=ri;si.define();let ni=class Flex extends GlobalStyle{constructor(){super(...arguments),this.vertical=!1}render(){return Ct`<div part="root" ${Ht(this.observedRecord)}> ${[Vt(),jt(v({":host":{gap:this.gap,"flex-flow":this.flexFlow,"flex-direction":this.vertical&&"column","align-items":this.items,"justify-content":this.content}}))]} </div>`}};t([Q({attribute:"flex-flow"})],ni.prototype,"flexFlow",void 0),t([Q()],ni.prototype,"gap",void 0),t([Q()],ni.prototype,"content",void 0),t([Q()],ni.prototype,"items",void 0),t([Q({type:Boolean})],ni.prototype,"vertical",void 0),ni=t([g("flex"),m(S`:host,:host([contents]) [part=root]{display:flex}[part=root]{display:contents}`)],ni);var ai,li=ni;li.define();let hi=ai=class Form extends GlobalStyle{constructor(){super(...arguments),this.name="",this.nameValue=this.namevalue}get value(){return ai.buildValue(this._slot.assignedElements())}render(){return Vt()}reset(){this.deepQuerySelectorAll("*").forEach((t=>{t.tagName!==this.tagName&&t.reset&&t.reset()}))}namevalue(){return[this.name,this.value]}static buildValue(t){const e={};for(const o of t)if("FORM"===o.tagName)Object.assign(e,Object.fromEntries(new FormData(o).entries()));else if(o.namevalue){const[t,s]=o.namevalue();t&&(e[t]=s)}else if(o.name&&void 0!==o.value)e[o.name]=o.value;else if(o.shadowRoot)for(const t of o.shadowRoot.querySelectorAll("slot"))Object.assign(e,this.buildValue(t.assignedElements()));return e}};t([Q()],hi.prototype,"name",void 0),hi=ai=t([g("form"),m(S`:host{display:block}`)],hi);var ci=hi;ci.define();const di=t=>{return e=t,Number.isNaN(+e)?t:`repeat(${t},1fr)`;var e};let pi=class Grid extends GlobalStyle{render(){return Ct`<div part="root" ${Ht(this.observedRecord)}> ${[Vt(),jt(v({":host":{gap:this.gap,"grid-template-columns":di(this.columns),"grid-template-rows":di(this.rows),"place-content":this.content,"place-items":this.items}}))]} </div>`}};t([Q()],pi.prototype,"gap",void 0),t([Q()],pi.prototype,"columns",void 0),t([Q()],pi.prototype,"rows",void 0),t([Q()],pi.prototype,"content",void 0),t([Q()],pi.prototype,"items",void 0),pi=t([g("grid"),m(S`:host,:host([contents]) [part=root]{display:grid}[part=root]{display:contents}`)],pi);var ui=pi;ui.define();let vi=class Heading extends GlobalStyle{constructor(){super(...arguments),this.as="h1",this.anchor="#",this.side="left"}render(){return Ct`<a part="root" href="${this.id?"#"+this.id:Rt}" ${Ht(this.observedRecord)}> ${this.wrapHeading(Vt(),this.id?Ct`<i part="anchor">${this.anchor}</i>`:"")} </a>`}wrapHeading(...t){switch(this.as){case"h2":return Ct`<h2>${t}</h2>`;case"h3":return Ct`<h3>${t}</h3>`;case"h4":return Ct`<h4>${t}</h4>`;case"h5":return Ct`<h5>${t}</h5>`;case"h6":return Ct`<h6>${t}</h6>`;default:return Ct`<h1>${t}</h1>`}}};t([Q()],vi.prototype,"as",void 0),t([Q()],vi.prototype,"anchor",void 0),t([Q()],vi.prototype,"side",void 0),vi=t([g("heading"),m(S`:host{display:block;text-align:start}[part=anchor]{min-width:1.25em;position:absolute;right:100%;text-align:center}[side=left] [part=anchor]{right:100%}[side=right] [part=anchor]{left:100%}a{color:inherit}h1,h2,h3,h4,h5,h6{direction:ltr;font-size:revert;position:relative;width:-moz-fit-content;width:fit-content}`)],vi);var fi=vi;fi.define();var mi=Gt("0 0 56 56")`<path fill="currentColor" d="M43.95 47.323c.304.305.732.468 1.119.468c.814 0 1.567-.733 1.567-1.568c0-.407-.163-.814-.468-1.12L12.112 11.069a1.57 1.57 0 0 0-1.12-.448c-.814 0-1.567.733-1.567 1.547c0 .428.143.835.448 1.12Zm1.913-5.761C52.255 37.43 56 32.056 56 29.674c0-4.132-11.297-17.303-27.99-17.303c-3.46 0-6.697.59-9.669 1.567l5.313 5.293a11 11 0 0 1 4.356-.896c6.31 0 11.38 4.988 11.38 11.339c0 1.547-.326 3.033-.958 4.336ZM28.01 46.977c3.766 0 7.267-.672 10.402-1.771l-5.394-5.395a10.8 10.8 0 0 1-5.008 1.201c-6.35 0-11.379-5.15-11.4-11.338c0-1.832.428-3.562 1.202-5.09l-7.084-7.124C4.01 21.592 0 27.231 0 29.674c0 4.112 11.501 17.303 28.01 17.303m6.473-17.73a6.446 6.446 0 0 0-6.473-6.454c-.264 0-.53.02-.773.041l7.206 7.206c.02-.244.04-.529.04-.794m-12.966-.041c0 3.582 2.951 6.473 6.514 6.473c.285 0 .55-.02.834-.04l-7.308-7.309c-.02.285-.04.59-.04.876"/>`;const gi=S`.input-field{align-items:center;border-radius:inherit;display:flex;height:inherit;position:relative}.input-field [part=input]{background:none;color:inherit;height:100%;padding:var(${he.input}-space);width:100%}.input-field [part=icon]{align-items:center;color:var(${he.input}-icon-color);display:flex;justify-content:center}.input-field [part=prefix],.input-field [part=suffix]{display:flex;height:100%}.input-field [part=suffix] [part=icon]{padding-inline-end:var(${he.input}-space)}.input-field [part=prefix] [part=icon]{padding-inline-start:var(${he.input}-space)}`,yi=S`:host{${he.input}-width:10em;${he.input}-height:1.6em;${he.input}-space:0.2em;${he.input}-control:currentColor;${he.input}-icon-color:var(${he._colors.darkgray[4]})}:host([disabled]){cursor:not-allowed;filter:brightness(.85)}:host(:focus-within){${he.input}-icon-color:currentColor}input:disabled{cursor:inherit}input::-ms-clear,input::-ms-reveal{display:none}`;let $i=class SuperInput extends GlobalStyle{constructor(){super(...arguments),this.autofocus=!1,this.outlineType="border",this.disabled=!1,this.compositing=!1,this.makeId=Math.random().toString(36).slice(1),this.nameValue=this.namevalue}get observedRecord(){return l(super.observedRecord,"default","value")}set defaultValue(t){this.default=t}get defaultValue(){return this.default}namevalue(){return[this.name,this.value]}reset(){this.value=this.default,this._input.value=this.default}_handleInput(t){t.stopPropagation(),this.compositing||(this.value=t.target.value?.trim(),this.dispatchCustomEvent("input",this.value,{bubbles:!0}))}_handleChange(t){this.dispatchCustomEvent("change",this.value)}connectedCallback(){super.connectedCallback(),this._connectedInit()}_connectedInit(){this.default??=this.value||"",this.value??=this.default}_compositionInit(){this._input&&(this.events.add(this._input,"compositionstart",(()=>this.compositing=!0)),this.events.add(this._input,"compositionend",(t=>{this.compositing=!1,this._handleInput(t)})))}_changeInputType(t){this._input&&(this._input.type=t)}focus(t){this._input?.focus(t)}firstUpdated(){this._compositionInit()}_renderPrefix(){return Ct`<label for=${this.makeId} part="prefix"> ${Vt("prefix")} </label>`}_renderSuffix(){return Ct`<label for=${this.makeId} part="suffix"> ${Vt("suffix")} </label>`}};t([Q()],$i.prototype,"autocomplete",void 0),t([Q({attribute:"outline-type"})],$i.prototype,"outlineType",void 0),t([Q({type:Boolean,reflect:!0})],$i.prototype,"disabled",void 0),t([Q({reflect:!0})],$i.prototype,"type",void 0),t([Q({reflect:!0})],$i.prototype,"placeholder",void 0),t([Q({reflect:!0})],$i.prototype,"name",void 0),t([Q()],$i.prototype,"value",void 0),t([Q()],$i.prototype,"default",void 0),t([rt("input")],$i.prototype,"_input",void 0),$i=t([m(gi,yi)],$i);class OutlineBuilder{constructor({selector:t=":host",width:e=he.outlineWidth,color:o=he.outlineColor,outlineType:s}={}){const a=((t,e)=>{const o=`outline-color:var(${e});border-color:var(${e});`,s=`${o}outline-width:var(${t});outline-style:solid;`;return{outline:s,"outline-inset":`${s}outline-offset:calc(-1 * var(${t}));`,"box-shadow":`box-shadow:0 0 0 var(${t}) var(${e});`,"box-shadow-inset":`box-shadow:inset 0 0 0 var(${t}) var(${e});`,border:`${o}border-width:var(${t});border-style:solid;`}})(e,o);if(s&&s in a){const e=a[s];this.css=`${t}{${e}}`}else this.css=""}get styleSheet(){return C(this.css).styleSheet}}let bi=class Input extends $i{constructor(){super(...arguments),this.type="text",this.variant="default",this.__outlineSC=new StyleController(this,(()=>new OutlineBuilder({outlineType:this.outlineType}).css+("outline"===this.variant?`:host{${he.outlineColor}: var(${he.active})}`:"")))}render(){return Ct`<div part="root" ${Ht(this.observedRecord)} class="input-field"> ${[this._renderPrefix(),Ct`<input part="input" type="${this.type}" .value="${this.value}" ?autofocus="${this.autofocus}" ?disabled="${this.disabled}" autocapitalize="${this.autocapitalize||Rt}" autocomplete="${this.autocomplete||Rt}" placeholder="${this.placeholder||Rt}" id="${this.makeId}" @input="${this._handleInput}" @change="${this._handleChange}"/>`,this._renderSuffix()]} </div>`}_renderSuffix(){const t="password";return Ct`<label for=${this.makeId} part="suffix"> ${this.type===t?Ct`<i part="icon" @mousedown="${()=>this._changeInputType("text")}" @mouseup="${()=>this._changeInputType(t)}" @mouseleave="${()=>this._changeInputType(t)}"> ${mi()} </i>`:Vt("suffix")} </label>`}};t([Q()],bi.prototype,"variant",void 0),t([rt("input")],bi.prototype,"_input",void 0),bi=t([g("input"),m(S`:host{display:block;height:var(${he.input}-height);width:var(${he.input}-width)}:host(:focus-within){${he.outlineColor}:var(${he.active})}`)],bi);var _i=bi;_i.define();let wi=class Layout extends GlobalStyle{constructor(){super(...arguments),this.sticky=!1}render(){return Ct`<div part="root" ${Ht(this.observedRecord)}> <header part="header">${Vt("header")}</header> <main part="main">${Vt()}</main> <footer part="footer">${Vt("footer")}</footer> </div>`}};t([Q({type:Boolean})],wi.prototype,"sticky",void 0),wi=t([g("layout"),m(S`:host{flex-direction:column;grid-template-rows:auto 1fr auto;min-height:100%;width:100%}:host,:host([contents]) [part=root]{display:flex}[part=root]{display:contents}[part=main]{flex:1;width:100%}[part=footer],[part=header]{flex-shrink:0;width:100%}[sticky] header{position:sticky;top:0}`)],wi);var xi=wi;xi.define();let ki=class SuperAnchor extends GlobalStyle{constructor(){super(...arguments),this.target="_self"}get pathname(){return new URL(this.href,location.href).pathname}render(){return Ct`<a part="root" ${Ht(this.observedRecord)} href="${this.href||Rt}" target="${this.target}" @click=${this._handleClick}> ${Vt()} </a>`}};var Ci;t([Q()],ki.prototype,"href",void 0),t([Q()],ki.prototype,"target",void 0),ki=t([m(S`:host{color:currentColor;cursor:default;display:inline-block;text-decoration:none}:host([href]){cursor:pointer}[part=root]{color:inherit;display:inline-block;text-decoration:inherit}`)],ki);let Si=Ci=class Router extends GlobalStyle{constructor(){super(...arguments),this.__fieldRouteTree=new RouteTree,this.__slottedRouteTree=new RouteTree,this.__cacheRecord=new Map,this.component=null,this.pathname=location.pathname,this.default=Vt(),this.type="united",this.cache=!1,this.handlePopstate=this.events.add(window,"popstate",(()=>{this.pathname=location.pathname}))}get params(){return this.path?RouteTree.parseParams(this.pathname,this.path):{}}set routes(t){this.__routes=t,this.collectFieldRoutes(t)}get routes(){return this.__routes}clear(){this.__cacheRecord.clear()}render(){let t;if(this.cache&&(t=this.__cacheRecord.get(this.pathname))&&(this.component=t.component,this.path=t.path,this.pathname=t.pathname),!t)switch(this.type){case"field":this.component=this.fieldComponent();break;case"slotted":this.component=this.slottedComponent();break;default:this.component=this.fieldComponent()??this.slottedComponent()}return this.component??this.default}connectedCallback(){super.connectedCallback(),Ci.routerInstances.add(this),"field"!==this.type&&(this.observers.add(this,MutationObserver,this.collectSlottedRoutes,{attributes:!0,attributeFilter:["slot"],subtree:!0}),this.collectSlottedRoutes())}disconnectedCallback(){super.disconnectedCallback(),Ci.routerInstances.delete(this)}useRouter(){return{pathname:this.pathname,params:this.params,path:this.path,component:this.component}}updated(t){if(t.has("pathname")||t.has("path")){const t=this.useRouter();!this.__cacheRecord.has(this.pathname)&&this.path&&this.__cacheRecord.set(this.pathname,t),this.dispatchCustomEvent("change",t)}}fieldComponent(t){if(t||=this.__fieldRouteTree.search(this.pathname)?.pattern,this.path=t,!t)return null;const e=this.routes.find((e=>e.path===t));return e?"render"in e?e.render?.(l(this.useRouter(),"component"))||null:e.component:null}slottedComponent(t){const e=this._slottedNames;return t||=this.__slottedRouteTree.search(this.pathname)?.pattern,this.path=t,t?(this.path=e.find((e=>e===t)),this.path?Vt(this.path):null):null}collectSlottedRoutes(){this.__slottedRouteTree=new RouteTree,this.clear(),this._slottedNames.forEach((t=>{this.__slottedRouteTree.insert(t)}))}collectFieldRoutes(t){this.__fieldRouteTree=new RouteTree,this.clear(),t.forEach((({path:t})=>{this.__fieldRouteTree.insert(t)}))}static updateAll(){this.routerInstances.forEach((t=>{t.handlePopstate()}))}search(t){return this.__fieldRouteTree.search(t)||this.__slottedRouteTree.search(t)}};Si.routerInstances=new Set,t([J()],Si.prototype,"component",void 0),t([J()],Si.prototype,"path",void 0),t([Q()],Si.prototype,"pathname",void 0),t([J()],Si.prototype,"default",void 0),t([Q()],Si.prototype,"type",void 0),t([Q({type:Boolean})],Si.prototype,"cache",void 0),t([J()],Si.prototype,"routes",null),Si=Ci=t([g("router"),m(S`:host{display:contents}`)],Si);var Ai=Si;const Ri="auto";let Ei=class Link extends ki{constructor(){super(...arguments),this.type=Ri,this.suppress=!1,this.replace=!1,this.state={},this.handleState=()=>{switch(this.type){case Ri:case"push":if(!this.replace){history.pushState(this.state,"",this.href);break}case"replace":history.replaceState(this.state,"",this.href)}}}_handleClick(t){const{state:e,type:o,href:s,pathname:a,suppress:l}=this;if(this.dispatchCustomEvent("navigate",{...this.observedRecord,pathname:a,state:e}),s.startsWith("#")||"normal"===o)return;this.handleState();const h=[...Ai.routerInstances];l||o===Ri&&!h.some((t=>t.search(location.pathname)))||(t.preventDefault(),Ai.routerInstances.forEach((t=>{t.handlePopstate()})))}};t([Q()],Ei.prototype,"type",void 0),t([Q({type:Boolean})],Ei.prototype,"suppress",void 0),t([Q({type:Boolean})],Ei.prototype,"replace",void 0),Ei=t([g("link")],Ei);var Ti=Ei;Ti.define();let Mi=class Progress extends GlobalStyle{constructor(){super(...arguments),this.max=1,this.min=0}render(){let t,o=20;if(!e(this.value)){const e=new Ranger(this.min,this.max);o=100*e.restrict(this.value/e.diff),t="static"}return Ct`<div part="root" ${Ht(this.observedRecord)} class="${t}"> <i part="value" style="width:${o}%;"></i> </div>`}};t([Q({type:Number})],Mi.prototype,"max",void 0),t([Q({type:Number})],Mi.prototype,"min",void 0),t([Q({type:Number})],Mi.prototype,"value",void 0),Mi=t([g("progress"),m(S`:host{background:var(${he.passive});border-radius:.25em;color:var(${he.active});height:.5em;width:100%}:host,[part=root]{display:block}[part=root]{border-radius:inherit;overflow:hidden;position:relative;z-index:1}[part=value]{animation:progress 1.8s ease-in-out infinite alternate;background:currentColor;border-radius:inherit;height:100%;left:0;position:absolute;top:0;transition:all .3s;z-index:2}@keyframes progress{0%{left:0}to{left:80%}}.static [part=value]{animation:none}`)],Mi);var Pi=Mi;Pi.define();const Ni="range",Ii=le(Ni);let Oi=class Range extends $i{constructor(){super(...arguments),this.min=0,this.max=100,this.vertical=!1,this.__focusStack=[]}get range(){return Array.isArray(this.value)}get rangeValue(){return this.range?this.value:[this.value]}padValue(t,e=0){const{rangeValue:o}=this,s=t-o.length;return s>0?new Array(s).fill(e).concat(o):o}attributeChangedCallback(t,e,o){super.attributeChangedCallback(t,e,o),"max"!==t&&"min"!==t&&"step"!==t||(this._ranger=new Ranger(this.min,this.max,this.step))}get observedRecord(){return l(super.observedRecord,"outline-type")}render(){const t=this.padValue(2),e=Math.min(...t),o=Math.max(...t),s=this._ranger.diff;return Ct`<div part="root" ${Ht(this.observedRecord)} @mousedown="${this.disabled?null:this._handleMousedownRoot}" style="${f([["--from",(e-this.min)/s*100+"%"],["--to",(o-this.min)/s*100+"%"],...t.map(((t,e)=>[`--handle-${e}`,(t-this.min)/s*100+"%"]))])}"> <div part="track"></div> ${Ft(this.rangeValue.length,(t=>this._renderHandle(t)))} </div>`}_renderHandle(t){const{disabled:e,range:o,rangeValue:s}=this,a=!o||o&&t===s.length-1&&1===s.length;return Ct`<i tabindex="0" part="handle" class="${qt({"last-focus":this.lastFocus===t})}" @mousedown="${e?null:this.createMouseDown(t)}" @focus="${e?null:()=>this.focusHandle(t)}" @blur="${e?null:this.blurHandle}" style="${f({"z-index":this.__focusStack.indexOf(t)+1,"--handle":`var(--${a?"to":`handle-${t}`})`})}"></i>`}focusHandle(t){this.lastFocus=t;const e=this.__focusStack.indexOf(t);-1!==e&&this.__focusStack.splice(e,1),this.__focusStack.push(t);const o=this._handles.item(t);o?.focus(),this.__keydownEvent||(this.__keydownEvent=this.events.add(document,"keydown",this.createKeydownEvent(t)))}blurHandle(){this.lastFocus=void 0,this.__keydownEvent=this.events.remove(document,"keydown",this.__keydownEvent)}createKeydownEvent(t){return e=>{const{rangeValue:o,step:s}=this;o.length<2&&(t=0);const a=o[t];"ArrowLeft"===e.key||"ArrowDown"===e.key?(e.preventDefault(),this.createSetValue(t)(a-s)):"ArrowRight"!==e.key&&"ArrowUp"!==e.key||(e.preventDefault(),this.createSetValue(t)(a+s))}}createMouseDown(t){return e=>{this.focusHandle(t),this.createMousedownListener(this.createSetValue(t))(e)}}createSetValue(t){return e=>{const o=this._ranger.normalize(e);let s=o;this.range&&(s=[...this.value],s[t]=o),this.value=s,this.dispatchCustomEvent("change",this.value)}}_computeValue({clientX:t,clientY:e}){const{top:o,left:s,height:a,width:l}=this._root.getBoundingClientRect();return this._ranger.present(this.vertical?(e-o)/a:(t-s)/l)}_handleMousedownRoot(t){const e=this._computeValue(t),o=this.range?this.rangeValue.reduce(((t,o,s)=>Math.abs(e-o)<Math.abs(e-this.rangeValue[t])?s:t),0):0,s=this.createSetValue(o);s(e),this.createMousedownListener(s)(t),this.focusHandle(o)}createMousedownListener(t){return e=>{e.preventDefault(),e.stopPropagation();const o=this.createMousemoveListener(t);this.events.add(document,"mousemove",o);const s=()=>{this.events.remove(document,"mousemove",o),this.events.remove(document,"mouseup",s)};this.events.add(document,"mouseup",s)}}createMousemoveListener(t){return e=>{const o=this._computeValue(e);o===this._ranger.restrict(o)&&t?.call(this,o)}}_connectedInit(){this._ranger=new Ranger(this.min,this.max,this.step);const t=this._ranger.diff;this.step||=t/100,e(this.value)&&(e(this.default)?this.value=Math.round(t/2/this.step)*this.step:this.value=this.default),this.default??=this.value}reset(){this.value=this.default}sort(){return this.value=this.toSorted()}toSorted(){return this.range?[...this.value].sort(((t,e)=>t-e)):this.value}};t([Q({type:Number})],Oi.prototype,"min",void 0),t([Q({type:Number})],Oi.prototype,"max",void 0),t([Q({type:Number})],Oi.prototype,"step",void 0),t([Q({type:Boolean,reflect:!0})],Oi.prototype,"vertical",void 0),t([Q({type:Array})],Oi.prototype,"value",void 0),t([Q({type:Array})],Oi.prototype,"default",void 0),t([rt("root")],Oi.prototype,"_root",void 0),t([ot("[part=handle]")],Oi.prototype,"_handles",void 0),t([J()],Oi.prototype,"lastFocus",void 0),Oi=t([g(Ni),m(S`:host{${Ii}--handle-active:var(${he.active});${Ii}--track-width:.5em;${Ii}--length:var(${he.input}-width);background:var(${he.passive});display:block;width:var(${Ii}--length)}:host([contents]) [part=root]{width:inherit}:host([vertical]){height:var(${Ii}--length);width:-moz-fit-content;width:fit-content}:host(:not([disabled])) .last-focus{${Ii}--handle-scale:1.05;background:var(${Ii}--handle-active)}[part=root]{position:relative;--from:0%;--to:50%;height:var(${Ii}--track-width)}[part=root],[part=track]{border-radius:inherit;min-height:inherit}[part=track]{background:var(${he.active});height:100%;justify-content:space-between;left:min(var(--from),var(--to));pointer-events:none;width:max(calc(var(--to) - var(--from)),calc(var(--from) - var(--to)))}[part=handle],[part=track]{display:flex;position:absolute}[part=handle]{align-items:center;background:var(${he.active});border:.1em solid;border-color:var(${he.input}-control);border-radius:50%;height:1em;justify-content:center;transform:scale(var(${Ii}--handle-scale,1)) translate(-50%,-25%);transform-origin:0 25%;-webkit-user-select:none;user-select:none;width:1em}`,S`[vertical]{height:inherit;width:var(${Ii}--track-width)}[vertical] i{transform:translate(-25%,-50%)}[vertical] [part=track]{height:max(calc(var(--to) - var(--from)),calc(var(--from) - var(--to)));left:0;top:min(var(--from),var(--to));width:100%}`,S`[part=handle]{left:var(--handle);top:0}[vertical] [part=handle]{left:0;top:var(--handle)}`)],Oi);var zi=Oi;zi.define();const Bi="rotate",Di=le(Bi);let Ui=class Rotate extends GlobalStyle{render(){return Ct`<div part="root"> <div part="slot" @mousemove="${this._handleRotate}"> ${Vt()} </div> <i @mouseleave="${this.reset}"></i> </div>`}reset(){this._root.style.removeProperty("transform"),this._root.style.removeProperty("transition")}_handleRotate(t){const{rotateX:e,rotateY:o}=this._computeOffset(t);this._root.style.setProperty("transform",`rotateX(${e}rad) rotateY(${o}rad)`),this._root.style.setProperty("transition","0s")}_computeOffset(t){const{left:e,top:o,width:s,height:a}=this._root.getBoundingClientRect(),{clientX:l,clientY:h}=t;return{rotateX:-(h-o-a/2)/a/2,rotateY:(l-e-s/2)/s/2}}};t([rt("root")],Ui.prototype,"_root",void 0),Ui=t([g(Bi),m(S`:host{display:block;transition:all .5s ease-in-out;width:-moz-fit-content;width:fit-content;${Di}--padding:.75em;${Di}--offset:.5em}div{position:relative;transition:inherit;transition-property:transform}i{box-sizing:content-box;height:100%;margin:calc(var(${Di}--offset)*-1);padding:var(${Di}--offset);position:absolute;top:0;width:100%}[part=slot]{z-index:2}`)],Ui);var Hi=Ui;Hi.define(),Ai.define();const Li=C("[direction-inset-align]");S`[direction^=top] ${Li}{top:0}[direction^=bottom] ${Li}{bottom:0}[direction$=right] ${Li}{right:0}[direction$=left] ${Li}{left:0}`;const Vi=C("[direction-outset-place]"),ji=S`[direction^=top] ${Vi}{bottom:100%}[direction^=bottom] ${Vi}{top:100%}[direction$=right] ${Vi}{left:100%}[direction$=left] ${Vi}{right:100%}`;function Gi(t,e){return t&&e&&t.toLowerCase().includes(e.toLowerCase())}function Fi(t,e){if(t){const o="checked";e?t.setAttribute(o,""):t.removeAttribute(o)}}let qi=class Select extends _i{constructor(){super(...arguments),this.multiple=!1,this.visible=!1,this.autoDirection="bottom",this.__store=[]}get observedRecord(){return{...super.observedRecord,direction:this.direction||this.autoDirection}}render(){return Ct`<div part="root" ${Ht(this.observedRecord)} class="input-field"> ${[this._renderPrefix(),Ct`<input part="input" type="${this.type}" .value="${this.text}" ?autofocus="${this.autofocus}" ?disabled="${this.disabled}" autocapitalize="${this.autocapitalize||Rt}" autocomplete="${this.autocomplete||Rt}" placeholder="${this.placeholder||Rt}" id="${this.makeId}" @focus="${this._handleFocus}" @input="${this._handleInput}" @change="${this._handleChange}"/>`,Ct`<label for="${this.makeId}" part="suffix"> <i part="icon">${qe()}</i> </label>`,Ct`<label for="${this.makeId}" part="content" direction-outset-place> ${Vt()} </label>`]} </div>`}_handleFocus(){if(!this.direction){const{top:t,bottom:e}=this.getBoundingClientRect();window.innerHeight-e<this._content.clientHeight&&t>this._content.clientHeight?this.autoDirection="top":this.autoDirection="bottom"}this.visible=!0}firstUpdated(){this.events.add(this._content,"click",(t=>{t.preventDefault(),t.stopPropagation();const{target:e}=t,o=this.optionValue(e);if(o){const t=this.select(o,e.textContent);this.multiple||Fi(this.lastChecked,0),Fi(e,t),this.lastChecked=e}this._input.focus()})),this.events.add(document,"click",(t=>{t.stopPropagation();const e=t.composedPath()[0];e&&!this.shadowRoot.contains(e)&&this.blur()}))}_connectedInit(){if(!this.value){const t=[...this.querySelectorAll("[checked]")];(this.multiple?t:t.length?[this.lastChecked=t[0]]:[]).forEach((t=>{Fi(t,this.select(this.optionValue(t),t.textContent))})),this.default=this.value,this.defaultText=this.text,this.defaultChecked=t}this.text||(this.text="")}reset(){this.value=this.default,this.text=this.defaultText,this.querySelectorAll("[checked]").forEach((t=>Fi(t,0))),this.defaultChecked.forEach((t=>Fi(t,1)))}select(t,e){e||=t,e=e.trim();let o=0;if(this.multiple){const s=this.__store.findIndex((e=>e.value===t));s>-1?this.__store.splice(s,1):(this.__store.push({value:t,text:e}),o=1),this.value=this.__store.map((t=>t.value)),this.text=this.__store.map((t=>t.text)).join(", ")}else this.value===t?(this.value="",this.text=""):(this.value=t,this.text=e,o=1);return this.dispatchCustomEvent("select",this.value),this.filter(),o}filter(t){t=t?.trim(),[...this.children].forEach((e=>{this.filterCallback(e,!t||Gi(this.optionValue(e),t)||Gi(e.textContent,t),t)}))}filterCallback(t,e,o){t.style.display=e?"":"none"}_handleInput(t){if(t.stopPropagation(),this.compositing)return;const e=this._input.value;this.filter(this.multiple?function(t,e){const o=e.slice(0,t).lastIndexOf(",")+1||0,s=e.indexOf(",",t)||e.length;return e.slice(o,s)}(this._input.selectionStart,e):e),this.dispatchCustomEvent("input",this.value,{bubbles:!0})}focus(t){this._input.focus(t),this.visible=!0}blur(){this._input.blur(),this.visible=!1,super.blur()}optionValue(t){return t.value||t.getAttribute("value")||""}};t([Q()],qi.prototype,"text",void 0),t([rt("content")],qi.prototype,"_content",void 0),t([Q()],qi.prototype,"direction",void 0),t([Q({type:Boolean})],qi.prototype,"multiple",void 0),t([Q({type:Boolean})],qi.prototype,"visible",void 0),t([J()],qi.prototype,"autoDirection",void 0),qi=t([g("select"),m(ji,S`.outline,:host(:focus-within){${he.input}-outline-color:var(${he.active})}[part=input]{text-overflow:ellipsis}[part=content]{position:absolute;visibility:hidden;width:100%}[visible] [part=content]{visibility:visible}`)],qi);var Wi=qi;Wi.define();var Yi=Gt("0 0 56 56")`<path fill="currentColor" d="M7.715 49.574h40.57c4.899 0 7.36-2.437 7.36-7.265V13.69c0-4.828-2.461-7.265-7.36-7.265H7.715C2.84 6.426.355 8.84.355 13.69v28.62c0 4.851 2.485 7.265 7.36 7.265m31.57-21.633c-1.055-.937-2.25-1.43-3.515-1.43c-1.313 0-2.462.446-3.54 1.407l-10.593 9.469l-4.336-3.938c-.985-.867-2.04-1.336-3.164-1.336c-1.032 0-2.04.446-3 1.313L4.129 39.73V13.88c0-2.438 1.312-3.68 3.656-3.68h40.43c2.32 0 3.656 1.242 3.656 3.68v25.875Zm-21.469.258c3.024 0 5.508-2.484 5.508-5.531c0-3.023-2.484-5.531-5.508-5.531c-3.046 0-5.53 2.508-5.53 5.531a5.54 5.54 0 0 0 5.53 5.531"/>`;const Zi="skeleton",Xi=le(Zi);let Ki=class Skeleton extends GlobalStyle{constructor(){super(...arguments),this.animation="position",this.loading=!0}render(){return this.loading?Ct`<div part="root" ${Ht(this.observedRecord)}> ${"image"===this.type?Yi():""} ${Vt("loading")} </div>`:Vt()}};t([Q()],Ki.prototype,"type",void 0),t([Q()],Ki.prototype,"animation",void 0),t([J()],Ki.prototype,"loading",void 0),Ki=t([g(Zi),m(S`:host{${Xi}--from:var(${he._colors.darkgray[9]});${Xi}--to:var(${he._colors.darkgray[7]});${Xi}--deg:95deg;${Xi}--duration:1.5s;${Xi}--icon-size:5em;${Xi}--icon-margin:.25em;background:var(${Xi}--from);color:var(${he._colors.darkgray[5]});display:block;flex-shrink:0;min-height:1.5em;overflow:hidden;width:100%}[part=root]{animation:var(${Xi}--duration) ease-in-out 0s infinite none running;min-height:inherit;text-align:center}svg{--size:var(${Xi}--icon-size);font-size:var(--size);margin:calc(var(--size)*.05)}[animation=position]{animation-name:po;background-color:transparent;background-image:linear-gradient(var(${Xi}--deg),var(${Xi}--from) 36%,var(${Xi}--to) 50%,var(${Xi}--from) 64%);background-size:200% 100%}@keyframes po{0%{background-position:150%}to{background-position:-50%}}[animation=opacity]{animation-direction:alternate;animation-name:op}@keyframes op{50%{opacity:.25}to{opacity:1}}`)],Ki);var Qi=Ki;Qi.define();const Ji="split",to=le(Ji);let eo=class Split extends $i{constructor(){super(...arguments),this.len=6,this.index=-1,this.current=-1,this.currentValue=[],this.__outlineSC=new StyleController(this,(()=>new OutlineBuilder({selector:"[part=input-box]",outlineType:this.outlineType}).css))}get observedRecord(){return l(super.observedRecord,"outline-type")}render(){return Ct`<div part="root" ${Ht(this.observedRecord)}> ${Ft(this.len,(t=>Ct`<span part="input-box" outline-type="${this.outlineType}" class="${qt({focus:this.current===t})}" @click="${this.disabled?null:()=>this.focusAt(t)}"> ${this.currentValue[t]} </span>`))} <input part="input" id="${this.makeId}" @blur=${this.blur} @input="${this._handleInput}" @change="${this._handleChange}" .value="${this.value.padStart(this.len," ")}"/> </div>`}connectedCallback(){super.connectedCallback(),this.reset()}_handleInput(t){t.stopPropagation(),this.compositing||(this.fillInput(t.data),this.value=this.currentValue.join(""),this.dispatchCustomEvent("input",this.value,{bubbles:!0}))}fillInput(t){if(null===t){if(null!==this.currentValue[this.current])this.currentValue[this.current]=null;else{this.currentValue[this.current-1]=null;const t=this.currentValue.findLastIndex((t=>null!==t));this.current=this.current-1<0?t<0?0:t:this.current-1}return}const e=t.length>1;if(this.currentValue[this.current]=t[0],this.current+1>=this.len?(this.current=this.currentValue.indexOf(null),-1===this.current&&this.blur()):this.current+=1,e){const e=t.slice(1);e&&this.fillInput(e)}}focus(){this.focusAt(this.current),super.focus()}focusAt(t){this.current=t,this._input.focus()}blur(){this._input.blur(),this.current=-1,super.blur()}reset(){this.current=-1,this.value=this.default,this.currentValue=this.value.split("").concat(Array(this.len-this.value.length).fill(null)),this.index>-1&&(this.current=this.index)}};t([Q({type:Number})],eo.prototype,"len",void 0),t([Q({type:Number})],eo.prototype,"index",void 0),t([J()],eo.prototype,"current",void 0),t([J()],eo.prototype,"currentValue",void 0),eo=t([g(Ji),m(S`:host{border-radius:.1em;display:block;width:-moz-fit-content;width:fit-content;${to}--size:1.45em;${to}--gap:.25em}[part=root]{display:flex;gap:var(${to}--gap);justify-content:space-between;position:relative}[part=input-box],[part=root]{border-radius:inherit;vertical-align:top}[part=input-box]{align-items:center;display:inline-flex;height:var(${to}--size);justify-content:center;width:var(${to}--size)}[part=input]{background:none;height:100%;opacity:0;position:absolute;width:100%;z-index:-1}.focus,[part=input-box]:active{${he.outlineColor}:var(${he.active})}`)],eo);var io=eo;io.define();const oo="switch",ro=le(oo);let so=class Switch extends $i{constructor(){super(...arguments),this.default=!1,this.value=!1}set checked(t){this.value=t}get checked(){return this.value}get observedRecord(){return l(super.observedRecord,"outline-type")}render(){return Ct`<div part="root" ${Ht(this.observedRecord)} class="round"> <input part="input" type="checkbox" ?disabled="${this.disabled}" ?checked="${this.value}" id="${this.makeId}" @change="${this._handleChange}"/> <span part="handle"></span> </div>`}reset(){this.value=this.default,this._input.checked=this.value}_connectedInit(){this.default?this.value=!0:this.value&&(this.value=!0,this.default=!0)}_handleChange(){const{checked:t}=this._input;this.value=t,this.dispatchCustomEvent("change",this.value)}};t([Q({type:Boolean})],so.prototype,"default",void 0),t([Q({type:Boolean,attribute:"checked",reflect:!0})],so.prototype,"value",void 0),so=t([g(oo),m(S`:host,:host([contents]) [part=root]{display:inline-block}:host{${ro}-width:3em;${ro}-height:calc(var(${ro}-width)/2);${ro}-handle-size:1.25em;${ro}-handle-space:calc(var(${ro}-width)/4 - var(${ro}-handle-size)/2);${ro}-transition:.2s ease-in-out;background:var(${he.passive});border-radius:calc(var(${ro}-height)/2);height:var(${ro}-height);transition:.2s ease-in-out;transition-property:background,left;vertical-align:bottom;width:var(${ro}-width)}:host([checked]){background:var(${he.active})}[part=root]{position:relative}[part=handle],[part=root]{align-items:center;display:flex;transition:inherit}[part=handle]{background:currentColor;border-radius:100%;justify-content:center;left:0;pointer-events:none;position:absolute;top:50%;--size:var(${ro}-handle-size);height:var(--size);transform:translateY(-50%) translateX(var(${ro}-handle-space));width:var(--size)}:host([checked]) [part=handle]{left:50%}[part=input]{height:100%;opacity:0;width:100%}`)],so);var no=so;no.define();const ao="text",lo=le(ao);let ho=class Text extends GlobalStyle{constructor(){super(...arguments),this.underline="none",this.clip=!1}render(){return Ct`<span part="root" ${Ht(this.observedRecord)} class="${qt(this.underline)}"> ${Vt()} </span>`}};t([Q()],ho.prototype,"underline",void 0),t([Q({type:Boolean})],ho.prototype,"clip",void 0),ho=t([g(ao),m(S`:host{${lo}--color:currentColor;${lo}--color-hover:currentColor;${lo}--color-active:currentColor;display:inline-block;overflow-wrap:break-word;text-overflow:ellipsis}[part=root]{color:var(${lo}--color);display:inline-block;overflow:hidden;overflow-wrap:inherit;text-overflow:inherit;vertical-align:bottom;white-space:nowrap}[part=root]:hover{color:var(${lo}--color-hover,var(${lo}--color))}[part=root]:active{color:var(${lo}--color-active,var(${lo}--color))}.active:active,.always,.hover:hover{text-decoration:underline}.none{text-decoration:none}[clip]{background:var(${he.clipBackground});color:transparent;display:inline-block;-webkit-text-fill-color:transparent;background-clip:text;-webkit-background-clip:text}`)],ho);var co=ho;co.define();const po="tabs",uo=le(po),vo="hover";let fo=class Tabs extends GlobalStyle{constructor(){super(...arguments),this.outlineType="border",this.useSlot=!1,this.index=0,this.__outlineSC=new StyleController(this,(()=>new OutlineBuilder({outlineType:this.outlineType}).css))}render(){return Ct`<ul part="root" ${Ht(this.observedRecord)} @mouseleave="${this._handleMouseLeave}"> ${this.tabs?.map(((t,e)=>t||this.useSlot?Ct`<li part="${qt("item",{selected:this.index===e})}" @mouseenter=${()=>{this.move(this._lastIndex,e),this._lastIndex=e}} @click=${()=>this.select(e)}> ${this.useSlot?Vt(t):t} <div part="indicator"></div> </li>`:""))} </ul>`}connectedCallback(){super.connectedCallback(),this._lastIndex=this.index}_handleMouseLeave(){const t=this._items[this._lastIndex];t&&t.part.remove(vo),this._lastIndex=this.index}move(t,e){if(t===e)return;const{_items:o,_indicators:s}=this,a=o[e];if(!a)return;a.part.add(vo);const l=o[t];if(!l)return;l.part.remove(vo);const h=s[e],c=s[t];if(!h||!c)return;const d=c.getBoundingClientRect(),p=a.getBoundingClientRect(),u=d.x-p.x,v=d.y-p.y,f=d.width,{style:m}=h;m.transform=`translate3d(${u}px,${v}px,0)`,m.width=f+"px",m.transition=c.style.transition="none",h.getBoundingClientRect(),m.width=m.transform=m.transition=c.style.transition=""}select(t){const{index:e,tabs:o,_lastIndex:s,useSlot:a}=this;o&&e!==t&&t in o&&(this.dispatchCustomEvent("select",t),this.move(s,t),this._lastIndex=t,e in o&&(o[e]||a)&&(this.index=t))}};t([Q({attribute:"outline-type"})],fo.prototype,"outlineType",void 0),t([Q({type:Boolean})],fo.prototype,"useSlot",void 0),t([Q({type:Array})],fo.prototype,"tabs",void 0),t([Q({type:Number})],fo.prototype,"index",void 0),t([ot("[part~=item]")],fo.prototype,"_items",void 0),t([ot("[part=indicator]")],fo.prototype,"_indicators",void 0),fo=t([g(po),m(S`:host{${uo}--indicator-background:var(${he._colors.darkgray[7]});${uo}--space:0.25em;border-radius:var(${he.radius});cursor:default;display:flex;transition:.2s ease-in-out;width:-moz-fit-content;width:fit-content}[part=root]{border-radius:inherit;display:flex;flex-direction:inherit;gap:var(${uo}--space);overflow-x:clip;padding:var(${uo}--space);position:relative;transition:inherit;transition-property:width,transform,opacity;z-index:1}[useslot] [part~=item]{padding:0}[part~=item]{display:block;padding:0 .4em;position:relative;white-space:nowrap}[part=indicator],[part~=item]{border-radius:inherit;transition:inherit;transition-property:inherit;width:100%}[part=indicator]{background:var(${uo}--indicator-background);height:100%;inset:0;opacity:0;position:absolute;z-index:-1}[part~=selected]{background:var(${uo}--indicator-background)}[part~=hover] [part=indicator],[part~=selected] [part=indicator]{opacity:1}`)],fo);var mo=fo;function go(t,e=2){return t.toString().padStart(e,"0").split("")}mo.define();let yo=class Time extends GlobalStyle{constructor(){super(...arguments),this.escape="%",this.format="YYYY-MM-DD hh:mm:ss",this.time=new Date}render(){return Ct`<span part="root" ${Ht(this.observedRecord)}> ${function(t,e=new Date,o="%"){var s;if(!t)return t;if(isNaN(e.getTime()))return;const a=`${o}${o}`,l=[];t=t.replace(new RegExp(`${o}([ZYMDhmsS${o}])`,"g"),((t,e)=>(l.push(e),a)));const h=e.getTimezoneOffset()/-60,c={Z:[h>=0?"+"+h.toString():h.toString()],Y:e.getFullYear().toString().split(""),M:go(e.getMonth()+1),D:go(e.getDate()),h:go(e.getHours()),m:go(e.getMinutes()),s:go(e.getSeconds()),S:go(e.getMilliseconds(),3)},d=[];for(const e of t.split("").reverse()){const t=null===(s=c[e])||void 0===s?void 0:s.pop();t?d.push(t):d.push(e)}return d.reverse().join("").replace(new RegExp(a,"g"),(()=>l.shift()))}(this.format,this.time,this.escape)} </span>`}updated(t){t.has("timeout")&&this.timeout&&(this.timeouts.remove(this.timeoutId),this.timeoutId=this.timeouts.add(setInterval((()=>{this.dispatchCustomEvent("time",this.time),this.time=new Date(this.time.getTime()+(this.gap||this.timeout))}),Math.abs(this.timeout))))}};t([Q()],yo.prototype,"escape",void 0),t([Q()],yo.prototype,"format",void 0),t([Q({type:Object})],yo.prototype,"time",void 0),t([Q({type:Number})],yo.prototype,"timeout",void 0),t([Q({type:Number})],yo.prototype,"gap",void 0),yo=t([g("time"),m(S`:host{text-align:center}`)],yo);var $o,bo=yo;bo.define();const _o="tooltip",wo=le(_o);let xo=$o=class Tooltip extends SuperOpenable{constructor(){super(...arguments),this.direction="top",this.align="center",this.propagation=!1,this.type="hover"}render(){const t=$o.aligns[this.align]||"inherit",e="focus"===this.type;return Ct`<div part="root" ${Ht(this.observedRecord)} tabindex="${e?0:-1}" @focus="${e?()=>this.open=!0:null}" @blur="${e?()=>this.open=!1:null}" @mouseenter="${e?null:()=>this.open=!0}" @mouseleave="${e?null:()=>this.open=!1}" style="justify-content:${t};align-items:${t}"> ${Vt()} <div part="tip" direction-outset-place> ${this.tip?Ct`<span class="passive">${this.tip}</span>`:Vt("tip")} </div> </div>`}};xo.aligns={start:"flex-start",end:"flex-end",center:"center","flex-start":"flex-start","flex-end":"flex-end"},t([Q()],xo.prototype,"tip",void 0),t([Q()],xo.prototype,"direction",void 0),t([Q()],xo.prototype,"align",void 0),t([Q({type:Boolean})],xo.prototype,"propagation",void 0),t([Q()],xo.prototype,"type",void 0),xo=$o=t([g(_o),m(ji,S`:host{${wo}--tip-background:inherit;width:-moz-fit-content;width:fit-content}:host,[part=root]{display:inline-flex}[part=root]{border-radius:inherit;position:relative;transition:inherit}[part=tip]{height:-moz-fit-content;height:fit-content;position:absolute;transition:inherit;-webkit-user-select:none;user-select:none;visibility:hidden;width:-moz-fit-content;width:fit-content}:host([open]) [part=tip]{visibility:visible}.passive{background:var(${wo}--tip-background)}[propagation] [part=tip]{pointer-events:none}`)],xo);var ko=xo;ko.define();const Co="typewriter",So=le(Co);let Ao=class Typewriter extends GlobalStyle{constructor(){super(...arguments),this.content="",this.ended=!1,this.max=100,this.min=50,this.delay=0,this.index=0,this.contentInternal=""}get len(){return this.content.length}render(){return Ct`<div part="root" ${Ht(this.observedRecord)}> ${Vt()} ${this.contentInternal} <i part="cursor" ?hidden="${this.ended}"></i> </div>`}connectedCallback(){super.connectedCallback(),this._ranger=new Ranger(this.min,this.max)}firstUpdated(){this.content||=this._slot?.assignedNodes()[0]?.textContent.trim()||"",!this.ended&&this.len&&this.write()}updated(t){t.has("index")&&this.dispatchCustomEvent(this.index===this.len?"done":"write",this.contentInternal)}write(t=this.index){this.contentInternal=this.content.slice(0,t+1);const e=this.delay||this._ranger.random();this.timeoutID=this.timeouts.add(setTimeout((()=>{const e=t+1;e<=this.len&&(this.index=e,this.write())}),e))}stop(){clearTimeout(this.timeoutID)}end(){this.ended=!0}};t([Q()],Ao.prototype,"content",void 0),t([Q({type:Boolean})],Ao.prototype,"ended",void 0),t([Q({type:Number})],Ao.prototype,"max",void 0),t([Q({type:Number})],Ao.prototype,"min",void 0),t([Q({type:Number})],Ao.prototype,"delay",void 0),t([Q({type:Number})],Ao.prototype,"index",void 0),t([J()],Ao.prototype,"contentInternal",void 0),t([et("i")],Ao.prototype,"_i",void 0),Ao=t([g(Co),m(S`:host{${So}--cursor-width:.05em}:host,:host([contents]) [part=root]{display:inline-block}i{animation:s 1.5s steps(1) infinite;border-right:var(${So}--cursor-width) solid;margin-left:.02em}@keyframes s{0%{border-color:currentColor}50%{border-color:transparent}}slot{display:none}`)],Ao);var Ro=Ao;Ro.define();export{ye as Alert,be as Avatar,ke as Badge,Ee as Breath,ze as Button,He as Card,Fe as Carousel,Xe as Details,ei as Dialog,oi as Divider,si as Dragbox,li as Flex,ci as Form,ui as Grid,fi as Heading,_i as Input,xi as Layout,Ti as Link,Pi as Progress,zi as Range,Hi as Rotate,Ai as Router,Wi as Select,Qi as Skeleton,io as Split,no as Switch,mo as Tabs,co as Text,bo as Time,ko as Tooltip,Ro as Typewriter};
|
58
|
+
*/var s,o},zt=6;let Dt=class i{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,s){this._$Ct=t,this._$AM=e,this._$Ci=s}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}};const Ut=(t,e)=>(t?t+(e?" "+e:""):e)||"",Ht=(...t)=>t.reduce(((t,e)=>{if(!e)return t;if(a(e))return Ut(t,Ht(...e));if(o(e)){for(const s in e)e[s]&&(t=Ut(t,s));return t}return Ut(t,e)}),"");function jt(t,o){(t=>e(t)||!1===t)(o)?this.removeAttribute(t):!0===o?this.setAttribute(t,""):s(o)||(t=>"number"==typeof t)(o)&&!Number.isNaN(o)?this.setAttribute(t,String(o)):this[t]=o}const Lt=(t=>(...e)=>({_$litDirective$:t,values:e}))(class AttrDirective extends Dt{render(t,e){}update(t,[e,s=jt]){if(e&&t.type===zt)for(const o in e)s.call(t.element,o,e[o]);return dt}}),Vt=((t,e)=>s=>t({...e,...s}))(Lt,{width:"1em",height:"1em",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"}),Gt=t=>lt`<slot name="${t||ct}"></slot>`,Ft=(t,e)=>{if(!t)return ct;const o=s(t)?t:xt(t);return o?lt`<style media="${ct}">${o}</style>`:ct},Wt=t=>(e,...o)=>{const a=ht(e,o),l=s(t)?t:t.join(" "),h=t=>lt`<svg viewBox="${l}" ${Vt(t)}>${a}</svg>`;return h.body=a,h.viewBox=l,h};function*qt(t,e,s){for(let s=0;s<t;s++)yield e(s)}function Yt(t,e=this){if(!e||!t)return[];const s=new Set;e instanceof Element&&e.shadowRoot&&Yt(t,e.shadowRoot).forEach((t=>s.add(t))),e.querySelectorAll(t).forEach((t=>s.add(t)));for(const o of e.children)Yt(t,o).forEach((t=>s.add(t)));return Array.from(s)}function Xt(t,e=this){if(!e||!t)return null;let s;if(e instanceof Element&&e.shadowRoot&&(s=Xt(t,e.shadowRoot),s))return s;if(s=e.querySelector(t),s)return s;for(const o of e.children)if(s=Xt(t,o),s)return s;return null}class Events{constructor(){this.inner=new Map}add(t,e,s,o){if(!t||!s)return;const a=this.inner.get(e)||new Map,l=a.get(t)||new Set;return l.add(s),a.set(t,l),this.inner.set(e,a),t.addEventListener(e,s,o),s}remove(t,e,s,o){if(!t||!s)return;const a=this.inner.get(e);if(a){const o=a.get(t);o&&(o.delete(s),o.size||(a.delete(t),a.size||this.inner.delete(e)))}t.removeEventListener(e,s,o)}removeAll(){this.inner.forEach(((t,e)=>{t.forEach(((t,s)=>{t.forEach((t=>{s.removeEventListener(e,t)}))})),t.clear()})),this.inner.clear()}}class Observers{constructor(){this.inner=new Map}add(t,e,s,o){const[a,l]=((t,e,s)=>{let o,a;switch(t){case MutationObserver:case ResizeObserver:o=new t(e),a=t=>o.observe(t,s);break;case IntersectionObserver:o=new t(e,s),a=t=>o.observe(t);break;case PerformanceObserver:o=new t(e),a=()=>o.observe(s)}return[o,a]})(e,s,o);if(a)return this.inner.set(a,(this.inner.get(a)||new Set).add(t)),l(t),a}remove(t,e){t.disconnect();const s=this.inner.get(t);"unobserve"in t?(e?(t.unobserve(e),s?.delete(e)):(s?.forEach((e=>{t.unobserve(e)})),s?.clear()),s&&!s.size&&this.inner.delete(t)):s&&this.inner.delete(t)}removeAll(){this.inner.forEach(((t,e)=>{this.remove(e)}))}}class Ranger{constructor(t,e,s){this.max=Math.max(t,e),this.min=Math.min(t,e),this.diff=this.max-this.min,this.step=s}random(){return this.normalize(Math.random()*this.diff+this.min)}present(t){return this.normalize(t*this.diff)}normalize(t){return t=this.restrict(t),this.step?this.min+Math.round((t-this.min)/this.step)*this.step:t}restrict(t){return this.max<=t?this.max:this.min>=t?this.min:t}}const Zt=(t,e,s)=>t.startsWith(e)&&t.endsWith(s);class RouteTree{constructor(){this.matchType=RouteTree.MatchTypes.strict,this.children=[]}insert(t,e,s=0){if(e||(e=RouteTree.split(t)),e.length===s)return void(this.pattern=t);const o=e[s];let a=this.findStrict(o);a||(a=new RouteTree,a.part=o,a.matchType=RouteTree.dynamic(o).matchType,this.children.push(a),this.sorted=!1),a.insert(t,e,s+1)}search(t,e=0){if(s(t)&&(t=RouteTree.split(t)),this.sorted||this.sort(),t.length===e||RouteTree.dynamic(this.part).matchType===RouteTree.MatchTypes.multi)return this.pattern?this:null;const o=t[e],a=this.filterWide(o);for(const s of a){const o=s.search(t,e+1);if(null!==o)return o}return null}findStrict(t){return this.children.find((e=>e.part===t))||null}filterWide(t){return this.children.filter((e=>e.part===t||e.matchType))}sort(){const{children:t}=this;if(t.length){t.sort(((t,e)=>t.matchType-e.matchType));for(const e of t)e.sort()}this.sorted=!0}static parseParams(t,e){const s=RouteTree.split(t),o=RouteTree.split(e),a={};for(let t=0;t<o.length;t++){const e=o[t],{key:l,matchType:h}=RouteTree.dynamic(e);if(h===RouteTree.MatchTypes.single)a[l]=s[t];else if(h===RouteTree.MatchTypes.multi){a[l]=s.slice(t).join("/");break}}return a}static dynamic(t){if(t){if(Zt(t,"{","}")||Zt(t,"[","]")){t=t.slice(1,-1);const e=RouteTree.dynamic(t);return e.matchType||=RouteTree.MatchTypes.single,e}if(t.startsWith(":"))return{key:t.slice(1),matchType:RouteTree.MatchTypes.single};if(t.startsWith("*"))return{key:t.slice(1),matchType:RouteTree.MatchTypes.multi};if(t.startsWith("..."))return{key:t.slice(3),matchType:RouteTree.MatchTypes.multi}}return{key:t,matchType:RouteTree.MatchTypes.strict}}static split(t){return t.split("/").filter((t=>t))}}RouteTree.MatchTypes={strict:0,single:1,multi:2};class Timeouts{constructor(){this.inner=new Set}add(t){if(void 0!==t)return t=+t,this.inner.has(t)&&clearTimeout(t),this.inner.add(t),t}remove(t){void 0!==t&&(t=+t,clearTimeout(t),this.inner.delete(t))}removeAll(){this.inner.forEach(clearTimeout),this.inner.clear()}}const Kt=(t,{attribute:e})=>!0===e||void 0===e?String(t).toLowerCase():!1!==e&&"symbol"!=typeof t?e:void 0,Qt=/^[\s\S]*{[\s\S]*}$/;class GodownElement extends yt{static define(t=this.elementTagName,e){this.isDefined()||this.godownConfig.define(t,this,e)}static isDefined(){return!!this.getDefined()}static getDefined(){return this.godownConfig.get(this.elementTagName)}static finalize(){super.finalize(),this.elementAttributes=new Map;for(const[t,e]of this.elementProperties.entries()){const s=Kt(t,e);s&&this.elementAttributes.set(s,t)}}get observedRecord(){const t={};for(const[e,s]of this.constructor.elementAttributes.entries())t[e]=this[s];return t}get _slot(){return this.shadowRoot?this.shadowRoot.querySelector("slot:not([name])"):null}get _slotAll(){return this.shadowRoot?[...this.shadowRoot.querySelectorAll("slot")]:[]}get _slottedAll(){return[...this.querySelectorAll("[slot]")]}get _slottedNames(){return this._slottedAll.map((t=>t.getAttribute("slot"))).filter((t=>t))}getBoundingClientRect(){let t;return this.contents&&(t=this.contentsRoot||this.shadowRoot?.firstElementChild)&&t!==this?t.getBoundingClientRect():super.getBoundingClientRect()}getClientRects(){let t;return this.contents&&(t=this.contentsRoot||this.shadowRoot?.firstElementChild)&&t!==this?t.getClientRects():super.getClientRects()}get stylex(){return this.__stylex.css}set stylex(t){t=t.trim(),Qt.test(t)||(t=`:host{${t}}`),this.shadowRoot?(this.__stylex.index&&this.shadowRoot.adoptedStyleSheets.splice(this.__stylex.index,1),this.__stylex.css=t,this.__stylex.index=this.adoptStyles(t)):this.__stylex.lazy=t}constructor(t){super(),this.events=new Events,this.observers=new Observers,this.timeouts=new Timeouts,this.__stylex={},this.assign={...GodownElement.godownConfig?.assign||{},...t}}connectedCallback(){super.connectedCallback(),this.assign&&(Object.assign(this,this.assign),this.assign=null);const{lazy:t}=this.__stylex;t&&(this.adoptStyles(t),this.__stylex.lazy="")}disconnectedCallback(){this.events.removeAll(),this.observers.removeAll(),this.timeouts.removeAll()}mount(t){this.firstUpdated(t)}unmount(){this.disconnectedCallback()}remount(t){this.unmount(),this.connectedCallback(),this.mount(t)}deepQuerySelector(t){return Xt.call(this,t)}deepQuerySelectorAll(t){return Yt.call(this,t)}adoptStyles(...t){if(!this.shadowRoot||!t.length)return;const e=this.shadowRoot.adoptedStyleSheets,s=new CSSStyleSheet;return t.forEach((t=>s.insertRule(t.toString()))),e.push(s),e.length-1}dispatchCustomEvent(t,e,s){this.dispatchEvent(new CustomEvent(t,{detail:e,composed:!0,...s}))}}GodownElement.godownConfig=new class GodownConfig{constructor(t){this.assign=null,this.prefix="godown",this.suffix="",this.components=new Map,this.registry=customElements,t&&Object.assign(this,t)}tag(t){return h(this.prefix+"-"+t+"-"+this.suffix)}define(t,e,s){this.registry.define(t,e,s),this.components.set(t,e)}get(t){return this.registry.get(t)}getName(t){const{getName:e}=this.registry;return e?e(t):[...this.components.entries()].find((([,e])=>e===t))?.[0]||null}whenDefined(t){return this.registry.whenDefined(t)}upgrade(t){this.registry.upgrade(t)}},t([Tt({type:Boolean,reflect:!0})],GodownElement.prototype,"contents",void 0),t([Tt({reflect:!0})],GodownElement.prototype,"stylex",null);class GlobalStyle extends GodownElement{}const Jt=((t,e)=>((t,e)=>((t,e)=>{if(!t||!e)return t;let s=0;for(;s<t.length&&e(t.slice(s,s+1));)s+=1;return t.slice(s)})(((t,e)=>{if(!t||!e)return t;let s=t.length;for(;s>0&&e(t.slice(s-1,s));)s-=1;return t.slice(0,s)})(t,e),e))(t,(t=>t===e)))(GlobalStyle.godownConfig.prefix,"-");function te(t,e=1){return function(t){return v(`--${t}`)}(Jt+"-".repeat(e)+t)}const ee={background:te("background",2),foreground:te("foreground",2),backgroundClip:te("background-clip",2),primaryBackground:te("primary",2),primaryForeground:te("primary-foreground",2),muted:te("muted",2),active:te("active",2),passive:te("passive",2),input:te("input",2),radius:te("radius",2),ringWidth:te("ring-width",2),ringColor:te("ring-color",2)};GlobalStyle.styles=[v(((t,e,s)=>{const o=[...bt(e)];return((t,{truecase:e,falsecase:s})=>{const o="@supports";let a="";return e&&(a+=`${o}(${t}){${e}}`),s&&(a+=`${o} not(${t}){${s}}`),a})("color:light-dark(#fff,#000)",{truecase:xt([[t,kt(o.map((([t,[e,s]])=>[t,`light-dark(${e},${s})`])))]]),falsecase:xt([[t,kt(o.map((([t,e])=>[t,e[s]])))]])})})(":host",[[ee.background,["hsl(0 0% 96%)","hsl(0 0% 4%)"]],[ee.foreground,["hsl(0 0% 4%)","hsl(0 0% 96%)"]],[ee.muted,["hsl(0 0% 90%)","hsl(0 0% 18%)"]]],1)),v(xt({":host":kt([[ee.primaryBackground,Ct(ee.foreground)],[ee.primaryForeground,Ct(ee.background)],[ee.active,Ct(ee.primaryBackground)],[ee.passive,Ct(ee.muted)],[ee.backgroundClip,`linear-gradient(to bottom, ${Ct(ee.foreground)}, ${Ct(ee.muted)})`],[ee.ringColor,Ct(ee.passive)],[ee.ringWidth,".075em"]])})),m`button,dialog,input{border:0;outline:0}*{box-sizing:border-box;font-size:100%;font-style:normal;margin:0;padding:0}:host{border-style:none;box-sizing:border-box;outline-style:none}a{text-decoration:none}span{white-space:nowrap}svg{-webkit-user-select:none;user-select:none}:host([contents]){display:contents}[part=root]{height:100%;width:100%}:host([contents]) [part=root]{height:inherit;width:inherit}:where(:host([contents]) [part=root]){all:inherit;display:revert}`,m`:host{${ee.radius}:0.2em;border-radius:var(${ee.radius})}`];const ie=({width:t,color:e,inset:s})=>`outline-style:solid;outline-color:${e};outline-width:${t};${s?`outline-offset:calc(-1 * ${t});`:""}`,se=({width:t,color:e,inset:s})=>`box-shadow:${s?"inset":""} 0 0 0 ${t} ${e};`,oe={outline:(t,e)=>ie({width:t,color:e,inset:!1}),"outline-inset":(t,e)=>ie({width:t,color:e,inset:!0}),"box-shadow":(t,e)=>se({width:t,color:e,inset:!1}),shadow:(t,e)=>se({width:t,color:e,inset:!1}),"box-shadow-inset":(t,e)=>se({width:t,color:e,inset:!0}),"shadow-inset":(t,e)=>se({width:t,color:e,inset:!0}),border:(t,e)=>(({width:t,color:e})=>`border-style:solid;border-color:${e};border-width:${t};border-style:solid;`)({width:t,color:e})};class RingBuilder{constructor({selector:t=":host",width:e=Ct(ee.ringWidth),color:s=Ct(ee.ringColor),type:o}={}){if(o&&o in oe){const a=oe[o](e,s);this.css=`${t}{${a}}`}else this.css=""}get styleSheet(){return v(this.css).styleSheet}}let re=class Alert extends GlobalStyle{constructor(){super(),this.ringType="border",new StyleController(this,(()=>new RingBuilder({type:this.ringType}).css))}render(){return lt`<div part="root" ${Lt(this.observedRecord)}> <div>${Gt("prefix")}</div> <div part="content"> <strong part="title">${this.title||Gt("title")}</strong> ${this.content||Gt()} </div> <div>${Gt("suffix")}</div> </div>`}static alert(t,e){const s=new this;return Object.assign(s,e),t.appendChild(s),s}};t([Tt({attribute:"ring-type"})],re.prototype,"ringType",void 0),t([Tt()],re.prototype,"title",void 0),t([Tt()],re.prototype,"content",void 0),re=t([At("alert"),St(m`:host{background:var(${ee.background})}:host,:where(:host([contents]) [part=root]){display:block}[part=root]{align-items:center;grid-template-columns:auto 1fr auto;grid-template-rows:auto 1fr;padding:.75em}[part=content],[part=root]{display:grid}`)],re);var ne=re;ne.define();let ae=class Avatar extends GlobalStyle{constructor(){super(...arguments),this.name="",this.round=!1}render(){return lt`<div part="root" ${Lt(l(this.observedRecord,"src"))}> ${this._renderAvatar()} </div>`}_renderAvatar(){return this.src?lt`<img part="image" src="${this.src}" alt="${this.name}" @error=${this._handleError}/>`:this.name?lt`<span part="name">${this.formatName()}</span>`:Gt()}formatName(){return this.name}_handleError(){this.src=void 0}};t([Tt()],ae.prototype,"src",void 0),t([Tt()],ae.prototype,"name",void 0),t([Tt({type:Boolean})],ae.prototype,"round",void 0),ae=t([At("avatar"),St(m`:host{background:var(${ee.passive});height:2em;overflow:hidden;vertical-align:bottom;width:2em}:host,[part=root]{display:inline-flex}:host([contents]) [part=root]{display:inline-flex;height:inherit;width:inherit}:host([round]){border-radius:50%}[part=image]{height:100%;object-fit:cover;width:100%}[part=root]{align-items:center;border-radius:inherit;justify-content:center;position:relative}`)],ae);var le=ae;le.define();const he="button",de=te(he);let ce=class Button extends GlobalStyle{constructor(){super(...arguments),this.plain=!1,this.disabled=!1,this.active=!1,this.round=!1}render(){return lt`<div part="root" ${Lt(this.observedRecord)}> ${this.content||Gt()} <span part="modal-root"></span> </div>`}focus(){this.disabled||(this.active=!0,super.focus())}blur(){this.active=!1,super.blur()}connectedCallback(){super.connectedCallback(),this.events.add(this,"click",this._handelClick,!0)}_handelClick(t){if(this.disabled)return t.stopPropagation(),void t.preventDefault();this.plain||this._handleModal(t)}_handleModal(t){const e=document.createElement("i"),{width:s,height:o}=this.getBoundingClientRect(),{x:a,y:l}=this._root.getBoundingClientRect(),h=2*Math.sqrt(o**2+s**2)+"px";e.style.height=h,e.style.width=h,e.style.left=t.x-a+"px",e.style.top=t.y-l+"px",e.style.animationName="kf",this._modalRoot.appendChild(e),e.addEventListener("animationend",(()=>e.remove()),{once:!0})}};t([Tt({type:Boolean,reflect:!0})],ce.prototype,"plain",void 0),t([Tt({type:Boolean,reflect:!0})],ce.prototype,"disabled",void 0),t([Tt({type:Boolean,reflect:!0})],ce.prototype,"active",void 0),t([Tt({type:Boolean,reflect:!0})],ce.prototype,"round",void 0),t([Tt()],ce.prototype,"content",void 0),t([It("modal-root")],ce.prototype,"_modalRoot",void 0),t([It("root")],ce.prototype,"_root",void 0),ce=t([At(he),St(m`:host(:not([disabled]):active){transform:scale(var(${de}--focus-scale))}:host([round]){border-radius:calc(infinity*1px)}:host([disabled]){cursor:not-allowed;filter:brightness(.85)}:host([plain]){${de}--gradients:unset;${de}--focus-scale:unset}`,m`:host{${de}--modal-animation-duration:1.5s;${de}--focus-scale:.97;${de}--deg:45deg;background:var(${ee.primaryBackground});border-style:none;border-width:var(${ee.ringWidth});color:var(${ee.primaryForeground});cursor:pointer;display:block;overflow:hidden;text-align:center;width:-moz-fit-content;width:fit-content}[part=root]:not([contents]){height:100%;width:100%}[part=root]{padding:.25em .75em;position:relative;-webkit-user-select:none;user-select:none}i{animation-duration:var(${de}--modal-animation-duration);background:var(${de}--modal-background,currentColor);border-radius:50%;height:100%;inset:0;opacity:0;pointer-events:none;position:absolute;transform-origin:0 0;visibility:visible;width:100%}@keyframes kf{0%{opacity:var(${de}--modal-opacity,.1);transform:scale(0) translate(-50%,-50%)}80%{transform:scale(1) translate(-50%,-50%)}to{opacity:0}}`)],ce);var pe=ce;let ue=class Badge extends pe{constructor(){super(...arguments),this.plain=!0,this.round=!0}};ue=t([At("badge"),St(m`:host{font-size:.75em}[part=root]{padding:0 .5em}`)],ue);var fe=ue;fe.define();const ve="breath",me=te(ve),ge=/[\s,]+/;let ye=class Breath extends GlobalStyle{render(){const t=this.getTexts();return lt`<div part="root" ${Lt(this.observedRecord)}> ${[t.map(this._renderText),Ft(this._computeStyle(t.length))]} </div>`}_renderText(t){return lt`<span class="rel"> <span class="nocolor">${t}</span> <span class="colorful">${t}</span> </span>`}getTexts(){return Array.isArray(this.content)?this.content:(this.content||this.textContent).split(ge).filter((t=>t))}_computeStyle(t){const e=50/t,s=this.duration||1e3*(2*t+2);let o="";for(let e=1;e<=t;e++)o+=`.rel:nth-child(${e}) .colorful{animation-delay:${-s/t*(t-e+1)}ms;background:var(${me}--${e},var(${me}--${(e-1)%3+1}));}`;return`.colorful{animation-duration:${s}ms;}@keyframes colorfulN{0%,${3*e}%{opacity:0;}${e}%,${2*e}%{opacity:1;}}${o}`}};t([Tt()],ye.prototype,"content",void 0),t([Tt({type:Number})],ye.prototype,"duration",void 0),ye=t([At(ve),St(m`:host{${me}--deg:60deg;${me}--1-1:#dd3c3c;${me}--1-2:#f5993d;${me}--2-1:#26d944;${me}--2-2:#29a3a3;${me}--3-1:#8c30e8;${me}--3-2:#0d80f2;${me}--1:linear-gradient(var(${me}--deg),var(${me}--1-1),var(${me}--1-2));${me}--2:linear-gradient(var(${me}--deg),var(${me}--2-1),var(${me}--2-2));${me}--3:linear-gradient(var(${me}--deg),var(${me}--3-1),var(${me}--3-2))}`,m`:host{align-items:center;direction:ltr;font-size:2em;margin:auto;width:-moz-fit-content;width:fit-content}:host,:host([contents]) [part=root]{display:flex}[part=root]{display:contents}::selection{background:none}.rel{font-size:inherit;font-weight:800;letter-spacing:-.05em;position:relative}`,m`.colorful,.nocolor{animation-iteration-count:infinite;-webkit-background-clip:text!important;background-clip:text!important;box-sizing:border-box;color:transparent;display:inline-block;padding:0 .05em}.colorful{animation-name:colorfulN;opacity:0}.nocolor{background:var(${ee.backgroundClip});position:absolute;top:0}`)],ye);var $e=ye;$e.define(),pe.define();const be="card",_e=te(be);let we=class Card extends GlobalStyle{constructor(){super(),this.ringType="border",this.footer=!1,this.header=!1,new StyleController(this,(()=>new RingBuilder({type:this.ringType}).css))}render(){return lt`<div part="root" ${Lt(this.observedRecord)}> ${[this.header?Gt("header"):"",Gt(),this.footer?Gt("footer"):""]} </div>`}};t([Tt({attribute:"ring-type"})],we.prototype,"ringType",void 0),t([Tt({type:Boolean})],we.prototype,"footer",void 0),t([Tt({type:Boolean})],we.prototype,"header",void 0),we=t([At(be),St(m`:host{${_e}--padding:.75em;background:var(${ee.background});display:block;flex-shrink:0}slot{display:block;padding:var(${_e}--padding)}[part=root]{border-radius:inherit}[name=footer]{padding-top:0}[name=header]{padding-bottom:0}`)],we);var xe=we;xe.define();const ke=Wt("0 0 256 256")`<path fill="currentColor" d="M165.66 202.34a8 8 0 0 1-11.32 11.32l-80-80a8 8 0 0 1 0-11.32l80-80a8 8 0 0 1 11.32 11.32L91.31 128Z">`,Ce=Wt("0 0 256 256")`<path fill="currentColor" d="m181.66 133.66l-80 80a8 8 0 0 1-11.32-11.32L164.69 128L90.34 53.66a8 8 0 0 1 11.32-11.32l80 80a8 8 0 0 1 0 11.32">`;function Se(t){return t.getBoundingClientRect().width}let Ae=class Carousel extends GlobalStyle{constructor(){super(...arguments),this.index=0,this.autoChange=0}render(){return lt`<div part="root" ${Lt(this.observedRecord)}> <i part="prev" @click="${this.prev}"> ${ke()} </i> <div part="move-root">${Gt()}</div> <i part="next" @click="${this.next}"> ${Ce()} </i> </div>`}connectedCallback(){super.connectedCallback(),this.children.length&&(this.__cloneFirst?.remove(),this.__cloneLast?.remove(),this.__cloneLast=this.firstElementChild.cloneNode(!0),this.__cloneFirst=this.lastElementChild.cloneNode(!0),this.appendChild(this.__cloneLast),this.insertBefore(this.__cloneFirst,this.firstElementChild)),this.observers.add(this,ResizeObserver,(()=>{this._offset=this._computeOffset(),this._doTranslateX(`${this._offset}px`,!0)}))}async firstUpdated(){await this.updateComplete,this.show(this.index,!0)}attributeChangedCallback(t,e,s){super.attributeChangedCallback(t,e,s),"index"===t&&this.isConnected&&this.show(this.index)}show(t,e){t=this.normalizeIndex(t),this.index=t,this._offset=this._computeOffset(),this._doTranslateX(`${this._offset}px`,e),this.dispatchCustomEvent("change",t),this.timeouts.remove(this.intervalID),this.autoChange>0&&(this.intervalID=this.timeouts.add(setInterval((()=>{this.next()}),this.autoChange)))}next(){this.index===this.childElementCount-3?(this._doTranslateX("0",!0),this.show(0)):this.show(this.index+1)}prev(){0===this.index?(this._doTranslateX(`-${this.childElementCount-1}00%`,!0),this.show(this.children.length-3)):this.show(this.index-1)}_doTranslateX(t,e){this._moveRoot.style.transform=`translateX(${t})`,this._moveRoot.style.transition=e?"none":""}_computeOffset(){let t=0;for(let e=0;e<=this.index;e++)t-=Se(this.children[e]);return t+=(Se(this)-Se(this.children[this.index+1]))/2,t}normalizeIndex(t){return t<0?0:t>this.children.length-3?this.children.length-3:t}};t([Tt({type:Number})],Ae.prototype,"index",void 0),t([Tt({type:Number})],Ae.prototype,"autoChange",void 0),t([It("move-root")],Ae.prototype,"_moveRoot",void 0),Ae=t([At("carousel"),St(m`:host{display:block;transition:.3s}[part=root]{direction:ltr;overflow:hidden}[part=move-root],[part=root]{display:flex;height:100%;position:relative;transition:inherit;width:100%}[part=next],[part=prev]{align-items:center;display:flex;height:100%;justify-content:center;position:absolute;-webkit-user-select:none;user-select:none;width:1.5em;z-index:1}[part=prev]{left:0}[part=next]{right:0}slot::slotted(*){flex-shrink:0!important}`)],Ae);var Re=Ae;Re.define();const Ee="chip",Te=te(Ee);let Me=class Chip extends GlobalStyle{constructor(){super(...arguments),this.position="top-right",this.value=0,this.dot=!1,this.max=99}formatValue(t){return t>this.max?this.max+"+":t+""}render(){return lt`<div part="root" ${Lt(this.observedRecord)}> ${Gt()} ${this.value||this.dot?lt`<div part="chip">${this.dot?"":this.formatValue(this.value)}</div>`:""} </div>`}};t([Tt()],Me.prototype,"position",void 0),t([Tt({type:Number})],Me.prototype,"value",void 0),t([Tt({type:Boolean})],Me.prototype,"dot",void 0),t([Tt({type:Number})],Me.prototype,"max",void 0),Me=t([At(Ee),St(m`:host{${Te}--offset:0%;${Te}--offset-x:var(${Te}--offset);${Te}--offset-y:var(${Te}--offset)}:host,:host([contents]) [part=root]{display:inline-block}[part=root]{position:relative}[part=chip]{background:var(${ee.primaryBackground});border-radius:calc(infinity*1px);color:var(${ee.primaryForeground});font-size:75%;padding:0 .5em;position:absolute;transform:translate(-50%,-50%);-webkit-user-select:none;user-select:none}[part=chip]:empty{border-radius:50%;font-size:100%;height:.5em;padding:0;width:.5em}[position^=top] [part=chip]{top:calc(var(${Te}--offset-y))}[position$=right] [part=chip]{left:calc(100% - var(${Te}--offset-x))}[position^=bottom] [part=chip]{top:calc(100% - var(${Te}--offset-y))}[position$=left] [part=chip]{left:calc(var(${Te}--offset-x))}`)],Me);var Pe=Me;Pe.define();const Ne=Wt("0 0 256 256")`<path fill="currentColor" d="m213.66 101.66l-80 80a8 8 0 0 1-11.32 0l-80-80a8 8 0 0 1 11.32-11.32L128 164.69l74.34-74.35a8 8 0 0 1 11.32 11.32">`;class SuperOpenable extends GlobalStyle{constructor(){super(...arguments),this.open=!1}toggle(t=!this.open){this.open=t}close(){this.open=!1}show(){this.open=!0}updated(t){void 0!==t.get("open")&&this.dispatchCustomEvent("change",this.open)}}t([Tt({type:Boolean,reflect:!0})],SuperOpenable.prototype,"open",void 0);const Oe="details",Be=te(Oe);let Ie=class Details extends SuperOpenable{constructor(){super(...arguments),this.float=!1,this.fill=!1,this.summary=""}render(){return lt`<dl part="root" ${Lt(this.observedRecord)}> <dt part="title" @click="${()=>this.toggle()}"> <span part="summary">${this.summary||Gt("summary")}</span> <span part="icon">${Ne()}</span> </dt> <dd part="details" @click=${this.fill?()=>this.toggle():null}> <div style="min-height: 0;">${Gt()}</div> </dd> </dl>`}};t([Tt({type:Boolean})],Ie.prototype,"float",void 0),t([Tt({type:Boolean})],Ie.prototype,"fill",void 0),t([Tt()],Ie.prototype,"summary",void 0),Ie=t([At(Oe),St(m`:host{${Be}--icon-deg-open:0deg;${Be}--icon-deg-close:90deg;display:block;transition:.3s}[part=root]{padding:.25em;position:relative}[part=title]{align-items:center;direction:ltr;grid-template-columns:auto auto;height:100%;justify-content:space-between}[part=details],[part=title]{display:grid;overflow:hidden;transition:inherit}[part=details]{grid-template-rows:0fr}:host([open]) [part=details]{grid-template-rows:1fr}[float] [part=details]{position:absolute;top:100%;width:100%}[part]{transition:inherit;transition-property:transform,grid-template-rows}[part=icon]{-webkit-backface-visibility:hidden;backface-visibility:hidden;display:flex;transform:rotate(var(${Be}--icon-deg-close))}:host([open]) [part=icon]{transform:rotate(var(${Be}--icon-deg-open))}`)],Ie);var ze=Ie;ze.define();const De="dialog",Ue=te(De),He=/[\s,]+/;let je=class Dialog extends SuperOpenable{constructor(){super(...arguments),this.key="Escape",this.__modalInvoke=!1}set modal(t){this.contents=t}get modal(){return this.contents}render(){return lt`<dialog part="root" ${Lt(this.observedRecord)}> ${Gt()} </dialog>`}showModal(){this.modal=!0,this.__modalInvoke=!0,this.show()}attributeChangedCallback(t,e,s){super.attributeChangedCallback(t,e,s),"open"===t&&(this.open?this.modal?this._dialog.showModal():this._dialog.show():this._dialog.close())}updated(t){t.has("open")&&(this.open?(this.__submitEvent=this.events.add(this,"submit",this._handelSubmit),this.key&&(this.__keydownEvent=this.events.add(document,"keydown",this._handleKeydown.bind(this)))):(this.events.remove(this,"submit",this.__submitEvent),this.events.remove(document,"keydown",this.__keydownEvent)))}_handleKeydown(t){const e=this.key.split(He);(e.includes(t.key)||e.includes(t.code))&&(t.preventDefault(),this.close())}_handelSubmit(t){"dialog"===t.target.method&&(t.preventDefault(),this.close())}close(){this.__modalInvoke&&(this.modal=!1,this.__modalInvoke=!1),this.open=!1}};t([Tt({type:Boolean,reflect:!0})],je.prototype,"modal",null),t([Tt()],je.prototype,"key",void 0),t([Nt("dialog")],je.prototype,"_dialog",void 0),je=t([At(De),St(m`:host{${Ue}--background-modal:#000;${Ue}--opacity-modal:0.2;background:none;display:block;left:50%;margin:auto;position:fixed;top:50%;transform:translate(-50%,-50%);width:-moz-fit-content;width:fit-content}:host(:not([open])){visibility:hidden}:host([contents]) dialog{position:fixed}dialog{background:inherit;position:relative}::backdrop{background:var(${Ue}--background-modal);opacity:var(${Ue}--opacity-modal)}`)],je);var Le=je;Le.define();let Ve=class Divider extends GlobalStyle{constructor(){super(...arguments),this.vertical=!1}render(){return lt`<div part="root"></div>`}};t([Tt({type:Boolean,reflect:!0})],Ve.prototype,"vertical",void 0),Ve=t([At("divider"),St(m`:host{background:currentColor;color:var(${ee.passive});display:block;height:.05em;width:100%}:host([vertical]){height:100%;width:.05em}`)],Ve);var Ge=Ve;Ge.define();let Fe=class Dragbox extends GlobalStyle{constructor(){super(...arguments),this.__drag=!1}get _offsetParent(){return this.offsetParent??document.body}render(){return lt`<div part="root" ${Lt(this.observedRecord)} @mousedown="${this._handleDragStart}"> ${Gt()} </div>`}firstUpdated(){this.reset()}_handleDragStart(t){this.__x=t.x,this.__y=t.y;const e=this._offsetParent.getBoundingClientRect(),s=this.getBoundingClientRect();this.__t=s.top-e.top,this.__l=s.left-e.left,this.__drag=!0,this.__handleMouseMove=this.events.add(document,"mousemove",this._handleDrag.bind(this)),this.__handleMouseLeave=this.events.add(document,"mouseleave",this._handleDragEnd.bind(this)),this.__handleMouseUp=this.events.add(document,"mouseup",this._handleDragEnd.bind(this))}_handleDragEnd(){this.__drag=!1,this.events.remove(document,"mousemove",this.__handleMouseMove),this.events.remove(document,"mouseleave",this.__handleMouseLeave),this.events.remove(document,"mouseup",this.__handleMouseUp)}_handleDrag(t){if(!this.__drag)return;const{__x:e,__y:s,__l:o,__t:a,style:l}=this,{height:h,width:d}=this._offsetParent.getBoundingClientRect(),{width:c,height:p}=this.getBoundingClientRect(),u=t.x-(e-o),f=t.y-(s-a);l.left=u<0?"0":u<d-c?`${u}px`:d-c+"px",l.top=f<0?"0":f<h-p?`${f}px`:h-p+"px"}reset(){const{x:t,y:e,style:s,offsetWidth:o,offsetHeight:a,offsetLeft:l,offsetTop:h}=this,{height:d,width:c}=this._offsetParent.getBoundingClientRect();s.left=t||"0",s.top=e||"0",l>c-o&&(s.left=c-o+"px"),h>d-a&&(s.top=d-a+"px")}};t([Tt()],Fe.prototype,"x",void 0),t([Tt()],Fe.prototype,"y",void 0),Fe=t([At("dragbox"),St(m`:host{display:block;position:absolute}:host(:active){-webkit-user-select:none;user-select:none}`)],Fe);var We=Fe;We.define();let qe=class Flex extends GlobalStyle{constructor(){super(...arguments),this.vertical=!1}render(){return lt`<div part="root" ${Lt(this.observedRecord)}> ${[Gt(),Ft(xt({":host":{gap:this.gap,"flex-flow":this.flexFlow,"flex-direction":this.vertical&&"column","align-items":this.items,"justify-content":this.content}}))]} </div>`}};t([Tt({attribute:"flex-flow"})],qe.prototype,"flexFlow",void 0),t([Tt()],qe.prototype,"gap",void 0),t([Tt()],qe.prototype,"content",void 0),t([Tt()],qe.prototype,"items",void 0),t([Tt({type:Boolean})],qe.prototype,"vertical",void 0),qe=t([At("flex"),St(m`:host,:host([contents]) [part=root]{display:flex}[part=root]{display:contents}`)],qe);var Ye,Xe=qe;Xe.define();let Ze=Ye=class Form extends GlobalStyle{constructor(){super(...arguments),this.name="",this.nameValue=this.namevalue}get value(){return Ye.buildValue(this._slot.assignedElements())}render(){return Gt()}reset(){this.deepQuerySelectorAll("*").forEach((t=>{t.tagName!==this.tagName&&t.reset&&t.reset()}))}namevalue(){return[this.name,this.value]}static buildValue(t){const e={};for(const s of t)if("FORM"===s.tagName)Object.assign(e,Object.fromEntries(new FormData(s).entries()));else if(s.namevalue){const[t,o]=s.namevalue();t&&(e[t]=o)}else if(s.name&&void 0!==s.value)e[s.name]=s.value;else if(s.shadowRoot)for(const t of s.shadowRoot.querySelectorAll("slot"))Object.assign(e,this.buildValue(t.assignedElements()));return e}};t([Tt()],Ze.prototype,"name",void 0),Ze=Ye=t([At("form"),St(m`:host{display:block}`)],Ze);var Ke=Ze;Ke.define();const Qe=t=>{return e=t,Number.isNaN(+e)?t:`repeat(${t},1fr)`;var e};let Je=class Grid extends GlobalStyle{render(){return lt`<div part="root" ${Lt(this.observedRecord)}> ${[Gt(),Ft(xt({":host":{gap:this.gap,"grid-template-columns":Qe(this.columns),"grid-template-rows":Qe(this.rows),"place-content":this.content,"place-items":this.items}}))]} </div>`}};t([Tt()],Je.prototype,"gap",void 0),t([Tt()],Je.prototype,"columns",void 0),t([Tt()],Je.prototype,"rows",void 0),t([Tt()],Je.prototype,"content",void 0),t([Tt()],Je.prototype,"items",void 0),Je=t([At("grid"),St(m`:host,:host([contents]) [part=root]{display:grid}[part=root]{display:contents}`)],Je);var ti,ei=Je;ei.define();let ii=ti=class Router extends GlobalStyle{constructor(){super(...arguments),this.__fieldRouteTree=new RouteTree,this.__slottedRouteTree=new RouteTree,this.__cacheRecord=new Map,this.component=null,this.pathname=location.pathname,this.default=Gt(),this.type="united",this.cache=!1,this.handlePopstate=this.events.add(window,"popstate",(()=>{this.pathname=location.pathname}))}get params(){return this.path?RouteTree.parseParams(this.pathname,this.path):{}}set routes(t){this.__routes=t,this.collectFieldRoutes(t)}get routes(){return this.__routes}clear(){this.__cacheRecord.clear()}render(){let t;if(this.cache&&(t=this.__cacheRecord.get(this.pathname))&&(this.component=t.component,this.path=t.path,this.pathname=t.pathname),!t)switch(this.type){case"field":this.component=this.fieldComponent();break;case"slotted":this.component=this.slottedComponent();break;default:this.component=this.fieldComponent()??this.slottedComponent()}return this.component??this.default}connectedCallback(){super.connectedCallback(),ti.routerInstances.add(this),"field"!==this.type&&(this.observers.add(this,MutationObserver,this.collectSlottedRoutes,{attributes:!0,attributeFilter:["slot"],subtree:!0}),this.collectSlottedRoutes())}disconnectedCallback(){super.disconnectedCallback(),ti.routerInstances.delete(this)}useRouter(){return{pathname:this.pathname,params:this.params,path:this.path,component:this.component}}updated(t){if(t.has("pathname")||t.has("path")){const t=this.useRouter();!this.__cacheRecord.has(this.pathname)&&this.path&&this.__cacheRecord.set(this.pathname,t),this.dispatchCustomEvent("change",t)}}fieldComponent(t){if(t||=this.__fieldRouteTree.search(this.pathname)?.pattern,this.path=t,!t)return null;const e=this.routes.find((e=>e.path===t));return e?"render"in e?e.render?.(l(this.useRouter(),"component"))||null:e.component:null}slottedComponent(t){const e=this._slottedNames;return t||=this.__slottedRouteTree.search(this.pathname)?.pattern,this.path=t,t?(this.path=e.find((e=>e===t)),this.path?Gt(this.path):null):null}collectSlottedRoutes(){this.__slottedRouteTree=new RouteTree,this.clear(),this._slottedNames.forEach((t=>{this.__slottedRouteTree.insert(t)}))}collectFieldRoutes(t){this.__fieldRouteTree=new RouteTree,this.clear(),t.forEach((({path:t})=>{this.__fieldRouteTree.insert(t)}))}static updateAll(){this.routerInstances.forEach((t=>{t.handlePopstate()}))}search(t){return this.__fieldRouteTree.search(t)||this.__slottedRouteTree.search(t)}};ii.routerInstances=new Set,t([Mt()],ii.prototype,"component",void 0),t([Mt()],ii.prototype,"path",void 0),t([Tt()],ii.prototype,"pathname",void 0),t([Mt()],ii.prototype,"default",void 0),t([Tt()],ii.prototype,"type",void 0),t([Tt({type:Boolean})],ii.prototype,"cache",void 0),t([Mt()],ii.prototype,"routes",null),ii=ti=t([At("router"),St(m`:host{display:contents}`)],ii);var si=ii;const oi="auto";let ri=class Link extends GlobalStyle{constructor(){super(...arguments),this.type=oi,this.suppress=!1,this.replace=!1,this.target="_self",this.state={},this.handleState=()=>{switch(this.type){case oi:case"push":if(!this.replace){history.pushState(this.state,"",this.href);break}case"replace":history.replaceState(this.state,"",this.href)}}}get pathname(){return new URL(this.href,location.href).pathname}_handleClick(t){const{state:e,type:s,href:o,pathname:a,suppress:l}=this;if(!o)return;if(this.dispatchCustomEvent("navigate",{...this.observedRecord,pathname:a,state:e}),o.startsWith("#")||"normal"===s)return;this.handleState();const h=[...si.routerInstances];l||s===oi&&!h.some((t=>t.search(location.pathname)))||(t.preventDefault(),si.routerInstances.forEach((t=>{t.handlePopstate()})))}render(){return lt`<a part="root" ${Lt(this.observedRecord)} href="${this.href||ct}" target="${this.target}" @click=${this._handleClick}> ${Gt()} </a>`}};t([Tt()],ri.prototype,"type",void 0),t([Tt({type:Boolean})],ri.prototype,"suppress",void 0),t([Tt({type:Boolean})],ri.prototype,"replace",void 0),t([Tt()],ri.prototype,"href",void 0),t([Tt()],ri.prototype,"target",void 0),ri=t([At("link"),St(m`:host{color:currentColor;cursor:default;display:inline-block}:host([href]){cursor:pointer}a{color:currentColor;display:contents}`)],ri);var ni=ri;let ai=class Heading extends ni{constructor(){super(...arguments),this.as="h1",this.anchor="#",this.side="left"}render(){const t=this.href||(this.id?"#"+this.id:void 0);return lt`<a part="root" href="${t||ct}"> ${this.wrapHeading(Gt(),t?lt`<i part="${Ht("anchor",this.side)}">${this.anchor}</i>`:"")} </a>`}wrapHeading(...t){switch(this.as){case"h2":return lt`<h2>${t}</h2>`;case"h3":return lt`<h3>${t}</h3>`;case"h4":return lt`<h4>${t}</h4>`;case"h5":return lt`<h5>${t}</h5>`;case"h6":return lt`<h6>${t}</h6>`;default:return lt`<h1>${t}</h1>`}}};t([Tt()],ai.prototype,"as",void 0),t([Tt()],ai.prototype,"anchor",void 0),t([Tt()],ai.prototype,"side",void 0),ai=t([At("heading"),St(m`:host{display:block;text-align:start}[part~=anchor]{min-width:1.25em;position:absolute;right:100%;text-align:center}[part~=left][part~=anchor]{right:100%}[part~=right][part~=anchor]{left:100%}h1,h2,h3,h4,h5,h6{font-size:revert;position:relative;width:-moz-fit-content;width:fit-content}`)],ai);var li=ai;li.define();const hi=Wt("0 0 256 256")`<path fill="currentColor" d="M53.92 34.62a8 8 0 1 0-11.84 10.76l19.24 21.17C25 88.84 9.38 123.2 8.69 124.76a8 8 0 0 0 0 6.5c.35.79 8.82 19.57 27.65 38.4C61.43 194.74 93.12 208 128 208a127.1 127.1 0 0 0 52.07-10.83l22 24.21a8 8 0 1 0 11.84-10.76Zm47.33 75.84l41.67 45.85a32 32 0 0 1-41.67-45.85M128 192c-30.78 0-57.67-11.19-79.93-33.25A133.2 133.2 0 0 1 25 128c4.69-8.79 19.66-33.39 47.35-49.38l18 19.75a48 48 0 0 0 63.66 70l14.73 16.2A112 112 0 0 1 128 192m6-95.43a8 8 0 0 1 3-15.72a48.16 48.16 0 0 1 38.77 42.64a8 8 0 0 1-7.22 8.71a6 6 0 0 1-.75 0a8 8 0 0 1-8-7.26A32.09 32.09 0 0 0 134 96.57m113.28 34.69c-.42.94-10.55 23.37-33.36 43.8a8 8 0 1 1-10.67-11.92a132.8 132.8 0 0 0 27.8-35.14a133.2 133.2 0 0 0-23.12-30.77C185.67 75.19 158.78 64 128 64a118.4 118.4 0 0 0-19.36 1.57A8 8 0 1 1 106 49.79A134 134 0 0 1 128 48c34.88 0 66.57 13.26 91.66 38.35c18.83 18.83 27.3 37.62 27.65 38.41a8 8 0 0 1 0 6.5Z">`,di=m`:host([disabled]){cursor:not-allowed;filter:brightness(.85)}input:disabled{cursor:inherit}input::-ms-clear,input::-ms-reveal{display:none}`;let ci=class SuperInput extends GlobalStyle{constructor(){super(...arguments),this.autofocus=!1,this.ringType="border",this.disabled=!1,this.compositing=!1,this.makeId=Math.random().toString(36).slice(1),this.nameValue=this.namevalue}get observedRecord(){return l(super.observedRecord,"default","value")}set defaultValue(t){this.default=t}get defaultValue(){return this.default}namevalue(){return[this.name,this.value]}reset(){this.value=this.default,this._input.value=this.default}_handleInput(t){t.stopPropagation(),this.compositing||(this.value=t.target.value?.trim(),this.dispatchCustomEvent("input",this.value,{bubbles:!0}))}_handleChange(t){this.dispatchCustomEvent("change",this.value)}connectedCallback(){super.connectedCallback(),this._connectedInit()}_connectedInit(){this.default??=this.value||"",this.value??=this.default}_compositionInit(){this._input&&(this.events.add(this._input,"compositionstart",(()=>this.compositing=!0)),this.events.add(this._input,"compositionend",(t=>{this.compositing=!1,this._handleInput(t)})))}_changeInputType(t){this._input&&(this._input.type=t)}focus(t){this._input?.focus(t)}firstUpdated(){this._compositionInit()}_renderPrefix(){return lt`<i part="prefix">${Gt("prefix")}</i>`}_renderSuffix(){return lt`<i part="suffix">${Gt("suffix")}</i>`}};t([Tt()],ci.prototype,"autocomplete",void 0),t([Tt({attribute:"ring-type"})],ci.prototype,"ringType",void 0),t([Tt({type:Boolean,reflect:!0})],ci.prototype,"disabled",void 0),t([Tt({reflect:!0})],ci.prototype,"type",void 0),t([Tt({reflect:!0})],ci.prototype,"placeholder",void 0),t([Tt({reflect:!0})],ci.prototype,"name",void 0),t([Tt()],ci.prototype,"value",void 0),t([Tt()],ci.prototype,"default",void 0),t([It("input")],ci.prototype,"_input",void 0),ci=t([St(di)],ci);let pi=class Input extends ci{constructor(){super(),this.type="text",this.variant="default",new StyleController(this,(()=>new RingBuilder({type:this.ringType}).css+("outline"===this.variant?`:host{${ee.ringColor}:currentColor}`:"")))}render(){return lt`<label part="root" ${Lt(this.observedRecord)}> ${[this._renderPrefix(),lt`<input part="input" type="${this.type}" .value="${this.value}" ?autofocus="${this.autofocus}" ?disabled="${this.disabled}" autocapitalize="${this.autocapitalize||ct}" autocomplete="${this.autocomplete||ct}" placeholder="${this.placeholder||ct}" @input="${this._handleInput}" @change="${this._handleChange}"/>`,this._renderSuffix()]} </label>`}_renderSuffix(){const t="password";return this.type===t?lt`<i part="suffix icon" @mousedown="${()=>this._changeInputType("text")}" @mouseup="${()=>this._changeInputType(t)}" @mouseleave="${()=>this._changeInputType(t)}"> ${hi()} </i>`:super._renderSuffix()}};t([Tt()],pi.prototype,"variant",void 0),t([It("input")],pi.prototype,"_input",void 0),pi=t([At("input"),St(m`:host{display:block;${ee.input}-space:0.2em;${ee.input}-icon-color:grey}:host(:active),:host(:focus-within){${ee.ringColor}:currentColor;${ee.input}-icon-color:currentColor}[part~=root]{align-items:center;border-radius:inherit;display:flex;padding:.4em .5em;position:relative}[part=input]{background:none;color:currentColor;flex-grow:1;height:100%;width:100%}[part~=icon]{align-items:center;color:var(${ee.input}-icon-color);display:flex;justify-content:center}[part~=prefix],[part~=suffix]{display:flex;height:100%}[part~=suffix][part~=icon]{padding-inline-start:var(${ee.input}-space)}[part~=prefix][part~=icon]{padding-inline-end:var(${ee.input}-space)}`)],pi);var ui=pi;ui.define();let fi=class Layout extends GlobalStyle{constructor(){super(...arguments),this.sticky=!1}render(){return lt`<div part="root" ${Lt(this.observedRecord)}> <header part="header">${Gt("header")}</header> <main part="main">${Gt()}</main> <footer part="footer">${Gt("footer")}</footer> </div>`}};t([Tt({type:Boolean})],fi.prototype,"sticky",void 0),fi=t([At("layout"),St(m`:host{flex-direction:column;grid-template-rows:auto 1fr auto;min-height:100%;width:100%}:host,:host([contents]) [part=root]{display:flex}[part=root]{display:contents}[part=main]{flex:1;width:100%}[part=footer],[part=header]{flex-shrink:0;width:100%}[sticky] header{position:sticky;top:0}`)],fi);var vi=fi;vi.define(),ni.define();let mi=class Progress extends GlobalStyle{constructor(){super(...arguments),this.max=1,this.min=0}render(){let t,s=20;if(!e(this.value)){const e=new Ranger(this.min,this.max);s=(+this.value-this.min)/e.diff*100,t="static"}return lt`<div part="root" ${Lt(this.observedRecord)} class="${t}"> <i part="value" style="width:${s}%;"></i> </div>`}};t([Tt({type:Number})],mi.prototype,"max",void 0),t([Tt({type:Number})],mi.prototype,"min",void 0),t([Tt({type:Number})],mi.prototype,"value",void 0),mi=t([At("progress"),St(m`:host{background:var(${ee.passive});border-radius:.25em;color:var(${ee.active});height:.5em;width:100%}:host,[part=root]{display:block}[part=root]{border-radius:inherit;overflow:hidden;position:relative;z-index:1}[part=value]{animation:progress 1.8s ease-in-out infinite alternate;background:currentColor;border-radius:inherit;height:100%;left:0;position:absolute;top:0;transition:all .3s;z-index:2}@keyframes progress{0%{left:0}to{left:80%}}.static [part=value]{animation:none}`)],mi);var gi=mi;gi.define();const yi="range",$i=te(yi);let bi=class Range extends ci{constructor(){super(...arguments),this.min=0,this.max=100,this.vertical=!1,this.__focusStack=[]}get range(){return Array.isArray(this.value)}get rangeValue(){return this.range?this.value:[this.value]}padValue(t,e=0){const{rangeValue:s}=this,o=t-s.length;return o>0?new Array(o).fill(e).concat(s):s}attributeChangedCallback(t,e,s){super.attributeChangedCallback(t,e,s),"max"!==t&&"min"!==t&&"step"!==t||(this._ranger=new Ranger(this.min,this.max,this.step))}get observedRecord(){return l(super.observedRecord,"ring-type")}render(){const t=this.padValue(2),e=Math.min(...t),s=Math.max(...t),o=this._ranger.diff;return lt`<div part="root" ${Lt(this.observedRecord)} @mousedown="${this.disabled?null:this._handleMousedownRoot}" style="${kt([["--from",(e-this.min)/o*100+"%"],["--to",(s-this.min)/o*100+"%"],...t.map(((t,e)=>[`--handle-${e}`,(t-this.min)/o*100+"%"]))])}"> <div part="track"></div> ${qt(this.rangeValue.length,(t=>this._renderHandle(t)))} </div>`}_renderHandle(t){const{disabled:e,range:s,rangeValue:o}=this,a=!s||s&&t===o.length-1&&1===o.length;return lt`<i tabindex="0" part="${Ht("handle",`handle-${t}`)}" @mousedown="${e?null:this.createMouseDown(t)}" style="${kt({"z-index":this.__focusStack.indexOf(t)+1,"--handle":`var(--${a?"to":`handle-${t}`})`})}"></i>`}focusHandle(t){this.lastFocus=t;const e=this.__focusStack.indexOf(t);-1!==e&&this.__focusStack.splice(e,1),this.__focusStack.push(t);const s=this._handles.item(t);s?.focus(),this.__keydownEvent||(this.__keydownEvent=this.events.add(document,"keydown",this.createKeydownEvent(t)))}blurHandle(){this.lastFocus=void 0,this.__keydownEvent=this.events.remove(document,"keydown",this.__keydownEvent)}createKeydownEvent(t){return e=>{const{rangeValue:s,step:o}=this;s.length<2&&(t=0);const a=s[t];"ArrowLeft"===e.key||"ArrowDown"===e.key?(e.preventDefault(),this.createSetValue(t)(a-o)):"ArrowRight"!==e.key&&"ArrowUp"!==e.key||(e.preventDefault(),this.createSetValue(t)(a+o))}}createMouseDown(t){return e=>{this.focusHandle(t),this.createMousedownListener(this.createSetValue(t))(e)}}createSetValue(t){return e=>{const s=this._ranger.normalize(e);let o=s;this.range&&(o=[...this.value],o[t]=s),this.value=o,this.dispatchCustomEvent("change",this.value)}}_computeValue({clientX:t,clientY:e}){const{top:s,left:o,height:a,width:l}=this._root.getBoundingClientRect();return this._ranger.present(this.vertical?(e-s)/a:(t-o)/l)}_handleMousedownRoot(t){const e=this._computeValue(t),s=this.range?this.rangeValue.reduce(((t,s,o)=>Math.abs(e-s)<Math.abs(e-this.rangeValue[t])?o:t),0):0,o=this.createSetValue(s);o(e),this.createMousedownListener(o)(t),this.focusHandle(s)}createMousedownListener(t){return e=>{e.preventDefault(),e.stopPropagation();const s=this.createMousemoveListener(t);this.events.add(document,"mousemove",s);const o=()=>{this.events.remove(document,"mousemove",s),this.events.remove(document,"mouseup",o)};this.events.add(document,"mouseup",o)}}createMousemoveListener(t){return e=>{const s=this._computeValue(e);s===this._ranger.restrict(s)&&t?.call(this,s)}}_connectedInit(){this._ranger=new Ranger(this.min,this.max,this.step);const t=this._ranger.diff;this.step||=t/100,e(this.value)&&(e(this.default)?this.value=Math.round(t/2/this.step)*this.step:this.value=this.default),this.default??=this.value}reset(){this.value=this.default}sort(){return this.value=this.toSorted()}toSorted(){return this.range?[...this.value].sort(((t,e)=>t-e)):this.value}};t([Tt({type:Number})],bi.prototype,"min",void 0),t([Tt({type:Number})],bi.prototype,"max",void 0),t([Tt({type:Number})],bi.prototype,"step",void 0),t([Tt({type:Boolean,reflect:!0})],bi.prototype,"vertical",void 0),t([Tt({type:Array})],bi.prototype,"value",void 0),t([Tt({type:Array})],bi.prototype,"default",void 0),t([It("root")],bi.prototype,"_root",void 0),t([Bt("[part=handle]")],bi.prototype,"_handles",void 0),t([Mt()],bi.prototype,"lastFocus",void 0),bi=t([At(yi),St(m`:host{${$i}--track-width:.5em;${$i}--handle-scale:1;${$i}--track-background:var(${ee.active});background:var(${ee.passive});display:block;height:var(${$i}--track-width);width:100%}:host([contents]) [part=root]{width:inherit}:host([vertical]){height:100%;width:-moz-fit-content;width:fit-content}[part=root]{position:relative;--from:0%;--to:50%}[part=root],[part=track]{border-radius:inherit;min-height:inherit}[part=track]{background:var(${$i}--track-background);height:100%;justify-content:space-between;left:min(var(--from),var(--to));pointer-events:none;width:max(calc(var(--to) - var(--from)),calc(var(--from) - var(--to)))}[part=track],[part~=handle]{display:flex;position:absolute}[part~=handle]{align-items:center;background:var(${ee.background});border:.1em solid;border-radius:50%;height:1em;justify-content:center;outline:0;transform:scale(var(${$i}--handle-scale)) translate(-50%,-25%);transform-origin:0 25%;-webkit-user-select:none;user-select:none;width:1em}`,m`[vertical]{height:inherit;width:var(${$i}--track-width)}[vertical] i{transform:translate(-25%,-50%)}[vertical] [part=track]{height:max(calc(var(--to) - var(--from)),calc(var(--from) - var(--to)));left:0;top:min(var(--from),var(--to));width:100%}`,m`[part~=handle]{left:var(--handle);top:0}[vertical] [part~=handle]{left:0;top:var(--handle)}`)],bi);var _i=bi;_i.define();const wi="rotate",xi=te(wi);let ki=class Rotate extends GlobalStyle{render(){return lt`<div part="root"> <div part="slot" @mousemove="${this._handleRotate}"> ${Gt()} </div> <i @mouseleave="${this.reset}"></i> </div>`}reset(){this._root.style.removeProperty("transform"),this._root.style.removeProperty("transition")}_handleRotate(t){const{rotateX:e,rotateY:s}=this._computeOffset(t);this._root.style.setProperty("transform",`rotateX(${e}rad) rotateY(${s}rad)`),this._root.style.setProperty("transition","0s")}_computeOffset(t){const{left:e,top:s,width:o,height:a}=this._root.getBoundingClientRect(),{clientX:l,clientY:h}=t;return{rotateX:-(h-s-a/2)/a/2,rotateY:(l-e-o/2)/o/2}}};t([It("root")],ki.prototype,"_root",void 0),ki=t([At(wi),St(m`:host{display:block;transition:all .5s ease-in-out;width:-moz-fit-content;width:fit-content;${xi}--offset:.5em}div{position:relative;transition:inherit;transition-property:transform}i{box-sizing:content-box;height:100%;margin:calc(var(${xi}--offset)*-1);padding:var(${xi}--offset);position:absolute;top:0;width:100%}[part=slot]{z-index:2}`)],ki);var Ci=ki;Ci.define(),si.define();const Si=v("[direction-inset-align]");m`[direction^=top] ${Si}{top:0}[direction^=bottom] ${Si}{bottom:0}[direction$=right] ${Si}{right:0}[direction$=left] ${Si}{left:0}`;const Ai=v("[direction-outset-place]"),Ri=m`[direction^=top] ${Ai}{bottom:100%}[direction^=bottom] ${Ai}{top:100%}[direction$=right] ${Ai}{left:100%}[direction$=left] ${Ai}{right:100%}`;function Ei(t,e){return t&&e&&t.toLowerCase().includes(e.toLowerCase())}function Ti(t,e){if(t){const s="checked";e?t.setAttribute(s,""):t.removeAttribute(s)}}let Mi=class Select extends ui{constructor(){super(...arguments),this.multiple=!1,this.visible=!1,this.autoDirection="bottom",this.__store=[]}get observedRecord(){return{...super.observedRecord,direction:this.direction||this.autoDirection}}render(){return lt`<label part="root" ${Lt(this.observedRecord)}> ${[this._renderPrefix(),lt`<input part="input" type="${this.type}" .value="${this.text}" ?autofocus="${this.autofocus}" ?disabled="${this.disabled}" autocapitalize="${this.autocapitalize||ct}" autocomplete="${this.autocomplete||ct}" placeholder="${this.placeholder||ct}" @focus="${this._handleFocus}" @input="${this._handleInput}" @change="${this._handleChange}"/>`,this._renderSuffix(),lt`<label part="content" direction-outset-place> ${Gt()} </label>`]} </label>`}_renderSuffix(){return lt`<i part="suffix icon">${Ne()}</i>`}_handleFocus(){if(!this.direction){const{top:t,bottom:e}=this.getBoundingClientRect();window.innerHeight-e<this._content.clientHeight&&t>this._content.clientHeight?this.autoDirection="top":this.autoDirection="bottom"}this.visible=!0}firstUpdated(){this.events.add(this._content,"click",(t=>{t.preventDefault(),t.stopPropagation();const{target:e}=t,s=this.optionValue(e);if(s){const t=this.select(s,e.textContent);this.multiple||Ti(this.lastChecked,0),Ti(e,t),this.lastChecked=e}this._input.focus()})),this.events.add(document,"click",(t=>{t.stopPropagation();const e=t.composedPath()[0];e&&!this.shadowRoot.contains(e)&&this.blur()}))}_connectedInit(){if(!this.value){const t=[...this.querySelectorAll("[checked]")];(this.multiple?t:t.length?[this.lastChecked=t[0]]:[]).forEach((t=>{Ti(t,this.select(this.optionValue(t),t.textContent))})),this.default=this.value,this.defaultText=this.text,this.defaultChecked=t}this.text||(this.text="")}reset(){this.value=this.default,this.text=this.defaultText,this.querySelectorAll("[checked]").forEach((t=>Ti(t,0))),this.defaultChecked.forEach((t=>Ti(t,1)))}select(t,e){e||=t,e=e.trim();let s=0;if(this.multiple){const o=this.__store.findIndex((e=>e.value===t));o>-1?this.__store.splice(o,1):(this.__store.push({value:t,text:e}),s=1),this.value=this.__store.map((t=>t.value)),this.text=this.__store.map((t=>t.text)).join(", ")}else this.value===t?(this.value="",this.text=""):(this.value=t,this.text=e,s=1);return this.dispatchCustomEvent("select",this.value),this.filter(),s}filter(t){t=t?.trim(),[...this.children].forEach((e=>{this.filterCallback(e,!t||Ei(this.optionValue(e),t)||Ei(e.textContent,t),t)}))}filterCallback(t,e,s){t.style.display=e?"":"none"}_handleInput(t){if(t.stopPropagation(),this.compositing)return;const e=this._input.value;this.filter(this.multiple?function(t,e){const s=e.slice(0,t).lastIndexOf(",")+1||0,o=e.indexOf(",",t)||e.length;return e.slice(s,o)}(this._input.selectionStart,e):e),this.dispatchCustomEvent("input",this.value,{bubbles:!0})}focus(t){this._input.focus(t),this.visible=!0}blur(){this._input.blur(),this.visible=!1,super.blur()}optionValue(t){return t.value||t.getAttribute("value")||""}};t([Tt()],Mi.prototype,"text",void 0),t([It("content")],Mi.prototype,"_content",void 0),t([Tt()],Mi.prototype,"direction",void 0),t([Tt({type:Boolean})],Mi.prototype,"multiple",void 0),t([Tt({type:Boolean})],Mi.prototype,"visible",void 0),t([Mt()],Mi.prototype,"autoDirection",void 0),Mi=t([At("select"),St(Ri,m`.outline,:host(:focus-within){${ee.input}-outline-color:currentColor}[part=input]{text-overflow:ellipsis}[part=content]{position:absolute;visibility:hidden;width:100%}[visible] [part=content]{visibility:visible}`)],Mi);var Pi=Mi;Pi.define();const Ni="skeleton",Oi=te(Ni);let Bi=class Skeleton extends GlobalStyle{constructor(){super(...arguments),this.loading=!0}render(){return this.loading?lt`<div part="root">${Gt("loading")}</div>`:Gt()}};t([Mt()],Bi.prototype,"loading",void 0),Bi=t([At(Ni),St(m`:host{${Oi}--from:var(${ee.background});${Oi}--to:var(${ee.passive});${Oi}--deg:95deg;${Oi}--duration:2s;animation:_ var(${Oi}--duration) ease-in-out infinite none running;background-color:transparent;background-image:linear-gradient(var(${Oi}--deg),var(${Oi}--from) 36%,var(${Oi}--to) 50%,var(${Oi}--from) 64%);background-size:200% 100%;flex-shrink:0;height:2em;overflow:hidden;width:100%}@keyframes _{0%{background-position:150%}to{background-position:-50%}}[part=root]{display:contents}:host,:host([contents]) [part=root]{display:block}`)],Bi);var Ii=Bi;Ii.define();const zi="split",Di=te(zi);let Ui=class Split extends ci{constructor(){super(),this.len=6,this.index=-1,this.current=-1,this.currentValue=[],new StyleController(this,(()=>new RingBuilder({selector:"[part=input-box]",type:this.ringType}).css))}get observedRecord(){return l(super.observedRecord,"ring-type")}render(){return lt`<div part="root" ${Lt(this.observedRecord)}> ${qt(this.len,(t=>lt`<span part="input-box" ring-type="${this.ringType}" class="${Ht({focus:this.current===t})}" @click="${this.disabled?null:()=>this.focusAt(t)}"> ${this.currentValue[t]} </span>`))} <input part="input" @blur=${this.blur} @input="${this._handleInput}" @change="${this._handleChange}" .value="${this.value.padStart(this.len," ")}"/> </div>`}connectedCallback(){super.connectedCallback(),this.reset()}_handleInput(t){t.stopPropagation(),this.compositing||(this.fillInput(t.data),this.value=this.currentValue.join(""),this.dispatchCustomEvent("input",this.value,{bubbles:!0}))}fillInput(t){if(null===t){if(null!==this.currentValue[this.current])this.currentValue[this.current]=null;else{this.currentValue[this.current-1]=null;const t=this.currentValue.findLastIndex((t=>null!==t));this.current=this.current-1<0?t<0?0:t:this.current-1}return}const e=t.length>1;if(this.currentValue[this.current]=t[0],this.current+1>=this.len?(this.current=this.currentValue.indexOf(null),-1===this.current&&this.blur()):this.current+=1,e){const e=t.slice(1);e&&this.fillInput(e)}}focus(){this.focusAt(this.current),super.focus()}focusAt(t){this.current=t,this._input.focus()}blur(){this._input.blur(),this.current=-1,super.blur()}reset(){this.current=-1,this.value=this.default,this.currentValue=this.value.split("").concat(Array(this.len-this.value.length).fill(null)),this.index>-1&&(this.current=this.index)}};t([Tt({type:Number})],Ui.prototype,"len",void 0),t([Tt({type:Number})],Ui.prototype,"index",void 0),t([Mt()],Ui.prototype,"current",void 0),t([Mt()],Ui.prototype,"currentValue",void 0),Ui=t([At(zi),St(m`:host{border-radius:.1em;display:block;width:-moz-fit-content;width:fit-content;${Di}--size:2em;${Di}--gap:.25em}[part=root]{display:flex;gap:var(${Di}--gap);justify-content:space-between;position:relative}[part=input-box],[part=root]{border-radius:inherit;vertical-align:top}[part=input-box]{align-items:center;display:inline-flex;height:var(${Di}--size);justify-content:center;width:var(${Di}--size)}[part=input]{background:none;height:100%;opacity:0;position:absolute;width:100%;z-index:-1}.focus,[part=input-box]:active{${ee.ringColor}:var(${ee.active})}`)],Ui);var Hi=Ui;Hi.define();const ji="switch",Li=te(ji);let Vi=class Switch extends ci{constructor(){super(...arguments),this.default=!1,this.value=!1}set checked(t){this.value=t}get checked(){return this.value}get observedRecord(){return l(super.observedRecord,"ring-type")}render(){return lt`<div part="root" ${Lt(this.observedRecord)} class="round"> <input part="input" type="checkbox" ?disabled="${this.disabled}" ?checked="${this.value}" @change="${this._handleChange}"/> <span part="handle"></span> </div>`}reset(){this.value=this.default,this._input.checked=this.value}_connectedInit(){this.default?this.value=!0:this.value&&(this.value=!0,this.default=!0)}_handleChange(){const{checked:t}=this._input;this.value=t,this.dispatchCustomEvent("change",this.value)}};t([Tt({type:Boolean})],Vi.prototype,"default",void 0),t([Tt({type:Boolean,attribute:"checked",reflect:!0})],Vi.prototype,"value",void 0),Vi=t([At(ji),St(m`:host,:host([contents]) [part=root]{display:inline-block}:host{${Li}-width:3em;${Li}-height:calc(var(${Li}-width)/2);${Li}-handle-size:1.25em;${Li}-handle-space:calc(var(${Li}-width)/4 - var(${Li}-handle-size)/2);background:var(${ee.passive});border-radius:calc(var(${Li}-height)/2);height:var(${Li}-height);transition:.2s ease-in-out;transition-property:background,left;vertical-align:bottom;width:var(${Li}-width)}:host([checked]){background:var(${ee.active})}[part=root]{position:relative}[part=handle],[part=root]{align-items:center;display:flex;transition:inherit}[part=handle]{background:var(${ee.background});border-radius:100%;height:var(${Li}-handle-size);justify-content:center;left:0;pointer-events:none;position:absolute;top:50%;transform:translateY(-50%) translateX(var(${Li}-handle-space));width:var(${Li}-handle-size)}:host([checked]) [part=handle]{left:50%}[part=input]{height:100%;opacity:0;width:100%}`)],Vi);var Gi=Vi;Gi.define();const Fi="text",Wi=te(Fi);let qi=class Text extends GlobalStyle{constructor(){super(...arguments),this.underline="none",this.clip=!1}render(){return lt`<span part="root" ${Lt(this.observedRecord)} class="${Ht(this.underline)}"> ${Gt()} </span>`}};t([Tt()],qi.prototype,"underline",void 0),t([Tt({type:Boolean})],qi.prototype,"clip",void 0),qi=t([At(Fi),St(m`:host{${Wi}--color:currentColor;${Wi}--color-hover:currentColor;${Wi}--color-active:currentColor;display:inline-block;overflow-wrap:break-word;text-overflow:ellipsis}[part=root]{color:var(${Wi}--color);display:inline-block;overflow:hidden;overflow-wrap:inherit;text-overflow:inherit;vertical-align:bottom;white-space:nowrap}[part=root]:hover{color:var(${Wi}--color-hover,var(${Wi}--color))}[part=root]:active{color:var(${Wi}--color-active,var(${Wi}--color))}.active:active,.always,.hover:hover{text-decoration:underline}.none{text-decoration:none}[clip]{background:var(${ee.backgroundClip});color:transparent;display:inline-block;-webkit-text-fill-color:transparent;background-clip:text;-webkit-background-clip:text}`)],qi);var Yi=qi;Yi.define();const Xi="tabs",Zi=te(Xi),Ki="hover";let Qi=class Tabs extends GlobalStyle{constructor(){super(),this.ringType="border",this.useSlot=!1,this.index=0,new StyleController(this,(()=>new RingBuilder({type:this.ringType}).css))}render(){return lt`<ul part="root" ${Lt(this.observedRecord)} @mouseleave="${this._handleMouseLeave}"> ${this.tabs?.map(((t,e)=>t||this.useSlot?lt`<li part="${Ht("item",{selected:this.index===e})}" @mouseenter=${()=>{this.move(this._lastIndex,e),this._lastIndex=e}} @click=${()=>this.select(e)}> ${this.useSlot?Gt(t):t} <div part="indicator"></div> </li>`:""))} </ul>`}connectedCallback(){super.connectedCallback(),this._lastIndex=this.index}_handleMouseLeave(){const t=this._items[this._lastIndex];t&&t.part.remove(Ki),this._lastIndex=this.index}move(t,e){if(t===e)return;const{_items:s,_indicators:o}=this,a=s[e];if(!a)return;a.part.add(Ki);const l=s[t];if(!l)return;l.part.remove(Ki);const h=o[e],d=o[t];if(!h||!d)return;const c=d.getBoundingClientRect(),p=a.getBoundingClientRect(),u=c.x-p.x,f=c.y-p.y,v=c.width,{style:m}=h;m.transform=`translate3d(${u}px,${f}px,0)`,m.width=v+"px",m.transition=d.style.transition="none",h.getBoundingClientRect(),m.width=m.transform=m.transition=d.style.transition=""}select(t){const{index:e,tabs:s,_lastIndex:o,useSlot:a}=this;s&&e!==t&&t in s&&(this.dispatchCustomEvent("select",t),this.move(o,t),this._lastIndex=t,e in s&&(s[e]||a)&&(this.index=t))}};t([Tt({attribute:"ring-type"})],Qi.prototype,"ringType",void 0),t([Tt({type:Boolean})],Qi.prototype,"useSlot",void 0),t([Tt({type:Array})],Qi.prototype,"tabs",void 0),t([Tt({type:Number})],Qi.prototype,"index",void 0),t([Bt("[part~=item]")],Qi.prototype,"_items",void 0),t([Bt("[part=indicator]")],Qi.prototype,"_indicators",void 0),Qi=t([At(Xi),St(m`:host{${Zi}--indicator-background:var(${ee.passive});${Zi}--space:0.25em;border-radius:var(${ee.radius});cursor:default;display:flex;transition:.3s ease-in-out;width:-moz-fit-content;width:fit-content}[part=root]{border-radius:inherit;display:flex;flex-direction:inherit;gap:var(${Zi}--space);overflow-x:clip;padding:.2em;position:relative;transition:inherit;transition-property:width,transform,opacity;z-index:1}[useslot] [part~=item]{padding:0}[part~=item]{display:block;padding:0 .25em;position:relative;white-space:nowrap}[part=indicator],[part~=item]{border-radius:inherit;transition:inherit;transition-property:inherit;width:100%}[part=indicator]{background:var(${Zi}--indicator-background);height:100%;inset:0;opacity:0;position:absolute;z-index:-1}[part~=selected]{background:var(${Zi}--indicator-background)}[part~=hover] [part=indicator],[part~=selected] [part=indicator]{opacity:1}`)],Qi);var Ji=Qi;function ts(t,e=2){return t.toString().padStart(e,"0").split("")}Ji.define();let es=class Time extends GlobalStyle{constructor(){super(...arguments),this.escape="%",this.format="YYYY-MM-DD hh:mm:ss",this.time=new Date}render(){return lt`<span part="root" ${Lt(this.observedRecord)}> ${function(t,e=new Date,s="%"){var o;if(!t)return t;if(isNaN(e.getTime()))return;const a=`${s}${s}`,l=[];t=t.replace(new RegExp(`${s}([ZYMDhmsS${s}])`,"g"),((t,e)=>(l.push(e),a)));const h=e.getTimezoneOffset()/-60,d={Z:[h>=0?"+"+h.toString():h.toString()],Y:e.getFullYear().toString().split(""),M:ts(e.getMonth()+1),D:ts(e.getDate()),h:ts(e.getHours()),m:ts(e.getMinutes()),s:ts(e.getSeconds()),S:ts(e.getMilliseconds(),3)},c=[];for(const e of t.split("").reverse()){const t=null===(o=d[e])||void 0===o?void 0:o.pop();t?c.push(t):c.push(e)}return c.reverse().join("").replace(new RegExp(a,"g"),(()=>l.shift()))}(this.format,this.time,this.escape)} </span>`}updated(t){t.has("timeout")&&this.timeout&&(this.timeouts.remove(this.timeoutId),this.timeoutId=this.timeouts.add(setInterval((()=>{this.dispatchCustomEvent("time",this.time),this.time=new Date(this.time.getTime()+(this.gap||this.timeout))}),Math.abs(this.timeout))))}};t([Tt()],es.prototype,"escape",void 0),t([Tt()],es.prototype,"format",void 0),t([Tt({type:Object})],es.prototype,"time",void 0),t([Tt({type:Number})],es.prototype,"timeout",void 0),t([Tt({type:Number})],es.prototype,"gap",void 0),es=t([At("time"),St(m`:host{text-align:center}`)],es);var is,ss=es;ss.define();const os="tooltip",rs=te(os);let ns=is=class Tooltip extends SuperOpenable{constructor(){super(...arguments),this.direction="top",this.align="center",this.propagation=!1,this.type="hover"}render(){const t=is.aligns[this.align]||"inherit",e="focus"===this.type;return lt`<div part="root" ${Lt(this.observedRecord)} tabindex="${e?0:-1}" @focus="${e?()=>this.open=!0:null}" @blur="${e?()=>this.open=!1:null}" @mouseenter="${e?null:()=>this.open=!0}" @mouseleave="${e?null:()=>this.open=!1}" style="justify-content:${t};align-items:${t}"> ${Gt()} <div part="tip" direction-outset-place> ${this.tip?lt`<span class="passive">${this.tip}</span>`:Gt("tip")} </div> </div>`}};ns.aligns={start:"flex-start",end:"flex-end",center:"center","flex-start":"flex-start","flex-end":"flex-end"},t([Tt()],ns.prototype,"tip",void 0),t([Tt()],ns.prototype,"direction",void 0),t([Tt()],ns.prototype,"align",void 0),t([Tt({type:Boolean})],ns.prototype,"propagation",void 0),t([Tt()],ns.prototype,"type",void 0),ns=is=t([At(os),St(Ri,m`:host{${rs}--tip-background:inherit;width:-moz-fit-content;width:fit-content}:host,[part=root]{display:inline-flex}[part=root]{border-radius:inherit;position:relative;transition:inherit}[part=tip]{height:-moz-fit-content;height:fit-content;position:absolute;transition:inherit;-webkit-user-select:none;user-select:none;visibility:hidden;width:-moz-fit-content;width:fit-content}:host([open]) [part=tip]{visibility:visible}.passive{background:var(${rs}--tip-background)}[propagation] [part=tip]{pointer-events:none}`)],ns);var as=ns;as.define();const ls="typewriter",hs=te(ls);let ds=class Typewriter extends GlobalStyle{constructor(){super(...arguments),this.content="",this.ended=!1,this.max=100,this.min=50,this.delay=0,this.index=0,this.contentInternal=""}get len(){return this.content.length}render(){return lt`<div part="root" ${Lt(this.observedRecord)}> ${Gt()} ${this.contentInternal} <i part="cursor" ?hidden="${this.ended}"></i> </div>`}connectedCallback(){super.connectedCallback(),this._ranger=new Ranger(this.min,this.max)}firstUpdated(){this.content||=this._slot?.assignedNodes()[0]?.textContent.trim()||"",!this.ended&&this.len&&this.write()}updated(t){t.has("index")&&this.dispatchCustomEvent(this.index===this.len?"done":"write",this.contentInternal)}write(t=this.index){this.contentInternal=this.content.slice(0,t+1);const e=this.delay||this._ranger.random();this.timeoutID=this.timeouts.add(setTimeout((()=>{const e=t+1;e<=this.len&&(this.index=e,this.write())}),e))}stop(){clearTimeout(this.timeoutID)}end(){this.ended=!0}};t([Tt()],ds.prototype,"content",void 0),t([Tt({type:Boolean})],ds.prototype,"ended",void 0),t([Tt({type:Number})],ds.prototype,"max",void 0),t([Tt({type:Number})],ds.prototype,"min",void 0),t([Tt({type:Number})],ds.prototype,"delay",void 0),t([Tt({type:Number})],ds.prototype,"index",void 0),t([Mt()],ds.prototype,"contentInternal",void 0),t([Nt("i")],ds.prototype,"_i",void 0),ds=t([At(ls),St(m`:host{${hs}--cursor-width:.05em}:host,:host([contents]) [part=root]{display:inline-block}i{animation:s 1.5s steps(1) infinite;border-right:var(${hs}--cursor-width) solid;margin-left:.02em}@keyframes s{0%{border-color:currentColor}50%{border-color:transparent}}slot{display:none}`)],ds);var cs=ds;cs.define();export{ne as Alert,le as Avatar,fe as Badge,$e as Breath,pe as Button,xe as Card,Re as Carousel,Pe as Chip,ze as Details,Le as Dialog,Ge as Divider,We as Dragbox,Xe as Flex,Ke as Form,ei as Grid,li as Heading,ui as Input,vi as Layout,ni as Link,gi as Progress,_i as Range,Ci as Rotate,si as Router,Pi as Select,Ii as Skeleton,Hi as Split,Gi as Switch,Ji as Tabs,Yi as Text,ss as Time,as as Tooltip,cs as Typewriter};
|
59
59
|
//# sourceMappingURL=godown+lit.js.map
|