factoriomod-debug 1.1.43 → 1.1.44
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/CHANGELOG.md +16 -1
- package/dist/ModSettingsWebview.js +30 -30
- package/dist/fmtk.js +1003 -417
- package/doc/internal/noncharacters.md +1 -1
- package/doc/language-lua.md +110 -92
- package/package.json +9 -9
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,21 @@
|
|
|
2
2
|
|
|
3
3
|
[<img height='36' style='border:0px;height:36px;' src='https://az743702.vo.msecnd.net/cdn/kofi2.png?v=2' border='0' alt='Buy Me a Coffee at ko-fi.com'/>](https://ko-fi.com/X8X41IE4T)
|
|
4
4
|
|
|
5
|
+
## 1.1.44
|
|
6
|
+
* Debugger
|
|
7
|
+
* Set `SteamAppId` when launching for `--version`
|
|
8
|
+
* Fix Eval not available if not enough lua events running
|
|
9
|
+
* Pin GC-able values from eval results or `__DebugAdapter.print(obj)` to allow expanding (some) fields when not paused
|
|
10
|
+
* Display the registered name of metatables, if available
|
|
11
|
+
* Fix possible race when adjusting settings at launch
|
|
12
|
+
* VSCode:
|
|
13
|
+
* Check LuaLS plugin files in Check Config
|
|
14
|
+
* Cleanup mismatched workspace links when updating `Lua.workspace.userThirdParty`
|
|
15
|
+
* LuaLS library package:
|
|
16
|
+
* Plugin option `--ignore` to disable the plugin for certain files or folders
|
|
17
|
+
* Plugin option `--clusterio-modules` to enable handling clusterio requires
|
|
18
|
+
* Note that a bug in LuaLS 3.9.3 currently prevents passing more than one argument in some workspaces
|
|
19
|
+
|
|
5
20
|
## 1.1.43
|
|
6
21
|
* Locale:
|
|
7
22
|
* Don't emit documentSymbols with empty names (#118)
|
|
@@ -19,7 +34,7 @@
|
|
|
19
34
|
* Fixed that `on_nth_tick` hook could hide errors for some incorrect calls
|
|
20
35
|
* LuaLS library package:
|
|
21
36
|
* Changed enums to generate typed values instead of `integer`
|
|
22
|
-
* Generate overloads for `script.on_event`, removed plugin on_event module
|
|
37
|
+
* Generate overloads for `script.on_event`, removed plugin `on_event` module
|
|
23
38
|
* Add Support for Factorio JSON Runtime Docs v5 (Factorio >= 1.1.108)
|
|
24
39
|
* Remove Support for Factorio JSON Runtime Docs v3 (Factorio < 1.1.89)
|
|
25
40
|
* Fill in `defines.prototypes` with dumped values instead of `{[string]:{[string]:0}}`
|
|
@@ -1,4 +1,4 @@
|
|
|
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)}},Mt=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 Mt(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 Rt=class{constructor(){this.targetIndex=0}},Bt=class extends Rt{constructor(){super(...arguments),this.createPlaceholder=m.createInterpolationPlaceholder}},Lt=class extends Rt{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 Mo(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 Ro(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=Ro,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=Mo,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 Rt?(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 Mt{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 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`
|
|
2
2
|
<span
|
|
3
3
|
part="end"
|
|
4
4
|
${A("endContainer")}
|
|
@@ -38,7 +38,7 @@ function ze(i){return i.type==="int"?{type:"int",value:Io("",i.value)}:i}functio
|
|
|
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 Mr(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 Rr=(i,t)=>S`
|
|
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`
|
|
42
42
|
<button
|
|
43
43
|
class="control"
|
|
44
44
|
part="control"
|
|
@@ -182,7 +182,7 @@ function ze(i){return i.type==="int"?{type:"int",value:Io("",i.value)}:i}functio
|
|
|
182
182
|
<template slot="tabpanel" role="tabpanel">
|
|
183
183
|
<slot></slot>
|
|
184
184
|
</template>
|
|
185
|
-
`;var
|
|
185
|
+
`;var Re=class extends k{};var Qr=(i,t)=>S`
|
|
186
186
|
<template slot="tab" role="tab" aria-disabled="${e=>e.disabled}">
|
|
187
187
|
<slot></slot>
|
|
188
188
|
</template>
|
|
@@ -205,7 +205,7 @@ function ze(i){return i.type==="int"?{type:"int",value:Io("",i.value)}:i}functio
|
|
|
205
205
|
<slot name="tabpanel" ${z("tabpanels")}></slot>
|
|
206
206
|
</div>
|
|
207
207
|
</template>
|
|
208
|
-
`;var
|
|
208
|
+
`;var Me={vertical:"vertical",horizontal:"horizontal"},G=class extends k{constructor(){super(...arguments),this.orientation=Me.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",r=this.isHorizontal()?t:e;this.activeTabIndex=this.getActiveIndex(),this.showActiveIndicator=!1,this.tabs.forEach((o,n)=>{if(o.slot==="tab"){let s=this.activeTabIndex===n&&this.isFocusableElement(o);this.activeindicator&&this.isFocusableElement(o)&&(this.showActiveIndicator=!0);let a=this.tabIds[n],d=this.tabpanelIds[n];o.setAttribute("id",a),o.setAttribute("aria-selected",s?"true":"false"),o.setAttribute("aria-controls",d),o.addEventListener("click",this.handleTabClick),o.addEventListener("keydown",this.handleTabKeyDown),o.setAttribute("tabindex",s?"0":"-1"),s&&(this.activetab=o,this.activeid=a)}o.style[t]="",o.style[e]="",o.style[r]=`${n+1}`,this.isHorizontal()?o.classList.remove("vertical"):o.classList.add("vertical")})},this.setTabPanels=()=>{this.tabpanels.forEach((t,e)=>{let r=this.tabIds[e],o=this.tabpanelIds[e];t.setAttribute("id",o),t.setAttribute("aria-labelledby",r),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 Fr:t.preventDefault(),this.adjustBackward(t);break;case Dr:t.preventDefault(),this.adjustForward(t);break}else switch(t.key){case dt:t.preventDefault(),this.adjustBackward(t);break;case ct:t.preventDefault(),this.adjustForward(t);break}switch(t.key){case ut:t.preventDefault(),this.adjust(-this.activeTabIndex);break;case ht:t.preventDefault(),this.adjust(this.tabs.length-this.activeTabIndex-1);break}},this.adjustForward=t=>{let e=this.tabs,r=0;for(r=this.activetab?e.indexOf(this.activetab)+1:1,r===e.length&&(r=0);r<e.length&&e.length>1;)if(this.isFocusableElement(e[r])){this.moveToTabByIndex(e,r);break}else{if(this.activetab&&r===e.indexOf(this.activetab))break;r+1>=e.length?r=0:r+=1}},this.adjustBackward=t=>{let e=this.tabs,r=0;for(r=this.activetab?e.indexOf(this.activetab)-1:0,r=r<0?e.length-1:r;r>=0&&e.length>1;)if(this.isFocusableElement(e[r])){this.moveToTabByIndex(e,r);break}else r-1<0?r=e.length-1:r-=1},this.moveToTabByIndex=(t,e)=>{let r=t[e];this.activetab=r,this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=e,r.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(r=>r.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-${It()}`})}getTabPanelIds(){return this.tabpanels.map(t=>{var e;return(e=t.getAttribute("id"))!==null&&e!==void 0?e:`panel-${It()}`})}setComponent(){this.activeTabIndex!==this.prevActiveTabIndex&&(this.activeid=this.tabIds[this.activeTabIndex],this.focusTab(),this.change())}isHorizontal(){return this.orientation===Me.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",r=this.isHorizontal()?"offsetLeft":"offsetTop",o=this.activeIndicatorRef[r];this.activeIndicatorRef.style[t]=`${this.activeTabIndex+1}`;let n=this.activeIndicatorRef[r];this.activeIndicatorRef.style[t]=`${this.prevActiveTabIndex+1}`;let s=n-o;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)),r=e.indexOf(this.activetab),o=Rr(0,e.length-1,r+t),n=this.tabs.indexOf(e[o]);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],G.prototype,"orientation",void 0);l([u],G.prototype,"activeid",void 0);l([f],G.prototype,"tabs",void 0);l([f],G.prototype,"tabpanels",void 0);l([u({mode:"boolean"})],G.prototype,"activeindicator",void 0);l([f],G.prototype,"activeIndicatorRef",void 0);l([f],G.prototype,"showActiveIndicator",void 0);F(G,U);var Yr=(i,t)=>S`
|
|
209
209
|
<template
|
|
210
210
|
class="
|
|
211
211
|
${e=>e.readOnly?"readonly":""}
|
|
@@ -265,11 +265,11 @@ function ze(i){return i.type==="int"?{type:"int",value:Io("",i.value)}:i}functio
|
|
|
265
265
|
${K(i,t)}
|
|
266
266
|
</div>
|
|
267
267
|
</template>
|
|
268
|
-
`;var J="not-allowed";var dn=":host([hidden]){display:none}";function V(i){return`${dn}:host{display:${i}}`}var N=Pr()?"focus-visible":"focus";function Jr(i){return Ii.getOrCreate(i).withPrefix("vscode")}function Kr(i){window.addEventListener("load",()=>{new MutationObserver(()=>{Zr(i)}).observe(document.body,{attributes:!0,attributeFilter:["class"]}),Zr(i)})}function Zr(i){let t=getComputedStyle(document.body),e=document.querySelector("body");if(e){let r=e.getAttribute("data-vscode-theme-kind");for(let[o,n]of i){let s=t.getPropertyValue(o).toString();if(r==="vscode-high-contrast")s.length===0&&n.name.includes("background")&&(s="transparent"),n.name==="button-icon-hover-background"&&(s="transparent");else if(r==="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 to=new Map,eo=!1;function p(i,t){let e=ae.create(i);if(t){if(t.includes("--fake-vscode-token")){let r="id"+Math.random().toString(16).slice(2);t=`${t}-${r}`}to.set(t,e)}return eo||(Kr(to),eo=!0),e}var Kd=p("background","--vscode-editor-background").withDefault("#1e1e1e"),w=p("border-width").withDefault(1),io=p("contrast-active-border","--vscode-contrastActiveBorder").withDefault("#f38518"),tu=p("contrast-border","--vscode-contrastBorder").withDefault("#6fc3df"),Wt=p("corner-radius").withDefault(0),mt=p("corner-radius-round").withDefault(2),g=p("design-unit").withDefault(4),rt=p("disabled-opacity").withDefault(.4),P=p("focus-border","--vscode-focusBorder").withDefault("#007fd4"),Q=p("font-family","--vscode-font-family").withDefault("-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol"),eu=p("font-weight","--vscode-font-weight").withDefault("400"),
|
|
268
|
+
`;var J="not-allowed";var dn=":host([hidden]){display:none}";function V(i){return`${dn}:host{display:${i}}`}var N=Pr()?"focus-visible":"focus";function Jr(i){return Ii.getOrCreate(i).withPrefix("vscode")}function Kr(i){window.addEventListener("load",()=>{new MutationObserver(()=>{Zr(i)}).observe(document.body,{attributes:!0,attributeFilter:["class"]}),Zr(i)})}function Zr(i){let t=getComputedStyle(document.body),e=document.querySelector("body");if(e){let r=e.getAttribute("data-vscode-theme-kind");for(let[o,n]of i){let s=t.getPropertyValue(o).toString();if(r==="vscode-high-contrast")s.length===0&&n.name.includes("background")&&(s="transparent"),n.name==="button-icon-hover-background"&&(s="transparent");else if(r==="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 to=new Map,eo=!1;function p(i,t){let e=ae.create(i);if(t){if(t.includes("--fake-vscode-token")){let r="id"+Math.random().toString(16).slice(2);t=`${t}-${r}`}to.set(t,e)}return eo||(Kr(to),eo=!0),e}var Kd=p("background","--vscode-editor-background").withDefault("#1e1e1e"),w=p("border-width").withDefault(1),io=p("contrast-active-border","--vscode-contrastActiveBorder").withDefault("#f38518"),tu=p("contrast-border","--vscode-contrastBorder").withDefault("#6fc3df"),Wt=p("corner-radius").withDefault(0),mt=p("corner-radius-round").withDefault(2),g=p("design-unit").withDefault(4),rt=p("disabled-opacity").withDefault(.4),P=p("focus-border","--vscode-focusBorder").withDefault("#007fd4"),Q=p("font-family","--vscode-font-family").withDefault("-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol"),eu=p("font-weight","--vscode-font-weight").withDefault("400"),R=p("foreground","--vscode-foreground").withDefault("#cccccc"),Gt=p("input-height").withDefault("26"),Be=p("input-min-width").withDefault("100px"),M=p("type-ramp-base-font-size","--vscode-font-size").withDefault("13px"),B=p("type-ramp-base-line-height").withDefault("normal"),iu=p("type-ramp-minus1-font-size").withDefault("11px"),ru=p("type-ramp-minus1-line-height").withDefault("16px"),ou=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"),ro=p("button-border","--vscode-button-border").withDefault("transparent"),Pi=p("button-icon-background").withDefault("transparent"),oo=p("button-icon-corner-radius").withDefault("5px"),no=p("button-icon-outline-offset").withDefault(0),_i=p("button-icon-hover-background","--fake-vscode-token").withDefault("rgba(90, 93, 94, 0.31)"),so=p("button-icon-padding").withDefault("3px"),_t=p("button-primary-background","--vscode-button-background").withDefault("#0e639c"),Fi=p("button-primary-foreground","--vscode-button-foreground").withDefault("#ffffff"),Di=p("button-primary-hover-background","--vscode-button-hoverBackground").withDefault("#1177bb"),Le=p("button-secondary-background","--vscode-button-secondaryBackground").withDefault("#3a3d41"),ao=p("button-secondary-foreground","--vscode-button-secondaryForeground").withDefault("#ffffff"),lo=p("button-secondary-hover-background","--vscode-button-secondaryHoverBackground").withDefault("#45494e"),co=p("button-padding-horizontal").withDefault("11px"),uo=p("button-padding-vertical").withDefault("4px"),Ve=p("checkbox-background","--vscode-checkbox-background").withDefault("#3c3c3c"),Ri=p("checkbox-border","--vscode-checkbox-border").withDefault("#3c3c3c"),ho=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"),Qt=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"),ue=p("dropdown-background","--vscode-dropdown-background").withDefault("#3c3c3c"),Ft=p("dropdown-border","--vscode-dropdown-border").withDefault("#3c3c3c"),vu=p("dropdown-foreground","--vscode-dropdown-foreground").withDefault("#f0f0f0"),po=p("dropdown-list-max-height").withDefault("200px"),Ne=p("input-background","--vscode-input-background").withDefault("#3c3c3c"),fo=p("input-foreground","--vscode-input-foreground").withDefault("#cccccc"),yu=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"),mo=p("panel-tab-active-border","--vscode-panelTitle-activeBorder").withDefault("#e7e7e7"),gt=p("panel-tab-active-foreground","--vscode-panelTitle-activeForeground").withDefault("#e7e7e7"),bo=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 go(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 un=T`
|
|
269
269
|
${V("inline-flex")} :host {
|
|
270
270
|
outline: none;
|
|
271
271
|
font-family: ${Q};
|
|
272
|
-
font-size: ${
|
|
272
|
+
font-size: ${M};
|
|
273
273
|
line-height: ${B};
|
|
274
274
|
color: ${Fi};
|
|
275
275
|
background: ${_t};
|
|
@@ -368,7 +368,7 @@ function ze(i){return i.type==="int"?{type:"int",value:Io("",i.value)}:i}functio
|
|
|
368
368
|
:host([appearance='icon']) {
|
|
369
369
|
background: ${Pi};
|
|
370
370
|
border-radius: ${oo};
|
|
371
|
-
color: ${
|
|
371
|
+
color: ${R};
|
|
372
372
|
}
|
|
373
373
|
:host([appearance='icon']:hover) {
|
|
374
374
|
background: ${_i};
|
|
@@ -394,13 +394,13 @@ function ze(i){return i.type==="int"?{type:"int",value:Io("",i.value)}:i}functio
|
|
|
394
394
|
${hn}
|
|
395
395
|
${pn}
|
|
396
396
|
${fn}
|
|
397
|
-
`;var He=class extends j{connectedCallback(){if(super.connectedCallback(),!this.appearance){let t=this.getAttribute("appearance");this.appearance=t}}attributeChangedCallback(t,e,r){t==="appearance"&&r==="icon"&&(this.getAttribute("aria-label")||(this.ariaLabel="Icon Button")),t==="aria-label"&&(this.ariaLabel=r),t==="disabled"&&(this.disabled=r!==null)}};go([u],He.prototype,"appearance",void 0);var
|
|
397
|
+
`;var He=class extends j{connectedCallback(){if(super.connectedCallback(),!this.appearance){let t=this.getAttribute("appearance");this.appearance=t}}attributeChangedCallback(t,e,r){t==="appearance"&&r==="icon"&&(this.getAttribute("aria-label")||(this.ariaLabel="Icon Button")),t==="aria-label"&&(this.ariaLabel=r),t==="disabled"&&(this.disabled=r!==null)}};go([u],He.prototype,"appearance",void 0);var Mi=He.compose({baseName:"button",template:Mr,styles:vo,shadowOptions:{delegatesFocus:!0}});var yo=(i,t)=>T`
|
|
398
398
|
${V("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: ${
|
|
403
|
+
font-size: ${M};
|
|
404
404
|
line-height: ${B};
|
|
405
405
|
}
|
|
406
406
|
.control {
|
|
@@ -409,14 +409,14 @@ function ze(i){return i.type==="int"?{type:"int",value:Io("",i.value)}:i}functio
|
|
|
409
409
|
height: calc(${g} * 4px + 2px);
|
|
410
410
|
box-sizing: border-box;
|
|
411
411
|
border-radius: calc(${ho} * 1px);
|
|
412
|
-
border: calc(${w} * 1px) solid ${
|
|
412
|
+
border: calc(${w} * 1px) solid ${Ri};
|
|
413
413
|
background: ${Ve};
|
|
414
414
|
outline: none;
|
|
415
415
|
cursor: pointer;
|
|
416
416
|
}
|
|
417
417
|
.label {
|
|
418
418
|
font-family: ${Q};
|
|
419
|
-
color: ${
|
|
419
|
+
color: ${R};
|
|
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: ${R};
|
|
433
433
|
opacity: 0;
|
|
434
434
|
pointer-events: none;
|
|
435
435
|
}
|
|
436
436
|
.indeterminate-indicator {
|
|
437
437
|
border-radius: 2px;
|
|
438
|
-
background: ${
|
|
438
|
+
background: ${R};
|
|
439
439
|
position: absolute;
|
|
440
440
|
top: 50%;
|
|
441
441
|
left: 50%;
|
|
@@ -446,7 +446,7 @@ function ze(i){return i.type==="int"?{type:"int",value:Io("",i.value)}:i}functio
|
|
|
446
446
|
}
|
|
447
447
|
:host(:enabled) .control:hover {
|
|
448
448
|
background: ${Ve};
|
|
449
|
-
border-color: ${
|
|
449
|
+
border-color: ${Ri};
|
|
450
450
|
}
|
|
451
451
|
:host(:enabled) .control:active {
|
|
452
452
|
background: ${Ve};
|
|
@@ -491,7 +491,7 @@ function ze(i){return i.type==="int"?{type:"int",value:Io("",i.value)}:i}functio
|
|
|
491
491
|
background: ${ue};
|
|
492
492
|
border-radius: calc(${mt} * 1px);
|
|
493
493
|
box-sizing: border-box;
|
|
494
|
-
color: ${
|
|
494
|
+
color: ${R};
|
|
495
495
|
contain: contents;
|
|
496
496
|
font-family: ${Q};
|
|
497
497
|
height: calc(${Gt} * 1px);
|
|
@@ -509,7 +509,7 @@ function ze(i){return i.type==="int"?{type:"int",value:Io("",i.value)}:i}functio
|
|
|
509
509
|
cursor: pointer;
|
|
510
510
|
display: flex;
|
|
511
511
|
font-family: inherit;
|
|
512
|
-
font-size: ${
|
|
512
|
+
font-size: ${M};
|
|
513
513
|
line-height: ${B};
|
|
514
514
|
min-height: 100%;
|
|
515
515
|
padding: 2px 6px 2px 8px;
|
|
@@ -555,7 +555,7 @@ function ze(i){return i.type==="int"?{type:"int",value:Io("",i.value)}:i}functio
|
|
|
555
555
|
}
|
|
556
556
|
:host([disabled]:hover) {
|
|
557
557
|
background: ${ue};
|
|
558
|
-
color: ${
|
|
558
|
+
color: ${R};
|
|
559
559
|
fill: currentcolor;
|
|
560
560
|
}
|
|
561
561
|
:host(:not([disabled])) .control:active {
|
|
@@ -642,10 +642,10 @@ function ze(i){return i.type==="int"?{type:"int",value:Io("",i.value)}:i}functio
|
|
|
642
642
|
border-radius: ${Wt};
|
|
643
643
|
border: calc(${w} * 1px) solid transparent;
|
|
644
644
|
box-sizing: border-box;
|
|
645
|
-
color: ${
|
|
645
|
+
color: ${R};
|
|
646
646
|
cursor: pointer;
|
|
647
647
|
fill: currentcolor;
|
|
648
|
-
font-size: ${
|
|
648
|
+
font-size: ${M};
|
|
649
649
|
line-height: ${B};
|
|
650
650
|
margin: 0;
|
|
651
651
|
outline: none;
|
|
@@ -658,7 +658,7 @@ function ze(i){return i.type==="int"?{type:"int",value:Io("",i.value)}:i}functio
|
|
|
658
658
|
:host(:${N}) {
|
|
659
659
|
border-color: ${P};
|
|
660
660
|
background: ${bt};
|
|
661
|
-
color: ${
|
|
661
|
+
color: ${R};
|
|
662
662
|
}
|
|
663
663
|
:host([aria-selected='true']) {
|
|
664
664
|
background: ${bt};
|
|
@@ -676,7 +676,7 @@ function ze(i){return i.type==="int"?{type:"int",value:Io("",i.value)}:i}functio
|
|
|
676
676
|
}
|
|
677
677
|
:host(:not([aria-selected='true']):active) {
|
|
678
678
|
background: ${bt};
|
|
679
|
-
color: ${
|
|
679
|
+
color: ${R};
|
|
680
680
|
}
|
|
681
681
|
:host([disabled]) {
|
|
682
682
|
cursor: ${J};
|
|
@@ -695,9 +695,9 @@ function ze(i){return i.type==="int"?{type:"int",value:Io("",i.value)}:i}functio
|
|
|
695
695
|
${V("grid")} :host {
|
|
696
696
|
box-sizing: border-box;
|
|
697
697
|
font-family: ${Q};
|
|
698
|
-
font-size: ${
|
|
698
|
+
font-size: ${M};
|
|
699
699
|
line-height: ${B};
|
|
700
|
-
color: ${
|
|
700
|
+
color: ${R};
|
|
701
701
|
grid-template-columns: auto 1fr auto;
|
|
702
702
|
grid-template-rows: auto 1fr;
|
|
703
703
|
overflow-x: auto;
|
|
@@ -740,7 +740,7 @@ function ze(i){return i.type==="int"?{type:"int",value:Io("",i.value)}:i}functio
|
|
|
740
740
|
${V("inline-flex")} :host {
|
|
741
741
|
box-sizing: border-box;
|
|
742
742
|
font-family: ${Q};
|
|
743
|
-
font-size: ${
|
|
743
|
+
font-size: ${M};
|
|
744
744
|
line-height: ${B};
|
|
745
745
|
height: calc(${g} * 7px);
|
|
746
746
|
padding: calc(${g} * 1px) 0;
|
|
@@ -792,11 +792,11 @@ function ze(i){return i.type==="int"?{type:"int",value:Io("",i.value)}:i}functio
|
|
|
792
792
|
background-color: transparent;
|
|
793
793
|
border: solid calc(${w} * 1px) transparent;
|
|
794
794
|
box-sizing: border-box;
|
|
795
|
-
font-size: ${
|
|
795
|
+
font-size: ${M};
|
|
796
796
|
line-height: ${B};
|
|
797
797
|
padding: 10px calc((${g} + 2) * 1px);
|
|
798
798
|
}
|
|
799
|
-
`;var zi=class extends G{connectedCallback(){super.connectedCallback(),this.orientation&&(this.orientation=
|
|
799
|
+
`;var zi=class extends G{connectedCallback(){super.connectedCallback(),this.orientation&&(this.orientation=Me.horizontal),this.getAttribute("aria-label")||this.setAttribute("aria-label","Panels")}},Wi=zi.compose({baseName:"panels",template:Xr,styles:ko}),qi=class extends de{connectedCallback(){super.connectedCallback(),this.disabled&&(this.disabled=!1),this.textContent&&this.setAttribute("aria-label",this.textContent)}},Gi=qi.compose({baseName:"panel-tab",template:Qr,styles:So}),Ui=class extends Re{},Qi=Ui.compose({baseName:"panel-view",template:Gr,styles:Co});var $o=(i,t)=>T`
|
|
800
800
|
${V("inline-block")} :host {
|
|
801
801
|
font-family: ${Q};
|
|
802
802
|
outline: none;
|
|
@@ -826,7 +826,7 @@ 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: ${
|
|
829
|
+
font-size: ${M};
|
|
830
830
|
line-height: ${B};
|
|
831
831
|
}
|
|
832
832
|
.control:hover,
|
|
@@ -837,9 +837,9 @@ function ze(i){return i.type==="int"?{type:"int",value:Io("",i.value)}:i}functio
|
|
|
837
837
|
}
|
|
838
838
|
.label {
|
|
839
839
|
display: block;
|
|
840
|
-
color: ${
|
|
840
|
+
color: ${R};
|
|
841
841
|
cursor: pointer;
|
|
842
|
-
font-size: ${
|
|
842
|
+
font-size: ${M};
|
|
843
843
|
line-height: ${B};
|
|
844
844
|
margin-bottom: 2px;
|
|
845
845
|
}
|
|
@@ -887,7 +887,7 @@ function ze(i){return i.type==="int"?{type:"int",value:Io("",i.value)}:i}functio
|
|
|
887
887
|
:host([disabled]) .control {
|
|
888
888
|
border-color: ${Ft};
|
|
889
889
|
}
|
|
890
|
-
`;var Xi=class extends L{connectedCallback(){super.connectedCallback(),this.textContent?this.setAttribute("aria-label",this.textContent):this.setAttribute("aria-label","Text field")}},Yi=Xi.compose({baseName:"text-field",template:Yr,styles:$o,shadowOptions:{delegatesFocus:!0}});Jr().register(
|
|
890
|
+
`;var Xi=class extends L{connectedCallback(){super.connectedCallback(),this.textContent?this.setAttribute("aria-label",this.textContent):this.setAttribute("aria-label","Text field")}},Yi=Xi.compose({baseName:"text-field",template:Yr,styles:$o,shadowOptions:{delegatesFocus:!0}});Jr().register(Mi(),Gi(),Qi(),Wi(),Ni(),ji(),Li(),Yi());var mn=acquireVsCodeApi();function Xt(i,t){mn.postMessage({type:i,body:t})}var bn=["startup","runtime-global","runtime-per-user"],yt,gn={version:document.getElementById("version")},vt={setting_bool:document.getElementById("setting-bool"),setting_number:document.getElementById("setting-number"),setting_string:document.getElementById("setting-string"),setting_color:document.getElementById("setting-color"),setting_add:document.getElementById("setting-add")};window.addEventListener("change",i=>{let t=i.target;if(t.classList.contains("setting-value")){let e=t.closest("tbody").id,r=t.closest("tr").id;switch(t.localName){case"vscode-text-field":{let o=yt[e][r];switch(o.type){case"int":try{o.value=BigInt.asIntN(64,BigInt(t.value))}catch{t.value=o.value.toString();return}break;case"number":o.value=Number(t.value),t.value=o.value.toString();break;case"string":o.value=t.value;break;case"color":t.classList.contains("setting-a-value")&&(o.value.a=Number(t.value),o.value.a=Math.max(0,Math.min(1,o.value.a)),t.value=o.value.a.toString());break}Xt("edit",{scope:e,name:r,value:ze(o)});break}case"vscode-checkbox":{let o=yt[e][r];o.value=t.checked,Xt("edit",{scope:e,name:r,value:o});break}case"input":if(t.classList.contains("setting-color-value")){let o=yt[e][r],n=t.value.match(/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i);o.value.r=parseInt(n[1],16)/255,o.value.g=parseInt(n[2],16)/255,o.value.b=parseInt(n[3],16)/255,Xt("edit",{scope:e,name:r,value:o});break}}}});window.addEventListener("click",i=>{let e=i.target.closest("vscode-button");if(e){let o=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}yt[o][s.value]=d,n.before(To(s.value,d)),Xt("edit",{scope:o,name:s.value,value:ze(d)}),s.value=""}else if(e.classList.contains("setting-delete")){let n=e.closest("tr"),s=n.id;n.remove(),delete yt[o][s],Xt("edit",{scope:o,name:s,value:{type:"none"}})}}});function To(i,t){let e;switch(t.type){case"bool":{e=vt.setting_bool.content.cloneNode(!0);let r=e.querySelector("tr"),o=e.querySelector(".setting-name"),n=e.querySelector(".setting-value");r.id=i,o.append(i),n.checked=t.value;break}case"int":case"number":{e=vt.setting_number.content.cloneNode(!0);let r=e.querySelector("tr"),o=e.querySelector(".setting-name"),n=e.querySelector(".setting-value");r.id=i,o.append(i),n.value=t.value.toString();break}case"string":{e=vt.setting_string.content.cloneNode(!0);let r=e.querySelector("tr"),o=e.querySelector(".setting-name"),n=e.querySelector(".setting-value");r.id=i,o.append(i),n.value=t.value;break}case"color":{e=vt.setting_color.content.cloneNode(!0);let r=e.querySelector("tr"),o=e.querySelector(".setting-name"),n=e.querySelector(".setting-color-value"),s=e.querySelector(".setting-a-value");r.id=i,o.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 r=e;yt=JSON.parse(r.settings,Zi),gn.version.innerText=r.version;let o=vt.setting_add.content.querySelector(".setting-add-type");o.children[3].hidden=!r.saves_ints;for(let n in vt){let s=vt[n];s.content.querySelectorAll("vscode-text-field").forEach(a=>a.disabled=r.editable),s.content.querySelectorAll("vscode-checkbox").forEach(a=>a.disabled=r.editable),s.content.querySelectorAll("vscode-dropdown").forEach(a=>a.disabled=r.editable),s.content.querySelectorAll("vscode-button").forEach(a=>a.disabled=r.editable)}for(let n of bn){let s=document.getElementById(n);s.replaceChildren();for(let a in yt[n]){let d=yt[n][a];s.append(To(a,d))}if(r.editable){let a=vt.setting_add.content.cloneNode(!0);s.append(a)}}break}});Xt("ready",{});
|
|
891
891
|
/*! Bundled license information:
|
|
892
892
|
|
|
893
893
|
tslib/tslib.es6.js:
|