ge(){this.startContainer.classList.toggle("start",this.start.assignedNodes().length>0)}handleEndContentChange(){this.endContainer.classList.toggle("end",this.end.assignedNodes().length>0)}},qn=(r,t)=>yt` t.end?"end":void 0} > ${t.end||""} `,Gn=(r,t)=>yt` ${t.start||""} `,ol=yt` `,il=yt` `;function y(r,t,e,n){var o=arguments.length,i=o<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,t,e,n);else for(var l=r.length-1;l>=0;l--)(a=r[l])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i}var wr=new Map;"metadata"in Reflect||(Reflect.metadata=function(r,t){return function(e){Reflect.defineMetadata(r,t,e)}},Reflect.defineMetadata=function(r,t,e){let n=wr.get(e);n===void 0&&wr.set(e,n=new Map),n.set(r,t)},Reflect.getOwnMetadata=function(r,t){let e=wr.get(t);if(e!==void 0)return e.get(r)});var Er=class{constructor(t,e){this.container=t,this.key=e}instance(t){return this.registerResolver(0,t)}singleton(t){return this.registerResolver(1,t)}transient(t){return this.registerResolver(2,t)}callback(t){return this.registerResolver(3,t)}cachedCallback(t){return this.registerResolver(3,oo(t))}aliasTo(t){return this.registerResolver(5,t)}registerResolver(t,e){let{container:n,key:o}=this;return this.container=this.key=void 0,n.registerResolver(o,new $(o,t,e))}};function qt(r){let t=r.slice(),e=Object.keys(r),n=e.length,o;for(let i=0;inull,responsibleForOwnerRequests:!1,defaultResolver:Fi.singleton})}),Yn=new Map;function Xn(r){return t=>Reflect.getOwnMetadata(r,t)}var Qn=null,w=Object.freeze({createContainer(r){return new Gt(null,Object.assign({},Sr.default,r))},findResponsibleContainer(r){let t=r.$$container$$;return t&&t.responsibleForOwnerRequests?t:w.findParentContainer(r)},findParentContainer(r){let t=new CustomEvent(no,{bubbles:!0,composed:!0,cancelable:!0,detail:{container:void 0}});return r.dispatchEvent(t),t.detail.container||w.getOrCreateDOMContainer()},getOrCreateDOMContainer(r,t){return r?r.$$container$$||new Gt(r,Object.assign({},Sr.default,t,{parentLocator:w.findParentContainer})):Qn||(Qn=new Gt(null,Object.assign({},Sr.default,t,{parentLocator:()=>null})))},getDesignParamtypes:Xn("design:paramtypes"),getAnnotationParamtypes:Xn("di:paramtypes"),getOrCreateAnnotationParamTypes(r){let t=this.getAnnotationParamtypes(r);return t===void 0&&Reflect.defineMetadata("di:paramtypes",t=[],r),t},getDependencies(r){let t=Yn.get(r);if(t===void 0){let e=r.inject;if(e===void 0){let n=w.getDesignParamtypes(r),o=w.getAnnotationParamtypes(r);if(n===void 0)if(o===void 0){let i=Object.getPrototypeOf(r);typeof i=="function"&&i!==Function.prototype?t=qt(w.getDependencies(i)):t=[]}else t=qt(o);else if(o===void 0)t=qt(n);else{t=qt(n);let i=o.length,a;for(let c=0;c{let d=w.findResponsibleContainer(this).get(e),x=this[o];d!==x&&(this[o]=i,l.notify(t))};l.subscribe({handleChange:f},"isConnected")}return i}})},createInterface(r,t){let e=typeof r=="function"?r:t,n=typeof r=="string"?r:r&&"friendlyName"in r&&r.friendlyName||to,o=typeof r=="string"?!1:r&&"respectConnection"in r&&r.respectConnection||!1,i=function(a,l,f){if(a==null||new.target!==void 0)throw new Error(`No registration for interface: '${i.friendlyName}'`);if(l)w.defineProperty(a,l,i,o);else{let c=w.getOrCreateAnnotationParamTypes(a);c[f]=i}};return i.$isInterface=!0,i.friendlyName=n??"(anonymous)",e!=null&&(i.register=function(a,l){return e(new Er(a,l??i))}),i.toString=function(){return`InterfaceSymbol<${i.friendlyName}>`},i},inject(...r){return function(t,e,n){if(typeof n=="number"){let o=w.getOrCreateAnnotationParamTypes(t),i=r[0];i!==void 0&&(o[n]=i)}else if(e)w.defineProperty(t,e,r[0]);else{let o=n?w.getOrCreateAnnotationParamTypes(n.value):w.getOrCreateAnnotationParamTypes(t),i;for(let a=0;ae.getAll(r,n)),fl=Pe((r,t,e)=>()=>e.get(r)),dl=Pe((r,t,e)=>{if(e.has(r,!0))return e.get(r)});function Ar(r,t,e){w.inject(Ar)(r,t,e)}Ar.$isResolver=!0;Ar.resolve=()=>{};var hl=Pe((r,t,e)=>{let n=ro(r,t),o=new $(r,0,n);return e.registerResolver(r,o),n}),pl=Pe((r,t,e)=>ro(r,t));function ro(r,t){return t.getFactory(r).construct(t)}var $=class{constructor(t,e,n){this.key=t,this.strategy=e,this.state=n,this.resolving=!1}get $isResolver(){return!0}register(t){return t.registerResolver(this.key,this)}resolve(t,e){switch(this.strategy){case 0:return this.state;case 1:{if(this.resolving)throw new Error(`Cyclic dependency found: ${this.state.name}`);return this.resolving=!0,this.state=t.getFactory(this.state).construct(e),this.strategy=0,this.resolving=!1,this.state}case 2:{let n=t.getFactory(this.state);if(n===null)throw new Error(`Resolver for ${String(this.key)} returned a null factory`);return n.construct(e)}case 3:return this.state(t,e,this);case 4:return this.state[0].resolve(t,e);case 5:return e.get(this.state);default:throw new Error(`Invalid resolver strategy specified: ${this.strategy}.`)}}getFactory(t){var e,n,o;switch(this.strategy){case 1:case 2:return t.getFactory(this.state);case 5:return(o=(n=(e=t.getResolver(this.state))===null||e===void 0?void 0:e.getFactory)===null||n===void 0?void 0:n.call(e,t))!==null&&o!==void 0?o:null;default:return null}}};function Zn(r){return this.get(r)}function Hi(r,t){return t(r)}var _r=class{constructor(t,e){this.Type=t,this.dependencies=e,this.transformers=null}construct(t,e){let n;return e===void 0?n=new this.Type(...this.dependencies.map(Zn,t)):n=new this.Type(...this.dependencies.map(Zn,t),...e),this.transformers==null?n:this.transformers.reduce(Hi,n)}registerTransformer(t){(this.transformers||(this.transformers=[])).push(t)}},Ui={$isResolver:!0,resolve(r,t){return t}};function De(r){return typeof r.register=="function"}function zi(r){return De(r)&&typeof r.registerInRequestor=="boolean"}function Jn(r){return zi(r)&&r.registerInRequestor}function Vi(r){return r.prototype!==void 0}var Wi=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"]),no="__DI_LOCATE_PARENT__",Tr=new Map,Gt=class r{constructor(t,e){this.owner=t,this.config=e,this._parent=void 0,this.registerDepth=0,this.context=null,t!==null&&(t.$$container$$=this),this.resolvers=new Map,this.resolvers.set($i,Ui),t instanceof Node&&t.addEventListener(no,n=>{n.composedPath()[0]!==this.owner&&(n.detail.container=this,n.stopImmediatePropagation())})}get parent(){return this._parent===void 0&&(this._parent=this.config.parentLocator(this.owner)),this._parent}get depth(){return this.parent===null?0:this.parent.depth+1}get responsibleForOwnerRequests(){return this.config.responsibleForOwnerRequests}registerWithContext(t,...e){return this.context=t,this.register(...e),this.context=null,this}register(...t){if(++this.registerDepth===100)throw new Error("Unable to autoregister dependency");let e,n,o,i,a,l=this.context;for(let f=0,c=t.length;fthis}))}jitRegister(t,e){if(typeof t!="function")throw new Error(`Attempted to jitRegister something that is not a constructor: '${t}'. Did you forget to register this dependency?`);if(Wi.has(t.name))throw new Error(`Attempted to jitRegister an intrinsic type: ${t.name}. Did you forget to add @inject(Key)`);if(De(t)){let n=t.register(e);if(!(n instanceof Object)||n.resolve==null){let o=e.resolvers.get(t);if(o!=null)return o;throw new Error("A valid resolver was not returned from the static register method")}return n}else{if(t.$isInterface)throw new Error(`Attempted to jitRegister an interface: ${t.friendlyName}`);{let n=this.config.defaultResolver(t,e);return e.resolvers.set(t,n),n}}}},Cr=new WeakMap;function oo(r){return function(t,e,n){if(Cr.has(n))return Cr.get(n);let o=r(t,e,n);return Cr.set(n,o),o}}var wt=Object.freeze({instance(r,t){return new $(r,0,t)},singleton(r,t){return new $(r,1,t)},transient(r,t){return new $(r,2,t)},callback(r,t){return new $(r,3,t)},cachedCallback(r,t){return new $(r,3,oo(t))},aliasTo(r,t){return new $(t,5,r)}});function Oe(r){if(r==null)throw new Error("key/value cannot be null or undefined. Are you trying to inject/register something that doesn't exist with DI?")}function Kn(r,t,e){if(r instanceof $&&r.strategy===4){let n=r.state,o=n.length,i=new Array(o);for(;o--;)i[o]=n[o].resolve(t,e);return i}return[r.resolve(t,e)]}var to="(anonymous)";function eo(r){return typeof r=="object"&&r!==null||typeof r=="function"}var qi=function(){let r=new WeakMap,t=!1,e="",n=0;return function(o){return t=r.get(o),t===void 0&&(e=o.toString(),n=e.length,t=n>=29&&n<=100&&e.charCodeAt(n-1)===125&&e.charCodeAt(n-2)<=32&&e.charCodeAt(n-3)===93&&e.charCodeAt(n-4)===101&&e.charCodeAt(n-5)===100&&e.charCodeAt(n-6)===111&&e.charCodeAt(n-7)===99&&e.charCodeAt(n-8)===32&&e.charCodeAt(n-9)===101&&e.charCodeAt(n-10)===118&&e.charCodeAt(n-11)===105&&e.charCodeAt(n-12)===116&&e.charCodeAt(n-13)===97&&e.charCodeAt(n-14)===110&&e.charCodeAt(n-15)===88,r.set(o,t)),t}}(),Re={};function io(r){switch(typeof r){case"number":return r>=0&&(r|0)===r;case"string":{let t=Re[r];if(t!==void 0)return t;let e=r.length;if(e===0)return Re[r]=!1;let n=0;for(let o=0;o1||n<48||n>57)return Re[r]=!1;return Re[r]=!0}default:return!1}}function so(r){return`${r.toLowerCase()}:presentation`}var Ie=new Map,Me=Object.freeze({define(r,t,e){let n=so(r);Ie.get(n)===void 0?Ie.set(n,t):Ie.set(n,!1),e.register(wt.instance(n,t))},forTag(r,t){let e=so(r),n=Ie.get(e);return n===!1?w.findResponsibleContainer(t).get(e):n||null}}),Le=class{constructor(t,e){this.template=t||null,this.styles=e===void 0?null:Array.isArray(e)?A.create(e):e instanceof A?e:A.create([e])}applyTo(t){let e=t.$fastController;e.template===null&&(e.template=this.template),e.styles===null&&(e.styles=this.styles)}};var dt=class r extends ft{constructor(){super(...arguments),this._presentation=void 0}get $presentation(){return this._presentation===void 0&&(this._presentation=Me.forTag(this.tagName,this)),this._presentation}templateChanged(){this.template!==void 0&&(this.$fastController.template=this.template)}stylesChanged(){this.styles!==void 0&&(this.$fastController.styles=this.styles)}connectedCallback(){this.$presentation!==null&&this.$presentation.applyTo(this),super.connectedCallback()}static compose(t){return(e={})=>new kr(this===r?class extends r{}:this,t,e)}};y([Y],dt.prototype,"template",void 0);y([Y],dt.prototype,"styles",void 0);function Yt(r,t,e){return typeof r=="function"?r(t,e):r}var kr=class{constructor(t,e,n){this.type=t,this.elementDefinition=e,this.overrideDefinition=n,this.definition=Object.assign(Object.assign({},this.elementDefinition),this.overrideDefinition)}register(t,e){let n=this.definition,o=this.overrideDefinition,a=`${n.prefix||e.elementPrefix}-${n.baseName}`;e.tryDefineElement({name:a,type:this.type,baseClass:this.elementDefinition.baseClass,callback:l=>{let f=new Le(Yt(n.template,l,n),Yt(n.styles,l,n));l.definePresentation(f);let c=Yt(n.shadowOptions,l,n);l.shadowRootMode&&(c?o.shadowOptions||(c.mode=l.shadowRootMode):c!==null&&(c={mode:l.shadowRootMode})),l.defineElement({elementOptions:Yt(n.elementOptions,l,n),shadowOptions:c,attributes:Yt(n.attributes,l,n)})}})}};function Or(r,...t){let e=Wt.locate(r);t.forEach(n=>{Object.getOwnPropertyNames(n.prototype).forEach(i=>{i!=="constructor"&&Object.defineProperty(r.prototype,i,Object.getOwnPropertyDescriptor(n.prototype,i))}),Wt.locate(n).forEach(i=>e.push(i))})}function ao(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Gi(){let r=document.querySelector('meta[property="csp-nonce"]');return r?r.getAttribute("content"):null}var St;function lo(){if(typeof St=="boolean")return St;if(!ao())return St=!1,St;let r=document.createElement("style"),t=Gi();t!==null&&r.setAttribute("nonce",t),document.head.appendChild(r);try{r.sheet.insertRule("foo:focus-visible {color:inherit}",0),St=!0}catch{St=!1}finally{document.head.removeChild(r)}return St}var co;(function(r){r[r.alt=18]="alt",r[r.arrowDown=40]="arrowDown",r[r.arrowLeft=37]="arrowLeft",r[r.arrowRight=39]="arrowRight",r[r.arrowUp=38]="arrowUp",r[r.back=8]="back",r[r.backSlash=220]="backSlash",r[r.break=19]="break",r[r.capsLock=20]="capsLock",r[r.closeBracket=221]="closeBracket",r[r.colon=186]="colon",r[r.colon2=59]="colon2",r[r.comma=188]="comma",r[r.ctrl=17]="ctrl",r[r.delete=46]="delete",r[r.end=35]="end",r[r.enter=13]="enter",r[r.equals=187]="equals",r[r.equals2=61]="equals2",r[r.equals3=107]="equals3",r[r.escape=27]="escape",r[r.forwardSlash=191]="forwardSlash",r[r.function1=112]="function1",r[r.function10=121]="function10",r[r.function11=122]="function11",r[r.function12=123]="function12",r[r.function2=113]="function2",r[r.function3=114]="function3",r[r.function4=115]="function4",r[r.function5=116]="function5",r[r.function6=117]="function6",r[r.function7=118]="function7",r[r.function8=119]="function8",r[r.function9=120]="function9",r[r.home=36]="home",r[r.insert=45]="insert",r[r.menu=93]="menu",r[r.minus=189]="minus",r[r.minus2=109]="minus2",r[r.numLock=144]="numLock",r[r.numPad0=96]="numPad0",r[r.numPad1=97]="numPad1",r[r.numPad2=98]="numPad2",r[r.numPad3=99]="numPad3",r[r.numPad4=100]="numPad4",r[r.numPad5=101]="numPad5",r[r.numPad6=102]="numPad6",r[r.numPad7=103]="numPad7",r[r.numPad8=104]="numPad8",r[r.numPad9=105]="numPad9",r[r.numPadDivide=111]="numPadDivide",r[r.numPadDot=110]="numPadDot",r[r.numPadMinus=109]="numPadMinus",r[r.numPadMultiply=106]="numPadMultiply",r[r.numPadPlus=107]="numPadPlus",r[r.openBracket=219]="openBracket",r[r.pageDown=34]="pageDown",r[r.pageUp=33]="pageUp",r[r.period=190]="period",r[r.print=44]="print",r[r.quote=222]="quote",r[r.scrollLock=145]="scrollLock",r[r.shift=16]="shift",r[r.space=32]="space",r[r.tab=9]="tab",r[r.tilde=192]="tilde",r[r.windowsLeft=91]="windowsLeft",r[r.windowsOpera=219]="windowsOpera",r[r.windowsRight=92]="windowsRight"})(co||(co={}));var uo="Enter";var E=class{};y([b({attribute:"aria-atomic"})],E.prototype,"ariaAtomic",void 0);y([b({attribute:"aria-busy"})],E.prototype,"ariaBusy",void 0);y([b({attribute:"aria-controls"})],E.prototype,"ariaControls",void 0);y([b({attribute:"aria-current"})],E.prototype,"ariaCurrent",void 0);y([b({attribute:"aria-describedby"})],E.prototype,"ariaDescribedby",void 0);y([b({attribute:"aria-details"})],E.prototype,"ariaDetails",void 0);y([b({attribute:"aria-disabled"})],E.prototype,"ariaDisabled",void 0);y([b({attribute:"aria-errormessage"})],E.prototype,"ariaErrormessage",void 0);y([b({attribute:"aria-flowto"})],E.prototype,"ariaFlowto",void 0);y([b({attribute:"aria-haspopup"})],E.prototype,"ariaHaspopup",void 0);y([b({attribute:"aria-hidden"})],E.prototype,"ariaHidden",void 0);y([b({attribute:"aria-invalid"})],E.prototype,"ariaInvalid",void 0);y([b({attribute:"aria-keyshortcuts"})],E.prototype,"ariaKeyshortcuts",void 0);y([b({attribute:"aria-label"})],E.prototype,"ariaLabel",void 0);y([b({attribute:"aria-labelledby"})],E.prototype,"ariaLabelledby",void 0);y([b({attribute:"aria-live"})],E.prototype,"ariaLive",void 0);y([b({attribute:"aria-owns"})],E.prototype,"ariaOwns",void 0);y([b({attribute:"aria-relevant"})],E.prototype,"ariaRelevant",void 0);y([b({attribute:"aria-roledescription"})],E.prototype,"ariaRoledescription",void 0);var fo=(r,t)=>yt` `;var ho="form-associated-proxy",po="ElementInternals",mo=po in window&&"setFormValue"in window[po].prototype,go=new WeakMap;function bo(r){let t=class extends r{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 mo}get validity(){return this.elementInternals?this.elementInternals.validity:this.proxy.validity}get form(){return this.elementInternals?this.elementInternals.form:this.proxy.form}get validationMessage(){return this.elementInternals?this.elementInternals.validationMessage:this.proxy.validationMessage}get willValidate(){return this.elementInternals?this.elementInternals.willValidate:this.proxy.willValidate}get labels(){if(this.elementInternals)return Object.freeze(Array.from(this.elementInternals.labels));if(this.proxy instanceof HTMLElement&&this.proxy.ownerDocument&&this.id){let e=this.proxy.labels,n=Array.from(this.proxy.getRootNode().querySelectorAll(`[for='${this.id}']`)),o=e?n.concat(Array.from(e)):n;return Object.freeze(o)}else return lt}valueChanged(e,n){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,n){this.dirtyValue||(this.value=this.initialValue,this.dirtyValue=!1)}disabledChanged(e,n){this.proxy instanceof HTMLElement&&(this.proxy.disabled=this.disabled),g.queueUpdate(()=>this.classList.toggle("disabled",this.disabled))}nameChanged(e,n){this.proxy instanceof HTMLElement&&(this.proxy.name=this.name)}requiredChanged(e,n){this.proxy instanceof HTMLElement&&(this.proxy.required=this.required),g.queueUpdate(()=>this.classList.toggle("required",this.required)),this.validate()}get elementInternals(){if(!mo)return null;let e=go.get(this);return e||(e=this.attachInternals(),go.set(this,e)),e}connectedCallback(){super.connectedCallback(),this.addEventListener("keypress",this._keypressHandler),this.value||(this.value=this.initialValue,this.dirtyValue=!1),this.elementInternals||(this.attachProxy(),this.form&&this.form.addEventListener("reset",this.formResetCallback))}disconnectedCallback(){super.disconnectedCallback(),this.proxyEventsToBlock.forEach(e=>this.proxy.removeEventListener(e,this.stopPropagation)),!this.elementInternals&&this.form&&this.form.removeEventListener("reset",this.formResetCallback)}checkValidity(){return this.elementInternals?this.elementInternals.checkValidity():this.proxy.checkValidity()}reportValidity(){return this.elementInternals?this.elementInternals.reportValidity():this.proxy.reportValidity()}setValidity(e,n,o){this.elementInternals?this.elementInternals.setValidity(e,n,o):typeof n=="string"&&this.proxy.setCustomValidity(n)}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(n=>this.proxy.addEventListener(n,this.stopPropagation)),this.proxy.disabled=this.disabled,this.proxy.required=this.required,typeof this.name=="string"&&(this.proxy.name=this.name),typeof this.value=="string"&&(this.proxy.value=this.value),this.proxy.setAttribute("slot",ho),this.proxySlot=document.createElement("slot"),this.proxySlot.setAttribute("name",ho)),(e=this.shadowRoot)===null||e===void 0||e.appendChild(this.proxySlot),this.appendChild(this.proxy)}detachProxy(){var e;this.removeChild(this.proxy),(e=this.shadowRoot)===null||e===void 0||e.removeChild(this.proxySlot)}validate(e){this.proxy instanceof HTMLElement&&this.setValidity(this.proxy.validity,this.proxy.validationMessage,e)}setFormValue(e,n){this.elementInternals&&this.elementInternals.setFormValue(e,n||e)}_keypressHandler(e){switch(e.key){case uo:if(this.form instanceof HTMLFormElement){let n=this.form.querySelector("[type=submit]");n?.click()}break}}stopPropagation(e){e.stopPropagation()}};return b({mode:"boolean"})(t.prototype,"disabled"),b({mode:"fromView",attribute:"value"})(t.prototype,"initialValue"),b({attribute:"current-value"})(t.prototype,"currentValue"),b(t.prototype,"name"),b({mode:"boolean"})(t.prototype,"required"),Y(t.prototype,"value"),t}var Rr=class extends dt{},Ne=class extends bo(Rr){constructor(){super(...arguments),this.proxy=document.createElement("input")}};var V=class extends Ne{constructor(){super(...arguments),this.handleClick=t=>{var e;this.disabled&&((e=this.defaultSlottedContent)===null||e===void 0?void 0:e.length)<=1&&t.stopPropagation()},this.handleSubmission=()=>{if(!this.form)return;let t=this.proxy.isConnected;t||this.attachProxy(),typeof this.form.requestSubmit=="function"?this.form.requestSubmit(this.proxy):this.proxy.click(),t||this.detachProxy()},this.handleFormReset=()=>{var t;(t=this.form)===null||t===void 0||t.reset()},this.handleUnsupportedDelegatesFocus=()=>{var t;window.ShadowRoot&&!window.ShadowRoot.prototype.hasOwnProperty("delegatesFocus")&&(!((t=this.$fastController.definition.shadowOptions)===null||t===void 0)&&t.delegatesFocus)&&(this.focus=()=>{this.control.focus()})}}formactionChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formAction=this.formaction)}formenctypeChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formEnctype=this.formenctype)}formmethodChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formMethod=this.formmethod)}formnovalidateChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formNoValidate=this.formnovalidate)}formtargetChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formTarget=this.formtarget)}typeChanged(t,e){this.proxy instanceof HTMLInputElement&&(this.proxy.type=this.type),e==="submit"&&this.addEventListener("click",this.handleSubmission),t==="submit"&&this.removeEventListener("click",this.handleSubmission),e==="reset"&&this.addEventListener("click",this.handleFormReset),t==="reset"&&this.removeEventListener("click",this.handleFormReset)}validate(){super.validate(this.control)}connectedCallback(){var t;super.connectedCallback(),this.proxy.setAttribute("type",this.type),this.handleUnsupportedDelegatesFocus();let e=Array.from((t=this.control)===null||t===void 0?void 0:t.children);e&&e.forEach(n=>{n.addEventListener("click",this.handleClick)})}disconnectedCallback(){var t;super.disconnectedCallback();let e=Array.from((t=this.control)===null||t===void 0?void 0:t.children);e&&e.forEach(n=>{n.removeEventListener("click",this.handleClick)})}};y([b({mode:"boolean"})],V.prototype,"autofocus",void 0);y([b({attribute:"form"})],V.prototype,"formId",void 0);y([b],V.prototype,"formaction",void 0);y([b],V.prototype,"formenctype",void 0);y([b],V.prototype,"formmethod",void 0);y([b({mode:"boolean"})],V.prototype,"formnovalidate",void 0);y([b],V.prototype,"formtarget",void 0);y([b],V.prototype,"type",void 0);y([Y],V.prototype,"defaultSlottedContent",void 0);var Ft=class{};y([b({attribute:"aria-expanded"})],Ft.prototype,"ariaExpanded",void 0);y([b({attribute:"aria-pressed"})],Ft.prototype,"ariaPressed",void 0);Or(Ft,E);Or(V,ke,Ft);function Xt(r){let t=r.parentElement;if(t)return t;{let e=r.getRootNode();if(e.host instanceof HTMLElement)return e.host}return null}function yo(r,t){let e=t;for(;e!==null;){if(e===r)return!0;e=Xt(e)}return!1}var tt=document.createElement("div");function Yi(r){return r instanceof ft}var Qt=class{setProperty(t,e){g.queueUpdate(()=>this.target.setProperty(t,e))}removeProperty(t){g.queueUpdate(()=>this.target.removeProperty(t))}},Pr=class extends Qt{constructor(t){super();let e=new CSSStyleSheet;e[Ce]=!0,this.target=e.cssRules[e.insertRule(":host{}")].style,t.$fastController.addStyles(A.create([e]))}},Ir=class extends Qt{constructor(){super();let t=new CSSStyleSheet;this.target=t.cssRules[t.insertRule(":root{}")].style,document.adoptedStyleSheets=[...document.adoptedStyleSheets,t]}},Lr=class extends Qt{constructor(){super(),this.style=document.createElement("style"),document.head.appendChild(this.style);let{sheet:t}=this.style;if(t){let e=t.insertRule(":root{}",t.cssRules.length);this.target=t.cssRules[e].style}}},Fe=class{constructor(t){this.store=new Map,this.target=null;let e=t.$fastController;this.style=document.createElement("style"),e.addStyles(this.style),S.getNotifier(e).subscribe(this,"isConnected"),this.handleChange(e,"isConnected")}targetChanged(){if(this.target!==null)for(let[t,e]of this.store.entries())this.target.setProperty(t,e)}setProperty(t,e){this.store.set(t,e),g.queueUpdate(()=>{this.target!==null&&this.target.setProperty(t,e)})}removeProperty(t){this.store.delete(t),g.queueUpdate(()=>{this.target!==null&&this.target.removeProperty(t)})}handleChange(t,e){let{sheet:n}=this.style;if(n){let o=n.insertRule(":host{}",n.cssRules.length);this.target=n.cssRules[o].style}else this.target=null}};y([Y],Fe.prototype,"target",void 0);var Mr=class{constructor(t){this.target=t.style}setProperty(t,e){g.queueUpdate(()=>this.target.setProperty(t,e))}removeProperty(t){g.queueUpdate(()=>this.target.removeProperty(t))}},ht=class r{setProperty(t,e){r.properties[t]=e;for(let n of r.roots.values())Tt.getOrCreate(r.normalizeRoot(n)).setProperty(t,e)}removeProperty(t){delete r.properties[t];for(let e of r.roots.values())Tt.getOrCreate(r.normalizeRoot(e)).removeProperty(t)}static registerRoot(t){let{roots:e}=r;if(!e.has(t)){e.add(t);let n=Tt.getOrCreate(this.normalizeRoot(t));for(let o in r.properties)n.setProperty(o,r.properties[o])}}static unregisterRoot(t){let{roots:e}=r;if(e.has(t)){e.delete(t);let n=Tt.getOrCreate(r.normalizeRoot(t));for(let o in r.properties)n.removeProperty(o)}}static normalizeRoot(t){return t===tt?document:t}};ht.roots=new Set;ht.properties={};var Dr=new WeakMap,Xi=g.supportsAdoptedStyleSheets?Pr:Fe,Tt=Object.freeze({getOrCreate(r){if(Dr.has(r))return Dr.get(r);let t;return r===tt?t=new ht:r instanceof Document?t=g.supportsAdoptedStyleSheets?new Ir:new Lr:Yi(r)?t=new Xi(r):t=new Mr(r),Dr.set(r,t),t}});var Q=class r extends vt{constructor(t){super(),this.subscribers=new WeakMap,this._appliedTo=new Set,this.name=t.name,t.cssCustomPropertyName!==null&&(this.cssCustomProperty=`--${t.cssCustomPropertyName}`,this.cssVar=`var(${this.cssCustomProperty})`),this.id=r.uniqueId(),r.tokensById.set(this.id,this)}get appliedTo(){return[...this._appliedTo]}static from(t){return new r({name:typeof t=="string"?t:t.name,cssCustomPropertyName:typeof t=="string"?t:t.cssCustomPropertyName===void 0?t.name:t.cssCustomPropertyName})}static isCSSDesignToken(t){return typeof t.cssCustomProperty=="string"}static isDerivedDesignTokenValue(t){return typeof t=="function"}static getTokenById(t){return r.tokensById.get(t)}getOrCreateSubscriberSet(t=this){return this.subscribers.get(t)||this.subscribers.set(t,new Set)&&this.subscribers.get(t)}createCSS(){return this.cssVar||""}getValueFor(t){let e=B.getOrCreate(t).get(this);if(e!==void 0)return e;throw new Error(`Value could not be retrieved for token named "${this.name}". Ensure the value is set for ${t} or an ancestor of ${t}.`)}setValueFor(t,e){return this._appliedTo.add(t),e instanceof r&&(e=this.alias(e)),B.getOrCreate(t).set(this,e),this}deleteValueFor(t){return this._appliedTo.delete(t),B.existsFor(t)&&B.getOrCreate(t).delete(this),this}withDefault(t){return this.setValueFor(tt,t),this}subscribe(t,e){let n=this.getOrCreateSubscriberSet(e);e&&!B.existsFor(e)&&B.getOrCreate(e),n.has(t)||n.add(t)}unsubscribe(t,e){let n=this.subscribers.get(e||this);n&&n.has(t)&&n.delete(t)}notify(t){let e=Object.freeze({token:this,target:t});this.subscribers.has(this)&&this.subscribers.get(this).forEach(n=>n.handleChange(e)),this.subscribers.has(t)&&this.subscribers.get(t).forEach(n=>n.handleChange(e))}alias(t){return e=>t.getValueFor(e)}};Q.uniqueId=(()=>{let r=0;return()=>(r++,r.toString(16))})();Q.tokensById=new Map;var Nr=class{startReflection(t,e){t.subscribe(this,e),this.handleChange({token:t,target:e})}stopReflection(t,e){t.unsubscribe(this,e),this.remove(t,e)}handleChange(t){let{token:e,target:n}=t;this.add(e,n)}add(t,e){Tt.getOrCreate(e).setProperty(t.cssCustomProperty,this.resolveCSSValue(B.getOrCreate(e).get(t)))}remove(t,e){Tt.getOrCreate(e).removeProperty(t.cssCustomProperty)}resolveCSSValue(t){return t&&typeof t.createCSS=="function"?t.createCSS():t}},Fr=class{constructor(t,e,n){this.source=t,this.token=e,this.node=n,this.dependencies=new Set,this.observer=S.binding(t,this,!1),this.observer.handleChange=this.observer.call,this.handleChange()}disconnect(){this.observer.disconnect()}handleChange(){try{this.node.store.set(this.token,this.observer.observe(this.node.target,ut))}catch(t){console.error(t)}}},$r=class{constructor(){this.values=new Map}set(t,e){this.values.get(t)!==e&&(this.values.set(t,e),S.getNotifier(this).notify(t.id))}get(t){return S.track(this,t.id),this.values.get(t)}delete(t){this.values.delete(t),S.getNotifier(this).notify(t.id)}all(){return this.values.entries()}},Zt=new WeakMap,Jt=new WeakMap,B=class r{constructor(t){this.target=t,this.store=new $r,this.children=[],this.assignedValues=new Map,this.reflecting=new Set,this.bindingObservers=new Map,this.tokenValueChangeHandler={handleChange:(e,n)=>{let o=Q.getTokenById(n);o&&(o.notify(this.target),this.updateCSSTokenReflection(e,o))}},Zt.set(t,this),S.getNotifier(this.store).subscribe(this.tokenValueChangeHandler),t instanceof ft?t.$fastController.addBehaviors([this]):t.isConnected&&this.bind()}static getOrCreate(t){return Zt.get(t)||new r(t)}static existsFor(t){return Zt.has(t)}static findParent(t){if(tt!==t.target){let e=Xt(t.target);for(;e!==null;){if(Zt.has(e))return Zt.get(e);e=Xt(e)}return r.getOrCreate(tt)}return null}static findClosestAssignedNode(t,e){let n=e;do{if(n.has(t))return n;n=n.parent?n.parent:n.target!==tt?r.getOrCreate(tt):null}while(n!==null);return null}get parent(){return Jt.get(this)||null}updateCSSTokenReflection(t,e){if(Q.isCSSDesignToken(e)){let n=this.parent,o=this.isReflecting(e);if(n){let i=n.get(e),a=t.get(e);i!==a&&!o?this.reflectToCSS(e):i===a&&o&&this.stopReflectToCSS(e)}else o||this.reflectToCSS(e)}}has(t){return this.assignedValues.has(t)}get(t){let e=this.store.get(t);if(e!==void 0)return e;let n=this.getRaw(t);if(n!==void 0)return this.hydrate(t,n),this.get(t)}getRaw(t){var e;return this.assignedValues.has(t)?this.assignedValues.get(t):(e=r.findClosestAssignedNode(t,this))===null||e===void 0?void 0:e.getRaw(t)}set(t,e){Q.isDerivedDesignTokenValue(this.assignedValues.get(t))&&this.tearDownBindingObserver(t),this.assignedValues.set(t,e),Q.isDerivedDesignTokenValue(e)?this.setupBindingObserver(t,e):this.store.set(t,e)}delete(t){this.assignedValues.delete(t),this.tearDownBindingObserver(t);let e=this.getRaw(t);e?this.hydrate(t,e):this.store.delete(t)}bind(){let t=r.findParent(this);t&&t.appendChild(this);for(let e of this.assignedValues.keys())e.notify(this.target)}unbind(){this.parent&&Jt.get(this).removeChild(this);for(let t of this.bindingObservers.keys())this.tearDownBindingObserver(t)}appendChild(t){t.parent&&Jt.get(t).removeChild(t);let e=this.children.filter(n=>t.contains(n));Jt.set(t,this),this.children.push(t),e.forEach(n=>t.appendChild(n)),S.getNotifier(this.store).subscribe(t);for(let[n,o]of this.store.all())t.hydrate(n,this.bindingObservers.has(n)?this.getRaw(n):o),t.updateCSSTokenReflection(t.store,n)}removeChild(t){let e=this.children.indexOf(t);if(e!==-1&&this.children.splice(e,1),S.getNotifier(this.store).unsubscribe(t),t.parent!==this)return!1;let n=Jt.delete(t);for(let[o]of this.store.all())t.hydrate(o,t.getRaw(o)),t.updateCSSTokenReflection(t.store,o);return n}contains(t){return yo(this.target,t.target)}reflectToCSS(t){this.isReflecting(t)||(this.reflecting.add(t),r.cssCustomPropertyReflector.startReflection(t,this.target))}stopReflectToCSS(t){this.isReflecting(t)&&(this.reflecting.delete(t),r.cssCustomPropertyReflector.stopReflection(t,this.target))}isReflecting(t){return this.reflecting.has(t)}handleChange(t,e){let n=Q.getTokenById(e);n&&(this.hydrate(n,this.getRaw(n)),this.updateCSSTokenReflection(this.store,n))}hydrate(t,e){if(!this.has(t)){let n=this.bindingObservers.get(t);Q.isDerivedDesignTokenValue(e)?n?n.source!==e&&(this.tearDownBindingObserver(t),this.setupBindingObserver(t,e)):this.setupBindingObserver(t,e):(n&&this.tearDownBindingObserver(t),this.store.set(t,e))}}setupBindingObserver(t,e){let n=new Fr(e,t,this);return this.bindingObservers.set(t,n),n}tearDownBindingObserver(t){return this.bindingObservers.has(t)?(this.bindingObservers.get(t).disconnect(),this.bindingObservers.delete(t),!0):!1}};B.cssCustomPropertyReflector=new Nr;y([Y],B.prototype,"children",void 0);function Qi(r){return Q.from(r)}var Kt=Object.freeze({create:Qi,notifyConnection(r){return!r.isConnected||!B.existsFor(r)?!1:(B.getOrCreate(r).bind(),!0)},notifyDisconnection(r){return r.isConnected||!B.existsFor(r)?!1:(B.getOrCreate(r).unbind(),!0)},registerRoot(r=tt){ht.registerRoot(r)},unregisterRoot(r=tt){ht.unregisterRoot(r)}});var Br=Object.freeze({definitionCallbackOnly:null,ignoreDuplicate:Symbol()}),jr=new Map,$e=new Map,$t=null,te=w.createInterface(r=>r.cachedCallback(t=>($t===null&&($t=new Be(null,t)),$t))),Ur=Object.freeze({tagFor(r){return $e.get(r)},responsibleFor(r){let t=r.$$designSystem$$;return t||w.findResponsibleContainer(r).get(te)},getOrCreate(r){if(!r)return $t===null&&($t=w.getOrCreateDOMContainer().get(te)),$t;let t=r.$$designSystem$$;if(t)return t;let e=w.getOrCreateDOMContainer(r);if(e.has(te,!1))return e.get(te);{let n=new Be(r,e);return e.register(wt.instance(te,n)),n}}});function Zi(r,t,e){return typeof r=="string"?{name:r,type:t,callback:e}:r}var Be=class{constructor(t,e){this.owner=t,this.container=e,this.designTokensInitialized=!1,this.prefix="fast",this.shadowRootMode=void 0,this.disambiguate=()=>Br.definitionCallbackOnly,t!==null&&(t.$$designSystem$$=this)}withPrefix(t){return this.prefix=t,this}withShadowRootMode(t){return this.shadowRootMode=t,this}withElementDisambiguation(t){return this.disambiguate=t,this}withDesignTokenRoot(t){return this.designTokenRoot=t,this}register(...t){let e=this.container,n=[],o=this.disambiguate,i=this.shadowRootMode,a={elementPrefix:this.prefix,tryDefineElement(l,f,c){let d=Zi(l,f,c),{name:x,callback:k,baseClass:M}=d,{type:C}=d,W=x,Et=jr.get(W),Bt=!0;for(;Et;){let ue=o(W,C,Et);switch(ue){case Br.ignoreDuplicate:return;case Br.definitionCallbackOnly:Bt=!1,Et=void 0;break;default:W=ue,Et=jr.get(W);break}}Bt&&(($e.has(C)||C===dt)&&(C=class extends C{}),jr.set(W,C),$e.set(C,W),M&&$e.set(M,W)),n.push(new Hr(e,W,C,i,k,Bt))}};this.designTokensInitialized||(this.designTokensInitialized=!0,this.designTokenRoot!==null&&Kt.registerRoot(this.designTokenRoot)),e.registerWithContext(a,...t);for(let l of n)l.callback(l),l.willDefine&&l.definition!==null&&l.definition.define();return this}},Hr=class{constructor(t,e,n,o,i,a){this.container=t,this.name=e,this.type=n,this.shadowRootMode=o,this.callback=i,this.willDefine=a,this.definition=null}definePresentation(t){Me.define(this.name,t,this.container)}defineElement(t){this.definition=new K(this.type,Object.assign(Object.assign({},t),{name:this.name}))}tagFor(t){return Ur.tagFor(t)}};var vo="not-allowed";var Ji=":host([hidden]){display:none}";function xo(r){return`${Ji}:host{display:${r}}`}var ee=lo()?"focus-visible":"focus";function wo(r){return Ur.getOrCreate(r).withPrefix("vscode")}function To(r){window.addEventListener("load",()=>{new MutationObserver(()=>{So(r)}).observe(document.body,{attributes:!0,attributeFilter:["class"]}),So(r)})}function So(r){let t=getComputedStyle(document.body),e=document.querySelector("body");if(e){let n=e.getAttribute("data-vscode-theme-kind");for(let[o,i]of r){let a=t.getPropertyValue(o).toString();if(n==="vscode-high-contrast")a.length===0&&i.name.includes("background")&&(a="transparent"),i.name==="button-icon-hover-background"&&(a="transparent");else if(n==="vscode-high-contrast-light"){if(a.length===0&&i.name.includes("background"))switch(i.name){case"button-primary-hover-background":a="#0F4A85";break;case"button-secondary-hover-background":a="transparent";break;case"button-icon-hover-background":a="transparent";break}}else i.name==="contrast-active-border"&&(a="transparent");i.setValueFor(e,a)}}}var Co=new Map,Eo=!1;function h(r,t){let e=Kt.create(r);if(t){if(t.includes("--fake-vscode-token")){let n="id"+Math.random().toString(16).slice(2);t=`${t}-${n}`}Co.set(t,e)}return Eo||(To(Co),Eo=!0),e}var Cu=h("background","--vscode-editor-background").withDefault("#1e1e1e"),st=h("border-width").withDefault(1),_o=h("contrast-active-border","--vscode-contrastActiveBorder").withDefault("#f38518"),Eu=h("contrast-border","--vscode-contrastBorder").withDefault("#6fc3df"),_u=h("corner-radius").withDefault(0),Ao=h("corner-radius-round").withDefault(2),zr=h("design-unit").withDefault(4),ko=h("disabled-opacity").withDefault(.4),re=h("focus-border","--vscode-focusBorder").withDefault("#007fd4"),Oo=h("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"),Au=h("font-weight","--vscode-font-weight").withDefault("400"),Ro=h("foreground","--vscode-foreground").withDefault("#cccccc"),ku=h("input-height").withDefault("26"),Ou=h("input-min-width").withDefault("100px"),Do=h("type-ramp-base-font-size","--vscode-font-size").withDefault("13px"),Po=h("type-ramp-base-line-height").withDefault("normal"),Ru=h("type-ramp-minus1-font-size").withDefault("11px"),Du=h("type-ramp-minus1-line-height").withDefault("16px"),Pu=h("type-ramp-minus2-font-size").withDefault("9px"),Iu=h("type-ramp-minus2-line-height").withDefault("16px"),Lu=h("type-ramp-plus1-font-size").withDefault("16px"),Mu=h("type-ramp-plus1-line-height").withDefault("24px"),Nu=h("scrollbarWidth").withDefault("10px"),Fu=h("scrollbarHeight").withDefault("10px"),$u=h("scrollbar-slider-background","--vscode-scrollbarSlider-background").withDefault("#79797966"),Bu=h("scrollbar-slider-hover-background","--vscode-scrollbarSlider-hoverBackground").withDefault("#646464b3"),ju=h("scrollbar-slider-active-background","--vscode-scrollbarSlider-activeBackground").withDefault("#bfbfbf66"),Hu=h("badge-background","--vscode-badge-background").withDefault("#4d4d4d"),Uu=h("badge-foreground","--vscode-badge-foreground").withDefault("#ffffff"),Io=h("button-border","--vscode-button-border").withDefault("transparent"),Vr=h("button-icon-background").withDefault("transparent"),Lo=h("button-icon-corner-radius").withDefault("5px"),Mo=h("button-icon-outline-offset").withDefault(0),Wr=h("button-icon-hover-background","--fake-vscode-token").withDefault("rgba(90, 93, 94, 0.31)"),No=h("button-icon-padding").withDefault("3px"),Ct=h("button-primary-background","--vscode-button-background").withDefault("#0e639c"),qr=h("button-primary-foreground","--vscode-button-foreground").withDefault("#ffffff"),Gr=h("button-primary-hover-background","--vscode-button-hoverBackground").withDefault("#1177bb"),je=h("button-secondary-background","--vscode-button-secondaryBackground").withDefault("#3a3d41"),Fo=h("button-secondary-foreground","--vscode-button-secondaryForeground").withDefault("#ffffff"),$o=h("button-secondary-hover-background","--vscode-button-secondaryHoverBackground").withDefault("#45494e"),Bo=h("button-padding-horizontal").withDefault("11px"),jo=h("button-padding-vertical").withDefault("4px"),zu=h("checkbox-background","--vscode-checkbox-background").withDefault("#3c3c3c"),Vu=h("checkbox-border","--vscode-checkbox-border").withDefault("#3c3c3c"),Wu=h("checkbox-corner-radius").withDefault(3),qu=h("checkbox-foreground","--vscode-checkbox-foreground").withDefault("#f0f0f0"),Gu=h("list-active-selection-background","--vscode-list-activeSelectionBackground").withDefault("#094771"),Yu=h("list-active-selection-foreground","--vscode-list-activeSelectionForeground").withDefault("#ffffff"),Xu=h("list-hover-background","--vscode-list-hoverBackground").withDefault("#2a2d2e"),Qu=h("divider-background","--vscode-settings-dropdownListBorder").withDefault("#454545"),Zu=h("dropdown-background","--vscode-dropdown-background").withDefault("#3c3c3c"),Ju=h("dropdown-border","--vscode-dropdown-border").withDefault("#3c3c3c"),Ku=h("dropdown-foreground","--vscode-dropdown-foreground").withDefault("#f0f0f0"),tf=h("dropdown-list-max-height").withDefault("200px"),ef=h("input-background","--vscode-input-background").withDefault("#3c3c3c"),rf=h("input-foreground","--vscode-input-foreground").withDefault("#cccccc"),nf=h("input-placeholder-foreground","--vscode-input-placeholderForeground").withDefault("#cccccc"),of=h("link-active-foreground","--vscode-textLink-activeForeground").withDefault("#3794ff"),sf=h("link-foreground","--vscode-textLink-foreground").withDefault("#3794ff"),af=h("progress-background","--vscode-progressBar-background").withDefault("#0e70c0"),lf=h("panel-tab-active-border","--vscode-panelTitle-activeBorder").withDefault("#e7e7e7"),cf=h("panel-tab-active-foreground","--vscode-panelTitle-activeForeground").withDefault("#e7e7e7"),uf=h("panel-tab-foreground","--vscode-panelTitle-inactiveForeground").withDefault("#e7e7e799"),ff=h("panel-view-background","--vscode-panel-background").withDefault("#1e1e1e"),df=h("panel-view-border","--vscode-panel-border").withDefault("#80808059"),hf=h("tag-corner-radius").withDefault("2px");function Ho(r,t,e,n){var o=arguments.length,i=o<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,t,e,n);else for(var l=r.length-1;l>=0;l--)(a=r[l])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i}var Ki=xt` ${xo("inline-flex")} :host { outline: none; font-family: ${Oo}; font-size: ${Do}; line-height: ${Po}; color: ${qr}; background: ${Ct}; border-radius: calc(${Ao} * 1px); 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: ${jo} ${Bo}; white-space: wrap; outline: none; text-decoration: none; border: calc(${st} * 1px) solid ${Io}; color: inherit; border-radius: inherit; fill: inherit; cursor: inherit; font-family: inherit; } :host(:hover) { background: ${Gr}; } :host(:active) { background: ${Ct}; } .control:${ee} { outline: calc(${st} * 1px) solid ${re}; outline-offset: calc(${st} * 2px); } .control::-moz-focus-inner { border: 0; } :host([disabled]) { opacity: ${ko}; background: ${Ct}; cursor: ${vo}; } .content { display: flex; } .start { display: flex; } ::slotted(svg), ::slotted(span) { width: calc(${zr} * 4px); height: calc(${zr} * 4px); } .start { margin-inline-end: 8px; } `,ts=xt` :host([appearance='primary']) { background: ${Ct}; color: ${qr}; } :host([appearance='primary']:hover) { background: ${Gr}; } :host([appearance='primary']:active) .control:active { background: ${Ct}; } :host([appearance='primary']) .control:${ee} { outline: calc(${st} * 1px) solid ${re}; outline-offset: calc(${st} * 2px); } :host([appearance='primary'][disabled]) { background: ${Ct}; } `,es=xt` :host([appearance='secondary']) { background: ${je}; color: ${Fo}; } :host([appearance='secondary']:hover) { background: ${$o}; } :host([appearance='secondary']:active) .control:active { background: ${je}; } :host([appearance='secondary']) .control:${ee} { outline: calc(${st} * 1px) solid ${re}; outline-offset: calc(${st} * 2px); } :host([appearance='secondary'][disabled]) { background: ${je}; } `,rs=xt` :host([appearance='icon']) { background: ${Vr}; border-radius: ${Lo}; color: ${Ro}; } :host([appearance='icon']:hover) { background: ${Wr}; outline: 1px dotted ${_o}; outline-offset: -1px; } :host([appearance='icon']) .control { padding: ${No}; border: none; } :host([appearance='icon']:active) .control:active { background: ${Wr}; } :host([appearance='icon']) .control:${ee} { outline: calc(${st} * 1px) solid ${re}; outline-offset: ${Mo}; } :host([appearance='icon'][disabled]) { background: ${Vr}; } `,Uo=(r,t)=>xt` ${Ki} ${ts} ${es} ${rs} `;var He=class extends V{connectedCallback(){if(super.connectedCallback(),!this.appearance){let t=this.getAttribute("appearance");this.appearance=t}}attributeChangedCallback(t,e,n){t==="appearance"&&n==="icon"&&(this.getAttribute("aria-label")||(this.ariaLabel="Icon Button")),t==="aria-label"&&(this.ariaLabel=n),t==="disabled"&&(this.disabled=n!==null)}};Ho([b],He.prototype,"appearance",void 0);var Yr=He.compose({baseName:"button",template:fo,styles:Uo,shadowOptions:{delegatesFocus:!0}});var{entries:Zo,setPrototypeOf:zo,isFrozen:ns,getPrototypeOf:os,getOwnPropertyDescriptor:is}=Object,{freeze:H,seal:G,create:Ve}=Object,{apply:en,construct:rn}=typeof Reflect<"u"&&Reflect;H||(H=function(t){return t});G||(G=function(t){return t});en||(en=function(t,e){for(var n=arguments.length,o=new Array(n>2?n-2:0),i=2;i1?e-1:0),o=1;o1?e-1:0),o=1;o2&&arguments[2]!==void 0?arguments[2]:We;zo&&zo(r,null);let n=t.length;for(;n--;){let o=t[n];if(typeof o=="string"){let i=e(o);i!==o&&(ns(t)||(t[n]=i),o=i)}r[o]=!0}return r}function fs(r){for(let t=0;t/gm),gs=G(/\$\{[\w\W]*/gm),bs=G(/^data-[\-\w.\u00B7-\uFFFF]+$/),ys=G(/^aria-[\-\w]+$/),Jo=G(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),vs=G(/^(?:\w+script|data):/i),xs=G(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Ko=G(/^html$/i),ws=G(/^[a-z][.\w]*(-[.\w]+)+$/i),Xo=Object.freeze({__proto__:null,ARIA_ATTR:ys,ATTR_WHITESPACE:xs,CUSTOM_ELEMENT:ws,DATA_ATTR:bs,DOCTYPE_NAME:Ko,ERB_EXPR:ms,IS_ALLOWED_URI:Jo,IS_SCRIPT_OR_DATA:vs,MUSTACHE_EXPR:ps,TMPLIT_EXPR:gs}),ae={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},Ss=function(){return typeof window>"u"?null:window},Ts=function(t,e){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let n=null,o="data-tt-policy-suffix";e&&e.hasAttribute(o)&&(n=e.getAttribute(o));let i="dompurify"+(n?"#"+n:"");try{return t.createPolicy(i,{createHTML(a){return a},createScriptURL(a){return a}})}catch{return console.warn("TrustedTypes policy "+i+" could not be created."),null}},Qo=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function ti(){let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Ss(),t=m=>ti(m);if(t.version="3.3.2",t.removed=[],!r||!r.document||r.document.nodeType!==ae.document||!r.Element)return t.isSupported=!1,t;let{document:e}=r,n=e,o=n.currentScript,{DocumentFragment:i,HTMLTemplateElement:a,Node:l,Element:f,NodeFilter:c,NamedNodeMap:d=r.NamedNodeMap||r.MozNamedAttrMap,HTMLFormElement:x,DOMParser:k,trustedTypes:M}=r,C=f.prototype,W=se(C,"cloneNode"),Et=se(C,"remove"),Bt=se(C,"nextSibling"),ue=se(C,"childNodes"),fe=se(C,"parentNode");if(typeof a=="function"){let m=e.createElement("template");m.content&&m.content.ownerDocument&&(e=m.content.ownerDocument)}let N,jt="",{implementation:qe,createNodeIterator:ni,createDocumentFragment:oi,getElementsByTagName:ii}=e,{importNode:si}=n,F=Qo();t.isSupported=typeof Zo=="function"&&typeof fe=="function"&&qe&&qe.createHTMLDocument!==void 0;let{MUSTACHE_EXPR:Ge,ERB_EXPR:Ye,TMPLIT_EXPR:Xe,DATA_ATTR:ai,ARIA_ATTR:li,IS_SCRIPT_OR_DATA:ci,ATTR_WHITESPACE:sn,CUSTOM_ELEMENT:ui}=Xo,{IS_ALLOWED_URI:an}=Xo,D=null,ln=v({},[...Wo,...Zr,...Jr,...Kr,...qo]),P=null,cn=v({},[...Go,...tn,...Yo,...ze]),_=Object.seal(Ve(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Ht=null,de=null,at=Object.seal(Ve(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),un=!0,Qe=!0,fn=!1,dn=!0,_t=!1,he=!0,pt=!1,Ze=!1,Je=!1,At=!1,pe=!1,me=!1,hn=!0,pn=!1,fi="user-content-",Ke=!0,Ut=!1,kt={},Z=null,tr=v({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),mn=null,gn=v({},["audio","video","img","source","image","track"]),er=null,bn=v({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),ge="http://www.w3.org/1998/Math/MathML",be="http://www.w3.org/2000/svg",rt="http://www.w3.org/1999/xhtml",Ot=rt,rr=!1,nr=null,di=v({},[ge,be,rt],Xr),ye=v({},["mi","mo","mn","ms","mtext"]),ve=v({},["annotation-xml"]),hi=v({},["title","style","font","a","script"]),zt=null,pi=["application/xhtml+xml","text/html"],mi="text/html",R=null,Rt=null,gi=e.createElement("form"),yn=function(s){return s instanceof RegExp||s instanceof Function},or=function(){let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Rt&&Rt===s)){if((!s||typeof s!="object")&&(s={}),s=et(s),zt=pi.indexOf(s.PARSER_MEDIA_TYPE)===-1?mi:s.PARSER_MEDIA_TYPE,R=zt==="application/xhtml+xml"?Xr:We,D=q(s,"ALLOWED_TAGS")?v({},s.ALLOWED_TAGS,R):ln,P=q(s,"ALLOWED_ATTR")?v({},s.ALLOWED_ATTR,R):cn,nr=q(s,"ALLOWED_NAMESPACES")?v({},s.ALLOWED_NAMESPACES,Xr):di,er=q(s,"ADD_URI_SAFE_ATTR")?v(et(bn),s.ADD_URI_SAFE_ATTR,R):bn,mn=q(s,"ADD_DATA_URI_TAGS")?v(et(gn),s.ADD_DATA_URI_TAGS,R):gn,Z=q(s,"FORBID_CONTENTS")?v({},s.FORBID_CONTENTS,R):tr,Ht=q(s,"FORBID_TAGS")?v({},s.FORBID_TAGS,R):et({}),de=q(s,"FORBID_ATTR")?v({},s.FORBID_ATTR,R):et({}),kt=q(s,"USE_PROFILES")?s.USE_PROFILES:!1,un=s.ALLOW_ARIA_ATTR!==!1,Qe=s.ALLOW_DATA_ATTR!==!1,fn=s.ALLOW_UNKNOWN_PROTOCOLS||!1,dn=s.ALLOW_SELF_CLOSE_IN_ATTR!==!1,_t=s.SAFE_FOR_TEMPLATES||!1,he=s.SAFE_FOR_XML!==!1,pt=s.WHOLE_DOCUMENT||!1,At=s.RETURN_DOM||!1,pe=s.RETURN_DOM_FRAGMENT||!1,me=s.RETURN_TRUSTED_TYPE||!1,Je=s.FORCE_BODY||!1,hn=s.SANITIZE_DOM!==!1,pn=s.SANITIZE_NAMED_PROPS||!1,Ke=s.KEEP_CONTENT!==!1,Ut=s.IN_PLACE||!1,an=s.ALLOWED_URI_REGEXP||Jo,Ot=s.NAMESPACE||rt,ye=s.MATHML_TEXT_INTEGRATION_POINTS||ye,ve=s.HTML_INTEGRATION_POINTS||ve,_=s.CUSTOM_ELEMENT_HANDLING||{},s.CUSTOM_ELEMENT_HANDLING&&yn(s.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(_.tagNameCheck=s.CUSTOM_ELEMENT_HANDLING.tagNameCheck),s.CUSTOM_ELEMENT_HANDLING&&yn(s.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(_.attributeNameCheck=s.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),s.CUSTOM_ELEMENT_HANDLING&&typeof s.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(_.allowCustomizedBuiltInElements=s.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),_t&&(Qe=!1),pe&&(At=!0),kt&&(D=v({},qo),P=Ve(null),kt.html===!0&&(v(D,Wo),v(P,Go)),kt.svg===!0&&(v(D,Zr),v(P,tn),v(P,ze)),kt.svgFilters===!0&&(v(D,Jr),v(P,tn),v(P,ze)),kt.mathMl===!0&&(v(D,Kr),v(P,Yo),v(P,ze))),q(s,"ADD_TAGS")||(at.tagCheck=null),q(s,"ADD_ATTR")||(at.attributeCheck=null),s.ADD_TAGS&&(typeof s.ADD_TAGS=="function"?at.tagCheck=s.ADD_TAGS:(D===ln&&(D=et(D)),v(D,s.ADD_TAGS,R))),s.ADD_ATTR&&(typeof s.ADD_ATTR=="function"?at.attributeCheck=s.ADD_ATTR:(P===cn&&(P=et(P)),v(P,s.ADD_ATTR,R))),s.ADD_URI_SAFE_ATTR&&v(er,s.ADD_URI_SAFE_ATTR,R),s.FORBID_CONTENTS&&(Z===tr&&(Z=et(Z)),v(Z,s.FORBID_CONTENTS,R)),s.ADD_FORBID_CONTENTS&&(Z===tr&&(Z=et(Z)),v(Z,s.ADD_FORBID_CONTENTS,R)),Ke&&(D["#text"]=!0),pt&&v(D,["html","head","body"]),D.table&&(v(D,["tbody"]),delete Ht.tbody),s.TRUSTED_TYPES_POLICY){if(typeof s.TRUSTED_TYPES_POLICY.createHTML!="function")throw ie('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof s.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw ie('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');N=s.TRUSTED_TYPES_POLICY,jt=N.createHTML("")}else N===void 0&&(N=Ts(M,o)),N!==null&&typeof jt=="string"&&(jt=N.createHTML(""));H&&H(s),Rt=s}},vn=v({},[...Zr,...Jr,...ds]),xn=v({},[...Kr,...hs]),bi=function(s){let u=fe(s);(!u||!u.tagName)&&(u={namespaceURI:Ot,tagName:"template"});let p=We(s.tagName),T=We(u.tagName);return nr[s.namespaceURI]?s.namespaceURI===be?u.namespaceURI===rt?p==="svg":u.namespaceURI===ge?p==="svg"&&(T==="annotation-xml"||ye[T]):!!vn[p]:s.namespaceURI===ge?u.namespaceURI===rt?p==="math":u.namespaceURI===be?p==="math"&&ve[T]:!!xn[p]:s.namespaceURI===rt?u.namespaceURI===be&&!ve[T]||u.namespaceURI===ge&&!ye[T]?!1:!xn[p]&&(hi[p]||!vn[p]):!!(zt==="application/xhtml+xml"&&nr[s.namespaceURI]):!1},J=function(s){ne(t.removed,{element:s});try{fe(s).removeChild(s)}catch{Et(s)}},mt=function(s,u){try{ne(t.removed,{attribute:u.getAttributeNode(s),from:u})}catch{ne(t.removed,{attribute:null,from:u})}if(u.removeAttribute(s),s==="is")if(At||pe)try{J(u)}catch{}else try{u.setAttribute(s,"")}catch{}},wn=function(s){let u=null,p=null;if(Je)s=""+s;else{let O=Qr(s,/^[\r\n\t ]+/);p=O&&O[0]}zt==="application/xhtml+xml"&&Ot===rt&&(s=''+s+"");let T=N?N.createHTML(s):s;if(Ot===rt)try{u=new k().parseFromString(T,zt)}catch{}if(!u||!u.documentElement){u=qe.createDocument(Ot,"template",null);try{u.documentElement.innerHTML=rr?jt:T}catch{}}let L=u.body||u.documentElement;return s&&p&&L.insertBefore(e.createTextNode(p),L.childNodes[0]||null),Ot===rt?ii.call(u,pt?"html":"body")[0]:pt?u.documentElement:L},Sn=function(s){return ni.call(s.ownerDocument||s,s,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},ir=function(s){return s instanceof x&&(typeof s.nodeName!="string"||typeof s.textContent!="string"||typeof s.removeChild!="function"||!(s.attributes instanceof d)||typeof s.removeAttribute!="function"||typeof s.setAttribute!="function"||typeof s.namespaceURI!="string"||typeof s.insertBefore!="function"||typeof s.hasChildNodes!="function")},Tn=function(s){return typeof l=="function"&&s instanceof l};function nt(m,s,u){Ue(m,p=>{p.call(t,s,u,Rt)})}let Cn=function(s){let u=null;if(nt(F.beforeSanitizeElements,s,null),ir(s))return J(s),!0;let p=R(s.nodeName);if(nt(F.uponSanitizeElement,s,{tagName:p,allowedTags:D}),he&&s.hasChildNodes()&&!Tn(s.firstElementChild)&&j(/<[/\w!]/g,s.innerHTML)&&j(/<[/\w!]/g,s.textContent)||s.nodeType===ae.progressingInstruction||he&&s.nodeType===ae.comment&&j(/<[/\w]/g,s.data))return J(s),!0;if(!(at.tagCheck instanceof Function&&at.tagCheck(p))&&(!D[p]||Ht[p])){if(!Ht[p]&&_n(p)&&(_.tagNameCheck instanceof RegExp&&j(_.tagNameCheck,p)||_.tagNameCheck instanceof Function&&_.tagNameCheck(p)))return!1;if(Ke&&!Z[p]){let T=fe(s)||s.parentNode,L=ue(s)||s.childNodes;if(L&&T){let O=L.length;for(let z=O-1;z>=0;--z){let ot=W(L[z],!0);ot.__removalCount=(s.__removalCount||0)+1,T.insertBefore(ot,Bt(s))}}}return J(s),!0}return s instanceof f&&!bi(s)||(p==="noscript"||p==="noembed"||p==="noframes")&&j(/<\/no(script|embed|frames)/i,s.innerHTML)?(J(s),!0):(_t&&s.nodeType===ae.text&&(u=s.textContent,Ue([Ge,Ye,Xe],T=>{u=oe(u,T," ")}),s.textContent!==u&&(ne(t.removed,{element:s.cloneNode()}),s.textContent=u)),nt(F.afterSanitizeElements,s,null),!1)},En=function(s,u,p){if(de[u]||hn&&(u==="id"||u==="name")&&(p in e||p in gi))return!1;if(!(Qe&&!de[u]&&j(ai,u))){if(!(un&&j(li,u))){if(!(at.attributeCheck instanceof Function&&at.attributeCheck(u,s))){if(!P[u]||de[u]){if(!(_n(s)&&(_.tagNameCheck instanceof RegExp&&j(_.tagNameCheck,s)||_.tagNameCheck instanceof Function&&_.tagNameCheck(s))&&(_.attributeNameCheck instanceof RegExp&&j(_.attributeNameCheck,u)||_.attributeNameCheck instanceof Function&&_.attributeNameCheck(u,s))||u==="is"&&_.allowCustomizedBuiltInElements&&(_.tagNameCheck instanceof RegExp&&j(_.tagNameCheck,p)||_.tagNameCheck instanceof Function&&_.tagNameCheck(p))))return!1}else if(!er[u]){if(!j(an,oe(p,sn,""))){if(!((u==="src"||u==="xlink:href"||u==="href")&&s!=="script"&&ls(p,"data:")===0&&mn[s])){if(!(fn&&!j(ci,oe(p,sn,"")))){if(p)return!1}}}}}}}return!0},_n=function(s){return s!=="annotation-xml"&&Qr(s,ui)},An=function(s){nt(F.beforeSanitizeAttributes,s,null);let{attributes:u}=s;if(!u||ir(s))return;let p={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:P,forceKeepAttr:void 0},T=u.length;for(;T--;){let L=u[T],{name:O,namespaceURI:z,value:ot}=L,Dt=R(O),sr=ot,I=O==="value"?sr:cs(sr);if(p.attrName=Dt,p.attrValue=I,p.keepAttr=!0,p.forceKeepAttr=void 0,nt(F.uponSanitizeAttribute,s,p),I=p.attrValue,pn&&(Dt==="id"||Dt==="name")&&(mt(O,s),I=fi+I),he&&j(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,I)){mt(O,s);continue}if(Dt==="attributename"&&Qr(I,"href")){mt(O,s);continue}if(p.forceKeepAttr)continue;if(!p.keepAttr){mt(O,s);continue}if(!dn&&j(/\/>/i,I)){mt(O,s);continue}_t&&Ue([Ge,Ye,Xe],On=>{I=oe(I,On," ")});let kn=R(s.nodeName);if(!En(kn,Dt,I)){mt(O,s);continue}if(N&&typeof M=="object"&&typeof M.getAttributeType=="function"&&!z)switch(M.getAttributeType(kn,Dt)){case"TrustedHTML":{I=N.createHTML(I);break}case"TrustedScriptURL":{I=N.createScriptURL(I);break}}if(I!==sr)try{z?s.setAttributeNS(z,O,I):s.setAttribute(O,I),ir(s)?J(s):Vo(t.removed)}catch{mt(O,s)}}nt(F.afterSanitizeAttributes,s,null)},yi=function m(s){let u=null,p=Sn(s);for(nt(F.beforeSanitizeShadowDOM,s,null);u=p.nextNode();)nt(F.uponSanitizeShadowNode,u,null),Cn(u),An(u),u.content instanceof i&&m(u.content);nt(F.afterSanitizeShadowDOM,s,null)};return t.sanitize=function(m){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},u=null,p=null,T=null,L=null;if(rr=!m,rr&&(m=""),typeof m!="string"&&!Tn(m))if(typeof m.toString=="function"){if(m=m.toString(),typeof m!="string")throw ie("dirty is not a string, aborting")}else throw ie("toString is not a function");if(!t.isSupported)return m;if(Ze||or(s),t.removed=[],typeof m=="string"&&(Ut=!1),Ut){if(m.nodeName){let ot=R(m.nodeName);if(!D[ot]||Ht[ot])throw ie("root node is forbidden and cannot be sanitized in-place")}}else if(m instanceof l)u=wn(""),p=u.ownerDocument.importNode(m,!0),p.nodeType===ae.element&&p.nodeName==="BODY"||p.nodeName==="HTML"?u=p:u.appendChild(p);else{if(!At&&!_t&&!pt&&m.indexOf("<")===-1)return N&&me?N.createHTML(m):m;if(u=wn(m),!u)return At?null:me?jt:""}u&&Je&&J(u.firstChild);let O=Sn(Ut?m:u);for(;T=O.nextNode();)Cn(T),An(T),T.content instanceof i&&yi(T.content);if(Ut)return m;if(At){if(pe)for(L=oi.call(u.ownerDocument);u.firstChild;)L.appendChild(u.firstChild);else L=u;return(P.shadowroot||P.shadowrootmode)&&(L=si.call(n,L,!0)),L}let z=pt?u.outerHTML:u.innerHTML;return pt&&D["!doctype"]&&u.ownerDocument&&u.ownerDocument.doctype&&u.ownerDocument.doctype.name&&j(Ko,u.ownerDocument.doctype.name)&&(z=" `+z),_t&&Ue([Ge,Ye,Xe],ot=>{z=oe(z,ot," ")}),N&&me?N.createHTML(z):z},t.setConfig=function(){let m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};or(m),Ze=!0},t.clearConfig=function(){Rt=null,Ze=!1},t.isValidAttribute=function(m,s,u){Rt||or({});let p=R(m),T=R(s);return En(p,T,u)},t.addHook=function(m,s){typeof s=="function"&&ne(F[m],s)},t.removeHook=function(m,s){if(s!==void 0){let u=ss(F[m],s);return u===-1?void 0:as(F[m],u,1)[0]}return Vo(F[m])},t.removeHooks=function(m){F[m]=[]},t.removeAllHooks=function(){F=Qo()},t}var le=ti();var ce=document.getElementById("solutionsContainer"),nn=acquireVsCodeApi(),on=0,ei=!1;wo().register(Yr());window.addEventListener("DOMContentLoaded",()=>{nn.postMessage({command:"webviewReady"}),ks()});window.addEventListener("message",r=>{let t=r.data;switch(t.command){case"solutionsUpdated":Cs(t);break;case"navigatePreviousSolution":Es();break;case"navigateNextSolution":_s();break}});function Cs(r){As(r),ce&&(ce.innerHTML=r.solutions.map((t,e)=>{let n=t.citation?`

${le.sanitize(t.citation.message)} Inspect source code

`:"",o=le.sanitize(t.htmlSnippet);return`

Suggestion ${e+1}

${o}
${le.sanitize(n)} Accept suggestion ${e+1}`}).join(""))}function Es(){let r=document.querySelectorAll(".snippetContainer pre"),t=on-1;r[t]?.focus()}function _s(){let r=document.querySelectorAll(".snippetContainer pre"),t=(on??-1)+1;r[t]?r[t].focus():r[0]&&r[0].focus()}function As(r){let t=document.getElementById("progress-bar"),e=document.getElementById("loadingContainer");if(!(!t||!e))if(r.percentage>=100)e.innerHTML=`${r.solutions.length} Suggestions`;else{let n=e.querySelector("label");n.textContent!=="Loading suggestions:\xA0"&&(n.textContent="Loading suggestions:\xA0"),t.value=r.percentage}}function ks(){ei||ce===null||(ce.addEventListener("focusin",r=>{let t=r.target,e=ri(t);e!==void 0&&Os(e)}),ce.addEventListener("click",r=>{let e=r.target?.closest("vscode-button[data-solution-index]");if(!(e instanceof HTMLElement))return;let n=ri(e);n!==void 0&&Rs(n)}),ei=!0)}function ri(r){let t=r?.closest("[data-solution-index]");if(!(t instanceof HTMLElement))return;let e=t.getAttribute("data-solution-index");if(e===null)return;let n=Number.parseInt(e,10);return Number.isNaN(n)?void 0:n}function Os(r){on=r,nn.postMessage({command:"focusSolution",solutionIndex:r})}function Rs(r){nn.postMessage({command:"acceptSolution",solutionIndex:r})}})(); /*! Bundled license information: tslib/tslib.es6.js: (*! ***************************************************************************** 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. ***************************************************************************** *) dompurify/dist/purify.es.mjs: (*! @license DOMPurify 3.3.2 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.3.2/LICENSE *) */