diff --git a/src/commands/documaticPreviewPanel.ts b/src/commands/documaticPreviewPanel.ts index 7fde4d79..6db7f6f0 100644 --- a/src/commands/documaticPreviewPanel.ts +++ b/src/commands/documaticPreviewPanel.ts @@ -115,9 +115,6 @@ export class DocumaticPreviewPanel { * Set the static html for the webview. */ private setWebviewHtml(webviewFolderUri: vscode.Uri) { - // Get the path to the @vscode/webview-ui-toolkit minimized js - const toolkitUri = this._panel.webview.asWebviewUri(vscode.Uri.joinPath(webviewFolderUri, "toolkit-1.2.1.min.js")); - // Set the webview's html this._panel.webview.html = ` @@ -125,7 +122,9 @@ export class DocumaticPreviewPanel { - +

diff --git a/src/commands/restDebugPanel.ts b/src/commands/restDebugPanel.ts index 234e6079..e8e6a510 100644 --- a/src/commands/restDebugPanel.ts +++ b/src/commands/restDebugPanel.ts @@ -150,9 +150,6 @@ export class RESTDebugPanel { api.config.pathPrefix }`; - // Get the path to the @vscode/webview-ui-toolkit minimized js - const toolkitUri = this._panel.webview.asWebviewUri(vscode.Uri.joinPath(webviewFolderUri, "toolkit-1.2.1.min.js")); - // Set the webview's content this._panel.webview.html = ` @@ -160,7 +157,9 @@ export class RESTDebugPanel { - + ${RESTDebugPanel._viewTitle}

${RESTDebugPanel._viewTitle}

-
-

- Use the tabs below to specify the REST request method, path, headers, query parameters and body. - Click the 'Start Debugging' button to send the REST request and start the debugging session. -

- - METHOD & PATH - HEADERS - QUERY PARAMETERS - BODY - + +

Use the tabs below to specify the REST request method, path, headers, query parameters and body.

+

Click the Start Debugging button to send the REST request and start the debugging session.

+ + + METHOD & PATH + HEADERS + QUERY PARAMETERS + BODY +

Select a method for this request, then select the web application to use from the dropdown and enter the rest of the path in the input field - next to the dropdown. The connection information of the server definition + next to the dropdown. +

+

+ The connection information of the server definition is shown for clarity but it cannot be edited.

- - GET - POST - PUT - PATCH - DELETE - HEAD - OPTIONS + + GET + POST + PUT + PATCH + DELETE + HEAD + OPTIONS - +
- +
- +
-
- + +
-

- Enter your HTTP headers below, one per line, using the format 'HEADER: value'. - If no 'Authorization' header is present, the username and password of the server connection will be used. - If you provide a body, the 'Content-Type' header will be set automatically. - To disable a header, add a hash (#) to the start of that line. -

- +

Enter your HTTP headers below, one per line, using the format 'HEADER: value'.

+

If no 'Authorization' header is present, the username and password of the server connection will be used.

+

If you provide a body, the 'Content-Type' header will be set automatically.

+

To disable a header, add a hash (#) to the start of that line.

+
-
- + +
-

- Enter your query parameters below, one per line, using the format 'param=1'. - To disable a query parameter, add a hash (#) to the start of that line. -

- +

Enter your query parameters below, one per line, using the format 'param=value'.

+

To disable a query parameter, add a hash (#) to the start of that line.

+
-
- + +
-

- To provide a request body, select the type of the body content - and enter the content in the text box that appears. -

- - No Body - JSON - Text - XML - HTML +

To provide a request body, select the type of the body content and enter the content in the text box that appears.

+ + No Body + JSON + Text + XML + HTML - +
-
-
+ +
- Start Debugging + Start Debugging `; diff --git a/webview/elements-1.6.3.js b/webview/elements-1.6.3.js new file mode 100644 index 00000000..a889a295 --- /dev/null +++ b/webview/elements-1.6.3.js @@ -0,0 +1,2687 @@ +const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,s=Symbol(),i=new WeakMap;let o=class{constructor(t,e,i){if(this._$cssResult$=!0,i!==s)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const s=this.t;if(e&&void 0===t){const e=void 0!==s&&1===s.length;e&&(t=i.get(s)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),e&&i.set(s,t))}return t}toString(){return this.cssText}};const r=(t,...e)=>{const i=1===t.length?t[0]:e.reduce(((e,s,i)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+t[i+1]),t[0]);return new o(i,t,s)},n=e?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return(t=>new o("string"==typeof t?t:t+"",void 0,s))(e)})(t):t,{is:l,defineProperty:a,getOwnPropertyDescriptor:c,getOwnPropertyNames:h,getOwnPropertySymbols:d,getPrototypeOf:u}=Object,v=globalThis,p=v.trustedTypes,b=p?p.emptyScript:"",f=v.reactiveElementPolyfillSupport,g=(t,e)=>t,m={toAttribute(t,e){switch(e){case Boolean:t=t?b:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let s=t;switch(e){case Boolean:s=null!==t;break;case Number:s=null===t?null:Number(t);break;case Object:case Array:try{s=JSON.parse(t)}catch(t){s=null}}return s}},x=(t,e)=>!l(t,e),y={attribute:!0,type:String,converter:m,reflect:!1,hasChanged:x};Symbol.metadata??=Symbol("metadata"),v.litPropertyMetadata??=new WeakMap;class w extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=y){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){const s=Symbol(),i=this.getPropertyDescriptor(t,s,e);void 0!==i&&a(this.prototype,t,i)}}static getPropertyDescriptor(t,e,s){const{get:i,set:o}=c(this.prototype,t)??{get(){return this[e]},set(t){this[e]=t}};return{get(){return i?.call(this)},set(e){const r=i?.call(this);o.call(this,e),this.requestUpdate(t,r,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??y}static _$Ei(){if(this.hasOwnProperty(g("elementProperties")))return;const t=u(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(g("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(g("properties"))){const t=this.properties,e=[...h(t),...d(t)];for(const s of e)this.createProperty(s,t[s])}const t=this[Symbol.metadata];if(null!==t){const e=litPropertyMetadata.get(t);if(void 0!==e)for(const[t,s]of e)this.elementProperties.set(t,s)}this._$Eh=new Map;for(const[t,e]of this.elementProperties){const s=this._$Eu(t,e);void 0!==s&&this._$Eh.set(s,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const s=new Set(t.flat(1/0).reverse());for(const t of s)e.unshift(n(t))}else void 0!==t&&e.push(n(t));return e}static _$Eu(t,e){const s=e.attribute;return!1===s?void 0:"string"==typeof s?s:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)))}addController(t){(this._$EO??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const s of e.keys())this.hasOwnProperty(s)&&(t.set(s,this[s]),delete this[s]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const s=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return((s,i)=>{if(e)s.adoptedStyleSheets=i.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const e of i){const i=document.createElement("style"),o=t.litNonce;void 0!==o&&i.setAttribute("nonce",o),i.textContent=e.cssText,s.appendChild(i)}})(s,this.constructor.elementStyles),s}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach((t=>t.hostConnected?.()))}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach((t=>t.hostDisconnected?.()))}attributeChangedCallback(t,e,s){this._$AK(t,s)}_$EC(t,e){const s=this.constructor.elementProperties.get(t),i=this.constructor._$Eu(t,s);if(void 0!==i&&!0===s.reflect){const o=(void 0!==s.converter?.toAttribute?s.converter:m).toAttribute(e,s.type);this._$Em=t,null==o?this.removeAttribute(i):this.setAttribute(i,o),this._$Em=null}}_$AK(t,e){const s=this.constructor,i=s._$Eh.get(t);if(void 0!==i&&this._$Em!==i){const t=s.getPropertyOptions(i),o="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:m;this._$Em=i,this[i]=o.fromAttribute(e,t.type),this._$Em=null}}requestUpdate(t,e,s){if(void 0!==t){if(s??=this.constructor.getPropertyOptions(t),!(s.hasChanged??x)(this[t],e))return;this.P(t,e,s)}!1===this.isUpdatePending&&(this._$ES=this._$ET())}P(t,e,s){this._$AL.has(t)||this._$AL.set(t,e),!0===s.reflect&&this._$Em!==t&&(this._$Ej??=new Set).add(t)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,e]of this._$Ep)this[t]=e;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[e,s]of t)!0!==s.wrapped||this._$AL.has(e)||void 0===this[e]||this.P(e,this[e],s)}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$EO?.forEach((t=>t.hostUpdate?.())),this.update(e)):this._$EU()}catch(e){throw t=!1,this._$EU(),e}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$EO?.forEach((t=>t.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Ej&&=this._$Ej.forEach((t=>this._$EC(t,this[t]))),this._$EU()}updated(t){}firstUpdated(t){}}w.elementStyles=[],w.shadowRootOptions={mode:"open"},w[g("elementProperties")]=new Map,w[g("finalized")]=new Map,f?.({ReactiveElement:w}),(v.reactiveElementVersions??=[]).push("2.0.4");const k=globalThis,$=k.trustedTypes,_=$?$.createPolicy("lit-html",{createHTML:t=>t}):void 0,C="$lit$",B=`lit$${Math.random().toFixed(9).slice(2)}$`,S="?"+B,z=`<${S}>`,A=document,O=()=>A.createComment(""),E=t=>null===t||"object"!=typeof t&&"function"!=typeof t,j=Array.isArray,I=t=>j(t)||"function"==typeof t?.[Symbol.iterator],M="[ \t\n\f\r]",F=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,D=/-->/g,N=/>/g,P=RegExp(`>|${M}(?:([^\\s"'>=/]+)(${M}*=${M}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),T=/'/g,V=/"/g,R=/^(?:script|style|textarea|title)$/i,L=(t=>(e,...s)=>({_$litType$:t,strings:e,values:s}))(1),U=Symbol.for("lit-noChange"),H=Symbol.for("lit-nothing"),q=new WeakMap,K=A.createTreeWalker(A,129);function W(t,e){if(!j(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==_?_.createHTML(e):e}const G=(t,e)=>{const s=t.length-1,i=[];let o,r=2===e?"":3===e?"":"",n=F;for(let e=0;e"===a[0]?(n=o??F,c=-1):void 0===a[1]?c=-2:(c=n.lastIndex-a[2].length,l=a[1],n=void 0===a[3]?P:'"'===a[3]?V:T):n===V||n===T?n=P:n===D||n===N?n=F:(n=P,o=void 0);const d=n===P&&t[e+1].startsWith("/>")?" ":"";r+=n===F?s+z:c>=0?(i.push(l),s.slice(0,c)+C+s.slice(c)+B+d):s+B+(-2===c?e:d)}return[W(t,r+(t[s]||"")+(2===e?"":3===e?"":"")),i]};class J{constructor({strings:t,_$litType$:e},s){let i;this.parts=[];let o=0,r=0;const n=t.length-1,l=this.parts,[a,c]=G(t,e);if(this.el=J.createElement(a,s),K.currentNode=this.el.content,2===e||3===e){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(i=K.nextNode())&&l.length0){i.textContent=$?$.emptyScript:"";for(let s=0;s2||""!==s[0]||""!==s[1]?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=H}_$AI(t,e=this,s,i){const o=this.strings;let r=!1;if(void 0===o)t=Y(this,t,e,0),r=!E(t)||t!==this._$AH&&t!==U,r&&(this._$AH=t);else{const i=t;let n,l;for(t=o[0],n=0;n{const i=s?.renderBefore??e;let o=i._$litPart$;if(void 0===o){const t=s?.renderBefore??null;i._$litPart$=o=new Z(e.insertBefore(O(),t),t,void 0,s??{})}return o._$AI(t),o})(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this.o?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this.o?.setConnected(!1)}render(){return U}}nt._$litElement$=!0,nt.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:nt});const lt=globalThis.litElementPolyfillSupport;lt?.({LitElement:nt}),(globalThis.litElementVersions??=[]).push("4.1.0");const at=t=>(e,s)=>{void 0!==s?s.addInitializer((()=>{customElements.define(t,e)})):customElements.define(t,e)},ct={attribute:!0,type:String,converter:m,reflect:!1,hasChanged:x},ht=(t=ct,e,s)=>{const{kind:i,metadata:o}=s;let r=globalThis.litPropertyMetadata.get(o);if(void 0===r&&globalThis.litPropertyMetadata.set(o,r=new Map),r.set(s.name,t),"accessor"===i){const{name:i}=s;return{set(s){const o=e.get.call(this);e.set.call(this,s),this.requestUpdate(i,o,t)},init(e){return void 0!==e&&this.P(i,void 0,t),e}}}if("setter"===i){const{name:i}=s;return function(s){const o=this[i];e.call(this,s),this.requestUpdate(i,o,t)}}throw Error("Unsupported decorator location: "+i)};function dt(t){return(e,s)=>"object"==typeof s?ht(t,e,s):((t,e,s)=>{const i=e.hasOwnProperty(s);return e.constructor.createProperty(s,i?{...t,wrapped:!0}:t),i?Object.getOwnPropertyDescriptor(e,s):void 0})(t,e,s)}function ut(t){return dt({...t,state:!0,attribute:!1})}const vt=(t,e,s)=>(s.configurable=!0,s.enumerable=!0,s);function pt(t,e){return(e,s,i)=>vt(0,0,{get(){return(e=>e.renderRoot?.querySelector(t)??null)(this)}})}let bt;function ft(t){return(e,s)=>{const{slot:i,selector:o}=t??{},r="slot"+(i?`[name=${i}]`:":not([name])");return vt(0,0,{get(){const e=this.renderRoot?.querySelector(r),s=e?.assignedElements(t)??[];return void 0===o?s:s.filter((t=>t.matches(o)))}})}}class gt extends nt{constructor(){super(...arguments),this._version="1.6.3-pre.1"}get version(){return this._version}}var mt=r` + :host([hidden]) { + display: none; + } + + :host([disabled]), + :host(:disabled) { + cursor: not-allowed; + opacity: 0.4; + pointer-events: none; + } +`;const xt=[mt,r` + :host { + background-color: var(--vscode-badge-background); + border: 1px solid var(--vscode-contrastBorder, transparent); + border-radius: 2px; + box-sizing: border-box; + color: var(--vscode-badge-foreground); + display: inline-block; + font-family: var(--vscode-font-family); + font-size: 11px; + font-weight: 400; + line-height: 14px; + min-width: 18px; + padding: 2px 3px; + text-align: center; + white-space: nowrap; + } + + :host([variant='counter']) { + border-radius: 11px; + box-sizing: border-box; + height: 18px; + line-height: 1; + padding: 3px 5px; + } + + :host([variant='activity-bar-counter']) { + background-color: var(--vscode-activityBarBadge-background); + border-radius: 20px; + color: var(--vscode-activityBarBadge-foreground); + font-size: 9px; + font-weight: 600; + line-height: 16px; + padding: 0 4px; + } + `];var yt=function(t,e,s,i){for(var o,r=arguments.length,n=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i,l=t.length-1;l>=0;l--)(o=t[l])&&(n=(r<3?o(n):r>3?o(e,s,n):o(e,s))||n);return r>3&&n&&Object.defineProperty(e,s,n),n};let wt=class extends gt{constructor(){super(...arguments),this.variant="default"}render(){return L` `}};wt.styles=xt,yt([dt()],wt.prototype,"variant",void 0),wt=yt([at("vscode-badge")],wt);const kt=1,$t=2,_t=t=>(...e)=>({_$litDirective$:t,values:e});class Ct{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,s){this.t=t,this._$AM=e,this.i=s}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}const Bt=_t(class extends Ct{constructor(t){if(super(t),t.type!==kt||"class"!==t.name||t.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((e=>t[e])).join(" ")+" "}update(t,[e]){if(void 0===this.st){this.st=new Set,void 0!==t.strings&&(this.nt=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!this.nt?.has(t)&&this.st.add(t);return this.render(e)}const s=t.element.classList;for(const t of this.st)t in e||(s.remove(t),this.st.delete(t));for(const t in e){const i=!!e[t];i===this.st.has(t)||this.nt?.has(t)||(i?(s.add(t),this.st.add(t)):(s.remove(t),this.st.delete(t)))}return U}}),St="important",zt=" !"+St,At=_t(class extends Ct{constructor(t){if(super(t),t.type!==kt||"style"!==t.name||t.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(t){return Object.keys(t).reduce(((e,s)=>{const i=t[s];return null==i?e:e+`${s=s.includes("-")?s:s.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${i};`}),"")}update(t,[e]){const{style:s}=t.element;if(void 0===this.ft)return this.ft=new Set(Object.keys(e)),this.render(e);for(const t of this.ft)null==e[t]&&(this.ft.delete(t),t.includes("-")?s.removeProperty(t):s[t]=null);for(const t in e){const i=e[t];if(null!=i){this.ft.add(t);const e="string"==typeof i&&i.endsWith(zt);t.includes("-")||e?s.setProperty(t,e?i.slice(0,-11):i,e?St:""):s[t]=i}}return U}}),Ot=t=>t??H,Et=[mt,r` + :host { + color: var(--vscode-icon-foreground); + display: inline-block; + } + + .codicon[class*='codicon-'] { + display: block; + } + + .icon, + .button { + background-color: transparent; + display: block; + padding: 0; + } + + .button { + border-color: transparent; + border-style: solid; + border-width: 1px; + border-radius: 5px; + color: currentColor; + cursor: pointer; + padding: 2px; + } + + .button:hover { + background-color: var(--vscode-toolbar-hoverBackground); + } + + .button:active { + background-color: var(--vscode-toolbar-activeBackground); + } + + .button:focus { + outline: none; + } + + .button:focus-visible { + border-color: var(--vscode-focusBorder); + } + + @keyframes icon-spin { + 100% { + transform: rotate(360deg); + } + } + + .spin { + animation-name: icon-spin; + animation-timing-function: linear; + animation-iteration-count: infinite; + } + `];var jt,It=function(t,e,s,i){for(var o,r=arguments.length,n=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i,l=t.length-1;l>=0;l--)(o=t[l])&&(n=(r<3?o(n):r>3?o(e,s,n):o(e,s))||n);return r>3&&n&&Object.defineProperty(e,s,n),n};let Mt=jt=class extends gt{constructor(){super(...arguments),this.label="",this.name="",this.size=16,this.spin=!1,this.spinDuration=1.5,this.actionIcon=!1,this._onButtonClick=t=>{this.dispatchEvent(new CustomEvent("vsc-click",{detail:{originalEvent:t}}))}}connectedCallback(){super.connectedCallback();const{href:t,nonce:e}=this._getStylesheetConfig();jt.stylesheetHref=t,jt.nonce=e}_getStylesheetConfig(){const t=document.getElementById("vscode-codicon-stylesheet"),e=t?.getAttribute("href")||void 0;return{nonce:t?.getAttribute("nonce")||void 0,href:e}}render(){const{stylesheetHref:t,nonce:e}=jt,s=L``,i=this.actionIcon?L` `:L` `;return L` + + ${i} + `}};Mt.styles=Et,Mt.stylesheetHref="",Mt.nonce="",It([dt()],Mt.prototype,"label",void 0),It([dt({type:String})],Mt.prototype,"name",void 0),It([dt({type:Number})],Mt.prototype,"size",void 0),It([dt({type:Boolean,reflect:!0})],Mt.prototype,"spin",void 0),It([dt({type:Number,attribute:"spin-duration"})],Mt.prototype,"spinDuration",void 0),It([dt({type:Boolean,reflect:!0,attribute:"action-icon"})],Mt.prototype,"actionIcon",void 0),Mt=jt=It([at("vscode-icon")],Mt);const Ft=[mt,r` + :host { + background-color: var(--vscode-button-background); + border-color: var(--vscode-button-border, var(--vscode-button-background)); + border-style: solid; + border-radius: 2px; + border-width: 1px; + color: var(--vscode-button-foreground); + cursor: pointer; + display: inline-block; + font-family: var(--vscode-font-family); + font-size: var(--vscode-font-size); + font-weight: var(--vscode-font-weight); + line-height: 22px; + overflow: hidden; + padding: 1px 13px; + user-select: none; + white-space: nowrap; + } + + :host([secondary]) { + color: var(--vscode-button-secondaryForeground); + background-color: var(--vscode-button-secondaryBackground); + border-color: var(--vscode-button-border, var(--vscode-button-secondaryBackground)); + } + + :host([disabled]) { + cursor: default; + opacity: 0.4; + pointer-events: none; + } + + :host(:hover) { + background-color: var(--vscode-button-hoverBackground); + } + + :host([disabled]:hover) { + background-color: var(--vscode-button-background); + } + + :host([secondary]:hover) { + background-color: var(--vscode-button-secondaryHoverBackground); + } + + :host([secondary][disabled]:hover) { + background-color: var(--vscode-button-secondaryBackground); + } + + :host(:focus), + :host(:active) { + outline: none; + } + + :host(:focus) { + background-color: var(--vscode-button-hoverBackground); + outline: 1px solid var(--vscode-focusBorder); + outline-offset: 2px; + } + + :host([disabled]:focus) { + background-color: var(--vscode-button-background); + outline: 0; + } + + :host([secondary]:focus) { + background-color: var(--vscode-button-secondaryHoverBackground); + } + + :host([secondary][disabled]:focus) { + background-color: var(--vscode-button-secondaryBackground); + } + + ::slotted(*) { + display: inline-block; + margin-left: 4px; + margin-right: 4px; + } + + ::slotted(*:first-child) { + margin-left: 0; + } + + ::slotted(vscode-icon) { + color: inherit; + } + + .wrapper { + align-items: center; + box-sizing: border-box; + display: flex; + justify-content: center; + position: relative; + width: 100%; + } + + slot { + align-items: center; + display: flex; + height: 100%; + } + + .icon { + color: inherit; + display: block; + margin-right: 3px; + } + + .icon-after { + color: inherit; + display: block; + margin-left: 3px; + } + `];var Dt=function(t,e,s,i){for(var o,r=arguments.length,n=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i,l=t.length-1;l>=0;l--)(o=t[l])&&(n=(r<3?o(n):r>3?o(e,s,n):o(e,s))||n);return r>3&&n&&Object.defineProperty(e,s,n),n};let Nt=class extends gt{get form(){return this._internals.form}constructor(){super(),this.autofocus=!1,this.tabIndex=0,this.secondary=!1,this.role="button",this.disabled=!1,this.icon="",this.iconSpin=!1,this.iconAfter="",this.iconAfterSpin=!1,this.focused=!1,this.name=void 0,this.type="button",this.value="",this._prevTabindex=0,this._handleFocus=()=>{this.focused=!0},this._handleBlur=()=>{this.focused=!1},this.addEventListener("keydown",this._handleKeyDown.bind(this)),this.addEventListener("click",this._handleClick.bind(this)),this._internals=this.attachInternals()}connectedCallback(){super.connectedCallback(),this.autofocus&&(this.tabIndex<0&&(this.tabIndex=0),this.updateComplete.then((()=>{this.focus(),this.requestUpdate()}))),this.addEventListener("focus",this._handleFocus),this.addEventListener("blur",this._handleBlur)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focus",this._handleFocus),this.removeEventListener("blur",this._handleBlur)}update(t){super.update(t),t.has("value")&&this._internals.setFormValue(this.value),t.has("disabled")&&(this.disabled?(this._prevTabindex=this.tabIndex,this.tabIndex=-1):this.tabIndex=this._prevTabindex)}_executeAction(){"submit"===this.type&&this._internals.form&&this._internals.form.requestSubmit(),"reset"===this.type&&this._internals.form&&this._internals.form.reset()}_handleKeyDown(t){"Enter"!==t.key&&" "!==t.key||this.hasAttribute("disabled")||(this.dispatchEvent(new CustomEvent("vsc-click",{detail:{originalEvent:new MouseEvent("click")}})),this._executeAction())}_handleClick(t){this.hasAttribute("disabled")||(this.dispatchEvent(new CustomEvent("vsc-click",{detail:{originalEvent:t}})),this._executeAction())}render(){const t=""!==this.icon,e=""!==this.iconAfter,s={wrapper:!0,"has-icon-before":t,"has-icon-after":e},i=t?L``:H,o=e?L``:H;return L` + + ${i} + + ${o} + + `}};Nt.styles=Ft,Nt.formAssociated=!0,Dt([dt({type:Boolean,reflect:!0})],Nt.prototype,"autofocus",void 0),Dt([dt({type:Number,reflect:!0})],Nt.prototype,"tabIndex",void 0),Dt([dt({type:Boolean,reflect:!0})],Nt.prototype,"secondary",void 0),Dt([dt({reflect:!0})],Nt.prototype,"role",void 0),Dt([dt({type:Boolean,reflect:!0})],Nt.prototype,"disabled",void 0),Dt([dt()],Nt.prototype,"icon",void 0),Dt([dt({type:Boolean,reflect:!0,attribute:"icon-spin"})],Nt.prototype,"iconSpin",void 0),Dt([dt({type:Number,reflect:!0,attribute:"icon-spin-duration"})],Nt.prototype,"iconSpinDuration",void 0),Dt([dt({attribute:"icon-after"})],Nt.prototype,"iconAfter",void 0),Dt([dt({type:Boolean,reflect:!0,attribute:"icon-after-spin"})],Nt.prototype,"iconAfterSpin",void 0),Dt([dt({type:Number,reflect:!0,attribute:"icon-after-spin-duration"})],Nt.prototype,"iconAfterSpinDuration",void 0),Dt([dt({type:Boolean,reflect:!0})],Nt.prototype,"focused",void 0),Dt([dt({type:String,reflect:!0})],Nt.prototype,"name",void 0),Dt([dt({reflect:!0})],Nt.prototype,"type",void 0),Dt([dt()],Nt.prototype,"value",void 0),Nt=Dt([at("vscode-button")],Nt);const Pt="__vscode-webview-elements_custom-properties__";let Tt;const Vt=()=>{Rt(Lt())},Rt=t=>{const e=document.getElementById(Pt);if(e)e.innerHTML=t;else{const e=document.createElement("style");e.setAttribute("id",Pt),e.innerHTML=t,document.querySelector("head")?.appendChild(e)}},Lt=()=>{const t=document.documentElement.style.getPropertyValue("--vscode-foreground");let e="";var s,i;return t?/rgba\([0-9, .]+\)/g.test(t)?e=t:(s=t.trim(),i=.9,e=`rgba(${parseInt(s.substring(1,3),16)}, ${parseInt(s.substring(3,5),16)}, ${parseInt(s.substring(5,7),16)}, ${i})`):e="rgba(0, 0, 0, 0.9)",`:root{--vsc-foreground-translucent: ${e};}`};function Ut(){Tt||(Tt=new MutationObserver(Vt),Tt.observe(document.documentElement,{attributes:!0,attributeFilter:["style"]})),Rt(Lt())}var Ht=function(t,e,s,i){for(var o,r=arguments.length,n=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i,l=t.length-1;l>=0;l--)(o=t[l])&&(n=(r<3?o(n):r>3?o(e,s,n):o(e,s))||n);return r>3&&n&&Object.defineProperty(e,s,n),n};class qt extends gt{constructor(){super(),this.focused=!1,this._prevTabindex=0,this._handleFocus=()=>{this.focused=!0},this._handleBlur=()=>{this.focused=!1},Ut()}connectedCallback(){super.connectedCallback(),this.addEventListener("focus",this._handleFocus),this.addEventListener("blur",this._handleBlur)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focus",this._handleFocus),this.removeEventListener("blur",this._handleBlur)}attributeChangedCallback(t,e,s){super.attributeChangedCallback(t,e,s),"disabled"===t&&this.hasAttribute("disabled")?(this._prevTabindex=this.tabIndex,this.tabIndex=-1):"disabled"!==t||this.hasAttribute("disabled")||(this.tabIndex=this._prevTabindex)}}Ht([dt({type:Boolean,reflect:!0})],qt.prototype,"focused",void 0);var Kt=function(t,e,s,i){for(var o,r=arguments.length,n=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i,l=t.length-1;l>=0;l--)(o=t[l])&&(n=(r<3?o(n):r>3?o(e,s,n):o(e,s))||n);return r>3&&n&&Object.defineProperty(e,s,n),n};const Wt=t=>{class e extends t{constructor(){super(...arguments),this._label="",this._slottedText=""}set label(t){this._label=t,""===this._slottedText&&this.setAttribute("aria-label",t)}get label(){return this._label}_handleSlotChange(){this._slottedText=this.textContent?this.textContent.trim():"",""!==this._slottedText&&this.setAttribute("aria-label",this._slottedText)}_renderLabelAttribute(){return""===this._slottedText?L`${this._label}`:L`${H}`}}return Kt([dt()],e.prototype,"label",null),e};var Gt=[r` + :host { + color: var(--vsc-foreground-translucent); + display: inline-block; + font-family: var(--vscode-font-family); + font-size: var(--vscode-font-size); + font-weight: var(--vscode-font-weight); + line-height: 18px; + } + + :host(:focus) { + outline: none; + } + + :host([disabled]) { + opacity: 0.4; + } + + .wrapper { + cursor: pointer; + display: block; + font-size: var(--vscode-font-size); + margin-bottom: 4px; + margin-top: 4px; + min-height: 18px; + position: relative; + user-select: none; + } + + :host([disabled]) .wrapper { + cursor: default; + } + + input { + position: absolute; + height: 1px; + left: 9px; + margin: 0; + top: 17px; + width: 1px; + overflow: hidden; + clip: rect(1px, 1px, 1px, 1px); + white-space: nowrap; + } + + .icon { + align-items: center; + background-color: var(--vscode-settings-checkboxBackground); + background-size: 16px; + border: 1px solid var(--vscode-settings-checkboxBorder); + box-sizing: border-box; + color: var(--vscode-settings-checkboxForeground); + display: flex; + height: 18px; + justify-content: center; + left: 0; + margin-left: 0; + margin-right: 9px; + padding: 0; + pointer-events: none; + position: absolute; + top: 0; + width: 18px; + } + + .icon.before-empty-label { + margin-right: 0; + } + + .label { + cursor: pointer; + display: block; + min-height: 18px; + min-width: 18px; + } + + .label-inner { + display: block; + padding-left: 27px; + } + + .label-inner.empty { + padding-left: 0; + } + + :host([disabled]) .label { + cursor: default; + } + `],Jt=r` + ::slotted(*) { + margin: 0; + } + + ::slotted(a) { + color: var(--vscode-textLink-foreground); + text-decoration: none; + } + + ::slotted(code) { + color: var(--vscode-textPreformat-foreground); + line-height: 15px; + } + + ::slotted(.error) { + color: var(--vscode-errorForeground); + } +`;const Yt=[mt,Gt,r` + :host(:invalid) .icon, + :host([invalid]) .icon { + background-color: var(--vscode-inputValidation-errorBackground); + border-color: var(--vscode-inputValidation-errorBorder, #be1100); + } + + .icon { + border-radius: 3px; + } + + .indeterminate-icon { + background-color: currentColor; + position: absolute; + height: 1px; + width: 12px; + } + + :host(:focus):host(:not([disabled])) .icon { + outline: 1px solid var(--focus-border); + outline-offset: -1px; + } + `,Jt];var Xt=function(t,e,s,i){for(var o,r=arguments.length,n=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i,l=t.length-1;l>=0;l--)(o=t[l])&&(n=(r<3?o(n):r>3?o(e,s,n):o(e,s))||n);return r>3&&n&&Object.defineProperty(e,s,n),n};let Zt=class extends(Wt(qt)){get form(){return this._internals.form}get type(){return"checkbox"}get validity(){return this._internals.validity}get validationMessage(){return this._internals.validationMessage}get willValidate(){return this._internals.willValidate}checkValidity(){return this._internals.checkValidity()}reportValidity(){return this._internals.reportValidity()}constructor(){super(),this.autofocus=!1,this.checked=!1,this.defaultChecked=!1,this.invalid=!1,this.name=void 0,this.role="checkbox",this.value="",this.disabled=!1,this.indeterminate=!1,this.required=!1,this._handleClick=()=>{this.disabled||this._toggleState()},this._handleKeyDown=t=>{this.disabled||"Enter"!==t.key&&" "!==t.key||(t.preventDefault()," "===t.key&&this._toggleState(),"Enter"===t.key&&this._internals.form?.requestSubmit())},this._internals=this.attachInternals()}connectedCallback(){super.connectedCallback(),this.addEventListener("keydown",this._handleKeyDown),this.addEventListener("click",this._handleClick),this.updateComplete.then((()=>{this._manageRequired(),this._setActualFormValue()}))}disconnectedCallback(){this.removeEventListener("keydown",this._handleKeyDown),this.removeEventListener("click",this._handleClick)}update(t){super.update(t),t.has("checked")&&(this.ariaChecked=this.checked?"true":"false")}formResetCallback(){this.checked=this.defaultChecked}formStateRestoreCallback(t,e){t&&(this.checked=!0)}_setActualFormValue(){let t="";t=this.checked?this.value?this.value:"on":null,this._internals.setFormValue(t)}_toggleState(){this.checked=!this.checked,this.indeterminate=!1,this._setActualFormValue(),this._manageRequired(),this.dispatchEvent(new Event("change")),this.dispatchEvent(new CustomEvent("vsc-change",{detail:{checked:this.checked,label:this.label,value:this.value},bubbles:!0,composed:!0}))}_manageRequired(){!this.checked&&this.required?this._internals.setValidity({valueMissing:!0},"Please check this box if you want to proceed.",this._inputEl):this._internals.setValidity({})}render(){const t=Bt({icon:!0,checked:this.checked,indeterminate:this.indeterminate}),e=Bt({"label-inner":!0}),s=L` + + `,i=this.checked&&!this.indeterminate?s:H,o=this.indeterminate?L``:H;return L` +
+ +
${o}${i}
+ +
+ `}};Zt.styles=Yt,Zt.formAssociated=!0,Zt.shadowRootOptions={...nt.shadowRootOptions,delegatesFocus:!0},Xt([dt({type:Boolean,reflect:!0})],Zt.prototype,"autofocus",void 0),Xt([dt({type:Boolean,reflect:!0})],Zt.prototype,"checked",void 0),Xt([dt({type:Boolean,reflect:!0,attribute:"default-checked"})],Zt.prototype,"defaultChecked",void 0),Xt([dt({type:Boolean,reflect:!0})],Zt.prototype,"invalid",void 0),Xt([dt({reflect:!0})],Zt.prototype,"name",void 0),Xt([dt({reflect:!0})],Zt.prototype,"role",void 0),Xt([dt()],Zt.prototype,"value",void 0),Xt([dt({type:Boolean,reflect:!0})],Zt.prototype,"disabled",void 0),Xt([dt({type:Boolean,reflect:!0})],Zt.prototype,"indeterminate",void 0),Xt([dt({type:Boolean,reflect:!0})],Zt.prototype,"required",void 0),Xt([pt("#input")],Zt.prototype,"_inputEl",void 0),Zt=Xt([at("vscode-checkbox")],Zt);const Qt=[mt,r` + :host { + display: block; + } + + .wrapper { + display: flex; + flex-wrap: wrap; + } + + :host([variant='vertical']) .wrapper { + display: block; + } + + ::slotted(vscode-checkbox) { + margin-right: 20px; + } + + ::slotted(vscode-checkbox:last-child) { + margin-right: 0; + } + + :host([variant='vertical']) ::slotted(vscode-checkbox) { + display: block; + margin-bottom: 15px; + } + + :host([variant='vertical']) ::slotted(vscode-checkbox:last-child) { + margin-bottom: 0; + } + `,Jt];var te=function(t,e,s,i){for(var o,r=arguments.length,n=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i,l=t.length-1;l>=0;l--)(o=t[l])&&(n=(r<3?o(n):r>3?o(e,s,n):o(e,s))||n);return r>3&&n&&Object.defineProperty(e,s,n),n};let ee=class extends gt{constructor(){super(...arguments),this.role="group",this.variant="horizontal"}render(){return L` +
+ +
+ `}};ee.styles=Qt,te([dt({reflect:!0})],ee.prototype,"role",void 0),te([dt({reflect:!0})],ee.prototype,"variant",void 0),ee=te([at("vscode-checkbox-group")],ee);const se=[mt,r` + .collapsible { + background-color: var(--vscode-sideBar-background); + } + + .collapsible-header { + align-items: center; + background-color: var(--vscode-sideBarSectionHeader-background); + cursor: pointer; + display: flex; + height: 22px; + line-height: 22px; + user-select: none; + } + + .collapsible-header:focus { + opacity: 1; + outline-offset: -1px; + outline-style: solid; + outline-width: 1px; + outline-color: var(--vscode-focusBorder); + } + + .title { + color: var(--vscode-sideBarTitle-foreground); + display: block; + font-family: var(--vscode-font-family); + font-size: 11px; + font-weight: 700; + margin: 0; + overflow: hidden; + text-overflow: ellipsis; + text-transform: uppercase; + white-space: nowrap; + } + + .title .description { + font-weight: 400; + margin-left: 10px; + text-transform: none; + opacity: .6; + } + + .header-icon { + color: var(--vscode-icon-foreground); + display: block; + flex-shrink: 0; + margin: 0 3px; + } + + .collapsible.open .header-icon { + transform: rotate(90deg); + } + + .header-slots { + align-items: center; + display: flex; + height: 22px; + margin-left: auto; + margin-right: 4px; + } + + .actions { + display: none; + } + + .collapsible.open .actions { + display: block; + } + + .header-slots slot { + display: flex; + max-height: 22px; + overflow: hidden; + } + + .header-slots slot::slotted(div) { + align-items: center; + display: flex; + } + + .collapsible-body { + display: none; + overflow: hidden; + } + + .collapsible.open .collapsible-body { + display: block; + } + `];var ie=function(t,e,s,i){for(var o,r=arguments.length,n=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i,l=t.length-1;l>=0;l--)(o=t[l])&&(n=(r<3?o(n):r>3?o(e,s,n):o(e,s))||n);return r>3&&n&&Object.defineProperty(e,s,n),n};let oe=class extends gt{constructor(){super(...arguments),this.title="",this.description="",this.open=!1}_onHeaderClick(){this.open=!this.open}_onHeaderKeyDown(t){"Enter"===t.key&&(this.open=!this.open)}render(){const t=Bt({collapsible:!0,open:this.open}),e=L` + + `,s=this.description?L`${this.description}`:H;return L` +
+
+ ${e} +

${this.title}${s}

+
+
+
+
+
+
+ +
+
+ `}};oe.styles=se,ie([dt({type:String})],oe.prototype,"title",void 0),ie([dt()],oe.prototype,"description",void 0),ie([dt({type:Boolean,reflect:!0})],oe.prototype,"open",void 0),oe=ie([at("vscode-collapsible")],oe);const re=[mt,r` + :host { + display: block; + font-family: var(--vscode-font-family); + font-size: var(--vscode-font-size); + font-weight: var(--vscode-font-weight); + line-height: 1.4em; + outline: none; + position: relative; + } + + .context-menu-item { + background-color: var(--vscode-menu-background); + color: var(--vscode-menu-foreground); + display: flex; + user-select: none; + white-space: nowrap; + } + + .ruler { + border-bottom: 1px solid var(--vscode-menu-separatorBackground); + display: block; + margin: 0 0 4px; + padding-top: 4px; + width: 100%; + } + + .context-menu-item a { + align-items: center; + border-color: transparent; + border-radius: 3px; + border-style: solid; + border-width: 1px; + box-sizing: border-box; + color: var(--vscode-menu-foreground); + cursor: default; + display: flex; + flex: 1 1 auto; + height: 2em; + margin-left: 4px; + margin-right: 4px; + outline: none; + position: relative; + text-decoration: inherit; + } + + :host([selected]) .context-menu-item a { + background-color: var(--vscode-menu-selectionBackground); + border-color: var(--vscode-menu-selectionBorder, var(--vscode-menu-selectionBackground)); + color: var(--vscode-menu-selectionForeground); + } + + .label { + background: none; + display: flex; + flex: 1 1 auto; + font-size: 12px; + line-height: 1; + padding: 0 22px; + text-decoration: none; + } + + .keybinding { + display: block; + flex: 2 1 auto; + line-height: 1; + padding: 0 22px; + text-align: right; + } + `];var ne=function(t,e,s,i){for(var o,r=arguments.length,n=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i,l=t.length-1;l>=0;l--)(o=t[l])&&(n=(r<3?o(n):r>3?o(e,s,n):o(e,s))||n);return r>3&&n&&Object.defineProperty(e,s,n),n};let le=class extends gt{constructor(){super(...arguments),this.label="",this.keybinding="",this.value="",this.separator=!1,this.tabindex=0}onItemClick(){this.dispatchEvent(new CustomEvent("vsc-click",{detail:{label:this.label,keybinding:this.keybinding,value:this.value||this.label,separator:this.separator,tabindex:this.tabindex},bubbles:!0,composed:!0}))}render(){return L` + ${this.separator?L` +
+ +
+ `:L` + + `} + `}};le.styles=re,ne([dt({type:String})],le.prototype,"label",void 0),ne([dt({type:String})],le.prototype,"keybinding",void 0),ne([dt({type:String})],le.prototype,"value",void 0),ne([dt({type:Boolean,reflect:!0})],le.prototype,"separator",void 0),ne([dt({type:Number})],le.prototype,"tabindex",void 0),le=ne([at("vscode-context-menu-item")],le);const ae=[mt,r` + :host { + display: block; + font-family: var(--vscode-font-family); + font-size: var(--vscode-font-size); + font-weight: var(--vscode-font-weight); + line-height: 1.4em; + position: relative; + } + + .context-menu { + background-color: var(--vscode-menu-background); + border-color: var(--vscode-menu-border); + border-radius: 5px; + border-style: solid; + border-width: 1px; + box-shadow: 0 2px 8px var(--vscode-widget-shadow); + color: var(--vscode-menu-foreground); + padding: 4px 0; + white-space: nowrap; + } + + .context-menu:focus { + outline: 0; + } + `];var ce=function(t,e,s,i){for(var o,r=arguments.length,n=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i,l=t.length-1;l>=0;l--)(o=t[l])&&(n=(r<3?o(n):r>3?o(e,s,n):o(e,s))||n);return r>3&&n&&Object.defineProperty(e,s,n),n};let he=class extends gt{set data(t){this._data=t;const e=[];t.forEach(((t,s)=>{t.separator||e.push(s)})),this._clickableItemIndexes=e}get data(){return this._data}set show(t){this._show=t,this._selectedClickableItemIndex=-1,t&&this.updateComplete.then((()=>{this._wrapperEl&&this._wrapperEl.focus(),requestAnimationFrame((()=>{document.addEventListener("click",this._onClickOutsideBound,{once:!0})}))}))}get show(){return this._show}constructor(){super(),this.tabIndex=0,this._selectedClickableItemIndex=-1,this._show=!1,this._data=[],this._clickableItemIndexes=[],this._onClickOutsideBound=this._onClickOutside.bind(this),this.addEventListener("keydown",this._onKeyDown)}_onClickOutside(t){t.composedPath().includes(this)||(this._show=!1)}_onKeyDown(t){const{key:e}=t;switch("ArrowUp"!==e&&"ArrowDown"!==e&&"Escape"!==e&&"Enter"!==e||t.preventDefault(),e){case"ArrowUp":this._handleArrowUp();break;case"ArrowDown":this._handleArrowDown();break;case"Escape":this._handleEscape();break;case"Enter":this._handleEnter()}}_handleArrowUp(){0===this._selectedClickableItemIndex?this._selectedClickableItemIndex=this._clickableItemIndexes.length-1:this._selectedClickableItemIndex-=1}_handleArrowDown(){this._selectedClickableItemIndex+1t===s));-1!==i&&(this._selectedClickableItemIndex=i)}_onItemMouseOut(){this._selectedClickableItemIndex=-1}render(){if(!this._show)return L`${H}`;const t=this._clickableItemIndexes[this._selectedClickableItemIndex];return L` +
+ ${this.data?this.data.map((({label:e="",keybinding:s="",value:i="",separator:o=!1,tabindex:r=0},n)=>L` + + `)):L``} +
+ `}};he.styles=ae,ce([dt({type:Array,attribute:!1})],he.prototype,"data",null),ce([dt({type:Boolean,reflect:!0})],he.prototype,"show",null),ce([dt({type:Number,reflect:!0})],he.prototype,"tabIndex",void 0),ce([ut()],he.prototype,"_selectedClickableItemIndex",void 0),ce([ut()],he.prototype,"_show",void 0),ce([pt(".context-menu")],he.prototype,"_wrapperEl",void 0),he=ce([at("vscode-context-menu")],he);const de=[mt,r` + :host { + background-color: var(--vscode-widget-border); + display: block; + height: 1px; + margin-bottom: 10px; + margin-top: 10px; + } + `];var ue=function(t,e,s,i){for(var o,r=arguments.length,n=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i,l=t.length-1;l>=0;l--)(o=t[l])&&(n=(r<3?o(n):r>3?o(e,s,n):o(e,s))||n);return r>3&&n&&Object.defineProperty(e,s,n),n};let ve=class extends gt{constructor(){super(...arguments),this.role="separator"}render(){return L``}};ve.styles=de,ue([dt({reflect:!0})],ve.prototype,"role",void 0),ve=ue([at("vscode-divider")],ve);const pe=[mt,r` + :host { + display: block; + max-width: 727px; + } + `];var be,fe=function(t,e,s,i){for(var o,r=arguments.length,n=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i,l=t.length-1;l>=0;l--)(o=t[l])&&(n=(r<3?o(n):r>3?o(e,s,n):o(e,s))||n);return r>3&&n&&Object.defineProperty(e,s,n),n};!function(t){t.HORIZONTAL="horizontal",t.VERTICAL="vertical"}(be||(be={}));const ge=t=>"vscode-checkbox"===t.tagName.toLocaleLowerCase(),me=t=>"vscode-radio"===t.tagName.toLocaleLowerCase();let xe=class extends gt{constructor(){super(...arguments),this.breakpoint=490,this._responsive=!1,this._firstUpdateComplete=!1,this._resizeObserverCallbackBound=this._resizeObserverCallback.bind(this)}set responsive(t){this._responsive=t,this._firstUpdateComplete&&(t?this._activateResponsiveLayout():this._deactivateResizeObserver())}get responsive(){return this._responsive}get data(){return this._collectFormData()}_collectFormData(){const t=["vscode-textfield","vscode-textarea","vscode-single-select","vscode-multi-select","vscode-checkbox","vscode-radio"].join(","),e=this.querySelectorAll(t),s={};return e.forEach((t=>{if(!t.hasAttribute("name"))return;const e=t.getAttribute("name");e&&(ge(t)&&t.checked?s[e]=Array.isArray(s[e])?[...s[e],t.value]:[t.value]:"vscode-multi-select"===t.tagName.toLocaleLowerCase()?s[e]=t.value:ge(t)&&!t.checked?s[e]=Array.isArray(s[e])?s[e]:[]:me(t)&&t.checked||(t=>["vscode-textfield","vscode-textarea"].includes(t.tagName.toLocaleLowerCase()))(t)||(t=>"vscode-single-select"===t.tagName.toLocaleLowerCase())(t)?s[e]=t.value:me(t)&&!t.checked&&(s[e]=s[e]?s[e]:""))})),s}_toggleCompactLayout(t){this._assignedFormGroups.forEach((e=>{e.dataset.originalVariant||(e.dataset.originalVariant=e.variant);const s=e.dataset.originalVariant;t===be.VERTICAL&&"horizontal"===s?e.variant="vertical":e.variant=s;e.querySelectorAll("vscode-checkbox-group, vscode-radio-group").forEach((e=>{e.dataset.originalVariant||(e.dataset.originalVariant=e.variant);const s=e.dataset.originalVariant;t===be.HORIZONTAL&&s===be.HORIZONTAL?e.variant="horizontal":e.variant="vertical"}))}))}_resizeObserverCallback(t){let e=0;for(const s of t)e=s.contentRect.width;const s=e + + + `}};xe.styles=pe,fe([dt({type:Boolean,reflect:!0})],xe.prototype,"responsive",null),fe([dt({type:Number})],xe.prototype,"breakpoint",void 0),fe([dt({type:Object})],xe.prototype,"data",null),fe([pt(".wrapper")],xe.prototype,"_wrapperElement",void 0),fe([ft({selector:"vscode-form-group"})],xe.prototype,"_assignedFormGroups",void 0),xe=fe([at("vscode-form-container")],xe);const ye=[mt,r` + :host { + --label-right-margin: 14px; + --label-width: 150px; + + display: block; + margin: 15px 0; + } + + :host([variant='settings-group']) { + margin: 0; + padding: 12px 14px 18px; + max-width: 727px; + } + + .wrapper { + display: flex; + flex-wrap: wrap; + } + + :host([variant='vertical']) .wrapper, + :host([variant='settings-group']) .wrapper { + display: block; + } + + :host([variant='horizontal']) ::slotted(vscode-checkbox-group), + :host([variant='horizontal']) ::slotted(vscode-radio-group) { + width: calc(100% - calc(var(--label-width) + var(--label-right-margin))); + } + + :host([variant='horizontal']) ::slotted(vscode-label) { + margin-right: var(--label-right-margin); + text-align: right; + width: var(--label-width); + } + + :host([variant='settings-group']) ::slotted(vscode-label) { + height: 18px; + line-height: 18px; + margin-bottom: 4px; + margin-right: 0; + padding: 0; + } + + ::slotted(vscode-form-helper) { + margin-left: calc(var(--label-width) + var(--label-right-margin)); + } + + :host([variant='vertical']) ::slotted(vscode-form-helper), + :host([variant='settings-group']) ::slotted(vscode-form-helper) { + display: block; + margin-left: 0; + } + + :host([variant='settings-group']) ::slotted(vscode-form-helper) { + margin-bottom: 0; + margin-top: 0; + } + + :host([variant='vertical']) ::slotted(vscode-label), + :host([variant='settings-group']) ::slotted(vscode-label) { + display: block; + margin-left: 0; + text-align: left; + } + + :host([variant='settings-group']) ::slotted(vscode-inputbox), + :host([variant='settings-group']) ::slotted(vscode-textfield), + :host([variant='settings-group']) ::slotted(vscode-textarea), + :host([variant='settings-group']) ::slotted(vscode-single-select), + :host([variant='settings-group']) ::slotted(vscode-multi-select) { + margin-top: 9px; + } + + ::slotted(vscode-button:first-child) { + margin-left: calc(var(--label-width) + var(--label-right-margin)); + } + + :host([variant='vertical']) ::slotted(vscode-button) { + margin-left: 0; + } + + ::slotted(vscode-button) { + margin-right: 4px; + } + `];var we=function(t,e,s,i){for(var o,r=arguments.length,n=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i,l=t.length-1;l>=0;l--)(o=t[l])&&(n=(r<3?o(n):r>3?o(e,s,n):o(e,s))||n);return r>3&&n&&Object.defineProperty(e,s,n),n};let ke=class extends gt{constructor(){super(...arguments),this.variant="horizontal"}render(){return L` +
+ +
+ `}};ke.styles=ye,we([dt({reflect:!0})],ke.prototype,"variant",void 0),ke=we([at("vscode-form-group")],ke);const $e=[mt,r` + :host { + color: var(--vsc-foreground-translucent); + display: block; + margin-bottom: 4px; + margin-top: 4px; + max-width: 720px; + } + + :host([vertical]) { + margin-left: 0; + } + `,Jt];var _e=function(t,e,s,i){for(var o,r=arguments.length,n=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i,l=t.length-1;l>=0;l--)(o=t[l])&&(n=(r<3?o(n):r>3?o(e,s,n):o(e,s))||n);return r>3&&n&&Object.defineProperty(e,s,n),n};let Ce=class extends gt{constructor(){super(),Ut()}render(){return L``}};Ce.styles=$e,Ce=_e([at("vscode-form-helper")],Ce);let Be=0;const Se=(t="")=>(Be++,`${t}${Be}`),ze=[mt,r` + :host { + display: block; + } + + .wrapper { + display: flex; + flex-wrap: wrap; + } + + :host([variant='vertical']) .wrapper { + display: block; + } + + ::slotted(vscode-radio) { + margin-right: 20px; + } + + ::slotted(vscode-radio:last-child) { + margin-right: 0; + } + + :host([variant='vertical']) ::slotted(vscode-radio) { + display: block; + margin-bottom: 15px; + } + + :host([variant='vertical']) ::slotted(vscode-radio:last-child) { + margin-bottom: 0; + } + `];var Ae=function(t,e,s,i){for(var o,r=arguments.length,n=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i,l=t.length-1;l>=0;l--)(o=t[l])&&(n=(r<3?o(n):r>3?o(e,s,n):o(e,s))||n);return r>3&&n&&Object.defineProperty(e,s,n),n};let Oe=class extends gt{constructor(){super(...arguments),this.variant="horizontal",this.role="radiogroup",this._focusedRadio=-1,this._checkedRadio=-1,this._firstContentLoaded=!1,this._onKeyDownBound=this._onKeyDown.bind(this)}connectedCallback(){super.connectedCallback(),this.addEventListener("keydown",this._onKeyDownBound)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("keydown",this._onKeyDownBound)}_uncheckPreviousChecked(t,e){-1!==t&&(this._radios[t].checked=!1),-1!==e&&(this._radios[e].tabIndex=-1)}_afterCheck(){this._focusedRadio=this._checkedRadio,this._radios[this._checkedRadio].checked=!0,this._radios[this._checkedRadio].tabIndex=0,this._radios[this._checkedRadio].focus()}_checkPrev(){const t=this._radios.findIndex((t=>t.checked)),e=this._radios.findIndex((t=>t.focused)),s=-1!==e?e:t;this._uncheckPreviousChecked(t,e),this._checkedRadio=-1===s?this._radios.length-1:s-1>=0?s-1:this._radios.length-1,this._afterCheck()}_checkNext(){const t=this._radios.findIndex((t=>t.checked)),e=this._radios.findIndex((t=>t.focused)),s=-1!==e?e:t;this._uncheckPreviousChecked(t,e),-1===s?this._checkedRadio=0:s+1e===t.target));-1!==e&&(-1!==this._focusedRadio&&(this._radios[this._focusedRadio].tabIndex=-1),-1!==this._checkedRadio&&this._checkedRadio!==e&&(this._radios[this._checkedRadio].checked=!1),this._focusedRadio=e,this._checkedRadio=e,this._radios[e].tabIndex=0)}_onSlotChange(){if(!this._firstContentLoaded){const t=this._radios.findIndex((t=>t.autofocus));t>-1&&(this._focusedRadio=t),this._firstContentLoaded=!0}this._radios.forEach(((t,e)=>{this._focusedRadio>-1?t.tabIndex=e===this._focusedRadio?0:-1:t.tabIndex=0===e?0:-1}))}render(){return L` +
+ +
+ `}};Oe.styles=ze,Ae([dt({reflect:!0})],Oe.prototype,"variant",void 0),Ae([dt({reflect:!0})],Oe.prototype,"role",void 0),Ae([ft({selector:"vscode-radio"})],Oe.prototype,"_radios",void 0),Ae([ut()],Oe.prototype,"_focusedRadio",void 0),Ae([ut()],Oe.prototype,"_checkedRadio",void 0),Oe=Ae([at("vscode-radio-group")],Oe);const Ee=[mt,r` + :host { + display: inline-block; + height: 40px; + position: relative; + width: 320px; + } + + :host([cols]) { + width: auto; + } + + :host([rows]) { + height: auto; + } + + .shadow { + box-shadow: var(--vscode-scrollbar-shadow) 0 6px 6px -6px inset; + display: none; + inset: 0 0 auto 0; + height: 6px; + pointer-events: none; + position: absolute; + width: 100%; + } + + .shadow.visible { + display: block; + } + + textarea { + background-color: var(--vscode-settings-textInputBackground); + border-color: var(--vscode-settings-textInputBorder, var(--vscode-settings-textInputBackground)); + border-radius: 2px; + border-style: solid; + border-width: 1px; + box-sizing: border-box; + color: var(--vscode-settings-textInputForeground); + display: block; + font-family: var(--vscode-font-family); + font-size: var(--vscode-font-size); + font-weight: var(--vscode-font-weight); + height: 100%; + width: 100%; + } + + :host([cols]) textarea { + width: auto; + } + + :host([rows]) textarea { + height: auto; + } + + :host([invalid]) textarea, + :host(:invalid) textarea { + background-color: var(--vscode-inputValidation-errorBackground); + border-color: var(--vscode-inputValidation-errorBorder, #be1100); + } + + textarea.monospace { + background-color: var(--vscode-editor-background); + color: var(--vscode-editor-foreground); + font-family: var(--vscode-editor-font-family); + font-size: var(--vscode-editor-font-size); + font-weight: var(--vscode-editor-font-weight); + } + + .textarea.monospace::placeholder { + color: var(--vscode-editor-inlineValuesForeground); + } + + textarea.cursor-pointer { + cursor: pointer; + } + + textarea:focus { + border-color: var(--vscode-focusBorder); + outline: none; + } + + textarea::placeholder { + color: var(--vscode-input-placeholderForeground); + opacity: 1; + } + + textarea::-webkit-scrollbar-track { + background-color: transparent; + } + + textarea::-webkit-scrollbar { + width: 14px; + } + + textarea::-webkit-scrollbar-thumb { + background-color: transparent; + } + + textarea:hover::-webkit-scrollbar-thumb { + background-color: var(--vscode-scrollbarSlider-background); + } + + textarea::-webkit-scrollbar-thumb:hover { + background-color: var(--vscode-scrollbarSlider-hoverBackground); + } + + textarea::-webkit-scrollbar-thumb:active { + background-color: var(--vscode-scrollbarSlider-activeBackground); + } + + textarea::-webkit-scrollbar-corner { + background-color: transparent; + } + + textarea::-webkit-resizer { + background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAHCAYAAADEUlfTAAAAAXNSR0IB2cksfwAAAAlwSFlzAAALEwAACxMBAJqcGAAAACJJREFUeJxjYMAOZuIQZ5j5//9/rJJESczEKYGsG6cEXgAAsEEefMxkua4AAAAASUVORK5CYII='); + background-repeat: no-repeat; + background-position: right bottom; + } + `];var je=function(t,e,s,i){for(var o,r=arguments.length,n=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i,l=t.length-1;l>=0;l--)(o=t[l])&&(n=(r<3?o(n):r>3?o(e,s,n):o(e,s))||n);return r>3&&n&&Object.defineProperty(e,s,n),n};let Ie=class extends gt{set value(t){this._value=t,this._internals.setFormValue(t)}get value(){return this._value}get wrappedElement(){return this._textareaEl}get form(){return this._internals.form}get type(){return"textarea"}get validity(){return this._internals.validity}get validationMessage(){return this._internals.validationMessage}get willValidate(){return this._internals.willValidate}set minlength(t){this.minLength=t}get minlength(){return this.minLength}set maxlength(t){this.maxLength=t}get maxlength(){return this.maxLength}constructor(){super(),this.autocomplete=void 0,this.autofocus=!1,this.defaultValue="",this.disabled=!1,this.invalid=!1,this.label="",this.maxLength=void 0,this.minLength=void 0,this.rows=void 0,this.cols=void 0,this.name=void 0,this.placeholder=void 0,this.readonly=!1,this.resize="none",this.required=!1,this.spellcheck=!1,this.monospace=!1,this._value="",this._textareaPointerCursor=!1,this._shadow=!1,this._internals=this.attachInternals()}connectedCallback(){super.connectedCallback(),this.updateComplete.then((()=>{this._textareaEl.checkValidity(),this._setValidityFromInput(),this._internals.setFormValue(this._textareaEl.value)}))}updated(t){const e=["maxLength","minLength","required"];for(const s of t.keys())if(e.includes(String(s))){this.updateComplete.then((()=>{this._setValidityFromInput()}));break}}formResetCallback(){this.value=this.defaultValue}formStateRestoreCallback(t,e){this.updateComplete.then((()=>{this._value=t}))}checkValidity(){return this._internals.checkValidity()}reportValidity(){return this._internals.reportValidity()}_setValidityFromInput(){this._internals.setValidity(this._textareaEl.validity,this._textareaEl.validationMessage,this._textareaEl)}_dataChanged(){this._value=this._textareaEl.value,this._internals.setFormValue(this._textareaEl.value)}_handleChange(t){this._dataChanged(),this._setValidityFromInput(),this.dispatchEvent(new Event("change")),this.dispatchEvent(new CustomEvent("vsc-change",{detail:{data:this.value,originalEvent:t}}))}_handleInput(t){this._dataChanged(),this._setValidityFromInput(),this.dispatchEvent(new CustomEvent("vsc-input",{detail:{data:t.data,originalEvent:t}}))}_handleMouseMove(t){if(this._textareaEl.clientHeight>=this._textareaEl.scrollHeight)return void(this._textareaPointerCursor=!1);const e=this._textareaEl.getBoundingClientRect(),s=t.clientX;this._textareaPointerCursor=s>=e.left+e.width-14-2}_handleScroll(){this._shadow=this._textareaEl.scrollTop>0}render(){return L` +
+ + `}};Ie.styles=Ee,Ie.formAssociated=!0,Ie.shadowRootOptions={...nt.shadowRootOptions,delegatesFocus:!0},je([dt()],Ie.prototype,"autocomplete",void 0),je([dt({type:Boolean,reflect:!0})],Ie.prototype,"autofocus",void 0),je([dt({attribute:"default-value"})],Ie.prototype,"defaultValue",void 0),je([dt({type:Boolean,reflect:!0})],Ie.prototype,"disabled",void 0),je([dt({type:Boolean,reflect:!0})],Ie.prototype,"invalid",void 0),je([dt({attribute:!1})],Ie.prototype,"label",void 0),je([dt({type:Number})],Ie.prototype,"maxLength",void 0),je([dt({type:Number})],Ie.prototype,"minLength",void 0),je([dt({type:Number})],Ie.prototype,"rows",void 0),je([dt({type:Number})],Ie.prototype,"cols",void 0),je([dt()],Ie.prototype,"name",void 0),je([dt()],Ie.prototype,"placeholder",void 0),je([dt({type:Boolean,reflect:!0})],Ie.prototype,"readonly",void 0),je([dt()],Ie.prototype,"resize",void 0),je([dt({type:Boolean,reflect:!0})],Ie.prototype,"required",void 0),je([dt({type:Boolean})],Ie.prototype,"spellcheck",void 0),je([dt({type:Boolean,reflect:!0})],Ie.prototype,"monospace",void 0),je([dt()],Ie.prototype,"value",null),je([pt("#textarea")],Ie.prototype,"_textareaEl",void 0),je([ut()],Ie.prototype,"_value",void 0),je([ut()],Ie.prototype,"_textareaPointerCursor",void 0),je([ut()],Ie.prototype,"_shadow",void 0),Ie=je([at("vscode-textarea")],Ie);const Me=[mt,r` + :host { + align-items: center; + background-color: var(--vscode-settings-textInputBackground); + border-color: var(--vscode-settings-textInputBorder, var(--vscode-settings-textInputBackground)); + border-radius: 2px; + border-style: solid; + border-width: 1px; + box-sizing: border-box; + color: var(--vscode-settings-textInputForeground); + display: inline-flex; + max-width: 100%; + position: relative; + width: 320px; + } + + :host([focused]) { + border-color: var(--vscode-focusBorder); + } + + :host([invalid]), + :host(:invalid) { + border-color: var(--vscode-inputValidation-errorBorder, #be1100); + } + + :host([invalid]) input, + :host(:invalid) input { + background-color: var(--vscode-inputValidation-errorBackground); + } + + ::slotted([slot='content-before']) { + display: block; + margin-left: 2px; + } + + ::slotted([slot='content-after']) { + display: block; + margin-right: 2px; + } + + slot[name='content-before'], + slot[name='content-after'] { + align-items: center; + display: flex; + } + + input { + background-color: var(--vscode-settings-textInputBackground); + border: 0; + box-sizing: border-box; + color: var(--vscode-settings-textInputForeground); + display: block; + font-family: var(--vscode-font-family); + font-size: var(--vscode-font-size); + font-weight: var(--vscode-font-weight); + line-height: 18px; + outline: none; + padding-bottom: 3px; + padding-left: 4px; + padding-right: 4px; + padding-top: 3px; + width: 100%; + } + + input:read-only:not([type="file"]) { + cursor: not-allowed; + } + + input::placeholder { + color: var(--vscode-input-placeholderForeground); + opacity: 1; + } + + input[type='file'] { + line-height: 24px; + padding-bottom: 0; + padding-left: 2px; + padding-top: 0; + } + + input[type='file']::file-selector-button { + background-color: var(--vscode-button-background); + border: 0; + border-radius: 2px; + color: var(--vscode-button-foreground); + cursor: pointer; + font-family: var(--vscode-font-family); + font-size: var(--vscode-font-size); + font-weight: var(--vscode-font-weight); + line-height: 20px; + padding: 0 14px; + } + + input[type='file']::file-selector-button:hover { + background-color: var(--vscode-button-hoverBackground); + } + `];var Fe=function(t,e,s,i){for(var o,r=arguments.length,n=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i,l=t.length-1;l>=0;l--)(o=t[l])&&(n=(r<3?o(n):r>3?o(e,s,n):o(e,s))||n);return r>3&&n&&Object.defineProperty(e,s,n),n};let De=class extends gt{set type(t){this._type=["color","date","datetime-local","email","file","month","number","password","search","tel","text","time","url","week"].includes(t)?t:"text"}get type(){return this._type}set value(t){"file"!==this.type&&(this._value=t,this._internals.setFormValue(t)),this.updateComplete.then((()=>{this._setValidityFromInput()}))}get value(){return this._value}set minlength(t){this.minLength=t}get minlength(){return this.minLength}set maxlength(t){this.maxLength=t}get maxlength(){return this.maxLength}get form(){return this._internals.form}get validity(){return this._internals.validity}get validationMessage(){return this._internals.validationMessage}get willValidate(){return this._internals.willValidate}checkValidity(){return this._setValidityFromInput(),this._internals.checkValidity()}reportValidity(){return this._setValidityFromInput(),this._internals.reportValidity()}get wrappedElement(){return this._inputEl}constructor(){super(),this.autocomplete=void 0,this.autofocus=!1,this.defaultValue="",this.disabled=!1,this.focused=!1,this.invalid=!1,this.label="",this.max=void 0,this.maxLength=void 0,this.min=void 0,this.minLength=void 0,this.multiple=!1,this.name=void 0,this.pattern=void 0,this.placeholder=void 0,this.readonly=!1,this.required=!1,this.step=void 0,this._value="",this._type="text",this._internals=this.attachInternals()}connectedCallback(){super.connectedCallback(),this.updateComplete.then((()=>{this._inputEl.checkValidity(),this._setValidityFromInput(),this._internals.setFormValue(this._inputEl.value)}))}attributeChangedCallback(t,e,s){super.attributeChangedCallback(t,e,s);["max","maxlength","min","minlength","pattern","required","step"].includes(t)&&this.updateComplete.then((()=>{this._setValidityFromInput()}))}formResetCallback(){this.value=this.defaultValue,this.requestUpdate()}formStateRestoreCallback(t,e){this.value=t}_dataChanged(){if(this._value=this._inputEl.value,"file"===this.type&&this._inputEl.files)for(const t of this._inputEl.files)this._internals.setFormValue(t);else this._internals.setFormValue(this._inputEl.value)}_setValidityFromInput(){this._inputEl&&this._internals.setValidity(this._inputEl.validity,this._inputEl.validationMessage,this._inputEl)}_onInput(t){this._dataChanged(),this._setValidityFromInput(),this.dispatchEvent(new CustomEvent("vsc-input",{detail:{data:t.data,originalEvent:t}}))}_onChange(t){this._dataChanged(),this._setValidityFromInput(),this.dispatchEvent(new Event("change")),this.dispatchEvent(new CustomEvent("vsc-change",{detail:{data:this.value,originalEvent:t}}))}_onFocus(){this.focused=!0}_onBlur(){this.focused=!1}_onKeyDown(t){"Enter"===t.key&&this._internals.form&&this._internals.form?.requestSubmit()}render(){return L` + + + + `}};De.styles=Me,De.formAssociated=!0,De.shadowRootOptions={...nt.shadowRootOptions,delegatesFocus:!0},Fe([dt()],De.prototype,"autocomplete",void 0),Fe([dt({type:Boolean,reflect:!0})],De.prototype,"autofocus",void 0),Fe([dt({attribute:"default-value"})],De.prototype,"defaultValue",void 0),Fe([dt({type:Boolean,reflect:!0})],De.prototype,"disabled",void 0),Fe([dt({type:Boolean,reflect:!0})],De.prototype,"focused",void 0),Fe([dt({type:Boolean,reflect:!0})],De.prototype,"invalid",void 0),Fe([dt({attribute:!1})],De.prototype,"label",void 0),Fe([dt({type:Number})],De.prototype,"max",void 0),Fe([dt({type:Number})],De.prototype,"maxLength",void 0),Fe([dt({type:Number})],De.prototype,"min",void 0),Fe([dt({type:Number})],De.prototype,"minLength",void 0),Fe([dt({type:Boolean,reflect:!0})],De.prototype,"multiple",void 0),Fe([dt({reflect:!0})],De.prototype,"name",void 0),Fe([dt()],De.prototype,"pattern",void 0),Fe([dt()],De.prototype,"placeholder",void 0),Fe([dt({type:Boolean,reflect:!0})],De.prototype,"readonly",void 0),Fe([dt({type:Boolean,reflect:!0})],De.prototype,"required",void 0),Fe([dt({type:Number})],De.prototype,"step",void 0),Fe([dt({reflect:!0})],De.prototype,"type",null),Fe([dt()],De.prototype,"value",null),Fe([pt("#input")],De.prototype,"_inputEl",void 0),Fe([ut()],De.prototype,"_value",void 0),Fe([ut()],De.prototype,"_type",void 0),De=Fe([at("vscode-textfield")],De);const Ne=[mt,r` + :host { + color: var(--vscode-foreground); + font-family: var(--vscode-font-family); + font-size: var(--vscode-font-size); + font-weight: 600; + line-height: ${1.2307692307692308}; + cursor: default; + display: block; + padding: 5px 0; + } + + .wrapper { + display: block; + } + + .wrapper.required:after { + content: ' *'; + } + + ::slotted(.normal) { + font-weight: normal; + } + + ::slotted(.lightened) { + color: var(--vscode-foreground); + opacity: 0.9; + } + `];var Pe=function(t,e,s,i){for(var o,r=arguments.length,n=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i,l=t.length-1;l>=0;l--)(o=t[l])&&(n=(r<3?o(n):r>3?o(e,s,n):o(e,s))||n);return r>3&&n&&Object.defineProperty(e,s,n),n};let Te=class extends gt{constructor(){super(...arguments),this.required=!1,this._id="",this._htmlFor="",this._connected=!1}set htmlFor(t){this._htmlFor=t,this.setAttribute("for",t),this._connected&&this._connectWithTarget()}get htmlFor(){return this._htmlFor}set id(t){this._id=t}get id(){return this._id}attributeChangedCallback(t,e,s){super.attributeChangedCallback(t,e,s)}connectedCallback(){super.connectedCallback(),this._connected=!0,""===this._id&&(this._id=Se("vscode-label-"),this.setAttribute("id",this._id)),this._connectWithTarget()}_getTarget(){let t=null;if(this._htmlFor){const e=this.getRootNode({composed:!1});e&&(t=e.querySelector(`#${this._htmlFor}`))}return t}async _connectWithTarget(){await this.updateComplete;const t=this._getTarget();(t instanceof Oe||t instanceof ee)&&t.setAttribute("aria-labelledby",this._id);let e="";this.textContent&&(e=this.textContent.trim()),(t instanceof De||t instanceof Ie)&&(t.label=e)}_handleClick(){const t=this._getTarget();t&&"focus"in t&&t.focus()}render(){return L` + + `}};Te.styles=Ne,Pe([dt({reflect:!0,attribute:"for"})],Te.prototype,"htmlFor",null),Pe([dt()],Te.prototype,"id",null),Pe([dt({type:Boolean,reflect:!0})],Te.prototype,"required",void 0),Te=Pe([at("vscode-label")],Te);const{I:Ve}=ot,Re=()=>document.createComment(""),Le=(t,e,s)=>{const i=t._$AA.parentNode,o=void 0===e?t._$AB:e._$AA;if(void 0===s){const e=i.insertBefore(Re(),o),r=i.insertBefore(Re(),o);s=new Ve(e,r,t,t.options)}else{const e=s._$AB.nextSibling,r=s._$AM,n=r!==t;if(n){let e;s._$AQ?.(t),s._$AM=t,void 0!==s._$AP&&(e=t._$AU)!==r._$AU&&s._$AP(e)}if(e!==o||n){let t=s._$AA;for(;t!==e;){const e=t.nextSibling;i.insertBefore(t,o),t=e}}}return s},Ue=(t,e,s=t)=>(t._$AI(e,s),t),He={},qe=t=>{t._$AP?.(!1,!0);let e=t._$AA;const s=t._$AB.nextSibling;for(;e!==s;){const t=e.nextSibling;e.remove(),e=t}},Ke=(t,e,s)=>{const i=new Map;for(let o=e;o<=s;o++)i.set(t[o],o);return i},We=_t(class extends Ct{constructor(t){if(super(t),t.type!==$t)throw Error("repeat() can only be used in text expressions")}dt(t,e,s){let i;void 0===s?s=e:void 0!==e&&(i=e);const o=[],r=[];let n=0;for(const e of t)o[n]=i?i(e,n):n,r[n]=s(e,n),n++;return{values:r,keys:o}}render(t,e,s){return this.dt(t,e,s).values}update(t,[e,s,i]){const o=(t=>t._$AH)(t),{values:r,keys:n}=this.dt(e,s,i);if(!Array.isArray(o))return this.ut=n,r;const l=this.ut??=[],a=[];let c,h,d=0,u=o.length-1,v=0,p=r.length-1;for(;d<=u&&v<=p;)if(null===o[d])d++;else if(null===o[u])u--;else if(l[d]===n[v])a[v]=Ue(o[d],r[v]),d++,v++;else if(l[u]===n[p])a[p]=Ue(o[u],r[p]),u--,p--;else if(l[d]===n[p])a[p]=Ue(o[d],r[p]),Le(t,a[p+1],o[d]),d++,p--;else if(l[u]===n[v])a[v]=Ue(o[u],r[v]),Le(t,o[d],o[u]),u--,v++;else if(void 0===c&&(c=Ke(n,v,p),h=Ke(l,d,u)),c.has(l[d]))if(c.has(l[u])){const e=h.get(n[v]),s=void 0!==e?o[e]:null;if(null===s){const e=Le(t,o[d]);Ue(e,r[v]),a[v]=e}else a[v]=Ue(s,r[v]),Le(t,o[d],s),o[e]=null;v++}else qe(o[u]),u--;else qe(o[d]),d++;for(;v<=p;){const e=Le(t,a[p+1]);Ue(e,r[v]),a[v++]=e}for(;d<=u;){const t=o[d++];null!==t&&qe(t)}return this.ut=n,((t,e=He)=>{t._$AH=e})(t,a),U}}),Ge=L` + + + + + +`,Je=(t,e,s)=>{const i=[];return t.forEach((t=>{let o;switch(s){case"startsWithPerTerm":o=((t,e)=>{const s={match:!1,ranges:[]},i=t.toLowerCase(),o=e.toLowerCase(),r=i.split(" ");let n=0;return r.forEach(((e,i)=>{if(i>0&&(n+=r[i-1].length+1),s.match)return;const l=e.indexOf(o),a=o.length;0===l&&(s.match=!0,s.ranges.push([n+l,Math.min(n+l+a,t.length)]))})),s})(t.label,e);break;case"startsWith":o=((t,e)=>{const s={match:!1,ranges:[]};return 0===t.toLowerCase().indexOf(e.toLowerCase())&&(s.match=!0,s.ranges=[[0,e.length]]),s})(t.label,e);break;case"contains":o=((t,e)=>{const s={match:!1,ranges:[]},i=t.toLowerCase().indexOf(e.toLowerCase());return i>-1&&(s.match=!0,s.ranges=[[i,i+e.length]]),s})(t.label,e);break;default:o=((t,e)=>{const s={match:!1,ranges:[]};let i=0,o=0;const r=e.length-1,n=t.toLowerCase(),l=e.toLowerCase();for(let t=0;t<=r;t++){if(o=n.indexOf(l[t],i),-1===o)return{match:!1,ranges:[]};s.match=!0,s.ranges.push([o,o+1]),i=o+1}return s})(t.label,e)}o.match&&i.push({...t,ranges:o.ranges})})),i},Ye=t=>{const e=[];return" "===t?(e.push(L` `),e):(0===t.indexOf(" ")&&e.push(L` `),e.push(L`${t.trimStart().trimEnd()}`),t.lastIndexOf(" ")===t.length-1&&e.push(L` `),e)},Xe=(t,e)=>{const s=[],i=e.length;return i<1?L`${t}`:(e.forEach(((o,r)=>{const n=t.substring(o[0],o[1]);0===r&&0!==o[0]&&s.push(...Ye(t.substring(0,e[0][0]))),r>0&&r${Ye(n)}`),r===i-1&&o[1]=0;l--)(o=t[l])&&(n=(r<3?o(n):r>3?o(e,s,n):o(e,s))||n);return r>3&&n&&Object.defineProperty(e,s,n),n};const Qe=22;class ts extends gt{constructor(){super(...arguments),this.ariaExpanded="false",this.combobox=!1,this.invalid=!1,this.focused=!1,this.position="below",this.tabIndex=0,this._activeIndex=-1,this._currentDescription="",this._filter="fuzzy",this._filterPattern="",this._selectedIndex=-1,this._selectedIndexes=[],this._showDropdown=!1,this._options=[],this._value="",this._values=[],this._listScrollTop=0,this._multiple=!1,this._valueOptionIndexMap={},this._isHoverForbidden=!1,this._disabled=!1,this._originalTabIndex=void 0,this._onClickOutsideBound=this._onClickOutside.bind(this),this._onMouseMoveBound=this._onMouseMove.bind(this)}set disabled(t){this._disabled=t,this.ariaDisabled=t?"true":"false",!0===t?(this._originalTabIndex=this.tabIndex,this.tabIndex=-1):(this.tabIndex=this._originalTabIndex??0,this._originalTabIndex=void 0),this.requestUpdate()}get disabled(){return this._disabled}set filter(t){["contains","fuzzy","startsWith","startsWithPerTerm"].includes(t)?this._filter=t:(this._filter="fuzzy",console.warn(`[VSCode Webview Elements] Invalid filter: "${t}", fallback to default. Valid values are: "contains", "fuzzy", "startsWith", "startsWithPerm".`,this))}get filter(){return this._filter}set options(t){this._options=t.map(((t,e)=>({...t,index:e})))}get options(){return this._options.map((({label:t,value:e,description:s,selected:i,disabled:o})=>({label:t,value:e,description:s,selected:i,disabled:o})))}connectedCallback(){super.connectedCallback(),this.addEventListener("keydown",this._onComponentKeyDown),this.addEventListener("focus",this._onComponentFocus),this.addEventListener("blur",this._onComponentBlur)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("keydown",this._onComponentKeyDown),this.removeEventListener("focus",this._onComponentFocus),this.removeEventListener("blur",this._onComponentBlur)}get _filteredOptions(){return this.combobox&&""!==this._filterPattern?Je(this._options,this._filterPattern,this._filter):this._options}get _currentOptions(){return this.combobox?this._filteredOptions:this._options}_addOptionsFromSlottedElements(){const t=[];let e=0;const s=this._assignedOptions??[],i={selectedIndexes:[],values:[]};return this._valueOptionIndexMap={},s.forEach((s=>{const{innerText:o,description:r,disabled:n}=s,l=s.value?s.value:o.trim(),a=s.selected??!1,c={label:o.trim(),value:l,description:r,selected:a,index:e,disabled:n};e=t.push(c),a&&(i.selectedIndexes.push(t.length-1),i.values.push(l)),this._valueOptionIndexMap[c.value]=c.index})),this._options=t,i}async _toggleDropdown(t){this._showDropdown=t,this.ariaExpanded=String(t),!t||this._multiple||this.combobox||(this._activeIndex=this._selectedIndex,this._activeIndex>9&&(await this.updateComplete,this._listElement.scrollTop=Math.floor(this._activeIndex*Qe))),t?window.addEventListener("click",this._onClickOutsideBound):window.removeEventListener("click",this._onClickOutsideBound)}_dispatchChangeEvent(){this._multiple?this.dispatchEvent(new CustomEvent("vsc-change",{detail:{selectedIndexes:this._selectedIndexes,value:this._values}})):this.dispatchEvent(new CustomEvent("vsc-change",{detail:{selectedIndex:this._selectedIndex,value:this._value}})),this.dispatchEvent(new Event("change"))}_onFaceClick(){this._toggleDropdown(!this._showDropdown),this._multiple&&(this._activeIndex=0)}_onClickOutside(t){const e=t.composedPath().findIndex((t=>t===this));-1===e&&(this._toggleDropdown(!1),window.removeEventListener("click",this._onClickOutsideBound))}_onMouseMove(){this._isHoverForbidden=!1,window.removeEventListener("mousemove",this._onMouseMoveBound)}_toggleComboboxDropdown(){this._filterPattern="",this._toggleDropdown(!this._showDropdown),this._multiple&&(this._activeIndex=-1)}_onComboboxButtonClick(){this._toggleComboboxDropdown()}_onComboboxButtonKeyDown(t){"Enter"===t.key&&this._toggleComboboxDropdown()}_onOptionMouseOver(t){if(this._isHoverForbidden)return;const e=t.target;e.matches(".option")&&(this._activeIndex=Number(this.combobox?e.dataset.filteredIndex:e.dataset.index))}_onEnterKeyDown(){const t=this.combobox?this._filteredOptions:this._options,e=!this._showDropdown;this._toggleDropdown(e),this._multiple||e||this._selectedIndex===this._activeIndex||(this._selectedIndex=t[this._activeIndex].index,this._value=this._options[this._selectedIndex].value,this._dispatchChangeEvent()),this.combobox&&(this._multiple||e||(this._selectedIndex=this._filteredOptions[this._activeIndex].index),!this._multiple&&e&&this.updateComplete.then((()=>{this._scrollActiveElementToTop()}))),this._multiple&&e&&(this._activeIndex=0)}_onSpaceKeyDown(){if(this._showDropdown){if(this._showDropdown&&this._multiple&&this._activeIndex>-1){const t=this.combobox?this._filteredOptions:this._options,{selected:e}=t[this._activeIndex];t[this._activeIndex].selected=!e,this._selectedIndexes=[],t.forEach((({index:t,selected:e})=>{e&&this._selectedIndexes.push(t)}))}}else this._toggleDropdown(!0)}_scrollActiveElementToTop(){this._listElement.scrollTop=Math.floor(this._activeIndex*Qe)}async _adjustOptionListScrollPos(t){if((this.combobox?this._filteredOptions.length:this._options.length)<=10)return;this._isHoverForbidden=!0,window.addEventListener("mousemove",this._onMouseMoveBound),this._listElement||await this.updateComplete;const e=this._listElement.scrollTop,s=this._activeIndex*Qe;"down"===t&&s+Qe>=34+e&&(this._listElement.scrollTop=(this._activeIndex-9)*Qe),"up"===t&&s<=e-Qe&&this._scrollActiveElementToTop()}_onArrowUpKeyDown(){if(this._showDropdown){if(this._activeIndex<=0)return;this._activeIndex-=1,this._adjustOptionListScrollPos("up")}}_onArrowDownKeyDown(){if(this._showDropdown){if(this._activeIndex>=this._currentOptions.length-1)return;this._activeIndex+=1,this._adjustOptionListScrollPos("down")}}_onComponentKeyDown(t){[" ","ArrowUp","ArrowDown","Escape"].includes(t.key)&&(t.stopPropagation(),t.preventDefault()),"Enter"===t.key&&this._onEnterKeyDown()," "===t.key&&this._onSpaceKeyDown(),"Escape"===t.key&&this._toggleDropdown(!1),"ArrowUp"===t.key&&this._onArrowUpKeyDown(),"ArrowDown"===t.key&&this._onArrowDownKeyDown()}_onComponentFocus(){this.focused=!0}_onComponentBlur(){this.focused=!1}_onSlotChange(){const t=this._addOptionsFromSlottedElements();t.selectedIndexes.length>0&&(this._selectedIndex=t.selectedIndexes[0],this._selectedIndexes=t.selectedIndexes,this._value=t.values[0],this._values=t.values),this._multiple||this.combobox||0!==t.selectedIndexes.length||(this._selectedIndex=0),this.requestUpdate()}_onComboboxInputFocus(t){t.target.select()}_onComboboxInputInput(t){this._filterPattern=t.target.value,this._activeIndex=-1,this._toggleDropdown(!0)}_onComboboxInputClick(){this._toggleDropdown(!0)}_renderOptions(){return[]}_renderDescription(){if(!this._options[this._activeIndex])return H;const{description:t}=this._options[this._activeIndex];return t?L`
${t}
`:H}_renderSelectFace(){return L`${H}`}_renderComboboxFace(){return L`${H}`}_renderDropdownControls(){return L`${H}`}_renderDropdown(){const t=Bt({dropdown:!0,multiple:this._multiple});return L` +
+ ${"above"===this.position?this._renderDescription():H} + ${this._renderOptions()} ${this._renderDropdownControls()} + ${"below"===this.position?this._renderDescription():H} +
+ `}render(){return L` + + ${this.combobox?this._renderComboboxFace():this._renderSelectFace()} + ${this._showDropdown?this._renderDropdown():H} + `}}Ze([dt({type:String,reflect:!0,attribute:"aria-expanded"})],ts.prototype,"ariaExpanded",void 0),Ze([dt({type:Boolean,reflect:!0})],ts.prototype,"combobox",void 0),Ze([dt({type:Boolean,reflect:!0})],ts.prototype,"disabled",null),Ze([dt({type:Boolean,reflect:!0})],ts.prototype,"invalid",void 0),Ze([dt()],ts.prototype,"filter",null),Ze([dt({type:Boolean,reflect:!0})],ts.prototype,"focused",void 0),Ze([dt({type:Array})],ts.prototype,"options",null),Ze([dt({reflect:!0})],ts.prototype,"position",void 0),Ze([dt({type:Number,attribute:!0,reflect:!0})],ts.prototype,"tabIndex",void 0),Ze([ft({flatten:!0,selector:"vscode-option"})],ts.prototype,"_assignedOptions",void 0),Ze([ut()],ts.prototype,"_activeIndex",void 0),Ze([ut()],ts.prototype,"_currentDescription",void 0),Ze([ut()],ts.prototype,"_filter",void 0),Ze([ut()],ts.prototype,"_filteredOptions",null),Ze([ut()],ts.prototype,"_filterPattern",void 0),Ze([ut()],ts.prototype,"_selectedIndex",void 0),Ze([ut()],ts.prototype,"_selectedIndexes",void 0),Ze([ut()],ts.prototype,"_showDropdown",void 0),Ze([ut()],ts.prototype,"_options",void 0),Ze([ut()],ts.prototype,"_value",void 0),Ze([ut()],ts.prototype,"_values",void 0),Ze([ut()],ts.prototype,"_listScrollTop",void 0),Ze([pt(".options")],ts.prototype,"_listElement",void 0);var es=[mt,r` + :host { + display: inline-block; + max-width: 100%; + outline: none; + position: relative; + width: 320px; + } + + .main-slot { + display: none; + } + + .select-face, + .combobox-face { + background-color: var(--vscode-settings-dropdownBackground); + border-color: var(--vscode-settings-dropdownBorder); + border-radius: 2px; + border-style: solid; + border-width: 1px; + box-sizing: border-box; + color: var(--vscode-settings-dropdownForeground); + font-family: var(--vscode-font-family); + font-size: var(--vscode-font-size); + font-weight: var(--vscode-font-weight); + line-height: 18px; + position: relative; + user-select: none; + width: 100%; + } + + :host([invalid]) .select-face, + :host(:invalid) .select-face, + :host([invalid]) .combobox-face, + :host(:invalid) .combobox-face { + background-color: var(--vscode-inputValidation-errorBackground); + border-color: var(--vscode-inputValidation-errorBorder, #be1100); + } + + .select-face { + cursor: pointer; + padding: 3px 4px; + } + + .select-face.multiselect { + padding: 0; + } + + .select-face-badge { + background-color: var(--vscode-badge-background); + border-radius: 2px; + color: var(--vscode-badge-foreground); + display: inline-block; + flex-shrink: 0; + font-size: 11px; + line-height: 16px; + margin: 2px; + padding: 2px 3px; + text-transform: uppercase; + white-space: nowrap; + } + + .select-face-badge.no-item { + background-color: transparent; + color: inherit; + } + + .combobox-face { + display: flex; + } + + .empty-label-placeholder { + display: block; + height: 16px; + } + + :host(:focus) .select-face, + :host(:focus) .combobox-face, + :host([focused]) .select-face, + :host([focused]) .combobox-face { + border-color: var(--vscode-focusBorder); + outline: none; + } + + .combobox-input { + background-color: transparent; + box-sizing: border-box; + border: 0; + color: var(--vscode-foreground); + display: block; + font-family: var(--vscode-font-family); + font-size: var(--vscode-font-size); + line-height: 16px; + padding: 4px; + width: 100%; + } + + .combobox-input:focus { + outline: none; + } + + .combobox-button { + background-color: transparent; + border: 0; + color: var(--vscode-foreground); + cursor: pointer; + flex-shrink: 0; + height: 24px; + margin: 0; + padding: 0; + width: 30px; + } + + .combobox-button:focus, + .combobox-button:hover { + background-color: var(--vscode-list-hoverBackground); + } + + .combobox-button:focus { + outline: 0; + } + + .icon { + color: var(--vscode-foreground); + display: block; + height: 14px; + pointer-events: none; + position: absolute; + right: 8px; + top: 5px; + width: 14px; + } + + .icon svg { + color: var(--vscode-foreground); + height: 100%; + width: 100%; + } + + .select-face:empty:before { + content: '\\00a0'; + } + + .dropdown { + background-color: var(--vscode-settings-dropdownBackground); + border-color: var(--vscode-settings-dropdownListBorder); + border-radius: 0 0 3px 3px; + border-style: solid; + border-width: 1px; + box-sizing: border-box; + left: 0; + padding-bottom: 2px; + position: absolute; + top: 100%; + width: 100%; + z-index: var(--dropdown-z-index, 2); + } + + :host([position="above"]) .dropdown { + border-radius: 3px 3px 0 0; + bottom: 26px; + padding-bottom: 0; + padding-top: 2px; + top: auto; + } + + :host(:focus) .dropdown, + :host([focused]) .dropdown { + border-color: var(--vscode-focusBorder); + } + + .options { + box-sizing: border-box; + cursor: pointer; + list-style: none; + margin: 0; + max-height: 222px; + overflow: auto; + padding: 1px; + } + + .option { + align-items: center; + color: var(--vscode-foreground); + cursor: pointer; + display: flex; + font-family: var(--vscode-font-family); + font-size: var(--vscode-font-size); + font-weight: var(--vscode-font-weight); + line-height: 18px; + min-height: calc(var(--vscode-font-size) * 1.3); + padding: 1px 3px; + user-select: none; + border-width: 1px; + border-style: solid; + border-color: transparent; + } + + .option b { + color: var(--vscode-list-highlightForeground); + } + + .option.active b { + color: var(--vscode-list-focusHighlightForeground); + } + + .option:hover { + background-color: var(--vscode-list-hoverBackground); + color: var(--vscode-list-hoverForeground); + } + + :host-context(body[data-vscode-theme-kind='vscode-high-contrast']) + .option:hover, + :host-context(body[data-vscode-theme-kind='vscode-high-contrast-light']) + .option:hover { + border-style: dotted; + border-color: var(--vscode-list-focusOutline); + } + + .option.disabled { + cursor: not-allowed; + opacity: 0.4; + } + + .option.active, + .option.active:hover { + background-color: var(--vscode-list-activeSelectionBackground); + color: var(--vscode-list-activeSelectionForeground); + border-color: var(--vscode-list-activeSelectionBackground); + border-style: solid; + border-width: 1px; + } + + :host-context(body[data-vscode-theme-kind='vscode-high-contrast']) + .option.active, + :host-context(body[data-vscode-theme-kind='vscode-high-contrast-light']) + .option.active:hover { + border-color: var(--vscode-list-focusOutline); + border-style: dashed; + } + + .option-label { + display: block; + pointer-events: none; + width: 100%; + } + + .dropdown.multiple .option.selected { + background-color: var(--vscode-list-hoverBackground); + border-color: var(--vscode-list-hoverBackground); + } + + .dropdown.multiple .option.selected.active { + background-color: var(--vscode-list-activeSelectionBackground); + color: var(--vscode-list-activeSelectionForeground); + border-color: var(--vscode-list-activeSelectionBackground); + } + + .checkbox-icon { + background-color: var(--vscode-settings-checkboxBackground); + border: 1px solid currentColor; + border-radius: 2px; + box-sizing: border-box; + height: 14px; + margin-right: 5px; + overflow: hidden; + position: relative; + width: 14px; + } + + .checkbox-icon.checked:before, + .checkbox-icon.checked:after { + content: ''; + display: block; + height: 5px; + position: absolute; + transform: rotate(-45deg); + width: 10px; + } + + .checkbox-icon.checked:before { + background-color: var(--vscode-foreground); + left: 1px; + top: 2.5px; + } + + .checkbox-icon.checked:after { + background-color: var(--vscode-settings-checkboxBackground); + left: 1px; + top: -0.5px; + } + + .dropdown-controls { + display: flex; + justify-content: flex-end; + padding: 4px; + } + + .dropdown-controls :not(:last-child) { + margin-right: 4px; + } + + .action-icon { + align-items: center; + background-color: transparent; + border: 0; + color: var(--vscode-foreground); + cursor: pointer; + display: flex; + height: 24px; + justify-content: center; + padding: 0; + width: 24px; + } + + .action-icon:focus { + outline: none; + } + + .action-icon:focus-visible { + outline: 1px solid var(--vscode-focusBorder); + outline-offset: -1px; + } + + .description { + border-color: var(--vscode-settings-dropdownBorder); + border-style: solid; + border-width: 1px 0 0; + color: var(--vscode-foreground); + font-family: var(--vscode-font-family); + font-size: var(--vscode-font-size); + font-weight: var(--vscode-font-weight); + line-height: 1.3; + padding: 6px 4px; + word-wrap:break-word; + } + + :host([position="above"]) .description { + border-width: 0 0 1px; + } + `],ss=function(t,e,s,i){for(var o,r=arguments.length,n=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i,l=t.length-1;l>=0;l--)(o=t[l])&&(n=(r<3?o(n):r>3?o(e,s,n):o(e,s))||n);return r>3&&n&&Object.defineProperty(e,s,n),n};let is=class extends ts{set selectedIndexes(t){this._selectedIndexes=t}get selectedIndexes(){return this._selectedIndexes}set value(t){const e=t.map((t=>String(t)));this._values=e,this._selectedIndexes.forEach((t=>{this._options[t].selected=!1})),this._selectedIndexes=[],e.forEach((t=>{this._valueOptionIndexMap[t]&&(this._selectedIndexes.push(this._valueOptionIndexMap[t]),this._options[this._valueOptionIndexMap[t]].selected=!0)})),this._setFormValue(),this._manageRequired()}get value(){return this._values}get form(){return this._internals.form}get type(){return"select-multiple"}get validity(){return this._internals.validity}get validationMessage(){return this._internals.validationMessage}get willValidate(){return this._internals.willValidate}checkValidity(){return this._internals.checkValidity()}reportValidity(){return this._internals.reportValidity()}constructor(){super(),this.defaultValue=[],this.required=!1,this.name=void 0,this._multiple=!0,this._internals=this.attachInternals()}connectedCallback(){super.connectedCallback(),this._manageRequired(),this.updateComplete.then((()=>{this._setDefaultValue(),this._manageRequired()}))}formResetCallback(){this.updateComplete.then((()=>{this.value=this.defaultValue}))}formStateRestoreCallback(t,e){const s=Array.from(t.entries()).map((t=>String(t[1])));this.updateComplete.then((()=>{this.value=s}))}_setDefaultValue(){if(Array.isArray(this.defaultValue)&&this.defaultValue.length>0){const t=this.defaultValue.map((t=>String(t)));this.value=t}}_manageRequired(){const{value:t}=this;0===t.length&&this.required?this._internals.setValidity({valueMissing:!0},"Please select an item in the list."):this._internals.setValidity({})}_setFormValue(){const t=new FormData;this._values.forEach((e=>{t.append(this.name??"",e)})),this._internals.setFormValue(t)}_onOptionClick(t){const e=t.composedPath().find((t=>"matches"in t&&t.matches("li.option")));if(!e)return;const s=Number(e.dataset.index);this._options[s]&&(this._options[s].selected=!this._options[s].selected),this._selectedIndexes=[],this._values=[],this._options.forEach((t=>{t.selected&&(this._selectedIndexes.push(t.index),this._values.push(t.value))})),this._setFormValue(),this._manageRequired(),this._dispatchChangeEvent()}_onMultiAcceptClick(){this._toggleDropdown(!1)}_onMultiDeselectAllClick(){this._selectedIndexes=[],this._values=[],this._options=this._options.map((t=>({...t,selected:!1}))),this._manageRequired(),this._dispatchChangeEvent()}_onMultiSelectAllClick(){this._selectedIndexes=[],this._values=[],this._options=this._options.map((t=>({...t,selected:!0}))),this._options.forEach(((t,e)=>{this._selectedIndexes.push(e),this._values.push(t.value),this._dispatchChangeEvent()})),this._setFormValue(),this._manageRequired()}_renderLabel(){switch(this._selectedIndexes.length){case 0:return L`No items selected`;case 1:return L`1 item selected`;default:return L`${this._selectedIndexes.length} items selected`}}_renderSelectFace(){return L` +
+ ${this._renderLabel()} ${Ge} +
+ `}_renderComboboxFace(){const t=this._selectedIndex>-1?this._options[this._selectedIndex].label:"";return L` +
+ ${this._renderLabel()} + + +
+ `}_renderOptions(){const t=this.combobox?this._filteredOptions:this._options;return L` +
    + ${We(t,(t=>t.index),((t,e)=>{const s=this._selectedIndexes.includes(t.index),i=Bt({active:e===this._activeIndex,option:!0,selected:s}),o=Bt({"checkbox-icon":!0,checked:s});return L` +
  • + + ${t.ranges?.length?Xe(t.label,t.ranges??[]):t.label} +
  • + `}))} +
+ `}_renderDropdownControls(){return L` + + `}};is.styles=es,is.shadowRootOptions={...nt.shadowRootOptions,delegatesFocus:!0},is.formAssociated=!0,ss([dt({type:Array,attribute:"default-value"})],is.prototype,"defaultValue",void 0),ss([dt({type:Boolean,reflect:!0})],is.prototype,"required",void 0),ss([dt({reflect:!0})],is.prototype,"name",void 0),ss([dt({type:Array,attribute:!1})],is.prototype,"selectedIndexes",null),ss([dt({type:Array})],is.prototype,"value",null),is=ss([at("vscode-multi-select")],is);var os=function(t,e,s,i){for(var o,r=arguments.length,n=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i,l=t.length-1;l>=0;l--)(o=t[l])&&(n=(r<3?o(n):r>3?o(e,s,n):o(e,s))||n);return r>3&&n&&Object.defineProperty(e,s,n),n};let rs=class extends gt{constructor(){super(...arguments),this.value="",this.description="",this.selected=!1,this.disabled=!1}render(){return L``}};rs.styles=mt,os([dt({type:String})],rs.prototype,"value",void 0),os([dt({type:String})],rs.prototype,"description",void 0),os([dt({type:Boolean,reflect:!0})],rs.prototype,"selected",void 0),os([dt({type:Boolean,reflect:!0})],rs.prototype,"disabled",void 0),rs=os([at("vscode-option")],rs);const ns=[mt,r` + :host { + align-items: center; + display: block; + height: 28px; + margin: 0; + outline: none; + width: 28px; + } + + .progress { + height: 100%; + width: 100%; + } + + .background { + fill: none; + stroke: transparent; + stroke-width: 2px; + } + + .indeterminate-indicator-1 { + fill: none; + stroke: var(--vscode-progressBar-background); + stroke-width: 2px; + stroke-linecap: square; + transform-origin: 50% 50%; + transform: rotate(-90deg); + transition: all 0.2s ease-in-out; + animation: spin-infinite 2s linear infinite; + } + + @keyframes spin-infinite { + 0% { + stroke-dasharray: 0.01px 43.97px; + transform: rotate(0deg); + } + 50% { + stroke-dasharray: 21.99px 21.99px; + transform: rotate(450deg); + } + 100% { + stroke-dasharray: 0.01px 43.97px; + transform: rotate(1080deg); + } + } + `];var ls=function(t,e,s,i){for(var o,r=arguments.length,n=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i,l=t.length-1;l>=0;l--)(o=t[l])&&(n=(r<3?o(n):r>3?o(e,s,n):o(e,s))||n);return r>3&&n&&Object.defineProperty(e,s,n),n};let as=class extends gt{constructor(){super(...arguments),this.ariaLabel="Loading",this.ariaLive="assertive",this.role="alert"}render(){return L` + + + `}};as.styles=ns,ls([dt({reflect:!0,attribute:"aria-label"})],as.prototype,"ariaLabel",void 0),ls([dt({reflect:!0,attribute:"aria-live"})],as.prototype,"ariaLive",void 0),ls([dt({reflect:!0})],as.prototype,"role",void 0),as=ls([at("vscode-progress-ring")],as);const cs=[mt,Gt,r` + :host(:invalid) .icon, + :host([invalid]) .icon { + background-color: var(--vscode-inputValidation-errorBackground); + border-color: var(--vscode-inputValidation-errorBorder, #be1100); + } + + .icon { + border-radius: 9px; + } + + .icon.checked:before { + background-color: currentColor; + border-radius: 4px; + content: ''; + height: 8px; + left: 50%; + margin: -4px 0 0 -4px; + position: absolute; + top: 50%; + width: 8px; + } + + :host(:focus):host(:not([disabled])) .icon { + outline: 1px solid var(--vscode-focusBorder); + outline-offset: -1px; + } + `,Jt];var hs=function(t,e,s,i){for(var o,r=arguments.length,n=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i,l=t.length-1;l>=0;l--)(o=t[l])&&(n=(r<3?o(n):r>3?o(e,s,n):o(e,s))||n);return r>3&&n&&Object.defineProperty(e,s,n),n};let ds=class extends(Wt(qt)){constructor(){super(),this.autofocus=!1,this.checked=!1,this.defaultChecked=!1,this.invalid=!1,this.name="",this.value="",this.disabled=!1,this.required=!1,this.role="radio",this.tabIndex=0,this._slottedText="",this._handleClick=()=>{this.disabled||this.checked||(this._checkButton(),this._handleValueChange(),this._dispatchCustomEvent(),this.dispatchEvent(new Event("change",{bubbles:!0})))},this._handleKeyDown=t=>{this.disabled||"Enter"!==t.key&&" "!==t.key||(t.preventDefault()," "!==t.key||this.checked||(this.checked=!0,this._handleValueChange(),this._dispatchCustomEvent(),this.dispatchEvent(new Event("change",{bubbles:!0}))),"Enter"===t.key&&this._internals.form?.requestSubmit())},this._internals=this.attachInternals()}connectedCallback(){super.connectedCallback(),this.addEventListener("keydown",this._handleKeyDown),this.addEventListener("click",this._handleClick),this._handleValueChange()}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("keydown",this._handleKeyDown),this.removeEventListener("click",this._handleClick)}update(t){super.update(t),t.has("checked")&&this._handleValueChange(),t.has("required")&&this._handleValueChange()}get form(){return this._internals.form}get type(){return"radio"}get validity(){return this._internals.validity}get validationMessage(){return this._internals.validationMessage}get willValidate(){return this._internals.willValidate}checkValidity(){return this._internals.checkValidity()}reportValidity(){return this._internals.reportValidity()}formResetCallback(){this._getRadios().forEach((t=>{t.checked=t.defaultChecked})),this.updateComplete.then((()=>{this._handleValueChange()}))}formStateRestoreCallback(t,e){this.value===t&&""!==t&&(this.checked=!0)}_dispatchCustomEvent(){this.dispatchEvent(new CustomEvent("vsc-change",{detail:{checked:this.checked,label:this.label,value:this.value},bubbles:!0,composed:!0}))}_getRadios(){const t=this.getRootNode({composed:!0});if(!t)return[];const e=t.querySelectorAll(`vscode-radio[name="${this.name}"]`);return Array.from(e)}_uncheckOthers(t){t.forEach((t=>{t!==this&&(t.checked=!1)}))}_checkButton(){const t=this._getRadios();this.checked=!0,t.forEach((t=>{t!==this&&(t.checked=!1)}))}setComponentValidity(t){t?this._internals.setValidity({}):this._internals.setValidity({valueMissing:!0},"Please select one of these options.",this._inputEl)}_setGroupValidity(t,e){this.updateComplete.then((()=>{t.forEach((t=>{t.setComponentValidity(e)}))}))}_setActualFormValue(){let t="";t=this.checked?this.value?this.value:"on":null,this._internals.setFormValue(t)}_handleValueChange(){const t=this._getRadios(),e=t.some((t=>t.required));if(this._setActualFormValue(),this.checked)this._uncheckOthers(t),this._setGroupValidity(t,!0);else{const s=!!t.find((t=>t.checked)),i=e&&!s;this._setGroupValidity(t,!i)}}render(){const t=Bt({icon:!0,checked:this.checked}),e=Bt({"label-inner":!0,"is-slot-empty":""===this._slottedText});return L` +
+ +
+ +
+ `}};ds.styles=cs,ds.formAssociated=!0,ds.shadowRootOptions={...nt.shadowRootOptions,delegatesFocus:!0},hs([dt({type:Boolean,reflect:!0})],ds.prototype,"autofocus",void 0),hs([dt({type:Boolean,reflect:!0})],ds.prototype,"checked",void 0),hs([dt({type:Boolean,reflect:!0,attribute:"default-checked"})],ds.prototype,"defaultChecked",void 0),hs([dt({type:Boolean,reflect:!0})],ds.prototype,"invalid",void 0),hs([dt({reflect:!0})],ds.prototype,"name",void 0),hs([dt()],ds.prototype,"value",void 0),hs([dt({type:Boolean,reflect:!0})],ds.prototype,"disabled",void 0),hs([dt({type:Boolean,reflect:!0})],ds.prototype,"required",void 0),hs([dt({reflect:!0})],ds.prototype,"role",void 0),hs([dt({type:Number,reflect:!0})],ds.prototype,"tabIndex",void 0),hs([ut()],ds.prototype,"_slottedText",void 0),hs([pt("#input")],ds.prototype,"_inputEl",void 0),ds=hs([at("vscode-radio")],ds);var us=function(t,e,s,i){for(var o,r=arguments.length,n=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i,l=t.length-1;l>=0;l--)(o=t[l])&&(n=(r<3?o(n):r>3?o(e,s,n):o(e,s))||n);return r>3&&n&&Object.defineProperty(e,s,n),n};let vs=class extends ts{set selectedIndex(t){this._selectedIndex=t,this._value=this._options[this._selectedIndex]?this._options[this._selectedIndex].value:"",this._labelText=this._options[this._selectedIndex]?this._options[this._selectedIndex].label:""}get selectedIndex(){return this._selectedIndex}set value(t){this._options[this._selectedIndex]&&(this._options[this._selectedIndex].selected=!1),this._selectedIndex=this._options.findIndex((e=>e.value===t)),this._selectedIndex>-1?(this._options[this._selectedIndex].selected=!0,this._labelText=this._options[this._selectedIndex].label,this._value=t):(this._labelText="",this._value="")}get value(){return this._options[this._selectedIndex]?this._options[this._selectedIndex]?.value??"":""}get validity(){return this._internals.validity}get validationMessage(){return this._internals.validationMessage}get willValidate(){return this._internals.willValidate}checkValidity(){return this._internals.checkValidity()}reportValidity(){return this._internals.reportValidity()}updateInputValue(){if(!this.combobox)return;const t=this.renderRoot.querySelector(".combobox-input");t&&(t.value=this._options[this._selectedIndex]?this._options[this._selectedIndex].label:"")}constructor(){super(),this.defaultValue="",this.role="listbox",this.name=void 0,this.required=!1,this._labelText="",this._multiple=!1,this._internals=this.attachInternals()}connectedCallback(){super.connectedCallback(),this.updateComplete.then((()=>{this._manageRequired()}))}formResetCallback(){this.value=this.defaultValue}formStateRestoreCallback(t,e){this.updateComplete.then((()=>{this.value=t}))}get type(){return"select-one"}get form(){return this._internals.form}_onSlotChange(){super._onSlotChange(),this._selectedIndex>-1&&(this._labelText=this._options[this._selectedIndex]?.label??""),this._selectedIndex>-1&&this._options.length>0?this._internals.setFormValue(this._options[this._selectedIndex].value):this._internals.setFormValue(null)}_onArrowUpKeyDown(){super._onArrowUpKeyDown(),this._showDropdown||this._selectedIndex<=0||(this._filterPattern="",this._selectedIndex-=1,this._activeIndex=this._selectedIndex,this._labelText=this._options[this._selectedIndex].label,this._value=this._options[this._selectedIndex].value,this._internals.setFormValue(this._value),this._manageRequired(),this._dispatchChangeEvent())}_onArrowDownKeyDown(){super._onArrowDownKeyDown(),this._showDropdown||this._selectedIndex>=this._options.length-1||(this._filterPattern="",this._selectedIndex+=1,this._activeIndex=this._selectedIndex,this._labelText=this._options[this._selectedIndex].label,this._value=this._options[this._selectedIndex].value,this._internals.setFormValue(this._value),this._manageRequired(),this._dispatchChangeEvent())}_onEnterKeyDown(){super._onEnterKeyDown(),this._selectedIndex>-1&&(this._labelText=this._options[this._selectedIndex].label),this.updateInputValue(),this._internals.setFormValue(this._value),this._manageRequired()}_onOptionClick(t){const e=t.composedPath().find((t=>t?.matches("li.option")));e&&!e.matches(".disabled")&&(this._selectedIndex=Number(e.dataset.index),this._value=this._options[this._selectedIndex].value,this._selectedIndex>-1&&(this._labelText=this._options[this._selectedIndex].label),this._toggleDropdown(!1),this._internals.setFormValue(this._value),this._manageRequired(),this._dispatchChangeEvent())}_manageRequired(){const{value:t}=this;""===t&&this.required?this._internals.setValidity({valueMissing:!0},"Please select an item in the list."):this._internals.setValidity({})}_renderLabel(){const t=this._labelText||L``;return L`${t}`}_renderSelectFace(){return L` +
+ ${this._renderLabel()} ${Ge} +
+ `}_renderComboboxFace(){const t=this._selectedIndex>-1?this._options[this._selectedIndex].label:"";return L` +
+ + +
+ `}_renderOptions(){const t=(this.combobox?this._filteredOptions:this._options).map(((t,e)=>{const s=Bt({option:!0,active:e===this._activeIndex&&!t.disabled,disabled:t.disabled});return L` +
  • + ${t.ranges?.length?Xe(t.label,t.ranges??[]):t.label} +
  • + `}));return L` +
      + ${t} +
    + `}};vs.styles=es,vs.shadowRootOptions={...nt.shadowRootOptions,delegatesFocus:!0},vs.formAssociated=!0,us([dt({attribute:"default-value"})],vs.prototype,"defaultValue",void 0),us([dt({type:String,attribute:!0,reflect:!0})],vs.prototype,"role",void 0),us([dt({reflect:!0})],vs.prototype,"name",void 0),us([dt({type:Number,attribute:"selected-index"})],vs.prototype,"selectedIndex",null),us([dt({type:String})],vs.prototype,"value",null),us([dt({type:Boolean,reflect:!0})],vs.prototype,"required",void 0),us([ut()],vs.prototype,"_labelText",void 0),vs=us([at("vscode-single-select")],vs);const ps=[mt,r` + :host { + display: block; + position: relative; + } + + .scrollable-container { + height: 100%; + overflow: auto; + } + + .scrollable-container::-webkit-scrollbar { + cursor: default; + width: 0; + } + + .scrollable-container { + scrollbar-width: none; + } + + .shadow { + box-shadow: var(--vscode-scrollbar-shadow) 0 6px 6px -6px inset; + display: none; + height: 3px; + left: 0; + pointer-events: none; + position: absolute; + top: 0; + z-index: 1; + width: 100%; + } + + .shadow.visible { + display: block; + } + + .scrollbar-track { + height: 100%; + position: absolute; + right: 0; + top: 0; + width: 10px; + z-index: 100; + } + + .scrollbar-track.hidden { + display: none; + } + + .scrollbar-thumb { + background-color: transparent; + min-height: var(--min-thumb-height, 20px); + opacity: 0; + position: absolute; + right: 0; + width: 10px; + } + + .scrollbar-thumb.visible { + background-color: var(--vscode-scrollbarSlider-background); + opacity: 1; + transition: opacity 100ms; + } + + .scrollbar-thumb.fade { + background-color: var(--vscode-scrollbarSlider-background); + opacity: 0; + transition: opacity 800ms; + } + + .scrollbar-thumb.visible:hover { + background-color: var(--vscode-scrollbarSlider-hoverBackground); + } + + .scrollbar-thumb.visible.active, + .scrollbar-thumb.visible.active:hover { + background-color: var(--vscode-scrollbarSlider-activeBackground); + } + + .prevent-interaction { + bottom: 0; + left: 0; + right: 0; + top: 0; + position: absolute; + z-index: 99; + } + + .content { + overflow: hidden; + } + `];var bs=function(t,e,s,i){for(var o,r=arguments.length,n=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i,l=t.length-1;l>=0;l--)(o=t[l])&&(n=(r<3?o(n):r>3?o(e,s,n):o(e,s))||n);return r>3&&n&&Object.defineProperty(e,s,n),n};let fs=class extends gt{constructor(){super(...arguments),this.shadow=!0,this.scrolled=!1,this._isDragging=!1,this._thumbHeight=0,this._thumbY=0,this._thumbVisible=!1,this._thumbFade=!1,this._thumbActive=!1,this._scrollThumbStartY=0,this._mouseStartY=0,this._scrollbarVisible=!0,this._scrollbarTrackZ=0,this._resizeObserverCallback=()=>{this._updateScrollbar()},this._onScrollThumbMouseMoveBound=this._onScrollThumbMouseMove.bind(this),this._onScrollThumbMouseUpBound=this._onScrollThumbMouseUp.bind(this),this._onComponentMouseOverBound=this._onComponentMouseOver.bind(this),this._onComponentMouseOutBound=this._onComponentMouseOut.bind(this)}set scrollPos(t){this._scrollableContainer.scrollTop=t}get scrollPos(){return this._scrollableContainer?this._scrollableContainer.scrollTop:0}get scrollMax(){return this._scrollableContainer?this._scrollableContainer.scrollHeight:0}connectedCallback(){super.connectedCallback(),this._hostResizeObserver=new ResizeObserver(this._resizeObserverCallback),this._contentResizeObserver=new ResizeObserver(this._resizeObserverCallback),this.requestUpdate(),this.updateComplete.then((()=>{this._scrollableContainer.addEventListener("scroll",this._onScrollableContainerScroll.bind(this)),this._hostResizeObserver.observe(this),this._contentResizeObserver.observe(this._contentElement)})),this.addEventListener("mouseover",this._onComponentMouseOverBound),this.addEventListener("mouseout",this._onComponentMouseOutBound)}disconnectedCallback(){super.disconnectedCallback(),this._hostResizeObserver.unobserve(this),this._hostResizeObserver.disconnect(),this._contentResizeObserver.unobserve(this._contentElement),this._contentResizeObserver.disconnect(),this.removeEventListener("mouseover",this._onComponentMouseOverBound),this.removeEventListener("mouseout",this._onComponentMouseOutBound)}_updateScrollbar(){const t=this.getBoundingClientRect(),e=this._contentElement.getBoundingClientRect();t.height>=e.height?this._scrollbarVisible=!1:(this._scrollbarVisible=!0,this._thumbHeight=t.height*(t.height/e.height)),this.requestUpdate()}_zIndexFix(){let t=0;this._assignedElements.forEach((e=>{if("style"in e){const s=window.getComputedStyle(e).zIndex;/([0-9-])+/g.test(s)&&(t=Number(s)>t?Number(s):t)}})),this._scrollbarTrackZ=t+1,this.requestUpdate()}_onSlotChange(){this._zIndexFix()}_onScrollThumbMouseDown(t){const e=this.getBoundingClientRect(),s=this._scrollThumbElement.getBoundingClientRect();this._mouseStartY=t.screenY,this._scrollThumbStartY=s.top-e.top,this._isDragging=!0,this._thumbActive=!0,document.addEventListener("mousemove",this._onScrollThumbMouseMoveBound),document.addEventListener("mouseup",this._onScrollThumbMouseUpBound)}_onScrollThumbMouseMove(t){const e=this._scrollThumbStartY+(t.screenY-this._mouseStartY);let s=0;const i=this.getBoundingClientRect().height,o=this._scrollThumbElement.getBoundingClientRect().height,r=this._contentElement.getBoundingClientRect().height;s=e<0?0:e>i-o?i-o:e,this._thumbY=s,this._scrollableContainer.scrollTop=s/(i-o)*(r-i)}_onScrollThumbMouseUp(t){this._isDragging=!1,this._thumbActive=!1;const e=this.getBoundingClientRect(),{x:s,y:i,width:o,height:r}=e,{pageX:n,pageY:l}=t;(n>s+o||ni+r||l0;const e=this.getBoundingClientRect().height,s=this._scrollThumbElement.getBoundingClientRect().height,i=t/(this._contentElement.getBoundingClientRect().height-e);this._thumbY=i*(e-s)}_onComponentMouseOver(){this._thumbVisible=!0,this._thumbFade=!1}_onComponentMouseOut(){this._thumbActive||(this._thumbVisible=!1,this._thumbFade=!0)}render(){return L` +
    +
    + ${this._isDragging?L`
    `:H} +
    +
    +
    +
    + +
    +
    + `}};fs.styles=ps,bs([dt({type:Boolean,reflect:!0})],fs.prototype,"shadow",void 0),bs([dt({type:Boolean,reflect:!0})],fs.prototype,"scrolled",void 0),bs([dt({type:Number,attribute:"scroll-pos"})],fs.prototype,"scrollPos",null),bs([dt({type:Number,attribute:"scroll-max"})],fs.prototype,"scrollMax",null),bs([ut()],fs.prototype,"_isDragging",void 0),bs([ut()],fs.prototype,"_thumbHeight",void 0),bs([ut()],fs.prototype,"_thumbY",void 0),bs([ut()],fs.prototype,"_thumbVisible",void 0),bs([ut()],fs.prototype,"_thumbFade",void 0),bs([ut()],fs.prototype,"_thumbActive",void 0),bs([pt(".content")],fs.prototype,"_contentElement",void 0),bs([pt(".scrollbar-thumb")],fs.prototype,"_scrollThumbElement",void 0),bs([pt(".scrollable-container")],fs.prototype,"_scrollableContainer",void 0),bs([ft()],fs.prototype,"_assignedElements",void 0),fs=bs([at("vscode-scrollable")],fs);const gs=[mt,r` + :host { + --separator-border: var(--vscode-editorWidget-border, transparent); + + border: 1px solid var(--vscode-editorWidget-border); + display: block; + overflow: hidden; + position: relative; + } + + ::slotted(*) { + height: 100%; + width: 100%; + } + + ::slotted(vscode-split-layout) { + border: 0; + } + + .start { + box-sizing: border-box; + left: 0; + top: 0; + overflow: hidden; + position: absolute; + } + + :host([split='vertical']) .start { + border-right: 1px solid var(--separator-border); + } + + :host([split='horizontal']) .start { + border-bottom: 1px solid var(--separator-border); + } + + .end { + bottom: 0; + box-sizing: border-box; + overflow: hidden; + position: absolute; + right: 0; + } + + .handle-overlay { + display: none; + height: 100%; + left: 0; + position: absolute; + top: 0; + width: 100%; + z-index: 1; + } + + .handle-overlay.active { + display: block; + } + + .handle-overlay.split-vertical { + cursor: ew-resize; + } + + .handle-overlay.split-horizontal { + cursor: ns-resize; + } + + .handle { + position: absolute; + z-index: 2; + } + + .handle.hover { + background-color: var(--vscode-sash-hoverBorder); + transition: background-color 100ms linear 300ms; + } + + .handle.hide { + background-color: transparent; + transition: background-color 100ms linear; + } + + .handle.split-vertical { + cursor: ew-resize; + height: 100%; + } + + .handle.split-horizontal { + cursor: ns-resize; + width: 100%; + } + `];var ms,xs=function(t,e,s,i){for(var o,r=arguments.length,n=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i,l=t.length-1;l>=0;l--)(o=t[l])&&(n=(r<3?o(n):r>3?o(e,s,n):o(e,s))||n);return r>3&&n&&Object.defineProperty(e,s,n),n};let ys=ms=class extends gt{constructor(){super(...arguments),this.split="vertical",this.resetOnDblClick=!1,this.handleSize=4,this.initialHandlePosition="50%",this._startPaneRight=0,this._startPaneBottom=0,this._endPaneTop=0,this._endPaneLeft=0,this._handleLeft=0,this._handleTop=0,this._isDragActive=!1,this._hover=!1,this._hide=!1,this._boundRect=new DOMRect,this._handleOffset=0,this._handleMouseUp=()=>{this._isDragActive=!1,window.removeEventListener("mouseup",this._handleMouseUp),window.removeEventListener("mousemove",this._handleMouseMove)},this._handleMouseMove=t=>{const{clientX:e,clientY:s}=t,{left:i,top:o,height:r,width:n}=this._boundRect;if("vertical"===this.split){const t=e-i,s=Math.max(0,Math.min(t-this._handleOffset,n)),o=s/n*100,r=Math.max(0,n-s)/n*100;this._handleLeft=o,this._startPaneRight=r,this._endPaneLeft=this._handleLeft}if("horizontal"===this.split){const t=s-o,e=Math.max(0,Math.min(t-this._handleOffset,r)),i=e/r*100,n=Math.max(0,r-e)/r*100;this._handleTop=i,this._startPaneBottom=n,this._endPaneTop=this._handleTop}}}connectedCallback(){super.connectedCallback(),this._initPosition()}initializeResizeHandler(){this._initPosition()}_initPosition(){this._boundRect=this.getBoundingClientRect();const{height:t,width:e}=this._boundRect,s="vertical"===this.split?e:t,i=/(^[0-9.]+)(%{0,1})$/.exec(this.initialHandlePosition);let o=0,r=0;i&&(r=parseFloat(i[1])),o=i&&"%"===i[2]?Math.min(s,s/100*r):i&&"%"!==i[2]?Math.min(r,s):s/2,"vertical"===this.split&&(this._startPaneRight=(s-o)/e*100,this._endPaneLeft=o/e*100,this._handleLeft=o/e*100),"horizontal"===this.split&&(this._startPaneBottom=(s-o)/t*100,this._endPaneTop=o/t*100,this._handleTop=o/t*100)}_handleMouseOver(){this._hover=!0,this._hide=!1}_handleMouseOut(t){1!==t.buttons&&(this._hover=!1,this._hide=!0)}_handleMouseDown(t){t.stopPropagation(),t.preventDefault(),this._boundRect=this.getBoundingClientRect();const{left:e,top:s,width:i,height:o}=this._boundRect,r=(t.clientX-e)/i*100,n=(t.clientY-s)/o*100;"vertical"===this.split&&(this._handleOffset=r-this._handleLeft),"horizontal"===this.split&&(this._handleOffset=n-this._handleTop),this._boundRect=this.getBoundingClientRect(),this._isDragActive=!0,window.addEventListener("mouseup",this._handleMouseUp),window.addEventListener("mousemove",this._handleMouseMove)}_handleDblClick(){this.resetOnDblClick&&this._initPosition()}_handleSlotChange(){[...this._nestedLayoutsAtStart,...this._nestedLayoutsAtEnd].forEach((t=>{t instanceof ms&&t.initializeResizeHandler()}))}render(){const t=At({bottom:`${this._startPaneBottom}%`,right:`${this._startPaneRight}%`}),e=At({left:`${this._endPaneLeft}%`,top:`${this._endPaneTop}%`}),s={left:`${this._handleLeft}%`,top:`${this._handleTop}%`};"vertical"===this.split&&(s.marginLeft=0-this.handleSize/2+"px",s.width=`${this.handleSize}px`),"horizontal"===this.split&&(s.height=`${this.handleSize}px`,s.marginTop=0-this.handleSize/2+"px");const i=At(s),o=Bt({"handle-overlay":!0,active:this._isDragActive,"split-vertical":"vertical"===this.split,"split-horizontal":"horizontal"===this.split}),r=Bt({handle:!0,hover:this._hover,hide:this._hide,"split-vertical":"vertical"===this.split,"split-horizontal":"horizontal"===this.split});return L` +
    + +
    +
    + +
    +
    +
    + `}};ys.styles=gs,xs([dt({reflect:!0})],ys.prototype,"split",void 0),xs([dt({type:Boolean,reflect:!0,attribute:"reset-on-dbl-click"})],ys.prototype,"resetOnDblClick",void 0),xs([dt({type:Number,reflect:!0,attribute:"handle-size"})],ys.prototype,"handleSize",void 0),xs([dt({reflect:!0,attribute:"initial-handle-position"})],ys.prototype,"initialHandlePosition",void 0),xs([ut()],ys.prototype,"_startPaneRight",void 0),xs([ut()],ys.prototype,"_startPaneBottom",void 0),xs([ut()],ys.prototype,"_endPaneTop",void 0),xs([ut()],ys.prototype,"_endPaneLeft",void 0),xs([ut()],ys.prototype,"_handleLeft",void 0),xs([ut()],ys.prototype,"_handleTop",void 0),xs([ut()],ys.prototype,"_isDragActive",void 0),xs([ut()],ys.prototype,"_hover",void 0),xs([ut()],ys.prototype,"_hide",void 0),xs([ft({slot:"start",selector:"vscode-split-layout"})],ys.prototype,"_nestedLayoutsAtStart",void 0),xs([ft({slot:"end",selector:"vscode-split-layout"})],ys.prototype,"_nestedLayoutsAtEnd",void 0),ys=ms=xs([at("vscode-split-layout")],ys);const ws=[mt,r` + :host { + border-bottom: 1px solid transparent; + cursor: pointer; + display: block; + margin-bottom: -1px; + overflow: hidden; + padding: 7px 8px; + text-overflow: ellipsis; + user-select: none; + white-space: nowrap; + } + + :host([active]) { + border-bottom-color: var(--vscode-panelTitle-activeForeground); + color: var(--vscode-panelTitle-activeForeground); + } + + :host([panel]) { + border-bottom: 0; + margin-bottom: 0; + padding: 0; + } + + :host(:focus-visible) { + outline: none; + } + + .wrapper { + align-items: center; + color: var(--vscode-foreground); + display: flex; + min-height: 20px; + overflow: inherit; + text-overflow: inherit; + position: relative; + } + + .wrapper.panel { + color: var(--vscode-panelTitle-inactiveForeground); + } + + .wrapper.panel.active, + .wrapper.panel:hover { + color: var(--vscode-panelTitle-inactiveForeground); + } + + :host([panel]) .wrapper { + display: flex; + font-size: 11px; + height: 31px; + padding: 2px 10px; + text-transform: uppercase; + } + + .main { + overflow: inherit; + text-overflow: inherit; + } + + .active-indicator { + display: none; + } + + .active-indicator.panel.active { + border-top: 1px solid var(--vscode-panelTitle-activeBorder); + bottom: 4px; + display: block; + left: 8px; + pointer-events: none; + position: absolute; + right: 8px; + } + + :host(:focus-visible) .wrapper { + outline-color: var(--vscode-focusBorder); + outline-offset: 3px; + outline-style: solid; + outline-width: 1px; + } + + :host(:focus-visible) .wrapper.panel { + outline-offset: -2px; + } + + slot[name='content-before']::slotted(vscode-badge) { + margin-right: 8px; + } + + slot[name='content-after']::slotted(vscode-badge) { + margin-left: 8px; + } + `];var ks=function(t,e,s,i){for(var o,r=arguments.length,n=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i,l=t.length-1;l>=0;l--)(o=t[l])&&(n=(r<3?o(n):r>3?o(e,s,n):o(e,s))||n);return r>3&&n&&Object.defineProperty(e,s,n),n};let $s=class extends gt{constructor(){super(...arguments),this.active=!1,this.ariaControls="",this.panel=!1,this.role="tab",this.tabId=-1}attributeChangedCallback(t,e,s){if(super.attributeChangedCallback(t,e,s),"active"===t){const t=null!==s;this.ariaSelected=t?"true":"false",this.tabIndex=t?0:-1}}render(){return L` +
    +
    +
    +
    + +
    + `}};$s.styles=ws,ks([dt({type:Boolean,reflect:!0})],$s.prototype,"active",void 0),ks([dt({reflect:!0,attribute:"aria-controls"})],$s.prototype,"ariaControls",void 0),ks([dt({type:Boolean,reflect:!0})],$s.prototype,"panel",void 0),ks([dt({reflect:!0})],$s.prototype,"role",void 0),ks([dt({type:Number,reflect:!0,attribute:"tab-id"})],$s.prototype,"tabId",void 0),$s=ks([at("vscode-tab-header")],$s);const _s=[mt,r` + :host { + display: block; + overflow: hidden; + } + + :host(:focus-visible) { + outline-color: var(--vscode-focusBorder); + outline-offset: 3px; + outline-style: solid; + outline-width: 1px; + } + + :host([panel]) { + background-color: var(--vscode-panel-background); + } + `];var Cs=function(t,e,s,i){for(var o,r=arguments.length,n=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i,l=t.length-1;l>=0;l--)(o=t[l])&&(n=(r<3?o(n):r>3?o(e,s,n):o(e,s))||n);return r>3&&n&&Object.defineProperty(e,s,n),n};let Bs=class extends gt{constructor(){super(...arguments),this.hidden=!1,this.ariaLabelledby="",this.panel=!1,this.role="tabpanel",this.tabIndex=0}render(){return L` `}};Bs.styles=_s,Cs([dt({type:Boolean,reflect:!0})],Bs.prototype,"hidden",void 0),Cs([dt({reflect:!0,attribute:"aria-labelledby"})],Bs.prototype,"ariaLabelledby",void 0),Cs([dt({type:Boolean,reflect:!0})],Bs.prototype,"panel",void 0),Cs([dt({reflect:!0})],Bs.prototype,"role",void 0),Cs([dt({type:Number,reflect:!0})],Bs.prototype,"tabIndex",void 0),Bs=Cs([at("vscode-tab-panel")],Bs);const Ss=[mt,r` + :host { + display: table; + table-layout: fixed; + width: 100%; + } + + + ::slotted(vscode-table-row:nth-child(even)) { + background-color: var(--vsc-row-even-background); + } + + ::slotted(vscode-table-row:nth-child(odd)) { + background-color: var(--vsc-row-odd-background); + } + `];var zs=function(t,e,s,i){for(var o,r=arguments.length,n=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i,l=t.length-1;l>=0;l--)(o=t[l])&&(n=(r<3?o(n):r>3?o(e,s,n):o(e,s))||n);return r>3&&n&&Object.defineProperty(e,s,n),n};let As=class extends gt{constructor(){super(...arguments),this.role="rowgroup"}render(){return L` `}};As.styles=Ss,zs([dt({reflect:!0})],As.prototype,"role",void 0),As=zs([at("vscode-table-body")],As);const Os=[mt,r` + :host { + border-bottom-color: var(--vscode-editorGroup-border); + border-bottom-style: solid; + border-bottom-width: var(--vsc-row-border-bottom-width); + box-sizing: border-box; + color: var(--vscode-foreground); + display: table-cell; + font-family: var(--vscode-font-family); + font-size: var(--vscode-font-size); + height: 24px; + overflow: hidden; + padding-left: 10px; + text-overflow: ellipsis; + vertical-align: middle; + white-space: nowrap; + } + + :host([compact]) { + display: block; + height: auto; + padding-bottom: 5px; + width: 100% !important; + } + + :host([compact]:first-child) { + padding-top: 10px; + } + + :host([compact]:last-child) { + padding-bottom: 10px; + } + + .wrapper { + overflow: inherit; + text-overflow: inherit; + white-space: inherit; + width: 100%; + } + + .column-label { + font-weight: bold; + } + `];var Es=function(t,e,s,i){for(var o,r=arguments.length,n=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i,l=t.length-1;l>=0;l--)(o=t[l])&&(n=(r<3?o(n):r>3?o(e,s,n):o(e,s))||n);return r>3&&n&&Object.defineProperty(e,s,n),n};let js=class extends gt{constructor(){super(...arguments),this.role="cell",this.columnLabel="",this.compact=!1}render(){const t=this.columnLabel?L``:H;return L` +
    + ${t} + +
    + `}};js.styles=Os,Es([dt({reflect:!0})],js.prototype,"role",void 0),Es([dt({attribute:"column-label"})],js.prototype,"columnLabel",void 0),Es([dt({type:Boolean,reflect:!0})],js.prototype,"compact",void 0),js=Es([at("vscode-table-cell")],js);const Is=[mt,r` + :host { + background-color: var(--vscode-keybindingTable-headerBackground); + display: table; + table-layout: fixed; + width: 100%; + } + `];var Ms=function(t,e,s,i){for(var o,r=arguments.length,n=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i,l=t.length-1;l>=0;l--)(o=t[l])&&(n=(r<3?o(n):r>3?o(e,s,n):o(e,s))||n);return r>3&&n&&Object.defineProperty(e,s,n),n};let Fs=class extends gt{constructor(){super(...arguments),this.role="rowgroup"}render(){return L` `}};Fs.styles=Is,Ms([dt({reflect:!0})],Fs.prototype,"role",void 0),Fs=Ms([at("vscode-table-header")],Fs);const Ds=[mt,r` + :host { + box-sizing: border-box; + color: var(--vscode-foreground); + display: table-cell; + font-family: var(--vscode-font-family); + font-size: var(--vscode-font-size); + font-weight: bold; + line-height: 20px; + overflow: hidden; + padding-bottom: 5px; + padding-left: 10px; + padding-right: 0; + padding-top: 5px; + text-overflow: ellipsis; + white-space: nowrap; + } + + .wrapper { + box-sizing: inherit; + overflow: inherit; + text-overflow: inherit; + white-space: inherit; + width: 100%; + } + `];var Ns=function(t,e,s,i){for(var o,r=arguments.length,n=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i,l=t.length-1;l>=0;l--)(o=t[l])&&(n=(r<3?o(n):r>3?o(e,s,n):o(e,s))||n);return r>3&&n&&Object.defineProperty(e,s,n),n};let Ps=class extends gt{constructor(){super(...arguments),this.role="columnheader"}render(){return L` +
    + +
    + `}};Ps.styles=Ds,Ns([dt({reflect:!0})],Ps.prototype,"role",void 0),Ps=Ns([at("vscode-table-header-cell")],Ps);const Ts=[mt,r` + :host { + border-top-color: var(--vscode-editorGroup-border); + border-top-style: solid; + border-top-width: var(--vsc-row-border-top-width); + display: var(--vsc-row-display); + width: 100%; + } + `];var Vs=function(t,e,s,i){for(var o,r=arguments.length,n=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i,l=t.length-1;l>=0;l--)(o=t[l])&&(n=(r<3?o(n):r>3?o(e,s,n):o(e,s))||n);return r>3&&n&&Object.defineProperty(e,s,n),n};let Rs=class extends gt{constructor(){super(...arguments),this.role="row"}render(){return L` `}};Rs.styles=Ts,Vs([dt({reflect:!0})],Rs.prototype,"role",void 0),Rs=Vs([at("vscode-table-row")],Rs);const Ls=(t,e)=>{if("number"!=typeof t||Number.isNaN(t)){if("string"==typeof t&&/^[0-9.]+$/.test(t)){return Number(t)/e*100}if("string"==typeof t&&/^[0-9.]+%$/.test(t))return Number(t.substring(0,t.length-1));if("string"==typeof t&&/^[0-9.]+px$/.test(t)){return Number(t.substring(0,t.length-2))/e*100}return null}return t/e*100},Us=[mt,r` + :host { + display: block; + --vsc-row-even-background: transparent; + --vsc-row-odd-background: transparent; + --vsc-row-border-bottom-width: 0; + --vsc-row-border-top-width: 0; + --vsc-row-display: table-row; + } + + :host([bordered]), + :host([bordered-rows]) { + --vsc-row-border-bottom-width: 1px; + } + + :host([compact]) { + --vsc-row-display: block; + } + + :host([bordered][compact]), + :host([bordered-rows][compact]) { + --vsc-row-border-bottom-width: 0; + --vsc-row-border-top-width: 1px; + } + + :host([zebra]) { + --vsc-row-even-background: var(--vscode-keybindingTable-rowsBackground); + } + + :host([zebra-odd]) { + --vsc-row-odd-background: var(--vscode-keybindingTable-rowsBackground); + } + + ::slotted(vscode-table-row) { + width: 100%; + } + + .wrapper { + height: 100%; + max-width: 100%; + overflow: hidden; + position: relative; + width: 100%; + } + + .wrapper.select-disabled { + user-select: none; + } + + .wrapper.resize-cursor { + cursor: ew-resize; + } + + .wrapper.compact-view .header-slot-wrapper { + height: 0; + overflow: hidden; + } + + .scrollable { + height: 100%; + } + + .scrollable:before { + background-color: transparent; + content: ''; + display: block; + height: 1px; + position: absolute; + width: 100%; + } + + .wrapper:not(.compact-view) .scrollable:not([scrolled]):before { + background-color: var(--vscode-editorGroup-border); + } + + .sash { + visibility: hidden; + } + + :host([bordered-columns]) .sash, + :host([bordered]) .sash { + visibility: visible; + } + + :host([resizable]) .wrapper:hover .sash { + visibility: visible; + } + + .sash { + height: 100%; + position: absolute; + top: 0; + width: 1px; + } + + .wrapper.compact-view .sash { + display: none; + } + + .sash.resizable { + cursor: ew-resize; + } + + .sash-visible { + background-color: var(--vscode-editorGroup-border); + height: 100%; + position: absolute; + top: 30px; + width: 1px; + } + + .sash.hover .sash-visible { + background-color: var(--vscode-sash-hoverBorder); + transition: background-color 50ms linear 300ms; + } + + .sash .sash-clickable { + background-color: transparent; + height: 100%; + left: -2px; + position: absolute; + width: 5px; + } + `];var Hs=function(t,e,s,i){for(var o,r=arguments.length,n=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i,l=t.length-1;l>=0;l--)(o=t[l])&&(n=(r<3?o(n):r>3?o(e,s,n):o(e,s))||n);return r>3&&n&&Object.defineProperty(e,s,n),n};let qs=class extends gt{constructor(){super(...arguments),this.role="table",this.resizable=!1,this.responsive=!1,this.breakpoint=300,this.minColumnWidth="50px",this.delayedResizing=!1,this.compact=!1,this._sashPositions=[],this._isDragging=!1,this._sashHovers=[],this._columns=[],this._activeSashElementIndex=-1,this._activeSashCursorOffset=0,this._componentX=0,this._componentH=0,this._componentW=0,this._headerCells=[],this._cellsOfFirstRow=[],this._prevHeaderHeight=0,this._prevComponentHeight=0,this._componentResizeObserverCallback=()=>{this._memoizeComponentDimensions(),this._updateResizeHandlersSize(),this.responsive&&this._toggleCompactView()},this._headerResizeObserverCallback=()=>{this._updateResizeHandlersSize()},this._bodyResizeObserverCallback=()=>{let t=0,e=0;const s=this.getBoundingClientRect().height;this._assignedHeaderElements&&this._assignedHeaderElements.length&&(t=this._assignedHeaderElements[0].getBoundingClientRect().height),this._assignedBodyElements&&this._assignedBodyElements.length&&(e=this._assignedBodyElements[0].getBoundingClientRect().height);const i=e-t-s;this._scrollableElement.style.height=i>0?s-t+"px":"auto"},this._onResizingMouseMove=t=>{t.stopPropagation(),this._updateActiveSashPosition(t.pageX),this.delayedResizing?this._resizeColumns(!1):this._resizeColumns(!0)},this._onResizingMouseUp=t=>{this._resizeColumns(!0),this._updateActiveSashPosition(t.pageX),this._sashHovers[this._activeSashElementIndex]=!1,this._isDragging=!1,this._activeSashElementIndex=-1,document.removeEventListener("mousemove",this._onResizingMouseMove),document.removeEventListener("mouseup",this._onResizingMouseUp)}}set columns(t){this._columns=t,this.isConnected&&this._initDefaultColumnSizes()}get columns(){return this._columns}connectedCallback(){super.connectedCallback(),this._memoizeComponentDimensions(),this._initDefaultColumnSizes()}disconnectedCallback(){super.disconnectedCallback(),this._componentResizeObserver.unobserve(this),this._componentResizeObserver.disconnect(),this._bodyResizeObserver?.disconnect()}_px2Percent(t){return t/this._componentW*100}_percent2Px(t){return this._componentW*t/100}_memoizeComponentDimensions(){const t=this.getBoundingClientRect();this._componentH=t.height,this._componentW=t.width,this._componentX=t.x}_queryHeaderCells(){const t=this._assignedHeaderElements;return t&&t[0]?Array.from(t[0].querySelectorAll("vscode-table-header-cell")):[]}_getHeaderCells(){return this._headerCells.length||(this._headerCells=this._queryHeaderCells()),this._headerCells}_queryCellsOfFirstRow(){const t=this._assignedBodyElements;return t&&t[0]?Array.from(t[0].querySelectorAll("vscode-table-row:first-child vscode-table-cell")):[]}_getCellsOfFirstRow(){return this._cellsOfFirstRow.length||(this._cellsOfFirstRow=this._queryCellsOfFirstRow()),this._cellsOfFirstRow}_initResizeObserver(){this._componentResizeObserver=new ResizeObserver(this._componentResizeObserverCallback),this._componentResizeObserver.observe(this),this._headerResizeObserver=new ResizeObserver(this._headerResizeObserverCallback),this._headerResizeObserver.observe(this._headerElement)}_calcColWidthPercentages(){const t=this._getHeaderCells().length;let e=this.columns.slice(0,t);const s=e.filter((t=>"auto"===t)).length+t-e.length;let i=100;if(e=e.map((t=>{const e=Ls(t,this._componentW);return null===e?"auto":(i-=e,e)})),e.length"auto"===t?i/s:t)),e}_initHeaderCellSizes(t){this._getHeaderCells().forEach(((e,s)=>{e.style.width=`${t[s]}%`}))}_initBodyColumnSizes(t){this._getCellsOfFirstRow().forEach(((e,s)=>{e.style.width=`${t[s]}%`}))}_initSashes(t){const e=t.length;let s=0;this._sashPositions=[],t.forEach(((t,i)=>{if(i{s.style.height=`${e}px`,s.style.top=`${t.height}px`}))}_applyCompactViewColumnLabels(){const t=this._getHeaderCells().map((t=>t.innerText));this.querySelectorAll("vscode-table-row").forEach((e=>{e.querySelectorAll("vscode-table-cell").forEach(((e,s)=>{e.columnLabel=t[s],e.compact=!0}))}))}_clearCompactViewColumnLabels(){this.querySelectorAll("vscode-table-cell").forEach((t=>{t.columnLabel="",t.compact=!1}))}_toggleCompactView(){const t=this.getBoundingClientRect().width vscode-table-cell");this._cellsToResize=[],this._cellsToResize.push(l[o]),l[o+1]&&this._cellsToResize.push(l[o+1]),document.addEventListener("mousemove",this._onResizingMouseMove),document.addEventListener("mouseup",this._onResizingMouseUp)}_updateActiveSashPosition(t){const{prevSashPos:e,nextSashPos:s}=this._getSashPositions();let i=Ls(this.minColumnWidth,this._componentW);null===i&&(i=0);const o=e?e+i:i,r=s?s-i:100-i;let n=this._px2Percent(t-this._componentX-this._percent2Px(this._activeSashCursorOffset));n=Math.max(n,o),n=Math.min(n,r),this._sashPositions[this._activeSashElementIndex]=n,this.requestUpdate()}_getSashPositions(){return{sashPos:this._sashPositions[this._activeSashElementIndex],prevSashPos:this._sashPositions[this._activeSashElementIndex-1]||0,nextSashPos:this._sashPositions[this._activeSashElementIndex+1]||100}}_resizeColumns(t=!0){const{sashPos:e,prevSashPos:s,nextSashPos:i}=this._getSashPositions(),o=`${e-s}%`,r=`${i-e}%`;this._headerCellsToResize[0].style.width=o,this._headerCellsToResize[1]&&(this._headerCellsToResize[1].style.width=r),t&&(this._cellsToResize[0].style.width=o,this._cellsToResize[1]&&(this._cellsToResize[1].style.width=r))}render(){const t=this._sashPositions.map(((t,e)=>{const s=Bt({sash:!0,hover:this._sashHovers[e],resizable:this.resizable}),i=`${t}%`;return this.resizable?L` +
    +
    +
    +
    + `:L`
    +
    +
    `})),e=Bt({wrapper:!0,"select-disabled":this._isDragging,"resize-cursor":this._isDragging,"compact-view":this.compact});return L` +
    +
    + +
    + +
    +
    + +
    + +
    +
    + ${t} +
    + `}};qs.styles=Us,Hs([dt({reflect:!0})],qs.prototype,"role",void 0),Hs([dt({type:Boolean,reflect:!0})],qs.prototype,"resizable",void 0),Hs([dt({type:Boolean,reflect:!0})],qs.prototype,"responsive",void 0),Hs([dt({type:Number})],qs.prototype,"breakpoint",void 0),Hs([dt({type:Array})],qs.prototype,"columns",null),Hs([dt({attribute:"min-column-width"})],qs.prototype,"minColumnWidth",void 0),Hs([dt({type:Boolean,reflect:!0,attribute:"delayed-resizing"})],qs.prototype,"delayedResizing",void 0),Hs([dt({type:Boolean,reflect:!0})],qs.prototype,"compact",void 0),Hs([pt('slot[name="body"]')],qs.prototype,"_bodySlot",void 0),Hs([pt(".header")],qs.prototype,"_headerElement",void 0),Hs([pt(".scrollable")],qs.prototype,"_scrollableElement",void 0),Hs([function(t){return(e,s)=>vt(0,0,{get(){return(this.renderRoot??(bt??=document.createDocumentFragment())).querySelectorAll(t)}})}(".sash-visible")],qs.prototype,"_sashVisibleElements",void 0),Hs([ft({slot:"header",flatten:!0,selector:"vscode-table-header"})],qs.prototype,"_assignedHeaderElements",void 0),Hs([ft({slot:"body",flatten:!0,selector:"vscode-table-body"})],qs.prototype,"_assignedBodyElements",void 0),Hs([ut()],qs.prototype,"_sashPositions",void 0),Hs([ut()],qs.prototype,"_isDragging",void 0),qs=Hs([at("vscode-table")],qs);const Ks=[mt,r` + :host { + display: block; + } + + .header { + align-items: center; + display: flex; + font-family: var(--vscode-font-family); + font-size: var(--vscode-font-size); + font-weight: var(--vscode-font-weight); + width: 100%; + } + + .header { + border-bottom-color: var(--vscode-settings-headerBorder); + border-bottom-style: solid; + border-bottom-width: 1px; + } + + .header.panel { + background-color: var(--vscode-panel-background); + border-bottom-width: 0; + box-sizing: border-box; + padding-left: 8px; + padding-right: 8px; + } + + slot[name='addons'] { + display: block; + margin-left: auto; + } + `];var Ws=function(t,e,s,i){for(var o,r=arguments.length,n=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i,l=t.length-1;l>=0;l--)(o=t[l])&&(n=(r<3?o(n):r>3?o(e,s,n):o(e,s))||n);return r>3&&n&&Object.defineProperty(e,s,n),n};let Gs=class extends gt{constructor(){super(),this.panel=!1,this.role="tablist",this.selectedIndex=0,this._tabHeaders=[],this._tabPanels=[],this._componentId="",this._tabFocus=0,this._componentId=Se()}attributeChangedCallback(t,e,s){super.attributeChangedCallback(t,e,s),"selected-index"===t&&this._setActiveTab(),"panel"===t&&(this._tabHeaders.forEach((t=>t.panel=null!==s)),this._tabPanels.forEach((t=>t.panel=null!==s)))}_dispatchSelectEvent(){this.dispatchEvent(new CustomEvent("vsc-select",{detail:{selectedIndex:this.selectedIndex},composed:!0})),this.dispatchEvent(new CustomEvent("vsc-tabs-select",{detail:{selectedIndex:this.selectedIndex},composed:!0}))}_setActiveTab(){this._tabFocus=this.selectedIndex,this._tabPanels.forEach(((t,e)=>{t.hidden=e!==this.selectedIndex})),this._tabHeaders.forEach(((t,e)=>{t.active=e===this.selectedIndex}))}_focusPrevTab(){0===this._tabFocus?this._tabFocus=this._tabHeaders.length-1:this._tabFocus-=1}_focusNextTab(){this._tabFocus===this._tabHeaders.length-1?this._tabFocus=0:this._tabFocus+=1}_onHeaderKeyDown(t){"ArrowLeft"!==t.key&&"ArrowRight"!==t.key||(t.preventDefault(),this._tabHeaders[this._tabFocus].setAttribute("tabindex","-1"),"ArrowLeft"===t.key?this._focusPrevTab():"ArrowRight"===t.key&&this._focusNextTab(),this._tabHeaders[this._tabFocus].setAttribute("tabindex","0"),this._tabHeaders[this._tabFocus].focus()),"Enter"===t.key&&(t.preventDefault(),this.selectedIndex=this._tabFocus,this._dispatchSelectEvent())}_moveHeadersToHeaderSlot(){const t=this._mainSlotElements.filter((t=>t instanceof $s));t.length>0&&t.forEach((t=>t.setAttribute("slot","header")))}_onMainSlotChange(){this._moveHeadersToHeaderSlot(),this._tabPanels=this._mainSlotElements.filter((t=>t instanceof Bs)),this._tabPanels.forEach(((t,e)=>{t.ariaLabelledby=`t${this._componentId}-h${e}`,t.id=`t${this._componentId}-p${e}`,t.panel=this.panel})),this._setActiveTab()}_onHeaderSlotChange(){this._tabHeaders=this._headerSlotElements.filter((t=>t instanceof $s)),this._tabHeaders.forEach(((t,e)=>{t.tabId=e,t.id=`t${this._componentId}-h${e}`,t.ariaControls=`t${this._componentId}-p${e}`,t.panel=this.panel,t.active=e===this.selectedIndex}))}_onHeaderClick(t){const e=t.composedPath().find((t=>t instanceof $s));e&&(this.selectedIndex=e.tabId,this._setActiveTab(),this._dispatchSelectEvent())}render(){return L` +
    + + +
    + + `}};Gs.styles=Ks,Ws([dt({type:Boolean,reflect:!0})],Gs.prototype,"panel",void 0),Ws([dt({reflect:!0})],Gs.prototype,"role",void 0),Ws([dt({type:Number,reflect:!0,attribute:"selected-index"})],Gs.prototype,"selectedIndex",void 0),Ws([ft({slot:"header"})],Gs.prototype,"_headerSlotElements",void 0),Ws([ft()],Gs.prototype,"_mainSlotElements",void 0),Gs=Ws([at("vscode-tabs")],Gs);const Js=[mt,r` + :host { + --hover-outline-color: transparent; + --hover-outline-style: solid; + --hover-outline-width: 0; + --selected-outline-color: transparent; + --selected-outline-style: solid; + --selected-outline-width: 0; + + display: block; + outline: none; + user-select: none; + } + + .wrapper { + height: 100%; + } + + li { + list-style: none; + } + + ul, + li { + margin: 0; + padding: 0; + } + + ul { + position: relative; + } + + :host([indent-guides]) ul ul:before { + content: ''; + display: block; + height: 100%; + position: absolute; + bottom: 0; + left: var(--indent-guide-pos); + top: 0; + pointer-events: none; + width: 1px; + z-index: 1; + } + + .contents { + align-items: center; + display: flex; + font-family: var(--vscode-font-family); + font-size: var(--vscode-font-size); + font-weight: var(--vscode-font-weight); + outline-offset: -1px; + padding-right: 12px; + } + + .multi .contents { + align-items: flex-start; + } + + .contents:hover { + cursor: pointer; + } + + .arrow-container { + align-items: center; + display: flex; + height: 22px; + justify-content: center; + padding-left: 8px; + padding-right: 6px; + width: 16px; + } + + .icon-arrow { + color: currentColor; + display: block; + } + + .theme-icon { + display: block; + flex-shrink: 0; + margin-right: 6px; + } + + .image-icon { + background-repeat: no-repeat; + background-position: 0 center; + background-size: 16px; + display: block; + flex-shrink: 0; + margin-right: 6px; + height: 22px; + width: 16px; + } + + .multi .contents .theme-icon { + margin-top: 3px; + } + + .text-content { + display: flex; + line-height: 22px; + } + + .single .text-content { + display: block; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; + width: 100%; + } + + .description { + font-size: 0.9em; + line-height: 22px; + margin-left: 0.5em; + opacity: 0.95; + white-space: pre; + } + + .actions { + display: none; + } + + .contents.selected > .actions, + .contents.focused > .actions, + .contents:hover > .actions { + display: flex; + } + + .decorations { + align-items: center; + display: flex; + height: 22px; + margin-left: 5px; + } + + .filled-circle { + margin-right: 3px; + opacity: 0.4; + } + + .decoration-text { + font-size: 90%; + font-weight: 600; + margin-right: 3px; + opacity: 0.75; + } + + .filled-circle, + .decoration-text { + color: var(--color, currentColor); + } + + .contents:hover .filled-circle, + .contents:hover .decoration-text { + color: var(--hover-color, var(--color)); + } + + .contents.focused .filled-circle, + .contents.focused .decoration-text { + color: var(--focused-color, var(--color)); + } + + .contents.selected .filled-circle, + .contents.selected .decoration-text { + color: var(--selected-color, var(--color)); + } + + /* Theme colors */ + :host(:focus) .wrapper.has-not-focused-item { + outline: 1px solid var(--vscode-focusBorder); + } + + :host(:focus) .contents.selected, + :host(:focus) .contents.focused.selected { + color: var(--vscode-list-activeSelectionForeground); + background-color: var(--vscode-list-activeSelectionBackground); + } + + :host(:focus) .contents.selected .icon-arrow, + :host(:focus) .contents.selected.focused .icon-arrow, + :host(:focus) .contents.selected .theme-icon, + :host(:focus) .contents.selected.focused .theme-icon, + :host(:focus) .contents.selected .action-icon, + :host(:focus) .contents.selected.focused .action-icon { + color: var(--vscode-list-activeSelectionIconForeground); + } + + :host(:focus) .contents.focused { + color: var(--vscode-list-focusForeground); + background-color: var(--vscode-list-focusBackground); + } + + :host(:focus) .contents.selected.focused { + outline-color: var(--vscode-list-focusAndSelectionOutline, var(--vscode-list-focusOutline)); + } + + .contents:hover { + background-color: var(--vscode-list-hoverBackground); + color: var(--vscode-list-hoverForeground); + } + + .contents:hover, + .contents.selected:hover { + outline-color: var(--hover-outline-color); + outline-style: var(--hover-outline-style); + outline-width: var(--hover-outline-width); + } + + .contents.selected, + .contents.selected.focused { + background-color: var(--vscode-list-inactiveSelectionBackground); + color: var(--vscode-list-inactiveSelectionForeground); + } + + .contents.selected, + .contents.selected.focused { + outline-color: var(--selected-outline-color); + outline-style: var(--selected-outline-style); + outline-width: var(--selected-outline-width); + } + + .contents.selected .theme-icon { + color: var(--vscode-list-inactiveSelectionIconForeground); + } + + .contents.focused { + background-color: var(--vscode-list-inactiveFocusBackground); + outline: 1px dotted var(--vscode-list-inactiveFocusOutline); + } + + :host(:focus) .contents.focused { + outline: 1px solid var(--vscode-list-focusOutline); + } + + :host([indent-guides]) ul ul:before { + background-color: var(--vscode-tree-inactiveIndentGuidesStroke); + } + + :host([indent-guides]) ul ul.has-active-item:before { + background-color: var(--vscode-tree-indentGuidesStroke); + } + `];var Ys=function(t,e,s,i){for(var o,r=arguments.length,n=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i,l=t.length-1;l>=0;l--)(o=t[l])&&(n=(r<3?o(n):r>3?o(e,s,n):o(e,s))||n);return r>3&&n&&Object.defineProperty(e,s,n),n};const Xs=(t,e=[])=>{const s=[];return t.forEach(((t,i)=>{const o=[...e,i],r={...t,path:o};t.subItems&&(r.subItems=Xs(t.subItems,o)),s.push(r)})),s},Zs=t=>!!(t.subItems&&Array.isArray(t.subItems)&&t?.subItems?.length>0);let Qs=class extends gt{constructor(){super(...arguments),this.indent=8,this.arrows=!1,this.multiline=!1,this.tabindex=0,this.indentGuides=!1,this._data=[],this._selectedItem=null,this._focusedItem=null,this._selectedBranch=null,this._focusedBranch=null,this._handleComponentKeyDownBound=this._handleComponentKeyDown.bind(this)}set data(t){const e=this._data;this._data=Xs(t),this.requestUpdate("data",e)}get data(){return this._data}closeAll(){this._closeSubTreeRecursively(this.data),this.requestUpdate()}deselectAll(){this._deselectItemsRecursively(this.data),this.requestUpdate()}getItemByPath(t){return this._getItemByPath(t)}connectedCallback(){super.connectedCallback(),this.addEventListener("keydown",this._handleComponentKeyDownBound)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("keydown",this._handleComponentKeyDownBound)}_getItemByPath(t){let e=this._data,s=null;return t.forEach(((i,o)=>{o===t.length-1?s=e[i]:e=e[i].subItems})),s}_handleActionClick(t){t.stopPropagation();const e=t.target,s=e.dataset.itemPath,i=e.dataset.index;let o=null,r="",n="";if(s){const t=s.split("/").map((t=>Number(t)));if(o=this._getItemByPath(t),o?.actions){const t=Number(i);o.actions[t]&&(r=o.actions[t].actionId)}o?.value&&(n=o.value)}this.dispatchEvent(new CustomEvent("vsc-run-action",{detail:{actionId:r,item:o,value:n}})),this.dispatchEvent(new CustomEvent("vsc-tree-action",{detail:{actionId:r,item:o,value:n}}))}_renderIconVariant(t){const{type:e,value:s}=t;return"themeicon"===e?L``:L``}_renderIcon(t){const e={branch:{value:"folder",type:"themeicon"},open:{value:"folder-opened",type:"themeicon"},leaf:{value:"file",type:"themeicon"}};if(t.iconUrls)t.iconUrls.branch&&(e.branch={value:t.iconUrls.branch,type:"image"}),t.iconUrls.leaf&&(e.leaf={value:t.iconUrls.leaf,type:"image"}),t.iconUrls.open&&(e.open={value:t.iconUrls.open,type:"image"});else if("object"==typeof t.icons)t.icons.branch&&(e.branch={value:t.icons.branch,type:"themeicon"}),t.icons.leaf&&(e.leaf={value:t.icons.leaf,type:"themeicon"}),t.icons.open&&(e.open={value:t.icons.open,type:"themeicon"});else if(!t.icons)return L`${H}`;return Zs(t)?t.open?this._renderIconVariant(e.open):this._renderIconVariant(e.branch):this._renderIconVariant(e.leaf)}_renderArrow(t){if(!this.arrows||!Zs(t))return L`${H}`;const{open:e=!1}=t;return L` +
    + +
    + `}_renderActions(t){const e=[];return t.actions&&Array.isArray(t.actions)&&t.actions.forEach(((s,i)=>{if(s.icon){const o=L``;e.push(o)}})),e.length>0?L`
    ${e}
    `:L`${H}`}_renderDecorations(t){const e=[];return t.decorations&&Array.isArray(t.decorations)&&t.decorations.forEach((t=>{const{appearance:s="text",visibleWhen:i="always",content:o="",color:r="",focusedColor:n="",hoverColor:l="",selectedColor:a=""}=t,c=`visible-when-${i}`,h={};switch(r&&(h["--color"]=r),n&&(h["--focused-color"]=n),l&&(h["--hover-color"]=l),a&&(h["--selected-color"]=a),s){case"counter-badge":e.push(L`${o}`);break;case"filled-circle":e.push(L``);break;case"text":e.push(L`
    + ${o} +
    `)}})),e.length>0?L`
    + ${e} +
    `:L`${H}`}_renderTreeItem(t,e){const{open:s=!1,label:i,description:o="",tooltip:r,selected:n=!1,focused:l=!1,subItems:a=[]}=t,{path:c,itemType:h,hasFocusedItem:d=!1,hasSelectedItem:u=!1}=e,v=["contents"],p=s?["open"]:[],b=(c.length-1)*this.indent,f=this.arrows&&"leaf"===h?30+b:b,g=this._renderArrow(t),m=this._renderIcon(t),x=this.arrows?b+16:b+3,y=s&&"branch"===h?L`
      + ${this._renderTree(a,c)} +
    `:H,w=o?L`${o}`:H,k=this._renderActions(t),$=this._renderDecorations(t);return p.push(h),n&&v.push("selected"),l&&v.push("focused"),L` +
  • +
    + ${g}${m}${i}${w} + ${k} ${$} +
    + ${y} +
  • + `}_renderTree(t,e=[]){const s=[];return t?(t.forEach(((t,i)=>{const o=[...e,i],r=Zs(t)?"branch":"leaf",{selected:n=!1,focused:l=!1,hasFocusedItem:a=!1,hasSelectedItem:c=!1}=t;n&&(this._selectedItem=t),l&&(this._focusedItem=t),s.push(this._renderTreeItem(t,{path:o,itemType:r,hasFocusedItem:a,hasSelectedItem:c}))})),s):H}_selectItem(t){this._selectedItem&&(this._selectedItem.selected=!1),this._focusedItem&&(this._focusedItem.focused=!1),this._selectedItem=t,t.selected=!0,this._focusedItem=t,t.focused=!0,this._selectedBranch&&(this._selectedBranch.hasSelectedItem=!1);let e=null;if(t.path?.length&&t.path.length>1&&(e=this._getItemByPath(t.path.slice(0,-1))),Zs(t))this._selectedBranch=t,t.hasSelectedItem=!0,t.open=!t.open,t.open?(this._selectedBranch=t,t.hasSelectedItem=!0):e&&(this._selectedBranch=e,e.hasSelectedItem=!0);else if(t.path?.length&&t.path.length>1){const e=this._getItemByPath(t.path.slice(0,-1));e&&(this._selectedBranch=e,e.hasSelectedItem=!0)}else this._selectedBranch=t,t.hasSelectedItem=!0;this._emitSelectEvent(this._selectedItem,this._selectedItem.path.join("/")),this.requestUpdate()}_focusItem(t){this._focusedItem&&(this._focusedItem.focused=!1),this._focusedItem=t,t.focused=!0;const e=!!t?.subItems?.length;this._focusedBranch&&(this._focusedBranch.hasFocusedItem=!1);let s=null;t.path?.length&&t.path.length>1&&(s=this._getItemByPath(t.path.slice(0,-1))),e?t.open?(this._focusedBranch=t,t.hasFocusedItem=!0):!t.open&&s&&(this._focusedBranch=s,s.hasFocusedItem=!0):s&&(this._focusedBranch=s,s.hasFocusedItem=!0)}_closeSubTreeRecursively(t){t.forEach((t=>{t.open=!1,t.subItems&&t.subItems.length>0&&this._closeSubTreeRecursively(t.subItems)}))}_deselectItemsRecursively(t){t.forEach((t=>{t.selected&&(t.selected=!1),t.subItems&&t.subItems.length>0&&this._deselectItemsRecursively(t.subItems)}))}_emitSelectEvent(t,e){const{icons:s,label:i,open:o,value:r}=t,n={icons:s,itemType:Zs(t)?"branch":"leaf",label:i,open:o||!1,value:r||i,path:e};this.dispatchEvent(new CustomEvent("vsc-select",{bubbles:!0,composed:!0,detail:n})),this.dispatchEvent(new CustomEvent("vsc-tree-select",{detail:n}))}_focusPrevItem(){if(!this._focusedItem)return void this._focusItem(this._data[0]);const{path:t}=this._focusedItem;if(t&&t?.length>0){const e=t[t.length-1],s=t.length>1;if(e>0){const s=[...t];s[s.length-1]=e-1;const i=this._getItemByPath(s);let o=i;if(i?.open&&i.subItems?.length){const{subItems:t}=i;o=t[t.length-1]}this._focusItem(o)}else if(s){const e=[...t];e.pop(),this._focusItem(this._getItemByPath(e))}}else this._focusItem(this._data[0])}_focusNextItem(){if(!this._focusedItem)return void this._focusItem(this._data[0]);const{path:t,open:e}=this._focusedItem;if(e&&Array.isArray(this._focusedItem.subItems)&&this._focusedItem.subItems.length>0)return void this._focusItem(this._focusedItem.subItems[0]);const s=[...t];s[s.length-1]+=1;let i=this._getItemByPath(s);i?this._focusItem(i):(s.pop(),s.length>0&&(s[s.length-1]+=1,i=this._getItemByPath(s),i&&this._focusItem(i)))}_handleClick(t){const e=t.composedPath().find((t=>t.tagName&&"LI"===t.tagName.toUpperCase()));if(e){const t=(e.dataset.path||"").split("/").map((t=>Number(t))),s=this._getItemByPath(t);this._selectItem(s)}else this._focusedItem&&(this._focusedItem.focused=!1),this._focusedItem=null}_handleComponentKeyDown(t){const e=t.key;[" ","ArrowDown","ArrowUp","Enter","Escape"].includes(t.key)&&(t.stopPropagation(),t.preventDefault()),"Escape"===e&&(this._focusedItem=null),"ArrowUp"===e&&this._focusPrevItem(),"ArrowDown"===e&&this._focusNextItem(),"Enter"!==e&&" "!==e||this._focusedItem&&this._selectItem(this._focusedItem)}render(){const t=Bt({multi:this.multiline,single:!this.multiline,wrapper:!0,"has-not-focused-item":!this._focusedItem,"selection-none":!this._selectedItem,"selection-single":null!==this._selectedItem});return L` +
    +
      + ${this._renderTree(this._data)} +
    +
    + `}};Qs.styles=Js,Ys([dt({type:Array,reflect:!1})],Qs.prototype,"data",null),Ys([dt({type:Number})],Qs.prototype,"indent",void 0),Ys([dt({type:Boolean,reflect:!0})],Qs.prototype,"arrows",void 0),Ys([dt({type:Boolean,reflect:!0})],Qs.prototype,"multiline",void 0),Ys([dt({type:Number,reflect:!0})],Qs.prototype,"tabindex",void 0),Ys([dt({type:Boolean,reflect:!0,attribute:"indent-guides"})],Qs.prototype,"indentGuides",void 0),Ys([ut()],Qs.prototype,"_selectedItem",void 0),Ys([ut()],Qs.prototype,"_focusedItem",void 0),Ys([ut()],Qs.prototype,"_selectedBranch",void 0),Ys([ut()],Qs.prototype,"_focusedBranch",void 0),Qs=Ys([at("vscode-tree")],Qs);export{wt as VscodeBadge,Nt as VscodeButton,Zt as VscodeCheckbox,ee as VscodeCheckboxGroup,oe as VscodeCollapsible,he as VscodeContextMenu,le as VscodeContextMenuItem,ve as VscodeDivider,xe as VscodeFormContainer,ke as VscodeFormGroup,Ce as VscodeFormHelper,Mt as VscodeIcon,Te as VscodeLabel,is as VscodeMultiSelect,rs as VscodeOption,as as VscodeProgressRing,ds as VscodeRadio,Oe as VscodeRadioGroup,fs as VscodeScrollable,vs as VscodeSingleSelect,ys as VscodeSplitLayout,$s as VscodeTabHeader,Bs as VscodeTabPanel,qs as VscodeTable,As as VscodeTableBody,js as VscodeTableCell,Fs as VscodeTableHeader,Ps as VscodeTableHeaderCell,Rs as VscodeTableRow,Gs as VscodeTabs,Ie as VscodeTextarea,De as VscodeTextfield,Qs as VscodeTree}; diff --git a/webview/toolkit-1.2.1.min.js b/webview/toolkit-1.2.1.min.js deleted file mode 100644 index bea18320..00000000 --- a/webview/toolkit-1.2.1.min.js +++ /dev/null @@ -1,30 +0,0 @@ -const e=function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof global)return global;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;try{return new Function("return this")()}catch(e){return{}}}();void 0===e.trustedTypes&&(e.trustedTypes={createPolicy:(e,t)=>t});const t={configurable:!1,enumerable:!1,writable:!1};void 0===e.FAST&&Reflect.defineProperty(e,"FAST",Object.assign({value:Object.create(null)},t));const i=e.FAST;if(void 0===i.getById){const e=Object.create(null);Reflect.defineProperty(i,"getById",Object.assign({value(t,i){let s=e[t];return void 0===s&&(s=i?e[t]=i():null),s}},t))}const s=Object.freeze([]),o=e.FAST.getById(1,(()=>{const t=[],i=[];function s(){if(i.length)throw i.shift()}function o(e){try{e.call()}catch(e){i.push(e),setTimeout(s,0)}}function n(){let e=0;for(;e1024){for(let i=0,s=t.length-e;ie});let r=n;const a=`fast-${Math.random().toString(36).substring(2,8)}`,l=`${a}{`,d=`}${a}`,c=Object.freeze({supportsAdoptedStyleSheets:Array.isArray(document.adoptedStyleSheets)&&"replace"in CSSStyleSheet.prototype,setHTMLPolicy(e){if(r!==n)throw new Error("The HTML policy can only be set once.");r=e},createHTML:e=>r.createHTML(e),isMarker:e=>e&&8===e.nodeType&&e.data.startsWith(a),extractDirectiveIndexFromMarker:e=>parseInt(e.data.replace(`${a}:`,"")),createInterpolationPlaceholder:e=>`${l}${e}${d}`,createCustomAttributePlaceholder(e,t){return`${e}="${this.createInterpolationPlaceholder(t)}"`},createBlockPlaceholder:e=>`\x3c!--${a}:${e}--\x3e`,queueUpdate:o.enqueue,processUpdates:o.process,nextUpdate:()=>new Promise(o.enqueue),setAttribute(e,t,i){null==i?e.removeAttribute(t):e.setAttribute(t,i)},setBooleanAttribute(e,t,i){i?e.setAttribute(t,""):e.removeAttribute(t)},removeChildNodes(e){for(let t=e.firstChild;null!==t;t=e.firstChild)e.removeChild(t)},createTemplateWalker:e=>document.createTreeWalker(e,133,null,!1)});function h(e){const t=this.spillover;-1===t.indexOf(e)&&t.push(e)}function u(e){const t=this.spillover,i=t.indexOf(e);-1!==i&&t.splice(i,1)}function p(e){const t=this.spillover,i=this.source;for(let s=0,o=t.length;s{const e=/(:|&&|\|\||if)/,t=new WeakMap,i=new WeakMap,s=c.queueUpdate;let o,n=e=>{throw new Error("Must call enableArrayObservation before observing arrays.")};function r(e){let i=e.$fastController||t.get(e);return void 0===i&&(Array.isArray(e)?i=n(e):t.set(e,i=new g(e))),i}function a(e){let t=i.get(e);if(void 0===t){let s=Reflect.getPrototypeOf(e);for(;void 0===t&&null!==s;)t=i.get(s),s=Reflect.getPrototypeOf(s);t=void 0===t?[]:t.slice(0),i.set(e,t)}return t}class l{constructor(e){this.name=e,this.field=`_${e}`,this.callback=`${e}Changed`}getValue(e){return void 0!==o&&o.watch(e,this.name),e[this.field]}setValue(e,t){const i=this.field,s=e[i];if(s!==t){e[i]=t;const o=e[this.callback];"function"==typeof o&&o.call(e,s,t),r(e).notify(this.name)}}}class d extends b{constructor(e,t,i=!1){super(e,t),this.binding=e,this.isVolatileBinding=i,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(e,t){this.needsRefresh&&null!==this.last&&this.disconnect();const i=o;o=this.needsRefresh?this:void 0,this.needsRefresh=this.isVolatileBinding;const s=this.binding(e,t);return o=i,s}disconnect(){if(null!==this.last){let e=this.first;for(;void 0!==e;)e.notifier.unsubscribe(this,e.propertyName),e=e.next;this.last=null,this.needsRefresh=this.needsQueue=!0}}watch(e,t){const i=this.last,s=r(e),n=null===i?this.first:{};if(n.propertySource=e,n.propertyName=t,n.notifier=s,s.subscribe(this,t),null!==i){if(!this.needsRefresh){let t;o=void 0,t=i.propertySource[i.propertyName],o=this,e===t&&(this.needsRefresh=!0)}i.next=n}this.last=n}handleChange(){this.needsQueue&&(this.needsQueue=!1,s(this))}call(){null!==this.last&&(this.needsQueue=!0,this.notify(this))}records(){let e=this.first;return{next:()=>{const t=e;return void 0===t?{value:void 0,done:!0}:(e=e.next,{value:t,done:!1})},[Symbol.iterator]:function(){return this}}}}return Object.freeze({setArrayObserverFactory(e){n=e},getNotifier:r,track(e,t){void 0!==o&&o.watch(e,t)},trackVolatile(){void 0!==o&&(o.needsRefresh=!0)},notify(e,t){r(e).notify(t)},defineProperty(e,t){"string"==typeof t&&(t=new l(t)),a(e).push(t),Reflect.defineProperty(e,t.name,{enumerable:!0,get:function(){return t.getValue(this)},set:function(e){t.setValue(this,e)}})},getAccessors:a,binding(e,t,i=this.isVolatileBinding(e)){return new d(e,t,i)},isVolatileBinding:t=>e.test(t.toString())})}));function v(e,t){m.defineProperty(e,t)}const y=i.getById(3,(()=>{let e=null;return{get:()=>e,set(t){e=t}}}));class x{constructor(){this.index=0,this.length=0,this.parent=null,this.parentContext=null}get event(){return y.get()}get isEven(){return this.index%2==0}get isOdd(){return this.index%2!=0}get isFirst(){return 0===this.index}get isInMiddle(){return!this.isFirst&&!this.isLast}get isLast(){return this.index===this.length-1}static setEvent(e){y.set(e)}}m.defineProperty(x.prototype,"index"),m.defineProperty(x.prototype,"length");const C=Object.seal(new x);class w{constructor(){this.targetIndex=0}}class $ extends w{constructor(){super(...arguments),this.createPlaceholder=c.createInterpolationPlaceholder}}class k extends w{constructor(e,t,i){super(),this.name=e,this.behavior=t,this.options=i}createPlaceholder(e){return c.createCustomAttributePlaceholder(this.name,e)}createBehavior(e){return new this.behavior(e,this.options)}}function T(e,t){this.source=e,this.context=t,null===this.bindingObserver&&(this.bindingObserver=m.binding(this.binding,this,this.isBindingVolatile)),this.updateTarget(this.bindingObserver.observe(e,t))}function I(e,t){this.source=e,this.context=t,this.target.addEventListener(this.targetName,this)}function O(){this.bindingObserver.disconnect(),this.source=null,this.context=null}function R(){this.bindingObserver.disconnect(),this.source=null,this.context=null;const e=this.target.$fastView;void 0!==e&&e.isComposed&&(e.unbind(),e.needsBindOnly=!0)}function A(){this.target.removeEventListener(this.targetName,this),this.source=null,this.context=null}function S(e){c.setAttribute(this.target,this.targetName,e)}function E(e){c.setBooleanAttribute(this.target,this.targetName,e)}function D(e){if(null==e&&(e=""),e.create){this.target.textContent="";let t=this.target.$fastView;void 0===t?t=e.create():this.target.$fastTemplate!==e&&(t.isComposed&&(t.remove(),t.unbind()),t=e.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=e)}else{const t=this.target.$fastView;void 0!==t&&t.isComposed&&(t.isComposed=!1,t.remove(),t.needsBindOnly?t.needsBindOnly=!1:t.unbind()),this.target.textContent=e}}function P(e){this.target[this.targetName]=e}function B(e){const t=this.classVersions||Object.create(null),i=this.target;let s=this.version||0;if(null!=e&&e.length){const o=e.split(/\s+/);for(let e=0,n=o.length;ec.createHTML(e(t,i))}break;case"?":this.cleanedTargetName=e.substr(1),this.updateTarget=E;break;case"@":this.cleanedTargetName=e.substr(1),this.bind=I,this.unbind=A;break;default:this.cleanedTargetName=e,"class"===e&&(this.updateTarget=B)}}targetAtContent(){this.updateTarget=D,this.unbind=R}createBehavior(e){return new L(e,this.binding,this.isBindingVolatile,this.bind,this.unbind,this.updateTarget,this.cleanedTargetName)}}class L{constructor(e,t,i,s,o,n,r){this.source=null,this.context=null,this.bindingObserver=null,this.target=e,this.binding=t,this.isBindingVolatile=i,this.bind=s,this.unbind=o,this.updateTarget=n,this.targetName=r}handleChange(){this.updateTarget(this.bindingObserver.observe(this.source,this.context))}handleEvent(e){x.setEvent(e);const t=this.binding(this.source,this.context);x.setEvent(null),!0!==t&&e.preventDefault()}}let V=null;class H{addFactory(e){e.targetIndex=this.targetIndex,this.behaviorFactories.push(e)}captureContentBinding(e){e.targetAtContent(),this.addFactory(e)}reset(){this.behaviorFactories=[],this.targetIndex=-1}release(){V=this}static borrow(e){const t=V||new H;return t.directives=e,t.reset(),V=null,t}}function M(e){if(1===e.length)return e[0];let t;const i=e.length,s=e.map((e=>"string"==typeof e?()=>e:(t=e.targetName||t,e.binding))),o=new F(((e,t)=>{let o="";for(let n=0;na)),d.targetName=r.name):d=M(l),null!==d&&(t.removeAttributeNode(r),o--,n--,e.addFactory(d))}}function _(e,t,i){const s=z(e,t.textContent);if(null!==s){let o=t;for(let n=0,r=s.length;n0}const t=this.fragment.cloneNode(!0),i=this.viewBehaviorFactories,s=new Array(this.behaviorCount),o=c.createTemplateWalker(t);let n=0,r=this.targetOffset,a=o.nextNode();for(let e=i.length;n=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/;function W(e,...t){const i=[];let s="";for(let o=0,n=e.length-1;oe}if("function"==typeof r&&(r=new F(r)),r instanceof $){const e=G.exec(n);null!==e&&(r.targetName=e[2])}r instanceof w?(s+=r.createPlaceholder(i.length),i.push(r)):s+=r}return s+=e[e.length-1],new K(s,i)}class Q{constructor(){this.targets=new WeakSet,this.behaviors=null}addStylesTo(e){this.targets.add(e)}removeStylesFrom(e){this.targets.delete(e)}isAttachedTo(e){return this.targets.has(e)}withBehaviors(...e){return this.behaviors=null===this.behaviors?e:this.behaviors.concat(e),this}}function Y(e){return e.map((e=>e instanceof Q?Y(e.styles):[e])).reduce(((e,t)=>e.concat(t)),[])}function X(e){return e.map((e=>e instanceof Q?e.behaviors:null)).reduce(((e,t)=>null===t?e:(null===e&&(e=[]),e.concat(t))),null)}Q.create=(()=>{if(c.supportsAdoptedStyleSheets){const e=new Map;return t=>new J(t,e)}return e=>new ee(e)})();class J extends Q{constructor(e,t){super(),this.styles=e,this.styleSheetCache=t,this._styleSheets=void 0,this.behaviors=X(e)}get styleSheets(){if(void 0===this._styleSheets){const e=this.styles,t=this.styleSheetCache;this._styleSheets=Y(e).map((e=>{if(e instanceof CSSStyleSheet)return e;let i=t.get(e);return void 0===i&&(i=new CSSStyleSheet,i.replaceSync(e),t.set(e,i)),i}))}return this._styleSheets}addStylesTo(e){e.adoptedStyleSheets=[...e.adoptedStyleSheets,...this.styleSheets],super.addStylesTo(e)}removeStylesFrom(e){const t=this.styleSheets;e.adoptedStyleSheets=e.adoptedStyleSheets.filter((e=>-1===t.indexOf(e))),super.removeStylesFrom(e)}}let Z=0;class ee extends Q{constructor(e){super(),this.styles=e,this.behaviors=null,this.behaviors=X(e),this.styleSheets=Y(e),this.styleClass="fast-style-class-"+ ++Z}addStylesTo(e){const t=this.styleSheets,i=this.styleClass;e=this.normalizeTarget(e);for(let s=0;se?"true":"false",fromView:e=>null!=e&&"false"!==e&&!1!==e&&0!==e},ie={toView(e){if(null==e)return null;const t=1*e;return isNaN(t)?null:t.toString()},fromView(e){if(null==e)return null;const t=1*e;return isNaN(t)?null:t}};class se{constructor(e,t,i=t.toLowerCase(),s="reflect",o){this.guards=new Set,this.Owner=e,this.name=t,this.attribute=i,this.mode=s,this.converter=o,this.fieldName=`_${t}`,this.callbackName=`${t}Changed`,this.hasCallback=this.callbackName in e.prototype,"boolean"===s&&void 0===o&&(this.converter=te)}setValue(e,t){const i=e[this.fieldName],s=this.converter;void 0!==s&&(t=s.fromView(t)),i!==t&&(e[this.fieldName]=t,this.tryReflectToAttribute(e),this.hasCallback&&e[this.callbackName](i,t),e.$fastController.notify(this.name))}getValue(e){return m.track(e,this.name),e[this.fieldName]}onAttributeChangedCallback(e,t){this.guards.has(e)||(this.guards.add(e),this.setValue(e,t),this.guards.delete(e))}tryReflectToAttribute(e){const t=this.mode,i=this.guards;i.has(e)||"fromView"===t||c.queueUpdate((()=>{i.add(e);const s=e[this.fieldName];switch(t){case"reflect":const t=this.converter;c.setAttribute(e,this.attribute,void 0!==t?t.toView(s):s);break;case"boolean":c.setBooleanAttribute(e,this.attribute,s)}i.delete(e)}))}static collect(e,...t){const i=[];t.push(e.attributes);for(let s=0,o=t.length;s1&&(i.property=t);const s=e.constructor.attributes||(e.constructor.attributes=[]);s.push(i)}return arguments.length>1?(i={},void s(e,t)):(i=void 0===e?{}:e,s)}const ne={mode:"open"},re={},ae=i.getById(4,(()=>{const e=new Map;return Object.freeze({register:t=>!e.has(t.type)&&(e.set(t.type,t),!0),getByType:t=>e.get(t)})}));class le{constructor(e,t=e.definition){"string"==typeof t&&(t={name:t}),this.type=e,this.name=t.name,this.template=t.template;const i=se.collect(e,t.attributes),s=new Array(i.length),o={},n={};for(let e=0,t=i.length;e0){const t=this.boundObservables=Object.create(null);for(let i=0,o=s.length;ipe(e),define:(e,t)=>new le(e,t).define().type});class be{createCSS(){return""}createBehavior(){}}function ge(e,...t){const{styles:i,behaviors:s}=function(e,t){const i=[];let s="";const o=[];for(let n=0,r=e.length-1;n0||i>0;){if(0===t){o.push(2),i--;continue}if(0===i){o.push(3),t--;continue}const n=e[t-1][i-1],r=e[t-1][i],a=e[t][i-1];let l;l=r=0){e.splice(t,1),t--,r-=i.addedCount-i.removed.length,o.addedCount+=i.addedCount-s;const a=o.removed.length+i.removed.length-s;if(o.addedCount||a){let e=i.removed;if(o.indexi.index+i.addedCount){const t=o.removed.slice(i.index+i.addedCount-o.index);ye.apply(e,t)}o.removed=e,i.indexs?i=s-e.addedCount:i<0&&(i=s+e.removed.length+i-e.addedCount),i<0&&(i=0),e.index=i,e}class ke extends b{constructor(e){super(e),this.oldCollection=void 0,this.splices=void 0,this.needsQueue=!0,this.call=this.flush,Reflect.defineProperty(e,"$fastController",{value:this,enumerable:!1})}addSplice(e){void 0===this.splices?this.splices=[e]:this.splices.push(e),this.needsQueue&&(this.needsQueue=!1,c.queueUpdate(this))}reset(e){this.oldCollection=e,this.needsQueue&&(this.needsQueue=!1,c.queueUpdate(this))}flush(){const e=this.splices,t=this.oldCollection;if(void 0===e&&void 0===t)return;this.needsQueue=!0,this.splices=void 0,this.oldCollection=void 0;const i=void 0===t?Ce(this.source,e):ve(this.source,0,this.source.length,t,0,t.length);this.notify(i)}}class Te{constructor(e,t){this.target=e,this.propertyName=t}bind(e){e[this.propertyName]=this.target}unbind(){}}function Ie(e){return new k("fast-ref",Te,e)}function Oe(e,t){const i="function"==typeof t?t:()=>t;return(t,s)=>e(t,s)?i(t,s):null}function Re(e,t,i,s){e.bind(t[i],s)}function Ae(e,t,i,s){const o=Object.create(s);o.index=i,o.length=t.length,e.bind(t[i],o)}Object.freeze({positioning:!1,recycle:!0});class Se{constructor(e,t,i,s,o,n){this.location=e,this.itemsBinding=t,this.templateBinding=s,this.options=n,this.source=null,this.views=[],this.items=null,this.itemsObserver=null,this.originalContext=void 0,this.childContext=void 0,this.bindView=Re,this.itemsBindingObserver=m.binding(t,this,i),this.templateBindingObserver=m.binding(s,this,o),n.positioning&&(this.bindView=Ae)}bind(e,t){this.source=e,this.originalContext=t,this.childContext=Object.create(t),this.childContext.parent=e,this.childContext.parentContext=this.originalContext,this.items=this.itemsBindingObserver.observe(e,this.originalContext),this.template=this.templateBindingObserver.observe(e,this.originalContext),this.observeItems(!0),this.refreshAllViews()}unbind(){this.source=null,this.items=null,null!==this.itemsObserver&&this.itemsObserver.unsubscribe(this),this.unbindAllViews(),this.itemsBindingObserver.disconnect(),this.templateBindingObserver.disconnect()}handleChange(e,t){e===this.itemsBinding?(this.items=this.itemsBindingObserver.observe(this.source,this.originalContext),this.observeItems(),this.refreshAllViews()):e===this.templateBinding?(this.template=this.templateBindingObserver.observe(this.source,this.originalContext),this.refreshAllViews(!0)):this.updateViews(t)}observeItems(e=!1){if(!this.items)return void(this.items=s);const t=this.itemsObserver,i=this.itemsObserver=m.getNotifier(this.items),o=t!==i;o&&null!==t&&t.unsubscribe(this),(o||e)&&i.subscribe(this)}updateViews(e){const t=this.childContext,i=this.views,s=[],o=this.bindView;let n=0;for(let t=0,o=e.length;t0?s.shift():a.create();i.splice(d,0,l),o(l,r,d,t),l.insertBefore(n)}}for(let e=0,t=s.length;enew ke(e)));const e=Array.prototype;if(e.$fastPatch)return;Reflect.defineProperty(e,"$fastPatch",{value:1,enumerable:!1});const t=e.pop,i=e.push,s=e.reverse,o=e.shift,n=e.sort,r=e.splice,a=e.unshift;e.pop=function(){const e=this.length>0,i=t.apply(this,arguments),s=this.$fastController;return void 0!==s&&e&&s.addSplice(me(this.length,[i],0)),i},e.push=function(){const e=i.apply(this,arguments),t=this.$fastController;return void 0!==t&&t.addSplice($e(me(this.length-arguments.length,[],arguments.length),this)),e},e.reverse=function(){let e;const t=this.$fastController;void 0!==t&&(t.flush(),e=this.slice());const i=s.apply(this,arguments);return void 0!==t&&t.reset(e),i},e.shift=function(){const e=this.length>0,t=o.apply(this,arguments),i=this.$fastController;return void 0!==i&&e&&i.addSplice(me(0,[t],0)),t},e.sort=function(){let e;const t=this.$fastController;void 0!==t&&(t.flush(),e=this.slice());const i=n.apply(this,arguments);return void 0!==t&&t.reset(e),i},e.splice=function(){const e=r.apply(this,arguments),t=this.$fastController;return void 0!==t&&t.addSplice($e(me(+arguments[0],e,arguments.length>2?arguments.length-2:0),this)),e},e.unshift=function(){const e=a.apply(this,arguments),t=this.$fastController;return void 0!==t&&t.addSplice($e(me(0,[],arguments.length),this)),e}}(),this.isItemsBindingVolatile=m.isVolatileBinding(e),this.isTemplateBindingVolatile=m.isVolatileBinding(t)}createBehavior(e){return new Se(e,this.itemsBinding,this.isItemsBindingVolatile,this.templateBinding,this.isTemplateBindingVolatile,this.options)}}function De(e){return e?function(t,i,s){return 1===t.nodeType&&t.matches(e)}:function(e,t,i){return 1===e.nodeType}}class Pe{constructor(e,t){this.target=e,this.options=t,this.source=null}bind(e){const t=this.options.property;this.shouldUpdate=m.getAccessors(e).some((e=>e.name===t)),this.source=e,this.updateTarget(this.computeNodes()),this.shouldUpdate&&this.observe()}unbind(){this.updateTarget(s),this.source=null,this.shouldUpdate&&this.disconnect()}handleEvent(){this.updateTarget(this.computeNodes())}computeNodes(){let e=this.getNodes();return void 0!==this.options.filter&&(e=e.filter(this.options.filter)),e}updateTarget(e){this.source[this.options.property]=e}}class Be extends Pe{constructor(e,t){super(e,t)}observe(){this.target.addEventListener("slotchange",this)}disconnect(){this.target.removeEventListener("slotchange",this)}getNodes(){return this.target.assignedNodes(this.options)}}function Fe(e){return"string"==typeof e&&(e={property:e}),new k("fast-slotted",Be,e)}class Le extends Pe{constructor(e,t){super(e,t),this.observer=null,t.childList=!0}observe(){null===this.observer&&(this.observer=new MutationObserver(this.handleEvent.bind(this))),this.observer.observe(this.target,this.options)}disconnect(){this.observer.disconnect()}getNodes(){return"subtree"in this.options?Array.from(this.target.querySelectorAll(this.options.selector)):Array.from(this.target.childNodes)}}function Ve(e){return"string"==typeof e&&(e={property:e}),new k("fast-children",Le,e)}class He{handleStartContentChange(){this.startContainer.classList.toggle("start",this.start.assignedNodes().length>0)}handleEndContentChange(){this.endContainer.classList.toggle("end",this.end.assignedNodes().length>0)}}const Me=(e,t)=>W`t.end?"end":void 0}>${t.end||""}`,Ne=(e,t)=>W`${t.start||""}`; -/*! ***************************************************************************** -Copyright (c) Microsoft Corporation. - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH -REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY -AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, -INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR -OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR -PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */ -function ze(e,t,i,s){var o,n=arguments.length,r=n<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(n<3?o(r):n>3?o(t,i,r):o(t,i))||r);return n>3&&r&&Object.defineProperty(t,i,r),r}W``,W``;const je=new Map;"metadata"in Reflect||(Reflect.metadata=function(e,t){return function(i){Reflect.defineMetadata(e,t,i)}},Reflect.defineMetadata=function(e,t,i){let s=je.get(i);void 0===s&&je.set(i,s=new Map),s.set(e,t)},Reflect.getOwnMetadata=function(e,t){const i=je.get(t);if(void 0!==i)return i.get(e)});class _e{constructor(e,t){this.container=e,this.key=t}instance(e){return this.registerResolver(0,e)}singleton(e){return this.registerResolver(1,e)}transient(e){return this.registerResolver(2,e)}callback(e){return this.registerResolver(3,e)}cachedCallback(e){return this.registerResolver(3,ht(e))}aliasTo(e){return this.registerResolver(5,e)}registerResolver(e,t){const{container:i,key:s}=this;return this.container=this.key=void 0,i.registerResolver(s,new Ze(s,e,t))}}function qe(e){const t=e.slice(),i=Object.keys(e),s=i.length;let o;for(let n=0;nnew Ze(e,1,e),transient:e=>new Ze(e,2,e)}),Ke=Object.freeze({default:Object.freeze({parentLocator:()=>null,responsibleForOwnerRequests:!1,defaultResolver:Ue.singleton})}),Ge=new Map;function We(e){return t=>Reflect.getOwnMetadata(e,t)}let Qe=null;const Ye=Object.freeze({createContainer:e=>new dt(null,Object.assign({},Ke.default,e)),findResponsibleContainer(e){const t=e.$$container$$;return t&&t.responsibleForOwnerRequests?t:Ye.findParentContainer(e)},findParentContainer(e){const t=new CustomEvent(at,{bubbles:!0,composed:!0,cancelable:!0,detail:{container:void 0}});return e.dispatchEvent(t),t.detail.container||Ye.getOrCreateDOMContainer()},getOrCreateDOMContainer:(e,t)=>e?e.$$container$$||new dt(e,Object.assign({},Ke.default,t,{parentLocator:Ye.findParentContainer})):Qe||(Qe=new dt(null,Object.assign({},Ke.default,t,{parentLocator:()=>null}))),getDesignParamtypes:We("design:paramtypes"),getAnnotationParamtypes:We("di:paramtypes"),getOrCreateAnnotationParamTypes(e){let t=this.getAnnotationParamtypes(e);return void 0===t&&Reflect.defineMetadata("di:paramtypes",t=[],e),t},getDependencies(e){let t=Ge.get(e);if(void 0===t){const i=e.inject;if(void 0===i){const i=Ye.getDesignParamtypes(e),s=Ye.getAnnotationParamtypes(e);if(void 0===i)if(void 0===s){const i=Object.getPrototypeOf(e);t="function"==typeof i&&i!==Function.prototype?qe(Ye.getDependencies(i)):[]}else t=qe(s);else if(void 0===s)t=qe(i);else{t=qe(i);let e,o=s.length;for(let i=0;i{Ye.findResponsibleContainer(this).get(i)!==this[o]&&(this[o]=e,s.notify(t))};s.subscribe({handleChange:n},"isConnected")}}return e}})},createInterface(e,t){const i="function"==typeof e?e:t,s="string"==typeof e?e:e&&"friendlyName"in e&&e.friendlyName||bt,o="string"!=typeof e&&(e&&"respectConnection"in e&&e.respectConnection||!1),n=function(e,t,i){if(null==e||void 0!==new.target)throw new Error(`No registration for interface: '${n.friendlyName}'`);if(t)Ye.defineProperty(e,t,n,o);else{Ye.getOrCreateAnnotationParamTypes(e)[i]=n}};return n.$isInterface=!0,n.friendlyName=null==s?"(anonymous)":s,null!=i&&(n.register=function(e,t){return i(new _e(e,null!=t?t:n))}),n.toString=function(){return`InterfaceSymbol<${n.friendlyName}>`},n},inject:(...e)=>function(t,i,s){if("number"==typeof s){const i=Ye.getOrCreateAnnotationParamTypes(t),o=e[0];void 0!==o&&(i[s]=o)}else if(i)Ye.defineProperty(t,i,e[0]);else{const i=s?Ye.getOrCreateAnnotationParamTypes(s.value):Ye.getOrCreateAnnotationParamTypes(t);let o;for(let t=0;t(e.register=function(t){return ut.transient(e,e).register(t)},e.registerInRequestor=!1,e),singleton:(e,t=Je)=>(e.register=function(t){return ut.singleton(e,e).register(t)},e.registerInRequestor=t.scoped,e)}),Xe=Ye.createInterface("Container");Ye.inject;const Je={scoped:!1};class Ze{constructor(e,t,i){this.key=e,this.strategy=t,this.state=i,this.resolving=!1}get $isResolver(){return!0}register(e){return e.registerResolver(this.key,this)}resolve(e,t){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=e.getFactory(this.state).construct(t),this.strategy=0,this.resolving=!1,this.state;case 2:{const i=e.getFactory(this.state);if(null===i)throw new Error(`Resolver for ${String(this.key)} returned a null factory`);return i.construct(t)}case 3:return this.state(e,t,this);case 4:return this.state[0].resolve(e,t);case 5:return t.get(this.state);default:throw new Error(`Invalid resolver strategy specified: ${this.strategy}.`)}}getFactory(e){var t,i,s;switch(this.strategy){case 1:case 2:return e.getFactory(this.state);case 5:return null!==(s=null===(i=null===(t=e.getResolver(this.state))||void 0===t?void 0:t.getFactory)||void 0===i?void 0:i.call(t,e))&&void 0!==s?s:null;default:return null}}}function et(e){return this.get(e)}function tt(e,t){return t(e)}class it{constructor(e,t){this.Type=e,this.dependencies=t,this.transformers=null}construct(e,t){let i;return i=void 0===t?new this.Type(...this.dependencies.map(et,e)):new this.Type(...this.dependencies.map(et,e),...t),null==this.transformers?i:this.transformers.reduce(tt,i)}registerTransformer(e){(this.transformers||(this.transformers=[])).push(e)}}const st={$isResolver:!0,resolve:(e,t)=>t};function ot(e){return"function"==typeof e.register}function nt(e){return function(e){return ot(e)&&"boolean"==typeof e.registerInRequestor}(e)&&e.registerInRequestor}const rt=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"]),at="__DI_LOCATE_PARENT__",lt=new Map;class dt{constructor(e,t){this.owner=e,this.config=t,this._parent=void 0,this.registerDepth=0,this.context=null,null!==e&&(e.$$container$$=this),this.resolvers=new Map,this.resolvers.set(Xe,st),e instanceof Node&&e.addEventListener(at,(e=>{e.composedPath()[0]!==this.owner&&(e.detail.container=this,e.stopImmediatePropagation())}))}get parent(){return void 0===this._parent&&(this._parent=this.config.parentLocator(this.owner)),this._parent}get depth(){return null===this.parent?0:this.parent.depth+1}get responsibleForOwnerRequests(){return this.config.responsibleForOwnerRequests}registerWithContext(e,...t){return this.context=e,this.register(...t),this.context=null,this}register(...e){if(100==++this.registerDepth)throw new Error("Unable to autoregister dependency");let t,i,s,o,n;const r=this.context;for(let a=0,l=e.length;athis}))}jitRegister(e,t){if("function"!=typeof e)throw new Error(`Attempted to jitRegister something that is not a constructor: '${e}'. Did you forget to register this dependency?`);if(rt.has(e.name))throw new Error(`Attempted to jitRegister an intrinsic type: ${e.name}. Did you forget to add @inject(Key)`);if(ot(e)){const i=e.register(t);if(!(i instanceof Object)||null==i.resolve){const i=t.resolvers.get(e);if(null!=i)return i;throw new Error("A valid resolver was not returned from the static register method")}return i}if(e.$isInterface)throw new Error(`Attempted to jitRegister an interface: ${e.friendlyName}`);{const i=this.config.defaultResolver(e,t);return t.resolvers.set(e,i),i}}}const ct=new WeakMap;function ht(e){return function(t,i,s){if(ct.has(s))return ct.get(s);const o=e(t,i,s);return ct.set(s,o),o}}const ut=Object.freeze({instance:(e,t)=>new Ze(e,0,t),singleton:(e,t)=>new Ze(e,1,t),transient:(e,t)=>new Ze(e,2,t),callback:(e,t)=>new Ze(e,3,t),cachedCallback:(e,t)=>new Ze(e,3,ht(t)),aliasTo:(e,t)=>new Ze(t,5,e)});function pt(e){if(null==e)throw new Error("key/value cannot be null or undefined. Are you trying to inject/register something that doesn't exist with DI?")}function ft(e,t,i){if(e instanceof Ze&&4===e.strategy){const s=e.state;let o=s.length;const n=new Array(o);for(;o--;)n[o]=s[o].resolve(t,i);return n}return[e.resolve(t,i)]}const bt="(anonymous)";function gt(e){return"object"==typeof e&&null!==e||"function"==typeof e}const mt=function(){const e=new WeakMap;let t=!1,i="",s=0;return function(o){return t=e.get(o),void 0===t&&(i=o.toString(),s=i.length,t=s>=29&&s<=100&&125===i.charCodeAt(s-1)&&i.charCodeAt(s-2)<=32&&93===i.charCodeAt(s-3)&&101===i.charCodeAt(s-4)&&100===i.charCodeAt(s-5)&&111===i.charCodeAt(s-6)&&99===i.charCodeAt(s-7)&&32===i.charCodeAt(s-8)&&101===i.charCodeAt(s-9)&&118===i.charCodeAt(s-10)&&105===i.charCodeAt(s-11)&&116===i.charCodeAt(s-12)&&97===i.charCodeAt(s-13)&&110===i.charCodeAt(s-14)&&88===i.charCodeAt(s-15),e.set(o,t)),t}}(),vt={};function yt(e){switch(typeof e){case"number":return e>=0&&(0|e)===e;case"string":{const t=vt[e];if(void 0!==t)return t;const i=e.length;if(0===i)return vt[e]=!1;let s=0;for(let t=0;t1||s<48||s>57)return vt[e]=!1;return vt[e]=!0}default:return!1}}function xt(e){return`${e.toLowerCase()}:presentation`}const Ct=new Map,wt=Object.freeze({define(e,t,i){const s=xt(e);void 0===Ct.get(s)?Ct.set(s,t):Ct.set(s,!1),i.register(ut.instance(s,t))},forTag(e,t){const i=xt(e),s=Ct.get(i);if(!1===s){return Ye.findResponsibleContainer(t).get(i)}return s||null}});class $t{constructor(e,t){this.template=e||null,this.styles=void 0===t?null:Array.isArray(t)?Q.create(t):t instanceof Q?t:Q.create([t])}applyTo(e){const t=e.$fastController;null===t.template&&(t.template=this.template),null===t.styles&&(t.styles=this.styles)}}class kt extends fe{constructor(){super(...arguments),this._presentation=void 0}get $presentation(){return void 0===this._presentation&&(this._presentation=wt.forTag(this.tagName,this)),this._presentation}templateChanged(){void 0!==this.template&&(this.$fastController.template=this.template)}stylesChanged(){void 0!==this.styles&&(this.$fastController.styles=this.styles)}connectedCallback(){null!==this.$presentation&&this.$presentation.applyTo(this),super.connectedCallback()}static compose(e){return(t={})=>new It(this===kt?class extends kt{}:this,e,t)}}function Tt(e,t,i){return"function"==typeof e?e(t,i):e}ze([v],kt.prototype,"template",void 0),ze([v],kt.prototype,"styles",void 0);class It{constructor(e,t,i){this.type=e,this.elementDefinition=t,this.overrideDefinition=i,this.definition=Object.assign(Object.assign({},this.elementDefinition),this.overrideDefinition)}register(e,t){const i=this.definition,s=this.overrideDefinition,o=`${i.prefix||t.elementPrefix}-${i.baseName}`;t.tryDefineElement({name:o,type:this.type,baseClass:this.elementDefinition.baseClass,callback:e=>{const t=new $t(Tt(i.template,e,i),Tt(i.styles,e,i));e.definePresentation(t);let o=Tt(i.shadowOptions,e,i);e.shadowRootMode&&(o?s.shadowOptions||(o.mode=e.shadowRootMode):null!==o&&(o={mode:e.shadowRootMode})),e.defineElement({elementOptions:Tt(i.elementOptions,e,i),shadowOptions:o,attributes:Tt(i.attributes,e,i)})}})}}function Ot(e,...t){t.forEach((t=>{if(Object.getOwnPropertyNames(t.prototype).forEach((i=>{"constructor"!==i&&Object.defineProperty(e.prototype,i,Object.getOwnPropertyDescriptor(t.prototype,i))})),t.attributes){const i=e.attributes||[];e.attributes=i.concat(t.attributes)}}))}var Rt;let At;!function(e){e.horizontal="horizontal",e.vertical="vertical"}(Rt||(Rt={}));var St;!function(e){e[e.alt=18]="alt",e[e.arrowDown=40]="arrowDown",e[e.arrowLeft=37]="arrowLeft",e[e.arrowRight=39]="arrowRight",e[e.arrowUp=38]="arrowUp",e[e.back=8]="back",e[e.backSlash=220]="backSlash",e[e.break=19]="break",e[e.capsLock=20]="capsLock",e[e.closeBracket=221]="closeBracket",e[e.colon=186]="colon",e[e.colon2=59]="colon2",e[e.comma=188]="comma",e[e.ctrl=17]="ctrl",e[e.delete=46]="delete",e[e.end=35]="end",e[e.enter=13]="enter",e[e.equals=187]="equals",e[e.equals2=61]="equals2",e[e.equals3=107]="equals3",e[e.escape=27]="escape",e[e.forwardSlash=191]="forwardSlash",e[e.function1=112]="function1",e[e.function10=121]="function10",e[e.function11=122]="function11",e[e.function12=123]="function12",e[e.function2=113]="function2",e[e.function3=114]="function3",e[e.function4=115]="function4",e[e.function5=116]="function5",e[e.function6=117]="function6",e[e.function7=118]="function7",e[e.function8=119]="function8",e[e.function9=120]="function9",e[e.home=36]="home",e[e.insert=45]="insert",e[e.menu=93]="menu",e[e.minus=189]="minus",e[e.minus2=109]="minus2",e[e.numLock=144]="numLock",e[e.numPad0=96]="numPad0",e[e.numPad1=97]="numPad1",e[e.numPad2=98]="numPad2",e[e.numPad3=99]="numPad3",e[e.numPad4=100]="numPad4",e[e.numPad5=101]="numPad5",e[e.numPad6=102]="numPad6",e[e.numPad7=103]="numPad7",e[e.numPad8=104]="numPad8",e[e.numPad9=105]="numPad9",e[e.numPadDivide=111]="numPadDivide",e[e.numPadDot=110]="numPadDot",e[e.numPadMinus=109]="numPadMinus",e[e.numPadMultiply=106]="numPadMultiply",e[e.numPadPlus=107]="numPadPlus",e[e.openBracket=219]="openBracket",e[e.pageDown=34]="pageDown",e[e.pageUp=33]="pageUp",e[e.period=190]="period",e[e.print=44]="print",e[e.quote=222]="quote",e[e.scrollLock=145]="scrollLock",e[e.shift=16]="shift",e[e.space=32]="space",e[e.tab=9]="tab",e[e.tilde=192]="tilde",e[e.windowsLeft=91]="windowsLeft",e[e.windowsOpera=219]="windowsOpera",e[e.windowsRight=92]="windowsRight"}(St||(St={}));const Et={ArrowDown:"ArrowDown",ArrowLeft:"ArrowLeft",ArrowRight:"ArrowRight",ArrowUp:"ArrowUp"};var Dt;!function(e){e.ltr="ltr",e.rtl="rtl"}(Dt||(Dt={}));let Pt=0;function Bt(e=""){return`${e}${Pt++}`}class Ft{}ze([oe({attribute:"aria-atomic",mode:"fromView"})],Ft.prototype,"ariaAtomic",void 0),ze([oe({attribute:"aria-busy",mode:"fromView"})],Ft.prototype,"ariaBusy",void 0),ze([oe({attribute:"aria-controls",mode:"fromView"})],Ft.prototype,"ariaControls",void 0),ze([oe({attribute:"aria-current",mode:"fromView"})],Ft.prototype,"ariaCurrent",void 0),ze([oe({attribute:"aria-describedby",mode:"fromView"})],Ft.prototype,"ariaDescribedby",void 0),ze([oe({attribute:"aria-details",mode:"fromView"})],Ft.prototype,"ariaDetails",void 0),ze([oe({attribute:"aria-disabled",mode:"fromView"})],Ft.prototype,"ariaDisabled",void 0),ze([oe({attribute:"aria-errormessage",mode:"fromView"})],Ft.prototype,"ariaErrormessage",void 0),ze([oe({attribute:"aria-flowto",mode:"fromView"})],Ft.prototype,"ariaFlowto",void 0),ze([oe({attribute:"aria-haspopup",mode:"fromView"})],Ft.prototype,"ariaHaspopup",void 0),ze([oe({attribute:"aria-hidden",mode:"fromView"})],Ft.prototype,"ariaHidden",void 0),ze([oe({attribute:"aria-invalid",mode:"fromView"})],Ft.prototype,"ariaInvalid",void 0),ze([oe({attribute:"aria-keyshortcuts",mode:"fromView"})],Ft.prototype,"ariaKeyshortcuts",void 0),ze([oe({attribute:"aria-label",mode:"fromView"})],Ft.prototype,"ariaLabel",void 0),ze([oe({attribute:"aria-labelledby",mode:"fromView"})],Ft.prototype,"ariaLabelledby",void 0),ze([oe({attribute:"aria-live",mode:"fromView"})],Ft.prototype,"ariaLive",void 0),ze([oe({attribute:"aria-owns",mode:"fromView"})],Ft.prototype,"ariaOwns",void 0),ze([oe({attribute:"aria-relevant",mode:"fromView"})],Ft.prototype,"ariaRelevant",void 0),ze([oe({attribute:"aria-roledescription",mode:"fromView"})],Ft.prototype,"ariaRoledescription",void 0);class Lt extends kt{constructor(){super(...arguments),this.handleUnsupportedDelegatesFocus=()=>{var e;window.ShadowRoot&&!window.ShadowRoot.prototype.hasOwnProperty("delegatesFocus")&&(null===(e=this.$fastController.definition.shadowOptions)||void 0===e?void 0:e.delegatesFocus)&&(this.focus=()=>{this.control.focus()})}}connectedCallback(){super.connectedCallback(),this.handleUnsupportedDelegatesFocus()}}ze([oe],Lt.prototype,"download",void 0),ze([oe],Lt.prototype,"href",void 0),ze([oe],Lt.prototype,"hreflang",void 0),ze([oe],Lt.prototype,"ping",void 0),ze([oe],Lt.prototype,"referrerpolicy",void 0),ze([oe],Lt.prototype,"rel",void 0),ze([oe],Lt.prototype,"target",void 0),ze([oe],Lt.prototype,"type",void 0),ze([v],Lt.prototype,"defaultSlottedContent",void 0);class Vt{}ze([oe({attribute:"aria-expanded",mode:"fromView"})],Vt.prototype,"ariaExpanded",void 0),Ot(Vt,Ft),Ot(Lt,He,Vt);const Ht=(e,t)=>W``;class Mt extends kt{constructor(){super(...arguments),this.generateBadgeStyle=()=>{if(!this.fill&&!this.color)return;const e=`background-color: var(--badge-fill-${this.fill});`,t=`color: var(--badge-color-${this.color});`;return this.fill&&!this.color?e:this.color&&!this.fill?t:`${t} ${e}`}}}ze([oe({attribute:"fill"})],Mt.prototype,"fill",void 0),ze([oe({attribute:"color"})],Mt.prototype,"color",void 0),ze([oe({mode:"boolean"})],Mt.prototype,"circular",void 0);const Nt="ElementInternals"in window&&"setFormValue"in window.ElementInternals.prototype,zt=new WeakMap;function jt(e){const t=class extends e{constructor(...e){super(...e),this.dirtyValue=!1,this.disabled=!1,this.proxyEventsToBlock=["change","click"],this.proxyInitialized=!1,this.required=!1,this.initialValue=this.initialValue||"",this.elementInternals||(this.formResetCallback=this.formResetCallback.bind(this))}static get formAssociated(){return Nt}get validity(){return this.elementInternals?this.elementInternals.validity:this.proxy.validity}get form(){return this.elementInternals?this.elementInternals.form:this.proxy.form}get validationMessage(){return this.elementInternals?this.elementInternals.validationMessage:this.proxy.validationMessage}get willValidate(){return this.elementInternals?this.elementInternals.willValidate:this.proxy.willValidate}get labels(){if(this.elementInternals)return Object.freeze(Array.from(this.elementInternals.labels));if(this.proxy instanceof HTMLElement&&this.proxy.ownerDocument&&this.id){const e=this.proxy.labels,t=Array.from(this.proxy.getRootNode().querySelectorAll(`[for='${this.id}']`)),i=e?t.concat(Array.from(e)):t;return Object.freeze(i)}return s}valueChanged(e,t){this.dirtyValue=!0,this.proxy instanceof HTMLElement&&(this.proxy.value=this.value),this.currentValue=this.value,this.setFormValue(this.value),this.validate()}currentValueChanged(){this.value=this.currentValue}initialValueChanged(e,t){this.dirtyValue||(this.value=this.initialValue,this.dirtyValue=!1)}disabledChanged(e,t){this.proxy instanceof HTMLElement&&(this.proxy.disabled=this.disabled),c.queueUpdate((()=>this.classList.toggle("disabled",this.disabled)))}nameChanged(e,t){this.proxy instanceof HTMLElement&&(this.proxy.name=this.name)}requiredChanged(e,t){this.proxy instanceof HTMLElement&&(this.proxy.required=this.required),c.queueUpdate((()=>this.classList.toggle("required",this.required))),this.validate()}get elementInternals(){if(!Nt)return null;let e=zt.get(this);return e||(e=this.attachInternals(),zt.set(this,e)),e}connectedCallback(){super.connectedCallback(),this.addEventListener("keypress",this._keypressHandler),this.value||(this.value=this.initialValue,this.dirtyValue=!1),this.elementInternals||(this.attachProxy(),this.form&&this.form.addEventListener("reset",this.formResetCallback))}disconnectedCallback(){this.proxyEventsToBlock.forEach((e=>this.proxy.removeEventListener(e,this.stopPropagation))),!this.elementInternals&&this.form&&this.form.removeEventListener("reset",this.formResetCallback)}checkValidity(){return this.elementInternals?this.elementInternals.checkValidity():this.proxy.checkValidity()}reportValidity(){return this.elementInternals?this.elementInternals.reportValidity():this.proxy.reportValidity()}setValidity(e,t,i){this.elementInternals?this.elementInternals.setValidity(e,t,i):"string"==typeof t&&this.proxy.setCustomValidity(t)}formDisabledCallback(e){this.disabled=e}formResetCallback(){this.value=this.initialValue,this.dirtyValue=!1}attachProxy(){var e;this.proxyInitialized||(this.proxyInitialized=!0,this.proxy.style.display="none",this.proxyEventsToBlock.forEach((e=>this.proxy.addEventListener(e,this.stopPropagation))),this.proxy.disabled=this.disabled,this.proxy.required=this.required,"string"==typeof this.name&&(this.proxy.name=this.name),"string"==typeof this.value&&(this.proxy.value=this.value),this.proxy.setAttribute("slot","form-associated-proxy"),this.proxySlot=document.createElement("slot"),this.proxySlot.setAttribute("name","form-associated-proxy")),null===(e=this.shadowRoot)||void 0===e||e.appendChild(this.proxySlot),this.appendChild(this.proxy)}detachProxy(){var e;this.removeChild(this.proxy),null===(e=this.shadowRoot)||void 0===e||e.removeChild(this.proxySlot)}validate(){this.proxy instanceof HTMLElement&&this.setValidity(this.proxy.validity,this.proxy.validationMessage)}setFormValue(e,t){this.elementInternals&&this.elementInternals.setFormValue(e,t||e)}_keypressHandler(e){if("Enter"===e.key)if(this.form instanceof HTMLFormElement){const e=this.form.querySelector("[type=submit]");null==e||e.click()}}stopPropagation(e){e.stopPropagation()}};return oe({mode:"boolean"})(t.prototype,"disabled"),oe({mode:"fromView",attribute:"value"})(t.prototype,"initialValue"),oe({attribute:"current-value"})(t.prototype,"currentValue"),oe(t.prototype,"name"),oe({mode:"boolean"})(t.prototype,"required"),v(t.prototype,"value"),t}function _t(e){class t extends(jt(e)){}class i extends t{constructor(...e){super(e),this.dirtyChecked=!1,this.checkedAttribute=!1,this.checked=!1,this.dirtyChecked=!1}checkedAttributeChanged(){this.defaultChecked=this.checkedAttribute}defaultCheckedChanged(){this.dirtyChecked||(this.checked=this.defaultChecked,this.dirtyChecked=!1)}checkedChanged(e,t){this.dirtyChecked||(this.dirtyChecked=!0),this.currentChecked=this.checked,this.updateForm(),this.proxy instanceof HTMLInputElement&&(this.proxy.checked=this.checked),void 0!==e&&this.$emit("change"),this.validate()}currentCheckedChanged(e,t){this.checked=this.currentChecked}updateForm(){const e=this.checked?this.value:null;this.setFormValue(e,e)}connectedCallback(){super.connectedCallback(),this.updateForm()}formResetCallback(){super.formResetCallback(),this.checked=!!this.checkedAttribute,this.dirtyChecked=!1}}return oe({attribute:"checked",mode:"boolean"})(i.prototype,"checkedAttribute"),oe({attribute:"current-checked",converter:te})(i.prototype,"currentChecked"),v(i.prototype,"defaultChecked"),v(i.prototype,"checked"),i}class qt extends kt{}class Ut extends(jt(qt)){constructor(){super(...arguments),this.proxy=document.createElement("input")}}class Kt extends Ut{constructor(){super(...arguments),this.handleClick=e=>{var t;this.disabled&&(null===(t=this.defaultSlottedContent)||void 0===t?void 0:t.length)<=1&&e.stopPropagation()},this.handleSubmission=()=>{if(!this.form)return;const e=this.proxy.isConnected;e||this.attachProxy(),"function"==typeof this.form.requestSubmit?this.form.requestSubmit(this.proxy):this.proxy.click(),e||this.detachProxy()},this.handleFormReset=()=>{var e;null===(e=this.form)||void 0===e||e.reset()},this.handleUnsupportedDelegatesFocus=()=>{var e;window.ShadowRoot&&!window.ShadowRoot.prototype.hasOwnProperty("delegatesFocus")&&(null===(e=this.$fastController.definition.shadowOptions)||void 0===e?void 0:e.delegatesFocus)&&(this.focus=()=>{this.control.focus()})}}formactionChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formAction=this.formaction)}formenctypeChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formEnctype=this.formenctype)}formmethodChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formMethod=this.formmethod)}formnovalidateChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formNoValidate=this.formnovalidate)}formtargetChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formTarget=this.formtarget)}typeChanged(e,t){this.proxy instanceof HTMLInputElement&&(this.proxy.type=this.type),"submit"===t&&this.addEventListener("click",this.handleSubmission),"submit"===e&&this.removeEventListener("click",this.handleSubmission),"reset"===t&&this.addEventListener("click",this.handleFormReset),"reset"===e&&this.removeEventListener("click",this.handleFormReset)}connectedCallback(){var e;super.connectedCallback(),this.proxy.setAttribute("type",this.type),this.handleUnsupportedDelegatesFocus();const t=Array.from(null===(e=this.control)||void 0===e?void 0:e.children);t&&t.forEach((e=>{e.addEventListener("click",this.handleClick)}))}disconnectedCallback(){var e;super.disconnectedCallback();const t=Array.from(null===(e=this.control)||void 0===e?void 0:e.children);t&&t.forEach((e=>{e.removeEventListener("click",this.handleClick)}))}}ze([oe({mode:"boolean"})],Kt.prototype,"autofocus",void 0),ze([oe({attribute:"form"})],Kt.prototype,"formId",void 0),ze([oe],Kt.prototype,"formaction",void 0),ze([oe],Kt.prototype,"formenctype",void 0),ze([oe],Kt.prototype,"formmethod",void 0),ze([oe({mode:"boolean"})],Kt.prototype,"formnovalidate",void 0),ze([oe],Kt.prototype,"formtarget",void 0),ze([oe],Kt.prototype,"type",void 0),ze([v],Kt.prototype,"defaultSlottedContent",void 0);class Gt{}var Wt,Qt,Yt;ze([oe({attribute:"aria-expanded",mode:"fromView"})],Gt.prototype,"ariaExpanded",void 0),ze([oe({attribute:"aria-pressed",mode:"fromView"})],Gt.prototype,"ariaPressed",void 0),Ot(Gt,Ft),Ot(Kt,He,Gt),function(e){e.none="none",e.default="default",e.sticky="sticky"}(Wt||(Wt={})),function(e){e.default="default",e.columnHeader="columnheader",e.rowHeader="rowheader"}(Qt||(Qt={})),function(e){e.default="default",e.header="header",e.stickyHeader="sticky-header"}(Yt||(Yt={}));class Xt extends kt{constructor(){super(...arguments),this.rowType=Yt.default,this.rowData=null,this.columnDefinitions=null,this.isActiveRow=!1,this.cellsRepeatBehavior=null,this.cellsPlaceholder=null,this.focusColumnIndex=0,this.refocusOnLoad=!1,this.updateRowStyle=()=>{this.style.gridTemplateColumns=this.gridTemplateColumns}}gridTemplateColumnsChanged(){this.$fastController.isConnected&&this.updateRowStyle()}rowTypeChanged(){this.$fastController.isConnected&&this.updateItemTemplate()}rowDataChanged(){null!==this.rowData&&this.isActiveRow&&(this.refocusOnLoad=!0)}cellItemTemplateChanged(){this.updateItemTemplate()}headerCellItemTemplateChanged(){this.updateItemTemplate()}connectedCallback(){super.connectedCallback(),null===this.cellsRepeatBehavior&&(this.cellsPlaceholder=document.createComment(""),this.appendChild(this.cellsPlaceholder),this.updateItemTemplate(),this.cellsRepeatBehavior=new Ee((e=>e.columnDefinitions),(e=>e.activeCellItemTemplate),{positioning:!0}).createBehavior(this.cellsPlaceholder),this.$fastController.addBehaviors([this.cellsRepeatBehavior])),this.addEventListener("cell-focused",this.handleCellFocus),this.addEventListener("focusout",this.handleFocusout),this.addEventListener("keydown",this.handleKeydown),this.updateRowStyle(),this.refocusOnLoad&&(this.refocusOnLoad=!1,this.cellElements.length>this.focusColumnIndex&&this.cellElements[this.focusColumnIndex].focus())}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("cell-focused",this.handleCellFocus),this.removeEventListener("focusout",this.handleFocusout),this.removeEventListener("keydown",this.handleKeydown)}handleFocusout(e){this.contains(e.target)||(this.isActiveRow=!1,this.focusColumnIndex=0)}handleCellFocus(e){this.isActiveRow=!0,this.focusColumnIndex=this.cellElements.indexOf(e.target),this.$emit("row-focused",this)}handleKeydown(e){if(e.defaultPrevented)return;let t=0;switch(e.key){case"ArrowLeft":t=Math.max(0,this.focusColumnIndex-1),this.cellElements[t].focus(),e.preventDefault();break;case"ArrowRight":t=Math.min(this.cellElements.length-1,this.focusColumnIndex+1),this.cellElements[t].focus(),e.preventDefault();break;case"Home":e.ctrlKey||(this.cellElements[0].focus(),e.preventDefault());break;case"End":e.ctrlKey||(this.cellElements[this.cellElements.length-1].focus(),e.preventDefault())}}updateItemTemplate(){this.activeCellItemTemplate=this.rowType===Yt.default&&void 0!==this.cellItemTemplate?this.cellItemTemplate:this.rowType===Yt.default&&void 0===this.cellItemTemplate?this.defaultCellItemTemplate:void 0!==this.headerCellItemTemplate?this.headerCellItemTemplate:this.defaultHeaderCellItemTemplate}}ze([oe({attribute:"grid-template-columns"})],Xt.prototype,"gridTemplateColumns",void 0),ze([oe({attribute:"row-type"})],Xt.prototype,"rowType",void 0),ze([v],Xt.prototype,"rowData",void 0),ze([v],Xt.prototype,"columnDefinitions",void 0),ze([v],Xt.prototype,"cellItemTemplate",void 0),ze([v],Xt.prototype,"headerCellItemTemplate",void 0),ze([v],Xt.prototype,"rowIndex",void 0),ze([v],Xt.prototype,"isActiveRow",void 0),ze([v],Xt.prototype,"activeCellItemTemplate",void 0),ze([v],Xt.prototype,"defaultCellItemTemplate",void 0),ze([v],Xt.prototype,"defaultHeaderCellItemTemplate",void 0),ze([v],Xt.prototype,"cellElements",void 0);class Jt extends kt{constructor(){super(),this.noTabbing=!1,this.generateHeader=Wt.default,this.rowsData=[],this.columnDefinitions=null,this.focusRowIndex=0,this.focusColumnIndex=0,this.rowsPlaceholder=null,this.generatedHeader=null,this.isUpdatingFocus=!1,this.pendingFocusUpdate=!1,this.rowindexUpdateQueued=!1,this.columnDefinitionsStale=!0,this.generatedGridTemplateColumns="",this.focusOnCell=(e,t,i)=>{if(0===this.rowElements.length)return this.focusRowIndex=0,void(this.focusColumnIndex=0);const s=Math.max(0,Math.min(this.rowElements.length-1,e)),o=this.rowElements[s].querySelectorAll('[role="cell"], [role="gridcell"], [role="columnheader"], [role="rowheader"]'),n=o[Math.max(0,Math.min(o.length-1,t))];i&&this.scrollHeight!==this.clientHeight&&(s0||s>this.focusRowIndex&&this.scrollTop{e&&e.length&&(e.forEach((e=>{e.addedNodes.forEach((e=>{1===e.nodeType&&"row"===e.getAttribute("role")&&(e.columnDefinitions=this.columnDefinitions)}))})),this.queueRowIndexUpdate())},this.queueRowIndexUpdate=()=>{this.rowindexUpdateQueued||(this.rowindexUpdateQueued=!0,c.queueUpdate(this.updateRowIndexes))},this.updateRowIndexes=()=>{let e=this.gridTemplateColumns;if(void 0===e){if(""===this.generatedGridTemplateColumns&&this.rowElements.length>0){const e=this.rowElements[0];this.generatedGridTemplateColumns=new Array(e.cellElements.length).fill("1fr").join(" ")}e=this.generatedGridTemplateColumns}this.rowElements.forEach(((t,i)=>{const s=t;s.rowIndex=i,s.gridTemplateColumns=e,this.columnDefinitionsStale&&(s.columnDefinitions=this.columnDefinitions)})),this.rowindexUpdateQueued=!1,this.columnDefinitionsStale=!1}}static generateTemplateColumns(e){let t="";return e.forEach((e=>{t=`${t}${""===t?"":" "}1fr`})),t}noTabbingChanged(){this.$fastController.isConnected&&(this.noTabbing?this.setAttribute("tabIndex","-1"):this.setAttribute("tabIndex",this.contains(document.activeElement)||this===document.activeElement?"-1":"0"))}generateHeaderChanged(){this.$fastController.isConnected&&this.toggleGeneratedHeader()}gridTemplateColumnsChanged(){this.$fastController.isConnected&&this.updateRowIndexes()}rowsDataChanged(){null===this.columnDefinitions&&this.rowsData.length>0&&(this.columnDefinitions=Jt.generateColumns(this.rowsData[0])),this.$fastController.isConnected&&this.toggleGeneratedHeader()}columnDefinitionsChanged(){null!==this.columnDefinitions?(this.generatedGridTemplateColumns=Jt.generateTemplateColumns(this.columnDefinitions),this.$fastController.isConnected&&(this.columnDefinitionsStale=!0,this.queueRowIndexUpdate())):this.generatedGridTemplateColumns=""}headerCellItemTemplateChanged(){this.$fastController.isConnected&&null!==this.generatedHeader&&(this.generatedHeader.headerCellItemTemplate=this.headerCellItemTemplate)}focusRowIndexChanged(){this.$fastController.isConnected&&this.queueFocusUpdate()}focusColumnIndexChanged(){this.$fastController.isConnected&&this.queueFocusUpdate()}connectedCallback(){super.connectedCallback(),void 0===this.rowItemTemplate&&(this.rowItemTemplate=this.defaultRowItemTemplate),this.rowsPlaceholder=document.createComment(""),this.appendChild(this.rowsPlaceholder),this.toggleGeneratedHeader(),this.rowsRepeatBehavior=new Ee((e=>e.rowsData),(e=>e.rowItemTemplate),{positioning:!0}).createBehavior(this.rowsPlaceholder),this.$fastController.addBehaviors([this.rowsRepeatBehavior]),this.addEventListener("row-focused",this.handleRowFocus),this.addEventListener("focus",this.handleFocus),this.addEventListener("keydown",this.handleKeydown),this.addEventListener("focusout",this.handleFocusOut),this.observer=new MutationObserver(this.onChildListChange),this.observer.observe(this,{childList:!0}),this.noTabbing&&this.setAttribute("tabindex","-1"),c.queueUpdate(this.queueRowIndexUpdate)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("row-focused",this.handleRowFocus),this.removeEventListener("focus",this.handleFocus),this.removeEventListener("keydown",this.handleKeydown),this.removeEventListener("focusout",this.handleFocusOut),this.observer.disconnect(),this.rowsPlaceholder=null,this.generatedHeader=null}handleRowFocus(e){this.isUpdatingFocus=!0;const t=e.target;this.focusRowIndex=this.rowElements.indexOf(t),this.focusColumnIndex=t.focusColumnIndex,this.setAttribute("tabIndex","-1"),this.isUpdatingFocus=!1}handleFocus(e){this.focusOnCell(this.focusRowIndex,this.focusColumnIndex,!0)}handleFocusOut(e){null!==e.relatedTarget&&this.contains(e.relatedTarget)||this.setAttribute("tabIndex",this.noTabbing?"-1":"0")}handleKeydown(e){if(e.defaultPrevented)return;let t;const i=this.rowElements.length-1,s=this.offsetHeight+this.scrollTop,o=this.rowElements[i];switch(e.key){case"ArrowUp":e.preventDefault(),this.focusOnCell(this.focusRowIndex-1,this.focusColumnIndex,!0);break;case"ArrowDown":e.preventDefault(),this.focusOnCell(this.focusRowIndex+1,this.focusColumnIndex,!0);break;case"PageUp":if(e.preventDefault(),0===this.rowElements.length){this.focusOnCell(0,0,!1);break}if(0===this.focusRowIndex)return void this.focusOnCell(0,this.focusColumnIndex,!1);for(t=this.focusRowIndex-1;t>=0;t--){const e=this.rowElements[t];if(e.offsetTop=i||o.offsetTop+o.offsetHeight<=s)return void this.focusOnCell(i,this.focusColumnIndex,!1);for(t=this.focusRowIndex+1;t<=i;t++){const e=this.rowElements[t];if(e.offsetTop+e.offsetHeight>s){let t=0;this.generateHeader===Wt.sticky&&null!==this.generatedHeader&&(t=this.generatedHeader.clientHeight),this.scrollTop=e.offsetTop-t;break}}this.focusOnCell(t,this.focusColumnIndex,!1);break;case"Home":e.ctrlKey&&(e.preventDefault(),this.focusOnCell(0,0,!0));break;case"End":e.ctrlKey&&null!==this.columnDefinitions&&(e.preventDefault(),this.focusOnCell(this.rowElements.length-1,this.columnDefinitions.length-1,!0))}}queueFocusUpdate(){this.isUpdatingFocus&&(this.contains(document.activeElement)||this===document.activeElement)||!1===this.pendingFocusUpdate&&(this.pendingFocusUpdate=!0,c.queueUpdate((()=>this.updateFocus())))}updateFocus(){this.pendingFocusUpdate=!1,this.focusOnCell(this.focusRowIndex,this.focusColumnIndex,!0)}toggleGeneratedHeader(){if(null!==this.generatedHeader&&(this.removeChild(this.generatedHeader),this.generatedHeader=null),this.generateHeader!==Wt.none&&this.rowsData.length>0){const e=document.createElement(this.rowElementTag);return this.generatedHeader=e,this.generatedHeader.columnDefinitions=this.columnDefinitions,this.generatedHeader.gridTemplateColumns=this.gridTemplateColumns,this.generatedHeader.rowType=this.generateHeader===Wt.sticky?Yt.stickyHeader:Yt.header,void(null===this.firstChild&&null===this.rowsPlaceholder||this.insertBefore(e,null!==this.firstChild?this.firstChild:this.rowsPlaceholder))}}}Jt.generateColumns=e=>Object.getOwnPropertyNames(e).map(((e,t)=>({columnDataKey:e,gridColumn:`${t}`}))),ze([oe({attribute:"no-tabbing",mode:"boolean"})],Jt.prototype,"noTabbing",void 0),ze([oe({attribute:"generate-header"})],Jt.prototype,"generateHeader",void 0),ze([oe({attribute:"grid-template-columns"})],Jt.prototype,"gridTemplateColumns",void 0),ze([v],Jt.prototype,"rowsData",void 0),ze([v],Jt.prototype,"columnDefinitions",void 0),ze([v],Jt.prototype,"rowItemTemplate",void 0),ze([v],Jt.prototype,"cellItemTemplate",void 0),ze([v],Jt.prototype,"headerCellItemTemplate",void 0),ze([v],Jt.prototype,"focusRowIndex",void 0),ze([v],Jt.prototype,"focusColumnIndex",void 0),ze([v],Jt.prototype,"defaultRowItemTemplate",void 0),ze([v],Jt.prototype,"rowElementTag",void 0),ze([v],Jt.prototype,"rowElements",void 0);const Zt=W``,ei=W``;class ti extends kt{constructor(){super(...arguments),this.cellType=Qt.default,this.rowData=null,this.columnDefinition=null,this.isActiveCell=!1,this.customCellView=null,this.updateCellStyle=()=>{this.style.gridColumn=this.gridColumn}}cellTypeChanged(){this.$fastController.isConnected&&this.updateCellView()}gridColumnChanged(){this.$fastController.isConnected&&this.updateCellStyle()}columnDefinitionChanged(e,t){this.$fastController.isConnected&&this.updateCellView()}connectedCallback(){var e;super.connectedCallback(),this.addEventListener("focusin",this.handleFocusin),this.addEventListener("focusout",this.handleFocusout),this.addEventListener("keydown",this.handleKeydown),this.style.gridColumn=`${void 0===(null===(e=this.columnDefinition)||void 0===e?void 0:e.gridColumn)?0:this.columnDefinition.gridColumn}`,this.updateCellView(),this.updateCellStyle()}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focusin",this.handleFocusin),this.removeEventListener("focusout",this.handleFocusout),this.removeEventListener("keydown",this.handleKeydown),this.disconnectCellView()}handleFocusin(e){if(!this.isActiveCell){if(this.isActiveCell=!0,this.cellType===Qt.columnHeader){if(null!==this.columnDefinition&&!0!==this.columnDefinition.headerCellInternalFocusQueue&&"function"==typeof this.columnDefinition.headerCellFocusTargetCallback){const e=this.columnDefinition.headerCellFocusTargetCallback(this);null!==e&&e.focus()}}else if(null!==this.columnDefinition&&!0!==this.columnDefinition.cellInternalFocusQueue&&"function"==typeof this.columnDefinition.cellFocusTargetCallback){const e=this.columnDefinition.cellFocusTargetCallback(this);null!==e&&e.focus()}this.$emit("cell-focused",this)}}handleFocusout(e){this===document.activeElement||this.contains(document.activeElement)||(this.isActiveCell=!1)}handleKeydown(e){if(!(e.defaultPrevented||null===this.columnDefinition||this.cellType===Qt.default&&!0!==this.columnDefinition.cellInternalFocusQueue||this.cellType===Qt.columnHeader&&!0!==this.columnDefinition.headerCellInternalFocusQueue))switch(e.key){case"Enter":case"F2":if(this.contains(document.activeElement)&&document.activeElement!==this)return;if(this.cellType===Qt.columnHeader){if(void 0!==this.columnDefinition.headerCellFocusTargetCallback){const t=this.columnDefinition.headerCellFocusTargetCallback(this);null!==t&&t.focus(),e.preventDefault()}}else if(void 0!==this.columnDefinition.cellFocusTargetCallback){const t=this.columnDefinition.cellFocusTargetCallback(this);null!==t&&t.focus(),e.preventDefault()}break;case"Escape":this.contains(document.activeElement)&&document.activeElement!==this&&(this.focus(),e.preventDefault())}}updateCellView(){if(this.disconnectCellView(),null!==this.columnDefinition)switch(this.cellType){case Qt.columnHeader:void 0!==this.columnDefinition.headerCellTemplate?this.customCellView=this.columnDefinition.headerCellTemplate.render(this,this):this.customCellView=ei.render(this,this);break;case void 0:case Qt.rowHeader:case Qt.default:void 0!==this.columnDefinition.cellTemplate?this.customCellView=this.columnDefinition.cellTemplate.render(this,this):this.customCellView=Zt.render(this,this)}}disconnectCellView(){null!==this.customCellView&&(this.customCellView.dispose(),this.customCellView=null)}}ze([oe({attribute:"cell-type"})],ti.prototype,"cellType",void 0),ze([oe({attribute:"grid-column"})],ti.prototype,"gridColumn",void 0),ze([v],ti.prototype,"rowData",void 0),ze([v],ti.prototype,"columnDefinition",void 0);class ii extends kt{}class si extends(_t(ii)){constructor(){super(...arguments),this.proxy=document.createElement("input")}}class oi extends si{constructor(){super(),this.initialValue="on",this.indeterminate=!1,this.keypressHandler=e=>{if(" "===e.key)this.checked=!this.checked},this.clickHandler=e=>{this.disabled||this.readOnly||(this.checked=!this.checked)},this.proxy.setAttribute("type","checkbox")}readOnlyChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.readOnly=this.readOnly)}}function ni(e){return function(...e){return e.every((e=>e instanceof HTMLElement))}(e)&&("option"===e.getAttribute("role")||e instanceof HTMLOptionElement)}ze([oe({attribute:"readonly",mode:"boolean"})],oi.prototype,"readOnly",void 0),ze([v],oi.prototype,"defaultSlottedNodes",void 0),ze([v],oi.prototype,"indeterminate",void 0);class ri extends kt{constructor(e,t,i,s){super(),this.defaultSelected=!1,this.dirtySelected=!1,this.selected=this.defaultSelected,this.dirtyValue=!1,e&&(this.textContent=e),t&&(this.initialValue=t),i&&(this.defaultSelected=i),s&&(this.selected=s),this.proxy=new Option(`${this.textContent}`,this.initialValue,this.defaultSelected,this.selected),this.proxy.disabled=this.disabled}checkedChanged(e,t){this.ariaChecked="boolean"!=typeof t?void 0:t?"true":"false"}defaultSelectedChanged(){this.dirtySelected||(this.selected=this.defaultSelected,this.proxy instanceof HTMLOptionElement&&(this.proxy.selected=this.defaultSelected))}disabledChanged(e,t){this.ariaDisabled=this.disabled?"true":"false",this.proxy instanceof HTMLOptionElement&&(this.proxy.disabled=this.disabled)}selectedAttributeChanged(){this.defaultSelected=this.selectedAttribute,this.proxy instanceof HTMLOptionElement&&(this.proxy.defaultSelected=this.defaultSelected)}selectedChanged(){this.ariaSelected=this.selected?"true":"false",this.dirtySelected||(this.dirtySelected=!0),this.proxy instanceof HTMLOptionElement&&(this.proxy.selected=this.selected)}initialValueChanged(e,t){this.dirtyValue||(this.value=this.initialValue,this.dirtyValue=!1)}get label(){var e,t;return null!==(t=null!==(e=this.value)&&void 0!==e?e:this.textContent)&&void 0!==t?t:""}get text(){return this.textContent}set value(e){this._value=e,this.dirtyValue=!0,this.proxy instanceof HTMLElement&&(this.proxy.value=e),m.notify(this,"value")}get value(){var e,t;return m.track(this,"value"),null!==(t=null!==(e=this._value)&&void 0!==e?e:this.textContent)&&void 0!==t?t:""}get form(){return this.proxy?this.proxy.form:null}}ze([v],ri.prototype,"checked",void 0),ze([v],ri.prototype,"defaultSelected",void 0),ze([oe({mode:"boolean"})],ri.prototype,"disabled",void 0),ze([oe({attribute:"selected",mode:"boolean"})],ri.prototype,"selectedAttribute",void 0),ze([v],ri.prototype,"selected",void 0),ze([oe({attribute:"value",mode:"fromView"})],ri.prototype,"initialValue",void 0);class ai{}ze([v],ai.prototype,"ariaChecked",void 0),ze([v],ai.prototype,"ariaPosInSet",void 0),ze([v],ai.prototype,"ariaSelected",void 0),ze([v],ai.prototype,"ariaSetSize",void 0),Ot(ai,Ft),Ot(ri,He,ai);class li extends kt{constructor(){super(...arguments),this._options=[],this.selectedIndex=-1,this.selectedOptions=[],this.shouldSkipFocus=!1,this.typeaheadBuffer="",this.typeaheadExpired=!0,this.typeaheadTimeout=-1}get firstSelectedOption(){var e;return null!==(e=this.selectedOptions[0])&&void 0!==e?e:null}get hasSelectableOptions(){return this.options.length>0&&!this.options.every((e=>e.disabled))}get length(){var e,t;return null!==(t=null===(e=this.options)||void 0===e?void 0:e.length)&&void 0!==t?t:0}get options(){return m.track(this,"options"),this._options}set options(e){this._options=e,m.notify(this,"options")}get typeAheadExpired(){return this.typeaheadExpired}set typeAheadExpired(e){this.typeaheadExpired=e}clickHandler(e){const t=e.target.closest("option,[role=option]");if(t&&!t.disabled)return this.selectedIndex=this.options.indexOf(t),!0}focusAndScrollOptionIntoView(e=this.firstSelectedOption){this.contains(document.activeElement)&&null!==e&&(e.focus(),requestAnimationFrame((()=>{e.scrollIntoView({block:"nearest"})})))}focusinHandler(e){this.shouldSkipFocus||e.target!==e.currentTarget||(this.setSelectedOptions(),this.focusAndScrollOptionIntoView()),this.shouldSkipFocus=!1}getTypeaheadMatches(){const e=this.typeaheadBuffer.replace(/[.*+\-?^${}()|[\]\\]/g,"\\$&"),t=new RegExp(`^${e}`,"gi");return this.options.filter((e=>e.text.trim().match(t)))}getSelectableIndex(e=this.selectedIndex,t){const i=e>t?-1:e!e&&!t.disabled&&i!e&&!t.disabled&&i>s?t:e),o)}return this.options.indexOf(o)}handleChange(e,t){if("selected"===t)li.slottedOptionFilter(e)&&(this.selectedIndex=this.options.indexOf(e)),this.setSelectedOptions()}handleTypeAhead(e){this.typeaheadTimeout&&window.clearTimeout(this.typeaheadTimeout),this.typeaheadTimeout=window.setTimeout((()=>this.typeaheadExpired=!0),li.TYPE_AHEAD_TIMEOUT_MS),e.length>1||(this.typeaheadBuffer=`${this.typeaheadExpired?"":this.typeaheadBuffer}${e}`)}keydownHandler(e){if(this.disabled)return!0;this.shouldSkipFocus=!1;const t=e.key;switch(t){case"Home":e.shiftKey||(e.preventDefault(),this.selectFirstOption());break;case"ArrowDown":e.shiftKey||(e.preventDefault(),this.selectNextOption());break;case"ArrowUp":e.shiftKey||(e.preventDefault(),this.selectPreviousOption());break;case"End":e.preventDefault(),this.selectLastOption();break;case"Tab":return this.focusAndScrollOptionIntoView(),!0;case"Enter":case"Escape":return!0;case" ":if(this.typeaheadExpired)return!0;default:return 1===t.length&&this.handleTypeAhead(`${t}`),!0}}mousedownHandler(e){return this.shouldSkipFocus=!this.contains(document.activeElement),!0}multipleChanged(e,t){this.ariaMultiSelectable=t?"true":void 0}selectedIndexChanged(e,t){var i;if(this.hasSelectableOptions){if((null===(i=this.options[this.selectedIndex])||void 0===i?void 0:i.disabled)&&"number"==typeof e){const i=this.getSelectableIndex(e,t),s=i>-1?i:e;return this.selectedIndex=s,void(t===s&&this.selectedIndexChanged(t,s))}this.setSelectedOptions()}else this.selectedIndex=-1}selectedOptionsChanged(e,t){var i;const s=t.filter(li.slottedOptionFilter);null===(i=this.options)||void 0===i||i.forEach((e=>{const t=m.getNotifier(e);t.unsubscribe(this,"selected"),e.selected=s.includes(e),t.subscribe(this,"selected")}))}selectFirstOption(){var e,t;this.disabled||(this.selectedIndex=null!==(t=null===(e=this.options)||void 0===e?void 0:e.findIndex((e=>!e.disabled)))&&void 0!==t?t:-1)}selectLastOption(){this.disabled||(this.selectedIndex=function(e,t){let i=e.length;for(;i--;)if(t(e[i],i,e))return i;return-1}(this.options,(e=>!e.disabled)))}selectNextOption(){!this.disabled&&this.selectedIndex0&&(this.selectedIndex=this.selectedIndex-1)}setDefaultSelectedOption(){var e,t;this.selectedIndex=null!==(t=null===(e=this.options)||void 0===e?void 0:e.findIndex((e=>e.defaultSelected)))&&void 0!==t?t:-1}setSelectedOptions(){var e,t,i;(null===(e=this.options)||void 0===e?void 0:e.length)&&(this.selectedOptions=[this.options[this.selectedIndex]],this.ariaActiveDescendant=null!==(i=null===(t=this.firstSelectedOption)||void 0===t?void 0:t.id)&&void 0!==i?i:"",this.focusAndScrollOptionIntoView())}slottedOptionsChanged(e,t){this.options=t.reduce(((e,t)=>(ni(t)&&e.push(t),e)),[]);const i=`${this.options.length}`;this.options.forEach(((e,t)=>{e.id||(e.id=Bt("option-")),e.ariaPosInSet=`${t+1}`,e.ariaSetSize=i})),this.$fastController.isConnected&&(this.setSelectedOptions(),this.setDefaultSelectedOption())}typeaheadBufferChanged(e,t){if(this.$fastController.isConnected){const e=this.getTypeaheadMatches();if(e.length){const t=this.options.indexOf(e[0]);t>-1&&(this.selectedIndex=t)}this.typeaheadExpired=!1}}}li.slottedOptionFilter=e=>ni(e)&&!e.disabled&&!e.hidden,li.TYPE_AHEAD_TIMEOUT_MS=1e3,ze([oe({mode:"boolean"})],li.prototype,"disabled",void 0),ze([oe({mode:"boolean"})],li.prototype,"multiple",void 0),ze([v],li.prototype,"selectedIndex",void 0),ze([v],li.prototype,"selectedOptions",void 0),ze([v],li.prototype,"slottedOptions",void 0),ze([v],li.prototype,"typeaheadBuffer",void 0);class di{}var ci;function hi(e){const t=e.parentElement;if(t)return t;{const t=e.getRootNode();if(t.host instanceof HTMLElement)return t.host}return null}ze([v],di.prototype,"ariaActiveDescendant",void 0),ze([v],di.prototype,"ariaDisabled",void 0),ze([v],di.prototype,"ariaExpanded",void 0),ze([v],di.prototype,"ariaMultiSelectable",void 0),Ot(di,Ft),Ot(li,di),function(e){e.above="above",e.below="below"}(ci||(ci={}));function ui(e){return`:host([hidden]){display:none}:host{display:${e}}`}const pi=function(){if("boolean"==typeof At)return At;if("undefined"==typeof window||!window.document||!window.document.createElement)return At=!1,At;const e=document.createElement("style"),t=function(){const e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null}();null!==t&&e.setAttribute("nonce",t),document.head.appendChild(e);try{e.sheet.insertRule("foo:focus-visible {color:inherit}",0),At=!0}catch(e){At=!1}finally{document.head.removeChild(e)}return At}()?"focus-visible":"focus";function fi(e,t,i){return e.nodeType!==Node.TEXT_NODE||"string"==typeof e.nodeValue&&!!e.nodeValue.trim().length}const bi=document.createElement("div");class gi{setProperty(e,t){c.queueUpdate((()=>this.target.setProperty(e,t)))}removeProperty(e){c.queueUpdate((()=>this.target.removeProperty(e)))}}class mi extends gi{constructor(){super();const e=new CSSStyleSheet;this.target=e.cssRules[e.insertRule(":root{}")].style,document.adoptedStyleSheets=[...document.adoptedStyleSheets,e]}}class vi extends gi{constructor(){super(),this.style=document.createElement("style"),document.head.appendChild(this.style);const{sheet:e}=this.style;if(e){const t=e.insertRule(":root{}",e.cssRules.length);this.target=e.cssRules[t].style}}}class yi{constructor(e){this.store=new Map,this.target=null;const t=e.$fastController;this.style=document.createElement("style"),t.addStyles(this.style),m.getNotifier(t).subscribe(this,"isConnected"),this.handleChange(t,"isConnected")}targetChanged(){if(null!==this.target)for(const[e,t]of this.store.entries())this.target.setProperty(e,t)}setProperty(e,t){this.store.set(e,t),c.queueUpdate((()=>{null!==this.target&&this.target.setProperty(e,t)}))}removeProperty(e){this.store.delete(e),c.queueUpdate((()=>{null!==this.target&&this.target.removeProperty(e)}))}handleChange(e,t){const{sheet:i}=this.style;if(i){const e=i.insertRule(":host{}",i.cssRules.length);this.target=i.cssRules[e].style}else this.target=null}}ze([v],yi.prototype,"target",void 0);class xi{constructor(e){this.target=e.style}setProperty(e,t){c.queueUpdate((()=>this.target.setProperty(e,t)))}removeProperty(e){c.queueUpdate((()=>this.target.removeProperty(e)))}}class Ci{setProperty(e,t){Ci.properties[e]=t;for(const i of Ci.roots.values())ki.getOrCreate(Ci.normalizeRoot(i)).setProperty(e,t)}removeProperty(e){delete Ci.properties[e];for(const t of Ci.roots.values())ki.getOrCreate(Ci.normalizeRoot(t)).removeProperty(e)}static registerRoot(e){const{roots:t}=Ci;if(!t.has(e)){t.add(e);const i=ki.getOrCreate(this.normalizeRoot(e));for(const e in Ci.properties)i.setProperty(e,Ci.properties[e])}}static unregisterRoot(e){const{roots:t}=Ci;if(t.has(e)){t.delete(e);const i=ki.getOrCreate(Ci.normalizeRoot(e));for(const e in Ci.properties)i.removeProperty(e)}}static normalizeRoot(e){return e===bi?document:e}}Ci.roots=new Set,Ci.properties={};const wi=new WeakMap,$i=c.supportsAdoptedStyleSheets?class extends gi{constructor(e){super();const t=new CSSStyleSheet;this.target=t.cssRules[t.insertRule(":host{}")].style,e.$fastController.addStyles(Q.create([t]))}}:yi,ki=Object.freeze({getOrCreate(e){if(wi.has(e))return wi.get(e);let t;return e===bi?t=new Ci:e instanceof Document?t=c.supportsAdoptedStyleSheets?new mi:new vi:t=e instanceof fe?new $i(e):new xi(e),wi.set(e,t),t}});class Ti extends be{constructor(e){super(),this.subscribers=new WeakMap,this._appliedTo=new Set,this.name=e.name,null!==e.cssCustomPropertyName&&(this.cssCustomProperty=`--${e.cssCustomPropertyName}`,this.cssVar=`var(${this.cssCustomProperty})`),this.id=Ti.uniqueId(),Ti.tokensById.set(this.id,this)}get appliedTo(){return[...this._appliedTo]}static from(e){return new Ti({name:"string"==typeof e?e:e.name,cssCustomPropertyName:"string"==typeof e?e:void 0===e.cssCustomPropertyName?e.name:e.cssCustomPropertyName})}static isCSSDesignToken(e){return"string"==typeof e.cssCustomProperty}static isDerivedDesignTokenValue(e){return"function"==typeof e}static getTokenById(e){return Ti.tokensById.get(e)}getOrCreateSubscriberSet(e=this){return this.subscribers.get(e)||this.subscribers.set(e,new Set)&&this.subscribers.get(e)}createCSS(){return this.cssVar||""}getValueFor(e){const t=Si.getOrCreate(e).get(this);if(void 0!==t)return t;throw new Error(`Value could not be retrieved for token named "${this.name}". Ensure the value is set for ${e} or an ancestor of ${e}.`)}setValueFor(e,t){return this._appliedTo.add(e),t instanceof Ti&&(t=this.alias(t)),Si.getOrCreate(e).set(this,t),this}deleteValueFor(e){return this._appliedTo.delete(e),Si.existsFor(e)&&Si.getOrCreate(e).delete(this),this}withDefault(e){return this.setValueFor(bi,e),this}subscribe(e,t){const i=this.getOrCreateSubscriberSet(t);t&&!Si.existsFor(t)&&Si.getOrCreate(t),i.has(e)||i.add(e)}unsubscribe(e,t){const i=this.subscribers.get(t||this);i&&i.has(e)&&i.delete(e)}notify(e){const t=Object.freeze({token:this,target:e});this.subscribers.has(this)&&this.subscribers.get(this).forEach((e=>e.handleChange(t))),this.subscribers.has(e)&&this.subscribers.get(e).forEach((e=>e.handleChange(t)))}alias(e){return t=>e.getValueFor(t)}}Ti.uniqueId=(()=>{let e=0;return()=>(e++,e.toString(16))})(),Ti.tokensById=new Map;class Ii{constructor(e,t,i){this.source=e,this.token=t,this.node=i,this.dependencies=new Set,this.observer=m.binding(e,this,!1),this.observer.handleChange=this.observer.call,this.handleChange()}disconnect(){this.observer.disconnect()}handleChange(){this.node.store.set(this.token,this.observer.observe(this.node.target,C))}}class Oi{constructor(){this.values=new Map}set(e,t){this.values.get(e)!==t&&(this.values.set(e,t),m.getNotifier(this).notify(e.id))}get(e){return m.track(this,e.id),this.values.get(e)}delete(e){this.values.delete(e)}all(){return this.values.entries()}}const Ri=new WeakMap,Ai=new WeakMap;class Si{constructor(e){this.target=e,this.store=new Oi,this.children=[],this.assignedValues=new Map,this.reflecting=new Set,this.bindingObservers=new Map,this.tokenValueChangeHandler={handleChange:(e,t)=>{const i=Ti.getTokenById(t);if(i&&(i.notify(this.target),Ti.isCSSDesignToken(i))){const t=this.parent,s=this.isReflecting(i);if(t){const o=t.get(i),n=e.get(i);o===n||s?o===n&&s&&this.stopReflectToCSS(i):this.reflectToCSS(i)}else s||this.reflectToCSS(i)}}},Ri.set(e,this),m.getNotifier(this.store).subscribe(this.tokenValueChangeHandler),e instanceof fe?e.$fastController.addBehaviors([this]):e.isConnected&&this.bind()}static getOrCreate(e){return Ri.get(e)||new Si(e)}static existsFor(e){return Ri.has(e)}static findParent(e){if(bi!==e.target){let t=hi(e.target);for(;null!==t;){if(Ri.has(t))return Ri.get(t);t=hi(t)}return Si.getOrCreate(bi)}return null}static findClosestAssignedNode(e,t){let i=t;do{if(i.has(e))return i;i=i.parent?i.parent:i.target!==bi?Si.getOrCreate(bi):null}while(null!==i);return null}get parent(){return Ai.get(this)||null}has(e){return this.assignedValues.has(e)}get(e){const t=this.store.get(e);if(void 0!==t)return t;const i=this.getRaw(e);return void 0!==i?(this.hydrate(e,i),this.get(e)):void 0}getRaw(e){var t;return this.assignedValues.has(e)?this.assignedValues.get(e):null===(t=Si.findClosestAssignedNode(e,this))||void 0===t?void 0:t.getRaw(e)}set(e,t){Ti.isDerivedDesignTokenValue(this.assignedValues.get(e))&&this.tearDownBindingObserver(e),this.assignedValues.set(e,t),Ti.isDerivedDesignTokenValue(t)?this.setupBindingObserver(e,t):this.store.set(e,t)}delete(e){this.assignedValues.delete(e),this.tearDownBindingObserver(e);const t=this.getRaw(e);t?this.hydrate(e,t):this.store.delete(e)}bind(){const e=Si.findParent(this);e&&e.appendChild(this);for(const e of this.assignedValues.keys())e.notify(this.target)}unbind(){if(this.parent){Ai.get(this).removeChild(this)}}appendChild(e){e.parent&&Ai.get(e).removeChild(e);const t=this.children.filter((t=>e.contains(t)));Ai.set(e,this),this.children.push(e),t.forEach((t=>e.appendChild(t))),m.getNotifier(this.store).subscribe(e);for(const[t,i]of this.store.all())e.hydrate(t,this.bindingObservers.has(t)?this.getRaw(t):i)}removeChild(e){const t=this.children.indexOf(e);return-1!==t&&this.children.splice(t,1),m.getNotifier(this.store).unsubscribe(e),e.parent===this&&Ai.delete(e)}contains(e){return function(e,t){let i=t;for(;null!==i;){if(i===e)return!0;i=hi(i)}return!1}(this.target,e.target)}reflectToCSS(e){this.isReflecting(e)||(this.reflecting.add(e),Si.cssCustomPropertyReflector.startReflection(e,this.target))}stopReflectToCSS(e){this.isReflecting(e)&&(this.reflecting.delete(e),Si.cssCustomPropertyReflector.stopReflection(e,this.target))}isReflecting(e){return this.reflecting.has(e)}handleChange(e,t){const i=Ti.getTokenById(t);i&&this.hydrate(i,this.getRaw(i))}hydrate(e,t){if(!this.has(e)){const i=this.bindingObservers.get(e);Ti.isDerivedDesignTokenValue(t)?i?i.source!==t&&(this.tearDownBindingObserver(e),this.setupBindingObserver(e,t)):this.setupBindingObserver(e,t):(i&&this.tearDownBindingObserver(e),this.store.set(e,t))}}setupBindingObserver(e,t){const i=new Ii(t,e,this);return this.bindingObservers.set(e,i),i}tearDownBindingObserver(e){return!!this.bindingObservers.has(e)&&(this.bindingObservers.get(e).disconnect(),this.bindingObservers.delete(e),!0)}}Si.cssCustomPropertyReflector=new class{startReflection(e,t){e.subscribe(this,t),this.handleChange({token:e,target:t})}stopReflection(e,t){e.unsubscribe(this,t),this.remove(e,t)}handleChange(e){const{token:t,target:i}=e;this.add(t,i)}add(e,t){ki.getOrCreate(t).setProperty(e.cssCustomProperty,this.resolveCSSValue(Si.getOrCreate(t).get(e)))}remove(e,t){ki.getOrCreate(t).removeProperty(e.cssCustomProperty)}resolveCSSValue(e){return e&&"function"==typeof e.createCSS?e.createCSS():e}},ze([v],Si.prototype,"children",void 0);const Ei=Object.freeze({create:function(e){return Ti.from(e)},notifyConnection:e=>!(!e.isConnected||!Si.existsFor(e))&&(Si.getOrCreate(e).bind(),!0),notifyDisconnection:e=>!(e.isConnected||!Si.existsFor(e))&&(Si.getOrCreate(e).unbind(),!0),registerRoot(e=bi){Ci.registerRoot(e)},unregisterRoot(e=bi){Ci.unregisterRoot(e)}}),Di=Object.freeze({definitionCallbackOnly:null,ignoreDuplicate:Symbol()}),Pi=new Map,Bi=new Map;let Fi=null;const Li=Ye.createInterface((e=>e.cachedCallback((e=>(null===Fi&&(Fi=new Hi(null,e)),Fi))))),Vi=Object.freeze({tagFor:e=>Bi.get(e),responsibleFor(e){const t=e.$$designSystem$$;if(t)return t;return Ye.findResponsibleContainer(e).get(Li)},getOrCreate(e){if(!e)return null===Fi&&(Fi=Ye.getOrCreateDOMContainer().get(Li)),Fi;const t=e.$$designSystem$$;if(t)return t;const i=Ye.getOrCreateDOMContainer(e);if(i.has(Li,!1))return i.get(Li);{const t=new Hi(e,i);return i.register(ut.instance(Li,t)),t}}});class Hi{constructor(e,t){this.owner=e,this.container=t,this.designTokensInitialized=!1,this.prefix="fast",this.shadowRootMode=void 0,this.disambiguate=()=>Di.definitionCallbackOnly,null!==e&&(e.$$designSystem$$=this)}withPrefix(e){return this.prefix=e,this}withShadowRootMode(e){return this.shadowRootMode=e,this}withElementDisambiguation(e){return this.disambiguate=e,this}withDesignTokenRoot(e){return this.designTokenRoot=e,this}register(...e){const t=this.container,i=[],s=this.disambiguate,o=this.shadowRootMode,n={elementPrefix:this.prefix,tryDefineElement(e,n,r){const a=function(e,t,i){return"string"==typeof e?{name:e,type:t,callback:i}:e}(e,n,r),{name:l,callback:d,baseClass:c}=a;let{type:h}=a,u=l,p=Pi.get(u),f=!0;for(;p;){const e=s(u,h,p);switch(e){case Di.ignoreDuplicate:return;case Di.definitionCallbackOnly:f=!1,p=void 0;break;default:u=e,p=Pi.get(u)}}f&&((Bi.has(h)||h===kt)&&(h=class extends h{}),Pi.set(u,h),Bi.set(h,u),c&&Bi.set(c,u)),i.push(new Mi(t,u,h,o,d,f))}};this.designTokensInitialized||(this.designTokensInitialized=!0,null!==this.designTokenRoot&&Ei.registerRoot(this.designTokenRoot)),t.registerWithContext(n,...e);for(const e of i)e.callback(e),e.willDefine&&null!==e.definition&&e.definition.define();return this}}class Mi{constructor(e,t,i,s,o,n){this.container=e,this.name=t,this.type=i,this.shadowRootMode=s,this.callback=o,this.willDefine=n,this.definition=null}definePresentation(e){wt.define(this.name,e,this.container)}defineElement(e){this.definition=new le(this.type,Object.assign(Object.assign({},e),{name:this.name}))}tagFor(e){return Vi.tagFor(e)}}var Ni;!function(e){e.separator="separator",e.presentation="presentation"}(Ni||(Ni={}));class zi extends kt{constructor(){super(...arguments),this.role=Ni.separator,this.orientation=Rt.horizontal}}ze([oe],zi.prototype,"role",void 0),ze([oe],zi.prototype,"orientation",void 0);class ji extends kt{}class _i extends(jt(ji)){constructor(){super(...arguments),this.proxy=document.createElement("input")}}var qi;!function(e){e.email="email",e.password="password",e.tel="tel",e.text="text",e.url="url"}(qi||(qi={}));class Ui extends _i{constructor(){super(...arguments),this.type=qi.text}readOnlyChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.readOnly=this.readOnly,this.validate())}autofocusChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.autofocus=this.autofocus,this.validate())}placeholderChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.placeholder=this.placeholder)}typeChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.type=this.type,this.validate())}listChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.setAttribute("list",this.list),this.validate())}maxlengthChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.maxLength=this.maxlength,this.validate())}minlengthChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.minLength=this.minlength,this.validate())}patternChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.pattern=this.pattern,this.validate())}sizeChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.size=this.size)}spellcheckChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.spellcheck=this.spellcheck)}connectedCallback(){super.connectedCallback(),this.proxy.setAttribute("type",this.type),this.validate(),this.autofocus&&c.queueUpdate((()=>{this.focus()}))}handleTextInput(){this.value=this.control.value}handleChange(){this.$emit("change")}}ze([oe({attribute:"readonly",mode:"boolean"})],Ui.prototype,"readOnly",void 0),ze([oe({mode:"boolean"})],Ui.prototype,"autofocus",void 0),ze([oe],Ui.prototype,"placeholder",void 0),ze([oe],Ui.prototype,"type",void 0),ze([oe],Ui.prototype,"list",void 0),ze([oe({converter:ie})],Ui.prototype,"maxlength",void 0),ze([oe({converter:ie})],Ui.prototype,"minlength",void 0),ze([oe],Ui.prototype,"pattern",void 0),ze([oe({converter:ie})],Ui.prototype,"size",void 0),ze([oe({mode:"boolean"})],Ui.prototype,"spellcheck",void 0),ze([v],Ui.prototype,"defaultSlottedNodes",void 0);class Ki{}Ot(Ki,Ft),Ot(Ui,He,Ki);class Gi extends kt{constructor(){super(...arguments),this.percentComplete=0}valueChanged(){this.$fastController.isConnected&&this.updatePercentComplete()}minChanged(){this.$fastController.isConnected&&this.updatePercentComplete()}maxChanged(){this.$fastController.isConnected&&this.updatePercentComplete()}connectedCallback(){super.connectedCallback(),this.updatePercentComplete()}updatePercentComplete(){const e="number"==typeof this.min?this.min:0,t="number"==typeof this.max?this.max:100,i="number"==typeof this.value?this.value:0,s=t-e;this.percentComplete=0===s?0:Math.fround((i-e)/s*100)}}ze([oe({converter:ie})],Gi.prototype,"value",void 0),ze([oe({converter:ie})],Gi.prototype,"min",void 0),ze([oe({converter:ie})],Gi.prototype,"max",void 0),ze([oe({mode:"boolean"})],Gi.prototype,"paused",void 0),ze([v],Gi.prototype,"percentComplete",void 0);class Wi extends kt{constructor(){super(...arguments),this.orientation=Rt.horizontal,this.radioChangeHandler=e=>{const t=e.target;t.checked&&(this.slottedRadioButtons.forEach((e=>{e!==t&&(e.checked=!1,this.isInsideFoundationToolbar||e.setAttribute("tabindex","-1"))})),this.selectedRadio=t,this.value=t.value,t.setAttribute("tabindex","0"),this.focusedRadio=t),e.stopPropagation()},this.moveToRadioByIndex=(e,t)=>{const i=e[t];this.isInsideToolbar||(i.setAttribute("tabindex","0"),i.readOnly?this.slottedRadioButtons.forEach((e=>{e!==i&&e.setAttribute("tabindex","-1")})):(i.checked=!0,this.selectedRadio=i)),this.focusedRadio=i,i.focus()},this.moveRightOffGroup=()=>{var e;null===(e=this.nextElementSibling)||void 0===e||e.focus()},this.moveLeftOffGroup=()=>{var e;null===(e=this.previousElementSibling)||void 0===e||e.focus()},this.focusOutHandler=e=>{const t=this.slottedRadioButtons,i=e.target,s=null!==i?t.indexOf(i):0,o=this.focusedRadio?t.indexOf(this.focusedRadio):-1;return(0===o&&s===o||o===t.length-1&&o===s)&&(this.selectedRadio?(this.focusedRadio=this.selectedRadio,this.isInsideFoundationToolbar||(this.selectedRadio.setAttribute("tabindex","0"),t.forEach((e=>{e!==this.selectedRadio&&e.setAttribute("tabindex","-1")})))):(this.focusedRadio=t[0],this.focusedRadio.setAttribute("tabindex","0"),t.forEach((e=>{e!==this.focusedRadio&&e.setAttribute("tabindex","-1")})))),!0},this.clickHandler=e=>{const t=e.target;if(t){const e=this.slottedRadioButtons;t.checked||0===e.indexOf(t)?(t.setAttribute("tabindex","0"),this.selectedRadio=t):(t.setAttribute("tabindex","-1"),this.selectedRadio=null),this.focusedRadio=t}e.preventDefault()},this.shouldMoveOffGroupToTheRight=(e,t,i)=>e===t.length&&this.isInsideToolbar&&"ArrowRight"===i,this.shouldMoveOffGroupToTheLeft=(e,t)=>(this.focusedRadio?e.indexOf(this.focusedRadio)-1:0)<0&&this.isInsideToolbar&&"ArrowLeft"===t,this.checkFocusedRadio=()=>{null===this.focusedRadio||this.focusedRadio.readOnly||this.focusedRadio.checked||(this.focusedRadio.checked=!0,this.focusedRadio.setAttribute("tabindex","0"),this.focusedRadio.focus(),this.selectedRadio=this.focusedRadio)},this.moveRight=e=>{const t=this.slottedRadioButtons;let i=0;if(i=this.focusedRadio?t.indexOf(this.focusedRadio)+1:1,this.shouldMoveOffGroupToTheRight(i,t,e.key))this.moveRightOffGroup();else for(i===t.length&&(i=0);i1;){if(!t[i].disabled){this.moveToRadioByIndex(t,i);break}if(this.focusedRadio&&i===t.indexOf(this.focusedRadio))break;if(i+1>=t.length){if(this.isInsideToolbar)break;i=0}else i+=1}},this.moveLeft=e=>{const t=this.slottedRadioButtons;let i=0;if(i=this.focusedRadio?t.indexOf(this.focusedRadio)-1:0,i=i<0?t.length-1:i,this.shouldMoveOffGroupToTheLeft(t,e.key))this.moveLeftOffGroup();else for(;i>=0&&t.length>1;){if(!t[i].disabled){this.moveToRadioByIndex(t,i);break}if(this.focusedRadio&&i===t.indexOf(this.focusedRadio))break;i-1<0?i=t.length-1:i-=1}},this.keydownHandler=e=>{const t=e.key;if(t in Et&&this.isInsideFoundationToolbar)return!0;switch(t){case"Enter":this.checkFocusedRadio();break;case"ArrowRight":case"ArrowDown":this.direction===Dt.ltr?this.moveRight(e):this.moveLeft(e);break;case"ArrowLeft":case"ArrowUp":this.direction===Dt.ltr?this.moveLeft(e):this.moveRight(e);break;default:return!0}}}readOnlyChanged(){void 0!==this.slottedRadioButtons&&this.slottedRadioButtons.forEach((e=>{this.readOnly?e.readOnly=!0:e.readOnly=!1}))}disabledChanged(){void 0!==this.slottedRadioButtons&&this.slottedRadioButtons.forEach((e=>{this.disabled?e.disabled=!0:e.disabled=!1}))}nameChanged(){this.slottedRadioButtons&&this.slottedRadioButtons.forEach((e=>{e.setAttribute("name",this.name)}))}valueChanged(){this.slottedRadioButtons&&this.slottedRadioButtons.forEach((e=>{e.getAttribute("value")===this.value&&(e.checked=!0,this.selectedRadio=e)})),this.$emit("change")}slottedRadioButtonsChanged(e,t){this.slottedRadioButtons&&this.slottedRadioButtons.length>0&&this.setupRadioButtons()}get parentToolbar(){return this.closest('[role="toolbar"]')}get isInsideToolbar(){var e;return null!==(e=this.parentToolbar)&&void 0!==e&&e}get isInsideFoundationToolbar(){var e;return!!(null===(e=this.parentToolbar)||void 0===e?void 0:e.$fastController)}connectedCallback(){super.connectedCallback(),this.direction=(e=>{const t=e.closest("[dir]");return null!==t&&"rtl"===t.dir?Dt.rtl:Dt.ltr})(this),this.setupRadioButtons()}disconnectedCallback(){this.slottedRadioButtons.forEach((e=>{e.removeEventListener("change",this.radioChangeHandler)}))}setupRadioButtons(){const e=this.slottedRadioButtons.filter((e=>e.hasAttribute("checked"))),t=e?e.length:0;if(t>1){e[t-1].checked=!0}let i=!1;if(this.slottedRadioButtons.forEach((e=>{void 0!==this.name&&e.setAttribute("name",this.name),this.disabled&&(e.disabled=!0),this.readOnly&&(e.readOnly=!0),this.value&&this.value===e.value?(this.selectedRadio=e,this.focusedRadio=e,e.checked=!0,e.setAttribute("tabindex","0"),i=!0):(this.isInsideFoundationToolbar||e.setAttribute("tabindex","-1"),e.checked=!1),e.addEventListener("change",this.radioChangeHandler)})),void 0===this.value&&this.slottedRadioButtons.length>0){const e=this.slottedRadioButtons.filter((e=>e.hasAttribute("checked"))),t=null!==e?e.length:0;if(t>0&&!i){const i=e[t-1];i.checked=!0,this.focusedRadio=i,i.setAttribute("tabindex","0")}else this.slottedRadioButtons[0].setAttribute("tabindex","0"),this.focusedRadio=this.slottedRadioButtons[0]}}}ze([oe({attribute:"readonly",mode:"boolean"})],Wi.prototype,"readOnly",void 0),ze([oe({attribute:"disabled",mode:"boolean"})],Wi.prototype,"disabled",void 0),ze([oe],Wi.prototype,"name",void 0),ze([oe],Wi.prototype,"value",void 0),ze([oe],Wi.prototype,"orientation",void 0),ze([v],Wi.prototype,"childItems",void 0),ze([v],Wi.prototype,"slottedRadioButtons",void 0);class Qi extends kt{}class Yi extends(_t(Qi)){constructor(){super(...arguments),this.proxy=document.createElement("input")}}class Xi extends Yi{constructor(){super(),this.initialValue="on",this.keypressHandler=e=>{if(" "!==e.key)return!0;this.checked||this.readOnly||(this.checked=!0)},this.proxy.setAttribute("type","radio")}readOnlyChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.readOnly=this.readOnly)}defaultCheckedChanged(){var e;this.$fastController.isConnected&&!this.dirtyChecked&&(this.isInsideRadioGroup()||(this.checked=null!==(e=this.defaultChecked)&&void 0!==e&&e,this.dirtyChecked=!1))}connectedCallback(){var e,t;super.connectedCallback(),this.validate(),"radiogroup"!==(null===(e=this.parentElement)||void 0===e?void 0:e.getAttribute("role"))&&null===this.getAttribute("tabindex")&&(this.disabled||this.setAttribute("tabindex","0")),this.checkedAttribute&&(this.dirtyChecked||this.isInsideRadioGroup()||(this.checked=null!==(t=this.defaultChecked)&&void 0!==t&&t,this.dirtyChecked=!1))}isInsideRadioGroup(){return null!==this.closest("[role=radiogroup]")}clickHandler(e){this.disabled||this.readOnly||this.checked||(this.checked=!0)}}ze([oe({attribute:"readonly",mode:"boolean"})],Xi.prototype,"readOnly",void 0),ze([v],Xi.prototype,"name",void 0),ze([v],Xi.prototype,"defaultSlottedNodes",void 0);class Ji extends li{}class Zi extends(jt(Ji)){constructor(){super(...arguments),this.proxy=document.createElement("select")}}class es extends Zi{constructor(){super(...arguments),this.open=!1,this.forcedPosition=!1,this.position=ci.below,this.listboxId=Bt("listbox-"),this.maxHeight=0,this.displayValue=""}openChanged(){if(this.open)return this.ariaControls=this.listboxId,this.ariaExpanded="true",this.setPositioning(),this.focusAndScrollOptionIntoView(),this.indexWhenOpened=this.selectedIndex,void c.queueUpdate((()=>this.focus()));this.ariaControls="",this.ariaExpanded="false"}get value(){return m.track(this,"value"),this._value}set value(e){var t;const i=`${this._value}`;if(null===(t=this.options)||void 0===t?void 0:t.length){const t=this.options.findIndex((t=>t.value===e)),i=this.options[this.selectedIndex],s=this.options[t],o=i?i.value:null,n=s?s.value:null;-1!==t&&o===n||(e="",this.selectedIndex=t),this.firstSelectedOption&&(e=this.firstSelectedOption.value)}i!==e&&(this._value=e,super.valueChanged(i,e),m.notify(this,"value"))}updateValue(e){this.$fastController.isConnected&&(this.value=this.firstSelectedOption?this.firstSelectedOption.value:"",this.displayValue=this.firstSelectedOption?this.firstSelectedOption.textContent||this.firstSelectedOption.value:this.value),e&&(this.$emit("input"),this.$emit("change",this,{bubbles:!0,composed:void 0}))}selectedIndexChanged(e,t){super.selectedIndexChanged(e,t),this.updateValue()}positionChanged(){this.positionAttribute=this.position,this.setPositioning()}setPositioning(){const e=this.getBoundingClientRect(),t=window.innerHeight-e.bottom;this.position=this.forcedPosition?this.positionAttribute:e.top>t?ci.above:ci.below,this.positionAttribute=this.forcedPosition?this.positionAttribute:this.position,this.maxHeight=this.position===ci.above?~~e.top:~~t}maxHeightChanged(){this.listbox&&this.listbox.style.setProperty("--max-height",`${this.maxHeight}px`)}disabledChanged(e,t){super.disabledChanged&&super.disabledChanged(e,t),this.ariaDisabled=this.disabled?"true":"false"}formResetCallback(){this.setProxyOptions(),super.setDefaultSelectedOption(),-1===this.selectedIndex&&(this.selectedIndex=0)}clickHandler(e){if(!this.disabled){if(this.open){const t=e.target.closest("option,[role=option]");if(t&&t.disabled)return}return super.clickHandler(e),this.open=!this.open,this.open||this.indexWhenOpened===this.selectedIndex||this.updateValue(!0),!0}}focusoutHandler(e){var t;if(!this.open)return!0;const i=e.relatedTarget;this.isSameNode(i)?this.focus():(null===(t=this.options)||void 0===t?void 0:t.includes(i))||(this.open=!1,this.indexWhenOpened!==this.selectedIndex&&this.updateValue(!0))}slottedOptionsChanged(e,t){super.slottedOptionsChanged(e,t),this.setProxyOptions(),this.updateValue()}setDefaultSelectedOption(){var e;const t=null!==(e=this.options)&&void 0!==e?e:Array.from(this.children).filter(li.slottedOptionFilter),i=null==t?void 0:t.findIndex((e=>e.hasAttribute("selected")||e.selected||e.value===this.value));this.selectedIndex=-1===i?0:i}setProxyOptions(){this.proxy instanceof HTMLSelectElement&&this.options&&(this.proxy.options.length=0,this.options.forEach((e=>{const t=e.proxy||(e instanceof HTMLOptionElement?e.cloneNode():null);t&&this.proxy.appendChild(t)})))}keydownHandler(e){super.keydownHandler(e);switch(e.key||e.key.charCodeAt(0)){case" ":this.typeaheadExpired&&(e.preventDefault(),this.open=!this.open);break;case"Enter":e.preventDefault(),this.open=!this.open;break;case"Escape":this.open&&(e.preventDefault(),this.open=!1);break;case"Tab":if(!this.open)return!0;e.preventDefault(),this.open=!1}return this.open||this.indexWhenOpened===this.selectedIndex||(this.updateValue(!0),this.indexWhenOpened=this.selectedIndex),!0}connectedCallback(){super.connectedCallback(),this.forcedPosition=!!this.positionAttribute}}ze([oe({attribute:"open",mode:"boolean"})],es.prototype,"open",void 0),ze([oe({attribute:"position"})],es.prototype,"positionAttribute",void 0),ze([v],es.prototype,"position",void 0),ze([v],es.prototype,"maxHeight",void 0),ze([v],es.prototype,"displayValue",void 0);class ts{}ze([v],ts.prototype,"ariaControls",void 0),Ot(ts,di),Ot(es,He,ts);class is extends kt{}class ss extends kt{}ze([oe({mode:"boolean"})],ss.prototype,"disabled",void 0);var os,ns;!function(e){e.vertical="vertical",e.horizontal="horizontal"}(os||(os={}));class rs extends kt{constructor(){super(...arguments),this.orientation=os.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=e=>"true"===e.getAttribute("aria-disabled"),this.isFocusableElement=e=>!this.isDisabledElement(e),this.setTabs=()=>{const e="gridColumn",t="gridRow",i=this.isHorizontal()?e:t;this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.activeTabIndex=this.getActiveIndex(),this.showActiveIndicator=!1,this.tabs.forEach(((e,t)=>{if("tab"===e.slot){const i=this.activeTabIndex===t&&this.isFocusableElement(e);this.activeindicator&&this.isFocusableElement(e)&&(this.showActiveIndicator=!0);const s=this.tabIds[t],o=this.tabpanelIds[t];e.setAttribute("id","string"!=typeof s?`tab-${t+1}`:s),e.setAttribute("aria-selected",i?"true":"false"),e.setAttribute("aria-controls","string"!=typeof o?`panel-${t+1}`:o),e.addEventListener("click",this.handleTabClick),e.addEventListener("keydown",this.handleTabKeyDown),e.setAttribute("tabindex",i?"0":"-1"),i&&(this.activetab=e)}e.style.gridColumn="",e.style.gridRow="",e.style[i]=`${t+1}`,this.isHorizontal()?e.classList.remove("vertical"):e.classList.add("vertical")}))},this.setTabPanels=()=>{this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.tabpanels.forEach(((e,t)=>{const i=this.tabIds[t],s=this.tabpanelIds[t];e.setAttribute("id","string"!=typeof s?`panel-${t+1}`:s),e.setAttribute("aria-labelledby","string"!=typeof i?`tab-${t+1}`:i),this.activeTabIndex!==t?e.setAttribute("hidden",""):e.removeAttribute("hidden")}))},this.handleTabClick=e=>{const t=e.currentTarget;1===t.nodeType&&this.isFocusableElement(t)&&(this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=this.tabs.indexOf(t),this.setComponent())},this.handleTabKeyDown=e=>{if(this.isHorizontal())switch(e.key){case"ArrowLeft":e.preventDefault(),this.adjustBackward(e);break;case"ArrowRight":e.preventDefault(),this.adjustForward(e)}else switch(e.key){case"ArrowUp":e.preventDefault(),this.adjustBackward(e);break;case"ArrowDown":e.preventDefault(),this.adjustForward(e)}switch(e.key){case"Home":e.preventDefault(),this.adjust(-this.activeTabIndex);break;case"End":e.preventDefault(),this.adjust(this.tabs.length-this.activeTabIndex-1)}},this.adjustForward=e=>{const t=this.tabs;let i=0;for(i=this.activetab?t.indexOf(this.activetab)+1:1,i===t.length&&(i=0);i1;){if(this.isFocusableElement(t[i])){this.moveToTabByIndex(t,i);break}if(this.activetab&&i===t.indexOf(this.activetab))break;i+1>=t.length?i=0:i+=1}},this.adjustBackward=e=>{const t=this.tabs;let i=0;for(i=this.activetab?t.indexOf(this.activetab)-1:0,i=i<0?t.length-1:i;i>=0&&t.length>1;){if(this.isFocusableElement(t[i])){this.moveToTabByIndex(t,i);break}i-1<0?i=t.length-1:i-=1}},this.moveToTabByIndex=(e,t)=>{const i=e[t];this.activetab=i,this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=t,i.focus(),this.setComponent()}}orientationChanged(){this.$fastController.isConnected&&(this.setTabs(),this.setTabPanels(),this.handleActiveIndicatorPosition())}activeidChanged(e,t){this.$fastController.isConnected&&this.tabs.length<=this.tabpanels.length&&(this.prevActiveTabIndex=this.tabs.findIndex((t=>t.id===e)),this.setTabs(),this.setTabPanels(),this.handleActiveIndicatorPosition())}tabsChanged(){this.$fastController.isConnected&&this.tabs.length<=this.tabpanels.length&&(this.setTabs(),this.setTabPanels(),this.handleActiveIndicatorPosition())}tabpanelsChanged(){this.$fastController.isConnected&&this.tabpanels.length<=this.tabs.length&&(this.setTabs(),this.setTabPanels(),this.handleActiveIndicatorPosition())}getActiveIndex(){return void 0!==this.activeid?-1===this.tabIds.indexOf(this.activeid)?0:this.tabIds.indexOf(this.activeid):0}getTabIds(){return this.tabs.map((e=>e.getAttribute("id")))}getTabPanelIds(){return this.tabpanels.map((e=>e.getAttribute("id")))}setComponent(){this.activeTabIndex!==this.prevActiveTabIndex&&(this.activeid=this.tabIds[this.activeTabIndex],this.focusTab(),this.change())}isHorizontal(){return this.orientation===os.horizontal}handleActiveIndicatorPosition(){this.showActiveIndicator&&this.activeindicator&&this.activeTabIndex!==this.prevActiveTabIndex&&(this.ticking?this.ticking=!1:(this.ticking=!0,this.animateActiveIndicator()))}animateActiveIndicator(){this.ticking=!0;const e=this.isHorizontal()?"gridColumn":"gridRow",t=this.isHorizontal()?"translateX":"translateY",i=this.isHorizontal()?"offsetLeft":"offsetTop",s=this.activeIndicatorRef[i];this.activeIndicatorRef.style[e]=`${this.activeTabIndex+1}`;const o=this.activeIndicatorRef[i];this.activeIndicatorRef.style[e]=`${this.prevActiveTabIndex+1}`;const n=o-s;this.activeIndicatorRef.style.transform=`${t}(${n}px)`,this.activeIndicatorRef.classList.add("activeIndicatorTransition"),this.activeIndicatorRef.addEventListener("transitionend",(()=>{this.ticking=!1,this.activeIndicatorRef.style[e]=`${this.activeTabIndex+1}`,this.activeIndicatorRef.style.transform=`${t}(0px)`,this.activeIndicatorRef.classList.remove("activeIndicatorTransition")}))}adjust(e){var t,i,s;this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=(t=0,i=this.tabs.length-1,(s=this.activeTabIndex+e)i?t:s),this.setComponent()}focusTab(){this.tabs[this.activeTabIndex].focus()}connectedCallback(){super.connectedCallback(),this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.activeTabIndex=this.getActiveIndex()}}ze([oe],rs.prototype,"orientation",void 0),ze([oe],rs.prototype,"activeid",void 0),ze([v],rs.prototype,"tabs",void 0),ze([v],rs.prototype,"tabpanels",void 0),ze([oe({mode:"boolean"})],rs.prototype,"activeindicator",void 0),ze([v],rs.prototype,"activeIndicatorRef",void 0),ze([v],rs.prototype,"showActiveIndicator",void 0),Ot(rs,He);class as extends kt{}class ls extends(jt(as)){constructor(){super(...arguments),this.proxy=document.createElement("textarea")}}!function(e){e.none="none",e.both="both",e.horizontal="horizontal",e.vertical="vertical"}(ns||(ns={}));class ds extends ls{constructor(){super(...arguments),this.resize=ns.none,this.cols=20,this.handleTextInput=()=>{this.value=this.control.value}}readOnlyChanged(){this.proxy instanceof HTMLTextAreaElement&&(this.proxy.readOnly=this.readOnly)}autofocusChanged(){this.proxy instanceof HTMLTextAreaElement&&(this.proxy.autofocus=this.autofocus)}listChanged(){this.proxy instanceof HTMLTextAreaElement&&this.proxy.setAttribute("list",this.list)}maxlengthChanged(){this.proxy instanceof HTMLTextAreaElement&&(this.proxy.maxLength=this.maxlength)}minlengthChanged(){this.proxy instanceof HTMLTextAreaElement&&(this.proxy.minLength=this.minlength)}spellcheckChanged(){this.proxy instanceof HTMLTextAreaElement&&(this.proxy.spellcheck=this.spellcheck)}handleChange(){this.$emit("change")}}ze([oe({mode:"boolean"})],ds.prototype,"readOnly",void 0),ze([oe],ds.prototype,"resize",void 0),ze([oe({mode:"boolean"})],ds.prototype,"autofocus",void 0),ze([oe({attribute:"form"})],ds.prototype,"formId",void 0),ze([oe],ds.prototype,"list",void 0),ze([oe({converter:ie})],ds.prototype,"maxlength",void 0),ze([oe({converter:ie})],ds.prototype,"minlength",void 0),ze([oe],ds.prototype,"name",void 0),ze([oe],ds.prototype,"placeholder",void 0),ze([oe({converter:ie,mode:"fromView"})],ds.prototype,"cols",void 0),ze([oe({converter:ie,mode:"fromView"})],ds.prototype,"rows",void 0),ze([oe({mode:"boolean"})],ds.prototype,"spellcheck",void 0),ze([v],ds.prototype,"defaultSlottedNodes",void 0),Ot(ds,Ki);function cs(e){const t=getComputedStyle(document.body),i=document.querySelector("body");if(i){const s=i.getAttribute("data-vscode-theme-kind");for(const[o,n]of e){let e=t.getPropertyValue(o).toString();if("vscode-high-contrast"===s)0===e.length&&n.name.includes("background")&&(e="transparent"),"button-icon-hover-background"===n.name&&(e="transparent");else if("vscode-high-contrast-light"===s){if(0===e.length&&n.name.includes("background"))switch(n.name){case"button-primary-hover-background":e="#0F4A85";break;case"button-secondary-hover-background":case"button-icon-hover-background":e="transparent"}}else"contrast-active-border"===n.name&&(e="transparent");n.setValueFor(i,e)}}}const hs=new Map;let us=!1;function ps(e,t){const i=Ei.create(e);if(t){if(t.includes("--fake-vscode-token")){t=`${t}-${"id"+Math.random().toString(16).slice(2)}`}hs.set(t,i)}return us||(!function(e){window.addEventListener("load",(()=>{new MutationObserver((()=>{cs(e)})).observe(document.body,{attributes:!0,attributeFilter:["class"]}),cs(e)}))}(hs),us=!0),i}const fs=ps("background","--vscode-editor-background").withDefault("#1e1e1e"),bs=ps("border-width").withDefault(1),gs=ps("contrast-active-border","--vscode-contrastActiveBorder").withDefault("#f38518");ps("contrast-border","--vscode-contrastBorder").withDefault("#6fc3df");const ms=ps("corner-radius").withDefault(0),vs=ps("design-unit").withDefault(4),ys=ps("disabled-opacity").withDefault(.4),xs=ps("focus-border","--vscode-focusBorder").withDefault("#007fd4"),Cs=ps("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");ps("font-weight","--vscode-font-weight").withDefault("400");const ws=ps("foreground","--vscode-foreground").withDefault("#cccccc"),$s=ps("input-height").withDefault("26"),ks=ps("input-min-width").withDefault("100px"),Ts=ps("type-ramp-base-font-size","--vscode-font-size").withDefault("13px"),Is=ps("type-ramp-base-line-height").withDefault("normal"),Os=ps("type-ramp-minus1-font-size").withDefault("11px"),Rs=ps("type-ramp-minus1-line-height").withDefault("16px");ps("type-ramp-minus2-font-size").withDefault("9px"),ps("type-ramp-minus2-line-height").withDefault("16px"),ps("type-ramp-plus1-font-size").withDefault("16px"),ps("type-ramp-plus1-line-height").withDefault("24px");const As=ps("scrollbarWidth").withDefault("10px"),Ss=ps("scrollbarHeight").withDefault("10px"),Es=ps("scrollbar-slider-background","--vscode-scrollbarSlider-background").withDefault("#79797966"),Ds=ps("scrollbar-slider-hover-background","--vscode-scrollbarSlider-hoverBackground").withDefault("#646464b3"),Ps=ps("scrollbar-slider-active-background","--vscode-scrollbarSlider-activeBackground").withDefault("#bfbfbf66"),Bs=ps("badge-background","--vscode-badge-background").withDefault("#4d4d4d"),Fs=ps("badge-foreground","--vscode-badge-foreground").withDefault("#ffffff"),Ls=ps("button-border","--vscode-button-border").withDefault("transparent"),Vs=ps("button-icon-background").withDefault("transparent"),Hs=ps("button-icon-corner-radius").withDefault("5px"),Ms=ps("button-icon-outline-offset").withDefault(0),Ns=ps("button-icon-hover-background","--fake-vscode-token").withDefault("rgba(90, 93, 94, 0.31)"),zs=ps("button-icon-padding").withDefault("3px"),js=ps("button-primary-background","--vscode-button-background").withDefault("#0e639c"),_s=ps("button-primary-foreground","--vscode-button-foreground").withDefault("#ffffff"),qs=ps("button-primary-hover-background","--vscode-button-hoverBackground").withDefault("#1177bb"),Us=ps("button-secondary-background","--vscode-button-secondaryBackground").withDefault("#3a3d41"),Ks=ps("button-secondary-foreground","--vscode-button-secondaryForeground").withDefault("#ffffff"),Gs=ps("button-secondary-hover-background","--vscode-button-secondaryHoverBackground").withDefault("#45494e"),Ws=ps("button-padding-horizontal").withDefault("11px"),Qs=ps("button-padding-vertical").withDefault("4px"),Ys=ps("checkbox-background","--vscode-checkbox-background").withDefault("#3c3c3c"),Xs=ps("checkbox-border","--vscode-checkbox-border").withDefault("#3c3c3c"),Js=ps("checkbox-corner-radius").withDefault(3);ps("checkbox-foreground","--vscode-checkbox-foreground").withDefault("#f0f0f0");const Zs=ps("list-active-selection-background","--vscode-list-activeSelectionBackground").withDefault("#094771"),eo=ps("list-active-selection-foreground","--vscode-list-activeSelectionForeground").withDefault("#ffffff"),to=ps("list-hover-background","--vscode-list-hoverBackground").withDefault("#2a2d2e"),io=ps("divider-background","--vscode-settings-dropdownListBorder").withDefault("#454545"),so=ps("dropdown-background","--vscode-dropdown-background").withDefault("#3c3c3c"),oo=ps("dropdown-border","--vscode-dropdown-border").withDefault("#3c3c3c");ps("dropdown-foreground","--vscode-dropdown-foreground").withDefault("#f0f0f0");const no=ps("dropdown-list-max-height").withDefault("200px"),ro=ps("input-background","--vscode-input-background").withDefault("#3c3c3c"),ao=ps("input-foreground","--vscode-input-foreground").withDefault("#cccccc");ps("input-placeholder-foreground","--vscode-input-placeholderForeground").withDefault("#cccccc");const lo=ps("link-active-foreground","--vscode-textLink-activeForeground").withDefault("#3794ff"),co=ps("link-foreground","--vscode-textLink-foreground").withDefault("#3794ff"),ho=ps("progress-background","--vscode-progressBar-background").withDefault("#0e70c0"),uo=ps("panel-tab-active-border","--vscode-panelTitle-activeBorder").withDefault("#e7e7e7"),po=ps("panel-tab-active-foreground","--vscode-panelTitle-activeForeground").withDefault("#e7e7e7"),fo=ps("panel-tab-foreground","--vscode-panelTitle-inactiveForeground").withDefault("#e7e7e799");ps("panel-view-background","--vscode-panel-background").withDefault("#1e1e1e"),ps("panel-view-border","--vscode-panel-border").withDefault("#80808059");const bo=ps("tag-corner-radius").withDefault("2px");class go extends Mt{connectedCallback(){super.connectedCallback(),this.circular||(this.circular=!0)}}const mo=go.compose({baseName:"badge",template:Ht,styles:(e,t)=>ge` ${ui("inline-block")} :host{box-sizing: border-box;font-family: ${Cs};font-size: ${Os};line-height: ${Rs};text-align: center}.control{align-items: center;background-color: ${Bs};border: calc(${bs} * 1px) solid ${Ls};border-radius: 11px;box-sizing: border-box;color: ${Fs};display: flex;height: calc(${vs} * 4px);justify-content: center;min-width: calc(${vs} * 4px + 2px);min-height: calc(${vs} * 4px + 2px);padding: 3px 6px}`}); -/*! ***************************************************************************** -Copyright (c) Microsoft Corporation. - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH -REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY -AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, -INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR -OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR -PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */const vo=ge` ${ui("inline-flex")} :host{outline: none;font-family: ${Cs};font-size: ${Ts};line-height: ${Is};color: ${_s};background: ${js};border-radius: 2px;fill: currentColor;cursor: pointer}.control{background: transparent;height: inherit;flex-grow: 1;box-sizing: border-box;display: inline-flex;justify-content: center;align-items: center;padding: ${Qs} ${Ws};white-space: wrap;outline: none;text-decoration: none;border: calc(${bs} * 1px) solid ${Ls};color: inherit;border-radius: inherit;fill: inherit;cursor: inherit;font-family: inherit}:host(:hover){background: ${qs}}:host(:active){background: ${js}}.control:${pi}{outline: calc(${bs} * 1px) solid ${xs};outline-offset: calc(${bs} * 2px)}.control::-moz-focus-inner{border: 0}:host([disabled]){opacity: ${ys};background: ${js};cursor: ${"not-allowed"}}.content{display: flex}.start{display: flex}::slotted(svg), ::slotted(span){width: calc(${vs} * 4px);height: calc(${vs} * 4px)}.start{margin-inline-end: 8px}`,yo=ge` :host([appearance='primary']){background: ${js};color: ${_s}}:host([appearance='primary']:hover){background: ${qs}}:host([appearance='primary']:active) .control:active{background: ${js}}:host([appearance='primary']) .control:${pi}{outline: calc(${bs} * 1px) solid ${xs};outline-offset: calc(${bs} * 2px)}:host([appearance='primary'][disabled]){background: ${js}}`,xo=ge` :host([appearance='secondary']){background: ${Us};color: ${Ks}}:host([appearance='secondary']:hover){background: ${Gs}}:host([appearance='secondary']:active) .control:active{background: ${Us}}:host([appearance='secondary']) .control:${pi}{outline: calc(${bs} * 1px) solid ${xs};outline-offset: calc(${bs} * 2px)}:host([appearance='secondary'][disabled]){background: ${Us}}`,Co=ge` :host([appearance='icon']){background: ${Vs};border-radius: ${Hs};color: ${ws}}:host([appearance='icon']:hover){background: ${Ns};outline: 1px dotted ${gs};outline-offset: -1px}:host([appearance='icon']) .control{padding: ${zs};border: none}:host([appearance='icon']:active) .control:active{background: ${Ns}}:host([appearance='icon']) .control:${pi}{outline: calc(${bs} * 1px) solid ${xs};outline-offset: ${Ms}}:host([appearance='icon'][disabled]){background: ${Vs}}`;class wo extends Kt{connectedCallback(){if(super.connectedCallback(),!this.appearance){const e=this.getAttribute("appearance");this.appearance=e}}attributeChangedCallback(e,t,i){if("appearance"===e&&"icon"===i){this.getAttribute("aria-label")||(this.ariaLabel="Icon Button")}"aria-label"===e&&(this.ariaLabel=i),"disabled"===e&&(this.disabled=null!==i)}}!function(e,t,i,s){var o,n=arguments.length,r=n<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(n<3?o(r):n>3?o(t,i,r):o(t,i))||r);n>3&&r&&Object.defineProperty(t,i,r)}([oe],wo.prototype,"appearance",void 0);const $o=wo.compose({baseName:"button",template:(e,t)=>W``,styles:(e,t)=>ge` ${vo} ${yo} ${xo} ${Co}`,shadowOptions:{delegatesFocus:!0}});class ko extends oi{connectedCallback(){super.connectedCallback(),this.textContent?this.setAttribute("aria-label",this.textContent):this.setAttribute("aria-label","Checkbox")}}const To=ko.compose({baseName:"checkbox",template:(e,t)=>W``,styles:(e,t)=>ge` ${ui("inline-flex")} :host{align-items: center;outline: none;margin: calc(${vs} * 1px) 0;user-select: none;font-size: ${Ts};line-height: ${Is}}.control{position: relative;width: calc(${vs} * 4px + 2px);height: calc(${vs} * 4px + 2px);box-sizing: border-box;border-radius: calc(${Js} * 1px);border: calc(${bs} * 1px) solid ${Xs};background: ${Ys};outline: none;cursor: pointer}.label{font-family: ${Cs};color: ${ws};padding-inline-start: calc(${vs} * 2px + 2px);margin-inline-end: calc(${vs} * 2px + 2px);cursor: pointer}.label__hidden{display: none;visibility: hidden}.checked-indicator{width: 100%;height: 100%;display: block;fill: ${ws};opacity: 0;pointer-events: none}.indeterminate-indicator{border-radius: 2px;background: ${ws};position: absolute;top: 50%;left: 50%;width: 50%;height: 50%;transform: translate(-50%, -50%);opacity: 0}:host(:enabled) .control:hover{background: ${Ys};border-color: ${Xs}}:host(:enabled) .control:active{background: ${Ys};border-color: ${xs}}:host(:${pi}) .control{border: calc(${bs} * 1px) solid ${xs}}:host(.disabled) .label, :host(.readonly) .label, :host(.readonly) .control, :host(.disabled) .control{cursor: ${"not-allowed"}}:host(.checked:not(.indeterminate)) .checked-indicator, :host(.indeterminate) .indeterminate-indicator{opacity: 1}:host(.disabled){opacity: ${ys}}`,checkedIndicator:'\n\t\t\n\t\t\t\n\t\t\n\t',indeterminateIndicator:'\n\t\t
    \n\t'});class Io extends Jt{connectedCallback(){super.connectedCallback();this.getAttribute("aria-label")||this.setAttribute("aria-label","Data Grid")}}const Oo=Io.compose({baseName:"data-grid",baseClass:Jt,template:(e,t)=>{const i=function(e){const t=e.tagFor(Xt);return W`<${t} :rowData="${e=>e}" :cellItemTemplate="${(e,t)=>t.parent.cellItemTemplate}" :headerCellItemTemplate="${(e,t)=>t.parent.headerCellItemTemplate}">`}(e),s=e.tagFor(Xt);return W``},styles:(e,t)=>ge` :host{display: flex;position: relative;flex-direction: column;width: 100%}`});class Ro extends Xt{}const Ao=Ro.compose({baseName:"data-grid-row",baseClass:Xt,template:(e,t)=>{const i=function(e){const t=e.tagFor(ti);return W`<${t} cell-type="${e=>e.isRowHeader?"rowheader":void 0}" grid-column="${(e,t)=>t.index+1}" :rowData="${(e,t)=>t.parent.rowData}" :columnDefinition="${e=>e}">`}(e),s=function(e){const t=e.tagFor(ti);return W`<${t} cell-type="columnheader" grid-column="${(e,t)=>t.index+1}" :columnDefinition="${e=>e}">`}(e);return W``},styles:(e,t)=>ge` :host{display: grid;padding: calc((${vs} / 4) * 1px) 0;box-sizing: border-box;width: 100%;background: transparent}:host(.header){}:host(.sticky-header){background: ${fs};position: sticky;top: 0}:host(:hover){background: ${to};outline: 1px dotted ${gs};outline-offset: -1px}`});class So extends ti{}const Eo=So.compose({baseName:"data-grid-cell",baseClass:ti,template:(e,t)=>W``,styles:(e,t)=>ge` :host{padding: calc(${vs} * 1px) calc(${vs} * 3px);color: ${ws};opacity: 1;box-sizing: border-box;font-family: ${Cs};font-size: ${Ts};line-height: ${Is};font-weight: 400;border: solid calc(${bs} * 1px) transparent;border-radius: calc(${ms} * 1px);white-space: wrap;overflow-wrap: anywhere}:host(.column-header){font-weight: 600}:host(:${pi}), :host(:focus), :host(:active){background: ${Zs};border: solid calc(${bs} * 1px) ${xs};color: ${eo};outline: none}:host(:${pi}) ::slotted(*), :host(:focus) ::slotted(*), :host(:active) ::slotted(*){color: ${eo} !important}`});class Do extends zi{}const Po=Do.compose({baseName:"divider",template:(e,t)=>W``,styles:(e,t)=>ge` ${ui("block")} :host{border: none;border-top: calc(${bs} * 1px) solid ${io};box-sizing: content-box;height: 0;margin: calc(${vs} * 1px) 0;width: 100%}`});class Bo extends es{}const Fo=Bo.compose({baseName:"dropdown",template:(e,t)=>W``,styles:(e,t)=>ge` ${ui("inline-flex")} :host{background: ${so};box-sizing: border-box;color: ${ws};contain: contents;font-family: ${Cs};height: calc(${$s} * 1px);position: relative;user-select: none;min-width: ${ks};outline: none;vertical-align: top}.control{align-items: center;box-sizing: border-box;border: calc(${bs} * 1px) solid ${oo};border-radius: calc(${ms} * 1px);cursor: pointer;display: flex;font-family: inherit;font-size: ${Ts};line-height: ${Is};min-height: 100%;padding: 2px 6px 2px 8px;width: 100%}.listbox{background: ${so};border: calc(${bs} * 1px) solid ${xs};border-radius: calc(${ms} * 1px);box-sizing: border-box;display: inline-flex;flex-direction: column;left: 0;max-height: ${no};padding: 0 0 calc(${vs} * 1px) 0;overflow-y: auto;position: absolute;width: 100%;z-index: 1}.listbox[hidden]{display: none}:host(:${pi}) .control{border-color: ${xs}}:host(:not([disabled]):hover){background: ${so};border-color: ${oo}}:host(:${pi}) ::slotted([aria-selected="true"][role="option"]:not([disabled])){background: ${Zs};border: calc(${bs} * 1px) solid ${xs};color: ${eo}}:host([disabled]){cursor: ${"not-allowed"};opacity: ${ys}}:host([disabled]) .control{cursor: ${"not-allowed"};user-select: none}:host([disabled]:hover){background: ${so};color: ${ws};fill: currentcolor}:host(:not([disabled])) .control:active{border-color: ${xs}}:host(:empty) .listbox{display: none}:host([open]) .control{border-color: ${xs}}:host([open][position='above']) .listbox, :host([open][position='below']) .control{border-bottom-left-radius: 0;border-bottom-right-radius: 0}:host([open][position='above']) .control, :host([open][position='below']) .listbox{border-top-left-radius: 0;border-top-right-radius: 0}:host([open][position='above']) .listbox{bottom: calc(${$s} * 1px)}:host([open][position='below']) .listbox{top: calc(${$s} * 1px)}.selected-value{flex: 1 1 auto;font-family: inherit;overflow: hidden;text-align: start;text-overflow: ellipsis;white-space: nowrap}.indicator{flex: 0 0 auto;margin-inline-start: 1em}slot[name='listbox']{display: none;width: 100%}:host([open]) slot[name='listbox']{display: flex;position: absolute}.end{margin-inline-start: auto}.start, .end, .indicator, .select-indicator, ::slotted(svg), ::slotted(span){fill: currentcolor;height: 1em;min-height: calc(${vs} * 4px);min-width: calc(${vs} * 4px);width: 1em}::slotted([role='option']), ::slotted(option){flex: 0 0 auto}`,indicator:'\n\t\t\n\t\t\t\n\t\t\n\t'});class Lo extends Lt{}const Vo=Lo.compose({baseName:"link",template:(e,t)=>W`${Ne(0,t)}${Me(0,t)}`,styles:(e,t)=>ge` ${ui("inline-flex")} :host{background: transparent;box-sizing: border-box;color: ${co};cursor: pointer;fill: currentcolor;font-family: ${Cs};font-size: ${Ts};line-height: ${Is};outline: none}.control{background: transparent;border: calc(${bs} * 1px) solid transparent;border-radius: calc(${ms} * 1px);box-sizing: border-box;color: inherit;cursor: inherit;fill: inherit;font-family: inherit;height: inherit;padding: 0;outline: none;text-decoration: none;word-break: break-word}.control::-moz-focus-inner{border: 0}:host(:hover){color: ${lo}}:host(:hover) .content{text-decoration: underline}:host(:active){background: transparent;color: ${lo}}:host(:${pi}) .control, :host(:focus) .control{border: calc(${bs} * 1px) solid ${xs}}`,shadowOptions:{delegatesFocus:!0}});class Ho extends ri{connectedCallback(){super.connectedCallback(),this.textContent?this.setAttribute("aria-label",this.textContent):this.setAttribute("aria-label","Option")}}const Mo=Ho.compose({baseName:"option",template:(e,t)=>W``,styles:(e,t)=>ge` ${ui("inline-flex")} :host{font-family: var(--body-font);border-radius: ${ms};border: calc(${bs} * 1px) solid transparent;box-sizing: border-box;color: ${ws};cursor: pointer;fill: currentcolor;font-size: ${Ts};line-height: ${Is};margin: 0;outline: none;overflow: hidden;padding: 0 calc((${vs} / 2) * 1px) calc((${vs} / 4) * 1px);user-select: none;white-space: nowrap}:host(:${pi}){border-color: ${xs};background: ${Zs};color: ${ws}}:host([aria-selected='true']){background: ${Zs};border: calc(${bs} * 1px) solid ${xs};color: ${eo}}:host(:active){background: ${Zs};color: ${eo}}:host(:not([aria-selected='true']):hover){background: ${Zs};border: calc(${bs} * 1px) solid ${xs};color: ${eo}}:host(:not([aria-selected='true']):active){background: ${Zs};color: ${ws}}:host([disabled]){cursor: ${"not-allowed"};opacity: ${ys}}:host([disabled]:hover){background-color: inherit}.content{grid-column-start: 2;justify-self: start;overflow: hidden;text-overflow: ellipsis}`});class No extends rs{connectedCallback(){super.connectedCallback(),this.orientation&&(this.orientation=os.horizontal);this.getAttribute("aria-label")||this.setAttribute("aria-label","Panels")}}const zo=No.compose({baseName:"panels",template:(e,t)=>W``,styles:(e,t)=>ge` ${ui("grid")} :host{box-sizing: border-box;font-family: ${Cs};font-size: ${Ts};line-height: ${Is};color: ${ws};grid-template-columns: auto 1fr auto;grid-template-rows: auto 1fr;overflow-x: auto}.tablist{display: grid;grid-template-rows: auto auto;grid-template-columns: auto;column-gap: calc(${vs} * 8px);position: relative;width: max-content;align-self: end;padding: calc(${vs} * 1px) calc(${vs} * 1px) 0;box-sizing: border-box}.start, .end{align-self: center}.activeIndicator{grid-row: 2;grid-column: 1;width: 100%;height: calc((${vs} / 4) * 1px);justify-self: center;background: ${po};margin: 0;border-radius: calc(${ms} * 1px)}.activeIndicatorTransition{transition: transform 0.01s linear}.tabpanel{grid-row: 2;grid-column-start: 1;grid-column-end: 4;position: relative}`});class jo extends ss{connectedCallback(){super.connectedCallback(),this.disabled&&(this.disabled=!1),this.textContent&&this.setAttribute("aria-label",this.textContent)}}const _o=jo.compose({baseName:"panel-tab",template:(e,t)=>W``,styles:(e,t)=>ge` ${ui("inline-flex")} :host{box-sizing: border-box;font-family: ${Cs};font-size: ${Ts};line-height: ${Is};height: calc(${vs} * 7px);padding: calc(${vs} * 1px) 0;color: ${fo};fill: currentcolor;border-radius: calc(${ms} * 1px);border: solid calc(${bs} * 1px) transparent;align-items: center;justify-content: center;grid-row: 1;cursor: pointer}:host(:hover){color: ${po};fill: currentcolor}:host(:active){color: ${po};fill: currentcolor}:host([aria-selected='true']){background: transparent;color: ${po};fill: currentcolor}:host([aria-selected='true']:hover){background: transparent;color: ${po};fill: currentcolor}:host([aria-selected='true']:active){background: transparent;color: ${po};fill: currentcolor}:host(:${pi}){outline: none;border: solid calc(${bs} * 1px) ${uo}}:host(:focus){outline: none}::slotted(vscode-badge){margin-inline-start: calc(${vs} * 2px)}`});class qo extends is{}const Uo=qo.compose({baseName:"panel-view",template:(e,t)=>W``,styles:(e,t)=>ge` ${ui("flex")} :host{color: inherit;background-color: transparent;border: solid calc(${bs} * 1px) transparent;box-sizing: border-box;font-size: ${Ts};line-height: ${Is};padding: 10px calc((${vs} + 2) * 1px)}`});class Ko extends Gi{connectedCallback(){super.connectedCallback(),this.paused&&(this.paused=!1),this.setAttribute("aria-label","Loading"),this.setAttribute("aria-live","assertive"),this.setAttribute("role","alert")}attributeChangedCallback(e,t,i){"value"===e&&this.removeAttribute("value")}}const Go=Ko.compose({baseName:"progress-ring",template:(e,t)=>W``,styles:(e,t)=>ge` ${ui("flex")} :host{align-items: center;outline: none;height: calc(${vs} * 7px);width: calc(${vs} * 7px);margin: 0}.progress{height: 100%;width: 100%}.background{fill: none;stroke: transparent;stroke-width: calc(${vs} / 2 * 1px)}.indeterminate-indicator-1{fill: none;stroke: ${ho};stroke-width: calc(${vs} / 2 * 1px);stroke-linecap: square;transform-origin: 50% 50%;transform: rotate(-90deg);transition: all 0.2s ease-in-out;animation: spin-infinite 2s linear infinite}@keyframes spin-infinite{0%{stroke-dasharray: 0.01px 43.97px;transform: rotate(0deg)}50%{stroke-dasharray: 21.99px 21.99px;transform: rotate(450deg)}100%{stroke-dasharray: 0.01px 43.97px;transform: rotate(1080deg)}}`,indeterminateIndicator:'\n\t\t\n\t\t\t\n\t\t\t\n\t\t\n\t'});class Wo extends Wi{connectedCallback(){super.connectedCallback();const e=this.querySelector("label");if(e){const t="radio-group-"+Math.random().toString(16).slice(2);e.setAttribute("id",t),this.setAttribute("aria-labelledby",t)}}}const Qo=Wo.compose({baseName:"radio-group",template:(e,t)=>W``,styles:(e,t)=>ge` ${ui("flex")} :host{align-items: flex-start;margin: calc(${vs} * 1px) 0;flex-direction: column}.positioning-region{display: flex;flex-wrap: wrap}:host([orientation='vertical']) .positioning-region{flex-direction: column}:host([orientation='horizontal']) .positioning-region{flex-direction: row}::slotted([slot='label']){color: ${ws};font-size: ${Ts};margin: calc(${vs} * 1px) 0}`});class Yo extends Xi{connectedCallback(){super.connectedCallback(),this.textContent?this.setAttribute("aria-label",this.textContent):this.setAttribute("aria-label","Radio")}}const Xo=Yo.compose({baseName:"radio",template:(e,t)=>W``,styles:(e,t)=>ge` ${ui("inline-flex")} :host{align-items: center;flex-direction: row;font-size: ${Ts};line-height: ${Is};margin: calc(${vs} * 1px) 0;outline: none;position: relative;transition: all 0.2s ease-in-out;user-select: none}.control{background: ${Ys};border-radius: 999px;border: calc(${bs} * 1px) solid ${Xs};box-sizing: border-box;cursor: pointer;height: calc(${vs} * 4px);position: relative;outline: none;width: calc(${vs} * 4px)}.label{color: ${ws};cursor: pointer;font-family: ${Cs};margin-inline-end: calc(${vs} * 2px + 2px);padding-inline-start: calc(${vs} * 2px + 2px)}.label__hidden{display: none;visibility: hidden}.control, .checked-indicator{flex-shrink: 0}.checked-indicator{background: ${ws};border-radius: 999px;display: inline-block;inset: calc(${vs} * 1px);opacity: 0;pointer-events: none;position: absolute}:host(:not([disabled])) .control:hover{background: ${Ys};border-color: ${Xs}}:host(:not([disabled])) .control:active{background: ${Ys};border-color: ${xs}}:host(:${pi}) .control{border: calc(${bs} * 1px) solid ${xs}}:host([aria-checked='true']) .control{background: ${Ys};border: calc(${bs} * 1px) solid ${Xs}}:host([aria-checked='true']:not([disabled])) .control:hover{background: ${Ys};border: calc(${bs} * 1px) solid ${Xs}}:host([aria-checked='true']:not([disabled])) .control:active{background: ${Ys};border: calc(${bs} * 1px) solid ${xs}}:host([aria-checked="true"]:${pi}:not([disabled])) .control{border: calc(${bs} * 1px) solid ${xs}}:host([disabled]) .label, :host([readonly]) .label, :host([readonly]) .control, :host([disabled]) .control{cursor: ${"not-allowed"}}:host([aria-checked='true']) .checked-indicator{opacity: 1}:host([disabled]){opacity: ${ys}}`,checkedIndicator:'\n\t\t
    \n\t'});class Jo extends Mt{connectedCallback(){super.connectedCallback(),this.circular&&(this.circular=!1)}}const Zo=Jo.compose({baseName:"tag",template:Ht,styles:(e,t)=>ge` ${ui("inline-block")} :host{box-sizing: border-box;font-family: ${Cs};font-size: ${Os};line-height: ${Rs}}.control{background-color: ${Bs};border: calc(${bs} * 1px) solid ${Ls};border-radius: ${bo};color: ${Fs};padding: calc(${vs} * 0.5px) calc(${vs} * 1px);text-transform: uppercase}`});class en extends ds{connectedCallback(){super.connectedCallback(),this.textContent?this.setAttribute("aria-label",this.textContent):this.setAttribute("aria-label","Text area")}}const tn=en.compose({baseName:"text-area",template:(e,t)=>W``,styles:(e,t)=>ge` ${ui("inline-block")} :host{font-family: ${Cs};outline: none;user-select: none}.control{box-sizing: border-box;position: relative;color: ${ao};background: ${ro};border-radius: calc(${ms} * 1px);border: calc(${bs} * 1px) solid ${oo};font: inherit;font-size: ${Ts};line-height: ${Is};padding: calc(${vs} * 2px + 1px);width: 100%;min-width: ${ks};resize: none}.control:hover:enabled{background: ${ro};border-color: ${oo}}.control:active:enabled{background: ${ro};border-color: ${xs}}.control:hover, .control:${pi}, .control:disabled, .control:active{outline: none}.control::-webkit-scrollbar{width: ${As};height: ${Ss}}.control::-webkit-scrollbar-corner{background: ${ro}}.control::-webkit-scrollbar-thumb{background: ${Es}}.control::-webkit-scrollbar-thumb:hover{background: ${Ds}}.control::-webkit-scrollbar-thumb:active{background: ${Ps}}:host(:focus-within:not([disabled])) .control{border-color: ${xs}}:host([resize='both']) .control{resize: both}:host([resize='horizontal']) .control{resize: horizontal}:host([resize='vertical']) .control{resize: vertical}.label{display: block;color: ${ws};cursor: pointer;font-size: ${Ts};line-height: ${Is};margin-bottom: 2px}.label__hidden{display: none;visibility: hidden}:host([disabled]) .label, :host([readonly]) .label, :host([readonly]) .control, :host([disabled]) .control{cursor: ${"not-allowed"}}:host([disabled]){opacity: ${ys}}:host([disabled]) .control{border-color: ${oo}}`,shadowOptions:{delegatesFocus:!0}});class sn extends Ui{connectedCallback(){super.connectedCallback(),this.textContent?this.setAttribute("aria-label",this.textContent):this.setAttribute("aria-label","Text field")}}const on=sn.compose({baseName:"text-field",template:(e,t)=>W``,styles:(e,t)=>ge` ${ui("inline-block")} :host{font-family: ${Cs};outline: none;user-select: none}.root{box-sizing: border-box;position: relative;display: flex;flex-direction: row;color: ${ao};background: ${ro};border-radius: calc(${ms} * 1px);border: calc(${bs} * 1px) solid ${oo};height: calc(${$s} * 1px);min-width: ${ks}}.control{-webkit-appearance: none;font: inherit;background: transparent;border: 0;color: inherit;height: calc(100% - (${vs} * 1px));width: 100%;margin-top: auto;margin-bottom: auto;border: none;padding: 0 calc(${vs} * 2px + 1px);font-size: ${Ts};line-height: ${Is}}.control:hover, .control:${pi}, .control:disabled, .control:active{outline: none}.label{display: block;color: ${ws};cursor: pointer;font-size: ${Ts};line-height: ${Is};margin-bottom: 2px}.label__hidden{display: none;visibility: hidden}.start, .end{display: flex;margin: auto;fill: currentcolor}::slotted(svg), ::slotted(span){width: calc(${vs} * 4px);height: calc(${vs} * 4px)}.start{margin-inline-start: calc(${vs} * 2px)}.end{margin-inline-end: calc(${vs} * 2px)}:host(:hover:not([disabled])) .root{background: ${ro};border-color: ${oo}}:host(:active:not([disabled])) .root{background: ${ro};border-color: ${xs}}:host(:focus-within:not([disabled])) .root{border-color: ${xs}}:host([disabled]) .label, :host([readonly]) .label, :host([readonly]) .control, :host([disabled]) .control{cursor: ${"not-allowed"}}:host([disabled]){opacity: ${ys}}:host([disabled]) .control{border-color: ${oo}}`,shadowOptions:{delegatesFocus:!0}}),nn={vsCodeBadge:mo,vsCodeButton:$o,vsCodeCheckbox:To,vsCodeDataGrid:Oo,vsCodeDataGridCell:Eo,vsCodeDataGridRow:Ao,vsCodeDivider:Po,vsCodeDropdown:Fo,vsCodeLink:Vo,vsCodeOption:Mo,vsCodePanels:zo,vsCodePanelTab:_o,vsCodePanelView:Uo,vsCodeProgressRing:Go,vsCodeRadioGroup:Qo,vsCodeRadio:Xo,vsCodeTag:Zo,vsCodeTextArea:tn,vsCodeTextField:on,register(e,...t){if(e)for(const i in this)"register"!==i&&this[i]().register(e,...t)}};function rn(e){return Vi.getOrCreate(e).withPrefix("vscode")}const an=rn().register(nn);export{go as Badge,wo as Button,ko as Checkbox,Io as DataGrid,So as DataGridCell,Qt as DataGridCellTypes,Ro as DataGridRow,Yt as DataGridRowTypes,Do as Divider,Ni as DividerRole,Bo as Dropdown,ci as DropdownPosition,Wt as GenerateHeaderOptions,Lo as Link,Ho as Option,jo as PanelTab,qo as PanelView,No as Panels,Ko as ProgressRing,Yo as Radio,Wo as RadioGroup,Rt as RadioGroupOrientation,Jo as Tag,en as TextArea,ns as TextAreaResize,sn as TextField,qi as TextFieldType,an as VSCodeDesignSystem,nn as allComponents,rn as provideVSCodeDesignSystem,mo as vsCodeBadge,$o as vsCodeButton,To as vsCodeCheckbox,Oo as vsCodeDataGrid,Eo as vsCodeDataGridCell,Ao as vsCodeDataGridRow,Po as vsCodeDivider,Fo as vsCodeDropdown,Vo as vsCodeLink,Mo as vsCodeOption,_o as vsCodePanelTab,Uo as vsCodePanelView,zo as vsCodePanels,Go as vsCodeProgressRing,Xo as vsCodeRadio,Qo as vsCodeRadioGroup,Zo as vsCodeTag,tn as vsCodeTextArea,on as vsCodeTextField};