factoriomod-debug 1.1.44 → 1.1.45
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.mocharc.json +1 -1
- package/CHANGELOG.md +9 -0
- package/dist/Flamegraph.js +1 -1
- package/dist/ModSettingsWebview.css +1 -1
- package/dist/ModSettingsWebview.js +194 -194
- package/dist/ScriptDatWebview.css +1 -1
- package/dist/ScriptDatWebview.js +1 -1
- package/dist/{codicon-BEBTMDKB.ttf → codicon-QHVHTGEQ.ttf} +0 -0
- package/dist/fmtk.js +234 -609
- package/doc/variables.md +1 -0
- package/package.json +30 -31
|
@@ -1,44 +1,44 @@
|
|
|
1
|
-
function ze(i){return i.type==="int"?{type:"int",value:Io("",i.value)}:i}function Io(i,t){return typeof t=="bigint"?`jsonbigint ${t}n`:t}function Zi(i,t){if(typeof t=="string"){let e=t.match(/^jsonbigint\x01\x02 (\d+)n$/);if(e)return BigInt(e[1])}return t}var ot=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{}}}();ot.trustedTypes===void 0&&(ot.trustedTypes={createPolicy:(i,t)=>t});var Ki={configurable:!1,enumerable:!1,writable:!1};ot.FAST===void 0&&Reflect.defineProperty(ot,"FAST",Object.assign({value:Object.create(null)},Ki));var xt=ot.FAST;if(xt.getById===void 0){let i=Object.create(null);Reflect.defineProperty(xt,"getById",Object.assign({value(t,e){let r=i[t];return r===void 0&&(r=e?i[t]=e():null),r}},Ki))}var nt=Object.freeze([]);function pe(){let i=new WeakMap;return function(t){let e=i.get(t);if(e===void 0){let r=Reflect.getPrototypeOf(t);for(;e===void 0&&r!==null;)e=i.get(r),r=Reflect.getPrototypeOf(r);e=e===void 0?[]:e.slice(0),i.set(t,e)}return e}}var qe=ot.FAST.getById(1,()=>{let i=[],t=[];function e(){if(t.length)throw t.shift()}function r(s){try{s.call()}catch(a){t.push(a),setTimeout(e,0)}}function o(){let a=0;for(;a<i.length;)if(r(i[a]),a++,a>1024){for(let d=0,c=i.length-a;d<c;d++)i[d]=i[d+a];i.length-=a,a=0}i.length=0}function n(s){i.length<1&&ot.requestAnimationFrame(o),i.push(s)}return Object.freeze({enqueue:n,process:o})}),tr=ot.trustedTypes.createPolicy("fast-html",{createHTML:i=>i}),Ue=tr,Yt=`fast-${Math.random().toString(36).substring(2,8)}`,We=`${Yt}{`,fe=`}${Yt}`,m=Object.freeze({supportsAdoptedStyleSheets:Array.isArray(document.adoptedStyleSheets)&&"replace"in CSSStyleSheet.prototype,setHTMLPolicy(i){if(Ue!==tr)throw new Error("The HTML policy can only be set once.");Ue=i},createHTML(i){return Ue.createHTML(i)},isMarker(i){return i&&i.nodeType===8&&i.data.startsWith(Yt)},extractDirectiveIndexFromMarker(i){return parseInt(i.data.replace(`${Yt}:`,""))},createInterpolationPlaceholder(i){return`${We}${i}${fe}`},createCustomAttributePlaceholder(i,t){return`${i}="${this.createInterpolationPlaceholder(t)}"`},createBlockPlaceholder(i){return`<!--${Yt}:${i}-->`},queueUpdate:qe.enqueue,processUpdates:qe.process,nextUpdate(){return new Promise(qe.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 Dt=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 r=e.indexOf(t);r!==-1&&e.splice(r,1)}}notify(t){let e=this.spillover,r=this.source;if(e===void 0){let o=this.sub1,n=this.sub2;o!==void 0&&o.handleChange(r,t),n!==void 0&&n.handleChange(r,t)}else for(let o=0,n=e.length;o<n;++o)e[o].handleChange(r,t)}},Rt=class{constructor(t){this.subscribers={},this.sourceSubscribers=null,this.source=t}notify(t){var e;let r=this.subscribers[t];r!==void 0&&r.notify(t),(e=this.sourceSubscribers)===null||e===void 0||e.notify(t)}subscribe(t,e){var r;if(e){let o=this.subscribers[e];o===void 0&&(this.subscribers[e]=o=new Dt(this.source)),o.subscribe(t)}else this.sourceSubscribers=(r=this.sourceSubscribers)!==null&&r!==void 0?r:new Dt(this.source),this.sourceSubscribers.subscribe(t)}unsubscribe(t,e){var r;if(e){let o=this.subscribers[e];o!==void 0&&o.unsubscribe(t)}else(r=this.sourceSubscribers)===null||r===void 0||r.unsubscribe(t)}};var b=xt.getById(2,()=>{let i=/(:|&&|\|\||if)/,t=new WeakMap,e=m.queueUpdate,r,o=c=>{throw new Error("Must call enableArrayObservation before observing arrays.")};function n(c){let h=c.$fastController||t.get(c);return h===void 0&&(Array.isArray(c)?h=o(c):t.set(c,h=new Rt(c))),h}let s=pe();class a{constructor(h){this.name=h,this.field=`_${h}`,this.callback=`${h}Changed`}getValue(h){return r!==void 0&&r.watch(h,this.name),h[this.field]}setValue(h,v){let O=this.field,q=h[O];if(q!==v){h[O]=v;let _=h[this.callback];typeof _=="function"&&_.call(h,q,v),n(h).notify(this.name)}}}class d extends Dt{constructor(h,v,O=!1){super(h,v),this.binding=h,this.isVolatileBinding=O,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(h,v){this.needsRefresh&&this.last!==null&&this.disconnect();let O=r;r=this.needsRefresh?this:void 0,this.needsRefresh=this.isVolatileBinding;let q=this.binding(h,v);return r=O,q}disconnect(){if(this.last!==null){let h=this.first;for(;h!==void 0;)h.notifier.unsubscribe(this,h.propertyName),h=h.next;this.last=null,this.needsRefresh=this.needsQueue=!0}}watch(h,v){let O=this.last,q=n(h),_=O===null?this.first:{};if(_.propertySource=h,_.propertyName=v,_.notifier=q,q.subscribe(this,v),O!==null){if(!this.needsRefresh){let X;r=void 0,X=O.propertySource[O.propertyName],r=this,h===X&&(this.needsRefresh=!0)}O.next=_}this.last=_}handleChange(){this.needsQueue&&(this.needsQueue=!1,e(this))}call(){this.last!==null&&(this.needsQueue=!0,this.notify(this))}records(){let h=this.first;return{next:()=>{let v=h;return v===void 0?{value:void 0,done:!0}:(h=h.next,{value:v,done:!1})},[Symbol.iterator]:function(){return this}}}}return Object.freeze({setArrayObserverFactory(c){o=c},getNotifier:n,track(c,h){r!==void 0&&r.watch(c,h)},trackVolatile(){r!==void 0&&(r.needsRefresh=!0)},notify(c,h){n(c).notify(h)},defineProperty(c,h){typeof h=="string"&&(h=new a(h)),s(c).push(h),Reflect.defineProperty(c,h.name,{enumerable:!0,get:function(){return h.getValue(this)},set:function(v){h.setValue(this,v)}})},getAccessors:s,binding(c,h,v=this.isVolatileBinding(c)){return new d(c,h,v)},isVolatileBinding(c){return i.test(c.toString())}})});function f(i,t){b.defineProperty(i,t)}function ir(i,t,e){return Object.assign({},e,{get:function(){return b.trackVolatile(),e.get.apply(this)}})}var er=xt.getById(3,()=>{let i=null;return{get(){return i},set(t){i=t}}}),st=class{constructor(){this.index=0,this.length=0,this.parent=null,this.parentContext=null}get event(){return er.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){er.set(t)}};b.defineProperty(st.prototype,"index");b.defineProperty(st.prototype,"length");var at=Object.seal(new st);var Mt=class{constructor(){this.targetIndex=0}},Bt=class extends Mt{constructor(){super(...arguments),this.createPlaceholder=m.createInterpolationPlaceholder}},Lt=class extends Mt{constructor(t,e,r){super(),this.name=t,this.behavior=e,this.options=r}createPlaceholder(t){return m.createCustomAttributePlaceholder(this.name,t)}createBehavior(t){return new this.behavior(t,this.options)}};function Oo(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 Eo(i,t){this.source=i,this.context=t,this.target.addEventListener(this.targetName,this)}function Ao(){this.bindingObserver.disconnect(),this.source=null,this.context=null}function Po(){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 _o(){this.target.removeEventListener(this.targetName,this),this.source=null,this.context=null}function Fo(i){m.setAttribute(this.target,this.targetName,i)}function Do(i){m.setBooleanAttribute(this.target,this.targetName,i)}function Ro(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 Mo(i){this.target[this.targetName]=i}function Bo(i){let t=this.classVersions||Object.create(null),e=this.target,r=this.version||0;if(i!=null&&i.length){let o=i.split(/\s+/);for(let n=0,s=o.length;n<s;++n){let a=o[n];a!==""&&(t[a]=r,e.classList.add(a))}}if(this.classVersions=t,this.version=r+1,r!==0){r-=1;for(let o in t)t[o]===r&&e.classList.remove(o)}}var wt=class extends Bt{constructor(t){super(),this.binding=t,this.bind=Oo,this.unbind=Ao,this.updateTarget=Fo,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=Mo,this.cleanedTargetName==="innerHTML"){let e=this.binding;this.binding=(r,o)=>m.createHTML(e(r,o))}break;case"?":this.cleanedTargetName=t.substr(1),this.updateTarget=Do;break;case"@":this.cleanedTargetName=t.substr(1),this.bind=Eo,this.unbind=_o;break;default:this.cleanedTargetName=t,t==="class"&&(this.updateTarget=Bo);break}}targetAtContent(){this.updateTarget=Ro,this.unbind=Po}createBehavior(t){return new Ge(t,this.binding,this.isBindingVolatile,this.bind,this.unbind,this.updateTarget,this.cleanedTargetName)}},Ge=class{constructor(t,e,r,o,n,s,a){this.source=null,this.context=null,this.bindingObserver=null,this.target=t,this.binding=e,this.isBindingVolatile=r,this.bind=o,this.unbind=n,this.updateTarget=s,this.targetName=a}handleChange(){this.updateTarget(this.bindingObserver.observe(this.source,this.context))}handleEvent(t){st.setEvent(t);let e=this.binding(this.source,this.context);st.setEvent(null),e!==!0&&t.preventDefault()}};var Qe=null,Jt=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(){Qe=this}static borrow(t){let e=Qe||new Jt;return e.directives=t,e.reset(),Qe=null,e}};function Lo(i){if(i.length===1)return i[0];let t,e=i.length,r=i.map(s=>typeof s=="string"?()=>s:(t=s.targetName||t,s.binding)),o=(s,a)=>{let d="";for(let c=0;c<e;++c)d+=r[c](s,a);return d},n=new wt(o);return n.targetName=t,n}var Vo=fe.length;function or(i,t){let e=t.split(We);if(e.length===1)return null;let r=[];for(let o=0,n=e.length;o<n;++o){let s=e[o],a=s.indexOf(fe),d;if(a===-1)d=s;else{let c=parseInt(s.substring(0,a));r.push(i.directives[c]),d=s.substring(a+Vo)}d!==""&&r.push(d)}return r}function rr(i,t,e=!1){let r=t.attributes;for(let o=0,n=r.length;o<n;++o){let s=r[o],a=s.value,d=or(i,a),c=null;d===null?e&&(c=new wt(()=>a),c.targetName=s.name):c=Lo(d),c!==null&&(t.removeAttributeNode(s),o--,n--,i.addFactory(c))}}function No(i,t,e){let r=or(i,t.textContent);if(r!==null){let o=t;for(let n=0,s=r.length;n<s;++n){let a=r[n],d=n===0?t:o.parentNode.insertBefore(document.createTextNode(""),o.nextSibling);typeof a=="string"?d.textContent=a:(d.textContent=" ",i.captureContentBinding(a)),o=d,i.targetIndex++,d!==t&&e.nextNode()}i.targetIndex--}}function nr(i,t){let e=i.content;document.adoptNode(e);let r=Jt.borrow(t);rr(r,i,!0);let o=r.behaviorFactories;r.reset();let n=m.createTemplateWalker(e),s;for(;s=n.nextNode();)switch(r.targetIndex++,s.nodeType){case 1:rr(r,s);break;case 3:No(r,s,n);break;case 8:m.isMarker(s)&&r.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 d=r.behaviorFactories;return r.release(),{fragment:e,viewBehaviorFactories:d,hostBehaviorFactories:o,targetOffset:a}}var Xe=document.createRange(),me=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 r=t.parentNode,o=this.firstChild,n;for(;o!==e;)n=o.nextSibling,r.insertBefore(o,t),o=n;r.insertBefore(e,t)}}remove(){let t=this.fragment,e=this.lastChild,r=this.firstChild,o;for(;r!==e;)o=r.nextSibling,t.appendChild(r),r=o;t.appendChild(e)}dispose(){let t=this.firstChild.parentNode,e=this.lastChild,r=this.firstChild,o;for(;r!==e;)o=r.nextSibling,t.removeChild(r),r=o;t.removeChild(e);let n=this.behaviors,s=this.source;for(let a=0,d=n.length;a<d;++a)n[a].unbind(s)}bind(t,e){let r=this.behaviors;if(this.source!==t)if(this.source!==null){let o=this.source;this.source=t,this.context=e;for(let n=0,s=r.length;n<s;++n){let a=r[n];a.unbind(o),a.bind(t,e)}}else{this.source=t,this.context=e;for(let o=0,n=r.length;o<n;++o)r[o].bind(t,e)}}unbind(){if(this.source===null)return;let t=this.behaviors,e=this.source;for(let r=0,o=t.length;r<o;++r)t[r].unbind(e);this.source=null}static disposeContiguousBatch(t){if(t.length!==0){Xe.setStartBefore(t[0].firstChild),Xe.setEndAfter(t[t.length-1].lastChild),Xe.deleteContents();for(let e=0,r=t.length;e<r;++e){let o=t[e],n=o.behaviors,s=o.source;for(let a=0,d=n.length;a<d;++a)n[a].unbind(s)}}}};var be=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 c,h=this.html;if(typeof h=="string"){c=document.createElement("template"),c.innerHTML=m.createHTML(h);let O=c.content.firstElementChild;O!==null&&O.tagName==="TEMPLATE"&&(c=O)}else c=h;let v=nr(c,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),r=this.viewBehaviorFactories,o=new Array(this.behaviorCount),n=m.createTemplateWalker(e),s=0,a=this.targetOffset,d=n.nextNode();for(let c=r.length;s<c;++s){let h=r[s],v=h.targetIndex;for(;d!==null;)if(a===v){o[s]=h.createBehavior(d);break}else d=n.nextNode(),a++}if(this.hasHostBehaviors){let c=this.hostBehaviorFactories;for(let h=0,v=c.length;h<v;++h,++s)o[s]=c[h].createBehavior(t)}return new me(e,o)}render(t,e,r){typeof e=="string"&&(e=document.getElementById(e)),r===void 0&&(r=e);let o=this.create(r);return o.bind(t,at),o.appendTo(e),o}},Ho=/([ \x09\x0a\x0c\x0d])([^\0-\x1F\x7F-\x9F "'>=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/;function S(i,...t){let e=[],r="";for(let o=0,n=i.length-1;o<n;++o){let s=i[o],a=t[o];if(r+=s,a instanceof be){let d=a;a=()=>d}if(typeof a=="function"&&(a=new wt(a)),a instanceof Bt){let d=Ho.exec(s);d!==null&&(a.targetName=d[2])}a instanceof Mt?(r+=a.createPlaceholder(e.length),e.push(a)):r+=a}return r+=i[i.length-1],new be(r,e)}var $=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}};$.create=(()=>{if(m.supportsAdoptedStyleSheets){let i=new Map;return t=>new Ye(t,i)}return i=>new Je(i)})();function Ze(i){return i.map(t=>t instanceof $?Ze(t.styles):[t]).reduce((t,e)=>t.concat(e),[])}function sr(i){return i.map(t=>t instanceof $?t.behaviors:null).reduce((t,e)=>e===null?t:(t===null&&(t=[]),t.concat(e)),null)}var ge=Symbol("prependToAdoptedStyleSheets");function ar(i){let t=[],e=[];return i.forEach(r=>(r[ge]?t:e).push(r)),{prepend:t,append:e}}var lr=(i,t)=>{let{prepend:e,append:r}=ar(t);i.adoptedStyleSheets=[...e,...i.adoptedStyleSheets,...r]},cr=(i,t)=>{i.adoptedStyleSheets=i.adoptedStyleSheets.filter(e=>t.indexOf(e)===-1)};if(m.supportsAdoptedStyleSheets)try{document.adoptedStyleSheets.push(),document.adoptedStyleSheets.splice(),lr=(i,t)=>{let{prepend:e,append:r}=ar(t);i.adoptedStyleSheets.splice(0,0,...e),i.adoptedStyleSheets.push(...r)},cr=(i,t)=>{for(let e of t){let r=i.adoptedStyleSheets.indexOf(e);r!==-1&&i.adoptedStyleSheets.splice(r,1)}}}catch{}var Ye=class extends ${constructor(t,e){super(),this.styles=t,this.styleSheetCache=e,this._styleSheets=void 0,this.behaviors=sr(t)}get styleSheets(){if(this._styleSheets===void 0){let t=this.styles,e=this.styleSheetCache;this._styleSheets=Ze(t).map(r=>{if(r instanceof CSSStyleSheet)return r;let o=e.get(r);return o===void 0&&(o=new CSSStyleSheet,o.replaceSync(r),e.set(r,o)),o})}return this._styleSheets}addStylesTo(t){lr(t,this.styleSheets),super.addStylesTo(t)}removeStylesFrom(t){cr(t,this.styleSheets),super.removeStylesFrom(t)}},jo=0;function zo(){return`fast-style-class-${++jo}`}var Je=class extends ${constructor(t){super(),this.styles=t,this.behaviors=null,this.behaviors=sr(t),this.styleSheets=Ze(t),this.styleClass=zo()}addStylesTo(t){let e=this.styleSheets,r=this.styleClass;t=this.normalizeTarget(t);for(let o=0;o<e.length;o++){let n=document.createElement("style");n.innerHTML=e[o],n.className=r,t.append(n)}super.addStylesTo(t)}removeStylesFrom(t){t=this.normalizeTarget(t);let e=t.querySelectorAll(`.${this.styleClass}`);for(let r=0,o=e.length;r<o;++r)t.removeChild(e[r]);super.removeStylesFrom(t)}isAttachedTo(t){return super.isAttachedTo(this.normalizeTarget(t))}normalizeTarget(t){return t===document?document.body:t}};var Zt=Object.freeze({locate:pe()}),Ke={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,r=e.toLowerCase(),o="reflect",n){this.guards=new Set,this.Owner=t,this.name=e,this.attribute=r,this.mode=o,this.converter=n,this.fieldName=`_${e}`,this.callbackName=`${e}Changed`,this.hasCallback=this.callbackName in t.prototype,o==="boolean"&&n===void 0&&(this.converter=Ke)}setValue(t,e){let r=t[this.fieldName],o=this.converter;o!==void 0&&(e=o.fromView(e)),r!==e&&(t[this.fieldName]=e,this.tryReflectToAttribute(t),this.hasCallback&&t[this.callbackName](r,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,r=this.guards;r.has(t)||e==="fromView"||m.queueUpdate(()=>{r.add(t);let o=t[this.fieldName];switch(e){case"reflect":let n=this.converter;m.setAttribute(t,this.attribute,n!==void 0?n.toView(o):o);break;case"boolean":m.setBooleanAttribute(t,this.attribute,o);break}r.delete(t)})}static collect(t,...e){let r=[];e.push(Zt.locate(t));for(let o=0,n=e.length;o<n;++o){let s=e[o];if(s!==void 0)for(let a=0,d=s.length;a<d;++a){let c=s[a];typeof c=="string"?r.push(new kt(t,c)):r.push(new kt(t,c.property,c.attribute,c.mode,c.converter))}}return r}};function u(i,t){let e;function r(o,n){arguments.length>1&&(e.property=n),Zt.locate(o.constructor).push(e)}if(arguments.length>1){e={},r(i,t);return}return e=i===void 0?{}:i,r}var dr={mode:"open"},ur={},ti=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 r=kt.collect(t,e.attributes),o=new Array(r.length),n={},s={};for(let a=0,d=r.length;a<d;++a){let c=r[a];o[a]=c.attribute,n[c.name]=c,s[c.attribute]=c}this.attributes=r,this.observedAttributes=o,this.propertyLookup=n,this.attributeLookup=s,this.shadowOptions=e.shadowOptions===void 0?dr:e.shadowOptions===null?void 0:Object.assign(Object.assign({},dr),e.shadowOptions),this.elementOptions=e.elementOptions===void 0?ur:Object.assign(Object.assign({},ur),e.elementOptions),this.styles=e.styles===void 0?void 0:Array.isArray(e.styles)?$.create(e.styles):e.styles instanceof $?e.styles:$.create([e.styles])}get isDefined(){return!!ti.getByType(this.type)}define(t=customElements){let e=this.type;if(ti.register(this)){let r=this.attributes,o=e.prototype;for(let n=0,s=r.length;n<s;++n)b.defineProperty(o,r[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=ti.getByType;var hr=new WeakMap,qo={bubbles:!0,composed:!0,cancelable:!0};function ei(i){return i.shadowRoot||hr.get(i)||null}var Nt=class extends Rt{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 r=e.shadowOptions;if(r!==void 0){let n=t.attachShadow(r);r.mode==="closed"&&hr.set(t,n)}let o=b.getAccessors(t);if(o.length>0){let n=this.boundObservables=Object.create(null);for(let s=0,a=o.length;s<a;++s){let d=o[s].name,c=t[d];c!==void 0&&(delete t[d],n[d]=c)}}}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=ei(this.element)||this.element.getRootNode();if(t instanceof HTMLStyleElement)e.append(t);else if(!t.isAttachedTo(e)){let r=t.behaviors;t.addStylesTo(e),r!==null&&this.addBehaviors(r)}}removeStyles(t){let e=ei(this.element)||this.element.getRootNode();if(t instanceof HTMLStyleElement)e.removeChild(t);else if(t.isAttachedTo(e)){let r=t.behaviors;t.removeStylesFrom(e),r!==null&&this.removeBehaviors(r)}}addBehaviors(t){let e=this.behaviors||(this.behaviors=new Map),r=t.length,o=[];for(let n=0;n<r;++n){let s=t[n];e.has(s)?e.set(s,e.get(s)+1):(e.set(s,1),o.push(s))}if(this._isConnected){let n=this.element;for(let s=0;s<o.length;++s)o[s].bind(n,at)}}removeBehaviors(t,e=!1){let r=this.behaviors;if(r===null)return;let o=t.length,n=[];for(let s=0;s<o;++s){let a=t[s];if(r.has(a)){let d=r.get(a)-1;d===0||e?r.delete(a)&&n.push(a):r.set(a,d)}}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,at);let e=this.behaviors;if(e!==null)for(let[r]of e)r.bind(t,at);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 r=this.element;for(let[o]of e)o.unbind(r)}}onAttributeChangedCallback(t,e,r){let o=this.definition.attributeLookup[t];o!==void 0&&o.onAttributeChangedCallback(this.element,r)}emit(t,e,r){return this._isConnected?this.element.dispatchEvent(new CustomEvent(t,Object.assign(Object.assign({detail:e},qo),r))):!1}finishInitialization(){let t=this.element,e=this.boundObservables;if(e!==null){let o=Object.keys(e);for(let n=0,s=o.length;n<s;++n){let a=o[n];t[a]=e[a]}this.boundObservables=null}let r=this.definition;this._template===null&&(this.element.resolveTemplate?this._template=this.element.resolveTemplate():r.template&&(this._template=r.template||null)),this._template!==null&&this.renderTemplate(this._template),this._styles===null&&(this.element.resolveStyles?this._styles=this.element.resolveStyles():r.styles&&(this._styles=r.styles||null)),this._styles!==null&&this.addStyles(this._styles),this.needsInitialization=!1}renderTemplate(t){let e=this.element,r=ei(e)||e;this.view!==null?(this.view.dispose(),this.view=null):this.needsInitialization||m.removeChildNodes(r),t&&(this.view=t.render(e,r,e))}static forCustomElement(t){let e=t.$fastController;if(e!==void 0)return e;let r=Z.forType(t.constructor);if(r===void 0)throw new Error("Missing FASTElement definition.");return t.$fastController=new Nt(t,r)}};function pr(i){return class extends i{constructor(){super(),Nt.forCustomElement(this)}$emit(t,e,r){return this.$fastController.emit(t,e,r)}connectedCallback(){this.$fastController.onConnectedCallback()}disconnectedCallback(){this.$fastController.onDisconnectedCallback()}attributeChangedCallback(t,e,r){this.$fastController.onAttributeChangedCallback(t,e,r)}}}var lt=Object.assign(pr(HTMLElement),{from(i){return pr(i)},define(i,t){return new Z(i,t).define().type}});var St=class{createCSS(){return""}createBehavior(){}};function Uo(i,t){let e=[],r="",o=[];for(let n=0,s=i.length-1;n<s;++n){r+=i[n];let a=t[n];if(a instanceof St){let d=a.createBehavior();a=a.createCSS(),d&&o.push(d)}a instanceof $||a instanceof CSSStyleSheet?(r.trim()!==""&&(e.push(r),r=""),e.push(a)):r+=a}return r+=i[i.length-1],r.trim()!==""&&e.push(r),{styles:e,behaviors:o}}function T(i,...t){let{styles:e,behaviors:r}=Uo(i,t),o=$.create(e);return r.length&&o.withBehaviors(...r),o}var ii=class{constructor(t,e){this.target=t,this.propertyName=e}bind(t){t[this.propertyName]=this.target}unbind(){}};function A(i){return new Lt("fast-ref",ii,i)}var ri=i=>typeof i=="function";var Wo=()=>null;function fr(i){return i===void 0?Wo:ri(i)?i:()=>i}function ve(i,t,e){let r=ri(i)?i:()=>i,o=fr(t),n=fr(e);return(s,a)=>r(s,a)?o(s,a):n(s,a)}var ye=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(r=>r.name===e),this.source=t,this.updateTarget(this.computeNodes()),this.shouldUpdate&&this.observe()}unbind(){this.updateTarget(nt),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 ye{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 z(i){return typeof i=="string"&&(i={property:i}),new Lt("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)=>S`
|
|
1
|
+
function je(i){return i.type==="int"?{type:"int",value:Ir("",i.value)}:i}function Ir(i,t){return typeof t=="bigint"?`jsonbigint ${t}n`:t}function Zi(i,t){if(typeof t=="string"){let e=t.match(/^jsonbigint\x01\x02 (\d+)n$/);if(e)return BigInt(e[1])}return t}var ot=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{}}}();ot.trustedTypes===void 0&&(ot.trustedTypes={createPolicy:(i,t)=>t});var Ki={configurable:!1,enumerable:!1,writable:!1};ot.FAST===void 0&&Reflect.defineProperty(ot,"FAST",Object.assign({value:Object.create(null)},Ki));var xt=ot.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}},Ki))}var rt=Object.freeze([]);function de(){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=ot.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 d=0,c=i.length-a;d<c;d++)i[d]=i[d+a];i.length-=a,a=0}i.length=0}function n(s){i.length<1&&ot.requestAnimationFrame(r),i.push(s)}return Object.freeze({enqueue:n,process:r})}),to=ot.trustedTypes.createPolicy("fast-html",{createHTML:i=>i}),qe=to,Gt=`fast-${Math.random().toString(36).substring(2,8)}`,Ue=`${Gt}{`,ue=`}${Gt}`,m=Object.freeze({supportsAdoptedStyleSheets:Array.isArray(document.adoptedStyleSheets)&&"replace"in CSSStyleSheet.prototype,setHTMLPolicy(i){if(qe!==to)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(Gt)},extractDirectiveIndexFromMarker(i){return parseInt(i.data.replace(`${Gt}:`,""))},createInterpolationPlaceholder(i){return`${Ue}${i}${ue}`},createCustomAttributePlaceholder(i,t){return`${i}="${this.createInterpolationPlaceholder(t)}"`},createBlockPlaceholder(i){return`<!--${Gt}:${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 _t=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 _t(this.source)),r.subscribe(t)}else this.sourceSubscribers=(o=this.sourceSubscribers)!==null&&o!==void 0?o:new _t(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=c=>{throw new Error("Must call enableArrayObservation before observing arrays.")};function n(c){let h=c.$fastController||t.get(c);return h===void 0&&(Array.isArray(c)?h=r(c):t.set(c,h=new Dt(c))),h}let s=de();class a{constructor(h){this.name=h,this.field=`_${h}`,this.callback=`${h}Changed`}getValue(h){return o!==void 0&&o.watch(h,this.name),h[this.field]}setValue(h,y){let T=this.field,j=h[T];if(j!==y){h[T]=y;let E=h[this.callback];typeof E=="function"&&E.call(h,j,y),n(h).notify(this.name)}}}class d extends _t{constructor(h,y,T=!1){super(h,y),this.binding=h,this.isVolatileBinding=T,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(h,y){this.needsRefresh&&this.last!==null&&this.disconnect();let T=o;o=this.needsRefresh?this:void 0,this.needsRefresh=this.isVolatileBinding;let j=this.binding(h,y);return o=T,j}disconnect(){if(this.last!==null){let h=this.first;for(;h!==void 0;)h.notifier.unsubscribe(this,h.propertyName),h=h.next;this.last=null,this.needsRefresh=this.needsQueue=!0}}watch(h,y){let T=this.last,j=n(h),E=T===null?this.first:{};if(E.propertySource=h,E.propertyName=y,E.notifier=j,j.subscribe(this,y),T!==null){if(!this.needsRefresh){let G;o=void 0,G=T.propertySource[T.propertyName],o=this,h===G&&(this.needsRefresh=!0)}T.next=E}this.last=E}handleChange(){this.needsQueue&&(this.needsQueue=!1,e(this))}call(){this.last!==null&&(this.needsQueue=!0,this.notify(this))}records(){let h=this.first;return{next:()=>{let y=h;return y===void 0?{value:void 0,done:!0}:(h=h.next,{value:y,done:!1})},[Symbol.iterator]:function(){return this}}}}return Object.freeze({setArrayObserverFactory(c){r=c},getNotifier:n,track(c,h){o!==void 0&&o.watch(c,h)},trackVolatile(){o!==void 0&&(o.needsRefresh=!0)},notify(c,h){n(c).notify(h)},defineProperty(c,h){typeof h=="string"&&(h=new a(h)),s(c).push(h),Reflect.defineProperty(c,h.name,{enumerable:!0,get:function(){return h.getValue(this)},set:function(y){h.setValue(this,y)}})},getAccessors:s,binding(c,h,y=this.isVolatileBinding(c)){return new d(c,h,y)},isVolatileBinding(c){return i.test(c.toString())}})});function f(i,t){b.defineProperty(i,t)}function io(i,t,e){return Object.assign({},e,{get:function(){return b.trackVolatile(),e.get.apply(this)}})}var eo=xt.getById(3,()=>{let i=null;return{get(){return i},set(t){i=t}}}),nt=class{constructor(){this.index=0,this.length=0,this.parent=null,this.parentContext=null}get event(){return eo.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){eo.set(t)}};b.defineProperty(nt.prototype,"index");b.defineProperty(nt.prototype,"length");var st=Object.seal(new nt);var Ft=class{constructor(){this.targetIndex=0}},Rt=class extends Ft{constructor(){super(...arguments),this.createPlaceholder=m.createInterpolationPlaceholder}},Mt=class extends Ft{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 Or(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 Er(i,t){this.source=i,this.context=t,this.target.addEventListener(this.targetName,this)}function Ar(){this.bindingObserver.disconnect(),this.source=null,this.context=null}function Pr(){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 _r(){this.target.removeEventListener(this.targetName,this),this.source=null,this.context=null}function Dr(i){m.setAttribute(this.target,this.targetName,i)}function Fr(i){m.setBooleanAttribute(this.target,this.targetName,i)}function Rr(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 Rt{constructor(t){super(),this.binding=t,this.bind=Or,this.unbind=Ar,this.updateTarget=Dr,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=Fr;break;case"@":this.cleanedTargetName=t.substr(1),this.bind=Er,this.unbind=_r;break;default:this.cleanedTargetName=t,t==="class"&&(this.updateTarget=Br);break}}targetAtContent(){this.updateTarget=Rr,this.unbind=Pr}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){nt.setEvent(t);let e=this.binding(this.source,this.context);nt.setEvent(null),e!==!0&&t.preventDefault()}};var Ge=null,Qe=class i{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 i;return e.directives=t,e.reset(),Ge=null,e}};function Lr(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 d="";for(let c=0;c<e;++c)d+=o[c](s,a);return d},n=new wt(r);return n.targetName=t,n}var Nr=ue.length;function ro(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(ue),d;if(a===-1)d=s;else{let c=parseInt(s.substring(0,a));o.push(i.directives[c]),d=s.substring(a+Nr)}d!==""&&o.push(d)}return o}function oo(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,d=ro(i,a),c=null;d===null?e&&(c=new wt(()=>a),c.targetName=s.name):c=Lr(d),c!==null&&(t.removeAttributeNode(s),r--,n--,i.addFactory(c))}}function Vr(i,t,e){let o=ro(i,t.textContent);if(o!==null){let r=t;for(let n=0,s=o.length;n<s;++n){let a=o[n],d=n===0?t:r.parentNode.insertBefore(document.createTextNode(""),r.nextSibling);typeof a=="string"?d.textContent=a:(d.textContent=" ",i.captureContentBinding(a)),r=d,i.targetIndex++,d!==t&&e.nextNode()}i.targetIndex--}}function no(i,t){let e=i.content;document.adoptNode(e);let o=Qe.borrow(t);oo(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:oo(o,s);break;case 3:Vr(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 d=o.behaviorFactories;return o.release(),{fragment:e,viewBehaviorFactories:d,hostBehaviorFactories:r,targetOffset:a}}var Xe=document.createRange(),he=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,d=n.length;a<d;++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){Xe.setStartBefore(t[0].firstChild),Xe.setEndAfter(t[t.length-1].lastChild),Xe.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,d=n.length;a<d;++a)n[a].unbind(s)}}}};var pe=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 c,h=this.html;if(typeof h=="string"){c=document.createElement("template"),c.innerHTML=m.createHTML(h);let T=c.content.firstElementChild;T!==null&&T.tagName==="TEMPLATE"&&(c=T)}else c=h;let y=no(c,this.directives);this.fragment=y.fragment,this.viewBehaviorFactories=y.viewBehaviorFactories,this.hostBehaviorFactories=y.hostBehaviorFactories,this.targetOffset=y.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,d=n.nextNode();for(let c=o.length;s<c;++s){let h=o[s],y=h.targetIndex;for(;d!==null;)if(a===y){r[s]=h.createBehavior(d);break}else d=n.nextNode(),a++}if(this.hasHostBehaviors){let c=this.hostBehaviorFactories;for(let h=0,y=c.length;h<y;++h,++s)r[s]=c[h].createBehavior(t)}return new he(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,st),r.appendTo(e),r}},Hr=/([ \x09\x0a\x0c\x0d])([^\0-\x1F\x7F-\x9F "'>=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/;function k(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 pe){let d=a;a=()=>d}if(typeof a=="function"&&(a=new wt(a)),a instanceof Rt){let d=Hr.exec(s);d!==null&&(a.targetName=d[2])}a instanceof Ft?(o+=a.createPlaceholder(e.length),e.push(a)):o+=a}return o+=i[i.length-1],new pe(o,e)}var C=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}};C.create=(()=>{if(m.supportsAdoptedStyleSheets){let i=new Map;return t=>new Ye(t,i)}return i=>new Je(i)})();function Ze(i){return i.map(t=>t instanceof C?Ze(t.styles):[t]).reduce((t,e)=>t.concat(e),[])}function so(i){return i.map(t=>t instanceof C?t.behaviors:null).reduce((t,e)=>e===null?t:(t===null&&(t=[]),t.concat(e)),null)}var fe=Symbol("prependToAdoptedStyleSheets");function ao(i){let t=[],e=[];return i.forEach(o=>(o[fe]?t:e).push(o)),{prepend:t,append:e}}var lo=(i,t)=>{let{prepend:e,append:o}=ao(t);i.adoptedStyleSheets=[...e,...i.adoptedStyleSheets,...o]},co=(i,t)=>{i.adoptedStyleSheets=i.adoptedStyleSheets.filter(e=>t.indexOf(e)===-1)};if(m.supportsAdoptedStyleSheets)try{document.adoptedStyleSheets.push(),document.adoptedStyleSheets.splice(),lo=(i,t)=>{let{prepend:e,append:o}=ao(t);i.adoptedStyleSheets.splice(0,0,...e),i.adoptedStyleSheets.push(...o)},co=(i,t)=>{for(let e of t){let o=i.adoptedStyleSheets.indexOf(e);o!==-1&&i.adoptedStyleSheets.splice(o,1)}}}catch{}var Ye=class extends C{constructor(t,e){super(),this.styles=t,this.styleSheetCache=e,this._styleSheets=void 0,this.behaviors=so(t)}get styleSheets(){if(this._styleSheets===void 0){let t=this.styles,e=this.styleSheetCache;this._styleSheets=Ze(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){lo(t,this.styleSheets),super.addStylesTo(t)}removeStylesFrom(t){co(t,this.styleSheets),super.removeStylesFrom(t)}},jr=0;function zr(){return`fast-style-class-${++jr}`}var Je=class extends C{constructor(t){super(),this.styles=t,this.behaviors=null,this.behaviors=so(t),this.styleSheets=Ze(t),this.styleClass=zr()}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 Qt=Object.freeze({locate:de()}),Ke={toView(i){return i?"true":"false"},fromView(i){return!(i==null||i==="false"||i===!1||i===0)}},Bt={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}},me=class i{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=Ke)}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(Qt.locate(t));for(let r=0,n=e.length;r<n;++r){let s=e[r];if(s!==void 0)for(let a=0,d=s.length;a<d;++a){let c=s[a];typeof c=="string"?o.push(new i(t,c)):o.push(new i(t,c.property,c.attribute,c.mode,c.converter))}}return o}};function u(i,t){let e;function o(r,n){arguments.length>1&&(e.property=n),Qt.locate(r.constructor).push(e)}if(arguments.length>1){e={},o(i,t);return}return e=i===void 0?{}:i,o}var uo={mode:"open"},ho={},ti=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)}})}),J=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=me.collect(t,e.attributes),r=new Array(o.length),n={},s={};for(let a=0,d=o.length;a<d;++a){let c=o[a];r[a]=c.attribute,n[c.name]=c,s[c.attribute]=c}this.attributes=o,this.observedAttributes=r,this.propertyLookup=n,this.attributeLookup=s,this.shadowOptions=e.shadowOptions===void 0?uo:e.shadowOptions===null?void 0:Object.assign(Object.assign({},uo),e.shadowOptions),this.elementOptions=e.elementOptions===void 0?ho:Object.assign(Object.assign({},ho),e.elementOptions),this.styles=e.styles===void 0?void 0:Array.isArray(e.styles)?C.create(e.styles):e.styles instanceof C?e.styles:C.create([e.styles])}get isDefined(){return!!ti.getByType(this.type)}define(t=customElements){let e=this.type;if(ti.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}};J.forType=ti.getByType;var po=new WeakMap,qr={bubbles:!0,composed:!0,cancelable:!0};function ei(i){return i.shadowRoot||po.get(i)||null}var be=class i 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"&&po.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 d=r[s].name,c=t[d];c!==void 0&&(delete t[d],n[d]=c)}}}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=ei(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=ei(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,st)}}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 d=o.get(a)-1;d===0||e?o.delete(a)&&n.push(a):o.set(a,d)}}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,st);let e=this.behaviors;if(e!==null)for(let[o]of e)o.bind(t,st);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},qr),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=ei(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=J.forType(t.constructor);if(o===void 0)throw new Error("Missing FASTElement definition.");return t.$fastController=new i(t,o)}};function fo(i){return class extends i{constructor(){super(),be.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 at=Object.assign(fo(HTMLElement),{from(i){return fo(i)},define(i,t){return new J(i,t).define().type}});var kt=class{createCSS(){return""}createBehavior(){}};function Ur(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 kt){let d=a.createBehavior();a=a.createCSS(),d&&r.push(d)}a instanceof C||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,...t){let{styles:e,behaviors:o}=Ur(i,t),r=C.create(e);return o.length&&r.withBehaviors(...o),r}var ii=class{constructor(t,e){this.target=t,this.propertyName=e}bind(t){t[this.propertyName]=this.target}unbind(){}};function I(i){return new Mt("fast-ref",ii,i)}var oi=i=>typeof i=="function";var Wr=()=>null;function mo(i){return i===void 0?Wr:oi(i)?i:()=>i}function ge(i,t,e){let o=oi(i)?i:()=>i,r=mo(t),n=mo(e);return(s,a)=>o(s,a)?r(s,a):n(s,a)}var ye=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(rt),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 ri=class extends ye{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 H(i){return typeof i=="string"&&(i={property:i}),new Mt("fast-slotted",ri,i)}var z=class{handleStartContentChange(){this.startContainer.classList.toggle("start",this.start.assignedNodes().length>0)}handleEndContentChange(){this.endContainer.classList.toggle("end",this.end.assignedNodes().length>0)}},Z=(i,t)=>k`
|
|
2
2
|
<span
|
|
3
3
|
part="end"
|
|
4
|
-
${
|
|
4
|
+
${I("endContainer")}
|
|
5
5
|
class=${e=>t.end?"end":void 0}
|
|
6
6
|
>
|
|
7
|
-
<slot name="end" ${
|
|
7
|
+
<slot name="end" ${I("end")} @slotchange="${e=>e.handleEndContentChange()}">
|
|
8
8
|
${t.end||""}
|
|
9
9
|
</slot>
|
|
10
10
|
</span>
|
|
11
|
-
`,
|
|
11
|
+
`,K=(i,t)=>k`
|
|
12
12
|
<span
|
|
13
13
|
part="start"
|
|
14
|
-
${
|
|
14
|
+
${I("startContainer")}
|
|
15
15
|
class="${e=>t.start?"start":void 0}"
|
|
16
16
|
>
|
|
17
17
|
<slot
|
|
18
18
|
name="start"
|
|
19
|
-
${
|
|
19
|
+
${I("start")}
|
|
20
20
|
@slotchange="${e=>e.handleStartContentChange()}"
|
|
21
21
|
>
|
|
22
22
|
${t.start||""}
|
|
23
23
|
</slot>
|
|
24
24
|
</span>
|
|
25
|
-
`,Js=
|
|
26
|
-
<span part="end" ${
|
|
25
|
+
`,Js=k`
|
|
26
|
+
<span part="end" ${I("endContainer")}>
|
|
27
27
|
<slot
|
|
28
28
|
name="end"
|
|
29
|
-
${
|
|
29
|
+
${I("end")}
|
|
30
30
|
@slotchange="${i=>i.handleEndContentChange()}"
|
|
31
31
|
></slot>
|
|
32
32
|
</span>
|
|
33
|
-
`,Zs=
|
|
34
|
-
<span part="start" ${
|
|
33
|
+
`,Zs=k`
|
|
34
|
+
<span part="start" ${I("startContainer")}>
|
|
35
35
|
<slot
|
|
36
36
|
name="start"
|
|
37
|
-
${
|
|
37
|
+
${I("start")}
|
|
38
38
|
@slotchange="${i=>i.handleStartContentChange()}"
|
|
39
39
|
></slot>
|
|
40
40
|
</span>
|
|
41
|
-
`;function l(i,t,e,r){var o=arguments.length,n=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,t,e,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(n=(o<3?s(n):o>3?s(t,e,n):s(t,e))||n);return o>3&&n&&Object.defineProperty(t,e,n),n}var ni=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 r=ni.get(e);r===void 0&&ni.set(e,r=new Map),r.set(i,t)},Reflect.getOwnMetadata=function(i,t){let e=ni.get(t);if(e!==void 0)return e.get(i)});var ci=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,$r(t))}aliasTo(t){return this.registerResolver(5,t)}registerResolver(t,e){let{container:r,key:o}=this;return this.container=this.key=void 0,r.registerResolver(o,new H(o,t,e))}};function Kt(i){let t=i.slice(),e=Object.keys(i),r=e.length,o;for(let n=0;n<r;++n)o=e[n],Tr(o)||(t[o]=i[o]);return t}var Go=Object.freeze({none(i){throw Error(`${i.toString()} not registered, did you forget to add @singleton()?`)},singleton(i){return new H(i,1,i)},transient(i){return new H(i,2,i)}}),si=Object.freeze({default:Object.freeze({parentLocator:()=>null,responsibleForOwnerRequests:!1,defaultResolver:Go.singleton})}),mr=new Map;function br(i){return t=>Reflect.getOwnMetadata(i,t)}var gr=null,x=Object.freeze({createContainer(i){return new Ct(null,Object.assign({},si.default,i))},findResponsibleContainer(i){let t=i.$$container$$;return t&&t.responsibleForOwnerRequests?t:x.findParentContainer(i)},findParentContainer(i){let t=new CustomEvent(Cr,{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 Ct(i,Object.assign({},si.default,t,{parentLocator:x.findParentContainer})):gr||(gr=new Ct(null,Object.assign({},si.default,t,{parentLocator:()=>null})))},getDesignParamtypes:br("design:paramtypes"),getAnnotationParamtypes:br("di:paramtypes"),getOrCreateAnnotationParamTypes(i){let t=this.getAnnotationParamtypes(i);return t===void 0&&Reflect.defineMetadata("di:paramtypes",t=[],i),t},getDependencies(i){let t=mr.get(i);if(t===void 0){let e=i.inject;if(e===void 0){let r=x.getDesignParamtypes(i),o=x.getAnnotationParamtypes(i);if(r===void 0)if(o===void 0){let n=Object.getPrototypeOf(i);typeof n=="function"&&n!==Function.prototype?t=Kt(x.getDependencies(n)):t=[]}else t=Kt(o);else if(o===void 0)t=Kt(r);else{t=Kt(r);let n=o.length,s;for(let c=0;c<n;++c)s=o[c],s!==void 0&&(t[c]=s);let a=Object.keys(o);n=a.length;let d;for(let c=0;c<n;++c)d=a[c],Tr(d)||(t[d]=o[d])}}else t=Kt(e);mr.set(i,t)}return t},defineProperty(i,t,e,r=!1){let o=`$di_${t}`;Reflect.defineProperty(i,t,{get:function(){let n=this[o];if(n===void 0&&(n=(this instanceof HTMLElement?x.findResponsibleContainer(this):x.getOrCreateDOMContainer()).get(e),this[o]=n,r&&this instanceof lt)){let a=this.$fastController,d=()=>{let h=x.findResponsibleContainer(this).get(e),v=this[o];h!==v&&(this[o]=n,a.notify(t))};a.subscribe({handleChange:d},"isConnected")}return n}})},createInterface(i,t){let e=typeof i=="function"?i:t,r=typeof i=="string"?i:i&&"friendlyName"in i&&i.friendlyName||wr,o=typeof i=="string"?!1:i&&"respectConnection"in i&&i.respectConnection||!1,n=function(s,a,d){if(s==null||new.target!==void 0)throw new Error(`No registration for interface: '${n.friendlyName}'`);if(a)x.defineProperty(s,a,n,o);else{let c=x.getOrCreateAnnotationParamTypes(s);c[d]=n}};return n.$isInterface=!0,n.friendlyName=r??"(anonymous)",e!=null&&(n.register=function(s,a){return e(new ci(s,a??n))}),n.toString=function(){return`InterfaceSymbol<${n.friendlyName}>`},n},inject(...i){return function(t,e,r){if(typeof r=="number"){let o=x.getOrCreateAnnotationParamTypes(t),n=i[0];n!==void 0&&(o[r]=n)}else if(e)x.defineProperty(t,e,i[0]);else{let o=r?x.getOrCreateAnnotationParamTypes(r.value):x.getOrCreateAnnotationParamTypes(t),n;for(let s=0;s<i.length;++s)n=i[s],n!==void 0&&(o[s]=n)}}},transient(i){return i.register=function(e){return $t.transient(i,i).register(e)},i.registerInRequestor=!1,i},singleton(i,t=Xo){return i.register=function(r){return $t.singleton(i,i).register(r)},i.registerInRequestor=t.scoped,i}}),Qo=x.createInterface("Container");function Se(i){return function(t){let e=function(r,o,n){x.inject(e)(r,o,n)};return e.$isResolver=!0,e.resolve=function(r,o){return i(t,r,o)},e}}var ia=x.inject;var Xo={scoped:!1};function Yo(i){return function(t,e){e=!!e;let r=function(o,n,s){x.inject(r)(o,n,s)};return r.$isResolver=!0,r.resolve=function(o,n){return i(t,o,n,e)},r}}var ra=Yo((i,t,e,r)=>e.getAll(i,r)),oa=Se((i,t,e)=>()=>e.get(i)),na=Se((i,t,e)=>{if(e.has(i,!0))return e.get(i)});function ui(i,t,e){x.inject(ui)(i,t,e)}ui.$isResolver=!0;ui.resolve=()=>{};var sa=Se((i,t,e)=>{let r=Sr(i,t),o=new H(i,0,r);return e.registerResolver(i,o),r}),aa=Se((i,t,e)=>Sr(i,t));function Sr(i,t){return t.getFactory(i).construct(t)}var H=class{constructor(t,e,r){this.key=t,this.strategy=e,this.state=r,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 r=t.getFactory(this.state);if(r===null)throw new Error(`Resolver for ${String(this.key)} returned a null factory`);return r.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,r,o;switch(this.strategy){case 1:case 2:return t.getFactory(this.state);case 5:return(o=(r=(e=t.getResolver(this.state))===null||e===void 0?void 0:e.getFactory)===null||r===void 0?void 0:r.call(e,t))!==null&&o!==void 0?o:null;default:return null}}};function vr(i){return this.get(i)}function Jo(i,t){return t(i)}var di=class{constructor(t,e){this.Type=t,this.dependencies=e,this.transformers=null}construct(t,e){let r;return e===void 0?r=new this.Type(...this.dependencies.map(vr,t)):r=new this.Type(...this.dependencies.map(vr,t),...e),this.transformers==null?r:this.transformers.reduce(Jo,r)}registerTransformer(t){(this.transformers||(this.transformers=[])).push(t)}},Zo={$isResolver:!0,resolve(i,t){return t}};function ke(i){return typeof i.register=="function"}function Ko(i){return ke(i)&&typeof i.registerInRequestor=="boolean"}function yr(i){return Ko(i)&&i.registerInRequestor}function tn(i){return i.prototype!==void 0}var en=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"]),Cr="__DI_LOCATE_PARENT__",ai=new Map,Ct=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(Qo,Zo),t instanceof Node&&t.addEventListener(Cr,r=>{r.composedPath()[0]!==this.owner&&(r.detail.container=this,r.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,r,o,n,s,a=this.context;for(let d=0,c=t.length;d<c;++d)if(e=t[d],!!kr(e))if(ke(e))e.register(this,a);else if(tn(e))$t.singleton(e,e).register(this);else for(r=Object.keys(e),n=0,s=r.length;n<s;++n)o=e[r[n]],kr(o)&&(ke(o)?o.register(this,a):this.register(o));return--this.registerDepth,this}registerResolver(t,e){xe(t);let r=this.resolvers,o=r.get(t);return o==null?r.set(t,e):o instanceof H&&o.strategy===4?o.state.push(e):r.set(t,new H(t,4,[o,e])),e}registerTransformer(t,e){let r=this.getResolver(t);if(r==null)return!1;if(r.getFactory){let o=r.getFactory(this);return o==null?!1:(o.registerTransformer(e),!0)}return!1}getResolver(t,e=!0){if(xe(t),t.resolve!==void 0)return t;let r=this,o;for(;r!=null;)if(o=r.resolvers.get(t),o==null){if(r.parent==null){let n=yr(t)?this:r;return e?this.jitRegister(t,n):null}r=r.parent}else return o;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(xe(t),t.$isResolver)return t.resolve(this,this);let e=this,r;for(;e!=null;)if(r=e.resolvers.get(t),r==null){if(e.parent==null){let o=yr(t)?this:e;return r=this.jitRegister(t,o),r.resolve(e,this)}e=e.parent}else return r.resolve(e,this);throw new Error(`Unable to resolve key: ${String(t)}`)}getAll(t,e=!1){xe(t);let r=this,o=r,n;if(e){let s=nt;for(;o!=null;)n=o.resolvers.get(t),n!=null&&(s=s.concat(xr(n,o,r))),o=o.parent;return s}else for(;o!=null;)if(n=o.resolvers.get(t),n==null){if(o=o.parent,o==null)return nt}else return xr(n,o,r);return nt}getFactory(t){let e=ai.get(t);if(e===void 0){if(rn(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.`);ai.set(t,e=new di(t,x.getDependencies(t)))}return e}registerFactory(t,e){ai.set(t,e)}createChild(t){return new Ct(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(en.has(t.name))throw new Error(`Attempted to jitRegister an intrinsic type: ${t.name}. Did you forget to add @inject(Key)`);if(ke(t)){let r=t.register(e);if(!(r instanceof Object)||r.resolve==null){let o=e.resolvers.get(t);if(o!=null)return o;throw new Error("A valid resolver was not returned from the static register method")}return r}else{if(t.$isInterface)throw new Error(`Attempted to jitRegister an interface: ${t.friendlyName}`);{let r=this.config.defaultResolver(t,e);return e.resolvers.set(t,r),r}}}},li=new WeakMap;function $r(i){return function(t,e,r){if(li.has(r))return li.get(r);let o=i(t,e,r);return li.set(r,o),o}}var $t=Object.freeze({instance(i,t){return new H(i,0,t)},singleton(i,t){return new H(i,1,t)},transient(i,t){return new H(i,2,t)},callback(i,t){return new H(i,3,t)},cachedCallback(i,t){return new H(i,3,$r(t))},aliasTo(i,t){return new H(t,5,i)}});function xe(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 xr(i,t,e){if(i instanceof H&&i.strategy===4){let r=i.state,o=r.length,n=new Array(o);for(;o--;)n[o]=r[o].resolve(t,e);return n}return[i.resolve(t,e)]}var wr="(anonymous)";function kr(i){return typeof i=="object"&&i!==null||typeof i=="function"}var rn=function(){let i=new WeakMap,t=!1,e="",r=0;return function(o){return t=i.get(o),t===void 0&&(e=o.toString(),r=e.length,t=r>=29&&r<=100&&e.charCodeAt(r-1)===125&&e.charCodeAt(r-2)<=32&&e.charCodeAt(r-3)===93&&e.charCodeAt(r-4)===101&&e.charCodeAt(r-5)===100&&e.charCodeAt(r-6)===111&&e.charCodeAt(r-7)===99&&e.charCodeAt(r-8)===32&&e.charCodeAt(r-9)===101&&e.charCodeAt(r-10)===118&&e.charCodeAt(r-11)===105&&e.charCodeAt(r-12)===116&&e.charCodeAt(r-13)===97&&e.charCodeAt(r-14)===110&&e.charCodeAt(r-15)===88,i.set(o,t)),t}}(),we={};function Tr(i){switch(typeof i){case"number":return i>=0&&(i|0)===i;case"string":{let t=we[i];if(t!==void 0)return t;let e=i.length;if(e===0)return we[i]=!1;let r=0;for(let o=0;o<e;++o)if(r=i.charCodeAt(o),o===0&&r===48&&e>1||r<48||r>57)return we[i]=!1;return we[i]=!0}default:return!1}}function Ir(i){return`${i.toLowerCase()}:presentation`}var Ce=new Map,Te=Object.freeze({define(i,t,e){let r=Ir(i);Ce.get(r)===void 0?Ce.set(r,t):Ce.set(r,!1),e.register($t.instance(r,t))},forTag(i,t){let e=Ir(i),r=Ce.get(e);return r===!1?x.findResponsibleContainer(t).get(e):r||null}}),$e=class{constructor(t,e){this.template=t||null,this.styles=e===void 0?null:Array.isArray(e)?$.create(e):e instanceof $?e:$.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 lt{constructor(){super(...arguments),this._presentation=void 0}get $presentation(){return this._presentation===void 0&&(this._presentation=Te.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 te(i,t,e){return typeof i=="function"?i(t,e):i}var hi=class{constructor(t,e,r){this.type=t,this.elementDefinition=e,this.overrideDefinition=r,this.definition=Object.assign(Object.assign({},this.elementDefinition),this.overrideDefinition)}register(t,e){let r=this.definition,o=this.overrideDefinition,s=`${r.prefix||e.elementPrefix}-${r.baseName}`;e.tryDefineElement({name:s,type:this.type,baseClass:this.elementDefinition.baseClass,callback:a=>{let d=new $e(te(r.template,a,r),te(r.styles,a,r));a.definePresentation(d);let c=te(r.shadowOptions,a,r);a.shadowRootMode&&(c?o.shadowOptions||(c.mode=a.shadowRootMode):c!==null&&(c={mode:a.shadowRootMode})),a.defineElement({elementOptions:te(r.elementOptions,a,r),shadowOptions:c,attributes:te(r.attributes,a,r)})}})}};function F(i,...t){let e=Zt.locate(i);t.forEach(r=>{Object.getOwnPropertyNames(r.prototype).forEach(n=>{n!=="constructor"&&Object.defineProperty(i.prototype,n,Object.getOwnPropertyDescriptor(r.prototype,n))}),Zt.locate(r).forEach(n=>e.push(n))})}function Or(i,t){let e=i.length;for(;e--;)if(t(i[e],e,i))return e;return-1}function Er(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Ar(...i){return i.every(t=>t instanceof HTMLElement)}function on(){let i=document.querySelector('meta[property="csp-nonce"]');return i?i.getAttribute("content"):null}var Tt;function Pr(){if(typeof Tt=="boolean")return Tt;if(!Er())return Tt=!1,Tt;let i=document.createElement("style"),t=on();t!==null&&i.setAttribute("nonce",t),document.head.appendChild(i);try{i.sheet.insertRule("foo:focus-visible {color:inherit}",0),Tt=!0}catch{Tt=!1}finally{document.head.removeChild(i)}return Tt}var _r;(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"})(_r||(_r={}));var ct="ArrowDown",Fr="ArrowLeft",Dr="ArrowRight",dt="ArrowUp",Ht="Enter",jt="Escape",ut="Home",ht="End";var pt=" ",zt="Tab";function Rr(i,t,e){return Math.min(Math.max(e,i),t)}function ee(i,t,e=0){return[t,e]=[t,e].sort((r,o)=>r-o),t<=i&&i<e}var nn=0;function It(i=""){return`${i}${nn++}`}var y=class{};l([u({attribute:"aria-atomic"})],y.prototype,"ariaAtomic",void 0);l([u({attribute:"aria-busy"})],y.prototype,"ariaBusy",void 0);l([u({attribute:"aria-controls"})],y.prototype,"ariaControls",void 0);l([u({attribute:"aria-current"})],y.prototype,"ariaCurrent",void 0);l([u({attribute:"aria-describedby"})],y.prototype,"ariaDescribedby",void 0);l([u({attribute:"aria-details"})],y.prototype,"ariaDetails",void 0);l([u({attribute:"aria-disabled"})],y.prototype,"ariaDisabled",void 0);l([u({attribute:"aria-errormessage"})],y.prototype,"ariaErrormessage",void 0);l([u({attribute:"aria-flowto"})],y.prototype,"ariaFlowto",void 0);l([u({attribute:"aria-haspopup"})],y.prototype,"ariaHaspopup",void 0);l([u({attribute:"aria-hidden"})],y.prototype,"ariaHidden",void 0);l([u({attribute:"aria-invalid"})],y.prototype,"ariaInvalid",void 0);l([u({attribute:"aria-keyshortcuts"})],y.prototype,"ariaKeyshortcuts",void 0);l([u({attribute:"aria-label"})],y.prototype,"ariaLabel",void 0);l([u({attribute:"aria-labelledby"})],y.prototype,"ariaLabelledby",void 0);l([u({attribute:"aria-live"})],y.prototype,"ariaLive",void 0);l([u({attribute:"aria-owns"})],y.prototype,"ariaOwns",void 0);l([u({attribute:"aria-relevant"})],y.prototype,"ariaRelevant",void 0);l([u({attribute:"aria-roledescription"})],y.prototype,"ariaRoledescription",void 0);var Mr=(i,t)=>S`
|
|
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 ni=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=ni.get(e);o===void 0&&ni.set(e,o=new Map),o.set(i,t)},Reflect.getOwnMetadata=function(i,t){let e=ni.get(t);if(e!==void 0)return e.get(i)});var ci=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,To(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 L(r,t,e))}};function Xt(i){let t=i.slice(),e=Object.keys(i),o=e.length,r;for(let n=0;n<o;++n)r=e[n],Io(r)||(t[r]=i[r]);return t}var Gr=Object.freeze({none(i){throw Error(`${i.toString()} not registered, did you forget to add @singleton()?`)},singleton(i){return new L(i,1,i)},transient(i){return new L(i,2,i)}}),si=Object.freeze({default:Object.freeze({parentLocator:()=>null,responsibleForOwnerRequests:!1,defaultResolver:Gr.singleton})}),bo=new Map;function go(i){return t=>Reflect.getOwnMetadata(i,t)}var yo=null,x=Object.freeze({createContainer(i){return new Yt(null,Object.assign({},si.default,i))},findResponsibleContainer(i){let t=i.$$container$$;return t&&t.responsibleForOwnerRequests?t:x.findParentContainer(i)},findParentContainer(i){let t=new CustomEvent($o,{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 Yt(i,Object.assign({},si.default,t,{parentLocator:x.findParentContainer})):yo||(yo=new Yt(null,Object.assign({},si.default,t,{parentLocator:()=>null})))},getDesignParamtypes:go("design:paramtypes"),getAnnotationParamtypes:go("di:paramtypes"),getOrCreateAnnotationParamTypes(i){let t=this.getAnnotationParamtypes(i);return t===void 0&&Reflect.defineMetadata("di:paramtypes",t=[],i),t},getDependencies(i){let t=bo.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=Xt(x.getDependencies(n)):t=[]}else t=Xt(r);else if(r===void 0)t=Xt(o);else{t=Xt(o);let n=r.length,s;for(let c=0;c<n;++c)s=r[c],s!==void 0&&(t[c]=s);let a=Object.keys(r);n=a.length;let d;for(let c=0;c<n;++c)d=a[c],Io(d)||(t[d]=r[d])}}else t=Xt(e);bo.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 at)){let a=this.$fastController,d=()=>{let h=x.findResponsibleContainer(this).get(e),y=this[r];h!==y&&(this[r]=n,a.notify(t))};a.subscribe({handleChange:d},"isConnected")}return n}})},createInterface(i,t){let e=typeof i=="function"?i:t,o=typeof i=="string"?i:i&&"friendlyName"in i&&i.friendlyName||ko,r=typeof i=="string"?!1:i&&"respectConnection"in i&&i.respectConnection||!1,n=function(s,a,d){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 c=x.getOrCreateAnnotationParamTypes(s);c[d]=n}};return n.$isInterface=!0,n.friendlyName=o??"(anonymous)",e!=null&&(n.register=function(s,a){return e(new ci(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=Xr){return i.register=function(o){return St.singleton(i,i).register(o)},i.registerInRequestor=t.scoped,i}}),Qr=x.createInterface("Container");function ke(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 ia=x.inject;var Xr={scoped:!1};function Yr(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 oa=Yr((i,t,e,o)=>e.getAll(i,o)),ra=ke((i,t,e)=>()=>e.get(i)),na=ke((i,t,e)=>{if(e.has(i,!0))return e.get(i)});function ui(i,t,e){x.inject(ui)(i,t,e)}ui.$isResolver=!0;ui.resolve=()=>{};var sa=ke((i,t,e)=>{let o=Co(i,t),r=new L(i,0,o);return e.registerResolver(i,r),o}),aa=ke((i,t,e)=>Co(i,t));function Co(i,t){return t.getFactory(i).construct(t)}var L=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 vo(i){return this.get(i)}function Jr(i,t){return t(i)}var di=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(vo,t)):o=new this.Type(...this.dependencies.map(vo,t),...e),this.transformers==null?o:this.transformers.reduce(Jr,o)}registerTransformer(t){(this.transformers||(this.transformers=[])).push(t)}},Zr={$isResolver:!0,resolve(i,t){return t}};function we(i){return typeof i.register=="function"}function Kr(i){return we(i)&&typeof i.registerInRequestor=="boolean"}function xo(i){return Kr(i)&&i.registerInRequestor}function tn(i){return i.prototype!==void 0}var en=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"]),$o="__DI_LOCATE_PARENT__",ai=new Map,Yt=class i{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,Zr),t instanceof Node&&t.addEventListener($o,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 d=0,c=t.length;d<c;++d)if(e=t[d],!!So(e))if(we(e))e.register(this,a);else if(tn(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]],So(r)&&(we(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 L&&r.strategy===4?r.state.push(e):o.set(t,new L(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=xo(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=xo(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=rt;for(;r!=null;)n=r.resolvers.get(t),n!=null&&(s=s.concat(wo(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 rt}else return wo(n,r,o);return rt}getFactory(t){let e=ai.get(t);if(e===void 0){if(on(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.`);ai.set(t,e=new di(t,x.getDependencies(t)))}return e}registerFactory(t,e){ai.set(t,e)}createChild(t){return new i(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(en.has(t.name))throw new Error(`Attempted to jitRegister an intrinsic type: ${t.name}. Did you forget to add @inject(Key)`);if(we(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}}}},li=new WeakMap;function To(i){return function(t,e,o){if(li.has(o))return li.get(o);let r=i(t,e,o);return li.set(o,r),r}}var St=Object.freeze({instance(i,t){return new L(i,0,t)},singleton(i,t){return new L(i,1,t)},transient(i,t){return new L(i,2,t)},callback(i,t){return new L(i,3,t)},cachedCallback(i,t){return new L(i,3,To(t))},aliasTo(i,t){return new L(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 wo(i,t,e){if(i instanceof L&&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 ko="(anonymous)";function So(i){return typeof i=="object"&&i!==null||typeof i=="function"}var on=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}}(),xe={};function Io(i){switch(typeof i){case"number":return i>=0&&(i|0)===i;case"string":{let t=xe[i];if(t!==void 0)return t;let e=i.length;if(e===0)return xe[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 xe[i]=!1;return xe[i]=!0}default:return!1}}function Oo(i){return`${i.toLowerCase()}:presentation`}var Se=new Map,$e=Object.freeze({define(i,t,e){let o=Oo(i);Se.get(o)===void 0?Se.set(o,t):Se.set(o,!1),e.register(St.instance(o,t))},forTag(i,t){let e=Oo(i),o=Se.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)?C.create(e):e instanceof C?e:C.create([e])}applyTo(t){let e=t.$fastController;e.template===null&&(e.template=this.template),e.styles===null&&(e.styles=this.styles)}};var S=class i extends at{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===i?class extends i{}:this,t,e)}};l([f],S.prototype,"template",void 0);l([f],S.prototype,"styles",void 0);function Jt(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 d=new Ce(Jt(o.template,a,o),Jt(o.styles,a,o));a.definePresentation(d);let c=Jt(o.shadowOptions,a,o);a.shadowRootMode&&(c?r.shadowOptions||(c.mode=a.shadowRootMode):c!==null&&(c={mode:a.shadowRootMode})),a.defineElement({elementOptions:Jt(o.elementOptions,a,o),shadowOptions:c,attributes:Jt(o.attributes,a,o)})}})}};function A(i,...t){let e=Qt.locate(i);t.forEach(o=>{Object.getOwnPropertyNames(o.prototype).forEach(n=>{n!=="constructor"&&Object.defineProperty(i.prototype,n,Object.getOwnPropertyDescriptor(o.prototype,n))}),Qt.locate(o).forEach(n=>e.push(n))})}function Eo(i,t){let e=i.length;for(;e--;)if(t(i[e],e,i))return e;return-1}function Ao(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Po(...i){return i.every(t=>t instanceof HTMLElement)}function rn(){let i=document.querySelector('meta[property="csp-nonce"]');return i?i.getAttribute("content"):null}var Ct;function _o(){if(typeof Ct=="boolean")return Ct;if(!Ao())return Ct=!1,Ct;let i=document.createElement("style"),t=rn();t!==null&&i.setAttribute("nonce",t),document.head.appendChild(i);try{i.sheet.insertRule("foo:focus-visible {color:inherit}",0),Ct=!0}catch{Ct=!1}finally{document.head.removeChild(i)}return Ct}var Do;(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"})(Do||(Do={}));var lt="ArrowDown",Fo="ArrowLeft",Ro="ArrowRight",ct="ArrowUp",Lt="Enter",Nt="Escape",dt="Home",ut="End";var ht=" ",Vt="Tab";function Mo(i,t,e){return Math.min(Math.max(e,i),t)}function Zt(i,t,e=0){return[t,e]=[t,e].sort((o,r)=>o-r),t<=i&&i<e}var nn=0;function $t(i=""){return`${i}${nn++}`}var v=class{};l([u({attribute:"aria-atomic"})],v.prototype,"ariaAtomic",void 0);l([u({attribute:"aria-busy"})],v.prototype,"ariaBusy",void 0);l([u({attribute:"aria-controls"})],v.prototype,"ariaControls",void 0);l([u({attribute:"aria-current"})],v.prototype,"ariaCurrent",void 0);l([u({attribute:"aria-describedby"})],v.prototype,"ariaDescribedby",void 0);l([u({attribute:"aria-details"})],v.prototype,"ariaDetails",void 0);l([u({attribute:"aria-disabled"})],v.prototype,"ariaDisabled",void 0);l([u({attribute:"aria-errormessage"})],v.prototype,"ariaErrormessage",void 0);l([u({attribute:"aria-flowto"})],v.prototype,"ariaFlowto",void 0);l([u({attribute:"aria-haspopup"})],v.prototype,"ariaHaspopup",void 0);l([u({attribute:"aria-hidden"})],v.prototype,"ariaHidden",void 0);l([u({attribute:"aria-invalid"})],v.prototype,"ariaInvalid",void 0);l([u({attribute:"aria-keyshortcuts"})],v.prototype,"ariaKeyshortcuts",void 0);l([u({attribute:"aria-label"})],v.prototype,"ariaLabel",void 0);l([u({attribute:"aria-labelledby"})],v.prototype,"ariaLabelledby",void 0);l([u({attribute:"aria-live"})],v.prototype,"ariaLive",void 0);l([u({attribute:"aria-owns"})],v.prototype,"ariaOwns",void 0);l([u({attribute:"aria-relevant"})],v.prototype,"ariaRelevant",void 0);l([u({attribute:"aria-roledescription"})],v.prototype,"ariaRoledescription",void 0);var Bo=(i,t)=>k`
|
|
42
42
|
<button
|
|
43
43
|
class="control"
|
|
44
44
|
part="control"
|
|
@@ -74,15 +74,15 @@ function ze(i){return i.type==="int"?{type:"int",value:Io("",i.value)}:i}functio
|
|
|
74
74
|
aria-pressed="${e=>e.ariaPressed}"
|
|
75
75
|
aria-relevant="${e=>e.ariaRelevant}"
|
|
76
76
|
aria-roledescription="${e=>e.ariaRoledescription}"
|
|
77
|
-
${
|
|
77
|
+
${I("control")}
|
|
78
78
|
>
|
|
79
|
-
${
|
|
79
|
+
${K(i,t)}
|
|
80
80
|
<span class="content" part="content">
|
|
81
|
-
<slot ${
|
|
81
|
+
<slot ${H("defaultSlottedContent")}></slot>
|
|
82
82
|
</span>
|
|
83
|
-
${
|
|
83
|
+
${Z(i,t)}
|
|
84
84
|
</button>
|
|
85
|
-
`;var
|
|
85
|
+
`;var Lo="form-associated-proxy",No="ElementInternals",Vo=No in window&&"setFormValue"in window[No].prototype,Ho=new WeakMap;function Tt(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 Vo}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 rt}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(!Vo)return null;let e=Ho.get(this);return e||(e=this.attachInternals(),Ho.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",Lo),this.proxySlot=document.createElement("slot"),this.proxySlot.setAttribute("name",Lo)),(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 Lt:if(this.form instanceof HTMLFormElement){let o=this.form.querySelector("[type=submit]");o?.click()}break}}stopPropagation(e){e.stopPropagation()}};return u({mode:"boolean"})(t.prototype,"disabled"),u({mode:"fromView",attribute:"value"})(t.prototype,"initialValue"),u({attribute:"current-value"})(t.prototype,"currentValue"),u(t.prototype,"name"),u({mode:"boolean"})(t.prototype,"required"),f(t.prototype,"value"),t}function jo(i){class t extends Tt(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 u({attribute:"checked",mode:"boolean"})(e.prototype,"checkedAttribute"),u({attribute:"current-checked",converter:Ke})(e.prototype,"currentChecked"),f(e.prototype,"defaultChecked"),f(e.prototype,"checked"),e}var pi=class extends S{},Te=class extends Tt(pi){constructor(){super(...arguments),this.proxy=document.createElement("input")}};var V=class extends Te{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([u({mode:"boolean"})],V.prototype,"autofocus",void 0);l([u({attribute:"form"})],V.prototype,"formId",void 0);l([u],V.prototype,"formaction",void 0);l([u],V.prototype,"formenctype",void 0);l([u],V.prototype,"formmethod",void 0);l([u({mode:"boolean"})],V.prototype,"formnovalidate",void 0);l([u],V.prototype,"formtarget",void 0);l([u],V.prototype,"type",void 0);l([f],V.prototype,"defaultSlottedContent",void 0);var Ht=class{};l([u({attribute:"aria-expanded"})],Ht.prototype,"ariaExpanded",void 0);l([u({attribute:"aria-pressed"})],Ht.prototype,"ariaPressed",void 0);A(Ht,v);A(V,z,Ht);var zo=(i,t)=>k`
|
|
86
86
|
<template
|
|
87
87
|
role="checkbox"
|
|
88
88
|
aria-checked="${e=>e.checked}"
|
|
@@ -90,8 +90,8 @@ function ze(i){return i.type==="int"?{type:"int",value:Io("",i.value)}:i}functio
|
|
|
90
90
|
aria-disabled="${e=>e.disabled}"
|
|
91
91
|
aria-readonly="${e=>e.readOnly}"
|
|
92
92
|
tabindex="${e=>e.disabled?null:0}"
|
|
93
|
-
@keypress="${(e,
|
|
94
|
-
@click="${(e,
|
|
93
|
+
@keypress="${(e,o)=>e.keypressHandler(o.event)}"
|
|
94
|
+
@click="${(e,o)=>e.clickHandler(o.event)}"
|
|
95
95
|
class="${e=>e.readOnly?"readonly":""} ${e=>e.checked?"checked":""} ${e=>e.indeterminate?"indeterminate":""}"
|
|
96
96
|
>
|
|
97
97
|
<div part="control" class="control">
|
|
@@ -106,10 +106,10 @@ function ze(i){return i.type==="int"?{type:"int",value:Io("",i.value)}:i}functio
|
|
|
106
106
|
part="label"
|
|
107
107
|
class="${e=>e.defaultSlottedNodes&&e.defaultSlottedNodes.length?"label":"label label__hidden"}"
|
|
108
108
|
>
|
|
109
|
-
<slot ${
|
|
109
|
+
<slot ${H("defaultSlottedNodes")}></slot>
|
|
110
110
|
</label>
|
|
111
111
|
</template>
|
|
112
|
-
`;var fi=class extends k{},Oe=class extends Hr(fi){constructor(){super(...arguments),this.proxy=document.createElement("input")}};var Et=class extends Oe{constructor(){super(),this.initialValue="on",this.indeterminate=!1,this.keypressHandler=t=>{if(!this.readOnly)switch(t.key){case pt: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([u({attribute:"readonly",mode:"boolean"})],Et.prototype,"readOnly",void 0);l([f],Et.prototype,"defaultSlottedNodes",void 0);l([f],Et.prototype,"indeterminate",void 0);function mi(i){return Ar(i)&&(i.getAttribute("role")==="option"||i instanceof HTMLOptionElement)}var W=class extends k{constructor(t,e,r,o){super(),this.defaultSelected=!1,this.dirtySelected=!1,this.selected=this.defaultSelected,this.dirtyValue=!1,t&&(this.textContent=t),e&&(this.initialValue=e),r&&(this.defaultSelected=r),o&&(this.selected=o),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([u({mode:"boolean"})],W.prototype,"disabled",void 0);l([u({attribute:"selected",mode:"boolean"})],W.prototype,"selectedAttribute",void 0);l([f],W.prototype,"selected",void 0);l([u({attribute:"value",mode:"fromView"})],W.prototype,"initialValue",void 0);var ft=class{};l([f],ft.prototype,"ariaChecked",void 0);l([f],ft.prototype,"ariaPosInSet",void 0);l([f],ft.prototype,"ariaSelected",void 0);l([f],ft.prototype,"ariaSetSize",void 0);F(ft,y);F(W,U,ft);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(r=>r.text.trim().match(e))}getSelectableIndex(t=this.selectedIndex,e){let r=t>e?-1:t<e?1:0,o=t+r,n=null;switch(r){case-1:{n=this.options.reduceRight((s,a,d)=>!s&&!a.disabled&&d<o?a:s,n);break}case 1:{n=this.options.reduce((s,a,d)=>!s&&!a.disabled&&d>o?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 ct:{t.shiftKey||(t.preventDefault(),this.selectNextOption());break}case dt:{t.shiftKey||(t.preventDefault(),this.selectPreviousOption());break}case ht:{t.preventDefault(),this.selectLastOption();break}case zt:return this.focusAndScrollOptionIntoView(),!0;case Ht:case jt:return!0;case pt: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 r;if(!this.hasSelectableOptions){this.selectedIndex=-1;return}if(!((r=this.options[this.selectedIndex])===null||r===void 0)&&r.disabled&&typeof t=="number"){let o=this.getSelectableIndex(t,e),n=o>-1?o:t;this.selectedIndex=n,e===n&&this.selectedIndexChanged(e,n);return}this.setSelectedOptions()}selectedOptionsChanged(t,e){var r;let o=e.filter(E.slottedOptionFilter);(r=this.options)===null||r===void 0||r.forEach(n=>{let s=b.getNotifier(n);s.unsubscribe(this,"selected"),n.selected=o.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(r=>!r.disabled))!==null&&e!==void 0?e:-1)}selectLastOption(){this.disabled||(this.selectedIndex=Or(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(r=>r.defaultSelected))!==null&&e!==void 0?e:-1}setSelectedOptions(){var t,e,r;!((t=this.options)===null||t===void 0)&&t.length&&(this.selectedOptions=[this.options[this.selectedIndex]],this.ariaActiveDescendant=(r=(e=this.firstSelectedOption)===null||e===void 0?void 0:e.id)!==null&&r!==void 0?r:"",this.focusAndScrollOptionIntoView())}slottedOptionsChanged(t,e){this.options=e.reduce((o,n)=>(mi(n)&&o.push(n),o),[]);let r=`${this.options.length}`;this.options.forEach((o,n)=>{o.id||(o.id=It("option-")),o.ariaPosInSet=`${n+1}`,o.ariaSetSize=r}),this.$fastController.isConnected&&(this.setSelectedOptions(),this.setDefaultSelectedOption())}typeaheadBufferChanged(t,e){if(this.$fastController.isConnected){let r=this.getTypeaheadMatches();if(r.length){let o=this.options.indexOf(r[0]);o>-1&&(this.selectedIndex=o)}this.typeaheadExpired=!1}}};E.slottedOptionFilter=i=>mi(i)&&!i.hidden;E.TYPE_AHEAD_TIMEOUT_MS=1e3;l([u({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);F(et,y);F(E,et);var ie={above:"above",below:"below"};function re(i){let t=i.parentElement;if(t)return t;{let e=i.getRootNode();if(e.host instanceof HTMLElement)return e.host}return null}function zr(i,t){let e=t;for(;e!==null;){if(e===i)return!0;e=re(e)}return!1}var it=document.createElement("div");function sn(i){return i instanceof lt}var oe=class{setProperty(t,e){m.queueUpdate(()=>this.target.setProperty(t,e))}removeProperty(t){m.queueUpdate(()=>this.target.removeProperty(t))}},gi=class extends oe{constructor(t){super();let e=new CSSStyleSheet;e[ge]=!0,this.target=e.cssRules[e.insertRule(":host{}")].style,t.$fastController.addStyles($.create([e]))}},vi=class extends oe{constructor(){super();let t=new CSSStyleSheet;this.target=t.cssRules[t.insertRule(":root{}")].style,document.adoptedStyleSheets=[...document.adoptedStyleSheets,t]}},yi=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}}},Ee=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:r}=this.style;if(r){let o=r.insertRule(":host{}",r.cssRules.length);this.target=r.cssRules[o].style}else this.target=null}};l([f],Ee.prototype,"target",void 0);var xi=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))}},I=class{setProperty(t,e){I.properties[t]=e;for(let r of I.roots.values())At.getOrCreate(I.normalizeRoot(r)).setProperty(t,e)}removeProperty(t){delete I.properties[t];for(let e of I.roots.values())At.getOrCreate(I.normalizeRoot(e)).removeProperty(t)}static registerRoot(t){let{roots:e}=I;if(!e.has(t)){e.add(t);let r=At.getOrCreate(this.normalizeRoot(t));for(let o in I.properties)r.setProperty(o,I.properties[o])}}static unregisterRoot(t){let{roots:e}=I;if(e.has(t)){e.delete(t);let r=At.getOrCreate(I.normalizeRoot(t));for(let o in I.properties)r.removeProperty(o)}}static normalizeRoot(t){return t===it?document:t}};I.roots=new Set;I.properties={};var bi=new WeakMap,an=m.supportsAdoptedStyleSheets?gi:Ee,At=Object.freeze({getOrCreate(i){if(bi.has(i))return bi.get(i);let t;return i===it?t=new I:i instanceof Document?t=m.supportsAdoptedStyleSheets?new vi:new yi:sn(i)?t=new an(i):t=new xi(i),bi.set(i,t),t}});var D=class extends St{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=D.uniqueId(),D.tokensById.set(this.id,this)}get appliedTo(){return[...this._appliedTo]}static from(t){return new D({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 D.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=C.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 D&&(e=this.alias(e)),C.getOrCreate(t).set(this,e),this}deleteValueFor(t){return this._appliedTo.delete(t),C.existsFor(t)&&C.getOrCreate(t).delete(this),this}withDefault(t){return this.setValueFor(it,t),this}subscribe(t,e){let r=this.getOrCreateSubscriberSet(e);e&&!C.existsFor(e)&&C.getOrCreate(e),r.has(t)||r.add(t)}unsubscribe(t,e){let r=this.subscribers.get(e||this);r&&r.has(t)&&r.delete(t)}notify(t){let e=Object.freeze({token:this,target:t});this.subscribers.has(this)&&this.subscribers.get(this).forEach(r=>r.handleChange(e)),this.subscribers.has(t)&&this.subscribers.get(t).forEach(r=>r.handleChange(e))}alias(t){return e=>t.getValueFor(e)}};D.uniqueId=(()=>{let i=0;return()=>(i++,i.toString(16))})();D.tokensById=new Map;var wi=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:r}=t;this.add(e,r)}add(t,e){At.getOrCreate(e).setProperty(t.cssCustomProperty,this.resolveCSSValue(C.getOrCreate(e).get(t)))}remove(t,e){At.getOrCreate(e).removeProperty(t.cssCustomProperty)}resolveCSSValue(t){return t&&typeof t.createCSS=="function"?t.createCSS():t}},ki=class{constructor(t,e,r){this.source=t,this.token=e,this.node=r,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,at))}},Si=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()}},ne=new WeakMap,se=new WeakMap,C=class{constructor(t){this.target=t,this.store=new Si,this.children=[],this.assignedValues=new Map,this.reflecting=new Set,this.bindingObservers=new Map,this.tokenValueChangeHandler={handleChange:(e,r)=>{let o=D.getTokenById(r);o&&(o.notify(this.target),this.updateCSSTokenReflection(e,o))}},ne.set(t,this),b.getNotifier(this.store).subscribe(this.tokenValueChangeHandler),t instanceof lt?t.$fastController.addBehaviors([this]):t.isConnected&&this.bind()}static getOrCreate(t){return ne.get(t)||new C(t)}static existsFor(t){return ne.has(t)}static findParent(t){if(it!==t.target){let e=re(t.target);for(;e!==null;){if(ne.has(e))return ne.get(e);e=re(e)}return C.getOrCreate(it)}return null}static findClosestAssignedNode(t,e){let r=e;do{if(r.has(t))return r;r=r.parent?r.parent:r.target!==it?C.getOrCreate(it):null}while(r!==null);return null}get parent(){return se.get(this)||null}updateCSSTokenReflection(t,e){if(D.isCSSDesignToken(e)){let r=this.parent,o=this.isReflecting(e);if(r){let n=r.get(e),s=t.get(e);n!==s&&!o?this.reflectToCSS(e):n===s&&o&&this.stopReflectToCSS(e)}else o||this.reflectToCSS(e)}}has(t){return this.assignedValues.has(t)}get(t){let e=this.store.get(t);if(e!==void 0)return e;let r=this.getRaw(t);if(r!==void 0)return this.hydrate(t,r),this.get(t)}getRaw(t){var e;return this.assignedValues.has(t)?this.assignedValues.get(t):(e=C.findClosestAssignedNode(t,this))===null||e===void 0?void 0:e.getRaw(t)}set(t,e){D.isDerivedDesignTokenValue(this.assignedValues.get(t))&&this.tearDownBindingObserver(t),this.assignedValues.set(t,e),D.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=C.findParent(this);t&&t.appendChild(this);for(let e of this.assignedValues.keys())e.notify(this.target)}unbind(){this.parent&&se.get(this).removeChild(this)}appendChild(t){t.parent&&se.get(t).removeChild(t);let e=this.children.filter(r=>t.contains(r));se.set(t,this),this.children.push(t),e.forEach(r=>t.appendChild(r)),b.getNotifier(this.store).subscribe(t);for(let[r,o]of this.store.all())t.hydrate(r,this.bindingObservers.has(r)?this.getRaw(r):o)}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?se.delete(t):!1}contains(t){return zr(this.target,t.target)}reflectToCSS(t){this.isReflecting(t)||(this.reflecting.add(t),C.cssCustomPropertyReflector.startReflection(t,this.target))}stopReflectToCSS(t){this.isReflecting(t)&&(this.reflecting.delete(t),C.cssCustomPropertyReflector.stopReflection(t,this.target))}isReflecting(t){return this.reflecting.has(t)}handleChange(t,e){let r=D.getTokenById(e);r&&(this.hydrate(r,this.getRaw(r)),this.updateCSSTokenReflection(this.store,r))}hydrate(t,e){if(!this.has(t)){let r=this.bindingObservers.get(t);D.isDerivedDesignTokenValue(e)?r?r.source!==e&&(this.tearDownBindingObserver(t),this.setupBindingObserver(t,e)):this.setupBindingObserver(t,e):(r&&this.tearDownBindingObserver(t),this.store.set(t,e))}}setupBindingObserver(t,e){let r=new ki(e,t,this);return this.bindingObservers.set(t,r),r}tearDownBindingObserver(t){return this.bindingObservers.has(t)?(this.bindingObservers.get(t).disconnect(),this.bindingObservers.delete(t),!0):!1}};C.cssCustomPropertyReflector=new wi;l([f],C.prototype,"children",void 0);function ln(i){return D.from(i)}var ae=Object.freeze({create:ln,notifyConnection(i){return!i.isConnected||!C.existsFor(i)?!1:(C.getOrCreate(i).bind(),!0)},notifyDisconnection(i){return i.isConnected||!C.existsFor(i)?!1:(C.getOrCreate(i).unbind(),!0)},registerRoot(i=it){I.registerRoot(i)},unregisterRoot(i=it){I.unregisterRoot(i)}});var Ci=Object.freeze({definitionCallbackOnly:null,ignoreDuplicate:Symbol()}),$i=new Map,Ae=new Map,Ut=null,le=x.createInterface(i=>i.cachedCallback(t=>(Ut===null&&(Ut=new Pe(null,t)),Ut))),Ii=Object.freeze({tagFor(i){return Ae.get(i)},responsibleFor(i){let t=i.$$designSystem$$;return t||x.findResponsibleContainer(i).get(le)},getOrCreate(i){if(!i)return Ut===null&&(Ut=x.getOrCreateDOMContainer().get(le)),Ut;let t=i.$$designSystem$$;if(t)return t;let e=x.getOrCreateDOMContainer(i);if(e.has(le,!1))return e.get(le);{let r=new Pe(i,e);return e.register($t.instance(le,r)),r}}});function cn(i,t,e){return typeof i=="string"?{name:i,type:t,callback:e}:i}var Pe=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,r=[],o=this.disambiguate,n=this.shadowRootMode,s={elementPrefix:this.prefix,tryDefineElement(a,d,c){let h=cn(a,d,c),{name:v,callback:O,baseClass:q}=h,{type:_}=h,X=v,he=$i.get(X),je=!0;for(;he;){let Ji=o(X,_,he);switch(Ji){case Ci.ignoreDuplicate:return;case Ci.definitionCallbackOnly:je=!1,he=void 0;break;default:X=Ji,he=$i.get(X);break}}je&&((Ae.has(_)||_===k)&&(_=class extends _{}),$i.set(X,_),Ae.set(_,X),q&&Ae.set(q,X)),r.push(new Ti(e,X,_,n,O,je))}};this.designTokensInitialized||(this.designTokensInitialized=!0,this.designTokenRoot!==null&&ae.registerRoot(this.designTokenRoot)),e.registerWithContext(s,...t);for(let a of r)a.callback(a),a.willDefine&&a.definition!==null&&a.definition.define();return this}},Ti=class{constructor(t,e,r,o,n,s){this.container=t,this.name=e,this.type=r,this.shadowRootMode=o,this.callback=n,this.willDefine=s,this.definition=null}definePresentation(t){Te.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 qr=(i,t)=>S`
|
|
112
|
+
`;var fi=class extends S{},Ie=class extends jo(fi){constructor(){super(...arguments),this.proxy=document.createElement("input")}};var It=class extends Ie{constructor(){super(),this.initialValue="on",this.indeterminate=!1,this.keypressHandler=t=>{if(!this.readOnly)switch(t.key){case ht: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([u({attribute:"readonly",mode:"boolean"})],It.prototype,"readOnly",void 0);l([f],It.prototype,"defaultSlottedNodes",void 0);l([f],It.prototype,"indeterminate",void 0);function mi(i){return Po(i)&&(i.getAttribute("role")==="option"||i instanceof HTMLOptionElement)}var q=class extends S{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],q.prototype,"checked",void 0);l([f],q.prototype,"content",void 0);l([f],q.prototype,"defaultSelected",void 0);l([u({mode:"boolean"})],q.prototype,"disabled",void 0);l([u({attribute:"selected",mode:"boolean"})],q.prototype,"selectedAttribute",void 0);l([f],q.prototype,"selected",void 0);l([u({attribute:"value",mode:"fromView"})],q.prototype,"initialValue",void 0);var pt=class{};l([f],pt.prototype,"ariaChecked",void 0);l([f],pt.prototype,"ariaPosInSet",void 0);l([f],pt.prototype,"ariaSelected",void 0);l([f],pt.prototype,"ariaSetSize",void 0);A(pt,v);A(q,z,pt);var F=class i extends S{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,d)=>!s&&!a.disabled&&d<r?a:s,n);break}case 1:{n=this.options.reduce((s,a,d)=>!s&&!a.disabled&&d>r?a:s,n);break}}return this.options.indexOf(n)}handleChange(t,e){switch(e){case"selected":{i.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,i.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 dt:{t.shiftKey||(t.preventDefault(),this.selectFirstOption());break}case lt:{t.shiftKey||(t.preventDefault(),this.selectNextOption());break}case ct:{t.shiftKey||(t.preventDefault(),this.selectPreviousOption());break}case ut:{t.preventDefault(),this.selectLastOption();break}case Vt:return this.focusAndScrollOptionIntoView(),!0;case Lt:case Nt:return!0;case ht: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(i.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=Eo(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)=>(mi(n)&&r.push(n),r),[]);let o=`${this.options.length}`;this.options.forEach((r,n)=>{r.id||(r.id=$t("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}}};F.slottedOptionFilter=i=>mi(i)&&!i.hidden;F.TYPE_AHEAD_TIMEOUT_MS=1e3;l([u({mode:"boolean"})],F.prototype,"disabled",void 0);l([f],F.prototype,"selectedIndex",void 0);l([f],F.prototype,"selectedOptions",void 0);l([f],F.prototype,"slottedOptions",void 0);l([f],F.prototype,"typeaheadBuffer",void 0);var tt=class{};l([f],tt.prototype,"ariaActiveDescendant",void 0);l([f],tt.prototype,"ariaDisabled",void 0);l([f],tt.prototype,"ariaExpanded",void 0);l([f],tt.prototype,"ariaMultiSelectable",void 0);A(tt,v);A(F,tt);var Kt={above:"above",below:"below"};function te(i){let t=i.parentElement;if(t)return t;{let e=i.getRootNode();if(e.host instanceof HTMLElement)return e.host}return null}function qo(i,t){let e=t;for(;e!==null;){if(e===i)return!0;e=te(e)}return!1}var et=document.createElement("div");function sn(i){return i instanceof at}var ee=class{setProperty(t,e){m.queueUpdate(()=>this.target.setProperty(t,e))}removeProperty(t){m.queueUpdate(()=>this.target.removeProperty(t))}},gi=class extends ee{constructor(t){super();let e=new CSSStyleSheet;e[fe]=!0,this.target=e.cssRules[e.insertRule(":host{}")].style,t.$fastController.addStyles(C.create([e]))}},yi=class extends ee{constructor(){super();let t=new CSSStyleSheet;this.target=t.cssRules[t.insertRule(":root{}")].style,document.adoptedStyleSheets=[...document.adoptedStyleSheets,t]}},vi=class extends ee{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}}},Oe=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],Oe.prototype,"target",void 0);var xi=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))}},ft=class i{setProperty(t,e){i.properties[t]=e;for(let o of i.roots.values())Ot.getOrCreate(i.normalizeRoot(o)).setProperty(t,e)}removeProperty(t){delete i.properties[t];for(let e of i.roots.values())Ot.getOrCreate(i.normalizeRoot(e)).removeProperty(t)}static registerRoot(t){let{roots:e}=i;if(!e.has(t)){e.add(t);let o=Ot.getOrCreate(this.normalizeRoot(t));for(let r in i.properties)o.setProperty(r,i.properties[r])}}static unregisterRoot(t){let{roots:e}=i;if(e.has(t)){e.delete(t);let o=Ot.getOrCreate(i.normalizeRoot(t));for(let r in i.properties)o.removeProperty(r)}}static normalizeRoot(t){return t===et?document:t}};ft.roots=new Set;ft.properties={};var bi=new WeakMap,an=m.supportsAdoptedStyleSheets?gi:Oe,Ot=Object.freeze({getOrCreate(i){if(bi.has(i))return bi.get(i);let t;return i===et?t=new ft:i instanceof Document?t=m.supportsAdoptedStyleSheets?new yi:new vi:sn(i)?t=new an(i):t=new xi(i),bi.set(i,t),t}});var Q=class i extends kt{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=i.uniqueId(),i.tokensById.set(this.id,this)}get appliedTo(){return[...this._appliedTo]}static from(t){return new i({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 i.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=N.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 i&&(e=this.alias(e)),N.getOrCreate(t).set(this,e),this}deleteValueFor(t){return this._appliedTo.delete(t),N.existsFor(t)&&N.getOrCreate(t).delete(this),this}withDefault(t){return this.setValueFor(et,t),this}subscribe(t,e){let o=this.getOrCreateSubscriberSet(e);e&&!N.existsFor(e)&&N.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)}};Q.uniqueId=(()=>{let i=0;return()=>(i++,i.toString(16))})();Q.tokensById=new Map;var wi=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){Ot.getOrCreate(e).setProperty(t.cssCustomProperty,this.resolveCSSValue(N.getOrCreate(e).get(t)))}remove(t,e){Ot.getOrCreate(e).removeProperty(t.cssCustomProperty)}resolveCSSValue(t){return t&&typeof t.createCSS=="function"?t.createCSS():t}},ki=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,st))}},Si=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()}},ie=new WeakMap,oe=new WeakMap,N=class i{constructor(t){this.target=t,this.store=new Si,this.children=[],this.assignedValues=new Map,this.reflecting=new Set,this.bindingObservers=new Map,this.tokenValueChangeHandler={handleChange:(e,o)=>{let r=Q.getTokenById(o);r&&(r.notify(this.target),this.updateCSSTokenReflection(e,r))}},ie.set(t,this),b.getNotifier(this.store).subscribe(this.tokenValueChangeHandler),t instanceof at?t.$fastController.addBehaviors([this]):t.isConnected&&this.bind()}static getOrCreate(t){return ie.get(t)||new i(t)}static existsFor(t){return ie.has(t)}static findParent(t){if(et!==t.target){let e=te(t.target);for(;e!==null;){if(ie.has(e))return ie.get(e);e=te(e)}return i.getOrCreate(et)}return null}static findClosestAssignedNode(t,e){let o=e;do{if(o.has(t))return o;o=o.parent?o.parent:o.target!==et?i.getOrCreate(et):null}while(o!==null);return null}get parent(){return oe.get(this)||null}updateCSSTokenReflection(t,e){if(Q.isCSSDesignToken(e)){let o=this.parent,r=this.isReflecting(e);if(o){let n=o.get(e),s=t.get(e);n!==s&&!r?this.reflectToCSS(e):n===s&&r&&this.stopReflectToCSS(e)}else r||this.reflectToCSS(e)}}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=i.findClosestAssignedNode(t,this))===null||e===void 0?void 0:e.getRaw(t)}set(t,e){Q.isDerivedDesignTokenValue(this.assignedValues.get(t))&&this.tearDownBindingObserver(t),this.assignedValues.set(t,e),Q.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=i.findParent(this);t&&t.appendChild(this);for(let e of this.assignedValues.keys())e.notify(this.target)}unbind(){this.parent&&oe.get(this).removeChild(this)}appendChild(t){t.parent&&oe.get(t).removeChild(t);let e=this.children.filter(o=>t.contains(o));oe.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?oe.delete(t):!1}contains(t){return qo(this.target,t.target)}reflectToCSS(t){this.isReflecting(t)||(this.reflecting.add(t),i.cssCustomPropertyReflector.startReflection(t,this.target))}stopReflectToCSS(t){this.isReflecting(t)&&(this.reflecting.delete(t),i.cssCustomPropertyReflector.stopReflection(t,this.target))}isReflecting(t){return this.reflecting.has(t)}handleChange(t,e){let o=Q.getTokenById(e);o&&(this.hydrate(o,this.getRaw(o)),this.updateCSSTokenReflection(this.store,o))}hydrate(t,e){if(!this.has(t)){let o=this.bindingObservers.get(t);Q.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 ki(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}};N.cssCustomPropertyReflector=new wi;l([f],N.prototype,"children",void 0);function ln(i){return Q.from(i)}var re=Object.freeze({create:ln,notifyConnection(i){return!i.isConnected||!N.existsFor(i)?!1:(N.getOrCreate(i).bind(),!0)},notifyDisconnection(i){return i.isConnected||!N.existsFor(i)?!1:(N.getOrCreate(i).unbind(),!0)},registerRoot(i=et){ft.registerRoot(i)},unregisterRoot(i=et){ft.unregisterRoot(i)}});var Ci=Object.freeze({definitionCallbackOnly:null,ignoreDuplicate:Symbol()}),$i=new Map,Ee=new Map,jt=null,ne=x.createInterface(i=>i.cachedCallback(t=>(jt===null&&(jt=new Ae(null,t)),jt))),Ii=Object.freeze({tagFor(i){return Ee.get(i)},responsibleFor(i){let t=i.$$designSystem$$;return t||x.findResponsibleContainer(i).get(ne)},getOrCreate(i){if(!i)return jt===null&&(jt=x.getOrCreateDOMContainer().get(ne)),jt;let t=i.$$designSystem$$;if(t)return t;let e=x.getOrCreateDOMContainer(i);if(e.has(ne,!1))return e.get(ne);{let o=new Ae(i,e);return e.register(St.instance(ne,o)),o}}});function cn(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,d,c){let h=cn(a,d,c),{name:y,callback:T,baseClass:j}=h,{type:E}=h,G=y,ce=$i.get(G),He=!0;for(;ce;){let Ji=r(G,E,ce);switch(Ji){case Ci.ignoreDuplicate:return;case Ci.definitionCallbackOnly:He=!1,ce=void 0;break;default:G=Ji,ce=$i.get(G);break}}He&&((Ee.has(E)||E===S)&&(E=class extends E{}),$i.set(G,E),Ee.set(E,G),j&&Ee.set(j,G)),o.push(new Ti(e,G,E,n,T,He))}};this.designTokensInitialized||(this.designTokensInitialized=!0,this.designTokenRoot!==null&&re.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}},Ti=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 J(this.type,Object.assign(Object.assign({},t),{name:this.name}))}tagFor(t){return Ii.tagFor(t)}};var Uo=(i,t)=>k`
|
|
113
113
|
<template
|
|
114
114
|
aria-checked="${e=>e.ariaChecked}"
|
|
115
115
|
aria-disabled="${e=>e.ariaDisabled}"
|
|
@@ -119,13 +119,13 @@ function ze(i){return i.type==="int"?{type:"int",value:Io("",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
|
-
${
|
|
122
|
+
${K(i,t)}
|
|
123
123
|
<span class="content" part="content">
|
|
124
|
-
<slot ${
|
|
124
|
+
<slot ${H("content")}></slot>
|
|
125
125
|
</span>
|
|
126
|
-
${
|
|
126
|
+
${Z(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 r,o;this.ariaActiveDescendant=(o=(r=this.options[e])===null||r===void 0?void 0:r.id)!==null&&o!==void 0?o:"",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,r)=>{e.checked=ee(r,this.rangeStartIndex)})):this.uncheckAllOptions(),this.activeIndex=0,this.checkActiveIndex()}checkLastOption(t=!1){t?(this.rangeStartIndex===-1&&(this.rangeStartIndex=this.activeIndex),this.options.forEach((e,r)=>{e.checked=ee(r,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,r)=>{e.checked=ee(r,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,r)=>{e.checked=ee(r,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 r=(e=t.target)===null||e===void 0?void 0:e.closest("[role=option]");if(!(!r||r.disabled))return this.uncheckAllOptions(),this.activeIndex=this.options.indexOf(r),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:r}=t;switch(this.shouldSkipFocus=!1,e){case ut:{this.checkFirstOption(r);return}case ct:{this.checkNextOption(r);return}case dt:{this.checkPreviousOption(r);return}case ht:{this.checkLastOption(r);return}case zt:return this.focusAndScrollOptionIntoView(),!0;case jt:return this.uncheckAllOptions(),this.checkActiveIndex(),!0;case pt: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 r;this.ariaMultiSelectable=e?"true":null,(r=this.options)===null||r===void 0||r.forEach(o=>{o.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 r;let o=Math.max(0,parseInt((r=e?.toFixed())!==null&&r!==void 0?r:"",10));o!==e&&m.queueUpdate(()=>{this.size=o})}toggleSelectedForAllCheckedOptions(){let t=this.checkedOptions.filter(r=>!r.disabled),e=!t.every(r=>r.selected);t.forEach(r=>r.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 r=this.getTypeaheadMatches(),o=this.options.indexOf(r[0]);o>-1&&(this.activeIndex=o,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([u({mode:"boolean"})],Pt.prototype,"multiple",void 0);l([u({converter:Vt})],Pt.prototype,"size",void 0);var Oi=class extends k{},_e=class extends Ot(Oi){constructor(){super(...arguments),this.proxy=document.createElement("input")}};var Ei={email:"email",password:"password",tel:"tel",text:"text",url:"url"};var L=class extends _e{constructor(){super(...arguments),this.type=Ei.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([u({attribute:"readonly",mode:"boolean"})],L.prototype,"readOnly",void 0);l([u({mode:"boolean"})],L.prototype,"autofocus",void 0);l([u],L.prototype,"placeholder",void 0);l([u],L.prototype,"type",void 0);l([u],L.prototype,"list",void 0);l([u({converter:Vt})],L.prototype,"maxlength",void 0);l([u({converter:Vt})],L.prototype,"minlength",void 0);l([u],L.prototype,"pattern",void 0);l([u({converter:Vt})],L.prototype,"size",void 0);l([u({mode:"boolean"})],L.prototype,"spellcheck",void 0);l([f],L.prototype,"defaultSlottedNodes",void 0);var Fe=class{};F(Fe,y);F(L,U,Fe);function Ur(i,t,e){return i.nodeType!==Node.TEXT_NODE?!0:typeof i.nodeValue=="string"&&!!i.nodeValue.trim().length}var Ai=class extends Pt{},De=class extends Ot(Ai){constructor(){super(...arguments),this.proxy=document.createElement("select")}};var Y=class extends De{constructor(){super(...arguments),this.open=!1,this.forcedPosition=!1,this.listboxId=It("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,r,o,n,s,a,d;let c=`${this._value}`;if(!((e=this._options)===null||e===void 0)&&e.length){let h=this._options.findIndex(q=>q.value===t),v=(o=(r=this._options[this.selectedIndex])===null||r===void 0?void 0:r.value)!==null&&o!==void 0?o:null,O=(s=(n=this._options[h])===null||n===void 0?void 0:n.value)!==null&&s!==void 0?s:null;(h===-1||v!==O)&&(t="",this.selectedIndex=h),t=(d=(a=this.firstSelectedOption)===null||a===void 0?void 0:a.value)!==null&&d!==void 0?d:t}c!==t&&(this._value=t,super.valueChanged(c,t),b.notify(this,"value"),this.updateDisplayValue())}updateValue(t){var e,r;this.$fastController.isConnected&&(this.value=(r=(e=this.firstSelectedOption)===null||e===void 0?void 0:e.value)!==null&&r!==void 0?r:""),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(),r=window.innerHeight-t.bottom;this.position=this.forcedPosition?this.positionAttribute:t.top>r?ie.above:ie.below,this.positionAttribute=this.forcedPosition?this.positionAttribute:this.position,this.maxHeight=this.position===ie.above?~~t.top:~~r}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 r=t.relatedTarget;if(this.isSameNode(r)){this.focus();return}!((e=this.options)===null||e===void 0)&&e.includes(r)||(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(r=>{b.getNotifier(r).unsubscribe(this,"value")}),super.slottedOptionsChanged(t,e),this.options.forEach(r=>{b.getNotifier(r).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 r;super.selectedOptionsChanged(t,e),(r=this.options)===null||r===void 0||r.forEach((o,n)=>{var s;let a=(s=this.proxy)===null||s===void 0?void 0:s.options.item(n);a&&(a.selected=o.selected)})}setDefaultSelectedOption(){var t;let e=(t=this.options)!==null&&t!==void 0?t:Array.from(this.children).filter(E.slottedOptionFilter),r=e?.findIndex(o=>o.hasAttribute("selected")||o.selected||o.value===this.value);if(r!==-1){this.selectedIndex=r;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 pt:{t.preventDefault(),this.collapsible&&this.typeAheadExpired&&(this.open=!this.open);break}case ut:case ht:{t.preventDefault();break}case Ht:{t.preventDefault(),this.open=!this.open;break}case jt:{this.collapsible&&this.open&&(t.preventDefault(),this.open=!1);break}case zt: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===ct||e===dt)}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([u({attribute:"open",mode:"boolean"})],Y.prototype,"open",void 0);l([ir],Y.prototype,"collapsible",null);l([f],Y.prototype,"control",void 0);l([u({attribute:"position"})],Y.prototype,"positionAttribute",void 0);l([f],Y.prototype,"position",void 0);l([f],Y.prototype,"maxHeight",void 0);var ce=class{};l([f],ce.prototype,"ariaControls",void 0);F(ce,et);F(Y,U,ce);var Wr=(i,t)=>S`
|
|
128
|
+
`;var Et=class extends F{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=Zt(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=Zt(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=Zt(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=Zt(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 dt:{this.checkFirstOption(o);return}case lt:{this.checkNextOption(o);return}case ct:{this.checkPreviousOption(o);return}case ut:{this.checkLastOption(o);return}case Vt:return this.focusAndScrollOptionIntoView(),!0;case Nt:return this.uncheckAllOptions(),this.checkActiveIndex(),!0;case ht: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],Et.prototype,"activeIndex",void 0);l([u({mode:"boolean"})],Et.prototype,"multiple",void 0);l([u({converter:Bt})],Et.prototype,"size",void 0);var Oi=class extends S{},Pe=class extends Tt(Oi){constructor(){super(...arguments),this.proxy=document.createElement("input")}};var Ei={email:"email",password:"password",tel:"tel",text:"text",url:"url"};var R=class extends Pe{constructor(){super(...arguments),this.type=Ei.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([u({attribute:"readonly",mode:"boolean"})],R.prototype,"readOnly",void 0);l([u({mode:"boolean"})],R.prototype,"autofocus",void 0);l([u],R.prototype,"placeholder",void 0);l([u],R.prototype,"type",void 0);l([u],R.prototype,"list",void 0);l([u({converter:Bt})],R.prototype,"maxlength",void 0);l([u({converter:Bt})],R.prototype,"minlength",void 0);l([u],R.prototype,"pattern",void 0);l([u({converter:Bt})],R.prototype,"size",void 0);l([u({mode:"boolean"})],R.prototype,"spellcheck",void 0);l([f],R.prototype,"defaultSlottedNodes",void 0);var _e=class{};A(_e,v);A(R,z,_e);function Wo(i,t,e){return i.nodeType!==Node.TEXT_NODE?!0:typeof i.nodeValue=="string"&&!!i.nodeValue.trim().length}var Ai=class extends Et{},De=class extends Tt(Ai){constructor(){super(...arguments),this.proxy=document.createElement("select")}};var X=class extends De{constructor(){super(...arguments),this.open=!1,this.forcedPosition=!1,this.listboxId=$t("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,d;let c=`${this._value}`;if(!((e=this._options)===null||e===void 0)&&e.length){let h=this._options.findIndex(j=>j.value===t),y=(r=(o=this._options[this.selectedIndex])===null||o===void 0?void 0:o.value)!==null&&r!==void 0?r:null,T=(s=(n=this._options[h])===null||n===void 0?void 0:n.value)!==null&&s!==void 0?s:null;(h===-1||y!==T)&&(t="",this.selectedIndex=h),t=(d=(a=this.firstSelectedOption)===null||a===void 0?void 0:a.value)!==null&&d!==void 0?d:t}c!==t&&(this._value=t,super.valueChanged(c,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?Kt.above:Kt.below,this.positionAttribute=this.forcedPosition?this.positionAttribute:this.position,this.maxHeight=this.position===Kt.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(F.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 ht:{t.preventDefault(),this.collapsible&&this.typeAheadExpired&&(this.open=!this.open);break}case dt:case ut:{t.preventDefault();break}case Lt:{t.preventDefault(),this.open=!this.open;break}case Nt:{this.collapsible&&this.open&&(t.preventDefault(),this.open=!1);break}case Vt: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===lt||e===ct)}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([u({attribute:"open",mode:"boolean"})],X.prototype,"open",void 0);l([io],X.prototype,"collapsible",null);l([f],X.prototype,"control",void 0);l([u({attribute:"position"})],X.prototype,"positionAttribute",void 0);l([f],X.prototype,"position",void 0);l([f],X.prototype,"maxHeight",void 0);var se=class{};l([f],se.prototype,"ariaControls",void 0);A(se,tt);A(X,z,se);var Go=(i,t)=>k`
|
|
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}"
|
|
@@ -137,20 +137,20 @@ function ze(i){return i.type==="int"?{type:"int",value:Io("",i.value)}:i}functio
|
|
|
137
137
|
?open="${e=>e.open}"
|
|
138
138
|
role="combobox"
|
|
139
139
|
tabindex="${e=>e.disabled?null:"0"}"
|
|
140
|
-
@click="${(e,
|
|
141
|
-
@focusin="${(e,
|
|
142
|
-
@focusout="${(e,
|
|
143
|
-
@keydown="${(e,
|
|
144
|
-
@mousedown="${(e,
|
|
140
|
+
@click="${(e,o)=>e.clickHandler(o.event)}"
|
|
141
|
+
@focusin="${(e,o)=>e.focusinHandler(o.event)}"
|
|
142
|
+
@focusout="${(e,o)=>e.focusoutHandler(o.event)}"
|
|
143
|
+
@keydown="${(e,o)=>e.keydownHandler(o.event)}"
|
|
144
|
+
@mousedown="${(e,o)=>e.mousedownHandler(o.event)}"
|
|
145
145
|
>
|
|
146
|
-
${
|
|
146
|
+
${ge(e=>e.collapsible,k`
|
|
147
147
|
<div
|
|
148
148
|
class="control"
|
|
149
149
|
part="control"
|
|
150
150
|
?disabled="${e=>e.disabled}"
|
|
151
|
-
${
|
|
151
|
+
${I("control")}
|
|
152
152
|
>
|
|
153
|
-
${
|
|
153
|
+
${K(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 ze(i){return i.type==="int"?{type:"int",value:Io("",i.value)}:i}functio
|
|
|
161
161
|
</slot>
|
|
162
162
|
</div>
|
|
163
163
|
</slot>
|
|
164
|
-
${
|
|
164
|
+
${Z(i,t)}
|
|
165
165
|
</div>
|
|
166
166
|
`)}
|
|
167
167
|
<div
|
|
@@ -171,41 +171,41 @@ function ze(i){return i.type==="int"?{type:"int",value:Io("",i.value)}:i}functio
|
|
|
171
171
|
role="listbox"
|
|
172
172
|
?disabled="${e=>e.disabled}"
|
|
173
173
|
?hidden="${e=>e.collapsible?!e.open:!1}"
|
|
174
|
-
${
|
|
174
|
+
${I("listbox")}
|
|
175
175
|
>
|
|
176
176
|
<slot
|
|
177
|
-
${
|
|
177
|
+
${H({filter:F.slottedOptionFilter,flatten:!0,property:"slottedOptions"})}
|
|
178
178
|
></slot>
|
|
179
179
|
</div>
|
|
180
180
|
</template>
|
|
181
|
-
`;var
|
|
181
|
+
`;var Qo=(i,t)=>k`
|
|
182
182
|
<template slot="tabpanel" role="tabpanel">
|
|
183
183
|
<slot></slot>
|
|
184
184
|
</template>
|
|
185
|
-
`;var
|
|
185
|
+
`;var Fe=class extends S{};var Xo=(i,t)=>k`
|
|
186
186
|
<template slot="tab" role="tab" aria-disabled="${e=>e.disabled}">
|
|
187
187
|
<slot></slot>
|
|
188
188
|
</template>
|
|
189
|
-
`;var
|
|
189
|
+
`;var ae=class extends S{};l([u({mode:"boolean"})],ae.prototype,"disabled",void 0);var Yo=(i,t)=>k`
|
|
190
190
|
<template class="${e=>e.orientation}">
|
|
191
|
-
${
|
|
191
|
+
${K(i,t)}
|
|
192
192
|
<div class="tablist" part="tablist" role="tablist">
|
|
193
|
-
<slot class="tab" name="tab" part="tab" ${
|
|
193
|
+
<slot class="tab" name="tab" part="tab" ${H("tabs")}></slot>
|
|
194
194
|
|
|
195
|
-
${
|
|
195
|
+
${ge(e=>e.showActiveIndicator,k`
|
|
196
196
|
<div
|
|
197
|
-
${
|
|
197
|
+
${I("activeIndicatorRef")}
|
|
198
198
|
class="activeIndicator"
|
|
199
199
|
part="activeIndicator"
|
|
200
200
|
></div>
|
|
201
201
|
`)}
|
|
202
202
|
</div>
|
|
203
|
-
${
|
|
203
|
+
${Z(i,t)}
|
|
204
204
|
<div class="tabpanel" part="tabpanel">
|
|
205
|
-
<slot name="tabpanel" ${
|
|
205
|
+
<slot name="tabpanel" ${H("tabpanels")}></slot>
|
|
206
206
|
</div>
|
|
207
207
|
</template>
|
|
208
|
-
`;var
|
|
208
|
+
`;var Re={vertical:"vertical",horizontal:"horizontal"},U=class extends S{constructor(){super(...arguments),this.orientation=Re.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],d=this.tabpanelIds[n];r.setAttribute("id",a),r.setAttribute("aria-selected",s?"true":"false"),r.setAttribute("aria-controls",d),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 Ro:t.preventDefault(),this.adjustForward(t);break}else switch(t.key){case ct:t.preventDefault(),this.adjustBackward(t);break;case lt:t.preventDefault(),this.adjustForward(t);break}switch(t.key){case dt:t.preventDefault(),this.adjust(-this.activeTabIndex);break;case ut: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-${$t()}`})}getTabPanelIds(){return this.tabpanels.map(t=>{var e;return(e=t.getAttribute("id"))!==null&&e!==void 0?e:`panel-${$t()}`})}setComponent(){this.activeTabIndex!==this.prevActiveTabIndex&&(this.activeid=this.tabIds[this.activeTabIndex],this.focusTab(),this.change())}isHorizontal(){return this.orientation===Re.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([u],U.prototype,"orientation",void 0);l([u],U.prototype,"activeid",void 0);l([f],U.prototype,"tabs",void 0);l([f],U.prototype,"tabpanels",void 0);l([u({mode:"boolean"})],U.prototype,"activeindicator",void 0);l([f],U.prototype,"activeIndicatorRef",void 0);l([f],U.prototype,"showActiveIndicator",void 0);A(U,z);var Jo=(i,t)=>k`
|
|
209
209
|
<template
|
|
210
210
|
class="
|
|
211
211
|
${e=>e.readOnly?"readonly":""}
|
|
@@ -217,11 +217,11 @@ function ze(i){return i.type==="int"?{type:"int",value:Io("",i.value)}:i}functio
|
|
|
217
217
|
class="${e=>e.defaultSlottedNodes&&e.defaultSlottedNodes.length?"label":"label label__hidden"}"
|
|
218
218
|
>
|
|
219
219
|
<slot
|
|
220
|
-
${
|
|
220
|
+
${H({property:"defaultSlottedNodes",filter:Wo})}
|
|
221
221
|
></slot>
|
|
222
222
|
</label>
|
|
223
223
|
<div class="root" part="root">
|
|
224
|
-
${
|
|
224
|
+
${K(i,t)}
|
|
225
225
|
<input
|
|
226
226
|
class="control"
|
|
227
227
|
part="control"
|
|
@@ -260,19 +260,19 @@ function ze(i){return i.type==="int"?{type:"int",value:Io("",i.value)}:i}functio
|
|
|
260
260
|
aria-owns="${e=>e.ariaOwns}"
|
|
261
261
|
aria-relevant="${e=>e.ariaRelevant}"
|
|
262
262
|
aria-roledescription="${e=>e.ariaRoledescription}"
|
|
263
|
-
${
|
|
263
|
+
${I("control")}
|
|
264
264
|
/>
|
|
265
|
-
${
|
|
265
|
+
${Z(i,t)}
|
|
266
266
|
</div>
|
|
267
267
|
</template>
|
|
268
|
-
`;var
|
|
269
|
-
${
|
|
268
|
+
`;var Y="not-allowed";var dn=":host([hidden]){display:none}";function M(i){return`${dn}:host{display:${i}}`}var B=_o()?"focus-visible":"focus";function Zo(i){return Ii.getOrCreate(i).withPrefix("vscode")}function tr(i){window.addEventListener("load",()=>{new MutationObserver(()=>{Ko(i)}).observe(document.body,{attributes:!0,attributeFilter:["class"]}),Ko(i)})}function Ko(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 er=new Map,ir=!1;function p(i,t){let e=re.create(i);if(t){if(t.includes("--fake-vscode-token")){let o="id"+Math.random().toString(16).slice(2);t=`${t}-${o}`}er.set(t,e)}return ir||(tr(er),ir=!0),e}var Kd=p("background","--vscode-editor-background").withDefault("#1e1e1e"),w=p("border-width").withDefault(1),or=p("contrast-active-border","--vscode-contrastActiveBorder").withDefault("#f38518"),tu=p("contrast-border","--vscode-contrastBorder").withDefault("#6fc3df"),zt=p("corner-radius").withDefault(0),mt=p("corner-radius-round").withDefault(2),g=p("design-unit").withDefault(4),it=p("disabled-opacity").withDefault(.4),O=p("focus-border","--vscode-focusBorder").withDefault("#007fd4"),W=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"),eu=p("font-weight","--vscode-font-weight").withDefault("400"),P=p("foreground","--vscode-foreground").withDefault("#cccccc"),qt=p("input-height").withDefault("26"),Me=p("input-min-width").withDefault("100px"),_=p("type-ramp-base-font-size","--vscode-font-size").withDefault("13px"),D=p("type-ramp-base-line-height").withDefault("normal"),iu=p("type-ramp-minus1-font-size").withDefault("11px"),ou=p("type-ramp-minus1-line-height").withDefault("16px"),ru=p("type-ramp-minus2-font-size").withDefault("9px"),nu=p("type-ramp-minus2-line-height").withDefault("16px"),su=p("type-ramp-plus1-font-size").withDefault("16px"),au=p("type-ramp-plus1-line-height").withDefault("24px"),lu=p("scrollbarWidth").withDefault("10px"),cu=p("scrollbarHeight").withDefault("10px"),du=p("scrollbar-slider-background","--vscode-scrollbarSlider-background").withDefault("#79797966"),uu=p("scrollbar-slider-hover-background","--vscode-scrollbarSlider-hoverBackground").withDefault("#646464b3"),hu=p("scrollbar-slider-active-background","--vscode-scrollbarSlider-activeBackground").withDefault("#bfbfbf66"),pu=p("badge-background","--vscode-badge-background").withDefault("#4d4d4d"),fu=p("badge-foreground","--vscode-badge-foreground").withDefault("#ffffff"),rr=p("button-border","--vscode-button-border").withDefault("transparent"),Pi=p("button-icon-background").withDefault("transparent"),nr=p("button-icon-corner-radius").withDefault("5px"),sr=p("button-icon-outline-offset").withDefault(0),_i=p("button-icon-hover-background","--fake-vscode-token").withDefault("rgba(90, 93, 94, 0.31)"),ar=p("button-icon-padding").withDefault("3px"),At=p("button-primary-background","--vscode-button-background").withDefault("#0e639c"),Di=p("button-primary-foreground","--vscode-button-foreground").withDefault("#ffffff"),Fi=p("button-primary-hover-background","--vscode-button-hoverBackground").withDefault("#1177bb"),Be=p("button-secondary-background","--vscode-button-secondaryBackground").withDefault("#3a3d41"),lr=p("button-secondary-foreground","--vscode-button-secondaryForeground").withDefault("#ffffff"),cr=p("button-secondary-hover-background","--vscode-button-secondaryHoverBackground").withDefault("#45494e"),dr=p("button-padding-horizontal").withDefault("11px"),ur=p("button-padding-vertical").withDefault("4px"),Le=p("checkbox-background","--vscode-checkbox-background").withDefault("#3c3c3c"),Ri=p("checkbox-border","--vscode-checkbox-border").withDefault("#3c3c3c"),hr=p("checkbox-corner-radius").withDefault(3),mu=p("checkbox-foreground","--vscode-checkbox-foreground").withDefault("#f0f0f0"),bt=p("list-active-selection-background","--vscode-list-activeSelectionBackground").withDefault("#094771"),Ut=p("list-active-selection-foreground","--vscode-list-activeSelectionForeground").withDefault("#ffffff"),bu=p("list-hover-background","--vscode-list-hoverBackground").withDefault("#2a2d2e"),gu=p("divider-background","--vscode-settings-dropdownListBorder").withDefault("#454545"),le=p("dropdown-background","--vscode-dropdown-background").withDefault("#3c3c3c"),Pt=p("dropdown-border","--vscode-dropdown-border").withDefault("#3c3c3c"),yu=p("dropdown-foreground","--vscode-dropdown-foreground").withDefault("#f0f0f0"),pr=p("dropdown-list-max-height").withDefault("200px"),Ne=p("input-background","--vscode-input-background").withDefault("#3c3c3c"),fr=p("input-foreground","--vscode-input-foreground").withDefault("#cccccc"),vu=p("input-placeholder-foreground","--vscode-input-placeholderForeground").withDefault("#cccccc"),xu=p("link-active-foreground","--vscode-textLink-activeForeground").withDefault("#3794ff"),wu=p("link-foreground","--vscode-textLink-foreground").withDefault("#3794ff"),ku=p("progress-background","--vscode-progressBar-background").withDefault("#0e70c0"),mr=p("panel-tab-active-border","--vscode-panelTitle-activeBorder").withDefault("#e7e7e7"),gt=p("panel-tab-active-foreground","--vscode-panelTitle-activeForeground").withDefault("#e7e7e7"),br=p("panel-tab-foreground","--vscode-panelTitle-inactiveForeground").withDefault("#e7e7e799"),Su=p("panel-view-background","--vscode-panel-background").withDefault("#1e1e1e"),Cu=p("panel-view-border","--vscode-panel-border").withDefault("#80808059"),$u=p("tag-corner-radius").withDefault("2px");function gr(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 un=$`
|
|
269
|
+
${M("inline-flex")} :host {
|
|
270
270
|
outline: none;
|
|
271
|
-
font-family: ${
|
|
272
|
-
font-size: ${
|
|
273
|
-
line-height: ${
|
|
274
|
-
color: ${
|
|
275
|
-
background: ${
|
|
271
|
+
font-family: ${W};
|
|
272
|
+
font-size: ${_};
|
|
273
|
+
line-height: ${D};
|
|
274
|
+
color: ${Di};
|
|
275
|
+
background: ${At};
|
|
276
276
|
border-radius: calc(${mt} * 1px);
|
|
277
277
|
fill: currentColor;
|
|
278
278
|
cursor: pointer;
|
|
@@ -285,11 +285,11 @@ function ze(i){return i.type==="int"?{type:"int",value:Io("",i.value)}:i}functio
|
|
|
285
285
|
display: inline-flex;
|
|
286
286
|
justify-content: center;
|
|
287
287
|
align-items: center;
|
|
288
|
-
padding: ${
|
|
288
|
+
padding: ${ur} ${dr};
|
|
289
289
|
white-space: wrap;
|
|
290
290
|
outline: none;
|
|
291
291
|
text-decoration: none;
|
|
292
|
-
border: calc(${w} * 1px) solid ${
|
|
292
|
+
border: calc(${w} * 1px) solid ${rr};
|
|
293
293
|
color: inherit;
|
|
294
294
|
border-radius: inherit;
|
|
295
295
|
fill: inherit;
|
|
@@ -297,22 +297,22 @@ function ze(i){return i.type==="int"?{type:"int",value:Io("",i.value)}:i}functio
|
|
|
297
297
|
font-family: inherit;
|
|
298
298
|
}
|
|
299
299
|
:host(:hover) {
|
|
300
|
-
background: ${
|
|
300
|
+
background: ${Fi};
|
|
301
301
|
}
|
|
302
302
|
:host(:active) {
|
|
303
|
-
background: ${
|
|
303
|
+
background: ${At};
|
|
304
304
|
}
|
|
305
|
-
.control:${
|
|
306
|
-
outline: calc(${w} * 1px) solid ${
|
|
305
|
+
.control:${B} {
|
|
306
|
+
outline: calc(${w} * 1px) solid ${O};
|
|
307
307
|
outline-offset: calc(${w} * 2px);
|
|
308
308
|
}
|
|
309
309
|
.control::-moz-focus-inner {
|
|
310
310
|
border: 0;
|
|
311
311
|
}
|
|
312
312
|
:host([disabled]) {
|
|
313
|
-
opacity: ${
|
|
314
|
-
background: ${
|
|
315
|
-
cursor: ${
|
|
313
|
+
opacity: ${it};
|
|
314
|
+
background: ${At};
|
|
315
|
+
cursor: ${Y};
|
|
316
316
|
}
|
|
317
317
|
.content {
|
|
318
318
|
display: flex;
|
|
@@ -328,95 +328,95 @@ function ze(i){return i.type==="int"?{type:"int",value:Io("",i.value)}:i}functio
|
|
|
328
328
|
.start {
|
|
329
329
|
margin-inline-end: 8px;
|
|
330
330
|
}
|
|
331
|
-
`,hn
|
|
331
|
+
`,hn=$`
|
|
332
332
|
:host([appearance='primary']) {
|
|
333
|
-
background: ${
|
|
334
|
-
color: ${
|
|
333
|
+
background: ${At};
|
|
334
|
+
color: ${Di};
|
|
335
335
|
}
|
|
336
336
|
:host([appearance='primary']:hover) {
|
|
337
|
-
background: ${
|
|
337
|
+
background: ${Fi};
|
|
338
338
|
}
|
|
339
339
|
:host([appearance='primary']:active) .control:active {
|
|
340
|
-
background: ${
|
|
340
|
+
background: ${At};
|
|
341
341
|
}
|
|
342
|
-
:host([appearance='primary']) .control:${
|
|
343
|
-
outline: calc(${w} * 1px) solid ${
|
|
342
|
+
:host([appearance='primary']) .control:${B} {
|
|
343
|
+
outline: calc(${w} * 1px) solid ${O};
|
|
344
344
|
outline-offset: calc(${w} * 2px);
|
|
345
345
|
}
|
|
346
346
|
:host([appearance='primary'][disabled]) {
|
|
347
|
-
background: ${
|
|
347
|
+
background: ${At};
|
|
348
348
|
}
|
|
349
|
-
`,pn
|
|
349
|
+
`,pn=$`
|
|
350
350
|
:host([appearance='secondary']) {
|
|
351
|
-
background: ${
|
|
352
|
-
color: ${
|
|
351
|
+
background: ${Be};
|
|
352
|
+
color: ${lr};
|
|
353
353
|
}
|
|
354
354
|
:host([appearance='secondary']:hover) {
|
|
355
|
-
background: ${
|
|
355
|
+
background: ${cr};
|
|
356
356
|
}
|
|
357
357
|
:host([appearance='secondary']:active) .control:active {
|
|
358
|
-
background: ${
|
|
358
|
+
background: ${Be};
|
|
359
359
|
}
|
|
360
|
-
:host([appearance='secondary']) .control:${
|
|
361
|
-
outline: calc(${w} * 1px) solid ${
|
|
360
|
+
:host([appearance='secondary']) .control:${B} {
|
|
361
|
+
outline: calc(${w} * 1px) solid ${O};
|
|
362
362
|
outline-offset: calc(${w} * 2px);
|
|
363
363
|
}
|
|
364
364
|
:host([appearance='secondary'][disabled]) {
|
|
365
|
-
background: ${
|
|
365
|
+
background: ${Be};
|
|
366
366
|
}
|
|
367
|
-
`,fn
|
|
367
|
+
`,fn=$`
|
|
368
368
|
:host([appearance='icon']) {
|
|
369
369
|
background: ${Pi};
|
|
370
|
-
border-radius: ${
|
|
371
|
-
color: ${
|
|
370
|
+
border-radius: ${nr};
|
|
371
|
+
color: ${P};
|
|
372
372
|
}
|
|
373
373
|
:host([appearance='icon']:hover) {
|
|
374
374
|
background: ${_i};
|
|
375
|
-
outline: 1px dotted ${
|
|
375
|
+
outline: 1px dotted ${or};
|
|
376
376
|
outline-offset: -1px;
|
|
377
377
|
}
|
|
378
378
|
:host([appearance='icon']) .control {
|
|
379
|
-
padding: ${
|
|
379
|
+
padding: ${ar};
|
|
380
380
|
border: none;
|
|
381
381
|
}
|
|
382
382
|
:host([appearance='icon']:active) .control:active {
|
|
383
383
|
background: ${_i};
|
|
384
384
|
}
|
|
385
|
-
:host([appearance='icon']) .control:${
|
|
386
|
-
outline: calc(${w} * 1px) solid ${
|
|
387
|
-
outline-offset: ${
|
|
385
|
+
:host([appearance='icon']) .control:${B} {
|
|
386
|
+
outline: calc(${w} * 1px) solid ${O};
|
|
387
|
+
outline-offset: ${sr};
|
|
388
388
|
}
|
|
389
389
|
:host([appearance='icon'][disabled]) {
|
|
390
390
|
background: ${Pi};
|
|
391
391
|
}
|
|
392
|
-
`,
|
|
392
|
+
`,yr=(i,t)=>$`
|
|
393
393
|
${un}
|
|
394
394
|
${hn}
|
|
395
395
|
${pn}
|
|
396
396
|
${fn}
|
|
397
|
-
`;var
|
|
398
|
-
${
|
|
397
|
+
`;var Ve=class extends V{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)}};gr([u],Ve.prototype,"appearance",void 0);var Mi=Ve.compose({baseName:"button",template:Bo,styles:yr,shadowOptions:{delegatesFocus:!0}});var vr=(i,t)=>$`
|
|
398
|
+
${M("inline-flex")} :host {
|
|
399
399
|
align-items: center;
|
|
400
400
|
outline: none;
|
|
401
401
|
margin: calc(${g} * 1px) 0;
|
|
402
402
|
user-select: none;
|
|
403
|
-
font-size: ${
|
|
404
|
-
line-height: ${
|
|
403
|
+
font-size: ${_};
|
|
404
|
+
line-height: ${D};
|
|
405
405
|
}
|
|
406
406
|
.control {
|
|
407
407
|
position: relative;
|
|
408
408
|
width: calc(${g} * 4px + 2px);
|
|
409
409
|
height: calc(${g} * 4px + 2px);
|
|
410
410
|
box-sizing: border-box;
|
|
411
|
-
border-radius: calc(${
|
|
411
|
+
border-radius: calc(${hr} * 1px);
|
|
412
412
|
border: calc(${w} * 1px) solid ${Ri};
|
|
413
|
-
background: ${
|
|
413
|
+
background: ${Le};
|
|
414
414
|
outline: none;
|
|
415
415
|
cursor: pointer;
|
|
416
416
|
}
|
|
417
417
|
.label {
|
|
418
|
-
font-family: ${
|
|
419
|
-
color: ${
|
|
418
|
+
font-family: ${W};
|
|
419
|
+
color: ${P};
|
|
420
420
|
padding-inline-start: calc(${g} * 2px + 2px);
|
|
421
421
|
margin-inline-end: calc(${g} * 2px + 2px);
|
|
422
422
|
cursor: pointer;
|
|
@@ -429,13 +429,13 @@ function ze(i){return i.type==="int"?{type:"int",value:Io("",i.value)}:i}functio
|
|
|
429
429
|
width: 100%;
|
|
430
430
|
height: 100%;
|
|
431
431
|
display: block;
|
|
432
|
-
fill: ${
|
|
432
|
+
fill: ${P};
|
|
433
433
|
opacity: 0;
|
|
434
434
|
pointer-events: none;
|
|
435
435
|
}
|
|
436
436
|
.indeterminate-indicator {
|
|
437
437
|
border-radius: 2px;
|
|
438
|
-
background: ${
|
|
438
|
+
background: ${P};
|
|
439
439
|
position: absolute;
|
|
440
440
|
top: 50%;
|
|
441
441
|
left: 50%;
|
|
@@ -445,30 +445,30 @@ function ze(i){return i.type==="int"?{type:"int",value:Io("",i.value)}:i}functio
|
|
|
445
445
|
opacity: 0;
|
|
446
446
|
}
|
|
447
447
|
:host(:enabled) .control:hover {
|
|
448
|
-
background: ${
|
|
448
|
+
background: ${Le};
|
|
449
449
|
border-color: ${Ri};
|
|
450
450
|
}
|
|
451
451
|
:host(:enabled) .control:active {
|
|
452
|
-
background: ${
|
|
453
|
-
border-color: ${
|
|
452
|
+
background: ${Le};
|
|
453
|
+
border-color: ${O};
|
|
454
454
|
}
|
|
455
|
-
:host(:${
|
|
456
|
-
border: calc(${w} * 1px) solid ${
|
|
455
|
+
:host(:${B}) .control {
|
|
456
|
+
border: calc(${w} * 1px) solid ${O};
|
|
457
457
|
}
|
|
458
458
|
:host(.disabled) .label,
|
|
459
459
|
:host(.readonly) .label,
|
|
460
460
|
:host(.readonly) .control,
|
|
461
461
|
:host(.disabled) .control {
|
|
462
|
-
cursor: ${
|
|
462
|
+
cursor: ${Y};
|
|
463
463
|
}
|
|
464
464
|
:host(.checked:not(.indeterminate)) .checked-indicator,
|
|
465
465
|
:host(.indeterminate) .indeterminate-indicator {
|
|
466
466
|
opacity: 1;
|
|
467
467
|
}
|
|
468
468
|
:host(.disabled) {
|
|
469
|
-
opacity: ${
|
|
469
|
+
opacity: ${it};
|
|
470
470
|
}
|
|
471
|
-
`;var Bi=class extends
|
|
471
|
+
`;var Bi=class extends It{connectedCallback(){super.connectedCallback(),this.textContent?this.setAttribute("aria-label",this.textContent):this.setAttribute("aria-label","Checkbox")}},Li=Bi.compose({baseName:"checkbox",template:zo,styles:vr,checkedIndicator:`
|
|
472
472
|
<svg
|
|
473
473
|
part="checked-indicator"
|
|
474
474
|
class="checked-indicator"
|
|
@@ -486,44 +486,44 @@ function ze(i){return i.type==="int"?{type:"int",value:Io("",i.value)}:i}functio
|
|
|
486
486
|
</svg>
|
|
487
487
|
`,indeterminateIndicator:`
|
|
488
488
|
<div part="indeterminate-indicator" class="indeterminate-indicator"></div>
|
|
489
|
-
`});var
|
|
490
|
-
${
|
|
491
|
-
background: ${
|
|
489
|
+
`});var xr=(i,t)=>$`
|
|
490
|
+
${M("inline-flex")} :host {
|
|
491
|
+
background: ${le};
|
|
492
492
|
border-radius: calc(${mt} * 1px);
|
|
493
493
|
box-sizing: border-box;
|
|
494
|
-
color: ${
|
|
494
|
+
color: ${P};
|
|
495
495
|
contain: contents;
|
|
496
|
-
font-family: ${
|
|
497
|
-
height: calc(${
|
|
496
|
+
font-family: ${W};
|
|
497
|
+
height: calc(${qt} * 1px);
|
|
498
498
|
position: relative;
|
|
499
499
|
user-select: none;
|
|
500
|
-
min-width: ${
|
|
500
|
+
min-width: ${Me};
|
|
501
501
|
outline: none;
|
|
502
502
|
vertical-align: top;
|
|
503
503
|
}
|
|
504
504
|
.control {
|
|
505
505
|
align-items: center;
|
|
506
506
|
box-sizing: border-box;
|
|
507
|
-
border: calc(${w} * 1px) solid ${
|
|
507
|
+
border: calc(${w} * 1px) solid ${Pt};
|
|
508
508
|
border-radius: calc(${mt} * 1px);
|
|
509
509
|
cursor: pointer;
|
|
510
510
|
display: flex;
|
|
511
511
|
font-family: inherit;
|
|
512
|
-
font-size: ${
|
|
513
|
-
line-height: ${
|
|
512
|
+
font-size: ${_};
|
|
513
|
+
line-height: ${D};
|
|
514
514
|
min-height: 100%;
|
|
515
515
|
padding: 2px 6px 2px 8px;
|
|
516
516
|
width: 100%;
|
|
517
517
|
}
|
|
518
518
|
.listbox {
|
|
519
|
-
background: ${
|
|
520
|
-
border: calc(${w} * 1px) solid ${
|
|
519
|
+
background: ${le};
|
|
520
|
+
border: calc(${w} * 1px) solid ${O};
|
|
521
521
|
border-radius: calc(${mt} * 1px);
|
|
522
522
|
box-sizing: border-box;
|
|
523
523
|
display: inline-flex;
|
|
524
524
|
flex-direction: column;
|
|
525
525
|
left: 0;
|
|
526
|
-
max-height: ${
|
|
526
|
+
max-height: ${pr};
|
|
527
527
|
padding: 0;
|
|
528
528
|
overflow-y: auto;
|
|
529
529
|
position: absolute;
|
|
@@ -533,39 +533,39 @@ function ze(i){return i.type==="int"?{type:"int",value:Io("",i.value)}:i}functio
|
|
|
533
533
|
.listbox[hidden] {
|
|
534
534
|
display: none;
|
|
535
535
|
}
|
|
536
|
-
:host(:${
|
|
537
|
-
border-color: ${
|
|
536
|
+
:host(:${B}) .control {
|
|
537
|
+
border-color: ${O};
|
|
538
538
|
}
|
|
539
539
|
:host(:not([disabled]):hover) {
|
|
540
|
-
background: ${
|
|
541
|
-
border-color: ${
|
|
540
|
+
background: ${le};
|
|
541
|
+
border-color: ${Pt};
|
|
542
542
|
}
|
|
543
|
-
:host(:${
|
|
543
|
+
:host(:${B}) ::slotted([aria-selected="true"][role="option"]:not([disabled])) {
|
|
544
544
|
background: ${bt};
|
|
545
545
|
border: calc(${w} * 1px) solid transparent;
|
|
546
|
-
color: ${
|
|
546
|
+
color: ${Ut};
|
|
547
547
|
}
|
|
548
548
|
:host([disabled]) {
|
|
549
|
-
cursor: ${
|
|
550
|
-
opacity: ${
|
|
549
|
+
cursor: ${Y};
|
|
550
|
+
opacity: ${it};
|
|
551
551
|
}
|
|
552
552
|
:host([disabled]) .control {
|
|
553
|
-
cursor: ${
|
|
553
|
+
cursor: ${Y};
|
|
554
554
|
user-select: none;
|
|
555
555
|
}
|
|
556
556
|
:host([disabled]:hover) {
|
|
557
|
-
background: ${
|
|
558
|
-
color: ${
|
|
557
|
+
background: ${le};
|
|
558
|
+
color: ${P};
|
|
559
559
|
fill: currentcolor;
|
|
560
560
|
}
|
|
561
561
|
:host(:not([disabled])) .control:active {
|
|
562
|
-
border-color: ${
|
|
562
|
+
border-color: ${O};
|
|
563
563
|
}
|
|
564
564
|
:host(:empty) .listbox {
|
|
565
565
|
display: none;
|
|
566
566
|
}
|
|
567
567
|
:host([open]) .control {
|
|
568
|
-
border-color: ${
|
|
568
|
+
border-color: ${O};
|
|
569
569
|
}
|
|
570
570
|
:host([open][position='above']) .listbox {
|
|
571
571
|
border-bottom-left-radius: 0;
|
|
@@ -576,10 +576,10 @@ function ze(i){return i.type==="int"?{type:"int",value:Io("",i.value)}:i}functio
|
|
|
576
576
|
border-top-right-radius: 0;
|
|
577
577
|
}
|
|
578
578
|
:host([open][position='above']) .listbox {
|
|
579
|
-
bottom: calc(${
|
|
579
|
+
bottom: calc(${qt} * 1px);
|
|
580
580
|
}
|
|
581
581
|
:host([open][position='below']) .listbox {
|
|
582
|
-
top: calc(${
|
|
582
|
+
top: calc(${qt} * 1px);
|
|
583
583
|
}
|
|
584
584
|
.selected-value {
|
|
585
585
|
flex: 1 1 auto;
|
|
@@ -620,7 +620,7 @@ function ze(i){return i.type==="int"?{type:"int",value:Io("",i.value)}:i}functio
|
|
|
620
620
|
::slotted(option) {
|
|
621
621
|
flex: 0 0 auto;
|
|
622
622
|
}
|
|
623
|
-
`;var
|
|
623
|
+
`;var Ni=class extends X{},Vi=Ni.compose({baseName:"dropdown",template:Go,styles:xr,indicator:`
|
|
624
624
|
<svg
|
|
625
625
|
class="select-indicator"
|
|
626
626
|
part="select-indicator"
|
|
@@ -636,17 +636,17 @@ function ze(i){return i.type==="int"?{type:"int",value:Io("",i.value)}:i}functio
|
|
|
636
636
|
d="M7.976 10.072l4.357-4.357.62.618L8.284 11h-.618L3 6.333l.619-.618 4.357 4.357z"
|
|
637
637
|
/>
|
|
638
638
|
</svg>
|
|
639
|
-
`});var
|
|
640
|
-
${
|
|
639
|
+
`});var wr=(i,t)=>$`
|
|
640
|
+
${M("inline-flex")} :host {
|
|
641
641
|
font-family: var(--body-font);
|
|
642
|
-
border-radius: ${
|
|
642
|
+
border-radius: ${zt};
|
|
643
643
|
border: calc(${w} * 1px) solid transparent;
|
|
644
644
|
box-sizing: border-box;
|
|
645
|
-
color: ${
|
|
645
|
+
color: ${P};
|
|
646
646
|
cursor: pointer;
|
|
647
647
|
fill: currentcolor;
|
|
648
|
-
font-size: ${
|
|
649
|
-
line-height: ${
|
|
648
|
+
font-size: ${_};
|
|
649
|
+
line-height: ${D};
|
|
650
650
|
margin: 0;
|
|
651
651
|
outline: none;
|
|
652
652
|
overflow: hidden;
|
|
@@ -655,32 +655,32 @@ function ze(i){return i.type==="int"?{type:"int",value:Io("",i.value)}:i}functio
|
|
|
655
655
|
user-select: none;
|
|
656
656
|
white-space: nowrap;
|
|
657
657
|
}
|
|
658
|
-
:host(:${
|
|
659
|
-
border-color: ${
|
|
658
|
+
:host(:${B}) {
|
|
659
|
+
border-color: ${O};
|
|
660
660
|
background: ${bt};
|
|
661
|
-
color: ${
|
|
661
|
+
color: ${P};
|
|
662
662
|
}
|
|
663
663
|
:host([aria-selected='true']) {
|
|
664
664
|
background: ${bt};
|
|
665
665
|
border: calc(${w} * 1px) solid transparent;
|
|
666
|
-
color: ${
|
|
666
|
+
color: ${Ut};
|
|
667
667
|
}
|
|
668
668
|
:host(:active) {
|
|
669
669
|
background: ${bt};
|
|
670
|
-
color: ${
|
|
670
|
+
color: ${Ut};
|
|
671
671
|
}
|
|
672
672
|
:host(:not([aria-selected='true']):hover) {
|
|
673
673
|
background: ${bt};
|
|
674
674
|
border: calc(${w} * 1px) solid transparent;
|
|
675
|
-
color: ${
|
|
675
|
+
color: ${Ut};
|
|
676
676
|
}
|
|
677
677
|
:host(:not([aria-selected='true']):active) {
|
|
678
678
|
background: ${bt};
|
|
679
|
-
color: ${
|
|
679
|
+
color: ${P};
|
|
680
680
|
}
|
|
681
681
|
:host([disabled]) {
|
|
682
|
-
cursor: ${
|
|
683
|
-
opacity: ${
|
|
682
|
+
cursor: ${Y};
|
|
683
|
+
opacity: ${it};
|
|
684
684
|
}
|
|
685
685
|
:host([disabled]:hover) {
|
|
686
686
|
background-color: inherit;
|
|
@@ -691,13 +691,13 @@ function ze(i){return i.type==="int"?{type:"int",value:Io("",i.value)}:i}functio
|
|
|
691
691
|
overflow: hidden;
|
|
692
692
|
text-overflow: ellipsis;
|
|
693
693
|
}
|
|
694
|
-
`;var Hi=class extends
|
|
695
|
-
${
|
|
694
|
+
`;var Hi=class extends q{connectedCallback(){super.connectedCallback(),this.textContent?this.setAttribute("aria-label",this.textContent):this.setAttribute("aria-label","Option")}},ji=Hi.compose({baseName:"option",template:Uo,styles:wr});var kr=(i,t)=>$`
|
|
695
|
+
${M("grid")} :host {
|
|
696
696
|
box-sizing: border-box;
|
|
697
|
-
font-family: ${
|
|
698
|
-
font-size: ${
|
|
699
|
-
line-height: ${
|
|
700
|
-
color: ${
|
|
697
|
+
font-family: ${W};
|
|
698
|
+
font-size: ${_};
|
|
699
|
+
line-height: ${D};
|
|
700
|
+
color: ${P};
|
|
701
701
|
grid-template-columns: auto 1fr auto;
|
|
702
702
|
grid-template-rows: auto 1fr;
|
|
703
703
|
overflow-x: auto;
|
|
@@ -725,7 +725,7 @@ function ze(i){return i.type==="int"?{type:"int",value:Io("",i.value)}:i}functio
|
|
|
725
725
|
justify-self: center;
|
|
726
726
|
background: ${gt};
|
|
727
727
|
margin: 0;
|
|
728
|
-
border-radius: calc(${
|
|
728
|
+
border-radius: calc(${zt} * 1px);
|
|
729
729
|
}
|
|
730
730
|
.activeIndicatorTransition {
|
|
731
731
|
transition: transform 0.01s linear;
|
|
@@ -736,17 +736,17 @@ function ze(i){return i.type==="int"?{type:"int",value:Io("",i.value)}:i}functio
|
|
|
736
736
|
grid-column-end: 4;
|
|
737
737
|
position: relative;
|
|
738
738
|
}
|
|
739
|
-
`;var
|
|
740
|
-
${
|
|
739
|
+
`;var Sr=(i,t)=>$`
|
|
740
|
+
${M("inline-flex")} :host {
|
|
741
741
|
box-sizing: border-box;
|
|
742
|
-
font-family: ${
|
|
743
|
-
font-size: ${
|
|
744
|
-
line-height: ${
|
|
742
|
+
font-family: ${W};
|
|
743
|
+
font-size: ${_};
|
|
744
|
+
line-height: ${D};
|
|
745
745
|
height: calc(${g} * 7px);
|
|
746
746
|
padding: calc(${g} * 1px) 0;
|
|
747
|
-
color: ${
|
|
747
|
+
color: ${br};
|
|
748
748
|
fill: currentcolor;
|
|
749
|
-
border-radius: calc(${
|
|
749
|
+
border-radius: calc(${zt} * 1px);
|
|
750
750
|
border: solid calc(${w} * 1px) transparent;
|
|
751
751
|
align-items: center;
|
|
752
752
|
justify-content: center;
|
|
@@ -776,9 +776,9 @@ function ze(i){return i.type==="int"?{type:"int",value:Io("",i.value)}:i}functio
|
|
|
776
776
|
color: ${gt};
|
|
777
777
|
fill: currentcolor;
|
|
778
778
|
}
|
|
779
|
-
:host(:${
|
|
779
|
+
:host(:${B}) {
|
|
780
780
|
outline: none;
|
|
781
|
-
border: solid calc(${w} * 1px) ${
|
|
781
|
+
border: solid calc(${w} * 1px) ${mr};
|
|
782
782
|
}
|
|
783
783
|
:host(:focus) {
|
|
784
784
|
outline: none;
|
|
@@ -786,19 +786,19 @@ function ze(i){return i.type==="int"?{type:"int",value:Io("",i.value)}:i}functio
|
|
|
786
786
|
::slotted(vscode-badge) {
|
|
787
787
|
margin-inline-start: calc(${g} * 2px);
|
|
788
788
|
}
|
|
789
|
-
`;var
|
|
790
|
-
${
|
|
789
|
+
`;var Cr=(i,t)=>$`
|
|
790
|
+
${M("flex")} :host {
|
|
791
791
|
color: inherit;
|
|
792
792
|
background-color: transparent;
|
|
793
793
|
border: solid calc(${w} * 1px) transparent;
|
|
794
794
|
box-sizing: border-box;
|
|
795
|
-
font-size: ${
|
|
796
|
-
line-height: ${
|
|
795
|
+
font-size: ${_};
|
|
796
|
+
line-height: ${D};
|
|
797
797
|
padding: 10px calc((${g} + 2) * 1px);
|
|
798
798
|
}
|
|
799
|
-
`;var zi=class extends
|
|
800
|
-
${
|
|
801
|
-
font-family: ${
|
|
799
|
+
`;var zi=class extends U{connectedCallback(){super.connectedCallback(),this.orientation&&(this.orientation=Re.horizontal),this.getAttribute("aria-label")||this.setAttribute("aria-label","Panels")}},Wi=zi.compose({baseName:"panels",template:Yo,styles:kr}),qi=class extends ae{connectedCallback(){super.connectedCallback(),this.disabled&&(this.disabled=!1),this.textContent&&this.setAttribute("aria-label",this.textContent)}},Gi=qi.compose({baseName:"panel-tab",template:Xo,styles:Sr}),Ui=class extends Fe{},Qi=Ui.compose({baseName:"panel-view",template:Qo,styles:Cr});var $r=(i,t)=>$`
|
|
800
|
+
${M("inline-block")} :host {
|
|
801
|
+
font-family: ${W};
|
|
802
802
|
outline: none;
|
|
803
803
|
user-select: none;
|
|
804
804
|
}
|
|
@@ -807,12 +807,12 @@ function ze(i){return i.type==="int"?{type:"int",value:Io("",i.value)}:i}functio
|
|
|
807
807
|
position: relative;
|
|
808
808
|
display: flex;
|
|
809
809
|
flex-direction: row;
|
|
810
|
-
color: ${
|
|
810
|
+
color: ${fr};
|
|
811
811
|
background: ${Ne};
|
|
812
812
|
border-radius: calc(${mt} * 1px);
|
|
813
|
-
border: calc(${w} * 1px) solid ${
|
|
814
|
-
height: calc(${
|
|
815
|
-
min-width: ${
|
|
813
|
+
border: calc(${w} * 1px) solid ${Pt};
|
|
814
|
+
height: calc(${qt} * 1px);
|
|
815
|
+
min-width: ${Me};
|
|
816
816
|
}
|
|
817
817
|
.control {
|
|
818
818
|
-webkit-appearance: none;
|
|
@@ -826,21 +826,21 @@ function ze(i){return i.type==="int"?{type:"int",value:Io("",i.value)}:i}functio
|
|
|
826
826
|
margin-bottom: auto;
|
|
827
827
|
border: none;
|
|
828
828
|
padding: 0 calc(${g} * 2px + 1px);
|
|
829
|
-
font-size: ${
|
|
830
|
-
line-height: ${
|
|
829
|
+
font-size: ${_};
|
|
830
|
+
line-height: ${D};
|
|
831
831
|
}
|
|
832
832
|
.control:hover,
|
|
833
|
-
.control:${
|
|
833
|
+
.control:${B},
|
|
834
834
|
.control:disabled,
|
|
835
835
|
.control:active {
|
|
836
836
|
outline: none;
|
|
837
837
|
}
|
|
838
838
|
.label {
|
|
839
839
|
display: block;
|
|
840
|
-
color: ${
|
|
840
|
+
color: ${P};
|
|
841
841
|
cursor: pointer;
|
|
842
|
-
font-size: ${
|
|
843
|
-
line-height: ${
|
|
842
|
+
font-size: ${_};
|
|
843
|
+
line-height: ${D};
|
|
844
844
|
margin-bottom: 2px;
|
|
845
845
|
}
|
|
846
846
|
.label__hidden {
|
|
@@ -866,28 +866,28 @@ function ze(i){return i.type==="int"?{type:"int",value:Io("",i.value)}:i}functio
|
|
|
866
866
|
}
|
|
867
867
|
:host(:hover:not([disabled])) .root {
|
|
868
868
|
background: ${Ne};
|
|
869
|
-
border-color: ${
|
|
869
|
+
border-color: ${Pt};
|
|
870
870
|
}
|
|
871
871
|
:host(:active:not([disabled])) .root {
|
|
872
872
|
background: ${Ne};
|
|
873
|
-
border-color: ${
|
|
873
|
+
border-color: ${O};
|
|
874
874
|
}
|
|
875
875
|
:host(:focus-within:not([disabled])) .root {
|
|
876
|
-
border-color: ${
|
|
876
|
+
border-color: ${O};
|
|
877
877
|
}
|
|
878
878
|
:host([disabled]) .label,
|
|
879
879
|
:host([readonly]) .label,
|
|
880
880
|
:host([readonly]) .control,
|
|
881
881
|
:host([disabled]) .control {
|
|
882
|
-
cursor: ${
|
|
882
|
+
cursor: ${Y};
|
|
883
883
|
}
|
|
884
884
|
:host([disabled]) {
|
|
885
|
-
opacity: ${
|
|
885
|
+
opacity: ${it};
|
|
886
886
|
}
|
|
887
887
|
:host([disabled]) .control {
|
|
888
|
-
border-color: ${
|
|
888
|
+
border-color: ${Pt};
|
|
889
889
|
}
|
|
890
|
-
`;var Xi=class extends
|
|
890
|
+
`;var Xi=class extends R{connectedCallback(){super.connectedCallback(),this.textContent?this.setAttribute("aria-label",this.textContent):this.setAttribute("aria-label","Text field")}},Yi=Xi.compose({baseName:"text-field",template:Jo,styles:$r,shadowOptions:{delegatesFocus:!0}});Zo().register(Mi(),Gi(),Qi(),Wi(),Vi(),ji(),Li(),Yi());var mn=acquireVsCodeApi();function Wt(i,t){mn.postMessage({type:i,body:t})}var bn=["startup","runtime-global","runtime-per-user"],vt,gn={version:document.getElementById("version")},yt={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=vt[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}Wt("edit",{scope:e,name:o,value:je(r)});break}case"vscode-checkbox":{let r=vt[e][o];r.value=t.checked,Wt("edit",{scope:e,name:o,value:r});break}case"input":if(t.classList.contains("setting-color-value")){let r=vt[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,Wt("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"),d;switch(a.value){case"string":d={type:"string",value:""};break;case"number":d={type:"number",value:0};break;case"int":d={type:"int",value:0n};break;case"bool":d={type:"bool",value:!1};break;case"color":d={type:"color",value:{r:0,g:0,b:0,a:1}};break}vt[r][s.value]=d,n.before(Tr(s.value,d)),Wt("edit",{scope:r,name:s.value,value:je(d)}),s.value=""}else if(e.classList.contains("setting-delete")){let n=e.closest("tr"),s=n.id;n.remove(),delete vt[r][s],Wt("edit",{scope:r,name:s,value:{type:"none"}})}}});function Tr(i,t){let e;switch(t.type){case"bool":{e=yt.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=yt.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=yt.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=yt.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;vt=JSON.parse(o.settings,Zi),gn.version.innerText=o.version;let r=yt.setting_add.content.querySelector(".setting-add-type");r.children[3].hidden=!o.saves_ints;for(let n in yt){let s=yt[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 bn){let s=document.getElementById(n);s.replaceChildren();for(let a in vt[n]){let d=vt[n][a];s.append(Tr(a,d))}if(o.editable){let a=yt.setting_add.content.cloneNode(!0);s.append(a)}}break}});Wt("ready",{});
|
|
891
891
|
/*! Bundled license information:
|
|
892
892
|
|
|
893
893
|
tslib/tslib.es6.js:
|