godown 3.1.0 → 3.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (55) hide show
  1. package/README.md +2 -2
  2. package/build/godown+lit.iife.js +4 -4
  3. package/build/godown+lit.iife.js.map +1 -1
  4. package/build/godown+lit.js +6 -6
  5. package/build/godown+lit.js.map +1 -1
  6. package/build/godown+lit.umd.js +4 -4
  7. package/build/godown+lit.umd.js.map +1 -1
  8. package/build/godown.iife.js +2 -2
  9. package/build/godown.js +3 -3
  10. package/build/godown.js.map +1 -1
  11. package/build/godown.umd.js +2 -2
  12. package/build/godown.umd.js.map +1 -1
  13. package/components/link.d.ts +34 -7
  14. package/components/link.d.ts.map +1 -1
  15. package/components/link.js +1 -1
  16. package/components/link.js.map +1 -1
  17. package/components/range.js +1 -1
  18. package/components/range.js.map +1 -1
  19. package/components/router.d.ts +9 -1
  20. package/components/router.d.ts.map +1 -1
  21. package/components/router.js +1 -1
  22. package/components/router.js.map +1 -1
  23. package/components/split.d.ts.map +1 -1
  24. package/components/split.js +1 -1
  25. package/components/split.js.map +1 -1
  26. package/core/super-anchor.d.ts +1 -0
  27. package/core/super-anchor.d.ts.map +1 -1
  28. package/core/super-anchor.js +1 -1
  29. package/core/super-anchor.js.map +1 -1
  30. package/custom-elements.json +1 -1
  31. package/dev/components/link.d.ts +34 -7
  32. package/dev/components/link.d.ts.map +1 -1
  33. package/dev/components/link.js +70 -12
  34. package/dev/components/link.js.map +1 -1
  35. package/dev/components/range.js +2 -2
  36. package/dev/components/range.js.map +1 -1
  37. package/dev/components/router.d.ts +9 -1
  38. package/dev/components/router.d.ts.map +1 -1
  39. package/dev/components/router.js +26 -18
  40. package/dev/components/router.js.map +1 -1
  41. package/dev/components/split.d.ts.map +1 -1
  42. package/dev/components/split.js +1 -8
  43. package/dev/components/split.js.map +1 -1
  44. package/dev/core/super-anchor.d.ts +1 -0
  45. package/dev/core/super-anchor.d.ts.map +1 -1
  46. package/dev/core/super-anchor.js +3 -4
  47. package/dev/core/super-anchor.js.map +1 -1
  48. package/package.json +3 -3
  49. package/src/components/link.ts +75 -12
  50. package/src/components/range.ts +2 -2
  51. package/src/components/router.ts +30 -18
  52. package/src/components/split.ts +1 -9
  53. package/src/core/super-anchor.ts +5 -1
  54. package/vscode.html-custom-data.json +1 -1
  55. package/web-types.json +1 -1
@@ -1,24 +1,24 @@
1
1
  /**
2
2
  * @license MIT
3
- * @version 3.1.0
3
+ * @version 3.2.0
4
4
  */
5
5
  function t(t,e,o,s){var a,l=arguments.length,h=l<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,o):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)h=Reflect.decorate(t,e,o,s);else for(var c=t.length-1;c>=0;c--)(a=t[c])&&(h=(l<3?a(h):l>3?a(e,o,h):a(e,o))||h);return l>3&&h&&Object.defineProperty(e,o,h),h}"function"==typeof SuppressedError&&SuppressedError;const e=t=>null==t,o=(t,e=" ")=>{if(!t||!e)return t;let o=t.length;for(;o>0&&t.slice(o-e.length,o)===e;)o-=e.length;return t.slice(0,o)},s=(t,e=" ")=>{if(!t||!e)return t;let o=0;for(;o<t.length&&t.slice(o,o+e.length)===e;)o+=e.length;return t.slice(o)},a=(t,e)=>o(s(t,e),e),l=(t,...e)=>Object.keys(t).reduce(((o,s)=>(e.includes(s)||(o[s]=t[s]),o)),{}),h="-";const c=(...t)=>e=>{const o=[];for(let t=Object.getPrototypeOf(e);t.styles;t=Object.getPrototypeOf(t))o.push(t.styles);e.styles=[...o,...t]},d=(t,e)=>o=>{t||=o.name.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),o.protoName=t;(({tagName:t,styles:e,autoDefine:o=!1,registry:s=customElements})=>a=>{a.elementTagName=t,e&&c(e)(a),o&&!s.get(t)&&s.define(t,a)})({tagName:o.godownConfig.tag(t),...e})(o)}
6
6
  /**
7
7
  * @license
8
8
  * Copyright 2019 Google LLC
9
9
  * SPDX-License-Identifier: BSD-3-Clause
10
- */,p=globalThis,u=p.ShadowRoot&&(void 0===p.ShadyCSS||p.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,v=Symbol(),f=new WeakMap;let m=class n{constructor(t,e,o){if(this._$cssResult$=!0,o!==v)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(u&&void 0===t){const o=void 0!==e&&1===e.length;o&&(t=f.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),o&&f.set(e,t))}return t}toString(){return this.cssText}};const g=t=>new m("string"==typeof t?t:t+"",void 0,v),y=(t,...e)=>{const o=1===t.length?t[0]:e.reduce(((e,o,s)=>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.")})(o)+t[s+1]),t[0]);return new m(o,t,v)},$=u?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const o of t.cssRules)e+=o.cssText;return g(e)})(t):t
10
+ */,p=globalThis,u=p.ShadowRoot&&(void 0===p.ShadyCSS||p.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,v=Symbol(),m=new WeakMap;let f=class n{constructor(t,e,o){if(this._$cssResult$=!0,o!==v)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(u&&void 0===t){const o=void 0!==e&&1===e.length;o&&(t=m.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),o&&m.set(e,t))}return t}toString(){return this.cssText}};const g=t=>new f("string"==typeof t?t:t+"",void 0,v),y=(t,...e)=>{const o=1===t.length?t[0]:e.reduce(((e,o,s)=>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.")})(o)+t[s+1]),t[0]);return new f(o,t,v)},$=u?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const o of t.cssRules)e+=o.cssText;return g(e)})(t):t
11
11
  /**
12
12
  * @license
13
13
  * Copyright 2017 Google LLC
14
14
  * SPDX-License-Identifier: BSD-3-Clause
15
- */,{is:_,defineProperty:w,getOwnPropertyDescriptor:x,getOwnPropertyNames:C,getOwnPropertySymbols:S,getPrototypeOf:A}=Object,E=globalThis,T=E.trustedTypes,P=T?T.emptyScript:"",O=E.reactiveElementPolyfillSupport,D=(t,e)=>t,B={toAttribute(t,e){switch(e){case Boolean:t=t?P:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let o=t;switch(e){case Boolean:o=null!==t;break;case Number:o=null===t?null:Number(t);break;case Object:case Array:try{o=JSON.parse(t)}catch(t){o=null}}return o}},j=(t,e)=>!_(t,e),U={attribute:!0,type:String,converter:B,reflect:!1,hasChanged:j};Symbol.metadata??=Symbol("metadata"),E.litPropertyMetadata??=new WeakMap;let V=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=U){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){const o=Symbol(),s=this.getPropertyDescriptor(t,o,e);void 0!==s&&w(this.prototype,t,s)}}static getPropertyDescriptor(t,e,o){const{get:s,set:a}=x(this.prototype,t)??{get(){return this[e]},set(t){this[e]=t}};return{get(){return s?.call(this)},set(e){const l=s?.call(this);a.call(this,e),this.requestUpdate(t,l,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??U}static _$Ei(){if(this.hasOwnProperty(D("elementProperties")))return;const t=A(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(D("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(D("properties"))){const t=this.properties,e=[...C(t),...S(t)];for(const o of e)this.createProperty(o,t[o])}const t=this[Symbol.metadata];if(null!==t){const e=litPropertyMetadata.get(t);if(void 0!==e)for(const[t,o]of e)this.elementProperties.set(t,o)}this._$Eh=new Map;for(const[t,e]of this.elementProperties){const o=this._$Eu(t,e);void 0!==o&&this._$Eh.set(o,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const o=new Set(t.flat(1/0).reverse());for(const t of o)e.unshift($(t))}else void 0!==t&&e.push($(t));return e}static _$Eu(t,e){const o=e.attribute;return!1===o?void 0:"string"==typeof o?o:"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 o of e.keys())this.hasOwnProperty(o)&&(t.set(o,this[o]),delete this[o]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return((t,e)=>{if(u)t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const o of e){const e=document.createElement("style"),s=p.litNonce;void 0!==s&&e.setAttribute("nonce",s),e.textContent=o.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,o){this._$AK(t,o)}_$EC(t,e){const o=this.constructor.elementProperties.get(t),s=this.constructor._$Eu(t,o);if(void 0!==s&&!0===o.reflect){const a=(void 0!==o.converter?.toAttribute?o.converter:B).toAttribute(e,o.type);this._$Em=t,null==a?this.removeAttribute(s):this.setAttribute(s,a),this._$Em=null}}_$AK(t,e){const o=this.constructor,s=o._$Eh.get(t);if(void 0!==s&&this._$Em!==s){const t=o.getPropertyOptions(s),a="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:B;this._$Em=s,this[s]=a.fromAttribute(e,t.type),this._$Em=null}}requestUpdate(t,e,o){if(void 0!==t){if(o??=this.constructor.getPropertyOptions(t),!(o.hasChanged??j)(this[t],e))return;this.P(t,e,o)}!1===this.isUpdatePending&&(this._$ES=this._$ET())}P(t,e,o){this._$AL.has(t)||this._$AL.set(t,e),!0===o.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,o]of t)!0!==o.wrapped||this._$AL.has(e)||void 0===this[e]||this.P(e,this[e],o)}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){}};V.elementStyles=[],V.shadowRootOptions={mode:"open"},V[D("elementProperties")]=new Map,V[D("finalized")]=new Map,O?.({ReactiveElement:V}),(E.reactiveElementVersions??=[]).push("2.0.4");
15
+ */,{is:_,defineProperty:w,getOwnPropertyDescriptor:x,getOwnPropertyNames:C,getOwnPropertySymbols:S,getPrototypeOf:A}=Object,E=globalThis,T=E.trustedTypes,P=T?T.emptyScript:"",O=E.reactiveElementPolyfillSupport,D=(t,e)=>t,B={toAttribute(t,e){switch(e){case Boolean:t=t?P:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let o=t;switch(e){case Boolean:o=null!==t;break;case Number:o=null===t?null:Number(t);break;case Object:case Array:try{o=JSON.parse(t)}catch(t){o=null}}return o}},U=(t,e)=>!_(t,e),j={attribute:!0,type:String,converter:B,reflect:!1,hasChanged:U};Symbol.metadata??=Symbol("metadata"),E.litPropertyMetadata??=new WeakMap;let V=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=j){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){const o=Symbol(),s=this.getPropertyDescriptor(t,o,e);void 0!==s&&w(this.prototype,t,s)}}static getPropertyDescriptor(t,e,o){const{get:s,set:a}=x(this.prototype,t)??{get(){return this[e]},set(t){this[e]=t}};return{get(){return s?.call(this)},set(e){const l=s?.call(this);a.call(this,e),this.requestUpdate(t,l,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??j}static _$Ei(){if(this.hasOwnProperty(D("elementProperties")))return;const t=A(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(D("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(D("properties"))){const t=this.properties,e=[...C(t),...S(t)];for(const o of e)this.createProperty(o,t[o])}const t=this[Symbol.metadata];if(null!==t){const e=litPropertyMetadata.get(t);if(void 0!==e)for(const[t,o]of e)this.elementProperties.set(t,o)}this._$Eh=new Map;for(const[t,e]of this.elementProperties){const o=this._$Eu(t,e);void 0!==o&&this._$Eh.set(o,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const o=new Set(t.flat(1/0).reverse());for(const t of o)e.unshift($(t))}else void 0!==t&&e.push($(t));return e}static _$Eu(t,e){const o=e.attribute;return!1===o?void 0:"string"==typeof o?o:"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 o of e.keys())this.hasOwnProperty(o)&&(t.set(o,this[o]),delete this[o]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return((t,e)=>{if(u)t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const o of e){const e=document.createElement("style"),s=p.litNonce;void 0!==s&&e.setAttribute("nonce",s),e.textContent=o.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,o){this._$AK(t,o)}_$EC(t,e){const o=this.constructor.elementProperties.get(t),s=this.constructor._$Eu(t,o);if(void 0!==s&&!0===o.reflect){const a=(void 0!==o.converter?.toAttribute?o.converter:B).toAttribute(e,o.type);this._$Em=t,null==a?this.removeAttribute(s):this.setAttribute(s,a),this._$Em=null}}_$AK(t,e){const o=this.constructor,s=o._$Eh.get(t);if(void 0!==s&&this._$Em!==s){const t=o.getPropertyOptions(s),a="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:B;this._$Em=s,this[s]=a.fromAttribute(e,t.type),this._$Em=null}}requestUpdate(t,e,o){if(void 0!==t){if(o??=this.constructor.getPropertyOptions(t),!(o.hasChanged??U)(this[t],e))return;this.P(t,e,o)}!1===this.isUpdatePending&&(this._$ES=this._$ET())}P(t,e,o){this._$AL.has(t)||this._$AL.set(t,e),!0===o.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,o]of t)!0!==o.wrapped||this._$AL.has(e)||void 0===this[e]||this.P(e,this[e],o)}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){}};V.elementStyles=[],V.shadowRootOptions={mode:"open"},V[D("elementProperties")]=new Map,V[D("finalized")]=new Map,O?.({ReactiveElement:V}),(E.reactiveElementVersions??=[]).push("2.0.4");
16
16
  /**
17
17
  * @license
18
18
  * Copyright 2017 Google LLC
19
19
  * SPDX-License-Identifier: BSD-3-Clause
20
20
  */
21
- const G={attribute:!0,type:String,converter:B,reflect:!1,hasChanged:j},F=(t=G,e,o)=>{const{kind:s,metadata:a}=o;let l=globalThis.litPropertyMetadata.get(a);if(void 0===l&&globalThis.litPropertyMetadata.set(a,l=new Map),l.set(o.name,t),"accessor"===s){const{name:s}=o;return{set(o){const a=e.get.call(this);e.set.call(this,o),this.requestUpdate(s,a,t)},init(e){return void 0!==e&&this.P(s,void 0,t),e}}}if("setter"===s){const{name:s}=o;return function(o){const a=this[s];e.call(this,o),this.requestUpdate(s,a,t)}}throw Error("Unsupported decorator location: "+s)};function W(t){return(e,o)=>"object"==typeof o?F(t,e,o):((t,e,o)=>{const s=e.hasOwnProperty(o);return e.constructor.createProperty(o,s?{...t,wrapped:!0}:t),s?Object.getOwnPropertyDescriptor(e,o):void 0})(t,e,o)
21
+ const G={attribute:!0,type:String,converter:B,reflect:!1,hasChanged:U},F=(t=G,e,o)=>{const{kind:s,metadata:a}=o;let l=globalThis.litPropertyMetadata.get(a);if(void 0===l&&globalThis.litPropertyMetadata.set(a,l=new Map),l.set(o.name,t),"accessor"===s){const{name:s}=o;return{set(o){const a=e.get.call(this);e.set.call(this,o),this.requestUpdate(s,a,t)},init(e){return void 0!==e&&this.P(s,void 0,t),e}}}if("setter"===s){const{name:s}=o;return function(o){const a=this[s];e.call(this,o),this.requestUpdate(s,a,t)}}throw Error("Unsupported decorator location: "+s)};function W(t){return(e,o)=>"object"==typeof o?F(t,e,o):((t,e,o)=>{const s=e.hasOwnProperty(o);return e.constructor.createProperty(o,s?{...t,wrapped:!0}:t),s?Object.getOwnPropertyDescriptor(e,o):void 0})(t,e,o)
22
22
  /**
23
23
  * @license
24
24
  * Copyright 2017 Google LLC
@@ -43,7 +43,7 @@ const G={attribute:!0,type:String,converter:B,reflect:!1,hasChanged:j},F=(t=G,e,
43
43
  * @license
44
44
  * Copyright 2017 Google LLC
45
45
  * SPDX-License-Identifier: BSD-3-Clause
46
- */,Q=globalThis,J=Q.trustedTypes,tt=J?J.createPolicy("lit-html",{createHTML:t=>t}):void 0,et="$lit$",it=`lit$${Math.random().toFixed(9).slice(2)}$`,ot="?"+it,rt=`<${ot}>`,st=document,nt=()=>st.createComment(""),at=t=>null===t||"object"!=typeof t&&"function"!=typeof t,lt=Array.isArray,ht="[ \t\n\f\r]",ct=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,dt=/-->/g,pt=/>/g,ut=RegExp(`>|${ht}(?:([^\\s"'>=/]+)(${ht}*=${ht}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),vt=/'/g,ft=/"/g,mt=/^(?:script|style|textarea|title)$/i,gt=t=>(e,...o)=>({_$litType$:t,strings:e,values:o}),yt=gt(1),$t=gt(2),bt=Symbol.for("lit-noChange"),_t=Symbol.for("lit-nothing"),wt=new WeakMap,kt=st.createTreeWalker(st,129);function xt(t,e){if(!lt(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==tt?tt.createHTML(e):e}let Ct=class N{constructor({strings:t,_$litType$:e},o){let s;this.parts=[];let a=0,l=0;const h=t.length-1,c=this.parts,[d,p]=((t,e)=>{const o=t.length-1,s=[];let a,l=2===e?"<svg>":3===e?"<math>":"",h=ct;for(let e=0;e<o;e++){const o=t[e];let c,d,p=-1,u=0;for(;u<o.length&&(h.lastIndex=u,d=h.exec(o),null!==d);)u=h.lastIndex,h===ct?"!--"===d[1]?h=dt:void 0!==d[1]?h=pt:void 0!==d[2]?(mt.test(d[2])&&(a=RegExp("</"+d[2],"g")),h=ut):void 0!==d[3]&&(h=ut):h===ut?">"===d[0]?(h=a??ct,p=-1):void 0===d[1]?p=-2:(p=h.lastIndex-d[2].length,c=d[1],h=void 0===d[3]?ut:'"'===d[3]?ft:vt):h===ft||h===vt?h=ut:h===dt||h===pt?h=ct:(h=ut,a=void 0);const v=h===ut&&t[e+1].startsWith("/>")?" ":"";l+=h===ct?o+rt:p>=0?(s.push(c),o.slice(0,p)+et+o.slice(p)+it+v):o+it+(-2===p?e:v)}return[xt(t,l+(t[o]||"<?>")+(2===e?"</svg>":3===e?"</math>":"")),s]})(t,e);if(this.el=N.createElement(d,o),kt.currentNode=this.el.content,2===e||3===e){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(s=kt.nextNode())&&c.length<h;){if(1===s.nodeType){if(s.hasAttributes())for(const t of s.getAttributeNames())if(t.endsWith(et)){const e=p[l++],o=s.getAttribute(t).split(it),h=/([.?@])?(.*)/.exec(e);c.push({type:1,index:a,name:h[2],strings:o,ctor:"."===h[1]?H:"?"===h[1]?I:"@"===h[1]?L:k}),s.removeAttribute(t)}else t.startsWith(it)&&(c.push({type:6,index:a}),s.removeAttribute(t));if(mt.test(s.tagName)){const t=s.textContent.split(it),e=t.length-1;if(e>0){s.textContent=J?J.emptyScript:"";for(let o=0;o<e;o++)s.append(t[o],nt()),kt.nextNode(),c.push({type:2,index:++a});s.append(t[e],nt())}}}else if(8===s.nodeType)if(s.data===ot)c.push({type:2,index:a});else{let t=-1;for(;-1!==(t=s.data.indexOf(it,t+1));)c.push({type:7,index:a}),t+=it.length-1}a++}}static createElement(t,e){const o=st.createElement("template");return o.innerHTML=t,o}};function St(t,e,o=t,s){if(e===bt)return e;let a=void 0!==s?o._$Co?.[s]:o._$Cl;const l=at(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,o,s)),void 0!==s?(o._$Co??=[])[s]=a:o._$Cl=a),void 0!==a&&(e=St(t,a._$AS(t,e.values),a,s)),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:o}=this._$AD,s=(t?.creationScope??st).importNode(e,!0);kt.currentNode=s;let a=kt.nextNode(),l=0,h=0,c=o[0];for(;void 0!==c;){if(l===c.index){let e;2===c.type?e=new R(a,a.nextSibling,this,t):1===c.type?e=new c.ctor(a,c.name,c.strings,this,t):6===c.type&&(e=new z(a,this,t)),this._$AV.push(e),c=o[++h]}l!==c?.index&&(a=kt.nextNode(),l++)}return kt.currentNode=st,s}p(t){let e=0;for(const o of this._$AV)void 0!==o&&(void 0!==o.strings?(o._$AI(t,o,e),e+=o.strings.length-2):o._$AI(t[e])),e++}}class R{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,o,s){this.type=2,this._$AH=_t,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=o,this.options=s,this._$Cv=s?.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=St(this,t,e),at(t)?t===_t||null==t||""===t?(this._$AH!==_t&&this._$AR(),this._$AH=_t):t!==this._$AH&&t!==bt&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):(t=>lt(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!==_t&&at(this._$AH)?this._$AA.nextSibling.data=t:this.T(st.createTextNode(t)),this._$AH=t}$(t){const{values:e,_$litType$:o}=t,s="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=Ct.createElement(xt(o.h,o.h[0]),this.options)),o);if(this._$AH?._$AD===s)this._$AH.p(e);else{const t=new M(s,this),o=t.u(this.options);t.p(e),this.T(o),this._$AH=t}}_$AC(t){let e=wt.get(t.strings);return void 0===e&&wt.set(t.strings,e=new Ct(t)),e}k(t){lt(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let o,s=0;for(const a of t)s===e.length?e.push(o=new R(this.O(nt()),this.O(nt()),this,this.options)):o=e[s],o._$AI(a),s++;s<e.length&&(this._$AR(o&&o._$AB.nextSibling,s),e.length=s)}_$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))}}class k{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,o,s,a){this.type=1,this._$AH=_t,this._$AN=void 0,this.element=t,this.name=e,this._$AM=s,this.options=a,o.length>2||""!==o[0]||""!==o[1]?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=_t}_$AI(t,e=this,o,s){const a=this.strings;let l=!1;if(void 0===a)t=St(this,t,e,0),l=!at(t)||t!==this._$AH&&t!==bt,l&&(this._$AH=t);else{const s=t;let h,c;for(t=a[0],h=0;h<a.length-1;h++)c=St(this,s[o+h],e,h),c===bt&&(c=this._$AH[h]),l||=!at(c)||c!==this._$AH[h],c===_t?t=_t:t!==_t&&(t+=(c??"")+a[h+1]),this._$AH[h]=c}l&&!s&&this.j(t)}j(t){t===_t?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class H extends k{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===_t?void 0:t}}class I extends k{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==_t)}}class L extends k{constructor(t,e,o,s,a){super(t,e,o,s,a),this.type=5}_$AI(t,e=this){if((t=St(this,t,e,0)??_t)===bt)return;const o=this._$AH,s=t===_t&&o!==_t||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,a=t!==_t&&(o===_t||s);s&&this.element.removeEventListener(this.name,this,o),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,o){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(t){St(this,t)}}const At=Q.litHtmlPolyfillSupport;At?.(Ct,R),(Q.litHtmlVersions??=[]).push("3.2.1");
46
+ */,Q=globalThis,J=Q.trustedTypes,tt=J?J.createPolicy("lit-html",{createHTML:t=>t}):void 0,et="$lit$",it=`lit$${Math.random().toFixed(9).slice(2)}$`,ot="?"+it,rt=`<${ot}>`,st=document,nt=()=>st.createComment(""),at=t=>null===t||"object"!=typeof t&&"function"!=typeof t,lt=Array.isArray,ht="[ \t\n\f\r]",ct=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,dt=/-->/g,pt=/>/g,ut=RegExp(`>|${ht}(?:([^\\s"'>=/]+)(${ht}*=${ht}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),vt=/'/g,mt=/"/g,ft=/^(?:script|style|textarea|title)$/i,gt=t=>(e,...o)=>({_$litType$:t,strings:e,values:o}),yt=gt(1),$t=gt(2),bt=Symbol.for("lit-noChange"),_t=Symbol.for("lit-nothing"),wt=new WeakMap,kt=st.createTreeWalker(st,129);function xt(t,e){if(!lt(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==tt?tt.createHTML(e):e}let Ct=class N{constructor({strings:t,_$litType$:e},o){let s;this.parts=[];let a=0,l=0;const h=t.length-1,c=this.parts,[d,p]=((t,e)=>{const o=t.length-1,s=[];let a,l=2===e?"<svg>":3===e?"<math>":"",h=ct;for(let e=0;e<o;e++){const o=t[e];let c,d,p=-1,u=0;for(;u<o.length&&(h.lastIndex=u,d=h.exec(o),null!==d);)u=h.lastIndex,h===ct?"!--"===d[1]?h=dt:void 0!==d[1]?h=pt:void 0!==d[2]?(ft.test(d[2])&&(a=RegExp("</"+d[2],"g")),h=ut):void 0!==d[3]&&(h=ut):h===ut?">"===d[0]?(h=a??ct,p=-1):void 0===d[1]?p=-2:(p=h.lastIndex-d[2].length,c=d[1],h=void 0===d[3]?ut:'"'===d[3]?mt:vt):h===mt||h===vt?h=ut:h===dt||h===pt?h=ct:(h=ut,a=void 0);const v=h===ut&&t[e+1].startsWith("/>")?" ":"";l+=h===ct?o+rt:p>=0?(s.push(c),o.slice(0,p)+et+o.slice(p)+it+v):o+it+(-2===p?e:v)}return[xt(t,l+(t[o]||"<?>")+(2===e?"</svg>":3===e?"</math>":"")),s]})(t,e);if(this.el=N.createElement(d,o),kt.currentNode=this.el.content,2===e||3===e){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(s=kt.nextNode())&&c.length<h;){if(1===s.nodeType){if(s.hasAttributes())for(const t of s.getAttributeNames())if(t.endsWith(et)){const e=p[l++],o=s.getAttribute(t).split(it),h=/([.?@])?(.*)/.exec(e);c.push({type:1,index:a,name:h[2],strings:o,ctor:"."===h[1]?H:"?"===h[1]?I:"@"===h[1]?L:k}),s.removeAttribute(t)}else t.startsWith(it)&&(c.push({type:6,index:a}),s.removeAttribute(t));if(ft.test(s.tagName)){const t=s.textContent.split(it),e=t.length-1;if(e>0){s.textContent=J?J.emptyScript:"";for(let o=0;o<e;o++)s.append(t[o],nt()),kt.nextNode(),c.push({type:2,index:++a});s.append(t[e],nt())}}}else if(8===s.nodeType)if(s.data===ot)c.push({type:2,index:a});else{let t=-1;for(;-1!==(t=s.data.indexOf(it,t+1));)c.push({type:7,index:a}),t+=it.length-1}a++}}static createElement(t,e){const o=st.createElement("template");return o.innerHTML=t,o}};function St(t,e,o=t,s){if(e===bt)return e;let a=void 0!==s?o._$Co?.[s]:o._$Cl;const l=at(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,o,s)),void 0!==s?(o._$Co??=[])[s]=a:o._$Cl=a),void 0!==a&&(e=St(t,a._$AS(t,e.values),a,s)),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:o}=this._$AD,s=(t?.creationScope??st).importNode(e,!0);kt.currentNode=s;let a=kt.nextNode(),l=0,h=0,c=o[0];for(;void 0!==c;){if(l===c.index){let e;2===c.type?e=new R(a,a.nextSibling,this,t):1===c.type?e=new c.ctor(a,c.name,c.strings,this,t):6===c.type&&(e=new z(a,this,t)),this._$AV.push(e),c=o[++h]}l!==c?.index&&(a=kt.nextNode(),l++)}return kt.currentNode=st,s}p(t){let e=0;for(const o of this._$AV)void 0!==o&&(void 0!==o.strings?(o._$AI(t,o,e),e+=o.strings.length-2):o._$AI(t[e])),e++}}class R{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,o,s){this.type=2,this._$AH=_t,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=o,this.options=s,this._$Cv=s?.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=St(this,t,e),at(t)?t===_t||null==t||""===t?(this._$AH!==_t&&this._$AR(),this._$AH=_t):t!==this._$AH&&t!==bt&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):(t=>lt(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!==_t&&at(this._$AH)?this._$AA.nextSibling.data=t:this.T(st.createTextNode(t)),this._$AH=t}$(t){const{values:e,_$litType$:o}=t,s="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=Ct.createElement(xt(o.h,o.h[0]),this.options)),o);if(this._$AH?._$AD===s)this._$AH.p(e);else{const t=new M(s,this),o=t.u(this.options);t.p(e),this.T(o),this._$AH=t}}_$AC(t){let e=wt.get(t.strings);return void 0===e&&wt.set(t.strings,e=new Ct(t)),e}k(t){lt(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let o,s=0;for(const a of t)s===e.length?e.push(o=new R(this.O(nt()),this.O(nt()),this,this.options)):o=e[s],o._$AI(a),s++;s<e.length&&(this._$AR(o&&o._$AB.nextSibling,s),e.length=s)}_$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))}}class k{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,o,s,a){this.type=1,this._$AH=_t,this._$AN=void 0,this.element=t,this.name=e,this._$AM=s,this.options=a,o.length>2||""!==o[0]||""!==o[1]?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=_t}_$AI(t,e=this,o,s){const a=this.strings;let l=!1;if(void 0===a)t=St(this,t,e,0),l=!at(t)||t!==this._$AH&&t!==bt,l&&(this._$AH=t);else{const s=t;let h,c;for(t=a[0],h=0;h<a.length-1;h++)c=St(this,s[o+h],e,h),c===bt&&(c=this._$AH[h]),l||=!at(c)||c!==this._$AH[h],c===_t?t=_t:t!==_t&&(t+=(c??"")+a[h+1]),this._$AH[h]=c}l&&!s&&this.j(t)}j(t){t===_t?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class H extends k{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===_t?void 0:t}}class I extends k{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==_t)}}class L extends k{constructor(t,e,o,s,a){super(t,e,o,s,a),this.type=5}_$AI(t,e=this){if((t=St(this,t,e,0)??_t)===bt)return;const o=this._$AH,s=t===_t&&o!==_t||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,a=t!==_t&&(o===_t||s);s&&this.element.removeEventListener(this.name,this,o),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,o){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(t){St(this,t)}}const At=Q.litHtmlPolyfillSupport;At?.(Ct,R),(Q.litHtmlVersions??=[]).push("3.2.1");
47
47
  /**
48
48
  * @license
49
49
  * Copyright 2017 Google LLC
@@ -55,5 +55,5 @@ class r extends V{constructor(){super(...arguments),this.renderOptions={host:thi
55
55
  * Copyright 2017 Google LLC
56
56
  * SPDX-License-Identifier: BSD-3-Clause
57
57
  */
58
- const Rt=6;let Tt=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)}};const Mt=(t,o,s)=>{e(s)||!1===s?t.removeAttribute(o):(!0===s||"string"==typeof s||"number"==typeof s&&!isNaN(s))&&t.setAttribute(o,!0===s?"":String(s))};const Pt=(t=>(...e)=>({_$litDirective$:t,values:e}))(class AttrDirective extends Tt{render(t,e){}update(t,[e,o]){if(!e)return bt;if(t.type===Rt){for(const s in e)(o||Mt)(t.element,s,e[s]);return bt}}}),It=((t,e)=>o=>t({...e,...o}))(Pt,{width:"1em",height:"1em",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"}),Nt=(t,e)=>t?t+(e?" "+e:""):e,Ot=(...t)=>t.reduce(((t,e)=>{if(Array.isArray(e))return Nt(t,e.join(" "));if("object"==typeof e){const o=Object.entries(e).reduce(((t,[e,o])=>o?Nt(t,e):t),"");return Nt(t,o)}return Nt(t,e)}),""),zt=(t,e)=>yt`<slot name="${t||_t}" @slotchange=${null}></slot>`;function Dt(t,o,s,a){const l={};return Object.keys(o).forEach(((h,c)=>{const d=t.reduce(((t,s,l)=>{let c=o[h][l];return c=a?a(c,l):c,e(c)||t.push(`${s}:${c}`),t}),[]);l[h]=`${s?s(h,c):h}{${d.join(";")}}`})),l}function Ht(t){return Object.keys(t).reduce(((e,o)=>{const s=t[o];if(!s)return e;const a="string"==typeof s?s:Bt(s);return a?e+`${o}{${a}}`:e}),"")}function Bt(t){return Object.keys(t).reduce(((o,s)=>{const a=t[s];return e(a)?o:o+`${s}:${a};`}),"")}function jt(t,e){return t?`var(${t})`:""}const Ut=(t,e)=>{if(!t)return _t;const o="string"==typeof t?t:Ht(t);return o?yt`<style media="${_t}">${o}</style>`:_t},Lt=t=>(e,...o)=>{const s=$t(e,o),a=t,l=t=>yt`<svg viewBox="${a}" ${It(t)}>${s}</svg>`;return l.body=s,l.viewBox=a,l};function Vt(t,e=document.body){const o=[];if(!e||!t)return o;e.shadowRoot&&o.push(...Vt(t,e.shadowRoot));const s=e.querySelectorAll(t);o.push(...Array.from(s));for(const s of e.children)o.push(...Vt(t,s));return[...new Set(o)]}function Gt(t,e=document.body){if(!e||!t)return null;if(e.shadowRoot)return Gt(t,e.shadowRoot);const o=e.querySelector(t);if(o)return o;for(const o of e.children){const e=Gt(t,o);if(e)return e}return null}class Events{constructor(){this.m=new Map}add(t,e,o,s){const a=this.m.get(e)||new Map,l=a.get(t)||new Set;return l.add(o),a.set(t,l),this.m.set(e,a),t.addEventListener(e,o,s),o}remove(t,e,o,s){if(o){const a=this.m.get(e);if(a){const s=a.get(t);s&&(s.delete(o),s.size||(a.delete(t),a.size||this.m.delete(e)))}t.removeEventListener(e,o,s)}}removeAll(){this.m.forEach(((t,e)=>{t.forEach(((t,o)=>{t.forEach((t=>{o.removeEventListener(e,t)}))})),t.clear(),this.m.delete(e)}))}}class GodownElement extends r{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)}get observedRecord(){return Object.fromEntries(this.scopedObservedAttributes.map((t=>[t,this[t]])))}get scopedObservedAttributes(){return this.globalObservedAttributes.filter((t=>!GodownElement.observedAttributes.includes(t)))}get globalObservedAttributes(){return this.constructor.observedAttributes}get _slot(){return this.shadowRoot.querySelector("slot:not([name])")}get _slotAll(){return[...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(),/^[\s\S]*{[\s\S]*}$/.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.__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()}mount(t){this.firstUpdated(t)}unmount(){this.disconnectedCallback()}remount(t){this.unmount(),this.connectedCallback(),this.mount(t)}deepQuerySelector(t){return Gt(t,this)}deepQuerySelectorAll(t){return Vt(t,this)}adoptStyles(...t){const e=this.shadowRoot.adoptedStyleSheets;if(t.length){const o=new CSSStyleSheet;t.forEach((t=>o.insertRule(t.toString()))),e.push(o)}return 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 a(o(this.prefix,h)+h+t+h+s(this.suffix,h),h)}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([W({type:Boolean,reflect:!0})],GodownElement.prototype,"contents",void 0),t([W({reflect:!0})],GodownElement.prototype,"stylex",null);class RouteTree{constructor(){this.matchType=RouteTree.matchType.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("string"==typeof t&&(t=RouteTree.split(t)),this.sorted||this.sort(),t.length===e||RouteTree.dynamic(this.part).matchType===RouteTree.matchType.multi)return this.pattern?this:null;const o=t[e],s=this.filterWide(o);for(const o of s){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))}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,carry:h,matchType:c}=RouteTree.dynamic(e);if(c===RouteTree.matchType.single)a[l.slice(h)]=o[t];else if(c===RouteTree.matchType.multi){a[l.slice(h)]=o.slice(t).join("/");break}}return a}static dynamic(t){if(t){if(t.startsWith("{")&&t.endsWith("}")||t.startsWith("[")&&t.endsWith("]")){t=t.slice(1,-1);const e=RouteTree.dynamic(t);return e.matchType||=RouteTree.matchType.single,e}if(t.length>1){const e=t[0];if(":"===e)return{key:t,carry:1,matchType:RouteTree.matchType.single};if("*"===e)return{key:t,carry:1,matchType:RouteTree.matchType.multi};if(t.startsWith("..."))return{key:t,carry:3,matchType:RouteTree.matchType.multi}}}return{key:t,carry:0,matchType:RouteTree.matchType.strict}}static join(...t){return t.map((t=>a(t,"/"))).join("/")}static split(t){return t.split("/").filter((t=>t))}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}}RouteTree.matchType={strict:0,single:1,multi:2};var Ft=Lt("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"/>`,Wt=Lt("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"/>`,qt=Lt("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"/>`,Yt=Lt("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"/>`,Xt=Lt("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"/>`,Zt=Lt("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"/>`,Kt=Lt("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"/>`,Qt=Lt("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 Jt=(t,e,o)=>({r:t,g:e,b:o,toString(){return`${this.r} ${this.g} ${this.b}`}}),te={darkgray:[Jt(121,121,121),Jt(109,109,109),Jt(97,97,97),Jt(85,85,85),Jt(73,73,73),Jt(61,61,61),Jt(48,48,48),Jt(36,36,36),Jt(24,24,24),Jt(12,12,12)],lightgray:[Jt(243,243,243),Jt(231,231,231),Jt(219,219,219),Jt(206,206,206),Jt(194,194,194),Jt(182,182,182),Jt(170,170,170),Jt(158,158,158),Jt(146,146,146),Jt(133,133,133)],teal:[Jt(213,249,248),Jt(170,243,241),Jt(128,237,234),Jt(85,231,226),Jt(43,225,219),Jt(0,219,212),Jt(0,175,170),Jt(0,131,127),Jt(0,88,85),Jt(0,44,42)],blue:[Jt(213,240,255),Jt(170,224,255),Jt(128,209,255),Jt(85,193,255),Jt(43,178,255),Jt(0,162,255),Jt(0,130,204),Jt(0,97,153),Jt(0,65,102),Jt(0,32,51)],green:[Jt(221,243,221),Jt(186,231,186),Jt(152,219,152),Jt(117,206,117),Jt(82,194,82),Jt(48,182,48),Jt(38,146,38),Jt(29,109,29),Jt(19,73,19),Jt(10,36,10)],red:[Jt(251,221,221),Jt(247,186,187),Jt(243,152,154),Jt(239,118,120),Jt(235,83,86),Jt(231,49,52),Jt(185,39,42),Jt(139,29,31),Jt(92,20,21),Jt(46,10,10)],purple:[Jt(242,228,253),Jt(229,201,250),Jt(217,174,248),Jt(204,146,245),Jt(191,119,243),Jt(178,92,240),Jt(142,74,192),Jt(107,55,144),Jt(71,37,96),Jt(36,18,48)],orange:[Jt(255,235,213),Jt(255,216,170),Jt(255,196,128),Jt(255,176,85),Jt(255,157,43),Jt(255,137,0),Jt(204,110,0),Jt(153,82,0),Jt(102,55,0),Jt(51,27,0)],yellow:[Jt(251,252,216),Jt(247,248,177),Jt(243,245,138),Jt(239,242,98),Jt(235,238,59),Jt(231,235,20),Jt(185,188,16),Jt(139,141,12),Jt(92,94,8),Jt(46,47,4)],pink:[Jt(254,222,233),Jt(253,189,211),Jt(252,156,190),Jt(251,123,168),Jt(250,90,146),Jt(249,57,124),Jt(199,46,99),Jt(149,34,74),Jt(100,23,50),Jt(50,11,25)]};class GlobalStyle extends GodownElement{}const ee=a(GlobalStyle.godownConfig.prefix,"-");function ie(t,e=1){return function(t){return g(`--${t}`)}(ee+"-".repeat(e)+t)}const oe={foreground:ie("foreground",2),background:ie("background",2),clipBackground:ie("clip-background",2),active:ie("active",2),passive:ie("passive",2),_colors:{},input:ie("input",2),white:ie("color-white",2),black:ie("color-black",2)};var re,se;GlobalStyle.styles=[g(`:host{${oe.black}:rgb(0 0 0);${oe.white}:rgb(255 255 255);`+(re=(t,e,o)=>{oe._colors[t]||=[],oe._colors[t].push(g(ie("color",2)+"-"+t+"-"+e));const s=`-${t}-${e}`;return`${ie("color",2)+s}:rgb(${o});`},se=te,Object.entries(se).flatMap((([t,e])=>e.map(((e,o)=>re(t,o,e)))))).join("")+Bt({[oe.background+""]:`var(${oe._colors.darkgray[9]})`,[oe.foreground+""]:`var(${oe._colors.lightgray[0]})`,[oe.active+""]:`var(${oe._colors.blue[6]})`,[oe.passive+""]:`var(${oe._colors.darkgray[6]})`,[oe.clipBackground+""]:`linear-gradient(to bottom, var(${oe.foreground}), var(${oe.passive}))`})+"}"),y`*{border:0;box-sizing:border-box;font-size:100%;font-style:normal;margin:0;outline:0;padding:0}:host{box-sizing:border-box}a{text-decoration:none}span{white-space:nowrap}svg{-webkit-user-select:none;user-select:none}:host([contents]){display:contents}:where(:host([contents]) [part=root]){all:inherit;display:revert}`];const ne="alert",ae=ie(ne),le=["color","background"].map((t=>`${ae}--${t}`)),he=t=>[oe._colors[t][5],oe._colors[t][9]],ce=Dt(le,{green:he("green"),blue:he("blue"),orange:he("orange"),red:he("red"),yellow:he("yellow"),purple:he("purple"),teal:he("teal"),pink:he("pink"),gray:[oe._colors.lightgray[5],oe._colors.darkgray[5]],white:[oe._colors.lightgray[2],oe._colors.darkgray[7]],black:[oe._colors.darkgray[8],oe._colors.lightgray[5]]},(()=>":host"),(t=>jt(t))),de=t=>[oe._colors[t][6],oe._colors[t][0]],pe=Dt(le,{green:de("green"),blue:de("blue"),orange:de("orange"),red:de("red"),yellow:de("yellow"),purple:de("purple"),teal:de("teal"),pink:de("pink"),gray:[oe._colors.darkgray[5],oe._colors.lightgray[7]],white:[oe._colors.lightgray[0],oe._colors.darkgray[0]],black:[oe._colors.darkgray[7],oe._colors.lightgray[3]]},(()=>":host"),(t=>jt(t))),ue={tip:{color:"teal",icon:Yt},success:{color:"green",icon:Ft},info:{color:"blue",icon:qt},warning:{color:"orange",icon:Wt},danger:{color:"red",icon:Kt},error:{color:"red",icon:Kt},help:{color:"purple",icon:Xt},deprecated:{color:"gray",icon:Zt}};let ve=class Alert extends GlobalStyle{constructor(){super(...arguments),this.color="blue",this.autoclose=0,this.hideClose=!1,this.variant="dark"}render(){const t=ue[this.call]?.color||this.color,e=this.call?ue[this.call].icon():zt("icon");return yt`<div part="root" ${Pt(this.observedRecord)}><div part="icon">${e}</div><div part="content"><strong part="title">${this.title||zt("title")}</strong> ${this.content||zt()}</div>${this.hideClose||"blockquote"===this.variant?"":yt`<div part="close" tabindex="0" @click="${this.close}">${Qt()}</div>`} ${Ut("dark"===this.variant?ce[t]:pe[t])}</div>`}close(){this.remove(),this.dispatchEvent(new CustomEvent("close",{bubbles:!0,composed:!0}))}firstUpdated(){this.autoclose&&setTimeout((()=>this.close()),this.autoclose)}static alert(t,e){const o=new this;return Object.assign(o,e),t.appendChild(o),o}};t([W()],ve.prototype,"call",void 0),t([W()],ve.prototype,"color",void 0),t([W({type:Number})],ve.prototype,"autoclose",void 0),t([W()],ve.prototype,"title",void 0),t([W()],ve.prototype,"content",void 0),t([W({type:Boolean})],ve.prototype,"hideClose",void 0),t([W()],ve.prototype,"variant",void 0),ve=t([d(ne),c(y`:host,:where(:host([contents]) [part=root]){border-radius:var(${ae}--border-radius);${ae}--border-radius:.25em;${ae}--border-width:.075em;${ae}--blockquote-width:.2em;${ae}--padding:.5em;display:block;width:100%}[part=root]{--color:var(${ae}--color);background:var(${ae}--background);border:var(${ae}--border-width) solid var(--color);border-radius:inherit;color:var(--color);display:flex;justify-content:space-between;padding:var(${ae}--padding);transition:.25s;width:100%}[variant=blockquote]{background:transparent;border:none;border-left:var(${ae}--blockquote-width) solid var(--color);border-radius:0}[part=content]{color:var(--color)}[part=root]{align-items:center;display:grid;grid-template-columns:auto 1fr auto;grid-template-rows:auto 1fr}[part=title]{line-height:2em}[part=icon]{align-items:center;display:inline-grid;height:2em}[part=icon] svg{height:1.25em;margin-right:.5em;width:1.25em}[part=content]{grid-row:span 2/span 2;line-height:1.5em}`)],ve);var fe=ve;fe.define();const me="avatar",ge=ie(me);let ye=class Avatar extends GlobalStyle{constructor(){super(...arguments),this.name="",this.round=!1}render(){return yt`<div part="root" ${Pt(l(this.observedRecord,"src"))}>${this._renderAvatar()}</div>`}_renderAvatar(){return this.src?yt`<img part="image" src="${this.src}" alt="${this.name}" @error="${this._handleError}">`:this.name?yt`<span part="name">${this.format()}</span>`:zt()}format(){return this.name}_handleError(){this.src=void 0}};t([W()],ye.prototype,"src",void 0),t([W()],ye.prototype,"name",void 0),t([W({type:Boolean})],ye.prototype,"round",void 0),ye=t([d(me),c(y`:host{${ge}--size:2em;height:var(${ge}--size);vertical-align:bottom;width:var(${ge}--size)}: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;height:100%;justify-content:center;overflow:hidden;position:relative;width:100%}`)],ye);var $e=ye;$e.define();const be="badge",_e=ie(be);let we=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 yt`<div part="root" ${Pt(this.observedRecord)}>${zt()} ${this.value||this.dot?yt`<div part="badge">${this.dot?"":this.formatValue(this.value)}</div>`:""}</div>`}};t([W()],we.prototype,"position",void 0),t([W({type:Number})],we.prototype,"value",void 0),t([W({type:Boolean})],we.prototype,"dot",void 0),t([W({type:Number})],we.prototype,"max",void 0),we=t([d(be),c(y`:host{${_e}--background:var(${oe.active});${_e}--offset:0%;${_e}--offset-x:var(${_e}--offset);${_e}--offset-y:var(${_e}--offset)}:host,:host([contents]) [part=root]{display:inline-block}[part=root]{position:relative}[part=badge]{background:var(${_e}--background);border-radius:calc(infinity * 1px);font-size:75%;left:var(--left);padding:0 .5em;position:absolute;top:var(--top);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]{--top:calc(var(${_e}--offset-y))}[position$=right]{--left:calc(100% - var(${_e}--offset-x))}[position^=bottom]{--top:calc(100% - var(${_e}--offset-y))}[position$=left]{--left:calc(var(${_e}--offset-x))}`)],we);var ke=we;ke.define();const xe="breath",Ce=ie(xe);let Se=class Breath extends GlobalStyle{render(){const t=this.getTexts();return yt`<div part="root" ${Pt(this.observedRecord)}>${[t.map(this._renderText),Ut(this._computeStyle(t.length))]}</div>`}_renderText(t){return yt`<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(/\s+/).filter((t=>t))}_computeStyle(t){const e=50/t,o=this.parseDuration()||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)}s;background:var(${Ce}--${e},var(${Ce}--${(e-1)%3+1}));}`;return`.colorful{animation-duration:${o}s;}@keyframes colorfulN{0%,${3*e}%{opacity:0;}${e}%,${2*e}%{opacity:1;}}${s}`}parseDuration(){const{duration:t}=this;if(t){if(t.endsWith("s"))return Number.parseFloat(t.slice(0,-1));if(t.endsWith("ms"))return Number.parseFloat(t.slice(0,-2))/1e3}}};t([W()],Se.prototype,"content",void 0),t([W()],Se.prototype,"duration",void 0),Se=t([d(xe),c(y`:host{${Ce}--deg:60deg;${Ce}--1-1:var(${oe._colors.red[5]});${Ce}--1-2:var(${oe._colors.yellow[5]});${Ce}--2-1:var(${oe._colors.green[5]});${Ce}--2-2:var(${oe._colors.purple[5]});${Ce}--3-1:var(${oe._colors.blue[5]});${Ce}--3-2:var(${oe._colors.pink[5]});${Ce}--1:linear-gradient(var(${Ce}--deg),var(${Ce}--1-1),var(${Ce}--1-2));${Ce}--2:linear-gradient(var(${Ce}--deg),var(${Ce}--2-1),var(${Ce}--2-2));${Ce}--3:linear-gradient(var(${Ce}--deg),var(${Ce}--3-1),var(${Ce}--3-2))}`,y`: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}`,y`.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(${oe.clipBackground});position:absolute;top:0}`)],Se);var Ae=Se;Ae.define();const Ee="button",Re=ie(Ee),Te=oe.white,Me=oe.black,Pe=Dt(["color","background","gradients"].map((t=>`${Re}--${t}`)),{black:[Te,oe._colors.darkgray[7],oe._colors.darkgray[5]],gray:[Te,oe._colors.darkgray[1],oe._colors.lightgray[8]],white:[Me,oe._colors.lightgray[3],oe._colors.lightgray[0]],blue:[Te,oe._colors.blue[6],oe._colors.blue[4]],green:[Te,oe._colors.green[6],oe._colors.green[4]],red:[Te,oe._colors.red[6],oe._colors.red[4]],orange:[Te,oe._colors.orange[6],oe._colors.orange[4]],pink:[Te,oe._colors.pink[6],oe._colors.pink[4]],purple:[Te,oe._colors.purple[6],oe._colors.purple[4]],yellow:[Me,oe._colors.yellow[6],oe._colors.yellow[4]],teal:[Te,oe._colors.teal[6],oe._colors.teal[4]]},(()=>":host"),(t=>jt(t)));let Ie=class Button extends GlobalStyle{constructor(){super(...arguments),this.disabled=!1,this.ghost=!1,this.active=!1,this.round=!1,this.color="black"}render(){const t=this.nextColor();return yt`<div part="root" ${Pt(this.observedRecord)}><span part="modal-root"></span><div part="content">${[this.content||zt(),Ut(Pe[t])]}</div></div>`}focus(){this.disabled||(this.active=!0,super.focus())}blur(){this.active=!1,super.blur()}firstUpdated(){this.events.add(this,"click",this._handelClick,!0)}_handelClick(t){if(this.disabled)return t.stopPropagation(),void t.preventDefault();this._handleModal(t)}_handleModal(t){const e=document.createElement("i"),o=this._root.getBoundingClientRect(),{height:s,width:a}=o,l=2*Math.sqrt(s*s+a*a)+"px";e.style.height=l,e.style.width=l,e.style.left=t.clientX-o.left+"px",e.style.top=t.clientY-o.y+"px",e.style.animationName="kf",this._modalRoot.appendChild(e),e.addEventListener("animationend",(()=>e.remove()),{once:!0})}nextColor(){return this.color}};t([W({type:Boolean,reflect:!0})],Ie.prototype,"disabled",void 0),t([W({type:Boolean,reflect:!0})],Ie.prototype,"ghost",void 0),t([W({type:Boolean,reflect:!0})],Ie.prototype,"active",void 0),t([W({type:Boolean,reflect:!0})],Ie.prototype,"round",void 0),t([W({reflect:!0})],Ie.prototype,"color",void 0),t([W()],Ie.prototype,"content",void 0),t([K("modal-root")],Ie.prototype,"_modalRoot",void 0),t([K("root")],Ie.prototype,"_root",void 0),Ie=t([d(Ee),c(y`:host(:not([disabled]):active){transform:scale(var(${Re}--focus-scale))}:host([round]){${Re}--padding-x:.75em;border-radius:calc(infinity * 1px)}:host([disabled]){cursor:not-allowed;filter:brightness(.85)}:host([ghost]){${Re}--modal-background:var(${Re}--ghost-color);background:transparent;box-shadow:inset 0 0 0 var(${Re}--ghost-width) var(${Re}--ghost-color);color:var(${Re}--ghost-color)}`,y`:host{${Re}--padding-x:.5em;${Re}--padding-y:min(calc(var(${Re}--padding-x)/2),.125em);${Re}--padding:var(${Re}--padding-y) var(${Re}--padding-x);${Re}--modal-animation-duration:1s;${Re}--ghost-width:.08em;${Re}--focus-scale:.97;${Re}--deg:45deg;${Re}--ghost-color:var(${Re}--background);background:linear-gradient(var(${Re}--deg),var(${Re}--background),var(${Re}--gradients,var(${Re}--background)));border-radius:.3em;color:var(${Re}--color,inherit);cursor:pointer;display:block;overflow:hidden;padding:0!important;text-align:center;transition:.1s;width:-moz-fit-content;width:fit-content}:host([contents]) [part=root]{width:-moz-fit-content;width:fit-content}[part=root]{border-radius:inherit;overflow:hidden;padding:var(${Re}--padding);position:relative;transition:none;transition-duration:inherit;-webkit-user-select:none;user-select:none}[part=root],i{height:100%;width:100%}i{animation-duration:var(${Re}--modal-animation-duration);background:var(${Re}--modal-background,currentColor);border-radius:50%;inset:0;opacity:0;pointer-events:none;position:absolute;transform-origin:0 0;visibility:visible}@keyframes kf{0%{opacity:var(${Re}--modal-opacity,.1);transform:scale(0) translate(-50%,-50%)}80%{transform:scale(1) translate(-50%,-50%)}to{opacity:0}}`)],Ie);var Ne=Ie;Ne.define();const Oe="card",ze=ie(Oe);let De=class Card extends GlobalStyle{constructor(){super(...arguments),this.footer=!1,this.header=!1}render(){return yt`<div part="root" ${Pt(this.observedRecord)}>${[this.header?zt("header"):"",zt(),this.footer?zt("footer"):""]}</div>`}};t([W({type:Boolean})],De.prototype,"footer",void 0),t([W({type:Boolean})],De.prototype,"header",void 0),De=t([d(Oe),c(y`:host{${ze}--background:var(${oe.background});${ze}--border-width:.0375em;${ze}--border-color:transparent;${ze}--border-background:var(${oe.passive});${ze}--padding:.75em;background:var(${ze}--background);border-width:var(${ze}--border-width);box-sizing:border-box;color:var(${oe.foreground});display:block;flex-shrink:0;overflow:hidden;position:relative}slot{display:block;padding:var(${ze}--padding)}:host,slot{border-color:var(${ze}--border-background);border-style:solid}[name=footer]{border-top-width:var(${ze}--border-width)}[name=header]{border-bottom-width:var(${ze}--border-width)}`)],De);var He=De;He.define();var Be=Lt("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"/>`,je=Lt("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"/>`;let Ue=class Carousel extends GlobalStyle{constructor(){super(...arguments),this.index=0,this.autoChange=0}render(){return yt`<div part="root" ${Pt(this.observedRecord)}><i part="prev" @click="${this.prev}">${Be()}</i><div part="move-root" style="transform:${`translateX(-${this.index+1}00%)`}">${zt()}</div><i part="next" @click="${this.next}">${je()} </i>${Ut(`:host,:host([contents]) [part=root]{width:${this.width};}`)}</div>`}async firstUpdated(){await this.updateComplete,this.children.length&&(this.width||=`${this.firstElementChild.offsetWidth}px`,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.show(this.index)),this.checkInterval()}disconnectedCallback(){clearInterval(this.intervalID)}show(t){this.index=t,this.dispatchEvent(new CustomEvent("change",{detail:t,composed:!0}))}next(){this.index===this.childElementCount-3?(this._doTranslateX("0",!0),this.show(0)):this.show(this.index+1),this.checkInterval()}prev(){0===this.index?(this._doTranslateX(`-${this.childElementCount-1}00%`,!0),this.show(this.children.length-3)):this.show(this.index-1),this.checkInterval()}_doTranslateX(t,e){this._moveRoot.style.transform=`translateX(${t})`,e&&(this._moveRoot.style.transition="none"),this._moveRoot.getBoundingClientRect()}checkInterval(){this.autoChange&&(this.intervalID&&clearInterval(this.intervalID),this.intervalID=setInterval((()=>{this.next()}),this.autoChange))}};t([W({type:Number})],Ue.prototype,"index",void 0),t([W({type:Number})],Ue.prototype,"autoChange",void 0),t([W()],Ue.prototype,"width",void 0),t([K("move-root")],Ue.prototype,"_moveRoot",void 0),Ue=t([d("carousel"),c(y`: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}`)],Ue);var Le=Ue;Le.define();var Ve=Lt("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.dispatchEvent(new CustomEvent("change",{detail:this.open,composed:!0}))}_handelClick(t){this.toggle()}}t([W({type:Boolean,reflect:!0})],SuperOpenable.prototype,"open",void 0);const Ge="details",Fe=ie(Ge);let We=class Details extends SuperOpenable{constructor(){super(...arguments),this.fill=!1,this.summary=""}render(){return yt`<dl part="root" ${Pt(this.observedRecord)}><dt part="title" @click="${this._handelClick}"><span part="summary">${this.summary||zt("summary")}</span> <span><i part="icon">${Ve()}</i></span></dt><dd part="details" @click="${this.fill?()=>this.toggle():null}"><div style="min-height: 0;">${zt()}</div></dd></dl>`}};t([W({type:Boolean})],We.prototype,"fill",void 0),t([W()],We.prototype,"summary",void 0),We=t([d(Ge),c(y`:host{${Fe}--icon-deg-open:0deg;${Fe}--icon-deg-close:90deg;${Fe}--icon-space:0.3em;${Fe}--summary-direction:row;${Fe}--transition:.3s;display:block;height:-moz-fit-content;height:fit-content;transition:var(${Fe}--transition)}[part=root]{height:100%;overflow:hidden;position:relative}[part=title]{align-items:center;background:inherit;direction:ltr;display:flex;flex-direction:var(${Fe}--summary-direction);flex-wrap:nowrap;height:100%;justify-content:space-between}[part=details]{display:grid;grid-template-rows:0fr;overflow:hidden;transition:var(${Fe}--transition);transition-property:grid-template-rows}:host([open]) [part=details]{grid-template-rows:1fr}:host([float]) [part=details]{position:absolute;top:100%}[part=icon]{-webkit-backface-visibility:hidden;backface-visibility:hidden;display:flex;padding:var(${Fe}--icon-space);transform:rotate(var(${Fe}--icon-deg-close));transition:var(${Fe}--transition)}:host([open]) [part=icon]{transform:rotate(var(${Fe}--icon-deg-open))}`)],We);var qe=We;qe.define();const Ye="dialog",Xe=ie(Ye);let Ze=class Dialog extends SuperOpenable{constructor(){super(...arguments),this.modal=!1,this.key="Escape",this.__modalInvoke=!1}render(){return yt`<div part="root" ${Pt(this.observedRecord)}><div part="modal"></div><div part="container">${zt()}</div></div>`}showModal(){this.modal||(this.modal=!0,this.__modalInvoke=!0),this.show()}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(/[\s,]/);(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([W({type:Boolean,reflect:!0})],Ze.prototype,"modal",void 0),t([W()],Ze.prototype,"key",void 0),Ze=t([d(Ye),c(y`:host{${Xe}--background:none;${Xe}--background-modal:var(${oe.background});${Xe}--opacity-modal:0.2;background:var(${Xe}--background);inset:0;pointer-events:none;position:fixed;visibility:hidden;z-index:1}:host([open]){visibility:visible}:host([open][modal]) [part=modal]{opacity:var(${Xe}--opacity-modal);pointer-events:all;visibility:visible}[part=modal]{background:var(${Xe}--background-modal);height:100%;opacity:0;position:absolute;visibility:hidden;width:100%}[part=root]{align-items:center;display:flex;height:100%;justify-content:center;position:relative;width:100%}[part=container]{pointer-events:all;position:absolute}[direction^=top] [part=container]{top:0}[direction^=bottom] [part=container]{bottom:0}[direction$=right] [part=container]{right:0}[direction$=left] [part=container]{left:0}`)],Ze);var Ke=Ze;Ke.define();let Qe=class Divider extends GlobalStyle{constructor(){super(...arguments),this.vertical=!1}render(){return yt`<div part="root" ${Pt(this.observedRecord)}></div>`}};t([W({type:Boolean,reflect:!0})],Qe.prototype,"vertical",void 0),Qe=t([d("divider"),c(y`:host{background:currentColor;display:block;height:.05em;margin:auto;width:100%}:host([vertical]){height:max(1em,100%);width:.05em}:host([contents]) [part=root]{background:currentColor;display:block;height:.05em;margin:auto;width:100%}[part=root]{display:contents}`)],Qe);var Je=Qe;Je.define();let ti=class Dragbox extends GlobalStyle{constructor(){super(...arguments),this.__drag=!1,this.x="auto",this.y="auto"}get offsetsWidth(){return this.offsetParent?.clientWidth??document.body.offsetWidth}get offsetsHeight(){return this.offsetParent?.clientHeight??document.body.offsetHeight}render(){return yt`<div part="root" ${Pt(this.observedRecord)} @mousedown="${this._handleDragStart}" @mouseup="${this._handleDragEnd}">${zt()}</div>`}firstUpdated(){this.reset()}_handleDragStart(t){this.__cx=t.clientX,this.__cy=t.clientY,this.__t=this.offsetTop,this.__l=this.offsetLeft,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))}_handleDragEnd(){this.__drag=!1,this.events.remove(document,"mousemove",this._handleMouseMove),this.events.remove(document,"mouseleave",this._handleMouseLeave)}_handleDrag(t){if(!this.__drag)return;const e=t.clientX-(this.__cx-this.__l),o=t.clientY-(this.__cy-this.__t),{style:s,offsetsWidth:a,offsetsHeight:l,offsetWidth:h,offsetHeight:c}=this;s.left=e<0?"0":e<a-h?`${e}px`:a-h+'"px"',s.top=o<0?"0":o<l-c?`${o}px`:l-c+"px"}reset(){const{x:t,y:e,style:o,offsetsWidth:s,offsetsHeight:a,offsetWidth:l,offsetHeight:h,offsetLeft:c,offsetTop:d}=this;o.left=t||"0",o.top=e||"0",c>s-l&&(o.left=s-l+"px"),d>a-h&&(o.top=a-h+"px")}};t([W()],ti.prototype,"x",void 0),t([W()],ti.prototype,"y",void 0),ti=t([d("dragbox"),c(y`:host{display:block;position:absolute}:host(:active){-webkit-user-select:none;user-select:none}`)],ti);var ei=ti;ei.define();let ii=class Flex extends GlobalStyle{constructor(){super(...arguments),this.vertical=!1}render(){return yt`<div part="root" ${Pt(this.observedRecord)}>${[zt(),Ut(Ht({":host":{gap:this.gap,"flex-flow":this.flexFlow,"flex-direction":this.vertical&&"column","align-items":this.items,"justify-content":this.content}}))]}</div>`}};t([W({attribute:"flex-flow"})],ii.prototype,"flexFlow",void 0),t([W()],ii.prototype,"gap",void 0),t([W()],ii.prototype,"content",void 0),t([W()],ii.prototype,"items",void 0),t([W({type:Boolean})],ii.prototype,"vertical",void 0),ii=t([d("flex"),c(y`:host,:host([contents]) [part=root]{display:flex}[part=root]{display:contents}`)],ii);var oi,ri=ii;ri.define();let si=oi=class Form extends GlobalStyle{constructor(){super(...arguments),this.name="",this.nameValue=this.namevalue}get value(){return oi.buildValue(this._slot.assignedElements())}render(){return zt()}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([W()],si.prototype,"name",void 0),si=oi=t([d("form"),c(y`:host{display:block}`)],si);var ni=si;ni.define();const ai=t=>isNaN(+t)?t:`repeat(${t},1fr)`;let li=class Grid extends GlobalStyle{render(){return yt`<div part="root" ${Pt(this.observedRecord)}>${[zt(),Ut(Ht({":host":{gap:this.gap,"grid-template-columns":ai(this.columns),"grid-template-rows":ai(this.rows),"place-content":this.content,"place-items":this.items}}))]}</div>`}};t([W()],li.prototype,"gap",void 0),t([W()],li.prototype,"columns",void 0),t([W()],li.prototype,"rows",void 0),t([W()],li.prototype,"content",void 0),t([W()],li.prototype,"items",void 0),li=t([d("grid"),c(y`:host,:host([contents]) [part=root]{display:grid}[part=root]{display:contents}`)],li);var hi=li;hi.define();let ci=class Heading extends GlobalStyle{constructor(){super(...arguments),this.as="h1",this.anchor="#",this.side="left"}render(){return yt`<a part="root" href="${this.id?"#"+this.id:_t}" ${Pt(this.observedRecord)}>${this.wrapHeading(zt(),this.id?yt`<i part="anchor">${this.anchor}</i>`:"")}</a>`}wrapHeading(...t){switch(this.as){case"h2":return yt`<h2>${t}</h2>`;case"h3":return yt`<h3>${t}</h3>`;case"h4":return yt`<h4>${t}</h4>`;case"h5":return yt`<h5>${t}</h5>`;case"h6":return yt`<h6>${t}</h6>`;default:return yt`<h1>${t}</h1>`}}};t([W()],ci.prototype,"as",void 0),t([W()],ci.prototype,"anchor",void 0),t([W()],ci.prototype,"side",void 0),ci=t([d("heading"),c(y`: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}`)],ci);var di=ci;di.define();var pi=Lt("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 ui=y`.input-field{align-items:center;border-radius:inherit;display:flex;height:inherit;position:relative}.input-field [part=input]{background:transparent;color:inherit;height:100%;padding:0 var(${oe.input}-space);width:100%}.input-field.outline,.input-field:focus-within{box-shadow:var(${oe.input}-box-shadow)}.input-field [part=icon]{align-items:center;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(${oe.input}-space)}.input-field [part=prefix] [part=icon]{padding-inline-start:var(${oe.input}-space)}`,vi=y`:host{${oe.input}-width:10em;${oe.input}-height:1.6em;${oe.input}-space:0.2em;${oe.input}-background:var(${oe.background});${oe.input}-control:var(${oe.foreground});${oe.input}-control-edge:var(${oe.active});${oe.input}-radius:0.2em;${oe.input}-box-shadow:0px 0px 0px .1em var(${oe.active});border-radius:var(${oe.input}-radius)}:host([disabled]){cursor:not-allowed;filter:brightness(.85)}input:disabled{cursor:inherit}input::-ms-clear,input::-ms-reveal{display:none}`;let fi=class SuperInput extends GlobalStyle{constructor(){super(...arguments),this.autofocus=!1,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.dispatchEvent(new CustomEvent("input",{detail:this.value,bubbles:!0,composed:!0})),this.dispatchEvent(new CustomEvent("input",{detail:this.value,composed:!0,bubbles:!0})),this.dispatchEvent(new CustomEvent("change",{detail:this.value,composed:!0})))}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 yt`<label for="${this.makeId}" part="prefix">${zt("prefix")}</label>`}_renderSuffix(){const t="password";return yt`<label for="${this.makeId}" part="suffix">${"password"===this.type?yt`<i part="icon" @mousedown="${()=>this._changeInputType("text")}" @mouseup="${()=>this._changeInputType(t)}" @mouseleave="${()=>this._changeInputType(t)}">${pi()}</i>`:zt("suffix")}</label>`}};t([W()],fi.prototype,"autocomplete",void 0),t([W({type:Boolean,reflect:!0})],fi.prototype,"disabled",void 0),t([W({reflect:!0})],fi.prototype,"type",void 0),t([W({reflect:!0})],fi.prototype,"placeholder",void 0),t([W({reflect:!0})],fi.prototype,"name",void 0),t([W()],fi.prototype,"value",void 0),t([W()],fi.prototype,"default",void 0),t([K("input")],fi.prototype,"_input",void 0),fi=t([c(ui,vi)],fi);var mi=fi;let gi=class Input extends mi{constructor(){super(...arguments),this.type="text",this.variant="default"}render(){return yt`<div part="root" ${Pt(this.observedRecord)} class="${Ot("input-field",this.variant)}">${[this._renderPrefix(),yt`<input part="input" type="${this.type}" .value="${this.value}" ?autofocus="${this.autofocus}" ?disabled="${this.disabled}" autocapitalize="${this.autocapitalize||_t}" autocomplete="${this.autocomplete||_t}" placeholder="${this.placeholder||_t}" id="${this.makeId}" @input="${this._handleInput}">`,this._renderSuffix()]}</div>`}reset(){this._input.value=this.default,this.value=this.default}};t([W()],gi.prototype,"variant",void 0),t([K("input")],gi.prototype,"_input",void 0),gi=t([d("input"),c(y`:host{background:var(${oe.input}-background);border-radius:var(${oe.input}-radius);color:var(${oe.foreground});display:block;height:var(${oe.input}-height);width:var(${oe.input}-width)}`)],gi);var yi=gi;yi.define();let $i=class Layout extends GlobalStyle{constructor(){super(...arguments),this.noHeader=!1,this.noFooter=!1,this.sticky=!1}render(){return yt`<div part="root" ${Pt(this.observedRecord)}>${this.noHeader?"":yt`<header part="header">${zt("header")}</header>`}<main part="main">${zt()}</main>${this.noFooter?"":yt`<footer part="footer">${zt("footer")}</footer>`}</div>`}};t([W({type:Boolean})],$i.prototype,"noHeader",void 0),t([W({type:Boolean})],$i.prototype,"noFooter",void 0),t([W({type:Boolean})],$i.prototype,"sticky",void 0),$i=t([d("layout"),c(y`:host,:host([contents]) [part=root]{display:flex;flex-direction:column;min-height:100%}[part=root]{display:contents}[sticky] header{position:sticky;top:0;z-index:1}[part=main]{flex:1;position:relative;width:100%}footer,header,main{width:100%}`)],$i);var bi=$i;bi.define();let _i=class SuperAnchor extends GlobalStyle{constructor(){super(...arguments),this.href=void 0,this.target="_self"}render(){return yt`<a part="root" ${Pt(this.observedRecord)} href="${this.href||_t}" target="${this.target}" @click="${this._handleClick}">${zt()}</a>`}_handleClick(t){}};t([W()],_i.prototype,"href",void 0),t([W()],_i.prototype,"target",void 0),_i=t([c(y`: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;width:100%}`)],_i);var wi,ki=_i;let xi=wi=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=zt(),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(){if(this.cache){const t=this.__cacheRecord.get(this.pathname);if(t)return Object.assign(this,t),this.component}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(),wi.routerInstances.add(this),"field"!==this.type&&(new MutationObserver(this.collectSlottedRoutes).observe(this,{attributeFilter:["slot"],attributes:!0,subtree:!0}),this.collectSlottedRoutes())}disconnectedCallback(){super.disconnectedCallback(),wi.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.__cacheRecord.set(this.pathname,t),this.dispatchEvent(new CustomEvent("change",{detail: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?zt(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()}))}};xi.routerInstances=new Set,t([q()],xi.prototype,"component",void 0),t([q()],xi.prototype,"path",void 0),t([W()],xi.prototype,"pathname",void 0),t([q()],xi.prototype,"default",void 0),t([W()],xi.prototype,"type",void 0),t([W({type:Boolean})],xi.prototype,"cache",void 0),t([q()],xi.prototype,"routes",null),xi=wi=t([d("router"),c(y`:host{display:contents}`)],xi);var Ci=xi;let Si=class Link extends ki{constructor(){super(...arguments),this.type="normal",this.suppress=!1}_handleClick(t){"push"!==this.type&&"replace"!==this.type||(t.preventDefault(),history[`${this.type}State`](null,"",this.href),this.suppress||Ci.updateAll())}};t([W()],Si.prototype,"type",void 0),t([W({type:Boolean})],Si.prototype,"suppress",void 0),Si=t([d("link")],Si);var Ai=Si;Ai.define();let Ei=class Progress extends GlobalStyle{constructor(){super(...arguments),this.max=1,this.min=0}render(){let t,o=20;return e(this.value)||(o=this.parsePercent(this.value),o>100?o=100:o<0&&(o=0),t="static"),yt`<div part="root" ${Pt(this.observedRecord)} class="${t}"><i part="value" style="width:${o}%;"></i></div>`}parsePercent(t="0"){if((t=String(t)).includes("%"))return parseFloat(t);const e=this.max-this.min;return 0===e?100:parseFloat(t)/e*100}};t([W({type:Number})],Ei.prototype,"max",void 0),t([W({type:Number})],Ei.prototype,"min",void 0),t([W({type:Number})],Ei.prototype,"value",void 0),Ei=t([d("progress"),c(y`:host{background:var(${oe.passive});border-radius:.25em;color:var(${oe.active});height:.5em;width:100%}:host,[part=root]{display:block}[part=root]{border-radius:inherit;height:inherit;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}`)],Ei);var Ri=Ei;Ri.define();const Ti="range",Mi=ie(Ti);let Pi=class Range extends mi{constructor(){super(...arguments),this.min=0,this.max=100,this.vertical=!1,this.__focusStack=[]}get reverse(){return!!this.range&&this.value[0]>this.value[1]}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}render(){const t=this.padValue(2),e=Math.min(...t),o=Math.max(...t),s=this.max-this.min;return yt`<div part="root" ${Pt(this.observedRecord)} @mousedown="${this.disabled?null:this._handleMousedownRoot}" style="${Bt({"--from":(e-this.min)/s*100+"%","--to":(o-this.min)/s*100+"%",...this.range?Object.fromEntries(t.map(((t,e)=>[`--handle-${e}`,(t-this.min)/s*100+"%"]))):{}})}"><div part="track"></div>${this.range?this.value.map(((t,e)=>this._renderHandle(e))):this._renderHandle(0)}</div>`}_renderHandle(t){const{range:e}=this,o=!e||t===this.value.length-1;return yt`<i tabindex="0" part="handle" class="${Ot({"last-focus":this.lastFocus===t})}" @mousedown="${this.disabled?null:this.createMouseDown(t)}" @focus="${this.disabled?null:()=>this.focusHandle(t)}" @blur="${this.disabled?null:this.blurHandle}" style="z-index:${this.__focusStack.indexOf(t)+1};--handle:var(--${!e&&o?"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))),this.dispatchEvent(new CustomEvent("focus",{detail:t}))}blurHandle(){this.lastFocus=void 0,this.__keydownEvent=this.events.remove(document,"keydown",this.__keydownEvent),this.dispatchEvent(new CustomEvent("blur"))}createKeydownEvent(t){return this.range||(t=0),e=>{"ArrowLeft"===e.key||"ArrowDown"===e.key?(e.preventDefault(),this.createSetValue(t)((t=>t-this.step))):"ArrowRight"!==e.key&&"ArrowUp"!==e.key||(e.preventDefault(),this.createSetValue(t)((t=>t+this.step)))}}createMouseDown(t){return e=>{this.focusHandle(t),this.createMousedownListener(this.createSetValue(t))(e)}}createSetValue(t){return e=>{const o="number"==typeof e?this.normalizeValue(e):e(this.rangeValue[t]);let s=o;this.range&&(s=[...this.rangeValue],s[t]=o),this.value=s,this.dispatchEvent(new CustomEvent("range",{detail:this.value}))}}_computeValue(t){const e=this._root.getBoundingClientRect(),o=this.vertical?(t.clientY-e.top)/e.height:(t.clientX-e.left)/e.width,s=Math.round(o*(this.max-this.min)/this.step)*this.step;return this.normalizeValue(s)}normalizeValue(t){return t>this.max?t-=this.step:t<this.min&&(t+=this.step),t}_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.max||o<this.min||t?.call(this,o)}}_connectedInit(){const t=this.max-this.min;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([W({type:Number})],Pi.prototype,"min",void 0),t([W({type:Number})],Pi.prototype,"max",void 0),t([W({type:Number})],Pi.prototype,"step",void 0),t([W({type:Boolean,reflect:!0})],Pi.prototype,"vertical",void 0),t([W({type:Array})],Pi.prototype,"value",void 0),t([W({type:Array})],Pi.prototype,"default",void 0),t([K("root")],Pi.prototype,"_root",void 0),t([function(t){return(e,o)=>Y(e,o,{get(){return(this.renderRoot??(Z??=document.createDocumentFragment())).querySelectorAll(t)}})}("[part=handle]")],Pi.prototype,"_handles",void 0),t([q()],Pi.prototype,"lastFocus",void 0),Pi=t([d(Ti),c(y`:host{${Mi}--handle-active:var(${oe.active});${Mi}--track-width:.5em;${Mi}--length:var(${oe.input}-width);background:var(${oe.input}-background);display:block;width:var(${Mi}--length)}:host([contents]) [part=root]{width:inherit}:host([vertical]){height:var(${Mi}--length);width:-moz-fit-content;width:fit-content}:host(:not([disabled])) .last-focus{${Mi}--handle-scale:1.05;background:var(${Mi}--handle-active)}[part=root]{position:relative;width:100%;--from:0%;--to:50%;height:var(${Mi}--track-width)}[part=root],[part=track]{border-radius:inherit;min-height:inherit}[part=track]{background:var(${oe.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(${oe.active});border:.1em solid;border-color:var(${oe.input}-control);border-radius:50%;height:1em;justify-content:center;transform:scale(var(${Mi}--handle-scale,1)) translate(-50%,-25%);transform-origin:0 25%;-webkit-user-select:none;user-select:none;width:1em}`,y`[vertical]{height:inherit;width:var(${Mi}--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%}`,y`[part=handle]{left:var(--handle);top:0}[vertical] [part=handle]{left:0;top:var(--handle)}`)],Pi);var Ii=Pi;Ii.define();const Ni="rotate",Oi=ie(Ni);let zi=class Rotate extends GlobalStyle{render(){return yt`<div part="root"><div part="slot" @mousemove="${this._handleRotate}">${zt()}</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([K("root")],zi.prototype,"_root",void 0),zi=t([d(Ni),c(y`:host{display:block;transition:all .5s ease-in-out;width:-moz-fit-content;width:fit-content;${Oi}--padding:.75em;${Oi}--offset:.5em}div{position:relative;transition:inherit;transition-property:transform}i{box-sizing:content-box;height:100%;margin:calc(var(${Oi}--offset)*-1);padding:var(${Oi}--offset);position:absolute;top:0;width:100%}[part=slot]{z-index:2}`)],zi);var Di=zi;function Hi(t,e){return t&&e&&t.toLowerCase().includes(e.toLowerCase())}function Bi(t,e){if(t){const o="checked";e?t.setAttribute(o,""):t.removeAttribute(o)}}Di.define(),Ci.define();let ji=class Select extends yi{constructor(){super(...arguments),this.multiple=!1,this.visible=!1,this.autoDirection="bottom",this.__store=[]}render(){return yt`<div part="root" ${Pt({...this.observedRecord,direction:this.direction||this.autoDirection})} class="input-field">${[this._renderPrefix(),yt`<input part="input" type="${this.type}" .value="${this.text}" ?autofocus="${this.autofocus}" ?disabled="${this.disabled}" autocapitalize="${this.autocapitalize||_t}" autocomplete="${this.autocomplete||_t}" placeholder="${this.placeholder||_t}" id="${this.makeId}" @focus="${this._handleFocus}" @input="${this._handleInput}">`,yt`<label for="${this.makeId}" part="suffix"><i part="icon">${Ve()}</i></label>`,yt`<label for="${this.makeId}" part="content">${zt()}</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||Bi(this.lastChecked,0),Bi(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=>{Bi(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=>Bi(t,0))),this.defaultChecked.forEach((t=>Bi(t,1)))}select(t,e){e||=t;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.dispatchEvent(new CustomEvent("select",{detail:this.value,composed:!0})),this.filter(),o}filter(t){t=t?.trim(),[...this.children].forEach((e=>{this.filterCallback(e,!t||Hi(this.optionValue(e),t)||Hi(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.dispatchEvent(new CustomEvent("input",{detail:this.value,composed:!0,bubbles:!0})),this.dispatchEvent(new CustomEvent("change",{detail:this.value,composed:!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([W()],ji.prototype,"text",void 0),t([K("content")],ji.prototype,"_content",void 0),t([W()],ji.prototype,"direction",void 0),t([W({type:Boolean})],ji.prototype,"multiple",void 0),t([W({type:Boolean})],ji.prototype,"visible",void 0),t([q()],ji.prototype,"autoDirection",void 0),ji=t([d("select"),c(y`[part=input]{text-overflow:ellipsis}[part=content]{position:absolute;visibility:hidden;width:100%}[direction=bottom] [part=content]{top:100%}[direction=top] [part=content]{bottom:100%}[visible] [part=content]{visibility:visible}`)],ji);var Ui=ji;Ui.define();var Li=Lt("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 Vi="skeleton",Gi=ie(Vi);let Fi=class Skeleton extends GlobalStyle{constructor(){super(...arguments),this.animation="position",this.loading=!0}render(){return this.loading?yt`<div part="root" ${Pt(this.observedRecord)}>${"image"===this.type?Li():""} ${zt("loading")}</div>`:zt()}};t([W()],Fi.prototype,"type",void 0),t([W()],Fi.prototype,"animation",void 0),t([q()],Fi.prototype,"loading",void 0),Fi=t([d(Vi),c(y`:host{${Gi}--from:var(${oe._colors.darkgray[9]});${Gi}--to:var(${oe._colors.darkgray[7]});${Gi}--deg:95deg;${Gi}--duration:1.5s;${Gi}--icon-size:5em;${Gi}--icon-margin:.25em;background:var(${Gi}--from);color:var(${oe._colors.darkgray[5]});display:block;flex-shrink:0;min-height:1.5em;overflow:hidden;width:100%}[part=root]{animation:var(${Gi}--duration) ease-in-out 0s infinite none running;height:100%;min-height:inherit;text-align:center}svg{--size:var(${Gi}--icon-size);font-size:var(--size);margin:calc(var(--size)*.05)}[animation=position]{animation-name:po;background-color:transparent;background-image:linear-gradient(var(${Gi}--deg),var(${Gi}--from) 36%,var(${Gi}--to) 50%,var(${Gi}--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}}`)],Fi);var Wi=Fi;Wi.define();const qi="split",Yi=ie(qi);let Xi=class Split extends mi{constructor(){super(...arguments),this.len=6,this.index=-1,this.current=-1,this.currentValue=[]}render(){return yt`<div part="root" ${Pt(this.observedRecord)}>${((t,e)=>{const o=new Array(t);for(let s=0;s<t;s++)o[s]=e(s);return o})(this.len,(t=>yt`<span part="input-box" class="${Ot({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}" .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.dispatchEvent(new CustomEvent("input",{detail:this.value,composed:!0,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(),this.dispatchEvent(new CustomEvent("focus",{detail:t,bubbles:!0,composed:!0}))}blur(){this._input.blur(),this.current=-1,super.blur(),this.dispatchEvent(new CustomEvent("blur",{bubbles:!0,composed:!0}))}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([W({type:Number})],Xi.prototype,"len",void 0),t([W({type:Number})],Xi.prototype,"index",void 0),t([q()],Xi.prototype,"current",void 0),t([q()],Xi.prototype,"currentValue",void 0),Xi=t([d(qi),c(y`:host{border-radius:1px;color:var(${oe.foreground});display:block;width:-moz-fit-content;width:fit-content;${Yi}--size:1.45em;${Yi}--gap:.25em}:host([contents]) [part=root]{width:-moz-fit-content;width:fit-content}[part=root]{display:flex;gap:var(${Yi}--gap);justify-content:space-between;position:relative;width:100%}[part=input-box],[part=root]{border-radius:inherit;vertical-align:top}[part=input-box]{background-color:var(${oe.input}-background);height:var(${Yi}--size);text-align:center;width:var(${Yi}--size)}[part=input]{background:none;height:100%;opacity:0;position:absolute;width:100%;z-index:-1}.focus{box-shadow:var(${oe.input}-box-shadow)}`)],Xi);var Zi=Xi;Zi.define();const Ki="switch",Qi=ie(Ki);let Ji=class Switch extends mi{constructor(){super(...arguments),this.round=!1,this.checked=!1,this.disabled=!1,this.default="false",this.value="on"}render(){return yt`<div part="root" ${Pt(this.observedRecord)} class="${this.round?"round":"rect"}"><input part="input" type="checkbox" ?disabled="${this.disabled}" ?checked="${this.checked}" name="${this.name}" id="${this.makeId}" @change="${this._handleChange}"> <span part="handle" class="${this.checked}"></span></div>`}reset(){this.checked="true"===this.default,this._input.checked=this.checked}connectedCallback(){super.connectedCallback(),this.checked&&(this.default="true"),"true"===this.default&&(this.checked=!0)}_handleChange(){this.checked=this._input.checked,this.dispatchEvent(new CustomEvent("change",{detail:this.checked,composed:!0}))}namevalue(){return[this.name,this.checked]}};t([W({type:Boolean,reflect:!0})],Ji.prototype,"round",void 0),t([W({type:Boolean,reflect:!0})],Ji.prototype,"checked",void 0),t([W({type:Boolean,reflect:!0})],Ji.prototype,"disabled",void 0),t([W()],Ji.prototype,"default",void 0),t([W()],Ji.prototype,"value",void 0),t([X("input")],Ji.prototype,"_input",void 0),Ji=t([d(Ki),c(y`:host,:host([contents]) [part=root]{display:inline-block;height:var(${Qi}-height);width:var(${Qi}-width)}:host{${Qi}-width:3em;${Qi}-height:calc(var(${Qi}-width)/2);${Qi}-handle-size:1.25em;${Qi}-handle-space:.125em;${Qi}-transition:.2s ease-in-out;background:var(${oe.input}-background);border-radius:0;vertical-align:bottom}[part=handle],[part=root]{transition:var(${Qi}-transition)}[part=root]{border-radius:inherit;height:inherit;position:relative}[part=input]{-webkit-appearance:none;appearance:none;height:100%;opacity:0;width:100%}[part=handle]{align-items:center;border-radius:inherit;display:inline-flex;height:100%;justify-content:center;left:0;pointer-events:none;position:absolute;width:50%}:host([round]){background:var(${oe.passive});border-radius:calc(var(${Qi}-height)/2)}:host([checked]) [part=handle]{left:50%}.rect .true{background:var(${oe.active})}.rect .false{background:var(${oe.passive})}.round [part=handle]{--size:var(${Qi}-handle-size);background:var(--godown--input-control);border-radius:100%;height:var(--size);margin:var(${Qi}-handle-space);width:var(--size)}:host([checked]) .round{background:var(${oe.active})}`)],Ji);var to=Ji;to.define();const eo="text",io=ie(eo);let oo=class Text extends GlobalStyle{constructor(){super(...arguments),this.underline="none",this.clip=!1}render(){return yt`<span part="root" ${Pt(this.observedRecord)} class="${Ot(this.underline)}">${zt()}</span>`}};t([W()],oo.prototype,"underline",void 0),t([W({type:Boolean})],oo.prototype,"clip",void 0),oo=t([d(eo),c(y`:host{${io}--color:currentColor;${io}--color-hover:currentColor;${io}--color-active:currentColor;display:inline-block;overflow-wrap:break-word;text-overflow:ellipsis}[part=root]{color:var(${io}--color);display:inline-block;overflow:hidden;overflow-wrap:inherit;text-overflow:inherit;vertical-align:bottom;white-space:nowrap;width:100%}[part=root]:hover{color:var(${io}--color-hover,var(${io}--color))}[part=root]:active{color:var(${io}--color-active,var(${io}--color))}.active:active,.always,.hover:hover{text-decoration:underline}.none{text-decoration:none}[clip]{background:var(${oe.clipBackground});color:transparent;display:inline-block;-webkit-text-fill-color:transparent;background-clip:text;-webkit-background-clip:text}`)],oo);var ro=oo;function so(t,e=2){return t.toString().padStart(e,"0").split("")}ro.define();let no=class Time extends GlobalStyle{constructor(){super(...arguments),this.escape="%",this.format="YYYY-MM-DD hh:mm:ss",this.time=new Date}render(){return yt`<span part="root" ${Pt(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:so(e.getMonth()+1),D:so(e.getDate()),h:so(e.getHours()),m:so(e.getMinutes()),s:so(e.getSeconds()),S:so(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>`}firstUpdated(){this.timeout&&(this.timeoutId=this.startTimeout())}updated(t){t.has("timeout")&&this.timeout&&(clearInterval(this.timeoutId),this.timeoutId=this.startTimeout())}disconnectedCallback(){clearInterval(this.timeoutId),this.timeoutId=void 0}startTimeout(){return setInterval((()=>{this.dispatchEvent(new CustomEvent("time",{detail:this.time,composed:!0})),this.time=new Date(this.time.getTime()+(this.gap||this.timeout))}),Math.abs(this.timeout))}};t([W()],no.prototype,"escape",void 0),t([W()],no.prototype,"format",void 0),t([W({type:Object})],no.prototype,"time",void 0),t([W({type:Number})],no.prototype,"timeout",void 0),t([W({type:Number})],no.prototype,"gap",void 0),no=t([d("time"),c(y`:host{text-align:center}`)],no);var ao,lo=no;lo.define();const ho="tooltip",co=ie(ho);let po=ao=class Tooltip extends SuperOpenable{constructor(){super(...arguments),this.direction="top",this.align="center",this.propagation=!1,this.type="hover"}render(){const t=ao.aligns[this.align]||"inherit",e="focus"===this.type;return yt`<div part="root" ${Pt(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}">${zt()}<div part="tip">${this.tip?yt`<span class="passive">${this.tip}</span>`:zt("tip")}</div></div>`}};po.aligns={start:"flex-start",end:"flex-end",center:"center","flex-start":"flex-start","flex-end":"flex-end"},t([W()],po.prototype,"tip",void 0),t([W()],po.prototype,"direction",void 0),t([W()],po.prototype,"align",void 0),t([W({type:Boolean})],po.prototype,"propagation",void 0),t([W()],po.prototype,"type",void 0),po=ao=t([d(ho),c(y`:host{${co}--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(${co}--tip-background)}[propagation] [part=tip]{pointer-events:none}`,y`[direction^=top] [part=tip]{bottom:100%}[direction^=bottom] [part=tip]{top:100%}[direction$=right] [part=tip]{left:100%}[direction$=left] [part=tip]{right:100%}`)],po);var uo=po;uo.define();const vo="typewriter",fo=ie(vo);let mo=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 yt`<div part="root" ${Pt(this.observedRecord)}>${zt()} ${this.contentInternal} <i part="cursor" ?hidden="${this.ended}"></i></div>`}firstUpdated(){this.content||=this._slot?.assignedNodes()[0]?.textContent.trim()||"",!this.ended&&this.len&&this.write()}updated(t){t.has("index")&&this.dispatchEvent(new CustomEvent(this.index===this.len?"done":"write",{detail:this.contentInternal}))}write(t=this.index){this.contentInternal=this.content.slice(0,t+1);const e=this.delay||((t=0,e=1)=>{const o=Math.max(t,e),s=Math.min(t,e);return Math.random()*(o-s)+s})(this.max,this.min);this.timeoutID=setTimeout((()=>{const e=t+1;e<=this.len&&(this.index=e,this.write())}),e)}stop(){clearTimeout(this.timeoutID)}end(){this.ended=!0}};t([W()],mo.prototype,"content",void 0),t([W({type:Boolean})],mo.prototype,"ended",void 0),t([W({type:Number})],mo.prototype,"max",void 0),t([W({type:Number})],mo.prototype,"min",void 0),t([W({type:Number})],mo.prototype,"delay",void 0),t([W({type:Number})],mo.prototype,"index",void 0),t([q()],mo.prototype,"contentInternal",void 0),t([X("i")],mo.prototype,"_i",void 0),mo=t([d(vo),c(y`:host{${fo}--cursor-width:.05em}:host,:host([contents]) [part=root]{display:inline-block}i{animation:s 1.5s steps(1) infinite;border-right:var(${fo}--cursor-width) solid;margin-left:.02em}@keyframes s{0%{border-color:currentColor}50%{border-color:transparent}}slot{display:none}`)],mo);var go=mo;go.define();export{fe as Alert,$e as Avatar,ke as Badge,Ae as Breath,Ne as Button,He as Card,Le as Carousel,qe as Details,Ke as Dialog,Je as Divider,ei as Dragbox,ri as Flex,ni as Form,hi as Grid,di as Heading,yi as Input,bi as Layout,Ai as Link,Ri as Progress,Ii as Range,Di as Rotate,Ci as Router,Ui as Select,Wi as Skeleton,Zi as Split,to as Switch,ro as Text,lo as Time,uo as Tooltip,go as Typewriter};
58
+ const Rt=6;let Tt=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)}};const Mt=(t,o,s)=>{e(s)||!1===s?t.removeAttribute(o):(!0===s||"string"==typeof s||"number"==typeof s&&!isNaN(s))&&t.setAttribute(o,!0===s?"":String(s))};const Pt=(t=>(...e)=>({_$litDirective$:t,values:e}))(class AttrDirective extends Tt{render(t,e){}update(t,[e,o]){if(!e)return bt;if(t.type===Rt){for(const s in e)(o||Mt)(t.element,s,e[s]);return bt}}}),It=((t,e)=>o=>t({...e,...o}))(Pt,{width:"1em",height:"1em",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"}),Nt=(t,e)=>t?t+(e?" "+e:""):e,Ot=(...t)=>t.reduce(((t,e)=>{if(Array.isArray(e))return Nt(t,e.join(" "));if("object"==typeof e){const o=Object.entries(e).reduce(((t,[e,o])=>o?Nt(t,e):t),"");return Nt(t,o)}return Nt(t,e)}),""),zt=(t,e)=>yt`<slot name="${t||_t}" @slotchange=${null}></slot>`;function Dt(t,o,s,a){const l={};return Object.keys(o).forEach(((h,c)=>{const d=t.reduce(((t,s,l)=>{let c=o[h][l];return c=a?a(c,l):c,e(c)||t.push(`${s}:${c}`),t}),[]);l[h]=`${s?s(h,c):h}{${d.join(";")}}`})),l}function Ht(t){return Object.keys(t).reduce(((e,o)=>{const s=t[o];if(!s)return e;const a="string"==typeof s?s:Bt(s);return a?e+`${o}{${a}}`:e}),"")}function Bt(t){return Object.keys(t).reduce(((o,s)=>{const a=t[s];return e(a)?o:o+`${s}:${a};`}),"")}function Ut(t,e){return t?`var(${t})`:""}const jt=(t,e)=>{if(!t)return _t;const o="string"==typeof t?t:Ht(t);return o?yt`<style media="${_t}">${o}</style>`:_t},Lt=t=>(e,...o)=>{const s=$t(e,o),a=t,l=t=>yt`<svg viewBox="${a}" ${It(t)}>${s}</svg>`;return l.body=s,l.viewBox=a,l};function*Vt(t,e,o){for(let o=0;o<t;o++)yield e(o)}function Gt(t,e=document.body){const o=[];if(!e||!t)return o;e.shadowRoot&&o.push(...Gt(t,e.shadowRoot));const s=e.querySelectorAll(t);o.push(...Array.from(s));for(const s of e.children)o.push(...Gt(t,s));return[...new Set(o)]}function Ft(t,e=document.body){if(!e||!t)return null;if(e.shadowRoot)return Ft(t,e.shadowRoot);const o=e.querySelector(t);if(o)return o;for(const o of e.children){const e=Ft(t,o);if(e)return e}return null}class Events{constructor(){this.m=new Map}add(t,e,o,s){const a=this.m.get(e)||new Map,l=a.get(t)||new Set;return l.add(o),a.set(t,l),this.m.set(e,a),t.addEventListener(e,o,s),o}remove(t,e,o,s){if(o){const a=this.m.get(e);if(a){const s=a.get(t);s&&(s.delete(o),s.size||(a.delete(t),a.size||this.m.delete(e)))}t.removeEventListener(e,o,s)}}removeAll(){this.m.forEach(((t,e)=>{t.forEach(((t,o)=>{t.forEach((t=>{o.removeEventListener(e,t)}))})),t.clear(),this.m.delete(e)}))}}class GodownElement extends r{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)}get observedRecord(){return Object.fromEntries(this.scopedObservedAttributes.map((t=>[t,this[t]])))}get scopedObservedAttributes(){return this.globalObservedAttributes.filter((t=>!GodownElement.observedAttributes.includes(t)))}get globalObservedAttributes(){return this.constructor.observedAttributes}get _slot(){return this.shadowRoot.querySelector("slot:not([name])")}get _slotAll(){return[...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(),/^[\s\S]*{[\s\S]*}$/.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.__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()}mount(t){this.firstUpdated(t)}unmount(){this.disconnectedCallback()}remount(t){this.unmount(),this.connectedCallback(),this.mount(t)}deepQuerySelector(t){return Ft(t,this)}deepQuerySelectorAll(t){return Gt(t,this)}adoptStyles(...t){const e=this.shadowRoot.adoptedStyleSheets;if(t.length){const o=new CSSStyleSheet;t.forEach((t=>o.insertRule(t.toString()))),e.push(o)}return 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 a(o(this.prefix,h)+h+t+h+s(this.suffix,h),h)}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([W({type:Boolean,reflect:!0})],GodownElement.prototype,"contents",void 0),t([W({reflect:!0})],GodownElement.prototype,"stylex",null);class RouteTree{constructor(){this.matchType=RouteTree.matchType.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("string"==typeof t&&(t=RouteTree.split(t)),this.sorted||this.sort(),t.length===e||RouteTree.dynamic(this.part).matchType===RouteTree.matchType.multi)return this.pattern?this:null;const o=t[e],s=this.filterWide(o);for(const o of s){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))}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,carry:h,matchType:c}=RouteTree.dynamic(e);if(c===RouteTree.matchType.single)a[l.slice(h)]=o[t];else if(c===RouteTree.matchType.multi){a[l.slice(h)]=o.slice(t).join("/");break}}return a}static dynamic(t){if(t){if(t.startsWith("{")&&t.endsWith("}")||t.startsWith("[")&&t.endsWith("]")){t=t.slice(1,-1);const e=RouteTree.dynamic(t);return e.matchType||=RouteTree.matchType.single,e}if(t.length>1){const e=t[0];if(":"===e)return{key:t,carry:1,matchType:RouteTree.matchType.single};if("*"===e)return{key:t,carry:1,matchType:RouteTree.matchType.multi};if(t.startsWith("..."))return{key:t,carry:3,matchType:RouteTree.matchType.multi}}}return{key:t,carry:0,matchType:RouteTree.matchType.strict}}static join(...t){return t.map((t=>a(t,"/"))).join("/")}static split(t){return t.split("/").filter((t=>t))}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}}RouteTree.matchType={strict:0,single:1,multi:2};var Wt=Lt("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=Lt("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"/>`,Yt=Lt("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"/>`,Xt=Lt("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"/>`,Zt=Lt("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"/>`,Kt=Lt("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"/>`,Qt=Lt("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"/>`,Jt=Lt("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 te=(t,e,o)=>({r:t,g:e,b:o,toString(){return`${this.r} ${this.g} ${this.b}`}}),ee={darkgray:[te(121,121,121),te(109,109,109),te(97,97,97),te(85,85,85),te(73,73,73),te(61,61,61),te(48,48,48),te(36,36,36),te(24,24,24),te(12,12,12)],lightgray:[te(243,243,243),te(231,231,231),te(219,219,219),te(206,206,206),te(194,194,194),te(182,182,182),te(170,170,170),te(158,158,158),te(146,146,146),te(133,133,133)],teal:[te(213,249,248),te(170,243,241),te(128,237,234),te(85,231,226),te(43,225,219),te(0,219,212),te(0,175,170),te(0,131,127),te(0,88,85),te(0,44,42)],blue:[te(213,240,255),te(170,224,255),te(128,209,255),te(85,193,255),te(43,178,255),te(0,162,255),te(0,130,204),te(0,97,153),te(0,65,102),te(0,32,51)],green:[te(221,243,221),te(186,231,186),te(152,219,152),te(117,206,117),te(82,194,82),te(48,182,48),te(38,146,38),te(29,109,29),te(19,73,19),te(10,36,10)],red:[te(251,221,221),te(247,186,187),te(243,152,154),te(239,118,120),te(235,83,86),te(231,49,52),te(185,39,42),te(139,29,31),te(92,20,21),te(46,10,10)],purple:[te(242,228,253),te(229,201,250),te(217,174,248),te(204,146,245),te(191,119,243),te(178,92,240),te(142,74,192),te(107,55,144),te(71,37,96),te(36,18,48)],orange:[te(255,235,213),te(255,216,170),te(255,196,128),te(255,176,85),te(255,157,43),te(255,137,0),te(204,110,0),te(153,82,0),te(102,55,0),te(51,27,0)],yellow:[te(251,252,216),te(247,248,177),te(243,245,138),te(239,242,98),te(235,238,59),te(231,235,20),te(185,188,16),te(139,141,12),te(92,94,8),te(46,47,4)],pink:[te(254,222,233),te(253,189,211),te(252,156,190),te(251,123,168),te(250,90,146),te(249,57,124),te(199,46,99),te(149,34,74),te(100,23,50),te(50,11,25)]};class GlobalStyle extends GodownElement{}const ie=a(GlobalStyle.godownConfig.prefix,"-");function oe(t,e=1){return function(t){return g(`--${t}`)}(ie+"-".repeat(e)+t)}const re={foreground:oe("foreground",2),background:oe("background",2),clipBackground:oe("clip-background",2),active:oe("active",2),passive:oe("passive",2),_colors:{},input:oe("input",2),white:oe("color-white",2),black:oe("color-black",2)};var se,ne;GlobalStyle.styles=[g(`:host{${re.black}:rgb(0 0 0);${re.white}:rgb(255 255 255);`+(se=(t,e,o)=>{re._colors[t]||=[],re._colors[t].push(g(oe("color",2)+"-"+t+"-"+e));const s=`-${t}-${e}`;return`${oe("color",2)+s}:rgb(${o});`},ne=ee,Object.entries(ne).flatMap((([t,e])=>e.map(((e,o)=>se(t,o,e)))))).join("")+Bt({[re.background+""]:`var(${re._colors.darkgray[9]})`,[re.foreground+""]:`var(${re._colors.lightgray[0]})`,[re.active+""]:`var(${re._colors.blue[6]})`,[re.passive+""]:`var(${re._colors.darkgray[6]})`,[re.clipBackground+""]:`linear-gradient(to bottom, var(${re.foreground}), var(${re.passive}))`})+"}"),y`*{border:0;box-sizing:border-box;font-size:100%;font-style:normal;margin:0;outline:0;padding:0}:host{box-sizing:border-box}a{text-decoration:none}span{white-space:nowrap}svg{-webkit-user-select:none;user-select:none}:host([contents]){display:contents}:where(:host([contents]) [part=root]){all:inherit;display:revert}`];const ae="alert",le=oe(ae),he=["color","background"].map((t=>`${le}--${t}`)),ce=t=>[re._colors[t][5],re._colors[t][9]],de=Dt(he,{green:ce("green"),blue:ce("blue"),orange:ce("orange"),red:ce("red"),yellow:ce("yellow"),purple:ce("purple"),teal:ce("teal"),pink:ce("pink"),gray:[re._colors.lightgray[5],re._colors.darkgray[5]],white:[re._colors.lightgray[2],re._colors.darkgray[7]],black:[re._colors.darkgray[8],re._colors.lightgray[5]]},(()=>":host"),(t=>Ut(t))),pe=t=>[re._colors[t][6],re._colors[t][0]],ue=Dt(he,{green:pe("green"),blue:pe("blue"),orange:pe("orange"),red:pe("red"),yellow:pe("yellow"),purple:pe("purple"),teal:pe("teal"),pink:pe("pink"),gray:[re._colors.darkgray[5],re._colors.lightgray[7]],white:[re._colors.lightgray[0],re._colors.darkgray[0]],black:[re._colors.darkgray[7],re._colors.lightgray[3]]},(()=>":host"),(t=>Ut(t))),ve={tip:{color:"teal",icon:Xt},success:{color:"green",icon:Wt},info:{color:"blue",icon:Yt},warning:{color:"orange",icon:qt},danger:{color:"red",icon:Qt},error:{color:"red",icon:Qt},help:{color:"purple",icon:Zt},deprecated:{color:"gray",icon:Kt}};let me=class Alert extends GlobalStyle{constructor(){super(...arguments),this.color="blue",this.autoclose=0,this.hideClose=!1,this.variant="dark"}render(){const t=ve[this.call]?.color||this.color,e=this.call?ve[this.call].icon():zt("icon");return yt`<div part="root" ${Pt(this.observedRecord)}><div part="icon">${e}</div><div part="content"><strong part="title">${this.title||zt("title")}</strong> ${this.content||zt()}</div>${this.hideClose||"blockquote"===this.variant?"":yt`<div part="close" tabindex="0" @click="${this.close}">${Jt()}</div>`} ${jt("dark"===this.variant?de[t]:ue[t])}</div>`}close(){this.remove(),this.dispatchEvent(new CustomEvent("close",{bubbles:!0,composed:!0}))}firstUpdated(){this.autoclose&&setTimeout((()=>this.close()),this.autoclose)}static alert(t,e){const o=new this;return Object.assign(o,e),t.appendChild(o),o}};t([W()],me.prototype,"call",void 0),t([W()],me.prototype,"color",void 0),t([W({type:Number})],me.prototype,"autoclose",void 0),t([W()],me.prototype,"title",void 0),t([W()],me.prototype,"content",void 0),t([W({type:Boolean})],me.prototype,"hideClose",void 0),t([W()],me.prototype,"variant",void 0),me=t([d(ae),c(y`:host,:where(:host([contents]) [part=root]){border-radius:var(${le}--border-radius);${le}--border-radius:.25em;${le}--border-width:.075em;${le}--blockquote-width:.2em;${le}--padding:.5em;display:block;width:100%}[part=root]{--color:var(${le}--color);background:var(${le}--background);border:var(${le}--border-width) solid var(--color);border-radius:inherit;color:var(--color);display:flex;justify-content:space-between;padding:var(${le}--padding);transition:.25s;width:100%}[variant=blockquote]{background:transparent;border:none;border-left:var(${le}--blockquote-width) solid var(--color);border-radius:0}[part=content]{color:var(--color)}[part=root]{align-items:center;display:grid;grid-template-columns:auto 1fr auto;grid-template-rows:auto 1fr}[part=title]{line-height:2em}[part=icon]{align-items:center;display:inline-grid;height:2em}[part=icon] svg{height:1.25em;margin-right:.5em;width:1.25em}[part=content]{grid-row:span 2/span 2;line-height:1.5em}`)],me);var fe=me;fe.define();const ge="avatar",ye=oe(ge);let $e=class Avatar extends GlobalStyle{constructor(){super(...arguments),this.name="",this.round=!1}render(){return yt`<div part="root" ${Pt(l(this.observedRecord,"src"))}>${this._renderAvatar()}</div>`}_renderAvatar(){return this.src?yt`<img part="image" src="${this.src}" alt="${this.name}" @error="${this._handleError}">`:this.name?yt`<span part="name">${this.format()}</span>`:zt()}format(){return this.name}_handleError(){this.src=void 0}};t([W()],$e.prototype,"src",void 0),t([W()],$e.prototype,"name",void 0),t([W({type:Boolean})],$e.prototype,"round",void 0),$e=t([d(ge),c(y`:host{${ye}--size:2em;height:var(${ye}--size);vertical-align:bottom;width:var(${ye}--size)}: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;height:100%;justify-content:center;overflow:hidden;position:relative;width:100%}`)],$e);var be=$e;be.define();const _e="badge",we=oe(_e);let ke=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 yt`<div part="root" ${Pt(this.observedRecord)}>${zt()} ${this.value||this.dot?yt`<div part="badge">${this.dot?"":this.formatValue(this.value)}</div>`:""}</div>`}};t([W()],ke.prototype,"position",void 0),t([W({type:Number})],ke.prototype,"value",void 0),t([W({type:Boolean})],ke.prototype,"dot",void 0),t([W({type:Number})],ke.prototype,"max",void 0),ke=t([d(_e),c(y`:host{${we}--background:var(${re.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%;left:var(--left);padding:0 .5em;position:absolute;top:var(--top);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]{--top:calc(var(${we}--offset-y))}[position$=right]{--left:calc(100% - var(${we}--offset-x))}[position^=bottom]{--top:calc(100% - var(${we}--offset-y))}[position$=left]{--left:calc(var(${we}--offset-x))}`)],ke);var xe=ke;xe.define();const Ce="breath",Se=oe(Ce);let Ae=class Breath extends GlobalStyle{render(){const t=this.getTexts();return yt`<div part="root" ${Pt(this.observedRecord)}>${[t.map(this._renderText),jt(this._computeStyle(t.length))]}</div>`}_renderText(t){return yt`<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(/\s+/).filter((t=>t))}_computeStyle(t){const e=50/t,o=this.parseDuration()||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)}s;background:var(${Se}--${e},var(${Se}--${(e-1)%3+1}));}`;return`.colorful{animation-duration:${o}s;}@keyframes colorfulN{0%,${3*e}%{opacity:0;}${e}%,${2*e}%{opacity:1;}}${s}`}parseDuration(){const{duration:t}=this;if(t){if(t.endsWith("s"))return Number.parseFloat(t.slice(0,-1));if(t.endsWith("ms"))return Number.parseFloat(t.slice(0,-2))/1e3}}};t([W()],Ae.prototype,"content",void 0),t([W()],Ae.prototype,"duration",void 0),Ae=t([d(Ce),c(y`:host{${Se}--deg:60deg;${Se}--1-1:var(${re._colors.red[5]});${Se}--1-2:var(${re._colors.yellow[5]});${Se}--2-1:var(${re._colors.green[5]});${Se}--2-2:var(${re._colors.purple[5]});${Se}--3-1:var(${re._colors.blue[5]});${Se}--3-2:var(${re._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))}`,y`: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}`,y`.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(${re.clipBackground});position:absolute;top:0}`)],Ae);var Ee=Ae;Ee.define();const Re="button",Te=oe(Re),Me=re.white,Pe=re.black,Ie=Dt(["color","background","gradients"].map((t=>`${Te}--${t}`)),{black:[Me,re._colors.darkgray[7],re._colors.darkgray[5]],gray:[Me,re._colors.darkgray[1],re._colors.lightgray[8]],white:[Pe,re._colors.lightgray[3],re._colors.lightgray[0]],blue:[Me,re._colors.blue[6],re._colors.blue[4]],green:[Me,re._colors.green[6],re._colors.green[4]],red:[Me,re._colors.red[6],re._colors.red[4]],orange:[Me,re._colors.orange[6],re._colors.orange[4]],pink:[Me,re._colors.pink[6],re._colors.pink[4]],purple:[Me,re._colors.purple[6],re._colors.purple[4]],yellow:[Pe,re._colors.yellow[6],re._colors.yellow[4]],teal:[Me,re._colors.teal[6],re._colors.teal[4]]},(()=>":host"),(t=>Ut(t)));let Ne=class Button extends GlobalStyle{constructor(){super(...arguments),this.disabled=!1,this.ghost=!1,this.active=!1,this.round=!1,this.color="black"}render(){const t=this.nextColor();return yt`<div part="root" ${Pt(this.observedRecord)}><span part="modal-root"></span><div part="content">${[this.content||zt(),jt(Ie[t])]}</div></div>`}focus(){this.disabled||(this.active=!0,super.focus())}blur(){this.active=!1,super.blur()}firstUpdated(){this.events.add(this,"click",this._handelClick,!0)}_handelClick(t){if(this.disabled)return t.stopPropagation(),void t.preventDefault();this._handleModal(t)}_handleModal(t){const e=document.createElement("i"),o=this._root.getBoundingClientRect(),{height:s,width:a}=o,l=2*Math.sqrt(s*s+a*a)+"px";e.style.height=l,e.style.width=l,e.style.left=t.clientX-o.left+"px",e.style.top=t.clientY-o.y+"px",e.style.animationName="kf",this._modalRoot.appendChild(e),e.addEventListener("animationend",(()=>e.remove()),{once:!0})}nextColor(){return this.color}};t([W({type:Boolean,reflect:!0})],Ne.prototype,"disabled",void 0),t([W({type:Boolean,reflect:!0})],Ne.prototype,"ghost",void 0),t([W({type:Boolean,reflect:!0})],Ne.prototype,"active",void 0),t([W({type:Boolean,reflect:!0})],Ne.prototype,"round",void 0),t([W({reflect:!0})],Ne.prototype,"color",void 0),t([W()],Ne.prototype,"content",void 0),t([K("modal-root")],Ne.prototype,"_modalRoot",void 0),t([K("root")],Ne.prototype,"_root",void 0),Ne=t([d(Re),c(y`:host(:not([disabled]):active){transform:scale(var(${Te}--focus-scale))}:host([round]){${Te}--padding-x:.75em;border-radius:calc(infinity * 1px)}:host([disabled]){cursor:not-allowed;filter:brightness(.85)}:host([ghost]){${Te}--modal-background:var(${Te}--ghost-color);background:transparent;box-shadow:inset 0 0 0 var(${Te}--ghost-width) var(${Te}--ghost-color);color:var(${Te}--ghost-color)}`,y`:host{${Te}--padding-x:.5em;${Te}--padding-y:min(calc(var(${Te}--padding-x)/2),.125em);${Te}--padding:var(${Te}--padding-y) var(${Te}--padding-x);${Te}--modal-animation-duration:1s;${Te}--ghost-width:.08em;${Te}--focus-scale:.97;${Te}--deg:45deg;${Te}--ghost-color:var(${Te}--background);background:linear-gradient(var(${Te}--deg),var(${Te}--background),var(${Te}--gradients,var(${Te}--background)));border-radius:.3em;color:var(${Te}--color,inherit);cursor:pointer;display:block;overflow:hidden;padding:0!important;text-align:center;transition:.1s;width:-moz-fit-content;width:fit-content}:host([contents]) [part=root]{width:-moz-fit-content;width:fit-content}[part=root]{border-radius:inherit;overflow:hidden;padding:var(${Te}--padding);position:relative;transition:none;transition-duration:inherit;-webkit-user-select:none;user-select:none}[part=root],i{height:100%;width:100%}i{animation-duration:var(${Te}--modal-animation-duration);background:var(${Te}--modal-background,currentColor);border-radius:50%;inset:0;opacity:0;pointer-events:none;position:absolute;transform-origin:0 0;visibility:visible}@keyframes kf{0%{opacity:var(${Te}--modal-opacity,.1);transform:scale(0) translate(-50%,-50%)}80%{transform:scale(1) translate(-50%,-50%)}to{opacity:0}}`)],Ne);var Oe=Ne;Oe.define();const ze="card",De=oe(ze);let He=class Card extends GlobalStyle{constructor(){super(...arguments),this.footer=!1,this.header=!1}render(){return yt`<div part="root" ${Pt(this.observedRecord)}>${[this.header?zt("header"):"",zt(),this.footer?zt("footer"):""]}</div>`}};t([W({type:Boolean})],He.prototype,"footer",void 0),t([W({type:Boolean})],He.prototype,"header",void 0),He=t([d(ze),c(y`:host{${De}--background:var(${re.background});${De}--border-width:.0375em;${De}--border-color:transparent;${De}--border-background:var(${re.passive});${De}--padding:.75em;background:var(${De}--background);border-width:var(${De}--border-width);box-sizing:border-box;color:var(${re.foreground});display:block;flex-shrink:0;overflow:hidden;position:relative}slot{display:block;padding:var(${De}--padding)}:host,slot{border-color:var(${De}--border-background);border-style:solid}[name=footer]{border-top-width:var(${De}--border-width)}[name=header]{border-bottom-width:var(${De}--border-width)}`)],He);var Be=He;Be.define();var Ue=Lt("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"/>`,je=Lt("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"/>`;let Le=class Carousel extends GlobalStyle{constructor(){super(...arguments),this.index=0,this.autoChange=0}render(){return yt`<div part="root" ${Pt(this.observedRecord)}><i part="prev" @click="${this.prev}">${Ue()}</i><div part="move-root" style="transform:${`translateX(-${this.index+1}00%)`}">${zt()}</div><i part="next" @click="${this.next}">${je()} </i>${jt(`:host,:host([contents]) [part=root]{width:${this.width};}`)}</div>`}async firstUpdated(){await this.updateComplete,this.children.length&&(this.width||=`${this.firstElementChild.offsetWidth}px`,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.show(this.index)),this.checkInterval()}disconnectedCallback(){clearInterval(this.intervalID)}show(t){this.index=t,this.dispatchEvent(new CustomEvent("change",{detail:t,composed:!0}))}next(){this.index===this.childElementCount-3?(this._doTranslateX("0",!0),this.show(0)):this.show(this.index+1),this.checkInterval()}prev(){0===this.index?(this._doTranslateX(`-${this.childElementCount-1}00%`,!0),this.show(this.children.length-3)):this.show(this.index-1),this.checkInterval()}_doTranslateX(t,e){this._moveRoot.style.transform=`translateX(${t})`,e&&(this._moveRoot.style.transition="none"),this._moveRoot.getBoundingClientRect()}checkInterval(){this.autoChange&&(this.intervalID&&clearInterval(this.intervalID),this.intervalID=setInterval((()=>{this.next()}),this.autoChange))}};t([W({type:Number})],Le.prototype,"index",void 0),t([W({type:Number})],Le.prototype,"autoChange",void 0),t([W()],Le.prototype,"width",void 0),t([K("move-root")],Le.prototype,"_moveRoot",void 0),Le=t([d("carousel"),c(y`: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}`)],Le);var Ve=Le;Ve.define();var Ge=Lt("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.dispatchEvent(new CustomEvent("change",{detail:this.open,composed:!0}))}_handelClick(t){this.toggle()}}t([W({type:Boolean,reflect:!0})],SuperOpenable.prototype,"open",void 0);const Fe="details",We=oe(Fe);let qe=class Details extends SuperOpenable{constructor(){super(...arguments),this.fill=!1,this.summary=""}render(){return yt`<dl part="root" ${Pt(this.observedRecord)}><dt part="title" @click="${this._handelClick}"><span part="summary">${this.summary||zt("summary")}</span> <span><i part="icon">${Ge()}</i></span></dt><dd part="details" @click="${this.fill?()=>this.toggle():null}"><div style="min-height: 0;">${zt()}</div></dd></dl>`}};t([W({type:Boolean})],qe.prototype,"fill",void 0),t([W()],qe.prototype,"summary",void 0),qe=t([d(Fe),c(y`:host{${We}--icon-deg-open:0deg;${We}--icon-deg-close:90deg;${We}--icon-space:0.3em;${We}--summary-direction:row;${We}--transition:.3s;display:block;height:-moz-fit-content;height:fit-content;transition:var(${We}--transition)}[part=root]{height:100%;overflow:hidden;position:relative}[part=title]{align-items:center;background:inherit;direction:ltr;display:flex;flex-direction:var(${We}--summary-direction);flex-wrap:nowrap;height:100%;justify-content:space-between}[part=details]{display:grid;grid-template-rows:0fr;overflow:hidden;transition:var(${We}--transition);transition-property:grid-template-rows}:host([open]) [part=details]{grid-template-rows:1fr}:host([float]) [part=details]{position:absolute;top:100%}[part=icon]{-webkit-backface-visibility:hidden;backface-visibility:hidden;display:flex;padding:var(${We}--icon-space);transform:rotate(var(${We}--icon-deg-close));transition:var(${We}--transition)}:host([open]) [part=icon]{transform:rotate(var(${We}--icon-deg-open))}`)],qe);var Ye=qe;Ye.define();const Xe="dialog",Ze=oe(Xe);let Ke=class Dialog extends SuperOpenable{constructor(){super(...arguments),this.modal=!1,this.key="Escape",this.__modalInvoke=!1}render(){return yt`<div part="root" ${Pt(this.observedRecord)}><div part="modal"></div><div part="container">${zt()}</div></div>`}showModal(){this.modal||(this.modal=!0,this.__modalInvoke=!0),this.show()}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(/[\s,]/);(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([W({type:Boolean,reflect:!0})],Ke.prototype,"modal",void 0),t([W()],Ke.prototype,"key",void 0),Ke=t([d(Xe),c(y`:host{${Ze}--background:none;${Ze}--background-modal:var(${re.background});${Ze}--opacity-modal:0.2;background:var(${Ze}--background);inset:0;pointer-events:none;position:fixed;visibility:hidden;z-index:1}:host([open]){visibility:visible}:host([open][modal]) [part=modal]{opacity:var(${Ze}--opacity-modal);pointer-events:all;visibility:visible}[part=modal]{background:var(${Ze}--background-modal);height:100%;opacity:0;position:absolute;visibility:hidden;width:100%}[part=root]{align-items:center;display:flex;height:100%;justify-content:center;position:relative;width:100%}[part=container]{pointer-events:all;position:absolute}[direction^=top] [part=container]{top:0}[direction^=bottom] [part=container]{bottom:0}[direction$=right] [part=container]{right:0}[direction$=left] [part=container]{left:0}`)],Ke);var Qe=Ke;Qe.define();let Je=class Divider extends GlobalStyle{constructor(){super(...arguments),this.vertical=!1}render(){return yt`<div part="root" ${Pt(this.observedRecord)}></div>`}};t([W({type:Boolean,reflect:!0})],Je.prototype,"vertical",void 0),Je=t([d("divider"),c(y`:host{background:currentColor;display:block;height:.05em;margin:auto;width:100%}:host([vertical]){height:max(1em,100%);width:.05em}:host([contents]) [part=root]{background:currentColor;display:block;height:.05em;margin:auto;width:100%}[part=root]{display:contents}`)],Je);var ti=Je;ti.define();let ei=class Dragbox extends GlobalStyle{constructor(){super(...arguments),this.__drag=!1,this.x="auto",this.y="auto"}get offsetsWidth(){return this.offsetParent?.clientWidth??document.body.offsetWidth}get offsetsHeight(){return this.offsetParent?.clientHeight??document.body.offsetHeight}render(){return yt`<div part="root" ${Pt(this.observedRecord)} @mousedown="${this._handleDragStart}" @mouseup="${this._handleDragEnd}">${zt()}</div>`}firstUpdated(){this.reset()}_handleDragStart(t){this.__cx=t.clientX,this.__cy=t.clientY,this.__t=this.offsetTop,this.__l=this.offsetLeft,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))}_handleDragEnd(){this.__drag=!1,this.events.remove(document,"mousemove",this._handleMouseMove),this.events.remove(document,"mouseleave",this._handleMouseLeave)}_handleDrag(t){if(!this.__drag)return;const e=t.clientX-(this.__cx-this.__l),o=t.clientY-(this.__cy-this.__t),{style:s,offsetsWidth:a,offsetsHeight:l,offsetWidth:h,offsetHeight:c}=this;s.left=e<0?"0":e<a-h?`${e}px`:a-h+'"px"',s.top=o<0?"0":o<l-c?`${o}px`:l-c+"px"}reset(){const{x:t,y:e,style:o,offsetsWidth:s,offsetsHeight:a,offsetWidth:l,offsetHeight:h,offsetLeft:c,offsetTop:d}=this;o.left=t||"0",o.top=e||"0",c>s-l&&(o.left=s-l+"px"),d>a-h&&(o.top=a-h+"px")}};t([W()],ei.prototype,"x",void 0),t([W()],ei.prototype,"y",void 0),ei=t([d("dragbox"),c(y`:host{display:block;position:absolute}:host(:active){-webkit-user-select:none;user-select:none}`)],ei);var ii=ei;ii.define();let oi=class Flex extends GlobalStyle{constructor(){super(...arguments),this.vertical=!1}render(){return yt`<div part="root" ${Pt(this.observedRecord)}>${[zt(),jt(Ht({":host":{gap:this.gap,"flex-flow":this.flexFlow,"flex-direction":this.vertical&&"column","align-items":this.items,"justify-content":this.content}}))]}</div>`}};t([W({attribute:"flex-flow"})],oi.prototype,"flexFlow",void 0),t([W()],oi.prototype,"gap",void 0),t([W()],oi.prototype,"content",void 0),t([W()],oi.prototype,"items",void 0),t([W({type:Boolean})],oi.prototype,"vertical",void 0),oi=t([d("flex"),c(y`:host,:host([contents]) [part=root]{display:flex}[part=root]{display:contents}`)],oi);var ri,si=oi;si.define();let ni=ri=class Form extends GlobalStyle{constructor(){super(...arguments),this.name="",this.nameValue=this.namevalue}get value(){return ri.buildValue(this._slot.assignedElements())}render(){return zt()}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([W()],ni.prototype,"name",void 0),ni=ri=t([d("form"),c(y`:host{display:block}`)],ni);var ai=ni;ai.define();const li=t=>isNaN(+t)?t:`repeat(${t},1fr)`;let hi=class Grid extends GlobalStyle{render(){return yt`<div part="root" ${Pt(this.observedRecord)}>${[zt(),jt(Ht({":host":{gap:this.gap,"grid-template-columns":li(this.columns),"grid-template-rows":li(this.rows),"place-content":this.content,"place-items":this.items}}))]}</div>`}};t([W()],hi.prototype,"gap",void 0),t([W()],hi.prototype,"columns",void 0),t([W()],hi.prototype,"rows",void 0),t([W()],hi.prototype,"content",void 0),t([W()],hi.prototype,"items",void 0),hi=t([d("grid"),c(y`:host,:host([contents]) [part=root]{display:grid}[part=root]{display:contents}`)],hi);var ci=hi;ci.define();let di=class Heading extends GlobalStyle{constructor(){super(...arguments),this.as="h1",this.anchor="#",this.side="left"}render(){return yt`<a part="root" href="${this.id?"#"+this.id:_t}" ${Pt(this.observedRecord)}>${this.wrapHeading(zt(),this.id?yt`<i part="anchor">${this.anchor}</i>`:"")}</a>`}wrapHeading(...t){switch(this.as){case"h2":return yt`<h2>${t}</h2>`;case"h3":return yt`<h3>${t}</h3>`;case"h4":return yt`<h4>${t}</h4>`;case"h5":return yt`<h5>${t}</h5>`;case"h6":return yt`<h6>${t}</h6>`;default:return yt`<h1>${t}</h1>`}}};t([W()],di.prototype,"as",void 0),t([W()],di.prototype,"anchor",void 0),t([W()],di.prototype,"side",void 0),di=t([d("heading"),c(y`: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}`)],di);var pi=di;pi.define();var ui=Lt("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 vi=y`.input-field{align-items:center;border-radius:inherit;display:flex;height:inherit;position:relative}.input-field [part=input]{background:transparent;color:inherit;height:100%;padding:0 var(${re.input}-space);width:100%}.input-field.outline,.input-field:focus-within{box-shadow:var(${re.input}-box-shadow)}.input-field [part=icon]{align-items:center;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(${re.input}-space)}.input-field [part=prefix] [part=icon]{padding-inline-start:var(${re.input}-space)}`,mi=y`:host{${re.input}-width:10em;${re.input}-height:1.6em;${re.input}-space:0.2em;${re.input}-background:var(${re.background});${re.input}-control:var(${re.foreground});${re.input}-control-edge:var(${re.active});${re.input}-radius:0.2em;${re.input}-box-shadow:0px 0px 0px .1em var(${re.active});border-radius:var(${re.input}-radius)}:host([disabled]){cursor:not-allowed;filter:brightness(.85)}input:disabled{cursor:inherit}input::-ms-clear,input::-ms-reveal{display:none}`;let fi=class SuperInput extends GlobalStyle{constructor(){super(...arguments),this.autofocus=!1,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.dispatchEvent(new CustomEvent("input",{detail:this.value,bubbles:!0,composed:!0})),this.dispatchEvent(new CustomEvent("input",{detail:this.value,composed:!0,bubbles:!0})),this.dispatchEvent(new CustomEvent("change",{detail:this.value,composed:!0})))}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 yt`<label for="${this.makeId}" part="prefix">${zt("prefix")}</label>`}_renderSuffix(){const t="password";return yt`<label for="${this.makeId}" part="suffix">${"password"===this.type?yt`<i part="icon" @mousedown="${()=>this._changeInputType("text")}" @mouseup="${()=>this._changeInputType(t)}" @mouseleave="${()=>this._changeInputType(t)}">${ui()}</i>`:zt("suffix")}</label>`}};t([W()],fi.prototype,"autocomplete",void 0),t([W({type:Boolean,reflect:!0})],fi.prototype,"disabled",void 0),t([W({reflect:!0})],fi.prototype,"type",void 0),t([W({reflect:!0})],fi.prototype,"placeholder",void 0),t([W({reflect:!0})],fi.prototype,"name",void 0),t([W()],fi.prototype,"value",void 0),t([W()],fi.prototype,"default",void 0),t([K("input")],fi.prototype,"_input",void 0),fi=t([c(vi,mi)],fi);var gi=fi;let yi=class Input extends gi{constructor(){super(...arguments),this.type="text",this.variant="default"}render(){return yt`<div part="root" ${Pt(this.observedRecord)} class="${Ot("input-field",this.variant)}">${[this._renderPrefix(),yt`<input part="input" type="${this.type}" .value="${this.value}" ?autofocus="${this.autofocus}" ?disabled="${this.disabled}" autocapitalize="${this.autocapitalize||_t}" autocomplete="${this.autocomplete||_t}" placeholder="${this.placeholder||_t}" id="${this.makeId}" @input="${this._handleInput}">`,this._renderSuffix()]}</div>`}reset(){this._input.value=this.default,this.value=this.default}};t([W()],yi.prototype,"variant",void 0),t([K("input")],yi.prototype,"_input",void 0),yi=t([d("input"),c(y`:host{background:var(${re.input}-background);border-radius:var(${re.input}-radius);color:var(${re.foreground});display:block;height:var(${re.input}-height);width:var(${re.input}-width)}`)],yi);var $i=yi;$i.define();let bi=class Layout extends GlobalStyle{constructor(){super(...arguments),this.noHeader=!1,this.noFooter=!1,this.sticky=!1}render(){return yt`<div part="root" ${Pt(this.observedRecord)}>${this.noHeader?"":yt`<header part="header">${zt("header")}</header>`}<main part="main">${zt()}</main>${this.noFooter?"":yt`<footer part="footer">${zt("footer")}</footer>`}</div>`}};t([W({type:Boolean})],bi.prototype,"noHeader",void 0),t([W({type:Boolean})],bi.prototype,"noFooter",void 0),t([W({type:Boolean})],bi.prototype,"sticky",void 0),bi=t([d("layout"),c(y`:host,:host([contents]) [part=root]{display:flex;flex-direction:column;min-height:100%}[part=root]{display:contents}[sticky] header{position:sticky;top:0;z-index:1}[part=main]{flex:1;position:relative;width:100%}footer,header,main{width:100%}`)],bi);var _i=bi;_i.define();let wi=class SuperAnchor extends GlobalStyle{constructor(){super(...arguments),this.target="_self"}get pathname(){return new URL(this.href,location.href).pathname}render(){return yt`<a part="root" ${Pt(this.observedRecord)} href="${this.href||_t}" target="${this.target}" @click="${this._handleClick}">${zt()}</a>`}_handleClick(t){}};t([W()],wi.prototype,"href",void 0),t([W()],wi.prototype,"target",void 0),wi=t([c(y`: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;width:100%}`)],wi);var ki,xi=wi;let Ci=ki=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=zt(),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(),ki.routerInstances.add(this),"field"!==this.type&&(new MutationObserver(this.collectSlottedRoutes).observe(this,{attributeFilter:["slot"],attributes:!0,subtree:!0}),this.collectSlottedRoutes())}disconnectedCallback(){super.disconnectedCallback(),ki.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.dispatchEvent(new CustomEvent("change",{detail: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?zt(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)}};Ci.routerInstances=new Set,t([q()],Ci.prototype,"component",void 0),t([q()],Ci.prototype,"path",void 0),t([W()],Ci.prototype,"pathname",void 0),t([q()],Ci.prototype,"default",void 0),t([W()],Ci.prototype,"type",void 0),t([W({type:Boolean})],Ci.prototype,"cache",void 0),t([q()],Ci.prototype,"routes",null),Ci=ki=t([d("router"),c(y`:host{display:contents}`)],Ci);var Si=Ci;const Ai="auto";let Ei=class Link extends xi{constructor(){super(...arguments),this.type=Ai,this.suppress=!1,this.replace=!1,this.state={},this.handleState=()=>{switch(this.type){case Ai: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=[...Si.routerInstances];l||o===Ai&&!h.some((t=>t.search(location.pathname)))||(t.preventDefault(),Si.routerInstances.forEach((t=>{t.handlePopstate()})))}};t([W()],Ei.prototype,"type",void 0),t([W({type:Boolean})],Ei.prototype,"suppress",void 0),t([W({type:Boolean})],Ei.prototype,"replace",void 0),Ei=t([d("link")],Ei);var Ri=Ei;Ri.define();let Ti=class Progress extends GlobalStyle{constructor(){super(...arguments),this.max=1,this.min=0}render(){let t,o=20;return e(this.value)||(o=this.parsePercent(this.value),o>100?o=100:o<0&&(o=0),t="static"),yt`<div part="root" ${Pt(this.observedRecord)} class="${t}"><i part="value" style="width:${o}%;"></i></div>`}parsePercent(t="0"){if((t=String(t)).includes("%"))return parseFloat(t);const e=this.max-this.min;return 0===e?100:parseFloat(t)/e*100}};t([W({type:Number})],Ti.prototype,"max",void 0),t([W({type:Number})],Ti.prototype,"min",void 0),t([W({type:Number})],Ti.prototype,"value",void 0),Ti=t([d("progress"),c(y`:host{background:var(${re.passive});border-radius:.25em;color:var(${re.active});height:.5em;width:100%}:host,[part=root]{display:block}[part=root]{border-radius:inherit;height:inherit;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}`)],Ti);var Mi=Ti;Mi.define();const Pi="range",Ii=oe(Pi);let Ni=class Range extends gi{constructor(){super(...arguments),this.min=0,this.max=100,this.vertical=!1,this.__focusStack=[]}get reverse(){return!!this.range&&this.value[0]>this.value[1]}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}render(){const t=this.padValue(2),e=Math.min(...t),o=Math.max(...t),s=this.max-this.min;return yt`<div part="root" ${Pt(this.observedRecord)} @mousedown="${this.disabled?null:this._handleMousedownRoot}" style="${Bt({"--from":(e-this.min)/s*100+"%","--to":(o-this.min)/s*100+"%",...this.range?Object.fromEntries(t.map(((t,e)=>[`--handle-${e}`,(t-this.min)/s*100+"%"]))):{}})}"><div part="track"></div>${Vt(this.rangeValue.length,(t=>this._renderHandle(t)))}</div>`}_renderHandle(t){const{range:e}=this,o=!e||t===this.value.length-1;return yt`<i tabindex="0" part="handle" class="${Ot({"last-focus":this.lastFocus===t})}" @mousedown="${this.disabled?null:this.createMouseDown(t)}" @focus="${this.disabled?null:()=>this.focusHandle(t)}" @blur="${this.disabled?null:this.blurHandle}" style="z-index:${this.__focusStack.indexOf(t)+1};--handle:var(--${!e&&o?"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))),this.dispatchEvent(new CustomEvent("focus",{detail:t}))}blurHandle(){this.lastFocus=void 0,this.__keydownEvent=this.events.remove(document,"keydown",this.__keydownEvent),this.dispatchEvent(new CustomEvent("blur"))}createKeydownEvent(t){return this.range||(t=0),e=>{"ArrowLeft"===e.key||"ArrowDown"===e.key?(e.preventDefault(),this.createSetValue(t)((t=>t-this.step))):"ArrowRight"!==e.key&&"ArrowUp"!==e.key||(e.preventDefault(),this.createSetValue(t)((t=>t+this.step)))}}createMouseDown(t){return e=>{this.focusHandle(t),this.createMousedownListener(this.createSetValue(t))(e)}}createSetValue(t){return e=>{const o="number"==typeof e?this.normalizeValue(e):e(this.rangeValue[t]);let s=o;this.range&&(s=[...this.rangeValue],s[t]=o),this.value=s,this.dispatchEvent(new CustomEvent("range",{detail:this.value}))}}_computeValue(t){const e=this._root.getBoundingClientRect(),o=this.vertical?(t.clientY-e.top)/e.height:(t.clientX-e.left)/e.width,s=Math.round(o*(this.max-this.min)/this.step)*this.step;return this.normalizeValue(s)}normalizeValue(t){return t>this.max?t-=this.step:t<this.min&&(t+=this.step),t}_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.max||o<this.min||t?.call(this,o)}}_connectedInit(){const t=this.max-this.min;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([W({type:Number})],Ni.prototype,"min",void 0),t([W({type:Number})],Ni.prototype,"max",void 0),t([W({type:Number})],Ni.prototype,"step",void 0),t([W({type:Boolean,reflect:!0})],Ni.prototype,"vertical",void 0),t([W({type:Array})],Ni.prototype,"value",void 0),t([W({type:Array})],Ni.prototype,"default",void 0),t([K("root")],Ni.prototype,"_root",void 0),t([function(t){return(e,o)=>Y(e,o,{get(){return(this.renderRoot??(Z??=document.createDocumentFragment())).querySelectorAll(t)}})}("[part=handle]")],Ni.prototype,"_handles",void 0),t([q()],Ni.prototype,"lastFocus",void 0),Ni=t([d(Pi),c(y`:host{${Ii}--handle-active:var(${re.active});${Ii}--track-width:.5em;${Ii}--length:var(${re.input}-width);background:var(${re.input}-background);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;width:100%;--from:0%;--to:50%;height:var(${Ii}--track-width)}[part=root],[part=track]{border-radius:inherit;min-height:inherit}[part=track]{background:var(${re.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(${re.active});border:.1em solid;border-color:var(${re.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}`,y`[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%}`,y`[part=handle]{left:var(--handle);top:0}[vertical] [part=handle]{left:0;top:var(--handle)}`)],Ni);var Oi=Ni;Oi.define();const zi="rotate",Di=oe(zi);let Hi=class Rotate extends GlobalStyle{render(){return yt`<div part="root"><div part="slot" @mousemove="${this._handleRotate}">${zt()}</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([K("root")],Hi.prototype,"_root",void 0),Hi=t([d(zi),c(y`: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}`)],Hi);var Bi=Hi;function Ui(t,e){return t&&e&&t.toLowerCase().includes(e.toLowerCase())}function ji(t,e){if(t){const o="checked";e?t.setAttribute(o,""):t.removeAttribute(o)}}Bi.define(),Si.define();let Li=class Select extends $i{constructor(){super(...arguments),this.multiple=!1,this.visible=!1,this.autoDirection="bottom",this.__store=[]}render(){return yt`<div part="root" ${Pt({...this.observedRecord,direction:this.direction||this.autoDirection})} class="input-field">${[this._renderPrefix(),yt`<input part="input" type="${this.type}" .value="${this.text}" ?autofocus="${this.autofocus}" ?disabled="${this.disabled}" autocapitalize="${this.autocapitalize||_t}" autocomplete="${this.autocomplete||_t}" placeholder="${this.placeholder||_t}" id="${this.makeId}" @focus="${this._handleFocus}" @input="${this._handleInput}">`,yt`<label for="${this.makeId}" part="suffix"><i part="icon">${Ge()}</i></label>`,yt`<label for="${this.makeId}" part="content">${zt()}</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||ji(this.lastChecked,0),ji(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=>{ji(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=>ji(t,0))),this.defaultChecked.forEach((t=>ji(t,1)))}select(t,e){e||=t;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.dispatchEvent(new CustomEvent("select",{detail:this.value,composed:!0})),this.filter(),o}filter(t){t=t?.trim(),[...this.children].forEach((e=>{this.filterCallback(e,!t||Ui(this.optionValue(e),t)||Ui(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.dispatchEvent(new CustomEvent("input",{detail:this.value,composed:!0,bubbles:!0})),this.dispatchEvent(new CustomEvent("change",{detail:this.value,composed:!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([W()],Li.prototype,"text",void 0),t([K("content")],Li.prototype,"_content",void 0),t([W()],Li.prototype,"direction",void 0),t([W({type:Boolean})],Li.prototype,"multiple",void 0),t([W({type:Boolean})],Li.prototype,"visible",void 0),t([q()],Li.prototype,"autoDirection",void 0),Li=t([d("select"),c(y`[part=input]{text-overflow:ellipsis}[part=content]{position:absolute;visibility:hidden;width:100%}[direction=bottom] [part=content]{top:100%}[direction=top] [part=content]{bottom:100%}[visible] [part=content]{visibility:visible}`)],Li);var Vi=Li;Vi.define();var Gi=Lt("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 Fi="skeleton",Wi=oe(Fi);let qi=class Skeleton extends GlobalStyle{constructor(){super(...arguments),this.animation="position",this.loading=!0}render(){return this.loading?yt`<div part="root" ${Pt(this.observedRecord)}>${"image"===this.type?Gi():""} ${zt("loading")}</div>`:zt()}};t([W()],qi.prototype,"type",void 0),t([W()],qi.prototype,"animation",void 0),t([q()],qi.prototype,"loading",void 0),qi=t([d(Fi),c(y`:host{${Wi}--from:var(${re._colors.darkgray[9]});${Wi}--to:var(${re._colors.darkgray[7]});${Wi}--deg:95deg;${Wi}--duration:1.5s;${Wi}--icon-size:5em;${Wi}--icon-margin:.25em;background:var(${Wi}--from);color:var(${re._colors.darkgray[5]});display:block;flex-shrink:0;min-height:1.5em;overflow:hidden;width:100%}[part=root]{animation:var(${Wi}--duration) ease-in-out 0s infinite none running;height:100%;min-height:inherit;text-align:center}svg{--size:var(${Wi}--icon-size);font-size:var(--size);margin:calc(var(--size)*.05)}[animation=position]{animation-name:po;background-color:transparent;background-image:linear-gradient(var(${Wi}--deg),var(${Wi}--from) 36%,var(${Wi}--to) 50%,var(${Wi}--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}}`)],qi);var Yi=qi;Yi.define();const Xi="split",Zi=oe(Xi);let Ki=class Split extends gi{constructor(){super(...arguments),this.len=6,this.index=-1,this.current=-1,this.currentValue=[]}render(){return yt`<div part="root" ${Pt(this.observedRecord)}>${Vt(this.len,(t=>yt`<span part="input-box" class="${Ot({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}" .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.dispatchEvent(new CustomEvent("input",{detail:this.value,composed:!0,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(),this.dispatchEvent(new CustomEvent("focus",{detail:t,bubbles:!0,composed:!0}))}blur(){this._input.blur(),this.current=-1,super.blur(),this.dispatchEvent(new CustomEvent("blur",{bubbles:!0,composed:!0}))}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([W({type:Number})],Ki.prototype,"len",void 0),t([W({type:Number})],Ki.prototype,"index",void 0),t([q()],Ki.prototype,"current",void 0),t([q()],Ki.prototype,"currentValue",void 0),Ki=t([d(Xi),c(y`:host{border-radius:1px;color:var(${re.foreground});display:block;width:-moz-fit-content;width:fit-content;${Zi}--size:1.45em;${Zi}--gap:.25em}:host([contents]) [part=root]{width:-moz-fit-content;width:fit-content}[part=root]{display:flex;gap:var(${Zi}--gap);justify-content:space-between;position:relative;width:100%}[part=input-box],[part=root]{border-radius:inherit;vertical-align:top}[part=input-box]{background-color:var(${re.input}-background);height:var(${Zi}--size);text-align:center;width:var(${Zi}--size)}[part=input]{background:none;height:100%;opacity:0;position:absolute;width:100%;z-index:-1}.focus{box-shadow:var(${re.input}-box-shadow)}`)],Ki);var Qi=Ki;Qi.define();const Ji="switch",to=oe(Ji);let eo=class Switch extends gi{constructor(){super(...arguments),this.round=!1,this.checked=!1,this.disabled=!1,this.default="false",this.value="on"}render(){return yt`<div part="root" ${Pt(this.observedRecord)} class="${this.round?"round":"rect"}"><input part="input" type="checkbox" ?disabled="${this.disabled}" ?checked="${this.checked}" name="${this.name}" id="${this.makeId}" @change="${this._handleChange}"> <span part="handle" class="${this.checked}"></span></div>`}reset(){this.checked="true"===this.default,this._input.checked=this.checked}connectedCallback(){super.connectedCallback(),this.checked&&(this.default="true"),"true"===this.default&&(this.checked=!0)}_handleChange(){this.checked=this._input.checked,this.dispatchEvent(new CustomEvent("change",{detail:this.checked,composed:!0}))}namevalue(){return[this.name,this.checked]}};t([W({type:Boolean,reflect:!0})],eo.prototype,"round",void 0),t([W({type:Boolean,reflect:!0})],eo.prototype,"checked",void 0),t([W({type:Boolean,reflect:!0})],eo.prototype,"disabled",void 0),t([W()],eo.prototype,"default",void 0),t([W()],eo.prototype,"value",void 0),t([X("input")],eo.prototype,"_input",void 0),eo=t([d(Ji),c(y`:host,:host([contents]) [part=root]{display:inline-block;height:var(${to}-height);width:var(${to}-width)}:host{${to}-width:3em;${to}-height:calc(var(${to}-width)/2);${to}-handle-size:1.25em;${to}-handle-space:.125em;${to}-transition:.2s ease-in-out;background:var(${re.input}-background);border-radius:0;vertical-align:bottom}[part=handle],[part=root]{transition:var(${to}-transition)}[part=root]{border-radius:inherit;height:inherit;position:relative}[part=input]{-webkit-appearance:none;appearance:none;height:100%;opacity:0;width:100%}[part=handle]{align-items:center;border-radius:inherit;display:inline-flex;height:100%;justify-content:center;left:0;pointer-events:none;position:absolute;width:50%}:host([round]){background:var(${re.passive});border-radius:calc(var(${to}-height)/2)}:host([checked]) [part=handle]{left:50%}.rect .true{background:var(${re.active})}.rect .false{background:var(${re.passive})}.round [part=handle]{--size:var(${to}-handle-size);background:var(--godown--input-control);border-radius:100%;height:var(--size);margin:var(${to}-handle-space);width:var(--size)}:host([checked]) .round{background:var(${re.active})}`)],eo);var io=eo;io.define();const oo="text",ro=oe(oo);let so=class Text extends GlobalStyle{constructor(){super(...arguments),this.underline="none",this.clip=!1}render(){return yt`<span part="root" ${Pt(this.observedRecord)} class="${Ot(this.underline)}">${zt()}</span>`}};t([W()],so.prototype,"underline",void 0),t([W({type:Boolean})],so.prototype,"clip",void 0),so=t([d(oo),c(y`:host{${ro}--color:currentColor;${ro}--color-hover:currentColor;${ro}--color-active:currentColor;display:inline-block;overflow-wrap:break-word;text-overflow:ellipsis}[part=root]{color:var(${ro}--color);display:inline-block;overflow:hidden;overflow-wrap:inherit;text-overflow:inherit;vertical-align:bottom;white-space:nowrap;width:100%}[part=root]:hover{color:var(${ro}--color-hover,var(${ro}--color))}[part=root]:active{color:var(${ro}--color-active,var(${ro}--color))}.active:active,.always,.hover:hover{text-decoration:underline}.none{text-decoration:none}[clip]{background:var(${re.clipBackground});color:transparent;display:inline-block;-webkit-text-fill-color:transparent;background-clip:text;-webkit-background-clip:text}`)],so);var no=so;function ao(t,e=2){return t.toString().padStart(e,"0").split("")}no.define();let lo=class Time extends GlobalStyle{constructor(){super(...arguments),this.escape="%",this.format="YYYY-MM-DD hh:mm:ss",this.time=new Date}render(){return yt`<span part="root" ${Pt(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:ao(e.getMonth()+1),D:ao(e.getDate()),h:ao(e.getHours()),m:ao(e.getMinutes()),s:ao(e.getSeconds()),S:ao(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>`}firstUpdated(){this.timeout&&(this.timeoutId=this.startTimeout())}updated(t){t.has("timeout")&&this.timeout&&(clearInterval(this.timeoutId),this.timeoutId=this.startTimeout())}disconnectedCallback(){clearInterval(this.timeoutId),this.timeoutId=void 0}startTimeout(){return setInterval((()=>{this.dispatchEvent(new CustomEvent("time",{detail:this.time,composed:!0})),this.time=new Date(this.time.getTime()+(this.gap||this.timeout))}),Math.abs(this.timeout))}};t([W()],lo.prototype,"escape",void 0),t([W()],lo.prototype,"format",void 0),t([W({type:Object})],lo.prototype,"time",void 0),t([W({type:Number})],lo.prototype,"timeout",void 0),t([W({type:Number})],lo.prototype,"gap",void 0),lo=t([d("time"),c(y`:host{text-align:center}`)],lo);var ho,co=lo;co.define();const po="tooltip",uo=oe(po);let vo=ho=class Tooltip extends SuperOpenable{constructor(){super(...arguments),this.direction="top",this.align="center",this.propagation=!1,this.type="hover"}render(){const t=ho.aligns[this.align]||"inherit",e="focus"===this.type;return yt`<div part="root" ${Pt(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}">${zt()}<div part="tip">${this.tip?yt`<span class="passive">${this.tip}</span>`:zt("tip")}</div></div>`}};vo.aligns={start:"flex-start",end:"flex-end",center:"center","flex-start":"flex-start","flex-end":"flex-end"},t([W()],vo.prototype,"tip",void 0),t([W()],vo.prototype,"direction",void 0),t([W()],vo.prototype,"align",void 0),t([W({type:Boolean})],vo.prototype,"propagation",void 0),t([W()],vo.prototype,"type",void 0),vo=ho=t([d(po),c(y`:host{${uo}--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(${uo}--tip-background)}[propagation] [part=tip]{pointer-events:none}`,y`[direction^=top] [part=tip]{bottom:100%}[direction^=bottom] [part=tip]{top:100%}[direction$=right] [part=tip]{left:100%}[direction$=left] [part=tip]{right:100%}`)],vo);var mo=vo;mo.define();const fo="typewriter",go=oe(fo);let yo=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 yt`<div part="root" ${Pt(this.observedRecord)}>${zt()} ${this.contentInternal} <i part="cursor" ?hidden="${this.ended}"></i></div>`}firstUpdated(){this.content||=this._slot?.assignedNodes()[0]?.textContent.trim()||"",!this.ended&&this.len&&this.write()}updated(t){t.has("index")&&this.dispatchEvent(new CustomEvent(this.index===this.len?"done":"write",{detail:this.contentInternal}))}write(t=this.index){this.contentInternal=this.content.slice(0,t+1);const e=this.delay||((t=0,e=1)=>{const o=Math.max(t,e),s=Math.min(t,e);return Math.random()*(o-s)+s})(this.max,this.min);this.timeoutID=setTimeout((()=>{const e=t+1;e<=this.len&&(this.index=e,this.write())}),e)}stop(){clearTimeout(this.timeoutID)}end(){this.ended=!0}};t([W()],yo.prototype,"content",void 0),t([W({type:Boolean})],yo.prototype,"ended",void 0),t([W({type:Number})],yo.prototype,"max",void 0),t([W({type:Number})],yo.prototype,"min",void 0),t([W({type:Number})],yo.prototype,"delay",void 0),t([W({type:Number})],yo.prototype,"index",void 0),t([q()],yo.prototype,"contentInternal",void 0),t([X("i")],yo.prototype,"_i",void 0),yo=t([d(fo),c(y`:host{${go}--cursor-width:.05em}:host,:host([contents]) [part=root]{display:inline-block}i{animation:s 1.5s steps(1) infinite;border-right:var(${go}--cursor-width) solid;margin-left:.02em}@keyframes s{0%{border-color:currentColor}50%{border-color:transparent}}slot{display:none}`)],yo);var $o=yo;$o.define();export{fe as Alert,be as Avatar,xe as Badge,Ee as Breath,Oe as Button,Be as Card,Ve as Carousel,Ye as Details,Qe as Dialog,ti as Divider,ii as Dragbox,si as Flex,ai as Form,ci as Grid,pi as Heading,$i as Input,_i as Layout,Ri as Link,Mi as Progress,Oi as Range,Bi as Rotate,Si as Router,Vi as Select,Yi as Skeleton,Qi as Split,io as Switch,no as Text,co as Time,mo as Tooltip,$o as Typewriter};
59
59
  //# sourceMappingURL=godown+lit.js.map