godown 3.5.1 → 3.5.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +0 -4
- package/build/godown+lit.iife.js +3 -3
- package/build/godown+lit.iife.js.map +1 -1
- package/build/godown+lit.js +3 -3
- package/build/godown+lit.js.map +1 -1
- package/build/godown+lit.umd.js +3 -3
- package/build/godown+lit.umd.js.map +1 -1
- package/build/godown.iife.js +4 -4
- package/build/godown.js +4 -4
- package/build/godown.js.map +1 -1
- package/build/godown.umd.js +4 -4
- package/build/godown.umd.js.map +1 -1
- package/components/breath.js +1 -1
- package/components/breath.js.map +1 -1
- package/components/button.d.ts +1 -1
- package/components/button.d.ts.map +1 -1
- package/components/button.js +1 -1
- package/components/button.js.map +1 -1
- package/components/carousel.d.ts +1 -0
- package/components/carousel.d.ts.map +1 -1
- package/components/carousel.js +1 -1
- package/components/carousel.js.map +1 -1
- package/components/input.js +1 -1
- package/components/input.js.map +1 -1
- package/components/range.d.ts.map +1 -1
- package/components/range.js +1 -1
- package/components/range.js.map +1 -1
- package/components/select.d.ts.map +1 -1
- package/components/select.js +1 -1
- package/components/select.js.map +1 -1
- package/core/super-input.d.ts +1 -0
- package/core/super-input.d.ts.map +1 -1
- package/core/super-input.js +1 -1
- package/core/super-input.js.map +1 -1
- package/custom-elements.json +1 -1
- package/package.json +1 -1
- package/src/components/breath.ts +1 -1
- package/src/components/button.ts +8 -9
- package/src/components/carousel.ts +15 -6
- package/src/components/input.ts +1 -0
- package/src/components/range.ts +1 -0
- package/src/components/select.ts +1 -1
- package/src/core/super-input.ts +3 -7
- package/web-types.json +1 -1
package/README.md
CHANGED
package/build/godown+lit.iife.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
var Godown=function(t){"use strict";
|
2
2
|
/**
|
3
3
|
* @license MIT
|
4
|
-
* @version 3.5.
|
4
|
+
* @version 3.5.3
|
5
5
|
*/function e(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 o=t=>null==t,s=(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)},a=(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)},l=(t,e)=>s(a(t,e),e),h=(t,...e)=>Object.keys(t).reduce(((o,s)=>(e.includes(s)||(o[s]=t[s]),o)),{}),c=(t,e,o)=>t.startsWith(e)&&t.endsWith(o);function*d(t){for(const[e,o]of Array.isArray(t)?t:Object.entries(t))yield[e,o]}const p="-";const u=(...t)=>e=>{const o=[];for(let t=Object.getPrototypeOf(e);t.styles;t=Object.getPrototypeOf(t))o.push(t.styles);e.styles=[...o,...t]},v=(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&&u(e)(a),o&&!s.get(t)&&s.define(t,a)})({tagName:o.godownConfig.tag(t),...e})(o)}
|
6
6
|
/**
|
7
7
|
* @license
|
@@ -43,7 +43,7 @@ const q={attribute:!0,type:String,converter:V,reflect:!1,hasChanged:G},Y=(t=q,e,
|
|
43
43
|
* @license
|
44
44
|
* Copyright 2017 Google LLC
|
45
45
|
* SPDX-License-Identifier: BSD-3-Clause
|
46
|
-
*/,et=globalThis,it=et.trustedTypes,ot=it?it.createPolicy("lit-html",{createHTML:t=>t}):void 0,rt="$lit$",st=`lit$${Math.random().toFixed(9).slice(2)}$`,nt="?"+st,at=`<${nt}>`,lt=document,ht=()=>lt.createComment(""),ct=t=>null===t||"object"!=typeof t&&"function"!=typeof t,dt=Array.isArray,pt="[ \t\n\f\r]",ut=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,vt=/-->/g,ft=/>/g,mt=RegExp(`>|${pt}(?:([^\\s"'>=/]+)(${pt}*=${pt}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),gt=/'/g,yt=/"/g,$t=/^(?:script|style|textarea|title)$/i,bt=t=>(e,...o)=>({_$litType$:t,strings:e,values:o}),_t=bt(1),wt=bt(2),xt=Symbol.for("lit-noChange"),kt=Symbol.for("lit-nothing"),Ct=new WeakMap,St=lt.createTreeWalker(lt,129);function At(t,e){if(!dt(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==ot?ot.createHTML(e):e}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=ut;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===ut?"!--"===d[1]?h=vt:void 0!==d[1]?h=ft:void 0!==d[2]?($t.test(d[2])&&(a=RegExp("</"+d[2],"g")),h=mt):void 0!==d[3]&&(h=mt):h===mt?">"===d[0]?(h=a??ut,p=-1):void 0===d[1]?p=-2:(p=h.lastIndex-d[2].length,c=d[1],h=void 0===d[3]?mt:'"'===d[3]?yt:gt):h===yt||h===gt?h=mt:h===vt||h===ft?h=ut:(h=mt,a=void 0);const v=h===mt&&t[e+1].startsWith("/>")?" ":"";l+=h===ut?o+at:p>=0?(s.push(c),o.slice(0,p)+rt+o.slice(p)+st+v):o+st+(-2===p?e:v)}return[At(t,l+(t[o]||"<?>")+(2===e?"</svg>":3===e?"</math>":"")),s]})(t,e);if(this.el=N.createElement(d,o),St.currentNode=this.el.content,2===e||3===e){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(s=St.nextNode())&&c.length<h;){if(1===s.nodeType){if(s.hasAttributes())for(const t of s.getAttributeNames())if(t.endsWith(rt)){const e=p[l++],o=s.getAttribute(t).split(st),h=/([.?@])?(.*)/.exec(e);c.push({type:1,index:a,name:h[2],strings:o,ctor:"."===h[1]?H:"?"===h[1]?I:"@"===h[1]?L:
|
46
|
+
*/,et=globalThis,it=et.trustedTypes,ot=it?it.createPolicy("lit-html",{createHTML:t=>t}):void 0,rt="$lit$",st=`lit$${Math.random().toFixed(9).slice(2)}$`,nt="?"+st,at=`<${nt}>`,lt=document,ht=()=>lt.createComment(""),ct=t=>null===t||"object"!=typeof t&&"function"!=typeof t,dt=Array.isArray,pt="[ \t\n\f\r]",ut=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,vt=/-->/g,ft=/>/g,mt=RegExp(`>|${pt}(?:([^\\s"'>=/]+)(${pt}*=${pt}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),gt=/'/g,yt=/"/g,$t=/^(?:script|style|textarea|title)$/i,bt=t=>(e,...o)=>({_$litType$:t,strings:e,values:o}),_t=bt(1),wt=bt(2),xt=Symbol.for("lit-noChange"),kt=Symbol.for("lit-nothing"),Ct=new WeakMap,St=lt.createTreeWalker(lt,129);function At(t,e){if(!dt(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==ot?ot.createHTML(e):e}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=ut;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===ut?"!--"===d[1]?h=vt:void 0!==d[1]?h=ft:void 0!==d[2]?($t.test(d[2])&&(a=RegExp("</"+d[2],"g")),h=mt):void 0!==d[3]&&(h=mt):h===mt?">"===d[0]?(h=a??ut,p=-1):void 0===d[1]?p=-2:(p=h.lastIndex-d[2].length,c=d[1],h=void 0===d[3]?mt:'"'===d[3]?yt:gt):h===yt||h===gt?h=mt:h===vt||h===ft?h=ut:(h=mt,a=void 0);const v=h===mt&&t[e+1].startsWith("/>")?" ":"";l+=h===ut?o+at:p>=0?(s.push(c),o.slice(0,p)+rt+o.slice(p)+st+v):o+st+(-2===p?e:v)}return[At(t,l+(t[o]||"<?>")+(2===e?"</svg>":3===e?"</math>":"")),s]})(t,e);if(this.el=N.createElement(d,o),St.currentNode=this.el.content,2===e||3===e){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(s=St.nextNode())&&c.length<h;){if(1===s.nodeType){if(s.hasAttributes())for(const t of s.getAttributeNames())if(t.endsWith(rt)){const e=p[l++],o=s.getAttribute(t).split(st),h=/([.?@])?(.*)/.exec(e);c.push({type:1,index:a,name:h[2],strings:o,ctor:"."===h[1]?H:"?"===h[1]?I:"@"===h[1]?L:Et}),s.removeAttribute(t)}else t.startsWith(st)&&(c.push({type:6,index:a}),s.removeAttribute(t));if($t.test(s.tagName)){const t=s.textContent.split(st),e=t.length-1;if(e>0){s.textContent=it?it.emptyScript:"";for(let o=0;o<e;o++)s.append(t[o],ht()),St.nextNode(),c.push({type:2,index:++a});s.append(t[e],ht())}}}else if(8===s.nodeType)if(s.data===nt)c.push({type:2,index:a});else{let t=-1;for(;-1!==(t=s.data.indexOf(st,t+1));)c.push({type:7,index:a}),t+=st.length-1}a++}}static createElement(t,e){const o=lt.createElement("template");return o.innerHTML=t,o}}function Rt(t,e,o=t,s){if(e===xt)return e;let a=void 0!==s?o._$Co?.[s]:o._$Cl;const l=ct(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=Rt(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??lt).importNode(e,!0);St.currentNode=s;let a=St.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=St.nextNode(),l++)}return St.currentNode=lt,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=kt,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=Rt(this,t,e),ct(t)?t===kt||null==t||""===t?(this._$AH!==kt&&this._$AR(),this._$AH=kt):t!==this._$AH&&t!==xt&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):(t=>dt(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!==kt&&ct(this._$AH)?this._$AA.nextSibling.data=t:this.T(lt.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=N.createElement(At(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=Ct.get(t.strings);return void 0===e&&Ct.set(t.strings,e=new N(t)),e}k(t){dt(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(ht()),this.O(ht()),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))}}let Et=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=kt,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=kt}_$AI(t,e=this,o,s){const a=this.strings;let l=!1;if(void 0===a)t=Rt(this,t,e,0),l=!ct(t)||t!==this._$AH&&t!==xt,l&&(this._$AH=t);else{const s=t;let h,c;for(t=a[0],h=0;h<a.length-1;h++)c=Rt(this,s[o+h],e,h),c===xt&&(c=this._$AH[h]),l||=!ct(c)||c!==this._$AH[h],c===kt?t=kt:t!==kt&&(t+=(c??"")+a[h+1]),this._$AH[h]=c}l&&!s&&this.j(t)}j(t){t===kt?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}};class H extends Et{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===kt?void 0:t}}class I extends Et{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==kt)}}class L extends Et{constructor(t,e,o,s,a){super(t,e,o,s,a),this.type=5}_$AI(t,e=this){if((t=Rt(this,t,e,0)??kt)===xt)return;const o=this._$AH,s=t===kt&&o!==kt||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,a=t!==kt&&(o===kt||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){Rt(this,t)}}const Tt=et.litHtmlPolyfillSupport;Tt?.(N,R),(et.litHtmlVersions??=[]).push("3.2.1");
|
47
47
|
/**
|
48
48
|
* @license
|
49
49
|
* Copyright 2017 Google LLC
|
@@ -55,5 +55,5 @@ let Mt=class r extends W{constructor(){super(...arguments),this.renderOptions={h
|
|
55
55
|
* Copyright 2017 Google LLC
|
56
56
|
* SPDX-License-Identifier: BSD-3-Clause
|
57
57
|
*/
|
58
|
-
const Nt=6;let zt=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 Ot=(t,e,s)=>{o(s)||!1===s?t.removeAttribute(e):(!0===s||"string"==typeof s||"number"==typeof s&&!isNaN(s))&&t.setAttribute(e,!0===s?"":String(s))};const It=(t=>(...e)=>({_$litDirective$:t,values:e}))(class AttrDirective extends zt{render(t,e){}update(t,[e,o]){if(e&&t.type===Nt)for(const s in e)(o||Ot)(t.element,s,e[s]);return xt}}),Dt=((t,e)=>o=>t({...e,...o}))(It,{width:"1em",height:"1em",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"}),Ht=(t,e)=>_t`<slot name="${t||kt}" @slotchange=${null}></slot>`;function Bt(t,e,s,a){const l={};return Object.keys(e).forEach(((h,c)=>{const d=t.reduce(((t,s,l)=>{let c=e[h][l];return c=a?a(c,l):c,o(c)||t.push(`${s}:${c}`),t}),[]);l[h]=`${s?s(h,c):h}{${d.join(";")}}`})),l}function Ut(t){let e="";for(const[o,s]of d(t))if(s){const t="object"!=typeof s?s:jt(s);t&&(e+=`${o}{${t}}`)}return e}function jt(t){let e="";for(const[o,s]of d(t))o&&(s||0===s||""===s)&&(e+=`${o}:${s};`);return e}function Lt(t,e){return t?`var(${t})`:""}const Vt=(t,e)=>{if(!t)return kt;const o="string"==typeof t?t:Ut(t);return o?_t`<style media="${kt}">${o}</style>`:kt},Gt=t=>(e,...o)=>{const s=wt(e,o),a=t,l=t=>_t`<svg viewBox="${a}" ${Dt(t)}>${s}</svg>`;return l.body=s,l.viewBox=a,l};function*Ft(t,e,o){for(let o=0;o<t;o++)yield e(o)}const Wt=(t,e,o=" ")=>t?t+(e?o+e:""):e,qt=(...t)=>t.reduce(((t,e)=>{if(!e)return t;if(Array.isArray(e))return Wt(t,qt(...e));if("object"==typeof e){for(const o in e)e[o]&&(t=Wt(t,o));return t}return Wt(t,e)}),"");function Yt(t,e=document.body){if(!e||!t)return[];const o=new Set;e instanceof Element&&e.shadowRoot&&Yt(t,e.shadowRoot).forEach((t=>o.add(t))),e.querySelectorAll(t).forEach((t=>o.add(t)));for(const s of e.children)Yt(t,s).forEach((t=>o.add(t)));return Array.from(o)}function Xt(t,e=document.body){if(!e||!t)return null;let o;if(e instanceof Element&&e.shadowRoot&&(o=Xt(t,e.shadowRoot),o))return o;if(o=e.querySelector(t),o)return o;for(const s of e.children)if(o=Xt(t,s),o)return o;return null}class Events{constructor(){this.inner=new Map}add(t,e,o,s){if(!t||!o)return;const a=this.inner.get(e)||new Map,l=a.get(t)||new Set;return l.add(o),a.set(t,l),this.inner.set(e,a),t.addEventListener(e,o,s),o}remove(t,e,o,s){if(!t||!o)return;const a=this.inner.get(e);if(a){const s=a.get(t);s&&(s.delete(o),s.size||(a.delete(t),a.size||this.inner.delete(e)))}t.removeEventListener(e,o,s)}removeAll(){this.inner.forEach(((t,e)=>{t.forEach(((t,o)=>{t.forEach((t=>{o.removeEventListener(e,t)}))})),t.clear()})),this.inner.clear()}}class Observers{constructor(){this.inner=new Map}add(t,e,o,s){const[a,l]=((t,e,o)=>{let s,a;switch(t){case MutationObserver:case ResizeObserver:s=new t(e),a=t=>s.observe(t,o);break;case IntersectionObserver:s=new t(e,o),a=t=>s.observe(t);break;case PerformanceObserver:s=new t(e),a=()=>s.observe(o)}return[s,a]})(e,o,s);if(a)return this.inner.set(a,(this.inner.get(a)||new Set).add(t)),l(t),a}remove(t,e){t.disconnect();const o=this.inner.get(t);"unobserve"in t?(e?(t.unobserve(e),o?.delete(e)):(o?.forEach((e=>{t.unobserve(e)})),o?.clear()),o&&!o.size&&this.inner.delete(t)):o&&this.inner.delete(t)}removeAll(){this.inner.forEach(((t,e)=>{this.remove(e)}))}}class Ranger{constructor(t,e,o){this.max=Math.max(t,e),this.min=Math.min(t,e),this.diff=this.max-this.min,this.step=o}present(t){return this.normalize(t*this.diff)}normalize(t){return t=this.restrict(t),this.step?this.min+Math.round((t-this.min)/this.step)*this.step:t}restrict(t){return this.max<=t?this.max:this.min>=t?this.min:t}}class RouteTree{constructor(){this.matchType=RouteTree.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))}sort(){const{children:t}=this;if(t.length){t.sort(((t,e)=>t.matchType-e.matchType));for(const e of t)e.sort()}this.sorted=!0}static parseParams(t,e){const o=RouteTree.split(t),s=RouteTree.split(e),a={};for(let t=0;t<s.length;t++){const e=s[t],{key:l,matchType:h}=RouteTree.dynamic(e);if(h===RouteTree.matchType.single)a[l]=o[t];else if(h===RouteTree.matchType.multi){a[l]=o.slice(t).join("/");break}}return a}static dynamic(t){if(t){if(c(t,"{","}")||c(t,"[","]")){t=t.slice(1,-1);const e=RouteTree.dynamic(t);return e.matchType||=RouteTree.matchType.single,e}if(t.startsWith(":"))return{key:t.slice(1),matchType:RouteTree.matchType.single};if(t.startsWith("*"))return{key:t.slice(1),matchType:RouteTree.matchType.multi};if(t.startsWith("..."))return{key:t.slice(3),matchType:RouteTree.matchType.multi}}return{key:t,matchType:RouteTree.matchType.strict}}static join(...t){return t.map((t=>l(t,"/"))).join("/")}static split(t){return t.split("/").filter((t=>t))}}RouteTree.matchType={strict:0,single:1,multi:2};class Timeouts{constructor(){this.inner=new Set}add(t){if(void 0!==t)return t=+t,this.inner.has(t)&&clearTimeout(t),this.inner.add(t),t}remove(t){void 0!==t&&(t=+t,clearTimeout(t),this.inner.delete(t))}removeAll(){this.inner.forEach(clearTimeout),this.inner.clear()}}class GodownElement extends Mt{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(){const t={};for(const[e,o]of this.constructor.elementProperties.entries()){const s=o.attribute??e;s&&(t[!0===s?e:s]=this[e])}return t}get _slot(){return this.shadowRoot?this.shadowRoot.querySelector("slot:not([name])"):null}get _slotAll(){return this.shadowRoot?[...this.shadowRoot.querySelectorAll("slot")]:[]}get _slottedAll(){return[...this.querySelectorAll("[slot]")]}get _slottedNames(){return this._slottedAll.map((t=>t.getAttribute("slot"))).filter((t=>t))}getBoundingClientRect(){let t;return this.contents&&(t=this.contentsRoot||this.shadowRoot?.firstElementChild)&&t!==this?t.getBoundingClientRect():super.getBoundingClientRect()}getClientRects(){let t;return this.contents&&(t=this.contentsRoot||this.shadowRoot?.firstElementChild)&&t!==this?t.getClientRects():super.getClientRects()}get stylex(){return this.__stylex.css}set stylex(t){t=t.trim(),/^[\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.observers=new Observers,this.timeouts=new Timeouts,this.__stylex={},this.assign={...GodownElement.godownConfig?.assign||{},...t}}connectedCallback(){super.connectedCallback(),this.assign&&(Object.assign(this,this.assign),this.assign=null);const{lazy:t}=this.__stylex;t&&(this.adoptStyles(t),this.__stylex.lazy="")}disconnectedCallback(){this.events.removeAll(),this.observers.removeAll(),this.timeouts.removeAll()}mount(t){this.firstUpdated(t)}unmount(){this.disconnectedCallback()}remount(t){this.unmount(),this.connectedCallback(),this.mount(t)}deepQuerySelector(t){return Xt(t,this)}deepQuerySelectorAll(t){return Yt(t,this)}adoptStyles(...t){if(!this.shadowRoot)return;const e=this.shadowRoot.adoptedStyleSheets;if(t.length){const o=new CSSStyleSheet;return t.forEach((t=>o.insertRule(t.toString()))),e.push(o),e.length-1}}dispatchCustomEvent(t,e,o){this.dispatchEvent(new CustomEvent(t,{detail:e,composed:!0,...o}))}}GodownElement.godownConfig=new class GodownConfig{constructor(t){this.assign=null,this.prefix="godown",this.suffix="",this.components=new Map,this.registry=customElements,t&&Object.assign(this,t)}tag(t){return l(s(this.prefix,p)+p+t+p+a(this.suffix,p),p)}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)}},e([X({type:Boolean,reflect:!0})],GodownElement.prototype,"contents",void 0),e([X({reflect:!0})],GodownElement.prototype,"stylex",null);var Zt=Gt("0 0 56 56")`<path fill="currentColor" d="M28 4c13.255 0 24 10.745 24 24S41.255 52 28 52S4 41.255 4 28S14.745 4 28 4m0 4C16.954 8 8 16.954 8 28s8.954 20 20 20s20-8.954 20-20S39.046 8 28 8m10.788 11.93c.67.67.67 1.756 0 2.425l-13.36 13.36a1.715 1.715 0 0 1-2.424 0l-5.645-5.646a1.714 1.714 0 0 1 2.425-2.424l3.22 3.22c.67.67 1.755.67 2.425 0l10.934-10.934c.67-.67 1.755-.67 2.425 0"/>`,Kt=Gt("0 0 56 56")`<path fill="currentColor" d="M28 51.906c13.055 0 23.906-10.828 23.906-23.906c0-13.055-10.875-23.906-23.93-23.906C14.899 4.094 4.095 14.945 4.095 28c0 13.078 10.828 23.906 23.906 23.906m0-3.984C16.937 47.922 8.1 39.062 8.1 28c0-11.04 8.813-19.922 19.876-19.922c11.039 0 19.921 8.883 19.945 19.922c.023 11.063-8.883 19.922-19.922 19.922m-.023-15.68c1.124 0 1.757-.633 1.78-1.851l.352-12.375c.024-1.196-.914-2.086-2.156-2.086c-1.266 0-2.156.867-2.133 2.062l.305 12.399c.023 1.195.68 1.851 1.852 1.851m0 7.617c1.335 0 2.53-1.078 2.53-2.437c0-1.383-1.171-2.438-2.53-2.438c-1.383 0-2.532 1.078-2.532 2.438c0 1.336 1.172 2.437 2.532 2.437"/>`,Qt=Gt("0 0 56 56")`<path fill="currentColor" d="M28 51.906c13.055 0 23.906-10.828 23.906-23.906c0-13.055-10.875-23.906-23.93-23.906C14.899 4.094 4.095 14.945 4.095 28c0 13.078 10.828 23.906 23.906 23.906m0-3.984C16.937 47.922 8.1 39.062 8.1 28c0-11.04 8.813-19.922 19.876-19.922c11.039 0 19.921 8.883 19.945 19.922c.023 11.063-8.883 19.922-19.922 19.922m-.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"/>`,Jt=Gt("0 0 56 56")`<path fill="currentColor" d="M19.504 43.152h16.969c.797 0 1.289-.492 1.289-1.289v-3.75c0-5.672 8.25-9.328 8.25-19.453C46.012 7.996 38.793.871 27.988.871s-18 7.125-18 17.79c0 10.124 8.227 13.78 8.227 19.452v3.75c0 .797.515 1.29 1.289 1.29m2.203-4.992c0-6.89-8.18-10.57-8.18-19.476c0-8.579 5.79-14.274 14.461-14.274c8.672 0 14.485 5.695 14.485 14.274c0 8.906-8.203 12.586-8.203 19.476v1.453H21.707Zm-1.336 11.32h15.235c1.195 0 2.156-.984 2.156-2.203s-.961-2.203-2.157-2.203H20.371c-1.195 0-2.156.985-2.156 2.203c0 1.22.96 2.203 2.156 2.203m7.617 5.649c3.235 0 5.508-1.477 5.742-3.75H22.246c.211 2.273 2.484 3.75 5.742 3.75"/>`,te=Gt("0 0 56 56")`<path fill="currentColor" d="M28 51.906c13.055 0 23.906-10.828 23.906-23.906c0-13.055-10.875-23.906-23.93-23.906C14.899 4.094 4.095 14.945 4.095 28c0 13.078 10.828 23.906 23.906 23.906m0-3.984C16.937 47.922 8.1 39.062 8.1 28c0-11.04 8.813-19.922 19.876-19.922c11.039 0 19.921 8.883 19.945 19.922c.023 11.063-8.883 19.922-19.922 19.922m-.492-15.07c1.172 0 1.898-.727 1.898-1.664v-.282c0-1.312.75-2.133 2.39-3.21c2.274-1.5 3.891-2.884 3.891-5.673c0-3.914-3.468-6-7.453-6c-4.031 0-6.68 1.899-7.312 4.055c-.117.399-.211.774-.211 1.172c0 1.031.844 1.617 1.617 1.617c1.336 0 1.547-.726 2.297-1.594c.773-1.289 1.898-2.062 3.469-2.062c2.133 0 3.515 1.195 3.515 3c0 1.594-.984 2.367-3.023 3.773c-1.688 1.172-2.953 2.414-2.953 4.711V31c0 1.242.68 1.852 1.875 1.852m-.047 7.007c1.36 0 2.531-1.078 2.531-2.437c0-1.383-1.148-2.438-2.531-2.438s-2.531 1.078-2.531 2.438c0 1.336 1.171 2.437 2.53 2.437"/>`,ee=Gt("0 0 56 56")`<path fill="currentColor" d="M28 51.906c13.055 0 23.906-10.828 23.906-23.906c0-13.055-10.875-23.906-23.93-23.906C14.899 4.094 4.095 14.945 4.095 28c0 13.078 10.828 23.906 23.906 23.906m0-3.984C16.937 47.922 8.1 39.062 8.1 28c0-11.04 8.813-19.922 19.876-19.922c11.039 0 19.921 8.883 19.945 19.922c.023 11.063-8.883 19.922-19.922 19.922m-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"/>`,ie=Gt("0 0 56 56")`<path fill="currentColor" d="M28 51.906c13.055 0 23.906-10.828 23.906-23.906c0-13.055-10.875-23.906-23.93-23.906C14.899 4.094 4.095 14.945 4.095 28c0 13.078 10.828 23.906 23.906 23.906m0-3.984C16.937 47.922 8.1 39.062 8.1 28c0-11.04 8.813-19.922 19.876-19.922c11.039 0 19.921 8.883 19.945 19.922c.023 11.063-8.883 19.922-19.922 19.922m-8.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"/>`,oe=Gt("0 0 56 56")`<path fill="currentColor" d="M10.023 43.023c-.796.797-.82 2.157 0 2.954c.82.796 2.157.796 2.977 0l15-15l15 15c.797.796 2.156.82 2.977 0c.796-.82.796-2.157 0-2.954L30.953 28l15.024-15c.796-.797.82-2.156 0-2.953c-.844-.82-2.18-.82-2.977 0l-15 15l-15-15c-.82-.82-2.18-.844-2.977 0c-.796.82-.796 2.156 0 2.953l15 15Z"/>`;const re=(t,e,o)=>({r:t,g:e,b:o,toString(){return`${this.r} ${this.g} ${this.b}`}}),se={darkgray:[re(121,121,121),re(109,109,109),re(97,97,97),re(85,85,85),re(73,73,73),re(61,61,61),re(48,48,48),re(36,36,36),re(24,24,24),re(12,12,12)],lightgray:[re(243,243,243),re(231,231,231),re(219,219,219),re(206,206,206),re(194,194,194),re(182,182,182),re(170,170,170),re(158,158,158),re(146,146,146),re(133,133,133)],teal:[re(213,249,248),re(170,243,241),re(128,237,234),re(85,231,226),re(43,225,219),re(0,219,212),re(0,175,170),re(0,131,127),re(0,88,85),re(0,44,42)],blue:[re(213,240,255),re(170,224,255),re(128,209,255),re(85,193,255),re(43,178,255),re(0,162,255),re(0,130,204),re(0,97,153),re(0,65,102),re(0,32,51)],green:[re(221,243,221),re(186,231,186),re(152,219,152),re(117,206,117),re(82,194,82),re(48,182,48),re(38,146,38),re(29,109,29),re(19,73,19),re(10,36,10)],red:[re(251,221,221),re(247,186,187),re(243,152,154),re(239,118,120),re(235,83,86),re(231,49,52),re(185,39,42),re(139,29,31),re(92,20,21),re(46,10,10)],purple:[re(242,228,253),re(229,201,250),re(217,174,248),re(204,146,245),re(191,119,243),re(178,92,240),re(142,74,192),re(107,55,144),re(71,37,96),re(36,18,48)],orange:[re(255,235,213),re(255,216,170),re(255,196,128),re(255,176,85),re(255,157,43),re(255,137,0),re(204,110,0),re(153,82,0),re(102,55,0),re(51,27,0)],yellow:[re(251,252,216),re(247,248,177),re(243,245,138),re(239,242,98),re(235,238,59),re(231,235,20),re(185,188,16),re(139,141,12),re(92,94,8),re(46,47,4)],pink:[re(254,222,233),re(253,189,211),re(252,156,190),re(251,123,168),re(250,90,146),re(249,57,124),re(199,46,99),re(149,34,74),re(100,23,50),re(50,11,25)]};class GlobalStyle extends GodownElement{}const ne=l(GlobalStyle.godownConfig.prefix,"-");function ae(t,e=1){return function(t){return _(`--${t}`)}(ne+"-".repeat(e)+t)}const le={clipBackground:ae("clip-background",2),active:ae("active",2),passive:ae("passive",2),_colors:{},input:ae("input",2),white:ae("color-white",2),black:ae("color-black",2),color:ae("color",2)};var he,ce;GlobalStyle.styles=[_(`:host{${le.black}:rgb(0 0 0);${le.white}:rgb(255 255 255);`+(he=(t,e,o)=>{le._colors[t]||=[],le._colors[t].push(_(le.color+"-"+t+"-"+e));const s=`-${t}-${e}`;return`${le.color+s}:rgb(${o});`},ce=se,Object.entries(ce).flatMap((([t,e])=>e.map(((e,o)=>he(t,o,e)))))).join("")+jt([[le.active,`var(${le._colors.blue[5]})`],[le.passive,`var(${le._colors.darkgray[5]})`],[le.clipBackground,`linear-gradient(to bottom, var(${le._colors.lightgray[0]}), var(${le._colors.darkgray[5]}))`]])+"}"),w`*{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 de="alert",pe=ae(de),ue=t=>[le._colors[t][5],le._colors[t][9]],ve=Bt(["color","background"].map((t=>`${pe}--${t}`)),{green:ue("green"),blue:ue("blue"),orange:ue("orange"),red:ue("red"),yellow:ue("yellow"),purple:ue("purple"),teal:ue("teal"),pink:ue("pink"),gray:[le._colors.lightgray[5],le._colors.darkgray[5]],white:[le._colors.lightgray[2],le._colors.darkgray[7]],black:[le._colors.darkgray[8],le._colors.lightgray[5]]},(()=>":host"),(t=>Lt(t))),fe={tip:{color:"teal",icon:Jt},success:{color:"green",icon:Zt},info:{color:"blue",icon:Qt},warning:{color:"orange",icon:Kt},danger:{color:"red",icon:ie},error:{color:"red",icon:ie},help:{color:"purple",icon:te},deprecated:{color:"gray",icon:ee}};let me=class Alert extends GlobalStyle{constructor(){super(...arguments),this.color="blue",this.autoclose=0,this.hideClose=!1,this.variant="dark"}render(){const t=fe[this.call]?.color||this.color,e=this.call?fe[this.call].icon():Ht("icon");return _t`<div part="root" ${It(this.observedRecord)}><div part="icon" class="start">${e}</div><div part="content"><strong part="title">${this.title||Ht("title")}</strong> ${this.content||Ht()}</div>${this.hideClose||"blockquote"===this.variant?"":_t`<div part="icon close" class="end" tabindex="0" @click="${this.close}">${oe()}</div>`} ${Vt(ve[t])}</div>`}close(){this.remove(),this.dispatchEvent(new CustomEvent("close",{bubbles:!0,composed:!0}))}firstUpdated(){this.autoclose&&this.timeouts.add(setTimeout((()=>this.close()),this.autoclose))}static alert(t,e){const o=new this;return Object.assign(o,e),t.appendChild(o),o}};e([X()],me.prototype,"call",void 0),e([X()],me.prototype,"color",void 0),e([X({type:Number})],me.prototype,"autoclose",void 0),e([X()],me.prototype,"title",void 0),e([X()],me.prototype,"content",void 0),e([X({type:Boolean})],me.prototype,"hideClose",void 0),e([X()],me.prototype,"variant",void 0),me=e([v(de),u(w`:host,:where(:host([contents]) [part=root]){${pe}--border-radius:.2em;${pe}--border-width:.075em;${pe}--blockquote-width:.2em;${pe}--blockquote-background:transparent;${pe}--gap:.5em;border-radius:var(${pe}--border-radius);display:block;width:100%}[part=root]{align-items:center;background:var(${pe}--background);border-color:currentColor;border-radius:inherit;border-style:solid;border-width:var(${pe}--border-width);color:var(${pe}--color,currentColor);display:grid;grid-template-columns:auto 1fr auto;grid-template-rows:auto 1fr;padding:var(${pe}--gap)}[variant=blockquote]{background:var(${pe}--blockquote-background);border-radius:0;border-width:0;border-left-width:var(${pe}--blockquote-width)}[part~=icon]{align-items:center;display:grid;height:2em}.start svg{margin-inline-end:var(${pe}--gap)}.end svg{margin-inline-start:var(${pe}--gap)}svg{height:1.25em;width:1.25em}[part=content]{grid-row:span 2/span 2}`)],me);var ge=me;ge.define();const ye="avatar",$e=ae(ye);let be=class Avatar extends GlobalStyle{constructor(){super(...arguments),this.name="",this.round=!1}render(){return _t`<div part="root" ${It(h(this.observedRecord,"src"))}>${this._renderAvatar()}</div>`}_renderAvatar(){return this.src?_t`<img part="image" src="${this.src}" alt="${this.name}" @error="${this._handleError}">`:this.name?_t`<span part="name">${this.formatName()}</span>`:Ht()}formatName(){return this.name}_handleError(){this.src=void 0}};e([X()],be.prototype,"src",void 0),e([X()],be.prototype,"name",void 0),e([X({type:Boolean})],be.prototype,"round",void 0),be=e([v(ye),u(w`:host{${$e}--size:2em;background:var(${le.passive});border-radius:.2em;height:var(${$e}--size);vertical-align:bottom;width:var(${$e}--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%}`)],be);var _e=be;_e.define();const we="badge",xe=ae(we);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 _t`<div part="root" ${It(this.observedRecord)}>${Ht()} ${this.value||this.dot?_t`<div part="badge">${this.dot?"":this.formatValue(this.value)}</div>`:""}</div>`}};e([X()],ke.prototype,"position",void 0),e([X({type:Number})],ke.prototype,"value",void 0),e([X({type:Boolean})],ke.prototype,"dot",void 0),e([X({type:Number})],ke.prototype,"max",void 0),ke=e([v(we),u(w`:host{${xe}--background:var(${le.active});${xe}--offset:0%;${xe}--offset-x:var(${xe}--offset);${xe}--offset-y:var(${xe}--offset)}:host,:host([contents]) [part=root]{display:inline-block}[part=root]{position:relative}[part=badge]{background:var(${xe}--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(${xe}--offset-y))}[position$=right]{--left:calc(100% - var(${xe}--offset-x))}[position^=bottom]{--top:calc(100% - var(${xe}--offset-y))}[position$=left]{--left:calc(var(${xe}--offset-x))}`)],ke);var Ce=ke;Ce.define();const Se="breath",Ae=ae(Se);let Ee=class Breath extends GlobalStyle{render(){const t=this.getTexts();return _t`<div part="root" ${It(this.observedRecord)}>${[t.map(this._renderText),Vt(this._computeStyle(t.length))]}</div>`}_renderText(t){return _t`<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.duration||1e3*(2*t+2);let s="";for(let e=1;e<=t;e++)s+=`.rel:nth-child(${e}) .colorful{animation-delay:${-o/t*(t-e+1)}s;background:var(${Ae}--${e},var(${Ae}--${(e-1)%3+1}));}`;return`.colorful{animation-duration:${o}ms;}@keyframes colorfulN{0%,${3*e}%{opacity:0;}${e}%,${2*e}%{opacity:1;}}${s}`}};e([X()],Ee.prototype,"content",void 0),e([X({type:Number})],Ee.prototype,"duration",void 0),Ee=e([v(Se),u(w`:host{${Ae}--deg:60deg;${Ae}--1-1:var(${le._colors.red[5]});${Ae}--1-2:var(${le._colors.yellow[5]});${Ae}--2-1:var(${le._colors.green[5]});${Ae}--2-2:var(${le._colors.purple[5]});${Ae}--3-1:var(${le._colors.blue[5]});${Ae}--3-2:var(${le._colors.pink[5]});${Ae}--1:linear-gradient(var(${Ae}--deg),var(${Ae}--1-1),var(${Ae}--1-2));${Ae}--2:linear-gradient(var(${Ae}--deg),var(${Ae}--2-1),var(${Ae}--2-2));${Ae}--3:linear-gradient(var(${Ae}--deg),var(${Ae}--3-1),var(${Ae}--3-2))}`,w`: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}`,w`.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(${le.clipBackground});position:absolute;top:0}`)],Ee);var Re=Ee;Re.define();const Te="button",Me=ae(Te),Pe=le.white,Ne=le.black,ze=Bt(["color","background","gradients"].map((t=>`${Me}--${t}`)),{black:[Pe,le._colors.darkgray[7],le._colors.darkgray[5]],gray:[Pe,le._colors.darkgray[1],le._colors.lightgray[8]],white:[Ne,le._colors.lightgray[3],le._colors.lightgray[0]],blue:[Pe,le._colors.blue[6],le._colors.blue[4]],green:[Pe,le._colors.green[6],le._colors.green[4]],red:[Pe,le._colors.red[6],le._colors.red[4]],orange:[Pe,le._colors.orange[6],le._colors.orange[4]],pink:[Pe,le._colors.pink[6],le._colors.pink[4]],purple:[Pe,le._colors.purple[6],le._colors.purple[4]],yellow:[Ne,le._colors.yellow[6],le._colors.yellow[4]],teal:[Pe,le._colors.teal[6],le._colors.teal[4]]},(()=>":host"),(t=>Lt(t)));let Oe=class Button extends GlobalStyle{constructor(){super(...arguments),this.plain=!1,this.disabled=!1,this.ghost=!1,this.active=!1,this.round=!1,this.color="black"}render(){const t=this.nextColor();return _t`<div part="root" ${It(this.observedRecord)}><span part="modal-root"></span><div part="content">${[this.content||Ht(),Vt(ze[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.plain||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}};e([X({type:Boolean,reflect:!0})],Oe.prototype,"plain",void 0),e([X({type:Boolean,reflect:!0})],Oe.prototype,"disabled",void 0),e([X({type:Boolean,reflect:!0})],Oe.prototype,"ghost",void 0),e([X({type:Boolean,reflect:!0})],Oe.prototype,"active",void 0),e([X({type:Boolean,reflect:!0})],Oe.prototype,"round",void 0),e([X({reflect:!0})],Oe.prototype,"color",void 0),e([X()],Oe.prototype,"content",void 0),e([tt("modal-root")],Oe.prototype,"_modalRoot",void 0),e([tt("root")],Oe.prototype,"_root",void 0),Oe=e([v(Te),u(w`:host(:not([disabled]):active){transform:scale(var(${Me}--focus-scale))}:host([round]){border-radius:calc(infinity*1px)}:host([disabled]){cursor:not-allowed;filter:brightness(.85)}:host([ghost]){${Me}--modal-background:var(${Me}--ghost-color);background:transparent;box-shadow:inset 0 0 0 var(${Me}--ghost-width) var(${Me}--ghost-color);color:var(${Me}--ghost-color)}:host([plain]){${Me}--gradients:unset;${Me}--focus-scale:unset}`,w`:host{${Me}--padding-x:.8em;${Me}--padding-y:calc(var(${Me}--padding-x)/4);${Me}--padding:var(${Me}--padding-y) var(${Me}--padding-x);${Me}--modal-animation-duration:1s;${Me}--ghost-width:.08em;${Me}--focus-scale:.97;${Me}--deg:45deg;${Me}--ghost-color:var(${Me}--background);background:linear-gradient(var(${Me}--deg),var(${Me}--background),var(${Me}--gradients,var(${Me}--background)));border-radius:.2em;color:var(${Me}--color,inherit);cursor:pointer;display:block;overflow:hidden;padding:0!important;text-align:center;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(${Me}--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(${Me}--modal-animation-duration);background:var(${Me}--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(${Me}--modal-opacity,.1);transform:scale(0) translate(-50%,-50%)}80%{transform:scale(1) translate(-50%,-50%)}to{opacity:0}}`)],Oe);var Ie=Oe;Ie.define();const De="card",He=ae(De);let Be=class Card extends GlobalStyle{constructor(){super(...arguments),this.footer=!1,this.header=!1}render(){return _t`<div part="root" ${It(this.observedRecord)}>${[this.header?Ht("header"):"",Ht(),this.footer?Ht("footer"):""]}</div>`}};e([X({type:Boolean})],Be.prototype,"footer",void 0),e([X({type:Boolean})],Be.prototype,"header",void 0),Be=e([v(De),u(w`:host{${He}--border-width:.075em;${He}--border-color:var(${le.passive});${He}--padding:.5em;border-radius:.2em;border-width:var(${He}--border-width);display:block;flex-shrink:0}slot{display:block;padding:var(${He}--padding)}:host,slot{border-color:var(${He}--border-color);border-style:solid}[part=root]{width:100%}[name=footer]{border-top-width:var(${He}--border-width)}[name=header]{border-bottom-width:var(${He}--border-width)}`)],Be);var Ue=Be;Ue.define();var je=Gt("0 0 56 56")`<path fill="currentColor" d="M35.805 47.723c.398.398.914.633 1.523.633c1.219 0 2.133-.915 2.133-2.133c0-.586-.234-1.125-.61-1.524L21.79 28.012l17.063-16.688c.375-.398.609-.96.609-1.523c0-1.219-.914-2.157-2.133-2.157c-.61 0-1.125.235-1.523.633L17.242 26.441c-.445.375-.703.961-.703 1.57c0 .587.258 1.126.703 1.571Z"/>`,Le=Gt("0 0 56 56")`<path fill="currentColor" d="M18.695 48.367c.586 0 1.102-.234 1.524-.633L38.78 29.57c.446-.445.68-.984.68-1.57c0-.61-.234-1.172-.68-1.57L20.22 8.289a2.07 2.07 0 0 0-1.524-.656a2.12 2.12 0 0 0-2.156 2.156c0 .563.258 1.125.633 1.524L34.21 28L17.17 44.688c-.374.398-.632.937-.632 1.523c0 1.219.938 2.156 2.156 2.156"/>`;function Ve(t){return t.getBoundingClientRect().width}let Ge=class Carousel extends GlobalStyle{constructor(){super(...arguments),this.index=0,this.autoChange=0}render(){return _t`<div part="root" ${It(this.observedRecord)}><i part="prev" @click="${this.prev}">${je()}</i><div part="move-root">${Ht()}</div><i part="next" @click="${this.next}">${Le()}</i></div>`}connectedCallback(){super.connectedCallback(),this.children.length&&(this.__cloneFirst?.remove(),this.__cloneLast?.remove(),this.__cloneLast=this.firstElementChild.cloneNode(!0),this.__cloneFirst=this.lastElementChild.cloneNode(!0),this.appendChild(this.__cloneLast),this.insertBefore(this.__cloneFirst,this.firstElementChild))}async firstUpdated(){await this.updateComplete,this.show(this.index,!0)}attributeChangedCallback(t,e,o){super.attributeChangedCallback(t,e,o),"index"===t&&this.isConnected&&this.show(this.index)}show(t,e){t=this.normalizeIndex(t),this.index=t,this._offset=0;for(let e=0;e<=t;e++)this._offset-=Ve(this.children[e]);this._offset+=(Ve(this)-Ve(this.children[t+1]))/2,this.dispatchEvent(new CustomEvent("change",{detail:t,composed:!0})),this._doTranslateX(`${this._offset}px`,e),this.timeouts.remove(this.intervalID),this.autoChange>0&&(this.intervalID=this.timeouts.add(setInterval((()=>{this.next()}),this.autoChange)))}next(){this.index===this.childElementCount-3?(this._doTranslateX("0",!0),this.show(0)):this.show(this.index+1)}prev(){0===this.index?(this._doTranslateX(`-${this.childElementCount-1}00%`,!0),this.show(this.children.length-3)):this.show(this.index-1)}_doTranslateX(t,e){this._moveRoot.style.transform=`translateX(${t})`,this._moveRoot.style.transition=e?"none":""}normalizeIndex(t){return t<0?0:t>this.children.length-3?this.children.length-3:t}};e([X({type:Number})],Ge.prototype,"index",void 0),e([X({type:Number})],Ge.prototype,"autoChange",void 0),e([tt("move-root")],Ge.prototype,"_moveRoot",void 0),Ge=e([v("carousel"),u(w`:host{display:block;transition:.3s}[part=root]{direction:ltr;overflow:hidden}[part=move-root],[part=root]{display:flex;height:100%;position:relative;transition:inherit;width:100%}[part=next],[part=prev]{align-items:center;display:flex;height:100%;justify-content:center;position:absolute;-webkit-user-select:none;user-select:none;width:1.5em;z-index:1}[part=prev]{left:0}[part=next]{right:0}slot::slotted(*){flex-shrink:0!important}`)],Ge);var Fe=Ge;Fe.define();var We=Gt("0 0 56 56")`<path fill="currentColor" d="M28 39.46a2.1 2.1 0 0 0 1.57-.679l18.164-18.586a2.1 2.1 0 0 0 .633-1.5a2.12 2.12 0 0 0-2.156-2.156a2.27 2.27 0 0 0-1.523.61L28 34.21L11.313 17.148a2.23 2.23 0 0 0-1.524-.609a2.12 2.12 0 0 0-2.156 2.156c0 .586.234 1.102.633 1.524L26.43 38.78c.445.446.96.68 1.57.68"/>`;class SuperOpenable extends GlobalStyle{constructor(){super(...arguments),this.open=!1}toggle(t=!this.open){this.open=t}close(){this.open=!1}show(){this.open=!0}updated(t){void 0!==t.get("open")&&this.dispatchEvent(new CustomEvent("change",{detail:this.open,composed:!0}))}}e([X({type:Boolean,reflect:!0})],SuperOpenable.prototype,"open",void 0);const qe="details",Ye=ae(qe);let Xe=class Details extends SuperOpenable{constructor(){super(...arguments),this.fill=!1,this.summary=""}render(){return _t`<dl part="root" ${It(this.observedRecord)}><dt part="title" @click="${()=>this.toggle()}"><span part="summary">${this.summary||Ht("summary")}</span> <span><i part="icon">${We()}</i></span></dt><dd part="details" @click="${this.fill?()=>this.toggle():null}"><div style="min-height: 0;">${Ht()}</div></dd></dl>`}};e([X({type:Boolean})],Xe.prototype,"fill",void 0),e([X()],Xe.prototype,"summary",void 0),Xe=e([v(qe),u(w`:host{${Ye}--icon-deg-open:0deg;${Ye}--icon-deg-close:90deg;${Ye}--icon-space:0.3em;${Ye}--summary-direction:row;${Ye}--transition:.3s;display:block;height:-moz-fit-content;height:fit-content;transition:var(${Ye}--transition)}[part=root]{height:100%;overflow:hidden;position:relative}[part=title]{align-items:center;background:inherit;direction:ltr;display:flex;flex-direction:var(${Ye}--summary-direction);flex-wrap:nowrap;height:100%;justify-content:space-between}[part=details]{display:grid;grid-template-rows:0fr;overflow:hidden;transition:var(${Ye}--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(${Ye}--icon-space);transform:rotate(var(${Ye}--icon-deg-close));transition:var(${Ye}--transition)}:host([open]) [part=icon]{transform:rotate(var(${Ye}--icon-deg-open))}`)],Xe);var Ze=Xe;Ze.define();const Ke=_("[direction-inset-align]"),Qe=w`[direction^=top] ${Ke}{top:0}[direction^=bottom] ${Ke}{bottom:0}[direction$=right] ${Ke}{right:0}[direction$=left] ${Ke}{left:0}`,Je=_("[direction-outset-place]"),ti=w`[direction^=top] ${Je}{bottom:100%}[direction^=bottom] ${Je}{top:100%}[direction$=right] ${Je}{left:100%}[direction$=left] ${Je}{right:100%}`,ei="dialog",ii=ae(ei);let oi=class Dialog extends SuperOpenable{constructor(){super(...arguments),this.modal=!1,this.key="Escape",this.__modalInvoke=!1}render(){return _t`<div part="root" ${It(this.observedRecord)}><div part="modal"></div><div part="container" direction-inset-align>${Ht()}</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}};e([X()],oi.prototype,"direction",void 0),e([X({type:Boolean,reflect:!0})],oi.prototype,"modal",void 0),e([X()],oi.prototype,"key",void 0),oi=e([v(ei),u(Qe,w`:host{${ii}--background:none;${ii}--background-modal:#000;${ii}--opacity-modal:0.2;background:var(${ii}--background);inset:0;pointer-events:none;position:fixed;z-index:1}:host(:not([open])){visibility:hidden}:host([modal]) [part=modal]{opacity:var(${ii}--opacity-modal);pointer-events:all}[part=modal]{background:var(${ii}--background-modal);height:100%;opacity:0;position:absolute;visibility:inherit;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}`)],oi);var ri=oi;ri.define();let si=class Divider extends GlobalStyle{constructor(){super(...arguments),this.vertical=!1}render(){return _t`<div part="root" ${It(this.observedRecord)}></div>`}};e([X({type:Boolean,reflect:!0})],si.prototype,"vertical",void 0),si=e([v("divider"),u(w`:host{background:currentColor;color:var(${le.passive});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}`)],si);var ni=si;ni.define();let ai=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 _t`<div part="root" ${It(this.observedRecord)} @mousedown="${this._handleDragStart}" @mouseup="${this._handleDragEnd}">${Ht()}</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")}};e([X()],ai.prototype,"x",void 0),e([X()],ai.prototype,"y",void 0),ai=e([v("dragbox"),u(w`:host{display:block;position:absolute}:host(:active){-webkit-user-select:none;user-select:none}`)],ai);var li=ai;li.define();let hi=class Flex extends GlobalStyle{constructor(){super(...arguments),this.vertical=!1}render(){return _t`<div part="root" ${It(this.observedRecord)}>${[Ht(),Vt(Ut({":host":{gap:this.gap,"flex-flow":this.flexFlow,"flex-direction":this.vertical&&"column","align-items":this.items,"justify-content":this.content}}))]}</div>`}};e([X({attribute:"flex-flow"})],hi.prototype,"flexFlow",void 0),e([X()],hi.prototype,"gap",void 0),e([X()],hi.prototype,"content",void 0),e([X()],hi.prototype,"items",void 0),e([X({type:Boolean})],hi.prototype,"vertical",void 0),hi=e([v("flex"),u(w`:host,:host([contents]) [part=root]{display:flex}[part=root]{display:contents}`)],hi);var ci,di=hi;di.define();let pi=ci=class Form extends GlobalStyle{constructor(){super(...arguments),this.name="",this.nameValue=this.namevalue}get value(){return ci.buildValue(this._slot.assignedElements())}render(){return Ht()}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}};e([X()],pi.prototype,"name",void 0),pi=ci=e([v("form"),u(w`:host{display:block}`)],pi);var ui=pi;ui.define();const vi=t=>isNaN(+t)?t:`repeat(${t},1fr)`;let fi=class Grid extends GlobalStyle{render(){return _t`<div part="root" ${It(this.observedRecord)}>${[Ht(),Vt(Ut({":host":{gap:this.gap,"grid-template-columns":vi(this.columns),"grid-template-rows":vi(this.rows),"place-content":this.content,"place-items":this.items}}))]}</div>`}};e([X()],fi.prototype,"gap",void 0),e([X()],fi.prototype,"columns",void 0),e([X()],fi.prototype,"rows",void 0),e([X()],fi.prototype,"content",void 0),e([X()],fi.prototype,"items",void 0),fi=e([v("grid"),u(w`:host,:host([contents]) [part=root]{display:grid}[part=root]{display:contents}`)],fi);var mi=fi;mi.define();let gi=class Heading extends GlobalStyle{constructor(){super(...arguments),this.as="h1",this.anchor="#",this.side="left"}render(){return _t`<a part="root" href="${this.id?"#"+this.id:kt}" ${It(this.observedRecord)}>${this.wrapHeading(Ht(),this.id?_t`<i part="anchor">${this.anchor}</i>`:"")}</a>`}wrapHeading(...t){switch(this.as){case"h2":return _t`<h2>${t}</h2>`;case"h3":return _t`<h3>${t}</h3>`;case"h4":return _t`<h4>${t}</h4>`;case"h5":return _t`<h5>${t}</h5>`;case"h6":return _t`<h6>${t}</h6>`;default:return _t`<h1>${t}</h1>`}}};e([X()],gi.prototype,"as",void 0),e([X()],gi.prototype,"anchor",void 0),e([X()],gi.prototype,"side",void 0),gi=e([v("heading"),u(w`: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}`)],gi);var yi=gi;yi.define();var $i=Gt("0 0 56 56")`<path fill="currentColor" d="M43.95 47.323c.304.305.732.468 1.119.468c.814 0 1.567-.733 1.567-1.568c0-.407-.163-.814-.468-1.12L12.112 11.069a1.57 1.57 0 0 0-1.12-.448c-.814 0-1.567.733-1.567 1.547c0 .428.143.835.448 1.12Zm1.913-5.761C52.255 37.43 56 32.056 56 29.674c0-4.132-11.297-17.303-27.99-17.303c-3.46 0-6.697.59-9.669 1.567l5.313 5.293a11 11 0 0 1 4.356-.896c6.31 0 11.38 4.988 11.38 11.339c0 1.547-.326 3.033-.958 4.336ZM28.01 46.977c3.766 0 7.267-.672 10.402-1.771l-5.394-5.395a10.8 10.8 0 0 1-5.008 1.201c-6.35 0-11.379-5.15-11.4-11.338c0-1.832.428-3.562 1.202-5.09l-7.084-7.124C4.01 21.592 0 27.231 0 29.674c0 4.112 11.501 17.303 28.01 17.303m6.473-17.73a6.446 6.446 0 0 0-6.473-6.454c-.264 0-.53.02-.773.041l7.206 7.206c.02-.244.04-.529.04-.794m-12.966-.041c0 3.582 2.951 6.473 6.514 6.473c.285 0 .55-.02.834-.04l-7.308-7.309c-.02.285-.04.59-.04.876"/>`;const bi=w`.input-field{align-items:center;border-radius:inherit;display:flex;height:inherit;position:relative}.input-field [part=input]{background:none;color:inherit;height:100%;padding:var(${le.input}-space);width:100%}.input-field [part=icon]{align-items:center;color:var(${le.input}-icon-color);display:flex;justify-content:center}.input-field [part=prefix],.input-field [part=suffix]{display:flex;height:100%}.input-field [part=suffix] [part=icon]{padding-inline-end:var(${le.input}-space)}.input-field [part=prefix] [part=icon]{padding-inline-start:var(${le.input}-space)}`,_i=w`:host{${le.input}-width:10em;${le.input}-height:1.6em;${le.input}-space:0.2em;${le.input}-control:currentColor;${le.input}-outline-width:.075em;${le.input}-outline-color:var(${le._colors.darkgray[4]});${le.input}-icon-color:var(${le._colors.darkgray[4]});border-radius:.2em}:host([disabled]){cursor:not-allowed;filter:brightness(.85)}:host(:focus-within){${le.input}-icon-color:currentColor}input:disabled{cursor:inherit}input::-ms-clear,input::-ms-reveal{display:none}`;let wi=class SuperInput extends GlobalStyle{constructor(){super(...arguments),this.autofocus=!1,this.outlineType="border",this.disabled=!1,this.compositing=!1,this.makeId=Math.random().toString(36).slice(1),this.nameValue=this.namevalue}get observedRecord(){return h(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 _t`<label for="${this.makeId}" part="prefix">${Ht("prefix")}</label>`}_renderSuffix(){return _t`<label for="${this.makeId}" part="suffix">${Ht("suffix")}</label>`}};e([X()],wi.prototype,"autocomplete",void 0),e([X({attribute:"outline-type"})],wi.prototype,"outlineType",void 0),e([X({type:Boolean,reflect:!0})],wi.prototype,"disabled",void 0),e([X({reflect:!0})],wi.prototype,"type",void 0),e([X({reflect:!0})],wi.prototype,"placeholder",void 0),e([X({reflect:!0})],wi.prototype,"name",void 0),e([X()],wi.prototype,"value",void 0),e([X()],wi.prototype,"default",void 0),e([tt("input")],wi.prototype,"_input",void 0),wi=e([u(bi,new class OutlineBuilder{constructor(t){const e=_(t.width),o=_(t.color);this.css=w`[outline-type=outline-inset],[outline-type=outline]{outline-color:var(${o});outline-style:solid;outline-width:var(${e})}[outline-type=outline-inset]{outline-offset:calc(var(${e})*-1)}[outline-type=box-shadow]{box-shadow:0 0 0 var(${e}) var(${o})}[outline-type=box-shadow-inset]{box-shadow:inset 0 0 0 var(${e}) var(${o})}[outline-type=border]{border-color:var(${o});border-style:solid;border-width:var(${e})}`}get styleSheet(){return this.css.styleSheet}}({width:`${le.input}-outline-width`,color:`${le.input}-outline-color`}).styleSheet,_i)],wi);let xi=class Input extends wi{constructor(){super(...arguments),this.type="text",this.variant="default"}render(){return _t`<div part="root" ${It(this.observedRecord)} class="${qt("input-field",this.variant)}">${[this._renderPrefix(),_t`<input part="input" type="${this.type}" .value="${this.value}" ?autofocus="${this.autofocus}" ?disabled="${this.disabled}" autocapitalize="${this.autocapitalize||kt}" autocomplete="${this.autocomplete||kt}" placeholder="${this.placeholder||kt}" id="${this.makeId}" @input="${this._handleInput}">`,this._renderSuffix()]}</div>`}_renderSuffix(){const t="password";return _t`<label for="${this.makeId}" part="suffix">${this.type===t?_t`<i part="icon" @mousedown="${()=>this._changeInputType("text")}" @mouseup="${()=>this._changeInputType(t)}" @mouseleave="${()=>this._changeInputType(t)}">${$i()}</i>`:Ht("suffix")}</label>`}};e([X()],xi.prototype,"variant",void 0),e([tt("input")],xi.prototype,"_input",void 0),xi=e([v("input"),u(w`:host{display:block;height:var(${le.input}-height);width:var(${le.input}-width)}.outline,:host(:focus-within){${le.input}-outline-color:var(${le.active})}`)],xi);var ki=xi;ki.define();let Ci=class Layout extends GlobalStyle{constructor(){super(...arguments),this.noHeader=!1,this.noFooter=!1,this.sticky=!1}render(){return _t`<div part="root" ${It(this.observedRecord)}>${this.noHeader?"":_t`<header part="header">${Ht("header")}</header>`}<main part="main">${Ht()}</main>${this.noFooter?"":_t`<footer part="footer">${Ht("footer")}</footer>`}</div>`}};e([X({type:Boolean})],Ci.prototype,"noHeader",void 0),e([X({type:Boolean})],Ci.prototype,"noFooter",void 0),e([X({type:Boolean})],Ci.prototype,"sticky",void 0),Ci=e([v("layout"),u(w`: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%}`)],Ci);var Si=Ci;Si.define();let Ai=class SuperAnchor extends GlobalStyle{constructor(){super(...arguments),this.target="_self"}get pathname(){return new URL(this.href,location.href).pathname}render(){return _t`<a part="root" ${It(this.observedRecord)} href="${this.href||kt}" target="${this.target}" @click="${this._handleClick}">${Ht()}</a>`}};var Ei;e([X()],Ai.prototype,"href",void 0),e([X()],Ai.prototype,"target",void 0),Ai=e([u(w`: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%}`)],Ai);let Ri=Ei=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=Ht(),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(),Ei.routerInstances.add(this),"field"!==this.type&&(this.observers.add(this,MutationObserver,this.collectSlottedRoutes,{attributes:!0,attributeFilter:["slot"],subtree:!0}),this.collectSlottedRoutes())}disconnectedCallback(){super.disconnectedCallback(),Ei.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?.(h(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?Ht(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)}};Ri.routerInstances=new Set,e([Z()],Ri.prototype,"component",void 0),e([Z()],Ri.prototype,"path",void 0),e([X()],Ri.prototype,"pathname",void 0),e([Z()],Ri.prototype,"default",void 0),e([X()],Ri.prototype,"type",void 0),e([X({type:Boolean})],Ri.prototype,"cache",void 0),e([Z()],Ri.prototype,"routes",null),Ri=Ei=e([v("router"),u(w`:host{display:contents}`)],Ri);var Ti=Ri;const Mi="auto";let Pi=class Link extends Ai{constructor(){super(...arguments),this.type=Mi,this.suppress=!1,this.replace=!1,this.state={},this.handleState=()=>{switch(this.type){case Mi: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=[...Ti.routerInstances];l||o===Mi&&!h.some((t=>t.search(location.pathname)))||(t.preventDefault(),Ti.routerInstances.forEach((t=>{t.handlePopstate()})))}};e([X()],Pi.prototype,"type",void 0),e([X({type:Boolean})],Pi.prototype,"suppress",void 0),e([X({type:Boolean})],Pi.prototype,"replace",void 0),Pi=e([v("link")],Pi);var Ni=Pi;Ni.define();let zi=class Progress extends GlobalStyle{constructor(){super(...arguments),this.max=1,this.min=0}render(){let t,e=20;if(!o(this.value)){const o=new Ranger(this.min,this.max);e=100*o.restrict(this.value/o.diff),t="static"}return _t`<div part="root" ${It(this.observedRecord)} class="${t}"><i part="value" style="width:${e}%;"></i></div>`}};e([X({type:Number})],zi.prototype,"max",void 0),e([X({type:Number})],zi.prototype,"min",void 0),e([X({type:Number})],zi.prototype,"value",void 0),zi=e([v("progress"),u(w`:host{background:var(${le.passive});border-radius:.25em;color:var(${le.active});height:.5em;width:100%}:host,[part=root]{display:block}[part=root]{border-radius:inherit;height:inherit;overflow:hidden;position:relative;z-index:1}[part=value]{animation:progress 1.8s ease-in-out infinite alternate;background:currentColor;border-radius:inherit;height:100%;left:0;position:absolute;top:0;transition:all .3s;z-index:2}@keyframes progress{0%{left:0}to{left:80%}}.static [part=value]{animation:none}`)],zi);var Oi=zi;Oi.define();const Ii="range",Di=ae(Ii);let Hi=class Range extends wi{constructor(){super(...arguments),this.min=0,this.max=100,this.vertical=!1,this.__focusStack=[]}get range(){return Array.isArray(this.value)}get rangeValue(){return this.range?this.value:[this.value]}padValue(t,e=0){const{rangeValue:o}=this,s=t-o.length;return s>0?new Array(s).fill(e).concat(o):o}attributeChangedCallback(t,e,o){super.attributeChangedCallback(t,e,o),"max"!==t&&"min"!==t&&"step"!==t||(this._ranger=new Ranger(this.min,this.max,this.step))}get observedRecord(){return h(super.observedRecord,"outline-type")}render(){const t=this.padValue(2),e=Math.min(...t),o=Math.max(...t),s=this._ranger.diff;return _t`<div part="root" ${It(this.observedRecord)} @mousedown="${this.disabled?null:this._handleMousedownRoot}" style="${jt([["--from",(e-this.min)/s*100+"%"],["--to",(o-this.min)/s*100+"%"],...t.map(((t,e)=>[`--handle-${e}`,(t-this.min)/s*100+"%"]))])}"><div part="track"></div>${Ft(this.rangeValue.length,(t=>this._renderHandle(t)))}</div>`}_renderHandle(t){const{disabled:e,range:o,rangeValue:s}=this,a=!o||o&&t===s.length-1&&1===s.length;return _t`<i tabindex="0" part="handle" class="${qt({"last-focus":this.lastFocus===t})}" @mousedown="${e?null:this.createMouseDown(t)}" @focus="${e?null:()=>this.focusHandle(t)}" @blur="${e?null:this.blurHandle}" style="${jt({"z-index":this.__focusStack.indexOf(t)+1,"--handle":`var(--${a?"to":`handle-${t}`})`})}"></i>`}focusHandle(t){this.lastFocus=t;const e=this.__focusStack.indexOf(t);-1!==e&&this.__focusStack.splice(e,1),this.__focusStack.push(t);const o=this._handles.item(t);o?.focus(),this.__keydownEvent||(this.__keydownEvent=this.events.add(document,"keydown",this.createKeydownEvent(t))),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){const{rangeValue:e,step:o}=this;return e.length<2&&(t=0),s=>{const a=e[t];"ArrowLeft"===s.key||"ArrowDown"===s.key?(s.preventDefault(),this.createSetValue(t)(a-o)):"ArrowRight"!==s.key&&"ArrowUp"!==s.key||(s.preventDefault(),this.createSetValue(t)(a+o))}}createMouseDown(t){return e=>{this.focusHandle(t),this.createMousedownListener(this.createSetValue(t))(e)}}createSetValue(t){return e=>{const o=this._ranger.normalize(e);let s=o;this.range&&(s=[...this.value],s[t]=o),this.value=s,this.dispatchEvent(new CustomEvent("range",{detail:this.value}))}}_computeValue({clientX:t,clientY:e}){const{top:o,left:s,height:a,width:l}=this._root.getBoundingClientRect();return this._ranger.present(this.vertical?(e-o)/a:(t-s)/l)}_handleMousedownRoot(t){const e=this._computeValue(t),o=this.range?this.rangeValue.reduce(((t,o,s)=>Math.abs(e-o)<Math.abs(e-this.rangeValue[t])?s:t),0):0,s=this.createSetValue(o);s(e),this.createMousedownListener(s)(t),this.focusHandle(o)}createMousedownListener(t){return e=>{e.preventDefault(),e.stopPropagation();const o=this.createMousemoveListener(t);this.events.add(document,"mousemove",o);const s=()=>{this.events.remove(document,"mousemove",o),this.events.remove(document,"mouseup",s)};this.events.add(document,"mouseup",s)}}createMousemoveListener(t){return e=>{const o=this._computeValue(e);o===this._ranger.restrict(o)&&t?.call(this,o)}}_connectedInit(){const t=this._ranger.diff;this.step||=t/100,o(this.value)&&(o(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}};e([X({type:Number})],Hi.prototype,"min",void 0),e([X({type:Number})],Hi.prototype,"max",void 0),e([X({type:Number})],Hi.prototype,"step",void 0),e([X({type:Boolean,reflect:!0})],Hi.prototype,"vertical",void 0),e([X({type:Array})],Hi.prototype,"value",void 0),e([X({type:Array})],Hi.prototype,"default",void 0),e([tt("root")],Hi.prototype,"_root",void 0),e([function(t){return(e,o)=>K(e,o,{get(){return(this.renderRoot??(J??=document.createDocumentFragment())).querySelectorAll(t)}})}("[part=handle]")],Hi.prototype,"_handles",void 0),e([Z()],Hi.prototype,"lastFocus",void 0),Hi=e([v(Ii),u(w`:host{${Di}--handle-active:var(${le.active});${Di}--track-width:.5em;${Di}--length:var(${le.input}-width);background:var(${le.passive});display:block;width:var(${Di}--length)}:host([contents]) [part=root]{width:inherit}:host([vertical]){height:var(${Di}--length);width:-moz-fit-content;width:fit-content}:host(:not([disabled])) .last-focus{${Di}--handle-scale:1.05;background:var(${Di}--handle-active)}[part=root]{position:relative;width:100%;--from:0%;--to:50%;height:var(${Di}--track-width)}[part=root],[part=track]{border-radius:inherit;min-height:inherit}[part=track]{background:var(${le.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(${le.active});border:.1em solid;border-color:var(${le.input}-control);border-radius:50%;height:1em;justify-content:center;transform:scale(var(${Di}--handle-scale,1)) translate(-50%,-25%);transform-origin:0 25%;-webkit-user-select:none;user-select:none;width:1em}`,w`[vertical]{height:inherit;width:var(${Di}--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%}`,w`[part=handle]{left:var(--handle);top:0}[vertical] [part=handle]{left:0;top:var(--handle)}`)],Hi);var Bi=Hi;Bi.define();const Ui="rotate",ji=ae(Ui);let Li=class Rotate extends GlobalStyle{render(){return _t`<div part="root"><div part="slot" @mousemove="${this._handleRotate}">${Ht()}</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}}};e([tt("root")],Li.prototype,"_root",void 0),Li=e([v(Ui),u(w`:host{display:block;transition:all .5s ease-in-out;width:-moz-fit-content;width:fit-content;${ji}--padding:.75em;${ji}--offset:.5em}div{position:relative;transition:inherit;transition-property:transform}i{box-sizing:content-box;height:100%;margin:calc(var(${ji}--offset)*-1);padding:var(${ji}--offset);position:absolute;top:0;width:100%}[part=slot]{z-index:2}`)],Li);var Vi=Li;function Gi(t,e){return t&&e&&t.toLowerCase().includes(e.toLowerCase())}function Fi(t,e){if(t){const o="checked";e?t.setAttribute(o,""):t.removeAttribute(o)}}Vi.define(),Ti.define();let Wi=class Select extends ki{constructor(){super(...arguments),this.multiple=!1,this.visible=!1,this.autoDirection="bottom",this.__store=[]}get observedRecord(){return{...super.observedRecord,direction:this.direction||this.autoDirection}}render(){return _t`<div part="root" ${It(this.observedRecord)} class="input-field">${[this._renderPrefix(),_t`<input part="input" type="${this.type}" .value="${this.text}" ?autofocus="${this.autofocus}" ?disabled="${this.disabled}" autocapitalize="${this.autocapitalize||kt}" autocomplete="${this.autocomplete||kt}" placeholder="${this.placeholder||kt}" id="${this.makeId}" @focus="${this._handleFocus}" @input="${this._handleInput}">`,_t`<label for="${this.makeId}" part="suffix"><i part="icon">${We()}</i></label>`,_t`<label for="${this.makeId}" part="content" direction-outset-place>${Ht()}</label>`]}</div>`}_handleFocus(){if(!this.direction){const{top:t,bottom:e}=this.getBoundingClientRect();window.innerHeight-e<this._content.clientHeight&&t>this._content.clientHeight?this.autoDirection="top":this.autoDirection="bottom"}this.visible=!0}firstUpdated(){this.events.add(this._content,"click",(t=>{t.preventDefault(),t.stopPropagation();const{target:e}=t,o=this.optionValue(e);if(o){const t=this.select(o,e.textContent);this.multiple||Fi(this.lastChecked,0),Fi(e,t),this.lastChecked=e}this._input.focus()})),this.events.add(document,"click",(t=>{t.stopPropagation();const e=t.composedPath()[0];e&&!this.shadowRoot.contains(e)&&this.blur()}))}_connectedInit(){if(!this.value){const t=[...this.querySelectorAll("[checked]")];(this.multiple?t:t.length?[this.lastChecked=t[0]]:[]).forEach((t=>{Fi(t,this.select(this.optionValue(t),t.textContent))})),this.default=this.value,this.defaultText=this.text,this.defaultChecked=t}this.text||(this.text="")}reset(){this.value=this.default,this.text=this.defaultText,this.querySelectorAll("[checked]").forEach((t=>Fi(t,0))),this.defaultChecked.forEach((t=>Fi(t,1)))}select(t,e){e||=t;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||Gi(this.optionValue(e),t)||Gi(e.textContent,t),t)}))}filterCallback(t,e,o){t.style.display=e?"":"none"}_handleInput(t){if(t.stopPropagation(),this.compositing)return;const e=this._input.value;this.filter(this.multiple?function(t,e){const o=e.slice(0,t).lastIndexOf(",")+1||0,s=e.indexOf(",",t)||e.length;return e.slice(o,s)}(this._input.selectionStart,e):e),this.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")||""}};e([X()],Wi.prototype,"text",void 0),e([tt("content")],Wi.prototype,"_content",void 0),e([X()],Wi.prototype,"direction",void 0),e([X({type:Boolean})],Wi.prototype,"multiple",void 0),e([X({type:Boolean})],Wi.prototype,"visible",void 0),e([Z()],Wi.prototype,"autoDirection",void 0),Wi=e([v("select"),u(ti,w`.outline,:host(:focus-within){${le.input}-outline-color:var(${le.active})}[part=input]{text-overflow:ellipsis}[part=content]{position:absolute;visibility:hidden;width:100%}[visible] [part=content]{visibility:visible}`)],Wi);var qi=Wi;qi.define();var Yi=Gt("0 0 56 56")`<path fill="currentColor" d="M7.715 49.574h40.57c4.899 0 7.36-2.437 7.36-7.265V13.69c0-4.828-2.461-7.265-7.36-7.265H7.715C2.84 6.426.355 8.84.355 13.69v28.62c0 4.851 2.485 7.265 7.36 7.265m31.57-21.633c-1.055-.937-2.25-1.43-3.515-1.43c-1.313 0-2.462.446-3.54 1.407l-10.593 9.469l-4.336-3.938c-.985-.867-2.04-1.336-3.164-1.336c-1.032 0-2.04.446-3 1.313L4.129 39.73V13.88c0-2.438 1.312-3.68 3.656-3.68h40.43c2.32 0 3.656 1.242 3.656 3.68v25.875Zm-21.469.258c3.024 0 5.508-2.484 5.508-5.531c0-3.023-2.484-5.531-5.508-5.531c-3.046 0-5.53 2.508-5.53 5.531a5.54 5.54 0 0 0 5.53 5.531"/>`;const Xi="skeleton",Zi=ae(Xi);let Ki=class Skeleton extends GlobalStyle{constructor(){super(...arguments),this.animation="position",this.loading=!0}render(){return this.loading?_t`<div part="root" ${It(this.observedRecord)}>${"image"===this.type?Yi():""} ${Ht("loading")}</div>`:Ht()}};e([X()],Ki.prototype,"type",void 0),e([X()],Ki.prototype,"animation",void 0),e([Z()],Ki.prototype,"loading",void 0),Ki=e([v(Xi),u(w`:host{${Zi}--from:var(${le._colors.darkgray[9]});${Zi}--to:var(${le._colors.darkgray[7]});${Zi}--deg:95deg;${Zi}--duration:1.5s;${Zi}--icon-size:5em;${Zi}--icon-margin:.25em;background:var(${Zi}--from);color:var(${le._colors.darkgray[5]});display:block;flex-shrink:0;min-height:1.5em;overflow:hidden;width:100%}[part=root]{animation:var(${Zi}--duration) ease-in-out 0s infinite none running;height:100%;min-height:inherit;text-align:center}svg{--size:var(${Zi}--icon-size);font-size:var(--size);margin:calc(var(--size)*.05)}[animation=position]{animation-name:po;background-color:transparent;background-image:linear-gradient(var(${Zi}--deg),var(${Zi}--from) 36%,var(${Zi}--to) 50%,var(${Zi}--from) 64%);background-size:200% 100%}@keyframes po{0%{background-position:150%}to{background-position:-50%}}[animation=opacity]{animation-direction:alternate;animation-name:op}@keyframes op{50%{opacity:.25}to{opacity:1}}`)],Ki);var Qi=Ki;Qi.define();const Ji="split",to=ae(Ji);let eo=class Split extends wi{constructor(){super(...arguments),this.len=6,this.index=-1,this.current=-1,this.currentValue=[]}get observedRecord(){return h(super.observedRecord,"outline-type")}render(){return _t`<div part="root" ${It(this.observedRecord)}>${Ft(this.len,(t=>_t`<span part="input-box" outline-type="${this.outlineType}" class="${qt({focus:this.current===t})}" @click="${this.disabled?null:()=>this.focusAt(t)}">${this.currentValue[t]}</span>`))} <input part="input" id="${this.makeId}" @blur="${this.blur}" @input="${this._handleInput}" .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)}};e([X({type:Number})],eo.prototype,"len",void 0),e([X({type:Number})],eo.prototype,"index",void 0),e([Z()],eo.prototype,"current",void 0),e([Z()],eo.prototype,"currentValue",void 0),eo=e([v(Ji),u(w`:host{border-radius:1px;display:block;width:-moz-fit-content;width:fit-content;${to}--size:1.45em;${to}--gap:.25em}:host([contents]) [part=root]{width:-moz-fit-content;width:fit-content}[part=root]{display:flex;gap:var(${to}--gap);justify-content:space-between;position:relative;width:100%}[part=input-box],[part=root]{border-radius:inherit;vertical-align:top}[part=input-box]{align-items:center;display:inline-flex;height:var(${to}--size);justify-content:center;width:var(${to}--size)}[part=input]{background:none;height:100%;opacity:0;position:absolute;width:100%;z-index:-1}.focus,[part=input-box]:active{${le.input}-outline-color:var(${le.active})}`)],eo);var io=eo;io.define();const oo="switch",ro=ae(oo);let so=class Switch extends wi{constructor(){super(...arguments),this.default=!1,this.value=!1}set checked(t){this.value=t}get checked(){return this.value}get observedRecord(){return h(super.observedRecord,"outline-type")}render(){return _t`<div part="root" ${It(this.observedRecord)} class="round"><input part="input" type="checkbox" ?disabled="${this.disabled}" ?checked="${this.value}" id="${this.makeId}" @change="${this._handleChange}"> <span part="handle"></span></div>`}reset(){this.value=this.default,this._input.checked=this.value}_connectedInit(){this.default?this.value=!0:this.value&&(this.value=!0,this.default=!0)}_handleChange(){const{checked:t}=this._input;this.value=t,this.dispatchCustomEvent("change",this.value)}};e([X({type:Boolean})],so.prototype,"default",void 0),e([X({type:Boolean,attribute:"checked",reflect:!0})],so.prototype,"value",void 0),so=e([v(oo),u(w`:host,:host([contents]) [part=root]{display:inline-block;height:var(${ro}-height);width:var(${ro}-width)}:host{${ro}-width:3em;${ro}-height:calc(var(${ro}-width)/2);${ro}-handle-size:1.25em;${ro}-handle-space:calc(var(${ro}-width)/4 - var(${ro}-handle-size)/2);${ro}-transition:.2s ease-in-out;background:var(${le.passive});border-radius:calc(var(${ro}-height)/2);transition:.2s ease-in-out;transition-property:background,left;vertical-align:bottom}:host([checked]){background:var(${le.active})}[part=root]{height:inherit;position:relative}[part=handle],[part=root]{align-items:center;display:flex;transition:inherit}[part=handle]{background:currentColor;border-radius:100%;justify-content:center;left:0;pointer-events:none;position:absolute;top:50%;--size:var(${ro}-handle-size);height:var(--size);transform:translateY(-50%) translateX(var(${ro}-handle-space));width:var(--size)}:host([checked]) [part=handle]{left:50%}[part=input]{height:100%;opacity:0;width:100%}`)],so);var no=so;no.define();const ao="text",lo=ae(ao);let ho=class Text extends GlobalStyle{constructor(){super(...arguments),this.underline="none",this.clip=!1}render(){return _t`<span part="root" ${It(this.observedRecord)} class="${qt(this.underline)}">${Ht()}</span>`}};e([X()],ho.prototype,"underline",void 0),e([X({type:Boolean})],ho.prototype,"clip",void 0),ho=e([v(ao),u(w`:host{${lo}--color:currentColor;${lo}--color-hover:currentColor;${lo}--color-active:currentColor;display:inline-block;overflow-wrap:break-word;text-overflow:ellipsis}[part=root]{color:var(${lo}--color);display:inline-block;overflow:hidden;overflow-wrap:inherit;text-overflow:inherit;vertical-align:bottom;white-space:nowrap;width:100%}[part=root]:hover{color:var(${lo}--color-hover,var(${lo}--color))}[part=root]:active{color:var(${lo}--color-active,var(${lo}--color))}.active:active,.always,.hover:hover{text-decoration:underline}.none{text-decoration:none}[clip]{background:var(${le.clipBackground});color:transparent;display:inline-block;-webkit-text-fill-color:transparent;background-clip:text;-webkit-background-clip:text}`)],ho);var co=ho;function po(t,e=2){return t.toString().padStart(e,"0").split("")}co.define();let uo=class Time extends GlobalStyle{constructor(){super(...arguments),this.escape="%",this.format="YYYY-MM-DD hh:mm:ss",this.time=new Date}render(){return _t`<span part="root" ${It(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:po(e.getMonth()+1),D:po(e.getDate()),h:po(e.getHours()),m:po(e.getMinutes()),s:po(e.getSeconds()),S:po(e.getMilliseconds(),3)},d=[];for(const e of t.split("").reverse()){const t=null===(s=c[e])||void 0===s?void 0:s.pop();t?d.push(t):d.push(e)}return d.reverse().join("").replace(new RegExp(a,"g"),(()=>l.shift()))}(this.format,this.time,this.escape)}</span>`}updated(t){t.has("timeout")&&this.timeout&&(this.timeouts.remove(this.timeoutId),this.timeoutId=this.timeouts.add(setInterval((()=>{this.dispatchEvent(new CustomEvent("time",{detail:this.time,composed:!0})),this.time=new Date(this.time.getTime()+(this.gap||this.timeout))}),Math.abs(this.timeout))))}};e([X()],uo.prototype,"escape",void 0),e([X()],uo.prototype,"format",void 0),e([X({type:Object})],uo.prototype,"time",void 0),e([X({type:Number})],uo.prototype,"timeout",void 0),e([X({type:Number})],uo.prototype,"gap",void 0),uo=e([v("time"),u(w`:host{text-align:center}`)],uo);var vo,fo=uo;fo.define();const mo="tooltip",go=ae(mo);let yo=vo=class Tooltip extends SuperOpenable{constructor(){super(...arguments),this.direction="top",this.align="center",this.propagation=!1,this.type="hover"}render(){const t=vo.aligns[this.align]||"inherit",e="focus"===this.type;return _t`<div part="root" ${It(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}">${Ht()}<div part="tip" direction-outset-place>${this.tip?_t`<span class="passive">${this.tip}</span>`:Ht("tip")}</div></div>`}};yo.aligns={start:"flex-start",end:"flex-end",center:"center","flex-start":"flex-start","flex-end":"flex-end"},e([X()],yo.prototype,"tip",void 0),e([X()],yo.prototype,"direction",void 0),e([X()],yo.prototype,"align",void 0),e([X({type:Boolean})],yo.prototype,"propagation",void 0),e([X()],yo.prototype,"type",void 0),yo=vo=e([v(mo),u(ti,w`:host{${go}--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(${go}--tip-background)}[propagation] [part=tip]{pointer-events:none}`)],yo);var $o=yo;$o.define();const bo="typewriter",_o=ae(bo);let wo=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 _t`<div part="root" ${It(this.observedRecord)}>${Ht()} ${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=this.timeouts.add(setTimeout((()=>{const e=t+1;e<=this.len&&(this.index=e,this.write())}),e))}stop(){clearTimeout(this.timeoutID)}end(){this.ended=!0}};e([X()],wo.prototype,"content",void 0),e([X({type:Boolean})],wo.prototype,"ended",void 0),e([X({type:Number})],wo.prototype,"max",void 0),e([X({type:Number})],wo.prototype,"min",void 0),e([X({type:Number})],wo.prototype,"delay",void 0),e([X({type:Number})],wo.prototype,"index",void 0),e([Z()],wo.prototype,"contentInternal",void 0),e([Q("i")],wo.prototype,"_i",void 0),wo=e([v(bo),u(w`:host{${_o}--cursor-width:.05em}:host,:host([contents]) [part=root]{display:inline-block}i{animation:s 1.5s steps(1) infinite;border-right:var(${_o}--cursor-width) solid;margin-left:.02em}@keyframes s{0%{border-color:currentColor}50%{border-color:transparent}}slot{display:none}`)],wo);var xo=wo;return xo.define(),t.Alert=ge,t.Avatar=_e,t.Badge=Ce,t.Breath=Re,t.Button=Ie,t.Card=Ue,t.Carousel=Fe,t.Details=Ze,t.Dialog=ri,t.Divider=ni,t.Dragbox=li,t.Flex=di,t.Form=ui,t.Grid=mi,t.Heading=yi,t.Input=ki,t.Layout=Si,t.Link=Ni,t.Progress=Oi,t.Range=Bi,t.Rotate=Vi,t.Router=Ti,t.Select=qi,t.Skeleton=Qi,t.Split=io,t.Switch=no,t.Text=co,t.Time=fo,t.Tooltip=$o,t.Typewriter=xo,t}({});
|
58
|
+
const Nt=6;let zt=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 Ot=(t,e,s)=>{o(s)||!1===s?t.removeAttribute(e):(!0===s||"string"==typeof s||"number"==typeof s&&!isNaN(s))&&t.setAttribute(e,!0===s?"":String(s))};const It=(t=>(...e)=>({_$litDirective$:t,values:e}))(class AttrDirective extends zt{render(t,e){}update(t,[e,o]){if(e&&t.type===Nt)for(const s in e)(o||Ot)(t.element,s,e[s]);return xt}}),Dt=((t,e)=>o=>t({...e,...o}))(It,{width:"1em",height:"1em",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"}),Ht=(t,e)=>_t`<slot name="${t||kt}" @slotchange=${null}></slot>`;function Bt(t,e,s,a){const l={};return Object.keys(e).forEach(((h,c)=>{const d=t.reduce(((t,s,l)=>{let c=e[h][l];return c=a?a(c,l):c,o(c)||t.push(`${s}:${c}`),t}),[]);l[h]=`${s?s(h,c):h}{${d.join(";")}}`})),l}function Ut(t){let e="";for(const[o,s]of d(t))if(s){const t="object"!=typeof s?s:jt(s);t&&(e+=`${o}{${t}}`)}return e}function jt(t){let e="";for(const[o,s]of d(t))o&&(s||0===s||""===s)&&(e+=`${o}:${s};`);return e}function Lt(t,e){return t?`var(${t})`:""}const Vt=(t,e)=>{if(!t)return kt;const o="string"==typeof t?t:Ut(t);return o?_t`<style media="${kt}">${o}</style>`:kt},Gt=t=>(e,...o)=>{const s=wt(e,o),a=t,l=t=>_t`<svg viewBox="${a}" ${Dt(t)}>${s}</svg>`;return l.body=s,l.viewBox=a,l};function*Ft(t,e,o){for(let o=0;o<t;o++)yield e(o)}const Wt=(t,e,o=" ")=>t?t+(e?o+e:""):e,qt=(...t)=>t.reduce(((t,e)=>{if(!e)return t;if(Array.isArray(e))return Wt(t,qt(...e));if("object"==typeof e){for(const o in e)e[o]&&(t=Wt(t,o));return t}return Wt(t,e)}),"");function Yt(t,e=document.body){if(!e||!t)return[];const o=new Set;e instanceof Element&&e.shadowRoot&&Yt(t,e.shadowRoot).forEach((t=>o.add(t))),e.querySelectorAll(t).forEach((t=>o.add(t)));for(const s of e.children)Yt(t,s).forEach((t=>o.add(t)));return Array.from(o)}function Xt(t,e=document.body){if(!e||!t)return null;let o;if(e instanceof Element&&e.shadowRoot&&(o=Xt(t,e.shadowRoot),o))return o;if(o=e.querySelector(t),o)return o;for(const s of e.children)if(o=Xt(t,s),o)return o;return null}class Events{constructor(){this.inner=new Map}add(t,e,o,s){if(!t||!o)return;const a=this.inner.get(e)||new Map,l=a.get(t)||new Set;return l.add(o),a.set(t,l),this.inner.set(e,a),t.addEventListener(e,o,s),o}remove(t,e,o,s){if(!t||!o)return;const a=this.inner.get(e);if(a){const s=a.get(t);s&&(s.delete(o),s.size||(a.delete(t),a.size||this.inner.delete(e)))}t.removeEventListener(e,o,s)}removeAll(){this.inner.forEach(((t,e)=>{t.forEach(((t,o)=>{t.forEach((t=>{o.removeEventListener(e,t)}))})),t.clear()})),this.inner.clear()}}class Observers{constructor(){this.inner=new Map}add(t,e,o,s){const[a,l]=((t,e,o)=>{let s,a;switch(t){case MutationObserver:case ResizeObserver:s=new t(e),a=t=>s.observe(t,o);break;case IntersectionObserver:s=new t(e,o),a=t=>s.observe(t);break;case PerformanceObserver:s=new t(e),a=()=>s.observe(o)}return[s,a]})(e,o,s);if(a)return this.inner.set(a,(this.inner.get(a)||new Set).add(t)),l(t),a}remove(t,e){t.disconnect();const o=this.inner.get(t);"unobserve"in t?(e?(t.unobserve(e),o?.delete(e)):(o?.forEach((e=>{t.unobserve(e)})),o?.clear()),o&&!o.size&&this.inner.delete(t)):o&&this.inner.delete(t)}removeAll(){this.inner.forEach(((t,e)=>{this.remove(e)}))}}class Ranger{constructor(t,e,o){this.max=Math.max(t,e),this.min=Math.min(t,e),this.diff=this.max-this.min,this.step=o}present(t){return this.normalize(t*this.diff)}normalize(t){return t=this.restrict(t),this.step?this.min+Math.round((t-this.min)/this.step)*this.step:t}restrict(t){return this.max<=t?this.max:this.min>=t?this.min:t}}class RouteTree{constructor(){this.matchType=RouteTree.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))}sort(){const{children:t}=this;if(t.length){t.sort(((t,e)=>t.matchType-e.matchType));for(const e of t)e.sort()}this.sorted=!0}static parseParams(t,e){const o=RouteTree.split(t),s=RouteTree.split(e),a={};for(let t=0;t<s.length;t++){const e=s[t],{key:l,matchType:h}=RouteTree.dynamic(e);if(h===RouteTree.matchType.single)a[l]=o[t];else if(h===RouteTree.matchType.multi){a[l]=o.slice(t).join("/");break}}return a}static dynamic(t){if(t){if(c(t,"{","}")||c(t,"[","]")){t=t.slice(1,-1);const e=RouteTree.dynamic(t);return e.matchType||=RouteTree.matchType.single,e}if(t.startsWith(":"))return{key:t.slice(1),matchType:RouteTree.matchType.single};if(t.startsWith("*"))return{key:t.slice(1),matchType:RouteTree.matchType.multi};if(t.startsWith("..."))return{key:t.slice(3),matchType:RouteTree.matchType.multi}}return{key:t,matchType:RouteTree.matchType.strict}}static join(...t){return t.map((t=>l(t,"/"))).join("/")}static split(t){return t.split("/").filter((t=>t))}}RouteTree.matchType={strict:0,single:1,multi:2};class Timeouts{constructor(){this.inner=new Set}add(t){if(void 0!==t)return t=+t,this.inner.has(t)&&clearTimeout(t),this.inner.add(t),t}remove(t){void 0!==t&&(t=+t,clearTimeout(t),this.inner.delete(t))}removeAll(){this.inner.forEach(clearTimeout),this.inner.clear()}}class GodownElement extends Mt{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(){const t={};for(const[e,o]of this.constructor.elementProperties.entries()){const s=o.attribute??e;s&&(t[!0===s?e:s]=this[e])}return t}get _slot(){return this.shadowRoot?this.shadowRoot.querySelector("slot:not([name])"):null}get _slotAll(){return this.shadowRoot?[...this.shadowRoot.querySelectorAll("slot")]:[]}get _slottedAll(){return[...this.querySelectorAll("[slot]")]}get _slottedNames(){return this._slottedAll.map((t=>t.getAttribute("slot"))).filter((t=>t))}getBoundingClientRect(){let t;return this.contents&&(t=this.contentsRoot||this.shadowRoot?.firstElementChild)&&t!==this?t.getBoundingClientRect():super.getBoundingClientRect()}getClientRects(){let t;return this.contents&&(t=this.contentsRoot||this.shadowRoot?.firstElementChild)&&t!==this?t.getClientRects():super.getClientRects()}get stylex(){return this.__stylex.css}set stylex(t){t=t.trim(),/^[\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.observers=new Observers,this.timeouts=new Timeouts,this.__stylex={},this.assign={...GodownElement.godownConfig?.assign||{},...t}}connectedCallback(){super.connectedCallback(),this.assign&&(Object.assign(this,this.assign),this.assign=null);const{lazy:t}=this.__stylex;t&&(this.adoptStyles(t),this.__stylex.lazy="")}disconnectedCallback(){this.events.removeAll(),this.observers.removeAll(),this.timeouts.removeAll()}mount(t){this.firstUpdated(t)}unmount(){this.disconnectedCallback()}remount(t){this.unmount(),this.connectedCallback(),this.mount(t)}deepQuerySelector(t){return Xt(t,this)}deepQuerySelectorAll(t){return Yt(t,this)}adoptStyles(...t){if(!this.shadowRoot)return;const e=this.shadowRoot.adoptedStyleSheets;if(t.length){const o=new CSSStyleSheet;return t.forEach((t=>o.insertRule(t.toString()))),e.push(o),e.length-1}}dispatchCustomEvent(t,e,o){this.dispatchEvent(new CustomEvent(t,{detail:e,composed:!0,...o}))}}GodownElement.godownConfig=new class GodownConfig{constructor(t){this.assign=null,this.prefix="godown",this.suffix="",this.components=new Map,this.registry=customElements,t&&Object.assign(this,t)}tag(t){return l(s(this.prefix,p)+p+t+p+a(this.suffix,p),p)}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)}},e([X({type:Boolean,reflect:!0})],GodownElement.prototype,"contents",void 0),e([X({reflect:!0})],GodownElement.prototype,"stylex",null);var Zt=Gt("0 0 56 56")`<path fill="currentColor" d="M28 4c13.255 0 24 10.745 24 24S41.255 52 28 52S4 41.255 4 28S14.745 4 28 4m0 4C16.954 8 8 16.954 8 28s8.954 20 20 20s20-8.954 20-20S39.046 8 28 8m10.788 11.93c.67.67.67 1.756 0 2.425l-13.36 13.36a1.715 1.715 0 0 1-2.424 0l-5.645-5.646a1.714 1.714 0 0 1 2.425-2.424l3.22 3.22c.67.67 1.755.67 2.425 0l10.934-10.934c.67-.67 1.755-.67 2.425 0"/>`,Kt=Gt("0 0 56 56")`<path fill="currentColor" d="M28 51.906c13.055 0 23.906-10.828 23.906-23.906c0-13.055-10.875-23.906-23.93-23.906C14.899 4.094 4.095 14.945 4.095 28c0 13.078 10.828 23.906 23.906 23.906m0-3.984C16.937 47.922 8.1 39.062 8.1 28c0-11.04 8.813-19.922 19.876-19.922c11.039 0 19.921 8.883 19.945 19.922c.023 11.063-8.883 19.922-19.922 19.922m-.023-15.68c1.124 0 1.757-.633 1.78-1.851l.352-12.375c.024-1.196-.914-2.086-2.156-2.086c-1.266 0-2.156.867-2.133 2.062l.305 12.399c.023 1.195.68 1.851 1.852 1.851m0 7.617c1.335 0 2.53-1.078 2.53-2.437c0-1.383-1.171-2.438-2.53-2.438c-1.383 0-2.532 1.078-2.532 2.438c0 1.336 1.172 2.437 2.532 2.437"/>`,Qt=Gt("0 0 56 56")`<path fill="currentColor" d="M28 51.906c13.055 0 23.906-10.828 23.906-23.906c0-13.055-10.875-23.906-23.93-23.906C14.899 4.094 4.095 14.945 4.095 28c0 13.078 10.828 23.906 23.906 23.906m0-3.984C16.937 47.922 8.1 39.062 8.1 28c0-11.04 8.813-19.922 19.876-19.922c11.039 0 19.921 8.883 19.945 19.922c.023 11.063-8.883 19.922-19.922 19.922m-.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"/>`,Jt=Gt("0 0 56 56")`<path fill="currentColor" d="M19.504 43.152h16.969c.797 0 1.289-.492 1.289-1.289v-3.75c0-5.672 8.25-9.328 8.25-19.453C46.012 7.996 38.793.871 27.988.871s-18 7.125-18 17.79c0 10.124 8.227 13.78 8.227 19.452v3.75c0 .797.515 1.29 1.289 1.29m2.203-4.992c0-6.89-8.18-10.57-8.18-19.476c0-8.579 5.79-14.274 14.461-14.274c8.672 0 14.485 5.695 14.485 14.274c0 8.906-8.203 12.586-8.203 19.476v1.453H21.707Zm-1.336 11.32h15.235c1.195 0 2.156-.984 2.156-2.203s-.961-2.203-2.157-2.203H20.371c-1.195 0-2.156.985-2.156 2.203c0 1.22.96 2.203 2.156 2.203m7.617 5.649c3.235 0 5.508-1.477 5.742-3.75H22.246c.211 2.273 2.484 3.75 5.742 3.75"/>`,te=Gt("0 0 56 56")`<path fill="currentColor" d="M28 51.906c13.055 0 23.906-10.828 23.906-23.906c0-13.055-10.875-23.906-23.93-23.906C14.899 4.094 4.095 14.945 4.095 28c0 13.078 10.828 23.906 23.906 23.906m0-3.984C16.937 47.922 8.1 39.062 8.1 28c0-11.04 8.813-19.922 19.876-19.922c11.039 0 19.921 8.883 19.945 19.922c.023 11.063-8.883 19.922-19.922 19.922m-.492-15.07c1.172 0 1.898-.727 1.898-1.664v-.282c0-1.312.75-2.133 2.39-3.21c2.274-1.5 3.891-2.884 3.891-5.673c0-3.914-3.468-6-7.453-6c-4.031 0-6.68 1.899-7.312 4.055c-.117.399-.211.774-.211 1.172c0 1.031.844 1.617 1.617 1.617c1.336 0 1.547-.726 2.297-1.594c.773-1.289 1.898-2.062 3.469-2.062c2.133 0 3.515 1.195 3.515 3c0 1.594-.984 2.367-3.023 3.773c-1.688 1.172-2.953 2.414-2.953 4.711V31c0 1.242.68 1.852 1.875 1.852m-.047 7.007c1.36 0 2.531-1.078 2.531-2.437c0-1.383-1.148-2.438-2.531-2.438s-2.531 1.078-2.531 2.438c0 1.336 1.171 2.437 2.53 2.437"/>`,ee=Gt("0 0 56 56")`<path fill="currentColor" d="M28 51.906c13.055 0 23.906-10.828 23.906-23.906c0-13.055-10.875-23.906-23.93-23.906C14.899 4.094 4.095 14.945 4.095 28c0 13.078 10.828 23.906 23.906 23.906m0-3.984C16.937 47.922 8.1 39.062 8.1 28c0-11.04 8.813-19.922 19.876-19.922c11.039 0 19.921 8.883 19.945 19.922c.023 11.063-8.883 19.922-19.922 19.922m-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"/>`,ie=Gt("0 0 56 56")`<path fill="currentColor" d="M28 51.906c13.055 0 23.906-10.828 23.906-23.906c0-13.055-10.875-23.906-23.93-23.906C14.899 4.094 4.095 14.945 4.095 28c0 13.078 10.828 23.906 23.906 23.906m0-3.984C16.937 47.922 8.1 39.062 8.1 28c0-11.04 8.813-19.922 19.876-19.922c11.039 0 19.921 8.883 19.945 19.922c.023 11.063-8.883 19.922-19.922 19.922m-8.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"/>`,oe=Gt("0 0 56 56")`<path fill="currentColor" d="M10.023 43.023c-.796.797-.82 2.157 0 2.954c.82.796 2.157.796 2.977 0l15-15l15 15c.797.796 2.156.82 2.977 0c.796-.82.796-2.157 0-2.954L30.953 28l15.024-15c.796-.797.82-2.156 0-2.953c-.844-.82-2.18-.82-2.977 0l-15 15l-15-15c-.82-.82-2.18-.844-2.977 0c-.796.82-.796 2.156 0 2.953l15 15Z"/>`;const re=(t,e,o)=>({r:t,g:e,b:o,toString(){return`${this.r} ${this.g} ${this.b}`}}),se={darkgray:[re(121,121,121),re(109,109,109),re(97,97,97),re(85,85,85),re(73,73,73),re(61,61,61),re(48,48,48),re(36,36,36),re(24,24,24),re(12,12,12)],lightgray:[re(243,243,243),re(231,231,231),re(219,219,219),re(206,206,206),re(194,194,194),re(182,182,182),re(170,170,170),re(158,158,158),re(146,146,146),re(133,133,133)],teal:[re(213,249,248),re(170,243,241),re(128,237,234),re(85,231,226),re(43,225,219),re(0,219,212),re(0,175,170),re(0,131,127),re(0,88,85),re(0,44,42)],blue:[re(213,240,255),re(170,224,255),re(128,209,255),re(85,193,255),re(43,178,255),re(0,162,255),re(0,130,204),re(0,97,153),re(0,65,102),re(0,32,51)],green:[re(221,243,221),re(186,231,186),re(152,219,152),re(117,206,117),re(82,194,82),re(48,182,48),re(38,146,38),re(29,109,29),re(19,73,19),re(10,36,10)],red:[re(251,221,221),re(247,186,187),re(243,152,154),re(239,118,120),re(235,83,86),re(231,49,52),re(185,39,42),re(139,29,31),re(92,20,21),re(46,10,10)],purple:[re(242,228,253),re(229,201,250),re(217,174,248),re(204,146,245),re(191,119,243),re(178,92,240),re(142,74,192),re(107,55,144),re(71,37,96),re(36,18,48)],orange:[re(255,235,213),re(255,216,170),re(255,196,128),re(255,176,85),re(255,157,43),re(255,137,0),re(204,110,0),re(153,82,0),re(102,55,0),re(51,27,0)],yellow:[re(251,252,216),re(247,248,177),re(243,245,138),re(239,242,98),re(235,238,59),re(231,235,20),re(185,188,16),re(139,141,12),re(92,94,8),re(46,47,4)],pink:[re(254,222,233),re(253,189,211),re(252,156,190),re(251,123,168),re(250,90,146),re(249,57,124),re(199,46,99),re(149,34,74),re(100,23,50),re(50,11,25)]};class GlobalStyle extends GodownElement{}const ne=l(GlobalStyle.godownConfig.prefix,"-");function ae(t,e=1){return function(t){return _(`--${t}`)}(ne+"-".repeat(e)+t)}const le={clipBackground:ae("clip-background",2),active:ae("active",2),passive:ae("passive",2),_colors:{},input:ae("input",2),white:ae("color-white",2),black:ae("color-black",2),color:ae("color",2)};var he,ce;GlobalStyle.styles=[_(`:host{${le.black}:rgb(0 0 0);${le.white}:rgb(255 255 255);`+(he=(t,e,o)=>{le._colors[t]||=[],le._colors[t].push(_(le.color+"-"+t+"-"+e));const s=`-${t}-${e}`;return`${le.color+s}:rgb(${o});`},ce=se,Object.entries(ce).flatMap((([t,e])=>e.map(((e,o)=>he(t,o,e)))))).join("")+jt([[le.active,`var(${le._colors.blue[5]})`],[le.passive,`var(${le._colors.darkgray[5]})`],[le.clipBackground,`linear-gradient(to bottom, var(${le._colors.lightgray[0]}), var(${le._colors.darkgray[5]}))`]])+"}"),w`*{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 de="alert",pe=ae(de),ue=t=>[le._colors[t][5],le._colors[t][9]],ve=Bt(["color","background"].map((t=>`${pe}--${t}`)),{green:ue("green"),blue:ue("blue"),orange:ue("orange"),red:ue("red"),yellow:ue("yellow"),purple:ue("purple"),teal:ue("teal"),pink:ue("pink"),gray:[le._colors.lightgray[5],le._colors.darkgray[5]],white:[le._colors.lightgray[2],le._colors.darkgray[7]],black:[le._colors.darkgray[8],le._colors.lightgray[5]]},(()=>":host"),(t=>Lt(t))),fe={tip:{color:"teal",icon:Jt},success:{color:"green",icon:Zt},info:{color:"blue",icon:Qt},warning:{color:"orange",icon:Kt},danger:{color:"red",icon:ie},error:{color:"red",icon:ie},help:{color:"purple",icon:te},deprecated:{color:"gray",icon:ee}};let me=class Alert extends GlobalStyle{constructor(){super(...arguments),this.color="blue",this.autoclose=0,this.hideClose=!1,this.variant="dark"}render(){const t=fe[this.call]?.color||this.color,e=this.call?fe[this.call].icon():Ht("icon");return _t`<div part="root" ${It(this.observedRecord)}><div part="icon" class="start">${e}</div><div part="content"><strong part="title">${this.title||Ht("title")}</strong> ${this.content||Ht()}</div>${this.hideClose||"blockquote"===this.variant?"":_t`<div part="icon close" class="end" tabindex="0" @click="${this.close}">${oe()}</div>`} ${Vt(ve[t])}</div>`}close(){this.remove(),this.dispatchEvent(new CustomEvent("close",{bubbles:!0,composed:!0}))}firstUpdated(){this.autoclose&&this.timeouts.add(setTimeout((()=>this.close()),this.autoclose))}static alert(t,e){const o=new this;return Object.assign(o,e),t.appendChild(o),o}};e([X()],me.prototype,"call",void 0),e([X()],me.prototype,"color",void 0),e([X({type:Number})],me.prototype,"autoclose",void 0),e([X()],me.prototype,"title",void 0),e([X()],me.prototype,"content",void 0),e([X({type:Boolean})],me.prototype,"hideClose",void 0),e([X()],me.prototype,"variant",void 0),me=e([v(de),u(w`:host,:where(:host([contents]) [part=root]){${pe}--border-radius:.2em;${pe}--border-width:.075em;${pe}--blockquote-width:.2em;${pe}--blockquote-background:transparent;${pe}--gap:.5em;border-radius:var(${pe}--border-radius);display:block;width:100%}[part=root]{align-items:center;background:var(${pe}--background);border-color:currentColor;border-radius:inherit;border-style:solid;border-width:var(${pe}--border-width);color:var(${pe}--color,currentColor);display:grid;grid-template-columns:auto 1fr auto;grid-template-rows:auto 1fr;padding:var(${pe}--gap)}[variant=blockquote]{background:var(${pe}--blockquote-background);border-radius:0;border-width:0;border-left-width:var(${pe}--blockquote-width)}[part~=icon]{align-items:center;display:grid;height:2em}.start svg{margin-inline-end:var(${pe}--gap)}.end svg{margin-inline-start:var(${pe}--gap)}svg{height:1.25em;width:1.25em}[part=content]{grid-row:span 2/span 2}`)],me);var ge=me;ge.define();const ye="avatar",$e=ae(ye);let be=class Avatar extends GlobalStyle{constructor(){super(...arguments),this.name="",this.round=!1}render(){return _t`<div part="root" ${It(h(this.observedRecord,"src"))}>${this._renderAvatar()}</div>`}_renderAvatar(){return this.src?_t`<img part="image" src="${this.src}" alt="${this.name}" @error="${this._handleError}">`:this.name?_t`<span part="name">${this.formatName()}</span>`:Ht()}formatName(){return this.name}_handleError(){this.src=void 0}};e([X()],be.prototype,"src",void 0),e([X()],be.prototype,"name",void 0),e([X({type:Boolean})],be.prototype,"round",void 0),be=e([v(ye),u(w`:host{${$e}--size:2em;background:var(${le.passive});border-radius:.2em;height:var(${$e}--size);vertical-align:bottom;width:var(${$e}--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%}`)],be);var _e=be;_e.define();const we="badge",xe=ae(we);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 _t`<div part="root" ${It(this.observedRecord)}>${Ht()} ${this.value||this.dot?_t`<div part="badge">${this.dot?"":this.formatValue(this.value)}</div>`:""}</div>`}};e([X()],ke.prototype,"position",void 0),e([X({type:Number})],ke.prototype,"value",void 0),e([X({type:Boolean})],ke.prototype,"dot",void 0),e([X({type:Number})],ke.prototype,"max",void 0),ke=e([v(we),u(w`:host{${xe}--background:var(${le.active});${xe}--offset:0%;${xe}--offset-x:var(${xe}--offset);${xe}--offset-y:var(${xe}--offset)}:host,:host([contents]) [part=root]{display:inline-block}[part=root]{position:relative}[part=badge]{background:var(${xe}--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(${xe}--offset-y))}[position$=right]{--left:calc(100% - var(${xe}--offset-x))}[position^=bottom]{--top:calc(100% - var(${xe}--offset-y))}[position$=left]{--left:calc(var(${xe}--offset-x))}`)],ke);var Ce=ke;Ce.define();const Se="breath",Ae=ae(Se);let Re=class Breath extends GlobalStyle{render(){const t=this.getTexts();return _t`<div part="root" ${It(this.observedRecord)}>${[t.map(this._renderText),Vt(this._computeStyle(t.length))]}</div>`}_renderText(t){return _t`<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.duration||1e3*(2*t+2);let s="";for(let e=1;e<=t;e++)s+=`.rel:nth-child(${e}) .colorful{animation-delay:${-o/t*(t-e+1)}ms;background:var(${Ae}--${e},var(${Ae}--${(e-1)%3+1}));}`;return`.colorful{animation-duration:${o}ms;}@keyframes colorfulN{0%,${3*e}%{opacity:0;}${e}%,${2*e}%{opacity:1;}}${s}`}};e([X()],Re.prototype,"content",void 0),e([X({type:Number})],Re.prototype,"duration",void 0),Re=e([v(Se),u(w`:host{${Ae}--deg:60deg;${Ae}--1-1:var(${le._colors.red[5]});${Ae}--1-2:var(${le._colors.yellow[5]});${Ae}--2-1:var(${le._colors.green[5]});${Ae}--2-2:var(${le._colors.purple[5]});${Ae}--3-1:var(${le._colors.blue[5]});${Ae}--3-2:var(${le._colors.pink[5]});${Ae}--1:linear-gradient(var(${Ae}--deg),var(${Ae}--1-1),var(${Ae}--1-2));${Ae}--2:linear-gradient(var(${Ae}--deg),var(${Ae}--2-1),var(${Ae}--2-2));${Ae}--3:linear-gradient(var(${Ae}--deg),var(${Ae}--3-1),var(${Ae}--3-2))}`,w`: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}`,w`.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(${le.clipBackground});position:absolute;top:0}`)],Re);var Ee=Re;Ee.define();const Te="button",Me=ae(Te),Pe=le.white,Ne=le.black,ze=Bt(["color","background","gradients"].map((t=>`${Me}--${t}`)),{black:[Pe,le._colors.darkgray[7],le._colors.darkgray[5]],gray:[Pe,le._colors.darkgray[1],le._colors.lightgray[8]],white:[Ne,le._colors.lightgray[3],le._colors.lightgray[0]],blue:[Pe,le._colors.blue[6],le._colors.blue[4]],green:[Pe,le._colors.green[6],le._colors.green[4]],red:[Pe,le._colors.red[6],le._colors.red[4]],orange:[Pe,le._colors.orange[6],le._colors.orange[4]],pink:[Pe,le._colors.pink[6],le._colors.pink[4]],purple:[Pe,le._colors.purple[6],le._colors.purple[4]],yellow:[Ne,le._colors.yellow[6],le._colors.yellow[4]],teal:[Pe,le._colors.teal[6],le._colors.teal[4]]},(()=>":host"),(t=>Lt(t)));let Oe=class Button extends GlobalStyle{constructor(){super(...arguments),this.plain=!1,this.disabled=!1,this.ghost=!1,this.active=!1,this.round=!1,this.color="black"}render(){const t=this.nextColor();return _t`<div part="root" ${It(this.observedRecord)}><span part="modal-root"></span><div part="content">${[this.content||Ht(),Vt(ze[t])]}</div></div>`}focus(){this.disabled||(this.active=!0,super.focus())}blur(){this.active=!1,super.blur()}connectedCallback(){super.connectedCallback(),this.events.add(this,"click",this._handelClick,!0)}_handelClick(t){if(this.disabled)return t.stopPropagation(),void t.preventDefault();this.plain||this._handleModal(t)}_handleModal(t){const e=document.createElement("i"),{width:o,height:s}=this.getBoundingClientRect(),{x:a,y:l}=this._root.getBoundingClientRect(),h=2*Math.sqrt(s**2+o**2)+"px";e.style.height=h,e.style.width=h,e.style.left=t.x-a+"px",e.style.top=t.y-l+"px",e.style.animationName="kf",this._modalRoot.appendChild(e),e.addEventListener("animationend",(()=>e.remove()),{once:!0})}nextColor(){return this.color}};e([X({type:Boolean,reflect:!0})],Oe.prototype,"plain",void 0),e([X({type:Boolean,reflect:!0})],Oe.prototype,"disabled",void 0),e([X({type:Boolean,reflect:!0})],Oe.prototype,"ghost",void 0),e([X({type:Boolean,reflect:!0})],Oe.prototype,"active",void 0),e([X({type:Boolean,reflect:!0})],Oe.prototype,"round",void 0),e([X({reflect:!0})],Oe.prototype,"color",void 0),e([X()],Oe.prototype,"content",void 0),e([tt("modal-root")],Oe.prototype,"_modalRoot",void 0),e([tt("root")],Oe.prototype,"_root",void 0),Oe=e([v(Te),u(w`:host(:not([disabled]):active){transform:scale(var(${Me}--focus-scale))}:host([round]){border-radius:calc(infinity*1px)}:host([disabled]){cursor:not-allowed;filter:brightness(.85)}:host([ghost]){${Me}--modal-background:var(${Me}--ghost-color);background:transparent;box-shadow:inset 0 0 0 var(${Me}--ghost-width) var(${Me}--ghost-color);color:var(${Me}--ghost-color)}:host([plain]){${Me}--gradients:unset;${Me}--focus-scale:unset}`,w`:host{${Me}--padding-x:.8em;${Me}--padding-y:calc(var(${Me}--padding-x)/4);${Me}--padding:var(${Me}--padding-y) var(${Me}--padding-x);${Me}--modal-animation-duration:1s;${Me}--ghost-width:.08em;${Me}--focus-scale:.97;${Me}--deg:45deg;${Me}--ghost-color:var(${Me}--background);background:linear-gradient(var(${Me}--deg),var(${Me}--background),var(${Me}--gradients,var(${Me}--background)));border-radius:.2em;color:var(${Me}--color,inherit);cursor:pointer;display:block;overflow:hidden;padding:var(${Me}--padding);text-align:center;width:-moz-fit-content;width:fit-content}:host([contents]) [part=root]{width:-moz-fit-content;width:fit-content}[part=root]{border-radius:inherit;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(${Me}--modal-animation-duration);background:var(${Me}--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(${Me}--modal-opacity,.1);transform:scale(0) translate(-50%,-50%)}80%{transform:scale(1) translate(-50%,-50%)}to{opacity:0}}`)],Oe);var Ie=Oe;Ie.define();const De="card",He=ae(De);let Be=class Card extends GlobalStyle{constructor(){super(...arguments),this.footer=!1,this.header=!1}render(){return _t`<div part="root" ${It(this.observedRecord)}>${[this.header?Ht("header"):"",Ht(),this.footer?Ht("footer"):""]}</div>`}};e([X({type:Boolean})],Be.prototype,"footer",void 0),e([X({type:Boolean})],Be.prototype,"header",void 0),Be=e([v(De),u(w`:host{${He}--border-width:.075em;${He}--border-color:var(${le.passive});${He}--padding:.5em;border-radius:.2em;border-width:var(${He}--border-width);display:block;flex-shrink:0}slot{display:block;padding:var(${He}--padding)}:host,slot{border-color:var(${He}--border-color);border-style:solid}[part=root]{width:100%}[name=footer]{border-top-width:var(${He}--border-width)}[name=header]{border-bottom-width:var(${He}--border-width)}`)],Be);var Ue=Be;Ue.define();var je=Gt("0 0 56 56")`<path fill="currentColor" d="M35.805 47.723c.398.398.914.633 1.523.633c1.219 0 2.133-.915 2.133-2.133c0-.586-.234-1.125-.61-1.524L21.79 28.012l17.063-16.688c.375-.398.609-.96.609-1.523c0-1.219-.914-2.157-2.133-2.157c-.61 0-1.125.235-1.523.633L17.242 26.441c-.445.375-.703.961-.703 1.57c0 .587.258 1.126.703 1.571Z"/>`,Le=Gt("0 0 56 56")`<path fill="currentColor" d="M18.695 48.367c.586 0 1.102-.234 1.524-.633L38.78 29.57c.446-.445.68-.984.68-1.57c0-.61-.234-1.172-.68-1.57L20.22 8.289a2.07 2.07 0 0 0-1.524-.656a2.12 2.12 0 0 0-2.156 2.156c0 .563.258 1.125.633 1.524L34.21 28L17.17 44.688c-.374.398-.632.937-.632 1.523c0 1.219.938 2.156 2.156 2.156"/>`;function Ve(t){return t.getBoundingClientRect().width}let Ge=class Carousel extends GlobalStyle{constructor(){super(...arguments),this.index=0,this.autoChange=0}render(){return _t`<div part="root" ${It(this.observedRecord)}><i part="prev" @click="${this.prev}">${je()}</i><div part="move-root">${Ht()}</div><i part="next" @click="${this.next}">${Le()}</i></div>`}connectedCallback(){super.connectedCallback(),this.children.length&&(this.__cloneFirst?.remove(),this.__cloneLast?.remove(),this.__cloneLast=this.firstElementChild.cloneNode(!0),this.__cloneFirst=this.lastElementChild.cloneNode(!0),this.appendChild(this.__cloneLast),this.insertBefore(this.__cloneFirst,this.firstElementChild)),this.observers.add(this,ResizeObserver,(()=>{this._offset=this._computeOffset(),this._doTranslateX(`${this._offset}px`,!0)}))}async firstUpdated(){await this.updateComplete,this.show(this.index,!0)}attributeChangedCallback(t,e,o){super.attributeChangedCallback(t,e,o),"index"===t&&this.isConnected&&this.show(this.index)}show(t,e){t=this.normalizeIndex(t),this.index=t,this._offset=this._computeOffset(),this._doTranslateX(`${this._offset}px`,e),this.dispatchCustomEvent("change",t),this.timeouts.remove(this.intervalID),this.autoChange>0&&(this.intervalID=this.timeouts.add(setInterval((()=>{this.next()}),this.autoChange)))}next(){this.index===this.childElementCount-3?(this._doTranslateX("0",!0),this.show(0)):this.show(this.index+1)}prev(){0===this.index?(this._doTranslateX(`-${this.childElementCount-1}00%`,!0),this.show(this.children.length-3)):this.show(this.index-1)}_doTranslateX(t,e){this._moveRoot.style.transform=`translateX(${t})`,this._moveRoot.style.transition=e?"none":""}_computeOffset(){let t=0;for(let e=0;e<=this.index;e++)t-=Ve(this.children[e]);return t+=(Ve(this)-Ve(this.children[this.index+1]))/2,t}normalizeIndex(t){return t<0?0:t>this.children.length-3?this.children.length-3:t}};e([X({type:Number})],Ge.prototype,"index",void 0),e([X({type:Number})],Ge.prototype,"autoChange",void 0),e([tt("move-root")],Ge.prototype,"_moveRoot",void 0),Ge=e([v("carousel"),u(w`:host{display:block;transition:.3s}[part=root]{direction:ltr;overflow:hidden}[part=move-root],[part=root]{display:flex;height:100%;position:relative;transition:inherit;width:100%}[part=next],[part=prev]{align-items:center;display:flex;height:100%;justify-content:center;position:absolute;-webkit-user-select:none;user-select:none;width:1.5em;z-index:1}[part=prev]{left:0}[part=next]{right:0}slot::slotted(*){flex-shrink:0!important}`)],Ge);var Fe=Ge;Fe.define();var We=Gt("0 0 56 56")`<path fill="currentColor" d="M28 39.46a2.1 2.1 0 0 0 1.57-.679l18.164-18.586a2.1 2.1 0 0 0 .633-1.5a2.12 2.12 0 0 0-2.156-2.156a2.27 2.27 0 0 0-1.523.61L28 34.21L11.313 17.148a2.23 2.23 0 0 0-1.524-.609a2.12 2.12 0 0 0-2.156 2.156c0 .586.234 1.102.633 1.524L26.43 38.78c.445.446.96.68 1.57.68"/>`;class SuperOpenable extends GlobalStyle{constructor(){super(...arguments),this.open=!1}toggle(t=!this.open){this.open=t}close(){this.open=!1}show(){this.open=!0}updated(t){void 0!==t.get("open")&&this.dispatchEvent(new CustomEvent("change",{detail:this.open,composed:!0}))}}e([X({type:Boolean,reflect:!0})],SuperOpenable.prototype,"open",void 0);const qe="details",Ye=ae(qe);let Xe=class Details extends SuperOpenable{constructor(){super(...arguments),this.fill=!1,this.summary=""}render(){return _t`<dl part="root" ${It(this.observedRecord)}><dt part="title" @click="${()=>this.toggle()}"><span part="summary">${this.summary||Ht("summary")}</span> <span><i part="icon">${We()}</i></span></dt><dd part="details" @click="${this.fill?()=>this.toggle():null}"><div style="min-height: 0;">${Ht()}</div></dd></dl>`}};e([X({type:Boolean})],Xe.prototype,"fill",void 0),e([X()],Xe.prototype,"summary",void 0),Xe=e([v(qe),u(w`:host{${Ye}--icon-deg-open:0deg;${Ye}--icon-deg-close:90deg;${Ye}--icon-space:0.3em;${Ye}--summary-direction:row;${Ye}--transition:.3s;display:block;height:-moz-fit-content;height:fit-content;transition:var(${Ye}--transition)}[part=root]{height:100%;overflow:hidden;position:relative}[part=title]{align-items:center;background:inherit;direction:ltr;display:flex;flex-direction:var(${Ye}--summary-direction);flex-wrap:nowrap;height:100%;justify-content:space-between}[part=details]{display:grid;grid-template-rows:0fr;overflow:hidden;transition:var(${Ye}--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(${Ye}--icon-space);transform:rotate(var(${Ye}--icon-deg-close));transition:var(${Ye}--transition)}:host([open]) [part=icon]{transform:rotate(var(${Ye}--icon-deg-open))}`)],Xe);var Ze=Xe;Ze.define();const Ke=_("[direction-inset-align]"),Qe=w`[direction^=top] ${Ke}{top:0}[direction^=bottom] ${Ke}{bottom:0}[direction$=right] ${Ke}{right:0}[direction$=left] ${Ke}{left:0}`,Je=_("[direction-outset-place]"),ti=w`[direction^=top] ${Je}{bottom:100%}[direction^=bottom] ${Je}{top:100%}[direction$=right] ${Je}{left:100%}[direction$=left] ${Je}{right:100%}`,ei="dialog",ii=ae(ei);let oi=class Dialog extends SuperOpenable{constructor(){super(...arguments),this.modal=!1,this.key="Escape",this.__modalInvoke=!1}render(){return _t`<div part="root" ${It(this.observedRecord)}><div part="modal"></div><div part="container" direction-inset-align>${Ht()}</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}};e([X()],oi.prototype,"direction",void 0),e([X({type:Boolean,reflect:!0})],oi.prototype,"modal",void 0),e([X()],oi.prototype,"key",void 0),oi=e([v(ei),u(Qe,w`:host{${ii}--background:none;${ii}--background-modal:#000;${ii}--opacity-modal:0.2;background:var(${ii}--background);inset:0;pointer-events:none;position:fixed;z-index:1}:host(:not([open])){visibility:hidden}:host([modal]) [part=modal]{opacity:var(${ii}--opacity-modal);pointer-events:all}[part=modal]{background:var(${ii}--background-modal);height:100%;opacity:0;position:absolute;visibility:inherit;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}`)],oi);var ri=oi;ri.define();let si=class Divider extends GlobalStyle{constructor(){super(...arguments),this.vertical=!1}render(){return _t`<div part="root" ${It(this.observedRecord)}></div>`}};e([X({type:Boolean,reflect:!0})],si.prototype,"vertical",void 0),si=e([v("divider"),u(w`:host{background:currentColor;color:var(${le.passive});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}`)],si);var ni=si;ni.define();let ai=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 _t`<div part="root" ${It(this.observedRecord)} @mousedown="${this._handleDragStart}" @mouseup="${this._handleDragEnd}">${Ht()}</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")}};e([X()],ai.prototype,"x",void 0),e([X()],ai.prototype,"y",void 0),ai=e([v("dragbox"),u(w`:host{display:block;position:absolute}:host(:active){-webkit-user-select:none;user-select:none}`)],ai);var li=ai;li.define();let hi=class Flex extends GlobalStyle{constructor(){super(...arguments),this.vertical=!1}render(){return _t`<div part="root" ${It(this.observedRecord)}>${[Ht(),Vt(Ut({":host":{gap:this.gap,"flex-flow":this.flexFlow,"flex-direction":this.vertical&&"column","align-items":this.items,"justify-content":this.content}}))]}</div>`}};e([X({attribute:"flex-flow"})],hi.prototype,"flexFlow",void 0),e([X()],hi.prototype,"gap",void 0),e([X()],hi.prototype,"content",void 0),e([X()],hi.prototype,"items",void 0),e([X({type:Boolean})],hi.prototype,"vertical",void 0),hi=e([v("flex"),u(w`:host,:host([contents]) [part=root]{display:flex}[part=root]{display:contents}`)],hi);var ci,di=hi;di.define();let pi=ci=class Form extends GlobalStyle{constructor(){super(...arguments),this.name="",this.nameValue=this.namevalue}get value(){return ci.buildValue(this._slot.assignedElements())}render(){return Ht()}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}};e([X()],pi.prototype,"name",void 0),pi=ci=e([v("form"),u(w`:host{display:block}`)],pi);var ui=pi;ui.define();const vi=t=>isNaN(+t)?t:`repeat(${t},1fr)`;let fi=class Grid extends GlobalStyle{render(){return _t`<div part="root" ${It(this.observedRecord)}>${[Ht(),Vt(Ut({":host":{gap:this.gap,"grid-template-columns":vi(this.columns),"grid-template-rows":vi(this.rows),"place-content":this.content,"place-items":this.items}}))]}</div>`}};e([X()],fi.prototype,"gap",void 0),e([X()],fi.prototype,"columns",void 0),e([X()],fi.prototype,"rows",void 0),e([X()],fi.prototype,"content",void 0),e([X()],fi.prototype,"items",void 0),fi=e([v("grid"),u(w`:host,:host([contents]) [part=root]{display:grid}[part=root]{display:contents}`)],fi);var mi=fi;mi.define();let gi=class Heading extends GlobalStyle{constructor(){super(...arguments),this.as="h1",this.anchor="#",this.side="left"}render(){return _t`<a part="root" href="${this.id?"#"+this.id:kt}" ${It(this.observedRecord)}>${this.wrapHeading(Ht(),this.id?_t`<i part="anchor">${this.anchor}</i>`:"")}</a>`}wrapHeading(...t){switch(this.as){case"h2":return _t`<h2>${t}</h2>`;case"h3":return _t`<h3>${t}</h3>`;case"h4":return _t`<h4>${t}</h4>`;case"h5":return _t`<h5>${t}</h5>`;case"h6":return _t`<h6>${t}</h6>`;default:return _t`<h1>${t}</h1>`}}};e([X()],gi.prototype,"as",void 0),e([X()],gi.prototype,"anchor",void 0),e([X()],gi.prototype,"side",void 0),gi=e([v("heading"),u(w`: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}`)],gi);var yi=gi;yi.define();var $i=Gt("0 0 56 56")`<path fill="currentColor" d="M43.95 47.323c.304.305.732.468 1.119.468c.814 0 1.567-.733 1.567-1.568c0-.407-.163-.814-.468-1.12L12.112 11.069a1.57 1.57 0 0 0-1.12-.448c-.814 0-1.567.733-1.567 1.547c0 .428.143.835.448 1.12Zm1.913-5.761C52.255 37.43 56 32.056 56 29.674c0-4.132-11.297-17.303-27.99-17.303c-3.46 0-6.697.59-9.669 1.567l5.313 5.293a11 11 0 0 1 4.356-.896c6.31 0 11.38 4.988 11.38 11.339c0 1.547-.326 3.033-.958 4.336ZM28.01 46.977c3.766 0 7.267-.672 10.402-1.771l-5.394-5.395a10.8 10.8 0 0 1-5.008 1.201c-6.35 0-11.379-5.15-11.4-11.338c0-1.832.428-3.562 1.202-5.09l-7.084-7.124C4.01 21.592 0 27.231 0 29.674c0 4.112 11.501 17.303 28.01 17.303m6.473-17.73a6.446 6.446 0 0 0-6.473-6.454c-.264 0-.53.02-.773.041l7.206 7.206c.02-.244.04-.529.04-.794m-12.966-.041c0 3.582 2.951 6.473 6.514 6.473c.285 0 .55-.02.834-.04l-7.308-7.309c-.02.285-.04.59-.04.876"/>`;const bi=w`.input-field{align-items:center;border-radius:inherit;display:flex;height:inherit;position:relative}.input-field [part=input]{background:none;color:inherit;height:100%;padding:var(${le.input}-space);width:100%}.input-field [part=icon]{align-items:center;color:var(${le.input}-icon-color);display:flex;justify-content:center}.input-field [part=prefix],.input-field [part=suffix]{display:flex;height:100%}.input-field [part=suffix] [part=icon]{padding-inline-end:var(${le.input}-space)}.input-field [part=prefix] [part=icon]{padding-inline-start:var(${le.input}-space)}`,_i=w`:host{${le.input}-width:10em;${le.input}-height:1.6em;${le.input}-space:0.2em;${le.input}-control:currentColor;${le.input}-outline-width:.075em;${le.input}-outline-color:var(${le._colors.darkgray[4]});${le.input}-icon-color:var(${le._colors.darkgray[4]});border-radius:.2em}:host([disabled]){cursor:not-allowed;filter:brightness(.85)}:host(:focus-within){${le.input}-icon-color:currentColor}input:disabled{cursor:inherit}input::-ms-clear,input::-ms-reveal{display:none}`;let wi=class SuperInput extends GlobalStyle{constructor(){super(...arguments),this.autofocus=!1,this.outlineType="border",this.disabled=!1,this.compositing=!1,this.makeId=Math.random().toString(36).slice(1),this.nameValue=this.namevalue}get observedRecord(){return h(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,composed:!0,bubbles:!0})))}_handleChange(t){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 _t`<label for="${this.makeId}" part="prefix">${Ht("prefix")}</label>`}_renderSuffix(){return _t`<label for="${this.makeId}" part="suffix">${Ht("suffix")}</label>`}};e([X()],wi.prototype,"autocomplete",void 0),e([X({attribute:"outline-type"})],wi.prototype,"outlineType",void 0),e([X({type:Boolean,reflect:!0})],wi.prototype,"disabled",void 0),e([X({reflect:!0})],wi.prototype,"type",void 0),e([X({reflect:!0})],wi.prototype,"placeholder",void 0),e([X({reflect:!0})],wi.prototype,"name",void 0),e([X()],wi.prototype,"value",void 0),e([X()],wi.prototype,"default",void 0),e([tt("input")],wi.prototype,"_input",void 0),wi=e([u(bi,new class OutlineBuilder{constructor(t){const e=_(t.width),o=_(t.color);this.css=w`[outline-type=outline-inset],[outline-type=outline]{outline-color:var(${o});outline-style:solid;outline-width:var(${e})}[outline-type=outline-inset]{outline-offset:calc(var(${e})*-1)}[outline-type=box-shadow]{box-shadow:0 0 0 var(${e}) var(${o})}[outline-type=box-shadow-inset]{box-shadow:inset 0 0 0 var(${e}) var(${o})}[outline-type=border]{border-color:var(${o});border-style:solid;border-width:var(${e})}`}get styleSheet(){return this.css.styleSheet}}({width:`${le.input}-outline-width`,color:`${le.input}-outline-color`}).styleSheet,_i)],wi);let xi=class Input extends wi{constructor(){super(...arguments),this.type="text",this.variant="default"}render(){return _t`<div part="root" ${It(this.observedRecord)} class="${qt("input-field",this.variant)}">${[this._renderPrefix(),_t`<input part="input" type="${this.type}" .value="${this.value}" ?autofocus="${this.autofocus}" ?disabled="${this.disabled}" autocapitalize="${this.autocapitalize||kt}" autocomplete="${this.autocomplete||kt}" placeholder="${this.placeholder||kt}" id="${this.makeId}" @input="${this._handleInput}" @change="${this._handleChange}">`,this._renderSuffix()]}</div>`}_renderSuffix(){const t="password";return _t`<label for="${this.makeId}" part="suffix">${this.type===t?_t`<i part="icon" @mousedown="${()=>this._changeInputType("text")}" @mouseup="${()=>this._changeInputType(t)}" @mouseleave="${()=>this._changeInputType(t)}">${$i()}</i>`:Ht("suffix")}</label>`}};e([X()],xi.prototype,"variant",void 0),e([tt("input")],xi.prototype,"_input",void 0),xi=e([v("input"),u(w`:host{display:block;height:var(${le.input}-height);width:var(${le.input}-width)}.outline,:host(:focus-within){${le.input}-outline-color:var(${le.active})}`)],xi);var ki=xi;ki.define();let Ci=class Layout extends GlobalStyle{constructor(){super(...arguments),this.noHeader=!1,this.noFooter=!1,this.sticky=!1}render(){return _t`<div part="root" ${It(this.observedRecord)}>${this.noHeader?"":_t`<header part="header">${Ht("header")}</header>`}<main part="main">${Ht()}</main>${this.noFooter?"":_t`<footer part="footer">${Ht("footer")}</footer>`}</div>`}};e([X({type:Boolean})],Ci.prototype,"noHeader",void 0),e([X({type:Boolean})],Ci.prototype,"noFooter",void 0),e([X({type:Boolean})],Ci.prototype,"sticky",void 0),Ci=e([v("layout"),u(w`: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%}`)],Ci);var Si=Ci;Si.define();let Ai=class SuperAnchor extends GlobalStyle{constructor(){super(...arguments),this.target="_self"}get pathname(){return new URL(this.href,location.href).pathname}render(){return _t`<a part="root" ${It(this.observedRecord)} href="${this.href||kt}" target="${this.target}" @click="${this._handleClick}">${Ht()}</a>`}};var Ri;e([X()],Ai.prototype,"href",void 0),e([X()],Ai.prototype,"target",void 0),Ai=e([u(w`: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%}`)],Ai);let Ei=Ri=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=Ht(),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(),Ri.routerInstances.add(this),"field"!==this.type&&(this.observers.add(this,MutationObserver,this.collectSlottedRoutes,{attributes:!0,attributeFilter:["slot"],subtree:!0}),this.collectSlottedRoutes())}disconnectedCallback(){super.disconnectedCallback(),Ri.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?.(h(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?Ht(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)}};Ei.routerInstances=new Set,e([Z()],Ei.prototype,"component",void 0),e([Z()],Ei.prototype,"path",void 0),e([X()],Ei.prototype,"pathname",void 0),e([Z()],Ei.prototype,"default",void 0),e([X()],Ei.prototype,"type",void 0),e([X({type:Boolean})],Ei.prototype,"cache",void 0),e([Z()],Ei.prototype,"routes",null),Ei=Ri=e([v("router"),u(w`:host{display:contents}`)],Ei);var Ti=Ei;const Mi="auto";let Pi=class Link extends Ai{constructor(){super(...arguments),this.type=Mi,this.suppress=!1,this.replace=!1,this.state={},this.handleState=()=>{switch(this.type){case Mi: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=[...Ti.routerInstances];l||o===Mi&&!h.some((t=>t.search(location.pathname)))||(t.preventDefault(),Ti.routerInstances.forEach((t=>{t.handlePopstate()})))}};e([X()],Pi.prototype,"type",void 0),e([X({type:Boolean})],Pi.prototype,"suppress",void 0),e([X({type:Boolean})],Pi.prototype,"replace",void 0),Pi=e([v("link")],Pi);var Ni=Pi;Ni.define();let zi=class Progress extends GlobalStyle{constructor(){super(...arguments),this.max=1,this.min=0}render(){let t,e=20;if(!o(this.value)){const o=new Ranger(this.min,this.max);e=100*o.restrict(this.value/o.diff),t="static"}return _t`<div part="root" ${It(this.observedRecord)} class="${t}"><i part="value" style="width:${e}%;"></i></div>`}};e([X({type:Number})],zi.prototype,"max",void 0),e([X({type:Number})],zi.prototype,"min",void 0),e([X({type:Number})],zi.prototype,"value",void 0),zi=e([v("progress"),u(w`:host{background:var(${le.passive});border-radius:.25em;color:var(${le.active});height:.5em;width:100%}:host,[part=root]{display:block}[part=root]{border-radius:inherit;height:inherit;overflow:hidden;position:relative;z-index:1}[part=value]{animation:progress 1.8s ease-in-out infinite alternate;background:currentColor;border-radius:inherit;height:100%;left:0;position:absolute;top:0;transition:all .3s;z-index:2}@keyframes progress{0%{left:0}to{left:80%}}.static [part=value]{animation:none}`)],zi);var Oi=zi;Oi.define();const Ii="range",Di=ae(Ii);let Hi=class Range extends wi{constructor(){super(...arguments),this.min=0,this.max=100,this.vertical=!1,this.__focusStack=[]}get range(){return Array.isArray(this.value)}get rangeValue(){return this.range?this.value:[this.value]}padValue(t,e=0){const{rangeValue:o}=this,s=t-o.length;return s>0?new Array(s).fill(e).concat(o):o}attributeChangedCallback(t,e,o){super.attributeChangedCallback(t,e,o),"max"!==t&&"min"!==t&&"step"!==t||(this._ranger=new Ranger(this.min,this.max,this.step))}get observedRecord(){return h(super.observedRecord,"outline-type")}render(){const t=this.padValue(2),e=Math.min(...t),o=Math.max(...t),s=this._ranger.diff;return _t`<div part="root" ${It(this.observedRecord)} @mousedown="${this.disabled?null:this._handleMousedownRoot}" style="${jt([["--from",(e-this.min)/s*100+"%"],["--to",(o-this.min)/s*100+"%"],...t.map(((t,e)=>[`--handle-${e}`,(t-this.min)/s*100+"%"]))])}"><div part="track"></div>${Ft(this.rangeValue.length,(t=>this._renderHandle(t)))}</div>`}_renderHandle(t){const{disabled:e,range:o,rangeValue:s}=this,a=!o||o&&t===s.length-1&&1===s.length;return _t`<i tabindex="0" part="handle" class="${qt({"last-focus":this.lastFocus===t})}" @mousedown="${e?null:this.createMouseDown(t)}" @focus="${e?null:()=>this.focusHandle(t)}" @blur="${e?null:this.blurHandle}" style="${jt({"z-index":this.__focusStack.indexOf(t)+1,"--handle":`var(--${a?"to":`handle-${t}`})`})}"></i>`}focusHandle(t){this.lastFocus=t;const e=this.__focusStack.indexOf(t);-1!==e&&this.__focusStack.splice(e,1),this.__focusStack.push(t);const o=this._handles.item(t);o?.focus(),this.__keydownEvent||(this.__keydownEvent=this.events.add(document,"keydown",this.createKeydownEvent(t))),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){const{rangeValue:e,step:o}=this;return e.length<2&&(t=0),s=>{const a=e[t];"ArrowLeft"===s.key||"ArrowDown"===s.key?(s.preventDefault(),this.createSetValue(t)(a-o)):"ArrowRight"!==s.key&&"ArrowUp"!==s.key||(s.preventDefault(),this.createSetValue(t)(a+o))}}createMouseDown(t){return e=>{this.focusHandle(t),this.createMousedownListener(this.createSetValue(t))(e)}}createSetValue(t){return e=>{const o=this._ranger.normalize(e);let s=o;this.range&&(s=[...this.value],s[t]=o),this.value=s,this.dispatchEvent(new CustomEvent("range",{detail:this.value}))}}_computeValue({clientX:t,clientY:e}){const{top:o,left:s,height:a,width:l}=this._root.getBoundingClientRect();return this._ranger.present(this.vertical?(e-o)/a:(t-s)/l)}_handleMousedownRoot(t){const e=this._computeValue(t),o=this.range?this.rangeValue.reduce(((t,o,s)=>Math.abs(e-o)<Math.abs(e-this.rangeValue[t])?s:t),0):0,s=this.createSetValue(o);s(e),this.createMousedownListener(s)(t),this.focusHandle(o)}createMousedownListener(t){return e=>{e.preventDefault(),e.stopPropagation();const o=this.createMousemoveListener(t);this.events.add(document,"mousemove",o);const s=()=>{this.events.remove(document,"mousemove",o),this.events.remove(document,"mouseup",s)};this.events.add(document,"mouseup",s)}}createMousemoveListener(t){return e=>{const o=this._computeValue(e);o===this._ranger.restrict(o)&&t?.call(this,o)}}_connectedInit(){this._ranger=new Ranger(this.min,this.max,this.step);const t=this._ranger.diff;this.step||=t/100,o(this.value)&&(o(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}};e([X({type:Number})],Hi.prototype,"min",void 0),e([X({type:Number})],Hi.prototype,"max",void 0),e([X({type:Number})],Hi.prototype,"step",void 0),e([X({type:Boolean,reflect:!0})],Hi.prototype,"vertical",void 0),e([X({type:Array})],Hi.prototype,"value",void 0),e([X({type:Array})],Hi.prototype,"default",void 0),e([tt("root")],Hi.prototype,"_root",void 0),e([function(t){return(e,o)=>K(e,o,{get(){return(this.renderRoot??(J??=document.createDocumentFragment())).querySelectorAll(t)}})}("[part=handle]")],Hi.prototype,"_handles",void 0),e([Z()],Hi.prototype,"lastFocus",void 0),Hi=e([v(Ii),u(w`:host{${Di}--handle-active:var(${le.active});${Di}--track-width:.5em;${Di}--length:var(${le.input}-width);background:var(${le.passive});display:block;width:var(${Di}--length)}:host([contents]) [part=root]{width:inherit}:host([vertical]){height:var(${Di}--length);width:-moz-fit-content;width:fit-content}:host(:not([disabled])) .last-focus{${Di}--handle-scale:1.05;background:var(${Di}--handle-active)}[part=root]{position:relative;width:100%;--from:0%;--to:50%;height:var(${Di}--track-width)}[part=root],[part=track]{border-radius:inherit;min-height:inherit}[part=track]{background:var(${le.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(${le.active});border:.1em solid;border-color:var(${le.input}-control);border-radius:50%;height:1em;justify-content:center;transform:scale(var(${Di}--handle-scale,1)) translate(-50%,-25%);transform-origin:0 25%;-webkit-user-select:none;user-select:none;width:1em}`,w`[vertical]{height:inherit;width:var(${Di}--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%}`,w`[part=handle]{left:var(--handle);top:0}[vertical] [part=handle]{left:0;top:var(--handle)}`)],Hi);var Bi=Hi;Bi.define();const Ui="rotate",ji=ae(Ui);let Li=class Rotate extends GlobalStyle{render(){return _t`<div part="root"><div part="slot" @mousemove="${this._handleRotate}">${Ht()}</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}}};e([tt("root")],Li.prototype,"_root",void 0),Li=e([v(Ui),u(w`:host{display:block;transition:all .5s ease-in-out;width:-moz-fit-content;width:fit-content;${ji}--padding:.75em;${ji}--offset:.5em}div{position:relative;transition:inherit;transition-property:transform}i{box-sizing:content-box;height:100%;margin:calc(var(${ji}--offset)*-1);padding:var(${ji}--offset);position:absolute;top:0;width:100%}[part=slot]{z-index:2}`)],Li);var Vi=Li;function Gi(t,e){return t&&e&&t.toLowerCase().includes(e.toLowerCase())}function Fi(t,e){if(t){const o="checked";e?t.setAttribute(o,""):t.removeAttribute(o)}}Vi.define(),Ti.define();let Wi=class Select extends ki{constructor(){super(...arguments),this.multiple=!1,this.visible=!1,this.autoDirection="bottom",this.__store=[]}get observedRecord(){return{...super.observedRecord,direction:this.direction||this.autoDirection}}render(){return _t`<div part="root" ${It(this.observedRecord)} class="input-field">${[this._renderPrefix(),_t`<input part="input" type="${this.type}" .value="${this.text}" ?autofocus="${this.autofocus}" ?disabled="${this.disabled}" autocapitalize="${this.autocapitalize||kt}" autocomplete="${this.autocomplete||kt}" placeholder="${this.placeholder||kt}" id="${this.makeId}" @focus="${this._handleFocus}" @input="${this._handleInput}" @change="${this._handleChange}">`,_t`<label for="${this.makeId}" part="suffix"><i part="icon">${We()}</i></label>`,_t`<label for="${this.makeId}" part="content" direction-outset-place>${Ht()}</label>`]}</div>`}_handleFocus(){if(!this.direction){const{top:t,bottom:e}=this.getBoundingClientRect();window.innerHeight-e<this._content.clientHeight&&t>this._content.clientHeight?this.autoDirection="top":this.autoDirection="bottom"}this.visible=!0}firstUpdated(){this.events.add(this._content,"click",(t=>{t.preventDefault(),t.stopPropagation();const{target:e}=t,o=this.optionValue(e);if(o){const t=this.select(o,e.textContent);this.multiple||Fi(this.lastChecked,0),Fi(e,t),this.lastChecked=e}this._input.focus()})),this.events.add(document,"click",(t=>{t.stopPropagation();const e=t.composedPath()[0];e&&!this.shadowRoot.contains(e)&&this.blur()}))}_connectedInit(){if(!this.value){const t=[...this.querySelectorAll("[checked]")];(this.multiple?t:t.length?[this.lastChecked=t[0]]:[]).forEach((t=>{Fi(t,this.select(this.optionValue(t),t.textContent))})),this.default=this.value,this.defaultText=this.text,this.defaultChecked=t}this.text||(this.text="")}reset(){this.value=this.default,this.text=this.defaultText,this.querySelectorAll("[checked]").forEach((t=>Fi(t,0))),this.defaultChecked.forEach((t=>Fi(t,1)))}select(t,e){e||=t;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||Gi(this.optionValue(e),t)||Gi(e.textContent,t),t)}))}filterCallback(t,e,o){t.style.display=e?"":"none"}_handleInput(t){if(t.stopPropagation(),this.compositing)return;const e=this._input.value;this.filter(this.multiple?function(t,e){const o=e.slice(0,t).lastIndexOf(",")+1||0,s=e.indexOf(",",t)||e.length;return e.slice(o,s)}(this._input.selectionStart,e):e),this.dispatchEvent(new CustomEvent("input",{detail:this.value,composed:!0,bubbles:!0}))}focus(t){this._input.focus(t),this.visible=!0}blur(){this._input.blur(),this.visible=!1,super.blur()}optionValue(t){return t.value||t.getAttribute("value")||""}};e([X()],Wi.prototype,"text",void 0),e([tt("content")],Wi.prototype,"_content",void 0),e([X()],Wi.prototype,"direction",void 0),e([X({type:Boolean})],Wi.prototype,"multiple",void 0),e([X({type:Boolean})],Wi.prototype,"visible",void 0),e([Z()],Wi.prototype,"autoDirection",void 0),Wi=e([v("select"),u(ti,w`.outline,:host(:focus-within){${le.input}-outline-color:var(${le.active})}[part=input]{text-overflow:ellipsis}[part=content]{position:absolute;visibility:hidden;width:100%}[visible] [part=content]{visibility:visible}`)],Wi);var qi=Wi;qi.define();var Yi=Gt("0 0 56 56")`<path fill="currentColor" d="M7.715 49.574h40.57c4.899 0 7.36-2.437 7.36-7.265V13.69c0-4.828-2.461-7.265-7.36-7.265H7.715C2.84 6.426.355 8.84.355 13.69v28.62c0 4.851 2.485 7.265 7.36 7.265m31.57-21.633c-1.055-.937-2.25-1.43-3.515-1.43c-1.313 0-2.462.446-3.54 1.407l-10.593 9.469l-4.336-3.938c-.985-.867-2.04-1.336-3.164-1.336c-1.032 0-2.04.446-3 1.313L4.129 39.73V13.88c0-2.438 1.312-3.68 3.656-3.68h40.43c2.32 0 3.656 1.242 3.656 3.68v25.875Zm-21.469.258c3.024 0 5.508-2.484 5.508-5.531c0-3.023-2.484-5.531-5.508-5.531c-3.046 0-5.53 2.508-5.53 5.531a5.54 5.54 0 0 0 5.53 5.531"/>`;const Xi="skeleton",Zi=ae(Xi);let Ki=class Skeleton extends GlobalStyle{constructor(){super(...arguments),this.animation="position",this.loading=!0}render(){return this.loading?_t`<div part="root" ${It(this.observedRecord)}>${"image"===this.type?Yi():""} ${Ht("loading")}</div>`:Ht()}};e([X()],Ki.prototype,"type",void 0),e([X()],Ki.prototype,"animation",void 0),e([Z()],Ki.prototype,"loading",void 0),Ki=e([v(Xi),u(w`:host{${Zi}--from:var(${le._colors.darkgray[9]});${Zi}--to:var(${le._colors.darkgray[7]});${Zi}--deg:95deg;${Zi}--duration:1.5s;${Zi}--icon-size:5em;${Zi}--icon-margin:.25em;background:var(${Zi}--from);color:var(${le._colors.darkgray[5]});display:block;flex-shrink:0;min-height:1.5em;overflow:hidden;width:100%}[part=root]{animation:var(${Zi}--duration) ease-in-out 0s infinite none running;height:100%;min-height:inherit;text-align:center}svg{--size:var(${Zi}--icon-size);font-size:var(--size);margin:calc(var(--size)*.05)}[animation=position]{animation-name:po;background-color:transparent;background-image:linear-gradient(var(${Zi}--deg),var(${Zi}--from) 36%,var(${Zi}--to) 50%,var(${Zi}--from) 64%);background-size:200% 100%}@keyframes po{0%{background-position:150%}to{background-position:-50%}}[animation=opacity]{animation-direction:alternate;animation-name:op}@keyframes op{50%{opacity:.25}to{opacity:1}}`)],Ki);var Qi=Ki;Qi.define();const Ji="split",to=ae(Ji);let eo=class Split extends wi{constructor(){super(...arguments),this.len=6,this.index=-1,this.current=-1,this.currentValue=[]}get observedRecord(){return h(super.observedRecord,"outline-type")}render(){return _t`<div part="root" ${It(this.observedRecord)}>${Ft(this.len,(t=>_t`<span part="input-box" outline-type="${this.outlineType}" class="${qt({focus:this.current===t})}" @click="${this.disabled?null:()=>this.focusAt(t)}">${this.currentValue[t]}</span>`))} <input part="input" id="${this.makeId}" @blur="${this.blur}" @input="${this._handleInput}" .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)}};e([X({type:Number})],eo.prototype,"len",void 0),e([X({type:Number})],eo.prototype,"index",void 0),e([Z()],eo.prototype,"current",void 0),e([Z()],eo.prototype,"currentValue",void 0),eo=e([v(Ji),u(w`:host{border-radius:1px;display:block;width:-moz-fit-content;width:fit-content;${to}--size:1.45em;${to}--gap:.25em}:host([contents]) [part=root]{width:-moz-fit-content;width:fit-content}[part=root]{display:flex;gap:var(${to}--gap);justify-content:space-between;position:relative;width:100%}[part=input-box],[part=root]{border-radius:inherit;vertical-align:top}[part=input-box]{align-items:center;display:inline-flex;height:var(${to}--size);justify-content:center;width:var(${to}--size)}[part=input]{background:none;height:100%;opacity:0;position:absolute;width:100%;z-index:-1}.focus,[part=input-box]:active{${le.input}-outline-color:var(${le.active})}`)],eo);var io=eo;io.define();const oo="switch",ro=ae(oo);let so=class Switch extends wi{constructor(){super(...arguments),this.default=!1,this.value=!1}set checked(t){this.value=t}get checked(){return this.value}get observedRecord(){return h(super.observedRecord,"outline-type")}render(){return _t`<div part="root" ${It(this.observedRecord)} class="round"><input part="input" type="checkbox" ?disabled="${this.disabled}" ?checked="${this.value}" id="${this.makeId}" @change="${this._handleChange}"> <span part="handle"></span></div>`}reset(){this.value=this.default,this._input.checked=this.value}_connectedInit(){this.default?this.value=!0:this.value&&(this.value=!0,this.default=!0)}_handleChange(){const{checked:t}=this._input;this.value=t,this.dispatchCustomEvent("change",this.value)}};e([X({type:Boolean})],so.prototype,"default",void 0),e([X({type:Boolean,attribute:"checked",reflect:!0})],so.prototype,"value",void 0),so=e([v(oo),u(w`:host,:host([contents]) [part=root]{display:inline-block;height:var(${ro}-height);width:var(${ro}-width)}:host{${ro}-width:3em;${ro}-height:calc(var(${ro}-width)/2);${ro}-handle-size:1.25em;${ro}-handle-space:calc(var(${ro}-width)/4 - var(${ro}-handle-size)/2);${ro}-transition:.2s ease-in-out;background:var(${le.passive});border-radius:calc(var(${ro}-height)/2);transition:.2s ease-in-out;transition-property:background,left;vertical-align:bottom}:host([checked]){background:var(${le.active})}[part=root]{height:inherit;position:relative}[part=handle],[part=root]{align-items:center;display:flex;transition:inherit}[part=handle]{background:currentColor;border-radius:100%;justify-content:center;left:0;pointer-events:none;position:absolute;top:50%;--size:var(${ro}-handle-size);height:var(--size);transform:translateY(-50%) translateX(var(${ro}-handle-space));width:var(--size)}:host([checked]) [part=handle]{left:50%}[part=input]{height:100%;opacity:0;width:100%}`)],so);var no=so;no.define();const ao="text",lo=ae(ao);let ho=class Text extends GlobalStyle{constructor(){super(...arguments),this.underline="none",this.clip=!1}render(){return _t`<span part="root" ${It(this.observedRecord)} class="${qt(this.underline)}">${Ht()}</span>`}};e([X()],ho.prototype,"underline",void 0),e([X({type:Boolean})],ho.prototype,"clip",void 0),ho=e([v(ao),u(w`:host{${lo}--color:currentColor;${lo}--color-hover:currentColor;${lo}--color-active:currentColor;display:inline-block;overflow-wrap:break-word;text-overflow:ellipsis}[part=root]{color:var(${lo}--color);display:inline-block;overflow:hidden;overflow-wrap:inherit;text-overflow:inherit;vertical-align:bottom;white-space:nowrap;width:100%}[part=root]:hover{color:var(${lo}--color-hover,var(${lo}--color))}[part=root]:active{color:var(${lo}--color-active,var(${lo}--color))}.active:active,.always,.hover:hover{text-decoration:underline}.none{text-decoration:none}[clip]{background:var(${le.clipBackground});color:transparent;display:inline-block;-webkit-text-fill-color:transparent;background-clip:text;-webkit-background-clip:text}`)],ho);var co=ho;function po(t,e=2){return t.toString().padStart(e,"0").split("")}co.define();let uo=class Time extends GlobalStyle{constructor(){super(...arguments),this.escape="%",this.format="YYYY-MM-DD hh:mm:ss",this.time=new Date}render(){return _t`<span part="root" ${It(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:po(e.getMonth()+1),D:po(e.getDate()),h:po(e.getHours()),m:po(e.getMinutes()),s:po(e.getSeconds()),S:po(e.getMilliseconds(),3)},d=[];for(const e of t.split("").reverse()){const t=null===(s=c[e])||void 0===s?void 0:s.pop();t?d.push(t):d.push(e)}return d.reverse().join("").replace(new RegExp(a,"g"),(()=>l.shift()))}(this.format,this.time,this.escape)}</span>`}updated(t){t.has("timeout")&&this.timeout&&(this.timeouts.remove(this.timeoutId),this.timeoutId=this.timeouts.add(setInterval((()=>{this.dispatchEvent(new CustomEvent("time",{detail:this.time,composed:!0})),this.time=new Date(this.time.getTime()+(this.gap||this.timeout))}),Math.abs(this.timeout))))}};e([X()],uo.prototype,"escape",void 0),e([X()],uo.prototype,"format",void 0),e([X({type:Object})],uo.prototype,"time",void 0),e([X({type:Number})],uo.prototype,"timeout",void 0),e([X({type:Number})],uo.prototype,"gap",void 0),uo=e([v("time"),u(w`:host{text-align:center}`)],uo);var vo,fo=uo;fo.define();const mo="tooltip",go=ae(mo);let yo=vo=class Tooltip extends SuperOpenable{constructor(){super(...arguments),this.direction="top",this.align="center",this.propagation=!1,this.type="hover"}render(){const t=vo.aligns[this.align]||"inherit",e="focus"===this.type;return _t`<div part="root" ${It(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}">${Ht()}<div part="tip" direction-outset-place>${this.tip?_t`<span class="passive">${this.tip}</span>`:Ht("tip")}</div></div>`}};yo.aligns={start:"flex-start",end:"flex-end",center:"center","flex-start":"flex-start","flex-end":"flex-end"},e([X()],yo.prototype,"tip",void 0),e([X()],yo.prototype,"direction",void 0),e([X()],yo.prototype,"align",void 0),e([X({type:Boolean})],yo.prototype,"propagation",void 0),e([X()],yo.prototype,"type",void 0),yo=vo=e([v(mo),u(ti,w`:host{${go}--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(${go}--tip-background)}[propagation] [part=tip]{pointer-events:none}`)],yo);var $o=yo;$o.define();const bo="typewriter",_o=ae(bo);let wo=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 _t`<div part="root" ${It(this.observedRecord)}>${Ht()} ${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=this.timeouts.add(setTimeout((()=>{const e=t+1;e<=this.len&&(this.index=e,this.write())}),e))}stop(){clearTimeout(this.timeoutID)}end(){this.ended=!0}};e([X()],wo.prototype,"content",void 0),e([X({type:Boolean})],wo.prototype,"ended",void 0),e([X({type:Number})],wo.prototype,"max",void 0),e([X({type:Number})],wo.prototype,"min",void 0),e([X({type:Number})],wo.prototype,"delay",void 0),e([X({type:Number})],wo.prototype,"index",void 0),e([Z()],wo.prototype,"contentInternal",void 0),e([Q("i")],wo.prototype,"_i",void 0),wo=e([v(bo),u(w`:host{${_o}--cursor-width:.05em}:host,:host([contents]) [part=root]{display:inline-block}i{animation:s 1.5s steps(1) infinite;border-right:var(${_o}--cursor-width) solid;margin-left:.02em}@keyframes s{0%{border-color:currentColor}50%{border-color:transparent}}slot{display:none}`)],wo);var xo=wo;return xo.define(),t.Alert=ge,t.Avatar=_e,t.Badge=Ce,t.Breath=Ee,t.Button=Ie,t.Card=Ue,t.Carousel=Fe,t.Details=Ze,t.Dialog=ri,t.Divider=ni,t.Dragbox=li,t.Flex=di,t.Form=ui,t.Grid=mi,t.Heading=yi,t.Input=ki,t.Layout=Si,t.Link=Ni,t.Progress=Oi,t.Range=Bi,t.Rotate=Vi,t.Router=Ti,t.Select=qi,t.Skeleton=Qi,t.Split=io,t.Switch=no,t.Text=co,t.Time=fo,t.Tooltip=$o,t.Typewriter=xo,t}({});
|
59
59
|
//# sourceMappingURL=godown+lit.iife.js.map
|