@mantou/gem 2.1.0 → 2.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (52) hide show
  1. package/dist/gem.es.js +1018 -1019
  2. package/dist/gem.umd.js +25 -25
  3. package/elements/base/gesture.d.ts +1 -2
  4. package/elements/base/gesture.d.ts.map +1 -1
  5. package/elements/base/gesture.js +21 -28
  6. package/elements/base/gesture.js.map +1 -1
  7. package/elements/base/link.d.ts +1 -2
  8. package/elements/base/link.d.ts.map +1 -1
  9. package/elements/base/link.js +17 -10
  10. package/elements/base/link.js.map +1 -1
  11. package/elements/base/modal-factory.d.ts +2 -2
  12. package/elements/base/title.d.ts +0 -1
  13. package/elements/base/title.d.ts.map +1 -1
  14. package/elements/base/title.js +13 -3
  15. package/elements/base/title.js.map +1 -1
  16. package/elements/base/unsafe.d.ts +1 -1
  17. package/elements/base/unsafe.d.ts.map +1 -1
  18. package/elements/base/unsafe.js +10 -4
  19. package/elements/base/unsafe.js.map +1 -1
  20. package/elements/base/use.d.ts +0 -1
  21. package/elements/base/use.d.ts.map +1 -1
  22. package/elements/base/use.js +11 -2
  23. package/elements/base/use.js.map +1 -1
  24. package/lib/decorators.d.ts.map +1 -1
  25. package/lib/decorators.js +3 -3
  26. package/lib/decorators.js.map +1 -1
  27. package/lib/element.d.ts +2 -2
  28. package/lib/element.d.ts.map +1 -1
  29. package/lib/element.js +8 -7
  30. package/lib/element.js.map +1 -1
  31. package/lib/utils.d.ts.map +1 -1
  32. package/lib/utils.js +1 -0
  33. package/lib/utils.js.map +1 -1
  34. package/lib/version.d.ts +1 -1
  35. package/lib/version.d.ts.map +1 -1
  36. package/lib/version.js +1 -2
  37. package/lib/version.js.map +1 -1
  38. package/package.json +2 -3
  39. package/src/elements/base/gesture.ts +23 -25
  40. package/src/elements/base/link.ts +9 -9
  41. package/src/elements/base/title.ts +3 -2
  42. package/src/elements/base/unsafe.ts +6 -3
  43. package/src/elements/base/use.ts +4 -3
  44. package/src/lib/decorators.ts +3 -3
  45. package/src/lib/element.ts +8 -7
  46. package/src/lib/utils.ts +1 -0
  47. package/src/lib/version.ts +1 -2
  48. package/LICENSE +0 -21
  49. package/helper/react-shim.d.ts +0 -15
  50. package/helper/react-shim.d.ts.map +0 -1
  51. package/helper/react-shim.js +0 -56
  52. package/helper/react-shim.js.map +0 -1
package/dist/gem.umd.js CHANGED
@@ -1,4 +1,4 @@
1
- (function(h,M){typeof exports=="object"&&typeof module<"u"?M(exports):typeof define=="function"&&define.amd?define(["exports"],M):(h=typeof globalThis<"u"?globalThis:h||self,M(h.Gem={}))})(this,function(h){"use strict";var Yl=Object.defineProperty;var Va=h=>{throw TypeError(h)};var Xl=(h,M,R)=>M in h?Yl(h,M,{enumerable:!0,configurable:!0,writable:!0,value:R}):h[M]=R;var A=(h,M,R)=>Xl(h,typeof M!="symbol"?M+"":M,R),bs=(h,M,R)=>M.has(h)||Va("Cannot "+R);var p=(h,M,R)=>(bs(h,M,"read from private field"),R?R.call(h):M.get(h)),C=(h,M,R)=>M.has(h)?Va("Cannot add the same private member more than once"):M instanceof WeakSet?M.add(h):M.set(h,R),O=(h,M,R,yt)=>(bs(h,M,"write to private field"),yt?yt.call(h,R):M.set(h,R),R),Cs=(h,M,R)=>(bs(h,M,"access private method"),R);var Rt,gt,It,cn,Ps,ue,Wn,ut,Dt,ln,de,fe,pe,_e,et,mt,Ft,vt,ge,wt,me,ve,hn,ct,$e,ks,Gn,xn,un,we,qt,zn,Vn,Dn,dn,ye,H,Fn,qa,Ua,pn,qn,fn;const M=Object.freeze(Object.defineProperty({__proto__:null,get adoptedStyle(){return En},get aria(){return Ie},get async(){return fr},get attribute(){return D},get boolattribute(){return Ne},get connectStore(){return Re},get customElement(){return pr},get effect(){return dt},get emitter(){return Jt},get fallback(){return cr},get globalemitter(){return ur},get light(){return hi},get memo(){return ai},get mounted(){return Kt},get numattribute(){return or},get part(){return li},get property(){return U},get shadow(){return Tt},get slot(){return hr},get state(){return Ae},get template(){return ci},get unmounted(){return ar},get willMount(){return $n}},Symbol.toStringTag,{value:"Module"}));/**
1
+ (function(h,M){typeof exports=="object"&&typeof module<"u"?M(exports):typeof define=="function"&&define.amd?define(["exports"],M):(h=typeof globalThis<"u"?globalThis:h||self,M(h.Gem={}))})(this,function(h){"use strict";var oh=Object.defineProperty;var Qa=h=>{throw TypeError(h)};var ah=(h,M,I)=>M in h?oh(h,M,{enumerable:!0,configurable:!0,writable:!0,value:I}):h[M]=I;var A=(h,M,I)=>ah(h,typeof M!="symbol"?M+"":M,I),Ts=(h,M,I)=>M.has(h)||Qa("Cannot "+I);var p=(h,M,I)=>(Ts(h,M,"read from private field"),I?I.call(h):M.get(h)),C=(h,M,I)=>M.has(h)?Qa("Cannot add the same private member more than once"):M instanceof WeakSet?M.add(h):M.set(h,I),O=(h,M,I,yt)=>(Ts(h,M,"write to private field"),yt?yt.call(h,I):M.set(h,I),I),Ms=(h,M,I)=>(Ts(h,M,"access private method"),I);var Rt,gt,It,cn,Os,_e,zn,ft,Bt,ln,ge,me,ve,we,it,mt,Kt,vt,ye,wt,Se,$e,hn,ht,Pe,Ls,Vn,Dn,un,Ee,jt,Fn,qn,Un,dn,be,G,Bn,Za,tc,pn,Kn,fn;const M=Object.freeze(Object.defineProperty({__proto__:null,get adoptedStyle(){return En},get aria(){return xe},get async(){return mr},get attribute(){return F},get boolattribute(){return He},get connectStore(){return Ge},get customElement(){return vr},get effect(){return pt},get emitter(){return Zt},get fallback(){return dr},get globalemitter(){return _r},get light(){return di},get memo(){return hi},get mounted(){return Xt},get numattribute(){return hr},get part(){return ui},get property(){return B},get shadow(){return Tt},get slot(){return pr},get state(){return We},get template(){return Wt},get unmounted(){return ur},get willMount(){return $n}},Symbol.toStringTag,{value:"Module"}));/**
2
2
  * @license
3
3
  * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
4
4
  * This code may only be used under the BSD style license found at
@@ -10,7 +10,7 @@
10
10
  * Code distributed by Google as part of the polymer project is also
11
11
  * subject to an additional IP rights grant found at
12
12
  * http://polymer.github.io/PATENTS.txt
13
- */const R=new WeakMap,yt=e=>(...t)=>{const n=e(...t);return R.set(n,!0),n},Ee=e=>typeof e=="function"&&R.has(e);/**
13
+ */const I=new WeakMap,yt=e=>(...t)=>{const n=e(...t);return I.set(n,!0),n},ke=e=>typeof e=="function"&&I.has(e);/**
14
14
  * @license
15
15
  * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
16
16
  * This code may only be used under the BSD style license found at
@@ -22,7 +22,7 @@
22
22
  * Code distributed by Google as part of the polymer project is also
23
23
  * subject to an additional IP rights grant found at
24
24
  * http://polymer.github.io/PATENTS.txt
25
- */const Ts=typeof window<"u"&&window.customElements!=null&&window.customElements.polyfillWrapFlushCallback!==void 0,Ms=(e,t,n=null,i=null)=>{for(;t!==n;){const s=t.nextSibling;e.insertBefore(t,i),t=s}},Un=(e,t,n=null)=>{for(;t!==n;){const i=t.nextSibling;e.removeChild(t),t=i}};/**
25
+ */const Ns=typeof window<"u"&&window.customElements!=null&&window.customElements.polyfillWrapFlushCallback!==void 0,As=(e,t,n=null,i=null)=>{for(;t!==n;){const s=t.nextSibling;e.insertBefore(t,i),t=s}},jn=(e,t,n=null)=>{for(;t!==n;){const i=t.nextSibling;e.removeChild(t),t=i}};/**
26
26
  * @license
27
27
  * Copyright (c) 2018 The Polymer Project Authors. All rights reserved.
28
28
  * This code may only be used under the BSD style license found at
@@ -34,7 +34,7 @@
34
34
  * Code distributed by Google as part of the polymer project is also
35
35
  * subject to an additional IP rights grant found at
36
36
  * http://polymer.github.io/PATENTS.txt
37
- */const nt={},Os={};/**
37
+ */const st={},Rs={};/**
38
38
  * @license
39
39
  * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
40
40
  * This code may only be used under the BSD style license found at
@@ -46,7 +46,7 @@
46
46
  * Code distributed by Google as part of the polymer project is also
47
47
  * subject to an additional IP rights grant found at
48
48
  * http://polymer.github.io/PATENTS.txt
49
- */const St=`{{lit-${String(Math.random()).slice(2)}}}`,Ls=`<!--${St}-->`,Ns=new RegExp(`${St}|${Ls}`),be="$lit$";class Ba{constructor(t,n){this.parts=[],this.element=n;const i=[],s=[],r=document.createTreeWalker(n.content,133,null,!1);let c=0,a=-1,f=0;const{strings:_,values:{length:m}}=t;for(;f<m;){const o=r.nextNode();if(o===null){r.currentNode=s.pop();continue}if(a++,o.nodeType===1){if(o.hasAttributes()){const g=o.attributes,{length:l}=g;let v=0;for(let w=0;w<l;w++)As(g[w].name,be)&&v++;for(;v-- >0;){const w=_[f],S=Bn.exec(w)[2],b=S.toLowerCase()+be,d=o.getAttribute(b);o.removeAttribute(b);const $=d.split(Ns);this.parts.push({type:"attribute",index:a,name:S,strings:$}),f+=$.length-1}}o.tagName==="TEMPLATE"&&(s.push(o),r.currentNode=o.content)}else if(o.nodeType===3){const g=o.data;if(g.indexOf(St)>=0){const l=o.parentNode,v=g.split(Ns),w=v.length-1;for(let S=0;S<w;S++){let b,d=v[S];if(d==="")b=lt();else{const $=Bn.exec(d);$!==null&&As($[2],be)&&(d=d.slice(0,$.index)+$[1]+$[2].slice(0,-be.length)+$[3]),b=document.createTextNode(d)}l.insertBefore(b,o),this.parts.push({type:"node",index:++a})}v[w]===""?(l.insertBefore(lt(),o),i.push(o)):o.data=v[w],f+=w}}else if(o.nodeType===8)if(o.data===St){const g=o.parentNode;(o.previousSibling===null||a===c)&&(a++,g.insertBefore(lt(),o)),c=a,this.parts.push({type:"node",index:a}),o.nextSibling===null?o.data="":(i.push(o),a--),f++}else{let g=-1;for(;(g=o.data.indexOf(St,g+1))!==-1;)this.parts.push({type:"node",index:-1}),f++}}for(const o of i)o.parentNode.removeChild(o)}}const As=(e,t)=>{const n=e.length-t.length;return n>=0&&e.slice(n)===t},ja=e=>e.index!==-1,lt=()=>document.createComment(""),Bn=/([ \x09\x0a\x0c\x0d])([^\0-\x1F\x7F-\x9F "'>=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/;/**
49
+ */const St=`{{lit-${String(Math.random()).slice(2)}}}`,Is=`<!--${St}-->`,Hs=new RegExp(`${St}|${Is}`),Te="$lit$";class ec{constructor(t,n){this.parts=[],this.element=n;const i=[],s=[],r=document.createTreeWalker(n.content,133,null,!1);let c=0,a=-1,f=0;const{strings:_,values:{length:m}}=t;for(;f<m;){const o=r.nextNode();if(o===null){r.currentNode=s.pop();continue}if(a++,o.nodeType===1){if(o.hasAttributes()){const g=o.attributes,{length:l}=g;let v=0;for(let w=0;w<l;w++)Ws(g[w].name,Te)&&v++;for(;v-- >0;){const w=_[f],S=Jn.exec(w)[2],b=S.toLowerCase()+Te,d=o.getAttribute(b);o.removeAttribute(b);const E=d.split(Hs);this.parts.push({type:"attribute",index:a,name:S,strings:E}),f+=E.length-1}}o.tagName==="TEMPLATE"&&(s.push(o),r.currentNode=o.content)}else if(o.nodeType===3){const g=o.data;if(g.indexOf(St)>=0){const l=o.parentNode,v=g.split(Hs),w=v.length-1;for(let S=0;S<w;S++){let b,d=v[S];if(d==="")b=ut();else{const E=Jn.exec(d);E!==null&&Ws(E[2],Te)&&(d=d.slice(0,E.index)+E[1]+E[2].slice(0,-Te.length)+E[3]),b=document.createTextNode(d)}l.insertBefore(b,o),this.parts.push({type:"node",index:++a})}v[w]===""?(l.insertBefore(ut(),o),i.push(o)):o.data=v[w],f+=w}}else if(o.nodeType===8)if(o.data===St){const g=o.parentNode;(o.previousSibling===null||a===c)&&(a++,g.insertBefore(ut(),o)),c=a,this.parts.push({type:"node",index:a}),o.nextSibling===null?o.data="":(i.push(o),a--),f++}else{let g=-1;for(;(g=o.data.indexOf(St,g+1))!==-1;)this.parts.push({type:"node",index:-1}),f++}}for(const o of i)o.parentNode.removeChild(o)}}const Ws=(e,t)=>{const n=e.length-t.length;return n>=0&&e.slice(n)===t},nc=e=>e.index!==-1,ut=()=>document.createComment(""),Jn=/([ \x09\x0a\x0c\x0d])([^\0-\x1F\x7F-\x9F "'>=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/;/**
50
50
  * @license
51
51
  * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
52
52
  * This code may only be used under the BSD style license found at
@@ -58,7 +58,7 @@
58
58
  * Code distributed by Google as part of the polymer project is also
59
59
  * subject to an additional IP rights grant found at
60
60
  * http://polymer.github.io/PATENTS.txt
61
- */class Rs{constructor(t,n,i){this.__parts=[],this.template=t,this.processor=n,this.options=i}update(t){let n=0;for(const i of this.__parts)i!==void 0&&i.setValue(t[n]),n++;for(const i of this.__parts)i!==void 0&&i.commit()}_clone(){const t=Ts?this.template.element.content.cloneNode(!0):document.importNode(this.template.element.content,!0),n=[],i=this.template.parts,s=document.createTreeWalker(t,133,null,!1);let r=0,c=0,a,f=s.nextNode();for(;r<i.length;){if(a=i[r],!ja(a)){this.__parts.push(void 0),r++;continue}for(;c<a.index;)c++,f.nodeName==="TEMPLATE"&&(n.push(f),s.currentNode=f.content),(f=s.nextNode())===null&&(s.currentNode=n.pop(),f=s.nextNode());if(a.type==="node"){const _=this.processor.handleTextExpression(this.options);_.insertAfterNode(f.previousSibling),this.__parts.push(_)}else this.__parts.push(...this.processor.handleAttributeExpressions(f,a.name,a.strings,this.options));r++}return Ts&&(document.adoptNode(t),customElements.upgrade(t)),t}}/**
61
+ */class Gs{constructor(t,n,i){this.__parts=[],this.template=t,this.processor=n,this.options=i}update(t){let n=0;for(const i of this.__parts)i!==void 0&&i.setValue(t[n]),n++;for(const i of this.__parts)i!==void 0&&i.commit()}_clone(){const t=Ns?this.template.element.content.cloneNode(!0):document.importNode(this.template.element.content,!0),n=[],i=this.template.parts,s=document.createTreeWalker(t,133,null,!1);let r=0,c=0,a,f=s.nextNode();for(;r<i.length;){if(a=i[r],!nc(a)){this.__parts.push(void 0),r++;continue}for(;c<a.index;)c++,f.nodeName==="TEMPLATE"&&(n.push(f),s.currentNode=f.content),(f=s.nextNode())===null&&(s.currentNode=n.pop(),f=s.nextNode());if(a.type==="node"){const _=this.processor.handleTextExpression(this.options);_.insertAfterNode(f.previousSibling),this.__parts.push(_)}else this.__parts.push(...this.processor.handleAttributeExpressions(f,a.name,a.strings,this.options));r++}return Ns&&(document.adoptNode(t),customElements.upgrade(t)),t}}/**
62
62
  * @license
63
63
  * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
64
64
  * This code may only be used under the BSD style license found at
@@ -70,7 +70,7 @@
70
70
  * Code distributed by Google as part of the polymer project is also
71
71
  * subject to an additional IP rights grant found at
72
72
  * http://polymer.github.io/PATENTS.txt
73
- */const Is=window.trustedTypes&&trustedTypes.createPolicy("lit-html",{createHTML:e=>e}),Ka=` ${St} `;class Ce{constructor(t,n,i,s){this.strings=t,this.values=n,this.type=i,this.processor=s}getHTML(){const t=this.strings.length-1;let n="",i=!1;for(let s=0;s<t;s++){const r=this.strings[s],c=r.lastIndexOf("<!--");i=(c>-1||i)&&r.indexOf("-->",c+1)===-1;const a=Bn.exec(r);a===null?n+=r+(i?Ka:Ls):n+=r.substr(0,a.index)+a[1]+a[2]+be+a[3]+St}return n+=this.strings[t],n}getTemplateElement(){const t=document.createElement("template");let n=this.getHTML();return Is!==void 0&&(n=Is.createHTML(n)),t.innerHTML=n,t}}class jn extends Ce{getHTML(){return`<svg>${super.getHTML()}</svg>`}getTemplateElement(){const t=super.getTemplateElement(),n=t.content,i=n.firstChild;return n.removeChild(i),Ms(n,i.firstChild),t}}/**
73
+ */const xs=window.trustedTypes&&trustedTypes.createPolicy("lit-html",{createHTML:e=>e}),ic=` ${St} `;class Me{constructor(t,n,i,s){this.strings=t,this.values=n,this.type=i,this.processor=s}getHTML(){const t=this.strings.length-1;let n="",i=!1;for(let s=0;s<t;s++){const r=this.strings[s],c=r.lastIndexOf("<!--");i=(c>-1||i)&&r.indexOf("-->",c+1)===-1;const a=Jn.exec(r);a===null?n+=r+(i?ic:Is):n+=r.substr(0,a.index)+a[1]+a[2]+Te+a[3]+St}return n+=this.strings[t],n}getTemplateElement(){const t=document.createElement("template");let n=this.getHTML();return xs!==void 0&&(n=xs.createHTML(n)),t.innerHTML=n,t}}class Qn extends Me{getHTML(){return`<svg>${super.getHTML()}</svg>`}getTemplateElement(){const t=super.getTemplateElement(),n=t.content,i=n.firstChild;return n.removeChild(i),As(n,i.firstChild),t}}/**
74
74
  * @license
75
75
  * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
76
76
  * This code may only be used under the BSD style license found at
@@ -82,7 +82,7 @@
82
82
  * Code distributed by Google as part of the polymer project is also
83
83
  * subject to an additional IP rights grant found at
84
84
  * http://polymer.github.io/PATENTS.txt
85
- */const Kn=e=>e===null||!(typeof e=="object"||typeof e=="function"),Jn=e=>Array.isArray(e)||!!(e&&e[Symbol.iterator]);class Hs{constructor(t,n,i){this.dirty=!0,this.element=t,this.name=n,this.strings=i,this.parts=[];for(let s=0;s<i.length-1;s++)this.parts[s]=this._createPart()}_createPart(){return new Qn(this)}_getValue(){const t=this.strings,n=t.length-1,i=this.parts;if(n===1&&t[0]===""&&t[1]===""){const r=i[0].value;if(typeof r=="symbol")return String(r);if(typeof r=="string"||!Jn(r))return r}let s="";for(let r=0;r<n;r++){s+=t[r];const c=i[r];if(c!==void 0){const a=c.value;if(Kn(a)||!Jn(a))s+=typeof a=="string"?a:String(a);else for(const f of a)s+=typeof f=="string"?f:String(f)}}return s+=t[n],s}commit(){this.dirty&&(this.dirty=!1,this.element.setAttribute(this.name,this._getValue()))}}class Qn{constructor(t){this.value=void 0,this.committer=t}setValue(t){t!==nt&&(!Kn(t)||t!==this.value)&&(this.value=t,Ee(t)||(this.committer.dirty=!0))}commit(){for(;Ee(this.value);){const t=this.value;this.value=nt,t(this)}this.value!==nt&&this.committer.commit()}}class Ut{constructor(t){this.value=void 0,this.__pendingValue=void 0,this.options=t}appendInto(t){this.startNode=t.appendChild(lt()),this.endNode=t.appendChild(lt())}insertAfterNode(t){this.startNode=t,this.endNode=t.nextSibling}appendIntoPart(t){t.__insert(this.startNode=lt()),t.__insert(this.endNode=lt())}insertAfterPart(t){t.__insert(this.startNode=lt()),this.endNode=t.endNode,t.endNode=this.startNode}setValue(t){this.__pendingValue=t}commit(){if(this.startNode.parentNode===null)return;for(;Ee(this.__pendingValue);){const n=this.__pendingValue;this.__pendingValue=nt,n(this)}const t=this.__pendingValue;t!==nt&&(Kn(t)?t!==this.value&&this.__commitText(t):t instanceof Ce?this.__commitTemplateResult(t):t instanceof Node?this.__commitNode(t):Jn(t)?this.__commitIterable(t):t===Os?(this.value=Os,this.clear()):this.__commitText(t))}__insert(t){this.endNode.parentNode.insertBefore(t,this.endNode)}__commitNode(t){this.value!==t&&(this.clear(),this.__insert(t),this.value=t)}__commitText(t){const n=this.startNode.nextSibling;t=t??"";const i=typeof t=="string"?t:String(t);n===this.endNode.previousSibling&&n.nodeType===3?n.data=i:this.__commitNode(document.createTextNode(i)),this.value=t}__commitTemplateResult(t){const n=this.options.templateFactory(t);if(this.value instanceof Rs&&this.value.template===n)this.value.update(t.values);else{const i=new Rs(n,t.processor,this.options),s=i._clone();i.update(t.values),this.__commitNode(s),this.value=i}}__commitIterable(t){Array.isArray(this.value)||(this.value=[],this.clear());const n=this.value;let i=0,s;for(const r of t)s=n[i],s===void 0&&(s=new Ut(this.options),n.push(s),i===0?s.appendIntoPart(this):s.insertAfterPart(n[i-1])),s.setValue(r),s.commit(),i++;i<n.length&&(n.length=i,this.clear(s&&s.endNode))}clear(t=this.startNode){Un(this.startNode.parentNode,t.nextSibling,this.endNode)}}class Ja{constructor(t,n,i){if(this.value=void 0,this.__pendingValue=void 0,i.length!==2||i[0]!==""||i[1]!=="")throw new Error("Boolean attributes can only contain a single expression");this.element=t,this.name=n,this.strings=i}setValue(t){this.__pendingValue=t}commit(){for(;Ee(this.__pendingValue);){const n=this.__pendingValue;this.__pendingValue=nt,n(this)}if(this.__pendingValue===nt)return;const t=!!this.__pendingValue;this.value!==t&&(t?this.element.setAttribute(this.name,""):this.element.removeAttribute(this.name),this.value=t),this.__pendingValue=nt}}class Qa extends Hs{constructor(t,n,i){super(t,n,i),this.single=i.length===2&&i[0]===""&&i[1]===""}_createPart(){return new Ya(this)}_getValue(){return this.single?this.parts[0].value:super._getValue()}commit(){this.dirty&&(this.dirty=!1,this.element[this.name]=this._getValue())}}class Ya extends Qn{}let Ws=!1;(()=>{try{const e={get capture(){return Ws=!0,!1}};window.addEventListener("test",e,e),window.removeEventListener("test",e,e)}catch{}})();class Xa{constructor(t,n,i){this.value=void 0,this.__pendingValue=void 0,this.element=t,this.eventName=n,this.eventContext=i,this.__boundHandleEvent=s=>this.handleEvent(s)}setValue(t){this.__pendingValue=t}commit(){for(;Ee(this.__pendingValue);){const r=this.__pendingValue;this.__pendingValue=nt,r(this)}if(this.__pendingValue===nt)return;const t=this.__pendingValue,n=this.value,i=t==null||n!=null&&(t.capture!==n.capture||t.once!==n.once||t.passive!==n.passive),s=t!=null&&(n==null||i);i&&this.element.removeEventListener(this.eventName,this.__boundHandleEvent,this.__options),s&&(this.__options=Za(t),this.element.addEventListener(this.eventName,this.__boundHandleEvent,this.__options)),this.value=t,this.__pendingValue=nt}handleEvent(t){typeof this.value=="function"?this.value.call(this.eventContext||this.element,t):this.value.handleEvent(t)}}const Za=e=>e&&(Ws?{capture:e.capture,passive:e.passive,once:e.once}:e.capture);/**
85
+ */const Yn=e=>e===null||!(typeof e=="object"||typeof e=="function"),Xn=e=>Array.isArray(e)||!!(e&&e[Symbol.iterator]);class zs{constructor(t,n,i){this.dirty=!0,this.element=t,this.name=n,this.strings=i,this.parts=[];for(let s=0;s<i.length-1;s++)this.parts[s]=this._createPart()}_createPart(){return new Zn(this)}_getValue(){const t=this.strings,n=t.length-1,i=this.parts;if(n===1&&t[0]===""&&t[1]===""){const r=i[0].value;if(typeof r=="symbol")return String(r);if(typeof r=="string"||!Xn(r))return r}let s="";for(let r=0;r<n;r++){s+=t[r];const c=i[r];if(c!==void 0){const a=c.value;if(Yn(a)||!Xn(a))s+=typeof a=="string"?a:String(a);else for(const f of a)s+=typeof f=="string"?f:String(f)}}return s+=t[n],s}commit(){this.dirty&&(this.dirty=!1,this.element.setAttribute(this.name,this._getValue()))}}class Zn{constructor(t){this.value=void 0,this.committer=t}setValue(t){t!==st&&(!Yn(t)||t!==this.value)&&(this.value=t,ke(t)||(this.committer.dirty=!0))}commit(){for(;ke(this.value);){const t=this.value;this.value=st,t(this)}this.value!==st&&this.committer.commit()}}class Jt{constructor(t){this.value=void 0,this.__pendingValue=void 0,this.options=t}appendInto(t){this.startNode=t.appendChild(ut()),this.endNode=t.appendChild(ut())}insertAfterNode(t){this.startNode=t,this.endNode=t.nextSibling}appendIntoPart(t){t.__insert(this.startNode=ut()),t.__insert(this.endNode=ut())}insertAfterPart(t){t.__insert(this.startNode=ut()),this.endNode=t.endNode,t.endNode=this.startNode}setValue(t){this.__pendingValue=t}commit(){if(this.startNode.parentNode===null)return;for(;ke(this.__pendingValue);){const n=this.__pendingValue;this.__pendingValue=st,n(this)}const t=this.__pendingValue;t!==st&&(Yn(t)?t!==this.value&&this.__commitText(t):t instanceof Me?this.__commitTemplateResult(t):t instanceof Node?this.__commitNode(t):Xn(t)?this.__commitIterable(t):t===Rs?(this.value=Rs,this.clear()):this.__commitText(t))}__insert(t){this.endNode.parentNode.insertBefore(t,this.endNode)}__commitNode(t){this.value!==t&&(this.clear(),this.__insert(t),this.value=t)}__commitText(t){const n=this.startNode.nextSibling;t=t??"";const i=typeof t=="string"?t:String(t);n===this.endNode.previousSibling&&n.nodeType===3?n.data=i:this.__commitNode(document.createTextNode(i)),this.value=t}__commitTemplateResult(t){const n=this.options.templateFactory(t);if(this.value instanceof Gs&&this.value.template===n)this.value.update(t.values);else{const i=new Gs(n,t.processor,this.options),s=i._clone();i.update(t.values),this.__commitNode(s),this.value=i}}__commitIterable(t){Array.isArray(this.value)||(this.value=[],this.clear());const n=this.value;let i=0,s;for(const r of t)s=n[i],s===void 0&&(s=new Jt(this.options),n.push(s),i===0?s.appendIntoPart(this):s.insertAfterPart(n[i-1])),s.setValue(r),s.commit(),i++;i<n.length&&(n.length=i,this.clear(s&&s.endNode))}clear(t=this.startNode){jn(this.startNode.parentNode,t.nextSibling,this.endNode)}}class sc{constructor(t,n,i){if(this.value=void 0,this.__pendingValue=void 0,i.length!==2||i[0]!==""||i[1]!=="")throw new Error("Boolean attributes can only contain a single expression");this.element=t,this.name=n,this.strings=i}setValue(t){this.__pendingValue=t}commit(){for(;ke(this.__pendingValue);){const n=this.__pendingValue;this.__pendingValue=st,n(this)}if(this.__pendingValue===st)return;const t=!!this.__pendingValue;this.value!==t&&(t?this.element.setAttribute(this.name,""):this.element.removeAttribute(this.name),this.value=t),this.__pendingValue=st}}class rc extends zs{constructor(t,n,i){super(t,n,i),this.single=i.length===2&&i[0]===""&&i[1]===""}_createPart(){return new oc(this)}_getValue(){return this.single?this.parts[0].value:super._getValue()}commit(){this.dirty&&(this.dirty=!1,this.element[this.name]=this._getValue())}}class oc extends Zn{}let Vs=!1;(()=>{try{const e={get capture(){return Vs=!0,!1}};window.addEventListener("test",e,e),window.removeEventListener("test",e,e)}catch{}})();class ac{constructor(t,n,i){this.value=void 0,this.__pendingValue=void 0,this.element=t,this.eventName=n,this.eventContext=i,this.__boundHandleEvent=s=>this.handleEvent(s)}setValue(t){this.__pendingValue=t}commit(){for(;ke(this.__pendingValue);){const r=this.__pendingValue;this.__pendingValue=st,r(this)}if(this.__pendingValue===st)return;const t=this.__pendingValue,n=this.value,i=t==null||n!=null&&(t.capture!==n.capture||t.once!==n.once||t.passive!==n.passive),s=t!=null&&(n==null||i);i&&this.element.removeEventListener(this.eventName,this.__boundHandleEvent,this.__options),s&&(this.__options=cc(t),this.element.addEventListener(this.eventName,this.__boundHandleEvent,this.__options)),this.value=t,this.__pendingValue=st}handleEvent(t){typeof this.value=="function"?this.value.call(this.eventContext||this.element,t):this.value.handleEvent(t)}}const cc=e=>e&&(Vs?{capture:e.capture,passive:e.passive,once:e.once}:e.capture);/**
86
86
  * @license
87
87
  * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
88
88
  * This code may only be used under the BSD style license found at
@@ -94,7 +94,7 @@
94
94
  * Code distributed by Google as part of the polymer project is also
95
95
  * subject to an additional IP rights grant found at
96
96
  * http://polymer.github.io/PATENTS.txt
97
- */class tc{handleAttributeExpressions(t,n,i,s){const r=n[0];return r==="."?new Qa(t,n.slice(1),i).parts:r==="@"?[new Xa(t,n.slice(1),s.eventContext)]:r==="?"?[new Ja(t,n.slice(1),i)]:new Hs(t,n,i).parts}handleTextExpression(t){return new Ut(t)}}const Gs=new tc;/**
97
+ */class lc{handleAttributeExpressions(t,n,i,s){const r=n[0];return r==="."?new rc(t,n.slice(1),i).parts:r==="@"?[new ac(t,n.slice(1),s.eventContext)]:r==="?"?[new sc(t,n.slice(1),i)]:new zs(t,n,i).parts}handleTextExpression(t){return new Jt(t)}}const Ds=new lc;/**
98
98
  * @license
99
99
  * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
100
100
  * This code may only be used under the BSD style license found at
@@ -106,7 +106,7 @@
106
106
  * Code distributed by Google as part of the polymer project is also
107
107
  * subject to an additional IP rights grant found at
108
108
  * http://polymer.github.io/PATENTS.txt
109
- */function ec(e){let t=xs.get(e.type);t===void 0&&(t={stringsArray:new WeakMap,keyString:new Map},xs.set(e.type,t));let n=t.stringsArray.get(e.strings);if(n!==void 0)return n;const i=e.strings.join(St);return n=t.keyString.get(i),n===void 0&&(n=new Ba(e,e.getTemplateElement()),t.keyString.set(i,n)),t.stringsArray.set(e.strings,n),n}const xs=new Map;/**
109
+ */function hc(e){let t=Fs.get(e.type);t===void 0&&(t={stringsArray:new WeakMap,keyString:new Map},Fs.set(e.type,t));let n=t.stringsArray.get(e.strings);if(n!==void 0)return n;const i=e.strings.join(St);return n=t.keyString.get(i),n===void 0&&(n=new ec(e,e.getTemplateElement()),t.keyString.set(i,n)),t.stringsArray.set(e.strings,n),n}const Fs=new Map;/**
110
110
  * @license
111
111
  * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
112
112
  * This code may only be used under the BSD style license found at
@@ -118,7 +118,7 @@
118
118
  * Code distributed by Google as part of the polymer project is also
119
119
  * subject to an additional IP rights grant found at
120
120
  * http://polymer.github.io/PATENTS.txt
121
- */const zs=new WeakMap,_n=(e,t,n)=>{let i=zs.get(t);i===void 0&&(Un(t,t.firstChild),zs.set(t,i=new Ut(Object.assign({templateFactory:ec},n))),i.appendInto(t)),i.setValue(e),i.commit()};/**
121
+ */const qs=new WeakMap,_n=(e,t,n)=>{let i=qs.get(t);i===void 0&&(jn(t,t.firstChild),qs.set(t,i=new Jt(Object.assign({templateFactory:hc},n))),i.appendInto(t)),i.setValue(e),i.commit()};/**
122
122
  * @license
123
123
  * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
124
124
  * This code may only be used under the BSD style license found at
@@ -130,7 +130,7 @@
130
130
  * Code distributed by Google as part of the polymer project is also
131
131
  * subject to an additional IP rights grant found at
132
132
  * http://polymer.github.io/PATENTS.txt
133
- */typeof window<"u"&&(window.litHtmlVersions||(window.litHtmlVersions=[])).push("1.4.1");const it=(e,...t)=>new Ce(e,t,"html",Gs),Vs=(e,...t)=>new jn(e,t,"svg",Gs),{assign:nc,setPrototypeOf:ic,fromEntries:sc,entries:rc,keys:oc}=Object,Yn=new Set;function $t(e){Yn.has(e)||(queueMicrotask(()=>{Yn.delete(e),e()}),Yn.add(e))}function Pe(e,t){const n=t;return ic(n,null),delete n.name,delete n.length,nc(n,e),n}function Xn(e="",t=""){const{pathname:n,search:i,hash:s}=new URL(t,location.origin+e);return n+i+decodeURIComponent(s)}function Zn(e,t,n,i){return e.addEventListener(t,n,i),()=>e.removeEventListener(t,n,i)}class Ds extends EventTarget{constructor(){super(...arguments);C(this,cn);C(this,Rt,new Map);C(this,gt);C(this,It)}get size(){return p(this,Rt).size}get first(){return p(this,gt)}get last(){return p(this,It)}isSuperLinkOf(n){let i=n.first;if(!i)return!0;let s=this.find(i.value);for(;s&&s.value===i.value;){if(i=i.next,!i)return!0;s=s.next}return!1}find(n){return p(this,Rt).get(n)}add(n){p(this,It)||this.dispatchEvent(new CustomEvent("start"));const i=Cs(this,cn,Ps).call(this,n)||{value:n};i.prev=p(this,It),i.prev&&(i.prev.next=i),i.next=void 0,O(this,It,i),p(this,gt)||O(this,gt,i),p(this,Rt).set(n,i)}delete(n){const i=Cs(this,cn,Ps).call(this,n);return p(this,gt)||this.dispatchEvent(new CustomEvent("end")),i}get(){const n=p(this,gt);if(n)return this.delete(n.value),n.value}}Rt=new WeakMap,gt=new WeakMap,It=new WeakMap,cn=new WeakSet,Ps=function(n){const i=p(this,Rt).get(n);return i&&(i.prev?i.prev.next=i.next:O(this,gt,i.next),i.next?i.next.prev=i.prev:O(this,It,i.prev),p(this,Rt).delete(n)),i};class Fs extends WeakMap{get(t){let n=super.get(t);return n||(n={},this.set(t,n)),n}}class Bt extends URLSearchParams{constructor(n){super(n);C(this,ue,n=>typeof n=="string"?n:JSON.stringify(n));C(this,Wn,n=>{if(!n)return null;try{return JSON.parse(n)}catch{return null}})}concat(n){let i;typeof n=="string"?i=sc(new URLSearchParams(n).entries()):i=n,rc(i).forEach(([s,r])=>{this.append(s,p(this,ue).call(this,r))})}setAny(n,i){if(Array.isArray(i))this.delete(n),i.forEach(s=>this.append(n,p(this,ue).call(this,s)));else{const s=p(this,ue).call(this,i);s?this.set(n,s):this.delete(n)}}getAny(n){return this.getAnyAll(n)[0]}getAnyAll(n){return this.getAll(n).filter(i=>i!=="").map(i=>p(this,Wn).call(this,i))}toString(){const n=super.toString();return n?`?${n}`:""}toJSON(){return this.toString()}}ue=new WeakMap,Wn=new WeakMap;function gn(e,...t){return e.reduce((n,i,s)=>n+(t[s-1]??"")+i)}const ti=gn;function ke(e=5){const t=Math.random().toString(36).slice(2,2+e);return t.length<e?t+ke(e-t.length):t}const ac={class:gn};function Ht(e){return e.replace(/[A-Z]/g,t=>"-"+t.toLowerCase())}function cc(e){return e.replace(/-(.)/g,(t,n)=>n.toUpperCase())}function mn(e){return oc(e).forEach(t=>{delete e[t]}),e}class Et extends Error{constructor(t){super(t),this.message=`gem: ${this.message}`}}function qs(e,t){const n=e.length;if(t.length!==n)return!0;for(let i=0;i<n;i++)if(e[i]!==t[i])return!0;return!1}function vn(e,t,n){let i=t;for(const s in e){const r=n(s,e[s]);i+=r?r+t:""}return i}function lc(e){return vn(e,";",(t,n)=>n||n===0?`${Ht(t)}:${n}`:"")}function Us(e){return vn(e," ",(t,n)=>n?t:"")}const hc=Us;function uc(e){return vn(e,",",(t,n)=>n===!0||t===n?t:n?`${t}:${n}`:"")}const Te=new WeakMap;function bt(e){const t=Pe(e,n=>{var i;Object.assign(t,n),(i=Te.get(t))==null||i.forEach(s=>$t(s))});return Te.set(t,new Set),t}function ht(e,t){const n=Te.get(e);return n==null||n.add(t),()=>n==null?void 0:n.delete(t)}const dc=Object.freeze(Object.defineProperty({__proto__:null,StoreListenerMap:Te,connect:ht,createStore:bt},Symbol.toStringTag,{value:"Module"})),{assign:Bs,defineProperty:fc}=Object;fc(Symbol,"metadata",{value:Symbol.for("Symbol.metadata")});const ei=e=>typeof e=="function"&&e(),Ct=Symbol.for("gem@sheetToken"),Me=Symbol.for("gem@update"),js="gem-style-boundary",wn="gem@render-error",pc=Me,ni=new WeakMap,Ks=new WeakMap,Js=e=>[...e.querySelectorAll("[data-gem-reflect]")].map(t=>t.target);class _c{constructor(t){A(this,"refSelector");A(this,"ele");A(this,"ref");const n=`ref-${ke()}`;this.refSelector=`[ref=${n}]`,this.ele=t.internals.shadowRoot||t,this.ref=n}get element(){for(const t of[this.ele,...Js(this.ele)]){const n=t.querySelector(this.refSelector);if(n)return n}}get elements(){return[this.ele,...Js(this.ele)].map(t=>[...t.querySelectorAll(this.refSelector)]).flat()}toString(){return this.ref}}h.createRef=void 0;class gc extends CSSStyleSheet{constructor(){super(...arguments);C(this,ut);A(this,"cssText","")}get element(){return p(this,ut)||(O(this,ut,document.createElement("style")),p(this,ut).textContent=this.cssText,p(this,ut).dataset.gemStyle=""),p(this,ut)}replaceSync(n){this.cssText=n,p(this,ut)&&(p(this,ut).textContent=n),super.replaceSync(n)}}ut=new WeakMap;class mc{constructor(t=""){C(this,Dt,"");C(this,ln,"");C(this,de,new Map);C(this,fe,new Map);O(this,ln,t)}setContent(t){O(this,Dt,t)}getStyle(t){var r;const n=t&&!((r=t.internals)!=null&&r.shadowRoot),i=n?t.constructor:this;if(!p(this,de).has(i)){const c=new gc({media:p(this,ln)});p(this,de).set(i,c)}const s=p(this,de).get(i);if(!p(this,fe).has(s)){let c=p(this,Dt),a="";n&&(a=`@scope (${t.tagName}) to (:state(${js}) > *)`,c=`${a}{ ${c} }`),s.replaceSync(c),p(this,fe).set(s,a)}return s}updateStyle(){p(this,fe).forEach((t,n)=>{n.replaceSync(t?`${t}{${p(this,Dt)}}`:p(this,Dt))})}}Dt=new WeakMap,ln=new WeakMap,de=new WeakMap,fe=new WeakMap;function Oe(e,t){const n=t?e:"",i=t||e,s=new mc(n),r={[Ct]:s};let c="";return typeof i=="string"?c=i:Object.keys(i).forEach(a=>{const f=a==="$";r[a]=f||a.includes("-")?a:`${a}-${ke()}`,c+=`${f?":where(:scope:not([hidden])),:host(:where(:not([hidden])))":`.${r[a]}`} {${i[a]}}`}),s.setContent(c),r}const Qs=(e,t,n)=>{let i=!1;t.forEach(s=>{const r=e.get(s)||0;i||(i=n===1&&r===0||n===-1&&r===1),e.set(s,r+n)}),i&&$t(Ks.get(e))},vc=(e,t)=>{const n=e.getRootNode();if(!ni.has(n)){const s=new Map;ni.set(n,s),Ks.set(s,()=>{const r=n.adoptedStyleSheets.filter(c=>!s.has(c));s.forEach((c,a)=>c&&r.push(a)),n.adoptedStyleSheets=r.reverse()})}const i=ni.get(n);return Qs(i,t,1),()=>Qs(i,t,-1)};h.createState=void 0;function Ys(e){e==null||e.forEach(t=>{const{callback:n,getDep:i,values:s,preCallback:r}=t,c=i==null?void 0:i();(!i||!s||qs(s,c))&&(ei(r),t.preCallback=n(c,s),t.values=c,t.initialized=!0)})}function Xs(e){return e.filter(t=>(ei(t.preCallback),t.initialized=!1,t.values=void 0,t.fixed))}h.createTemplate=void 0;const jt=new Ds,ii=(e=performance.now())=>{if(performance.now()>e+16)return requestAnimationFrame(ii);const t=jt.get();t&&(t(),ii(e))};jt.addEventListener("start",()=>$t(ii));let si;const Se=class Se extends HTMLElement{constructor(){super();C(this,ct);C(this,_e);C(this,et);C(this,mt,[]);C(this,Ft,[]);C(this,vt,[]);C(this,ge);C(this,wt);C(this,me);C(this,ve);C(this,hn);C(this,Gn,()=>{Ys(p(this,mt))});C(this,xn,()=>{Ys(p(this,Ft))});C(this,un,n=>{try{O(this,ve,!0),p(this,xn).call(this);const i=p(this,_e)===this,s=n?n.render():i?void 0:it`<slot></slot>`;if(O(this,ve,!1),s===void 0)return;_n(s,p(this,_e))}catch(i){this.dispatchEvent(new CustomEvent(wn,{bubbles:!0,composed:!0,detail:i}))}});C(this,we,()=>{const n=p(this,ct,ks);p(this,wt)&&(n||!p(this,vt).length)&&(p(this,un).call(this,n),$t(p(this,Gn)))});C(this,qt,()=>{p(this,ct,$e).noBlocking?jt.add(p(this,we)):p(this,we).call(this)});C(this,zn,()=>{const{adoptedStyleSheets:n=[]}=p(this,ct,$e),{shadowRoot:i,sheets:s}=p(this,et),r=n.map(c=>c[Ct].getStyle(this));if(i)i.adoptedStyleSheets=r.concat(s);else return this.prepend(...s.map(c=>c.element)),vc(this,r)});C(this,Vn,()=>{var n;(n=p(this,mt))==null||n.forEach(i=>{const{callback:s,getDep:r,initialized:c}=i;c||(i.values=r==null?void 0:r(),i.preCallback=s(i.values),i.initialized=!0)})});C(this,Dn,()=>{var n;this.willMount&&this.memo(this.willMount.bind(this),()=>[]),this.mounted&&this.effect(this.mounted.bind(this),()=>[]),this.updated&&this.effect((i,s)=>s&&this.updated.apply(this)),this.unmounted&&this.effect(()=>this.unmounted.bind(this),()=>[]),!p(this,vt).length&&this.render&&p(this,vt).push({render:this.render.bind(this),condition:(n=this.shouldUpdate)==null?void 0:n.bind(this)})});C(this,dn);C(this,ye,async()=>{if(p(this,ge)){O(this,ge,!1);return}p(this,Dn).call(this);const{observedStores:n,mode:i,penetrable:s}=p(this,ct,$e);!i&&p(this,vt).length&&!s&&p(this,et).states.add(js),O(this,me,!0),O(this,dn,n==null?void 0:n.map(r=>ht(r,p(this,qt)))),p(this,un).call(this,p(this,ct,ks)),O(this,wt,!0),O(this,hn,p(this,zn).call(this)),await Promise.resolve(),p(this,Vn).call(this)});A(this,"effect",(n,i)=>{const s={callback:n,getDep:i,initialized:p(this,wt),fixed:!p(this,me)};p(this,wt)&&(s.values=i==null?void 0:i(),s.preCallback=n(s.values)),p(this,mt).push(s)});A(this,"memo",(n,i)=>{p(this,Ft).push({callback:n,getDep:i,fixed:!p(this,me)})});A(this,"update",()=>$t(p(this,qt)));si=this;const{mode:n,serializable:i,delegatesFocus:s,slotAssignment:r,aria:c}=p(this,ct,$e),{focusable:a,...f}=c||{};O(this,_e,n?this.attachShadow({mode:n,serializable:i,delegatesFocus:s,slotAssignment:r}):this),O(this,et,this.attachInternals()),p(this,et).stateList=[],p(this,et).sheets=[],Bs(p(this,et),f);let _;p(this,mt).push({fixed:!0,getDep:()=>[this.disabled],callback:([m=!1])=>{if(_===void 0&&(_=this.hasAttribute("tabindex")),p(this,et).ariaDisabled=String(m),a&&!_&&(this.tabIndex=-Number(m)),(a||s)&&m)return Zn(this,"click",o=>o.isTrusted&&o.stopImmediatePropagation(),{capture:!0})}})}[pc](){p(this,wt)&&$t(p(this,qt))}get internals(){return p(this,et)}connectedCallback(){return p(this,ct,$e).noBlocking?jt.add(p(this,ye)):p(this,ye).call(this),p(Se,pe)}adoptedCallback(){return p(Se,pe)}disconnectedCallback(){var n;if(this.isConnected){O(this,ge,!0);return}return jt.delete(p(this,ye)),jt.delete(p(this,we)),O(this,wt,!1),(n=p(this,dn))==null||n.forEach(i=>i()),O(this,mt,Xs(p(this,mt))),O(this,Ft,Xs(p(this,Ft))),ei(p(this,hn)),p(Se,pe)}};pe=new WeakMap,_e=new WeakMap,et=new WeakMap,mt=new WeakMap,Ft=new WeakMap,vt=new WeakMap,ge=new WeakMap,wt=new WeakMap,me=new WeakMap,ve=new WeakMap,hn=new WeakMap,ct=new WeakSet,$e=function(){return this.constructor[Symbol.metadata]},ks=function(){return p(this,vt).find(n=>!n.condition||n.condition())},Gn=new WeakMap,xn=new WeakMap,un=new WeakMap,we=new WeakMap,qt=new WeakMap,zn=new WeakMap,Vn=new WeakMap,Dn=new WeakMap,dn=new WeakMap,ye=new WeakMap,C(Se,pe,Symbol()),h.createState=n=>{const i=si,s=Pe(n,r=>{Bs(s,r),p(i,ve)||$t(p(i,qt))});return p(i,et).stateList.push(s),s},h.createRef=()=>new _c(si),h.createTemplate=(n,i)=>p(n,vt).push(i);let q=Se;const wc=Object.freeze(Object.defineProperty({__proto__:null,GemElement:q,RenderErrorEvent:wn,SVGTemplateResult:jn,SheetToken:Ct,TemplateResult:Ce,UpdateToken:Me,createCSSSheet:Oe,get createRef(){return h.createRef},get createState(){return h.createState},get createTemplate(){return h.createTemplate},directive:yt,html:it,render:_n,svg:Vs},Symbol.toStringTag,{value:"Module"})),Zs="0.0.0",yc=Object.freeze(Object.defineProperty({__proto__:null,version:Zs},Symbol.toStringTag,{value:"Module"})),{deleteProperty:Sc,getOwnPropertyDescriptor:tr,defineProperty:yn}=Reflect,{getPrototypeOf:Pt,assign:er}=Object,nr=new Fs;function kt(e,t,n){const i=e.metadata;if(!tr(i,t)){const s=new Set(i[t]);s.delete(n),yn(i,t,{value:[...s]})}i[t].push(n)}function Sn(e,t){const{value:n}=tr(e,t);Sc(e,t),e[t]=n}const Le=new WeakMap,{setAttribute:ir,toggleAttribute:$c,removeAttribute:sr}=Element.prototype;q.prototype.setAttribute=function(e,t){var i;const n=(i=Le.get(Pt(this)))==null?void 0:i.get(e);if(!n)return ir.call(this,e,t);this[n]=t},q.prototype.removeAttribute=function(e){var n;const t=(n=Le.get(Pt(this)))==null?void 0:n.get(e);if(!t)return sr.call(this,e);this[t]=null},q.prototype.toggleAttribute=function(e,t){var i;const n=(i=Le.get(Pt(this)))==null?void 0:i.get(e);return n?this[n]=t??!this.hasAttribute(e):$c.call(this,e,t)};function Ec(){}const rr=Symbol("event handle");function ri(e,t,{attr:n,attrType:i,event:s,eventOptions:r}={}){yn(e,t,{configurable:!0,get(){const c=nr.get(this)[t];return s&&!c?(this[t]=Ec,this[t]):c},set(c){const a=this,f=nr.get(a);n&&(c=i===Boolean&&c===""?!0:i(c||""),c?ir.call(this,n,i===Boolean?"":c):sr.call(this,n)),c!==f[t]&&(s?(f[t]=c!=null&&c[rr]?c:(_,m)=>{const o=new CustomEvent(s,{...m,...r,detail:_});a.dispatchEvent(o),c(_,m)},f[t][rr]=!0):(f[t]=c,this[Me]()))}})}function oi(e,t){const n=e.name,i=Ht(n);return e.addInitializer(function(){const s=Pt(this);if(!s.hasOwnProperty(n)){kt(e,"observedAttributes",i),ri(s,n,{attr:i,attrType:t});const r=Le.get(s)||new Map;r.set(i,n),Le.set(s,r)}Sn(this,n)}),function(s){return this.getAttribute(i)??s}}function D(e,t){return oi(t,String)}function Ne(e,t){return oi(t,Boolean)}function or(e,t){return oi(t,Number)}function U(e,t){const n=t.name;return t.addInitializer(function(){const i=Pt(this);i.hasOwnProperty(n)||(kt(t,"observedProperties",n),ri(i,n)),Sn(this,n)}),function(i){return this[n]??i}}function ai(e){return function(t,n){const{addInitializer:i,name:s,access:r,kind:c}=n;i(function(){const a=e&&(()=>e(this));if(c==="getter"){if(n.private)throw new Et("not support");this.memo(()=>yn(this,s,{configurable:!0,value:r.get(this)}),a)}else this.memo(r.get(this).bind(this),a)})}}function dt(e){return function(t,{addInitializer:n,access:i}){n(function(){this.effect(i.get(this).bind(this),e&&(()=>e(this)))})}}function ar(){return function(e,{addInitializer:t,access:n}){t(function(){this.effect(()=>n.get(this).bind(this),()=>[])})}}function $n(){return ai(()=>[])}function Kt(){return dt(()=>[])}function ci(e){return function(t,{addInitializer:n,access:i}){n(function(){h.createTemplate(this,{render:i.get(this).bind(this),condition:e&&(()=>e(this))})})}}function cr(){return function(e,{addInitializer:t,access:n}){t(function(){this.addEventListener(wn,({detail:i})=>{_n(n.get(this).apply(this,[i]),this.internals.shadowRoot||this)})})}}function bc(e,t,n){yn(e,t,{configurable:!0,get(){const i=this,{states:s}=i.internals;return s==null?void 0:s.has(n)},set(i){const s=this,{states:r}=s.internals;i?r==null||r.add(n):r==null||r.delete(n)}})}function Ae(e,t){t.addInitializer(function(){const n=Pt(this),i=t.name;if(!n.hasOwnProperty(i)){const s=Ht(i);kt(t,"definedCSSStates",s),bc(n,i,s)}Sn(this,i)})}function lr(e,t,n,i){const s=e.name,r=Ht(s);if(e.static)kt(e,n,r);else{const c=Pt(t);c[s]||(c[s]=r,kt(e,n,r))}return i||r}function hr(e,t){return function(n){return lr(t,this,"definedSlots",n)}}function li(e,t){return function(n){return lr(t,this,"definedParts",n)}}function Jt(e,t){t.addInitializer(function(){dr(t,this,t.name)})}function ur(e,t){t.addInitializer(function(){dr(t,this,t.name,{bubbles:!0,composed:!0})})}function dr(e,t,n,i){const s=Pt(t);if(!s.hasOwnProperty(n)){const r=Ht(n);kt(e,"definedEvents",r),ri(s,n,{event:r,eventOptions:i})}Sn(t,n)}function En(e){return function(t,n){kt(n,"adoptedStyleSheets",e)}}function Re(e){return function(t,n){kt(n,"observedStores",e)}}function Tt({mode:e="open",serializable:t=!0,delegatesFocus:n,slotAssignment:i}={}){return function(s,r){const c=r.metadata;er(c,{mode:e,serializable:t,delegatesFocus:n,slotAssignment:i})}}function hi({penetrable:e}){return function(t,n){const i=n.metadata;i.penetrable=e}}function fr(){return function(e,t){const n=t.metadata;n.noBlocking=!0}}function Ie(e){return function(t,n){const i=n.metadata;i.aria={...i.aria,...e}}}function pr(e){return function(t,{addInitializer:n}){n(function(){customElements.define(e,t)})}}window.__GEM_DEVTOOLS__HOOK__&&!window.__GEM_DEVTOOLS__HOOK__.GemElement&&er(window.__GEM_DEVTOOLS__HOOK__,{...wc,...M,...dc,...yc});const Y=window.history,_r=Y.pushState.bind(Y),gr=Y.replaceState.bind(Y);let Cc=0;const ui=()=>`${performance.now()}-${++Cc}`,L=bt({$hasCloseHandle:!1,$hasOpenHandle:!1,$hasShouldCloseHandle:!1,$key:""}),j=new Map;function mr(e){const{$key:t,$hasCloseHandle:n,$hasOpenHandle:i,$hasShouldCloseHandle:s}=e||{};if(L.$key!==t){if(t)throw new Et("`$key` is not allowed");if(n)throw new Et("`$hasCloseHandle` is not allowed");if(i)throw new Et("`$hasOpenHandle` is not allowed");if(s)throw new Et("`$hasShouldCloseHandle` is not allowed")}}function vr(e){return X.basePath?X.basePath+e:e}function di(e){return e===X.basePath?"/":e.replace(new RegExp(`^${X.basePath}/`),"/")}function fi(){X.dispatchEvent(new CustomEvent("beforechange"))}function bn(e){const t=j.get(L.$key)||{path:di(location.pathname),query:new Bt},n=e.path?Xn(t.path,e.path):di(location.pathname),i=new Bt(e.query??(e.path?"":location.search)),s=String(i)!==String(t.query),r=s?i:t.query,c=n!==t.path||s,a=e.title||(c?"":document.title),f=e.close||e.data||e.open||e.shouldClose,_=decodeURIComponent(e.hash??(!c&&f?location.hash:""));return{...e,title:a,path:n,query:r,hash:_}}function wr(e,t){mr(e.data);const n=bn(e),{title:i,path:s,query:r,hash:c,close:a,open:f,shouldClose:_,data:m}=n,o={$hasCloseHandle:!!a,$hasOpenHandle:!!f,$hasShouldCloseHandle:!!_,$key:ui(),$title:i,...m};j.set(o.$key,n),fi(),mn(L),L(o);const g=vr(s)+new Bt(r)+c,l=decodeURIComponent(location.hash);t(o,i,g),l!==c&&window.dispatchEvent(new CustomEvent("hashchange"))}function yr(e,t,n,i){mr(e);const s={$key:ui(),$title:t,...e||{}},{pathname:r,search:c,hash:a}=new URL(n,location.origin+location.pathname),f=bn({path:r,query:new Bt(c),hash:a,title:t,data:e});j.set(s.$key,f),fi(),mn(L),L(s);const _=vr(r)+f.query+a,m=location.hash;i(s,t,_),m!==a&&window.dispatchEvent(new CustomEvent("hashchange"))}const pi=bt({basePath:""});class Pc extends EventTarget{get store(){return L}get currentKey(){return L.$key}get basePath(){return pi.basePath}set basePath(t){pi({basePath:t}),Object.assign(j.get(L.$key),{path:di(location.pathname)})}getParams(){return j.get(L.$key)}updateParams(t){Object.assign(j.get(L.$key),t),L()}push(t){wr(t,_r)}replace(t){wr(t,gr)}pushIgnoreCloseHandle(t){var n,i;L.$hasCloseHandle?((i=(n=j.get(L.$key))==null?void 0:n.close)==null||i.call(n),this.replace(t)):this.push(t)}forward(){Y.forward()}back(){Y.back()}}const X=new Pc,He=bt({defaultTitle:document.title,url:"",title:""}),kc={history:X,titleStore:He,basePathStore:pi};if(!window._GEMHISTORY){if(window._GEMHISTORY=kc,Y.pushState=function(t,n,i){yr(t,n,i,_r)},Y.replaceState=function(t,n,i){yr(t,n,i,gr)},window.addEventListener("hashchange",({isTrusted:t})=>{t&&X.replace({hash:location.hash})}),Y.state)if(Y.state.$hasCloseHandle){L(Y.state);const t=bn({title:document.title});j.set(L.$key,t),X.back()}else{const t=bn({title:document.title,hash:location.hash});L({$key:ui(),...Y.state||{}}),j.set(L.$key,t)}else{const{protocol:t,pathname:n,search:i,hash:s}=location;t.startsWith("http")&&X.replace({path:n,query:i,hash:s})}ht(He,()=>{const t=j.get(L.$key);t&&(t.title=He.title)}),ht(L,()=>{const{title:t}=X.getParams();t!==He.title&&He({title:t})});let e=!1;window.addEventListener("popstate",t=>{var r,c;const n=t.state;if(!(n!=null&&n.$key))return;if(e){e=!1;return}if(!j.has(n.$key)){const{pathname:a,search:f,hash:_}=location;j.set(n.$key,{path:a,query:new Bt(f),hash:decodeURIComponent(_),title:n.$title,data:n})}const i=L;if(parseFloat(n.$key)>parseFloat(i.$key)&&n.$hasOpenHandle)(c=(r=j.get(n.$key))==null?void 0:r.open)==null||c.call(r);else if(i.$hasCloseHandle){const a=j.get(i.$key),f=a==null?void 0:a.close,_=a==null?void 0:a.shouldClose;if(_&&!_()){e=!0,X.forward();return}else f?f():n.$hasCloseHandle&&(e=!0,X.back())}fi(),mn(L),L(n)})}const{history:N,titleStore:Mt,basePathStore:Sr}=window._GEMHISTORY;/**
133
+ */typeof window<"u"&&(window.litHtmlVersions||(window.litHtmlVersions=[])).push("1.4.1");const rt=(e,...t)=>new Me(e,t,"html",Ds),Us=(e,...t)=>new Qn(e,t,"svg",Ds),{assign:uc,setPrototypeOf:dc,fromEntries:fc,entries:pc,keys:_c}=Object,ti=new Set;function $t(e){ti.has(e)||(queueMicrotask(()=>{ti.delete(e),e()}),ti.add(e))}function Oe(e,t){const n=t;return dc(n,null),delete n.name,delete n.length,uc(n,e),n}function ei(e="",t=""){const{pathname:n,search:i,hash:s}=new URL(t,location.origin+e);return n+i+decodeURIComponent(s)}function ni(e,t,n,i){return e.addEventListener(t,n,i),()=>e.removeEventListener(t,n,i)}class Bs extends EventTarget{constructor(){super(...arguments);C(this,cn);C(this,Rt,new Map);C(this,gt);C(this,It)}get size(){return p(this,Rt).size}get first(){return p(this,gt)}get last(){return p(this,It)}isSuperLinkOf(n){let i=n.first;if(!i)return!0;let s=this.find(i.value);for(;s&&s.value===i.value;){if(i=i.next,!i)return!0;s=s.next}return!1}find(n){return p(this,Rt).get(n)}add(n){p(this,It)||this.dispatchEvent(new CustomEvent("start"));const i=Ms(this,cn,Os).call(this,n)||{value:n};i.prev=p(this,It),i.prev&&(i.prev.next=i),i.next=void 0,O(this,It,i),p(this,gt)||O(this,gt,i),p(this,Rt).set(n,i)}delete(n){const i=Ms(this,cn,Os).call(this,n);return p(this,gt)||this.dispatchEvent(new CustomEvent("end")),i}get(){const n=p(this,gt);if(n)return this.delete(n.value),n.value}}Rt=new WeakMap,gt=new WeakMap,It=new WeakMap,cn=new WeakSet,Os=function(n){const i=p(this,Rt).get(n);return i&&(i.prev?i.prev.next=i.next:O(this,gt,i.next),i.next?i.next.prev=i.prev:O(this,It,i.prev),p(this,Rt).delete(n)),i};class Ks extends WeakMap{get(t){let n=super.get(t);return n||(n={},this.set(t,n)),n}}class Qt extends URLSearchParams{constructor(n){super(n);C(this,_e,n=>typeof n=="string"?n:JSON.stringify(n));C(this,zn,n=>{if(!n)return null;try{return JSON.parse(n)}catch{return null}})}concat(n){let i;typeof n=="string"?i=fc(new URLSearchParams(n).entries()):i=n,pc(i).forEach(([s,r])=>{this.append(s,p(this,_e).call(this,r))})}setAny(n,i){if(Array.isArray(i))this.delete(n),i.forEach(s=>this.append(n,p(this,_e).call(this,s)));else{const s=p(this,_e).call(this,i);s?this.set(n,s):this.delete(n)}}getAny(n){return this.getAnyAll(n)[0]}getAnyAll(n){return this.getAll(n).filter(i=>i!=="").map(i=>p(this,zn).call(this,i))}toString(){const n=super.toString();return n?`?${n}`:""}toJSON(){return this.toString()}}_e=new WeakMap,zn=new WeakMap;function gn(e,...t){return e.reduce((n,i,s)=>n+(t[s-1]??"")+i)}const ii=gn;function Le(e=5){const t=Math.random().toString(36).slice(2,2+e);return t.length<e?t+Le(e-t.length):t}const gc={class:gn};function Ht(e){return e.replace(/[A-Z]/g,t=>"-"+t.toLowerCase())}function mc(e){return e.replace(/-(.)/g,(t,n)=>n.toUpperCase())}function mn(e){return _c(e).forEach(t=>{delete e[t]}),e}class Et extends Error{constructor(t){super(t),this.message=`gem: ${this.message}`}}function js(e,t){const n=e.length;if(t.length!==n)return!0;for(let i=0;i<n;i++)if(e[i]!==t[i])return!0;return!1}function vn(e,t,n){let i=t;for(const s in e){const r=n(s,e[s]);i+=r?r+t:""}return i}function vc(e){return vn(e,";",(t,n)=>n||n===0?`${Ht(t)}:${n}`:"")}function Js(e){return vn(e," ",(t,n)=>n?t:"")}const wc=Js;function yc(e){return vn(e,",",(t,n)=>n===!0||t===n?t:n?`${t}:${n}`:"")}const Ne=new WeakMap;function bt(e){const t=Oe(e,n=>{var i;Object.assign(t,n),(i=Ne.get(t))==null||i.forEach(s=>$t(s))});return Ne.set(t,new Set),t}function dt(e,t){const n=Ne.get(e);return n==null||n.add(t),()=>n==null?void 0:n.delete(t)}const Sc=Object.freeze(Object.defineProperty({__proto__:null,StoreListenerMap:Ne,connect:dt,createStore:bt},Symbol.toStringTag,{value:"Module"})),{assign:Qs,defineProperty:$c}=Object;$c(Symbol,"metadata",{value:Symbol.for("Symbol.metadata")});const si=e=>typeof e=="function"&&e(),Ct=Symbol.for("gem@sheetToken"),Ae=Symbol.for("gem@update"),Ys="gem-style-boundary",wn="gem@render-error",Ec=Ae,ri=new WeakMap,Xs=new WeakMap,Zs=e=>[...e.querySelectorAll("[data-gem-reflect]")].map(t=>t.target);class bc{constructor(t){A(this,"refSelector");A(this,"ele");A(this,"ref");const n=`ref-${Le()}`;this.refSelector=`[ref=${n}]`,this.ele=t.internals.shadowRoot||t,this.ref=n}get element(){for(const t of[this.ele,...Zs(this.ele)]){const n=t.querySelector(this.refSelector);if(n)return n}}get elements(){return[this.ele,...Zs(this.ele)].map(t=>[...t.querySelectorAll(this.refSelector)]).flat()}toString(){return this.ref}}h.createRef=void 0;class Cc extends CSSStyleSheet{constructor(){super(...arguments);C(this,ft);A(this,"cssText","")}get element(){return p(this,ft)||(O(this,ft,document.createElement("style")),p(this,ft).textContent=this.cssText,p(this,ft).dataset.gemStyle=""),p(this,ft)}replaceSync(n){this.cssText=n,p(this,ft)&&(p(this,ft).textContent=n),super.replaceSync(n)}}ft=new WeakMap;class Pc{constructor(t=""){C(this,Bt,"");C(this,ln,"");C(this,ge,new Map);C(this,me,new Map);O(this,ln,t)}setContent(t){O(this,Bt,t)}getStyle(t){var r;const n=t&&!((r=t.internals)!=null&&r.shadowRoot),i=n?t.constructor:this;if(!p(this,ge).has(i)){const c=new Cc({media:p(this,ln)});p(this,ge).set(i,c)}const s=p(this,ge).get(i);if(!p(this,me).has(s)){let c=p(this,Bt),a="";n&&(a=`@scope (${t.tagName}) to (:state(${Ys}) > *)`,c=`${a}{ ${c} }`),s.replaceSync(c),p(this,me).set(s,a)}return s}updateStyle(){p(this,me).forEach((t,n)=>{n.replaceSync(t?`${t}{${p(this,Bt)}}`:p(this,Bt))})}}Bt=new WeakMap,ln=new WeakMap,ge=new WeakMap,me=new WeakMap;function Re(e,t){const n=t?e:"",i=t||e,s=new Pc(n),r={[Ct]:s};let c="";return typeof i=="string"?c=i:Object.keys(i).forEach(a=>{const f=a==="$";r[a]=f||a.includes("-")?a:`${a}-${Le()}`,c+=`${f?":where(:scope:not([hidden])),:host(:where(:not([hidden])))":`.${r[a]}`} {${i[a]}}`}),s.setContent(c),r}const tr=(e,t,n)=>{let i=!1;t.forEach(s=>{const r=e.get(s)||0;i||(i=n===1&&r===0||n===-1&&r===1),e.set(s,r+n)}),i&&$t(Xs.get(e))},kc=(e,t)=>{const n=e.getRootNode();if(!ri.has(n)){const s=new Map;ri.set(n,s),Xs.set(s,()=>{const r=n.adoptedStyleSheets.filter(c=>!s.has(c));s.forEach((c,a)=>c&&r.push(a)),n.adoptedStyleSheets=r.reverse()})}const i=ri.get(n);return tr(i,t,1),()=>tr(i,t,-1)};h.createState=void 0;function er(e){e==null||e.forEach(t=>{const{callback:n,getDep:i,values:s,preCallback:r}=t,c=i==null?void 0:i();(!i||!s||js(s,c))&&(si(r),t.preCallback=n(c,s),t.values=c,t.initialized=!0)})}function nr(e){return e.filter(t=>(si(t.preCallback),t.initialized=!1,t.values=void 0,t.fixed))}h._createTemplate=void 0;const Yt=new Bs,oi=(e=performance.now())=>{if(performance.now()>e+16)return requestAnimationFrame(oi);const t=Yt.get();t&&(t(),oi(e))};Yt.addEventListener("start",()=>$t(oi));let ai;const Ce=class Ce extends HTMLElement{constructor(){super();C(this,ht);C(this,we);C(this,it);C(this,mt,[]);C(this,Kt,[]);C(this,vt,[]);C(this,ye);C(this,wt);C(this,Se);C(this,$e);C(this,hn);C(this,Vn,()=>{er(p(this,mt))});C(this,Dn,()=>{er(p(this,Kt))});C(this,un,n=>{try{O(this,$e,!0),p(this,Dn).call(this);const i=p(this,we)===this,s=n?n.render():i?void 0:rt`<slot></slot>`;if(O(this,$e,!1),s===void 0)return;_n(s,p(this,we))}catch(i){this.dispatchEvent(new CustomEvent(wn,{bubbles:!0,composed:!0,detail:i}))}});C(this,Ee,()=>{const n=p(this,ht,Ls);p(this,wt)&&(n||!p(this,vt).length)&&(p(this,un).call(this,n),$t(p(this,Vn)))});C(this,jt,()=>{p(this,ht,Pe).noBlocking?Yt.add(p(this,Ee)):p(this,Ee).call(this)});C(this,Fn,()=>{const{adoptedStyleSheets:n=[]}=p(this,ht,Pe),{shadowRoot:i,sheets:s}=p(this,it),r=n.map(c=>c[Ct].getStyle(this));if(i)i.adoptedStyleSheets=r.concat(s);else return this.prepend(...s.map(c=>c.element)),kc(this,r)});C(this,qn,()=>{var n;(n=p(this,mt))==null||n.forEach(i=>{const{callback:s,getDep:r,initialized:c}=i;c||(i.values=r==null?void 0:r(),i.preCallback=s(i.values),i.initialized=!0)})});C(this,Un,()=>{var n;this.willMount&&this.memo(this.willMount.bind(this),()=>[]),this.mounted&&this.effect(this.mounted.bind(this),()=>[]),this.updated&&this.effect((i,s)=>s&&this.updated.apply(this)),this.unmounted&&this.effect(()=>this.unmounted.bind(this),()=>[]),!p(this,vt).length&&this.render&&p(this,vt).push({render:this.render.bind(this),condition:(n=this.shouldUpdate)==null?void 0:n.bind(this)})});C(this,dn);C(this,be,async()=>{if(p(this,ye)){O(this,ye,!1);return}p(this,Un).call(this);const{observedStores:n,mode:i,penetrable:s}=p(this,ht,Pe);!i&&p(this,vt).length&&!s&&p(this,it).states.add(Ys),O(this,Se,!0),O(this,dn,n==null?void 0:n.map(r=>dt(r,p(this,jt)))),p(this,un).call(this,p(this,ht,Ls)),O(this,wt,!0),O(this,hn,p(this,Fn).call(this)),await Promise.resolve(),p(this,qn).call(this)});A(this,"effect",(n,i)=>{const s={callback:n,getDep:i,initialized:p(this,wt),fixed:!p(this,Se)};p(this,wt)&&(s.values=i==null?void 0:i(),s.preCallback=n(s.values)),p(this,mt).push(s)});A(this,"memo",(n,i)=>{p(this,Kt).push({callback:n,getDep:i,fixed:!p(this,Se)})});A(this,"update",()=>$t(p(this,jt)));ai=this;const{mode:n,serializable:i,delegatesFocus:s,slotAssignment:r,aria:c}=p(this,ht,Pe),{focusable:a,...f}=c||{};O(this,we,n?this.attachShadow({mode:n,serializable:i,delegatesFocus:s,slotAssignment:r}):this),O(this,it,this.attachInternals()),p(this,it).stateList=[],p(this,it).sheets=[],Qs(p(this,it),f);let _;p(this,mt).push({fixed:!0,getDep:()=>[this.disabled],callback:([m=!1])=>{if(_===void 0&&(_=this.hasAttribute("tabindex")),p(this,it).ariaDisabled=String(m),a&&!_&&(this.tabIndex=-Number(m)),(a||s)&&m)return ni(this,"click",o=>o.isTrusted&&o.stopImmediatePropagation(),{capture:!0})}})}[Ec](){p(this,wt)&&$t(p(this,jt))}get internals(){return p(this,it)}connectedCallback(){return p(this,ht,Pe).noBlocking?Yt.add(p(this,be)):p(this,be).call(this),p(Ce,ve)}adoptedCallback(){return p(Ce,ve)}disconnectedCallback(){var n;if(this.isConnected){O(this,ye,!0);return}return Yt.delete(p(this,be)),Yt.delete(p(this,Ee)),O(this,wt,!1),(n=p(this,dn))==null||n.forEach(i=>i()),O(this,mt,nr(p(this,mt))),O(this,Kt,nr(p(this,Kt))),si(p(this,hn)),p(Ce,ve)}};ve=new WeakMap,we=new WeakMap,it=new WeakMap,mt=new WeakMap,Kt=new WeakMap,vt=new WeakMap,ye=new WeakMap,wt=new WeakMap,Se=new WeakMap,$e=new WeakMap,hn=new WeakMap,ht=new WeakSet,Pe=function(){return this.constructor[Symbol.metadata]},Ls=function(){return p(this,vt).findLast(n=>!n.condition||n.condition())},Vn=new WeakMap,Dn=new WeakMap,un=new WeakMap,Ee=new WeakMap,jt=new WeakMap,Fn=new WeakMap,qn=new WeakMap,Un=new WeakMap,dn=new WeakMap,be=new WeakMap,C(Ce,ve,Symbol()),h.createState=n=>{const i=ai,s=Oe(n,r=>{Qs(s,r),p(i,$e)||$t(p(i,jt))});return p(i,it).stateList.push(s),s},h.createRef=()=>new bc(ai),h._createTemplate=(n,i)=>p(n,vt).push(i);let U=Ce;const Tc=Object.freeze(Object.defineProperty({__proto__:null,GemElement:U,SVGTemplateResult:Qn,SheetToken:Ct,TemplateResult:Me,UpdateToken:Ae,_RenderErrorEvent:wn,get _createTemplate(){return h._createTemplate},createCSSSheet:Re,get createRef(){return h.createRef},get createState(){return h.createState},directive:yt,html:rt,render:_n,svg:Us},Symbol.toStringTag,{value:"Module"})),ir="2.1.1",Mc=Object.freeze(Object.defineProperty({__proto__:null,version:ir},Symbol.toStringTag,{value:"Module"})),{deleteProperty:Oc,getOwnPropertyDescriptor:sr,defineProperty:yn}=Reflect,{getPrototypeOf:Pt,assign:rr}=Object,or=new Ks;function kt(e,t,n){const i=e.metadata;if(!sr(i,t)){const s=new Set(i[t]);s.delete(n),yn(i,t,{value:[...s]})}i[t].push(n)}function Sn(e,t){const{value:n}=sr(e,t);Oc(e,t),e[t]=n}const Ie=new WeakMap,{setAttribute:ar,toggleAttribute:Lc,removeAttribute:cr}=Element.prototype;U.prototype.setAttribute=function(e,t){var i;const n=(i=Ie.get(Pt(this)))==null?void 0:i.get(e);if(!n)return ar.call(this,e,t);this[n]=t},U.prototype.removeAttribute=function(e){var n;const t=(n=Ie.get(Pt(this)))==null?void 0:n.get(e);if(!t)return cr.call(this,e);this[t]=null},U.prototype.toggleAttribute=function(e,t){var i;const n=(i=Ie.get(Pt(this)))==null?void 0:i.get(e);return n?this[n]=t??!this.hasAttribute(e):Lc.call(this,e,t)};function Nc(){}const lr=Symbol("event handle");function ci(e,t,{attr:n,attrType:i,event:s,eventOptions:r}={}){yn(e,t,{configurable:!0,get(){const c=or.get(this)[t];return s&&!c?(this[t]=Nc,this[t]):c},set(c){const a=this,f=or.get(a);n&&(c=i===Boolean&&c===""?!0:i(c||""),c?ar.call(this,n,i===Boolean?"":c):cr.call(this,n)),c!==f[t]&&(s?(f[t]=c!=null&&c[lr]?c:(_,m)=>{const o=new CustomEvent(s,{...m,...r,detail:_});a.dispatchEvent(o),c(_,m)},f[t][lr]=!0):(f[t]=c,this[Ae]()))}})}function li(e,t){const n=e.name,i=Ht(n);return e.addInitializer(function(){const s=Pt(this);if(!s.hasOwnProperty(n)){kt(e,"observedAttributes",i),ci(s,n,{attr:i,attrType:t});const r=Ie.get(s)||new Map;r.set(i,n),Ie.set(s,r)}Sn(this,n)}),function(s){return this.getAttribute(i)??s}}function F(e,t){return li(t,String)}function He(e,t){return li(t,Boolean)}function hr(e,t){return li(t,Number)}function B(e,t){const n=t.name;return t.addInitializer(function(){const i=Pt(this);i.hasOwnProperty(n)||(kt(t,"observedProperties",n),ci(i,n)),Sn(this,n)}),function(i){return this[n]??i}}function hi(e){return function(t,n){const{addInitializer:i,name:s,access:r,kind:c}=n;i(function(){const a=e&&(()=>e(this));if(c==="getter"){if(n.private)throw new Et("not support");this.memo(()=>yn(this,s,{configurable:!0,value:r.get(this)}),a)}else this.memo(r.get(this).bind(this),a)})}}function pt(e){return function(t,{addInitializer:n,access:i}){n(function(){this.effect(i.get(this).bind(this),e&&(()=>e(this)))})}}function ur(){return function(e,{addInitializer:t,access:n}){t(function(){this.effect(()=>n.get(this).bind(this),()=>[])})}}function $n(){return hi(()=>[])}function Xt(){return pt(()=>[])}function Wt(e){return function(t,{addInitializer:n,access:i}){n(function(){h._createTemplate(this,{render:i.get(this).bind(this),condition:e&&(()=>e(this))})})}}function dr(){return function(e,{addInitializer:t,access:n}){t(function(){this.addEventListener(wn,({detail:i})=>{_n(n.get(this).apply(this,[i]),this.internals.shadowRoot||this)})})}}function Ac(e,t,n){yn(e,t,{configurable:!0,get(){const i=this,{states:s}=i.internals;return s==null?void 0:s.has(n)},set(i){const s=this,{states:r}=s.internals;i?r==null||r.add(n):r==null||r.delete(n)}})}function We(e,t){t.addInitializer(function(){const n=Pt(this),i=t.name;if(!n.hasOwnProperty(i)){const s=Ht(i);kt(t,"definedCSSStates",s),Ac(n,i,s)}Sn(this,i)})}function fr(e,t,n,i){const s=e.name,r=Ht(s);if(e.static)kt(e,n,r);else{const c=Pt(t);c[s]||(c[s]=r,kt(e,n,r))}return i||r}function pr(e,t){return function(n){return fr(t,this,"definedSlots",n)}}function ui(e,t){return function(n){return fr(t,this,"definedParts",n)}}function Zt(e,t){t.addInitializer(function(){gr(t,this,t.name)})}function _r(e,t){t.addInitializer(function(){gr(t,this,t.name,{bubbles:!0,composed:!0})})}function gr(e,t,n,i){const s=Pt(t);if(!s.hasOwnProperty(n)){const r=Ht(n);kt(e,"definedEvents",r),ci(s,n,{event:r,eventOptions:i})}Sn(t,n)}function En(e){return function(t,n){kt(n,"adoptedStyleSheets",e)}}function Ge(e){return function(t,n){kt(n,"observedStores",e)}}function Tt({mode:e="open",serializable:t=!0,delegatesFocus:n,slotAssignment:i}={}){return function(s,r){const c=r.metadata;rr(c,{mode:e,serializable:t,delegatesFocus:n,slotAssignment:i})}}function di({penetrable:e}){return function(t,n){const i=n.metadata;i.penetrable=e}}function mr(){return function(e,t){const n=t.metadata;n.noBlocking=!0}}function xe(e){return function(t,n){const i=n.metadata;i.aria={...i.aria,...e}}}function vr(e){return function(t,{addInitializer:n}){n(function(){customElements.define(e,t)})}}window.__GEM_DEVTOOLS__HOOK__&&!window.__GEM_DEVTOOLS__HOOK__.GemElement&&rr(window.__GEM_DEVTOOLS__HOOK__,{...Tc,...M,...Sc,...Mc});const X=window.history,wr=X.pushState.bind(X),yr=X.replaceState.bind(X);let Rc=0;const fi=()=>`${performance.now()}-${++Rc}`,L=bt({$hasCloseHandle:!1,$hasOpenHandle:!1,$hasShouldCloseHandle:!1,$key:""}),K=new Map;function Sr(e){const{$key:t,$hasCloseHandle:n,$hasOpenHandle:i,$hasShouldCloseHandle:s}=e||{};if(L.$key!==t){if(t)throw new Et("`$key` is not allowed");if(n)throw new Et("`$hasCloseHandle` is not allowed");if(i)throw new Et("`$hasOpenHandle` is not allowed");if(s)throw new Et("`$hasShouldCloseHandle` is not allowed")}}function $r(e){return Z.basePath?Z.basePath+e:e}function pi(e){return e===Z.basePath?"/":e.replace(new RegExp(`^${Z.basePath}/`),"/")}function _i(){Z.dispatchEvent(new CustomEvent("beforechange"))}function bn(e){const t=K.get(L.$key)||{path:pi(location.pathname),query:new Qt},n=e.path?ei(t.path,e.path):pi(location.pathname),i=new Qt(e.query??(e.path?"":location.search)),s=String(i)!==String(t.query),r=s?i:t.query,c=n!==t.path||s,a=e.title||(c?"":document.title),f=e.close||e.data||e.open||e.shouldClose,_=decodeURIComponent(e.hash??(!c&&f?location.hash:""));return{...e,title:a,path:n,query:r,hash:_}}function Er(e,t){Sr(e.data);const n=bn(e),{title:i,path:s,query:r,hash:c,close:a,open:f,shouldClose:_,data:m}=n,o={$hasCloseHandle:!!a,$hasOpenHandle:!!f,$hasShouldCloseHandle:!!_,$key:fi(),$title:i,...m};K.set(o.$key,n),_i(),mn(L),L(o);const g=$r(s)+new Qt(r)+c,l=decodeURIComponent(location.hash);t(o,i,g),l!==c&&window.dispatchEvent(new CustomEvent("hashchange"))}function br(e,t,n,i){Sr(e);const s={$key:fi(),$title:t,...e||{}},{pathname:r,search:c,hash:a}=new URL(n,location.origin+location.pathname),f=bn({path:r,query:new Qt(c),hash:a,title:t,data:e});K.set(s.$key,f),_i(),mn(L),L(s);const _=$r(r)+f.query+a,m=location.hash;i(s,t,_),m!==a&&window.dispatchEvent(new CustomEvent("hashchange"))}const gi=bt({basePath:""});class Ic extends EventTarget{get store(){return L}get currentKey(){return L.$key}get basePath(){return gi.basePath}set basePath(t){gi({basePath:t}),Object.assign(K.get(L.$key),{path:pi(location.pathname)})}getParams(){return K.get(L.$key)}updateParams(t){Object.assign(K.get(L.$key),t),L()}push(t){Er(t,wr)}replace(t){Er(t,yr)}pushIgnoreCloseHandle(t){var n,i;L.$hasCloseHandle?((i=(n=K.get(L.$key))==null?void 0:n.close)==null||i.call(n),this.replace(t)):this.push(t)}forward(){X.forward()}back(){X.back()}}const Z=new Ic,ze=bt({defaultTitle:document.title,url:"",title:""}),Hc={history:Z,titleStore:ze,basePathStore:gi};if(!window._GEMHISTORY){if(window._GEMHISTORY=Hc,X.pushState=function(t,n,i){br(t,n,i,wr)},X.replaceState=function(t,n,i){br(t,n,i,yr)},window.addEventListener("hashchange",({isTrusted:t})=>{t&&Z.replace({hash:location.hash})}),X.state)if(X.state.$hasCloseHandle){L(X.state);const t=bn({title:document.title});K.set(L.$key,t),Z.back()}else{const t=bn({title:document.title,hash:location.hash});L({$key:fi(),...X.state||{}}),K.set(L.$key,t)}else{const{protocol:t,pathname:n,search:i,hash:s}=location;t.startsWith("http")&&Z.replace({path:n,query:i,hash:s})}dt(ze,()=>{const t=K.get(L.$key);t&&(t.title=ze.title)}),dt(L,()=>{const{title:t}=Z.getParams();t!==ze.title&&ze({title:t})});let e=!1;window.addEventListener("popstate",t=>{var r,c;const n=t.state;if(!(n!=null&&n.$key))return;if(e){e=!1;return}if(!K.has(n.$key)){const{pathname:a,search:f,hash:_}=location;K.set(n.$key,{path:a,query:new Qt(f),hash:decodeURIComponent(_),title:n.$title,data:n})}const i=L;if(parseFloat(n.$key)>parseFloat(i.$key)&&n.$hasOpenHandle)(c=(r=K.get(n.$key))==null?void 0:r.open)==null||c.call(r);else if(i.$hasCloseHandle){const a=K.get(i.$key),f=a==null?void 0:a.close,_=a==null?void 0:a.shouldClose;if(_&&!_()){e=!0,Z.forward();return}else f?f():n.$hasCloseHandle&&(e=!0,Z.back())}_i(),mn(L),L(n)})}const{history:N,titleStore:Mt,basePathStore:Cr}=window._GEMHISTORY;/**
134
134
  * @license
135
135
  * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
136
136
  * This code may only be used under the BSD style license found at
@@ -142,7 +142,7 @@
142
142
  * Code distributed by Google as part of the polymer project is also
143
143
  * subject to an additional IP rights grant found at
144
144
  * http://polymer.github.io/PATENTS.txt
145
- */const $r=(e,t)=>{const n=e.startNode.parentNode,i=t===void 0?e.endNode:t.startNode,s=n.insertBefore(lt(),i);n.insertBefore(lt(),i);const r=new Ut(e.options);return r.insertAfterNode(s),r},Wt=(e,t)=>(e.setValue(t),e.commit(),e),_i=(e,t,n)=>{const i=e.startNode.parentNode,s=n?n.startNode:e.endNode,r=t.endNode.nextSibling;r!==s&&Ms(i,t.startNode,r,s)},gi=e=>{Un(e.startNode.parentNode,e.startNode,e.endNode.nextSibling)},Er=(e,t,n)=>{const i=new Map;for(let s=t;s<=n;s++)i.set(e[s],s);return i},br=new WeakMap,Cr=new WeakMap,Tc=yt((e,t,n)=>{let i;return n===void 0?n=t:t!==void 0&&(i=t),s=>{if(!(s instanceof Ut))throw new Error("repeat can only be used in text bindings");const r=br.get(s)||[],c=Cr.get(s)||[],a=[],f=[],_=[];let m=0;for(const b of e)_[m]=i?i(b,m):m,f[m]=n(b,m),m++;let o,g,l=0,v=r.length-1,w=0,S=f.length-1;for(;l<=v&&w<=S;)if(r[l]===null)l++;else if(r[v]===null)v--;else if(c[l]===_[w])a[w]=Wt(r[l],f[w]),l++,w++;else if(c[v]===_[S])a[S]=Wt(r[v],f[S]),v--,S--;else if(c[l]===_[S])a[S]=Wt(r[l],f[S]),_i(s,r[l],a[S+1]),l++,S--;else if(c[v]===_[w])a[w]=Wt(r[v],f[w]),_i(s,r[v],r[l]),v--,w++;else if(o===void 0&&(o=Er(_,w,S),g=Er(c,l,v)),!o.has(c[l]))gi(r[l]),l++;else if(!o.has(c[v]))gi(r[v]),v--;else{const b=g.get(_[w]),d=b!==void 0?r[b]:null;if(d===null){const $=$r(s,r[l]);Wt($,f[w]),a[w]=$}else a[w]=Wt(d,f[w]),_i(s,d,r[l]),r[b]=null;w++}for(;w<=S;){const b=$r(s,a[S+1]);Wt(b,f[w]),a[w++]=b}for(;l<=v;){const b=r[l++];b!==null&&gi(b)}br.set(s,a),Cr.set(s,_)}});/**
145
+ */const Pr=(e,t)=>{const n=e.startNode.parentNode,i=t===void 0?e.endNode:t.startNode,s=n.insertBefore(ut(),i);n.insertBefore(ut(),i);const r=new Jt(e.options);return r.insertAfterNode(s),r},Gt=(e,t)=>(e.setValue(t),e.commit(),e),mi=(e,t,n)=>{const i=e.startNode.parentNode,s=n?n.startNode:e.endNode,r=t.endNode.nextSibling;r!==s&&As(i,t.startNode,r,s)},vi=e=>{jn(e.startNode.parentNode,e.startNode,e.endNode.nextSibling)},kr=(e,t,n)=>{const i=new Map;for(let s=t;s<=n;s++)i.set(e[s],s);return i},Tr=new WeakMap,Mr=new WeakMap,Wc=yt((e,t,n)=>{let i;return n===void 0?n=t:t!==void 0&&(i=t),s=>{if(!(s instanceof Jt))throw new Error("repeat can only be used in text bindings");const r=Tr.get(s)||[],c=Mr.get(s)||[],a=[],f=[],_=[];let m=0;for(const b of e)_[m]=i?i(b,m):m,f[m]=n(b,m),m++;let o,g,l=0,v=r.length-1,w=0,S=f.length-1;for(;l<=v&&w<=S;)if(r[l]===null)l++;else if(r[v]===null)v--;else if(c[l]===_[w])a[w]=Gt(r[l],f[w]),l++,w++;else if(c[v]===_[S])a[S]=Gt(r[v],f[S]),v--,S--;else if(c[l]===_[S])a[S]=Gt(r[l],f[S]),mi(s,r[l],a[S+1]),l++,S--;else if(c[v]===_[w])a[w]=Gt(r[v],f[w]),mi(s,r[v],r[l]),v--,w++;else if(o===void 0&&(o=kr(_,w,S),g=kr(c,l,v)),!o.has(c[l]))vi(r[l]),l++;else if(!o.has(c[v]))vi(r[v]),v--;else{const b=g.get(_[w]),d=b!==void 0?r[b]:null;if(d===null){const E=Pr(s,r[l]);Gt(E,f[w]),a[w]=E}else a[w]=Gt(d,f[w]),mi(s,d,r[l]),r[b]=null;w++}for(;w<=S;){const b=Pr(s,a[S+1]);Gt(b,f[w]),a[w++]=b}for(;l<=v;){const b=r[l++];b!==null&&vi(b)}Tr.set(s,a),Mr.set(s,_)}});/**
146
146
  * @license
147
147
  * Copyright (c) 2018 The Polymer Project Authors. All rights reserved.
148
148
  * This code may only be used under the BSD style license found at
@@ -154,7 +154,7 @@
154
154
  * Code distributed by Google as part of the polymer project is also
155
155
  * subject to an additional IP rights grant found at
156
156
  * http://polymer.github.io/PATENTS.txt
157
- */const mi=new WeakMap,Mc=yt((e,t)=>n=>{const i=mi.get(n);if(Array.isArray(e)){if(Array.isArray(i)&&i.length===e.length&&e.every((s,r)=>s===i[r]))return}else if(i===e&&(e!==void 0||mi.has(n)))return;n.setValue(t()),mi.set(n,Array.isArray(e)?Array.from(e):e)});/**
157
+ */const wi=new WeakMap,Gc=yt((e,t)=>n=>{const i=wi.get(n);if(Array.isArray(e)){if(Array.isArray(i)&&i.length===e.length&&e.every((s,r)=>s===i[r]))return}else if(i===e&&(e!==void 0||wi.has(n)))return;n.setValue(t()),wi.set(n,Array.isArray(e)?Array.from(e):e)});/**
158
158
  * @license
159
159
  * Copyright (c) 2018 The Polymer Project Authors. All rights reserved.
160
160
  * This code may only be used under the BSD style license found at
@@ -166,15 +166,15 @@
166
166
  * Code distributed by Google as part of the polymer project is also
167
167
  * subject to an additional IP rights grant found at
168
168
  * http://polymer.github.io/PATENTS.txt
169
- */const vi=new WeakMap,Pr=yt(e=>t=>{const n=vi.get(t);if(e===void 0&&t instanceof Qn){if(n!==void 0||!vi.has(t)){const i=t.committer.name;t.committer.element.removeAttribute(i)}}else e!==n&&t.setValue(e);vi.set(t,e)});var Oc=Object.create,wi=Object.defineProperty,Lc=Object.getOwnPropertyDescriptor,kr=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),Qt=e=>{throw TypeError(e)},Tr=(e,t,n)=>t in e?wi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Mr=(e,t)=>wi(e,"name",{value:t,configurable:!0}),Or=e=>[,,,Oc((e==null?void 0:e[kr("metadata")])??null)],Lr=["class","method","getter","setter","accessor","field","value","get","set"],We=e=>e!==void 0&&typeof e!="function"?Qt("Function expected"):e,Nc=(e,t,n,i,s)=>({kind:Lr[e],name:t,metadata:i,addInitializer:r=>n._?Qt("Already initialized"):s.push(We(r||null))}),Ac=(e,t)=>Tr(t,kr("metadata"),e[3]),k=(e,t,n,i)=>{for(var s=0,r=e[t>>1],c=r&&r.length;s<c;s++)t&1?r[s].call(n):i=r[s].call(n,i);return i},z=(e,t,n,i,s,r)=>{var c,a,f,_,m,o=t&7,g=!!(t&8),l=!!(t&16),v=o>3?e.length+1:o?g?1:2:0,w=Lr[o+5],S=o>3&&(e[v-1]=[]),b=e[v]||(e[v]=[]),d=o&&(!l&&!g&&(s=s.prototype),o<5&&(o>3||!l)&&Lc(o<4?s:{get[n](){return V(this,r)},set[n](u){return Cn(this,r,u)}},n));o?l&&o<4&&Mr(r,(o>2?"set ":o>1?"get ":"")+n):Mr(s,n);for(var $=i.length-1;$>=0;$--)_=Nc(o,n,f={},e[3],b),o&&(_.static=g,_.private=l,m=_.access={has:l?u=>Rc(s,u):u=>n in u},o^3&&(m.get=l?u=>(o^1?V:Ic)(u,s,o^4?r:d.get):u=>u[n]),o>2&&(m.set=l?(u,T)=>Cn(u,s,T,o^4?r:d.set):(u,T)=>u[n]=T)),a=(0,i[$])(o?o<4?l?r:d[w]:o>4?void 0:{get:d.get,set:d.set}:s,_),f._=1,o^4||a===void 0?We(a)&&(o>4?S.unshift(a):o?l?r=a:d[w]=a:s=a):typeof a!="object"||a===null?Qt("Object expected"):(We(c=a.get)&&(d.get=c),We(c=a.set)&&(d.set=c),We(c=a.init)&&S.unshift(c));return o||Ac(e,s),d&&wi(s,n,d),l?o^4?r:d:s},F=(e,t,n)=>Tr(e,typeof t!="symbol"?t+"":t,n),yi=(e,t,n)=>t.has(e)||Qt("Cannot "+n),Rc=(e,t)=>Object(t)!==t?Qt('Cannot use the "in" operator on this value'):e.has(t),V=(e,t,n)=>(yi(e,t,"read from private field"),n?n.call(e):t.get(e)),st=(e,t,n)=>t.has(e)?Qt("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),Cn=(e,t,n,i)=>(yi(e,t,"write to private field"),i?i.call(e,n):t.set(e,n),n),Ic=(e,t,n)=>(yi(e,t,"access private method"),n),Nr,Ar,Rr,Ir,Hr,Wr,Gr,xr,zr,Vr,Dr,Fr,qr,Ur,Br,Si,jr,y,Gt,Yt,Ge,Pn,$i,xe,kn,Ei,bi,Ci,Pi,ki,Kr,Ti,Jr;const Qr="_";class Hc extends RegExp{constructor(t){let n=0;super(`^${t.replace(/((:[^/$]+)|(\*))/g,(i,s)=>s==="*"?`(?<${Qr}${n++}>.*)`:`(?<${s.slice(1)}>[^/]+)`)}$`)}}function Mi(e,t){if(window.URLPattern){const r=new window.URLPattern({pathname:e}),c=r.exec({pathname:t})||r.exec({pathname:`${t}/`});return c?c.pathname.groups:null}const n=new Hc(e),i=t.match(n)||`${t}/`.match(n);if(!i)return null;const s={};return i.groups&&Object.entries(i.groups).forEach(([r,c])=>{s[r.startsWith(Qr)?r.slice(1):r]=c}),s}function Tn(e,t){let n=0,i=e.pattern.replaceAll("*",()=>`:${n++}`);const s=t==null?void 0:t.params;return s&&Object.keys(s).forEach(r=>{i=i.replace(new RegExp(`:${r}`,"g"),s[r])}),i}function Yr(e,t){return{path:Tn(e,t),...t}}const Oi=it``,Xr=new Map;jr=[hi({penetrable:!0})];class I extends(Si=q,Br=[Ne],Ur=[U],qr=[U],Fr=[U],Dr=[Jt],Vr=[Jt],zr=[Jt],xr=[Jt],Gr=[U],Wr=[U],Hr=[U],Ir=[dt(t=>[t.scrollContainer])],Rr=[dt(t=>[t.scrollContainer])],Ar=[dt(t=>{var n;return V(n=t,Ci).call(n)})],Nr=[ci(t=>!t.inert)],Si){constructor(){super(...arguments),st(this,Gt),F(this,"transition",k(y,8,this)),k(y,11,this),F(this,"routes",k(y,12,this)),k(y,15,this),F(this,"locationStore",k(y,16,this)),k(y,19,this),F(this,"key",k(y,20,this)),k(y,23,this),F(this,"loading",k(y,24,this)),k(y,27,this),F(this,"beforeroutechange",k(y,28,this)),k(y,31,this),F(this,"routechange",k(y,32,this)),k(y,35,this),F(this,"error",k(y,36,this)),k(y,39,this),F(this,"scrollContainer",k(y,40,this)),k(y,43,this),F(this,"scrollIgnoreHash",k(y,44,this)),k(y,47,this),F(this,"trigger",k(y,48,this,N)),k(y,51,this),F(this,"currentRoute"),F(this,"currentParams",{}),st(this,Ge,h.createState({content:Oi})),st(this,Pn,()=>{if(!this.locationStore)return;const{path:t,query:n,hash:i,data:s}=N.getParams();this.locationStore({path:t,params:this.currentParams,query:n,hash:i,data:s})}),st(this,$i,()=>{if(!V(this,Gt,Yt))return;const t=Xr.get(N.currentKey);t?V(this,Gt,Yt).scroll(0,t):(this.scrollIgnoreHash||!N.getParams().hash)&&V(this,Gt,Yt).scroll(0,0)}),st(this,xe),st(this,kn,(t,n,i)=>{this.beforeroutechange(t),Cn(this,xe,void 0),this.currentRoute=t,this.currentParams=n;const s=async()=>{V(this,Ge).call(this,{content:i}),V(this,Pn).call(this),await Promise.resolve(),V(this,$i).call(this),this.routechange(this.currentRoute)};this.transition&&"startViewTransition"in document?document.startViewTransition(()=>s()):s()}),st(this,Ei,k(y,52,this,()=>{if(V(this,Gt,Yt))return Zn(N,"beforechange",()=>Xr.set(N.currentKey,V(this,Gt,Yt).scrollTop))})),k(y,55,this),st(this,bi,k(y,56,this,()=>this.trigger.store&&ht(this.trigger.store,()=>V(this,Ge).call(this)))),k(y,59,this),st(this,Ci,()=>{const{path:t,query:n,hash:i}=this.trigger.getParams();return[this.key,t,n,i]}),st(this,Pi,k(y,60,this,([t,n],i)=>{if(i&&t===i[0]&&n===i[1]){V(this,Pn).call(this);return}this.update()})),k(y,63,this),st(this,ki,k(y,64,this,()=>{const{content:t}=V(this,Ge);if(t!==void 0)return this.shadowRoot?it`
169
+ */const yi=new WeakMap,Or=yt(e=>t=>{const n=yi.get(t);if(e===void 0&&t instanceof Zn){if(n!==void 0||!yi.has(t)){const i=t.committer.name;t.committer.element.removeAttribute(i)}}else e!==n&&t.setValue(e);yi.set(t,e)});var xc=Object.create,Si=Object.defineProperty,zc=Object.getOwnPropertyDescriptor,Lr=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),te=e=>{throw TypeError(e)},Nr=(e,t,n)=>t in e?Si(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ar=(e,t)=>Si(e,"name",{value:t,configurable:!0}),Rr=e=>[,,,xc((e==null?void 0:e[Lr("metadata")])??null)],Ir=["class","method","getter","setter","accessor","field","value","get","set"],Ve=e=>e!==void 0&&typeof e!="function"?te("Function expected"):e,Vc=(e,t,n,i,s)=>({kind:Ir[e],name:t,metadata:i,addInitializer:r=>n._?te("Already initialized"):s.push(Ve(r||null))}),Dc=(e,t)=>Nr(t,Lr("metadata"),e[3]),k=(e,t,n,i)=>{for(var s=0,r=e[t>>1],c=r&&r.length;s<c;s++)t&1?r[s].call(n):i=r[s].call(n,i);return i},V=(e,t,n,i,s,r)=>{var c,a,f,_,m,o=t&7,g=!!(t&8),l=!!(t&16),v=o>3?e.length+1:o?g?1:2:0,w=Ir[o+5],S=o>3&&(e[v-1]=[]),b=e[v]||(e[v]=[]),d=o&&(!l&&!g&&(s=s.prototype),o<5&&(o>3||!l)&&zc(o<4?s:{get[n](){return D(this,r)},set[n](u){return Cn(this,r,u)}},n));o?l&&o<4&&Ar(r,(o>2?"set ":o>1?"get ":"")+n):Ar(s,n);for(var E=i.length-1;E>=0;E--)_=Vc(o,n,f={},e[3],b),o&&(_.static=g,_.private=l,m=_.access={has:l?u=>Fc(s,u):u=>n in u},o^3&&(m.get=l?u=>(o^1?D:qc)(u,s,o^4?r:d.get):u=>u[n]),o>2&&(m.set=l?(u,T)=>Cn(u,s,T,o^4?r:d.set):(u,T)=>u[n]=T)),a=(0,i[E])(o?o<4?l?r:d[w]:o>4?void 0:{get:d.get,set:d.set}:s,_),f._=1,o^4||a===void 0?Ve(a)&&(o>4?S.unshift(a):o?l?r=a:d[w]=a:s=a):typeof a!="object"||a===null?te("Object expected"):(Ve(c=a.get)&&(d.get=c),Ve(c=a.set)&&(d.set=c),Ve(c=a.init)&&S.unshift(c));return o||Dc(e,s),d&&Si(s,n,d),l?o^4?r:d:s},q=(e,t,n)=>Nr(e,typeof t!="symbol"?t+"":t,n),$i=(e,t,n)=>t.has(e)||te("Cannot "+n),Fc=(e,t)=>Object(t)!==t?te('Cannot use the "in" operator on this value'):e.has(t),D=(e,t,n)=>($i(e,t,"read from private field"),n?n.call(e):t.get(e)),ot=(e,t,n)=>t.has(e)?te("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),Cn=(e,t,n,i)=>($i(e,t,"write to private field"),i?i.call(e,n):t.set(e,n),n),qc=(e,t,n)=>($i(e,t,"access private method"),n),Hr,Wr,Gr,xr,zr,Vr,Dr,Fr,qr,Ur,Br,Kr,jr,Jr,Qr,Ei,Yr,y,xt,ee,De,Pn,bi,Fe,kn,Ci,Pi,ki,Ti,Mi,Xr,Oi,Zr;const to="_";class Uc extends RegExp{constructor(t){let n=0;super(`^${t.replace(/((:[^/$]+)|(\*))/g,(i,s)=>s==="*"?`(?<${to}${n++}>.*)`:`(?<${s.slice(1)}>[^/]+)`)}$`)}}function Li(e,t){if(window.URLPattern){const r=new window.URLPattern({pathname:e}),c=r.exec({pathname:t})||r.exec({pathname:`${t}/`});return c?c.pathname.groups:null}const n=new Uc(e),i=t.match(n)||`${t}/`.match(n);if(!i)return null;const s={};return i.groups&&Object.entries(i.groups).forEach(([r,c])=>{s[r.startsWith(to)?r.slice(1):r]=c}),s}function Tn(e,t){let n=0,i=e.pattern.replaceAll("*",()=>`:${n++}`);const s=t==null?void 0:t.params;return s&&Object.keys(s).forEach(r=>{i=i.replace(new RegExp(`:${r}`,"g"),s[r])}),i}function eo(e,t){return{path:Tn(e,t),...t}}const Ni=rt``,no=new Map;Yr=[di({penetrable:!0})];class H extends(Ei=U,Qr=[He],Jr=[B],jr=[B],Kr=[B],Br=[Zt],Ur=[Zt],qr=[Zt],Fr=[Zt],Dr=[B],Vr=[B],zr=[B],xr=[pt(t=>[t.scrollContainer])],Gr=[pt(t=>[t.scrollContainer])],Wr=[pt(t=>{var n;return D(n=t,ki).call(n)})],Hr=[Wt(t=>!t.inert)],Ei){constructor(){super(...arguments),ot(this,xt),q(this,"transition",k(y,8,this)),k(y,11,this),q(this,"routes",k(y,12,this)),k(y,15,this),q(this,"locationStore",k(y,16,this)),k(y,19,this),q(this,"key",k(y,20,this)),k(y,23,this),q(this,"loading",k(y,24,this)),k(y,27,this),q(this,"beforeroutechange",k(y,28,this)),k(y,31,this),q(this,"routechange",k(y,32,this)),k(y,35,this),q(this,"error",k(y,36,this)),k(y,39,this),q(this,"scrollContainer",k(y,40,this)),k(y,43,this),q(this,"scrollIgnoreHash",k(y,44,this)),k(y,47,this),q(this,"trigger",k(y,48,this,N)),k(y,51,this),q(this,"currentRoute"),q(this,"currentParams",{}),ot(this,De,h.createState({content:Ni})),ot(this,Pn,()=>{if(!this.locationStore)return;const{path:t,query:n,hash:i,data:s}=N.getParams();this.locationStore({path:t,params:this.currentParams,query:n,hash:i,data:s})}),ot(this,bi,()=>{if(!D(this,xt,ee))return;const t=no.get(N.currentKey);t?D(this,xt,ee).scroll(0,t):(this.scrollIgnoreHash||!N.getParams().hash)&&D(this,xt,ee).scroll(0,0)}),ot(this,Fe),ot(this,kn,(t,n,i)=>{this.beforeroutechange(t),Cn(this,Fe,void 0),this.currentRoute=t,this.currentParams=n;const s=async()=>{D(this,De).call(this,{content:i}),D(this,Pn).call(this),await Promise.resolve(),D(this,bi).call(this),this.routechange(this.currentRoute)};this.transition&&"startViewTransition"in document?document.startViewTransition(()=>s()):s()}),ot(this,Ci,k(y,52,this,()=>{if(D(this,xt,ee))return ni(N,"beforechange",()=>no.set(N.currentKey,D(this,xt,ee).scrollTop))})),k(y,55,this),ot(this,Pi,k(y,56,this,()=>this.trigger.store&&dt(this.trigger.store,()=>D(this,De).call(this)))),k(y,59,this),ot(this,ki,()=>{const{path:t,query:n,hash:i}=this.trigger.getParams();return[this.key,t,n,i]}),ot(this,Ti,k(y,60,this,([t,n],i)=>{if(i&&t===i[0]&&n===i[1]){D(this,Pn).call(this);return}this.update()})),k(y,63,this),ot(this,Mi,k(y,64,this,()=>{const{content:t}=D(this,De);if(t!==void 0)return this.shadowRoot?rt`
170
170
  <style>
171
171
  :host(:where(:not([hidden]))),
172
172
  :not(:defined) {
173
173
  display: contents;
174
174
  }
175
175
  </style>
176
- ${t===Oi?it`<slot></slot>`:t}
177
- `:t===Oi?void 0:it`${t}`})),k(y,67,this),F(this,"update",()=>{const{path:t,hash:n,query:i}=this.trigger.getParams(),{route:s,params:r={}}=Xt.findRoute(this.routes,t),{redirect:c,content:a,getContent:f}=s||{};if(c){this.trigger.replace({path:Tn({pattern:c},{params:r}),query:i,hash:n});return}this.trigger===N&&(location.href!==Mt.url||s!=null&&s.title)&&Mt({url:location.href,title:s==null?void 0:s.title});const _=a||(f==null?void 0:f(r,this.shadowRoot||this));if(this.loading(s),_ instanceof Promise){Cn(this,xe,_);const m=()=>V(this,xe)===_;_.then(o=>{m()&&V(this,kn).call(this,s,r,o)}).catch(o=>{m()&&this.error(o)});return}V(this,kn).call(this,s,r,_)})}}y=Or(Si),Gt=new WeakSet,Yt=function(){return typeof this.scrollContainer=="function"?this.scrollContainer():this.scrollContainer},Ge=new WeakMap,Pn=new WeakMap,$i=new WeakMap,xe=new WeakMap,kn=new WeakMap,Ei=new WeakMap,bi=new WeakMap,Ci=new WeakMap,Pi=new WeakMap,ki=new WeakMap,z(y,5,"transition",Br,I),z(y,5,"routes",Ur,I),z(y,5,"locationStore",qr,I),z(y,5,"key",Fr,I),z(y,5,"loading",Dr,I),z(y,5,"beforeroutechange",Vr,I),z(y,5,"routechange",zr,I),z(y,5,"error",xr,I),z(y,5,"scrollContainer",Gr,I),z(y,5,"scrollIgnoreHash",Wr,I),z(y,5,"trigger",Hr,I),z(y,21,"#rememberScrollPosition",Ir,Ei),z(y,21,"#connectTriggerStore",Rr,bi),z(y,21,"#updateContent",Ar,Pi),z(y,21,"#content",Nr,ki),I=z(y,0,"GemLightRouteElement",jr,I),F(I,"createLocationStore",()=>{const{path:e,query:t,hash:n,data:i}=N.getParams();return bt({path:e,query:t,hash:n,data:i,params:{}})}),F(I,"findRoute",(e=[],t)=>{let n=null,i;e instanceof Array?i=e:i=Object.values(e);for(const s of i)if(s.pattern==="*")n=s;else{const r=Mi(s.pattern,t);if(r)return{route:s,params:r}}return{route:n}}),k(y,1,I),Kr=[Tt()];class Xt extends(Jr=I){}Ti=Or(Jr),Xt=z(Ti,0,"GemRouteElement",Kr,Xt),k(Ti,1,Xt);var Wc=Object.create,Li=Object.defineProperty,Gc=Object.getOwnPropertyDescriptor,Zr=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),Zt=e=>{throw TypeError(e)},to=(e,t,n)=>t in e?Li(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,eo=(e,t)=>Li(e,"name",{value:t,configurable:!0}),no=e=>[,,,Wc((e==null?void 0:e[Zr("metadata")])??null)],io=["class","method","getter","setter","accessor","field","value","get","set"],ze=e=>e!==void 0&&typeof e!="function"?Zt("Function expected"):e,xc=(e,t,n,i,s)=>({kind:io[e],name:t,metadata:i,addInitializer:r=>n._?Zt("Already initialized"):s.push(ze(r||null))}),zc=(e,t)=>to(t,Zr("metadata"),e[3]),P=(e,t,n,i)=>{for(var s=0,r=e[t>>1],c=r&&r.length;s<c;s++)t&1?r[s].call(n):i=r[s].call(n,i);return i},W=(e,t,n,i,s,r)=>{var c,a,f,_,m,o=t&7,g=!!(t&8),l=!!(t&16),v=o>3?e.length+1:o?g?1:2:0,w=io[o+5],S=o>3&&(e[v-1]=[]),b=e[v]||(e[v]=[]),d=o&&(!l&&!g&&(s=s.prototype),o<5&&(o>3||!l)&&Gc(o<4?s:{get[n](){return rt(this,r)},set[n](u){return so(this,r,u)}},n));o?l&&o<4&&eo(r,(o>2?"set ":o>1?"get ":"")+n):eo(s,n);for(var $=i.length-1;$>=0;$--)_=xc(o,n,f={},e[3],b),o&&(_.static=g,_.private=l,m=_.access={has:l?u=>Vc(s,u):u=>n in u},o^3&&(m.get=l?u=>(o^1?rt:Dc)(u,s,o^4?r:d.get):u=>u[n]),o>2&&(m.set=l?(u,T)=>so(u,s,T,o^4?r:d.set):(u,T)=>u[n]=T)),a=(0,i[$])(o?o<4?l?r:d[w]:o>4?void 0:{get:d.get,set:d.set}:s,_),f._=1,o^4||a===void 0?ze(a)&&(o>4?S.unshift(a):o?l?r=a:d[w]=a:s=a):typeof a!="object"||a===null?Zt("Object expected"):(ze(c=a.get)&&(d.get=c),ze(c=a.set)&&(d.set=c),ze(c=a.init)&&S.unshift(c));return o||zc(e,s),d&&Li(s,n,d),l?o^4?r:d:s},K=(e,t,n)=>to(e,typeof t!="symbol"?t+"":t,n),Ni=(e,t,n)=>t.has(e)||Zt("Cannot "+n),Vc=(e,t)=>Object(t)!==t?Zt('Cannot use the "in" operator on this value'):e.has(t),rt=(e,t,n)=>(Ni(e,t,"read from private field"),n?n.call(e):t.get(e)),te=(e,t,n)=>t.has(e)?Zt("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),so=(e,t,n,i)=>(Ni(e,t,"write to private field"),i?i.call(e,n):t.set(e,n),n),Dc=(e,t,n)=>(Ni(e,t,"access private method"),n),ro,oo,ao,co,lo,ho,uo,fo,po,_o,go,mo,vo,Ai,wo,E,Ot,Ve,yo,Ri,Ii,Hi,Wi,Gi,So,$o,Eo,xi,bo,Z,zi;function Co(e){return!e.startsWith("/")}const Fc=Oe(ti`
176
+ ${t===Ni?rt`<slot></slot>`:t}
177
+ `:t===Ni?void 0:rt`${t}`})),k(y,67,this),q(this,"update",()=>{const{path:t,hash:n,query:i}=this.trigger.getParams(),{route:s,params:r={}}=ne.findRoute(this.routes,t),{redirect:c,content:a,getContent:f}=s||{};if(c){this.trigger.replace({path:Tn({pattern:c},{params:r}),query:i,hash:n});return}this.trigger===N&&(location.href!==Mt.url||s!=null&&s.title)&&Mt({url:location.href,title:s==null?void 0:s.title});const _=a||(f==null?void 0:f(r,this.shadowRoot||this));if(this.loading(s),_ instanceof Promise){Cn(this,Fe,_);const m=()=>D(this,Fe)===_;_.then(o=>{m()&&D(this,kn).call(this,s,r,o)}).catch(o=>{m()&&this.error(o)});return}D(this,kn).call(this,s,r,_)})}}y=Rr(Ei),xt=new WeakSet,ee=function(){return typeof this.scrollContainer=="function"?this.scrollContainer():this.scrollContainer},De=new WeakMap,Pn=new WeakMap,bi=new WeakMap,Fe=new WeakMap,kn=new WeakMap,Ci=new WeakMap,Pi=new WeakMap,ki=new WeakMap,Ti=new WeakMap,Mi=new WeakMap,V(y,5,"transition",Qr,H),V(y,5,"routes",Jr,H),V(y,5,"locationStore",jr,H),V(y,5,"key",Kr,H),V(y,5,"loading",Br,H),V(y,5,"beforeroutechange",Ur,H),V(y,5,"routechange",qr,H),V(y,5,"error",Fr,H),V(y,5,"scrollContainer",Dr,H),V(y,5,"scrollIgnoreHash",Vr,H),V(y,5,"trigger",zr,H),V(y,21,"#rememberScrollPosition",xr,Ci),V(y,21,"#connectTriggerStore",Gr,Pi),V(y,21,"#updateContent",Wr,Ti),V(y,21,"#content",Hr,Mi),H=V(y,0,"GemLightRouteElement",Yr,H),q(H,"createLocationStore",()=>{const{path:e,query:t,hash:n,data:i}=N.getParams();return bt({path:e,query:t,hash:n,data:i,params:{}})}),q(H,"findRoute",(e=[],t)=>{let n=null,i;e instanceof Array?i=e:i=Object.values(e);for(const s of i)if(s.pattern==="*")n=s;else{const r=Li(s.pattern,t);if(r)return{route:s,params:r}}return{route:n}}),k(y,1,H),Xr=[Tt()];class ne extends(Zr=H){}Oi=Rr(Zr),ne=V(Oi,0,"GemRouteElement",Xr,ne),k(Oi,1,ne);var Bc=Object.create,Ai=Object.defineProperty,Kc=Object.getOwnPropertyDescriptor,io=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),ie=e=>{throw TypeError(e)},so=(e,t,n)=>t in e?Ai(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ro=(e,t)=>Ai(e,"name",{value:t,configurable:!0}),oo=e=>[,,,Bc((e==null?void 0:e[io("metadata")])??null)],ao=["class","method","getter","setter","accessor","field","value","get","set"],qe=e=>e!==void 0&&typeof e!="function"?ie("Function expected"):e,jc=(e,t,n,i,s)=>({kind:ao[e],name:t,metadata:i,addInitializer:r=>n._?ie("Already initialized"):s.push(qe(r||null))}),Jc=(e,t)=>so(t,io("metadata"),e[3]),P=(e,t,n,i)=>{for(var s=0,r=e[t>>1],c=r&&r.length;s<c;s++)t&1?r[s].call(n):i=r[s].call(n,i);return i},W=(e,t,n,i,s,r)=>{var c,a,f,_,m,o=t&7,g=!!(t&8),l=!!(t&16),v=o>3?e.length+1:o?g?1:2:0,w=ao[o+5],S=o>3&&(e[v-1]=[]),b=e[v]||(e[v]=[]),d=o&&(!l&&!g&&(s=s.prototype),o<5&&(o>3||!l)&&Kc(o<4?s:{get[n](){return at(this,r)},set[n](u){return co(this,r,u)}},n));o?l&&o<4&&ro(r,(o>2?"set ":o>1?"get ":"")+n):ro(s,n);for(var E=i.length-1;E>=0;E--)_=jc(o,n,f={},e[3],b),o&&(_.static=g,_.private=l,m=_.access={has:l?u=>Qc(s,u):u=>n in u},o^3&&(m.get=l?u=>(o^1?at:Yc)(u,s,o^4?r:d.get):u=>u[n]),o>2&&(m.set=l?(u,T)=>co(u,s,T,o^4?r:d.set):(u,T)=>u[n]=T)),a=(0,i[E])(o?o<4?l?r:d[w]:o>4?void 0:{get:d.get,set:d.set}:s,_),f._=1,o^4||a===void 0?qe(a)&&(o>4?S.unshift(a):o?l?r=a:d[w]=a:s=a):typeof a!="object"||a===null?ie("Object expected"):(qe(c=a.get)&&(d.get=c),qe(c=a.set)&&(d.set=c),qe(c=a.init)&&S.unshift(c));return o||Jc(e,s),d&&Ai(s,n,d),l?o^4?r:d:s},j=(e,t,n)=>so(e,typeof t!="symbol"?t+"":t,n),Ri=(e,t,n)=>t.has(e)||ie("Cannot "+n),Qc=(e,t)=>Object(t)!==t?ie('Cannot use the "in" operator on this value'):e.has(t),at=(e,t,n)=>(Ri(e,t,"read from private field"),n?n.call(e):t.get(e)),zt=(e,t,n)=>t.has(e)?ie("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),co=(e,t,n,i)=>(Ri(e,t,"write to private field"),i?i.call(e,n):t.set(e,n),n),Yc=(e,t,n)=>(Ri(e,t,"access private method"),n),lo,ho,uo,fo,po,_o,go,mo,vo,wo,yo,So,$o,Eo,Ii,bo,$,Ot,Ue,Co,Hi,Wi,Gi,xi,zi,Vi,Po,ko,To,Di,Mo,tt,Fi;function Oo(e){return!e.startsWith("/")}const Xc=Re(ii`
178
178
  :host {
179
179
  /* link default style */
180
180
  cursor: pointer;
@@ -188,16 +188,16 @@
188
188
  a:visited {
189
189
  color: unset;
190
190
  }
191
- `);wo=[Re(Sr),En(Fc),Tt(),Ie({focusable:!0})];class G extends(Ai=q,vo=[D],mo=[D],go=[D],_o=[D],po=[D],fo=[D],uo=[Ne],ho=[U],lo=[U],co=[U],ao=[U],oo=[li],ro=[Kt()],Ai){constructor(){super(...arguments),P(E,5,this),te(this,Ot),K(this,"href",P(E,8,this)),P(E,11,this),K(this,"target",P(E,12,this)),P(E,15,this),K(this,"path",P(E,16,this)),P(E,19,this),K(this,"query",P(E,20,this)),P(E,23,this),K(this,"hash",P(E,24,this)),P(E,27,this),K(this,"hint",P(E,28,this)),P(E,31,this),K(this,"preload",P(E,32,this)),P(E,35,this),K(this,"route",P(E,36,this)),P(E,39,this),K(this,"options",P(E,40,this)),P(E,43,this),K(this,"routeOptions",P(E,44,this)),P(E,47,this),K(this,"prepare",P(E,48,this)),P(E,51,this),K(this,"link",P(E,52,this)),P(E,55,this),te(this,Ri,async()=>{var r;const t=this.getLocationString();if(!t)return;if(Co(t))switch(this.target){case"_self":window.location.href=t;return;case"_parent":window.parent.location.href=t;return;case"_top":window.top.location.href=t;return;default:window.open(t);return}const{path:n,query:i,hash:s}=N.getParams();if(n+i+s!==t)if(await((r=this.prepare)==null?void 0:r.call(this)),this.route)N.pushIgnoreCloseHandle(Yr(this.route,rt(this,Ot,Ve)));else if(this.href){const c=new URL(t,location.origin);N.pushIgnoreCloseHandle({path:c.pathname,query:c.search,hash:c.hash})}else N.pushIgnoreCloseHandle({path:this.path,query:this.query,hash:this.hash})}),te(this,Ii,t=>{t.preventDefault()}),te(this,Hi,()=>{const t=this.getLocationString();return Co(t)?t:new URL(N.basePath+t,location.origin).toString()}),te(this,Wi,()=>{var t,n,i;(t=this.route)==null||t.content,(i=(n=this.route)==null?void 0:n.getContent)==null||i.call(n,{},this.shadowRoot)})}render(){return it`
191
+ `);bo=[Ge(Cr),En(Xc),Tt(),xe({focusable:!0})];class x extends(Ii=U,Eo=[F],$o=[F],So=[F],yo=[F],wo=[F],vo=[F],mo=[He],go=[B],_o=[B],po=[B],fo=[B],uo=[ui],ho=[Xt()],lo=[Wt()],Ii){constructor(){super(...arguments),P($,5,this),zt(this,Ot),j(this,"href",P($,8,this)),P($,11,this),j(this,"target",P($,12,this)),P($,15,this),j(this,"path",P($,16,this)),P($,19,this),j(this,"query",P($,20,this)),P($,23,this),j(this,"hash",P($,24,this)),P($,27,this),j(this,"hint",P($,28,this)),P($,31,this),j(this,"preload",P($,32,this)),P($,35,this),j(this,"route",P($,36,this)),P($,39,this),j(this,"options",P($,40,this)),P($,43,this),j(this,"routeOptions",P($,44,this)),P($,47,this),j(this,"prepare",P($,48,this)),P($,51,this),j(this,"link",P($,52,this)),P($,55,this),zt(this,Hi,async()=>{var r;const t=this._getLocationString();if(!t)return;if(Oo(t))switch(this.target){case"_self":window.location.href=t;return;case"_parent":window.parent.location.href=t;return;case"_top":window.top.location.href=t;return;default:window.open(t);return}const{path:n,query:i,hash:s}=N.getParams();if(n+i+s!==t)if(await((r=this.prepare)==null?void 0:r.call(this)),this.route)N.pushIgnoreCloseHandle(eo(this.route,at(this,Ot,Ue)));else if(this.href){const c=new URL(t,location.origin);N.pushIgnoreCloseHandle({path:c.pathname,query:c.search,hash:c.hash})}else N.pushIgnoreCloseHandle({path:this.path,query:this.query,hash:this.hash})}),zt(this,Wi,t=>t.preventDefault()),zt(this,Gi,()=>{const t=this._getLocationString();return Oo(t)?t:new URL(N.basePath+t,location.origin).toString()}),zt(this,xi,()=>{var t,n,i;(t=this.route)==null||t.content,(i=(n=this.route)==null?void 0:n.getContent)==null||i.call(n,{},this.shadowRoot)}),zt(this,Vi,P($,56,this,()=>rt`
192
192
  <a
193
193
  part=${this.link}
194
- @click=${rt(this,Ii)}
195
- href=${Pr(rt(this,Ot,yo)==="off"?void 0:rt(this,Hi).call(this))}
194
+ @click=${at(this,Wi)}
195
+ href=${Or(at(this,Ot,Co)==="off"?void 0:at(this,Gi).call(this))}
196
196
  tabindex="-1"
197
197
  >
198
198
  <slot></slot>
199
199
  </a>
200
- `}getLocationString(){var t,n;if(this.route){const i=((t=rt(this,Ot,Ve))==null?void 0:t.query)||"",s=((n=rt(this,Ot,Ve))==null?void 0:n.hash)||"";return Tn(this.route,rt(this,Ot,Ve))+i+s}else{const i=this.href||this.path+this.query+this.hash,{path:s,query:r}=N.getParams();return i.startsWith("#")?`${s}${r}${i}`:i.startsWith("?")?`${s}${i}`:i.startsWith(".")?Xn(s,i):i}}}E=no(Ai),Ot=new WeakSet,Ve=function(){return this.routeOptions||this.options},yo=function(){return this.hint||"on"},Ri=new WeakMap,Ii=new WeakMap,Hi=new WeakMap,Wi=new WeakMap,Gi=function(){this.addEventListener("click",rt(this,Ri)),this.addEventListener("pointerenter",rt(this,Wi))},Gi=W(E,17,"#init",ro,Ot,Gi),W(E,5,"href",vo,G),W(E,5,"target",mo,G),W(E,5,"path",go,G),W(E,5,"query",_o,G),W(E,5,"hash",po,G),W(E,5,"hint",fo,G),W(E,5,"preload",uo,G),W(E,5,"route",ho,G),W(E,5,"options",lo,G),W(E,5,"routeOptions",co,G),W(E,5,"prepare",ao,G),W(E,5,"link",oo,G),G=W(E,0,"GemLinkElement",wo,G),P(E,1,G),bo=[Re(N.store)];class xt extends(xi=G,Eo=[D],$o=[Ae],So=[dt()],xi){constructor(){super(...arguments),K(this,"pattern",P(Z,8,this)),P(Z,11,this),K(this,"active",P(Z,12,this)),P(Z,15,this),te(this,zi,P(Z,16,this,()=>{const{path:t,query:n,hash:i}=N.getParams(),s=this.pattern&&Mi(this.pattern,t);this.active=!!s||t+n+i===this.getLocationString()})),P(Z,19,this)}}Z=no(xi),zi=new WeakMap,W(Z,5,"pattern",Eo,xt),W(Z,5,"active",$o,xt),W(Z,21,"#updateState",So,zi),xt=W(Z,0,"GemActiveLinkElement",bo,xt),P(Z,1,xt),customElements.define("gem-link",G),customElements.define("gem-active-link",xt),customElements.define("gem-route",Xt),customElements.define("gem-light-route",I);var qc=Object.create,Vi=Object.defineProperty,Uc=Object.getOwnPropertyDescriptor,Po=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),ee=e=>{throw TypeError(e)},ko=(e,t,n)=>t in e?Vi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,To=(e,t)=>Vi(e,"name",{value:t,configurable:!0}),Bc=e=>[,,,qc((e==null?void 0:e[Po("metadata")])??null)],Mo=["class","method","getter","setter","accessor","field","value","get","set"],De=e=>e!==void 0&&typeof e!="function"?ee("Function expected"):e,jc=(e,t,n,i,s)=>({kind:Mo[e],name:t,metadata:i,addInitializer:r=>n._?ee("Already initialized"):s.push(De(r||null))}),Kc=(e,t)=>ko(t,Po("metadata"),e[3]),ot=(e,t,n,i)=>{for(var s=0,r=e[t>>1],c=r&&r.length;s<c;s++)t&1?r[s].call(n):i=r[s].call(n,i);return i},ne=(e,t,n,i,s,r)=>{var c,a,f,_,m,o=t&7,g=!!(t&8),l=!!(t&16),v=o>3?e.length+1:o?g?1:2:0,w=Mo[o+5],S=o>3&&(e[v-1]=[]),b=e[v]||(e[v]=[]),d=o&&(!l&&!g&&(s=s.prototype),o<5&&(o>3||!l)&&Uc(o<4?s:{get[n](){return Fi(this,r)},set[n](u){return Oo(this,r,u)}},n));o?l&&o<4&&To(r,(o>2?"set ":o>1?"get ":"")+n):To(s,n);for(var $=i.length-1;$>=0;$--)_=jc(o,n,f={},e[3],b),o&&(_.static=g,_.private=l,m=_.access={has:l?u=>Jc(s,u):u=>n in u},o^3&&(m.get=l?u=>(o^1?Fi:Qc)(u,s,o^4?r:d.get):u=>u[n]),o>2&&(m.set=l?(u,T)=>Oo(u,s,T,o^4?r:d.set):(u,T)=>u[n]=T)),a=(0,i[$])(o?o<4?l?r:d[w]:o>4?void 0:{get:d.get,set:d.set}:s,_),f._=1,o^4||a===void 0?De(a)&&(o>4?S.unshift(a):o?l?r=a:d[w]=a:s=a):typeof a!="object"||a===null?ee("Object expected"):(De(c=a.get)&&(d.get=c),De(c=a.set)&&(d.set=c),De(c=a.init)&&S.unshift(c));return o||Kc(e,s),d&&Vi(s,n,d),l?o^4?r:d:s},Fe=(e,t,n)=>ko(e,typeof t!="symbol"?t+"":t,n),Di=(e,t,n)=>t.has(e)||ee("Cannot "+n),Jc=(e,t)=>Object(t)!==t?ee('Cannot use the "in" operator on this value'):e.has(t),Fi=(e,t,n)=>(Di(e,t,"read from private field"),n?n.call(e):t.get(e)),qi=(e,t,n)=>t.has(e)?ee("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),Oo=(e,t,n,i)=>(Di(e,t,"write to private field"),i?i.call(e,n):t.set(e,n),n),Qc=(e,t,n)=>(Di(e,t,"access private method"),n),Lo,No,Ao,Ro,Io,Ui,Ho,x,Bi,ji,Ki;let Wo=0;const Go=e=>{clearTimeout(Wo),Wo=window.setTimeout(()=>document.title=e)};function Yc(e,t="",n=""){const i=Mt.title||e;i&&i!==Mt.defaultTitle?(ie.title=i,Go(t+ie.title+n)):(ie.title=Mt.defaultTitle,Go(ie.title))}Ho=[Tt()];let Lt=class Da extends(Ui=q,Io=[D],Ro=[D],Ao=[Ne],No=[dt(t=>[t.inert])],Lo=[Kt()],Ui){constructor(){super(...arguments),Fe(this,"prefix",ot(x,8,this)),ot(x,11,this),Fe(this,"suffix",ot(x,12,this)),ot(x,15,this),Fe(this,"inert",ot(x,16,this)),ot(x,19,this),qi(this,Bi,ot(x,20,this,()=>!this.inert&&ht(Mt,this.update))),ot(x,23,this),qi(this,ji,new MutationObserver(()=>this.update())),qi(this,Ki,ot(x,24,this,()=>{Fi(this,ji).observe(this,{characterData:!0,childList:!0,subtree:!0})})),ot(x,27,this),Fe(this,"render",()=>{var t;return Yc((t=this.textContent)==null?void 0:t.trim(),this.prefix,this.suffix),it`${Da.title}`})}static setTitle(t){Mt({title:t})}};x=Bc(Ui),Bi=new WeakMap,ji=new WeakMap,Ki=new WeakMap,ne(x,5,"prefix",Io,Lt),ne(x,5,"suffix",Ro,Lt),ne(x,5,"inert",Ao,Lt),ne(x,21,"#connectStore",No,Bi),ne(x,21,"#obTextContent",Lo,Ki),Lt=ne(x,0,"GemTitleElement",Ho,Lt),Fe(Lt,"title",document.title),ot(x,1,Lt);let ie=Lt;customElements.define("gem-title",ie);var Xc=Object.create,Ji=Object.defineProperty,Zc=Object.getOwnPropertyDescriptor,xo=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),se=e=>{throw TypeError(e)},zo=(e,t,n)=>t in e?Ji(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Vo=(e,t)=>Ji(e,"name",{value:t,configurable:!0}),tl=e=>[,,,Xc((e==null?void 0:e[xo("metadata")])??null)],Do=["class","method","getter","setter","accessor","field","value","get","set"],qe=e=>e!==void 0&&typeof e!="function"?se("Function expected"):e,el=(e,t,n,i,s)=>({kind:Do[e],name:t,metadata:i,addInitializer:r=>n._?se("Already initialized"):s.push(qe(r||null))}),nl=(e,t)=>zo(t,xo("metadata"),e[3]),ft=(e,t,n,i)=>{for(var s=0,r=e[t>>1],c=r&&r.length;s<c;s++)t&1?r[s].call(n):i=r[s].call(n,i);return i},Ue=(e,t,n,i,s,r)=>{var c,a,f,_,m,o=t&7,g=!!(t&8),l=!!(t&16),v=o>3?e.length+1:o?g?1:2:0,w=Do[o+5],S=o>3&&(e[v-1]=[]),b=e[v]||(e[v]=[]),d=o&&(!l&&!g&&(s=s.prototype),o<5&&(o>3||!l)&&Zc(o<4?s:{get[n](){return Yi(this,r)},set[n](u){return Fo(this,r,u)}},n));o?l&&o<4&&Vo(r,(o>2?"set ":o>1?"get ":"")+n):Vo(s,n);for(var $=i.length-1;$>=0;$--)_=el(o,n,f={},e[3],b),o&&(_.static=g,_.private=l,m=_.access={has:l?u=>il(s,u):u=>n in u},o^3&&(m.get=l?u=>(o^1?Yi:rl)(u,s,o^4?r:d.get):u=>u[n]),o>2&&(m.set=l?(u,T)=>Fo(u,s,T,o^4?r:d.set):(u,T)=>u[n]=T)),a=(0,i[$])(o?o<4?l?r:d[w]:o>4?void 0:{get:d.get,set:d.set}:s,_),f._=1,o^4||a===void 0?qe(a)&&(o>4?S.unshift(a):o?l?r=a:d[w]=a:s=a):typeof a!="object"||a===null?se("Object expected"):(qe(c=a.get)&&(d.get=c),qe(c=a.set)&&(d.set=c),qe(c=a.init)&&S.unshift(c));return o||nl(e,s),d&&Ji(s,n,d),l?o^4?r:d:s},Mn=(e,t,n)=>zo(e,typeof t!="symbol"?t+"":t,n),Qi=(e,t,n)=>t.has(e)||se("Cannot "+n),il=(e,t)=>Object(t)!==t?se('Cannot use the "in" operator on this value'):e.has(t),Yi=(e,t,n)=>(Qi(e,t,"read from private field"),n?n.call(e):t.get(e)),sl=(e,t,n)=>t.has(e)?se("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),Fo=(e,t,n,i)=>(Qi(e,t,"write to private field"),i?i.call(e,n):t.set(e,n),n),rl=(e,t,n)=>(Qi(e,t,"access private method"),n),qo,Uo,Bo,jo,Xi,Ko,B,Zi;const ol=Oe(ti`
200
+ `)),P($,59,this)}_getLocationString(){var t,n;if(this.route){const i=((t=at(this,Ot,Ue))==null?void 0:t.query)||"",s=((n=at(this,Ot,Ue))==null?void 0:n.hash)||"";return Tn(this.route,at(this,Ot,Ue))+i+s}else{const i=this.href||this.path+this.query+this.hash,{path:s,query:r}=N.getParams();return i.startsWith("#")?`${s}${r}${i}`:i.startsWith("?")?`${s}${i}`:i.startsWith(".")?ei(s,i):i}}}$=oo(Ii),Ot=new WeakSet,Ue=function(){return this.routeOptions||this.options},Co=function(){return this.hint||"on"},Hi=new WeakMap,Wi=new WeakMap,Gi=new WeakMap,xi=new WeakMap,zi=function(){this.addEventListener("click",at(this,Hi)),this.addEventListener("pointerenter",at(this,xi))},Vi=new WeakMap,zi=W($,17,"#init",ho,Ot,zi),W($,5,"href",Eo,x),W($,5,"target",$o,x),W($,5,"path",So,x),W($,5,"query",yo,x),W($,5,"hash",wo,x),W($,5,"hint",vo,x),W($,5,"preload",mo,x),W($,5,"route",go,x),W($,5,"options",_o,x),W($,5,"routeOptions",po,x),W($,5,"prepare",fo,x),W($,5,"link",uo,x),W($,21,"#content",lo,Vi),x=W($,0,"GemLinkElement",bo,x),P($,1,x),Mo=[Ge(N.store)];class Vt extends(Di=x,To=[F],ko=[We],Po=[pt()],Di){constructor(){super(...arguments),j(this,"pattern",P(tt,8,this)),P(tt,11,this),j(this,"active",P(tt,12,this)),P(tt,15,this),zt(this,Fi,P(tt,16,this,()=>{const{path:t,query:n,hash:i}=N.getParams(),s=this.pattern&&Li(this.pattern,t);this.active=!!s||t+n+i===this._getLocationString()})),P(tt,19,this)}}tt=oo(Di),Fi=new WeakMap,W(tt,5,"pattern",To,Vt),W(tt,5,"active",ko,Vt),W(tt,21,"#updateState",Po,Fi),Vt=W(tt,0,"GemActiveLinkElement",Mo,Vt),P(tt,1,Vt),customElements.define("gem-link",x),customElements.define("gem-active-link",Vt),customElements.define("gem-route",ne),customElements.define("gem-light-route",H);var Zc=Object.create,qi=Object.defineProperty,tl=Object.getOwnPropertyDescriptor,Lo=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),se=e=>{throw TypeError(e)},No=(e,t,n)=>t in e?qi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ao=(e,t)=>qi(e,"name",{value:t,configurable:!0}),el=e=>[,,,Zc((e==null?void 0:e[Lo("metadata")])??null)],Ro=["class","method","getter","setter","accessor","field","value","get","set"],Be=e=>e!==void 0&&typeof e!="function"?se("Function expected"):e,nl=(e,t,n,i,s)=>({kind:Ro[e],name:t,metadata:i,addInitializer:r=>n._?se("Already initialized"):s.push(Be(r||null))}),il=(e,t)=>No(t,Lo("metadata"),e[3]),Q=(e,t,n,i)=>{for(var s=0,r=e[t>>1],c=r&&r.length;s<c;s++)t&1?r[s].call(n):i=r[s].call(n,i);return i},Dt=(e,t,n,i,s,r)=>{var c,a,f,_,m,o=t&7,g=!!(t&8),l=!!(t&16),v=o>3?e.length+1:o?g?1:2:0,w=Ro[o+5],S=o>3&&(e[v-1]=[]),b=e[v]||(e[v]=[]),d=o&&(!l&&!g&&(s=s.prototype),o<5&&(o>3||!l)&&tl(o<4?s:{get[n](){return Bi(this,r)},set[n](u){return Io(this,r,u)}},n));o?l&&o<4&&Ao(r,(o>2?"set ":o>1?"get ":"")+n):Ao(s,n);for(var E=i.length-1;E>=0;E--)_=nl(o,n,f={},e[3],b),o&&(_.static=g,_.private=l,m=_.access={has:l?u=>sl(s,u):u=>n in u},o^3&&(m.get=l?u=>(o^1?Bi:rl)(u,s,o^4?r:d.get):u=>u[n]),o>2&&(m.set=l?(u,T)=>Io(u,s,T,o^4?r:d.set):(u,T)=>u[n]=T)),a=(0,i[E])(o?o<4?l?r:d[w]:o>4?void 0:{get:d.get,set:d.set}:s,_),f._=1,o^4||a===void 0?Be(a)&&(o>4?S.unshift(a):o?l?r=a:d[w]=a:s=a):typeof a!="object"||a===null?se("Object expected"):(Be(c=a.get)&&(d.get=c),Be(c=a.set)&&(d.set=c),Be(c=a.init)&&S.unshift(c));return o||il(e,s),d&&qi(s,n,d),l?o^4?r:d:s},Mn=(e,t,n)=>No(e,typeof t!="symbol"?t+"":t,n),Ui=(e,t,n)=>t.has(e)||se("Cannot "+n),sl=(e,t)=>Object(t)!==t?se('Cannot use the "in" operator on this value'):e.has(t),Bi=(e,t,n)=>(Ui(e,t,"read from private field"),n?n.call(e):t.get(e)),On=(e,t,n)=>t.has(e)?se("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),Io=(e,t,n,i)=>(Ui(e,t,"write to private field"),i?i.call(e,n):t.set(e,n),n),rl=(e,t,n)=>(Ui(e,t,"access private method"),n),Ho,Wo,Go,xo,zo,Vo,Ki,Do,R,ji,Ji,Qi,Yi;let Fo=0;const qo=e=>{clearTimeout(Fo),Fo=window.setTimeout(()=>document.title=e)};function ol(e,t="",n=""){const i=Mt.title||e;i&&i!==Mt.defaultTitle?(re.title=i,qo(t+re.title+n)):(re.title=Mt.defaultTitle,qo(re.title))}Do=[Tt()];let Lt=class Ya extends(Ki=U,Vo=[F],zo=[F],xo=[He],Go=[pt(t=>[t.inert])],Wo=[Xt()],Ho=[Wt()],Ki){constructor(){super(...arguments),Mn(this,"prefix",Q(R,8,this)),Q(R,11,this),Mn(this,"suffix",Q(R,12,this)),Q(R,15,this),Mn(this,"inert",Q(R,16,this)),Q(R,19,this),On(this,ji,Q(R,20,this,()=>!this.inert&&dt(Mt,this.update))),Q(R,23,this),On(this,Ji,new MutationObserver(()=>this.update())),On(this,Qi,Q(R,24,this,()=>{Bi(this,Ji).observe(this,{characterData:!0,childList:!0,subtree:!0})})),Q(R,27,this),On(this,Yi,Q(R,28,this,()=>{var t;return ol((t=this.textContent)==null?void 0:t.trim(),this.prefix,this.suffix),rt`${Ya.title}`})),Q(R,31,this)}static setTitle(t){Mt({title:t})}};R=el(Ki),ji=new WeakMap,Ji=new WeakMap,Qi=new WeakMap,Yi=new WeakMap,Dt(R,5,"prefix",Vo,Lt),Dt(R,5,"suffix",zo,Lt),Dt(R,5,"inert",xo,Lt),Dt(R,21,"#connectStore",Go,ji),Dt(R,21,"#obTextContent",Wo,Qi),Dt(R,21,"#content",Ho,Yi),Lt=Dt(R,0,"GemTitleElement",Do,Lt),Mn(Lt,"title",document.title),Q(R,1,Lt);let re=Lt;customElements.define("gem-title",re);var al=Object.create,Xi=Object.defineProperty,cl=Object.getOwnPropertyDescriptor,Uo=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),oe=e=>{throw TypeError(e)},Bo=(e,t,n)=>t in e?Xi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ko=(e,t)=>Xi(e,"name",{value:t,configurable:!0}),ll=e=>[,,,al((e==null?void 0:e[Uo("metadata")])??null)],jo=["class","method","getter","setter","accessor","field","value","get","set"],Ke=e=>e!==void 0&&typeof e!="function"?oe("Function expected"):e,hl=(e,t,n,i,s)=>({kind:jo[e],name:t,metadata:i,addInitializer:r=>n._?oe("Already initialized"):s.push(Ke(r||null))}),ul=(e,t)=>Bo(t,Uo("metadata"),e[3]),ct=(e,t,n,i)=>{for(var s=0,r=e[t>>1],c=r&&r.length;s<c;s++)t&1?r[s].call(n):i=r[s].call(n,i);return i},ae=(e,t,n,i,s,r)=>{var c,a,f,_,m,o=t&7,g=!!(t&8),l=!!(t&16),v=o>3?e.length+1:o?g?1:2:0,w=jo[o+5],S=o>3&&(e[v-1]=[]),b=e[v]||(e[v]=[]),d=o&&(!l&&!g&&(s=s.prototype),o<5&&(o>3||!l)&&cl(o<4?s:{get[n](){return ts(this,r)},set[n](u){return Qo(this,r,u)}},n));o?l&&o<4&&Ko(r,(o>2?"set ":o>1?"get ":"")+n):Ko(s,n);for(var E=i.length-1;E>=0;E--)_=hl(o,n,f={},e[3],b),o&&(_.static=g,_.private=l,m=_.access={has:l?u=>dl(s,u):u=>n in u},o^3&&(m.get=l?u=>(o^1?ts:fl)(u,s,o^4?r:d.get):u=>u[n]),o>2&&(m.set=l?(u,T)=>Qo(u,s,T,o^4?r:d.set):(u,T)=>u[n]=T)),a=(0,i[E])(o?o<4?l?r:d[w]:o>4?void 0:{get:d.get,set:d.set}:s,_),f._=1,o^4||a===void 0?Ke(a)&&(o>4?S.unshift(a):o?l?r=a:d[w]=a:s=a):typeof a!="object"||a===null?oe("Object expected"):(Ke(c=a.get)&&(d.get=c),Ke(c=a.set)&&(d.set=c),Ke(c=a.init)&&S.unshift(c));return o||ul(e,s),d&&Xi(s,n,d),l?o^4?r:d:s},Ln=(e,t,n)=>Bo(e,typeof t!="symbol"?t+"":t,n),Zi=(e,t,n)=>t.has(e)||oe("Cannot "+n),dl=(e,t)=>Object(t)!==t?oe('Cannot use the "in" operator on this value'):e.has(t),ts=(e,t,n)=>(Zi(e,t,"read from private field"),n?n.call(e):t.get(e)),Jo=(e,t,n)=>t.has(e)?oe("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),Qo=(e,t,n,i)=>(Zi(e,t,"write to private field"),i?i.call(e,n):t.set(e,n),n),fl=(e,t,n)=>(Zi(e,t,"access private method"),n),Yo,Xo,Zo,ta,ea,es,na,z,ns,is;const pl=Re(ii`
201
201
  :host(:where(:not([hidden]))) {
202
202
  position: relative;
203
203
  display: inline-flex;
@@ -207,10 +207,10 @@
207
207
  width: 100%;
208
208
  height: 100%;
209
209
  }
210
- `),Jo=new Map;Ko=[Tt(),En(ol)];class pt extends(Xi=q,jo=[D],Bo=[U],Uo=[U],qo=[Ae],Xi){constructor(){super(...arguments),Mn(this,"selector",ft(B,8,this)),ft(B,11,this),Mn(this,"root",ft(B,12,this)),ft(B,15,this),Mn(this,"element",ft(B,16,this)),ft(B,19,this),Mn(this,"active",ft(B,20,this)),ft(B,23,this),sl(this,Zi,()=>{const t=this.element||(this.selector?(this.root||document).querySelector(this.selector):null);if(typeof t=="string"){let n=Jo.get(t);return n||(n=document.createElement("template"),n.innerHTML=t,Jo.set(t,n)),n.content.cloneNode(!0)}else return t instanceof HTMLTemplateElement?t.content.cloneNode(!0):t==null?void 0:t.cloneNode(!0)})}render(){return it`
211
- ${Yi(this,Zi).call(this)}
210
+ `),ia=new Map;na=[Tt(),En(pl)];class _t extends(es=U,ea=[F],ta=[B],Zo=[B],Xo=[We],Yo=[Wt()],es){constructor(){super(...arguments),Ln(this,"selector",ct(z,8,this)),ct(z,11,this),Ln(this,"root",ct(z,12,this)),ct(z,15,this),Ln(this,"element",ct(z,16,this)),ct(z,19,this),Ln(this,"active",ct(z,20,this)),ct(z,23,this),Jo(this,ns,()=>{const t=this.element||(this.selector?(this.root||document).querySelector(this.selector):null);if(typeof t=="string"){let n=ia.get(t);return n||(n=document.createElement("template"),n.innerHTML=t,ia.set(t,n)),n.content.cloneNode(!0)}else return t instanceof HTMLTemplateElement?t.content.cloneNode(!0):t==null?void 0:t.cloneNode(!0)}),Jo(this,is,ct(z,24,this,()=>rt`
211
+ ${ts(this,ns).call(this)}
212
212
  <slot></slot>
213
- `}}B=tl(Xi),Zi=new WeakMap,Ue(B,5,"selector",jo,pt),Ue(B,5,"root",Bo,pt),Ue(B,5,"element",Uo,pt),Ue(B,5,"active",qo,pt),pt=Ue(B,0,"GemUseElement",Ko,pt),ft(B,1,pt),customElements.define("gem-use",pt);var al=Object.create,ts=Object.defineProperty,cl=Object.getOwnPropertyDescriptor,Qo=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),Be=e=>{throw TypeError(e)},Yo=(e,t,n)=>t in e?ts(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Xo=(e,t)=>ts(e,"name",{value:t,configurable:!0}),ll=e=>[,,,al((e==null?void 0:e[Qo("metadata")])??null)],Zo=["class","method","getter","setter","accessor","field","value","get","set"],je=e=>e!==void 0&&typeof e!="function"?Be("Function expected"):e,hl=(e,t,n,i,s)=>({kind:Zo[e],name:t,metadata:i,addInitializer:r=>n._?Be("Already initialized"):s.push(je(r||null))}),ul=(e,t)=>Yo(t,Qo("metadata"),e[3]),Ke=(e,t,n,i)=>{for(var s=0,r=e[t>>1],c=r&&r.length;s<c;s++)t&1?r[s].call(n):i=r[s].call(n,i);return i},es=(e,t,n,i,s,r)=>{var c,a,f,_,m,o=t&7,g=!!(t&8),l=!!(t&16),v=o>3?e.length+1:o?g?1:2:0,w=Zo[o+5],S=o>3&&(e[v-1]=[]),b=e[v]||(e[v]=[]),d=o&&(!l&&!g&&(s=s.prototype),o<5&&(o>3||!l)&&cl(o<4?s:{get[n](){return ea(this,r)},set[n](u){return na(this,r,u)}},n));o?l&&o<4&&Xo(r,(o>2?"set ":o>1?"get ":"")+n):Xo(s,n);for(var $=i.length-1;$>=0;$--)_=hl(o,n,f={},e[3],b),o&&(_.static=g,_.private=l,m=_.access={has:l?u=>dl(s,u):u=>n in u},o^3&&(m.get=l?u=>(o^1?ea:fl)(u,s,o^4?r:d.get):u=>u[n]),o>2&&(m.set=l?(u,T)=>na(u,s,T,o^4?r:d.set):(u,T)=>u[n]=T)),a=(0,i[$])(o?o<4?l?r:d[w]:o>4?void 0:{get:d.get,set:d.set}:s,_),f._=1,o^4||a===void 0?je(a)&&(o>4?S.unshift(a):o?l?r=a:d[w]=a:s=a):typeof a!="object"||a===null?Be("Object expected"):(je(c=a.get)&&(d.get=c),je(c=a.set)&&(d.set=c),je(c=a.init)&&S.unshift(c));return o||ul(e,s),d&&ts(s,n,d),l?o^4?r:d:s},ta=(e,t,n)=>Yo(e,typeof t!="symbol"?t+"":t,n),ns=(e,t,n)=>t.has(e)||Be("Cannot "+n),dl=(e,t)=>Object(t)!==t?Be('Cannot use the "in" operator on this value'):e.has(t),ea=(e,t,n)=>(ns(e,t,"read from private field"),n?n.call(e):t.get(e)),na=(e,t,n,i)=>(ns(e,t,"write to private field"),i?i.call(e,n):t.set(e,n),n),fl=(e,t,n)=>(ns(e,t,"access private method"),n),ia,sa,is,ra,_t;ra=[Tt()];class zt extends(is=q,sa=[D],ia=[D],is){constructor(){super(...arguments),ta(this,"content",Ke(_t,8,this)),Ke(_t,11,this),ta(this,"contentcss",Ke(_t,12,this)),Ke(_t,15,this)}render(){this.shadowRoot.innerHTML=gn`
213
+ `)),ct(z,27,this)}}z=ll(es),ns=new WeakMap,is=new WeakMap,ae(z,5,"selector",ea,_t),ae(z,5,"root",ta,_t),ae(z,5,"element",Zo,_t),ae(z,5,"active",Xo,_t),ae(z,21,"#content",Yo,is),_t=ae(z,0,"GemUseElement",na,_t),ct(z,1,_t),customElements.define("gem-use",_t);var _l=Object.create,ss=Object.defineProperty,gl=Object.getOwnPropertyDescriptor,sa=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),ce=e=>{throw TypeError(e)},ra=(e,t,n)=>t in e?ss(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,oa=(e,t)=>ss(e,"name",{value:t,configurable:!0}),ml=e=>[,,,_l((e==null?void 0:e[sa("metadata")])??null)],aa=["class","method","getter","setter","accessor","field","value","get","set"],je=e=>e!==void 0&&typeof e!="function"?ce("Function expected"):e,vl=(e,t,n,i,s)=>({kind:aa[e],name:t,metadata:i,addInitializer:r=>n._?ce("Already initialized"):s.push(je(r||null))}),wl=(e,t)=>ra(t,sa("metadata"),e[3]),Ft=(e,t,n,i)=>{for(var s=0,r=e[t>>1],c=r&&r.length;s<c;s++)t&1?r[s].call(n):i=r[s].call(n,i);return i},Nn=(e,t,n,i,s,r)=>{var c,a,f,_,m,o=t&7,g=!!(t&8),l=!!(t&16),v=o>3?e.length+1:o?g?1:2:0,w=aa[o+5],S=o>3&&(e[v-1]=[]),b=e[v]||(e[v]=[]),d=o&&(!l&&!g&&(s=s.prototype),o<5&&(o>3||!l)&&gl(o<4?s:{get[n](){return la(this,r)},set[n](u){return ha(this,r,u)}},n));o?l&&o<4&&oa(r,(o>2?"set ":o>1?"get ":"")+n):oa(s,n);for(var E=i.length-1;E>=0;E--)_=vl(o,n,f={},e[3],b),o&&(_.static=g,_.private=l,m=_.access={has:l?u=>yl(s,u):u=>n in u},o^3&&(m.get=l?u=>(o^1?la:$l)(u,s,o^4?r:d.get):u=>u[n]),o>2&&(m.set=l?(u,T)=>ha(u,s,T,o^4?r:d.set):(u,T)=>u[n]=T)),a=(0,i[E])(o?o<4?l?r:d[w]:o>4?void 0:{get:d.get,set:d.set}:s,_),f._=1,o^4||a===void 0?je(a)&&(o>4?S.unshift(a):o?l?r=a:d[w]=a:s=a):typeof a!="object"||a===null?ce("Object expected"):(je(c=a.get)&&(d.get=c),je(c=a.set)&&(d.set=c),je(c=a.init)&&S.unshift(c));return o||wl(e,s),d&&ss(s,n,d),l?o^4?r:d:s},ca=(e,t,n)=>ra(e,typeof t!="symbol"?t+"":t,n),rs=(e,t,n)=>t.has(e)||ce("Cannot "+n),yl=(e,t)=>Object(t)!==t?ce('Cannot use the "in" operator on this value'):e.has(t),la=(e,t,n)=>(rs(e,t,"read from private field"),n?n.call(e):t.get(e)),Sl=(e,t,n)=>t.has(e)?ce("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),ha=(e,t,n,i)=>(rs(e,t,"write to private field"),i?i.call(e,n):t.set(e,n),n),$l=(e,t,n)=>(rs(e,t,"access private method"),n),ua,da,fa,os,pa,et,as;pa=[Tt()];class qt extends(os=U,fa=[F],da=[F],ua=[Wt()],os){constructor(){super(...arguments),ca(this,"content",Ft(et,8,this)),Ft(et,11,this),ca(this,"contentcss",Ft(et,12,this)),Ft(et,15,this),Sl(this,as,Ft(et,16,this,()=>{this.shadowRoot.innerHTML=gn`
214
214
  <style>
215
215
  :host(:where(:not([hidden]))) {
216
216
  display: contents;
@@ -218,4 +218,4 @@
218
218
  ${this.contentcss}
219
219
  </style>
220
220
  ${this.content}
221
- `}}_t=ll(is),es(_t,5,"content",sa,zt),es(_t,5,"contentcss",ia,zt),zt=es(_t,0,"GemUnsafeElement",ra,zt),Ke(_t,1,zt),customElements.define("gem-unsafe",zt);var pl=Object.create,ss=Object.defineProperty,_l=Object.getOwnPropertyDescriptor,oa=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),re=e=>{throw TypeError(e)},aa=(e,t,n)=>t in e?ss(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ca=(e,t)=>ss(e,"name",{value:t,configurable:!0}),gl=e=>[,,,pl((e==null?void 0:e[oa("metadata")])??null)],la=["class","method","getter","setter","accessor","field","value","get","set"],Je=e=>e!==void 0&&typeof e!="function"?re("Function expected"):e,ml=(e,t,n,i,s)=>({kind:la[e],name:t,metadata:i,addInitializer:r=>n._?re("Already initialized"):s.push(Je(r||null))}),ha=(e,t)=>aa(t,oa("metadata"),e[3]),Nt=(e,t,n,i)=>{for(var s=0,r=e[t>>1],c=r&&r.length;s<c;s++)t&1?r[s].call(n):i=r[s].call(n,i);return i},On=(e,t,n,i,s,r)=>{var c,a,f,_,m,o=t&7,g=!!(t&8),l=!!(t&16),v=o>3?e.length+1:o?g?1:2:0,w=la[o+5],S=o>3&&(e[v-1]=[]),b=e[v]||(e[v]=[]),d=o&&(!l&&!g&&(s=s.prototype),o<5&&(o>3||!l)&&_l(o<4?s:{get[n](){return At(this,r)},set[n](u){return os(this,r,u)}},n));o?l&&o<4&&ca(r,(o>2?"set ":o>1?"get ":"")+n):ca(s,n);for(var $=i.length-1;$>=0;$--)_=ml(o,n,f={},e[3],b),o&&(_.static=g,_.private=l,m=_.access={has:l?u=>vl(s,u):u=>n in u},o^3&&(m.get=l?u=>(o^1?At:wl)(u,s,o^4?r:d.get):u=>u[n]),o>2&&(m.set=l?(u,T)=>os(u,s,T,o^4?r:d.set):(u,T)=>u[n]=T)),a=(0,i[$])(o?o<4?l?r:d[w]:o>4?void 0:{get:d.get,set:d.set}:s,_),f._=1,o^4||a===void 0?Je(a)&&(o>4?S.unshift(a):o?l?r=a:d[w]=a:s=a):typeof a!="object"||a===null?re("Object expected"):(Je(c=a.get)&&(d.get=c),Je(c=a.set)&&(d.set=c),Je(c=a.init)&&S.unshift(c));return o||ha(e,s),d&&ss(s,n,d),l?o^4?r:d:s},ua=(e,t,n)=>aa(e,typeof t!="symbol"?t+"":t,n),rs=(e,t,n)=>t.has(e)||re("Cannot "+n),vl=(e,t)=>Object(t)!==t?re('Cannot use the "in" operator on this value'):e.has(t),At=(e,t,n)=>(rs(e,t,"read from private field"),n?n.call(e):t.get(e)),oe=(e,t,n)=>t.has(e)?re("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),os=(e,t,n,i)=>(rs(e,t,"write to private field"),i?i.call(e,n):t.set(e,n),n),wl=(e,t,n)=>(rs(e,t,"access private method"),n),da,fa,pa,_a,as,J,cs,ga,ls,Ln,hs,Qe,us;const yl="gem-reflect-start",ma="gem-reflect-end",va=e=>new Comment(e),Sl=e=>{const t=[];let n=e;for(;n&&(t.push(n),n.nodeValue!==ma);)n=n.nextSibling;return t};class Ye extends(as=q,_a=[D],pa=[U],fa=[$n()],da=[dt(t=>[t.target])],as){constructor(){super(...arguments),oe(this,cs),ua(this,"method",Nt(J,8,this)),Nt(J,11,this),ua(this,"target",Nt(J,12,this,document.head)),Nt(J,15,this),oe(this,ls,Nt(J,16,this,()=>{this.hidden=!0,this.dataset.gemReflect=""})),Nt(J,19,this),oe(this,Ln,va(yl)),oe(this,hs,va(ma)),oe(this,Qe),oe(this,us,Nt(J,20,this,()=>((At(this,Qe)||[At(this,Ln),...this.childNodes,At(this,hs)]).forEach((t,n,i)=>{const s=i[n-1];s?s.after(t):this.target[At(this,cs,ga)](t)}),()=>{os(this,Qe,Sl(At(this,Ln))),At(this,Qe).forEach(t=>t.remove())}))),Nt(J,23,this)}}J=gl(as),cs=new WeakSet,ga=function(){return this.method||"append"},ls=new WeakMap,Ln=new WeakMap,hs=new WeakMap,Qe=new WeakMap,us=new WeakMap,On(J,5,"method",_a,Ye),On(J,5,"target",pa,Ye),On(J,21,"#init",fa,ls),On(J,21,"#changeTarget",da,us),ha(J,Ye),customElements.define("gem-reflect",Ye);var $l=Object.create,ds=Object.defineProperty,El=Object.getOwnPropertyDescriptor,wa=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),ae=e=>{throw TypeError(e)},ya=(e,t,n)=>t in e?ds(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Sa=(e,t)=>ds(e,"name",{value:t,configurable:!0}),bl=e=>[,,,$l((e==null?void 0:e[wa("metadata")])??null)],$a=["class","method","getter","setter","accessor","field","value","get","set"],Xe=e=>e!==void 0&&typeof e!="function"?ae("Function expected"):e,Cl=(e,t,n,i,s)=>({kind:$a[e],name:t,metadata:i,addInitializer:r=>n._?ae("Already initialized"):s.push(Xe(r||null))}),Pl=(e,t)=>ya(t,wa("metadata"),e[3]),Ze=(e,t,n,i)=>{for(var s=0,r=e[t>>1],c=r&&r.length;s<c;s++)t&1?r[s].call(n):i=r[s].call(n,i);return i},fs=(e,t,n,i,s,r)=>{var c,a,f,_,m,o=t&7,g=!!(t&8),l=!!(t&16),v=o>3?e.length+1:o?g?1:2:0,w=$a[o+5],S=o>3&&(e[v-1]=[]),b=e[v]||(e[v]=[]),d=o&&(!l&&!g&&(s=s.prototype),o<5&&(o>3||!l)&&El(o<4?s:{get[n](){return Ea(this,r)},set[n](u){return Ca(this,r,u)}},n));o?l&&o<4&&Sa(r,(o>2?"set ":o>1?"get ":"")+n):Sa(s,n);for(var $=i.length-1;$>=0;$--)_=Cl(o,n,f={},e[3],b),o&&(_.static=g,_.private=l,m=_.access={has:l?u=>kl(s,u):u=>n in u},o^3&&(m.get=l?u=>(o^1?Ea:Tl)(u,s,o^4?r:d.get):u=>u[n]),o>2&&(m.set=l?(u,T)=>Ca(u,s,T,o^4?r:d.set):(u,T)=>u[n]=T)),a=(0,i[$])(o?o<4?l?r:d[w]:o>4?void 0:{get:d.get,set:d.set}:s,_),f._=1,o^4||a===void 0?Xe(a)&&(o>4?S.unshift(a):o?l?r=a:d[w]=a:s=a):typeof a!="object"||a===null?ae("Object expected"):(Xe(c=a.get)&&(d.get=c),Xe(c=a.set)&&(d.set=c),Xe(c=a.init)&&S.unshift(c));return o||Pl(e,s),d&&ds(s,n,d),l?o^4?r:d:s},Nn=(e,t,n)=>ya(e,typeof t!="symbol"?t+"":t,n),ps=(e,t,n)=>t.has(e)||ae("Cannot "+n),kl=(e,t)=>Object(t)!==t?ae('Cannot use the "in" operator on this value'):e.has(t),Ea=(e,t,n)=>(ps(e,t,"read from private field"),n?n.call(e):t.get(e)),ba=(e,t,n)=>t.has(e)?ae("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),Ca=(e,t,n,i)=>(ps(e,t,"write to private field"),i?i.call(e,n):t.set(e,n),n),Tl=(e,t,n)=>(ps(e,t,"access private method"),n);const An=Symbol("open mark");function Ml(e){var t,n,i,s,r,c,a;const f=Symbol();s=[Tt(),Ie({role:"alertdialog",ariaModal:"true"})];let _=class Fa extends(i=q,n=[Kt()],t=[Kt()],i){constructor(){super(...arguments),Nn(this,"label",""),ba(this,c,Ze(r,8,this,()=>ht(N.store,this.update))),Ze(r,11,this),ba(this,a,Ze(r,12,this,()=>ht(Fa.store,this.update))),Ze(r,15,this)}static get isOpen(){return this.store[An]}static open(g){const l=new this;this.instance=l,this.inertStore=[...document.body.children].filter(w=>!w.inert),this.inertStore.forEach(w=>w.inert=!0),document.body.append(l);const v=()=>this.store({[An]:!0,...g});return setTimeout(()=>{v(),N.push({title:l.label,open:v,close:this.closeHandle.bind(this),shouldClose:this.shouldClose.bind(this)})},100),f}static close(){return N.back(),f}static closeHandle(){var g;return this.inertStore.forEach(l=>l.inert=!1),(g=this.instance)==null||g.remove(),this.store({[An]:!1,...e}),f}static shouldClose(){return!0}};return r=bl(i),c=new WeakMap,a=new WeakMap,fs(r,21,"#connectHistory",n,c),fs(r,21,"#connectStore",t,a),_=fs(r,0,"ModalElement",s,_),Nn(_,"inertStore",[]),Nn(_,"instance",null),Nn(_,"store",bt({[An]:!1,...e})),Ze(r,1,_),_}var Ol=Object.create,_s=Object.defineProperty,Ll=Object.getOwnPropertyDescriptor,Pa=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),ce=e=>{throw TypeError(e)},ka=(e,t,n)=>t in e?_s(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ta=(e,t)=>_s(e,"name",{value:t,configurable:!0}),Nl=e=>[,,,Ol((e==null?void 0:e[Pa("metadata")])??null)],Ma=["class","method","getter","setter","accessor","field","value","get","set"],tn=e=>e!==void 0&&typeof e!="function"?ce("Function expected"):e,Al=(e,t,n,i,s)=>({kind:Ma[e],name:t,metadata:i,addInitializer:r=>n._?ce("Already initialized"):s.push(tn(r||null))}),Rl=(e,t)=>ka(t,Pa("metadata"),e[3]),Vt=(e,t,n,i)=>{for(var s=0,r=e[t>>1],c=r&&r.length;s<c;s++)t&1?r[s].call(n):i=r[s].call(n,i);return i},Rn=(e,t,n,i,s,r)=>{var c,a,f,_,m,o=t&7,g=!!(t&8),l=!!(t&16),v=o>3?e.length+1:o?g?1:2:0,w=Ma[o+5],S=o>3&&(e[v-1]=[]),b=e[v]||(e[v]=[]),d=o&&(!l&&!g&&(s=s.prototype),o<5&&(o>3||!l)&&Ll(o<4?s:{get[n](){return at(this,r)},set[n](u){return nn(this,r,u)}},n));o?l&&o<4&&Ta(r,(o>2?"set ":o>1?"get ":"")+n):Ta(s,n);for(var $=i.length-1;$>=0;$--)_=Al(o,n,f={},e[3],b),o&&(_.static=g,_.private=l,m=_.access={has:l?u=>Il(s,u):u=>n in u},o^3&&(m.get=l?u=>(o^1?at:Hl)(u,s,o^4?r:d.get):u=>u[n]),o>2&&(m.set=l?(u,T)=>nn(u,s,T,o^4?r:d.set):(u,T)=>u[n]=T)),a=(0,i[$])(o?o<4?l?r:d[w]:o>4?void 0:{get:d.get,set:d.set}:s,_),f._=1,o^4||a===void 0?tn(a)&&(o>4?S.unshift(a):o?l?r=a:d[w]=a:s=a):typeof a!="object"||a===null?ce("Object expected"):(tn(c=a.get)&&(d.get=c),tn(c=a.set)&&(d.set=c),tn(c=a.init)&&S.unshift(c));return o||Rl(e,s),d&&_s(s,n,d),l?o^4?r:d:s},en=(e,t,n)=>ka(e,typeof t!="symbol"?t+"":t,n),gs=(e,t,n)=>t.has(e)||ce("Cannot "+n),Il=(e,t)=>Object(t)!==t?ce('Cannot use the "in" operator on this value'):e.has(t),at=(e,t,n)=>(gs(e,t,"read from private field"),n?n.call(e):t.get(e)),le=(e,t,n)=>t.has(e)?ce("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),nn=(e,t,n,i)=>(gs(e,t,"write to private field"),i?i.call(e,n):t.set(e,n),n),Hl=(e,t,n)=>(gs(e,t,"access private method"),n),Oa,La,Na,ms,Aa,tt,sn,rn,on,vs,In,ws;const ys=Symbol();Aa=[Re(N.store),Ie({role:"dialog",ariaModal:"true"})];class he extends(ms=q,Na=[D],La=[Ae],Oa=[$n()],ms){constructor(){super(...arguments),en(this,"label",Vt(tt,8,this)),Vt(tt,11,this),en(this,"opened",Vt(tt,12,this)),Vt(tt,15,this),le(this,sn),le(this,rn),le(this,on,[]),le(this,vs,()=>{var t;this.inert=!0,at(this,on).forEach(n=>n.inert=!1),at(this,sn)?at(this,sn).before(this):at(this,rn)&&((t=at(this,rn))==null||t.appendChild(this)),this.dispatchEvent(new CustomEvent("close")),this.opened=!1}),le(this,In,()=>{this.hidden=!1,this.inert=!1,nn(this,sn,this.nextSibling),nn(this,rn,this.parentElement||this.getRootNode()),nn(this,on,[...document.body.children].filter(t=>!t.inert)),at(this,on).forEach(t=>t.inert=!0),document.body.append(this),this.dispatchEvent(new CustomEvent("open")),this.opened=!0}),le(this,ws,Vt(tt,16,this,()=>this.inert=!0)),Vt(tt,19,this),en(this,"open",()=>{if(!this.opened)return at(this,In).call(this),N.push({title:this.label,open:at(this,In),close:at(this,vs),shouldClose:this.shouldClose}),ys}),en(this,"close",()=>(N.back(),ys)),en(this,"forceClose",()=>(this.opened=!1,setTimeout(this.close,100),ys))}shouldClose(){return!0}}tt=Nl(ms),sn=new WeakMap,rn=new WeakMap,on=new WeakMap,vs=new WeakMap,In=new WeakMap,ws=new WeakMap,Rn(tt,5,"label",Na,he),Rn(tt,5,"opened",La,he),Rn(tt,21,"#init",Oa,ws),he=Rn(tt,0,"GemDialogBaseElement",Aa,he),Vt(tt,1,he);class Ra{constructor(t){A(this,"_type");A(this,"info",(...t)=>{console.log(`[${this._type}]:`,...t)});A(this,"warn",(...t)=>{console.warn(`[${this._type}]:`,...t)});A(this,"error",(...t)=>{console.error(`[${this._type}]:`,...t)});this._type=t}}const Ia=new Ra("GEM"),Wl=/\$\d(?:<[^>]*>)?/,Gl=/\$(\d)(<([^>]*)>)?/g,xl=3;function Ha(e,...t){const n=e.split(Wl),i=[];let s;for(;s=Gl.exec(e);){const r=s[xl],c=Number(s[1])-1,a=t[c];i.push(typeof a=="function"?a(r):a)}return it(n,...i)}const an=new Set,Es=class Es{constructor(t){C(this,H);A(this,"resources");A(this,"fallbackLanguage");A(this,"currentLanguage");A(this,"cache");A(this,"cachePrefix","gem-i18n");A(this,"urlParamsType");A(this,"urlParamsName");A(this,"onChange");A(this,"replace",({path:t})=>this.setLanguage(t));A(this,"getParams",()=>({path:this.currentLanguage}));C(this,fn,!0);if(!t.resources[t.fallbackLanguage])throw new Et("i18n: fallbackLanguage invalid");Object.assign(this,t);let n=p(this,H,qa)||this.currentLanguage||p(this,H,Ua);const i=document.querySelector(`[type*=${this.cachePrefix}]`);if(i)try{const s=JSON.parse(i.textContent||"");n=s.currentLanguage,this.resources[s.currentLanguage]=s.currentLanguagePack}catch{}n?(O(this,H,n,qn),this.setLanguage(n)):this.resetLanguage(),O(this,fn,!1)}get(t,...n){const i=this.resources[this.currentLanguage],s=this.resources[this.fallbackLanguage],r=i[t]||s[t],c=(r==null?void 0:r.message)||r||`[${t}]`;return n.length?Ha(c,...n):c}detectLanguage(){const t=Object.keys(this.resources),n=navigator.languages.map(i=>i.replace(/-(.*)/,s=>s.toUpperCase()));for(const i of n){const s=t.find(r=>r===i||i.startsWith(`${r}-`));if(s)return s}return this.fallbackLanguage}async setLanguage(t){var s,r;p(this,H,pn)&&an.forEach(async c=>await c.setLanguage(t));let n;const i=this.resources[t];if(!i)return Ia.warn(`${this.cachePrefix}: not found \`${t}\``),this.resetLanguage();if(typeof i=="string"){const c=`${this.cachePrefix}:`,a=`${c}${i}`,f=localStorage.getItem(a),_=async()=>{const m=await(await fetch(i)).json();if(this.cache){for(let o=0;o<localStorage.length;o++){const g=localStorage.key(o);g.startsWith(c)&&localStorage.removeItem(g)}localStorage.setItem(a,JSON.stringify(m))}return m};if(f)try{n=JSON.parse(f)}catch{n=await _()}else n=await _()}else n=i;if(this.resources[t]=n,!p(this,fn)){const c=[document.documentElement];for(;c.length;){const a=c.pop();(s=a[Me])==null||s.call(a),c.push(...[...a.children,...((r=a.shadowRoot)==null?void 0:r.children)||[]].reverse())}}return t!==this.currentLanguage&&O(this,H,t,qn),this.cache===!0&&this.setCache(),t}resetLanguage(){return p(this,H,pn)&&an.forEach(t=>t.resetLanguage()),O(this,H,this.fallbackLanguage,qn),this.cache&&localStorage.removeItem(p(this,H,Fn)),this.setLanguage(this.detectLanguage())}setCache(){p(this,H,pn)&&an.forEach(t=>t.setCache()),localStorage.setItem(p(this,H,Fn),this.currentLanguage)}createSubModule(t,n){const i=new Es({resources:n,cachePrefix:`${this.cachePrefix}-${t}`,currentLanguage:this.currentLanguage,fallbackLanguage:this.fallbackLanguage,cache:this.cache});return an.add(i),i}toJSON(){return{currentLanguage:this.currentLanguage,currentLanguagePack:this.resources[this.currentLanguage]}}};H=new WeakSet,Fn=function(){return`${this.cachePrefix}:current`},qa=function(){const{hostname:t,pathname:n,search:i}=location,s=t.split(".");switch(this.urlParamsType){case"ccTLD":return s.pop();case"gTLD":return s.shift();case"path":return n.split("/")[1];default:const r=this.urlParamsName&&new URLSearchParams(i).get(this.urlParamsName)||"";return r in this.resources?r:""}},Ua=function(){return this.cache&&localStorage.getItem(p(this,H,Fn))||""},pn=function(){return!an.has(this)},qn=function(t){var n;p(this,H,pn)&&(document.documentElement.lang=t),this.currentLanguage=t,(n=this.onChange)==null||n.call(this,t)},fn=new WeakMap;let Ss=Es;const Q=e=>window.matchMedia(e).matches,zl={PRINT:"print",get isPrint(){return Q(this.PRINT)},HOVER:"(hover: hover)",get isHover(){return Q(this.HOVER)},PWA:"(display-mode: standalone)",get isPWA(){return Q(this.PWA)},MOTION_REDUCE:"(prefers-reduced-motion: reduce)",get isMotionReduce(){return Q(this.MOTION_REDUCE)},DATA_REDUCE:"(prefers-reduced-data: reduce)",get isDataReduce(){return Q(this.DATA_REDUCE)},WATCH:"(width < 320px)",get isWatch(){return Q(this.WATCH)},SMALL_PHONE:"(320px <= width <= 480px) and (height <= 640px)",get isSmallPhone(){return Q(this.SMALL_PHONE)},PHONE:"(320px <= width <= 480px)",get isPhone(){return Q(this.PHONE)},PHONE_LANDSCAPE:"(480px < width < 960px) and (orientation: landscape)",get isPhoneLandscape(){return Q(this.PHONE_LANDSCAPE)},SHORT:"(width >= 480px) and (height <= 320px)",get isShort(){return Q(this.SHORT)},TABLET:"(480px < width <= 1280px)",get isTablet(){return Q(this.TABLET)},DESKTOP:"(width > 1280px) and (orientation: landscape)",get isDesktop(){return Q(this.DESKTOP)},WIDTHSCREEN:"(width >= 1920px) and (orientation: landscape)",get isWidthScreen(){return Q(this.WIDTHSCREEN)}},Vl=Object.getPrototypeOf(Object.getPrototypeOf(new Int8Array)).constructor;function Wa(e={}){const{origin:t=location.origin,base:n="",appendHeaders:i=()=>({}),transformInput:s=o=>o,transformOutput:r=o=>o,...c}=e,a=o=>o instanceof FormData||o instanceof Blob||o instanceof Vl||o instanceof URLSearchParams||o instanceof ReadableStream||o instanceof ArrayBuffer?o:typeof o=="object"?JSON.stringify(o):o,f=(o,g)=>{if(new URL(o,location.origin).pathname!==o)throw new Et("`path` format is incorrect");const l=new URLSearchParams(g).toString();return`${t}${n}${o}${l?"?":""}${l}`},_=o=>{if(!o)return{};if(o instanceof Headers)return Object.fromEntries(o);const g=Array.isArray(o)?o:Object.entries(o);return Object.fromEntries(g.map(([l,v])=>[l.toLowerCase(),v]))},m=async(o,g={})=>{const l=new Request(o,{...c,...g,headers:new Headers({"content-type":"application/json",..._(c.headers),..._(g.headers)})}),v=await fetch(l);if(v.status===0)throw new Error("Request fail");if(v.status>=500)throw new Error(v.statusText);const w=l.headers.get("content-type"),S=v.status>=400;try{let b;if(w.includes("json")?b=await v.json():w.includes("octet-stream")?b=await v.arrayBuffer():b=await v.text(),S)throw new Error(v.statusText,{cause:b});return r(b,l)}catch{throw new Error("Parse error")}};return{request:m,get(o,g){const l=s(g);return m(f(o,l),{method:"GET",headers:i(l)})},del(o,g){const l=s(g);return m(f(o,l),{method:"DELETE",headers:i(l)})},put(o,g){const l=s(g);return m(f(o),{method:"PUT",headers:i(l),body:a(l)})},post(o,g){const l=s(g);return m(f(o),{method:"POST",headers:i(l),body:a(l)})}}}const{request:Dl,del:Fl,get:ql,post:Ul,put:Bl}=Wa(),Ga=new WeakMap,xa=new WeakMap;function jl(e){return Ga.get(e)}function $s(e){return xa.get(e)}function Hn(e,t={}){const n=ke(),i=Oe({})[Ct],s=bt(e),r=new Proxy(Pe({[Ct]:i},a=>s(a)),{get(a,f){if(!a[f]){const[_,m,o]=f.match(/^(\w*Color)(\d+)$/)||[];m&&(a[f]=`oklch(from ${a[m]} calc(l - ${(Number(o)-400)/1e3}) c h)`)}return a[f]}});xa.set(r,t),Ga.set(r,s);const c=()=>{let a="";Object.keys(s).forEach(f=>{t[f]||(t[f]=`--${Ht(f)}-${n}`,r[f]=`var(${t[f]})`),a+=`${t[f]}:${s[f]};`}),i.setContent(`:scope,:host{${a}}`)};return c(),ht(s,()=>{c(),i.updateStyle()}),r}function za(e){return Hn(e)}function Kl(e){const t=za(e);return document.adoptedStyleSheets.push(t[Ct].getStyle()),t}function Jl(e,t){return Hn(t,$s(e))}function Ql(e){const t=Hn(e),n=$s(t);return Pe(t,s=>(r,{addInitializer:c,access:a})=>{c(function(){const f=Hn({...e},n);this.internals.sheets.push(f[Ct].getStyle(this)),this.memo(()=>f(a.get(this).apply(this)),s&&(()=>s(this)))})})}h.GemActiveLinkElement=xt,h.GemDialogBaseElement=he,h.GemElement=q,h.GemError=Et,h.GemLightRouteElement=I,h.GemLinkElement=G,h.GemReflectElement=Ye,h.GemRouteElement=Xt,h.GemTitleElement=ie,h.GemUnsafeElement=zt,h.GemUseElement=pt,h.I18n=Ss,h.LinkedList=Ds,h.Logger=Ra,h.PropProxyMap=Fs,h.QueryString=Bt,h.RenderErrorEvent=wn,h.SVGTemplateResult=jn,h.SheetToken=Ct,h.StoreListenerMap=Te,h.TemplateResult=Ce,h.UpdateToken=Me,h.absoluteLocation=Xn,h.addListener=Zn,h.addMicrotask=$t,h.adoptedStyle=En,h.aria=Ie,h.async=fr,h.attribute=D,h.basePathStore=Sr,h.boolattribute=Ne,h.camelToKebabCase=Ht,h.classMap=Us,h.cleanObject=mn,h.connect=ht,h.connectStore=Re,h.createCSSSheet=Oe,h.createDecoratorTheme=Ql,h.createHistoryParams=Yr,h.createModalClass=Ml,h.createOverrideTheme=Jl,h.createPath=Tn,h.createScopedTheme=za,h.createStore=bt,h.createTheme=Kl,h.createUpdater=Pe,h.css=ti,h.customElement=pr,h.del=Fl,h.directive=yt,h.effect=dt,h.emitter=Jt,h.exportPartsMap=uc,h.fallback=cr,h.get=ql,h.getThemeProps=$s,h.getThemeStore=jl,h.globalemitter=ur,h.guard=Mc,h.history=N,h.html=it,h.ifDefined=Pr,h.initRequest=Wa,h.isArrayChange=qs,h.kebabToCamelCase=cc,h.light=hi,h.logger=Ia,h.matchPath=Mi,h.mediaQuery=zl,h.memo=ai,h.mounted=Kt,h.numattribute=or,h.objectMapToString=vn,h.part=li,h.partMap=hc,h.post=Ul,h.property=U,h.put=Bl,h.randomStr=ke,h.raw=gn,h.render=_n,h.repeat=Tc,h.request=Dl,h.shadow=Tt,h.slot=hr,h.splice=Ha,h.state=Ae,h.styleMap=lc,h.styled=ac,h.svg=Vs,h.template=ci,h.titleStore=Mt,h.unmounted=ar,h.version=Zs,h.willMount=$n,Object.defineProperty(h,Symbol.toStringTag,{value:"Module"})});
221
+ `})),Ft(et,19,this)}}et=ml(os),as=new WeakMap,Nn(et,5,"content",fa,qt),Nn(et,5,"contentcss",da,qt),Nn(et,21,"#content",ua,as),qt=Nn(et,0,"GemUnsafeElement",pa,qt),Ft(et,1,qt),customElements.define("gem-unsafe",qt);var El=Object.create,cs=Object.defineProperty,bl=Object.getOwnPropertyDescriptor,_a=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),le=e=>{throw TypeError(e)},ga=(e,t,n)=>t in e?cs(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ma=(e,t)=>cs(e,"name",{value:t,configurable:!0}),Cl=e=>[,,,El((e==null?void 0:e[_a("metadata")])??null)],va=["class","method","getter","setter","accessor","field","value","get","set"],Je=e=>e!==void 0&&typeof e!="function"?le("Function expected"):e,Pl=(e,t,n,i,s)=>({kind:va[e],name:t,metadata:i,addInitializer:r=>n._?le("Already initialized"):s.push(Je(r||null))}),wa=(e,t)=>ga(t,_a("metadata"),e[3]),Nt=(e,t,n,i)=>{for(var s=0,r=e[t>>1],c=r&&r.length;s<c;s++)t&1?r[s].call(n):i=r[s].call(n,i);return i},An=(e,t,n,i,s,r)=>{var c,a,f,_,m,o=t&7,g=!!(t&8),l=!!(t&16),v=o>3?e.length+1:o?g?1:2:0,w=va[o+5],S=o>3&&(e[v-1]=[]),b=e[v]||(e[v]=[]),d=o&&(!l&&!g&&(s=s.prototype),o<5&&(o>3||!l)&&bl(o<4?s:{get[n](){return At(this,r)},set[n](u){return hs(this,r,u)}},n));o?l&&o<4&&ma(r,(o>2?"set ":o>1?"get ":"")+n):ma(s,n);for(var E=i.length-1;E>=0;E--)_=Pl(o,n,f={},e[3],b),o&&(_.static=g,_.private=l,m=_.access={has:l?u=>kl(s,u):u=>n in u},o^3&&(m.get=l?u=>(o^1?At:Tl)(u,s,o^4?r:d.get):u=>u[n]),o>2&&(m.set=l?(u,T)=>hs(u,s,T,o^4?r:d.set):(u,T)=>u[n]=T)),a=(0,i[E])(o?o<4?l?r:d[w]:o>4?void 0:{get:d.get,set:d.set}:s,_),f._=1,o^4||a===void 0?Je(a)&&(o>4?S.unshift(a):o?l?r=a:d[w]=a:s=a):typeof a!="object"||a===null?le("Object expected"):(Je(c=a.get)&&(d.get=c),Je(c=a.set)&&(d.set=c),Je(c=a.init)&&S.unshift(c));return o||wa(e,s),d&&cs(s,n,d),l?o^4?r:d:s},ya=(e,t,n)=>ga(e,typeof t!="symbol"?t+"":t,n),ls=(e,t,n)=>t.has(e)||le("Cannot "+n),kl=(e,t)=>Object(t)!==t?le('Cannot use the "in" operator on this value'):e.has(t),At=(e,t,n)=>(ls(e,t,"read from private field"),n?n.call(e):t.get(e)),he=(e,t,n)=>t.has(e)?le("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),hs=(e,t,n,i)=>(ls(e,t,"write to private field"),i?i.call(e,n):t.set(e,n),n),Tl=(e,t,n)=>(ls(e,t,"access private method"),n),Sa,$a,Ea,ba,us,J,ds,Ca,fs,Rn,ps,Qe,_s;const Ml="gem-reflect-start",Pa="gem-reflect-end",ka=e=>new Comment(e),Ol=e=>{const t=[];let n=e;for(;n&&(t.push(n),n.nodeValue!==Pa);)n=n.nextSibling;return t};class Ye extends(us=U,ba=[F],Ea=[B],$a=[$n()],Sa=[pt(t=>[t.target])],us){constructor(){super(...arguments),he(this,ds),ya(this,"method",Nt(J,8,this)),Nt(J,11,this),ya(this,"target",Nt(J,12,this,document.head)),Nt(J,15,this),he(this,fs,Nt(J,16,this,()=>{this.hidden=!0,this.dataset.gemReflect=""})),Nt(J,19,this),he(this,Rn,ka(Ml)),he(this,ps,ka(Pa)),he(this,Qe),he(this,_s,Nt(J,20,this,()=>((At(this,Qe)||[At(this,Rn),...this.childNodes,At(this,ps)]).forEach((t,n,i)=>{const s=i[n-1];s?s.after(t):this.target[At(this,ds,Ca)](t)}),()=>{hs(this,Qe,Ol(At(this,Rn))),At(this,Qe).forEach(t=>t.remove())}))),Nt(J,23,this)}}J=Cl(us),ds=new WeakSet,Ca=function(){return this.method||"append"},fs=new WeakMap,Rn=new WeakMap,ps=new WeakMap,Qe=new WeakMap,_s=new WeakMap,An(J,5,"method",ba,Ye),An(J,5,"target",Ea,Ye),An(J,21,"#init",$a,fs),An(J,21,"#changeTarget",Sa,_s),wa(J,Ye),customElements.define("gem-reflect",Ye);var Ll=Object.create,gs=Object.defineProperty,Nl=Object.getOwnPropertyDescriptor,Ta=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),ue=e=>{throw TypeError(e)},Ma=(e,t,n)=>t in e?gs(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Oa=(e,t)=>gs(e,"name",{value:t,configurable:!0}),Al=e=>[,,,Ll((e==null?void 0:e[Ta("metadata")])??null)],La=["class","method","getter","setter","accessor","field","value","get","set"],Xe=e=>e!==void 0&&typeof e!="function"?ue("Function expected"):e,Rl=(e,t,n,i,s)=>({kind:La[e],name:t,metadata:i,addInitializer:r=>n._?ue("Already initialized"):s.push(Xe(r||null))}),Il=(e,t)=>Ma(t,Ta("metadata"),e[3]),Ze=(e,t,n,i)=>{for(var s=0,r=e[t>>1],c=r&&r.length;s<c;s++)t&1?r[s].call(n):i=r[s].call(n,i);return i},ms=(e,t,n,i,s,r)=>{var c,a,f,_,m,o=t&7,g=!!(t&8),l=!!(t&16),v=o>3?e.length+1:o?g?1:2:0,w=La[o+5],S=o>3&&(e[v-1]=[]),b=e[v]||(e[v]=[]),d=o&&(!l&&!g&&(s=s.prototype),o<5&&(o>3||!l)&&Nl(o<4?s:{get[n](){return Na(this,r)},set[n](u){return Ra(this,r,u)}},n));o?l&&o<4&&Oa(r,(o>2?"set ":o>1?"get ":"")+n):Oa(s,n);for(var E=i.length-1;E>=0;E--)_=Rl(o,n,f={},e[3],b),o&&(_.static=g,_.private=l,m=_.access={has:l?u=>Hl(s,u):u=>n in u},o^3&&(m.get=l?u=>(o^1?Na:Wl)(u,s,o^4?r:d.get):u=>u[n]),o>2&&(m.set=l?(u,T)=>Ra(u,s,T,o^4?r:d.set):(u,T)=>u[n]=T)),a=(0,i[E])(o?o<4?l?r:d[w]:o>4?void 0:{get:d.get,set:d.set}:s,_),f._=1,o^4||a===void 0?Xe(a)&&(o>4?S.unshift(a):o?l?r=a:d[w]=a:s=a):typeof a!="object"||a===null?ue("Object expected"):(Xe(c=a.get)&&(d.get=c),Xe(c=a.set)&&(d.set=c),Xe(c=a.init)&&S.unshift(c));return o||Il(e,s),d&&gs(s,n,d),l?o^4?r:d:s},In=(e,t,n)=>Ma(e,typeof t!="symbol"?t+"":t,n),vs=(e,t,n)=>t.has(e)||ue("Cannot "+n),Hl=(e,t)=>Object(t)!==t?ue('Cannot use the "in" operator on this value'):e.has(t),Na=(e,t,n)=>(vs(e,t,"read from private field"),n?n.call(e):t.get(e)),Aa=(e,t,n)=>t.has(e)?ue("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),Ra=(e,t,n,i)=>(vs(e,t,"write to private field"),i?i.call(e,n):t.set(e,n),n),Wl=(e,t,n)=>(vs(e,t,"access private method"),n);const Hn=Symbol("open mark");function Gl(e){var t,n,i,s,r,c,a;const f=Symbol();s=[Tt(),xe({role:"alertdialog",ariaModal:"true"})];let _=class Xa extends(i=U,n=[Xt()],t=[Xt()],i){constructor(){super(...arguments),In(this,"label",""),Aa(this,c,Ze(r,8,this,()=>dt(N.store,this.update))),Ze(r,11,this),Aa(this,a,Ze(r,12,this,()=>dt(Xa.store,this.update))),Ze(r,15,this)}static get isOpen(){return this.store[Hn]}static open(g){const l=new this;this.instance=l,this.inertStore=[...document.body.children].filter(w=>!w.inert),this.inertStore.forEach(w=>w.inert=!0),document.body.append(l);const v=()=>this.store({[Hn]:!0,...g});return setTimeout(()=>{v(),N.push({title:l.label,open:v,close:this.closeHandle.bind(this),shouldClose:this.shouldClose.bind(this)})},100),f}static close(){return N.back(),f}static closeHandle(){var g;return this.inertStore.forEach(l=>l.inert=!1),(g=this.instance)==null||g.remove(),this.store({[Hn]:!1,...e}),f}static shouldClose(){return!0}};return r=Al(i),c=new WeakMap,a=new WeakMap,ms(r,21,"#connectHistory",n,c),ms(r,21,"#connectStore",t,a),_=ms(r,0,"ModalElement",s,_),In(_,"inertStore",[]),In(_,"instance",null),In(_,"store",bt({[Hn]:!1,...e})),Ze(r,1,_),_}var xl=Object.create,ws=Object.defineProperty,zl=Object.getOwnPropertyDescriptor,Ia=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),de=e=>{throw TypeError(e)},Ha=(e,t,n)=>t in e?ws(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Wa=(e,t)=>ws(e,"name",{value:t,configurable:!0}),Vl=e=>[,,,xl((e==null?void 0:e[Ia("metadata")])??null)],Ga=["class","method","getter","setter","accessor","field","value","get","set"],tn=e=>e!==void 0&&typeof e!="function"?de("Function expected"):e,Dl=(e,t,n,i,s)=>({kind:Ga[e],name:t,metadata:i,addInitializer:r=>n._?de("Already initialized"):s.push(tn(r||null))}),Fl=(e,t)=>Ha(t,Ia("metadata"),e[3]),Ut=(e,t,n,i)=>{for(var s=0,r=e[t>>1],c=r&&r.length;s<c;s++)t&1?r[s].call(n):i=r[s].call(n,i);return i},Wn=(e,t,n,i,s,r)=>{var c,a,f,_,m,o=t&7,g=!!(t&8),l=!!(t&16),v=o>3?e.length+1:o?g?1:2:0,w=Ga[o+5],S=o>3&&(e[v-1]=[]),b=e[v]||(e[v]=[]),d=o&&(!l&&!g&&(s=s.prototype),o<5&&(o>3||!l)&&zl(o<4?s:{get[n](){return lt(this,r)},set[n](u){return nn(this,r,u)}},n));o?l&&o<4&&Wa(r,(o>2?"set ":o>1?"get ":"")+n):Wa(s,n);for(var E=i.length-1;E>=0;E--)_=Dl(o,n,f={},e[3],b),o&&(_.static=g,_.private=l,m=_.access={has:l?u=>ql(s,u):u=>n in u},o^3&&(m.get=l?u=>(o^1?lt:Ul)(u,s,o^4?r:d.get):u=>u[n]),o>2&&(m.set=l?(u,T)=>nn(u,s,T,o^4?r:d.set):(u,T)=>u[n]=T)),a=(0,i[E])(o?o<4?l?r:d[w]:o>4?void 0:{get:d.get,set:d.set}:s,_),f._=1,o^4||a===void 0?tn(a)&&(o>4?S.unshift(a):o?l?r=a:d[w]=a:s=a):typeof a!="object"||a===null?de("Object expected"):(tn(c=a.get)&&(d.get=c),tn(c=a.set)&&(d.set=c),tn(c=a.init)&&S.unshift(c));return o||Fl(e,s),d&&ws(s,n,d),l?o^4?r:d:s},en=(e,t,n)=>Ha(e,typeof t!="symbol"?t+"":t,n),ys=(e,t,n)=>t.has(e)||de("Cannot "+n),ql=(e,t)=>Object(t)!==t?de('Cannot use the "in" operator on this value'):e.has(t),lt=(e,t,n)=>(ys(e,t,"read from private field"),n?n.call(e):t.get(e)),fe=(e,t,n)=>t.has(e)?de("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),nn=(e,t,n,i)=>(ys(e,t,"write to private field"),i?i.call(e,n):t.set(e,n),n),Ul=(e,t,n)=>(ys(e,t,"access private method"),n),xa,za,Va,Ss,Da,nt,sn,rn,on,$s,Gn,Es;const bs=Symbol();Da=[Ge(N.store),xe({role:"dialog",ariaModal:"true"})];class pe extends(Ss=U,Va=[F],za=[We],xa=[$n()],Ss){constructor(){super(...arguments),en(this,"label",Ut(nt,8,this)),Ut(nt,11,this),en(this,"opened",Ut(nt,12,this)),Ut(nt,15,this),fe(this,sn),fe(this,rn),fe(this,on,[]),fe(this,$s,()=>{var t;this.inert=!0,lt(this,on).forEach(n=>n.inert=!1),lt(this,sn)?lt(this,sn).before(this):lt(this,rn)&&((t=lt(this,rn))==null||t.appendChild(this)),this.dispatchEvent(new CustomEvent("close")),this.opened=!1}),fe(this,Gn,()=>{this.hidden=!1,this.inert=!1,nn(this,sn,this.nextSibling),nn(this,rn,this.parentElement||this.getRootNode()),nn(this,on,[...document.body.children].filter(t=>!t.inert)),lt(this,on).forEach(t=>t.inert=!0),document.body.append(this),this.dispatchEvent(new CustomEvent("open")),this.opened=!0}),fe(this,Es,Ut(nt,16,this,()=>this.inert=!0)),Ut(nt,19,this),en(this,"open",()=>{if(!this.opened)return lt(this,Gn).call(this),N.push({title:this.label,open:lt(this,Gn),close:lt(this,$s),shouldClose:this.shouldClose}),bs}),en(this,"close",()=>(N.back(),bs)),en(this,"forceClose",()=>(this.opened=!1,setTimeout(this.close,100),bs))}shouldClose(){return!0}}nt=Vl(Ss),sn=new WeakMap,rn=new WeakMap,on=new WeakMap,$s=new WeakMap,Gn=new WeakMap,Es=new WeakMap,Wn(nt,5,"label",Va,pe),Wn(nt,5,"opened",za,pe),Wn(nt,21,"#init",xa,Es),pe=Wn(nt,0,"GemDialogBaseElement",Da,pe),Ut(nt,1,pe);class Fa{constructor(t){A(this,"_type");A(this,"info",(...t)=>{console.log(`[${this._type}]:`,...t)});A(this,"warn",(...t)=>{console.warn(`[${this._type}]:`,...t)});A(this,"error",(...t)=>{console.error(`[${this._type}]:`,...t)});this._type=t}}const qa=new Fa("GEM"),Bl=/\$\d(?:<[^>]*>)?/,Kl=/\$(\d)(<([^>]*)>)?/g,jl=3;function Ua(e,...t){const n=e.split(Bl),i=[];let s;for(;s=Kl.exec(e);){const r=s[jl],c=Number(s[1])-1,a=t[c];i.push(typeof a=="function"?a(r):a)}return rt(n,...i)}const an=new Set,ks=class ks{constructor(t){C(this,G);A(this,"resources");A(this,"fallbackLanguage");A(this,"currentLanguage");A(this,"cache");A(this,"cachePrefix","gem-i18n");A(this,"urlParamsType");A(this,"urlParamsName");A(this,"onChange");A(this,"replace",({path:t})=>this.setLanguage(t));A(this,"getParams",()=>({path:this.currentLanguage}));C(this,fn,!0);if(!t.resources[t.fallbackLanguage])throw new Et("i18n: fallbackLanguage invalid");Object.assign(this,t);let n=p(this,G,Za)||this.currentLanguage||p(this,G,tc);const i=document.querySelector(`[type*=${this.cachePrefix}]`);if(i)try{const s=JSON.parse(i.textContent||"");n=s.currentLanguage,this.resources[s.currentLanguage]=s.currentLanguagePack}catch{}n?(O(this,G,n,Kn),this.setLanguage(n)):this.resetLanguage(),O(this,fn,!1)}get(t,...n){const i=this.resources[this.currentLanguage],s=this.resources[this.fallbackLanguage],r=i[t]||s[t],c=(r==null?void 0:r.message)||r||`[${t}]`;return n.length?Ua(c,...n):c}detectLanguage(){const t=Object.keys(this.resources),n=navigator.languages.map(i=>i.replace(/-(.*)/,s=>s.toUpperCase()));for(const i of n){const s=t.find(r=>r===i||i.startsWith(`${r}-`));if(s)return s}return this.fallbackLanguage}async setLanguage(t){var s,r;p(this,G,pn)&&an.forEach(async c=>await c.setLanguage(t));let n;const i=this.resources[t];if(!i)return qa.warn(`${this.cachePrefix}: not found \`${t}\``),this.resetLanguage();if(typeof i=="string"){const c=`${this.cachePrefix}:`,a=`${c}${i}`,f=localStorage.getItem(a),_=async()=>{const m=await(await fetch(i)).json();if(this.cache){for(let o=0;o<localStorage.length;o++){const g=localStorage.key(o);g.startsWith(c)&&localStorage.removeItem(g)}localStorage.setItem(a,JSON.stringify(m))}return m};if(f)try{n=JSON.parse(f)}catch{n=await _()}else n=await _()}else n=i;if(this.resources[t]=n,!p(this,fn)){const c=[document.documentElement];for(;c.length;){const a=c.pop();(s=a[Ae])==null||s.call(a),c.push(...[...a.children,...((r=a.shadowRoot)==null?void 0:r.children)||[]].reverse())}}return t!==this.currentLanguage&&O(this,G,t,Kn),this.cache===!0&&this.setCache(),t}resetLanguage(){return p(this,G,pn)&&an.forEach(t=>t.resetLanguage()),O(this,G,this.fallbackLanguage,Kn),this.cache&&localStorage.removeItem(p(this,G,Bn)),this.setLanguage(this.detectLanguage())}setCache(){p(this,G,pn)&&an.forEach(t=>t.setCache()),localStorage.setItem(p(this,G,Bn),this.currentLanguage)}createSubModule(t,n){const i=new ks({resources:n,cachePrefix:`${this.cachePrefix}-${t}`,currentLanguage:this.currentLanguage,fallbackLanguage:this.fallbackLanguage,cache:this.cache});return an.add(i),i}toJSON(){return{currentLanguage:this.currentLanguage,currentLanguagePack:this.resources[this.currentLanguage]}}};G=new WeakSet,Bn=function(){return`${this.cachePrefix}:current`},Za=function(){const{hostname:t,pathname:n,search:i}=location,s=t.split(".");switch(this.urlParamsType){case"ccTLD":return s.pop();case"gTLD":return s.shift();case"path":return n.split("/")[1];default:const r=this.urlParamsName&&new URLSearchParams(i).get(this.urlParamsName)||"";return r in this.resources?r:""}},tc=function(){return this.cache&&localStorage.getItem(p(this,G,Bn))||""},pn=function(){return!an.has(this)},Kn=function(t){var n;p(this,G,pn)&&(document.documentElement.lang=t),this.currentLanguage=t,(n=this.onChange)==null||n.call(this,t)},fn=new WeakMap;let Cs=ks;const Y=e=>window.matchMedia(e).matches,Jl={PRINT:"print",get isPrint(){return Y(this.PRINT)},HOVER:"(hover: hover)",get isHover(){return Y(this.HOVER)},PWA:"(display-mode: standalone)",get isPWA(){return Y(this.PWA)},MOTION_REDUCE:"(prefers-reduced-motion: reduce)",get isMotionReduce(){return Y(this.MOTION_REDUCE)},DATA_REDUCE:"(prefers-reduced-data: reduce)",get isDataReduce(){return Y(this.DATA_REDUCE)},WATCH:"(width < 320px)",get isWatch(){return Y(this.WATCH)},SMALL_PHONE:"(320px <= width <= 480px) and (height <= 640px)",get isSmallPhone(){return Y(this.SMALL_PHONE)},PHONE:"(320px <= width <= 480px)",get isPhone(){return Y(this.PHONE)},PHONE_LANDSCAPE:"(480px < width < 960px) and (orientation: landscape)",get isPhoneLandscape(){return Y(this.PHONE_LANDSCAPE)},SHORT:"(width >= 480px) and (height <= 320px)",get isShort(){return Y(this.SHORT)},TABLET:"(480px < width <= 1280px)",get isTablet(){return Y(this.TABLET)},DESKTOP:"(width > 1280px) and (orientation: landscape)",get isDesktop(){return Y(this.DESKTOP)},WIDTHSCREEN:"(width >= 1920px) and (orientation: landscape)",get isWidthScreen(){return Y(this.WIDTHSCREEN)}},Ql=Object.getPrototypeOf(Object.getPrototypeOf(new Int8Array)).constructor;function Ba(e={}){const{origin:t=location.origin,base:n="",appendHeaders:i=()=>({}),transformInput:s=o=>o,transformOutput:r=o=>o,...c}=e,a=o=>o instanceof FormData||o instanceof Blob||o instanceof Ql||o instanceof URLSearchParams||o instanceof ReadableStream||o instanceof ArrayBuffer?o:typeof o=="object"?JSON.stringify(o):o,f=(o,g)=>{if(new URL(o,location.origin).pathname!==o)throw new Et("`path` format is incorrect");const l=new URLSearchParams(g).toString();return`${t}${n}${o}${l?"?":""}${l}`},_=o=>{if(!o)return{};if(o instanceof Headers)return Object.fromEntries(o);const g=Array.isArray(o)?o:Object.entries(o);return Object.fromEntries(g.map(([l,v])=>[l.toLowerCase(),v]))},m=async(o,g={})=>{const l=new Request(o,{...c,...g,headers:new Headers({"content-type":"application/json",..._(c.headers),..._(g.headers)})}),v=await fetch(l);if(v.status===0)throw new Error("Request fail");if(v.status>=500)throw new Error(v.statusText);const w=l.headers.get("content-type"),S=v.status>=400;try{let b;if(w.includes("json")?b=await v.json():w.includes("octet-stream")?b=await v.arrayBuffer():b=await v.text(),S)throw new Error(v.statusText,{cause:b});return r(b,l)}catch{throw new Error("Parse error")}};return{request:m,get(o,g){const l=s(g);return m(f(o,l),{method:"GET",headers:i(l)})},del(o,g){const l=s(g);return m(f(o,l),{method:"DELETE",headers:i(l)})},put(o,g){const l=s(g);return m(f(o),{method:"PUT",headers:i(l),body:a(l)})},post(o,g){const l=s(g);return m(f(o),{method:"POST",headers:i(l),body:a(l)})}}}const{request:Yl,del:Xl,get:Zl,post:th,put:eh}=Ba(),Ka=new WeakMap,ja=new WeakMap;function nh(e){return Ka.get(e)}function Ps(e){return ja.get(e)}function xn(e,t={}){const n=Le(),i=Re({})[Ct],s=bt(e),r=new Proxy(Oe({[Ct]:i},a=>s(a)),{get(a,f){if(!a[f]){const[_,m,o]=f.match(/^(\w*Color)(\d+)$/)||[];m&&(a[f]=`oklch(from ${a[m]} calc(l - ${(Number(o)-400)/1e3}) c h)`)}return a[f]}});ja.set(r,t),Ka.set(r,s);const c=()=>{let a="";Object.keys(s).forEach(f=>{t[f]||(t[f]=`--${Ht(f)}-${n}`,r[f]=`var(${t[f]})`),a+=`${t[f]}:${s[f]};`}),i.setContent(`:scope,:host{${a}}`)};return c(),dt(s,()=>{c(),i.updateStyle()}),r}function Ja(e){return xn(e)}function ih(e){const t=Ja(e);return document.adoptedStyleSheets.push(t[Ct].getStyle()),t}function sh(e,t){return xn(t,Ps(e))}function rh(e){const t=xn(e),n=Ps(t);return Oe(t,s=>(r,{addInitializer:c,access:a})=>{c(function(){const f=xn({...e},n);this.internals.sheets.push(f[Ct].getStyle(this)),this.memo(()=>f(a.get(this).apply(this)),s&&(()=>s(this)))})})}h.GemActiveLinkElement=Vt,h.GemDialogBaseElement=pe,h.GemElement=U,h.GemError=Et,h.GemLightRouteElement=H,h.GemLinkElement=x,h.GemReflectElement=Ye,h.GemRouteElement=ne,h.GemTitleElement=re,h.GemUnsafeElement=qt,h.GemUseElement=_t,h.I18n=Cs,h.LinkedList=Bs,h.Logger=Fa,h.PropProxyMap=Ks,h.QueryString=Qt,h.SVGTemplateResult=Qn,h.SheetToken=Ct,h.StoreListenerMap=Ne,h.TemplateResult=Me,h.UpdateToken=Ae,h._RenderErrorEvent=wn,h.absoluteLocation=ei,h.addListener=ni,h.addMicrotask=$t,h.adoptedStyle=En,h.aria=xe,h.async=mr,h.attribute=F,h.basePathStore=Cr,h.boolattribute=He,h.camelToKebabCase=Ht,h.classMap=Js,h.cleanObject=mn,h.connect=dt,h.connectStore=Ge,h.createCSSSheet=Re,h.createDecoratorTheme=rh,h.createHistoryParams=eo,h.createModalClass=Gl,h.createOverrideTheme=sh,h.createPath=Tn,h.createScopedTheme=Ja,h.createStore=bt,h.createTheme=ih,h.createUpdater=Oe,h.css=ii,h.customElement=vr,h.del=Xl,h.directive=yt,h.effect=pt,h.emitter=Zt,h.exportPartsMap=yc,h.fallback=dr,h.get=Zl,h.getThemeProps=Ps,h.getThemeStore=nh,h.globalemitter=_r,h.guard=Gc,h.history=N,h.html=rt,h.ifDefined=Or,h.initRequest=Ba,h.isArrayChange=js,h.kebabToCamelCase=mc,h.light=di,h.logger=qa,h.matchPath=Li,h.mediaQuery=Jl,h.memo=hi,h.mounted=Xt,h.numattribute=hr,h.objectMapToString=vn,h.part=ui,h.partMap=wc,h.post=th,h.property=B,h.put=eh,h.randomStr=Le,h.raw=gn,h.render=_n,h.repeat=Wc,h.request=Yl,h.shadow=Tt,h.slot=pr,h.splice=Ua,h.state=We,h.styleMap=vc,h.styled=gc,h.svg=Us,h.template=Wt,h.titleStore=Mt,h.unmounted=ur,h.version=ir,h.willMount=$n,Object.defineProperty(h,Symbol.toStringTag,{value:"Module"})});