factoriomod-debug 1.1.37 → 1.1.39

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.
@@ -1,4 +1,4 @@
1
- function Ne(i){return i.type==="int"?{type:"int",value:Cr("",i.value)}:i}function Cr(i,t){return typeof t=="bigint"?`jsonbigint ${t}n`:t}function Yi(i,t){if(typeof t=="string"){let e=t.match(/^jsonbigint\x01\x02 (\d+)n$/);if(e)return BigInt(e[1])}return t}var nt=function(){if(typeof globalThis<"u")return globalThis;if(typeof global<"u")return global;if(typeof self<"u")return self;if(typeof window<"u")return window;try{return new Function("return this")()}catch{return{}}}();nt.trustedTypes===void 0&&(nt.trustedTypes={createPolicy:(i,t)=>t});var Ji={configurable:!1,enumerable:!1,writable:!1};nt.FAST===void 0&&Reflect.defineProperty(nt,"FAST",Object.assign({value:Object.create(null)},Ji));var xt=nt.FAST;if(xt.getById===void 0){let i=Object.create(null);Reflect.defineProperty(xt,"getById",Object.assign({value(t,e){let o=i[t];return o===void 0&&(o=e?i[t]=e():null),o}},Ji))}var st=Object.freeze([]);function ue(){let i=new WeakMap;return function(t){let e=i.get(t);if(e===void 0){let o=Reflect.getPrototypeOf(t);for(;e===void 0&&o!==null;)e=i.get(o),o=Reflect.getPrototypeOf(o);e=e===void 0?[]:e.slice(0),i.set(t,e)}return e}}var ze=nt.FAST.getById(1,()=>{let i=[],t=[];function e(){if(t.length)throw t.shift()}function o(s){try{s.call()}catch(a){t.push(a),setTimeout(e,0)}}function r(){let a=0;for(;a<i.length;)if(o(i[a]),a++,a>1024){for(let c=0,d=i.length-a;c<d;c++)i[c]=i[c+a];i.length-=a,a=0}i.length=0}function n(s){i.length<1&&nt.requestAnimationFrame(r),i.push(s)}return Object.freeze({enqueue:n,process:r})}),Zi=nt.trustedTypes.createPolicy("fast-html",{createHTML:i=>i}),je=Zi,Xt=`fast-${Math.random().toString(36).substring(2,8)}`,qe=`${Xt}{`,pe=`}${Xt}`,m=Object.freeze({supportsAdoptedStyleSheets:Array.isArray(document.adoptedStyleSheets)&&"replace"in CSSStyleSheet.prototype,setHTMLPolicy(i){if(je!==Zi)throw new Error("The HTML policy can only be set once.");je=i},createHTML(i){return je.createHTML(i)},isMarker(i){return i&&i.nodeType===8&&i.data.startsWith(Xt)},extractDirectiveIndexFromMarker(i){return parseInt(i.data.replace(`${Xt}:`,""))},createInterpolationPlaceholder(i){return`${qe}${i}${pe}`},createCustomAttributePlaceholder(i,t){return`${i}="${this.createInterpolationPlaceholder(t)}"`},createBlockPlaceholder(i){return`<!--${Xt}:${i}-->`},queueUpdate:ze.enqueue,processUpdates:ze.process,nextUpdate(){return new Promise(ze.enqueue)},setAttribute(i,t,e){e==null?i.removeAttribute(t):i.setAttribute(t,e)},setBooleanAttribute(i,t,e){e?i.setAttribute(t,""):i.removeAttribute(t)},removeChildNodes(i){for(let t=i.firstChild;t!==null;t=i.firstChild)i.removeChild(t)},createTemplateWalker(i){return document.createTreeWalker(i,133,null,!1)}});var Bt=class{constructor(t,e){this.sub1=void 0,this.sub2=void 0,this.spillover=void 0,this.source=t,this.sub1=e}has(t){return this.spillover===void 0?this.sub1===t||this.sub2===t:this.spillover.indexOf(t)!==-1}subscribe(t){let e=this.spillover;if(e===void 0){if(this.has(t))return;if(this.sub1===void 0){this.sub1=t;return}if(this.sub2===void 0){this.sub2=t;return}this.spillover=[this.sub1,this.sub2,t],this.sub1=void 0,this.sub2=void 0}else e.indexOf(t)===-1&&e.push(t)}unsubscribe(t){let e=this.spillover;if(e===void 0)this.sub1===t?this.sub1=void 0:this.sub2===t&&(this.sub2=void 0);else{let o=e.indexOf(t);o!==-1&&e.splice(o,1)}}notify(t){let e=this.spillover,o=this.source;if(e===void 0){let r=this.sub1,n=this.sub2;r!==void 0&&r.handleChange(o,t),n!==void 0&&n.handleChange(o,t)}else for(let r=0,n=e.length;r<n;++r)e[r].handleChange(o,t)}},Dt=class{constructor(t){this.subscribers={},this.sourceSubscribers=null,this.source=t}notify(t){var e;let o=this.subscribers[t];o!==void 0&&o.notify(t),(e=this.sourceSubscribers)===null||e===void 0||e.notify(t)}subscribe(t,e){var o;if(e){let r=this.subscribers[e];r===void 0&&(this.subscribers[e]=r=new Bt(this.source)),r.subscribe(t)}else this.sourceSubscribers=(o=this.sourceSubscribers)!==null&&o!==void 0?o:new Bt(this.source),this.sourceSubscribers.subscribe(t)}unsubscribe(t,e){var o;if(e){let r=this.subscribers[e];r!==void 0&&r.unsubscribe(t)}else(o=this.sourceSubscribers)===null||o===void 0||o.unsubscribe(t)}};var b=xt.getById(2,()=>{let i=/(:|&&|\|\||if)/,t=new WeakMap,e=m.queueUpdate,o,r=d=>{throw new Error("Must call enableArrayObservation before observing arrays.")};function n(d){let u=d.$fastController||t.get(d);return u===void 0&&(Array.isArray(d)?u=r(d):t.set(d,u=new Dt(d))),u}let s=ue();class a{constructor(u){this.name=u,this.field=`_${u}`,this.callback=`${u}Changed`}getValue(u){return o!==void 0&&o.watch(u,this.name),u[this.field]}setValue(u,v){let A=this.field,q=u[A];if(q!==v){u[A]=v;let F=u[this.callback];typeof F=="function"&&F.call(u,q,v),n(u).notify(this.name)}}}class c extends Bt{constructor(u,v,A=!1){super(u,v),this.binding=u,this.isVolatileBinding=A,this.needsRefresh=!0,this.needsQueue=!0,this.first=this,this.last=null,this.propertySource=void 0,this.propertyName=void 0,this.notifier=void 0,this.next=void 0}observe(u,v){this.needsRefresh&&this.last!==null&&this.disconnect();let A=o;o=this.needsRefresh?this:void 0,this.needsRefresh=this.isVolatileBinding;let q=this.binding(u,v);return o=A,q}disconnect(){if(this.last!==null){let u=this.first;for(;u!==void 0;)u.notifier.unsubscribe(this,u.propertyName),u=u.next;this.last=null,this.needsRefresh=this.needsQueue=!0}}watch(u,v){let A=this.last,q=n(u),F=A===null?this.first:{};if(F.propertySource=u,F.propertyName=v,F.notifier=q,q.subscribe(this,v),A!==null){if(!this.needsRefresh){let X;o=void 0,X=A.propertySource[A.propertyName],o=this,u===X&&(this.needsRefresh=!0)}A.next=F}this.last=F}handleChange(){this.needsQueue&&(this.needsQueue=!1,e(this))}call(){this.last!==null&&(this.needsQueue=!0,this.notify(this))}records(){let u=this.first;return{next:()=>{let v=u;return v===void 0?{value:void 0,done:!0}:(u=u.next,{value:v,done:!1})},[Symbol.iterator]:function(){return this}}}}return Object.freeze({setArrayObserverFactory(d){r=d},getNotifier:n,track(d,u){o!==void 0&&o.watch(d,u)},trackVolatile(){o!==void 0&&(o.needsRefresh=!0)},notify(d,u){n(d).notify(u)},defineProperty(d,u){typeof u=="string"&&(u=new a(u)),s(d).push(u),Reflect.defineProperty(d,u.name,{enumerable:!0,get:function(){return u.getValue(this)},set:function(v){u.setValue(this,v)}})},getAccessors:s,binding(d,u,v=this.isVolatileBinding(d)){return new c(d,u,v)},isVolatileBinding(d){return i.test(d.toString())}})});function f(i,t){b.defineProperty(i,t)}function to(i,t,e){return Object.assign({},e,{get:function(){return b.trackVolatile(),e.get.apply(this)}})}var Ki=xt.getById(3,()=>{let i=null;return{get(){return i},set(t){i=t}}}),at=class{constructor(){this.index=0,this.length=0,this.parent=null,this.parentContext=null}get event(){return Ki.get()}get isEven(){return this.index%2===0}get isOdd(){return this.index%2!==0}get isFirst(){return this.index===0}get isInMiddle(){return!this.isFirst&&!this.isLast}get isLast(){return this.index===this.length-1}static setEvent(t){Ki.set(t)}};b.defineProperty(at.prototype,"index");b.defineProperty(at.prototype,"length");var lt=Object.seal(new at);var Rt=class{constructor(){this.targetIndex=0}},Lt=class extends Rt{constructor(){super(...arguments),this.createPlaceholder=m.createInterpolationPlaceholder}},_t=class extends Rt{constructor(t,e,o){super(),this.name=t,this.behavior=e,this.options=o}createPlaceholder(t){return m.createCustomAttributePlaceholder(this.name,t)}createBehavior(t){return new this.behavior(t,this.options)}};function $r(i,t){this.source=i,this.context=t,this.bindingObserver===null&&(this.bindingObserver=b.binding(this.binding,this,this.isBindingVolatile)),this.updateTarget(this.bindingObserver.observe(i,t))}function Sr(i,t){this.source=i,this.context=t,this.target.addEventListener(this.targetName,this)}function Ir(){this.bindingObserver.disconnect(),this.source=null,this.context=null}function Tr(){this.bindingObserver.disconnect(),this.source=null,this.context=null;let i=this.target.$fastView;i!==void 0&&i.isComposed&&(i.unbind(),i.needsBindOnly=!0)}function Or(){this.target.removeEventListener(this.targetName,this),this.source=null,this.context=null}function Ar(i){m.setAttribute(this.target,this.targetName,i)}function Er(i){m.setBooleanAttribute(this.target,this.targetName,i)}function Pr(i){if(i==null&&(i=""),i.create){this.target.textContent="";let t=this.target.$fastView;t===void 0?t=i.create():this.target.$fastTemplate!==i&&(t.isComposed&&(t.remove(),t.unbind()),t=i.create()),t.isComposed?t.needsBindOnly&&(t.needsBindOnly=!1,t.bind(this.source,this.context)):(t.isComposed=!0,t.bind(this.source,this.context),t.insertBefore(this.target),this.target.$fastView=t,this.target.$fastTemplate=i)}else{let t=this.target.$fastView;t!==void 0&&t.isComposed&&(t.isComposed=!1,t.remove(),t.needsBindOnly?t.needsBindOnly=!1:t.unbind()),this.target.textContent=i}}function Fr(i){this.target[this.targetName]=i}function Mr(i){let t=this.classVersions||Object.create(null),e=this.target,o=this.version||0;if(i!=null&&i.length){let r=i.split(/\s+/);for(let n=0,s=r.length;n<s;++n){let a=r[n];a!==""&&(t[a]=o,e.classList.add(a))}}if(this.classVersions=t,this.version=o+1,o!==0){o-=1;for(let r in t)t[r]===o&&e.classList.remove(r)}}var wt=class extends Lt{constructor(t){super(),this.binding=t,this.bind=$r,this.unbind=Ir,this.updateTarget=Ar,this.isBindingVolatile=b.isVolatileBinding(this.binding)}get targetName(){return this.originalTargetName}set targetName(t){if(this.originalTargetName=t,t!==void 0)switch(t[0]){case":":if(this.cleanedTargetName=t.substr(1),this.updateTarget=Fr,this.cleanedTargetName==="innerHTML"){let e=this.binding;this.binding=(o,r)=>m.createHTML(e(o,r))}break;case"?":this.cleanedTargetName=t.substr(1),this.updateTarget=Er;break;case"@":this.cleanedTargetName=t.substr(1),this.bind=Sr,this.unbind=Or;break;default:this.cleanedTargetName=t,t==="class"&&(this.updateTarget=Mr);break}}targetAtContent(){this.updateTarget=Pr,this.unbind=Tr}createBehavior(t){return new Ue(t,this.binding,this.isBindingVolatile,this.bind,this.unbind,this.updateTarget,this.cleanedTargetName)}},Ue=class{constructor(t,e,o,r,n,s,a){this.source=null,this.context=null,this.bindingObserver=null,this.target=t,this.binding=e,this.isBindingVolatile=o,this.bind=r,this.unbind=n,this.updateTarget=s,this.targetName=a}handleChange(){this.updateTarget(this.bindingObserver.observe(this.source,this.context))}handleEvent(t){at.setEvent(t);let e=this.binding(this.source,this.context);at.setEvent(null),e!==!0&&t.preventDefault()}};var We=null,Yt=class{addFactory(t){t.targetIndex=this.targetIndex,this.behaviorFactories.push(t)}captureContentBinding(t){t.targetAtContent(),this.addFactory(t)}reset(){this.behaviorFactories=[],this.targetIndex=-1}release(){We=this}static borrow(t){let e=We||new Yt;return e.directives=t,e.reset(),We=null,e}};function Br(i){if(i.length===1)return i[0];let t,e=i.length,o=i.map(s=>typeof s=="string"?()=>s:(t=s.targetName||t,s.binding)),r=(s,a)=>{let c="";for(let d=0;d<e;++d)c+=o[d](s,a);return c},n=new wt(r);return n.targetName=t,n}var Dr=pe.length;function io(i,t){let e=t.split(qe);if(e.length===1)return null;let o=[];for(let r=0,n=e.length;r<n;++r){let s=e[r],a=s.indexOf(pe),c;if(a===-1)c=s;else{let d=parseInt(s.substring(0,a));o.push(i.directives[d]),c=s.substring(a+Dr)}c!==""&&o.push(c)}return o}function eo(i,t,e=!1){let o=t.attributes;for(let r=0,n=o.length;r<n;++r){let s=o[r],a=s.value,c=io(i,a),d=null;c===null?e&&(d=new wt(()=>a),d.targetName=s.name):d=Br(c),d!==null&&(t.removeAttributeNode(s),r--,n--,i.addFactory(d))}}function Rr(i,t,e){let o=io(i,t.textContent);if(o!==null){let r=t;for(let n=0,s=o.length;n<s;++n){let a=o[n],c=n===0?t:r.parentNode.insertBefore(document.createTextNode(""),r.nextSibling);typeof a=="string"?c.textContent=a:(c.textContent=" ",i.captureContentBinding(a)),r=c,i.targetIndex++,c!==t&&e.nextNode()}i.targetIndex--}}function oo(i,t){let e=i.content;document.adoptNode(e);let o=Yt.borrow(t);eo(o,i,!0);let r=o.behaviorFactories;o.reset();let n=m.createTemplateWalker(e),s;for(;s=n.nextNode();)switch(o.targetIndex++,s.nodeType){case 1:eo(o,s);break;case 3:Rr(o,s,n);break;case 8:m.isMarker(s)&&o.addFactory(t[m.extractDirectiveIndexFromMarker(s)])}let a=0;(m.isMarker(e.firstChild)||e.childNodes.length===1&&t.length)&&(e.insertBefore(document.createComment(""),e.firstChild),a=-1);let c=o.behaviorFactories;return o.release(),{fragment:e,viewBehaviorFactories:c,hostBehaviorFactories:r,targetOffset:a}}var Ge=document.createRange(),fe=class{constructor(t,e){this.fragment=t,this.behaviors=e,this.source=null,this.context=null,this.firstChild=t.firstChild,this.lastChild=t.lastChild}appendTo(t){t.appendChild(this.fragment)}insertBefore(t){if(this.fragment.hasChildNodes())t.parentNode.insertBefore(this.fragment,t);else{let e=this.lastChild;if(t.previousSibling===e)return;let o=t.parentNode,r=this.firstChild,n;for(;r!==e;)n=r.nextSibling,o.insertBefore(r,t),r=n;o.insertBefore(e,t)}}remove(){let t=this.fragment,e=this.lastChild,o=this.firstChild,r;for(;o!==e;)r=o.nextSibling,t.appendChild(o),o=r;t.appendChild(e)}dispose(){let t=this.firstChild.parentNode,e=this.lastChild,o=this.firstChild,r;for(;o!==e;)r=o.nextSibling,t.removeChild(o),o=r;t.removeChild(e);let n=this.behaviors,s=this.source;for(let a=0,c=n.length;a<c;++a)n[a].unbind(s)}bind(t,e){let o=this.behaviors;if(this.source!==t)if(this.source!==null){let r=this.source;this.source=t,this.context=e;for(let n=0,s=o.length;n<s;++n){let a=o[n];a.unbind(r),a.bind(t,e)}}else{this.source=t,this.context=e;for(let r=0,n=o.length;r<n;++r)o[r].bind(t,e)}}unbind(){if(this.source===null)return;let t=this.behaviors,e=this.source;for(let o=0,r=t.length;o<r;++o)t[o].unbind(e);this.source=null}static disposeContiguousBatch(t){if(t.length!==0){Ge.setStartBefore(t[0].firstChild),Ge.setEndAfter(t[t.length-1].lastChild),Ge.deleteContents();for(let e=0,o=t.length;e<o;++e){let r=t[e],n=r.behaviors,s=r.source;for(let a=0,c=n.length;a<c;++a)n[a].unbind(s)}}}};var me=class{constructor(t,e){this.behaviorCount=0,this.hasHostBehaviors=!1,this.fragment=null,this.targetOffset=0,this.viewBehaviorFactories=null,this.hostBehaviorFactories=null,this.html=t,this.directives=e}create(t){if(this.fragment===null){let d,u=this.html;if(typeof u=="string"){d=document.createElement("template"),d.innerHTML=m.createHTML(u);let A=d.content.firstElementChild;A!==null&&A.tagName==="TEMPLATE"&&(d=A)}else d=u;let v=oo(d,this.directives);this.fragment=v.fragment,this.viewBehaviorFactories=v.viewBehaviorFactories,this.hostBehaviorFactories=v.hostBehaviorFactories,this.targetOffset=v.targetOffset,this.behaviorCount=this.viewBehaviorFactories.length+this.hostBehaviorFactories.length,this.hasHostBehaviors=this.hostBehaviorFactories.length>0}let e=this.fragment.cloneNode(!0),o=this.viewBehaviorFactories,r=new Array(this.behaviorCount),n=m.createTemplateWalker(e),s=0,a=this.targetOffset,c=n.nextNode();for(let d=o.length;s<d;++s){let u=o[s],v=u.targetIndex;for(;c!==null;)if(a===v){r[s]=u.createBehavior(c);break}else c=n.nextNode(),a++}if(this.hasHostBehaviors){let d=this.hostBehaviorFactories;for(let u=0,v=d.length;u<v;++u,++s)r[s]=d[u].createBehavior(t)}return new fe(e,r)}render(t,e,o){typeof e=="string"&&(e=document.getElementById(e)),o===void 0&&(o=e);let r=this.create(o);return r.bind(t,lt),r.appendTo(e),r}},Lr=/([ \x09\x0a\x0c\x0d])([^\0-\x1F\x7F-\x9F "'>=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/;function C(i,...t){let e=[],o="";for(let r=0,n=i.length-1;r<n;++r){let s=i[r],a=t[r];if(o+=s,a instanceof me){let c=a;a=()=>c}if(typeof a=="function"&&(a=new wt(a)),a instanceof Lt){let c=Lr.exec(s);c!==null&&(a.targetName=c[2])}a instanceof Rt?(o+=a.createPlaceholder(e.length),e.push(a)):o+=a}return o+=i[i.length-1],new me(o,e)}var S=class{constructor(){this.targets=new WeakSet}addStylesTo(t){this.targets.add(t)}removeStylesFrom(t){this.targets.delete(t)}isAttachedTo(t){return this.targets.has(t)}withBehaviors(...t){return this.behaviors=this.behaviors===null?t:this.behaviors.concat(t),this}};S.create=(()=>{if(m.supportsAdoptedStyleSheets){let i=new Map;return t=>new Qe(t,i)}return i=>new Xe(i)})();function Ye(i){return i.map(t=>t instanceof S?Ye(t.styles):[t]).reduce((t,e)=>t.concat(e),[])}function ro(i){return i.map(t=>t instanceof S?t.behaviors:null).reduce((t,e)=>e===null?t:(t===null&&(t=[]),t.concat(e)),null)}var no=(i,t)=>{i.adoptedStyleSheets=[...i.adoptedStyleSheets,...t]},so=(i,t)=>{i.adoptedStyleSheets=i.adoptedStyleSheets.filter(e=>t.indexOf(e)===-1)};if(m.supportsAdoptedStyleSheets)try{document.adoptedStyleSheets.push(),document.adoptedStyleSheets.splice(),no=(i,t)=>{i.adoptedStyleSheets.push(...t)},so=(i,t)=>{for(let e of t){let o=i.adoptedStyleSheets.indexOf(e);o!==-1&&i.adoptedStyleSheets.splice(o,1)}}}catch{}var Qe=class extends S{constructor(t,e){super(),this.styles=t,this.styleSheetCache=e,this._styleSheets=void 0,this.behaviors=ro(t)}get styleSheets(){if(this._styleSheets===void 0){let t=this.styles,e=this.styleSheetCache;this._styleSheets=Ye(t).map(o=>{if(o instanceof CSSStyleSheet)return o;let r=e.get(o);return r===void 0&&(r=new CSSStyleSheet,r.replaceSync(o),e.set(o,r)),r})}return this._styleSheets}addStylesTo(t){no(t,this.styleSheets),super.addStylesTo(t)}removeStylesFrom(t){so(t,this.styleSheets),super.removeStylesFrom(t)}},_r=0;function Vr(){return`fast-style-class-${++_r}`}var Xe=class extends S{constructor(t){super(),this.styles=t,this.behaviors=null,this.behaviors=ro(t),this.styleSheets=Ye(t),this.styleClass=Vr()}addStylesTo(t){let e=this.styleSheets,o=this.styleClass;t=this.normalizeTarget(t);for(let r=0;r<e.length;r++){let n=document.createElement("style");n.innerHTML=e[r],n.className=o,t.append(n)}super.addStylesTo(t)}removeStylesFrom(t){t=this.normalizeTarget(t);let e=t.querySelectorAll(`.${this.styleClass}`);for(let o=0,r=e.length;o<r;++o)t.removeChild(e[o]);super.removeStylesFrom(t)}isAttachedTo(t){return super.isAttachedTo(this.normalizeTarget(t))}normalizeTarget(t){return t===document?document.body:t}};var Jt=Object.freeze({locate:ue()}),Je={toView(i){return i?"true":"false"},fromView(i){return!(i==null||i==="false"||i===!1||i===0)}},Vt={toView(i){if(i==null)return null;let t=i*1;return isNaN(t)?null:t.toString()},fromView(i){if(i==null)return null;let t=i*1;return isNaN(t)?null:t}},kt=class{constructor(t,e,o=e.toLowerCase(),r="reflect",n){this.guards=new Set,this.Owner=t,this.name=e,this.attribute=o,this.mode=r,this.converter=n,this.fieldName=`_${e}`,this.callbackName=`${e}Changed`,this.hasCallback=this.callbackName in t.prototype,r==="boolean"&&n===void 0&&(this.converter=Je)}setValue(t,e){let o=t[this.fieldName],r=this.converter;r!==void 0&&(e=r.fromView(e)),o!==e&&(t[this.fieldName]=e,this.tryReflectToAttribute(t),this.hasCallback&&t[this.callbackName](o,e),t.$fastController.notify(this.name))}getValue(t){return b.track(t,this.name),t[this.fieldName]}onAttributeChangedCallback(t,e){this.guards.has(t)||(this.guards.add(t),this.setValue(t,e),this.guards.delete(t))}tryReflectToAttribute(t){let e=this.mode,o=this.guards;o.has(t)||e==="fromView"||m.queueUpdate(()=>{o.add(t);let r=t[this.fieldName];switch(e){case"reflect":let n=this.converter;m.setAttribute(t,this.attribute,n!==void 0?n.toView(r):r);break;case"boolean":m.setBooleanAttribute(t,this.attribute,r);break}o.delete(t)})}static collect(t,...e){let o=[];e.push(Jt.locate(t));for(let r=0,n=e.length;r<n;++r){let s=e[r];if(s!==void 0)for(let a=0,c=s.length;a<c;++a){let d=s[a];typeof d=="string"?o.push(new kt(t,d)):o.push(new kt(t,d.property,d.attribute,d.mode,d.converter))}}return o}};function h(i,t){let e;function o(r,n){arguments.length>1&&(e.property=n),Jt.locate(r.constructor).push(e)}if(arguments.length>1){e={},o(i,t);return}return e=i===void 0?{}:i,o}var ao={mode:"open"},lo={},Ze=xt.getById(4,()=>{let i=new Map;return Object.freeze({register(t){return i.has(t.type)?!1:(i.set(t.type,t),!0)},getByType(t){return i.get(t)}})}),K=class{constructor(t,e=t.definition){typeof e=="string"&&(e={name:e}),this.type=t,this.name=e.name,this.template=e.template;let o=kt.collect(t,e.attributes),r=new Array(o.length),n={},s={};for(let a=0,c=o.length;a<c;++a){let d=o[a];r[a]=d.attribute,n[d.name]=d,s[d.attribute]=d}this.attributes=o,this.observedAttributes=r,this.propertyLookup=n,this.attributeLookup=s,this.shadowOptions=e.shadowOptions===void 0?ao:e.shadowOptions===null?void 0:Object.assign(Object.assign({},ao),e.shadowOptions),this.elementOptions=e.elementOptions===void 0?lo:Object.assign(Object.assign({},lo),e.elementOptions),this.styles=e.styles===void 0?void 0:Array.isArray(e.styles)?S.create(e.styles):e.styles instanceof S?e.styles:S.create([e.styles])}get isDefined(){return!!Ze.getByType(this.type)}define(t=customElements){let e=this.type;if(Ze.register(this)){let o=this.attributes,r=e.prototype;for(let n=0,s=o.length;n<s;++n)b.defineProperty(r,o[n]);Reflect.defineProperty(e,"observedAttributes",{value:this.observedAttributes,enumerable:!0})}return t.get(this.name)||t.define(this.name,e,this.elementOptions),this}};K.forType=Ze.getByType;var co=new WeakMap,Hr={bubbles:!0,composed:!0,cancelable:!0};function Ke(i){return i.shadowRoot||co.get(i)||null}var Ht=class extends Dt{constructor(t,e){super(t),this.boundObservables=null,this.behaviors=null,this.needsInitialization=!0,this._template=null,this._styles=null,this._isConnected=!1,this.$fastController=this,this.view=null,this.element=t,this.definition=e;let o=e.shadowOptions;if(o!==void 0){let n=t.attachShadow(o);o.mode==="closed"&&co.set(t,n)}let r=b.getAccessors(t);if(r.length>0){let n=this.boundObservables=Object.create(null);for(let s=0,a=r.length;s<a;++s){let c=r[s].name,d=t[c];d!==void 0&&(delete t[c],n[c]=d)}}}get isConnected(){return b.track(this,"isConnected"),this._isConnected}setIsConnected(t){this._isConnected=t,b.notify(this,"isConnected")}get template(){return this._template}set template(t){this._template!==t&&(this._template=t,this.needsInitialization||this.renderTemplate(t))}get styles(){return this._styles}set styles(t){this._styles!==t&&(this._styles!==null&&this.removeStyles(this._styles),this._styles=t,!this.needsInitialization&&t!==null&&this.addStyles(t))}addStyles(t){let e=Ke(this.element)||this.element.getRootNode();if(t instanceof HTMLStyleElement)e.append(t);else if(!t.isAttachedTo(e)){let o=t.behaviors;t.addStylesTo(e),o!==null&&this.addBehaviors(o)}}removeStyles(t){let e=Ke(this.element)||this.element.getRootNode();if(t instanceof HTMLStyleElement)e.removeChild(t);else if(t.isAttachedTo(e)){let o=t.behaviors;t.removeStylesFrom(e),o!==null&&this.removeBehaviors(o)}}addBehaviors(t){let e=this.behaviors||(this.behaviors=new Map),o=t.length,r=[];for(let n=0;n<o;++n){let s=t[n];e.has(s)?e.set(s,e.get(s)+1):(e.set(s,1),r.push(s))}if(this._isConnected){let n=this.element;for(let s=0;s<r.length;++s)r[s].bind(n,lt)}}removeBehaviors(t,e=!1){let o=this.behaviors;if(o===null)return;let r=t.length,n=[];for(let s=0;s<r;++s){let a=t[s];if(o.has(a)){let c=o.get(a)-1;c===0||e?o.delete(a)&&n.push(a):o.set(a,c)}}if(this._isConnected){let s=this.element;for(let a=0;a<n.length;++a)n[a].unbind(s)}}onConnectedCallback(){if(this._isConnected)return;let t=this.element;this.needsInitialization?this.finishInitialization():this.view!==null&&this.view.bind(t,lt);let e=this.behaviors;if(e!==null)for(let[o]of e)o.bind(t,lt);this.setIsConnected(!0)}onDisconnectedCallback(){if(!this._isConnected)return;this.setIsConnected(!1);let t=this.view;t!==null&&t.unbind();let e=this.behaviors;if(e!==null){let o=this.element;for(let[r]of e)r.unbind(o)}}onAttributeChangedCallback(t,e,o){let r=this.definition.attributeLookup[t];r!==void 0&&r.onAttributeChangedCallback(this.element,o)}emit(t,e,o){return this._isConnected?this.element.dispatchEvent(new CustomEvent(t,Object.assign(Object.assign({detail:e},Hr),o))):!1}finishInitialization(){let t=this.element,e=this.boundObservables;if(e!==null){let r=Object.keys(e);for(let n=0,s=r.length;n<s;++n){let a=r[n];t[a]=e[a]}this.boundObservables=null}let o=this.definition;this._template===null&&(this.element.resolveTemplate?this._template=this.element.resolveTemplate():o.template&&(this._template=o.template||null)),this._template!==null&&this.renderTemplate(this._template),this._styles===null&&(this.element.resolveStyles?this._styles=this.element.resolveStyles():o.styles&&(this._styles=o.styles||null)),this._styles!==null&&this.addStyles(this._styles),this.needsInitialization=!1}renderTemplate(t){let e=this.element,o=Ke(e)||e;this.view!==null?(this.view.dispose(),this.view=null):this.needsInitialization||m.removeChildNodes(o),t&&(this.view=t.render(e,o,e))}static forCustomElement(t){let e=t.$fastController;if(e!==void 0)return e;let o=K.forType(t.constructor);if(o===void 0)throw new Error("Missing FASTElement definition.");return t.$fastController=new Ht(t,o)}};function ho(i){return class extends i{constructor(){super(),Ht.forCustomElement(this)}$emit(t,e,o){return this.$fastController.emit(t,e,o)}connectedCallback(){this.$fastController.onConnectedCallback()}disconnectedCallback(){this.$fastController.onDisconnectedCallback()}attributeChangedCallback(t,e,o){this.$fastController.onAttributeChangedCallback(t,e,o)}}}var ct=Object.assign(ho(HTMLElement),{from(i){return ho(i)},define(i,t){return new K(i,t).define().type}});var Ct=class{createCSS(){return""}createBehavior(){}};function Nr(i,t){let e=[],o="",r=[];for(let n=0,s=i.length-1;n<s;++n){o+=i[n];let a=t[n];if(a instanceof Ct){let c=a.createBehavior();a=a.createCSS(),c&&r.push(c)}a instanceof S||a instanceof CSSStyleSheet?(o.trim()!==""&&(e.push(o),o=""),e.push(a)):o+=a}return o+=i[i.length-1],o.trim()!==""&&e.push(o),{styles:e,behaviors:r}}function I(i,...t){let{styles:e,behaviors:o}=Nr(i,t),r=S.create(e);return o.length&&r.withBehaviors(...o),r}var ti=class{constructor(t,e){this.target=t,this.propertyName=e}bind(t){t[this.propertyName]=this.target}unbind(){}};function P(i){return new _t("fast-ref",ti,i)}var ei=i=>typeof i=="function";var zr=()=>null;function uo(i){return i===void 0?zr:ei(i)?i:()=>i}function be(i,t,e){let o=ei(i)?i:()=>i,r=uo(t),n=uo(e);return(s,a)=>o(s,a)?r(s,a):n(s,a)}var ge=class{constructor(t,e){this.target=t,this.options=e,this.source=null}bind(t){let e=this.options.property;this.shouldUpdate=b.getAccessors(t).some(o=>o.name===e),this.source=t,this.updateTarget(this.computeNodes()),this.shouldUpdate&&this.observe()}unbind(){this.updateTarget(st),this.source=null,this.shouldUpdate&&this.disconnect()}handleEvent(){this.updateTarget(this.computeNodes())}computeNodes(){let t=this.getNodes();return this.options.filter!==void 0&&(t=t.filter(this.options.filter)),t}updateTarget(t){this.source[this.options.property]=t}};var ii=class extends ge{constructor(t,e){super(t,e)}observe(){this.target.addEventListener("slotchange",this)}disconnect(){this.target.removeEventListener("slotchange",this)}getNodes(){return this.target.assignedNodes(this.options)}};function j(i){return typeof i=="string"&&(i={property:i}),new _t("fast-slotted",ii,i)}var U=class{handleStartContentChange(){this.startContainer.classList.toggle("start",this.start.assignedNodes().length>0)}handleEndContentChange(){this.endContainer.classList.toggle("end",this.end.assignedNodes().length>0)}},tt=(i,t)=>C`
1
+ function ze(i){return i.type==="int"?{type:"int",value:$r("",i.value)}:i}function $r(i,t){return typeof t=="bigint"?`jsonbigint ${t}n`:t}function Ji(i,t){if(typeof t=="string"){let e=t.match(/^jsonbigint\x01\x02 (\d+)n$/);if(e)return BigInt(e[1])}return t}var rt=function(){if(typeof globalThis<"u")return globalThis;if(typeof global<"u")return global;if(typeof self<"u")return self;if(typeof window<"u")return window;try{return new Function("return this")()}catch{return{}}}();rt.trustedTypes===void 0&&(rt.trustedTypes={createPolicy:(i,t)=>t});var Zi={configurable:!1,enumerable:!1,writable:!1};rt.FAST===void 0&&Reflect.defineProperty(rt,"FAST",Object.assign({value:Object.create(null)},Zi));var xt=rt.FAST;if(xt.getById===void 0){let i=Object.create(null);Reflect.defineProperty(xt,"getById",Object.assign({value(t,e){let o=i[t];return o===void 0&&(o=e?i[t]=e():null),o}},Zi))}var st=Object.freeze([]);function ue(){let i=new WeakMap;return function(t){let e=i.get(t);if(e===void 0){let o=Reflect.getPrototypeOf(t);for(;e===void 0&&o!==null;)e=i.get(o),o=Reflect.getPrototypeOf(o);e=e===void 0?[]:e.slice(0),i.set(t,e)}return e}}var je=rt.FAST.getById(1,()=>{let i=[],t=[];function e(){if(t.length)throw t.shift()}function o(s){try{s.call()}catch(a){t.push(a),setTimeout(e,0)}}function r(){let a=0;for(;a<i.length;)if(o(i[a]),a++,a>1024){for(let c=0,d=i.length-a;c<d;c++)i[c]=i[c+a];i.length-=a,a=0}i.length=0}function n(s){i.length<1&&rt.requestAnimationFrame(r),i.push(s)}return Object.freeze({enqueue:n,process:r})}),Ki=rt.trustedTypes.createPolicy("fast-html",{createHTML:i=>i}),qe=Ki,Xt=`fast-${Math.random().toString(36).substring(2,8)}`,Ue=`${Xt}{`,pe=`}${Xt}`,m=Object.freeze({supportsAdoptedStyleSheets:Array.isArray(document.adoptedStyleSheets)&&"replace"in CSSStyleSheet.prototype,setHTMLPolicy(i){if(qe!==Ki)throw new Error("The HTML policy can only be set once.");qe=i},createHTML(i){return qe.createHTML(i)},isMarker(i){return i&&i.nodeType===8&&i.data.startsWith(Xt)},extractDirectiveIndexFromMarker(i){return parseInt(i.data.replace(`${Xt}:`,""))},createInterpolationPlaceholder(i){return`${Ue}${i}${pe}`},createCustomAttributePlaceholder(i,t){return`${i}="${this.createInterpolationPlaceholder(t)}"`},createBlockPlaceholder(i){return`<!--${Xt}:${i}-->`},queueUpdate:je.enqueue,processUpdates:je.process,nextUpdate(){return new Promise(je.enqueue)},setAttribute(i,t,e){e==null?i.removeAttribute(t):i.setAttribute(t,e)},setBooleanAttribute(i,t,e){e?i.setAttribute(t,""):i.removeAttribute(t)},removeChildNodes(i){for(let t=i.firstChild;t!==null;t=i.firstChild)i.removeChild(t)},createTemplateWalker(i){return document.createTreeWalker(i,133,null,!1)}});var Bt=class{constructor(t,e){this.sub1=void 0,this.sub2=void 0,this.spillover=void 0,this.source=t,this.sub1=e}has(t){return this.spillover===void 0?this.sub1===t||this.sub2===t:this.spillover.indexOf(t)!==-1}subscribe(t){let e=this.spillover;if(e===void 0){if(this.has(t))return;if(this.sub1===void 0){this.sub1=t;return}if(this.sub2===void 0){this.sub2=t;return}this.spillover=[this.sub1,this.sub2,t],this.sub1=void 0,this.sub2=void 0}else e.indexOf(t)===-1&&e.push(t)}unsubscribe(t){let e=this.spillover;if(e===void 0)this.sub1===t?this.sub1=void 0:this.sub2===t&&(this.sub2=void 0);else{let o=e.indexOf(t);o!==-1&&e.splice(o,1)}}notify(t){let e=this.spillover,o=this.source;if(e===void 0){let r=this.sub1,n=this.sub2;r!==void 0&&r.handleChange(o,t),n!==void 0&&n.handleChange(o,t)}else for(let r=0,n=e.length;r<n;++r)e[r].handleChange(o,t)}},Dt=class{constructor(t){this.subscribers={},this.sourceSubscribers=null,this.source=t}notify(t){var e;let o=this.subscribers[t];o!==void 0&&o.notify(t),(e=this.sourceSubscribers)===null||e===void 0||e.notify(t)}subscribe(t,e){var o;if(e){let r=this.subscribers[e];r===void 0&&(this.subscribers[e]=r=new Bt(this.source)),r.subscribe(t)}else this.sourceSubscribers=(o=this.sourceSubscribers)!==null&&o!==void 0?o:new Bt(this.source),this.sourceSubscribers.subscribe(t)}unsubscribe(t,e){var o;if(e){let r=this.subscribers[e];r!==void 0&&r.unsubscribe(t)}else(o=this.sourceSubscribers)===null||o===void 0||o.unsubscribe(t)}};var b=xt.getById(2,()=>{let i=/(:|&&|\|\||if)/,t=new WeakMap,e=m.queueUpdate,o,r=d=>{throw new Error("Must call enableArrayObservation before observing arrays.")};function n(d){let u=d.$fastController||t.get(d);return u===void 0&&(Array.isArray(d)?u=r(d):t.set(d,u=new Dt(d))),u}let s=ue();class a{constructor(u){this.name=u,this.field=`_${u}`,this.callback=`${u}Changed`}getValue(u){return o!==void 0&&o.watch(u,this.name),u[this.field]}setValue(u,v){let A=this.field,q=u[A];if(q!==v){u[A]=v;let F=u[this.callback];typeof F=="function"&&F.call(u,q,v),n(u).notify(this.name)}}}class c extends Bt{constructor(u,v,A=!1){super(u,v),this.binding=u,this.isVolatileBinding=A,this.needsRefresh=!0,this.needsQueue=!0,this.first=this,this.last=null,this.propertySource=void 0,this.propertyName=void 0,this.notifier=void 0,this.next=void 0}observe(u,v){this.needsRefresh&&this.last!==null&&this.disconnect();let A=o;o=this.needsRefresh?this:void 0,this.needsRefresh=this.isVolatileBinding;let q=this.binding(u,v);return o=A,q}disconnect(){if(this.last!==null){let u=this.first;for(;u!==void 0;)u.notifier.unsubscribe(this,u.propertyName),u=u.next;this.last=null,this.needsRefresh=this.needsQueue=!0}}watch(u,v){let A=this.last,q=n(u),F=A===null?this.first:{};if(F.propertySource=u,F.propertyName=v,F.notifier=q,q.subscribe(this,v),A!==null){if(!this.needsRefresh){let X;o=void 0,X=A.propertySource[A.propertyName],o=this,u===X&&(this.needsRefresh=!0)}A.next=F}this.last=F}handleChange(){this.needsQueue&&(this.needsQueue=!1,e(this))}call(){this.last!==null&&(this.needsQueue=!0,this.notify(this))}records(){let u=this.first;return{next:()=>{let v=u;return v===void 0?{value:void 0,done:!0}:(u=u.next,{value:v,done:!1})},[Symbol.iterator]:function(){return this}}}}return Object.freeze({setArrayObserverFactory(d){r=d},getNotifier:n,track(d,u){o!==void 0&&o.watch(d,u)},trackVolatile(){o!==void 0&&(o.needsRefresh=!0)},notify(d,u){n(d).notify(u)},defineProperty(d,u){typeof u=="string"&&(u=new a(u)),s(d).push(u),Reflect.defineProperty(d,u.name,{enumerable:!0,get:function(){return u.getValue(this)},set:function(v){u.setValue(this,v)}})},getAccessors:s,binding(d,u,v=this.isVolatileBinding(d)){return new c(d,u,v)},isVolatileBinding(d){return i.test(d.toString())}})});function f(i,t){b.defineProperty(i,t)}function eo(i,t,e){return Object.assign({},e,{get:function(){return b.trackVolatile(),e.get.apply(this)}})}var to=xt.getById(3,()=>{let i=null;return{get(){return i},set(t){i=t}}}),at=class{constructor(){this.index=0,this.length=0,this.parent=null,this.parentContext=null}get event(){return to.get()}get isEven(){return this.index%2===0}get isOdd(){return this.index%2!==0}get isFirst(){return this.index===0}get isInMiddle(){return!this.isFirst&&!this.isLast}get isLast(){return this.index===this.length-1}static setEvent(t){to.set(t)}};b.defineProperty(at.prototype,"index");b.defineProperty(at.prototype,"length");var lt=Object.seal(new at);var Rt=class{constructor(){this.targetIndex=0}},Lt=class extends Rt{constructor(){super(...arguments),this.createPlaceholder=m.createInterpolationPlaceholder}},_t=class extends Rt{constructor(t,e,o){super(),this.name=t,this.behavior=e,this.options=o}createPlaceholder(t){return m.createCustomAttributePlaceholder(this.name,t)}createBehavior(t){return new this.behavior(t,this.options)}};function Sr(i,t){this.source=i,this.context=t,this.bindingObserver===null&&(this.bindingObserver=b.binding(this.binding,this,this.isBindingVolatile)),this.updateTarget(this.bindingObserver.observe(i,t))}function Ir(i,t){this.source=i,this.context=t,this.target.addEventListener(this.targetName,this)}function Tr(){this.bindingObserver.disconnect(),this.source=null,this.context=null}function Or(){this.bindingObserver.disconnect(),this.source=null,this.context=null;let i=this.target.$fastView;i!==void 0&&i.isComposed&&(i.unbind(),i.needsBindOnly=!0)}function Ar(){this.target.removeEventListener(this.targetName,this),this.source=null,this.context=null}function Er(i){m.setAttribute(this.target,this.targetName,i)}function Pr(i){m.setBooleanAttribute(this.target,this.targetName,i)}function Fr(i){if(i==null&&(i=""),i.create){this.target.textContent="";let t=this.target.$fastView;t===void 0?t=i.create():this.target.$fastTemplate!==i&&(t.isComposed&&(t.remove(),t.unbind()),t=i.create()),t.isComposed?t.needsBindOnly&&(t.needsBindOnly=!1,t.bind(this.source,this.context)):(t.isComposed=!0,t.bind(this.source,this.context),t.insertBefore(this.target),this.target.$fastView=t,this.target.$fastTemplate=i)}else{let t=this.target.$fastView;t!==void 0&&t.isComposed&&(t.isComposed=!1,t.remove(),t.needsBindOnly?t.needsBindOnly=!1:t.unbind()),this.target.textContent=i}}function Mr(i){this.target[this.targetName]=i}function Br(i){let t=this.classVersions||Object.create(null),e=this.target,o=this.version||0;if(i!=null&&i.length){let r=i.split(/\s+/);for(let n=0,s=r.length;n<s;++n){let a=r[n];a!==""&&(t[a]=o,e.classList.add(a))}}if(this.classVersions=t,this.version=o+1,o!==0){o-=1;for(let r in t)t[r]===o&&e.classList.remove(r)}}var wt=class extends Lt{constructor(t){super(),this.binding=t,this.bind=Sr,this.unbind=Tr,this.updateTarget=Er,this.isBindingVolatile=b.isVolatileBinding(this.binding)}get targetName(){return this.originalTargetName}set targetName(t){if(this.originalTargetName=t,t!==void 0)switch(t[0]){case":":if(this.cleanedTargetName=t.substr(1),this.updateTarget=Mr,this.cleanedTargetName==="innerHTML"){let e=this.binding;this.binding=(o,r)=>m.createHTML(e(o,r))}break;case"?":this.cleanedTargetName=t.substr(1),this.updateTarget=Pr;break;case"@":this.cleanedTargetName=t.substr(1),this.bind=Ir,this.unbind=Ar;break;default:this.cleanedTargetName=t,t==="class"&&(this.updateTarget=Br);break}}targetAtContent(){this.updateTarget=Fr,this.unbind=Or}createBehavior(t){return new We(t,this.binding,this.isBindingVolatile,this.bind,this.unbind,this.updateTarget,this.cleanedTargetName)}},We=class{constructor(t,e,o,r,n,s,a){this.source=null,this.context=null,this.bindingObserver=null,this.target=t,this.binding=e,this.isBindingVolatile=o,this.bind=r,this.unbind=n,this.updateTarget=s,this.targetName=a}handleChange(){this.updateTarget(this.bindingObserver.observe(this.source,this.context))}handleEvent(t){at.setEvent(t);let e=this.binding(this.source,this.context);at.setEvent(null),e!==!0&&t.preventDefault()}};var Ge=null,Yt=class{addFactory(t){t.targetIndex=this.targetIndex,this.behaviorFactories.push(t)}captureContentBinding(t){t.targetAtContent(),this.addFactory(t)}reset(){this.behaviorFactories=[],this.targetIndex=-1}release(){Ge=this}static borrow(t){let e=Ge||new Yt;return e.directives=t,e.reset(),Ge=null,e}};function Dr(i){if(i.length===1)return i[0];let t,e=i.length,o=i.map(s=>typeof s=="string"?()=>s:(t=s.targetName||t,s.binding)),r=(s,a)=>{let c="";for(let d=0;d<e;++d)c+=o[d](s,a);return c},n=new wt(r);return n.targetName=t,n}var Rr=pe.length;function oo(i,t){let e=t.split(Ue);if(e.length===1)return null;let o=[];for(let r=0,n=e.length;r<n;++r){let s=e[r],a=s.indexOf(pe),c;if(a===-1)c=s;else{let d=parseInt(s.substring(0,a));o.push(i.directives[d]),c=s.substring(a+Rr)}c!==""&&o.push(c)}return o}function io(i,t,e=!1){let o=t.attributes;for(let r=0,n=o.length;r<n;++r){let s=o[r],a=s.value,c=oo(i,a),d=null;c===null?e&&(d=new wt(()=>a),d.targetName=s.name):d=Dr(c),d!==null&&(t.removeAttributeNode(s),r--,n--,i.addFactory(d))}}function Lr(i,t,e){let o=oo(i,t.textContent);if(o!==null){let r=t;for(let n=0,s=o.length;n<s;++n){let a=o[n],c=n===0?t:r.parentNode.insertBefore(document.createTextNode(""),r.nextSibling);typeof a=="string"?c.textContent=a:(c.textContent=" ",i.captureContentBinding(a)),r=c,i.targetIndex++,c!==t&&e.nextNode()}i.targetIndex--}}function ro(i,t){let e=i.content;document.adoptNode(e);let o=Yt.borrow(t);io(o,i,!0);let r=o.behaviorFactories;o.reset();let n=m.createTemplateWalker(e),s;for(;s=n.nextNode();)switch(o.targetIndex++,s.nodeType){case 1:io(o,s);break;case 3:Lr(o,s,n);break;case 8:m.isMarker(s)&&o.addFactory(t[m.extractDirectiveIndexFromMarker(s)])}let a=0;(m.isMarker(e.firstChild)||e.childNodes.length===1&&t.length)&&(e.insertBefore(document.createComment(""),e.firstChild),a=-1);let c=o.behaviorFactories;return o.release(),{fragment:e,viewBehaviorFactories:c,hostBehaviorFactories:r,targetOffset:a}}var Qe=document.createRange(),fe=class{constructor(t,e){this.fragment=t,this.behaviors=e,this.source=null,this.context=null,this.firstChild=t.firstChild,this.lastChild=t.lastChild}appendTo(t){t.appendChild(this.fragment)}insertBefore(t){if(this.fragment.hasChildNodes())t.parentNode.insertBefore(this.fragment,t);else{let e=this.lastChild;if(t.previousSibling===e)return;let o=t.parentNode,r=this.firstChild,n;for(;r!==e;)n=r.nextSibling,o.insertBefore(r,t),r=n;o.insertBefore(e,t)}}remove(){let t=this.fragment,e=this.lastChild,o=this.firstChild,r;for(;o!==e;)r=o.nextSibling,t.appendChild(o),o=r;t.appendChild(e)}dispose(){let t=this.firstChild.parentNode,e=this.lastChild,o=this.firstChild,r;for(;o!==e;)r=o.nextSibling,t.removeChild(o),o=r;t.removeChild(e);let n=this.behaviors,s=this.source;for(let a=0,c=n.length;a<c;++a)n[a].unbind(s)}bind(t,e){let o=this.behaviors;if(this.source!==t)if(this.source!==null){let r=this.source;this.source=t,this.context=e;for(let n=0,s=o.length;n<s;++n){let a=o[n];a.unbind(r),a.bind(t,e)}}else{this.source=t,this.context=e;for(let r=0,n=o.length;r<n;++r)o[r].bind(t,e)}}unbind(){if(this.source===null)return;let t=this.behaviors,e=this.source;for(let o=0,r=t.length;o<r;++o)t[o].unbind(e);this.source=null}static disposeContiguousBatch(t){if(t.length!==0){Qe.setStartBefore(t[0].firstChild),Qe.setEndAfter(t[t.length-1].lastChild),Qe.deleteContents();for(let e=0,o=t.length;e<o;++e){let r=t[e],n=r.behaviors,s=r.source;for(let a=0,c=n.length;a<c;++a)n[a].unbind(s)}}}};var me=class{constructor(t,e){this.behaviorCount=0,this.hasHostBehaviors=!1,this.fragment=null,this.targetOffset=0,this.viewBehaviorFactories=null,this.hostBehaviorFactories=null,this.html=t,this.directives=e}create(t){if(this.fragment===null){let d,u=this.html;if(typeof u=="string"){d=document.createElement("template"),d.innerHTML=m.createHTML(u);let A=d.content.firstElementChild;A!==null&&A.tagName==="TEMPLATE"&&(d=A)}else d=u;let v=ro(d,this.directives);this.fragment=v.fragment,this.viewBehaviorFactories=v.viewBehaviorFactories,this.hostBehaviorFactories=v.hostBehaviorFactories,this.targetOffset=v.targetOffset,this.behaviorCount=this.viewBehaviorFactories.length+this.hostBehaviorFactories.length,this.hasHostBehaviors=this.hostBehaviorFactories.length>0}let e=this.fragment.cloneNode(!0),o=this.viewBehaviorFactories,r=new Array(this.behaviorCount),n=m.createTemplateWalker(e),s=0,a=this.targetOffset,c=n.nextNode();for(let d=o.length;s<d;++s){let u=o[s],v=u.targetIndex;for(;c!==null;)if(a===v){r[s]=u.createBehavior(c);break}else c=n.nextNode(),a++}if(this.hasHostBehaviors){let d=this.hostBehaviorFactories;for(let u=0,v=d.length;u<v;++u,++s)r[s]=d[u].createBehavior(t)}return new fe(e,r)}render(t,e,o){typeof e=="string"&&(e=document.getElementById(e)),o===void 0&&(o=e);let r=this.create(o);return r.bind(t,lt),r.appendTo(e),r}},_r=/([ \x09\x0a\x0c\x0d])([^\0-\x1F\x7F-\x9F "'>=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/;function C(i,...t){let e=[],o="";for(let r=0,n=i.length-1;r<n;++r){let s=i[r],a=t[r];if(o+=s,a instanceof me){let c=a;a=()=>c}if(typeof a=="function"&&(a=new wt(a)),a instanceof Lt){let c=_r.exec(s);c!==null&&(a.targetName=c[2])}a instanceof Rt?(o+=a.createPlaceholder(e.length),e.push(a)):o+=a}return o+=i[i.length-1],new me(o,e)}var S=class{constructor(){this.targets=new WeakSet}addStylesTo(t){this.targets.add(t)}removeStylesFrom(t){this.targets.delete(t)}isAttachedTo(t){return this.targets.has(t)}withBehaviors(...t){return this.behaviors=this.behaviors===null?t:this.behaviors.concat(t),this}};S.create=(()=>{if(m.supportsAdoptedStyleSheets){let i=new Map;return t=>new Xe(t,i)}return i=>new Ye(i)})();function Je(i){return i.map(t=>t instanceof S?Je(t.styles):[t]).reduce((t,e)=>t.concat(e),[])}function no(i){return i.map(t=>t instanceof S?t.behaviors:null).reduce((t,e)=>e===null?t:(t===null&&(t=[]),t.concat(e)),null)}var so=(i,t)=>{i.adoptedStyleSheets=[...i.adoptedStyleSheets,...t]},ao=(i,t)=>{i.adoptedStyleSheets=i.adoptedStyleSheets.filter(e=>t.indexOf(e)===-1)};if(m.supportsAdoptedStyleSheets)try{document.adoptedStyleSheets.push(),document.adoptedStyleSheets.splice(),so=(i,t)=>{i.adoptedStyleSheets.push(...t)},ao=(i,t)=>{for(let e of t){let o=i.adoptedStyleSheets.indexOf(e);o!==-1&&i.adoptedStyleSheets.splice(o,1)}}}catch{}var Xe=class extends S{constructor(t,e){super(),this.styles=t,this.styleSheetCache=e,this._styleSheets=void 0,this.behaviors=no(t)}get styleSheets(){if(this._styleSheets===void 0){let t=this.styles,e=this.styleSheetCache;this._styleSheets=Je(t).map(o=>{if(o instanceof CSSStyleSheet)return o;let r=e.get(o);return r===void 0&&(r=new CSSStyleSheet,r.replaceSync(o),e.set(o,r)),r})}return this._styleSheets}addStylesTo(t){so(t,this.styleSheets),super.addStylesTo(t)}removeStylesFrom(t){ao(t,this.styleSheets),super.removeStylesFrom(t)}},Vr=0;function Hr(){return`fast-style-class-${++Vr}`}var Ye=class extends S{constructor(t){super(),this.styles=t,this.behaviors=null,this.behaviors=no(t),this.styleSheets=Je(t),this.styleClass=Hr()}addStylesTo(t){let e=this.styleSheets,o=this.styleClass;t=this.normalizeTarget(t);for(let r=0;r<e.length;r++){let n=document.createElement("style");n.innerHTML=e[r],n.className=o,t.append(n)}super.addStylesTo(t)}removeStylesFrom(t){t=this.normalizeTarget(t);let e=t.querySelectorAll(`.${this.styleClass}`);for(let o=0,r=e.length;o<r;++o)t.removeChild(e[o]);super.removeStylesFrom(t)}isAttachedTo(t){return super.isAttachedTo(this.normalizeTarget(t))}normalizeTarget(t){return t===document?document.body:t}};var Jt=Object.freeze({locate:ue()}),Ze={toView(i){return i?"true":"false"},fromView(i){return!(i==null||i==="false"||i===!1||i===0)}},Vt={toView(i){if(i==null)return null;let t=i*1;return isNaN(t)?null:t.toString()},fromView(i){if(i==null)return null;let t=i*1;return isNaN(t)?null:t}},kt=class{constructor(t,e,o=e.toLowerCase(),r="reflect",n){this.guards=new Set,this.Owner=t,this.name=e,this.attribute=o,this.mode=r,this.converter=n,this.fieldName=`_${e}`,this.callbackName=`${e}Changed`,this.hasCallback=this.callbackName in t.prototype,r==="boolean"&&n===void 0&&(this.converter=Ze)}setValue(t,e){let o=t[this.fieldName],r=this.converter;r!==void 0&&(e=r.fromView(e)),o!==e&&(t[this.fieldName]=e,this.tryReflectToAttribute(t),this.hasCallback&&t[this.callbackName](o,e),t.$fastController.notify(this.name))}getValue(t){return b.track(t,this.name),t[this.fieldName]}onAttributeChangedCallback(t,e){this.guards.has(t)||(this.guards.add(t),this.setValue(t,e),this.guards.delete(t))}tryReflectToAttribute(t){let e=this.mode,o=this.guards;o.has(t)||e==="fromView"||m.queueUpdate(()=>{o.add(t);let r=t[this.fieldName];switch(e){case"reflect":let n=this.converter;m.setAttribute(t,this.attribute,n!==void 0?n.toView(r):r);break;case"boolean":m.setBooleanAttribute(t,this.attribute,r);break}o.delete(t)})}static collect(t,...e){let o=[];e.push(Jt.locate(t));for(let r=0,n=e.length;r<n;++r){let s=e[r];if(s!==void 0)for(let a=0,c=s.length;a<c;++a){let d=s[a];typeof d=="string"?o.push(new kt(t,d)):o.push(new kt(t,d.property,d.attribute,d.mode,d.converter))}}return o}};function h(i,t){let e;function o(r,n){arguments.length>1&&(e.property=n),Jt.locate(r.constructor).push(e)}if(arguments.length>1){e={},o(i,t);return}return e=i===void 0?{}:i,o}var lo={mode:"open"},co={},Ke=xt.getById(4,()=>{let i=new Map;return Object.freeze({register(t){return i.has(t.type)?!1:(i.set(t.type,t),!0)},getByType(t){return i.get(t)}})}),Z=class{constructor(t,e=t.definition){typeof e=="string"&&(e={name:e}),this.type=t,this.name=e.name,this.template=e.template;let o=kt.collect(t,e.attributes),r=new Array(o.length),n={},s={};for(let a=0,c=o.length;a<c;++a){let d=o[a];r[a]=d.attribute,n[d.name]=d,s[d.attribute]=d}this.attributes=o,this.observedAttributes=r,this.propertyLookup=n,this.attributeLookup=s,this.shadowOptions=e.shadowOptions===void 0?lo:e.shadowOptions===null?void 0:Object.assign(Object.assign({},lo),e.shadowOptions),this.elementOptions=e.elementOptions===void 0?co:Object.assign(Object.assign({},co),e.elementOptions),this.styles=e.styles===void 0?void 0:Array.isArray(e.styles)?S.create(e.styles):e.styles instanceof S?e.styles:S.create([e.styles])}get isDefined(){return!!Ke.getByType(this.type)}define(t=customElements){let e=this.type;if(Ke.register(this)){let o=this.attributes,r=e.prototype;for(let n=0,s=o.length;n<s;++n)b.defineProperty(r,o[n]);Reflect.defineProperty(e,"observedAttributes",{value:this.observedAttributes,enumerable:!0})}return t.get(this.name)||t.define(this.name,e,this.elementOptions),this}};Z.forType=Ke.getByType;var ho=new WeakMap,Nr={bubbles:!0,composed:!0,cancelable:!0};function ti(i){return i.shadowRoot||ho.get(i)||null}var Ht=class extends Dt{constructor(t,e){super(t),this.boundObservables=null,this.behaviors=null,this.needsInitialization=!0,this._template=null,this._styles=null,this._isConnected=!1,this.$fastController=this,this.view=null,this.element=t,this.definition=e;let o=e.shadowOptions;if(o!==void 0){let n=t.attachShadow(o);o.mode==="closed"&&ho.set(t,n)}let r=b.getAccessors(t);if(r.length>0){let n=this.boundObservables=Object.create(null);for(let s=0,a=r.length;s<a;++s){let c=r[s].name,d=t[c];d!==void 0&&(delete t[c],n[c]=d)}}}get isConnected(){return b.track(this,"isConnected"),this._isConnected}setIsConnected(t){this._isConnected=t,b.notify(this,"isConnected")}get template(){return this._template}set template(t){this._template!==t&&(this._template=t,this.needsInitialization||this.renderTemplate(t))}get styles(){return this._styles}set styles(t){this._styles!==t&&(this._styles!==null&&this.removeStyles(this._styles),this._styles=t,!this.needsInitialization&&t!==null&&this.addStyles(t))}addStyles(t){let e=ti(this.element)||this.element.getRootNode();if(t instanceof HTMLStyleElement)e.append(t);else if(!t.isAttachedTo(e)){let o=t.behaviors;t.addStylesTo(e),o!==null&&this.addBehaviors(o)}}removeStyles(t){let e=ti(this.element)||this.element.getRootNode();if(t instanceof HTMLStyleElement)e.removeChild(t);else if(t.isAttachedTo(e)){let o=t.behaviors;t.removeStylesFrom(e),o!==null&&this.removeBehaviors(o)}}addBehaviors(t){let e=this.behaviors||(this.behaviors=new Map),o=t.length,r=[];for(let n=0;n<o;++n){let s=t[n];e.has(s)?e.set(s,e.get(s)+1):(e.set(s,1),r.push(s))}if(this._isConnected){let n=this.element;for(let s=0;s<r.length;++s)r[s].bind(n,lt)}}removeBehaviors(t,e=!1){let o=this.behaviors;if(o===null)return;let r=t.length,n=[];for(let s=0;s<r;++s){let a=t[s];if(o.has(a)){let c=o.get(a)-1;c===0||e?o.delete(a)&&n.push(a):o.set(a,c)}}if(this._isConnected){let s=this.element;for(let a=0;a<n.length;++a)n[a].unbind(s)}}onConnectedCallback(){if(this._isConnected)return;let t=this.element;this.needsInitialization?this.finishInitialization():this.view!==null&&this.view.bind(t,lt);let e=this.behaviors;if(e!==null)for(let[o]of e)o.bind(t,lt);this.setIsConnected(!0)}onDisconnectedCallback(){if(!this._isConnected)return;this.setIsConnected(!1);let t=this.view;t!==null&&t.unbind();let e=this.behaviors;if(e!==null){let o=this.element;for(let[r]of e)r.unbind(o)}}onAttributeChangedCallback(t,e,o){let r=this.definition.attributeLookup[t];r!==void 0&&r.onAttributeChangedCallback(this.element,o)}emit(t,e,o){return this._isConnected?this.element.dispatchEvent(new CustomEvent(t,Object.assign(Object.assign({detail:e},Nr),o))):!1}finishInitialization(){let t=this.element,e=this.boundObservables;if(e!==null){let r=Object.keys(e);for(let n=0,s=r.length;n<s;++n){let a=r[n];t[a]=e[a]}this.boundObservables=null}let o=this.definition;this._template===null&&(this.element.resolveTemplate?this._template=this.element.resolveTemplate():o.template&&(this._template=o.template||null)),this._template!==null&&this.renderTemplate(this._template),this._styles===null&&(this.element.resolveStyles?this._styles=this.element.resolveStyles():o.styles&&(this._styles=o.styles||null)),this._styles!==null&&this.addStyles(this._styles),this.needsInitialization=!1}renderTemplate(t){let e=this.element,o=ti(e)||e;this.view!==null?(this.view.dispose(),this.view=null):this.needsInitialization||m.removeChildNodes(o),t&&(this.view=t.render(e,o,e))}static forCustomElement(t){let e=t.$fastController;if(e!==void 0)return e;let o=Z.forType(t.constructor);if(o===void 0)throw new Error("Missing FASTElement definition.");return t.$fastController=new Ht(t,o)}};function uo(i){return class extends i{constructor(){super(),Ht.forCustomElement(this)}$emit(t,e,o){return this.$fastController.emit(t,e,o)}connectedCallback(){this.$fastController.onConnectedCallback()}disconnectedCallback(){this.$fastController.onDisconnectedCallback()}attributeChangedCallback(t,e,o){this.$fastController.onAttributeChangedCallback(t,e,o)}}}var ct=Object.assign(uo(HTMLElement),{from(i){return uo(i)},define(i,t){return new Z(i,t).define().type}});var Ct=class{createCSS(){return""}createBehavior(){}};function zr(i,t){let e=[],o="",r=[];for(let n=0,s=i.length-1;n<s;++n){o+=i[n];let a=t[n];if(a instanceof Ct){let c=a.createBehavior();a=a.createCSS(),c&&r.push(c)}a instanceof S||a instanceof CSSStyleSheet?(o.trim()!==""&&(e.push(o),o=""),e.push(a)):o+=a}return o+=i[i.length-1],o.trim()!==""&&e.push(o),{styles:e,behaviors:r}}function I(i,...t){let{styles:e,behaviors:o}=zr(i,t),r=S.create(e);return o.length&&r.withBehaviors(...o),r}var ei=class{constructor(t,e){this.target=t,this.propertyName=e}bind(t){t[this.propertyName]=this.target}unbind(){}};function P(i){return new _t("fast-ref",ei,i)}var ii=i=>typeof i=="function";var jr=()=>null;function po(i){return i===void 0?jr:ii(i)?i:()=>i}function be(i,t,e){let o=ii(i)?i:()=>i,r=po(t),n=po(e);return(s,a)=>o(s,a)?r(s,a):n(s,a)}var ge=class{constructor(t,e){this.target=t,this.options=e,this.source=null}bind(t){let e=this.options.property;this.shouldUpdate=b.getAccessors(t).some(o=>o.name===e),this.source=t,this.updateTarget(this.computeNodes()),this.shouldUpdate&&this.observe()}unbind(){this.updateTarget(st),this.source=null,this.shouldUpdate&&this.disconnect()}handleEvent(){this.updateTarget(this.computeNodes())}computeNodes(){let t=this.getNodes();return this.options.filter!==void 0&&(t=t.filter(this.options.filter)),t}updateTarget(t){this.source[this.options.property]=t}};var oi=class extends ge{constructor(t,e){super(t,e)}observe(){this.target.addEventListener("slotchange",this)}disconnect(){this.target.removeEventListener("slotchange",this)}getNodes(){return this.target.assignedNodes(this.options)}};function j(i){return typeof i=="string"&&(i={property:i}),new _t("fast-slotted",oi,i)}var U=class{handleStartContentChange(){this.startContainer.classList.toggle("start",this.start.assignedNodes().length>0)}handleEndContentChange(){this.endContainer.classList.toggle("end",this.end.assignedNodes().length>0)}},K=(i,t)=>C`
2
2
  <span
3
3
  part="end"
4
4
  ${P("endContainer")}
@@ -8,7 +8,7 @@ function Ne(i){return i.type==="int"?{type:"int",value:Cr("",i.value)}:i}functio
8
8
  ${t.end||""}
9
9
  </slot>
10
10
  </span>
11
- `,et=(i,t)=>C`
11
+ `,tt=(i,t)=>C`
12
12
  <span
13
13
  part="start"
14
14
  ${P("startContainer")}
@@ -22,7 +22,7 @@ function Ne(i){return i.type==="int"?{type:"int",value:Cr("",i.value)}:i}functio
22
22
  ${t.start||""}
23
23
  </slot>
24
24
  </span>
25
- `,Gs=C`
25
+ `,Qs=C`
26
26
  <span part="end" ${P("endContainer")}>
27
27
  <slot
28
28
  name="end"
@@ -30,7 +30,7 @@ function Ne(i){return i.type==="int"?{type:"int",value:Cr("",i.value)}:i}functio
30
30
  @slotchange="${i=>i.handleEndContentChange()}"
31
31
  ></slot>
32
32
  </span>
33
- `,Qs=C`
33
+ `,Xs=C`
34
34
  <span part="start" ${P("startContainer")}>
35
35
  <slot
36
36
  name="start"
@@ -38,7 +38,7 @@ function Ne(i){return i.type==="int"?{type:"int",value:Cr("",i.value)}:i}functio
38
38
  @slotchange="${i=>i.handleStartContentChange()}"
39
39
  ></slot>
40
40
  </span>
41
- `;function l(i,t,e,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,t,e,o);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n}var oi=new Map;"metadata"in Reflect||(Reflect.metadata=function(i,t){return function(e){Reflect.defineMetadata(i,t,e)}},Reflect.defineMetadata=function(i,t,e){let o=oi.get(e);o===void 0&&oi.set(e,o=new Map),o.set(i,t)},Reflect.getOwnMetadata=function(i,t){let e=oi.get(t);if(e!==void 0)return e.get(i)});var ai=class{constructor(t,e){this.container=t,this.key=e}instance(t){return this.registerResolver(0,t)}singleton(t){return this.registerResolver(1,t)}transient(t){return this.registerResolver(2,t)}callback(t){return this.registerResolver(3,t)}cachedCallback(t){return this.registerResolver(3,Co(t))}aliasTo(t){return this.registerResolver(5,t)}registerResolver(t,e){let{container:o,key:r}=this;return this.container=this.key=void 0,o.registerResolver(r,new N(r,t,e))}};function Zt(i){let t=i.slice(),e=Object.keys(i),o=e.length,r;for(let n=0;n<o;++n)r=e[n],$o(r)||(t[r]=i[r]);return t}var jr=Object.freeze({none(i){throw Error(`${i.toString()} not registered, did you forget to add @singleton()?`)},singleton(i){return new N(i,1,i)},transient(i){return new N(i,2,i)}}),ri=Object.freeze({default:Object.freeze({parentLocator:()=>null,responsibleForOwnerRequests:!1,defaultResolver:jr.singleton})}),po=new Map;function fo(i){return t=>Reflect.getOwnMetadata(i,t)}var mo=null,x=Object.freeze({createContainer(i){return new $t(null,Object.assign({},ri.default,i))},findResponsibleContainer(i){let t=i.$$container$$;return t&&t.responsibleForOwnerRequests?t:x.findParentContainer(i)},findParentContainer(i){let t=new CustomEvent(ko,{bubbles:!0,composed:!0,cancelable:!0,detail:{container:void 0}});return i.dispatchEvent(t),t.detail.container||x.getOrCreateDOMContainer()},getOrCreateDOMContainer(i,t){return i?i.$$container$$||new $t(i,Object.assign({},ri.default,t,{parentLocator:x.findParentContainer})):mo||(mo=new $t(null,Object.assign({},ri.default,t,{parentLocator:()=>null})))},getDesignParamtypes:fo("design:paramtypes"),getAnnotationParamtypes:fo("di:paramtypes"),getOrCreateAnnotationParamTypes(i){let t=this.getAnnotationParamtypes(i);return t===void 0&&Reflect.defineMetadata("di:paramtypes",t=[],i),t},getDependencies(i){let t=po.get(i);if(t===void 0){let e=i.inject;if(e===void 0){let o=x.getDesignParamtypes(i),r=x.getAnnotationParamtypes(i);if(o===void 0)if(r===void 0){let n=Object.getPrototypeOf(i);typeof n=="function"&&n!==Function.prototype?t=Zt(x.getDependencies(n)):t=[]}else t=Zt(r);else if(r===void 0)t=Zt(o);else{t=Zt(o);let n=r.length,s;for(let d=0;d<n;++d)s=r[d],s!==void 0&&(t[d]=s);let a=Object.keys(r);n=a.length;let c;for(let d=0;d<n;++d)c=a[d],$o(c)||(t[c]=r[c])}}else t=Zt(e);po.set(i,t)}return t},defineProperty(i,t,e,o=!1){let r=`$di_${t}`;Reflect.defineProperty(i,t,{get:function(){let n=this[r];if(n===void 0&&(n=(this instanceof HTMLElement?x.findResponsibleContainer(this):x.getOrCreateDOMContainer()).get(e),this[r]=n,o&&this instanceof ct)){let a=this.$fastController,c=()=>{let u=x.findResponsibleContainer(this).get(e),v=this[r];u!==v&&(this[r]=n,a.notify(t))};a.subscribe({handleChange:c},"isConnected")}return n}})},createInterface(i,t){let e=typeof i=="function"?i:t,o=typeof i=="string"?i:i&&"friendlyName"in i&&i.friendlyName||yo,r=typeof i=="string"?!1:i&&"respectConnection"in i&&i.respectConnection||!1,n=function(s,a,c){if(s==null||new.target!==void 0)throw new Error(`No registration for interface: '${n.friendlyName}'`);if(a)x.defineProperty(s,a,n,r);else{let d=x.getOrCreateAnnotationParamTypes(s);d[c]=n}};return n.$isInterface=!0,n.friendlyName=o??"(anonymous)",e!=null&&(n.register=function(s,a){return e(new ai(s,a??n))}),n.toString=function(){return`InterfaceSymbol<${n.friendlyName}>`},n},inject(...i){return function(t,e,o){if(typeof o=="number"){let r=x.getOrCreateAnnotationParamTypes(t),n=i[0];n!==void 0&&(r[o]=n)}else if(e)x.defineProperty(t,e,i[0]);else{let r=o?x.getOrCreateAnnotationParamTypes(o.value):x.getOrCreateAnnotationParamTypes(t),n;for(let s=0;s<i.length;++s)n=i[s],n!==void 0&&(r[s]=n)}}},transient(i){return i.register=function(e){return St.transient(i,i).register(e)},i.registerInRequestor=!1,i},singleton(i,t=Ur){return i.register=function(o){return St.singleton(i,i).register(o)},i.registerInRequestor=t.scoped,i}}),qr=x.createInterface("Container");function we(i){return function(t){let e=function(o,r,n){x.inject(e)(o,r,n)};return e.$isResolver=!0,e.resolve=function(o,r){return i(t,o,r)},e}}var Zs=x.inject;var Ur={scoped:!1};function Wr(i){return function(t,e){e=!!e;let o=function(r,n,s){x.inject(o)(r,n,s)};return o.$isResolver=!0,o.resolve=function(r,n){return i(t,r,n,e)},o}}var Ks=Wr((i,t,e,o)=>e.getAll(i,o)),ta=we((i,t,e)=>()=>e.get(i)),ea=we((i,t,e)=>{if(e.has(i,!0))return e.get(i)});function ci(i,t,e){x.inject(ci)(i,t,e)}ci.$isResolver=!0;ci.resolve=()=>{};var ia=we((i,t,e)=>{let o=wo(i,t),r=new N(i,0,o);return e.registerResolver(i,r),o}),oa=we((i,t,e)=>wo(i,t));function wo(i,t){return t.getFactory(i).construct(t)}var N=class{constructor(t,e,o){this.key=t,this.strategy=e,this.state=o,this.resolving=!1}get $isResolver(){return!0}register(t){return t.registerResolver(this.key,this)}resolve(t,e){switch(this.strategy){case 0:return this.state;case 1:{if(this.resolving)throw new Error(`Cyclic dependency found: ${this.state.name}`);return this.resolving=!0,this.state=t.getFactory(this.state).construct(e),this.strategy=0,this.resolving=!1,this.state}case 2:{let o=t.getFactory(this.state);if(o===null)throw new Error(`Resolver for ${String(this.key)} returned a null factory`);return o.construct(e)}case 3:return this.state(t,e,this);case 4:return this.state[0].resolve(t,e);case 5:return e.get(this.state);default:throw new Error(`Invalid resolver strategy specified: ${this.strategy}.`)}}getFactory(t){var e,o,r;switch(this.strategy){case 1:case 2:return t.getFactory(this.state);case 5:return(r=(o=(e=t.getResolver(this.state))===null||e===void 0?void 0:e.getFactory)===null||o===void 0?void 0:o.call(e,t))!==null&&r!==void 0?r:null;default:return null}}};function bo(i){return this.get(i)}function Gr(i,t){return t(i)}var li=class{constructor(t,e){this.Type=t,this.dependencies=e,this.transformers=null}construct(t,e){let o;return e===void 0?o=new this.Type(...this.dependencies.map(bo,t)):o=new this.Type(...this.dependencies.map(bo,t),...e),this.transformers==null?o:this.transformers.reduce(Gr,o)}registerTransformer(t){(this.transformers||(this.transformers=[])).push(t)}},Qr={$isResolver:!0,resolve(i,t){return t}};function xe(i){return typeof i.register=="function"}function Xr(i){return xe(i)&&typeof i.registerInRequestor=="boolean"}function go(i){return Xr(i)&&i.registerInRequestor}function Yr(i){return i.prototype!==void 0}var Jr=new Set(["Array","ArrayBuffer","Boolean","DataView","Date","Error","EvalError","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Number","Object","Promise","RangeError","ReferenceError","RegExp","Set","SharedArrayBuffer","String","SyntaxError","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","URIError","WeakMap","WeakSet"]),ko="__DI_LOCATE_PARENT__",ni=new Map,$t=class{constructor(t,e){this.owner=t,this.config=e,this._parent=void 0,this.registerDepth=0,this.context=null,t!==null&&(t.$$container$$=this),this.resolvers=new Map,this.resolvers.set(qr,Qr),t instanceof Node&&t.addEventListener(ko,o=>{o.composedPath()[0]!==this.owner&&(o.detail.container=this,o.stopImmediatePropagation())})}get parent(){return this._parent===void 0&&(this._parent=this.config.parentLocator(this.owner)),this._parent}get depth(){return this.parent===null?0:this.parent.depth+1}get responsibleForOwnerRequests(){return this.config.responsibleForOwnerRequests}registerWithContext(t,...e){return this.context=t,this.register(...e),this.context=null,this}register(...t){if(++this.registerDepth===100)throw new Error("Unable to autoregister dependency");let e,o,r,n,s,a=this.context;for(let c=0,d=t.length;c<d;++c)if(e=t[c],!!xo(e))if(xe(e))e.register(this,a);else if(Yr(e))St.singleton(e,e).register(this);else for(o=Object.keys(e),n=0,s=o.length;n<s;++n)r=e[o[n]],xo(r)&&(xe(r)?r.register(this,a):this.register(r));return--this.registerDepth,this}registerResolver(t,e){ve(t);let o=this.resolvers,r=o.get(t);return r==null?o.set(t,e):r instanceof N&&r.strategy===4?r.state.push(e):o.set(t,new N(t,4,[r,e])),e}registerTransformer(t,e){let o=this.getResolver(t);if(o==null)return!1;if(o.getFactory){let r=o.getFactory(this);return r==null?!1:(r.registerTransformer(e),!0)}return!1}getResolver(t,e=!0){if(ve(t),t.resolve!==void 0)return t;let o=this,r;for(;o!=null;)if(r=o.resolvers.get(t),r==null){if(o.parent==null){let n=go(t)?this:o;return e?this.jitRegister(t,n):null}o=o.parent}else return r;return null}has(t,e=!1){return this.resolvers.has(t)?!0:e&&this.parent!=null?this.parent.has(t,!0):!1}get(t){if(ve(t),t.$isResolver)return t.resolve(this,this);let e=this,o;for(;e!=null;)if(o=e.resolvers.get(t),o==null){if(e.parent==null){let r=go(t)?this:e;return o=this.jitRegister(t,r),o.resolve(e,this)}e=e.parent}else return o.resolve(e,this);throw new Error(`Unable to resolve key: ${t}`)}getAll(t,e=!1){ve(t);let o=this,r=o,n;if(e){let s=st;for(;r!=null;)n=r.resolvers.get(t),n!=null&&(s=s.concat(vo(n,r,o))),r=r.parent;return s}else for(;r!=null;)if(n=r.resolvers.get(t),n==null){if(r=r.parent,r==null)return st}else return vo(n,r,o);return st}getFactory(t){let e=ni.get(t);if(e===void 0){if(Zr(t))throw new Error(`${t.name} is a native function and therefore cannot be safely constructed by DI. If this is intentional, please use a callback or cachedCallback resolver.`);ni.set(t,e=new li(t,x.getDependencies(t)))}return e}registerFactory(t,e){ni.set(t,e)}createChild(t){return new $t(null,Object.assign({},this.config,t,{parentLocator:()=>this}))}jitRegister(t,e){if(typeof t!="function")throw new Error(`Attempted to jitRegister something that is not a constructor: '${t}'. Did you forget to register this dependency?`);if(Jr.has(t.name))throw new Error(`Attempted to jitRegister an intrinsic type: ${t.name}. Did you forget to add @inject(Key)`);if(xe(t)){let o=t.register(e);if(!(o instanceof Object)||o.resolve==null){let r=e.resolvers.get(t);if(r!=null)return r;throw new Error("A valid resolver was not returned from the static register method")}return o}else{if(t.$isInterface)throw new Error(`Attempted to jitRegister an interface: ${t.friendlyName}`);{let o=this.config.defaultResolver(t,e);return e.resolvers.set(t,o),o}}}},si=new WeakMap;function Co(i){return function(t,e,o){if(si.has(o))return si.get(o);let r=i(t,e,o);return si.set(o,r),r}}var St=Object.freeze({instance(i,t){return new N(i,0,t)},singleton(i,t){return new N(i,1,t)},transient(i,t){return new N(i,2,t)},callback(i,t){return new N(i,3,t)},cachedCallback(i,t){return new N(i,3,Co(t))},aliasTo(i,t){return new N(t,5,i)}});function ve(i){if(i==null)throw new Error("key/value cannot be null or undefined. Are you trying to inject/register something that doesn't exist with DI?")}function vo(i,t,e){if(i instanceof N&&i.strategy===4){let o=i.state,r=o.length,n=new Array(r);for(;r--;)n[r]=o[r].resolve(t,e);return n}return[i.resolve(t,e)]}var yo="(anonymous)";function xo(i){return typeof i=="object"&&i!==null||typeof i=="function"}var Zr=function(){let i=new WeakMap,t=!1,e="",o=0;return function(r){return t=i.get(r),t===void 0&&(e=r.toString(),o=e.length,t=o>=29&&o<=100&&e.charCodeAt(o-1)===125&&e.charCodeAt(o-2)<=32&&e.charCodeAt(o-3)===93&&e.charCodeAt(o-4)===101&&e.charCodeAt(o-5)===100&&e.charCodeAt(o-6)===111&&e.charCodeAt(o-7)===99&&e.charCodeAt(o-8)===32&&e.charCodeAt(o-9)===101&&e.charCodeAt(o-10)===118&&e.charCodeAt(o-11)===105&&e.charCodeAt(o-12)===116&&e.charCodeAt(o-13)===97&&e.charCodeAt(o-14)===110&&e.charCodeAt(o-15)===88,i.set(r,t)),t}}(),ye={};function $o(i){switch(typeof i){case"number":return i>=0&&(i|0)===i;case"string":{let t=ye[i];if(t!==void 0)return t;let e=i.length;if(e===0)return ye[i]=!1;let o=0;for(let r=0;r<e;++r)if(o=i.charCodeAt(r),r===0&&o===48&&e>1||o<48||o>57)return ye[i]=!1;return ye[i]=!0}default:return!1}}function So(i){return`${i.toLowerCase()}:presentation`}var ke=new Map,$e=Object.freeze({define(i,t,e){let o=So(i);ke.get(o)===void 0?ke.set(o,t):ke.set(o,!1),e.register(St.instance(o,t))},forTag(i,t){let e=So(i),o=ke.get(e);return o===!1?x.findResponsibleContainer(t).get(e):o||null}}),Ce=class{constructor(t,e){this.template=t||null,this.styles=e===void 0?null:Array.isArray(e)?S.create(e):e instanceof S?e:S.create([e])}applyTo(t){let e=t.$fastController;e.template===null&&(e.template=this.template),e.styles===null&&(e.styles=this.styles)}};var k=class extends ct{constructor(){super(...arguments),this._presentation=void 0}get $presentation(){return this._presentation===void 0&&(this._presentation=$e.forTag(this.tagName,this)),this._presentation}templateChanged(){this.template!==void 0&&(this.$fastController.template=this.template)}stylesChanged(){this.styles!==void 0&&(this.$fastController.styles=this.styles)}connectedCallback(){this.$presentation!==null&&this.$presentation.applyTo(this),super.connectedCallback()}static compose(t){return(e={})=>new di(this===k?class extends k{}:this,t,e)}};l([f],k.prototype,"template",void 0);l([f],k.prototype,"styles",void 0);function Kt(i,t,e){return typeof i=="function"?i(t,e):i}var di=class{constructor(t,e,o){this.type=t,this.elementDefinition=e,this.overrideDefinition=o,this.definition=Object.assign(Object.assign({},this.elementDefinition),this.overrideDefinition)}register(t,e){let o=this.definition,r=this.overrideDefinition,s=`${o.prefix||e.elementPrefix}-${o.baseName}`;e.tryDefineElement({name:s,type:this.type,baseClass:this.elementDefinition.baseClass,callback:a=>{let c=new Ce(Kt(o.template,a,o),Kt(o.styles,a,o));a.definePresentation(c);let d=Kt(o.shadowOptions,a,o);a.shadowRootMode&&(d?r.shadowOptions||(d.mode=a.shadowRootMode):d!==null&&(d={mode:a.shadowRootMode})),a.defineElement({elementOptions:Kt(o.elementOptions,a,o),shadowOptions:d,attributes:Kt(o.attributes,a,o)})}})}};function M(i,...t){let e=Jt.locate(i);t.forEach(o=>{Object.getOwnPropertyNames(o.prototype).forEach(n=>{n!=="constructor"&&Object.defineProperty(i.prototype,n,Object.getOwnPropertyDescriptor(o.prototype,n))}),Jt.locate(o).forEach(n=>e.push(n))})}function Io(i,t){let e=i.length;for(;e--;)if(t(i[e],e,i))return e;return-1}function To(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Oo(...i){return i.every(t=>t instanceof HTMLElement)}function Kr(){let i=document.querySelector('meta[property="csp-nonce"]');return i?i.getAttribute("content"):null}var It;function Ao(){if(typeof It=="boolean")return It;if(!To())return It=!1,It;let i=document.createElement("style"),t=Kr();t!==null&&i.setAttribute("nonce",t),document.head.appendChild(i);try{i.sheet.insertRule("foo:focus-visible {color:inherit}",0),It=!0}catch{It=!1}finally{document.head.removeChild(i)}return It}var Eo;(function(i){i[i.alt=18]="alt",i[i.arrowDown=40]="arrowDown",i[i.arrowLeft=37]="arrowLeft",i[i.arrowRight=39]="arrowRight",i[i.arrowUp=38]="arrowUp",i[i.back=8]="back",i[i.backSlash=220]="backSlash",i[i.break=19]="break",i[i.capsLock=20]="capsLock",i[i.closeBracket=221]="closeBracket",i[i.colon=186]="colon",i[i.colon2=59]="colon2",i[i.comma=188]="comma",i[i.ctrl=17]="ctrl",i[i.delete=46]="delete",i[i.end=35]="end",i[i.enter=13]="enter",i[i.equals=187]="equals",i[i.equals2=61]="equals2",i[i.equals3=107]="equals3",i[i.escape=27]="escape",i[i.forwardSlash=191]="forwardSlash",i[i.function1=112]="function1",i[i.function10=121]="function10",i[i.function11=122]="function11",i[i.function12=123]="function12",i[i.function2=113]="function2",i[i.function3=114]="function3",i[i.function4=115]="function4",i[i.function5=116]="function5",i[i.function6=117]="function6",i[i.function7=118]="function7",i[i.function8=119]="function8",i[i.function9=120]="function9",i[i.home=36]="home",i[i.insert=45]="insert",i[i.menu=93]="menu",i[i.minus=189]="minus",i[i.minus2=109]="minus2",i[i.numLock=144]="numLock",i[i.numPad0=96]="numPad0",i[i.numPad1=97]="numPad1",i[i.numPad2=98]="numPad2",i[i.numPad3=99]="numPad3",i[i.numPad4=100]="numPad4",i[i.numPad5=101]="numPad5",i[i.numPad6=102]="numPad6",i[i.numPad7=103]="numPad7",i[i.numPad8=104]="numPad8",i[i.numPad9=105]="numPad9",i[i.numPadDivide=111]="numPadDivide",i[i.numPadDot=110]="numPadDot",i[i.numPadMinus=109]="numPadMinus",i[i.numPadMultiply=106]="numPadMultiply",i[i.numPadPlus=107]="numPadPlus",i[i.openBracket=219]="openBracket",i[i.pageDown=34]="pageDown",i[i.pageUp=33]="pageUp",i[i.period=190]="period",i[i.print=44]="print",i[i.quote=222]="quote",i[i.scrollLock=145]="scrollLock",i[i.shift=16]="shift",i[i.space=32]="space",i[i.tab=9]="tab",i[i.tilde=192]="tilde",i[i.windowsLeft=91]="windowsLeft",i[i.windowsOpera=219]="windowsOpera",i[i.windowsRight=92]="windowsRight"})(Eo||(Eo={}));var dt="ArrowDown",Po="ArrowLeft",Fo="ArrowRight",ht="ArrowUp",Nt="Enter",zt="Escape",ut="Home",pt="End";var ft=" ",jt="Tab";function Mo(i,t,e){return Math.min(Math.max(e,i),t)}function te(i,t,e=0){return[t,e]=[t,e].sort((o,r)=>o-r),t<=i&&i<e}var tn=0;function Tt(i=""){return`${i}${tn++}`}var y=class{};l([h({attribute:"aria-atomic"})],y.prototype,"ariaAtomic",void 0);l([h({attribute:"aria-busy"})],y.prototype,"ariaBusy",void 0);l([h({attribute:"aria-controls"})],y.prototype,"ariaControls",void 0);l([h({attribute:"aria-current"})],y.prototype,"ariaCurrent",void 0);l([h({attribute:"aria-describedby"})],y.prototype,"ariaDescribedby",void 0);l([h({attribute:"aria-details"})],y.prototype,"ariaDetails",void 0);l([h({attribute:"aria-disabled"})],y.prototype,"ariaDisabled",void 0);l([h({attribute:"aria-errormessage"})],y.prototype,"ariaErrormessage",void 0);l([h({attribute:"aria-flowto"})],y.prototype,"ariaFlowto",void 0);l([h({attribute:"aria-haspopup"})],y.prototype,"ariaHaspopup",void 0);l([h({attribute:"aria-hidden"})],y.prototype,"ariaHidden",void 0);l([h({attribute:"aria-invalid"})],y.prototype,"ariaInvalid",void 0);l([h({attribute:"aria-keyshortcuts"})],y.prototype,"ariaKeyshortcuts",void 0);l([h({attribute:"aria-label"})],y.prototype,"ariaLabel",void 0);l([h({attribute:"aria-labelledby"})],y.prototype,"ariaLabelledby",void 0);l([h({attribute:"aria-live"})],y.prototype,"ariaLive",void 0);l([h({attribute:"aria-owns"})],y.prototype,"ariaOwns",void 0);l([h({attribute:"aria-relevant"})],y.prototype,"ariaRelevant",void 0);l([h({attribute:"aria-roledescription"})],y.prototype,"ariaRoledescription",void 0);var Bo=(i,t)=>C`
41
+ `;function l(i,t,e,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,t,e,o);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n}var ri=new Map;"metadata"in Reflect||(Reflect.metadata=function(i,t){return function(e){Reflect.defineMetadata(i,t,e)}},Reflect.defineMetadata=function(i,t,e){let o=ri.get(e);o===void 0&&ri.set(e,o=new Map),o.set(i,t)},Reflect.getOwnMetadata=function(i,t){let e=ri.get(t);if(e!==void 0)return e.get(i)});var li=class{constructor(t,e){this.container=t,this.key=e}instance(t){return this.registerResolver(0,t)}singleton(t){return this.registerResolver(1,t)}transient(t){return this.registerResolver(2,t)}callback(t){return this.registerResolver(3,t)}cachedCallback(t){return this.registerResolver(3,$o(t))}aliasTo(t){return this.registerResolver(5,t)}registerResolver(t,e){let{container:o,key:r}=this;return this.container=this.key=void 0,o.registerResolver(r,new N(r,t,e))}};function Zt(i){let t=i.slice(),e=Object.keys(i),o=e.length,r;for(let n=0;n<o;++n)r=e[n],So(r)||(t[r]=i[r]);return t}var qr=Object.freeze({none(i){throw Error(`${i.toString()} not registered, did you forget to add @singleton()?`)},singleton(i){return new N(i,1,i)},transient(i){return new N(i,2,i)}}),ni=Object.freeze({default:Object.freeze({parentLocator:()=>null,responsibleForOwnerRequests:!1,defaultResolver:qr.singleton})}),fo=new Map;function mo(i){return t=>Reflect.getOwnMetadata(i,t)}var bo=null,x=Object.freeze({createContainer(i){return new $t(null,Object.assign({},ni.default,i))},findResponsibleContainer(i){let t=i.$$container$$;return t&&t.responsibleForOwnerRequests?t:x.findParentContainer(i)},findParentContainer(i){let t=new CustomEvent(Co,{bubbles:!0,composed:!0,cancelable:!0,detail:{container:void 0}});return i.dispatchEvent(t),t.detail.container||x.getOrCreateDOMContainer()},getOrCreateDOMContainer(i,t){return i?i.$$container$$||new $t(i,Object.assign({},ni.default,t,{parentLocator:x.findParentContainer})):bo||(bo=new $t(null,Object.assign({},ni.default,t,{parentLocator:()=>null})))},getDesignParamtypes:mo("design:paramtypes"),getAnnotationParamtypes:mo("di:paramtypes"),getOrCreateAnnotationParamTypes(i){let t=this.getAnnotationParamtypes(i);return t===void 0&&Reflect.defineMetadata("di:paramtypes",t=[],i),t},getDependencies(i){let t=fo.get(i);if(t===void 0){let e=i.inject;if(e===void 0){let o=x.getDesignParamtypes(i),r=x.getAnnotationParamtypes(i);if(o===void 0)if(r===void 0){let n=Object.getPrototypeOf(i);typeof n=="function"&&n!==Function.prototype?t=Zt(x.getDependencies(n)):t=[]}else t=Zt(r);else if(r===void 0)t=Zt(o);else{t=Zt(o);let n=r.length,s;for(let d=0;d<n;++d)s=r[d],s!==void 0&&(t[d]=s);let a=Object.keys(r);n=a.length;let c;for(let d=0;d<n;++d)c=a[d],So(c)||(t[c]=r[c])}}else t=Zt(e);fo.set(i,t)}return t},defineProperty(i,t,e,o=!1){let r=`$di_${t}`;Reflect.defineProperty(i,t,{get:function(){let n=this[r];if(n===void 0&&(n=(this instanceof HTMLElement?x.findResponsibleContainer(this):x.getOrCreateDOMContainer()).get(e),this[r]=n,o&&this instanceof ct)){let a=this.$fastController,c=()=>{let u=x.findResponsibleContainer(this).get(e),v=this[r];u!==v&&(this[r]=n,a.notify(t))};a.subscribe({handleChange:c},"isConnected")}return n}})},createInterface(i,t){let e=typeof i=="function"?i:t,o=typeof i=="string"?i:i&&"friendlyName"in i&&i.friendlyName||xo,r=typeof i=="string"?!1:i&&"respectConnection"in i&&i.respectConnection||!1,n=function(s,a,c){if(s==null||new.target!==void 0)throw new Error(`No registration for interface: '${n.friendlyName}'`);if(a)x.defineProperty(s,a,n,r);else{let d=x.getOrCreateAnnotationParamTypes(s);d[c]=n}};return n.$isInterface=!0,n.friendlyName=o??"(anonymous)",e!=null&&(n.register=function(s,a){return e(new li(s,a??n))}),n.toString=function(){return`InterfaceSymbol<${n.friendlyName}>`},n},inject(...i){return function(t,e,o){if(typeof o=="number"){let r=x.getOrCreateAnnotationParamTypes(t),n=i[0];n!==void 0&&(r[o]=n)}else if(e)x.defineProperty(t,e,i[0]);else{let r=o?x.getOrCreateAnnotationParamTypes(o.value):x.getOrCreateAnnotationParamTypes(t),n;for(let s=0;s<i.length;++s)n=i[s],n!==void 0&&(r[s]=n)}}},transient(i){return i.register=function(e){return St.transient(i,i).register(e)},i.registerInRequestor=!1,i},singleton(i,t=Wr){return i.register=function(o){return St.singleton(i,i).register(o)},i.registerInRequestor=t.scoped,i}}),Ur=x.createInterface("Container");function we(i){return function(t){let e=function(o,r,n){x.inject(e)(o,r,n)};return e.$isResolver=!0,e.resolve=function(o,r){return i(t,o,r)},e}}var Ks=x.inject;var Wr={scoped:!1};function Gr(i){return function(t,e){e=!!e;let o=function(r,n,s){x.inject(o)(r,n,s)};return o.$isResolver=!0,o.resolve=function(r,n){return i(t,r,n,e)},o}}var ta=Gr((i,t,e,o)=>e.getAll(i,o)),ea=we((i,t,e)=>()=>e.get(i)),ia=we((i,t,e)=>{if(e.has(i,!0))return e.get(i)});function di(i,t,e){x.inject(di)(i,t,e)}di.$isResolver=!0;di.resolve=()=>{};var oa=we((i,t,e)=>{let o=ko(i,t),r=new N(i,0,o);return e.registerResolver(i,r),o}),ra=we((i,t,e)=>ko(i,t));function ko(i,t){return t.getFactory(i).construct(t)}var N=class{constructor(t,e,o){this.key=t,this.strategy=e,this.state=o,this.resolving=!1}get $isResolver(){return!0}register(t){return t.registerResolver(this.key,this)}resolve(t,e){switch(this.strategy){case 0:return this.state;case 1:{if(this.resolving)throw new Error(`Cyclic dependency found: ${this.state.name}`);return this.resolving=!0,this.state=t.getFactory(this.state).construct(e),this.strategy=0,this.resolving=!1,this.state}case 2:{let o=t.getFactory(this.state);if(o===null)throw new Error(`Resolver for ${String(this.key)} returned a null factory`);return o.construct(e)}case 3:return this.state(t,e,this);case 4:return this.state[0].resolve(t,e);case 5:return e.get(this.state);default:throw new Error(`Invalid resolver strategy specified: ${this.strategy}.`)}}getFactory(t){var e,o,r;switch(this.strategy){case 1:case 2:return t.getFactory(this.state);case 5:return(r=(o=(e=t.getResolver(this.state))===null||e===void 0?void 0:e.getFactory)===null||o===void 0?void 0:o.call(e,t))!==null&&r!==void 0?r:null;default:return null}}};function go(i){return this.get(i)}function Qr(i,t){return t(i)}var ci=class{constructor(t,e){this.Type=t,this.dependencies=e,this.transformers=null}construct(t,e){let o;return e===void 0?o=new this.Type(...this.dependencies.map(go,t)):o=new this.Type(...this.dependencies.map(go,t),...e),this.transformers==null?o:this.transformers.reduce(Qr,o)}registerTransformer(t){(this.transformers||(this.transformers=[])).push(t)}},Xr={$isResolver:!0,resolve(i,t){return t}};function xe(i){return typeof i.register=="function"}function Yr(i){return xe(i)&&typeof i.registerInRequestor=="boolean"}function vo(i){return Yr(i)&&i.registerInRequestor}function Jr(i){return i.prototype!==void 0}var Zr=new Set(["Array","ArrayBuffer","Boolean","DataView","Date","Error","EvalError","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Number","Object","Promise","RangeError","ReferenceError","RegExp","Set","SharedArrayBuffer","String","SyntaxError","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","URIError","WeakMap","WeakSet"]),Co="__DI_LOCATE_PARENT__",si=new Map,$t=class{constructor(t,e){this.owner=t,this.config=e,this._parent=void 0,this.registerDepth=0,this.context=null,t!==null&&(t.$$container$$=this),this.resolvers=new Map,this.resolvers.set(Ur,Xr),t instanceof Node&&t.addEventListener(Co,o=>{o.composedPath()[0]!==this.owner&&(o.detail.container=this,o.stopImmediatePropagation())})}get parent(){return this._parent===void 0&&(this._parent=this.config.parentLocator(this.owner)),this._parent}get depth(){return this.parent===null?0:this.parent.depth+1}get responsibleForOwnerRequests(){return this.config.responsibleForOwnerRequests}registerWithContext(t,...e){return this.context=t,this.register(...e),this.context=null,this}register(...t){if(++this.registerDepth===100)throw new Error("Unable to autoregister dependency");let e,o,r,n,s,a=this.context;for(let c=0,d=t.length;c<d;++c)if(e=t[c],!!wo(e))if(xe(e))e.register(this,a);else if(Jr(e))St.singleton(e,e).register(this);else for(o=Object.keys(e),n=0,s=o.length;n<s;++n)r=e[o[n]],wo(r)&&(xe(r)?r.register(this,a):this.register(r));return--this.registerDepth,this}registerResolver(t,e){ve(t);let o=this.resolvers,r=o.get(t);return r==null?o.set(t,e):r instanceof N&&r.strategy===4?r.state.push(e):o.set(t,new N(t,4,[r,e])),e}registerTransformer(t,e){let o=this.getResolver(t);if(o==null)return!1;if(o.getFactory){let r=o.getFactory(this);return r==null?!1:(r.registerTransformer(e),!0)}return!1}getResolver(t,e=!0){if(ve(t),t.resolve!==void 0)return t;let o=this,r;for(;o!=null;)if(r=o.resolvers.get(t),r==null){if(o.parent==null){let n=vo(t)?this:o;return e?this.jitRegister(t,n):null}o=o.parent}else return r;return null}has(t,e=!1){return this.resolvers.has(t)?!0:e&&this.parent!=null?this.parent.has(t,!0):!1}get(t){if(ve(t),t.$isResolver)return t.resolve(this,this);let e=this,o;for(;e!=null;)if(o=e.resolvers.get(t),o==null){if(e.parent==null){let r=vo(t)?this:e;return o=this.jitRegister(t,r),o.resolve(e,this)}e=e.parent}else return o.resolve(e,this);throw new Error(`Unable to resolve key: ${String(t)}`)}getAll(t,e=!1){ve(t);let o=this,r=o,n;if(e){let s=st;for(;r!=null;)n=r.resolvers.get(t),n!=null&&(s=s.concat(yo(n,r,o))),r=r.parent;return s}else for(;r!=null;)if(n=r.resolvers.get(t),n==null){if(r=r.parent,r==null)return st}else return yo(n,r,o);return st}getFactory(t){let e=si.get(t);if(e===void 0){if(Kr(t))throw new Error(`${t.name} is a native function and therefore cannot be safely constructed by DI. If this is intentional, please use a callback or cachedCallback resolver.`);si.set(t,e=new ci(t,x.getDependencies(t)))}return e}registerFactory(t,e){si.set(t,e)}createChild(t){return new $t(null,Object.assign({},this.config,t,{parentLocator:()=>this}))}jitRegister(t,e){if(typeof t!="function")throw new Error(`Attempted to jitRegister something that is not a constructor: '${t}'. Did you forget to register this dependency?`);if(Zr.has(t.name))throw new Error(`Attempted to jitRegister an intrinsic type: ${t.name}. Did you forget to add @inject(Key)`);if(xe(t)){let o=t.register(e);if(!(o instanceof Object)||o.resolve==null){let r=e.resolvers.get(t);if(r!=null)return r;throw new Error("A valid resolver was not returned from the static register method")}return o}else{if(t.$isInterface)throw new Error(`Attempted to jitRegister an interface: ${t.friendlyName}`);{let o=this.config.defaultResolver(t,e);return e.resolvers.set(t,o),o}}}},ai=new WeakMap;function $o(i){return function(t,e,o){if(ai.has(o))return ai.get(o);let r=i(t,e,o);return ai.set(o,r),r}}var St=Object.freeze({instance(i,t){return new N(i,0,t)},singleton(i,t){return new N(i,1,t)},transient(i,t){return new N(i,2,t)},callback(i,t){return new N(i,3,t)},cachedCallback(i,t){return new N(i,3,$o(t))},aliasTo(i,t){return new N(t,5,i)}});function ve(i){if(i==null)throw new Error("key/value cannot be null or undefined. Are you trying to inject/register something that doesn't exist with DI?")}function yo(i,t,e){if(i instanceof N&&i.strategy===4){let o=i.state,r=o.length,n=new Array(r);for(;r--;)n[r]=o[r].resolve(t,e);return n}return[i.resolve(t,e)]}var xo="(anonymous)";function wo(i){return typeof i=="object"&&i!==null||typeof i=="function"}var Kr=function(){let i=new WeakMap,t=!1,e="",o=0;return function(r){return t=i.get(r),t===void 0&&(e=r.toString(),o=e.length,t=o>=29&&o<=100&&e.charCodeAt(o-1)===125&&e.charCodeAt(o-2)<=32&&e.charCodeAt(o-3)===93&&e.charCodeAt(o-4)===101&&e.charCodeAt(o-5)===100&&e.charCodeAt(o-6)===111&&e.charCodeAt(o-7)===99&&e.charCodeAt(o-8)===32&&e.charCodeAt(o-9)===101&&e.charCodeAt(o-10)===118&&e.charCodeAt(o-11)===105&&e.charCodeAt(o-12)===116&&e.charCodeAt(o-13)===97&&e.charCodeAt(o-14)===110&&e.charCodeAt(o-15)===88,i.set(r,t)),t}}(),ye={};function So(i){switch(typeof i){case"number":return i>=0&&(i|0)===i;case"string":{let t=ye[i];if(t!==void 0)return t;let e=i.length;if(e===0)return ye[i]=!1;let o=0;for(let r=0;r<e;++r)if(o=i.charCodeAt(r),r===0&&o===48&&e>1||o<48||o>57)return ye[i]=!1;return ye[i]=!0}default:return!1}}function Io(i){return`${i.toLowerCase()}:presentation`}var ke=new Map,$e=Object.freeze({define(i,t,e){let o=Io(i);ke.get(o)===void 0?ke.set(o,t):ke.set(o,!1),e.register(St.instance(o,t))},forTag(i,t){let e=Io(i),o=ke.get(e);return o===!1?x.findResponsibleContainer(t).get(e):o||null}}),Ce=class{constructor(t,e){this.template=t||null,this.styles=e===void 0?null:Array.isArray(e)?S.create(e):e instanceof S?e:S.create([e])}applyTo(t){let e=t.$fastController;e.template===null&&(e.template=this.template),e.styles===null&&(e.styles=this.styles)}};var k=class extends ct{constructor(){super(...arguments),this._presentation=void 0}get $presentation(){return this._presentation===void 0&&(this._presentation=$e.forTag(this.tagName,this)),this._presentation}templateChanged(){this.template!==void 0&&(this.$fastController.template=this.template)}stylesChanged(){this.styles!==void 0&&(this.$fastController.styles=this.styles)}connectedCallback(){this.$presentation!==null&&this.$presentation.applyTo(this),super.connectedCallback()}static compose(t){return(e={})=>new hi(this===k?class extends k{}:this,t,e)}};l([f],k.prototype,"template",void 0);l([f],k.prototype,"styles",void 0);function Kt(i,t,e){return typeof i=="function"?i(t,e):i}var hi=class{constructor(t,e,o){this.type=t,this.elementDefinition=e,this.overrideDefinition=o,this.definition=Object.assign(Object.assign({},this.elementDefinition),this.overrideDefinition)}register(t,e){let o=this.definition,r=this.overrideDefinition,s=`${o.prefix||e.elementPrefix}-${o.baseName}`;e.tryDefineElement({name:s,type:this.type,baseClass:this.elementDefinition.baseClass,callback:a=>{let c=new Ce(Kt(o.template,a,o),Kt(o.styles,a,o));a.definePresentation(c);let d=Kt(o.shadowOptions,a,o);a.shadowRootMode&&(d?r.shadowOptions||(d.mode=a.shadowRootMode):d!==null&&(d={mode:a.shadowRootMode})),a.defineElement({elementOptions:Kt(o.elementOptions,a,o),shadowOptions:d,attributes:Kt(o.attributes,a,o)})}})}};function M(i,...t){let e=Jt.locate(i);t.forEach(o=>{Object.getOwnPropertyNames(o.prototype).forEach(n=>{n!=="constructor"&&Object.defineProperty(i.prototype,n,Object.getOwnPropertyDescriptor(o.prototype,n))}),Jt.locate(o).forEach(n=>e.push(n))})}function To(i,t){let e=i.length;for(;e--;)if(t(i[e],e,i))return e;return-1}function Oo(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Ao(...i){return i.every(t=>t instanceof HTMLElement)}function tn(){let i=document.querySelector('meta[property="csp-nonce"]');return i?i.getAttribute("content"):null}var It;function Eo(){if(typeof It=="boolean")return It;if(!Oo())return It=!1,It;let i=document.createElement("style"),t=tn();t!==null&&i.setAttribute("nonce",t),document.head.appendChild(i);try{i.sheet.insertRule("foo:focus-visible {color:inherit}",0),It=!0}catch{It=!1}finally{document.head.removeChild(i)}return It}var Po;(function(i){i[i.alt=18]="alt",i[i.arrowDown=40]="arrowDown",i[i.arrowLeft=37]="arrowLeft",i[i.arrowRight=39]="arrowRight",i[i.arrowUp=38]="arrowUp",i[i.back=8]="back",i[i.backSlash=220]="backSlash",i[i.break=19]="break",i[i.capsLock=20]="capsLock",i[i.closeBracket=221]="closeBracket",i[i.colon=186]="colon",i[i.colon2=59]="colon2",i[i.comma=188]="comma",i[i.ctrl=17]="ctrl",i[i.delete=46]="delete",i[i.end=35]="end",i[i.enter=13]="enter",i[i.equals=187]="equals",i[i.equals2=61]="equals2",i[i.equals3=107]="equals3",i[i.escape=27]="escape",i[i.forwardSlash=191]="forwardSlash",i[i.function1=112]="function1",i[i.function10=121]="function10",i[i.function11=122]="function11",i[i.function12=123]="function12",i[i.function2=113]="function2",i[i.function3=114]="function3",i[i.function4=115]="function4",i[i.function5=116]="function5",i[i.function6=117]="function6",i[i.function7=118]="function7",i[i.function8=119]="function8",i[i.function9=120]="function9",i[i.home=36]="home",i[i.insert=45]="insert",i[i.menu=93]="menu",i[i.minus=189]="minus",i[i.minus2=109]="minus2",i[i.numLock=144]="numLock",i[i.numPad0=96]="numPad0",i[i.numPad1=97]="numPad1",i[i.numPad2=98]="numPad2",i[i.numPad3=99]="numPad3",i[i.numPad4=100]="numPad4",i[i.numPad5=101]="numPad5",i[i.numPad6=102]="numPad6",i[i.numPad7=103]="numPad7",i[i.numPad8=104]="numPad8",i[i.numPad9=105]="numPad9",i[i.numPadDivide=111]="numPadDivide",i[i.numPadDot=110]="numPadDot",i[i.numPadMinus=109]="numPadMinus",i[i.numPadMultiply=106]="numPadMultiply",i[i.numPadPlus=107]="numPadPlus",i[i.openBracket=219]="openBracket",i[i.pageDown=34]="pageDown",i[i.pageUp=33]="pageUp",i[i.period=190]="period",i[i.print=44]="print",i[i.quote=222]="quote",i[i.scrollLock=145]="scrollLock",i[i.shift=16]="shift",i[i.space=32]="space",i[i.tab=9]="tab",i[i.tilde=192]="tilde",i[i.windowsLeft=91]="windowsLeft",i[i.windowsOpera=219]="windowsOpera",i[i.windowsRight=92]="windowsRight"})(Po||(Po={}));var dt="ArrowDown",Fo="ArrowLeft",Mo="ArrowRight",ht="ArrowUp",Nt="Enter",zt="Escape",ut="Home",pt="End";var ft=" ",jt="Tab";function Bo(i,t,e){return Math.min(Math.max(e,i),t)}function te(i,t,e=0){return[t,e]=[t,e].sort((o,r)=>o-r),t<=i&&i<e}var en=0;function Tt(i=""){return`${i}${en++}`}var y=class{};l([h({attribute:"aria-atomic"})],y.prototype,"ariaAtomic",void 0);l([h({attribute:"aria-busy"})],y.prototype,"ariaBusy",void 0);l([h({attribute:"aria-controls"})],y.prototype,"ariaControls",void 0);l([h({attribute:"aria-current"})],y.prototype,"ariaCurrent",void 0);l([h({attribute:"aria-describedby"})],y.prototype,"ariaDescribedby",void 0);l([h({attribute:"aria-details"})],y.prototype,"ariaDetails",void 0);l([h({attribute:"aria-disabled"})],y.prototype,"ariaDisabled",void 0);l([h({attribute:"aria-errormessage"})],y.prototype,"ariaErrormessage",void 0);l([h({attribute:"aria-flowto"})],y.prototype,"ariaFlowto",void 0);l([h({attribute:"aria-haspopup"})],y.prototype,"ariaHaspopup",void 0);l([h({attribute:"aria-hidden"})],y.prototype,"ariaHidden",void 0);l([h({attribute:"aria-invalid"})],y.prototype,"ariaInvalid",void 0);l([h({attribute:"aria-keyshortcuts"})],y.prototype,"ariaKeyshortcuts",void 0);l([h({attribute:"aria-label"})],y.prototype,"ariaLabel",void 0);l([h({attribute:"aria-labelledby"})],y.prototype,"ariaLabelledby",void 0);l([h({attribute:"aria-live"})],y.prototype,"ariaLive",void 0);l([h({attribute:"aria-owns"})],y.prototype,"ariaOwns",void 0);l([h({attribute:"aria-relevant"})],y.prototype,"ariaRelevant",void 0);l([h({attribute:"aria-roledescription"})],y.prototype,"ariaRoledescription",void 0);var Do=(i,t)=>C`
42
42
  <button
43
43
  class="control"
44
44
  part="control"
@@ -76,13 +76,13 @@ function Ne(i){return i.type==="int"?{type:"int",value:Cr("",i.value)}:i}functio
76
76
  aria-roledescription="${e=>e.ariaRoledescription}"
77
77
  ${P("control")}
78
78
  >
79
- ${et(i,t)}
79
+ ${tt(i,t)}
80
80
  <span class="content" part="content">
81
81
  <slot ${j("defaultSlottedContent")}></slot>
82
82
  </span>
83
- ${tt(i,t)}
83
+ ${K(i,t)}
84
84
  </button>
85
- `;var Do="form-associated-proxy",Ro="ElementInternals",Lo=Ro in window&&"setFormValue"in window[Ro].prototype,_o=new WeakMap;function Ot(i){let t=class extends i{constructor(...e){super(...e),this.dirtyValue=!1,this.disabled=!1,this.proxyEventsToBlock=["change","click"],this.proxyInitialized=!1,this.required=!1,this.initialValue=this.initialValue||"",this.elementInternals||(this.formResetCallback=this.formResetCallback.bind(this))}static get formAssociated(){return Lo}get validity(){return this.elementInternals?this.elementInternals.validity:this.proxy.validity}get form(){return this.elementInternals?this.elementInternals.form:this.proxy.form}get validationMessage(){return this.elementInternals?this.elementInternals.validationMessage:this.proxy.validationMessage}get willValidate(){return this.elementInternals?this.elementInternals.willValidate:this.proxy.willValidate}get labels(){if(this.elementInternals)return Object.freeze(Array.from(this.elementInternals.labels));if(this.proxy instanceof HTMLElement&&this.proxy.ownerDocument&&this.id){let e=this.proxy.labels,o=Array.from(this.proxy.getRootNode().querySelectorAll(`[for='${this.id}']`)),r=e?o.concat(Array.from(e)):o;return Object.freeze(r)}else return st}valueChanged(e,o){this.dirtyValue=!0,this.proxy instanceof HTMLElement&&(this.proxy.value=this.value),this.currentValue=this.value,this.setFormValue(this.value),this.validate()}currentValueChanged(){this.value=this.currentValue}initialValueChanged(e,o){this.dirtyValue||(this.value=this.initialValue,this.dirtyValue=!1)}disabledChanged(e,o){this.proxy instanceof HTMLElement&&(this.proxy.disabled=this.disabled),m.queueUpdate(()=>this.classList.toggle("disabled",this.disabled))}nameChanged(e,o){this.proxy instanceof HTMLElement&&(this.proxy.name=this.name)}requiredChanged(e,o){this.proxy instanceof HTMLElement&&(this.proxy.required=this.required),m.queueUpdate(()=>this.classList.toggle("required",this.required)),this.validate()}get elementInternals(){if(!Lo)return null;let e=_o.get(this);return e||(e=this.attachInternals(),_o.set(this,e)),e}connectedCallback(){super.connectedCallback(),this.addEventListener("keypress",this._keypressHandler),this.value||(this.value=this.initialValue,this.dirtyValue=!1),this.elementInternals||(this.attachProxy(),this.form&&this.form.addEventListener("reset",this.formResetCallback))}disconnectedCallback(){this.proxyEventsToBlock.forEach(e=>this.proxy.removeEventListener(e,this.stopPropagation)),!this.elementInternals&&this.form&&this.form.removeEventListener("reset",this.formResetCallback)}checkValidity(){return this.elementInternals?this.elementInternals.checkValidity():this.proxy.checkValidity()}reportValidity(){return this.elementInternals?this.elementInternals.reportValidity():this.proxy.reportValidity()}setValidity(e,o,r){this.elementInternals?this.elementInternals.setValidity(e,o,r):typeof o=="string"&&this.proxy.setCustomValidity(o)}formDisabledCallback(e){this.disabled=e}formResetCallback(){this.value=this.initialValue,this.dirtyValue=!1}attachProxy(){var e;this.proxyInitialized||(this.proxyInitialized=!0,this.proxy.style.display="none",this.proxyEventsToBlock.forEach(o=>this.proxy.addEventListener(o,this.stopPropagation)),this.proxy.disabled=this.disabled,this.proxy.required=this.required,typeof this.name=="string"&&(this.proxy.name=this.name),typeof this.value=="string"&&(this.proxy.value=this.value),this.proxy.setAttribute("slot",Do),this.proxySlot=document.createElement("slot"),this.proxySlot.setAttribute("name",Do)),(e=this.shadowRoot)===null||e===void 0||e.appendChild(this.proxySlot),this.appendChild(this.proxy)}detachProxy(){var e;this.removeChild(this.proxy),(e=this.shadowRoot)===null||e===void 0||e.removeChild(this.proxySlot)}validate(e){this.proxy instanceof HTMLElement&&this.setValidity(this.proxy.validity,this.proxy.validationMessage,e)}setFormValue(e,o){this.elementInternals&&this.elementInternals.setFormValue(e,o||e)}_keypressHandler(e){switch(e.key){case Nt:if(this.form instanceof HTMLFormElement){let o=this.form.querySelector("[type=submit]");o?.click()}break}}stopPropagation(e){e.stopPropagation()}};return h({mode:"boolean"})(t.prototype,"disabled"),h({mode:"fromView",attribute:"value"})(t.prototype,"initialValue"),h({attribute:"current-value"})(t.prototype,"currentValue"),h(t.prototype,"name"),h({mode:"boolean"})(t.prototype,"required"),f(t.prototype,"value"),t}function Vo(i){class t extends Ot(i){}class e extends t{constructor(...r){super(r),this.dirtyChecked=!1,this.checkedAttribute=!1,this.checked=!1,this.dirtyChecked=!1}checkedAttributeChanged(){this.defaultChecked=this.checkedAttribute}defaultCheckedChanged(){this.dirtyChecked||(this.checked=this.defaultChecked,this.dirtyChecked=!1)}checkedChanged(r,n){this.dirtyChecked||(this.dirtyChecked=!0),this.currentChecked=this.checked,this.updateForm(),this.proxy instanceof HTMLInputElement&&(this.proxy.checked=this.checked),r!==void 0&&this.$emit("change"),this.validate()}currentCheckedChanged(r,n){this.checked=this.currentChecked}updateForm(){let r=this.checked?this.value:null;this.setFormValue(r,r)}connectedCallback(){super.connectedCallback(),this.updateForm()}formResetCallback(){super.formResetCallback(),this.checked=!!this.checkedAttribute,this.dirtyChecked=!1}}return h({attribute:"checked",mode:"boolean"})(e.prototype,"checkedAttribute"),h({attribute:"current-checked",converter:Je})(e.prototype,"currentChecked"),f(e.prototype,"defaultChecked"),f(e.prototype,"checked"),e}var hi=class extends k{},Se=class extends Ot(hi){constructor(){super(...arguments),this.proxy=document.createElement("input")}};var z=class extends Se{constructor(){super(...arguments),this.handleClick=t=>{var e;this.disabled&&((e=this.defaultSlottedContent)===null||e===void 0?void 0:e.length)<=1&&t.stopPropagation()},this.handleSubmission=()=>{if(!this.form)return;let t=this.proxy.isConnected;t||this.attachProxy(),typeof this.form.requestSubmit=="function"?this.form.requestSubmit(this.proxy):this.proxy.click(),t||this.detachProxy()},this.handleFormReset=()=>{var t;(t=this.form)===null||t===void 0||t.reset()},this.handleUnsupportedDelegatesFocus=()=>{var t;window.ShadowRoot&&!window.ShadowRoot.prototype.hasOwnProperty("delegatesFocus")&&(!((t=this.$fastController.definition.shadowOptions)===null||t===void 0)&&t.delegatesFocus)&&(this.focus=()=>{this.control.focus()})}}formactionChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formAction=this.formaction)}formenctypeChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formEnctype=this.formenctype)}formmethodChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formMethod=this.formmethod)}formnovalidateChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formNoValidate=this.formnovalidate)}formtargetChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formTarget=this.formtarget)}typeChanged(t,e){this.proxy instanceof HTMLInputElement&&(this.proxy.type=this.type),e==="submit"&&this.addEventListener("click",this.handleSubmission),t==="submit"&&this.removeEventListener("click",this.handleSubmission),e==="reset"&&this.addEventListener("click",this.handleFormReset),t==="reset"&&this.removeEventListener("click",this.handleFormReset)}validate(){super.validate(this.control)}connectedCallback(){var t;super.connectedCallback(),this.proxy.setAttribute("type",this.type),this.handleUnsupportedDelegatesFocus();let e=Array.from((t=this.control)===null||t===void 0?void 0:t.children);e&&e.forEach(o=>{o.addEventListener("click",this.handleClick)})}disconnectedCallback(){var t;super.disconnectedCallback();let e=Array.from((t=this.control)===null||t===void 0?void 0:t.children);e&&e.forEach(o=>{o.removeEventListener("click",this.handleClick)})}};l([h({mode:"boolean"})],z.prototype,"autofocus",void 0);l([h({attribute:"form"})],z.prototype,"formId",void 0);l([h],z.prototype,"formaction",void 0);l([h],z.prototype,"formenctype",void 0);l([h],z.prototype,"formmethod",void 0);l([h({mode:"boolean"})],z.prototype,"formnovalidate",void 0);l([h],z.prototype,"formtarget",void 0);l([h],z.prototype,"type",void 0);l([f],z.prototype,"defaultSlottedContent",void 0);var qt=class{};l([h({attribute:"aria-expanded"})],qt.prototype,"ariaExpanded",void 0);l([h({attribute:"aria-pressed"})],qt.prototype,"ariaPressed",void 0);M(qt,y);M(z,U,qt);var Ho=(i,t)=>C`
85
+ `;var Ro="form-associated-proxy",Lo="ElementInternals",_o=Lo in window&&"setFormValue"in window[Lo].prototype,Vo=new WeakMap;function Ot(i){let t=class extends i{constructor(...e){super(...e),this.dirtyValue=!1,this.disabled=!1,this.proxyEventsToBlock=["change","click"],this.proxyInitialized=!1,this.required=!1,this.initialValue=this.initialValue||"",this.elementInternals||(this.formResetCallback=this.formResetCallback.bind(this))}static get formAssociated(){return _o}get validity(){return this.elementInternals?this.elementInternals.validity:this.proxy.validity}get form(){return this.elementInternals?this.elementInternals.form:this.proxy.form}get validationMessage(){return this.elementInternals?this.elementInternals.validationMessage:this.proxy.validationMessage}get willValidate(){return this.elementInternals?this.elementInternals.willValidate:this.proxy.willValidate}get labels(){if(this.elementInternals)return Object.freeze(Array.from(this.elementInternals.labels));if(this.proxy instanceof HTMLElement&&this.proxy.ownerDocument&&this.id){let e=this.proxy.labels,o=Array.from(this.proxy.getRootNode().querySelectorAll(`[for='${this.id}']`)),r=e?o.concat(Array.from(e)):o;return Object.freeze(r)}else return st}valueChanged(e,o){this.dirtyValue=!0,this.proxy instanceof HTMLElement&&(this.proxy.value=this.value),this.currentValue=this.value,this.setFormValue(this.value),this.validate()}currentValueChanged(){this.value=this.currentValue}initialValueChanged(e,o){this.dirtyValue||(this.value=this.initialValue,this.dirtyValue=!1)}disabledChanged(e,o){this.proxy instanceof HTMLElement&&(this.proxy.disabled=this.disabled),m.queueUpdate(()=>this.classList.toggle("disabled",this.disabled))}nameChanged(e,o){this.proxy instanceof HTMLElement&&(this.proxy.name=this.name)}requiredChanged(e,o){this.proxy instanceof HTMLElement&&(this.proxy.required=this.required),m.queueUpdate(()=>this.classList.toggle("required",this.required)),this.validate()}get elementInternals(){if(!_o)return null;let e=Vo.get(this);return e||(e=this.attachInternals(),Vo.set(this,e)),e}connectedCallback(){super.connectedCallback(),this.addEventListener("keypress",this._keypressHandler),this.value||(this.value=this.initialValue,this.dirtyValue=!1),this.elementInternals||(this.attachProxy(),this.form&&this.form.addEventListener("reset",this.formResetCallback))}disconnectedCallback(){super.disconnectedCallback(),this.proxyEventsToBlock.forEach(e=>this.proxy.removeEventListener(e,this.stopPropagation)),!this.elementInternals&&this.form&&this.form.removeEventListener("reset",this.formResetCallback)}checkValidity(){return this.elementInternals?this.elementInternals.checkValidity():this.proxy.checkValidity()}reportValidity(){return this.elementInternals?this.elementInternals.reportValidity():this.proxy.reportValidity()}setValidity(e,o,r){this.elementInternals?this.elementInternals.setValidity(e,o,r):typeof o=="string"&&this.proxy.setCustomValidity(o)}formDisabledCallback(e){this.disabled=e}formResetCallback(){this.value=this.initialValue,this.dirtyValue=!1}attachProxy(){var e;this.proxyInitialized||(this.proxyInitialized=!0,this.proxy.style.display="none",this.proxyEventsToBlock.forEach(o=>this.proxy.addEventListener(o,this.stopPropagation)),this.proxy.disabled=this.disabled,this.proxy.required=this.required,typeof this.name=="string"&&(this.proxy.name=this.name),typeof this.value=="string"&&(this.proxy.value=this.value),this.proxy.setAttribute("slot",Ro),this.proxySlot=document.createElement("slot"),this.proxySlot.setAttribute("name",Ro)),(e=this.shadowRoot)===null||e===void 0||e.appendChild(this.proxySlot),this.appendChild(this.proxy)}detachProxy(){var e;this.removeChild(this.proxy),(e=this.shadowRoot)===null||e===void 0||e.removeChild(this.proxySlot)}validate(e){this.proxy instanceof HTMLElement&&this.setValidity(this.proxy.validity,this.proxy.validationMessage,e)}setFormValue(e,o){this.elementInternals&&this.elementInternals.setFormValue(e,o||e)}_keypressHandler(e){switch(e.key){case Nt:if(this.form instanceof HTMLFormElement){let o=this.form.querySelector("[type=submit]");o?.click()}break}}stopPropagation(e){e.stopPropagation()}};return h({mode:"boolean"})(t.prototype,"disabled"),h({mode:"fromView",attribute:"value"})(t.prototype,"initialValue"),h({attribute:"current-value"})(t.prototype,"currentValue"),h(t.prototype,"name"),h({mode:"boolean"})(t.prototype,"required"),f(t.prototype,"value"),t}function Ho(i){class t extends Ot(i){}class e extends t{constructor(...r){super(r),this.dirtyChecked=!1,this.checkedAttribute=!1,this.checked=!1,this.dirtyChecked=!1}checkedAttributeChanged(){this.defaultChecked=this.checkedAttribute}defaultCheckedChanged(){this.dirtyChecked||(this.checked=this.defaultChecked,this.dirtyChecked=!1)}checkedChanged(r,n){this.dirtyChecked||(this.dirtyChecked=!0),this.currentChecked=this.checked,this.updateForm(),this.proxy instanceof HTMLInputElement&&(this.proxy.checked=this.checked),r!==void 0&&this.$emit("change"),this.validate()}currentCheckedChanged(r,n){this.checked=this.currentChecked}updateForm(){let r=this.checked?this.value:null;this.setFormValue(r,r)}connectedCallback(){super.connectedCallback(),this.updateForm()}formResetCallback(){super.formResetCallback(),this.checked=!!this.checkedAttribute,this.dirtyChecked=!1}}return h({attribute:"checked",mode:"boolean"})(e.prototype,"checkedAttribute"),h({attribute:"current-checked",converter:Ze})(e.prototype,"currentChecked"),f(e.prototype,"defaultChecked"),f(e.prototype,"checked"),e}var ui=class extends k{},Se=class extends Ot(ui){constructor(){super(...arguments),this.proxy=document.createElement("input")}};var z=class extends Se{constructor(){super(...arguments),this.handleClick=t=>{var e;this.disabled&&((e=this.defaultSlottedContent)===null||e===void 0?void 0:e.length)<=1&&t.stopPropagation()},this.handleSubmission=()=>{if(!this.form)return;let t=this.proxy.isConnected;t||this.attachProxy(),typeof this.form.requestSubmit=="function"?this.form.requestSubmit(this.proxy):this.proxy.click(),t||this.detachProxy()},this.handleFormReset=()=>{var t;(t=this.form)===null||t===void 0||t.reset()},this.handleUnsupportedDelegatesFocus=()=>{var t;window.ShadowRoot&&!window.ShadowRoot.prototype.hasOwnProperty("delegatesFocus")&&(!((t=this.$fastController.definition.shadowOptions)===null||t===void 0)&&t.delegatesFocus)&&(this.focus=()=>{this.control.focus()})}}formactionChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formAction=this.formaction)}formenctypeChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formEnctype=this.formenctype)}formmethodChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formMethod=this.formmethod)}formnovalidateChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formNoValidate=this.formnovalidate)}formtargetChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formTarget=this.formtarget)}typeChanged(t,e){this.proxy instanceof HTMLInputElement&&(this.proxy.type=this.type),e==="submit"&&this.addEventListener("click",this.handleSubmission),t==="submit"&&this.removeEventListener("click",this.handleSubmission),e==="reset"&&this.addEventListener("click",this.handleFormReset),t==="reset"&&this.removeEventListener("click",this.handleFormReset)}validate(){super.validate(this.control)}connectedCallback(){var t;super.connectedCallback(),this.proxy.setAttribute("type",this.type),this.handleUnsupportedDelegatesFocus();let e=Array.from((t=this.control)===null||t===void 0?void 0:t.children);e&&e.forEach(o=>{o.addEventListener("click",this.handleClick)})}disconnectedCallback(){var t;super.disconnectedCallback();let e=Array.from((t=this.control)===null||t===void 0?void 0:t.children);e&&e.forEach(o=>{o.removeEventListener("click",this.handleClick)})}};l([h({mode:"boolean"})],z.prototype,"autofocus",void 0);l([h({attribute:"form"})],z.prototype,"formId",void 0);l([h],z.prototype,"formaction",void 0);l([h],z.prototype,"formenctype",void 0);l([h],z.prototype,"formmethod",void 0);l([h({mode:"boolean"})],z.prototype,"formnovalidate",void 0);l([h],z.prototype,"formtarget",void 0);l([h],z.prototype,"type",void 0);l([f],z.prototype,"defaultSlottedContent",void 0);var qt=class{};l([h({attribute:"aria-expanded"})],qt.prototype,"ariaExpanded",void 0);l([h({attribute:"aria-pressed"})],qt.prototype,"ariaPressed",void 0);M(qt,y);M(z,U,qt);var No=(i,t)=>C`
86
86
  <template
87
87
  role="checkbox"
88
88
  aria-checked="${e=>e.checked}"
@@ -109,7 +109,7 @@ function Ne(i){return i.type==="int"?{type:"int",value:Cr("",i.value)}:i}functio
109
109
  <slot ${j("defaultSlottedNodes")}></slot>
110
110
  </label>
111
111
  </template>
112
- `;var ui=class extends k{},Ie=class extends Vo(ui){constructor(){super(...arguments),this.proxy=document.createElement("input")}};var At=class extends Ie{constructor(){super(),this.initialValue="on",this.indeterminate=!1,this.keypressHandler=t=>{if(!this.readOnly)switch(t.key){case ft:this.indeterminate&&(this.indeterminate=!1),this.checked=!this.checked;break}},this.clickHandler=t=>{!this.disabled&&!this.readOnly&&(this.indeterminate&&(this.indeterminate=!1),this.checked=!this.checked)},this.proxy.setAttribute("type","checkbox")}readOnlyChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.readOnly=this.readOnly)}};l([h({attribute:"readonly",mode:"boolean"})],At.prototype,"readOnly",void 0);l([f],At.prototype,"defaultSlottedNodes",void 0);l([f],At.prototype,"indeterminate",void 0);function pi(i){return Oo(i)&&(i.getAttribute("role")==="option"||i instanceof HTMLOptionElement)}var W=class extends k{constructor(t,e,o,r){super(),this.defaultSelected=!1,this.dirtySelected=!1,this.selected=this.defaultSelected,this.dirtyValue=!1,t&&(this.textContent=t),e&&(this.initialValue=e),o&&(this.defaultSelected=o),r&&(this.selected=r),this.proxy=new Option(`${this.textContent}`,this.initialValue,this.defaultSelected,this.selected),this.proxy.disabled=this.disabled}checkedChanged(t,e){if(typeof e=="boolean"){this.ariaChecked=e?"true":"false";return}this.ariaChecked=null}contentChanged(t,e){this.proxy instanceof HTMLOptionElement&&(this.proxy.textContent=this.textContent),this.$emit("contentchange",null,{bubbles:!0})}defaultSelectedChanged(){this.dirtySelected||(this.selected=this.defaultSelected,this.proxy instanceof HTMLOptionElement&&(this.proxy.selected=this.defaultSelected))}disabledChanged(t,e){this.ariaDisabled=this.disabled?"true":"false",this.proxy instanceof HTMLOptionElement&&(this.proxy.disabled=this.disabled)}selectedAttributeChanged(){this.defaultSelected=this.selectedAttribute,this.proxy instanceof HTMLOptionElement&&(this.proxy.defaultSelected=this.defaultSelected)}selectedChanged(){this.ariaSelected=this.selected?"true":"false",this.dirtySelected||(this.dirtySelected=!0),this.proxy instanceof HTMLOptionElement&&(this.proxy.selected=this.selected)}initialValueChanged(t,e){this.dirtyValue||(this.value=this.initialValue,this.dirtyValue=!1)}get label(){var t;return(t=this.value)!==null&&t!==void 0?t:this.text}get text(){var t,e;return(e=(t=this.textContent)===null||t===void 0?void 0:t.replace(/\s+/g," ").trim())!==null&&e!==void 0?e:""}set value(t){let e=`${t??""}`;this._value=e,this.dirtyValue=!0,this.proxy instanceof HTMLOptionElement&&(this.proxy.value=e),b.notify(this,"value")}get value(){var t;return b.track(this,"value"),(t=this._value)!==null&&t!==void 0?t:this.text}get form(){return this.proxy?this.proxy.form:null}};l([f],W.prototype,"checked",void 0);l([f],W.prototype,"content",void 0);l([f],W.prototype,"defaultSelected",void 0);l([h({mode:"boolean"})],W.prototype,"disabled",void 0);l([h({attribute:"selected",mode:"boolean"})],W.prototype,"selectedAttribute",void 0);l([f],W.prototype,"selected",void 0);l([h({attribute:"value",mode:"fromView"})],W.prototype,"initialValue",void 0);var mt=class{};l([f],mt.prototype,"ariaChecked",void 0);l([f],mt.prototype,"ariaPosInSet",void 0);l([f],mt.prototype,"ariaSelected",void 0);l([f],mt.prototype,"ariaSetSize",void 0);M(mt,y);M(W,U,mt);var E=class extends k{constructor(){super(...arguments),this._options=[],this.selectedIndex=-1,this.selectedOptions=[],this.shouldSkipFocus=!1,this.typeaheadBuffer="",this.typeaheadExpired=!0,this.typeaheadTimeout=-1}get firstSelectedOption(){var t;return(t=this.selectedOptions[0])!==null&&t!==void 0?t:null}get hasSelectableOptions(){return this.options.length>0&&!this.options.every(t=>t.disabled)}get length(){var t,e;return(e=(t=this.options)===null||t===void 0?void 0:t.length)!==null&&e!==void 0?e:0}get options(){return b.track(this,"options"),this._options}set options(t){this._options=t,b.notify(this,"options")}get typeAheadExpired(){return this.typeaheadExpired}set typeAheadExpired(t){this.typeaheadExpired=t}clickHandler(t){let e=t.target.closest("option,[role=option]");if(e&&!e.disabled)return this.selectedIndex=this.options.indexOf(e),!0}focusAndScrollOptionIntoView(t=this.firstSelectedOption){this.contains(document.activeElement)&&t!==null&&(t.focus(),requestAnimationFrame(()=>{t.scrollIntoView({block:"nearest"})}))}focusinHandler(t){!this.shouldSkipFocus&&t.target===t.currentTarget&&(this.setSelectedOptions(),this.focusAndScrollOptionIntoView()),this.shouldSkipFocus=!1}getTypeaheadMatches(){let t=this.typeaheadBuffer.replace(/[.*+\-?^${}()|[\]\\]/g,"\\$&"),e=new RegExp(`^${t}`,"gi");return this.options.filter(o=>o.text.trim().match(e))}getSelectableIndex(t=this.selectedIndex,e){let o=t>e?-1:t<e?1:0,r=t+o,n=null;switch(o){case-1:{n=this.options.reduceRight((s,a,c)=>!s&&!a.disabled&&c<r?a:s,n);break}case 1:{n=this.options.reduce((s,a,c)=>!s&&!a.disabled&&c>r?a:s,n);break}}return this.options.indexOf(n)}handleChange(t,e){switch(e){case"selected":{E.slottedOptionFilter(t)&&(this.selectedIndex=this.options.indexOf(t)),this.setSelectedOptions();break}}}handleTypeAhead(t){this.typeaheadTimeout&&window.clearTimeout(this.typeaheadTimeout),this.typeaheadTimeout=window.setTimeout(()=>this.typeaheadExpired=!0,E.TYPE_AHEAD_TIMEOUT_MS),!(t.length>1)&&(this.typeaheadBuffer=`${this.typeaheadExpired?"":this.typeaheadBuffer}${t}`)}keydownHandler(t){if(this.disabled)return!0;this.shouldSkipFocus=!1;let e=t.key;switch(e){case ut:{t.shiftKey||(t.preventDefault(),this.selectFirstOption());break}case dt:{t.shiftKey||(t.preventDefault(),this.selectNextOption());break}case ht:{t.shiftKey||(t.preventDefault(),this.selectPreviousOption());break}case pt:{t.preventDefault(),this.selectLastOption();break}case jt:return this.focusAndScrollOptionIntoView(),!0;case Nt:case zt:return!0;case ft:if(this.typeaheadExpired)return!0;default:return e.length===1&&this.handleTypeAhead(`${e}`),!0}}mousedownHandler(t){return this.shouldSkipFocus=!this.contains(document.activeElement),!0}multipleChanged(t,e){this.ariaMultiSelectable=e?"true":null}selectedIndexChanged(t,e){var o;if(!this.hasSelectableOptions){this.selectedIndex=-1;return}if(!((o=this.options[this.selectedIndex])===null||o===void 0)&&o.disabled&&typeof t=="number"){let r=this.getSelectableIndex(t,e),n=r>-1?r:t;this.selectedIndex=n,e===n&&this.selectedIndexChanged(e,n);return}this.setSelectedOptions()}selectedOptionsChanged(t,e){var o;let r=e.filter(E.slottedOptionFilter);(o=this.options)===null||o===void 0||o.forEach(n=>{let s=b.getNotifier(n);s.unsubscribe(this,"selected"),n.selected=r.includes(n),s.subscribe(this,"selected")})}selectFirstOption(){var t,e;this.disabled||(this.selectedIndex=(e=(t=this.options)===null||t===void 0?void 0:t.findIndex(o=>!o.disabled))!==null&&e!==void 0?e:-1)}selectLastOption(){this.disabled||(this.selectedIndex=Io(this.options,t=>!t.disabled))}selectNextOption(){!this.disabled&&this.selectedIndex<this.options.length-1&&(this.selectedIndex+=1)}selectPreviousOption(){!this.disabled&&this.selectedIndex>0&&(this.selectedIndex=this.selectedIndex-1)}setDefaultSelectedOption(){var t,e;this.selectedIndex=(e=(t=this.options)===null||t===void 0?void 0:t.findIndex(o=>o.defaultSelected))!==null&&e!==void 0?e:-1}setSelectedOptions(){var t,e,o;!((t=this.options)===null||t===void 0)&&t.length&&(this.selectedOptions=[this.options[this.selectedIndex]],this.ariaActiveDescendant=(o=(e=this.firstSelectedOption)===null||e===void 0?void 0:e.id)!==null&&o!==void 0?o:"",this.focusAndScrollOptionIntoView())}slottedOptionsChanged(t,e){this.options=e.reduce((r,n)=>(pi(n)&&r.push(n),r),[]);let o=`${this.options.length}`;this.options.forEach((r,n)=>{r.id||(r.id=Tt("option-")),r.ariaPosInSet=`${n+1}`,r.ariaSetSize=o}),this.$fastController.isConnected&&(this.setSelectedOptions(),this.setDefaultSelectedOption())}typeaheadBufferChanged(t,e){if(this.$fastController.isConnected){let o=this.getTypeaheadMatches();if(o.length){let r=this.options.indexOf(o[0]);r>-1&&(this.selectedIndex=r)}this.typeaheadExpired=!1}}};E.slottedOptionFilter=i=>pi(i)&&!i.hidden;E.TYPE_AHEAD_TIMEOUT_MS=1e3;l([h({mode:"boolean"})],E.prototype,"disabled",void 0);l([f],E.prototype,"selectedIndex",void 0);l([f],E.prototype,"selectedOptions",void 0);l([f],E.prototype,"slottedOptions",void 0);l([f],E.prototype,"typeaheadBuffer",void 0);var it=class{};l([f],it.prototype,"ariaActiveDescendant",void 0);l([f],it.prototype,"ariaDisabled",void 0);l([f],it.prototype,"ariaExpanded",void 0);l([f],it.prototype,"ariaMultiSelectable",void 0);M(it,y);M(E,it);var ee={above:"above",below:"below"};function ie(i){let t=i.parentElement;if(t)return t;{let e=i.getRootNode();if(e.host instanceof HTMLElement)return e.host}return null}function No(i,t){let e=t;for(;e!==null;){if(e===i)return!0;e=ie(e)}return!1}var ot=document.createElement("div");function en(i){return i instanceof ct}var oe=class{setProperty(t,e){m.queueUpdate(()=>this.target.setProperty(t,e))}removeProperty(t){m.queueUpdate(()=>this.target.removeProperty(t))}},mi=class extends oe{constructor(t){super();let e=new CSSStyleSheet;this.target=e.cssRules[e.insertRule(":host{}")].style,t.$fastController.addStyles(S.create([e]))}},bi=class extends oe{constructor(){super();let t=new CSSStyleSheet;this.target=t.cssRules[t.insertRule(":root{}")].style,document.adoptedStyleSheets=[...document.adoptedStyleSheets,t]}},gi=class extends oe{constructor(){super(),this.style=document.createElement("style"),document.head.appendChild(this.style);let{sheet:t}=this.style;if(t){let e=t.insertRule(":root{}",t.cssRules.length);this.target=t.cssRules[e].style}}},Te=class{constructor(t){this.store=new Map,this.target=null;let e=t.$fastController;this.style=document.createElement("style"),e.addStyles(this.style),b.getNotifier(e).subscribe(this,"isConnected"),this.handleChange(e,"isConnected")}targetChanged(){if(this.target!==null)for(let[t,e]of this.store.entries())this.target.setProperty(t,e)}setProperty(t,e){this.store.set(t,e),m.queueUpdate(()=>{this.target!==null&&this.target.setProperty(t,e)})}removeProperty(t){this.store.delete(t),m.queueUpdate(()=>{this.target!==null&&this.target.removeProperty(t)})}handleChange(t,e){let{sheet:o}=this.style;if(o){let r=o.insertRule(":host{}",o.cssRules.length);this.target=o.cssRules[r].style}else this.target=null}};l([f],Te.prototype,"target",void 0);var vi=class{constructor(t){this.target=t.style}setProperty(t,e){m.queueUpdate(()=>this.target.setProperty(t,e))}removeProperty(t){m.queueUpdate(()=>this.target.removeProperty(t))}},T=class{setProperty(t,e){T.properties[t]=e;for(let o of T.roots.values())Et.getOrCreate(T.normalizeRoot(o)).setProperty(t,e)}removeProperty(t){delete T.properties[t];for(let e of T.roots.values())Et.getOrCreate(T.normalizeRoot(e)).removeProperty(t)}static registerRoot(t){let{roots:e}=T;if(!e.has(t)){e.add(t);let o=Et.getOrCreate(this.normalizeRoot(t));for(let r in T.properties)o.setProperty(r,T.properties[r])}}static unregisterRoot(t){let{roots:e}=T;if(e.has(t)){e.delete(t);let o=Et.getOrCreate(T.normalizeRoot(t));for(let r in T.properties)o.removeProperty(r)}}static normalizeRoot(t){return t===ot?document:t}};T.roots=new Set;T.properties={};var fi=new WeakMap,on=m.supportsAdoptedStyleSheets?mi:Te,Et=Object.freeze({getOrCreate(i){if(fi.has(i))return fi.get(i);let t;return i===ot?t=new T:i instanceof Document?t=m.supportsAdoptedStyleSheets?new bi:new gi:en(i)?t=new on(i):t=new vi(i),fi.set(i,t),t}});var B=class extends Ct{constructor(t){super(),this.subscribers=new WeakMap,this._appliedTo=new Set,this.name=t.name,t.cssCustomPropertyName!==null&&(this.cssCustomProperty=`--${t.cssCustomPropertyName}`,this.cssVar=`var(${this.cssCustomProperty})`),this.id=B.uniqueId(),B.tokensById.set(this.id,this)}get appliedTo(){return[...this._appliedTo]}static from(t){return new B({name:typeof t=="string"?t:t.name,cssCustomPropertyName:typeof t=="string"?t:t.cssCustomPropertyName===void 0?t.name:t.cssCustomPropertyName})}static isCSSDesignToken(t){return typeof t.cssCustomProperty=="string"}static isDerivedDesignTokenValue(t){return typeof t=="function"}static getTokenById(t){return B.tokensById.get(t)}getOrCreateSubscriberSet(t=this){return this.subscribers.get(t)||this.subscribers.set(t,new Set)&&this.subscribers.get(t)}createCSS(){return this.cssVar||""}getValueFor(t){let e=$.getOrCreate(t).get(this);if(e!==void 0)return e;throw new Error(`Value could not be retrieved for token named "${this.name}". Ensure the value is set for ${t} or an ancestor of ${t}.`)}setValueFor(t,e){return this._appliedTo.add(t),e instanceof B&&(e=this.alias(e)),$.getOrCreate(t).set(this,e),this}deleteValueFor(t){return this._appliedTo.delete(t),$.existsFor(t)&&$.getOrCreate(t).delete(this),this}withDefault(t){return this.setValueFor(ot,t),this}subscribe(t,e){let o=this.getOrCreateSubscriberSet(e);e&&!$.existsFor(e)&&$.getOrCreate(e),o.has(t)||o.add(t)}unsubscribe(t,e){let o=this.subscribers.get(e||this);o&&o.has(t)&&o.delete(t)}notify(t){let e=Object.freeze({token:this,target:t});this.subscribers.has(this)&&this.subscribers.get(this).forEach(o=>o.handleChange(e)),this.subscribers.has(t)&&this.subscribers.get(t).forEach(o=>o.handleChange(e))}alias(t){return e=>t.getValueFor(e)}};B.uniqueId=(()=>{let i=0;return()=>(i++,i.toString(16))})();B.tokensById=new Map;var yi=class{startReflection(t,e){t.subscribe(this,e),this.handleChange({token:t,target:e})}stopReflection(t,e){t.unsubscribe(this,e),this.remove(t,e)}handleChange(t){let{token:e,target:o}=t;this.add(e,o)}add(t,e){Et.getOrCreate(e).setProperty(t.cssCustomProperty,this.resolveCSSValue($.getOrCreate(e).get(t)))}remove(t,e){Et.getOrCreate(e).removeProperty(t.cssCustomProperty)}resolveCSSValue(t){return t&&typeof t.createCSS=="function"?t.createCSS():t}},xi=class{constructor(t,e,o){this.source=t,this.token=e,this.node=o,this.dependencies=new Set,this.observer=b.binding(t,this,!1),this.observer.handleChange=this.observer.call,this.handleChange()}disconnect(){this.observer.disconnect()}handleChange(){this.node.store.set(this.token,this.observer.observe(this.node.target,lt))}},wi=class{constructor(){this.values=new Map}set(t,e){this.values.get(t)!==e&&(this.values.set(t,e),b.getNotifier(this).notify(t.id))}get(t){return b.track(this,t.id),this.values.get(t)}delete(t){this.values.delete(t)}all(){return this.values.entries()}},re=new WeakMap,ne=new WeakMap,$=class{constructor(t){this.target=t,this.store=new wi,this.children=[],this.assignedValues=new Map,this.reflecting=new Set,this.bindingObservers=new Map,this.tokenValueChangeHandler={handleChange:(e,o)=>{let r=B.getTokenById(o);if(r&&(r.notify(this.target),B.isCSSDesignToken(r))){let n=this.parent,s=this.isReflecting(r);if(n){let a=n.get(r),c=e.get(r);a!==c&&!s?this.reflectToCSS(r):a===c&&s&&this.stopReflectToCSS(r)}else s||this.reflectToCSS(r)}}},re.set(t,this),b.getNotifier(this.store).subscribe(this.tokenValueChangeHandler),t instanceof ct?t.$fastController.addBehaviors([this]):t.isConnected&&this.bind()}static getOrCreate(t){return re.get(t)||new $(t)}static existsFor(t){return re.has(t)}static findParent(t){if(ot!==t.target){let e=ie(t.target);for(;e!==null;){if(re.has(e))return re.get(e);e=ie(e)}return $.getOrCreate(ot)}return null}static findClosestAssignedNode(t,e){let o=e;do{if(o.has(t))return o;o=o.parent?o.parent:o.target!==ot?$.getOrCreate(ot):null}while(o!==null);return null}get parent(){return ne.get(this)||null}has(t){return this.assignedValues.has(t)}get(t){let e=this.store.get(t);if(e!==void 0)return e;let o=this.getRaw(t);if(o!==void 0)return this.hydrate(t,o),this.get(t)}getRaw(t){var e;return this.assignedValues.has(t)?this.assignedValues.get(t):(e=$.findClosestAssignedNode(t,this))===null||e===void 0?void 0:e.getRaw(t)}set(t,e){B.isDerivedDesignTokenValue(this.assignedValues.get(t))&&this.tearDownBindingObserver(t),this.assignedValues.set(t,e),B.isDerivedDesignTokenValue(e)?this.setupBindingObserver(t,e):this.store.set(t,e)}delete(t){this.assignedValues.delete(t),this.tearDownBindingObserver(t);let e=this.getRaw(t);e?this.hydrate(t,e):this.store.delete(t)}bind(){let t=$.findParent(this);t&&t.appendChild(this);for(let e of this.assignedValues.keys())e.notify(this.target)}unbind(){this.parent&&ne.get(this).removeChild(this)}appendChild(t){t.parent&&ne.get(t).removeChild(t);let e=this.children.filter(o=>t.contains(o));ne.set(t,this),this.children.push(t),e.forEach(o=>t.appendChild(o)),b.getNotifier(this.store).subscribe(t);for(let[o,r]of this.store.all())t.hydrate(o,this.bindingObservers.has(o)?this.getRaw(o):r)}removeChild(t){let e=this.children.indexOf(t);return e!==-1&&this.children.splice(e,1),b.getNotifier(this.store).unsubscribe(t),t.parent===this?ne.delete(t):!1}contains(t){return No(this.target,t.target)}reflectToCSS(t){this.isReflecting(t)||(this.reflecting.add(t),$.cssCustomPropertyReflector.startReflection(t,this.target))}stopReflectToCSS(t){this.isReflecting(t)&&(this.reflecting.delete(t),$.cssCustomPropertyReflector.stopReflection(t,this.target))}isReflecting(t){return this.reflecting.has(t)}handleChange(t,e){let o=B.getTokenById(e);o&&this.hydrate(o,this.getRaw(o))}hydrate(t,e){if(!this.has(t)){let o=this.bindingObservers.get(t);B.isDerivedDesignTokenValue(e)?o?o.source!==e&&(this.tearDownBindingObserver(t),this.setupBindingObserver(t,e)):this.setupBindingObserver(t,e):(o&&this.tearDownBindingObserver(t),this.store.set(t,e))}}setupBindingObserver(t,e){let o=new xi(e,t,this);return this.bindingObservers.set(t,o),o}tearDownBindingObserver(t){return this.bindingObservers.has(t)?(this.bindingObservers.get(t).disconnect(),this.bindingObservers.delete(t),!0):!1}};$.cssCustomPropertyReflector=new yi;l([f],$.prototype,"children",void 0);function rn(i){return B.from(i)}var se=Object.freeze({create:rn,notifyConnection(i){return!i.isConnected||!$.existsFor(i)?!1:($.getOrCreate(i).bind(),!0)},notifyDisconnection(i){return i.isConnected||!$.existsFor(i)?!1:($.getOrCreate(i).unbind(),!0)},registerRoot(i=ot){T.registerRoot(i)},unregisterRoot(i=ot){T.unregisterRoot(i)}});var ki=Object.freeze({definitionCallbackOnly:null,ignoreDuplicate:Symbol()}),Ci=new Map,Oe=new Map,Ut=null,ae=x.createInterface(i=>i.cachedCallback(t=>(Ut===null&&(Ut=new Ae(null,t)),Ut))),Si=Object.freeze({tagFor(i){return Oe.get(i)},responsibleFor(i){let t=i.$$designSystem$$;return t||x.findResponsibleContainer(i).get(ae)},getOrCreate(i){if(!i)return Ut===null&&(Ut=x.getOrCreateDOMContainer().get(ae)),Ut;let t=i.$$designSystem$$;if(t)return t;let e=x.getOrCreateDOMContainer(i);if(e.has(ae,!1))return e.get(ae);{let o=new Ae(i,e);return e.register(St.instance(ae,o)),o}}});function nn(i,t,e){return typeof i=="string"?{name:i,type:t,callback:e}:i}var Ae=class{constructor(t,e){this.owner=t,this.container=e,this.designTokensInitialized=!1,this.prefix="fast",this.shadowRootMode=void 0,this.disambiguate=()=>ki.definitionCallbackOnly,t!==null&&(t.$$designSystem$$=this)}withPrefix(t){return this.prefix=t,this}withShadowRootMode(t){return this.shadowRootMode=t,this}withElementDisambiguation(t){return this.disambiguate=t,this}withDesignTokenRoot(t){return this.designTokenRoot=t,this}register(...t){let e=this.container,o=[],r=this.disambiguate,n=this.shadowRootMode,s={elementPrefix:this.prefix,tryDefineElement(a,c,d){let u=nn(a,c,d),{name:v,callback:A,baseClass:q}=u,{type:F}=u,X=v,he=Ci.get(X),He=!0;for(;he;){let Xi=r(X,F,he);switch(Xi){case ki.ignoreDuplicate:return;case ki.definitionCallbackOnly:He=!1,he=void 0;break;default:X=Xi,he=Ci.get(X);break}}He&&((Oe.has(F)||F===k)&&(F=class extends F{}),Ci.set(X,F),Oe.set(F,X),q&&Oe.set(q,X)),o.push(new $i(e,X,F,n,A,He))}};this.designTokensInitialized||(this.designTokensInitialized=!0,this.designTokenRoot!==null&&se.registerRoot(this.designTokenRoot)),e.registerWithContext(s,...t);for(let a of o)a.callback(a),a.willDefine&&a.definition!==null&&a.definition.define();return this}},$i=class{constructor(t,e,o,r,n,s){this.container=t,this.name=e,this.type=o,this.shadowRootMode=r,this.callback=n,this.willDefine=s,this.definition=null}definePresentation(t){$e.define(this.name,t,this.container)}defineElement(t){this.definition=new K(this.type,Object.assign(Object.assign({},t),{name:this.name}))}tagFor(t){return Si.tagFor(t)}};var zo=(i,t)=>C`
112
+ `;var pi=class extends k{},Ie=class extends Ho(pi){constructor(){super(...arguments),this.proxy=document.createElement("input")}};var At=class extends Ie{constructor(){super(),this.initialValue="on",this.indeterminate=!1,this.keypressHandler=t=>{if(!this.readOnly)switch(t.key){case ft:this.indeterminate&&(this.indeterminate=!1),this.checked=!this.checked;break}},this.clickHandler=t=>{!this.disabled&&!this.readOnly&&(this.indeterminate&&(this.indeterminate=!1),this.checked=!this.checked)},this.proxy.setAttribute("type","checkbox")}readOnlyChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.readOnly=this.readOnly)}};l([h({attribute:"readonly",mode:"boolean"})],At.prototype,"readOnly",void 0);l([f],At.prototype,"defaultSlottedNodes",void 0);l([f],At.prototype,"indeterminate",void 0);function fi(i){return Ao(i)&&(i.getAttribute("role")==="option"||i instanceof HTMLOptionElement)}var W=class extends k{constructor(t,e,o,r){super(),this.defaultSelected=!1,this.dirtySelected=!1,this.selected=this.defaultSelected,this.dirtyValue=!1,t&&(this.textContent=t),e&&(this.initialValue=e),o&&(this.defaultSelected=o),r&&(this.selected=r),this.proxy=new Option(`${this.textContent}`,this.initialValue,this.defaultSelected,this.selected),this.proxy.disabled=this.disabled}checkedChanged(t,e){if(typeof e=="boolean"){this.ariaChecked=e?"true":"false";return}this.ariaChecked=null}contentChanged(t,e){this.proxy instanceof HTMLOptionElement&&(this.proxy.textContent=this.textContent),this.$emit("contentchange",null,{bubbles:!0})}defaultSelectedChanged(){this.dirtySelected||(this.selected=this.defaultSelected,this.proxy instanceof HTMLOptionElement&&(this.proxy.selected=this.defaultSelected))}disabledChanged(t,e){this.ariaDisabled=this.disabled?"true":"false",this.proxy instanceof HTMLOptionElement&&(this.proxy.disabled=this.disabled)}selectedAttributeChanged(){this.defaultSelected=this.selectedAttribute,this.proxy instanceof HTMLOptionElement&&(this.proxy.defaultSelected=this.defaultSelected)}selectedChanged(){this.ariaSelected=this.selected?"true":"false",this.dirtySelected||(this.dirtySelected=!0),this.proxy instanceof HTMLOptionElement&&(this.proxy.selected=this.selected)}initialValueChanged(t,e){this.dirtyValue||(this.value=this.initialValue,this.dirtyValue=!1)}get label(){var t;return(t=this.value)!==null&&t!==void 0?t:this.text}get text(){var t,e;return(e=(t=this.textContent)===null||t===void 0?void 0:t.replace(/\s+/g," ").trim())!==null&&e!==void 0?e:""}set value(t){let e=`${t??""}`;this._value=e,this.dirtyValue=!0,this.proxy instanceof HTMLOptionElement&&(this.proxy.value=e),b.notify(this,"value")}get value(){var t;return b.track(this,"value"),(t=this._value)!==null&&t!==void 0?t:this.text}get form(){return this.proxy?this.proxy.form:null}};l([f],W.prototype,"checked",void 0);l([f],W.prototype,"content",void 0);l([f],W.prototype,"defaultSelected",void 0);l([h({mode:"boolean"})],W.prototype,"disabled",void 0);l([h({attribute:"selected",mode:"boolean"})],W.prototype,"selectedAttribute",void 0);l([f],W.prototype,"selected",void 0);l([h({attribute:"value",mode:"fromView"})],W.prototype,"initialValue",void 0);var mt=class{};l([f],mt.prototype,"ariaChecked",void 0);l([f],mt.prototype,"ariaPosInSet",void 0);l([f],mt.prototype,"ariaSelected",void 0);l([f],mt.prototype,"ariaSetSize",void 0);M(mt,y);M(W,U,mt);var E=class extends k{constructor(){super(...arguments),this._options=[],this.selectedIndex=-1,this.selectedOptions=[],this.shouldSkipFocus=!1,this.typeaheadBuffer="",this.typeaheadExpired=!0,this.typeaheadTimeout=-1}get firstSelectedOption(){var t;return(t=this.selectedOptions[0])!==null&&t!==void 0?t:null}get hasSelectableOptions(){return this.options.length>0&&!this.options.every(t=>t.disabled)}get length(){var t,e;return(e=(t=this.options)===null||t===void 0?void 0:t.length)!==null&&e!==void 0?e:0}get options(){return b.track(this,"options"),this._options}set options(t){this._options=t,b.notify(this,"options")}get typeAheadExpired(){return this.typeaheadExpired}set typeAheadExpired(t){this.typeaheadExpired=t}clickHandler(t){let e=t.target.closest("option,[role=option]");if(e&&!e.disabled)return this.selectedIndex=this.options.indexOf(e),!0}focusAndScrollOptionIntoView(t=this.firstSelectedOption){this.contains(document.activeElement)&&t!==null&&(t.focus(),requestAnimationFrame(()=>{t.scrollIntoView({block:"nearest"})}))}focusinHandler(t){!this.shouldSkipFocus&&t.target===t.currentTarget&&(this.setSelectedOptions(),this.focusAndScrollOptionIntoView()),this.shouldSkipFocus=!1}getTypeaheadMatches(){let t=this.typeaheadBuffer.replace(/[.*+\-?^${}()|[\]\\]/g,"\\$&"),e=new RegExp(`^${t}`,"gi");return this.options.filter(o=>o.text.trim().match(e))}getSelectableIndex(t=this.selectedIndex,e){let o=t>e?-1:t<e?1:0,r=t+o,n=null;switch(o){case-1:{n=this.options.reduceRight((s,a,c)=>!s&&!a.disabled&&c<r?a:s,n);break}case 1:{n=this.options.reduce((s,a,c)=>!s&&!a.disabled&&c>r?a:s,n);break}}return this.options.indexOf(n)}handleChange(t,e){switch(e){case"selected":{E.slottedOptionFilter(t)&&(this.selectedIndex=this.options.indexOf(t)),this.setSelectedOptions();break}}}handleTypeAhead(t){this.typeaheadTimeout&&window.clearTimeout(this.typeaheadTimeout),this.typeaheadTimeout=window.setTimeout(()=>this.typeaheadExpired=!0,E.TYPE_AHEAD_TIMEOUT_MS),!(t.length>1)&&(this.typeaheadBuffer=`${this.typeaheadExpired?"":this.typeaheadBuffer}${t}`)}keydownHandler(t){if(this.disabled)return!0;this.shouldSkipFocus=!1;let e=t.key;switch(e){case ut:{t.shiftKey||(t.preventDefault(),this.selectFirstOption());break}case dt:{t.shiftKey||(t.preventDefault(),this.selectNextOption());break}case ht:{t.shiftKey||(t.preventDefault(),this.selectPreviousOption());break}case pt:{t.preventDefault(),this.selectLastOption();break}case jt:return this.focusAndScrollOptionIntoView(),!0;case Nt:case zt:return!0;case ft:if(this.typeaheadExpired)return!0;default:return e.length===1&&this.handleTypeAhead(`${e}`),!0}}mousedownHandler(t){return this.shouldSkipFocus=!this.contains(document.activeElement),!0}multipleChanged(t,e){this.ariaMultiSelectable=e?"true":null}selectedIndexChanged(t,e){var o;if(!this.hasSelectableOptions){this.selectedIndex=-1;return}if(!((o=this.options[this.selectedIndex])===null||o===void 0)&&o.disabled&&typeof t=="number"){let r=this.getSelectableIndex(t,e),n=r>-1?r:t;this.selectedIndex=n,e===n&&this.selectedIndexChanged(e,n);return}this.setSelectedOptions()}selectedOptionsChanged(t,e){var o;let r=e.filter(E.slottedOptionFilter);(o=this.options)===null||o===void 0||o.forEach(n=>{let s=b.getNotifier(n);s.unsubscribe(this,"selected"),n.selected=r.includes(n),s.subscribe(this,"selected")})}selectFirstOption(){var t,e;this.disabled||(this.selectedIndex=(e=(t=this.options)===null||t===void 0?void 0:t.findIndex(o=>!o.disabled))!==null&&e!==void 0?e:-1)}selectLastOption(){this.disabled||(this.selectedIndex=To(this.options,t=>!t.disabled))}selectNextOption(){!this.disabled&&this.selectedIndex<this.options.length-1&&(this.selectedIndex+=1)}selectPreviousOption(){!this.disabled&&this.selectedIndex>0&&(this.selectedIndex=this.selectedIndex-1)}setDefaultSelectedOption(){var t,e;this.selectedIndex=(e=(t=this.options)===null||t===void 0?void 0:t.findIndex(o=>o.defaultSelected))!==null&&e!==void 0?e:-1}setSelectedOptions(){var t,e,o;!((t=this.options)===null||t===void 0)&&t.length&&(this.selectedOptions=[this.options[this.selectedIndex]],this.ariaActiveDescendant=(o=(e=this.firstSelectedOption)===null||e===void 0?void 0:e.id)!==null&&o!==void 0?o:"",this.focusAndScrollOptionIntoView())}slottedOptionsChanged(t,e){this.options=e.reduce((r,n)=>(fi(n)&&r.push(n),r),[]);let o=`${this.options.length}`;this.options.forEach((r,n)=>{r.id||(r.id=Tt("option-")),r.ariaPosInSet=`${n+1}`,r.ariaSetSize=o}),this.$fastController.isConnected&&(this.setSelectedOptions(),this.setDefaultSelectedOption())}typeaheadBufferChanged(t,e){if(this.$fastController.isConnected){let o=this.getTypeaheadMatches();if(o.length){let r=this.options.indexOf(o[0]);r>-1&&(this.selectedIndex=r)}this.typeaheadExpired=!1}}};E.slottedOptionFilter=i=>fi(i)&&!i.hidden;E.TYPE_AHEAD_TIMEOUT_MS=1e3;l([h({mode:"boolean"})],E.prototype,"disabled",void 0);l([f],E.prototype,"selectedIndex",void 0);l([f],E.prototype,"selectedOptions",void 0);l([f],E.prototype,"slottedOptions",void 0);l([f],E.prototype,"typeaheadBuffer",void 0);var et=class{};l([f],et.prototype,"ariaActiveDescendant",void 0);l([f],et.prototype,"ariaDisabled",void 0);l([f],et.prototype,"ariaExpanded",void 0);l([f],et.prototype,"ariaMultiSelectable",void 0);M(et,y);M(E,et);var ee={above:"above",below:"below"};function ie(i){let t=i.parentElement;if(t)return t;{let e=i.getRootNode();if(e.host instanceof HTMLElement)return e.host}return null}function zo(i,t){let e=t;for(;e!==null;){if(e===i)return!0;e=ie(e)}return!1}var it=document.createElement("div");function on(i){return i instanceof ct}var oe=class{setProperty(t,e){m.queueUpdate(()=>this.target.setProperty(t,e))}removeProperty(t){m.queueUpdate(()=>this.target.removeProperty(t))}},bi=class extends oe{constructor(t){super();let e=new CSSStyleSheet;this.target=e.cssRules[e.insertRule(":host{}")].style,t.$fastController.addStyles(S.create([e]))}},gi=class extends oe{constructor(){super();let t=new CSSStyleSheet;this.target=t.cssRules[t.insertRule(":root{}")].style,document.adoptedStyleSheets=[...document.adoptedStyleSheets,t]}},vi=class extends oe{constructor(){super(),this.style=document.createElement("style"),document.head.appendChild(this.style);let{sheet:t}=this.style;if(t){let e=t.insertRule(":root{}",t.cssRules.length);this.target=t.cssRules[e].style}}},Te=class{constructor(t){this.store=new Map,this.target=null;let e=t.$fastController;this.style=document.createElement("style"),e.addStyles(this.style),b.getNotifier(e).subscribe(this,"isConnected"),this.handleChange(e,"isConnected")}targetChanged(){if(this.target!==null)for(let[t,e]of this.store.entries())this.target.setProperty(t,e)}setProperty(t,e){this.store.set(t,e),m.queueUpdate(()=>{this.target!==null&&this.target.setProperty(t,e)})}removeProperty(t){this.store.delete(t),m.queueUpdate(()=>{this.target!==null&&this.target.removeProperty(t)})}handleChange(t,e){let{sheet:o}=this.style;if(o){let r=o.insertRule(":host{}",o.cssRules.length);this.target=o.cssRules[r].style}else this.target=null}};l([f],Te.prototype,"target",void 0);var yi=class{constructor(t){this.target=t.style}setProperty(t,e){m.queueUpdate(()=>this.target.setProperty(t,e))}removeProperty(t){m.queueUpdate(()=>this.target.removeProperty(t))}},T=class{setProperty(t,e){T.properties[t]=e;for(let o of T.roots.values())Et.getOrCreate(T.normalizeRoot(o)).setProperty(t,e)}removeProperty(t){delete T.properties[t];for(let e of T.roots.values())Et.getOrCreate(T.normalizeRoot(e)).removeProperty(t)}static registerRoot(t){let{roots:e}=T;if(!e.has(t)){e.add(t);let o=Et.getOrCreate(this.normalizeRoot(t));for(let r in T.properties)o.setProperty(r,T.properties[r])}}static unregisterRoot(t){let{roots:e}=T;if(e.has(t)){e.delete(t);let o=Et.getOrCreate(T.normalizeRoot(t));for(let r in T.properties)o.removeProperty(r)}}static normalizeRoot(t){return t===it?document:t}};T.roots=new Set;T.properties={};var mi=new WeakMap,rn=m.supportsAdoptedStyleSheets?bi:Te,Et=Object.freeze({getOrCreate(i){if(mi.has(i))return mi.get(i);let t;return i===it?t=new T:i instanceof Document?t=m.supportsAdoptedStyleSheets?new gi:new vi:on(i)?t=new rn(i):t=new yi(i),mi.set(i,t),t}});var B=class extends Ct{constructor(t){super(),this.subscribers=new WeakMap,this._appliedTo=new Set,this.name=t.name,t.cssCustomPropertyName!==null&&(this.cssCustomProperty=`--${t.cssCustomPropertyName}`,this.cssVar=`var(${this.cssCustomProperty})`),this.id=B.uniqueId(),B.tokensById.set(this.id,this)}get appliedTo(){return[...this._appliedTo]}static from(t){return new B({name:typeof t=="string"?t:t.name,cssCustomPropertyName:typeof t=="string"?t:t.cssCustomPropertyName===void 0?t.name:t.cssCustomPropertyName})}static isCSSDesignToken(t){return typeof t.cssCustomProperty=="string"}static isDerivedDesignTokenValue(t){return typeof t=="function"}static getTokenById(t){return B.tokensById.get(t)}getOrCreateSubscriberSet(t=this){return this.subscribers.get(t)||this.subscribers.set(t,new Set)&&this.subscribers.get(t)}createCSS(){return this.cssVar||""}getValueFor(t){let e=$.getOrCreate(t).get(this);if(e!==void 0)return e;throw new Error(`Value could not be retrieved for token named "${this.name}". Ensure the value is set for ${t} or an ancestor of ${t}.`)}setValueFor(t,e){return this._appliedTo.add(t),e instanceof B&&(e=this.alias(e)),$.getOrCreate(t).set(this,e),this}deleteValueFor(t){return this._appliedTo.delete(t),$.existsFor(t)&&$.getOrCreate(t).delete(this),this}withDefault(t){return this.setValueFor(it,t),this}subscribe(t,e){let o=this.getOrCreateSubscriberSet(e);e&&!$.existsFor(e)&&$.getOrCreate(e),o.has(t)||o.add(t)}unsubscribe(t,e){let o=this.subscribers.get(e||this);o&&o.has(t)&&o.delete(t)}notify(t){let e=Object.freeze({token:this,target:t});this.subscribers.has(this)&&this.subscribers.get(this).forEach(o=>o.handleChange(e)),this.subscribers.has(t)&&this.subscribers.get(t).forEach(o=>o.handleChange(e))}alias(t){return e=>t.getValueFor(e)}};B.uniqueId=(()=>{let i=0;return()=>(i++,i.toString(16))})();B.tokensById=new Map;var xi=class{startReflection(t,e){t.subscribe(this,e),this.handleChange({token:t,target:e})}stopReflection(t,e){t.unsubscribe(this,e),this.remove(t,e)}handleChange(t){let{token:e,target:o}=t;this.add(e,o)}add(t,e){Et.getOrCreate(e).setProperty(t.cssCustomProperty,this.resolveCSSValue($.getOrCreate(e).get(t)))}remove(t,e){Et.getOrCreate(e).removeProperty(t.cssCustomProperty)}resolveCSSValue(t){return t&&typeof t.createCSS=="function"?t.createCSS():t}},wi=class{constructor(t,e,o){this.source=t,this.token=e,this.node=o,this.dependencies=new Set,this.observer=b.binding(t,this,!1),this.observer.handleChange=this.observer.call,this.handleChange()}disconnect(){this.observer.disconnect()}handleChange(){this.node.store.set(this.token,this.observer.observe(this.node.target,lt))}},ki=class{constructor(){this.values=new Map}set(t,e){this.values.get(t)!==e&&(this.values.set(t,e),b.getNotifier(this).notify(t.id))}get(t){return b.track(this,t.id),this.values.get(t)}delete(t){this.values.delete(t)}all(){return this.values.entries()}},re=new WeakMap,ne=new WeakMap,$=class{constructor(t){this.target=t,this.store=new ki,this.children=[],this.assignedValues=new Map,this.reflecting=new Set,this.bindingObservers=new Map,this.tokenValueChangeHandler={handleChange:(e,o)=>{let r=B.getTokenById(o);if(r&&(r.notify(this.target),B.isCSSDesignToken(r))){let n=this.parent,s=this.isReflecting(r);if(n){let a=n.get(r),c=e.get(r);a!==c&&!s?this.reflectToCSS(r):a===c&&s&&this.stopReflectToCSS(r)}else s||this.reflectToCSS(r)}}},re.set(t,this),b.getNotifier(this.store).subscribe(this.tokenValueChangeHandler),t instanceof ct?t.$fastController.addBehaviors([this]):t.isConnected&&this.bind()}static getOrCreate(t){return re.get(t)||new $(t)}static existsFor(t){return re.has(t)}static findParent(t){if(it!==t.target){let e=ie(t.target);for(;e!==null;){if(re.has(e))return re.get(e);e=ie(e)}return $.getOrCreate(it)}return null}static findClosestAssignedNode(t,e){let o=e;do{if(o.has(t))return o;o=o.parent?o.parent:o.target!==it?$.getOrCreate(it):null}while(o!==null);return null}get parent(){return ne.get(this)||null}has(t){return this.assignedValues.has(t)}get(t){let e=this.store.get(t);if(e!==void 0)return e;let o=this.getRaw(t);if(o!==void 0)return this.hydrate(t,o),this.get(t)}getRaw(t){var e;return this.assignedValues.has(t)?this.assignedValues.get(t):(e=$.findClosestAssignedNode(t,this))===null||e===void 0?void 0:e.getRaw(t)}set(t,e){B.isDerivedDesignTokenValue(this.assignedValues.get(t))&&this.tearDownBindingObserver(t),this.assignedValues.set(t,e),B.isDerivedDesignTokenValue(e)?this.setupBindingObserver(t,e):this.store.set(t,e)}delete(t){this.assignedValues.delete(t),this.tearDownBindingObserver(t);let e=this.getRaw(t);e?this.hydrate(t,e):this.store.delete(t)}bind(){let t=$.findParent(this);t&&t.appendChild(this);for(let e of this.assignedValues.keys())e.notify(this.target)}unbind(){this.parent&&ne.get(this).removeChild(this)}appendChild(t){t.parent&&ne.get(t).removeChild(t);let e=this.children.filter(o=>t.contains(o));ne.set(t,this),this.children.push(t),e.forEach(o=>t.appendChild(o)),b.getNotifier(this.store).subscribe(t);for(let[o,r]of this.store.all())t.hydrate(o,this.bindingObservers.has(o)?this.getRaw(o):r)}removeChild(t){let e=this.children.indexOf(t);return e!==-1&&this.children.splice(e,1),b.getNotifier(this.store).unsubscribe(t),t.parent===this?ne.delete(t):!1}contains(t){return zo(this.target,t.target)}reflectToCSS(t){this.isReflecting(t)||(this.reflecting.add(t),$.cssCustomPropertyReflector.startReflection(t,this.target))}stopReflectToCSS(t){this.isReflecting(t)&&(this.reflecting.delete(t),$.cssCustomPropertyReflector.stopReflection(t,this.target))}isReflecting(t){return this.reflecting.has(t)}handleChange(t,e){let o=B.getTokenById(e);o&&this.hydrate(o,this.getRaw(o))}hydrate(t,e){if(!this.has(t)){let o=this.bindingObservers.get(t);B.isDerivedDesignTokenValue(e)?o?o.source!==e&&(this.tearDownBindingObserver(t),this.setupBindingObserver(t,e)):this.setupBindingObserver(t,e):(o&&this.tearDownBindingObserver(t),this.store.set(t,e))}}setupBindingObserver(t,e){let o=new wi(e,t,this);return this.bindingObservers.set(t,o),o}tearDownBindingObserver(t){return this.bindingObservers.has(t)?(this.bindingObservers.get(t).disconnect(),this.bindingObservers.delete(t),!0):!1}};$.cssCustomPropertyReflector=new xi;l([f],$.prototype,"children",void 0);function nn(i){return B.from(i)}var se=Object.freeze({create:nn,notifyConnection(i){return!i.isConnected||!$.existsFor(i)?!1:($.getOrCreate(i).bind(),!0)},notifyDisconnection(i){return i.isConnected||!$.existsFor(i)?!1:($.getOrCreate(i).unbind(),!0)},registerRoot(i=it){T.registerRoot(i)},unregisterRoot(i=it){T.unregisterRoot(i)}});var Ci=Object.freeze({definitionCallbackOnly:null,ignoreDuplicate:Symbol()}),$i=new Map,Oe=new Map,Ut=null,ae=x.createInterface(i=>i.cachedCallback(t=>(Ut===null&&(Ut=new Ae(null,t)),Ut))),Ii=Object.freeze({tagFor(i){return Oe.get(i)},responsibleFor(i){let t=i.$$designSystem$$;return t||x.findResponsibleContainer(i).get(ae)},getOrCreate(i){if(!i)return Ut===null&&(Ut=x.getOrCreateDOMContainer().get(ae)),Ut;let t=i.$$designSystem$$;if(t)return t;let e=x.getOrCreateDOMContainer(i);if(e.has(ae,!1))return e.get(ae);{let o=new Ae(i,e);return e.register(St.instance(ae,o)),o}}});function sn(i,t,e){return typeof i=="string"?{name:i,type:t,callback:e}:i}var Ae=class{constructor(t,e){this.owner=t,this.container=e,this.designTokensInitialized=!1,this.prefix="fast",this.shadowRootMode=void 0,this.disambiguate=()=>Ci.definitionCallbackOnly,t!==null&&(t.$$designSystem$$=this)}withPrefix(t){return this.prefix=t,this}withShadowRootMode(t){return this.shadowRootMode=t,this}withElementDisambiguation(t){return this.disambiguate=t,this}withDesignTokenRoot(t){return this.designTokenRoot=t,this}register(...t){let e=this.container,o=[],r=this.disambiguate,n=this.shadowRootMode,s={elementPrefix:this.prefix,tryDefineElement(a,c,d){let u=sn(a,c,d),{name:v,callback:A,baseClass:q}=u,{type:F}=u,X=v,he=$i.get(X),Ne=!0;for(;he;){let Yi=r(X,F,he);switch(Yi){case Ci.ignoreDuplicate:return;case Ci.definitionCallbackOnly:Ne=!1,he=void 0;break;default:X=Yi,he=$i.get(X);break}}Ne&&((Oe.has(F)||F===k)&&(F=class extends F{}),$i.set(X,F),Oe.set(F,X),q&&Oe.set(q,X)),o.push(new Si(e,X,F,n,A,Ne))}};this.designTokensInitialized||(this.designTokensInitialized=!0,this.designTokenRoot!==null&&se.registerRoot(this.designTokenRoot)),e.registerWithContext(s,...t);for(let a of o)a.callback(a),a.willDefine&&a.definition!==null&&a.definition.define();return this}},Si=class{constructor(t,e,o,r,n,s){this.container=t,this.name=e,this.type=o,this.shadowRootMode=r,this.callback=n,this.willDefine=s,this.definition=null}definePresentation(t){$e.define(this.name,t,this.container)}defineElement(t){this.definition=new Z(this.type,Object.assign(Object.assign({},t),{name:this.name}))}tagFor(t){return Ii.tagFor(t)}};var jo=(i,t)=>C`
113
113
  <template
114
114
  aria-checked="${e=>e.ariaChecked}"
115
115
  aria-disabled="${e=>e.ariaDisabled}"
@@ -119,13 +119,13 @@ function Ne(i){return i.type==="int"?{type:"int",value:Cr("",i.value)}:i}functio
119
119
  class="${e=>[e.checked&&"checked",e.selected&&"selected",e.disabled&&"disabled"].filter(Boolean).join(" ")}"
120
120
  role="option"
121
121
  >
122
- ${et(i,t)}
122
+ ${tt(i,t)}
123
123
  <span class="content" part="content">
124
124
  <slot ${j("content")}></slot>
125
125
  </span>
126
- ${tt(i,t)}
126
+ ${K(i,t)}
127
127
  </template>
128
- `;var Pt=class extends E{constructor(){super(...arguments),this.activeIndex=-1,this.rangeStartIndex=-1}get activeOption(){return this.options[this.activeIndex]}get checkedOptions(){var t;return(t=this.options)===null||t===void 0?void 0:t.filter(e=>e.checked)}get firstSelectedOptionIndex(){return this.options.indexOf(this.firstSelectedOption)}activeIndexChanged(t,e){var o,r;this.ariaActiveDescendant=(r=(o=this.options[e])===null||o===void 0?void 0:o.id)!==null&&r!==void 0?r:"",this.focusAndScrollOptionIntoView()}checkActiveIndex(){if(!this.multiple)return;let t=this.activeOption;t&&(t.checked=!0)}checkFirstOption(t=!1){t?(this.rangeStartIndex===-1&&(this.rangeStartIndex=this.activeIndex+1),this.options.forEach((e,o)=>{e.checked=te(o,this.rangeStartIndex)})):this.uncheckAllOptions(),this.activeIndex=0,this.checkActiveIndex()}checkLastOption(t=!1){t?(this.rangeStartIndex===-1&&(this.rangeStartIndex=this.activeIndex),this.options.forEach((e,o)=>{e.checked=te(o,this.rangeStartIndex,this.options.length)})):this.uncheckAllOptions(),this.activeIndex=this.options.length-1,this.checkActiveIndex()}connectedCallback(){super.connectedCallback(),this.addEventListener("focusout",this.focusoutHandler)}disconnectedCallback(){this.removeEventListener("focusout",this.focusoutHandler),super.disconnectedCallback()}checkNextOption(t=!1){t?(this.rangeStartIndex===-1&&(this.rangeStartIndex=this.activeIndex),this.options.forEach((e,o)=>{e.checked=te(o,this.rangeStartIndex,this.activeIndex+1)})):this.uncheckAllOptions(),this.activeIndex+=this.activeIndex<this.options.length-1?1:0,this.checkActiveIndex()}checkPreviousOption(t=!1){t?(this.rangeStartIndex===-1&&(this.rangeStartIndex=this.activeIndex),this.checkedOptions.length===1&&(this.rangeStartIndex+=1),this.options.forEach((e,o)=>{e.checked=te(o,this.activeIndex,this.rangeStartIndex)})):this.uncheckAllOptions(),this.activeIndex-=this.activeIndex>0?1:0,this.checkActiveIndex()}clickHandler(t){var e;if(!this.multiple)return super.clickHandler(t);let o=(e=t.target)===null||e===void 0?void 0:e.closest("[role=option]");if(!(!o||o.disabled))return this.uncheckAllOptions(),this.activeIndex=this.options.indexOf(o),this.checkActiveIndex(),this.toggleSelectedForAllCheckedOptions(),!0}focusAndScrollOptionIntoView(){super.focusAndScrollOptionIntoView(this.activeOption)}focusinHandler(t){if(!this.multiple)return super.focusinHandler(t);!this.shouldSkipFocus&&t.target===t.currentTarget&&(this.uncheckAllOptions(),this.activeIndex===-1&&(this.activeIndex=this.firstSelectedOptionIndex!==-1?this.firstSelectedOptionIndex:0),this.checkActiveIndex(),this.setSelectedOptions(),this.focusAndScrollOptionIntoView()),this.shouldSkipFocus=!1}focusoutHandler(t){this.multiple&&this.uncheckAllOptions()}keydownHandler(t){if(!this.multiple)return super.keydownHandler(t);if(this.disabled)return!0;let{key:e,shiftKey:o}=t;switch(this.shouldSkipFocus=!1,e){case ut:{this.checkFirstOption(o);return}case dt:{this.checkNextOption(o);return}case ht:{this.checkPreviousOption(o);return}case pt:{this.checkLastOption(o);return}case jt:return this.focusAndScrollOptionIntoView(),!0;case zt:return this.uncheckAllOptions(),this.checkActiveIndex(),!0;case ft:if(t.preventDefault(),this.typeAheadExpired){this.toggleSelectedForAllCheckedOptions();return}default:return e.length===1&&this.handleTypeAhead(`${e}`),!0}}mousedownHandler(t){if(t.offsetX>=0&&t.offsetX<=this.scrollWidth)return super.mousedownHandler(t)}multipleChanged(t,e){var o;this.ariaMultiSelectable=e?"true":null,(o=this.options)===null||o===void 0||o.forEach(r=>{r.checked=e?!1:void 0}),this.setSelectedOptions()}setSelectedOptions(){if(!this.multiple){super.setSelectedOptions();return}this.$fastController.isConnected&&this.options&&(this.selectedOptions=this.options.filter(t=>t.selected),this.focusAndScrollOptionIntoView())}sizeChanged(t,e){var o;let r=Math.max(0,parseInt((o=e?.toFixed())!==null&&o!==void 0?o:"",10));r!==e&&m.queueUpdate(()=>{this.size=r})}toggleSelectedForAllCheckedOptions(){let t=this.checkedOptions.filter(o=>!o.disabled),e=!t.every(o=>o.selected);t.forEach(o=>o.selected=e),this.selectedIndex=this.options.indexOf(t[t.length-1]),this.setSelectedOptions()}typeaheadBufferChanged(t,e){if(!this.multiple){super.typeaheadBufferChanged(t,e);return}if(this.$fastController.isConnected){let o=this.getTypeaheadMatches(),r=this.options.indexOf(o[0]);r>-1&&(this.activeIndex=r,this.uncheckAllOptions(),this.checkActiveIndex()),this.typeAheadExpired=!1}}uncheckAllOptions(t=!1){this.options.forEach(e=>e.checked=this.multiple?!1:void 0),t||(this.rangeStartIndex=-1)}};l([f],Pt.prototype,"activeIndex",void 0);l([h({mode:"boolean"})],Pt.prototype,"multiple",void 0);l([h({converter:Vt})],Pt.prototype,"size",void 0);var Ii=class extends k{},Ee=class extends Ot(Ii){constructor(){super(...arguments),this.proxy=document.createElement("input")}};var Ti={email:"email",password:"password",tel:"tel",text:"text",url:"url"};var _=class extends Ee{constructor(){super(...arguments),this.type=Ti.text}readOnlyChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.readOnly=this.readOnly,this.validate())}autofocusChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.autofocus=this.autofocus,this.validate())}placeholderChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.placeholder=this.placeholder)}typeChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.type=this.type,this.validate())}listChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.setAttribute("list",this.list),this.validate())}maxlengthChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.maxLength=this.maxlength,this.validate())}minlengthChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.minLength=this.minlength,this.validate())}patternChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.pattern=this.pattern,this.validate())}sizeChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.size=this.size)}spellcheckChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.spellcheck=this.spellcheck)}connectedCallback(){super.connectedCallback(),this.proxy.setAttribute("type",this.type),this.validate(),this.autofocus&&m.queueUpdate(()=>{this.focus()})}select(){this.control.select(),this.$emit("select")}handleTextInput(){this.value=this.control.value}handleChange(){this.$emit("change")}validate(){super.validate(this.control)}};l([h({attribute:"readonly",mode:"boolean"})],_.prototype,"readOnly",void 0);l([h({mode:"boolean"})],_.prototype,"autofocus",void 0);l([h],_.prototype,"placeholder",void 0);l([h],_.prototype,"type",void 0);l([h],_.prototype,"list",void 0);l([h({converter:Vt})],_.prototype,"maxlength",void 0);l([h({converter:Vt})],_.prototype,"minlength",void 0);l([h],_.prototype,"pattern",void 0);l([h({converter:Vt})],_.prototype,"size",void 0);l([h({mode:"boolean"})],_.prototype,"spellcheck",void 0);l([f],_.prototype,"defaultSlottedNodes",void 0);var Pe=class{};M(Pe,y);M(_,U,Pe);function jo(i,t,e){return i.nodeType!==Node.TEXT_NODE?!0:typeof i.nodeValue=="string"&&!!i.nodeValue.trim().length}var Oi=class extends Pt{},Fe=class extends Ot(Oi){constructor(){super(...arguments),this.proxy=document.createElement("select")}};var Y=class extends Fe{constructor(){super(...arguments),this.open=!1,this.forcedPosition=!1,this.listboxId=Tt("listbox-"),this.maxHeight=0}openChanged(t,e){if(this.collapsible){if(this.open){this.ariaControls=this.listboxId,this.ariaExpanded="true",this.setPositioning(),this.focusAndScrollOptionIntoView(),this.indexWhenOpened=this.selectedIndex,m.queueUpdate(()=>this.focus());return}this.ariaControls="",this.ariaExpanded="false"}}get collapsible(){return!(this.multiple||typeof this.size=="number")}get value(){return b.track(this,"value"),this._value}set value(t){var e,o,r,n,s,a,c;let d=`${this._value}`;if(!((e=this._options)===null||e===void 0)&&e.length){let u=this._options.findIndex(q=>q.value===t),v=(r=(o=this._options[this.selectedIndex])===null||o===void 0?void 0:o.value)!==null&&r!==void 0?r:null,A=(s=(n=this._options[u])===null||n===void 0?void 0:n.value)!==null&&s!==void 0?s:null;(u===-1||v!==A)&&(t="",this.selectedIndex=u),t=(c=(a=this.firstSelectedOption)===null||a===void 0?void 0:a.value)!==null&&c!==void 0?c:t}d!==t&&(this._value=t,super.valueChanged(d,t),b.notify(this,"value"),this.updateDisplayValue())}updateValue(t){var e,o;this.$fastController.isConnected&&(this.value=(o=(e=this.firstSelectedOption)===null||e===void 0?void 0:e.value)!==null&&o!==void 0?o:""),t&&(this.$emit("input"),this.$emit("change",this,{bubbles:!0,composed:void 0}))}selectedIndexChanged(t,e){super.selectedIndexChanged(t,e),this.updateValue()}positionChanged(t,e){this.positionAttribute=e,this.setPositioning()}setPositioning(){let t=this.getBoundingClientRect(),o=window.innerHeight-t.bottom;this.position=this.forcedPosition?this.positionAttribute:t.top>o?ee.above:ee.below,this.positionAttribute=this.forcedPosition?this.positionAttribute:this.position,this.maxHeight=this.position===ee.above?~~t.top:~~o}get displayValue(){var t,e;return b.track(this,"displayValue"),(e=(t=this.firstSelectedOption)===null||t===void 0?void 0:t.text)!==null&&e!==void 0?e:""}disabledChanged(t,e){super.disabledChanged&&super.disabledChanged(t,e),this.ariaDisabled=this.disabled?"true":"false"}formResetCallback(){this.setProxyOptions(),super.setDefaultSelectedOption(),this.selectedIndex===-1&&(this.selectedIndex=0)}clickHandler(t){if(!this.disabled){if(this.open){let e=t.target.closest("option,[role=option]");if(e&&e.disabled)return}return super.clickHandler(t),this.open=this.collapsible&&!this.open,!this.open&&this.indexWhenOpened!==this.selectedIndex&&this.updateValue(!0),!0}}focusoutHandler(t){var e;if(super.focusoutHandler(t),!this.open)return!0;let o=t.relatedTarget;if(this.isSameNode(o)){this.focus();return}!((e=this.options)===null||e===void 0)&&e.includes(o)||(this.open=!1,this.indexWhenOpened!==this.selectedIndex&&this.updateValue(!0))}handleChange(t,e){super.handleChange(t,e),e==="value"&&this.updateValue()}slottedOptionsChanged(t,e){this.options.forEach(o=>{b.getNotifier(o).unsubscribe(this,"value")}),super.slottedOptionsChanged(t,e),this.options.forEach(o=>{b.getNotifier(o).subscribe(this,"value")}),this.setProxyOptions(),this.updateValue()}mousedownHandler(t){var e;return t.offsetX>=0&&t.offsetX<=((e=this.listbox)===null||e===void 0?void 0:e.scrollWidth)?super.mousedownHandler(t):this.collapsible}multipleChanged(t,e){super.multipleChanged(t,e),this.proxy&&(this.proxy.multiple=e)}selectedOptionsChanged(t,e){var o;super.selectedOptionsChanged(t,e),(o=this.options)===null||o===void 0||o.forEach((r,n)=>{var s;let a=(s=this.proxy)===null||s===void 0?void 0:s.options.item(n);a&&(a.selected=r.selected)})}setDefaultSelectedOption(){var t;let e=(t=this.options)!==null&&t!==void 0?t:Array.from(this.children).filter(E.slottedOptionFilter),o=e?.findIndex(r=>r.hasAttribute("selected")||r.selected||r.value===this.value);if(o!==-1){this.selectedIndex=o;return}this.selectedIndex=0}setProxyOptions(){this.proxy instanceof HTMLSelectElement&&this.options&&(this.proxy.options.length=0,this.options.forEach(t=>{let e=t.proxy||(t instanceof HTMLOptionElement?t.cloneNode():null);e&&this.proxy.options.add(e)}))}keydownHandler(t){super.keydownHandler(t);let e=t.key||t.key.charCodeAt(0);switch(e){case ft:{t.preventDefault(),this.collapsible&&this.typeAheadExpired&&(this.open=!this.open);break}case ut:case pt:{t.preventDefault();break}case Nt:{t.preventDefault(),this.open=!this.open;break}case zt:{this.collapsible&&this.open&&(t.preventDefault(),this.open=!1);break}case jt:return this.collapsible&&this.open&&(t.preventDefault(),this.open=!1),!0}return!this.open&&this.indexWhenOpened!==this.selectedIndex&&(this.updateValue(!0),this.indexWhenOpened=this.selectedIndex),!(e===dt||e===ht)}connectedCallback(){super.connectedCallback(),this.forcedPosition=!!this.positionAttribute,this.addEventListener("contentchange",this.updateDisplayValue)}disconnectedCallback(){this.removeEventListener("contentchange",this.updateDisplayValue),super.disconnectedCallback()}sizeChanged(t,e){super.sizeChanged(t,e),this.proxy&&(this.proxy.size=e)}updateDisplayValue(){this.collapsible&&b.notify(this,"displayValue")}};l([h({attribute:"open",mode:"boolean"})],Y.prototype,"open",void 0);l([to],Y.prototype,"collapsible",null);l([f],Y.prototype,"control",void 0);l([h({attribute:"position"})],Y.prototype,"positionAttribute",void 0);l([f],Y.prototype,"position",void 0);l([f],Y.prototype,"maxHeight",void 0);var le=class{};l([f],le.prototype,"ariaControls",void 0);M(le,it);M(Y,U,le);var qo=(i,t)=>C`
128
+ `;var Pt=class extends E{constructor(){super(...arguments),this.activeIndex=-1,this.rangeStartIndex=-1}get activeOption(){return this.options[this.activeIndex]}get checkedOptions(){var t;return(t=this.options)===null||t===void 0?void 0:t.filter(e=>e.checked)}get firstSelectedOptionIndex(){return this.options.indexOf(this.firstSelectedOption)}activeIndexChanged(t,e){var o,r;this.ariaActiveDescendant=(r=(o=this.options[e])===null||o===void 0?void 0:o.id)!==null&&r!==void 0?r:"",this.focusAndScrollOptionIntoView()}checkActiveIndex(){if(!this.multiple)return;let t=this.activeOption;t&&(t.checked=!0)}checkFirstOption(t=!1){t?(this.rangeStartIndex===-1&&(this.rangeStartIndex=this.activeIndex+1),this.options.forEach((e,o)=>{e.checked=te(o,this.rangeStartIndex)})):this.uncheckAllOptions(),this.activeIndex=0,this.checkActiveIndex()}checkLastOption(t=!1){t?(this.rangeStartIndex===-1&&(this.rangeStartIndex=this.activeIndex),this.options.forEach((e,o)=>{e.checked=te(o,this.rangeStartIndex,this.options.length)})):this.uncheckAllOptions(),this.activeIndex=this.options.length-1,this.checkActiveIndex()}connectedCallback(){super.connectedCallback(),this.addEventListener("focusout",this.focusoutHandler)}disconnectedCallback(){this.removeEventListener("focusout",this.focusoutHandler),super.disconnectedCallback()}checkNextOption(t=!1){t?(this.rangeStartIndex===-1&&(this.rangeStartIndex=this.activeIndex),this.options.forEach((e,o)=>{e.checked=te(o,this.rangeStartIndex,this.activeIndex+1)})):this.uncheckAllOptions(),this.activeIndex+=this.activeIndex<this.options.length-1?1:0,this.checkActiveIndex()}checkPreviousOption(t=!1){t?(this.rangeStartIndex===-1&&(this.rangeStartIndex=this.activeIndex),this.checkedOptions.length===1&&(this.rangeStartIndex+=1),this.options.forEach((e,o)=>{e.checked=te(o,this.activeIndex,this.rangeStartIndex)})):this.uncheckAllOptions(),this.activeIndex-=this.activeIndex>0?1:0,this.checkActiveIndex()}clickHandler(t){var e;if(!this.multiple)return super.clickHandler(t);let o=(e=t.target)===null||e===void 0?void 0:e.closest("[role=option]");if(!(!o||o.disabled))return this.uncheckAllOptions(),this.activeIndex=this.options.indexOf(o),this.checkActiveIndex(),this.toggleSelectedForAllCheckedOptions(),!0}focusAndScrollOptionIntoView(){super.focusAndScrollOptionIntoView(this.activeOption)}focusinHandler(t){if(!this.multiple)return super.focusinHandler(t);!this.shouldSkipFocus&&t.target===t.currentTarget&&(this.uncheckAllOptions(),this.activeIndex===-1&&(this.activeIndex=this.firstSelectedOptionIndex!==-1?this.firstSelectedOptionIndex:0),this.checkActiveIndex(),this.setSelectedOptions(),this.focusAndScrollOptionIntoView()),this.shouldSkipFocus=!1}focusoutHandler(t){this.multiple&&this.uncheckAllOptions()}keydownHandler(t){if(!this.multiple)return super.keydownHandler(t);if(this.disabled)return!0;let{key:e,shiftKey:o}=t;switch(this.shouldSkipFocus=!1,e){case ut:{this.checkFirstOption(o);return}case dt:{this.checkNextOption(o);return}case ht:{this.checkPreviousOption(o);return}case pt:{this.checkLastOption(o);return}case jt:return this.focusAndScrollOptionIntoView(),!0;case zt:return this.uncheckAllOptions(),this.checkActiveIndex(),!0;case ft:if(t.preventDefault(),this.typeAheadExpired){this.toggleSelectedForAllCheckedOptions();return}default:return e.length===1&&this.handleTypeAhead(`${e}`),!0}}mousedownHandler(t){if(t.offsetX>=0&&t.offsetX<=this.scrollWidth)return super.mousedownHandler(t)}multipleChanged(t,e){var o;this.ariaMultiSelectable=e?"true":null,(o=this.options)===null||o===void 0||o.forEach(r=>{r.checked=e?!1:void 0}),this.setSelectedOptions()}setSelectedOptions(){if(!this.multiple){super.setSelectedOptions();return}this.$fastController.isConnected&&this.options&&(this.selectedOptions=this.options.filter(t=>t.selected),this.focusAndScrollOptionIntoView())}sizeChanged(t,e){var o;let r=Math.max(0,parseInt((o=e?.toFixed())!==null&&o!==void 0?o:"",10));r!==e&&m.queueUpdate(()=>{this.size=r})}toggleSelectedForAllCheckedOptions(){let t=this.checkedOptions.filter(o=>!o.disabled),e=!t.every(o=>o.selected);t.forEach(o=>o.selected=e),this.selectedIndex=this.options.indexOf(t[t.length-1]),this.setSelectedOptions()}typeaheadBufferChanged(t,e){if(!this.multiple){super.typeaheadBufferChanged(t,e);return}if(this.$fastController.isConnected){let o=this.getTypeaheadMatches(),r=this.options.indexOf(o[0]);r>-1&&(this.activeIndex=r,this.uncheckAllOptions(),this.checkActiveIndex()),this.typeAheadExpired=!1}}uncheckAllOptions(t=!1){this.options.forEach(e=>e.checked=this.multiple?!1:void 0),t||(this.rangeStartIndex=-1)}};l([f],Pt.prototype,"activeIndex",void 0);l([h({mode:"boolean"})],Pt.prototype,"multiple",void 0);l([h({converter:Vt})],Pt.prototype,"size",void 0);var Ti=class extends k{},Ee=class extends Ot(Ti){constructor(){super(...arguments),this.proxy=document.createElement("input")}};var Oi={email:"email",password:"password",tel:"tel",text:"text",url:"url"};var _=class extends Ee{constructor(){super(...arguments),this.type=Oi.text}readOnlyChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.readOnly=this.readOnly,this.validate())}autofocusChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.autofocus=this.autofocus,this.validate())}placeholderChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.placeholder=this.placeholder)}typeChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.type=this.type,this.validate())}listChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.setAttribute("list",this.list),this.validate())}maxlengthChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.maxLength=this.maxlength,this.validate())}minlengthChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.minLength=this.minlength,this.validate())}patternChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.pattern=this.pattern,this.validate())}sizeChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.size=this.size)}spellcheckChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.spellcheck=this.spellcheck)}connectedCallback(){super.connectedCallback(),this.proxy.setAttribute("type",this.type),this.validate(),this.autofocus&&m.queueUpdate(()=>{this.focus()})}select(){this.control.select(),this.$emit("select")}handleTextInput(){this.value=this.control.value}handleChange(){this.$emit("change")}validate(){super.validate(this.control)}};l([h({attribute:"readonly",mode:"boolean"})],_.prototype,"readOnly",void 0);l([h({mode:"boolean"})],_.prototype,"autofocus",void 0);l([h],_.prototype,"placeholder",void 0);l([h],_.prototype,"type",void 0);l([h],_.prototype,"list",void 0);l([h({converter:Vt})],_.prototype,"maxlength",void 0);l([h({converter:Vt})],_.prototype,"minlength",void 0);l([h],_.prototype,"pattern",void 0);l([h({converter:Vt})],_.prototype,"size",void 0);l([h({mode:"boolean"})],_.prototype,"spellcheck",void 0);l([f],_.prototype,"defaultSlottedNodes",void 0);var Pe=class{};M(Pe,y);M(_,U,Pe);function qo(i,t,e){return i.nodeType!==Node.TEXT_NODE?!0:typeof i.nodeValue=="string"&&!!i.nodeValue.trim().length}var Ai=class extends Pt{},Fe=class extends Ot(Ai){constructor(){super(...arguments),this.proxy=document.createElement("select")}};var Y=class extends Fe{constructor(){super(...arguments),this.open=!1,this.forcedPosition=!1,this.listboxId=Tt("listbox-"),this.maxHeight=0}openChanged(t,e){if(this.collapsible){if(this.open){this.ariaControls=this.listboxId,this.ariaExpanded="true",this.setPositioning(),this.focusAndScrollOptionIntoView(),this.indexWhenOpened=this.selectedIndex,m.queueUpdate(()=>this.focus());return}this.ariaControls="",this.ariaExpanded="false"}}get collapsible(){return!(this.multiple||typeof this.size=="number")}get value(){return b.track(this,"value"),this._value}set value(t){var e,o,r,n,s,a,c;let d=`${this._value}`;if(!((e=this._options)===null||e===void 0)&&e.length){let u=this._options.findIndex(q=>q.value===t),v=(r=(o=this._options[this.selectedIndex])===null||o===void 0?void 0:o.value)!==null&&r!==void 0?r:null,A=(s=(n=this._options[u])===null||n===void 0?void 0:n.value)!==null&&s!==void 0?s:null;(u===-1||v!==A)&&(t="",this.selectedIndex=u),t=(c=(a=this.firstSelectedOption)===null||a===void 0?void 0:a.value)!==null&&c!==void 0?c:t}d!==t&&(this._value=t,super.valueChanged(d,t),b.notify(this,"value"),this.updateDisplayValue())}updateValue(t){var e,o;this.$fastController.isConnected&&(this.value=(o=(e=this.firstSelectedOption)===null||e===void 0?void 0:e.value)!==null&&o!==void 0?o:""),t&&(this.$emit("input"),this.$emit("change",this,{bubbles:!0,composed:void 0}))}selectedIndexChanged(t,e){super.selectedIndexChanged(t,e),this.updateValue()}positionChanged(t,e){this.positionAttribute=e,this.setPositioning()}setPositioning(){let t=this.getBoundingClientRect(),o=window.innerHeight-t.bottom;this.position=this.forcedPosition?this.positionAttribute:t.top>o?ee.above:ee.below,this.positionAttribute=this.forcedPosition?this.positionAttribute:this.position,this.maxHeight=this.position===ee.above?~~t.top:~~o}get displayValue(){var t,e;return b.track(this,"displayValue"),(e=(t=this.firstSelectedOption)===null||t===void 0?void 0:t.text)!==null&&e!==void 0?e:""}disabledChanged(t,e){super.disabledChanged&&super.disabledChanged(t,e),this.ariaDisabled=this.disabled?"true":"false"}formResetCallback(){this.setProxyOptions(),super.setDefaultSelectedOption(),this.selectedIndex===-1&&(this.selectedIndex=0)}clickHandler(t){if(!this.disabled){if(this.open){let e=t.target.closest("option,[role=option]");if(e&&e.disabled)return}return super.clickHandler(t),this.open=this.collapsible&&!this.open,!this.open&&this.indexWhenOpened!==this.selectedIndex&&this.updateValue(!0),!0}}focusoutHandler(t){var e;if(super.focusoutHandler(t),!this.open)return!0;let o=t.relatedTarget;if(this.isSameNode(o)){this.focus();return}!((e=this.options)===null||e===void 0)&&e.includes(o)||(this.open=!1,this.indexWhenOpened!==this.selectedIndex&&this.updateValue(!0))}handleChange(t,e){super.handleChange(t,e),e==="value"&&this.updateValue()}slottedOptionsChanged(t,e){this.options.forEach(o=>{b.getNotifier(o).unsubscribe(this,"value")}),super.slottedOptionsChanged(t,e),this.options.forEach(o=>{b.getNotifier(o).subscribe(this,"value")}),this.setProxyOptions(),this.updateValue()}mousedownHandler(t){var e;return t.offsetX>=0&&t.offsetX<=((e=this.listbox)===null||e===void 0?void 0:e.scrollWidth)?super.mousedownHandler(t):this.collapsible}multipleChanged(t,e){super.multipleChanged(t,e),this.proxy&&(this.proxy.multiple=e)}selectedOptionsChanged(t,e){var o;super.selectedOptionsChanged(t,e),(o=this.options)===null||o===void 0||o.forEach((r,n)=>{var s;let a=(s=this.proxy)===null||s===void 0?void 0:s.options.item(n);a&&(a.selected=r.selected)})}setDefaultSelectedOption(){var t;let e=(t=this.options)!==null&&t!==void 0?t:Array.from(this.children).filter(E.slottedOptionFilter),o=e?.findIndex(r=>r.hasAttribute("selected")||r.selected||r.value===this.value);if(o!==-1){this.selectedIndex=o;return}this.selectedIndex=0}setProxyOptions(){this.proxy instanceof HTMLSelectElement&&this.options&&(this.proxy.options.length=0,this.options.forEach(t=>{let e=t.proxy||(t instanceof HTMLOptionElement?t.cloneNode():null);e&&this.proxy.options.add(e)}))}keydownHandler(t){super.keydownHandler(t);let e=t.key||t.key.charCodeAt(0);switch(e){case ft:{t.preventDefault(),this.collapsible&&this.typeAheadExpired&&(this.open=!this.open);break}case ut:case pt:{t.preventDefault();break}case Nt:{t.preventDefault(),this.open=!this.open;break}case zt:{this.collapsible&&this.open&&(t.preventDefault(),this.open=!1);break}case jt:return this.collapsible&&this.open&&(t.preventDefault(),this.open=!1),!0}return!this.open&&this.indexWhenOpened!==this.selectedIndex&&(this.updateValue(!0),this.indexWhenOpened=this.selectedIndex),!(e===dt||e===ht)}connectedCallback(){super.connectedCallback(),this.forcedPosition=!!this.positionAttribute,this.addEventListener("contentchange",this.updateDisplayValue)}disconnectedCallback(){this.removeEventListener("contentchange",this.updateDisplayValue),super.disconnectedCallback()}sizeChanged(t,e){super.sizeChanged(t,e),this.proxy&&(this.proxy.size=e)}updateDisplayValue(){this.collapsible&&b.notify(this,"displayValue")}};l([h({attribute:"open",mode:"boolean"})],Y.prototype,"open",void 0);l([eo],Y.prototype,"collapsible",null);l([f],Y.prototype,"control",void 0);l([h({attribute:"position"})],Y.prototype,"positionAttribute",void 0);l([f],Y.prototype,"position",void 0);l([f],Y.prototype,"maxHeight",void 0);var le=class{};l([f],le.prototype,"ariaControls",void 0);M(le,et);M(Y,U,le);var Uo=(i,t)=>C`
129
129
  <template
130
130
  class="${e=>[e.collapsible&&"collapsible",e.collapsible&&e.open&&"open",e.disabled&&"disabled",e.collapsible&&e.position].filter(Boolean).join(" ")}"
131
131
  aria-activedescendant="${e=>e.ariaActiveDescendant}"
@@ -150,7 +150,7 @@ function Ne(i){return i.type==="int"?{type:"int",value:Cr("",i.value)}:i}functio
150
150
  ?disabled="${e=>e.disabled}"
151
151
  ${P("control")}
152
152
  >
153
- ${et(i,t)}
153
+ ${tt(i,t)}
154
154
  <slot name="button-container">
155
155
  <div class="selected-value" part="selected-value">
156
156
  <slot name="selected-value">${e=>e.displayValue}</slot>
@@ -161,7 +161,7 @@ function Ne(i){return i.type==="int"?{type:"int",value:Cr("",i.value)}:i}functio
161
161
  </slot>
162
162
  </div>
163
163
  </slot>
164
- ${tt(i,t)}
164
+ ${K(i,t)}
165
165
  </div>
166
166
  `)}
167
167
  <div
@@ -178,17 +178,17 @@ function Ne(i){return i.type==="int"?{type:"int",value:Cr("",i.value)}:i}functio
178
178
  ></slot>
179
179
  </div>
180
180
  </template>
181
- `;var Uo=(i,t)=>C`
181
+ `;var Wo=(i,t)=>C`
182
182
  <template slot="tabpanel" role="tabpanel">
183
183
  <slot></slot>
184
184
  </template>
185
- `;var Me=class extends k{};var Wo=(i,t)=>C`
185
+ `;var Me=class extends k{};var Go=(i,t)=>C`
186
186
  <template slot="tab" role="tab" aria-disabled="${e=>e.disabled}">
187
187
  <slot></slot>
188
188
  </template>
189
- `;var ce=class extends k{};l([h({mode:"boolean"})],ce.prototype,"disabled",void 0);var Go=(i,t)=>C`
189
+ `;var ce=class extends k{};l([h({mode:"boolean"})],ce.prototype,"disabled",void 0);var Qo=(i,t)=>C`
190
190
  <template class="${e=>e.orientation}">
191
- ${et(i,t)}
191
+ ${tt(i,t)}
192
192
  <div class="tablist" part="tablist" role="tablist">
193
193
  <slot class="tab" name="tab" part="tab" ${j("tabs")}></slot>
194
194
 
@@ -200,12 +200,12 @@ function Ne(i){return i.type==="int"?{type:"int",value:Cr("",i.value)}:i}functio
200
200
  ></div>
201
201
  `)}
202
202
  </div>
203
- ${tt(i,t)}
203
+ ${K(i,t)}
204
204
  <div class="tabpanel" part="tabpanel">
205
205
  <slot name="tabpanel" ${j("tabpanels")}></slot>
206
206
  </div>
207
207
  </template>
208
- `;var Be={vertical:"vertical",horizontal:"horizontal"},G=class extends k{constructor(){super(...arguments),this.orientation=Be.horizontal,this.activeindicator=!0,this.showActiveIndicator=!0,this.prevActiveTabIndex=0,this.activeTabIndex=0,this.ticking=!1,this.change=()=>{this.$emit("change",this.activetab)},this.isDisabledElement=t=>t.getAttribute("aria-disabled")==="true",this.isHiddenElement=t=>t.hasAttribute("hidden"),this.isFocusableElement=t=>!this.isDisabledElement(t)&&!this.isHiddenElement(t),this.setTabs=()=>{let t="gridColumn",e="gridRow",o=this.isHorizontal()?t:e;this.activeTabIndex=this.getActiveIndex(),this.showActiveIndicator=!1,this.tabs.forEach((r,n)=>{if(r.slot==="tab"){let s=this.activeTabIndex===n&&this.isFocusableElement(r);this.activeindicator&&this.isFocusableElement(r)&&(this.showActiveIndicator=!0);let a=this.tabIds[n],c=this.tabpanelIds[n];r.setAttribute("id",a),r.setAttribute("aria-selected",s?"true":"false"),r.setAttribute("aria-controls",c),r.addEventListener("click",this.handleTabClick),r.addEventListener("keydown",this.handleTabKeyDown),r.setAttribute("tabindex",s?"0":"-1"),s&&(this.activetab=r,this.activeid=a)}r.style[t]="",r.style[e]="",r.style[o]=`${n+1}`,this.isHorizontal()?r.classList.remove("vertical"):r.classList.add("vertical")})},this.setTabPanels=()=>{this.tabpanels.forEach((t,e)=>{let o=this.tabIds[e],r=this.tabpanelIds[e];t.setAttribute("id",r),t.setAttribute("aria-labelledby",o),this.activeTabIndex!==e?t.setAttribute("hidden",""):t.removeAttribute("hidden")})},this.handleTabClick=t=>{let e=t.currentTarget;e.nodeType===1&&this.isFocusableElement(e)&&(this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=this.tabs.indexOf(e),this.setComponent())},this.handleTabKeyDown=t=>{if(this.isHorizontal())switch(t.key){case Po:t.preventDefault(),this.adjustBackward(t);break;case Fo:t.preventDefault(),this.adjustForward(t);break}else switch(t.key){case ht:t.preventDefault(),this.adjustBackward(t);break;case dt:t.preventDefault(),this.adjustForward(t);break}switch(t.key){case ut:t.preventDefault(),this.adjust(-this.activeTabIndex);break;case pt:t.preventDefault(),this.adjust(this.tabs.length-this.activeTabIndex-1);break}},this.adjustForward=t=>{let e=this.tabs,o=0;for(o=this.activetab?e.indexOf(this.activetab)+1:1,o===e.length&&(o=0);o<e.length&&e.length>1;)if(this.isFocusableElement(e[o])){this.moveToTabByIndex(e,o);break}else{if(this.activetab&&o===e.indexOf(this.activetab))break;o+1>=e.length?o=0:o+=1}},this.adjustBackward=t=>{let e=this.tabs,o=0;for(o=this.activetab?e.indexOf(this.activetab)-1:0,o=o<0?e.length-1:o;o>=0&&e.length>1;)if(this.isFocusableElement(e[o])){this.moveToTabByIndex(e,o);break}else o-1<0?o=e.length-1:o-=1},this.moveToTabByIndex=(t,e)=>{let o=t[e];this.activetab=o,this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=e,o.focus(),this.setComponent()}}orientationChanged(){this.$fastController.isConnected&&(this.setTabs(),this.setTabPanels(),this.handleActiveIndicatorPosition())}activeidChanged(t,e){this.$fastController.isConnected&&this.tabs.length<=this.tabpanels.length&&(this.prevActiveTabIndex=this.tabs.findIndex(o=>o.id===t),this.setTabs(),this.setTabPanels(),this.handleActiveIndicatorPosition())}tabsChanged(){this.$fastController.isConnected&&this.tabs.length<=this.tabpanels.length&&(this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.setTabs(),this.setTabPanels(),this.handleActiveIndicatorPosition())}tabpanelsChanged(){this.$fastController.isConnected&&this.tabpanels.length<=this.tabs.length&&(this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.setTabs(),this.setTabPanels(),this.handleActiveIndicatorPosition())}getActiveIndex(){return this.activeid!==void 0?this.tabIds.indexOf(this.activeid)===-1?0:this.tabIds.indexOf(this.activeid):0}getTabIds(){return this.tabs.map(t=>{var e;return(e=t.getAttribute("id"))!==null&&e!==void 0?e:`tab-${Tt()}`})}getTabPanelIds(){return this.tabpanels.map(t=>{var e;return(e=t.getAttribute("id"))!==null&&e!==void 0?e:`panel-${Tt()}`})}setComponent(){this.activeTabIndex!==this.prevActiveTabIndex&&(this.activeid=this.tabIds[this.activeTabIndex],this.focusTab(),this.change())}isHorizontal(){return this.orientation===Be.horizontal}handleActiveIndicatorPosition(){this.showActiveIndicator&&this.activeindicator&&this.activeTabIndex!==this.prevActiveTabIndex&&(this.ticking?this.ticking=!1:(this.ticking=!0,this.animateActiveIndicator()))}animateActiveIndicator(){this.ticking=!0;let t=this.isHorizontal()?"gridColumn":"gridRow",e=this.isHorizontal()?"translateX":"translateY",o=this.isHorizontal()?"offsetLeft":"offsetTop",r=this.activeIndicatorRef[o];this.activeIndicatorRef.style[t]=`${this.activeTabIndex+1}`;let n=this.activeIndicatorRef[o];this.activeIndicatorRef.style[t]=`${this.prevActiveTabIndex+1}`;let s=n-r;this.activeIndicatorRef.style.transform=`${e}(${s}px)`,this.activeIndicatorRef.classList.add("activeIndicatorTransition"),this.activeIndicatorRef.addEventListener("transitionend",()=>{this.ticking=!1,this.activeIndicatorRef.style[t]=`${this.activeTabIndex+1}`,this.activeIndicatorRef.style.transform=`${e}(0px)`,this.activeIndicatorRef.classList.remove("activeIndicatorTransition")})}adjust(t){let e=this.tabs.filter(s=>this.isFocusableElement(s)),o=e.indexOf(this.activetab),r=Mo(0,e.length-1,o+t),n=this.tabs.indexOf(e[r]);n>-1&&this.moveToTabByIndex(this.tabs,n)}focusTab(){this.tabs[this.activeTabIndex].focus()}connectedCallback(){super.connectedCallback(),this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.activeTabIndex=this.getActiveIndex()}};l([h],G.prototype,"orientation",void 0);l([h],G.prototype,"activeid",void 0);l([f],G.prototype,"tabs",void 0);l([f],G.prototype,"tabpanels",void 0);l([h({mode:"boolean"})],G.prototype,"activeindicator",void 0);l([f],G.prototype,"activeIndicatorRef",void 0);l([f],G.prototype,"showActiveIndicator",void 0);M(G,U);var Qo=(i,t)=>C`
208
+ `;var Be={vertical:"vertical",horizontal:"horizontal"},G=class extends k{constructor(){super(...arguments),this.orientation=Be.horizontal,this.activeindicator=!0,this.showActiveIndicator=!0,this.prevActiveTabIndex=0,this.activeTabIndex=0,this.ticking=!1,this.change=()=>{this.$emit("change",this.activetab)},this.isDisabledElement=t=>t.getAttribute("aria-disabled")==="true",this.isHiddenElement=t=>t.hasAttribute("hidden"),this.isFocusableElement=t=>!this.isDisabledElement(t)&&!this.isHiddenElement(t),this.setTabs=()=>{let t="gridColumn",e="gridRow",o=this.isHorizontal()?t:e;this.activeTabIndex=this.getActiveIndex(),this.showActiveIndicator=!1,this.tabs.forEach((r,n)=>{if(r.slot==="tab"){let s=this.activeTabIndex===n&&this.isFocusableElement(r);this.activeindicator&&this.isFocusableElement(r)&&(this.showActiveIndicator=!0);let a=this.tabIds[n],c=this.tabpanelIds[n];r.setAttribute("id",a),r.setAttribute("aria-selected",s?"true":"false"),r.setAttribute("aria-controls",c),r.addEventListener("click",this.handleTabClick),r.addEventListener("keydown",this.handleTabKeyDown),r.setAttribute("tabindex",s?"0":"-1"),s&&(this.activetab=r,this.activeid=a)}r.style[t]="",r.style[e]="",r.style[o]=`${n+1}`,this.isHorizontal()?r.classList.remove("vertical"):r.classList.add("vertical")})},this.setTabPanels=()=>{this.tabpanels.forEach((t,e)=>{let o=this.tabIds[e],r=this.tabpanelIds[e];t.setAttribute("id",r),t.setAttribute("aria-labelledby",o),this.activeTabIndex!==e?t.setAttribute("hidden",""):t.removeAttribute("hidden")})},this.handleTabClick=t=>{let e=t.currentTarget;e.nodeType===1&&this.isFocusableElement(e)&&(this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=this.tabs.indexOf(e),this.setComponent())},this.handleTabKeyDown=t=>{if(this.isHorizontal())switch(t.key){case Fo:t.preventDefault(),this.adjustBackward(t);break;case Mo:t.preventDefault(),this.adjustForward(t);break}else switch(t.key){case ht:t.preventDefault(),this.adjustBackward(t);break;case dt:t.preventDefault(),this.adjustForward(t);break}switch(t.key){case ut:t.preventDefault(),this.adjust(-this.activeTabIndex);break;case pt:t.preventDefault(),this.adjust(this.tabs.length-this.activeTabIndex-1);break}},this.adjustForward=t=>{let e=this.tabs,o=0;for(o=this.activetab?e.indexOf(this.activetab)+1:1,o===e.length&&(o=0);o<e.length&&e.length>1;)if(this.isFocusableElement(e[o])){this.moveToTabByIndex(e,o);break}else{if(this.activetab&&o===e.indexOf(this.activetab))break;o+1>=e.length?o=0:o+=1}},this.adjustBackward=t=>{let e=this.tabs,o=0;for(o=this.activetab?e.indexOf(this.activetab)-1:0,o=o<0?e.length-1:o;o>=0&&e.length>1;)if(this.isFocusableElement(e[o])){this.moveToTabByIndex(e,o);break}else o-1<0?o=e.length-1:o-=1},this.moveToTabByIndex=(t,e)=>{let o=t[e];this.activetab=o,this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=e,o.focus(),this.setComponent()}}orientationChanged(){this.$fastController.isConnected&&(this.setTabs(),this.setTabPanels(),this.handleActiveIndicatorPosition())}activeidChanged(t,e){this.$fastController.isConnected&&this.tabs.length<=this.tabpanels.length&&(this.prevActiveTabIndex=this.tabs.findIndex(o=>o.id===t),this.setTabs(),this.setTabPanels(),this.handleActiveIndicatorPosition())}tabsChanged(){this.$fastController.isConnected&&this.tabs.length<=this.tabpanels.length&&(this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.setTabs(),this.setTabPanels(),this.handleActiveIndicatorPosition())}tabpanelsChanged(){this.$fastController.isConnected&&this.tabpanels.length<=this.tabs.length&&(this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.setTabs(),this.setTabPanels(),this.handleActiveIndicatorPosition())}getActiveIndex(){return this.activeid!==void 0?this.tabIds.indexOf(this.activeid)===-1?0:this.tabIds.indexOf(this.activeid):0}getTabIds(){return this.tabs.map(t=>{var e;return(e=t.getAttribute("id"))!==null&&e!==void 0?e:`tab-${Tt()}`})}getTabPanelIds(){return this.tabpanels.map(t=>{var e;return(e=t.getAttribute("id"))!==null&&e!==void 0?e:`panel-${Tt()}`})}setComponent(){this.activeTabIndex!==this.prevActiveTabIndex&&(this.activeid=this.tabIds[this.activeTabIndex],this.focusTab(),this.change())}isHorizontal(){return this.orientation===Be.horizontal}handleActiveIndicatorPosition(){this.showActiveIndicator&&this.activeindicator&&this.activeTabIndex!==this.prevActiveTabIndex&&(this.ticking?this.ticking=!1:(this.ticking=!0,this.animateActiveIndicator()))}animateActiveIndicator(){this.ticking=!0;let t=this.isHorizontal()?"gridColumn":"gridRow",e=this.isHorizontal()?"translateX":"translateY",o=this.isHorizontal()?"offsetLeft":"offsetTop",r=this.activeIndicatorRef[o];this.activeIndicatorRef.style[t]=`${this.activeTabIndex+1}`;let n=this.activeIndicatorRef[o];this.activeIndicatorRef.style[t]=`${this.prevActiveTabIndex+1}`;let s=n-r;this.activeIndicatorRef.style.transform=`${e}(${s}px)`,this.activeIndicatorRef.classList.add("activeIndicatorTransition"),this.activeIndicatorRef.addEventListener("transitionend",()=>{this.ticking=!1,this.activeIndicatorRef.style[t]=`${this.activeTabIndex+1}`,this.activeIndicatorRef.style.transform=`${e}(0px)`,this.activeIndicatorRef.classList.remove("activeIndicatorTransition")})}adjust(t){let e=this.tabs.filter(s=>this.isFocusableElement(s)),o=e.indexOf(this.activetab),r=Bo(0,e.length-1,o+t),n=this.tabs.indexOf(e[r]);n>-1&&this.moveToTabByIndex(this.tabs,n)}focusTab(){this.tabs[this.activeTabIndex].focus()}connectedCallback(){super.connectedCallback(),this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.activeTabIndex=this.getActiveIndex()}};l([h],G.prototype,"orientation",void 0);l([h],G.prototype,"activeid",void 0);l([f],G.prototype,"tabs",void 0);l([f],G.prototype,"tabpanels",void 0);l([h({mode:"boolean"})],G.prototype,"activeindicator",void 0);l([f],G.prototype,"activeIndicatorRef",void 0);l([f],G.prototype,"showActiveIndicator",void 0);M(G,U);var Xo=(i,t)=>C`
209
209
  <template
210
210
  class="
211
211
  ${e=>e.readOnly?"readonly":""}
@@ -217,11 +217,11 @@ function Ne(i){return i.type==="int"?{type:"int",value:Cr("",i.value)}:i}functio
217
217
  class="${e=>e.defaultSlottedNodes&&e.defaultSlottedNodes.length?"label":"label label__hidden"}"
218
218
  >
219
219
  <slot
220
- ${j({property:"defaultSlottedNodes",filter:jo})}
220
+ ${j({property:"defaultSlottedNodes",filter:qo})}
221
221
  ></slot>
222
222
  </label>
223
223
  <div class="root" part="root">
224
- ${et(i,t)}
224
+ ${tt(i,t)}
225
225
  <input
226
226
  class="control"
227
227
  part="control"
@@ -262,18 +262,18 @@ function Ne(i){return i.type==="int"?{type:"int",value:Cr("",i.value)}:i}functio
262
262
  aria-roledescription="${e=>e.ariaRoledescription}"
263
263
  ${P("control")}
264
264
  />
265
- ${tt(i,t)}
265
+ ${K(i,t)}
266
266
  </div>
267
267
  </template>
268
- `;var J="not-allowed";var sn=":host([hidden]){display:none}";function V(i){return`${sn}:host{display:${i}}`}var H=Ao()?"focus-visible":"focus";function Xo(i){return Si.getOrCreate(i).withPrefix("vscode")}function Jo(i){window.addEventListener("load",()=>{new MutationObserver(()=>{Yo(i)}).observe(document.body,{attributes:!0,attributeFilter:["class"]}),Yo(i)})}function Yo(i){let t=getComputedStyle(document.body),e=document.querySelector("body");if(e){let o=e.getAttribute("data-vscode-theme-kind");for(let[r,n]of i){let s=t.getPropertyValue(r).toString();if(o==="vscode-high-contrast")s.length===0&&n.name.includes("background")&&(s="transparent"),n.name==="button-icon-hover-background"&&(s="transparent");else if(o==="vscode-high-contrast-light"){if(s.length===0&&n.name.includes("background"))switch(n.name){case"button-primary-hover-background":s="#0F4A85";break;case"button-secondary-hover-background":s="transparent";break;case"button-icon-hover-background":s="transparent";break}}else n.name==="contrast-active-border"&&(s="transparent");n.setValueFor(e,s)}}}var Zo=new Map,Ko=!1;function p(i,t){let e=se.create(i);if(t){if(t.includes("--fake-vscode-token")){let o="id"+Math.random().toString(16).slice(2);t=`${t}-${o}`}Zo.set(t,e)}return Ko||(Jo(Zo),Ko=!0),e}var Xd=p("background","--vscode-editor-background").withDefault("#1e1e1e"),w=p("border-width").withDefault(1),tr=p("contrast-active-border","--vscode-contrastActiveBorder").withDefault("#f38518"),Yd=p("contrast-border","--vscode-contrastBorder").withDefault("#6fc3df"),Z=p("corner-radius").withDefault(0),g=p("design-unit").withDefault(4),rt=p("disabled-opacity").withDefault(.4),O=p("focus-border","--vscode-focusBorder").withDefault("#007fd4"),Q=p("font-family","--vscode-font-family").withDefault("-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol"),Jd=p("font-weight","--vscode-font-weight").withDefault("400"),D=p("foreground","--vscode-foreground").withDefault("#cccccc"),Wt=p("input-height").withDefault("26"),De=p("input-min-width").withDefault("100px"),R=p("type-ramp-base-font-size","--vscode-font-size").withDefault("13px"),L=p("type-ramp-base-line-height").withDefault("normal"),Zd=p("type-ramp-minus1-font-size").withDefault("11px"),Kd=p("type-ramp-minus1-line-height").withDefault("16px"),th=p("type-ramp-minus2-font-size").withDefault("9px"),eh=p("type-ramp-minus2-line-height").withDefault("16px"),ih=p("type-ramp-plus1-font-size").withDefault("16px"),oh=p("type-ramp-plus1-line-height").withDefault("24px"),rh=p("scrollbarWidth").withDefault("10px"),nh=p("scrollbarHeight").withDefault("10px"),sh=p("scrollbar-slider-background","--vscode-scrollbarSlider-background").withDefault("#79797966"),ah=p("scrollbar-slider-hover-background","--vscode-scrollbarSlider-hoverBackground").withDefault("#646464b3"),lh=p("scrollbar-slider-active-background","--vscode-scrollbarSlider-activeBackground").withDefault("#bfbfbf66"),ch=p("badge-background","--vscode-badge-background").withDefault("#4d4d4d"),dh=p("badge-foreground","--vscode-badge-foreground").withDefault("#ffffff"),er=p("button-border","--vscode-button-border").withDefault("transparent"),Ai=p("button-icon-background").withDefault("transparent"),ir=p("button-icon-corner-radius").withDefault("5px"),or=p("button-icon-outline-offset").withDefault(0),Ei=p("button-icon-hover-background","--fake-vscode-token").withDefault("rgba(90, 93, 94, 0.31)"),rr=p("button-icon-padding").withDefault("3px"),Ft=p("button-primary-background","--vscode-button-background").withDefault("#0e639c"),Pi=p("button-primary-foreground","--vscode-button-foreground").withDefault("#ffffff"),Fi=p("button-primary-hover-background","--vscode-button-hoverBackground").withDefault("#1177bb"),Re=p("button-secondary-background","--vscode-button-secondaryBackground").withDefault("#3a3d41"),nr=p("button-secondary-foreground","--vscode-button-secondaryForeground").withDefault("#ffffff"),sr=p("button-secondary-hover-background","--vscode-button-secondaryHoverBackground").withDefault("#45494e"),ar=p("button-padding-horizontal").withDefault("11px"),lr=p("button-padding-vertical").withDefault("4px"),Le=p("checkbox-background","--vscode-checkbox-background").withDefault("#3c3c3c"),Mi=p("checkbox-border","--vscode-checkbox-border").withDefault("#3c3c3c"),cr=p("checkbox-corner-radius").withDefault(3),hh=p("checkbox-foreground","--vscode-checkbox-foreground").withDefault("#f0f0f0"),bt=p("list-active-selection-background","--vscode-list-activeSelectionBackground").withDefault("#094771"),Gt=p("list-active-selection-foreground","--vscode-list-activeSelectionForeground").withDefault("#ffffff"),uh=p("list-hover-background","--vscode-list-hoverBackground").withDefault("#2a2d2e"),ph=p("divider-background","--vscode-settings-dropdownListBorder").withDefault("#454545"),de=p("dropdown-background","--vscode-dropdown-background").withDefault("#3c3c3c"),Mt=p("dropdown-border","--vscode-dropdown-border").withDefault("#3c3c3c"),fh=p("dropdown-foreground","--vscode-dropdown-foreground").withDefault("#f0f0f0"),dr=p("dropdown-list-max-height").withDefault("200px"),_e=p("input-background","--vscode-input-background").withDefault("#3c3c3c"),hr=p("input-foreground","--vscode-input-foreground").withDefault("#cccccc"),mh=p("input-placeholder-foreground","--vscode-input-placeholderForeground").withDefault("#cccccc"),bh=p("link-active-foreground","--vscode-textLink-activeForeground").withDefault("#3794ff"),gh=p("link-foreground","--vscode-textLink-foreground").withDefault("#3794ff"),vh=p("progress-background","--vscode-progressBar-background").withDefault("#0e70c0"),ur=p("panel-tab-active-border","--vscode-panelTitle-activeBorder").withDefault("#e7e7e7"),gt=p("panel-tab-active-foreground","--vscode-panelTitle-activeForeground").withDefault("#e7e7e7"),pr=p("panel-tab-foreground","--vscode-panelTitle-inactiveForeground").withDefault("#e7e7e799"),yh=p("panel-view-background","--vscode-panel-background").withDefault("#1e1e1e"),xh=p("panel-view-border","--vscode-panel-border").withDefault("#80808059"),wh=p("tag-corner-radius").withDefault("2px");var an=I`
268
+ `;var J="not-allowed";var an=":host([hidden]){display:none}";function V(i){return`${an}:host{display:${i}}`}var H=Eo()?"focus-visible":"focus";function Yo(i){return Ii.getOrCreate(i).withPrefix("vscode")}function Zo(i){window.addEventListener("load",()=>{new MutationObserver(()=>{Jo(i)}).observe(document.body,{attributes:!0,attributeFilter:["class"]}),Jo(i)})}function Jo(i){let t=getComputedStyle(document.body),e=document.querySelector("body");if(e){let o=e.getAttribute("data-vscode-theme-kind");for(let[r,n]of i){let s=t.getPropertyValue(r).toString();if(o==="vscode-high-contrast")s.length===0&&n.name.includes("background")&&(s="transparent"),n.name==="button-icon-hover-background"&&(s="transparent");else if(o==="vscode-high-contrast-light"){if(s.length===0&&n.name.includes("background"))switch(n.name){case"button-primary-hover-background":s="#0F4A85";break;case"button-secondary-hover-background":s="transparent";break;case"button-icon-hover-background":s="transparent";break}}else n.name==="contrast-active-border"&&(s="transparent");n.setValueFor(e,s)}}}var Ko=new Map,tr=!1;function p(i,t){let e=se.create(i);if(t){if(t.includes("--fake-vscode-token")){let o="id"+Math.random().toString(16).slice(2);t=`${t}-${o}`}Ko.set(t,e)}return tr||(Zo(Ko),tr=!0),e}var Yd=p("background","--vscode-editor-background").withDefault("#1e1e1e"),w=p("border-width").withDefault(1),er=p("contrast-active-border","--vscode-contrastActiveBorder").withDefault("#f38518"),Jd=p("contrast-border","--vscode-contrastBorder").withDefault("#6fc3df"),nt=p("corner-radius").withDefault(0),De=p("corner-radius-round").withDefault(2),g=p("design-unit").withDefault(4),ot=p("disabled-opacity").withDefault(.4),O=p("focus-border","--vscode-focusBorder").withDefault("#007fd4"),Q=p("font-family","--vscode-font-family").withDefault("-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol"),Zd=p("font-weight","--vscode-font-weight").withDefault("400"),D=p("foreground","--vscode-foreground").withDefault("#cccccc"),Wt=p("input-height").withDefault("26"),Re=p("input-min-width").withDefault("100px"),R=p("type-ramp-base-font-size","--vscode-font-size").withDefault("13px"),L=p("type-ramp-base-line-height").withDefault("normal"),Kd=p("type-ramp-minus1-font-size").withDefault("11px"),th=p("type-ramp-minus1-line-height").withDefault("16px"),eh=p("type-ramp-minus2-font-size").withDefault("9px"),ih=p("type-ramp-minus2-line-height").withDefault("16px"),oh=p("type-ramp-plus1-font-size").withDefault("16px"),rh=p("type-ramp-plus1-line-height").withDefault("24px"),nh=p("scrollbarWidth").withDefault("10px"),sh=p("scrollbarHeight").withDefault("10px"),ah=p("scrollbar-slider-background","--vscode-scrollbarSlider-background").withDefault("#79797966"),lh=p("scrollbar-slider-hover-background","--vscode-scrollbarSlider-hoverBackground").withDefault("#646464b3"),ch=p("scrollbar-slider-active-background","--vscode-scrollbarSlider-activeBackground").withDefault("#bfbfbf66"),dh=p("badge-background","--vscode-badge-background").withDefault("#4d4d4d"),hh=p("badge-foreground","--vscode-badge-foreground").withDefault("#ffffff"),ir=p("button-border","--vscode-button-border").withDefault("transparent"),Ei=p("button-icon-background").withDefault("transparent"),or=p("button-icon-corner-radius").withDefault("5px"),rr=p("button-icon-outline-offset").withDefault(0),Pi=p("button-icon-hover-background","--fake-vscode-token").withDefault("rgba(90, 93, 94, 0.31)"),nr=p("button-icon-padding").withDefault("3px"),Ft=p("button-primary-background","--vscode-button-background").withDefault("#0e639c"),Fi=p("button-primary-foreground","--vscode-button-foreground").withDefault("#ffffff"),Mi=p("button-primary-hover-background","--vscode-button-hoverBackground").withDefault("#1177bb"),Le=p("button-secondary-background","--vscode-button-secondaryBackground").withDefault("#3a3d41"),sr=p("button-secondary-foreground","--vscode-button-secondaryForeground").withDefault("#ffffff"),ar=p("button-secondary-hover-background","--vscode-button-secondaryHoverBackground").withDefault("#45494e"),lr=p("button-padding-horizontal").withDefault("11px"),cr=p("button-padding-vertical").withDefault("4px"),_e=p("checkbox-background","--vscode-checkbox-background").withDefault("#3c3c3c"),Bi=p("checkbox-border","--vscode-checkbox-border").withDefault("#3c3c3c"),dr=p("checkbox-corner-radius").withDefault(3),uh=p("checkbox-foreground","--vscode-checkbox-foreground").withDefault("#f0f0f0"),bt=p("list-active-selection-background","--vscode-list-activeSelectionBackground").withDefault("#094771"),Gt=p("list-active-selection-foreground","--vscode-list-activeSelectionForeground").withDefault("#ffffff"),ph=p("list-hover-background","--vscode-list-hoverBackground").withDefault("#2a2d2e"),fh=p("divider-background","--vscode-settings-dropdownListBorder").withDefault("#454545"),de=p("dropdown-background","--vscode-dropdown-background").withDefault("#3c3c3c"),Mt=p("dropdown-border","--vscode-dropdown-border").withDefault("#3c3c3c"),mh=p("dropdown-foreground","--vscode-dropdown-foreground").withDefault("#f0f0f0"),hr=p("dropdown-list-max-height").withDefault("200px"),Ve=p("input-background","--vscode-input-background").withDefault("#3c3c3c"),ur=p("input-foreground","--vscode-input-foreground").withDefault("#cccccc"),bh=p("input-placeholder-foreground","--vscode-input-placeholderForeground").withDefault("#cccccc"),gh=p("link-active-foreground","--vscode-textLink-activeForeground").withDefault("#3794ff"),vh=p("link-foreground","--vscode-textLink-foreground").withDefault("#3794ff"),yh=p("progress-background","--vscode-progressBar-background").withDefault("#0e70c0"),pr=p("panel-tab-active-border","--vscode-panelTitle-activeBorder").withDefault("#e7e7e7"),gt=p("panel-tab-active-foreground","--vscode-panelTitle-activeForeground").withDefault("#e7e7e7"),fr=p("panel-tab-foreground","--vscode-panelTitle-inactiveForeground").withDefault("#e7e7e799"),xh=p("panel-view-background","--vscode-panel-background").withDefault("#1e1e1e"),wh=p("panel-view-border","--vscode-panel-border").withDefault("#80808059"),kh=p("tag-corner-radius").withDefault("2px");var ln=I`
269
269
  ${V("inline-flex")} :host {
270
270
  outline: none;
271
271
  font-family: ${Q};
272
272
  font-size: ${R};
273
273
  line-height: ${L};
274
- color: ${Pi};
274
+ color: ${Fi};
275
275
  background: ${Ft};
276
- border-radius: 2px;
276
+ border-radius: calc(${De} * 1px);
277
277
  fill: currentColor;
278
278
  cursor: pointer;
279
279
  }
@@ -285,11 +285,11 @@ function Ne(i){return i.type==="int"?{type:"int",value:Cr("",i.value)}:i}functio
285
285
  display: inline-flex;
286
286
  justify-content: center;
287
287
  align-items: center;
288
- padding: ${lr} ${ar};
288
+ padding: ${cr} ${lr};
289
289
  white-space: wrap;
290
290
  outline: none;
291
291
  text-decoration: none;
292
- border: calc(${w} * 1px) solid ${er};
292
+ border: calc(${w} * 1px) solid ${ir};
293
293
  color: inherit;
294
294
  border-radius: inherit;
295
295
  fill: inherit;
@@ -297,7 +297,7 @@ function Ne(i){return i.type==="int"?{type:"int",value:Cr("",i.value)}:i}functio
297
297
  font-family: inherit;
298
298
  }
299
299
  :host(:hover) {
300
- background: ${Fi};
300
+ background: ${Mi};
301
301
  }
302
302
  :host(:active) {
303
303
  background: ${Ft};
@@ -310,7 +310,7 @@ function Ne(i){return i.type==="int"?{type:"int",value:Cr("",i.value)}:i}functio
310
310
  border: 0;
311
311
  }
312
312
  :host([disabled]) {
313
- opacity: ${rt};
313
+ opacity: ${ot};
314
314
  background: ${Ft};
315
315
  cursor: ${J};
316
316
  }
@@ -328,13 +328,13 @@ function Ne(i){return i.type==="int"?{type:"int",value:Cr("",i.value)}:i}functio
328
328
  .start {
329
329
  margin-inline-end: 8px;
330
330
  }
331
- `,ln=I`
331
+ `,cn=I`
332
332
  :host([appearance='primary']) {
333
333
  background: ${Ft};
334
- color: ${Pi};
334
+ color: ${Fi};
335
335
  }
336
336
  :host([appearance='primary']:hover) {
337
- background: ${Fi};
337
+ background: ${Mi};
338
338
  }
339
339
  :host([appearance='primary']:active) .control:active {
340
340
  background: ${Ft};
@@ -346,55 +346,55 @@ function Ne(i){return i.type==="int"?{type:"int",value:Cr("",i.value)}:i}functio
346
346
  :host([appearance='primary'][disabled]) {
347
347
  background: ${Ft};
348
348
  }
349
- `,cn=I`
349
+ `,dn=I`
350
350
  :host([appearance='secondary']) {
351
- background: ${Re};
352
- color: ${nr};
351
+ background: ${Le};
352
+ color: ${sr};
353
353
  }
354
354
  :host([appearance='secondary']:hover) {
355
- background: ${sr};
355
+ background: ${ar};
356
356
  }
357
357
  :host([appearance='secondary']:active) .control:active {
358
- background: ${Re};
358
+ background: ${Le};
359
359
  }
360
360
  :host([appearance='secondary']) .control:${H} {
361
361
  outline: calc(${w} * 1px) solid ${O};
362
362
  outline-offset: calc(${w} * 2px);
363
363
  }
364
364
  :host([appearance='secondary'][disabled]) {
365
- background: ${Re};
365
+ background: ${Le};
366
366
  }
367
- `,dn=I`
367
+ `,hn=I`
368
368
  :host([appearance='icon']) {
369
- background: ${Ai};
370
- border-radius: ${ir};
369
+ background: ${Ei};
370
+ border-radius: ${or};
371
371
  color: ${D};
372
372
  }
373
373
  :host([appearance='icon']:hover) {
374
- background: ${Ei};
375
- outline: 1px dotted ${tr};
374
+ background: ${Pi};
375
+ outline: 1px dotted ${er};
376
376
  outline-offset: -1px;
377
377
  }
378
378
  :host([appearance='icon']) .control {
379
- padding: ${rr};
379
+ padding: ${nr};
380
380
  border: none;
381
381
  }
382
382
  :host([appearance='icon']:active) .control:active {
383
- background: ${Ei};
383
+ background: ${Pi};
384
384
  }
385
385
  :host([appearance='icon']) .control:${H} {
386
386
  outline: calc(${w} * 1px) solid ${O};
387
- outline-offset: ${or};
387
+ outline-offset: ${rr};
388
388
  }
389
389
  :host([appearance='icon'][disabled]) {
390
- background: ${Ai};
390
+ background: ${Ei};
391
391
  }
392
- `,fr=(i,t)=>I`
393
- ${an}
392
+ `,mr=(i,t)=>I`
394
393
  ${ln}
395
394
  ${cn}
396
395
  ${dn}
397
- `;var Ve=class extends z{connectedCallback(){if(super.connectedCallback(),!this.appearance){let t=this.getAttribute("appearance");this.appearance=t}}attributeChangedCallback(t,e,o){t==="appearance"&&o==="icon"&&(this.getAttribute("aria-label")||(this.ariaLabel="Icon Button")),t==="aria-label"&&(this.ariaLabel=o),t==="disabled"&&(this.disabled=o!==null)}};l([h],Ve.prototype,"appearance",void 0);var Bi=Ve.compose({baseName:"button",template:Bo,styles:fr,shadowOptions:{delegatesFocus:!0}});var mr=(i,t)=>I`
396
+ ${hn}
397
+ `;var He=class extends z{connectedCallback(){if(super.connectedCallback(),!this.appearance){let t=this.getAttribute("appearance");this.appearance=t}}attributeChangedCallback(t,e,o){t==="appearance"&&o==="icon"&&(this.getAttribute("aria-label")||(this.ariaLabel="Icon Button")),t==="aria-label"&&(this.ariaLabel=o),t==="disabled"&&(this.disabled=o!==null)}};l([h],He.prototype,"appearance",void 0);var Di=He.compose({baseName:"button",template:Do,styles:mr,shadowOptions:{delegatesFocus:!0}});var br=(i,t)=>I`
398
398
  ${V("inline-flex")} :host {
399
399
  align-items: center;
400
400
  outline: none;
@@ -408,9 +408,9 @@ function Ne(i){return i.type==="int"?{type:"int",value:Cr("",i.value)}:i}functio
408
408
  width: calc(${g} * 4px + 2px);
409
409
  height: calc(${g} * 4px + 2px);
410
410
  box-sizing: border-box;
411
- border-radius: calc(${cr} * 1px);
412
- border: calc(${w} * 1px) solid ${Mi};
413
- background: ${Le};
411
+ border-radius: calc(${dr} * 1px);
412
+ border: calc(${w} * 1px) solid ${Bi};
413
+ background: ${_e};
414
414
  outline: none;
415
415
  cursor: pointer;
416
416
  }
@@ -445,11 +445,11 @@ function Ne(i){return i.type==="int"?{type:"int",value:Cr("",i.value)}:i}functio
445
445
  opacity: 0;
446
446
  }
447
447
  :host(:enabled) .control:hover {
448
- background: ${Le};
449
- border-color: ${Mi};
448
+ background: ${_e};
449
+ border-color: ${Bi};
450
450
  }
451
451
  :host(:enabled) .control:active {
452
- background: ${Le};
452
+ background: ${_e};
453
453
  border-color: ${O};
454
454
  }
455
455
  :host(:${H}) .control {
@@ -466,9 +466,9 @@ function Ne(i){return i.type==="int"?{type:"int",value:Cr("",i.value)}:i}functio
466
466
  opacity: 1;
467
467
  }
468
468
  :host(.disabled) {
469
- opacity: ${rt};
469
+ opacity: ${ot};
470
470
  }
471
- `;var Di=class extends At{connectedCallback(){super.connectedCallback(),this.textContent?this.setAttribute("aria-label",this.textContent):this.setAttribute("aria-label","Checkbox")}},Ri=Di.compose({baseName:"checkbox",template:Ho,styles:mr,checkedIndicator:`
471
+ `;var Ri=class extends At{connectedCallback(){super.connectedCallback(),this.textContent?this.setAttribute("aria-label",this.textContent):this.setAttribute("aria-label","Checkbox")}},Li=Ri.compose({baseName:"checkbox",template:No,styles:br,checkedIndicator:`
472
472
  <svg
473
473
  part="checked-indicator"
474
474
  class="checked-indicator"
@@ -486,7 +486,7 @@ function Ne(i){return i.type==="int"?{type:"int",value:Cr("",i.value)}:i}functio
486
486
  </svg>
487
487
  `,indeterminateIndicator:`
488
488
  <div part="indeterminate-indicator" class="indeterminate-indicator"></div>
489
- `});var br=(i,t)=>I`
489
+ `});var gr=(i,t)=>I`
490
490
  ${V("inline-flex")} :host {
491
491
  background: ${de};
492
492
  box-sizing: border-box;
@@ -496,7 +496,7 @@ function Ne(i){return i.type==="int"?{type:"int",value:Cr("",i.value)}:i}functio
496
496
  height: calc(${Wt} * 1px);
497
497
  position: relative;
498
498
  user-select: none;
499
- min-width: ${De};
499
+ min-width: ${Re};
500
500
  outline: none;
501
501
  vertical-align: top;
502
502
  }
@@ -504,7 +504,7 @@ function Ne(i){return i.type==="int"?{type:"int",value:Cr("",i.value)}:i}functio
504
504
  align-items: center;
505
505
  box-sizing: border-box;
506
506
  border: calc(${w} * 1px) solid ${Mt};
507
- border-radius: calc(${Z} * 1px);
507
+ border-radius: calc(${nt} * 1px);
508
508
  cursor: pointer;
509
509
  display: flex;
510
510
  font-family: inherit;
@@ -517,12 +517,12 @@ function Ne(i){return i.type==="int"?{type:"int",value:Cr("",i.value)}:i}functio
517
517
  .listbox {
518
518
  background: ${de};
519
519
  border: calc(${w} * 1px) solid ${O};
520
- border-radius: calc(${Z} * 1px);
520
+ border-radius: calc(${nt} * 1px);
521
521
  box-sizing: border-box;
522
522
  display: inline-flex;
523
523
  flex-direction: column;
524
524
  left: 0;
525
- max-height: ${dr};
525
+ max-height: ${hr};
526
526
  padding: 0 0 calc(${g} * 1px) 0;
527
527
  overflow-y: auto;
528
528
  position: absolute;
@@ -546,7 +546,7 @@ function Ne(i){return i.type==="int"?{type:"int",value:Cr("",i.value)}:i}functio
546
546
  }
547
547
  :host([disabled]) {
548
548
  cursor: ${J};
549
- opacity: ${rt};
549
+ opacity: ${ot};
550
550
  }
551
551
  :host([disabled]) .control {
552
552
  cursor: ${J};
@@ -621,7 +621,7 @@ function Ne(i){return i.type==="int"?{type:"int",value:Cr("",i.value)}:i}functio
621
621
  ::slotted(option) {
622
622
  flex: 0 0 auto;
623
623
  }
624
- `;var Li=class extends Y{},_i=Li.compose({baseName:"dropdown",template:qo,styles:br,indicator:`
624
+ `;var _i=class extends Y{},Vi=_i.compose({baseName:"dropdown",template:Uo,styles:gr,indicator:`
625
625
  <svg
626
626
  class="select-indicator"
627
627
  part="select-indicator"
@@ -637,10 +637,10 @@ function Ne(i){return i.type==="int"?{type:"int",value:Cr("",i.value)}:i}functio
637
637
  d="M7.976 10.072l4.357-4.357.62.618L8.284 11h-.618L3 6.333l.619-.618 4.357 4.357z"
638
638
  />
639
639
  </svg>
640
- `});var gr=(i,t)=>I`
640
+ `});var vr=(i,t)=>I`
641
641
  ${V("inline-flex")} :host {
642
642
  font-family: var(--body-font);
643
- border-radius: ${Z};
643
+ border-radius: ${nt};
644
644
  border: calc(${w} * 1px) solid transparent;
645
645
  box-sizing: border-box;
646
646
  color: ${D};
@@ -681,7 +681,7 @@ function Ne(i){return i.type==="int"?{type:"int",value:Cr("",i.value)}:i}functio
681
681
  }
682
682
  :host([disabled]) {
683
683
  cursor: ${J};
684
- opacity: ${rt};
684
+ opacity: ${ot};
685
685
  }
686
686
  :host([disabled]:hover) {
687
687
  background-color: inherit;
@@ -692,7 +692,7 @@ function Ne(i){return i.type==="int"?{type:"int",value:Cr("",i.value)}:i}functio
692
692
  overflow: hidden;
693
693
  text-overflow: ellipsis;
694
694
  }
695
- `;var Vi=class extends W{connectedCallback(){super.connectedCallback(),this.textContent?this.setAttribute("aria-label",this.textContent):this.setAttribute("aria-label","Option")}},Hi=Vi.compose({baseName:"option",template:zo,styles:gr});var vr=(i,t)=>I`
695
+ `;var Hi=class extends W{connectedCallback(){super.connectedCallback(),this.textContent?this.setAttribute("aria-label",this.textContent):this.setAttribute("aria-label","Option")}},Ni=Hi.compose({baseName:"option",template:jo,styles:vr});var yr=(i,t)=>I`
696
696
  ${V("grid")} :host {
697
697
  box-sizing: border-box;
698
698
  font-family: ${Q};
@@ -726,7 +726,7 @@ function Ne(i){return i.type==="int"?{type:"int",value:Cr("",i.value)}:i}functio
726
726
  justify-self: center;
727
727
  background: ${gt};
728
728
  margin: 0;
729
- border-radius: calc(${Z} * 1px);
729
+ border-radius: calc(${nt} * 1px);
730
730
  }
731
731
  .activeIndicatorTransition {
732
732
  transition: transform 0.01s linear;
@@ -737,7 +737,7 @@ function Ne(i){return i.type==="int"?{type:"int",value:Cr("",i.value)}:i}functio
737
737
  grid-column-end: 4;
738
738
  position: relative;
739
739
  }
740
- `;var yr=(i,t)=>I`
740
+ `;var xr=(i,t)=>I`
741
741
  ${V("inline-flex")} :host {
742
742
  box-sizing: border-box;
743
743
  font-family: ${Q};
@@ -745,9 +745,9 @@ function Ne(i){return i.type==="int"?{type:"int",value:Cr("",i.value)}:i}functio
745
745
  line-height: ${L};
746
746
  height: calc(${g} * 7px);
747
747
  padding: calc(${g} * 1px) 0;
748
- color: ${pr};
748
+ color: ${fr};
749
749
  fill: currentcolor;
750
- border-radius: calc(${Z} * 1px);
750
+ border-radius: calc(${nt} * 1px);
751
751
  border: solid calc(${w} * 1px) transparent;
752
752
  align-items: center;
753
753
  justify-content: center;
@@ -779,7 +779,7 @@ function Ne(i){return i.type==="int"?{type:"int",value:Cr("",i.value)}:i}functio
779
779
  }
780
780
  :host(:${H}) {
781
781
  outline: none;
782
- border: solid calc(${w} * 1px) ${ur};
782
+ border: solid calc(${w} * 1px) ${pr};
783
783
  }
784
784
  :host(:focus) {
785
785
  outline: none;
@@ -787,7 +787,7 @@ function Ne(i){return i.type==="int"?{type:"int",value:Cr("",i.value)}:i}functio
787
787
  ::slotted(vscode-badge) {
788
788
  margin-inline-start: calc(${g} * 2px);
789
789
  }
790
- `;var xr=(i,t)=>I`
790
+ `;var wr=(i,t)=>I`
791
791
  ${V("flex")} :host {
792
792
  color: inherit;
793
793
  background-color: transparent;
@@ -797,7 +797,7 @@ function Ne(i){return i.type==="int"?{type:"int",value:Cr("",i.value)}:i}functio
797
797
  line-height: ${L};
798
798
  padding: 10px calc((${g} + 2) * 1px);
799
799
  }
800
- `;var Ni=class extends G{connectedCallback(){super.connectedCallback(),this.orientation&&(this.orientation=Be.horizontal),this.getAttribute("aria-label")||this.setAttribute("aria-label","Panels")}},qi=Ni.compose({baseName:"panels",template:Go,styles:vr}),zi=class extends ce{connectedCallback(){super.connectedCallback(),this.disabled&&(this.disabled=!1),this.textContent&&this.setAttribute("aria-label",this.textContent)}},Ui=zi.compose({baseName:"panel-tab",template:Wo,styles:yr}),ji=class extends Me{},Wi=ji.compose({baseName:"panel-view",template:Uo,styles:xr});var wr=(i,t)=>I`
800
+ `;var zi=class extends G{connectedCallback(){super.connectedCallback(),this.orientation&&(this.orientation=Be.horizontal),this.getAttribute("aria-label")||this.setAttribute("aria-label","Panels")}},Ui=zi.compose({baseName:"panels",template:Qo,styles:yr}),ji=class extends ce{connectedCallback(){super.connectedCallback(),this.disabled&&(this.disabled=!1),this.textContent&&this.setAttribute("aria-label",this.textContent)}},Wi=ji.compose({baseName:"panel-tab",template:Go,styles:xr}),qi=class extends Me{},Gi=qi.compose({baseName:"panel-view",template:Wo,styles:wr});var kr=(i,t)=>I`
801
801
  ${V("inline-block")} :host {
802
802
  font-family: ${Q};
803
803
  outline: none;
@@ -808,12 +808,12 @@ function Ne(i){return i.type==="int"?{type:"int",value:Cr("",i.value)}:i}functio
808
808
  position: relative;
809
809
  display: flex;
810
810
  flex-direction: row;
811
- color: ${hr};
812
- background: ${_e};
813
- border-radius: calc(${Z} * 1px);
811
+ color: ${ur};
812
+ background: ${Ve};
813
+ border-radius: calc(${De} * 1px);
814
814
  border: calc(${w} * 1px) solid ${Mt};
815
815
  height: calc(${Wt} * 1px);
816
- min-width: ${De};
816
+ min-width: ${Re};
817
817
  }
818
818
  .control {
819
819
  -webkit-appearance: none;
@@ -866,11 +866,11 @@ function Ne(i){return i.type==="int"?{type:"int",value:Cr("",i.value)}:i}functio
866
866
  margin-inline-end: calc(${g} * 2px);
867
867
  }
868
868
  :host(:hover:not([disabled])) .root {
869
- background: ${_e};
869
+ background: ${Ve};
870
870
  border-color: ${Mt};
871
871
  }
872
872
  :host(:active:not([disabled])) .root {
873
- background: ${_e};
873
+ background: ${Ve};
874
874
  border-color: ${O};
875
875
  }
876
876
  :host(:focus-within:not([disabled])) .root {
@@ -883,12 +883,12 @@ function Ne(i){return i.type==="int"?{type:"int",value:Cr("",i.value)}:i}functio
883
883
  cursor: ${J};
884
884
  }
885
885
  :host([disabled]) {
886
- opacity: ${rt};
886
+ opacity: ${ot};
887
887
  }
888
888
  :host([disabled]) .control {
889
889
  border-color: ${Mt};
890
890
  }
891
- `;var Gi=class extends _{connectedCallback(){super.connectedCallback(),this.textContent?this.setAttribute("aria-label",this.textContent):this.setAttribute("aria-label","Text field")}},Qi=Gi.compose({baseName:"text-field",template:Qo,styles:wr,shadowOptions:{delegatesFocus:!0}});Xo().register(Bi(),Ui(),Wi(),qi(),_i(),Hi(),Ri(),Qi());var hn=acquireVsCodeApi();function Qt(i,t){hn.postMessage({type:i,body:t})}var un=["startup","runtime-global","runtime-per-user"],yt,pn={version:document.getElementById("version")},vt={setting_bool:document.getElementById("setting-bool"),setting_number:document.getElementById("setting-number"),setting_string:document.getElementById("setting-string"),setting_color:document.getElementById("setting-color"),setting_add:document.getElementById("setting-add")};window.addEventListener("change",i=>{let t=i.target;if(t.classList.contains("setting-value")){let e=t.closest("tbody").id,o=t.closest("tr").id;switch(t.localName){case"vscode-text-field":{let r=yt[e][o];switch(r.type){case"int":try{r.value=BigInt.asIntN(64,BigInt(t.value))}catch{t.value=r.value.toString();return}break;case"number":r.value=Number(t.value),t.value=r.value.toString();break;case"string":r.value=t.value;break;case"color":t.classList.contains("setting-a-value")&&(r.value.a=Number(t.value),r.value.a=Math.max(0,Math.min(1,r.value.a)),t.value=r.value.a.toString());break}Qt("edit",{scope:e,name:o,value:Ne(r)});break}case"vscode-checkbox":{let r=yt[e][o];r.value=t.checked,Qt("edit",{scope:e,name:o,value:r});break}case"input":if(t.classList.contains("setting-color-value")){let r=yt[e][o],n=t.value.match(/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i);r.value.r=parseInt(n[1],16)/255,r.value.g=parseInt(n[2],16)/255,r.value.b=parseInt(n[3],16)/255,Qt("edit",{scope:e,name:o,value:r});break}}}});window.addEventListener("click",i=>{let e=i.target.closest("vscode-button");if(e){let r=e.closest("tbody").id;if(e.classList.contains("setting-addbtn")){let n=e.closest("tr"),s=n.querySelector(".setting-add-name");if(!s.value||document.getElementById(s.value))return;let a=n.querySelector(".setting-add-type"),c;switch(a.value){case"string":c={type:"string",value:""};break;case"number":c={type:"number",value:0};break;case"int":c={type:"int",value:0n};break;case"bool":c={type:"bool",value:!1};break;case"color":c={type:"color",value:{r:0,g:0,b:0,a:1}};break}yt[r][s.value]=c,n.before(kr(s.value,c)),Qt("edit",{scope:r,name:s.value,value:Ne(c)}),s.value=""}else if(e.classList.contains("setting-delete")){let n=e.closest("tr"),s=n.id;n.remove(),delete yt[r][s],Qt("edit",{scope:r,name:s,value:{type:"none"}})}}});function kr(i,t){let e;switch(t.type){case"bool":{e=vt.setting_bool.content.cloneNode(!0);let o=e.querySelector("tr"),r=e.querySelector(".setting-name"),n=e.querySelector(".setting-value");o.id=i,r.append(i),n.checked=t.value;break}case"int":case"number":{e=vt.setting_number.content.cloneNode(!0);let o=e.querySelector("tr"),r=e.querySelector(".setting-name"),n=e.querySelector(".setting-value");o.id=i,r.append(i),n.value=t.value.toString();break}case"string":{e=vt.setting_string.content.cloneNode(!0);let o=e.querySelector("tr"),r=e.querySelector(".setting-name"),n=e.querySelector(".setting-value");o.id=i,r.append(i),n.value=t.value;break}case"color":{e=vt.setting_color.content.cloneNode(!0);let o=e.querySelector("tr"),r=e.querySelector(".setting-name"),n=e.querySelector(".setting-color-value"),s=e.querySelector(".setting-a-value");o.id=i,r.append(i),n.value=`#${Math.round(t.value.r*255).toString(16).padStart(2,"0")}${Math.round(t.value.g*255).toString(16).padStart(2,"0")}${Math.round(t.value.b*255).toString(16).padStart(2,"0")}`,s.value=t.value.a.toString();break}}return e}window.addEventListener("message",async i=>{let{type:t,body:e}=i.data;switch(t){case"init":let o=e;yt=JSON.parse(o.settings,Yi),pn.version.innerText=o.version;let r=vt.setting_add.content.querySelector(".setting-add-type");r.children[3].hidden=!o.saves_ints;for(let n in vt){let s=vt[n];s.content.querySelectorAll("vscode-text-field").forEach(a=>a.disabled=o.editable),s.content.querySelectorAll("vscode-checkbox").forEach(a=>a.disabled=o.editable),s.content.querySelectorAll("vscode-dropdown").forEach(a=>a.disabled=o.editable),s.content.querySelectorAll("vscode-button").forEach(a=>a.disabled=o.editable)}for(let n of un){let s=document.getElementById(n);s.replaceChildren();for(let a in yt[n]){let c=yt[n][a];s.append(kr(a,c))}if(o.editable){let a=vt.setting_add.content.cloneNode(!0);s.append(a)}}break}});Qt("ready",{});
891
+ `;var Qi=class extends _{connectedCallback(){super.connectedCallback(),this.textContent?this.setAttribute("aria-label",this.textContent):this.setAttribute("aria-label","Text field")}},Xi=Qi.compose({baseName:"text-field",template:Xo,styles:kr,shadowOptions:{delegatesFocus:!0}});Yo().register(Di(),Wi(),Gi(),Ui(),Vi(),Ni(),Li(),Xi());var un=acquireVsCodeApi();function Qt(i,t){un.postMessage({type:i,body:t})}var pn=["startup","runtime-global","runtime-per-user"],yt,fn={version:document.getElementById("version")},vt={setting_bool:document.getElementById("setting-bool"),setting_number:document.getElementById("setting-number"),setting_string:document.getElementById("setting-string"),setting_color:document.getElementById("setting-color"),setting_add:document.getElementById("setting-add")};window.addEventListener("change",i=>{let t=i.target;if(t.classList.contains("setting-value")){let e=t.closest("tbody").id,o=t.closest("tr").id;switch(t.localName){case"vscode-text-field":{let r=yt[e][o];switch(r.type){case"int":try{r.value=BigInt.asIntN(64,BigInt(t.value))}catch{t.value=r.value.toString();return}break;case"number":r.value=Number(t.value),t.value=r.value.toString();break;case"string":r.value=t.value;break;case"color":t.classList.contains("setting-a-value")&&(r.value.a=Number(t.value),r.value.a=Math.max(0,Math.min(1,r.value.a)),t.value=r.value.a.toString());break}Qt("edit",{scope:e,name:o,value:ze(r)});break}case"vscode-checkbox":{let r=yt[e][o];r.value=t.checked,Qt("edit",{scope:e,name:o,value:r});break}case"input":if(t.classList.contains("setting-color-value")){let r=yt[e][o],n=t.value.match(/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i);r.value.r=parseInt(n[1],16)/255,r.value.g=parseInt(n[2],16)/255,r.value.b=parseInt(n[3],16)/255,Qt("edit",{scope:e,name:o,value:r});break}}}});window.addEventListener("click",i=>{let e=i.target.closest("vscode-button");if(e){let r=e.closest("tbody").id;if(e.classList.contains("setting-addbtn")){let n=e.closest("tr"),s=n.querySelector(".setting-add-name");if(!s.value||document.getElementById(s.value))return;let a=n.querySelector(".setting-add-type"),c;switch(a.value){case"string":c={type:"string",value:""};break;case"number":c={type:"number",value:0};break;case"int":c={type:"int",value:0n};break;case"bool":c={type:"bool",value:!1};break;case"color":c={type:"color",value:{r:0,g:0,b:0,a:1}};break}yt[r][s.value]=c,n.before(Cr(s.value,c)),Qt("edit",{scope:r,name:s.value,value:ze(c)}),s.value=""}else if(e.classList.contains("setting-delete")){let n=e.closest("tr"),s=n.id;n.remove(),delete yt[r][s],Qt("edit",{scope:r,name:s,value:{type:"none"}})}}});function Cr(i,t){let e;switch(t.type){case"bool":{e=vt.setting_bool.content.cloneNode(!0);let o=e.querySelector("tr"),r=e.querySelector(".setting-name"),n=e.querySelector(".setting-value");o.id=i,r.append(i),n.checked=t.value;break}case"int":case"number":{e=vt.setting_number.content.cloneNode(!0);let o=e.querySelector("tr"),r=e.querySelector(".setting-name"),n=e.querySelector(".setting-value");o.id=i,r.append(i),n.value=t.value.toString();break}case"string":{e=vt.setting_string.content.cloneNode(!0);let o=e.querySelector("tr"),r=e.querySelector(".setting-name"),n=e.querySelector(".setting-value");o.id=i,r.append(i),n.value=t.value;break}case"color":{e=vt.setting_color.content.cloneNode(!0);let o=e.querySelector("tr"),r=e.querySelector(".setting-name"),n=e.querySelector(".setting-color-value"),s=e.querySelector(".setting-a-value");o.id=i,r.append(i),n.value=`#${Math.round(t.value.r*255).toString(16).padStart(2,"0")}${Math.round(t.value.g*255).toString(16).padStart(2,"0")}${Math.round(t.value.b*255).toString(16).padStart(2,"0")}`,s.value=t.value.a.toString();break}}return e}window.addEventListener("message",async i=>{let{type:t,body:e}=i.data;switch(t){case"init":let o=e;yt=JSON.parse(o.settings,Ji),fn.version.innerText=o.version;let r=vt.setting_add.content.querySelector(".setting-add-type");r.children[3].hidden=!o.saves_ints;for(let n in vt){let s=vt[n];s.content.querySelectorAll("vscode-text-field").forEach(a=>a.disabled=o.editable),s.content.querySelectorAll("vscode-checkbox").forEach(a=>a.disabled=o.editable),s.content.querySelectorAll("vscode-dropdown").forEach(a=>a.disabled=o.editable),s.content.querySelectorAll("vscode-button").forEach(a=>a.disabled=o.editable)}for(let n of pn){let s=document.getElementById(n);s.replaceChildren();for(let a in yt[n]){let c=yt[n][a];s.append(Cr(a,c))}if(o.editable){let a=vt.setting_add.content.cloneNode(!0);s.append(a)}}break}});Qt("ready",{});
892
892
  /*! Bundled license information:
893
893
 
894
894
  tslib/tslib.es6.js: