var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},e(t,i)};function t(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}var i=function(){return i=Object.assign||function(e){for(var t,i=1,o=arguments.length;i<o;i++)for(var s in t=arguments[i])Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s]);return e},i.apply(this,arguments)};function o(e,t,i,o){var s,n=arguments.length,r=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,o);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(n<3?s(r):n>3?s(t,i,r):s(t,i))||r);return n>3&&r&&Object.defineProperty(t,i,r),r}function s(e){var t="function"==typeof Symbol&&Symbol.iterator,i=t&&e[t],o=0;if(i)return i.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&o>=e.length&&(e=void 0),{value:e&&e[o++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function n(e,t){var i="function"==typeof Symbol&&e[Symbol.iterator];if(!i)return e;var o,s,n=i.call(e),r=[];try{for(;(void 0===t||t-- >0)&&!(o=n.next()).done;)r.push(o.value)}catch(e){s={error:e}}finally{try{o&&!o.done&&(i=n.return)&&i.call(n)}finally{if(s)throw s.error}}return r}function r(e,t,i){if(i||2===arguments.length)for(var o,s=0,n=t.length;s<n;s++)!o&&s in t||(o||(o=Array.prototype.slice.call(t,0,s)),o[s]=t[s]);return e.concat(o||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError;
/**
 @license
 Copyright (c) 2015-2024 Lablup Inc. All rights reserved.
 */
const a="UPDATE_PAGE",l="UPDATE_OFFLINE",d="UPDATE_DRAWER_STATE",c="OPEN_SNACKBAR",h="CLOSE_SNACKBAR",p=(e,t={})=>i=>{if(!0!==["/summary","/job","/session","/serving","/agent-summary","/experiment","/data","/my-environment","/pipeline","/pipeline-job","/statistics","/usersettings","/agent","/storage-settings","/resource","/user","/credential","/environment","/settings","/maintenance","/information","/github","/import"].includes(e)){const i=e.split(/[/]+/);i.length>1&&""===i[0]&&(e=i[1],t.requestURL=i.slice(2).join("/"))}let o;t.queryString=window.location.search,"index.html"!==e&&""!==e||(e="/"),o=["/","build","/build","app","/app"].includes(e)?"summary":"/"===e[0]?e.slice(1):e,i(u(o,t)),i(_(!1))},u=(e,t={})=>i=>{switch(e){case"summary":import("./backend-ai-summary-view-CqPqOOJl.js").then((e=>{}));break;case"job":import("./backend-ai-session-view-CAKCRP9F.js");break;case"session":import("./backend-ai-session-view-next-DpE-euFB.js");break;case"serving":import("./backend-ai-serving-view-K_F69xQT.js");break;case"agent-summary":import("./backend-ai-agent-summary-view-e5Fq1BoT.js");break;case"data":import("./backend-ai-data-view-C9NDh4bO.js");break;case"usersettings":import("./backend-ai-usersettings-general-list-CZk0H7re.js");break;case"agent":case"resource":import("./backend-ai-resource-group-list-GcZ9h46k.js"),import("./backend-ai-storage-proxy-list-qlUuW3w-.js");break;case"storage-settings":import("./backend-ai-storage-host-settings-view-Dy_i8Ge9.js");break;case"credential":case"user":import("./backend-ai-credential-view-C_jAtLE8.js");break;case"environment":import("./backend-ai-environment-view-Glagiw3-.js");break;case"settings":import("./backend-ai-settings-view-vTHYL-Hr.js");break;case"maintenance":import("./backend-ai-maintenance-view-BJ_r3Q1c.js");break;case"statistics":import("./backend-ai-statistics-view-C-cgjU-s.js");break;case"verify-email":import("./backend-ai-email-verification-view-Dliz1al-.js");break;case"change-password":import("./backend-ai-change-forgot-password-view-CH6tIY5M.js");break;case"github":case"gitlab":case"import":import("./backend-ai-import-view-Ciidukxy.js");break;case"applauncher":case"edu-applauncher":import("./backend-ai-edu-applauncher-D6D4DziK.js");break;case"unauthorized":import("./backend-ai-permission-denied-view-yhymwTP-.js");break;default:if(void 0!==globalThis.backendaiPages){for(const e of globalThis.backendaiPages)"url"in e&&import("./plugins/"+e.url+".js");break}document.addEventListener("backend-ai-plugin-loaded",(()=>{})),import("./backend-ai-error-view-BZtmkWNC.js").then((e=>{}))}i(m(e,t))},m=(e,t)=>({type:a,page:e,params:t});let g;const f=e=>(t,i)=>{e!==i().app.offline&&t((e=>{e({type:c}),window.clearTimeout(g),g=window.setTimeout((()=>e({type:h})),3e3)})),t({type:l,offline:e})},_=e=>({type:d,opened:e});var v=function(){var e=this;this.updateInterval=1e3,this.tabId=Math.random().toString(36).substring(7),this.tabsCounter=0,this.onTabCountUpdate=[],this.updateActiveInterval=0,this.tabsCount=function(t){void 0===t&&(t=!0);var i=e.getData(),o=Object.keys(i.list),s=Date.now(),n=0;return o.forEach((function(t){i.list[t].lastActive+1.2*e.updateInterval>s&&n++})),t||e.tabsCounter===n||e.onTabCountUpdate.forEach((function(e){e(n)})),e.tabsCounter=n},this.updateActive=function(){var t=e.getData(),i=Date.now();void 0===t.list[e.tabId]&&(t.list[e.tabId]={TabOpenedTimeStamp:i}),t.list[e.tabId].url=window.location.href,t.list[e.tabId].lastActive=i,(void 0===t.lastCleaned||+t.lastCleaned+2e4<i)&&(t=e.clearList(t)),e.updateData(t),e.tabsCount(!1)},this.clearList=function(t){var i=Object.keys(t.list),o=Date.now();return i.forEach((function(i){t.list[i].lastActive+Math.max(8e3,1.5*e.updateInterval)<o&&delete t.list[i]})),t.lastCleaned=o,t},this.onTabChange=function(t,i){void 0===i&&(i=!1),"function"==typeof t&&(e.onTabCountUpdate.push(t),i&&t(e.tabsCount()))},this.updateData=function(e){localStorage.setItem("tabCountData","string"==typeof e?e:JSON.stringify(e))},this.getData=function(){var e=localStorage.getItem("tabCountData");return null==e?{list:{},lastCleaned:0}:JSON.parse(e)},this.getUrls=function(t){void 0===t&&(t=!1);var i=e.getData(),o=[];return Object.keys(i.list).forEach((function(e){t&&-1!==o.indexOf(i.list[e].url)||o.push(i.list[e].url)})),o},this.setUpdateInterval=function(t){void 0===t&&(t=e.updateInterval),null!==e.updateActiveInterval&&e.pause(),e.start(t)},this.pause=function(){clearInterval(e.updateActiveInterval),e.updateActiveInterval=0},this.start=function(t){void 0===t&&(t=e.updateInterval),e.updateActiveInterval=setInterval((function(){e.updateActive()}),e.updateInterval=t)},this.updateActive(),this.start(),window.onbeforeunload=function(t){var i=e.getData();delete i.list[e.tabId],e.updateData(i)}};
/**
 * @license
 * Copyright 2019 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */const b=globalThis,y=b.ShadowRoot&&(void 0===b.ShadyCSS||b.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,x=Symbol(),w=new WeakMap;let $=class{constructor(e,t,i){if(this._$cssResult$=!0,i!==x)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o;const t=this.t;if(y&&void 0===e){const i=void 0!==t&&1===t.length;i&&(e=w.get(t)),void 0===e&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),i&&w.set(t,e))}return e}toString(){return this.cssText}};const A=(e,...t)=>{const i=1===e.length?e[0]:t.reduce(((t,i,o)=>t+(e=>{if(!0===e._$cssResult$)return e.cssText;if("number"==typeof e)return e;throw Error("Value passed to 'css' function must be a 'css' function result: "+e+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+e[o+1]),e[0]);return new $(i,e,x)},k=y?e=>e:e=>e instanceof CSSStyleSheet?(e=>{let t="";for(const i of e.cssRules)t+=i.cssText;return(e=>new $("string"==typeof e?e:e+"",void 0,x))(t)})(e):e
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */,{is:E,defineProperty:S,getOwnPropertyDescriptor:C,getOwnPropertyNames:T,getOwnPropertySymbols:P,getPrototypeOf:I}=Object,O=globalThis,R=O.trustedTypes,N=R?R.emptyScript:"",L=O.reactiveElementPolyfillSupport,M=(e,t)=>e,U={toAttribute(e,t){switch(t){case Boolean:e=e?N:null;break;case Object:case Array:e=null==e?e:JSON.stringify(e)}return e},fromAttribute(e,t){let i=e;switch(t){case Boolean:i=null!==e;break;case Number:i=null===e?null:Number(e);break;case Object:case Array:try{i=JSON.parse(e)}catch(e){i=null}}return i}},H=(e,t)=>!E(e,t),D={attribute:!0,type:String,converter:U,reflect:!1,hasChanged:H};Symbol.metadata??=Symbol("metadata"),O.litPropertyMetadata??=new WeakMap;let z=class extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=D){if(t.state&&(t.attribute=!1),this._$Ei(),this.elementProperties.set(e,t),!t.noAccessor){const i=Symbol(),o=this.getPropertyDescriptor(e,i,t);void 0!==o&&S(this.prototype,e,o)}}static getPropertyDescriptor(e,t,i){const{get:o,set:s}=C(this.prototype,e)??{get(){return this[t]},set(e){this[t]=e}};return{get(){return o?.call(this)},set(t){const n=o?.call(this);s.call(this,t),this.requestUpdate(e,n,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??D}static _$Ei(){if(this.hasOwnProperty(M("elementProperties")))return;const e=I(this);e.finalize(),void 0!==e.l&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(M("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(M("properties"))){const e=this.properties,t=[...T(e),...P(e)];for(const i of t)this.createProperty(i,e[i])}const e=this[Symbol.metadata];if(null!==e){const t=litPropertyMetadata.get(e);if(void 0!==t)for(const[e,i]of t)this.elementProperties.set(e,i)}this._$Eh=new Map;for(const[e,t]of this.elementProperties){const i=this._$Eu(e,t);void 0!==i&&this._$Eh.set(i,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){const t=[];if(Array.isArray(e)){const i=new Set(e.flat(1/0).reverse());for(const e of i)t.unshift(k(e))}else void 0!==e&&t.push(k(e));return t}static _$Eu(e,t){const i=t.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof e?e.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((e=>this.enableUpdating=e)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((e=>e(this)))}addController(e){(this._$EO??=new Set).add(e),void 0!==this.renderRoot&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$EO?.delete(e)}_$E_(){const e=new Map,t=this.constructor.elementProperties;for(const i of t.keys())this.hasOwnProperty(i)&&(e.set(i,this[i]),delete this[i]);e.size>0&&(this._$Ep=e)}createRenderRoot(){const e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return((e,t)=>{if(y)e.adoptedStyleSheets=t.map((e=>e instanceof CSSStyleSheet?e:e.styleSheet));else for(const i of t){const t=document.createElement("style"),o=b.litNonce;void 0!==o&&t.setAttribute("nonce",o),t.textContent=i.cssText,e.appendChild(t)}})(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach((e=>e.hostConnected?.()))}enableUpdating(e){}disconnectedCallback(){this._$EO?.forEach((e=>e.hostDisconnected?.()))}attributeChangedCallback(e,t,i){this._$AK(e,i)}_$EC(e,t){const i=this.constructor.elementProperties.get(e),o=this.constructor._$Eu(e,i);if(void 0!==o&&!0===i.reflect){const s=(void 0!==i.converter?.toAttribute?i.converter:U).toAttribute(t,i.type);this._$Em=e,null==s?this.removeAttribute(o):this.setAttribute(o,s),this._$Em=null}}_$AK(e,t){const i=this.constructor,o=i._$Eh.get(e);if(void 0!==o&&this._$Em!==o){const e=i.getPropertyOptions(o),s="function"==typeof e.converter?{fromAttribute:e.converter}:void 0!==e.converter?.fromAttribute?e.converter:U;this._$Em=o,this[o]=s.fromAttribute(t,e.type),this._$Em=null}}requestUpdate(e,t,i){if(void 0!==e){if(i??=this.constructor.getPropertyOptions(e),!(i.hasChanged??H)(this[e],t))return;this.P(e,t,i)}!1===this.isUpdatePending&&(this._$ES=this._$ET())}P(e,t,i){this._$AL.has(e)||this._$AL.set(e,t),!0===i.reflect&&this._$Em!==e&&(this._$Ej??=new Set).add(e)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}const e=this.scheduleUpdate();return null!=e&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[e,t]of this._$Ep)this[e]=t;this._$Ep=void 0}const e=this.constructor.elementProperties;if(e.size>0)for(const[t,i]of e)!0!==i.wrapped||this._$AL.has(t)||void 0===this[t]||this.P(t,this[t],i)}let e=!1;const t=this._$AL;try{e=this.shouldUpdate(t),e?(this.willUpdate(t),this._$EO?.forEach((e=>e.hostUpdate?.())),this.update(t)):this._$EU()}catch(t){throw e=!1,this._$EU(),t}e&&this._$AE(t)}willUpdate(e){}_$AE(e){this._$EO?.forEach((e=>e.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Ej&&=this._$Ej.forEach((e=>this._$EC(e,this[e]))),this._$EU()}updated(e){}firstUpdated(e){}};z.elementStyles=[],z.shadowRootOptions={mode:"open"},z[M("elementProperties")]=new Map,z[M("finalized")]=new Map,L?.({ReactiveElement:z}),(O.reactiveElementVersions??=[]).push("2.0.4");
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */
const B=globalThis,F=B.trustedTypes,j=F?F.createPolicy("lit-html",{createHTML:e=>e}):void 0,V="$lit$",q=`lit$${Math.random().toFixed(9).slice(2)}$`,W="?"+q,G=`<${W}>`,K=document,X=()=>K.createComment(""),Y=e=>null===e||"object"!=typeof e&&"function"!=typeof e,J=Array.isArray,Z="[ \t\n\f\r]",Q=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,ee=/-->/g,te=/>/g,ie=RegExp(`>|${Z}(?:([^\\s"'>=/]+)(${Z}*=${Z}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),oe=/'/g,se=/"/g,ne=/^(?:script|style|textarea|title)$/i,re=e=>(t,...i)=>({_$litType$:e,strings:t,values:i}),ae=re(1),le=re(2),de=Symbol.for("lit-noChange"),ce=Symbol.for("lit-nothing"),he=new WeakMap,pe=K.createTreeWalker(K,129);function ue(e,t){if(!Array.isArray(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==j?j.createHTML(t):t}let me=class e{constructor({strings:t,_$litType$:i},o){let s;this.parts=[];let n=0,r=0;const a=t.length-1,l=this.parts,[d,c]=((e,t)=>{const i=e.length-1,o=[];let s,n=2===t?"<svg>":"",r=Q;for(let t=0;t<i;t++){const i=e[t];let a,l,d=-1,c=0;for(;c<i.length&&(r.lastIndex=c,l=r.exec(i),null!==l);)c=r.lastIndex,r===Q?"!--"===l[1]?r=ee:void 0!==l[1]?r=te:void 0!==l[2]?(ne.test(l[2])&&(s=RegExp("</"+l[2],"g")),r=ie):void 0!==l[3]&&(r=ie):r===ie?">"===l[0]?(r=s??Q,d=-1):void 0===l[1]?d=-2:(d=r.lastIndex-l[2].length,a=l[1],r=void 0===l[3]?ie:'"'===l[3]?se:oe):r===se||r===oe?r=ie:r===ee||r===te?r=Q:(r=ie,s=void 0);const h=r===ie&&e[t+1].startsWith("/>")?" ":"";n+=r===Q?i+G:d>=0?(o.push(a),i.slice(0,d)+V+i.slice(d)+q+h):i+q+(-2===d?t:h)}return[ue(e,n+(e[i]||"<?>")+(2===t?"</svg>":"")),o]})(t,i);if(this.el=e.createElement(d,o),pe.currentNode=this.el.content,2===i){const e=this.el.content.firstChild;e.replaceWith(...e.childNodes)}for(;null!==(s=pe.nextNode())&&l.length<a;){if(1===s.nodeType){if(s.hasAttributes())for(const e of s.getAttributeNames())if(e.endsWith(V)){const t=c[r++],i=s.getAttribute(e).split(q),o=/([.?@])?(.*)/.exec(t);l.push({type:1,index:n,name:o[2],strings:i,ctor:"."===o[1]?be:"?"===o[1]?ye:"@"===o[1]?xe:ve}),s.removeAttribute(e)}else e.startsWith(q)&&(l.push({type:6,index:n}),s.removeAttribute(e));if(ne.test(s.tagName)){const e=s.textContent.split(q),t=e.length-1;if(t>0){s.textContent=F?F.emptyScript:"";for(let i=0;i<t;i++)s.append(e[i],X()),pe.nextNode(),l.push({type:2,index:++n});s.append(e[t],X())}}}else if(8===s.nodeType)if(s.data===W)l.push({type:2,index:n});else{let e=-1;for(;-1!==(e=s.data.indexOf(q,e+1));)l.push({type:7,index:n}),e+=q.length-1}n++}}static createElement(e,t){const i=K.createElement("template");return i.innerHTML=e,i}};function ge(e,t,i=e,o){if(t===de)return t;let s=void 0!==o?i._$Co?.[o]:i._$Cl;const n=Y(t)?void 0:t._$litDirective$;return s?.constructor!==n&&(s?._$AO?.(!1),void 0===n?s=void 0:(s=new n(e),s._$AT(e,i,o)),void 0!==o?(i._$Co??=[])[o]=s:i._$Cl=s),void 0!==s&&(t=ge(e,s._$AS(e,t.values),s,o)),t}let fe=class{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){const{el:{content:t},parts:i}=this._$AD,o=(e?.creationScope??K).importNode(t,!0);pe.currentNode=o;let s=pe.nextNode(),n=0,r=0,a=i[0];for(;void 0!==a;){if(n===a.index){let t;2===a.type?t=new _e(s,s.nextSibling,this,e):1===a.type?t=new a.ctor(s,a.name,a.strings,this,e):6===a.type&&(t=new we(s,this,e)),this._$AV.push(t),a=i[++r]}n!==a?.index&&(s=pe.nextNode(),n++)}return pe.currentNode=K,o}p(e){let t=0;for(const i of this._$AV)void 0!==i&&(void 0!==i.strings?(i._$AI(e,i,t),t+=i.strings.length-2):i._$AI(e[t])),t++}},_e=class e{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,t,i,o){this.type=2,this._$AH=ce,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=i,this.options=o,this._$Cv=o?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode;const t=this._$AM;return void 0!==t&&11===e?.nodeType&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=ge(this,e,t),Y(e)?e===ce||null==e||""===e?(this._$AH!==ce&&this._$AR(),this._$AH=ce):e!==this._$AH&&e!==de&&this._(e):void 0!==e._$litType$?this.$(e):void 0!==e.nodeType?this.T(e):(e=>J(e)||"function"==typeof e?.[Symbol.iterator])(e)?this.k(e):this._(e)}S(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.S(e))}_(e){this._$AH!==ce&&Y(this._$AH)?this._$AA.nextSibling.data=e:this.T(K.createTextNode(e)),this._$AH=e}$(e){const{values:t,_$litType$:i}=e,o="number"==typeof i?this._$AC(e):(void 0===i.el&&(i.el=me.createElement(ue(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===o)this._$AH.p(t);else{const e=new fe(o,this),i=e.u(this.options);e.p(t),this.T(i),this._$AH=e}}_$AC(e){let t=he.get(e.strings);return void 0===t&&he.set(e.strings,t=new me(e)),t}k(t){J(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let o,s=0;for(const n of t)s===i.length?i.push(o=new e(this.S(X()),this.S(X()),this,this.options)):o=i[s],o._$AI(n),s++;s<i.length&&(this._$AR(o&&o._$AB.nextSibling,s),i.length=s)}_$AR(e=this._$AA.nextSibling,t){for(this._$AP?.(!1,!0,t);e&&e!==this._$AB;){const t=e.nextSibling;e.remove(),e=t}}setConnected(e){void 0===this._$AM&&(this._$Cv=e,this._$AP?.(e))}},ve=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,i,o,s){this.type=1,this._$AH=ce,this._$AN=void 0,this.element=e,this.name=t,this._$AM=o,this.options=s,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=ce}_$AI(e,t=this,i,o){const s=this.strings;let n=!1;if(void 0===s)e=ge(this,e,t,0),n=!Y(e)||e!==this._$AH&&e!==de,n&&(this._$AH=e);else{const o=e;let r,a;for(e=s[0],r=0;r<s.length-1;r++)a=ge(this,o[i+r],t,r),a===de&&(a=this._$AH[r]),n||=!Y(a)||a!==this._$AH[r],a===ce?e=ce:e!==ce&&(e+=(a??"")+s[r+1]),this._$AH[r]=a}n&&!o&&this.j(e)}j(e){e===ce?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},be=class extends ve{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===ce?void 0:e}},ye=class extends ve{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==ce)}},xe=class extends ve{constructor(e,t,i,o,s){super(e,t,i,o,s),this.type=5}_$AI(e,t=this){if((e=ge(this,e,t,0)??ce)===de)return;const i=this._$AH,o=e===ce&&i!==ce||e.capture!==i.capture||e.once!==i.once||e.passive!==i.passive,s=e!==ce&&(i===ce||o);o&&this.element.removeEventListener(this.name,this,i),s&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},we=class{constructor(e,t,i){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(e){ge(this,e)}};const $e=B.litHtmlPolyfillSupport;$e?.(me,_e),(B.litHtmlVersions??=[]).push("3.1.3");const Ae=(e,t,i)=>{const o=i?.renderBefore??t;let s=o._$litPart$;if(void 0===s){const e=i?.renderBefore??null;o._$litPart$=s=new _e(t.insertBefore(X(),e),e,void 0,i??{})}return s._$AI(e),s
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */};let ke=class extends z{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const e=super.createRenderRoot();return this.renderOptions.renderBefore??=e.firstChild,e}update(e){const t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=Ae(t,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return de}};ke._$litElement$=!0,ke.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:ke});const Ee=globalThis.litElementPolyfillSupport;Ee?.({LitElement:ke}),(globalThis.litElementVersions??=[]).push("4.0.5");
/**
 @license
 Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
 This code may only be used under the BSD style license found at
 http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
 http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
 found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
 part of the polymer project is also subject to an additional IP rights grant
 found at http://polymer.github.io/PATENTS.txt
 */
const Se=A`
    /* Most common used flex styles*/
    .layout.horizontal,
    .layout.vertical {
      display: -ms-flexbox;
      display: -webkit-flex;
      display: flex;
    }

    .layout.inline {
      display: -ms-inline-flexbox;
      display: -webkit-inline-flex;
      display: inline-flex;
    }

    .layout.horizontal {
      -ms-flex-direction: row;
      -webkit-flex-direction: row;
      flex-direction: row;
    }

    .layout.vertical {
      -ms-flex-direction: column;
      -webkit-flex-direction: column;
      flex-direction: column;
    }

    .layout.wrap {
      -ms-flex-wrap: wrap;
      -webkit-flex-wrap: wrap;
      flex-wrap: wrap;
    }

    .layout.no-wrap {
      -ms-flex-wrap: nowrap;
      -webkit-flex-wrap: nowrap;
      flex-wrap: nowrap;
    }

    .layout.center,
    .layout.center-center {
      -ms-flex-align: center;
      -webkit-align-items: center;
      align-items: center;
    }

    .layout.center-justified,
    .layout.center-center {
      -ms-flex-pack: center;
      -webkit-justify-content: center;
      justify-content: center;
    }

    .flex {
      -ms-flex: 1 1 0.000000001px;
      -webkit-flex: 1;
      flex: 1;
      -webkit-flex-basis: 0.000000001px;
      flex-basis: 0.000000001px;
    }

    .flex-auto {
      -ms-flex: 1 1 auto;
      -webkit-flex: 1 1 auto;
      flex: 1 1 auto;
    }

    .flex-none {
      -ms-flex: none;
      -webkit-flex: none;
      flex: none;
    }
  `,Ce=A`
    .layout.horizontal-reverse,
    .layout.vertical-reverse {
      display: -ms-flexbox;
      display: -webkit-flex;
      display: flex;
    }

    .layout.horizontal-reverse {
      -ms-flex-direction: row-reverse;
      -webkit-flex-direction: row-reverse;
      flex-direction: row-reverse;
    }

    .layout.vertical-reverse {
      -ms-flex-direction: column-reverse;
      -webkit-flex-direction: column-reverse;
      flex-direction: column-reverse;
    }

    .layout.wrap-reverse {
      -ms-flex-wrap: wrap-reverse;
      -webkit-flex-wrap: wrap-reverse;
      flex-wrap: wrap-reverse;
    }
  `,Te=A`
    /**
     * Alignment in cross axis.
     */
    .layout.start {
      -ms-flex-align: start;
      -webkit-align-items: flex-start;
      align-items: flex-start;
    }

    .layout.center,
    .layout.center-center {
      -ms-flex-align: center;
      -webkit-align-items: center;
      align-items: center;
    }

    .layout.end {
      -ms-flex-align: end;
      -webkit-align-items: flex-end;
      align-items: flex-end;
    }

    .layout.baseline {
      -ms-flex-align: baseline;
      -webkit-align-items: baseline;
      align-items: baseline;
    }

    /**
     * Alignment in main axis.
     */
    .layout.start-justified {
      -ms-flex-pack: start;
      -webkit-justify-content: flex-start;
      justify-content: flex-start;
    }

    .layout.center-justified,
    .layout.center-center {
      -ms-flex-pack: center;
      -webkit-justify-content: center;
      justify-content: center;
    }

    .layout.end-justified {
      -ms-flex-pack: end;
      -webkit-justify-content: flex-end;
      justify-content: flex-end;
    }

    .layout.around-justified {
      -ms-flex-pack: distribute;
      -webkit-justify-content: space-around;
      justify-content: space-around;
    }

    .layout.justified {
      -ms-flex-pack: justify;
      -webkit-justify-content: space-between;
      justify-content: space-between;
    }

    /**
     * Self alignment.
     */
    .self-start {
      -ms-align-self: flex-start;
      -webkit-align-self: flex-start;
      align-self: flex-start;
    }

    .self-center {
      -ms-align-self: center;
      -webkit-align-self: center;
      align-self: center;
    }

    .self-end {
      -ms-align-self: flex-end;
      -webkit-align-self: flex-end;
      align-self: flex-end;
    }

    .self-stretch {
      -ms-align-self: stretch;
      -webkit-align-self: stretch;
      align-self: stretch;
    }

    .self-baseline {
      -ms-align-self: baseline;
      -webkit-align-self: baseline;
      align-self: baseline;
    }

    /**
     * multi-line alignment in main axis.
     */
    .layout.start-aligned {
      -ms-flex-line-pack: start; /* IE10 */
      -ms-align-content: flex-start;
      -webkit-align-content: flex-start;
      align-content: flex-start;
    }

    .layout.end-aligned {
      -ms-flex-line-pack: end; /* IE10 */
      -ms-align-content: flex-end;
      -webkit-align-content: flex-end;
      align-content: flex-end;
    }

    .layout.center-aligned {
      -ms-flex-line-pack: center; /* IE10 */
      -ms-align-content: center;
      -webkit-align-content: center;
      align-content: center;
    }

    .layout.between-aligned {
      -ms-flex-line-pack: justify; /* IE10 */
      -ms-align-content: space-between;
      -webkit-align-content: space-between;
      align-content: space-between;
    }

    .layout.around-aligned {
      -ms-flex-line-pack: distribute; /* IE10 */
      -ms-align-content: space-around;
      -webkit-align-content: space-around;
      align-content: space-around;
    }
  `,Pe=A`
    .flex,
    .flex-1 {
      -ms-flex: 1 1 0.000000001px;
      -webkit-flex: 1;
      flex: 1;
      -webkit-flex-basis: 0.000000001px;
      flex-basis: 0.000000001px;
    }

    .flex-2 {
      -ms-flex: 2;
      -webkit-flex: 2;
      flex: 2;
    }

    .flex-3 {
      -ms-flex: 3;
      -webkit-flex: 3;
      flex: 3;
    }

    .flex-4 {
      -ms-flex: 4;
      -webkit-flex: 4;
      flex: 4;
    }

    .flex-5 {
      -ms-flex: 5;
      -webkit-flex: 5;
      flex: 5;
    }

    .flex-6 {
      -ms-flex: 6;
      -webkit-flex: 6;
      flex: 6;
    }

    .flex-7 {
      -ms-flex: 7;
      -webkit-flex: 7;
      flex: 7;
    }

    .flex-8 {
      -ms-flex: 8;
      -webkit-flex: 8;
      flex: 8;
    }

    .flex-9 {
      -ms-flex: 9;
      -webkit-flex: 9;
      flex: 9;
    }

    .flex-10 {
      -ms-flex: 10;
      -webkit-flex: 10;
      flex: 10;
    }

    .flex-11 {
      -ms-flex: 11;
      -webkit-flex: 11;
      flex: 11;
    }

    .flex-12 {
      -ms-flex: 12;
      -webkit-flex: 12;
      flex: 12;
    }
  `,Ie=A`
    .block {
      display: block;
    }

    [hidden] {
      display: none !important;
    }

    .invisible {
      visibility: hidden !important;
    }

    .relative {
      position: relative;
    }

    .fit {
      position: absolute;
      top: 0;
      right: 0;
      bottom: 0;
      left: 0;
    }

    body.fullbleed {
      margin: 0;
      height: 100vh;
    }

    .scroll {
      -webkit-overflow-scrolling: touch;
      overflow: auto;
    }

    /* fixed position */
    .fixed-bottom,
    .fixed-left,
    .fixed-right,
    .fixed-top {
      position: fixed;
    }

    .fixed-top {
      top: 0;
      left: 0;
      right: 0;
    }

    .fixed-right {
      top: 0;
      right: 0;
      bottom: 0;
    }

    .fixed-bottom {
      right: 0;
      bottom: 0;
      left: 0;
    }

    .fixed-left {
      top: 0;
      bottom: 0;
      left: 0;
    }
  `
/**
 @license
 Copyright (c) 2015-2024 Lablup Inc. All rights reserved.
 */,Oe={page:"",params:{},offline:!1,drawerOpened:!1,offlineIndicatorOpened:!1};function Re(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var Ne=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")(),Le=()=>Math.random().toString(36).substring(7).split("").join("."),Me={INIT:`@@redux/INIT${Le()}`,REPLACE:`@@redux/REPLACE${Le()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Le()}`};function Ue(...e){return 0===e.length?e=>e:1===e.length?e[0]:e.reduce(((e,t)=>(...i)=>e(t(...i))))}var He,De=({dispatch:e,getState:t})=>i=>o=>"function"==typeof o?o(e,t,He):i(o);
/**
 @license
 Copyright (c) 2015-2024 Lablup Inc. All rights reserved.
 */const ze=function e(t,i,o){if("function"!=typeof t)throw new Error(Re(2));if("function"==typeof i&&"function"==typeof o||"function"==typeof o&&"function"==typeof arguments[3])throw new Error(Re(0));if("function"==typeof i&&void 0===o&&(o=i,i=void 0),void 0!==o){if("function"!=typeof o)throw new Error(Re(1));return o(e)(t,i)}let s=t,n=i,r=new Map,a=r,l=0,d=!1;function c(){a===r&&(a=new Map,r.forEach(((e,t)=>{a.set(t,e)})))}function h(){if(d)throw new Error(Re(3));return n}function p(e){if("function"!=typeof e)throw new Error(Re(4));if(d)throw new Error(Re(5));let t=!0;c();const i=l++;return a.set(i,e),function(){if(t){if(d)throw new Error(Re(6));t=!1,c(),a.delete(i),r=null}}}function u(e){if(!function(e){if("object"!=typeof e||null===e)return!1;let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||null===Object.getPrototypeOf(e)}(e))throw new Error(Re(7));if(void 0===e.type)throw new Error(Re(8));if("string"!=typeof e.type)throw new Error(Re(17));if(d)throw new Error(Re(9));try{d=!0,n=s(n,e)}finally{d=!1}return(r=a).forEach((e=>{e()})),e}u({type:Me.INIT});const m={dispatch:u,subscribe:p,getState:h,replaceReducer:function(e){if("function"!=typeof e)throw new Error(Re(10));s=e,u({type:Me.REPLACE})},[Ne]:function(){const e=p;return{subscribe(t){if("object"!=typeof t||null===t)throw new Error(Re(11));function i(){const e=t;e.next&&e.next(h())}i();return{unsubscribe:e(i)}},[Ne](){return this}}}};return m}((e=>e),(window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__||Ue)((e=>t=>(i,o)=>{let s={};const n=t(i,o);return Object.assign({},n,{addReducers(t){const i=Object.assign({},s,t);this.replaceReducer(e(s=i))}})})((function(e){const t=Object.keys(e),i={};for(let o=0;o<t.length;o++){const s=t[o];"function"==typeof e[s]&&(i[s]=e[s])}const o=Object.keys(i);let s;try{!function(e){Object.keys(e).forEach((t=>{const i=e[t];if(void 0===i(void 0,{type:Me.INIT}))throw new Error(Re(12));if(void 0===i(void 0,{type:Me.PROBE_UNKNOWN_ACTION()}))throw new Error(Re(13))}))}(i)}catch(e){s=e}return function(e={},t){if(s)throw s;let n=!1;const r={};for(let s=0;s<o.length;s++){const a=o[s],l=i[a],d=e[a],c=l(d,t);if(void 0===c)throw t&&t.type,new Error(Re(14));r[a]=c,n=n||c!==d}return n=n||o.length!==Object.keys(e).length,n?r:e}})),function(...e){return t=>(i,o)=>{const s=t(i,o);let n=()=>{throw new Error(Re(15))};const r={getState:s.getState,dispatch:(e,...t)=>n(e,...t)},a=e.map((e=>e(r)));return n=Ue(...a)(s.dispatch),{...s,dispatch:n}}}(De)));ze.addReducers({app:(e=Oe,t)=>{switch(t.type){case a:return{...e,page:t.page,params:t.params};case l:return{...e,offline:t.offline};case d:return{...e,drawerOpened:t.opened};case c:return{...e,offlineIndicatorOpened:!0};case h:return{...e,offlineIndicatorOpened:!1};default:return e}}});
/**
 @license
 Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
 This code may only be used under the BSD style license found at
 http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
 http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
 found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
 part of the polymer project is also subject to an additional IP rights grant
 found at http://polymer.github.io/PATENTS.txt

 Modified for Backend.AI Console Project / Lit-element with TypeScript
 */
const Be=[A`
    :host > *,
    html {
      /* Material Design color palette for Google products */
      --google-red-100: #f4c7c3;
      --google-red-300: #e67c73;
      --google-red-500: #db4437;
      --google-red-700: #c53929;

      --google-blue-100: #c6dafc;
      --google-blue-300: #7baaf7;
      --google-blue-500: #4285f4;
      --google-blue-700: #3367d6;

      --google-green-100: #b7e1cd;
      --google-green-300: #57bb8a;
      --google-green-500: #0f9d58;
      --google-green-700: #0b8043;

      --google-yellow-100: #fce8b2;
      --google-yellow-300: #f7cb4d;
      --google-yellow-500: #f4b400;
      --google-yellow-700: #f09300;

      --google-grey-100: #f5f5f5;
      --google-grey-300: #e0e0e0;
      --google-grey-500: #9e9e9e;
      --google-grey-700: #616161;

      /* Material Design color palette from online spec document */

      --paper-red-50: #ffebee;
      --paper-red-100: #ffcdd2;
      --paper-red-200: #ef9a9a;
      --paper-red-300: #e57373;
      --paper-red-400: #ef5350;
      --paper-red-500: #f44336;
      --paper-red-600: #e53935;
      --paper-red-700: #d32f2f;
      --paper-red-800: #c62828;
      --paper-red-900: #b71c1c;
      --paper-red-a100: #ff8a80;
      --paper-red-a200: #ff5252;
      --paper-red-a400: #ff1744;
      --paper-red-a700: #d50000;

      --paper-pink-50: #fce4ec;
      --paper-pink-100: #f8bbd0;
      --paper-pink-200: #f48fb1;
      --paper-pink-300: #f06292;
      --paper-pink-400: #ec407a;
      --paper-pink-500: #e91e63;
      --paper-pink-600: #d81b60;
      --paper-pink-700: #c2185b;
      --paper-pink-800: #ad1457;
      --paper-pink-900: #880e4f;
      --paper-pink-a100: #ff80ab;
      --paper-pink-a200: #ff4081;
      --paper-pink-a400: #f50057;
      --paper-pink-a700: #c51162;

      --paper-purple-50: #f3e5f5;
      --paper-purple-100: #e1bee7;
      --paper-purple-200: #ce93d8;
      --paper-purple-300: #ba68c8;
      --paper-purple-400: #ab47bc;
      --paper-purple-500: #9c27b0;
      --paper-purple-600: #8e24aa;
      --paper-purple-700: #7b1fa2;
      --paper-purple-800: #6a1b9a;
      --paper-purple-900: #4a148c;
      --paper-purple-a100: #ea80fc;
      --paper-purple-a200: #e040fb;
      --paper-purple-a400: #d500f9;
      --paper-purple-a700: #aa00ff;

      --paper-deep-purple-50: #ede7f6;
      --paper-deep-purple-100: #d1c4e9;
      --paper-deep-purple-200: #b39ddb;
      --paper-deep-purple-300: #9575cd;
      --paper-deep-purple-400: #7e57c2;
      --paper-deep-purple-500: #673ab7;
      --paper-deep-purple-600: #5e35b1;
      --paper-deep-purple-700: #512da8;
      --paper-deep-purple-800: #4527a0;
      --paper-deep-purple-900: #311b92;
      --paper-deep-purple-a100: #b388ff;
      --paper-deep-purple-a200: #7c4dff;
      --paper-deep-purple-a400: #651fff;
      --paper-deep-purple-a700: #6200ea;

      --paper-indigo-50: #e8eaf6;
      --paper-indigo-100: #c5cae9;
      --paper-indigo-200: #9fa8da;
      --paper-indigo-300: #7986cb;
      --paper-indigo-400: #5c6bc0;
      --paper-indigo-500: #3f51b5;
      --paper-indigo-600: #3949ab;
      --paper-indigo-700: #303f9f;
      --paper-indigo-800: #283593;
      --paper-indigo-900: #1a237e;
      --paper-indigo-a100: #8c9eff;
      --paper-indigo-a200: #536dfe;
      --paper-indigo-a400: #3d5afe;
      --paper-indigo-a700: #304ffe;

      --paper-blue-50: #e3f2fd;
      --paper-blue-100: #bbdefb;
      --paper-blue-200: #90caf9;
      --paper-blue-300: #64b5f6;
      --paper-blue-400: #42a5f5;
      --paper-blue-500: #2196f3;
      --paper-blue-600: #1e88e5;
      --paper-blue-700: #1976d2;
      --paper-blue-800: #1565c0;
      --paper-blue-900: #0d47a1;
      --paper-blue-a100: #82b1ff;
      --paper-blue-a200: #448aff;
      --paper-blue-a400: #2979ff;
      --paper-blue-a700: #2962ff;

      --paper-light-blue-50: #e1f5fe;
      --paper-light-blue-100: #b3e5fc;
      --paper-light-blue-200: #81d4fa;
      --paper-light-blue-300: #4fc3f7;
      --paper-light-blue-400: #29b6f6;
      --paper-light-blue-500: #03a9f4;
      --paper-light-blue-600: #039be5;
      --paper-light-blue-700: #0288d1;
      --paper-light-blue-800: #0277bd;
      --paper-light-blue-900: #01579b;
      --paper-light-blue-a100: #80d8ff;
      --paper-light-blue-a200: #40c4ff;
      --paper-light-blue-a400: #00b0ff;
      --paper-light-blue-a700: #0091ea;

      --paper-cyan-50: #e0f7fa;
      --paper-cyan-100: #b2ebf2;
      --paper-cyan-200: #80deea;
      --paper-cyan-300: #4dd0e1;
      --paper-cyan-400: #26c6da;
      --paper-cyan-500: #00bcd4;
      --paper-cyan-600: #00acc1;
      --paper-cyan-700: #0097a7;
      --paper-cyan-800: #00838f;
      --paper-cyan-900: #006064;
      --paper-cyan-a100: #84ffff;
      --paper-cyan-a200: #18ffff;
      --paper-cyan-a400: #00e5ff;
      --paper-cyan-a700: #00b8d4;

      --paper-teal-50: #e0f2f1;
      --paper-teal-100: #b2dfdb;
      --paper-teal-200: #80cbc4;
      --paper-teal-300: #4db6ac;
      --paper-teal-400: #26a69a;
      --paper-teal-500: #009688;
      --paper-teal-600: #00897b;
      --paper-teal-700: #00796b;
      --paper-teal-800: #00695c;
      --paper-teal-900: #004d40;
      --paper-teal-a100: #a7ffeb;
      --paper-teal-a200: #64ffda;
      --paper-teal-a400: #1de9b6;
      --paper-teal-a700: #00bfa5;

      --paper-green-50: #e8f5e9;
      --paper-green-100: #c8e6c9;
      --paper-green-200: #a5d6a7;
      --paper-green-300: #81c784;
      --paper-green-400: #66bb6a;
      --paper-green-500: #4caf50;
      --paper-green-600: #43a047;
      --paper-green-700: #388e3c;
      --paper-green-800: #2e7d32;
      --paper-green-900: #1b5e20;
      --paper-green-a100: #b9f6ca;
      --paper-green-a200: #69f0ae;
      --paper-green-a400: #00e676;
      --paper-green-a700: #00c853;

      --paper-light-green-50: #f1f8e9;
      --paper-light-green-100: #dcedc8;
      --paper-light-green-200: #c5e1a5;
      --paper-light-green-300: #aed581;
      --paper-light-green-400: #9ccc65;
      --paper-light-green-500: #8bc34a;
      --paper-light-green-600: #7cb342;
      --paper-light-green-700: #689f38;
      --paper-light-green-800: #558b2f;
      --paper-light-green-900: #33691e;
      --paper-light-green-a100: #ccff90;
      --paper-light-green-a200: #b2ff59;
      --paper-light-green-a400: #76ff03;
      --paper-light-green-a700: #64dd17;

      --paper-lime-50: #f9fbe7;
      --paper-lime-100: #f0f4c3;
      --paper-lime-200: #e6ee9c;
      --paper-lime-300: #dce775;
      --paper-lime-400: #d4e157;
      --paper-lime-500: #cddc39;
      --paper-lime-600: #c0ca33;
      --paper-lime-700: #afb42b;
      --paper-lime-800: #9e9d24;
      --paper-lime-900: #827717;
      --paper-lime-a100: #f4ff81;
      --paper-lime-a200: #eeff41;
      --paper-lime-a400: #c6ff00;
      --paper-lime-a700: #aeea00;

      --paper-yellow-50: #fffde7;
      --paper-yellow-100: #fff9c4;
      --paper-yellow-200: #fff59d;
      --paper-yellow-300: #fff176;
      --paper-yellow-400: #ffee58;
      --paper-yellow-500: #ffeb3b;
      --paper-yellow-600: #fdd835;
      --paper-yellow-700: #fbc02d;
      --paper-yellow-800: #f9a825;
      --paper-yellow-900: #f57f17;
      --paper-yellow-a100: #ffff8d;
      --paper-yellow-a200: #ffff00;
      --paper-yellow-a400: #ffea00;
      --paper-yellow-a700: #ffd600;

      --paper-amber-50: #fff8e1;
      --paper-amber-100: #ffecb3;
      --paper-amber-200: #ffe082;
      --paper-amber-300: #ffd54f;
      --paper-amber-400: #ffca28;
      --paper-amber-500: #ffc107;
      --paper-amber-600: #ffb300;
      --paper-amber-700: #ffa000;
      --paper-amber-800: #ff8f00;
      --paper-amber-900: #ff6f00;
      --paper-amber-a100: #ffe57f;
      --paper-amber-a200: #ffd740;
      --paper-amber-a400: #ffc400;
      --paper-amber-a700: #ffab00;

      --paper-orange-50: #fff3e0;
      --paper-orange-100: #ffe0b2;
      --paper-orange-200: #ffcc80;
      --paper-orange-300: #ffb74d;
      --paper-orange-400: #ffa726;
      --paper-orange-500: #ff9800;
      --paper-orange-600: #fb8c00;
      --paper-orange-700: #f57c00;
      --paper-orange-800: #ef6c00;
      --paper-orange-900: #e65100;
      --paper-orange-a100: #ffd180;
      --paper-orange-a200: #ffab40;
      --paper-orange-a400: #ff9100;
      --paper-orange-a700: #ff6500;

      --paper-deep-orange-50: #fbe9e7;
      --paper-deep-orange-100: #ffccbc;
      --paper-deep-orange-200: #ffab91;
      --paper-deep-orange-300: #ff8a65;
      --paper-deep-orange-400: #ff7043;
      --paper-deep-orange-500: #ff5722;
      --paper-deep-orange-600: #f4511e;
      --paper-deep-orange-700: #e64a19;
      --paper-deep-orange-800: #d84315;
      --paper-deep-orange-900: #bf360c;
      --paper-deep-orange-a100: #ff9e80;
      --paper-deep-orange-a200: #ff6e40;
      --paper-deep-orange-a400: #ff3d00;
      --paper-deep-orange-a700: #dd2c00;

      --paper-brown-50: #efebe9;
      --paper-brown-100: #d7ccc8;
      --paper-brown-200: #bcaaa4;
      --paper-brown-300: #a1887f;
      --paper-brown-400: #8d6e63;
      --paper-brown-500: #795548;
      --paper-brown-600: #6d4c41;
      --paper-brown-700: #5d4037;
      --paper-brown-800: #4e342e;
      --paper-brown-900: #3e2723;

      --paper-grey-50: #fafafa;
      --paper-grey-100: #f5f5f5;
      --paper-grey-200: #eeeeee;
      --paper-grey-300: #e0e0e0;
      --paper-grey-400: #bdbdbd;
      --paper-grey-500: #9e9e9e;
      --paper-grey-600: #757575;
      --paper-grey-700: #616161;
      --paper-grey-800: #424242;
      --paper-grey-900: #212121;

      --paper-blue-grey-50: #eceff1;
      --paper-blue-grey-100: #cfd8dc;
      --paper-blue-grey-200: #b0bec5;
      --paper-blue-grey-300: #90a4ae;
      --paper-blue-grey-400: #78909c;
      --paper-blue-grey-500: #607d8b;
      --paper-blue-grey-600: #546e7a;
      --paper-blue-grey-700: #455a64;
      --paper-blue-grey-800: #37474f;
      --paper-blue-grey-900: #263238;

      /* opacity for dark text on a light background */
      --dark-divider-opacity: 0.12;
      --dark-disabled-opacity: 0.38; /* or hint text or icon */
      --dark-secondary-opacity: 0.54;
      --dark-primary-opacity: 0.87;

      /* opacity for light text on a dark background */
      --light-divider-opacity: 0.12;
      --light-disabled-opacity: 0.3; /* or hint text or icon */
      --light-secondary-opacity: 0.7;
      --light-primary-opacity: 1;
    }
  `,A`
    :host > *,
    html {
      -webkit-box-sizing: border-box;
      -moz-box-sizing: border-box;
      box-sizing: border-box;
      --general-menu-background-color: transparent;
      --general-menu-background-color-less: rgba(255, 255, 255, 0.6);
      --general-menu-background-border: var(
        --token-colorBorder,
        rgba(23, 23, 23, 1)
      );
      --general-menu-background-opacity: 1;
      --general-menu-color-2: #242424;
      --general-menu-color: #efefef;
      --general-navbar-footer-background-color-r: 255;
      --general-navbar-footer-background-color-g: 255;
      --general-navbar-footer-background-color-b: 255;
      --general-navbar-footer-background-color: #2a2c30;
      --general-navbar-footer-background-color-less: rgba(255, 255, 255, 0.6);
      --general-navbar-footer-background-border: var(
        --token-colorBorder,
        rgba(23, 23, 23, 1)
      );
      --general-navbar-footer-background-opacity: 1;
      --general-navbar-footer-color: #424242;
      --general-panel-width: 280px;
      --general-big-panel-width: 560px;
      --general-content-container-width: 980px;
      --general-background-color: var(
        --token-colorBgBase,
        rgba(247, 246, 246, 1)
      );
      --general-sidebar-color: var(--token-colorBorder, #949494);
      --general-sidebar-background-color: var(
        --general-background-color,
        #ffffff
      );
      --general-sidebar-h3-color: #cccccc;
      --general-sidebar-h3-border-color: 1px solid #444444;
      --general-sidebar-topbar-background-color-3: #383e48;
      --general-sidebar-topbar-background-color-2: rgba(103, 172, 91, 1);
      --general-sidebar-topbar-background-color-4: var(--paper-grey-200);
      --general-sidebar-topbar-color-4: #222222;
      --general-sidebar-topbar-background-color: rgba(24, 24, 24, 1);
      --general-sidebar-topbar-color: #efefef;
      --general-sidebar-selected-color: var(--token-colorPrimary, #37b076);
      --general-sidebar-selected-background-color: transparent;
      --general-sidebar-selected-background-gradient-color: transparent;
      --general-sidebar-selected-border-left: 3px solid
        var(--general-sidebar-selected-color);
      --general-sidebar-footer-color: #777777;
      --general-sidebar-navbar-footer-color: #222222;
      --general-sidebar-item-even-background-color: transparent;
      --general-sidebar-item-odd-background-color: rgba(239, 240, 242, 0.95);
      --general-sidepanel-color: #dddddd;
      --general-sidepanel-background-color: var(
        --general-background-color,
        #ffffff
      ); /*rgba(244, 245, 247, 1); rgba(48, 48, 48, 1.0);*/
      --general-tabbar-background-color: var(
        --token-colorBgContainer,
        --general-background-color
      );
      --general-tabbar-tab-disabled-color: var(--general-sidebar-color);
      --general-tabbar-button-color: rgba(103, 172, 91, 1);
      --general-sub-tabbar-background-color: var(
        --token-colorBgContainer,
        #ffffff
      );
      --general-textfield-selected-color: var(--general-primary-color, #27824f);
      --general-textfield-idle-color: var(--general-primary-color, #27824f);
      --general-dropdown-color: var(--general-sidebar-color);
      --general-checkbox-color: var(
        --token-colorPrimary,
        --general-textfield-selected-color
      );
      --general-textarea-color: var(
        --token-colorPrimary,
        --general-textfield-selected-color
      );
      --general-textarea-idle-color: var(
        --token-colorPrimary,
        --general-textfield-selected-color
      );
      --general-select-color: var(
        --token-colorPrimary,
        --general-textfield-selected-color
      );
      --general-select-idle-color: var(
        --token-colorPrimary,
        --general-textfield-selected-color
      );
      --general-button-background-color: var(--token-colorPrimary, #27824f);
      --general-button-color: var(
        --token-colorText,
        --general-background-color,
        #ffffff
      );
      --general-button-disabled-background-color: var(--token-colorSuccess);
      --general-button-disabled-color: var(--general-background-color, #ffffff);
      --general-switch-off-color: var(--token-colorBorder, #aaa);
      --general-switch-on-color: var(--token-colorPrimary);
      --general-switch-on-background-color: var(--general-primaryBg, #e3e7d8);
      --general-slider-color: var(
        --token-colorPrimary,
        --general-textfield-selected-color
      );
      --general-dialog-background-color: var(
        --token-colorBgContainer,
        --general-background-color,
        #ffffff
      );
      --token-fontFamily: 'Ubuntu', Roboto, -apple-system, BlinkMacSystemFont,
        'Segoe UI', Helvetica, Arial, 'Apple Color Emoji', 'Segoe UI Emoji',
        'Segoe UI Symbol', AppleSDGothic, 'Apple SD Gothic Neo', NanumGothic,
        'NanumGothicOTF', 'Nanum Gothic', 'Malgun Gothic', sans-serif;
      --general-monospace-font-family: 'Ubuntu Mono', Menlo, Courier,
        'Courier New', RobotoMono, sans-serif;
      --general-progress-bar-bg: var(--token-colorBorderSecondary, #e8e8e8);
      --general-progress-bar-reserved: var(--token-blue-7);
      --general-progress-bar-using: var(--token-green-7);
      --lumo-font-family: var(--token-fontFamily);
      --general-warning-text: var(--paper-red-400);

      /**
      * NOTE: For rendering dark theme of vaadin components, we need to set "theme='dark'" attribute to the vaadin components.
      *       e.g) <vaadin-grid theme="dark"></vaadin-grid> 
      */
      [theme~='dark'] {
        --lumo-primary-color: var(--token-colorPrimary);
        --lumo-secondary-text-color: var(--token-colorTextSecondary);
        --lumo-tertiary-text-color: var(--token-colorTextTertiary);
        --lumo-base-color: var(--token-colorBgContainer);
        --lumo-header-text-color: var(--token-colorText);
        --lumo-body-text-color: var(--token-colorText);
        --lumo-contrast-10pct: var(--token-colorBorder);
        --lumo-contrast-20pct: var(--token-colorBorder, #ccc);
      }
    }

    /* Scrollbar stylings */
    /* Define both web components and react for supporting electron mode */
    /* Works on Firefox */
    * {
      scrollbar-width: 2px;
      scrollbar-color: var(--token-colorBorderSecondary, #464646)
        var(--token-colorBgElevated, transparent);
    }

    /* Works on Chrome, Edge, and Safari */
    *::-webkit-scrollbar {
      max-width: 2px;
      background-color: var(--token-colorBgElevated, transparent);
    }

    *::-webkit-scrollbar-track {
      background: var(--token-colorBgElevated, transparent);
    }

    *::-webkit-scrollbar-thumb {
      background-color: var(--token-colorBorderSecondary, #464646);
    }

    body {
      background-color: var(--general-background-color, #fafafa);
      font-family: var(--token-fontFamily);
      --lumo-font-family: var(--token-fontFamily);
      font-weight: 400;
      font-size: 14px;
      color: var(--token-colorText);
      margin: 0;
      overflow-x: hidden;
      word-break: keep-all;
    }

    [unresolved] {
      background-repeat: no-repeat;
      background-position: 50% 50vh;
      background-color: var(--general-background-color, #fafafa);
    }

    span {
      pointer-events: none;
    }

    span[slot='secondary'] {
      color: var(--token-colorTextDescription);
    }

    body,
    .fonts-loaded body {
      font-family:
        'Ubuntu',
        Roboto,
        -apple-system,
        BlinkMacSystemFont,
        'Segoe UI',
        Helvetica,
        Arial,
        'Apple Color Emoji',
        'Segoe UI Emoji',
        'Segoe UI Symbol',
        'Noto Sans KR',
        'Noto Sans',
        AppleSDGothic,
        NanumGothic,
        'NanumGothicOTF',
        'Nanum Gothic',
        'Malgun Gothic',
        sans-serif;
    }

    section {
      padding: 5px 0;
    }

    a,
    a:visited {
      text-decoration: none;
      cursor: pointer;
      color: var(--token-colorLink);
    }

    a:hover {
      color: var(--token-colorLinkHover, #3e872d);
    }

    a.export-csv {
      color: var(--token-colorText);
    }

    fieldset {
      padding: 0;
      border: 0;
    }

    footer {
      bottom: 0;
      text-align: center;
      color: #aaaaaa;
    }

    footer a {
      color: #cccccc !important;
    }

    #content {
      padding: 0;
      margin: 0 auto 5px auto;
    }

    .monospace {
      font-family: var(--general-monospace-font-family);
    }

    .clearfix:after {
      content: '.';
      visibility: hidden;
      display: block;
      height: 0;
      clear: both;
    }

    div.ui-draggable {
      width: 100%;
    }

    .lazyload {
      opacity: 0;
      transform: scale(0.8);
    }

    .lazyloaded {
      opacity: 1;
      transform: scale(1);
      transition: all 400ms;
    }

    .paper-header {
      height: 60px;
      font-size: 16px;
      line-height: 60px;
      padding: 0 10px;
      color: var(--token-colorText, white);
      transition: height 0.2s;
    }

    .paper-header a {
      color: var(--token-colorText, white);
    }

    .paper-header.tall {
      height: 120px;
    }

    .paper-header.medium-tall {
      height: 100px;
      line-height: 50px;
    }

    .cover {
      margin: 60px;
    }

    backend-ai-multi-select {
      /* override for mwc-list */
      --select-primary-theme: var(
        --token-colorPrimary,
        --general-sidebar-color
      );
      --select-secondary-theme: var(--general-checkbox-color);
      --select-color: var(--token-colorText);
      --select-background-color: var(
        --token-colorBgElevated,
        --general-background-color,
        #efefef
      );
      --select-background-border-radius: 5px;
      --select-box-shadow: var(
        --token-boxShadow,
        0 1px 3px -1px rgba(0, 0, 0, 60%),
        0 3px 12px -1px rgb(200, 200, 200, 80%)
      );
      --selected-item-disabled-text-color: var(--token-colorTextDisabled);

      /* override for selected-area */
      --select-title-font-size: 10px;
      --selected-area-border-radius: var(--token-borderRadius, 5px);
      --selected-area-border: none;
      --selected-area-padding: 5px;
      --selected-area-min-height: 24px;
      --selected-area-height: 100%;

      /* override for selected-item */
      --selected-item-font-family: var(--token-fontFamily);
      --selected-item-theme-color: #c8ced7;
      --selected-item-theme-font-color: #182739;
      --selected-item-unelevated-theme-color: #c8ced7;
      --selected-item-unelevated-theme-color: #c8ced7;
      --selected-item-outlined-theme-font-color: black;
      --selected-item-unelevated-theme-font-color: black;
      --selected-item-font-size: 14px;
      --selected-item-text-transform: none;
    }

    div.card {
      display: block;
      background: var(--general-background-color);
      box-sizing: border-box;
      padding: 0;
      border-radius: 2px;
    }

    #content > div.card {
      max-width: var(--general-content-container-width, 980px);
    }

    @media screen and (max-width: 399px) {
      div.card {
        margin-left: 0;
        margin-right: 0;
      }
    }

    @media screen and (max-width: 449px) {
      #content > div.card {
        width: 100%;
      }
    }

    @media screen and (min-width: 450px) {
      #content > div,
      #content > div.card {
        width: 100%;
        --card-elevation: 0;
        --card-padding: 0;
      }

      #content > div.card {
        margin: 0 !important;
      }
    }

    @media screen and (max-width: 899px) {
      .item div.layout {
        -ms-flex-pack: center;
        -webkit-justify-content: center;
        justify-content: center;
      }
    }

    mwc-multi-select {
      --mdc-select-min-width: 100px; /* Fallback to apply width */
    }

    mwc-button.primary-action,
    mwc-button.primary-action[outlined],
    mwc-button.primary-action[raised],
    mwc-button.primary-action[unelevated] {
      border-radius: 5px;
      background-color: var(--token-colorPrimary);
      --mdc-theme-primary: var(
        --token-colorWhite,
        --general-button-color
      ); /* gradient-color doesn't work in mwc-button styling */
      --mdc-theme-on-primary: var(--token-colorWhite, --general-button-color);
    }

    mwc-button.primary-action[disabled] {
      border: 1px solid var(--token-colorBorder, #424242);
      border-radius: 5px;
      background-color: var(--token-colorBgContainerDisabled,);
      --mdc-theme-primary: var(
        --token-colorWhite,
        --general-button-color
      ); /* gradient-color doesn't work in mwc-button styling */
      --mdc-theme-on-primary: var(--token-colorWhite, --general-button-color);
    }

    mwc-button.operation {
      margin: 0px 5px;
    }

    mwc-icon {
      color: var(--token-colorText);
    }

    mwc-icon-button.pagination {
      --mdc-icon-button-size: 30px;
      --mdc-theme-text-disabled-on-light: var(
        --token-colorTextDisabled,
        --paper-grey-400
      );
      color: var(--token-colorText);
      box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.2);
      border-radius: 5px;
    }

    mwc-icon-button[disabled].pagination {
      background-color: var(
        --token-colorBgContainer,
        --var-color-bg-container-disabled,
        --paper-grey-100
      );
    }

    mwc-list-item,
    mwc-list mwc-list-item {
      font-size: var(--token-fontSize, 14px);
      font-family: var(--token-fontFamily);
      color: var(--token-colorText);
      background-color: var(--token-colorBgContainer);
      --mdc-typography-font-family: var(--token-fontFamily);
    }

    mwc-menu {
      --mdc-theme-surface: var(--token-colorBgContainer);
      --mdc-menu-item-height: auto;
    }

    mwc-switch {
      --mdc-switch-unselected-handle-color: var(--general-switch-off-color);
      --mdc-switch-unselected-track-color: var(
        --general-switch-on-background-color
      ) !important;
      --mdc-switch-unselected-hover-handle-color: var(
        --general-switch-off-color
      );
      --mdc-switch-unselected-hover-track-color: var(
        --general-switch-on-background-color
      );
      --mdc-switch-unselected-focus-handle-color: var(
        --general-switch-off-color
      );
      --mdc-switch-unselected-focus-track-color: var(
        --general-switch-on-background-color
      );
      --mdc-switch-unselected-pressed-handle-color: var(
        --general-switch-off-color
      );
      --mdc-switch-unselected-pressed-track-color: var(
        --general-switch-on-background-color
      );
      --mdc-switch-selected-handle-color: var(--general-switch-on-color);
      --mdc-switch-selected-track-color: var(
        --general-switch-on-background-color
      ) !important;
      --mdc-switch-selected-hover-handle-color: var(--general-switch-on-color);
      --mdc-switch-selected-hover-track-color: var(
        --general-switch-on-background-color
      );
      --mdc-switch-selected-hover-state-layer-color: var(
        --general-switch-on-color
      );
      --mdc-switch-selected-focus-handle-color: var(--general-switch-on-color);
      --mdc-switch-selected-focus-track-color: var(
        --general-switch-on-background-color
      );
      --mdc-switch-selected-focus-state-layer-color: var(
        --general-switch-on-color
      );
      --mdc-switch-selected-pressed-handle-color: var(
        --general-switch-on-color
      );
      --mdc-switch-selected-pressed-track-color: var(
        --general-switch-on-background-color
      );
      --mdc-switch-selected-pressed-state-layer-color: var(
        --general-switch-on-color
      );
    }

    mwc-switch[disabled] {
      --mdc-switch-disabled-selected-handle-color: var(
        --general-switch-on-color
      );
      --mdc-switch-disabled-selected-track-color: var(
        --general-switch-on-color
      ) !important;
      --mdc-switch-disabled-unselected-track-color: var(--token-colorText);
    }

    mwc-checkbox,
    mwc-check-list-item {
      --mdc-theme-secondary: var(--token-colorPrimary);
      --mdc-checkbox-unchecked-color: var(--token-colorBorder);
    }

    mwc-slider {
      --mdc-theme-on-surface: var(--token-colorTextDisabled);
    }

    div.card p {
      padding: 10px;
    }

    div.card > .entry > p {
      padding: 5px;
    }

    div.card .commands {
      margin: 0;
      border-top: 1px solid var(--token-colorBorder, #dddddd);
      text-align: left;
    }

    div.card.item div.items {
      padding-bottom: 10px;
    }

    div.card .commands.float {
      border-top: none;
      position: fixed;
      right: 0;
      bottom: 0;
      left: 0;
    }

    .panels div.card,
    .panels div {
      width: var(--general-panel-width);
    }

    .wide-panels {
      margin: 0 0 10px 0;
    }

    .wide-panels div.card {
      width: 100%;
      margin: 0 0 16px 0;
    }

    .line {
      margin-bottom: 10px;
      display: -ms-flexbox;
      display: -webkit-flex;
      display: flex;
      -ms-flex-direction: row;
      -webkit-flex-direction: row;
      flex-direction: row;
    }

    .line span {
      margin-left: 24px;
    }

    .line {
      display: inline-block;
      width: auto;
      height: 1px;
      border: 0;
      border-top: 1px solid var(--token-colorBorder, #ccc);
      margin: 20px;
      padding: 0;
    }

    .resource-line {
      border-bottom: 1px solid var(--token-colorBorder, #ccc);
      height: 1px;
      width: 60%;
      margin-left: 80px;
      margin-bottom: 10px;
    }

    div.card > h3 {
      font-size: 20px;
      font-weight: 400;
      padding: 10px 20px;
      margin: 0;
      display: block;
      border-bottom: 1px solid var(--token-colorBorder, #dddddd);
    }

    div.card > h3 > .date {
      font-size: 12px;
      text-align: right;
      color: #888888;
      margin-left: 20px;
    }

    div.card > h3.blue,
    div.card > h4.blue {
      border-left: 3px solid var(--paper-light-blue-400);
    }

    div.card > h3.red,
    div.card > h4.red {
      border-left: 3px solid var(--paper-red-400);
    }

    div.card > h3.green,
    div.card > h4.green {
      border-left: 3px solid var(--paper-green-400);
    }

    div.card > h3.orange,
    div.card > h4.orange {
      border-left: 3px solid var(--paper-orange-400);
    }

    div.card > h3.cyan,
    div.card > h4.cyan {
      border-left: 3px solid var(--paper-cyan-400);
    }

    div.card > h3.lime,
    div.card > h4.lime {
      border-left: 3px solid var(--paper-lime-400);
    }

    div.card > h3.pink,
    div.card > h4.pink {
      border-left: 3px solid var(--paper-pink-400);
    }

    div.card > h4 {
      font-size: 14px;
      padding: 5px 15px 5px 20px;
      margin: 0 0 10px 0;
      display: block;
      border-bottom: 1px solid var(--token-colorBorder, #dddddd);
      -ms-flex-pack: justify;
      -webkit-justify-content: space-between;
      justify-content: space-between;
    }

    div.card .flex {
      display: flex;
    }

    div.card.entries > div {
      margin: 20px;
    }

    mwc-button,
    mwc-button[unelevated],
    mwc-button[raised] {
      background-image: none;
      --mdc-theme-primary: var(
        --token-colorPrimary,
        --general-button-background-color
      );
      --mdc-theme-on-primary: var(--token-colorWhite, --general-button-color);
      --mdc-typography-font-family: var(--token-fontFamily);
    }

    mwc-icon-button[disabled] {
      --mdc-theme-text-disabled-on-light: var(--token-colorTextDisabled);
    }

    mwc-button[disabled] {
      --mdc-button-disabled-ink-color: var(--token-colorTextDisabled);
    }

    mwc-textfield {
      --mdc-theme-primary: var(
        --token-colorPrimary,
        --general-textfield-selected-color
      );
      --mdc-text-field-hover-line-color: var(--token-colorPrimary, transparent);
      --mdc-text-field-idle-line-color: var(
        --token-colorPrimary,
        --general-textfield-idle-color
      );
      --mdc-text-field-fill-color: var(--token-colorBgContainer, transparent);
      --mdc-typography-font-family: var(--token-fontFamily);
      --mdc-typography-subtitle1-font-family: var(--token-fontFamily);
      --mdc-typography-subtitle1-font-size: var(--token-fontSize, 14px);
      --mdc-typography-subtitle1-font-color: var(--token-colorText, black);
      --mdc-typography-subtitle1-font-weight: 400;
      --mdc-typography-subtitle1-line-height: 16px;
      --mdc-text-field-label-ink-color: var(--token-colorText);
      --mdc-text-field-ink-color: var(--token-colorText);
      --mdc-text-field-disabled-fill-color: var(--token-colorBgContainer);
      --mdc-text-field-disabled-ink-color: var(--token-colorTextDisabled);
      --mdc-text-field-disabled-line-color: var(--token-colorTextDisabled);
      --mdc-text-field-outlined-disabled-border-color: var(
        --token-colorTextDisabled
      );
      --mdc-text-field-disabled-fill-color: var(
        --token-colorBgContainerDisabled
      );
    }

    mwc-textarea {
      --mdc-text-field-fill-color: var(--token-colorBgContainer, transparent);
      --mdc-theme-primary: var(--token-colorPrimary, --general-textarea-color);
      --mdc-text-area-outlined-idle-border-color: var(
        --token-colorPrimary,
        --general-textarea-idle-color
      );
      font-family: var(--token-fontFamily);
      --mdc-typography-subtitle1-font-family: var(--token-fontFamily);
      --mdc-typography-subtitle1-font-size: var(--token-fontSize, 14px);
      --mdc-typography-subtitle1-font-color: var(--token-colorText);
      --mdc-typography-subtitle1-font-weight: 400;
      --mdc-typography-subtitle1-line-height: 16px;
      --mdc-text-field-label-ink-color: var(--token-colorText);
      --mdc-text-field-ink-color: var(--token-colorText);
      --mdc-text-area-outlined-disabled-border-color: var(
        --token-colorTextDisabled
      );
    }

    mwc-formfield {
      --mdc-theme-text-primary-on-background: var(--token-colorText);
    }

    mwc-select {
      font-family: var(--token-fontFamily);
      --mdc-typography-subtitle1-font-family: var(--token-fontFamily);
      --mdc-typography-subtitle1-font-size: var(--token-fontSize, 14px);
      --mdc-typography-subtitle1-font-color: var(--token-colorText, black);
      --mdc-typography-subtitle1-font-weight: 400;
      --mdc-typography-subtitle1-line-height: 16px;
      --mdc-theme-primary: var(--token-colorPrimary, --general-select-color);
      --mdc-select-idle-line-color: var(
        --token-colorPrimary,
        --general-select-idle-color
      );
      --mdc-select-hover-line-color: var(
        --token-colorPrimary,
        --general-select-color
      );
      --mdc-select-outlined-border-color: var(
        --token-colorPrimary,
        --general-select-color
      );
      --mdc-select-outlined-idle-border-color: var(
        --token-colorBorder,
        --general-select-idle-color
      );
      --mdc-select-outlined-hover-border-color: var(
        --token-colorPrimary,
        --general-select-color
      );
      --mdc-select-outlined-disabled-border-color: var(
        --token-colorTextDisabled,
        rgba(255, 255, 255, 0.87)
      );
      --mdc-select-fill-color: var(--token-colorBgContainer, transparent);
      --mdc-select-disabled-fill-color: var(
        --token-colorBgContainer,
        transparent
      );
      --mdc-select-ink-color: var(--token-colorText, black);
      --mdc-select-label-ink-color: var(--token-colorText, black);
      --mdc-select-focused-label-color: var(
        --token-colorPrimary,
        rgba(24, 24, 24, 1)
      );
      --mdc-select-disabled-ink-color: var(--token-colorTextDisabled, #747474);
      --mdc-select-dropdown-icon-color: var(--token-colorTextDisabled, #747474);
      --mdc-select-focused-dropdown-icon-color: var(
        --token-colorTextDisabled,
        rgba(255, 255, 255, 0.42)
      );
      --mdc-theme-surface: var(--token-colorBgContainer, #f1f1f1);
      --mdc-select-disabled-dropdown-icon-color: var(--token-colorTextDisabled);
    }

    mwc-radio {
      --mdc-theme-secondary: var(--token-colorPrimary);
      --mdc-radio-unchecked-color: var(--token-colorBorder);
    }

    h3.tab {
      background-color: var(--general-tabbar-background-color);
      border-radius: 5px 5px 0px 0px;
      margin: 0px auto;
    }

    mwc-tab,
    mwc-tab-bar {
      background-color: var(--general-tabbar-background-color);
      --mdc-theme-primary: var(--general-sidebar-selected-color);
      --mdc-text-transform: none;
      --mdc-tab-color-default: var(
        --token-colorTextSecondary,
        --general-tabbar-background-color
      );
      --mdc-tab-text-label-color-default: var(--token-colorText);
      font-family: var(--token-fontFamily);
    }

    .bg-blue {
      background-color: var(--paper-light-blue-400);
      --mdc-theme-primary: var(--paper-light-blue-400);
    }

    .bg-red {
      background-color: var(--paper-red-400);
      --mdc-theme-primary: var(--paper-red-400);
    }

    .bg-yellow {
      background-color: var(--paper-yellow-400);
      --mdc-theme-primary: var(--paper-yellow-400);
    }

    .bg-orange {
      background-color: var(--paper-amber-400);
      --mdc-theme-primary: var(--paper-amber-400);
    }

    .bg-green {
      background-color: var(--paper-green-400);
      --mdc-theme-primary: var(--paper-green-400);
    }

    .bg-cyan {
      background-color: var(--paper-cyan-400);
      --mdc-theme-primary: var(--paper-cyan-400);
    }

    .bg-lime {
      background-color: var(--paper-lime-400);
      --mdc-theme-primary: var(--paper-lime-400);
    }

    .bg-pink {
      background-color: var(--paper-pink-a200);
      --mdc-theme-primary: var(--paper-pink-a200);
    }

    .bg-purple {
      background-color: var(--paper-purple-400);
      --mdc-theme-primary: var(--paper-purple-400);
    }

    .white {
      color: #ffffff !important;
    }

    .black {
      color: #222222 !important;
    }

    .fg.black {
      color: #222222;
    }

    .fg.grey {
      color: var(--paper-grey-600) !important;
      --mdc-theme-primary: var(--paper-grey-600) !important;
    }

    .fg.blue {
      color: var(--paper-light-blue-400) !important;
      --mdc-theme-primary: var(--paper-light-blue-400) !important;
    }

    .fg.red {
      color: var(--paper-red-400) !important;
      --mdc-theme-primary: var(--paper-red-400) !important;
    }

    .fg.yellow {
      color: var(--paper-yellow-400) !important;
      --mdc-theme-primary: var(--paper-yellow-400) !important;
    }

    .fg.orange {
      color: var(--paper-amber-400) !important;
      --mdc-theme-primary: var(--paper-amber-400) !important;
    }

    .fg.green {
      color: var(--paper-green-400) !important;
      --mdc-theme-primary: var(--paper-green-400) !important;
    }

    .fg.teal {
      color: var(--paper-teal-400) !important;
      --mdc-theme-primary: var(--paper-teal-400) !important;
    }

    .fg.cyan {
      color: var(--paper-cyan-400) !important;
      --mdc-theme-primary: var(--paper-cyan-400) !important;
    }

    .fg.lime {
      color: var(--paper-lime-400) !important;
      --mdc-theme-primary: var(--paper-lime-400) !important;
    }

    .fg.pink {
      color: var(--paper-pink-a200) !important;
      --mdc-theme-primary: var(--paper-pink-a200) !important;
    }

    .fg.purple {
      color: var(--paper-purple-400) !important;
      --mdc-theme-primary: var(--paper-purple-400) !important;
    }

    /* Layout */
    .flex-1-container {
      -ms-flex: 1 1 0.000000001px;
      -webkit-flex: 1;
      flex: 1;
      -webkit-flex-basis: 0.000000001px;
      flex-basis: 0.000000001px;
    }

    .centered {
      max-width: 400px;
      margin-left: auto;
      margin-right: auto;
    }

    .distancing {
      margin: 15px;
    }

    div.card > h4 {
      font-weight: 200;
    }

    /* Loading spinner */
    #lablup-loading-spinner {
      position: fixed;
      width: 30px;
      height: 30px;
      bottom: 6px;
      left: 6px;
      z-index: 1000;
    }

    /* Tab on head */
    div.card h3.tab {
      padding-top: 0;
      padding-bottom: 0;
      padding-left: 0;
    }

    /* Button */
    mwc-button {
      --mdc-typography-button-font-size: var(--token-fontSize, 14px);
    }

    mwc-button[outlined] {
      --mdc-button-outline-color: var(--token-colorBorder);
    }

    mwc-button.full-size,
    mwc-button.full {
      width: 100%;
    }

    lablup-progress-bar {
      --progress-bar-width: 186px;
      --progress-bar-height: 17px;
      --progress-bar-font-family: var(--token-fontFamily);
      --progress-bar-border-radius: 3px;
      --progress-bar-font-color-inverse: var(--token-colorBgBase, white);
      --progress-bar-font-color: var(--token-colorText, black);
      margin-bottom: 5px;
    }

    lablup-progress-bar.start {
      --progress-bar-background: var(--general-progress-bar-reserved);
    }

    lablup-progress-bar.end {
      --progress-bar-background: var(--general-progress-bar-using);
    }

    div.progress-bar {
      position: relative;
    }

    div.progress-bar > span.gauge-label {
      position: absolute;
      left: 0.5em;
      top: 25%;
      z-index: 1;
      color: var(--token-colorTextSecondary, #2f2f2f);
    }

    .gauge-label {
      width: inherit;
      font-weight: bold;
      font-size: 10px;
      color: var(--token-colorTextSecondary, #2f2f2f);
    }

    .gauge-name {
      float: right;
      font-size: 14px;
      font-weight: bold;
      color: var(--token-colorTextSecondary, #2f2f2f);
    }

    span.percentage {
      font-size: 10px;
      color: var(--token-colorTextSecondary, #2f2f2f);
    }

    span.start-bar {
      padding-bottom: 5px;
      width: 30px;
      display: flex;
      justify-content: center;
      align-items: center;
    }

    span.end-bar {
      margin-top: 5px;
      padding-bottom: 5px;
      display: flex;
      justify-content: center;
      align-items: center;
      width: 30px;
    }

    span.helper-text {
      font-size: 0.75rem;
      font-weight: bold;
      color: var(--general-textfield-selected-color);
    }

    .resource-name {
      width: 60px;
      text-align: right;
      display: inline-block !important;
      margin: auto 20px auto 0px;
    }

    .resource-legend-stack {
      margin-bottom: 5px;
    }

    span.resource-legend {
      color: var(--token-colorTextSecondary, --general-sidebar-color);
      margin-right: 5px;
    }

    .resource-legend-icon {
      min-width: 10px;
      height: 10px;
      margin-top: 2px;
      margin-left: 10px;
      margin-right: 3px;
      border-radius: 4px;
    }

    .resource-legend-icon.start {
      background-color: var(--token-blue-7);
    }

    .resource-legend-icon.end {
      background-color: var(--token-green-7);
    }

    .resource-legend-icon.total {
      background-color: #e0e0e0;
    }

    .vertical-card {
      margin: 20px;
    }

    vaadin-grid {
      --lumo-font-family: var(--token-fontFamily);
      font-family: var(--token-fontFamily);
    }

    backend-ai-session-launcher#session-launcher {
      --component-color: var(--general-background-color, #ffffff);
      --component-bg: rgb(104, 185, 155);
      --component-bg: linear-gradient(
          rgba(56, 189, 115, 0.5),
          rgba(56, 189, 115, 0.5)
        ),
        linear-gradient(to bottom, #69cee0 0%, #38bd73 100%);
      --component-bg-hover: linear-gradient(
        180deg,
        rgba(98, 180, 131, 1) 0%,
        rgba(104, 185, 155, 1) 50%,
        rgba(93, 178, 113, 1) 100%
      );
      --component-bg-active: rgb(104, 185, 155);
      --component-shadow-color: #37c995;
    }

    .temporarily-hide {
      display: none !important;
    }

    div.list-wrapper {
      height: auto;
    }

    div.blank-box {
      padding: 3rem 0;
    }

    div.blank-box-medium {
      padding: 8.8rem 0;
    }

    div.blank-box-large {
      padding: 11.3rem 0;
    }

    div.list-wrapper {
      position: relative;
    }

    span.list-message {
      font-size: 20px;
      font-weight: 200;
      display: block;
      color: #999999;
    }

    backend-ai-dialog {
      mwc-list-item,
      mwc-icon,
      mwc-icon-button,
      div.card {
        background-color: var(--token-colorBgElevated);
      }

      mwc-icon,
      mwc-icon-button {
        color: var(--token-colorTextSecondary);
      }

      mwc-select {
        --mdc-select-fill-color: var(--token-colorBgElevated, transparent);
        --mdc-select-disabled-fill-color: var(
          --token-colorBgElevated,
          transparent
        );
        --mdc-theme-surface: var(--token-colorBgElevated, #f1f1f1);
      }

      mwc-textfield,
      mwc-textarea {
        --mdc-text-field-fill-color: var(--token-colorBgElevated);
        --mdc-typography-font-family: var(--token-fontFamily);
        --mdc-theme-primary: var(--token-colorPrimary);
      }

      vaadin-grid[theme~='dark'] {
        --lumo-base-color: var(--token-colorBgElevated) !important;
      }

      div[slot='footer'] {
        mwc-button[unelevated],
        mwc-button[raised] {
          --mdc-theme-on-primary: var(
            --token-colorWhite,
            --general-button-color
          );
        }
      }
    }

    div.note-container {
      background-color: var(--paper-green-100);
    }

    div.note-title {
      background-color: var(--paper-green-400);
      padding: 5px 10px;
      color: #ffffff;
      display: -ms-flexbox;
      display: -webkit-flex;
      display: flex;
      -ms-flex-align: center;
      -webkit-align-items: center;
      align-items: center;
    }

    div.note-title mwc-icon {
      margin-right: 6px;
      background-color: var(--paper-green-400);
    }

    div.note-contents {
      padding: 20px;
      /* Fix the color for readability */
      color: #222222;
    }
  `],Fe="langChanged";function je(e,t,i){return Object.entries(qe(t||{})).reduce(((e,[t,i])=>e.replace(new RegExp(`{{[  ]*${t}[  ]*}}`,"gm"),String(qe(i)))),e)}function Ve(e,t){const i=e.split(".");let o=t.strings;for(;null!=o&&i.length>0;)o=o[i.shift()];return null!=o?o.toString():null}function qe(e){return"function"==typeof e?e():e}let We={loader:()=>Promise.resolve({}),empty:e=>`[${e}]`,lookup:Ve,interpolate:je,translationCache:{}};function Ge(e){return We=Object.assign(Object.assign({},We),e)}function Ke(e,t,i=We){var o;o={previousStrings:i.strings,previousLang:i.lang,lang:i.lang=e,strings:i.strings=t},window.dispatchEvent(new CustomEvent(Fe,{detail:o}))}async function Xe(e,t=We){const i=await t.loader(e,t);t.translationCache={},Ke(e,i,t)}function Ye(e,t,i=We){let o=i.translationCache[e]||(i.translationCache[e]=i.lookup(e,i)||i.empty(e,i));return null!=(t=null!=t?qe(t):null)?i.interpolate(o,t,i):o}
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */const Je=2,Ze=e=>(...t)=>({_$litDirective$:e,values:t});let Qe=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,i){this._$Ct=e,this._$AM=t,this._$Ci=i}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}};
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */var et;const tt=window,it=tt.trustedTypes,ot=it?it.createPolicy("lit-html",{createHTML:e=>e}):void 0,st="$lit$",nt=`lit$${(Math.random()+"").slice(9)}$`,rt="?"+nt,at=`<${rt}>`,lt=document,dt=()=>lt.createComment(""),ct=e=>null===e||"object"!=typeof e&&"function"!=typeof e,ht=Array.isArray,pt="[ \t\n\f\r]",ut=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,mt=/-->/g,gt=/>/g,ft=RegExp(`>|${pt}(?:([^\\s"'>=/]+)(${pt}*=${pt}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),_t=/'/g,vt=/"/g,bt=/^(?:script|style|textarea|title)$/i,yt=Symbol.for("lit-noChange"),xt=Symbol.for("lit-nothing"),wt=new WeakMap,$t=lt.createTreeWalker(lt,129,null,!1);function At(e,t){if(!Array.isArray(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==ot?ot.createHTML(t):t}let kt=class e{constructor({strings:t,_$litType$:i},o){let s;this.parts=[];let n=0,r=0;const a=t.length-1,l=this.parts,[d,c]=((e,t)=>{const i=e.length-1,o=[];let s,n=2===t?"<svg>":"",r=ut;for(let t=0;t<i;t++){const i=e[t];let a,l,d=-1,c=0;for(;c<i.length&&(r.lastIndex=c,l=r.exec(i),null!==l);)c=r.lastIndex,r===ut?"!--"===l[1]?r=mt:void 0!==l[1]?r=gt:void 0!==l[2]?(bt.test(l[2])&&(s=RegExp("</"+l[2],"g")),r=ft):void 0!==l[3]&&(r=ft):r===ft?">"===l[0]?(r=null!=s?s:ut,d=-1):void 0===l[1]?d=-2:(d=r.lastIndex-l[2].length,a=l[1],r=void 0===l[3]?ft:'"'===l[3]?vt:_t):r===vt||r===_t?r=ft:r===mt||r===gt?r=ut:(r=ft,s=void 0);const h=r===ft&&e[t+1].startsWith("/>")?" ":"";n+=r===ut?i+at:d>=0?(o.push(a),i.slice(0,d)+st+i.slice(d)+nt+h):i+nt+(-2===d?(o.push(void 0),t):h)}return[At(e,n+(e[i]||"<?>")+(2===t?"</svg>":"")),o]})(t,i);if(this.el=e.createElement(d,o),$t.currentNode=this.el.content,2===i){const e=this.el.content,t=e.firstChild;t.remove(),e.append(...t.childNodes)}for(;null!==(s=$t.nextNode())&&l.length<a;){if(1===s.nodeType){if(s.hasAttributes()){const e=[];for(const t of s.getAttributeNames())if(t.endsWith(st)||t.startsWith(nt)){const i=c[r++];if(e.push(t),void 0!==i){const e=s.getAttribute(i.toLowerCase()+st).split(nt),t=/([.?@])?(.*)/.exec(i);l.push({type:1,index:n,name:t[2],strings:e,ctor:"."===t[1]?Pt:"?"===t[1]?Ot:"@"===t[1]?Rt:Tt})}else l.push({type:6,index:n})}for(const t of e)s.removeAttribute(t)}if(bt.test(s.tagName)){const e=s.textContent.split(nt),t=e.length-1;if(t>0){s.textContent=it?it.emptyScript:"";for(let i=0;i<t;i++)s.append(e[i],dt()),$t.nextNode(),l.push({type:2,index:++n});s.append(e[t],dt())}}}else if(8===s.nodeType)if(s.data===rt)l.push({type:2,index:n});else{let e=-1;for(;-1!==(e=s.data.indexOf(nt,e+1));)l.push({type:7,index:n}),e+=nt.length-1}n++}}static createElement(e,t){const i=lt.createElement("template");return i.innerHTML=e,i}};function Et(e,t,i=e,o){var s,n,r,a;if(t===yt)return t;let l=void 0!==o?null===(s=i._$Co)||void 0===s?void 0:s[o]:i._$Cl;const d=ct(t)?void 0:t._$litDirective$;return(null==l?void 0:l.constructor)!==d&&(null===(n=null==l?void 0:l._$AO)||void 0===n||n.call(l,!1),void 0===d?l=void 0:(l=new d(e),l._$AT(e,i,o)),void 0!==o?(null!==(r=(a=i)._$Co)&&void 0!==r?r:a._$Co=[])[o]=l:i._$Cl=l),void 0!==l&&(t=Et(e,l._$AS(e,t.values),l,o)),t}let St=class{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){var t;const{el:{content:i},parts:o}=this._$AD,s=(null!==(t=null==e?void 0:e.creationScope)&&void 0!==t?t:lt).importNode(i,!0);$t.currentNode=s;let n=$t.nextNode(),r=0,a=0,l=o[0];for(;void 0!==l;){if(r===l.index){let t;2===l.type?t=new Ct(n,n.nextSibling,this,e):1===l.type?t=new l.ctor(n,l.name,l.strings,this,e):6===l.type&&(t=new Nt(n,this,e)),this._$AV.push(t),l=o[++a]}r!==(null==l?void 0:l.index)&&(n=$t.nextNode(),r++)}return $t.currentNode=lt,s}v(e){let t=0;for(const i of this._$AV)void 0!==i&&(void 0!==i.strings?(i._$AI(e,i,t),t+=i.strings.length-2):i._$AI(e[t])),t++}},Ct=class e{constructor(e,t,i,o){var s;this.type=2,this._$AH=xt,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=i,this.options=o,this._$Cp=null===(s=null==o?void 0:o.isConnected)||void 0===s||s}get _$AU(){var e,t;return null!==(t=null===(e=this._$AM)||void 0===e?void 0:e._$AU)&&void 0!==t?t:this._$Cp}get parentNode(){let e=this._$AA.parentNode;const t=this._$AM;return void 0!==t&&11===(null==e?void 0:e.nodeType)&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=Et(this,e,t),ct(e)?e===xt||null==e||""===e?(this._$AH!==xt&&this._$AR(),this._$AH=xt):e!==this._$AH&&e!==yt&&this._(e):void 0!==e._$litType$?this.g(e):void 0!==e.nodeType?this.$(e):(e=>ht(e)||"function"==typeof(null==e?void 0:e[Symbol.iterator]))(e)?this.T(e):this._(e)}k(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}$(e){this._$AH!==e&&(this._$AR(),this._$AH=this.k(e))}_(e){this._$AH!==xt&&ct(this._$AH)?this._$AA.nextSibling.data=e:this.$(lt.createTextNode(e)),this._$AH=e}g(e){var t;const{values:i,_$litType$:o}=e,s="number"==typeof o?this._$AC(e):(void 0===o.el&&(o.el=kt.createElement(At(o.h,o.h[0]),this.options)),o);if((null===(t=this._$AH)||void 0===t?void 0:t._$AD)===s)this._$AH.v(i);else{const e=new St(s,this),t=e.u(this.options);e.v(i),this.$(t),this._$AH=e}}_$AC(e){let t=wt.get(e.strings);return void 0===t&&wt.set(e.strings,t=new kt(e)),t}T(t){ht(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let o,s=0;for(const n of t)s===i.length?i.push(o=new e(this.k(dt()),this.k(dt()),this,this.options)):o=i[s],o._$AI(n),s++;s<i.length&&(this._$AR(o&&o._$AB.nextSibling,s),i.length=s)}_$AR(e=this._$AA.nextSibling,t){var i;for(null===(i=this._$AP)||void 0===i||i.call(this,!1,!0,t);e&&e!==this._$AB;){const t=e.nextSibling;e.remove(),e=t}}setConnected(e){var t;void 0===this._$AM&&(this._$Cp=e,null===(t=this._$AP)||void 0===t||t.call(this,e))}},Tt=class{constructor(e,t,i,o,s){this.type=1,this._$AH=xt,this._$AN=void 0,this.element=e,this.name=t,this._$AM=o,this.options=s,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=xt}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(e,t=this,i,o){const s=this.strings;let n=!1;if(void 0===s)e=Et(this,e,t,0),n=!ct(e)||e!==this._$AH&&e!==yt,n&&(this._$AH=e);else{const o=e;let r,a;for(e=s[0],r=0;r<s.length-1;r++)a=Et(this,o[i+r],t,r),a===yt&&(a=this._$AH[r]),n||(n=!ct(a)||a!==this._$AH[r]),a===xt?e=xt:e!==xt&&(e+=(null!=a?a:"")+s[r+1]),this._$AH[r]=a}n&&!o&&this.j(e)}j(e){e===xt?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=e?e:"")}},Pt=class extends Tt{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===xt?void 0:e}};const It=it?it.emptyScript:"";let Ot=class extends Tt{constructor(){super(...arguments),this.type=4}j(e){e&&e!==xt?this.element.setAttribute(this.name,It):this.element.removeAttribute(this.name)}},Rt=class extends Tt{constructor(e,t,i,o,s){super(e,t,i,o,s),this.type=5}_$AI(e,t=this){var i;if((e=null!==(i=Et(this,e,t,0))&&void 0!==i?i:xt)===yt)return;const o=this._$AH,s=e===xt&&o!==xt||e.capture!==o.capture||e.once!==o.once||e.passive!==o.passive,n=e!==xt&&(o===xt||s);s&&this.element.removeEventListener(this.name,this,o),n&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var t,i;"function"==typeof this._$AH?this._$AH.call(null!==(i=null===(t=this.options)||void 0===t?void 0:t.host)&&void 0!==i?i:this.element,e):this._$AH.handleEvent(e)}},Nt=class{constructor(e,t,i){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(e){Et(this,e)}};const Lt=tt.litHtmlPolyfillSupport;null==Lt||Lt(kt,Ct),(null!==(et=tt.litHtmlVersions)&&void 0!==et?et:tt.litHtmlVersions=[]).push("2.8.0");
/**
 * @license
 * Copyright 2020 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */
const Mt=(e,t)=>{var i,o;const s=e._$AN;if(void 0===s)return!1;for(const e of s)null===(o=(i=e)._$AO)||void 0===o||o.call(i,t,!1),Mt(e,t);return!0},Ut=e=>{let t,i;do{if(void 0===(t=e._$AM))break;i=t._$AN,i.delete(e),e=t}while(0===(null==i?void 0:i.size))},Ht=e=>{for(let t;t=e._$AM;e=t){let i=t._$AN;if(void 0===i)t._$AN=i=new Set;else if(i.has(e))break;i.add(e),Bt(t)}};
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */function Dt(e){void 0!==this._$AN?(Ut(this),this._$AM=e,Ht(this)):this._$AM=e}function zt(e,t=!1,i=0){const o=this._$AH,s=this._$AN;if(void 0!==s&&0!==s.size)if(t)if(Array.isArray(o))for(let e=i;e<o.length;e++)Mt(o[e],!1),Ut(o[e]);else null!=o&&(Mt(o,!1),Ut(o));else Mt(this,e)}const Bt=e=>{var t,i,o,s;e.type==Je&&(null!==(t=(o=e)._$AP)&&void 0!==t||(o._$AP=zt),null!==(i=(s=e)._$AQ)&&void 0!==i||(s._$AQ=Dt))};let Ft=class extends Qe{constructor(){super(...arguments),this._$AN=void 0}_$AT(e,t,i){super._$AT(e,t,i),Ht(this),this.isConnected=e._$AU}_$AO(e,t=!0){var i,o;e!==this.isConnected&&(this.isConnected=e,e?null===(i=this.reconnected)||void 0===i||i.call(this):null===(o=this.disconnected)||void 0===o||o.call(this)),t&&(Mt(this,e),Ut(this))}setValue(e){if((e=>void 0===e.strings)(this._$Ct))this._$Ct._$AI(e,this);else{const t=[...this._$Ct._$AH];t[this._$Ci]=e,this._$Ct._$AI(t,this,0)}}disconnected(){}reconnected(){}};class jt extends Ft{constructor(){super(...arguments),this.langChangedSubscription=null,this.getValue=()=>""}renderValue(e){return this.getValue=e,this.subscribe(),this.getValue()}langChanged(e){this.setValue(this.getValue(e))}subscribe(){null==this.langChangedSubscription&&(this.langChangedSubscription=function(e,t){const i=t=>e(t.detail);return window.addEventListener(Fe,i,t),()=>window.removeEventListener(Fe,i)}(this.langChanged.bind(this)))}unsubscribe(){null!=this.langChangedSubscription&&this.langChangedSubscription()}disconnected(){this.unsubscribe()}reconnected(){this.subscribe()}}class Vt extends jt{render(e,t,i){return this.renderValue((()=>Ye(e,t,i)))}}const qt=Ze(Vt);
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */let Wt=class extends Qe{constructor(e){if(super(e),this.et=xt,e.type!==Je)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===xt||null==e)return this.ft=void 0,this.et=e;if(e===yt)return e;if("string"!=typeof e)throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.et)return this.ft;this.et=e;const t=[e];return t.raw=t,this.ft={_$litType$:this.constructor.resultType,strings:t,values:[]}}};Wt.directiveName="unsafeHTML",Wt.resultType=1;const Gt=Ze(Wt);const Kt=Ze(class extends Vt{render(e,t,i){return this.renderValue((()=>Gt(Ye(e,t,i))))}}),Xt=e=>(t,i)=>{void 0!==i?i.addInitializer((()=>{customElements.define(e,t)})):customElements.define(e,t)}
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */,Yt={attribute:!0,type:String,converter:U,reflect:!1,hasChanged:H},Jt=(e=Yt,t,i)=>{const{kind:o,metadata:s}=i;let n=globalThis.litPropertyMetadata.get(s);if(void 0===n&&globalThis.litPropertyMetadata.set(s,n=new Map),n.set(i.name,e),"accessor"===o){const{name:o}=i;return{set(i){const s=t.get.call(this);t.set.call(this,i),this.requestUpdate(o,s,e)},init(t){return void 0!==t&&this.P(o,void 0,e),t}}}if("setter"===o){const{name:o}=i;return function(i){const s=this[o];t.call(this,i),this.requestUpdate(o,s,e)}}throw Error("Unsupported decorator location: "+o)};
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */function Zt(e){return(t,i)=>"object"==typeof i?Jt(e,t,i):((e,t,i)=>{const o=t.hasOwnProperty(i);return t.constructor.createProperty(i,o?{...e,wrapped:!0}:e),o?Object.getOwnPropertyDescriptor(t,i):void 0})(e,t,i)
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */}const Qt=(e,t,i)=>(i.configurable=!0,i.enumerable=!0,Reflect.decorate&&"object"!=typeof t&&Object.defineProperty(e,t,i),i)
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */;function ei(e,t){return(i,o,s)=>{const n=t=>t.renderRoot?.querySelector(e)??null;if(t){const{get:e,set:t}="object"==typeof o?i:s??(()=>{const e=Symbol();return{get(){return this[e]},set(t){this[e]=t}}})();return Qt(i,o,{get(){let i=e.call(this);return void 0===i&&(i=n(this),(null!==i||this.hasUpdated)&&t.call(this,i)),i}})}return Qt(i,o,{get(){return n(this)}})}}Ge({loader:e=>fetch(`/resources/i18n/${e}.json`).then((e=>e.json()))});class ti extends ke{constructor(){super(),this.active=!1,this.hasLoadedStrings=!1,this.themeHandler=e=>{this.isDarkMode=e.detail},this.active=!1,this.tasker=globalThis.tasker,this.isDarkMode=globalThis.isDarkMode}get activeConnected(){return this.active&&void 0!==globalThis.backendaiclient&&null!==globalThis.backendaiclient&&!0===globalThis.backendaiclient.ready}get connected(){return void 0!==globalThis.backendaiclient&&null!==globalThis.backendaiclient&&!0===globalThis.backendaiclient.ready}_viewStateChanged(e){}connectedCallback(){super.connectedCallback(),document.addEventListener("change:backendaiwebui.setting.isDarkMode",this.themeHandler)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("change:backendaiwebui.setting.isDarkMode",this.themeHandler)}shouldUpdate(){return this.active}attributeChangedCallback(e,t,i){if("active"===e){if(t===i)return;null!==i?(this.active=!0,this._viewStateChanged(!0)):(this.active=!1,this._viewStateChanged(!1))}super.attributeChangedCallback(e,t,i)}_hideDialog(e){e.target.closest("backend-ai-dialog").hide()}_addInputValidator(e){if(!e.hasAttribute("auto-validate"))return;let t;null===e.validityTransform&&(t=e.getAttribute("error-message")?e.getAttribute("error-message"):e.getAttribute("validationMessage")?e.getAttribute("validationMessage"):Ye("credential.validation.ValidationFailed"),e.validityTransform=(i,o)=>o.valid?{valid:o.valid}:o.patternMismatch?(e.validationMessage=t,{valid:o.valid,patternMismatch:!o.valid}):o.valueMissing?(e.validationMessage=Ye("explorer.ValueRequired"),{valid:o.valid,valueMissing:!o.valid}):o.tooShort?(e.validationMessage=Ye("explorer.InputTooShort"),{valid:o.valid,valueMissing:!o.valid}):(e.validationMessage=t,{valid:o.valid,patternMismatch:!o.valid}))}}o([Zt({type:Boolean,reflect:!0})],ti.prototype,"active",void 0),o([Zt({type:Boolean})],ti.prototype,"hasLoadedStrings",void 0),o([Zt({type:String})],ti.prototype,"permission",void 0),o([Zt({type:String})],ti.prototype,"menuitem",void 0),o([Zt({type:Boolean})],ti.prototype,"isDarkMode",void 0);class ii{static relieve(e){if(void 0===e)return void 0===globalThis.backendaiclient||null===globalThis.backendaiclient?"_DISCONNECTED":"Problem occurred.";if(console.log("Error:",e),!0===globalThis.backendaiwebui.debug)return e;if({}.hasOwnProperty.call(this.errorMessageTable,e))return Ye(this.errorMessageTable[e]);for(const t of Object.keys(this.regexTable))if(RegExp(t).test(e))return Ye(this.regexTable[t]);return e}}ii.errorMessageTable={"Cannot read property 'map' of null":"error.APINotSupported","TypeError: NetworkError when attempting to fetch resource.":"error.NetworkConnectionFailed","Login failed. Check login information.":"error.LoginFailed","User credential mismatch.":"error.LoginFailed","Authentication failed. Check information and manager status.":"error.AuthenticationFailed","Too many failed login attempts":"error.TooManyLoginFailures","server responded failure: 400 Bad Request - The virtual folder already exists with the same name.":"error.VirtualFolderAlreadyExist","400 Bad Request - The virtual folder already exists with the same name.":"error.VirtualFolderAlreadyExist","server responded failure: 400 Bad Request - One of your accessible vfolders already has the name you requested.":"error.VirtualFolderAlreadyExist","server responded failure: 400 Bad Request - You cannot create more vfolders.":"error.MaximumVfolderCreation","server responded failure: 400 Bad Request - Missing or invalid API parameters. (You cannot create more vfolders.)":"error.MaximumVfolderCreation","server responded failure: 400 Bad Request - Cannot change the options of a vfolder that is not owned by myself.":"error.CannotChangeVirtualFolderOption","server responded failure: 403 Forbidden - Cannot share private dot-prefixed vfolders.":"error.CannotSharePrivateAutomountFolder","server responded failure: 404 Not Found - No such vfolder invitation.":"error.FolderSharingNotAvailableToUser","server responded failure: 404 Not Found - No such user.":"error.FolderSharingNotAvailableToUser","server responded failure: 412 Precondition Failed - You have reached your resource limit.":"error.ReachedResourceLimit","Cannot read property 'split' of undefined":"error.UserHasNoGroup"},ii.regexTable={"\\w*not found matched token with email\\w*":"error.InvalidSignupToken","\\w*Access key not found\\w*":"error.LoginInformationMismatch","\\w*401 Unauthorized - Credential/signature mismatch\\w*":"error.LoginInformationMismatch",'integrity error: duplicate key value violates unique constraint "pk_resource_presets"[\\n]DETAIL:  Key \\(name\\)=\\([\\w]+\\) already exists.[\\n]':"error.ResourcePolicyAlreadyExist",'integrity error: duplicate key value violates unique constraint "pk_scaling_groups"[\\n]DETAIL:  Key \\(name\\)=\\([\\w]+\\) already exists.[\\n]':"error.ScalingGroupAlreadyExist",'integrity error: duplicate key value violates unique constraint "uq_users_username"[\\n]DETAIL:  Key \\(username\\)=\\([\\w]+\\) already exists.[\\n]':"error.UserNameAlreadyExist","server responded failure: 400 Bad Request - Missing or invalid API parameters. (Your resource quota is exceeded. (cpu=24 mem=512g cuda.shares=80))":"error.ResourceLimitExceed",'\\w*Key \\(name\\)=\\(.+\\) is still referenced from table "keypairs"\\.\\w*':"error.ResourcePolicyStillReferenced","Your resource request is smaller than the minimum required by the image. (\\w*)":"error.SmallerResourceThenImageRequires"};
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */
const oi=(e,t)=>"method"===t.kind&&t.descriptor&&!("value"in t.descriptor)?{...t,finisher(i){i.createProperty(t.key,e)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:t.key,initializer(){"function"==typeof t.initializer&&(this[t.key]=t.initializer.call(this))},finisher(i){i.createProperty(t.key,e)}},si=(e,t,i)=>{t.constructor.createProperty(i,e)};
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */function ni(e){return(t,i)=>void 0!==i?si(e,t,i):oi(e,t)
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */}function ri(e){return ni({...e,state:!0})}
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */
/**
 * @license
 * Copyright 2021 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */
var ai;function li(e,t){return(e.matches||e.webkitMatchesSelector||e.msMatchesSelector).call(e,t)}
/**
 * @license
 * Copyright 2019 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */null===(ai=window.HTMLSlotElement)||void 0===ai||ai.prototype.assignedElements;const di=window,ci=di.ShadowRoot&&(void 0===di.ShadyCSS||di.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,hi=Symbol(),pi=new WeakMap;let ui=class{constructor(e,t,i){if(this._$cssResult$=!0,i!==hi)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o;const t=this.t;if(ci&&void 0===e){const i=void 0!==t&&1===t.length;i&&(e=pi.get(t)),void 0===e&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),i&&pi.set(t,e))}return e}toString(){return this.cssText}};const mi=ci?e=>e:e=>e instanceof CSSStyleSheet?(e=>{let t="";for(const i of e.cssRules)t+=i.cssText;return(e=>new ui("string"==typeof e?e:e+"",void 0,hi))(t)})(e):e
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */;var gi;const fi=window,_i=fi.trustedTypes,vi=_i?_i.emptyScript:"",bi=fi.reactiveElementPolyfillSupport,yi={toAttribute(e,t){switch(t){case Boolean:e=e?vi:null;break;case Object:case Array:e=null==e?e:JSON.stringify(e)}return e},fromAttribute(e,t){let i=e;switch(t){case Boolean:i=null!==e;break;case Number:i=null===e?null:Number(e);break;case Object:case Array:try{i=JSON.parse(e)}catch(e){i=null}}return i}},xi=(e,t)=>t!==e&&(t==t||e==e),wi={attribute:!0,type:String,converter:yi,reflect:!1,hasChanged:xi},$i="finalized";let Ai=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this._$Eu()}static addInitializer(e){var t;this.finalize(),(null!==(t=this.h)&&void 0!==t?t:this.h=[]).push(e)}static get observedAttributes(){this.finalize();const e=[];return this.elementProperties.forEach(((t,i)=>{const o=this._$Ep(i,t);void 0!==o&&(this._$Ev.set(o,i),e.push(o))})),e}static createProperty(e,t=wi){if(t.state&&(t.attribute=!1),this.finalize(),this.elementProperties.set(e,t),!t.noAccessor&&!this.prototype.hasOwnProperty(e)){const i="symbol"==typeof e?Symbol():"__"+e,o=this.getPropertyDescriptor(e,i,t);void 0!==o&&Object.defineProperty(this.prototype,e,o)}}static getPropertyDescriptor(e,t,i){return{get(){return this[t]},set(o){const s=this[e];this[t]=o,this.requestUpdate(e,s,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)||wi}static finalize(){if(this.hasOwnProperty($i))return!1;this[$i]=!0;const e=Object.getPrototypeOf(this);if(e.finalize(),void 0!==e.h&&(this.h=[...e.h]),this.elementProperties=new Map(e.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const e=this.properties,t=[...Object.getOwnPropertyNames(e),...Object.getOwnPropertySymbols(e)];for(const i of t)this.createProperty(i,e[i])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(e){const t=[];if(Array.isArray(e)){const i=new Set(e.flat(1/0).reverse());for(const e of i)t.unshift(mi(e))}else void 0!==e&&t.push(mi(e));return t}static _$Ep(e,t){const i=t.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof e?e.toLowerCase():void 0}_$Eu(){var e;this._$E_=new Promise((e=>this.enableUpdating=e)),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(e=this.constructor.h)||void 0===e||e.forEach((e=>e(this)))}addController(e){var t,i;(null!==(t=this._$ES)&&void 0!==t?t:this._$ES=[]).push(e),void 0!==this.renderRoot&&this.isConnected&&(null===(i=e.hostConnected)||void 0===i||i.call(e))}removeController(e){var t;null===(t=this._$ES)||void 0===t||t.splice(this._$ES.indexOf(e)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach(((e,t)=>{this.hasOwnProperty(t)&&(this._$Ei.set(t,this[t]),delete this[t])}))}createRenderRoot(){var e;const t=null!==(e=this.shadowRoot)&&void 0!==e?e:this.attachShadow(this.constructor.shadowRootOptions);return((e,t)=>{ci?e.adoptedStyleSheets=t.map((e=>e instanceof CSSStyleSheet?e:e.styleSheet)):t.forEach((t=>{const i=document.createElement("style"),o=di.litNonce;void 0!==o&&i.setAttribute("nonce",o),i.textContent=t.cssText,e.appendChild(i)}))})(t,this.constructor.elementStyles),t}connectedCallback(){var e;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(e=this._$ES)||void 0===e||e.forEach((e=>{var t;return null===(t=e.hostConnected)||void 0===t?void 0:t.call(e)}))}enableUpdating(e){}disconnectedCallback(){var e;null===(e=this._$ES)||void 0===e||e.forEach((e=>{var t;return null===(t=e.hostDisconnected)||void 0===t?void 0:t.call(e)}))}attributeChangedCallback(e,t,i){this._$AK(e,i)}_$EO(e,t,i=wi){var o;const s=this.constructor._$Ep(e,i);if(void 0!==s&&!0===i.reflect){const n=(void 0!==(null===(o=i.converter)||void 0===o?void 0:o.toAttribute)?i.converter:yi).toAttribute(t,i.type);this._$El=e,null==n?this.removeAttribute(s):this.setAttribute(s,n),this._$El=null}}_$AK(e,t){var i;const o=this.constructor,s=o._$Ev.get(e);if(void 0!==s&&this._$El!==s){const e=o.getPropertyOptions(s),n="function"==typeof e.converter?{fromAttribute:e.converter}:void 0!==(null===(i=e.converter)||void 0===i?void 0:i.fromAttribute)?e.converter:yi;this._$El=s,this[s]=n.fromAttribute(t,e.type),this._$El=null}}requestUpdate(e,t,i){let o=!0;void 0!==e&&(((i=i||this.constructor.getPropertyOptions(e)).hasChanged||xi)(this[e],t)?(this._$AL.has(e)||this._$AL.set(e,t),!0===i.reflect&&this._$El!==e&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(e,i))):o=!1),!this.isUpdatePending&&o&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(e){Promise.reject(e)}const e=this.scheduleUpdate();return null!=e&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var e;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach(((e,t)=>this[t]=e)),this._$Ei=void 0);let t=!1;const i=this._$AL;try{t=this.shouldUpdate(i),t?(this.willUpdate(i),null===(e=this._$ES)||void 0===e||e.forEach((e=>{var t;return null===(t=e.hostUpdate)||void 0===t?void 0:t.call(e)})),this.update(i)):this._$Ek()}catch(e){throw t=!1,this._$Ek(),e}t&&this._$AE(i)}willUpdate(e){}_$AE(e){var t;null===(t=this._$ES)||void 0===t||t.forEach((e=>{var t;return null===(t=e.hostUpdated)||void 0===t?void 0:t.call(e)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(e){return!0}update(e){void 0!==this._$EC&&(this._$EC.forEach(((e,t)=>this._$EO(t,this[t],e))),this._$EC=void 0),this._$Ek()}updated(e){}firstUpdated(e){}};
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */
var ki;Ai[$i]=!0,Ai.elementProperties=new Map,Ai.elementStyles=[],Ai.shadowRootOptions={mode:"open"},null==bi||bi({ReactiveElement:Ai}),(null!==(gi=fi.reactiveElementVersions)&&void 0!==gi?gi:fi.reactiveElementVersions=[]).push("1.6.3");const Ei=window,Si=Ei.trustedTypes,Ci=Si?Si.createPolicy("lit-html",{createHTML:e=>e}):void 0,Ti="$lit$",Pi=`lit$${(Math.random()+"").slice(9)}$`,Ii="?"+Pi,Oi=`<${Ii}>`,Ri=document,Ni=()=>Ri.createComment(""),Li=e=>null===e||"object"!=typeof e&&"function"!=typeof e,Mi=Array.isArray,Ui="[ \t\n\f\r]",Hi=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Di=/-->/g,zi=/>/g,Bi=RegExp(`>|${Ui}(?:([^\\s"'>=/]+)(${Ui}*=${Ui}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),Fi=/'/g,ji=/"/g,Vi=/^(?:script|style|textarea|title)$/i,qi=Symbol.for("lit-noChange"),Wi=Symbol.for("lit-nothing"),Gi=new WeakMap,Ki=Ri.createTreeWalker(Ri,129,null,!1);function Xi(e,t){if(!Array.isArray(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==Ci?Ci.createHTML(t):t}let Yi=class e{constructor({strings:t,_$litType$:i},o){let s;this.parts=[];let n=0,r=0;const a=t.length-1,l=this.parts,[d,c]=((e,t)=>{const i=e.length-1,o=[];let s,n=2===t?"<svg>":"",r=Hi;for(let t=0;t<i;t++){const i=e[t];let a,l,d=-1,c=0;for(;c<i.length&&(r.lastIndex=c,l=r.exec(i),null!==l);)c=r.lastIndex,r===Hi?"!--"===l[1]?r=Di:void 0!==l[1]?r=zi:void 0!==l[2]?(Vi.test(l[2])&&(s=RegExp("</"+l[2],"g")),r=Bi):void 0!==l[3]&&(r=Bi):r===Bi?">"===l[0]?(r=null!=s?s:Hi,d=-1):void 0===l[1]?d=-2:(d=r.lastIndex-l[2].length,a=l[1],r=void 0===l[3]?Bi:'"'===l[3]?ji:Fi):r===ji||r===Fi?r=Bi:r===Di||r===zi?r=Hi:(r=Bi,s=void 0);const h=r===Bi&&e[t+1].startsWith("/>")?" ":"";n+=r===Hi?i+Oi:d>=0?(o.push(a),i.slice(0,d)+Ti+i.slice(d)+Pi+h):i+Pi+(-2===d?(o.push(void 0),t):h)}return[Xi(e,n+(e[i]||"<?>")+(2===t?"</svg>":"")),o]})(t,i);if(this.el=e.createElement(d,o),Ki.currentNode=this.el.content,2===i){const e=this.el.content,t=e.firstChild;t.remove(),e.append(...t.childNodes)}for(;null!==(s=Ki.nextNode())&&l.length<a;){if(1===s.nodeType){if(s.hasAttributes()){const e=[];for(const t of s.getAttributeNames())if(t.endsWith(Ti)||t.startsWith(Pi)){const i=c[r++];if(e.push(t),void 0!==i){const e=s.getAttribute(i.toLowerCase()+Ti).split(Pi),t=/([.?@])?(.*)/.exec(i);l.push({type:1,index:n,name:t[2],strings:e,ctor:"."===t[1]?to:"?"===t[1]?oo:"@"===t[1]?so:eo})}else l.push({type:6,index:n})}for(const t of e)s.removeAttribute(t)}if(Vi.test(s.tagName)){const e=s.textContent.split(Pi),t=e.length-1;if(t>0){s.textContent=Si?Si.emptyScript:"";for(let i=0;i<t;i++)s.append(e[i],Ni()),Ki.nextNode(),l.push({type:2,index:++n});s.append(e[t],Ni())}}}else if(8===s.nodeType)if(s.data===Ii)l.push({type:2,index:n});else{let e=-1;for(;-1!==(e=s.data.indexOf(Pi,e+1));)l.push({type:7,index:n}),e+=Pi.length-1}n++}}static createElement(e,t){const i=Ri.createElement("template");return i.innerHTML=e,i}};function Ji(e,t,i=e,o){var s,n,r,a;if(t===qi)return t;let l=void 0!==o?null===(s=i._$Co)||void 0===s?void 0:s[o]:i._$Cl;const d=Li(t)?void 0:t._$litDirective$;return(null==l?void 0:l.constructor)!==d&&(null===(n=null==l?void 0:l._$AO)||void 0===n||n.call(l,!1),void 0===d?l=void 0:(l=new d(e),l._$AT(e,i,o)),void 0!==o?(null!==(r=(a=i)._$Co)&&void 0!==r?r:a._$Co=[])[o]=l:i._$Cl=l),void 0!==l&&(t=Ji(e,l._$AS(e,t.values),l,o)),t}let Zi=class{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){var t;const{el:{content:i},parts:o}=this._$AD,s=(null!==(t=null==e?void 0:e.creationScope)&&void 0!==t?t:Ri).importNode(i,!0);Ki.currentNode=s;let n=Ki.nextNode(),r=0,a=0,l=o[0];for(;void 0!==l;){if(r===l.index){let t;2===l.type?t=new Qi(n,n.nextSibling,this,e):1===l.type?t=new l.ctor(n,l.name,l.strings,this,e):6===l.type&&(t=new no(n,this,e)),this._$AV.push(t),l=o[++a]}r!==(null==l?void 0:l.index)&&(n=Ki.nextNode(),r++)}return Ki.currentNode=Ri,s}v(e){let t=0;for(const i of this._$AV)void 0!==i&&(void 0!==i.strings?(i._$AI(e,i,t),t+=i.strings.length-2):i._$AI(e[t])),t++}},Qi=class e{constructor(e,t,i,o){var s;this.type=2,this._$AH=Wi,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=i,this.options=o,this._$Cp=null===(s=null==o?void 0:o.isConnected)||void 0===s||s}get _$AU(){var e,t;return null!==(t=null===(e=this._$AM)||void 0===e?void 0:e._$AU)&&void 0!==t?t:this._$Cp}get parentNode(){let e=this._$AA.parentNode;const t=this._$AM;return void 0!==t&&11===(null==e?void 0:e.nodeType)&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=Ji(this,e,t),Li(e)?e===Wi||null==e||""===e?(this._$AH!==Wi&&this._$AR(),this._$AH=Wi):e!==this._$AH&&e!==qi&&this._(e):void 0!==e._$litType$?this.g(e):void 0!==e.nodeType?this.$(e):(e=>Mi(e)||"function"==typeof(null==e?void 0:e[Symbol.iterator]))(e)?this.T(e):this._(e)}k(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}$(e){this._$AH!==e&&(this._$AR(),this._$AH=this.k(e))}_(e){this._$AH!==Wi&&Li(this._$AH)?this._$AA.nextSibling.data=e:this.$(Ri.createTextNode(e)),this._$AH=e}g(e){var t;const{values:i,_$litType$:o}=e,s="number"==typeof o?this._$AC(e):(void 0===o.el&&(o.el=Yi.createElement(Xi(o.h,o.h[0]),this.options)),o);if((null===(t=this._$AH)||void 0===t?void 0:t._$AD)===s)this._$AH.v(i);else{const e=new Zi(s,this),t=e.u(this.options);e.v(i),this.$(t),this._$AH=e}}_$AC(e){let t=Gi.get(e.strings);return void 0===t&&Gi.set(e.strings,t=new Yi(e)),t}T(t){Mi(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let o,s=0;for(const n of t)s===i.length?i.push(o=new e(this.k(Ni()),this.k(Ni()),this,this.options)):o=i[s],o._$AI(n),s++;s<i.length&&(this._$AR(o&&o._$AB.nextSibling,s),i.length=s)}_$AR(e=this._$AA.nextSibling,t){var i;for(null===(i=this._$AP)||void 0===i||i.call(this,!1,!0,t);e&&e!==this._$AB;){const t=e.nextSibling;e.remove(),e=t}}setConnected(e){var t;void 0===this._$AM&&(this._$Cp=e,null===(t=this._$AP)||void 0===t||t.call(this,e))}},eo=class{constructor(e,t,i,o,s){this.type=1,this._$AH=Wi,this._$AN=void 0,this.element=e,this.name=t,this._$AM=o,this.options=s,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=Wi}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(e,t=this,i,o){const s=this.strings;let n=!1;if(void 0===s)e=Ji(this,e,t,0),n=!Li(e)||e!==this._$AH&&e!==qi,n&&(this._$AH=e);else{const o=e;let r,a;for(e=s[0],r=0;r<s.length-1;r++)a=Ji(this,o[i+r],t,r),a===qi&&(a=this._$AH[r]),n||(n=!Li(a)||a!==this._$AH[r]),a===Wi?e=Wi:e!==Wi&&(e+=(null!=a?a:"")+s[r+1]),this._$AH[r]=a}n&&!o&&this.j(e)}j(e){e===Wi?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=e?e:"")}},to=class extends eo{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===Wi?void 0:e}};const io=Si?Si.emptyScript:"";let oo=class extends eo{constructor(){super(...arguments),this.type=4}j(e){e&&e!==Wi?this.element.setAttribute(this.name,io):this.element.removeAttribute(this.name)}},so=class extends eo{constructor(e,t,i,o,s){super(e,t,i,o,s),this.type=5}_$AI(e,t=this){var i;if((e=null!==(i=Ji(this,e,t,0))&&void 0!==i?i:Wi)===qi)return;const o=this._$AH,s=e===Wi&&o!==Wi||e.capture!==o.capture||e.once!==o.once||e.passive!==o.passive,n=e!==Wi&&(o===Wi||s);s&&this.element.removeEventListener(this.name,this,o),n&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var t,i;"function"==typeof this._$AH?this._$AH.call(null!==(i=null===(t=this.options)||void 0===t?void 0:t.host)&&void 0!==i?i:this.element,e):this._$AH.handleEvent(e)}},no=class{constructor(e,t,i){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(e){Ji(this,e)}};const ro=Ei.litHtmlPolyfillSupport;null==ro||ro(Yi,Qi),(null!==(ki=Ei.litHtmlVersions)&&void 0!==ki?ki:Ei.litHtmlVersions=[]).push("2.8.0");
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */
var ao,lo;let co=class extends Ai{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e,t;const i=super.createRenderRoot();return null!==(e=(t=this.renderOptions).renderBefore)&&void 0!==e||(t.renderBefore=i.firstChild),i}update(e){const t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=((e,t,i)=>{var o,s;const n=null!==(o=null==i?void 0:i.renderBefore)&&void 0!==o?o:t;let r=n._$litPart$;if(void 0===r){const e=null!==(s=null==i?void 0:i.renderBefore)&&void 0!==s?s:null;n._$litPart$=r=new Qi(t.insertBefore(Ni(),e),e,void 0,null!=i?i:{})}return r._$AI(e),r})(t,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),null===(e=this._$Do)||void 0===e||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),null===(e=this._$Do)||void 0===e||e.setConnected(!1)}render(){return qi}};co.finalized=!0,co._$litElement$=!0,null===(ao=globalThis.litElementHydrateSupport)||void 0===ao||ao.call(globalThis,{LitElement:co});const ho=globalThis.litElementPolyfillSupport;null==ho||ho({LitElement:co}),(null!==(lo=globalThis.litElementVersions)&&void 0!==lo?lo:globalThis.litElementVersions=[]).push("3.3.3");
/**
 * @license
 * Copyright 2018 Google LLC
 * SPDX-License-Identifier: Apache-2.0
 */
const po=e=>e.nodeType===Node.ELEMENT_NODE;function uo(e){return{addClass:t=>{e.classList.add(t)},removeClass:t=>{e.classList.remove(t)},hasClass:t=>e.classList.contains(t)}}let mo=!1;const go=()=>{},fo={get passive(){return mo=!0,!1}};document.addEventListener("x",go,fo),document.removeEventListener("x",go);const _o=mo,vo=(e=window.document)=>{let t=e.activeElement;const i=[];if(!t)return i;for(;t&&(i.push(t),t.shadowRoot);)t=t.shadowRoot.activeElement;return i},bo=e=>{const t=vo();if(!t.length)return!1;const i=t[t.length-1],o=new Event("check-if-focused",{bubbles:!0,composed:!0});let s=[];const n=e=>{s=e.composedPath()};return document.body.addEventListener("check-if-focused",n),i.dispatchEvent(o),document.body.removeEventListener("check-if-focused",n),-1!==s.indexOf(e)};
/**
 * @license
 * Copyright 2018 Google LLC
 * SPDX-License-Identifier: Apache-2.0
 */
class yo extends co{click(){if(this.mdcRoot)return this.mdcRoot.focus(),void this.mdcRoot.click();super.click()}createFoundation(){void 0!==this.mdcFoundation&&this.mdcFoundation.destroy(),this.mdcFoundationClass&&(this.mdcFoundation=new this.mdcFoundationClass(this.createAdapter()),this.mdcFoundation.init())}firstUpdated(){this.createFoundation()}}
/**
 * @license
 * Copyright 2016 Google Inc.
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 * THE SOFTWARE.
 */var xo=function(){function e(e){void 0===e&&(e={}),this.adapter=e}return Object.defineProperty(e,"cssClasses",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(e,"strings",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(e,"numbers",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(e,"defaultAdapter",{get:function(){return{}},enumerable:!1,configurable:!0}),e.prototype.init=function(){},e.prototype.destroy=function(){},e}(),wo={BG_FOCUSED:"mdc-ripple-upgraded--background-focused",FG_ACTIVATION:"mdc-ripple-upgraded--foreground-activation",FG_DEACTIVATION:"mdc-ripple-upgraded--foreground-deactivation",ROOT:"mdc-ripple-upgraded",UNBOUNDED:"mdc-ripple-upgraded--unbounded"},$o={VAR_FG_SCALE:"--mdc-ripple-fg-scale",VAR_FG_SIZE:"--mdc-ripple-fg-size",VAR_FG_TRANSLATE_END:"--mdc-ripple-fg-translate-end",VAR_FG_TRANSLATE_START:"--mdc-ripple-fg-translate-start",VAR_LEFT:"--mdc-ripple-left",VAR_TOP:"--mdc-ripple-top"},Ao={DEACTIVATION_TIMEOUT_MS:225,FG_DEACTIVATION_MS:150,INITIAL_ORIGIN_SCALE:.6,PADDING:10,TAP_DELAY_MS:300};
/**
 * @license
 * Copyright 2016 Google Inc.
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 * THE SOFTWARE.
 */
/**
 * @license
 * Copyright 2016 Google Inc.
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 * THE SOFTWARE.
 */
var ko=["touchstart","pointerdown","mousedown","keydown"],Eo=["touchend","pointerup","mouseup","contextmenu"],So=[],Co=function(e){function o(t){var s=e.call(this,i(i({},o.defaultAdapter),t))||this;return s.activationAnimationHasEnded=!1,s.activationTimer=0,s.fgDeactivationRemovalTimer=0,s.fgScale="0",s.frame={width:0,height:0},s.initialSize=0,s.layoutFrame=0,s.maxRadius=0,s.unboundedCoords={left:0,top:0},s.activationState=s.defaultActivationState(),s.activationTimerCallback=function(){s.activationAnimationHasEnded=!0,s.runDeactivationUXLogicIfReady()},s.activateHandler=function(e){s.activateImpl(e)},s.deactivateHandler=function(){s.deactivateImpl()},s.focusHandler=function(){s.handleFocus()},s.blurHandler=function(){s.handleBlur()},s.resizeHandler=function(){s.layout()},s}return t(o,e),Object.defineProperty(o,"cssClasses",{get:function(){return wo},enumerable:!1,configurable:!0}),Object.defineProperty(o,"strings",{get:function(){return $o},enumerable:!1,configurable:!0}),Object.defineProperty(o,"numbers",{get:function(){return Ao},enumerable:!1,configurable:!0}),Object.defineProperty(o,"defaultAdapter",{get:function(){return{addClass:function(){},browserSupportsCssVars:function(){return!0},computeBoundingRect:function(){return{top:0,right:0,bottom:0,left:0,width:0,height:0}},containsEventTarget:function(){return!0},deregisterDocumentInteractionHandler:function(){},deregisterInteractionHandler:function(){},deregisterResizeHandler:function(){},getWindowPageOffset:function(){return{x:0,y:0}},isSurfaceActive:function(){return!0},isSurfaceDisabled:function(){return!0},isUnbounded:function(){return!0},registerDocumentInteractionHandler:function(){},registerInteractionHandler:function(){},registerResizeHandler:function(){},removeClass:function(){},updateCssVariable:function(){}}},enumerable:!1,configurable:!0}),o.prototype.init=function(){var e=this,t=this.supportsPressRipple();if(this.registerRootHandlers(t),t){var i=o.cssClasses,s=i.ROOT,n=i.UNBOUNDED;requestAnimationFrame((function(){e.adapter.addClass(s),e.adapter.isUnbounded()&&(e.adapter.addClass(n),e.layoutInternal())}))}},o.prototype.destroy=function(){var e=this;if(this.supportsPressRipple()){this.activationTimer&&(clearTimeout(this.activationTimer),this.activationTimer=0,this.adapter.removeClass(o.cssClasses.FG_ACTIVATION)),this.fgDeactivationRemovalTimer&&(clearTimeout(this.fgDeactivationRemovalTimer),this.fgDeactivationRemovalTimer=0,this.adapter.removeClass(o.cssClasses.FG_DEACTIVATION));var t=o.cssClasses,i=t.ROOT,s=t.UNBOUNDED;requestAnimationFrame((function(){e.adapter.removeClass(i),e.adapter.removeClass(s),e.removeCssVars()}))}this.deregisterRootHandlers(),this.deregisterDeactivationHandlers()},o.prototype.activate=function(e){this.activateImpl(e)},o.prototype.deactivate=function(){this.deactivateImpl()},o.prototype.layout=function(){var e=this;this.layoutFrame&&cancelAnimationFrame(this.layoutFrame),this.layoutFrame=requestAnimationFrame((function(){e.layoutInternal(),e.layoutFrame=0}))},o.prototype.setUnbounded=function(e){var t=o.cssClasses.UNBOUNDED;e?this.adapter.addClass(t):this.adapter.removeClass(t)},o.prototype.handleFocus=function(){var e=this;requestAnimationFrame((function(){return e.adapter.addClass(o.cssClasses.BG_FOCUSED)}))},o.prototype.handleBlur=function(){var e=this;requestAnimationFrame((function(){return e.adapter.removeClass(o.cssClasses.BG_FOCUSED)}))},o.prototype.supportsPressRipple=function(){return this.adapter.browserSupportsCssVars()},o.prototype.defaultActivationState=function(){return{activationEvent:void 0,hasDeactivationUXRun:!1,isActivated:!1,isProgrammatic:!1,wasActivatedByPointer:!1,wasElementMadeActive:!1}},o.prototype.registerRootHandlers=function(e){var t,i;if(e){try{for(var o=s(ko),n=o.next();!n.done;n=o.next()){var r=n.value;this.adapter.registerInteractionHandler(r,this.activateHandler)}}catch(e){t={error:e}}finally{try{n&&!n.done&&(i=o.return)&&i.call(o)}finally{if(t)throw t.error}}this.adapter.isUnbounded()&&this.adapter.registerResizeHandler(this.resizeHandler)}this.adapter.registerInteractionHandler("focus",this.focusHandler),this.adapter.registerInteractionHandler("blur",this.blurHandler)},o.prototype.registerDeactivationHandlers=function(e){var t,i;if("keydown"===e.type)this.adapter.registerInteractionHandler("keyup",this.deactivateHandler);else try{for(var o=s(Eo),n=o.next();!n.done;n=o.next()){var r=n.value;this.adapter.registerDocumentInteractionHandler(r,this.deactivateHandler)}}catch(e){t={error:e}}finally{try{n&&!n.done&&(i=o.return)&&i.call(o)}finally{if(t)throw t.error}}},o.prototype.deregisterRootHandlers=function(){var e,t;try{for(var i=s(ko),o=i.next();!o.done;o=i.next()){var n=o.value;this.adapter.deregisterInteractionHandler(n,this.activateHandler)}}catch(t){e={error:t}}finally{try{o&&!o.done&&(t=i.return)&&t.call(i)}finally{if(e)throw e.error}}this.adapter.deregisterInteractionHandler("focus",this.focusHandler),this.adapter.deregisterInteractionHandler("blur",this.blurHandler),this.adapter.isUnbounded()&&this.adapter.deregisterResizeHandler(this.resizeHandler)},o.prototype.deregisterDeactivationHandlers=function(){var e,t;this.adapter.deregisterInteractionHandler("keyup",this.deactivateHandler);try{for(var i=s(Eo),o=i.next();!o.done;o=i.next()){var n=o.value;this.adapter.deregisterDocumentInteractionHandler(n,this.deactivateHandler)}}catch(t){e={error:t}}finally{try{o&&!o.done&&(t=i.return)&&t.call(i)}finally{if(e)throw e.error}}},o.prototype.removeCssVars=function(){var e=this,t=o.strings;Object.keys(t).forEach((function(i){0===i.indexOf("VAR_")&&e.adapter.updateCssVariable(t[i],null)}))},o.prototype.activateImpl=function(e){var t=this;if(!this.adapter.isSurfaceDisabled()){var i=this.activationState;if(!i.isActivated){var o=this.previousActivationEvent;if(!(o&&void 0!==e&&o.type!==e.type))i.isActivated=!0,i.isProgrammatic=void 0===e,i.activationEvent=e,i.wasActivatedByPointer=!i.isProgrammatic&&(void 0!==e&&("mousedown"===e.type||"touchstart"===e.type||"pointerdown"===e.type)),void 0!==e&&So.length>0&&So.some((function(e){return t.adapter.containsEventTarget(e)}))?this.resetActivationState():(void 0!==e&&(So.push(e.target),this.registerDeactivationHandlers(e)),i.wasElementMadeActive=this.checkElementMadeActive(e),i.wasElementMadeActive&&this.animateActivation(),requestAnimationFrame((function(){So=[],i.wasElementMadeActive||void 0===e||" "!==e.key&&32!==e.keyCode||(i.wasElementMadeActive=t.checkElementMadeActive(e),i.wasElementMadeActive&&t.animateActivation()),i.wasElementMadeActive||(t.activationState=t.defaultActivationState())})))}}},o.prototype.checkElementMadeActive=function(e){return void 0===e||"keydown"!==e.type||this.adapter.isSurfaceActive()},o.prototype.animateActivation=function(){var e=this,t=o.strings,i=t.VAR_FG_TRANSLATE_START,s=t.VAR_FG_TRANSLATE_END,n=o.cssClasses,r=n.FG_DEACTIVATION,a=n.FG_ACTIVATION,l=o.numbers.DEACTIVATION_TIMEOUT_MS;this.layoutInternal();var d="",c="";if(!this.adapter.isUnbounded()){var h=this.getFgTranslationCoordinates(),p=h.startPoint,u=h.endPoint;d=p.x+"px, "+p.y+"px",c=u.x+"px, "+u.y+"px"}this.adapter.updateCssVariable(i,d),this.adapter.updateCssVariable(s,c),clearTimeout(this.activationTimer),clearTimeout(this.fgDeactivationRemovalTimer),this.rmBoundedActivationClasses(),this.adapter.removeClass(r),this.adapter.computeBoundingRect(),this.adapter.addClass(a),this.activationTimer=setTimeout((function(){e.activationTimerCallback()}),l)},o.prototype.getFgTranslationCoordinates=function(){var e,t=this.activationState,i=t.activationEvent;return e=t.wasActivatedByPointer?function(e,t,i){if(!e)return{x:0,y:0};var o,s,n=t.x,r=t.y,a=n+i.left,l=r+i.top;if("touchstart"===e.type){var d=e;o=d.changedTouches[0].pageX-a,s=d.changedTouches[0].pageY-l}else{var c=e;o=c.pageX-a,s=c.pageY-l}return{x:o,y:s}}(i,this.adapter.getWindowPageOffset(),this.adapter.computeBoundingRect()):{x:this.frame.width/2,y:this.frame.height/2},{startPoint:e={x:e.x-this.initialSize/2,y:e.y-this.initialSize/2},endPoint:{x:this.frame.width/2-this.initialSize/2,y:this.frame.height/2-this.initialSize/2}}},o.prototype.runDeactivationUXLogicIfReady=function(){var e=this,t=o.cssClasses.FG_DEACTIVATION,i=this.activationState,s=i.hasDeactivationUXRun,n=i.isActivated;(s||!n)&&this.activationAnimationHasEnded&&(this.rmBoundedActivationClasses(),this.adapter.addClass(t),this.fgDeactivationRemovalTimer=setTimeout((function(){e.adapter.removeClass(t)}),Ao.FG_DEACTIVATION_MS))},o.prototype.rmBoundedActivationClasses=function(){var e=o.cssClasses.FG_ACTIVATION;this.adapter.removeClass(e),this.activationAnimationHasEnded=!1,this.adapter.computeBoundingRect()},o.prototype.resetActivationState=function(){var e=this;this.previousActivationEvent=this.activationState.activationEvent,this.activationState=this.defaultActivationState(),setTimeout((function(){return e.previousActivationEvent=void 0}),o.numbers.TAP_DELAY_MS)},o.prototype.deactivateImpl=function(){var e=this,t=this.activationState;if(t.isActivated){var o=i({},t);t.isProgrammatic?(requestAnimationFrame((function(){e.animateDeactivation(o)})),this.resetActivationState()):(this.deregisterDeactivationHandlers(),requestAnimationFrame((function(){e.activationState.hasDeactivationUXRun=!0,e.animateDeactivation(o),e.resetActivationState()})))}},o.prototype.animateDeactivation=function(e){var t=e.wasActivatedByPointer,i=e.wasElementMadeActive;(t||i)&&this.runDeactivationUXLogicIfReady()},o.prototype.layoutInternal=function(){var e=this;this.frame=this.adapter.computeBoundingRect();var t=Math.max(this.frame.height,this.frame.width);this.maxRadius=this.adapter.isUnbounded()?t:Math.sqrt(Math.pow(e.frame.width,2)+Math.pow(e.frame.height,2))+o.numbers.PADDING;var i=Math.floor(t*o.numbers.INITIAL_ORIGIN_SCALE);this.adapter.isUnbounded()&&i%2!=0?this.initialSize=i-1:this.initialSize=i,this.fgScale=""+this.maxRadius/this.initialSize,this.updateLayoutCssVars()},o.prototype.updateLayoutCssVars=function(){var e=o.strings,t=e.VAR_FG_SIZE,i=e.VAR_LEFT,s=e.VAR_TOP,n=e.VAR_FG_SCALE;this.adapter.updateCssVariable(t,this.initialSize+"px"),this.adapter.updateCssVariable(n,this.fgScale),this.adapter.isUnbounded()&&(this.unboundedCoords={left:Math.round(this.frame.width/2-this.initialSize/2),top:Math.round(this.frame.height/2-this.initialSize/2)},this.adapter.updateCssVariable(i,this.unboundedCoords.left+"px"),this.adapter.updateCssVariable(s,this.unboundedCoords.top+"px"))},o}(xo);
/**
 * @license
 * Copyright 2019 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */
const To=window,Po=To.ShadowRoot&&(void 0===To.ShadyCSS||To.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Io=Symbol(),Oo=new WeakMap;let Ro=class{constructor(e,t,i){if(this._$cssResult$=!0,i!==Io)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o;const t=this.t;if(Po&&void 0===e){const i=void 0!==t&&1===t.length;i&&(e=Oo.get(t)),void 0===e&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),i&&Oo.set(t,e))}return e}toString(){return this.cssText}};const No=Po?e=>e:e=>e instanceof CSSStyleSheet?(e=>{let t="";for(const i of e.cssRules)t+=i.cssText;return(e=>new Ro("string"==typeof e?e:e+"",void 0,Io))(t)})(e):e
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */;var Lo;const Mo=window,Uo=Mo.trustedTypes,Ho=Uo?Uo.emptyScript:"",Do=Mo.reactiveElementPolyfillSupport,zo={toAttribute(e,t){switch(t){case Boolean:e=e?Ho:null;break;case Object:case Array:e=null==e?e:JSON.stringify(e)}return e},fromAttribute(e,t){let i=e;switch(t){case Boolean:i=null!==e;break;case Number:i=null===e?null:Number(e);break;case Object:case Array:try{i=JSON.parse(e)}catch(e){i=null}}return i}},Bo=(e,t)=>t!==e&&(t==t||e==e),Fo={attribute:!0,type:String,converter:zo,reflect:!1,hasChanged:Bo},jo="finalized";let Vo=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this._$Eu()}static addInitializer(e){var t;this.finalize(),(null!==(t=this.h)&&void 0!==t?t:this.h=[]).push(e)}static get observedAttributes(){this.finalize();const e=[];return this.elementProperties.forEach(((t,i)=>{const o=this._$Ep(i,t);void 0!==o&&(this._$Ev.set(o,i),e.push(o))})),e}static createProperty(e,t=Fo){if(t.state&&(t.attribute=!1),this.finalize(),this.elementProperties.set(e,t),!t.noAccessor&&!this.prototype.hasOwnProperty(e)){const i="symbol"==typeof e?Symbol():"__"+e,o=this.getPropertyDescriptor(e,i,t);void 0!==o&&Object.defineProperty(this.prototype,e,o)}}static getPropertyDescriptor(e,t,i){return{get(){return this[t]},set(o){const s=this[e];this[t]=o,this.requestUpdate(e,s,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)||Fo}static finalize(){if(this.hasOwnProperty(jo))return!1;this[jo]=!0;const e=Object.getPrototypeOf(this);if(e.finalize(),void 0!==e.h&&(this.h=[...e.h]),this.elementProperties=new Map(e.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const e=this.properties,t=[...Object.getOwnPropertyNames(e),...Object.getOwnPropertySymbols(e)];for(const i of t)this.createProperty(i,e[i])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(e){const t=[];if(Array.isArray(e)){const i=new Set(e.flat(1/0).reverse());for(const e of i)t.unshift(No(e))}else void 0!==e&&t.push(No(e));return t}static _$Ep(e,t){const i=t.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof e?e.toLowerCase():void 0}_$Eu(){var e;this._$E_=new Promise((e=>this.enableUpdating=e)),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(e=this.constructor.h)||void 0===e||e.forEach((e=>e(this)))}addController(e){var t,i;(null!==(t=this._$ES)&&void 0!==t?t:this._$ES=[]).push(e),void 0!==this.renderRoot&&this.isConnected&&(null===(i=e.hostConnected)||void 0===i||i.call(e))}removeController(e){var t;null===(t=this._$ES)||void 0===t||t.splice(this._$ES.indexOf(e)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach(((e,t)=>{this.hasOwnProperty(t)&&(this._$Ei.set(t,this[t]),delete this[t])}))}createRenderRoot(){var e;const t=null!==(e=this.shadowRoot)&&void 0!==e?e:this.attachShadow(this.constructor.shadowRootOptions);return((e,t)=>{Po?e.adoptedStyleSheets=t.map((e=>e instanceof CSSStyleSheet?e:e.styleSheet)):t.forEach((t=>{const i=document.createElement("style"),o=To.litNonce;void 0!==o&&i.setAttribute("nonce",o),i.textContent=t.cssText,e.appendChild(i)}))})(t,this.constructor.elementStyles),t}connectedCallback(){var e;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(e=this._$ES)||void 0===e||e.forEach((e=>{var t;return null===(t=e.hostConnected)||void 0===t?void 0:t.call(e)}))}enableUpdating(e){}disconnectedCallback(){var e;null===(e=this._$ES)||void 0===e||e.forEach((e=>{var t;return null===(t=e.hostDisconnected)||void 0===t?void 0:t.call(e)}))}attributeChangedCallback(e,t,i){this._$AK(e,i)}_$EO(e,t,i=Fo){var o;const s=this.constructor._$Ep(e,i);if(void 0!==s&&!0===i.reflect){const n=(void 0!==(null===(o=i.converter)||void 0===o?void 0:o.toAttribute)?i.converter:zo).toAttribute(t,i.type);this._$El=e,null==n?this.removeAttribute(s):this.setAttribute(s,n),this._$El=null}}_$AK(e,t){var i;const o=this.constructor,s=o._$Ev.get(e);if(void 0!==s&&this._$El!==s){const e=o.getPropertyOptions(s),n="function"==typeof e.converter?{fromAttribute:e.converter}:void 0!==(null===(i=e.converter)||void 0===i?void 0:i.fromAttribute)?e.converter:zo;this._$El=s,this[s]=n.fromAttribute(t,e.type),this._$El=null}}requestUpdate(e,t,i){let o=!0;void 0!==e&&(((i=i||this.constructor.getPropertyOptions(e)).hasChanged||Bo)(this[e],t)?(this._$AL.has(e)||this._$AL.set(e,t),!0===i.reflect&&this._$El!==e&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(e,i))):o=!1),!this.isUpdatePending&&o&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(e){Promise.reject(e)}const e=this.scheduleUpdate();return null!=e&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var e;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach(((e,t)=>this[t]=e)),this._$Ei=void 0);let t=!1;const i=this._$AL;try{t=this.shouldUpdate(i),t?(this.willUpdate(i),null===(e=this._$ES)||void 0===e||e.forEach((e=>{var t;return null===(t=e.hostUpdate)||void 0===t?void 0:t.call(e)})),this.update(i)):this._$Ek()}catch(e){throw t=!1,this._$Ek(),e}t&&this._$AE(i)}willUpdate(e){}_$AE(e){var t;null===(t=this._$ES)||void 0===t||t.forEach((e=>{var t;return null===(t=e.hostUpdated)||void 0===t?void 0:t.call(e)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(e){return!0}update(e){void 0!==this._$EC&&(this._$EC.forEach(((e,t)=>this._$EO(t,this[t],e))),this._$EC=void 0),this._$Ek()}updated(e){}firstUpdated(e){}};
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */
var qo;Vo[jo]=!0,Vo.elementProperties=new Map,Vo.elementStyles=[],Vo.shadowRootOptions={mode:"open"},null==Do||Do({ReactiveElement:Vo}),(null!==(Lo=Mo.reactiveElementVersions)&&void 0!==Lo?Lo:Mo.reactiveElementVersions=[]).push("1.6.3");const Wo=window,Go=Wo.trustedTypes,Ko=Go?Go.createPolicy("lit-html",{createHTML:e=>e}):void 0,Xo="$lit$",Yo=`lit$${(Math.random()+"").slice(9)}$`,Jo="?"+Yo,Zo=`<${Jo}>`,Qo=document,es=()=>Qo.createComment(""),ts=e=>null===e||"object"!=typeof e&&"function"!=typeof e,is=Array.isArray,os="[ \t\n\f\r]",ss=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,ns=/-->/g,rs=/>/g,as=RegExp(`>|${os}(?:([^\\s"'>=/]+)(${os}*=${os}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),ls=/'/g,ds=/"/g,cs=/^(?:script|style|textarea|title)$/i,hs=(e=>(t,...i)=>({_$litType$:e,strings:t,values:i}))(1),ps=Symbol.for("lit-noChange"),us=Symbol.for("lit-nothing"),ms=new WeakMap,gs=Qo.createTreeWalker(Qo,129,null,!1);function fs(e,t){if(!Array.isArray(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==Ko?Ko.createHTML(t):t}let _s=class e{constructor({strings:t,_$litType$:i},o){let s;this.parts=[];let n=0,r=0;const a=t.length-1,l=this.parts,[d,c]=((e,t)=>{const i=e.length-1,o=[];let s,n=2===t?"<svg>":"",r=ss;for(let t=0;t<i;t++){const i=e[t];let a,l,d=-1,c=0;for(;c<i.length&&(r.lastIndex=c,l=r.exec(i),null!==l);)c=r.lastIndex,r===ss?"!--"===l[1]?r=ns:void 0!==l[1]?r=rs:void 0!==l[2]?(cs.test(l[2])&&(s=RegExp("</"+l[2],"g")),r=as):void 0!==l[3]&&(r=as):r===as?">"===l[0]?(r=null!=s?s:ss,d=-1):void 0===l[1]?d=-2:(d=r.lastIndex-l[2].length,a=l[1],r=void 0===l[3]?as:'"'===l[3]?ds:ls):r===ds||r===ls?r=as:r===ns||r===rs?r=ss:(r=as,s=void 0);const h=r===as&&e[t+1].startsWith("/>")?" ":"";n+=r===ss?i+Zo:d>=0?(o.push(a),i.slice(0,d)+Xo+i.slice(d)+Yo+h):i+Yo+(-2===d?(o.push(void 0),t):h)}return[fs(e,n+(e[i]||"<?>")+(2===t?"</svg>":"")),o]})(t,i);if(this.el=e.createElement(d,o),gs.currentNode=this.el.content,2===i){const e=this.el.content,t=e.firstChild;t.remove(),e.append(...t.childNodes)}for(;null!==(s=gs.nextNode())&&l.length<a;){if(1===s.nodeType){if(s.hasAttributes()){const e=[];for(const t of s.getAttributeNames())if(t.endsWith(Xo)||t.startsWith(Yo)){const i=c[r++];if(e.push(t),void 0!==i){const e=s.getAttribute(i.toLowerCase()+Xo).split(Yo),t=/([.?@])?(.*)/.exec(i);l.push({type:1,index:n,name:t[2],strings:e,ctor:"."===t[1]?ws:"?"===t[1]?As:"@"===t[1]?ks:xs})}else l.push({type:6,index:n})}for(const t of e)s.removeAttribute(t)}if(cs.test(s.tagName)){const e=s.textContent.split(Yo),t=e.length-1;if(t>0){s.textContent=Go?Go.emptyScript:"";for(let i=0;i<t;i++)s.append(e[i],es()),gs.nextNode(),l.push({type:2,index:++n});s.append(e[t],es())}}}else if(8===s.nodeType)if(s.data===Jo)l.push({type:2,index:n});else{let e=-1;for(;-1!==(e=s.data.indexOf(Yo,e+1));)l.push({type:7,index:n}),e+=Yo.length-1}n++}}static createElement(e,t){const i=Qo.createElement("template");return i.innerHTML=e,i}};function vs(e,t,i=e,o){var s,n,r,a;if(t===ps)return t;let l=void 0!==o?null===(s=i._$Co)||void 0===s?void 0:s[o]:i._$Cl;const d=ts(t)?void 0:t._$litDirective$;return(null==l?void 0:l.constructor)!==d&&(null===(n=null==l?void 0:l._$AO)||void 0===n||n.call(l,!1),void 0===d?l=void 0:(l=new d(e),l._$AT(e,i,o)),void 0!==o?(null!==(r=(a=i)._$Co)&&void 0!==r?r:a._$Co=[])[o]=l:i._$Cl=l),void 0!==l&&(t=vs(e,l._$AS(e,t.values),l,o)),t}let bs=class{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){var t;const{el:{content:i},parts:o}=this._$AD,s=(null!==(t=null==e?void 0:e.creationScope)&&void 0!==t?t:Qo).importNode(i,!0);gs.currentNode=s;let n=gs.nextNode(),r=0,a=0,l=o[0];for(;void 0!==l;){if(r===l.index){let t;2===l.type?t=new ys(n,n.nextSibling,this,e):1===l.type?t=new l.ctor(n,l.name,l.strings,this,e):6===l.type&&(t=new Es(n,this,e)),this._$AV.push(t),l=o[++a]}r!==(null==l?void 0:l.index)&&(n=gs.nextNode(),r++)}return gs.currentNode=Qo,s}v(e){let t=0;for(const i of this._$AV)void 0!==i&&(void 0!==i.strings?(i._$AI(e,i,t),t+=i.strings.length-2):i._$AI(e[t])),t++}},ys=class e{constructor(e,t,i,o){var s;this.type=2,this._$AH=us,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=i,this.options=o,this._$Cp=null===(s=null==o?void 0:o.isConnected)||void 0===s||s}get _$AU(){var e,t;return null!==(t=null===(e=this._$AM)||void 0===e?void 0:e._$AU)&&void 0!==t?t:this._$Cp}get parentNode(){let e=this._$AA.parentNode;const t=this._$AM;return void 0!==t&&11===(null==e?void 0:e.nodeType)&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=vs(this,e,t),ts(e)?e===us||null==e||""===e?(this._$AH!==us&&this._$AR(),this._$AH=us):e!==this._$AH&&e!==ps&&this._(e):void 0!==e._$litType$?this.g(e):void 0!==e.nodeType?this.$(e):(e=>is(e)||"function"==typeof(null==e?void 0:e[Symbol.iterator]))(e)?this.T(e):this._(e)}k(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}$(e){this._$AH!==e&&(this._$AR(),this._$AH=this.k(e))}_(e){this._$AH!==us&&ts(this._$AH)?this._$AA.nextSibling.data=e:this.$(Qo.createTextNode(e)),this._$AH=e}g(e){var t;const{values:i,_$litType$:o}=e,s="number"==typeof o?this._$AC(e):(void 0===o.el&&(o.el=_s.createElement(fs(o.h,o.h[0]),this.options)),o);if((null===(t=this._$AH)||void 0===t?void 0:t._$AD)===s)this._$AH.v(i);else{const e=new bs(s,this),t=e.u(this.options);e.v(i),this.$(t),this._$AH=e}}_$AC(e){let t=ms.get(e.strings);return void 0===t&&ms.set(e.strings,t=new _s(e)),t}T(t){is(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let o,s=0;for(const n of t)s===i.length?i.push(o=new e(this.k(es()),this.k(es()),this,this.options)):o=i[s],o._$AI(n),s++;s<i.length&&(this._$AR(o&&o._$AB.nextSibling,s),i.length=s)}_$AR(e=this._$AA.nextSibling,t){var i;for(null===(i=this._$AP)||void 0===i||i.call(this,!1,!0,t);e&&e!==this._$AB;){const t=e.nextSibling;e.remove(),e=t}}setConnected(e){var t;void 0===this._$AM&&(this._$Cp=e,null===(t=this._$AP)||void 0===t||t.call(this,e))}},xs=class{constructor(e,t,i,o,s){this.type=1,this._$AH=us,this._$AN=void 0,this.element=e,this.name=t,this._$AM=o,this.options=s,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=us}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(e,t=this,i,o){const s=this.strings;let n=!1;if(void 0===s)e=vs(this,e,t,0),n=!ts(e)||e!==this._$AH&&e!==ps,n&&(this._$AH=e);else{const o=e;let r,a;for(e=s[0],r=0;r<s.length-1;r++)a=vs(this,o[i+r],t,r),a===ps&&(a=this._$AH[r]),n||(n=!ts(a)||a!==this._$AH[r]),a===us?e=us:e!==us&&(e+=(null!=a?a:"")+s[r+1]),this._$AH[r]=a}n&&!o&&this.j(e)}j(e){e===us?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=e?e:"")}},ws=class extends xs{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===us?void 0:e}};const $s=Go?Go.emptyScript:"";let As=class extends xs{constructor(){super(...arguments),this.type=4}j(e){e&&e!==us?this.element.setAttribute(this.name,$s):this.element.removeAttribute(this.name)}},ks=class extends xs{constructor(e,t,i,o,s){super(e,t,i,o,s),this.type=5}_$AI(e,t=this){var i;if((e=null!==(i=vs(this,e,t,0))&&void 0!==i?i:us)===ps)return;const o=this._$AH,s=e===us&&o!==us||e.capture!==o.capture||e.once!==o.once||e.passive!==o.passive,n=e!==us&&(o===us||s);s&&this.element.removeEventListener(this.name,this,o),n&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var t,i;"function"==typeof this._$AH?this._$AH.call(null!==(i=null===(t=this.options)||void 0===t?void 0:t.host)&&void 0!==i?i:this.element,e):this._$AH.handleEvent(e)}},Es=class{constructor(e,t,i){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(e){vs(this,e)}};const Ss=Wo.litHtmlPolyfillSupport;null==Ss||Ss(_s,ys),(null!==(qo=Wo.litHtmlVersions)&&void 0!==qo?qo:Wo.litHtmlVersions=[]).push("2.8.0");
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */
var Cs,Ts;let Ps=class extends Vo{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e,t;const i=super.createRenderRoot();return null!==(e=(t=this.renderOptions).renderBefore)&&void 0!==e||(t.renderBefore=i.firstChild),i}update(e){const t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=((e,t,i)=>{var o,s;const n=null!==(o=null==i?void 0:i.renderBefore)&&void 0!==o?o:t;let r=n._$litPart$;if(void 0===r){const e=null!==(s=null==i?void 0:i.renderBefore)&&void 0!==s?s:null;n._$litPart$=r=new ys(t.insertBefore(es(),e),e,void 0,null!=i?i:{})}return r._$AI(e),r})(t,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),null===(e=this._$Do)||void 0===e||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),null===(e=this._$Do)||void 0===e||e.setConnected(!1)}render(){return ps}};Ps.finalized=!0,Ps._$litElement$=!0,null===(Cs=globalThis.litElementHydrateSupport)||void 0===Cs||Cs.call(globalThis,{LitElement:Ps});const Is=globalThis.litElementPolyfillSupport;null==Is||Is({LitElement:Ps}),(null!==(Ts=globalThis.litElementVersions)&&void 0!==Ts?Ts:globalThis.litElementVersions=[]).push("3.3.3");
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */
const Os=1,Rs=e=>(...t)=>({_$litDirective$:e,values:t});let Ns=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,i){this._$Ct=e,this._$AM=t,this._$Ci=i}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}};
/**
 * @license
 * Copyright 2018 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */const Ls=Rs(class extends Ns{constructor(e){var t;if(super(e),e.type!==Os||"class"!==e.name||(null===(t=e.strings)||void 0===t?void 0:t.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(e){return" "+Object.keys(e).filter((t=>e[t])).join(" ")+" "}update(e,[t]){var i,o;if(void 0===this.it){this.it=new Set,void 0!==e.strings&&(this.nt=new Set(e.strings.join(" ").split(/\s/).filter((e=>""!==e))));for(const e in t)t[e]&&!(null===(i=this.nt)||void 0===i?void 0:i.has(e))&&this.it.add(e);return this.render(t)}const s=e.element.classList;this.it.forEach((e=>{e in t||(s.remove(e),this.it.delete(e))}));for(const e in t){const i=!!t[e];i===this.it.has(e)||(null===(o=this.nt)||void 0===o?void 0:o.has(e))||(i?(s.add(e),this.it.add(e)):(s.remove(e),this.it.delete(e)))}return ps}}),Ms="important",Us=" !"+Ms,Hs=Rs(class extends Ns{constructor(e){var t;if(super(e),e.type!==Os||"style"!==e.name||(null===(t=e.strings)||void 0===t?void 0:t.length)>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(e){return Object.keys(e).reduce(((t,i)=>{const o=e[i];return null==o?t:t+`${i=i.includes("-")?i:i.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${o};`}),"")}update(e,[t]){const{style:i}=e.element;if(void 0===this.ht){this.ht=new Set;for(const e in t)this.ht.add(e);return this.render(t)}this.ht.forEach((e=>{null==t[e]&&(this.ht.delete(e),e.includes("-")?i.removeProperty(e):i[e]="")}));for(const e in t){const o=t[e];if(null!=o){this.ht.add(e);const t="string"==typeof o&&o.endsWith(Us);e.includes("-")||t?i.setProperty(e,t?o.slice(0,-11):o,t?Ms:""):i[e]=o}}return ps}});
/**
 * @license
 * Copyright 2018 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */
/**
 * @license
 * Copyright 2018 Google LLC
 * SPDX-License-Identifier: Apache-2.0
 */
class Ds extends yo{constructor(){super(...arguments),this.primary=!1,this.accent=!1,this.unbounded=!1,this.disabled=!1,this.activated=!1,this.selected=!1,this.internalUseStateLayerCustomProperties=!1,this.hovering=!1,this.bgFocused=!1,this.fgActivation=!1,this.fgDeactivation=!1,this.fgScale="",this.fgSize="",this.translateStart="",this.translateEnd="",this.leftPos="",this.topPos="",this.mdcFoundationClass=Co}get isActive(){return li(this.parentElement||this,":active")}createAdapter(){return{browserSupportsCssVars:()=>!0,isUnbounded:()=>this.unbounded,isSurfaceActive:()=>this.isActive,isSurfaceDisabled:()=>this.disabled,addClass:e=>{switch(e){case"mdc-ripple-upgraded--background-focused":this.bgFocused=!0;break;case"mdc-ripple-upgraded--foreground-activation":this.fgActivation=!0;break;case"mdc-ripple-upgraded--foreground-deactivation":this.fgDeactivation=!0}},removeClass:e=>{switch(e){case"mdc-ripple-upgraded--background-focused":this.bgFocused=!1;break;case"mdc-ripple-upgraded--foreground-activation":this.fgActivation=!1;break;case"mdc-ripple-upgraded--foreground-deactivation":this.fgDeactivation=!1}},containsEventTarget:()=>!0,registerInteractionHandler:()=>{},deregisterInteractionHandler:()=>{},registerDocumentInteractionHandler:()=>{},deregisterDocumentInteractionHandler:()=>{},registerResizeHandler:()=>{},deregisterResizeHandler:()=>{},updateCssVariable:(e,t)=>{switch(e){case"--mdc-ripple-fg-scale":this.fgScale=t;break;case"--mdc-ripple-fg-size":this.fgSize=t;break;case"--mdc-ripple-fg-translate-end":this.translateEnd=t;break;case"--mdc-ripple-fg-translate-start":this.translateStart=t;break;case"--mdc-ripple-left":this.leftPos=t;break;case"--mdc-ripple-top":this.topPos=t}},computeBoundingRect:()=>(this.parentElement||this).getBoundingClientRect(),getWindowPageOffset:()=>({x:window.pageXOffset,y:window.pageYOffset})}}startPress(e){this.waitForFoundation((()=>{this.mdcFoundation.activate(e)}))}endPress(){this.waitForFoundation((()=>{this.mdcFoundation.deactivate()}))}startFocus(){this.waitForFoundation((()=>{this.mdcFoundation.handleFocus()}))}endFocus(){this.waitForFoundation((()=>{this.mdcFoundation.handleBlur()}))}startHover(){this.hovering=!0}endHover(){this.hovering=!1}waitForFoundation(e){this.mdcFoundation?e():this.updateComplete.then(e)}update(e){e.has("disabled")&&this.disabled&&this.endHover(),super.update(e)}render(){const e=this.activated&&(this.primary||!this.accent),t=this.selected&&(this.primary||!this.accent),i={"mdc-ripple-surface--accent":this.accent,"mdc-ripple-surface--primary--activated":e,"mdc-ripple-surface--accent--activated":this.accent&&this.activated,"mdc-ripple-surface--primary--selected":t,"mdc-ripple-surface--accent--selected":this.accent&&this.selected,"mdc-ripple-surface--disabled":this.disabled,"mdc-ripple-surface--hover":this.hovering,"mdc-ripple-surface--primary":this.primary,"mdc-ripple-surface--selected":this.selected,"mdc-ripple-upgraded--background-focused":this.bgFocused,"mdc-ripple-upgraded--foreground-activation":this.fgActivation,"mdc-ripple-upgraded--foreground-deactivation":this.fgDeactivation,"mdc-ripple-upgraded--unbounded":this.unbounded,"mdc-ripple-surface--internal-use-state-layer-custom-properties":this.internalUseStateLayerCustomProperties};return hs`
        <div class="mdc-ripple-surface mdc-ripple-upgraded ${Ls(i)}"
          style="${Hs({"--mdc-ripple-fg-scale":this.fgScale,"--mdc-ripple-fg-size":this.fgSize,"--mdc-ripple-fg-translate-end":this.translateEnd,"--mdc-ripple-fg-translate-start":this.translateStart,"--mdc-ripple-left":this.leftPos,"--mdc-ripple-top":this.topPos})}"></div>`}}o([
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */
function(e,t){return(({finisher:e,descriptor:t})=>(i,o)=>{var s;if(void 0===o){const o=null!==(s=i.originalKey)&&void 0!==s?s:i.key,n=null!=t?{kind:"method",placement:"prototype",key:o,descriptor:t(i.key)}:{...i,key:o};return null!=e&&(n.finisher=function(t){e(t,o)}),n}{const s=i.constructor;void 0!==t&&Object.defineProperty(i,o,t(o)),null==e||e(s,o)}})({descriptor:t=>{const i={get(){var t,i;return null!==(i=null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector(e))&&void 0!==i?i:null},enumerable:!0,configurable:!0};return i}})}(".mdc-ripple-surface")],Ds.prototype,"mdcRoot",void 0),o([ni({type:Boolean})],Ds.prototype,"primary",void 0),o([ni({type:Boolean})],Ds.prototype,"accent",void 0),o([ni({type:Boolean})],Ds.prototype,"unbounded",void 0),o([ni({type:Boolean})],Ds.prototype,"disabled",void 0),o([ni({type:Boolean})],Ds.prototype,"activated",void 0),o([ni({type:Boolean})],Ds.prototype,"selected",void 0),o([ni({type:Boolean})],Ds.prototype,"internalUseStateLayerCustomProperties",void 0),o([ri()],Ds.prototype,"hovering",void 0),o([ri()],Ds.prototype,"bgFocused",void 0),o([ri()],Ds.prototype,"fgActivation",void 0),o([ri()],Ds.prototype,"fgDeactivation",void 0),o([ri()],Ds.prototype,"fgScale",void 0),o([ri()],Ds.prototype,"fgSize",void 0),o([ri()],Ds.prototype,"translateStart",void 0),o([ri()],Ds.prototype,"translateEnd",void 0),o([ri()],Ds.prototype,"leftPos",void 0),o([ri()],Ds.prototype,"topPos",void 0);
/**
 * @license
 * Copyright 2021 Google LLC
 * SPDX-LIcense-Identifier: Apache-2.0
 */
const zs=((e,...t)=>{const i=1===e.length?e[0]:t.reduce(((t,i,o)=>t+(e=>{if(!0===e._$cssResult$)return e.cssText;if("number"==typeof e)return e;throw Error("Value passed to 'css' function must be a 'css' function result: "+e+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+e[o+1]),e[0]);return new Ro(i,e,Io)})`.mdc-ripple-surface{--mdc-ripple-fg-size: 0;--mdc-ripple-left: 0;--mdc-ripple-top: 0;--mdc-ripple-fg-scale: 1;--mdc-ripple-fg-translate-end: 0;--mdc-ripple-fg-translate-start: 0;-webkit-tap-highlight-color:rgba(0,0,0,0);will-change:transform,opacity;position:relative;outline:none;overflow:hidden}.mdc-ripple-surface::before,.mdc-ripple-surface::after{position:absolute;border-radius:50%;opacity:0;pointer-events:none;content:""}.mdc-ripple-surface::before{transition:opacity 15ms linear,background-color 15ms linear;z-index:1;z-index:var(--mdc-ripple-z-index, 1)}.mdc-ripple-surface::after{z-index:0;z-index:var(--mdc-ripple-z-index, 0)}.mdc-ripple-surface.mdc-ripple-upgraded::before{transform:scale(var(--mdc-ripple-fg-scale, 1))}.mdc-ripple-surface.mdc-ripple-upgraded::after{top:0;left:0;transform:scale(0);transform-origin:center center}.mdc-ripple-surface.mdc-ripple-upgraded--unbounded::after{top:var(--mdc-ripple-top, 0);left:var(--mdc-ripple-left, 0)}.mdc-ripple-surface.mdc-ripple-upgraded--foreground-activation::after{animation:mdc-ripple-fg-radius-in 225ms forwards,mdc-ripple-fg-opacity-in 75ms forwards}.mdc-ripple-surface.mdc-ripple-upgraded--foreground-deactivation::after{animation:mdc-ripple-fg-opacity-out 150ms;transform:translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1))}.mdc-ripple-surface::before,.mdc-ripple-surface::after{top:calc(50% - 100%);left:calc(50% - 100%);width:200%;height:200%}.mdc-ripple-surface.mdc-ripple-upgraded::after{width:var(--mdc-ripple-fg-size, 100%);height:var(--mdc-ripple-fg-size, 100%)}.mdc-ripple-surface[data-mdc-ripple-is-unbounded],.mdc-ripple-upgraded--unbounded{overflow:visible}.mdc-ripple-surface[data-mdc-ripple-is-unbounded]::before,.mdc-ripple-surface[data-mdc-ripple-is-unbounded]::after,.mdc-ripple-upgraded--unbounded::before,.mdc-ripple-upgraded--unbounded::after{top:calc(50% - 50%);left:calc(50% - 50%);width:100%;height:100%}.mdc-ripple-surface[data-mdc-ripple-is-unbounded].mdc-ripple-upgraded::before,.mdc-ripple-surface[data-mdc-ripple-is-unbounded].mdc-ripple-upgraded::after,.mdc-ripple-upgraded--unbounded.mdc-ripple-upgraded::before,.mdc-ripple-upgraded--unbounded.mdc-ripple-upgraded::after{top:var(--mdc-ripple-top, calc(50% - 50%));left:var(--mdc-ripple-left, calc(50% - 50%));width:var(--mdc-ripple-fg-size, 100%);height:var(--mdc-ripple-fg-size, 100%)}.mdc-ripple-surface[data-mdc-ripple-is-unbounded].mdc-ripple-upgraded::after,.mdc-ripple-upgraded--unbounded.mdc-ripple-upgraded::after{width:var(--mdc-ripple-fg-size, 100%);height:var(--mdc-ripple-fg-size, 100%)}.mdc-ripple-surface::before,.mdc-ripple-surface::after{background-color:#000;background-color:var(--mdc-ripple-color, #000)}.mdc-ripple-surface:hover::before,.mdc-ripple-surface.mdc-ripple-surface--hover::before{opacity:0.04;opacity:var(--mdc-ripple-hover-opacity, 0.04)}.mdc-ripple-surface.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-focus-opacity, 0.12)}.mdc-ripple-surface:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-ripple-surface.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.12)}@keyframes mdc-ripple-fg-radius-in{from{animation-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transform:translate(var(--mdc-ripple-fg-translate-start, 0)) scale(1)}to{transform:translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1))}}@keyframes mdc-ripple-fg-opacity-in{from{animation-timing-function:linear;opacity:0}to{opacity:var(--mdc-ripple-fg-opacity, 0)}}@keyframes mdc-ripple-fg-opacity-out{from{animation-timing-function:linear;opacity:var(--mdc-ripple-fg-opacity, 0)}to{opacity:0}}:host{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;display:block}:host .mdc-ripple-surface{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;will-change:unset}.mdc-ripple-surface--primary::before,.mdc-ripple-surface--primary::after{background-color:#6200ee;background-color:var(--mdc-ripple-color, var(--mdc-theme-primary, #6200ee))}.mdc-ripple-surface--primary:hover::before,.mdc-ripple-surface--primary.mdc-ripple-surface--hover::before{opacity:0.04;opacity:var(--mdc-ripple-hover-opacity, 0.04)}.mdc-ripple-surface--primary.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface--primary:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-focus-opacity, 0.12)}.mdc-ripple-surface--primary:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface--primary:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-ripple-surface--primary.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-ripple-surface--primary--activated::before{opacity:0.12;opacity:var(--mdc-ripple-activated-opacity, 0.12)}.mdc-ripple-surface--primary--activated::before,.mdc-ripple-surface--primary--activated::after{background-color:#6200ee;background-color:var(--mdc-ripple-color, var(--mdc-theme-primary, #6200ee))}.mdc-ripple-surface--primary--activated:hover::before,.mdc-ripple-surface--primary--activated.mdc-ripple-surface--hover::before{opacity:0.16;opacity:var(--mdc-ripple-hover-opacity, 0.16)}.mdc-ripple-surface--primary--activated.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface--primary--activated:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.24;opacity:var(--mdc-ripple-focus-opacity, 0.24)}.mdc-ripple-surface--primary--activated:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface--primary--activated:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.24;opacity:var(--mdc-ripple-press-opacity, 0.24)}.mdc-ripple-surface--primary--activated.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.24)}.mdc-ripple-surface--primary--selected::before{opacity:0.08;opacity:var(--mdc-ripple-selected-opacity, 0.08)}.mdc-ripple-surface--primary--selected::before,.mdc-ripple-surface--primary--selected::after{background-color:#6200ee;background-color:var(--mdc-ripple-color, var(--mdc-theme-primary, #6200ee))}.mdc-ripple-surface--primary--selected:hover::before,.mdc-ripple-surface--primary--selected.mdc-ripple-surface--hover::before{opacity:0.12;opacity:var(--mdc-ripple-hover-opacity, 0.12)}.mdc-ripple-surface--primary--selected.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface--primary--selected:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.2;opacity:var(--mdc-ripple-focus-opacity, 0.2)}.mdc-ripple-surface--primary--selected:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface--primary--selected:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.2;opacity:var(--mdc-ripple-press-opacity, 0.2)}.mdc-ripple-surface--primary--selected.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.2)}.mdc-ripple-surface--accent::before,.mdc-ripple-surface--accent::after{background-color:#018786;background-color:var(--mdc-ripple-color, var(--mdc-theme-secondary, #018786))}.mdc-ripple-surface--accent:hover::before,.mdc-ripple-surface--accent.mdc-ripple-surface--hover::before{opacity:0.04;opacity:var(--mdc-ripple-hover-opacity, 0.04)}.mdc-ripple-surface--accent.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface--accent:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-focus-opacity, 0.12)}.mdc-ripple-surface--accent:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface--accent:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-ripple-surface--accent.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-ripple-surface--accent--activated::before{opacity:0.12;opacity:var(--mdc-ripple-activated-opacity, 0.12)}.mdc-ripple-surface--accent--activated::before,.mdc-ripple-surface--accent--activated::after{background-color:#018786;background-color:var(--mdc-ripple-color, var(--mdc-theme-secondary, #018786))}.mdc-ripple-surface--accent--activated:hover::before,.mdc-ripple-surface--accent--activated.mdc-ripple-surface--hover::before{opacity:0.16;opacity:var(--mdc-ripple-hover-opacity, 0.16)}.mdc-ripple-surface--accent--activated.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface--accent--activated:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.24;opacity:var(--mdc-ripple-focus-opacity, 0.24)}.mdc-ripple-surface--accent--activated:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface--accent--activated:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.24;opacity:var(--mdc-ripple-press-opacity, 0.24)}.mdc-ripple-surface--accent--activated.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.24)}.mdc-ripple-surface--accent--selected::before{opacity:0.08;opacity:var(--mdc-ripple-selected-opacity, 0.08)}.mdc-ripple-surface--accent--selected::before,.mdc-ripple-surface--accent--selected::after{background-color:#018786;background-color:var(--mdc-ripple-color, var(--mdc-theme-secondary, #018786))}.mdc-ripple-surface--accent--selected:hover::before,.mdc-ripple-surface--accent--selected.mdc-ripple-surface--hover::before{opacity:0.12;opacity:var(--mdc-ripple-hover-opacity, 0.12)}.mdc-ripple-surface--accent--selected.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface--accent--selected:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.2;opacity:var(--mdc-ripple-focus-opacity, 0.2)}.mdc-ripple-surface--accent--selected:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface--accent--selected:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.2;opacity:var(--mdc-ripple-press-opacity, 0.2)}.mdc-ripple-surface--accent--selected.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.2)}.mdc-ripple-surface--disabled{opacity:0}.mdc-ripple-surface--internal-use-state-layer-custom-properties::before,.mdc-ripple-surface--internal-use-state-layer-custom-properties::after{background-color:#000;background-color:var(--mdc-ripple-hover-state-layer-color, #000)}.mdc-ripple-surface--internal-use-state-layer-custom-properties:hover::before,.mdc-ripple-surface--internal-use-state-layer-custom-properties.mdc-ripple-surface--hover::before{opacity:0.04;opacity:var(--mdc-ripple-hover-state-layer-opacity, 0.04)}.mdc-ripple-surface--internal-use-state-layer-custom-properties.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface--internal-use-state-layer-custom-properties:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-focus-state-layer-opacity, 0.12)}.mdc-ripple-surface--internal-use-state-layer-custom-properties:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface--internal-use-state-layer-custom-properties:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-pressed-state-layer-opacity, 0.12)}.mdc-ripple-surface--internal-use-state-layer-custom-properties.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-pressed-state-layer-opacity, 0.12)}`
/**
 * @license
 * Copyright 2018 Google LLC
 * SPDX-License-Identifier: Apache-2.0
 */;let Bs=class extends Ds{};Bs.styles=[zs],Bs=o([(e=>t=>"function"==typeof t?((e,t)=>(customElements.define(e,t),t))(e,t):((e,t)=>{const{kind:i,elements:o}=t;return{kind:i,elements:o,finisher(t){customElements.define(e,t)}}})(e,t))("mwc-ripple")],Bs);let Fs=class extends ke{static get styles(){return[Be,Se,Te,Pe,Ie,A`
        div.card {
          padding: 0;
          margin: 0;
          background-color: var(
            --expansion-background-color,
            --token-colorBgContainer
          );
          color: var(--token-colorText);
        }

        #accordion > div.card > h3 {
          background-color: var(
            --expansion-header-background-color,
            --general-dialog-background-color,
            #ffffff
          );
          padding: var(--expansion-header-padding, 0);
          font-size: var(--expansion-header-font-size, 12px);
          font-weight: var(--expansion-header-font-weight, 600);
          font-family: var(--token-fontFamily);
          transition: all 0.35s;
        }
        #accordion > div.card > h3 > mwc-icon-button {
          --mdc-icon-button-size: 24px;
        }

        div.content {
          font-size: var(--expansion-content-font-size, 14px);
          word-break: keep-all;
          overflow-x: hidden;
        }

        #accordion div.content {
          max-height: 0;
          transition: all 0.35s;
          padding: 0;
          margin: 0;
        }

        #accordion[open] div.content {
          margin: var(--expansion-content-margin, 0);
          padding: var(--expansion-content-padding, 0);
          max-height: 100vh;
        }

        #accordion #left-icon,
        #accordion #right-icon {
          transition: all 0.35s;
          transform: rotate(0deg);
          margin: var(--expansion-icon-margin, 0 5px 0 0);
        }

        #accordion #left-icon {
          margin: var(--expansion-left-icon-margin, 0 5px 0 0);
        }

        #accordion #right-icon {
          margin: var(--expansion-right-icon-margin, 0 5px 0 0);
        }

        #accordion[open] #left-icon:not(.noRotate),
        #accordion[open] #right-icon:not(.noRotate) {
          transition: all 0.35s;
          transform: rotate(-180deg);
        }

        div[narrow] div.content {
          padding: 0;
          margin: 0;
        }

        div.content h4 {
          font-size: 14px;
          padding: 5px 15px 5px 12px;
          margin: 0 0 10px 0;
          display: block;
          height: 20px;
          border-bottom: 1px solid #ddd !important;
        }
      `]}_toggleAccordion(){this.expansionShell.hasAttribute("open")?this.expansionShell.removeAttribute("open"):this.expansionShell.setAttribute("open","true")}render(){return ae`
      <link rel="stylesheet" href="resources/custom.css" />
      <div .name="${this.name}" id="accordion" ${this.open?"open":""}>
        <div elevation="1" class="card" style="margin: 0;padding:0;">
          <h3
            class="horizontal justified layout"
            style="font-weight:bold"
            @click="${()=>this._toggleAccordion()}"
          >
            ${this.leftIconName&&ae`
              <mwc-icon-button
                id="left-icon"
                icon="${this.leftIconName}"
                class="${this.leftCustomFunction?"noRotate":""}"
                @click="${e=>{this.leftCustomFunction&&(e.stopPropagation(),this.leftCustomFunction())}}"
              ></mwc-icon-button>
            `}
            <span class="vertical center-justified layout">
              <slot name="title"></slot>
            </span>
            <div class="flex"></div>
            <slot name="action"></slot>
            ${this.rightIconName&&ae`
              <mwc-icon-button
                id="right-icon"
                icon="${this.rightIconName}"
                class="${this.rightCustomFunction?"noRotate":""}"
                @click="${e=>{this.rightCustomFunction&&(e.stopPropagation(),this.rightCustomFunction())}}"
              ></mwc-icon-button>
            `}
          </h3>
          <div class="content">
            <slot></slot>
          </div>
        </div>
      </div>
    `}constructor(){super(),this.name="",this.open=!1,this.leftIconName="",this.rightIconName="expand_more"}firstUpdated(){this.open&&this.expansionShell.setAttribute("open","true")}};o([Zt({type:String})],Fs.prototype,"name",void 0),o([Zt({type:Boolean})],Fs.prototype,"open",void 0),o([Zt({type:String})],Fs.prototype,"leftIconName",void 0),o([Zt({type:String})],Fs.prototype,"rightIconName",void 0),o([Zt({type:Function,attribute:!1})],Fs.prototype,"leftCustomFunction",void 0),o([Zt({type:Function,attribute:!1})],Fs.prototype,"rightCustomFunction",void 0),o([ei("#accordion")],Fs.prototype,"expansionShell",void 0),o([ei("#left-icon")],Fs.prototype,"leftIcon",void 0),o([ei("#right-icon")],Fs.prototype,"rightIcon",void 0),o([ei("div.content")],Fs.prototype,"contentArea",void 0),Fs=o([Xt("lablup-expansion")],Fs);
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */
const js=(e,t)=>"method"===t.kind&&t.descriptor&&!("value"in t.descriptor)?{...t,finisher(i){i.createProperty(t.key,e)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:t.key,initializer(){"function"==typeof t.initializer&&(this[t.key]=t.initializer.call(this))},finisher(i){i.createProperty(t.key,e)}},Vs=(e,t,i)=>{t.constructor.createProperty(i,e)};
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */function qs(e){return(t,i)=>void 0!==i?Vs(e,t,i):js(e,t)
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */}
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */
const Ws=({finisher:e,descriptor:t})=>(i,o)=>{var s;if(void 0===o){const o=null!==(s=i.originalKey)&&void 0!==s?s:i.key,n=null!=t?{kind:"method",placement:"prototype",key:o,descriptor:t(i.key)}:{...i,key:o};return null!=e&&(n.finisher=function(t){e(t,o)}),n}{const s=i.constructor;void 0!==t&&Object.defineProperty(i,o,t(o)),null==e||e(s,o)}}
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */;
/**
 * @license
 * Copyright 2021 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */
var Gs;null===(Gs=window.HTMLSlotElement)||void 0===Gs||Gs.prototype.assignedElements;
/**
 * @license
 * Copyright 2019 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */
const Ks=window,Xs=Ks.ShadowRoot&&(void 0===Ks.ShadyCSS||Ks.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Ys=Symbol(),Js=new WeakMap;let Zs=class{constructor(e,t,i){if(this._$cssResult$=!0,i!==Ys)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o;const t=this.t;if(Xs&&void 0===e){const i=void 0!==t&&1===t.length;i&&(e=Js.get(t)),void 0===e&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),i&&Js.set(t,e))}return e}toString(){return this.cssText}};const Qs=Xs?e=>e:e=>e instanceof CSSStyleSheet?(e=>{let t="";for(const i of e.cssRules)t+=i.cssText;return(e=>new Zs("string"==typeof e?e:e+"",void 0,Ys))(t)})(e):e
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */;var en;const tn=window,on=tn.trustedTypes,sn=on?on.emptyScript:"",nn=tn.reactiveElementPolyfillSupport,rn={toAttribute(e,t){switch(t){case Boolean:e=e?sn:null;break;case Object:case Array:e=null==e?e:JSON.stringify(e)}return e},fromAttribute(e,t){let i=e;switch(t){case Boolean:i=null!==e;break;case Number:i=null===e?null:Number(e);break;case Object:case Array:try{i=JSON.parse(e)}catch(e){i=null}}return i}},an=(e,t)=>t!==e&&(t==t||e==e),ln={attribute:!0,type:String,converter:rn,reflect:!1,hasChanged:an},dn="finalized";let cn=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this._$Eu()}static addInitializer(e){var t;this.finalize(),(null!==(t=this.h)&&void 0!==t?t:this.h=[]).push(e)}static get observedAttributes(){this.finalize();const e=[];return this.elementProperties.forEach(((t,i)=>{const o=this._$Ep(i,t);void 0!==o&&(this._$Ev.set(o,i),e.push(o))})),e}static createProperty(e,t=ln){if(t.state&&(t.attribute=!1),this.finalize(),this.elementProperties.set(e,t),!t.noAccessor&&!this.prototype.hasOwnProperty(e)){const i="symbol"==typeof e?Symbol():"__"+e,o=this.getPropertyDescriptor(e,i,t);void 0!==o&&Object.defineProperty(this.prototype,e,o)}}static getPropertyDescriptor(e,t,i){return{get(){return this[t]},set(o){const s=this[e];this[t]=o,this.requestUpdate(e,s,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)||ln}static finalize(){if(this.hasOwnProperty(dn))return!1;this[dn]=!0;const e=Object.getPrototypeOf(this);if(e.finalize(),void 0!==e.h&&(this.h=[...e.h]),this.elementProperties=new Map(e.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const e=this.properties,t=[...Object.getOwnPropertyNames(e),...Object.getOwnPropertySymbols(e)];for(const i of t)this.createProperty(i,e[i])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(e){const t=[];if(Array.isArray(e)){const i=new Set(e.flat(1/0).reverse());for(const e of i)t.unshift(Qs(e))}else void 0!==e&&t.push(Qs(e));return t}static _$Ep(e,t){const i=t.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof e?e.toLowerCase():void 0}_$Eu(){var e;this._$E_=new Promise((e=>this.enableUpdating=e)),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(e=this.constructor.h)||void 0===e||e.forEach((e=>e(this)))}addController(e){var t,i;(null!==(t=this._$ES)&&void 0!==t?t:this._$ES=[]).push(e),void 0!==this.renderRoot&&this.isConnected&&(null===(i=e.hostConnected)||void 0===i||i.call(e))}removeController(e){var t;null===(t=this._$ES)||void 0===t||t.splice(this._$ES.indexOf(e)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach(((e,t)=>{this.hasOwnProperty(t)&&(this._$Ei.set(t,this[t]),delete this[t])}))}createRenderRoot(){var e;const t=null!==(e=this.shadowRoot)&&void 0!==e?e:this.attachShadow(this.constructor.shadowRootOptions);return((e,t)=>{Xs?e.adoptedStyleSheets=t.map((e=>e instanceof CSSStyleSheet?e:e.styleSheet)):t.forEach((t=>{const i=document.createElement("style"),o=Ks.litNonce;void 0!==o&&i.setAttribute("nonce",o),i.textContent=t.cssText,e.appendChild(i)}))})(t,this.constructor.elementStyles),t}connectedCallback(){var e;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(e=this._$ES)||void 0===e||e.forEach((e=>{var t;return null===(t=e.hostConnected)||void 0===t?void 0:t.call(e)}))}enableUpdating(e){}disconnectedCallback(){var e;null===(e=this._$ES)||void 0===e||e.forEach((e=>{var t;return null===(t=e.hostDisconnected)||void 0===t?void 0:t.call(e)}))}attributeChangedCallback(e,t,i){this._$AK(e,i)}_$EO(e,t,i=ln){var o;const s=this.constructor._$Ep(e,i);if(void 0!==s&&!0===i.reflect){const n=(void 0!==(null===(o=i.converter)||void 0===o?void 0:o.toAttribute)?i.converter:rn).toAttribute(t,i.type);this._$El=e,null==n?this.removeAttribute(s):this.setAttribute(s,n),this._$El=null}}_$AK(e,t){var i;const o=this.constructor,s=o._$Ev.get(e);if(void 0!==s&&this._$El!==s){const e=o.getPropertyOptions(s),n="function"==typeof e.converter?{fromAttribute:e.converter}:void 0!==(null===(i=e.converter)||void 0===i?void 0:i.fromAttribute)?e.converter:rn;this._$El=s,this[s]=n.fromAttribute(t,e.type),this._$El=null}}requestUpdate(e,t,i){let o=!0;void 0!==e&&(((i=i||this.constructor.getPropertyOptions(e)).hasChanged||an)(this[e],t)?(this._$AL.has(e)||this._$AL.set(e,t),!0===i.reflect&&this._$El!==e&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(e,i))):o=!1),!this.isUpdatePending&&o&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(e){Promise.reject(e)}const e=this.scheduleUpdate();return null!=e&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var e;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach(((e,t)=>this[t]=e)),this._$Ei=void 0);let t=!1;const i=this._$AL;try{t=this.shouldUpdate(i),t?(this.willUpdate(i),null===(e=this._$ES)||void 0===e||e.forEach((e=>{var t;return null===(t=e.hostUpdate)||void 0===t?void 0:t.call(e)})),this.update(i)):this._$Ek()}catch(e){throw t=!1,this._$Ek(),e}t&&this._$AE(i)}willUpdate(e){}_$AE(e){var t;null===(t=this._$ES)||void 0===t||t.forEach((e=>{var t;return null===(t=e.hostUpdated)||void 0===t?void 0:t.call(e)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(e){return!0}update(e){void 0!==this._$EC&&(this._$EC.forEach(((e,t)=>this._$EO(t,this[t],e))),this._$EC=void 0),this._$Ek()}updated(e){}firstUpdated(e){}};
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */
var hn;cn[dn]=!0,cn.elementProperties=new Map,cn.elementStyles=[],cn.shadowRootOptions={mode:"open"},null==nn||nn({ReactiveElement:cn}),(null!==(en=tn.reactiveElementVersions)&&void 0!==en?en:tn.reactiveElementVersions=[]).push("1.6.3");const pn=window,un=pn.trustedTypes,mn=un?un.createPolicy("lit-html",{createHTML:e=>e}):void 0,gn="$lit$",fn=`lit$${(Math.random()+"").slice(9)}$`,_n="?"+fn,vn=`<${_n}>`,bn=document,yn=()=>bn.createComment(""),xn=e=>null===e||"object"!=typeof e&&"function"!=typeof e,wn=Array.isArray,$n="[ \t\n\f\r]",An=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,kn=/-->/g,En=/>/g,Sn=RegExp(`>|${$n}(?:([^\\s"'>=/]+)(${$n}*=${$n}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),Cn=/'/g,Tn=/"/g,Pn=/^(?:script|style|textarea|title)$/i,In=(e=>(t,...i)=>({_$litType$:e,strings:t,values:i}))(1),On=Symbol.for("lit-noChange"),Rn=Symbol.for("lit-nothing"),Nn=new WeakMap,Ln=bn.createTreeWalker(bn,129,null,!1);function Mn(e,t){if(!Array.isArray(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==mn?mn.createHTML(t):t}let Un=class e{constructor({strings:t,_$litType$:i},o){let s;this.parts=[];let n=0,r=0;const a=t.length-1,l=this.parts,[d,c]=((e,t)=>{const i=e.length-1,o=[];let s,n=2===t?"<svg>":"",r=An;for(let t=0;t<i;t++){const i=e[t];let a,l,d=-1,c=0;for(;c<i.length&&(r.lastIndex=c,l=r.exec(i),null!==l);)c=r.lastIndex,r===An?"!--"===l[1]?r=kn:void 0!==l[1]?r=En:void 0!==l[2]?(Pn.test(l[2])&&(s=RegExp("</"+l[2],"g")),r=Sn):void 0!==l[3]&&(r=Sn):r===Sn?">"===l[0]?(r=null!=s?s:An,d=-1):void 0===l[1]?d=-2:(d=r.lastIndex-l[2].length,a=l[1],r=void 0===l[3]?Sn:'"'===l[3]?Tn:Cn):r===Tn||r===Cn?r=Sn:r===kn||r===En?r=An:(r=Sn,s=void 0);const h=r===Sn&&e[t+1].startsWith("/>")?" ":"";n+=r===An?i+vn:d>=0?(o.push(a),i.slice(0,d)+gn+i.slice(d)+fn+h):i+fn+(-2===d?(o.push(void 0),t):h)}return[Mn(e,n+(e[i]||"<?>")+(2===t?"</svg>":"")),o]})(t,i);if(this.el=e.createElement(d,o),Ln.currentNode=this.el.content,2===i){const e=this.el.content,t=e.firstChild;t.remove(),e.append(...t.childNodes)}for(;null!==(s=Ln.nextNode())&&l.length<a;){if(1===s.nodeType){if(s.hasAttributes()){const e=[];for(const t of s.getAttributeNames())if(t.endsWith(gn)||t.startsWith(fn)){const i=c[r++];if(e.push(t),void 0!==i){const e=s.getAttribute(i.toLowerCase()+gn).split(fn),t=/([.?@])?(.*)/.exec(i);l.push({type:1,index:n,name:t[2],strings:e,ctor:"."===t[1]?Fn:"?"===t[1]?Vn:"@"===t[1]?qn:Bn})}else l.push({type:6,index:n})}for(const t of e)s.removeAttribute(t)}if(Pn.test(s.tagName)){const e=s.textContent.split(fn),t=e.length-1;if(t>0){s.textContent=un?un.emptyScript:"";for(let i=0;i<t;i++)s.append(e[i],yn()),Ln.nextNode(),l.push({type:2,index:++n});s.append(e[t],yn())}}}else if(8===s.nodeType)if(s.data===_n)l.push({type:2,index:n});else{let e=-1;for(;-1!==(e=s.data.indexOf(fn,e+1));)l.push({type:7,index:n}),e+=fn.length-1}n++}}static createElement(e,t){const i=bn.createElement("template");return i.innerHTML=e,i}};function Hn(e,t,i=e,o){var s,n,r,a;if(t===On)return t;let l=void 0!==o?null===(s=i._$Co)||void 0===s?void 0:s[o]:i._$Cl;const d=xn(t)?void 0:t._$litDirective$;return(null==l?void 0:l.constructor)!==d&&(null===(n=null==l?void 0:l._$AO)||void 0===n||n.call(l,!1),void 0===d?l=void 0:(l=new d(e),l._$AT(e,i,o)),void 0!==o?(null!==(r=(a=i)._$Co)&&void 0!==r?r:a._$Co=[])[o]=l:i._$Cl=l),void 0!==l&&(t=Hn(e,l._$AS(e,t.values),l,o)),t}let Dn=class{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){var t;const{el:{content:i},parts:o}=this._$AD,s=(null!==(t=null==e?void 0:e.creationScope)&&void 0!==t?t:bn).importNode(i,!0);Ln.currentNode=s;let n=Ln.nextNode(),r=0,a=0,l=o[0];for(;void 0!==l;){if(r===l.index){let t;2===l.type?t=new zn(n,n.nextSibling,this,e):1===l.type?t=new l.ctor(n,l.name,l.strings,this,e):6===l.type&&(t=new Wn(n,this,e)),this._$AV.push(t),l=o[++a]}r!==(null==l?void 0:l.index)&&(n=Ln.nextNode(),r++)}return Ln.currentNode=bn,s}v(e){let t=0;for(const i of this._$AV)void 0!==i&&(void 0!==i.strings?(i._$AI(e,i,t),t+=i.strings.length-2):i._$AI(e[t])),t++}},zn=class e{constructor(e,t,i,o){var s;this.type=2,this._$AH=Rn,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=i,this.options=o,this._$Cp=null===(s=null==o?void 0:o.isConnected)||void 0===s||s}get _$AU(){var e,t;return null!==(t=null===(e=this._$AM)||void 0===e?void 0:e._$AU)&&void 0!==t?t:this._$Cp}get parentNode(){let e=this._$AA.parentNode;const t=this._$AM;return void 0!==t&&11===(null==e?void 0:e.nodeType)&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=Hn(this,e,t),xn(e)?e===Rn||null==e||""===e?(this._$AH!==Rn&&this._$AR(),this._$AH=Rn):e!==this._$AH&&e!==On&&this._(e):void 0!==e._$litType$?this.g(e):void 0!==e.nodeType?this.$(e):(e=>wn(e)||"function"==typeof(null==e?void 0:e[Symbol.iterator]))(e)?this.T(e):this._(e)}k(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}$(e){this._$AH!==e&&(this._$AR(),this._$AH=this.k(e))}_(e){this._$AH!==Rn&&xn(this._$AH)?this._$AA.nextSibling.data=e:this.$(bn.createTextNode(e)),this._$AH=e}g(e){var t;const{values:i,_$litType$:o}=e,s="number"==typeof o?this._$AC(e):(void 0===o.el&&(o.el=Un.createElement(Mn(o.h,o.h[0]),this.options)),o);if((null===(t=this._$AH)||void 0===t?void 0:t._$AD)===s)this._$AH.v(i);else{const e=new Dn(s,this),t=e.u(this.options);e.v(i),this.$(t),this._$AH=e}}_$AC(e){let t=Nn.get(e.strings);return void 0===t&&Nn.set(e.strings,t=new Un(e)),t}T(t){wn(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let o,s=0;for(const n of t)s===i.length?i.push(o=new e(this.k(yn()),this.k(yn()),this,this.options)):o=i[s],o._$AI(n),s++;s<i.length&&(this._$AR(o&&o._$AB.nextSibling,s),i.length=s)}_$AR(e=this._$AA.nextSibling,t){var i;for(null===(i=this._$AP)||void 0===i||i.call(this,!1,!0,t);e&&e!==this._$AB;){const t=e.nextSibling;e.remove(),e=t}}setConnected(e){var t;void 0===this._$AM&&(this._$Cp=e,null===(t=this._$AP)||void 0===t||t.call(this,e))}},Bn=class{constructor(e,t,i,o,s){this.type=1,this._$AH=Rn,this._$AN=void 0,this.element=e,this.name=t,this._$AM=o,this.options=s,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=Rn}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(e,t=this,i,o){const s=this.strings;let n=!1;if(void 0===s)e=Hn(this,e,t,0),n=!xn(e)||e!==this._$AH&&e!==On,n&&(this._$AH=e);else{const o=e;let r,a;for(e=s[0],r=0;r<s.length-1;r++)a=Hn(this,o[i+r],t,r),a===On&&(a=this._$AH[r]),n||(n=!xn(a)||a!==this._$AH[r]),a===Rn?e=Rn:e!==Rn&&(e+=(null!=a?a:"")+s[r+1]),this._$AH[r]=a}n&&!o&&this.j(e)}j(e){e===Rn?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=e?e:"")}},Fn=class extends Bn{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===Rn?void 0:e}};const jn=un?un.emptyScript:"";let Vn=class extends Bn{constructor(){super(...arguments),this.type=4}j(e){e&&e!==Rn?this.element.setAttribute(this.name,jn):this.element.removeAttribute(this.name)}},qn=class extends Bn{constructor(e,t,i,o,s){super(e,t,i,o,s),this.type=5}_$AI(e,t=this){var i;if((e=null!==(i=Hn(this,e,t,0))&&void 0!==i?i:Rn)===On)return;const o=this._$AH,s=e===Rn&&o!==Rn||e.capture!==o.capture||e.once!==o.once||e.passive!==o.passive,n=e!==Rn&&(o===Rn||s);s&&this.element.removeEventListener(this.name,this,o),n&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var t,i;"function"==typeof this._$AH?this._$AH.call(null!==(i=null===(t=this.options)||void 0===t?void 0:t.host)&&void 0!==i?i:this.element,e):this._$AH.handleEvent(e)}},Wn=class{constructor(e,t,i){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(e){Hn(this,e)}};const Gn=pn.litHtmlPolyfillSupport;null==Gn||Gn(Un,zn),(null!==(hn=pn.litHtmlVersions)&&void 0!==hn?hn:pn.litHtmlVersions=[]).push("2.8.0");
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */
var Kn,Xn;let Yn=class extends cn{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e,t;const i=super.createRenderRoot();return null!==(e=(t=this.renderOptions).renderBefore)&&void 0!==e||(t.renderBefore=i.firstChild),i}update(e){const t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=((e,t,i)=>{var o,s;const n=null!==(o=null==i?void 0:i.renderBefore)&&void 0!==o?o:t;let r=n._$litPart$;if(void 0===r){const e=null!==(s=null==i?void 0:i.renderBefore)&&void 0!==s?s:null;n._$litPart$=r=new zn(t.insertBefore(yn(),e),e,void 0,null!=i?i:{})}return r._$AI(e),r})(t,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),null===(e=this._$Do)||void 0===e||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),null===(e=this._$Do)||void 0===e||e.setConnected(!1)}render(){return On}};Yn.finalized=!0,Yn._$litElement$=!0,null===(Kn=globalThis.litElementHydrateSupport)||void 0===Kn||Kn.call(globalThis,{LitElement:Yn});const Jn=globalThis.litElementPolyfillSupport;null==Jn||Jn({LitElement:Yn}),(null!==(Xn=globalThis.litElementVersions)&&void 0!==Xn?Xn:globalThis.litElementVersions=[]).push("3.3.3");
/**
 * @license
 * Copyright 2021 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */
var Zn;null===(Zn=window.HTMLSlotElement)||void 0===Zn||Zn.prototype.assignedElements;
/**
 * @license
 * Copyright 2021 Google LLC
 * SPDX-LIcense-Identifier: Apache-2.0
 */
const Qn=((e,...t)=>{const i=1===e.length?e[0]:t.reduce(((t,i,o)=>t+(e=>{if(!0===e._$cssResult$)return e.cssText;if("number"==typeof e)return e;throw Error("Value passed to 'css' function must be a 'css' function result: "+e+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+e[o+1]),e[0]);return new Zs(i,e,Ys)})`:host{font-family:var(--mdc-icon-font, "Material Icons");font-weight:normal;font-style:normal;font-size:var(--mdc-icon-size, 24px);line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale;font-feature-settings:"liga"}`
/**
 * @license
 * Copyright 2018 Google LLC
 * SPDX-License-Identifier: Apache-2.0
 */;let er=class extends Yn{render(){return In`<span><slot></slot></span>`}};function tr(e,t,i){if(void 0!==t)
/**
 * @license
 * Copyright 2021 Google LLC
 * SPDX-License-Identifier: Apache-2.0
 */
return function(e,t,i){const o=e.constructor;if(!i){const e=`__${t}`;if(!(i=o.getPropertyDescriptor(t,e)))throw new Error("@ariaProperty must be used after a @property decorator")}const s=i;let n="";if(!s.set)throw new Error(`@ariaProperty requires a setter for ${t}`);if(e.dispatchWizEvent)return i;const r={configurable:!0,enumerable:!0,set(e){if(""===n){const e=o.getPropertyOptions(t);n="string"==typeof e.attribute?e.attribute:t}this.hasAttribute(n)&&this.removeAttribute(n),s.set.call(this,e)}};return s.get&&(r.get=function(){return s.get.call(this)}),r}(e,t,i);throw new Error("@ariaProperty only supports TypeScript Decorators")}
/**
 * @license
 * Copyright 2020 Google LLC
 * SPDX-License-Identifier: Apache-2.0
 */er.styles=[Qn],er=o([(e=>t=>"function"==typeof t?((e,t)=>(customElements.define(e,t),t))(e,t):((e,t)=>{const{kind:i,elements:o}=t;return{kind:i,elements:o,finisher(t){customElements.define(e,t)}}})(e,t))("mwc-icon")],er);class ir{constructor(e){this.startPress=t=>{e().then((e=>{e&&e.startPress(t)}))},this.endPress=()=>{e().then((e=>{e&&e.endPress()}))},this.startFocus=()=>{e().then((e=>{e&&e.startFocus()}))},this.endFocus=()=>{e().then((e=>{e&&e.endFocus()}))},this.startHover=()=>{e().then((e=>{e&&e.startHover()}))},this.endHover=()=>{e().then((e=>{e&&e.endHover()}))}}}
/**
 * @license
 * Copyright 2019 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */const or=window,sr=or.ShadowRoot&&(void 0===or.ShadyCSS||or.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,nr=Symbol(),rr=new WeakMap;let ar=class{constructor(e,t,i){if(this._$cssResult$=!0,i!==nr)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o;const t=this.t;if(sr&&void 0===e){const i=void 0!==t&&1===t.length;i&&(e=rr.get(t)),void 0===e&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),i&&rr.set(t,e))}return e}toString(){return this.cssText}};const lr=sr?e=>e:e=>e instanceof CSSStyleSheet?(e=>{let t="";for(const i of e.cssRules)t+=i.cssText;return(e=>new ar("string"==typeof e?e:e+"",void 0,nr))(t)})(e):e
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */;var dr;const cr=window,hr=cr.trustedTypes,pr=hr?hr.emptyScript:"",ur=cr.reactiveElementPolyfillSupport,mr={toAttribute(e,t){switch(t){case Boolean:e=e?pr:null;break;case Object:case Array:e=null==e?e:JSON.stringify(e)}return e},fromAttribute(e,t){let i=e;switch(t){case Boolean:i=null!==e;break;case Number:i=null===e?null:Number(e);break;case Object:case Array:try{i=JSON.parse(e)}catch(e){i=null}}return i}},gr=(e,t)=>t!==e&&(t==t||e==e),fr={attribute:!0,type:String,converter:mr,reflect:!1,hasChanged:gr},_r="finalized";let vr=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this._$Eu()}static addInitializer(e){var t;this.finalize(),(null!==(t=this.h)&&void 0!==t?t:this.h=[]).push(e)}static get observedAttributes(){this.finalize();const e=[];return this.elementProperties.forEach(((t,i)=>{const o=this._$Ep(i,t);void 0!==o&&(this._$Ev.set(o,i),e.push(o))})),e}static createProperty(e,t=fr){if(t.state&&(t.attribute=!1),this.finalize(),this.elementProperties.set(e,t),!t.noAccessor&&!this.prototype.hasOwnProperty(e)){const i="symbol"==typeof e?Symbol():"__"+e,o=this.getPropertyDescriptor(e,i,t);void 0!==o&&Object.defineProperty(this.prototype,e,o)}}static getPropertyDescriptor(e,t,i){return{get(){return this[t]},set(o){const s=this[e];this[t]=o,this.requestUpdate(e,s,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)||fr}static finalize(){if(this.hasOwnProperty(_r))return!1;this[_r]=!0;const e=Object.getPrototypeOf(this);if(e.finalize(),void 0!==e.h&&(this.h=[...e.h]),this.elementProperties=new Map(e.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const e=this.properties,t=[...Object.getOwnPropertyNames(e),...Object.getOwnPropertySymbols(e)];for(const i of t)this.createProperty(i,e[i])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(e){const t=[];if(Array.isArray(e)){const i=new Set(e.flat(1/0).reverse());for(const e of i)t.unshift(lr(e))}else void 0!==e&&t.push(lr(e));return t}static _$Ep(e,t){const i=t.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof e?e.toLowerCase():void 0}_$Eu(){var e;this._$E_=new Promise((e=>this.enableUpdating=e)),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(e=this.constructor.h)||void 0===e||e.forEach((e=>e(this)))}addController(e){var t,i;(null!==(t=this._$ES)&&void 0!==t?t:this._$ES=[]).push(e),void 0!==this.renderRoot&&this.isConnected&&(null===(i=e.hostConnected)||void 0===i||i.call(e))}removeController(e){var t;null===(t=this._$ES)||void 0===t||t.splice(this._$ES.indexOf(e)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach(((e,t)=>{this.hasOwnProperty(t)&&(this._$Ei.set(t,this[t]),delete this[t])}))}createRenderRoot(){var e;const t=null!==(e=this.shadowRoot)&&void 0!==e?e:this.attachShadow(this.constructor.shadowRootOptions);return((e,t)=>{sr?e.adoptedStyleSheets=t.map((e=>e instanceof CSSStyleSheet?e:e.styleSheet)):t.forEach((t=>{const i=document.createElement("style"),o=or.litNonce;void 0!==o&&i.setAttribute("nonce",o),i.textContent=t.cssText,e.appendChild(i)}))})(t,this.constructor.elementStyles),t}connectedCallback(){var e;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(e=this._$ES)||void 0===e||e.forEach((e=>{var t;return null===(t=e.hostConnected)||void 0===t?void 0:t.call(e)}))}enableUpdating(e){}disconnectedCallback(){var e;null===(e=this._$ES)||void 0===e||e.forEach((e=>{var t;return null===(t=e.hostDisconnected)||void 0===t?void 0:t.call(e)}))}attributeChangedCallback(e,t,i){this._$AK(e,i)}_$EO(e,t,i=fr){var o;const s=this.constructor._$Ep(e,i);if(void 0!==s&&!0===i.reflect){const n=(void 0!==(null===(o=i.converter)||void 0===o?void 0:o.toAttribute)?i.converter:mr).toAttribute(t,i.type);this._$El=e,null==n?this.removeAttribute(s):this.setAttribute(s,n),this._$El=null}}_$AK(e,t){var i;const o=this.constructor,s=o._$Ev.get(e);if(void 0!==s&&this._$El!==s){const e=o.getPropertyOptions(s),n="function"==typeof e.converter?{fromAttribute:e.converter}:void 0!==(null===(i=e.converter)||void 0===i?void 0:i.fromAttribute)?e.converter:mr;this._$El=s,this[s]=n.fromAttribute(t,e.type),this._$El=null}}requestUpdate(e,t,i){let o=!0;void 0!==e&&(((i=i||this.constructor.getPropertyOptions(e)).hasChanged||gr)(this[e],t)?(this._$AL.has(e)||this._$AL.set(e,t),!0===i.reflect&&this._$El!==e&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(e,i))):o=!1),!this.isUpdatePending&&o&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(e){Promise.reject(e)}const e=this.scheduleUpdate();return null!=e&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var e;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach(((e,t)=>this[t]=e)),this._$Ei=void 0);let t=!1;const i=this._$AL;try{t=this.shouldUpdate(i),t?(this.willUpdate(i),null===(e=this._$ES)||void 0===e||e.forEach((e=>{var t;return null===(t=e.hostUpdate)||void 0===t?void 0:t.call(e)})),this.update(i)):this._$Ek()}catch(e){throw t=!1,this._$Ek(),e}t&&this._$AE(i)}willUpdate(e){}_$AE(e){var t;null===(t=this._$ES)||void 0===t||t.forEach((e=>{var t;return null===(t=e.hostUpdated)||void 0===t?void 0:t.call(e)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(e){return!0}update(e){void 0!==this._$EC&&(this._$EC.forEach(((e,t)=>this._$EO(t,this[t],e))),this._$EC=void 0),this._$Ek()}updated(e){}firstUpdated(e){}};
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */
var br;vr[_r]=!0,vr.elementProperties=new Map,vr.elementStyles=[],vr.shadowRootOptions={mode:"open"},null==ur||ur({ReactiveElement:vr}),(null!==(dr=cr.reactiveElementVersions)&&void 0!==dr?dr:cr.reactiveElementVersions=[]).push("1.6.3");const yr=window,xr=yr.trustedTypes,wr=xr?xr.createPolicy("lit-html",{createHTML:e=>e}):void 0,$r="$lit$",Ar=`lit$${(Math.random()+"").slice(9)}$`,kr="?"+Ar,Er=`<${kr}>`,Sr=document,Cr=()=>Sr.createComment(""),Tr=e=>null===e||"object"!=typeof e&&"function"!=typeof e,Pr=Array.isArray,Ir="[ \t\n\f\r]",Or=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Rr=/-->/g,Nr=/>/g,Lr=RegExp(`>|${Ir}(?:([^\\s"'>=/]+)(${Ir}*=${Ir}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),Mr=/'/g,Ur=/"/g,Hr=/^(?:script|style|textarea|title)$/i,Dr=(e=>(t,...i)=>({_$litType$:e,strings:t,values:i}))(1),zr=Symbol.for("lit-noChange"),Br=Symbol.for("lit-nothing"),Fr=new WeakMap,jr=Sr.createTreeWalker(Sr,129,null,!1);function Vr(e,t){if(!Array.isArray(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==wr?wr.createHTML(t):t}let qr=class e{constructor({strings:t,_$litType$:i},o){let s;this.parts=[];let n=0,r=0;const a=t.length-1,l=this.parts,[d,c]=((e,t)=>{const i=e.length-1,o=[];let s,n=2===t?"<svg>":"",r=Or;for(let t=0;t<i;t++){const i=e[t];let a,l,d=-1,c=0;for(;c<i.length&&(r.lastIndex=c,l=r.exec(i),null!==l);)c=r.lastIndex,r===Or?"!--"===l[1]?r=Rr:void 0!==l[1]?r=Nr:void 0!==l[2]?(Hr.test(l[2])&&(s=RegExp("</"+l[2],"g")),r=Lr):void 0!==l[3]&&(r=Lr):r===Lr?">"===l[0]?(r=null!=s?s:Or,d=-1):void 0===l[1]?d=-2:(d=r.lastIndex-l[2].length,a=l[1],r=void 0===l[3]?Lr:'"'===l[3]?Ur:Mr):r===Ur||r===Mr?r=Lr:r===Rr||r===Nr?r=Or:(r=Lr,s=void 0);const h=r===Lr&&e[t+1].startsWith("/>")?" ":"";n+=r===Or?i+Er:d>=0?(o.push(a),i.slice(0,d)+$r+i.slice(d)+Ar+h):i+Ar+(-2===d?(o.push(void 0),t):h)}return[Vr(e,n+(e[i]||"<?>")+(2===t?"</svg>":"")),o]})(t,i);if(this.el=e.createElement(d,o),jr.currentNode=this.el.content,2===i){const e=this.el.content,t=e.firstChild;t.remove(),e.append(...t.childNodes)}for(;null!==(s=jr.nextNode())&&l.length<a;){if(1===s.nodeType){if(s.hasAttributes()){const e=[];for(const t of s.getAttributeNames())if(t.endsWith($r)||t.startsWith(Ar)){const i=c[r++];if(e.push(t),void 0!==i){const e=s.getAttribute(i.toLowerCase()+$r).split(Ar),t=/([.?@])?(.*)/.exec(i);l.push({type:1,index:n,name:t[2],strings:e,ctor:"."===t[1]?Yr:"?"===t[1]?Zr:"@"===t[1]?Qr:Xr})}else l.push({type:6,index:n})}for(const t of e)s.removeAttribute(t)}if(Hr.test(s.tagName)){const e=s.textContent.split(Ar),t=e.length-1;if(t>0){s.textContent=xr?xr.emptyScript:"";for(let i=0;i<t;i++)s.append(e[i],Cr()),jr.nextNode(),l.push({type:2,index:++n});s.append(e[t],Cr())}}}else if(8===s.nodeType)if(s.data===kr)l.push({type:2,index:n});else{let e=-1;for(;-1!==(e=s.data.indexOf(Ar,e+1));)l.push({type:7,index:n}),e+=Ar.length-1}n++}}static createElement(e,t){const i=Sr.createElement("template");return i.innerHTML=e,i}};function Wr(e,t,i=e,o){var s,n,r,a;if(t===zr)return t;let l=void 0!==o?null===(s=i._$Co)||void 0===s?void 0:s[o]:i._$Cl;const d=Tr(t)?void 0:t._$litDirective$;return(null==l?void 0:l.constructor)!==d&&(null===(n=null==l?void 0:l._$AO)||void 0===n||n.call(l,!1),void 0===d?l=void 0:(l=new d(e),l._$AT(e,i,o)),void 0!==o?(null!==(r=(a=i)._$Co)&&void 0!==r?r:a._$Co=[])[o]=l:i._$Cl=l),void 0!==l&&(t=Wr(e,l._$AS(e,t.values),l,o)),t}let Gr=class{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){var t;const{el:{content:i},parts:o}=this._$AD,s=(null!==(t=null==e?void 0:e.creationScope)&&void 0!==t?t:Sr).importNode(i,!0);jr.currentNode=s;let n=jr.nextNode(),r=0,a=0,l=o[0];for(;void 0!==l;){if(r===l.index){let t;2===l.type?t=new Kr(n,n.nextSibling,this,e):1===l.type?t=new l.ctor(n,l.name,l.strings,this,e):6===l.type&&(t=new ea(n,this,e)),this._$AV.push(t),l=o[++a]}r!==(null==l?void 0:l.index)&&(n=jr.nextNode(),r++)}return jr.currentNode=Sr,s}v(e){let t=0;for(const i of this._$AV)void 0!==i&&(void 0!==i.strings?(i._$AI(e,i,t),t+=i.strings.length-2):i._$AI(e[t])),t++}},Kr=class e{constructor(e,t,i,o){var s;this.type=2,this._$AH=Br,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=i,this.options=o,this._$Cp=null===(s=null==o?void 0:o.isConnected)||void 0===s||s}get _$AU(){var e,t;return null!==(t=null===(e=this._$AM)||void 0===e?void 0:e._$AU)&&void 0!==t?t:this._$Cp}get parentNode(){let e=this._$AA.parentNode;const t=this._$AM;return void 0!==t&&11===(null==e?void 0:e.nodeType)&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=Wr(this,e,t),Tr(e)?e===Br||null==e||""===e?(this._$AH!==Br&&this._$AR(),this._$AH=Br):e!==this._$AH&&e!==zr&&this._(e):void 0!==e._$litType$?this.g(e):void 0!==e.nodeType?this.$(e):(e=>Pr(e)||"function"==typeof(null==e?void 0:e[Symbol.iterator]))(e)?this.T(e):this._(e)}k(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}$(e){this._$AH!==e&&(this._$AR(),this._$AH=this.k(e))}_(e){this._$AH!==Br&&Tr(this._$AH)?this._$AA.nextSibling.data=e:this.$(Sr.createTextNode(e)),this._$AH=e}g(e){var t;const{values:i,_$litType$:o}=e,s="number"==typeof o?this._$AC(e):(void 0===o.el&&(o.el=qr.createElement(Vr(o.h,o.h[0]),this.options)),o);if((null===(t=this._$AH)||void 0===t?void 0:t._$AD)===s)this._$AH.v(i);else{const e=new Gr(s,this),t=e.u(this.options);e.v(i),this.$(t),this._$AH=e}}_$AC(e){let t=Fr.get(e.strings);return void 0===t&&Fr.set(e.strings,t=new qr(e)),t}T(t){Pr(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let o,s=0;for(const n of t)s===i.length?i.push(o=new e(this.k(Cr()),this.k(Cr()),this,this.options)):o=i[s],o._$AI(n),s++;s<i.length&&(this._$AR(o&&o._$AB.nextSibling,s),i.length=s)}_$AR(e=this._$AA.nextSibling,t){var i;for(null===(i=this._$AP)||void 0===i||i.call(this,!1,!0,t);e&&e!==this._$AB;){const t=e.nextSibling;e.remove(),e=t}}setConnected(e){var t;void 0===this._$AM&&(this._$Cp=e,null===(t=this._$AP)||void 0===t||t.call(this,e))}},Xr=class{constructor(e,t,i,o,s){this.type=1,this._$AH=Br,this._$AN=void 0,this.element=e,this.name=t,this._$AM=o,this.options=s,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=Br}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(e,t=this,i,o){const s=this.strings;let n=!1;if(void 0===s)e=Wr(this,e,t,0),n=!Tr(e)||e!==this._$AH&&e!==zr,n&&(this._$AH=e);else{const o=e;let r,a;for(e=s[0],r=0;r<s.length-1;r++)a=Wr(this,o[i+r],t,r),a===zr&&(a=this._$AH[r]),n||(n=!Tr(a)||a!==this._$AH[r]),a===Br?e=Br:e!==Br&&(e+=(null!=a?a:"")+s[r+1]),this._$AH[r]=a}n&&!o&&this.j(e)}j(e){e===Br?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=e?e:"")}},Yr=class extends Xr{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===Br?void 0:e}};const Jr=xr?xr.emptyScript:"";let Zr=class extends Xr{constructor(){super(...arguments),this.type=4}j(e){e&&e!==Br?this.element.setAttribute(this.name,Jr):this.element.removeAttribute(this.name)}},Qr=class extends Xr{constructor(e,t,i,o,s){super(e,t,i,o,s),this.type=5}_$AI(e,t=this){var i;if((e=null!==(i=Wr(this,e,t,0))&&void 0!==i?i:Br)===zr)return;const o=this._$AH,s=e===Br&&o!==Br||e.capture!==o.capture||e.once!==o.once||e.passive!==o.passive,n=e!==Br&&(o===Br||s);s&&this.element.removeEventListener(this.name,this,o),n&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var t,i;"function"==typeof this._$AH?this._$AH.call(null!==(i=null===(t=this.options)||void 0===t?void 0:t.host)&&void 0!==i?i:this.element,e):this._$AH.handleEvent(e)}},ea=class{constructor(e,t,i){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(e){Wr(this,e)}};const ta=yr.litHtmlPolyfillSupport;null==ta||ta(qr,Kr),(null!==(br=yr.litHtmlVersions)&&void 0!==br?br:yr.litHtmlVersions=[]).push("2.8.0");
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */
var ia,oa;let sa=class extends vr{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e,t;const i=super.createRenderRoot();return null!==(e=(t=this.renderOptions).renderBefore)&&void 0!==e||(t.renderBefore=i.firstChild),i}update(e){const t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=((e,t,i)=>{var o,s;const n=null!==(o=null==i?void 0:i.renderBefore)&&void 0!==o?o:t;let r=n._$litPart$;if(void 0===r){const e=null!==(s=null==i?void 0:i.renderBefore)&&void 0!==s?s:null;n._$litPart$=r=new Kr(t.insertBefore(Cr(),e),e,void 0,null!=i?i:{})}return r._$AI(e),r})(t,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),null===(e=this._$Do)||void 0===e||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),null===(e=this._$Do)||void 0===e||e.setConnected(!1)}render(){return zr}};sa.finalized=!0,sa._$litElement$=!0,null===(ia=globalThis.litElementHydrateSupport)||void 0===ia||ia.call(globalThis,{LitElement:sa});const na=globalThis.litElementPolyfillSupport;null==na||na({LitElement:sa}),(null!==(oa=globalThis.litElementVersions)&&void 0!==oa?oa:globalThis.litElementVersions=[]).push("3.3.3");
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */
const ra=1;let aa=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,i){this._$Ct=e,this._$AM=t,this._$Ci=i}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}};
/**
 * @license
 * Copyright 2018 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */const la=(e=>(...t)=>({_$litDirective$:e,values:t}))(class extends aa{constructor(e){var t;if(super(e),e.type!==ra||"class"!==e.name||(null===(t=e.strings)||void 0===t?void 0:t.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(e){return" "+Object.keys(e).filter((t=>e[t])).join(" ")+" "}update(e,[t]){var i,o;if(void 0===this.it){this.it=new Set,void 0!==e.strings&&(this.nt=new Set(e.strings.join(" ").split(/\s/).filter((e=>""!==e))));for(const e in t)t[e]&&!(null===(i=this.nt)||void 0===i?void 0:i.has(e))&&this.it.add(e);return this.render(t)}const s=e.element.classList;this.it.forEach((e=>{e in t||(s.remove(e),this.it.delete(e))}));for(const e in t){const i=!!t[e];i===this.it.has(e)||(null===(o=this.nt)||void 0===o?void 0:o.has(e))||(i?(s.add(e),this.it.add(e)):(s.remove(e),this.it.delete(e)))}return zr}});
/**
 * @license
 * Copyright 2018 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */
/**
 * @license
 * Copyright 2019 Google LLC
 * SPDX-License-Identifier: Apache-2.0
 */
class da extends sa{constructor(){super(...arguments),this.raised=!1,this.unelevated=!1,this.outlined=!1,this.dense=!1,this.disabled=!1,this.trailingIcon=!1,this.fullwidth=!1,this.icon="",this.label="",this.expandContent=!1,this.shouldRenderRipple=!1,this.rippleHandlers=new ir((()=>(this.shouldRenderRipple=!0,this.ripple)))}renderOverlay(){return Dr``}renderRipple(){const e=this.raised||this.unelevated;return this.shouldRenderRipple?Dr`<mwc-ripple class="ripple" .primary="${!e}" .disabled="${this.disabled}"></mwc-ripple>`:""}focus(){const e=this.buttonElement;e&&(this.rippleHandlers.startFocus(),e.focus())}blur(){const e=this.buttonElement;e&&(this.rippleHandlers.endFocus(),e.blur())}getRenderClasses(){return{"mdc-button--raised":this.raised,"mdc-button--unelevated":this.unelevated,"mdc-button--outlined":this.outlined,"mdc-button--dense":this.dense}}render(){return Dr`
      <button
          id="button"
          class="mdc-button ${la(this.getRenderClasses())}"
          ?disabled="${this.disabled}"
          aria-label="${this.label||this.icon}"
          aria-haspopup="${(e=>null!=e?e:Br)(this.ariaHasPopup)}"
          @focus="${this.handleRippleFocus}"
          @blur="${this.handleRippleBlur}"
          @mousedown="${this.handleRippleActivate}"
          @mouseenter="${this.handleRippleMouseEnter}"
          @mouseleave="${this.handleRippleMouseLeave}"
          @touchstart="${this.handleRippleActivate}"
          @touchend="${this.handleRippleDeactivate}"
          @touchcancel="${this.handleRippleDeactivate}">
        ${this.renderOverlay()}
        ${this.renderRipple()}
        <span class="leading-icon">
          <slot name="icon">
            ${this.icon&&!this.trailingIcon?this.renderIcon():""}
          </slot>
        </span>
        <span class="mdc-button__label">${this.label}</span>
        <span class="slot-container ${la({flex:this.expandContent})}">
          <slot></slot>
        </span>
        <span class="trailing-icon">
          <slot name="trailingIcon">
            ${this.icon&&this.trailingIcon?this.renderIcon():""}
          </slot>
        </span>
      </button>`}renderIcon(){return Dr`
    <mwc-icon class="mdc-button__icon">
      ${this.icon}
    </mwc-icon>`}handleRippleActivate(e){const t=()=>{window.removeEventListener("mouseup",t),this.handleRippleDeactivate()};window.addEventListener("mouseup",t),this.rippleHandlers.startPress(e)}handleRippleDeactivate(){this.rippleHandlers.endPress()}handleRippleMouseEnter(){this.rippleHandlers.startHover()}handleRippleMouseLeave(){this.rippleHandlers.endHover()}handleRippleFocus(){this.rippleHandlers.startFocus()}handleRippleBlur(){this.rippleHandlers.endFocus()}}da.shadowRootOptions={mode:"open",delegatesFocus:!0},o([tr,qs({type:String,attribute:"aria-haspopup"})],da.prototype,"ariaHasPopup",void 0),o([qs({type:Boolean,reflect:!0})],da.prototype,"raised",void 0),o([qs({type:Boolean,reflect:!0})],da.prototype,"unelevated",void 0),o([qs({type:Boolean,reflect:!0})],da.prototype,"outlined",void 0),o([qs({type:Boolean})],da.prototype,"dense",void 0),o([qs({type:Boolean,reflect:!0})],da.prototype,"disabled",void 0),o([qs({type:Boolean,attribute:"trailingicon"})],da.prototype,"trailingIcon",void 0),o([qs({type:Boolean,reflect:!0})],da.prototype,"fullwidth",void 0),o([qs({type:String})],da.prototype,"icon",void 0),o([qs({type:String})],da.prototype,"label",void 0),o([qs({type:Boolean})],da.prototype,"expandContent",void 0),o([
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */
function(e,t){return Ws({descriptor:t=>{const i={get(){var t,i;return null!==(i=null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector(e))&&void 0!==i?i:null},enumerable:!0,configurable:!0};return i}})}
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */("#button")],da.prototype,"buttonElement",void 0),o([function(e){return Ws({descriptor:t=>({async get(){var t;return await this.updateComplete,null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector(e)},enumerable:!0,configurable:!0})})}("mwc-ripple")],da.prototype,"ripple",void 0),o([function(e){return qs({...e,state:!0})}()],da.prototype,"shouldRenderRipple",void 0),o([function(e){return Ws({finisher:(t,i)=>{Object.assign(t.prototype[i],e)}})}({passive:!0})],da.prototype,"handleRippleActivate",null);
/**
 * @license
 * Copyright 2021 Google LLC
 * SPDX-LIcense-Identifier: Apache-2.0
 */
const ca=((e,...t)=>{const i=1===e.length?e[0]:t.reduce(((t,i,o)=>t+(e=>{if(!0===e._$cssResult$)return e.cssText;if("number"==typeof e)return e;throw Error("Value passed to 'css' function must be a 'css' function result: "+e+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+e[o+1]),e[0]);return new ar(i,e,nr)})`.mdc-button{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-button-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:0.875rem;font-size:var(--mdc-typography-button-font-size, 0.875rem);line-height:2.25rem;line-height:var(--mdc-typography-button-line-height, 2.25rem);font-weight:500;font-weight:var(--mdc-typography-button-font-weight, 500);letter-spacing:0.0892857143em;letter-spacing:var(--mdc-typography-button-letter-spacing, 0.0892857143em);text-decoration:none;text-decoration:var(--mdc-typography-button-text-decoration, none);text-transform:uppercase;text-transform:var(--mdc-typography-button-text-transform, uppercase)}.mdc-touch-target-wrapper{display:inline}.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:0;opacity:var(--mdc-elevation-overlay-opacity, 0);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1);background-color:#fff;background-color:var(--mdc-elevation-overlay-color, #fff)}.mdc-button{position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:64px;border:none;outline:none;line-height:inherit;user-select:none;-webkit-appearance:none;overflow:visible;vertical-align:middle;background:transparent}.mdc-button .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-button::-moz-focus-inner{padding:0;border:0}.mdc-button:active{outline:none}.mdc-button:hover{cursor:pointer}.mdc-button:disabled{cursor:default;pointer-events:none}.mdc-button .mdc-button__icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top}[dir=rtl] .mdc-button .mdc-button__icon,.mdc-button .mdc-button__icon[dir=rtl]{margin-left:8px;margin-right:0}.mdc-button .mdc-button__label{position:relative}.mdc-button .mdc-button__focus-ring{display:none}@media screen and (forced-colors: active){.mdc-button.mdc-ripple-upgraded--background-focused .mdc-button__focus-ring,.mdc-button:not(.mdc-ripple-upgraded):focus .mdc-button__focus-ring{pointer-events:none;border:2px solid transparent;border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc( 100% + 4px );width:calc( 100% + 4px );display:block}}@media screen and (forced-colors: active)and (forced-colors: active){.mdc-button.mdc-ripple-upgraded--background-focused .mdc-button__focus-ring,.mdc-button:not(.mdc-ripple-upgraded):focus .mdc-button__focus-ring{border-color:CanvasText}}@media screen and (forced-colors: active){.mdc-button.mdc-ripple-upgraded--background-focused .mdc-button__focus-ring::after,.mdc-button:not(.mdc-ripple-upgraded):focus .mdc-button__focus-ring::after{content:"";border:2px solid transparent;border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}}@media screen and (forced-colors: active)and (forced-colors: active){.mdc-button.mdc-ripple-upgraded--background-focused .mdc-button__focus-ring::after,.mdc-button:not(.mdc-ripple-upgraded):focus .mdc-button__focus-ring::after{border-color:CanvasText}}.mdc-button .mdc-button__touch{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mdc-button__label+.mdc-button__icon{margin-left:8px;margin-right:0}[dir=rtl] .mdc-button__label+.mdc-button__icon,.mdc-button__label+.mdc-button__icon[dir=rtl]{margin-left:0;margin-right:8px}svg.mdc-button__icon{fill:currentColor}.mdc-button--touch{margin-top:6px;margin-bottom:6px}.mdc-button{padding:0 8px 0 8px}.mdc-button--unelevated{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--unelevated.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--unelevated.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--raised{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--raised.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--raised.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--outlined{border-style:solid;transition:border 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-button--outlined .mdc-button__ripple{border-style:solid;border-color:transparent}.mdc-button{height:36px;border-radius:4px;border-radius:var(--mdc-shape-small, 4px)}.mdc-button:not(:disabled){color:#6200ee;color:var(--mdc-theme-primary, #6200ee)}.mdc-button:disabled{color:rgba(0, 0, 0, 0.38)}.mdc-button .mdc-button__icon{font-size:1.125rem;width:1.125rem;height:1.125rem}.mdc-button .mdc-button__ripple{border-radius:4px;border-radius:var(--mdc-shape-small, 4px)}.mdc-button--raised,.mdc-button--unelevated{height:36px;border-radius:4px;border-radius:var(--mdc-shape-small, 4px)}.mdc-button--raised:not(:disabled),.mdc-button--unelevated:not(:disabled){background-color:#6200ee;background-color:var(--mdc-theme-primary, #6200ee)}.mdc-button--raised:disabled,.mdc-button--unelevated:disabled{background-color:rgba(0, 0, 0, 0.12)}.mdc-button--raised:not(:disabled),.mdc-button--unelevated:not(:disabled){color:#fff;color:var(--mdc-theme-on-primary, #fff)}.mdc-button--raised:disabled,.mdc-button--unelevated:disabled{color:rgba(0, 0, 0, 0.38)}.mdc-button--raised .mdc-button__icon,.mdc-button--unelevated .mdc-button__icon{font-size:1.125rem;width:1.125rem;height:1.125rem}.mdc-button--raised .mdc-button__ripple,.mdc-button--unelevated .mdc-button__ripple{border-radius:4px;border-radius:var(--mdc-shape-small, 4px)}.mdc-button--outlined{height:36px;border-radius:4px;border-radius:var(--mdc-shape-small, 4px);padding:0 15px 0 15px;border-width:1px}.mdc-button--outlined:not(:disabled){color:#6200ee;color:var(--mdc-theme-primary, #6200ee)}.mdc-button--outlined:disabled{color:rgba(0, 0, 0, 0.38)}.mdc-button--outlined .mdc-button__icon{font-size:1.125rem;width:1.125rem;height:1.125rem}.mdc-button--outlined .mdc-button__ripple{border-radius:4px;border-radius:var(--mdc-shape-small, 4px)}.mdc-button--outlined:not(:disabled){border-color:rgba(0, 0, 0, 0.12)}.mdc-button--outlined:disabled{border-color:rgba(0, 0, 0, 0.12)}.mdc-button--outlined.mdc-button--icon-trailing{padding:0 11px 0 15px}.mdc-button--outlined.mdc-button--icon-leading{padding:0 15px 0 11px}.mdc-button--outlined .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px;border-width:1px}.mdc-button--outlined .mdc-button__touch{left:calc(-1 * 1px);width:calc(100% + 2 * 1px)}.mdc-button--raised{box-shadow:0px 3px 1px -2px rgba(0, 0, 0, 0.2),0px 2px 2px 0px rgba(0, 0, 0, 0.14),0px 1px 5px 0px rgba(0,0,0,.12);transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-button--raised:hover,.mdc-button--raised:focus{box-shadow:0px 2px 4px -1px rgba(0, 0, 0, 0.2),0px 4px 5px 0px rgba(0, 0, 0, 0.14),0px 1px 10px 0px rgba(0,0,0,.12)}.mdc-button--raised:active{box-shadow:0px 5px 5px -3px rgba(0, 0, 0, 0.2),0px 8px 10px 1px rgba(0, 0, 0, 0.14),0px 3px 14px 2px rgba(0,0,0,.12)}.mdc-button--raised:disabled{box-shadow:0px 0px 0px 0px rgba(0, 0, 0, 0.2),0px 0px 0px 0px rgba(0, 0, 0, 0.14),0px 0px 0px 0px rgba(0,0,0,.12)}:host{display:inline-flex;outline:none;-webkit-tap-highlight-color:transparent;vertical-align:top}:host([fullwidth]){width:100%}:host([raised]),:host([unelevated]){--mdc-ripple-color:#fff;--mdc-ripple-focus-opacity:0.24;--mdc-ripple-hover-opacity:0.08;--mdc-ripple-press-opacity:0.24}.trailing-icon ::slotted(*),.trailing-icon .mdc-button__icon,.leading-icon ::slotted(*),.leading-icon .mdc-button__icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem}[dir=rtl] .trailing-icon ::slotted(*),[dir=rtl] .trailing-icon .mdc-button__icon,[dir=rtl] .leading-icon ::slotted(*),[dir=rtl] .leading-icon .mdc-button__icon,.trailing-icon ::slotted(*[dir=rtl]),.trailing-icon .mdc-button__icon[dir=rtl],.leading-icon ::slotted(*[dir=rtl]),.leading-icon .mdc-button__icon[dir=rtl]{margin-left:8px;margin-right:0}.trailing-icon ::slotted(*),.trailing-icon .mdc-button__icon{margin-left:8px;margin-right:0}[dir=rtl] .trailing-icon ::slotted(*),[dir=rtl] .trailing-icon .mdc-button__icon,.trailing-icon ::slotted(*[dir=rtl]),.trailing-icon .mdc-button__icon[dir=rtl]{margin-left:0;margin-right:8px}.slot-container{display:inline-flex;align-items:center;justify-content:center}.slot-container.flex{flex:auto}.mdc-button{flex:auto;overflow:hidden;padding-left:8px;padding-left:var(--mdc-button-horizontal-padding, 8px);padding-right:8px;padding-right:var(--mdc-button-horizontal-padding, 8px)}.mdc-button--raised{box-shadow:0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12);box-shadow:var(--mdc-button-raised-box-shadow, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12))}.mdc-button--raised:focus{box-shadow:0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12);box-shadow:var(--mdc-button-raised-box-shadow-focus, var(--mdc-button-raised-box-shadow-hover, 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12)))}.mdc-button--raised:hover{box-shadow:0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12);box-shadow:var(--mdc-button-raised-box-shadow-hover, 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12))}.mdc-button--raised:active{box-shadow:0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12);box-shadow:var(--mdc-button-raised-box-shadow-active, 0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12))}.mdc-button--raised:disabled{box-shadow:0px 0px 0px 0px rgba(0, 0, 0, 0.2), 0px 0px 0px 0px rgba(0, 0, 0, 0.14), 0px 0px 0px 0px rgba(0, 0, 0, 0.12);box-shadow:var(--mdc-button-raised-box-shadow-disabled, 0px 0px 0px 0px rgba(0, 0, 0, 0.2), 0px 0px 0px 0px rgba(0, 0, 0, 0.14), 0px 0px 0px 0px rgba(0, 0, 0, 0.12))}.mdc-button--raised,.mdc-button--unelevated{padding-left:16px;padding-left:var(--mdc-button-horizontal-padding, 16px);padding-right:16px;padding-right:var(--mdc-button-horizontal-padding, 16px)}.mdc-button--outlined{border-width:1px;border-width:var(--mdc-button-outline-width, 1px);padding-left:calc(16px - 1px);padding-left:calc(var(--mdc-button-horizontal-padding, 16px) - var(--mdc-button-outline-width, 1px));padding-right:calc(16px - 1px);padding-right:calc(var(--mdc-button-horizontal-padding, 16px) - var(--mdc-button-outline-width, 1px))}.mdc-button--outlined:not(:disabled){border-color:rgba(0, 0, 0, 0.12);border-color:var(--mdc-button-outline-color, rgba(0, 0, 0, 0.12))}.mdc-button--outlined .ripple{top:calc(-1 * 1px);top:calc(-1 * var(--mdc-button-outline-width, 1px));left:calc(-1 * 1px);left:calc(-1 * var(--mdc-button-outline-width, 1px));right:initial;right:initial;border-width:1px;border-width:var(--mdc-button-outline-width, 1px);border-style:solid;border-color:transparent}[dir=rtl] .mdc-button--outlined .ripple,.mdc-button--outlined .ripple[dir=rtl]{left:initial;left:initial;right:calc(-1 * 1px);right:calc(-1 * var(--mdc-button-outline-width, 1px))}.mdc-button--dense{height:28px;margin-top:0;margin-bottom:0}.mdc-button--dense .mdc-button__touch{height:100%}:host([disabled]){pointer-events:none}:host([disabled]) .mdc-button{color:rgba(0, 0, 0, 0.38);color:var(--mdc-button-disabled-ink-color, rgba(0, 0, 0, 0.38))}:host([disabled]) .mdc-button--raised,:host([disabled]) .mdc-button--unelevated{background-color:rgba(0, 0, 0, 0.12);background-color:var(--mdc-button-disabled-fill-color, rgba(0, 0, 0, 0.12))}:host([disabled]) .mdc-button--outlined{border-color:rgba(0, 0, 0, 0.12);border-color:var(--mdc-button-disabled-outline-color, rgba(0, 0, 0, 0.12))}`
/**
 * @license
 * Copyright 2018 Google LLC
 * SPDX-License-Identifier: Apache-2.0
 */;let ha=class extends da{};ha.styles=[ca],ha=o([(e=>t=>"function"==typeof t?((e,t)=>(customElements.define(e,t),t))(e,t):((e,t)=>{const{kind:i,elements:o}=t;return{kind:i,elements:o,finisher(t){customElements.define(e,t)}}})(e,t))("mwc-button")],ha);
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */
const pa=(e,t)=>"method"===t.kind&&t.descriptor&&!("value"in t.descriptor)?{...t,finisher(i){i.createProperty(t.key,e)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:t.key,initializer(){"function"==typeof t.initializer&&(this[t.key]=t.initializer.call(this))},finisher(i){i.createProperty(t.key,e)}},ua=(e,t,i)=>{t.constructor.createProperty(i,e)};
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */function ma(e){return(t,i)=>void 0!==i?ua(e,t,i):pa(e,t)
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */}
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */
const ga=({finisher:e,descriptor:t})=>(i,o)=>{var s;if(void 0===o){const o=null!==(s=i.originalKey)&&void 0!==s?s:i.key,n=null!=t?{kind:"method",placement:"prototype",key:o,descriptor:t(i.key)}:{...i,key:o};return null!=e&&(n.finisher=function(t){e(t,o)}),n}{const s=i.constructor;void 0!==t&&Object.defineProperty(i,o,t(o)),null==e||e(s,o)}}
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */;function fa(e){return ga({finisher:(t,i)=>{Object.assign(t.prototype[i],e)}})}
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */
/**
 * @license
 * Copyright 2021 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */
var _a;null===(_a=window.HTMLSlotElement)||void 0===_a||_a.prototype.assignedElements;
/**
 * @license
 * Copyright 2019 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */
const va=window,ba=va.ShadowRoot&&(void 0===va.ShadyCSS||va.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,ya=Symbol(),xa=new WeakMap;let wa=class{constructor(e,t,i){if(this._$cssResult$=!0,i!==ya)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o;const t=this.t;if(ba&&void 0===e){const i=void 0!==t&&1===t.length;i&&(e=xa.get(t)),void 0===e&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),i&&xa.set(t,e))}return e}toString(){return this.cssText}};const $a=ba?e=>e:e=>e instanceof CSSStyleSheet?(e=>{let t="";for(const i of e.cssRules)t+=i.cssText;return(e=>new wa("string"==typeof e?e:e+"",void 0,ya))(t)})(e):e
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */;var Aa;const ka=window,Ea=ka.trustedTypes,Sa=Ea?Ea.emptyScript:"",Ca=ka.reactiveElementPolyfillSupport,Ta={toAttribute(e,t){switch(t){case Boolean:e=e?Sa:null;break;case Object:case Array:e=null==e?e:JSON.stringify(e)}return e},fromAttribute(e,t){let i=e;switch(t){case Boolean:i=null!==e;break;case Number:i=null===e?null:Number(e);break;case Object:case Array:try{i=JSON.parse(e)}catch(e){i=null}}return i}},Pa=(e,t)=>t!==e&&(t==t||e==e),Ia={attribute:!0,type:String,converter:Ta,reflect:!1,hasChanged:Pa},Oa="finalized";let Ra=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this._$Eu()}static addInitializer(e){var t;this.finalize(),(null!==(t=this.h)&&void 0!==t?t:this.h=[]).push(e)}static get observedAttributes(){this.finalize();const e=[];return this.elementProperties.forEach(((t,i)=>{const o=this._$Ep(i,t);void 0!==o&&(this._$Ev.set(o,i),e.push(o))})),e}static createProperty(e,t=Ia){if(t.state&&(t.attribute=!1),this.finalize(),this.elementProperties.set(e,t),!t.noAccessor&&!this.prototype.hasOwnProperty(e)){const i="symbol"==typeof e?Symbol():"__"+e,o=this.getPropertyDescriptor(e,i,t);void 0!==o&&Object.defineProperty(this.prototype,e,o)}}static getPropertyDescriptor(e,t,i){return{get(){return this[t]},set(o){const s=this[e];this[t]=o,this.requestUpdate(e,s,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)||Ia}static finalize(){if(this.hasOwnProperty(Oa))return!1;this[Oa]=!0;const e=Object.getPrototypeOf(this);if(e.finalize(),void 0!==e.h&&(this.h=[...e.h]),this.elementProperties=new Map(e.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const e=this.properties,t=[...Object.getOwnPropertyNames(e),...Object.getOwnPropertySymbols(e)];for(const i of t)this.createProperty(i,e[i])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(e){const t=[];if(Array.isArray(e)){const i=new Set(e.flat(1/0).reverse());for(const e of i)t.unshift($a(e))}else void 0!==e&&t.push($a(e));return t}static _$Ep(e,t){const i=t.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof e?e.toLowerCase():void 0}_$Eu(){var e;this._$E_=new Promise((e=>this.enableUpdating=e)),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(e=this.constructor.h)||void 0===e||e.forEach((e=>e(this)))}addController(e){var t,i;(null!==(t=this._$ES)&&void 0!==t?t:this._$ES=[]).push(e),void 0!==this.renderRoot&&this.isConnected&&(null===(i=e.hostConnected)||void 0===i||i.call(e))}removeController(e){var t;null===(t=this._$ES)||void 0===t||t.splice(this._$ES.indexOf(e)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach(((e,t)=>{this.hasOwnProperty(t)&&(this._$Ei.set(t,this[t]),delete this[t])}))}createRenderRoot(){var e;const t=null!==(e=this.shadowRoot)&&void 0!==e?e:this.attachShadow(this.constructor.shadowRootOptions);return((e,t)=>{ba?e.adoptedStyleSheets=t.map((e=>e instanceof CSSStyleSheet?e:e.styleSheet)):t.forEach((t=>{const i=document.createElement("style"),o=va.litNonce;void 0!==o&&i.setAttribute("nonce",o),i.textContent=t.cssText,e.appendChild(i)}))})(t,this.constructor.elementStyles),t}connectedCallback(){var e;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(e=this._$ES)||void 0===e||e.forEach((e=>{var t;return null===(t=e.hostConnected)||void 0===t?void 0:t.call(e)}))}enableUpdating(e){}disconnectedCallback(){var e;null===(e=this._$ES)||void 0===e||e.forEach((e=>{var t;return null===(t=e.hostDisconnected)||void 0===t?void 0:t.call(e)}))}attributeChangedCallback(e,t,i){this._$AK(e,i)}_$EO(e,t,i=Ia){var o;const s=this.constructor._$Ep(e,i);if(void 0!==s&&!0===i.reflect){const n=(void 0!==(null===(o=i.converter)||void 0===o?void 0:o.toAttribute)?i.converter:Ta).toAttribute(t,i.type);this._$El=e,null==n?this.removeAttribute(s):this.setAttribute(s,n),this._$El=null}}_$AK(e,t){var i;const o=this.constructor,s=o._$Ev.get(e);if(void 0!==s&&this._$El!==s){const e=o.getPropertyOptions(s),n="function"==typeof e.converter?{fromAttribute:e.converter}:void 0!==(null===(i=e.converter)||void 0===i?void 0:i.fromAttribute)?e.converter:Ta;this._$El=s,this[s]=n.fromAttribute(t,e.type),this._$El=null}}requestUpdate(e,t,i){let o=!0;void 0!==e&&(((i=i||this.constructor.getPropertyOptions(e)).hasChanged||Pa)(this[e],t)?(this._$AL.has(e)||this._$AL.set(e,t),!0===i.reflect&&this._$El!==e&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(e,i))):o=!1),!this.isUpdatePending&&o&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(e){Promise.reject(e)}const e=this.scheduleUpdate();return null!=e&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var e;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach(((e,t)=>this[t]=e)),this._$Ei=void 0);let t=!1;const i=this._$AL;try{t=this.shouldUpdate(i),t?(this.willUpdate(i),null===(e=this._$ES)||void 0===e||e.forEach((e=>{var t;return null===(t=e.hostUpdate)||void 0===t?void 0:t.call(e)})),this.update(i)):this._$Ek()}catch(e){throw t=!1,this._$Ek(),e}t&&this._$AE(i)}willUpdate(e){}_$AE(e){var t;null===(t=this._$ES)||void 0===t||t.forEach((e=>{var t;return null===(t=e.hostUpdated)||void 0===t?void 0:t.call(e)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(e){return!0}update(e){void 0!==this._$EC&&(this._$EC.forEach(((e,t)=>this._$EO(t,this[t],e))),this._$EC=void 0),this._$Ek()}updated(e){}firstUpdated(e){}};
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */
var Na;Ra[Oa]=!0,Ra.elementProperties=new Map,Ra.elementStyles=[],Ra.shadowRootOptions={mode:"open"},null==Ca||Ca({ReactiveElement:Ra}),(null!==(Aa=ka.reactiveElementVersions)&&void 0!==Aa?Aa:ka.reactiveElementVersions=[]).push("1.6.3");const La=window,Ma=La.trustedTypes,Ua=Ma?Ma.createPolicy("lit-html",{createHTML:e=>e}):void 0,Ha="$lit$",Da=`lit$${(Math.random()+"").slice(9)}$`,za="?"+Da,Ba=`<${za}>`,Fa=document,ja=()=>Fa.createComment(""),Va=e=>null===e||"object"!=typeof e&&"function"!=typeof e,qa=Array.isArray,Wa="[ \t\n\f\r]",Ga=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Ka=/-->/g,Xa=/>/g,Ya=RegExp(`>|${Wa}(?:([^\\s"'>=/]+)(${Wa}*=${Wa}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),Ja=/'/g,Za=/"/g,Qa=/^(?:script|style|textarea|title)$/i,el=(e=>(t,...i)=>({_$litType$:e,strings:t,values:i}))(1),tl=Symbol.for("lit-noChange"),il=Symbol.for("lit-nothing"),ol=new WeakMap,sl=Fa.createTreeWalker(Fa,129,null,!1);function nl(e,t){if(!Array.isArray(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==Ua?Ua.createHTML(t):t}let rl=class e{constructor({strings:t,_$litType$:i},o){let s;this.parts=[];let n=0,r=0;const a=t.length-1,l=this.parts,[d,c]=((e,t)=>{const i=e.length-1,o=[];let s,n=2===t?"<svg>":"",r=Ga;for(let t=0;t<i;t++){const i=e[t];let a,l,d=-1,c=0;for(;c<i.length&&(r.lastIndex=c,l=r.exec(i),null!==l);)c=r.lastIndex,r===Ga?"!--"===l[1]?r=Ka:void 0!==l[1]?r=Xa:void 0!==l[2]?(Qa.test(l[2])&&(s=RegExp("</"+l[2],"g")),r=Ya):void 0!==l[3]&&(r=Ya):r===Ya?">"===l[0]?(r=null!=s?s:Ga,d=-1):void 0===l[1]?d=-2:(d=r.lastIndex-l[2].length,a=l[1],r=void 0===l[3]?Ya:'"'===l[3]?Za:Ja):r===Za||r===Ja?r=Ya:r===Ka||r===Xa?r=Ga:(r=Ya,s=void 0);const h=r===Ya&&e[t+1].startsWith("/>")?" ":"";n+=r===Ga?i+Ba:d>=0?(o.push(a),i.slice(0,d)+Ha+i.slice(d)+Da+h):i+Da+(-2===d?(o.push(void 0),t):h)}return[nl(e,n+(e[i]||"<?>")+(2===t?"</svg>":"")),o]})(t,i);if(this.el=e.createElement(d,o),sl.currentNode=this.el.content,2===i){const e=this.el.content,t=e.firstChild;t.remove(),e.append(...t.childNodes)}for(;null!==(s=sl.nextNode())&&l.length<a;){if(1===s.nodeType){if(s.hasAttributes()){const e=[];for(const t of s.getAttributeNames())if(t.endsWith(Ha)||t.startsWith(Da)){const i=c[r++];if(e.push(t),void 0!==i){const e=s.getAttribute(i.toLowerCase()+Ha).split(Da),t=/([.?@])?(.*)/.exec(i);l.push({type:1,index:n,name:t[2],strings:e,ctor:"."===t[1]?hl:"?"===t[1]?ul:"@"===t[1]?ml:cl})}else l.push({type:6,index:n})}for(const t of e)s.removeAttribute(t)}if(Qa.test(s.tagName)){const e=s.textContent.split(Da),t=e.length-1;if(t>0){s.textContent=Ma?Ma.emptyScript:"";for(let i=0;i<t;i++)s.append(e[i],ja()),sl.nextNode(),l.push({type:2,index:++n});s.append(e[t],ja())}}}else if(8===s.nodeType)if(s.data===za)l.push({type:2,index:n});else{let e=-1;for(;-1!==(e=s.data.indexOf(Da,e+1));)l.push({type:7,index:n}),e+=Da.length-1}n++}}static createElement(e,t){const i=Fa.createElement("template");return i.innerHTML=e,i}};function al(e,t,i=e,o){var s,n,r,a;if(t===tl)return t;let l=void 0!==o?null===(s=i._$Co)||void 0===s?void 0:s[o]:i._$Cl;const d=Va(t)?void 0:t._$litDirective$;return(null==l?void 0:l.constructor)!==d&&(null===(n=null==l?void 0:l._$AO)||void 0===n||n.call(l,!1),void 0===d?l=void 0:(l=new d(e),l._$AT(e,i,o)),void 0!==o?(null!==(r=(a=i)._$Co)&&void 0!==r?r:a._$Co=[])[o]=l:i._$Cl=l),void 0!==l&&(t=al(e,l._$AS(e,t.values),l,o)),t}let ll=class{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){var t;const{el:{content:i},parts:o}=this._$AD,s=(null!==(t=null==e?void 0:e.creationScope)&&void 0!==t?t:Fa).importNode(i,!0);sl.currentNode=s;let n=sl.nextNode(),r=0,a=0,l=o[0];for(;void 0!==l;){if(r===l.index){let t;2===l.type?t=new dl(n,n.nextSibling,this,e):1===l.type?t=new l.ctor(n,l.name,l.strings,this,e):6===l.type&&(t=new gl(n,this,e)),this._$AV.push(t),l=o[++a]}r!==(null==l?void 0:l.index)&&(n=sl.nextNode(),r++)}return sl.currentNode=Fa,s}v(e){let t=0;for(const i of this._$AV)void 0!==i&&(void 0!==i.strings?(i._$AI(e,i,t),t+=i.strings.length-2):i._$AI(e[t])),t++}},dl=class e{constructor(e,t,i,o){var s;this.type=2,this._$AH=il,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=i,this.options=o,this._$Cp=null===(s=null==o?void 0:o.isConnected)||void 0===s||s}get _$AU(){var e,t;return null!==(t=null===(e=this._$AM)||void 0===e?void 0:e._$AU)&&void 0!==t?t:this._$Cp}get parentNode(){let e=this._$AA.parentNode;const t=this._$AM;return void 0!==t&&11===(null==e?void 0:e.nodeType)&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=al(this,e,t),Va(e)?e===il||null==e||""===e?(this._$AH!==il&&this._$AR(),this._$AH=il):e!==this._$AH&&e!==tl&&this._(e):void 0!==e._$litType$?this.g(e):void 0!==e.nodeType?this.$(e):(e=>qa(e)||"function"==typeof(null==e?void 0:e[Symbol.iterator]))(e)?this.T(e):this._(e)}k(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}$(e){this._$AH!==e&&(this._$AR(),this._$AH=this.k(e))}_(e){this._$AH!==il&&Va(this._$AH)?this._$AA.nextSibling.data=e:this.$(Fa.createTextNode(e)),this._$AH=e}g(e){var t;const{values:i,_$litType$:o}=e,s="number"==typeof o?this._$AC(e):(void 0===o.el&&(o.el=rl.createElement(nl(o.h,o.h[0]),this.options)),o);if((null===(t=this._$AH)||void 0===t?void 0:t._$AD)===s)this._$AH.v(i);else{const e=new ll(s,this),t=e.u(this.options);e.v(i),this.$(t),this._$AH=e}}_$AC(e){let t=ol.get(e.strings);return void 0===t&&ol.set(e.strings,t=new rl(e)),t}T(t){qa(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let o,s=0;for(const n of t)s===i.length?i.push(o=new e(this.k(ja()),this.k(ja()),this,this.options)):o=i[s],o._$AI(n),s++;s<i.length&&(this._$AR(o&&o._$AB.nextSibling,s),i.length=s)}_$AR(e=this._$AA.nextSibling,t){var i;for(null===(i=this._$AP)||void 0===i||i.call(this,!1,!0,t);e&&e!==this._$AB;){const t=e.nextSibling;e.remove(),e=t}}setConnected(e){var t;void 0===this._$AM&&(this._$Cp=e,null===(t=this._$AP)||void 0===t||t.call(this,e))}},cl=class{constructor(e,t,i,o,s){this.type=1,this._$AH=il,this._$AN=void 0,this.element=e,this.name=t,this._$AM=o,this.options=s,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=il}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(e,t=this,i,o){const s=this.strings;let n=!1;if(void 0===s)e=al(this,e,t,0),n=!Va(e)||e!==this._$AH&&e!==tl,n&&(this._$AH=e);else{const o=e;let r,a;for(e=s[0],r=0;r<s.length-1;r++)a=al(this,o[i+r],t,r),a===tl&&(a=this._$AH[r]),n||(n=!Va(a)||a!==this._$AH[r]),a===il?e=il:e!==il&&(e+=(null!=a?a:"")+s[r+1]),this._$AH[r]=a}n&&!o&&this.j(e)}j(e){e===il?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=e?e:"")}},hl=class extends cl{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===il?void 0:e}};const pl=Ma?Ma.emptyScript:"";let ul=class extends cl{constructor(){super(...arguments),this.type=4}j(e){e&&e!==il?this.element.setAttribute(this.name,pl):this.element.removeAttribute(this.name)}},ml=class extends cl{constructor(e,t,i,o,s){super(e,t,i,o,s),this.type=5}_$AI(e,t=this){var i;if((e=null!==(i=al(this,e,t,0))&&void 0!==i?i:il)===tl)return;const o=this._$AH,s=e===il&&o!==il||e.capture!==o.capture||e.once!==o.once||e.passive!==o.passive,n=e!==il&&(o===il||s);s&&this.element.removeEventListener(this.name,this,o),n&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var t,i;"function"==typeof this._$AH?this._$AH.call(null!==(i=null===(t=this.options)||void 0===t?void 0:t.host)&&void 0!==i?i:this.element,e):this._$AH.handleEvent(e)}},gl=class{constructor(e,t,i){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(e){al(this,e)}};const fl=La.litHtmlPolyfillSupport;null==fl||fl(rl,dl),(null!==(Na=La.litHtmlVersions)&&void 0!==Na?Na:La.litHtmlVersions=[]).push("2.8.0");
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */
var _l,vl;let bl=class extends Ra{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e,t;const i=super.createRenderRoot();return null!==(e=(t=this.renderOptions).renderBefore)&&void 0!==e||(t.renderBefore=i.firstChild),i}update(e){const t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=((e,t,i)=>{var o,s;const n=null!==(o=null==i?void 0:i.renderBefore)&&void 0!==o?o:t;let r=n._$litPart$;if(void 0===r){const e=null!==(s=null==i?void 0:i.renderBefore)&&void 0!==s?s:null;n._$litPart$=r=new dl(t.insertBefore(ja(),e),e,void 0,null!=i?i:{})}return r._$AI(e),r})(t,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),null===(e=this._$Do)||void 0===e||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),null===(e=this._$Do)||void 0===e||e.setConnected(!1)}render(){return tl}};bl.finalized=!0,bl._$litElement$=!0,null===(_l=globalThis.litElementHydrateSupport)||void 0===_l||_l.call(globalThis,{LitElement:bl});const yl=globalThis.litElementPolyfillSupport;null==yl||yl({LitElement:bl}),(null!==(vl=globalThis.litElementVersions)&&void 0!==vl?vl:globalThis.litElementVersions=[]).push("3.3.3");
/**
 * @license
 * Copyright 2018 Google LLC
 * SPDX-License-Identifier: Apache-2.0
 */
class xl extends bl{constructor(){super(...arguments),this.disabled=!1,this.icon="",this.shouldRenderRipple=!1,this.rippleHandlers=new ir((()=>(this.shouldRenderRipple=!0,this.ripple)))}renderRipple(){return this.shouldRenderRipple?el`
            <mwc-ripple
                .disabled="${this.disabled}"
                unbounded>
            </mwc-ripple>`:""}focus(){const e=this.buttonElement;e&&(this.rippleHandlers.startFocus(),e.focus())}blur(){const e=this.buttonElement;e&&(this.rippleHandlers.endFocus(),e.blur())}render(){return el`<button
        class="mdc-icon-button mdc-icon-button--display-flex"
        aria-label="${this.ariaLabel||this.icon}"
        aria-haspopup="${(e=>null!=e?e:il)(this.ariaHasPopup)}"
        ?disabled="${this.disabled}"
        @focus="${this.handleRippleFocus}"
        @blur="${this.handleRippleBlur}"
        @mousedown="${this.handleRippleMouseDown}"
        @mouseenter="${this.handleRippleMouseEnter}"
        @mouseleave="${this.handleRippleMouseLeave}"
        @touchstart="${this.handleRippleTouchStart}"
        @touchend="${this.handleRippleDeactivate}"
        @touchcancel="${this.handleRippleDeactivate}"
    >${this.renderRipple()}
    ${this.icon?el`<i class="material-icons">${this.icon}</i>`:""}
    <span
      ><slot></slot
    ></span>
  </button>`}handleRippleMouseDown(e){const t=()=>{window.removeEventListener("mouseup",t),this.handleRippleDeactivate()};window.addEventListener("mouseup",t),this.rippleHandlers.startPress(e)}handleRippleTouchStart(e){this.rippleHandlers.startPress(e)}handleRippleDeactivate(){this.rippleHandlers.endPress()}handleRippleMouseEnter(){this.rippleHandlers.startHover()}handleRippleMouseLeave(){this.rippleHandlers.endHover()}handleRippleFocus(){this.rippleHandlers.startFocus()}handleRippleBlur(){this.rippleHandlers.endFocus()}}o([ma({type:Boolean,reflect:!0})],xl.prototype,"disabled",void 0),o([ma({type:String})],xl.prototype,"icon",void 0),o([tr,ma({type:String,attribute:"aria-label"})],xl.prototype,"ariaLabel",void 0),o([tr,ma({type:String,attribute:"aria-haspopup"})],xl.prototype,"ariaHasPopup",void 0),o([function(e,t){return ga({descriptor:t=>{const i={get(){var t,i;return null!==(i=null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector(e))&&void 0!==i?i:null},enumerable:!0,configurable:!0};return i}})}
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */("button")],xl.prototype,"buttonElement",void 0),o([function(e){return ga({descriptor:t=>({async get(){var t;return await this.updateComplete,null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector(e)},enumerable:!0,configurable:!0})})}("mwc-ripple")],xl.prototype,"ripple",void 0),o([function(e){return ma({...e,state:!0})}()],xl.prototype,"shouldRenderRipple",void 0),o([fa({passive:!0})],xl.prototype,"handleRippleMouseDown",null),o([fa({passive:!0})],xl.prototype,"handleRippleTouchStart",null);
/**
 * @license
 * Copyright 2021 Google LLC
 * SPDX-LIcense-Identifier: Apache-2.0
 */
const wl=((e,...t)=>{const i=1===e.length?e[0]:t.reduce(((t,i,o)=>t+(e=>{if(!0===e._$cssResult$)return e.cssText;if("number"==typeof e)return e;throw Error("Value passed to 'css' function must be a 'css' function result: "+e+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+e[o+1]),e[0]);return new wa(i,e,ya)})`.material-icons{font-family:var(--mdc-icon-font, "Material Icons");font-weight:normal;font-style:normal;font-size:var(--mdc-icon-size, 24px);line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale;font-feature-settings:"liga"}.mdc-icon-button{font-size:24px;width:48px;height:48px;padding:12px}.mdc-icon-button .mdc-icon-button__focus-ring{display:none}.mdc-icon-button.mdc-ripple-upgraded--background-focused .mdc-icon-button__focus-ring,.mdc-icon-button:not(.mdc-ripple-upgraded):focus .mdc-icon-button__focus-ring{display:block;max-height:48px;max-width:48px}@media screen and (forced-colors: active){.mdc-icon-button.mdc-ripple-upgraded--background-focused .mdc-icon-button__focus-ring,.mdc-icon-button:not(.mdc-ripple-upgraded):focus .mdc-icon-button__focus-ring{pointer-events:none;border:2px solid transparent;border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:100%;width:100%}}@media screen and (forced-colors: active)and (forced-colors: active){.mdc-icon-button.mdc-ripple-upgraded--background-focused .mdc-icon-button__focus-ring,.mdc-icon-button:not(.mdc-ripple-upgraded):focus .mdc-icon-button__focus-ring{border-color:CanvasText}}@media screen and (forced-colors: active){.mdc-icon-button.mdc-ripple-upgraded--background-focused .mdc-icon-button__focus-ring::after,.mdc-icon-button:not(.mdc-ripple-upgraded):focus .mdc-icon-button__focus-ring::after{content:"";border:2px solid transparent;border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}}@media screen and (forced-colors: active)and (forced-colors: active){.mdc-icon-button.mdc-ripple-upgraded--background-focused .mdc-icon-button__focus-ring::after,.mdc-icon-button:not(.mdc-ripple-upgraded):focus .mdc-icon-button__focus-ring::after{border-color:CanvasText}}.mdc-icon-button.mdc-icon-button--reduced-size .mdc-icon-button__ripple{width:40px;height:40px;margin-top:4px;margin-bottom:4px;margin-right:4px;margin-left:4px}.mdc-icon-button.mdc-icon-button--reduced-size.mdc-ripple-upgraded--background-focused .mdc-icon-button__focus-ring,.mdc-icon-button.mdc-icon-button--reduced-size:not(.mdc-ripple-upgraded):focus .mdc-icon-button__focus-ring{max-height:40px;max-width:40px}.mdc-icon-button .mdc-icon-button__touch{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}.mdc-icon-button:disabled{color:rgba(0, 0, 0, 0.38);color:var(--mdc-theme-text-disabled-on-light, rgba(0, 0, 0, 0.38))}.mdc-icon-button svg,.mdc-icon-button img{width:24px;height:24px}.mdc-icon-button{display:inline-block;position:relative;box-sizing:border-box;border:none;outline:none;background-color:transparent;fill:currentColor;color:inherit;text-decoration:none;cursor:pointer;user-select:none;z-index:0;overflow:visible}.mdc-icon-button .mdc-icon-button__touch{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}.mdc-icon-button:disabled{cursor:default;pointer-events:none}.mdc-icon-button--display-flex{align-items:center;display:inline-flex;justify-content:center}.mdc-icon-button__icon{display:inline-block}.mdc-icon-button__icon.mdc-icon-button__icon--on{display:none}.mdc-icon-button--on .mdc-icon-button__icon{display:none}.mdc-icon-button--on .mdc-icon-button__icon.mdc-icon-button__icon--on{display:inline-block}.mdc-icon-button__link{height:100%;left:0;outline:none;position:absolute;top:0;width:100%}.mdc-icon-button{display:inline-block;position:relative;box-sizing:border-box;border:none;outline:none;background-color:transparent;fill:currentColor;color:inherit;text-decoration:none;cursor:pointer;user-select:none;z-index:0;overflow:visible}.mdc-icon-button .mdc-icon-button__touch{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}.mdc-icon-button:disabled{cursor:default;pointer-events:none}.mdc-icon-button--display-flex{align-items:center;display:inline-flex;justify-content:center}.mdc-icon-button__icon{display:inline-block}.mdc-icon-button__icon.mdc-icon-button__icon--on{display:none}.mdc-icon-button--on .mdc-icon-button__icon{display:none}.mdc-icon-button--on .mdc-icon-button__icon.mdc-icon-button__icon--on{display:inline-block}.mdc-icon-button__link{height:100%;left:0;outline:none;position:absolute;top:0;width:100%}:host{display:inline-block;outline:none}:host([disabled]){pointer-events:none}.mdc-icon-button i,.mdc-icon-button svg,.mdc-icon-button img,.mdc-icon-button ::slotted(*){display:block}:host{--mdc-ripple-color: currentcolor;-webkit-tap-highlight-color:transparent}:host,.mdc-icon-button{vertical-align:top}.mdc-icon-button{width:var(--mdc-icon-button-size, 48px);height:var(--mdc-icon-button-size, 48px);padding:calc( (var(--mdc-icon-button-size, 48px) - var(--mdc-icon-size, 24px)) / 2 )}.mdc-icon-button i,.mdc-icon-button svg,.mdc-icon-button img,.mdc-icon-button ::slotted(*){display:block;width:var(--mdc-icon-size, 24px);height:var(--mdc-icon-size, 24px)}`
/**
 * @license
 * Copyright 2018 Google LLC
 * SPDX-License-Identifier: Apache-2.0
 */;let $l=class extends xl{};$l.styles=[wl],$l=o([(e=>t=>"function"==typeof t?((e,t)=>(customElements.define(e,t),t))(e,t):((e,t)=>{const{kind:i,elements:o}=t;return{kind:i,elements:o,finisher(t){customElements.define(e,t)}}})(e,t))("mwc-icon-button")],$l),function(){let e;function t(t){return!!function(){if(void 0===e){e=!1;try{const t=Object.defineProperty({},"passive",{get:()=>{e=!0}});window.addEventListener("test",null,t)}catch(e){}}return e}()&&{passive:t}}function i(e,t=e,i=e){let o=e;if(t>i)throw new RangeError(`'min' ${t} should be lower than 'max' ${i}`);return e<t&&(o=t),e>i&&(o=i),o}function o(e,t,i){i?e.setAttribute(t,""):e.removeAttribute(t)}function s(e,t){return e.hasAttribute(t)}function n(e,t,i){e.setAttribute(t,i)}function r(e,t,i=0){const o=e.getAttribute(t);return null===o?i:parseInt(o,10)}function a(e){if("touchstart"===e.type||"touchmove"===e.type||"touchend"===e.type){const t=e.targetTouches[0]||e.changedTouches[0];return{x:t.clientX,y:t.clientY,id:t.identifier,event:e}}return{x:e.clientX,y:e.clientY,id:null,event:e}}const l=document.createElement("template");l.innerHTML='<style>:host{position:relative;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch;contain:content;-webkit-tap-highlight-color:rgba(0,0,0,0);--macro-carousel-gap:16px;--macro-carousel-background-color:transparent;--macro-carousel-slide-min-height:0px;--macro-carousel-slide-max-height:none;--macro-carousel-transition-duration:0.6s;--macro-carousel-transition-timing-function:cubic-bezier(0.25,0.46,0.45,0.94);--macro-carousel-pagination-gap:2px;--macro-carousel-pagination-height:44px;--macro-carousel-fallback-message-color-background:#fff;--macro-carousel__internal__slides-per-view:1}:host([hidden]){display:none}:host-context(.js-focus-visible) ::slotted(:focus:not(.focus-visible)),:host-context(.js-focus-visible) :focus:not(.focus-visible){outline:0}#externalWrapper{height:100%;overflow:hidden;contain:paint;background-color:var(--macro-carousel-background-color);-ms-touch-action:pan-y pinch-zoom;touch-action:pan-y pinch-zoom;cursor:-webkit-grab;cursor:grab}#externalWrapper:active{cursor:-webkit-grabbing;cursor:grabbing}:host([disable-drag]) #externalWrapper{cursor:default}#slidesWrapper{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch;height:100%;min-height:var(--macro-carousel-slide-min-height);max-height:var(--macro-carousel-slide-max-height);will-change:transform}:host([transitioning]) #slidesWrapper{-webkit-transition-property:-webkit-transform;transition-property:-webkit-transform;transition-property:transform;transition-property:transform,-webkit-transform;-webkit-transition-duration:var(--macro-carousel-transition-duration);transition-duration:var(--macro-carousel-transition-duration);-webkit-transition-timing-function:var(--macro-carousel-transition-timing-function);transition-timing-function:var(--macro-carousel-transition-timing-function)}#slidesWrapper ::slotted(*){-webkit-box-flex:0;-ms-flex-positive:0;flex-grow:0;-ms-flex-negative:0;flex-shrink:0;-ms-flex-preferred-size:calc((100% - (var(--macro-carousel__internal__slides-per-view) - 1) * var(--macro-carousel-gap)) / var(--macro-carousel__internal__slides-per-view));flex-basis:calc((100% - (var(--macro-carousel__internal__slides-per-view) - 1) * var(--macro-carousel-gap)) / var(--macro-carousel__internal__slides-per-view));min-height:var(--macro-carousel-slide-min-height);max-height:var(--macro-carousel-slide-max-height);margin-right:var(--macro-carousel-gap);overflow:hidden;outline:0;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.slidesFallback{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;margin:0;padding:.5em 1em;width:100%;background-color:var(--macro-carousel-fallback-message-color-background)}:host([disable-drag]) #slidesWrapper ::slotted(*){-webkit-user-select:auto;-moz-user-select:auto;-ms-user-select:auto;user-select:auto}#pagination{display:none}:host([pagination]) #pagination{-ms-flex-item-align:center;align-self:center;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;width:100%;height:var(--macro-carousel-pagination-height);contain:strict;font-size:0}div ::slotted(macro-carousel-pagination-indicator){margin:0 calc(var(--macro-carousel-pagination-gap) / 2);padding:0;font-size:inherit;opacity:.8}div ::slotted(macro-carousel-pagination-indicator.selected),div ::slotted(macro-carousel-pagination-indicator:hover){opacity:1}#navigation{display:none}:host([navigation]) #navigation{display:block}div ::slotted(macro-carousel-nav-button){position:absolute;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}:host([pagination]) div ::slotted(macro-carousel-nav-button){top:calc(50% - var(--macro-carousel-pagination-height) / 2)}div ::slotted(.macro-carousel-previous){left:0}div ::slotted(.macro-carousel-next){right:0}#aria-live ::slotted(*){position:absolute;height:1px;width:1px;margin:-1px;padding:0;clip:rect(0 0 0 0);overflow:hidden;border:0}@media print{#slidesWrapper ::slotted(*){margin-right:0;margin-bottom:.2em;outline:1px solid #000;color:#000;page-break-inside:avoid}:host([navigation]) #navigation,:host([pagination]) #pagination{display:none}#slidesWrapper{display:block;-webkit-transform:none!important;transform:none!important;-webkit-transition:0s;transition:0s}}</style> <div id="externalWrapper"> <div id="slidesWrapper"> <slot id="slidesSlot"> <p class="slidesFallback">No content available</p> </slot> </div> </div> <div id="navigation"> <slot id="navigationSlot" name="navigationSlot"></slot> </div> <div id="pagination"> <slot id="paginationSlot" name="paginationSlot"></slot> </div> <div id="aria-live"> <slot id="ariaSlot" name="ariaSlot"></slot> </div> ',window.ShadyCSS&&window.ShadyCSS.prepareTemplate(l,"macro-carousel");const d=Math.abs((35,Math.round(100*Math.tan(35*Math.PI/180))/100));window.customElements.define("macro-carousel",class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"}),this.shadowRoot.appendChild(l.content.cloneNode(!0)),this.t=this.shadowRoot.querySelector("#externalWrapper"),this.i=this.shadowRoot.querySelector("#slidesWrapper"),this.s=this.shadowRoot.querySelector("#slidesSlot"),this.e=this.shadowRoot.querySelector("#ariaSlot"),this.o=this.shadowRoot.querySelector("#paginationSlot"),this.a=[],this.n=this.shadowRoot.querySelector("#navigationSlot"),this.r=void 0,this.h=void 0,this.c=[],this.l=-1,this.d=!1,this.u=0,this.m=0,this.g=0,this.p=0,this.b=0,this.v=0,this.w=void 0,this.f=!1,this.k=!1,this._=void 0,this.S=void 0,this.z=void 0,this.M=void 0,this.C=void 0,this.W=void 0,this.P=void 0,this.L=void 0,this.G=[],this.F=!1,this.I=50,this.$=20,this.A=.7,this.D=.04,this.T=0,this.N=!1}connectedCallback(){window.ShadyCSS&&window.ShadyCSS.styleElement(this),this.hasAttribute("role")||this.setAttribute("role","list"),this.j("selected"),this.j("loop"),this.j("navigation"),this.j("pagination"),this.j("disableDrag"),this.j("slidesPerView"),this.j("reducedMotion"),this.j("autoFocus"),this.m=this.selected,this.O(),this.s.addEventListener("slotchange",this),window.addEventListener("resize",this,t(!0)),this.addEventListener("keydown",this),window.addEventListener("touchmove",(function(){})),this.q()}disconnectedCallback(){this.s.removeEventListener("slotchange",this),window.removeEventListener("resize",this),this.disableDrag||(this.t.removeEventListener("touchstart",this),this.t.removeEventListener("mousedown",this)),this.navigation&&(this.r.removeEventListener("macro-carousel-nav-button-clicked",this),this.h.removeEventListener("macro-carousel-nav-button-clicked",this)),this.pagination&&this.a.forEach((e=>{e.removeEventListener("macro-carousel-pagination-indicator-clicked",this)}))}handleEvent(e){"resize"===e.type&&e.target===window?(this.B(),this.update()):"slotchange"===e.type&&e.target===this.s?this.q():"macro-carousel-pagination-indicator-clicked"===e.type&&this.pagination?this.V(e):"macro-carousel-nav-button-clicked"===e.type&&this.navigation?e.target===this.r?this.previous():e.target===this.h&&this.next():"keydown"===e.type?37===e.keyCode||38===e.keyCode?this.previous():39!==e.keyCode&&40!==e.keyCode||this.next():"transitionend"===e.type&&e.target===this.i?(this.H(),this.R(),this.X()):"touchstart"===e.type||"mousedown"===e.type?this.Y(a(e)):"touchmove"===e.type||"mousemove"===e.type?this.U(a(e)):"touchend"===e.type||"mouseup"===e.type?this.J(a(e)):"touchcancel"===e.type&&this.K()}j(e){if(this.hasOwnProperty(e)){const t=this[e];delete this[e],this[e]=t}}update(){clearTimeout(this.w),this.B(),this.w=setTimeout((()=>{this.Q()}),50)}Q(){this.Z(),this.tt(),this.it(),this.st(this.c.map((e=>e.layoutIndex)),!0),this.et(this.selected),this.ot(),this.at(),this.nt(),this.H(),this.X(),this.O()}previous(){this.selected=this.rt(this.selected)}rt(e){let t=e;return e>0?t=e-1:this.loop&&(this.d&&(this.u-=1),t=this.l),i(t,0,this.l)}next(){this.selected=this.ht(this.selected)}ht(e){let t=e;return e<this.l?t=e+1:this.loop&&(this.d&&(this.u+=1),t=0),i(t,0,this.l)}static get observedAttributes(){return["selected","loop","navigation","pagination","disable-drag","slides-per-view","reduced-motion","auto-focus"]}attributeChangedCallback(e,t,i){switch(0===this.c.length&&this.q(),e){case"selected":const e=parseInt(i,10);if(!Number.isFinite(e)||e>this.l||e<0)return void(this.selected=t||0);if(this.d){const e=this.selected+this.u*(this.l+1),t=this.m-e,i=[],o=t<0?this.slidesPerView+t:0;for(let s=-1;s<Math.abs(t);s++)i.push(s+e+o);this.st(i),this.m=e}this.et(this.selected),this.ot(),this.at(),this.dispatchEvent(new CustomEvent("macro-carousel-selected-changed",{detail:this.selected,bubbles:!0})),this.f||this.N||(this.H(),this.R(),this.X());break;case"loop":this.tt(),this.it(),this.st(this.c.map(((e,t)=>t))),this.at(),this.ot(),this.H(),this.R(),this.X(),window.ShadyCSS&&window.ShadyCSS.styleSubtree(this);break;case"navigation":this.update(),window.ShadyCSS&&window.ShadyCSS.styleSubtree(this);break;case"pagination":this.ot(),window.ShadyCSS&&window.ShadyCSS.styleSubtree(this);break;case"disable-drag":this.nt();break;case"slides-per-view":const o=parseInt(i,10);if(!Number.isFinite(o)||o<1||o>this.c.length)return void(this.slidesPerView=t||1);this.update(),window.ShadyCSS&&window.ShadyCSS.styleSubtree(this);break;case"reduced-motion":null!==i?this.B():this.O()}}set selected(e){n(this,"selected",e)}get selected(){return r(this,"selected")}set loop(e){o(this,"loop",e)}get loop(){return s(this,"loop")}set navigation(e){o(this,"navigation",e)}get navigation(){return s(this,"navigation")}set pagination(e){o(this,"pagination",e)}get pagination(){return s(this,"pagination")}set disableDrag(e){o(this,"disable-drag",e)}get disableDrag(){return s(this,"disable-drag")}set slidesPerView(e){n(this,"slides-per-view",e)}get slidesPerView(){return r(this,"slides-per-view",1)}set reducedMotion(e){o(this,"reduced-motion",e)}get reducedMotion(){return s(this,"reduced-motion")}set autoFocus(e){o(this,"auto-focus",e)}get autoFocus(){return s(this,"auto-focus")}B(){this.f=!1,this.removeAttribute("transitioning"),this.i.removeEventListener("transitionend",this,!1)}O(){this.reducedMotion||requestAnimationFrame((()=>{requestAnimationFrame((()=>{this.f=!0,this.setAttribute("transitioning",""),this.i.addEventListener("transitionend",this,!1)}))}))}Z(){this.g=this.i.getBoundingClientRect().width,this.p=this.ct(),this.b=this.lt()}lt(){return(this.g-(this.slidesPerView-1)*this.p)/this.slidesPerView}ct(){/\d$/.test(function(e,t){const i=getComputedStyle(e);return String(i.getPropertyValue("--macro-carousel-gap")).trim()}(this))&&console.warn("Warning: it looks like --macro-carousel-gap has a unitless value.\nAdd CSS units to its value to avoid breaking the slides layout.");const e=parseInt(getComputedStyle(this.c[0].element)["margin-right"],10);return Number.isFinite(e)?e:0}it(){var e,t;e="--macro-carousel__internal__slides-per-view",t=`${this.slidesPerView}`,this.style.setProperty(e,t),window.ShadyCSS&&window.ShadyCSS.styleSubtree(this,{[e]:t}),this.l=this.d?this.c.length-1:this.dt(),!this.d&&this.selected>this.l&&(this.selected=this.l)}dt(){return Math.max(0,this.c.length-this.slidesPerView)}ut(e){let t=e;for(;t<0;)t+=this.c.length;return t%this.c.length}st(e,t=!1){let i;e.forEach((e=>{!t&&this.c.find((t=>t.layoutIndex===e))||(i=this.ut(e),this.c[i].layoutIndex=e,this.c[i].position=this.mt(e),this.c[i].element.style.transform=`translateX(${this.mt(i-e)}px)`)}))}mt(e){return-e*(this.b+this.p)}gt(e){this.i.style.transform=`translate3d(${e}px, 0, 0)`,this.v=e}et(e){this.i&&!this.N&&this.gt(this.c[e].position)}R(){this.autoFocus&&this.c[this.selected].element.focus()}H(){const e=[];for(let t=0;t<this.slidesPerView;t++)e.push((this.selected+t)%this.c.length);let t;this.c.map((e=>e.element)).forEach(((i,o)=>{t=void 0!==e.find((e=>e===o)),i.setAttribute("aria-hidden",t?"false":"true"),t?(i.removeAttribute("inert"),i.setAttribute("tabindex",-1)):i.setAttribute("inert","")}))}ot(){if((!this.pagination||this.pagination&&this.o.assignedNodes().length!==this.l+1)&&(this.a.forEach((e=>{e.removeEventListener("macro-carousel-pagination-indicator-clicked",this),this.removeChild(e)})),this.a.length=0),this.pagination){if(this.o.assignedNodes().length!==this.l+1){const e=document.createDocumentFragment();for(let t=0;t<=this.l;t++){const i=document.createElement("macro-carousel-pagination-indicator");i.textContent=t,i.setAttribute("slot","paginationSlot"),i.setAttribute("aria-label",`Go to item ${t+1}`),i.addEventListener("macro-carousel-pagination-indicator-clicked",this),e.appendChild(i),this.a.push(i)}this.appendChild(e)}this.a.forEach(((e,t)=>{t===this.selected?e.classList.add("selected"):e.classList.remove("selected")}))}}V(e){this.selected=parseInt(e.target.textContent,10)}pt(e){const t=document.createElement("macro-carousel-nav-button");return t.classList.add(e),t.setAttribute("slot","navigationSlot"),t.addEventListener("macro-carousel-nav-button-clicked",this),/next/.test(e)&&t.setAttribute("flipped",""),t}at(){(!this.navigation||this.navigation&&2!==this.n.assignedNodes().length)&&(this.n.assignedNodes().forEach((e=>{e.removeEventListener("macro-carousel-nav-button-clicked",this),this.removeChild(e)})),this.r=void 0,this.h=void 0),this.navigation&&(2!==this.n.assignedNodes().length&&(this.r=this.pt("macro-carousel-previous"),this.appendChild(this.r),this.h=this.pt("macro-carousel-next"),this.appendChild(this.h)),this.r.disabled=!this.loop&&0===this.selected,this.h.disabled=!this.loop&&this.selected===this.l,this.r.setAttribute("aria-label",`Go to ${this.loop&&0===this.selected?"last":"previous"} item`),this.h.setAttribute("aria-label",`Go to ${this.loop&&this.selected===this.l?"first":"next"} item`))}tt(){this.d=this.loop&&this.dt()>1}bt(){return this.s.assignedNodes({flatten:!0}).forEach((e=>{e.nodeType===Node.TEXT_NODE&&e.parentNode&&e.parentNode.removeChild(e)})),this.s.assignedNodes({flatten:!0}).filter((e=>e.nodeType===Node.ELEMENT_NODE)).map(((e,t)=>({element:e,layoutIndex:t,position:this.mt(t)})))||[]}q(){this.c=this.bt(),this.c.forEach((e=>{e.element.hasAttribute("tabindex")||e.element.setAttribute("tabindex",-1),"list"===this.getAttribute("role")&&e.element.setAttribute("role","listitem")}));const e=this.c.length>0&&-1===this.l;this.Q(),e&&(this.selected=this.selected)}X(){1!==this.e.assignedNodes().length&&(this.vt=document.createElement("div"),this.vt.setAttribute("slot","ariaSlot"),this.vt.setAttribute("aria-live","polite"),this.vt.setAttribute("aria-atomic","true"),this.appendChild(this.vt));const e=this.c[this.selected].layoutIndex;let t="";for(let i=0;i<this.slidesPerView;i++)t+=(e+i)%this.c.length+1,i<this.slidesPerView-2?t+=", ":i<this.slidesPerView-1&&(t+=" and ");this.vt.textContent=`Item${this.slidesPerView>1?"s":""} ${t} of ${this.c.length} visible`}nt(){this.disableDrag?(this.t.removeEventListener("touchstart",this),this.t.removeEventListener("mousedown",this)):(this.t.addEventListener("touchstart",this,t(!0)),this.t.addEventListener("mousedown",this,t(!0)))}Y(e){this.k||(this.N=!1,this.k=!0,this._=e.id,this.S=this.M=this.W=e.x,this.z=this.C=this.P=e.y,this.L=this.c[this.selected].layoutIndex,this.G=[],this.wt(this.M),window.addEventListener("touchmove",this,t(!1)),window.addEventListener("mousemove",this,t(!1)),window.addEventListener("mouseup",this),window.addEventListener("touchend",this),window.addEventListener("touchcancel",this))}U(e){if(this.k&&e.id===this._){this.W=e.x,this.P=e.y;const t=Math.abs(this.W-this.S),i=Math.abs(this.P-this.z);t/i>d||0===i||i>t&&i-t<5?(e.event.preventDefault(),this.wt(this.M),this.B(),this.ft()):this.K()}}J(e){this.k&&e.id===this._&&this.K()}K(){this.k=!1,this._=void 0,this.wt(this.M),window.removeEventListener("touchmove",this),window.removeEventListener("mousemove",this),window.removeEventListener("touchend",this),window.removeEventListener("mouseup",this),window.removeEventListener("touchcancel",this),this.kt()}wt(e){const t=Date.now();for(;this.G.length>0&&!(t-this.G[0].time<=100);)this.G.shift();this.G.push({x:e,time:t})}ft(){this.F||requestAnimationFrame(this.xt.bind(this)),this.F=!0}xt(){const e=this.v+this.W-this.M;let t,i;if(this.c.forEach(((o,s)=>{o.position>=e&&(void 0===i||o.position<i)&&(i=o.position,t=s)})),this.d){let e;if(void 0===t){const i=this.c.slice(0).sort(((e,t)=>e.layoutIndex>t.layoutIndex))[0];for(t=i.layoutIndex-1;t<0;)t+=this.c.length;t%=this.c.length,e=i.layoutIndex-2}else e=this.c[t].layoutIndex-1;const i=[],o=e+this.slidesPerView+2;for(let t=e;t<o;t++)i.push(t);this.st(i)}else t=t||0;this.L=this.c[t].layoutIndex,this.gt(e),this.M=this.W,this.C=this.P,this.F=!1}kt(){this.N=!0;const e=this.G[this.G.length-1],t=this.G[0],o=e.x-t.x||0;this.u=Math.floor(this.L/this.c.length);const s=this.ut(this.L);let n;if(0===o)this.T=0,n=this.c[s].position-this.v>this.b/2?this.ht(s):s;else{this.T=function(e,t,o){if(0===e)throw new RangeError("x must be different from `0`");return e/Math.abs(e)*i(Math.abs(e),t,o)}(o,this.$,this.I);let e=1;const t=.5*this.g;for(;Math.abs(o)>t*e&&e<this.slidesPerView+2;)e+=1;o>0&&(e-=1);let r=s;for(let t=0;t<e;t++)r=o<0?this.ht(r):this.rt(r);n=r}this.selected=i(n,0,this.l),requestAnimationFrame(this.yt.bind(this))}yt(){if(!this.N)return;const e=this.c[this.selected].position;this.T+=this.D*(e-this.v),this.T*=this.A;const t=this.v+this.T;(Math.abs(e-t)>=1||Math.abs(this.T)>=1)&&!this.reducedMotion?(this.gt(t),requestAnimationFrame(this.yt.bind(this))):(this.gt(e),this.N=!1,this.O(),requestAnimationFrame((()=>{this.H(),this.R(),this.X()})))}});class c extends HTMLElement{constructor(){super();const e=Object.getPrototypeOf(this).constructor.template;this.attachShadow({mode:"open"}),this.shadowRoot.appendChild(e.content.cloneNode(!0))}connectedCallback(){window.ShadyCSS&&window.ShadyCSS.styleElement(this),this._t=0,this.hasAttribute("role")||this.setAttribute("role","button"),this.hasAttribute("tabindex")?this._t=this.getAttribute("tabindex"):this.setAttribute("tabindex",this._t),this.j("disabled"),this.addEventListener("keydown",this),this.addEventListener("click",this)}j(e){if(this.hasOwnProperty(e)){const t=this[e];delete this[e],this[e]=t}}static get observedAttributes(){return["disabled"]}set disabled(e){o(this,"disabled",e)}get disabled(){return s(this,"disabled")}attributeChangedCallback(e,t,i){if("disabled"===e){if(t===i)return;this.disabled?(this._t=this.getAttribute("tabindex"),this.removeAttribute("tabindex"),this.setAttribute("aria-disabled","true")):(this.setAttribute("tabindex",this._t),this.setAttribute("aria-disabled","false"))}}handleEvent(e){this.disabled?e.preventDefault():"click"===e.type?this.St&&this.St():"keydown"!==e.type||32!==e.keyCode&&13!==e.keyCode||(e.preventDefault(),this.St&&this.St())}}const h=document.createElement("template");h.innerHTML='<style>:host{--macro-carousel-navigation-color:#000;--macro-carousel-navigation-color-focus:var(--macro-carousel-navigation-color);--macro-carousel-navigation-color-background:transparent;--macro-carousel-navigation-color-background-focus:#f0f0f0;--macro-carousel-navigation-button-size:48px;--macro-carousel-navigation-icon-size:24px;--macro-carousel-navigation-icon-mask:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns=\'http://www.w3.org/2000/svg\' viewBox=\'0 0 24 24\'%3E%3Cpath d=\'M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z\'/%3E%3C/svg%3E");position:relative;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;min-width:var(--macro-carousel-navigation-button-size);min-height:var(--macro-carousel-navigation-button-size);border-radius:50%;overflow:hidden;cursor:pointer;contain:paint}:host([disabled]){opacity:.2}.bg,.content{position:absolute;top:0;right:0;bottom:0;left:0}.content{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;background-color:var(--macro-carousel-navigation-color-background)}.bg{z-index:0;background-color:var(--macro-carousel-navigation-color-background-focus);opacity:0;will-change:opacity}.icon{position:relative;z-index:1;width:var(--macro-carousel-navigation-icon-size);height:var(--macro-carousel-navigation-icon-size);color:var(--macro-carousel-navigation-color);background:var(--macro-carousel-navigation-icon-mask)}@supports ((-webkit-mask-image:var(--macro-carousel-navigation-icon-mask)) or (mask-image:var(--macro-carousel-navigation-icon-mask))){.icon{background:var(--macro-carousel-navigation-color);-webkit-mask-image:var(--macro-carousel-navigation-icon-mask);mask-image:var(--macro-carousel-navigation-icon-mask)}}:host([flipped]) .icon{-webkit-transform:rotate(180deg);transform:rotate(180deg)}:host(.focus-visible) .bg,:host(:active:not([disabled])) .bg,:host(:focus:not([disabled])) .bg,:host(:hover:not([disabled])) .bg{opacity:1}:host-context(.js-focus-visible):host(:focus:not(:active):not(:hover):not(.focus-visible)) .bg{opacity:0}@supports ((-webkit-mask-image:var(--macro-carousel-navigation-icon-mask)) or (mask-image:var(--macro-carousel-navigation-icon-mask))){:host(.focus-visible) .icon,:host(:active:not([disabled])) .icon,:host(:focus:not([disabled])) .icon,:host(:hover:not([disabled])) .icon{background:var(--macro-carousel-navigation-color-focus)}:host-context(.js-focus-visible):host(:focus:not(:active):not(:hover):not(.focus-visible)) .icon{background:var(--macro-carousel-navigation-color)}}</style> <div class="content"> <div class="bg"></div> <div class="icon"></div> </div> ',window.ShadyCSS&&window.ShadyCSS.prepareTemplate(h,"macro-carousel-nav-button"),window.customElements.define("macro-carousel-nav-button",class extends c{static get template(){return h}St(){this.dispatchEvent(new CustomEvent("macro-carousel-nav-button-clicked"))}});const p=document.createElement("template");p.innerHTML='<style>:host{--macro-carousel-pagination-color:#999;--macro-carousel-pagination-color-selected:#000;--macro-carousel-pagination-size-clickable:24px;--macro-carousel-pagination-size-dot:8px;--macro-carousel-pagination-border:1px solid var(--macro-carousel-pagination-color);--macro-carousel-pagination-border-selected:1px solid var(--macro-carousel-pagination-color-selected);position:relative;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;width:var(--macro-carousel-pagination-size-clickable);height:var(--macro-carousel-pagination-size-clickable);overflow:hidden;cursor:pointer;contain:paint}.bg,.fg,:host{border-radius:50%}.bg,.fg{position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);display:block;width:var(--macro-carousel-pagination-size-dot);height:var(--macro-carousel-pagination-size-dot);-webkit-box-sizing:border-box;box-sizing:border-box;background-color:var(--macro-carousel-pagination-color);content:""}.bg{-webkit-transform:translate(-50%,-50%) scale(2);transform:translate(-50%,-50%) scale(2);opacity:0;will-change:opacity}.fg{border:var(--macro-carousel-pagination-border)}:host(.focus-visible) .bg,:host(:hover) .bg{opacity:.2}:host(.selected) .fg{background-color:var(--macro-carousel-pagination-color-selected);border:var(--macro-carousel-pagination-border-selected)}</style> <div class="bg"></div> <div class="fg"></div> ',window.ShadyCSS&&window.ShadyCSS.prepareTemplate(p,"macro-carousel-pagination-indicator"),window.customElements.define("macro-carousel-pagination-indicator",class extends c{static get template(){return p}St(){this.dispatchEvent(new CustomEvent("macro-carousel-pagination-indicator-clicked"))}})}();const Al=["sshd","vscode-desktop","xrdp","vnc"];let kl=class extends ti{constructor(){super(),this.active=!0,this.condition="running",this.jobs=Object(),this.controls=Object(),this.appTemplate=Object(),this.imageInfo=Object(),this._selected_items=[],this.refreshing=!1,this.notification=Object(),this.refreshTimer=Object(),this.kernel_labels=Object(),this.indicator=Object(),this.tcpHost="127.0.0.1",this.tcpPort="",this.mountedVfolderName="",this.tensorboardPath="",this.endpointURL="",this.isPathConfigured=!1,this.appLaunchBeforeTunneling=["nniboard","mlflow-ui"],this.appController=Object(),this.allowTCPApps=!1,this.openPortToPublic=!1,this.allowPreferredPort=!1,this.appEnvs=Object(),this.appArgs=Object(),this.vscodeDesktopPassword="",this.appSupportList=[],this.preOpenedPortList=[],this.appSupportOption=[]}static get styles(){return[Be,Se,Te,A`
        mwc-icon-button.apps {
          --mdc-icon-button-size: 48px;
          --mdc-icon-size: 36px;
          padding: 3px;
        }

        mwc-icon-button#tensorboard-button {
          background-color: #e9852e;
          color: white;
          --mdc-icon-button-size: 24px;
          --mdc-icon-size: 24px;
          padding: 10px;
          margin-left: 10px;
          border-radius: 10px;
        }

        mwc-textfield#tensorboard-path {
          width: 100%;
          --mdc-text-field-fill-color: transparent;
          --mdc-theme-primary: var(--general-textfield-selected-color);
          --mdc-typography-font-family: var(--token-fontFamily);
        }

        mwc-icon-button.sftp-session-connection-copy {
          --mdc-icon-size: 20px;
          background-color: transparent;
        }

        #ssh-dialog {
          --component-width: 375px;
        }

        .app-icon {
          margin-left: 15px;
          margin-right: 5px;
          margin-bottom: 15px;
        }

        .app-icon .label {
          display: block;
          width: 80px;
          text-align: center;
          line-height: 15px;
          height: 25px;
          font-size: 13px;
        }

        #app-launch-confirmation-dialog {
          --component-width: 400px;
          --component-font-size: 14px;
        }
        #tensorboard-dialog {
          --component-width: 400px;
        }

        #app-dialog {
          --component-width: 400px;
        }

        #vscode-desktop-dialog {
          --component-width: 450px;
        }

        #allowed-client-ips-container {
          margin-left: 2em;
          margin-bottom: 1em;
          display: none;
        }

        mwc-textfield {
          --mdc-shape-small: 14px;
        }

        macro-carousel {
          max-width: 700px;
          height: 450px;
          padding: 0 30px;
          margin: 0 10px;
        }

        macro-carousel macro-carousel-nav-button {
          --macro-carousel-navigation-color: var(--token-colorText);
          --macro-carousel-navigation-color-background-focus: var(
            --token-colorBgTextHover
          );
        }

        #collapsible-btn {
          background: none;
          border: none;
          padding: 10px 0px;
          cursor: pointer;
          font-size: 0.9rem;
          font-family: Ubuntu;
          color: var(--token-colorLink, #0000ee);
          font-weight: 500;
        }

        #collapsible-btn:hover {
          color: var(--general-button-background-color);
        }

        #expandable-desc {
          // default height for 3line ellpsis
          height: auto;
          max-height: 83px;
          overflow-y: hidden;
        }

        #preopen-ports-expansion {
          --expansion-header-font-size: 1.17em;
          --expansion-header-padding: 0 0 0 15px;
          --expansion-right-icon-margin: 0 10px 0 0;
        }

        .slide {
          display: flex;
          align-items: center;
          justify-content: center;
        }

        .slide > span {
          width: 100%;
          height: 100%;
          display: flex;
          justify-content: center;
          align-items: center;
          background-repeat: no-repeat;
          background-size: contain;
          background-position: top center;
        }

        .slide > p {
          font-size: 14px;
        }

        macro-carousel-pagination-indicator {
          /* Change the dots color */
          --macro-carousel-pagination-color: var(--paper-grey-400);
          /* Change the aspect of the selected dot */
          --macro-carousel-pagination-color-selected: var(--paper-green-400);
          /* Change the dots size */
          --macro-carousel-pagination-size-clickable: 32px;
          --macro-carousel-pagination-size-dot: 10px;
        }

        span.keyboard {
          font-family: Menlo, Courier, 'Courier New';
          padding: 20px;
          background-color: var(--paper-grey-200);
          border-radius: 10px;
          margin: 0px 10px;
          color: var(--paper-grey-800);
        }

        span.invert {
          font-size: 26px;
          color: var(--paper-grey-200);
          background-color: transparent;
          margin: 0px 10px;
        }

        span.one-key {
          text-align: center;
          width: 24px;
        }

        mwc-checkbox#hide-guide {
          margin-right: 10px;
        }

        .ssh-connection-example,
        .vscode-connection-example {
          display: flex;
          background-color: var(--token-colorBorder, rgba(230, 230, 230, 1));
          padding: 10px;
          border-radius: 5px;
          margin-bottom: 5px;
        }

        .ssh-connection-example > span {
          word-break: break-word;
        }

        @media screen and (max-width: 810px) {
          #terminal-guide {
            --component-width: calc(100% - 50px);
          }
        }
      `]}firstUpdated(){var e;this.imageInfo=globalThis.backendaimetadata.imageInfo,this.kernel_labels=globalThis.backendaimetadata.kernel_labels,document.addEventListener("backend-ai-metadata-image-loaded",(()=>{this.imageInfo=globalThis.backendaimetadata.imageInfo,this.kernel_labels=globalThis.backendaimetadata.kernel_labels}),{once:!0}),this._initializeAppTemplate(),this.refreshTimer=null,this._createTerminalGuide(),this._createDonotShowOption(),this.notification=globalThis.lablupNotification;const t=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelector("#hide-guide");null==t||t.addEventListener("change",(e=>{e.target.checked?localStorage.setItem("backendaiwebui.terminalguide","false"):localStorage.setItem("backendaiwebui.terminalguide","true")})),document.addEventListener("read-ssh-key-and-launch-ssh-dialog",(e=>{e.detail&&(this._readSSHKey(e.detail.sessionUuid),this.tcpPort=e.detail.port,this.tcpHost=e.detail.host,this.mountedVfolderName=e.detail.mounted,this._openSSHDialog())}))}async _viewStateChanged(e){await this.updateComplete}_initializeAppTemplate(){fetch("resources/app_template.json").then((e=>e.json())).then((e=>{this.appTemplate=e.appTemplate;const t=Object.keys(this.appTemplate);t.sort(((e,t)=>this.appTemplate[e][0].category>this.appTemplate[t][0].category?1:-1)),this.appOrder=t}))}async sendRequest(e){let t,i;try{"GET"==e.method&&(e.body=void 0),t=await fetch(e.uri,e);const o=t.headers.get("Content-Type");if(null===o){if(i=t.ok,!t.ok)throw new Error(t)}else i=o.startsWith("application/json")||o.startsWith("application/problem+json")?await t.json():o.startsWith("text/")?await t.text():await t.blob();if(!t.ok)throw i}catch(e){return t}return i}async _getProxyURL(e){let t="http://127.0.0.1:5050/";if(void 0!==globalThis.__local_proxy&&null!=globalThis.__local_proxy.url?t=globalThis.__local_proxy.url:void 0!==globalThis.backendaiclient._config.proxyURL&&(t=globalThis.backendaiclient._config.proxyURL),e){const i=await this._getWSProxyVersion(e);"v1"!==i&&(t=new URL(`${i}/`,t).href)}return t}async _getWSProxyVersion(e){var t,i;if(!0===globalThis.backendaiwebui.debug){if(null===(t=this.forceUseV1Proxy)||void 0===t?void 0:t.checked)return"v1";if(null===(i=this.forceUseV2Proxy)||void 0===i?void 0:i.checked)return"v2"}const o=(await globalThis.backendaiclient.computeSession.get(["scaling_group"],e)).compute_session.scaling_group,s=globalThis.backendaiclient.current_group_id();return globalThis.isElectron?"v1":(await globalThis.backendaiclient.scalingGroup.getWsproxyVersion(o,s)).wsproxy_version}showLauncher(e){this._showAppLauncher(e)}_showAppLauncher(e){var t;this.controls=e;const i=e["session-uuid"],o=e["access-key"],s=e["app-services"],n=e.mode,r="app-services-option"in e?e["app-services-option"]:{},a=e["service-ports"];if("runtime"in e){const t={};return t.mode=n,t["session-uuid"]=i,t["app-name"]=e.runtime,t["url-postfix"]="","filename"in e&&(t["file-name"]=e.filename),"jupyter"===t["app-name"]&&(t["url-postfix"]="&redirect=/notebooks/"+t["file-name"]),"arguments"in e&&(t.args=e.arguments),this._runAppWithParameters(t)}this.preOpenedPortList=[];const l=null==a?void 0:a.filter((e=>"preopen"===e.protocol&&!1===e.is_inference)).map((e=>e.name)),d=null==a?void 0:a.filter((e=>!0===e.is_inference)).map((e=>e.name));null==l||l.forEach((e=>{this.preOpenedPortList.push({name:e,title:e,src:"/resources/icons/default_app.svg"})}));const c=null!==(t=null==s?void 0:s.filter((e=>!(null==l?void 0:l.includes(e))&&!(null==d?void 0:d.includes(e)))))&&void 0!==t?t:s;this.appSupportList=[],(null==c?void 0:c.includes("ttyd"))||this.appSupportList.push({name:"ttyd",title:"Console",category:"0.Default",redirect:"",src:"./resources/icons/terminal.svg"}),c.forEach((e=>{e in this.appTemplate||(this.appTemplate[e]=[],this.appTemplate[e].push({name:e,title:e,category:"99.",redirect:"",src:"./resources/icons/default_app.svg"}))})),c.sort(((e,t)=>this.appTemplate[e][0].category>this.appTemplate[t][0].category?1:-1));let h="";if(Object.keys(r).length>0&&(this.appSupportOption=r),this.allowTCPApps=globalThis.isElectron||globalThis.backendaiclient._config.allowNonAuthTCP,c.forEach((e=>{e in this.appTemplate?("sshd"!==e||"sshd"===e&&this.allowTCPApps)&&(h!==this.appTemplate[e][0].category&&(this.appSupportList.push({name:this.appTemplate[e][0].category.substring(2),title:this.appTemplate[e][0].category.substring(2),category:"divider",redirect:"",src:""}),h=this.appTemplate[e][0].category),this.appTemplate[e].forEach((e=>{this.appSupportList.push(e)}))):["ttyd","ipython"].includes(e)||this.appSupportList.push({name:e,title:e,category:"Default",redirect:"",src:"./resources/icons/default_app.svg"})})),globalThis.backendaiclient.supports("local-vscode-remote-connection")&&this.allowTCPApps&&!c.includes("vscode-desktop")){const e=this.appSupportList.findIndex((e=>"vscode"===e.name));this.appSupportList.splice(e+1,0,{name:"vscode-desktop",title:"Visual Studio Code (Desktop)",category:"2.Development",redirect:"",src:"./resources/icons/vscode.svg"})}this.openPortToPublic=globalThis.backendaiclient._config.openPortToPublic,this.allowPreferredPort=globalThis.backendaiclient._config.allowPreferredPort,this._toggleChkOpenToPublic(),this.dialog.setAttribute("session-uuid",i),this.dialog.setAttribute("access-key",o),this.dialog.show()}_hideAppLauncher(){this.dialog.hide()}async _resolveV1ProxyUri(e,t){var i;const o={endpoint:globalThis.backendaiclient._config.endpoint};if("SESSION"===globalThis.backendaiclient._config.connectionMode?(o.mode="SESSION",globalThis.backendaiclient._loginSessionId?(o.auth_mode="header",o.session=globalThis.backendaiclient._loginSessionId):(o.auth_mode="cookie",o.session=globalThis.backendaiclient._config._session_id)):(o.mode="API",o.access_key=globalThis.backendaiclient._config.accessKey,o.secret_key=globalThis.backendaiclient._config.secretKey),o.api_version=globalThis.backendaiclient.APIMajorVersion,globalThis.isElectron&&void 0===(null===(i=window.__local_proxy)||void 0===i?void 0:i.url))return this.indicator.end(),this.notification.text=Ye("session.launcher.ProxyNotReady"),void this.notification.show();const s=await this._getProxyURL(e),n={method:"PUT",body:JSON.stringify(o),headers:{Accept:"application/json","Content-Type":"application/json"},uri:new URL("conf",s).href};this.indicator.set(20,Ye("session.launcher.SettingUpProxyForApp"));const r=await this.sendRequest(n);if(void 0===r)return this.indicator.end(),this.notification.text=Ye("session.launcher.ProxyConfiguratorNotResponding"),void this.notification.show();const a=r.token;return new URL(`proxy/${a}/${e}/add?app=${t}`,s).href}async _resolveV2ProxyUri(e,t,i=null,o=null,s=null){const n=globalThis.backendaiclient._config._session_id,r=await globalThis.backendaiclient.computeSession.startService(n,e,t,i,o,s);if(void 0===r)return this.indicator.end(),this.notification.text=Ye("session.launcher.ProxyConfiguratorNotResponding"),void this.notification.show();const a=r.token;return new URL(`v2/proxy/${a}/${e}/add?app=${t}`,r.wsproxy_addr).href}async _open_wsproxy(e,t="jupyter",i=null,o=null,s=null){var n,r,a;if(void 0===globalThis.backendaiclient||null===globalThis.backendaiclient||!1===globalThis.backendaiclient.ready)return!1;const l=await globalThis.backendaiclient.computeSession.get(["scaling_group","service_ports"],e);if(void 0===l)return this.indicator.end(),this.notification.text=Ye("session.CreationFailed"),this.notification.show(),Promise.resolve(!1);const d=JSON.parse(l.compute_session.service_ports).find((({name:e})=>e===t));if(void 0===d)return this.indicator.end(),this.notification.text=Ye("session.CreationFailed"),"vscode-desktop"!==t&&this.notification.show(),Promise.resolve(!1);let c="v1"==await this._getWSProxyVersion(e)?await this._resolveV1ProxyUri(e,t):await this._resolveV2ProxyUri(e,t,null,o,s);if(!c)return this.indicator.end(),Promise.resolve(!1);const h=null===(r=null===(n=this.shadowRoot)||void 0===n?void 0:n.querySelector("#allowed-client-ips"))||void 0===r?void 0:r.value;let p=!1;null==this.checkOpenToPublic||(p=this.checkOpenToPublic.checked,this.checkOpenToPublic.checked=!1),null!==i&&i>1024&&i<65535&&(c+=`&port=${i}`),p&&(c+="&open_to_public=true"),p&&(null==h?void 0:h.length)>0&&(c+="&allowed_client_ips="+h.replace(/\s/g,"")),null!==o&&Object.keys(o).length>0&&(c=c+"&envs="+encodeURI(JSON.stringify(o))),null!==s&&Object.keys(s).length>0&&(c=c+"&args="+encodeURI(JSON.stringify(s))),(null===(a=this.customSubdomain)||void 0===a?void 0:a.value)&&(c=c+"&subdomain="+encodeURI(this.customSubdomain.value)),d.is_inference&&(c+="&is_inference=true"),c+="&protocol="+(d.protocol||"tcp"),this.indicator.set(50,Ye("session.launcher.AddingKernelToSocketQueue"));const u={method:"GET",app:t,uri:c};return this.sendRequest(u).catch((e=>{throw e&&e.message?(this.notification.text=ii.relieve(e.title),this.notification.detail=e.message):this.notification.text=ii.relieve(Ye("session.launcher.FailedToConnectCoordinator")),this.notification.show(!0,e),e}))}async _close_wsproxy(e,t="jupyter"){if(void 0===globalThis.backendaiclient||null===globalThis.backendaiclient||!1===globalThis.backendaiclient.ready)return!1;const i=globalThis.backendaiclient._config.accessKey;let o=await this._getProxyURL(e);o=new URL(`proxy/${i}/${e}/delete?app=${t}`,o),localStorage.getItem("backendaiwebui.appproxy-permit-key")&&(o.searchParams.set("permit_key",localStorage.getItem("backendaiwebui.appproxy-permit-key")||""),o=new URL(o.href));const s={method:"GET",app:t,uri:o.href,credentials:"include",mode:"cors"};return await this.sendRequest(s)}async _runAppWithParameters(e){const t=e["session-uuid"];let i=e["url-postfix"];const o=e["app-name"],s=e.mode;let n=null,r=o;if(null!=o)if(null==i&&(i=""),"args"in e&&(n=e.args),"tensorboard"!==o){if("ttyd"===o){const e=localStorage.getItem("backendaiwebui.terminalguide");e&&"true"!==e||this._openTerminalGuideDialog()}if("vscode-desktop"!==o){if(void 0===globalThis.backendaiwsproxy||null===globalThis.backendaiwsproxy){this._hideAppLauncher(),this.indicator=await globalThis.lablupIndicator.start();let e=null;this.allowTCPApps&&"sshd"===o&&(e=globalThis.backendaioptions.get("custom_ssh_port",0),"0"!==e&&0!==e||(e=null)),this.allowTCPApps&&"vscode-desktop"===o&&(e=globalThis.backendaioptions.get("custom_ssh_port",0),"0"!==e&&0!==e||(e=null),r="sshd"),this._open_wsproxy(t,r,e,null,n).then((async e=>{if(e.url)if("inference"===s)this.indicator.set(100,Ye("session.applauncher.Prepared")),this.endpointURL=e.proxy,delete this.controls.runtime,this._showAppLauncher(this.controls);else{const{appConnectUrl:t}=await this._connectToProxyWorker(e.url,i);this.indicator.set(100,Ye("session.applauncher.Prepared")),setTimeout((()=>{globalThis.open((null==t?void 0:t.href)||e.url+i,"_blank")}),1e3)}}))}}else this._openVSCodeDesktopDialog()}else this._openTensorboardDialog()}async _connectToProxyWorker(e,t,i=!0){let o=!1,s=new URL(e+t);localStorage.getItem("backendaiwebui.appproxy-permit-key")&&(s.searchParams.set("permit_key",localStorage.getItem("backendaiwebui.appproxy-permit-key")||""),s=new URL(s.href));const n={method:"GET",uri:s.href,headers:{Accept:"application/json"}},r=await this.sendRequest(n);if(r&&r.redirect_url){const e=new URL(r.redirect_url),t=e.searchParams.get("permit_key");if(t&&t.length>0&&localStorage.setItem("backendaiwebui.appproxy-permit-key",t),o=r.reuse,i){if(!r.reuse){const t={method:"GET",uri:e.href,mode:"no-cors",redirect:"follow",credentials:"include"};let i=0;for(;i<5;){const e=await this.sendRequest(t);"object"==typeof e&&"status"in e&&[500,501,502].includes(e.status)?(await this._sleep(1e3),i+=1,console.warn(`Retry connect to proxy worker (${i})...`)):i=6}}}else s=new URL(r.redirect_url)}else{s=new URL(e+t),localStorage.getItem("backendaiwebui.appproxy-permit-key")&&(s.searchParams.set("permit_key",localStorage.getItem("backendaiwebui.appproxy-permit-key")||""),s=new URL(s.href));const i={method:"GET",uri:s.href,mode:"no-cors",redirect:"follow",credentials:"include"};let o=0;for(;o<5;){const e=await this.sendRequest(i);"object"==typeof e&&"status"in e&&[500,501,502].includes(e.status)?(await this._sleep(1e3),o+=1,console.warn(`Retry connect to proxy worker (${o})...`)):o=6}}return localStorage.getItem("backendaiwebui.appproxy-permit-key")&&(s.searchParams.set("permit_key",localStorage.getItem("backendaiwebui.appproxy-permit-key")||""),s=new URL(s.href)),{appConnectUrl:s,reused:o}}async _sleep(e){return new Promise((t=>setTimeout(t,e)))}async _runThisAppWithConfirmationIfNeeded(e){const t=e.target["app-name"];if(!this.appLaunchBeforeTunneling.includes(t))return this._runThisApp(e);{const t=e.target;this.appController["app-name"]=t["app-name"];const i=t.closest("#app-dialog");this.appController["session-uuid"]=i.getAttribute("session-uuid"),this.appController["url-postfix"]=t["url-postfix"],this._openAppLaunchConfirmationDialog(e)}}async _runThisApp(e){const t=e.target.closest("mwc-icon-button");this.appController["app-name"]=t["app-name"];const i=t.closest("#app-dialog");return this.appController["session-uuid"]=i.getAttribute("session-uuid"),this.appController["url-postfix"]=t["url-postfix"],this._runApp(this.appController)}async _runApp(e){var t,i;const o=e["app-name"],s=e["session-uuid"];let n=e["url-postfix"];let r=o;if(null!=o)if(null==n&&(n=""),"tensorboard"!==o){if("ttyd"===o){const e=localStorage.getItem("backendaiwebui.terminalguide");e&&"true"!==e||this._openTerminalGuideDialog()}if(void 0===globalThis.backendaiwsproxy||null===globalThis.backendaiwsproxy){let e;this._hideAppLauncher(),this.indicator=await globalThis.lablupIndicator.start(),this.allowTCPApps&&"sshd"===o&&(e=globalThis.backendaioptions.get("custom_ssh_port",0),"0"!==e&&0!==e||(e=null)),this.allowTCPApps&&"vscode-desktop"===o&&(e=globalThis.backendaioptions.get("custom_ssh_port",0),"0"!==e&&0!==e||(e=null),r="sshd");const a=null===this.appPort||void 0===this.appPort?10250:parseInt(null===(t=this.appPort)||void 0===t?void 0:t.value);null!==this.checkPreferredPort&&(null===(i=this.checkPreferredPort)||void 0===i?void 0:i.checked)&&a&&(e=a),this._open_wsproxy(s,r,e,null,null).then((async e=>{const{appConnectUrl:t,reused:i}=await this._connectToProxyWorker(e.url,n,-1===Al.indexOf(o)||globalThis.isElectron);if(-1!==Al.indexOf(o)&&this.allowTCPApps)if(globalThis.isElectron)this.tcpHost="127.0.0.1",this.tcpPort=e.port.toString();else{let e;if(i)e=new URL(t.href);else{t.searchParams.set("do-not-redirect","true");const i=await fetch(t.href),o=await i.json(),{redirectURI:s}=o;if(null===s)return this.indicator.end(),this.notification.text=Ye("session.launcher.ProxyNotReady"),void this.notification.show();const n=new URL(s),r=n.searchParams.get("directTCP"),a=n.searchParams.get("gateway");if("true"!==r)return this.indicator.end(),this.notification.text=Ye("session.launcher.ProxyDirectTCPNotSupported"),void this.notification.show();if(null===a)return this.indicator.end(),this.notification.text=Ye("session.launcher.ProxyNotReady"),void this.notification.show();e=new URL(a.replace("tcp","http"))}this.tcpHost=e.hostname,this.tcpPort=e.port}"sshd"===o?(this.indicator.set(100,Ye("session.applauncher.Prepared")),this._readSSHKey(s),this._openSSHDialog(),setTimeout((()=>{this.indicator.end()}),1e3)):"vnc"===o?(this.indicator.set(100,Ye("session.applauncher.Prepared")),this._openVNCDialog()):"xrdp"===o?(this.indicator.set(100,Ye("session.applauncher.Prepared")),this._openXRDPDialog()):"vscode-desktop"===o?(this.indicator.set(100,Ye("session.applauncher.Prepared")),this._readTempPasswd(s),this._openVSCodeDesktopDialog(),setTimeout((()=>{this.indicator.end()}),1e3)):e.url&&(this.indicator.set(100,Ye("session.applauncher.Prepared")),setTimeout((()=>{globalThis.open((null==t?void 0:t.href)||e.url+n,"_blank")}),1e3))}))}}else this._openTensorboardDialog()}async _readSSHKey(e){var t;const i=null===(t=this.shadowRoot)||void 0===t?void 0:t.querySelector("#sshkey-download-link"),o=await globalThis.backendaiclient.download_single(e,"/home/work/id_container"),s=(await o.text()).indexOf("-----"),n=await o.slice(s,o.size,o.type);i.href=globalThis.URL.createObjectURL(n),i.download="id_container"}async _readTempPasswd(e){const t=await globalThis.backendaiclient.download_single(e,"/home/work/.password"),i=await t.text();this.vscodeDesktopPassword=i}async runTerminal(e){const t=localStorage.getItem("backendaiwebui.terminalguide");t&&"true"!==t||this._openTerminalGuideDialog(),null!=globalThis.backendaiwsproxy&&null!=globalThis.backendaiwsproxy||(this.indicator=await globalThis.lablupIndicator.start(),this._open_wsproxy(e,"ttyd").then((async e=>{const{appConnectUrl:t}=await this._connectToProxyWorker(e.url,"");e.url&&(this.indicator.set(100,Ye("session.applauncher.Prepared")),setTimeout((()=>{globalThis.open((null==t?void 0:t.href)||e.url,"_blank"),this.indicator.end()}),1e3))})))}_openAppLaunchConfirmationDialog(e){this.appLaunchConfirmationDialog.show()}_openSSHDialog(){this.sshDialog.show()}_openVNCDialog(){this.vncDialog.show()}_openXRDPDialog(){this.xrdpDialog.show()}_openTensorboardDialog(){this.tensorboardDialog.show()}_hideTensorboardDialog(){this.tensorboardDialog.hide()}async _addTensorboardPath(e){var t;this.tensorboardPath=(null===(t=this.shadowRoot)||void 0===t?void 0:t.querySelector("#tensorboard-path")).value;const i=e.target;i.setAttribute("disabled",!0);try{const e=null,t=this.appController["app-name"],o=this.appController["session-uuid"],s=this.appController["url-postfix"];this.indicator=await globalThis.lablupIndicator.start(),this.indicator.set(50,"Shutdown TensorBoard instance if exist..."),await globalThis.backendaiclient.shutdown_service(o,"tensorboard"),this.indicator.set(70,"Clean up TensorBoard proxy..."),await this._close_wsproxy(o,"tensorboard"),this.indicator.set(100,"Proxy is ready."),this.tensorboardPath=""===this.tensorboardPath?"/home/work/logs":this.tensorboardPath;const n={"--logdir":this.tensorboardPath};this._open_wsproxy(o,t,e,null,n).then((async e=>{const{appConnectUrl:t}=await this._connectToProxyWorker(e.url,s);this._hideAppLauncher(),this._hideTensorboardDialog(),i.removeAttribute("disabled"),setTimeout((()=>{globalThis.open((null==t?void 0:t.href)||e.url+s,"_blank")}),1e3)}))}catch(e){i.removeAttribute("disabled")}}_openVSCodeDesktopDialog(){this.vscodeDesktopDialog.show()}_openTerminalGuideDialog(){this.terminalGuideDialog.show()}_createDonotShowOption(){const e=this.terminalGuideDialog.children[this.terminalGuideDialog.children.length-1],t=document.createElement("div");t.setAttribute("class","horizontal layout flex center");const i=document.createElement("mwc-checkbox");i.setAttribute("id","hide-guide");const o=document.createElement("span");o.innerHTML=`${Ye("dialog.hide.DonotShowThisAgain")}`,t.appendChild(i),t.appendChild(o),e.appendChild(t)}_adjustPreferredAppPortNumber(e){const t=e.target.value;t?(t<1025||t>65534)&&(this.appPort.value=10250..toString()):this.appPort.value=10250..toString()}_adjustCustomSubdomain(e){const t=e.target.value;this.customSubdomain.value=t}_createTerminalGuide(){const e=this.terminalGuideDialog.children[1],t=document.createElement("div");t.setAttribute("class","vertical layout flex");let i=globalThis.backendaioptions.get("current_language");["en","ko","ru","fr","mn","id"].includes(i)||(i="en"),t.innerHTML=`\n      <macro-carousel pagination navigation selected="0" auto-focus reduced-motion disable-drag>\n        <article class="slide vertical layout center">\n          <span class="flex" style="background-image:url(/resources/images/web-terminal-guide-1.png); border:none;">\n            <span class="keyboard">Ctrl</span>\n            <span class="keyboard invert">+</span>\n            <span class="keyboard one-key">B</span>\n          </span>\n          <p>${Ye("webTerminalUsageGuide.CopyGuideOne")}</p>\n        </article>\n        <article class="slide vertical layout center">\n          <span style="background-image:url(/resources/images/web-terminal-guide-2.png);"></span>\n          <p>${Ye("webTerminalUsageGuide.CopyGuideTwo")}</p>\n        </article>\n        <article class="slide vertical layout center">\n          <span style="background-image:url(/resources/images/web-terminal-guide-3.png);"></span>\n          <p>${Ye("webTerminalUsageGuide.CopyGuideThree")}</p>\n        </article>\n        <article class="slide vertical layout center">\n          <span style="background-image:url(/resources/images/web-terminal-guide-4.png);">\n            <span class="keyboard">Ctrl</span>\n            <span class="keyboard invert">+</span>\n            <span class="keyboard one-key">B</span>\n          </span>\n          <div class="flex layout center-justified vertical center">\n            <p>${Ye("webTerminalUsageGuide.CopyGuideFour")}</p>\n            <a href="https://webui.docs.backend.ai/${i}/latest/sessions_all/sessions_all.html#advanced-web-terminal-usage"\n               target="_blank" style="width:100%;text-align:right;">\n              <p>${Ye("webTerminalUsageGuide.LearnMore")}</p>\n            </a>\n          </div>\n        </article>\n      </macro-carousel>`,e.appendChild(t)}_toggleChkOpenToPublic(){var e;const t=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelector("#allowed-client-ips-container");this.checkOpenToPublic&&t&&(this.checkOpenToPublic.checked?t.style.display="block":t.style.display="none")}_toggleCollapsibleArea(e){var t;const i=e.target,o=i.textContent.replace(/\s/g,"")==Ye("session.Readmore").replace(/\s/g,"");(null===(t=this.shadowRoot)||void 0===t?void 0:t.querySelector("#expandable-desc")).style.maxHeight=o?"100%":"83px",i.textContent=Ye(o?"session.Readless":"session.Readmore")}_copySSHConnectionExample(e){var t;const i=null===(t=this.shadowRoot)||void 0===t?void 0:t.querySelector(e);if(i){const e=i.textContent.replace(/[\r\n\t]+/g," ").replace(/\s\s+/g," ").trim();if(0===e.length)this.notification.text=Ye("session.applauncher.NoExistingConnectionExample"),this.notification.show();else if(void 0!==navigator.clipboard)navigator.clipboard.writeText(e).then((()=>{this.notification.text=Ye("session.applauncher.SSHConnectionExampleClipboardCopy"),this.notification.show()}),(e=>{console.error("Could not copy text: ",e)}));else{const t=document.createElement("input");t.type="text",t.value=e,document.body.appendChild(t),t.select(),document.execCommand("copy"),document.body.removeChild(t)}}}render(){return ae`
      <link rel="stylesheet" href="resources/custom.css" />
      <backend-ai-dialog id="app-dialog" fixed backdrop narrowLayout>
        <div slot="title" class="horizontal layout center">
          <span>${qt("session.applauncher.App")}</span>
        </div>
        <div slot="content">
          ${""!==this.endpointURL?ae`
                  <div
                    style="padding:15px 0;"
                    class="horizontal layout wrap center start-justified"
                  >
                    <span
                      style="font-weight:600;margin-left:20px;margin-right:15px;"
                    >
                      Endpoint URL:
                    </span>
                    <span style="font-family:monospace;">
                      ${this.endpointURL}
                    </span>
                  </div>
                `:ae``}
          <div
            style="padding:15px 0;"
            class="horizontal layout wrap center start-justified"
          >
            ${this.appSupportList.map((e=>ae`
                ${"divider"===e.category?ae`
                      <h3
                        style="width:100%;padding-left:15px;border-bottom:1px solid #ccc;"
                      >
                        ${e.title}
                      </h3>
                    `:ae`
                      <div
                        class="vertical layout center center-justified app-icon"
                      >
                        <mwc-icon-button
                          class="fg apps green"
                          .app="${e.name}"
                          .app-name="${e.name}"
                          .url-postfix="${e.redirect}"
                          @click="${e=>this._runThisAppWithConfirmationIfNeeded(e)}"
                        >
                          <img src="${e.src}" />
                        </mwc-icon-button>
                        <span class="label">${e.title}</span>
                      </div>
                    `}
              `))}
          </div>
          ${this.preOpenedPortList.length>0?ae`
                  <lablup-expansion id="preopen-ports-expansion" open>
                    <span slot="title" class="horizontal layout">
                      ${qt("session.launcher.PreOpenPortTitle")}
                    </span>
                    <div
                      style="padding:15px 0;"
                      class="horizontal layout wrap center start-justified"
                    >
                      ${this.preOpenedPortList.map((e=>ae`
                          <div
                            class="vertical layout center center-justified app-icon"
                          >
                            <mwc-icon-button
                              class="fg apps green"
                              .app="${e.name}"
                              .app-name="${e.name}"
                              @click="${e=>this._runThisAppWithConfirmationIfNeeded(e)}"
                            >
                              <img src="${e.src}" />
                            </mwc-icon-button>
                            <span class="label">${e.title}</span>
                          </div>
                        `))}
                    </div>
                  </lablup-expansion>
                `:ae``}
          <div style="padding:10px 20px 15px 20px">
            ${globalThis.isElectron||!this.openPortToPublic?"":ae`
                    <div class="horizontal layout center">
                      <mwc-checkbox
                        id="chk-open-to-public"
                        style="margin-right:0.5em;"
                        @change="${this._toggleChkOpenToPublic}"
                      ></mwc-checkbox>
                      ${qt("session.OpenToPublic")}
                    </div>
                    <div
                      class="horizontal layout center"
                      id="allowed-client-ips-container"
                    >
                      ${qt("session.AllowedClientIps")}
                      <mwc-textfield
                        id="allowed-client-ips"
                        style="margin-left:1em;"
                        helperPersistent
                        .helper="(${qt("session.CommaSeparated")})"
                      ></mwc-textfield>
                    </div>
                  `}
            ${this.allowPreferredPort?ae`
                    <div
                      id="preferred-app-port-config-box"
                      class="horizontal layout center"
                    >
                      <mwc-checkbox
                        id="chk-preferred-port"
                        style="margin-right:0.5em;"
                      ></mwc-checkbox>
                      ${qt("session.TryPreferredPort")}
                      <mwc-textfield
                        id="app-port"
                        type="number"
                        no-label-float
                        value="10250"
                        min="1025"
                        max="65534"
                        style="margin-left:1em;width:90px;"
                        @change="${e=>this._adjustPreferredAppPortNumber(e)}"
                      ></mwc-textfield>
                    </div>
                  `:ae``}
            <div class="horizontal layout center">
              ${!0===globalThis.backendaiwebui.debug?ae`
                      <mwc-checkbox
                        id="force-use-v1-proxy"
                        style="margin-right:0.5em;"
                      ></mwc-checkbox>
                      Force use of V1
                      <mwc-checkbox
                        id="force-use-v2-proxy"
                        style="margin-right:0.5em;"
                      ></mwc-checkbox>
                      Force use of V2
                    `:""}
            </div>
          </div>
          <div style="padding:10px 20px 15px 20px">
            ${!0===globalThis.backendaiwebui.debug?ae`
                    <div class="horizontal layout center">
                      <mwc-checkbox
                        id="chk-custom-subdomain"
                        style="margin-right:0.5em;"
                      ></mwc-checkbox>
                      ${qt("session.UseSubdomain")}
                      <mwc-textfield
                        id="custom-subdomain"
                        style="margin-left:1em;width:90px;"
                        @change="${e=>this._adjustCustomSubdomain(e)}"
                      ></mwc-textfield>
                    </div>
                  `:""}
          </div>
        </div>
      </backend-ai-dialog>
      <backend-ai-dialog id="ssh-dialog" fixed backdrop>
        <span slot="title">SSH / SFTP connection</span>
        <div slot="content">
          <section class="vertical layout wrap start start-justified">
            <div id="expandable-desc">
              <div style="padding:15px 0;">
                ${qt("session.SFTPDescription")}
              </div>
              <div style="background-color:var(--paper-blue-200);">
                <div
                  style="background-color:var(--paper-blue-400);padding:5px 15px"
                >
                  <span style="font-weight:700;">
                    ${qt("session.ConnectionNotice")}
                  </span>
                </div>
                <div style="padding:15px;">
                  ${Kt("session.SFTPExtraNotification")}
                </div>
              </div>
            </div>
            <button
              id="collapsible-btn"
              @click="${e=>this._toggleCollapsibleArea(e)}"
            >
              ${qt("session.Readmore")}
            </button>
            <h4>${qt("session.ConnectionInformation")}</h4>
            <div>
              <span>User:</span>
              work
            </div>
            <div>
              <span>SSH URL:</span>
              <a href="ssh://${this.tcpHost}:${this.tcpPort}">
                ssh://${this.tcpHost}
              </a>
            </div>
            <div>
              <span>SFTP URL:</span>
              <a href="sftp://${this.tcpHost}:${this.tcpPort}">
                sftp://${this.tcpHost}
              </a>
            </div>
            <div>
              <span>Port:</span>
              ${this.tcpPort}
            </div>
            <h4>${qt("session.ConnectionExample")}</h4>
            <div class="vertical layout flex" style="gap: var(--token-sizeXS); width: 100%;">
              <backend-ai-react-source-code-viewer
                key="ssh-connection-example"
                value="${JSON.stringify({children:`sftp -i ./id_container -P ${this.tcpPort} -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null work@${this.tcpHost}`,language:"shell",wordWrap:!0})}"
              ></backend-ai-react-source-code-viewer>
              <backend-ai-react-source-code-viewer
                key="ssh-connection-example2"
                value="${JSON.stringify({children:`scp -i ./id_container -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -P ${this.tcpPort} -rp /path/to/source work@${this.tcpHost}:~/${this.mountedVfolderName}`,language:"shell",wordWrap:!0})}"
              /></backend-ai-react-source-code-viewer>
              <backend-ai-react-source-code-viewer
                key="ssh-connection-example3"
                value="${JSON.stringify({children:`rsync -av -e "ssh -i ./id_container -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -p ${this.tcpPort}" /path/to/source/ work@${this.tcpHost}:~/${this.mountedVfolderName}/`,language:"shell",wordWrap:!0})}"
              /></backend-ai-react-source-code-viewer>
            </div>
          </section>
        </div>
        <div slot="footer" class="horizontal center-justified flex layout">
          <a
            id="sshkey-download-link"
            style="margin-top:15px;width:100%;"
            href=""
          >
            <mwc-button unelevated fullwidth>
              ${qt("DownloadSSHKey")}
            </mwc-button>
          </a>
        </div>
      </backend-ai-dialog>
      <backend-ai-dialog id="tensorboard-dialog" fixed>
        <span slot="title">${qt("session.TensorboardPath")}</span>
        <div slot="content" class="vertical layout">
          <div>${qt("session.InputTensorboardPath")}</div>
          <mwc-textfield
            id="tensorboard-path"
            value="${qt("session.DefaultTensorboardPath")}"
          ></mwc-textfield>
        </div>
        <div slot="footer" class="horizontal end-justified center flex layout">
          <mwc-button
            unelevated
            fullwidth
            icon="rowing"
            class="bg green"
            @click="${e=>this._addTensorboardPath(e)}"
          >
            ${qt("session.UseThisPath")}
          </mwc-button>
        </div>
      </backend-ai-dialog>
      <backend-ai-dialog id="argument-dialog" fixed>
        <span slot="title">${qt("session.Arguments")}</span>
        <div slot="content" class="vertical layout" style="padding:15px 10px;">
          <div>${qt("session.ModifyArguments")}</div>
          <mwc-textfield value=""></mwc-textfield>
        </div>
        <div slot="footer" class="horizontal center-justified flex layout">
          <mwc-button
            unelevated
            fullwidth
            class="fg apps green"
            @click="${e=>this._addTensorboardPath(e)}"
          >
            ${qt("session.UseThisArguments")}
          </mwc-button>
        </div>
      </backend-ai-dialog>
      <backend-ai-dialog id="vnc-dialog" fixed backdrop>
        <span slot="title">${qt("session.VNCconnection")}</span>
        <div slot="content" style="padding:15px;">
          <div style="padding:15px 0;">
            ${qt("session.UseYourFavoriteVNCApp")}
          </div>
          <section class="vertical layout wrap start start-justified">
            <h4>${qt("session.ConnectionInformation")}</h4>
            <div>
              <span>VNC URL:</span>
              <a href="ssh://127.0.0.1:${this.tcpPort}">
                vnc://127.0.0.1:${this.tcpPort}
              </a>
            </div>
          </section>
        </div>
      </backend-ai-dialog>
      <backend-ai-dialog id="xrdp-dialog" fixed backdrop>
        <span slot="title">${qt("session.XRDPconnection")}</span>
        <div slot="content" style="padding:15px;">
          <div style="padding:15px 0;">
            ${qt("session.UseYourFavoriteMSTSCApp")}
          </div>
          <section class="vertical layout wrap start start-justified">
            <h4>${qt("session.ConnectionInformation")}</h4>
            <div>
              <span>RDP URL:</span>
              <a href="rdp://127.0.0.1:${this.tcpPort}">
                rdp://127.0.0.1:${this.tcpPort}
              </a>
            </div>
          </section>
        </div>
      </backend-ai-dialog>
      <backend-ai-dialog
        id="app-launch-confirmation-dialog"
        warning
        fixed
        backdrop
      >
        <span slot="title">${qt("session.applauncher.AppMustBeRun")}</span>
        <div slot="content" class="vertical layout">
          <p>${qt("session.applauncher.AppMustBeRunDialog")}</p>
          <p>${qt("dialog.ask.DoYouWantToProceed")}</p>
        </div>
        <div slot="footer" class="horizontal center-justified flex layout">
          <mwc-button
            raised
            id="app-launch-confirmation-button"
            icon="rowing"
            label="${qt("session.applauncher.ConfirmAndRun")}"
            fullwidth
            @click="${()=>this._runApp(this.appController)}"
          ></mwc-button>
        </div>
      </backend-ai-dialog>
      <backend-ai-dialog id="terminal-guide" fixed backdrop>
        <span slot="title">${qt("webTerminalUsageGuide.CopyGuide")}</span>
        <div slot="content"></div>
        <div slot="footer"></div>
      </backend-ai-dialog>
      <backend-ai-dialog id="vscode-desktop-dialog" fixed backdrop>
        <span slot="title">${qt("session.VSCodeRemoteConnection")}</span>
        <div slot="content">
          <div>${qt("session.VSCodeRemoteDescription")}</div>
          <section class="vertical layout wrap start start-justified">
            <h4>${qt("session.ConnectionInformation")}</h4>
            <span>${qt("session.VSCodeRemotePasswordTitle")}:</span>
            <backend-ai-react-copyable-code-text
              value="${this.vscodeDesktopPassword}"
              style="width:max-content;margin-bottom:10px;"
            ></backend-ai-react-copyable-code-text>
            <div class="horizontal wrap layout vscode-connection-example">
              <span>${qt("session.VSCodeRemoteNoticeSSHConfig")}</span>
              <pre style="white-space:pre-line;">
                Host bai-vscode
                &nbsp;User work
                &nbsp;Hostname ${this.tcpHost}
                &nbsp;Port ${this.tcpPort}
                &nbsp;StrictHostKeyChecking no
                &nbsp;UserKnownHostsFile /dev/null
              </pre
              >
            </div>
          </section>
        </div>
        <div slot="footer" class="horizontal center-justified flex layout">
          <a
            id="vscode-link"
            style="margin-top:15px;width:100%;"
            href="vscode://vscode-remote/ssh-remote+work@${this.tcpHost}%3A${this.tcpPort}/home/work"
          >
            <mwc-button unelevated fullwidth>
              ${qt("OpenVSCodeRemote")}
            </mwc-button>
          </a>
        </div>
      </backend-ai-dialog>
    `}};o([Zt({type:Boolean,reflect:!0})],kl.prototype,"active",void 0),o([Zt({type:String})],kl.prototype,"condition",void 0),o([Zt({type:Object})],kl.prototype,"jobs",void 0),o([Zt({type:Object})],kl.prototype,"controls",void 0),o([Zt({type:Array})],kl.prototype,"appSupportList",void 0),o([Zt({type:Array})],kl.prototype,"preOpenedPortList",void 0),o([Zt({type:Array})],kl.prototype,"appSupportOption",void 0),o([Zt({type:Object})],kl.prototype,"appTemplate",void 0),o([Zt({type:Object})],kl.prototype,"imageInfo",void 0),o([Zt({type:Array})],kl.prototype,"_selected_items",void 0),o([Zt({type:Boolean})],kl.prototype,"refreshing",void 0),o([Zt({type:Object})],kl.prototype,"notification",void 0),o([Zt({type:Object})],kl.prototype,"refreshTimer",void 0),o([Zt({type:Object})],kl.prototype,"kernel_labels",void 0),o([Zt({type:Object})],kl.prototype,"indicator",void 0),o([Zt({type:String})],kl.prototype,"tcpHost",void 0),o([Zt({type:String})],kl.prototype,"tcpPort",void 0),o([Zt({type:String})],kl.prototype,"mountedVfolderName",void 0),o([Zt({type:String})],kl.prototype,"tensorboardPath",void 0),o([Zt({type:String})],kl.prototype,"endpointURL",void 0),o([Zt({type:Boolean})],kl.prototype,"isPathConfigured",void 0),o([Zt({type:Array})],kl.prototype,"appLaunchBeforeTunneling",void 0),o([Zt({type:Object})],kl.prototype,"appController",void 0),o([Zt({type:Boolean})],kl.prototype,"allowTCPApps",void 0),o([Zt({type:Boolean})],kl.prototype,"openPortToPublic",void 0),o([Zt({type:Boolean})],kl.prototype,"allowPreferredPort",void 0),o([Zt({type:Array})],kl.prototype,"appOrder",void 0),o([Zt({type:Object})],kl.prototype,"appEnvs",void 0),o([Zt({type:Object})],kl.prototype,"appArgs",void 0),o([Zt({type:String})],kl.prototype,"vscodeDesktopPassword",void 0),o([ei("#app-dialog")],kl.prototype,"dialog",void 0),o([ei("#app-port")],kl.prototype,"appPort",void 0),o([ei("#custom-subdomain")],kl.prototype,"customSubdomain",void 0),o([ei("#chk-open-to-public")],kl.prototype,"checkOpenToPublic",void 0),o([ei("#chk-preferred-port")],kl.prototype,"checkPreferredPort",void 0),o([ei("#force-use-v1-proxy")],kl.prototype,"forceUseV1Proxy",void 0),o([ei("#force-use-v2-proxy")],kl.prototype,"forceUseV2Proxy",void 0),o([ei("#app-launch-confirmation-dialog")],kl.prototype,"appLaunchConfirmationDialog",void 0),o([ei("#ssh-dialog")],kl.prototype,"sshDialog",void 0),o([ei("#tensorboard-dialog")],kl.prototype,"tensorboardDialog",void 0),o([ei("#terminal-guide")],kl.prototype,"terminalGuideDialog",void 0),o([ei("#vnc-dialog")],kl.prototype,"vncDialog",void 0),o([ei("#xrdp-dialog")],kl.prototype,"xrdpDialog",void 0),o([ei("#vscode-desktop-dialog")],kl.prototype,"vscodeDesktopDialog",void 0),kl=o([Xt("backend-ai-app-launcher")],kl);let El=class extends ti{constructor(){super(),this.options=Object()}static get passwordRegex(){return"^(?=.*\\d)(?=.*[a-zA-Z])(?=.*[_\\W]).{8,}$"}_readRecentProjectGroup(){const e=globalThis.backendaiclient._config.endpointHost.replace(/\./g,"_"),t=globalThis.backendaioptions.get("projectGroup."+e);return t?globalThis.backendaiclient.groups.length>0&&globalThis.backendaiclient.groups.includes(t)?t:(this._deleteRecentProjectGroupInfo(),globalThis.backendaiclient.current_group):globalThis.backendaiclient.current_group}_writeRecentProjectGroup(e){const t=globalThis.backendaiclient._config.endpointHost.replace(/\./g,"_");globalThis.backendaioptions.set("projectGroup."+t,e||globalThis.backendaiclient.current_group)}_deleteRecentProjectGroupInfo(){const e=globalThis.backendaiclient._config.endpointHost.replace(/\./g,"_");globalThis.backendaioptions.delete("projectGroup."+e)}_humanReadableFileSize(e=0,t=2){if(0===e)return"0 Bytes";const i=Math.pow(10,3);t=t<0?0:t;let o=Math.floor(Math.log(Math.round(e))/Math.log(i));return o=o<0?0:o,parseFloat((e/Math.pow(i,o)).toFixed(t))+" "+["Bytes","KB","MB","GB","TB","PB"][o]}_maskString(e="",t="*",i=0,o=0){return o=i+o>e.length?e.length:o,e.substring(0,i)+t.repeat(o)+e.substring(i+o,e.length)}deleteNestedKeyFromObject(e,t,i="."){if(!e||e.constructor!==Object||!t)return e;const o=t.split(i),s=o.pop();return s&&delete o.reduce(((e,t)=>e[t]),e)[s],e}mergeNestedObjects(e,t){if(!e||!t)return e||t||{};return[e,t].reduce((function e(t,i){return Object.entries(i).reduce(((t,[i,o])=>(t[i]=o&&o.constructor===Object?e(t[i]=t[i]||(Array.isArray(o)?[]:{}),o):o,t)),t)}),{})}exportToTxt(e,t){if(!t||0===t.length)return;const i=new Blob([t],{type:"text/plain;charset=utf-8"}),o=document.createElement("a");if(void 0!==o.download){const t=URL.createObjectURL(i);o.setAttribute("href",t),o.setAttribute("download",e+".txt"),o.style.visibility="hidden",document.body.appendChild(o),o.click(),document.body.removeChild(o)}}isEmpty(e){return""===e||null==e||void 0===e}render(){return ae``}};o([Zt({type:Object})],El.prototype,"options",void 0),El=o([Xt("backend-ai-common-utils")],El);var Sl=El;let Cl=class extends ti{constructor(){super(...arguments),this.lang="default",this.manualURL="",this.disabled=!1,this.URLmatchingTable={"":"summary/summary.html",summary:"summary/summary.html",job:"sessions_all/sessions_all.html",import:"import_run/import_run.html",data:"vfolder/vfolder.html",statistics:"statistics/statistics.html",credential:"admin_menu/admin_menu.html",environment:"admin_menu/admin_menu.html#manage-images",agent:"admin_menu/admin_menu.html#query-agent-nodes",settings:"admin_menu/admin_menu.html#system-settings",mainetenance:"admin_menu/admin_menu.html#server-management",information:"admin_menu/admin_menu.html#detailed-information",usersettings:"user_settings/user_settings.html"}}static get styles(){return[A`
        mwc-icon-button {
          color: white;
        }
      `]}firstUpdated(){this.currentPage}get currentPage(){const e=globalThis.location.toString().split(/[/]+/).pop();return void 0===this.page?this.page="error":this.page=e,this.page}showHelpPage(){let e="";if(""!==this.manualURL)e=this.manualURL;else if(this.currentPage in this.URLmatchingTable){e=this.URLmatchingTable[this.currentPage];const t=globalThis.backendaioptions.get("current_language");["ko","en"].includes(t)?this.lang=t:this.lang="en"}this.showOnlineHelpPage(e),this.blur()}showOnlineHelpPage(e){window.open(`https://webui.docs.backend.ai/${this.lang}/latest/`+e,"_blank")}render(){return ae`
      <mwc-icon-button
        id="help-page-button"
        icon="help_outline"
        @click="${()=>this.showHelpPage()}"
      ></mwc-icon-button>
    `}};o([Zt({type:String})],Cl.prototype,"lang",void 0),o([Zt({type:String})],Cl.prototype,"manualURL",void 0),o([Zt({type:String})],Cl.prototype,"page",void 0),o([Zt({type:Boolean})],Cl.prototype,"disabled",void 0),o([Zt({type:Object})],Cl.prototype,"URLmatchingTable",void 0),Cl=o([Xt("backend-ai-help-button")],Cl);
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */
const Tl=(e,t)=>"method"===t.kind&&t.descriptor&&!("value"in t.descriptor)?{...t,finisher(i){i.createProperty(t.key,e)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:t.key,initializer(){"function"==typeof t.initializer&&(this[t.key]=t.initializer.call(this))},finisher(i){i.createProperty(t.key,e)}};
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */function Pl(e){return(t,i)=>void 0!==i?((e,t,i)=>{t.constructor.createProperty(i,e)})(e,t,i):Tl(e,t)
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */}
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */
function Il(e,t){return(({finisher:e,descriptor:t})=>(i,o)=>{var s;if(void 0===o){const o=null!==(s=i.originalKey)&&void 0!==s?s:i.key,n=null!=t?{kind:"method",placement:"prototype",key:o,descriptor:t(i.key)}:{...i,key:o};return null!=e&&(n.finisher=function(t){e(t,o)}),n}{const s=i.constructor;void 0!==t&&Object.defineProperty(i,o,t(o)),null==e||e(s,o)}})({descriptor:t=>{const i={get(){var t,i;return null!==(i=null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector(e))&&void 0!==i?i:null},enumerable:!0,configurable:!0};return i}})}
/**
 * @license
 * Copyright 2021 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */var Ol;null===(Ol=window.HTMLSlotElement)||void 0===Ol||Ol.prototype.assignedElements,
/**
 * @license
 * Copyright 2016 Google Inc. All rights reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
(()=>{var e,t,i;const o=Symbol(),s=Symbol(),n=Symbol(),r=Symbol(),a=Symbol(),l=Symbol(),d=Symbol(),c=Symbol(),h=Symbol(),p=Symbol(),u=Symbol(),m=Symbol(),g=Symbol();class f{constructor(){this[e]=[],this[t]=[],this[i]=new Set}destructor(){this[h](this[n]);const e=this;e[o]=null,e[n]=null,e[s]=null}get top(){const e=this[o];return e[e.length-1]||null}push(e){e&&e!==this.top&&(this.remove(e),this[l](e),this[o].push(e))}remove(e){const t=this[o].indexOf(e);return-1!==t&&(this[o].splice(t,1),t===this[o].length&&this[l](this.top),!0)}pop(){const e=this.top;return e&&this.remove(e),e}has(e){return-1!==this[o].indexOf(e)}[(e=o,t=n,i=s,l)](e){const t=this[s],i=this[n];if(!e)return this[h](i),t.clear(),void(this[n]=[]);const o=this[p](e);if(o[o.length-1].parentNode!==document.body)throw Error("Non-connected element cannot be a blocking element");this[n]=o;const r=this[u](e);if(!i.length)return void this[c](o,r,t);let a=i.length-1,l=o.length-1;for(;a>0&&l>0&&i[a]===o[l];)a--,l--;i[a]!==o[l]&&this[d](i[a],o[l]),a>0&&this[h](i.slice(0,a)),l>0&&this[c](o.slice(0,l),r,null)}[d](e,t){const i=e[r];this[m](e)&&!e.inert&&(e.inert=!0,i.add(e)),i.has(t)&&(t.inert=!1,i.delete(t)),t[a]=e[a],t[r]=i,e[a]=void 0,e[r]=void 0}[h](e){for(const t of e){t[a].disconnect(),t[a]=void 0;const e=t[r];for(const t of e)t.inert=!1;t[r]=void 0}}[c](e,t,i){for(const o of e){const e=o.parentNode,s=e.children,n=new Set;for(let e=0;e<s.length;e++){const r=s[e];r===o||!this[m](r)||t&&t.has(r)||(i&&r.inert?i.add(r):(r.inert=!0,n.add(r)))}o[r]=n;const l=new MutationObserver(this[g].bind(this));o[a]=l;let d=e;const c=d;c.__shady&&c.host&&(d=c.host),l.observe(d,{childList:!0})}}[g](e){const t=this[n],i=this[s];for(const o of e){const e=o.target.host||o.target,s=e===document.body?t.length:t.indexOf(e),n=t[s-1],a=n[r];for(let e=0;e<o.removedNodes.length;e++){const t=o.removedNodes[e];if(t===n)return console.info("Detected removal of the top Blocking Element."),void this.pop();a.has(t)&&(t.inert=!1,a.delete(t))}for(let e=0;e<o.addedNodes.length;e++){const t=o.addedNodes[e];this[m](t)&&(i&&t.inert?i.add(t):(t.inert=!0,a.add(t)))}}}[m](e){return!1===/^(style|template|script)$/.test(e.localName)}[p](e){const t=[];let i=e;for(;i&&i!==document.body;)if(i.nodeType===Node.ELEMENT_NODE&&t.push(i),i.assignedSlot){for(;i=i.assignedSlot;)t.push(i);i=t.pop()}else i=i.parentNode||i.host;return t}[u](e){const t=e.shadowRoot;if(!t)return null;const i=new Set;let o,s,n;const r=t.querySelectorAll("slot");if(r.length&&r[0].assignedNodes)for(o=0;o<r.length;o++)for(n=r[o].assignedNodes({flatten:!0}),s=0;s<n.length;s++)n[s].nodeType===Node.ELEMENT_NODE&&i.add(n[s]);return i}}document.$blockingElements=new f})();var Rl=function(){function e(e,t){for(var i=0;i<t.length;i++){var o=t[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,i,o){return i&&e(t.prototype,i),o&&e(t,o),t}}();function Nl(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}!function(){if("undefined"!=typeof window){var e=Array.prototype.slice,t=Element.prototype.matches||Element.prototype.msMatchesSelector,i=["a[href]","area[href]","input:not([disabled])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","details","summary","iframe","object","embed","[contenteditable]"].join(","),o=function(){function o(e,t){Nl(this,o),this._inertManager=t,this._rootElement=e,this._managedNodes=new Set,this._rootElement.hasAttribute("aria-hidden")?this._savedAriaHidden=this._rootElement.getAttribute("aria-hidden"):this._savedAriaHidden=null,this._rootElement.setAttribute("aria-hidden","true"),this._makeSubtreeUnfocusable(this._rootElement),this._observer=new MutationObserver(this._onMutation.bind(this)),this._observer.observe(this._rootElement,{attributes:!0,childList:!0,subtree:!0})}return Rl(o,[{key:"destructor",value:function(){this._observer.disconnect(),this._rootElement&&(null!==this._savedAriaHidden?this._rootElement.setAttribute("aria-hidden",this._savedAriaHidden):this._rootElement.removeAttribute("aria-hidden")),this._managedNodes.forEach((function(e){this._unmanageNode(e.node)}),this),this._observer=null,this._rootElement=null,this._managedNodes=null,this._inertManager=null}},{key:"_makeSubtreeUnfocusable",value:function(e){var t=this;a(e,(function(e){return t._visitNode(e)}));var i=document.activeElement;if(!document.body.contains(e)){for(var o=e,s=void 0;o;){if(o.nodeType===Node.DOCUMENT_FRAGMENT_NODE){s=o;break}o=o.parentNode}s&&(i=s.activeElement)}e.contains(i)&&(i.blur(),i===document.activeElement&&document.body.focus())}},{key:"_visitNode",value:function(e){if(e.nodeType===Node.ELEMENT_NODE){var o=e;o!==this._rootElement&&o.hasAttribute("inert")&&this._adoptInertRoot(o),(t.call(o,i)||o.hasAttribute("tabindex"))&&this._manageNode(o)}}},{key:"_manageNode",value:function(e){var t=this._inertManager.register(e,this);this._managedNodes.add(t)}},{key:"_unmanageNode",value:function(e){var t=this._inertManager.deregister(e,this);t&&this._managedNodes.delete(t)}},{key:"_unmanageSubtree",value:function(e){var t=this;a(e,(function(e){return t._unmanageNode(e)}))}},{key:"_adoptInertRoot",value:function(e){var t=this._inertManager.getInertRoot(e);t||(this._inertManager.setInert(e,!0),t=this._inertManager.getInertRoot(e)),t.managedNodes.forEach((function(e){this._manageNode(e.node)}),this)}},{key:"_onMutation",value:function(t,i){t.forEach((function(t){var i=t.target;if("childList"===t.type)e.call(t.addedNodes).forEach((function(e){this._makeSubtreeUnfocusable(e)}),this),e.call(t.removedNodes).forEach((function(e){this._unmanageSubtree(e)}),this);else if("attributes"===t.type)if("tabindex"===t.attributeName)this._manageNode(i);else if(i!==this._rootElement&&"inert"===t.attributeName&&i.hasAttribute("inert")){this._adoptInertRoot(i);var o=this._inertManager.getInertRoot(i);this._managedNodes.forEach((function(e){i.contains(e.node)&&o._manageNode(e.node)}))}}),this)}},{key:"managedNodes",get:function(){return new Set(this._managedNodes)}},{key:"hasSavedAriaHidden",get:function(){return null!==this._savedAriaHidden}},{key:"savedAriaHidden",set:function(e){this._savedAriaHidden=e},get:function(){return this._savedAriaHidden}}]),o}(),s=function(){function e(t,i){Nl(this,e),this._node=t,this._overrodeFocusMethod=!1,this._inertRoots=new Set([i]),this._savedTabIndex=null,this._destroyed=!1,this.ensureUntabbable()}return Rl(e,[{key:"destructor",value:function(){if(this._throwIfDestroyed(),this._node&&this._node.nodeType===Node.ELEMENT_NODE){var e=this._node;null!==this._savedTabIndex?e.setAttribute("tabindex",this._savedTabIndex):e.removeAttribute("tabindex"),this._overrodeFocusMethod&&delete e.focus}this._node=null,this._inertRoots=null,this._destroyed=!0}},{key:"_throwIfDestroyed",value:function(){if(this.destroyed)throw new Error("Trying to access destroyed InertNode")}},{key:"ensureUntabbable",value:function(){if(this.node.nodeType===Node.ELEMENT_NODE){var e=this.node;if(t.call(e,i)){if(-1===e.tabIndex&&this.hasSavedTabIndex)return;e.hasAttribute("tabindex")&&(this._savedTabIndex=e.tabIndex),e.setAttribute("tabindex","-1"),e.nodeType===Node.ELEMENT_NODE&&(e.focus=function(){},this._overrodeFocusMethod=!0)}else e.hasAttribute("tabindex")&&(this._savedTabIndex=e.tabIndex,e.removeAttribute("tabindex"))}}},{key:"addInertRoot",value:function(e){this._throwIfDestroyed(),this._inertRoots.add(e)}},{key:"removeInertRoot",value:function(e){this._throwIfDestroyed(),this._inertRoots.delete(e),0===this._inertRoots.size&&this.destructor()}},{key:"destroyed",get:function(){return this._destroyed}},{key:"hasSavedTabIndex",get:function(){return null!==this._savedTabIndex}},{key:"node",get:function(){return this._throwIfDestroyed(),this._node}},{key:"savedTabIndex",set:function(e){this._throwIfDestroyed(),this._savedTabIndex=e},get:function(){return this._throwIfDestroyed(),this._savedTabIndex}}]),e}(),n=function(){function i(e){if(Nl(this,i),!e)throw new Error("Missing required argument; InertManager needs to wrap a document.");this._document=e,this._managedNodes=new Map,this._inertRoots=new Map,this._observer=new MutationObserver(this._watchForInert.bind(this)),l(e.head||e.body||e.documentElement),"loading"===e.readyState?e.addEventListener("DOMContentLoaded",this._onDocumentLoaded.bind(this)):this._onDocumentLoaded()}return Rl(i,[{key:"setInert",value:function(e,t){if(t){if(this._inertRoots.has(e))return;var i=new o(e,this);if(e.setAttribute("inert",""),this._inertRoots.set(e,i),!this._document.body.contains(e))for(var s=e.parentNode;s;)11===s.nodeType&&l(s),s=s.parentNode}else{if(!this._inertRoots.has(e))return;this._inertRoots.get(e).destructor(),this._inertRoots.delete(e),e.removeAttribute("inert")}}},{key:"getInertRoot",value:function(e){return this._inertRoots.get(e)}},{key:"register",value:function(e,t){var i=this._managedNodes.get(e);return void 0!==i?i.addInertRoot(t):i=new s(e,t),this._managedNodes.set(e,i),i}},{key:"deregister",value:function(e,t){var i=this._managedNodes.get(e);return i?(i.removeInertRoot(t),i.destroyed&&this._managedNodes.delete(e),i):null}},{key:"_onDocumentLoaded",value:function(){e.call(this._document.querySelectorAll("[inert]")).forEach((function(e){this.setInert(e,!0)}),this),this._observer.observe(this._document.body||this._document.documentElement,{attributes:!0,subtree:!0,childList:!0})}},{key:"_watchForInert",value:function(i,o){var s=this;i.forEach((function(i){switch(i.type){case"childList":e.call(i.addedNodes).forEach((function(i){if(i.nodeType===Node.ELEMENT_NODE){var o=e.call(i.querySelectorAll("[inert]"));t.call(i,"[inert]")&&o.unshift(i),o.forEach((function(e){this.setInert(e,!0)}),s)}}),s);break;case"attributes":if("inert"!==i.attributeName)return;var o=i.target,n=o.hasAttribute("inert");s.setInert(o,n)}}),this)}}]),i}();if(!HTMLElement.prototype.hasOwnProperty("inert")){var r=new n(document);Object.defineProperty(HTMLElement.prototype,"inert",{enumerable:!0,get:function(){return this.hasAttribute("inert")},set:function(e){r.setInert(this,e)}})}}function a(e,t,i){if(e.nodeType==Node.ELEMENT_NODE){var o=e;t&&t(o);var s=o.shadowRoot;if(s)return void a(s,t);if("content"==o.localName){for(var n=o,r=n.getDistributedNodes?n.getDistributedNodes():[],l=0;l<r.length;l++)a(r[l],t);return}if("slot"==o.localName){for(var d=o,c=d.assignedNodes?d.assignedNodes({flatten:!0}):[],h=0;h<c.length;h++)a(c[h],t);return}}for(var p=e.firstChild;null!=p;)a(p,t),p=p.nextSibling}function l(e){if(!e.querySelector("style#inert-style, link#inert-style")){var t=document.createElement("style");t.setAttribute("id","inert-style"),t.textContent="\n[inert] {\n  pointer-events: none;\n  cursor: default;\n}\n\n[inert], [inert] * {\n  -webkit-user-select: none;\n  -moz-user-select: none;\n  -ms-user-select: none;\n  user-select: none;\n}\n",e.appendChild(t)}}}();
/**
 * @license
 * Copyright 2016 Google Inc.
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 * THE SOFTWARE.
 */
var Ll,Ml={CLOSING:"mdc-dialog--closing",OPEN:"mdc-dialog--open",OPENING:"mdc-dialog--opening",SCROLLABLE:"mdc-dialog--scrollable",SCROLL_LOCK:"mdc-dialog-scroll-lock",STACKED:"mdc-dialog--stacked",FULLSCREEN:"mdc-dialog--fullscreen",SCROLL_DIVIDER_HEADER:"mdc-dialog-scroll-divider-header",SCROLL_DIVIDER_FOOTER:"mdc-dialog-scroll-divider-footer",SURFACE_SCRIM_SHOWN:"mdc-dialog__surface-scrim--shown",SURFACE_SCRIM_SHOWING:"mdc-dialog__surface-scrim--showing",SURFACE_SCRIM_HIDING:"mdc-dialog__surface-scrim--hiding",SCRIM_HIDDEN:"mdc-dialog__scrim--hidden"},Ul={ACTION_ATTRIBUTE:"data-mdc-dialog-action",BUTTON_DEFAULT_ATTRIBUTE:"data-mdc-dialog-button-default",BUTTON_SELECTOR:".mdc-dialog__button",CLOSED_EVENT:"MDCDialog:closed",CLOSE_ACTION:"close",CLOSING_EVENT:"MDCDialog:closing",CONTAINER_SELECTOR:".mdc-dialog__container",CONTENT_SELECTOR:".mdc-dialog__content",DESTROY_ACTION:"destroy",INITIAL_FOCUS_ATTRIBUTE:"data-mdc-dialog-initial-focus",OPENED_EVENT:"MDCDialog:opened",OPENING_EVENT:"MDCDialog:opening",SCRIM_SELECTOR:".mdc-dialog__scrim",SUPPRESS_DEFAULT_PRESS_SELECTOR:["textarea",".mdc-menu .mdc-list-item",".mdc-menu .mdc-deprecated-list-item"].join(", "),SURFACE_SELECTOR:".mdc-dialog__surface"},Hl={DIALOG_ANIMATION_CLOSE_TIME_MS:75,DIALOG_ANIMATION_OPEN_TIME_MS:150},Dl=function(){function e(){this.rafIDs=new Map}return e.prototype.request=function(e,t){var i=this;this.cancel(e);var o=requestAnimationFrame((function(o){i.rafIDs.delete(e),t(o)}));this.rafIDs.set(e,o)},e.prototype.cancel=function(e){var t=this.rafIDs.get(e);t&&(cancelAnimationFrame(t),this.rafIDs.delete(e))},e.prototype.cancelAll=function(){var e=this;this.rafIDs.forEach((function(t,i){e.cancel(i)}))},e.prototype.getQueue=function(){var e=[];return this.rafIDs.forEach((function(t,i){e.push(i)})),e},e}();!function(e){e.POLL_SCROLL_POS="poll_scroll_position",e.POLL_LAYOUT_CHANGE="poll_layout_change"}(Ll||(Ll={}));var zl=function(e){function o(t){var s=e.call(this,i(i({},o.defaultAdapter),t))||this;return s.dialogOpen=!1,s.isFullscreen=!1,s.animationFrame=0,s.animationTimer=0,s.escapeKeyAction=Ul.CLOSE_ACTION,s.scrimClickAction=Ul.CLOSE_ACTION,s.autoStackButtons=!0,s.areButtonsStacked=!1,s.suppressDefaultPressSelector=Ul.SUPPRESS_DEFAULT_PRESS_SELECTOR,s.animFrame=new Dl,s.contentScrollHandler=function(){s.handleScrollEvent()},s.windowResizeHandler=function(){s.layout()},s.windowOrientationChangeHandler=function(){s.layout()},s}return t(o,e),Object.defineProperty(o,"cssClasses",{get:function(){return Ml},enumerable:!1,configurable:!0}),Object.defineProperty(o,"strings",{get:function(){return Ul},enumerable:!1,configurable:!0}),Object.defineProperty(o,"numbers",{get:function(){return Hl},enumerable:!1,configurable:!0}),Object.defineProperty(o,"defaultAdapter",{get:function(){return{addBodyClass:function(){},addClass:function(){},areButtonsStacked:function(){return!1},clickDefaultButton:function(){},eventTargetMatches:function(){return!1},getActionFromEvent:function(){return""},getInitialFocusEl:function(){return null},hasClass:function(){return!1},isContentScrollable:function(){return!1},notifyClosed:function(){},notifyClosing:function(){},notifyOpened:function(){},notifyOpening:function(){},releaseFocus:function(){},removeBodyClass:function(){},removeClass:function(){},reverseButtons:function(){},trapFocus:function(){},registerContentEventHandler:function(){},deregisterContentEventHandler:function(){},isScrollableContentAtTop:function(){return!1},isScrollableContentAtBottom:function(){return!1},registerWindowEventHandler:function(){},deregisterWindowEventHandler:function(){}}},enumerable:!1,configurable:!0}),o.prototype.init=function(){this.adapter.hasClass(Ml.STACKED)&&this.setAutoStackButtons(!1),this.isFullscreen=this.adapter.hasClass(Ml.FULLSCREEN)},o.prototype.destroy=function(){this.animationTimer&&(clearTimeout(this.animationTimer),this.handleAnimationTimerEnd()),this.isFullscreen&&this.adapter.deregisterContentEventHandler("scroll",this.contentScrollHandler),this.animFrame.cancelAll(),this.adapter.deregisterWindowEventHandler("resize",this.windowResizeHandler),this.adapter.deregisterWindowEventHandler("orientationchange",this.windowOrientationChangeHandler)},o.prototype.open=function(e){var t=this;this.dialogOpen=!0,this.adapter.notifyOpening(),this.adapter.addClass(Ml.OPENING),this.isFullscreen&&this.adapter.registerContentEventHandler("scroll",this.contentScrollHandler),e&&e.isAboveFullscreenDialog&&this.adapter.addClass(Ml.SCRIM_HIDDEN),this.adapter.registerWindowEventHandler("resize",this.windowResizeHandler),this.adapter.registerWindowEventHandler("orientationchange",this.windowOrientationChangeHandler),this.runNextAnimationFrame((function(){t.adapter.addClass(Ml.OPEN),t.adapter.addBodyClass(Ml.SCROLL_LOCK),t.layout(),t.animationTimer=setTimeout((function(){t.handleAnimationTimerEnd(),t.adapter.trapFocus(t.adapter.getInitialFocusEl()),t.adapter.notifyOpened()}),Hl.DIALOG_ANIMATION_OPEN_TIME_MS)}))},o.prototype.close=function(e){var t=this;void 0===e&&(e=""),this.dialogOpen&&(this.dialogOpen=!1,this.adapter.notifyClosing(e),this.adapter.addClass(Ml.CLOSING),this.adapter.removeClass(Ml.OPEN),this.adapter.removeBodyClass(Ml.SCROLL_LOCK),this.isFullscreen&&this.adapter.deregisterContentEventHandler("scroll",this.contentScrollHandler),this.adapter.deregisterWindowEventHandler("resize",this.windowResizeHandler),this.adapter.deregisterWindowEventHandler("orientationchange",this.windowOrientationChangeHandler),cancelAnimationFrame(this.animationFrame),this.animationFrame=0,clearTimeout(this.animationTimer),this.animationTimer=setTimeout((function(){t.adapter.releaseFocus(),t.handleAnimationTimerEnd(),t.adapter.notifyClosed(e)}),Hl.DIALOG_ANIMATION_CLOSE_TIME_MS))},o.prototype.showSurfaceScrim=function(){var e=this;this.adapter.addClass(Ml.SURFACE_SCRIM_SHOWING),this.runNextAnimationFrame((function(){e.adapter.addClass(Ml.SURFACE_SCRIM_SHOWN)}))},o.prototype.hideSurfaceScrim=function(){this.adapter.removeClass(Ml.SURFACE_SCRIM_SHOWN),this.adapter.addClass(Ml.SURFACE_SCRIM_HIDING)},o.prototype.handleSurfaceScrimTransitionEnd=function(){this.adapter.removeClass(Ml.SURFACE_SCRIM_HIDING),this.adapter.removeClass(Ml.SURFACE_SCRIM_SHOWING)},o.prototype.isOpen=function(){return this.dialogOpen},o.prototype.getEscapeKeyAction=function(){return this.escapeKeyAction},o.prototype.setEscapeKeyAction=function(e){this.escapeKeyAction=e},o.prototype.getScrimClickAction=function(){return this.scrimClickAction},o.prototype.setScrimClickAction=function(e){this.scrimClickAction=e},o.prototype.getAutoStackButtons=function(){return this.autoStackButtons},o.prototype.setAutoStackButtons=function(e){this.autoStackButtons=e},o.prototype.getSuppressDefaultPressSelector=function(){return this.suppressDefaultPressSelector},o.prototype.setSuppressDefaultPressSelector=function(e){this.suppressDefaultPressSelector=e},o.prototype.layout=function(){var e=this;this.animFrame.request(Ll.POLL_LAYOUT_CHANGE,(function(){e.layoutInternal()}))},o.prototype.handleClick=function(e){if(this.adapter.eventTargetMatches(e.target,Ul.SCRIM_SELECTOR)&&""!==this.scrimClickAction)this.close(this.scrimClickAction);else{var t=this.adapter.getActionFromEvent(e);t&&this.close(t)}},o.prototype.handleKeydown=function(e){var t="Enter"===e.key||13===e.keyCode;if(t&&!this.adapter.getActionFromEvent(e)){var i=e.composedPath?e.composedPath()[0]:e.target,o=!this.suppressDefaultPressSelector||!this.adapter.eventTargetMatches(i,this.suppressDefaultPressSelector);t&&o&&this.adapter.clickDefaultButton()}},o.prototype.handleDocumentKeydown=function(e){("Escape"===e.key||27===e.keyCode)&&""!==this.escapeKeyAction&&this.close(this.escapeKeyAction)},o.prototype.handleScrollEvent=function(){var e=this;this.animFrame.request(Ll.POLL_SCROLL_POS,(function(){e.toggleScrollDividerHeader(),e.toggleScrollDividerFooter()}))},o.prototype.layoutInternal=function(){this.autoStackButtons&&this.detectStackedButtons(),this.toggleScrollableClasses()},o.prototype.handleAnimationTimerEnd=function(){this.animationTimer=0,this.adapter.removeClass(Ml.OPENING),this.adapter.removeClass(Ml.CLOSING)},o.prototype.runNextAnimationFrame=function(e){var t=this;cancelAnimationFrame(this.animationFrame),this.animationFrame=requestAnimationFrame((function(){t.animationFrame=0,clearTimeout(t.animationTimer),t.animationTimer=setTimeout(e,0)}))},o.prototype.detectStackedButtons=function(){this.adapter.removeClass(Ml.STACKED);var e=this.adapter.areButtonsStacked();e&&this.adapter.addClass(Ml.STACKED),e!==this.areButtonsStacked&&(this.adapter.reverseButtons(),this.areButtonsStacked=e)},o.prototype.toggleScrollableClasses=function(){this.adapter.removeClass(Ml.SCROLLABLE),this.adapter.isContentScrollable()&&(this.adapter.addClass(Ml.SCROLLABLE),this.isFullscreen&&(this.toggleScrollDividerHeader(),this.toggleScrollDividerFooter()))},o.prototype.toggleScrollDividerHeader=function(){this.adapter.isScrollableContentAtTop()?this.adapter.hasClass(Ml.SCROLL_DIVIDER_HEADER)&&this.adapter.removeClass(Ml.SCROLL_DIVIDER_HEADER):this.adapter.addClass(Ml.SCROLL_DIVIDER_HEADER)},o.prototype.toggleScrollDividerFooter=function(){this.adapter.isScrollableContentAtBottom()?this.adapter.hasClass(Ml.SCROLL_DIVIDER_FOOTER)&&this.adapter.removeClass(Ml.SCROLL_DIVIDER_FOOTER):this.adapter.addClass(Ml.SCROLL_DIVIDER_FOOTER)},o}(xo);
/**
 * @license
 * Copyright 2019 Google Inc.
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 * THE SOFTWARE.
 */function Bl(e){return void 0===e&&(e=window),!!function(e){void 0===e&&(e=window);var t=!1;try{var i={get passive(){return t=!0,!1}},o=function(){};e.document.addEventListener("test",o,i),e.document.removeEventListener("test",o,i)}catch(e){t=!1}return t}
/**
 * @license
 * Copyright 2018 Google LLC
 * SPDX-License-Identifier: Apache-2.0
 */(e)&&{passive:!0}}const Fl=e=>(t,i)=>{if(t.constructor._observers){if(!t.constructor.hasOwnProperty("_observers")){const e=t.constructor._observers;t.constructor._observers=new Map,e.forEach(((e,i)=>t.constructor._observers.set(i,e)))}}else{t.constructor._observers=new Map;const e=t.updated;t.updated=function(t){e.call(this,t),t.forEach(((e,t)=>{const i=this.constructor._observers.get(t);void 0!==i&&i.call(this,this[t],e)}))}}t.constructor._observers.set(i,e)}
/**
 * @license
 * Copyright 2019 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */,jl=window,Vl=jl.ShadowRoot&&(void 0===jl.ShadyCSS||jl.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,ql=Symbol(),Wl=new WeakMap;let Gl=class{constructor(e,t,i){if(this._$cssResult$=!0,i!==ql)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o;const t=this.t;if(Vl&&void 0===e){const i=void 0!==t&&1===t.length;i&&(e=Wl.get(t)),void 0===e&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),i&&Wl.set(t,e))}return e}toString(){return this.cssText}};const Kl=Vl?e=>e:e=>e instanceof CSSStyleSheet?(e=>{let t="";for(const i of e.cssRules)t+=i.cssText;return(e=>new Gl("string"==typeof e?e:e+"",void 0,ql))(t)})(e):e
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */;var Xl;const Yl=window,Jl=Yl.trustedTypes,Zl=Jl?Jl.emptyScript:"",Ql=Yl.reactiveElementPolyfillSupport,ed={toAttribute(e,t){switch(t){case Boolean:e=e?Zl:null;break;case Object:case Array:e=null==e?e:JSON.stringify(e)}return e},fromAttribute(e,t){let i=e;switch(t){case Boolean:i=null!==e;break;case Number:i=null===e?null:Number(e);break;case Object:case Array:try{i=JSON.parse(e)}catch(e){i=null}}return i}},td=(e,t)=>t!==e&&(t==t||e==e),id={attribute:!0,type:String,converter:ed,reflect:!1,hasChanged:td},od="finalized";let sd=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this._$Eu()}static addInitializer(e){var t;this.finalize(),(null!==(t=this.h)&&void 0!==t?t:this.h=[]).push(e)}static get observedAttributes(){this.finalize();const e=[];return this.elementProperties.forEach(((t,i)=>{const o=this._$Ep(i,t);void 0!==o&&(this._$Ev.set(o,i),e.push(o))})),e}static createProperty(e,t=id){if(t.state&&(t.attribute=!1),this.finalize(),this.elementProperties.set(e,t),!t.noAccessor&&!this.prototype.hasOwnProperty(e)){const i="symbol"==typeof e?Symbol():"__"+e,o=this.getPropertyDescriptor(e,i,t);void 0!==o&&Object.defineProperty(this.prototype,e,o)}}static getPropertyDescriptor(e,t,i){return{get(){return this[t]},set(o){const s=this[e];this[t]=o,this.requestUpdate(e,s,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)||id}static finalize(){if(this.hasOwnProperty(od))return!1;this[od]=!0;const e=Object.getPrototypeOf(this);if(e.finalize(),void 0!==e.h&&(this.h=[...e.h]),this.elementProperties=new Map(e.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const e=this.properties,t=[...Object.getOwnPropertyNames(e),...Object.getOwnPropertySymbols(e)];for(const i of t)this.createProperty(i,e[i])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(e){const t=[];if(Array.isArray(e)){const i=new Set(e.flat(1/0).reverse());for(const e of i)t.unshift(Kl(e))}else void 0!==e&&t.push(Kl(e));return t}static _$Ep(e,t){const i=t.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof e?e.toLowerCase():void 0}_$Eu(){var e;this._$E_=new Promise((e=>this.enableUpdating=e)),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(e=this.constructor.h)||void 0===e||e.forEach((e=>e(this)))}addController(e){var t,i;(null!==(t=this._$ES)&&void 0!==t?t:this._$ES=[]).push(e),void 0!==this.renderRoot&&this.isConnected&&(null===(i=e.hostConnected)||void 0===i||i.call(e))}removeController(e){var t;null===(t=this._$ES)||void 0===t||t.splice(this._$ES.indexOf(e)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach(((e,t)=>{this.hasOwnProperty(t)&&(this._$Ei.set(t,this[t]),delete this[t])}))}createRenderRoot(){var e;const t=null!==(e=this.shadowRoot)&&void 0!==e?e:this.attachShadow(this.constructor.shadowRootOptions);return((e,t)=>{Vl?e.adoptedStyleSheets=t.map((e=>e instanceof CSSStyleSheet?e:e.styleSheet)):t.forEach((t=>{const i=document.createElement("style"),o=jl.litNonce;void 0!==o&&i.setAttribute("nonce",o),i.textContent=t.cssText,e.appendChild(i)}))})(t,this.constructor.elementStyles),t}connectedCallback(){var e;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(e=this._$ES)||void 0===e||e.forEach((e=>{var t;return null===(t=e.hostConnected)||void 0===t?void 0:t.call(e)}))}enableUpdating(e){}disconnectedCallback(){var e;null===(e=this._$ES)||void 0===e||e.forEach((e=>{var t;return null===(t=e.hostDisconnected)||void 0===t?void 0:t.call(e)}))}attributeChangedCallback(e,t,i){this._$AK(e,i)}_$EO(e,t,i=id){var o;const s=this.constructor._$Ep(e,i);if(void 0!==s&&!0===i.reflect){const n=(void 0!==(null===(o=i.converter)||void 0===o?void 0:o.toAttribute)?i.converter:ed).toAttribute(t,i.type);this._$El=e,null==n?this.removeAttribute(s):this.setAttribute(s,n),this._$El=null}}_$AK(e,t){var i;const o=this.constructor,s=o._$Ev.get(e);if(void 0!==s&&this._$El!==s){const e=o.getPropertyOptions(s),n="function"==typeof e.converter?{fromAttribute:e.converter}:void 0!==(null===(i=e.converter)||void 0===i?void 0:i.fromAttribute)?e.converter:ed;this._$El=s,this[s]=n.fromAttribute(t,e.type),this._$El=null}}requestUpdate(e,t,i){let o=!0;void 0!==e&&(((i=i||this.constructor.getPropertyOptions(e)).hasChanged||td)(this[e],t)?(this._$AL.has(e)||this._$AL.set(e,t),!0===i.reflect&&this._$El!==e&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(e,i))):o=!1),!this.isUpdatePending&&o&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(e){Promise.reject(e)}const e=this.scheduleUpdate();return null!=e&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var e;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach(((e,t)=>this[t]=e)),this._$Ei=void 0);let t=!1;const i=this._$AL;try{t=this.shouldUpdate(i),t?(this.willUpdate(i),null===(e=this._$ES)||void 0===e||e.forEach((e=>{var t;return null===(t=e.hostUpdate)||void 0===t?void 0:t.call(e)})),this.update(i)):this._$Ek()}catch(e){throw t=!1,this._$Ek(),e}t&&this._$AE(i)}willUpdate(e){}_$AE(e){var t;null===(t=this._$ES)||void 0===t||t.forEach((e=>{var t;return null===(t=e.hostUpdated)||void 0===t?void 0:t.call(e)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(e){return!0}update(e){void 0!==this._$EC&&(this._$EC.forEach(((e,t)=>this._$EO(t,this[t],e))),this._$EC=void 0),this._$Ek()}updated(e){}firstUpdated(e){}};
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */
var nd;sd[od]=!0,sd.elementProperties=new Map,sd.elementStyles=[],sd.shadowRootOptions={mode:"open"},null==Ql||Ql({ReactiveElement:sd}),(null!==(Xl=Yl.reactiveElementVersions)&&void 0!==Xl?Xl:Yl.reactiveElementVersions=[]).push("1.6.3");const rd=window,ad=rd.trustedTypes,ld=ad?ad.createPolicy("lit-html",{createHTML:e=>e}):void 0,dd="$lit$",cd=`lit$${(Math.random()+"").slice(9)}$`,hd="?"+cd,pd=`<${hd}>`,ud=document,md=()=>ud.createComment(""),gd=e=>null===e||"object"!=typeof e&&"function"!=typeof e,fd=Array.isArray,_d="[ \t\n\f\r]",vd=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,bd=/-->/g,yd=/>/g,xd=RegExp(`>|${_d}(?:([^\\s"'>=/]+)(${_d}*=${_d}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),wd=/'/g,$d=/"/g,Ad=/^(?:script|style|textarea|title)$/i,kd=(e=>(t,...i)=>({_$litType$:e,strings:t,values:i}))(1),Ed=Symbol.for("lit-noChange"),Sd=Symbol.for("lit-nothing"),Cd=new WeakMap,Td=ud.createTreeWalker(ud,129,null,!1);function Pd(e,t){if(!Array.isArray(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==ld?ld.createHTML(t):t}let Id=class e{constructor({strings:t,_$litType$:i},o){let s;this.parts=[];let n=0,r=0;const a=t.length-1,l=this.parts,[d,c]=((e,t)=>{const i=e.length-1,o=[];let s,n=2===t?"<svg>":"",r=vd;for(let t=0;t<i;t++){const i=e[t];let a,l,d=-1,c=0;for(;c<i.length&&(r.lastIndex=c,l=r.exec(i),null!==l);)c=r.lastIndex,r===vd?"!--"===l[1]?r=bd:void 0!==l[1]?r=yd:void 0!==l[2]?(Ad.test(l[2])&&(s=RegExp("</"+l[2],"g")),r=xd):void 0!==l[3]&&(r=xd):r===xd?">"===l[0]?(r=null!=s?s:vd,d=-1):void 0===l[1]?d=-2:(d=r.lastIndex-l[2].length,a=l[1],r=void 0===l[3]?xd:'"'===l[3]?$d:wd):r===$d||r===wd?r=xd:r===bd||r===yd?r=vd:(r=xd,s=void 0);const h=r===xd&&e[t+1].startsWith("/>")?" ":"";n+=r===vd?i+pd:d>=0?(o.push(a),i.slice(0,d)+dd+i.slice(d)+cd+h):i+cd+(-2===d?(o.push(void 0),t):h)}return[Pd(e,n+(e[i]||"<?>")+(2===t?"</svg>":"")),o]})(t,i);if(this.el=e.createElement(d,o),Td.currentNode=this.el.content,2===i){const e=this.el.content,t=e.firstChild;t.remove(),e.append(...t.childNodes)}for(;null!==(s=Td.nextNode())&&l.length<a;){if(1===s.nodeType){if(s.hasAttributes()){const e=[];for(const t of s.getAttributeNames())if(t.endsWith(dd)||t.startsWith(cd)){const i=c[r++];if(e.push(t),void 0!==i){const e=s.getAttribute(i.toLowerCase()+dd).split(cd),t=/([.?@])?(.*)/.exec(i);l.push({type:1,index:n,name:t[2],strings:e,ctor:"."===t[1]?Md:"?"===t[1]?Hd:"@"===t[1]?Dd:Ld})}else l.push({type:6,index:n})}for(const t of e)s.removeAttribute(t)}if(Ad.test(s.tagName)){const e=s.textContent.split(cd),t=e.length-1;if(t>0){s.textContent=ad?ad.emptyScript:"";for(let i=0;i<t;i++)s.append(e[i],md()),Td.nextNode(),l.push({type:2,index:++n});s.append(e[t],md())}}}else if(8===s.nodeType)if(s.data===hd)l.push({type:2,index:n});else{let e=-1;for(;-1!==(e=s.data.indexOf(cd,e+1));)l.push({type:7,index:n}),e+=cd.length-1}n++}}static createElement(e,t){const i=ud.createElement("template");return i.innerHTML=e,i}};function Od(e,t,i=e,o){var s,n,r,a;if(t===Ed)return t;let l=void 0!==o?null===(s=i._$Co)||void 0===s?void 0:s[o]:i._$Cl;const d=gd(t)?void 0:t._$litDirective$;return(null==l?void 0:l.constructor)!==d&&(null===(n=null==l?void 0:l._$AO)||void 0===n||n.call(l,!1),void 0===d?l=void 0:(l=new d(e),l._$AT(e,i,o)),void 0!==o?(null!==(r=(a=i)._$Co)&&void 0!==r?r:a._$Co=[])[o]=l:i._$Cl=l),void 0!==l&&(t=Od(e,l._$AS(e,t.values),l,o)),t}let Rd=class{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){var t;const{el:{content:i},parts:o}=this._$AD,s=(null!==(t=null==e?void 0:e.creationScope)&&void 0!==t?t:ud).importNode(i,!0);Td.currentNode=s;let n=Td.nextNode(),r=0,a=0,l=o[0];for(;void 0!==l;){if(r===l.index){let t;2===l.type?t=new Nd(n,n.nextSibling,this,e):1===l.type?t=new l.ctor(n,l.name,l.strings,this,e):6===l.type&&(t=new zd(n,this,e)),this._$AV.push(t),l=o[++a]}r!==(null==l?void 0:l.index)&&(n=Td.nextNode(),r++)}return Td.currentNode=ud,s}v(e){let t=0;for(const i of this._$AV)void 0!==i&&(void 0!==i.strings?(i._$AI(e,i,t),t+=i.strings.length-2):i._$AI(e[t])),t++}},Nd=class e{constructor(e,t,i,o){var s;this.type=2,this._$AH=Sd,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=i,this.options=o,this._$Cp=null===(s=null==o?void 0:o.isConnected)||void 0===s||s}get _$AU(){var e,t;return null!==(t=null===(e=this._$AM)||void 0===e?void 0:e._$AU)&&void 0!==t?t:this._$Cp}get parentNode(){let e=this._$AA.parentNode;const t=this._$AM;return void 0!==t&&11===(null==e?void 0:e.nodeType)&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=Od(this,e,t),gd(e)?e===Sd||null==e||""===e?(this._$AH!==Sd&&this._$AR(),this._$AH=Sd):e!==this._$AH&&e!==Ed&&this._(e):void 0!==e._$litType$?this.g(e):void 0!==e.nodeType?this.$(e):(e=>fd(e)||"function"==typeof(null==e?void 0:e[Symbol.iterator]))(e)?this.T(e):this._(e)}k(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}$(e){this._$AH!==e&&(this._$AR(),this._$AH=this.k(e))}_(e){this._$AH!==Sd&&gd(this._$AH)?this._$AA.nextSibling.data=e:this.$(ud.createTextNode(e)),this._$AH=e}g(e){var t;const{values:i,_$litType$:o}=e,s="number"==typeof o?this._$AC(e):(void 0===o.el&&(o.el=Id.createElement(Pd(o.h,o.h[0]),this.options)),o);if((null===(t=this._$AH)||void 0===t?void 0:t._$AD)===s)this._$AH.v(i);else{const e=new Rd(s,this),t=e.u(this.options);e.v(i),this.$(t),this._$AH=e}}_$AC(e){let t=Cd.get(e.strings);return void 0===t&&Cd.set(e.strings,t=new Id(e)),t}T(t){fd(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let o,s=0;for(const n of t)s===i.length?i.push(o=new e(this.k(md()),this.k(md()),this,this.options)):o=i[s],o._$AI(n),s++;s<i.length&&(this._$AR(o&&o._$AB.nextSibling,s),i.length=s)}_$AR(e=this._$AA.nextSibling,t){var i;for(null===(i=this._$AP)||void 0===i||i.call(this,!1,!0,t);e&&e!==this._$AB;){const t=e.nextSibling;e.remove(),e=t}}setConnected(e){var t;void 0===this._$AM&&(this._$Cp=e,null===(t=this._$AP)||void 0===t||t.call(this,e))}},Ld=class{constructor(e,t,i,o,s){this.type=1,this._$AH=Sd,this._$AN=void 0,this.element=e,this.name=t,this._$AM=o,this.options=s,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=Sd}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(e,t=this,i,o){const s=this.strings;let n=!1;if(void 0===s)e=Od(this,e,t,0),n=!gd(e)||e!==this._$AH&&e!==Ed,n&&(this._$AH=e);else{const o=e;let r,a;for(e=s[0],r=0;r<s.length-1;r++)a=Od(this,o[i+r],t,r),a===Ed&&(a=this._$AH[r]),n||(n=!gd(a)||a!==this._$AH[r]),a===Sd?e=Sd:e!==Sd&&(e+=(null!=a?a:"")+s[r+1]),this._$AH[r]=a}n&&!o&&this.j(e)}j(e){e===Sd?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=e?e:"")}},Md=class extends Ld{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===Sd?void 0:e}};const Ud=ad?ad.emptyScript:"";let Hd=class extends Ld{constructor(){super(...arguments),this.type=4}j(e){e&&e!==Sd?this.element.setAttribute(this.name,Ud):this.element.removeAttribute(this.name)}},Dd=class extends Ld{constructor(e,t,i,o,s){super(e,t,i,o,s),this.type=5}_$AI(e,t=this){var i;if((e=null!==(i=Od(this,e,t,0))&&void 0!==i?i:Sd)===Ed)return;const o=this._$AH,s=e===Sd&&o!==Sd||e.capture!==o.capture||e.once!==o.once||e.passive!==o.passive,n=e!==Sd&&(o===Sd||s);s&&this.element.removeEventListener(this.name,this,o),n&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var t,i;"function"==typeof this._$AH?this._$AH.call(null!==(i=null===(t=this.options)||void 0===t?void 0:t.host)&&void 0!==i?i:this.element,e):this._$AH.handleEvent(e)}},zd=class{constructor(e,t,i){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(e){Od(this,e)}};const Bd=rd.litHtmlPolyfillSupport;null==Bd||Bd(Id,Nd),(null!==(nd=rd.litHtmlVersions)&&void 0!==nd?nd:rd.litHtmlVersions=[]).push("2.8.0");
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */
var Fd,jd;let Vd=class extends sd{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e,t;const i=super.createRenderRoot();return null!==(e=(t=this.renderOptions).renderBefore)&&void 0!==e||(t.renderBefore=i.firstChild),i}update(e){const t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=((e,t,i)=>{var o,s;const n=null!==(o=null==i?void 0:i.renderBefore)&&void 0!==o?o:t;let r=n._$litPart$;if(void 0===r){const e=null!==(s=null==i?void 0:i.renderBefore)&&void 0!==s?s:null;n._$litPart$=r=new Nd(t.insertBefore(md(),e),e,void 0,null!=i?i:{})}return r._$AI(e),r})(t,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),null===(e=this._$Do)||void 0===e||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),null===(e=this._$Do)||void 0===e||e.setConnected(!1)}render(){return Ed}};Vd.finalized=!0,Vd._$litElement$=!0,null===(Fd=globalThis.litElementHydrateSupport)||void 0===Fd||Fd.call(globalThis,{LitElement:Vd});const qd=globalThis.litElementPolyfillSupport;null==qd||qd({LitElement:Vd}),(null!==(jd=globalThis.litElementVersions)&&void 0!==jd?jd:globalThis.litElementVersions=[]).push("3.3.3");
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */
const Wd=1;let Gd=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,i){this._$Ct=e,this._$AM=t,this._$Ci=i}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}};
/**
 * @license
 * Copyright 2018 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */const Kd=(e=>(...t)=>({_$litDirective$:e,values:t}))(class extends Gd{constructor(e){var t;if(super(e),e.type!==Wd||"class"!==e.name||(null===(t=e.strings)||void 0===t?void 0:t.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(e){return" "+Object.keys(e).filter((t=>e[t])).join(" ")+" "}update(e,[t]){var i,o;if(void 0===this.it){this.it=new Set,void 0!==e.strings&&(this.nt=new Set(e.strings.join(" ").split(/\s/).filter((e=>""!==e))));for(const e in t)t[e]&&!(null===(i=this.nt)||void 0===i?void 0:i.has(e))&&this.it.add(e);return this.render(t)}const s=e.element.classList;this.it.forEach((e=>{e in t||(s.remove(e),this.it.delete(e))}));for(const e in t){const i=!!t[e];i===this.it.has(e)||(null===(o=this.nt)||void 0===o?void 0:o.has(e))||(i?(s.add(e),this.it.add(e)):(s.remove(e),this.it.delete(e)))}return Ed}}),Xd=document.$blockingElements;
/**
 * @license
 * Copyright 2019 Google LLC
 * SPDX-License-Identifier: Apache-2.0
 */class Yd extends yo{constructor(){super(...arguments),this.hideActions=!1,this.stacked=!1,this.heading="",this.scrimClickAction="close",this.escapeKeyAction="close",this.open=!1,this.defaultAction="close",this.actionAttribute="dialogAction",this.initialFocusAttribute="dialogInitialFocus",this.initialSupressDefaultPressSelector="",this.mdcFoundationClass=zl,this.boundHandleClick=null,this.boundHandleKeydown=null,this.boundHandleDocumentKeydown=null}set suppressDefaultPressSelector(e){this.mdcFoundation?this.mdcFoundation.setSuppressDefaultPressSelector(e):this.initialSupressDefaultPressSelector=e}get suppressDefaultPressSelector(){return this.mdcFoundation?this.mdcFoundation.getSuppressDefaultPressSelector():this.initialSupressDefaultPressSelector}get primaryButton(){let e=this.primarySlot.assignedNodes();e=e.filter((e=>e instanceof HTMLElement));const t=e[0];return t||null}emitNotification(e,t){const i=new CustomEvent(e,{detail:t?{action:t}:{}});this.dispatchEvent(i)}getInitialFocusEl(){const e=`[${this.initialFocusAttribute}]`,t=this.querySelector(e);if(t)return t;const i=this.primarySlot.assignedNodes({flatten:!0}),o=this.searchNodeTreesForAttribute(i,this.initialFocusAttribute);if(o)return o;const s=this.secondarySlot.assignedNodes({flatten:!0}),n=this.searchNodeTreesForAttribute(s,this.initialFocusAttribute);if(n)return n;const r=this.contentSlot.assignedNodes({flatten:!0});return this.searchNodeTreesForAttribute(r,this.initialFocusAttribute)}searchNodeTreesForAttribute(e,t){for(const i of e)if(i instanceof HTMLElement){if(i.hasAttribute(t))return i;{const e=i.querySelector(`[${t}]`);if(e)return e}}return null}createAdapter(){return Object.assign(Object.assign({},uo(this.mdcRoot)),{addBodyClass:()=>document.body.style.overflow="hidden",removeBodyClass:()=>document.body.style.overflow="",areButtonsStacked:()=>this.stacked,clickDefaultButton:()=>{const e=this.primaryButton;e&&e.click()},eventTargetMatches:(e,t)=>!!e&&li(e,t),getActionFromEvent:e=>{if(!e.target)return"";const t=
/**
 * @license
 * Copyright 2018 Google Inc.
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 * THE SOFTWARE.
 */
function(e,t){if(e.closest)return e.closest(t);for(var i=e;i;){if(li(i,t))return i;i=i.parentElement}return null}(e.target,`[${this.actionAttribute}]`);return t&&t.getAttribute(this.actionAttribute)},getInitialFocusEl:()=>this.getInitialFocusEl(),isContentScrollable:()=>{const e=this.contentElement;return!!e&&e.scrollHeight>e.offsetHeight},notifyClosed:e=>this.emitNotification("closed",e),notifyClosing:e=>{this.closingDueToDisconnect||(this.open=!1),this.emitNotification("closing",e)},notifyOpened:()=>this.emitNotification("opened"),notifyOpening:()=>{this.open=!0,this.emitNotification("opening")},reverseButtons:()=>{},releaseFocus:()=>{Xd.remove(this)},trapFocus:e=>{this.isConnected&&(Xd.push(this),e&&e.focus())},registerContentEventHandler:(e,t)=>{this.contentElement.addEventListener(e,t)},deregisterContentEventHandler:(e,t)=>{this.contentElement.removeEventListener(e,t)},isScrollableContentAtTop:()=>{const e=this.contentElement;return!!e&&0===e.scrollTop},isScrollableContentAtBottom:()=>{const e=this.contentElement;return!!e&&Math.ceil(e.scrollHeight-e.scrollTop)===e.clientHeight},registerWindowEventHandler:(e,t)=>{window.addEventListener(e,t,Bl())},deregisterWindowEventHandler:(e,t)=>{window.removeEventListener(e,t,Bl())}})}render(){const e={[Ml.STACKED]:this.stacked};let t=kd``;this.heading&&(t=this.renderHeading());const i={"mdc-dialog__actions":!this.hideActions};return kd`
    <style>
        .mdc-dialog .mdc-dialog__content {
          padding: 0;
        }
        .mdc-dialog .mdc-dialog__container,
        .mdc-dialog .mdc-dialog__surface {
          height: var(--mdc-dialog-height, auto) !important;
          width: var(--mdc-dialog-width, auto) !important;
        }
    </style>
    <div class="mdc-dialog ${Kd(e)}"
        role="alertdialog"
        aria-modal="true"
        aria-labelledby="title"
        aria-describedby="content">
      <div class="mdc-dialog__container" style="height: var(--mdc-dialog-height, auto) !important;width: var(--mdc-dialog-width, auto) !important;">
        <div class="mdc-dialog__surface" style="height: var(--mdc-dialog-height, auto) !important;width: var(--mdc-dialog-width, auto) !important;">
          ${t}
          <div id="content" class="mdc-dialog__content" style="padding:0;">
            <slot id="contentSlot"></slot>
          </div>
          <footer
              id="actions"
              class="${Kd(i)}">
            <span>
              <slot name="secondaryAction"></slot>
            </span>
            <span>
             <slot name="primaryAction"></slot>
            </span>
          </footer>
        </div>
      </div>
      <div class="mdc-dialog__scrim"></div>
    </div>`}renderHeading(){return kd`
      <h2 id="title" class="mdc-dialog__title">${this.heading}</h2>`}firstUpdated(){super.firstUpdated(),this.mdcFoundation.setAutoStackButtons(!0),this.initialSupressDefaultPressSelector?this.suppressDefaultPressSelector=this.initialSupressDefaultPressSelector:this.suppressDefaultPressSelector=[this.suppressDefaultPressSelector,"mwc-textarea","mwc-menu mwc-list-item","mwc-select mwc-list-item"].join(", "),this.boundHandleClick=this.mdcFoundation.handleClick.bind(this.mdcFoundation),this.boundHandleKeydown=this.mdcFoundation.handleKeydown.bind(this.mdcFoundation),this.boundHandleDocumentKeydown=this.mdcFoundation.handleDocumentKeydown.bind(this.mdcFoundation)}connectedCallback(){super.connectedCallback(),this.open&&this.mdcFoundation&&!this.mdcFoundation.isOpen()&&(this.setEventListeners(),this.mdcFoundation.open())}disconnectedCallback(){super.disconnectedCallback(),this.open&&this.mdcFoundation&&(this.removeEventListeners(),this.closingDueToDisconnect=!0,this.mdcFoundation.close(this.currentAction||this.defaultAction),this.closingDueToDisconnect=!1,this.currentAction=void 0,Xd.remove(this))}forceLayout(){this.mdcFoundation.layout()}focus(){const e=this.getInitialFocusEl();e&&e.focus()}blur(){if(!this.shadowRoot)return;const e=this.shadowRoot.activeElement;if(e)e instanceof HTMLElement&&e.blur();else{const e=this.getRootNode(),t=e instanceof Document?e.activeElement:null;t instanceof HTMLElement&&t.blur()}}setEventListeners(){this.boundHandleClick&&this.mdcRoot.addEventListener("click",this.boundHandleClick),this.boundHandleKeydown&&this.mdcRoot.addEventListener("keydown",this.boundHandleKeydown,Bl()),this.boundHandleDocumentKeydown&&document.addEventListener("keydown",this.boundHandleDocumentKeydown,Bl())}removeEventListeners(){this.boundHandleClick&&this.mdcRoot.removeEventListener("click",this.boundHandleClick),this.boundHandleKeydown&&this.mdcRoot.removeEventListener("keydown",this.boundHandleKeydown),this.boundHandleDocumentKeydown&&document.removeEventListener("keydown",this.boundHandleDocumentKeydown)}close(){this.open=!1}show(){this.open=!0}}o([Il(".mdc-dialog")],Yd.prototype,"mdcRoot",void 0),o([Il('slot[name="primaryAction"]')],Yd.prototype,"primarySlot",void 0),o([Il('slot[name="secondaryAction"]')],Yd.prototype,"secondarySlot",void 0),o([Il("#contentSlot")],Yd.prototype,"contentSlot",void 0),o([Il(".mdc-dialog__content")],Yd.prototype,"contentElement",void 0),o([Il(".mdc-container")],Yd.prototype,"conatinerElement",void 0),o([Pl({type:Boolean})],Yd.prototype,"hideActions",void 0),o([Pl({type:Boolean}),Fl((function(){this.forceLayout()}))],Yd.prototype,"stacked",void 0),o([Pl({type:String})],Yd.prototype,"heading",void 0),o([Pl({type:String}),Fl((function(e){this.mdcFoundation.setScrimClickAction(e)}))],Yd.prototype,"scrimClickAction",void 0),o([Pl({type:String}),Fl((function(e){this.mdcFoundation.setEscapeKeyAction(e)}))],Yd.prototype,"escapeKeyAction",void 0),o([Pl({type:Boolean,reflect:!0}),Fl((function(e){this.mdcFoundation&&this.isConnected&&(e?(this.setEventListeners(),this.mdcFoundation.open()):(this.removeEventListeners(),this.mdcFoundation.close(this.currentAction||this.defaultAction),this.currentAction=void 0))}))],Yd.prototype,"open",void 0),o([Pl()],Yd.prototype,"defaultAction",void 0),o([Pl()],Yd.prototype,"actionAttribute",void 0),o([Pl()],Yd.prototype,"initialFocusAttribute",void 0);
/**
 * @license
 * Copyright 2021 Google LLC
 * SPDX-LIcense-Identifier: Apache-2.0
 */
const Jd=((e,...t)=>{const i=1===e.length?e[0]:t.reduce(((t,i,o)=>t+(e=>{if(!0===e._$cssResult$)return e.cssText;if("number"==typeof e)return e;throw Error("Value passed to 'css' function must be a 'css' function result: "+e+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+e[o+1]),e[0]);return new Gl(i,e,ql)})`.mdc-dialog .mdc-dialog__surface{background-color:#fff;background-color:var(--mdc-theme-surface, #fff)}.mdc-dialog .mdc-dialog__scrim{background-color:rgba(0,0,0,.32)}.mdc-dialog .mdc-dialog__surface-scrim{background-color:rgba(0,0,0,.32)}.mdc-dialog .mdc-dialog__title{color:rgba(0,0,0,.87)}.mdc-dialog .mdc-dialog__content{color:rgba(0,0,0,.6)}.mdc-dialog .mdc-dialog__close{color:#000;color:var(--mdc-theme-on-surface, #000)}.mdc-dialog .mdc-dialog__close .mdc-icon-button__ripple::before,.mdc-dialog .mdc-dialog__close .mdc-icon-button__ripple::after{background-color:#000;background-color:var(--mdc-ripple-color, var(--mdc-theme-on-surface, #000))}.mdc-dialog .mdc-dialog__close:hover .mdc-icon-button__ripple::before,.mdc-dialog .mdc-dialog__close.mdc-ripple-surface--hover .mdc-icon-button__ripple::before{opacity:0.04;opacity:var(--mdc-ripple-hover-opacity, 0.04)}.mdc-dialog .mdc-dialog__close.mdc-ripple-upgraded--background-focused .mdc-icon-button__ripple::before,.mdc-dialog .mdc-dialog__close:not(.mdc-ripple-upgraded):focus .mdc-icon-button__ripple::before{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-focus-opacity, 0.12)}.mdc-dialog .mdc-dialog__close:not(.mdc-ripple-upgraded) .mdc-icon-button__ripple::after{transition:opacity 150ms linear}.mdc-dialog .mdc-dialog__close:not(.mdc-ripple-upgraded):active .mdc-icon-button__ripple::after{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-dialog .mdc-dialog__close.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-dialog.mdc-dialog--scrollable .mdc-dialog__title,.mdc-dialog.mdc-dialog--scrollable .mdc-dialog__actions,.mdc-dialog.mdc-dialog--scrollable.mdc-dialog-scroll-divider-footer .mdc-dialog__actions{border-color:rgba(0,0,0,.12)}.mdc-dialog.mdc-dialog--scrollable .mdc-dialog__title{border-bottom:1px solid rgba(0,0,0,.12);margin-bottom:0}.mdc-dialog.mdc-dialog-scroll-divider-header.mdc-dialog--fullscreen .mdc-dialog__header{box-shadow:0px 3px 1px -2px rgba(0, 0, 0, 0.2),0px 2px 2px 0px rgba(0, 0, 0, 0.14),0px 1px 5px 0px rgba(0,0,0,.12)}.mdc-dialog .mdc-dialog__surface{border-radius:4px;border-radius:var(--mdc-shape-medium, 4px)}.mdc-dialog__surface{box-shadow:0px 11px 15px -7px rgba(0, 0, 0, 0.2),0px 24px 38px 3px rgba(0, 0, 0, 0.14),0px 9px 46px 8px rgba(0,0,0,.12)}.mdc-dialog__title{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-headline6-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:1.25rem;font-size:var(--mdc-typography-headline6-font-size, 1.25rem);line-height:2rem;line-height:var(--mdc-typography-headline6-line-height, 2rem);font-weight:500;font-weight:var(--mdc-typography-headline6-font-weight, 500);letter-spacing:0.0125em;letter-spacing:var(--mdc-typography-headline6-letter-spacing, 0.0125em);text-decoration:inherit;text-decoration:var(--mdc-typography-headline6-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-headline6-text-transform, inherit)}.mdc-dialog__content{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-body1-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:1rem;font-size:var(--mdc-typography-body1-font-size, 1rem);line-height:1.5rem;line-height:var(--mdc-typography-body1-line-height, 1.5rem);font-weight:400;font-weight:var(--mdc-typography-body1-font-weight, 400);letter-spacing:0.03125em;letter-spacing:var(--mdc-typography-body1-letter-spacing, 0.03125em);text-decoration:inherit;text-decoration:var(--mdc-typography-body1-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-body1-text-transform, inherit)}.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:0;opacity:var(--mdc-elevation-overlay-opacity, 0);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1);background-color:#fff;background-color:var(--mdc-elevation-overlay-color, #fff)}.mdc-dialog,.mdc-dialog__scrim{position:fixed;top:0;left:0;align-items:center;justify-content:center;box-sizing:border-box;width:100%;height:100%}.mdc-dialog{display:none;z-index:7;z-index:var(--mdc-dialog-z-index, 7)}.mdc-dialog .mdc-dialog__content{padding:20px 24px 20px 24px}.mdc-dialog .mdc-dialog__surface{min-width:280px}@media(max-width: 592px){.mdc-dialog .mdc-dialog__surface{max-width:calc(100vw - 32px)}}@media(min-width: 592px){.mdc-dialog .mdc-dialog__surface{max-width:560px}}.mdc-dialog .mdc-dialog__surface{max-height:calc(100% - 32px)}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-width:none}@media(max-width: 960px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-height:560px;width:560px}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{right:-12px}}@media(max-width: 720px)and (max-width: 672px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{width:calc(100vw - 112px)}}@media(max-width: 720px)and (min-width: 672px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{width:560px}}@media(max-width: 720px)and (max-height: 720px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-height:calc(100vh - 160px)}}@media(max-width: 720px)and (min-height: 720px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-height:560px}}@media(max-width: 720px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{right:-12px}}@media(max-width: 720px)and (max-height: 400px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{height:100%;max-height:100vh;max-width:100vw;width:100vw;border-radius:0}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{order:-1;left:-12px}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__header{padding:0 16px 9px;justify-content:flex-start}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__title{margin-left:calc(16px - 2 * 12px)}}@media(max-width: 600px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{height:100%;max-height:100vh;max-width:100vw;width:100vw;border-radius:0}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{order:-1;left:-12px}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__header{padding:0 16px 9px;justify-content:flex-start}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__title{margin-left:calc(16px - 2 * 12px)}}@media(min-width: 960px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{width:calc(100vw - 400px)}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{right:-12px}}.mdc-dialog.mdc-dialog__scrim--hidden .mdc-dialog__scrim{opacity:0}.mdc-dialog__scrim{opacity:0;z-index:-1}.mdc-dialog__container{display:flex;flex-direction:row;align-items:center;justify-content:space-around;box-sizing:border-box;height:100%;transform:scale(0.8);opacity:0;pointer-events:none}.mdc-dialog__surface{position:relative;display:flex;flex-direction:column;flex-grow:0;flex-shrink:0;box-sizing:border-box;max-width:100%;max-height:100%;pointer-events:auto;overflow-y:auto}.mdc-dialog__surface .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}[dir=rtl] .mdc-dialog__surface,.mdc-dialog__surface[dir=rtl]{text-align:right}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-dialog__surface{outline:2px solid windowText}}.mdc-dialog__surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:2px solid transparent;border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-dialog__surface::before{border-color:CanvasText}}@media screen and (-ms-high-contrast: active),screen and (-ms-high-contrast: none){.mdc-dialog__surface::before{content:none}}.mdc-dialog__title{display:block;margin-top:0;position:relative;flex-shrink:0;box-sizing:border-box;margin:0 0 1px;padding:0 24px 9px}.mdc-dialog__title::before{display:inline-block;width:0;height:40px;content:"";vertical-align:0}[dir=rtl] .mdc-dialog__title,.mdc-dialog__title[dir=rtl]{text-align:right}.mdc-dialog--scrollable .mdc-dialog__title{margin-bottom:1px;padding-bottom:15px}.mdc-dialog--fullscreen .mdc-dialog__header{align-items:baseline;border-bottom:1px solid transparent;display:inline-flex;justify-content:space-between;padding:0 24px 9px;z-index:1}@media screen and (forced-colors: active){.mdc-dialog--fullscreen .mdc-dialog__header{border-bottom-color:CanvasText}}.mdc-dialog--fullscreen .mdc-dialog__header .mdc-dialog__close{right:-12px}.mdc-dialog--fullscreen .mdc-dialog__title{margin-bottom:0;padding:0;border-bottom:0}.mdc-dialog--fullscreen.mdc-dialog--scrollable .mdc-dialog__title{border-bottom:0;margin-bottom:0}.mdc-dialog--fullscreen .mdc-dialog__close{top:5px}.mdc-dialog--fullscreen.mdc-dialog--scrollable .mdc-dialog__actions{border-top:1px solid transparent}@media screen and (forced-colors: active){.mdc-dialog--fullscreen.mdc-dialog--scrollable .mdc-dialog__actions{border-top-color:CanvasText}}.mdc-dialog__content{flex-grow:1;box-sizing:border-box;margin:0;overflow:auto}.mdc-dialog__content>:first-child{margin-top:0}.mdc-dialog__content>:last-child{margin-bottom:0}.mdc-dialog__title+.mdc-dialog__content,.mdc-dialog__header+.mdc-dialog__content{padding-top:0}.mdc-dialog--scrollable .mdc-dialog__title+.mdc-dialog__content{padding-top:8px;padding-bottom:8px}.mdc-dialog__content .mdc-deprecated-list:first-child:last-child{padding:6px 0 0}.mdc-dialog--scrollable .mdc-dialog__content .mdc-deprecated-list:first-child:last-child{padding:0}.mdc-dialog__actions{display:flex;position:relative;flex-shrink:0;flex-wrap:wrap;align-items:center;justify-content:flex-end;box-sizing:border-box;min-height:52px;margin:0;padding:8px;border-top:1px solid transparent}@media screen and (forced-colors: active){.mdc-dialog__actions{border-top-color:CanvasText}}.mdc-dialog--stacked .mdc-dialog__actions{flex-direction:column;align-items:flex-end}.mdc-dialog__button{margin-left:8px;margin-right:0;max-width:100%;text-align:right}[dir=rtl] .mdc-dialog__button,.mdc-dialog__button[dir=rtl]{margin-left:0;margin-right:8px}.mdc-dialog__button:first-child{margin-left:0;margin-right:0}[dir=rtl] .mdc-dialog__button:first-child,.mdc-dialog__button:first-child[dir=rtl]{margin-left:0;margin-right:0}[dir=rtl] .mdc-dialog__button,.mdc-dialog__button[dir=rtl]{text-align:left}.mdc-dialog--stacked .mdc-dialog__button:not(:first-child){margin-top:12px}.mdc-dialog--open,.mdc-dialog--opening,.mdc-dialog--closing{display:flex}.mdc-dialog--opening .mdc-dialog__scrim{transition:opacity 150ms linear}.mdc-dialog--opening .mdc-dialog__container{transition:opacity 75ms linear,transform 150ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-dialog--closing .mdc-dialog__scrim,.mdc-dialog--closing .mdc-dialog__container{transition:opacity 75ms linear}.mdc-dialog--closing .mdc-dialog__container{transform:none}.mdc-dialog--open .mdc-dialog__scrim{opacity:1}.mdc-dialog--open .mdc-dialog__container{transform:none;opacity:1}.mdc-dialog--open.mdc-dialog__surface-scrim--shown .mdc-dialog__surface-scrim{opacity:1;z-index:1}.mdc-dialog--open.mdc-dialog__surface-scrim--hiding .mdc-dialog__surface-scrim{transition:opacity 75ms linear}.mdc-dialog--open.mdc-dialog__surface-scrim--showing .mdc-dialog__surface-scrim{transition:opacity 150ms linear}.mdc-dialog__surface-scrim{display:none;opacity:0;position:absolute;width:100%;height:100%}.mdc-dialog__surface-scrim--shown .mdc-dialog__surface-scrim,.mdc-dialog__surface-scrim--showing .mdc-dialog__surface-scrim,.mdc-dialog__surface-scrim--hiding .mdc-dialog__surface-scrim{display:block}.mdc-dialog-scroll-lock{overflow:hidden}.mdc-dialog--no-content-padding .mdc-dialog__content{padding:0}.mdc-dialog--sheet .mdc-dialog__close{right:12px;top:9px;position:absolute;z-index:1}#actions:not(.mdc-dialog__actions){display:none}.mdc-dialog__surface{box-shadow:var(--mdc-dialog-box-shadow, 0px 11px 15px -7px rgba(0, 0, 0, 0.2), 0px 24px 38px 3px rgba(0, 0, 0, 0.14), 0px 9px 46px 8px rgba(0, 0, 0, 0.12))}@media(min-width: 560px){.mdc-dialog .mdc-dialog__surface{max-width:560px;max-width:var(--mdc-dialog-max-width, 560px)}}.mdc-dialog .mdc-dialog__scrim{background-color:rgba(0, 0, 0, 0.32);background-color:var(--mdc-dialog-scrim-color, rgba(0, 0, 0, 0.32))}.mdc-dialog .mdc-dialog__title{color:rgba(0, 0, 0, 0.87);color:var(--mdc-dialog-heading-ink-color, rgba(0, 0, 0, 0.87))}.mdc-dialog .mdc-dialog__content{color:rgba(0, 0, 0, 0.6);color:var(--mdc-dialog-content-ink-color, rgba(0, 0, 0, 0.6))}.mdc-dialog.mdc-dialog--scrollable .mdc-dialog__title,.mdc-dialog.mdc-dialog--scrollable .mdc-dialog__actions{border-color:rgba(0, 0, 0, 0.12);border-color:var(--mdc-dialog-scroll-divider-color, rgba(0, 0, 0, 0.12))}.mdc-dialog .mdc-dialog__surface{min-width:280px;min-width:var(--mdc-dialog-min-width, 280px)}.mdc-dialog .mdc-dialog__surface{max-height:var(--mdc-dialog-max-height, calc(100% - 32px))}#actions ::slotted(*){margin-left:8px;margin-right:0;max-width:100%;text-align:right}[dir=rtl] #actions ::slotted(*),#actions ::slotted(*[dir=rtl]){margin-left:0;margin-right:8px}[dir=rtl] #actions ::slotted(*),#actions ::slotted(*[dir=rtl]){text-align:left}.mdc-dialog--stacked #actions{flex-direction:column-reverse}.mdc-dialog--stacked #actions *:not(:last-child) ::slotted(*){flex-basis:.000000001px;margin-top:12px}`
/**
 * @license
 * Copyright 2019 Google LLC
 * SPDX-License-Identifier: Apache-2.0
 */;let Zd=class extends Yd{};Zd.styles=[Jd],Zd=o([(e=>t=>"function"==typeof t?((e,t)=>(customElements.define(e,t),t))(e,t):((e,t)=>{const{kind:i,elements:o}=t;return{kind:i,elements:o,finisher(t){customElements.define(e,t)}}})(e,t))("mwc-dialog")],Zd);let Qd=class extends ke{constructor(){super(),this.fixed=!1,this.narrowLayout=!1,this.scrollable=!1,this.backdrop=!1,this.noclosebutton=!1,this.persistent=!1,this.blockscrolling=!1,this.hideActions=!0,this.open=!1,this.closeWithConfirmation=!1,this.stickyTitle=!1,this.type="normal",this.escapeKeyAction="close",this.scrimClickAction="close",this.hide=()=>{if(this.closeWithConfirmation){const e=new CustomEvent("dialog-closing-confirm",{detail:""});this.dispatchEvent(e)}else this.dialog.close(),this._resetScroll()}}static get styles(){return[Be,Se,Te,A`
        mwc-dialog {
          --mdc-dialog-min-width: var(--component-min-width, auto);
          --mdc-dialog-max-width: var(--component-max-width, 100%);
          --mdc-dialog-min-height: var(--component-min-height, auto);
          --mdc-dialog-max-height: var(
            --component-max-height,
            calc(100vh - 45px)
          );
          --mdc-dialog-width: var(--component-width, auto);
          --mdc-dialog-height: var(--component-height, auto);
          --mdc-typography-body1-font-family: var(--token-fontFamily);
          --mdc-typography-body1-font-color: var(--token-colorText, black);
          --mdc-typography-headline6-font-family: var(--token-fontFamily);
          --mdc-typography-headline6-font-color: var(--token-colorText, black);
          --mdc-shape-medium: 10px;
          --mdc-dialog-z-index: 1001;
          --mdc-dialog-heading-ink-color: var(--token-colorText, black);
          --mdc-theme-surface: var(--token-colorBgElevated);
        }

        mwc-dialog > div.card {
          padding: 0;
          margin: 0;
        }

        mwc-dialog > div.card > h3 {
          background-color: var(
            --token-colorBgElevated,
            --general-dialog-background-color,
            #ffffff
          );
        }

        mwc-dialog.warning h3 {
          color: red;
        }

        mwc-dialog span.title {
          color: var(--token-colorText);
          background-color: var(--token-colorBgElevated);
        }

        mwc-dialog div.content {
          padding: var(--component-padding, 15px);
          font-size: var(--component-font-size, 14px);
          word-break: keep-all;
          overflow-x: hidden;
          color: var(--token-colorText);
          background-color: var(--token-colorBgElevated);
        }

        mwc-dialog div.footer {
          padding: 5px 15px 15px 15px;
          color: var(--token-colorText);
          background-color: var(--token-colorBgElevated);
        }

        mwc-dialog.ticker {
          right: 20px !important;
          bottom: 20px;
          background-color: red;
        }

        mwc-dialog[narrow] div.content,
        mwc-dialog[narrow] div.footer {
          padding: 0;
          margin: 0;
        }

        mwc-dialog[scrollable]::slotted([slot='content']),
        mwc-dialog[scrollable] div.content-area {
          overflow-y: scroll; /* Has to be scroll (not auto) to get smooth scrolling on iOS */
          -webkit-overflow-scrolling: touch;
          max-height: calc(80vh - 127px);
        }

        mwc-dialog div.content h4 {
          font-size: var(--token-fontSize, 14px);
          padding: 5px 15px 5px 12px;
          margin: 0 0 10px 0;
          display: block;
          height: 20px;
          border-bottom: 1px solid #ddd !important;
        }

        mwc-icon-button {
          color: var(--token-colorTextSecondary);
        }

        .sticky {
          position: sticky;
          position: -webkit-sticky;
          position: -moz-sticky;
          position: -ms-sticky;
          position: -o-sticky;
          top: 0;
          z-index: 10;
        }
      `]}firstUpdated(){var e;this.open=this.dialog.open,this.persistent&&(this.dialog.scrimClickAction=""),this.stickyTitle&&(null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelector("h3")).classList.add("sticky"),this.dialog.addEventListener("opened",(()=>{this.open=this.dialog.open})),this.dialog.addEventListener("closed",(e=>{if("dialog"===e.target.id&&"action"in e.detail&&"persistent"===e.detail.action?this.show():this.open=this.dialog.open,"dialog"===e.target.id&&"action"in e.detail&&"close"===e.detail.action){const e=new CustomEvent("dialog-closed",{detail:""});this.dispatchEvent(e)}}))}connectedCallback(){super.connectedCallback(),document.addEventListener("locationPath:changed",this.hide)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("locationPath:changed",this.hide)}_hideDialog(){this.hide()}show(){this.dialog.show()}_resetScroll(){var e;const t=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelector(".content-area");null==t||t.scrollTo(0,0)}render(){return ae`
      <link rel="stylesheet" href="resources/custom.css" />
      <mwc-dialog
        id="dialog"
        ?fixed="${this.fixed}"
        ?narrow="${this.narrowLayout}"
        ?backdrop="${this.backdrop}"
        ?persistent="${this.persistent}"
        ?scrollable="${this.scrollable}"
        escapeKeyAction="${this.escapeKeyAction}"
        blockscrolling="${this.blockscrolling}"
        hideActions="${this.hideActions}"
        scrimClickAction="${this.scrimClickAction}"
        style="padding:0;"
        class="${this.type}"
      >
        <div elevation="1" class="card" style="margin: 0;padding:0;">
          <h3 class="horizontal justified layout" style="font-weight:bold">
            <span class="title vertical center-justified layout">
              <slot name="title"></slot>
            </span>
            <div class="flex"></div>
            <slot name="action"></slot>
            ${this.noclosebutton?ae``:ae`
                  <mwc-icon-button
                    icon="close"
                    fab
                    flat
                    inverted
                    @click="${()=>this._hideDialog()}"
                  ></mwc-icon-button>
                `}
          </h3>
          <div class="content content-area">
            <slot name="content"></slot>
          </div>
          <div class="footer horizontal flex layout">
            <slot name="footer"></slot>
          </div>
        </div>
      </mwc-dialog>
    `}};o([Zt({type:Boolean})],Qd.prototype,"fixed",void 0),o([Zt({type:Boolean})],Qd.prototype,"narrowLayout",void 0),o([Zt({type:Boolean})],Qd.prototype,"scrollable",void 0),o([Zt({type:Boolean})],Qd.prototype,"backdrop",void 0),o([Zt({type:Boolean})],Qd.prototype,"noclosebutton",void 0),o([Zt({type:Boolean})],Qd.prototype,"persistent",void 0),o([Zt({type:Boolean})],Qd.prototype,"blockscrolling",void 0),o([Zt({type:Boolean})],Qd.prototype,"hideActions",void 0),o([Zt({type:Boolean})],Qd.prototype,"open",void 0),o([Zt({type:Boolean})],Qd.prototype,"closeWithConfirmation",void 0),o([Zt({type:Boolean})],Qd.prototype,"stickyTitle",void 0),o([Zt({type:String})],Qd.prototype,"type",void 0),o([Zt({type:String})],Qd.prototype,"escapeKeyAction",void 0),o([Zt({type:String})],Qd.prototype,"scrimClickAction",void 0),o([Zt({type:String})],Qd.prototype,"sessionUuid",void 0),o([Zt({type:String})],Qd.prototype,"sessionName",void 0),o([Zt({type:String})],Qd.prototype,"sessionId",void 0),o([Zt({type:String})],Qd.prototype,"filename",void 0),o([Zt({type:Array})],Qd.prototype,"files",void 0),o([ei("#dialog")],Qd.prototype,"dialog",void 0),Qd=o([Xt("backend-ai-dialog")],Qd);
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */
const ec=(e,t)=>"method"===t.kind&&t.descriptor&&!("value"in t.descriptor)?{...t,finisher(i){i.createProperty(t.key,e)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:t.key,initializer(){"function"==typeof t.initializer&&(this[t.key]=t.initializer.call(this))},finisher(i){i.createProperty(t.key,e)}},tc=(e,t,i)=>{t.constructor.createProperty(i,e)};
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */function ic(e){return(t,i)=>void 0!==i?tc(e,t,i):ec(e,t)
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */}function oc(e){return ic({...e,state:!0})}
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */
/**
 * @license
 * Copyright 2021 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */
var sc;null===(sc=window.HTMLSlotElement)||void 0===sc||sc.prototype.assignedElements;
/**
 * @license
 * Copyright 2019 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */
const nc=window,rc=nc.ShadowRoot&&(void 0===nc.ShadyCSS||nc.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,ac=Symbol(),lc=new WeakMap;let dc=class{constructor(e,t,i){if(this._$cssResult$=!0,i!==ac)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o;const t=this.t;if(rc&&void 0===e){const i=void 0!==t&&1===t.length;i&&(e=lc.get(t)),void 0===e&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),i&&lc.set(t,e))}return e}toString(){return this.cssText}};const cc=rc?e=>e:e=>e instanceof CSSStyleSheet?(e=>{let t="";for(const i of e.cssRules)t+=i.cssText;return(e=>new dc("string"==typeof e?e:e+"",void 0,ac))(t)})(e):e
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */;var hc;const pc=window,uc=pc.trustedTypes,mc=uc?uc.emptyScript:"",gc=pc.reactiveElementPolyfillSupport,fc={toAttribute(e,t){switch(t){case Boolean:e=e?mc:null;break;case Object:case Array:e=null==e?e:JSON.stringify(e)}return e},fromAttribute(e,t){let i=e;switch(t){case Boolean:i=null!==e;break;case Number:i=null===e?null:Number(e);break;case Object:case Array:try{i=JSON.parse(e)}catch(e){i=null}}return i}},_c=(e,t)=>t!==e&&(t==t||e==e),vc={attribute:!0,type:String,converter:fc,reflect:!1,hasChanged:_c},bc="finalized";let yc=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this._$Eu()}static addInitializer(e){var t;this.finalize(),(null!==(t=this.h)&&void 0!==t?t:this.h=[]).push(e)}static get observedAttributes(){this.finalize();const e=[];return this.elementProperties.forEach(((t,i)=>{const o=this._$Ep(i,t);void 0!==o&&(this._$Ev.set(o,i),e.push(o))})),e}static createProperty(e,t=vc){if(t.state&&(t.attribute=!1),this.finalize(),this.elementProperties.set(e,t),!t.noAccessor&&!this.prototype.hasOwnProperty(e)){const i="symbol"==typeof e?Symbol():"__"+e,o=this.getPropertyDescriptor(e,i,t);void 0!==o&&Object.defineProperty(this.prototype,e,o)}}static getPropertyDescriptor(e,t,i){return{get(){return this[t]},set(o){const s=this[e];this[t]=o,this.requestUpdate(e,s,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)||vc}static finalize(){if(this.hasOwnProperty(bc))return!1;this[bc]=!0;const e=Object.getPrototypeOf(this);if(e.finalize(),void 0!==e.h&&(this.h=[...e.h]),this.elementProperties=new Map(e.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const e=this.properties,t=[...Object.getOwnPropertyNames(e),...Object.getOwnPropertySymbols(e)];for(const i of t)this.createProperty(i,e[i])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(e){const t=[];if(Array.isArray(e)){const i=new Set(e.flat(1/0).reverse());for(const e of i)t.unshift(cc(e))}else void 0!==e&&t.push(cc(e));return t}static _$Ep(e,t){const i=t.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof e?e.toLowerCase():void 0}_$Eu(){var e;this._$E_=new Promise((e=>this.enableUpdating=e)),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(e=this.constructor.h)||void 0===e||e.forEach((e=>e(this)))}addController(e){var t,i;(null!==(t=this._$ES)&&void 0!==t?t:this._$ES=[]).push(e),void 0!==this.renderRoot&&this.isConnected&&(null===(i=e.hostConnected)||void 0===i||i.call(e))}removeController(e){var t;null===(t=this._$ES)||void 0===t||t.splice(this._$ES.indexOf(e)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach(((e,t)=>{this.hasOwnProperty(t)&&(this._$Ei.set(t,this[t]),delete this[t])}))}createRenderRoot(){var e;const t=null!==(e=this.shadowRoot)&&void 0!==e?e:this.attachShadow(this.constructor.shadowRootOptions);return((e,t)=>{rc?e.adoptedStyleSheets=t.map((e=>e instanceof CSSStyleSheet?e:e.styleSheet)):t.forEach((t=>{const i=document.createElement("style"),o=nc.litNonce;void 0!==o&&i.setAttribute("nonce",o),i.textContent=t.cssText,e.appendChild(i)}))})(t,this.constructor.elementStyles),t}connectedCallback(){var e;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(e=this._$ES)||void 0===e||e.forEach((e=>{var t;return null===(t=e.hostConnected)||void 0===t?void 0:t.call(e)}))}enableUpdating(e){}disconnectedCallback(){var e;null===(e=this._$ES)||void 0===e||e.forEach((e=>{var t;return null===(t=e.hostDisconnected)||void 0===t?void 0:t.call(e)}))}attributeChangedCallback(e,t,i){this._$AK(e,i)}_$EO(e,t,i=vc){var o;const s=this.constructor._$Ep(e,i);if(void 0!==s&&!0===i.reflect){const n=(void 0!==(null===(o=i.converter)||void 0===o?void 0:o.toAttribute)?i.converter:fc).toAttribute(t,i.type);this._$El=e,null==n?this.removeAttribute(s):this.setAttribute(s,n),this._$El=null}}_$AK(e,t){var i;const o=this.constructor,s=o._$Ev.get(e);if(void 0!==s&&this._$El!==s){const e=o.getPropertyOptions(s),n="function"==typeof e.converter?{fromAttribute:e.converter}:void 0!==(null===(i=e.converter)||void 0===i?void 0:i.fromAttribute)?e.converter:fc;this._$El=s,this[s]=n.fromAttribute(t,e.type),this._$El=null}}requestUpdate(e,t,i){let o=!0;void 0!==e&&(((i=i||this.constructor.getPropertyOptions(e)).hasChanged||_c)(this[e],t)?(this._$AL.has(e)||this._$AL.set(e,t),!0===i.reflect&&this._$El!==e&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(e,i))):o=!1),!this.isUpdatePending&&o&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(e){Promise.reject(e)}const e=this.scheduleUpdate();return null!=e&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var e;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach(((e,t)=>this[t]=e)),this._$Ei=void 0);let t=!1;const i=this._$AL;try{t=this.shouldUpdate(i),t?(this.willUpdate(i),null===(e=this._$ES)||void 0===e||e.forEach((e=>{var t;return null===(t=e.hostUpdate)||void 0===t?void 0:t.call(e)})),this.update(i)):this._$Ek()}catch(e){throw t=!1,this._$Ek(),e}t&&this._$AE(i)}willUpdate(e){}_$AE(e){var t;null===(t=this._$ES)||void 0===t||t.forEach((e=>{var t;return null===(t=e.hostUpdated)||void 0===t?void 0:t.call(e)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(e){return!0}update(e){void 0!==this._$EC&&(this._$EC.forEach(((e,t)=>this._$EO(t,this[t],e))),this._$EC=void 0),this._$Ek()}updated(e){}firstUpdated(e){}};
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */
var xc;yc[bc]=!0,yc.elementProperties=new Map,yc.elementStyles=[],yc.shadowRootOptions={mode:"open"},null==gc||gc({ReactiveElement:yc}),(null!==(hc=pc.reactiveElementVersions)&&void 0!==hc?hc:pc.reactiveElementVersions=[]).push("1.6.3");const wc=window,$c=wc.trustedTypes,Ac=$c?$c.createPolicy("lit-html",{createHTML:e=>e}):void 0,kc="$lit$",Ec=`lit$${(Math.random()+"").slice(9)}$`,Sc="?"+Ec,Cc=`<${Sc}>`,Tc=document,Pc=()=>Tc.createComment(""),Ic=e=>null===e||"object"!=typeof e&&"function"!=typeof e,Oc=Array.isArray,Rc="[ \t\n\f\r]",Nc=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Lc=/-->/g,Mc=/>/g,Uc=RegExp(`>|${Rc}(?:([^\\s"'>=/]+)(${Rc}*=${Rc}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),Hc=/'/g,Dc=/"/g,zc=/^(?:script|style|textarea|title)$/i,Bc=(e=>(t,...i)=>({_$litType$:e,strings:t,values:i}))(1),Fc=Symbol.for("lit-noChange"),jc=Symbol.for("lit-nothing"),Vc=new WeakMap,qc=Tc.createTreeWalker(Tc,129,null,!1);function Wc(e,t){if(!Array.isArray(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==Ac?Ac.createHTML(t):t}let Gc=class e{constructor({strings:t,_$litType$:i},o){let s;this.parts=[];let n=0,r=0;const a=t.length-1,l=this.parts,[d,c]=((e,t)=>{const i=e.length-1,o=[];let s,n=2===t?"<svg>":"",r=Nc;for(let t=0;t<i;t++){const i=e[t];let a,l,d=-1,c=0;for(;c<i.length&&(r.lastIndex=c,l=r.exec(i),null!==l);)c=r.lastIndex,r===Nc?"!--"===l[1]?r=Lc:void 0!==l[1]?r=Mc:void 0!==l[2]?(zc.test(l[2])&&(s=RegExp("</"+l[2],"g")),r=Uc):void 0!==l[3]&&(r=Uc):r===Uc?">"===l[0]?(r=null!=s?s:Nc,d=-1):void 0===l[1]?d=-2:(d=r.lastIndex-l[2].length,a=l[1],r=void 0===l[3]?Uc:'"'===l[3]?Dc:Hc):r===Dc||r===Hc?r=Uc:r===Lc||r===Mc?r=Nc:(r=Uc,s=void 0);const h=r===Uc&&e[t+1].startsWith("/>")?" ":"";n+=r===Nc?i+Cc:d>=0?(o.push(a),i.slice(0,d)+kc+i.slice(d)+Ec+h):i+Ec+(-2===d?(o.push(void 0),t):h)}return[Wc(e,n+(e[i]||"<?>")+(2===t?"</svg>":"")),o]})(t,i);if(this.el=e.createElement(d,o),qc.currentNode=this.el.content,2===i){const e=this.el.content,t=e.firstChild;t.remove(),e.append(...t.childNodes)}for(;null!==(s=qc.nextNode())&&l.length<a;){if(1===s.nodeType){if(s.hasAttributes()){const e=[];for(const t of s.getAttributeNames())if(t.endsWith(kc)||t.startsWith(Ec)){const i=c[r++];if(e.push(t),void 0!==i){const e=s.getAttribute(i.toLowerCase()+kc).split(Ec),t=/([.?@])?(.*)/.exec(i);l.push({type:1,index:n,name:t[2],strings:e,ctor:"."===t[1]?Zc:"?"===t[1]?eh:"@"===t[1]?th:Jc})}else l.push({type:6,index:n})}for(const t of e)s.removeAttribute(t)}if(zc.test(s.tagName)){const e=s.textContent.split(Ec),t=e.length-1;if(t>0){s.textContent=$c?$c.emptyScript:"";for(let i=0;i<t;i++)s.append(e[i],Pc()),qc.nextNode(),l.push({type:2,index:++n});s.append(e[t],Pc())}}}else if(8===s.nodeType)if(s.data===Sc)l.push({type:2,index:n});else{let e=-1;for(;-1!==(e=s.data.indexOf(Ec,e+1));)l.push({type:7,index:n}),e+=Ec.length-1}n++}}static createElement(e,t){const i=Tc.createElement("template");return i.innerHTML=e,i}};function Kc(e,t,i=e,o){var s,n,r,a;if(t===Fc)return t;let l=void 0!==o?null===(s=i._$Co)||void 0===s?void 0:s[o]:i._$Cl;const d=Ic(t)?void 0:t._$litDirective$;return(null==l?void 0:l.constructor)!==d&&(null===(n=null==l?void 0:l._$AO)||void 0===n||n.call(l,!1),void 0===d?l=void 0:(l=new d(e),l._$AT(e,i,o)),void 0!==o?(null!==(r=(a=i)._$Co)&&void 0!==r?r:a._$Co=[])[o]=l:i._$Cl=l),void 0!==l&&(t=Kc(e,l._$AS(e,t.values),l,o)),t}let Xc=class{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){var t;const{el:{content:i},parts:o}=this._$AD,s=(null!==(t=null==e?void 0:e.creationScope)&&void 0!==t?t:Tc).importNode(i,!0);qc.currentNode=s;let n=qc.nextNode(),r=0,a=0,l=o[0];for(;void 0!==l;){if(r===l.index){let t;2===l.type?t=new Yc(n,n.nextSibling,this,e):1===l.type?t=new l.ctor(n,l.name,l.strings,this,e):6===l.type&&(t=new ih(n,this,e)),this._$AV.push(t),l=o[++a]}r!==(null==l?void 0:l.index)&&(n=qc.nextNode(),r++)}return qc.currentNode=Tc,s}v(e){let t=0;for(const i of this._$AV)void 0!==i&&(void 0!==i.strings?(i._$AI(e,i,t),t+=i.strings.length-2):i._$AI(e[t])),t++}},Yc=class e{constructor(e,t,i,o){var s;this.type=2,this._$AH=jc,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=i,this.options=o,this._$Cp=null===(s=null==o?void 0:o.isConnected)||void 0===s||s}get _$AU(){var e,t;return null!==(t=null===(e=this._$AM)||void 0===e?void 0:e._$AU)&&void 0!==t?t:this._$Cp}get parentNode(){let e=this._$AA.parentNode;const t=this._$AM;return void 0!==t&&11===(null==e?void 0:e.nodeType)&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=Kc(this,e,t),Ic(e)?e===jc||null==e||""===e?(this._$AH!==jc&&this._$AR(),this._$AH=jc):e!==this._$AH&&e!==Fc&&this._(e):void 0!==e._$litType$?this.g(e):void 0!==e.nodeType?this.$(e):(e=>Oc(e)||"function"==typeof(null==e?void 0:e[Symbol.iterator]))(e)?this.T(e):this._(e)}k(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}$(e){this._$AH!==e&&(this._$AR(),this._$AH=this.k(e))}_(e){this._$AH!==jc&&Ic(this._$AH)?this._$AA.nextSibling.data=e:this.$(Tc.createTextNode(e)),this._$AH=e}g(e){var t;const{values:i,_$litType$:o}=e,s="number"==typeof o?this._$AC(e):(void 0===o.el&&(o.el=Gc.createElement(Wc(o.h,o.h[0]),this.options)),o);if((null===(t=this._$AH)||void 0===t?void 0:t._$AD)===s)this._$AH.v(i);else{const e=new Xc(s,this),t=e.u(this.options);e.v(i),this.$(t),this._$AH=e}}_$AC(e){let t=Vc.get(e.strings);return void 0===t&&Vc.set(e.strings,t=new Gc(e)),t}T(t){Oc(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let o,s=0;for(const n of t)s===i.length?i.push(o=new e(this.k(Pc()),this.k(Pc()),this,this.options)):o=i[s],o._$AI(n),s++;s<i.length&&(this._$AR(o&&o._$AB.nextSibling,s),i.length=s)}_$AR(e=this._$AA.nextSibling,t){var i;for(null===(i=this._$AP)||void 0===i||i.call(this,!1,!0,t);e&&e!==this._$AB;){const t=e.nextSibling;e.remove(),e=t}}setConnected(e){var t;void 0===this._$AM&&(this._$Cp=e,null===(t=this._$AP)||void 0===t||t.call(this,e))}},Jc=class{constructor(e,t,i,o,s){this.type=1,this._$AH=jc,this._$AN=void 0,this.element=e,this.name=t,this._$AM=o,this.options=s,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=jc}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(e,t=this,i,o){const s=this.strings;let n=!1;if(void 0===s)e=Kc(this,e,t,0),n=!Ic(e)||e!==this._$AH&&e!==Fc,n&&(this._$AH=e);else{const o=e;let r,a;for(e=s[0],r=0;r<s.length-1;r++)a=Kc(this,o[i+r],t,r),a===Fc&&(a=this._$AH[r]),n||(n=!Ic(a)||a!==this._$AH[r]),a===jc?e=jc:e!==jc&&(e+=(null!=a?a:"")+s[r+1]),this._$AH[r]=a}n&&!o&&this.j(e)}j(e){e===jc?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=e?e:"")}},Zc=class extends Jc{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===jc?void 0:e}};const Qc=$c?$c.emptyScript:"";let eh=class extends Jc{constructor(){super(...arguments),this.type=4}j(e){e&&e!==jc?this.element.setAttribute(this.name,Qc):this.element.removeAttribute(this.name)}},th=class extends Jc{constructor(e,t,i,o,s){super(e,t,i,o,s),this.type=5}_$AI(e,t=this){var i;if((e=null!==(i=Kc(this,e,t,0))&&void 0!==i?i:jc)===Fc)return;const o=this._$AH,s=e===jc&&o!==jc||e.capture!==o.capture||e.once!==o.once||e.passive!==o.passive,n=e!==jc&&(o===jc||s);s&&this.element.removeEventListener(this.name,this,o),n&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var t,i;"function"==typeof this._$AH?this._$AH.call(null!==(i=null===(t=this.options)||void 0===t?void 0:t.host)&&void 0!==i?i:this.element,e):this._$AH.handleEvent(e)}},ih=class{constructor(e,t,i){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(e){Kc(this,e)}};const oh=wc.litHtmlPolyfillSupport;null==oh||oh(Gc,Yc),(null!==(xc=wc.litHtmlVersions)&&void 0!==xc?xc:wc.litHtmlVersions=[]).push("2.8.0");
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */
var sh,nh;let rh=class extends yc{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e,t;const i=super.createRenderRoot();return null!==(e=(t=this.renderOptions).renderBefore)&&void 0!==e||(t.renderBefore=i.firstChild),i}update(e){const t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=((e,t,i)=>{var o,s;const n=null!==(o=null==i?void 0:i.renderBefore)&&void 0!==o?o:t;let r=n._$litPart$;if(void 0===r){const e=null!==(s=null==i?void 0:i.renderBefore)&&void 0!==s?s:null;n._$litPart$=r=new Yc(t.insertBefore(Pc(),e),e,void 0,null!=i?i:{})}return r._$AI(e),r})(t,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),null===(e=this._$Do)||void 0===e||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),null===(e=this._$Do)||void 0===e||e.setConnected(!1)}render(){return Fc}};rh.finalized=!0,rh._$litElement$=!0,null===(sh=globalThis.litElementHydrateSupport)||void 0===sh||sh.call(globalThis,{LitElement:rh});const ah=globalThis.litElementPolyfillSupport;null==ah||ah({LitElement:rh}),(null!==(nh=globalThis.litElementVersions)&&void 0!==nh?nh:globalThis.litElementVersions=[]).push("3.3.3");
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */
const lh=1,dh=e=>(...t)=>({_$litDirective$:e,values:t});let ch=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,i){this._$Ct=e,this._$AM=t,this._$Ci=i}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}};
/**
 * @license
 * Copyright 2018 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */const hh=dh(class extends ch{constructor(e){var t;if(super(e),e.type!==lh||"class"!==e.name||(null===(t=e.strings)||void 0===t?void 0:t.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(e){return" "+Object.keys(e).filter((t=>e[t])).join(" ")+" "}update(e,[t]){var i,o;if(void 0===this.it){this.it=new Set,void 0!==e.strings&&(this.nt=new Set(e.strings.join(" ").split(/\s/).filter((e=>""!==e))));for(const e in t)t[e]&&!(null===(i=this.nt)||void 0===i?void 0:i.has(e))&&this.it.add(e);return this.render(t)}const s=e.element.classList;this.it.forEach((e=>{e in t||(s.remove(e),this.it.delete(e))}));for(const e in t){const i=!!t[e];i===this.it.has(e)||(null===(o=this.nt)||void 0===o?void 0:o.has(e))||(i?(s.add(e),this.it.add(e)):(s.remove(e),this.it.delete(e)))}return Fc}}),ph=e=>null!=e?e:jc
/**
 * @license
 * Copyright 2018 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */,uh="important",mh=" !"+uh,gh=dh(class extends ch{constructor(e){var t;if(super(e),e.type!==lh||"style"!==e.name||(null===(t=e.strings)||void 0===t?void 0:t.length)>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(e){return Object.keys(e).reduce(((t,i)=>{const o=e[i];return null==o?t:t+`${i=i.includes("-")?i:i.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${o};`}),"")}update(e,[t]){const{style:i}=e.element;if(void 0===this.ht){this.ht=new Set;for(const e in t)this.ht.add(e);return this.render(t)}this.ht.forEach((e=>{null==t[e]&&(this.ht.delete(e),e.includes("-")?i.removeProperty(e):i[e]="")}));for(const e in t){const o=t[e];if(null!=o){this.ht.add(e);const t="string"==typeof o&&o.endsWith(mh);e.includes("-")||t?i.setProperty(e,t?o.slice(0,-11):o,t?uh:""):i[e]=o}}return Fc}});
/**
 * @license
 * Copyright 2018 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */
/**
 * @license
 * Copyright 2018 Google LLC
 * SPDX-License-Identifier: Apache-2.0
 */
class fh extends rh{constructor(){super(...arguments),this.indeterminate=!1,this.progress=0,this.buffer=1,this.reverse=!1,this.closed=!1,this.stylePrimaryHalf="",this.stylePrimaryFull="",this.styleSecondaryQuarter="",this.styleSecondaryHalf="",this.styleSecondaryFull="",this.animationReady=!0,this.closedAnimationOff=!1,this.resizeObserver=null}connectedCallback(){super.connectedCallback(),this.rootEl&&this.attachResizeObserver()}render(){const e={"mdc-linear-progress--closed":this.closed,"mdc-linear-progress--closed-animation-off":this.closedAnimationOff,"mdc-linear-progress--indeterminate":this.indeterminate,"mdc-linear-progress--animation-ready":this.animationReady},t={"--mdc-linear-progress-primary-half":this.stylePrimaryHalf,"--mdc-linear-progress-primary-half-neg":""!==this.stylePrimaryHalf?`-${this.stylePrimaryHalf}`:"","--mdc-linear-progress-primary-full":this.stylePrimaryFull,"--mdc-linear-progress-primary-full-neg":""!==this.stylePrimaryFull?`-${this.stylePrimaryFull}`:"","--mdc-linear-progress-secondary-quarter":this.styleSecondaryQuarter,"--mdc-linear-progress-secondary-quarter-neg":""!==this.styleSecondaryQuarter?`-${this.styleSecondaryQuarter}`:"","--mdc-linear-progress-secondary-half":this.styleSecondaryHalf,"--mdc-linear-progress-secondary-half-neg":""!==this.styleSecondaryHalf?`-${this.styleSecondaryHalf}`:"","--mdc-linear-progress-secondary-full":this.styleSecondaryFull,"--mdc-linear-progress-secondary-full-neg":""!==this.styleSecondaryFull?`-${this.styleSecondaryFull}`:""},i={"flex-basis":this.indeterminate?"100%":100*this.buffer+"%"},o={transform:this.indeterminate?"scaleX(1)":`scaleX(${this.progress})`};return Bc`
      <div
          role="progressbar"
          class="mdc-linear-progress ${hh(e)}"
          style="${gh(t)}"
          dir="${ph(this.reverse?"rtl":void 0)}"
          aria-label="${ph(this.ariaLabel)}"
          aria-valuemin="0"
          aria-valuemax="1"
          aria-valuenow="${ph(this.indeterminate?void 0:this.progress)}"
        @transitionend="${this.syncClosedState}">
        <div class="mdc-linear-progress__buffer">
          <div
            class="mdc-linear-progress__buffer-bar"
            style=${gh(i)}>
          </div>
          <div class="mdc-linear-progress__buffer-dots"></div>
        </div>
        <div
            class="mdc-linear-progress__bar mdc-linear-progress__primary-bar"
            style=${gh(o)}>
          <span class="mdc-linear-progress__bar-inner"></span>
        </div>
        <div class="mdc-linear-progress__bar mdc-linear-progress__secondary-bar">
          <span class="mdc-linear-progress__bar-inner"></span>
        </div>
      </div>`}update(e){!e.has("closed")||this.closed&&void 0!==e.get("closed")||this.syncClosedState(),super.update(e)}async firstUpdated(e){super.firstUpdated(e),this.attachResizeObserver()}syncClosedState(){this.closedAnimationOff=this.closed}updated(e){!e.has("indeterminate")&&e.has("reverse")&&this.indeterminate&&this.restartAnimation(),e.has("indeterminate")&&void 0!==e.get("indeterminate")&&this.indeterminate&&window.ResizeObserver&&this.calculateAndSetAnimationDimensions(this.rootEl.offsetWidth),super.updated(e)}disconnectedCallback(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null),super.disconnectedCallback()}attachResizeObserver(){if(window.ResizeObserver)return this.resizeObserver=new window.ResizeObserver((e=>{if(this.indeterminate)for(const t of e)if(t.contentRect){const e=t.contentRect.width;this.calculateAndSetAnimationDimensions(e)}})),void this.resizeObserver.observe(this.rootEl);this.resizeObserver=null}calculateAndSetAnimationDimensions(e){const t=.8367142*e,i=2.00611057*e,o=.37651913*e,s=.84386165*e,n=1.60277782*e;this.stylePrimaryHalf=`${t}px`,this.stylePrimaryFull=`${i}px`,this.styleSecondaryQuarter=`${o}px`,this.styleSecondaryHalf=`${s}px`,this.styleSecondaryFull=`${n}px`,this.restartAnimation()}async restartAnimation(){this.animationReady=!1,await this.updateComplete,await new Promise(requestAnimationFrame),this.animationReady=!0,await this.updateComplete}open(){this.closed=!1}close(){this.closed=!0}}o([
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */
function(e,t){return(({finisher:e,descriptor:t})=>(i,o)=>{var s;if(void 0===o){const o=null!==(s=i.originalKey)&&void 0!==s?s:i.key,n=null!=t?{kind:"method",placement:"prototype",key:o,descriptor:t(i.key)}:{...i,key:o};return null!=e&&(n.finisher=function(t){e(t,o)}),n}{const s=i.constructor;void 0!==t&&Object.defineProperty(i,o,t(o)),null==e||e(s,o)}})({descriptor:t=>{const i={get(){var t,i;return null!==(i=null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector(e))&&void 0!==i?i:null},enumerable:!0,configurable:!0};return i}})}(".mdc-linear-progress")],fh.prototype,"rootEl",void 0),o([ic({type:Boolean,reflect:!0})],fh.prototype,"indeterminate",void 0),o([ic({type:Number})],fh.prototype,"progress",void 0),o([ic({type:Number})],fh.prototype,"buffer",void 0),o([ic({type:Boolean,reflect:!0})],fh.prototype,"reverse",void 0),o([ic({type:Boolean,reflect:!0})],fh.prototype,"closed",void 0),o([tr,ic({attribute:"aria-label"})],fh.prototype,"ariaLabel",void 0),o([oc()],fh.prototype,"stylePrimaryHalf",void 0),o([oc()],fh.prototype,"stylePrimaryFull",void 0),o([oc()],fh.prototype,"styleSecondaryQuarter",void 0),o([oc()],fh.prototype,"styleSecondaryHalf",void 0),o([oc()],fh.prototype,"styleSecondaryFull",void 0),o([oc()],fh.prototype,"animationReady",void 0),o([oc()],fh.prototype,"closedAnimationOff",void 0);
/**
 * @license
 * Copyright 2021 Google LLC
 * SPDX-LIcense-Identifier: Apache-2.0
 */
const _h=((e,...t)=>{const i=1===e.length?e[0]:t.reduce(((t,i,o)=>t+(e=>{if(!0===e._$cssResult$)return e.cssText;if("number"==typeof e)return e;throw Error("Value passed to 'css' function must be a 'css' function result: "+e+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+e[o+1]),e[0]);return new dc(i,e,ac)})`@keyframes mdc-linear-progress-primary-indeterminate-translate{0%{transform:translateX(0)}20%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(0)}59.15%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(83.67142%);transform:translateX(var(--mdc-linear-progress-primary-half, 83.67142%))}100%{transform:translateX(200.611057%);transform:translateX(var(--mdc-linear-progress-primary-full, 200.611057%))}}@keyframes mdc-linear-progress-primary-indeterminate-scale{0%{transform:scaleX(0.08)}36.65%{animation-timing-function:cubic-bezier(0.334731, 0.12482, 0.785844, 1);transform:scaleX(0.08)}69.15%{animation-timing-function:cubic-bezier(0.06, 0.11, 0.6, 1);transform:scaleX(0.661479)}100%{transform:scaleX(0.08)}}@keyframes mdc-linear-progress-secondary-indeterminate-translate{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:translateX(0)}25%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:translateX(37.651913%);transform:translateX(var(--mdc-linear-progress-secondary-quarter, 37.651913%))}48.35%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:translateX(84.386165%);transform:translateX(var(--mdc-linear-progress-secondary-half, 84.386165%))}100%{transform:translateX(160.277782%);transform:translateX(var(--mdc-linear-progress-secondary-full, 160.277782%))}}@keyframes mdc-linear-progress-secondary-indeterminate-scale{0%{animation-timing-function:cubic-bezier(0.205028, 0.057051, 0.57661, 0.453971);transform:scaleX(0.08)}19.15%{animation-timing-function:cubic-bezier(0.152313, 0.196432, 0.648374, 1.004315);transform:scaleX(0.457104)}44.15%{animation-timing-function:cubic-bezier(0.257759, -0.003163, 0.211762, 1.38179);transform:scaleX(0.72796)}100%{transform:scaleX(0.08)}}@keyframes mdc-linear-progress-buffering{from{transform:rotate(180deg) translateX(-10px)}}@keyframes mdc-linear-progress-primary-indeterminate-translate-reverse{0%{transform:translateX(0)}20%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(0)}59.15%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(-83.67142%);transform:translateX(var(--mdc-linear-progress-primary-half-neg, -83.67142%))}100%{transform:translateX(-200.611057%);transform:translateX(var(--mdc-linear-progress-primary-full-neg, -200.611057%))}}@keyframes mdc-linear-progress-secondary-indeterminate-translate-reverse{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:translateX(0)}25%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:translateX(-37.651913%);transform:translateX(var(--mdc-linear-progress-secondary-quarter-neg, -37.651913%))}48.35%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:translateX(-84.386165%);transform:translateX(var(--mdc-linear-progress-secondary-half-neg, -84.386165%))}100%{transform:translateX(-160.277782%);transform:translateX(var(--mdc-linear-progress-secondary-full-neg, -160.277782%))}}@keyframes mdc-linear-progress-buffering-reverse{from{transform:translateX(-10px)}}.mdc-linear-progress{position:relative;width:100%;transform:translateZ(0);outline:1px solid transparent;overflow:hidden;transition:opacity 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}@media screen and (forced-colors: active){.mdc-linear-progress{outline-color:CanvasText}}.mdc-linear-progress__bar{position:absolute;width:100%;height:100%;animation:none;transform-origin:top left;transition:transform 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-linear-progress__bar-inner{display:inline-block;position:absolute;width:100%;animation:none;border-top-style:solid}.mdc-linear-progress__buffer{display:flex;position:absolute;width:100%;height:100%}.mdc-linear-progress__buffer-dots{background-repeat:repeat-x;flex:auto;transform:rotate(180deg);animation:mdc-linear-progress-buffering 250ms infinite linear}.mdc-linear-progress__buffer-bar{flex:0 1 100%;transition:flex-basis 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-linear-progress__primary-bar{transform:scaleX(0)}.mdc-linear-progress__secondary-bar{display:none}.mdc-linear-progress--indeterminate .mdc-linear-progress__bar{transition:none}.mdc-linear-progress--indeterminate .mdc-linear-progress__primary-bar{left:-145.166611%}.mdc-linear-progress--indeterminate .mdc-linear-progress__secondary-bar{left:-54.888891%;display:block}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar{animation:mdc-linear-progress-primary-indeterminate-translate 2s infinite linear}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar>.mdc-linear-progress__bar-inner{animation:mdc-linear-progress-primary-indeterminate-scale 2s infinite linear}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar{animation:mdc-linear-progress-secondary-indeterminate-translate 2s infinite linear}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar>.mdc-linear-progress__bar-inner{animation:mdc-linear-progress-secondary-indeterminate-scale 2s infinite linear}[dir=rtl] .mdc-linear-progress:not([dir=ltr]) .mdc-linear-progress__bar,.mdc-linear-progress[dir=rtl]:not([dir=ltr]) .mdc-linear-progress__bar{right:0;-webkit-transform-origin:center right;transform-origin:center right}[dir=rtl] .mdc-linear-progress:not([dir=ltr]).mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar,.mdc-linear-progress[dir=rtl]:not([dir=ltr]).mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar{animation-name:mdc-linear-progress-primary-indeterminate-translate-reverse}[dir=rtl] .mdc-linear-progress:not([dir=ltr]).mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar,.mdc-linear-progress[dir=rtl]:not([dir=ltr]).mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar{animation-name:mdc-linear-progress-secondary-indeterminate-translate-reverse}[dir=rtl] .mdc-linear-progress:not([dir=ltr]) .mdc-linear-progress__buffer-dots,.mdc-linear-progress[dir=rtl]:not([dir=ltr]) .mdc-linear-progress__buffer-dots{animation:mdc-linear-progress-buffering-reverse 250ms infinite linear;transform:rotate(0)}[dir=rtl] .mdc-linear-progress:not([dir=ltr]).mdc-linear-progress--indeterminate .mdc-linear-progress__primary-bar,.mdc-linear-progress[dir=rtl]:not([dir=ltr]).mdc-linear-progress--indeterminate .mdc-linear-progress__primary-bar{right:-145.166611%;left:auto}[dir=rtl] .mdc-linear-progress:not([dir=ltr]).mdc-linear-progress--indeterminate .mdc-linear-progress__secondary-bar,.mdc-linear-progress[dir=rtl]:not([dir=ltr]).mdc-linear-progress--indeterminate .mdc-linear-progress__secondary-bar{right:-54.888891%;left:auto}.mdc-linear-progress--closed{opacity:0}.mdc-linear-progress--closed-animation-off .mdc-linear-progress__buffer-dots{animation:none}.mdc-linear-progress--closed-animation-off.mdc-linear-progress--indeterminate .mdc-linear-progress__bar,.mdc-linear-progress--closed-animation-off.mdc-linear-progress--indeterminate .mdc-linear-progress__bar .mdc-linear-progress__bar-inner{animation:none}.mdc-linear-progress__bar-inner{border-color:#6200ee;border-color:var(--mdc-theme-primary, #6200ee)}.mdc-linear-progress__buffer-dots{background-image:url("data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' enable-background='new 0 0 5 2' xml:space='preserve' viewBox='0 0 5 2' preserveAspectRatio='none slice'%3E%3Ccircle cx='1' cy='1' r='1' fill='%23e6e6e6'/%3E%3C/svg%3E")}.mdc-linear-progress__buffer-bar{background-color:#e6e6e6}.mdc-linear-progress{height:4px}.mdc-linear-progress__bar-inner{border-top-width:4px}.mdc-linear-progress__buffer-dots{background-size:10px 4px}:host{display:block}.mdc-linear-progress__buffer-bar{background-color:#e6e6e6;background-color:var(--mdc-linear-progress-buffer-color, #e6e6e6)}.mdc-linear-progress__buffer-dots{background-image:url("data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' enable-background='new 0 0 5 2' xml:space='preserve' viewBox='0 0 5 2' preserveAspectRatio='none slice'%3E%3Ccircle cx='1' cy='1' r='1' fill='%23e6e6e6'/%3E%3C/svg%3E");background-image:var(--mdc-linear-progress-buffering-dots-image, url("data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' enable-background='new 0 0 5 2' xml:space='preserve' viewBox='0 0 5 2' preserveAspectRatio='none slice'%3E%3Ccircle cx='1' cy='1' r='1' fill='%23e6e6e6'/%3E%3C/svg%3E"))}`
/**
 * @license
 * Copyright 2018 Google LLC
 * SPDX-License-Identifier: Apache-2.0
 */;let vh=class extends fh{};vh.styles=[_h],vh=o([(e=>t=>"function"==typeof t?((e,t)=>(customElements.define(e,t),t))(e,t):((e,t)=>{const{kind:i,elements:o}=t;return{kind:i,elements:o,finisher(t){customElements.define(e,t)}}})(e,t))("mwc-linear-progress")],vh);let bh=class extends ke{constructor(){super(...arguments),this.value=0,this.delay=1e3,this.text="",this.mode="determinate"}static get styles(){return[Be,A`
        #app-progress-dialog {
          position: fixed;
          right: 20px !important;
          bottom: 20px;
          z-index: 9000;
          height: auto;
          width: 250px;
          padding: 15px;
          display: none;
          background-color: #ffffff;
          border-radius: 3px;
          box-shadow:
            0 1px 3px -1px rgba(0, 0, 0, 60%),
            0 3px 12px -1px rgb(200, 200, 200, 80%);
        }
        #app-progress-dialog h3 {
          font-size: 14px;
        }
        mwc-linear-progress {
          --mdc-theme-primary: var(--general-select-color, #333);
        }
      `]}firstUpdated(){}connectedCallback(){super.connectedCallback()}async start(e="determinate"){this.value=0,this.mode=e,await this.updateComplete,this.dialog.style.display="block"}set(e,t=""){this.value=e/100,this.text=t,this.value>=1&&this.end(this.delay)}end(e=1e3){0!==e&&(this.delay=e),setTimeout((()=>{this.dialog.style.display="none"}),e)}render(){return ae`
      <div id="app-progress-dialog">
        <h3>${this.text}</h3>
        <mwc-linear-progress
          ?indeterminate="${"determinate"!=this.mode}"
          id="app-progress"
          .progress="${this.value}"
        ></mwc-linear-progress>
      </div>
    `}};o([Zt({type:Number})],bh.prototype,"value",void 0),o([Zt({type:Number})],bh.prototype,"delay",void 0),o([Zt({type:String})],bh.prototype,"text",void 0),o([Zt({type:String})],bh.prototype,"mode",void 0),o([ei("#app-progress-dialog")],bh.prototype,"dialog",void 0),bh=o([Xt("backend-ai-indicator")],bh);let yh=class extends ke{constructor(){super(),this.value=0,this.step=0,this.text="",this.mode="determinate",this.pool=[]}static get styles(){return[]}firstUpdated(){var e;this.dialog=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelector("#app-progress-dialog")}connectedCallback(){super.connectedCallback()}async start(e="determinate"){this.gc();const t=document.createElement("backend-ai-indicator");return t.value=0,t.text=Ye("notification.Initializing"),t.mode=e,t.style.bottom=20+90*this.step+"px",document.body.appendChild(t),this.pool.push(t),this.step=this.pool.length,await this.updateComplete,await t.start(),t}removeIndicator(e){const t=this.pool.filter((t=>t===e));if(t.length>0){const e=this.pool.indexOf(t[0]);e>-1&&this.pool.splice(e,1),document.body.removeChild(t[0]),t[0].remove(),console.log("deleted")}}gc(){const e=[];this.pool.forEach((t=>{console.log(t.value),t.value>=1&&e.push(t)})),e.forEach((e=>{setTimeout((()=>{this.removeIndicator(e)}),e.delay+500)}))}render(){return ae``}};o([Zt({type:Number})],yh.prototype,"value",void 0),o([Zt({type:Number})],yh.prototype,"step",void 0),o([Zt({type:String})],yh.prototype,"text",void 0),o([Zt({type:String})],yh.prototype,"mode",void 0),o([Zt({type:Object})],yh.prototype,"dialog",void 0),o([Zt({type:Array})],yh.prototype,"pool",void 0),yh=o([Xt("backend-ai-indicator-pool")],yh);const xh=("undefined"!=typeof globalThis?globalThis:void 0)?.crypto||("undefined"!=typeof global?global:void 0)?.crypto||("undefined"!=typeof window?window:void 0)?.crypto||("undefined"!=typeof self?self:void 0)?.crypto||("undefined"!=typeof frames?frames:void 0)?.[0]?.crypto;let wh;wh=xh?e=>{const t=[];for(let i=0;i<e;i+=4)t.push(xh.getRandomValues(new Uint32Array(1))[0]);return new Ah(t,e)}:e=>{const t=[],i=e=>{let t=e,i=987654321;const o=4294967295;return()=>{i=36969*(65535&i)+(i>>16)&o,t=18e3*(65535&t)+(t>>16)&o;let e=(i<<16)+t&o;return e/=4294967296,e+=.5,e*(Math.random()>.5?1:-1)}};for(let o,s=0;s<e;s+=4){const e=i(4294967296*(o||Math.random()));o=987654071*e(),t.push(4294967296*e()|0)}return new Ah(t,e)};class $h{static create(...e){return new this(...e)}mixIn(e){return Object.assign(this,e)}clone(){const e=new this.constructor;return Object.assign(e,this),e}}class Ah extends $h{constructor(e=[],t=4*e.length){super();let i=e;if(i instanceof ArrayBuffer&&(i=new Uint8Array(i)),(i instanceof Int8Array||i instanceof Uint8ClampedArray||i instanceof Int16Array||i instanceof Uint16Array||i instanceof Int32Array||i instanceof Uint32Array||i instanceof Float32Array||i instanceof Float64Array)&&(i=new Uint8Array(i.buffer,i.byteOffset,i.byteLength)),i instanceof Uint8Array){const e=i.byteLength,t=[];for(let o=0;o<e;o+=1)t[o>>>2]|=i[o]<<24-o%4*8;this.words=t,this.sigBytes=e}else this.words=e,this.sigBytes=t}static random=wh;toString(e=kh){return e.stringify(this)}concat(e){const t=this.words,i=e.words,o=this.sigBytes,s=e.sigBytes;if(this.clamp(),o%4)for(let e=0;e<s;e+=1){const s=i[e>>>2]>>>24-e%4*8&255;t[o+e>>>2]|=s<<24-(o+e)%4*8}else for(let e=0;e<s;e+=4)t[o+e>>>2]=i[e>>>2];return this.sigBytes+=s,this}clamp(){const{words:e,sigBytes:t}=this;e[t>>>2]&=4294967295<<32-t%4*8,e.length=Math.ceil(t/4)}clone(){const e=super.clone.call(this);return e.words=this.words.slice(0),e}}const kh={stringify(e){const{words:t,sigBytes:i}=e,o=[];for(let e=0;e<i;e+=1){const i=t[e>>>2]>>>24-e%4*8&255;o.push((i>>>4).toString(16)),o.push((15&i).toString(16))}return o.join("")},parse(e){const t=e.length,i=[];for(let o=0;o<t;o+=2)i[o>>>3]|=parseInt(e.substr(o,2),16)<<24-o%8*4;return new Ah(i,t/2)}},Eh={stringify(e){const{words:t,sigBytes:i}=e,o=[];for(let e=0;e<i;e+=1){const i=t[e>>>2]>>>24-e%4*8&255;o.push(String.fromCharCode(i))}return o.join("")},parse(e){const t=e.length,i=[];for(let o=0;o<t;o+=1)i[o>>>2]|=(255&e.charCodeAt(o))<<24-o%4*8;return new Ah(i,t)}},Sh={stringify(e){try{return decodeURIComponent(escape(Eh.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:e=>Eh.parse(unescape(encodeURIComponent(e)))};class Ch extends $h{constructor(){super(),this._minBufferSize=0}reset(){this._data=new Ah,this._nDataBytes=0}_append(e){let t=e;"string"==typeof t&&(t=Sh.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes}_process(e){let t;const{_data:i,blockSize:o}=this,s=i.words,n=i.sigBytes;let r=n/(4*o);r=e?Math.ceil(r):Math.max((0|r)-this._minBufferSize,0);const a=r*o,l=Math.min(4*a,n);if(a){for(let e=0;e<a;e+=o)this._doProcessBlock(s,e);t=s.splice(0,a),i.sigBytes-=l}return new Ah(t,l)}clone(){const e=super.clone.call(this);return e._data=this._data.clone(),e}}class Th extends Ch{constructor(e){super(),this.blockSize=16,this.cfg=Object.assign(new $h,e),this.reset()}static _createHelper(e){return(t,i)=>new e(i).finalize(t)}static _createHmacHelper(e){return(t,i)=>new Ph(e,i).finalize(t)}reset(){super.reset.call(this),this._doReset()}update(e){return this._append(e),this._process(),this}finalize(e){e&&this._append(e);return this._doFinalize()}}class Ph extends $h{constructor(e,t){super();const i=new e;this._hasher=i;let o=t;"string"==typeof o&&(o=Sh.parse(o));const s=i.blockSize,n=4*s;o.sigBytes>n&&(o=i.finalize(t)),o.clamp();const r=o.clone();this._oKey=r;const a=o.clone();this._iKey=a;const l=r.words,d=a.words;for(let e=0;e<s;e+=1)l[e]^=1549556828,d[e]^=909522486;r.sigBytes=n,a.sigBytes=n,this.reset()}reset(){const e=this._hasher;e.reset(),e.update(this._iKey)}update(e){return this._hasher.update(e),this}finalize(e){const t=this._hasher,i=t.finalize(e);t.reset();return t.finalize(this._oKey.clone().concat(i))}}const Ih=Ah;class Oh extends $h{constructor(e,t){super(),this.high=e,this.low=t}}class Rh extends $h{constructor(e=[],t=8*e.length){super(),this.words=e,this.sigBytes=t}toX32(){const e=this.words,t=e.length,i=[];for(let o=0;o<t;o+=1){const t=e[o];i.push(t.high),i.push(t.low)}return Ih.create(i,this.sigBytes)}clone(){const e=super.clone.call(this);e.words=this.words.slice(0);const{words:t}=e,i=t.length;for(let e=0;e<i;e+=1)t[e]=t[e].clone();return e}}const Nh=(e,t,i)=>{const o=[];let s=0;for(let n=0;n<t;n+=1)if(n%4){const t=i[e.charCodeAt(n-1)]<<n%4*2|i[e.charCodeAt(n)]>>>6-n%4*2;o[s>>>2]|=t<<24-s%4*8,s+=1}return Ah.create(o,s)},Lh={stringify(e){const{words:t,sigBytes:i}=e,o=this._map;e.clamp();const s=[];for(let e=0;e<i;e+=3){const n=(t[e>>>2]>>>24-e%4*8&255)<<16|(t[e+1>>>2]>>>24-(e+1)%4*8&255)<<8|t[e+2>>>2]>>>24-(e+2)%4*8&255;for(let t=0;t<4&&e+.75*t<i;t+=1)s.push(o.charAt(n>>>6*(3-t)&63))}const n=o.charAt(64);if(n)for(;s.length%4;)s.push(n);return s.join("")},parse(e){let t=e.length;const i=this._map;let o=this._reverseMap;if(!o){this._reverseMap=[],o=this._reverseMap;for(let e=0;e<i.length;e+=1)o[i.charCodeAt(e)]=e}const s=i.charAt(64);if(s){const i=e.indexOf(s);-1!==i&&(t=i)}return Nh(e,t,o)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},Mh=[];for(let e=0;e<64;e+=1)Mh[e]=4294967296*Math.abs(Math.sin(e+1))|0;const Uh=(e,t,i,o,s,n,r)=>{const a=e+(t&i|~t&o)+s+r;return(a<<n|a>>>32-n)+t},Hh=(e,t,i,o,s,n,r)=>{const a=e+(t&o|i&~o)+s+r;return(a<<n|a>>>32-n)+t},Dh=(e,t,i,o,s,n,r)=>{const a=e+(t^i^o)+s+r;return(a<<n|a>>>32-n)+t},zh=(e,t,i,o,s,n,r)=>{const a=e+(i^(t|~o))+s+r;return(a<<n|a>>>32-n)+t};class Bh extends Th{_doReset(){this._hash=new Ah([1732584193,4023233417,2562383102,271733878])}_doProcessBlock(e,t){const i=e;for(let o=0;o<16;o+=1){const s=t+o,n=e[s];i[s]=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8)}const o=this._hash.words,s=i[t+0],n=i[t+1],r=i[t+2],a=i[t+3],l=i[t+4],d=i[t+5],c=i[t+6],h=i[t+7],p=i[t+8],u=i[t+9],m=i[t+10],g=i[t+11],f=i[t+12],_=i[t+13],v=i[t+14],b=i[t+15];let y=o[0],x=o[1],w=o[2],$=o[3];y=Uh(y,x,w,$,s,7,Mh[0]),$=Uh($,y,x,w,n,12,Mh[1]),w=Uh(w,$,y,x,r,17,Mh[2]),x=Uh(x,w,$,y,a,22,Mh[3]),y=Uh(y,x,w,$,l,7,Mh[4]),$=Uh($,y,x,w,d,12,Mh[5]),w=Uh(w,$,y,x,c,17,Mh[6]),x=Uh(x,w,$,y,h,22,Mh[7]),y=Uh(y,x,w,$,p,7,Mh[8]),$=Uh($,y,x,w,u,12,Mh[9]),w=Uh(w,$,y,x,m,17,Mh[10]),x=Uh(x,w,$,y,g,22,Mh[11]),y=Uh(y,x,w,$,f,7,Mh[12]),$=Uh($,y,x,w,_,12,Mh[13]),w=Uh(w,$,y,x,v,17,Mh[14]),x=Uh(x,w,$,y,b,22,Mh[15]),y=Hh(y,x,w,$,n,5,Mh[16]),$=Hh($,y,x,w,c,9,Mh[17]),w=Hh(w,$,y,x,g,14,Mh[18]),x=Hh(x,w,$,y,s,20,Mh[19]),y=Hh(y,x,w,$,d,5,Mh[20]),$=Hh($,y,x,w,m,9,Mh[21]),w=Hh(w,$,y,x,b,14,Mh[22]),x=Hh(x,w,$,y,l,20,Mh[23]),y=Hh(y,x,w,$,u,5,Mh[24]),$=Hh($,y,x,w,v,9,Mh[25]),w=Hh(w,$,y,x,a,14,Mh[26]),x=Hh(x,w,$,y,p,20,Mh[27]),y=Hh(y,x,w,$,_,5,Mh[28]),$=Hh($,y,x,w,r,9,Mh[29]),w=Hh(w,$,y,x,h,14,Mh[30]),x=Hh(x,w,$,y,f,20,Mh[31]),y=Dh(y,x,w,$,d,4,Mh[32]),$=Dh($,y,x,w,p,11,Mh[33]),w=Dh(w,$,y,x,g,16,Mh[34]),x=Dh(x,w,$,y,v,23,Mh[35]),y=Dh(y,x,w,$,n,4,Mh[36]),$=Dh($,y,x,w,l,11,Mh[37]),w=Dh(w,$,y,x,h,16,Mh[38]),x=Dh(x,w,$,y,m,23,Mh[39]),y=Dh(y,x,w,$,_,4,Mh[40]),$=Dh($,y,x,w,s,11,Mh[41]),w=Dh(w,$,y,x,a,16,Mh[42]),x=Dh(x,w,$,y,c,23,Mh[43]),y=Dh(y,x,w,$,u,4,Mh[44]),$=Dh($,y,x,w,f,11,Mh[45]),w=Dh(w,$,y,x,b,16,Mh[46]),x=Dh(x,w,$,y,r,23,Mh[47]),y=zh(y,x,w,$,s,6,Mh[48]),$=zh($,y,x,w,h,10,Mh[49]),w=zh(w,$,y,x,v,15,Mh[50]),x=zh(x,w,$,y,d,21,Mh[51]),y=zh(y,x,w,$,f,6,Mh[52]),$=zh($,y,x,w,a,10,Mh[53]),w=zh(w,$,y,x,m,15,Mh[54]),x=zh(x,w,$,y,n,21,Mh[55]),y=zh(y,x,w,$,p,6,Mh[56]),$=zh($,y,x,w,b,10,Mh[57]),w=zh(w,$,y,x,c,15,Mh[58]),x=zh(x,w,$,y,_,21,Mh[59]),y=zh(y,x,w,$,l,6,Mh[60]),$=zh($,y,x,w,g,10,Mh[61]),w=zh(w,$,y,x,r,15,Mh[62]),x=zh(x,w,$,y,u,21,Mh[63]),o[0]=o[0]+y|0,o[1]=o[1]+x|0,o[2]=o[2]+w|0,o[3]=o[3]+$|0}_doFinalize(){const e=this._data,t=e.words,i=8*this._nDataBytes,o=8*e.sigBytes;t[o>>>5]|=128<<24-o%32;const s=Math.floor(i/4294967296),n=i;t[15+(o+64>>>9<<4)]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),t[14+(o+64>>>9<<4)]=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8),e.sigBytes=4*(t.length+1),this._process();const r=this._hash,a=r.words;for(let e=0;e<4;e+=1){const t=a[e];a[e]=16711935&(t<<8|t>>>24)|4278255360&(t<<24|t>>>8)}return r}clone(){const e=super.clone.call(this);return e._hash=this._hash.clone(),e}}const Fh=Th._createHelper(Bh),jh=Th._createHmacHelper(Bh);class Vh extends $h{constructor(e){super(),this.cfg=Object.assign(new $h,{keySize:4,hasher:Bh,iterations:1},e)}compute(e,t){let i;const{cfg:o}=this,s=o.hasher.create(),n=Ah.create(),r=n.words,{keySize:a,iterations:l}=o;for(;r.length<a;){i&&s.update(i),i=s.update(e).finalize(t),s.reset();for(let e=1;e<l;e+=1)i=s.finalize(i),s.reset();n.concat(i)}return n.sigBytes=4*a,n}}class qh extends Ch{constructor(e,t,i){super(),this.cfg=Object.assign(new $h,i),this._xformMode=e,this._key=t,this.reset()}static createEncryptor(e,t){return this.create(this._ENC_XFORM_MODE,e,t)}static createDecryptor(e,t){return this.create(this._DEC_XFORM_MODE,e,t)}static _createHelper(e){const t=e=>"string"==typeof e?ip:ep;return{encrypt:(i,o,s)=>t(o).encrypt(e,i,o,s),decrypt:(i,o,s)=>t(o).decrypt(e,i,o,s)}}reset(){super.reset.call(this),this._doReset()}process(e){return this._append(e),this._process()}finalize(e){e&&this._append(e);return this._doFinalize()}}qh._ENC_XFORM_MODE=1,qh._DEC_XFORM_MODE=2,qh.keySize=4,qh.ivSize=4;class Wh extends qh{constructor(...e){super(...e),this.blockSize=1}_doFinalize(){return this._process(!0)}}class Gh extends $h{constructor(e,t){super(),this._cipher=e,this._iv=t}static createEncryptor(e,t){return this.Encryptor.create(e,t)}static createDecryptor(e,t){return this.Decryptor.create(e,t)}}function Kh(e,t,i){const o=e;let s;const n=this._iv;n?(s=n,this._iv=void 0):s=this._prevBlock;for(let e=0;e<i;e+=1)o[t+e]^=s[e]}class Xh extends Gh{}Xh.Encryptor=class extends Xh{processBlock(e,t){const i=this._cipher,{blockSize:o}=i;Kh.call(this,e,t,o),i.encryptBlock(e,t),this._prevBlock=e.slice(t,t+o)}},Xh.Decryptor=class extends Xh{processBlock(e,t){const i=this._cipher,{blockSize:o}=i,s=e.slice(t,t+o);i.decryptBlock(e,t),Kh.call(this,e,t,o),this._prevBlock=s}};const Yh={pad(e,t){const i=4*t,o=i-e.sigBytes%i,s=o<<24|o<<16|o<<8|o,n=[];for(let e=0;e<o;e+=4)n.push(s);const r=Ah.create(n,o);e.concat(r)},unpad(e){const t=e,i=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=i}};class Jh extends qh{constructor(e,t,i){super(e,t,Object.assign({mode:Xh,padding:Yh},i)),this.blockSize=4}reset(){let e;super.reset.call(this);const{cfg:t}=this,{iv:i,mode:o}=t;this._xformMode===this.constructor._ENC_XFORM_MODE?e=o.createEncryptor:(e=o.createDecryptor,this._minBufferSize=1),this._mode=e.call(o,this,i&&i.words),this._mode.__creator=e}_doProcessBlock(e,t){this._mode.processBlock(e,t)}_doFinalize(){let e;const{padding:t}=this.cfg;return this._xformMode===this.constructor._ENC_XFORM_MODE?(t.pad(this._data,this.blockSize),e=this._process(!0)):(e=this._process(!0),t.unpad(e)),e}}class Zh extends $h{constructor(e){super(),this.mixIn(e)}toString(e){return(e||this.formatter).stringify(this)}}const Qh={stringify(e){let t;const{ciphertext:i,salt:o}=e;return t=o?Ah.create([1398893684,1701076831]).concat(o).concat(i):i,t.toString(Lh)},parse(e){let t;const i=Lh.parse(e),o=i.words;return 1398893684===o[0]&&1701076831===o[1]&&(t=Ah.create(o.slice(2,4)),o.splice(0,4),i.sigBytes-=16),Zh.create({ciphertext:i,salt:t})}};class ep extends $h{static encrypt(e,t,i,o){const s=Object.assign(new $h,this.cfg,o),n=e.createEncryptor(i,s),r=n.finalize(t),a=n.cfg;return Zh.create({ciphertext:r,key:i,iv:a.iv,algorithm:e,mode:a.mode,padding:a.padding,blockSize:n.blockSize,formatter:s.format})}static decrypt(e,t,i,o){let s=t;const n=Object.assign(new $h,this.cfg,o);s=this._parse(s,n.format);return e.createDecryptor(i,n).finalize(s.ciphertext)}static _parse(e,t){return"string"==typeof e?t.parse(e,this):e}}ep.cfg=Object.assign(new $h,{format:Qh});const tp={execute(e,t,i,o,s){let n,r=o;r||(r=Ah.random(8)),n=s?Vh.create({keySize:t+i,hasher:s}).compute(e,r):Vh.create({keySize:t+i}).compute(e,r);const a=Ah.create(n.words.slice(t),4*i);return n.sigBytes=4*t,Zh.create({key:n,iv:a,salt:r})}};class ip extends ep{static encrypt(e,t,i,o){const s=Object.assign(new $h,this.cfg,o),n=s.kdf.execute(i,e.keySize,e.ivSize,s.salt,s.hasher);s.iv=n.iv;const r=ep.encrypt.call(this,e,t,n.key,s);return r.mixIn(n),r}static decrypt(e,t,i,o){let s=t;const n=Object.assign(new $h,this.cfg,o);s=this._parse(s,n.format);const r=n.kdf.execute(i,e.keySize,e.ivSize,s.salt,n.hasher);n.iv=r.iv;return ep.decrypt.call(this,e,s,r.key,n)}}ip.cfg=Object.assign(ep.cfg,{kdf:tp});const op=e=>e<<8&4278255360|e>>>8&16711935,sp={stringify(e){const{words:t,sigBytes:i}=e,o=[];for(let e=0;e<i;e+=2){const i=t[e>>>2]>>>16-e%4*8&65535;o.push(String.fromCharCode(i))}return o.join("")},parse(e){const t=e.length,i=[];for(let o=0;o<t;o+=1)i[o>>>1]|=e.charCodeAt(o)<<16-o%2*16;return Ah.create(i,2*t)}},np=sp,rp={stringify(e){const{words:t,sigBytes:i}=e,o=[];for(let e=0;e<i;e+=2){const i=op(t[e>>>2]>>>16-e%4*8&65535);o.push(String.fromCharCode(i))}return o.join("")},parse(e){const t=e.length,i=[];for(let o=0;o<t;o+=1)i[o>>>1]|=op(e.charCodeAt(o)<<16-o%2*16);return Ah.create(i,2*t)}},ap={stringify(e,t=!0){const{words:i,sigBytes:o}=e,s=t?this._safeMap:this._map;e.clamp();const n=[];for(let e=0;e<o;e+=3){const t=(i[e>>>2]>>>24-e%4*8&255)<<16|(i[e+1>>>2]>>>24-(e+1)%4*8&255)<<8|i[e+2>>>2]>>>24-(e+2)%4*8&255;for(let i=0;i<4&&e+.75*i<o;i+=1)n.push(s.charAt(t>>>6*(3-i)&63))}const r=s.charAt(64);if(r)for(;n.length%4;)n.push(r);return n.join("")},parse(e,t=!0){let i=e.length;const o=t?this._safeMap:this._map;let s=this._reverseMap;if(!s){this._reverseMap=[],s=this._reverseMap;for(let e=0;e<o.length;e+=1)s[o.charCodeAt(e)]=e}const n=o.charAt(64);if(n){const t=e.indexOf(n);-1!==t&&(i=t)}return Nh(e,i,s)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safeMap:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"},lp=[];class dp extends Th{_doReset(){this._hash=new Ah([1732584193,4023233417,2562383102,271733878,3285377520])}_doProcessBlock(e,t){const i=this._hash.words;let o=i[0],s=i[1],n=i[2],r=i[3],a=i[4];for(let i=0;i<80;i+=1){if(i<16)lp[i]=0|e[t+i];else{const e=lp[i-3]^lp[i-8]^lp[i-14]^lp[i-16];lp[i]=e<<1|e>>>31}let l=(o<<5|o>>>27)+a+lp[i];l+=i<20?1518500249+(s&n|~s&r):i<40?1859775393+(s^n^r):i<60?(s&n|s&r|n&r)-1894007588:(s^n^r)-899497514,a=r,r=n,n=s<<30|s>>>2,s=o,o=l}i[0]=i[0]+o|0,i[1]=i[1]+s|0,i[2]=i[2]+n|0,i[3]=i[3]+r|0,i[4]=i[4]+a|0}_doFinalize(){const e=this._data,t=e.words,i=8*this._nDataBytes,o=8*e.sigBytes;return t[o>>>5]|=128<<24-o%32,t[14+(o+64>>>9<<4)]=Math.floor(i/4294967296),t[15+(o+64>>>9<<4)]=i,e.sigBytes=4*t.length,this._process(),this._hash}clone(){const e=super.clone.call(this);return e._hash=this._hash.clone(),e}}const cp=Th._createHelper(dp),hp=Th._createHmacHelper(dp),pp=[],up=[],mp=e=>{const t=Math.sqrt(e);for(let i=2;i<=t;i+=1)if(!(e%i))return!1;return!0},gp=e=>4294967296*(e-(0|e))|0;let fp=2,_p=0;for(;_p<64;)mp(fp)&&(_p<8&&(pp[_p]=gp(fp**.5)),up[_p]=gp(fp**(1/3)),_p+=1),fp+=1;const vp=[];class bp extends Th{_doReset(){this._hash=new Ah(pp.slice(0))}_doProcessBlock(e,t){const i=this._hash.words;let o=i[0],s=i[1],n=i[2],r=i[3],a=i[4],l=i[5],d=i[6],c=i[7];for(let i=0;i<64;i+=1){if(i<16)vp[i]=0|e[t+i];else{const e=vp[i-15],t=(e<<25|e>>>7)^(e<<14|e>>>18)^e>>>3,o=vp[i-2],s=(o<<15|o>>>17)^(o<<13|o>>>19)^o>>>10;vp[i]=t+vp[i-7]+s+vp[i-16]}const h=o&s^o&n^s&n,p=(o<<30|o>>>2)^(o<<19|o>>>13)^(o<<10|o>>>22),u=c+((a<<26|a>>>6)^(a<<21|a>>>11)^(a<<7|a>>>25))+(a&l^~a&d)+up[i]+vp[i];c=d,d=l,l=a,a=r+u|0,r=n,n=s,s=o,o=u+(p+h)|0}i[0]=i[0]+o|0,i[1]=i[1]+s|0,i[2]=i[2]+n|0,i[3]=i[3]+r|0,i[4]=i[4]+a|0,i[5]=i[5]+l|0,i[6]=i[6]+d|0,i[7]=i[7]+c|0}_doFinalize(){const e=this._data,t=e.words,i=8*this._nDataBytes,o=8*e.sigBytes;return t[o>>>5]|=128<<24-o%32,t[14+(o+64>>>9<<4)]=Math.floor(i/4294967296),t[15+(o+64>>>9<<4)]=i,e.sigBytes=4*t.length,this._process(),this._hash}clone(){const e=super.clone.call(this);return e._hash=this._hash.clone(),e}}const yp=Th._createHelper(bp),xp=Th._createHmacHelper(bp);class wp extends bp{_doReset(){this._hash=new Ah([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])}_doFinalize(){const e=super._doFinalize.call(this);return e.sigBytes-=4,e}}const $p=bp._createHelper(wp),Ap=bp._createHmacHelper(wp),kp=[new Oh(1116352408,3609767458),new Oh(1899447441,602891725),new Oh(3049323471,3964484399),new Oh(3921009573,2173295548),new Oh(961987163,4081628472),new Oh(1508970993,3053834265),new Oh(2453635748,2937671579),new Oh(2870763221,3664609560),new Oh(3624381080,2734883394),new Oh(310598401,1164996542),new Oh(607225278,1323610764),new Oh(1426881987,3590304994),new Oh(1925078388,4068182383),new Oh(2162078206,991336113),new Oh(2614888103,633803317),new Oh(3248222580,3479774868),new Oh(3835390401,2666613458),new Oh(4022224774,944711139),new Oh(264347078,2341262773),new Oh(604807628,2007800933),new Oh(770255983,1495990901),new Oh(1249150122,1856431235),new Oh(1555081692,3175218132),new Oh(1996064986,2198950837),new Oh(2554220882,3999719339),new Oh(2821834349,766784016),new Oh(2952996808,2566594879),new Oh(3210313671,3203337956),new Oh(3336571891,1034457026),new Oh(3584528711,2466948901),new Oh(113926993,3758326383),new Oh(338241895,168717936),new Oh(666307205,1188179964),new Oh(773529912,1546045734),new Oh(1294757372,1522805485),new Oh(1396182291,2643833823),new Oh(1695183700,2343527390),new Oh(1986661051,1014477480),new Oh(2177026350,1206759142),new Oh(2456956037,344077627),new Oh(2730485921,1290863460),new Oh(2820302411,3158454273),new Oh(3259730800,3505952657),new Oh(3345764771,106217008),new Oh(3516065817,3606008344),new Oh(3600352804,1432725776),new Oh(4094571909,1467031594),new Oh(275423344,851169720),new Oh(430227734,3100823752),new Oh(506948616,1363258195),new Oh(659060556,3750685593),new Oh(883997877,3785050280),new Oh(958139571,3318307427),new Oh(1322822218,3812723403),new Oh(1537002063,2003034995),new Oh(1747873779,3602036899),new Oh(1955562222,1575990012),new Oh(2024104815,1125592928),new Oh(2227730452,2716904306),new Oh(2361852424,442776044),new Oh(2428436474,593698344),new Oh(2756734187,3733110249),new Oh(3204031479,2999351573),new Oh(3329325298,3815920427),new Oh(3391569614,3928383900),new Oh(3515267271,566280711),new Oh(3940187606,3454069534),new Oh(4118630271,4000239992),new Oh(116418474,1914138554),new Oh(174292421,2731055270),new Oh(289380356,3203993006),new Oh(460393269,320620315),new Oh(685471733,587496836),new Oh(852142971,1086792851),new Oh(1017036298,365543100),new Oh(1126000580,2618297676),new Oh(1288033470,3409855158),new Oh(1501505948,4234509866),new Oh(1607167915,987167468),new Oh(1816402316,1246189591)],Ep=[];for(let e=0;e<80;e+=1)Ep[e]=new Oh;class Sp extends Th{constructor(){super(),this.blockSize=32}_doReset(){this._hash=new Rh([new Oh(1779033703,4089235720),new Oh(3144134277,2227873595),new Oh(1013904242,4271175723),new Oh(2773480762,1595750129),new Oh(1359893119,2917565137),new Oh(2600822924,725511199),new Oh(528734635,4215389547),new Oh(1541459225,327033209)])}_doProcessBlock(e,t){const i=this._hash.words,o=i[0],s=i[1],n=i[2],r=i[3],a=i[4],l=i[5],d=i[6],c=i[7],h=o.high;let p=o.low;const u=s.high;let m=s.low;const g=n.high;let f=n.low;const _=r.high;let v=r.low;const b=a.high;let y=a.low;const x=l.high;let w=l.low;const $=d.high;let A=d.low;const k=c.high;let E=c.low,S=h,C=p,T=u,P=m,I=g,O=f,R=_,N=v,L=b,M=y,U=x,H=w,D=$,z=A,B=k,F=E;for(let i=0;i<80;i+=1){let o,s;const n=Ep[i];if(i<16)n.high=0|e[t+2*i],s=n.high,n.low=0|e[t+2*i+1],o=n.low;else{const e=Ep[i-15],t=e.high,r=e.low,a=(t>>>1|r<<31)^(t>>>8|r<<24)^t>>>7,l=(r>>>1|t<<31)^(r>>>8|t<<24)^(r>>>7|t<<25),d=Ep[i-2],c=d.high,h=d.low,p=(c>>>19|h<<13)^(c<<3|h>>>29)^c>>>6,u=(h>>>19|c<<13)^(h<<3|c>>>29)^(h>>>6|c<<26),m=Ep[i-7],g=m.high,f=m.low,_=Ep[i-16],v=_.high,b=_.low;o=l+f,s=a+g+(o>>>0<l>>>0?1:0),o+=u,s=s+p+(o>>>0<u>>>0?1:0),o+=b,s=s+v+(o>>>0<b>>>0?1:0),n.high=s,n.low=o}const r=L&U^~L&D,a=M&H^~M&z,l=S&T^S&I^T&I,d=C&P^C&O^P&O,c=(S>>>28|C<<4)^(S<<30|C>>>2)^(S<<25|C>>>7),h=(C>>>28|S<<4)^(C<<30|S>>>2)^(C<<25|S>>>7),p=(L>>>14|M<<18)^(L>>>18|M<<14)^(L<<23|M>>>9),u=(M>>>14|L<<18)^(M>>>18|L<<14)^(M<<23|L>>>9),m=kp[i],g=m.high,f=m.low;let _=F+u,v=B+p+(_>>>0<F>>>0?1:0);_+=a,v=v+r+(_>>>0<a>>>0?1:0),_+=f,v=v+g+(_>>>0<f>>>0?1:0),_+=o,v=v+s+(_>>>0<o>>>0?1:0);const b=h+d;B=D,F=z,D=U,z=H,U=L,H=M,M=N+_|0,L=R+v+(M>>>0<N>>>0?1:0)|0,R=I,N=O,I=T,O=P,T=S,P=C,C=_+b|0,S=v+(c+l+(b>>>0<h>>>0?1:0))+(C>>>0<_>>>0?1:0)|0}o.low=p+C,p=o.low,o.high=h+S+(p>>>0<C>>>0?1:0),s.low=m+P,m=s.low,s.high=u+T+(m>>>0<P>>>0?1:0),n.low=f+O,f=n.low,n.high=g+I+(f>>>0<O>>>0?1:0),r.low=v+N,v=r.low,r.high=_+R+(v>>>0<N>>>0?1:0),a.low=y+M,y=a.low,a.high=b+L+(y>>>0<M>>>0?1:0),l.low=w+H,w=l.low,l.high=x+U+(w>>>0<H>>>0?1:0),d.low=A+z,A=d.low,d.high=$+D+(A>>>0<z>>>0?1:0),c.low=E+F,E=c.low,c.high=k+B+(E>>>0<F>>>0?1:0)}_doFinalize(){const e=this._data,t=e.words,i=8*this._nDataBytes,o=8*e.sigBytes;t[o>>>5]|=128<<24-o%32,t[30+(o+128>>>10<<5)]=Math.floor(i/4294967296),t[31+(o+128>>>10<<5)]=i,e.sigBytes=4*t.length,this._process();return this._hash.toX32()}clone(){const e=super.clone.call(this);return e._hash=this._hash.clone(),e}}const Cp=Th._createHelper(Sp),Tp=Th._createHmacHelper(Sp);class Pp extends Sp{_doReset(){this._hash=new Rh([new Oh(3418070365,3238371032),new Oh(1654270250,914150663),new Oh(2438529370,812702999),new Oh(355462360,4144912697),new Oh(1731405415,4290775857),new Oh(2394180231,1750603025),new Oh(3675008525,1694076839),new Oh(1203062813,3204075428)])}_doFinalize(){const e=super._doFinalize.call(this);return e.sigBytes-=16,e}}const Ip=Sp._createHelper(Pp),Op=Sp._createHmacHelper(Pp),Rp=[],Np=[],Lp=[];let Mp=1,Up=0;for(let e=0;e<24;e+=1){Rp[Mp+5*Up]=(e+1)*(e+2)/2%64;const t=(2*Mp+3*Up)%5;Mp=Up%5,Up=t}for(let e=0;e<5;e+=1)for(let t=0;t<5;t+=1)Np[e+5*t]=t+(2*e+3*t)%5*5;let Hp=1;for(let e=0;e<24;e+=1){let t=0,i=0;for(let e=0;e<7;e+=1){if(1&Hp){const o=(1<<e)-1;o<32?i^=1<<o:t^=1<<o-32}128&Hp?Hp=Hp<<1^113:Hp<<=1}Lp[e]=Oh.create(t,i)}const Dp=[];for(let e=0;e<25;e+=1)Dp[e]=Oh.create();class zp extends Th{constructor(e){super(Object.assign({outputLength:512},e))}_doReset(){this._state=[];const e=this._state;for(let t=0;t<25;t+=1)e[t]=new Oh;this.blockSize=(1600-2*this.cfg.outputLength)/32}_doProcessBlock(e,t){const i=this._state,o=this.blockSize/2;for(let s=0;s<o;s+=1){let o=e[t+2*s],n=e[t+2*s+1];o=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),n=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8);const r=i[s];r.high^=n,r.low^=o}for(let e=0;e<24;e+=1){for(let e=0;e<5;e+=1){let t=0,o=0;for(let s=0;s<5;s+=1){const n=i[e+5*s];t^=n.high,o^=n.low}const s=Dp[e];s.high=t,s.low=o}for(let e=0;e<5;e+=1){const t=Dp[(e+4)%5],o=Dp[(e+1)%5],s=o.high,n=o.low,r=t.high^(s<<1|n>>>31),a=t.low^(n<<1|s>>>31);for(let t=0;t<5;t+=1){const o=i[e+5*t];o.high^=r,o.low^=a}}for(let e=1;e<25;e+=1){let t,o;const s=i[e],n=s.high,r=s.low,a=Rp[e];a<32?(t=n<<a|r>>>32-a,o=r<<a|n>>>32-a):(t=r<<a-32|n>>>64-a,o=n<<a-32|r>>>64-a);const l=Dp[Np[e]];l.high=t,l.low=o}const t=Dp[0],o=i[0];t.high=o.high,t.low=o.low;for(let e=0;e<5;e+=1)for(let t=0;t<5;t+=1){const o=e+5*t,s=i[o],n=Dp[o],r=Dp[(e+1)%5+5*t],a=Dp[(e+2)%5+5*t];s.high=n.high^~r.high&a.high,s.low=n.low^~r.low&a.low}const s=i[0],n=Lp[e];s.high^=n.high,s.low^=n.low}}_doFinalize(){const e=this._data,t=e.words,i=8*e.sigBytes,o=32*this.blockSize;t[i>>>5]|=1<<24-i%32,t[(Math.ceil((i+1)/o)*o>>>5)-1]|=128,e.sigBytes=4*t.length,this._process();const s=this._state,n=this.cfg.outputLength/8,r=n/8,a=[];for(let e=0;e<r;e+=1){const t=s[e];let i=t.high,o=t.low;i=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),o=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),a.push(o),a.push(i)}return new Ah(a,n)}clone(){const e=super.clone.call(this);e._state=this._state.slice(0);const t=e._state;for(let e=0;e<25;e+=1)t[e]=t[e].clone();return e}}const Bp=Th._createHelper(zp),Fp=Th._createHmacHelper(zp),jp=Ah.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),Vp=Ah.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),qp=Ah.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),Wp=Ah.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),Gp=Ah.create([0,1518500249,1859775393,2400959708,2840853838]),Kp=Ah.create([1352829926,1548603684,1836072691,2053994217,0]),Xp=(e,t,i)=>e^t^i,Yp=(e,t,i)=>e&t|~e&i,Jp=(e,t,i)=>(e|~t)^i,Zp=(e,t,i)=>e&i|t&~i,Qp=(e,t,i)=>e^(t|~i),eu=(e,t)=>e<<t|e>>>32-t;class tu extends Th{_doReset(){this._hash=Ah.create([1732584193,4023233417,2562383102,271733878,3285377520])}_doProcessBlock(e,t){const i=e;for(let e=0;e<16;e+=1){const o=t+e,s=i[o];i[o]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8)}const o=this._hash.words,s=Gp.words,n=Kp.words,r=jp.words,a=Vp.words,l=qp.words,d=Wp.words;let c,h=o[0],p=o[1],u=o[2],m=o[3],g=o[4],f=o[0],_=o[1],v=o[2],b=o[3],y=o[4];for(let e=0;e<80;e+=1)c=h+i[t+r[e]]|0,c+=e<16?Xp(p,u,m)+s[0]:e<32?Yp(p,u,m)+s[1]:e<48?Jp(p,u,m)+s[2]:e<64?Zp(p,u,m)+s[3]:Qp(p,u,m)+s[4],c|=0,c=eu(c,l[e]),c=c+g|0,h=g,g=m,m=eu(u,10),u=p,p=c,c=f+i[t+a[e]]|0,c+=e<16?Qp(_,v,b)+n[0]:e<32?Zp(_,v,b)+n[1]:e<48?Jp(_,v,b)+n[2]:e<64?Yp(_,v,b)+n[3]:Xp(_,v,b)+n[4],c|=0,c=eu(c,d[e]),c=c+y|0,f=y,y=b,b=eu(v,10),v=_,_=c;c=o[1]+u+b|0,o[1]=o[2]+m+y|0,o[2]=o[3]+g+f|0,o[3]=o[4]+h+_|0,o[4]=o[0]+p+v|0,o[0]=c}_doFinalize(){const e=this._data,t=e.words,i=8*this._nDataBytes,o=8*e.sigBytes;t[o>>>5]|=128<<24-o%32,t[14+(o+64>>>9<<4)]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),e.sigBytes=4*(t.length+1),this._process();const s=this._hash,n=s.words;for(let e=0;e<5;e+=1){const t=n[e];n[e]=16711935&(t<<8|t>>>24)|4278255360&(t<<24|t>>>8)}return s}clone(){const e=super.clone.call(this);return e._hash=this._hash.clone(),e}}const iu=Th._createHelper(tu),ou=Th._createHmacHelper(tu);class su extends $h{constructor(e){super(),this.cfg=Object.assign(new $h,{keySize:4,hasher:bp,iterations:25e4},e)}compute(e,t){const{cfg:i}=this,o=Ph.create(i.hasher,e),s=Ah.create(),n=Ah.create([1]),r=s.words,a=n.words,{keySize:l,iterations:d}=i;for(;r.length<l;){const e=o.update(t).finalize(n);o.reset();const i=e.words,r=i.length;let l=e;for(let e=1;e<d;e+=1){l=o.finalize(l),o.reset();const e=l.words;for(let t=0;t<r;t+=1)i[t]^=e[t]}s.concat(e),a[0]+=1}return s.sigBytes=4*l,s}}const nu=[],ru=[],au=[],lu=[],du=[],cu=[],hu=[],pu=[],uu=[],mu=[],gu=[];for(let e=0;e<256;e+=1)gu[e]=e<128?e<<1:e<<1^283;let fu=0,_u=0;for(let e=0;e<256;e+=1){let e=_u^_u<<1^_u<<2^_u<<3^_u<<4;e=e>>>8^255&e^99,nu[fu]=e,ru[e]=fu;const t=gu[fu],i=gu[t],o=gu[i];let s=257*gu[e]^16843008*e;au[fu]=s<<24|s>>>8,lu[fu]=s<<16|s>>>16,du[fu]=s<<8|s>>>24,cu[fu]=s,s=16843009*o^65537*i^257*t^16843008*fu,hu[e]=s<<24|s>>>8,pu[e]=s<<16|s>>>16,uu[e]=s<<8|s>>>24,mu[e]=s,fu?(fu=t^gu[gu[gu[o^t]]],_u^=gu[gu[_u]]):(_u=1,fu=_u)}const vu=[0,1,2,4,8,16,32,64,128,27,54];class bu extends Jh{_doReset(){let e;if(this._nRounds&&this._keyPriorReset===this._key)return;this._keyPriorReset=this._key;const t=this._keyPriorReset,i=t.words,o=t.sigBytes/4;this._nRounds=o+6;const s=4*(this._nRounds+1);this._keySchedule=[];const n=this._keySchedule;for(let t=0;t<s;t+=1)t<o?n[t]=i[t]:(e=n[t-1],t%o?o>6&&t%o==4&&(e=nu[e>>>24]<<24|nu[e>>>16&255]<<16|nu[e>>>8&255]<<8|nu[255&e]):(e=e<<8|e>>>24,e=nu[e>>>24]<<24|nu[e>>>16&255]<<16|nu[e>>>8&255]<<8|nu[255&e],e^=vu[t/o|0]<<24),n[t]=n[t-o]^e);this._invKeySchedule=[];const r=this._invKeySchedule;for(let t=0;t<s;t+=1){const i=s-t;e=t%4?n[i]:n[i-4],r[t]=t<4||i<=4?e:hu[nu[e>>>24]]^pu[nu[e>>>16&255]]^uu[nu[e>>>8&255]]^mu[nu[255&e]]}}encryptBlock(e,t){this._doCryptBlock(e,t,this._keySchedule,au,lu,du,cu,nu)}decryptBlock(e,t){const i=e;let o=i[t+1];i[t+1]=i[t+3],i[t+3]=o,this._doCryptBlock(i,t,this._invKeySchedule,hu,pu,uu,mu,ru),o=i[t+1],i[t+1]=i[t+3],i[t+3]=o}_doCryptBlock(e,t,i,o,s,n,r,a){const l=e,d=this._nRounds;let c=l[t]^i[0],h=l[t+1]^i[1],p=l[t+2]^i[2],u=l[t+3]^i[3],m=4;for(let e=1;e<d;e+=1){const e=o[c>>>24]^s[h>>>16&255]^n[p>>>8&255]^r[255&u]^i[m];m+=1;const t=o[h>>>24]^s[p>>>16&255]^n[u>>>8&255]^r[255&c]^i[m];m+=1;const a=o[p>>>24]^s[u>>>16&255]^n[c>>>8&255]^r[255&h]^i[m];m+=1;const l=o[u>>>24]^s[c>>>16&255]^n[h>>>8&255]^r[255&p]^i[m];m+=1,c=e,h=t,p=a,u=l}const g=(a[c>>>24]<<24|a[h>>>16&255]<<16|a[p>>>8&255]<<8|a[255&u])^i[m];m+=1;const f=(a[h>>>24]<<24|a[p>>>16&255]<<16|a[u>>>8&255]<<8|a[255&c])^i[m];m+=1;const _=(a[p>>>24]<<24|a[u>>>16&255]<<16|a[c>>>8&255]<<8|a[255&h])^i[m];m+=1;const v=(a[u>>>24]<<24|a[c>>>16&255]<<16|a[h>>>8&255]<<8|a[255&p])^i[m];m+=1,l[t]=g,l[t+1]=f,l[t+2]=_,l[t+3]=v}}bu.keySize=8;const yu=Jh._createHelper(bu),xu=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],wu=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],$u=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],Au=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],ku=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679];function Eu(e,t){const i=(this._lBlock>>>e^this._rBlock)&t;this._rBlock^=i,this._lBlock^=i<<e}function Su(e,t){const i=(this._rBlock>>>e^this._lBlock)&t;this._lBlock^=i,this._rBlock^=i<<e}class Cu extends Jh{constructor(e,t,i){super(e,t,i),this.blockSize=2}_doReset(){const e=this._key.words,t=[];for(let i=0;i<56;i+=1){const o=xu[i]-1;t[i]=e[o>>>5]>>>31-o%32&1}this._subKeys=[];const i=this._subKeys;for(let e=0;e<16;e+=1){i[e]=[];const o=i[e],s=$u[e];for(let e=0;e<24;e+=1)o[e/6|0]|=t[(wu[e]-1+s)%28]<<31-e%6,o[4+(e/6|0)]|=t[28+(wu[e+24]-1+s)%28]<<31-e%6;o[0]=o[0]<<1|o[0]>>>31;for(let e=1;e<7;e+=1)o[e]>>>=4*(e-1)+3;o[7]=o[7]<<5|o[7]>>>27}this._invSubKeys=[];const o=this._invSubKeys;for(let e=0;e<16;e+=1)o[e]=i[15-e]}encryptBlock(e,t){this._doCryptBlock(e,t,this._subKeys)}decryptBlock(e,t){this._doCryptBlock(e,t,this._invSubKeys)}_doCryptBlock(e,t,i){const o=e;this._lBlock=e[t],this._rBlock=e[t+1],Eu.call(this,4,252645135),Eu.call(this,16,65535),Su.call(this,2,858993459),Su.call(this,8,16711935),Eu.call(this,1,1431655765);for(let e=0;e<16;e+=1){const t=i[e],o=this._lBlock,s=this._rBlock;let n=0;for(let e=0;e<8;e+=1)n|=Au[e][((s^t[e])&ku[e])>>>0];this._lBlock=s,this._rBlock=o^n}const s=this._lBlock;this._lBlock=this._rBlock,this._rBlock=s,Eu.call(this,1,1431655765),Su.call(this,8,16711935),Su.call(this,2,858993459),Eu.call(this,16,65535),Eu.call(this,4,252645135),o[t]=this._lBlock,o[t+1]=this._rBlock}}Cu.keySize=2,Cu.ivSize=2;const Tu=Jh._createHelper(Cu);class Pu extends Jh{_doReset(){const e=this._key.words;if(2!==e.length&&4!==e.length&&e.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");const t=e.slice(0,2),i=e.length<4?e.slice(0,2):e.slice(2,4),o=e.length<6?e.slice(0,2):e.slice(4,6);this._des1=Cu.createEncryptor(Ah.create(t)),this._des2=Cu.createEncryptor(Ah.create(i)),this._des3=Cu.createEncryptor(Ah.create(o))}encryptBlock(e,t){this._des1.encryptBlock(e,t),this._des2.decryptBlock(e,t),this._des3.encryptBlock(e,t)}decryptBlock(e,t){this._des3.decryptBlock(e,t),this._des2.encryptBlock(e,t),this._des1.decryptBlock(e,t)}}Pu.keySize=6,Pu.ivSize=2;const Iu=Jh._createHelper(Pu),Ou=[],Ru=[],Nu=[];function Lu(){const e=this._X,t=this._C;for(let e=0;e<8;e+=1)Ru[e]=t[e];t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0<Ru[0]>>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0<Ru[1]>>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0<Ru[2]>>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0<Ru[3]>>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0<Ru[4]>>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0<Ru[5]>>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0<Ru[6]>>>0?1:0)|0,this._b=t[7]>>>0<Ru[7]>>>0?1:0;for(let i=0;i<8;i+=1){const o=e[i]+t[i],s=65535&o,n=o>>>16,r=((s*s>>>17)+s*n>>>15)+n*n,a=((4294901760&o)*o|0)+((65535&o)*o|0);Nu[i]=r^a}e[0]=Nu[0]+(Nu[7]<<16|Nu[7]>>>16)+(Nu[6]<<16|Nu[6]>>>16)|0,e[1]=Nu[1]+(Nu[0]<<8|Nu[0]>>>24)+Nu[7]|0,e[2]=Nu[2]+(Nu[1]<<16|Nu[1]>>>16)+(Nu[0]<<16|Nu[0]>>>16)|0,e[3]=Nu[3]+(Nu[2]<<8|Nu[2]>>>24)+Nu[1]|0,e[4]=Nu[4]+(Nu[3]<<16|Nu[3]>>>16)+(Nu[2]<<16|Nu[2]>>>16)|0,e[5]=Nu[5]+(Nu[4]<<8|Nu[4]>>>24)+Nu[3]|0,e[6]=Nu[6]+(Nu[5]<<16|Nu[5]>>>16)+(Nu[4]<<16|Nu[4]>>>16)|0,e[7]=Nu[7]+(Nu[6]<<8|Nu[6]>>>24)+Nu[5]|0}class Mu extends Wh{constructor(...e){super(...e),this.blockSize=4,this.ivSize=2}_doReset(){const e=this._key.words,{iv:t}=this.cfg;for(let t=0;t<4;t+=1)e[t]=16711935&(e[t]<<8|e[t]>>>24)|4278255360&(e[t]<<24|e[t]>>>8);this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16];const i=this._X;this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];const o=this._C;this._b=0;for(let e=0;e<4;e+=1)Lu.call(this);for(let e=0;e<8;e+=1)o[e]^=i[e+4&7];if(t){const e=t.words,i=e[0],s=e[1],n=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),r=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),a=n>>>16|4294901760&r,l=r<<16|65535&n;o[0]^=n,o[1]^=a,o[2]^=r,o[3]^=l,o[4]^=n,o[5]^=a,o[6]^=r,o[7]^=l;for(let e=0;e<4;e+=1)Lu.call(this)}}_doProcessBlock(e,t){const i=e,o=this._X;Lu.call(this),Ou[0]=o[0]^o[5]>>>16^o[3]<<16,Ou[1]=o[2]^o[7]>>>16^o[5]<<16,Ou[2]=o[4]^o[1]>>>16^o[7]<<16,Ou[3]=o[6]^o[3]>>>16^o[1]<<16;for(let e=0;e<4;e+=1)Ou[e]=16711935&(Ou[e]<<8|Ou[e]>>>24)|4278255360&(Ou[e]<<24|Ou[e]>>>8),i[t+e]^=Ou[e]}}const Uu=Wh._createHelper(Mu),Hu=[],Du=[],zu=[];function Bu(){const e=this._X,t=this._C;for(let e=0;e<8;e+=1)Du[e]=t[e];t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0<Du[0]>>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0<Du[1]>>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0<Du[2]>>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0<Du[3]>>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0<Du[4]>>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0<Du[5]>>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0<Du[6]>>>0?1:0)|0,this._b=t[7]>>>0<Du[7]>>>0?1:0;for(let i=0;i<8;i+=1){const o=e[i]+t[i],s=65535&o,n=o>>>16,r=((s*s>>>17)+s*n>>>15)+n*n,a=((4294901760&o)*o|0)+((65535&o)*o|0);zu[i]=r^a}e[0]=zu[0]+(zu[7]<<16|zu[7]>>>16)+(zu[6]<<16|zu[6]>>>16)|0,e[1]=zu[1]+(zu[0]<<8|zu[0]>>>24)+zu[7]|0,e[2]=zu[2]+(zu[1]<<16|zu[1]>>>16)+(zu[0]<<16|zu[0]>>>16)|0,e[3]=zu[3]+(zu[2]<<8|zu[2]>>>24)+zu[1]|0,e[4]=zu[4]+(zu[3]<<16|zu[3]>>>16)+(zu[2]<<16|zu[2]>>>16)|0,e[5]=zu[5]+(zu[4]<<8|zu[4]>>>24)+zu[3]|0,e[6]=zu[6]+(zu[5]<<16|zu[5]>>>16)+(zu[4]<<16|zu[4]>>>16)|0,e[7]=zu[7]+(zu[6]<<8|zu[6]>>>24)+zu[5]|0}class Fu extends Wh{constructor(...e){super(...e),this.blockSize=4,this.ivSize=2}_doReset(){const e=this._key.words,{iv:t}=this.cfg;this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16];const i=this._X;this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];const o=this._C;this._b=0;for(let e=0;e<4;e+=1)Bu.call(this);for(let e=0;e<8;e+=1)o[e]^=i[e+4&7];if(t){const e=t.words,i=e[0],s=e[1],n=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),r=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),a=n>>>16|4294901760&r,l=r<<16|65535&n;o[0]^=n,o[1]^=a,o[2]^=r,o[3]^=l,o[4]^=n,o[5]^=a,o[6]^=r,o[7]^=l;for(let e=0;e<4;e+=1)Bu.call(this)}}_doProcessBlock(e,t){const i=e,o=this._X;Bu.call(this),Hu[0]=o[0]^o[5]>>>16^o[3]<<16,Hu[1]=o[2]^o[7]>>>16^o[5]<<16,Hu[2]=o[4]^o[1]>>>16^o[7]<<16,Hu[3]=o[6]^o[3]>>>16^o[1]<<16;for(let e=0;e<4;e+=1)Hu[e]=16711935&(Hu[e]<<8|Hu[e]>>>24)|4278255360&(Hu[e]<<24|Hu[e]>>>8),i[t+e]^=Hu[e]}}const ju=Wh._createHelper(Fu);function Vu(){const e=this._S;let t=this._i,i=this._j,o=0;for(let s=0;s<4;s+=1){t=(t+1)%256,i=(i+e[t])%256;const n=e[t];e[t]=e[i],e[i]=n,o|=e[(e[t]+e[i])%256]<<24-8*s}return this._i=t,this._j=i,o}class qu extends Wh{_doReset(){const e=this._key,t=e.words,i=e.sigBytes;this._S=[];const o=this._S;for(let e=0;e<256;e+=1)o[e]=e;for(let e=0,s=0;e<256;e+=1){const n=e%i,r=t[n>>>2]>>>24-n%4*8&255;s=(s+o[e]+r)%256;const a=o[e];o[e]=o[s],o[s]=a}this._j=0,this._i=this._j}_doProcessBlock(e,t){e[t]^=Vu.call(this)}}qu.keySize=8,qu.ivSize=0;const Wu=Wh._createHelper(qu);class Gu extends qu{constructor(...e){super(...e),Object.assign(this.cfg,{drop:192})}_doReset(){super._doReset.call(this);for(let e=this.cfg.drop;e>0;e-=1)Vu.call(this)}}const Ku=Wh._createHelper(Gu),Xu=16,Yu=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],Ju=[[3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946],[1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055],[3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504],[976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462]],Zu={pbox:[],sbox:[]};function Qu(e,t){const i=t>>24&255,o=t>>16&255,s=t>>8&255,n=255&t;let r=e.sbox[0][i]+e.sbox[1][o];return r^=e.sbox[2][s],r+=e.sbox[3][n],r}function em(e,t,i){let o,s=t,n=i;for(let t=0;t<Xu;++t)s^=e.pbox[t],n=Qu(e,s)^n,o=s,s=n,n=o;return o=s,s=n,n=o,n^=e.pbox[Xu],s^=e.pbox[Xu+1],{left:s,right:n}}class tm extends Jh{constructor(e,t,i){super(e,t,i),this.blockSize=2}_doReset(){if(this._keyPriorReset===this._key)return;const e=this._keyPriorReset=this._key,t=e.words,i=e.sigBytes/4;!function(e,t,i){for(let t=0;t<4;t++){e.sbox[t]=[];for(let i=0;i<256;i++)e.sbox[t][i]=Ju[t][i]}let o=0;for(let s=0;s<Xu+2;s++)e.pbox[s]=Yu[s]^t[o],o++,o>=i&&(o=0);let s=0,n=0,r=0;for(let t=0;t<Xu+2;t+=2)r=em(e,s,n),s=r.left,n=r.right,e.pbox[t]=s,e.pbox[t+1]=n;for(let t=0;t<4;t++)for(let i=0;i<256;i+=2)r=em(e,s,n),s=r.left,n=r.right,e.sbox[t][i]=s,e.sbox[t][i+1]=n}(Zu,t,i)}encryptBlock(e,t){const i=em(Zu,e[t],e[t+1]);e[t]=i.left,e[t+1]=i.right}decryptBlock(e,t){const i=function(e,t,i){let o,s=t,n=i;for(let t=Xu+1;t>1;--t)s^=e.pbox[t],n=Qu(e,s)^n,o=s,s=n,n=o;return o=s,s=n,n=o,n^=e.pbox[1],s^=e.pbox[0],{left:s,right:n}}(Zu,e[t],e[t+1]);e[t]=i.left,e[t+1]=i.right}}tm.keySize=4,tm.ivSize=2;const im=Jh._createHelper(tm);function om(e,t,i,o){const s=e;let n;const r=this._iv;r?(n=r.slice(0),this._iv=void 0):n=this._prevBlock,o.encryptBlock(n,0);for(let e=0;e<i;e+=1)s[t+e]^=n[e]}class sm extends Gh{}sm.Encryptor=class extends sm{processBlock(e,t){const i=this._cipher,{blockSize:o}=i;om.call(this,e,t,o,i),this._prevBlock=e.slice(t,t+o)}},sm.Decryptor=class extends sm{processBlock(e,t){const i=this._cipher,{blockSize:o}=i,s=e.slice(t,t+o);om.call(this,e,t,o,i),this._prevBlock=s}};class nm extends Gh{}nm.Encryptor=class extends nm{processBlock(e,t){const i=e,o=this._cipher,{blockSize:s}=o,n=this._iv;let r=this._counter;n&&(this._counter=n.slice(0),r=this._counter,this._iv=void 0);const a=r.slice(0);o.encryptBlock(a,0),r[s-1]=r[s-1]+1|0;for(let e=0;e<s;e+=1)i[t+e]^=a[e]}},nm.Decryptor=nm.Encryptor;const rm=e=>{let t=e;if(255&~(e>>24))t+=1<<24;else{let i=e>>16&255,o=e>>8&255,s=255&e;255===i?(i=0,255===o?(o=0,255===s?s=0:s+=1):o+=1):i+=1,t=0,t+=i<<16,t+=o<<8,t+=s}return t};
/** @preserve
 * Counter block mode compatible with  Dr Brian Gladman fileenc.c
 * derived from CryptoJS.mode.CTR
 * Jan Hruby jhruby.web@gmail.com
 */
class am extends Gh{}am.Encryptor=class extends am{processBlock(e,t){const i=e,o=this._cipher,{blockSize:s}=o,n=this._iv;let r=this._counter;n&&(this._counter=n.slice(0),r=this._counter,this._iv=void 0),(e=>{const t=e;t[0]=rm(t[0]),0===t[0]&&(t[1]=rm(t[1]))})(r);const a=r.slice(0);o.encryptBlock(a,0);for(let e=0;e<s;e+=1)i[t+e]^=a[e]}},am.Decryptor=am.Encryptor;class lm extends Gh{}lm.Encryptor=class extends lm{processBlock(e,t){this._cipher.encryptBlock(e,t)}},lm.Decryptor=class extends lm{processBlock(e,t){this._cipher.decryptBlock(e,t)}};class dm extends Gh{}dm.Encryptor=class extends dm{processBlock(e,t){const i=e,o=this._cipher,{blockSize:s}=o,n=this._iv;let r=this._keystream;n&&(this._keystream=n.slice(0),r=this._keystream,this._iv=void 0),o.encryptBlock(r,0);for(let e=0;e<s;e+=1)i[t+e]^=r[e]}},dm.Decryptor=dm.Encryptor;const cm={pad(e,t){const i=e,o=i.sigBytes,s=4*t,n=s-o%s,r=o+n-1;i.clamp(),i.words[r>>>2]|=n<<24-r%4*8,i.sigBytes+=n},unpad(e){const t=e,i=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=i}},hm={pad(e,t){const i=4*t,o=i-e.sigBytes%i;e.concat(Ah.random(o-1)).concat(Ah.create([o<<24],1))},unpad(e){const t=e,i=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=i}},pm={pad(e,t){const i=e,o=4*t;i.clamp(),i.sigBytes+=o-(e.sigBytes%o||o)},unpad(e){const t=e,i=t.words;for(let e=t.sigBytes-1;e>=0;e-=1)if(i[e>>>2]>>>24-e%4*8&255){t.sigBytes=e+1;break}}},um={pad(e,t){e.concat(Ah.create([2147483648],1)),pm.pad(e,t)},unpad(e){const t=e;pm.unpad(t),t.sigBytes-=1}},mm={pad(){},unpad(){}},gm={stringify:e=>e.ciphertext.toString(kh),parse(e){const t=kh.parse(e);return Zh.create({ciphertext:t})}};var fm={lib:{Base:$h,WordArray:Ah,BufferedBlockAlgorithm:Ch,Hasher:Th,Cipher:qh,StreamCipher:Wh,BlockCipherMode:Gh,BlockCipher:Jh,CipherParams:Zh,SerializableCipher:ep,PasswordBasedCipher:ip},x64:{Word:Oh,WordArray:Rh},enc:{Hex:kh,Latin1:Eh,Utf8:Sh,Utf16:np,Utf16BE:sp,Utf16LE:rp,Base64:Lh,Base64url:ap},algo:{HMAC:Ph,MD5:Bh,SHA1:dp,SHA224:wp,SHA256:bp,SHA384:Pp,SHA512:Sp,SHA3:zp,RIPEMD160:tu,PBKDF2:su,EvpKDF:Vh,AES:bu,DES:Cu,TripleDES:Pu,Rabbit:Mu,RabbitLegacy:Fu,RC4:qu,RC4Drop:Gu,Blowfish:tm},mode:{CBC:Xh,CFB:sm,CTR:nm,CTRGladman:am,ECB:lm,OFB:dm},pad:{Pkcs7:Yh,AnsiX923:cm,Iso10126:hm,Iso97971:um,NoPadding:mm,ZeroPadding:pm},format:{OpenSSL:Qh,Hex:gm},kdf:{OpenSSL:tp},MD5:Fh,HmacMD5:jh,SHA1:cp,HmacSHA1:hp,SHA224:$p,HmacSHA224:Ap,SHA256:yp,HmacSHA256:xp,SHA384:Ip,HmacSHA384:Op,SHA512:Cp,HmacSHA512:Tp,SHA3:Bp,HmacSHA3:Fp,RIPEMD160:iu,HmacRIPEMD160:ou,PBKDF2:(e,t,i)=>su.create(i).compute(e,t),EvpKDF:(e,t,i)=>Vh.create(i).compute(e,t),AES:yu,DES:Tu,TripleDES:Iu,Rabbit:Uu,RabbitLegacy:ju,RC4:Wu,RC4Drop:Ku,Blowfish:im};function _m(e){let t=e.replace(/[-_\s]/g,".");return t=t.replace(/(\.?)(dev|a|b|c|rc|post)(?=\d+)/g,"$1.$2."),t=t.replace(/\.+/g,"."),t}const vm=e=>["dev","a","b","c","rc",void 0,"post"].indexOf({beta:"b",alpha:"a"}[e]||e);function bm(e,t){const i=_m(e),o=_m(t),[s,n]=i.split("+"),[r,a]=o.split("+"),l=s.split("."),d=r.split(".");for(let e=0;e<Math.max(l.length,d.length);e++){const t=l[e],i=d[e];if("*"===t||"*"===i)return 0;if(/^\d+$/.test(t)&&/^\d+$/.test(i)){const e=parseInt(t,10)-parseInt(i,10);if(0!==e)return e<0?-1:1}else{if(!/^\d+$/.test(t)&&/^\d+$/.test(i))return-1;if(/^\d+$/.test(t)&&!/^\d+$/.test(i))return 1;{const e=vm(t),o=vm(i);if(e!==o)return e<o?-1:1}}}return function(e,t){if(e===t)return 0;if(void 0===e&&void 0!==t)return-1;if(void 0!==e&&void 0===t)return 1;const i=e.split("."),o=t.split(".");for(let e=0;e<Math.max(i.length,o.length);e++){const t=i[e]||"",s=o[e]||"";if(/^\d+$/.test(t)&&/^\d+$/.test(s)){const e=parseInt(t,10)-parseInt(s,10);if(0!==e)return e<0?-1:1}else{if(/^\d+$/.test(t)&&!/^\d+$/.test(s))return 1;if(!/^\d+$/.test(t)&&/^\d+$/.test(s))return-1;{const e=t.localeCompare(s,void 0,{sensitivity:"base"});if(0!==e)return e<0?-1:1}}}return 0}(n,a)}const ym=e=>_m(e).split(".").slice(0,2).join(".");class xm{constructor(e,t,i,o="API"){if(this._apiVersionMajor="4",this._apiVersion="v4.20190615",this._hashType="sha256",null==i&&(i="https://api.backend.ai"),this._endpoint=i,this._endpointHost=i.replace(/^[^:]+:\/\//,""),"API"===o){if(null==e)throw new Error("You must set accessKey! (either as argument or environment variable)");if(null==t)throw new Error("You must set secretKey! (either as argument or environment variable)");this._accessKey=e,this._secretKey=t,this._userId="",this._password=""}else{if(null==e)throw new Error("You must set user id! (either as argument or environment variable)");if(null==t)throw new Error("You must set password! (either as argument or environment variable)");this._accessKey="",this._secretKey="",this._userId=e,this._password=t}this._proxyURL=null,this._proxyToken=null,this._connectionMode=o}get accessKey(){return this._accessKey}get secretKey(){return this._secretKey}get userId(){return this._userId}get password(){return this._password}get endpoint(){return this._endpoint}get proxyURL(){return this._proxyURL}get proxyToken(){return this._proxyToken}get endpointHost(){return this._endpointHost}get apiVersion(){return this._apiVersion}get apiVersionMajor(){return this._apiVersionMajor}get hashType(){return this._hashType}get connectionMode(){return this._connectionMode}static createFromEnv(){return new this(process.env.BACKEND_ACCESS_KEY,process.env.BACKEND_SECRET_KEY,process.env.BACKEND_ENDPOINT)}}class wm{constructor(e,t){this.ready=!1,this.code=null,this.sessionId=null,this.kernelType=null,this.clientVersion="22.09.0",this.agentSignature=t,this._config=void 0===e?xm.createFromEnv():e,this._managerVersion=null,this._apiVersion=null,this._apiVersionMajor=null,this.is_admin=!1,this.is_superadmin=!1,this.kernelPrefix="/kernel",this.resourcePreset=new $m(this),this.vfolder=new Am(this),this.agent=new km(this),this.agentSummary=new Em(this),this.keypair=new Cm(this),this.image=new Pm(this),this.utils=new Ym(this),this.computeSession=new Im(this),this.sessionTemplate=new Om(this),this.modelService=new Rm(this),this.resourcePolicy=new Tm(this),this.user=new Hm(this),this.group=new Lm(this),this.domain=new Mm(this),this.resources=new Nm(this),this.storageproxy=new Sm(this),this.maintenance=new Um(this),this.scalingGroup=new Dm(this),this.registry=new zm(this),this.setting=new Bm(this),this.userConfig=new jm(this),this.service=new Fm(this),this.domain=new Mm(this),this.enterprise=new Vm(this),this.cloud=new qm(this),this.eduApp=new Xm(this),this.pipeline=new Wm(this),this.pipelineJob=new Gm(this),this.pipelineTaskInstance=new Km(this),this._features={},this.abortController=new AbortController,this.abortSignal=this.abortController.signal,this.requestTimeout=5e3,localStorage.getItem("backendaiwebui.sessionid")?this._loginSessionId=localStorage.getItem("backendaiwebui.sessionid"):this._loginSessionId=""}get managerVersion(){return this._managerVersion}get apiVersion(){return this._apiVersion}async _wrapWithPromise(e,t=!1,i=null,o=0,s=0,n={}){let r,a,l,d,c=wm.ERR_REQUEST,h="",p="";try{if("GET"===e.method&&(e.body=void 0),"SESSION"===this._config.connectionMode&&(e.credentials="include",e.mode="cors"),null!==i)e.signal=i;else{let t=new AbortController;e.signal=t.signal,d=setTimeout((()=>{c=wm.ERR_TIMEOUT,t.abort()}),0===o?this.requestTimeout:o)}a=await fetch(e.uri,e),void 0!==d&&clearTimeout(d);let s=a.headers.get("X-BackendAI-SessionID");s&&(this._loginSessionId=s),c=wm.ERR_RESPONSE;let n=a.headers.get("Content-Type");if(t||null!==n&&204!==a.status?t||!(null==n?void 0:n.startsWith("application/json"))&&!(null==n?void 0:n.startsWith("application/problem+json"))?l=!t&&(null==n?void 0:n.startsWith("text/"))?await a.text():await a.blob():(l=await a.json(),c=l.type,h=l.title):l=await a.blob(),c=wm.ERR_SERVER,!a.ok)throw l}catch(d){if(s>0)return await new Promise((e=>setTimeout(e,2e3))),this._wrapWithPromise(e,t,i,o,s-1,n);let u;switch(u="object"==typeof d&&(null==d?void 0:d.constructor)===Object&&"title"in d?d.title:d,void 0===a&&(a={}),c){case wm.ERR_REQUEST:c="https://api.backend.ai/probs/client-request-error",navigator.onLine?(h=u,r=`sending request has failed: ${u}`,p=u):(h="Network disconnected.",r="sending request has failed: Network disconnected",p="Network disconnected");break;case wm.ERR_RESPONSE:c="https://api.backend.ai/probs/client-response-error",h=u,r=`reading response has failed: ${u}`,p=u;break;case wm.ERR_SERVER:c="https://api.backend.ai/probs/server-error",h=`${a.status} ${a.statusText} - ${l.title}`,r="server responded failure: ",l.msg?(r+=`${a.status} ${a.statusText} - ${l.msg}`,p=l.msg):(r+=`${a.status} ${a.statusText} - ${l.title}`,p=l.title);break;case wm.ERR_ABORT:c="https://api.backend.ai/probs/request-abort-error",h="Request aborted",r="Request aborted by user",p=r,a.status=408,a.statusText="Request aborted by user";break;case wm.ERR_TIMEOUT:c="https://api.backend.ai/probs/request-timeout-error",h="Request timeout",r="No response returned within timeout",p=r,a.status=408,a.statusText="Timeout exceeded";break;default:void 0===a.status&&(a.status=500,a.statusText="Server error"),""===c&&(c=wm.ERR_UNKNOWN),""===h&&(h=l.title),r=`server responded failure: ${a.status} ${a.statusText} - ${l.title}`,""!==l.title&&(p=l.title)}throw{isError:!0,timestamp:(new Date).toUTCString(),type:c,requestUrl:e.uri,requestMethod:e.method,requestParameters:e.body,statusCode:a.status,statusText:a.statusText,title:h,message:r,description:p}}let u=JSON.parse(localStorage.getItem("backendaiwebui.logs"));u&&u.length>2e3&&(u=u.slice(1,2e3));let m=[];void 0===a&&(a={status:"No status",statusText:"No response given."});let g={isError:!1,timestamp:(new Date).toUTCString(),type:"",requestUrl:e.uri,requestMethod:e.method,requestParameters:e.body,statusCode:a.status,statusText:a.statusText,title:l.title,message:""};"log"in n&&(g.requestParameters=n.log),m.push(g),u&&(m=m.concat(u));try{localStorage.setItem("backendaiwebui.logs",JSON.stringify(m))}catch(e){console.warn("Local storage is full. Clearing part of the logs.");let t=JSON.parse(localStorage.getItem("backendaiwebui.logs")||"[]");t=t.slice(0,Math.round(2*t.length/3)),localStorage.setItem("backendaiwebui.logs",JSON.stringify(t))}return l}getServerVersion(e=null){let t=this.newPublicRequest("GET","/",null,"");return this._wrapWithPromise(t,!1,e)}get APIMajorVersion(){return this._apiVersionMajor}set APIMajorVersion(e){this._apiVersionMajor=e,this._config._apiVersionMajor=this._apiVersionMajor}async get_manager_version(e=null){var t;if(null===this._managerVersion){let i=await this.getServerVersion(e);this._managerVersion=i.manager,this._apiVersion=i.version,this._config._apiVersion=this._apiVersion,this._apiVersionMajor=null===(t=i.version)||void 0===t?void 0:t.substring(1,3),this._config._apiVersionMajor=this._apiVersionMajor,this._apiVersionMajor>4&&(this.kernelPrefix="/session")}return this._managerVersion}supports(e){return 0===Object.keys(this._features).length&&this._updateSupportList(),e in this._features&&this._features[e]}_updateFieldCompatibilityByAPIVersion(e){const t={session_name:"sess_id"};return this._apiVersionMajor<5&&Object.keys(t).forEach((i=>{let o=e.indexOf(i);-1!==o&&(e[o]=t[i])})),e}_updateSupportList(){this.isAPIVersionCompatibleWith("v4.20190601")&&(this._features["scaling-group"]=!0,this._features.group=!0,this._features["group-folder"]=!0,this._features["system-images"]=!0,this._features["detailed-session-states"]=!0,this._features["change-user-name"]=!0),this.isAPIVersionCompatibleWith("v6.20200815")&&(this._features["multi-container"]=!0,this._features["multi-node"]=!0,this._features["storage-proxy"]=!0,this._features["hardware-metadata"]=!0),this.isManagerVersionCompatibleWith("20.09.16")&&(this._features["avoid-hol-blocking"]=!0,this._features["session-detail-status"]=!0),this.isManagerVersionCompatibleWith("21.09")&&(this._features.schedulable=!0,this._features["wsproxy-addr"]=!0),this.isManagerVersionCompatibleWith("22.03")&&(this._features["scheduler-opts"]=!0,this._features["session-lifetime"]=!0),this.isAPIVersionCompatibleWith("v6.20220615")&&(this._features["secure-payload"]=!0),this.isManagerVersionCompatibleWith("22.09")&&(this._features["image-commit"]=!0,this._features["fine-grained-storage-permissions"]=!0,this._features["2FA"]=!0,this._features.force2FA=!0),this.isManagerVersionCompatibleWith("22.09.19")&&(this._features["idle-checks"]=!0),this.isManagerVersionCompatibleWith("22.09.22")&&(this._features["is-public"]=!0),this.isAPIVersionCompatibleWith("v6.20230315")&&(this._features["inference-workload"]=!0),this.isManagerVersionCompatibleWith("23.03")&&(this._features["inference-workload"]=!0,this._features["local-vscode-remote-connection"]=!0,this._features["display-allocated-shmem"]=!0),this.isManagerVersionCompatibleWith("23.03.3")&&(this._features["sftp-scaling-group"]=!0),this.isManagerVersionCompatibleWith("23.03.7")&&(this._features["quota-scope"]=!0),this.isManagerVersionCompatibleWith("23.03.11")&&(this._features["model-serving"]=!0),this.isManagerVersionCompatibleWith("23.09.0")&&(this._features["sudo-session-enabled"]=!0),this.isManagerVersionCompatibleWith("23.09.2")&&(this._features["container-registry-gql"]=!0,this._features["max-quota-scope-size-in-user-and-project-resource-policy"]=!0,this._features["deprecated-max-vfolder-size-in-user-and-project-resource-policy"]=!0,this._features["max-quota-scope-size"]=!0),this.isManagerVersionCompatibleWith("23.09.4")&&(this._features["deprecated-max-vfolder-count-in-keypair-resource-policy"]=!0,this._features["deprecated-max-vfolder-size-in-keypair-resource-policy"]=!0),this.isManagerVersionCompatibleWith("23.09.6")&&(this._features["max-vfolder-count-in-user-and-project-resource-policy"]=!0,this._features["deprecated-max-quota-scope-in-keypair-resource-policy"]=!0),this.isManagerVersionCompatibleWith("23.09.7")&&(this._features["main-access-key"]=!0),this.isManagerVersionCompatibleWith("23.09.8")&&(this._features["model-serving-endpoint-user-info"]=!0),this.isManagerVersionCompatibleWith("23.09.9")&&(this._features["modify-endpoint"]=!0),this.isManagerVersionCompatibleWith("23.09.10")&&(this._features["max-session-count-per-model-session"]=!0,this._features["configure-user-resource-policy"]=!0),this.isManagerVersionCompatibleWith("24.03.0")&&(this._features["vfolder-trash-bin"]=!0,this._features["model-store"]=!0,this._features["per-user-image"]=!0,this._features["user-committed-image"]=!0,this._features["model-service-validation"]=!0,this._features["max-customized-image-count"]=!0),this.isManagerVersionCompatibleWith("24.03.4")&&(this._features["endpoint-extra-mounts"]=!0)}isManagerVersionCompatibleWith(e){let t=this._managerVersion;return Array.isArray(e)?function(e,t){const i=t.sort(((e,t)=>bm(e,t))),o=ym(e),s=i.find((e=>o===ym(e)));return bm(e,s||i[i.length-1])>=0}(t,e):bm(t,e)>=0}isAPIVersionCompatibleWith(e){let t=this._apiVersion;return null!==t&&null!==e&&(t=t.split(".").map((e=>e.padStart(10))).join("."),e=e.split(".").map((e=>e.padStart(10))).join(".")),e<=t}async isManagerSupportingTOTP(){if(!this._config.enable2FA)return!1;let e=this.newSignedRequest("GET","/totp",null,null);try{return await this._wrapWithPromise(e),Promise.resolve(!0)}catch(e){return Promise.resolve(!1)}}async check_login(){let e,t=this.newSignedRequest("POST","/server/login-check",null,null);try{e=await this._wrapWithPromise(t),!0===e.authenticated&&(this._config._accessKey=e.data.access_key,this._config._session_id=e.session_id)}catch(e){return console.log(e),Promise.resolve(!1)}return e.authenticated}async login(e){let t={username:this._config.userId,password:this._config.password};e&&(t.otp=e);let i,o=this.newSignedRequest("POST","/server/login",t,"",!0);try{if(i=await this._wrapWithPromise(o,!1,null,0,0,{log:JSON.stringify({username:this._config.userId,password:"********"})}),!0===i.authenticated)return"monitor"===i.data.role?(await this.logout(),Promise.resolve({fail_reason:"Monitor user does not allow to login."})):(await this.get_manager_version(),null!==this._loginSessionId&&""!==this._loginSessionId&&localStorage.setItem("backendaiwebui.sessionid",this._loginSessionId),this.check_login());if(!1===i.authenticated)return localStorage.removeItem("backendaiwebui.sessionid"),i.data&&i.data.details?Promise.resolve({fail_reason:i.data.details}):Promise.resolve(!1)}catch(e){throw"statusCode"in e&&429===e.statusCode?{title:e.description,message:"Too many failed login attempts."}:{title:"No manager found at API Endpoint.",message:"Authentication failed. Check information and manager status."}}}logout(){let e=this.newSignedRequest("POST","/server/logout",{},null);return localStorage.getItem("backendaiwebui.logs")&&localStorage.removeItem("backendaiwebui.logs"),localStorage.removeItem("backendaiwebui.sessionid"),this._wrapWithPromise(e)}async token_login(e,t={}){const i=e?{sToken:e}:{};t&&Object.assign(i,t);const o=this.newSignedRequest("POST","/server/token-login",i,null);try{const e=await this._wrapWithPromise(o);if(!0===e.authenticated)return await this.get_manager_version(),this.check_login();if(!1===e.authenticated)return e.data&&e.data.details?Promise.resolve({fail_reason:e.data.details}):Promise.resolve(!1)}catch(e){throw"statusCode"in e&&429===e.statusCode?{title:e.description,message:"Too many failed login attempts."}:{title:"No manager found at API Endpoint.",message:"Authentication failed. Check information and manager status."}}}async signout(e,t){let i={username:e,password:t},o=this.newSignedRequest("POST","/auth/signout",i,null);return this._wrapWithPromise(o)}async update_full_name(e,t){let i={email:e,full_name:t},o=this.newSignedRequest("POST","/auth/update-full-name",i,null);return this._wrapWithPromise(o)}async update_password(e,t,i){let o={old_password:e,new_password:t,new_password2:i},s=this.newSignedRequest("POST","/auth/update-password",o,"",!0);return this._wrapWithPromise(s)}async initialize_totp(){let e=this.newSignedRequest("POST","/totp",{},null);return this._wrapWithPromise(e)}async activate_totp(e){let t=this.newSignedRequest("POST","/totp/verify",{otp:e},null);return this._wrapWithPromise(t)}async remove_totp(e=null){let t="/totp";if(e){t+=`?${new URLSearchParams({email:e}).toString()}`}let i=this.newSignedRequest("DELETE",t,{},null);return this._wrapWithPromise(i)}async get_resource_slots(){let e;return e=this.isAPIVersionCompatibleWith("v4.20190601")?this.newSignedRequest("GET","/config/resource-slots",null,""):this.newSignedRequest("GET","/etcd/resource-slots",null,""),this._wrapWithPromise(e)}async createIfNotExists(e,t,i={},o=0,s="x86_64"){null!=t&&""!==t||(t=this.generateSessionId());let n,r={lang:e,clientSessionToken:t,architecture:s};if(i&&0!==Object.keys(i).length){let e={};i.cpu&&(e.cpu=i.cpu),i.mem&&(e.mem=i.mem),i.gpu&&(e["cuda.device"]=parseInt(i.gpu)),i["cuda.device"]&&(e["cuda.device"]=parseInt(i["cuda.device"])),i.vgpu?e["cuda.shares"]=parseFloat(i.vgpu).toFixed(2):i.fgpu&&(e["cuda.shares"]=parseFloat(i.fgpu).toFixed(2)),i["cuda.shares"]&&(e["cuda.shares"]=parseFloat(i["cuda.shares"]).toFixed(2)),i["rocm.device"]&&(e["rocm.device"]=parseInt(i["rocm.device"])),i["tpu.device"]&&(e["tpu.device"]=parseInt(i["tpu.device"])),i["ipu.device"]&&(e["ipu.device"]=parseInt(i["ipu.device"])),i["atom.device"]&&(e["atom.device"]=parseInt(i["atom.device"])),i["warboy.device"]&&(e["warboy.device"]=parseInt(i["warboy.device"])),i["hyperaccel-lpu.device"]&&(e["hyperaccel-lpu.device"]=parseInt(i["hyperaccel-lpu.device"])),i.cluster_size&&(r.cluster_size=i.cluster_size),i.cluster_mode&&(r.cluster_mode=i.cluster_mode),i.group_name&&(r.group_name=i.group_name),i.domain&&(r.domain=i.domain),i.type&&(r.type=i.type),i.startsAt&&(r.starts_at=i.startsAt),i.enqueueOnly&&(r.enqueueOnly=i.enqueueOnly),i.maxWaitSeconds&&(r.maxWaitSeconds=i.maxWaitSeconds),i.reuseIfExists&&(r.reuseIfExists=i.reuseIfExists),i.startupCommand&&(r.startupCommand=i.startupCommand),i.bootstrapScript&&(r.bootstrapScript=i.bootstrapScript),i.bootstrap_script&&(r.bootstrap_script=i.bootstrap_script),i.owner_access_key&&(r.owner_access_key=i.owner_access_key),r.config={resources:e},i.mounts&&(r.config.mounts=i.mounts),i.mount_map&&(r.config.mount_map=i.mount_map),i.scaling_group&&(r.config.scaling_group=i.scaling_group),i.shmem&&(r.config.resource_opts={},r.config.resource_opts.shmem=i.shmem),i.env&&(r.config.environ=i.env),i.preopen_ports&&(r.config.preopen_ports=i.preopen_ports)}return n=this._apiVersionMajor<5?this.newSignedRequest("POST",`${this.kernelPrefix}/create`,r,null):this.newSignedRequest("POST",`${this.kernelPrefix}`,r,null),this._wrapWithPromise(n,!1,null,o)}async createSessionFromTemplate(e,t=null,i=null,o={},s=0){null==i&&(i=this.generateSessionId());const n={template_id:e};if(t&&(n.image=t),i&&(n.name=i),o&&Object.keys(o).length>0){let e={};o.cpu&&(e.cpu=o.cpu),o.mem&&(e.mem=o.mem),o["cuda.device"]&&(e["cuda.device"]=parseInt(o["cuda.device"])),o.fgpu&&(e["cuda.shares"]=parseFloat(o.fgpu).toFixed(2)),o["cuda.shares"]&&(e["cuda.shares"]=parseFloat(o["cuda.shares"]).toFixed(2)),o.rocm&&(e["rocm.device"]=o.rocm),o.tpu&&(e["tpu.device"]=o.tpu),o.cluster_size&&(n.cluster_size=o.cluster_size),o.cluster_mode&&(n.cluster_mode=o.cluster_mode),o.group_name&&(n.group_name=o.group_name),o.domain&&(n.domain=o.domain),o.type&&(n.type=o.type),o.starts_at&&(n.starts_at=o.startsAt),o.enqueueOnly&&(n.enqueueOnly=o.enqueueOnly),o.maxWaitSeconds&&(n.maxWaitSeconds=o.maxWaitSeconds),o.reuseIfExists&&(n.reuseIfExists=o.reuseIfExists),o.startupCommand&&(n.startupCommand=o.startupCommand),o.bootstrap_script&&(n.bootstrap_script=o.bootstrap_script),o.owner_access_key&&(n.owner_access_key=o.owner_access_key),n.config={resources:e},o.mounts&&(n.config.mounts=o.mounts),o.scaling_group&&(n.config.scaling_group=o.scaling_group),o.shmem&&(n.config.resource_opts={},n.config.resource_opts.shmem=o.shmem),o.env&&(n.config.environ=o.env)}const r=this.newSignedRequest("POST",`${this.kernelPrefix}/_/create-from-template`,n,null);return this._wrapWithPromise(r,!1,null,s)}async get_info(e,t=null){let i=`${this.kernelPrefix}/${e}`;null!=t&&(i=`${i}?owner_access_key=${t}`);let o=this.newSignedRequest("GET",i,null,null);return this._wrapWithPromise(o)}async get_direct_access_info(e){let t=`${this.kernelPrefix}/${e}/direct-access-info`,i=this.newSignedRequest("GET",t,null,null);return this._wrapWithPromise(i)}async get_logs(e,t=null,i=0){let o=`${this.kernelPrefix}/${e}/logs`;null!=t&&(o=`${o}?owner_access_key=${t}`);let s=this.newSignedRequest("GET",o,null,null);return this._wrapWithPromise(s,!1,null,i)}getTaskLogs(e){const t=`${this.kernelPrefix}/_/logs?session_name=${e}`;let i=this.newSignedRequest("GET",t,null,null);return this._wrapWithPromise(i)}async destroy(e,t=null,i=!1){let o=`${this.kernelPrefix}/${e}`;o=null!==t?`${o}?owner_access_key=${t}${i?"&forced=true":""}`:`${o}${i?"?forced=true":""}`;let s=this.newSignedRequest("DELETE",o,null,null);return this._wrapWithPromise(s,!1,null,15e3,2)}async restart(e,t=null){let i=`${this.kernelPrefix}/${e}`;null!=t&&(i=`${i}?owner_access_key=${t}`);let o=this.newSignedRequest("PATCH",i,null,null);return this._wrapWithPromise(o)}async execute(e,t,i,o,s,n=0){let r={mode:i,code:o,runId:t,options:s},a=this.newSignedRequest("POST",`${this.kernelPrefix}/${e}`,r,null);return this._wrapWithPromise(a,!1,null,n)}createKernel(e,t="",i={},o=0){return this.createIfNotExists(e,t,i,o,"x86_64")}destroyKernel(e,t=null){return this.destroy(e,t)}refreshKernel(e,t=null){return this.restart(e,t)}runCode(e,t,i,o){return this.execute(t,i,o,e,{})}async rename(e,t){let i={name:t},o=this.newSignedRequest("POST",`${this.kernelPrefix}/${e}/rename`,i,null);return this._wrapWithPromise(o)}async shutdown_service(e,t){const i=new URLSearchParams({service_name:t}).toString();let o=this.newSignedRequest("POST",`${this.kernelPrefix}/${e}/shutdown-service?${i}`,null,null);return this._wrapWithPromise(o,!0)}async upload(e,t,i){const o=new FormData;o.append("src",i,t);let s=this.newSignedRequest("POST",`${this.kernelPrefix}/${e}/upload`,o,null);return this._wrapWithPromise(s)}async download(e,t){const i=new URLSearchParams({files:t}).toString();let o=this.newSignedRequest("GET",`${this.kernelPrefix}/${e}/download?${i}`,null,null);return this._wrapWithPromise(o,!0)}async download_single(e,t){const i=new URLSearchParams({file:t}).toString();let o=this.newSignedRequest("GET",`${this.kernelPrefix}/${e}/download_single?${i}`,null,null);return this._wrapWithPromise(o,!0)}mangleUserAgentSignature(){return this.clientVersion+(this.agentSignature?"; "+this.agentSignature:"")}async query(e,t,i=null,o=0,s=0,n=!1){let r={query:e,variables:t},a=this.newSignedRequest("POST","/admin/gql",r,null,n);return this._wrapWithPromise(a,!1,i,o,s).then((e=>e.data))}newSignedRequest(e,t,i=void 0,o=null,s=!1){let n,r,a,l,d,c="application/json",h=new Date;if(null==i?(n="",r=n):"function"==typeof i.getBoundary||i instanceof FormData?(n=i,r="",c="multipart/form-data"):(n=JSON.stringify(i),r=n),"SESSION"===this._config.connectionMode)l=new Headers({"User-Agent":`Backend.AI Client for Javascript ${this.mangleUserAgentSignature()}`,"X-BackendAI-Version":this._config.apiVersion,"X-BackendAI-Date":h.toISOString()}),d=!0===t.startsWith("/server")?this._config.endpoint+t:this._config.endpoint+"/func"+t;else{a=this._config._apiVersion[1]<4?this.getAuthenticationString(e,t,h.toISOString(),r,c):this.getAuthenticationString(e,t,h.toISOString(),"",c);let i=this.getSignKey(this._config.secretKey,h),o=this.sign(i,"binary",a,"hex");l=new Headers({"User-Agent":`Backend.AI Client for Javascript ${this.mangleUserAgentSignature()}`,"X-BackendAI-Version":this._config.apiVersion,"X-BackendAI-Date":h.toISOString(),Authorization:`BackendAI signMethod=HMAC-SHA256, credential=${this._config.accessKey}:${o}`}),d=this._config.endpoint+t}if("pipeline"===o){d=this._config.endpoint+`/${o}`+t,l=new Headers({Accept:c});const i="DELETE"===e&&t.startsWith("/auth-token");if(!0===t.startsWith("/api")||i){const e=this.pipeline.getPipelineToken();l.set("Authorization",`Token ${e}`)}}return null!=i?("function"==typeof i.getBoundary&&l.set("Content-Type",i.getHeaders()["content-type"]),i instanceof FormData||(l.set("Content-Type",c),l.set("Content-Length",(new TextEncoder).encode(r).length))):l.set("Content-Type",c),s&&this.supports("secure-payload")&&"string"==typeof n&&(l.set("X-BackendAI-Encoded","true"),n=this.getEncodedPayload(n)),""!==this._loginSessionId&&l.set("X-BackendAI-SessionID",this._loginSessionId),{method:e,headers:l,cache:"default",body:n,uri:d}}newUnsignedRequest(e,t,i){return this.newPublicRequest(e,t,i,this._config.apiVersionMajor)}newPublicRequest(e,t,i,o=""){let s=new Date,n={method:e,headers:new Headers({"Content-Type":"application/json","User-Agent":`Backend.AI Client for Javascript ${this.mangleUserAgentSignature()}`,"X-BackendAI-Version":this._config.apiVersion,"X-BackendAI-Date":s.toISOString(),credentials:"include",mode:"cors"}),mode:"cors",cache:"default",uri:""};return"SESSION"===this._config.connectionMode&&t.startsWith("/server")||"SESSION"!==this._config.connectionMode||t.startsWith("/server")?n.uri=this._config.endpoint+t:n.uri=this._config.endpoint+"/func"+t,n}getAuthenticationString(e,t,i,o,s="application/json"){let n=fm.SHA256(o);return e+"\n"+t+"\n"+i+"\nhost:"+this._config.endpointHost+"\ncontent-type:"+s+"\nx-backendai-version:"+this._config.apiVersion+"\n"+n}getCurrentDate(e){return`0000${e.getUTCFullYear()}`.slice(-4)+`0${e.getUTCMonth()+1}`.slice(-2)+`0${e.getUTCDate()}`.slice(-2)}getEncodedPayload(e){let t=this.generateRandomStr(16),i=(this._getBase64FromString(this._config.endpoint)+t+t).substring(0,32);return t+":"+fm.AES.encrypt(e,fm.enc.Utf8.parse(i),{iv:fm.enc.Utf8.parse(t),padding:fm.pad.Pkcs7,mode:fm.mode.CBC}).toString()}_getBase64FromString(e){const t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";let i=[];for(let t=0;t<e.length;t++)i.push(e.charCodeAt(t));let o="",s=0;for(;s<i.length;){const e=i[s++],n=s<i.length?i[s++]:-1,r=s<i.length?i[s++]:-1,a=(e<<16)+((-1!=n?n:0)<<8)+(-1!=r?r:0);o+=t.charAt(a>>18&63)+t.charAt(a>>12&63)+t.charAt(-1!=n?a>>6&63:64)+t.charAt(-1!=r?63&a:64)}return o}sign(e,t,i,o){const s=fm.enc.Utf8.parse(i);let n;return e="utf8"==t?fm.enc.Utf8.parse(e):"binary"==t?fm.enc.Hex.parse(e):fm.enc.Utf8.parse(e),n=["binary","hex"].includes(o)?fm.enc.Hex.stringify(fm.HmacSHA256(s,e)):fm.enc.Base64.stringify(fm.HmacSHA256(s,e)),n}getSignKey(e,t){let i=this.sign(e,"utf8",this.getCurrentDate(t),"binary");return this.sign(i,"binary",this._config.endpointHost,"binary")}generateRandomStr(e){let t="";const i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";for(let o=0;o<e;o++)t+=i.charAt(Math.floor(62*Math.random()));return t}generateSessionId(e=8,t=!1){let i=this.generateRandomStr(e);return t?i:i+"-jsSDK"}slugify(e){const t="àáäâèéëêìíïîòóöôùúüûñçßÿœæŕśńṕẃǵǹḿǘẍźḧ·/_,:;",i=new RegExp(t.split("").join("|"),"g");return e.toString().toLowerCase().replace(/\s+/g,"-").replace(i,(e=>"aaaaeeeeiiiioooouuuuncsyoarsnpwgnmuxzh------".charAt(t.indexOf(e)))).replace(/&/g,"-and-").replace(/[^\w\-]+/g,"").replace(/--+/g,"-").replace(/^-+/,"").replace(/-+$/,"")}async fetchSSHKeypair(){let e=this.newSignedRequest("GET","/auth/ssh-keypair",null,null);return this._wrapWithPromise(e,!1)}async refreshSSHKeypair(){let e=this.newSignedRequest("PATCH","/auth/ssh-keypair",null,null);return this._wrapWithPromise(e,!1)}async postSSHKeypair(e){let t=this.newSignedRequest("POST","/auth/ssh-keypair",e,null);return this._wrapWithPromise(t,!1)}}class $m{constructor(e){this.client=e,this.urlPrefix="/resource"}async list(e=null){let t=this.client.newSignedRequest("GET",`${this.urlPrefix}/presets`,e);return this.client._wrapWithPromise(t)}async check(e=null){let t=this.client.newSignedRequest("POST",`${this.urlPrefix}/check-presets`,e);return this.client._wrapWithPromise(t)}async add(e=null,t){if(!0===this.client.is_admin&&null!==e){let i="mutation($name: String!, $input: CreateResourcePresetInput!) {  create_resource_preset(name: $name, props: $input) {    ok msg   }}",o={name:e,input:t};return this.client.query(i,o)}return Promise.resolve(!1)}async mutate(e=null,t){if(!0===this.client.is_admin&&null!==e){let i="mutation($name: String!, $input: ModifyResourcePresetInput!) {  modify_resource_preset(name: $name, props: $input) {    ok msg   }}",o={name:e,input:t};return this.client.query(i,o)}return Promise.resolve(!1)}async delete(e=null){if(!0===this.client.is_admin&&null!==e){let t="mutation($name: String!) {  delete_resource_preset(name: $name) {    ok msg   }}",i={name:e};return this.client.query(t,i)}return Promise.resolve(!1)}}class Am{constructor(e,t=null){this.client=e,this.name=t,this.urlPrefix="/folders"}async list_allowed_types(){let e=this.client.newSignedRequest("GET",`${this.urlPrefix}/_/allowed_types`,null);return this.client._wrapWithPromise(e)}async create(e,t="",i="",o="general",s="rw",n=!1){let r;""!==t&&(r={name:e,host:t}),this.client.supports("group-folder")&&""!==i&&(r={name:e,host:t,group:i}),this.client.isAPIVersionCompatibleWith("v4.20191215")&&(o&&(r.usage_mode=o),s&&(r.permission=s)),this.client.supports("storage-proxy")&&(r.cloneable=n);let a=this.client.newSignedRequest("POST",`${this.urlPrefix}`,r);return this.client._wrapWithPromise(a)}async clone(e,t=null){let i=this.client.newSignedRequest("POST",`${this.urlPrefix}/${t}/clone`,e);return this.client._wrapWithPromise(i)}async update_folder(e,t=null){let i=this.client.newSignedRequest("POST",`${this.urlPrefix}/${t}/update-options`,e);return this.client._wrapWithPromise(i)}async list(e=null,t=null){let i=this.urlPrefix,o={};e&&(o.group_id=e),t&&(o.owner_user_email=t);i+=`?${new URLSearchParams(o).toString()}`;let s=this.client.newSignedRequest("GET",i,null);return this.client._wrapWithPromise(s)}async list_hosts(e=null){let t=`${this.urlPrefix}/_/hosts`,i={};this.client.isManagerVersionCompatibleWith("22.03.0")&&e&&(i.group_id=e);t+=`?${new URLSearchParams(i).toString()}`;let o=this.client.newSignedRequest("GET",t,null);return this.client._wrapWithPromise(o)}async list_all_hosts(){if(!0===this.client.is_superadmin){let e=`${this.urlPrefix}/_/all-hosts`,t=this.client.newSignedRequest("GET",e,null);return this.client._wrapWithPromise(t)}}async info(e=null){null==e&&(e=this.name);let t=this.client.newSignedRequest("GET",`${this.urlPrefix}/${e}`,null);return this.client._wrapWithPromise(t)}async rename(e=null){const t={new_name:e};let i=this.client.newSignedRequest("POST",`${this.urlPrefix}/${this.name}/rename`,t);return this.client._wrapWithPromise(i)}async delete(e=null){null==e&&(e=this.name);let t=this.client.newSignedRequest("DELETE",`${this.urlPrefix}/${e}`,null);return this.client._wrapWithPromise(t)}async delete_by_id(e){let t={vfolder_id:e},i=this.client.newSignedRequest("DELETE",`${this.urlPrefix}`,t);return this.client._wrapWithPromise(i)}async leave_invited(e=null){null==e&&(e=this.name);let t=this.client.newSignedRequest("POST",`${this.urlPrefix}/${e}/leave`,null);return this.client._wrapWithPromise(t)}async upload(e,t,i=null){null==i&&(i=this.name);let o=new FormData;o.append("src",t,e);let s=this.client.newSignedRequest("POST",`${this.urlPrefix}/${i}/upload`,o);return this.client._wrapWithPromise(s)}async uploadFormData(e,t=null){let i=this.client.newSignedRequest("POST",`${this.urlPrefix}/${t}/upload`,e);return this.client._wrapWithPromise(i)}async create_upload_session(e,t,i=null){null==i&&(i=this.name);let o,s={path:e,size:t.size};o=this.client._apiVersionMajor<6?`${this.urlPrefix}/${i}/create_upload_session`:`${this.urlPrefix}/${i}/request-upload`;const n=this.client.newSignedRequest("POST",o,s),r=await this.client._wrapWithPromise(n),a=r.token;let l;return this.client._apiVersionMajor<6?(l=this.client._config.endpoint,"SESSION"===this.client._config.connectionMode&&(l+="/func"),l+=`${this.urlPrefix}/_/tus/upload/${a}`):l=`${r.url}?token=${a}`,Promise.resolve(l)}async mkdir(e,t=null,i=null,o=null){null==t&&(t=this.name);const s={path:e};i&&(s.parents=i),o&&(s.exist_ok=o);const n=this.client.newSignedRequest("POST",`${this.urlPrefix}/${t}/mkdir`,s);return this.client._wrapWithPromise(n)}async rename_file(e,t,i=null,o=!1){let s;null==i&&(i=this.name),s=this.client.isAPIVersionCompatibleWith("v6.20200815")?{target_path:e,new_name:t,is_dir:o}:{target_path:e,new_name:t};let n=this.client.newSignedRequest("POST",`${this.urlPrefix}/${i}/rename_file`,s);return this.client._wrapWithPromise(n)}async delete_files(e,t=!1,i=null){null==i&&(i=this.name),null==t&&(t=!1);let o={files:e,recursive:t},s=this.client.newSignedRequest("DELETE",`${this.urlPrefix}/${i}/delete_files`,o);return this.client._wrapWithPromise(s)}async download(e,t=!1,i=!1,o=!1){const s=new URLSearchParams({file:e,archive:i?"true":"false"}).toString();if(this.client._apiVersionMajor<6){const e=this.client.newSignedRequest("GET",`${this.urlPrefix}/${t}/download_single?${s}`,null);return this.client._wrapWithPromise(e,!0)}{const s=await this.request_download_token(e,t),n=`${s.url}?token=${s.token}&archive=${i}&no_cache=${o}`;return fetch(n)}}async request_download_token(e,t=!1,i=!1){let o,s={file:e,archive:i};o=this.client._apiVersionMajor<6?`${this.urlPrefix}/${t}/request_download`:`${this.urlPrefix}/${t}/request-download`;const n=this.client.newSignedRequest("POST",o,s);return this.client._wrapWithPromise(n)}async download_with_token(e=""){let t=new URLSearchParams({token:e}).toString(),i=this.client.newSignedRequest("GET",`${this.urlPrefix}/_/download_with_token?${t}`,null);return this.client._wrapWithPromise(i,!0)}get_download_url_with_token(e=""){let t=new URLSearchParams({token:e}).toString();return"SESSION"===this.client._config.connectionMode?`${this.client._config.endpoint}/func${this.urlPrefix}/_/download_with_token?${t}`:`${this.client._config.endpoint}${this.urlPrefix}/_/download_with_token?${t}`}async list_files(e,t=null){null==t&&(t=this.name);let i=new URLSearchParams({path:e}).toString(),o=this.client.newSignedRequest("GET",`${this.urlPrefix}/${t}/files?${i}`,null);return this.client._wrapWithPromise(o)}async invite(e,t,i=null){null==i&&(i=this.name);let o={perm:e,user_ids:t},s=this.client.newSignedRequest("POST",`${this.urlPrefix}/${i}/invite`,o);return this.client._wrapWithPromise(s)}async invitations(){let e=this.client.newSignedRequest("GET",`${this.urlPrefix}/invitations/list`,null);return this.client._wrapWithPromise(e)}async accept_invitation(e){let t={inv_id:e},i=this.client.newSignedRequest("POST",`${this.urlPrefix}/invitations/accept`,t);return this.client._wrapWithPromise(i)}async delete_invitation(e){let t={inv_id:e},i=this.client.newSignedRequest("DELETE",`${this.urlPrefix}/invitations/delete`,t);return this.client._wrapWithPromise(i)}async list_invitees(e=null){let t="/folders/_/shared";null!==e&&(t=`${t}?vfolder_id=${e}`);let i=this.client.newSignedRequest("GET",t,null);return this.client._wrapWithPromise(i)}async modify_invitee_permission(e){let t=this.client.newSignedRequest("POST","/folders/_/shared",e);return this.client._wrapWithPromise(t)}async share(e,t,i=null){i||(i=this.name);const o={permission:e,emails:t},s=this.client.newSignedRequest("POST",`${this.urlPrefix}/${i}/share`,o);return this.client._wrapWithPromise(s)}async unshare(e,t=null){t||(t=this.name);const i={emails:e},o=this.client.newSignedRequest("DELETE",`${this.urlPrefix}/${t}/unshare`,i);return this.client._wrapWithPromise(o)}async get_quota(e,t){let i=new URLSearchParams({folder_host:e,id:t}).toString();const o=this.client.newSignedRequest("GET",`${this.urlPrefix}/_/quota?${i}`,null);return this.client._wrapWithPromise(o)}async set_quota(e,t,i){const o={folder_host:e,id:t,input:{size_bytes:i}},s=this.client.newSignedRequest("POST",`${this.urlPrefix}/_/quota`,o);return this.client._wrapWithPromise(s)}async restore_from_trash_bin(e){const t={vfolder_id:e};let i=this.client.newSignedRequest("POST",`${this.urlPrefix}/restore-from-trash-bin`,t);return this.client._wrapWithPromise(i)}async delete_from_trash_bin(e){const t={vfolder_id:e};let i=this.client.newSignedRequest("POST",`${this.urlPrefix}/delete-from-trash-bin`,t);return this.client._wrapWithPromise(i)}}class km{constructor(e){this.client=e}async list(e="ALIVE",t=["id","status","region","first_contact","cpu_cur_pct","mem_cur_bytes","available_slots","occupied_slots"],i=0){if(!["ALIVE","TERMINATED"].includes(e))return Promise.resolve(!1);let o=`query($status: String) {  agents(status: $status) {     ${t.join(" ")}  }}`,s={status:e};return this.client.query(o,s,null,i)}async update(e=null,t){if(!0===this.client.is_superadmin&&null!==e){let i="mutation($id: String!, $input: ModifyAgentInput!) {  modify_agent(id: $id, props: $input) {    ok msg   }}",o={id:e,input:t};return this.client.query(i,o)}return Promise.resolve(!1)}}class Em{constructor(e){this.client=e}async list(e="ALIVE",t=["id","status","scaling_group","schedulable","available_slots","occupied_slots","architecture"],i=20,o=0,s=0){let n=t.join(" ");if(!this.client.supports("schedulable")&&t.includes("schedulable")&&n.replace("schedulable",""),!["ALIVE","TERMINATED"].includes(e))return Promise.resolve(!1);let r=`query($limit:Int!, $offset:Int!, $status:String) {\n        agent_summary_list(limit:$limit, offset:$offset, status:$status) {\n           items { ${n} }\n           total_count\n        }\n      }`,a={limit:i,offset:o,status:e};return this.client.query(r,a,null,s)}}class Sm{constructor(e){this.client=e}async list(e=["id","backend","capabilities"],t=20,i=0){let o=`query($offset:Int!, $limit:Int!) {  storage_volume_list(limit:$limit, offset:$offset) {     items { ${e.join(" ")} }     total_count  }}`,s={limit:t,offset:i};return this.client.query(o,s)}async detail(e="",t=["id","backend","path","fsprefix","capabilities"]){let i=`query($vfolder_host: String!) {  storage_volume(id: $vfolder_host) {     ${t.join(" ")}  }}`,o={vfolder_host:e};return this.client.query(i,o)}async getAllPermissions(){if(this.client.supports("fine-grained-storage-permissions")){const e=this.client.newSignedRequest("GET","/acl",null);return this.client._wrapWithPromise(e)}}async getAllowedVFolderHostsByCurrentUserInfo(e="",t="",i=""){const o={domainName:e,projectId:t,resourcePolicyName:i};return this.client.query("\n      query($domainName: String, $projectId: UUID!, $resourcePolicyName: String) {\n        domain(name: $domainName) { allowed_vfolder_hosts }\n        group(id: $projectId, domain_name: $domainName) { allowed_vfolder_hosts }\n        keypair_resource_policy(name: $resourcePolicyName) { allowed_vfolder_hosts }\n      }\n    ",o)}}class Cm{constructor(e,t=null){this.client=e,this.name=t}async info(e,t=["access_key","secret_key","is_active","is_admin","user_id","created_at","last_used","concurrency_limit","concurrency_used","rate_limit","num_queries","resource_policy"]){let i,o;return this.client.is_admin?(i=`query($access_key: String!) {  keypair(access_key: $access_key) {    ${t.join(" ")}  }}`,o={access_key:e}):(i=`query {  keypair {    ${t.join(" ")}  }}`,o={}),this.client.query(i,o)}async list(e=null,t=["access_key","is_active","is_admin","user_id","created_at","last_used","concurrency_used","rate_limit","num_queries","resource_policy"],i=!0){let o,s;if(this.client._apiVersionMajor<5)return o=this.client.is_admin&&null==e?`\n        query($is_active: Boolean) {\n          keypairs(is_active: $is_active) {\n            ${t.join(" ")}\n          }\n        }\n      `:`\n        query($email: String!, $is_active: Boolean) {\n          keypairs(email: $email, is_active: $is_active) {\n            ${t.join(" ")}\n          }\n        }\n      `,s={email:e||this.client.email,is_active:i},this.client.query(o,s);{const n=100,r=[];o=this.client.is_admin&&null==e?`\n        query($offset:Int!, $limit:Int!, $is_active: Boolean) {\n          keypair_list(offset:$offset, limit:$limit, is_active: $is_active) {\n            items { ${t.join(" ")} }\n            total_count\n          }\n        }\n      `:`\n        query($offset:Int!, $limit:Int!, $email: String!, $is_active: Boolean) {\n          keypair_list(offset:$offset, limit:$limit, email: $email, is_active: $is_active) {\n            items { ${t.join(" ")} }\n            total_count\n          }\n        }\n      `;for(let t=0;t<10*n;t+=n){s={offset:t,limit:n,email:e||this.client.email,is_active:i};const a=await this.client.query(o,s);if(r.push(...a.keypair_list.items),t>=a.keypair_list.total_count)break}const a={keypairs:r};return Promise.resolve(a)}}async add(e=null,t=!0,i=!1,o="default",s=1e3){let n=`mutation($user_id: String!, $input: KeyPairInput!) {  create_keypair(user_id: $user_id, props: $input) {    ok msg keypair { ${["is_active","is_admin","resource_policy","concurrency_limit","rate_limit"].join(" ")} }  }}`,r={user_id:e,input:{is_active:t,is_admin:i,resource_policy:o,rate_limit:s}};return this.client.query(n,r)}async mutate(e,t){let i={access_key:e,input:t};return this.client.query("mutation($access_key: String!, $input: ModifyKeyPairInput!) {  modify_keypair(access_key: $access_key, props: $input) {    ok msg  }}",i)}async delete(e){let t={access_key:e};return this.client.query("mutation($access_key: String!) {  delete_keypair(access_key: $access_key) {    ok msg  }}",t)}}class Tm{constructor(e){this.client=e}async get(e=null,t=["name","created_at","default_for_unspecified","total_resource_slots","max_concurrent_sessions","max_containers_per_session","max_vfolder_count","allowed_vfolder_hosts","idle_timeout"]){let i,o;return this.client.supports("session-lifetime")&&t.push("max_session_lifetime"),null===e?(i=`query {  keypair_resource_policies { ${t.join(" ")} }}`,o={n:e}):(i=`query($n:String!) {  keypair_resource_policy(name: $n) { ${t.join(" ")} }}`,o={n:e}),this.client.query(i,o)}async add(e=null,t){let i=["name","created_at","default_for_unspecified","total_resource_slots","max_concurrent_sessions","max_containers_per_session","max_vfolder_count","allowed_vfolder_hosts","idle_timeout"];if(this.client.supports("session-lifetime")&&i.push("max_session_lifetime"),!0===this.client.is_admin&&null!==e){let o=`mutation($name: String!, $input: CreateKeyPairResourcePolicyInput!) {  create_keypair_resource_policy(name: $name, props: $input) {    ok msg resource_policy { ${i.join(" ")} }  }}`,s={name:e,input:t};return this.client.query(o,s)}return Promise.resolve(!1)}async mutate(e=null,t){if(!0===this.client.is_admin&&null!==e){let i="mutation($name: String!, $input: ModifyKeyPairResourcePolicyInput!) {  modify_keypair_resource_policy(name: $name, props: $input) {    ok msg   }}",o={name:e,input:t};return this.client.query(i,o)}return Promise.resolve(!1)}async delete(e=null){if(!0===this.client.is_superadmin&&null!==e){let t="mutation($name: String!) { delete_keypair_resource_policy(name: $name) {   ok msg  }}",i={name:e};return this.client.query(t,i)}return Promise.resolve(!1)}}class Pm{constructor(e){this.client=e}async list(e=["name","tag","registry","digest","installed","labels { key value }","resource_limits { key min max }"],t=!1,i=!1){let o,s;return this.client.supports("system-images")?t?(o=`query($installed:Boolean) {  images(is_installed:$installed) { ${e.join(" ")} }}`,s={installed:t,is_operation:i}):(o=`query {  images { ${e.join(" ")} }}`,s={is_operation:i}):(o=`query {  images { ${e.join(" ")} }}`,s={}),this.client.query(o,s)}async modifyResource(e,t,i,o){let s=[];return e=e.replace(/:/g,"%3A"),t=t.replace(/\//g,"%2F"),Object.keys(o).forEach((n=>{Object.keys(o[n]).forEach((r=>{const a=this.client.newSignedRequest("POST","/config/set",{key:`images/${e}/${t}/${i}/resource/${n}/${r}`,value:o[n][r]});s.push(this.client._wrapWithPromise(a))}))})),Promise.all(s)}async modifyLabel(e,t,i,o,s){e=e.replace(/:/g,"%3A"),t=t.replace(/\//g,"%2F"),i=i.replace(/\//g,"%2F");const n=this.client.newSignedRequest("POST","/config/set",{key:`images/${e}/${t}/${i}/labels/${o}`,value:s});return this.client._wrapWithPromise(n)}async install(e,t,i={},o="index.docker.io"){o=("index.docker.io"===o?"":o+"/").replace(/:/g,"%3A");const s=this.client.generateSessionId();return 0===Object.keys(i).length&&(i={cpu:"1",mem:"512m",enqueueOnly:!0,type:"batch",startupCommand:'echo "Image is installed"'}),this.client.createIfNotExists(o+e,s,i,1e4,t).catch((e=>{throw e}))}async uninstall(e,t="index.docker.io"){return Promise.resolve(!1)}async get(e,t,i){e=e.replace(/:/g,"%3A");const o=this.client.newSignedRequest("POST","/config/get",{key:`images/${e}/${t}/${i}/resource/`,prefix:!0});return this.client._wrapWithPromise(o)}}class Im{constructor(e){this.client=e}async total_count(e="RUNNING",t="",i=1,o=0,s=""){let n,r;return n="query($limit:Int!, $offset:Int!, $ak:String, $group_id:String, $status:String) {\n      compute_session_list(limit:$limit, offset:$offset, access_key:$ak, group_id:$group_id, status:$status) {\n        total_count\n      }\n    }",r={limit:i,offset:o,status:e},""!=t&&(r.ak=t),""!=s&&(r.group_id=s),this.client.query("query($limit:Int!, $offset:Int!, $ak:String, $group_id:String, $status:String) {\n      compute_session_list(limit:$limit, offset:$offset, access_key:$ak, group_id:$group_id, status:$status) {\n        total_count\n      }\n    }",r)}async list(e=["id","name","image","created_at","terminated_at","status","status_info","occupied_slots","containers {live_stat last_stat}","starts_at"],t="RUNNING",i="",o=30,s=0,n="",r=0){let a,l;return a=`query($limit:Int!, $offset:Int!, $ak:String, $group_id:String, $status:String) {\n      compute_session_list(limit:$limit, offset:$offset, access_key:$ak, group_id:$group_id, status:$status) {\n        items { ${(e=this.client._updateFieldCompatibilityByAPIVersion(e)).join(" ")}}\n        total_count\n      }\n    }`,l={limit:o,offset:s,status:t},""!=i&&(l.ak=i),""!=n&&(l.group_id=n),this.client.query(a,l,null,r)}async listAll(e=["id","name","image","created_at","terminated_at","status","status_info","occupied_slots","containers {live_stat last_stat}"],t="RUNNING,RESTARTING,TERMINATING,PENDING,SCHEDULED,PREPARING,PULLING,TERMINATED,CANCELLED,ERROR",i="",o=100,s=0,n="",r=0){let a,l;e=this.client._updateFieldCompatibilityByAPIVersion(e),this.client.supports("avoid-hol-blocking")||(t.replace("SCHEDULED,",""),t.replace("SCHEDULED",""));const d=[];a=`query($limit:Int!, $offset:Int!, $ak:String, $group_id:String, $status:String) {\n      compute_session_list(limit:$limit, offset:$offset, access_key:$ak, group_id:$group_id, status:$status) {\n        items { ${e.join(" ")}}\n        total_count\n      }\n    }`;for(let e=0;e<10*o;e+=o){l={limit:o,offset:e,status:t},""!=i&&(l.access_key=i),""!=n&&(l.group_id=n);const s=await this.client.query(a,l,null,r);if(d.push(...s.compute_session_list.items),e>=s.compute_session_list.total_count)break}return Promise.resolve(d)}async get(e=["id","session_name","lang","created_at","terminated_at","status","status_info","occupied_slots","cpu_used","io_read_bytes","io_write_bytes","scaling_group"],t=""){let i,o;return i=`query($session_uuid: UUID!) {\n      compute_session(id:$session_uuid) {\n        ${(e=this.client._updateFieldCompatibilityByAPIVersion(e)).join(" ")}\n      }\n    }`,o={session_uuid:t},this.client.query(i,o)}async startService(e,t,i,o=null,s=null,n=null){let r=this.client.newSignedRequest("POST",`/session/${t}/start-service`,{login_session_token:e,app:i,port:o||void 0,envs:s||void 0,arguments:JSON.stringify(n)||void 0});return this.client._wrapWithPromise(r)}async commitSession(e=""){const t=this.client.newSignedRequest("POST",`/session/${e}/commit`,null);return this.client._wrapWithPromise(t)}async convertSessionToImage(e,t){const i=this.client.newSignedRequest("POST",`/session/${e}/imagify`,{image_name:t});return this.client._wrapWithPromise(i)}async getCommitSessionStatus(e=""){const t=this.client.newSignedRequest("GET",`/session/${e}/commit`);return this.client._wrapWithPromise(t)}}class Om{constructor(e){this.client=e,this.urlPrefix="/template/session"}async list(e=!1,t=null){let i=this.urlPrefix;if(e){i+=`?${new URLSearchParams({all:e?"true":"false"}).toString()}`}if(t){i+=`?${new URLSearchParams({group_id:t}).toString()}`}let o=this.client.newSignedRequest("GET",i,null);return this.client._wrapWithPromise(o)}}class Rm{constructor(e){this.client=e}listService(){}createService(){}getServiceInfo(){}termiateService(){}scaleRoutes(){}syncRoutings(){}updateRoute(){}deleteRoute(){}generateServiceToken(){}}class Nm{constructor(e){this.client=e,this.resources={},this._init_resource_values()}_init_resource_values(){this.resources.cpu={},this.resources.cpu.total=0,this.resources.cpu.used=0,this.resources.cpu.percent=0,this.resources.mem={},this.resources.mem.total=0,this.resources.mem.allocated=0,this.resources.mem.used=0,this.resources.gpu={},this.resources.gpu.total=0,this.resources.gpu.used=0,this.resources["cuda.device"]={},this.resources["cuda.device"].total=0,this.resources["cuda.device"].used=0,this.resources.fgpu={},this.resources.fgpu.total=0,this.resources.fgpu.used=0,this.resources["cuda.shares"]={},this.resources["cuda.shares"].total=0,this.resources["cuda.shares"].used=0,this.resources["rocm.device"]={},this.resources["rocm.device"].total=0,this.resources["rocm.device"].used=0,this.resources["tpu.device"]={},this.resources["tpu.device"].total=0,this.resources["tpu.device"].used=0,this.resources["ipu.device"]={},this.resources["ipu.device"].total=0,this.resources["ipu.device"].used=0,this.resources["atom.device"]={},this.resources["atom.device"].total=0,this.resources["atom.device"].used=0,this.resources["warboy.device"]={},this.resources["warboy.device"].total=0,this.resources["warboy.device"].used=0,this.resources["hyperaccel-lpu.device"]={},this.resources["hyperaccel-lpu.device"].total=0,this.resources["hyperaccel-lpu.device"].used=0,this.resources.agents={},this.resources.agents.total=0,this.resources.agents.using=0,this.agents=[]}async totalResourceInformation(e="ALIVE"){if(this.client.is_admin){let t=["id","addr","status","first_contact","cpu_cur_pct","mem_cur_bytes","occupied_slots","available_slots"];return this.client.agent.list(e,t).then((e=>(this._init_resource_values(),this.agents=e.agents,Object.keys(this.agents).map((e=>{let t=this.agents[e],i=JSON.parse(t.occupied_slots),o=JSON.parse(t.available_slots);"cpu"in o&&(this.resources.cpu.total=this.resources.cpu.total+Math.floor(Number(o.cpu))),"cpu"in i&&(this.resources.cpu.used=this.resources.cpu.used+Math.floor(Number(i.cpu))),this.resources.cpu.percent=this.resources.cpu.percent+parseFloat(t.cpu_cur_pct),void 0===i.mem&&(i.mem=0),this.resources.mem.total=parseFloat(this.resources.mem.total)+parseInt(this.client.utils.changeBinaryUnit(o.mem,"b")),this.resources.mem.allocated=parseInt(this.resources.mem.allocated)+parseInt(this.client.utils.changeBinaryUnit(i.mem,"b")),this.resources.mem.used=parseInt(this.resources.mem.used)+parseInt(this.client.utils.changeBinaryUnit(t.mem_cur_bytes,"b")),"cuda.device"in o&&(this.resources["cuda.device"].total=parseInt(this.resources["cuda.device"].total)+Math.floor(Number(o["cuda.device"]))),"cuda.device"in i&&(this.resources["cuda.device"].used=parseInt(this.resources["cuda.device"].used)+Math.floor(Number(i["cuda.device"]))),"cuda.shares"in o&&(this.resources["cuda.shares"].total=parseFloat(this.resources["cuda.shares"].total)+parseFloat(o["cuda.shares"])),"cuda.shares"in i&&(this.resources["cuda.shares"].used=parseFloat(this.resources["cuda.shares"].used)+parseFloat(i["cuda.shares"])),"rocm.device"in o&&(this.resources["rocm.device"].total=parseInt(this.resources["rocm.device"].total)+Math.floor(Number(o["rocm.device"]))),"rocm.device"in i&&(this.resources["rocm.device"].used=parseInt(this.resources["rocm.device"].used)+Math.floor(Number(i["rocm.device"]))),"tpu.device"in o&&(this.resources["tpu.device"].total=parseInt(this.resources["tpu.device"].total)+Math.floor(Number(o["tpu.device"]))),"tpu.device"in i&&(this.resources["tpu.device"].used=parseInt(this.resources["tpu.device"].used)+Math.floor(Number(i["tpu.device"]))),"ipu.device"in o&&(this.resources["ipu.device"].total=parseInt(this.resources["ipu.device"].total)+Math.floor(Number(o["ipu.device"]))),"ipu.device"in i&&(this.resources["ipu.device"].used=parseInt(this.resources["ipu.device"].used)+Math.floor(Number(i["ipu.device"]))),"atom.device"in o&&(this.resources["atom.device"].total=parseInt(this.resources["atom.device"].total)+Math.floor(Number(o["atom.device"]))),"atom.device"in i&&(this.resources["atom.device"].used=parseInt(this.resources["atom.device"].used)+Math.floor(Number(i["atom.device"]))),"warboy.device"in o&&(this.resources["warboy.device"].total=parseInt(this.resources["warboy.device"].total)+Math.floor(Number(o["warboy.device"]))),"warboy.device"in i&&(this.resources["warboy.device"].used=parseInt(this.resources["warboy.device"].used)+Math.floor(Number(i["warboy.device"]))),"hyperaccel-lpu.device"in o&&(this.resources["hyperaccel-lpu.device"].total=parseInt(this.resources["hyperaccel-lpu.device"].total)+Math.floor(Number(o["hyperaccel-lpu.device"]))),"hyperaccel-lpu.device"in i&&(this.resources["hyperaccel-lpu.device"].used=parseInt(this.resources["hyperaccel-lpu.device"].used)+Math.floor(Number(i["hyperaccel-lpu.device"]))),isNaN(this.resources.cpu.used)&&(this.resources.cpu.used=0),isNaN(this.resources.mem.used)&&(this.resources.mem.used=0),isNaN(this.resources.gpu.used)&&(this.resources.gpu.used=0),isNaN(this.resources.fgpu.used)&&(this.resources.fgpu.used=0)})),this.resources.gpu.total=this.resources["cuda.device"].total,this.resources.gpu.used=this.resources["cuda.device"].used,this.resources.fgpu.used=this.resources["cuda.shares"].used.toFixed(2),this.resources.fgpu.total=this.resources["cuda.shares"].total.toFixed(2),this.resources.agents.total=Object.keys(this.agents).length,this.resources.agents.using=Object.keys(this.agents).length,Promise.resolve(this.resources)))).catch((e=>{throw e}))}return Promise.resolve(!1)}async user_stats(){const e=this.client.newSignedRequest("GET","/resource/stats/user/month",null);return this.client._wrapWithPromise(e,!1,null,1e4)}}class Lm{constructor(e){this.client=e}async list(e=!0,t=!1,i=["id","name","description","is_active","created_at","modified_at","domain_name","type"],o=["GENERAL"]){let s,n;return this.client.supports("model-store")?(s=`query($is_active:Boolean, $type:[String!]) {  groups(is_active:$is_active, type:$type) { ${i.join(" ")} }}`,n={is_active:e,type:o},t&&(s=`query($domain_name: String, $is_active:Boolean, $type:[String!]) {  groups(domain_name: $domain_name, is_active:$is_active, type:$type) { ${i.join(" ")} }}`,n={is_active:e,domain_name:t,type:o})):(i=i.filter((e=>"type"!==e)),s=`query($is_active:Boolean) {  groups(is_active:$is_active) { ${i.join(" ")} }}`,n={is_active:e},t&&(s=`query($domain_name: String, $is_active:Boolean) {  groups(domain_name: $domain_name, is_active:$is_active) { ${i.join(" ")} }}`,n={is_active:e,domain_name:t})),this.client.query(s,n)}}class Mm{constructor(e){this.client=e}async get(e=!1,t=["name","description","is_active","created_at","modified_at","total_resource_slots","allowed_vfolder_hosts","allowed_docker_registries","integration_id","scaling_groups"]){let i,o;if(e)return i=`query($name: String) {  domain(name: $name) { ${t.join(" ")} }}`,o={name:e},this.client.query(i,o)}async list(e=["name","description","is_active","created_at","total_resource_slots","allowed_vfolder_hosts","allowed_docker_registries","integration_id"]){let t=`query { domains { ${e.join(" ")} }}`;return this.client.query(t,{})}async update(e=!1,t){if(!0===this.client.is_superadmin){let i="mutation($name: String!, $input: ModifyDomainInput!) {  modify_domain(name: $name, props: $input) {    ok msg  }}",o={name:e,input:t};return this.client.query(i,o)}return Promise.resolve(!1)}}class Um{constructor(e){this.client=e,this.urlPrefix="/resource"}attach_background_task(e){let t="/events/background-task?task_id="+e,i=this.client.newSignedRequest("GET",t,null);return new EventSource(i.uri,{withCredentials:!0})}async rescan_images(e=""){if(!0===this.client.is_admin){let t,i;return""!==e?(t="mutation($registry: String) {  rescan_images(registry: $registry) {    ok msg task_id   }}",i={registry:e=decodeURIComponent(e)}):(t="mutation {  rescan_images {    ok msg task_id   }}",i={}),this.client.query(t,i,null,6e5)}return Promise.resolve(!1)}async recalculate_usage(){if(!0===this.client.is_superadmin){let e=this.client.newSignedRequest("POST",`${this.urlPrefix}/recalculate-usage`,null);return this.client._wrapWithPromise(e,!1,null,6e4)}}}class Hm{constructor(e){this.client=e}async list(e=!0,t=["username","password","need_password_change","full_name","description","is_active","domain_name","role","groups {id name}","status","main_access_key"]){let i,o;if(this.client._apiVersionMajor<5)return i=this.client.is_admin?`\n        query($is_active:Boolean) {\n          users(is_active:$is_active) { ${t.join(" ")} }\n        }\n      `:`\n        query {\n          users { ${t.join(" ")} }\n        }\n      `,o=this.client.is_admin?{is_active:e}:{},this.client.query(i,o);{const s=100,n=[];this.client.supports("main-access-key")||(t=t.filter((e=>"main_access_key"!==e))),i=this.client.is_admin?`\n        query($offset:Int!, $limit:Int!, $is_active:Boolean) {\n          user_list(offset:$offset, limit:$limit, is_active:$is_active) {\n            items { ${t.join(" ")} }\n            total_count\n          }\n        }\n      `:`\n        query($offset:Int!, $limit:Int!) {\n          user_list(offset:$offset, limit:$limit) {\n            items { ${t.join(" ")} }\n            total_count\n          }\n        }\n      `;for(let t=0;t<10*s;t+=s){o=this.client.is_admin?{offset:t,limit:s,is_active:e}:{offset:t,limit:s};const r=await this.client.query(i,o);if(n.push(...r.user_list.items),t>=r.user_list.total_count)break}const r={users:n};return Promise.resolve(r)}}async get(e,t=["email","username","password","need_password_change","full_name","description","is_active","domain_name","role","groups {id name}"]){let i,o;return!this.client.supports("2FA")&&"2FA"in t&&t.splice(t.indexOf("2FA"),1),!0===this.client.is_admin?(i=`query($email:String) {  user (email:$email) { ${t.join(" ")} }}`,o={email:e}):(i=`query {  user { ${t.join(" ")} }}`,o={}),this.client.query(i,o)}async create(e=null,t){if(!0===this.client.is_admin){let i="mutation($email: String!, $input: UserInput!) {  create_user(email: $email, props: $input) {    ok msg  }}",o={email:e,input:t};return this.client.query(i,o,null,0,0,!0)}return Promise.resolve(!1)}async update(e=null,t){if(!0===this.client.is_superadmin){let i="mutation($email: String!, $input: ModifyUserInput!) {  modify_user(email: $email, props: $input) {    ok msg  }}",o={email:e,input:t};return this.client.query(i,o,null,0,0,!0)}return Promise.resolve(!1)}async delete(e){if(!0===this.client.is_superadmin){let t="mutation($email: String!) {  delete_user(email: $email) {    ok msg  }}",i={email:e};return this.client.query(t,i,null,0,0,!0)}return Promise.resolve(!1)}}class Dm{constructor(e){this.client=e}async list_available(){if(!0===this.client.is_superadmin){const e=["name","description","is_active","created_at","driver","driver_opts","scheduler","scheduler_opts"];this.client.isManagerVersionCompatibleWith("21.09.0")&&e.push("wsproxy_addr"),this.client.isManagerVersionCompatibleWith("22.09.22")&&e.push("is_public");const t=`query {  scaling_groups { ${e.join(" ")} }}`,i={};return this.client.query(t,i)}return Promise.resolve(!1)}async list(e="default"){const t=`/scaling-groups?group=${e}`,i=this.client.newSignedRequest("GET",t,null,null);return this.client._wrapWithPromise(i)}async getWsproxyVersion(e,t){if(!this.client.isManagerVersionCompatibleWith("21.09.0"))return Promise.resolve({wsproxy_version:"v1"});const i=`/scaling-groups/${e}/wsproxy-version?group=${t}`,o=this.client.newSignedRequest("GET",i,null,null);return this.client._wrapWithPromise(o)}async create(e,t){let i={name:e,input:t};return this.client.query("mutation($name: String!, $input: CreateScalingGroupInput!) {  create_scaling_group(name: $name, props: $input) {    ok msg  }}",i)}async associate_domain(e,t){let i={domain:e,scaling_group:t};return this.client.query("mutation($domain: String!, $scaling_group: String!) {  associate_scaling_group_with_domain(domain: $domain, scaling_group: $scaling_group) {    ok msg  }}",i)}async update(e,t){if(!this.client.isManagerVersionCompatibleWith("21.09.0")&&(delete t.wsproxy_addr,Object.keys(t).length<1))return Promise.resolve({modify_scaling_group:{ok:!0}});this.client.isManagerVersionCompatibleWith("22.09.22")||delete t.is_public;let i={name:e,input:t};return this.client.query("mutation($name: String!, $input: ModifyScalingGroupInput!) {  modify_scaling_group(name: $name, props: $input) {    ok msg  }}",i)}async delete(e){let t={name:e};return this.client.query("mutation($name: String!) {  delete_scaling_group(name: $name) {    ok msg  }}",t)}}class zm{constructor(e){this.client=e}async list(){const e=this.client.newSignedRequest("POST","/config/get",{key:"config/docker/registry",prefix:!0});return this.client._wrapWithPromise(e)}async set(e,t){let i=`config/docker/registry/${e=encodeURIComponent(e)}`;const o=this.client.newSignedRequest("POST","/config/set",{key:i,value:t});return this.client._wrapWithPromise(o)}async delete(e){e=encodeURIComponent(e);const t=this.client.newSignedRequest("POST","/config/delete",{key:`config/docker/registry/${e}`,prefix:!0});return this.client._wrapWithPromise(t)}}class Bm{constructor(e){this.client=e,this.config=null}async list(e=""){e=`config/${e}`;const t=this.client.newSignedRequest("POST","/config/get",{key:e,prefix:!0});return this.client._wrapWithPromise(t)}async get(e){e=`config/${e}`;const t=this.client.newSignedRequest("POST","/config/get",{key:e,prefix:!1});return this.client._wrapWithPromise(t)}async set(e,t){e=`config/${e}`;const i=this.client.newSignedRequest("POST","/config/set",{key:e,value:t});return this.client._wrapWithPromise(i)}async delete(e,t=!1){e=`config/${e}`;const i=this.client.newSignedRequest("POST","/config/delete",{key:`${e}`,prefix:t});return this.client._wrapWithPromise(i)}}class Fm{constructor(e){this.client=e,this.config=null}async get_announcement(){const e=this.client.newSignedRequest("GET","/manager/announcement",null);return this.client._wrapWithPromise(e)}async update_announcement(e=!0,t){const i=this.client.newSignedRequest("POST","/manager/announcement",{enabled:e,message:t});return this.client._wrapWithPromise(i)}}class jm{constructor(e){this.client=e,this.config=null}async get_bootstrap_script(){if(!this.client._config.accessKey)throw"Your access key is not set";const e=this.client.newSignedRequest("GET","/user-config/bootstrap-script");return this.client._wrapWithPromise(e)}async update_bootstrap_script(e){const t=this.client.newSignedRequest("POST","/user-config/bootstrap-script",{script:e});return this.client._wrapWithPromise(t)}async create(e="",t){if(!this.client._config.accessKey)throw"Your access key is not set";let i={path:t,data:e,permission:"644"};const o=this.client.newSignedRequest("POST","/user-config/dotfiles",i);return this.client._wrapWithPromise(o)}async get(){if(!this.client._config.accessKey)throw"Your access key is not set";const e=this.client.newSignedRequest("GET","/user-config/dotfiles");return this.client._wrapWithPromise(e)}async update(e,t){let i={data:e,path:t,permission:"644"};const o=this.client.newSignedRequest("PATCH","/user-config/dotfiles",i);return this.client._wrapWithPromise(o)}async delete(e){let t={path:e};const i=this.client.newSignedRequest("DELETE","/user-config/dotfiles",t);return this.client._wrapWithPromise(i)}}class Vm{constructor(e){this.client=e,this.config=null}async getLicense(){if(!0!==this.client.is_superadmin)return Promise.resolve(void 0);if(void 0===this.certificate){const e=this.client.newSignedRequest("GET","/license");let t=await this.client._wrapWithPromise(e).catch((e=>404==e.statusCode?Promise.resolve(null):Promise.resolve(void 0)));return t&&(this.certificate=t.certificate,this.certificate.valid="valid"===t.status),Promise.resolve(this.certificate)}}}class qm{constructor(e){this.client=e,this.config=null}async ping(){const e=this.client.newSignedRequest("GET","/cloud/ping");return this.client._wrapWithPromise(e)}async verify_email(e){const t={verification_code:e},i=this.client.newSignedRequest("POST","/cloud/verify-email",t);return this.client._wrapWithPromise(i)}async send_verification_email(e){const t={email:e},i=this.client.newSignedRequest("POST","/cloud/send-verification-email",t);return this.client._wrapWithPromise(i)}async send_password_change_email(e){const t={email:e},i=this.client.newSignedRequest("POST","/cloud/send-password-change-email",t);return this.client._wrapWithPromise(i)}async change_password(e,t,i){const o={email:e,password:t,token:i},s=this.client.newSignedRequest("POST","/cloud/change-password",o);return this.client._wrapWithPromise(s)}}class Wm{constructor(e){this.client=e,this.tokenName="pipeline-token",this.urlPrefix="/api/pipelines"}async login(e){const t=this.client.newSignedRequest("POST","/auth-token/",e,"pipeline");let i;try{if(i=await this.client._wrapWithPromise(t,!1,null,0,0,{log:JSON.stringify({username:e.username,password:"********"})}),i.hasOwnProperty("token")){const e=i.token;return document.cookie=`${this.tokenName}=${e}; path=/`,Promise.resolve(!1)}return Promise.resolve(!1)}catch(e){throw console.log(e),{title:"No Pipeline Server found at API Endpoint.",message:"Authentication failed. Check information and pipeline server status."}}}async logout(){const e=this.client.newSignedRequest("DELETE","/auth-token/",null,"pipeline");try{await this.client._wrapWithPromise(e)}catch(e){throw{title:"Pipeline Logout Failed.",message:"Pipeline Logout failed. Check information and pipeline server status."}}finally{this._removeCookieByName(this.tokenName)}}async check_login(){let e=this.client.newSignedRequest("GET","/api/users/me/",null,"pipeline");return this.client._wrapWithPromise(e)}getPipelineToken(){return this._getCookieByName(this.tokenName)}async list(){let e=this.client.newSignedRequest("GET",`${this.urlPrefix}/`,null,"pipeline");return this.client._wrapWithPromise(e)}async info(e){let t=this.client.newSignedRequest("GET",`${this.urlPrefix}/${e}/`,null,"pipeline");return this.client._wrapWithPromise(t)}async create(e){let t=this.client.newSignedRequest("POST",`${this.urlPrefix}/`,e,"pipeline");return this.client._wrapWithPromise(t)}async update(e,t){let i=this.client.newSignedRequest("PATCH",`${this.urlPrefix}/${e}/`,t,"pipeline");return this.client._wrapWithPromise(i)}async delete(e){let t=this.client.newSignedRequest("DELETE",`${this.urlPrefix}/${e}/`,null,"pipeline");return this.client._wrapWithPromise(t)}async run(e,t){let i=this.client.newSignedRequest("POST",`${this.urlPrefix}/${e}/run/`,t,"pipeline");return this.client._wrapWithPromise(i)}_getCookieByName(e=""){let t="";if(document.cookie&&""!==document.cookie){const i=document.cookie.split(";");for(let o=0;o<i.length;o++){const s=i[o].trim();if(s.substring(0,e.length+1)===e+"="){t=decodeURIComponent(s.substring(e.length+1));break}}}return t}_removeCookieByName(e=""){""!==e&&(document.cookie=`${e}=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;`)}}class Gm{constructor(e){this.client=e,this.urlPrefix="/api/pipeline-jobs"}async list(){let e=this.client.newSignedRequest("GET",`${this.urlPrefix}/`,null,"pipeline");return this.client._wrapWithPromise(e)}async info(e){let t=this.client.newSignedRequest("GET",`${this.urlPrefix}/${e}/`,null,"pipeline");return this.client._wrapWithPromise(t)}async stop(e){let t=this.client.newSignedRequest("DELETE",`${this.urlPrefix}/${e}/stop/`,null,"pipeline");return this.client._wrapWithPromise(t)}}class Km{constructor(e){this.client=e,this.urlPrefix="/api/task-instances"}async list(e=""){let t=`${this.urlPrefix}`;t+=e?`/?pipeline_job=${e}`:"/";let i=this.client.newSignedRequest("GET",t,null,"pipeline");return this.client._wrapWithPromise(i)}async info(e){let t=this.client.newSignedRequest("GET",`${this.urlPrefix}/${e}/`,null,"pipeline");return this.client._wrapWithPromise(t)}async create(e){let t=this.client.newSignedRequest("POST",`${this.urlPrefix}/`,e,"pipeline");return this.client._wrapWithPromise(t)}async update(e,t){let i=this.client.newSignedRequest("PATCH",`${this.urlPrefix}/${e}/`,t,"pipeline");return this.client._wrapWithPromise(i)}async delete(e){let t=this.client.newSignedRequest("DELETE",`${this.urlPrefix}/${e}/`,null,"pipeline");return this.client._wrapWithPromise(t)}}class Xm{constructor(e){this.client=e,this.config=null}async ping(){const e=this.client.newSignedRequest("GET","/eduapp/ping");return this.client._wrapWithPromise(e)}async get_mount_folders(){const e=this.client.newSignedRequest("GET","/eduapp/mounts");return this.client._wrapWithPromise(e)}async get_user_projects(){const e=this.client.newSignedRequest("GET","/eduapp/projects");return this.client._wrapWithPromise(e)}async get_user_credential(e){const t=this.client.newSignedRequest("GET",`/eduapp/credential?sToken=${e}`);return this.client._wrapWithPromise(t)}}class Ym{constructor(e){this.client=e}changeBinaryUnit(e,t="g",i="b"){if(null==e)return e;let o;const s=["b","k","m","g","t","p","auto"],n=["B","KiB","MiB","GiB","TiB","PiB"];if(!s.includes(t))return!1;if((e=e.toString()).indexOf(" ")>=0){let t=e.split(/(\s+)/);e=n.includes(t[2])?t[0]+s[n.indexOf(t[2])]:t[0]}return s.includes(e.substring(e.length-1))?(o=e.substring(e.length-1),e=e.slice(0,-1)):o=i,e*Math.pow(1024,Math.floor(s.indexOf(o)-s.indexOf(t)))}elapsedTime(e,t){let i,o=new Date(e);i=null===t?new Date:new Date(t);let s=Math.floor((i.getTime()-o.getTime())/1e3),n=Math.floor(s/86400);s-=86400*n;let r=Math.floor(s/3600);s-=3600*r;let a=Math.floor(s/60);s-=60*a;let l=s,d="";return void 0!==n&&n>0&&(d=d+String(n)+"d"),void 0!==r&&(d=d+this._padding_zeros(r,2)+":"),void 0!==a&&(d=d+this._padding_zeros(a,2)+":"),d+this._padding_zeros(l,2)+""}elapsedTimeToTotalSeconds(e){let t,i,o,s;return e.includes("d")?[t,e]=e.split("d"):t=0,[i,o,s]=e.split(":"),86400*parseInt(t)+3600*parseInt(i)+60*parseInt(o)+parseInt(s)}_padding_zeros(e,t){return(e+="").length>=t?e:new Array(t-e.length+1).join("0")+e}clamp(e,t,i){return Math.max(t,Math.min(e,i))}gqlToObject(e,t){let i={};return e.forEach((function(e){i[e[t]]=e})),i}gqlToList(e,t){let i=[];return e.forEach((function(e){i.push(e[t])})),i}}Object.defineProperty(wm,"ERR_SERVER",{value:0,writable:!1,enumerable:!0,configurable:!1}),Object.defineProperty(wm,"ERR_RESPONSE",{value:1,writable:!1,enumerable:!0,configurable:!1}),Object.defineProperty(wm,"ERR_REQUEST",{value:2,writable:!1,enumerable:!0,configurable:!1}),Object.defineProperty(wm,"ERR_ABORT",{value:3,writable:!1,enumerable:!0,configurable:!1}),Object.defineProperty(wm,"ERR_TIMEOUT",{value:4,writable:!1,enumerable:!0,configurable:!1}),Object.defineProperty(wm,"ERR_UNKNOWN",{value:99,writable:!1,enumerable:!0,configurable:!1});const Jm={Client:wm,ClientConfig:xm};let Zm=class extends ke{constructor(){super(...arguments),this.app="",this.description="",this.color="green",this.appColor="grey",this.ui="flat",this.customColorPalette=Object()}static get styles(){return[Se,Te,Pe,Ie,A`
        .text {
          font-family: 'DejaVu Sans', Verdana, Geneva, sans-serif;
          font-size: 11px;
          line-height: 11px;
          padding: 4px;
          display: block;
          color: #ffffff;
        }

        .round {
          border-radius: 4px;
        }
        .round-left {
          border-top-left-radius: 4px;
          border-bottom-left-radius: 4px;
        }
        .round-right {
          border-top-right-radius: 4px;
          border-bottom-right-radius: 4px;
        }
        .app,
        .desc {
          white-space: normal;
          height: fit-content;
          width: var(--lablup-shield-component-width, auto);
        }
      `]}get _colorScheme(){let e={brightgreen:{colorB:"#44cc11",colorT:"#222222"},lightgreen:{colorB:"#f3f5d0",colorT:"#222222"},green:{colorB:"#97ca00",colorT:"#ffffff"},darkgreen:{colorB:"#457b3b",colorT:"#ffffff"},yellow:{colorB:"#dfb317",colorT:"#ffffff"},yellowgreen:{colorB:"#a4a61d",colorT:"#ffffff"},orange:{colorB:"#fe7d37",colorT:"#ffffff"},red:{colorB:"#e05d44",colorT:"#ffffff"},blue:{colorB:"#007ec6",colorT:"#ffffff"},purple:{colorB:"#ab47bc",colorT:"#ffffff"},lightblue:{colorB:"#caedfc",colorT:"#222222"},grey:{colorB:"#555555",colorT:"#ffffff"},gray:{colorB:"#555555",colorT:"#ffffff"},lightgrey:{colorB:"#9f9f9f",colorT:"#ffffff"},lightgray:{colorB:"#9f9f9f",colorT:"#ffffff"},cyan:{colorB:"#87e8de",colorT:"#222222"}};return this.customColorPalette&&Object.keys(this.customColorPalette).length>0&&(e=Object.assign(e,this.customColorPalette)),e}render(){return ae`
      <div class="shields layout horizontal flex">
        <div id="app" class="app horizontal layout center">
          <slot name="app-icon"></slot>
          <span id="app-text" class="text app-text">${this.app}</span>
        </div>
        <div id="description" class="desc horizontal layout center">
          <slot name="desc-icon"></slot>
          <span id="desc-text" class="text desc-text">${this.description}</span>
        </div>
      </div>
    `}firstUpdated(){this._colorChanged(),this._appColorChanged(),this._formatItem(),this._descriptionChanged(),""==this.app&&(this.appContainer.style.display="none")}connectedCallback(){super.connectedCallback()}attributeChangedCallback(e,t,i){super.attributeChangedCallback(e,t,i),"app"==e&&(this.app=i,this._appChanged()),"description"==e&&(this.description=i,this._descriptionChanged())}updated(e){e.has("color")&&this._colorChanged(),e.has("appColor")&&this._appColorChanged()}_classChanged(){this._formatItem()}_colorChanged(){var e,t;this._colorScheme[this.color]&&((null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelector(".desc")).style.backgroundColor=this._colorScheme[this.color].colorB,this._colorScheme[this.color].colorT&&((null===(t=this.shadowRoot)||void 0===t?void 0:t.querySelector(".desc-text")).style.color=this._colorScheme[this.color].colorT||""))}_appColorChanged(){var e,t,i;this._colorScheme[this.appColor]?((null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelector(".app")).style.backgroundColor=this._colorScheme[this.appColor].colorB,this._colorScheme[this.appColor].colorT&&((null===(t=this.shadowRoot)||void 0===t?void 0:t.querySelector(".app-text")).style.color=this._colorScheme[this.appColor].colorT||"")):(null===(i=this.shadowRoot)||void 0===i?void 0:i.querySelector(".app")).style.backgroundColor="#555"}async _appChanged(){await this.updateComplete,void 0===this.app||"undefined"==this.app||""===this.app?this.appContainer.style.display="none":this.appContainer.style.display="block"}async _descriptionChanged(){await this.updateComplete,void 0===this.description||"undefined"==this.description||""===this.description?this.descriptionContainer.style.display="none":this.descriptionContainer.style.display="block"}_formatItem(){var e;["round"].indexOf(this.ui)>=0&&((null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelector(".shields")).classList.add(this.ui),void 0===this.description||"undefined"==this.description||""===this.description?void 0===this.app||"undefined"==this.app||""===this.app||this.appContainer.classList.add(this.ui):void 0===this.app||"undefined"==this.app||""===this.app?this.descriptionContainer.classList.add(this.ui):(this.appContainer.classList.add(this.ui+"-left"),this.descriptionContainer.classList.add(this.ui+"-right")))}};o([Zt({type:String})],Zm.prototype,"app",void 0),o([Zt({type:String})],Zm.prototype,"description",void 0),o([Zt({type:String})],Zm.prototype,"color",void 0),o([Zt({type:String})],Zm.prototype,"appColor",void 0),o([Zt({type:String})],Zm.prototype,"ui",void 0),o([Zt({type:Object})],Zm.prototype,"customColorPalette",void 0),o([ei("#app")],Zm.prototype,"appContainer",void 0),o([ei("#description")],Zm.prototype,"descriptionContainer",void 0),Zm=o([Xt("lablup-shields")],Zm);
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */
const Qm=(e,t)=>"method"===t.kind&&t.descriptor&&!("value"in t.descriptor)?{...t,finisher(i){i.createProperty(t.key,e)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:t.key,initializer(){"function"==typeof t.initializer&&(this[t.key]=t.initializer.call(this))},finisher(i){i.createProperty(t.key,e)}},eg=(e,t,i)=>{t.constructor.createProperty(i,e)};
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */function tg(e){return(t,i)=>void 0!==i?eg(e,t,i):Qm(e,t)
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */}function ig(e){return tg({...e,state:!0})}
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */const og=({finisher:e,descriptor:t})=>(i,o)=>{var s;if(void 0===o){const o=null!==(s=i.originalKey)&&void 0!==s?s:i.key,n=null!=t?{kind:"method",placement:"prototype",key:o,descriptor:t(i.key)}:{...i,key:o};return null!=e&&(n.finisher=function(t){e(t,o)}),n}{const s=i.constructor;void 0!==t&&Object.defineProperty(i,o,t(o)),null==e||e(s,o)}}
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */;
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */
function sg(e,t){return og({descriptor:t=>{const i={get(){var t,i;return null!==(i=null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector(e))&&void 0!==i?i:null},enumerable:!0,configurable:!0};return i}})}
/**
 * @license
 * Copyright 2021 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */var ng;null===(ng=window.HTMLSlotElement)||void 0===ng||ng.prototype.assignedElements;
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */
const rg=(e,t)=>"method"===t.kind&&t.descriptor&&!("value"in t.descriptor)?{...t,finisher(i){i.createProperty(t.key,e)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:t.key,initializer(){"function"==typeof t.initializer&&(this[t.key]=t.initializer.call(this))},finisher(i){i.createProperty(t.key,e)}};
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */function ag(e){return(t,i)=>void 0!==i?((e,t,i)=>{t.constructor.createProperty(i,e)})(e,t,i):rg(e,t)
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */}
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */
function lg(e,t){return(({finisher:e,descriptor:t})=>(i,o)=>{var s;if(void 0===o){const o=null!==(s=i.originalKey)&&void 0!==s?s:i.key,n=null!=t?{kind:"method",placement:"prototype",key:o,descriptor:t(i.key)}:{...i,key:o};return null!=e&&(n.finisher=function(t){e(t,o)}),n}{const s=i.constructor;void 0!==t&&Object.defineProperty(i,o,t(o)),null==e||e(s,o)}})({descriptor:t=>{const i={get(){var t,i;return null!==(i=null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector(e))&&void 0!==i?i:null},enumerable:!0,configurable:!0};return i}})}
/**
 * @license
 * Copyright 2021 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */var dg;null===(dg=window.HTMLSlotElement)||void 0===dg||dg.prototype.assignedElements;
/**
 * @license
 * Copyright 2018 Google Inc.
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 * THE SOFTWARE.
 */
var cg={NOTCH_ELEMENT_SELECTOR:".mdc-notched-outline__notch"},hg={NOTCH_ELEMENT_PADDING:8},pg={NO_LABEL:"mdc-notched-outline--no-label",OUTLINE_NOTCHED:"mdc-notched-outline--notched",OUTLINE_UPGRADED:"mdc-notched-outline--upgraded"},ug=function(e){function o(t){return e.call(this,i(i({},o.defaultAdapter),t))||this}return t(o,e),Object.defineProperty(o,"strings",{get:function(){return cg},enumerable:!1,configurable:!0}),Object.defineProperty(o,"cssClasses",{get:function(){return pg},enumerable:!1,configurable:!0}),Object.defineProperty(o,"numbers",{get:function(){return hg},enumerable:!1,configurable:!0}),Object.defineProperty(o,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},setNotchWidthProperty:function(){},removeNotchWidthProperty:function(){}}},enumerable:!1,configurable:!0}),o.prototype.notch=function(e){var t=o.cssClasses.OUTLINE_NOTCHED;e>0&&(e+=hg.NOTCH_ELEMENT_PADDING),this.adapter.setNotchWidthProperty(e),this.adapter.addClass(t)},o.prototype.closeNotch=function(){var e=o.cssClasses.OUTLINE_NOTCHED;this.adapter.removeClass(e),this.adapter.removeNotchWidthProperty()},o}(xo);
/**
 * @license
 * Copyright 2019 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */
const mg=window,gg=mg.ShadowRoot&&(void 0===mg.ShadyCSS||mg.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,fg=Symbol(),_g=new WeakMap;let vg=class{constructor(e,t,i){if(this._$cssResult$=!0,i!==fg)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o;const t=this.t;if(gg&&void 0===e){const i=void 0!==t&&1===t.length;i&&(e=_g.get(t)),void 0===e&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),i&&_g.set(t,e))}return e}toString(){return this.cssText}};const bg=gg?e=>e:e=>e instanceof CSSStyleSheet?(e=>{let t="";for(const i of e.cssRules)t+=i.cssText;return(e=>new vg("string"==typeof e?e:e+"",void 0,fg))(t)})(e):e
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */;var yg;const xg=window,wg=xg.trustedTypes,$g=wg?wg.emptyScript:"",Ag=xg.reactiveElementPolyfillSupport,kg={toAttribute(e,t){switch(t){case Boolean:e=e?$g:null;break;case Object:case Array:e=null==e?e:JSON.stringify(e)}return e},fromAttribute(e,t){let i=e;switch(t){case Boolean:i=null!==e;break;case Number:i=null===e?null:Number(e);break;case Object:case Array:try{i=JSON.parse(e)}catch(e){i=null}}return i}},Eg=(e,t)=>t!==e&&(t==t||e==e),Sg={attribute:!0,type:String,converter:kg,reflect:!1,hasChanged:Eg},Cg="finalized";let Tg=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this._$Eu()}static addInitializer(e){var t;this.finalize(),(null!==(t=this.h)&&void 0!==t?t:this.h=[]).push(e)}static get observedAttributes(){this.finalize();const e=[];return this.elementProperties.forEach(((t,i)=>{const o=this._$Ep(i,t);void 0!==o&&(this._$Ev.set(o,i),e.push(o))})),e}static createProperty(e,t=Sg){if(t.state&&(t.attribute=!1),this.finalize(),this.elementProperties.set(e,t),!t.noAccessor&&!this.prototype.hasOwnProperty(e)){const i="symbol"==typeof e?Symbol():"__"+e,o=this.getPropertyDescriptor(e,i,t);void 0!==o&&Object.defineProperty(this.prototype,e,o)}}static getPropertyDescriptor(e,t,i){return{get(){return this[t]},set(o){const s=this[e];this[t]=o,this.requestUpdate(e,s,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)||Sg}static finalize(){if(this.hasOwnProperty(Cg))return!1;this[Cg]=!0;const e=Object.getPrototypeOf(this);if(e.finalize(),void 0!==e.h&&(this.h=[...e.h]),this.elementProperties=new Map(e.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const e=this.properties,t=[...Object.getOwnPropertyNames(e),...Object.getOwnPropertySymbols(e)];for(const i of t)this.createProperty(i,e[i])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(e){const t=[];if(Array.isArray(e)){const i=new Set(e.flat(1/0).reverse());for(const e of i)t.unshift(bg(e))}else void 0!==e&&t.push(bg(e));return t}static _$Ep(e,t){const i=t.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof e?e.toLowerCase():void 0}_$Eu(){var e;this._$E_=new Promise((e=>this.enableUpdating=e)),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(e=this.constructor.h)||void 0===e||e.forEach((e=>e(this)))}addController(e){var t,i;(null!==(t=this._$ES)&&void 0!==t?t:this._$ES=[]).push(e),void 0!==this.renderRoot&&this.isConnected&&(null===(i=e.hostConnected)||void 0===i||i.call(e))}removeController(e){var t;null===(t=this._$ES)||void 0===t||t.splice(this._$ES.indexOf(e)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach(((e,t)=>{this.hasOwnProperty(t)&&(this._$Ei.set(t,this[t]),delete this[t])}))}createRenderRoot(){var e;const t=null!==(e=this.shadowRoot)&&void 0!==e?e:this.attachShadow(this.constructor.shadowRootOptions);return((e,t)=>{gg?e.adoptedStyleSheets=t.map((e=>e instanceof CSSStyleSheet?e:e.styleSheet)):t.forEach((t=>{const i=document.createElement("style"),o=mg.litNonce;void 0!==o&&i.setAttribute("nonce",o),i.textContent=t.cssText,e.appendChild(i)}))})(t,this.constructor.elementStyles),t}connectedCallback(){var e;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(e=this._$ES)||void 0===e||e.forEach((e=>{var t;return null===(t=e.hostConnected)||void 0===t?void 0:t.call(e)}))}enableUpdating(e){}disconnectedCallback(){var e;null===(e=this._$ES)||void 0===e||e.forEach((e=>{var t;return null===(t=e.hostDisconnected)||void 0===t?void 0:t.call(e)}))}attributeChangedCallback(e,t,i){this._$AK(e,i)}_$EO(e,t,i=Sg){var o;const s=this.constructor._$Ep(e,i);if(void 0!==s&&!0===i.reflect){const n=(void 0!==(null===(o=i.converter)||void 0===o?void 0:o.toAttribute)?i.converter:kg).toAttribute(t,i.type);this._$El=e,null==n?this.removeAttribute(s):this.setAttribute(s,n),this._$El=null}}_$AK(e,t){var i;const o=this.constructor,s=o._$Ev.get(e);if(void 0!==s&&this._$El!==s){const e=o.getPropertyOptions(s),n="function"==typeof e.converter?{fromAttribute:e.converter}:void 0!==(null===(i=e.converter)||void 0===i?void 0:i.fromAttribute)?e.converter:kg;this._$El=s,this[s]=n.fromAttribute(t,e.type),this._$El=null}}requestUpdate(e,t,i){let o=!0;void 0!==e&&(((i=i||this.constructor.getPropertyOptions(e)).hasChanged||Eg)(this[e],t)?(this._$AL.has(e)||this._$AL.set(e,t),!0===i.reflect&&this._$El!==e&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(e,i))):o=!1),!this.isUpdatePending&&o&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(e){Promise.reject(e)}const e=this.scheduleUpdate();return null!=e&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var e;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach(((e,t)=>this[t]=e)),this._$Ei=void 0);let t=!1;const i=this._$AL;try{t=this.shouldUpdate(i),t?(this.willUpdate(i),null===(e=this._$ES)||void 0===e||e.forEach((e=>{var t;return null===(t=e.hostUpdate)||void 0===t?void 0:t.call(e)})),this.update(i)):this._$Ek()}catch(e){throw t=!1,this._$Ek(),e}t&&this._$AE(i)}willUpdate(e){}_$AE(e){var t;null===(t=this._$ES)||void 0===t||t.forEach((e=>{var t;return null===(t=e.hostUpdated)||void 0===t?void 0:t.call(e)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(e){return!0}update(e){void 0!==this._$EC&&(this._$EC.forEach(((e,t)=>this._$EO(t,this[t],e))),this._$EC=void 0),this._$Ek()}updated(e){}firstUpdated(e){}};
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */
var Pg;Tg[Cg]=!0,Tg.elementProperties=new Map,Tg.elementStyles=[],Tg.shadowRootOptions={mode:"open"},null==Ag||Ag({ReactiveElement:Tg}),(null!==(yg=xg.reactiveElementVersions)&&void 0!==yg?yg:xg.reactiveElementVersions=[]).push("1.6.3");const Ig=window,Og=Ig.trustedTypes,Rg=Og?Og.createPolicy("lit-html",{createHTML:e=>e}):void 0,Ng="$lit$",Lg=`lit$${(Math.random()+"").slice(9)}$`,Mg="?"+Lg,Ug=`<${Mg}>`,Hg=document,Dg=()=>Hg.createComment(""),zg=e=>null===e||"object"!=typeof e&&"function"!=typeof e,Bg=Array.isArray,Fg="[ \t\n\f\r]",jg=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Vg=/-->/g,qg=/>/g,Wg=RegExp(`>|${Fg}(?:([^\\s"'>=/]+)(${Fg}*=${Fg}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),Gg=/'/g,Kg=/"/g,Xg=/^(?:script|style|textarea|title)$/i,Yg=(e=>(t,...i)=>({_$litType$:e,strings:t,values:i}))(1),Jg=Symbol.for("lit-noChange"),Zg=Symbol.for("lit-nothing"),Qg=new WeakMap,ef=Hg.createTreeWalker(Hg,129,null,!1);function tf(e,t){if(!Array.isArray(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==Rg?Rg.createHTML(t):t}let of=class e{constructor({strings:t,_$litType$:i},o){let s;this.parts=[];let n=0,r=0;const a=t.length-1,l=this.parts,[d,c]=((e,t)=>{const i=e.length-1,o=[];let s,n=2===t?"<svg>":"",r=jg;for(let t=0;t<i;t++){const i=e[t];let a,l,d=-1,c=0;for(;c<i.length&&(r.lastIndex=c,l=r.exec(i),null!==l);)c=r.lastIndex,r===jg?"!--"===l[1]?r=Vg:void 0!==l[1]?r=qg:void 0!==l[2]?(Xg.test(l[2])&&(s=RegExp("</"+l[2],"g")),r=Wg):void 0!==l[3]&&(r=Wg):r===Wg?">"===l[0]?(r=null!=s?s:jg,d=-1):void 0===l[1]?d=-2:(d=r.lastIndex-l[2].length,a=l[1],r=void 0===l[3]?Wg:'"'===l[3]?Kg:Gg):r===Kg||r===Gg?r=Wg:r===Vg||r===qg?r=jg:(r=Wg,s=void 0);const h=r===Wg&&e[t+1].startsWith("/>")?" ":"";n+=r===jg?i+Ug:d>=0?(o.push(a),i.slice(0,d)+Ng+i.slice(d)+Lg+h):i+Lg+(-2===d?(o.push(void 0),t):h)}return[tf(e,n+(e[i]||"<?>")+(2===t?"</svg>":"")),o]})(t,i);if(this.el=e.createElement(d,o),ef.currentNode=this.el.content,2===i){const e=this.el.content,t=e.firstChild;t.remove(),e.append(...t.childNodes)}for(;null!==(s=ef.nextNode())&&l.length<a;){if(1===s.nodeType){if(s.hasAttributes()){const e=[];for(const t of s.getAttributeNames())if(t.endsWith(Ng)||t.startsWith(Lg)){const i=c[r++];if(e.push(t),void 0!==i){const e=s.getAttribute(i.toLowerCase()+Ng).split(Lg),t=/([.?@])?(.*)/.exec(i);l.push({type:1,index:n,name:t[2],strings:e,ctor:"."===t[1]?lf:"?"===t[1]?cf:"@"===t[1]?hf:af})}else l.push({type:6,index:n})}for(const t of e)s.removeAttribute(t)}if(Xg.test(s.tagName)){const e=s.textContent.split(Lg),t=e.length-1;if(t>0){s.textContent=Og?Og.emptyScript:"";for(let i=0;i<t;i++)s.append(e[i],Dg()),ef.nextNode(),l.push({type:2,index:++n});s.append(e[t],Dg())}}}else if(8===s.nodeType)if(s.data===Mg)l.push({type:2,index:n});else{let e=-1;for(;-1!==(e=s.data.indexOf(Lg,e+1));)l.push({type:7,index:n}),e+=Lg.length-1}n++}}static createElement(e,t){const i=Hg.createElement("template");return i.innerHTML=e,i}};function sf(e,t,i=e,o){var s,n,r,a;if(t===Jg)return t;let l=void 0!==o?null===(s=i._$Co)||void 0===s?void 0:s[o]:i._$Cl;const d=zg(t)?void 0:t._$litDirective$;return(null==l?void 0:l.constructor)!==d&&(null===(n=null==l?void 0:l._$AO)||void 0===n||n.call(l,!1),void 0===d?l=void 0:(l=new d(e),l._$AT(e,i,o)),void 0!==o?(null!==(r=(a=i)._$Co)&&void 0!==r?r:a._$Co=[])[o]=l:i._$Cl=l),void 0!==l&&(t=sf(e,l._$AS(e,t.values),l,o)),t}let nf=class{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){var t;const{el:{content:i},parts:o}=this._$AD,s=(null!==(t=null==e?void 0:e.creationScope)&&void 0!==t?t:Hg).importNode(i,!0);ef.currentNode=s;let n=ef.nextNode(),r=0,a=0,l=o[0];for(;void 0!==l;){if(r===l.index){let t;2===l.type?t=new rf(n,n.nextSibling,this,e):1===l.type?t=new l.ctor(n,l.name,l.strings,this,e):6===l.type&&(t=new pf(n,this,e)),this._$AV.push(t),l=o[++a]}r!==(null==l?void 0:l.index)&&(n=ef.nextNode(),r++)}return ef.currentNode=Hg,s}v(e){let t=0;for(const i of this._$AV)void 0!==i&&(void 0!==i.strings?(i._$AI(e,i,t),t+=i.strings.length-2):i._$AI(e[t])),t++}},rf=class e{constructor(e,t,i,o){var s;this.type=2,this._$AH=Zg,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=i,this.options=o,this._$Cp=null===(s=null==o?void 0:o.isConnected)||void 0===s||s}get _$AU(){var e,t;return null!==(t=null===(e=this._$AM)||void 0===e?void 0:e._$AU)&&void 0!==t?t:this._$Cp}get parentNode(){let e=this._$AA.parentNode;const t=this._$AM;return void 0!==t&&11===(null==e?void 0:e.nodeType)&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=sf(this,e,t),zg(e)?e===Zg||null==e||""===e?(this._$AH!==Zg&&this._$AR(),this._$AH=Zg):e!==this._$AH&&e!==Jg&&this._(e):void 0!==e._$litType$?this.g(e):void 0!==e.nodeType?this.$(e):(e=>Bg(e)||"function"==typeof(null==e?void 0:e[Symbol.iterator]))(e)?this.T(e):this._(e)}k(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}$(e){this._$AH!==e&&(this._$AR(),this._$AH=this.k(e))}_(e){this._$AH!==Zg&&zg(this._$AH)?this._$AA.nextSibling.data=e:this.$(Hg.createTextNode(e)),this._$AH=e}g(e){var t;const{values:i,_$litType$:o}=e,s="number"==typeof o?this._$AC(e):(void 0===o.el&&(o.el=of.createElement(tf(o.h,o.h[0]),this.options)),o);if((null===(t=this._$AH)||void 0===t?void 0:t._$AD)===s)this._$AH.v(i);else{const e=new nf(s,this),t=e.u(this.options);e.v(i),this.$(t),this._$AH=e}}_$AC(e){let t=Qg.get(e.strings);return void 0===t&&Qg.set(e.strings,t=new of(e)),t}T(t){Bg(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let o,s=0;for(const n of t)s===i.length?i.push(o=new e(this.k(Dg()),this.k(Dg()),this,this.options)):o=i[s],o._$AI(n),s++;s<i.length&&(this._$AR(o&&o._$AB.nextSibling,s),i.length=s)}_$AR(e=this._$AA.nextSibling,t){var i;for(null===(i=this._$AP)||void 0===i||i.call(this,!1,!0,t);e&&e!==this._$AB;){const t=e.nextSibling;e.remove(),e=t}}setConnected(e){var t;void 0===this._$AM&&(this._$Cp=e,null===(t=this._$AP)||void 0===t||t.call(this,e))}},af=class{constructor(e,t,i,o,s){this.type=1,this._$AH=Zg,this._$AN=void 0,this.element=e,this.name=t,this._$AM=o,this.options=s,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=Zg}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(e,t=this,i,o){const s=this.strings;let n=!1;if(void 0===s)e=sf(this,e,t,0),n=!zg(e)||e!==this._$AH&&e!==Jg,n&&(this._$AH=e);else{const o=e;let r,a;for(e=s[0],r=0;r<s.length-1;r++)a=sf(this,o[i+r],t,r),a===Jg&&(a=this._$AH[r]),n||(n=!zg(a)||a!==this._$AH[r]),a===Zg?e=Zg:e!==Zg&&(e+=(null!=a?a:"")+s[r+1]),this._$AH[r]=a}n&&!o&&this.j(e)}j(e){e===Zg?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=e?e:"")}},lf=class extends af{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===Zg?void 0:e}};const df=Og?Og.emptyScript:"";let cf=class extends af{constructor(){super(...arguments),this.type=4}j(e){e&&e!==Zg?this.element.setAttribute(this.name,df):this.element.removeAttribute(this.name)}},hf=class extends af{constructor(e,t,i,o,s){super(e,t,i,o,s),this.type=5}_$AI(e,t=this){var i;if((e=null!==(i=sf(this,e,t,0))&&void 0!==i?i:Zg)===Jg)return;const o=this._$AH,s=e===Zg&&o!==Zg||e.capture!==o.capture||e.once!==o.once||e.passive!==o.passive,n=e!==Zg&&(o===Zg||s);s&&this.element.removeEventListener(this.name,this,o),n&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var t,i;"function"==typeof this._$AH?this._$AH.call(null!==(i=null===(t=this.options)||void 0===t?void 0:t.host)&&void 0!==i?i:this.element,e):this._$AH.handleEvent(e)}},pf=class{constructor(e,t,i){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(e){sf(this,e)}};const uf=Ig.litHtmlPolyfillSupport;null==uf||uf(of,rf),(null!==(Pg=Ig.litHtmlVersions)&&void 0!==Pg?Pg:Ig.litHtmlVersions=[]).push("2.8.0");
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */
var mf,gf;let ff=class extends Tg{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e,t;const i=super.createRenderRoot();return null!==(e=(t=this.renderOptions).renderBefore)&&void 0!==e||(t.renderBefore=i.firstChild),i}update(e){const t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=((e,t,i)=>{var o,s;const n=null!==(o=null==i?void 0:i.renderBefore)&&void 0!==o?o:t;let r=n._$litPart$;if(void 0===r){const e=null!==(s=null==i?void 0:i.renderBefore)&&void 0!==s?s:null;n._$litPart$=r=new rf(t.insertBefore(Dg(),e),e,void 0,null!=i?i:{})}return r._$AI(e),r})(t,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),null===(e=this._$Do)||void 0===e||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),null===(e=this._$Do)||void 0===e||e.setConnected(!1)}render(){return Jg}};ff.finalized=!0,ff._$litElement$=!0,null===(mf=globalThis.litElementHydrateSupport)||void 0===mf||mf.call(globalThis,{LitElement:ff});const _f=globalThis.litElementPolyfillSupport;null==_f||_f({LitElement:ff}),(null!==(gf=globalThis.litElementVersions)&&void 0!==gf?gf:globalThis.litElementVersions=[]).push("3.3.3");
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */
const vf=1;let bf=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,i){this._$Ct=e,this._$AM=t,this._$Ci=i}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}};
/**
 * @license
 * Copyright 2018 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */const yf=(e=>(...t)=>({_$litDirective$:e,values:t}))(class extends bf{constructor(e){var t;if(super(e),e.type!==vf||"class"!==e.name||(null===(t=e.strings)||void 0===t?void 0:t.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(e){return" "+Object.keys(e).filter((t=>e[t])).join(" ")+" "}update(e,[t]){var i,o;if(void 0===this.it){this.it=new Set,void 0!==e.strings&&(this.nt=new Set(e.strings.join(" ").split(/\s/).filter((e=>""!==e))));for(const e in t)t[e]&&!(null===(i=this.nt)||void 0===i?void 0:i.has(e))&&this.it.add(e);return this.render(t)}const s=e.element.classList;this.it.forEach((e=>{e in t||(s.remove(e),this.it.delete(e))}));for(const e in t){const i=!!t[e];i===this.it.has(e)||(null===(o=this.nt)||void 0===o?void 0:o.has(e))||(i?(s.add(e),this.it.add(e)):(s.remove(e),this.it.delete(e)))}return Jg}});
/**
 * @license
 * Copyright 2019 Google LLC
 * SPDX-License-Identifier: Apache-2.0
 */class xf extends yo{constructor(){super(...arguments),this.mdcFoundationClass=ug,this.width=0,this.open=!1,this.lastOpen=this.open}createAdapter(){return{addClass:e=>this.mdcRoot.classList.add(e),removeClass:e=>this.mdcRoot.classList.remove(e),setNotchWidthProperty:e=>this.notchElement.style.setProperty("width",`${e}px`),removeNotchWidthProperty:()=>this.notchElement.style.removeProperty("width")}}openOrClose(e,t){this.mdcFoundation&&(e&&void 0!==t?this.mdcFoundation.notch(t):this.mdcFoundation.closeNotch())}render(){this.openOrClose(this.open,this.width);const e=yf({"mdc-notched-outline--notched":this.open});return Yg`
      <span class="mdc-notched-outline ${e}">
        <span class="mdc-notched-outline__leading"></span>
        <span class="mdc-notched-outline__notch">
          <slot></slot>
        </span>
        <span class="mdc-notched-outline__trailing"></span>
      </span>`}}o([lg(".mdc-notched-outline")],xf.prototype,"mdcRoot",void 0),o([ag({type:Number})],xf.prototype,"width",void 0),o([ag({type:Boolean,reflect:!0})],xf.prototype,"open",void 0),o([lg(".mdc-notched-outline__notch")],xf.prototype,"notchElement",void 0);
/**
 * @license
 * Copyright 2021 Google LLC
 * SPDX-LIcense-Identifier: Apache-2.0
 */
const wf=((e,...t)=>{const i=1===e.length?e[0]:t.reduce(((t,i,o)=>t+(e=>{if(!0===e._$cssResult$)return e.cssText;if("number"==typeof e)return e;throw Error("Value passed to 'css' function must be a 'css' function result: "+e+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+e[o+1]),e[0]);return new vg(i,e,fg)})`.mdc-notched-outline{display:flex;position:absolute;top:0;right:0;left:0;box-sizing:border-box;width:100%;max-width:100%;height:100%;text-align:left;pointer-events:none}[dir=rtl] .mdc-notched-outline,.mdc-notched-outline[dir=rtl]{text-align:right}.mdc-notched-outline__leading,.mdc-notched-outline__notch,.mdc-notched-outline__trailing{box-sizing:border-box;height:100%;border-top:1px solid;border-bottom:1px solid;pointer-events:none}.mdc-notched-outline__leading{border-left:1px solid;border-right:none;width:12px}[dir=rtl] .mdc-notched-outline__leading,.mdc-notched-outline__leading[dir=rtl]{border-left:none;border-right:1px solid}.mdc-notched-outline__trailing{border-left:none;border-right:1px solid;flex-grow:1}[dir=rtl] .mdc-notched-outline__trailing,.mdc-notched-outline__trailing[dir=rtl]{border-left:1px solid;border-right:none}.mdc-notched-outline__notch{flex:0 0 auto;width:auto;max-width:calc(100% - 12px * 2)}.mdc-notched-outline .mdc-floating-label{display:inline-block;position:relative;max-width:100%}.mdc-notched-outline .mdc-floating-label--float-above{text-overflow:clip}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:calc(100% / 0.75)}.mdc-notched-outline--notched .mdc-notched-outline__notch{padding-left:0;padding-right:8px;border-top:none}[dir=rtl] .mdc-notched-outline--notched .mdc-notched-outline__notch,.mdc-notched-outline--notched .mdc-notched-outline__notch[dir=rtl]{padding-left:8px;padding-right:0}.mdc-notched-outline--no-label .mdc-notched-outline__notch{display:none}:host{display:block;position:absolute;right:0;left:0;box-sizing:border-box;width:100%;max-width:100%;height:100%;text-align:left;pointer-events:none}[dir=rtl] :host,:host([dir=rtl]){text-align:right}::slotted(.mdc-floating-label){display:inline-block;position:relative;top:17px;bottom:auto;max-width:100%}::slotted(.mdc-floating-label--float-above){text-overflow:clip}.mdc-notched-outline--upgraded ::slotted(.mdc-floating-label--float-above){max-width:calc(100% / 0.75)}.mdc-notched-outline .mdc-notched-outline__leading{border-top-left-radius:4px;border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:4px;border-bottom-left-radius:var(--mdc-shape-small, 4px)}[dir=rtl] .mdc-notched-outline .mdc-notched-outline__leading,.mdc-notched-outline .mdc-notched-outline__leading[dir=rtl]{border-top-left-radius:0;border-top-right-radius:4px;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:4px;border-bottom-right-radius:var(--mdc-shape-small, 4px);border-bottom-left-radius:0}@supports(top: max(0%)){.mdc-notched-outline .mdc-notched-outline__leading{width:max(12px, var(--mdc-shape-small, 4px))}}@supports(top: max(0%)){.mdc-notched-outline .mdc-notched-outline__notch{max-width:calc(100% - max(12px, var(--mdc-shape-small, 4px)) * 2)}}.mdc-notched-outline .mdc-notched-outline__trailing{border-top-left-radius:0;border-top-right-radius:4px;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:4px;border-bottom-right-radius:var(--mdc-shape-small, 4px);border-bottom-left-radius:0}[dir=rtl] .mdc-notched-outline .mdc-notched-outline__trailing,.mdc-notched-outline .mdc-notched-outline__trailing[dir=rtl]{border-top-left-radius:4px;border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:4px;border-bottom-left-radius:var(--mdc-shape-small, 4px)}.mdc-notched-outline__leading,.mdc-notched-outline__notch,.mdc-notched-outline__trailing{border-color:var(--mdc-notched-outline-border-color, var(--mdc-theme-primary, #6200ee));border-width:1px;border-width:var(--mdc-notched-outline-stroke-width, 1px)}.mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:0;padding-top:var(--mdc-notched-outline-notch-offset, 0)}`
/**
 * @license
 * Copyright 2019 Google LLC
 * SPDX-License-Identifier: Apache-2.0
 */;let $f=class extends xf{};$f.styles=[wf],$f=o([(e=>t=>"function"==typeof t?((e,t)=>(customElements.define(e,t),t))(e,t):((e,t)=>{const{kind:i,elements:o}=t;return{kind:i,elements:o,finisher(t){customElements.define(e,t)}}})(e,t))("mwc-notched-outline")],$f);
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */
const Af=e=>t=>"function"==typeof t?((e,t)=>(customElements.define(e,t),t))(e,t):((e,t)=>{const{kind:i,elements:o}=t;return{kind:i,elements:o,finisher(t){customElements.define(e,t)}}})(e,t)
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */,kf=(e,t)=>"method"===t.kind&&t.descriptor&&!("value"in t.descriptor)?{...t,finisher(i){i.createProperty(t.key,e)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:t.key,initializer(){"function"==typeof t.initializer&&(this[t.key]=t.initializer.call(this))},finisher(i){i.createProperty(t.key,e)}},Ef=(e,t,i)=>{t.constructor.createProperty(i,e)};function Sf(e){return(t,i)=>void 0!==i?Ef(e,t,i):kf(e,t)
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */}function Cf(e){return Sf({...e,state:!0})}
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */
function Tf(e,t){return(({finisher:e,descriptor:t})=>(i,o)=>{var s;if(void 0===o){const o=null!==(s=i.originalKey)&&void 0!==s?s:i.key,n=null!=t?{kind:"method",placement:"prototype",key:o,descriptor:t(i.key)}:{...i,key:o};return null!=e&&(n.finisher=function(t){e(t,o)}),n}{const s=i.constructor;void 0!==t&&Object.defineProperty(i,o,t(o)),null==e||e(s,o)}})({descriptor:t=>{const i={get(){var t,i;return null!==(i=null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector(e))&&void 0!==i?i:null},enumerable:!0,configurable:!0};return i}})}
/**
 * @license
 * Copyright 2021 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */var Pf;null===(Pf=window.HTMLSlotElement)||void 0===Pf||Pf.prototype.assignedElements;
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */
const If=e=>t=>"function"==typeof t?((e,t)=>(customElements.define(e,t),t))(e,t):((e,t)=>{const{kind:i,elements:o}=t;return{kind:i,elements:o,finisher(t){customElements.define(e,t)}}})(e,t)
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */,Of=(e,t)=>"method"===t.kind&&t.descriptor&&!("value"in t.descriptor)?{...t,finisher(i){i.createProperty(t.key,e)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:t.key,initializer(){"function"==typeof t.initializer&&(this[t.key]=t.initializer.call(this))},finisher(i){i.createProperty(t.key,e)}},Rf=(e,t,i)=>{t.constructor.createProperty(i,e)};function Nf(e){return(t,i)=>void 0!==i?Rf(e,t,i):Of(e,t)
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */}function Lf(e){return Nf({...e,state:!0})}
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */const Mf=({finisher:e,descriptor:t})=>(i,o)=>{var s;if(void 0===o){const o=null!==(s=i.originalKey)&&void 0!==s?s:i.key,n=null!=t?{kind:"method",placement:"prototype",key:o,descriptor:t(i.key)}:{...i,key:o};return null!=e&&(n.finisher=function(t){e(t,o)}),n}{const s=i.constructor;void 0!==t&&Object.defineProperty(i,o,t(o)),null==e||e(s,o)}}
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */;function Uf(e,t){return Mf({descriptor:t=>{const i={get(){var t,i;return null!==(i=null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector(e))&&void 0!==i?i:null},enumerable:!0,configurable:!0};return i}})}
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */
/**
 * @license
 * Copyright 2021 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */
var Hf;const Df=null!=(null===(Hf=window.HTMLSlotElement)||void 0===Hf?void 0:Hf.prototype.assignedElements)?(e,t)=>e.assignedElements(t):(e,t)=>e.assignedNodes(t).filter((e=>e.nodeType===Node.ELEMENT_NODE));
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */
function zf(e,t,i){let o;return o={flatten:t},i?function(e){const{slot:t,selector:i}=null!=e?e:{};return Mf({descriptor:o=>({get(){var o;const s="slot"+(t?`[name=${t}]`:":not([name])"),n=null===(o=this.renderRoot)||void 0===o?void 0:o.querySelector(s),r=null!=n?Df(n,e):[];return i?r.filter((e=>e.matches(i))):r},enumerable:!0,configurable:!0})})}({slot:e,flatten:t,selector:i}):Mf({descriptor:e=>({get(){var e,t;const i=null===(e=this.renderRoot)||void 0===e?void 0:e.querySelector("slot:not([name])");return null!==(t=null==i?void 0:i.assignedNodes(o))&&void 0!==t?t:[]},enumerable:!0,configurable:!0})})}
/**
 * @license
 * Copyright 2019 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */const Bf=window,Ff=Bf.ShadowRoot&&(void 0===Bf.ShadyCSS||Bf.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,jf=Symbol(),Vf=new WeakMap;let qf=class{constructor(e,t,i){if(this._$cssResult$=!0,i!==jf)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o;const t=this.t;if(Ff&&void 0===e){const i=void 0!==t&&1===t.length;i&&(e=Vf.get(t)),void 0===e&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),i&&Vf.set(t,e))}return e}toString(){return this.cssText}};const Wf=(e,...t)=>{const i=1===e.length?e[0]:t.reduce(((t,i,o)=>t+(e=>{if(!0===e._$cssResult$)return e.cssText;if("number"==typeof e)return e;throw Error("Value passed to 'css' function must be a 'css' function result: "+e+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+e[o+1]),e[0]);return new qf(i,e,jf)},Gf=Ff?e=>e:e=>e instanceof CSSStyleSheet?(e=>{let t="";for(const i of e.cssRules)t+=i.cssText;return(e=>new qf("string"==typeof e?e:e+"",void 0,jf))(t)})(e):e
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */;var Kf;const Xf=window,Yf=Xf.trustedTypes,Jf=Yf?Yf.emptyScript:"",Zf=Xf.reactiveElementPolyfillSupport,Qf={toAttribute(e,t){switch(t){case Boolean:e=e?Jf:null;break;case Object:case Array:e=null==e?e:JSON.stringify(e)}return e},fromAttribute(e,t){let i=e;switch(t){case Boolean:i=null!==e;break;case Number:i=null===e?null:Number(e);break;case Object:case Array:try{i=JSON.parse(e)}catch(e){i=null}}return i}},e_=(e,t)=>t!==e&&(t==t||e==e),t_={attribute:!0,type:String,converter:Qf,reflect:!1,hasChanged:e_},i_="finalized";let o_=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this._$Eu()}static addInitializer(e){var t;this.finalize(),(null!==(t=this.h)&&void 0!==t?t:this.h=[]).push(e)}static get observedAttributes(){this.finalize();const e=[];return this.elementProperties.forEach(((t,i)=>{const o=this._$Ep(i,t);void 0!==o&&(this._$Ev.set(o,i),e.push(o))})),e}static createProperty(e,t=t_){if(t.state&&(t.attribute=!1),this.finalize(),this.elementProperties.set(e,t),!t.noAccessor&&!this.prototype.hasOwnProperty(e)){const i="symbol"==typeof e?Symbol():"__"+e,o=this.getPropertyDescriptor(e,i,t);void 0!==o&&Object.defineProperty(this.prototype,e,o)}}static getPropertyDescriptor(e,t,i){return{get(){return this[t]},set(o){const s=this[e];this[t]=o,this.requestUpdate(e,s,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)||t_}static finalize(){if(this.hasOwnProperty(i_))return!1;this[i_]=!0;const e=Object.getPrototypeOf(this);if(e.finalize(),void 0!==e.h&&(this.h=[...e.h]),this.elementProperties=new Map(e.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const e=this.properties,t=[...Object.getOwnPropertyNames(e),...Object.getOwnPropertySymbols(e)];for(const i of t)this.createProperty(i,e[i])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(e){const t=[];if(Array.isArray(e)){const i=new Set(e.flat(1/0).reverse());for(const e of i)t.unshift(Gf(e))}else void 0!==e&&t.push(Gf(e));return t}static _$Ep(e,t){const i=t.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof e?e.toLowerCase():void 0}_$Eu(){var e;this._$E_=new Promise((e=>this.enableUpdating=e)),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(e=this.constructor.h)||void 0===e||e.forEach((e=>e(this)))}addController(e){var t,i;(null!==(t=this._$ES)&&void 0!==t?t:this._$ES=[]).push(e),void 0!==this.renderRoot&&this.isConnected&&(null===(i=e.hostConnected)||void 0===i||i.call(e))}removeController(e){var t;null===(t=this._$ES)||void 0===t||t.splice(this._$ES.indexOf(e)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach(((e,t)=>{this.hasOwnProperty(t)&&(this._$Ei.set(t,this[t]),delete this[t])}))}createRenderRoot(){var e;const t=null!==(e=this.shadowRoot)&&void 0!==e?e:this.attachShadow(this.constructor.shadowRootOptions);return((e,t)=>{Ff?e.adoptedStyleSheets=t.map((e=>e instanceof CSSStyleSheet?e:e.styleSheet)):t.forEach((t=>{const i=document.createElement("style"),o=Bf.litNonce;void 0!==o&&i.setAttribute("nonce",o),i.textContent=t.cssText,e.appendChild(i)}))})(t,this.constructor.elementStyles),t}connectedCallback(){var e;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(e=this._$ES)||void 0===e||e.forEach((e=>{var t;return null===(t=e.hostConnected)||void 0===t?void 0:t.call(e)}))}enableUpdating(e){}disconnectedCallback(){var e;null===(e=this._$ES)||void 0===e||e.forEach((e=>{var t;return null===(t=e.hostDisconnected)||void 0===t?void 0:t.call(e)}))}attributeChangedCallback(e,t,i){this._$AK(e,i)}_$EO(e,t,i=t_){var o;const s=this.constructor._$Ep(e,i);if(void 0!==s&&!0===i.reflect){const n=(void 0!==(null===(o=i.converter)||void 0===o?void 0:o.toAttribute)?i.converter:Qf).toAttribute(t,i.type);this._$El=e,null==n?this.removeAttribute(s):this.setAttribute(s,n),this._$El=null}}_$AK(e,t){var i;const o=this.constructor,s=o._$Ev.get(e);if(void 0!==s&&this._$El!==s){const e=o.getPropertyOptions(s),n="function"==typeof e.converter?{fromAttribute:e.converter}:void 0!==(null===(i=e.converter)||void 0===i?void 0:i.fromAttribute)?e.converter:Qf;this._$El=s,this[s]=n.fromAttribute(t,e.type),this._$El=null}}requestUpdate(e,t,i){let o=!0;void 0!==e&&(((i=i||this.constructor.getPropertyOptions(e)).hasChanged||e_)(this[e],t)?(this._$AL.has(e)||this._$AL.set(e,t),!0===i.reflect&&this._$El!==e&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(e,i))):o=!1),!this.isUpdatePending&&o&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(e){Promise.reject(e)}const e=this.scheduleUpdate();return null!=e&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var e;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach(((e,t)=>this[t]=e)),this._$Ei=void 0);let t=!1;const i=this._$AL;try{t=this.shouldUpdate(i),t?(this.willUpdate(i),null===(e=this._$ES)||void 0===e||e.forEach((e=>{var t;return null===(t=e.hostUpdate)||void 0===t?void 0:t.call(e)})),this.update(i)):this._$Ek()}catch(e){throw t=!1,this._$Ek(),e}t&&this._$AE(i)}willUpdate(e){}_$AE(e){var t;null===(t=this._$ES)||void 0===t||t.forEach((e=>{var t;return null===(t=e.hostUpdated)||void 0===t?void 0:t.call(e)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(e){return!0}update(e){void 0!==this._$EC&&(this._$EC.forEach(((e,t)=>this._$EO(t,this[t],e))),this._$EC=void 0),this._$Ek()}updated(e){}firstUpdated(e){}};
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */
var s_;o_[i_]=!0,o_.elementProperties=new Map,o_.elementStyles=[],o_.shadowRootOptions={mode:"open"},null==Zf||Zf({ReactiveElement:o_}),(null!==(Kf=Xf.reactiveElementVersions)&&void 0!==Kf?Kf:Xf.reactiveElementVersions=[]).push("1.6.3");const n_=window,r_=n_.trustedTypes,a_=r_?r_.createPolicy("lit-html",{createHTML:e=>e}):void 0,l_="$lit$",d_=`lit$${(Math.random()+"").slice(9)}$`,c_="?"+d_,h_=`<${c_}>`,p_=document,u_=()=>p_.createComment(""),m_=e=>null===e||"object"!=typeof e&&"function"!=typeof e,g_=Array.isArray,f_="[ \t\n\f\r]",__=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,v_=/-->/g,b_=/>/g,y_=RegExp(`>|${f_}(?:([^\\s"'>=/]+)(${f_}*=${f_}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),x_=/'/g,w_=/"/g,$_=/^(?:script|style|textarea|title)$/i,A_=(e=>(t,...i)=>({_$litType$:e,strings:t,values:i}))(1),k_=Symbol.for("lit-noChange"),E_=Symbol.for("lit-nothing"),S_=new WeakMap,C_=p_.createTreeWalker(p_,129,null,!1);function T_(e,t){if(!Array.isArray(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==a_?a_.createHTML(t):t}let P_=class e{constructor({strings:t,_$litType$:i},o){let s;this.parts=[];let n=0,r=0;const a=t.length-1,l=this.parts,[d,c]=((e,t)=>{const i=e.length-1,o=[];let s,n=2===t?"<svg>":"",r=__;for(let t=0;t<i;t++){const i=e[t];let a,l,d=-1,c=0;for(;c<i.length&&(r.lastIndex=c,l=r.exec(i),null!==l);)c=r.lastIndex,r===__?"!--"===l[1]?r=v_:void 0!==l[1]?r=b_:void 0!==l[2]?($_.test(l[2])&&(s=RegExp("</"+l[2],"g")),r=y_):void 0!==l[3]&&(r=y_):r===y_?">"===l[0]?(r=null!=s?s:__,d=-1):void 0===l[1]?d=-2:(d=r.lastIndex-l[2].length,a=l[1],r=void 0===l[3]?y_:'"'===l[3]?w_:x_):r===w_||r===x_?r=y_:r===v_||r===b_?r=__:(r=y_,s=void 0);const h=r===y_&&e[t+1].startsWith("/>")?" ":"";n+=r===__?i+h_:d>=0?(o.push(a),i.slice(0,d)+l_+i.slice(d)+d_+h):i+d_+(-2===d?(o.push(void 0),t):h)}return[T_(e,n+(e[i]||"<?>")+(2===t?"</svg>":"")),o]})(t,i);if(this.el=e.createElement(d,o),C_.currentNode=this.el.content,2===i){const e=this.el.content,t=e.firstChild;t.remove(),e.append(...t.childNodes)}for(;null!==(s=C_.nextNode())&&l.length<a;){if(1===s.nodeType){if(s.hasAttributes()){const e=[];for(const t of s.getAttributeNames())if(t.endsWith(l_)||t.startsWith(d_)){const i=c[r++];if(e.push(t),void 0!==i){const e=s.getAttribute(i.toLowerCase()+l_).split(d_),t=/([.?@])?(.*)/.exec(i);l.push({type:1,index:n,name:t[2],strings:e,ctor:"."===t[1]?L_:"?"===t[1]?U_:"@"===t[1]?H_:N_})}else l.push({type:6,index:n})}for(const t of e)s.removeAttribute(t)}if($_.test(s.tagName)){const e=s.textContent.split(d_),t=e.length-1;if(t>0){s.textContent=r_?r_.emptyScript:"";for(let i=0;i<t;i++)s.append(e[i],u_()),C_.nextNode(),l.push({type:2,index:++n});s.append(e[t],u_())}}}else if(8===s.nodeType)if(s.data===c_)l.push({type:2,index:n});else{let e=-1;for(;-1!==(e=s.data.indexOf(d_,e+1));)l.push({type:7,index:n}),e+=d_.length-1}n++}}static createElement(e,t){const i=p_.createElement("template");return i.innerHTML=e,i}};function I_(e,t,i=e,o){var s,n,r,a;if(t===k_)return t;let l=void 0!==o?null===(s=i._$Co)||void 0===s?void 0:s[o]:i._$Cl;const d=m_(t)?void 0:t._$litDirective$;return(null==l?void 0:l.constructor)!==d&&(null===(n=null==l?void 0:l._$AO)||void 0===n||n.call(l,!1),void 0===d?l=void 0:(l=new d(e),l._$AT(e,i,o)),void 0!==o?(null!==(r=(a=i)._$Co)&&void 0!==r?r:a._$Co=[])[o]=l:i._$Cl=l),void 0!==l&&(t=I_(e,l._$AS(e,t.values),l,o)),t}let O_=class{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){var t;const{el:{content:i},parts:o}=this._$AD,s=(null!==(t=null==e?void 0:e.creationScope)&&void 0!==t?t:p_).importNode(i,!0);C_.currentNode=s;let n=C_.nextNode(),r=0,a=0,l=o[0];for(;void 0!==l;){if(r===l.index){let t;2===l.type?t=new R_(n,n.nextSibling,this,e):1===l.type?t=new l.ctor(n,l.name,l.strings,this,e):6===l.type&&(t=new D_(n,this,e)),this._$AV.push(t),l=o[++a]}r!==(null==l?void 0:l.index)&&(n=C_.nextNode(),r++)}return C_.currentNode=p_,s}v(e){let t=0;for(const i of this._$AV)void 0!==i&&(void 0!==i.strings?(i._$AI(e,i,t),t+=i.strings.length-2):i._$AI(e[t])),t++}},R_=class e{constructor(e,t,i,o){var s;this.type=2,this._$AH=E_,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=i,this.options=o,this._$Cp=null===(s=null==o?void 0:o.isConnected)||void 0===s||s}get _$AU(){var e,t;return null!==(t=null===(e=this._$AM)||void 0===e?void 0:e._$AU)&&void 0!==t?t:this._$Cp}get parentNode(){let e=this._$AA.parentNode;const t=this._$AM;return void 0!==t&&11===(null==e?void 0:e.nodeType)&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=I_(this,e,t),m_(e)?e===E_||null==e||""===e?(this._$AH!==E_&&this._$AR(),this._$AH=E_):e!==this._$AH&&e!==k_&&this._(e):void 0!==e._$litType$?this.g(e):void 0!==e.nodeType?this.$(e):(e=>g_(e)||"function"==typeof(null==e?void 0:e[Symbol.iterator]))(e)?this.T(e):this._(e)}k(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}$(e){this._$AH!==e&&(this._$AR(),this._$AH=this.k(e))}_(e){this._$AH!==E_&&m_(this._$AH)?this._$AA.nextSibling.data=e:this.$(p_.createTextNode(e)),this._$AH=e}g(e){var t;const{values:i,_$litType$:o}=e,s="number"==typeof o?this._$AC(e):(void 0===o.el&&(o.el=P_.createElement(T_(o.h,o.h[0]),this.options)),o);if((null===(t=this._$AH)||void 0===t?void 0:t._$AD)===s)this._$AH.v(i);else{const e=new O_(s,this),t=e.u(this.options);e.v(i),this.$(t),this._$AH=e}}_$AC(e){let t=S_.get(e.strings);return void 0===t&&S_.set(e.strings,t=new P_(e)),t}T(t){g_(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let o,s=0;for(const n of t)s===i.length?i.push(o=new e(this.k(u_()),this.k(u_()),this,this.options)):o=i[s],o._$AI(n),s++;s<i.length&&(this._$AR(o&&o._$AB.nextSibling,s),i.length=s)}_$AR(e=this._$AA.nextSibling,t){var i;for(null===(i=this._$AP)||void 0===i||i.call(this,!1,!0,t);e&&e!==this._$AB;){const t=e.nextSibling;e.remove(),e=t}}setConnected(e){var t;void 0===this._$AM&&(this._$Cp=e,null===(t=this._$AP)||void 0===t||t.call(this,e))}},N_=class{constructor(e,t,i,o,s){this.type=1,this._$AH=E_,this._$AN=void 0,this.element=e,this.name=t,this._$AM=o,this.options=s,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=E_}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(e,t=this,i,o){const s=this.strings;let n=!1;if(void 0===s)e=I_(this,e,t,0),n=!m_(e)||e!==this._$AH&&e!==k_,n&&(this._$AH=e);else{const o=e;let r,a;for(e=s[0],r=0;r<s.length-1;r++)a=I_(this,o[i+r],t,r),a===k_&&(a=this._$AH[r]),n||(n=!m_(a)||a!==this._$AH[r]),a===E_?e=E_:e!==E_&&(e+=(null!=a?a:"")+s[r+1]),this._$AH[r]=a}n&&!o&&this.j(e)}j(e){e===E_?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=e?e:"")}},L_=class extends N_{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===E_?void 0:e}};const M_=r_?r_.emptyScript:"";let U_=class extends N_{constructor(){super(...arguments),this.type=4}j(e){e&&e!==E_?this.element.setAttribute(this.name,M_):this.element.removeAttribute(this.name)}},H_=class extends N_{constructor(e,t,i,o,s){super(e,t,i,o,s),this.type=5}_$AI(e,t=this){var i;if((e=null!==(i=I_(this,e,t,0))&&void 0!==i?i:E_)===k_)return;const o=this._$AH,s=e===E_&&o!==E_||e.capture!==o.capture||e.once!==o.once||e.passive!==o.passive,n=e!==E_&&(o===E_||s);s&&this.element.removeEventListener(this.name,this,o),n&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var t,i;"function"==typeof this._$AH?this._$AH.call(null!==(i=null===(t=this.options)||void 0===t?void 0:t.host)&&void 0!==i?i:this.element,e):this._$AH.handleEvent(e)}},D_=class{constructor(e,t,i){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(e){I_(this,e)}};const z_=n_.litHtmlPolyfillSupport;null==z_||z_(P_,R_),(null!==(s_=n_.litHtmlVersions)&&void 0!==s_?s_:n_.litHtmlVersions=[]).push("2.8.0");
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */
var B_,F_;let j_=class extends o_{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e,t;const i=super.createRenderRoot();return null!==(e=(t=this.renderOptions).renderBefore)&&void 0!==e||(t.renderBefore=i.firstChild),i}update(e){const t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=((e,t,i)=>{var o,s;const n=null!==(o=null==i?void 0:i.renderBefore)&&void 0!==o?o:t;let r=n._$litPart$;if(void 0===r){const e=null!==(s=null==i?void 0:i.renderBefore)&&void 0!==s?s:null;n._$litPart$=r=new R_(t.insertBefore(u_(),e),e,void 0,null!=i?i:{})}return r._$AI(e),r})(t,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),null===(e=this._$Do)||void 0===e||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),null===(e=this._$Do)||void 0===e||e.setConnected(!1)}render(){return k_}};j_.finalized=!0,j_._$litElement$=!0,null===(B_=globalThis.litElementHydrateSupport)||void 0===B_||B_.call(globalThis,{LitElement:j_});const V_=globalThis.litElementPolyfillSupport;null==V_||V_({LitElement:j_}),(null!==(F_=globalThis.litElementVersions)&&void 0!==F_?F_:globalThis.litElementVersions=[]).push("3.3.3");
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */
const q_=1;let W_=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,i){this._$Ct=e,this._$AM=t,this._$Ci=i}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}};
/**
 * @license
 * Copyright 2018 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */const G_=(e=>(...t)=>({_$litDirective$:e,values:t}))(class extends W_{constructor(e){var t;if(super(e),e.type!==q_||"class"!==e.name||(null===(t=e.strings)||void 0===t?void 0:t.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(e){return" "+Object.keys(e).filter((t=>e[t])).join(" ")+" "}update(e,[t]){var i,o;if(void 0===this.it){this.it=new Set,void 0!==e.strings&&(this.nt=new Set(e.strings.join(" ").split(/\s/).filter((e=>""!==e))));for(const e in t)t[e]&&!(null===(i=this.nt)||void 0===i?void 0:i.has(e))&&this.it.add(e);return this.render(t)}const s=e.element.classList;this.it.forEach((e=>{e in t||(s.remove(e),this.it.delete(e))}));for(const e in t){const i=!!t[e];i===this.it.has(e)||(null===(o=this.nt)||void 0===o?void 0:o.has(e))||(i?(s.add(e),this.it.add(e)):(s.remove(e),this.it.delete(e)))}return k_}});
/**
 * @license
 * Copyright 2020 Google LLC
 * SPDX-License-Identifier: Apache-2.0
 */class K_ extends j_{constructor(){super(...arguments),this.value="",this.group=null,this.tabindex=-1,this.disabled=!1,this.twoline=!1,this.activated=!1,this.graphic=null,this.multipleGraphics=!1,this.hasMeta=!1,this.noninteractive=!1,this.selected=!1,this.shouldRenderRipple=!1,this._managingList=null,this.boundOnClick=this.onClick.bind(this),this._firstChanged=!0,this._skipPropRequest=!1,this.rippleHandlers=new ir((()=>(this.shouldRenderRipple=!0,this.ripple))),this.listeners=[{target:this,eventNames:["click"],cb:()=>{this.onClick()}},{target:this,eventNames:["mouseenter"],cb:this.rippleHandlers.startHover},{target:this,eventNames:["mouseleave"],cb:this.rippleHandlers.endHover},{target:this,eventNames:["focus"],cb:this.rippleHandlers.startFocus},{target:this,eventNames:["blur"],cb:this.rippleHandlers.endFocus},{target:this,eventNames:["mousedown","touchstart"],cb:e=>{const t=e.type;this.onDown("mousedown"===t?"mouseup":"touchend",e)}}]}get text(){const e=this.textContent;return e?e.trim():""}render(){const e=this.renderText(),t=this.graphic?this.renderGraphic():A_``,i=this.hasMeta?this.renderMeta():A_``;return A_`
      ${this.renderRipple()}
      ${t}
      ${e}
      ${i}`}renderRipple(){return this.shouldRenderRipple?A_`
      <mwc-ripple
        .activated=${this.activated}>
      </mwc-ripple>`:this.activated?A_`<div class="fake-activated-ripple"></div>`:""}renderGraphic(){const e={multi:this.multipleGraphics};return A_`
      <span class="mdc-deprecated-list-item__graphic material-icons ${G_(e)}">
        <slot name="graphic"></slot>
      </span>`}renderMeta(){return A_`
      <span class="mdc-deprecated-list-item__meta material-icons">
        <slot name="meta"></slot>
      </span>`}renderText(){const e=this.twoline?this.renderTwoline():this.renderSingleLine();return A_`
      <span class="mdc-deprecated-list-item__text">
        ${e}
      </span>`}renderSingleLine(){return A_`<slot></slot>`}renderTwoline(){return A_`
      <span class="mdc-deprecated-list-item__primary-text">
        <slot></slot>
      </span>
      <span class="mdc-deprecated-list-item__secondary-text">
        <slot name="secondary"></slot>
      </span>
    `}onClick(){this.fireRequestSelected(!this.selected,"interaction")}onDown(e,t){const i=()=>{window.removeEventListener(e,i),this.rippleHandlers.endPress()};window.addEventListener(e,i),this.rippleHandlers.startPress(t)}fireRequestSelected(e,t){if(this.noninteractive)return;const i=new CustomEvent("request-selected",{bubbles:!0,composed:!0,detail:{source:t,selected:e}});this.dispatchEvent(i)}connectedCallback(){super.connectedCallback(),this.noninteractive||this.setAttribute("mwc-list-item","");for(const e of this.listeners)for(const t of e.eventNames)e.target.addEventListener(t,e.cb,{passive:!0})}disconnectedCallback(){super.disconnectedCallback();for(const e of this.listeners)for(const t of e.eventNames)e.target.removeEventListener(t,e.cb);this._managingList&&(this._managingList.debouncedLayout?this._managingList.debouncedLayout(!0):this._managingList.layout(!0))}firstUpdated(){const e=new Event("list-item-rendered",{bubbles:!0,composed:!0});this.dispatchEvent(e)}}o([Uf("slot")],K_.prototype,"slotElement",void 0),o([function(e){return Mf({descriptor:t=>({async get(){var t;return await this.updateComplete,null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector(e)},enumerable:!0,configurable:!0})})}("mwc-ripple")],K_.prototype,"ripple",void 0),o([Nf({type:String})],K_.prototype,"value",void 0),o([Nf({type:String,reflect:!0})],K_.prototype,"group",void 0),o([Nf({type:Number,reflect:!0})],K_.prototype,"tabindex",void 0),o([Nf({type:Boolean,reflect:!0}),Fl((function(e){e?this.setAttribute("aria-disabled","true"):this.setAttribute("aria-disabled","false")}))],K_.prototype,"disabled",void 0),o([Nf({type:Boolean,reflect:!0})],K_.prototype,"twoline",void 0),o([Nf({type:Boolean,reflect:!0})],K_.prototype,"activated",void 0),o([Nf({type:String,reflect:!0})],K_.prototype,"graphic",void 0),o([Nf({type:Boolean})],K_.prototype,"multipleGraphics",void 0),o([Nf({type:Boolean})],K_.prototype,"hasMeta",void 0),o([Nf({type:Boolean,reflect:!0}),Fl((function(e){e?(this.removeAttribute("aria-checked"),this.removeAttribute("mwc-list-item"),this.selected=!1,this.activated=!1,this.tabIndex=-1):this.setAttribute("mwc-list-item","")}))],K_.prototype,"noninteractive",void 0),o([Nf({type:Boolean,reflect:!0}),Fl((function(e){const t=this.getAttribute("role"),i="gridcell"===t||"option"===t||"row"===t||"tab"===t;i&&e?this.setAttribute("aria-selected","true"):i&&this.setAttribute("aria-selected","false"),this._firstChanged?this._firstChanged=!1:this._skipPropRequest||this.fireRequestSelected(e,"property")}))],K_.prototype,"selected",void 0),o([Lf()],K_.prototype,"shouldRenderRipple",void 0),o([Lf()],K_.prototype,"_managingList",void 0);
/**
 * @license
 * Copyright 2021 Google LLC
 * SPDX-LIcense-Identifier: Apache-2.0
 */
const X_=Wf`:host{cursor:pointer;user-select:none;-webkit-tap-highlight-color:transparent;height:48px;display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;padding-left:var(--mdc-list-side-padding, 16px);padding-right:var(--mdc-list-side-padding, 16px);outline:none;height:48px;color:rgba(0,0,0,.87);color:var(--mdc-theme-text-primary-on-background, rgba(0, 0, 0, 0.87))}:host:focus{outline:none}:host([activated]){color:#6200ee;color:var(--mdc-theme-primary, #6200ee);--mdc-ripple-color: var( --mdc-theme-primary, #6200ee )}:host([activated]) .mdc-deprecated-list-item__graphic{color:#6200ee;color:var(--mdc-theme-primary, #6200ee)}:host([activated]) .fake-activated-ripple::before{position:absolute;display:block;top:0;bottom:0;left:0;right:0;width:100%;height:100%;pointer-events:none;z-index:1;content:"";opacity:0.12;opacity:var(--mdc-ripple-activated-opacity, 0.12);background-color:#6200ee;background-color:var(--mdc-ripple-color, var(--mdc-theme-primary, #6200ee))}.mdc-deprecated-list-item__graphic{flex-shrink:0;align-items:center;justify-content:center;fill:currentColor;display:inline-flex}.mdc-deprecated-list-item__graphic ::slotted(*){flex-shrink:0;align-items:center;justify-content:center;fill:currentColor;width:100%;height:100%;text-align:center}.mdc-deprecated-list-item__meta{width:var(--mdc-list-item-meta-size, 24px);height:var(--mdc-list-item-meta-size, 24px);margin-left:auto;margin-right:0;color:rgba(0, 0, 0, 0.38);color:var(--mdc-theme-text-hint-on-background, rgba(0, 0, 0, 0.38))}.mdc-deprecated-list-item__meta.multi{width:auto}.mdc-deprecated-list-item__meta ::slotted(*){width:var(--mdc-list-item-meta-size, 24px);line-height:var(--mdc-list-item-meta-size, 24px)}.mdc-deprecated-list-item__meta ::slotted(.material-icons),.mdc-deprecated-list-item__meta ::slotted(mwc-icon){line-height:var(--mdc-list-item-meta-size, 24px) !important}.mdc-deprecated-list-item__meta ::slotted(:not(.material-icons):not(mwc-icon)){-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-caption-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:0.75rem;font-size:var(--mdc-typography-caption-font-size, 0.75rem);line-height:1.25rem;line-height:var(--mdc-typography-caption-line-height, 1.25rem);font-weight:400;font-weight:var(--mdc-typography-caption-font-weight, 400);letter-spacing:0.0333333333em;letter-spacing:var(--mdc-typography-caption-letter-spacing, 0.0333333333em);text-decoration:inherit;text-decoration:var(--mdc-typography-caption-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-caption-text-transform, inherit)}[dir=rtl] .mdc-deprecated-list-item__meta,.mdc-deprecated-list-item__meta[dir=rtl]{margin-left:0;margin-right:auto}.mdc-deprecated-list-item__meta ::slotted(*){width:100%;height:100%}.mdc-deprecated-list-item__text{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.mdc-deprecated-list-item__text ::slotted([for]),.mdc-deprecated-list-item__text[for]{pointer-events:none}.mdc-deprecated-list-item__primary-text{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;display:block;margin-top:0;line-height:normal;margin-bottom:-20px;display:block}.mdc-deprecated-list-item__primary-text::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-deprecated-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-deprecated-list-item__secondary-text{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-body2-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:0.875rem;font-size:var(--mdc-typography-body2-font-size, 0.875rem);line-height:1.25rem;line-height:var(--mdc-typography-body2-line-height, 1.25rem);font-weight:400;font-weight:var(--mdc-typography-body2-font-weight, 400);letter-spacing:0.0178571429em;letter-spacing:var(--mdc-typography-body2-letter-spacing, 0.0178571429em);text-decoration:inherit;text-decoration:var(--mdc-typography-body2-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-body2-text-transform, inherit);text-overflow:ellipsis;white-space:nowrap;overflow:hidden;display:block;margin-top:0;line-height:normal;display:block}.mdc-deprecated-list-item__secondary-text::before{display:inline-block;width:0;height:20px;content:"";vertical-align:0}.mdc-deprecated-list--dense .mdc-deprecated-list-item__secondary-text{font-size:inherit}* ::slotted(a),a{color:inherit;text-decoration:none}:host([twoline]){height:72px}:host([twoline]) .mdc-deprecated-list-item__text{align-self:flex-start}:host([disabled]),:host([noninteractive]){cursor:default;pointer-events:none}:host([disabled]) .mdc-deprecated-list-item__text ::slotted(*){opacity:.38}:host([disabled]) .mdc-deprecated-list-item__text ::slotted(*),:host([disabled]) .mdc-deprecated-list-item__primary-text ::slotted(*),:host([disabled]) .mdc-deprecated-list-item__secondary-text ::slotted(*){color:#000;color:var(--mdc-theme-on-surface, #000)}.mdc-deprecated-list-item__secondary-text ::slotted(*){color:rgba(0, 0, 0, 0.54);color:var(--mdc-theme-text-secondary-on-background, rgba(0, 0, 0, 0.54))}.mdc-deprecated-list-item__graphic ::slotted(*){background-color:transparent;color:rgba(0, 0, 0, 0.38);color:var(--mdc-theme-text-icon-on-background, rgba(0, 0, 0, 0.38))}.mdc-deprecated-list-group__subheader ::slotted(*){color:rgba(0, 0, 0, 0.87);color:var(--mdc-theme-text-primary-on-background, rgba(0, 0, 0, 0.87))}:host([graphic=avatar]) .mdc-deprecated-list-item__graphic{width:var(--mdc-list-item-graphic-size, 40px);height:var(--mdc-list-item-graphic-size, 40px)}:host([graphic=avatar]) .mdc-deprecated-list-item__graphic.multi{width:auto}:host([graphic=avatar]) .mdc-deprecated-list-item__graphic ::slotted(*){width:var(--mdc-list-item-graphic-size, 40px);line-height:var(--mdc-list-item-graphic-size, 40px)}:host([graphic=avatar]) .mdc-deprecated-list-item__graphic ::slotted(.material-icons),:host([graphic=avatar]) .mdc-deprecated-list-item__graphic ::slotted(mwc-icon){line-height:var(--mdc-list-item-graphic-size, 40px) !important}:host([graphic=avatar]) .mdc-deprecated-list-item__graphic ::slotted(*){border-radius:50%}:host([graphic=avatar]) .mdc-deprecated-list-item__graphic,:host([graphic=medium]) .mdc-deprecated-list-item__graphic,:host([graphic=large]) .mdc-deprecated-list-item__graphic,:host([graphic=control]) .mdc-deprecated-list-item__graphic{margin-left:0;margin-right:var(--mdc-list-item-graphic-margin, 16px)}[dir=rtl] :host([graphic=avatar]) .mdc-deprecated-list-item__graphic,[dir=rtl] :host([graphic=medium]) .mdc-deprecated-list-item__graphic,[dir=rtl] :host([graphic=large]) .mdc-deprecated-list-item__graphic,[dir=rtl] :host([graphic=control]) .mdc-deprecated-list-item__graphic,:host([graphic=avatar]) .mdc-deprecated-list-item__graphic[dir=rtl],:host([graphic=medium]) .mdc-deprecated-list-item__graphic[dir=rtl],:host([graphic=large]) .mdc-deprecated-list-item__graphic[dir=rtl],:host([graphic=control]) .mdc-deprecated-list-item__graphic[dir=rtl]{margin-left:var(--mdc-list-item-graphic-margin, 16px);margin-right:0}:host([graphic=icon]) .mdc-deprecated-list-item__graphic{width:var(--mdc-list-item-graphic-size, 24px);height:var(--mdc-list-item-graphic-size, 24px);margin-left:0;margin-right:var(--mdc-list-item-graphic-margin, 32px)}:host([graphic=icon]) .mdc-deprecated-list-item__graphic.multi{width:auto}:host([graphic=icon]) .mdc-deprecated-list-item__graphic ::slotted(*){width:var(--mdc-list-item-graphic-size, 24px);line-height:var(--mdc-list-item-graphic-size, 24px)}:host([graphic=icon]) .mdc-deprecated-list-item__graphic ::slotted(.material-icons),:host([graphic=icon]) .mdc-deprecated-list-item__graphic ::slotted(mwc-icon){line-height:var(--mdc-list-item-graphic-size, 24px) !important}[dir=rtl] :host([graphic=icon]) .mdc-deprecated-list-item__graphic,:host([graphic=icon]) .mdc-deprecated-list-item__graphic[dir=rtl]{margin-left:var(--mdc-list-item-graphic-margin, 32px);margin-right:0}:host([graphic=avatar]:not([twoLine])),:host([graphic=icon]:not([twoLine])){height:56px}:host([graphic=medium]:not([twoLine])),:host([graphic=large]:not([twoLine])){height:72px}:host([graphic=medium]) .mdc-deprecated-list-item__graphic,:host([graphic=large]) .mdc-deprecated-list-item__graphic{width:var(--mdc-list-item-graphic-size, 56px);height:var(--mdc-list-item-graphic-size, 56px)}:host([graphic=medium]) .mdc-deprecated-list-item__graphic.multi,:host([graphic=large]) .mdc-deprecated-list-item__graphic.multi{width:auto}:host([graphic=medium]) .mdc-deprecated-list-item__graphic ::slotted(*),:host([graphic=large]) .mdc-deprecated-list-item__graphic ::slotted(*){width:var(--mdc-list-item-graphic-size, 56px);line-height:var(--mdc-list-item-graphic-size, 56px)}:host([graphic=medium]) .mdc-deprecated-list-item__graphic ::slotted(.material-icons),:host([graphic=medium]) .mdc-deprecated-list-item__graphic ::slotted(mwc-icon),:host([graphic=large]) .mdc-deprecated-list-item__graphic ::slotted(.material-icons),:host([graphic=large]) .mdc-deprecated-list-item__graphic ::slotted(mwc-icon){line-height:var(--mdc-list-item-graphic-size, 56px) !important}:host([graphic=large]){padding-left:0px}`
/**
 * @license
 * Copyright 2020 Google LLC
 * SPDX-License-Identifier: Apache-2.0
 */;let Y_=class extends K_{};Y_.styles=[X_],Y_=o([If("mwc-list-item")],Y_);
/**
 * @license
 * Copyright 2018 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */
const J_=e=>null!=e?e:E_
/**
 * @license
 * Copyright 2020 Google Inc.
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 * THE SOFTWARE.
 */;var Z_={UNKNOWN:"Unknown",BACKSPACE:"Backspace",ENTER:"Enter",SPACEBAR:"Spacebar",PAGE_UP:"PageUp",PAGE_DOWN:"PageDown",END:"End",HOME:"Home",ARROW_LEFT:"ArrowLeft",ARROW_UP:"ArrowUp",ARROW_RIGHT:"ArrowRight",ARROW_DOWN:"ArrowDown",DELETE:"Delete",ESCAPE:"Escape",TAB:"Tab"},Q_=new Set;Q_.add(Z_.BACKSPACE),Q_.add(Z_.ENTER),Q_.add(Z_.SPACEBAR),Q_.add(Z_.PAGE_UP),Q_.add(Z_.PAGE_DOWN),Q_.add(Z_.END),Q_.add(Z_.HOME),Q_.add(Z_.ARROW_LEFT),Q_.add(Z_.ARROW_UP),Q_.add(Z_.ARROW_RIGHT),Q_.add(Z_.ARROW_DOWN),Q_.add(Z_.DELETE),Q_.add(Z_.ESCAPE),Q_.add(Z_.TAB);var ev=8,tv=13,iv=32,ov=33,sv=34,nv=35,rv=36,av=37,lv=38,dv=39,cv=40,hv=46,pv=27,uv=9,mv=new Map;mv.set(ev,Z_.BACKSPACE),mv.set(tv,Z_.ENTER),mv.set(iv,Z_.SPACEBAR),mv.set(ov,Z_.PAGE_UP),mv.set(sv,Z_.PAGE_DOWN),mv.set(nv,Z_.END),mv.set(rv,Z_.HOME),mv.set(av,Z_.ARROW_LEFT),mv.set(lv,Z_.ARROW_UP),mv.set(dv,Z_.ARROW_RIGHT),mv.set(cv,Z_.ARROW_DOWN),mv.set(hv,Z_.DELETE),mv.set(pv,Z_.ESCAPE),mv.set(uv,Z_.TAB);var gv,fv,_v=new Set;function vv(e){var t=e.key;if(Q_.has(t))return t;var i=mv.get(e.keyCode);return i||Z_.UNKNOWN}
/**
 * @license
 * Copyright 2018 Google Inc.
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 * THE SOFTWARE.
 */_v.add(Z_.PAGE_UP),_v.add(Z_.PAGE_DOWN),_v.add(Z_.END),_v.add(Z_.HOME),_v.add(Z_.ARROW_LEFT),_v.add(Z_.ARROW_UP),_v.add(Z_.ARROW_RIGHT),_v.add(Z_.ARROW_DOWN);var bv="mdc-list-item--activated",yv="mdc-list-item",xv="mdc-list-item--disabled",wv="mdc-list-item--selected",$v="mdc-list-item__text",Av="mdc-list-item__primary-text",kv="mdc-list";(gv={})[""+bv]="mdc-list-item--activated",gv[""+yv]="mdc-list-item",gv[""+xv]="mdc-list-item--disabled",gv[""+wv]="mdc-list-item--selected",gv[""+Av]="mdc-list-item__primary-text",gv[""+kv]="mdc-list";var Ev=((fv={})[""+bv]="mdc-deprecated-list-item--activated",fv[""+yv]="mdc-deprecated-list-item",fv[""+xv]="mdc-deprecated-list-item--disabled",fv[""+wv]="mdc-deprecated-list-item--selected",fv[""+$v]="mdc-deprecated-list-item__text",fv[""+Av]="mdc-deprecated-list-item__primary-text",fv[""+kv]="mdc-deprecated-list",fv),Sv={ACTION_EVENT:"MDCList:action",SELECTION_CHANGE_EVENT:"MDCList:selectionChange",ARIA_CHECKED:"aria-checked",ARIA_CHECKED_CHECKBOX_SELECTOR:'[role="checkbox"][aria-checked="true"]',ARIA_CHECKED_RADIO_SELECTOR:'[role="radio"][aria-checked="true"]',ARIA_CURRENT:"aria-current",ARIA_DISABLED:"aria-disabled",ARIA_ORIENTATION:"aria-orientation",ARIA_ORIENTATION_HORIZONTAL:"horizontal",ARIA_ROLE_CHECKBOX_SELECTOR:'[role="checkbox"]',ARIA_SELECTED:"aria-selected",ARIA_INTERACTIVE_ROLES_SELECTOR:'[role="listbox"], [role="menu"]',ARIA_MULTI_SELECTABLE_SELECTOR:'[aria-multiselectable="true"]',CHECKBOX_RADIO_SELECTOR:'input[type="checkbox"], input[type="radio"]',CHECKBOX_SELECTOR:'input[type="checkbox"]',CHILD_ELEMENTS_TO_TOGGLE_TABINDEX:"\n    ."+yv+" button:not(:disabled),\n    ."+yv+" a,\n    ."+Ev[yv]+" button:not(:disabled),\n    ."+Ev[yv]+" a\n  ",DEPRECATED_SELECTOR:".mdc-deprecated-list",FOCUSABLE_CHILD_ELEMENTS:"\n    ."+yv+" button:not(:disabled),\n    ."+yv+" a,\n    ."+yv+' input[type="radio"]:not(:disabled),\n    .'+yv+' input[type="checkbox"]:not(:disabled),\n    .'+Ev[yv]+" button:not(:disabled),\n    ."+Ev[yv]+" a,\n    ."+Ev[yv]+' input[type="radio"]:not(:disabled),\n    .'+Ev[yv]+' input[type="checkbox"]:not(:disabled)\n  ',RADIO_SELECTOR:'input[type="radio"]',SELECTED_ITEM_SELECTOR:'[aria-selected="true"], [aria-current="true"]'},Cv={UNSET_INDEX:-1,TYPEAHEAD_BUFFER_CLEAR_TIMEOUT_MS:300};
/**
 * @license
 * Copyright 2020 Google LLC
 * SPDX-License-Identifier: Apache-2.0
 */
const Tv=(e,t)=>e-t,Pv=["input","button","textarea","select"];function Iv(e){return e instanceof Set}const Ov=e=>{const t=e===Cv.UNSET_INDEX?new Set:e;return Iv(t)?new Set(t):new Set([t])};class Rv extends xo{constructor(e){super(Object.assign(Object.assign({},Rv.defaultAdapter),e)),this.isMulti_=!1,this.wrapFocus_=!1,this.isVertical_=!0,this.selectedIndex_=Cv.UNSET_INDEX,this.focusedItemIndex_=Cv.UNSET_INDEX,this.useActivatedClass_=!1,this.ariaCurrentAttrValue_=null}static get strings(){return Sv}static get numbers(){return Cv}static get defaultAdapter(){return{focusItemAtIndex:()=>{},getFocusedElementIndex:()=>0,getListItemCount:()=>0,isFocusInsideList:()=>!1,isRootFocused:()=>!1,notifyAction:()=>{},notifySelected:()=>{},getSelectedStateForElementIndex:()=>!1,setDisabledStateForElementIndex:()=>{},getDisabledStateForElementIndex:()=>!1,setSelectedStateForElementIndex:()=>{},setActivatedStateForElementIndex:()=>{},setTabIndexForElementIndex:()=>{},setAttributeForElementIndex:()=>{},getAttributeForElementIndex:()=>null}}setWrapFocus(e){this.wrapFocus_=e}setMulti(e){this.isMulti_=e;const t=this.selectedIndex_;if(e){if(!Iv(t)){const e=t===Cv.UNSET_INDEX;this.selectedIndex_=e?new Set:new Set([t])}}else if(Iv(t))if(t.size){const e=Array.from(t).sort(Tv);this.selectedIndex_=e[0]}else this.selectedIndex_=Cv.UNSET_INDEX}setVerticalOrientation(e){this.isVertical_=e}setUseActivatedClass(e){this.useActivatedClass_=e}getSelectedIndex(){return this.selectedIndex_}setSelectedIndex(e){this.isIndexValid_(e)&&(this.isMulti_?this.setMultiSelectionAtIndex_(Ov(e)):this.setSingleSelectionAtIndex_(e))}handleFocusIn(e,t){t>=0&&this.adapter.setTabIndexForElementIndex(t,0)}handleFocusOut(e,t){t>=0&&this.adapter.setTabIndexForElementIndex(t,-1),setTimeout((()=>{this.adapter.isFocusInsideList()||this.setTabindexToFirstSelectedItem_()}),0)}handleKeydown(e,t,i){const o="ArrowLeft"===vv(e),s="ArrowUp"===vv(e),n="ArrowRight"===vv(e),r="ArrowDown"===vv(e),a="Home"===vv(e),l="End"===vv(e),d="Enter"===vv(e),c="Spacebar"===vv(e);if(this.adapter.isRootFocused())return void(s||l?(e.preventDefault(),this.focusLastElement()):(r||a)&&(e.preventDefault(),this.focusFirstElement()));let h,p=this.adapter.getFocusedElementIndex();if(!(-1===p&&(p=i,p<0))){if(this.isVertical_&&r||!this.isVertical_&&n)this.preventDefaultEvent(e),h=this.focusNextElement(p);else if(this.isVertical_&&s||!this.isVertical_&&o)this.preventDefaultEvent(e),h=this.focusPrevElement(p);else if(a)this.preventDefaultEvent(e),h=this.focusFirstElement();else if(l)this.preventDefaultEvent(e),h=this.focusLastElement();else if((d||c)&&t){const t=e.target;if(t&&"A"===t.tagName&&d)return;this.preventDefaultEvent(e),this.setSelectedIndexOnAction_(p,!0)}this.focusedItemIndex_=p,void 0!==h&&(this.setTabindexAtIndex_(h),this.focusedItemIndex_=h)}}handleSingleSelection(e,t,i){e!==Cv.UNSET_INDEX&&(this.setSelectedIndexOnAction_(e,t,i),this.setTabindexAtIndex_(e),this.focusedItemIndex_=e)}focusNextElement(e){let t=e+1;if(t>=this.adapter.getListItemCount()){if(!this.wrapFocus_)return e;t=0}return this.adapter.focusItemAtIndex(t),t}focusPrevElement(e){let t=e-1;if(t<0){if(!this.wrapFocus_)return e;t=this.adapter.getListItemCount()-1}return this.adapter.focusItemAtIndex(t),t}focusFirstElement(){return this.adapter.focusItemAtIndex(0),0}focusLastElement(){const e=this.adapter.getListItemCount()-1;return this.adapter.focusItemAtIndex(e),e}setEnabled(e,t){this.isIndexValid_(e)&&this.adapter.setDisabledStateForElementIndex(e,!t)}preventDefaultEvent(e){const t=`${e.target.tagName}`.toLowerCase();-1===Pv.indexOf(t)&&e.preventDefault()}setSingleSelectionAtIndex_(e,t=!0){this.selectedIndex_!==e&&(this.selectedIndex_!==Cv.UNSET_INDEX&&(this.adapter.setSelectedStateForElementIndex(this.selectedIndex_,!1),this.useActivatedClass_&&this.adapter.setActivatedStateForElementIndex(this.selectedIndex_,!1)),t&&this.adapter.setSelectedStateForElementIndex(e,!0),this.useActivatedClass_&&this.adapter.setActivatedStateForElementIndex(e,!0),this.setAriaForSingleSelectionAtIndex_(e),this.selectedIndex_=e,this.adapter.notifySelected(e))}setMultiSelectionAtIndex_(e,t=!0){const i=((e,t)=>{const i=Array.from(e),o=Array.from(t),s={added:[],removed:[]},n=i.sort(Tv),r=o.sort(Tv);let a=0,l=0;for(;a<n.length||l<r.length;){const e=n[a],t=r[l];e!==t?void 0!==e&&(void 0===t||e<t)?(s.removed.push(e),a++):void 0!==t&&(void 0===e||t<e)&&(s.added.push(t),l++):(a++,l++)}return s})(Ov(this.selectedIndex_),e);if(i.removed.length||i.added.length){for(const e of i.removed)t&&this.adapter.setSelectedStateForElementIndex(e,!1),this.useActivatedClass_&&this.adapter.setActivatedStateForElementIndex(e,!1);for(const e of i.added)t&&this.adapter.setSelectedStateForElementIndex(e,!0),this.useActivatedClass_&&this.adapter.setActivatedStateForElementIndex(e,!0);this.selectedIndex_=e,this.adapter.notifySelected(e,i)}}setAriaForSingleSelectionAtIndex_(e){this.selectedIndex_===Cv.UNSET_INDEX&&(this.ariaCurrentAttrValue_=this.adapter.getAttributeForElementIndex(e,Sv.ARIA_CURRENT));const t=null!==this.ariaCurrentAttrValue_,i=t?Sv.ARIA_CURRENT:Sv.ARIA_SELECTED;this.selectedIndex_!==Cv.UNSET_INDEX&&this.adapter.setAttributeForElementIndex(this.selectedIndex_,i,"false");const o=t?this.ariaCurrentAttrValue_:"true";this.adapter.setAttributeForElementIndex(e,i,o)}setTabindexAtIndex_(e){this.focusedItemIndex_===Cv.UNSET_INDEX&&0!==e?this.adapter.setTabIndexForElementIndex(0,-1):this.focusedItemIndex_>=0&&this.focusedItemIndex_!==e&&this.adapter.setTabIndexForElementIndex(this.focusedItemIndex_,-1),this.adapter.setTabIndexForElementIndex(e,0)}setTabindexToFirstSelectedItem_(){let e=0;"number"==typeof this.selectedIndex_&&this.selectedIndex_!==Cv.UNSET_INDEX?e=this.selectedIndex_:Iv(this.selectedIndex_)&&this.selectedIndex_.size>0&&(e=Math.min(...this.selectedIndex_)),this.setTabindexAtIndex_(e)}isIndexValid_(e){if(e instanceof Set){if(!this.isMulti_)throw new Error("MDCListFoundation: Array of index is only supported for checkbox based list");if(0===e.size)return!0;{let t=!1;for(const i of e)if(t=this.isIndexInRange_(i),t)break;return t}}if("number"==typeof e){if(this.isMulti_)throw new Error("MDCListFoundation: Expected array of index for checkbox based list but got number: "+e);return e===Cv.UNSET_INDEX||this.isIndexInRange_(e)}return!1}isIndexInRange_(e){const t=this.adapter.getListItemCount();return e>=0&&e<t}setSelectedIndexOnAction_(e,t,i){if(this.adapter.getDisabledStateForElementIndex(e))return;let o=e;if(this.isMulti_&&(o=new Set([e])),this.isIndexValid_(o)){if(this.isMulti_)this.toggleMultiAtIndex(e,i,t);else if(t||i)this.setSingleSelectionAtIndex_(e,t);else{this.selectedIndex_===e&&this.setSingleSelectionAtIndex_(Cv.UNSET_INDEX)}t&&this.adapter.notifyAction(e)}}toggleMultiAtIndex(e,t,i=!0){let o=!1;o=void 0===t?!this.adapter.getSelectedStateForElementIndex(e):t;const s=Ov(this.selectedIndex_);o?s.add(e):s.delete(e),this.setMultiSelectionAtIndex_(s,i)}}
/**
 * @license
 * Copyright 2020 Google LLC
 * SPDX-License-Identifier: Apache-2.0
 */const Nv=e=>e.hasAttribute("mwc-list-item");function Lv(){const e=this.itemsReadyResolver;this.itemsReady=new Promise((e=>this.itemsReadyResolver=e)),e()}class Mv extends yo{constructor(){super(),this.mdcAdapter=null,this.mdcFoundationClass=Rv,this.activatable=!1,this.multi=!1,this.wrapFocus=!1,this.itemRoles=null,this.innerRole=null,this.innerAriaLabel=null,this.rootTabbable=!1,this.previousTabindex=null,this.noninteractive=!1,this.itemsReadyResolver=()=>{},this.itemsReady=Promise.resolve([]),this.items_=[];const e=function(e,t=50){let i;return function(o=!0){clearTimeout(i),i=setTimeout((()=>{e(o)}),t)}}(this.layout.bind(this));this.debouncedLayout=(t=!0)=>{Lv.call(this),e(t)}}async getUpdateComplete(){const e=await super.getUpdateComplete();return await this.itemsReady,e}get items(){return this.items_}updateItems(){var e;const t=null!==(e=this.assignedElements)&&void 0!==e?e:[],i=[];for(const e of t)Nv(e)&&(i.push(e),e._managingList=this),e.hasAttribute("divider")&&!e.hasAttribute("role")&&e.setAttribute("role","separator");this.items_=i;const o=new Set;if(this.items_.forEach(((e,t)=>{this.itemRoles?e.setAttribute("role",this.itemRoles):e.removeAttribute("role"),e.selected&&o.add(t)})),this.multi)this.select(o);else{const e=o.size?o.entries().next().value[1]:-1;this.select(e)}const s=new Event("items-updated",{bubbles:!0,composed:!0});this.dispatchEvent(s)}get selected(){const e=this.index;if(!Iv(e))return-1===e?null:this.items[e];const t=[];for(const i of e)t.push(this.items[i]);return t}get index(){return this.mdcFoundation?this.mdcFoundation.getSelectedIndex():-1}render(){const e=null===this.innerRole?void 0:this.innerRole,t=null===this.innerAriaLabel?void 0:this.innerAriaLabel,i=this.rootTabbable?"0":"-1";return A_`
      <!-- @ts-ignore -->
      <ul
          tabindex=${i}
          role="${J_(e)}"
          aria-label="${J_(t)}"
          class="mdc-deprecated-list"
          @keydown=${this.onKeydown}
          @focusin=${this.onFocusIn}
          @focusout=${this.onFocusOut}
          @request-selected=${this.onRequestSelected}
          @list-item-rendered=${this.onListItemConnected}>
        <slot></slot>
        ${this.renderPlaceholder()}
      </ul>
    `}renderPlaceholder(){var e;const t=null!==(e=this.assignedElements)&&void 0!==e?e:[];return void 0!==this.emptyMessage&&0===t.length?A_`
        <mwc-list-item noninteractive>${this.emptyMessage}</mwc-list-item>
      `:null}firstUpdated(){super.firstUpdated(),this.items.length||(this.mdcFoundation.setMulti(this.multi),this.layout())}onFocusIn(e){if(this.mdcFoundation&&this.mdcRoot){const t=this.getIndexOfTarget(e);this.mdcFoundation.handleFocusIn(e,t)}}onFocusOut(e){if(this.mdcFoundation&&this.mdcRoot){const t=this.getIndexOfTarget(e);this.mdcFoundation.handleFocusOut(e,t)}}onKeydown(e){if(this.mdcFoundation&&this.mdcRoot){const t=this.getIndexOfTarget(e),i=e.target,o=Nv(i);this.mdcFoundation.handleKeydown(e,o,t)}}onRequestSelected(e){if(this.mdcFoundation){let t=this.getIndexOfTarget(e);if(-1===t&&(this.layout(),t=this.getIndexOfTarget(e),-1===t))return;if(this.items[t].disabled)return;const i=e.detail.selected,o=e.detail.source;this.mdcFoundation.handleSingleSelection(t,"interaction"===o,i),e.stopPropagation()}}getIndexOfTarget(e){const t=this.items,i=e.composedPath();for(const e of i){let i=-1;if(po(e)&&Nv(e)&&(i=t.indexOf(e)),-1!==i)return i}return-1}createAdapter(){return this.mdcAdapter={getListItemCount:()=>this.mdcRoot?this.items.length:0,getFocusedElementIndex:this.getFocusedItemIndex,getAttributeForElementIndex:(e,t)=>{if(!this.mdcRoot)return"";const i=this.items[e];return i?i.getAttribute(t):""},setAttributeForElementIndex:(e,t,i)=>{if(!this.mdcRoot)return;const o=this.items[e];o&&o.setAttribute(t,i)},focusItemAtIndex:e=>{const t=this.items[e];t&&t.focus()},setTabIndexForElementIndex:(e,t)=>{const i=this.items[e];i&&(i.tabindex=t)},notifyAction:e=>{const t={bubbles:!0,composed:!0};t.detail={index:e};const i=new CustomEvent("action",t);this.dispatchEvent(i)},notifySelected:(e,t)=>{const i={bubbles:!0,composed:!0};i.detail={index:e,diff:t};const o=new CustomEvent("selected",i);this.dispatchEvent(o)},isFocusInsideList:()=>bo(this),isRootFocused:()=>{const e=this.mdcRoot;return e.getRootNode().activeElement===e},setDisabledStateForElementIndex:(e,t)=>{const i=this.items[e];i&&(i.disabled=t)},getDisabledStateForElementIndex:e=>{const t=this.items[e];return!!t&&t.disabled},setSelectedStateForElementIndex:(e,t)=>{const i=this.items[e];i&&(i.selected=t)},getSelectedStateForElementIndex:e=>{const t=this.items[e];return!!t&&t.selected},setActivatedStateForElementIndex:(e,t)=>{const i=this.items[e];i&&(i.activated=t)}},this.mdcAdapter}selectUi(e,t=!1){const i=this.items[e];i&&(i.selected=!0,i.activated=t)}deselectUi(e){const t=this.items[e];t&&(t.selected=!1,t.activated=!1)}select(e){this.mdcFoundation&&this.mdcFoundation.setSelectedIndex(e)}toggle(e,t){this.multi&&this.mdcFoundation.toggleMultiAtIndex(e,t)}onListItemConnected(e){const t=e.target;this.layout(-1===this.items.indexOf(t))}layout(e=!0){e&&this.updateItems();const t=this.items[0];for(const e of this.items)e.tabindex=-1;t&&(this.noninteractive?this.previousTabindex||(this.previousTabindex=t):t.tabindex=0),this.itemsReadyResolver()}getFocusedItemIndex(){if(!this.mdcRoot)return-1;if(!this.items.length)return-1;const e=vo();if(!e.length)return-1;for(let t=e.length-1;t>=0;t--){const i=e[t];if(Nv(i))return this.items.indexOf(i)}return-1}focusItemAtIndex(e){for(const e of this.items)if(0===e.tabindex){e.tabindex=-1;break}this.items[e].tabindex=0,this.items[e].focus()}focus(){const e=this.mdcRoot;e&&e.focus()}blur(){const e=this.mdcRoot;e&&e.blur()}}o([Nf({type:String})],Mv.prototype,"emptyMessage",void 0),o([Uf(".mdc-deprecated-list")],Mv.prototype,"mdcRoot",void 0),o([zf("",!0,"*")],Mv.prototype,"assignedElements",void 0),o([zf("",!0,'[tabindex="0"]')],Mv.prototype,"tabbableElements",void 0),o([Nf({type:Boolean}),Fl((function(e){this.mdcFoundation&&this.mdcFoundation.setUseActivatedClass(e)}))],Mv.prototype,"activatable",void 0),o([Nf({type:Boolean}),Fl((function(e,t){this.mdcFoundation&&this.mdcFoundation.setMulti(e),void 0!==t&&this.layout()}))],Mv.prototype,"multi",void 0),o([Nf({type:Boolean}),Fl((function(e){this.mdcFoundation&&this.mdcFoundation.setWrapFocus(e)}))],Mv.prototype,"wrapFocus",void 0),o([Nf({type:String}),Fl((function(e,t){void 0!==t&&this.updateItems()}))],Mv.prototype,"itemRoles",void 0),o([Nf({type:String})],Mv.prototype,"innerRole",void 0),o([Nf({type:String})],Mv.prototype,"innerAriaLabel",void 0),o([Nf({type:Boolean})],Mv.prototype,"rootTabbable",void 0),o([Nf({type:Boolean,reflect:!0}),Fl((function(e){var t,i;if(e){const e=null!==(i=null===(t=this.tabbableElements)||void 0===t?void 0:t[0])&&void 0!==i?i:null;this.previousTabindex=e,e&&e.setAttribute("tabindex","-1")}else!e&&this.previousTabindex&&(this.previousTabindex.setAttribute("tabindex","0"),this.previousTabindex=null)}))],Mv.prototype,"noninteractive",void 0);
/**
 * @license
 * Copyright 2021 Google LLC
 * SPDX-LIcense-Identifier: Apache-2.0
 */
const Uv=Wf`@keyframes mdc-ripple-fg-radius-in{from{animation-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transform:translate(var(--mdc-ripple-fg-translate-start, 0)) scale(1)}to{transform:translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1))}}@keyframes mdc-ripple-fg-opacity-in{from{animation-timing-function:linear;opacity:0}to{opacity:var(--mdc-ripple-fg-opacity, 0)}}@keyframes mdc-ripple-fg-opacity-out{from{animation-timing-function:linear;opacity:var(--mdc-ripple-fg-opacity, 0)}to{opacity:0}}:host{display:block}.mdc-deprecated-list{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-subtitle1-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:1rem;font-size:var(--mdc-typography-subtitle1-font-size, 1rem);line-height:1.75rem;line-height:var(--mdc-typography-subtitle1-line-height, 1.75rem);font-weight:400;font-weight:var(--mdc-typography-subtitle1-font-weight, 400);letter-spacing:0.009375em;letter-spacing:var(--mdc-typography-subtitle1-letter-spacing, 0.009375em);text-decoration:inherit;text-decoration:var(--mdc-typography-subtitle1-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-subtitle1-text-transform, inherit);line-height:1.5rem;margin:0;padding:8px 0;list-style-type:none;color:rgba(0, 0, 0, 0.87);color:var(--mdc-theme-text-primary-on-background, rgba(0, 0, 0, 0.87));padding:var(--mdc-list-vertical-padding, 8px) 0}.mdc-deprecated-list:focus{outline:none}.mdc-deprecated-list-item{height:48px}.mdc-deprecated-list--dense{padding-top:4px;padding-bottom:4px;font-size:.812rem}.mdc-deprecated-list ::slotted([divider]){height:0;margin:0;border:none;border-bottom-width:1px;border-bottom-style:solid;border-bottom-color:rgba(0, 0, 0, 0.12)}.mdc-deprecated-list ::slotted([divider][padded]){margin:0 var(--mdc-list-side-padding, 16px)}.mdc-deprecated-list ::slotted([divider][inset]){margin-left:var(--mdc-list-inset-margin, 72px);margin-right:0;width:calc( 100% - var(--mdc-list-inset-margin, 72px) )}[dir=rtl] .mdc-deprecated-list ::slotted([divider][inset]),.mdc-deprecated-list ::slotted([divider][inset][dir=rtl]){margin-left:0;margin-right:var(--mdc-list-inset-margin, 72px)}.mdc-deprecated-list ::slotted([divider][inset][padded]){width:calc( 100% - var(--mdc-list-inset-margin, 72px) - var(--mdc-list-side-padding, 16px) )}.mdc-deprecated-list--dense ::slotted([mwc-list-item]){height:40px}.mdc-deprecated-list--dense ::slotted([mwc-list]){--mdc-list-item-graphic-size: 20px}.mdc-deprecated-list--two-line.mdc-deprecated-list--dense ::slotted([mwc-list-item]),.mdc-deprecated-list--avatar-list.mdc-deprecated-list--dense ::slotted([mwc-list-item]){height:60px}.mdc-deprecated-list--avatar-list.mdc-deprecated-list--dense ::slotted([mwc-list]){--mdc-list-item-graphic-size: 36px}:host([noninteractive]){pointer-events:none;cursor:default}.mdc-deprecated-list--dense ::slotted(.mdc-deprecated-list-item__primary-text){display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-deprecated-list--dense ::slotted(.mdc-deprecated-list-item__primary-text)::before{display:inline-block;width:0;height:24px;content:"";vertical-align:0}.mdc-deprecated-list--dense ::slotted(.mdc-deprecated-list-item__primary-text)::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}`
/**
 * @license
 * Copyright 2020 Google LLC
 * SPDX-License-Identifier: Apache-2.0
 */;let Hv=class extends Mv{};Hv.styles=[Uv],Hv=o([If("mwc-list")],Hv);
/**
 * @license
 * Copyright 2018 Google Inc.
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 * THE SOFTWARE.
 */
var Dv,zv,Bv={ANCHOR:"mdc-menu-surface--anchor",ANIMATING_CLOSED:"mdc-menu-surface--animating-closed",ANIMATING_OPEN:"mdc-menu-surface--animating-open",FIXED:"mdc-menu-surface--fixed",IS_OPEN_BELOW:"mdc-menu-surface--is-open-below",OPEN:"mdc-menu-surface--open",ROOT:"mdc-menu-surface"},Fv={CLOSED_EVENT:"MDCMenuSurface:closed",CLOSING_EVENT:"MDCMenuSurface:closing",OPENED_EVENT:"MDCMenuSurface:opened",OPENING_EVENT:"MDCMenuSurface:opening",FOCUSABLE_ELEMENTS:["button:not(:disabled)",'[href]:not([aria-disabled="true"])',"input:not(:disabled)","select:not(:disabled)","textarea:not(:disabled)",'[tabindex]:not([tabindex="-1"]):not([aria-disabled="true"])'].join(", ")},jv={TRANSITION_OPEN_DURATION:120,TRANSITION_CLOSE_DURATION:75,MARGIN_TO_EDGE:32,ANCHOR_TO_MENU_SURFACE_WIDTH_RATIO:.67,TOUCH_EVENT_WAIT_MS:30};!function(e){e[e.BOTTOM=1]="BOTTOM",e[e.CENTER=2]="CENTER",e[e.RIGHT=4]="RIGHT",e[e.FLIP_RTL=8]="FLIP_RTL"}(Dv||(Dv={})),function(e){e[e.TOP_LEFT=0]="TOP_LEFT",e[e.TOP_RIGHT=4]="TOP_RIGHT",e[e.BOTTOM_LEFT=1]="BOTTOM_LEFT",e[e.BOTTOM_RIGHT=5]="BOTTOM_RIGHT",e[e.TOP_START=8]="TOP_START",e[e.TOP_END=12]="TOP_END",e[e.BOTTOM_START=9]="BOTTOM_START",e[e.BOTTOM_END=13]="BOTTOM_END"}(zv||(zv={}));
/**
 * @license
 * Copyright 2018 Google Inc.
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 * THE SOFTWARE.
 */
var Vv=function(e){function o(t){var s=e.call(this,i(i({},o.defaultAdapter),t))||this;return s.isSurfaceOpen=!1,s.isQuickOpen=!1,s.isHoistedElement=!1,s.isFixedPosition=!1,s.isHorizontallyCenteredOnViewport=!1,s.maxHeight=0,s.openBottomBias=0,s.openAnimationEndTimerId=0,s.closeAnimationEndTimerId=0,s.animationRequestId=0,s.anchorCorner=zv.TOP_START,s.originCorner=zv.TOP_START,s.anchorMargin={top:0,right:0,bottom:0,left:0},s.position={x:0,y:0},s}return t(o,e),Object.defineProperty(o,"cssClasses",{get:function(){return Bv},enumerable:!1,configurable:!0}),Object.defineProperty(o,"strings",{get:function(){return Fv},enumerable:!1,configurable:!0}),Object.defineProperty(o,"numbers",{get:function(){return jv},enumerable:!1,configurable:!0}),Object.defineProperty(o,"Corner",{get:function(){return zv},enumerable:!1,configurable:!0}),Object.defineProperty(o,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},hasClass:function(){return!1},hasAnchor:function(){return!1},isElementInContainer:function(){return!1},isFocused:function(){return!1},isRtl:function(){return!1},getInnerDimensions:function(){return{height:0,width:0}},getAnchorDimensions:function(){return null},getWindowDimensions:function(){return{height:0,width:0}},getBodyDimensions:function(){return{height:0,width:0}},getWindowScroll:function(){return{x:0,y:0}},setPosition:function(){},setMaxHeight:function(){},setTransformOrigin:function(){},saveFocus:function(){},restoreFocus:function(){},notifyClose:function(){},notifyClosing:function(){},notifyOpen:function(){},notifyOpening:function(){}}},enumerable:!1,configurable:!0}),o.prototype.init=function(){var e=o.cssClasses,t=e.ROOT,i=e.OPEN;if(!this.adapter.hasClass(t))throw new Error(t+" class required in root element.");this.adapter.hasClass(i)&&(this.isSurfaceOpen=!0)},o.prototype.destroy=function(){clearTimeout(this.openAnimationEndTimerId),clearTimeout(this.closeAnimationEndTimerId),cancelAnimationFrame(this.animationRequestId)},o.prototype.setAnchorCorner=function(e){this.anchorCorner=e},o.prototype.flipCornerHorizontally=function(){this.originCorner=this.originCorner^Dv.RIGHT},o.prototype.setAnchorMargin=function(e){this.anchorMargin.top=e.top||0,this.anchorMargin.right=e.right||0,this.anchorMargin.bottom=e.bottom||0,this.anchorMargin.left=e.left||0},o.prototype.setIsHoisted=function(e){this.isHoistedElement=e},o.prototype.setFixedPosition=function(e){this.isFixedPosition=e},o.prototype.isFixed=function(){return this.isFixedPosition},o.prototype.setAbsolutePosition=function(e,t){this.position.x=this.isFinite(e)?e:0,this.position.y=this.isFinite(t)?t:0},o.prototype.setIsHorizontallyCenteredOnViewport=function(e){this.isHorizontallyCenteredOnViewport=e},o.prototype.setQuickOpen=function(e){this.isQuickOpen=e},o.prototype.setMaxHeight=function(e){this.maxHeight=e},o.prototype.setOpenBottomBias=function(e){this.openBottomBias=e},o.prototype.isOpen=function(){return this.isSurfaceOpen},o.prototype.open=function(){var e=this;this.isSurfaceOpen||(this.adapter.notifyOpening(),this.adapter.saveFocus(),this.isQuickOpen?(this.isSurfaceOpen=!0,this.adapter.addClass(o.cssClasses.OPEN),this.dimensions=this.adapter.getInnerDimensions(),this.autoposition(),this.adapter.notifyOpen()):(this.adapter.addClass(o.cssClasses.ANIMATING_OPEN),this.animationRequestId=requestAnimationFrame((function(){e.dimensions=e.adapter.getInnerDimensions(),e.autoposition(),e.adapter.addClass(o.cssClasses.OPEN),e.openAnimationEndTimerId=setTimeout((function(){e.openAnimationEndTimerId=0,e.adapter.removeClass(o.cssClasses.ANIMATING_OPEN),e.adapter.notifyOpen()}),jv.TRANSITION_OPEN_DURATION)})),this.isSurfaceOpen=!0))},o.prototype.close=function(e){var t=this;if(void 0===e&&(e=!1),this.isSurfaceOpen){if(this.adapter.notifyClosing(),this.isQuickOpen)return this.isSurfaceOpen=!1,e||this.maybeRestoreFocus(),this.adapter.removeClass(o.cssClasses.OPEN),this.adapter.removeClass(o.cssClasses.IS_OPEN_BELOW),void this.adapter.notifyClose();this.adapter.addClass(o.cssClasses.ANIMATING_CLOSED),requestAnimationFrame((function(){t.adapter.removeClass(o.cssClasses.OPEN),t.adapter.removeClass(o.cssClasses.IS_OPEN_BELOW),t.closeAnimationEndTimerId=setTimeout((function(){t.closeAnimationEndTimerId=0,t.adapter.removeClass(o.cssClasses.ANIMATING_CLOSED),t.adapter.notifyClose()}),jv.TRANSITION_CLOSE_DURATION)})),this.isSurfaceOpen=!1,e||this.maybeRestoreFocus()}},o.prototype.handleBodyClick=function(e){var t=e.target;this.adapter.isElementInContainer(t)||this.close()},o.prototype.handleKeydown=function(e){var t=e.keyCode;("Escape"===e.key||27===t)&&this.close()},o.prototype.autoposition=function(){var e;this.measurements=this.getAutoLayoutmeasurements();var t=this.getoriginCorner(),i=this.getMenuSurfaceMaxHeight(t),s=this.hasBit(t,Dv.BOTTOM)?"bottom":"top",n=this.hasBit(t,Dv.RIGHT)?"right":"left",r=this.getHorizontalOriginOffset(t),a=this.getVerticalOriginOffset(t),l=this.measurements,d=l.anchorSize,c=l.surfaceSize,h=((e={})[n]=r,e[s]=a,e);d.width/c.width>jv.ANCHOR_TO_MENU_SURFACE_WIDTH_RATIO&&(n="center"),(this.isHoistedElement||this.isFixedPosition)&&this.adjustPositionForHoistedElement(h),this.adapter.setTransformOrigin(n+" "+s),this.adapter.setPosition(h),this.adapter.setMaxHeight(i?i+"px":""),this.hasBit(t,Dv.BOTTOM)||this.adapter.addClass(o.cssClasses.IS_OPEN_BELOW)},o.prototype.getAutoLayoutmeasurements=function(){var e=this.adapter.getAnchorDimensions(),t=this.adapter.getBodyDimensions(),i=this.adapter.getWindowDimensions(),o=this.adapter.getWindowScroll();return e||(e={top:this.position.y,right:this.position.x,bottom:this.position.y,left:this.position.x,width:0,height:0}),{anchorSize:e,bodySize:t,surfaceSize:this.dimensions,viewportDistance:{top:e.top,right:i.width-e.right,bottom:i.height-e.bottom,left:e.left},viewportSize:i,windowScroll:o}},o.prototype.getoriginCorner=function(){var e,t,i=this.originCorner,s=this.measurements,n=s.viewportDistance,r=s.anchorSize,a=s.surfaceSize,l=o.numbers.MARGIN_TO_EDGE;this.hasBit(this.anchorCorner,Dv.BOTTOM)?(e=n.top-l+this.anchorMargin.bottom,t=n.bottom-l-this.anchorMargin.bottom):(e=n.top-l+this.anchorMargin.top,t=n.bottom-l+r.height-this.anchorMargin.top),!(t-a.height>0)&&e>t+this.openBottomBias&&(i=this.setBit(i,Dv.BOTTOM));var d,c,h=this.adapter.isRtl(),p=this.hasBit(this.anchorCorner,Dv.FLIP_RTL),u=this.hasBit(this.anchorCorner,Dv.RIGHT)||this.hasBit(i,Dv.RIGHT),m=!1;(m=h&&p?!u:u)?(d=n.left+r.width+this.anchorMargin.right,c=n.right-this.anchorMargin.right):(d=n.left+this.anchorMargin.left,c=n.right+r.width-this.anchorMargin.left);var g=d-a.width>0,f=c-a.width>0,_=this.hasBit(i,Dv.FLIP_RTL)&&this.hasBit(i,Dv.RIGHT);return f&&_&&h||!g&&_?i=this.unsetBit(i,Dv.RIGHT):(g&&m&&h||g&&!m&&u||!f&&d>=c)&&(i=this.setBit(i,Dv.RIGHT)),i},o.prototype.getMenuSurfaceMaxHeight=function(e){if(this.maxHeight>0)return this.maxHeight;var t=this.measurements.viewportDistance,i=0,s=this.hasBit(e,Dv.BOTTOM),n=this.hasBit(this.anchorCorner,Dv.BOTTOM),r=o.numbers.MARGIN_TO_EDGE;return s?(i=t.top+this.anchorMargin.top-r,n||(i+=this.measurements.anchorSize.height)):(i=t.bottom-this.anchorMargin.bottom+this.measurements.anchorSize.height-r,n&&(i-=this.measurements.anchorSize.height)),i},o.prototype.getHorizontalOriginOffset=function(e){var t=this.measurements.anchorSize,i=this.hasBit(e,Dv.RIGHT),o=this.hasBit(this.anchorCorner,Dv.RIGHT);if(i){var s=o?t.width-this.anchorMargin.left:this.anchorMargin.right;return this.isHoistedElement||this.isFixedPosition?s-(this.measurements.viewportSize.width-this.measurements.bodySize.width):s}return o?t.width-this.anchorMargin.right:this.anchorMargin.left},o.prototype.getVerticalOriginOffset=function(e){var t=this.measurements.anchorSize,i=this.hasBit(e,Dv.BOTTOM),o=this.hasBit(this.anchorCorner,Dv.BOTTOM);return i?o?t.height-this.anchorMargin.top:-this.anchorMargin.bottom:o?t.height+this.anchorMargin.bottom:this.anchorMargin.top},o.prototype.adjustPositionForHoistedElement=function(e){var t,i,o=this.measurements,n=o.windowScroll,r=o.viewportDistance,a=o.surfaceSize,l=o.viewportSize,d=Object.keys(e);try{for(var c=s(d),h=c.next();!h.done;h=c.next()){var p=h.value,u=e[p]||0;!this.isHorizontallyCenteredOnViewport||"left"!==p&&"right"!==p?(u+=r[p],this.isFixedPosition||("top"===p?u+=n.y:"bottom"===p?u-=n.y:"left"===p?u+=n.x:u-=n.x),e[p]=u):e[p]=(l.width-a.width)/2}}catch(e){t={error:e}}finally{try{h&&!h.done&&(i=c.return)&&i.call(c)}finally{if(t)throw t.error}}},o.prototype.maybeRestoreFocus=function(){var e=this,t=this.adapter.isFocused(),i=this.adapter.getOwnerDocument?this.adapter.getOwnerDocument():document,o=i.activeElement&&this.adapter.isElementInContainer(i.activeElement);(t||o)&&setTimeout((function(){e.adapter.restoreFocus()}),jv.TOUCH_EVENT_WAIT_MS)},o.prototype.hasBit=function(e,t){return Boolean(e&t)},o.prototype.setBit=function(e,t){return e|t},o.prototype.unsetBit=function(e,t){return e^t},o.prototype.isFinite=function(e){return"number"==typeof e&&isFinite(e)},o}(xo);
/**
 * @license
 * Copyright 2019 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */const qv=window,Wv=qv.ShadowRoot&&(void 0===qv.ShadyCSS||qv.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Gv=Symbol(),Kv=new WeakMap;let Xv=class{constructor(e,t,i){if(this._$cssResult$=!0,i!==Gv)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o;const t=this.t;if(Wv&&void 0===e){const i=void 0!==t&&1===t.length;i&&(e=Kv.get(t)),void 0===e&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),i&&Kv.set(t,e))}return e}toString(){return this.cssText}};const Yv=(e,...t)=>{const i=1===e.length?e[0]:t.reduce(((t,i,o)=>t+(e=>{if(!0===e._$cssResult$)return e.cssText;if("number"==typeof e)return e;throw Error("Value passed to 'css' function must be a 'css' function result: "+e+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+e[o+1]),e[0]);return new Xv(i,e,Gv)},Jv=Wv?e=>e:e=>e instanceof CSSStyleSheet?(e=>{let t="";for(const i of e.cssRules)t+=i.cssText;return(e=>new Xv("string"==typeof e?e:e+"",void 0,Gv))(t)})(e):e
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */;var Zv;const Qv=window,eb=Qv.trustedTypes,tb=eb?eb.emptyScript:"",ib=Qv.reactiveElementPolyfillSupport,ob={toAttribute(e,t){switch(t){case Boolean:e=e?tb:null;break;case Object:case Array:e=null==e?e:JSON.stringify(e)}return e},fromAttribute(e,t){let i=e;switch(t){case Boolean:i=null!==e;break;case Number:i=null===e?null:Number(e);break;case Object:case Array:try{i=JSON.parse(e)}catch(e){i=null}}return i}},sb=(e,t)=>t!==e&&(t==t||e==e),nb={attribute:!0,type:String,converter:ob,reflect:!1,hasChanged:sb},rb="finalized";let ab=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this._$Eu()}static addInitializer(e){var t;this.finalize(),(null!==(t=this.h)&&void 0!==t?t:this.h=[]).push(e)}static get observedAttributes(){this.finalize();const e=[];return this.elementProperties.forEach(((t,i)=>{const o=this._$Ep(i,t);void 0!==o&&(this._$Ev.set(o,i),e.push(o))})),e}static createProperty(e,t=nb){if(t.state&&(t.attribute=!1),this.finalize(),this.elementProperties.set(e,t),!t.noAccessor&&!this.prototype.hasOwnProperty(e)){const i="symbol"==typeof e?Symbol():"__"+e,o=this.getPropertyDescriptor(e,i,t);void 0!==o&&Object.defineProperty(this.prototype,e,o)}}static getPropertyDescriptor(e,t,i){return{get(){return this[t]},set(o){const s=this[e];this[t]=o,this.requestUpdate(e,s,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)||nb}static finalize(){if(this.hasOwnProperty(rb))return!1;this[rb]=!0;const e=Object.getPrototypeOf(this);if(e.finalize(),void 0!==e.h&&(this.h=[...e.h]),this.elementProperties=new Map(e.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const e=this.properties,t=[...Object.getOwnPropertyNames(e),...Object.getOwnPropertySymbols(e)];for(const i of t)this.createProperty(i,e[i])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(e){const t=[];if(Array.isArray(e)){const i=new Set(e.flat(1/0).reverse());for(const e of i)t.unshift(Jv(e))}else void 0!==e&&t.push(Jv(e));return t}static _$Ep(e,t){const i=t.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof e?e.toLowerCase():void 0}_$Eu(){var e;this._$E_=new Promise((e=>this.enableUpdating=e)),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(e=this.constructor.h)||void 0===e||e.forEach((e=>e(this)))}addController(e){var t,i;(null!==(t=this._$ES)&&void 0!==t?t:this._$ES=[]).push(e),void 0!==this.renderRoot&&this.isConnected&&(null===(i=e.hostConnected)||void 0===i||i.call(e))}removeController(e){var t;null===(t=this._$ES)||void 0===t||t.splice(this._$ES.indexOf(e)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach(((e,t)=>{this.hasOwnProperty(t)&&(this._$Ei.set(t,this[t]),delete this[t])}))}createRenderRoot(){var e;const t=null!==(e=this.shadowRoot)&&void 0!==e?e:this.attachShadow(this.constructor.shadowRootOptions);return((e,t)=>{Wv?e.adoptedStyleSheets=t.map((e=>e instanceof CSSStyleSheet?e:e.styleSheet)):t.forEach((t=>{const i=document.createElement("style"),o=qv.litNonce;void 0!==o&&i.setAttribute("nonce",o),i.textContent=t.cssText,e.appendChild(i)}))})(t,this.constructor.elementStyles),t}connectedCallback(){var e;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(e=this._$ES)||void 0===e||e.forEach((e=>{var t;return null===(t=e.hostConnected)||void 0===t?void 0:t.call(e)}))}enableUpdating(e){}disconnectedCallback(){var e;null===(e=this._$ES)||void 0===e||e.forEach((e=>{var t;return null===(t=e.hostDisconnected)||void 0===t?void 0:t.call(e)}))}attributeChangedCallback(e,t,i){this._$AK(e,i)}_$EO(e,t,i=nb){var o;const s=this.constructor._$Ep(e,i);if(void 0!==s&&!0===i.reflect){const n=(void 0!==(null===(o=i.converter)||void 0===o?void 0:o.toAttribute)?i.converter:ob).toAttribute(t,i.type);this._$El=e,null==n?this.removeAttribute(s):this.setAttribute(s,n),this._$El=null}}_$AK(e,t){var i;const o=this.constructor,s=o._$Ev.get(e);if(void 0!==s&&this._$El!==s){const e=o.getPropertyOptions(s),n="function"==typeof e.converter?{fromAttribute:e.converter}:void 0!==(null===(i=e.converter)||void 0===i?void 0:i.fromAttribute)?e.converter:ob;this._$El=s,this[s]=n.fromAttribute(t,e.type),this._$El=null}}requestUpdate(e,t,i){let o=!0;void 0!==e&&(((i=i||this.constructor.getPropertyOptions(e)).hasChanged||sb)(this[e],t)?(this._$AL.has(e)||this._$AL.set(e,t),!0===i.reflect&&this._$El!==e&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(e,i))):o=!1),!this.isUpdatePending&&o&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(e){Promise.reject(e)}const e=this.scheduleUpdate();return null!=e&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var e;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach(((e,t)=>this[t]=e)),this._$Ei=void 0);let t=!1;const i=this._$AL;try{t=this.shouldUpdate(i),t?(this.willUpdate(i),null===(e=this._$ES)||void 0===e||e.forEach((e=>{var t;return null===(t=e.hostUpdate)||void 0===t?void 0:t.call(e)})),this.update(i)):this._$Ek()}catch(e){throw t=!1,this._$Ek(),e}t&&this._$AE(i)}willUpdate(e){}_$AE(e){var t;null===(t=this._$ES)||void 0===t||t.forEach((e=>{var t;return null===(t=e.hostUpdated)||void 0===t?void 0:t.call(e)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(e){return!0}update(e){void 0!==this._$EC&&(this._$EC.forEach(((e,t)=>this._$EO(t,this[t],e))),this._$EC=void 0),this._$Ek()}updated(e){}firstUpdated(e){}};
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */
var lb;ab[rb]=!0,ab.elementProperties=new Map,ab.elementStyles=[],ab.shadowRootOptions={mode:"open"},null==ib||ib({ReactiveElement:ab}),(null!==(Zv=Qv.reactiveElementVersions)&&void 0!==Zv?Zv:Qv.reactiveElementVersions=[]).push("1.6.3");const db=window,cb=db.trustedTypes,hb=cb?cb.createPolicy("lit-html",{createHTML:e=>e}):void 0,pb="$lit$",ub=`lit$${(Math.random()+"").slice(9)}$`,mb="?"+ub,gb=`<${mb}>`,fb=document,_b=()=>fb.createComment(""),vb=e=>null===e||"object"!=typeof e&&"function"!=typeof e,bb=Array.isArray,yb="[ \t\n\f\r]",xb=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,wb=/-->/g,$b=/>/g,Ab=RegExp(`>|${yb}(?:([^\\s"'>=/]+)(${yb}*=${yb}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),kb=/'/g,Eb=/"/g,Sb=/^(?:script|style|textarea|title)$/i,Cb=(e=>(t,...i)=>({_$litType$:e,strings:t,values:i}))(1),Tb=Symbol.for("lit-noChange"),Pb=Symbol.for("lit-nothing"),Ib=new WeakMap,Ob=fb.createTreeWalker(fb,129,null,!1);function Rb(e,t){if(!Array.isArray(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==hb?hb.createHTML(t):t}let Nb=class e{constructor({strings:t,_$litType$:i},o){let s;this.parts=[];let n=0,r=0;const a=t.length-1,l=this.parts,[d,c]=((e,t)=>{const i=e.length-1,o=[];let s,n=2===t?"<svg>":"",r=xb;for(let t=0;t<i;t++){const i=e[t];let a,l,d=-1,c=0;for(;c<i.length&&(r.lastIndex=c,l=r.exec(i),null!==l);)c=r.lastIndex,r===xb?"!--"===l[1]?r=wb:void 0!==l[1]?r=$b:void 0!==l[2]?(Sb.test(l[2])&&(s=RegExp("</"+l[2],"g")),r=Ab):void 0!==l[3]&&(r=Ab):r===Ab?">"===l[0]?(r=null!=s?s:xb,d=-1):void 0===l[1]?d=-2:(d=r.lastIndex-l[2].length,a=l[1],r=void 0===l[3]?Ab:'"'===l[3]?Eb:kb):r===Eb||r===kb?r=Ab:r===wb||r===$b?r=xb:(r=Ab,s=void 0);const h=r===Ab&&e[t+1].startsWith("/>")?" ":"";n+=r===xb?i+gb:d>=0?(o.push(a),i.slice(0,d)+pb+i.slice(d)+ub+h):i+ub+(-2===d?(o.push(void 0),t):h)}return[Rb(e,n+(e[i]||"<?>")+(2===t?"</svg>":"")),o]})(t,i);if(this.el=e.createElement(d,o),Ob.currentNode=this.el.content,2===i){const e=this.el.content,t=e.firstChild;t.remove(),e.append(...t.childNodes)}for(;null!==(s=Ob.nextNode())&&l.length<a;){if(1===s.nodeType){if(s.hasAttributes()){const e=[];for(const t of s.getAttributeNames())if(t.endsWith(pb)||t.startsWith(ub)){const i=c[r++];if(e.push(t),void 0!==i){const e=s.getAttribute(i.toLowerCase()+pb).split(ub),t=/([.?@])?(.*)/.exec(i);l.push({type:1,index:n,name:t[2],strings:e,ctor:"."===t[1]?Db:"?"===t[1]?Bb:"@"===t[1]?Fb:Hb})}else l.push({type:6,index:n})}for(const t of e)s.removeAttribute(t)}if(Sb.test(s.tagName)){const e=s.textContent.split(ub),t=e.length-1;if(t>0){s.textContent=cb?cb.emptyScript:"";for(let i=0;i<t;i++)s.append(e[i],_b()),Ob.nextNode(),l.push({type:2,index:++n});s.append(e[t],_b())}}}else if(8===s.nodeType)if(s.data===mb)l.push({type:2,index:n});else{let e=-1;for(;-1!==(e=s.data.indexOf(ub,e+1));)l.push({type:7,index:n}),e+=ub.length-1}n++}}static createElement(e,t){const i=fb.createElement("template");return i.innerHTML=e,i}};function Lb(e,t,i=e,o){var s,n,r,a;if(t===Tb)return t;let l=void 0!==o?null===(s=i._$Co)||void 0===s?void 0:s[o]:i._$Cl;const d=vb(t)?void 0:t._$litDirective$;return(null==l?void 0:l.constructor)!==d&&(null===(n=null==l?void 0:l._$AO)||void 0===n||n.call(l,!1),void 0===d?l=void 0:(l=new d(e),l._$AT(e,i,o)),void 0!==o?(null!==(r=(a=i)._$Co)&&void 0!==r?r:a._$Co=[])[o]=l:i._$Cl=l),void 0!==l&&(t=Lb(e,l._$AS(e,t.values),l,o)),t}let Mb=class{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){var t;const{el:{content:i},parts:o}=this._$AD,s=(null!==(t=null==e?void 0:e.creationScope)&&void 0!==t?t:fb).importNode(i,!0);Ob.currentNode=s;let n=Ob.nextNode(),r=0,a=0,l=o[0];for(;void 0!==l;){if(r===l.index){let t;2===l.type?t=new Ub(n,n.nextSibling,this,e):1===l.type?t=new l.ctor(n,l.name,l.strings,this,e):6===l.type&&(t=new jb(n,this,e)),this._$AV.push(t),l=o[++a]}r!==(null==l?void 0:l.index)&&(n=Ob.nextNode(),r++)}return Ob.currentNode=fb,s}v(e){let t=0;for(const i of this._$AV)void 0!==i&&(void 0!==i.strings?(i._$AI(e,i,t),t+=i.strings.length-2):i._$AI(e[t])),t++}},Ub=class e{constructor(e,t,i,o){var s;this.type=2,this._$AH=Pb,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=i,this.options=o,this._$Cp=null===(s=null==o?void 0:o.isConnected)||void 0===s||s}get _$AU(){var e,t;return null!==(t=null===(e=this._$AM)||void 0===e?void 0:e._$AU)&&void 0!==t?t:this._$Cp}get parentNode(){let e=this._$AA.parentNode;const t=this._$AM;return void 0!==t&&11===(null==e?void 0:e.nodeType)&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=Lb(this,e,t),vb(e)?e===Pb||null==e||""===e?(this._$AH!==Pb&&this._$AR(),this._$AH=Pb):e!==this._$AH&&e!==Tb&&this._(e):void 0!==e._$litType$?this.g(e):void 0!==e.nodeType?this.$(e):(e=>bb(e)||"function"==typeof(null==e?void 0:e[Symbol.iterator]))(e)?this.T(e):this._(e)}k(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}$(e){this._$AH!==e&&(this._$AR(),this._$AH=this.k(e))}_(e){this._$AH!==Pb&&vb(this._$AH)?this._$AA.nextSibling.data=e:this.$(fb.createTextNode(e)),this._$AH=e}g(e){var t;const{values:i,_$litType$:o}=e,s="number"==typeof o?this._$AC(e):(void 0===o.el&&(o.el=Nb.createElement(Rb(o.h,o.h[0]),this.options)),o);if((null===(t=this._$AH)||void 0===t?void 0:t._$AD)===s)this._$AH.v(i);else{const e=new Mb(s,this),t=e.u(this.options);e.v(i),this.$(t),this._$AH=e}}_$AC(e){let t=Ib.get(e.strings);return void 0===t&&Ib.set(e.strings,t=new Nb(e)),t}T(t){bb(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let o,s=0;for(const n of t)s===i.length?i.push(o=new e(this.k(_b()),this.k(_b()),this,this.options)):o=i[s],o._$AI(n),s++;s<i.length&&(this._$AR(o&&o._$AB.nextSibling,s),i.length=s)}_$AR(e=this._$AA.nextSibling,t){var i;for(null===(i=this._$AP)||void 0===i||i.call(this,!1,!0,t);e&&e!==this._$AB;){const t=e.nextSibling;e.remove(),e=t}}setConnected(e){var t;void 0===this._$AM&&(this._$Cp=e,null===(t=this._$AP)||void 0===t||t.call(this,e))}},Hb=class{constructor(e,t,i,o,s){this.type=1,this._$AH=Pb,this._$AN=void 0,this.element=e,this.name=t,this._$AM=o,this.options=s,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=Pb}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(e,t=this,i,o){const s=this.strings;let n=!1;if(void 0===s)e=Lb(this,e,t,0),n=!vb(e)||e!==this._$AH&&e!==Tb,n&&(this._$AH=e);else{const o=e;let r,a;for(e=s[0],r=0;r<s.length-1;r++)a=Lb(this,o[i+r],t,r),a===Tb&&(a=this._$AH[r]),n||(n=!vb(a)||a!==this._$AH[r]),a===Pb?e=Pb:e!==Pb&&(e+=(null!=a?a:"")+s[r+1]),this._$AH[r]=a}n&&!o&&this.j(e)}j(e){e===Pb?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=e?e:"")}},Db=class extends Hb{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===Pb?void 0:e}};const zb=cb?cb.emptyScript:"";let Bb=class extends Hb{constructor(){super(...arguments),this.type=4}j(e){e&&e!==Pb?this.element.setAttribute(this.name,zb):this.element.removeAttribute(this.name)}},Fb=class extends Hb{constructor(e,t,i,o,s){super(e,t,i,o,s),this.type=5}_$AI(e,t=this){var i;if((e=null!==(i=Lb(this,e,t,0))&&void 0!==i?i:Pb)===Tb)return;const o=this._$AH,s=e===Pb&&o!==Pb||e.capture!==o.capture||e.once!==o.once||e.passive!==o.passive,n=e!==Pb&&(o===Pb||s);s&&this.element.removeEventListener(this.name,this,o),n&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var t,i;"function"==typeof this._$AH?this._$AH.call(null!==(i=null===(t=this.options)||void 0===t?void 0:t.host)&&void 0!==i?i:this.element,e):this._$AH.handleEvent(e)}},jb=class{constructor(e,t,i){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(e){Lb(this,e)}};const Vb=db.litHtmlPolyfillSupport;null==Vb||Vb(Nb,Ub),(null!==(lb=db.litHtmlVersions)&&void 0!==lb?lb:db.litHtmlVersions=[]).push("2.8.0");
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */
var qb,Wb;let Gb=class extends ab{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e,t;const i=super.createRenderRoot();return null!==(e=(t=this.renderOptions).renderBefore)&&void 0!==e||(t.renderBefore=i.firstChild),i}update(e){const t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=((e,t,i)=>{var o,s;const n=null!==(o=null==i?void 0:i.renderBefore)&&void 0!==o?o:t;let r=n._$litPart$;if(void 0===r){const e=null!==(s=null==i?void 0:i.renderBefore)&&void 0!==s?s:null;n._$litPart$=r=new Ub(t.insertBefore(_b(),e),e,void 0,null!=i?i:{})}return r._$AI(e),r})(t,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),null===(e=this._$Do)||void 0===e||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),null===(e=this._$Do)||void 0===e||e.setConnected(!1)}render(){return Tb}};Gb.finalized=!0,Gb._$litElement$=!0,null===(qb=globalThis.litElementHydrateSupport)||void 0===qb||qb.call(globalThis,{LitElement:Gb});const Kb=globalThis.litElementPolyfillSupport;null==Kb||Kb({LitElement:Gb}),(null!==(Wb=globalThis.litElementVersions)&&void 0!==Wb?Wb:globalThis.litElementVersions=[]).push("3.3.3");
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */
const Xb=1,Yb=e=>(...t)=>({_$litDirective$:e,values:t});let Jb=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,i){this._$Ct=e,this._$AM=t,this._$Ci=i}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}};
/**
 * @license
 * Copyright 2018 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */const Zb=Yb(class extends Jb{constructor(e){var t;if(super(e),e.type!==Xb||"class"!==e.name||(null===(t=e.strings)||void 0===t?void 0:t.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(e){return" "+Object.keys(e).filter((t=>e[t])).join(" ")+" "}update(e,[t]){var i,o;if(void 0===this.it){this.it=new Set,void 0!==e.strings&&(this.nt=new Set(e.strings.join(" ").split(/\s/).filter((e=>""!==e))));for(const e in t)t[e]&&!(null===(i=this.nt)||void 0===i?void 0:i.has(e))&&this.it.add(e);return this.render(t)}const s=e.element.classList;this.it.forEach((e=>{e in t||(s.remove(e),this.it.delete(e))}));for(const e in t){const i=!!t[e];i===this.it.has(e)||(null===(o=this.nt)||void 0===o?void 0:o.has(e))||(i?(s.add(e),this.it.add(e)):(s.remove(e),this.it.delete(e)))}return Tb}}),Qb="important",ey=" !"+Qb,ty=Yb(class extends Jb{constructor(e){var t;if(super(e),e.type!==Xb||"style"!==e.name||(null===(t=e.strings)||void 0===t?void 0:t.length)>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(e){return Object.keys(e).reduce(((t,i)=>{const o=e[i];return null==o?t:t+`${i=i.includes("-")?i:i.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${o};`}),"")}update(e,[t]){const{style:i}=e.element;if(void 0===this.ht){this.ht=new Set;for(const e in t)this.ht.add(e);return this.render(t)}this.ht.forEach((e=>{null==t[e]&&(this.ht.delete(e),e.includes("-")?i.removeProperty(e):i[e]="")}));for(const e in t){const o=t[e];if(null!=o){this.ht.add(e);const t="string"==typeof o&&o.endsWith(ey);e.includes("-")||t?i.setProperty(e,t?o.slice(0,-11):o,t?Qb:""):i[e]=o}}return Tb}}),iy={TOP_LEFT:zv.TOP_LEFT,TOP_RIGHT:zv.TOP_RIGHT,BOTTOM_LEFT:zv.BOTTOM_LEFT,BOTTOM_RIGHT:zv.BOTTOM_RIGHT,TOP_START:zv.TOP_START,TOP_END:zv.TOP_END,BOTTOM_START:zv.BOTTOM_START,BOTTOM_END:zv.BOTTOM_END};
/**
 * @license
 * Copyright 2018 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */class oy extends yo{constructor(){super(...arguments),this.mdcFoundationClass=Vv,this.absolute=!1,this.fullwidth=!1,this.fixed=!1,this.x=null,this.y=null,this.quick=!1,this.open=!1,this.stayOpenOnBodyClick=!1,this.bitwiseCorner=zv.TOP_START,this.previousMenuCorner=null,this.menuCorner="START",this.corner="TOP_START",this.styleTop="",this.styleLeft="",this.styleRight="",this.styleBottom="",this.styleMaxHeight="",this.styleTransformOrigin="",this.anchor=null,this.previouslyFocused=null,this.previousAnchor=null,this.onBodyClickBound=()=>{}}render(){return this.renderSurface()}renderSurface(){const e=this.getRootClasses(),t=this.getRootStyles();return Cb`
      <div
          class=${Zb(e)}
          style="${ty(t)}"
          @keydown=${this.onKeydown}
          @opened=${this.registerBodyClick}
          @closed=${this.deregisterBodyClick}>
        ${this.renderContent()}
      </div>`}getRootClasses(){return{"mdc-menu-surface":!0,"mdc-menu-surface--fixed":this.fixed,"mdc-menu-surface--fullwidth":this.fullwidth}}getRootStyles(){return{top:this.styleTop,left:this.styleLeft,right:this.styleRight,bottom:this.styleBottom,"max-height":this.styleMaxHeight,"transform-origin":this.styleTransformOrigin}}renderContent(){return Cb`<slot></slot>`}createAdapter(){return Object.assign(Object.assign({},uo(this.mdcRoot)),{hasAnchor:()=>!!this.anchor,notifyClose:()=>{const e=new CustomEvent("closed",{bubbles:!0,composed:!0});this.open=!1,this.mdcRoot.dispatchEvent(e)},notifyClosing:()=>{const e=new CustomEvent("closing",{bubbles:!0,composed:!0});this.mdcRoot.dispatchEvent(e)},notifyOpen:()=>{const e=new CustomEvent("opened",{bubbles:!0,composed:!0});this.open=!0,this.mdcRoot.dispatchEvent(e)},notifyOpening:()=>{const e=new CustomEvent("opening",{bubbles:!0,composed:!0});this.mdcRoot.dispatchEvent(e)},isElementInContainer:()=>!1,isRtl:()=>!!this.mdcRoot&&"rtl"===getComputedStyle(this.mdcRoot).direction,setTransformOrigin:e=>{this.mdcRoot&&(this.styleTransformOrigin=e)},isFocused:()=>bo(this),saveFocus:()=>{const e=vo(),t=e.length;t||(this.previouslyFocused=null),this.previouslyFocused=e[t-1]},restoreFocus:()=>{this.previouslyFocused&&"focus"in this.previouslyFocused&&this.previouslyFocused.focus()},getInnerDimensions:()=>{const e=this.mdcRoot;return e?{width:e.offsetWidth,height:e.offsetHeight}:{width:0,height:0}},getAnchorDimensions:()=>{const e=this.anchor;return e?e.getBoundingClientRect():null},getBodyDimensions:()=>({width:document.body.clientWidth,height:document.body.clientHeight}),getWindowDimensions:()=>({width:window.innerWidth,height:window.innerHeight}),getWindowScroll:()=>({x:window.pageXOffset,y:window.pageYOffset}),setPosition:e=>{this.mdcRoot&&(this.styleLeft="left"in e?`${e.left}px`:"",this.styleRight="right"in e?`${e.right}px`:"",this.styleTop="top"in e?`${e.top}px`:"",this.styleBottom="bottom"in e?`${e.bottom}px`:"")},setMaxHeight:async e=>{this.mdcRoot&&(this.styleMaxHeight=e,await this.updateComplete,this.styleMaxHeight=`var(--mdc-menu-max-height, ${e})`)}})}onKeydown(e){this.mdcFoundation&&this.mdcFoundation.handleKeydown(e)}onBodyClick(e){if(this.stayOpenOnBodyClick)return;-1===e.composedPath().indexOf(this)&&this.close()}registerBodyClick(){this.onBodyClickBound=this.onBodyClick.bind(this),document.body.addEventListener("click",this.onBodyClickBound,{passive:!0,capture:!0})}deregisterBodyClick(){document.body.removeEventListener("click",this.onBodyClickBound,{capture:!0})}onOpenChanged(e,t){this.mdcFoundation&&(e?this.mdcFoundation.open():void 0!==t&&this.mdcFoundation.close())}close(){this.open=!1}show(){this.open=!0}}o([Tf(".mdc-menu-surface")],oy.prototype,"mdcRoot",void 0),o([Tf("slot")],oy.prototype,"slotElement",void 0),o([Sf({type:Boolean}),Fl((function(e){this.mdcFoundation&&!this.fixed&&this.mdcFoundation.setIsHoisted(e)}))],oy.prototype,"absolute",void 0),o([Sf({type:Boolean})],oy.prototype,"fullwidth",void 0),o([Sf({type:Boolean}),Fl((function(e){this.mdcFoundation&&!this.absolute&&this.mdcFoundation.setFixedPosition(e)}))],oy.prototype,"fixed",void 0),o([Sf({type:Number}),Fl((function(e){this.mdcFoundation&&null!==this.y&&null!==e&&(this.mdcFoundation.setAbsolutePosition(e,this.y),this.mdcFoundation.setAnchorMargin({left:e,top:this.y,right:-e,bottom:this.y}))}))],oy.prototype,"x",void 0),o([Sf({type:Number}),Fl((function(e){this.mdcFoundation&&null!==this.x&&null!==e&&(this.mdcFoundation.setAbsolutePosition(this.x,e),this.mdcFoundation.setAnchorMargin({left:this.x,top:e,right:-this.x,bottom:e}))}))],oy.prototype,"y",void 0),o([Sf({type:Boolean}),Fl((function(e){this.mdcFoundation&&this.mdcFoundation.setQuickOpen(e)}))],oy.prototype,"quick",void 0),o([Sf({type:Boolean,reflect:!0}),Fl((function(e,t){this.onOpenChanged(e,t)}))],oy.prototype,"open",void 0),o([Sf({type:Boolean})],oy.prototype,"stayOpenOnBodyClick",void 0),o([Cf(),Fl((function(e){this.mdcFoundation&&this.mdcFoundation.setAnchorCorner(e)}))],oy.prototype,"bitwiseCorner",void 0),o([Sf({type:String}),Fl((function(e){if(this.mdcFoundation){const t="START"===e||"END"===e,i=null===this.previousMenuCorner,o=!i&&e!==this.previousMenuCorner;t&&(o||i&&"END"===e)&&(this.bitwiseCorner=this.bitwiseCorner^Dv.RIGHT,this.mdcFoundation.flipCornerHorizontally(),this.previousMenuCorner=e)}}))],oy.prototype,"menuCorner",void 0),o([Sf({type:String}),Fl((function(e){if(this.mdcFoundation&&e){let t=iy[e];"END"===this.menuCorner&&(t^=Dv.RIGHT),this.bitwiseCorner=t}}))],oy.prototype,"corner",void 0),o([Cf()],oy.prototype,"styleTop",void 0),o([Cf()],oy.prototype,"styleLeft",void 0),o([Cf()],oy.prototype,"styleRight",void 0),o([Cf()],oy.prototype,"styleBottom",void 0),o([Cf()],oy.prototype,"styleMaxHeight",void 0),o([Cf()],oy.prototype,"styleTransformOrigin",void 0);
/**
 * @license
 * Copyright 2021 Google LLC
 * SPDX-LIcense-Identifier: Apache-2.0
 */
const sy=Yv`.mdc-menu-surface{display:none;position:absolute;box-sizing:border-box;max-width:calc(100vw - 32px);max-width:var(--mdc-menu-max-width, calc(100vw - 32px));max-height:calc(100vh - 32px);max-height:var(--mdc-menu-max-height, calc(100vh - 32px));margin:0;padding:0;transform:scale(1);transform-origin:top left;opacity:0;overflow:auto;will-change:transform,opacity;z-index:8;transition:opacity .03s linear,transform .12s cubic-bezier(0, 0, 0.2, 1),height 250ms cubic-bezier(0, 0, 0.2, 1);box-shadow:0px 5px 5px -3px rgba(0, 0, 0, 0.2),0px 8px 10px 1px rgba(0, 0, 0, 0.14),0px 3px 14px 2px rgba(0,0,0,.12);background-color:#fff;background-color:var(--mdc-theme-surface, #fff);color:#000;color:var(--mdc-theme-on-surface, #000);border-radius:4px;border-radius:var(--mdc-shape-medium, 4px);transform-origin-left:top left;transform-origin-right:top right}.mdc-menu-surface:focus{outline:none}.mdc-menu-surface--animating-open{display:inline-block;transform:scale(0.8);opacity:0}.mdc-menu-surface--open{display:inline-block;transform:scale(1);opacity:1}.mdc-menu-surface--animating-closed{display:inline-block;opacity:0;transition:opacity .075s linear}[dir=rtl] .mdc-menu-surface,.mdc-menu-surface[dir=rtl]{transform-origin-left:top right;transform-origin-right:top left}.mdc-menu-surface--anchor{position:relative;overflow:visible}.mdc-menu-surface--fixed{position:fixed}.mdc-menu-surface--fullwidth{width:100%}:host(:not([open])){display:none}.mdc-menu-surface{z-index:8;z-index:var(--mdc-menu-z-index, 8);min-width:112px;min-width:var(--mdc-menu-min-width, 112px)}`
/**
 * @license
 * Copyright 2020 Google LLC
 * SPDX-License-Identifier: Apache-2.0
 */;let ny=class extends oy{};ny.styles=[sy],ny=o([Af("mwc-menu-surface")],ny);
/**
 * @license
 * Copyright 2018 Google Inc.
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 * THE SOFTWARE.
 */
var ry,ay={MENU_SELECTED_LIST_ITEM:"mdc-menu-item--selected",MENU_SELECTION_GROUP:"mdc-menu__selection-group",ROOT:"mdc-menu"},ly={ARIA_CHECKED_ATTR:"aria-checked",ARIA_DISABLED_ATTR:"aria-disabled",CHECKBOX_SELECTOR:'input[type="checkbox"]',LIST_SELECTOR:".mdc-list,.mdc-deprecated-list",SELECTED_EVENT:"MDCMenu:selected",SKIP_RESTORE_FOCUS:"data-menu-item-skip-restore-focus"},dy={FOCUS_ROOT_INDEX:-1};!function(e){e[e.NONE=0]="NONE",e[e.LIST_ROOT=1]="LIST_ROOT",e[e.FIRST_ITEM=2]="FIRST_ITEM",e[e.LAST_ITEM=3]="LAST_ITEM"}(ry||(ry={}));
/**
 * @license
 * Copyright 2018 Google Inc.
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 * THE SOFTWARE.
 */
var cy=function(e){function o(t){var s=e.call(this,i(i({},o.defaultAdapter),t))||this;return s.closeAnimationEndTimerId=0,s.defaultFocusState=ry.LIST_ROOT,s.selectedIndex=-1,s}return t(o,e),Object.defineProperty(o,"cssClasses",{get:function(){return ay},enumerable:!1,configurable:!0}),Object.defineProperty(o,"strings",{get:function(){return ly},enumerable:!1,configurable:!0}),Object.defineProperty(o,"numbers",{get:function(){return dy},enumerable:!1,configurable:!0}),Object.defineProperty(o,"defaultAdapter",{get:function(){return{addClassToElementAtIndex:function(){},removeClassFromElementAtIndex:function(){},addAttributeToElementAtIndex:function(){},removeAttributeFromElementAtIndex:function(){},getAttributeFromElementAtIndex:function(){return null},elementContainsClass:function(){return!1},closeSurface:function(){},getElementIndex:function(){return-1},notifySelected:function(){},getMenuItemCount:function(){return 0},focusItemAtIndex:function(){},focusListRoot:function(){},getSelectedSiblingOfItemAtIndex:function(){return-1},isSelectableItemAtIndex:function(){return!1}}},enumerable:!1,configurable:!0}),o.prototype.destroy=function(){this.closeAnimationEndTimerId&&clearTimeout(this.closeAnimationEndTimerId),this.adapter.closeSurface()},o.prototype.handleKeydown=function(e){var t=e.key,i=e.keyCode;("Tab"===t||9===i)&&this.adapter.closeSurface(!0)},o.prototype.handleItemAction=function(e){var t=this,i=this.adapter.getElementIndex(e);if(!(i<0)){this.adapter.notifySelected({index:i});var o="true"===this.adapter.getAttributeFromElementAtIndex(i,ly.SKIP_RESTORE_FOCUS);this.adapter.closeSurface(o),this.closeAnimationEndTimerId=setTimeout((function(){var i=t.adapter.getElementIndex(e);i>=0&&t.adapter.isSelectableItemAtIndex(i)&&t.setSelectedIndex(i)}),Vv.numbers.TRANSITION_CLOSE_DURATION)}},o.prototype.handleMenuSurfaceOpened=function(){switch(this.defaultFocusState){case ry.FIRST_ITEM:this.adapter.focusItemAtIndex(0);break;case ry.LAST_ITEM:this.adapter.focusItemAtIndex(this.adapter.getMenuItemCount()-1);break;case ry.NONE:break;default:this.adapter.focusListRoot()}},o.prototype.setDefaultFocusState=function(e){this.defaultFocusState=e},o.prototype.getSelectedIndex=function(){return this.selectedIndex},o.prototype.setSelectedIndex=function(e){if(this.validatedIndex(e),!this.adapter.isSelectableItemAtIndex(e))throw new Error("MDCMenuFoundation: No selection group at specified index.");var t=this.adapter.getSelectedSiblingOfItemAtIndex(e);t>=0&&(this.adapter.removeAttributeFromElementAtIndex(t,ly.ARIA_CHECKED_ATTR),this.adapter.removeClassFromElementAtIndex(t,ay.MENU_SELECTED_LIST_ITEM)),this.adapter.addClassToElementAtIndex(e,ay.MENU_SELECTED_LIST_ITEM),this.adapter.addAttributeToElementAtIndex(e,ly.ARIA_CHECKED_ATTR,"true"),this.selectedIndex=e},o.prototype.setEnabled=function(e,t){this.validatedIndex(e),t?(this.adapter.removeClassFromElementAtIndex(e,xv),this.adapter.addAttributeToElementAtIndex(e,ly.ARIA_DISABLED_ATTR,"false")):(this.adapter.addClassToElementAtIndex(e,xv),this.adapter.addAttributeToElementAtIndex(e,ly.ARIA_DISABLED_ATTR,"true"))},o.prototype.validatedIndex=function(e){var t=this.adapter.getMenuItemCount();if(!(e>=0&&e<t))throw new Error("MDCMenuFoundation: No list item at specified index.")},o}(xo);
/**
 * @license
 * Copyright 2020 Google LLC
 * SPDX-License-Identifier: Apache-2.0
 */class hy extends yo{constructor(){super(...arguments),this.mdcFoundationClass=cy,this.listElement_=null,this.anchor=null,this.open=!1,this.quick=!1,this.wrapFocus=!1,this.innerRole="menu",this.innerAriaLabel=null,this.corner="TOP_START",this.x=null,this.y=null,this.absolute=!1,this.multi=!1,this.activatable=!1,this.fixed=!1,this.forceGroupSelection=!1,this.fullwidth=!1,this.menuCorner="START",this.stayOpenOnBodyClick=!1,this.defaultFocus="LIST_ROOT",this._listUpdateComplete=null}get listElement(){return this.listElement_||(this.listElement_=this.renderRoot.querySelector("mwc-list")),this.listElement_}get items(){const e=this.listElement;return e?e.items:[]}get index(){const e=this.listElement;return e?e.index:-1}get selected(){const e=this.listElement;return e?e.selected:null}render(){return this.renderSurface()}renderSurface(){const e=this.getSurfaceClasses();return Cb`
      <mwc-menu-surface
        ?hidden=${!this.open}
        .anchor=${this.anchor}
        .open=${this.open}
        .quick=${this.quick}
        .corner=${this.corner}
        .x=${this.x}
        .y=${this.y}
        .absolute=${this.absolute}
        .fixed=${this.fixed}
        .fullwidth=${this.fullwidth}
        .menuCorner=${this.menuCorner}
        ?stayOpenOnBodyClick=${this.stayOpenOnBodyClick}
        class=${Zb(e)}
        @closed=${this.onClosed}
        @opened=${this.onOpened}
        @keydown=${this.onKeydown}>
      ${this.renderList()}
    </mwc-menu-surface>`}getSurfaceClasses(){return{"mdc-menu":!0,"mdc-menu-surface":!0}}renderList(){const e="menu"===this.innerRole?"menuitem":"option",t=this.renderListClasses();return Cb`
      <mwc-list
          rootTabbable
          .innerAriaLabel=${this.innerAriaLabel}
          .innerRole=${this.innerRole}
          .multi=${this.multi}
          class=${Zb(t)}
          .itemRoles=${e}
          .wrapFocus=${this.wrapFocus}
          .activatable=${this.activatable}
          @action=${this.onAction}>
        <slot></slot>
      </mwc-list>`}renderListClasses(){return{"mdc-deprecated-list":!0}}createAdapter(){return{addClassToElementAtIndex:(e,t)=>{const i=this.listElement;if(!i)return;const o=i.items[e];o&&("mdc-menu-item--selected"===t?this.forceGroupSelection&&!o.selected&&i.toggle(e,!0):o.classList.add(t))},removeClassFromElementAtIndex:(e,t)=>{const i=this.listElement;if(!i)return;const o=i.items[e];o&&("mdc-menu-item--selected"===t?o.selected&&i.toggle(e,!1):o.classList.remove(t))},addAttributeToElementAtIndex:(e,t,i)=>{const o=this.listElement;if(!o)return;const s=o.items[e];s&&s.setAttribute(t,i)},removeAttributeFromElementAtIndex:(e,t)=>{const i=this.listElement;if(!i)return;const o=i.items[e];o&&o.removeAttribute(t)},getAttributeFromElementAtIndex:(e,t)=>{const i=this.listElement;if(!i)return null;const o=i.items[e];return o?o.getAttribute(t):null},elementContainsClass:(e,t)=>e.classList.contains(t),closeSurface:()=>{this.open=!1},getElementIndex:e=>{const t=this.listElement;return t?t.items.indexOf(e):-1},notifySelected:()=>{},getMenuItemCount:()=>{const e=this.listElement;return e?e.items.length:0},focusItemAtIndex:e=>{const t=this.listElement;if(!t)return;const i=t.items[e];i&&i.focus()},focusListRoot:()=>{this.listElement&&this.listElement.focus()},getSelectedSiblingOfItemAtIndex:e=>{const t=this.listElement;if(!t)return-1;const i=t.items[e];if(!i||!i.group)return-1;for(let o=0;o<t.items.length;o++){if(o===e)continue;const s=t.items[o];if(s.selected&&s.group===i.group)return o}return-1},isSelectableItemAtIndex:e=>{const t=this.listElement;if(!t)return!1;const i=t.items[e];return!!i&&i.hasAttribute("group")}}}onKeydown(e){this.mdcFoundation&&this.mdcFoundation.handleKeydown(e)}onAction(e){const t=this.listElement;if(this.mdcFoundation&&t){const i=e.detail.index,o=t.items[i];o&&this.mdcFoundation.handleItemAction(o)}}onOpened(){this.open=!0,this.mdcFoundation&&this.mdcFoundation.handleMenuSurfaceOpened()}onClosed(){this.open=!1}async getUpdateComplete(){await this._listUpdateComplete;return await super.getUpdateComplete()}async firstUpdated(){super.firstUpdated();const e=this.listElement;e&&(this._listUpdateComplete=e.updateComplete,await this._listUpdateComplete)}select(e){const t=this.listElement;t&&t.select(e)}close(){this.open=!1}show(){this.open=!0}getFocusedItemIndex(){const e=this.listElement;return e?e.getFocusedItemIndex():-1}focusItemAtIndex(e){const t=this.listElement;t&&t.focusItemAtIndex(e)}layout(e=!0){const t=this.listElement;t&&t.layout(e)}}o([Tf(".mdc-menu")],hy.prototype,"mdcRoot",void 0),o([Tf("slot")],hy.prototype,"slotElement",void 0),o([Sf({type:Object})],hy.prototype,"anchor",void 0),o([Sf({type:Boolean,reflect:!0})],hy.prototype,"open",void 0),o([Sf({type:Boolean})],hy.prototype,"quick",void 0),o([Sf({type:Boolean})],hy.prototype,"wrapFocus",void 0),o([Sf({type:String})],hy.prototype,"innerRole",void 0),o([Sf({type:String})],hy.prototype,"innerAriaLabel",void 0),o([Sf({type:String})],hy.prototype,"corner",void 0),o([Sf({type:Number})],hy.prototype,"x",void 0),o([Sf({type:Number})],hy.prototype,"y",void 0),o([Sf({type:Boolean})],hy.prototype,"absolute",void 0),o([Sf({type:Boolean})],hy.prototype,"multi",void 0),o([Sf({type:Boolean})],hy.prototype,"activatable",void 0),o([Sf({type:Boolean})],hy.prototype,"fixed",void 0),o([Sf({type:Boolean})],hy.prototype,"forceGroupSelection",void 0),o([Sf({type:Boolean})],hy.prototype,"fullwidth",void 0),o([Sf({type:String})],hy.prototype,"menuCorner",void 0),o([Sf({type:Boolean})],hy.prototype,"stayOpenOnBodyClick",void 0),o([Sf({type:String}),Fl((function(e){this.mdcFoundation&&this.mdcFoundation.setDefaultFocusState(ry[e])}))],hy.prototype,"defaultFocus",void 0);
/**
 * @license
 * Copyright 2021 Google LLC
 * SPDX-LIcense-Identifier: Apache-2.0
 */
const py=Yv`mwc-list ::slotted([mwc-list-item]:not([twoline])),mwc-list ::slotted([noninteractive]:not([twoline])){height:var(--mdc-menu-item-height, 48px)}`
/**
 * @license
 * Copyright 2020 Google LLC
 * SPDX-License-Identifier: Apache-2.0
 */;let uy=class extends hy{};uy.styles=[py],uy=o([Af("mwc-menu")],uy);
/**
 * @license
 * Copyright 2020 Google Inc.
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 * THE SOFTWARE.
 */
var my=["input","button","textarea","select"],gy=function(e){var t=e.target;if(t){var i=(""+t.tagName).toLowerCase();-1===my.indexOf(i)&&e.preventDefault()}};function fy(e,t){for(var i=new Map,o=0;o<e;o++){var s=t(o).trim();if(s){var n=s[0].toLowerCase();i.has(n)||i.set(n,[]),i.get(n).push({text:s.toLowerCase(),index:o})}}return i.forEach((function(e){e.sort((function(e,t){return e.index-t.index}))})),i}function _y(e,t){var i,o=e.nextChar,s=e.focusItemAtIndex,n=e.sortedIndexByFirstChar,r=e.focusedItemIndex,a=e.skipFocus,l=e.isItemAtIndexDisabled;return clearTimeout(t.bufferClearTimeout),t.bufferClearTimeout=setTimeout((function(){!function(e){e.typeaheadBuffer=""}(t)}),Cv.TYPEAHEAD_BUFFER_CLEAR_TIMEOUT_MS),t.typeaheadBuffer=t.typeaheadBuffer+o,i=1===t.typeaheadBuffer.length?function(e,t,i,o){var s=o.typeaheadBuffer[0],n=e.get(s);if(!n)return-1;if(s===o.currentFirstChar&&n[o.sortedIndexCursor].index===t){o.sortedIndexCursor=(o.sortedIndexCursor+1)%n.length;var r=n[o.sortedIndexCursor].index;if(!i(r))return r}o.currentFirstChar=s;var a,l=-1;for(a=0;a<n.length;a++)if(!i(n[a].index)){l=a;break}for(;a<n.length;a++)if(n[a].index>t&&!i(n[a].index)){l=a;break}if(-1!==l)return o.sortedIndexCursor=l,n[o.sortedIndexCursor].index;return-1}(n,r,l,t):function(e,t,i){var o=i.typeaheadBuffer[0],s=e.get(o);if(!s)return-1;var n=s[i.sortedIndexCursor];if(0===n.text.lastIndexOf(i.typeaheadBuffer,0)&&!t(n.index))return n.index;var r=(i.sortedIndexCursor+1)%s.length,a=-1;for(;r!==i.sortedIndexCursor;){var l=s[r],d=0===l.text.lastIndexOf(i.typeaheadBuffer,0),c=!t(l.index);if(d&&c){a=r;break}r=(r+1)%s.length}if(-1!==a)return i.sortedIndexCursor=a,s[i.sortedIndexCursor].index;return-1}(n,l,t),-1===i||a||s(i),i}function vy(e){return e.typeaheadBuffer.length>0}
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */
const by=(e,t)=>"method"===t.kind&&t.descriptor&&!("value"in t.descriptor)?{...t,finisher(i){i.createProperty(t.key,e)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:t.key,initializer(){"function"==typeof t.initializer&&(this[t.key]=t.initializer.call(this))},finisher(i){i.createProperty(t.key,e)}};
/**
 * @license
 * Copyright 2021 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */
var yy,xy,wy;null===(yy=window.HTMLSlotElement)||void 0===yy||yy.prototype.assignedElements;const $y=null!==(wy=null===(xy=window.ShadyDOM)||void 0===xy?void 0:xy.inUse)&&void 0!==wy&&wy;class Ay extends yo{constructor(){super(...arguments),this.disabled=!1,this.containingForm=null,this.formDataListener=e=>{this.disabled||this.setFormData(e.formData)}}findFormElement(){if(!this.shadowRoot||$y)return null;const e=this.getRootNode().querySelectorAll("form");for(const t of Array.from(e))if(t.contains(this))return t;return null}connectedCallback(){var e;super.connectedCallback(),this.containingForm=this.findFormElement(),null===(e=this.containingForm)||void 0===e||e.addEventListener("formdata",this.formDataListener)}disconnectedCallback(){var e;super.disconnectedCallback(),null===(e=this.containingForm)||void 0===e||e.removeEventListener("formdata",this.formDataListener),this.containingForm=null}click(){this.formElement&&!this.disabled&&(this.formElement.focus(),this.formElement.click())}firstUpdated(){super.firstUpdated(),this.shadowRoot&&this.mdcRoot.addEventListener("change",(e=>{this.dispatchEvent(new Event("change",e))}))}}Ay.shadowRootOptions={mode:"open",delegatesFocus:!0},o([function(e){return(t,i)=>void 0!==i?((e,t,i)=>{t.constructor.createProperty(i,e)})(e,t,i):by(e,t)}({type:Boolean})],Ay.prototype,"disabled",void 0);
/**
 * @license
 * Copyright 2016 Google Inc.
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 * THE SOFTWARE.
 */
var ky={LABEL_FLOAT_ABOVE:"mdc-floating-label--float-above",LABEL_REQUIRED:"mdc-floating-label--required",LABEL_SHAKE:"mdc-floating-label--shake",ROOT:"mdc-floating-label"},Ey=function(e){function o(t){var s=e.call(this,i(i({},o.defaultAdapter),t))||this;return s.shakeAnimationEndHandler=function(){s.handleShakeAnimationEnd()},s}return t(o,e),Object.defineProperty(o,"cssClasses",{get:function(){return ky},enumerable:!1,configurable:!0}),Object.defineProperty(o,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},getWidth:function(){return 0},registerInteractionHandler:function(){},deregisterInteractionHandler:function(){}}},enumerable:!1,configurable:!0}),o.prototype.init=function(){this.adapter.registerInteractionHandler("animationend",this.shakeAnimationEndHandler)},o.prototype.destroy=function(){this.adapter.deregisterInteractionHandler("animationend",this.shakeAnimationEndHandler)},o.prototype.getWidth=function(){return this.adapter.getWidth()},o.prototype.shake=function(e){var t=o.cssClasses.LABEL_SHAKE;e?this.adapter.addClass(t):this.adapter.removeClass(t)},o.prototype.float=function(e){var t=o.cssClasses,i=t.LABEL_FLOAT_ABOVE,s=t.LABEL_SHAKE;e?this.adapter.addClass(i):(this.adapter.removeClass(i),this.adapter.removeClass(s))},o.prototype.setRequired=function(e){var t=o.cssClasses.LABEL_REQUIRED;e?this.adapter.addClass(t):this.adapter.removeClass(t)},o.prototype.handleShakeAnimationEnd=function(){var e=o.cssClasses.LABEL_SHAKE;this.adapter.removeClass(e)},o}(xo);
/**
 * @license
 * Copyright 2016 Google Inc.
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 * THE SOFTWARE.
 */
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */
const Sy=1,Cy=3;let Ty=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,i){this._$Ct=e,this._$AM=t,this._$Ci=i}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}};
/**
 * @license
 * Copyright 2018 Google LLC
 * SPDX-License-Identifier: Apache-2.0
 */const Py=(e=>(...t)=>({_$litDirective$:e,values:t}))(class extends Ty{constructor(e){switch(super(e),this.foundation=null,this.previousPart=null,e.type){case Sy:case Cy:break;default:throw new Error("FloatingLabel directive only support attribute and property parts")}}update(e,[t]){if(e!==this.previousPart){this.foundation&&this.foundation.destroy(),this.previousPart=e;const t=e.element;t.classList.add("mdc-floating-label");const i=(e=>({addClass:t=>e.classList.add(t),removeClass:t=>e.classList.remove(t),getWidth:()=>e.scrollWidth,registerInteractionHandler:(t,i)=>{e.addEventListener(t,i)},deregisterInteractionHandler:(t,i)=>{e.removeEventListener(t,i)}}))(t);this.foundation=new Ey(i),this.foundation.init()}return this.render(t)}render(e){return this.foundation}});
/**
 * @license
 * Copyright 2018 Google Inc.
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 * THE SOFTWARE.
 */var Iy={LINE_RIPPLE_ACTIVE:"mdc-line-ripple--active",LINE_RIPPLE_DEACTIVATING:"mdc-line-ripple--deactivating"},Oy=function(e){function o(t){var s=e.call(this,i(i({},o.defaultAdapter),t))||this;return s.transitionEndHandler=function(e){s.handleTransitionEnd(e)},s}return t(o,e),Object.defineProperty(o,"cssClasses",{get:function(){return Iy},enumerable:!1,configurable:!0}),Object.defineProperty(o,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},hasClass:function(){return!1},setStyle:function(){},registerEventHandler:function(){},deregisterEventHandler:function(){}}},enumerable:!1,configurable:!0}),o.prototype.init=function(){this.adapter.registerEventHandler("transitionend",this.transitionEndHandler)},o.prototype.destroy=function(){this.adapter.deregisterEventHandler("transitionend",this.transitionEndHandler)},o.prototype.activate=function(){this.adapter.removeClass(Iy.LINE_RIPPLE_DEACTIVATING),this.adapter.addClass(Iy.LINE_RIPPLE_ACTIVE)},o.prototype.setRippleCenter=function(e){this.adapter.setStyle("transform-origin",e+"px center")},o.prototype.deactivate=function(){this.adapter.addClass(Iy.LINE_RIPPLE_DEACTIVATING)},o.prototype.handleTransitionEnd=function(e){var t=this.adapter.hasClass(Iy.LINE_RIPPLE_DEACTIVATING);"opacity"===e.propertyName&&t&&(this.adapter.removeClass(Iy.LINE_RIPPLE_ACTIVE),this.adapter.removeClass(Iy.LINE_RIPPLE_DEACTIVATING))},o}(xo);
/**
 * @license
 * Copyright 2018 Google Inc.
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 * THE SOFTWARE.
 */
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */
const Ry=1,Ny=3;let Ly=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,i){this._$Ct=e,this._$AM=t,this._$Ci=i}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}};
/**
 * @license
 * Copyright 2019 Google LLC
 * SPDX-License-Identifier: Apache-2.0
 */const My=(e=>(...t)=>({_$litDirective$:e,values:t}))(class extends Ly{constructor(e){switch(super(e),this.previousPart=null,this.foundation=null,e.type){case Ry:case Ny:return;default:throw new Error("LineRipple only support attribute and property parts.")}}update(e,t){if(this.previousPart!==e){this.foundation&&this.foundation.destroy(),this.previousPart=e;const t=e.element;t.classList.add("mdc-line-ripple");const i=(e=>({addClass:t=>e.classList.add(t),removeClass:t=>e.classList.remove(t),hasClass:t=>e.classList.contains(t),setStyle:(t,i)=>e.style.setProperty(t,i),registerEventHandler:(t,i)=>{e.addEventListener(t,i)},deregisterEventHandler:(t,i)=>{e.removeEventListener(t,i)}}))(t);this.foundation=new Oy(i),this.foundation.init()}return this.render()}render(){return this.foundation}});
/**
 * @license
 * Copyright 2016 Google Inc.
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 * THE SOFTWARE.
 */var Uy={ACTIVATED:"mdc-select--activated",DISABLED:"mdc-select--disabled",FOCUSED:"mdc-select--focused",INVALID:"mdc-select--invalid",MENU_INVALID:"mdc-select__menu--invalid",OUTLINED:"mdc-select--outlined",REQUIRED:"mdc-select--required",ROOT:"mdc-select",WITH_LEADING_ICON:"mdc-select--with-leading-icon"},Hy={ARIA_CONTROLS:"aria-controls",ARIA_DESCRIBEDBY:"aria-describedby",ARIA_SELECTED_ATTR:"aria-selected",CHANGE_EVENT:"MDCSelect:change",HIDDEN_INPUT_SELECTOR:'input[type="hidden"]',LABEL_SELECTOR:".mdc-floating-label",LEADING_ICON_SELECTOR:".mdc-select__icon",LINE_RIPPLE_SELECTOR:".mdc-line-ripple",MENU_SELECTOR:".mdc-select__menu",OUTLINE_SELECTOR:".mdc-notched-outline",SELECTED_TEXT_SELECTOR:".mdc-select__selected-text",SELECT_ANCHOR_SELECTOR:".mdc-select__anchor",VALUE_ATTR:"data-value"},Dy={LABEL_SCALE:.75,UNSET_INDEX:-1,CLICK_DEBOUNCE_TIMEOUT_MS:330},zy=function(e){function o(t,s){void 0===s&&(s={});var n=e.call(this,i(i({},o.defaultAdapter),t))||this;return n.disabled=!1,n.isMenuOpen=!1,n.useDefaultValidation=!0,n.customValidity=!0,n.lastSelectedIndex=Dy.UNSET_INDEX,n.clickDebounceTimeout=0,n.recentlyClicked=!1,n.leadingIcon=s.leadingIcon,n.helperText=s.helperText,n}return t(o,e),Object.defineProperty(o,"cssClasses",{get:function(){return Uy},enumerable:!1,configurable:!0}),Object.defineProperty(o,"numbers",{get:function(){return Dy},enumerable:!1,configurable:!0}),Object.defineProperty(o,"strings",{get:function(){return Hy},enumerable:!1,configurable:!0}),Object.defineProperty(o,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},hasClass:function(){return!1},activateBottomLine:function(){},deactivateBottomLine:function(){},getSelectedIndex:function(){return-1},setSelectedIndex:function(){},hasLabel:function(){return!1},floatLabel:function(){},getLabelWidth:function(){return 0},setLabelRequired:function(){},hasOutline:function(){return!1},notchOutline:function(){},closeOutline:function(){},setRippleCenter:function(){},notifyChange:function(){},setSelectedText:function(){},isSelectAnchorFocused:function(){return!1},getSelectAnchorAttr:function(){return""},setSelectAnchorAttr:function(){},removeSelectAnchorAttr:function(){},addMenuClass:function(){},removeMenuClass:function(){},openMenu:function(){},closeMenu:function(){},getAnchorElement:function(){return null},setMenuAnchorElement:function(){},setMenuAnchorCorner:function(){},setMenuWrapFocus:function(){},focusMenuItemAtIndex:function(){},getMenuItemCount:function(){return 0},getMenuItemValues:function(){return[]},getMenuItemTextAtIndex:function(){return""},isTypeaheadInProgress:function(){return!1},typeaheadMatchItem:function(){return-1}}},enumerable:!1,configurable:!0}),o.prototype.getSelectedIndex=function(){return this.adapter.getSelectedIndex()},o.prototype.setSelectedIndex=function(e,t,i){void 0===t&&(t=!1),void 0===i&&(i=!1),e>=this.adapter.getMenuItemCount()||(e===Dy.UNSET_INDEX?this.adapter.setSelectedText(""):this.adapter.setSelectedText(this.adapter.getMenuItemTextAtIndex(e).trim()),this.adapter.setSelectedIndex(e),t&&this.adapter.closeMenu(),i||this.lastSelectedIndex===e||this.handleChange(),this.lastSelectedIndex=e)},o.prototype.setValue=function(e,t){void 0===t&&(t=!1);var i=this.adapter.getMenuItemValues().indexOf(e);this.setSelectedIndex(i,!1,t)},o.prototype.getValue=function(){var e=this.adapter.getSelectedIndex(),t=this.adapter.getMenuItemValues();return e!==Dy.UNSET_INDEX?t[e]:""},o.prototype.getDisabled=function(){return this.disabled},o.prototype.setDisabled=function(e){this.disabled=e,this.disabled?(this.adapter.addClass(Uy.DISABLED),this.adapter.closeMenu()):this.adapter.removeClass(Uy.DISABLED),this.leadingIcon&&this.leadingIcon.setDisabled(this.disabled),this.disabled?this.adapter.removeSelectAnchorAttr("tabindex"):this.adapter.setSelectAnchorAttr("tabindex","0"),this.adapter.setSelectAnchorAttr("aria-disabled",this.disabled.toString())},o.prototype.openMenu=function(){this.adapter.addClass(Uy.ACTIVATED),this.adapter.openMenu(),this.isMenuOpen=!0,this.adapter.setSelectAnchorAttr("aria-expanded","true")},o.prototype.setHelperTextContent=function(e){this.helperText&&this.helperText.setContent(e)},o.prototype.layout=function(){if(this.adapter.hasLabel()){var e=this.getValue().length>0,t=this.adapter.hasClass(Uy.FOCUSED),i=e||t,o=this.adapter.hasClass(Uy.REQUIRED);this.notchOutline(i),this.adapter.floatLabel(i),this.adapter.setLabelRequired(o)}},o.prototype.layoutOptions=function(){var e=this.adapter.getMenuItemValues().indexOf(this.getValue());this.setSelectedIndex(e,!1,!0)},o.prototype.handleMenuOpened=function(){if(0!==this.adapter.getMenuItemValues().length){var e=this.getSelectedIndex(),t=e>=0?e:0;this.adapter.focusMenuItemAtIndex(t)}},o.prototype.handleMenuClosing=function(){this.adapter.setSelectAnchorAttr("aria-expanded","false")},o.prototype.handleMenuClosed=function(){this.adapter.removeClass(Uy.ACTIVATED),this.isMenuOpen=!1,this.adapter.isSelectAnchorFocused()||this.blur()},o.prototype.handleChange=function(){this.layout(),this.adapter.notifyChange(this.getValue()),this.adapter.hasClass(Uy.REQUIRED)&&this.useDefaultValidation&&this.setValid(this.isValid())},o.prototype.handleMenuItemAction=function(e){this.setSelectedIndex(e,!0)},o.prototype.handleFocus=function(){this.adapter.addClass(Uy.FOCUSED),this.layout(),this.adapter.activateBottomLine()},o.prototype.handleBlur=function(){this.isMenuOpen||this.blur()},o.prototype.handleClick=function(e){this.disabled||this.recentlyClicked||(this.setClickDebounceTimeout(),this.isMenuOpen?this.adapter.closeMenu():(this.adapter.setRippleCenter(e),this.openMenu()))},o.prototype.handleKeydown=function(e){if(!this.isMenuOpen&&this.adapter.hasClass(Uy.FOCUSED)){var t=vv(e)===Z_.ENTER,i=vv(e)===Z_.SPACEBAR,o=vv(e)===Z_.ARROW_UP,s=vv(e)===Z_.ARROW_DOWN;if(!(e.ctrlKey||e.metaKey)&&(!i&&e.key&&1===e.key.length||i&&this.adapter.isTypeaheadInProgress())){var n=i?" ":e.key,r=this.adapter.typeaheadMatchItem(n,this.getSelectedIndex());return r>=0&&this.setSelectedIndex(r),void e.preventDefault()}(t||i||o||s)&&(this.openMenu(),e.preventDefault())}},o.prototype.notchOutline=function(e){if(this.adapter.hasOutline()){var t=this.adapter.hasClass(Uy.FOCUSED);if(e){var i=Dy.LABEL_SCALE,o=this.adapter.getLabelWidth()*i;this.adapter.notchOutline(o)}else t||this.adapter.closeOutline()}},o.prototype.setLeadingIconAriaLabel=function(e){this.leadingIcon&&this.leadingIcon.setAriaLabel(e)},o.prototype.setLeadingIconContent=function(e){this.leadingIcon&&this.leadingIcon.setContent(e)},o.prototype.getUseDefaultValidation=function(){return this.useDefaultValidation},o.prototype.setUseDefaultValidation=function(e){this.useDefaultValidation=e},o.prototype.setValid=function(e){this.useDefaultValidation||(this.customValidity=e),this.adapter.setSelectAnchorAttr("aria-invalid",(!e).toString()),e?(this.adapter.removeClass(Uy.INVALID),this.adapter.removeMenuClass(Uy.MENU_INVALID)):(this.adapter.addClass(Uy.INVALID),this.adapter.addMenuClass(Uy.MENU_INVALID)),this.syncHelperTextValidity(e)},o.prototype.isValid=function(){return this.useDefaultValidation&&this.adapter.hasClass(Uy.REQUIRED)&&!this.adapter.hasClass(Uy.DISABLED)?this.getSelectedIndex()!==Dy.UNSET_INDEX&&(0!==this.getSelectedIndex()||Boolean(this.getValue())):this.customValidity},o.prototype.setRequired=function(e){e?this.adapter.addClass(Uy.REQUIRED):this.adapter.removeClass(Uy.REQUIRED),this.adapter.setSelectAnchorAttr("aria-required",e.toString()),this.adapter.setLabelRequired(e)},o.prototype.getRequired=function(){return"true"===this.adapter.getSelectAnchorAttr("aria-required")},o.prototype.init=function(){var e=this.adapter.getAnchorElement();e&&(this.adapter.setMenuAnchorElement(e),this.adapter.setMenuAnchorCorner(zv.BOTTOM_START)),this.adapter.setMenuWrapFocus(!1),this.setDisabled(this.adapter.hasClass(Uy.DISABLED)),this.syncHelperTextValidity(!this.adapter.hasClass(Uy.INVALID)),this.layout(),this.layoutOptions()},o.prototype.blur=function(){this.adapter.removeClass(Uy.FOCUSED),this.layout(),this.adapter.deactivateBottomLine(),this.adapter.hasClass(Uy.REQUIRED)&&this.useDefaultValidation&&this.setValid(this.isValid())},o.prototype.syncHelperTextValidity=function(e){if(this.helperText){this.helperText.setValidity(e);var t=this.helperText.isVisible(),i=this.helperText.getId();t&&i?this.adapter.setSelectAnchorAttr(Hy.ARIA_DESCRIBEDBY,i):this.adapter.removeSelectAnchorAttr(Hy.ARIA_DESCRIBEDBY)}},o.prototype.setClickDebounceTimeout=function(){var e=this;clearTimeout(this.clickDebounceTimeout),this.clickDebounceTimeout=setTimeout((function(){e.recentlyClicked=!1}),Dy.CLICK_DEBOUNCE_TIMEOUT_MS),this.recentlyClicked=!0},o}(xo);
/**
 * @license
 * Copyright 2019 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */
const By=window,Fy=By.ShadowRoot&&(void 0===By.ShadyCSS||By.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,jy=Symbol(),Vy=new WeakMap;let qy=class{constructor(e,t,i){if(this._$cssResult$=!0,i!==jy)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o;const t=this.t;if(Fy&&void 0===e){const i=void 0!==t&&1===t.length;i&&(e=Vy.get(t)),void 0===e&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),i&&Vy.set(t,e))}return e}toString(){return this.cssText}};const Wy=Fy?e=>e:e=>e instanceof CSSStyleSheet?(e=>{let t="";for(const i of e.cssRules)t+=i.cssText;return(e=>new qy("string"==typeof e?e:e+"",void 0,jy))(t)})(e):e
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */;var Gy;const Ky=window,Xy=Ky.trustedTypes,Yy=Xy?Xy.emptyScript:"",Jy=Ky.reactiveElementPolyfillSupport,Zy={toAttribute(e,t){switch(t){case Boolean:e=e?Yy:null;break;case Object:case Array:e=null==e?e:JSON.stringify(e)}return e},fromAttribute(e,t){let i=e;switch(t){case Boolean:i=null!==e;break;case Number:i=null===e?null:Number(e);break;case Object:case Array:try{i=JSON.parse(e)}catch(e){i=null}}return i}},Qy=(e,t)=>t!==e&&(t==t||e==e),ex={attribute:!0,type:String,converter:Zy,reflect:!1,hasChanged:Qy},tx="finalized";let ix=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this._$Eu()}static addInitializer(e){var t;this.finalize(),(null!==(t=this.h)&&void 0!==t?t:this.h=[]).push(e)}static get observedAttributes(){this.finalize();const e=[];return this.elementProperties.forEach(((t,i)=>{const o=this._$Ep(i,t);void 0!==o&&(this._$Ev.set(o,i),e.push(o))})),e}static createProperty(e,t=ex){if(t.state&&(t.attribute=!1),this.finalize(),this.elementProperties.set(e,t),!t.noAccessor&&!this.prototype.hasOwnProperty(e)){const i="symbol"==typeof e?Symbol():"__"+e,o=this.getPropertyDescriptor(e,i,t);void 0!==o&&Object.defineProperty(this.prototype,e,o)}}static getPropertyDescriptor(e,t,i){return{get(){return this[t]},set(o){const s=this[e];this[t]=o,this.requestUpdate(e,s,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)||ex}static finalize(){if(this.hasOwnProperty(tx))return!1;this[tx]=!0;const e=Object.getPrototypeOf(this);if(e.finalize(),void 0!==e.h&&(this.h=[...e.h]),this.elementProperties=new Map(e.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const e=this.properties,t=[...Object.getOwnPropertyNames(e),...Object.getOwnPropertySymbols(e)];for(const i of t)this.createProperty(i,e[i])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(e){const t=[];if(Array.isArray(e)){const i=new Set(e.flat(1/0).reverse());for(const e of i)t.unshift(Wy(e))}else void 0!==e&&t.push(Wy(e));return t}static _$Ep(e,t){const i=t.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof e?e.toLowerCase():void 0}_$Eu(){var e;this._$E_=new Promise((e=>this.enableUpdating=e)),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(e=this.constructor.h)||void 0===e||e.forEach((e=>e(this)))}addController(e){var t,i;(null!==(t=this._$ES)&&void 0!==t?t:this._$ES=[]).push(e),void 0!==this.renderRoot&&this.isConnected&&(null===(i=e.hostConnected)||void 0===i||i.call(e))}removeController(e){var t;null===(t=this._$ES)||void 0===t||t.splice(this._$ES.indexOf(e)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach(((e,t)=>{this.hasOwnProperty(t)&&(this._$Ei.set(t,this[t]),delete this[t])}))}createRenderRoot(){var e;const t=null!==(e=this.shadowRoot)&&void 0!==e?e:this.attachShadow(this.constructor.shadowRootOptions);return((e,t)=>{Fy?e.adoptedStyleSheets=t.map((e=>e instanceof CSSStyleSheet?e:e.styleSheet)):t.forEach((t=>{const i=document.createElement("style"),o=By.litNonce;void 0!==o&&i.setAttribute("nonce",o),i.textContent=t.cssText,e.appendChild(i)}))})(t,this.constructor.elementStyles),t}connectedCallback(){var e;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(e=this._$ES)||void 0===e||e.forEach((e=>{var t;return null===(t=e.hostConnected)||void 0===t?void 0:t.call(e)}))}enableUpdating(e){}disconnectedCallback(){var e;null===(e=this._$ES)||void 0===e||e.forEach((e=>{var t;return null===(t=e.hostDisconnected)||void 0===t?void 0:t.call(e)}))}attributeChangedCallback(e,t,i){this._$AK(e,i)}_$EO(e,t,i=ex){var o;const s=this.constructor._$Ep(e,i);if(void 0!==s&&!0===i.reflect){const n=(void 0!==(null===(o=i.converter)||void 0===o?void 0:o.toAttribute)?i.converter:Zy).toAttribute(t,i.type);this._$El=e,null==n?this.removeAttribute(s):this.setAttribute(s,n),this._$El=null}}_$AK(e,t){var i;const o=this.constructor,s=o._$Ev.get(e);if(void 0!==s&&this._$El!==s){const e=o.getPropertyOptions(s),n="function"==typeof e.converter?{fromAttribute:e.converter}:void 0!==(null===(i=e.converter)||void 0===i?void 0:i.fromAttribute)?e.converter:Zy;this._$El=s,this[s]=n.fromAttribute(t,e.type),this._$El=null}}requestUpdate(e,t,i){let o=!0;void 0!==e&&(((i=i||this.constructor.getPropertyOptions(e)).hasChanged||Qy)(this[e],t)?(this._$AL.has(e)||this._$AL.set(e,t),!0===i.reflect&&this._$El!==e&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(e,i))):o=!1),!this.isUpdatePending&&o&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(e){Promise.reject(e)}const e=this.scheduleUpdate();return null!=e&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var e;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach(((e,t)=>this[t]=e)),this._$Ei=void 0);let t=!1;const i=this._$AL;try{t=this.shouldUpdate(i),t?(this.willUpdate(i),null===(e=this._$ES)||void 0===e||e.forEach((e=>{var t;return null===(t=e.hostUpdate)||void 0===t?void 0:t.call(e)})),this.update(i)):this._$Ek()}catch(e){throw t=!1,this._$Ek(),e}t&&this._$AE(i)}willUpdate(e){}_$AE(e){var t;null===(t=this._$ES)||void 0===t||t.forEach((e=>{var t;return null===(t=e.hostUpdated)||void 0===t?void 0:t.call(e)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(e){return!0}update(e){void 0!==this._$EC&&(this._$EC.forEach(((e,t)=>this._$EO(t,this[t],e))),this._$EC=void 0),this._$Ek()}updated(e){}firstUpdated(e){}};
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */
var ox;ix[tx]=!0,ix.elementProperties=new Map,ix.elementStyles=[],ix.shadowRootOptions={mode:"open"},null==Jy||Jy({ReactiveElement:ix}),(null!==(Gy=Ky.reactiveElementVersions)&&void 0!==Gy?Gy:Ky.reactiveElementVersions=[]).push("1.6.3");const sx=window,nx=sx.trustedTypes,rx=nx?nx.createPolicy("lit-html",{createHTML:e=>e}):void 0,ax="$lit$",lx=`lit$${(Math.random()+"").slice(9)}$`,dx="?"+lx,cx=`<${dx}>`,hx=document,px=()=>hx.createComment(""),ux=e=>null===e||"object"!=typeof e&&"function"!=typeof e,mx=Array.isArray,gx="[ \t\n\f\r]",fx=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,_x=/-->/g,vx=/>/g,bx=RegExp(`>|${gx}(?:([^\\s"'>=/]+)(${gx}*=${gx}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),yx=/'/g,xx=/"/g,wx=/^(?:script|style|textarea|title)$/i,$x=(e=>(t,...i)=>({_$litType$:e,strings:t,values:i}))(1),Ax=Symbol.for("lit-noChange"),kx=Symbol.for("lit-nothing"),Ex=new WeakMap,Sx=hx.createTreeWalker(hx,129,null,!1);function Cx(e,t){if(!Array.isArray(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==rx?rx.createHTML(t):t}let Tx=class e{constructor({strings:t,_$litType$:i},o){let s;this.parts=[];let n=0,r=0;const a=t.length-1,l=this.parts,[d,c]=((e,t)=>{const i=e.length-1,o=[];let s,n=2===t?"<svg>":"",r=fx;for(let t=0;t<i;t++){const i=e[t];let a,l,d=-1,c=0;for(;c<i.length&&(r.lastIndex=c,l=r.exec(i),null!==l);)c=r.lastIndex,r===fx?"!--"===l[1]?r=_x:void 0!==l[1]?r=vx:void 0!==l[2]?(wx.test(l[2])&&(s=RegExp("</"+l[2],"g")),r=bx):void 0!==l[3]&&(r=bx):r===bx?">"===l[0]?(r=null!=s?s:fx,d=-1):void 0===l[1]?d=-2:(d=r.lastIndex-l[2].length,a=l[1],r=void 0===l[3]?bx:'"'===l[3]?xx:yx):r===xx||r===yx?r=bx:r===_x||r===vx?r=fx:(r=bx,s=void 0);const h=r===bx&&e[t+1].startsWith("/>")?" ":"";n+=r===fx?i+cx:d>=0?(o.push(a),i.slice(0,d)+ax+i.slice(d)+lx+h):i+lx+(-2===d?(o.push(void 0),t):h)}return[Cx(e,n+(e[i]||"<?>")+(2===t?"</svg>":"")),o]})(t,i);if(this.el=e.createElement(d,o),Sx.currentNode=this.el.content,2===i){const e=this.el.content,t=e.firstChild;t.remove(),e.append(...t.childNodes)}for(;null!==(s=Sx.nextNode())&&l.length<a;){if(1===s.nodeType){if(s.hasAttributes()){const e=[];for(const t of s.getAttributeNames())if(t.endsWith(ax)||t.startsWith(lx)){const i=c[r++];if(e.push(t),void 0!==i){const e=s.getAttribute(i.toLowerCase()+ax).split(lx),t=/([.?@])?(.*)/.exec(i);l.push({type:1,index:n,name:t[2],strings:e,ctor:"."===t[1]?Nx:"?"===t[1]?Mx:"@"===t[1]?Ux:Rx})}else l.push({type:6,index:n})}for(const t of e)s.removeAttribute(t)}if(wx.test(s.tagName)){const e=s.textContent.split(lx),t=e.length-1;if(t>0){s.textContent=nx?nx.emptyScript:"";for(let i=0;i<t;i++)s.append(e[i],px()),Sx.nextNode(),l.push({type:2,index:++n});s.append(e[t],px())}}}else if(8===s.nodeType)if(s.data===dx)l.push({type:2,index:n});else{let e=-1;for(;-1!==(e=s.data.indexOf(lx,e+1));)l.push({type:7,index:n}),e+=lx.length-1}n++}}static createElement(e,t){const i=hx.createElement("template");return i.innerHTML=e,i}};function Px(e,t,i=e,o){var s,n,r,a;if(t===Ax)return t;let l=void 0!==o?null===(s=i._$Co)||void 0===s?void 0:s[o]:i._$Cl;const d=ux(t)?void 0:t._$litDirective$;return(null==l?void 0:l.constructor)!==d&&(null===(n=null==l?void 0:l._$AO)||void 0===n||n.call(l,!1),void 0===d?l=void 0:(l=new d(e),l._$AT(e,i,o)),void 0!==o?(null!==(r=(a=i)._$Co)&&void 0!==r?r:a._$Co=[])[o]=l:i._$Cl=l),void 0!==l&&(t=Px(e,l._$AS(e,t.values),l,o)),t}let Ix=class{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){var t;const{el:{content:i},parts:o}=this._$AD,s=(null!==(t=null==e?void 0:e.creationScope)&&void 0!==t?t:hx).importNode(i,!0);Sx.currentNode=s;let n=Sx.nextNode(),r=0,a=0,l=o[0];for(;void 0!==l;){if(r===l.index){let t;2===l.type?t=new Ox(n,n.nextSibling,this,e):1===l.type?t=new l.ctor(n,l.name,l.strings,this,e):6===l.type&&(t=new Hx(n,this,e)),this._$AV.push(t),l=o[++a]}r!==(null==l?void 0:l.index)&&(n=Sx.nextNode(),r++)}return Sx.currentNode=hx,s}v(e){let t=0;for(const i of this._$AV)void 0!==i&&(void 0!==i.strings?(i._$AI(e,i,t),t+=i.strings.length-2):i._$AI(e[t])),t++}},Ox=class e{constructor(e,t,i,o){var s;this.type=2,this._$AH=kx,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=i,this.options=o,this._$Cp=null===(s=null==o?void 0:o.isConnected)||void 0===s||s}get _$AU(){var e,t;return null!==(t=null===(e=this._$AM)||void 0===e?void 0:e._$AU)&&void 0!==t?t:this._$Cp}get parentNode(){let e=this._$AA.parentNode;const t=this._$AM;return void 0!==t&&11===(null==e?void 0:e.nodeType)&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=Px(this,e,t),ux(e)?e===kx||null==e||""===e?(this._$AH!==kx&&this._$AR(),this._$AH=kx):e!==this._$AH&&e!==Ax&&this._(e):void 0!==e._$litType$?this.g(e):void 0!==e.nodeType?this.$(e):(e=>mx(e)||"function"==typeof(null==e?void 0:e[Symbol.iterator]))(e)?this.T(e):this._(e)}k(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}$(e){this._$AH!==e&&(this._$AR(),this._$AH=this.k(e))}_(e){this._$AH!==kx&&ux(this._$AH)?this._$AA.nextSibling.data=e:this.$(hx.createTextNode(e)),this._$AH=e}g(e){var t;const{values:i,_$litType$:o}=e,s="number"==typeof o?this._$AC(e):(void 0===o.el&&(o.el=Tx.createElement(Cx(o.h,o.h[0]),this.options)),o);if((null===(t=this._$AH)||void 0===t?void 0:t._$AD)===s)this._$AH.v(i);else{const e=new Ix(s,this),t=e.u(this.options);e.v(i),this.$(t),this._$AH=e}}_$AC(e){let t=Ex.get(e.strings);return void 0===t&&Ex.set(e.strings,t=new Tx(e)),t}T(t){mx(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let o,s=0;for(const n of t)s===i.length?i.push(o=new e(this.k(px()),this.k(px()),this,this.options)):o=i[s],o._$AI(n),s++;s<i.length&&(this._$AR(o&&o._$AB.nextSibling,s),i.length=s)}_$AR(e=this._$AA.nextSibling,t){var i;for(null===(i=this._$AP)||void 0===i||i.call(this,!1,!0,t);e&&e!==this._$AB;){const t=e.nextSibling;e.remove(),e=t}}setConnected(e){var t;void 0===this._$AM&&(this._$Cp=e,null===(t=this._$AP)||void 0===t||t.call(this,e))}},Rx=class{constructor(e,t,i,o,s){this.type=1,this._$AH=kx,this._$AN=void 0,this.element=e,this.name=t,this._$AM=o,this.options=s,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=kx}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(e,t=this,i,o){const s=this.strings;let n=!1;if(void 0===s)e=Px(this,e,t,0),n=!ux(e)||e!==this._$AH&&e!==Ax,n&&(this._$AH=e);else{const o=e;let r,a;for(e=s[0],r=0;r<s.length-1;r++)a=Px(this,o[i+r],t,r),a===Ax&&(a=this._$AH[r]),n||(n=!ux(a)||a!==this._$AH[r]),a===kx?e=kx:e!==kx&&(e+=(null!=a?a:"")+s[r+1]),this._$AH[r]=a}n&&!o&&this.j(e)}j(e){e===kx?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=e?e:"")}},Nx=class extends Rx{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===kx?void 0:e}};const Lx=nx?nx.emptyScript:"";let Mx=class extends Rx{constructor(){super(...arguments),this.type=4}j(e){e&&e!==kx?this.element.setAttribute(this.name,Lx):this.element.removeAttribute(this.name)}},Ux=class extends Rx{constructor(e,t,i,o,s){super(e,t,i,o,s),this.type=5}_$AI(e,t=this){var i;if((e=null!==(i=Px(this,e,t,0))&&void 0!==i?i:kx)===Ax)return;const o=this._$AH,s=e===kx&&o!==kx||e.capture!==o.capture||e.once!==o.once||e.passive!==o.passive,n=e!==kx&&(o===kx||s);s&&this.element.removeEventListener(this.name,this,o),n&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var t,i;"function"==typeof this._$AH?this._$AH.call(null!==(i=null===(t=this.options)||void 0===t?void 0:t.host)&&void 0!==i?i:this.element,e):this._$AH.handleEvent(e)}},Hx=class{constructor(e,t,i){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(e){Px(this,e)}};const Dx=sx.litHtmlPolyfillSupport;null==Dx||Dx(Tx,Ox),(null!==(ox=sx.litHtmlVersions)&&void 0!==ox?ox:sx.litHtmlVersions=[]).push("2.8.0");
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */
var zx,Bx;let Fx=class extends ix{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e,t;const i=super.createRenderRoot();return null!==(e=(t=this.renderOptions).renderBefore)&&void 0!==e||(t.renderBefore=i.firstChild),i}update(e){const t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=((e,t,i)=>{var o,s;const n=null!==(o=null==i?void 0:i.renderBefore)&&void 0!==o?o:t;let r=n._$litPart$;if(void 0===r){const e=null!==(s=null==i?void 0:i.renderBefore)&&void 0!==s?s:null;n._$litPart$=r=new Ox(t.insertBefore(px(),e),e,void 0,null!=i?i:{})}return r._$AI(e),r})(t,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),null===(e=this._$Do)||void 0===e||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),null===(e=this._$Do)||void 0===e||e.setConnected(!1)}render(){return Ax}};Fx.finalized=!0,Fx._$litElement$=!0,null===(zx=globalThis.litElementHydrateSupport)||void 0===zx||zx.call(globalThis,{LitElement:Fx});const jx=globalThis.litElementPolyfillSupport;null==jx||jx({LitElement:Fx}),(null!==(Bx=globalThis.litElementVersions)&&void 0!==Bx?Bx:globalThis.litElementVersions=[]).push("3.3.3");
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */
const Vx=1;let qx=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,i){this._$Ct=e,this._$AM=t,this._$Ci=i}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}};
/**
 * @license
 * Copyright 2018 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */const Wx=(e=>(...t)=>({_$litDirective$:e,values:t}))(class extends qx{constructor(e){var t;if(super(e),e.type!==Vx||"class"!==e.name||(null===(t=e.strings)||void 0===t?void 0:t.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(e){return" "+Object.keys(e).filter((t=>e[t])).join(" ")+" "}update(e,[t]){var i,o;if(void 0===this.it){this.it=new Set,void 0!==e.strings&&(this.nt=new Set(e.strings.join(" ").split(/\s/).filter((e=>""!==e))));for(const e in t)t[e]&&!(null===(i=this.nt)||void 0===i?void 0:i.has(e))&&this.it.add(e);return this.render(t)}const s=e.element.classList;this.it.forEach((e=>{e in t||(s.remove(e),this.it.delete(e))}));for(const e in t){const i=!!t[e];i===this.it.has(e)||(null===(o=this.nt)||void 0===o?void 0:o.has(e))||(i?(s.add(e),this.it.add(e)):(s.remove(e),this.it.delete(e)))}return Ax}}),Gx=e=>null!=e?e:kx
/**
 * @license
 * Copyright 2020 Google LLC
 * SPDX-License-Identifier: Apache-2.0
 */,Kx=(e={})=>{const t={};for(const i in e)t[i]=e[i];return Object.assign({badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valid:!0,valueMissing:!1},t)};
/**
 * @license
 * Copyright 2018 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */class Xx extends Ay{constructor(){super(...arguments),this.mdcFoundationClass=zy,this.disabled=!1,this.outlined=!1,this.label="",this.outlineOpen=!1,this.outlineWidth=0,this.value="",this.name="",this.selectedText="",this.icon="",this.menuOpen=!1,this.helper="",this.validateOnInitialRender=!1,this.validationMessage="",this.required=!1,this.naturalMenuWidth=!1,this.isUiValid=!0,this.fixedMenuPosition=!1,this.typeaheadState={bufferClearTimeout:0,currentFirstChar:"",sortedIndexCursor:0,typeaheadBuffer:""},this.sortedIndexByFirstChar=new Map,this.menuElement_=null,this.listeners=[],this.onBodyClickBound=()=>{},this._menuUpdateComplete=null,this.valueSetDirectly=!1,this.validityTransform=null,this._validity=Kx()}get items(){return this.menuElement_||(this.menuElement_=this.menuElement),this.menuElement_?this.menuElement_.items:[]}get selected(){const e=this.menuElement;return e?e.selected:null}get index(){const e=this.menuElement;return e?e.index:-1}get shouldRenderHelperText(){return!!this.helper||!!this.validationMessage}get validity(){return this._checkValidity(this.value),this._validity}render(){const e={"mdc-select--disabled":this.disabled,"mdc-select--no-label":!this.label,"mdc-select--filled":!this.outlined,"mdc-select--outlined":this.outlined,"mdc-select--with-leading-icon":!!this.icon,"mdc-select--required":this.required,"mdc-select--invalid":!this.isUiValid},t=this.label?"label":void 0,i=this.shouldRenderHelperText?"helper-text":void 0;return $x`
      <style>
        .mdc-select__anchor {
            min-width: var(--mdc-select-min-width, 200px);
        }
        .mdc-select--filled {
            min-width: var(--mdc-select-min-width, 200px);
        }
      </style>
      <div
          class="mdc-select ${Wx(e)}">
        <input
            class="formElement"
            name="${this.name}"
            .value="${this.value}"
            hidden
            ?disabled="${this.disabled}"
            ?required=${this.required}>
        <!-- @ts-ignore -->
        <div class="mdc-select__anchor"
            aria-autocomplete="none"
            role="combobox"
            aria-expanded=${this.menuOpen}
            aria-invalid=${!this.isUiValid}
            aria-haspopup="listbox"
            aria-labelledby=${Gx(t)}
            aria-required=${this.required}
            aria-describedby=${Gx(i)}
            @click=${this.onClick}
            @focus=${this.onFocus}
            @blur=${this.onBlur}
            @keydown=${this.onKeydown}>
          ${this.renderRipple()}
          ${this.outlined?this.renderOutline():this.renderLabel()}
          ${this.renderLeadingIcon()}
          <span class="mdc-select__selected-text-container">
            <span class="mdc-select__selected-text">${this.selectedText}</span>
          </span>
          <span class="mdc-select__dropdown-icon">
            <svg
                class="mdc-select__dropdown-icon-graphic"
                viewBox="7 10 10 5"
                focusable="false">
              <polygon
                  class="mdc-select__dropdown-icon-inactive"
                  stroke="none"
                  fill-rule="evenodd"
                  points="7 10 12 15 17 10">
              </polygon>
              <polygon
                  class="mdc-select__dropdown-icon-active"
                  stroke="none"
                  fill-rule="evenodd"
                  points="7 15 12 10 17 15">
              </polygon>
            </svg>
          </span>
          ${this.renderLineRipple()}
        </div>
        ${this.renderMenu()}
      </div>
      ${this.renderHelperText()}`}renderMenu(){const e=this.getMenuClasses();return $x`
      <mwc-menu
        innerRole="listbox"
        wrapFocus
        class=" ${Wx(e)}"
        activatable
        .fullwidth=${!this.fixedMenuPosition&&!this.naturalMenuWidth}
        .open=${this.menuOpen}
        .anchor=${this.anchorElement}
        .fixed=${this.fixedMenuPosition}
        @selected=${this.onSelected}
        @opened=${this.onOpened}
        @closed=${this.onClosed}
        @items-updated=${this.onItemsUpdated}
        @keydown=${this.handleTypeahead}>
      ${this.renderMenuContent()}
    </mwc-menu>`}getMenuClasses(){return{"mdc-select__menu":!0,"mdc-menu":!0,"mdc-menu-surface":!0,"mdc-select__menu--invalid":!this.isUiValid}}renderMenuContent(){return $x`<slot></slot>`}renderRipple(){return this.outlined?kx:$x`
      <span class="mdc-select__ripple"></span>
    `}renderOutline(){return this.outlined?$x`
      <mwc-notched-outline
          .width=${this.outlineWidth}
          .open=${this.outlineOpen}
          class="mdc-notched-outline">
        ${this.renderLabel()}
      </mwc-notched-outline>`:kx}renderLabel(){return this.label?$x`
      <span
          .floatingLabelFoundation=${Py(this.label)}
          id="label">${this.label}</span>
    `:kx}renderLeadingIcon(){return this.icon?$x`<mwc-icon class="mdc-select__icon" style="color:var(--token-colorTextSecondary);"><div>${this.icon}</div></mwc-icon>`:kx}renderLineRipple(){return this.outlined?kx:$x`
      <span .lineRippleFoundation=${My()}></span>
    `}renderHelperText(){if(!this.shouldRenderHelperText)return kx;const e=this.validationMessage&&!this.isUiValid;return $x`
        <p
          class="mdc-select-helper-text ${Wx({"mdc-select-helper-text--validation-msg":e})}"
          id="helper-text">${e?this.validationMessage:this.helper}</p>`}createAdapter(){return Object.assign(Object.assign({},uo(this.mdcRoot)),{activateBottomLine:()=>{this.lineRippleElement&&this.lineRippleElement.lineRippleFoundation.activate()},deactivateBottomLine:()=>{this.lineRippleElement&&this.lineRippleElement.lineRippleFoundation.deactivate()},hasLabel:()=>!!this.label,floatLabel:e=>{this.labelElement&&this.labelElement.floatingLabelFoundation.float(e)},getLabelWidth:()=>this.labelElement?this.labelElement.floatingLabelFoundation.getWidth():0,setLabelRequired:e=>{this.labelElement&&this.labelElement.floatingLabelFoundation.setRequired(e)},hasOutline:()=>this.outlined,notchOutline:e=>{this.outlineElement&&!this.outlineOpen&&(this.outlineWidth=e,this.outlineOpen=!0)},closeOutline:()=>{this.outlineElement&&(this.outlineOpen=!1)},setRippleCenter:e=>{if(this.lineRippleElement){this.lineRippleElement.lineRippleFoundation.setRippleCenter(e)}},notifyChange:async e=>{if(!this.valueSetDirectly&&e===this.value)return;this.valueSetDirectly=!1,this.value=e,await this.updateComplete;const t=new Event("change",{bubbles:!0});this.dispatchEvent(t)},setSelectedText:e=>this.selectedText=e,isSelectAnchorFocused:()=>{const e=this.anchorElement;if(!e)return!1;return e.getRootNode().activeElement===e},getSelectAnchorAttr:e=>{const t=this.anchorElement;return t?t.getAttribute(e):null},setSelectAnchorAttr:(e,t)=>{const i=this.anchorElement;i&&i.setAttribute(e,t)},removeSelectAnchorAttr:e=>{const t=this.anchorElement;t&&t.removeAttribute(e)},openMenu:()=>{this.menuOpen=!0},closeMenu:()=>{this.menuOpen=!1},addMenuClass:()=>{},removeMenuClass:()=>{},getAnchorElement:()=>this.anchorElement,setMenuAnchorElement:()=>{},setMenuAnchorCorner:()=>{const e=this.menuElement;e&&(e.corner="BOTTOM_START")},setMenuWrapFocus:e=>{const t=this.menuElement;t&&(t.wrapFocus=e)},focusMenuItemAtIndex:e=>{const t=this.menuElement;if(!t)return;const i=t.items[e];i&&i.focus()},getMenuItemCount:()=>{const e=this.menuElement;return e?e.items.length:0},getMenuItemValues:()=>{const e=this.menuElement;if(!e)return[];return e.items.map((e=>e.value))},getMenuItemTextAtIndex:e=>{const t=this.menuElement;if(!t)return"";const i=t.items[e];return i?i.text:""},getSelectedIndex:()=>this.index,setSelectedIndex:()=>{},isTypeaheadInProgress:()=>vy(this.typeaheadState),typeaheadMatchItem:(e,t)=>{if(!this.menuElement)return-1;const i={focusItemAtIndex:e=>{this.menuElement.focusItemAtIndex(e)},focusedItemIndex:t||this.menuElement.getFocusedItemIndex(),nextChar:e,sortedIndexByFirstChar:this.sortedIndexByFirstChar,skipFocus:!1,isItemAtIndexDisabled:e=>this.items[e].disabled},o=_y(i,this.typeaheadState);return-1!==o&&this.select(o),o}})}checkValidity(){const e=this._checkValidity(this.value);if(!e){const e=new Event("invalid",{bubbles:!1,cancelable:!0});this.dispatchEvent(e)}return e}reportValidity(){const e=this.checkValidity();return this.isUiValid=e,e}_checkValidity(e){const t=this.formElement.validity;let i=Kx(t);if(this.validityTransform){const t=this.validityTransform(e,i);i=Object.assign(Object.assign({},i),t)}return this._validity=i,this._validity.valid}setCustomValidity(e){this.validationMessage=e,this.formElement.setCustomValidity(e)}async getUpdateComplete(){await this._menuUpdateComplete;return await super.getUpdateComplete()}async firstUpdated(){const e=this.menuElement;if(e&&(this._menuUpdateComplete=e.updateComplete,await this._menuUpdateComplete),super.firstUpdated(),this.mdcFoundation.isValid=()=>!0,this.mdcFoundation.setValid=()=>{},this.mdcFoundation.setDisabled(this.disabled),this.validateOnInitialRender&&this.reportValidity(),!this.selected){!this.items.length&&this.slotElement&&this.slotElement.assignedNodes({flatten:!0}).length&&(await new Promise((e=>requestAnimationFrame(e))),await this.layout());const e=this.items.length&&""===this.items[0].value;if(!this.value&&e)return void this.select(0);this.selectByValue(this.value)}this.sortedIndexByFirstChar=fy(this.items.length,(e=>this.items[e].text))}onItemsUpdated(){this.sortedIndexByFirstChar=fy(this.items.length,(e=>this.items[e].text))}select(e){const t=this.menuElement;t&&t.select(e)}selectByValue(e){let t=-1;for(let i=0;i<this.items.length;i++){if(this.items[i].value===e){t=i;break}}this.valueSetDirectly=!0,this.select(t),this.mdcFoundation.handleChange()}disconnectedCallback(){super.disconnectedCallback();for(const e of this.listeners)e.target.removeEventListener(e.name,e.cb)}focus(){const e=new CustomEvent("focus"),t=this.anchorElement;t&&(t.dispatchEvent(e),t.focus())}blur(){const e=new CustomEvent("blur"),t=this.anchorElement;t&&(t.dispatchEvent(e),t.blur())}onFocus(){this.mdcFoundation&&this.mdcFoundation.handleFocus()}onBlur(){this.mdcFoundation&&this.mdcFoundation.handleBlur();const e=this.menuElement;e&&!e.open&&this.reportValidity()}onClick(e){if(this.mdcFoundation){this.focus();const t=e.target.getBoundingClientRect();let i=0;i="touches"in e?e.touches[0].clientX:e.clientX;const o=i-t.left;this.mdcFoundation.handleClick(o)}}onKeydown(e){const t=vv(e)===Z_.ARROW_UP,i=vv(e)===Z_.ARROW_DOWN;if(i||t){const o=t&&this.index>0,s=i&&this.index<this.items.length-1;return o?this.select(this.index-1):s&&this.select(this.index+1),e.preventDefault(),void this.mdcFoundation.openMenu()}this.mdcFoundation.handleKeydown(e)}handleTypeahead(e){if(!this.menuElement)return;const t=this.menuElement.getFocusedItemIndex(),i=po(e.target)?e.target:null;!function(e,t){var i=e.event,o=e.isTargetListItem,s=e.focusedItemIndex,n=e.focusItemAtIndex,r=e.sortedIndexByFirstChar,a=e.isItemAtIndexDisabled,l="ArrowLeft"===vv(i),d="ArrowUp"===vv(i),c="ArrowRight"===vv(i),h="ArrowDown"===vv(i),p="Home"===vv(i),u="End"===vv(i),m="Enter"===vv(i),g="Spacebar"===vv(i);i.altKey||i.ctrlKey||i.metaKey||l||d||c||h||p||u||m||(g||1!==i.key.length?g&&(o&&gy(i),o&&vy(t)&&_y({focusItemAtIndex:n,focusedItemIndex:s,nextChar:" ",sortedIndexByFirstChar:r,skipFocus:!1,isItemAtIndexDisabled:a},t)):(gy(i),_y({focusItemAtIndex:n,focusedItemIndex:s,nextChar:i.key.toLowerCase(),sortedIndexByFirstChar:r,skipFocus:!1,isItemAtIndexDisabled:a},t)))}({event:e,focusItemAtIndex:e=>{this.menuElement.focusItemAtIndex(e)},focusedItemIndex:t,isTargetListItem:!!i&&i.hasAttribute("mwc-list-item"),sortedIndexByFirstChar:this.sortedIndexByFirstChar,isItemAtIndexDisabled:e=>this.items[e].disabled},this.typeaheadState)}async onSelected(e){this.mdcFoundation||await this.updateComplete,this.mdcFoundation.handleMenuItemAction(e.detail.index);const t=this.items[e.detail.index];t&&(this.value=t.value)}onOpened(){this.mdcFoundation&&(this.menuOpen=!0,this.mdcFoundation.handleMenuOpened())}onClosed(){this.mdcFoundation&&(this.menuOpen=!1,this.mdcFoundation.handleMenuClosed())}setFormData(e){this.name&&null!==this.selected&&e.append(this.name,this.value)}async layout(e=!0){this.mdcFoundation&&this.mdcFoundation.layout(),await this.updateComplete;const t=this.menuElement;t&&t.layout(e);const i=this.labelElement;if(!i)return void(this.outlineOpen=!1);const o=!!this.label&&!!this.value;if(i.floatingLabelFoundation.float(o),!this.outlined)return;this.outlineOpen=o,await this.updateComplete;const s=i.floatingLabelFoundation.getWidth();this.outlineOpen&&(this.outlineWidth=s)}async layoutOptions(){this.mdcFoundation&&this.mdcFoundation.layoutOptions()}}o([sg(".mdc-select")],Xx.prototype,"mdcRoot",void 0),o([sg(".formElement")],Xx.prototype,"formElement",void 0),o([sg("slot")],Xx.prototype,"slotElement",void 0),o([sg("select")],Xx.prototype,"nativeSelectElement",void 0),o([sg("input")],Xx.prototype,"nativeInputElement",void 0),o([sg(".mdc-line-ripple")],Xx.prototype,"lineRippleElement",void 0),o([sg(".mdc-floating-label")],Xx.prototype,"labelElement",void 0),o([sg("mwc-notched-outline")],Xx.prototype,"outlineElement",void 0),o([sg(".mdc-menu")],Xx.prototype,"menuElement",void 0),o([sg(".mdc-select__anchor")],Xx.prototype,"anchorElement",void 0),o([tg({type:Boolean,attribute:"disabled",reflect:!0}),Fl((function(e){this.mdcFoundation&&this.mdcFoundation.setDisabled(e)}))],Xx.prototype,"disabled",void 0),o([tg({type:Boolean}),Fl((function(e,t){void 0!==t&&this.outlined!==t&&this.layout(!1)}))],Xx.prototype,"outlined",void 0),o([tg({type:String}),Fl((function(e,t){void 0!==t&&this.label!==t&&this.layout(!1)}))],Xx.prototype,"label",void 0),o([ig()],Xx.prototype,"outlineOpen",void 0),o([ig()],Xx.prototype,"outlineWidth",void 0),o([tg({type:String}),Fl((function(e){if(this.mdcFoundation){const t=null===this.selected&&!!e,i=this.selected&&this.selected.value!==e;(t||i)&&this.selectByValue(e),this.reportValidity()}}))],Xx.prototype,"value",void 0),o([tg()],Xx.prototype,"name",void 0),o([ig()],Xx.prototype,"selectedText",void 0),o([tg({type:String})],Xx.prototype,"icon",void 0),o([ig()],Xx.prototype,"menuOpen",void 0),o([tg({type:String})],Xx.prototype,"helper",void 0),o([tg({type:Boolean})],Xx.prototype,"validateOnInitialRender",void 0),o([tg({type:String})],Xx.prototype,"validationMessage",void 0),o([tg({type:Boolean})],Xx.prototype,"required",void 0),o([tg({type:Boolean})],Xx.prototype,"naturalMenuWidth",void 0),o([ig()],Xx.prototype,"isUiValid",void 0),o([tg({type:Boolean})],Xx.prototype,"fixedMenuPosition",void 0),o([function(e){return og({finisher:(t,i)=>{Object.assign(t.prototype[i],e)}})}({capture:!0})],Xx.prototype,"handleTypeahead",null);
/**
 * @license
 * Copyright 2021 Google LLC
 * SPDX-LIcense-Identifier: Apache-2.0
 */
const Yx=((e,...t)=>{const i=1===e.length?e[0]:t.reduce(((t,i,o)=>t+(e=>{if(!0===e._$cssResult$)return e.cssText;if("number"==typeof e)return e;throw Error("Value passed to 'css' function must be a 'css' function result: "+e+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+e[o+1]),e[0]);return new qy(i,e,jy)})`.mdc-floating-label{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-subtitle1-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:1rem;font-size:var(--mdc-typography-subtitle1-font-size, 1rem);font-weight:400;font-weight:var(--mdc-typography-subtitle1-font-weight, 400);letter-spacing:0.009375em;letter-spacing:var(--mdc-typography-subtitle1-letter-spacing, 0.009375em);text-decoration:inherit;text-decoration:var(--mdc-typography-subtitle1-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-subtitle1-text-transform, inherit);position:absolute;left:0;-webkit-transform-origin:left top;transform-origin:left top;line-height:1.15rem;text-align:left;text-overflow:ellipsis;white-space:nowrap;cursor:text;overflow:hidden;will-change:transform;transition:transform 150ms cubic-bezier(0.4, 0, 0.2, 1),color 150ms cubic-bezier(0.4, 0, 0.2, 1)}[dir=rtl] .mdc-floating-label,.mdc-floating-label[dir=rtl]{right:0;left:auto;-webkit-transform-origin:right top;transform-origin:right top;text-align:right}.mdc-floating-label--float-above{cursor:auto}.mdc-floating-label--required::after{margin-left:1px;margin-right:0px;content:"*"}[dir=rtl] .mdc-floating-label--required::after,.mdc-floating-label--required[dir=rtl]::after{margin-left:0;margin-right:1px}.mdc-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-standard 250ms 1}@keyframes mdc-floating-label-shake-float-above-standard{0%{transform:translateX(calc(0 - 0%)) translateY(-106%) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(-106%) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(-106%) scale(0.75)}100%{transform:translateX(calc(0 - 0%)) translateY(-106%) scale(0.75)}}@keyframes mdc-ripple-fg-radius-in{from{animation-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transform:translate(var(--mdc-ripple-fg-translate-start, 0)) scale(1)}to{transform:translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1))}}@keyframes mdc-ripple-fg-opacity-in{from{animation-timing-function:linear;opacity:0}to{opacity:var(--mdc-ripple-fg-opacity, 0)}}@keyframes mdc-ripple-fg-opacity-out{from{animation-timing-function:linear;opacity:var(--mdc-ripple-fg-opacity, 0)}to{opacity:0}}.mdc-line-ripple::before,.mdc-line-ripple::after{position:absolute;bottom:0;left:0;width:100%;border-bottom-style:solid;content:""}.mdc-line-ripple::before{border-bottom-width:1px}.mdc-line-ripple::before{z-index:1}.mdc-line-ripple::after{transform:scaleX(0);border-bottom-width:2px;opacity:0;z-index:2}.mdc-line-ripple::after{transition:transform 180ms cubic-bezier(0.4, 0, 0.2, 1),opacity 180ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-line-ripple--active::after{transform:scaleX(1);opacity:1}.mdc-line-ripple--deactivating::after{opacity:0}.mdc-notched-outline{display:flex;position:absolute;top:0;right:0;left:0;box-sizing:border-box;width:100%;max-width:100%;height:100%;text-align:left;pointer-events:none}[dir=rtl] .mdc-notched-outline,.mdc-notched-outline[dir=rtl]{text-align:right}.mdc-notched-outline__leading,.mdc-notched-outline__notch,.mdc-notched-outline__trailing{box-sizing:border-box;height:100%;border-top:1px solid;border-bottom:1px solid;pointer-events:none}.mdc-notched-outline__leading{border-left:1px solid;border-right:none;width:12px}[dir=rtl] .mdc-notched-outline__leading,.mdc-notched-outline__leading[dir=rtl]{border-left:none;border-right:1px solid}.mdc-notched-outline__trailing{border-left:none;border-right:1px solid;flex-grow:1}[dir=rtl] .mdc-notched-outline__trailing,.mdc-notched-outline__trailing[dir=rtl]{border-left:1px solid;border-right:none}.mdc-notched-outline__notch{flex:0 0 auto;width:auto;max-width:calc(100% - 12px * 2)}.mdc-notched-outline .mdc-floating-label{display:inline-block;position:relative;max-width:100%}.mdc-notched-outline .mdc-floating-label--float-above{text-overflow:clip}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:calc(100% / 0.75)}.mdc-notched-outline--notched .mdc-notched-outline__notch{padding-left:0;padding-right:8px;border-top:none}[dir=rtl] .mdc-notched-outline--notched .mdc-notched-outline__notch,.mdc-notched-outline--notched .mdc-notched-outline__notch[dir=rtl]{padding-left:8px;padding-right:0}.mdc-notched-outline--no-label .mdc-notched-outline__notch{display:none}.mdc-select{display:inline-flex;position:relative}.mdc-select:not(.mdc-select--disabled) .mdc-select__selected-text{color:rgba(0, 0, 0, 0.87)}.mdc-select.mdc-select--disabled .mdc-select__selected-text{color:rgba(0, 0, 0, 0.38)}.mdc-select:not(.mdc-select--disabled) .mdc-floating-label{color:rgba(0, 0, 0, 0.6)}.mdc-select:not(.mdc-select--disabled).mdc-select--focused .mdc-floating-label{color:rgba(98, 0, 238, 0.87)}.mdc-select.mdc-select--disabled .mdc-floating-label{color:rgba(0, 0, 0, 0.38)}.mdc-select:not(.mdc-select--disabled) .mdc-select__dropdown-icon{fill:rgba(0, 0, 0, 0.54)}.mdc-select:not(.mdc-select--disabled).mdc-select--focused .mdc-select__dropdown-icon{fill:#6200ee;fill:var(--mdc-theme-primary, #6200ee)}.mdc-select.mdc-select--disabled .mdc-select__dropdown-icon{fill:rgba(0, 0, 0, 0.38)}.mdc-select:not(.mdc-select--disabled)+.mdc-select-helper-text{color:rgba(0, 0, 0, 0.6)}.mdc-select.mdc-select--disabled+.mdc-select-helper-text{color:rgba(0, 0, 0, 0.38)}.mdc-select:not(.mdc-select--disabled) .mdc-select__icon{color:rgba(0, 0, 0, 0.54)}.mdc-select.mdc-select--disabled .mdc-select__icon{color:rgba(0, 0, 0, 0.38)}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-select.mdc-select--disabled .mdc-select__selected-text{color:GrayText}.mdc-select.mdc-select--disabled .mdc-select__dropdown-icon{fill:red}.mdc-select.mdc-select--disabled .mdc-floating-label{color:GrayText}.mdc-select.mdc-select--disabled .mdc-line-ripple::before{border-bottom-color:GrayText}.mdc-select.mdc-select--disabled .mdc-notched-outline__leading,.mdc-select.mdc-select--disabled .mdc-notched-outline__notch,.mdc-select.mdc-select--disabled .mdc-notched-outline__trailing{border-color:GrayText}.mdc-select.mdc-select--disabled .mdc-select__icon{color:GrayText}.mdc-select.mdc-select--disabled+.mdc-select-helper-text{color:GrayText}}.mdc-select .mdc-floating-label{top:50%;transform:translateY(-50%);pointer-events:none}.mdc-select .mdc-select__anchor{padding-left:16px;padding-right:0}[dir=rtl] .mdc-select .mdc-select__anchor,.mdc-select .mdc-select__anchor[dir=rtl]{padding-left:0;padding-right:16px}.mdc-select.mdc-select--with-leading-icon .mdc-select__anchor{padding-left:0;padding-right:0}[dir=rtl] .mdc-select.mdc-select--with-leading-icon .mdc-select__anchor,.mdc-select.mdc-select--with-leading-icon .mdc-select__anchor[dir=rtl]{padding-left:0;padding-right:0}.mdc-select .mdc-select__icon{width:24px;height:24px;font-size:24px}.mdc-select .mdc-select__dropdown-icon{width:24px;height:24px}.mdc-select .mdc-select__menu .mdc-deprecated-list-item{padding-left:16px;padding-right:16px}[dir=rtl] .mdc-select .mdc-select__menu .mdc-deprecated-list-item,.mdc-select .mdc-select__menu .mdc-deprecated-list-item[dir=rtl]{padding-left:16px;padding-right:16px}.mdc-select .mdc-select__menu .mdc-deprecated-list-item__graphic{margin-left:0;margin-right:12px}[dir=rtl] .mdc-select .mdc-select__menu .mdc-deprecated-list-item__graphic,.mdc-select .mdc-select__menu .mdc-deprecated-list-item__graphic[dir=rtl]{margin-left:12px;margin-right:0}.mdc-select__dropdown-icon{margin-left:12px;margin-right:12px;display:inline-flex;position:relative;align-self:center;align-items:center;justify-content:center;flex-shrink:0;pointer-events:none}.mdc-select__dropdown-icon .mdc-select__dropdown-icon-active,.mdc-select__dropdown-icon .mdc-select__dropdown-icon-inactive{position:absolute;top:0;left:0}.mdc-select__dropdown-icon .mdc-select__dropdown-icon-graphic{width:41.6666666667%;height:20.8333333333%}.mdc-select__dropdown-icon .mdc-select__dropdown-icon-inactive{opacity:1;transition:opacity 75ms linear 75ms}.mdc-select__dropdown-icon .mdc-select__dropdown-icon-active{opacity:0;transition:opacity 75ms linear}[dir=rtl] .mdc-select__dropdown-icon,.mdc-select__dropdown-icon[dir=rtl]{margin-left:12px;margin-right:12px}.mdc-select--activated .mdc-select__dropdown-icon .mdc-select__dropdown-icon-inactive{opacity:0;transition:opacity 49.5ms linear}.mdc-select--activated .mdc-select__dropdown-icon .mdc-select__dropdown-icon-active{opacity:1;transition:opacity 100.5ms linear 49.5ms}.mdc-select__anchor{width:200px;min-width:0;flex:1 1 auto;position:relative;box-sizing:border-box;overflow:hidden;outline:none;cursor:pointer}.mdc-select__anchor .mdc-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.mdc-select__selected-text-container{display:flex;appearance:none;pointer-events:none;box-sizing:border-box;width:auto;min-width:0;flex-grow:1;height:28px;border:none;outline:none;padding:0;background-color:transparent;color:inherit}.mdc-select__selected-text{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-subtitle1-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:1rem;font-size:var(--mdc-typography-subtitle1-font-size, 1rem);line-height:1.75rem;line-height:var(--mdc-typography-subtitle1-line-height, 1.75rem);font-weight:400;font-weight:var(--mdc-typography-subtitle1-font-weight, 400);letter-spacing:0.009375em;letter-spacing:var(--mdc-typography-subtitle1-letter-spacing, 0.009375em);text-decoration:inherit;text-decoration:var(--mdc-typography-subtitle1-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-subtitle1-text-transform, inherit);text-overflow:ellipsis;white-space:nowrap;overflow:hidden;display:block;width:100%;text-align:left}[dir=rtl] .mdc-select__selected-text,.mdc-select__selected-text[dir=rtl]{text-align:right}.mdc-select--invalid:not(.mdc-select--disabled) .mdc-floating-label{color:#b00020;color:var(--mdc-theme-error, #b00020)}.mdc-select--invalid:not(.mdc-select--disabled).mdc-select--focused .mdc-floating-label{color:#b00020;color:var(--mdc-theme-error, #b00020)}.mdc-select--invalid:not(.mdc-select--disabled).mdc-select--invalid+.mdc-select-helper-text--validation-msg{color:#b00020;color:var(--mdc-theme-error, #b00020)}.mdc-select--invalid:not(.mdc-select--disabled) .mdc-select__dropdown-icon{fill:#b00020;fill:var(--mdc-theme-error, #b00020)}.mdc-select--invalid:not(.mdc-select--disabled).mdc-select--focused .mdc-select__dropdown-icon{fill:#b00020;fill:var(--mdc-theme-error, #b00020)}.mdc-select--disabled{cursor:default;pointer-events:none}.mdc-select--with-leading-icon .mdc-select__menu .mdc-deprecated-list-item{padding-left:12px;padding-right:12px}[dir=rtl] .mdc-select--with-leading-icon .mdc-select__menu .mdc-deprecated-list-item,.mdc-select--with-leading-icon .mdc-select__menu .mdc-deprecated-list-item[dir=rtl]{padding-left:12px;padding-right:12px}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-select__menu::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid transparent;border-radius:inherit;content:"";pointer-events:none}}@media screen and (forced-colors: active)and (forced-colors: active),screen and (-ms-high-contrast: active)and (forced-colors: active){.mdc-select__menu::before{border-color:CanvasText}}.mdc-select__menu .mdc-deprecated-list .mdc-select__icon,.mdc-select__menu .mdc-list .mdc-select__icon{margin-left:0;margin-right:0}[dir=rtl] .mdc-select__menu .mdc-deprecated-list .mdc-select__icon,[dir=rtl] .mdc-select__menu .mdc-list .mdc-select__icon,.mdc-select__menu .mdc-deprecated-list .mdc-select__icon[dir=rtl],.mdc-select__menu .mdc-list .mdc-select__icon[dir=rtl]{margin-left:0;margin-right:0}.mdc-select__menu .mdc-deprecated-list .mdc-deprecated-list-item--selected,.mdc-select__menu .mdc-deprecated-list .mdc-deprecated-list-item--activated,.mdc-select__menu .mdc-list .mdc-deprecated-list-item--selected,.mdc-select__menu .mdc-list .mdc-deprecated-list-item--activated{color:#000;color:var(--mdc-theme-on-surface, #000)}.mdc-select__menu .mdc-deprecated-list .mdc-deprecated-list-item--selected .mdc-deprecated-list-item__graphic,.mdc-select__menu .mdc-deprecated-list .mdc-deprecated-list-item--activated .mdc-deprecated-list-item__graphic,.mdc-select__menu .mdc-list .mdc-deprecated-list-item--selected .mdc-deprecated-list-item__graphic,.mdc-select__menu .mdc-list .mdc-deprecated-list-item--activated .mdc-deprecated-list-item__graphic{color:#000;color:var(--mdc-theme-on-surface, #000)}.mdc-select__menu .mdc-list-item__start{display:inline-flex;align-items:center}.mdc-select__option{padding-left:16px;padding-right:16px}[dir=rtl] .mdc-select__option,.mdc-select__option[dir=rtl]{padding-left:16px;padding-right:16px}.mdc-select__one-line-option.mdc-list-item--with-one-line{height:48px}.mdc-select__two-line-option.mdc-list-item--with-two-lines{height:64px}.mdc-select__two-line-option.mdc-list-item--with-two-lines .mdc-list-item__start{margin-top:20px}.mdc-select__two-line-option.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-select__two-line-option.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-select__two-line-option.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-select__two-line-option.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-select__two-line-option.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before{display:inline-block;width:0;height:36px;content:"";vertical-align:0}.mdc-select__option-with-leading-content{padding-left:0;padding-right:12px}.mdc-select__option-with-leading-content.mdc-list-item{padding-left:0;padding-right:auto}[dir=rtl] .mdc-select__option-with-leading-content.mdc-list-item,.mdc-select__option-with-leading-content.mdc-list-item[dir=rtl]{padding-left:auto;padding-right:0}.mdc-select__option-with-leading-content .mdc-list-item__start{margin-left:12px;margin-right:0}[dir=rtl] .mdc-select__option-with-leading-content .mdc-list-item__start,.mdc-select__option-with-leading-content .mdc-list-item__start[dir=rtl]{margin-left:0;margin-right:12px}.mdc-select__option-with-leading-content .mdc-list-item__start{width:36px;height:24px}[dir=rtl] .mdc-select__option-with-leading-content,.mdc-select__option-with-leading-content[dir=rtl]{padding-left:12px;padding-right:0}.mdc-select__option-with-meta.mdc-list-item{padding-left:auto;padding-right:0}[dir=rtl] .mdc-select__option-with-meta.mdc-list-item,.mdc-select__option-with-meta.mdc-list-item[dir=rtl]{padding-left:0;padding-right:auto}.mdc-select__option-with-meta .mdc-list-item__end{margin-left:12px;margin-right:12px}[dir=rtl] .mdc-select__option-with-meta .mdc-list-item__end,.mdc-select__option-with-meta .mdc-list-item__end[dir=rtl]{margin-left:12px;margin-right:12px}.mdc-select--filled .mdc-select__anchor{height:56px;display:flex;align-items:baseline}.mdc-select--filled .mdc-select__anchor::before{display:inline-block;width:0;height:40px;content:"";vertical-align:0}.mdc-select--filled.mdc-select--no-label .mdc-select__anchor .mdc-select__selected-text::before{content:"​"}.mdc-select--filled.mdc-select--no-label .mdc-select__anchor .mdc-select__selected-text-container{height:100%;display:inline-flex;align-items:center}.mdc-select--filled.mdc-select--no-label .mdc-select__anchor::before{display:none}.mdc-select--filled .mdc-select__anchor{border-top-left-radius:4px;border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:4px;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:0;border-bottom-left-radius:0}.mdc-select--filled:not(.mdc-select--disabled) .mdc-select__anchor{background-color:whitesmoke}.mdc-select--filled.mdc-select--disabled .mdc-select__anchor{background-color:#fafafa}.mdc-select--filled:not(.mdc-select--disabled) .mdc-line-ripple::before{border-bottom-color:rgba(0, 0, 0, 0.42)}.mdc-select--filled:not(.mdc-select--disabled):hover .mdc-line-ripple::before{border-bottom-color:rgba(0, 0, 0, 0.87)}.mdc-select--filled:not(.mdc-select--disabled) .mdc-line-ripple::after{border-bottom-color:#6200ee;border-bottom-color:var(--mdc-theme-primary, #6200ee)}.mdc-select--filled.mdc-select--disabled .mdc-line-ripple::before{border-bottom-color:rgba(0, 0, 0, 0.06)}.mdc-select--filled .mdc-floating-label{max-width:calc(100% - 64px)}.mdc-select--filled .mdc-floating-label--float-above{max-width:calc(100% / 0.75 - 64px / 0.75)}.mdc-select--filled .mdc-menu-surface--is-open-below{border-top-left-radius:0px;border-top-right-radius:0px}.mdc-select--filled.mdc-select--focused.mdc-line-ripple::after{transform:scale(1, 2);opacity:1}.mdc-select--filled .mdc-floating-label{left:16px;right:initial}[dir=rtl] .mdc-select--filled .mdc-floating-label,.mdc-select--filled .mdc-floating-label[dir=rtl]{left:initial;right:16px}.mdc-select--filled.mdc-select--with-leading-icon .mdc-floating-label{left:48px;right:initial}[dir=rtl] .mdc-select--filled.mdc-select--with-leading-icon .mdc-floating-label,.mdc-select--filled.mdc-select--with-leading-icon .mdc-floating-label[dir=rtl]{left:initial;right:48px}.mdc-select--filled.mdc-select--with-leading-icon .mdc-floating-label{max-width:calc(100% - 96px)}.mdc-select--filled.mdc-select--with-leading-icon .mdc-floating-label--float-above{max-width:calc(100% / 0.75 - 96px / 0.75)}.mdc-select--invalid:not(.mdc-select--disabled) .mdc-line-ripple::before{border-bottom-color:#b00020;border-bottom-color:var(--mdc-theme-error, #b00020)}.mdc-select--invalid:not(.mdc-select--disabled):hover .mdc-line-ripple::before{border-bottom-color:#b00020;border-bottom-color:var(--mdc-theme-error, #b00020)}.mdc-select--invalid:not(.mdc-select--disabled) .mdc-line-ripple::after{border-bottom-color:#b00020;border-bottom-color:var(--mdc-theme-error, #b00020)}.mdc-select--outlined{border:none}.mdc-select--outlined .mdc-select__anchor{height:56px}.mdc-select--outlined .mdc-select__anchor .mdc-floating-label--float-above{transform:translateY(-37.25px) scale(1)}.mdc-select--outlined .mdc-select__anchor .mdc-floating-label--float-above{font-size:.75rem}.mdc-select--outlined .mdc-select__anchor.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-select--outlined .mdc-select__anchor .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-34.75px) scale(0.75)}.mdc-select--outlined .mdc-select__anchor.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-select--outlined .mdc-select__anchor .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-select--outlined .mdc-select__anchor .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-select-outlined-56px 250ms 1}@keyframes mdc-floating-label-shake-float-above-select-outlined-56px{0%{transform:translateX(calc(0 - 0%)) translateY(-34.75px) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(-34.75px) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(-34.75px) scale(0.75)}100%{transform:translateX(calc(0 - 0%)) translateY(-34.75px) scale(0.75)}}.mdc-select--outlined .mdc-notched-outline .mdc-notched-outline__leading{border-top-left-radius:4px;border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:4px;border-bottom-left-radius:var(--mdc-shape-small, 4px)}[dir=rtl] .mdc-select--outlined .mdc-notched-outline .mdc-notched-outline__leading,.mdc-select--outlined .mdc-notched-outline .mdc-notched-outline__leading[dir=rtl]{border-top-left-radius:0;border-top-right-radius:4px;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:4px;border-bottom-right-radius:var(--mdc-shape-small, 4px);border-bottom-left-radius:0}@supports(top: max(0%)){.mdc-select--outlined .mdc-notched-outline .mdc-notched-outline__leading{width:max(12px, var(--mdc-shape-small, 4px))}}@supports(top: max(0%)){.mdc-select--outlined .mdc-notched-outline .mdc-notched-outline__notch{max-width:calc(100% - max(12px, var(--mdc-shape-small, 4px)) * 2)}}.mdc-select--outlined .mdc-notched-outline .mdc-notched-outline__trailing{border-top-left-radius:0;border-top-right-radius:4px;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:4px;border-bottom-right-radius:var(--mdc-shape-small, 4px);border-bottom-left-radius:0}[dir=rtl] .mdc-select--outlined .mdc-notched-outline .mdc-notched-outline__trailing,.mdc-select--outlined .mdc-notched-outline .mdc-notched-outline__trailing[dir=rtl]{border-top-left-radius:4px;border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:4px;border-bottom-left-radius:var(--mdc-shape-small, 4px)}@supports(top: max(0%)){.mdc-select--outlined .mdc-select__anchor{padding-left:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}[dir=rtl] .mdc-select--outlined .mdc-select__anchor,.mdc-select--outlined .mdc-select__anchor[dir=rtl]{padding-left:0}@supports(top: max(0%)){[dir=rtl] .mdc-select--outlined .mdc-select__anchor,.mdc-select--outlined .mdc-select__anchor[dir=rtl]{padding-right:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}@supports(top: max(0%)){.mdc-select--outlined+.mdc-select-helper-text{margin-left:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}[dir=rtl] .mdc-select--outlined+.mdc-select-helper-text,.mdc-select--outlined+.mdc-select-helper-text[dir=rtl]{margin-left:0}@supports(top: max(0%)){[dir=rtl] .mdc-select--outlined+.mdc-select-helper-text,.mdc-select--outlined+.mdc-select-helper-text[dir=rtl]{margin-right:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}.mdc-select--outlined:not(.mdc-select--disabled) .mdc-select__anchor{background-color:transparent}.mdc-select--outlined.mdc-select--disabled .mdc-select__anchor{background-color:transparent}.mdc-select--outlined:not(.mdc-select--disabled) .mdc-notched-outline__leading,.mdc-select--outlined:not(.mdc-select--disabled) .mdc-notched-outline__notch,.mdc-select--outlined:not(.mdc-select--disabled) .mdc-notched-outline__trailing{border-color:rgba(0, 0, 0, 0.38)}.mdc-select--outlined:not(.mdc-select--disabled):not(.mdc-select--focused) .mdc-select__anchor:hover .mdc-notched-outline .mdc-notched-outline__leading,.mdc-select--outlined:not(.mdc-select--disabled):not(.mdc-select--focused) .mdc-select__anchor:hover .mdc-notched-outline .mdc-notched-outline__notch,.mdc-select--outlined:not(.mdc-select--disabled):not(.mdc-select--focused) .mdc-select__anchor:hover .mdc-notched-outline .mdc-notched-outline__trailing{border-color:rgba(0, 0, 0, 0.87)}.mdc-select--outlined:not(.mdc-select--disabled).mdc-select--focused .mdc-notched-outline .mdc-notched-outline__leading,.mdc-select--outlined:not(.mdc-select--disabled).mdc-select--focused .mdc-notched-outline .mdc-notched-outline__notch,.mdc-select--outlined:not(.mdc-select--disabled).mdc-select--focused .mdc-notched-outline .mdc-notched-outline__trailing{border-width:2px}.mdc-select--outlined:not(.mdc-select--disabled).mdc-select--focused .mdc-notched-outline .mdc-notched-outline__leading,.mdc-select--outlined:not(.mdc-select--disabled).mdc-select--focused .mdc-notched-outline .mdc-notched-outline__notch,.mdc-select--outlined:not(.mdc-select--disabled).mdc-select--focused .mdc-notched-outline .mdc-notched-outline__trailing{border-color:#6200ee;border-color:var(--mdc-theme-primary, #6200ee)}.mdc-select--outlined.mdc-select--disabled .mdc-notched-outline__leading,.mdc-select--outlined.mdc-select--disabled .mdc-notched-outline__notch,.mdc-select--outlined.mdc-select--disabled .mdc-notched-outline__trailing{border-color:rgba(0, 0, 0, 0.06)}.mdc-select--outlined .mdc-select__anchor :not(.mdc-notched-outline--notched) .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mdc-select--outlined .mdc-select__anchor{display:flex;align-items:baseline;overflow:visible}.mdc-select--outlined .mdc-select__anchor .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-select-outlined 250ms 1}.mdc-select--outlined .mdc-select__anchor .mdc-floating-label--float-above{transform:translateY(-37.25px) scale(1)}.mdc-select--outlined .mdc-select__anchor .mdc-floating-label--float-above{font-size:.75rem}.mdc-select--outlined .mdc-select__anchor.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-select--outlined .mdc-select__anchor .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-34.75px) scale(0.75)}.mdc-select--outlined .mdc-select__anchor.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-select--outlined .mdc-select__anchor .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-select--outlined .mdc-select__anchor .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:1px}.mdc-select--outlined .mdc-select__anchor .mdc-select__selected-text::before{content:"​"}.mdc-select--outlined .mdc-select__anchor .mdc-select__selected-text-container{height:100%;display:inline-flex;align-items:center}.mdc-select--outlined .mdc-select__anchor::before{display:none}.mdc-select--outlined .mdc-select__selected-text-container{display:flex;border:none;z-index:1;background-color:transparent}.mdc-select--outlined .mdc-select__icon{z-index:2}.mdc-select--outlined .mdc-floating-label{line-height:1.15rem;left:4px;right:initial}[dir=rtl] .mdc-select--outlined .mdc-floating-label,.mdc-select--outlined .mdc-floating-label[dir=rtl]{left:initial;right:4px}.mdc-select--outlined.mdc-select--focused .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:2px}.mdc-select--outlined.mdc-select--invalid:not(.mdc-select--disabled) .mdc-notched-outline__leading,.mdc-select--outlined.mdc-select--invalid:not(.mdc-select--disabled) .mdc-notched-outline__notch,.mdc-select--outlined.mdc-select--invalid:not(.mdc-select--disabled) .mdc-notched-outline__trailing{border-color:#b00020;border-color:var(--mdc-theme-error, #b00020)}.mdc-select--outlined.mdc-select--invalid:not(.mdc-select--disabled):not(.mdc-select--focused) .mdc-select__anchor:hover .mdc-notched-outline .mdc-notched-outline__leading,.mdc-select--outlined.mdc-select--invalid:not(.mdc-select--disabled):not(.mdc-select--focused) .mdc-select__anchor:hover .mdc-notched-outline .mdc-notched-outline__notch,.mdc-select--outlined.mdc-select--invalid:not(.mdc-select--disabled):not(.mdc-select--focused) .mdc-select__anchor:hover .mdc-notched-outline .mdc-notched-outline__trailing{border-color:#b00020;border-color:var(--mdc-theme-error, #b00020)}.mdc-select--outlined.mdc-select--invalid:not(.mdc-select--disabled).mdc-select--focused .mdc-notched-outline .mdc-notched-outline__leading,.mdc-select--outlined.mdc-select--invalid:not(.mdc-select--disabled).mdc-select--focused .mdc-notched-outline .mdc-notched-outline__notch,.mdc-select--outlined.mdc-select--invalid:not(.mdc-select--disabled).mdc-select--focused .mdc-notched-outline .mdc-notched-outline__trailing{border-width:2px}.mdc-select--outlined.mdc-select--invalid:not(.mdc-select--disabled).mdc-select--focused .mdc-notched-outline .mdc-notched-outline__leading,.mdc-select--outlined.mdc-select--invalid:not(.mdc-select--disabled).mdc-select--focused .mdc-notched-outline .mdc-notched-outline__notch,.mdc-select--outlined.mdc-select--invalid:not(.mdc-select--disabled).mdc-select--focused .mdc-notched-outline .mdc-notched-outline__trailing{border-color:#b00020;border-color:var(--mdc-theme-error, #b00020)}.mdc-select--outlined.mdc-select--with-leading-icon .mdc-floating-label{left:36px;right:initial}[dir=rtl] .mdc-select--outlined.mdc-select--with-leading-icon .mdc-floating-label,.mdc-select--outlined.mdc-select--with-leading-icon .mdc-floating-label[dir=rtl]{left:initial;right:36px}.mdc-select--outlined.mdc-select--with-leading-icon .mdc-floating-label--float-above{transform:translateY(-37.25px) translateX(-32px) scale(1)}[dir=rtl] .mdc-select--outlined.mdc-select--with-leading-icon .mdc-floating-label--float-above,.mdc-select--outlined.mdc-select--with-leading-icon .mdc-floating-label--float-above[dir=rtl]{transform:translateY(-37.25px) translateX(32px) scale(1)}.mdc-select--outlined.mdc-select--with-leading-icon .mdc-floating-label--float-above{font-size:.75rem}.mdc-select--outlined.mdc-select--with-leading-icon.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-select--outlined.mdc-select--with-leading-icon .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-34.75px) translateX(-32px) scale(0.75)}[dir=rtl] .mdc-select--outlined.mdc-select--with-leading-icon.mdc-notched-outline--upgraded .mdc-floating-label--float-above,[dir=rtl] .mdc-select--outlined.mdc-select--with-leading-icon .mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-select--outlined.mdc-select--with-leading-icon.mdc-notched-outline--upgraded .mdc-floating-label--float-above[dir=rtl],.mdc-select--outlined.mdc-select--with-leading-icon .mdc-notched-outline--upgraded .mdc-floating-label--float-above[dir=rtl]{transform:translateY(-34.75px) translateX(32px) scale(0.75)}.mdc-select--outlined.mdc-select--with-leading-icon.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-select--outlined.mdc-select--with-leading-icon .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-select--outlined.mdc-select--with-leading-icon .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-select-outlined-leading-icon-56px 250ms 1}@keyframes mdc-floating-label-shake-float-above-select-outlined-leading-icon-56px{0%{transform:translateX(calc(0 - 32px)) translateY(-34.75px) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 32px)) translateY(-34.75px) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 32px)) translateY(-34.75px) scale(0.75)}100%{transform:translateX(calc(0 - 32px)) translateY(-34.75px) scale(0.75)}}[dir=rtl] .mdc-select--outlined.mdc-select--with-leading-icon .mdc-floating-label--shake,.mdc-select--outlined.mdc-select--with-leading-icon[dir=rtl] .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-select-outlined-leading-icon-56px 250ms 1}@keyframes mdc-floating-label-shake-float-above-select-outlined-leading-icon-56px-rtl{0%{transform:translateX(calc(0 - -32px)) translateY(-34.75px) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - -32px)) translateY(-34.75px) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - -32px)) translateY(-34.75px) scale(0.75)}100%{transform:translateX(calc(0 - -32px)) translateY(-34.75px) scale(0.75)}}.mdc-select--outlined.mdc-select--with-leading-icon .mdc-select__anchor :not(.mdc-notched-outline--notched) .mdc-notched-outline__notch{max-width:calc(100% - 96px)}.mdc-select--outlined .mdc-menu-surface{margin-bottom:8px}.mdc-select--outlined.mdc-select--no-label .mdc-menu-surface,.mdc-select--outlined .mdc-menu-surface--is-open-below{margin-bottom:0}.mdc-select__anchor{--mdc-ripple-fg-size: 0;--mdc-ripple-left: 0;--mdc-ripple-top: 0;--mdc-ripple-fg-scale: 1;--mdc-ripple-fg-translate-end: 0;--mdc-ripple-fg-translate-start: 0;-webkit-tap-highlight-color:rgba(0,0,0,0);will-change:transform,opacity}.mdc-select__anchor .mdc-select__ripple::before,.mdc-select__anchor .mdc-select__ripple::after{position:absolute;border-radius:50%;opacity:0;pointer-events:none;content:""}.mdc-select__anchor .mdc-select__ripple::before{transition:opacity 15ms linear,background-color 15ms linear;z-index:1;z-index:var(--mdc-ripple-z-index, 1)}.mdc-select__anchor .mdc-select__ripple::after{z-index:0;z-index:var(--mdc-ripple-z-index, 0)}.mdc-select__anchor.mdc-ripple-upgraded .mdc-select__ripple::before{transform:scale(var(--mdc-ripple-fg-scale, 1))}.mdc-select__anchor.mdc-ripple-upgraded .mdc-select__ripple::after{top:0;left:0;transform:scale(0);transform-origin:center center}.mdc-select__anchor.mdc-ripple-upgraded--unbounded .mdc-select__ripple::after{top:var(--mdc-ripple-top, 0);left:var(--mdc-ripple-left, 0)}.mdc-select__anchor.mdc-ripple-upgraded--foreground-activation .mdc-select__ripple::after{animation:mdc-ripple-fg-radius-in 225ms forwards,mdc-ripple-fg-opacity-in 75ms forwards}.mdc-select__anchor.mdc-ripple-upgraded--foreground-deactivation .mdc-select__ripple::after{animation:mdc-ripple-fg-opacity-out 150ms;transform:translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1))}.mdc-select__anchor .mdc-select__ripple::before,.mdc-select__anchor .mdc-select__ripple::after{top:calc(50% - 100%);left:calc(50% - 100%);width:200%;height:200%}.mdc-select__anchor.mdc-ripple-upgraded .mdc-select__ripple::after{width:var(--mdc-ripple-fg-size, 100%);height:var(--mdc-ripple-fg-size, 100%)}.mdc-select__anchor .mdc-select__ripple::before,.mdc-select__anchor .mdc-select__ripple::after{background-color:rgba(0, 0, 0, 0.87);background-color:var(--mdc-ripple-color, rgba(0, 0, 0, 0.87))}.mdc-select__anchor:hover .mdc-select__ripple::before,.mdc-select__anchor.mdc-ripple-surface--hover .mdc-select__ripple::before{opacity:0.04;opacity:var(--mdc-ripple-hover-opacity, 0.04)}.mdc-select__anchor.mdc-ripple-upgraded--background-focused .mdc-select__ripple::before,.mdc-select__anchor:not(.mdc-ripple-upgraded):focus .mdc-select__ripple::before{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-focus-opacity, 0.12)}.mdc-select__anchor .mdc-select__ripple{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none}.mdc-select__menu .mdc-deprecated-list .mdc-deprecated-list-item--selected .mdc-deprecated-list-item__ripple::before,.mdc-select__menu .mdc-deprecated-list .mdc-deprecated-list-item--selected .mdc-deprecated-list-item__ripple::after{background-color:#000;background-color:var(--mdc-ripple-color, var(--mdc-theme-on-surface, #000))}.mdc-select__menu .mdc-deprecated-list .mdc-deprecated-list-item--selected:hover .mdc-deprecated-list-item__ripple::before,.mdc-select__menu .mdc-deprecated-list .mdc-deprecated-list-item--selected.mdc-ripple-surface--hover .mdc-deprecated-list-item__ripple::before{opacity:0.04;opacity:var(--mdc-ripple-hover-opacity, 0.04)}.mdc-select__menu .mdc-deprecated-list .mdc-deprecated-list-item--selected.mdc-ripple-upgraded--background-focused .mdc-deprecated-list-item__ripple::before,.mdc-select__menu .mdc-deprecated-list .mdc-deprecated-list-item--selected:not(.mdc-ripple-upgraded):focus .mdc-deprecated-list-item__ripple::before{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-focus-opacity, 0.12)}.mdc-select__menu .mdc-deprecated-list .mdc-deprecated-list-item--selected:not(.mdc-ripple-upgraded) .mdc-deprecated-list-item__ripple::after{transition:opacity 150ms linear}.mdc-select__menu .mdc-deprecated-list .mdc-deprecated-list-item--selected:not(.mdc-ripple-upgraded):active .mdc-deprecated-list-item__ripple::after{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-select__menu .mdc-deprecated-list .mdc-deprecated-list-item--selected.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-select__menu .mdc-deprecated-list .mdc-deprecated-list-item--selected .mdc-list-item__ripple::before,.mdc-select__menu .mdc-deprecated-list .mdc-deprecated-list-item--selected .mdc-list-item__ripple::after{background-color:#000;background-color:var(--mdc-ripple-color, var(--mdc-theme-on-surface, #000))}.mdc-select__menu .mdc-deprecated-list .mdc-deprecated-list-item--selected:hover .mdc-list-item__ripple::before,.mdc-select__menu .mdc-deprecated-list .mdc-deprecated-list-item--selected.mdc-ripple-surface--hover .mdc-list-item__ripple::before{opacity:0.04;opacity:var(--mdc-ripple-hover-opacity, 0.04)}.mdc-select__menu .mdc-deprecated-list .mdc-deprecated-list-item--selected.mdc-ripple-upgraded--background-focused .mdc-list-item__ripple::before,.mdc-select__menu .mdc-deprecated-list .mdc-deprecated-list-item--selected:not(.mdc-ripple-upgraded):focus .mdc-list-item__ripple::before{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-focus-opacity, 0.12)}.mdc-select__menu .mdc-deprecated-list .mdc-deprecated-list-item--selected:not(.mdc-ripple-upgraded) .mdc-list-item__ripple::after{transition:opacity 150ms linear}.mdc-select__menu .mdc-deprecated-list .mdc-deprecated-list-item--selected:not(.mdc-ripple-upgraded):active .mdc-list-item__ripple::after{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-select__menu .mdc-deprecated-list .mdc-deprecated-list-item--selected.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-select-helper-text{margin:0;margin-left:16px;margin-right:16px;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-caption-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:0.75rem;font-size:var(--mdc-typography-caption-font-size, 0.75rem);line-height:1.25rem;line-height:var(--mdc-typography-caption-line-height, 1.25rem);font-weight:400;font-weight:var(--mdc-typography-caption-font-weight, 400);letter-spacing:0.0333333333em;letter-spacing:var(--mdc-typography-caption-letter-spacing, 0.0333333333em);text-decoration:inherit;text-decoration:var(--mdc-typography-caption-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-caption-text-transform, inherit);display:block;margin-top:0;line-height:normal}[dir=rtl] .mdc-select-helper-text,.mdc-select-helper-text[dir=rtl]{margin-left:16px;margin-right:16px}.mdc-select-helper-text::before{display:inline-block;width:0;height:16px;content:"";vertical-align:0}.mdc-select-helper-text--validation-msg{opacity:0;transition:opacity 180ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-select--invalid+.mdc-select-helper-text--validation-msg,.mdc-select-helper-text--validation-msg-persistent{opacity:1}.mdc-select--with-leading-icon .mdc-select__icon{display:inline-block;box-sizing:border-box;border:none;text-decoration:none;cursor:pointer;user-select:none;flex-shrink:0;align-self:center;background-color:transparent;fill:currentColor}.mdc-select--with-leading-icon .mdc-select__icon{margin-left:12px;margin-right:12px}[dir=rtl] .mdc-select--with-leading-icon .mdc-select__icon,.mdc-select--with-leading-icon .mdc-select__icon[dir=rtl]{margin-left:12px;margin-right:12px}.mdc-select__icon:not([tabindex]),.mdc-select__icon[tabindex="-1"]{cursor:default;pointer-events:none}.material-icons{font-family:var(--mdc-icon-font, "Material Icons");font-weight:normal;font-style:normal;font-size:var(--mdc-icon-size, 24px);line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale;font-feature-settings:"liga"}:host{display:inline-block;vertical-align:top;outline:none}.mdc-select{width:100%}[hidden]{display:none}.mdc-select__icon{z-index:2}.mdc-select--with-leading-icon{--mdc-list-item-graphic-margin: calc( 48px - var(--mdc-list-item-graphic-size, 24px) - var(--mdc-list-side-padding, 16px) )}.mdc-select .mdc-select__anchor .mdc-select__selected-text{overflow:hidden}.mdc-select .mdc-select__anchor *{display:inline-flex}.mdc-select .mdc-select__anchor .mdc-floating-label{display:inline-block}mwc-notched-outline{--mdc-notched-outline-border-color: var( --mdc-select-outlined-idle-border-color, rgba(0, 0, 0, 0.38) );--mdc-notched-outline-notch-offset: 1px}:host(:not([disabled]):hover) .mdc-select:not(.mdc-select--invalid):not(.mdc-select--focused) mwc-notched-outline{--mdc-notched-outline-border-color: var( --mdc-select-outlined-hover-border-color, rgba(0, 0, 0, 0.87) )}:host(:not([disabled])) .mdc-select:not(.mdc-select--disabled) .mdc-select__selected-text{color:rgba(0, 0, 0, 0.87);color:var(--mdc-select-ink-color, rgba(0, 0, 0, 0.87))}:host(:not([disabled])) .mdc-select:not(.mdc-select--disabled) .mdc-line-ripple::before{border-bottom-color:rgba(0, 0, 0, 0.42);border-bottom-color:var(--mdc-select-idle-line-color, rgba(0, 0, 0, 0.42))}:host(:not([disabled])) .mdc-select:not(.mdc-select--disabled):hover .mdc-line-ripple::before{border-bottom-color:rgba(0, 0, 0, 0.87);border-bottom-color:var(--mdc-select-hover-line-color, rgba(0, 0, 0, 0.87))}:host(:not([disabled])) .mdc-select:not(.mdc-select--outlined):not(.mdc-select--disabled) .mdc-select__anchor{background-color:whitesmoke;background-color:var(--mdc-select-fill-color, whitesmoke)}:host(:not([disabled])) .mdc-select.mdc-select--invalid .mdc-select__dropdown-icon{fill:var(--mdc-select-error-dropdown-icon-color, var(--mdc-select-error-color, var(--mdc-theme-error, #b00020)))}:host(:not([disabled])) .mdc-select.mdc-select--invalid .mdc-floating-label,:host(:not([disabled])) .mdc-select.mdc-select--invalid .mdc-floating-label::after{color:var(--mdc-select-error-color, var(--mdc-theme-error, #b00020))}:host(:not([disabled])) .mdc-select.mdc-select--invalid mwc-notched-outline{--mdc-notched-outline-border-color: var(--mdc-select-error-color, var(--mdc-theme-error, #b00020))}.mdc-select__menu--invalid{--mdc-theme-primary: var(--mdc-select-error-color, var(--mdc-theme-error, #b00020))}:host(:not([disabled])) .mdc-select:not(.mdc-select--invalid):not(.mdc-select--focused) .mdc-floating-label,:host(:not([disabled])) .mdc-select:not(.mdc-select--invalid):not(.mdc-select--focused) .mdc-floating-label::after{color:rgba(0, 0, 0, 0.6);color:var(--mdc-select-label-ink-color, rgba(0, 0, 0, 0.6))}:host(:not([disabled])) .mdc-select:not(.mdc-select--invalid):not(.mdc-select--focused) .mdc-select__dropdown-icon{fill:rgba(0, 0, 0, 0.54);fill:var(--mdc-select-dropdown-icon-color, rgba(0, 0, 0, 0.54))}:host(:not([disabled])) .mdc-select.mdc-select--focused mwc-notched-outline{--mdc-notched-outline-stroke-width: 2px;--mdc-notched-outline-notch-offset: 2px}:host(:not([disabled])) .mdc-select.mdc-select--focused:not(.mdc-select--invalid) mwc-notched-outline{--mdc-notched-outline-border-color: var( --mdc-select-focused-label-color, var(--mdc-theme-primary, rgba(98, 0, 238, 0.87)) )}:host(:not([disabled])) .mdc-select.mdc-select--focused:not(.mdc-select--invalid) .mdc-select__dropdown-icon{fill:rgba(98,0,238,.87);fill:var(--mdc-select-focused-dropdown-icon-color, var(--mdc-theme-primary, rgba(98, 0, 238, 0.87)))}:host(:not([disabled])) .mdc-select.mdc-select--focused:not(.mdc-select--invalid) .mdc-floating-label{color:#6200ee;color:var(--mdc-theme-primary, #6200ee)}:host(:not([disabled])) .mdc-select.mdc-select--focused:not(.mdc-select--invalid) .mdc-floating-label::after{color:#6200ee;color:var(--mdc-theme-primary, #6200ee)}:host(:not([disabled])) .mdc-select-helper-text:not(.mdc-select-helper-text--validation-msg){color:var(--mdc-select-label-ink-color, rgba(0, 0, 0, 0.6))}:host([disabled]){pointer-events:none}:host([disabled]) .mdc-select:not(.mdc-select--outlined).mdc-select--disabled .mdc-select__anchor{background-color:#fafafa;background-color:var(--mdc-select-disabled-fill-color, #fafafa)}:host([disabled]) .mdc-select.mdc-select--outlined mwc-notched-outline{--mdc-notched-outline-border-color: var( --mdc-select-outlined-disabled-border-color, rgba(0, 0, 0, 0.06) )}:host([disabled]) .mdc-select .mdc-select__dropdown-icon{fill:rgba(0, 0, 0, 0.38);fill:var(--mdc-select-disabled-dropdown-icon-color, rgba(0, 0, 0, 0.38))}:host([disabled]) .mdc-select:not(.mdc-select--invalid):not(.mdc-select--focused) .mdc-floating-label,:host([disabled]) .mdc-select:not(.mdc-select--invalid):not(.mdc-select--focused) .mdc-floating-label::after{color:rgba(0, 0, 0, 0.38);color:var(--mdc-select-disabled-ink-color, rgba(0, 0, 0, 0.38))}:host([disabled]) .mdc-select-helper-text{color:rgba(0, 0, 0, 0.38);color:var(--mdc-select-disabled-ink-color, rgba(0, 0, 0, 0.38))}:host([disabled]) .mdc-select__selected-text{color:rgba(0, 0, 0, 0.38);color:var(--mdc-select-disabled-ink-color, rgba(0, 0, 0, 0.38))}`
/**
 * @license
 * Copyright 2020 Google LLC
 * SPDX-License-Identifier: Apache-2.0
 */;let Jx=class extends Xx{};Jx.styles=[Yx],Jx=o([(e=>t=>"function"==typeof t?((e,t)=>(customElements.define(e,t),t))(e,t):((e,t)=>{const{kind:i,elements:o}=t;return{kind:i,elements:o,finisher(t){customElements.define(e,t)}}})(e,t))("mwc-select")],Jx);let Zx=class extends ke{constructor(){super(),this.tosEntryURL="/resources/documents/terms-of-service.en.html",this.tosEntry="terms-of-service",this.tosContent="",this.tosLanguage="en",this.tosLanguages=[{code:"ko",text:Ye("language.Korean")},{code:"en",text:Ye("language.English")}],this.title="",this.show=!1,this.approved=!1,this.block=!1,this.approveCheckbox=Object(),this.dialog=Object()}static get styles(){return[Be,Se,Te,Pe,Ie,A`
        @media screen and (max-width: 669px) {
          backend-ai-dialog.terms-of-service-dialog {
            --component-width: auto !important;
            --component-height: 80vh;
          }
        }

        @media screen and (min-width: 670px) {
          backend-ai-dialog.terms-of-service-dialog {
            --component-width: 650px !important;
            --component-height: 80vh;
          }
        }

        mwc-select {
          width: 135px;
          --mdc-list-side-padding: 25px;
          --mdc-list-item__primary-text: {
            height: 20px;
          };
        }

        #terms-of-service-dialog-content h1 {
          line-height: 1.2em;
        }
      `]}tos_contents(){return ae``}render(){return ae`
      <link rel="stylesheet" href="resources/custom.css" />
      <backend-ai-dialog
        id="terms-of-service-dialog"
        class="terms-of-service-dialog"
        fixed
        blockscrolling
        persistent
        scrollable
        @dialog-closed=${()=>this.close()}
      >
        <span slot="title">${this.title}</span>
        <div slot="action" class="horizontal end-justified center flex layout">
          ${this.tosLanguages?ae`
                <mwc-select
                  id="select-language"
                  label="${Ye("language.Language")}"
                  @change=${()=>this.changeLanguage()}
                >
                  ${this.tosLanguages.map((e=>ae`
                      <mwc-list-item
                        value="${e.text}"
                        ?selected="${this.tosLanguage===e.code}"
                      >
                        ${e.text}
                      </mwc-list-item>
                    `))}
                </mwc-select>
              `:ae``}
        </div>
        <div slot="content">
          <div id="terms-of-service-dialog-content"></div>
          <div class="horizontal end-justified flex layout">
            <div class="flex"></div>
            <mwc-button
              unelevated
              id="dismiss-button"
              label=${qt("button.Close")}
              @click="${()=>{this.close()}}"
            ></mwc-button>
          </div>
        </div>
      </backend-ai-dialog>
    `}firstUpdated(){var e;this.notification=globalThis.lablupNotification,this.dialog=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelector("#terms-of-service-dialog"),this.dialog.addEventListener("didShow",(()=>{this._syncOpenState()})),this.dialog.addEventListener("didHide",(()=>{this._syncOpenState()})),this.block&&(this.dialog.backdrop=!0),this.show&&this._showTOSdialog()}_syncOpenState(){this.show=this.dialog.open}async open(){await this.updateComplete,this._showTOSdialog()}close(){this.show=!1,this._hideTOSdialog()}changeLanguage(){var e;const t=(null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelector("#select-language")).value;this.tosContent="",this.tosLanguage=this.tosLanguages.filter((e=>e.text===t)).map((e=>e.code)).toString(),this._showTOSdialog(!0)}async sendRequest(e){let t,i;try{"GET"==e.method&&(e.body=void 0),t=await fetch(e.uri,e);const o=t.headers.get("Content-Type");if(i=o.startsWith("application/json")||o.startsWith("application/problem+json")?await t.json():o.startsWith("text/")?await t.text():await t.blob(),!t.ok)throw i}catch(e){console.log(e)}return i}_showTOSdialog(e=!1){if("default"===this.tosLanguage&&globalThis.backendaioptions.exists("current_language")&&(this.tosLanguage=globalThis.backendaioptions.get("current_language")),["ko","en"].includes(this.tosLanguage)||(this.tosLanguage="en"),this.tosEntryURL="/resources/documents/"+this.tosEntry+"."+this.tosLanguage+".html",""==this.tosContent){const t={method:"GET",uri:this.tosEntryURL,body:JSON.stringify({mode:"dialog"})};this.sendRequest(t).then((t=>{var i;this.tosContent=void 0!==t?t:"",(null===(i=this.shadowRoot)||void 0===i?void 0:i.querySelector("#terms-of-service-dialog-content")).innerHTML=this.tosContent,this.show=!0,!1===e&&this.dialog.show()})).catch((e=>{var t;console.log(e),e&&e.message&&(this.notification.text=ii.relieve(e.title),this.notification.detail=e.message,this.notification.show(!0,e)),(null===(t=this.shadowRoot)||void 0===t?void 0:t.querySelector("#terms-of-service-dialog-content")).innerHTML="Problem found while loading contents. Please try again later."}))}else this.show=!0,!1===e&&this.dialog.show()}_hideTOSdialog(){this.show=!1,this.dialog.hide()}_changeApproved(){return!0===this.approveCheckbox.checked?(this.show=!1,this.dialog.hide(),void(this.approved=!0)):void(this.approved=!1)}};o([Zt({type:String})],Zx.prototype,"tosEntryURL",void 0),o([Zt({type:String})],Zx.prototype,"tosEntry",void 0),o([Zt({type:String})],Zx.prototype,"tosContent",void 0),o([Zt({type:String})],Zx.prototype,"tosLanguage",void 0),o([Zt({type:Array})],Zx.prototype,"tosLanguages",void 0),o([Zt({type:String})],Zx.prototype,"title",void 0),o([Zt({type:Boolean})],Zx.prototype,"show",void 0),o([Zt({type:Boolean})],Zx.prototype,"approved",void 0),o([Zt({type:Boolean})],Zx.prototype,"block",void 0),o([Zt({type:Object})],Zx.prototype,"notification",void 0),o([Zt({type:Object})],Zx.prototype,"approveCheckbox",void 0),o([Zt({type:Object})],Zx.prototype,"dialog",void 0),Zx=o([Xt("lablup-terms-of-service")],Zx);
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */
const Qx=(e,t)=>"method"===t.kind&&t.descriptor&&!("value"in t.descriptor)?{...t,finisher(i){i.createProperty(t.key,e)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:t.key,initializer(){"function"==typeof t.initializer&&(this[t.key]=t.initializer.call(this))},finisher(i){i.createProperty(t.key,e)}},ew=(e,t,i)=>{t.constructor.createProperty(i,e)};
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */function tw(e){return(t,i)=>void 0!==i?ew(e,t,i):Qx(e,t)
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */}function iw(e){return tw({...e,state:!0})}
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */const ow=({finisher:e,descriptor:t})=>(i,o)=>{var s;if(void 0===o){const o=null!==(s=i.originalKey)&&void 0!==s?s:i.key,n=null!=t?{kind:"method",placement:"prototype",key:o,descriptor:t(i.key)}:{...i,key:o};return null!=e&&(n.finisher=function(t){e(t,o)}),n}{const s=i.constructor;void 0!==t&&Object.defineProperty(i,o,t(o)),null==e||e(s,o)}}
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */;
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */
function sw(e,t){return ow({descriptor:t=>{const i={get(){var t,i;return null!==(i=null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector(e))&&void 0!==i?i:null},enumerable:!0,configurable:!0};return i}})}
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */
/**
 * @license
 * Copyright 2021 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */
var nw;null===(nw=window.HTMLSlotElement)||void 0===nw||nw.prototype.assignedElements;
/**
 * @license
 * Copyright 2019 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */
const rw=window,aw=rw.ShadowRoot&&(void 0===rw.ShadyCSS||rw.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,lw=Symbol(),dw=new WeakMap;let cw=class{constructor(e,t,i){if(this._$cssResult$=!0,i!==lw)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o;const t=this.t;if(aw&&void 0===e){const i=void 0!==t&&1===t.length;i&&(e=dw.get(t)),void 0===e&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),i&&dw.set(t,e))}return e}toString(){return this.cssText}};const hw=aw?e=>e:e=>e instanceof CSSStyleSheet?(e=>{let t="";for(const i of e.cssRules)t+=i.cssText;return(e=>new cw("string"==typeof e?e:e+"",void 0,lw))(t)})(e):e
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */;var pw;const uw=window,mw=uw.trustedTypes,gw=mw?mw.emptyScript:"",fw=uw.reactiveElementPolyfillSupport,_w={toAttribute(e,t){switch(t){case Boolean:e=e?gw:null;break;case Object:case Array:e=null==e?e:JSON.stringify(e)}return e},fromAttribute(e,t){let i=e;switch(t){case Boolean:i=null!==e;break;case Number:i=null===e?null:Number(e);break;case Object:case Array:try{i=JSON.parse(e)}catch(e){i=null}}return i}},vw=(e,t)=>t!==e&&(t==t||e==e),bw={attribute:!0,type:String,converter:_w,reflect:!1,hasChanged:vw},yw="finalized";let xw=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this._$Eu()}static addInitializer(e){var t;this.finalize(),(null!==(t=this.h)&&void 0!==t?t:this.h=[]).push(e)}static get observedAttributes(){this.finalize();const e=[];return this.elementProperties.forEach(((t,i)=>{const o=this._$Ep(i,t);void 0!==o&&(this._$Ev.set(o,i),e.push(o))})),e}static createProperty(e,t=bw){if(t.state&&(t.attribute=!1),this.finalize(),this.elementProperties.set(e,t),!t.noAccessor&&!this.prototype.hasOwnProperty(e)){const i="symbol"==typeof e?Symbol():"__"+e,o=this.getPropertyDescriptor(e,i,t);void 0!==o&&Object.defineProperty(this.prototype,e,o)}}static getPropertyDescriptor(e,t,i){return{get(){return this[t]},set(o){const s=this[e];this[t]=o,this.requestUpdate(e,s,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)||bw}static finalize(){if(this.hasOwnProperty(yw))return!1;this[yw]=!0;const e=Object.getPrototypeOf(this);if(e.finalize(),void 0!==e.h&&(this.h=[...e.h]),this.elementProperties=new Map(e.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const e=this.properties,t=[...Object.getOwnPropertyNames(e),...Object.getOwnPropertySymbols(e)];for(const i of t)this.createProperty(i,e[i])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(e){const t=[];if(Array.isArray(e)){const i=new Set(e.flat(1/0).reverse());for(const e of i)t.unshift(hw(e))}else void 0!==e&&t.push(hw(e));return t}static _$Ep(e,t){const i=t.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof e?e.toLowerCase():void 0}_$Eu(){var e;this._$E_=new Promise((e=>this.enableUpdating=e)),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(e=this.constructor.h)||void 0===e||e.forEach((e=>e(this)))}addController(e){var t,i;(null!==(t=this._$ES)&&void 0!==t?t:this._$ES=[]).push(e),void 0!==this.renderRoot&&this.isConnected&&(null===(i=e.hostConnected)||void 0===i||i.call(e))}removeController(e){var t;null===(t=this._$ES)||void 0===t||t.splice(this._$ES.indexOf(e)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach(((e,t)=>{this.hasOwnProperty(t)&&(this._$Ei.set(t,this[t]),delete this[t])}))}createRenderRoot(){var e;const t=null!==(e=this.shadowRoot)&&void 0!==e?e:this.attachShadow(this.constructor.shadowRootOptions);return((e,t)=>{aw?e.adoptedStyleSheets=t.map((e=>e instanceof CSSStyleSheet?e:e.styleSheet)):t.forEach((t=>{const i=document.createElement("style"),o=rw.litNonce;void 0!==o&&i.setAttribute("nonce",o),i.textContent=t.cssText,e.appendChild(i)}))})(t,this.constructor.elementStyles),t}connectedCallback(){var e;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(e=this._$ES)||void 0===e||e.forEach((e=>{var t;return null===(t=e.hostConnected)||void 0===t?void 0:t.call(e)}))}enableUpdating(e){}disconnectedCallback(){var e;null===(e=this._$ES)||void 0===e||e.forEach((e=>{var t;return null===(t=e.hostDisconnected)||void 0===t?void 0:t.call(e)}))}attributeChangedCallback(e,t,i){this._$AK(e,i)}_$EO(e,t,i=bw){var o;const s=this.constructor._$Ep(e,i);if(void 0!==s&&!0===i.reflect){const n=(void 0!==(null===(o=i.converter)||void 0===o?void 0:o.toAttribute)?i.converter:_w).toAttribute(t,i.type);this._$El=e,null==n?this.removeAttribute(s):this.setAttribute(s,n),this._$El=null}}_$AK(e,t){var i;const o=this.constructor,s=o._$Ev.get(e);if(void 0!==s&&this._$El!==s){const e=o.getPropertyOptions(s),n="function"==typeof e.converter?{fromAttribute:e.converter}:void 0!==(null===(i=e.converter)||void 0===i?void 0:i.fromAttribute)?e.converter:_w;this._$El=s,this[s]=n.fromAttribute(t,e.type),this._$El=null}}requestUpdate(e,t,i){let o=!0;void 0!==e&&(((i=i||this.constructor.getPropertyOptions(e)).hasChanged||vw)(this[e],t)?(this._$AL.has(e)||this._$AL.set(e,t),!0===i.reflect&&this._$El!==e&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(e,i))):o=!1),!this.isUpdatePending&&o&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(e){Promise.reject(e)}const e=this.scheduleUpdate();return null!=e&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var e;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach(((e,t)=>this[t]=e)),this._$Ei=void 0);let t=!1;const i=this._$AL;try{t=this.shouldUpdate(i),t?(this.willUpdate(i),null===(e=this._$ES)||void 0===e||e.forEach((e=>{var t;return null===(t=e.hostUpdate)||void 0===t?void 0:t.call(e)})),this.update(i)):this._$Ek()}catch(e){throw t=!1,this._$Ek(),e}t&&this._$AE(i)}willUpdate(e){}_$AE(e){var t;null===(t=this._$ES)||void 0===t||t.forEach((e=>{var t;return null===(t=e.hostUpdated)||void 0===t?void 0:t.call(e)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(e){return!0}update(e){void 0!==this._$EC&&(this._$EC.forEach(((e,t)=>this._$EO(t,this[t],e))),this._$EC=void 0),this._$Ek()}updated(e){}firstUpdated(e){}};
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */
var ww;xw[yw]=!0,xw.elementProperties=new Map,xw.elementStyles=[],xw.shadowRootOptions={mode:"open"},null==fw||fw({ReactiveElement:xw}),(null!==(pw=uw.reactiveElementVersions)&&void 0!==pw?pw:uw.reactiveElementVersions=[]).push("1.6.3");const $w=window,Aw=$w.trustedTypes,kw=Aw?Aw.createPolicy("lit-html",{createHTML:e=>e}):void 0,Ew="$lit$",Sw=`lit$${(Math.random()+"").slice(9)}$`,Cw="?"+Sw,Tw=`<${Cw}>`,Pw=document,Iw=()=>Pw.createComment(""),Ow=e=>null===e||"object"!=typeof e&&"function"!=typeof e,Rw=Array.isArray,Nw="[ \t\n\f\r]",Lw=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Mw=/-->/g,Uw=/>/g,Hw=RegExp(`>|${Nw}(?:([^\\s"'>=/]+)(${Nw}*=${Nw}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),Dw=/'/g,zw=/"/g,Bw=/^(?:script|style|textarea|title)$/i,Fw=(e=>(t,...i)=>({_$litType$:e,strings:t,values:i}))(1),jw=Symbol.for("lit-noChange"),Vw=Symbol.for("lit-nothing"),qw=new WeakMap,Ww=Pw.createTreeWalker(Pw,129,null,!1);function Gw(e,t){if(!Array.isArray(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==kw?kw.createHTML(t):t}let Kw=class e{constructor({strings:t,_$litType$:i},o){let s;this.parts=[];let n=0,r=0;const a=t.length-1,l=this.parts,[d,c]=((e,t)=>{const i=e.length-1,o=[];let s,n=2===t?"<svg>":"",r=Lw;for(let t=0;t<i;t++){const i=e[t];let a,l,d=-1,c=0;for(;c<i.length&&(r.lastIndex=c,l=r.exec(i),null!==l);)c=r.lastIndex,r===Lw?"!--"===l[1]?r=Mw:void 0!==l[1]?r=Uw:void 0!==l[2]?(Bw.test(l[2])&&(s=RegExp("</"+l[2],"g")),r=Hw):void 0!==l[3]&&(r=Hw):r===Hw?">"===l[0]?(r=null!=s?s:Lw,d=-1):void 0===l[1]?d=-2:(d=r.lastIndex-l[2].length,a=l[1],r=void 0===l[3]?Hw:'"'===l[3]?zw:Dw):r===zw||r===Dw?r=Hw:r===Mw||r===Uw?r=Lw:(r=Hw,s=void 0);const h=r===Hw&&e[t+1].startsWith("/>")?" ":"";n+=r===Lw?i+Tw:d>=0?(o.push(a),i.slice(0,d)+Ew+i.slice(d)+Sw+h):i+Sw+(-2===d?(o.push(void 0),t):h)}return[Gw(e,n+(e[i]||"<?>")+(2===t?"</svg>":"")),o]})(t,i);if(this.el=e.createElement(d,o),Ww.currentNode=this.el.content,2===i){const e=this.el.content,t=e.firstChild;t.remove(),e.append(...t.childNodes)}for(;null!==(s=Ww.nextNode())&&l.length<a;){if(1===s.nodeType){if(s.hasAttributes()){const e=[];for(const t of s.getAttributeNames())if(t.endsWith(Ew)||t.startsWith(Sw)){const i=c[r++];if(e.push(t),void 0!==i){const e=s.getAttribute(i.toLowerCase()+Ew).split(Sw),t=/([.?@])?(.*)/.exec(i);l.push({type:1,index:n,name:t[2],strings:e,ctor:"."===t[1]?Qw:"?"===t[1]?t$:"@"===t[1]?i$:Zw})}else l.push({type:6,index:n})}for(const t of e)s.removeAttribute(t)}if(Bw.test(s.tagName)){const e=s.textContent.split(Sw),t=e.length-1;if(t>0){s.textContent=Aw?Aw.emptyScript:"";for(let i=0;i<t;i++)s.append(e[i],Iw()),Ww.nextNode(),l.push({type:2,index:++n});s.append(e[t],Iw())}}}else if(8===s.nodeType)if(s.data===Cw)l.push({type:2,index:n});else{let e=-1;for(;-1!==(e=s.data.indexOf(Sw,e+1));)l.push({type:7,index:n}),e+=Sw.length-1}n++}}static createElement(e,t){const i=Pw.createElement("template");return i.innerHTML=e,i}};function Xw(e,t,i=e,o){var s,n,r,a;if(t===jw)return t;let l=void 0!==o?null===(s=i._$Co)||void 0===s?void 0:s[o]:i._$Cl;const d=Ow(t)?void 0:t._$litDirective$;return(null==l?void 0:l.constructor)!==d&&(null===(n=null==l?void 0:l._$AO)||void 0===n||n.call(l,!1),void 0===d?l=void 0:(l=new d(e),l._$AT(e,i,o)),void 0!==o?(null!==(r=(a=i)._$Co)&&void 0!==r?r:a._$Co=[])[o]=l:i._$Cl=l),void 0!==l&&(t=Xw(e,l._$AS(e,t.values),l,o)),t}let Yw=class{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){var t;const{el:{content:i},parts:o}=this._$AD,s=(null!==(t=null==e?void 0:e.creationScope)&&void 0!==t?t:Pw).importNode(i,!0);Ww.currentNode=s;let n=Ww.nextNode(),r=0,a=0,l=o[0];for(;void 0!==l;){if(r===l.index){let t;2===l.type?t=new Jw(n,n.nextSibling,this,e):1===l.type?t=new l.ctor(n,l.name,l.strings,this,e):6===l.type&&(t=new o$(n,this,e)),this._$AV.push(t),l=o[++a]}r!==(null==l?void 0:l.index)&&(n=Ww.nextNode(),r++)}return Ww.currentNode=Pw,s}v(e){let t=0;for(const i of this._$AV)void 0!==i&&(void 0!==i.strings?(i._$AI(e,i,t),t+=i.strings.length-2):i._$AI(e[t])),t++}},Jw=class e{constructor(e,t,i,o){var s;this.type=2,this._$AH=Vw,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=i,this.options=o,this._$Cp=null===(s=null==o?void 0:o.isConnected)||void 0===s||s}get _$AU(){var e,t;return null!==(t=null===(e=this._$AM)||void 0===e?void 0:e._$AU)&&void 0!==t?t:this._$Cp}get parentNode(){let e=this._$AA.parentNode;const t=this._$AM;return void 0!==t&&11===(null==e?void 0:e.nodeType)&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=Xw(this,e,t),Ow(e)?e===Vw||null==e||""===e?(this._$AH!==Vw&&this._$AR(),this._$AH=Vw):e!==this._$AH&&e!==jw&&this._(e):void 0!==e._$litType$?this.g(e):void 0!==e.nodeType?this.$(e):(e=>Rw(e)||"function"==typeof(null==e?void 0:e[Symbol.iterator]))(e)?this.T(e):this._(e)}k(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}$(e){this._$AH!==e&&(this._$AR(),this._$AH=this.k(e))}_(e){this._$AH!==Vw&&Ow(this._$AH)?this._$AA.nextSibling.data=e:this.$(Pw.createTextNode(e)),this._$AH=e}g(e){var t;const{values:i,_$litType$:o}=e,s="number"==typeof o?this._$AC(e):(void 0===o.el&&(o.el=Kw.createElement(Gw(o.h,o.h[0]),this.options)),o);if((null===(t=this._$AH)||void 0===t?void 0:t._$AD)===s)this._$AH.v(i);else{const e=new Yw(s,this),t=e.u(this.options);e.v(i),this.$(t),this._$AH=e}}_$AC(e){let t=qw.get(e.strings);return void 0===t&&qw.set(e.strings,t=new Kw(e)),t}T(t){Rw(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let o,s=0;for(const n of t)s===i.length?i.push(o=new e(this.k(Iw()),this.k(Iw()),this,this.options)):o=i[s],o._$AI(n),s++;s<i.length&&(this._$AR(o&&o._$AB.nextSibling,s),i.length=s)}_$AR(e=this._$AA.nextSibling,t){var i;for(null===(i=this._$AP)||void 0===i||i.call(this,!1,!0,t);e&&e!==this._$AB;){const t=e.nextSibling;e.remove(),e=t}}setConnected(e){var t;void 0===this._$AM&&(this._$Cp=e,null===(t=this._$AP)||void 0===t||t.call(this,e))}},Zw=class{constructor(e,t,i,o,s){this.type=1,this._$AH=Vw,this._$AN=void 0,this.element=e,this.name=t,this._$AM=o,this.options=s,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=Vw}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(e,t=this,i,o){const s=this.strings;let n=!1;if(void 0===s)e=Xw(this,e,t,0),n=!Ow(e)||e!==this._$AH&&e!==jw,n&&(this._$AH=e);else{const o=e;let r,a;for(e=s[0],r=0;r<s.length-1;r++)a=Xw(this,o[i+r],t,r),a===jw&&(a=this._$AH[r]),n||(n=!Ow(a)||a!==this._$AH[r]),a===Vw?e=Vw:e!==Vw&&(e+=(null!=a?a:"")+s[r+1]),this._$AH[r]=a}n&&!o&&this.j(e)}j(e){e===Vw?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=e?e:"")}},Qw=class extends Zw{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===Vw?void 0:e}};const e$=Aw?Aw.emptyScript:"";let t$=class extends Zw{constructor(){super(...arguments),this.type=4}j(e){e&&e!==Vw?this.element.setAttribute(this.name,e$):this.element.removeAttribute(this.name)}},i$=class extends Zw{constructor(e,t,i,o,s){super(e,t,i,o,s),this.type=5}_$AI(e,t=this){var i;if((e=null!==(i=Xw(this,e,t,0))&&void 0!==i?i:Vw)===jw)return;const o=this._$AH,s=e===Vw&&o!==Vw||e.capture!==o.capture||e.once!==o.once||e.passive!==o.passive,n=e!==Vw&&(o===Vw||s);s&&this.element.removeEventListener(this.name,this,o),n&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var t,i;"function"==typeof this._$AH?this._$AH.call(null!==(i=null===(t=this.options)||void 0===t?void 0:t.host)&&void 0!==i?i:this.element,e):this._$AH.handleEvent(e)}},o$=class{constructor(e,t,i){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(e){Xw(this,e)}};const s$=$w.litHtmlPolyfillSupport;null==s$||s$(Kw,Jw),(null!==(ww=$w.litHtmlVersions)&&void 0!==ww?ww:$w.litHtmlVersions=[]).push("2.8.0");
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */
var n$,r$;let a$=class extends xw{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e,t;const i=super.createRenderRoot();return null!==(e=(t=this.renderOptions).renderBefore)&&void 0!==e||(t.renderBefore=i.firstChild),i}update(e){const t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=((e,t,i)=>{var o,s;const n=null!==(o=null==i?void 0:i.renderBefore)&&void 0!==o?o:t;let r=n._$litPart$;if(void 0===r){const e=null!==(s=null==i?void 0:i.renderBefore)&&void 0!==s?s:null;n._$litPart$=r=new Jw(t.insertBefore(Iw(),e),e,void 0,null!=i?i:{})}return r._$AI(e),r})(t,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),null===(e=this._$Do)||void 0===e||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),null===(e=this._$Do)||void 0===e||e.setConnected(!1)}render(){return jw}};a$.finalized=!0,a$._$litElement$=!0,null===(n$=globalThis.litElementHydrateSupport)||void 0===n$||n$.call(globalThis,{LitElement:a$});const l$=globalThis.litElementPolyfillSupport;null==l$||l$({LitElement:a$}),(null!==(r$=globalThis.litElementVersions)&&void 0!==r$?r$:globalThis.litElementVersions=[]).push("3.3.3");
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */
const d$=1;let c$=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,i){this._$Ct=e,this._$AM=t,this._$Ci=i}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}};
/**
 * @license
 * Copyright 2018 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */const h$=(e=>(...t)=>({_$litDirective$:e,values:t}))(class extends c${constructor(e){var t;if(super(e),e.type!==d$||"class"!==e.name||(null===(t=e.strings)||void 0===t?void 0:t.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(e){return" "+Object.keys(e).filter((t=>e[t])).join(" ")+" "}update(e,[t]){var i,o;if(void 0===this.it){this.it=new Set,void 0!==e.strings&&(this.nt=new Set(e.strings.join(" ").split(/\s/).filter((e=>""!==e))));for(const e in t)t[e]&&!(null===(i=this.nt)||void 0===i?void 0:i.has(e))&&this.it.add(e);return this.render(t)}const s=e.element.classList;this.it.forEach((e=>{e in t||(s.remove(e),this.it.delete(e))}));for(const e in t){const i=!!t[e];i===this.it.has(e)||(null===(o=this.nt)||void 0===o?void 0:o.has(e))||(i?(s.add(e),this.it.add(e)):(s.remove(e),this.it.delete(e)))}return jw}}),p$=e=>null!=e?e:Vw
/**
 * @license
 * Copyright 2019 Google LLC
 * SPDX-License-Identifier: Apache-2.0
 */;
/**
 * @license
 * Copyright 2018 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */class u$ extends Ay{constructor(){super(...arguments),this.checked=!1,this.indeterminate=!1,this.disabled=!1,this.name="",this.value="on",this.reducedTouchTarget=!1,this.animationClass="",this.shouldRenderRipple=!1,this.focused=!1,this.mdcFoundationClass=void 0,this.mdcFoundation=void 0,this.rippleElement=null,this.rippleHandlers=new ir((()=>(this.shouldRenderRipple=!0,this.ripple.then((e=>this.rippleElement=e)),this.ripple)))}createAdapter(){return{}}update(e){const t=e.get("indeterminate"),i=e.get("checked"),o=e.get("disabled");if(void 0!==t||void 0!==i||void 0!==o){const e=this.calculateAnimationStateName(!!i,!!t,!!o),s=this.calculateAnimationStateName(this.checked,this.indeterminate,this.disabled);this.animationClass=`${e}-${s}`}super.update(e)}calculateAnimationStateName(e,t,i){return i?"disabled":t?"indeterminate":e?"checked":"unchecked"}renderRipple(){return this.shouldRenderRipple?this.renderRippleTemplate():""}renderRippleTemplate(){return Fw`<mwc-ripple
        .disabled="${this.disabled}"
        unbounded></mwc-ripple>`}render(){const e=this.indeterminate||this.checked,t={"mdc-checkbox--disabled":this.disabled,"mdc-checkbox--selected":e,"mdc-checkbox--touch":!this.reducedTouchTarget,"mdc-ripple-upgraded--background-focused":this.focused,"mdc-checkbox--anim-checked-indeterminate":"checked-indeterminate"==this.animationClass,"mdc-checkbox--anim-checked-unchecked":"checked-unchecked"==this.animationClass,"mdc-checkbox--anim-indeterminate-checked":"indeterminate-checked"==this.animationClass,"mdc-checkbox--anim-indeterminate-unchecked":"indeterminate-unchecked"==this.animationClass,"mdc-checkbox--anim-unchecked-checked":"unchecked-checked"==this.animationClass,"mdc-checkbox--anim-unchecked-indeterminate":"unchecked-indeterminate"==this.animationClass},i=this.indeterminate?"mixed":void 0;return Fw`
      <div class="mdc-checkbox mdc-checkbox--upgraded ${h$(t)}">
        <input type="checkbox"
              class="mdc-checkbox__native-control"
              name="${p$(this.name)}"
              aria-checked="${p$(i)}"
              aria-label="${p$(this.ariaLabel)}"
              aria-labelledby="${p$(this.ariaLabelledBy)}"
              aria-describedby="${p$(this.ariaDescribedBy)}"
              data-indeterminate="${this.indeterminate?"true":"false"}"
              ?disabled="${this.disabled}"
              .indeterminate="${this.indeterminate}"
              .checked="${this.checked}"
              .value="${this.value}"
              @change="${this.handleChange}"
              @focus="${this.handleFocus}"
              @blur="${this.handleBlur}"
              @mousedown="${this.handleRippleMouseDown}"
              @mouseenter="${this.handleRippleMouseEnter}"
              @mouseleave="${this.handleRippleMouseLeave}"
              @touchstart="${this.handleRippleTouchStart}"
              @touchend="${this.handleRippleDeactivate}"
              @touchcancel="${this.handleRippleDeactivate}">
        <div class="mdc-checkbox__background"
          @animationend="${this.resetAnimationClass}">
          <svg class="mdc-checkbox__checkmark"
              viewBox="0 0 24 24">
            <path class="mdc-checkbox__checkmark-path"
                  fill="none"
                  d="M1.73,12.91 8.1,19.28 22.79,4.59"></path>
          </svg>
          <div class="mdc-checkbox__mixedmark"></div>
        </div>
        ${this.renderRipple()}
      </div>`}setFormData(e){this.name&&this.checked&&e.append(this.name,this.value)}handleFocus(){this.focused=!0,this.handleRippleFocus()}handleBlur(){this.focused=!1,this.handleRippleBlur()}handleRippleMouseDown(e){const t=()=>{window.removeEventListener("mouseup",t),this.handleRippleDeactivate()};window.addEventListener("mouseup",t),this.rippleHandlers.startPress(e)}handleRippleTouchStart(e){this.rippleHandlers.startPress(e)}handleRippleDeactivate(){this.rippleHandlers.endPress()}handleRippleMouseEnter(){this.rippleHandlers.startHover()}handleRippleMouseLeave(){this.rippleHandlers.endHover()}handleRippleFocus(){this.rippleHandlers.startFocus()}handleRippleBlur(){this.rippleHandlers.endFocus()}handleChange(){this.checked=this.formElement.checked,this.indeterminate=this.formElement.indeterminate}resetAnimationClass(){this.animationClass=""}get isRippleActive(){var e;return(null===(e=this.rippleElement)||void 0===e?void 0:e.isActive)||!1}}o([sw(".mdc-checkbox")],u$.prototype,"mdcRoot",void 0),o([sw("input")],u$.prototype,"formElement",void 0),o([tw({type:Boolean,reflect:!0})],u$.prototype,"checked",void 0),o([tw({type:Boolean})],u$.prototype,"indeterminate",void 0),o([tw({type:Boolean,reflect:!0})],u$.prototype,"disabled",void 0),o([tw({type:String,reflect:!0})],u$.prototype,"name",void 0),o([tw({type:String})],u$.prototype,"value",void 0),o([tr,tw({type:String,attribute:"aria-label"})],u$.prototype,"ariaLabel",void 0),o([tr,tw({type:String,attribute:"aria-labelledby"})],u$.prototype,"ariaLabelledBy",void 0),o([tr,tw({type:String,attribute:"aria-describedby"})],u$.prototype,"ariaDescribedBy",void 0),o([tw({type:Boolean})],u$.prototype,"reducedTouchTarget",void 0),o([iw()],u$.prototype,"animationClass",void 0),o([iw()],u$.prototype,"shouldRenderRipple",void 0),o([iw()],u$.prototype,"focused",void 0),o([function(e){return ow({descriptor:t=>({async get(){var t;return await this.updateComplete,null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector(e)},enumerable:!0,configurable:!0})})}("mwc-ripple")],u$.prototype,"ripple",void 0),o([function(e){return ow({finisher:(t,i)=>{Object.assign(t.prototype[i],e)}})}({passive:!0})],u$.prototype,"handleRippleTouchStart",null);
/**
 * @license
 * Copyright 2021 Google LLC
 * SPDX-LIcense-Identifier: Apache-2.0
 */
const m$=((e,...t)=>{const i=1===e.length?e[0]:t.reduce(((t,i,o)=>t+(e=>{if(!0===e._$cssResult$)return e.cssText;if("number"==typeof e)return e;throw Error("Value passed to 'css' function must be a 'css' function result: "+e+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+e[o+1]),e[0]);return new cw(i,e,lw)})`.mdc-checkbox{padding:calc((40px - 18px) / 2);padding:calc((var(--mdc-checkbox-ripple-size, 40px) - 18px) / 2);margin:calc((40px - 40px) / 2);margin:calc((var(--mdc-checkbox-touch-target-size, 40px) - 40px) / 2)}.mdc-checkbox .mdc-checkbox__ripple::before,.mdc-checkbox .mdc-checkbox__ripple::after{background-color:#000;background-color:var(--mdc-ripple-color, #000)}.mdc-checkbox:hover .mdc-checkbox__ripple::before,.mdc-checkbox.mdc-ripple-surface--hover .mdc-checkbox__ripple::before{opacity:0.04;opacity:var(--mdc-ripple-hover-opacity, 0.04)}.mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__ripple::before,.mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__ripple::before{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-focus-opacity, 0.12)}.mdc-checkbox:not(.mdc-ripple-upgraded) .mdc-checkbox__ripple::after{transition:opacity 150ms linear}.mdc-checkbox:not(.mdc-ripple-upgraded):active .mdc-checkbox__ripple::after{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-checkbox.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-checkbox.mdc-checkbox--selected .mdc-checkbox__ripple::before,.mdc-checkbox.mdc-checkbox--selected .mdc-checkbox__ripple::after{background-color:#018786;background-color:var(--mdc-ripple-color, var(--mdc-theme-secondary, #018786))}.mdc-checkbox.mdc-checkbox--selected:hover .mdc-checkbox__ripple::before,.mdc-checkbox.mdc-checkbox--selected.mdc-ripple-surface--hover .mdc-checkbox__ripple::before{opacity:0.04;opacity:var(--mdc-ripple-hover-opacity, 0.04)}.mdc-checkbox.mdc-checkbox--selected.mdc-ripple-upgraded--background-focused .mdc-checkbox__ripple::before,.mdc-checkbox.mdc-checkbox--selected:not(.mdc-ripple-upgraded):focus .mdc-checkbox__ripple::before{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-focus-opacity, 0.12)}.mdc-checkbox.mdc-checkbox--selected:not(.mdc-ripple-upgraded) .mdc-checkbox__ripple::after{transition:opacity 150ms linear}.mdc-checkbox.mdc-checkbox--selected:not(.mdc-ripple-upgraded):active .mdc-checkbox__ripple::after{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-checkbox.mdc-checkbox--selected.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-checkbox.mdc-ripple-upgraded--background-focused.mdc-checkbox--selected .mdc-checkbox__ripple::before,.mdc-checkbox.mdc-ripple-upgraded--background-focused.mdc-checkbox--selected .mdc-checkbox__ripple::after{background-color:#018786;background-color:var(--mdc-ripple-color, var(--mdc-theme-secondary, #018786))}.mdc-checkbox .mdc-checkbox__background{top:calc((40px - 18px) / 2);top:calc((var(--mdc-checkbox-ripple-size, 40px) - 18px) / 2);left:calc((40px - 18px) / 2);left:calc((var(--mdc-checkbox-ripple-size, 40px) - 18px) / 2)}.mdc-checkbox .mdc-checkbox__native-control{top:calc((40px - 40px) / 2);top:calc((40px - var(--mdc-checkbox-touch-target-size, 40px)) / 2);right:calc((40px - 40px) / 2);right:calc((40px - var(--mdc-checkbox-touch-target-size, 40px)) / 2);left:calc((40px - 40px) / 2);left:calc((40px - var(--mdc-checkbox-touch-target-size, 40px)) / 2);width:40px;width:var(--mdc-checkbox-touch-target-size, 40px);height:40px;height:var(--mdc-checkbox-touch-target-size, 40px)}.mdc-checkbox .mdc-checkbox__native-control:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:rgba(0, 0, 0, 0.54);border-color:var(--mdc-checkbox-unchecked-color, rgba(0, 0, 0, 0.54));background-color:transparent}.mdc-checkbox .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mdc-checkbox .mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background,.mdc-checkbox .mdc-checkbox__native-control[data-indeterminate=true]:enabled~.mdc-checkbox__background{border-color:#018786;border-color:var(--mdc-checkbox-checked-color, var(--mdc-theme-secondary, #018786));background-color:#018786;background-color:var(--mdc-checkbox-checked-color, var(--mdc-theme-secondary, #018786))}@keyframes mdc-checkbox-fade-in-background-8A000000FF01878600000000FF018786{0%{border-color:rgba(0, 0, 0, 0.54);border-color:var(--mdc-checkbox-unchecked-color, rgba(0, 0, 0, 0.54));background-color:transparent}50%{border-color:#018786;border-color:var(--mdc-checkbox-checked-color, var(--mdc-theme-secondary, #018786));background-color:#018786;background-color:var(--mdc-checkbox-checked-color, var(--mdc-theme-secondary, #018786))}}@keyframes mdc-checkbox-fade-out-background-8A000000FF01878600000000FF018786{0%,80%{border-color:#018786;border-color:var(--mdc-checkbox-checked-color, var(--mdc-theme-secondary, #018786));background-color:#018786;background-color:var(--mdc-checkbox-checked-color, var(--mdc-theme-secondary, #018786))}100%{border-color:rgba(0, 0, 0, 0.54);border-color:var(--mdc-checkbox-unchecked-color, rgba(0, 0, 0, 0.54));background-color:transparent}}.mdc-checkbox.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mdc-checkbox.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-in-background-8A000000FF01878600000000FF018786}.mdc-checkbox.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mdc-checkbox.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-out-background-8A000000FF01878600000000FF018786}.mdc-checkbox .mdc-checkbox__native-control[disabled]:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:rgba(0, 0, 0, 0.38);border-color:var(--mdc-checkbox-disabled-color, rgba(0, 0, 0, 0.38));background-color:transparent}.mdc-checkbox .mdc-checkbox__native-control[disabled]:checked~.mdc-checkbox__background,.mdc-checkbox .mdc-checkbox__native-control[disabled]:indeterminate~.mdc-checkbox__background,.mdc-checkbox .mdc-checkbox__native-control[data-indeterminate=true][disabled]~.mdc-checkbox__background{border-color:transparent;background-color:rgba(0, 0, 0, 0.38);background-color:var(--mdc-checkbox-disabled-color, rgba(0, 0, 0, 0.38))}.mdc-checkbox .mdc-checkbox__native-control:enabled~.mdc-checkbox__background .mdc-checkbox__checkmark{color:#fff;color:var(--mdc-checkbox-ink-color, #fff)}.mdc-checkbox .mdc-checkbox__native-control:enabled~.mdc-checkbox__background .mdc-checkbox__mixedmark{border-color:#fff;border-color:var(--mdc-checkbox-ink-color, #fff)}.mdc-checkbox .mdc-checkbox__native-control:disabled~.mdc-checkbox__background .mdc-checkbox__checkmark{color:#fff;color:var(--mdc-checkbox-ink-color, #fff)}.mdc-checkbox .mdc-checkbox__native-control:disabled~.mdc-checkbox__background .mdc-checkbox__mixedmark{border-color:#fff;border-color:var(--mdc-checkbox-ink-color, #fff)}.mdc-touch-target-wrapper{display:inline}@keyframes mdc-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:29.7833385}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 1)}100%{stroke-dashoffset:0}}@keyframes mdc-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mdc-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);opacity:1;stroke-dashoffset:0}to{opacity:0;stroke-dashoffset:-29.7833385}}@keyframes mdc-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 1);transform:rotate(0deg);opacity:1}to{transform:rotate(45deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);transform:rotate(45deg);opacity:0}to{transform:rotate(360deg);opacity:1}}@keyframes mdc-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:mdc-animation-deceleration-curve-timing-function;transform:rotate(-45deg);opacity:0}to{transform:rotate(0deg);opacity:1}}@keyframes mdc-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);transform:rotate(0deg);opacity:1}to{transform:rotate(315deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;transform:scaleX(1);opacity:1}32.8%,100%{transform:scaleX(0);opacity:0}}.mdc-checkbox{display:inline-block;position:relative;flex:0 0 18px;box-sizing:content-box;width:18px;height:18px;line-height:0;white-space:nowrap;cursor:pointer;vertical-align:bottom}.mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__focus-ring,.mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__focus-ring{pointer-events:none;border:2px solid transparent;border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:100%;width:100%}@media screen and (forced-colors: active){.mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__focus-ring,.mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__focus-ring{border-color:CanvasText}}.mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__focus-ring::after,.mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__focus-ring::after{content:"";border:2px solid transparent;border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__focus-ring::after,.mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__focus-ring::after{border-color:CanvasText}}@media all and (-ms-high-contrast: none){.mdc-checkbox .mdc-checkbox__focus-ring{display:none}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-checkbox__mixedmark{margin:0 1px}}.mdc-checkbox--disabled{cursor:default;pointer-events:none}.mdc-checkbox__background{display:inline-flex;position:absolute;align-items:center;justify-content:center;box-sizing:border-box;width:18px;height:18px;border:2px solid currentColor;border-radius:2px;background-color:transparent;pointer-events:none;will-change:background-color,border-color;transition:background-color 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1),border-color 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox__checkmark{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;opacity:0;transition:opacity 180ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox--upgraded .mdc-checkbox__checkmark{opacity:1}.mdc-checkbox__checkmark-path{transition:stroke-dashoffset 180ms 0ms cubic-bezier(0.4, 0, 0.6, 1);stroke:currentColor;stroke-width:3.12px;stroke-dashoffset:29.7833385;stroke-dasharray:29.7833385}.mdc-checkbox__mixedmark{width:100%;height:0;transform:scaleX(0) rotate(0deg);border-width:1px;border-style:solid;opacity:0;transition:opacity 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__background,.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__background,.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__background,.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__background{animation-duration:180ms;animation-timing-function:linear}.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-unchecked-checked-checkmark-path 180ms linear 0s;transition:none}.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-unchecked-indeterminate-mixedmark 90ms linear 0s;transition:none}.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-checked-unchecked-checkmark-path 90ms linear 0s;transition:none}.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__checkmark{animation:mdc-checkbox-checked-indeterminate-checkmark 90ms linear 0s;transition:none}.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-checked-indeterminate-mixedmark 90ms linear 0s;transition:none}.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__checkmark{animation:mdc-checkbox-indeterminate-checked-checkmark 500ms linear 0s;transition:none}.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-checked-mixedmark 500ms linear 0s;transition:none}.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-unchecked-mixedmark 300ms linear 0s;transition:none}.mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background{transition:border-color 90ms 0ms cubic-bezier(0, 0, 0.2, 1),background-color 90ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__checkmark-path,.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__checkmark-path,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background .mdc-checkbox__checkmark-path{stroke-dashoffset:0}.mdc-checkbox__native-control{position:absolute;margin:0;padding:0;opacity:0;cursor:inherit}.mdc-checkbox__native-control:disabled{cursor:default;pointer-events:none}.mdc-checkbox--touch{margin:calc((48px - 40px) / 2);margin:calc((var(--mdc-checkbox-state-layer-size, 48px) - var(--mdc-checkbox-state-layer-size, 40px)) / 2)}.mdc-checkbox--touch .mdc-checkbox__native-control{top:calc((40px - 48px) / 2);top:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 48px)) / 2);right:calc((40px - 48px) / 2);right:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 48px)) / 2);left:calc((40px - 48px) / 2);left:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 48px)) / 2);width:48px;width:var(--mdc-checkbox-state-layer-size, 48px);height:48px;height:var(--mdc-checkbox-state-layer-size, 48px)}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__checkmark{transition:opacity 180ms 0ms cubic-bezier(0, 0, 0.2, 1),transform 180ms 0ms cubic-bezier(0, 0, 0.2, 1);opacity:1}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__mixedmark{transform:scaleX(1) rotate(-45deg)}.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__checkmark,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background .mdc-checkbox__checkmark{transform:rotate(45deg);opacity:0;transition:opacity 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__mixedmark,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background .mdc-checkbox__mixedmark{transform:scaleX(1) rotate(0deg);opacity:1}.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__background,.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__checkmark,.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__checkmark-path,.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__mixedmark{transition:none}:host{outline:none;display:inline-flex;-webkit-tap-highlight-color:transparent}:host([checked]),:host([indeterminate]){--mdc-ripple-color:var(--mdc-theme-secondary, #018786)}.mdc-checkbox .mdc-checkbox__background::before{content:none}`
/**
 * @license
 * Copyright 2018 Google LLC
 * SPDX-License-Identifier: Apache-2.0
 */;let g$=class extends u${};g$.styles=[m$],g$=o([(e=>t=>"function"==typeof t?((e,t)=>(customElements.define(e,t),t))(e,t):((e,t)=>{const{kind:i,elements:o}=t;return{kind:i,elements:o,finisher(t){customElements.define(e,t)}}})(e,t))("mwc-checkbox")],g$);
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */
const f$=(e,t)=>"method"===t.kind&&t.descriptor&&!("value"in t.descriptor)?{...t,finisher(i){i.createProperty(t.key,e)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:t.key,initializer(){"function"==typeof t.initializer&&(this[t.key]=t.initializer.call(this))},finisher(i){i.createProperty(t.key,e)}},_$=(e,t,i)=>{t.constructor.createProperty(i,e)};
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */function v$(e){return(t,i)=>void 0!==i?_$(e,t,i):f$(e,t)
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */}
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */
const b$=({finisher:e,descriptor:t})=>(i,o)=>{var s;if(void 0===o){const o=null!==(s=i.originalKey)&&void 0!==s?s:i.key,n=null!=t?{kind:"method",placement:"prototype",key:o,descriptor:t(i.key)}:{...i,key:o};return null!=e&&(n.finisher=function(t){e(t,o)}),n}{const s=i.constructor;void 0!==t&&Object.defineProperty(i,o,t(o)),null==e||e(s,o)}}
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */;function y$(e){return b$({finisher:(t,i)=>{Object.assign(t.prototype[i],e)}})}
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */
/**
 * @license
 * Copyright 2021 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */
var x$;null===(x$=window.HTMLSlotElement)||void 0===x$||x$.prototype.assignedElements;
/**
 * @license
 * Copyright 2019 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */
const w$=window,$$=w$.ShadowRoot&&(void 0===w$.ShadyCSS||w$.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,A$=Symbol(),k$=new WeakMap;let E$=class{constructor(e,t,i){if(this._$cssResult$=!0,i!==A$)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o;const t=this.t;if($$&&void 0===e){const i=void 0!==t&&1===t.length;i&&(e=k$.get(t)),void 0===e&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),i&&k$.set(t,e))}return e}toString(){return this.cssText}};const S$=$$?e=>e:e=>e instanceof CSSStyleSheet?(e=>{let t="";for(const i of e.cssRules)t+=i.cssText;return(e=>new E$("string"==typeof e?e:e+"",void 0,A$))(t)})(e):e
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */;var C$;const T$=window,P$=T$.trustedTypes,I$=P$?P$.emptyScript:"",O$=T$.reactiveElementPolyfillSupport,R$={toAttribute(e,t){switch(t){case Boolean:e=e?I$:null;break;case Object:case Array:e=null==e?e:JSON.stringify(e)}return e},fromAttribute(e,t){let i=e;switch(t){case Boolean:i=null!==e;break;case Number:i=null===e?null:Number(e);break;case Object:case Array:try{i=JSON.parse(e)}catch(e){i=null}}return i}},N$=(e,t)=>t!==e&&(t==t||e==e),L$={attribute:!0,type:String,converter:R$,reflect:!1,hasChanged:N$},M$="finalized";let U$=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this._$Eu()}static addInitializer(e){var t;this.finalize(),(null!==(t=this.h)&&void 0!==t?t:this.h=[]).push(e)}static get observedAttributes(){this.finalize();const e=[];return this.elementProperties.forEach(((t,i)=>{const o=this._$Ep(i,t);void 0!==o&&(this._$Ev.set(o,i),e.push(o))})),e}static createProperty(e,t=L$){if(t.state&&(t.attribute=!1),this.finalize(),this.elementProperties.set(e,t),!t.noAccessor&&!this.prototype.hasOwnProperty(e)){const i="symbol"==typeof e?Symbol():"__"+e,o=this.getPropertyDescriptor(e,i,t);void 0!==o&&Object.defineProperty(this.prototype,e,o)}}static getPropertyDescriptor(e,t,i){return{get(){return this[t]},set(o){const s=this[e];this[t]=o,this.requestUpdate(e,s,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)||L$}static finalize(){if(this.hasOwnProperty(M$))return!1;this[M$]=!0;const e=Object.getPrototypeOf(this);if(e.finalize(),void 0!==e.h&&(this.h=[...e.h]),this.elementProperties=new Map(e.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const e=this.properties,t=[...Object.getOwnPropertyNames(e),...Object.getOwnPropertySymbols(e)];for(const i of t)this.createProperty(i,e[i])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(e){const t=[];if(Array.isArray(e)){const i=new Set(e.flat(1/0).reverse());for(const e of i)t.unshift(S$(e))}else void 0!==e&&t.push(S$(e));return t}static _$Ep(e,t){const i=t.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof e?e.toLowerCase():void 0}_$Eu(){var e;this._$E_=new Promise((e=>this.enableUpdating=e)),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(e=this.constructor.h)||void 0===e||e.forEach((e=>e(this)))}addController(e){var t,i;(null!==(t=this._$ES)&&void 0!==t?t:this._$ES=[]).push(e),void 0!==this.renderRoot&&this.isConnected&&(null===(i=e.hostConnected)||void 0===i||i.call(e))}removeController(e){var t;null===(t=this._$ES)||void 0===t||t.splice(this._$ES.indexOf(e)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach(((e,t)=>{this.hasOwnProperty(t)&&(this._$Ei.set(t,this[t]),delete this[t])}))}createRenderRoot(){var e;const t=null!==(e=this.shadowRoot)&&void 0!==e?e:this.attachShadow(this.constructor.shadowRootOptions);return((e,t)=>{$$?e.adoptedStyleSheets=t.map((e=>e instanceof CSSStyleSheet?e:e.styleSheet)):t.forEach((t=>{const i=document.createElement("style"),o=w$.litNonce;void 0!==o&&i.setAttribute("nonce",o),i.textContent=t.cssText,e.appendChild(i)}))})(t,this.constructor.elementStyles),t}connectedCallback(){var e;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(e=this._$ES)||void 0===e||e.forEach((e=>{var t;return null===(t=e.hostConnected)||void 0===t?void 0:t.call(e)}))}enableUpdating(e){}disconnectedCallback(){var e;null===(e=this._$ES)||void 0===e||e.forEach((e=>{var t;return null===(t=e.hostDisconnected)||void 0===t?void 0:t.call(e)}))}attributeChangedCallback(e,t,i){this._$AK(e,i)}_$EO(e,t,i=L$){var o;const s=this.constructor._$Ep(e,i);if(void 0!==s&&!0===i.reflect){const n=(void 0!==(null===(o=i.converter)||void 0===o?void 0:o.toAttribute)?i.converter:R$).toAttribute(t,i.type);this._$El=e,null==n?this.removeAttribute(s):this.setAttribute(s,n),this._$El=null}}_$AK(e,t){var i;const o=this.constructor,s=o._$Ev.get(e);if(void 0!==s&&this._$El!==s){const e=o.getPropertyOptions(s),n="function"==typeof e.converter?{fromAttribute:e.converter}:void 0!==(null===(i=e.converter)||void 0===i?void 0:i.fromAttribute)?e.converter:R$;this._$El=s,this[s]=n.fromAttribute(t,e.type),this._$El=null}}requestUpdate(e,t,i){let o=!0;void 0!==e&&(((i=i||this.constructor.getPropertyOptions(e)).hasChanged||N$)(this[e],t)?(this._$AL.has(e)||this._$AL.set(e,t),!0===i.reflect&&this._$El!==e&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(e,i))):o=!1),!this.isUpdatePending&&o&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(e){Promise.reject(e)}const e=this.scheduleUpdate();return null!=e&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var e;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach(((e,t)=>this[t]=e)),this._$Ei=void 0);let t=!1;const i=this._$AL;try{t=this.shouldUpdate(i),t?(this.willUpdate(i),null===(e=this._$ES)||void 0===e||e.forEach((e=>{var t;return null===(t=e.hostUpdate)||void 0===t?void 0:t.call(e)})),this.update(i)):this._$Ek()}catch(e){throw t=!1,this._$Ek(),e}t&&this._$AE(i)}willUpdate(e){}_$AE(e){var t;null===(t=this._$ES)||void 0===t||t.forEach((e=>{var t;return null===(t=e.hostUpdated)||void 0===t?void 0:t.call(e)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(e){return!0}update(e){void 0!==this._$EC&&(this._$EC.forEach(((e,t)=>this._$EO(t,this[t],e))),this._$EC=void 0),this._$Ek()}updated(e){}firstUpdated(e){}};
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */
var H$;U$[M$]=!0,U$.elementProperties=new Map,U$.elementStyles=[],U$.shadowRootOptions={mode:"open"},null==O$||O$({ReactiveElement:U$}),(null!==(C$=T$.reactiveElementVersions)&&void 0!==C$?C$:T$.reactiveElementVersions=[]).push("1.6.3");const D$=window,z$=D$.trustedTypes,B$=z$?z$.createPolicy("lit-html",{createHTML:e=>e}):void 0,F$="$lit$",j$=`lit$${(Math.random()+"").slice(9)}$`,V$="?"+j$,q$=`<${V$}>`,W$=document,G$=()=>W$.createComment(""),K$=e=>null===e||"object"!=typeof e&&"function"!=typeof e,X$=Array.isArray,Y$="[ \t\n\f\r]",J$=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Z$=/-->/g,Q$=/>/g,eA=RegExp(`>|${Y$}(?:([^\\s"'>=/]+)(${Y$}*=${Y$}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),tA=/'/g,iA=/"/g,oA=/^(?:script|style|textarea|title)$/i,sA=(e=>(t,...i)=>({_$litType$:e,strings:t,values:i}))(1),nA=Symbol.for("lit-noChange"),rA=Symbol.for("lit-nothing"),aA=new WeakMap,lA=W$.createTreeWalker(W$,129,null,!1);function dA(e,t){if(!Array.isArray(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==B$?B$.createHTML(t):t}let cA=class e{constructor({strings:t,_$litType$:i},o){let s;this.parts=[];let n=0,r=0;const a=t.length-1,l=this.parts,[d,c]=((e,t)=>{const i=e.length-1,o=[];let s,n=2===t?"<svg>":"",r=J$;for(let t=0;t<i;t++){const i=e[t];let a,l,d=-1,c=0;for(;c<i.length&&(r.lastIndex=c,l=r.exec(i),null!==l);)c=r.lastIndex,r===J$?"!--"===l[1]?r=Z$:void 0!==l[1]?r=Q$:void 0!==l[2]?(oA.test(l[2])&&(s=RegExp("</"+l[2],"g")),r=eA):void 0!==l[3]&&(r=eA):r===eA?">"===l[0]?(r=null!=s?s:J$,d=-1):void 0===l[1]?d=-2:(d=r.lastIndex-l[2].length,a=l[1],r=void 0===l[3]?eA:'"'===l[3]?iA:tA):r===iA||r===tA?r=eA:r===Z$||r===Q$?r=J$:(r=eA,s=void 0);const h=r===eA&&e[t+1].startsWith("/>")?" ":"";n+=r===J$?i+q$:d>=0?(o.push(a),i.slice(0,d)+F$+i.slice(d)+j$+h):i+j$+(-2===d?(o.push(void 0),t):h)}return[dA(e,n+(e[i]||"<?>")+(2===t?"</svg>":"")),o]})(t,i);if(this.el=e.createElement(d,o),lA.currentNode=this.el.content,2===i){const e=this.el.content,t=e.firstChild;t.remove(),e.append(...t.childNodes)}for(;null!==(s=lA.nextNode())&&l.length<a;){if(1===s.nodeType){if(s.hasAttributes()){const e=[];for(const t of s.getAttributeNames())if(t.endsWith(F$)||t.startsWith(j$)){const i=c[r++];if(e.push(t),void 0!==i){const e=s.getAttribute(i.toLowerCase()+F$).split(j$),t=/([.?@])?(.*)/.exec(i);l.push({type:1,index:n,name:t[2],strings:e,ctor:"."===t[1]?gA:"?"===t[1]?_A:"@"===t[1]?vA:mA})}else l.push({type:6,index:n})}for(const t of e)s.removeAttribute(t)}if(oA.test(s.tagName)){const e=s.textContent.split(j$),t=e.length-1;if(t>0){s.textContent=z$?z$.emptyScript:"";for(let i=0;i<t;i++)s.append(e[i],G$()),lA.nextNode(),l.push({type:2,index:++n});s.append(e[t],G$())}}}else if(8===s.nodeType)if(s.data===V$)l.push({type:2,index:n});else{let e=-1;for(;-1!==(e=s.data.indexOf(j$,e+1));)l.push({type:7,index:n}),e+=j$.length-1}n++}}static createElement(e,t){const i=W$.createElement("template");return i.innerHTML=e,i}};function hA(e,t,i=e,o){var s,n,r,a;if(t===nA)return t;let l=void 0!==o?null===(s=i._$Co)||void 0===s?void 0:s[o]:i._$Cl;const d=K$(t)?void 0:t._$litDirective$;return(null==l?void 0:l.constructor)!==d&&(null===(n=null==l?void 0:l._$AO)||void 0===n||n.call(l,!1),void 0===d?l=void 0:(l=new d(e),l._$AT(e,i,o)),void 0!==o?(null!==(r=(a=i)._$Co)&&void 0!==r?r:a._$Co=[])[o]=l:i._$Cl=l),void 0!==l&&(t=hA(e,l._$AS(e,t.values),l,o)),t}let pA=class{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){var t;const{el:{content:i},parts:o}=this._$AD,s=(null!==(t=null==e?void 0:e.creationScope)&&void 0!==t?t:W$).importNode(i,!0);lA.currentNode=s;let n=lA.nextNode(),r=0,a=0,l=o[0];for(;void 0!==l;){if(r===l.index){let t;2===l.type?t=new uA(n,n.nextSibling,this,e):1===l.type?t=new l.ctor(n,l.name,l.strings,this,e):6===l.type&&(t=new bA(n,this,e)),this._$AV.push(t),l=o[++a]}r!==(null==l?void 0:l.index)&&(n=lA.nextNode(),r++)}return lA.currentNode=W$,s}v(e){let t=0;for(const i of this._$AV)void 0!==i&&(void 0!==i.strings?(i._$AI(e,i,t),t+=i.strings.length-2):i._$AI(e[t])),t++}},uA=class e{constructor(e,t,i,o){var s;this.type=2,this._$AH=rA,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=i,this.options=o,this._$Cp=null===(s=null==o?void 0:o.isConnected)||void 0===s||s}get _$AU(){var e,t;return null!==(t=null===(e=this._$AM)||void 0===e?void 0:e._$AU)&&void 0!==t?t:this._$Cp}get parentNode(){let e=this._$AA.parentNode;const t=this._$AM;return void 0!==t&&11===(null==e?void 0:e.nodeType)&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=hA(this,e,t),K$(e)?e===rA||null==e||""===e?(this._$AH!==rA&&this._$AR(),this._$AH=rA):e!==this._$AH&&e!==nA&&this._(e):void 0!==e._$litType$?this.g(e):void 0!==e.nodeType?this.$(e):(e=>X$(e)||"function"==typeof(null==e?void 0:e[Symbol.iterator]))(e)?this.T(e):this._(e)}k(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}$(e){this._$AH!==e&&(this._$AR(),this._$AH=this.k(e))}_(e){this._$AH!==rA&&K$(this._$AH)?this._$AA.nextSibling.data=e:this.$(W$.createTextNode(e)),this._$AH=e}g(e){var t;const{values:i,_$litType$:o}=e,s="number"==typeof o?this._$AC(e):(void 0===o.el&&(o.el=cA.createElement(dA(o.h,o.h[0]),this.options)),o);if((null===(t=this._$AH)||void 0===t?void 0:t._$AD)===s)this._$AH.v(i);else{const e=new pA(s,this),t=e.u(this.options);e.v(i),this.$(t),this._$AH=e}}_$AC(e){let t=aA.get(e.strings);return void 0===t&&aA.set(e.strings,t=new cA(e)),t}T(t){X$(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let o,s=0;for(const n of t)s===i.length?i.push(o=new e(this.k(G$()),this.k(G$()),this,this.options)):o=i[s],o._$AI(n),s++;s<i.length&&(this._$AR(o&&o._$AB.nextSibling,s),i.length=s)}_$AR(e=this._$AA.nextSibling,t){var i;for(null===(i=this._$AP)||void 0===i||i.call(this,!1,!0,t);e&&e!==this._$AB;){const t=e.nextSibling;e.remove(),e=t}}setConnected(e){var t;void 0===this._$AM&&(this._$Cp=e,null===(t=this._$AP)||void 0===t||t.call(this,e))}},mA=class{constructor(e,t,i,o,s){this.type=1,this._$AH=rA,this._$AN=void 0,this.element=e,this.name=t,this._$AM=o,this.options=s,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=rA}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(e,t=this,i,o){const s=this.strings;let n=!1;if(void 0===s)e=hA(this,e,t,0),n=!K$(e)||e!==this._$AH&&e!==nA,n&&(this._$AH=e);else{const o=e;let r,a;for(e=s[0],r=0;r<s.length-1;r++)a=hA(this,o[i+r],t,r),a===nA&&(a=this._$AH[r]),n||(n=!K$(a)||a!==this._$AH[r]),a===rA?e=rA:e!==rA&&(e+=(null!=a?a:"")+s[r+1]),this._$AH[r]=a}n&&!o&&this.j(e)}j(e){e===rA?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=e?e:"")}},gA=class extends mA{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===rA?void 0:e}};const fA=z$?z$.emptyScript:"";let _A=class extends mA{constructor(){super(...arguments),this.type=4}j(e){e&&e!==rA?this.element.setAttribute(this.name,fA):this.element.removeAttribute(this.name)}},vA=class extends mA{constructor(e,t,i,o,s){super(e,t,i,o,s),this.type=5}_$AI(e,t=this){var i;if((e=null!==(i=hA(this,e,t,0))&&void 0!==i?i:rA)===nA)return;const o=this._$AH,s=e===rA&&o!==rA||e.capture!==o.capture||e.once!==o.once||e.passive!==o.passive,n=e!==rA&&(o===rA||s);s&&this.element.removeEventListener(this.name,this,o),n&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var t,i;"function"==typeof this._$AH?this._$AH.call(null!==(i=null===(t=this.options)||void 0===t?void 0:t.host)&&void 0!==i?i:this.element,e):this._$AH.handleEvent(e)}},bA=class{constructor(e,t,i){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(e){hA(this,e)}};const yA=D$.litHtmlPolyfillSupport;null==yA||yA(cA,uA),(null!==(H$=D$.litHtmlVersions)&&void 0!==H$?H$:D$.litHtmlVersions=[]).push("2.8.0");
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */
var xA,wA;let $A=class extends U${constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e,t;const i=super.createRenderRoot();return null!==(e=(t=this.renderOptions).renderBefore)&&void 0!==e||(t.renderBefore=i.firstChild),i}update(e){const t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=((e,t,i)=>{var o,s;const n=null!==(o=null==i?void 0:i.renderBefore)&&void 0!==o?o:t;let r=n._$litPart$;if(void 0===r){const e=null!==(s=null==i?void 0:i.renderBefore)&&void 0!==s?s:null;n._$litPart$=r=new uA(t.insertBefore(G$(),e),e,void 0,null!=i?i:{})}return r._$AI(e),r})(t,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),null===(e=this._$Do)||void 0===e||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),null===(e=this._$Do)||void 0===e||e.setConnected(!1)}render(){return nA}};$A.finalized=!0,$A._$litElement$=!0,null===(xA=globalThis.litElementHydrateSupport)||void 0===xA||xA.call(globalThis,{LitElement:$A});const AA=globalThis.litElementPolyfillSupport;null==AA||AA({LitElement:$A}),(null!==(wA=globalThis.litElementVersions)&&void 0!==wA?wA:globalThis.litElementVersions=[]).push("3.3.3");
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */
const kA=1;let EA=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,i){this._$Ct=e,this._$AM=t,this._$Ci=i}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}};
/**
 * @license
 * Copyright 2018 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */const SA=(e=>(...t)=>({_$litDirective$:e,values:t}))(class extends EA{constructor(e){var t;if(super(e),e.type!==kA||"class"!==e.name||(null===(t=e.strings)||void 0===t?void 0:t.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(e){return" "+Object.keys(e).filter((t=>e[t])).join(" ")+" "}update(e,[t]){var i,o;if(void 0===this.it){this.it=new Set,void 0!==e.strings&&(this.nt=new Set(e.strings.join(" ").split(/\s/).filter((e=>""!==e))));for(const e in t)t[e]&&!(null===(i=this.nt)||void 0===i?void 0:i.has(e))&&this.it.add(e);return this.render(t)}const s=e.element.classList;this.it.forEach((e=>{e in t||(s.remove(e),this.it.delete(e))}));for(const e in t){const i=!!t[e];i===this.it.has(e)||(null===(o=this.nt)||void 0===o?void 0:o.has(e))||(i?(s.add(e),this.it.add(e)):(s.remove(e),this.it.delete(e)))}return nA}}),CA=e=>null!=e?e:rA
/**
 * @license
 * Copyright 2019 Google LLC
 * SPDX-License-Identifier: Apache-2.0
 */;
/**
 * @license
 * Copyright 2018 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */class TA extends $A{constructor(){super(...arguments),this.disabled=!1,this.onIcon="",this.offIcon="",this.on=!1,this.shouldRenderRipple=!1,this.rippleHandlers=new ir((()=>(this.shouldRenderRipple=!0,this.ripple)))}handleClick(){this.on=!this.on,this.dispatchEvent(new CustomEvent("icon-button-toggle-change",{detail:{isOn:this.on},bubbles:!0}))}click(){this.mdcRoot.focus(),this.mdcRoot.click()}focus(){this.rippleHandlers.startFocus(),this.mdcRoot.focus()}blur(){this.rippleHandlers.endFocus(),this.mdcRoot.blur()}renderRipple(){return this.shouldRenderRipple?sA`
            <mwc-ripple
                .disabled="${this.disabled}"
                unbounded>
            </mwc-ripple>`:""}render(){const e={"mdc-icon-button--on":this.on},t=void 0!==this.ariaLabelOn&&void 0!==this.ariaLabelOff,i=t?void 0:this.on,o=t?this.on?this.ariaLabelOn:this.ariaLabelOff:this.ariaLabel;return sA`<button
          class="mdc-icon-button mdc-icon-button--display-flex ${SA(e)}"
          aria-pressed="${CA(i)}"
          aria-label="${CA(o)}"
          @click="${this.handleClick}"
          ?disabled="${this.disabled}"
          @focus="${this.handleRippleFocus}"
          @blur="${this.handleRippleBlur}"
          @mousedown="${this.handleRippleMouseDown}"
          @mouseenter="${this.handleRippleMouseEnter}"
          @mouseleave="${this.handleRippleMouseLeave}"
          @touchstart="${this.handleRippleTouchStart}"
          @touchend="${this.handleRippleDeactivate}"
          @touchcancel="${this.handleRippleDeactivate}"
        >${this.renderRipple()}
        <span class="mdc-icon-button__icon"
          ><slot name="offIcon"
            ><i class="material-icons">${this.offIcon}</i
          ></slot
        ></span>
        <span class="mdc-icon-button__icon mdc-icon-button__icon--on"
          ><slot name="onIcon"
            ><i class="material-icons">${this.onIcon}</i
          ></slot
        ></span>
      </button>`}handleRippleMouseDown(e){const t=()=>{window.removeEventListener("mouseup",t),this.handleRippleDeactivate()};window.addEventListener("mouseup",t),this.rippleHandlers.startPress(e)}handleRippleTouchStart(e){this.rippleHandlers.startPress(e)}handleRippleDeactivate(){this.rippleHandlers.endPress()}handleRippleMouseEnter(){this.rippleHandlers.startHover()}handleRippleMouseLeave(){this.rippleHandlers.endHover()}handleRippleFocus(){this.rippleHandlers.startFocus()}handleRippleBlur(){this.rippleHandlers.endFocus()}}o([function(e,t){return b$({descriptor:t=>{const i={get(){var t,i;return null!==(i=null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector(e))&&void 0!==i?i:null},enumerable:!0,configurable:!0};return i}})}
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */(".mdc-icon-button")],TA.prototype,"mdcRoot",void 0),o([tr,v$({type:String,attribute:"aria-label"})],TA.prototype,"ariaLabel",void 0),o([v$({type:Boolean,reflect:!0})],TA.prototype,"disabled",void 0),o([v$({type:String})],TA.prototype,"onIcon",void 0),o([v$({type:String})],TA.prototype,"offIcon",void 0),o([v$({type:String})],TA.prototype,"ariaLabelOn",void 0),o([v$({type:String})],TA.prototype,"ariaLabelOff",void 0),o([v$({type:Boolean,reflect:!0})],TA.prototype,"on",void 0),o([function(e){return b$({descriptor:t=>({async get(){var t;return await this.updateComplete,null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector(e)},enumerable:!0,configurable:!0})})}("mwc-ripple")],TA.prototype,"ripple",void 0),o([function(e){return v$({...e,state:!0})}()],TA.prototype,"shouldRenderRipple",void 0),o([y$({passive:!0})],TA.prototype,"handleRippleMouseDown",null),o([y$({passive:!0})],TA.prototype,"handleRippleTouchStart",null);
/**
 * @license
 * Copyright 2019 Google LLC
 * SPDX-License-Identifier: Apache-2.0
 */
let PA=class extends TA{};PA.styles=[wl],PA=o([(e=>t=>"function"==typeof t?((e,t)=>(customElements.define(e,t),t))(e,t):((e,t)=>{const{kind:i,elements:o}=t;return{kind:i,elements:o,finisher(t){customElements.define(e,t)}}})(e,t))("mwc-icon-button-toggle")],PA);let IA=class extends ti{constructor(){super(...arguments),this.company_name="",this.company_id="",this.user_name="",this.user_email="",this.errorMsg="",this.endpoint="",this.notification=Object(),this.TOSlanguage="en",this.signupButtonMessage=ae`
    <span id="signup-button-message">${Ye("signup.Signup")}</span>
  `}static get styles(){return[Be,Se,Te,Pe,Ie,A`
        fieldset input {
          width: 100%;
          border: 0;
          border-bottom: 1px solid #aaa;
          margin: 15px 0;
          font: inherit;
          font-size: 16px;
          outline: none;
        }

        fieldset input:focus {
          border-bottom: 1.5px solid #0d47a1;
        }

        #signup-panel {
          --dialog-width: 400px;
          --dialog-elevation: 0px 0px 5px 5px rgba(0, 0, 0, 0.1);
        }

        mwc-textfield {
          width: 100%;
          --mdc-text-field-fill-color: transparent;
          --mdc-theme-primary: var(--general-textfield-selected-color);
          --mdc-typography-font-family: var(--token-fontFamily);
        }

        mwc-textfield#id_user_name {
          margin-bottom: 18px;
        }

        mwc-button.full {
          width: 70%;
        }

        mwc-button {
          background-image: none;
          --mdc-theme-primary: var(--general-button-background-color);
          --mdc-theme-on-primary: var(--general-button-color);
        }

        mwc-button[unelevated] {
          background-image: none;
          --mdc-theme-primary: var(--general-button-background-color);
        }

        mwc-button[outlined] {
          background-image: none;
          --mdc-button-outline-width: 2px;
          --mdc-button-disabled-outline-color: var(
            --general-button-background-color
          );
          --mdc-button-disabled-ink-color: var(
            --general-button-background-color
          );
          --mdc-theme-primary: var(--general-button-background-color);
          --mdc-theme-on-primary: var(--general-button-color);
        }

        mwc-checkbox {
          --mdc-theme-secondary: var(--general-checkbox-color);
        }
      `]}firstUpdated(){var e;this.notification=globalThis.lablupNotification;const t=Array.from(null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll("mwc-textfield"));for(const e of t)this._addInputValidator(e)}async _viewStateChanged(e){await this.updateComplete,!1!==e&&(void 0!==globalThis.backendaiclient&&null!==globalThis.backendaiclient&&!1!==globalThis.backendaiclient.ready||document.addEventListener("backend-ai-connected",(()=>!0),!0))}receiveTOSAgreement(){!1===this.TOSdialog.show&&(this.TOSdialog.tosContent="",this.TOSdialog.tosLanguage=globalThis.backendaioptions.get("language"),this.TOSdialog.title=qt("webui.menu.TermsOfService"),this.TOSdialog.tosEntry="terms-of-service",this.TOSdialog.open())}receivePPAgreement(){!1===this.TOSdialog.show&&(this.TOSdialog.tosContent="",this.TOSdialog.tosLanguage=globalThis.backendaioptions.get("language"),this.TOSdialog.title=qt("webui.menu.PrivacyPolicy"),this.TOSdialog.tosEntry="privacy-policy",this.TOSdialog.open())}async open(e){await this.updateComplete,this.preloadedToken=e,!0!==this.signupPanel.open&&(this._clearUserInput(),this.signupPanel.show())}close(){!0===this.signupPanel.open&&this.signupPanel.hide()}init_client(){if(void 0===this.client&&""!==this.endpoint){const e=new xm("","",this.endpoint,"SESSION");this.client=new wm(e,"Backend.AI WebUI.")}}block(e=""){this.errorMsg=e,this.blockPanel.show()}_validate_data(e){return null!=e&&null!=e&&""!=e}_clear_info(){this.company_name="",this.user_name=""}_clearUserInput(){this._toggleInputField(!0);let e=[this.userEmailInput,this.userNameInput,this.tokenInput,this.passwordInput,this.passwordConfirmInput];this.allowSignupWithoutConfirmation&&(e=e.filter((e=>e!==this.tokenInput))),e.forEach((e=>{e.value=""})),void 0!==this.preloadedToken&&(this.tokenInput.value=this.preloadedToken),this.signupButtonMessage=ae`
      <span id="signup-button-message">${Ye("signup.Signup")}</span>
    `}_toggleInputField(e){let t=[this.userEmailInput,this.userNameInput,this.tokenInput,this.passwordInput,this.passwordConfirmInput,this.signupButton];this.allowSignupWithoutConfirmation&&(t=t.filter((e=>e!==this.tokenInput))),t.forEach((t=>{e?t.removeAttribute("disabled"):t.setAttribute("disabled","true")}))}_signup(){var e;let t=[this.userEmailInput,this.tokenInput,this.passwordInput,this.passwordConfirmInput];this.allowSignupWithoutConfirmation&&(t=t.filter((e=>e!==this.tokenInput)));const i=t.map((e=>(e.reportValidity(),e.checkValidity())));if(!1===(null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelector("#approve-terms-of-service")).checked)return this.notification.text=Ye("signup.RequestAgreementTermsOfService"),void this.notification.show();if(i.includes(!1))return;const o=this.userEmailInput.value,s=this.userNameInput.value,n=this.passwordInput.value;this.notification.text=Ye("signup.Processing"),this.notification.show();const r={email:o,user_name:s,password:n};this.allowSignupWithoutConfirmation||(r.token=this.tokenInput.value),this.init_client();const a=this.client.newSignedRequest("POST","/auth/signup",r);this.client._wrapWithPromise(a).then((e=>{this._toggleInputField(!1),this.signupButtonMessage=ae`
          <span id="signup-button-message">
            ${Ye("signup.SignupSucceeded")}
          </span>
        `,this.notification.text=Ye("signup.SignupSucceeded"),this.notification.show(),setTimeout((()=>{this.signupPanel.hide(),this._clearUserInput(),this.allowSignupWithoutConfirmation||this.emailSentDialog.show()}),1e3)})).catch((e=>{e.message&&(this.notification.text=ii.relieve(e.message),this.notification.show(!0,e)),console.log(e)}))}_politeErrorMessage(e){const t={"Cannot read property 'map' of null":"User has no group. Please contact administrator to fix it.","Cannot read property 'split' of undefined":"Wrong API server address."};return console.log(e),e in t?t[e]:e}_togglePasswordVisibility(e){const t=e.__on,i=e.closest("div").querySelector("mwc-textfield");t?i.setAttribute("type","text"):i.setAttribute("type","password")}_validateEmail(){this.userEmailInput.validityTransform=(e,t)=>{if(t.valid){const e=/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.exec(this.userEmailInput.value);return e||(this.userEmailInput.validationMessage=Ye("signup.InvalidEmail")),{valid:!!e,customError:!e}}return t.valueMissing?(this.userEmailInput.validationMessage=Ye("signup.EmailInputRequired"),{valid:t.valid,customError:!t.valid}):(this.userEmailInput.validationMessage=Ye("signup.InvalidEmail"),{valid:t.valid,customError:!t.valid})}}_validatePassword1(){this.passwordConfirmInput.reportValidity(),this.passwordInput.validityTransform=(e,t)=>t.valid?{valid:t.valid,customError:!t.valid}:t.valueMissing?(this.passwordInput.validationMessage=Ye("signup.PasswordInputRequired"),{valid:t.valid,customError:!t.valid}):(this.passwordInput.validationMessage=Ye("signup.PasswordInvalid"),{valid:t.valid,customError:!t.valid})}_validatePassword2(){this.passwordConfirmInput.validityTransform=(e,t)=>{if(t.valid){const e=this.passwordInput.value===this.passwordConfirmInput.value;return e||(this.passwordConfirmInput.validationMessage=Ye("signup.PasswordNotMatched")),{valid:e,customError:!e}}return t.valueMissing?(this.passwordConfirmInput.validationMessage=Ye("signup.PasswordInputRequired"),{valid:t.valid,customError:!t.valid}):(this.passwordConfirmInput.validationMessage=Ye("signup.PasswordInvalid"),{valid:t.valid,customError:!t.valid})}}_validatePassword(){this._validatePassword1(),this._validatePassword2()}render(){return ae`
      <backend-ai-dialog
        id="signup-panel"
        fixed
        blockscrolling
        persistent
        disablefocustrap
      >
        <span slot="title">
          ${this.allowSignupWithoutConfirmation?ae`
                ${qt("signup.Signup")}
              `:ae`
                ${qt("signup.SignupBETA")}
              `}
        </span>
        <div slot="content" class="vertical flex layout">
          <mwc-textfield
            type="email"
            name="user_email"
            id="id_user_email"
            autofocus
            maxlength="64"
            placeholder="${Ye("maxLength.64chars")}"
            label="${qt("signup.E-mail")}"
            validateOnInitialRender
            @change="${this._validateEmail}"
            validationMessage="${qt("signup.EmailInputRequired")}"
            value="${this.user_email}"
            required
          ></mwc-textfield>
          <mwc-textfield
            type="text"
            name="user_name"
            id="id_user_name"
            maxlength="64"
            placeholder="${Ye("maxLength.64chars")}"
            label="${qt("signup.UserName")}"
            value="${this.user_name}"
          ></mwc-textfield>
          ${this.allowSignupWithoutConfirmation?ae``:ae`
                <mwc-textfield
                  type="text"
                  name="token"
                  id="id_token"
                  maxlength="50"
                  label="${qt("signup.InvitationToken")}"
                  validationMessage="${qt("signup.TokenInputRequired")}"
                  required
                ></mwc-textfield>
              `}
          <div class="horizontal flex layout">
            <mwc-textfield
              type="password"
              name="password1"
              id="id_password1"
              label="${qt("signup.Password")}"
              maxLength="64"
              pattern=${Sl.passwordRegex}
              validationMessage="${qt("signup.PasswordInputRequired")}"
              @change="${this._validatePassword}"
              value=""
              required
            ></mwc-textfield>
            <mwc-icon-button-toggle
              off
              onIcon="visibility"
              offIcon="visibility_off"
              @click="${e=>this._togglePasswordVisibility(e.target)}"
            ></mwc-icon-button-toggle>
          </div>
          <div class="horizontal flex layout">
            <mwc-textfield
              type="password"
              name="password2"
              id="id_password2"
              label="${qt("signup.PasswordAgain")}"
              maxLength="64"
              pattern=${Sl.passwordRegex}
              validationMessage="${qt("signup.PasswordInputRequired")}"
              @change="${this._validatePassword}"
              value=""
              required
            ></mwc-textfield>
            <mwc-icon-button-toggle
              off
              onIcon="visibility"
              offIcon="visibility_off"
              @click="${e=>this._togglePasswordVisibility(e.target)}"
            ></mwc-icon-button-toggle>
          </div>
          <div
            style="margin-top:10px;"
            class="horizontal layout center center-justified"
          >
            <mwc-checkbox id="approve-terms-of-service"></mwc-checkbox>
            <p style="font-size:12px;">
              ${Ye("signup.PolicyAgreement_1")}
              <a
                style="color:var(--token-colorPrimary);"
                @click="${()=>this.receiveTOSAgreement()}"
              >
                ${qt("signup.TermsOfService")}
              </a>
              ${Ye("signup.PolicyAgreement_2")}
              <a
                style="color:var(--token-colorPrimary);"
                @click="${()=>this.receivePPAgreement()}"
              >
                ${qt("signup.PrivacyPolicy")}
              </a>
              ${Ye("signup.PolicyAgreement_3")}
            </p>
          </div>
        </div>
        <div slot="footer" class="horizontal center-justified flex layout">
          <mwc-button
            id="signup-button"
            raised
            class="full"
            icon="check"
            @click="${()=>this._signup()}"
          >
            ${this.signupButtonMessage}
          </mwc-button>
        </div>
      </backend-ai-dialog>
      <backend-ai-dialog
        id="block-panel"
        fixed
        type="error"
        backdrop
        blockscrolling
        persistent
      >
        <span slot="title">${qt("dialog.error.Error")}</span>
        <div slot="content" style="text-align:center;">${this.errorMsg}</div>
      </backend-ai-dialog>
      <backend-ai-dialog
        id="email-sent-dialog"
        noclosebutton
        fixed
        backdrop
        blockscrolling
        persistent
      >
        <span slot="title">${qt("signup.ThankYou")}</span>
        <div slot="content">
          <p style="max-width:350px">${qt("signup.VerificationMessage")}</p>
        </div>
        <div slot="footer" class="horizontal end-justified flex layout">
          <mwc-button
            unelevated
            label="${qt("button.Okay")}"
            @click="${e=>e.target.closest("backend-ai-dialog").hide()}"
          ></mwc-button>
        </div>
      </backend-ai-dialog>
      <lablup-terms-of-service id="terms-of-service"></lablup-terms-of-service>
    `}};o([Zt({type:String})],IA.prototype,"company_name",void 0),o([Zt({type:String})],IA.prototype,"company_id",void 0),o([Zt({type:String})],IA.prototype,"user_name",void 0),o([Zt({type:String})],IA.prototype,"user_email",void 0),o([Zt({type:String})],IA.prototype,"errorMsg",void 0),o([Zt({type:String})],IA.prototype,"endpoint",void 0),o([Zt({type:Object})],IA.prototype,"notification",void 0),o([Zt({type:Object})],IA.prototype,"client",void 0),o([Zt({type:String})],IA.prototype,"TOSlanguage",void 0),o([Zt({type:String})],IA.prototype,"preloadedToken",void 0),o([Zt({type:Boolean})],IA.prototype,"allowSignupWithoutConfirmation",void 0),o([Zt({type:HTMLSpanElement})],IA.prototype,"signupButtonMessage",void 0),o([ei("#signup-button")],IA.prototype,"signupButton",void 0),o([ei("#id_user_email")],IA.prototype,"userEmailInput",void 0),o([ei("#id_user_name")],IA.prototype,"userNameInput",void 0),o([ei("#id_token")],IA.prototype,"tokenInput",void 0),o([ei("#id_password1")],IA.prototype,"passwordInput",void 0),o([ei("#id_password2")],IA.prototype,"passwordConfirmInput",void 0),o([ei("#signup-panel")],IA.prototype,"signupPanel",void 0),o([ei("#block-panel")],IA.prototype,"blockPanel",void 0),o([ei("#email-sent-dialog")],IA.prototype,"emailSentDialog",void 0),o([ei("#terms-of-service")],IA.prototype,"TOSdialog",void 0),IA=o([Xt("backend-ai-signup")],IA);
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */
const OA=(e,t)=>"method"===t.kind&&t.descriptor&&!("value"in t.descriptor)?{...t,finisher(i){i.createProperty(t.key,e)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:t.key,initializer(){"function"==typeof t.initializer&&(this[t.key]=t.initializer.call(this))},finisher(i){i.createProperty(t.key,e)}},RA=(e,t,i)=>{t.constructor.createProperty(i,e)};
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */function NA(e){return(t,i)=>void 0!==i?RA(e,t,i):OA(e,t)
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */}function LA(e){return NA({...e,state:!0})}
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */const MA=({finisher:e,descriptor:t})=>(i,o)=>{var s;if(void 0===o){const o=null!==(s=i.originalKey)&&void 0!==s?s:i.key,n=null!=t?{kind:"method",placement:"prototype",key:o,descriptor:t(i.key)}:{...i,key:o};return null!=e&&(n.finisher=function(t){e(t,o)}),n}{const s=i.constructor;void 0!==t&&Object.defineProperty(i,o,t(o)),null==e||e(s,o)}}
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */;
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */
function UA(e,t){return MA({descriptor:t=>{const i={get(){var t,i;return null!==(i=null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector(e))&&void 0!==i?i:null},enumerable:!0,configurable:!0};return i}})}
/**
 * @license
 * Copyright 2021 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */var HA;null===(HA=window.HTMLSlotElement)||void 0===HA||HA.prototype.assignedElements;
/**
 * @license
 * Copyright 2016 Google Inc.
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 * THE SOFTWARE.
 */
var DA={ARIA_CONTROLS:"aria-controls",ARIA_DESCRIBEDBY:"aria-describedby",INPUT_SELECTOR:".mdc-text-field__input",LABEL_SELECTOR:".mdc-floating-label",LEADING_ICON_SELECTOR:".mdc-text-field__icon--leading",LINE_RIPPLE_SELECTOR:".mdc-line-ripple",OUTLINE_SELECTOR:".mdc-notched-outline",PREFIX_SELECTOR:".mdc-text-field__affix--prefix",SUFFIX_SELECTOR:".mdc-text-field__affix--suffix",TRAILING_ICON_SELECTOR:".mdc-text-field__icon--trailing"},zA={DISABLED:"mdc-text-field--disabled",FOCUSED:"mdc-text-field--focused",HELPER_LINE:"mdc-text-field-helper-line",INVALID:"mdc-text-field--invalid",LABEL_FLOATING:"mdc-text-field--label-floating",NO_LABEL:"mdc-text-field--no-label",OUTLINED:"mdc-text-field--outlined",ROOT:"mdc-text-field",TEXTAREA:"mdc-text-field--textarea",WITH_LEADING_ICON:"mdc-text-field--with-leading-icon",WITH_TRAILING_ICON:"mdc-text-field--with-trailing-icon",WITH_INTERNAL_COUNTER:"mdc-text-field--with-internal-counter"},BA={LABEL_SCALE:.75},FA=["pattern","min","max","required","step","minlength","maxlength"],jA=["color","date","datetime-local","month","range","time","week"],VA=["mousedown","touchstart"],qA=["click","keydown"],WA=function(e){function o(t,s){void 0===s&&(s={});var n=e.call(this,i(i({},o.defaultAdapter),t))||this;return n.isFocused=!1,n.receivedUserInput=!1,n.valid=!0,n.useNativeValidation=!0,n.validateOnValueChange=!0,n.helperText=s.helperText,n.characterCounter=s.characterCounter,n.leadingIcon=s.leadingIcon,n.trailingIcon=s.trailingIcon,n.inputFocusHandler=function(){n.activateFocus()},n.inputBlurHandler=function(){n.deactivateFocus()},n.inputInputHandler=function(){n.handleInput()},n.setPointerXOffset=function(e){n.setTransformOrigin(e)},n.textFieldInteractionHandler=function(){n.handleTextFieldInteraction()},n.validationAttributeChangeHandler=function(e){n.handleValidationAttributeChange(e)},n}return t(o,e),Object.defineProperty(o,"cssClasses",{get:function(){return zA},enumerable:!1,configurable:!0}),Object.defineProperty(o,"strings",{get:function(){return DA},enumerable:!1,configurable:!0}),Object.defineProperty(o,"numbers",{get:function(){return BA},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"shouldAlwaysFloat",{get:function(){var e=this.getNativeInput().type;return jA.indexOf(e)>=0},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"shouldFloat",{get:function(){return this.shouldAlwaysFloat||this.isFocused||!!this.getValue()||this.isBadInput()},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"shouldShake",{get:function(){return!this.isFocused&&!this.isValid()&&!!this.getValue()},enumerable:!1,configurable:!0}),Object.defineProperty(o,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},hasClass:function(){return!0},setInputAttr:function(){},removeInputAttr:function(){},registerTextFieldInteractionHandler:function(){},deregisterTextFieldInteractionHandler:function(){},registerInputInteractionHandler:function(){},deregisterInputInteractionHandler:function(){},registerValidationAttributeChangeHandler:function(){return new MutationObserver((function(){}))},deregisterValidationAttributeChangeHandler:function(){},getNativeInput:function(){return null},isFocused:function(){return!1},activateLineRipple:function(){},deactivateLineRipple:function(){},setLineRippleTransformOrigin:function(){},shakeLabel:function(){},floatLabel:function(){},setLabelRequired:function(){},hasLabel:function(){return!1},getLabelWidth:function(){return 0},hasOutline:function(){return!1},notchOutline:function(){},closeOutline:function(){}}},enumerable:!1,configurable:!0}),o.prototype.init=function(){var e,t,i,o;this.adapter.hasLabel()&&this.getNativeInput().required&&this.adapter.setLabelRequired(!0),this.adapter.isFocused()?this.inputFocusHandler():this.adapter.hasLabel()&&this.shouldFloat&&(this.notchOutline(!0),this.adapter.floatLabel(!0),this.styleFloating(!0)),this.adapter.registerInputInteractionHandler("focus",this.inputFocusHandler),this.adapter.registerInputInteractionHandler("blur",this.inputBlurHandler),this.adapter.registerInputInteractionHandler("input",this.inputInputHandler);try{for(var n=s(VA),r=n.next();!r.done;r=n.next()){var a=r.value;this.adapter.registerInputInteractionHandler(a,this.setPointerXOffset)}}catch(t){e={error:t}}finally{try{r&&!r.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}try{for(var l=s(qA),d=l.next();!d.done;d=l.next()){a=d.value;this.adapter.registerTextFieldInteractionHandler(a,this.textFieldInteractionHandler)}}catch(e){i={error:e}}finally{try{d&&!d.done&&(o=l.return)&&o.call(l)}finally{if(i)throw i.error}}this.validationObserver=this.adapter.registerValidationAttributeChangeHandler(this.validationAttributeChangeHandler),this.setcharacterCounter(this.getValue().length)},o.prototype.destroy=function(){var e,t,i,o;this.adapter.deregisterInputInteractionHandler("focus",this.inputFocusHandler),this.adapter.deregisterInputInteractionHandler("blur",this.inputBlurHandler),this.adapter.deregisterInputInteractionHandler("input",this.inputInputHandler);try{for(var n=s(VA),r=n.next();!r.done;r=n.next()){var a=r.value;this.adapter.deregisterInputInteractionHandler(a,this.setPointerXOffset)}}catch(t){e={error:t}}finally{try{r&&!r.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}try{for(var l=s(qA),d=l.next();!d.done;d=l.next()){a=d.value;this.adapter.deregisterTextFieldInteractionHandler(a,this.textFieldInteractionHandler)}}catch(e){i={error:e}}finally{try{d&&!d.done&&(o=l.return)&&o.call(l)}finally{if(i)throw i.error}}this.adapter.deregisterValidationAttributeChangeHandler(this.validationObserver)},o.prototype.handleTextFieldInteraction=function(){var e=this.adapter.getNativeInput();e&&e.disabled||(this.receivedUserInput=!0)},o.prototype.handleValidationAttributeChange=function(e){var t=this;e.some((function(e){return FA.indexOf(e)>-1&&(t.styleValidity(!0),t.adapter.setLabelRequired(t.getNativeInput().required),!0)})),e.indexOf("maxlength")>-1&&this.setcharacterCounter(this.getValue().length)},o.prototype.notchOutline=function(e){if(this.adapter.hasOutline()&&this.adapter.hasLabel())if(e){var t=this.adapter.getLabelWidth()*BA.LABEL_SCALE;this.adapter.notchOutline(t)}else this.adapter.closeOutline()},o.prototype.activateFocus=function(){this.isFocused=!0,this.styleFocused(this.isFocused),this.adapter.activateLineRipple(),this.adapter.hasLabel()&&(this.notchOutline(this.shouldFloat),this.adapter.floatLabel(this.shouldFloat),this.styleFloating(this.shouldFloat),this.adapter.shakeLabel(this.shouldShake)),!this.helperText||!this.helperText.isPersistent()&&this.helperText.isValidation()&&this.valid||this.helperText.showToScreenReader()},o.prototype.setTransformOrigin=function(e){if(!this.isDisabled()&&!this.adapter.hasOutline()){var t=e.touches,i=t?t[0]:e,o=i.target.getBoundingClientRect(),s=i.clientX-o.left;this.adapter.setLineRippleTransformOrigin(s)}},o.prototype.handleInput=function(){this.autoCompleteFocus(),this.setcharacterCounter(this.getValue().length)},o.prototype.autoCompleteFocus=function(){this.receivedUserInput||this.activateFocus()},o.prototype.deactivateFocus=function(){this.isFocused=!1,this.adapter.deactivateLineRipple();var e=this.isValid();this.styleValidity(e),this.styleFocused(this.isFocused),this.adapter.hasLabel()&&(this.notchOutline(this.shouldFloat),this.adapter.floatLabel(this.shouldFloat),this.styleFloating(this.shouldFloat),this.adapter.shakeLabel(this.shouldShake)),this.shouldFloat||(this.receivedUserInput=!1)},o.prototype.getValue=function(){return this.getNativeInput().value},o.prototype.setValue=function(e){if(this.getValue()!==e&&(this.getNativeInput().value=e),this.setcharacterCounter(e.length),this.validateOnValueChange){var t=this.isValid();this.styleValidity(t)}this.adapter.hasLabel()&&(this.notchOutline(this.shouldFloat),this.adapter.floatLabel(this.shouldFloat),this.styleFloating(this.shouldFloat),this.validateOnValueChange&&this.adapter.shakeLabel(this.shouldShake))},o.prototype.isValid=function(){return this.useNativeValidation?this.isNativeInputValid():this.valid},o.prototype.setValid=function(e){this.valid=e,this.styleValidity(e);var t=!e&&!this.isFocused&&!!this.getValue();this.adapter.hasLabel()&&this.adapter.shakeLabel(t)},o.prototype.setValidateOnValueChange=function(e){this.validateOnValueChange=e},o.prototype.getValidateOnValueChange=function(){return this.validateOnValueChange},o.prototype.setUseNativeValidation=function(e){this.useNativeValidation=e},o.prototype.isDisabled=function(){return this.getNativeInput().disabled},o.prototype.setDisabled=function(e){this.getNativeInput().disabled=e,this.styleDisabled(e)},o.prototype.setHelperTextContent=function(e){this.helperText&&this.helperText.setContent(e)},o.prototype.setLeadingIconAriaLabel=function(e){this.leadingIcon&&this.leadingIcon.setAriaLabel(e)},o.prototype.setLeadingIconContent=function(e){this.leadingIcon&&this.leadingIcon.setContent(e)},o.prototype.setTrailingIconAriaLabel=function(e){this.trailingIcon&&this.trailingIcon.setAriaLabel(e)},o.prototype.setTrailingIconContent=function(e){this.trailingIcon&&this.trailingIcon.setContent(e)},o.prototype.setcharacterCounter=function(e){if(this.characterCounter){var t=this.getNativeInput().maxLength;if(-1===t)throw new Error("MDCTextFieldFoundation: Expected maxlength html property on text input or textarea.");this.characterCounter.setCounterValue(e,t)}},o.prototype.isBadInput=function(){return this.getNativeInput().validity.badInput||!1},o.prototype.isNativeInputValid=function(){return this.getNativeInput().validity.valid},o.prototype.styleValidity=function(e){var t=o.cssClasses.INVALID;if(e?this.adapter.removeClass(t):this.adapter.addClass(t),this.helperText){if(this.helperText.setValidity(e),!this.helperText.isValidation())return;var i=this.helperText.isVisible(),s=this.helperText.getId();i&&s?this.adapter.setInputAttr(DA.ARIA_DESCRIBEDBY,s):this.adapter.removeInputAttr(DA.ARIA_DESCRIBEDBY)}},o.prototype.styleFocused=function(e){var t=o.cssClasses.FOCUSED;e?this.adapter.addClass(t):this.adapter.removeClass(t)},o.prototype.styleDisabled=function(e){var t=o.cssClasses,i=t.DISABLED,s=t.INVALID;e?(this.adapter.addClass(i),this.adapter.removeClass(s)):this.adapter.removeClass(i),this.leadingIcon&&this.leadingIcon.setDisabled(e),this.trailingIcon&&this.trailingIcon.setDisabled(e)},o.prototype.styleFloating=function(e){var t=o.cssClasses.LABEL_FLOATING;e?this.adapter.addClass(t):this.adapter.removeClass(t)},o.prototype.getNativeInput=function(){return(this.adapter?this.adapter.getNativeInput():null)||{disabled:!1,maxLength:-1,required:!1,type:"input",validity:{badInput:!1,valid:!0},value:""}},o}(xo);
/**
 * @license
 * Copyright 2019 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */
const GA=window,KA=GA.ShadowRoot&&(void 0===GA.ShadyCSS||GA.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,XA=Symbol(),YA=new WeakMap;let JA=class{constructor(e,t,i){if(this._$cssResult$=!0,i!==XA)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o;const t=this.t;if(KA&&void 0===e){const i=void 0!==t&&1===t.length;i&&(e=YA.get(t)),void 0===e&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),i&&YA.set(t,e))}return e}toString(){return this.cssText}};const ZA=KA?e=>e:e=>e instanceof CSSStyleSheet?(e=>{let t="";for(const i of e.cssRules)t+=i.cssText;return(e=>new JA("string"==typeof e?e:e+"",void 0,XA))(t)})(e):e
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */;var QA;const ek=window,tk=ek.trustedTypes,ik=tk?tk.emptyScript:"",ok=ek.reactiveElementPolyfillSupport,sk={toAttribute(e,t){switch(t){case Boolean:e=e?ik:null;break;case Object:case Array:e=null==e?e:JSON.stringify(e)}return e},fromAttribute(e,t){let i=e;switch(t){case Boolean:i=null!==e;break;case Number:i=null===e?null:Number(e);break;case Object:case Array:try{i=JSON.parse(e)}catch(e){i=null}}return i}},nk=(e,t)=>t!==e&&(t==t||e==e),rk={attribute:!0,type:String,converter:sk,reflect:!1,hasChanged:nk},ak="finalized";let lk=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this._$Eu()}static addInitializer(e){var t;this.finalize(),(null!==(t=this.h)&&void 0!==t?t:this.h=[]).push(e)}static get observedAttributes(){this.finalize();const e=[];return this.elementProperties.forEach(((t,i)=>{const o=this._$Ep(i,t);void 0!==o&&(this._$Ev.set(o,i),e.push(o))})),e}static createProperty(e,t=rk){if(t.state&&(t.attribute=!1),this.finalize(),this.elementProperties.set(e,t),!t.noAccessor&&!this.prototype.hasOwnProperty(e)){const i="symbol"==typeof e?Symbol():"__"+e,o=this.getPropertyDescriptor(e,i,t);void 0!==o&&Object.defineProperty(this.prototype,e,o)}}static getPropertyDescriptor(e,t,i){return{get(){return this[t]},set(o){const s=this[e];this[t]=o,this.requestUpdate(e,s,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)||rk}static finalize(){if(this.hasOwnProperty(ak))return!1;this[ak]=!0;const e=Object.getPrototypeOf(this);if(e.finalize(),void 0!==e.h&&(this.h=[...e.h]),this.elementProperties=new Map(e.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const e=this.properties,t=[...Object.getOwnPropertyNames(e),...Object.getOwnPropertySymbols(e)];for(const i of t)this.createProperty(i,e[i])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(e){const t=[];if(Array.isArray(e)){const i=new Set(e.flat(1/0).reverse());for(const e of i)t.unshift(ZA(e))}else void 0!==e&&t.push(ZA(e));return t}static _$Ep(e,t){const i=t.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof e?e.toLowerCase():void 0}_$Eu(){var e;this._$E_=new Promise((e=>this.enableUpdating=e)),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(e=this.constructor.h)||void 0===e||e.forEach((e=>e(this)))}addController(e){var t,i;(null!==(t=this._$ES)&&void 0!==t?t:this._$ES=[]).push(e),void 0!==this.renderRoot&&this.isConnected&&(null===(i=e.hostConnected)||void 0===i||i.call(e))}removeController(e){var t;null===(t=this._$ES)||void 0===t||t.splice(this._$ES.indexOf(e)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach(((e,t)=>{this.hasOwnProperty(t)&&(this._$Ei.set(t,this[t]),delete this[t])}))}createRenderRoot(){var e;const t=null!==(e=this.shadowRoot)&&void 0!==e?e:this.attachShadow(this.constructor.shadowRootOptions);return((e,t)=>{KA?e.adoptedStyleSheets=t.map((e=>e instanceof CSSStyleSheet?e:e.styleSheet)):t.forEach((t=>{const i=document.createElement("style"),o=GA.litNonce;void 0!==o&&i.setAttribute("nonce",o),i.textContent=t.cssText,e.appendChild(i)}))})(t,this.constructor.elementStyles),t}connectedCallback(){var e;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(e=this._$ES)||void 0===e||e.forEach((e=>{var t;return null===(t=e.hostConnected)||void 0===t?void 0:t.call(e)}))}enableUpdating(e){}disconnectedCallback(){var e;null===(e=this._$ES)||void 0===e||e.forEach((e=>{var t;return null===(t=e.hostDisconnected)||void 0===t?void 0:t.call(e)}))}attributeChangedCallback(e,t,i){this._$AK(e,i)}_$EO(e,t,i=rk){var o;const s=this.constructor._$Ep(e,i);if(void 0!==s&&!0===i.reflect){const n=(void 0!==(null===(o=i.converter)||void 0===o?void 0:o.toAttribute)?i.converter:sk).toAttribute(t,i.type);this._$El=e,null==n?this.removeAttribute(s):this.setAttribute(s,n),this._$El=null}}_$AK(e,t){var i;const o=this.constructor,s=o._$Ev.get(e);if(void 0!==s&&this._$El!==s){const e=o.getPropertyOptions(s),n="function"==typeof e.converter?{fromAttribute:e.converter}:void 0!==(null===(i=e.converter)||void 0===i?void 0:i.fromAttribute)?e.converter:sk;this._$El=s,this[s]=n.fromAttribute(t,e.type),this._$El=null}}requestUpdate(e,t,i){let o=!0;void 0!==e&&(((i=i||this.constructor.getPropertyOptions(e)).hasChanged||nk)(this[e],t)?(this._$AL.has(e)||this._$AL.set(e,t),!0===i.reflect&&this._$El!==e&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(e,i))):o=!1),!this.isUpdatePending&&o&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(e){Promise.reject(e)}const e=this.scheduleUpdate();return null!=e&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var e;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach(((e,t)=>this[t]=e)),this._$Ei=void 0);let t=!1;const i=this._$AL;try{t=this.shouldUpdate(i),t?(this.willUpdate(i),null===(e=this._$ES)||void 0===e||e.forEach((e=>{var t;return null===(t=e.hostUpdate)||void 0===t?void 0:t.call(e)})),this.update(i)):this._$Ek()}catch(e){throw t=!1,this._$Ek(),e}t&&this._$AE(i)}willUpdate(e){}_$AE(e){var t;null===(t=this._$ES)||void 0===t||t.forEach((e=>{var t;return null===(t=e.hostUpdated)||void 0===t?void 0:t.call(e)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(e){return!0}update(e){void 0!==this._$EC&&(this._$EC.forEach(((e,t)=>this._$EO(t,this[t],e))),this._$EC=void 0),this._$Ek()}updated(e){}firstUpdated(e){}};
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */
var dk;lk[ak]=!0,lk.elementProperties=new Map,lk.elementStyles=[],lk.shadowRootOptions={mode:"open"},null==ok||ok({ReactiveElement:lk}),(null!==(QA=ek.reactiveElementVersions)&&void 0!==QA?QA:ek.reactiveElementVersions=[]).push("1.6.3");const ck=window,hk=ck.trustedTypes,pk=hk?hk.createPolicy("lit-html",{createHTML:e=>e}):void 0,uk="$lit$",mk=`lit$${(Math.random()+"").slice(9)}$`,gk="?"+mk,fk=`<${gk}>`,_k=document,vk=()=>_k.createComment(""),bk=e=>null===e||"object"!=typeof e&&"function"!=typeof e,yk=Array.isArray,xk="[ \t\n\f\r]",wk=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,$k=/-->/g,Ak=/>/g,kk=RegExp(`>|${xk}(?:([^\\s"'>=/]+)(${xk}*=${xk}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),Ek=/'/g,Sk=/"/g,Ck=/^(?:script|style|textarea|title)$/i,Tk=(e=>(t,...i)=>({_$litType$:e,strings:t,values:i}))(1),Pk=Symbol.for("lit-noChange"),Ik=Symbol.for("lit-nothing"),Ok=new WeakMap,Rk=_k.createTreeWalker(_k,129,null,!1);function Nk(e,t){if(!Array.isArray(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==pk?pk.createHTML(t):t}let Lk=class e{constructor({strings:t,_$litType$:i},o){let s;this.parts=[];let n=0,r=0;const a=t.length-1,l=this.parts,[d,c]=((e,t)=>{const i=e.length-1,o=[];let s,n=2===t?"<svg>":"",r=wk;for(let t=0;t<i;t++){const i=e[t];let a,l,d=-1,c=0;for(;c<i.length&&(r.lastIndex=c,l=r.exec(i),null!==l);)c=r.lastIndex,r===wk?"!--"===l[1]?r=$k:void 0!==l[1]?r=Ak:void 0!==l[2]?(Ck.test(l[2])&&(s=RegExp("</"+l[2],"g")),r=kk):void 0!==l[3]&&(r=kk):r===kk?">"===l[0]?(r=null!=s?s:wk,d=-1):void 0===l[1]?d=-2:(d=r.lastIndex-l[2].length,a=l[1],r=void 0===l[3]?kk:'"'===l[3]?Sk:Ek):r===Sk||r===Ek?r=kk:r===$k||r===Ak?r=wk:(r=kk,s=void 0);const h=r===kk&&e[t+1].startsWith("/>")?" ":"";n+=r===wk?i+fk:d>=0?(o.push(a),i.slice(0,d)+uk+i.slice(d)+mk+h):i+mk+(-2===d?(o.push(void 0),t):h)}return[Nk(e,n+(e[i]||"<?>")+(2===t?"</svg>":"")),o]})(t,i);if(this.el=e.createElement(d,o),Rk.currentNode=this.el.content,2===i){const e=this.el.content,t=e.firstChild;t.remove(),e.append(...t.childNodes)}for(;null!==(s=Rk.nextNode())&&l.length<a;){if(1===s.nodeType){if(s.hasAttributes()){const e=[];for(const t of s.getAttributeNames())if(t.endsWith(uk)||t.startsWith(mk)){const i=c[r++];if(e.push(t),void 0!==i){const e=s.getAttribute(i.toLowerCase()+uk).split(mk),t=/([.?@])?(.*)/.exec(i);l.push({type:1,index:n,name:t[2],strings:e,ctor:"."===t[1]?zk:"?"===t[1]?Fk:"@"===t[1]?jk:Dk})}else l.push({type:6,index:n})}for(const t of e)s.removeAttribute(t)}if(Ck.test(s.tagName)){const e=s.textContent.split(mk),t=e.length-1;if(t>0){s.textContent=hk?hk.emptyScript:"";for(let i=0;i<t;i++)s.append(e[i],vk()),Rk.nextNode(),l.push({type:2,index:++n});s.append(e[t],vk())}}}else if(8===s.nodeType)if(s.data===gk)l.push({type:2,index:n});else{let e=-1;for(;-1!==(e=s.data.indexOf(mk,e+1));)l.push({type:7,index:n}),e+=mk.length-1}n++}}static createElement(e,t){const i=_k.createElement("template");return i.innerHTML=e,i}};function Mk(e,t,i=e,o){var s,n,r,a;if(t===Pk)return t;let l=void 0!==o?null===(s=i._$Co)||void 0===s?void 0:s[o]:i._$Cl;const d=bk(t)?void 0:t._$litDirective$;return(null==l?void 0:l.constructor)!==d&&(null===(n=null==l?void 0:l._$AO)||void 0===n||n.call(l,!1),void 0===d?l=void 0:(l=new d(e),l._$AT(e,i,o)),void 0!==o?(null!==(r=(a=i)._$Co)&&void 0!==r?r:a._$Co=[])[o]=l:i._$Cl=l),void 0!==l&&(t=Mk(e,l._$AS(e,t.values),l,o)),t}let Uk=class{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){var t;const{el:{content:i},parts:o}=this._$AD,s=(null!==(t=null==e?void 0:e.creationScope)&&void 0!==t?t:_k).importNode(i,!0);Rk.currentNode=s;let n=Rk.nextNode(),r=0,a=0,l=o[0];for(;void 0!==l;){if(r===l.index){let t;2===l.type?t=new Hk(n,n.nextSibling,this,e):1===l.type?t=new l.ctor(n,l.name,l.strings,this,e):6===l.type&&(t=new Vk(n,this,e)),this._$AV.push(t),l=o[++a]}r!==(null==l?void 0:l.index)&&(n=Rk.nextNode(),r++)}return Rk.currentNode=_k,s}v(e){let t=0;for(const i of this._$AV)void 0!==i&&(void 0!==i.strings?(i._$AI(e,i,t),t+=i.strings.length-2):i._$AI(e[t])),t++}},Hk=class e{constructor(e,t,i,o){var s;this.type=2,this._$AH=Ik,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=i,this.options=o,this._$Cp=null===(s=null==o?void 0:o.isConnected)||void 0===s||s}get _$AU(){var e,t;return null!==(t=null===(e=this._$AM)||void 0===e?void 0:e._$AU)&&void 0!==t?t:this._$Cp}get parentNode(){let e=this._$AA.parentNode;const t=this._$AM;return void 0!==t&&11===(null==e?void 0:e.nodeType)&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=Mk(this,e,t),bk(e)?e===Ik||null==e||""===e?(this._$AH!==Ik&&this._$AR(),this._$AH=Ik):e!==this._$AH&&e!==Pk&&this._(e):void 0!==e._$litType$?this.g(e):void 0!==e.nodeType?this.$(e):(e=>yk(e)||"function"==typeof(null==e?void 0:e[Symbol.iterator]))(e)?this.T(e):this._(e)}k(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}$(e){this._$AH!==e&&(this._$AR(),this._$AH=this.k(e))}_(e){this._$AH!==Ik&&bk(this._$AH)?this._$AA.nextSibling.data=e:this.$(_k.createTextNode(e)),this._$AH=e}g(e){var t;const{values:i,_$litType$:o}=e,s="number"==typeof o?this._$AC(e):(void 0===o.el&&(o.el=Lk.createElement(Nk(o.h,o.h[0]),this.options)),o);if((null===(t=this._$AH)||void 0===t?void 0:t._$AD)===s)this._$AH.v(i);else{const e=new Uk(s,this),t=e.u(this.options);e.v(i),this.$(t),this._$AH=e}}_$AC(e){let t=Ok.get(e.strings);return void 0===t&&Ok.set(e.strings,t=new Lk(e)),t}T(t){yk(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let o,s=0;for(const n of t)s===i.length?i.push(o=new e(this.k(vk()),this.k(vk()),this,this.options)):o=i[s],o._$AI(n),s++;s<i.length&&(this._$AR(o&&o._$AB.nextSibling,s),i.length=s)}_$AR(e=this._$AA.nextSibling,t){var i;for(null===(i=this._$AP)||void 0===i||i.call(this,!1,!0,t);e&&e!==this._$AB;){const t=e.nextSibling;e.remove(),e=t}}setConnected(e){var t;void 0===this._$AM&&(this._$Cp=e,null===(t=this._$AP)||void 0===t||t.call(this,e))}},Dk=class{constructor(e,t,i,o,s){this.type=1,this._$AH=Ik,this._$AN=void 0,this.element=e,this.name=t,this._$AM=o,this.options=s,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=Ik}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(e,t=this,i,o){const s=this.strings;let n=!1;if(void 0===s)e=Mk(this,e,t,0),n=!bk(e)||e!==this._$AH&&e!==Pk,n&&(this._$AH=e);else{const o=e;let r,a;for(e=s[0],r=0;r<s.length-1;r++)a=Mk(this,o[i+r],t,r),a===Pk&&(a=this._$AH[r]),n||(n=!bk(a)||a!==this._$AH[r]),a===Ik?e=Ik:e!==Ik&&(e+=(null!=a?a:"")+s[r+1]),this._$AH[r]=a}n&&!o&&this.j(e)}j(e){e===Ik?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=e?e:"")}},zk=class extends Dk{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===Ik?void 0:e}};const Bk=hk?hk.emptyScript:"";let Fk=class extends Dk{constructor(){super(...arguments),this.type=4}j(e){e&&e!==Ik?this.element.setAttribute(this.name,Bk):this.element.removeAttribute(this.name)}},jk=class extends Dk{constructor(e,t,i,o,s){super(e,t,i,o,s),this.type=5}_$AI(e,t=this){var i;if((e=null!==(i=Mk(this,e,t,0))&&void 0!==i?i:Ik)===Pk)return;const o=this._$AH,s=e===Ik&&o!==Ik||e.capture!==o.capture||e.once!==o.once||e.passive!==o.passive,n=e!==Ik&&(o===Ik||s);s&&this.element.removeEventListener(this.name,this,o),n&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var t,i;"function"==typeof this._$AH?this._$AH.call(null!==(i=null===(t=this.options)||void 0===t?void 0:t.host)&&void 0!==i?i:this.element,e):this._$AH.handleEvent(e)}},Vk=class{constructor(e,t,i){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(e){Mk(this,e)}};const qk=ck.litHtmlPolyfillSupport;null==qk||qk(Lk,Hk),(null!==(dk=ck.litHtmlVersions)&&void 0!==dk?dk:ck.litHtmlVersions=[]).push("2.8.0");
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */
var Wk,Gk;let Kk=class extends lk{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e,t;const i=super.createRenderRoot();return null!==(e=(t=this.renderOptions).renderBefore)&&void 0!==e||(t.renderBefore=i.firstChild),i}update(e){const t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=((e,t,i)=>{var o,s;const n=null!==(o=null==i?void 0:i.renderBefore)&&void 0!==o?o:t;let r=n._$litPart$;if(void 0===r){const e=null!==(s=null==i?void 0:i.renderBefore)&&void 0!==s?s:null;n._$litPart$=r=new Hk(t.insertBefore(vk(),e),e,void 0,null!=i?i:{})}return r._$AI(e),r})(t,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),null===(e=this._$Do)||void 0===e||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),null===(e=this._$Do)||void 0===e||e.setConnected(!1)}render(){return Pk}};Kk.finalized=!0,Kk._$litElement$=!0,null===(Wk=globalThis.litElementHydrateSupport)||void 0===Wk||Wk.call(globalThis,{LitElement:Kk});const Xk=globalThis.litElementPolyfillSupport;null==Xk||Xk({LitElement:Kk}),(null!==(Gk=globalThis.litElementVersions)&&void 0!==Gk?Gk:globalThis.litElementVersions=[]).push("3.3.3");
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */
const Yk=1,Jk=3,Zk=4,Qk=e=>(...t)=>({_$litDirective$:e,values:t});let eE=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,i){this._$Ct=e,this._$AM=t,this._$Ci=i}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}};
/**
 * @license
 * Copyright 2018 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */const tE=Qk(class extends eE{constructor(e){var t;if(super(e),e.type!==Yk||"class"!==e.name||(null===(t=e.strings)||void 0===t?void 0:t.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(e){return" "+Object.keys(e).filter((t=>e[t])).join(" ")+" "}update(e,[t]){var i,o;if(void 0===this.it){this.it=new Set,void 0!==e.strings&&(this.nt=new Set(e.strings.join(" ").split(/\s/).filter((e=>""!==e))));for(const e in t)t[e]&&!(null===(i=this.nt)||void 0===i?void 0:i.has(e))&&this.it.add(e);return this.render(t)}const s=e.element.classList;this.it.forEach((e=>{e in t||(s.remove(e),this.it.delete(e))}));for(const e in t){const i=!!t[e];i===this.it.has(e)||(null===(o=this.nt)||void 0===o?void 0:o.has(e))||(i?(s.add(e),this.it.add(e)):(s.remove(e),this.it.delete(e)))}return Pk}}),iE=e=>null!=e?e:Ik
/**
 * @license
 * Copyright 2020 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */,oE={},sE=Qk(class extends eE{constructor(e){if(super(e),e.type!==Jk&&e.type!==Yk&&e.type!==Zk)throw Error("The `live` directive is not allowed on child or event bindings");if(!(e=>void 0===e.strings)(e))throw Error("`live` bindings can only contain a single expression")}render(e){return e}update(e,[t]){if(t===Pk||t===Ik)return t;const i=e.element,o=e.name;if(e.type===Jk){if(t===i[o])return Pk}else if(e.type===Zk){if(!!t===i.hasAttribute(o))return Pk}else if(e.type===Yk&&i.getAttribute(o)===t+"")return Pk;return((e,t=oE)=>{e._$AH=t;
/**
 * @license
 * Copyright 2020 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */})(e),t}}),nE=["touchstart","touchmove","scroll","mousewheel"],rE=(e={})=>{const t={};for(const i in e)t[i]=e[i];return Object.assign({badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valid:!0,valueMissing:!1},t)};
/**
 * @license
 * Copyright 2018 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */class aE extends Ay{constructor(){super(...arguments),this.mdcFoundationClass=WA,this.value="",this.type="text",this.placeholder="",this.label="",this.icon="",this.iconTrailing="",this.disabled=!1,this.required=!1,this.minLength=-1,this.maxLength=-1,this.outlined=!1,this.helper="",this.validateOnInitialRender=!1,this.validationMessage="",this.autoValidate=!1,this.pattern="",this.min="",this.max="",this.step=null,this.size=null,this.helperPersistent=!1,this.charCounter=!1,this.endAligned=!1,this.prefix="",this.suffix="",this.name="",this.readOnly=!1,this.autocapitalize="",this.outlineOpen=!1,this.outlineWidth=0,this.isUiValid=!0,this.focused=!1,this._validity=rE(),this.validityTransform=null}get validity(){return this._checkValidity(this.value),this._validity}get willValidate(){return this.formElement.willValidate}get selectionStart(){return this.formElement.selectionStart}get selectionEnd(){return this.formElement.selectionEnd}focus(){const e=new CustomEvent("focus");this.formElement.dispatchEvent(e),this.formElement.focus()}blur(){const e=new CustomEvent("blur");this.formElement.dispatchEvent(e),this.formElement.blur()}select(){this.formElement.select()}setSelectionRange(e,t,i){this.formElement.setSelectionRange(e,t,i)}update(e){e.has("autoValidate")&&this.mdcFoundation&&this.mdcFoundation.setValidateOnValueChange(this.autoValidate),e.has("value")&&"string"!=typeof this.value&&(this.value=`${this.value}`),super.update(e)}setFormData(e){this.name&&e.append(this.name,this.value)}render(){const e=this.charCounter&&-1!==this.maxLength,t=!!this.helper||!!this.validationMessage||e,i={"mdc-text-field--disabled":this.disabled,"mdc-text-field--no-label":!this.label,"mdc-text-field--filled":!this.outlined,"mdc-text-field--outlined":this.outlined,"mdc-text-field--with-leading-icon":this.icon,"mdc-text-field--with-trailing-icon":this.iconTrailing,"mdc-text-field--end-aligned":this.endAligned};return Tk`
      <label class="mdc-text-field ${tE(i)}">
        ${this.renderRipple()}
        ${this.outlined?this.renderOutline():this.renderLabel()}
        ${this.renderLeadingIcon()}
        ${this.renderPrefix()}
        ${this.renderInput(t)}
        ${this.renderSuffix()}
        ${this.renderTrailingIcon()}
        ${this.renderLineRipple()}
      </label>
      ${this.renderHelperText(t,e)}
    `}updated(e){e.has("value")&&void 0!==e.get("value")&&(this.mdcFoundation.setValue(this.value),this.autoValidate&&this.reportValidity())}renderRipple(){return this.outlined?"":Tk`
      <span class="mdc-text-field__ripple"></span>
    `}renderOutline(){return this.outlined?Tk`
      <mwc-notched-outline
          .width=${this.outlineWidth}
          .open=${this.outlineOpen}
          class="mdc-notched-outline">
        ${this.renderLabel()}
      </mwc-notched-outline>`:""}renderLabel(){return this.label?Tk`
      <span
          .floatingLabelFoundation=${Py(this.label)}
          id="label">${this.label}</span>
    `:""}renderLeadingIcon(){return this.icon?this.renderIcon(this.icon):""}renderTrailingIcon(){return this.iconTrailing?this.renderIcon(this.iconTrailing,!0):""}renderIcon(e,t=!1){return Tk`<i class="material-icons mdc-text-field__icon ${tE({"mdc-text-field__icon--leading":!t,"mdc-text-field__icon--trailing":t})}" style="color:var(--token-colorTextSecondary);">${e}</i>`}renderPrefix(){return this.prefix?this.renderAffix(this.prefix):""}renderSuffix(){return this.suffix?this.renderAffix(this.suffix,!0):""}renderAffix(e,t=!1){return Tk`<span class="mdc-text-field__affix ${tE({"mdc-text-field__affix--prefix":!t,"mdc-text-field__affix--suffix":t})}" style="${this.disabled?"color:var(--token-colorTextDisabled);":"color:var(--token-colorTextSecondary);"}">
        ${e}</span>`}renderInput(e){const t=-1===this.minLength?void 0:this.minLength,i=-1===this.maxLength?void 0:this.maxLength,o=this.autocapitalize?this.autocapitalize:void 0,s=this.validationMessage&&!this.isUiValid,n=this.label?"label":void 0,r=e?"helper-text":void 0,a=this.focused||this.helperPersistent||s?"helper-text":void 0;return Tk`
      <input
          aria-labelledby=${iE(n)}
          aria-controls="${iE(r)}"
          aria-describedby="${iE(a)}"
          class="mdc-text-field__input"
          type="${this.type}"
          .value="${sE(this.value)}"
          ?disabled="${this.disabled}"
          placeholder="${this.placeholder}"
          ?required="${this.required}"
          ?readonly="${this.readOnly}"
          minlength="${iE(t)}"
          maxlength="${iE(i)}"
          pattern="${iE(this.pattern?this.pattern:void 0)}"
          min="${iE(""===this.min?void 0:this.min)}"
          max="${iE(""===this.max?void 0:this.max)}"
          step="${iE(null===this.step?void 0:this.step)}"
          size="${iE(null===this.size?void 0:this.size)}"
          name="${iE(""===this.name?void 0:this.name)}"
          inputmode="${iE(this.inputMode)}"
          autocapitalize="${iE(o)}"
          @input="${this.handleInputChange}"
          @focus="${this.onInputFocus}"
          @blur="${this.onInputBlur}">`}renderLineRipple(){return this.outlined?"":Tk`
      <span .lineRippleFoundation=${My()}></span>
    `}renderHelperText(e,t){const i=this.validationMessage&&!this.isUiValid,o={"mdc-text-field-helper-text--persistent":this.helperPersistent,"mdc-text-field-helper-text--validation-msg":i},s=this.focused||this.helperPersistent||i?void 0:"true",n=i?this.validationMessage:this.helper;return e?Tk`
      <div class="mdc-text-field-helper-line">
        <div id="helper-text"
             aria-hidden="${iE(s)}"
             class="mdc-text-field-helper-text ${tE(o)}"
             >${n}</div>
        ${this.renderCharCounter(t)}
      </div>`:""}renderCharCounter(e){const t=Math.min(this.value.length,this.maxLength);return e?Tk`
      <span class="mdc-text-field-character-counter"
            >${t} / ${this.maxLength}</span>`:""}onInputFocus(){this.focused=!0}onInputBlur(){this.focused=!1,this.reportValidity()}checkValidity(){const e=this._checkValidity(this.value);if(!e){const e=new Event("invalid",{bubbles:!1,cancelable:!0});this.dispatchEvent(e)}return e}reportValidity(){const e=this.checkValidity();return this.mdcFoundation.setValid(e),this.isUiValid=e,e}_checkValidity(e){const t=this.formElement.validity;let i=rE(t);if(this.validityTransform){const t=this.validityTransform(e,i);i=Object.assign(Object.assign({},i),t),this.mdcFoundation.setUseNativeValidation(!1)}else this.mdcFoundation.setUseNativeValidation(!0);return this._validity=i,this._validity.valid}setCustomValidity(e){this.validationMessage=e,this.formElement.setCustomValidity(e)}handleInputChange(){this.value=this.formElement.value}createAdapter(){return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},this.getRootAdapterMethods()),this.getInputAdapterMethods()),this.getLabelAdapterMethods()),this.getLineRippleAdapterMethods()),this.getOutlineAdapterMethods())}getRootAdapterMethods(){return Object.assign({registerTextFieldInteractionHandler:(e,t)=>this.addEventListener(e,t),deregisterTextFieldInteractionHandler:(e,t)=>this.removeEventListener(e,t),registerValidationAttributeChangeHandler:e=>{const t=new MutationObserver((t=>{e((e=>e.map((e=>e.attributeName)).filter((e=>e)))(t))}));return t.observe(this.formElement,{attributes:!0}),t},deregisterValidationAttributeChangeHandler:e=>e.disconnect()},uo(this.mdcRoot))}getInputAdapterMethods(){return{getNativeInput:()=>this.formElement,setInputAttr:()=>{},removeInputAttr:()=>{},isFocused:()=>!!this.shadowRoot&&this.shadowRoot.activeElement===this.formElement,registerInputInteractionHandler:(e,t)=>this.formElement.addEventListener(e,t,{passive:e in nE}),deregisterInputInteractionHandler:(e,t)=>this.formElement.removeEventListener(e,t)}}getLabelAdapterMethods(){return{floatLabel:e=>this.labelElement&&this.labelElement.floatingLabelFoundation.float(e),getLabelWidth:()=>this.labelElement?this.labelElement.floatingLabelFoundation.getWidth():0,hasLabel:()=>Boolean(this.labelElement),shakeLabel:e=>this.labelElement&&this.labelElement.floatingLabelFoundation.shake(e),setLabelRequired:e=>{this.labelElement&&this.labelElement.floatingLabelFoundation.setRequired(e)}}}getLineRippleAdapterMethods(){return{activateLineRipple:()=>{this.lineRippleElement&&this.lineRippleElement.lineRippleFoundation.activate()},deactivateLineRipple:()=>{this.lineRippleElement&&this.lineRippleElement.lineRippleFoundation.deactivate()},setLineRippleTransformOrigin:e=>{this.lineRippleElement&&this.lineRippleElement.lineRippleFoundation.setRippleCenter(e)}}}async getUpdateComplete(){var e;const t=await super.getUpdateComplete();return await(null===(e=this.outlineElement)||void 0===e?void 0:e.updateComplete),t}firstUpdated(){var e;super.firstUpdated(),this.mdcFoundation.setValidateOnValueChange(this.autoValidate),this.validateOnInitialRender&&this.reportValidity(),null===(e=this.outlineElement)||void 0===e||e.updateComplete.then((()=>{var e;this.outlineWidth=(null===(e=this.labelElement)||void 0===e?void 0:e.floatingLabelFoundation.getWidth())||0}))}getOutlineAdapterMethods(){return{closeOutline:()=>this.outlineElement&&(this.outlineOpen=!1),hasOutline:()=>Boolean(this.outlineElement),notchOutline:e=>{this.outlineElement&&!this.outlineOpen&&(this.outlineWidth=e,this.outlineOpen=!0)}}}async layout(){await this.updateComplete;const e=this.labelElement;if(!e)return void(this.outlineOpen=!1);const t=!!this.label&&!!this.value;if(e.floatingLabelFoundation.float(t),!this.outlined)return;this.outlineOpen=t,await this.updateComplete;const i=e.floatingLabelFoundation.getWidth();this.outlineOpen&&(this.outlineWidth=i,await this.updateComplete)}}o([UA(".mdc-text-field")],aE.prototype,"mdcRoot",void 0),o([UA("input")],aE.prototype,"formElement",void 0),o([UA(".mdc-floating-label")],aE.prototype,"labelElement",void 0),o([UA(".mdc-line-ripple")],aE.prototype,"lineRippleElement",void 0),o([UA("mwc-notched-outline")],aE.prototype,"outlineElement",void 0),o([UA(".mdc-notched-outline__notch")],aE.prototype,"notchElement",void 0),o([NA({type:String})],aE.prototype,"value",void 0),o([NA({type:String})],aE.prototype,"type",void 0),o([NA({type:String})],aE.prototype,"placeholder",void 0),o([NA({type:String}),Fl((function(e,t){void 0!==t&&this.label!==t&&this.layout()}))],aE.prototype,"label",void 0),o([NA({type:String})],aE.prototype,"icon",void 0),o([NA({type:String})],aE.prototype,"iconTrailing",void 0),o([NA({type:Boolean,reflect:!0})],aE.prototype,"disabled",void 0),o([NA({type:Boolean})],aE.prototype,"required",void 0),o([NA({type:Number})],aE.prototype,"minLength",void 0),o([NA({type:Number})],aE.prototype,"maxLength",void 0),o([NA({type:Boolean,reflect:!0}),Fl((function(e,t){void 0!==t&&this.outlined!==t&&this.layout()}))],aE.prototype,"outlined",void 0),o([NA({type:String})],aE.prototype,"helper",void 0),o([NA({type:Boolean})],aE.prototype,"validateOnInitialRender",void 0),o([NA({type:String})],aE.prototype,"validationMessage",void 0),o([NA({type:Boolean})],aE.prototype,"autoValidate",void 0),o([NA({type:String})],aE.prototype,"pattern",void 0),o([NA({type:String})],aE.prototype,"min",void 0),o([NA({type:String})],aE.prototype,"max",void 0),o([NA({type:String})],aE.prototype,"step",void 0),o([NA({type:Number})],aE.prototype,"size",void 0),o([NA({type:Boolean})],aE.prototype,"helperPersistent",void 0),o([NA({type:Boolean})],aE.prototype,"charCounter",void 0),o([NA({type:Boolean})],aE.prototype,"endAligned",void 0),o([NA({type:String})],aE.prototype,"prefix",void 0),o([NA({type:String})],aE.prototype,"suffix",void 0),o([NA({type:String})],aE.prototype,"name",void 0),o([NA({type:String})],aE.prototype,"inputMode",void 0),o([NA({type:Boolean})],aE.prototype,"readOnly",void 0),o([NA({type:String})],aE.prototype,"autocapitalize",void 0),o([LA()],aE.prototype,"outlineOpen",void 0),o([LA()],aE.prototype,"outlineWidth",void 0),o([LA()],aE.prototype,"isUiValid",void 0),o([LA()],aE.prototype,"focused",void 0),o([function(e){return MA({finisher:(t,i)=>{Object.assign(t.prototype[i],e)}})}({passive:!0})],aE.prototype,"handleInputChange",null);
/**
 * @license
 * Copyright 2021 Google LLC
 * SPDX-LIcense-Identifier: Apache-2.0
 */
const lE=((e,...t)=>{const i=1===e.length?e[0]:t.reduce(((t,i,o)=>t+(e=>{if(!0===e._$cssResult$)return e.cssText;if("number"==typeof e)return e;throw Error("Value passed to 'css' function must be a 'css' function result: "+e+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+e[o+1]),e[0]);return new JA(i,e,XA)})`.mdc-floating-label{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-subtitle1-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:1rem;font-size:var(--mdc-typography-subtitle1-font-size, 1rem);font-weight:400;font-weight:var(--mdc-typography-subtitle1-font-weight, 400);letter-spacing:0.009375em;letter-spacing:var(--mdc-typography-subtitle1-letter-spacing, 0.009375em);text-decoration:inherit;text-decoration:var(--mdc-typography-subtitle1-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-subtitle1-text-transform, inherit);position:absolute;left:0;-webkit-transform-origin:left top;transform-origin:left top;line-height:1.15rem;text-align:left;text-overflow:ellipsis;white-space:nowrap;cursor:text;overflow:hidden;will-change:transform;transition:transform 150ms cubic-bezier(0.4, 0, 0.2, 1),color 150ms cubic-bezier(0.4, 0, 0.2, 1)}[dir=rtl] .mdc-floating-label,.mdc-floating-label[dir=rtl]{right:0;left:auto;-webkit-transform-origin:right top;transform-origin:right top;text-align:right}.mdc-floating-label--float-above{cursor:auto}.mdc-floating-label--required::after{margin-left:1px;margin-right:0px;content:"*"}[dir=rtl] .mdc-floating-label--required::after,.mdc-floating-label--required[dir=rtl]::after{margin-left:0;margin-right:1px}.mdc-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-standard 250ms 1}@keyframes mdc-floating-label-shake-float-above-standard{0%{transform:translateX(calc(0 - 0%)) translateY(-106%) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(-106%) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(-106%) scale(0.75)}100%{transform:translateX(calc(0 - 0%)) translateY(-106%) scale(0.75)}}.mdc-line-ripple::before,.mdc-line-ripple::after{position:absolute;bottom:0;left:0;width:100%;border-bottom-style:solid;content:""}.mdc-line-ripple::before{border-bottom-width:1px}.mdc-line-ripple::before{z-index:1}.mdc-line-ripple::after{transform:scaleX(0);border-bottom-width:2px;opacity:0;z-index:2}.mdc-line-ripple::after{transition:transform 180ms cubic-bezier(0.4, 0, 0.2, 1),opacity 180ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-line-ripple--active::after{transform:scaleX(1);opacity:1}.mdc-line-ripple--deactivating::after{opacity:0}.mdc-notched-outline{display:flex;position:absolute;top:0;right:0;left:0;box-sizing:border-box;width:100%;max-width:100%;height:100%;text-align:left;pointer-events:none}[dir=rtl] .mdc-notched-outline,.mdc-notched-outline[dir=rtl]{text-align:right}.mdc-notched-outline__leading,.mdc-notched-outline__notch,.mdc-notched-outline__trailing{box-sizing:border-box;height:100%;border-top:1px solid;border-bottom:1px solid;pointer-events:none}.mdc-notched-outline__leading{border-left:1px solid;border-right:none;width:12px}[dir=rtl] .mdc-notched-outline__leading,.mdc-notched-outline__leading[dir=rtl]{border-left:none;border-right:1px solid}.mdc-notched-outline__trailing{border-left:none;border-right:1px solid;flex-grow:1}[dir=rtl] .mdc-notched-outline__trailing,.mdc-notched-outline__trailing[dir=rtl]{border-left:1px solid;border-right:none}.mdc-notched-outline__notch{flex:0 0 auto;width:auto;max-width:calc(100% - 12px * 2)}.mdc-notched-outline .mdc-floating-label{display:inline-block;position:relative;max-width:100%}.mdc-notched-outline .mdc-floating-label--float-above{text-overflow:clip}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:calc(100% / 0.75)}.mdc-notched-outline--notched .mdc-notched-outline__notch{padding-left:0;padding-right:8px;border-top:none}[dir=rtl] .mdc-notched-outline--notched .mdc-notched-outline__notch,.mdc-notched-outline--notched .mdc-notched-outline__notch[dir=rtl]{padding-left:8px;padding-right:0}.mdc-notched-outline--no-label .mdc-notched-outline__notch{display:none}@keyframes mdc-ripple-fg-radius-in{from{animation-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transform:translate(var(--mdc-ripple-fg-translate-start, 0)) scale(1)}to{transform:translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1))}}@keyframes mdc-ripple-fg-opacity-in{from{animation-timing-function:linear;opacity:0}to{opacity:var(--mdc-ripple-fg-opacity, 0)}}@keyframes mdc-ripple-fg-opacity-out{from{animation-timing-function:linear;opacity:var(--mdc-ripple-fg-opacity, 0)}to{opacity:0}}.mdc-text-field--filled{--mdc-ripple-fg-size: 0;--mdc-ripple-left: 0;--mdc-ripple-top: 0;--mdc-ripple-fg-scale: 1;--mdc-ripple-fg-translate-end: 0;--mdc-ripple-fg-translate-start: 0;-webkit-tap-highlight-color:rgba(0,0,0,0);will-change:transform,opacity}.mdc-text-field--filled .mdc-text-field__ripple::before,.mdc-text-field--filled .mdc-text-field__ripple::after{position:absolute;border-radius:50%;opacity:0;pointer-events:none;content:""}.mdc-text-field--filled .mdc-text-field__ripple::before{transition:opacity 15ms linear,background-color 15ms linear;z-index:1;z-index:var(--mdc-ripple-z-index, 1)}.mdc-text-field--filled .mdc-text-field__ripple::after{z-index:0;z-index:var(--mdc-ripple-z-index, 0)}.mdc-text-field--filled.mdc-ripple-upgraded .mdc-text-field__ripple::before{transform:scale(var(--mdc-ripple-fg-scale, 1))}.mdc-text-field--filled.mdc-ripple-upgraded .mdc-text-field__ripple::after{top:0;left:0;transform:scale(0);transform-origin:center center}.mdc-text-field--filled.mdc-ripple-upgraded--unbounded .mdc-text-field__ripple::after{top:var(--mdc-ripple-top, 0);left:var(--mdc-ripple-left, 0)}.mdc-text-field--filled.mdc-ripple-upgraded--foreground-activation .mdc-text-field__ripple::after{animation:mdc-ripple-fg-radius-in 225ms forwards,mdc-ripple-fg-opacity-in 75ms forwards}.mdc-text-field--filled.mdc-ripple-upgraded--foreground-deactivation .mdc-text-field__ripple::after{animation:mdc-ripple-fg-opacity-out 150ms;transform:translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1))}.mdc-text-field--filled .mdc-text-field__ripple::before,.mdc-text-field--filled .mdc-text-field__ripple::after{top:calc(50% - 100%);left:calc(50% - 100%);width:200%;height:200%}.mdc-text-field--filled.mdc-ripple-upgraded .mdc-text-field__ripple::after{width:var(--mdc-ripple-fg-size, 100%);height:var(--mdc-ripple-fg-size, 100%)}.mdc-text-field__ripple{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none}.mdc-text-field{border-top-left-radius:4px;border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:4px;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:0;border-bottom-left-radius:0;display:inline-flex;align-items:baseline;padding:0 16px;position:relative;box-sizing:border-box;overflow:hidden;will-change:opacity,transform,color}.mdc-text-field:not(.mdc-text-field--disabled) .mdc-floating-label{color:rgba(0, 0, 0, 0.6)}.mdc-text-field:not(.mdc-text-field--disabled) .mdc-text-field__input{color:rgba(0, 0, 0, 0.87)}@media all{.mdc-text-field:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder{color:rgba(0, 0, 0, 0.54)}}@media all{.mdc-text-field:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder{color:rgba(0, 0, 0, 0.54)}}.mdc-text-field .mdc-text-field__input{caret-color:#6200ee;caret-color:var(--mdc-theme-primary, #6200ee)}.mdc-text-field:not(.mdc-text-field--disabled)+.mdc-text-field-helper-line .mdc-text-field-helper-text{color:rgba(0, 0, 0, 0.6)}.mdc-text-field:not(.mdc-text-field--disabled) .mdc-text-field-character-counter,.mdc-text-field:not(.mdc-text-field--disabled)+.mdc-text-field-helper-line .mdc-text-field-character-counter{color:rgba(0, 0, 0, 0.6)}.mdc-text-field:not(.mdc-text-field--disabled) .mdc-text-field__icon--leading{color:rgba(0, 0, 0, 0.54)}.mdc-text-field:not(.mdc-text-field--disabled) .mdc-text-field__icon--trailing{color:rgba(0, 0, 0, 0.54)}.mdc-text-field:not(.mdc-text-field--disabled) .mdc-text-field__affix--prefix{color:rgba(0, 0, 0, 0.6)}.mdc-text-field:not(.mdc-text-field--disabled) .mdc-text-field__affix--suffix{color:rgba(0, 0, 0, 0.6)}.mdc-text-field .mdc-floating-label{top:50%;transform:translateY(-50%);pointer-events:none}.mdc-text-field__input{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-subtitle1-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:1rem;font-size:var(--mdc-typography-subtitle1-font-size, 1rem);font-weight:400;font-weight:var(--mdc-typography-subtitle1-font-weight, 400);letter-spacing:0.009375em;letter-spacing:var(--mdc-typography-subtitle1-letter-spacing, 0.009375em);text-decoration:inherit;text-decoration:var(--mdc-typography-subtitle1-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-subtitle1-text-transform, inherit);height:28px;transition:opacity 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1);width:100%;min-width:0;border:none;border-radius:0;background:none;appearance:none;padding:0}.mdc-text-field__input::-ms-clear{display:none}.mdc-text-field__input::-webkit-calendar-picker-indicator{display:none}.mdc-text-field__input:focus{outline:none}.mdc-text-field__input:invalid{box-shadow:none}@media all{.mdc-text-field__input::placeholder{transition:opacity 67ms 0ms cubic-bezier(0.4, 0, 0.2, 1);opacity:0}}@media all{.mdc-text-field__input:-ms-input-placeholder{transition:opacity 67ms 0ms cubic-bezier(0.4, 0, 0.2, 1);opacity:0}}@media all{.mdc-text-field--no-label .mdc-text-field__input::placeholder,.mdc-text-field--focused .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms;opacity:1}}@media all{.mdc-text-field--no-label .mdc-text-field__input:-ms-input-placeholder,.mdc-text-field--focused .mdc-text-field__input:-ms-input-placeholder{transition-delay:40ms;transition-duration:110ms;opacity:1}}.mdc-text-field__affix{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-subtitle1-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:1rem;font-size:var(--mdc-typography-subtitle1-font-size, 1rem);font-weight:400;font-weight:var(--mdc-typography-subtitle1-font-weight, 400);letter-spacing:0.009375em;letter-spacing:var(--mdc-typography-subtitle1-letter-spacing, 0.009375em);text-decoration:inherit;text-decoration:var(--mdc-typography-subtitle1-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-subtitle1-text-transform, inherit);height:28px;transition:opacity 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1);opacity:0;white-space:nowrap}.mdc-text-field--label-floating .mdc-text-field__affix,.mdc-text-field--no-label .mdc-text-field__affix{opacity:1}@supports(-webkit-hyphens: none){.mdc-text-field--outlined .mdc-text-field__affix{align-items:center;align-self:center;display:inline-flex;height:100%}}.mdc-text-field__affix--prefix{padding-left:0;padding-right:2px}[dir=rtl] .mdc-text-field__affix--prefix,.mdc-text-field__affix--prefix[dir=rtl]{padding-left:2px;padding-right:0}.mdc-text-field--end-aligned .mdc-text-field__affix--prefix{padding-left:0;padding-right:12px}[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__affix--prefix,.mdc-text-field--end-aligned .mdc-text-field__affix--prefix[dir=rtl]{padding-left:12px;padding-right:0}.mdc-text-field__affix--suffix{padding-left:12px;padding-right:0}[dir=rtl] .mdc-text-field__affix--suffix,.mdc-text-field__affix--suffix[dir=rtl]{padding-left:0;padding-right:12px}.mdc-text-field--end-aligned .mdc-text-field__affix--suffix{padding-left:2px;padding-right:0}[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__affix--suffix,.mdc-text-field--end-aligned .mdc-text-field__affix--suffix[dir=rtl]{padding-left:0;padding-right:2px}.mdc-text-field--filled{height:56px}.mdc-text-field--filled .mdc-text-field__ripple::before,.mdc-text-field--filled .mdc-text-field__ripple::after{background-color:rgba(0, 0, 0, 0.87);background-color:var(--mdc-ripple-color, rgba(0, 0, 0, 0.87))}.mdc-text-field--filled:hover .mdc-text-field__ripple::before,.mdc-text-field--filled.mdc-ripple-surface--hover .mdc-text-field__ripple::before{opacity:0.04;opacity:var(--mdc-ripple-hover-opacity, 0.04)}.mdc-text-field--filled.mdc-ripple-upgraded--background-focused .mdc-text-field__ripple::before,.mdc-text-field--filled:not(.mdc-ripple-upgraded):focus .mdc-text-field__ripple::before{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-focus-opacity, 0.12)}.mdc-text-field--filled::before{display:inline-block;width:0;height:40px;content:"";vertical-align:0}.mdc-text-field--filled:not(.mdc-text-field--disabled){background-color:whitesmoke}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::before{border-bottom-color:rgba(0, 0, 0, 0.42)}.mdc-text-field--filled:not(.mdc-text-field--disabled):hover .mdc-line-ripple::before{border-bottom-color:rgba(0, 0, 0, 0.87)}.mdc-text-field--filled .mdc-line-ripple::after{border-bottom-color:#6200ee;border-bottom-color:var(--mdc-theme-primary, #6200ee)}.mdc-text-field--filled .mdc-floating-label{left:16px;right:initial}[dir=rtl] .mdc-text-field--filled .mdc-floating-label,.mdc-text-field--filled .mdc-floating-label[dir=rtl]{left:initial;right:16px}.mdc-text-field--filled .mdc-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__input{height:100%}.mdc-text-field--filled.mdc-text-field--no-label .mdc-floating-label{display:none}.mdc-text-field--filled.mdc-text-field--no-label::before{display:none}@supports(-webkit-hyphens: none){.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__affix{align-items:center;align-self:center;display:inline-flex;height:100%}}.mdc-text-field--outlined{height:56px;overflow:visible}.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-37.25px) scale(1)}.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:.75rem}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-34.75px) scale(0.75)}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined 250ms 1}@keyframes mdc-floating-label-shake-float-above-text-field-outlined{0%{transform:translateX(calc(0 - 0%)) translateY(-34.75px) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(-34.75px) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(-34.75px) scale(0.75)}100%{transform:translateX(calc(0 - 0%)) translateY(-34.75px) scale(0.75)}}.mdc-text-field--outlined .mdc-text-field__input{height:100%}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline__trailing{border-color:rgba(0, 0, 0, 0.38)}.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__trailing{border-color:rgba(0, 0, 0, 0.87)}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__trailing{border-color:#6200ee;border-color:var(--mdc-theme-primary, #6200ee)}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{border-top-left-radius:4px;border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:4px;border-bottom-left-radius:var(--mdc-shape-small, 4px)}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading[dir=rtl]{border-top-left-radius:0;border-top-right-radius:4px;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:4px;border-bottom-right-radius:var(--mdc-shape-small, 4px);border-bottom-left-radius:0}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{width:max(12px, var(--mdc-shape-small, 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__notch{max-width:calc(100% - max(12px, var(--mdc-shape-small, 4px)) * 2)}}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing{border-top-left-radius:0;border-top-right-radius:4px;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:4px;border-bottom-right-radius:var(--mdc-shape-small, 4px);border-bottom-left-radius:0}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing[dir=rtl]{border-top-left-radius:4px;border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:4px;border-bottom-left-radius:var(--mdc-shape-small, 4px)}@supports(top: max(0%)){.mdc-text-field--outlined{padding-left:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined{padding-right:max(16px, var(--mdc-shape-small, 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-left:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-right:max(16px, var(--mdc-shape-small, 4px))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-left:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-right:max(16px, var(--mdc-shape-small, 4px))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-right:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-left:max(16px, var(--mdc-shape-small, 4px))}}.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-right:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-left:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-left:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-right:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon{padding-left:0;padding-right:0}.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:1px}.mdc-text-field--outlined .mdc-text-field__ripple::before,.mdc-text-field--outlined .mdc-text-field__ripple::after{background-color:transparent;background-color:var(--mdc-ripple-color, transparent)}.mdc-text-field--outlined .mdc-floating-label{left:4px;right:initial}[dir=rtl] .mdc-text-field--outlined .mdc-floating-label,.mdc-text-field--outlined .mdc-floating-label[dir=rtl]{left:initial;right:4px}.mdc-text-field--outlined .mdc-text-field__input{display:flex;border:none !important;background-color:transparent}.mdc-text-field--outlined .mdc-notched-outline{z-index:1}.mdc-text-field--textarea{flex-direction:column;align-items:center;width:auto;height:auto;padding:0;transition:none}.mdc-text-field--textarea .mdc-floating-label{top:19px}.mdc-text-field--textarea .mdc-floating-label:not(.mdc-floating-label--float-above){transform:none}.mdc-text-field--textarea .mdc-text-field__input{flex-grow:1;height:auto;min-height:1.5rem;overflow-x:hidden;overflow-y:auto;box-sizing:border-box;resize:none;padding:0 16px;line-height:1.5rem}.mdc-text-field--textarea.mdc-text-field--filled::before{display:none}.mdc-text-field--textarea.mdc-text-field--filled .mdc-floating-label--float-above{transform:translateY(-10.25px) scale(0.75)}.mdc-text-field--textarea.mdc-text-field--filled .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-textarea-filled 250ms 1}@keyframes mdc-floating-label-shake-float-above-textarea-filled{0%{transform:translateX(calc(0 - 0%)) translateY(-10.25px) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(-10.25px) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(-10.25px) scale(0.75)}100%{transform:translateX(calc(0 - 0%)) translateY(-10.25px) scale(0.75)}}.mdc-text-field--textarea.mdc-text-field--filled .mdc-text-field__input{margin-top:23px;margin-bottom:9px}.mdc-text-field--textarea.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__input{margin-top:16px;margin-bottom:16px}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:0}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-27.25px) scale(1)}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:.75rem}.mdc-text-field--textarea.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-24.75px) scale(0.75)}.mdc-text-field--textarea.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-textarea-outlined 250ms 1}@keyframes mdc-floating-label-shake-float-above-textarea-outlined{0%{transform:translateX(calc(0 - 0%)) translateY(-24.75px) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(-24.75px) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(-24.75px) scale(0.75)}100%{transform:translateX(calc(0 - 0%)) translateY(-24.75px) scale(0.75)}}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-text-field__input{margin-top:16px;margin-bottom:16px}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label{top:18px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field__input{margin-bottom:2px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter{align-self:flex-end;padding:0 16px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter::after{display:inline-block;width:0;height:16px;content:"";vertical-align:-16px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter::before{display:none}.mdc-text-field__resizer{align-self:stretch;display:inline-flex;flex-direction:column;flex-grow:1;max-height:100%;max-width:100%;min-height:56px;min-width:fit-content;min-width:-moz-available;min-width:-webkit-fill-available;overflow:hidden;resize:both}.mdc-text-field--filled .mdc-text-field__resizer{transform:translateY(-1px)}.mdc-text-field--filled .mdc-text-field__resizer .mdc-text-field__input,.mdc-text-field--filled .mdc-text-field__resizer .mdc-text-field-character-counter{transform:translateY(1px)}.mdc-text-field--outlined .mdc-text-field__resizer{transform:translateX(-1px) translateY(-1px)}[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer,.mdc-text-field--outlined .mdc-text-field__resizer[dir=rtl]{transform:translateX(1px) translateY(-1px)}.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input,.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter{transform:translateX(1px) translateY(1px)}[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input,[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter,.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input[dir=rtl],.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter[dir=rtl]{transform:translateX(-1px) translateY(1px)}.mdc-text-field--with-leading-icon{padding-left:0;padding-right:16px}[dir=rtl] .mdc-text-field--with-leading-icon,.mdc-text-field--with-leading-icon[dir=rtl]{padding-left:16px;padding-right:0}.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 48px);left:48px;right:initial}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label,.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label[dir=rtl]{left:initial;right:48px}.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label--float-above{max-width:calc(100% / 0.75 - 64px / 0.75)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label{left:36px;right:initial}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label[dir=rtl]{left:initial;right:36px}.mdc-text-field--with-leading-icon.mdc-text-field--outlined :not(.mdc-notched-outline--notched) .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-37.25px) translateX(-32px) scale(1)}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above[dir=rtl]{transform:translateY(-37.25px) translateX(32px) scale(1)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:.75rem}.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-34.75px) translateX(-32px) scale(0.75)}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above[dir=rtl],.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above[dir=rtl]{transform:translateY(-34.75px) translateX(32px) scale(0.75)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined-leading-icon 250ms 1}@keyframes mdc-floating-label-shake-float-above-text-field-outlined-leading-icon{0%{transform:translateX(calc(0 - 32px)) translateY(-34.75px) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 32px)) translateY(-34.75px) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 32px)) translateY(-34.75px) scale(0.75)}100%{transform:translateX(calc(0 - 32px)) translateY(-34.75px) scale(0.75)}}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--shake,.mdc-text-field--with-leading-icon.mdc-text-field--outlined[dir=rtl] .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined-leading-icon 250ms 1}@keyframes mdc-floating-label-shake-float-above-text-field-outlined-leading-icon-rtl{0%{transform:translateX(calc(0 - -32px)) translateY(-34.75px) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - -32px)) translateY(-34.75px) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - -32px)) translateY(-34.75px) scale(0.75)}100%{transform:translateX(calc(0 - -32px)) translateY(-34.75px) scale(0.75)}}.mdc-text-field--with-trailing-icon{padding-left:16px;padding-right:0}[dir=rtl] .mdc-text-field--with-trailing-icon,.mdc-text-field--with-trailing-icon[dir=rtl]{padding-left:0;padding-right:16px}.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 64px)}.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label--float-above{max-width:calc(100% / 0.75 - 64px / 0.75)}.mdc-text-field--with-trailing-icon.mdc-text-field--outlined :not(.mdc-notched-outline--notched) .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon{padding-left:0;padding-right:0}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 96px)}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label--float-above{max-width:calc(100% / 0.75 - 96px / 0.75)}.mdc-text-field-helper-line{display:flex;justify-content:space-between;box-sizing:border-box}.mdc-text-field+.mdc-text-field-helper-line{padding-right:16px;padding-left:16px}.mdc-form-field>.mdc-text-field+label{align-self:flex-start}.mdc-text-field--focused:not(.mdc-text-field--disabled) .mdc-floating-label{color:rgba(98, 0, 238, 0.87)}.mdc-text-field--focused .mdc-notched-outline__leading,.mdc-text-field--focused .mdc-notched-outline__notch,.mdc-text-field--focused .mdc-notched-outline__trailing{border-width:2px}.mdc-text-field--focused+.mdc-text-field-helper-line .mdc-text-field-helper-text:not(.mdc-text-field-helper-text--validation-msg){opacity:1}.mdc-text-field--focused.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:2px}.mdc-text-field--focused.mdc-text-field--outlined.mdc-text-field--textarea .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:0}.mdc-text-field--invalid:not(.mdc-text-field--disabled):hover .mdc-line-ripple::before{border-bottom-color:#b00020;border-bottom-color:var(--mdc-theme-error, #b00020)}.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-line-ripple::after{border-bottom-color:#b00020;border-bottom-color:var(--mdc-theme-error, #b00020)}.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-floating-label{color:#b00020;color:var(--mdc-theme-error, #b00020)}.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--invalid+.mdc-text-field-helper-line .mdc-text-field-helper-text--validation-msg{color:#b00020;color:var(--mdc-theme-error, #b00020)}.mdc-text-field--invalid .mdc-text-field__input{caret-color:#b00020;caret-color:var(--mdc-theme-error, #b00020)}.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__icon--trailing{color:#b00020;color:var(--mdc-theme-error, #b00020)}.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-line-ripple::before{border-bottom-color:#b00020;border-bottom-color:var(--mdc-theme-error, #b00020)}.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-notched-outline__leading,.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-notched-outline__notch,.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-notched-outline__trailing{border-color:#b00020;border-color:var(--mdc-theme-error, #b00020)}.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__notch,.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__trailing{border-color:#b00020;border-color:var(--mdc-theme-error, #b00020)}.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__leading,.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__notch,.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__trailing{border-color:#b00020;border-color:var(--mdc-theme-error, #b00020)}.mdc-text-field--invalid+.mdc-text-field-helper-line .mdc-text-field-helper-text--validation-msg{opacity:1}.mdc-text-field--disabled{pointer-events:none}.mdc-text-field--disabled .mdc-text-field__input{color:rgba(0, 0, 0, 0.38)}@media all{.mdc-text-field--disabled .mdc-text-field__input::placeholder{color:rgba(0, 0, 0, 0.38)}}@media all{.mdc-text-field--disabled .mdc-text-field__input:-ms-input-placeholder{color:rgba(0, 0, 0, 0.38)}}.mdc-text-field--disabled .mdc-floating-label{color:rgba(0, 0, 0, 0.38)}.mdc-text-field--disabled+.mdc-text-field-helper-line .mdc-text-field-helper-text{color:rgba(0, 0, 0, 0.38)}.mdc-text-field--disabled .mdc-text-field-character-counter,.mdc-text-field--disabled+.mdc-text-field-helper-line .mdc-text-field-character-counter{color:rgba(0, 0, 0, 0.38)}.mdc-text-field--disabled .mdc-text-field__icon--leading{color:rgba(0, 0, 0, 0.3)}.mdc-text-field--disabled .mdc-text-field__icon--trailing{color:rgba(0, 0, 0, 0.3)}.mdc-text-field--disabled .mdc-text-field__affix--prefix{color:rgba(0, 0, 0, 0.38)}.mdc-text-field--disabled .mdc-text-field__affix--suffix{color:rgba(0, 0, 0, 0.38)}.mdc-text-field--disabled .mdc-line-ripple::before{border-bottom-color:rgba(0, 0, 0, 0.06)}.mdc-text-field--disabled .mdc-notched-outline__leading,.mdc-text-field--disabled .mdc-notched-outline__notch,.mdc-text-field--disabled .mdc-notched-outline__trailing{border-color:rgba(0, 0, 0, 0.06)}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-text-field--disabled .mdc-text-field__input::placeholder{color:GrayText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-text-field--disabled .mdc-text-field__input:-ms-input-placeholder{color:GrayText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-text-field--disabled .mdc-floating-label{color:GrayText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-text-field--disabled+.mdc-text-field-helper-line .mdc-text-field-helper-text{color:GrayText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-text-field--disabled .mdc-text-field-character-counter,.mdc-text-field--disabled+.mdc-text-field-helper-line .mdc-text-field-character-counter{color:GrayText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-text-field--disabled .mdc-text-field__icon--leading{color:GrayText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-text-field--disabled .mdc-text-field__icon--trailing{color:GrayText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-text-field--disabled .mdc-text-field__affix--prefix{color:GrayText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-text-field--disabled .mdc-text-field__affix--suffix{color:GrayText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-text-field--disabled .mdc-line-ripple::before{border-bottom-color:GrayText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-text-field--disabled .mdc-notched-outline__leading,.mdc-text-field--disabled .mdc-notched-outline__notch,.mdc-text-field--disabled .mdc-notched-outline__trailing{border-color:GrayText}}@media screen and (forced-colors: active){.mdc-text-field--disabled .mdc-text-field__input{background-color:Window}.mdc-text-field--disabled .mdc-floating-label{z-index:1}}.mdc-text-field--disabled .mdc-floating-label{cursor:default}.mdc-text-field--disabled.mdc-text-field--filled{background-color:#fafafa}.mdc-text-field--disabled.mdc-text-field--filled .mdc-text-field__ripple{display:none}.mdc-text-field--disabled .mdc-text-field__input{pointer-events:auto}.mdc-text-field--end-aligned .mdc-text-field__input{text-align:right}[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__input,.mdc-text-field--end-aligned .mdc-text-field__input[dir=rtl]{text-align:left}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__input,[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__input,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix{direction:ltr}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--prefix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--prefix{padding-left:0;padding-right:2px}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--suffix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--suffix{padding-left:12px;padding-right:0}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__icon--leading,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__icon--leading{order:1}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--suffix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--suffix{order:2}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__input,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__input{order:3}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--prefix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--prefix{order:4}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__icon--trailing,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__icon--trailing{order:5}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__input,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__input{text-align:right}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__affix--prefix,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__affix--prefix{padding-right:12px}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__affix--suffix,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__affix--suffix{padding-left:2px}.mdc-text-field-helper-text{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-caption-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:0.75rem;font-size:var(--mdc-typography-caption-font-size, 0.75rem);line-height:1.25rem;line-height:var(--mdc-typography-caption-line-height, 1.25rem);font-weight:400;font-weight:var(--mdc-typography-caption-font-weight, 400);letter-spacing:0.0333333333em;letter-spacing:var(--mdc-typography-caption-letter-spacing, 0.0333333333em);text-decoration:inherit;text-decoration:var(--mdc-typography-caption-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-caption-text-transform, inherit);display:block;margin-top:0;line-height:normal;margin:0;opacity:0;will-change:opacity;transition:opacity 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-text-field-helper-text::before{display:inline-block;width:0;height:16px;content:"";vertical-align:0}.mdc-text-field-helper-text--persistent{transition:none;opacity:1;will-change:initial}.mdc-text-field-character-counter{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-caption-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:0.75rem;font-size:var(--mdc-typography-caption-font-size, 0.75rem);line-height:1.25rem;line-height:var(--mdc-typography-caption-line-height, 1.25rem);font-weight:400;font-weight:var(--mdc-typography-caption-font-weight, 400);letter-spacing:0.0333333333em;letter-spacing:var(--mdc-typography-caption-letter-spacing, 0.0333333333em);text-decoration:inherit;text-decoration:var(--mdc-typography-caption-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-caption-text-transform, inherit);display:block;margin-top:0;line-height:normal;margin-left:auto;margin-right:0;padding-left:16px;padding-right:0;white-space:nowrap}.mdc-text-field-character-counter::before{display:inline-block;width:0;height:16px;content:"";vertical-align:0}[dir=rtl] .mdc-text-field-character-counter,.mdc-text-field-character-counter[dir=rtl]{margin-left:0;margin-right:auto}[dir=rtl] .mdc-text-field-character-counter,.mdc-text-field-character-counter[dir=rtl]{padding-left:0;padding-right:16px}.mdc-text-field__icon{align-self:center;cursor:pointer}.mdc-text-field__icon:not([tabindex]),.mdc-text-field__icon[tabindex="-1"]{cursor:default;pointer-events:none}.mdc-text-field__icon svg{display:block}.mdc-text-field__icon--leading{margin-left:16px;margin-right:8px}[dir=rtl] .mdc-text-field__icon--leading,.mdc-text-field__icon--leading[dir=rtl]{margin-left:8px;margin-right:16px}.mdc-text-field__icon--trailing{padding:12px;margin-left:0px;margin-right:0px}[dir=rtl] .mdc-text-field__icon--trailing,.mdc-text-field__icon--trailing[dir=rtl]{margin-left:0px;margin-right:0px}.material-icons{font-family:var(--mdc-icon-font, "Material Icons");font-weight:normal;font-style:normal;font-size:var(--mdc-icon-size, 24px);line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale;font-feature-settings:"liga"}:host{display:inline-flex;flex-direction:column;outline:none}.mdc-text-field{width:100%}.mdc-text-field:not(.mdc-text-field--disabled) .mdc-line-ripple::before{border-bottom-color:rgba(0, 0, 0, 0.42);border-bottom-color:var(--mdc-text-field-idle-line-color, rgba(0, 0, 0, 0.42))}.mdc-text-field:not(.mdc-text-field--disabled):hover .mdc-line-ripple::before{border-bottom-color:rgba(0, 0, 0, 0.87);border-bottom-color:var(--mdc-text-field-hover-line-color, rgba(0, 0, 0, 0.87))}.mdc-text-field.mdc-text-field--disabled .mdc-line-ripple::before{border-bottom-color:rgba(0, 0, 0, 0.06);border-bottom-color:var(--mdc-text-field-disabled-line-color, rgba(0, 0, 0, 0.06))}.mdc-text-field.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-line-ripple::before{border-bottom-color:#b00020;border-bottom-color:var(--mdc-theme-error, #b00020)}.mdc-text-field__input{direction:inherit}mwc-notched-outline{--mdc-notched-outline-border-color: var( --mdc-text-field-outlined-idle-border-color, rgba(0, 0, 0, 0.38) )}:host(:not([disabled]):hover) :not(.mdc-text-field--invalid):not(.mdc-text-field--focused) mwc-notched-outline{--mdc-notched-outline-border-color: var( --mdc-text-field-outlined-hover-border-color, rgba(0, 0, 0, 0.87) )}:host(:not([disabled])) .mdc-text-field:not(.mdc-text-field--outlined){background-color:var(--mdc-text-field-fill-color, whitesmoke)}:host(:not([disabled])) .mdc-text-field.mdc-text-field--invalid mwc-notched-outline{--mdc-notched-outline-border-color: var( --mdc-text-field-error-color, var(--mdc-theme-error, #b00020) )}:host(:not([disabled])) .mdc-text-field.mdc-text-field--invalid+.mdc-text-field-helper-line .mdc-text-field-character-counter,:host(:not([disabled])) .mdc-text-field.mdc-text-field--invalid .mdc-text-field__icon{color:var(--mdc-text-field-error-color, var(--mdc-theme-error, #b00020))}:host(:not([disabled])) .mdc-text-field:not(.mdc-text-field--invalid):not(.mdc-text-field--focused) .mdc-floating-label,:host(:not([disabled])) .mdc-text-field:not(.mdc-text-field--invalid):not(.mdc-text-field--focused) .mdc-floating-label::after{color:var(--mdc-text-field-label-ink-color, rgba(0, 0, 0, 0.6))}:host(:not([disabled])) .mdc-text-field.mdc-text-field--focused mwc-notched-outline{--mdc-notched-outline-stroke-width: 2px}:host(:not([disabled])) .mdc-text-field.mdc-text-field--focused:not(.mdc-text-field--invalid) mwc-notched-outline{--mdc-notched-outline-border-color: var( --mdc-text-field-focused-label-color, var(--mdc-theme-primary, rgba(98, 0, 238, 0.87)) )}:host(:not([disabled])) .mdc-text-field.mdc-text-field--focused:not(.mdc-text-field--invalid) .mdc-floating-label{color:#6200ee;color:var(--mdc-theme-primary, #6200ee)}:host(:not([disabled])) .mdc-text-field .mdc-text-field__input{color:var(--mdc-text-field-ink-color, rgba(0, 0, 0, 0.87))}:host(:not([disabled])) .mdc-text-field .mdc-text-field__input::placeholder{color:var(--mdc-text-field-label-ink-color, rgba(0, 0, 0, 0.6))}:host(:not([disabled])) .mdc-text-field-helper-line .mdc-text-field-helper-text:not(.mdc-text-field-helper-text--validation-msg),:host(:not([disabled])) .mdc-text-field-helper-line:not(.mdc-text-field--invalid) .mdc-text-field-character-counter{color:var(--mdc-text-field-label-ink-color, rgba(0, 0, 0, 0.6))}:host([disabled]) .mdc-text-field:not(.mdc-text-field--outlined){background-color:var(--mdc-text-field-disabled-fill-color, #fafafa)}:host([disabled]) .mdc-text-field.mdc-text-field--outlined mwc-notched-outline{--mdc-notched-outline-border-color: var( --mdc-text-field-outlined-disabled-border-color, rgba(0, 0, 0, 0.06) )}:host([disabled]) .mdc-text-field:not(.mdc-text-field--invalid):not(.mdc-text-field--focused) .mdc-floating-label,:host([disabled]) .mdc-text-field:not(.mdc-text-field--invalid):not(.mdc-text-field--focused) .mdc-floating-label::after{color:var(--mdc-text-field-disabled-ink-color, rgba(0, 0, 0, 0.38))}:host([disabled]) .mdc-text-field .mdc-text-field__input,:host([disabled]) .mdc-text-field .mdc-text-field__input::placeholder{color:var(--mdc-text-field-disabled-ink-color, rgba(0, 0, 0, 0.38))}:host([disabled]) .mdc-text-field-helper-line .mdc-text-field-helper-text,:host([disabled]) .mdc-text-field-helper-line .mdc-text-field-character-counter{color:var(--mdc-text-field-disabled-ink-color, rgba(0, 0, 0, 0.38))}`
/**
 * @license
 * Copyright 2019 Google LLC
 * SPDX-License-Identifier: Apache-2.0
 */;let dE=class extends aE{};dE.styles=[lE],dE=o([(e=>t=>"function"==typeof t?((e,t)=>(customElements.define(e,t),t))(e,t):((e,t)=>{const{kind:i,elements:o}=t;return{kind:i,elements:o,finisher(t){customElements.define(e,t)}}})(e,t))("mwc-textfield")],dE);
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */
const cE=2,hE=e=>(...t)=>({_$litDirective$:e,values:t});let pE=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,i){this._$Ct=e,this._$AM=t,this._$Ci=i}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}},uE=class extends pE{constructor(e){if(super(e),this.it=ce,e.type!==cE)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===ce||null==e)return this._t=void 0,this.it=e;if(e===de)return e;if("string"!=typeof e)throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.it)return this._t;this.it=e;const t=[e];return t.raw=t,this._t={_$litType$:this.constructor.resultType,strings:t,values:[]}}};
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */uE.directiveName="unsafeHTML",uE.resultType=1;const mE=hE(uE);globalThis.BackendAIClient=Jm.Client,globalThis.BackendAIClientConfig=Jm.ClientConfig;let gE=class extends ti{constructor(){super(),this.siteDescription="",this.api_key="",this.secret_key="",this.user_id="",this.password="",this.proxy_url="http://127.0.0.1:5050/",this.api_endpoint="",this.domain_name="",this.default_session_environment="",this.default_import_environment="",this.blockType="",this.blockMessage="",this.allowAppDownloadPanel=!0,this.connection_mode="SESSION",this.systemSSHImage="",this.fasttrackEndpoint="",this.login_attempt_limit=500,this.login_block_time=180,this.config=Object(),this.is_connected=!1,this.signup_support=!1,this.allowAnonymousChangePassword=!1,this.change_signin_support=!1,this.allow_signout=!1,this.allow_project_resource_monitor=!1,this.allow_manual_image_name_for_session=!1,this.allowSignupWithoutConfirmation=!1,this.openPortToPublic=!1,this.allowPreferredPort=!1,this.maxCPUCoresPerContainer=64,this.maxMemoryPerContainer=16,this.maxCUDADevicesPerContainer=16,this.maxCUDASharesPerContainer=16,this.maxROCMDevicesPerContainer=10,this.maxTPUDevicesPerContainer=8,this.maxIPUDevicesPerContainer=8,this.maxATOMDevicesPerContainer=8,this.maxWarboyDevicesPerContainer=8,this.maxShmPerContainer=2,this.maxFileUploadSize=-1,this.maskUserInfo=!1,this.hideAgents=!0,this.enable2FA=!1,this.force2FA=!1,this.allowNonAuthTCP=!1,this.singleSignOnVendors=[],this.ssoRealmName="",this._helpDescription="",this._helpDescriptionTitle="",this.otpRequired=!1,this.needToResetPassword=!1,this.directoryBasedUsage=!1,this.maxCountForPreopenPorts=10,this.allowCustomResourceAllocation=!0,this.isDirectorySizeVisible=!0,this.supportModelStore=!1,this.blockList=[],this.inactiveList=[],this._enableContainerCommit=!1,this._enablePipeline=!1,globalThis.backendaiwebui={},this.endpoints=[]}static get styles(){return[Be,Se,Te,Pe,Ie,A`
        .warning {
          color: red;
        }

        backend-ai-dialog {
          --component-width: 400px;
          --component-padding: 0;
        }

        fieldset input {
          border: 0;
          font: inherit;
          font-size: 16px;
          outline: none;
        }

        mwc-textfield {
          width: -webkit-fill-available;
        }

        .login-input-without-trailing-icon {
          margin-right: 48px;
        }

        .align-self-center {
          align-self: center;
        }

        .login-input {
          padding-left: 15px;
          padding-right: 15px;
        }

        mwc-icon-button {
          /*color: rgba(0, 0, 0, 0.54); Matched color with above icons*/
          color: var(--token-colorText);
          --mdc-icon-size: 24px;
        }

        mwc-icon-button.endpoint-control-button {
          --mdc-icon-size: 16px;
          --mdc-icon-button-size: 24px;
          color: red;
        }

        mwc-menu {
          font-family: var(--token-fontFamily);
          --mdc-menu-min-width: 400px;
          --mdc-menu-max-width: 400px;
        }

        mwc-list-item[disabled] {
          --mdc-menu-item-height: 30px;
        }

        mwc-button {
          background-image: none;
          --mdc-typography-button-font-size: var(--token-fontSizeSM, 12px);
        }

        mwc-button[unelevated] {
          background-image: none;
        }

        mwc-button[outlined] {
          background-image: none;
          --mdc-button-outline-width: 2px;
        }

        .title-img {
          height: 35px;
          padding: 15px 0 15px 5px;
        }

        #change-signin-area > #change-signin-message {
          font-size: 12px;
          margin: 5px 0px;
          text-align: center;
          font-weight: 400;
        }

        #session-login-form.block {
          display: block;
        }

        #session-login-form.none {
          display: none;
        }

        #api-login-form.block {
          display: block;
        }

        #api-login-form.none {
          display: none;
        }

        #endpoint-button {
          color: var(--token-colorInfo);
          margin-top: 4px;
        }

        #help-description {
          --component-width: 350px;
        }

        #help-description p {
          padding: 5px !important;
        }

        #login-title-area {
          height: var(--login-banner-height, 0);
          width: var(--login-banner-width, 0);
          background: var(--login-banner-background, none);
        }

        .login-form {
          position: relative;
        }

        #additional-action-area {
          margin-top: 2em;
        }

        #additional-action-area > #signup-area {
          width: 100%;
        }

        #signup-area > #signup-message {
          font-size: 12px;
          margin: 0 10px;
          text-align: center;
        }

        #additional-action-area > span {
          min-width: 1em;
        }

        #change-password-area {
          width: 100%;
        }

        #change-password-area > #change-password-message {
          font-size: 12px;
          margin: 0 10px;
          text-align: center;
        }

        #waiting-animation {
          top: 20%;
          left: 40%;
          position: absolute;
          z-index: 2;
        }

        .sk-folding-cube {
          margin: 20px auto;
          width: 15px;
          height: 15px;
          position: relative;
          margin: auto;
          -webkit-transform: rotateZ(45deg);
          transform: rotateZ(45deg);
        }

        .sk-folding-cube .sk-cube {
          float: left;
          width: 50%;
          height: 50%;
          position: relative;
          -webkit-transform: scale(1.1);
          -ms-transform: scale(1.1);
          transform: scale(1.1);
        }

        .sk-folding-cube .sk-cube:before {
          content: '';
          position: absolute;
          top: 0;
          left: 0;
          width: 100%;
          height: 100%;
          background-color: #3e872d;
          -webkit-animation: sk-foldCubeAngle 2.4s infinite linear both;
          animation: sk-foldCubeAngle 2.4s infinite linear both;
          -webkit-transform-origin: 100% 100%;
          -ms-transform-origin: 100% 100%;
          transform-origin: 100% 100%;
        }

        .sk-folding-cube .sk-cube2 {
          -webkit-transform: scale(1.1) rotateZ(90deg);
          transform: scale(1.1) rotateZ(90deg);
        }

        .sk-folding-cube .sk-cube3 {
          -webkit-transform: scale(1.1) rotateZ(180deg);
          transform: scale(1.1) rotateZ(180deg);
        }

        .sk-folding-cube .sk-cube4 {
          -webkit-transform: scale(1.1) rotateZ(270deg);
          transform: scale(1.1) rotateZ(270deg);
        }

        .sk-folding-cube .sk-cube2:before {
          -webkit-animation-delay: 0.3s;
          animation-delay: 0.3s;
        }

        .sk-folding-cube .sk-cube3:before {
          -webkit-animation-delay: 0.6s;
          animation-delay: 0.6s;
        }

        .sk-folding-cube .sk-cube4:before {
          -webkit-animation-delay: 0.9s;
          animation-delay: 0.9s;
        }

        @-webkit-keyframes sk-foldCubeAngle {
          0%,
          10% {
            -webkit-transform: perspective(140px) rotateX(-180deg);
            transform: perspective(140px) rotateX(-180deg);
            opacity: 0;
          }
          25%,
          75% {
            -webkit-transform: perspective(140px) rotateX(0deg);
            transform: perspective(140px) rotateX(0deg);
            opacity: 1;
          }
          90%,
          100% {
            -webkit-transform: perspective(140px) rotateY(180deg);
            transform: perspective(140px) rotateY(180deg);
            opacity: 0;
          }
        }

        @keyframes sk-foldCubeAngle {
          0%,
          10% {
            -webkit-transform: perspective(140px) rotateX(-180deg);
            transform: perspective(140px) rotateX(-180deg);
            opacity: 0;
          }
          25%,
          75% {
            -webkit-transform: perspective(140px) rotateX(0deg);
            transform: perspective(140px) rotateX(0deg);
            opacity: 1;
          }
          90%,
          100% {
            -webkit-transform: perspective(140px) rotateY(180deg);
            transform: perspective(140px) rotateY(180deg);
            opacity: 0;
          }
        }

        #loading-message {
          margin-left: 10px;
        }
      `]}firstUpdated(){this.notification=globalThis.lablupNotification,this.endpoints=globalThis.backendaioptions.get("endpoints",[])}_changeSigninMode(){!0===this.change_signin_support&&("SESSION"===this.connection_mode?(this.connection_mode="API",localStorage.setItem("backendaiwebui.connection_mode","API")):(this.connection_mode="SESSION",localStorage.setItem("backendaiwebui.connection_mode","SESSION")),this.requestUpdate())}_getConfigValueByExists(e,t){const i=void 0===e||void 0===t.value||void 0===t.value||""===t.value||'""'===t.value||null===t.value;let o;return"number"==typeof t.defaultValue?(o=isNaN(t.value),i||o?t.defaultValue:t.value):i?t.defaultValue:t.value}refreshWithConfig(e){void 0===e.plugin||void 0===e.plugin.login||""===e.plugin.login?this._enableUserInput():import("../plugins/"+e.plugin.login).then((()=>{console.log("Plugin loaded.")})).catch((e=>{!0!==this.loginPanel.open?(void 0!==e.message?(this.notification.text=ii.relieve(e.title),this.notification.detail=e.message):this.notification.text=ii.relieve("Plugin loading failed."),this.notification.show(!1,e),this.open()):(this.notification.text=ii.relieve("Login failed. Check login information."),this.notification.show(!1,e))})),this._initGeneralConfigWithKeys(e.general),this._initWSProxyConfigWithKeys(e.wsproxy),this._initResourcesConfigWithKeys(e.resources),this._initEnvironmentsConfigWithKeys(e.environments),this._initMenuConfigWithKeys(e.menu),this._initPluginConfigWithKeys(e.plugin),this._initPipelineConfigWithKeys(e.pipeline)}_initGeneralConfigWithKeys(e){var t,i,o;if(globalThis.backendaiwebui.debug=this._getConfigValueByExists(e,{valueType:"boolean",defaultValue:!1,value:null==e?void 0:e.debug}),globalThis.backendaiwebui.debug&&console.log("Debug flag is set to true"),this.siteDescription=this._getConfigValueByExists(e,{valueType:"string",defaultValue:"WebUI",value:null==e?void 0:e.siteDescription}),this.signup_support=this._getConfigValueByExists(e,{valueType:"boolean",defaultValue:!1,value:null==e?void 0:e.signupSupport}),this.signup_support&&((null===(t=this.shadowRoot)||void 0===t?void 0:t.querySelector("#signup-dialog")).active=!0),this.allowAnonymousChangePassword=this._getConfigValueByExists(e,{valueType:"boolean",defaultValue:!1,value:null==e?void 0:e.allowAnonymousChangePassword}),this.change_signin_support=this._getConfigValueByExists(e,{valueType:"boolean",defaultValue:!1,value:null==e?void 0:e.allowChangeSigninMode}),this.allow_project_resource_monitor=this._getConfigValueByExists(e,{valueType:"boolean",defaultValue:!1,value:null==e?void 0:e.allowProjectResourceMonitor}),this.allow_manual_image_name_for_session=this._getConfigValueByExists(e,{valueType:"boolean",defaultValue:!1,value:null==e?void 0:e.allowManualImageNameForSession}),this.allow_signout=this._getConfigValueByExists(e,{valueType:"boolean",defaultValue:!1,value:null==e?void 0:e.allowSignout}),this.login_attempt_limit=this._getConfigValueByExists(e,{valueType:"number",defaultValue:this.login_attempt_limit,value:parseInt(null==e?void 0:e.loginAttemptLimit)}),this.login_block_time=this._getConfigValueByExists(e,{valueType:"number",defaultValue:this.login_block_time,value:parseInt(null==e?void 0:e.loginBlockTime)}),this.api_endpoint=this._getConfigValueByExists(e,{valueType:"string",defaultValue:this.api_endpoint||"",value:null==e?void 0:e.apiEndpoint}),""===this.api_endpoint)this.apiEndpointContainer.style.display="flex",this.apiEndpointHumanizedInput.style.display="none";else{""===this._getConfigValueByExists(e,{valueType:"string",defaultValue:"",value:null==e?void 0:e.apiEndpointText})?(this.apiEndpointContainer.style.display="flex",this.apiEndpointHumanizedInput.style.display="none",(null===(i=this.shadowRoot)||void 0===i?void 0:i.querySelector("#endpoint-button")).disabled=!0):(this.apiEndpointInput.disabled=!0,this.apiEndpointHumanizedInput.disabled=!0)}this.allowSignupWithoutConfirmation=this._getConfigValueByExists(e,{valueType:"boolean",defaultValue:!1,value:null==e?void 0:e.allowSignupWithoutConfirmation}),this.default_session_environment=this._getConfigValueByExists(e,{valueType:"string",defaultValue:"",value:null==e?void 0:e.defaultSessionEnvironment}),this.default_import_environment=this._getConfigValueByExists(e,{valueType:"string",defaultValue:"cr.backend.ai/stable/python",value:null==e?void 0:e.defaultImportEnvironment}),this.maskUserInfo=this._getConfigValueByExists(e,{valueType:"boolean",defaultValue:!1,value:null==e?void 0:e.maskUserInfo}),this.singleSignOnVendors=this._getConfigValueByExists(e,{valueType:"array",defaultValue:[],value:(null==e?void 0:e.singleSignOnVendors)?null==e?void 0:e.singleSignOnVendors.split(",").map((e=>e.trim())):[]}),this.ssoRealmName=this._getConfigValueByExists(e,{valueType:"string",defaultValue:"",value:(null==e?void 0:e.ssoRealmName)?null==e?void 0:e.ssoRealmName:""}),this._enableContainerCommit=this._getConfigValueByExists(e,{valueType:"boolean",defaultValue:!1,value:null==e?void 0:e.enableContainerCommit}),this.appDownloadUrl=this._getConfigValueByExists(e,{valueType:"string",defaultValue:"https://github.com/lablup/backend.ai-webui/releases/download",value:null==e?void 0:e.appDownloadUrl}),this.allowAppDownloadPanel=this._getConfigValueByExists(e,{valueType:"boolean",defaultValue:!0,value:null==e?void 0:e.allowAppDownloadPanel}),this.systemSSHImage=this._getConfigValueByExists(e,{valueType:"string",defaultValue:"",value:null==e?void 0:e.systemSSHImage}),this.hideAgents=this._getConfigValueByExists(e,{valueType:"boolean",defaultValue:!0,value:null==e?void 0:e.hideAgents}),this.enable2FA=this._getConfigValueByExists(e,{valueType:"boolean",defaultValue:!1,value:null==e?void 0:e.enable2FA}),this.force2FA=this._getConfigValueByExists(e,{valueType:"boolean",defaultValue:!1,value:null==e?void 0:e.force2FA}),this._enablePipeline=this._getConfigValueByExists(e,{valueType:"boolean",defaultValue:!1,value:!1});const s=localStorage.getItem("backendaiwebui.connection_mode");globalThis.isElectron&&null!==s&&""!==s&&'""'!==s?this.connection_mode="SESSION"===s?"SESSION":"API":this.connection_mode=this._getConfigValueByExists(e,{valueType:"boolean",defaultValue:this.connection_mode,value:(null!==(o=null==e?void 0:e.connectionMode)&&void 0!==o?o:"SESSION").toUpperCase()}),this.directoryBasedUsage=this._getConfigValueByExists(e,{valueType:"boolean",defaultValue:!1,value:null==e?void 0:e.directoryBasedUsage}),this.maxCountForPreopenPorts=this._getConfigValueByExists(e,{valueType:"number",defaultValue:this.maxCountForPreopenPorts,value:parseInt(null==e?void 0:e.maxCountForPreopenPorts)}),this.allowCustomResourceAllocation=this._getConfigValueByExists(e,{valueType:"boolean",defaultValue:!0,value:null==e?void 0:e.allowCustomResourceAllocation}),this.isDirectorySizeVisible=this._getConfigValueByExists(e,{valueType:"boolean",defaultValue:!1,value:null==e?void 0:e.isDirectorySizeVisible}),this.eduAppNamePrefix=this._getConfigValueByExists(e,{valueType:"string",defaultValue:"",value:null==e?void 0:e.eduAppNamePrefix}),this.supportModelStore=this._getConfigValueByExists(e,{valueType:"boolean",defaultValue:!1,value:null==e?void 0:e.supportModelStore})}_initWSProxyConfigWithKeys(e){this.proxy_url=this._getConfigValueByExists(e,{valueType:"string",defaultValue:"http://127.0.0.1:5050/",value:null==e?void 0:e.proxyURL})}_initResourcesConfigWithKeys(e){var t;this.openPortToPublic=this._getConfigValueByExists(e,{valueType:"boolean",defaultValue:!1,value:null==e?void 0:e.openPortToPublic}),this.allowPreferredPort=this._getConfigValueByExists(e,{valueType:"boolean",defaultValue:!1,value:null==e?void 0:e.allowPreferredPort}),this.allowNonAuthTCP=this._getConfigValueByExists(e,{valueType:"boolean",defaultValue:!1,value:null==e?void 0:e.allowNonAuthTCP}),this.maxCPUCoresPerContainer=this._getConfigValueByExists(e,{valueType:"number",defaultValue:64,value:parseInt(null!==(t=null==e?void 0:e.maxCPUCoresPerContainer)&&void 0!==t?t:"")}),this.maxMemoryPerContainer=this._getConfigValueByExists(e,{valueType:"number",defaultValue:16,value:parseInt(null==e?void 0:e.maxMemoryPerContainer)}),this.maxCUDADevicesPerContainer=this._getConfigValueByExists(e,{valueType:"number",defaultValue:16,value:parseInt(null==e?void 0:e.maxCUDADevicesPerContainer)}),this.maxCUDASharesPerContainer=this._getConfigValueByExists(e,{valueType:"number",defaultValue:16,value:parseInt(null==e?void 0:e.maxCUDASharesPerContainer)}),this.maxROCMDevicesPerContainer=this._getConfigValueByExists(e,{valueType:"number",defaultValue:10,value:parseInt(null==e?void 0:e.maxROCMDevicesPerContainer)}),this.maxTPUDevicesPerContainer=this._getConfigValueByExists(e,{valueType:"number",defaultValue:8,value:parseInt(null==e?void 0:e.maxTPUDevicesPerContainer)}),this.maxIPUDevicesPerContainer=this._getConfigValueByExists(e,{valueType:"number",defaultValue:8,value:parseInt(null==e?void 0:e.maxIPUDevicesPerContainer)}),this.maxATOMDevicesPerContainer=this._getConfigValueByExists(e,{valueType:"number",defaultValue:8,value:parseInt(null==e?void 0:e.maxATOMDevicesPerContainer)}),this.maxWarboyDevicesPerContainer=this._getConfigValueByExists(e,{valueType:"number",defaultValue:8,value:parseInt(null==e?void 0:e.maxWarboyDevicesPerContainer)}),this.maxShmPerContainer=this._getConfigValueByExists(e,{valueType:"number",defaultValue:2,value:parseFloat(null==e?void 0:e.maxShmPerContainer)});this.maxFileUploadSize=this._getConfigValueByExists(e,{valueType:"number",defaultValue:-1,value:parseInt(null==e?void 0:e.maxFileUploadSize)})}_initEnvironmentsConfigWithKeys(e){this.allow_image_list=this._getConfigValueByExists(e,{valueType:"array",defaultValue:[],value:(null==e?void 0:e.allowlist)?null==e?void 0:e.allowlist.split(",").map((e=>e.trim())):[]})}_initMenuConfigWithKeys(e){var t,i,o,s;this.blockList=this._getConfigValueByExists(e,{valueType:"array",defaultValue:[],value:(null==e?void 0:e.blocklist)?null===(i=null===(t=null==e?void 0:e.blocklist)||void 0===t?void 0:t.split(","))||void 0===i?void 0:i.map((e=>e.trim())):[]}),this.inactiveList=this._getConfigValueByExists(e,{valueType:"array",defaultValue:[],value:(null==e?void 0:e.inactivelist)?null===(s=null===(o=null==e?void 0:e.inactivelist)||void 0===o?void 0:o.split(","))||void 0===s?void 0:s.map((e=>e.trim())):[]})}_initPipelineConfigWithKeys(e){this.fasttrackEndpoint=this._getConfigValueByExists(e,{valueType:"string",defaultValue:"",value:null==e?void 0:e.frontendEndpoint})}_initPluginConfigWithKeys(e){this.pluginPages=this._getConfigValueByExists(e,{valueType:"string",defaultValue:"",value:null==e?void 0:e.page})}open(){if(!0!==this.loginPanel.open){this.loginPanel.show();const e=new URLSearchParams(window.location.search).get("token");this.signup_support&&""!==this.api_endpoint&&null!=e&&this._showSignupDialog(e)}!0===this.blockPanel.open&&this.blockPanel.hide()}close(){!0===this.loginPanel.open&&this.loginPanel.hide(),!0===this.blockPanel.open&&this.blockPanel.hide()}block(e="",t=""){this.blockMessage=e,this.blockType=t,setTimeout((()=>{!1===this.blockPanel.open&&!1===this.is_connected&&!1===this.loginPanel.open&&this.blockPanel.show()}),2e3)}free(){this.blockPanel.hide()}_loadConfigFromWebServer(){if(!window.location.href.startsWith(this.api_endpoint)){const e=document.querySelector("backend-ai-webui");if(e){const t=["general.apiEndpoint","general.apiEndpointText","general.appDownloadUrl","wsproxy"],i=new URL("./config.toml",this.api_endpoint).href;return e._parseConfig(i,!0).then((i=>{this.siteDescription=(null==i?void 0:i["general.siteDescription"])||this.siteDescription||"",t.forEach((e=>{globalThis.backendaiutils.deleteNestedKeyFromObject(i,e)}));const o=globalThis.backendaiutils.mergeNestedObjects(e.config,i);e.config=o,this.refreshWithConfig(o)}))}}return Promise.resolve(void 0)}async login(e=!0){if(""===this.api_endpoint){const e=localStorage.getItem("backendaiwebui.api_endpoint");null!==e&&(this.api_endpoint=e.replace(/^"+|"+$/g,""))}this.api_endpoint=this.api_endpoint.trim(),"SESSION"===this.connection_mode?(globalThis.isElectron&&this._loadConfigFromWebServer(),this._connectUsingSession(e)):"API"===this.connection_mode?await this._connectUsingAPI(e):this.open()}async check_login(e=!0){var t;if(""===this.api_endpoint){const e=localStorage.getItem("backendaiwebui.api_endpoint");null!==e&&(this.api_endpoint=e.replace(/^"+|"+$/g,""))}return this.api_endpoint=this.api_endpoint.trim(),"SESSION"===this.connection_mode?(globalThis.isElectron&&(null===(t=this._loadConfigFromWebServer())||void 0===t||t.then((()=>{const e=document.querySelector("backend-ai-webui");e&&e.loadConfig(e.config)}))),this._checkLoginUsingSession()):(this.connection_mode,Promise.resolve(!1))}async _checkLoginUsingSession(e=!0){return""===this.api_endpoint?Promise.resolve(!1):(this.clientConfig=new Jm.ClientConfig(this.user_id,this.password,this.api_endpoint,"SESSION"),this.client=new Jm.Client(this.clientConfig,"Backend.AI Console."),this.client.get_manager_version().then((async()=>{var e;const t=await(null===(e=this.client)||void 0===e?void 0:e.check_login());return Promise.resolve(t)})))}async _logoutSession(e=!0){var t;return null===(t=this.client)||void 0===t?void 0:t.logout()}async loginWithSAML(){var e;const t=null===(e=this.client)||void 0===e?void 0:e.newUnsignedRequest("POST","/saml/login",null),i=document.createElement("form"),o=document.createElement("input");i.appendChild(o),document.body.appendChild(i),i.setAttribute("method","POST"),i.setAttribute("action",null==t?void 0:t.uri),o.setAttribute("type","hidden"),o.setAttribute("name","redirect_to"),o.setAttribute("value",window.location.href),i.submit()}async loginWithOpenID(){var e;const t=null===(e=this.client)||void 0===e?void 0:e.newUnsignedRequest("POST","/openid/login",null),i=document.createElement("form"),o=document.createElement("input");i.appendChild(o),document.body.appendChild(i),i.setAttribute("method","POST"),i.setAttribute("action",null==t?void 0:t.uri),o.setAttribute("type","hidden"),o.setAttribute("name","redirect_to"),o.setAttribute("value",window.location.href),i.submit()}_showSignupDialog(e){var t;if(this.api_endpoint=this.apiEndpointInput.value.replace(/\/+$/,"")||this.api_endpoint.trim(),""===this.api_endpoint)return this.notification.text=Ye("error.APIEndpointIsEmpty"),void this.notification.show();const i=null===(t=this.shadowRoot)||void 0===t?void 0:t.querySelector("#signup-dialog");i.endpoint=this.api_endpoint,i.allowSignupWithoutConfirmation=this.allowSignupWithoutConfirmation,i.open(e)}_showChangePasswordEmailDialog(){var e;(null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelector("#change-password-confirm-dialog")).show()}async _sendChangePasswordEmail(){var e,t;const i=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelector("#password-change-email");if(i.value&&i.validity.valid)try{const e=new Jm.ClientConfig("","",this.api_endpoint,"SESSION"),o=new Jm.Client(e,"Backend.AI Console.");await o.cloud.send_password_change_email(i.value),(null===(t=this.shadowRoot)||void 0===t?void 0:t.querySelector("#change-password-confirm-dialog")).hide(),this.notification.text=Ye("signup.EmailSent"),this.notification.show()}catch(e){console.error(e),this.notification.text=e.message||Ye("signup.SendError"),this.notification.show()}}_cancelLogin(e){this._hideDialog(e),this.open()}_submitIfEnter(e){13===e.keyCode&&this._login()}async _token_login(e){var t;document.cookie=`sToken=${e}; expires=Session; path=/`;try{await(null===(t=this.client)||void 0===t?void 0:t.token_login(e))||(this.notification.text=Ye("eduapi.CannotAuthorizeSessionByToken"),this.notification.show(!0)),window.location.href="/"}catch(e){console.error(e),this.notification.text=Ye("eduapi.CannotAuthorizeSessionByToken"),this.notification.show(!0,e),window.location.href="/"}}_login(){const e=globalThis.backendaioptions.get("login_attempt",0,"general"),t=globalThis.backendaioptions.get("last_login",Math.floor(Date.now()/1e3),"general"),i=Math.floor(Date.now()/1e3);if(e>=this.login_attempt_limit&&i-t>this.login_block_time)globalThis.backendaioptions.set("last_login",i,"general"),globalThis.backendaioptions.set("login_attempt",0,"general");else{if(e>=this.login_attempt_limit)return globalThis.backendaioptions.set("last_login",i,"general"),globalThis.backendaioptions.set("login_attempt",e+1,"general"),this.notification.text=Ye("login.TooManyAttempt"),void this.notification.show();globalThis.backendaioptions.set("login_attempt",e+1,"general")}if(this.api_endpoint=this.apiEndpointInput.value.replace(/\/+$/,""),""===this.api_endpoint)return this.notification.text=Ye("login.APIEndpointEmpty"),void this.notification.show();this._disableUserInput(),"SESSION"===this.connection_mode?(this.user_id=this.userIdInput.value,this.password=this.passwordInput.value,this.otp=this.otpInput.value,this.user_id&&"undefined"!==this.user_id&&this.password&&"undefined"!==this.password?this._connectUsingSession(!0):(this.notification.text=Ye("login.PleaseInputLoginInfo"),this.notification.show(),this._enableUserInput())):(this.api_key=this.apiKeyInput.value,this.secret_key=this.secretKeyInput.value,this.api_key&&"undefined"!==this.api_key&&this.secret_key&&"undefined"!==this.secret_key?this._connectUsingAPI(!0):(this.notification.text=Ye("login.PleaseInputLoginInfo"),this.notification.show(),this._enableUserInput()))}async _connectUsingSession(e=!0){return""===this.api_endpoint?(this.free(),this.open(),Promise.resolve(!1)):(this.clientConfig=new Jm.ClientConfig(this.user_id,this.password,this.api_endpoint,"SESSION"),this.client=new Jm.Client(this.clientConfig,"Backend.AI Console."),this.client.get_manager_version().then((async()=>{var t;if(!1===await this.check_login()){this.block(Ye("login.PleaseWait"),Ye("login.ConnectingToCluster"));const i=window.location.search,o=new URLSearchParams(i).get("sToken")||null;return null!==o?void this._token_login(o):(null===(t=this.client)||void 0===t||t.login(this.otp).then((async e=>!1===e?(this.open(),""!==this.user_id&&""!==this.password&&(this.notification.text=ii.relieve("Login information mismatch. Please check your login information."),this.notification.show()),Promise.resolve(!1)):e.fail_reason?(this.open(),"OTP not provided"==e.fail_reason?(this.otpRequired=!0,await this.otpInput.updateComplete,this.otpInput.focus(),this._disableUserInput(),this.waitingAnimation.style.display="none"):0===e.fail_reason.indexOf("Password expired on ")?this.needToResetPassword=!0:""!==this.user_id&&""!==this.password&&(this.notification.text=ii.relieve(e.fail_reason),this.notification.show()),Promise.resolve(!1)):(this.is_connected=!0,this._connectGQL()))).catch((t=>{this.free(),console.log(t),e&&(!0!==this.loginPanel.open?void 0!==t.message?(this.notification.text=ii.relieve(t.title),this.notification.detail=t.message):this.notification.text=ii.relieve("Login information mismatch. If the information is correct, logout and login again."):void 0!==t.message?(this.notification.text=ii.relieve(t.title),this.notification.detail=t.message):this.notification.text=ii.relieve("Login failed. Check login information."),this.notification.show())})),this.open(),this._enableUserInput(),Promise.resolve(!0))}return this.is_connected=!0,this._connectGQL()})).catch((t=>(this.free(),this.open(),this._enableUserInput(),e&&(this.notification.text=ii.relieve("Endpoint is unreachable. Please check the connection or endpoint"),this.notification.show()),Promise.resolve(!1)))))}_connectUsingAPI(e=!0){return this.clientConfig=new Jm.ClientConfig(this.api_key,this.secret_key,this.api_endpoint),this.client=new Jm.Client(this.clientConfig,"Backend.AI Console."),this.client.ready=!1,this.client.get_manager_version().then((t=>this._connectGQL(e))).catch((e=>{console.log(e),this._enableUserInput()}))}_connectGQL(e=!0){return!0!==this.loginPanel.open&&this.block(),new Promise((()=>{const e=Math.floor(Date.now()/1e3);globalThis.backendaioptions.set("last_login",e,"general"),globalThis.backendaioptions.set("login_attempt",0,"general"),this._connectViaGQL()})).catch((t=>{this.free(),e&&(!0!==this.loginPanel.open?(void 0!==t.message?408===t.status?(this.notification.text=Ye("error.LoginSucceededManagerNotResponding"),this.notification.detail=t.message):(this.notification.text=ii.relieve(t.title),this.notification.detail=t.message):this.notification.text=ii.relieve("Login information mismatch. If the information is correct, logout and login again."),this.notification.show(!1,t),this.open()):(this.notification.text=ii.relieve("Login failed. Check login information."),this.notification.show())),this.open(),this._enableUserInput()}))}_connectViaGQL(){var e;const t=`query { keypair { ${["user_id","resource_policy","user"].join(" ")} } }`;return null===(e=this.client)||void 0===e?void 0:e.query(t,{}).then((async e=>{this.is_connected=!0,globalThis.backendaiclient=this.client;const t=e.keypair.resource_policy;globalThis.backendaiclient.resource_policy=t,this.user=e.keypair.user;const i=`query { user{ ${["username","email","full_name","is_active","role","domain_name","groups {name, id}","need_password_change"].join(" ")} } }`,o={uuid:this.user};if(this._enablePipeline){if(!globalThis.backendaiclient.getPipelineToken()){const e=(await globalThis.backendaiclient.keypair.list(this.user_id,["access_key","secret_key"],!0)).keypairs,t={username:this.user_id,password:this.password,access_key:e[0].access_key,secret_key:e[0].secret_key};await globalThis.backendaiclient.pipeline.login(t)}}return globalThis.backendaiclient.query(i,o)})).then((e=>{const t=e.user.email;this.email!==t&&(this.email=t),this.user_groups=e.user.groups;const i=e.user.role;return this.domain_name=e.user.domain_name,globalThis.backendaiclient.email=this.email,globalThis.backendaiclient.full_name=e.user.full_name,globalThis.backendaiclient.is_admin=!1,globalThis.backendaiclient.is_superadmin=!1,globalThis.backendaiclient.need_password_change=e.user.need_password_change,["superadmin","admin"].includes(i)&&(globalThis.backendaiclient.is_admin=!0),["superadmin"].includes(i)&&(globalThis.backendaiclient.is_superadmin=!0),globalThis.backendaiclient.group.list(!0,!1,["id","name","description","is_active"])})).then((async e=>{const t=e.groups,i=this.user_groups.map((({id:e})=>e));if(null!==t){globalThis.backendaiclient.groups=t.filter((e=>{if(i.includes(e.id))return e})).map((e=>e.name)).sort();const e=Object();t.forEach((function(t){e[t.name]=t.id})),globalThis.backendaiclient.groupIds=e}else globalThis.backendaiclient.groups=["default"];const o=globalThis.backendaiutils._readRecentProjectGroup();globalThis.backendaiclient.current_group=o||globalThis.backendaiclient.groups[0],globalThis.backendaiclient.current_group_id=()=>globalThis.backendaiclient.groupIds[globalThis.backendaiclient.current_group],globalThis.backendaiclient._config.siteDescription=this.siteDescription,globalThis.backendaiclient._config._proxyURL=this.proxy_url,globalThis.backendaiclient._config._proxyToken="",globalThis.backendaiclient._config.domainName=this.domain_name,globalThis.backendaiclient._config.default_session_environment=this.default_session_environment,globalThis.backendaiclient._config.default_import_environment=this.default_import_environment,globalThis.backendaiclient._config.allow_project_resource_monitor=this.allow_project_resource_monitor,globalThis.backendaiclient._config.allow_manual_image_name_for_session=this.allow_manual_image_name_for_session,globalThis.backendaiclient._config.openPortToPublic=this.openPortToPublic,globalThis.backendaiclient._config.allowPreferredPort=this.allowPreferredPort,globalThis.backendaiclient._config.allowNonAuthTCP=this.allowNonAuthTCP,globalThis.backendaiclient._config.maxCPUCoresPerContainer=this.maxCPUCoresPerContainer,globalThis.backendaiclient._config.maxMemoryPerContainer=this.maxMemoryPerContainer,globalThis.backendaiclient._config.maxCUDADevicesPerContainer=this.maxCUDADevicesPerContainer,globalThis.backendaiclient._config.maxCUDASharesPerContainer=this.maxCUDASharesPerContainer,globalThis.backendaiclient._config.maxROCMDevicesPerContainer=this.maxROCMDevicesPerContainer,globalThis.backendaiclient._config.maxTPUDevicesPerContainer=this.maxTPUDevicesPerContainer,globalThis.backendaiclient._config.maxIPUDevicesPerContainer=this.maxIPUDevicesPerContainer,globalThis.backendaiclient._config.maxATOMDevicesPerContainer=this.maxATOMDevicesPerContainer,globalThis.backendaiclient._config.maxWarboyDevicesPerContainer=this.maxWarboyDevicesPerContainer,globalThis.backendaiclient._config.maxShmPerContainer=this.maxShmPerContainer,globalThis.backendaiclient._config.maxFileUploadSize=this.maxFileUploadSize,globalThis.backendaiclient._config.allow_image_list=this.allow_image_list,globalThis.backendaiclient._config.maskUserInfo=this.maskUserInfo,globalThis.backendaiclient._config.singleSignOnVendors=this.singleSignOnVendors,globalThis.backendaiclient._config.ssoRealmName=this.ssoRealmName,globalThis.backendaiclient._config.enableContainerCommit=this._enableContainerCommit,globalThis.backendaiclient._config.appDownloadUrl=this.appDownloadUrl,globalThis.backendaiclient._config.allowAppDownloadPanel=this.allowAppDownloadPanel,globalThis.backendaiclient._config.systemSSHImage=this.systemSSHImage,globalThis.backendaiclient._config.fasttrackEndpoint=this.fasttrackEndpoint,globalThis.backendaiclient._config.hideAgents=this.hideAgents,globalThis.backendaiclient._config.enable2FA=this.enable2FA,globalThis.backendaiclient._config.force2FA=this.force2FA,globalThis.backendaiclient._config.directoryBasedUsage=this.directoryBasedUsage,globalThis.backendaiclient._config.maxCountForPreopenPorts=this.maxCountForPreopenPorts,globalThis.backendaiclient._config.allowCustomResourceAllocation=this.allowCustomResourceAllocation,globalThis.backendaiclient._config.isDirectorySizeVisible=this.isDirectorySizeVisible,globalThis.backendaiclient._config.supportModelStore=this.supportModelStore,globalThis.backendaiclient._config.pluginPages=this.pluginPages,globalThis.backendaiclient._config.blockList=this.blockList,globalThis.backendaiclient._config.inactiveList=this.inactiveList,globalThis.backendaiclient._config.allowSignout=this.allow_signout,globalThis.backendaiclient.ready=!0,-1===this.endpoints.indexOf(globalThis.backendaiclient._config.endpoint)&&(this.endpoints.push(globalThis.backendaiclient._config.endpoint),this.endpoints.length>5&&(this.endpoints=this.endpoints.slice(1,6)),globalThis.backendaioptions.set("endpoints",this.endpoints));const s=new CustomEvent("backend-ai-connected",{detail:this.client});document.dispatchEvent(s),this.close(),this._saveLoginInfo(),localStorage.setItem("backendaiwebui.api_endpoint",this.api_endpoint)})).catch((e=>{var t;!0!==this.loginPanel.open?(void 0!==e.message?void 0!==e.title?(this.notification.text=ii.relieve(e.title),this.notification.detail=e.message):(this.notification.text=ii.relieve(e),this.notification.detail=e):this.notification.text=ii.relieve("Login information mismatch. If the information is correct, logout and login again."),this.notification.show(!1,e),this.open()):(this.notification.text=ii.relieve("Login failed. Check login information."),this.notification.show(!0)),401===e.statusCode&&(console.log("automatic logout ..."),this._enablePipeline&&globalThis.backendaiclient.pipeline.logout(),null===(t=this.client)||void 0===t||t.logout()),this._enableUserInput()}))}async _saveLoginInfo(){localStorage.removeItem("backendaiwebui.login.api_key"),localStorage.removeItem("backendaiwebui.login.secret_key"),localStorage.removeItem("backendaiwebui.login.user_id"),localStorage.removeItem("backendaiwebui.login.password")}_toggleEndpoint(){var e,t;const i=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelector("#endpoint-list"),o=null===(t=this.shadowRoot)||void 0===t?void 0:t.querySelector("#endpoint-button");i.anchor=o,i.open=!i.open}_updateEndpoint(){var e;const t=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelector("#endpoint-list");!t.selected||t.selected instanceof Array||(this.api_endpoint=t.selected.value)}_deleteEndpoint(e){const t=this.endpoints.indexOf(e);t>-1&&this.endpoints.splice(t,1),globalThis.backendaioptions.set("endpoints",this.endpoints),this.requestUpdate()}_disableUserInput(){"SESSION"===this.connection_mode?(this.userIdInput.disabled=!0,this.passwordInput.disabled=!0):(this.apiKeyInput.disabled=!0,this.secretKeyInput.disabled=!0),this.waitingAnimation.style.display="flex"}_enableUserInput(){this.userIdInput.disabled=!1,this.passwordInput.disabled=!1,this.apiKeyInput.disabled=!1,this.secretKeyInput.disabled=!1,this.waitingAnimation.style.display="none"}_showEndpointDescription(e){null!=e&&e.stopPropagation(),this._helpDescriptionTitle=Ye("login.EndpointInfo"),this._helpDescription=Ye("login.DescEndpoint"),this.helpDescriptionDialog.show()}_togglePasswordVisibility(e){const t=e.__on,i=e.closest("div").querySelector("mwc-textfield");t?i.setAttribute("type","text"):i.setAttribute("type","password")}render(){return ae`
      <link rel="stylesheet" href="resources/custom.css" />
      <backend-ai-dialog
        id="login-panel"
        noclosebutton
        fixed
        blockscrolling
        persistent
        disablefocustrap
        escapeKeyAction
      >
        <div slot="title">
          <div id="login-title-area"></div>
          <div class="horizontal center layout">
            ${this.isDarkMode?ae`
                  <img
                    class="title-img"
                    src="manifest/backend.ai-text-bgdark.svg"
                    alt="backend.ai"
                  />
                `:ae`
                  <img
                    class="title-img"
                    src="manifest/backend.ai-text.svg"
                    alt="backend.ai"
                  />
                `}
          </div>
        </div>
        <div slot="content" class="login-panel intro centered">
          <div
            class="horizontal center layout"
            style="margin: 0 25px;font-weight:700;min-height:40px; padding-bottom:10px; justify-content: space-between;"
          >
            <h3
              style="flex: 1; white-space: normal; overflow-wrap: break-word; word-break: break-word; margin-right: 10px;"
            >
              ${"SESSION"===this.connection_mode?qt("login.LoginWithE-mailorUsername"):qt("login.LoginWithIAM")}
            </h3>
            ${this.change_signin_support?ae`
                  <div
                    id="change-signin-area"
                    class="vertical center-justified layout"
                    style="flex: 1; text-align: right;"
                  >
                    <div id="change-signin-message">
                      ${qt("login.LoginAnotherway")}
                    </div>
                    <mwc-button
                      outlined
                      class="change-login-mode-button"
                      label="${"SESSION"===this.connection_mode?qt("login.ClickToUseIAM"):qt("login.ClickToUseID")}"
                      @click="${()=>this._changeSigninMode()}"
                    ></mwc-button>
                  </div>
                `:ae``}
          </div>
          <div class="login-form">
            <div id="waiting-animation" class="horizontal layout wrap">
              <div class="sk-folding-cube">
                <div class="sk-cube1 sk-cube"></div>
                <div class="sk-cube2 sk-cube"></div>
                <div class="sk-cube4 sk-cube"></div>
                <div class="sk-cube3 sk-cube"></div>
              </div>
              <div id="loading-message">Waiting...</div>
            </div>
            <form
              id="session-login-form"
              class="${"SESSION"===this.connection_mode?"block":"none"}"
            >
              <fieldset class="login-input">
                <div
                  class="horizontal flex layout login-input-without-trailing-icon"
                >
                  <mwc-icon-button
                    icon="email"
                    class="layout align-self-center"
                    disabled
                  ></mwc-icon-button>
                  <mwc-textfield
                    type="email"
                    id="id_user_id"
                    maxlength="64"
                    autocomplete="username"
                    label="${qt("login.E-mailorUsername")}"
                    value="${this.user_id}"
                    @keyup="${this._submitIfEnter}"
                  ></mwc-textfield>
                </div>
                <div class="horizontal flex layout">
                  <mwc-icon-button
                    icon="vpn_key"
                    class="layout align-self-center"
                    disabled
                  ></mwc-icon-button>
                  <mwc-textfield
                    type="password"
                    id="id_password"
                    autocomplete="current-password"
                    label="${qt("login.Password")}"
                    value="${this.password}"
                    @keyup="${this._submitIfEnter}"
                  ></mwc-textfield>
                  <mwc-icon-button-toggle
                    off
                    onIcon="visibility"
                    offIcon="visibility_off"
                    style="align-self:center;"
                    @click="${e=>this._togglePasswordVisibility(e.target)}"
                  ></mwc-icon-button-toggle>
                </div>
                <div
                  class="horizontal flex layout login-input-without-trailing-icon"
                  style="display: ${this.otpRequired?"flex":"none"};"
                >
                  <mwc-icon-button
                    icon="pin"
                    class="layout align-self-center"
                    disabled
                  ></mwc-icon-button>
                  <mwc-textfield
                    type="number"
                    id="otp"
                    label="${qt("totp.OTP")}"
                    value="${this.otp}"
                    @keyup="${this._submitIfEnter}"
                  ></mwc-textfield>
                </div>
              </fieldset>
            </form>
            <form
              id="api-login-form"
              class="${"SESSION"===this.connection_mode?"none":"block"}"
            >
              <fieldset class="login-input">
                <div
                  class="horizontal flex layout login-input-without-trailing-icon"
                >
                  <mwc-icon-button
                    icon="lock"
                    class="layout align-self-center"
                    disabled
                  ></mwc-icon-button>
                  <mwc-textfield
                    type="text"
                    id="id_api_key"
                    maxLength="20"
                    label="${qt("login.APIKey")}"
                    value="${this.api_key}"
                    @keyup="${this._submitIfEnter}"
                  ></mwc-textfield>
                </div>
                <div
                  class="horizontal flex layout login-input-without-trailing-icon"
                >
                  <mwc-icon-button
                    icon="vpn_key"
                    class="layout align-self-center"
                    disabled
                  ></mwc-icon-button>
                  <mwc-textfield
                    type="password"
                    id="id_secret_key"
                    maxLength="40"
                    label="${qt("login.SecretKey")}"
                    value="${this.secret_key}"
                    @keyup="${this._submitIfEnter}"
                  ></mwc-textfield>
                </div>
              </fieldset>
            </form>
            <form>
              <fieldset class="login-input">
                <div
                  class="horizontal layout"
                  id="id_api_endpoint_container"
                  style="display:none;"
                >
                  <mwc-icon-button
                    id="endpoint-button"
                    icon="cloud_queue"
                    @click="${()=>this._toggleEndpoint()}"
                  ></mwc-icon-button>
                  <mwc-menu
                    id="endpoint-list"
                    @selected="${()=>this._updateEndpoint()}"
                  >
                    <mwc-list-item disabled>
                      ${qt("login.EndpointHistory")}
                    </mwc-list-item>
                    ${0===this.endpoints.length?ae`
                          <mwc-list-item value="">
                            ${qt("login.NoEndpointSaved")}
                          </mwc-list-item>
                        `:ae``}
                    ${this.endpoints.map((e=>ae`
                        <mwc-list-item value="${e}">
                          <div
                            class="horizontal justified center flex layout"
                            style="width:365px;"
                          >
                            <span>${e}</span>
                            <span class="flex"></span>
                            <mwc-icon-button
                              class="endpoint-control-button"
                              icon="delete"
                              @click="${()=>this._deleteEndpoint(e)}"
                            ></mwc-icon-button>
                          </div>
                        </mwc-list-item>
                      `))}
                  </mwc-menu>
                  <mwc-textfield
                    class="endpoint-text"
                    type="text"
                    id="id_api_endpoint"
                    maxLength="2048"
                    label="${qt("login.Endpoint")}"
                    pattern="^https?://(.*)"
                    auto-validate
                    validationMessage="${Ye("login.EndpointStartWith")}"
                    value="${this.api_endpoint}"
                    @keyup="${this._submitIfEnter}"
                  ></mwc-textfield>
                  <mwc-icon-button
                    icon="info"
                    class="info"
                    style="margin-top:4px;"
                    @click="${e=>this._showEndpointDescription(e)}"
                  ></mwc-icon-button>
                </div>
                <mwc-textfield
                  class="endpoint-text"
                  type="text"
                  id="id_api_endpoint_humanized"
                  maxLength="2048"
                  style="display:none;"
                  label="${qt("login.Endpoint")}"
                  icon="cloud"
                  value=""
                ></mwc-textfield>
                <mwc-button
                  unelevated
                  fullwidth
                  id="login-button"
                  icon="check"
                  style="padding-top: 10px;"
                  label="${qt("login.Login")}"
                  @click="${()=>this._login()}"
                ></mwc-button>
                ${this.singleSignOnVendors.includes("saml")?ae`
                      <mwc-button
                        id="sso-login-saml-button"
                        label="${qt("login.SingleSignOn.LoginWithSAML")}"
                        fullwidth
                        @click="${()=>this.loginWithSAML()}"
                      ></mwc-button>
                    `:ae``}
                ${this.singleSignOnVendors.includes("openid")?ae`
                      <mwc-button
                        id="sso-login-openid-button"
                        label="${qt("login.SingleSignOn.LoginWithRealm",{realmName:this.ssoRealmName||"OpenID"})}"
                        fullwidth
                        @click="${()=>this.loginWithOpenID()}"
                      ></mwc-button>
                    `:ae``}
                <div
                  id="additional-action-area"
                  class="layout horizontal"
                  style="align-items: flex-end;"
                >
                  ${this.signup_support?ae`
                        <div
                          id="signup-area"
                          class="vertical center-justified layout"
                        >
                          <div id="signup-message">${qt("login.NotAUser")}</div>
                          <mwc-button
                            outlined
                            label="${qt("login.SignUp")}"
                            @click="${()=>this._showSignupDialog()}"
                          ></mwc-button>
                        </div>
                      `:ae``}
                  ${this.signup_support&&this.allowAnonymousChangePassword?ae`
                        <span class="flex"></span>
                      `:ae``}
                  ${this.allowAnonymousChangePassword?ae`
                        <div
                          id="change-password-area"
                          class="vertical center-justified layout"
                        >
                          <div id="change-password-message">
                            ${qt("login.ForgotPassword")}
                          </div>
                          <mwc-button
                            outlined
                            label="${qt("login.ChangePassword")}"
                            @click="${()=>this._showChangePasswordEmailDialog()}"
                          ></mwc-button>
                        </div>
                      `:ae``}
                </div>
              </fieldset>
            </form>
          </div>
          <backend-ai-react-reset-password-required-modal
            value="${JSON.stringify({open:this.needToResetPassword,username:this.user_id,currentPassword:this.password,api_endpoint:this.api_endpoint})}"
            @cancel="${e=>this.needToResetPassword=!1}"
            @ok="${e=>{this.needToResetPassword=!1,this.passwordInput.value="",this.notification.text=Ye("login.PasswordChanged"),this.notification.show()}}"
          ></backend-ai-react-reset-password-required-modal>
        </div>
      </backend-ai-dialog>
      <backend-ai-dialog
        id="change-password-confirm-dialog"
        fixed
        backdrop
        blockscrolling
        persistent
        disablefocustrap
      >
        <span slot="title">${qt("login.SendChangePasswordEmail")}</span>
        <div slot="content">
          <section>
            <div style="padding:1em">
              ${qt("login.DescChangePasswordEmail")}
            </div>
          </section>
          <mwc-textfield
            type="email"
            id="password-change-email"
            maxLength="64"
            label="E-mail"
            value=""
            autofocus
            auto-validate
            validationMessage="${qt("signup.InvalidEmail")}"
            pattern="^[A-Z0-9a-z#-_]+@.+\\..+$"
          ></mwc-textfield>
        </div>
        <div slot="footer" class="horizontal center-justified flex layout">
          <mwc-button
            outlined
            fullwidth
            icon="check"
            label="${qt("login.EmailSendButton")}"
            @click="${()=>this._sendChangePasswordEmail()}"
          ></mwc-button>
        </div>
      </backend-ai-dialog>
      <backend-ai-dialog
        id="block-panel"
        fixed
        blockscrolling
        persistent
        escapeKeyAction
      >
        ${""!==this.blockMessage?ae`
              ${""!==this.blockType?ae`
                    <span slot="title" id="work-title">${this.blockType}</span>
                  `:ae``}
              <div slot="content" style="text-align:center;padding-top:15px;">
                ${this.blockMessage}
              </div>
              <div
                slot="footer"
                class="horizontal center-justified flex layout"
              >
                <mwc-button
                  outlined
                  fullwidth
                  label="${qt("login.CancelLogin")}"
                  @click="${e=>this._cancelLogin(e)}"
                ></mwc-button>
              </div>
            `:ae``}
      </backend-ai-dialog>
      <backend-ai-dialog id="help-description" fixed backdrop>
        <span slot="title">${this._helpDescriptionTitle}</span>
        <div
          slot="content"
          class="horizontal layout center"
          style="margin:10px;"
        >
          <div style="font-size:14px;">
            ${mE(this._helpDescription)}
          </div>
        </div>
      </backend-ai-dialog>
      <backend-ai-signup id="signup-dialog"></backend-ai-signup>
    `}};o([Zt({type:String})],gE.prototype,"siteDescription",void 0),o([Zt({type:String})],gE.prototype,"api_key",void 0),o([Zt({type:String})],gE.prototype,"secret_key",void 0),o([Zt({type:String})],gE.prototype,"user_id",void 0),o([Zt({type:String})],gE.prototype,"password",void 0),o([Zt({type:String})],gE.prototype,"proxy_url",void 0),o([Zt({type:String})],gE.prototype,"api_endpoint",void 0),o([Zt({type:String})],gE.prototype,"domain_name",void 0),o([Zt({type:String})],gE.prototype,"default_session_environment",void 0),o([Zt({type:String})],gE.prototype,"default_import_environment",void 0),o([Zt({type:String})],gE.prototype,"blockType",void 0),o([Zt({type:String})],gE.prototype,"blockMessage",void 0),o([Zt({type:String})],gE.prototype,"appDownloadUrl",void 0),o([Zt({type:Boolean})],gE.prototype,"allowAppDownloadPanel",void 0),o([Zt({type:String})],gE.prototype,"connection_mode",void 0),o([Zt({type:String})],gE.prototype,"systemSSHImage",void 0),o([Zt({type:String})],gE.prototype,"fasttrackEndpoint",void 0),o([Zt({type:Number})],gE.prototype,"login_attempt_limit",void 0),o([Zt({type:Number})],gE.prototype,"login_block_time",void 0),o([Zt({type:String})],gE.prototype,"user",void 0),o([Zt({type:String})],gE.prototype,"email",void 0),o([Zt({type:Object})],gE.prototype,"config",void 0),o([Zt({type:Boolean})],gE.prototype,"is_connected",void 0),o([Zt({type:Object})],gE.prototype,"clientConfig",void 0),o([Zt({type:Object})],gE.prototype,"client",void 0),o([Zt({type:Object})],gE.prototype,"notification",void 0),o([Zt({type:Object})],gE.prototype,"user_groups",void 0),o([Zt({type:Boolean})],gE.prototype,"signup_support",void 0),o([Zt({type:Boolean})],gE.prototype,"allowAnonymousChangePassword",void 0),o([Zt({type:Boolean})],gE.prototype,"change_signin_support",void 0),o([Zt({type:Boolean})],gE.prototype,"allow_signout",void 0),o([Zt({type:Boolean})],gE.prototype,"allow_project_resource_monitor",void 0),o([Zt({type:Boolean})],gE.prototype,"allow_manual_image_name_for_session",void 0),o([Zt({type:Boolean})],gE.prototype,"allowSignupWithoutConfirmation",void 0),o([Zt({type:Boolean})],gE.prototype,"openPortToPublic",void 0),o([Zt({type:Boolean})],gE.prototype,"allowPreferredPort",void 0),o([Zt({type:Number})],gE.prototype,"maxCPUCoresPerContainer",void 0),o([Zt({type:Number})],gE.prototype,"maxMemoryPerContainer",void 0),o([Zt({type:Number})],gE.prototype,"maxCUDADevicesPerContainer",void 0),o([Zt({type:Number})],gE.prototype,"maxCUDASharesPerContainer",void 0),o([Zt({type:Number})],gE.prototype,"maxROCMDevicesPerContainer",void 0),o([Zt({type:Number})],gE.prototype,"maxTPUDevicesPerContainer",void 0),o([Zt({type:Number})],gE.prototype,"maxIPUDevicesPerContainer",void 0),o([Zt({type:Number})],gE.prototype,"maxATOMDevicesPerContainer",void 0),o([Zt({type:Number})],gE.prototype,"maxWarboyDevicesPerContainer",void 0),o([Zt({type:Number})],gE.prototype,"maxShmPerContainer",void 0),o([Zt({type:Number})],gE.prototype,"maxFileUploadSize",void 0),o([Zt({type:Boolean})],gE.prototype,"maskUserInfo",void 0),o([Zt({type:Boolean})],gE.prototype,"hideAgents",void 0),o([Zt({type:Boolean})],gE.prototype,"enable2FA",void 0),o([Zt({type:Boolean})],gE.prototype,"force2FA",void 0),o([Zt({type:Boolean})],gE.prototype,"allowNonAuthTCP",void 0),o([Zt({type:Array})],gE.prototype,"singleSignOnVendors",void 0),o([Zt({type:String})],gE.prototype,"ssoRealmName",void 0),o([Zt({type:Array})],gE.prototype,"allow_image_list",void 0),o([Zt({type:Array})],gE.prototype,"endpoints",void 0),o([Zt({type:Object})],gE.prototype,"logoutTimerBeforeOneMin",void 0),o([Zt({type:Object})],gE.prototype,"logoutTimer",void 0),o([Zt({type:String})],gE.prototype,"_helpDescription",void 0),o([Zt({type:String})],gE.prototype,"_helpDescriptionTitle",void 0),o([Zt({type:Boolean})],gE.prototype,"otpRequired",void 0),o([Zt({type:String})],gE.prototype,"otp",void 0),o([Zt({type:Boolean})],gE.prototype,"needToResetPassword",void 0),o([Zt({type:Boolean})],gE.prototype,"directoryBasedUsage",void 0),o([Zt({type:Number})],gE.prototype,"maxCountForPreopenPorts",void 0),o([Zt({type:Boolean})],gE.prototype,"allowCustomResourceAllocation",void 0),o([Zt({type:Boolean})],gE.prototype,"isDirectorySizeVisible",void 0),o([Zt({type:Boolean})],gE.prototype,"supportModelStore",void 0),o([Zt({type:String})],gE.prototype,"eduAppNamePrefix",void 0),o([Zt({type:String})],gE.prototype,"pluginPages",void 0),o([Zt({type:Array})],gE.prototype,"blockList",void 0),o([Zt({type:Array})],gE.prototype,"inactiveList",void 0),o([ei("#login-panel")],gE.prototype,"loginPanel",void 0),o([ei("#block-panel")],gE.prototype,"blockPanel",void 0),o([ei("#id_api_endpoint_container")],gE.prototype,"apiEndpointContainer",void 0),o([ei("#id_api_endpoint")],gE.prototype,"apiEndpointInput",void 0),o([ei("#id_api_endpoint_humanized")],gE.prototype,"apiEndpointHumanizedInput",void 0),o([ei("#id_user_id")],gE.prototype,"userIdInput",void 0),o([ei("#id_password")],gE.prototype,"passwordInput",void 0),o([ei("#id_api_key")],gE.prototype,"apiKeyInput",void 0),o([ei("#id_secret_key")],gE.prototype,"secretKeyInput",void 0),o([ei("#otp")],gE.prototype,"otpInput",void 0),o([ei("#help-description")],gE.prototype,"helpDescriptionDialog",void 0),o([ei("#waiting-animation")],gE.prototype,"waitingAnimation",void 0),gE=o([Xt("backend-ai-login")],gE);let fE=class extends ti{constructor(){super(),this.options=Object(),this.imageInfo=Object(),this.imageNames=Object(),this.imageTagAlias=Object(),this.imageTagReplace=Object(),this.kernel_labels=Object(),this.aliases=Object(),this.tags=Object(),this.icons=Object(),this.deviceInfo=Object(),this.readImageMetadata()}firstUpdated(){}async readImageMetadata(){return fetch("resources/image_metadata.json").then((e=>e.json())).then((e=>{this.imageInfo=e.imageInfo;for(const e in this.imageInfo)({}).hasOwnProperty.call(this.imageInfo,e)&&(this.tags[e]=[],this.kernel_labels[e]=[],"name"in this.imageInfo[e]&&(this.aliases[e]=this.imageInfo[e].name,this.imageNames[e]=this.imageInfo[e].name),"icon"in this.imageInfo[e]?this.icons[e]=this.imageInfo[e].icon:this.icons[e]="default.png","label"in this.imageInfo[e]?(this.kernel_labels[e]=this.imageInfo[e].label,this.imageInfo[e].label.forEach((t=>{"category"in t||this.tags[e].push(t)}))):this.kernel_labels[e]=[]);this.imageTagAlias=e.tagAlias,this.imageTagReplace=e.tagReplace})).then((()=>{const e=new CustomEvent("backend-ai-metadata-image-loaded",{detail:""});document.dispatchEvent(e)}))}readDeviceMetadata(){fetch("resources/device_metadata.json").then((e=>e.json())).then((e=>{this.deviceInfo=e.deviceInfo,console.log(this.deviceInfo);for(const e in this.deviceInfo)({}).hasOwnProperty.call(this.deviceInfo,e)})).then((()=>{const e=new CustomEvent("backend-ai-metadata-device-loaded",{detail:""});document.dispatchEvent(e)}))}isJson(e){try{JSON.parse(e)}catch(e){return!1}return!0}render(){return ae``}};o([Zt({type:Object})],fE.prototype,"options",void 0),o([Zt({type:Object})],fE.prototype,"imageInfo",void 0),o([Zt({type:Object})],fE.prototype,"imageNames",void 0),o([Zt({type:Object})],fE.prototype,"imageTagAlias",void 0),o([Zt({type:Object})],fE.prototype,"imageTagReplace",void 0),o([Zt({type:Object})],fE.prototype,"kernel_labels",void 0),o([Zt({type:Object})],fE.prototype,"aliases",void 0),o([Zt({type:Object})],fE.prototype,"tags",void 0),o([Zt({type:Object})],fE.prototype,"icons",void 0),o([Zt({type:Object})],fE.prototype,"deviceInfo",void 0),fE=o([Xt("backend-ai-metadata-store")],fE);var _E=fE;let vE=class extends ke{static get styles(){return[A`
        :host {
          display: block;
          position: fixed;
          top: 100%;
          left: 0;
          right: 0;
          padding: 12px;
          background-color: #246;
          color: white;
          box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
          text-align: center;
          will-change: transform;
          transform: translate3d(0, 0, 0);
          transition-property: visibility, transform;
          transition-duration: 0.2s;
          visibility: hidden;
        }

        :host([active]) {
          visibility: visible;
          transform: translate3d(0, -100%, 0);
        }

        @media (min-width: 460px) {
          :host {
            width: 320px;
            margin: auto;
          }
        }
      `]}render(){return ae`
      <slot></slot>
    `}};vE=o([Xt("backend-ai-offline-indicator")],vE);const bE=[Be,A`
    .loading-background {
      transition: all 0.3s linear;
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      /* background-image: url('/resources/images/loading-background-large.jpg'); */
      /* background-repeat: no-repeat; */
      /* background-attachment: fixed; */
      /* background-position: top left; */
      -webkit-user-select: none !important;
      z-index: 1;
    }

    .loading-background::before {
      content: '';
      position: fixed;
      top: 0;
      right: 0;
      bottom: 0;
      left: 0;
      background-image: url('/resources/images/loading-background-large.jpg');
      z-index: -1;
      background-repeat: no-repeat;
      background-attachment: fixed;
      background-position: top left;
      filter: var(--theme-image-filter);
    }

    .loading-background-drag-area {
      position: absolute;
      background-color: transparent;
      top: 0;
      left: 0;
      width: 100%;
      height: 80px;
      -webkit-app-region: drag !important;
    }

    .loading-background[inactive] {
      display: none;
    }

    .hidden {
      display: none;
    }

    .visuallyhidden {
      opacity: 0;
    }

    mwc-top-app-bar-fixed {
      --mdc-typography-headline6-font-family: var(--token-fontFamily);
      --mdc-typography-font-family: var(--token-fontFamily);
    }

    .site-name {
      text-align: center;
      margin-left: 0;
      margin-right: auto;
      line-height: 16px;
      font-size: 16px;
      font-weight: 100;
      color: var(--general-sidebar-topbar-color, #efefef);
      font-family: var(--token-fontFamily);
    }

    .site-name > .bold {
      font-weight: 400;
    }

    .mini-ui .site-name {
      display: none;
    }

    .vertical-line {
      width: 1px; /* Line width */
      background-color: #dbdbdb; /* Line color */
      height: 100%;
      float: left;
      margin-top: 10px;
    }

    .drawer-menu {
      overflow-y: auto;
      overflow-x: hidden;
      -webkit-overflow-scrolling: touch;
      overflow: -moz-scrollbars-none;
      -ms-overflow-style: none;
      will-change: transform;
      background-color: var(--general-background-color, #fafafa);
      scrollbar-width: none;
    }

    .drawer-menu .portrait-bar {
      padding-left: 0 !important;
      background-color: transparent;
      color: var(--general-sidebar-topbar-color);
      height: 80px;
      max-width: 250px; /* prevent sidebar from expanding over its width limit */
    }

    .drawer-menu h3 {
      height: 12px;
      font-size: 12px;
      font-weight: 400;
      line-height: 20px;
      padding: 5px 15px 10px 0;
      margin: 20px 25px 20px 25px;
      display: block;
      color: var(--general-sidebar-h3-color);
      border-bottom: var(--general-sidebar-h3-border-color);
    }

    #sidebar-menu {
      height: calc(100vh - 280px);
    }

    .mini-ui #sidebar-menu {
      height: calc(100vh - 226px) !important;
    }

    mwc-list.sidebar {
      cursor: pointer;
      color: var(--general-sidebar-color, #949494);
      --mdc-list-side-padding: 32px;
    }

    mwc-list.sidebar mwc-list-item {
      --mdc-theme-primary: var(--general-sidebar-selected-color, #949494);
      --mdc-theme-text-primary-on-background: var(
        --general-sidebar-color,
        #949494
      );
      --mdc-list-item-graphic-margin: 15px;
      height: 36px;
      margin-top: 10px;
      margin-bottom: 10px;
      font-size: 14px;
    }

    mwc-list.sidebar mwc-list-item i {
      color: #949494;
      font-size: 17px;
      padding-top: 5px;
    }

    mwc-list.sidebar mwc-list-item[disabled] i {
      color: rgb(70, 70, 70);
    }

    mwc-list.sidebar mwc-list-item[selected] {
      color: var(--general-sidebar-selected-color, #949494);
      background: var(--general-sidebar-selected-background-color, #23252b);
      border-left: var(--general-sidebar-selected-border-left);
      padding-left: 29px; /* 32px - 3px */
      border-right: 0;
      padding-right: 11px;
      font-weight: 900;
    }

    mwc-list.sidebar mwc-list-item[selected] > i {
      color: inherit;
    }

    mwc-list.sidebar mwc-list-item[disabled],
    mwc-list.sidebar mwc-list-item[disabled] mwc-icon {
      --mdc-theme-on-surface: #888888;
      color: #888888 !important;
    }

    .mini-ui mwc-list.sidebar mwc-list-item {
      --mdc-list-item-graphic-margin: 0;
    }

    #app-body {
      --mdc-drawer-background-color: var(--general-background-color, #fafafa);
      --mdc-drawer-border-left: 0;
      --mdc-drawer-border-right: 0;
    }

    app-drawer-layout:not([narrow]) [drawer-toggle] {
      display: none;
    }

    .drawer-menu footer,
    footer#short-height {
      bottom: 0;
      color: var(--general-sidebar-footer-color, #aaaaaa);
      background-color: var(--general-background-color);
      margin: 0;
      padding-bottom: 5px;
      line-height: 1;
      font-size: 10px;
    }

    .drawer-menu footer a,
    footer#short-height a {
      color: var(--general-sidebar-footer-color, #aaaaaa) !important;
    }

    .user-name {
      max-width: 15vw;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    #project {
      font-size: 12px;
      color: #8c8484;
      padding-right: 8px;
    }

    mwc-menu#dropdown-menu {
      position: relative;
      left: 170px;
      top: 20px;
    }

    .dropdown-menu-name {
      position: absolute;
      margin-top: 3px;
    }

    mwc-button {
      margin: auto 10px;
      background-image: none;
      --mdc-theme-primary: var(--general-button-background-color);
      --mdc-theme-on-primary: var(--general-button-color);
    }

    mwc-button[unelevated] {
      --mdc-theme-primary: var(--token-colorPrimary);
      --mdc-theme-on-primary: var(--token-colorWhite, --general-button-color);
    }

    mwc-button.full {
      width: 100%;
    }

    .page {
      display: none;
    }

    .page[active] {
      display: block;
    }

    .sidepanel {
      display: none;
    }

    .sidepanel[active] {
      display: block;
    }

    #content-body {
      background-color: var(--general-background-color, #ffffff);
      color: var(--general-sidepanel-color, #fafafa);
      --mdc-drawer-background-color: var(
        --sidepanel-background-color,
        var(--general-sidepanel-background-color, #fafafa)
      );
    }

    .sidepanel-drawer {
      border-right: 1px solid #cccccc;
      height: 100vh;
      overflow-y: auto;
      overflow-x: hidden;
      -webkit-overflow-scrolling: touch;
      overflow: -moz-scrollbars-none;
      -ms-overflow-style: none;
      will-change: transform;
    }

    mwc-circular-progress {
      width: 48px;
      height: 48px;
      position: fixed;
      --mdc-theme-primary: #e91e63;
      top: calc(50vh - 24px);
    }

    @media screen and (max-width: 899px) {
      mwc-circular-progress {
        left: calc(50% - 24px);
      }
    }

    @media screen and (min-width: 900px) {
      mwc-circular-progress {
        left: calc(50% + 71px);
      }

      .mini-ui mwc-circular-progress {
        left: calc(50% + 29px);
      }
    }

    .draggable {
      -webkit-user-select: none !important;
      -webkit-app-region: drag !important;
    }

    .drawer-menu footer,
    footer#short-height {
      width: 250px;
    }

    mwc-tab {
      color: var(--token-colorPrimary, #ffffff);
    }

    mwc-menu {
      font-family: var(--token-fontFamily);
      --mdc-typography-subtitle1-font-family: var(--token-fontFamily);
    }

    mwc-formfield {
      --mdc-typography-body2-font-family: var(--token-fontFamily);
    }

    span.full_name,
    mwc-select {
      font-weight: bold;
    }

    mwc-multi-select {
      width: 135px;
      min-width: 135px;
      font-family: var(--token-fontFamily);
      --mdc-typography-subtitle1-font-family: var(--token-fontFamily);
      --mdc-typography-subtitle1-font-size: 14px;
      --mdc-typography-subtitle1-font-color: white;
      --mdc-typography-subtitle1-font-weight: 400;
      --mdc-typography-subtitle1-line-height: 16px;
      --mdc-theme-primary: rgba(255, 255, 255, 1);
      --mdc-select-idle-line-color: transparent;
      --mdc-select-hover-line-color: transparent;
      --mdc-select-outlined-idle-border-color: rgba(255, 255, 255, 0.42);
      --mdc-select-outlined-hover-border-color: rgba(255, 255, 255, 0.87);
      --mdc-select-outlined-disabled-border-color: rgba(255, 255, 255, 0.87);
      --mdc-select-fill-color: transparent;
      --mdc-select-disabled-fill-color: transparent;
      --mdc-select-ink-color: rgba(255, 255, 255, 1);
      --mdc-select-label-ink-color: rgba(255, 255, 255, 1);
      --mdc-select-focused-label-color: rgba(24, 24, 24, 1);
      --mdc-select-disabled-ink-color: rgba(255, 255, 255, 1);
      --mdc-select-dropdown-icon-color: rgba(255, 255, 255, 1);
      --mdc-select-focused-dropdown-icon-color: rgba(255, 255, 255, 0.42);
      --mdc-select-disabled-dropdown-icon-color: rgba(255, 255, 255, 0.87);
      --mdc-theme-surface: white;
      --mdc-list-side-padding: 10px;
      --mdc-menu-item-height: 28px;
      --mdc-list-item__primary-text: {
        height: 20px;
        color: #222222;
      };
      --mdc-select-min-width: 100px;
    }

    mwc-list-item[activated] {
      color: black;
      background-color: #e1e1e1;
    }

    mwc-list-item > mwc-icon {
      font-size: 20px;
      margin: 5px;
    }

    mwc-icon.dropdown-menu {
      color: #242424;
      padding-right: 10px;
    }

    mwc-textfield {
      width: 100%;
    }

    #user-preference-dialog mwc-textfield#secretkey {
      --mdc-typography-subtitle1-font-size: 0.7rem;
    }

    mwc-textarea {
      width: 100%;
    }

    mwc-list-item {
      font-family: var(--token-fontFamily);
      --mdc-typography-subtitle1-font-family: var(--token-fontFamily);
      --mdc-typography-body2-font-family: var(--token-fontFamily);
      font-weight: 400;
    }

    a.email:hover {
      color: #29b6f6;
    }

    mwc-menu.user-menu {
      --mdc-menu-item-height: 28px;
      --mdc-menu-min-width: 200px;
      box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
    }

    mwc-menu.user-menu mwc-list-item {
      font-size: 14px;
    }

    mwc-icon-button.side-menu {
      --mdc-icon-button-size: 44px;
      --mdc-theme-text-disabled-on-light: var(--paper-grey-800);
      --mdc-ripple-focus-opacity: 0;
    }

    mwc-icon-button#mini-ui-toggle-button {
      --mdc-ripple-focus-opacity: 0;
    }

    #sidebar-navbar-footer mwc-icon-button {
      --mdc-theme-text-disabled-on-light: var(--paper-grey-800);
    }

    .mini-ui .full-menu {
      display: none;
      margin: 0 !important;
    }

    .mini-menu {
      display: none;
    }

    .mini-ui .mini-menu {
      display: block;
    }

    .sidebar-footer {
      text-align: center;
      margin-left: auto;
      margin-right: auto;
      line-height: 16px;
      font-size: 12px;
      font-weight: 100;
      font-family: var(--token-fontFamily);
    }

    .portrait-canvas {
      margin-left: 18px;
      border-radius: 8px;
      min-width: 48px; /* only apply this style feature if it's Backend.AI logo */
      width: 48px;
      height: 48px;
      background-color: #ffffff;
      background-image: url('/manifest/backend.ai-brand-simple.svg');
      background-repeat: no-repeat;
      background-size: 36px 36px;
      background-position: center center;
    }

    .mini-ui .portrait-canvas {
      margin-left: 18px;
      padding-right: 0;
    }

    .drawer-menu::-webkit-scrollbar {
      display: none !important;
      -webkit-appearance: none;
      width: 0 !important;
      height: 0;
    }

    .terms-of-use {
      margin-bottom: 10px;
    }

    footer#short-height {
      display: none;
    }

    #portrait-bar {
      height: 64px;
      padding-top: 15px;
    }

    #content-body {
      height: 100vh;
    }

    #main-toolbar {
      background-color: var(--general-menu-background-color);
      color: var(--general-menu-color);
      z-index: 5;
      overflow: visible;
      --mdc-theme-on-primary: black;
      --mdc-theme-primary: rgba(247, 246, 246, 1);
      border-bottom: 1px solid #dbdbdb;
      position: sticky;
    }

    #main-toolbar > p {
      padding: 10px;
      margin: auto;
      font-size: 14px;
      font-weight: bold;
      font-stretch: normal;
      font-style: normal;
      line-height: normal;
      letter-spacing: normal;
      color: #090909;
    }

    #content {
      padding-top: 0;
    }

    #sidebar-navbar-footer {
      right: 0;
      left: 0;
      bottom: 0 !important; /* Workaround to prevent miscalculated height */
      text-align: center;
      height: 100px;
      background-color: var(--general-navbar-footer-background-color);
      color: var(--general-sidebar-navbar-footer-color);
    }

    #password-change-request {
      background-color: var(--paper-orange-400);
      color: white;
      font-size: 14px;
      height: 28px;
      position: absolute;
      right: 0;
      width: 100vw;
    }

    #password-change-request > mwc-icon-button > i {
      font-size: 14px;
    }

    @supports (
      (-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))
    ) {
      #main-toolbar {
        /*-webkit-backdrop-filter: saturate(180%) blur(20px);
        backdrop-filter: saturate(180%) blur(20px);*/
      }

      #sidebar-navbar-footer {
        -webkit-backdrop-filter: saturate(180%) blur(20px);
        backdrop-filter: saturate(180%) blur(20px);
        border: 0;
      }
    }

    @media screen and (max-width: 449px) {
      #sidebar-navbar-footer {
        background-color: var(--general-navbar-footer-background-color);
        color: var(--general-sidebar-navbar-footer-color);
      }
      div#center-area,
      span.email,
      span.full_name,
      span.log_out {
        display: none;
      }
      mwc-menu#dropdown-menu {
        position: relative;
        left: 12vw;
      }
      mwc-top-app-bar-fixed {
        --mdc-top-app-bar-width: 410px !important;
      }
    }

    @media screen and (max-width: 1030px) {
      span.email,
      p#project {
        display: none;
      }

      div#welcome-message {
        display: none;
      }
    }

    @media screen and (min-width: 450px) {
      #sidebar-navbar-footer {
        background-color: var(--general-background-color);
        color: var(--general-sidebar-color);
      }
    }

    @media screen and (max-height: 953px) {
      footer#short-height {
        display: block;
      }

      footer {
        display: none;
      }
    }

    .temporarily-hide {
      display: none !important;
    }
  `];
/**
 * @license
 * Copyright (c) 2021 - 2023 Vaadin Ltd.
 * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
 */function yE(e){const t=customElements.get(e.is);if(t){const i=t.version;i&&e.version&&i===e.version?console.warn(`The component ${e.is} has been loaded twice`):console.error(`Tried to define ${e.is} version ${e.version} when version ${t.version} is already in use. Something will probably break.`)}else Object.defineProperty(e,"version",{get:()=>"24.3.13"}),customElements.define(e.is,e)}
/**
 * @license
 * Copyright (c) 2017 - 2023 Vaadin Ltd.
 * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
 */class xE extends HTMLElement{static get is(){return"vaadin-lumo-styles"}}yE(xE);
/**
 * @license
 * Copyright (c) 2017 - 2023 Vaadin Ltd.
 * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
 */
const wE=e=>class extends e{static get properties(){return{_theme:{type:String,readOnly:!0}}}static get observedAttributes(){return[...super.observedAttributes,"theme"]}attributeChangedCallback(e,t,i){super.attributeChangedCallback(e,t,i),"theme"===e&&this._set_theme(i)}}
/**
 * @license
 * Copyright (c) 2017 - 2023 Vaadin Ltd.
 * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
 */,$E=[];function AE(e){return e&&Object.prototype.hasOwnProperty.call(e,"__themes")}function kE(e,t,i={}){var o;e&&(o=e,AE(customElements.get(o))&&console.warn(`The custom element definition for "${e}"\n      was finalized before a style module was registered.\n      Make sure to add component specific style modules before\n      importing the corresponding custom element.`)),t=function(e=[]){return[e].flat(1/0).filter((e=>e instanceof $||(console.warn("An item in styles is not of type CSSResult. Use `unsafeCSS` or `css`."),!1)))}(t),window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.registerStyles(e,t,i):$E.push({themeFor:e,styles:t,include:i.include,moduleId:i.moduleId})}function EE(){return window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.getAllThemes():$E}function SE(e=""){let t=0;return e.startsWith("lumo-")||e.startsWith("material-")?t=1:e.startsWith("vaadin-")&&(t=2),t}function CE(e){const t=[];return e.include&&[].concat(e.include).forEach((e=>{const i=EE().find((t=>t.moduleId===e));i?t.push(...CE(i),...i.styles):console.warn(`Included moduleId ${e} not found in style registry`)}),e.styles),t}function TE(e){const t=`${e}-default-theme`,i=EE().filter((i=>i.moduleId!==t&&function(e,t){return(e||"").split(" ").some((e=>new RegExp(`^${e.split("*").join(".*")}$`,"u").test(t)))}(i.themeFor,e))).map((e=>({...e,styles:[...CE(e),...e.styles],includePriority:SE(e.moduleId)}))).sort(((e,t)=>t.includePriority-e.includePriority));return i.length>0?i:EE().filter((e=>e.moduleId===t))}const PE=e=>class extends(wE(e)){static finalize(){if(super.finalize(),this.elementStyles)return;const e=this.prototype._template;e&&!AE(this)&&function(e,t){const i=document.createElement("style");i.innerHTML=e.map((e=>e.cssText)).join("\n"),t.content.appendChild(i)}(this.getStylesForThis(),e)}static finalizeStyles(e){const t=this.getStylesForThis();return e?[...super.finalizeStyles(e),...t]:t}static getStylesForThis(){const e=Object.getPrototypeOf(this.prototype),t=(e?e.constructor.__themes:[])||[];this.__themes=[...t,...TE(this.is)];const i=this.__themes.flatMap((e=>e.styles));return i.filter(((e,t)=>t===i.lastIndexOf(e)))}}
/**
 * @license
 * Copyright (c) 2017 - 2023 Vaadin Ltd.
 * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
 */,IE=(e,...t)=>{((e,...t)=>{const i=document.createElement("style");i.id=e,i.textContent=t.map((e=>e.toString())).join("\n").replace(":host","html"),document.head.insertAdjacentElement("afterbegin",i)})(`lumo-${e}`,t)};IE("color-props",A`
  :host {
    /* Base (background) */
    --lumo-base-color: #fff;

    /* Tint */
    --lumo-tint-5pct: hsla(0, 0%, 100%, 0.3);
    --lumo-tint-10pct: hsla(0, 0%, 100%, 0.37);
    --lumo-tint-20pct: hsla(0, 0%, 100%, 0.44);
    --lumo-tint-30pct: hsla(0, 0%, 100%, 0.5);
    --lumo-tint-40pct: hsla(0, 0%, 100%, 0.57);
    --lumo-tint-50pct: hsla(0, 0%, 100%, 0.64);
    --lumo-tint-60pct: hsla(0, 0%, 100%, 0.7);
    --lumo-tint-70pct: hsla(0, 0%, 100%, 0.77);
    --lumo-tint-80pct: hsla(0, 0%, 100%, 0.84);
    --lumo-tint-90pct: hsla(0, 0%, 100%, 0.9);
    --lumo-tint: #fff;

    /* Shade */
    --lumo-shade-5pct: hsla(214, 61%, 25%, 0.05);
    --lumo-shade-10pct: hsla(214, 57%, 24%, 0.1);
    --lumo-shade-20pct: hsla(214, 53%, 23%, 0.16);
    --lumo-shade-30pct: hsla(214, 50%, 22%, 0.26);
    --lumo-shade-40pct: hsla(214, 47%, 21%, 0.38);
    --lumo-shade-50pct: hsla(214, 45%, 20%, 0.52);
    --lumo-shade-60pct: hsla(214, 43%, 19%, 0.6);
    --lumo-shade-70pct: hsla(214, 42%, 18%, 0.69);
    --lumo-shade-80pct: hsla(214, 41%, 17%, 0.83);
    --lumo-shade-90pct: hsla(214, 40%, 16%, 0.94);
    --lumo-shade: hsl(214, 35%, 15%);

    /* Contrast */
    --lumo-contrast-5pct: var(--lumo-shade-5pct);
    --lumo-contrast-10pct: var(--lumo-shade-10pct);
    --lumo-contrast-20pct: var(--lumo-shade-20pct);
    --lumo-contrast-30pct: var(--lumo-shade-30pct);
    --lumo-contrast-40pct: var(--lumo-shade-40pct);
    --lumo-contrast-50pct: var(--lumo-shade-50pct);
    --lumo-contrast-60pct: var(--lumo-shade-60pct);
    --lumo-contrast-70pct: var(--lumo-shade-70pct);
    --lumo-contrast-80pct: var(--lumo-shade-80pct);
    --lumo-contrast-90pct: var(--lumo-shade-90pct);
    --lumo-contrast: var(--lumo-shade);

    /* Text */
    --lumo-header-text-color: var(--lumo-contrast);
    --lumo-body-text-color: var(--lumo-contrast-90pct);
    --lumo-secondary-text-color: var(--lumo-contrast-70pct);
    --lumo-tertiary-text-color: var(--lumo-contrast-50pct);
    --lumo-disabled-text-color: var(--lumo-contrast-30pct);

    /* Primary */
    --lumo-primary-color: hsl(214, 100%, 48%);
    --lumo-primary-color-50pct: hsla(214, 100%, 49%, 0.76);
    --lumo-primary-color-10pct: hsla(214, 100%, 60%, 0.13);
    --lumo-primary-text-color: hsl(214, 100%, 43%);
    --lumo-primary-contrast-color: #fff;

    /* Error */
    --lumo-error-color: hsl(3, 85%, 48%);
    --lumo-error-color-50pct: hsla(3, 85%, 49%, 0.5);
    --lumo-error-color-10pct: hsla(3, 85%, 49%, 0.1);
    --lumo-error-text-color: hsl(3, 89%, 42%);
    --lumo-error-contrast-color: #fff;

    /* Success */
    --lumo-success-color: hsl(145, 72%, 30%);
    --lumo-success-color-50pct: hsla(145, 72%, 31%, 0.5);
    --lumo-success-color-10pct: hsla(145, 72%, 31%, 0.1);
    --lumo-success-text-color: hsl(145, 85%, 25%);
    --lumo-success-contrast-color: #fff;

    /* Warning */
    --lumo-warning-color: hsl(48, 100%, 50%);
    --lumo-warning-color-10pct: hsla(48, 100%, 50%, 0.25);
    --lumo-warning-text-color: hsl(32, 100%, 30%);
    --lumo-warning-contrast-color: var(--lumo-shade-90pct);
  }

  /* forced-colors mode adjustments */
  @media (forced-colors: active) {
    html {
      --lumo-disabled-text-color: GrayText;
    }
  }
`);kE("",A`
  [theme~='dark'] {
    /* Base (background) */
    --lumo-base-color: hsl(214, 35%, 21%);

    /* Tint */
    --lumo-tint-5pct: hsla(214, 65%, 85%, 0.06);
    --lumo-tint-10pct: hsla(214, 60%, 80%, 0.14);
    --lumo-tint-20pct: hsla(214, 64%, 82%, 0.23);
    --lumo-tint-30pct: hsla(214, 69%, 84%, 0.32);
    --lumo-tint-40pct: hsla(214, 73%, 86%, 0.41);
    --lumo-tint-50pct: hsla(214, 78%, 88%, 0.5);
    --lumo-tint-60pct: hsla(214, 82%, 90%, 0.58);
    --lumo-tint-70pct: hsla(214, 87%, 92%, 0.69);
    --lumo-tint-80pct: hsla(214, 91%, 94%, 0.8);
    --lumo-tint-90pct: hsla(214, 96%, 96%, 0.9);
    --lumo-tint: hsl(214, 100%, 98%);

    /* Shade */
    --lumo-shade-5pct: hsla(214, 0%, 0%, 0.07);
    --lumo-shade-10pct: hsla(214, 4%, 2%, 0.15);
    --lumo-shade-20pct: hsla(214, 8%, 4%, 0.23);
    --lumo-shade-30pct: hsla(214, 12%, 6%, 0.32);
    --lumo-shade-40pct: hsla(214, 16%, 8%, 0.41);
    --lumo-shade-50pct: hsla(214, 20%, 10%, 0.5);
    --lumo-shade-60pct: hsla(214, 24%, 12%, 0.6);
    --lumo-shade-70pct: hsla(214, 28%, 13%, 0.7);
    --lumo-shade-80pct: hsla(214, 32%, 13%, 0.8);
    --lumo-shade-90pct: hsla(214, 33%, 13%, 0.9);
    --lumo-shade: hsl(214, 33%, 13%);

    /* Contrast */
    --lumo-contrast-5pct: var(--lumo-tint-5pct);
    --lumo-contrast-10pct: var(--lumo-tint-10pct);
    --lumo-contrast-20pct: var(--lumo-tint-20pct);
    --lumo-contrast-30pct: var(--lumo-tint-30pct);
    --lumo-contrast-40pct: var(--lumo-tint-40pct);
    --lumo-contrast-50pct: var(--lumo-tint-50pct);
    --lumo-contrast-60pct: var(--lumo-tint-60pct);
    --lumo-contrast-70pct: var(--lumo-tint-70pct);
    --lumo-contrast-80pct: var(--lumo-tint-80pct);
    --lumo-contrast-90pct: var(--lumo-tint-90pct);
    --lumo-contrast: var(--lumo-tint);

    /* Text */
    --lumo-header-text-color: var(--lumo-contrast);
    --lumo-body-text-color: var(--lumo-contrast-90pct);
    --lumo-secondary-text-color: var(--lumo-contrast-70pct);
    --lumo-tertiary-text-color: var(--lumo-contrast-50pct);
    --lumo-disabled-text-color: var(--lumo-contrast-30pct);

    /* Primary */
    --lumo-primary-color: hsl(214, 90%, 48%);
    --lumo-primary-color-50pct: hsla(214, 90%, 70%, 0.69);
    --lumo-primary-color-10pct: hsla(214, 90%, 55%, 0.13);
    --lumo-primary-text-color: hsl(214, 90%, 77%);
    --lumo-primary-contrast-color: #fff;

    /* Error */
    --lumo-error-color: hsl(3, 79%, 49%);
    --lumo-error-color-50pct: hsla(3, 75%, 62%, 0.5);
    --lumo-error-color-10pct: hsla(3, 75%, 62%, 0.14);
    --lumo-error-text-color: hsl(3, 100%, 80%);

    /* Success */
    --lumo-success-color: hsl(145, 72%, 30%);
    --lumo-success-color-50pct: hsla(145, 92%, 51%, 0.5);
    --lumo-success-color-10pct: hsla(145, 92%, 51%, 0.1);
    --lumo-success-text-color: hsl(145, 85%, 46%);

    /* Warning */
    --lumo-warning-color: hsl(43, 100%, 48%);
    --lumo-warning-color-10pct: hsla(40, 100%, 50%, 0.2);
    --lumo-warning-text-color: hsl(45, 100%, 60%);
    --lumo-warning-contrast-color: var(--lumo-shade-90pct);
  }

  html {
    color: var(--lumo-body-text-color);
    background-color: var(--lumo-base-color);
    color-scheme: light;
  }

  [theme~='dark'] {
    color: var(--lumo-body-text-color);
    background-color: var(--lumo-base-color);
    color-scheme: dark;
  }

  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    color: var(--lumo-header-text-color);
  }

  a:where(:any-link) {
    color: var(--lumo-primary-text-color);
  }

  a:not(:any-link) {
    color: var(--lumo-disabled-text-color);
  }

  blockquote {
    color: var(--lumo-secondary-text-color);
  }

  code,
  pre {
    background-color: var(--lumo-contrast-10pct);
    border-radius: var(--lumo-border-radius-m);
  }
`,{moduleId:"lumo-color"});IE("spacing-props",A`
  :host {
    /* Square */
    --lumo-space-xs: 0.25rem;
    --lumo-space-s: 0.5rem;
    --lumo-space-m: 1rem;
    --lumo-space-l: 1.5rem;
    --lumo-space-xl: 2.5rem;

    /* Wide */
    --lumo-space-wide-xs: calc(var(--lumo-space-xs) / 2) var(--lumo-space-xs);
    --lumo-space-wide-s: calc(var(--lumo-space-s) / 2) var(--lumo-space-s);
    --lumo-space-wide-m: calc(var(--lumo-space-m) / 2) var(--lumo-space-m);
    --lumo-space-wide-l: calc(var(--lumo-space-l) / 2) var(--lumo-space-l);
    --lumo-space-wide-xl: calc(var(--lumo-space-xl) / 2) var(--lumo-space-xl);

    /* Tall */
    --lumo-space-tall-xs: var(--lumo-space-xs) calc(var(--lumo-space-xs) / 2);
    --lumo-space-tall-s: var(--lumo-space-s) calc(var(--lumo-space-s) / 2);
    --lumo-space-tall-m: var(--lumo-space-m) calc(var(--lumo-space-m) / 2);
    --lumo-space-tall-l: var(--lumo-space-l) calc(var(--lumo-space-l) / 2);
    --lumo-space-tall-xl: var(--lumo-space-xl) calc(var(--lumo-space-xl) / 2);
  }
`);
/**
 * @license
 * Copyright (c) 2017 - 2023 Vaadin Ltd.
 * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
 */
const OE=A`
  :host {
    /* Border radius */
    --lumo-border-radius-s: 0.25em; /* Checkbox, badge, date-picker year indicator, etc */
    --lumo-border-radius-m: var(--lumo-border-radius, 0.25em); /* Button, text field, menu overlay, etc */
    --lumo-border-radius-l: 0.5em; /* Dialog, notification, etc */

    /* Shadow */
    --lumo-box-shadow-xs: 0 1px 4px -1px var(--lumo-shade-50pct);
    --lumo-box-shadow-s: 0 2px 4px -1px var(--lumo-shade-20pct), 0 3px 12px -1px var(--lumo-shade-30pct);
    --lumo-box-shadow-m: 0 2px 6px -1px var(--lumo-shade-20pct), 0 8px 24px -4px var(--lumo-shade-40pct);
    --lumo-box-shadow-l: 0 3px 18px -2px var(--lumo-shade-20pct), 0 12px 48px -6px var(--lumo-shade-40pct);
    --lumo-box-shadow-xl: 0 4px 24px -3px var(--lumo-shade-20pct), 0 18px 64px -8px var(--lumo-shade-40pct);

    /* Clickable element cursor */
    --lumo-clickable-cursor: default;
  }
`;A`
  html {
    /* Button */
    --vaadin-button-background: var(--lumo-contrast-5pct);
    --vaadin-button-border: none;
    --vaadin-button-border-radius: var(--lumo-border-radius-m);
    --vaadin-button-font-size: var(--lumo-font-size-m);
    --vaadin-button-font-weight: 500;
    --vaadin-button-height: var(--lumo-size-m);
    --vaadin-button-margin: var(--lumo-space-xs) 0;
    --vaadin-button-min-width: calc(var(--vaadin-button-height) * 2);
    --vaadin-button-padding: 0 calc(var(--vaadin-button-height) / 3 + var(--lumo-border-radius-m) / 2);
    --vaadin-button-text-color: var(--lumo-primary-text-color);
    --vaadin-button-primary-background: var(--lumo-primary-color);
    --vaadin-button-primary-border: none;
    --vaadin-button-primary-font-weight: 600;
    --vaadin-button-primary-text-color: var(--lumo-primary-contrast-color);
    --vaadin-button-tertiary-background: transparent !important;
    --vaadin-button-tertiary-text-color: var(--lumo-primary-text-color);
    --vaadin-button-tertiary-font-weight: 500;
    --vaadin-button-tertiary-padding: 0 calc(var(--vaadin-button-height) / 6);
    /* Checkbox */
    --vaadin-checkbox-background: var(--lumo-contrast-20pct);
    --vaadin-checkbox-background-hover: var(--lumo-contrast-30pct);
    --vaadin-checkbox-border-radius: var(--lumo-border-radius-s);
    --vaadin-checkbox-checkmark-char: var(--lumo-icons-checkmark);
    --vaadin-checkbox-checkmark-char-indeterminate: '';
    --vaadin-checkbox-checkmark-color: var(--lumo-primary-contrast-color);
    --vaadin-checkbox-checkmark-size: calc(var(--vaadin-checkbox-size) + 2px);
    --vaadin-checkbox-label-color: var(--lumo-body-text-color);
    --vaadin-checkbox-label-font-size: var(--lumo-font-size-m);
    --vaadin-checkbox-label-padding: var(--lumo-space-xs) var(--lumo-space-s) var(--lumo-space-xs) var(--lumo-space-xs);
    --vaadin-checkbox-size: calc(var(--lumo-size-m) / 2);
    /* Radio button */
    --vaadin-radio-button-background: var(--lumo-contrast-20pct);
    --vaadin-radio-button-background-hover: var(--lumo-contrast-30pct);
    --vaadin-radio-button-dot-color: var(--lumo-primary-contrast-color);
    --vaadin-radio-button-dot-size: 3px;
    --vaadin-radio-button-label-color: var(--lumo-body-text-color);
    --vaadin-radio-button-label-font-size: var(--lumo-font-size-m);
    --vaadin-radio-button-label-padding: var(--lumo-space-xs) var(--lumo-space-s) var(--lumo-space-xs)
      var(--lumo-space-xs);
    --vaadin-radio-button-size: calc(var(--lumo-size-m) / 2);
    --vaadin-selection-color: var(--lumo-primary-color);
    --vaadin-selection-color-text: var(--lumo-primary-text-color);
    --vaadin-input-field-border-radius: var(--lumo-border-radius-m);
    --vaadin-focus-ring-color: var(--lumo-primary-color-50pct);
    --vaadin-focus-ring-width: 2px;
    /* Label */
    --vaadin-input-field-label-color: var(--lumo-secondary-text-color);
    --vaadin-input-field-focused-label-color: var(--lumo-primary-text-color);
    --vaadin-input-field-hovered-label-color: var(--lumo-body-text-color);
    --vaadin-input-field-label-font-size: var(--lumo-font-size-s);
    --vaadin-input-field-label-font-weight: 500;
    /* Helper */
    --vaadin-input-field-helper-color: var(--lumo-secondary-text-color);
    --vaadin-input-field-helper-font-size: var(--lumo-font-size-xs);
    --vaadin-input-field-helper-font-weight: 400;
    --vaadin-input-field-helper-spacing: 0.4em;
    /* Error message */
    --vaadin-input-field-error-color: var(--lumo-error-text-color);
    --vaadin-input-field-error-font-size: var(--lumo-font-size-xs);
    --vaadin-input-field-error-font-weight: 400;
    /* Input field */
    --vaadin-input-field-background: var(--lumo-contrast-10pct);
    --vaadin-input-field-icon-color: var(--lumo-contrast-60pct);
    --vaadin-input-field-icon-size: var(--lumo-icon-size-m);
    --vaadin-input-field-invalid-background: var(--lumo-error-color-10pct);
    --vaadin-input-field-invalid-hover-highlight: var(--lumo-error-color-50pct);
    --vaadin-input-field-height: var(--lumo-size-m);
    --vaadin-input-field-hover-highlight: var(--lumo-contrast-50pct);
    --vaadin-input-field-placeholder-color: var(--lumo-secondary-text-color);
    --vaadin-input-field-readonly-border: 1px dashed var(--lumo-contrast-30pct);
    --vaadin-input-field-value-color: var(--lumo-body-text-color);
    --vaadin-input-field-value-font-size: var(--lumo-font-size-m);
    --vaadin-input-field-value-font-weight: 400;
  }
`,IE("style-props",OE);IE("font-icons",A`
  @font-face {
    font-family: 'lumo-icons';
    src: url(data:application/font-woff;charset=utf-8;base64, )
      format('woff');
    font-weight: normal;
    font-style: normal;
  }

  html {
    --lumo-icons-align-center: '\\ea01';
    --lumo-icons-align-left: '\\ea02';
    --lumo-icons-align-right: '\\ea03';
    --lumo-icons-angle-down: '\\ea04';
    --lumo-icons-angle-left: '\\ea05';
    --lumo-icons-angle-right: '\\ea06';
    --lumo-icons-angle-up: '\\ea07';
    --lumo-icons-arrow-down: '\\ea08';
    --lumo-icons-arrow-left: '\\ea09';
    --lumo-icons-arrow-right: '\\ea0a';
    --lumo-icons-arrow-up: '\\ea0b';
    --lumo-icons-bar-chart: '\\ea0c';
    --lumo-icons-bell: '\\ea0d';
    --lumo-icons-calendar: '\\ea0e';
    --lumo-icons-checkmark: '\\ea0f';
    --lumo-icons-chevron-down: '\\ea10';
    --lumo-icons-chevron-left: '\\ea11';
    --lumo-icons-chevron-right: '\\ea12';
    --lumo-icons-chevron-up: '\\ea13';
    --lumo-icons-clock: '\\ea14';
    --lumo-icons-cog: '\\ea15';
    --lumo-icons-cross: '\\ea16';
    --lumo-icons-download: '\\ea17';
    --lumo-icons-dropdown: '\\ea18';
    --lumo-icons-edit: '\\ea19';
    --lumo-icons-error: '\\ea1a';
    --lumo-icons-eye: '\\ea1b';
    --lumo-icons-eye-disabled: '\\ea1c';
    --lumo-icons-menu: '\\ea1d';
    --lumo-icons-minus: '\\ea1e';
    --lumo-icons-ordered-list: '\\ea1f';
    --lumo-icons-phone: '\\ea20';
    --lumo-icons-photo: '\\ea21';
    --lumo-icons-play: '\\ea22';
    --lumo-icons-plus: '\\ea23';
    --lumo-icons-redo: '\\ea24';
    --lumo-icons-reload: '\\ea25';
    --lumo-icons-search: '\\ea26';
    --lumo-icons-undo: '\\ea27';
    --lumo-icons-unordered-list: '\\ea28';
    --lumo-icons-upload: '\\ea29';
    --lumo-icons-user: '\\ea2a';
  }
`);IE("sizing-props",A`
  :host {
    --lumo-size-xs: 1.625rem;
    --lumo-size-s: 1.875rem;
    --lumo-size-m: 2.25rem;
    --lumo-size-l: 2.75rem;
    --lumo-size-xl: 3.5rem;

    /* Icons */
    --lumo-icon-size-s: 1.25em;
    --lumo-icon-size-m: 1.5em;
    --lumo-icon-size-l: 2.25em;
    /* For backwards compatibility */
    --lumo-icon-size: var(--lumo-icon-size-m);
  }
`);
/**
 * @license
 * Copyright (c) 2017 - 2023 Vaadin Ltd.
 * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
 */
const RE=A`
  :host {
    /* prettier-ignore */
    --lumo-font-family: -apple-system, BlinkMacSystemFont, 'Roboto', 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';

    /* Font sizes */
    --lumo-font-size-xxs: 0.75rem;
    --lumo-font-size-xs: 0.8125rem;
    --lumo-font-size-s: 0.875rem;
    --lumo-font-size-m: 1rem;
    --lumo-font-size-l: 1.125rem;
    --lumo-font-size-xl: 1.375rem;
    --lumo-font-size-xxl: 1.75rem;
    --lumo-font-size-xxxl: 2.5rem;

    /* Line heights */
    --lumo-line-height-xs: 1.25;
    --lumo-line-height-s: 1.375;
    --lumo-line-height-m: 1.625;
  }
`;kE("",A`
  body,
  :host {
    font-family: var(--lumo-font-family);
    font-size: var(--lumo-font-size-m);
    line-height: var(--lumo-line-height-m);
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }

  small,
  [theme~='font-size-s'] {
    font-size: var(--lumo-font-size-s);
    line-height: var(--lumo-line-height-s);
  }

  [theme~='font-size-xs'] {
    font-size: var(--lumo-font-size-xs);
    line-height: var(--lumo-line-height-xs);
  }

  :where(h1, h2, h3, h4, h5, h6) {
    font-weight: 600;
    line-height: var(--lumo-line-height-xs);
    margin-block: 0;
  }

  :where(h1) {
    font-size: var(--lumo-font-size-xxxl);
  }

  :where(h2) {
    font-size: var(--lumo-font-size-xxl);
  }

  :where(h3) {
    font-size: var(--lumo-font-size-xl);
  }

  :where(h4) {
    font-size: var(--lumo-font-size-l);
  }

  :where(h5) {
    font-size: var(--lumo-font-size-m);
  }

  :where(h6) {
    font-size: var(--lumo-font-size-xs);
    text-transform: uppercase;
    letter-spacing: 0.03em;
  }

  p,
  blockquote {
    margin-top: 0.5em;
    margin-bottom: 0.75em;
  }

  a {
    text-decoration: none;
  }

  a:where(:any-link):hover {
    text-decoration: underline;
  }

  hr {
    display: block;
    align-self: stretch;
    height: 1px;
    border: 0;
    padding: 0;
    margin: var(--lumo-space-s) calc(var(--lumo-border-radius-m) / 2);
    background-color: var(--lumo-contrast-10pct);
  }

  blockquote {
    border-left: 2px solid var(--lumo-contrast-30pct);
  }

  b,
  strong {
    font-weight: 600;
  }

  /* RTL specific styles */
  blockquote[dir='rtl'] {
    border-left: none;
    border-right: 2px solid var(--lumo-contrast-30pct);
  }
`,{moduleId:"lumo-typography"}),IE("typography-props",RE);const NE=A`
  :host {
    display: flex;
    align-items: center;
    box-sizing: border-box;
    font-family: var(--lumo-font-family);
    font-size: var(--lumo-font-size-m);
    line-height: var(--lumo-line-height-xs);
    padding: 0.5em calc(var(--lumo-space-l) + var(--lumo-border-radius-m) / 4) 0.5em
      var(--_lumo-list-box-item-padding-left, calc(var(--lumo-border-radius-m) / 4));
    min-height: var(--lumo-size-m);
    outline: none;
    border-radius: var(--lumo-border-radius-m);
    cursor: var(--lumo-clickable-cursor);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-tap-highlight-color: var(--lumo-primary-color-10pct);
    --_focus-ring-color: var(--vaadin-focus-ring-color, var(--lumo-primary-color-50pct));
    --_focus-ring-width: var(--vaadin-focus-ring-width, 2px);
    --_selection-color-text: var(--vaadin-selection-color-text, var(--lumo-primary-text-color));
  }

  /* Checkmark */
  [part='checkmark']::before {
    display: var(--_lumo-item-selected-icon-display, none);
    content: var(--lumo-icons-checkmark);
    font-family: lumo-icons;
    font-size: var(--lumo-icon-size-m);
    line-height: 1;
    font-weight: normal;
    width: 1em;
    height: 1em;
    margin: calc((1 - var(--lumo-line-height-xs)) * var(--lumo-font-size-m) / 2) 0;
    color: var(--_selection-color-text);
    flex: none;
    opacity: 0;
    transition: transform 0.2s cubic-bezier(0.12, 0.32, 0.54, 2), opacity 0.1s;
  }

  :host([selected]) [part='checkmark']::before {
    opacity: 1;
  }

  :host([active]:not([selected])) [part='checkmark']::before {
    transform: scale(0.8);
    opacity: 0;
    transition-duration: 0s;
  }

  [part='content'] {
    flex: auto;
  }

  /* Disabled */
  :host([disabled]) {
    color: var(--lumo-disabled-text-color);
    cursor: default;
    pointer-events: none;
  }

  /* TODO a workaround until we have "focus-follows-mouse". After that, use the hover style for focus-ring as well */
  @media (any-hover: hover) {
    :host(:hover:not([disabled])) {
      background-color: var(--lumo-primary-color-10pct);
    }
  }

  :host([focus-ring]:not([disabled])) {
    box-shadow: inset 0 0 0 var(--_focus-ring-width) var(--_focus-ring-color);
  }

  /* RTL specific styles */
  :host([dir='rtl']) {
    padding-left: calc(var(--lumo-space-l) + var(--lumo-border-radius-m) / 4);
    padding-right: var(--_lumo-list-box-item-padding-left, calc(var(--lumo-border-radius-m) / 4));
  }

  /* Slotted icons */
  :host ::slotted(vaadin-icon) {
    width: var(--lumo-icon-size-m);
    height: var(--lumo-icon-size-m);
  }
`;kE("vaadin-item",NE,{moduleId:"lumo-item"});kE("vaadin-combo-box-item",[NE,A`
  :host {
    transition: background-color 100ms;
    overflow: hidden;
    --_lumo-item-selected-icon-display: block;
    --_focus-ring-color: var(--vaadin-focus-ring-color, var(--lumo-primary-color-50pct));
    --_focus-ring-width: var(--vaadin-focus-ring-width, 2px);
  }

  :host([focused]:not([disabled])) {
    box-shadow: inset 0 0 0 var(--_focus-ring-width) var(--_focus-ring-color);
  }
`],{moduleId:"lumo-combo-box-item"});
/**
 * @license
 * Copyright (c) 2022 - 2023 Vaadin Ltd.
 * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
 */
const LE=A`
  [part~='loader'] {
    box-sizing: border-box;
    width: var(--lumo-icon-size-s);
    height: var(--lumo-icon-size-s);
    border: 2px solid transparent;
    border-color: var(--lumo-primary-color-10pct) var(--lumo-primary-color-10pct) var(--lumo-primary-color)
      var(--lumo-primary-color);
    border-radius: calc(0.5 * var(--lumo-icon-size-s));
    opacity: 0;
    pointer-events: none;
  }

  :host(:not([loading])) [part~='loader'] {
    display: none;
  }

  :host([loading]) [part~='loader'] {
    animation: 1s linear infinite lumo-loader-rotate, 0.3s 0.1s lumo-loader-fade-in both;
  }

  @keyframes lumo-loader-fade-in {
    0% {
      opacity: 0;
    }

    100% {
      opacity: 1;
    }
  }

  @keyframes lumo-loader-rotate {
    0% {
      transform: rotate(0deg);
    }

    100% {
      transform: rotate(360deg);
    }
  }
`
/**
 * @license
 * Copyright (c) 2017 - 2023 Vaadin Ltd.
 * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
 */,ME=A`
  :host {
    top: var(--lumo-space-m);
    right: var(--lumo-space-m);
    bottom: var(--lumo-space-m);
    left: var(--lumo-space-m);
    /* Workaround for Edge issue (only on Surface), where an overflowing vaadin-list-box inside vaadin-select-overlay makes the overlay transparent */
    /* stylelint-disable-next-line */
    outline: 0px solid transparent;
  }

  [part='overlay'] {
    background-color: var(--lumo-base-color);
    background-image: linear-gradient(var(--lumo-tint-5pct), var(--lumo-tint-5pct));
    border-radius: var(--lumo-border-radius-m);
    box-shadow: 0 0 0 1px var(--lumo-shade-5pct), var(--lumo-box-shadow-m);
    color: var(--lumo-body-text-color);
    font-family: var(--lumo-font-family);
    font-size: var(--lumo-font-size-m);
    font-weight: 400;
    line-height: var(--lumo-line-height-m);
    letter-spacing: 0;
    text-transform: none;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }

  [part='content'] {
    padding: var(--lumo-space-xs);
  }

  [part='backdrop'] {
    background-color: var(--lumo-shade-20pct);
    animation: 0.2s lumo-overlay-backdrop-enter both;
    will-change: opacity;
  }

  @keyframes lumo-overlay-backdrop-enter {
    0% {
      opacity: 0;
    }
  }

  :host([closing]) [part='backdrop'] {
    animation: 0.2s lumo-overlay-backdrop-exit both;
  }

  @keyframes lumo-overlay-backdrop-exit {
    100% {
      opacity: 0;
    }
  }

  @keyframes lumo-overlay-dummy-animation {
    0% {
      opacity: 1;
    }

    100% {
      opacity: 1;
    }
  }
`;kE("",ME,{moduleId:"lumo-overlay"});
/**
 * @license
 * Copyright (c) 2017 - 2023 Vaadin Ltd.
 * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
 */
const UE=A`
  :host([opening]),
  :host([closing]) {
    animation: 0.14s lumo-overlay-dummy-animation;
  }

  [part='overlay'] {
    will-change: opacity, transform;
  }

  :host([opening]) [part='overlay'] {
    animation: 0.1s lumo-menu-overlay-enter ease-out both;
  }

  @keyframes lumo-menu-overlay-enter {
    0% {
      opacity: 0;
      transform: translateY(-4px);
    }
  }

  :host([closing]) [part='overlay'] {
    animation: 0.1s lumo-menu-overlay-exit both;
  }

  @keyframes lumo-menu-overlay-exit {
    100% {
      opacity: 0;
    }
  }
`;kE("",UE,{moduleId:"lumo-menu-overlay-core"});const HE=[ME,UE,A`
  /* Small viewport (bottom sheet) styles */
  /* Use direct media queries instead of the state attributes ([phone] and [fullscreen]) provided by the elements */
  @media (max-width: 420px), (max-height: 420px) {
    :host {
      top: 0 !important;
      right: 0 !important;
      bottom: var(--vaadin-overlay-viewport-bottom, 0) !important;
      left: 0 !important;
      align-items: stretch !important;
      justify-content: flex-end !important;
    }

    [part='overlay'] {
      max-height: 50vh;
      width: 100vw;
      border-radius: 0;
      box-shadow: var(--lumo-box-shadow-xl);
    }

    /* The content part scrolls instead of the overlay part, because of the gradient fade-out */
    [part='content'] {
      padding: 30px var(--lumo-space-m);
      max-height: inherit;
      box-sizing: border-box;
      -webkit-overflow-scrolling: touch;
      overflow: auto;
      -webkit-mask-image: linear-gradient(transparent, #000 40px, #000 calc(100% - 40px), transparent);
      mask-image: linear-gradient(transparent, #000 40px, #000 calc(100% - 40px), transparent);
    }

    [part='backdrop'] {
      display: block;
    }

    /* Animations */

    :host([opening]) [part='overlay'] {
      animation: 0.2s lumo-mobile-menu-overlay-enter cubic-bezier(0.215, 0.61, 0.355, 1) both;
    }

    :host([closing]),
    :host([closing]) [part='backdrop'] {
      animation-delay: 0.14s;
    }

    :host([closing]) [part='overlay'] {
      animation: 0.14s 0.14s lumo-mobile-menu-overlay-exit cubic-bezier(0.55, 0.055, 0.675, 0.19) both;
    }
  }

  @keyframes lumo-mobile-menu-overlay-enter {
    0% {
      transform: translateY(150%);
    }
  }

  @keyframes lumo-mobile-menu-overlay-exit {
    100% {
      transform: translateY(150%);
    }
  }
`];kE("",HE,{moduleId:"lumo-menu-overlay"});kE("vaadin-combo-box-overlay",[ME,UE,A`
  [part='content'] {
    padding: 0;
  }

  /* When items are empty, the spinner needs some room */
  :host(:not([closing])) [part~='content'] {
    min-height: calc(2 * var(--lumo-space-s) + var(--lumo-icon-size-s));
  }

  [part~='overlay'] {
    position: relative;
  }

  :host([top-aligned]) [part~='overlay'] {
    margin-top: var(--lumo-space-xs);
  }

  :host([bottom-aligned]) [part~='overlay'] {
    margin-bottom: var(--lumo-space-xs);
  }
`,LE,A`
  [part~='loader'] {
    position: absolute;
    z-index: 1;
    left: var(--lumo-space-s);
    right: var(--lumo-space-s);
    top: var(--lumo-space-s);
    margin-left: auto;
    margin-inline-start: auto;
    margin-inline-end: 0;
  }

  :host([dir='rtl']) [part~='loader'] {
    left: auto;
    margin-left: 0;
    margin-right: auto;
    margin-inline-start: 0;
    margin-inline-end: auto;
  }
`,A`
      :host {
        --_vaadin-combo-box-items-container-border-width: var(--lumo-space-xs);
        --_vaadin-combo-box-items-container-border-style: solid;
      }
    `],{moduleId:"lumo-combo-box-overlay"}),kE("vaadin-input-container",A`
    :host {
      background: var(--_background);
      padding: 0 calc(0.375em + var(--_input-container-radius) / 4 - 1px);
      font-weight: 500;
      line-height: 1;
      position: relative;
      cursor: text;
      box-sizing: border-box;
      border-radius:
        /* See https://developer.mozilla.org/en-US/docs/Web/CSS/border-radius#syntax */
        var(--vaadin-input-field-top-start-radius, var(--_input-container-radius))
        var(--vaadin-input-field-top-end-radius, var(--_input-container-radius))
        var(--vaadin-input-field-bottom-end-radius, var(--_input-container-radius))
        var(--vaadin-input-field-bottom-start-radius, var(--_input-container-radius));
      /* Fallback */
      --_input-container-radius: var(--vaadin-input-field-border-radius, var(--lumo-border-radius-m));
      --_input-height: var(--lumo-text-field-size, var(--lumo-size-m));
      /* Default values */
      --_background: var(--vaadin-input-field-background, var(--lumo-contrast-10pct));
      --_hover-highlight: var(--vaadin-input-field-hover-highlight, var(--lumo-contrast-50pct));
      --_input-border-color: var(--vaadin-input-field-border-color, var(--lumo-contrast-50pct));
      --_icon-color: var(--vaadin-input-field-icon-color, var(--lumo-contrast-60pct));
      --_icon-size: var(--vaadin-input-field-icon-size, var(--lumo-icon-size-m));
      --_invalid-background: var(--vaadin-input-field-invalid-background, var(--lumo-error-color-10pct));
      --_invalid-hover-highlight: var(--vaadin-input-field-invalid-hover-highlight, var(--lumo-error-color-50pct));
    }

    :host([dir='rtl']) {
      border-radius:
        /* Don't use logical props, see https://github.com/vaadin/vaadin-time-picker/issues/145 */
        var(--vaadin-input-field-top-end-radius, var(--_input-container-radius))
        var(--vaadin-input-field-top-start-radius, var(--_input-container-radius))
        var(--vaadin-input-field-bottom-start-radius, var(--_input-container-radius))
        var(--vaadin-input-field-bottom-end-radius, var(--_input-container-radius));
    }

    /* Used for hover and activation effects */
    :host::after {
      content: '';
      position: absolute;
      inset: 0;
      border-radius: inherit;
      pointer-events: none;
      background: var(--_hover-highlight);
      opacity: 0;
      transition: transform 0.15s, opacity 0.2s;
      transform-origin: 100% 0;
    }

    ::slotted(:not([slot$='fix'])) {
      cursor: inherit;
      min-height: var(--vaadin-input-field-height, var(--_input-height));
      padding: 0 0.25em;
      --_lumo-text-field-overflow-mask-image: linear-gradient(to left, transparent, #000 1.25em);
      -webkit-mask-image: var(--_lumo-text-field-overflow-mask-image);
      mask-image: var(--_lumo-text-field-overflow-mask-image);
    }

    /* Read-only */
    :host([readonly]) {
      color: var(--lumo-secondary-text-color);
      background-color: transparent;
      cursor: default;
    }

    :host([readonly])::after {
      background-color: transparent;
      opacity: 1;
      border: var(--vaadin-input-field-readonly-border, 1px dashed var(--lumo-contrast-30pct));
    }

    /* Disabled */
    :host([disabled]) {
      background-color: var(--lumo-contrast-5pct);
    }

    :host([disabled]) ::slotted(*) {
      color: var(--lumo-disabled-text-color);
      -webkit-text-fill-color: var(--lumo-disabled-text-color);
    }

    /* Invalid */
    :host([invalid]) {
      background: var(--_invalid-background);
    }

    :host([invalid]:not([readonly]))::after {
      background: var(--_invalid-hover-highlight);
    }

    /* Slotted icons */
    ::slotted(vaadin-icon) {
      color: var(--_icon-color);
      width: var(--_icon-size);
      height: var(--_icon-size);
    }

    /* Vaadin icons are based on a 16x16 grid (unlike Lumo and Material icons with 24x24), so they look too big by default */
    ::slotted(vaadin-icon[icon^='vaadin:']) {
      padding: 0.25em;
      box-sizing: border-box !important;
    }

    /* Text align */
    :host([dir='rtl']) ::slotted(:not([slot$='fix'])) {
      --_lumo-text-field-overflow-mask-image: linear-gradient(to right, transparent, #000 1.25em);
    }

    @-moz-document url-prefix() {
      :host([dir='rtl']) ::slotted(:not([slot$='fix'])) {
        mask-image: var(--_lumo-text-field-overflow-mask-image);
      }
    }

    :host([theme~='align-left']) ::slotted(:not([slot$='fix'])) {
      text-align: start;
      --_lumo-text-field-overflow-mask-image: none;
    }

    :host([theme~='align-center']) ::slotted(:not([slot$='fix'])) {
      text-align: center;
      --_lumo-text-field-overflow-mask-image: none;
    }

    :host([theme~='align-right']) ::slotted(:not([slot$='fix'])) {
      text-align: end;
      --_lumo-text-field-overflow-mask-image: none;
    }

    @-moz-document url-prefix() {
      /* Firefox is smart enough to align overflowing text to right */
      :host([theme~='align-right']) ::slotted(:not([slot$='fix'])) {
        --_lumo-text-field-overflow-mask-image: linear-gradient(to right, transparent 0.25em, #000 1.5em);
      }
    }

    @-moz-document url-prefix() {
      /* Firefox is smart enough to align overflowing text to right */
      :host([theme~='align-left']) ::slotted(:not([slot$='fix'])) {
        --_lumo-text-field-overflow-mask-image: linear-gradient(to left, transparent 0.25em, #000 1.5em);
      }
    }

    /* RTL specific styles */
    :host([dir='rtl'])::after {
      transform-origin: 0% 0;
    }

    :host([theme~='align-left'][dir='rtl']) ::slotted(:not([slot$='fix'])) {
      --_lumo-text-field-overflow-mask-image: none;
    }

    :host([theme~='align-center'][dir='rtl']) ::slotted(:not([slot$='fix'])) {
      --_lumo-text-field-overflow-mask-image: none;
    }

    :host([theme~='align-right'][dir='rtl']) ::slotted(:not([slot$='fix'])) {
      --_lumo-text-field-overflow-mask-image: none;
    }

    @-moz-document url-prefix() {
      /* Firefox is smart enough to align overflowing text to right */
      :host([theme~='align-right'][dir='rtl']) ::slotted(:not([slot$='fix'])) {
        --_lumo-text-field-overflow-mask-image: linear-gradient(to right, transparent 0.25em, #000 1.5em);
      }
    }

    @-moz-document url-prefix() {
      /* Firefox is smart enough to align overflowing text to right */
      :host([theme~='align-left'][dir='rtl']) ::slotted(:not([slot$='fix'])) {
        --_lumo-text-field-overflow-mask-image: linear-gradient(to left, transparent 0.25em, #000 1.5em);
      }
    }
  `,{moduleId:"lumo-input-container"});
/**
 * @license
 * Copyright (c) 2017 - 2023 Vaadin Ltd.
 * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
 */
const DE=A`
  [part$='button'] {
    flex: none;
    width: 1em;
    height: 1em;
    line-height: 1;
    font-size: var(--lumo-icon-size-m);
    text-align: center;
    color: var(--lumo-contrast-60pct);
    transition: 0.2s color;
    cursor: var(--lumo-clickable-cursor);
  }

  [part$='button']:hover {
    color: var(--lumo-contrast-90pct);
  }

  :host([disabled]) [part$='button'],
  :host([readonly]) [part$='button'] {
    color: var(--lumo-contrast-20pct);
    cursor: default;
  }

  [part$='button']::before {
    font-family: 'lumo-icons';
    display: block;
  }
`;kE("",DE,{moduleId:"lumo-field-button"});
/**
 * @license
 * Copyright (c) 2017 - 2023 Vaadin Ltd.
 * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
 */
const zE=A`
  :host {
    --_helper-spacing: var(--vaadin-input-field-helper-spacing, 0.4em);
  }

  :host([has-helper]) [part='helper-text']::before {
    content: '';
    display: block;
    height: var(--_helper-spacing);
  }

  [part='helper-text'] {
    display: block;
    color: var(--vaadin-input-field-helper-color, var(--lumo-secondary-text-color));
    font-size: var(--vaadin-input-field-helper-font-size, var(--lumo-font-size-xs));
    line-height: var(--lumo-line-height-xs);
    font-weight: var(--vaadin-input-field-helper-font-weight, 400);
    margin-left: calc(var(--lumo-border-radius-m) / 4);
    transition: color 0.2s;
  }

  :host(:hover:not([readonly])) [part='helper-text'] {
    color: var(--lumo-body-text-color);
  }

  :host([disabled]) [part='helper-text'] {
    color: var(--lumo-disabled-text-color);
    -webkit-text-fill-color: var(--lumo-disabled-text-color);
  }

  :host([has-helper][theme~='helper-above-field']) [part='helper-text']::before {
    display: none;
  }

  :host([has-helper][theme~='helper-above-field']) [part='helper-text']::after {
    content: '';
    display: block;
    height: var(--_helper-spacing);
  }

  :host([has-helper][theme~='helper-above-field']) [part='label'] {
    order: 0;
    padding-bottom: var(--_helper-spacing);
  }

  :host([has-helper][theme~='helper-above-field']) [part='helper-text'] {
    order: 1;
  }

  :host([has-helper][theme~='helper-above-field']) [part='label'] + * {
    order: 2;
  }

  :host([has-helper][theme~='helper-above-field']) [part='error-message'] {
    order: 3;
  }
`
/**
 * @license
 * Copyright (c) 2017 - 2023 Vaadin Ltd.
 * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
 */,BE=A`
  [part='label'] {
    align-self: flex-start;
    color: var(--vaadin-input-field-label-color, var(--lumo-secondary-text-color));
    font-weight: var(--vaadin-input-field-label-font-weight, 500);
    font-size: var(--vaadin-input-field-label-font-size, var(--lumo-font-size-s));
    margin-left: calc(var(--lumo-border-radius-m) / 4);
    transition: color 0.2s;
    line-height: 1;
    padding-right: 1em;
    padding-bottom: 0.5em;
    /* As a workaround for diacritics being cut off, add a top padding and a
    negative margin to compensate */
    padding-top: 0.25em;
    margin-top: -0.25em;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    position: relative;
    max-width: 100%;
    box-sizing: border-box;
  }

  :host([focused]:not([readonly])) [part='label'] {
    color: var(--vaadin-input-field-focused-label-color, var(--lumo-primary-text-color));
  }

  :host(:hover:not([readonly]):not([focused])) [part='label'] {
    color: var(--vaadin-input-field-hovered-label-color, var(--lumo-body-text-color));
  }

  /* Touch device adjustment */
  @media (pointer: coarse) {
    :host(:hover:not([readonly]):not([focused])) [part='label'] {
      color: var(--vaadin-input-field-label-color, var(--lumo-secondary-text-color));
    }
  }

  :host([has-label])::before {
    margin-top: calc(var(--lumo-font-size-s) * 1.5);
  }

  :host([has-label][theme~='small'])::before {
    margin-top: calc(var(--lumo-font-size-xs) * 1.5);
  }

  :host([has-label]) {
    padding-top: var(--lumo-space-m);
  }

  :host([has-label]) ::slotted([slot='tooltip']) {
    --vaadin-tooltip-offset-bottom: calc((var(--lumo-space-m) - var(--lumo-space-xs)) * -1);
  }

  :host([required]) [part='required-indicator']::after {
    content: var(--lumo-required-field-indicator, '\\2022');
    transition: opacity 0.2s;
    color: var(--lumo-required-field-indicator-color, var(--lumo-primary-text-color));
    position: absolute;
    right: 0;
    width: 1em;
    text-align: center;
  }

  :host([invalid]) [part='required-indicator']::after {
    color: var(--lumo-required-field-indicator-color, var(--lumo-error-text-color));
  }

  [part='error-message'] {
    margin-left: calc(var(--lumo-border-radius-m) / 4);
    font-size: var(--vaadin-input-field-error-font-size, var(--lumo-font-size-xs));
    line-height: var(--lumo-line-height-xs);
    font-weight: var(--vaadin-input-field-error-font-weight, 400);
    color: var(--vaadin-input-field-error-color, var(--lumo-error-text-color));
    will-change: max-height;
    transition: 0.4s max-height;
    max-height: 5em;
  }

  :host([has-error-message]) [part='error-message']::before,
  :host([has-error-message]) [part='error-message']::after {
    content: '';
    display: block;
    height: 0.4em;
  }

  :host(:not([invalid])) [part='error-message'] {
    max-height: 0;
    overflow: hidden;
  }

  /* RTL specific styles */

  :host([dir='rtl']) [part='label'] {
    margin-left: 0;
    margin-right: calc(var(--lumo-border-radius-m) / 4);
  }

  :host([dir='rtl']) [part='label'] {
    padding-left: 1em;
    padding-right: 0;
  }

  :host([dir='rtl']) [part='required-indicator']::after {
    right: auto;
    left: 0;
  }

  :host([dir='rtl']) [part='error-message'] {
    margin-left: 0;
    margin-right: calc(var(--lumo-border-radius-m) / 4);
  }
`;kE("",BE,{moduleId:"lumo-required-field"});
/**
 * @license
 * Copyright (c) 2017 - 2023 Vaadin Ltd.
 * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
 */
const FE=[BE,DE,zE,A`
  :host {
    --lumo-text-field-size: var(--lumo-size-m);
    color: var(--vaadin-input-field-value-color, var(--lumo-body-text-color));
    font-size: var(--vaadin-input-field-value-font-size, var(--lumo-font-size-m));
    font-weight: var(--vaadin-input-field-value-font-weight, 400);
    font-family: var(--lumo-font-family);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-tap-highlight-color: transparent;
    padding: var(--lumo-space-xs) 0;
    --_focus-ring-color: var(--vaadin-focus-ring-color, var(--lumo-primary-color-50pct));
    --_focus-ring-width: var(--vaadin-focus-ring-width, 2px);
    --_input-height: var(--vaadin-input-field-height, var(--lumo-text-field-size));
  }

  :host::before {
    height: var(--_input-height);
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
  }

  :host([focused]) [part='input-field'] ::slotted(:is(input, textarea)) {
    -webkit-mask-image: none;
    mask-image: none;
  }

  ::slotted(:is(input, textarea):placeholder-shown) {
    color: var(--vaadin-input-field-placeholder-color, var(--lumo-secondary-text-color));
  }

  /* Hover */
  :host(:hover:not([readonly]):not([focused])) [part='input-field']::after {
    opacity: var(--vaadin-input-field-hover-highlight-opacity, 0.1);
  }

  /* Touch device adjustment */
  @media (pointer: coarse) {
    :host(:hover:not([readonly]):not([focused])) [part='input-field']::after {
      opacity: 0;
    }

    :host(:active:not([readonly]):not([focused])) [part='input-field']::after {
      opacity: 0.2;
    }
  }

  /* Trigger when not focusing using the keyboard */
  :host([focused]:not([focus-ring]):not([readonly])) [part='input-field']::after {
    transform: scaleX(0);
    transition-duration: 0.15s, 1s;
  }

  /* Focus-ring */
  :host([focus-ring]) [part='input-field'] {
    box-shadow: 0 0 0 var(--_focus-ring-width) var(--_focus-ring-color);
  }

  /* Read-only and disabled */
  :host(:is([readonly], [disabled])) ::slotted(:is(input, textarea):placeholder-shown) {
    opacity: 0;
  }

  /* Read-only style */
  :host([readonly]) {
    --vaadin-input-field-border-color: transparent;
  }

  /* Disabled style */
  :host([disabled]) {
    pointer-events: none;
    --vaadin-input-field-border-color: var(--lumo-contrast-20pct);
  }

  :host([disabled]) [part='label'],
  :host([disabled]) [part='input-field'] ::slotted(*) {
    color: var(--lumo-disabled-text-color);
    -webkit-text-fill-color: var(--lumo-disabled-text-color);
  }

  /* Invalid style */
  :host([invalid]) {
    --vaadin-input-field-border-color: var(--lumo-error-color);
  }

  :host([invalid][focus-ring]) [part='input-field'] {
    box-shadow: 0 0 0 2px var(--lumo-error-color-50pct);
  }

  :host([input-prevented]) [part='input-field'] {
    animation: shake 0.15s infinite;
  }

  @keyframes shake {
    25% {
      transform: translateX(4px);
    }
    75% {
      transform: translateX(-4px);
    }
  }

  /* Small theme */
  :host([theme~='small']) {
    font-size: var(--lumo-font-size-s);
    --lumo-text-field-size: var(--lumo-size-s);
  }

  :host([theme~='small']) [part='label'] {
    font-size: var(--lumo-font-size-xs);
  }

  :host([theme~='small']) [part='error-message'] {
    font-size: var(--lumo-font-size-xxs);
  }

  /* Slotted content */
  [part='input-field'] ::slotted(:not(vaadin-icon):not(input):not(textarea)) {
    color: var(--lumo-secondary-text-color);
    font-weight: 400;
  }

  [part='clear-button']::before {
    content: var(--lumo-icons-cross);
  }
`];kE("",FE,{moduleId:"lumo-input-field-shared-styles"});kE("vaadin-combo-box",[FE,A`
  :host {
    outline: none;
  }

  [part='toggle-button']::before {
    content: var(--lumo-icons-dropdown);
  }
`],{moduleId:"lumo-combo-box"}),
/**
@license
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/
window.JSCompiler_renameProperty=function(e,t){return e};
/**
@license
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/
let jE,VE,qE=/(url\()([^)]*)(\))/g,WE=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/;function GE(e,t){if(e&&WE.test(e))return e;if("//"===e)return e;if(void 0===jE){jE=!1;try{const e=new URL("b","http://a");e.pathname="c%20d",jE="http://a/c%20d"===e.href}catch(e){}}if(t||(t=document.baseURI||window.location.href),jE)try{return new URL(e,t).href}catch(t){return e}return VE||(VE=document.implementation.createHTMLDocument("temp"),VE.base=VE.createElement("base"),VE.head.appendChild(VE.base),VE.anchor=VE.createElement("a"),VE.body.appendChild(VE.anchor)),VE.base.href=t,VE.anchor.href=e,VE.anchor.href||e}function KE(e,t){return e.replace(qE,(function(e,i,o,s){return i+"'"+GE(o.replace(/["']/g,""),t)+"'"+s}))}function XE(e){return e.substring(0,e.lastIndexOf("/")+1)}
/**
@license
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/const YE=!window.ShadyDOM||!window.ShadyDOM.inUse;Boolean(!window.ShadyCSS||window.ShadyCSS.nativeCss);const JE=YE&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype&&(()=>{try{const e=new CSSStyleSheet;e.replaceSync("");const t=document.createElement("div");return t.attachShadow({mode:"open"}),t.shadowRoot.adoptedStyleSheets=[e],t.shadowRoot.adoptedStyleSheets[0]===e}catch(e){return!1}})();let ZE=window.Polymer&&window.Polymer.rootPath||XE(document.baseURI||window.location.href),QE=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0;window.Polymer&&window.Polymer.setPassiveTouchGestures;let eS=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,tS=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,iS=window.Polymer&&window.Polymer.legacyOptimizations||!1,oS=window.Polymer&&window.Polymer.legacyWarnings||!1,sS=window.Polymer&&window.Polymer.syncInitialRender||!1,nS=window.Polymer&&window.Polymer.legacyUndefined||!1,rS=window.Polymer&&window.Polymer.orderedComputed||!1,aS=window.Polymer&&window.Polymer.removeNestedTemplates||!1,lS=window.Polymer&&window.Polymer.fastDomIf||!1;window.Polymer&&window.Polymer.suppressTemplateNotifications,window.Polymer&&window.Polymer.legacyNoObservedAttributes;let dS=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1,cS=0;
/**
@license
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/const hS=function(e){let t=e.__mixinApplications;t||(t=new WeakMap,e.__mixinApplications=t);let i=cS++;return function(o){let s=o.__mixinSet;if(s&&s[i])return o;let n=t,r=n.get(o);if(!r){r=e(o),n.set(o,r);let t=Object.create(r.__mixinSet||s||null);t[i]=!0,r.__mixinSet=t}return r}};
/**
@license
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/let pS={},uS={};function mS(e,t){pS[e]=uS[e.toLowerCase()]=t}function gS(e){return pS[e]||uS[e.toLowerCase()]}class fS extends HTMLElement{static get observedAttributes(){return["id"]}static import(e,t){if(e){let i=gS(e);return i&&t?i.querySelector(t):i}return null}attributeChangedCallback(e,t,i,o){t!==i&&this.register()}get assetpath(){if(!this.__assetpath){const e=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument,t=GE(this.getAttribute("assetpath")||"",e.baseURI);this.__assetpath=XE(t)}return this.__assetpath}register(e){if(e=e||this.id){if(eS&&void 0!==gS(e))throw mS(e,null),new Error(`strictTemplatePolicy: dom-module ${e} re-registered`);this.id=e,mS(e,this),(t=this).querySelector("style")&&console.warn("dom-module %s has style outside template",t.id)}var t}}fS.prototype.modules=pS,customElements.define("dom-module",fS);
/**
@license
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/
const _S="link[rel=import][type~=css]",vS="include",bS="shady-unscoped";function yS(e){return fS.import(e)}function xS(e){const t=KE((e.body?e.body:e).textContent,e.baseURI),i=document.createElement("style");return i.textContent=t,i}function wS(e){const t=e.trim().split(/\s+/),i=[];for(let e=0;e<t.length;e++)i.push(...$S(t[e]));return i}function $S(e){const t=yS(e);if(!t)return console.warn("Could not find style data in module named",e),[];if(void 0===t._styles){const e=[];e.push(...kS(t));const i=t.querySelector("template");i&&e.push(...AS(i,t.assetpath)),t._styles=e}return t._styles}function AS(e,t){if(!e._styles){const i=[],o=e.content.querySelectorAll("style");for(let e=0;e<o.length;e++){let s=o[e],n=s.getAttribute(vS);n&&i.push(...wS(n).filter((function(e,t,i){return i.indexOf(e)===t}))),t&&(s.textContent=KE(s.textContent,t)),i.push(s)}e._styles=i}return e._styles}function kS(e){const t=[],i=e.querySelectorAll(_S);for(let e=0;e<i.length;e++){let o=i[e];if(o.import){const e=o.import,i=o.hasAttribute(bS);if(i&&!e._unscopedStyle){const t=xS(e);t.setAttribute(bS,""),e._unscopedStyle=t}else e._style||(e._style=xS(e));t.push(i?e._unscopedStyle:e._style)}}return t}
/**
@license
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/const ES=window.ShadyDOM&&window.ShadyDOM.noPatch&&window.ShadyDOM.wrap?window.ShadyDOM.wrap:window.ShadyDOM?e=>ShadyDOM.patch(e):e=>e;
/**
@license
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/function SS(e){return e.indexOf(".")>=0}function CS(e){let t=e.indexOf(".");return-1===t?e:e.slice(0,t)}function TS(e,t){return 0===t.indexOf(e+".")}function PS(e,t,i){return t+i.slice(e.length)}function IS(e){if(Array.isArray(e)){let t=[];for(let i=0;i<e.length;i++){let o=e[i].toString().split(".");for(let e=0;e<o.length;e++)t.push(o[e])}return t.join(".")}return e}function OS(e){return Array.isArray(e)?IS(e).split("."):e.toString().split(".")}function RS(e,t,i){let o=e,s=OS(t);for(let e=0;e<s.length;e++){if(!o)return;o=o[s[e]]}return i&&(i.path=s.join(".")),o}function NS(e,t,i){let o=e,s=OS(t),n=s[s.length-1];if(s.length>1){for(let e=0;e<s.length-1;e++){if(o=o[s[e]],!o)return}o[n]=i}else o[t]=i;return s.join(".")}
/**
@license
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/const LS={},MS=/-[a-z]/g,US=/([A-Z])/g;function HS(e){return LS[e]||(LS[e]=e.indexOf("-")<0?e:e.replace(MS,(e=>e[1].toUpperCase())))}function DS(e){return LS[e]||(LS[e]=e.replace(US,"-$1").toLowerCase())}
/**
@license
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/let zS=0,BS=0,FS=[],jS=0,VS=!1,qS=document.createTextNode("");new window.MutationObserver((function(){VS=!1;const e=FS.length;for(let t=0;t<e;t++){let e=FS[t];if(e)try{e()}catch(e){setTimeout((()=>{throw e}))}}FS.splice(0,e),BS+=e})).observe(qS,{characterData:!0});const WS={run:e=>(VS||(VS=!0,qS.textContent=jS++),FS.push(e),zS++),cancel(e){const t=e-BS;if(t>=0){if(!FS[t])throw new Error("invalid async handle: "+e);FS[t]=null}}},GS=hS((e=>class extends e{static createProperties(e){const t=this.prototype;for(let i in e)i in t||t._createPropertyAccessor(i)}static attributeNameForProperty(e){return e.toLowerCase()}static typeForProperty(e){}_createPropertyAccessor(e,t){this._addPropertyToAttributeMap(e),this.hasOwnProperty(JSCompiler_renameProperty("__dataHasAccessor",this))||(this.__dataHasAccessor=Object.assign({},this.__dataHasAccessor)),this.__dataHasAccessor[e]||(this.__dataHasAccessor[e]=!0,this._definePropertyAccessor(e,t))}_addPropertyToAttributeMap(e){this.hasOwnProperty(JSCompiler_renameProperty("__dataAttributes",this))||(this.__dataAttributes=Object.assign({},this.__dataAttributes));let t=this.__dataAttributes[e];return t||(t=this.constructor.attributeNameForProperty(e),this.__dataAttributes[t]=e),t}_definePropertyAccessor(e,t){Object.defineProperty(this,e,{get(){return this.__data[e]},set:t?function(){}:function(t){this._setPendingProperty(e,t,!0)&&this._invalidateProperties()}})}constructor(){super(),this.__dataEnabled=!1,this.__dataReady=!1,this.__dataInvalid=!1,this.__data={},this.__dataPending=null,this.__dataOld=null,this.__dataInstanceProps=null,this.__dataCounter=0,this.__serializing=!1,this._initializeProperties()}ready(){this.__dataReady=!0,this._flushProperties()}_initializeProperties(){for(let e in this.__dataHasAccessor)this.hasOwnProperty(e)&&(this.__dataInstanceProps=this.__dataInstanceProps||{},this.__dataInstanceProps[e]=this[e],delete this[e])}_initializeInstanceProperties(e){Object.assign(this,e)}_setProperty(e,t){this._setPendingProperty(e,t)&&this._invalidateProperties()}_getProperty(e){return this.__data[e]}_setPendingProperty(e,t,i){let o=this.__data[e],s=this._shouldPropertyChange(e,t,o);return s&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),this.__dataOld&&!(e in this.__dataOld)&&(this.__dataOld[e]=o),this.__data[e]=t,this.__dataPending[e]=t),s}_isPropertyPending(e){return!(!this.__dataPending||!this.__dataPending.hasOwnProperty(e))}_invalidateProperties(){!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,WS.run((()=>{this.__dataInvalid&&(this.__dataInvalid=!1,this._flushProperties())})))}_enableProperties(){this.__dataEnabled||(this.__dataEnabled=!0,this.__dataInstanceProps&&(this._initializeInstanceProperties(this.__dataInstanceProps),this.__dataInstanceProps=null),this.ready())}_flushProperties(){this.__dataCounter++;const e=this.__data,t=this.__dataPending,i=this.__dataOld;this._shouldPropertiesChange(e,t,i)&&(this.__dataPending=null,this.__dataOld=null,this._propertiesChanged(e,t,i)),this.__dataCounter--}_shouldPropertiesChange(e,t,i){return Boolean(t)}_propertiesChanged(e,t,i){}_shouldPropertyChange(e,t,i){return i!==t&&(i==i||t==t)}attributeChangedCallback(e,t,i,o){t!==i&&this._attributeToProperty(e,i),super.attributeChangedCallback&&super.attributeChangedCallback(e,t,i,o)}_attributeToProperty(e,t,i){if(!this.__serializing){const o=this.__dataAttributes,s=o&&o[e]||e;this[s]=this._deserializeValue(t,i||this.constructor.typeForProperty(s))}}_propertyToAttribute(e,t,i){this.__serializing=!0,i=arguments.length<3?this[e]:i,this._valueToNodeAttribute(this,i,t||this.constructor.attributeNameForProperty(e)),this.__serializing=!1}_valueToNodeAttribute(e,t,i){const o=this._serializeValue(t);"class"!==i&&"name"!==i&&"slot"!==i||(e=ES(e)),void 0===o?e.removeAttribute(i):e.setAttribute(i,""===o&&window.trustedTypes?window.trustedTypes.emptyScript:o)}_serializeValue(e){return"boolean"==typeof e?e?"":void 0:null!=e?e.toString():void 0}_deserializeValue(e,t){switch(t){case Boolean:return null!==e;case Number:return Number(e);default:return e}}})),KS={};
/**
@license
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/let XS=HTMLElement.prototype;for(;XS;){let e=Object.getOwnPropertyNames(XS);for(let t=0;t<e.length;t++)KS[e[t]]=!0;XS=Object.getPrototypeOf(XS)}const YS=window.trustedTypes?e=>trustedTypes.isHTML(e)||trustedTypes.isScript(e)||trustedTypes.isScriptURL(e):()=>!1;const JS=hS((e=>{const t=GS(e);return class extends t{static createPropertiesForAttributes(){let e=this.observedAttributes;for(let t=0;t<e.length;t++)this.prototype._createPropertyAccessor(HS(e[t]))}static attributeNameForProperty(e){return DS(e)}_initializeProperties(){this.__dataProto&&(this._initializeProtoProperties(this.__dataProto),this.__dataProto=null),super._initializeProperties()}_initializeProtoProperties(e){for(let t in e)this._setProperty(t,e[t])}_ensureAttribute(e,t){const i=this;i.hasAttribute(e)||this._valueToNodeAttribute(i,t,e)}_serializeValue(e){if("object"==typeof e){if(e instanceof Date)return e.toString();if(e){if(YS(e))return e;try{return JSON.stringify(e)}catch(e){return""}}}return super._serializeValue(e)}_deserializeValue(e,t){let i;switch(t){case Object:try{i=JSON.parse(e)}catch(t){i=e}break;case Array:try{i=JSON.parse(e)}catch(t){i=null,console.warn(`Polymer::Attributes: couldn't decode Array as JSON: ${e}`)}break;case Date:i=isNaN(e)?String(e):Number(e),i=new Date(i);break;default:i=super._deserializeValue(e,t)}return i}_definePropertyAccessor(e,t){!function(e,t){if(!KS[t]){let i=e[t];void 0!==i&&(e.__data?e._setPendingProperty(t,i):(e.__dataProto?e.hasOwnProperty(JSCompiler_renameProperty("__dataProto",e))||(e.__dataProto=Object.create(e.__dataProto)):e.__dataProto={},e.__dataProto[t]=i))}}(this,e),super._definePropertyAccessor(e,t)}_hasAccessor(e){return this.__dataHasAccessor&&this.__dataHasAccessor[e]}_isPropertyPending(e){return Boolean(this.__dataPending&&e in this.__dataPending)}}})),ZS={"dom-if":!0,"dom-repeat":!0};
/**
@license
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/let QS=!1,eC=!1;function tC(e){(function(){if(!QS){QS=!0;const e=document.createElement("textarea");e.placeholder="a",eC=e.placeholder===e.textContent}return eC})()&&"textarea"===e.localName&&e.placeholder&&e.placeholder===e.textContent&&(e.textContent=null)}const iC=(()=>{const e=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:e=>e});return(t,i,o)=>{const s=i.getAttribute(o);e&&o.startsWith("on-")?t.setAttribute(o,e.createScript(s,o)):t.setAttribute(o,s)}})();function oC(e){let t=e.getAttribute("is");if(t&&ZS[t]){let i=e;for(i.removeAttribute("is"),e=i.ownerDocument.createElement(t),i.parentNode.replaceChild(e,i),e.appendChild(i);i.attributes.length;){const{name:t}=i.attributes[0];iC(e,i,t),i.removeAttribute(t)}}return e}function sC(e,t){let i=t.parentInfo&&sC(e,t.parentInfo);if(!i)return e;for(let e=i.firstChild,o=0;e;e=e.nextSibling)if(t.parentIndex===o++)return e}function nC(e,t,i,o){o.id&&(t[o.id]=i)}function rC(e,t,i){if(i.events&&i.events.length)for(let o,s=0,n=i.events;s<n.length&&(o=n[s]);s++)e._addMethodEventListenerToNode(t,o.name,o.value,e)}function aC(e,t,i,o){i.templateInfo&&(t._templateInfo=i.templateInfo,t._parentTemplateInfo=o)}const lC=hS((e=>class extends e{static _parseTemplate(e,t){if(!e._templateInfo){let i=e._templateInfo={};i.nodeInfoList=[],i.nestedTemplate=Boolean(t),i.stripWhiteSpace=t&&t.stripWhiteSpace||e.hasAttribute&&e.hasAttribute("strip-whitespace"),this._parseTemplateContent(e,i,{parent:null})}return e._templateInfo}static _parseTemplateContent(e,t,i){return this._parseTemplateNode(e.content,t,i)}static _parseTemplateNode(e,t,i){let o=!1,s=e;return"template"!=s.localName||s.hasAttribute("preserve-content")?"slot"===s.localName&&(t.hasInsertionPoint=!0):o=this._parseTemplateNestedTemplate(s,t,i)||o,tC(s),s.firstChild&&this._parseTemplateChildNodes(s,t,i),s.hasAttributes&&s.hasAttributes()&&(o=this._parseTemplateNodeAttributes(s,t,i)||o),o||i.noted}static _parseTemplateChildNodes(e,t,i){if("script"!==e.localName&&"style"!==e.localName)for(let o,s=e.firstChild,n=0;s;s=o){if("template"==s.localName&&(s=oC(s)),o=s.nextSibling,s.nodeType===Node.TEXT_NODE){let i=o;for(;i&&i.nodeType===Node.TEXT_NODE;)s.textContent+=i.textContent,o=i.nextSibling,e.removeChild(i),i=o;if(t.stripWhiteSpace&&!s.textContent.trim()){e.removeChild(s);continue}}let r={parentIndex:n,parentInfo:i};this._parseTemplateNode(s,t,r)&&(r.infoIndex=t.nodeInfoList.push(r)-1),s.parentNode&&n++}}static _parseTemplateNestedTemplate(e,t,i){let o=e,s=this._parseTemplate(o,t);return(s.content=o.content.ownerDocument.createDocumentFragment()).appendChild(o.content),i.templateInfo=s,!0}static _parseTemplateNodeAttributes(e,t,i){let o=!1,s=Array.from(e.attributes);for(let n,r=s.length-1;n=s[r];r--)o=this._parseTemplateNodeAttribute(e,t,i,n.name,n.value)||o;return o}static _parseTemplateNodeAttribute(e,t,i,o,s){return"on-"===o.slice(0,3)?(e.removeAttribute(o),i.events=i.events||[],i.events.push({name:o.slice(3),value:s}),!0):"id"===o&&(i.id=s,!0)}static _contentForTemplate(e){let t=e._templateInfo;return t&&t.content||e.content}_stampTemplate(e,t){e&&!e.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(e);let i=(t=t||this.constructor._parseTemplate(e)).nodeInfoList,o=t.content||e.content,s=document.importNode(o,!0);s.__noInsertionPoint=!t.hasInsertionPoint;let n=s.nodeList=new Array(i.length);s.$={};for(let e,o=0,r=i.length;o<r&&(e=i[o]);o++){let i=n[o]=sC(s,e);nC(0,s.$,i,e),aC(0,i,e,t),rC(this,i,e)}return s}_addMethodEventListenerToNode(e,t,i,o){let s=function(e,t,i){return e=e._methodHost||e,function(t){e[i]?e[i](t,t.detail):console.warn("listener method `"+i+"` not defined")}}(o=o||e,0,i);return this._addEventListenerToNode(e,t,s),s}_addEventListenerToNode(e,t,i){e.addEventListener(t,i)}_removeEventListenerFromNode(e,t,i){e.removeEventListener(t,i)}}));
/**
 * @fileoverview
 * @suppress {checkPrototypalTypes}
 * @license Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
 * This code may only be used under the BSD style license found at
 * http://polymer.github.io/LICENSE.txt The complete set of authors may be found
 * at http://polymer.github.io/AUTHORS.txt The complete set of contributors may
 * be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
 * Google as part of the polymer project is also subject to an additional IP
 * rights grant found at http://polymer.github.io/PATENTS.txt
 */let dC=0;const cC=[],hC={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},pC="__computeInfo",uC=/[A-Z]/;function mC(e,t,i){let o=e[t];if(o){if(!e.hasOwnProperty(t)&&(o=e[t]=Object.create(e[t]),i))for(let e in o){let t=o[e],i=o[e]=Array(t.length);for(let e=0;e<t.length;e++)i[e]=t[e]}}else o=e[t]={};return o}function gC(e,t,i,o,s,n){if(t){let r=!1;const a=dC++;for(let l in i){let d=t[s?CS(l):l];if(d)for(let t,c=0,h=d.length;c<h&&(t=d[c]);c++)t.info&&t.info.lastRun===a||s&&!_C(l,t.trigger)||(t.info&&(t.info.lastRun=a),t.fn(e,l,i,o,t.info,s,n),r=!0)}return r}return!1}function fC(e,t,i,o,s,n,r,a){let l=!1,d=t[r?CS(o):o];if(d)for(let t,c=0,h=d.length;c<h&&(t=d[c]);c++)t.info&&t.info.lastRun===i||r&&!_C(o,t.trigger)||(t.info&&(t.info.lastRun=i),t.fn(e,o,s,n,t.info,r,a),l=!0);return l}function _C(e,t){if(t){let i=t.name;return i==e||!(!t.structured||!function(e,t){return 0===e.indexOf(t+".")}(i,e))||!(!t.wildcard||!TS(i,e))}return!0}function vC(e,t,i,o,s){let n="string"==typeof s.method?e[s.method]:s.method,r=s.property;n?n.call(e,e.__data[r],o[r]):s.dynamicFn||console.warn("observer method `"+s.method+"` not defined")}function bC(e,t,i){let o=CS(t);if(o!==t){return yC(e,DS(o)+"-changed",i[t],t),!0}return!1}function yC(e,t,i,o){let s={value:i,queueProperty:!0};o&&(s.path=o),ES(e).dispatchEvent(new CustomEvent(t,{detail:s}))}function xC(e,t,i,o,s,n){let r=(n?CS(t):t)!=t?t:null,a=r?RS(e,r):e.__data[t];r&&void 0===a&&(a=i[t]),yC(e,s.eventName,a,r)}function wC(e,t,i,o,s){let n=e.__data[t];QE&&(n=QE(n,s.attrName,"attribute",e)),e._propertyToAttribute(t,s.attrName,n)}function $C(e,t,i,o){let s=e[hC.COMPUTE];if(s)if(rS){dC++;const n=function(e){let t=e.constructor.__orderedComputedDeps;if(!t){t=new Map;const i=e[hC.COMPUTE];let o,{counts:s,ready:n,total:r}=function(e){const t=e[pC],i={},o=e[hC.COMPUTE],s=[];let n=0;for(let e in t){const o=t[e];n+=i[e]=o.args.filter((e=>!e.literal)).length+(o.dynamicFn?1:0)}for(let e in o)t[e]||s.push(e);return{counts:i,ready:s,total:n}}(e);for(;o=n.shift();){t.set(o,t.size);const e=i[o];e&&e.forEach((e=>{const t=e.info.methodInfo;--r,0==--s[t]&&n.push(t)}))}if(0!==r){const t=e;console.warn(`Computed graph for ${t.localName} incomplete; circular?`)}e.constructor.__orderedComputedDeps=t}return t}(e),r=[];for(let e in t)kC(e,s,r,n,o);let a;for(;a=r.shift();)EC(e,"",t,i,a)&&kC(a.methodInfo,s,r,n,o);Object.assign(i,e.__dataOld),Object.assign(t,e.__dataPending),e.__dataPending=null}else{let n=t;for(;gC(e,s,n,i,o);)Object.assign(i,e.__dataOld),Object.assign(t,e.__dataPending),n=e.__dataPending,e.__dataPending=null}}const AC=(e,t,i)=>{let o=0,s=t.length-1,n=-1;for(;o<=s;){const r=o+s>>1,a=i.get(t[r].methodInfo)-i.get(e.methodInfo);if(a<0)o=r+1;else{if(!(a>0)){n=r;break}s=r-1}}n<0&&(n=s+1),t.splice(n,0,e)},kC=(e,t,i,o,s)=>{const n=t[s?CS(e):e];if(n)for(let t=0;t<n.length;t++){const r=n[t];r.info.lastRun===dC||s&&!_C(e,r.trigger)||(r.info.lastRun=dC,AC(r.info,i,o))}};function EC(e,t,i,o,s){let n=RC(e,t,i,o,s);if(n===cC)return!1;let r=s.methodInfo;return e.__dataHasAccessor&&e.__dataHasAccessor[r]?e._setPendingProperty(r,n,!0):(e[r]=n,!1)}function SC(e,t,i,o,s,n,r){i.bindings=i.bindings||[];let a={kind:o,target:s,parts:n,literal:r,isCompound:1!==n.length};if(i.bindings.push(a),function(e){return Boolean(e.target)&&"attribute"!=e.kind&&"text"!=e.kind&&!e.isCompound&&"{"===e.parts[0].mode}(a)){let{event:e,negate:t}=a.parts[0];a.listenerEvent=e||DS(s)+"-changed",a.listenerNegate=t}let l=t.nodeInfoList.length;for(let i=0;i<a.parts.length;i++){let o=a.parts[i];o.compoundIndex=i,CC(e,t,a,o,l)}}function CC(e,t,i,o,s){if(!o.literal)if("attribute"===i.kind&&"-"===i.target[0])console.warn("Cannot set attribute "+i.target+' because "-" is not a valid attribute starting character');else{let n=o.dependencies,r={index:s,binding:i,part:o,evaluator:e};for(let i=0;i<n.length;i++){let o=n[i];"string"==typeof o&&(o=zC(o),o.wildcard=!0),e._addTemplatePropertyEffect(t,o.rootProperty,{fn:TC,info:r,trigger:o})}}}function TC(e,t,i,o,s,n,r){let a=r[s.index],l=s.binding,d=s.part;if(n&&d.source&&t.length>d.source.length&&"property"==l.kind&&!l.isCompound&&a.__isPropertyEffectsClient&&a.__dataHasAccessor&&a.__dataHasAccessor[l.target]){let o=i[t];t=PS(d.source,l.target,t),a._setPendingPropertyOrPath(t,o,!1,!0)&&e._enqueueClient(a)}else{let r=s.evaluator._evaluateBinding(e,d,t,i,o,n);r!==cC&&function(e,t,i,o,s){s=function(e,t,i,o){if(i.isCompound){let s=e.__dataCompoundStorage[i.target];s[o.compoundIndex]=t,t=s.join("")}"attribute"!==i.kind&&("textContent"!==i.target&&("value"!==i.target||"input"!==e.localName&&"textarea"!==e.localName)||(t=null==t?"":t));return t}(t,s,i,o),QE&&(s=QE(s,i.target,i.kind,t));if("attribute"==i.kind)e._valueToNodeAttribute(t,s,i.target);else{let o=i.target;t.__isPropertyEffectsClient&&t.__dataHasAccessor&&t.__dataHasAccessor[o]?t[hC.READ_ONLY]&&t[hC.READ_ONLY][o]||t._setPendingProperty(o,s)&&e._enqueueClient(t):e._setUnmanagedPropertyToNode(t,o,s)}}(e,a,l,d,r)}}function PC(e,t){if(t.isCompound){let i=e.__dataCompoundStorage||(e.__dataCompoundStorage={}),o=t.parts,s=new Array(o.length);for(let e=0;e<o.length;e++)s[e]=o[e].literal;let n=t.target;i[n]=s,t.literal&&"property"==t.kind&&("className"===n&&(e=ES(e)),e[n]=t.literal)}}function IC(e,t,i){if(i.listenerEvent){let o=i.parts[0];e.addEventListener(i.listenerEvent,(function(e){!function(e,t,i,o,s){let n,r=e.detail,a=r&&r.path;a?(o=PS(i,o,a),n=r&&r.value):n=e.currentTarget[i],n=s?!n:n,t[hC.READ_ONLY]&&t[hC.READ_ONLY][o]||!t._setPendingPropertyOrPath(o,n,!0,Boolean(a))||r&&r.queueProperty||t._invalidateProperties()}(e,t,i.target,o.source,o.negate)}))}}function OC(e,t,i,o,s,n){n=t.static||n&&("object"!=typeof n||n[t.methodName]);let r={methodName:t.methodName,args:t.args,methodInfo:s,dynamicFn:n};for(let s,n=0;n<t.args.length&&(s=t.args[n]);n++)s.literal||e._addPropertyEffect(s.rootProperty,i,{fn:o,info:r,trigger:s});return n&&e._addPropertyEffect(t.methodName,i,{fn:o,info:r}),r}function RC(e,t,i,o,s){let n=e._methodHost||e,r=n[s.methodName];if(r){let o=e._marshalArgs(s.args,t,i);return o===cC?cC:r.apply(n,o)}s.dynamicFn||console.warn("method `"+s.methodName+"` not defined")}const NC=[],LC="(?:[a-zA-Z_$][\\w.:$\\-*]*)",MC="(?:("+LC+"|(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)|(?:(?:'(?:[^'\\\\]|\\\\.)*')|(?:\"(?:[^\"\\\\]|\\\\.)*\")))\\s*)",UC=new RegExp("(\\[\\[|{{)\\s*(?:(!)\\s*)?"+("("+LC+"\\s*"+("(?:\\(\\s*(?:"+("(?:"+MC+"(?:,\\s*"+MC+")*)")+"?)\\)\\s*)")+"?)")+"(?:]]|}})","g");function HC(e){let t="";for(let i=0;i<e.length;i++){t+=e[i].literal||""}return t}function DC(e){let t=e.match(/([^\s]+?)\(([\s\S]*)\)/);if(t){let e={methodName:t[1],static:!0,args:NC};if(t[2].trim()){return function(e,t){return t.args=e.map((function(e){let i=zC(e);return i.literal||(t.static=!1),i}),this),t}(t[2].replace(/\\,/g,"&comma;").split(","),e)}return e}return null}function zC(e){let t=e.trim().replace(/&comma;/g,",").replace(/\\(.)/g,"$1"),i={name:t,value:"",literal:!1},o=t[0];switch("-"===o&&(o=t[1]),o>="0"&&o<="9"&&(o="#"),o){case"'":case'"':i.value=t.slice(1,-1),i.literal=!0;break;case"#":i.value=Number(t),i.literal=!0}return i.literal||(i.rootProperty=CS(t),i.structured=SS(t),i.structured&&(i.wildcard=".*"==t.slice(-2),i.wildcard&&(i.name=t.slice(0,-2)))),i}function BC(e,t,i){let o=RS(e,i);return void 0===o&&(o=t[i]),o}function FC(e,t,i,o){const s={indexSplices:o};nS&&!e._overrideLegacyUndefined&&(t.splices=s),e.notifyPath(i+".splices",s),e.notifyPath(i+".length",t.length),nS&&!e._overrideLegacyUndefined&&(s.indexSplices=[])}function jC(e,t,i,o,s,n){FC(e,t,i,[{index:o,addedCount:s,removed:n,object:t,type:"splice"}])}const VC=hS((e=>{const t=lC(JS(e));return class extends t{constructor(){super(),this.__isPropertyEffectsClient=!0,this.__dataClientsReady,this.__dataPendingClients,this.__dataToNotify,this.__dataLinkedPaths,this.__dataHasPaths,this.__dataCompoundStorage,this.__dataHost,this.__dataTemp,this.__dataClientsInitialized,this.__data,this.__dataPending,this.__dataOld,this.__computeEffects,this.__computeInfo,this.__reflectEffects,this.__notifyEffects,this.__propagateEffects,this.__observeEffects,this.__readOnly,this.__templateInfo,this._overrideLegacyUndefined}get PROPERTY_EFFECT_TYPES(){return hC}_initializeProperties(){super._initializeProperties(),this._registerHost(),this.__dataClientsReady=!1,this.__dataPendingClients=null,this.__dataToNotify=null,this.__dataLinkedPaths=null,this.__dataHasPaths=!1,this.__dataCompoundStorage=this.__dataCompoundStorage||null,this.__dataHost=this.__dataHost||null,this.__dataTemp={},this.__dataClientsInitialized=!1}_registerHost(){if(qC.length){let e=qC[qC.length-1];e._enqueueClient(this),this.__dataHost=e}}_initializeProtoProperties(e){this.__data=Object.create(e),this.__dataPending=Object.create(e),this.__dataOld={}}_initializeInstanceProperties(e){let t=this[hC.READ_ONLY];for(let i in e)t&&t[i]||(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[i]=this.__dataPending[i]=e[i])}_addPropertyEffect(e,t,i){this._createPropertyAccessor(e,t==hC.READ_ONLY);let o=mC(this,t,!0)[e];o||(o=this[t][e]=[]),o.push(i)}_removePropertyEffect(e,t,i){let o=mC(this,t,!0)[e],s=o.indexOf(i);s>=0&&o.splice(s,1)}_hasPropertyEffect(e,t){let i=this[t];return Boolean(i&&i[e])}_hasReadOnlyEffect(e){return this._hasPropertyEffect(e,hC.READ_ONLY)}_hasNotifyEffect(e){return this._hasPropertyEffect(e,hC.NOTIFY)}_hasReflectEffect(e){return this._hasPropertyEffect(e,hC.REFLECT)}_hasComputedEffect(e){return this._hasPropertyEffect(e,hC.COMPUTE)}_setPendingPropertyOrPath(e,t,i,o){if(o||CS(Array.isArray(e)?e[0]:e)!==e){if(!o){let i=RS(this,e);if(!(e=NS(this,e,t))||!super._shouldPropertyChange(e,t,i))return!1}if(this.__dataHasPaths=!0,this._setPendingProperty(e,t,i))return function(e,t,i){let o=e.__dataLinkedPaths;if(o){let s;for(let n in o){let r=o[n];TS(n,t)?(s=PS(n,r,t),e._setPendingPropertyOrPath(s,i,!0,!0)):TS(r,t)&&(s=PS(r,n,t),e._setPendingPropertyOrPath(s,i,!0,!0))}}}(this,e,t),!0}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[e])return this._setPendingProperty(e,t,i);this[e]=t}return!1}_setUnmanagedPropertyToNode(e,t,i){i===e[t]&&"object"!=typeof i||("className"===t&&(e=ES(e)),e[t]=i)}_setPendingProperty(e,t,i){let o=this.__dataHasPaths&&SS(e),s=o?this.__dataTemp:this.__data;return!!this._shouldPropertyChange(e,t,s[e])&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),e in this.__dataOld||(this.__dataOld[e]=this.__data[e]),o?this.__dataTemp[e]=t:this.__data[e]=t,this.__dataPending[e]=t,(o||this[hC.NOTIFY]&&this[hC.NOTIFY][e])&&(this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[e]=i),!0)}_setProperty(e,t){this._setPendingProperty(e,t,!0)&&this._invalidateProperties()}_invalidateProperties(){this.__dataReady&&this._flushProperties()}_enqueueClient(e){this.__dataPendingClients=this.__dataPendingClients||[],e!==this&&this.__dataPendingClients.push(e)}_flushClients(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)}__enableOrFlushClients(){let e=this.__dataPendingClients;if(e){this.__dataPendingClients=null;for(let t=0;t<e.length;t++){let i=e[t];i.__dataEnabled?i.__dataPending&&i._flushProperties():i._enableProperties()}}}_readyClients(){this.__enableOrFlushClients()}setProperties(e,t){for(let i in e)!t&&this[hC.READ_ONLY]&&this[hC.READ_ONLY][i]||this._setPendingPropertyOrPath(i,e[i],!0);this._invalidateProperties()}ready(){this._flushProperties(),this.__dataClientsReady||this._flushClients(),this.__dataPending&&this._flushProperties()}_propertiesChanged(e,t,i){let o,s=this.__dataHasPaths;this.__dataHasPaths=!1,$C(this,t,i,s),o=this.__dataToNotify,this.__dataToNotify=null,this._propagatePropertyChanges(t,i,s),this._flushClients(),gC(this,this[hC.REFLECT],t,i,s),gC(this,this[hC.OBSERVE],t,i,s),o&&function(e,t,i,o,s){let n,r,a=e[hC.NOTIFY],l=dC++;for(let r in t)t[r]&&(a&&fC(e,a,l,r,i,o,s)||s&&bC(e,r,i))&&(n=!0);n&&(r=e.__dataHost)&&r._invalidateProperties&&r._invalidateProperties()}(this,o,t,i,s),1==this.__dataCounter&&(this.__dataTemp={})}_propagatePropertyChanges(e,t,i){this[hC.PROPAGATE]&&gC(this,this[hC.PROPAGATE],e,t,i),this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,e,t,i)}_runEffectsForTemplate(e,t,i,o){const s=(t,o)=>{gC(this,e.propertyEffects,t,i,o,e.nodeList);for(let s=e.firstChild;s;s=s.nextSibling)this._runEffectsForTemplate(s,t,i,o)};e.runEffects?e.runEffects(s,t,o):s(t,o)}linkPaths(e,t){e=IS(e),t=IS(t),this.__dataLinkedPaths=this.__dataLinkedPaths||{},this.__dataLinkedPaths[e]=t}unlinkPaths(e){e=IS(e),this.__dataLinkedPaths&&delete this.__dataLinkedPaths[e]}notifySplices(e,t){let i={path:""};FC(this,RS(this,e,i),i.path,t)}get(e,t){return RS(t||this,e)}set(e,t,i){i?NS(i,e,t):this[hC.READ_ONLY]&&this[hC.READ_ONLY][e]||this._setPendingPropertyOrPath(e,t,!0)&&this._invalidateProperties()}push(e,...t){let i={path:""},o=RS(this,e,i),s=o.length,n=o.push(...t);return t.length&&jC(this,o,i.path,s,t.length,[]),n}pop(e){let t={path:""},i=RS(this,e,t),o=Boolean(i.length),s=i.pop();return o&&jC(this,i,t.path,i.length,0,[s]),s}splice(e,t,i,...o){let s,n={path:""},r=RS(this,e,n);return t<0?t=r.length-Math.floor(-t):t&&(t=Math.floor(t)),s=2===arguments.length?r.splice(t):r.splice(t,i,...o),(o.length||s.length)&&jC(this,r,n.path,t,o.length,s),s}shift(e){let t={path:""},i=RS(this,e,t),o=Boolean(i.length),s=i.shift();return o&&jC(this,i,t.path,0,0,[s]),s}unshift(e,...t){let i={path:""},o=RS(this,e,i),s=o.unshift(...t);return t.length&&jC(this,o,i.path,0,t.length,[]),s}notifyPath(e,t){let i;if(1==arguments.length){let o={path:""};t=RS(this,e,o),i=o.path}else i=Array.isArray(e)?IS(e):e;this._setPendingPropertyOrPath(i,t,!0,!0)&&this._invalidateProperties()}_createReadOnlyProperty(e,t){var i;this._addPropertyEffect(e,hC.READ_ONLY),t&&(this["_set"+(i=e,i[0].toUpperCase()+i.substring(1))]=function(t){this._setProperty(e,t)})}_createPropertyObserver(e,t,i){let o={property:e,method:t,dynamicFn:Boolean(i)};this._addPropertyEffect(e,hC.OBSERVE,{fn:vC,info:o,trigger:{name:e}}),i&&this._addPropertyEffect(t,hC.OBSERVE,{fn:vC,info:o,trigger:{name:t}})}_createMethodObserver(e,t){let i=DC(e);if(!i)throw new Error("Malformed observer expression '"+e+"'");OC(this,i,hC.OBSERVE,RC,null,t)}_createNotifyingProperty(e){this._addPropertyEffect(e,hC.NOTIFY,{fn:xC,info:{eventName:DS(e)+"-changed",property:e}})}_createReflectedProperty(e){let t=this.constructor.attributeNameForProperty(e);"-"===t[0]?console.warn("Property "+e+" cannot be reflected to attribute "+t+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(e,hC.REFLECT,{fn:wC,info:{attrName:t}})}_createComputedProperty(e,t,i){let o=DC(t);if(!o)throw new Error("Malformed computed expression '"+t+"'");const s=OC(this,o,hC.COMPUTE,EC,e,i);mC(this,pC)[e]=s}_marshalArgs(e,t,i){const o=this.__data,s=[];for(let n=0,r=e.length;n<r;n++){let{name:r,structured:a,wildcard:l,value:d,literal:c}=e[n];if(!c)if(l){const e=TS(r,t),s=BC(o,i,e?t:r);d={path:e?t:r,value:s,base:e?RS(o,r):s}}else d=a?BC(o,i,r):o[r];if(nS&&!this._overrideLegacyUndefined&&void 0===d&&e.length>1)return cC;s[n]=d}return s}static addPropertyEffect(e,t,i){this.prototype._addPropertyEffect(e,t,i)}static createPropertyObserver(e,t,i){this.prototype._createPropertyObserver(e,t,i)}static createMethodObserver(e,t){this.prototype._createMethodObserver(e,t)}static createNotifyingProperty(e){this.prototype._createNotifyingProperty(e)}static createReadOnlyProperty(e,t){this.prototype._createReadOnlyProperty(e,t)}static createReflectedProperty(e){this.prototype._createReflectedProperty(e)}static createComputedProperty(e,t,i){this.prototype._createComputedProperty(e,t,i)}static bindTemplate(e){return this.prototype._bindTemplate(e)}_bindTemplate(e,t){let i=this.constructor._parseTemplate(e),o=this.__preBoundTemplateInfo==i;if(!o)for(let e in i.propertyEffects)this._createPropertyAccessor(e);if(t)if(i=Object.create(i),i.wasPreBound=o,this.__templateInfo){const t=e._parentTemplateInfo||this.__templateInfo,o=t.lastChild;i.parent=t,t.lastChild=i,i.previousSibling=o,o?o.nextSibling=i:t.firstChild=i}else this.__templateInfo=i;else this.__preBoundTemplateInfo=i;return i}static _addTemplatePropertyEffect(e,t,i){(e.hostProps=e.hostProps||{})[t]=!0;let o=e.propertyEffects=e.propertyEffects||{};(o[t]=o[t]||[]).push(i)}_stampTemplate(e,t){t=t||this._bindTemplate(e,!0),qC.push(this);let i=super._stampTemplate(e,t);if(qC.pop(),t.nodeList=i.nodeList,!t.wasPreBound){let e=t.childNodes=[];for(let t=i.firstChild;t;t=t.nextSibling)e.push(t)}return i.templateInfo=t,function(e,t){let{nodeList:i,nodeInfoList:o}=t;if(o.length)for(let t=0;t<o.length;t++){let s=o[t],n=i[t],r=s.bindings;if(r)for(let t=0;t<r.length;t++){let i=r[t];PC(n,i),IC(n,e,i)}n.__dataHost=e}}(this,t),this.__dataClientsReady&&(this._runEffectsForTemplate(t,this.__data,null,!1),this._flushClients()),i}_removeBoundDom(e){const t=e.templateInfo,{previousSibling:i,nextSibling:o,parent:s}=t;i?i.nextSibling=o:s&&(s.firstChild=o),o?o.previousSibling=i:s&&(s.lastChild=i),t.nextSibling=t.previousSibling=null;let n=t.childNodes;for(let e=0;e<n.length;e++){let t=n[e];ES(ES(t).parentNode).removeChild(t)}}static _parseTemplateNode(e,i,o){let s=t._parseTemplateNode.call(this,e,i,o);if(e.nodeType===Node.TEXT_NODE){let t=this._parseBindings(e.textContent,i);t&&(e.textContent=HC(t)||" ",SC(this,i,o,"text","textContent",t),s=!0)}return s}static _parseTemplateNodeAttribute(e,i,o,s,n){let r=this._parseBindings(n,i);if(r){let t=s,n="property";uC.test(s)?n="attribute":"$"==s[s.length-1]&&(s=s.slice(0,-1),n="attribute");let a=HC(r);return a&&"attribute"==n&&("class"==s&&e.hasAttribute("class")&&(a+=" "+e.getAttribute(s)),e.setAttribute(s,a)),"attribute"==n&&"disable-upgrade$"==t&&e.setAttribute(s,""),"input"===e.localName&&"value"===t&&e.setAttribute(t,""),e.removeAttribute(t),"property"===n&&(s=HS(s)),SC(this,i,o,n,s,r,a),!0}return t._parseTemplateNodeAttribute.call(this,e,i,o,s,n)}static _parseTemplateNestedTemplate(e,i,o){let s=t._parseTemplateNestedTemplate.call(this,e,i,o);const n=e.parentNode,r=o.templateInfo,a="dom-if"===n.localName,l="dom-repeat"===n.localName;aS&&(a||l)&&(n.removeChild(e),(o=o.parentInfo).templateInfo=r,o.noted=!0,s=!1);let d=r.hostProps;if(lS&&a)d&&(i.hostProps=Object.assign(i.hostProps||{},d),aS||(o.parentInfo.noted=!0));else{let e="{";for(let t in d){SC(this,i,o,"property","_host_"+t,[{mode:e,source:t,dependencies:[t],hostProp:!0}])}}return s}static _parseBindings(e,t){let i,o=[],s=0;for(;null!==(i=UC.exec(e));){i.index>s&&o.push({literal:e.slice(s,i.index)});let n=i[1][0],r=Boolean(i[2]),a=i[3].trim(),l=!1,d="",c=-1;"{"==n&&(c=a.indexOf("::"))>0&&(d=a.substring(c+2),a=a.substring(0,c),l=!0);let h=DC(a),p=[];if(h){let{args:e,methodName:i}=h;for(let t=0;t<e.length;t++){let i=e[t];i.literal||p.push(i)}let o=t.dynamicFns;(o&&o[i]||h.static)&&(p.push(i),h.dynamicFn=!0)}else p.push(a);o.push({source:a,mode:n,negate:r,customEvent:l,signature:h,dependencies:p,event:d}),s=UC.lastIndex}if(s&&s<e.length){let t=e.substring(s);t&&o.push({literal:t})}return o.length?o:null}static _evaluateBinding(e,t,i,o,s,n){let r;return r=t.signature?RC(e,i,o,0,t.signature):i!=t.source?RS(e,t.source):n&&SS(i)?RS(e,i):e.__data[i],t.negate&&(r=!r),r}}})),qC=[];const WC=hS((e=>{const t=GS(e);function i(e){const t=Object.getPrototypeOf(e);return t.prototype instanceof s?t:null}function o(e){if(!e.hasOwnProperty(JSCompiler_renameProperty("__ownProperties",e))){let t=null;if(e.hasOwnProperty(JSCompiler_renameProperty("properties",e))){const i=e.properties;i&&(t=
/**
@license
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/
function(e){const t={};for(let i in e){const o=e[i];t[i]="function"==typeof o?{type:o}:o}return t}(i))}e.__ownProperties=t}return e.__ownProperties}class s extends t{static get observedAttributes(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__observedAttributes",this))){this.prototype;const e=this._properties;this.__observedAttributes=e?Object.keys(e).map((e=>this.prototype._addPropertyToAttributeMap(e))):[]}return this.__observedAttributes}static finalize(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__finalized",this))){const e=i(this);e&&e.finalize(),this.__finalized=!0,this._finalizeClass()}}static _finalizeClass(){const e=o(this);e&&this.createProperties(e)}static get _properties(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__properties",this))){const e=i(this);this.__properties=Object.assign({},e&&e._properties,o(this))}return this.__properties}static typeForProperty(e){const t=this._properties[e];return t&&t.type}_initializeProperties(){this.constructor.finalize(),super._initializeProperties()}connectedCallback(){super.connectedCallback&&super.connectedCallback(),this._enableProperties()}disconnectedCallback(){super.disconnectedCallback&&super.disconnectedCallback()}}return s})),GC=window.ShadyCSS&&window.ShadyCSS.cssBuild,KC=hS((e=>{const t=WC(VC(e));function i(e,t,i,o){i.computed&&(i.readOnly=!0),i.computed&&(e._hasReadOnlyEffect(t)?console.warn(`Cannot redefine computed property '${t}'.`):e._createComputedProperty(t,i.computed,o)),i.readOnly&&!e._hasReadOnlyEffect(t)?e._createReadOnlyProperty(t,!i.computed):!1===i.readOnly&&e._hasReadOnlyEffect(t)&&console.warn(`Cannot make readOnly property '${t}' non-readOnly.`),i.reflectToAttribute&&!e._hasReflectEffect(t)?e._createReflectedProperty(t):!1===i.reflectToAttribute&&e._hasReflectEffect(t)&&console.warn(`Cannot make reflected property '${t}' non-reflected.`),i.notify&&!e._hasNotifyEffect(t)?e._createNotifyingProperty(t):!1===i.notify&&e._hasNotifyEffect(t)&&console.warn(`Cannot make notify property '${t}' non-notify.`),i.observer&&e._createPropertyObserver(t,i.observer,o[i.observer]),e._addPropertyToAttributeMap(t)}function o(e,t,i,o){if(!GC){const s=t.content.querySelectorAll("style"),n=AS(t),r=function(e){let t=yS(e);return t?kS(t):[]}(i),a=t.content.firstElementChild;for(let i=0;i<r.length;i++){let s=r[i];s.textContent=e._processStyleText(s.textContent,o),t.content.insertBefore(s,a)}let l=0;for(let t=0;t<n.length;t++){let i=n[t],r=s[l];r!==i?(i=i.cloneNode(!0),r.parentNode.insertBefore(i,r)):l++,i.textContent=e._processStyleText(i.textContent,o)}}if(window.ShadyCSS&&window.ShadyCSS.prepareTemplate(t,i),dS&&GC&&JE){const i=t.content.querySelectorAll("style");if(i){let t="";Array.from(i).forEach((e=>{t+=e.textContent,e.parentNode.removeChild(e)})),e._styleSheet=new CSSStyleSheet,e._styleSheet.replaceSync(t)}}}return class extends t{static get polymerElementVersion(){return"3.5.1"}static _finalizeClass(){t._finalizeClass.call(this);const e=((i=this).hasOwnProperty(JSCompiler_renameProperty("__ownObservers",i))||(i.__ownObservers=i.hasOwnProperty(JSCompiler_renameProperty("observers",i))?i.observers:null),i.__ownObservers);var i;e&&this.createObservers(e,this._properties),this._prepareTemplate()}static _prepareTemplate(){let e=this.template;e&&("string"==typeof e?(console.error("template getter must return HTMLTemplateElement"),e=null):iS||(e=e.cloneNode(!0))),this.prototype._template=e}static createProperties(e){for(let t in e)i(this.prototype,t,e[t],e)}static createObservers(e,t){const i=this.prototype;for(let o=0;o<e.length;o++)i._createMethodObserver(e[o],t)}static get template(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_template",this))){let e=this.prototype.hasOwnProperty(JSCompiler_renameProperty("_template",this.prototype))?this.prototype._template:void 0;"function"==typeof e&&(e=e()),this._template=void 0!==e?e:this.hasOwnProperty(JSCompiler_renameProperty("is",this))&&function(e){let t=null;if(e&&(!eS||tS)&&(t=fS.import(e,"template"),eS&&!t))throw new Error(`strictTemplatePolicy: expecting dom-module or null template for ${e}`);return t}(this.is)||Object.getPrototypeOf(this.prototype).constructor.template}return this._template}static set template(e){this._template=e}static get importPath(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_importPath",this))){const e=this.importMeta;if(e)this._importPath=XE(e.url);else{const e=fS.import(this.is);this._importPath=e&&e.assetpath||Object.getPrototypeOf(this.prototype).constructor.importPath}}return this._importPath}constructor(){super(),this._template,this._importPath,this.rootPath,this.importPath,this.root,this.$}_initializeProperties(){this.constructor.finalize(),this.constructor._finalizeTemplate(this.localName),super._initializeProperties(),this.rootPath=ZE,this.importPath=this.constructor.importPath;let e=function(e){if(!e.hasOwnProperty(JSCompiler_renameProperty("__propertyDefaults",e))){e.__propertyDefaults=null;let t=e._properties;for(let i in t){let o=t[i];"value"in o&&(e.__propertyDefaults=e.__propertyDefaults||{},e.__propertyDefaults[i]=o)}}return e.__propertyDefaults}(this.constructor);if(e)for(let t in e){let i=e[t];if(this._canApplyPropertyDefault(t)){let e="function"==typeof i.value?i.value.call(this):i.value;this._hasAccessor(t)?this._setPendingProperty(t,e,!0):this[t]=e}}}_canApplyPropertyDefault(e){return!this.hasOwnProperty(e)}static _processStyleText(e,t){return KE(e,t)}static _finalizeTemplate(e){const t=this.prototype._template;if(t&&!t.__polymerFinalized){t.__polymerFinalized=!0;const i=this.importPath;o(this,t,e,i?GE(i):""),this.prototype._bindTemplate(t)}}connectedCallback(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this),super.connectedCallback()}ready(){this._template&&(this.root=this._stampTemplate(this._template),this.$=this.root.$),super.ready()}_readyClients(){this._template&&(this.root=this._attachDom(this.root)),super._readyClients()}_attachDom(e){const t=ES(this);if(t.attachShadow)return e?(t.shadowRoot||(t.attachShadow({mode:"open",shadyUpgradeFragment:e}),t.shadowRoot.appendChild(e),this.constructor._styleSheet&&(t.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet])),sS&&window.ShadyDOM&&window.ShadyDOM.flushInitial(t.shadowRoot),t.shadowRoot):null;throw new Error("ShadowDOM not available. PolymerElement can create dom as children instead of in ShadowDOM by setting `this.root = this;` before `ready`.")}updateStyles(e){window.ShadyCSS&&window.ShadyCSS.styleSubtree(this,e)}resolveUrl(e,t){return!t&&this.importPath&&(t=GE(this.importPath)),GE(e,t)}static _parseTemplateContent(e,i,o){return i.dynamicFns=i.dynamicFns||this._properties,t._parseTemplateContent.call(this,e,i,o)}static _addTemplatePropertyEffect(e,i,o){return!oS||i in this._properties||o.info.part.signature&&o.info.part.signature.static||o.info.part.hostProp||e.nestedTemplate||console.warn(`Property '${i}' used in template but not declared in 'properties'; attribute will not be observed.`),t._addTemplatePropertyEffect.call(this,e,i,o)}}})),XC=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:e=>e});
/**
 * @fileoverview
 * @suppress {checkPrototypalTypes}
 * @license Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
 * This code may only be used under the BSD style license found at
 * http://polymer.github.io/LICENSE.txt The complete set of authors may be found
 * at http://polymer.github.io/AUTHORS.txt The complete set of contributors may
 * be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
 * Google as part of the polymer project is also subject to an additional IP
 * rights grant found at http://polymer.github.io/PATENTS.txt
 */class YC{constructor(e,t){QC(e,t);const i=t.reduce(((t,i,o)=>t+JC(i)+e[o+1]),e[0]);this.value=i.toString()}toString(){return this.value}}function JC(e){if(e instanceof YC)return e.value;throw new Error(`non-literal value passed to Polymer's htmlLiteral function: ${e}`)}const ZC=function(e,...t){QC(e,t);const i=document.createElement("template");let o=t.reduce(((t,i,o)=>t+function(e){if(e instanceof HTMLTemplateElement)return e.innerHTML;if(e instanceof YC)return JC(e);throw new Error(`non-template value passed to Polymer's html function: ${e}`)}(i)+e[o+1]),e[0]);return XC&&(o=XC.createHTML(o)),i.innerHTML=o,i},QC=(e,t)=>{if(!Array.isArray(e)||!Array.isArray(e.raw)||t.length!==e.length-1)throw new TypeError("Invalid call to the html template tag")},eT=KC(HTMLElement),tT=[];function iT(e,t,i=e.getAttribute("dir")){t?e.setAttribute("dir",t):null!=i&&e.removeAttribute("dir")}function oT(){return document.documentElement.getAttribute("dir")}new MutationObserver((function(){const e=oT();tT.forEach((t=>{iT(t,e)}))})).observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]});const sT=e=>class extends e{static get properties(){return{dir:{type:String,value:"",reflectToAttribute:!0,converter:{fromAttribute:e=>e||"",toAttribute:e=>""===e?null:e}}}}get __isRTL(){return"rtl"===this.getAttribute("dir")}connectedCallback(){super.connectedCallback(),this.hasAttribute("dir")&&!this.__restoreSubscription||(this.__subscribe(),iT(this,oT(),null))}attributeChangedCallback(e,t,i){if(super.attributeChangedCallback(e,t,i),"dir"!==e)return;const o=oT(),s=i===o&&-1===tT.indexOf(this),n=!i&&t&&-1===tT.indexOf(this),r=i!==o&&t===o;s||n?(this.__subscribe(),iT(this,o,i)):r&&this.__unsubscribe()}disconnectedCallback(){super.disconnectedCallback(),this.__restoreSubscription=tT.includes(this),this.__unsubscribe()}_valueToNodeAttribute(e,t,i){("dir"!==i||""!==t||e.hasAttribute("dir"))&&super._valueToNodeAttribute(e,t,i)}_attributeToProperty(e,t,i){"dir"!==e||t?super._attributeToProperty(e,t,i):this.dir=""}__subscribe(){tT.includes(this)||tT.push(this)}__unsubscribe(){tT.includes(this)&&tT.splice(tT.indexOf(this),1)}}
/**
 * @license
 * Copyright (c) 2021 - 2023 Vaadin Ltd.
 * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
 */,nT=e=>class extends e{static get properties(){return{disabled:{type:Boolean,reflectToAttribute:!0},readonly:{type:Boolean,reflectToAttribute:!0},invalid:{type:Boolean,reflectToAttribute:!0}}}ready(){super.ready(),this.addEventListener("pointerdown",(e=>{e.target===this&&e.preventDefault()})),this.addEventListener("click",(e=>{e.target===this&&this.shadowRoot.querySelector("slot:not([name])").assignedNodes({flatten:!0}).forEach((e=>e.focus&&e.focus()))}))}}
/**
 * @license
 * Copyright (c) 2021 - 2023 Vaadin Ltd.
 * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
 */;
/**
 * @license
 * Copyright (c) 2021 - 2023 Vaadin Ltd.
 * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
 */
kE("vaadin-input-container",A`
  :host {
    display: flex;
    align-items: center;
    flex: 0 1 auto;
    border-radius:
            /* See https://developer.mozilla.org/en-US/docs/Web/CSS/border-radius */
      var(--vaadin-input-field-top-start-radius, var(--__border-radius))
      var(--vaadin-input-field-top-end-radius, var(--__border-radius))
      var(--vaadin-input-field-bottom-end-radius, var(--__border-radius))
      var(--vaadin-input-field-bottom-start-radius, var(--__border-radius));
    --_border-radius: var(--vaadin-input-field-border-radius, 0);
    --_input-border-width: var(--vaadin-input-field-border-width, 0);
    --_input-border-color: var(--vaadin-input-field-border-color, transparent);
    box-shadow: inset 0 0 0 var(--_input-border-width, 0) var(--_input-border-color);
  }

  :host([dir='rtl']) {
    border-radius:
            /* Don't use logical props, see https://github.com/vaadin/vaadin-time-picker/issues/145 */
      var(--vaadin-input-field-top-end-radius, var(--_border-radius))
      var(--vaadin-input-field-top-start-radius, var(--_border-radius))
      var(--vaadin-input-field-bottom-start-radius, var(--_border-radius))
      var(--vaadin-input-field-bottom-end-radius, var(--_border-radius));
  }

  :host([hidden]) {
    display: none !important;
  }

  /* Reset the native input styles */
  ::slotted(input) {
    -webkit-appearance: none;
    -moz-appearance: none;
    flex: auto;
    white-space: nowrap;
    overflow: hidden;
    width: 100%;
    height: 100%;
    outline: none;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    min-width: 0;
    font: inherit;
    line-height: normal;
    color: inherit;
    background-color: transparent;
    /* Disable default invalid style in Firefox */
    box-shadow: none;
  }

  ::slotted(*) {
    flex: none;
  }

  ::slotted(:is(input, textarea))::placeholder {
    /* Use ::slotted(input:placeholder-shown) in themes to style the placeholder. */
    /* because ::slotted(...)::placeholder does not work in Safari. */
    font: inherit;
    color: inherit;
    /* Override default opacity in Firefox */
    opacity: 1;
  }
`,{moduleId:"vaadin-input-container-styles"});class rT extends(nT(PE(sT(eT)))){static get is(){return"vaadin-input-container"}static get template(){return ZC`
      <slot name="prefix"></slot>
      <slot></slot>
      <slot name="suffix"></slot>
    `}}yE(rT);
/**
 * @license
 * Copyright (c) 2015 - 2023 Vaadin Ltd.
 * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
 */
const aT=e=>class extends e{static get properties(){return{index:{type:Number},item:{type:Object},label:{type:String},selected:{type:Boolean,value:!1,reflectToAttribute:!0},focused:{type:Boolean,value:!1,reflectToAttribute:!0},renderer:{type:Function}}}static get observers(){return["__rendererOrItemChanged(renderer, index, item.*, selected, focused)","__updateLabel(label, renderer)"]}static get observedAttributes(){return[...super.observedAttributes,"hidden"]}attributeChangedCallback(e,t,i){"hidden"===e&&null!==i?this.index=void 0:super.attributeChangedCallback(e,t,i)}connectedCallback(){super.connectedCallback(),this._owner=this.parentNode.owner;const e=this._owner.getAttribute("dir");e&&this.setAttribute("dir",e)}requestContentUpdate(){if(!this.renderer)return;const e={index:this.index,item:this.item,focused:this.focused,selected:this.selected};this.renderer(this,this._owner,e)}__rendererOrItemChanged(e,t,i){void 0!==i&&void 0!==t&&(this._oldRenderer!==e&&(this.innerHTML="",delete this._$litPart$),e&&(this._oldRenderer=e,this.requestContentUpdate()))}__updateLabel(e,t){t||(this.textContent=e)}}
/**
 * @license
 * Copyright (c) 2015 - 2023 Vaadin Ltd.
 * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
 */;class lT extends(aT(PE(sT(eT)))){static get template(){return ZC`
      <style>
        :host {
          display: block;
        }

        :host([hidden]) {
          display: none;
        }
      </style>
      <span part="checkmark" aria-hidden="true"></span>
      <div part="content">
        <slot></slot>
      </div>
    `}static get is(){return"vaadin-combo-box-item"}}yE(lT);
/**
@license
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/
let dT=!1,cT=[],hT=[];function pT(){dT=!0,requestAnimationFrame((function(){dT=!1,function(e){for(;e.length;)uT(e.shift())}(cT),setTimeout((function(){!function(e){for(let t=0,i=e.length;t<i;t++)uT(e.shift())}(hT)}))}))}function uT(e){const t=e[0],i=e[1],o=e[2];try{i.apply(t,o)}catch(e){setTimeout((()=>{throw e}))}}
/**
 * @license
 * Copyright (c) 2021 - 2023 Vaadin Ltd.
 * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
 */
const mT=e=>e.test(navigator.userAgent),gT=e=>e.test(navigator.platform),fT=mT(/Android/u),_T=mT(/Chrome/u)&&/Google Inc/u.test(navigator.vendor);const vT=mT(/Firefox/u),bT=gT(/^iPad/u)||gT(/^Mac/u)&&navigator.maxTouchPoints>1,yT=gT(/^iPhone/u)||bT,xT=mT(/^((?!chrome|android).)*safari/iu),wT=(()=>{try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}})();
/**
 * @license
 * Copyright (c) 2017 Anton Korzunov
 * SPDX-License-Identifier: MIT
 */
let $T=new WeakMap,AT=new WeakMap,kT={},ET=0;const ST=e=>e&&e.nodeType===Node.ELEMENT_NODE,CT=(...e)=>{console.error(`Error: ${e.join(" ")}. Skip setting aria-hidden.`)},TT=(e,t,i,o)=>{const s=((e,t)=>ST(e)?t.map((t=>{if(!ST(t))return CT(t,"is not a valid element"),null;let i=t;for(;i&&i!==e;){if(e.contains(i))return t;i=i.getRootNode().host}return CT(t,"is not contained inside",e),null})).filter((e=>Boolean(e))):(CT(e,"is not a valid element"),[]))(t,Array.isArray(e)?e:[e]);kT[i]||(kT[i]=new WeakMap);const n=kT[i],r=[],a=new Set,l=new Set(s),d=e=>{if(!e||a.has(e))return;a.add(e);const t=e.assignedSlot;t&&d(t),d(e.parentNode||e.host)};s.forEach(d);const c=e=>{if(!e||l.has(e))return;const t=e.shadowRoot;(t?[...e.children,...t.children]:[...e.children]).forEach((e=>{if(!["template","script","style"].includes(e.localName))if(a.has(e))c(e);else{const t=e.getAttribute(o),s=null!==t&&"false"!==t,a=($T.get(e)||0)+1,l=(n.get(e)||0)+1;$T.set(e,a),n.set(e,l),r.push(e),1===a&&s&&AT.set(e,!0),1===l&&e.setAttribute(i,"true"),s||e.setAttribute(o,"true")}}))};return c(t),a.clear(),ET+=1,()=>{r.forEach((e=>{const t=$T.get(e)-1,s=n.get(e)-1;$T.set(e,t),n.set(e,s),t||(AT.has(e)?AT.delete(e):e.removeAttribute(o)),s||e.removeAttribute(i)})),ET-=1,ET||($T=new WeakMap,$T=new WeakMap,AT=new WeakMap,kT={})}};
/**
 * @license
 * Copyright (c) 2021 - 2023 Vaadin Ltd.
 * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
 */
class PT{constructor(e,t){this.host=e,this.callback="function"==typeof t?t:()=>e}showModal(){const e=this.callback();this.__showOthers=((e,t=document.body,i="data-aria-hidden")=>{const o=Array.from(Array.isArray(e)?e:[e]);return t&&o.push(...Array.from(t.querySelectorAll("[aria-live]"))),TT(o,t,i,"aria-hidden")})(e)}close(){this.__showOthers&&(this.__showOthers(),this.__showOthers=null)}}
/**
 * @license
 * Copyright (c) 2021 - 2023 Vaadin Ltd.
 * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
 */let IT=!1;function OT(){let e=document.activeElement||document.body;for(;e.shadowRoot&&e.shadowRoot.activeElement;)e=e.shadowRoot.activeElement;return e}function RT(){return IT}function NT(e){const t=e.style;if("hidden"===t.visibility||"none"===t.display)return!0;const i=window.getComputedStyle(e);return"hidden"===i.visibility||"none"===i.display}function LT(e,t){const i=Math.max(e.tabIndex,0),o=Math.max(t.tabIndex,0);return 0===i||0===o?o>i:i>o}function MT(e){const t=e.length;if(t<2)return e;const i=Math.ceil(t/2);return function(e,t){const i=[];for(;e.length>0&&t.length>0;)LT(e[0],t[0])?i.push(t.shift()):i.push(e.shift());return i.concat(e,t)}(MT(e.slice(0,i)),MT(e.slice(i)))}function UT(e){return null===e.offsetParent&&0===e.clientWidth&&0===e.clientHeight||NT(e)}function HT(e){return e.getRootNode().activeElement===e}function DT(e,t){if(e.nodeType!==Node.ELEMENT_NODE||NT(e))return!1;const i=e,o=function(e){if(!function(e){return!e.matches('[tabindex="-1"]')&&(e.matches("input, select, textarea, button, object")?e.matches(":not([disabled])"):e.matches("a[href], area[href], iframe, [tabindex], [contentEditable]"))}(e))return-1;const t=e.getAttribute("tabindex")||0;return Number(t)}(i);let s=o>0;o>=0&&t.push(i);let n=[];return n="slot"===i.localName?i.assignedNodes({flatten:!0}):(i.shadowRoot||i).children,[...n].forEach((e=>{s=DT(e,t)||s})),s}window.addEventListener("keydown",(()=>{IT=!0}),{capture:!0}),window.addEventListener("mousedown",(()=>{IT=!1}),{capture:!0});
/**
 * @license
 * Copyright (c) 2021 - 2023 Vaadin Ltd.
 * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
 */
class zT{saveFocus(e){this.focusNode=e||OT()}restoreFocus(){const e=this.focusNode;e&&(OT()===document.body?setTimeout((()=>e.focus())):e.focus(),this.focusNode=null)}}
/**
 * @license
 * Copyright (c) 2021 - 2023 Vaadin Ltd.
 * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
 */const BT=[];class FT{constructor(e){this.host=e,this.__trapNode=null,this.__onKeyDown=this.__onKeyDown.bind(this)}get __focusableElements(){return function(e){const t=[];return DT(e,t)?MT(t):t}(this.__trapNode)}get __focusedElementIndex(){const e=this.__focusableElements;return e.indexOf(e.filter(HT).pop())}hostConnected(){document.addEventListener("keydown",this.__onKeyDown)}hostDisconnected(){document.removeEventListener("keydown",this.__onKeyDown)}trapFocus(e){if(this.__trapNode=e,0===this.__focusableElements.length)throw this.__trapNode=null,new Error("The trap node should have at least one focusable descendant or be focusable itself.");BT.push(this),-1===this.__focusedElementIndex&&this.__focusableElements[0].focus()}releaseFocus(){this.__trapNode=null,BT.pop()}__onKeyDown(e){if(this.__trapNode&&this===Array.from(BT).pop()&&"Tab"===e.key){e.preventDefault();const t=e.shiftKey;this.__focusNextElement(t)}}__focusNextElement(e=!1){const t=this.__focusableElements,i=e?-1:1,o=this.__focusedElementIndex,s=t[(t.length+o+i)%t.length];s.focus(),"input"===s.localName&&s.select()}}
/**
 * @license
 * Copyright (c) 2021 - 2023 Vaadin Ltd.
 * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
 */const jT=hS((e=>"function"==typeof e.prototype.addController?e:class extends e{constructor(){super(),this.__controllers=new Set}connectedCallback(){super.connectedCallback(),this.__controllers.forEach((e=>{e.hostConnected&&e.hostConnected()}))}disconnectedCallback(){super.disconnectedCallback(),this.__controllers.forEach((e=>{e.hostDisconnected&&e.hostDisconnected()}))}addController(e){this.__controllers.add(e),void 0!==this.$&&this.isConnected&&e.hostConnected&&e.hostConnected()}removeController(e){this.__controllers.delete(e)}})),VT=e=>class extends(jT(e)){static get properties(){return{focusTrap:{type:Boolean,value:!1},restoreFocusOnClose:{type:Boolean,value:!1},restoreFocusNode:{type:HTMLElement}}}constructor(){super(),this.__ariaModalController=new PT(this),this.__focusTrapController=new FT(this),this.__focusRestorationController=new zT}ready(){super.ready(),this.addController(this.__ariaModalController),this.addController(this.__focusTrapController),this.addController(this.__focusRestorationController)}_resetFocus(){this.focusTrap&&(this.__ariaModalController.close(),this.__focusTrapController.releaseFocus()),this.restoreFocusOnClose&&this._shouldRestoreFocus()&&this.__focusRestorationController.restoreFocus()}_saveFocus(){this.restoreFocusOnClose&&this.__focusRestorationController.saveFocus(this.restoreFocusNode)}_trapFocus(){this.focusTrap&&(this.__ariaModalController.showModal(),this.__focusTrapController.trapFocus(this.$.overlay))}_shouldRestoreFocus(){const e=OT();return e===document.body||this._deepContains(e)}_deepContains(e){if(this.contains(e))return!0;let t=e;const i=e.ownerDocument;for(;t&&t!==i&&t!==this;)t=t.parentNode||t.host;return t===this}}
/**
 * @license
 * Copyright (c) 2017 - 2023 Vaadin Ltd.
 * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
 */,qT=()=>Array.from(document.body.children).filter((e=>e instanceof HTMLElement&&e._hasOverlayStackMixin&&!e.hasAttribute("closing"))).sort(((e,t)=>e.__zIndex-t.__zIndex||0)),WT=e=>class extends e{constructor(){super(),this._hasOverlayStackMixin=!0}get _last(){return(e=>e===qT().pop())(this)}bringToFront(){let e="";const t=qT().filter((e=>e!==this)).pop();if(t){e=t.__zIndex+1}this.style.zIndex=e,this.__zIndex=e||parseFloat(getComputedStyle(this).zIndex)}_enterModalState(){"none"!==document.body.style.pointerEvents&&(this._previousDocumentPointerEvents=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),qT().forEach((e=>{e!==this&&(e.$.overlay.style.pointerEvents="none")}))}_exitModalState(){void 0!==this._previousDocumentPointerEvents&&(document.body.style.pointerEvents=this._previousDocumentPointerEvents,delete this._previousDocumentPointerEvents);const e=qT();let t;for(;(t=e.pop())&&(t===this||(t.$.overlay.style.removeProperty("pointer-events"),t.modeless)););}}
/**
 * @license
 * Copyright (c) 2017 - 2023 Vaadin Ltd.
 * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
 */,GT=e=>class extends(VT(WT(e))){static get properties(){return{opened:{type:Boolean,notify:!0,observer:"_openedChanged",reflectToAttribute:!0},owner:{type:Object},model:{type:Object},renderer:{type:Object},modeless:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_modelessChanged"},hidden:{type:Boolean,reflectToAttribute:!0,observer:"_hiddenChanged"},withBackdrop:{type:Boolean,value:!1,reflectToAttribute:!0}}}static get observers(){return["_rendererOrDataChanged(renderer, owner, model, opened)"]}constructor(){super(),this._boundMouseDownListener=this._mouseDownListener.bind(this),this._boundMouseUpListener=this._mouseUpListener.bind(this),this._boundOutsideClickListener=this._outsideClickListener.bind(this),this._boundKeydownListener=this._keydownListener.bind(this),yT&&(this._boundIosResizeListener=()=>this._detectIosNavbar())}ready(){super.ready(),this.addEventListener("click",(()=>{})),this.$.backdrop.addEventListener("click",(()=>{})),this.addEventListener("mouseup",(()=>{document.activeElement===document.body&&"0"===this.$.overlay.getAttribute("tabindex")&&this.$.overlay.focus()}))}connectedCallback(){super.connectedCallback(),this._boundIosResizeListener&&(this._detectIosNavbar(),window.addEventListener("resize",this._boundIosResizeListener))}disconnectedCallback(){super.disconnectedCallback(),this._boundIosResizeListener&&window.removeEventListener("resize",this._boundIosResizeListener)}requestContentUpdate(){this.renderer&&this.renderer.call(this.owner,this,this.owner,this.model)}close(e){const t=new CustomEvent("vaadin-overlay-close",{bubbles:!0,cancelable:!0,detail:{sourceEvent:e}});this.dispatchEvent(t),t.defaultPrevented||(this.opened=!1)}_detectIosNavbar(){if(!this.opened)return;const e=window.innerHeight,t=window.innerWidth>e,i=document.documentElement.clientHeight;t&&i>e?this.style.setProperty("--vaadin-overlay-viewport-bottom",i-e+"px"):this.style.setProperty("--vaadin-overlay-viewport-bottom","0")}_addGlobalListeners(){document.addEventListener("mousedown",this._boundMouseDownListener),document.addEventListener("mouseup",this._boundMouseUpListener),document.documentElement.addEventListener("click",this._boundOutsideClickListener,!0)}_removeGlobalListeners(){document.removeEventListener("mousedown",this._boundMouseDownListener),document.removeEventListener("mouseup",this._boundMouseUpListener),document.documentElement.removeEventListener("click",this._boundOutsideClickListener,!0)}_rendererOrDataChanged(e,t,i,o){const s=this._oldOwner!==t||this._oldModel!==i;this._oldModel=i,this._oldOwner=t;const n=this._oldRenderer!==e,r=void 0!==this._oldRenderer;this._oldRenderer=e;const a=this._oldOpened!==o;this._oldOpened=o,n&&r&&(this.innerHTML="",delete this._$litPart$),o&&e&&(n||a||s)&&this.requestContentUpdate()}_modelessChanged(e){e?(this._removeGlobalListeners(),this._exitModalState()):this.opened&&(this._addGlobalListeners(),this._enterModalState())}_openedChanged(e,t){var i,o,s;e?(this._saveFocus(),this._animatedOpening(),i=this,o=()=>{this._trapFocus();const e=new CustomEvent("vaadin-overlay-open",{bubbles:!0});this.dispatchEvent(e)},dT||pT(),hT.push([i,o,s]),document.addEventListener("keydown",this._boundKeydownListener),this.modeless||this._addGlobalListeners()):t&&(this._resetFocus(),this._animatedClosing(),document.removeEventListener("keydown",this._boundKeydownListener),this.modeless||this._removeGlobalListeners())}_hiddenChanged(e){e&&this.hasAttribute("closing")&&this._flushAnimation("closing")}_shouldAnimate(){const e=getComputedStyle(this),t=e.getPropertyValue("animation-name");return!("none"===e.getPropertyValue("display"))&&t&&"none"!==t}_enqueueAnimation(e,t){const i=`__${e}Handler`,o=e=>{e&&e.target!==this||(t(),this.removeEventListener("animationend",o),delete this[i])};this[i]=o,this.addEventListener("animationend",o)}_flushAnimation(e){const t=`__${e}Handler`;"function"==typeof this[t]&&this[t]()}_animatedOpening(){this.parentNode===document.body&&this.hasAttribute("closing")&&this._flushAnimation("closing"),this._attachOverlay(),this.modeless||this._enterModalState(),this.setAttribute("opening",""),this._shouldAnimate()?this._enqueueAnimation("opening",(()=>{this._finishOpening()})):this._finishOpening()}_attachOverlay(){this._placeholder=document.createComment("vaadin-overlay-placeholder"),this.parentNode.insertBefore(this._placeholder,this),document.body.appendChild(this),this.bringToFront()}_finishOpening(){this.removeAttribute("opening")}_finishClosing(){this._detachOverlay(),this.$.overlay.style.removeProperty("pointer-events"),this.removeAttribute("closing"),this.dispatchEvent(new CustomEvent("vaadin-overlay-closed"))}_animatedClosing(){this.hasAttribute("opening")&&this._flushAnimation("opening"),this._placeholder&&(this._exitModalState(),this.setAttribute("closing",""),this.dispatchEvent(new CustomEvent("vaadin-overlay-closing")),this._shouldAnimate()?this._enqueueAnimation("closing",(()=>{this._finishClosing()})):this._finishClosing())}_detachOverlay(){this._placeholder.parentNode.insertBefore(this,this._placeholder),this._placeholder.parentNode.removeChild(this._placeholder)}_mouseDownListener(e){this._mouseDownInside=e.composedPath().indexOf(this.$.overlay)>=0}_mouseUpListener(e){this._mouseUpInside=e.composedPath().indexOf(this.$.overlay)>=0}_shouldCloseOnOutsideClick(e){return this._last}_outsideClickListener(e){if(e.composedPath().includes(this.$.overlay)||this._mouseDownInside||this._mouseUpInside)return this._mouseDownInside=!1,void(this._mouseUpInside=!1);if(!this._shouldCloseOnOutsideClick(e))return;const t=new CustomEvent("vaadin-overlay-outside-click",{bubbles:!0,cancelable:!0,detail:{sourceEvent:e}});this.dispatchEvent(t),this.opened&&!t.defaultPrevented&&this.close(e)}_keydownListener(e){if(this._last&&(!this.modeless||e.composedPath().includes(this.$.overlay))&&"Escape"===e.key){const t=new CustomEvent("vaadin-overlay-escape-press",{bubbles:!0,cancelable:!0,detail:{sourceEvent:e}});this.dispatchEvent(t),this.opened&&!t.defaultPrevented&&this.close(e)}}}
/**
 * @license
 * Copyright (c) 2017 - 2023 Vaadin Ltd.
 * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
 */,KT=A`
  :host {
    z-index: 200;
    position: fixed;

    /* Despite of what the names say, <vaadin-overlay> is just a container
          for position/sizing/alignment. The actual overlay is the overlay part. */

    /* Default position constraints: the entire viewport. Note: themes can
          override this to introduce gaps between the overlay and the viewport. */
    inset: 0;
    bottom: var(--vaadin-overlay-viewport-bottom);

    /* Use flexbox alignment for the overlay part. */
    display: flex;
    flex-direction: column; /* makes dropdowns sizing easier */
    /* Align to center by default. */
    align-items: center;
    justify-content: center;

    /* Allow centering when max-width/max-height applies. */
    margin: auto;

    /* The host is not clickable, only the overlay part is. */
    pointer-events: none;

    /* Remove tap highlight on touch devices. */
    -webkit-tap-highlight-color: transparent;

    /* CSS API for host */
    --vaadin-overlay-viewport-bottom: 0;
  }

  :host([hidden]),
  :host(:not([opened]):not([closing])),
  :host(:not([opened]):not([closing])) [part='overlay'] {
    display: none !important;
  }

  [part='overlay'] {
    -webkit-overflow-scrolling: touch;
    overflow: auto;
    pointer-events: auto;

    /* Prevent overflowing the host */
    max-width: 100%;
    box-sizing: border-box;

    -webkit-tap-highlight-color: initial; /* reenable tap highlight inside */
  }

  [part='backdrop'] {
    z-index: -1;
    content: '';
    background: rgba(0, 0, 0, 0.5);
    position: fixed;
    inset: 0;
    pointer-events: auto;
  }
`
/**
 * @license
 * Copyright (c) 2021 - 2023 Vaadin Ltd.
 * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
 */;
/**
 * @license
 * Copyright (c) 2017 - 2023 Vaadin Ltd.
 * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
 */function XT(e){const t=[];let i;return"slot"===e.localName?i=e.assignedElements():(t.push(e),i=[...e.children]),i.forEach((e=>t.push(...XT(e)))),t}function YT(e,t){return t?t.closest(e)||YT(e,t.getRootNode().host):null}function JT(e){return e?new Set(e.split(" ")):new Set}function ZT(e){return e?[...e].join(" "):""}function QT(e,t,i){const o=JT(e.getAttribute(t));o.add(i),e.setAttribute(t,ZT(o))}function eP(e,t,i){const o=JT(e.getAttribute(t));o.delete(i),0!==o.size?e.setAttribute(t,ZT(o)):e.removeAttribute(t)}
/**
 * @license
 * Copyright (c) 2017 - 2023 Vaadin Ltd.
 * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
 */
const tP={start:"top",end:"bottom"},iP={start:"left",end:"right"},oP=new ResizeObserver((e=>{setTimeout((()=>{e.forEach((e=>{e.target.__overlay&&e.target.__overlay._updatePosition()}))}))})),sP=e=>class extends e{static get properties(){return{positionTarget:{type:Object,value:null,sync:!0},horizontalAlign:{type:String,value:"start",sync:!0},verticalAlign:{type:String,value:"top",sync:!0},noHorizontalOverlap:{type:Boolean,value:!1,sync:!0},noVerticalOverlap:{type:Boolean,value:!1,sync:!0},requiredVerticalSpace:{type:Number,value:0,sync:!0}}}static get observers(){return["__positionSettingsChanged(horizontalAlign, verticalAlign, noHorizontalOverlap, noVerticalOverlap, requiredVerticalSpace)","__overlayOpenedChanged(opened, positionTarget)"]}constructor(){super(),this.__onScroll=this.__onScroll.bind(this),this._updatePosition=this._updatePosition.bind(this)}connectedCallback(){super.connectedCallback(),this.opened&&this.__addUpdatePositionEventListeners()}disconnectedCallback(){super.disconnectedCallback(),this.__removeUpdatePositionEventListeners()}__addUpdatePositionEventListeners(){window.visualViewport.addEventListener("resize",this._updatePosition),window.visualViewport.addEventListener("scroll",this.__onScroll,!0),this.__positionTargetAncestorRootNodes=function(e){const t=[];for(;e;){if(e.nodeType===Node.DOCUMENT_NODE){t.push(e);break}e.nodeType!==Node.DOCUMENT_FRAGMENT_NODE?e=e.assignedSlot?e.assignedSlot:e.parentNode:(t.push(e),e=e.host)}return t}(this.positionTarget),this.__positionTargetAncestorRootNodes.forEach((e=>{e.addEventListener("scroll",this.__onScroll,!0)}))}__removeUpdatePositionEventListeners(){window.visualViewport.removeEventListener("resize",this._updatePosition),window.visualViewport.removeEventListener("scroll",this.__onScroll,!0),this.__positionTargetAncestorRootNodes&&(this.__positionTargetAncestorRootNodes.forEach((e=>{e.removeEventListener("scroll",this.__onScroll,!0)})),this.__positionTargetAncestorRootNodes=null)}__overlayOpenedChanged(e,t){if(this.__removeUpdatePositionEventListeners(),t&&(t.__overlay=null,oP.unobserve(t),e&&(this.__addUpdatePositionEventListeners(),t.__overlay=this,oP.observe(t))),e){const e=getComputedStyle(this);this.__margins||(this.__margins={},["top","bottom","left","right"].forEach((t=>{this.__margins[t]=parseInt(e[t],10)}))),this.setAttribute("dir",e.direction),this._updatePosition(),requestAnimationFrame((()=>this._updatePosition()))}}__positionSettingsChanged(){this._updatePosition()}__onScroll(e){e.target instanceof Node&&this.contains(e.target)||this._updatePosition()}_updatePosition(){if(!this.positionTarget||!this.opened)return;const e=this.positionTarget.getBoundingClientRect(),t=this.__shouldAlignStartVertically(e);this.style.justifyContent=t?"flex-start":"flex-end";const i=this.__isRTL,o=this.__shouldAlignStartHorizontally(e,i),s=!i&&o||i&&!o;this.style.alignItems=s?"flex-start":"flex-end";const n=this.getBoundingClientRect(),r=this.__calculatePositionInOneDimension(e,n,this.noVerticalOverlap,tP,this,t),a=this.__calculatePositionInOneDimension(e,n,this.noHorizontalOverlap,iP,this,o);Object.assign(this.style,r,a),this.toggleAttribute("bottom-aligned",!t),this.toggleAttribute("top-aligned",t),this.toggleAttribute("end-aligned",!s),this.toggleAttribute("start-aligned",s)}__shouldAlignStartHorizontally(e,t){const i=Math.max(this.__oldContentWidth||0,this.$.overlay.offsetWidth);this.__oldContentWidth=this.$.overlay.offsetWidth;const o=Math.min(window.innerWidth,document.documentElement.clientWidth),s=!t&&"start"===this.horizontalAlign||t&&"end"===this.horizontalAlign;return this.__shouldAlignStart(e,i,o,this.__margins,s,this.noHorizontalOverlap,iP)}__shouldAlignStartVertically(e){const t=this.requiredVerticalSpace||Math.max(this.__oldContentHeight||0,this.$.overlay.offsetHeight);this.__oldContentHeight=this.$.overlay.offsetHeight;const i=Math.min(window.innerHeight,document.documentElement.clientHeight),o="top"===this.verticalAlign;return this.__shouldAlignStart(e,t,i,this.__margins,o,this.noVerticalOverlap,tP)}__shouldAlignStart(e,t,i,o,s,n,r){const a=i-e[n?r.end:r.start]-o[r.end],l=e[n?r.start:r.end]-o[r.start],d=s?a:l;return s===(d>(s?l:a)||d>t)}__adjustBottomProperty(e,t,i){let o;if(e===t.end){if(t.end===tP.end){const e=Math.min(window.innerHeight,document.documentElement.clientHeight);if(i>e&&this.__oldViewportHeight){o=i-(this.__oldViewportHeight-e)}this.__oldViewportHeight=e}if(t.end===iP.end){const e=Math.min(window.innerWidth,document.documentElement.clientWidth);if(i>e&&this.__oldViewportWidth){o=i-(this.__oldViewportWidth-e)}this.__oldViewportWidth=e}}return o}__calculatePositionInOneDimension(e,t,i,o,s,n){const r=n?o.start:o.end,a=n?o.end:o.start,l=parseFloat(s.style[r]||getComputedStyle(s)[r]),d=this.__adjustBottomProperty(r,o,l),c=t[n?o.start:o.end]-e[i===n?o.end:o.start],h=d?`${d}px`:`${l+c*(n?-1:1)}px`;return{[r]:h,[a]:""}}}
/**
 * @license
 * Copyright (c) 2015 - 2023 Vaadin Ltd.
 * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
 */,nP=e=>class extends(sP(e)){static get observers(){return["_setOverlayWidth(positionTarget, opened)"]}constructor(){super(),this.requiredVerticalSpace=200}connectedCallback(){super.connectedCallback();const e=this._comboBox,t=e&&e.getAttribute("dir");t&&this.setAttribute("dir",t)}_shouldCloseOnOutsideClick(e){const t=e.composedPath();return!t.includes(this.positionTarget)&&!t.includes(this)}_updateOverlayWidth(){const e=this.localName;this.style.setProperty(`--_${e}-default-width`,`${this.positionTarget.clientWidth}px`);const t=getComputedStyle(this._comboBox).getPropertyValue(`--${e}-width`);""===t?this.style.removeProperty(`--${e}-width`):this.style.setProperty(`--${e}-width`,t)}_setOverlayWidth(e,t){e&&t&&(this._updateOverlayWidth(),this._updatePosition())}}
/**
 * @license
 * Copyright (c) 2015 - 2023 Vaadin Ltd.
 * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
 */;kE("vaadin-combo-box-overlay",[KT,A`
  #overlay {
    width: var(--vaadin-combo-box-overlay-width, var(--_vaadin-combo-box-overlay-default-width, auto));
  }

  [part='content'] {
    display: flex;
    flex-direction: column;
    height: 100%;
  }
`],{moduleId:"vaadin-combo-box-overlay-styles"});class rP extends(nP(GT(sT(PE(eT))))){static get is(){return"vaadin-combo-box-overlay"}static get template(){return ZC`
      <div id="backdrop" part="backdrop" hidden></div>
      <div part="overlay" id="overlay">
        <div part="loader"></div>
        <div part="content" id="content"><slot></slot></div>
      </div>
    `}}
/**
 * @license
 * Copyright (c) 2023 Vaadin Ltd.
 * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
 */
function aP(e,t){return e.split(".").reduce(((e,t)=>e?e[t]:void 0),t)}
/**
 * @license
 * Copyright (c) 2021 - 2023 Vaadin Ltd.
 * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
 */yE(rP);let lP=0;function dP(){return lP++}
/**
 * @license
 * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
 * This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
 * The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
 * The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
 * Code distributed by Google as part of the polymer project is also
 * subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
 */let cP=0,hP=0;const pP=[];let uP=!1;const mP={after:e=>({run:t=>window.setTimeout(t,e),cancel(e){window.clearTimeout(e)}}),run:(e,t)=>window.setTimeout(e,t),cancel(e){window.clearTimeout(e)}},gP={run:e=>window.requestAnimationFrame(e),cancel(e){window.cancelAnimationFrame(e)}},fP={run:e=>window.requestIdleCallback?window.requestIdleCallback(e):window.setTimeout(e,16),cancel(e){window.cancelIdleCallback?window.cancelIdleCallback(e):window.clearTimeout(e)}},_P={run(e){uP||(uP=!0,queueMicrotask((()=>function(){uP=!1;const e=pP.length;for(let t=0;t<e;t++){const e=pP[t];if(e)try{e()}catch(e){setTimeout((()=>{throw e}))}}pP.splice(0,e),hP+=e}()))),pP.push(e);const t=cP;return cP+=1,t},cancel(e){const t=e-hP;if(t>=0){if(!pP[t])throw new Error(`invalid async handle: ${e}`);pP[t]=null}}},vP=new Set;class bP{static debounce(e,t,i){return e instanceof bP?e._cancelAsync():e=new bP,e.setConfig(t,i),e}constructor(){this._asyncModule=null,this._callback=null,this._timer=null}setConfig(e,t){this._asyncModule=e,this._callback=t,this._timer=this._asyncModule.run((()=>{this._timer=null,vP.delete(this),this._callback()}))}cancel(){this.isActive()&&(this._cancelAsync(),vP.delete(this))}_cancelAsync(){this.isActive()&&(this._asyncModule.cancel(this._timer),this._timer=null)}flush(){this.isActive()&&(this.cancel(),this._callback())}isActive(){return null!=this._timer}}function yP(e){vP.add(e)}function xP(){const e=Boolean(vP.size);return vP.forEach((e=>{try{e.flush()}catch(e){setTimeout((()=>{throw e}))}})),e}const wP=()=>{let e;do{e=xP()}while(e)},$P=navigator.userAgent.match(/iP(?:hone|ad;(?: U;)? CPU) OS (\d+)/u),AP=$P&&$P[1]>=8,kP={_ratio:.5,_scrollerPaddingTop:0,_scrollPosition:0,_physicalSize:0,_physicalAverage:0,_physicalAverageCount:0,_physicalTop:0,_virtualCount:0,_estScrollHeight:0,_scrollHeight:0,_viewportHeight:0,_viewportWidth:0,_physicalItems:null,_physicalSizes:null,_firstVisibleIndexVal:null,_lastVisibleIndexVal:null,_maxPages:2,_templateCost:0,get _physicalBottom(){return this._physicalTop+this._physicalSize},get _scrollBottom(){return this._scrollPosition+this._viewportHeight},get _virtualEnd(){return this._virtualStart+this._physicalCount-1},get _hiddenContentSize(){return this._physicalSize-this._viewportHeight},get _maxScrollTop(){return this._estScrollHeight-this._viewportHeight+this._scrollOffset},get _maxVirtualStart(){const e=this._virtualCount;return Math.max(0,e-this._physicalCount)},get _virtualStart(){return this._virtualStartVal||0},set _virtualStart(e){e=this._clamp(e,0,this._maxVirtualStart),this._virtualStartVal=e},get _physicalStart(){return this._physicalStartVal||0},set _physicalStart(e){(e%=this._physicalCount)<0&&(e=this._physicalCount+e),this._physicalStartVal=e},get _physicalEnd(){return(this._physicalStart+this._physicalCount-1)%this._physicalCount},get _physicalCount(){return this._physicalCountVal||0},set _physicalCount(e){this._physicalCountVal=e},get _optPhysicalSize(){return 0===this._viewportHeight?1/0:this._viewportHeight*this._maxPages},get _isVisible(){return Boolean(this.offsetWidth||this.offsetHeight)},get firstVisibleIndex(){let e=this._firstVisibleIndexVal;if(null==e){let t=this._physicalTop+this._scrollOffset;e=this._iterateItems(((e,i)=>{if(t+=this._getPhysicalSizeIncrement(e),t>this._scrollPosition)return i}))||0,this._firstVisibleIndexVal=e}return e},get lastVisibleIndex(){let e=this._lastVisibleIndexVal;if(null==e){let t=this._physicalTop+this._scrollOffset;this._iterateItems(((i,o)=>{t<this._scrollBottom&&(e=o),t+=this._getPhysicalSizeIncrement(i)})),this._lastVisibleIndexVal=e}return e},get _scrollOffset(){return this._scrollerPaddingTop+this.scrollOffset},_scrollHandler(){const e=Math.max(0,Math.min(this._maxScrollTop,this._scrollTop));let t=e-this._scrollPosition;const i=t>=0;if(this._scrollPosition=e,this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null,Math.abs(t)>this._physicalSize&&this._physicalSize>0){t-=this._scrollOffset;const e=Math.round(t/this._physicalAverage);this._virtualStart+=e,this._physicalStart+=e,this._physicalTop=Math.min(Math.floor(this._virtualStart)*this._physicalAverage,this._scrollPosition),this._update()}else if(this._physicalCount>0){const e=this._getReusables(i);i?(this._physicalTop=e.physicalTop,this._virtualStart+=e.indexes.length,this._physicalStart+=e.indexes.length):(this._virtualStart-=e.indexes.length,this._physicalStart-=e.indexes.length),this._update(e.indexes,i?null:e.indexes),this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,0),_P)}},_getReusables(e){let t,i,o;const s=[],n=this._hiddenContentSize*this._ratio,r=this._virtualStart,a=this._virtualEnd,l=this._physicalCount;let d=this._physicalTop+this._scrollOffset;const c=this._physicalBottom+this._scrollOffset,h=this._scrollPosition,p=this._scrollBottom;for(e?(t=this._physicalStart,i=h-d):(t=this._physicalEnd,i=c-p);o=this._getPhysicalSizeIncrement(t),i-=o,!(s.length>=l||i<=n);)if(e){if(a+s.length+1>=this._virtualCount)break;if(d+o>=h-this._scrollOffset)break;s.push(t),d+=o,t=(t+1)%l}else{if(r-s.length<=0)break;if(d+this._physicalSize-o<=p)break;s.push(t),d-=o,t=0===t?l-1:t-1}return{indexes:s,physicalTop:d-this._scrollOffset}},_update(e,t){if(!(e&&0===e.length||0===this._physicalCount)){if(this._assignModels(e),this._updateMetrics(e),t)for(;t.length;){const e=t.pop();this._physicalTop-=this._getPhysicalSizeIncrement(e)}this._positionItems(),this._updateScrollerSize()}},_isClientFull(){return 0!==this._scrollBottom&&this._physicalBottom-1>=this._scrollBottom&&this._physicalTop<=this._scrollPosition},_increasePoolIfNeeded(e){const t=this._clamp(this._physicalCount+e,3,this._virtualCount-this._virtualStart)-this._physicalCount;let i=Math.round(.5*this._physicalCount);if(!(t<0)){if(t>0){const e=window.performance.now();[].push.apply(this._physicalItems,this._createPool(t));for(let e=0;e<t;e++)this._physicalSizes.push(0);this._physicalCount+=t,this._physicalStart>this._physicalEnd&&this._isIndexRendered(this._focusedVirtualIndex)&&this._getPhysicalIndex(this._focusedVirtualIndex)<this._physicalEnd&&(this._physicalStart+=t),this._update(),this._templateCost=(window.performance.now()-e)/t,i=Math.round(.5*this._physicalCount)}this._virtualEnd>=this._virtualCount-1||0===i||(this._isClientFull()?this._physicalSize<this._optPhysicalSize&&this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,this._clamp(Math.round(50/this._templateCost),1,i)),fP):this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,i),_P))}},_render(){if(this.isAttached&&this._isVisible)if(0!==this._physicalCount){const e=this._getReusables(!0);this._physicalTop=e.physicalTop,this._virtualStart+=e.indexes.length,this._physicalStart+=e.indexes.length,this._update(e.indexes),this._update(),this._increasePoolIfNeeded(0)}else this._virtualCount>0&&(this.updateViewportBoundaries(),this._increasePoolIfNeeded(3))},_itemsChanged(e){"items"===e.path&&(this._virtualStart=0,this._physicalTop=0,this._virtualCount=this.items?this.items.length:0,this._physicalIndexForKey={},this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null,this._physicalItems||(this._physicalItems=[]),this._physicalSizes||(this._physicalSizes=[]),this._physicalStart=0,this._scrollTop>this._scrollOffset&&this._resetScrollPosition(0),this._debounce("_render",this._render,gP))},_iterateItems(e,t){let i,o,s,n;if(2===arguments.length&&t){for(n=0;n<t.length;n++)if(i=t[n],o=this._computeVidx(i),null!=(s=e.call(this,i,o)))return s}else{for(i=this._physicalStart,o=this._virtualStart;i<this._physicalCount;i++,o++)if(null!=(s=e.call(this,i,o)))return s;for(i=0;i<this._physicalStart;i++,o++)if(null!=(s=e.call(this,i,o)))return s}},_computeVidx(e){return e>=this._physicalStart?this._virtualStart+(e-this._physicalStart):this._virtualStart+(this._physicalCount-this._physicalStart)+e},_positionItems(){this._adjustScrollPosition();let e=this._physicalTop;this._iterateItems((t=>{this.translate3d(0,`${e}px`,0,this._physicalItems[t]),e+=this._physicalSizes[t]}))},_getPhysicalSizeIncrement(e){return this._physicalSizes[e]},_adjustScrollPosition(){const e=0===this._virtualStart?this._physicalTop:Math.min(this._scrollPosition+this._physicalTop,0);if(0!==e){this._physicalTop-=e;const t=this._scrollPosition;!AP&&t>0&&this._resetScrollPosition(t-e)}},_resetScrollPosition(e){this.scrollTarget&&e>=0&&(this._scrollTop=e,this._scrollPosition=this._scrollTop)},_updateScrollerSize(e){const t=this._physicalBottom+Math.max(this._virtualCount-this._physicalCount-this._virtualStart,0)*this._physicalAverage;this._estScrollHeight=t,(e||0===this._scrollHeight||this._scrollPosition>=t-this._physicalSize||Math.abs(t-this._scrollHeight)>=this._viewportHeight)&&(this.$.items.style.height=`${t}px`,this._scrollHeight=t)},scrollToIndex(e){if("number"!=typeof e||e<0||e>this.items.length-1)return;if(wP(),0===this._physicalCount)return;e=this._clamp(e,0,this._virtualCount-1),(!this._isIndexRendered(e)||e>=this._maxVirtualStart)&&(this._virtualStart=e-1),this._assignModels(),this._updateMetrics(),this._physicalTop=this._virtualStart*this._physicalAverage;let t=this._physicalStart,i=this._virtualStart,o=0;const s=this._hiddenContentSize;for(;i<e&&o<=s;)o+=this._getPhysicalSizeIncrement(t),t=(t+1)%this._physicalCount,i+=1;this._updateScrollerSize(!0),this._positionItems(),this._resetScrollPosition(this._physicalTop+this._scrollOffset+o),this._increasePoolIfNeeded(0),this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null},_resetAverage(){this._physicalAverage=0,this._physicalAverageCount=0},_resizeHandler(){this._debounce("_render",(()=>{this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null,this._isVisible?(this.updateViewportBoundaries(),this.toggleScrollListener(!0),this._resetAverage(),this._render()):this.toggleScrollListener(!1)}),gP)},_isIndexRendered(e){return e>=this._virtualStart&&e<=this._virtualEnd},_getPhysicalIndex(e){return(this._physicalStart+(e-this._virtualStart))%this._physicalCount},_clamp:(e,t,i)=>Math.min(i,Math.max(t,e)),_debounce(e,t,i){this._debouncers||(this._debouncers={}),this._debouncers[e]=bP.debounce(this._debouncers[e],i,t.bind(this)),yP(this._debouncers[e])}},EP=1e3;
/**
 * @license
 * Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
 * This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
 * The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
 * The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
 * Code distributed by Google as part of the polymer project is also
 * subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
 */class SP{constructor({createElements:e,updateElement:t,scrollTarget:i,scrollContainer:o,elementsContainer:s,reorderElements:n}){this.isAttached=!0,this._vidxOffset=0,this.createElements=e,this.updateElement=t,this.scrollTarget=i,this.scrollContainer=o,this.elementsContainer=s||o,this.reorderElements=n,this._maxPages=1.3,this.__placeholderHeight=200,this.__elementHeightQueue=Array(10),this.timeouts={SCROLL_REORDER:500,IGNORE_WHEEL:500,FIX_INVALID_ITEM_POSITIONING:100},this.__resizeObserver=new ResizeObserver((()=>this._resizeHandler())),"visible"===getComputedStyle(this.scrollTarget).overflow&&(this.scrollTarget.style.overflow="auto"),"static"===getComputedStyle(this.scrollContainer).position&&(this.scrollContainer.style.position="relative"),this.__resizeObserver.observe(this.scrollTarget),this.scrollTarget.addEventListener("scroll",(()=>this._scrollHandler())),this._scrollLineHeight=this._getScrollLineHeight(),this.scrollTarget.addEventListener("wheel",(e=>this.__onWheel(e))),this.reorderElements&&(this.scrollTarget.addEventListener("mousedown",(()=>{this.__mouseDown=!0})),this.scrollTarget.addEventListener("mouseup",(()=>{this.__mouseDown=!1,this.__pendingReorder&&this.__reorderElements()})))}get scrollOffset(){return 0}get adjustedFirstVisibleIndex(){return this.firstVisibleIndex+this._vidxOffset}get adjustedLastVisibleIndex(){return this.lastVisibleIndex+this._vidxOffset}get _maxVirtualIndexOffset(){return this.size-this._virtualCount}__hasPlaceholders(){return this.__getVisibleElements().some((e=>e.__virtualizerPlaceholder))}scrollToIndex(e){if("number"!=typeof e||isNaN(e)||0===this.size||!this.scrollTarget.offsetHeight)return;delete this.__pendingScrollToIndex,this._physicalCount<=3&&this.flush(),e=this._clamp(e,0,this.size-1);const t=this.__getVisibleElements().length;let i=Math.floor(e/this.size*this._virtualCount);this._virtualCount-i<t?(i=this._virtualCount-(this.size-e),this._vidxOffset=this._maxVirtualIndexOffset):i<t?e<EP?(i=e,this._vidxOffset=0):(i=EP,this._vidxOffset=e-i):this._vidxOffset=e-i,this.__skipNextVirtualIndexAdjust=!0,super.scrollToIndex(i),this.adjustedFirstVisibleIndex!==e&&this._scrollTop<this._maxScrollTop&&!this.grid&&(this._scrollTop-=this.__getIndexScrollOffset(e)||0),this._scrollHandler(),this.__hasPlaceholders()&&(this.__pendingScrollToIndex=e)}flush(){const e=this._physicalCount;0!==this.scrollTarget.offsetHeight&&(this._resizeHandler(),wP(),this._scrollHandler(),this.__fixInvalidItemPositioningDebouncer&&this.__fixInvalidItemPositioningDebouncer.flush(),this.__scrollReorderDebouncer&&this.__scrollReorderDebouncer.flush(),this.__debouncerWheelAnimationFrame&&this.__debouncerWheelAnimationFrame.flush(),this._physicalCount!==e&&this.flush())}update(e=0,t=this.size-1){const i=[];this.__getVisibleElements().forEach((o=>{o.__virtualIndex>=e&&o.__virtualIndex<=t&&(this.__updateElement(o,o.__virtualIndex,!0),i.push(o))})),this.__afterElementsUpdated(i)}_updateMetrics(e){wP();let t=0,i=0;const o=this._physicalAverageCount,s=this._physicalAverage;this._iterateItems(((e,o)=>{i+=this._physicalSizes[e],this._physicalSizes[e]=Math.ceil(this.__getBorderBoxHeight(this._physicalItems[e])),t+=this._physicalSizes[e],this._physicalAverageCount+=this._physicalSizes[e]?1:0}),e),this._physicalSize=this._physicalSize+t-i,this._physicalAverageCount!==o&&(this._physicalAverage=Math.round((s*o+t)/this._physicalAverageCount))}__getBorderBoxHeight(e){const t=getComputedStyle(e),i=parseFloat(t.height)||0;if("border-box"===t.boxSizing)return i;return i+(parseFloat(t.paddingBottom)||0)+(parseFloat(t.paddingTop)||0)+(parseFloat(t.borderBottomWidth)||0)+(parseFloat(t.borderTopWidth)||0)}__updateElement(e,t,i){e.__virtualizerPlaceholder&&(e.style.paddingTop="",e.__virtualizerPlaceholder=!1),this.__preventElementUpdates||e.__lastUpdatedIndex===t&&!i||(this.updateElement(e,t),e.__lastUpdatedIndex=t)}__afterElementsUpdated(e){e.forEach((e=>{const t=e.offsetHeight;if(0===t)e.style.paddingTop=`${this.__placeholderHeight}px`,e.__virtualizerPlaceholder=!0,this.__placeholderClearDebouncer=bP.debounce(this.__placeholderClearDebouncer,gP,(()=>this._resizeHandler()));else{this.__elementHeightQueue.push(t),this.__elementHeightQueue.shift();const e=this.__elementHeightQueue.filter((e=>void 0!==e));this.__placeholderHeight=Math.round(e.reduce(((e,t)=>e+t),0)/e.length)}})),void 0===this.__pendingScrollToIndex||this.__hasPlaceholders()||this.scrollToIndex(this.__pendingScrollToIndex)}__getIndexScrollOffset(e){const t=this.__getVisibleElements().find((t=>t.__virtualIndex===e));return t?this.scrollTarget.getBoundingClientRect().top-t.getBoundingClientRect().top:void 0}get size(){return this.__size}set size(e){if(e===this.size)return;let t,i;if(this.__fixInvalidItemPositioningDebouncer&&this.__fixInvalidItemPositioningDebouncer.cancel(),this._debouncers&&this._debouncers._increasePoolIfNeeded&&this._debouncers._increasePoolIfNeeded.cancel(),this.__preventElementUpdates=!0,e>0&&(t=this.adjustedFirstVisibleIndex,i=this.__getIndexScrollOffset(t)),this.__size=e,this._itemsChanged({path:"items"}),wP(),e>0){t=Math.min(t,e-1),this.scrollToIndex(t);const o=this.__getIndexScrollOffset(t);void 0!==i&&void 0!==o&&(this._scrollTop+=i-o)}this.__preventElementUpdates=!1,this._isVisible||this._assignModels(),this.elementsContainer.children.length||requestAnimationFrame((()=>this._resizeHandler())),this._resizeHandler(),wP()}get _scrollTop(){return this.scrollTarget.scrollTop}set _scrollTop(e){this.scrollTarget.scrollTop=e}get items(){return{length:Math.min(this.size,1e5)}}get offsetHeight(){return this.scrollTarget.offsetHeight}get $(){return{items:this.scrollContainer}}updateViewportBoundaries(){const e=window.getComputedStyle(this.scrollTarget);this._scrollerPaddingTop=this.scrollTarget===this?0:parseInt(e["padding-top"],10),this._isRTL=Boolean("rtl"===e.direction),this._viewportWidth=this.elementsContainer.offsetWidth,this._viewportHeight=this.scrollTarget.offsetHeight,this._scrollPageHeight=this._viewportHeight-this._scrollLineHeight,this.grid&&this._updateGridMetrics()}setAttribute(){}_createPool(e){const t=this.createElements(e),i=document.createDocumentFragment();return t.forEach((e=>{e.style.position="absolute",i.appendChild(e),this.__resizeObserver.observe(e)})),this.elementsContainer.appendChild(i),t}_assignModels(e){const t=[];this._iterateItems(((e,i)=>{const o=this._physicalItems[e];o.hidden=i>=this.size,o.hidden?delete o.__lastUpdatedIndex:(o.__virtualIndex=i+(this._vidxOffset||0),this.__updateElement(o,o.__virtualIndex),t.push(o))}),e),this.__afterElementsUpdated(t)}_isClientFull(){return setTimeout((()=>{this.__clientFull=!0})),this.__clientFull||super._isClientFull()}translate3d(e,t,i,o){o.style.transform=`translateY(${t})`}toggleScrollListener(){}_scrollHandler(){if(0===this.scrollTarget.offsetHeight)return;this._adjustVirtualIndexOffset(this._scrollTop-(this.__previousScrollTop||0));const e=this.scrollTarget.scrollTop-this._scrollPosition;if(super._scrollHandler(),0!==this._physicalCount){const t=e>=0,i=this._getReusables(!t);i.indexes.length&&(this._physicalTop=i.physicalTop,t?(this._virtualStart-=i.indexes.length,this._physicalStart-=i.indexes.length):(this._virtualStart+=i.indexes.length,this._physicalStart+=i.indexes.length),this._resizeHandler())}e&&(this.__fixInvalidItemPositioningDebouncer=bP.debounce(this.__fixInvalidItemPositioningDebouncer,mP.after(this.timeouts.FIX_INVALID_ITEM_POSITIONING),(()=>this.__fixInvalidItemPositioning()))),this.reorderElements&&(this.__scrollReorderDebouncer=bP.debounce(this.__scrollReorderDebouncer,mP.after(this.timeouts.SCROLL_REORDER),(()=>this.__reorderElements()))),this.__previousScrollTop=this._scrollTop,0===this._scrollTop&&0!==this.firstVisibleIndex&&Math.abs(e)>0&&this.scrollToIndex(0)}__fixInvalidItemPositioning(){if(!this.scrollTarget.isConnected)return;const e=this._physicalTop>this._scrollTop,t=this._physicalBottom<this._scrollBottom,i=0===this.adjustedFirstVisibleIndex,o=this.adjustedLastVisibleIndex===this.size-1;if(e&&!i||t&&!o){const e=t,i=this._ratio;this._ratio=0,this._scrollPosition=this._scrollTop+(e?-1:1),this._scrollHandler(),this._ratio=i}}__onWheel(e){if(e.ctrlKey||this._hasScrolledAncestor(e.target,e.deltaX,e.deltaY))return;let t=e.deltaY;if(e.deltaMode===WheelEvent.DOM_DELTA_LINE?t*=this._scrollLineHeight:e.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(t*=this._scrollPageHeight),this._deltaYAcc||(this._deltaYAcc=0),this._wheelAnimationFrame)return this._deltaYAcc+=t,void e.preventDefault();t+=this._deltaYAcc,this._deltaYAcc=0,this._wheelAnimationFrame=!0,this.__debouncerWheelAnimationFrame=bP.debounce(this.__debouncerWheelAnimationFrame,gP,(()=>{this._wheelAnimationFrame=!1}));const i=Math.abs(e.deltaX)+Math.abs(t);this._canScroll(this.scrollTarget,e.deltaX,t)?(e.preventDefault(),this.scrollTarget.scrollTop+=t,this.scrollTarget.scrollLeft+=e.deltaX,this._hasResidualMomentum=!0,this._ignoreNewWheel=!0,this._debouncerIgnoreNewWheel=bP.debounce(this._debouncerIgnoreNewWheel,mP.after(this.timeouts.IGNORE_WHEEL),(()=>{this._ignoreNewWheel=!1}))):this._hasResidualMomentum&&i<=this._previousMomentum||this._ignoreNewWheel?e.preventDefault():i>this._previousMomentum&&(this._hasResidualMomentum=!1),this._previousMomentum=i}_hasScrolledAncestor(e,t,i){return e!==this.scrollTarget&&e!==this.scrollTarget.getRootNode().host&&(!(!this._canScroll(e,t,i)||-1===["auto","scroll"].indexOf(getComputedStyle(e).overflow))||(e!==this&&e.parentElement?this._hasScrolledAncestor(e.parentElement,t,i):void 0))}_canScroll(e,t,i){return i>0&&e.scrollTop<e.scrollHeight-e.offsetHeight||i<0&&e.scrollTop>0||t>0&&e.scrollLeft<e.scrollWidth-e.offsetWidth||t<0&&e.scrollLeft>0}_increasePoolIfNeeded(e){if(this._physicalCount>2&&e){const t=Math.ceil(this._optPhysicalSize/this._physicalAverage)-this._physicalCount;super._increasePoolIfNeeded(Math.max(e,Math.min(100,t)))}else super._increasePoolIfNeeded(e)}_getScrollLineHeight(){const e=document.createElement("div");e.style.fontSize="initial",e.style.display="none",document.body.appendChild(e);const t=window.getComputedStyle(e).fontSize;return document.body.removeChild(e),t?window.parseInt(t):void 0}__getVisibleElements(){return Array.from(this.elementsContainer.children).filter((e=>!e.hidden))}__reorderElements(){if(this.__mouseDown)return void(this.__pendingReorder=!0);this.__pendingReorder=!1;const e=this._virtualStart+(this._vidxOffset||0),t=this.__getVisibleElements(),i=t.find((e=>e.contains(this.elementsContainer.getRootNode().activeElement)||e.contains(this.scrollTarget.getRootNode().activeElement)))||t[0];if(!i)return;const o=i.__virtualIndex-e,s=t.indexOf(i)-o;if(s>0)for(let e=0;e<s;e++)this.elementsContainer.appendChild(t[e]);else if(s<0)for(let e=t.length+s;e<t.length;e++)this.elementsContainer.insertBefore(t[e],t[0]);if(xT){const{transform:e}=this.scrollTarget.style;this.scrollTarget.style.transform="translateZ(0)",setTimeout((()=>{this.scrollTarget.style.transform=e}))}}_adjustVirtualIndexOffset(e){const t=this._maxVirtualIndexOffset;if(this._virtualCount>=this.size)this._vidxOffset=0;else if(this.__skipNextVirtualIndexAdjust)this.__skipNextVirtualIndexAdjust=!1;else if(Math.abs(e)>1e4){const e=this._scrollTop/(this.scrollTarget.scrollHeight-this.scrollTarget.clientHeight);this._vidxOffset=Math.round(e*t)}else{const e=this._vidxOffset,i=EP,o=100;0===this._scrollTop?(this._vidxOffset=0,e!==this._vidxOffset&&super.scrollToIndex(0)):this.firstVisibleIndex<i&&this._vidxOffset>0&&(this._vidxOffset-=Math.min(this._vidxOffset,o),super.scrollToIndex(this.firstVisibleIndex+(e-this._vidxOffset))),this._scrollTop>=this._maxScrollTop&&this._maxScrollTop>0?(this._vidxOffset=t,e!==this._vidxOffset&&super.scrollToIndex(this._virtualCount-1)):this.firstVisibleIndex>this._virtualCount-i&&this._vidxOffset<t&&(this._vidxOffset+=Math.min(t-this._vidxOffset,o),super.scrollToIndex(this.firstVisibleIndex-(this._vidxOffset-e)))}}}Object.setPrototypeOf(SP.prototype,kP);class CP{constructor(e){this.__adapter=new SP(e)}get firstVisibleIndex(){return this.__adapter.adjustedFirstVisibleIndex}get lastVisibleIndex(){return this.__adapter.adjustedLastVisibleIndex}get size(){return this.__adapter.size}set size(e){this.__adapter.size=e}scrollToIndex(e){this.__adapter.scrollToIndex(e)}update(e=0,t=this.size-1){this.__adapter.update(e,t)}flush(){this.__adapter.flush()}}
/**
 * @license
 * Copyright (c) 2015 - 2023 Vaadin Ltd.
 * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
 */const TP=class{toString(){return""}},PP=e=>class extends e{static get properties(){return{items:{type:Array,observer:"__itemsChanged"},focusedIndex:{type:Number,observer:"__focusedIndexChanged"},loading:{type:Boolean,observer:"__loadingChanged"},opened:{type:Boolean,observer:"__openedChanged"},selectedItem:{type:Object,observer:"__selectedItemChanged"},itemIdPath:{type:String},owner:{type:Object},getItemLabel:{type:Object},renderer:{type:Object,observer:"__rendererChanged"},theme:{type:String}}}constructor(){super(),this.__boundOnItemClick=this.__onItemClick.bind(this)}get _viewportTotalPaddingBottom(){if(void 0===this._cachedViewportTotalPaddingBottom){const e=window.getComputedStyle(this.$.selector);this._cachedViewportTotalPaddingBottom=[e.paddingBottom,e.borderBottomWidth].map((e=>parseInt(e,10))).reduce(((e,t)=>e+t))}return this._cachedViewportTotalPaddingBottom}ready(){super.ready(),this.setAttribute("role","listbox"),this.id=`${this.localName}-${dP()}`,this.__hostTagName=this.constructor.is.replace("-scroller",""),this.addEventListener("click",(e=>e.stopPropagation())),this.__patchWheelOverScrolling()}requestContentUpdate(){this.opened&&this.__virtualizer.update()}scrollIntoView(e){if(!(this.opened&&e>=0))return;const t=this._visibleItemsCount();let i=e;e>this.__virtualizer.lastVisibleIndex-1?(this.__virtualizer.scrollToIndex(e),i=e-t+1):e>this.__virtualizer.firstVisibleIndex&&(i=this.__virtualizer.firstVisibleIndex),this.__virtualizer.scrollToIndex(Math.max(0,i));const o=[...this.children].find((e=>!e.hidden&&e.index===this.__virtualizer.lastVisibleIndex));if(!o||e!==o.index)return;const s=o.getBoundingClientRect(),n=this.getBoundingClientRect(),r=s.bottom-n.bottom+this._viewportTotalPaddingBottom;r>0&&(this.scrollTop+=r)}_isItemSelected(e,t,i){return!(e instanceof TP)&&(i&&void 0!==e&&void 0!==t?aP(i,e)===aP(i,t):e===t)}__initVirtualizer(){this.__virtualizer=new CP({createElements:this.__createElements.bind(this),updateElement:this._updateElement.bind(this),elementsContainer:this,scrollTarget:this,scrollContainer:this.$.selector})}__itemsChanged(e){e&&this.__virtualizer&&(this.__setVirtualizerItems(e),this.requestContentUpdate())}__loadingChanged(){this.requestContentUpdate()}__openedChanged(e){e&&(this.__virtualizer||(this.__initVirtualizer(),this.items&&this.__setVirtualizerItems(this.items)),this.requestContentUpdate())}__setVirtualizerItems(e){this.__virtualizer.size=e.length,this.__virtualizer.flush()}__selectedItemChanged(){this.requestContentUpdate()}__focusedIndexChanged(e,t){e!==t&&this.requestContentUpdate(),e>=0&&!this.loading&&this.scrollIntoView(e)}__rendererChanged(e,t){(e||t)&&this.requestContentUpdate()}__createElements(e){return[...Array(e)].map((()=>{const e=document.createElement(`${this.__hostTagName}-item`);return e.addEventListener("click",this.__boundOnItemClick),e.tabIndex="-1",e.style.width="100%",e}))}_updateElement(e,t){const i=this.items[t],o=this.focusedIndex,s=this._isItemSelected(i,this.selectedItem,this.itemIdPath);e.setProperties({item:i,index:t,label:this.getItemLabel(i),selected:s,renderer:this.renderer,focused:!this.loading&&o===t}),e.id=`${this.__hostTagName}-item-${t}`,e.setAttribute("role",void 0!==t&&"option"),e.setAttribute("aria-selected",s.toString()),e.setAttribute("aria-posinset",t+1),e.setAttribute("aria-setsize",this.items.length),this.theme?e.setAttribute("theme",this.theme):e.removeAttribute("theme"),i instanceof TP&&this.__requestItemByIndex(t)}__onItemClick(e){this.dispatchEvent(new CustomEvent("selection-changed",{detail:{item:e.currentTarget.item}}))}__patchWheelOverScrolling(){this.$.selector.addEventListener("wheel",(e=>{const t=0===this.scrollTop,i=this.scrollHeight-this.scrollTop-this.clientHeight<=1;(t&&e.deltaY<0||i&&e.deltaY>0)&&e.preventDefault()}))}__requestItemByIndex(e){requestAnimationFrame((()=>{this.dispatchEvent(new CustomEvent("index-requested",{detail:{index:e,currentScrollerPos:this._oldScrollerPosition}}))}))}_visibleItemsCount(){this.__virtualizer.scrollToIndex(this.__virtualizer.firstVisibleIndex);return this.__virtualizer.size>0?this.__virtualizer.lastVisibleIndex-this.__virtualizer.firstVisibleIndex+1:0}}
/**
 * @license
 * Copyright (c) 2015 - 2023 Vaadin Ltd.
 * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
 */;
/**
 * @license
 * Copyright (c) 2015 - 2023 Vaadin Ltd.
 * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
 */class IP extends(PP(eT)){static get is(){return"vaadin-combo-box-scroller"}static get template(){return ZC`
      <style>
        :host {
          display: block;
          min-height: 1px;
          overflow: auto;

          /* Fixes item background from getting on top of scrollbars on Safari */
          transform: translate3d(0, 0, 0);

          /* Enable momentum scrolling on iOS */
          -webkit-overflow-scrolling: touch;

          /* Fixes scrollbar disappearing when 'Show scroll bars: Always' enabled in Safari */
          box-shadow: 0 0 0 white;
        }

        #selector {
          border-width: var(--_vaadin-combo-box-items-container-border-width);
          border-style: var(--_vaadin-combo-box-items-container-border-style);
          border-color: var(--_vaadin-combo-box-items-container-border-color, transparent);
          position: relative;
        }
      </style>
      <div id="selector">
        <slot></slot>
      </div>
    `}}let OP;yE(IP),
/**
 * @license
 * Copyright (c) 2021 - 2023 Vaadin Ltd.
 * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
 */
window.Vaadin||(window.Vaadin={}),window.Vaadin.registrations||(window.Vaadin.registrations=[]),window.Vaadin.developmentModeCallback||(window.Vaadin.developmentModeCallback={}),window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]=function(){};const RP=new Set,NP=e=>class extends(sT(e)){static finalize(){super.finalize();const{is:e}=this;e&&!RP.has(e)&&(window.Vaadin.registrations.push(this),RP.add(e),window.Vaadin.developmentModeCallback&&(OP=bP.debounce(OP,fP,(()=>{window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]()})),yP(OP)))}constructor(){super(),null===document.doctype&&console.warn('Vaadin components require the "standards mode" declaration. Please add <!DOCTYPE html> to the HTML document.')}}
/**
 * @license
 * Copyright (c) 2023 Vaadin Ltd.
 * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
 */;class LP{constructor(e,t){this.slot=e,this.callback=t,this._storedNodes=[],this._connected=!1,this._scheduled=!1,this._boundSchedule=()=>{this._schedule()},this.connect(),this._schedule()}connect(){this.slot.addEventListener("slotchange",this._boundSchedule),this._connected=!0}disconnect(){this.slot.removeEventListener("slotchange",this._boundSchedule),this._connected=!1}_schedule(){this._scheduled||(this._scheduled=!0,queueMicrotask((()=>{this.flush()})))}flush(){this._connected&&(this._scheduled=!1,this._processNodes())}_processNodes(){const e=this.slot.assignedNodes({flatten:!0});let t=[];const i=[],o=[];e.length&&(t=e.filter((e=>!this._storedNodes.includes(e)))),this._storedNodes.length&&this._storedNodes.forEach(((t,s)=>{const n=e.indexOf(t);-1===n?i.push(t):n!==s&&o.push(t)})),(t.length||i.length||o.length)&&this.callback({addedNodes:t,movedNodes:o,removedNodes:i}),this._storedNodes=e}}
/**
 * @license
 * Copyright (c) 2021 - 2023 Vaadin Ltd.
 * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
 */class MP extends EventTarget{static generateId(e,t){return`${t||"default"}-${e.localName}-${dP()}`}constructor(e,t,i,o={}){super();const{initializer:s,multiple:n,observe:r,useUniqueId:a}=o;this.host=e,this.slotName=t,this.tagName=i,this.observe="boolean"!=typeof r||r,this.multiple="boolean"==typeof n&&n,this.slotInitializer=s,n&&(this.nodes=[]),a&&(this.defaultId=this.constructor.generateId(e,t))}hostConnected(){this.initialized||(this.multiple?this.initMultiple():this.initSingle(),this.observe&&this.observeSlot(),this.initialized=!0)}initSingle(){let e=this.getSlotChild();e?(this.node=e,this.initAddedNode(e)):(e=this.attachDefaultNode(),this.initNode(e))}initMultiple(){const e=this.getSlotChildren();if(0===e.length){const e=this.attachDefaultNode();e&&(this.nodes=[e],this.initNode(e))}else this.nodes=e,e.forEach((e=>{this.initAddedNode(e)}))}attachDefaultNode(){const{host:e,slotName:t,tagName:i}=this;let o=this.defaultNode;return!o&&i&&(o=document.createElement(i),o instanceof Element&&(""!==t&&o.setAttribute("slot",t),this.node=o,this.defaultNode=o)),o&&e.appendChild(o),o}getSlotChildren(){const{slotName:e}=this;return Array.from(this.host.childNodes).filter((t=>t.nodeType===Node.ELEMENT_NODE&&t.slot===e||t.nodeType===Node.TEXT_NODE&&t.textContent.trim()&&""===e))}getSlotChild(){return this.getSlotChildren()[0]}initNode(e){const{slotInitializer:t}=this;t&&t(e,this.host)}initCustomNode(e){}teardownNode(e){}initAddedNode(e){e!==this.defaultNode&&(this.initCustomNode(e),this.initNode(e))}observeSlot(){const{slotName:e}=this,t=""===e?"slot:not([name])":`slot[name=${e}]`,i=this.host.shadowRoot.querySelector(t);this.__slotObserver=new LP(i,(({addedNodes:e,removedNodes:t})=>{const i=this.multiple?this.nodes:[this.node],o=e.filter((e=>!function(e){return e.nodeType===Node.TEXT_NODE&&""===e.textContent.trim()}(e)&&!i.includes(e)));t.length&&(this.nodes=i.filter((e=>!t.includes(e))),t.forEach((e=>{this.teardownNode(e)}))),o&&o.length>0&&(this.multiple?(this.defaultNode&&this.defaultNode.remove(),this.nodes=[...i,...o].filter((e=>e!==this.defaultNode)),o.forEach((e=>{this.initAddedNode(e)}))):(this.node&&this.node.remove(),this.node=o[0],this.initAddedNode(this.node)))}))}}
/**
 * @license
 * Copyright (c) 2022 - 2023 Vaadin Ltd.
 * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
 */class UP extends MP{constructor(e){super(e,"tooltip"),this.setTarget(e)}initCustomNode(e){e.target=this.target,void 0!==this.ariaTarget&&(e.ariaTarget=this.ariaTarget),void 0!==this.context&&(e.context=this.context),void 0!==this.manual&&(e.manual=this.manual),void 0!==this.opened&&(e.opened=this.opened),void 0!==this.position&&(e._position=this.position),void 0!==this.shouldShow&&(e.shouldShow=this.shouldShow),this.__notifyChange()}teardownNode(){this.__notifyChange()}setAriaTarget(e){this.ariaTarget=e;const t=this.node;t&&(t.ariaTarget=e)}setContext(e){this.context=e;const t=this.node;t&&(t.context=e)}setManual(e){this.manual=e;const t=this.node;t&&(t.manual=e)}setOpened(e){this.opened=e;const t=this.node;t&&(t.opened=e)}setPosition(e){this.position=e;const t=this.node;t&&(t._position=e)}setShouldShow(e){this.shouldShow=e;const t=this.node;t&&(t.shouldShow=e)}setTarget(e){this.target=e;const t=this.node;t&&(t.target=e)}__notifyChange(){this.dispatchEvent(new CustomEvent("tooltip-changed",{detail:{node:this.node}}))}}
/**
 * @license
 * Copyright (c) 2021 - 2023 Vaadin Ltd.
 * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
 */const HP=hS((e=>class extends e{get _keyboardActive(){return RT()}ready(){this.addEventListener("focusin",(e=>{this._shouldSetFocus(e)&&this._setFocused(!0)})),this.addEventListener("focusout",(e=>{this._shouldRemoveFocus(e)&&this._setFocused(!1)})),super.ready()}disconnectedCallback(){super.disconnectedCallback(),this.hasAttribute("focused")&&this._setFocused(!1)}_setFocused(e){this.toggleAttribute("focused",e),this.toggleAttribute("focus-ring",e&&this._keyboardActive)}_shouldSetFocus(e){return!0}_shouldRemoveFocus(e){return!0}})),DP=hS((e=>class extends e{static get properties(){return{disabled:{type:Boolean,value:!1,observer:"_disabledChanged",reflectToAttribute:!0}}}_disabledChanged(e){this._setAriaDisabled(e)}_setAriaDisabled(e){e?this.setAttribute("aria-disabled","true"):this.removeAttribute("aria-disabled")}click(){this.disabled||super.click()}})),zP=e=>class extends(DP(e)){static get properties(){return{tabindex:{type:Number,reflectToAttribute:!0,observer:"_tabindexChanged"},_lastTabIndex:{type:Number}}}_disabledChanged(e,t){super._disabledChanged(e,t),e?(void 0!==this.tabindex&&(this._lastTabIndex=this.tabindex),this.tabindex=-1):t&&(this.tabindex=this._lastTabIndex)}_tabindexChanged(e){this.disabled&&-1!==e&&(this._lastTabIndex=e,this.tabindex=-1)}}
/**
 * @license
 * Copyright (c) 2021 - 2023 Vaadin Ltd.
 * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
 */,BP=hS((e=>class extends(HP(zP(e))){static get properties(){return{autofocus:{type:Boolean},focusElement:{type:Object,readOnly:!0,observer:"_focusElementChanged"},_lastTabIndex:{value:0}}}constructor(){super(),this._boundOnBlur=this._onBlur.bind(this),this._boundOnFocus=this._onFocus.bind(this)}ready(){super.ready(),this.autofocus&&!this.disabled&&requestAnimationFrame((()=>{this.focus(),this.setAttribute("focus-ring","")}))}focus(){this.focusElement&&!this.disabled&&this.focusElement.focus()}blur(){this.focusElement&&this.focusElement.blur()}click(){this.focusElement&&!this.disabled&&this.focusElement.click()}_focusElementChanged(e,t){e?(e.disabled=this.disabled,this._addFocusListeners(e),this.__forwardTabIndex(this.tabindex)):t&&this._removeFocusListeners(t)}_addFocusListeners(e){e.addEventListener("blur",this._boundOnBlur),e.addEventListener("focus",this._boundOnFocus)}_removeFocusListeners(e){e.removeEventListener("blur",this._boundOnBlur),e.removeEventListener("focus",this._boundOnFocus)}_onFocus(e){e.stopPropagation(),this.dispatchEvent(new Event("focus"))}_onBlur(e){e.stopPropagation(),this.dispatchEvent(new Event("blur"))}_shouldSetFocus(e){return e.target===this.focusElement}_shouldRemoveFocus(e){return e.target===this.focusElement}_disabledChanged(e,t){super._disabledChanged(e,t),this.focusElement&&(this.focusElement.disabled=e),e&&this.blur()}_tabindexChanged(e){this.__forwardTabIndex(e)}__forwardTabIndex(e){void 0!==e&&this.focusElement&&(this.focusElement.tabIndex=e,-1!==e&&(this.tabindex=void 0)),this.disabled&&e&&(-1!==e&&(this._lastTabIndex=e),this.tabindex=void 0)}})),FP=hS((e=>class extends e{ready(){super.ready(),this.addEventListener("keydown",(e=>{this._onKeyDown(e)})),this.addEventListener("keyup",(e=>{this._onKeyUp(e)}))}_onKeyDown(e){switch(e.key){case"Enter":this._onEnter(e);break;case"Escape":this._onEscape(e)}}_onKeyUp(e){}_onEnter(e){}_onEscape(e){}})),jP=new WeakMap;
/**
 * @license
 * Copyright (c) 2021 - 2023 Vaadin Ltd.
 * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
 */const VP=hS((e=>class extends e{get slotStyles(){return{}}connectedCallback(){super.connectedCallback(),this.__applySlotStyles()}__applySlotStyles(){const e=this.getRootNode(),t=function(e){return jP.has(e)||jP.set(e,new Set),jP.get(e)}(e);this.slotStyles.forEach((i=>{t.has(i)||(!function(e,t){const i=document.createElement("style");i.textContent=e,t===document?document.head.appendChild(i):t.insertBefore(i,t.firstChild)}(i,e),t.add(i))}))}})),qP=hS((e=>class extends e{static get properties(){return{inputElement:{type:Object,readOnly:!0,observer:"_inputElementChanged"},type:{type:String,readOnly:!0},value:{type:String,value:"",observer:"_valueChanged",notify:!0,sync:!0},_hasInputValue:{type:Boolean,value:!1,observer:"_hasInputValueChanged"}}}constructor(){super(),this._boundOnInput=this.__onInput.bind(this),this._boundOnChange=this._onChange.bind(this)}get _hasValue(){return null!=this.value&&""!==this.value}get _inputElementValueProperty(){return"value"}get _inputElementValue(){return this.inputElement?this.inputElement[this._inputElementValueProperty]:void 0}set _inputElementValue(e){this.inputElement&&(this.inputElement[this._inputElementValueProperty]=e)}clear(){this._hasInputValue=!1,this.value="",this._inputElementValue=""}_addInputListeners(e){e.addEventListener("input",this._boundOnInput),e.addEventListener("change",this._boundOnChange)}_removeInputListeners(e){e.removeEventListener("input",this._boundOnInput),e.removeEventListener("change",this._boundOnChange)}_forwardInputValue(e){this.inputElement&&(this._inputElementValue=null!=e?e:"")}_inputElementChanged(e,t){e?this._addInputListeners(e):t&&this._removeInputListeners(t)}_hasInputValueChanged(e,t){(e||t)&&this.dispatchEvent(new CustomEvent("has-input-value-changed"))}__onInput(e){this._setHasInputValue(e),this._onInput(e)}_onInput(e){const t=e.composedPath()[0];this.__userInput=e.isTrusted,this.value=t.value,this.__userInput=!1}_onChange(e){}_toggleHasValue(e){this.toggleAttribute("has-value",e)}_valueChanged(e,t){this._toggleHasValue(this._hasValue),""===e&&void 0===t||this.__userInput||this._forwardInputValue(e)}_setHasInputValue(e){const t=e.composedPath()[0];this._hasInputValue=t.value.length>0}})),WP=e=>class extends(qP(FP(e))){static get properties(){return{clearButtonVisible:{type:Boolean,reflectToAttribute:!0,value:!1}}}get clearElement(){return console.warn(`Please implement the 'clearElement' property in <${this.localName}>`),null}ready(){super.ready(),this.clearElement&&(this.clearElement.addEventListener("mousedown",(e=>this._onClearButtonMouseDown(e))),this.clearElement.addEventListener("click",(e=>this._onClearButtonClick(e))))}_onClearButtonClick(e){e.preventDefault(),this._onClearAction()}_onClearButtonMouseDown(e){e.preventDefault(),wT||this.inputElement.focus()}_onEscape(e){super._onEscape(e),this.clearButtonVisible&&this.value&&(e.stopPropagation(),this._onClearAction())}_onClearAction(){this._inputElementValue="",this.inputElement.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),this.inputElement.dispatchEvent(new Event("change",{bubbles:!0}))}}
/**
 * @license
 * Copyright (c) 2023 Vaadin Ltd.
 * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
 */,GP=new Map;
/**
 * @license
 * Copyright (c) 2021 - 2023 Vaadin Ltd.
 * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
 */function KP(e){return GP.has(e)||GP.set(e,new WeakMap),GP.get(e)}function XP(e,t){e&&e.removeAttribute(t)}function YP(e,t){if(!e||!t)return;const i=KP(t);if(i.has(e))return;const o=JT(e.getAttribute(t));i.set(e,new Set(o))}function JP(e,t,i={newId:null,oldId:null,fromUser:!1}){if(!e||!t)return;const{newId:o,oldId:s,fromUser:n}=i,r=KP(t),a=r.get(e);if(!n&&a)return s&&a.delete(s),void(o&&a.add(o));n&&(a?o||r.delete(e):YP(e,t),XP(e,t)),eP(e,t,s);const l=o||ZT(a);l&&QT(e,t,l)}
/**
 * @license
 * Copyright (c) 2021 - 2023 Vaadin Ltd.
 * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
 */
class ZP{constructor(e){this.host=e,this.__required=!1}setTarget(e){this.__target=e,this.__setAriaRequiredAttribute(this.__required),this.__setLabelIdToAriaAttribute(this.__labelId,this.__labelId),null!=this.__labelIdFromUser&&this.__setLabelIdToAriaAttribute(this.__labelIdFromUser,this.__labelIdFromUser,!0),this.__setErrorIdToAriaAttribute(this.__errorId),this.__setHelperIdToAriaAttribute(this.__helperId),this.setAriaLabel(this.__label)}setRequired(e){this.__setAriaRequiredAttribute(e),this.__required=e}setAriaLabel(e){this.__setAriaLabelToAttribute(e),this.__label=e}setLabelId(e,t=!1){const i=t?this.__labelIdFromUser:this.__labelId;this.__setLabelIdToAriaAttribute(e,i,t),t?this.__labelIdFromUser=e:this.__labelId=e}setErrorId(e){this.__setErrorIdToAriaAttribute(e,this.__errorId),this.__errorId=e}setHelperId(e){this.__setHelperIdToAriaAttribute(e,this.__helperId),this.__helperId=e}__setAriaLabelToAttribute(e){var t,i;this.__target&&(e?(YP(t=this.__target,i="aria-labelledby"),XP(t,i),this.__target.setAttribute("aria-label",e)):this.__label&&(!function(e,t){if(!e||!t)return;const i=KP(t),o=i.get(e);o&&0!==o.size?QT(e,t,ZT(o)):e.removeAttribute(t),i.delete(e)}(this.__target,"aria-labelledby"),this.__target.removeAttribute("aria-label")))}__setLabelIdToAriaAttribute(e,t,i){JP(this.__target,"aria-labelledby",{newId:e,oldId:t,fromUser:i})}__setErrorIdToAriaAttribute(e,t){JP(this.__target,"aria-describedby",{newId:e,oldId:t,fromUser:!1})}__setHelperIdToAriaAttribute(e,t){JP(this.__target,"aria-describedby",{newId:e,oldId:t,fromUser:!1})}__setAriaRequiredAttribute(e){this.__target&&(["input","textarea"].includes(this.__target.localName)||(e?this.__target.setAttribute("aria-required","true"):this.__target.removeAttribute("aria-required")))}}
/**
 * @license
 * Copyright (c) 2022 - 2023 Vaadin Ltd.
 * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
 */class QP extends MP{constructor(e,t,i,o={}){super(e,t,i,{...o,useUniqueId:!0})}initCustomNode(e){this.__updateNodeId(e),this.__notifyChange(e)}teardownNode(e){const t=this.getSlotChild();t&&t!==this.defaultNode?this.__notifyChange(t):(this.restoreDefaultNode(),this.updateDefaultNode(this.node))}attachDefaultNode(){const e=super.attachDefaultNode();return e&&this.__updateNodeId(e),e}restoreDefaultNode(){}updateDefaultNode(e){this.__notifyChange(e)}observeNode(e){this.__nodeObserver&&this.__nodeObserver.disconnect(),this.__nodeObserver=new MutationObserver((e=>{e.forEach((e=>{const t=e.target,i=t===this.node;"attributes"===e.type?i&&this.__updateNodeId(t):(i||t.parentElement===this.node)&&this.__notifyChange(this.node)}))})),this.__nodeObserver.observe(e,{attributes:!0,attributeFilter:["id"],childList:!0,subtree:!0,characterData:!0})}__hasContent(e){return!!e&&(e.nodeType===Node.ELEMENT_NODE&&(customElements.get(e.localName)||e.children.length>0)||e.textContent&&""!==e.textContent.trim())}__notifyChange(e){this.dispatchEvent(new CustomEvent("slot-content-changed",{detail:{hasContent:this.__hasContent(e),node:e}}))}__updateNodeId(e){const t=!this.nodes||e===this.nodes[0];e.nodeType!==Node.ELEMENT_NODE||this.multiple&&!t||e.id||(e.id=this.defaultId)}}
/**
 * @license
 * Copyright (c) 2021 - 2023 Vaadin Ltd.
 * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
 */class eI extends QP{constructor(e){super(e,"error-message","div")}setErrorMessage(e){this.errorMessage=e,this.updateDefaultNode(this.node)}setInvalid(e){this.invalid=e,this.updateDefaultNode(this.node)}initAddedNode(e){e!==this.defaultNode&&this.initCustomNode(e)}initNode(e){this.updateDefaultNode(e)}initCustomNode(e){e.textContent&&!this.errorMessage&&(this.errorMessage=e.textContent.trim()),super.initCustomNode(e)}restoreDefaultNode(){this.attachDefaultNode()}updateDefaultNode(e){const{errorMessage:t,invalid:i}=this,o=Boolean(i&&t&&""!==t.trim());e&&(e.textContent=o?t:"",e.hidden=!o,o?e.setAttribute("role","alert"):e.removeAttribute("role")),super.updateDefaultNode(e)}}
/**
 * @license
 * Copyright (c) 2021 - 2023 Vaadin Ltd.
 * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
 */class tI extends QP{constructor(e){super(e,"helper",null)}setHelperText(e){this.helperText=e;this.getSlotChild()||this.restoreDefaultNode(),this.node===this.defaultNode&&this.updateDefaultNode(this.node)}restoreDefaultNode(){const{helperText:e}=this;if(e&&""!==e.trim()){this.tagName="div";const e=this.attachDefaultNode();this.observeNode(e)}}updateDefaultNode(e){e&&(e.textContent=this.helperText),super.updateDefaultNode(e)}initCustomNode(e){super.initCustomNode(e),this.observeNode(e)}}
/**
 * @license
 * Copyright (c) 2021 - 2023 Vaadin Ltd.
 * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
 */class iI extends QP{constructor(e){super(e,"label","label")}setLabel(e){this.label=e;this.getSlotChild()||this.restoreDefaultNode(),this.node===this.defaultNode&&this.updateDefaultNode(this.node)}restoreDefaultNode(){const{label:e}=this;if(e&&""!==e.trim()){const e=this.attachDefaultNode();this.observeNode(e)}}updateDefaultNode(e){e&&(e.textContent=this.label),super.updateDefaultNode(e)}initCustomNode(e){super.initCustomNode(e),this.observeNode(e)}}
/**
 * @license
 * Copyright (c) 2021 - 2023 Vaadin Ltd.
 * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
 */const oI=hS((e=>class extends(jT(e)){static get properties(){return{label:{type:String,observer:"_labelChanged"}}}constructor(){super(),this._labelController=new iI(this),this._labelController.addEventListener("slot-content-changed",(e=>{this.toggleAttribute("has-label",e.detail.hasContent)}))}get _labelId(){const e=this._labelNode;return e&&e.id}get _labelNode(){return this._labelController.node}ready(){super.ready(),this.addController(this._labelController)}_labelChanged(e){this._labelController.setLabel(e)}})),sI=hS((e=>class extends e{static get properties(){return{invalid:{type:Boolean,reflectToAttribute:!0,notify:!0,value:!1},required:{type:Boolean,reflectToAttribute:!0}}}validate(){const e=this.checkValidity();return this._setInvalid(!e),this.dispatchEvent(new CustomEvent("validated",{detail:{valid:e}})),e}checkValidity(){return!this.required||!!this.value}_setInvalid(e){this._shouldSetInvalid(e)&&(this.invalid=e)}_shouldSetInvalid(e){return!0}})),nI=e=>class extends(sI(oI(jT(e)))){static get properties(){return{ariaTarget:{type:Object,observer:"_ariaTargetChanged"},errorMessage:{type:String,observer:"_errorMessageChanged"},helperText:{type:String,observer:"_helperTextChanged"},accessibleName:{type:String,observer:"_accessibleNameChanged"},accessibleNameRef:{type:String,observer:"_accessibleNameRefChanged"}}}static get observers(){return["_invalidChanged(invalid)","_requiredChanged(required)"]}constructor(){super(),this._fieldAriaController=new ZP(this),this._helperController=new tI(this),this._errorController=new eI(this),this._errorController.addEventListener("slot-content-changed",(e=>{this.toggleAttribute("has-error-message",e.detail.hasContent)})),this._labelController.addEventListener("slot-content-changed",(e=>{const{hasContent:t,node:i}=e.detail;this.__labelChanged(t,i)})),this._helperController.addEventListener("slot-content-changed",(e=>{const{hasContent:t,node:i}=e.detail;this.toggleAttribute("has-helper",t),this.__helperChanged(t,i)}))}get _errorNode(){return this._errorController.node}get _helperNode(){return this._helperController.node}ready(){super.ready(),this.addController(this._fieldAriaController),this.addController(this._helperController),this.addController(this._errorController)}__helperChanged(e,t){e?this._fieldAriaController.setHelperId(t.id):this._fieldAriaController.setHelperId(null)}_accessibleNameChanged(e){this._fieldAriaController.setAriaLabel(e)}_accessibleNameRefChanged(e){this._fieldAriaController.setLabelId(e,!0)}__labelChanged(e,t){e?this._fieldAriaController.setLabelId(t.id):this._fieldAriaController.setLabelId(null)}_errorMessageChanged(e){this._errorController.setErrorMessage(e)}_helperTextChanged(e){this._helperController.setHelperText(e)}_ariaTargetChanged(e){e&&this._fieldAriaController.setTarget(e)}_requiredChanged(e){this._fieldAriaController.setRequired(e)}_invalidChanged(e){this._errorController.setInvalid(e),setTimeout((()=>{if(e){const e=this._errorNode;this._fieldAriaController.setErrorId(e&&e.id)}else this._fieldAriaController.setErrorId(null)}))}}
/**
 * @license
 * Copyright (c) 2021 - 2023 Vaadin Ltd.
 * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
 */,rI=hS((e=>class extends e{static get properties(){return{stateTarget:{type:Object,observer:"_stateTargetChanged"}}}static get delegateAttrs(){return[]}static get delegateProps(){return[]}ready(){super.ready(),this._createDelegateAttrsObserver(),this._createDelegatePropsObserver()}_stateTargetChanged(e){e&&(this._ensureAttrsDelegated(),this._ensurePropsDelegated())}_createDelegateAttrsObserver(){this._createMethodObserver(`_delegateAttrsChanged(${this.constructor.delegateAttrs.join(", ")})`)}_createDelegatePropsObserver(){this._createMethodObserver(`_delegatePropsChanged(${this.constructor.delegateProps.join(", ")})`)}_ensureAttrsDelegated(){this.constructor.delegateAttrs.forEach((e=>{this._delegateAttribute(e,this[e])}))}_ensurePropsDelegated(){this.constructor.delegateProps.forEach((e=>{this._delegateProperty(e,this[e])}))}_delegateAttrsChanged(...e){this.constructor.delegateAttrs.forEach(((t,i)=>{this._delegateAttribute(t,e[i])}))}_delegatePropsChanged(...e){this.constructor.delegateProps.forEach(((t,i)=>{this._delegateProperty(t,e[i])}))}_delegateAttribute(e,t){this.stateTarget&&("invalid"===e&&this._delegateAttribute("aria-invalid",!!t&&"true"),"boolean"==typeof t?this.stateTarget.toggleAttribute(e,t):t?this.stateTarget.setAttribute(e,t):this.stateTarget.removeAttribute(e))}_delegateProperty(e,t){this.stateTarget&&(this.stateTarget[e]=t)}})),aI=hS((e=>class extends(rI(sI(qP(e)))){static get constraints(){return["required"]}static get delegateAttrs(){return[...super.delegateAttrs,"required"]}ready(){super.ready(),this._createConstraintsObserver()}checkValidity(){return this.inputElement&&this._hasValidConstraints(this.constructor.constraints.map((e=>this[e])))?this.inputElement.checkValidity():!this.invalid}_hasValidConstraints(e){return e.some((e=>this.__isValidConstraint(e)))}_createConstraintsObserver(){this._createMethodObserver(`_constraintsChanged(stateTarget, ${this.constructor.constraints.join(", ")})`)}_constraintsChanged(e,...t){if(!e)return;const i=this._hasValidConstraints(t),o=this.__previousHasConstraints&&!i;(this._hasValue||this.invalid)&&i?this.validate():o&&this._setInvalid(!1),this.__previousHasConstraints=i}_onChange(e){e.stopPropagation(),this.validate(),this.dispatchEvent(new CustomEvent("change",{detail:{sourceEvent:e},bubbles:e.bubbles,cancelable:e.cancelable}))}__isValidConstraint(e){return Boolean(e)||0===e}})),lI=e=>class extends(VP(BP(aI(nI(WP(FP(e))))))){static get properties(){return{allowedCharPattern:{type:String,observer:"_allowedCharPatternChanged"},autoselect:{type:Boolean,value:!1},name:{type:String,reflectToAttribute:!0},placeholder:{type:String,reflectToAttribute:!0},readonly:{type:Boolean,value:!1,reflectToAttribute:!0},title:{type:String,reflectToAttribute:!0}}}static get delegateAttrs(){return[...super.delegateAttrs,"name","type","placeholder","readonly","invalid","title"]}constructor(){super(),this._boundOnPaste=this._onPaste.bind(this),this._boundOnDrop=this._onDrop.bind(this),this._boundOnBeforeInput=this._onBeforeInput.bind(this)}get slotStyles(){return["\n          :is(input[slot='input'], textarea[slot='textarea'])::placeholder {\n            font: inherit;\n            color: inherit;\n          }\n        "]}_onFocus(e){super._onFocus(e),this.autoselect&&this.inputElement&&this.inputElement.select()}_onChange(e){e.stopPropagation(),this.validate(),this.dispatchEvent(new CustomEvent("change",{detail:{sourceEvent:e},bubbles:e.bubbles,cancelable:e.cancelable}))}_addInputListeners(e){super._addInputListeners(e),e.addEventListener("paste",this._boundOnPaste),e.addEventListener("drop",this._boundOnDrop),e.addEventListener("beforeinput",this._boundOnBeforeInput)}_removeInputListeners(e){super._removeInputListeners(e),e.removeEventListener("paste",this._boundOnPaste),e.removeEventListener("drop",this._boundOnDrop),e.removeEventListener("beforeinput",this._boundOnBeforeInput)}_onKeyDown(e){super._onKeyDown(e),this.allowedCharPattern&&!this.__shouldAcceptKey(e)&&(e.preventDefault(),this._markInputPrevented())}_markInputPrevented(){this.setAttribute("input-prevented",""),this._preventInputDebouncer=bP.debounce(this._preventInputDebouncer,mP.after(200),(()=>{this.removeAttribute("input-prevented")}))}__shouldAcceptKey(e){return e.metaKey||e.ctrlKey||!e.key||1!==e.key.length||this.__allowedCharRegExp.test(e.key)}_onPaste(e){if(this.allowedCharPattern){const t=e.clipboardData.getData("text");this.__allowedTextRegExp.test(t)||(e.preventDefault(),this._markInputPrevented())}}_onDrop(e){if(this.allowedCharPattern){const t=e.dataTransfer.getData("text");this.__allowedTextRegExp.test(t)||(e.preventDefault(),this._markInputPrevented())}}_onBeforeInput(e){this.allowedCharPattern&&e.data&&!this.__allowedTextRegExp.test(e.data)&&(e.preventDefault(),this._markInputPrevented())}_allowedCharPatternChanged(e){if(e)try{this.__allowedCharRegExp=new RegExp(`^${e}$`,"u"),this.__allowedTextRegExp=new RegExp(`^${e}*$`,"u")}catch(e){console.error(e)}}}
/**
 * @license
 * Copyright (c) 2021 - 2023 Vaadin Ltd.
 * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
 */;
/**
 * @license
 * Copyright (c) 2021 - 2023 Vaadin Ltd.
 * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
 */class dI extends MP{constructor(e,t){super(e,"input","input",{initializer:(e,i)=>{i.value&&(e.value=i.value),i.type&&e.setAttribute("type",i.type),e.id=this.defaultId,"function"==typeof t&&t(e)},useUniqueId:!0})}}
/**
 * @license
 * Copyright (c) 2021 - 2023 Vaadin Ltd.
 * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
 */class cI{constructor(e,t){this.input=e,this.__preventDuplicateLabelClick=this.__preventDuplicateLabelClick.bind(this),t.addEventListener("slot-content-changed",(e=>{this.__initLabel(e.detail.node)})),this.__initLabel(t.node)}__initLabel(e){e&&(e.addEventListener("click",this.__preventDuplicateLabelClick),this.input&&e.setAttribute("for",this.input.id))}__preventDuplicateLabelClick(){const e=t=>{t.stopImmediatePropagation(),this.input.removeEventListener("click",e)};this.input.addEventListener("click",e)}}
/**
 * @license
 * Copyright (c) 2021 - 2023 Vaadin Ltd.
 * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
 */const hI=e=>class extends(aI(e)){static get properties(){return{pattern:{type:String}}}static get delegateAttrs(){return[...super.delegateAttrs,"pattern"]}static get constraints(){return[...super.constraints,"pattern"]}}
/**
 * @license
 * Copyright (c) 2021 - 2023 Vaadin Ltd..
 * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
 */,pI=A`
  [part='clear-button'] {
    display: none;
    cursor: default;
  }

  [part='clear-button']::before {
    content: '\\2715';
  }

  :host([clear-button-visible][has-value]:not([disabled]):not([readonly])) [part='clear-button'] {
    display: block;
  }
`
/**
 * @license
 * Copyright (c) 2021 - 2023 Vaadin Ltd..
 * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
 */,uI=A`
  :host {
    display: inline-flex;
    outline: none;
  }

  :host::before {
    content: '\\2003';
    width: 0;
    display: inline-block;
    /* Size and position this element on the same vertical position as the input-field element
          to make vertical align for the host element work as expected */
  }

  :host([hidden]) {
    display: none !important;
  }

  :host(:not([has-label])) [part='label'] {
    display: none;
  }

  @media (forced-colors: active) {
    :host(:not([readonly])) [part='input-field'] {
      outline: 1px solid;
      outline-offset: -1px;
    }
    :host([focused]) [part='input-field'] {
      outline-width: 2px;
    }
    :host([disabled]) [part='input-field'] {
      outline-color: GrayText;
    }
  }
`
/**
 * @license
 * Copyright (c) 2021 - 2023 Vaadin Ltd..
 * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
 */,mI=A`
  [class$='container'] {
    display: flex;
    flex-direction: column;
    min-width: 100%;
    max-width: 100%;
    width: var(--vaadin-field-default-width, 12em);
  }
`
/**
 * @license
 * Copyright (c) 2021 - 2023 Vaadin Ltd..
 * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
 */,gI=[uI,mI,pI],fI=e=>class extends e{static get properties(){return{pageSize:{type:Number,value:50,observer:"_pageSizeChanged"},size:{type:Number,observer:"_sizeChanged"},dataProvider:{type:Object,observer:"_dataProviderChanged"},_pendingRequests:{value:()=>({})},__placeHolder:{value:new TP},__previousDataProviderFilter:{type:String}}}static get observers(){return["_dataProviderFilterChanged(filter)","_warnDataProviderValue(dataProvider, value)","_ensureFirstPage(opened)"]}ready(){super.ready(),this._scroller.addEventListener("index-requested",(e=>{const t=e.detail.index,i=e.detail.currentScrollerPos,o=Math.floor(1.5*this.pageSize);if(!this._shouldSkipIndex(t,o,i)&&void 0!==t){const e=this._getPageForIndex(t);this._shouldLoadPage(e)&&this._loadPage(e)}}))}_dataProviderFilterChanged(e){void 0!==this.__previousDataProviderFilter||""!==e?this.__previousDataProviderFilter!==e&&(this.__previousDataProviderFilter=e,this._pendingRequests={},this.loading=this._shouldFetchData(),this.size=void 0,this.clearCache()):this.__previousDataProviderFilter=e}_shouldFetchData(){return!!this.dataProvider&&(this.opened||this.filter&&this.filter.length)}_ensureFirstPage(e){e&&this._shouldLoadPage(0)&&this._loadPage(0)}_shouldSkipIndex(e,t,i){return 0!==i&&e>=i-t&&e<=i+t}_shouldLoadPage(e){if(!this.filteredItems||this._forceNextRequest)return this._forceNextRequest=!1,!0;const t=this.filteredItems[e*this.pageSize];return void 0!==t?t instanceof TP:void 0===this.size}_loadPage(e){if(this._pendingRequests[e]||!this.dataProvider)return;const t={page:e,pageSize:this.pageSize,filter:this.filter},i=(o,s)=>{if(this._pendingRequests[e]!==i)return;const n=this.filteredItems?[...this.filteredItems]:[];n.splice(t.page*t.pageSize,o.length,...o),this.filteredItems=n,this.opened||this._isInputFocused()||this._commitValue(),void 0!==s&&(this.size=s),delete this._pendingRequests[e],0===Object.keys(this._pendingRequests).length&&(this.loading=!1)};this._pendingRequests[e]=i,this.loading=!0,this.dataProvider(t,i)}_getPageForIndex(e){return Math.floor(e/this.pageSize)}clearCache(){if(!this.dataProvider)return;this._pendingRequests={};const e=[];for(let t=0;t<(this.size||0);t++)e.push(this.__placeHolder);this.filteredItems=e,this._shouldFetchData()?(this._forceNextRequest=!1,this._loadPage(0)):this._forceNextRequest=!0}_sizeChanged(e=0){const t=(this.filteredItems||[]).slice(0,e);for(let i=0;i<e;i++)t[i]=void 0!==t[i]?t[i]:this.__placeHolder;this.filteredItems=t,this._flushPendingRequests(e)}_pageSizeChanged(e,t){if(Math.floor(e)!==e||e<1)throw this.pageSize=t,new Error("`pageSize` value must be an integer > 0");this.clearCache()}_dataProviderChanged(e,t){this._ensureItemsOrDataProvider((()=>{this.dataProvider=t})),this.clearCache()}_ensureItemsOrDataProvider(e){if(void 0!==this.items&&void 0!==this.dataProvider)throw e(),new Error("Using `items` and `dataProvider` together is not supported");this.dataProvider&&!this.filteredItems&&(this.filteredItems=[])}_warnDataProviderValue(e,t){if(e&&""!==t&&(void 0===this.selectedItem||null===this.selectedItem)){const e=this.__getItemIndexByValue(this.filteredItems,t);(e<0||!this._getItemLabel(this.filteredItems[e]))&&console.warn("Warning: unable to determine the label for the provided `value`. Nothing to display in the text field. This usually happens when setting an initial `value` before any items are returned from the `dataProvider` callback. Consider setting `selectedItem` instead of `value`")}}_flushPendingRequests(e){if(this._pendingRequests){const t=Math.ceil(e/this.pageSize);Object.entries(this._pendingRequests).forEach((([i,o])=>{parseInt(i)>=t&&o([],e)}))}}}
/**
 * @license
 * Copyright (c) 2023 Vaadin Ltd.
 * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
 */,_I=e=>class extends e{static get properties(){return{overlayClass:{type:String},_overlayElement:{type:Object}}}static get observers(){return["__updateOverlayClassNames(overlayClass, _overlayElement)"]}__updateOverlayClassNames(e,t){if(!t)return;if(void 0===e)return;const{classList:i}=t;if(this.__initialClasses||(this.__initialClasses=new Set(i)),Array.isArray(this.__previousClasses)){const e=this.__previousClasses.filter((e=>!this.__initialClasses.has(e)));e.length>0&&i.remove(...e)}const o="string"==typeof e?e.split(" ").filter(Boolean):[];o.length>0&&i.add(...o),this.__previousClasses=o}}
/**
 * @license
 * Copyright (c) 2021 - 2023 Vaadin Ltd.
 * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
 */;function vI(e){window.Vaadin&&window.Vaadin.templateRendererCallback?window.Vaadin.templateRendererCallback(e):e.querySelector("template")&&console.warn(`WARNING: <template> inside <${e.localName}> is no longer supported. Import @vaadin/polymer-legacy-adapter/template-renderer.js to enable compatibility.`)}
/**
 * @license
 * Copyright (c) 2021 - 2023 Vaadin Ltd.
 * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
 */class bI{constructor(e){this.host=e,e.addEventListener("opened-changed",(()=>{e.opened||this.__setVirtualKeyboardEnabled(!1)})),e.addEventListener("blur",(()=>this.__setVirtualKeyboardEnabled(!0))),e.addEventListener("touchstart",(()=>this.__setVirtualKeyboardEnabled(!0)))}__setVirtualKeyboardEnabled(e){this.host.inputElement&&(this.host.inputElement.inputMode=e?"":"none")}}
/**
 * @license
 * Copyright (c) 2015 - 2023 Vaadin Ltd.
 * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
 */function yI(e){return null!=e}function xI(e,t){return e.findIndex((e=>!(e instanceof TP)&&t(e)))}const wI=e=>class extends(_I(jT(sI(HP(FP(qP(DP(e)))))))){static get properties(){return{opened:{type:Boolean,notify:!0,value:!1,reflectToAttribute:!0,observer:"_openedChanged"},autoOpenDisabled:{type:Boolean},readonly:{type:Boolean,value:!1,reflectToAttribute:!0},renderer:Function,items:{type:Array,observer:"_itemsChanged"},allowCustomValue:{type:Boolean,value:!1},filteredItems:{type:Array,observer:"_filteredItemsChanged"},_lastCommittedValue:String,loading:{type:Boolean,value:!1,reflectToAttribute:!0},_focusedIndex:{type:Number,observer:"_focusedIndexChanged",value:-1},filter:{type:String,value:"",notify:!0},selectedItem:{type:Object,notify:!0},itemLabelPath:{type:String,value:"label",observer:"_itemLabelPathChanged"},itemValuePath:{type:String,value:"value"},itemIdPath:String,_toggleElement:{type:Object,observer:"_toggleElementChanged"},_dropdownItems:{type:Array},_closeOnBlurIsPrevented:Boolean,_scroller:Object,_overlayOpened:{type:Boolean,observer:"_overlayOpenedChanged"}}}static get observers(){return["_selectedItemChanged(selectedItem, itemValuePath, itemLabelPath)","_openedOrItemsChanged(opened, _dropdownItems, loading)","_updateScroller(_scroller, _dropdownItems, opened, loading, selectedItem, itemIdPath, _focusedIndex, renderer, theme)"]}constructor(){super(),this._boundOverlaySelectedItemChanged=this._overlaySelectedItemChanged.bind(this),this._boundOnClearButtonMouseDown=this.__onClearButtonMouseDown.bind(this),this._boundOnClick=this._onClick.bind(this),this._boundOnOverlayTouchAction=this._onOverlayTouchAction.bind(this),this._boundOnTouchend=this._onTouchend.bind(this)}get _tagNamePrefix(){return"vaadin-combo-box"}get _nativeInput(){return this.inputElement}_inputElementChanged(e){super._inputElementChanged(e);const t=this._nativeInput;t&&(t.autocomplete="off",t.autocapitalize="off",t.setAttribute("role","combobox"),t.setAttribute("aria-autocomplete","list"),t.setAttribute("aria-expanded",!!this.opened),t.setAttribute("spellcheck","false"),t.setAttribute("autocorrect","off"),this._revertInputValueToValue(),this.clearElement&&this.clearElement.addEventListener("mousedown",this._boundOnClearButtonMouseDown))}ready(){super.ready(),this._initOverlay(),this._initScroller(),this._lastCommittedValue=this.value,this.addEventListener("click",this._boundOnClick),this.addEventListener("touchend",this._boundOnTouchend);const e=()=>{requestAnimationFrame((()=>{this._overlayElement.bringToFront()}))};this.addEventListener("mousedown",e),this.addEventListener("touchstart",e),vI(this),this.addController(new bI(this))}disconnectedCallback(){super.disconnectedCallback(),this.close()}requestContentUpdate(){this._scroller&&(this._scroller.requestContentUpdate(),this._getItemElements().forEach((e=>{e.requestContentUpdate()})))}open(){this.disabled||this.readonly||(this.opened=!0)}close(){this.opened=!1}_propertiesChanged(e,t,i){super._propertiesChanged(e,t,i),void 0!==t.filter&&this._filterChanged(t.filter)}_initOverlay(){const e=this.$.overlay;e._comboBox=this,e.addEventListener("touchend",this._boundOnOverlayTouchAction),e.addEventListener("touchmove",this._boundOnOverlayTouchAction),e.addEventListener("mousedown",(e=>e.preventDefault())),e.addEventListener("opened-changed",(e=>{this._overlayOpened=e.detail.value})),this._overlayElement=e}_initScroller(e){const t=`${this._tagNamePrefix}-scroller`,i=this._overlayElement;i.renderer=e=>{e.firstChild||e.appendChild(document.createElement(t))},i.requestContentUpdate();const o=i.querySelector(t);o.owner=e||this,o.getItemLabel=this._getItemLabel.bind(this),o.addEventListener("selection-changed",this._boundOverlaySelectedItemChanged),this._scroller=o}_updateScroller(e,t,i,o,s,n,r,a,l){e&&(i&&(e.style.maxHeight=getComputedStyle(this).getPropertyValue(`--${this._tagNamePrefix}-overlay-max-height`)||"65vh"),e.setProperties({items:i?t:[],opened:i,loading:o,selectedItem:s,itemIdPath:n,focusedIndex:r,renderer:a,theme:l}))}_openedOrItemsChanged(e,t,i){this._overlayOpened=!(!e||!(i||t&&t.length))}_overlayOpenedChanged(e,t){e?(this.dispatchEvent(new CustomEvent("vaadin-combo-box-dropdown-opened",{bubbles:!0,composed:!0})),this._onOpened()):t&&this._dropdownItems&&this._dropdownItems.length&&(this.close(),this.dispatchEvent(new CustomEvent("vaadin-combo-box-dropdown-closed",{bubbles:!0,composed:!0})))}_focusedIndexChanged(e,t){void 0!==t&&this._updateActiveDescendant(e)}_isInputFocused(){return this.inputElement&&HT(this.inputElement)}_updateActiveDescendant(e){const t=this._nativeInput;if(!t)return;const i=this._getItemElements().find((t=>t.index===e));i?t.setAttribute("aria-activedescendant",i.id):t.removeAttribute("aria-activedescendant")}_openedChanged(e,t){if(void 0===t)return;e?(this._openedWithFocusRing=this.hasAttribute("focus-ring"),this._isInputFocused()||wT||this.inputElement&&this.inputElement.focus(),this._overlayElement.restoreFocusOnClose=!0):(this._onClosed(),this._openedWithFocusRing&&this._isInputFocused()&&this.setAttribute("focus-ring",""));const i=this._nativeInput;i&&(i.setAttribute("aria-expanded",!!e),e?i.setAttribute("aria-controls",this._scroller.id):i.removeAttribute("aria-controls"))}_onOverlayTouchAction(){this._closeOnBlurIsPrevented=!0,this.inputElement.blur(),this._closeOnBlurIsPrevented=!1}_isClearButton(e){return e.composedPath()[0]===this.clearElement}__onClearButtonMouseDown(e){e.preventDefault(),this.inputElement.focus()}_onClearButtonClick(e){e.preventDefault(),this._onClearAction(),this.opened&&this.requestContentUpdate()}_onToggleButtonClick(e){e.preventDefault(),this.opened?this.close():this.open()}_onHostClick(e){this.autoOpenDisabled||(e.preventDefault(),this.open())}_onClick(e){this._isClearButton(e)?this._onClearButtonClick(e):e.composedPath().includes(this._toggleElement)?this._onToggleButtonClick(e):this._onHostClick(e)}_onKeyDown(e){super._onKeyDown(e),"Tab"===e.key?this._overlayElement.restoreFocusOnClose=!1:"ArrowDown"===e.key?(this._onArrowDown(),e.preventDefault()):"ArrowUp"===e.key&&(this._onArrowUp(),e.preventDefault())}_getItemLabel(e){let t=e&&this.itemLabelPath?aP(this.itemLabelPath,e):void 0;return null==t&&(t=e?e.toString():""),t}_getItemValue(e){let t=e&&this.itemValuePath?aP(this.itemValuePath,e):void 0;return void 0===t&&(t=e?e.toString():""),t}_onArrowDown(){if(this.opened){const e=this._dropdownItems;e&&(this._focusedIndex=Math.min(e.length-1,this._focusedIndex+1),this._prefillFocusedItemLabel())}else this.open()}_onArrowUp(){if(this.opened){if(this._focusedIndex>-1)this._focusedIndex=Math.max(0,this._focusedIndex-1);else{const e=this._dropdownItems;e&&(this._focusedIndex=e.length-1)}this._prefillFocusedItemLabel()}else this.open()}_prefillFocusedItemLabel(){if(this._focusedIndex>-1){const e=this._dropdownItems[this._focusedIndex];this._inputElementValue=this._getItemLabel(e),this._markAllSelectionRange()}}_setSelectionRange(e,t){this._isInputFocused()&&this.inputElement.setSelectionRange&&this.inputElement.setSelectionRange(e,t)}_markAllSelectionRange(){void 0!==this._inputElementValue&&this._setSelectionRange(0,this._inputElementValue.length)}_clearSelectionRange(){if(void 0!==this._inputElementValue){const e=this._inputElementValue?this._inputElementValue.length:0;this._setSelectionRange(e,e)}}_closeOrCommit(){this.opened||this.loading?this.close():this._commitValue()}_onEnter(e){if(!this._hasValidInputValue())return e.preventDefault(),void e.stopPropagation();this.opened&&(e.preventDefault(),e.stopPropagation()),this._closeOrCommit()}_hasValidInputValue(){const e=this._focusedIndex<0&&""!==this._inputElementValue&&this._getItemLabel(this.selectedItem)!==this._inputElementValue;return this.allowCustomValue||!e}_onEscape(e){this.autoOpenDisabled?this.opened||this.value!==this._inputElementValue&&this._inputElementValue.length>0?(e.stopPropagation(),this._focusedIndex=-1,this.cancel()):this.clearButtonVisible&&!this.opened&&this.value&&(e.stopPropagation(),this._onClearAction()):this.opened?(e.stopPropagation(),this._focusedIndex>-1?(this._focusedIndex=-1,this._revertInputValue()):this.cancel()):this.clearButtonVisible&&this.value&&(e.stopPropagation(),this._onClearAction())}_toggleElementChanged(e){e&&(e.addEventListener("mousedown",(e=>e.preventDefault())),e.addEventListener("click",(()=>{wT&&!this._isInputFocused()&&document.activeElement.blur()})))}_onClearAction(){this.selectedItem=null,this.allowCustomValue&&(this.value=""),this._detectAndDispatchChange()}cancel(){this._revertInputValueToValue(),this._lastCommittedValue=this.value,this._closeOrCommit()}_onOpened(){this._lastCommittedValue=this.value}_onClosed(){this.loading&&!this.allowCustomValue||this._commitValue()}_commitValue(){if(this._focusedIndex>-1){const e=this._dropdownItems[this._focusedIndex];this.selectedItem!==e&&(this.selectedItem=e),this._inputElementValue=this._getItemLabel(this.selectedItem),this._focusedIndex=-1}else if(""===this._inputElementValue||void 0===this._inputElementValue)this.selectedItem=null,this.allowCustomValue&&(this.value="");else{const e=[this.selectedItem,...this._dropdownItems||[]],t=e[this.__getItemIndexByLabel(e,this._inputElementValue)];if(this.allowCustomValue&&!t){const e=this._inputElementValue;this._lastCustomValue=e;const t=new CustomEvent("custom-value-set",{detail:e,composed:!0,cancelable:!0,bubbles:!0});this.dispatchEvent(t),t.defaultPrevented||(this.value=e)}else this.allowCustomValue||this.opened||!t?this._inputElementValue=this.selectedItem?this._getItemLabel(this.selectedItem):this.value||"":this.value=this._getItemValue(t)}this._detectAndDispatchChange(),this._clearSelectionRange(),this.filter=""}_onInput(e){const t=this._inputElementValue,i={};this.filter===t?this._filterChanged(this.filter):i.filter=t,this.opened||this._isClearButton(e)||this.autoOpenDisabled||(i.opened=!0),this.setProperties(i)}_onChange(e){e.stopPropagation()}_itemLabelPathChanged(e){"string"!=typeof e&&console.error("You should set itemLabelPath to a valid string")}_filterChanged(e){this._scrollIntoView(0),this._focusedIndex=-1,this.items?this.filteredItems=this._filterItems(this.items,e):this._filteredItemsChanged(this.filteredItems)}_revertInputValue(){""!==this.filter?this._inputElementValue=this.filter:this._revertInputValueToValue(),this._clearSelectionRange()}_revertInputValueToValue(){this.allowCustomValue&&!this.selectedItem?this._inputElementValue=this.value:this._inputElementValue=this._getItemLabel(this.selectedItem)}_selectedItemChanged(e){if(null==e)this.filteredItems&&(this.allowCustomValue||(this.value=""),this._toggleHasValue(this._hasValue),this._inputElementValue=this.value);else{const t=this._getItemValue(e);if(this.value!==t&&(this.value=t,this.value!==t))return;this._toggleHasValue(!0),this._inputElementValue=this._getItemLabel(e)}}_valueChanged(e,t){""===e&&void 0===t||(yI(e)?(this._getItemValue(this.selectedItem)!==e&&this._selectItemForValue(e),!this.selectedItem&&this.allowCustomValue&&(this._inputElementValue=e),this._toggleHasValue(this._hasValue)):this.selectedItem=null,this.filter="",this._lastCommittedValue=void 0)}_detectAndDispatchChange(){document.hasFocus()&&this.validate(),this.value!==this._lastCommittedValue&&(this.dispatchEvent(new CustomEvent("change",{bubbles:!0})),this._lastCommittedValue=this.value)}_itemsChanged(e,t){this._ensureItemsOrDataProvider((()=>{this.items=t})),e?this.filteredItems=e.slice(0):t&&(this.filteredItems=null)}_filteredItemsChanged(e,t){this._setDropdownItems(e);const i=t?t[this._focusedIndex]:null,o=this.__getItemIndexByValue(e,this.value);(null===this.selectedItem||void 0===this.selectedItem)&&o>=0&&(this.selectedItem=e[o]);const s=this.__getItemIndexByValue(e,this._getItemValue(i));this._focusedIndex=s>-1?s:this.__getItemIndexByLabel(this.filteredItems,this.filter)}_filterItems(e,t){if(!e)return e;const i=e.filter((e=>(t=t?t.toString().toLowerCase():"",this._getItemLabel(e).toString().toLowerCase().indexOf(t)>-1)));return i}_selectItemForValue(e){const t=this.__getItemIndexByValue(this.filteredItems,e),i=this.selectedItem;t>=0?this.selectedItem=this.filteredItems[t]:this.dataProvider&&void 0===this.selectedItem?this.selectedItem=void 0:this.selectedItem=null,null===this.selectedItem&&null===i&&this._selectedItemChanged(this.selectedItem)}_setDropdownItems(e){this._dropdownItems=e}_getItemElements(){return Array.from(this._scroller.querySelectorAll(`${this._tagNamePrefix}-item`))}_scrollIntoView(e){this._scroller&&this._scroller.scrollIntoView(e)}__getItemIndexByValue(e,t){return e&&yI(t)?xI(e,(e=>this._getItemValue(e)===t)):-1}__getItemIndexByLabel(e,t){return e&&t?xI(e,(e=>this._getItemLabel(e).toString().toLowerCase()===t.toString().toLowerCase())):-1}_overlaySelectedItemChanged(e){e.stopPropagation(),e.detail.item instanceof TP||this.opened&&(this._focusedIndex=this.filteredItems.indexOf(e.detail.item),this.close())}_setFocused(e){if(super._setFocused(e),!e&&!this.readonly&&!this._closeOnBlurIsPrevented){if(!this.opened&&this.allowCustomValue&&this._inputElementValue===this._lastCustomValue)return void delete this._lastCustomValue;this._closeOrCommit()}}_shouldRemoveFocus(e){return(!e.relatedTarget||e.relatedTarget.localName!==`${this._tagNamePrefix}-item`)&&(e.relatedTarget!==this._overlayElement||(e.composedPath()[0].focus(),!1))}_onTouchend(e){this.clearElement&&e.composedPath()[0]===this.clearElement&&(e.preventDefault(),this._onClearAction())}}
/**
 * @license
 * Copyright (c) 2015 - 2023 Vaadin Ltd.
 * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
 */;kE("vaadin-combo-box",gI,{moduleId:"vaadin-combo-box-styles"});class $I extends(fI(wI(hI(lI(PE(NP(eT))))))){static get is(){return"vaadin-combo-box"}static get template(){return ZC`
      <style>
        :host([opened]) {
          pointer-events: auto;
        }
      </style>

      <div class="vaadin-combo-box-container">
        <div part="label">
          <slot name="label"></slot>
          <span part="required-indicator" aria-hidden="true" on-click="focus"></span>
        </div>

        <vaadin-input-container
          part="input-field"
          readonly="[[readonly]]"
          disabled="[[disabled]]"
          invalid="[[invalid]]"
          theme$="[[_theme]]"
        >
          <slot name="prefix" slot="prefix"></slot>
          <slot name="input"></slot>
          <div id="clearButton" part="clear-button" slot="suffix" aria-hidden="true"></div>
          <div id="toggleButton" part="toggle-button" slot="suffix" aria-hidden="true"></div>
        </vaadin-input-container>

        <div part="helper-text">
          <slot name="helper"></slot>
        </div>

        <div part="error-message">
          <slot name="error-message"></slot>
        </div>
      </div>

      <vaadin-combo-box-overlay
        id="overlay"
        opened="[[_overlayOpened]]"
        loading$="[[loading]]"
        theme$="[[_theme]]"
        position-target="[[_positionTarget]]"
        no-vertical-overlap
        restore-focus-node="[[inputElement]]"
      ></vaadin-combo-box-overlay>

      <slot name="tooltip"></slot>
    `}static get properties(){return{_positionTarget:{type:Object}}}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new dI(this,(e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e}))),this.addController(new cI(this.inputElement,this._labelController)),this._tooltipController=new UP(this),this.addController(this._tooltipController),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this._tooltipController.setShouldShow((e=>!e.opened)),this._positionTarget=this.shadowRoot.querySelector('[part="input-field"]'),this._toggleElement=this.$.toggleButton}_onClearButtonClick(e){e.stopPropagation(),super._onClearButtonClick(e)}_onHostClick(e){const t=e.composedPath();(t.includes(this._labelNode)||t.includes(this._positionTarget))&&super._onHostClick(e)}}yE($I);let AI=class extends ke{constructor(){super(),this.projects=[],this.currentProject=""}static get styles(){return[bE,Se,Te,Pe,Ie,A`
        vaadin-combo-box {
          font-size: 14px;
          --lumo-font-family: var(--token-fontFamily) !important;
        }
      `]}firstUpdated(){void 0===globalThis.backendaiclient||null===globalThis.backendaiclient||!1===globalThis.backendaiclient.ready?document.addEventListener("backend-ai-connected",(()=>{this._refreshUserGroupSelector(),globalThis.backendaiutils._writeRecentProjectGroup(this.currentProject)}),!0):(this._refreshUserGroupSelector(),globalThis.backendaiutils._writeRecentProjectGroup(this.currentProject))}changeGroup(e){globalThis.backendaiclient.current_group=e.target.value,this.currentProject=globalThis.backendaiclient.current_group,globalThis.backendaiutils._writeRecentProjectGroup(globalThis.backendaiclient.current_group);const t=new CustomEvent("backend-ai-group-changed",{detail:globalThis.backendaiclient.current_group});document.dispatchEvent(t),e.stopPropagation()}_refreshUserGroupSelector(){this.currentProject=globalThis.backendaiutils._readRecentProjectGroup(),globalThis.backendaiclient.current_group=this.currentProject,this.projects=globalThis.backendaiclient.groups,globalThis.backendaiclient.supports("model-store")&&globalThis.backendaiclient.is_admin&&globalThis.backendaiclient.group.list(void 0,void 0,void 0,["GENERAL","MODEL_STORE"]).then((e=>{this.projects=e.groups.map((e=>e.name))})),this.projectSelect.selectedItem=this.currentProject}render(){return ae`
      <link rel="stylesheet" href="resources/custom.css" />
      <div class="horizontal center center-justified layout">
        <p id="project">${qt("webui.menu.Project")}</p>
        <div id="project-select-box">
          <div class="horizontal center center-justified layout">
            <vaadin-combo-box
              id="project-select"
              value="${this.currentProject}"
              .items="${this.projects}"
              @change="${e=>this.changeGroup(e)}"
            ></vaadin-combo-box>
          </div>
        </div>
      </div>
    `}};var kI;o([Zt({type:Array})],AI.prototype,"projects",void 0),o([Zt({type:String})],AI.prototype,"currentProject",void 0),o([ei("#project-select")],AI.prototype,"projectSelect",void 0),AI=o([Xt("backend-ai-project-switcher")],AI);let EI=kI=class extends ti{constructor(){super(),this.supports=Object(),this.supportImages=Object(),this.imageRequirements=Object(),this.imageArchitectures=Object(),this.imageRoles=Object(),this.imageRuntimeConfig=Object(),this.aliases=Object(),this.tags=Object(),this.imageInfo=Object(),this.imageNames=Object(),this.imageTagAlias=Object(),this.imageTagReplace=Object(),this.resourceLimits=Object(),this.userResourceLimit=Object(),this.icons=Object(),this.kernel="",this.gpu_modes=[],this.gpu_step=.1,this.cpu_metric={min:"1",max:"1"},this.mem_metric={min:"1",max:"1"},this.shmem_metric={min:.0625,max:1,preferred:.0625},this.cuda_device_metric={min:0,max:0},this.rocm_device_metric={min:"0",max:"0"},this.tpu_device_metric={min:"1",max:"1"},this.lastQueryTime=0,this.lastResourcePolicyQueryTime=0,this.lastVFolderQueryTime=0,this.aggregate_updating=!1,this._default_language_updated=!1,this._default_version_updated=!1,this.allow_project_resource_monitor=!1,this.max_cpu_core_per_session=64,this.active=!1,this.init_resource()}static get is(){return"backend-ai-resource-broker"}static get styles(){return[]}init_resource(){this.languages=[],this.inferenceServers=[],this.total_slot={},this.total_resource_group_slot={},this.total_project_slot={},this.used_slot={},this.used_resource_group_slot={},this.used_project_slot={},this.available_slot={},this.used_slot_percent={},this.used_resource_group_slot_percent={},this.used_project_slot_percent={},this.resource_templates=[],this.resource_templates_filtered=[],this.vfolders=[],this.default_language="",this.concurrency_used=0,this.concurrency_max=0,this.concurrency_limit=0,this.scaling_groups=[{name:""}],this.scaling_group="",this.current_user_group="",this.sessions_list=[],this.metric_updating=!1,this.metadata_updating=!1,this.image_updating=!0,this.disableLaunch=[]}firstUpdated(){this.tags=globalThis.backendaimetadata.tags,this.icons=globalThis.backendaimetadata.icons,this.imageTagAlias=globalThis.backendaimetadata.imageTagAlias,this.imageTagReplace=globalThis.backendaimetadata.imageTagReplace,this.imageInfo=globalThis.backendaimetadata.imageInfo,document.addEventListener("backend-ai-metadata-image-loaded",(()=>{this.tags=globalThis.backendaimetadata.tags,this.icons=globalThis.backendaimetadata.icons,this.imageTagAlias=globalThis.backendaimetadata.imageTagAlias,this.imageTagReplace=globalThis.backendaimetadata.imageTagReplace,this.imageInfo=globalThis.backendaimetadata.imageInfo}),{once:!0}),void 0===globalThis.backendaiclient||null===globalThis.backendaiclient||!1===globalThis.backendaiclient.ready?document.addEventListener("backend-ai-connected",(()=>{this._refreshImageList()}),{once:!0}):this._refreshImageList(),document.addEventListener("backend-ai-resource-refreshed",(()=>{this.active&&!1===this.metadata_updating&&(this.metadata_updating=!0,this.aggregateResource("resource-refreshed"),this.metadata_updating=!1)})),document.addEventListener("backend-ai-group-changed",(e=>{this._updatePageVariables(!0)})),document.addEventListener("backend-ai-calculate-current-resource",(e=>{this.aggregateResource("resource-refreshed"),globalThis.backendaioptions.set("current-resource",this.available_slot)}))}_initAliases(){for(const e in this.aliases)({}).hasOwnProperty.call(this.aliases,e)&&(this.aliases[this.aliases[e]]=e)}async updateScalingGroup(e=!1,t){""!=this.scaling_group&&""!==t&&t!==this.scaling_group&&(this.scaling_group=t,this.active&&(this.lastQueryTime=0,!0===e&&await this._refreshResourcePolicy()))}async _viewStateChanged(e){await this.updateComplete,this.active&&(void 0===globalThis.backendaiclient||null===globalThis.backendaiclient||!1===globalThis.backendaiclient.ready?document.addEventListener("backend-ai-connected",(()=>{this.allow_project_resource_monitor=globalThis.backendaiclient._config.allow_project_resource_monitor,this._updatePageVariables(!0)}),{once:!0}):(this.allow_project_resource_monitor=globalThis.backendaiclient._config.allow_project_resource_monitor,await this._updatePageVariables(!0)))}async _sftpScalingGroups(){var e,t,i;const o=await(null===(t=null===(e=globalThis.backendaiclient)||void 0===e?void 0:e.vfolder)||void 0===t?void 0:t.list_hosts(null===(i=globalThis.backendaiclient)||void 0===i?void 0:i.current_group_id()));return Object.values(o.volume_info).map((e=>null==e?void 0:e.sftp_scaling_groups.join(", ")))}async _updatePageVariables(e){var t,i;if(!1===this.metadata_updating){if(this.metadata_updating=!0,e&&(this.lastQueryTime=0),""===this.scaling_group||e){""===this.current_user_group&&(this.current_user_group=globalThis.backendaiclient.current_group);let e=await globalThis.backendaiclient.scalingGroup.list(this.current_user_group);const t=await this._sftpScalingGroups();e.scaling_groups.length>0&&(e=e.scaling_groups.filter((e=>!(null==t?void 0:t.includes(e.name))))),e=null!=e?e:[],Array.isArray(e)&&0===e.length&&(this.scaling_groups=[{name:""}]),this.scaling_group=this.scaling_groups[0].name}const o=["name"];await(null===(i=null===(t=globalThis.backendaiclient)||void 0===t?void 0:t.computeSession)||void 0===i?void 0:i.list(o,"RUNNING",null,1e3).then((e=>{!e.compute_session_list&&e.legacy_compute_session_list&&(e.compute_session_list=e.legacy_compute_session_list),this.sessions_list=e.compute_session_list.items.map((e=>e.name))}))),this._initAliases(),await this._refreshResourcePolicy(),this.aggregateResource("update-page-variable"),this.metadata_updating=!1;const s=new CustomEvent("backend-ai-resource-broker-updated",{detail:""});return document.dispatchEvent(s),Promise.resolve(!0)}return Promise.resolve(!1)}_refreshConcurrency(){return globalThis.backendaiclient.keypair.info(globalThis.backendaiclient._config.accessKey,["concurrency_used"]).then((e=>{this.concurrency_used=e.keypair.concurrency_used}))}async _refreshResourcePolicy(){return globalThis.backendaiclient?Date.now()-this.lastResourcePolicyQueryTime<2e3?Promise.resolve(!1):(this.lastResourcePolicyQueryTime=Date.now(),await this._aggregateCurrentResource("refresh resource policy"),globalThis.backendaiclient.keypair.info(globalThis.backendaiclient._config.accessKey,["resource_policy","concurrency_used"]).then((e=>{const t=e.keypair.resource_policy;return this.concurrency_used=e.keypair.concurrency_used,globalThis.backendaiclient.resourcePolicy.get(t,["default_for_unspecified","total_resource_slots","max_concurrent_sessions","max_containers_per_session"])})).then((e=>{const t=e.keypair_resource_policy;return this.userResourceLimit=JSON.parse(e.keypair_resource_policy.total_resource_slots),this.concurrency_max=t.max_concurrent_sessions,this.max_containers_per_session=t.max_containers_per_session,this._updateGPUMode()})).catch((e=>{throw this.metadata_updating=!1,e}))):Promise.resolve(!1)}_updateGPUMode(){return globalThis.backendaiclient.get_resource_slots().then((e=>{let t,i=Number.MIN_VALUE;const o=e,s={"cuda.device":"cuda_device","cuda.shares":"cuda_shares","rocm.device":"rocm_device","tpu.device":"tpu_device","ipu.device":"ipu_device","atom.device":"atom_device","warboy.device":"warboy_device","hyperaccel-lpu.device":"hyperaccel_lpu_device"};for(const[e,n]of Object.entries(s))e in o&&!this.gpu_modes.includes(e)&&this.gpu_modes.push(e),e in o&&this.available_slot.hasOwnProperty(n)&&Number(this.available_slot[n])>i&&(i=Number(this.available_slot[n]),t=e);this.gpu_mode=t,this.gpu_step="cuda.shares"===t?.1:1,void 0===this.gpu_mode&&(this.gpu_mode="none")}))}generateSessionId(){let e="";const t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";for(let i=0;i<8;i++)e+=t.charAt(Math.floor(62*Math.random()));return e+"-session"}async updateVirtualFolderList(e=null){var t,i,o;if(Date.now()-this.lastVFolderQueryTime<2e3)return Promise.resolve(!1);const s=await(null===(i=null===(t=globalThis.backendaiclient)||void 0===t?void 0:t.vfolder)||void 0===i?void 0:i.list_hosts(null===(o=globalThis.backendaiclient)||void 0===o?void 0:o.current_group_id())),n=null==s?void 0:s.allowed;return globalThis.backendaiclient.vfolder.list(globalThis.backendaiclient.current_group_id(),e).then((e=>{this.lastVFolderQueryTime=Date.now();const t=[],i=[];e.forEach((e=>{!n.includes(e.host)&&e.is_owner||(e.name.startsWith(".")?(e.disabled=!0,e.name=e.name+" (Automount folder)",i.push(e)):t.push(e))})),this.vfolders=t.concat(i)}))}async _aggregateCurrentResource(e=""){var t;if(!globalThis.backendaiclient||this.aggregate_updating)return Promise.resolve(!1);if(Date.now()-this.lastQueryTime<1e3)return Promise.resolve(!1);this.aggregate_updating=!0;const i={},o={},s={};try{const e=await globalThis.backendaiclient.keypair.info(globalThis.backendaiclient._config.accessKey,["concurrency_used"]);this.concurrency_used=e.keypair.concurrency_used,""===this.current_user_group&&(this.current_user_group=globalThis.backendaiclient.current_group);const n={group:globalThis.backendaiclient.current_group};if(this.current_user_group!==globalThis.backendaiclient.current_group||0==this.scaling_groups.length||1===this.scaling_groups.length&&""===this.scaling_groups[0].name){this.current_user_group=globalThis.backendaiclient.current_group;const e=await globalThis.backendaiclient.scalingGroup.list(this.current_user_group);if(e&&e.scaling_groups&&e.scaling_groups.length>0){const t=await this._sftpScalingGroups();e.scaling_groups=e.scaling_groups.filter((e=>!(null==t?void 0:t.includes(e.name))))}this.scaling_groups=e.scaling_groups.length>0?e.scaling_groups:[{name:""}]}if(this.scaling_groups.length>0){const e=[];this.scaling_groups.map((t=>{e.push(t.name)})),""!==this.scaling_group&&e.includes(this.scaling_group)||(this.scaling_group=this.scaling_groups[0].name),n.scaling_group=this.scaling_group}const r=await globalThis.backendaiclient.resourcePreset.check(n),a=r.keypair_remaining,l=r.keypair_using,d=r.group_limits,c=r.group_using,h={"cuda.device":"cuda_device","cuda.shares":"cuda_shares","rocm.device":"rocm_device","tpu.device":"tpu_device","ipu.device":"ipu_device","atom.device":"atom_device","warboy.device":"warboy_device","hyperaccel-lpu.device":"hyperaccel_lpu_device"},p={cpu:"cpu",mem:"mem","cuda.device":"cuda_device","cuda.shares":"cuda_shares","rocm.device":"rocm_device","tpu.device":"tpu_device","ipu.device":"ipu_device","atom.device":"atom_device","warboy.device":"warboy_device","hyperaccel-lpu.device":"hyperaccel_lpu_device"};if(""===this.scaling_group&&this.scaling_groups.length>0)r.scaling_groups[""]={using:{cpu:0,mem:0},remaining:{cpu:0,mem:0}};else if(0===this.scaling_groups.length||void 0===r.scaling_groups[this.scaling_group])return this.aggregate_updating=!1,Promise.resolve(!1);const u=r.scaling_groups[this.scaling_group].using,m=r.scaling_groups[this.scaling_group].remaining,g=r.keypair_limits;"cpu"in g&&(o.cpu=Number(m.cpu)+Number(u.cpu),s.cpu=Number(d.cpu),"Infinity"===g.cpu?i.cpu=o.cpu:i.cpu=g.cpu),"mem"in g&&(o.mem=parseFloat(globalThis.backendaiclient.utils.changeBinaryUnit(m.mem,"g"))+parseFloat(globalThis.backendaiclient.utils.changeBinaryUnit(u.mem,"g")),s.mem=parseFloat(globalThis.backendaiclient.utils.changeBinaryUnit(d.mem,"g")),"Infinity"===g.mem?i.mem=o.mem:i.mem=parseFloat(globalThis.backendaiclient.utils.changeBinaryUnit(g.mem,"g")));for(const[e,t]of Object.entries(h))e in g&&(o[t]=Number(m[e])+Number(u[e]),s[t]=Number(d[e]),"Infinity"===g[e]?i[t]=o[t]:i[t]=g[e]);const f=Object(),_=Object(),v=Object(),b=Object(),y=Object();"cpu"in a&&(_.cpu="cpu"in l?l.cpu:0,"Infinity"===a.cpu?f.cpu=i.cpu-_.cpu:f.cpu=a.cpu),"cpu"in m&&(b.cpu="cpu"in u?u.cpu:0,v.cpu=m.cpu),y.cpu="cpu"in c?c.cpu:0,"mem"in a&&(_.mem="mem"in l?parseFloat(globalThis.backendaiclient.utils.changeBinaryUnit(l.mem,"g")):0,"Infinity"===a.mem?f.mem=i.mem-_.mem:f.mem=parseFloat(globalThis.backendaiclient.utils.changeBinaryUnit(a.mem,"g"))),"mem"in m&&(b.mem="mem"in u?parseFloat(globalThis.backendaiclient.utils.changeBinaryUnit(u.mem,"g")):0,v.mem=parseFloat(globalThis.backendaiclient.utils.changeBinaryUnit(m.mem,"g"))),y.mem="mem"in c?parseFloat(globalThis.backendaiclient.utils.changeBinaryUnit(c.mem,"g")):0;for(const[e,t]of Object.entries(h))e in a&&(f[t]=a[e],_[t]=e in l?l[e]:0),e in m&&(v[t]=m[e],b[t]=e in u?u[e]:0),y[t]=e in c?c[e]:0;if(globalThis.backendaiclient._config.hideAgents)this.total_resource_group_slot=this._roundResourceDecimalPlaces(o),this.used_resource_group_slot=this._roundResourceDecimalPlaces(b);else{const e="ALIVE",i=100,o=0,s=1e4,n=["id","status","available_slots","occupied_slots","scaling_group","schedulable"],r=null===(t=(await globalThis.backendaiclient.agentSummary.list(e,n,i,o,s)).agent_summary_list)||void 0===t?void 0:t.items.filter((e=>e.scaling_group==this.scaling_group&&e.schedulable)).map((e=>{var t,i,o,s,n,r,a,l;const d=JSON.parse(e.available_slots),c=JSON.parse(e.occupied_slots);return{available:{cpu:parseInt(null!==(t=null==d?void 0:d.cpu)&&void 0!==t?t:0),mem:parseFloat(globalThis.backendaiclient.utils.changeBinaryUnit(null!==(i=null==d?void 0:d.mem)&&void 0!==i?i:0,"g")),cuda_device:parseInt(null!==(o=null==d?void 0:d["cuda.device"])&&void 0!==o?o:0),cuda_shares:parseFloat(null!==(s=null==d?void 0:d["cuda.shares"])&&void 0!==s?s:0)},occupied:{cpu:parseInt(null!==(n=null==c?void 0:c.cpu)&&void 0!==n?n:0),mem:parseFloat(globalThis.backendaiclient.utils.changeBinaryUnit(null!==(r=null==c?void 0:c.mem)&&void 0!==r?r:0,"g")),cuda_device:parseInt(null!==(a=null==c?void 0:c["cuda.device"])&&void 0!==a?a:0),cuda_shares:parseFloat(null!==(l=null==c?void 0:c["cuda.shares"])&&void 0!==l?l:0)}}})).reduce(((e,t)=>(Object.keys(t.available).forEach((i=>e.available[i]+=t.available[i])),Object.keys(t.occupied).forEach((i=>e.occupied[i]+=t.occupied[i])),e)),{available:{cpu:0,mem:0,cuda_device:0,cuda_shares:0},occupied:{cpu:0,mem:0,cuda_device:0,cuda_shares:0}});r.remaining={},Object.keys(r.available).forEach((e=>{r.remaining[e]=r.available[e]-r.occupied[e]})),this.total_resource_group_slot=this._roundResourceDecimalPlaces(r.available),this.used_resource_group_slot=this._roundResourceDecimalPlaces(r.remaining)}this.total_slot=this._roundResourceDecimalPlaces(i),this.used_slot=this._roundResourceDecimalPlaces(_),this.total_project_slot=this._roundResourceDecimalPlaces(s),this.used_project_slot=this._roundResourceDecimalPlaces(y);const x={},w={},$={};Object.values(p).forEach((e=>{e in _?(Number(i[e])<Number(_[e])&&(i[e]=_[e]),0!=i[e]?x[e]=_[e]/i[e]*100:x[e]=0,0!=o[e]?w[e]=this.used_resource_group_slot[e]/this.total_resource_group_slot[e]*100:w[e]=0,0!=s[e]?$[e]=y[e]/s[e]*100:$[e]=0):(x[e]=0,w[e]=0,$[e]=0),e in f&&"Infinity"===f[e]&&(f[e]=v[e])})),this.used_project_slot_percent=$,0===this.concurrency_max?(x.concurrency=0,f.concurrency=this.concurrency_max):(x.concurrency=this.concurrency_used/this.concurrency_max*100,f.concurrency=this.concurrency_max-this.concurrency_used),this.concurrency_limit=Math.min(f.concurrency,kI.DEFAULT_CONCURRENT_SESSION_COUNT),this.available_slot=this._roundResourceDecimalPlaces(v),this.used_slot_percent=this._roundResourceDecimalPlaces(x),this.used_resource_group_slot_percent=this._roundResourceDecimalPlaces(w);const A=r.presets.map((e=>{if(!0===e.allocatable)for(const[t,i]of Object.entries(p))t in e.resource_slots&&(e[i]=e.resource_slots[t]);else{e.allocatable=!0;for(const[t,i]of Object.entries(p))if(t in e.resource_slots&&i in this.total_resource_group_slot){const o="mem"===t?globalThis.backendaiclient.utils.changeBinaryUnit(e.resource_slots.mem,"g"):e.resource_slots[t],s=this.total_resource_group_slot[i];if(!(parseFloat(o)<=parseFloat(s))){e.allocatable=!1;break}e[i]=o}}return e.mem=globalThis.backendaiclient.utils.changeBinaryUnit(e.resource_slots.mem,"g"),e.shared_memory?e.shmem=globalThis.backendaiclient.utils.changeBinaryUnit(e.shared_memory,"g"):e.shmem=null,e})).filter((e=>e.allocatable)).sort(((e,t)=>e.name>t.name?1:-1));return this.resource_templates=A,0===this.resource_templates_filtered.length&&(this.resource_templates_filtered=this.resource_templates),this.lastQueryTime=Date.now(),this.aggregate_updating=!1,Promise.resolve(!0)}catch(e){throw this.lastQueryTime=Date.now(),this.aggregate_updating=!1,e}}_roundResourceDecimalPlaces(e,t=2){return Object.keys(e).map((i=>{var o;let s=Number(isNaN(e[i])?0:e[i]).toString();!Number.isInteger(Number(s))&&(null===(o=s.split(".")[1])||void 0===o?void 0:o.length)>t&&(s=(Math.round(100*Number(s))/100).toFixed(2)),e[i]=s})),e}aggregateResource(e=""){void 0===globalThis.backendaiclient||null===globalThis.backendaiclient||!1===globalThis.backendaiclient.ready?document.addEventListener("backend-ai-connected",(()=>{this._aggregateCurrentResource(e)}),!0):this._aggregateCurrentResource(e)}async _refreshImageList(){return globalThis.backendaiclient.image.list(["name","humanized_name","tag","registry","architecture","digest","installed","resource_limits { key min max }","labels { key value }"],!0,!1).then((e=>{if(0===e.images.length)return;this.images=e.images,this.supports={},this.supportImages={},this.imageRequirements={},this.imageArchitectures={},this.imageRoles={};const t={};Object.keys(this.images).map(((e,i)=>{const o=this.images[e],s=`${o.registry}/${o.name}`;let n;s in this.supports||(this.supports[s]=[]),-1===this.supports[s].indexOf(o.tag)&&this.supports[s].push(o.tag);const r=o.name.split("/");n=1===r.length?r[0]:r[1],this.supportImages[s]=this.imageInfo[n]||{name:"Custom Environments",description:"Custom-built images.",group:"Custom Environments",tags:[],label:[{category:"Custom",tag:"Custom",color:"black"}]},"group"in this.supportImages[s]||(this.supportImages[s].group="Custom Environments"),this.resourceLimits[`${s}:${o.tag}`]=o.resource_limits,this.imageRequirements[`${s}:${o.tag}`]={},this.imageArchitectures[`${s}:${o.tag}`]||(this.imageArchitectures[`${s}:${o.tag}`]=[]),this.imageArchitectures[`${s}:${o.tag}`].push(o.architecture),this.imageRoles[`${s}`]="COMPUTE",this.imageRuntimeConfig[`${s}:${o.tag}`]={},o.labels.forEach((e=>{"com.nvidia.tensorflow.version"===e.key&&(this.imageRequirements[`${s}:${o.tag}`].framework="TensorFlow "+e.value),"com.nvidia.pytorch.version"===e.key&&(this.imageRequirements[`${s}:${o.tag}`].framework="PyTorch "+e.value),"ai.backend.features"===e.key&&e.value.includes("private")&&(s in t||(t[s]=[]),t[s].push(o.tag)),"ai.backend.role"===e.key&&["COMPUTE","INFERENCE","SYSTEM"].includes(e.value)&&(this.imageRoles[`${s}`]=e.value),"ai.backend.model-path"===e.key&&(this.imageRuntimeConfig[`${s}:${o.tag}`]["model-path"]=e.value)}))})),Object.keys(t).forEach((e=>{const i=this.supports[e];this.supports[e]=i.filter((i=>!t[e].includes(i))),this.supports[e].length<1&&delete this.supports[e]})),this._updateEnvironment()})).catch((e=>{throw this.metadata_updating=!1,e}))}_guessHumanizedNames(e){const t=this.imageNames;let i="",o=null,s="abcdefghijklmnopqrstuvwxyz1234567890!@#$%^&*()";return Object.keys(t).forEach(((n,r)=>{const a=e.split("/");i=2==a.length?a[1]:a[2],(i===n||""===i&&e.endsWith(n)&&n.length<s.length)&&(o=t[n],s=n)})),o}_cap(e){return e.includes("/")||(e=e.replace(/^./,e[0].toUpperCase())),e}_updateEnvironment(){const e=Object.keys(this.supports);if(void 0===e)return;e.sort(((e,t)=>this.supportImages[e].group>this.supportImages[t].group?1:-1));let t="";this.languages=[],e.forEach(((e,i)=>{if(!Object.keys(this.aliases).includes(e)){const t=this._guessHumanizedNames(e);this.aliases[e]=null!==t?t:e}const o=e.split("/"),s=o[0];let n,r;2==o.length?(n="",r=o[1]):o.length>2&&(n=o.slice(1,o.length-1).join("/"),r=o[o.length-1]);let a,l=this.aliases[e];a=void 0!==l?l.split(" (")[0]:r,l=l.split("/").slice(-1)[0],a=a.split("/").slice(-1)[0];let d=[];r in this.tags&&(d=d.concat(this.tags[r])),""==n||["lablup","cloud","stable"].includes(n)||d.push({tag:this._cap(n),color:"purple"});let c="default.png";r in this.icons&&(c=this.icons[r]),globalThis.backendaiclient._config&&void 0!==globalThis.backendaiclient._config.allow_image_list&&globalThis.backendaiclient._config.allow_image_list.length>0&&!globalThis.backendaiclient._config.allow_image_list.includes(e)||(t!==this.supportImages[e].group&&(this.languages.push({name:"",registry:"",prefix:"",kernelname:"",alias:"",icon:"",basename:this.supportImages[e].group,tags:[],clickable:!1}),t=this.supportImages[e].group),this.languages.push({name:e,registry:s,prefix:n,kernelname:r,alias:l,basename:a,tags:d,icon:c}))})),this.image_updating=!1}async initDefaultLanguage(){if(!this._default_language_updated)return void 0!==globalThis.backendaiclient._config.default_session_environment&&"default_session_environment"in globalThis.backendaiclient._config&&""!==globalThis.backendaiclient._config.default_session_environment?this.default_language=globalThis.backendaiclient._config.default_session_environment:this.languages.length>1?this.default_language=this.languages[1].name:0!==this.languages.length?this.default_language=this.languages[0].name:this.default_language="index.docker.io/lablup/ngc-tensorflow",this._default_language_updated=!0,this.default_language}render(){return ae``}};EI.DEFAULT_CONCURRENT_SESSION_COUNT=3,o([Zt({type:Object})],EI.prototype,"supports",void 0),o([Zt({type:Object})],EI.prototype,"images",void 0),o([Zt({type:Object})],EI.prototype,"supportImages",void 0),o([Zt({type:Object})],EI.prototype,"imageRequirements",void 0),o([Zt({type:Object})],EI.prototype,"imageArchitectures",void 0),o([Zt({type:Object})],EI.prototype,"imageRoles",void 0),o([Zt({type:Object})],EI.prototype,"imageRuntimeConfig",void 0),o([Zt({type:Object})],EI.prototype,"aliases",void 0),o([Zt({type:Object})],EI.prototype,"tags",void 0),o([Zt({type:Object})],EI.prototype,"imageInfo",void 0),o([Zt({type:Object})],EI.prototype,"imageNames",void 0),o([Zt({type:Object})],EI.prototype,"imageTagAlias",void 0),o([Zt({type:Object})],EI.prototype,"imageTagReplace",void 0),o([Zt({type:Object})],EI.prototype,"resourceLimits",void 0),o([Zt({type:Object})],EI.prototype,"userResourceLimit",void 0),o([Zt({type:Object})],EI.prototype,"icons",void 0),o([Zt({type:String})],EI.prototype,"kernel",void 0),o([Zt({type:Array})],EI.prototype,"versions",void 0),o([Zt({type:Array})],EI.prototype,"languages",void 0),o([Zt({type:Array})],EI.prototype,"inferenceServers",void 0),o([Zt({type:String})],EI.prototype,"gpu_mode",void 0),o([Zt({type:Array})],EI.prototype,"gpu_modes",void 0),o([Zt({type:Number})],EI.prototype,"gpu_step",void 0),o([Zt({type:Object})],EI.prototype,"total_slot",void 0),o([Zt({type:Object})],EI.prototype,"total_resource_group_slot",void 0),o([Zt({type:Object})],EI.prototype,"total_project_slot",void 0),o([Zt({type:Object})],EI.prototype,"used_slot",void 0),o([Zt({type:Object})],EI.prototype,"used_resource_group_slot",void 0),o([Zt({type:Object})],EI.prototype,"used_project_slot",void 0),o([Zt({type:Object})],EI.prototype,"available_slot",void 0),o([Zt({type:Number})],EI.prototype,"concurrency_used",void 0),o([Zt({type:Number})],EI.prototype,"concurrency_max",void 0),o([Zt({type:Number})],EI.prototype,"concurrency_limit",void 0),o([Zt({type:Number})],EI.prototype,"max_containers_per_session",void 0),o([Zt({type:Array})],EI.prototype,"vfolders",void 0),o([Zt({type:Object})],EI.prototype,"used_slot_percent",void 0),o([Zt({type:Object})],EI.prototype,"used_resource_group_slot_percent",void 0),o([Zt({type:Object})],EI.prototype,"used_project_slot_percent",void 0),o([Zt({type:Array})],EI.prototype,"resource_templates",void 0),o([Zt({type:Array})],EI.prototype,"resource_templates_filtered",void 0),o([Zt({type:String})],EI.prototype,"default_language",void 0),o([Zt({type:Object})],EI.prototype,"cpu_metric",void 0),o([Zt({type:Object})],EI.prototype,"mem_metric",void 0),o([Zt({type:Object})],EI.prototype,"shmem_metric",void 0),o([Zt({type:Object})],EI.prototype,"cuda_device_metric",void 0),o([Zt({type:Object})],EI.prototype,"cuda_shares_metric",void 0),o([Zt({type:Object})],EI.prototype,"rocm_device_metric",void 0),o([Zt({type:Object})],EI.prototype,"tpu_device_metric",void 0),o([Zt({type:Number})],EI.prototype,"lastQueryTime",void 0),o([Zt({type:Number})],EI.prototype,"lastResourcePolicyQueryTime",void 0),o([Zt({type:Number})],EI.prototype,"lastVFolderQueryTime",void 0),o([Zt({type:String})],EI.prototype,"scaling_group",void 0),o([Zt({type:String})],EI.prototype,"current_user_group",void 0),o([Zt({type:Array})],EI.prototype,"scaling_groups",void 0),o([Zt({type:Array})],EI.prototype,"sessions_list",void 0),o([Zt({type:Boolean})],EI.prototype,"metric_updating",void 0),o([Zt({type:Boolean})],EI.prototype,"metadata_updating",void 0),o([Zt({type:Boolean})],EI.prototype,"aggregate_updating",void 0),o([Zt({type:Boolean})],EI.prototype,"image_updating",void 0),o([Zt({type:Boolean})],EI.prototype,"_default_language_updated",void 0),o([Zt({type:Boolean})],EI.prototype,"_default_version_updated",void 0),o([Zt({type:Boolean})],EI.prototype,"allow_project_resource_monitor",void 0),o([Zt({type:Array})],EI.prototype,"disableLaunch",void 0),o([Zt({type:Number})],EI.prototype,"max_cpu_core_per_session",void 0),EI=kI=o([Xt("backend-ai-resource-broker")],EI);let SI=class extends ti{constructor(){super(),this.options=Object(),this.imageInfo=Object(),this.imageNames=Object(),this.imageTagAlias=Object(),this.imageTagReplace=Object(),this.options={"user.desktop_notification":!0,"user.compact_sidebar":!1,"user.preserve_login":!1,"user.language":"default","user.automatic_update_check":!0,"user.custom_ssh_port":"","user.beta_feature":!1},this.readSettings()}readSettings(){this._readSettings()}_readSettings(){for(let e=0,t=localStorage.length;e<t;++e)if(localStorage.key(e).startsWith("backendaiwebui.settings")){const t=localStorage.key(e).replace("backendaiwebui.settings.","");this._readSetting(t)}}exists(e,t="user"){return t+"."+e in this.options}get(e,t=null,i="user"){return i+"."+e in this.options?this.options[i+"."+e]:t}set(e,t,i="user",o=!1){if(!o){const o=new CustomEvent("backendaiwebui.settings:set",{detail:{name:e,value:t,namespace:i}});document.dispatchEvent(o)}this.options[i+"."+e]=t}delete(e,t="user",i=!1){if(!i){const i=new CustomEvent("backendaiwebui.settings:delete",{detail:{name:e,namespace:t}});document.dispatchEvent(i)}delete this.options[t+"."+e]}_readSetting(e,t=!0,i="user"){const o=localStorage.getItem("backendaiwebui.settings."+e);null!==o&&""!=o&&'""'!=o?"false"===o?this.options[e]=!1:"true"===o?this.options[e]=!0:this.isJson(o)?this.options[e]=JSON.parse(o):this.options[e]=o:this.options[e]=t}isJson(e){try{JSON.parse(e)}catch(e){return!1}return!0}render(){return ae``}};o([Zt({type:Object})],SI.prototype,"options",void 0),o([Zt({type:Object})],SI.prototype,"imageInfo",void 0),o([Zt({type:Object})],SI.prototype,"imageNames",void 0),o([Zt({type:Object})],SI.prototype,"imageTagAlias",void 0),o([Zt({type:Object})],SI.prototype,"imageTagReplace",void 0),SI=o([Xt("backend-ai-settings-store")],SI);var CI=SI;
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */const TI=(e,t)=>"method"===t.kind&&t.descriptor&&!("value"in t.descriptor)?{...t,finisher(i){i.createProperty(t.key,e)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:t.key,initializer(){"function"==typeof t.initializer&&(this[t.key]=t.initializer.call(this))},finisher(i){i.createProperty(t.key,e)}};
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */function PI(e){return(t,i)=>void 0!==i?((e,t,i)=>{t.constructor.createProperty(i,e)})(e,t,i):TI(e,t)
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */}
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */
function II(e,t){return(({finisher:e,descriptor:t})=>(i,o)=>{var s;if(void 0===o){const o=null!==(s=i.originalKey)&&void 0!==s?s:i.key,n=null!=t?{kind:"method",placement:"prototype",key:o,descriptor:t(i.key)}:{...i,key:o};return null!=e&&(n.finisher=function(t){e(t,o)}),n}{const s=i.constructor;void 0!==t&&Object.defineProperty(i,o,t(o)),null==e||e(s,o)}})({descriptor:t=>{const i={get(){var t,i;return null!==(i=null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector(e))&&void 0!==i?i:null},enumerable:!0,configurable:!0};return i}})}
/**
 * @license
 * Copyright 2021 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */var OI;null===(OI=window.HTMLSlotElement)||void 0===OI||OI.prototype.assignedElements;var RI=function(){function e(e,t){for(var i=0;i<t.length;i++){var o=t[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,i,o){return i&&e(t.prototype,i),o&&e(t,o),t}}();function NI(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}!function(){if("undefined"!=typeof window){var e=Array.prototype.slice,t=Element.prototype.matches||Element.prototype.msMatchesSelector,i=["a[href]","area[href]","input:not([disabled])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","details","summary","iframe","object","embed","[contenteditable]"].join(","),o=function(){function o(e,t){NI(this,o),this._inertManager=t,this._rootElement=e,this._managedNodes=new Set,this._rootElement.hasAttribute("aria-hidden")?this._savedAriaHidden=this._rootElement.getAttribute("aria-hidden"):this._savedAriaHidden=null,this._rootElement.setAttribute("aria-hidden","true"),this._makeSubtreeUnfocusable(this._rootElement),this._observer=new MutationObserver(this._onMutation.bind(this)),this._observer.observe(this._rootElement,{attributes:!0,childList:!0,subtree:!0})}return RI(o,[{key:"destructor",value:function(){this._observer.disconnect(),this._rootElement&&(null!==this._savedAriaHidden?this._rootElement.setAttribute("aria-hidden",this._savedAriaHidden):this._rootElement.removeAttribute("aria-hidden")),this._managedNodes.forEach((function(e){this._unmanageNode(e.node)}),this),this._observer=null,this._rootElement=null,this._managedNodes=null,this._inertManager=null}},{key:"_makeSubtreeUnfocusable",value:function(e){var t=this;a(e,(function(e){return t._visitNode(e)}));var i=document.activeElement;if(!document.body.contains(e)){for(var o=e,s=void 0;o;){if(o.nodeType===Node.DOCUMENT_FRAGMENT_NODE){s=o;break}o=o.parentNode}s&&(i=s.activeElement)}e.contains(i)&&(i.blur(),i===document.activeElement&&document.body.focus())}},{key:"_visitNode",value:function(e){if(e.nodeType===Node.ELEMENT_NODE){var o=e;o!==this._rootElement&&o.hasAttribute("inert")&&this._adoptInertRoot(o),(t.call(o,i)||o.hasAttribute("tabindex"))&&this._manageNode(o)}}},{key:"_manageNode",value:function(e){var t=this._inertManager.register(e,this);this._managedNodes.add(t)}},{key:"_unmanageNode",value:function(e){var t=this._inertManager.deregister(e,this);t&&this._managedNodes.delete(t)}},{key:"_unmanageSubtree",value:function(e){var t=this;a(e,(function(e){return t._unmanageNode(e)}))}},{key:"_adoptInertRoot",value:function(e){var t=this._inertManager.getInertRoot(e);t||(this._inertManager.setInert(e,!0),t=this._inertManager.getInertRoot(e)),t.managedNodes.forEach((function(e){this._manageNode(e.node)}),this)}},{key:"_onMutation",value:function(t,i){t.forEach((function(t){var i=t.target;if("childList"===t.type)e.call(t.addedNodes).forEach((function(e){this._makeSubtreeUnfocusable(e)}),this),e.call(t.removedNodes).forEach((function(e){this._unmanageSubtree(e)}),this);else if("attributes"===t.type)if("tabindex"===t.attributeName)this._manageNode(i);else if(i!==this._rootElement&&"inert"===t.attributeName&&i.hasAttribute("inert")){this._adoptInertRoot(i);var o=this._inertManager.getInertRoot(i);this._managedNodes.forEach((function(e){i.contains(e.node)&&o._manageNode(e.node)}))}}),this)}},{key:"managedNodes",get:function(){return new Set(this._managedNodes)}},{key:"hasSavedAriaHidden",get:function(){return null!==this._savedAriaHidden}},{key:"savedAriaHidden",set:function(e){this._savedAriaHidden=e},get:function(){return this._savedAriaHidden}}]),o}(),s=function(){function e(t,i){NI(this,e),this._node=t,this._overrodeFocusMethod=!1,this._inertRoots=new Set([i]),this._savedTabIndex=null,this._destroyed=!1,this.ensureUntabbable()}return RI(e,[{key:"destructor",value:function(){if(this._throwIfDestroyed(),this._node&&this._node.nodeType===Node.ELEMENT_NODE){var e=this._node;null!==this._savedTabIndex?e.setAttribute("tabindex",this._savedTabIndex):e.removeAttribute("tabindex"),this._overrodeFocusMethod&&delete e.focus}this._node=null,this._inertRoots=null,this._destroyed=!0}},{key:"_throwIfDestroyed",value:function(){if(this.destroyed)throw new Error("Trying to access destroyed InertNode")}},{key:"ensureUntabbable",value:function(){if(this.node.nodeType===Node.ELEMENT_NODE){var e=this.node;if(t.call(e,i)){if(-1===e.tabIndex&&this.hasSavedTabIndex)return;e.hasAttribute("tabindex")&&(this._savedTabIndex=e.tabIndex),e.setAttribute("tabindex","-1"),e.nodeType===Node.ELEMENT_NODE&&(e.focus=function(){},this._overrodeFocusMethod=!0)}else e.hasAttribute("tabindex")&&(this._savedTabIndex=e.tabIndex,e.removeAttribute("tabindex"))}}},{key:"addInertRoot",value:function(e){this._throwIfDestroyed(),this._inertRoots.add(e)}},{key:"removeInertRoot",value:function(e){this._throwIfDestroyed(),this._inertRoots.delete(e),0===this._inertRoots.size&&this.destructor()}},{key:"destroyed",get:function(){return this._destroyed}},{key:"hasSavedTabIndex",get:function(){return null!==this._savedTabIndex}},{key:"node",get:function(){return this._throwIfDestroyed(),this._node}},{key:"savedTabIndex",set:function(e){this._throwIfDestroyed(),this._savedTabIndex=e},get:function(){return this._throwIfDestroyed(),this._savedTabIndex}}]),e}(),n=function(){function i(e){if(NI(this,i),!e)throw new Error("Missing required argument; InertManager needs to wrap a document.");this._document=e,this._managedNodes=new Map,this._inertRoots=new Map,this._observer=new MutationObserver(this._watchForInert.bind(this)),l(e.head||e.body||e.documentElement),"loading"===e.readyState?e.addEventListener("DOMContentLoaded",this._onDocumentLoaded.bind(this)):this._onDocumentLoaded()}return RI(i,[{key:"setInert",value:function(e,t){if(t){if(this._inertRoots.has(e))return;var i=new o(e,this);if(e.setAttribute("inert",""),this._inertRoots.set(e,i),!this._document.body.contains(e))for(var s=e.parentNode;s;)11===s.nodeType&&l(s),s=s.parentNode}else{if(!this._inertRoots.has(e))return;this._inertRoots.get(e).destructor(),this._inertRoots.delete(e),e.removeAttribute("inert")}}},{key:"getInertRoot",value:function(e){return this._inertRoots.get(e)}},{key:"register",value:function(e,t){var i=this._managedNodes.get(e);return void 0!==i?i.addInertRoot(t):i=new s(e,t),this._managedNodes.set(e,i),i}},{key:"deregister",value:function(e,t){var i=this._managedNodes.get(e);return i?(i.removeInertRoot(t),i.destroyed&&this._managedNodes.delete(e),i):null}},{key:"_onDocumentLoaded",value:function(){e.call(this._document.querySelectorAll("[inert]")).forEach((function(e){this.setInert(e,!0)}),this),this._observer.observe(this._document.body||this._document.documentElement,{attributes:!0,subtree:!0,childList:!0})}},{key:"_watchForInert",value:function(i,o){var s=this;i.forEach((function(i){switch(i.type){case"childList":e.call(i.addedNodes).forEach((function(i){if(i.nodeType===Node.ELEMENT_NODE){var o=e.call(i.querySelectorAll("[inert]"));t.call(i,"[inert]")&&o.unshift(i),o.forEach((function(e){this.setInert(e,!0)}),s)}}),s);break;case"attributes":if("inert"!==i.attributeName)return;var o=i.target,n=o.hasAttribute("inert");s.setInert(o,n)}}),this)}}]),i}();if(!HTMLElement.prototype.hasOwnProperty("inert")){var r=new n(document);Object.defineProperty(HTMLElement.prototype,"inert",{enumerable:!0,get:function(){return this.hasAttribute("inert")},set:function(e){r.setInert(this,e)}})}}function a(e,t,i){if(e.nodeType==Node.ELEMENT_NODE){var o=e;t&&t(o);var s=o.shadowRoot;if(s)return void a(s,t);if("content"==o.localName){for(var n=o,r=n.getDistributedNodes?n.getDistributedNodes():[],l=0;l<r.length;l++)a(r[l],t);return}if("slot"==o.localName){for(var d=o,c=d.assignedNodes?d.assignedNodes({flatten:!0}):[],h=0;h<c.length;h++)a(c[h],t);return}}for(var p=e.firstChild;null!=p;)a(p,t),p=p.nextSibling}function l(e){if(!e.querySelector("style#inert-style, link#inert-style")){var t=document.createElement("style");t.setAttribute("id","inert-style"),t.textContent="\n[inert] {\n  pointer-events: none;\n  cursor: default;\n}\n\n[inert], [inert] * {\n  -webkit-user-select: none;\n  -moz-user-select: none;\n  -ms-user-select: none;\n  user-select: none;\n}\n",e.appendChild(t)}}}();
/**
 * @license
 * Copyright 2016 Google Inc.
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 * THE SOFTWARE.
 */
var LI={ANIMATE:"mdc-drawer--animate",CLOSING:"mdc-drawer--closing",DISMISSIBLE:"mdc-drawer--dismissible",MODAL:"mdc-drawer--modal",OPEN:"mdc-drawer--open",OPENING:"mdc-drawer--opening",ROOT:"mdc-drawer"},MI={APP_CONTENT_SELECTOR:".mdc-drawer-app-content",CLOSE_EVENT:"MDCDrawer:closed",OPEN_EVENT:"MDCDrawer:opened",SCRIM_SELECTOR:".mdc-drawer-scrim",LIST_SELECTOR:".mdc-list,.mdc-deprecated-list",LIST_ITEM_ACTIVATED_SELECTOR:".mdc-list-item--activated,.mdc-deprecated-list-item--activated"},UI=function(e){function o(t){var s=e.call(this,i(i({},o.defaultAdapter),t))||this;return s.animationFrame=0,s.animationTimer=0,s}return t(o,e),Object.defineProperty(o,"strings",{get:function(){return MI},enumerable:!1,configurable:!0}),Object.defineProperty(o,"cssClasses",{get:function(){return LI},enumerable:!1,configurable:!0}),Object.defineProperty(o,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},hasClass:function(){return!1},elementHasClass:function(){return!1},notifyClose:function(){},notifyOpen:function(){},saveFocus:function(){},restoreFocus:function(){},focusActiveNavigationItem:function(){},trapFocus:function(){},releaseFocus:function(){}}},enumerable:!1,configurable:!0}),o.prototype.destroy=function(){this.animationFrame&&cancelAnimationFrame(this.animationFrame),this.animationTimer&&clearTimeout(this.animationTimer)},o.prototype.open=function(){var e=this;this.isOpen()||this.isOpening()||this.isClosing()||(this.adapter.addClass(LI.OPEN),this.adapter.addClass(LI.ANIMATE),this.runNextAnimationFrame((function(){e.adapter.addClass(LI.OPENING)})),this.adapter.saveFocus())},o.prototype.close=function(){!this.isOpen()||this.isOpening()||this.isClosing()||this.adapter.addClass(LI.CLOSING)},o.prototype.isOpen=function(){return this.adapter.hasClass(LI.OPEN)},o.prototype.isOpening=function(){return this.adapter.hasClass(LI.OPENING)||this.adapter.hasClass(LI.ANIMATE)},o.prototype.isClosing=function(){return this.adapter.hasClass(LI.CLOSING)},o.prototype.handleKeydown=function(e){var t=e.keyCode;("Escape"===e.key||27===t)&&this.close()},o.prototype.handleTransitionEnd=function(e){var t=LI.OPENING,i=LI.CLOSING,o=LI.OPEN,s=LI.ANIMATE,n=LI.ROOT;this.isElement(e.target)&&this.adapter.elementHasClass(e.target,n)&&(this.isClosing()?(this.adapter.removeClass(o),this.closed(),this.adapter.restoreFocus(),this.adapter.notifyClose()):(this.adapter.focusActiveNavigationItem(),this.opened(),this.adapter.notifyOpen()),this.adapter.removeClass(s),this.adapter.removeClass(t),this.adapter.removeClass(i))},o.prototype.opened=function(){},o.prototype.closed=function(){},o.prototype.runNextAnimationFrame=function(e){var t=this;cancelAnimationFrame(this.animationFrame),this.animationFrame=requestAnimationFrame((function(){t.animationFrame=0,clearTimeout(t.animationTimer),t.animationTimer=setTimeout(e,0)}))},o.prototype.isElement=function(e){return Boolean(e.classList)},o}(xo),HI=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return t(i,e),i.prototype.handleScrimClick=function(){this.close()},i.prototype.opened=function(){this.adapter.trapFocus()},i.prototype.closed=function(){this.adapter.releaseFocus()},i}(UI);
/**
 * @license
 * Copyright 2019 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */
const DI=window,zI=DI.ShadowRoot&&(void 0===DI.ShadyCSS||DI.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,BI=Symbol(),FI=new WeakMap;let jI=class{constructor(e,t,i){if(this._$cssResult$=!0,i!==BI)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o;const t=this.t;if(zI&&void 0===e){const i=void 0!==t&&1===t.length;i&&(e=FI.get(t)),void 0===e&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),i&&FI.set(t,e))}return e}toString(){return this.cssText}};const VI=zI?e=>e:e=>e instanceof CSSStyleSheet?(e=>{let t="";for(const i of e.cssRules)t+=i.cssText;return(e=>new jI("string"==typeof e?e:e+"",void 0,BI))(t)})(e):e
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */;var qI;const WI=window,GI=WI.trustedTypes,KI=GI?GI.emptyScript:"",XI=WI.reactiveElementPolyfillSupport,YI={toAttribute(e,t){switch(t){case Boolean:e=e?KI:null;break;case Object:case Array:e=null==e?e:JSON.stringify(e)}return e},fromAttribute(e,t){let i=e;switch(t){case Boolean:i=null!==e;break;case Number:i=null===e?null:Number(e);break;case Object:case Array:try{i=JSON.parse(e)}catch(e){i=null}}return i}},JI=(e,t)=>t!==e&&(t==t||e==e),ZI={attribute:!0,type:String,converter:YI,reflect:!1,hasChanged:JI},QI="finalized";let eO=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this._$Eu()}static addInitializer(e){var t;this.finalize(),(null!==(t=this.h)&&void 0!==t?t:this.h=[]).push(e)}static get observedAttributes(){this.finalize();const e=[];return this.elementProperties.forEach(((t,i)=>{const o=this._$Ep(i,t);void 0!==o&&(this._$Ev.set(o,i),e.push(o))})),e}static createProperty(e,t=ZI){if(t.state&&(t.attribute=!1),this.finalize(),this.elementProperties.set(e,t),!t.noAccessor&&!this.prototype.hasOwnProperty(e)){const i="symbol"==typeof e?Symbol():"__"+e,o=this.getPropertyDescriptor(e,i,t);void 0!==o&&Object.defineProperty(this.prototype,e,o)}}static getPropertyDescriptor(e,t,i){return{get(){return this[t]},set(o){const s=this[e];this[t]=o,this.requestUpdate(e,s,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)||ZI}static finalize(){if(this.hasOwnProperty(QI))return!1;this[QI]=!0;const e=Object.getPrototypeOf(this);if(e.finalize(),void 0!==e.h&&(this.h=[...e.h]),this.elementProperties=new Map(e.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const e=this.properties,t=[...Object.getOwnPropertyNames(e),...Object.getOwnPropertySymbols(e)];for(const i of t)this.createProperty(i,e[i])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(e){const t=[];if(Array.isArray(e)){const i=new Set(e.flat(1/0).reverse());for(const e of i)t.unshift(VI(e))}else void 0!==e&&t.push(VI(e));return t}static _$Ep(e,t){const i=t.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof e?e.toLowerCase():void 0}_$Eu(){var e;this._$E_=new Promise((e=>this.enableUpdating=e)),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(e=this.constructor.h)||void 0===e||e.forEach((e=>e(this)))}addController(e){var t,i;(null!==(t=this._$ES)&&void 0!==t?t:this._$ES=[]).push(e),void 0!==this.renderRoot&&this.isConnected&&(null===(i=e.hostConnected)||void 0===i||i.call(e))}removeController(e){var t;null===(t=this._$ES)||void 0===t||t.splice(this._$ES.indexOf(e)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach(((e,t)=>{this.hasOwnProperty(t)&&(this._$Ei.set(t,this[t]),delete this[t])}))}createRenderRoot(){var e;const t=null!==(e=this.shadowRoot)&&void 0!==e?e:this.attachShadow(this.constructor.shadowRootOptions);return((e,t)=>{zI?e.adoptedStyleSheets=t.map((e=>e instanceof CSSStyleSheet?e:e.styleSheet)):t.forEach((t=>{const i=document.createElement("style"),o=DI.litNonce;void 0!==o&&i.setAttribute("nonce",o),i.textContent=t.cssText,e.appendChild(i)}))})(t,this.constructor.elementStyles),t}connectedCallback(){var e;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(e=this._$ES)||void 0===e||e.forEach((e=>{var t;return null===(t=e.hostConnected)||void 0===t?void 0:t.call(e)}))}enableUpdating(e){}disconnectedCallback(){var e;null===(e=this._$ES)||void 0===e||e.forEach((e=>{var t;return null===(t=e.hostDisconnected)||void 0===t?void 0:t.call(e)}))}attributeChangedCallback(e,t,i){this._$AK(e,i)}_$EO(e,t,i=ZI){var o;const s=this.constructor._$Ep(e,i);if(void 0!==s&&!0===i.reflect){const n=(void 0!==(null===(o=i.converter)||void 0===o?void 0:o.toAttribute)?i.converter:YI).toAttribute(t,i.type);this._$El=e,null==n?this.removeAttribute(s):this.setAttribute(s,n),this._$El=null}}_$AK(e,t){var i;const o=this.constructor,s=o._$Ev.get(e);if(void 0!==s&&this._$El!==s){const e=o.getPropertyOptions(s),n="function"==typeof e.converter?{fromAttribute:e.converter}:void 0!==(null===(i=e.converter)||void 0===i?void 0:i.fromAttribute)?e.converter:YI;this._$El=s,this[s]=n.fromAttribute(t,e.type),this._$El=null}}requestUpdate(e,t,i){let o=!0;void 0!==e&&(((i=i||this.constructor.getPropertyOptions(e)).hasChanged||JI)(this[e],t)?(this._$AL.has(e)||this._$AL.set(e,t),!0===i.reflect&&this._$El!==e&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(e,i))):o=!1),!this.isUpdatePending&&o&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(e){Promise.reject(e)}const e=this.scheduleUpdate();return null!=e&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var e;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach(((e,t)=>this[t]=e)),this._$Ei=void 0);let t=!1;const i=this._$AL;try{t=this.shouldUpdate(i),t?(this.willUpdate(i),null===(e=this._$ES)||void 0===e||e.forEach((e=>{var t;return null===(t=e.hostUpdate)||void 0===t?void 0:t.call(e)})),this.update(i)):this._$Ek()}catch(e){throw t=!1,this._$Ek(),e}t&&this._$AE(i)}willUpdate(e){}_$AE(e){var t;null===(t=this._$ES)||void 0===t||t.forEach((e=>{var t;return null===(t=e.hostUpdated)||void 0===t?void 0:t.call(e)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(e){return!0}update(e){void 0!==this._$EC&&(this._$EC.forEach(((e,t)=>this._$EO(t,this[t],e))),this._$EC=void 0),this._$Ek()}updated(e){}firstUpdated(e){}};
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */
var tO;eO[QI]=!0,eO.elementProperties=new Map,eO.elementStyles=[],eO.shadowRootOptions={mode:"open"},null==XI||XI({ReactiveElement:eO}),(null!==(qI=WI.reactiveElementVersions)&&void 0!==qI?qI:WI.reactiveElementVersions=[]).push("1.6.3");const iO=window,oO=iO.trustedTypes,sO=oO?oO.createPolicy("lit-html",{createHTML:e=>e}):void 0,nO="$lit$",rO=`lit$${(Math.random()+"").slice(9)}$`,aO="?"+rO,lO=`<${aO}>`,dO=document,cO=()=>dO.createComment(""),hO=e=>null===e||"object"!=typeof e&&"function"!=typeof e,pO=Array.isArray,uO="[ \t\n\f\r]",mO=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,gO=/-->/g,fO=/>/g,_O=RegExp(`>|${uO}(?:([^\\s"'>=/]+)(${uO}*=${uO}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),vO=/'/g,bO=/"/g,yO=/^(?:script|style|textarea|title)$/i,xO=(e=>(t,...i)=>({_$litType$:e,strings:t,values:i}))(1),wO=Symbol.for("lit-noChange"),$O=Symbol.for("lit-nothing"),AO=new WeakMap,kO=dO.createTreeWalker(dO,129,null,!1);function EO(e,t){if(!Array.isArray(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==sO?sO.createHTML(t):t}let SO=class e{constructor({strings:t,_$litType$:i},o){let s;this.parts=[];let n=0,r=0;const a=t.length-1,l=this.parts,[d,c]=((e,t)=>{const i=e.length-1,o=[];let s,n=2===t?"<svg>":"",r=mO;for(let t=0;t<i;t++){const i=e[t];let a,l,d=-1,c=0;for(;c<i.length&&(r.lastIndex=c,l=r.exec(i),null!==l);)c=r.lastIndex,r===mO?"!--"===l[1]?r=gO:void 0!==l[1]?r=fO:void 0!==l[2]?(yO.test(l[2])&&(s=RegExp("</"+l[2],"g")),r=_O):void 0!==l[3]&&(r=_O):r===_O?">"===l[0]?(r=null!=s?s:mO,d=-1):void 0===l[1]?d=-2:(d=r.lastIndex-l[2].length,a=l[1],r=void 0===l[3]?_O:'"'===l[3]?bO:vO):r===bO||r===vO?r=_O:r===gO||r===fO?r=mO:(r=_O,s=void 0);const h=r===_O&&e[t+1].startsWith("/>")?" ":"";n+=r===mO?i+lO:d>=0?(o.push(a),i.slice(0,d)+nO+i.slice(d)+rO+h):i+rO+(-2===d?(o.push(void 0),t):h)}return[EO(e,n+(e[i]||"<?>")+(2===t?"</svg>":"")),o]})(t,i);if(this.el=e.createElement(d,o),kO.currentNode=this.el.content,2===i){const e=this.el.content,t=e.firstChild;t.remove(),e.append(...t.childNodes)}for(;null!==(s=kO.nextNode())&&l.length<a;){if(1===s.nodeType){if(s.hasAttributes()){const e=[];for(const t of s.getAttributeNames())if(t.endsWith(nO)||t.startsWith(rO)){const i=c[r++];if(e.push(t),void 0!==i){const e=s.getAttribute(i.toLowerCase()+nO).split(rO),t=/([.?@])?(.*)/.exec(i);l.push({type:1,index:n,name:t[2],strings:e,ctor:"."===t[1]?OO:"?"===t[1]?NO:"@"===t[1]?LO:IO})}else l.push({type:6,index:n})}for(const t of e)s.removeAttribute(t)}if(yO.test(s.tagName)){const e=s.textContent.split(rO),t=e.length-1;if(t>0){s.textContent=oO?oO.emptyScript:"";for(let i=0;i<t;i++)s.append(e[i],cO()),kO.nextNode(),l.push({type:2,index:++n});s.append(e[t],cO())}}}else if(8===s.nodeType)if(s.data===aO)l.push({type:2,index:n});else{let e=-1;for(;-1!==(e=s.data.indexOf(rO,e+1));)l.push({type:7,index:n}),e+=rO.length-1}n++}}static createElement(e,t){const i=dO.createElement("template");return i.innerHTML=e,i}};function CO(e,t,i=e,o){var s,n,r,a;if(t===wO)return t;let l=void 0!==o?null===(s=i._$Co)||void 0===s?void 0:s[o]:i._$Cl;const d=hO(t)?void 0:t._$litDirective$;return(null==l?void 0:l.constructor)!==d&&(null===(n=null==l?void 0:l._$AO)||void 0===n||n.call(l,!1),void 0===d?l=void 0:(l=new d(e),l._$AT(e,i,o)),void 0!==o?(null!==(r=(a=i)._$Co)&&void 0!==r?r:a._$Co=[])[o]=l:i._$Cl=l),void 0!==l&&(t=CO(e,l._$AS(e,t.values),l,o)),t}let TO=class{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){var t;const{el:{content:i},parts:o}=this._$AD,s=(null!==(t=null==e?void 0:e.creationScope)&&void 0!==t?t:dO).importNode(i,!0);kO.currentNode=s;let n=kO.nextNode(),r=0,a=0,l=o[0];for(;void 0!==l;){if(r===l.index){let t;2===l.type?t=new PO(n,n.nextSibling,this,e):1===l.type?t=new l.ctor(n,l.name,l.strings,this,e):6===l.type&&(t=new MO(n,this,e)),this._$AV.push(t),l=o[++a]}r!==(null==l?void 0:l.index)&&(n=kO.nextNode(),r++)}return kO.currentNode=dO,s}v(e){let t=0;for(const i of this._$AV)void 0!==i&&(void 0!==i.strings?(i._$AI(e,i,t),t+=i.strings.length-2):i._$AI(e[t])),t++}},PO=class e{constructor(e,t,i,o){var s;this.type=2,this._$AH=$O,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=i,this.options=o,this._$Cp=null===(s=null==o?void 0:o.isConnected)||void 0===s||s}get _$AU(){var e,t;return null!==(t=null===(e=this._$AM)||void 0===e?void 0:e._$AU)&&void 0!==t?t:this._$Cp}get parentNode(){let e=this._$AA.parentNode;const t=this._$AM;return void 0!==t&&11===(null==e?void 0:e.nodeType)&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=CO(this,e,t),hO(e)?e===$O||null==e||""===e?(this._$AH!==$O&&this._$AR(),this._$AH=$O):e!==this._$AH&&e!==wO&&this._(e):void 0!==e._$litType$?this.g(e):void 0!==e.nodeType?this.$(e):(e=>pO(e)||"function"==typeof(null==e?void 0:e[Symbol.iterator]))(e)?this.T(e):this._(e)}k(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}$(e){this._$AH!==e&&(this._$AR(),this._$AH=this.k(e))}_(e){this._$AH!==$O&&hO(this._$AH)?this._$AA.nextSibling.data=e:this.$(dO.createTextNode(e)),this._$AH=e}g(e){var t;const{values:i,_$litType$:o}=e,s="number"==typeof o?this._$AC(e):(void 0===o.el&&(o.el=SO.createElement(EO(o.h,o.h[0]),this.options)),o);if((null===(t=this._$AH)||void 0===t?void 0:t._$AD)===s)this._$AH.v(i);else{const e=new TO(s,this),t=e.u(this.options);e.v(i),this.$(t),this._$AH=e}}_$AC(e){let t=AO.get(e.strings);return void 0===t&&AO.set(e.strings,t=new SO(e)),t}T(t){pO(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let o,s=0;for(const n of t)s===i.length?i.push(o=new e(this.k(cO()),this.k(cO()),this,this.options)):o=i[s],o._$AI(n),s++;s<i.length&&(this._$AR(o&&o._$AB.nextSibling,s),i.length=s)}_$AR(e=this._$AA.nextSibling,t){var i;for(null===(i=this._$AP)||void 0===i||i.call(this,!1,!0,t);e&&e!==this._$AB;){const t=e.nextSibling;e.remove(),e=t}}setConnected(e){var t;void 0===this._$AM&&(this._$Cp=e,null===(t=this._$AP)||void 0===t||t.call(this,e))}},IO=class{constructor(e,t,i,o,s){this.type=1,this._$AH=$O,this._$AN=void 0,this.element=e,this.name=t,this._$AM=o,this.options=s,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=$O}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(e,t=this,i,o){const s=this.strings;let n=!1;if(void 0===s)e=CO(this,e,t,0),n=!hO(e)||e!==this._$AH&&e!==wO,n&&(this._$AH=e);else{const o=e;let r,a;for(e=s[0],r=0;r<s.length-1;r++)a=CO(this,o[i+r],t,r),a===wO&&(a=this._$AH[r]),n||(n=!hO(a)||a!==this._$AH[r]),a===$O?e=$O:e!==$O&&(e+=(null!=a?a:"")+s[r+1]),this._$AH[r]=a}n&&!o&&this.j(e)}j(e){e===$O?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=e?e:"")}},OO=class extends IO{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===$O?void 0:e}};const RO=oO?oO.emptyScript:"";let NO=class extends IO{constructor(){super(...arguments),this.type=4}j(e){e&&e!==$O?this.element.setAttribute(this.name,RO):this.element.removeAttribute(this.name)}},LO=class extends IO{constructor(e,t,i,o,s){super(e,t,i,o,s),this.type=5}_$AI(e,t=this){var i;if((e=null!==(i=CO(this,e,t,0))&&void 0!==i?i:$O)===wO)return;const o=this._$AH,s=e===$O&&o!==$O||e.capture!==o.capture||e.once!==o.once||e.passive!==o.passive,n=e!==$O&&(o===$O||s);s&&this.element.removeEventListener(this.name,this,o),n&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var t,i;"function"==typeof this._$AH?this._$AH.call(null!==(i=null===(t=this.options)||void 0===t?void 0:t.host)&&void 0!==i?i:this.element,e):this._$AH.handleEvent(e)}},MO=class{constructor(e,t,i){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(e){CO(this,e)}};const UO=iO.litHtmlPolyfillSupport;null==UO||UO(SO,PO),(null!==(tO=iO.litHtmlVersions)&&void 0!==tO?tO:iO.litHtmlVersions=[]).push("2.8.0");
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */
var HO,DO;let zO=class extends eO{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e,t;const i=super.createRenderRoot();return null!==(e=(t=this.renderOptions).renderBefore)&&void 0!==e||(t.renderBefore=i.firstChild),i}update(e){const t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=((e,t,i)=>{var o,s;const n=null!==(o=null==i?void 0:i.renderBefore)&&void 0!==o?o:t;let r=n._$litPart$;if(void 0===r){const e=null!==(s=null==i?void 0:i.renderBefore)&&void 0!==s?s:null;n._$litPart$=r=new PO(t.insertBefore(cO(),e),e,void 0,null!=i?i:{})}return r._$AI(e),r})(t,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),null===(e=this._$Do)||void 0===e||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),null===(e=this._$Do)||void 0===e||e.setConnected(!1)}render(){return wO}};zO.finalized=!0,zO._$litElement$=!0,null===(HO=globalThis.litElementHydrateSupport)||void 0===HO||HO.call(globalThis,{LitElement:zO});const BO=globalThis.litElementPolyfillSupport;null==BO||BO({LitElement:zO}),(null!==(DO=globalThis.litElementVersions)&&void 0!==DO?DO:globalThis.litElementVersions=[]).push("3.3.3");
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */
const FO=1;let jO=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,i){this._$Ct=e,this._$AM=t,this._$Ci=i}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}};
/**
 * @license
 * Copyright 2018 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */const VO=(e=>(...t)=>({_$litDirective$:e,values:t}))(class extends jO{constructor(e){var t;if(super(e),e.type!==FO||"class"!==e.name||(null===(t=e.strings)||void 0===t?void 0:t.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(e){return" "+Object.keys(e).filter((t=>e[t])).join(" ")+" "}update(e,[t]){var i,o;if(void 0===this.it){this.it=new Set,void 0!==e.strings&&(this.nt=new Set(e.strings.join(" ").split(/\s/).filter((e=>""!==e))));for(const e in t)t[e]&&!(null===(i=this.nt)||void 0===i?void 0:i.has(e))&&this.it.add(e);return this.render(t)}const s=e.element.classList;this.it.forEach((e=>{e in t||(s.remove(e),this.it.delete(e))}));for(const e in t){const i=!!t[e];i===this.it.has(e)||(null===(o=this.nt)||void 0===o?void 0:o.has(e))||(i?(s.add(e),this.it.add(e)):(s.remove(e),this.it.delete(e)))}return wO}}),qO=document.$blockingElements;
/**
 * @license
 * Copyright 2018 Google LLC
 * SPDX-License-Identifier: Apache-2.0
 */class WO extends yo{constructor(){super(...arguments),this._previousFocus=null,this.open=!1,this.hasHeader=!1,this.type=""}get mdcFoundationClass(){return"modal"===this.type?HI:UI}createAdapter(){return Object.assign(Object.assign({},uo(this.mdcRoot)),{elementHasClass:(e,t)=>e.classList.contains(t),saveFocus:()=>{this._previousFocus=this.getRootNode().activeElement},restoreFocus:()=>{this._previousFocus&&this._previousFocus.focus&&this._previousFocus.focus()},notifyClose:()=>{this.open=!1,this.dispatchEvent(new Event(MI.CLOSE_EVENT,{bubbles:!0,cancelable:!0}))},notifyOpen:()=>{this.open=!0,this.dispatchEvent(new Event(MI.OPEN_EVENT,{bubbles:!0,cancelable:!0}))},focusActiveNavigationItem:()=>{},trapFocus:()=>{qO.push(this),this.appContent.inert=!0},releaseFocus:()=>{qO.remove(this),this.appContent.inert=!1}})}_handleScrimClick(){this.mdcFoundation instanceof HI&&this.mdcFoundation.handleScrimClick()}render(){const e="dismissible"===this.type||"modal"===this.type,t="modal"===this.type,i=this.hasHeader?xO`
      <div class="mdc-drawer__header">
        <h3 class="mdc-drawer__title"><slot name="title"></slot></h3>
        <h6 class="mdc-drawer__subtitle"><slot name="subtitle"></slot></h6>
        <slot name="header"></slot>
      </div>
      `:"";return xO`
      <style>
        .mdc-drawer {
          background-color: var(--mdc-drawer-background-color, '#ffffff');
          width: var(--mdc-drawer-width, 256px);
          border-left: var(
            --mdc-drawer-border-left,
            1px solid rgba(0, 0, 0, 0.12)
          );
          border-right: var(
            --mdc-drawer-border-right,
            1px solid rgba(0, 0, 0, 0.12)
          );
        }
        .mdc-drawer.mdc-drawer--open:not(.mdc-drawer--closing)
          + .mdc-drawer-app-content {
          margin-left: var(--mdc-drawer-width, 256px) !important;
          width: calc(100% - var(--mdc-drawer-width, 256px));
        }
      </style>
      <aside class="mdc-drawer ${VO({"mdc-drawer--dismissible":e,"mdc-drawer--modal":t})}">
        ${i}
        <div class="mdc-drawer__content"><slot></slot></div>
      </aside>
      ${t?xO`<div class="mdc-drawer-scrim"
                          @click="${this._handleScrimClick}"></div>`:""}
      <div class="mdc-drawer-app-content">
        <slot name="appContent"></slot>
      </div>
      `}firstUpdated(){this.mdcRoot.addEventListener("keydown",(e=>this.mdcFoundation.handleKeydown(e))),this.mdcRoot.addEventListener("transitionend",(e=>this.mdcFoundation.handleTransitionEnd(e)))}updated(e){e.has("type")&&this.createFoundation()}}o([II(".mdc-drawer")],WO.prototype,"mdcRoot",void 0),o([II(".mdc-drawer-app-content")],WO.prototype,"appContent",void 0),o([Fl((function(e){""!==this.type&&(e?this.mdcFoundation.open():this.mdcFoundation.close())})),PI({type:Boolean,reflect:!0})],WO.prototype,"open",void 0),o([PI({type:Boolean})],WO.prototype,"hasHeader",void 0),o([PI({reflect:!0})],WO.prototype,"type",void 0);
/**
 * @license
 * Copyright 2021 Google LLC
 * SPDX-LIcense-Identifier: Apache-2.0
 */
const GO=((e,...t)=>{const i=1===e.length?e[0]:t.reduce(((t,i,o)=>t+(e=>{if(!0===e._$cssResult$)return e.cssText;if("number"==typeof e)return e;throw Error("Value passed to 'css' function must be a 'css' function result: "+e+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+e[o+1]),e[0]);return new jI(i,e,BI)})`.mdc-drawer{border-color:rgba(0, 0, 0, 0.12);background-color:#fff;background-color:var(--mdc-theme-surface, #fff);border-top-left-radius:0;border-top-right-radius:0;border-top-right-radius:var(--mdc-shape-large, 0);border-bottom-right-radius:0;border-bottom-right-radius:var(--mdc-shape-large, 0);border-bottom-left-radius:0;z-index:6;width:256px;display:flex;flex-direction:column;flex-shrink:0;box-sizing:border-box;height:100%;border-right-width:1px;border-right-style:solid;overflow:hidden;transition-property:transform;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1)}.mdc-drawer .mdc-drawer__title{color:rgba(0, 0, 0, 0.87)}.mdc-drawer .mdc-deprecated-list-group__subheader{color:rgba(0, 0, 0, 0.6)}.mdc-drawer .mdc-drawer__subtitle{color:rgba(0, 0, 0, 0.6)}.mdc-drawer .mdc-deprecated-list-item__graphic{color:rgba(0, 0, 0, 0.6)}.mdc-drawer .mdc-deprecated-list-item{color:rgba(0, 0, 0, 0.87)}.mdc-drawer .mdc-deprecated-list-item--activated .mdc-deprecated-list-item__graphic{color:#6200ee}.mdc-drawer .mdc-deprecated-list-item--activated{color:rgba(98, 0, 238, 0.87)}[dir=rtl] .mdc-drawer,.mdc-drawer[dir=rtl]{border-top-left-radius:0;border-top-left-radius:var(--mdc-shape-large, 0);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:0;border-bottom-left-radius:var(--mdc-shape-large, 0)}.mdc-drawer .mdc-deprecated-list-item{border-radius:4px;border-radius:var(--mdc-shape-small, 4px)}.mdc-drawer.mdc-drawer--open:not(.mdc-drawer--closing)+.mdc-drawer-app-content{margin-left:256px;margin-right:0}[dir=rtl] .mdc-drawer.mdc-drawer--open:not(.mdc-drawer--closing)+.mdc-drawer-app-content,.mdc-drawer.mdc-drawer--open:not(.mdc-drawer--closing)+.mdc-drawer-app-content[dir=rtl]{margin-left:0;margin-right:256px}[dir=rtl] .mdc-drawer,.mdc-drawer[dir=rtl]{border-right-width:0;border-left-width:1px;border-right-style:none;border-left-style:solid}.mdc-drawer .mdc-deprecated-list-item{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-subtitle2-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:0.875rem;font-size:var(--mdc-typography-subtitle2-font-size, 0.875rem);line-height:1.375rem;line-height:var(--mdc-typography-subtitle2-line-height, 1.375rem);font-weight:500;font-weight:var(--mdc-typography-subtitle2-font-weight, 500);letter-spacing:0.0071428571em;letter-spacing:var(--mdc-typography-subtitle2-letter-spacing, 0.0071428571em);text-decoration:inherit;text-decoration:var(--mdc-typography-subtitle2-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-subtitle2-text-transform, inherit);height:calc(48px - 2 * 4px);margin:8px 8px;padding:0 8px}.mdc-drawer .mdc-deprecated-list-item:nth-child(1){margin-top:2px}.mdc-drawer .mdc-deprecated-list-item:nth-last-child(1){margin-bottom:0}.mdc-drawer .mdc-deprecated-list-group__subheader{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-body2-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:0.875rem;font-size:var(--mdc-typography-body2-font-size, 0.875rem);line-height:1.25rem;line-height:var(--mdc-typography-body2-line-height, 1.25rem);font-weight:400;font-weight:var(--mdc-typography-body2-font-weight, 400);letter-spacing:0.0178571429em;letter-spacing:var(--mdc-typography-body2-letter-spacing, 0.0178571429em);text-decoration:inherit;text-decoration:var(--mdc-typography-body2-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-body2-text-transform, inherit);display:block;margin-top:0;line-height:normal;margin:0;padding:0 16px}.mdc-drawer .mdc-deprecated-list-group__subheader::before{display:inline-block;width:0;height:24px;content:"";vertical-align:0}.mdc-drawer .mdc-deprecated-list-divider{margin:3px 0 4px}.mdc-drawer .mdc-deprecated-list-item__text,.mdc-drawer .mdc-deprecated-list-item__graphic{pointer-events:none}.mdc-drawer--animate{transform:translateX(-100%)}[dir=rtl] .mdc-drawer--animate,.mdc-drawer--animate[dir=rtl]{transform:translateX(100%)}.mdc-drawer--opening{transform:translateX(0);transition-duration:250ms}[dir=rtl] .mdc-drawer--opening,.mdc-drawer--opening[dir=rtl]{transform:translateX(0)}.mdc-drawer--closing{transform:translateX(-100%);transition-duration:200ms}[dir=rtl] .mdc-drawer--closing,.mdc-drawer--closing[dir=rtl]{transform:translateX(100%)}.mdc-drawer__header{flex-shrink:0;box-sizing:border-box;min-height:64px;padding:0 16px 4px}.mdc-drawer__title{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-headline6-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:1.25rem;font-size:var(--mdc-typography-headline6-font-size, 1.25rem);line-height:2rem;line-height:var(--mdc-typography-headline6-line-height, 2rem);font-weight:500;font-weight:var(--mdc-typography-headline6-font-weight, 500);letter-spacing:0.0125em;letter-spacing:var(--mdc-typography-headline6-letter-spacing, 0.0125em);text-decoration:inherit;text-decoration:var(--mdc-typography-headline6-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-headline6-text-transform, inherit);display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-drawer__title::before{display:inline-block;width:0;height:36px;content:"";vertical-align:0}.mdc-drawer__title::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-drawer__subtitle{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-body2-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:0.875rem;font-size:var(--mdc-typography-body2-font-size, 0.875rem);line-height:1.25rem;line-height:var(--mdc-typography-body2-line-height, 1.25rem);font-weight:400;font-weight:var(--mdc-typography-body2-font-weight, 400);letter-spacing:0.0178571429em;letter-spacing:var(--mdc-typography-body2-letter-spacing, 0.0178571429em);text-decoration:inherit;text-decoration:var(--mdc-typography-body2-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-body2-text-transform, inherit);display:block;margin-top:0;line-height:normal;margin-bottom:0}.mdc-drawer__subtitle::before{display:inline-block;width:0;height:20px;content:"";vertical-align:0}.mdc-drawer__content{height:100%;overflow-y:auto;-webkit-overflow-scrolling:touch}.mdc-drawer--dismissible{left:0;right:initial;display:none;position:absolute}[dir=rtl] .mdc-drawer--dismissible,.mdc-drawer--dismissible[dir=rtl]{left:initial;right:0}.mdc-drawer--dismissible.mdc-drawer--open{display:flex}.mdc-drawer-app-content{margin-left:0;margin-right:0;position:relative}[dir=rtl] .mdc-drawer-app-content,.mdc-drawer-app-content[dir=rtl]{margin-left:0;margin-right:0}.mdc-drawer--modal{box-shadow:0px 8px 10px -5px rgba(0, 0, 0, 0.2),0px 16px 24px 2px rgba(0, 0, 0, 0.14),0px 6px 30px 5px rgba(0,0,0,.12);left:0;right:initial;display:none;position:fixed}.mdc-drawer--modal+.mdc-drawer-scrim{background-color:rgba(0, 0, 0, 0.32)}[dir=rtl] .mdc-drawer--modal,.mdc-drawer--modal[dir=rtl]{left:initial;right:0}.mdc-drawer--modal.mdc-drawer--open{display:flex}.mdc-drawer-scrim{display:none;position:fixed;top:0;left:0;width:100%;height:100%;z-index:5;transition-property:opacity;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1)}.mdc-drawer--open+.mdc-drawer-scrim{display:block}.mdc-drawer--animate+.mdc-drawer-scrim{opacity:0}.mdc-drawer--opening+.mdc-drawer-scrim{transition-duration:250ms;opacity:1}.mdc-drawer--closing+.mdc-drawer-scrim{transition-duration:200ms;opacity:0}.mdc-drawer-app-content{overflow:auto;flex:1}:host{display:flex;height:100%}.mdc-drawer{width:256px;width:var(--mdc-drawer-width, 256px)}.mdc-drawer.mdc-drawer--open:not(.mdc-drawer--closing)+.mdc-drawer-app-content{margin-left:256px;margin-left:var(--mdc-drawer-width, 256px);margin-right:0}[dir=rtl] .mdc-drawer.mdc-drawer--open:not(.mdc-drawer--closing)+.mdc-drawer-app-content,.mdc-drawer.mdc-drawer--open:not(.mdc-drawer--closing)+.mdc-drawer-app-content[dir=rtl]{margin-left:0;margin-right:256px;margin-right:var(--mdc-drawer-width, 256px)}`
/**
 * @license
 * Copyright 2018 Google LLC
 * SPDX-License-Identifier: Apache-2.0
 */;let KO=class extends WO{};KO.styles=[GO],KO=o([(e=>t=>"function"==typeof t?((e,t)=>(customElements.define(e,t),t))(e,t):((e,t)=>{const{kind:i,elements:o}=t;return{kind:i,elements:o,finisher(t){customElements.define(e,t)}}})(e,t))("mwc-drawer")],KO);let XO=class extends ti{constructor(){super(),this.active=!1,this.notifications=[]}static get styles(){return[bE,Se,Te,Pe,Ie,A`
        h3 {
          font-size: 16px;
          color: #242424;
          display: block;
          width: 100%;
          height: 25px;
          padding: 5px 15px;
          border-bottom: 1px solid #cccccc;
        }

        mwc-list {
          padding: 0;
          margin: 0;
        }
      `]}async _viewStateChanged(e){await this.updateComplete}render(){return ae`
      <div id="container">
        <h3>${qt("sidepanel.Notification")}</h3>
        <mwc-list>
          ${this.notifications.map((e=>ae`
              <mwc-list-item twoline>
                <span>${e.outerText}</span>
                <span slot="secondary">${e.getAttribute("created")}</span>
              </mwc-list-item>
              <li divider role="separator"></li>
            `))}
          ${0===this.notifications.length?ae`
                <div style="padding:15px 0;width:100%;text-align:center;">
                  ${qt("sidepanel.NoNotification")}
                </div>
              `:ae``}
        </mwc-list>
      </div>
    `}shouldUpdate(){return this.active}firstUpdated(){this.notifications=globalThis.lablupNotification.notifications,document.addEventListener("backend-ai-notification-changed",(()=>this.refresh()))}refresh(){this.notifications=globalThis.lablupNotification.notifications,this.requestUpdate()}};o([Zt({type:Boolean,reflect:!0})],XO.prototype,"active",void 0),o([Zt({type:Array})],XO.prototype,"notifications",void 0),XO=o([Xt("backend-ai-sidepanel-notification")],XO);let YO=class extends ti{constructor(){super(),this.active=!1,this.tasks=[]}static get styles(){return[bE,Se,Te,Pe,Ie,A`
        h3 {
          font-size: 16px;
          color: #242424;
          display: block;
          width: 100%;
          height: 25px;
          padding: 5px 15px;
          border-bottom: 1px solid #cccccc;
        }

        mwc-list {
          padding: 0;
          margin: 0;
        }

        mwc-list-item {
          height: 100%;
          margin-bottom: 10px;
        }

        .title {
          white-space: pre-wrap;
        }
      `]}async _viewStateChanged(e){await this.updateComplete}_taskIcon(e){switch(e){case"session":return"subject";case"database":return"dns";case"image":return"extension";case"commit":return"archive";default:return"widgets"}}render(){return ae`
      <div id="container">
        <h3>${qt("sidepanel.BackgroundTasks")}</h3>
        <mwc-list>
          ${this.tasks.map((e=>ae`
              <mwc-list-item graphic="icon" twoline>
                <mwc-icon
                  id="summary-menu-icon"
                  slot="graphic"
                  id="activities-icon"
                  class="fg black"
                >
                  ${this._taskIcon(e.tasktype)}
                </mwc-icon>
                <span class="title">${e.tasktitle}</span>
                <span slot="secondary">${qt("sidepanel.Running")}</span>
              </mwc-list-item>
              <li divider role="separator"></li>
            `))}
          ${0===this.tasks.length?ae`
                <div style="padding:15px 0;width:100%;text-align:center;">
                  ${qt("sidepanel.NoBackgroundTask")}
                </div>
              `:ae``}
        </mwc-list>
      </div>
    `}shouldUpdate(){return this.active}firstUpdated(){this.tasks=[],document.addEventListener("backend-ai-task-changed",(()=>this.refresh()))}refresh(){this.tasks=globalThis.tasker.taskstore,this.requestUpdate()}};o([Zt({type:Boolean,reflect:!0})],YO.prototype,"active",void 0),o([Zt({type:Array})],YO.prototype,"tasks",void 0),YO=o([Xt("backend-ai-sidepanel-task")],YO);let JO,ZO=class extends ke{constructor(){super(),this.edition="Open Source",this.license="Subscription",this.validUntil="",this.version="",this.managerVersion="",this.themeHandler=e=>{this.isDarkMode=e.detail},this.isDarkMode=globalThis.isDarkMode}connectedCallback(){super.connectedCallback(),document.addEventListener("change:backendaiwebui.setting.isDarkMode",this.themeHandler)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("change:backendaiwebui.setting.isDarkMode",this.themeHandler)}static get styles(){return[A`
        :host > *,
        html {
          font-family: var(--token-fontFamily);
        }

        a,
        a:visited {
          color: var(--token-colorLink, #222222);
        }

        a:hover {
          color: var(--token-colorLinkHover, #3e872d);
        }

        #splash-panel {
          --component-width: 350px;
          --component-height: 320px;
        }

        .splash-header {
          height: 50px;
          width: 280px;
          background-size: contain;
          background-repeat: no-repeat;
          background-position: left top;
        }

        ul {
          list-style-type: none;
          padding-left: 20px;
        }

        .splash-information .detail {
          font-weight: 400;
          font-size: 13px;
        }
        .copyright {
          font-size: 12px;
        }

        .release-note {
          font-size: 12px;
        }
      `]}show(){this.edition=globalThis.packageEdition,this.validUntil=globalThis.packageValidUntil,this.version=globalThis.packageVersion,this.managerVersion=globalThis.backendaiclient.managerVersion,"Open Source"!==this.edition?"2099-12-31"===globalThis.packageValidUntil||'""'===this.validUntil||""==this.validUntil?this.license=Ye("license.Perpetual"):this.license=Ye("license.Subscription"):this.license=Ye("license.OpenSource"),this.dialog.show()}hide(){this.dialog.hide()}render(){return ae`
      <backend-ai-dialog id="splash-panel" fixed backdrop blockscrolling persistent narrowLayout hideActions>
        <div class="splash-header" slot="title"
          style="background-image:url(${this.isDarkMode?"manifest/backend.ai-text-bgdark.svg":"manifest/backend.ai-text.svg"});"
        >
        </div>
        <div class="splash-information" slot="content">
          <ul>
            <li>Backend.AI Web UI <span id="version-detail" class="detail">${globalThis.packageVersion}</span></li>
            <li><span id="license-detail">${this.edition} Edition</span></li>
            <li><span id="valid-until" class="detail">
              ${"Subscription"===this.license?ae`
                      Subscription is active until ${this.validUntil}
                    `:ae``}
              ${"Perpetual"===this.license?ae`
                      Perpetual License
                    `:ae``}
              </span></li>
            <li style="margin-top:15px;"><span id="mode-detail" class="detail">Backend.AI Cluster</span> <span id="manager-build-detail" class="detail">${this.managerVersion}</span></li>
            <li><span id="mode-detail" class="detail">${globalThis.isElectron?"App":"WebServer"}</span> <span id="build-detail" class="detail">Build ${globalThis.buildVersion}</span></li>
          </ul>
          <ul>
            <li>Powered by <a target="_blank" href="https://github.com/lablup/backend.ai/blob/main/LICENSE">open-source software</a></li>
            <li class="copyright">Copyright &copy; 2015-2024 Lablup Inc.</li>
            <li class="release-note">
              <a target="_blank" href="https://github.com/lablup/backend.ai-webui/releases/tag/v${this.version}">Release Note</a>
              <a target="_blank" href="https://github.com/lablup/backend.ai-webui/blob/main/LICENSE">License</a>
            </li>
            </ul>
          </ul>
        </div>
      </backend-ai-dialog>
    `}};o([Zt({type:String})],ZO.prototype,"edition",void 0),o([Zt({type:String})],ZO.prototype,"license",void 0),o([Zt({type:String})],ZO.prototype,"validUntil",void 0),o([Zt({type:String})],ZO.prototype,"version",void 0),o([Zt({type:String})],ZO.prototype,"managerVersion",void 0),o([ei("backend-ai-dialog")],ZO.prototype,"dialog",void 0),o([Zt({type:Boolean})],ZO.prototype,"isDarkMode",void 0),ZO=o([Xt("backend-ai-splash")],ZO);const QO=new Uint8Array(16);function eR(){if(!JO&&(JO="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!JO))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return JO(QO)}const tR=[];for(let e=0;e<256;++e)tR.push((e+256).toString(16).slice(1));var iR={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function oR(e,t,i){if(iR.randomUUID&&!t&&!e)return iR.randomUUID();const o=(e=e||{}).random||(e.rng||eR)();return o[6]=15&o[6]|64,o[8]=63&o[8]|128,function(e,t=0){return tR[e[t+0]]+tR[e[t+1]]+tR[e[t+2]]+tR[e[t+3]]+"-"+tR[e[t+4]]+tR[e[t+5]]+"-"+tR[e[t+6]]+tR[e[t+7]]+"-"+tR[e[t+8]]+tR[e[t+9]]+"-"+tR[e[t+10]]+tR[e[t+11]]+tR[e[t+12]]+tR[e[t+13]]+tR[e[t+14]]+tR[e[t+15]]}(o)}class sR{constructor(e,t,i,o){this.tasktitle=e,this.taskid=i,this.taskobj=t,this.tasktype=o,this.created_at=Date.now(),this.finished_at=0,this.status="active"}remove(){delete this.taskobj}}let nR=class extends ke{constructor(){super(),this.active=!1,this.isGCworking=!1,this.taskstore=[],this.finished=[],this.indicator=globalThis.lablupIndicator,this.pooler=setInterval((()=>{this.gc()}),1e4)}static get styles(){return[A``]}render(){return ae``}shouldUpdate(){return this.active}connectedCallback(){super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback()}add(e,t,i="",o="general",s="remove-immediately",n="",r="",a){const l="task:"+(i||oR()),d=new sR(e,t,l,o),c=new CustomEvent("add-bai-notification",{detail:{key:l,open:!a,message:e,description:n,backgroundTask:{status:"pending",statusDescriptions:{pending:n,resolved:r}},duration:0}});return document.dispatchEvent(c),null==t||"function"!=typeof t.then&&"function"!==t||t.then((e=>{const t=new CustomEvent("add-bai-notification",{detail:{key:l,backgroundTask:{status:"resolved"},duration:1}});document.dispatchEvent(t)})).catch((e=>{const t=new CustomEvent("add-bai-notification",{detail:{key:l,backgroundTask:{status:"rejected"},duration:1}});document.dispatchEvent(t)})),d}remove(e=""){const t=this.taskstore.filter((t=>t.taskid===e));if(t.length>0){let i=this.taskstore.indexOf(t[0]);i>-1&&(t[0].remove(),this.taskstore.splice(i,1)),delete t[0],i=this.finished.indexOf(e),i>-1&&this.finished.splice(i,1),this.signal()}}list(){return this.taskstore}generate_UUID(){let e=(new Date).getTime();const t="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(t=>{const i=(e+16*Math.random())%16|0;return e=Math.floor(e/16),("x"==t?i:3&i|8).toString(16)}));return t}async gc(){this.isGCworking||(this.isGCworking=!0,this.finished.length>0&&this.finished.forEach((e=>{this.remove(e)})),this.isGCworking=!1)}signal(){const e=new CustomEvent("backend-ai-task-changed",{detail:{tasks:this.taskstore}});document.dispatchEvent(e)}};o([Zt({type:Object})],nR.prototype,"indicator",void 0),o([Zt({type:Array})],nR.prototype,"taskstore",void 0),o([Zt({type:Array})],nR.prototype,"finished",void 0),o([Zt({type:Object})],nR.prototype,"pooler",void 0),o([Zt({type:Boolean,reflect:!0})],nR.prototype,"active",void 0),o([Zt({type:Boolean})],nR.prototype,"isGCworking",void 0),nR=o([Xt("backend-ai-tasker")],nR);var rR=nR;
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */const aR=(e,t)=>"method"===t.kind&&t.descriptor&&!("value"in t.descriptor)?{...t,finisher(i){i.createProperty(t.key,e)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:t.key,initializer(){"function"==typeof t.initializer&&(this[t.key]=t.initializer.call(this))},finisher(i){i.createProperty(t.key,e)}};
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */function lR(e){return(t,i)=>void 0!==i?((e,t,i)=>{t.constructor.createProperty(i,e)})(e,t,i):aR(e,t)
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */}
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */
function dR(e,t){return(({finisher:e,descriptor:t})=>(i,o)=>{var s;if(void 0===o){const o=null!==(s=i.originalKey)&&void 0!==s?s:i.key,n=null!=t?{kind:"method",placement:"prototype",key:o,descriptor:t(i.key)}:{...i,key:o};return null!=e&&(n.finisher=function(t){e(t,o)}),n}{const s=i.constructor;void 0!==t&&Object.defineProperty(i,o,t(o)),null==e||e(s,o)}})({descriptor:t=>{const i={get(){var t,i;return null!==(i=null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector(e))&&void 0!==i?i:null},enumerable:!0,configurable:!0};return i}})}
/**
 * @license
 * Copyright 2021 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */var cR;null===(cR=window.HTMLSlotElement)||void 0===cR||cR.prototype.assignedElements;
/**
 * @license
 * Copyright 2018 Google Inc.
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 * THE SOFTWARE.
 */
var hR={CLOSING:"mdc-snackbar--closing",OPEN:"mdc-snackbar--open",OPENING:"mdc-snackbar--opening"},pR={ACTION_SELECTOR:".mdc-snackbar__action",ARIA_LIVE_LABEL_TEXT_ATTR:"data-mdc-snackbar-label-text",CLOSED_EVENT:"MDCSnackbar:closed",CLOSING_EVENT:"MDCSnackbar:closing",DISMISS_SELECTOR:".mdc-snackbar__dismiss",LABEL_SELECTOR:".mdc-snackbar__label",OPENED_EVENT:"MDCSnackbar:opened",OPENING_EVENT:"MDCSnackbar:opening",REASON_ACTION:"action",REASON_DISMISS:"dismiss",SURFACE_SELECTOR:".mdc-snackbar__surface"},uR={DEFAULT_AUTO_DISMISS_TIMEOUT_MS:5e3,INDETERMINATE:-1,MAX_AUTO_DISMISS_TIMEOUT_MS:1e4,MIN_AUTO_DISMISS_TIMEOUT_MS:4e3,SNACKBAR_ANIMATION_CLOSE_TIME_MS:75,SNACKBAR_ANIMATION_OPEN_TIME_MS:150,ARIA_LIVE_DELAY_MS:1e3},mR=hR.OPENING,gR=hR.OPEN,fR=hR.CLOSING,_R=pR.REASON_ACTION,vR=pR.REASON_DISMISS,bR=function(e){function o(t){var s=e.call(this,i(i({},o.defaultAdapter),t))||this;return s.opened=!1,s.animationFrame=0,s.animationTimer=0,s.autoDismissTimer=0,s.autoDismissTimeoutMs=uR.DEFAULT_AUTO_DISMISS_TIMEOUT_MS,s.closeOnEscape=!0,s}return t(o,e),Object.defineProperty(o,"cssClasses",{get:function(){return hR},enumerable:!1,configurable:!0}),Object.defineProperty(o,"strings",{get:function(){return pR},enumerable:!1,configurable:!0}),Object.defineProperty(o,"numbers",{get:function(){return uR},enumerable:!1,configurable:!0}),Object.defineProperty(o,"defaultAdapter",{get:function(){return{addClass:function(){},announce:function(){},notifyClosed:function(){},notifyClosing:function(){},notifyOpened:function(){},notifyOpening:function(){},removeClass:function(){}}},enumerable:!1,configurable:!0}),o.prototype.destroy=function(){this.clearAutoDismissTimer(),cancelAnimationFrame(this.animationFrame),this.animationFrame=0,clearTimeout(this.animationTimer),this.animationTimer=0,this.adapter.removeClass(mR),this.adapter.removeClass(gR),this.adapter.removeClass(fR)},o.prototype.open=function(){var e=this;this.clearAutoDismissTimer(),this.opened=!0,this.adapter.notifyOpening(),this.adapter.removeClass(fR),this.adapter.addClass(mR),this.adapter.announce(),this.runNextAnimationFrame((function(){e.adapter.addClass(gR),e.animationTimer=setTimeout((function(){var t=e.getTimeoutMs();e.handleAnimationTimerEnd(),e.adapter.notifyOpened(),t!==uR.INDETERMINATE&&(e.autoDismissTimer=setTimeout((function(){e.close(vR)}),t))}),uR.SNACKBAR_ANIMATION_OPEN_TIME_MS)}))},o.prototype.close=function(e){var t=this;void 0===e&&(e=""),this.opened&&(cancelAnimationFrame(this.animationFrame),this.animationFrame=0,this.clearAutoDismissTimer(),this.opened=!1,this.adapter.notifyClosing(e),this.adapter.addClass(hR.CLOSING),this.adapter.removeClass(hR.OPEN),this.adapter.removeClass(hR.OPENING),clearTimeout(this.animationTimer),this.animationTimer=setTimeout((function(){t.handleAnimationTimerEnd(),t.adapter.notifyClosed(e)}),uR.SNACKBAR_ANIMATION_CLOSE_TIME_MS))},o.prototype.isOpen=function(){return this.opened},o.prototype.getTimeoutMs=function(){return this.autoDismissTimeoutMs},o.prototype.setTimeoutMs=function(e){var t=uR.MIN_AUTO_DISMISS_TIMEOUT_MS,i=uR.MAX_AUTO_DISMISS_TIMEOUT_MS;if(!(e===uR.INDETERMINATE||e<=i&&e>=t))throw new Error("\n        timeoutMs must be an integer in the range "+t+"–"+i+"\n        (or "+uR.INDETERMINATE+" to disable), but got '"+e+"'");this.autoDismissTimeoutMs=e},o.prototype.getCloseOnEscape=function(){return this.closeOnEscape},o.prototype.setCloseOnEscape=function(e){this.closeOnEscape=e},o.prototype.handleKeyDown=function(e){("Escape"===e.key||27===e.keyCode)&&this.getCloseOnEscape()&&this.close(vR)},o.prototype.handleActionButtonClick=function(e){this.close(_R)},o.prototype.handleActionIconClick=function(e){this.close(vR)},o.prototype.clearAutoDismissTimer=function(){clearTimeout(this.autoDismissTimer),this.autoDismissTimer=0},o.prototype.handleAnimationTimerEnd=function(){this.animationTimer=0,this.adapter.removeClass(hR.OPENING),this.adapter.removeClass(hR.CLOSING)},o.prototype.runNextAnimationFrame=function(e){var t=this;cancelAnimationFrame(this.animationFrame),this.animationFrame=requestAnimationFrame((function(){t.animationFrame=0,clearTimeout(t.animationTimer),t.animationTimer=setTimeout(e,0)}))},o}(xo);
/**
 * @license
 * Copyright 2019 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */
const yR=window,xR=yR.ShadowRoot&&(void 0===yR.ShadyCSS||yR.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,wR=Symbol(),$R=new WeakMap;let AR=class{constructor(e,t,i){if(this._$cssResult$=!0,i!==wR)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o;const t=this.t;if(xR&&void 0===e){const i=void 0!==t&&1===t.length;i&&(e=$R.get(t)),void 0===e&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),i&&$R.set(t,e))}return e}toString(){return this.cssText}};const kR=xR?e=>e:e=>e instanceof CSSStyleSheet?(e=>{let t="";for(const i of e.cssRules)t+=i.cssText;return(e=>new AR("string"==typeof e?e:e+"",void 0,wR))(t)})(e):e
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */;var ER;const SR=window,CR=SR.trustedTypes,TR=CR?CR.emptyScript:"",PR=SR.reactiveElementPolyfillSupport,IR={toAttribute(e,t){switch(t){case Boolean:e=e?TR:null;break;case Object:case Array:e=null==e?e:JSON.stringify(e)}return e},fromAttribute(e,t){let i=e;switch(t){case Boolean:i=null!==e;break;case Number:i=null===e?null:Number(e);break;case Object:case Array:try{i=JSON.parse(e)}catch(e){i=null}}return i}},OR=(e,t)=>t!==e&&(t==t||e==e),RR={attribute:!0,type:String,converter:IR,reflect:!1,hasChanged:OR},NR="finalized";let LR=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this._$Eu()}static addInitializer(e){var t;this.finalize(),(null!==(t=this.h)&&void 0!==t?t:this.h=[]).push(e)}static get observedAttributes(){this.finalize();const e=[];return this.elementProperties.forEach(((t,i)=>{const o=this._$Ep(i,t);void 0!==o&&(this._$Ev.set(o,i),e.push(o))})),e}static createProperty(e,t=RR){if(t.state&&(t.attribute=!1),this.finalize(),this.elementProperties.set(e,t),!t.noAccessor&&!this.prototype.hasOwnProperty(e)){const i="symbol"==typeof e?Symbol():"__"+e,o=this.getPropertyDescriptor(e,i,t);void 0!==o&&Object.defineProperty(this.prototype,e,o)}}static getPropertyDescriptor(e,t,i){return{get(){return this[t]},set(o){const s=this[e];this[t]=o,this.requestUpdate(e,s,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)||RR}static finalize(){if(this.hasOwnProperty(NR))return!1;this[NR]=!0;const e=Object.getPrototypeOf(this);if(e.finalize(),void 0!==e.h&&(this.h=[...e.h]),this.elementProperties=new Map(e.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const e=this.properties,t=[...Object.getOwnPropertyNames(e),...Object.getOwnPropertySymbols(e)];for(const i of t)this.createProperty(i,e[i])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(e){const t=[];if(Array.isArray(e)){const i=new Set(e.flat(1/0).reverse());for(const e of i)t.unshift(kR(e))}else void 0!==e&&t.push(kR(e));return t}static _$Ep(e,t){const i=t.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof e?e.toLowerCase():void 0}_$Eu(){var e;this._$E_=new Promise((e=>this.enableUpdating=e)),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(e=this.constructor.h)||void 0===e||e.forEach((e=>e(this)))}addController(e){var t,i;(null!==(t=this._$ES)&&void 0!==t?t:this._$ES=[]).push(e),void 0!==this.renderRoot&&this.isConnected&&(null===(i=e.hostConnected)||void 0===i||i.call(e))}removeController(e){var t;null===(t=this._$ES)||void 0===t||t.splice(this._$ES.indexOf(e)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach(((e,t)=>{this.hasOwnProperty(t)&&(this._$Ei.set(t,this[t]),delete this[t])}))}createRenderRoot(){var e;const t=null!==(e=this.shadowRoot)&&void 0!==e?e:this.attachShadow(this.constructor.shadowRootOptions);return((e,t)=>{xR?e.adoptedStyleSheets=t.map((e=>e instanceof CSSStyleSheet?e:e.styleSheet)):t.forEach((t=>{const i=document.createElement("style"),o=yR.litNonce;void 0!==o&&i.setAttribute("nonce",o),i.textContent=t.cssText,e.appendChild(i)}))})(t,this.constructor.elementStyles),t}connectedCallback(){var e;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(e=this._$ES)||void 0===e||e.forEach((e=>{var t;return null===(t=e.hostConnected)||void 0===t?void 0:t.call(e)}))}enableUpdating(e){}disconnectedCallback(){var e;null===(e=this._$ES)||void 0===e||e.forEach((e=>{var t;return null===(t=e.hostDisconnected)||void 0===t?void 0:t.call(e)}))}attributeChangedCallback(e,t,i){this._$AK(e,i)}_$EO(e,t,i=RR){var o;const s=this.constructor._$Ep(e,i);if(void 0!==s&&!0===i.reflect){const n=(void 0!==(null===(o=i.converter)||void 0===o?void 0:o.toAttribute)?i.converter:IR).toAttribute(t,i.type);this._$El=e,null==n?this.removeAttribute(s):this.setAttribute(s,n),this._$El=null}}_$AK(e,t){var i;const o=this.constructor,s=o._$Ev.get(e);if(void 0!==s&&this._$El!==s){const e=o.getPropertyOptions(s),n="function"==typeof e.converter?{fromAttribute:e.converter}:void 0!==(null===(i=e.converter)||void 0===i?void 0:i.fromAttribute)?e.converter:IR;this._$El=s,this[s]=n.fromAttribute(t,e.type),this._$El=null}}requestUpdate(e,t,i){let o=!0;void 0!==e&&(((i=i||this.constructor.getPropertyOptions(e)).hasChanged||OR)(this[e],t)?(this._$AL.has(e)||this._$AL.set(e,t),!0===i.reflect&&this._$El!==e&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(e,i))):o=!1),!this.isUpdatePending&&o&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(e){Promise.reject(e)}const e=this.scheduleUpdate();return null!=e&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var e;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach(((e,t)=>this[t]=e)),this._$Ei=void 0);let t=!1;const i=this._$AL;try{t=this.shouldUpdate(i),t?(this.willUpdate(i),null===(e=this._$ES)||void 0===e||e.forEach((e=>{var t;return null===(t=e.hostUpdate)||void 0===t?void 0:t.call(e)})),this.update(i)):this._$Ek()}catch(e){throw t=!1,this._$Ek(),e}t&&this._$AE(i)}willUpdate(e){}_$AE(e){var t;null===(t=this._$ES)||void 0===t||t.forEach((e=>{var t;return null===(t=e.hostUpdated)||void 0===t?void 0:t.call(e)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(e){return!0}update(e){void 0!==this._$EC&&(this._$EC.forEach(((e,t)=>this._$EO(t,this[t],e))),this._$EC=void 0),this._$Ek()}updated(e){}firstUpdated(e){}};
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */
var MR;LR[NR]=!0,LR.elementProperties=new Map,LR.elementStyles=[],LR.shadowRootOptions={mode:"open"},null==PR||PR({ReactiveElement:LR}),(null!==(ER=SR.reactiveElementVersions)&&void 0!==ER?ER:SR.reactiveElementVersions=[]).push("1.6.3");const UR=window,HR=UR.trustedTypes,DR=HR?HR.createPolicy("lit-html",{createHTML:e=>e}):void 0,zR="$lit$",BR=`lit$${(Math.random()+"").slice(9)}$`,FR="?"+BR,jR=`<${FR}>`,VR=document,qR=()=>VR.createComment(""),WR=e=>null===e||"object"!=typeof e&&"function"!=typeof e,GR=Array.isArray,KR="[ \t\n\f\r]",XR=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,YR=/-->/g,JR=/>/g,ZR=RegExp(`>|${KR}(?:([^\\s"'>=/]+)(${KR}*=${KR}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),QR=/'/g,eN=/"/g,tN=/^(?:script|style|textarea|title)$/i,iN=(e=>(t,...i)=>({_$litType$:e,strings:t,values:i}))(1),oN=Symbol.for("lit-noChange"),sN=Symbol.for("lit-nothing"),nN=new WeakMap,rN=VR.createTreeWalker(VR,129,null,!1);function aN(e,t){if(!Array.isArray(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==DR?DR.createHTML(t):t}let lN=class e{constructor({strings:t,_$litType$:i},o){let s;this.parts=[];let n=0,r=0;const a=t.length-1,l=this.parts,[d,c]=((e,t)=>{const i=e.length-1,o=[];let s,n=2===t?"<svg>":"",r=XR;for(let t=0;t<i;t++){const i=e[t];let a,l,d=-1,c=0;for(;c<i.length&&(r.lastIndex=c,l=r.exec(i),null!==l);)c=r.lastIndex,r===XR?"!--"===l[1]?r=YR:void 0!==l[1]?r=JR:void 0!==l[2]?(tN.test(l[2])&&(s=RegExp("</"+l[2],"g")),r=ZR):void 0!==l[3]&&(r=ZR):r===ZR?">"===l[0]?(r=null!=s?s:XR,d=-1):void 0===l[1]?d=-2:(d=r.lastIndex-l[2].length,a=l[1],r=void 0===l[3]?ZR:'"'===l[3]?eN:QR):r===eN||r===QR?r=ZR:r===YR||r===JR?r=XR:(r=ZR,s=void 0);const h=r===ZR&&e[t+1].startsWith("/>")?" ":"";n+=r===XR?i+jR:d>=0?(o.push(a),i.slice(0,d)+zR+i.slice(d)+BR+h):i+BR+(-2===d?(o.push(void 0),t):h)}return[aN(e,n+(e[i]||"<?>")+(2===t?"</svg>":"")),o]})(t,i);if(this.el=e.createElement(d,o),rN.currentNode=this.el.content,2===i){const e=this.el.content,t=e.firstChild;t.remove(),e.append(...t.childNodes)}for(;null!==(s=rN.nextNode())&&l.length<a;){if(1===s.nodeType){if(s.hasAttributes()){const e=[];for(const t of s.getAttributeNames())if(t.endsWith(zR)||t.startsWith(BR)){const i=c[r++];if(e.push(t),void 0!==i){const e=s.getAttribute(i.toLowerCase()+zR).split(BR),t=/([.?@])?(.*)/.exec(i);l.push({type:1,index:n,name:t[2],strings:e,ctor:"."===t[1]?uN:"?"===t[1]?gN:"@"===t[1]?fN:pN})}else l.push({type:6,index:n})}for(const t of e)s.removeAttribute(t)}if(tN.test(s.tagName)){const e=s.textContent.split(BR),t=e.length-1;if(t>0){s.textContent=HR?HR.emptyScript:"";for(let i=0;i<t;i++)s.append(e[i],qR()),rN.nextNode(),l.push({type:2,index:++n});s.append(e[t],qR())}}}else if(8===s.nodeType)if(s.data===FR)l.push({type:2,index:n});else{let e=-1;for(;-1!==(e=s.data.indexOf(BR,e+1));)l.push({type:7,index:n}),e+=BR.length-1}n++}}static createElement(e,t){const i=VR.createElement("template");return i.innerHTML=e,i}};function dN(e,t,i=e,o){var s,n,r,a;if(t===oN)return t;let l=void 0!==o?null===(s=i._$Co)||void 0===s?void 0:s[o]:i._$Cl;const d=WR(t)?void 0:t._$litDirective$;return(null==l?void 0:l.constructor)!==d&&(null===(n=null==l?void 0:l._$AO)||void 0===n||n.call(l,!1),void 0===d?l=void 0:(l=new d(e),l._$AT(e,i,o)),void 0!==o?(null!==(r=(a=i)._$Co)&&void 0!==r?r:a._$Co=[])[o]=l:i._$Cl=l),void 0!==l&&(t=dN(e,l._$AS(e,t.values),l,o)),t}let cN=class{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){var t;const{el:{content:i},parts:o}=this._$AD,s=(null!==(t=null==e?void 0:e.creationScope)&&void 0!==t?t:VR).importNode(i,!0);rN.currentNode=s;let n=rN.nextNode(),r=0,a=0,l=o[0];for(;void 0!==l;){if(r===l.index){let t;2===l.type?t=new hN(n,n.nextSibling,this,e):1===l.type?t=new l.ctor(n,l.name,l.strings,this,e):6===l.type&&(t=new _N(n,this,e)),this._$AV.push(t),l=o[++a]}r!==(null==l?void 0:l.index)&&(n=rN.nextNode(),r++)}return rN.currentNode=VR,s}v(e){let t=0;for(const i of this._$AV)void 0!==i&&(void 0!==i.strings?(i._$AI(e,i,t),t+=i.strings.length-2):i._$AI(e[t])),t++}},hN=class e{constructor(e,t,i,o){var s;this.type=2,this._$AH=sN,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=i,this.options=o,this._$Cp=null===(s=null==o?void 0:o.isConnected)||void 0===s||s}get _$AU(){var e,t;return null!==(t=null===(e=this._$AM)||void 0===e?void 0:e._$AU)&&void 0!==t?t:this._$Cp}get parentNode(){let e=this._$AA.parentNode;const t=this._$AM;return void 0!==t&&11===(null==e?void 0:e.nodeType)&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=dN(this,e,t),WR(e)?e===sN||null==e||""===e?(this._$AH!==sN&&this._$AR(),this._$AH=sN):e!==this._$AH&&e!==oN&&this._(e):void 0!==e._$litType$?this.g(e):void 0!==e.nodeType?this.$(e):(e=>GR(e)||"function"==typeof(null==e?void 0:e[Symbol.iterator]))(e)?this.T(e):this._(e)}k(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}$(e){this._$AH!==e&&(this._$AR(),this._$AH=this.k(e))}_(e){this._$AH!==sN&&WR(this._$AH)?this._$AA.nextSibling.data=e:this.$(VR.createTextNode(e)),this._$AH=e}g(e){var t;const{values:i,_$litType$:o}=e,s="number"==typeof o?this._$AC(e):(void 0===o.el&&(o.el=lN.createElement(aN(o.h,o.h[0]),this.options)),o);if((null===(t=this._$AH)||void 0===t?void 0:t._$AD)===s)this._$AH.v(i);else{const e=new cN(s,this),t=e.u(this.options);e.v(i),this.$(t),this._$AH=e}}_$AC(e){let t=nN.get(e.strings);return void 0===t&&nN.set(e.strings,t=new lN(e)),t}T(t){GR(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let o,s=0;for(const n of t)s===i.length?i.push(o=new e(this.k(qR()),this.k(qR()),this,this.options)):o=i[s],o._$AI(n),s++;s<i.length&&(this._$AR(o&&o._$AB.nextSibling,s),i.length=s)}_$AR(e=this._$AA.nextSibling,t){var i;for(null===(i=this._$AP)||void 0===i||i.call(this,!1,!0,t);e&&e!==this._$AB;){const t=e.nextSibling;e.remove(),e=t}}setConnected(e){var t;void 0===this._$AM&&(this._$Cp=e,null===(t=this._$AP)||void 0===t||t.call(this,e))}},pN=class{constructor(e,t,i,o,s){this.type=1,this._$AH=sN,this._$AN=void 0,this.element=e,this.name=t,this._$AM=o,this.options=s,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=sN}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(e,t=this,i,o){const s=this.strings;let n=!1;if(void 0===s)e=dN(this,e,t,0),n=!WR(e)||e!==this._$AH&&e!==oN,n&&(this._$AH=e);else{const o=e;let r,a;for(e=s[0],r=0;r<s.length-1;r++)a=dN(this,o[i+r],t,r),a===oN&&(a=this._$AH[r]),n||(n=!WR(a)||a!==this._$AH[r]),a===sN?e=sN:e!==sN&&(e+=(null!=a?a:"")+s[r+1]),this._$AH[r]=a}n&&!o&&this.j(e)}j(e){e===sN?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=e?e:"")}},uN=class extends pN{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===sN?void 0:e}};const mN=HR?HR.emptyScript:"";let gN=class extends pN{constructor(){super(...arguments),this.type=4}j(e){e&&e!==sN?this.element.setAttribute(this.name,mN):this.element.removeAttribute(this.name)}},fN=class extends pN{constructor(e,t,i,o,s){super(e,t,i,o,s),this.type=5}_$AI(e,t=this){var i;if((e=null!==(i=dN(this,e,t,0))&&void 0!==i?i:sN)===oN)return;const o=this._$AH,s=e===sN&&o!==sN||e.capture!==o.capture||e.once!==o.once||e.passive!==o.passive,n=e!==sN&&(o===sN||s);s&&this.element.removeEventListener(this.name,this,o),n&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var t,i;"function"==typeof this._$AH?this._$AH.call(null!==(i=null===(t=this.options)||void 0===t?void 0:t.host)&&void 0!==i?i:this.element,e):this._$AH.handleEvent(e)}},_N=class{constructor(e,t,i){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(e){dN(this,e)}};const vN=UR.litHtmlPolyfillSupport;null==vN||vN(lN,hN),(null!==(MR=UR.litHtmlVersions)&&void 0!==MR?MR:UR.litHtmlVersions=[]).push("2.8.0");const bN=(e,t,i)=>{var o,s;const n=null!==(o=null==i?void 0:i.renderBefore)&&void 0!==o?o:t;let r=n._$litPart$;if(void 0===r){const e=null!==(s=null==i?void 0:i.renderBefore)&&void 0!==s?s:null;n._$litPart$=r=new hN(t.insertBefore(qR(),e),e,void 0,null!=i?i:{})}return r._$AI(e),r
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */};var yN,xN;let wN=class extends LR{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e,t;const i=super.createRenderRoot();return null!==(e=(t=this.renderOptions).renderBefore)&&void 0!==e||(t.renderBefore=i.firstChild),i}update(e){const t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=bN(t,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),null===(e=this._$Do)||void 0===e||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),null===(e=this._$Do)||void 0===e||e.setConnected(!1)}render(){return oN}};wN.finalized=!0,wN._$litElement$=!0,null===(yN=globalThis.litElementHydrateSupport)||void 0===yN||yN.call(globalThis,{LitElement:wN});const $N=globalThis.litElementPolyfillSupport;null==$N||$N({LitElement:wN}),(null!==(xN=globalThis.litElementVersions)&&void 0!==xN?xN:globalThis.litElementVersions=[]).push("3.3.3");
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */
const AN=1,kN=2,EN=e=>(...t)=>({_$litDirective$:e,values:t});let SN=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,i){this._$Ct=e,this._$AM=t,this._$Ci=i}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}};
/**
 * @license
 * Copyright 2018 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */const CN=EN(class extends SN{constructor(e){var t;if(super(e),e.type!==AN||"class"!==e.name||(null===(t=e.strings)||void 0===t?void 0:t.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(e){return" "+Object.keys(e).filter((t=>e[t])).join(" ")+" "}update(e,[t]){var i,o;if(void 0===this.it){this.it=new Set,void 0!==e.strings&&(this.nt=new Set(e.strings.join(" ").split(/\s/).filter((e=>""!==e))));for(const e in t)t[e]&&!(null===(i=this.nt)||void 0===i?void 0:i.has(e))&&this.it.add(e);return this.render(t)}const s=e.element.classList;this.it.forEach((e=>{e in t||(s.remove(e),this.it.delete(e))}));for(const e in t){const i=!!t[e];i===this.it.has(e)||(null===(o=this.nt)||void 0===o?void 0:o.has(e))||(i?(s.add(e),this.it.add(e)):(s.remove(e),this.it.delete(e)))}return oN}}),TN=(e,t)=>{var i,o;const s=e._$AN;if(void 0===s)return!1;for(const e of s)null===(o=(i=e)._$AO)||void 0===o||o.call(i,t,!1),TN(e,t);return!0},PN=e=>{let t,i;do{if(void 0===(t=e._$AM))break;i=t._$AN,i.delete(e),e=t}while(0===(null==i?void 0:i.size))},IN=e=>{for(let t;t=e._$AM;e=t){let i=t._$AN;if(void 0===i)t._$AN=i=new Set;else if(i.has(e))break;i.add(e),NN(t)}};
/**
 * @license
 * Copyright 2020 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */function ON(e){void 0!==this._$AN?(PN(this),this._$AM=e,IN(this)):this._$AM=e}function RN(e,t=!1,i=0){const o=this._$AH,s=this._$AN;if(void 0!==s&&0!==s.size)if(t)if(Array.isArray(o))for(let e=i;e<o.length;e++)TN(o[e],!1),PN(o[e]);else null!=o&&(TN(o,!1),PN(o));else TN(this,e)}const NN=e=>{var t,i,o,s;e.type==kN&&(null!==(t=(o=e)._$AP)&&void 0!==t||(o._$AP=RN),null!==(i=(s=e)._$AQ)&&void 0!==i||(s._$AQ=ON))};let LN=class extends SN{constructor(){super(...arguments),this._$AN=void 0}_$AT(e,t,i){super._$AT(e,t,i),IN(this),this.isConnected=e._$AU}_$AO(e,t=!0){var i,o;e!==this.isConnected&&(this.isConnected=e,e?null===(i=this.reconnected)||void 0===i||i.call(this):null===(o=this.disconnected)||void 0===o||o.call(this)),t&&(TN(this,e),PN(this))}setValue(e){if((e=>void 0===e.strings)
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */(this._$Ct))this._$Ct._$AI(e,this);else{const t=[...this._$Ct._$AH];t[this._$Ci]=e,this._$Ct._$AI(t,this,0)}}disconnected(){}reconnected(){}};
/**
 * @license
 * Copyright 2019 Google LLC
 * SPDX-License-Identifier: Apache-2.0
 */const{ARIA_LIVE_DELAY_MS:MN}=bR.numbers;const UN=EN(class extends LN{constructor(e){if(super(e),this.labelEl=null,this.timerId=null,this.previousPart=null,e.type!==kN)throw new Error("AccessibleSnackbarLabel only supports child parts.")}update(e,[t,i]){var o;if(!i)return;if(null===this.labelEl){const i=document.createElement("div"),s=iN`<div class="mdc-snackbar__label" role="status" aria-live="polite"></div>`;bN(s,i);const n=i.firstElementChild;return n.textContent=t,null===(o=e.endNode)||void 0===o||o.parentNode.insertBefore(n,e.endNode),this.labelEl=n,n}const s=this.labelEl;s.setAttribute("aria-live","off"),s.textContent="";const n=document.createElement("span");return n.style.display="inline-block",n.style.width="0",n.style.height="1px",n.textContent=" ",s.appendChild(n),s.setAttribute("data-mdc-snackbar-label-text",t),null!==this.timerId&&clearTimeout(this.timerId),this.timerId=window.setTimeout((()=>{this.timerId=null,s.setAttribute("aria-live","polite"),s.removeAttribute("data-mdc-snackbar-label-text"),s.textContent=t,this.setValue(this.labelEl)}),MN),s}render(e,t){return t?iN`
      <div class="mdc-snackbar__label" role="status" aria-live="polite">${e}</div>`:iN``}}),{OPENING_EVENT:HN,OPENED_EVENT:DN,CLOSING_EVENT:zN,CLOSED_EVENT:BN}=bR.strings;
/**
 * @license
 * Copyright 2018 Google LLC
 * SPDX-License-Identifier: Apache-2.0
 */class FN extends yo{constructor(){super(...arguments),this.mdcFoundationClass=bR,this.open=!1,this.timeoutMs=5e3,this.closeOnEscape=!1,this.labelText="",this.stacked=!1,this.leading=!1,this.reason=""}render(){const e={"mdc-snackbar--stacked":this.stacked,"mdc-snackbar--leading":this.leading};return iN`
      <style>
        .mdc-snackbar {
          position: fixed;
          bottom: var(--mdc-snackbar-bottom, 20px);
        }
        .mdc-snackbar__surface {
          position: absolute;
          right: 20px;
        }
      </style>
      <div class="mdc-snackbar ${CN(e)}" @keydown="${this._handleKeydown}">
        <div class="mdc-snackbar__surface">
          ${UN(this.labelText,this.open)}
          <div class="mdc-snackbar__actions">
            <slot name="action" @click="${this._handleActionClick}"></slot>
            <slot name="dismiss" @click="${this._handleDismissClick}"></slot>
          </div>
        </div>
      </div>`}createAdapter(){return Object.assign(Object.assign({},uo(this.mdcRoot)),{announce:()=>{},notifyClosed:e=>{this.dispatchEvent(new CustomEvent(BN,{bubbles:!0,cancelable:!0,detail:{reason:e}}))},notifyClosing:e=>{this.open=!1,this.dispatchEvent(new CustomEvent(zN,{bubbles:!0,cancelable:!0,detail:{reason:e}}))},notifyOpened:()=>{this.dispatchEvent(new CustomEvent(DN,{bubbles:!0,cancelable:!0}))},notifyOpening:()=>{this.open=!0,this.dispatchEvent(new CustomEvent(HN,{bubbles:!0,cancelable:!0}))}})}show(){this.open=!0}close(e=""){this.reason=e,this.open=!1}firstUpdated(){super.firstUpdated(),this.open&&this.mdcFoundation.open()}_handleKeydown(e){this.mdcFoundation.handleKeyDown(e)}_handleActionClick(e){this.mdcFoundation.handleActionButtonClick(e)}_handleDismissClick(e){this.mdcFoundation.handleActionIconClick(e)}}o([dR(".mdc-snackbar")],FN.prototype,"mdcRoot",void 0),o([dR(".mdc-snackbar__label")],FN.prototype,"labelElement",void 0),o([lR({type:Boolean,reflect:!0}),Fl((function(e){this.mdcFoundation&&(e?this.mdcFoundation.open():(this.mdcFoundation.close(this.reason),this.reason=""))}))],FN.prototype,"open",void 0),o([Fl((function(e){this.mdcFoundation.setTimeoutMs(e)})),lR({type:Number})],FN.prototype,"timeoutMs",void 0),o([Fl((function(e){this.mdcFoundation.setCloseOnEscape(e)})),lR({type:Boolean})],FN.prototype,"closeOnEscape",void 0),o([lR({type:String})],FN.prototype,"labelText",void 0),o([lR({type:Boolean})],FN.prototype,"stacked",void 0),o([lR({type:Boolean})],FN.prototype,"leading",void 0);
/**
 * @license
 * Copyright 2021 Google LLC
 * SPDX-LIcense-Identifier: Apache-2.0
 */
const jN=((e,...t)=>{const i=1===e.length?e[0]:t.reduce(((t,i,o)=>t+(e=>{if(!0===e._$cssResult$)return e.cssText;if("number"==typeof e)return e;throw Error("Value passed to 'css' function must be a 'css' function result: "+e+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+e[o+1]),e[0]);return new AR(i,e,wR)})`.mdc-snackbar{z-index:8;margin:8px;display:none;position:fixed;right:0;bottom:0;left:0;align-items:center;justify-content:center;box-sizing:border-box;pointer-events:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mdc-snackbar__surface{background-color:#333333}.mdc-snackbar__label{color:rgba(255, 255, 255, 0.87)}.mdc-snackbar__surface{min-width:344px}@media(max-width: 480px),(max-width: 344px){.mdc-snackbar__surface{min-width:100%}}.mdc-snackbar__surface{max-width:672px}.mdc-snackbar__surface{box-shadow:0px 3px 5px -1px rgba(0, 0, 0, 0.2),0px 6px 10px 0px rgba(0, 0, 0, 0.14),0px 1px 18px 0px rgba(0,0,0,.12)}.mdc-snackbar__surface{border-radius:4px;border-radius:var(--mdc-shape-small, 4px)}.mdc-snackbar--opening,.mdc-snackbar--open,.mdc-snackbar--closing{display:flex}.mdc-snackbar--open .mdc-snackbar__label,.mdc-snackbar--open .mdc-snackbar__actions{visibility:visible}.mdc-snackbar--leading{justify-content:flex-start}.mdc-snackbar--stacked .mdc-snackbar__label{padding-left:16px;padding-right:8px;padding-bottom:12px}[dir=rtl] .mdc-snackbar--stacked .mdc-snackbar__label,.mdc-snackbar--stacked .mdc-snackbar__label[dir=rtl]{padding-left:8px;padding-right:16px}.mdc-snackbar--stacked .mdc-snackbar__surface{flex-direction:column;align-items:flex-start}.mdc-snackbar--stacked .mdc-snackbar__actions{align-self:flex-end;margin-bottom:8px}.mdc-snackbar__surface{padding-left:0;padding-right:8px;display:flex;align-items:center;justify-content:flex-start;box-sizing:border-box;transform:scale(0.8);opacity:0}.mdc-snackbar__surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid transparent;border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-snackbar__surface::before{border-color:CanvasText}}[dir=rtl] .mdc-snackbar__surface,.mdc-snackbar__surface[dir=rtl]{padding-left:8px;padding-right:0}.mdc-snackbar--open .mdc-snackbar__surface{transform:scale(1);opacity:1;pointer-events:auto;transition:opacity 150ms 0ms cubic-bezier(0, 0, 0.2, 1),transform 150ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-snackbar--closing .mdc-snackbar__surface{transform:scale(1);transition:opacity 75ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-snackbar__label{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-body2-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:0.875rem;font-size:var(--mdc-typography-body2-font-size, 0.875rem);line-height:1.25rem;line-height:var(--mdc-typography-body2-line-height, 1.25rem);font-weight:400;font-weight:var(--mdc-typography-body2-font-weight, 400);letter-spacing:0.0178571429em;letter-spacing:var(--mdc-typography-body2-letter-spacing, 0.0178571429em);text-decoration:inherit;text-decoration:var(--mdc-typography-body2-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-body2-text-transform, inherit);padding-left:16px;padding-right:8px;width:100%;flex-grow:1;box-sizing:border-box;margin:0;visibility:hidden;padding-top:14px;padding-bottom:14px}[dir=rtl] .mdc-snackbar__label,.mdc-snackbar__label[dir=rtl]{padding-left:8px;padding-right:16px}.mdc-snackbar__label::before{display:inline;content:attr(data-mdc-snackbar-label-text)}.mdc-snackbar__actions{display:flex;flex-shrink:0;align-items:center;box-sizing:border-box;visibility:hidden}.mdc-snackbar__action:not(:disabled){color:#bb86fc}.mdc-snackbar__action .mdc-button__ripple::before,.mdc-snackbar__action .mdc-button__ripple::after{background-color:#bb86fc;background-color:var(--mdc-ripple-color, #bb86fc)}.mdc-snackbar__action:hover .mdc-button__ripple::before,.mdc-snackbar__action.mdc-ripple-surface--hover .mdc-button__ripple::before{opacity:0.08;opacity:var(--mdc-ripple-hover-opacity, 0.08)}.mdc-snackbar__action.mdc-ripple-upgraded--background-focused .mdc-button__ripple::before,.mdc-snackbar__action:not(.mdc-ripple-upgraded):focus .mdc-button__ripple::before{transition-duration:75ms;opacity:0.24;opacity:var(--mdc-ripple-focus-opacity, 0.24)}.mdc-snackbar__action:not(.mdc-ripple-upgraded) .mdc-button__ripple::after{transition:opacity 150ms linear}.mdc-snackbar__action:not(.mdc-ripple-upgraded):active .mdc-button__ripple::after{transition-duration:75ms;opacity:0.24;opacity:var(--mdc-ripple-press-opacity, 0.24)}.mdc-snackbar__action.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.24)}.mdc-snackbar__dismiss{color:rgba(255, 255, 255, 0.87)}.mdc-snackbar__dismiss .mdc-icon-button__ripple::before,.mdc-snackbar__dismiss .mdc-icon-button__ripple::after{background-color:rgba(255, 255, 255, 0.87);background-color:var(--mdc-ripple-color, rgba(255, 255, 255, 0.87))}.mdc-snackbar__dismiss:hover .mdc-icon-button__ripple::before,.mdc-snackbar__dismiss.mdc-ripple-surface--hover .mdc-icon-button__ripple::before{opacity:0.08;opacity:var(--mdc-ripple-hover-opacity, 0.08)}.mdc-snackbar__dismiss.mdc-ripple-upgraded--background-focused .mdc-icon-button__ripple::before,.mdc-snackbar__dismiss:not(.mdc-ripple-upgraded):focus .mdc-icon-button__ripple::before{transition-duration:75ms;opacity:0.24;opacity:var(--mdc-ripple-focus-opacity, 0.24)}.mdc-snackbar__dismiss:not(.mdc-ripple-upgraded) .mdc-icon-button__ripple::after{transition:opacity 150ms linear}.mdc-snackbar__dismiss:not(.mdc-ripple-upgraded):active .mdc-icon-button__ripple::after{transition-duration:75ms;opacity:0.24;opacity:var(--mdc-ripple-press-opacity, 0.24)}.mdc-snackbar__dismiss.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.24)}.mdc-snackbar__dismiss.mdc-snackbar__dismiss{width:36px;height:36px;padding:6px;font-size:18px}.mdc-snackbar__dismiss.mdc-snackbar__dismiss .mdc-icon-button__focus-ring{display:none}.mdc-snackbar__dismiss.mdc-snackbar__dismiss.mdc-ripple-upgraded--background-focused .mdc-icon-button__focus-ring,.mdc-snackbar__dismiss.mdc-snackbar__dismiss:not(.mdc-ripple-upgraded):focus .mdc-icon-button__focus-ring{display:block;max-height:36px;max-width:36px}@media screen and (forced-colors: active){.mdc-snackbar__dismiss.mdc-snackbar__dismiss.mdc-ripple-upgraded--background-focused .mdc-icon-button__focus-ring,.mdc-snackbar__dismiss.mdc-snackbar__dismiss:not(.mdc-ripple-upgraded):focus .mdc-icon-button__focus-ring{pointer-events:none;border:2px solid transparent;border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:100%;width:100%}}@media screen and (forced-colors: active)and (forced-colors: active){.mdc-snackbar__dismiss.mdc-snackbar__dismiss.mdc-ripple-upgraded--background-focused .mdc-icon-button__focus-ring,.mdc-snackbar__dismiss.mdc-snackbar__dismiss:not(.mdc-ripple-upgraded):focus .mdc-icon-button__focus-ring{border-color:CanvasText}}@media screen and (forced-colors: active){.mdc-snackbar__dismiss.mdc-snackbar__dismiss.mdc-ripple-upgraded--background-focused .mdc-icon-button__focus-ring::after,.mdc-snackbar__dismiss.mdc-snackbar__dismiss:not(.mdc-ripple-upgraded):focus .mdc-icon-button__focus-ring::after{content:"";border:2px solid transparent;border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}}@media screen and (forced-colors: active)and (forced-colors: active){.mdc-snackbar__dismiss.mdc-snackbar__dismiss.mdc-ripple-upgraded--background-focused .mdc-icon-button__focus-ring::after,.mdc-snackbar__dismiss.mdc-snackbar__dismiss:not(.mdc-ripple-upgraded):focus .mdc-icon-button__focus-ring::after{border-color:CanvasText}}.mdc-snackbar__dismiss.mdc-snackbar__dismiss.mdc-icon-button--reduced-size .mdc-icon-button__ripple{width:36px;height:36px;margin-top:0px;margin-bottom:0px;margin-right:0px;margin-left:0px}.mdc-snackbar__dismiss.mdc-snackbar__dismiss.mdc-icon-button--reduced-size.mdc-ripple-upgraded--background-focused .mdc-icon-button__focus-ring,.mdc-snackbar__dismiss.mdc-snackbar__dismiss.mdc-icon-button--reduced-size:not(.mdc-ripple-upgraded):focus .mdc-icon-button__focus-ring{max-height:36px;max-width:36px}.mdc-snackbar__dismiss.mdc-snackbar__dismiss .mdc-icon-button__touch{position:absolute;top:50%;height:36px;left:50%;width:36px;transform:translate(-50%, -50%)}.mdc-snackbar__action+.mdc-snackbar__dismiss{margin-left:8px;margin-right:0}[dir=rtl] .mdc-snackbar__action+.mdc-snackbar__dismiss,.mdc-snackbar__action+.mdc-snackbar__dismiss[dir=rtl]{margin-left:0;margin-right:8px}slot[name=action]::slotted(mwc-button){--mdc-theme-primary: var( --mdc-snackbar-action-color, #bb86fc )}slot[name=dismiss]::slotted(mwc-icon-button){--mdc-icon-size: 18px;--mdc-icon-button-size: 36px;color:rgba(255, 255, 255, 0.87);margin-left:8px;margin-right:0}[dir=rtl] slot[name=dismiss]::slotted(mwc-icon-button),::slotted(mwc-icon-buttonslot[name=dismiss][dir=rtl]){margin-left:0;margin-right:8px}`
/**
 * @license
 * Copyright 2018 Google LLC
 * SPDX-License-Identifier: Apache-2.0
 */;let VN=class extends FN{};VN.styles=[jN],VN=o([(e=>t=>"function"==typeof t?((e,t)=>(customElements.define(e,t),t))(e,t):((e,t)=>{const{kind:i,elements:o}=t;return{kind:i,elements:o,finisher(t){customElements.define(e,t)}}})(e,t))("mwc-snackbar")],VN);let qN=class extends ke{constructor(){super(),this.text="",this.detail="",this.url="",this.message="",this.requestUrl="",this.status="",this.timestamp="",this.active=!1,this.supportDesktopNotification=!1,this.step=0,this.newDesktopNotification=Object(),this.options=Object(),this.options={desktop_notification:!0},this.notifications=[],this.notificationstore=[]}static get is(){return"lablup-notification"}static get styles(){return[Be,A`
        mwc-snackbar {
          --mdc-snackbar-label-color: yellow;
          --mdc-snackbar-action-color: var(
            --general-sidebar-selected-color,
            #38bd73
          );
          --mdc-typography-body2-font-family: var(--token-fontFamily);
          position: fixed;
          right: 20px;
        }
        mwc-button {
          --mdc-theme-primary: var(--general-sidebar-selected-color, #38bd73);
        }
      `]}render(){return ae``}shouldUpdate(){return this.active}firstUpdated(){"Notification"in window&&Promise.resolve(Notification.requestPermission()).then((e=>{["default","granted","denied"].includes(e)&&(this.supportDesktopNotification=!0)})),this._readUserSetting("desktop_notification",!0),!1===this.options.desktop_notification&&(this.supportDesktopNotification=!1)}connectedCallback(){super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback()}_readUserSetting(e,t=!0){const i=localStorage.getItem("backendaiwebui.usersetting."+e);this.options[e]=null!==i&&""!=i&&'""'!=i?"false"!==i&&("true"===i||i):t}show(e=!1,t=Object()){if("_DISCONNECTED"===this.text)return;const i=0!==Object.keys(t).length;i&&(console.log(t),this._saveToLocalStorage("backendaiwebui.logs",t));const o=new CustomEvent("add-bai-notification",{detail:{open:!0,type:i?"error":null,message:this.text,description:this.text?void 0:this.detail,to:i?"/usersettings?tab=logs":this.url,duration:e?0:void 0}});document.dispatchEvent(o),this._spawnDesktopNotification("Backend.AI",this.text,"")}_spawnDesktopNotification(e,t,i){if(!1===this.supportDesktopNotification)return;const o={body:t,icon:i};this.newDesktopNotification=new Notification(e,o)}_openURL(e){window.open(e,"_blank")}_saveToLocalStorage(e,t){console.log(t);const i=JSON.parse(localStorage.getItem(e)||"{}");let o=[];o.push(t),o=o.concat(i),localStorage.setItem(e,JSON.stringify(o))}gc(){if(this.notifications.length>0){const e=this.notifications.filter((e=>!0===e.open));this.notifications=e;const t=new CustomEvent("backend-ai-notification-changed",{});document.dispatchEvent(t)}let e=JSON.parse(localStorage.getItem("backendaiwebui.logs")||"{}");e.length>3e3&&(e=e.slice(0,2999)),this.step=this.notifications.length,localStorage.setItem("backendaiwebui.logs",JSON.stringify(e))}};o([Zt({type:String})],qN.prototype,"text",void 0),o([Zt({type:String})],qN.prototype,"detail",void 0),o([Zt({type:String})],qN.prototype,"url",void 0),o([Zt({type:String})],qN.prototype,"message",void 0),o([Zt({type:String})],qN.prototype,"requestUrl",void 0),o([Zt({type:String})],qN.prototype,"status",void 0),o([Zt({type:String})],qN.prototype,"timestamp",void 0),o([Zt({type:Object})],qN.prototype,"indicator",void 0),o([Zt({type:Array})],qN.prototype,"notifications",void 0),o([Zt({type:Array})],qN.prototype,"notificationstore",void 0),o([Zt({type:Boolean,reflect:!0})],qN.prototype,"active",void 0),o([Zt({type:Boolean})],qN.prototype,"supportDesktopNotification",void 0),o([Zt({type:Number})],qN.prototype,"step",void 0),o([Zt({type:Object})],qN.prototype,"newDesktopNotification",void 0),o([Zt({type:Object})],qN.prototype,"options",void 0),qN=o([Xt("lablup-notification")],qN);
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */
const WN=(e,t)=>"method"===t.kind&&t.descriptor&&!("value"in t.descriptor)?{...t,finisher(i){i.createProperty(t.key,e)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:t.key,initializer(){"function"==typeof t.initializer&&(this[t.key]=t.initializer.call(this))},finisher(i){i.createProperty(t.key,e)}};
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */function GN(e){return(t,i)=>void 0!==i?((e,t,i)=>{t.constructor.createProperty(i,e)})(e,t,i):WN(e,t)
/**
 * @license
 * Copyright 2021 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */}var KN;null===(KN=window.HTMLSlotElement)||void 0===KN||KN.prototype.assignedElements;
/**
 * @license
 * Copyright 2019 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */
const XN=window,YN=XN.ShadowRoot&&(void 0===XN.ShadyCSS||XN.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,JN=Symbol(),ZN=new WeakMap;let QN=class{constructor(e,t,i){if(this._$cssResult$=!0,i!==JN)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o;const t=this.t;if(YN&&void 0===e){const i=void 0!==t&&1===t.length;i&&(e=ZN.get(t)),void 0===e&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),i&&ZN.set(t,e))}return e}toString(){return this.cssText}};const eL=YN?e=>e:e=>e instanceof CSSStyleSheet?(e=>{let t="";for(const i of e.cssRules)t+=i.cssText;return(e=>new QN("string"==typeof e?e:e+"",void 0,JN))(t)})(e):e
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */;var tL;const iL=window,oL=iL.trustedTypes,sL=oL?oL.emptyScript:"",nL=iL.reactiveElementPolyfillSupport,rL={toAttribute(e,t){switch(t){case Boolean:e=e?sL:null;break;case Object:case Array:e=null==e?e:JSON.stringify(e)}return e},fromAttribute(e,t){let i=e;switch(t){case Boolean:i=null!==e;break;case Number:i=null===e?null:Number(e);break;case Object:case Array:try{i=JSON.parse(e)}catch(e){i=null}}return i}},aL=(e,t)=>t!==e&&(t==t||e==e),lL={attribute:!0,type:String,converter:rL,reflect:!1,hasChanged:aL},dL="finalized";let cL=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this._$Eu()}static addInitializer(e){var t;this.finalize(),(null!==(t=this.h)&&void 0!==t?t:this.h=[]).push(e)}static get observedAttributes(){this.finalize();const e=[];return this.elementProperties.forEach(((t,i)=>{const o=this._$Ep(i,t);void 0!==o&&(this._$Ev.set(o,i),e.push(o))})),e}static createProperty(e,t=lL){if(t.state&&(t.attribute=!1),this.finalize(),this.elementProperties.set(e,t),!t.noAccessor&&!this.prototype.hasOwnProperty(e)){const i="symbol"==typeof e?Symbol():"__"+e,o=this.getPropertyDescriptor(e,i,t);void 0!==o&&Object.defineProperty(this.prototype,e,o)}}static getPropertyDescriptor(e,t,i){return{get(){return this[t]},set(o){const s=this[e];this[t]=o,this.requestUpdate(e,s,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)||lL}static finalize(){if(this.hasOwnProperty(dL))return!1;this[dL]=!0;const e=Object.getPrototypeOf(this);if(e.finalize(),void 0!==e.h&&(this.h=[...e.h]),this.elementProperties=new Map(e.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const e=this.properties,t=[...Object.getOwnPropertyNames(e),...Object.getOwnPropertySymbols(e)];for(const i of t)this.createProperty(i,e[i])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(e){const t=[];if(Array.isArray(e)){const i=new Set(e.flat(1/0).reverse());for(const e of i)t.unshift(eL(e))}else void 0!==e&&t.push(eL(e));return t}static _$Ep(e,t){const i=t.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof e?e.toLowerCase():void 0}_$Eu(){var e;this._$E_=new Promise((e=>this.enableUpdating=e)),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(e=this.constructor.h)||void 0===e||e.forEach((e=>e(this)))}addController(e){var t,i;(null!==(t=this._$ES)&&void 0!==t?t:this._$ES=[]).push(e),void 0!==this.renderRoot&&this.isConnected&&(null===(i=e.hostConnected)||void 0===i||i.call(e))}removeController(e){var t;null===(t=this._$ES)||void 0===t||t.splice(this._$ES.indexOf(e)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach(((e,t)=>{this.hasOwnProperty(t)&&(this._$Ei.set(t,this[t]),delete this[t])}))}createRenderRoot(){var e;const t=null!==(e=this.shadowRoot)&&void 0!==e?e:this.attachShadow(this.constructor.shadowRootOptions);return((e,t)=>{YN?e.adoptedStyleSheets=t.map((e=>e instanceof CSSStyleSheet?e:e.styleSheet)):t.forEach((t=>{const i=document.createElement("style"),o=XN.litNonce;void 0!==o&&i.setAttribute("nonce",o),i.textContent=t.cssText,e.appendChild(i)}))})(t,this.constructor.elementStyles),t}connectedCallback(){var e;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(e=this._$ES)||void 0===e||e.forEach((e=>{var t;return null===(t=e.hostConnected)||void 0===t?void 0:t.call(e)}))}enableUpdating(e){}disconnectedCallback(){var e;null===(e=this._$ES)||void 0===e||e.forEach((e=>{var t;return null===(t=e.hostDisconnected)||void 0===t?void 0:t.call(e)}))}attributeChangedCallback(e,t,i){this._$AK(e,i)}_$EO(e,t,i=lL){var o;const s=this.constructor._$Ep(e,i);if(void 0!==s&&!0===i.reflect){const n=(void 0!==(null===(o=i.converter)||void 0===o?void 0:o.toAttribute)?i.converter:rL).toAttribute(t,i.type);this._$El=e,null==n?this.removeAttribute(s):this.setAttribute(s,n),this._$El=null}}_$AK(e,t){var i;const o=this.constructor,s=o._$Ev.get(e);if(void 0!==s&&this._$El!==s){const e=o.getPropertyOptions(s),n="function"==typeof e.converter?{fromAttribute:e.converter}:void 0!==(null===(i=e.converter)||void 0===i?void 0:i.fromAttribute)?e.converter:rL;this._$El=s,this[s]=n.fromAttribute(t,e.type),this._$El=null}}requestUpdate(e,t,i){let o=!0;void 0!==e&&(((i=i||this.constructor.getPropertyOptions(e)).hasChanged||aL)(this[e],t)?(this._$AL.has(e)||this._$AL.set(e,t),!0===i.reflect&&this._$El!==e&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(e,i))):o=!1),!this.isUpdatePending&&o&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(e){Promise.reject(e)}const e=this.scheduleUpdate();return null!=e&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var e;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach(((e,t)=>this[t]=e)),this._$Ei=void 0);let t=!1;const i=this._$AL;try{t=this.shouldUpdate(i),t?(this.willUpdate(i),null===(e=this._$ES)||void 0===e||e.forEach((e=>{var t;return null===(t=e.hostUpdate)||void 0===t?void 0:t.call(e)})),this.update(i)):this._$Ek()}catch(e){throw t=!1,this._$Ek(),e}t&&this._$AE(i)}willUpdate(e){}_$AE(e){var t;null===(t=this._$ES)||void 0===t||t.forEach((e=>{var t;return null===(t=e.hostUpdated)||void 0===t?void 0:t.call(e)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(e){return!0}update(e){void 0!==this._$EC&&(this._$EC.forEach(((e,t)=>this._$EO(t,this[t],e))),this._$EC=void 0),this._$Ek()}updated(e){}firstUpdated(e){}};
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */
var hL;cL[dL]=!0,cL.elementProperties=new Map,cL.elementStyles=[],cL.shadowRootOptions={mode:"open"},null==nL||nL({ReactiveElement:cL}),(null!==(tL=iL.reactiveElementVersions)&&void 0!==tL?tL:iL.reactiveElementVersions=[]).push("1.6.3");const pL=window,uL=pL.trustedTypes,mL=uL?uL.createPolicy("lit-html",{createHTML:e=>e}):void 0,gL="$lit$",fL=`lit$${(Math.random()+"").slice(9)}$`,_L="?"+fL,vL=`<${_L}>`,bL=document,yL=()=>bL.createComment(""),xL=e=>null===e||"object"!=typeof e&&"function"!=typeof e,wL=Array.isArray,$L="[ \t\n\f\r]",AL=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,kL=/-->/g,EL=/>/g,SL=RegExp(`>|${$L}(?:([^\\s"'>=/]+)(${$L}*=${$L}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),CL=/'/g,TL=/"/g,PL=/^(?:script|style|textarea|title)$/i,IL=(e=>(t,...i)=>({_$litType$:e,strings:t,values:i}))(1),OL=Symbol.for("lit-noChange"),RL=Symbol.for("lit-nothing"),NL=new WeakMap,LL=bL.createTreeWalker(bL,129,null,!1);function ML(e,t){if(!Array.isArray(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==mL?mL.createHTML(t):t}let UL=class e{constructor({strings:t,_$litType$:i},o){let s;this.parts=[];let n=0,r=0;const a=t.length-1,l=this.parts,[d,c]=((e,t)=>{const i=e.length-1,o=[];let s,n=2===t?"<svg>":"",r=AL;for(let t=0;t<i;t++){const i=e[t];let a,l,d=-1,c=0;for(;c<i.length&&(r.lastIndex=c,l=r.exec(i),null!==l);)c=r.lastIndex,r===AL?"!--"===l[1]?r=kL:void 0!==l[1]?r=EL:void 0!==l[2]?(PL.test(l[2])&&(s=RegExp("</"+l[2],"g")),r=SL):void 0!==l[3]&&(r=SL):r===SL?">"===l[0]?(r=null!=s?s:AL,d=-1):void 0===l[1]?d=-2:(d=r.lastIndex-l[2].length,a=l[1],r=void 0===l[3]?SL:'"'===l[3]?TL:CL):r===TL||r===CL?r=SL:r===kL||r===EL?r=AL:(r=SL,s=void 0);const h=r===SL&&e[t+1].startsWith("/>")?" ":"";n+=r===AL?i+vL:d>=0?(o.push(a),i.slice(0,d)+gL+i.slice(d)+fL+h):i+fL+(-2===d?(o.push(void 0),t):h)}return[ML(e,n+(e[i]||"<?>")+(2===t?"</svg>":"")),o]})(t,i);if(this.el=e.createElement(d,o),LL.currentNode=this.el.content,2===i){const e=this.el.content,t=e.firstChild;t.remove(),e.append(...t.childNodes)}for(;null!==(s=LL.nextNode())&&l.length<a;){if(1===s.nodeType){if(s.hasAttributes()){const e=[];for(const t of s.getAttributeNames())if(t.endsWith(gL)||t.startsWith(fL)){const i=c[r++];if(e.push(t),void 0!==i){const e=s.getAttribute(i.toLowerCase()+gL).split(fL),t=/([.?@])?(.*)/.exec(i);l.push({type:1,index:n,name:t[2],strings:e,ctor:"."===t[1]?FL:"?"===t[1]?VL:"@"===t[1]?qL:BL})}else l.push({type:6,index:n})}for(const t of e)s.removeAttribute(t)}if(PL.test(s.tagName)){const e=s.textContent.split(fL),t=e.length-1;if(t>0){s.textContent=uL?uL.emptyScript:"";for(let i=0;i<t;i++)s.append(e[i],yL()),LL.nextNode(),l.push({type:2,index:++n});s.append(e[t],yL())}}}else if(8===s.nodeType)if(s.data===_L)l.push({type:2,index:n});else{let e=-1;for(;-1!==(e=s.data.indexOf(fL,e+1));)l.push({type:7,index:n}),e+=fL.length-1}n++}}static createElement(e,t){const i=bL.createElement("template");return i.innerHTML=e,i}};function HL(e,t,i=e,o){var s,n,r,a;if(t===OL)return t;let l=void 0!==o?null===(s=i._$Co)||void 0===s?void 0:s[o]:i._$Cl;const d=xL(t)?void 0:t._$litDirective$;return(null==l?void 0:l.constructor)!==d&&(null===(n=null==l?void 0:l._$AO)||void 0===n||n.call(l,!1),void 0===d?l=void 0:(l=new d(e),l._$AT(e,i,o)),void 0!==o?(null!==(r=(a=i)._$Co)&&void 0!==r?r:a._$Co=[])[o]=l:i._$Cl=l),void 0!==l&&(t=HL(e,l._$AS(e,t.values),l,o)),t}let DL=class{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){var t;const{el:{content:i},parts:o}=this._$AD,s=(null!==(t=null==e?void 0:e.creationScope)&&void 0!==t?t:bL).importNode(i,!0);LL.currentNode=s;let n=LL.nextNode(),r=0,a=0,l=o[0];for(;void 0!==l;){if(r===l.index){let t;2===l.type?t=new zL(n,n.nextSibling,this,e):1===l.type?t=new l.ctor(n,l.name,l.strings,this,e):6===l.type&&(t=new WL(n,this,e)),this._$AV.push(t),l=o[++a]}r!==(null==l?void 0:l.index)&&(n=LL.nextNode(),r++)}return LL.currentNode=bL,s}v(e){let t=0;for(const i of this._$AV)void 0!==i&&(void 0!==i.strings?(i._$AI(e,i,t),t+=i.strings.length-2):i._$AI(e[t])),t++}},zL=class e{constructor(e,t,i,o){var s;this.type=2,this._$AH=RL,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=i,this.options=o,this._$Cp=null===(s=null==o?void 0:o.isConnected)||void 0===s||s}get _$AU(){var e,t;return null!==(t=null===(e=this._$AM)||void 0===e?void 0:e._$AU)&&void 0!==t?t:this._$Cp}get parentNode(){let e=this._$AA.parentNode;const t=this._$AM;return void 0!==t&&11===(null==e?void 0:e.nodeType)&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=HL(this,e,t),xL(e)?e===RL||null==e||""===e?(this._$AH!==RL&&this._$AR(),this._$AH=RL):e!==this._$AH&&e!==OL&&this._(e):void 0!==e._$litType$?this.g(e):void 0!==e.nodeType?this.$(e):(e=>wL(e)||"function"==typeof(null==e?void 0:e[Symbol.iterator]))(e)?this.T(e):this._(e)}k(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}$(e){this._$AH!==e&&(this._$AR(),this._$AH=this.k(e))}_(e){this._$AH!==RL&&xL(this._$AH)?this._$AA.nextSibling.data=e:this.$(bL.createTextNode(e)),this._$AH=e}g(e){var t;const{values:i,_$litType$:o}=e,s="number"==typeof o?this._$AC(e):(void 0===o.el&&(o.el=UL.createElement(ML(o.h,o.h[0]),this.options)),o);if((null===(t=this._$AH)||void 0===t?void 0:t._$AD)===s)this._$AH.v(i);else{const e=new DL(s,this),t=e.u(this.options);e.v(i),this.$(t),this._$AH=e}}_$AC(e){let t=NL.get(e.strings);return void 0===t&&NL.set(e.strings,t=new UL(e)),t}T(t){wL(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let o,s=0;for(const n of t)s===i.length?i.push(o=new e(this.k(yL()),this.k(yL()),this,this.options)):o=i[s],o._$AI(n),s++;s<i.length&&(this._$AR(o&&o._$AB.nextSibling,s),i.length=s)}_$AR(e=this._$AA.nextSibling,t){var i;for(null===(i=this._$AP)||void 0===i||i.call(this,!1,!0,t);e&&e!==this._$AB;){const t=e.nextSibling;e.remove(),e=t}}setConnected(e){var t;void 0===this._$AM&&(this._$Cp=e,null===(t=this._$AP)||void 0===t||t.call(this,e))}},BL=class{constructor(e,t,i,o,s){this.type=1,this._$AH=RL,this._$AN=void 0,this.element=e,this.name=t,this._$AM=o,this.options=s,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=RL}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(e,t=this,i,o){const s=this.strings;let n=!1;if(void 0===s)e=HL(this,e,t,0),n=!xL(e)||e!==this._$AH&&e!==OL,n&&(this._$AH=e);else{const o=e;let r,a;for(e=s[0],r=0;r<s.length-1;r++)a=HL(this,o[i+r],t,r),a===OL&&(a=this._$AH[r]),n||(n=!xL(a)||a!==this._$AH[r]),a===RL?e=RL:e!==RL&&(e+=(null!=a?a:"")+s[r+1]),this._$AH[r]=a}n&&!o&&this.j(e)}j(e){e===RL?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=e?e:"")}},FL=class extends BL{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===RL?void 0:e}};const jL=uL?uL.emptyScript:"";let VL=class extends BL{constructor(){super(...arguments),this.type=4}j(e){e&&e!==RL?this.element.setAttribute(this.name,jL):this.element.removeAttribute(this.name)}},qL=class extends BL{constructor(e,t,i,o,s){super(e,t,i,o,s),this.type=5}_$AI(e,t=this){var i;if((e=null!==(i=HL(this,e,t,0))&&void 0!==i?i:RL)===OL)return;const o=this._$AH,s=e===RL&&o!==RL||e.capture!==o.capture||e.once!==o.once||e.passive!==o.passive,n=e!==RL&&(o===RL||s);s&&this.element.removeEventListener(this.name,this,o),n&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var t,i;"function"==typeof this._$AH?this._$AH.call(null!==(i=null===(t=this.options)||void 0===t?void 0:t.host)&&void 0!==i?i:this.element,e):this._$AH.handleEvent(e)}},WL=class{constructor(e,t,i){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(e){HL(this,e)}};const GL=pL.litHtmlPolyfillSupport;null==GL||GL(UL,zL),(null!==(hL=pL.litHtmlVersions)&&void 0!==hL?hL:pL.litHtmlVersions=[]).push("2.8.0");
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */
var KL,XL;let YL=class extends cL{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e,t;const i=super.createRenderRoot();return null!==(e=(t=this.renderOptions).renderBefore)&&void 0!==e||(t.renderBefore=i.firstChild),i}update(e){const t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=((e,t,i)=>{var o,s;const n=null!==(o=null==i?void 0:i.renderBefore)&&void 0!==o?o:t;let r=n._$litPart$;if(void 0===r){const e=null!==(s=null==i?void 0:i.renderBefore)&&void 0!==s?s:null;n._$litPart$=r=new zL(t.insertBefore(yL(),e),e,void 0,null!=i?i:{})}return r._$AI(e),r})(t,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),null===(e=this._$Do)||void 0===e||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),null===(e=this._$Do)||void 0===e||e.setConnected(!1)}render(){return OL}};YL.finalized=!0,YL._$litElement$=!0,null===(KL=globalThis.litElementHydrateSupport)||void 0===KL||KL.call(globalThis,{LitElement:YL});const JL=globalThis.litElementPolyfillSupport;null==JL||JL({LitElement:YL}),(null!==(XL=globalThis.litElementVersions)&&void 0!==XL?XL:globalThis.litElementVersions=[]).push("3.3.3");
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */
const ZL=1,QL=e=>(...t)=>({_$litDirective$:e,values:t});let eM=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,i){this._$Ct=e,this._$AM=t,this._$Ci=i}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}};
/**
 * @license
 * Copyright 2018 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */const tM=QL(class extends eM{constructor(e){var t;if(super(e),e.type!==ZL||"class"!==e.name||(null===(t=e.strings)||void 0===t?void 0:t.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(e){return" "+Object.keys(e).filter((t=>e[t])).join(" ")+" "}update(e,[t]){var i,o;if(void 0===this.it){this.it=new Set,void 0!==e.strings&&(this.nt=new Set(e.strings.join(" ").split(/\s/).filter((e=>""!==e))));for(const e in t)t[e]&&!(null===(i=this.nt)||void 0===i?void 0:i.has(e))&&this.it.add(e);return this.render(t)}const s=e.element.classList;this.it.forEach((e=>{e in t||(s.remove(e),this.it.delete(e))}));for(const e in t){const i=!!t[e];i===this.it.has(e)||(null===(o=this.nt)||void 0===o?void 0:o.has(e))||(i?(s.add(e),this.it.add(e)):(s.remove(e),this.it.delete(e)))}return OL}}),iM=e=>null!=e?e:RL
/**
 * @license
 * Copyright 2018 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */,oM="important",sM=" !"+oM,nM=QL(class extends eM{constructor(e){var t;if(super(e),e.type!==ZL||"style"!==e.name||(null===(t=e.strings)||void 0===t?void 0:t.length)>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(e){return Object.keys(e).reduce(((t,i)=>{const o=e[i];return null==o?t:t+`${i=i.includes("-")?i:i.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${o};`}),"")}update(e,[t]){const{style:i}=e.element;if(void 0===this.ht){this.ht=new Set;for(const e in t)this.ht.add(e);return this.render(t)}this.ht.forEach((e=>{null==t[e]&&(this.ht.delete(e),e.includes("-")?i.removeProperty(e):i[e]="")}));for(const e in t){const o=t[e];if(null!=o){this.ht.add(e);const t="string"==typeof o&&o.endsWith(sM);e.includes("-")||t?i.setProperty(e,t?o.slice(0,-11):o,t?oM:""):i[e]=o}}return OL}});
/**
 * @license
 * Copyright 2018 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */
/**
 * @license
 * Copyright 2020 Google LLC
 * SPDX-License-Identifier: Apache-2.0
 */
class rM extends YL{constructor(){super(...arguments),this.indeterminate=!1,this.progress=0,this.density=0,this.closed=!1}open(){this.closed=!1}close(){this.closed=!0}render(){const e={"mdc-circular-progress--closed":this.closed,"mdc-circular-progress--indeterminate":this.indeterminate},t=48+4*this.density,i={width:`${t}px`,height:`${t}px`};return IL`
      <div
        class="mdc-circular-progress ${tM(e)}"
        style="${nM(i)}"
        role="progressbar"
        aria-label="${iM(this.ariaLabel)}"
        aria-valuemin="0"
        aria-valuemax="1"
        aria-valuenow="${iM(this.indeterminate?void 0:this.progress)}">
        ${this.renderDeterminateContainer()}
        ${this.renderIndeterminateContainer()}
      </div>`}renderDeterminateContainer(){const e=48+4*this.density,t=e/2,i=this.density>=-3?18+11*this.density/6:12.5+5*(this.density+3)/4,o=6.2831852*i,s=(1-this.progress)*o,n=this.density>=-3?4+this.density*(1/3):3+(this.density+3)*(1/6);return IL`
      <div class="mdc-circular-progress__determinate-container">
        <svg class="mdc-circular-progress__determinate-circle-graphic"
             viewBox="0 0 ${e} ${e}">
          <circle class="mdc-circular-progress__determinate-track"
                  cx="${t}" cy="${t}" r="${i}"
                  stroke-width="${n}"></circle>
          <circle class="mdc-circular-progress__determinate-circle"
                  cx="${t}" cy="${t}" r="${i}"
                  stroke-dasharray="${6.2831852*i}"
                  stroke-dashoffset="${s}"
                  stroke-width="${n}"></circle>
        </svg>
      </div>`}renderIndeterminateContainer(){return IL`
      <div class="mdc-circular-progress__indeterminate-container">
        <div class="mdc-circular-progress__spinner-layer">
          ${this.renderIndeterminateSpinnerLayer()}
        </div>
      </div>`}renderIndeterminateSpinnerLayer(){const e=48+4*this.density,t=e/2,i=this.density>=-3?18+11*this.density/6:12.5+5*(this.density+3)/4,o=6.2831852*i,s=.5*o,n=this.density>=-3?4+this.density*(1/3):3+(this.density+3)*(1/6);return IL`
        <div class="mdc-circular-progress__circle-clipper mdc-circular-progress__circle-left">
          <svg class="mdc-circular-progress__indeterminate-circle-graphic"
               viewBox="0 0 ${e} ${e}">
            <circle cx="${t}" cy="${t}" r="${i}"
                    stroke-dasharray="${o}"
                    stroke-dashoffset="${s}"
                    stroke-width="${n}"></circle>
          </svg>
        </div>
        <div class="mdc-circular-progress__gap-patch">
          <svg class="mdc-circular-progress__indeterminate-circle-graphic"
               viewBox="0 0 ${e} ${e}">
            <circle cx="${t}" cy="${t}" r="${i}"
                    stroke-dasharray="${o}"
                    stroke-dashoffset="${s}"
                    stroke-width="${.8*n}"></circle>
          </svg>
        </div>
        <div class="mdc-circular-progress__circle-clipper mdc-circular-progress__circle-right">
          <svg class="mdc-circular-progress__indeterminate-circle-graphic"
               viewBox="0 0 ${e} ${e}">
            <circle cx="${t}" cy="${t}" r="${i}"
                    stroke-dasharray="${o}"
                    stroke-dashoffset="${s}"
                    stroke-width="${n}"></circle>
          </svg>
        </div>`}update(e){super.update(e),e.has("progress")&&(this.progress>1&&(this.progress=1),this.progress<0&&(this.progress=0))}}o([GN({type:Boolean,reflect:!0})],rM.prototype,"indeterminate",void 0),o([GN({type:Number,reflect:!0})],rM.prototype,"progress",void 0),o([GN({type:Number,reflect:!0})],rM.prototype,"density",void 0),o([GN({type:Boolean,reflect:!0})],rM.prototype,"closed",void 0),o([tr,GN({type:String,attribute:"aria-label"})],rM.prototype,"ariaLabel",void 0);
/**
 * @license
 * Copyright 2021 Google LLC
 * SPDX-LIcense-Identifier: Apache-2.0
 */
const aM=((e,...t)=>{const i=1===e.length?e[0]:t.reduce(((t,i,o)=>t+(e=>{if(!0===e._$cssResult$)return e.cssText;if("number"==typeof e)return e;throw Error("Value passed to 'css' function must be a 'css' function result: "+e+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+e[o+1]),e[0]);return new QN(i,e,JN)})`.mdc-circular-progress__determinate-circle,.mdc-circular-progress__indeterminate-circle-graphic{stroke:#6200ee;stroke:var(--mdc-theme-primary, #6200ee)}.mdc-circular-progress__determinate-track{stroke:transparent}@keyframes mdc-circular-progress-container-rotate{to{transform:rotate(360deg)}}@keyframes mdc-circular-progress-spinner-layer-rotate{12.5%{transform:rotate(135deg)}25%{transform:rotate(270deg)}37.5%{transform:rotate(405deg)}50%{transform:rotate(540deg)}62.5%{transform:rotate(675deg)}75%{transform:rotate(810deg)}87.5%{transform:rotate(945deg)}100%{transform:rotate(1080deg)}}@keyframes mdc-circular-progress-color-1-fade-in-out{from{opacity:.99}25%{opacity:.99}26%{opacity:0}89%{opacity:0}90%{opacity:.99}to{opacity:.99}}@keyframes mdc-circular-progress-color-2-fade-in-out{from{opacity:0}15%{opacity:0}25%{opacity:.99}50%{opacity:.99}51%{opacity:0}to{opacity:0}}@keyframes mdc-circular-progress-color-3-fade-in-out{from{opacity:0}40%{opacity:0}50%{opacity:.99}75%{opacity:.99}76%{opacity:0}to{opacity:0}}@keyframes mdc-circular-progress-color-4-fade-in-out{from{opacity:0}65%{opacity:0}75%{opacity:.99}90%{opacity:.99}to{opacity:0}}@keyframes mdc-circular-progress-left-spin{from{transform:rotate(265deg)}50%{transform:rotate(130deg)}to{transform:rotate(265deg)}}@keyframes mdc-circular-progress-right-spin{from{transform:rotate(-265deg)}50%{transform:rotate(-130deg)}to{transform:rotate(-265deg)}}.mdc-circular-progress{display:inline-flex;position:relative;direction:ltr;line-height:0;transition:opacity 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-circular-progress__determinate-container,.mdc-circular-progress__indeterminate-circle-graphic,.mdc-circular-progress__indeterminate-container,.mdc-circular-progress__spinner-layer{position:absolute;width:100%;height:100%}.mdc-circular-progress__determinate-container{transform:rotate(-90deg)}.mdc-circular-progress__indeterminate-container{font-size:0;letter-spacing:0;white-space:nowrap;opacity:0}.mdc-circular-progress__determinate-circle-graphic,.mdc-circular-progress__indeterminate-circle-graphic{fill:transparent}.mdc-circular-progress__determinate-circle{transition:stroke-dashoffset 500ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-circular-progress__gap-patch{position:absolute;top:0;left:47.5%;box-sizing:border-box;width:5%;height:100%;overflow:hidden}.mdc-circular-progress__gap-patch .mdc-circular-progress__indeterminate-circle-graphic{left:-900%;width:2000%;transform:rotate(180deg)}.mdc-circular-progress__circle-clipper{display:inline-flex;position:relative;width:50%;height:100%;overflow:hidden}.mdc-circular-progress__circle-clipper .mdc-circular-progress__indeterminate-circle-graphic{width:200%}.mdc-circular-progress__circle-right .mdc-circular-progress__indeterminate-circle-graphic{left:-100%}.mdc-circular-progress--indeterminate .mdc-circular-progress__determinate-container{opacity:0}.mdc-circular-progress--indeterminate .mdc-circular-progress__indeterminate-container{opacity:1}.mdc-circular-progress--indeterminate .mdc-circular-progress__indeterminate-container{animation:mdc-circular-progress-container-rotate 1568.2352941176ms linear infinite}.mdc-circular-progress--indeterminate .mdc-circular-progress__spinner-layer{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-1{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-1-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-2{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-2-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-3{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-3-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-4{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-4-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__circle-left .mdc-circular-progress__indeterminate-circle-graphic{animation:mdc-circular-progress-left-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__circle-right .mdc-circular-progress__indeterminate-circle-graphic{animation:mdc-circular-progress-right-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--closed{opacity:0}:host{display:inline-flex}.mdc-circular-progress__determinate-track{stroke:transparent;stroke:var(--mdc-circular-progress-track-color, transparent)}`
/**
 * @license
 * Copyright 2018 Google LLC
 * SPDX-License-Identifier: Apache-2.0
 */;let lM=class extends rM{};lM.styles=[aM],lM=o([(e=>t=>"function"==typeof t?((e,t)=>(customElements.define(e,t),t))(e,t):((e,t)=>{const{kind:i,elements:o}=t;return{kind:i,elements:o,finisher(t){customElements.define(e,t)}}})(e,t))("mwc-circular-progress")],lM);
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */
const dM=(e,t)=>"method"===t.kind&&t.descriptor&&!("value"in t.descriptor)?{...t,finisher(i){i.createProperty(t.key,e)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:t.key,initializer(){"function"==typeof t.initializer&&(this[t.key]=t.initializer.call(this))},finisher(i){i.createProperty(t.key,e)}};
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */function cM(e){return(t,i)=>void 0!==i?((e,t,i)=>{t.constructor.createProperty(i,e)})(e,t,i):dM(e,t)
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */}
/**
 * @license
 * Copyright 2021 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */
var hM;null===(hM=window.HTMLSlotElement)||void 0===hM||hM.prototype.assignedElements;
/**
 * @license
 * Copyright 2019 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */
const pM=window,uM=pM.ShadowRoot&&(void 0===pM.ShadyCSS||pM.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,mM=Symbol(),gM=new WeakMap;let fM=class{constructor(e,t,i){if(this._$cssResult$=!0,i!==mM)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o;const t=this.t;if(uM&&void 0===e){const i=void 0!==t&&1===t.length;i&&(e=gM.get(t)),void 0===e&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),i&&gM.set(t,e))}return e}toString(){return this.cssText}};const _M=uM?e=>e:e=>e instanceof CSSStyleSheet?(e=>{let t="";for(const i of e.cssRules)t+=i.cssText;return(e=>new fM("string"==typeof e?e:e+"",void 0,mM))(t)})(e):e
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */;var vM;const bM=window,yM=bM.trustedTypes,xM=yM?yM.emptyScript:"",wM=bM.reactiveElementPolyfillSupport,$M={toAttribute(e,t){switch(t){case Boolean:e=e?xM:null;break;case Object:case Array:e=null==e?e:JSON.stringify(e)}return e},fromAttribute(e,t){let i=e;switch(t){case Boolean:i=null!==e;break;case Number:i=null===e?null:Number(e);break;case Object:case Array:try{i=JSON.parse(e)}catch(e){i=null}}return i}},AM=(e,t)=>t!==e&&(t==t||e==e),kM={attribute:!0,type:String,converter:$M,reflect:!1,hasChanged:AM},EM="finalized";let SM=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this._$Eu()}static addInitializer(e){var t;this.finalize(),(null!==(t=this.h)&&void 0!==t?t:this.h=[]).push(e)}static get observedAttributes(){this.finalize();const e=[];return this.elementProperties.forEach(((t,i)=>{const o=this._$Ep(i,t);void 0!==o&&(this._$Ev.set(o,i),e.push(o))})),e}static createProperty(e,t=kM){if(t.state&&(t.attribute=!1),this.finalize(),this.elementProperties.set(e,t),!t.noAccessor&&!this.prototype.hasOwnProperty(e)){const i="symbol"==typeof e?Symbol():"__"+e,o=this.getPropertyDescriptor(e,i,t);void 0!==o&&Object.defineProperty(this.prototype,e,o)}}static getPropertyDescriptor(e,t,i){return{get(){return this[t]},set(o){const s=this[e];this[t]=o,this.requestUpdate(e,s,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)||kM}static finalize(){if(this.hasOwnProperty(EM))return!1;this[EM]=!0;const e=Object.getPrototypeOf(this);if(e.finalize(),void 0!==e.h&&(this.h=[...e.h]),this.elementProperties=new Map(e.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const e=this.properties,t=[...Object.getOwnPropertyNames(e),...Object.getOwnPropertySymbols(e)];for(const i of t)this.createProperty(i,e[i])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(e){const t=[];if(Array.isArray(e)){const i=new Set(e.flat(1/0).reverse());for(const e of i)t.unshift(_M(e))}else void 0!==e&&t.push(_M(e));return t}static _$Ep(e,t){const i=t.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof e?e.toLowerCase():void 0}_$Eu(){var e;this._$E_=new Promise((e=>this.enableUpdating=e)),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(e=this.constructor.h)||void 0===e||e.forEach((e=>e(this)))}addController(e){var t,i;(null!==(t=this._$ES)&&void 0!==t?t:this._$ES=[]).push(e),void 0!==this.renderRoot&&this.isConnected&&(null===(i=e.hostConnected)||void 0===i||i.call(e))}removeController(e){var t;null===(t=this._$ES)||void 0===t||t.splice(this._$ES.indexOf(e)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach(((e,t)=>{this.hasOwnProperty(t)&&(this._$Ei.set(t,this[t]),delete this[t])}))}createRenderRoot(){var e;const t=null!==(e=this.shadowRoot)&&void 0!==e?e:this.attachShadow(this.constructor.shadowRootOptions);return((e,t)=>{uM?e.adoptedStyleSheets=t.map((e=>e instanceof CSSStyleSheet?e:e.styleSheet)):t.forEach((t=>{const i=document.createElement("style"),o=pM.litNonce;void 0!==o&&i.setAttribute("nonce",o),i.textContent=t.cssText,e.appendChild(i)}))})(t,this.constructor.elementStyles),t}connectedCallback(){var e;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(e=this._$ES)||void 0===e||e.forEach((e=>{var t;return null===(t=e.hostConnected)||void 0===t?void 0:t.call(e)}))}enableUpdating(e){}disconnectedCallback(){var e;null===(e=this._$ES)||void 0===e||e.forEach((e=>{var t;return null===(t=e.hostDisconnected)||void 0===t?void 0:t.call(e)}))}attributeChangedCallback(e,t,i){this._$AK(e,i)}_$EO(e,t,i=kM){var o;const s=this.constructor._$Ep(e,i);if(void 0!==s&&!0===i.reflect){const n=(void 0!==(null===(o=i.converter)||void 0===o?void 0:o.toAttribute)?i.converter:$M).toAttribute(t,i.type);this._$El=e,null==n?this.removeAttribute(s):this.setAttribute(s,n),this._$El=null}}_$AK(e,t){var i;const o=this.constructor,s=o._$Ev.get(e);if(void 0!==s&&this._$El!==s){const e=o.getPropertyOptions(s),n="function"==typeof e.converter?{fromAttribute:e.converter}:void 0!==(null===(i=e.converter)||void 0===i?void 0:i.fromAttribute)?e.converter:$M;this._$El=s,this[s]=n.fromAttribute(t,e.type),this._$El=null}}requestUpdate(e,t,i){let o=!0;void 0!==e&&(((i=i||this.constructor.getPropertyOptions(e)).hasChanged||AM)(this[e],t)?(this._$AL.has(e)||this._$AL.set(e,t),!0===i.reflect&&this._$El!==e&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(e,i))):o=!1),!this.isUpdatePending&&o&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(e){Promise.reject(e)}const e=this.scheduleUpdate();return null!=e&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var e;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach(((e,t)=>this[t]=e)),this._$Ei=void 0);let t=!1;const i=this._$AL;try{t=this.shouldUpdate(i),t?(this.willUpdate(i),null===(e=this._$ES)||void 0===e||e.forEach((e=>{var t;return null===(t=e.hostUpdate)||void 0===t?void 0:t.call(e)})),this.update(i)):this._$Ek()}catch(e){throw t=!1,this._$Ek(),e}t&&this._$AE(i)}willUpdate(e){}_$AE(e){var t;null===(t=this._$ES)||void 0===t||t.forEach((e=>{var t;return null===(t=e.hostUpdated)||void 0===t?void 0:t.call(e)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(e){return!0}update(e){void 0!==this._$EC&&(this._$EC.forEach(((e,t)=>this._$EO(t,this[t],e))),this._$EC=void 0),this._$Ek()}updated(e){}firstUpdated(e){}};
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */
var CM;SM[EM]=!0,SM.elementProperties=new Map,SM.elementStyles=[],SM.shadowRootOptions={mode:"open"},null==wM||wM({ReactiveElement:SM}),(null!==(vM=bM.reactiveElementVersions)&&void 0!==vM?vM:bM.reactiveElementVersions=[]).push("1.6.3");const TM=window,PM=TM.trustedTypes,IM=PM?PM.createPolicy("lit-html",{createHTML:e=>e}):void 0,OM="$lit$",RM=`lit$${(Math.random()+"").slice(9)}$`,NM="?"+RM,LM=`<${NM}>`,MM=document,UM=()=>MM.createComment(""),HM=e=>null===e||"object"!=typeof e&&"function"!=typeof e,DM=Array.isArray,zM="[ \t\n\f\r]",BM=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,FM=/-->/g,jM=/>/g,VM=RegExp(`>|${zM}(?:([^\\s"'>=/]+)(${zM}*=${zM}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),qM=/'/g,WM=/"/g,GM=/^(?:script|style|textarea|title)$/i,KM=(e=>(t,...i)=>({_$litType$:e,strings:t,values:i}))(1),XM=Symbol.for("lit-noChange"),YM=Symbol.for("lit-nothing"),JM=new WeakMap,ZM=MM.createTreeWalker(MM,129,null,!1);function QM(e,t){if(!Array.isArray(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==IM?IM.createHTML(t):t}let eU=class e{constructor({strings:t,_$litType$:i},o){let s;this.parts=[];let n=0,r=0;const a=t.length-1,l=this.parts,[d,c]=((e,t)=>{const i=e.length-1,o=[];let s,n=2===t?"<svg>":"",r=BM;for(let t=0;t<i;t++){const i=e[t];let a,l,d=-1,c=0;for(;c<i.length&&(r.lastIndex=c,l=r.exec(i),null!==l);)c=r.lastIndex,r===BM?"!--"===l[1]?r=FM:void 0!==l[1]?r=jM:void 0!==l[2]?(GM.test(l[2])&&(s=RegExp("</"+l[2],"g")),r=VM):void 0!==l[3]&&(r=VM):r===VM?">"===l[0]?(r=null!=s?s:BM,d=-1):void 0===l[1]?d=-2:(d=r.lastIndex-l[2].length,a=l[1],r=void 0===l[3]?VM:'"'===l[3]?WM:qM):r===WM||r===qM?r=VM:r===FM||r===jM?r=BM:(r=VM,s=void 0);const h=r===VM&&e[t+1].startsWith("/>")?" ":"";n+=r===BM?i+LM:d>=0?(o.push(a),i.slice(0,d)+OM+i.slice(d)+RM+h):i+RM+(-2===d?(o.push(void 0),t):h)}return[QM(e,n+(e[i]||"<?>")+(2===t?"</svg>":"")),o]})(t,i);if(this.el=e.createElement(d,o),ZM.currentNode=this.el.content,2===i){const e=this.el.content,t=e.firstChild;t.remove(),e.append(...t.childNodes)}for(;null!==(s=ZM.nextNode())&&l.length<a;){if(1===s.nodeType){if(s.hasAttributes()){const e=[];for(const t of s.getAttributeNames())if(t.endsWith(OM)||t.startsWith(RM)){const i=c[r++];if(e.push(t),void 0!==i){const e=s.getAttribute(i.toLowerCase()+OM).split(RM),t=/([.?@])?(.*)/.exec(i);l.push({type:1,index:n,name:t[2],strings:e,ctor:"."===t[1]?nU:"?"===t[1]?aU:"@"===t[1]?lU:sU})}else l.push({type:6,index:n})}for(const t of e)s.removeAttribute(t)}if(GM.test(s.tagName)){const e=s.textContent.split(RM),t=e.length-1;if(t>0){s.textContent=PM?PM.emptyScript:"";for(let i=0;i<t;i++)s.append(e[i],UM()),ZM.nextNode(),l.push({type:2,index:++n});s.append(e[t],UM())}}}else if(8===s.nodeType)if(s.data===NM)l.push({type:2,index:n});else{let e=-1;for(;-1!==(e=s.data.indexOf(RM,e+1));)l.push({type:7,index:n}),e+=RM.length-1}n++}}static createElement(e,t){const i=MM.createElement("template");return i.innerHTML=e,i}};function tU(e,t,i=e,o){var s,n,r,a;if(t===XM)return t;let l=void 0!==o?null===(s=i._$Co)||void 0===s?void 0:s[o]:i._$Cl;const d=HM(t)?void 0:t._$litDirective$;return(null==l?void 0:l.constructor)!==d&&(null===(n=null==l?void 0:l._$AO)||void 0===n||n.call(l,!1),void 0===d?l=void 0:(l=new d(e),l._$AT(e,i,o)),void 0!==o?(null!==(r=(a=i)._$Co)&&void 0!==r?r:a._$Co=[])[o]=l:i._$Cl=l),void 0!==l&&(t=tU(e,l._$AS(e,t.values),l,o)),t}let iU=class{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){var t;const{el:{content:i},parts:o}=this._$AD,s=(null!==(t=null==e?void 0:e.creationScope)&&void 0!==t?t:MM).importNode(i,!0);ZM.currentNode=s;let n=ZM.nextNode(),r=0,a=0,l=o[0];for(;void 0!==l;){if(r===l.index){let t;2===l.type?t=new oU(n,n.nextSibling,this,e):1===l.type?t=new l.ctor(n,l.name,l.strings,this,e):6===l.type&&(t=new dU(n,this,e)),this._$AV.push(t),l=o[++a]}r!==(null==l?void 0:l.index)&&(n=ZM.nextNode(),r++)}return ZM.currentNode=MM,s}v(e){let t=0;for(const i of this._$AV)void 0!==i&&(void 0!==i.strings?(i._$AI(e,i,t),t+=i.strings.length-2):i._$AI(e[t])),t++}},oU=class e{constructor(e,t,i,o){var s;this.type=2,this._$AH=YM,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=i,this.options=o,this._$Cp=null===(s=null==o?void 0:o.isConnected)||void 0===s||s}get _$AU(){var e,t;return null!==(t=null===(e=this._$AM)||void 0===e?void 0:e._$AU)&&void 0!==t?t:this._$Cp}get parentNode(){let e=this._$AA.parentNode;const t=this._$AM;return void 0!==t&&11===(null==e?void 0:e.nodeType)&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=tU(this,e,t),HM(e)?e===YM||null==e||""===e?(this._$AH!==YM&&this._$AR(),this._$AH=YM):e!==this._$AH&&e!==XM&&this._(e):void 0!==e._$litType$?this.g(e):void 0!==e.nodeType?this.$(e):(e=>DM(e)||"function"==typeof(null==e?void 0:e[Symbol.iterator]))(e)?this.T(e):this._(e)}k(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}$(e){this._$AH!==e&&(this._$AR(),this._$AH=this.k(e))}_(e){this._$AH!==YM&&HM(this._$AH)?this._$AA.nextSibling.data=e:this.$(MM.createTextNode(e)),this._$AH=e}g(e){var t;const{values:i,_$litType$:o}=e,s="number"==typeof o?this._$AC(e):(void 0===o.el&&(o.el=eU.createElement(QM(o.h,o.h[0]),this.options)),o);if((null===(t=this._$AH)||void 0===t?void 0:t._$AD)===s)this._$AH.v(i);else{const e=new iU(s,this),t=e.u(this.options);e.v(i),this.$(t),this._$AH=e}}_$AC(e){let t=JM.get(e.strings);return void 0===t&&JM.set(e.strings,t=new eU(e)),t}T(t){DM(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let o,s=0;for(const n of t)s===i.length?i.push(o=new e(this.k(UM()),this.k(UM()),this,this.options)):o=i[s],o._$AI(n),s++;s<i.length&&(this._$AR(o&&o._$AB.nextSibling,s),i.length=s)}_$AR(e=this._$AA.nextSibling,t){var i;for(null===(i=this._$AP)||void 0===i||i.call(this,!1,!0,t);e&&e!==this._$AB;){const t=e.nextSibling;e.remove(),e=t}}setConnected(e){var t;void 0===this._$AM&&(this._$Cp=e,null===(t=this._$AP)||void 0===t||t.call(this,e))}},sU=class{constructor(e,t,i,o,s){this.type=1,this._$AH=YM,this._$AN=void 0,this.element=e,this.name=t,this._$AM=o,this.options=s,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=YM}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(e,t=this,i,o){const s=this.strings;let n=!1;if(void 0===s)e=tU(this,e,t,0),n=!HM(e)||e!==this._$AH&&e!==XM,n&&(this._$AH=e);else{const o=e;let r,a;for(e=s[0],r=0;r<s.length-1;r++)a=tU(this,o[i+r],t,r),a===XM&&(a=this._$AH[r]),n||(n=!HM(a)||a!==this._$AH[r]),a===YM?e=YM:e!==YM&&(e+=(null!=a?a:"")+s[r+1]),this._$AH[r]=a}n&&!o&&this.j(e)}j(e){e===YM?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=e?e:"")}},nU=class extends sU{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===YM?void 0:e}};const rU=PM?PM.emptyScript:"";let aU=class extends sU{constructor(){super(...arguments),this.type=4}j(e){e&&e!==YM?this.element.setAttribute(this.name,rU):this.element.removeAttribute(this.name)}},lU=class extends sU{constructor(e,t,i,o,s){super(e,t,i,o,s),this.type=5}_$AI(e,t=this){var i;if((e=null!==(i=tU(this,e,t,0))&&void 0!==i?i:YM)===XM)return;const o=this._$AH,s=e===YM&&o!==YM||e.capture!==o.capture||e.once!==o.once||e.passive!==o.passive,n=e!==YM&&(o===YM||s);s&&this.element.removeEventListener(this.name,this,o),n&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var t,i;"function"==typeof this._$AH?this._$AH.call(null!==(i=null===(t=this.options)||void 0===t?void 0:t.host)&&void 0!==i?i:this.element,e):this._$AH.handleEvent(e)}},dU=class{constructor(e,t,i){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(e){tU(this,e)}};const cU=TM.litHtmlPolyfillSupport;null==cU||cU(eU,oU),(null!==(CM=TM.litHtmlVersions)&&void 0!==CM?CM:TM.litHtmlVersions=[]).push("2.8.0");
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */
var hU,pU;let uU=class extends SM{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e,t;const i=super.createRenderRoot();return null!==(e=(t=this.renderOptions).renderBefore)&&void 0!==e||(t.renderBefore=i.firstChild),i}update(e){const t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=((e,t,i)=>{var o,s;const n=null!==(o=null==i?void 0:i.renderBefore)&&void 0!==o?o:t;let r=n._$litPart$;if(void 0===r){const e=null!==(s=null==i?void 0:i.renderBefore)&&void 0!==s?s:null;n._$litPart$=r=new oU(t.insertBefore(UM(),e),e,void 0,null!=i?i:{})}return r._$AI(e),r})(t,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),null===(e=this._$Do)||void 0===e||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),null===(e=this._$Do)||void 0===e||e.setConnected(!1)}render(){return XM}};uU.finalized=!0,uU._$litElement$=!0,null===(hU=globalThis.litElementHydrateSupport)||void 0===hU||hU.call(globalThis,{LitElement:uU});const mU=globalThis.litElementPolyfillSupport;null==mU||mU({LitElement:uU}),(null!==(pU=globalThis.litElementVersions)&&void 0!==pU?pU:globalThis.litElementVersions=[]).push("3.3.3");
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */
const gU=1,fU=3,_U=4,vU=e=>(...t)=>({_$litDirective$:e,values:t});let bU=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,i){this._$Ct=e,this._$AM=t,this._$Ci=i}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}};
/**
 * @license
 * Copyright 2018 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */const yU=vU(class extends bU{constructor(e){var t;if(super(e),e.type!==gU||"class"!==e.name||(null===(t=e.strings)||void 0===t?void 0:t.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(e){return" "+Object.keys(e).filter((t=>e[t])).join(" ")+" "}update(e,[t]){var i,o;if(void 0===this.it){this.it=new Set,void 0!==e.strings&&(this.nt=new Set(e.strings.join(" ").split(/\s/).filter((e=>""!==e))));for(const e in t)t[e]&&!(null===(i=this.nt)||void 0===i?void 0:i.has(e))&&this.it.add(e);return this.render(t)}const s=e.element.classList;this.it.forEach((e=>{e in t||(s.remove(e),this.it.delete(e))}));for(const e in t){const i=!!t[e];i===this.it.has(e)||(null===(o=this.nt)||void 0===o?void 0:o.has(e))||(i?(s.add(e),this.it.add(e)):(s.remove(e),this.it.delete(e)))}return XM}}),xU=e=>null!=e?e:YM
/**
 * @license
 * Copyright 2020 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */,wU={},$U=vU(class extends bU{constructor(e){if(super(e),e.type!==fU&&e.type!==gU&&e.type!==_U)throw Error("The `live` directive is not allowed on child or event bindings");if(!(e=>void 0===e.strings)(e))throw Error("`live` bindings can only contain a single expression")}render(e){return e}update(e,[t]){if(t===XM||t===YM)return t;const i=e.element,o=e.name;if(e.type===fU){if(t===i[o])return XM}else if(e.type===_U){if(!!t===i.hasAttribute(o))return XM}else if(e.type===gU&&i.getAttribute(o)===t+"")return XM;return((e,t=wU)=>{e._$AH=t;
/**
 * @license
 * Copyright 2020 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */})(e),t}}),AU={fromAttribute:e=>null!==e&&(""===e||e),toAttribute:e=>"boolean"==typeof e?e?"":null:e};
/**
 * @license
 * Copyright 2018 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */class kU extends aE{constructor(){super(...arguments),this.rows=2,this.cols=20,this.charCounter=!1}render(){const e=this.charCounter&&-1!==this.maxLength,t=e&&"internal"===this.charCounter,i=e&&!t,o=!!this.helper||!!this.validationMessage||i,s={"mdc-text-field--disabled":this.disabled,"mdc-text-field--no-label":!this.label,"mdc-text-field--filled":!this.outlined,"mdc-text-field--outlined":this.outlined,"mdc-text-field--end-aligned":this.endAligned,"mdc-text-field--with-internal-counter":t};return KM`
      <label class="mdc-text-field mdc-text-field--textarea ${yU(s)}">
        ${this.renderRipple()}
        ${this.outlined?this.renderOutline():this.renderLabel()}
        ${this.renderInput()}
        ${this.renderCharCounter(t)}
        ${this.renderLineRipple()}
      </label>
      ${this.renderHelperText(o,i)}
    `}renderInput(){const e=this.label?"label":void 0,t=-1===this.minLength?void 0:this.minLength,i=-1===this.maxLength?void 0:this.maxLength,o=this.autocapitalize?this.autocapitalize:void 0;return KM`
      <textarea
          aria-labelledby=${xU(e)}
          class="mdc-text-field__input"
          .value="${$U(this.value)}"
          rows="${this.rows}"
          cols="${this.cols}"
          ?disabled="${this.disabled}"
          placeholder="${this.placeholder}"
          ?required="${this.required}"
          ?readonly="${this.readOnly}"
          minlength="${xU(t)}"
          maxlength="${xU(i)}"
          name="${xU(""===this.name?void 0:this.name)}"
          inputmode="${xU(this.inputMode)}"
          autocapitalize="${xU(o)}"
          @input="${this.handleInputChange}"
          @blur="${this.onInputBlur}">
      </textarea>`}}o([
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */
function(e,t){return(({finisher:e,descriptor:t})=>(i,o)=>{var s;if(void 0===o){const o=null!==(s=i.originalKey)&&void 0!==s?s:i.key,n=null!=t?{kind:"method",placement:"prototype",key:o,descriptor:t(i.key)}:{...i,key:o};return null!=e&&(n.finisher=function(t){e(t,o)}),n}{const s=i.constructor;void 0!==t&&Object.defineProperty(i,o,t(o)),null==e||e(s,o)}})({descriptor:t=>{const i={get(){var t,i;return null!==(i=null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector(e))&&void 0!==i?i:null},enumerable:!0,configurable:!0};return i}})}("textarea")],kU.prototype,"formElement",void 0),o([cM({type:Number})],kU.prototype,"rows",void 0),o([cM({type:Number})],kU.prototype,"cols",void 0),o([cM({converter:AU})],kU.prototype,"charCounter",void 0);
/**
 * @license
 * Copyright 2021 Google LLC
 * SPDX-LIcense-Identifier: Apache-2.0
 */
const EU=((e,...t)=>{const i=1===e.length?e[0]:t.reduce(((t,i,o)=>t+(e=>{if(!0===e._$cssResult$)return e.cssText;if("number"==typeof e)return e;throw Error("Value passed to 'css' function must be a 'css' function result: "+e+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+e[o+1]),e[0]);return new fM(i,e,mM)})`.mdc-text-field{height:100%}.mdc-text-field__input{resize:none}`
/**
 * @license
 * Copyright 2019 Google LLC
 * SPDX-License-Identifier: Apache-2.0
 */;let SU=class extends kU{};SU.styles=[lE,EU],SU=o([(e=>t=>"function"==typeof t?((e,t)=>(customElements.define(e,t),t))(e,t):((e,t)=>{const{kind:i,elements:o}=t;return{kind:i,elements:o,finisher(t){customElements.define(e,t)}}})(e,t))("mwc-textarea")],SU);
/**
 * @license
 * Copyright 2021 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */
var CU;null===(CU=window.HTMLSlotElement)||void 0===CU||CU.prototype.assignedElements;
/**
 * @license
 * Copyright 2019 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */
const TU=window,PU=TU.ShadowRoot&&(void 0===TU.ShadyCSS||TU.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,IU=Symbol(),OU=new WeakMap;let RU=class{constructor(e,t,i){if(this._$cssResult$=!0,i!==IU)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o;const t=this.t;if(PU&&void 0===e){const i=void 0!==t&&1===t.length;i&&(e=OU.get(t)),void 0===e&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),i&&OU.set(t,e))}return e}toString(){return this.cssText}};const NU=PU?e=>e:e=>e instanceof CSSStyleSheet?(e=>{let t="";for(const i of e.cssRules)t+=i.cssText;return(e=>new RU("string"==typeof e?e:e+"",void 0,IU))(t)})(e):e
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */;var LU;const MU=window,UU=MU.trustedTypes,HU=UU?UU.emptyScript:"",DU=MU.reactiveElementPolyfillSupport,zU={toAttribute(e,t){switch(t){case Boolean:e=e?HU:null;break;case Object:case Array:e=null==e?e:JSON.stringify(e)}return e},fromAttribute(e,t){let i=e;switch(t){case Boolean:i=null!==e;break;case Number:i=null===e?null:Number(e);break;case Object:case Array:try{i=JSON.parse(e)}catch(e){i=null}}return i}},BU=(e,t)=>t!==e&&(t==t||e==e),FU={attribute:!0,type:String,converter:zU,reflect:!1,hasChanged:BU},jU="finalized";let VU=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this._$Eu()}static addInitializer(e){var t;this.finalize(),(null!==(t=this.h)&&void 0!==t?t:this.h=[]).push(e)}static get observedAttributes(){this.finalize();const e=[];return this.elementProperties.forEach(((t,i)=>{const o=this._$Ep(i,t);void 0!==o&&(this._$Ev.set(o,i),e.push(o))})),e}static createProperty(e,t=FU){if(t.state&&(t.attribute=!1),this.finalize(),this.elementProperties.set(e,t),!t.noAccessor&&!this.prototype.hasOwnProperty(e)){const i="symbol"==typeof e?Symbol():"__"+e,o=this.getPropertyDescriptor(e,i,t);void 0!==o&&Object.defineProperty(this.prototype,e,o)}}static getPropertyDescriptor(e,t,i){return{get(){return this[t]},set(o){const s=this[e];this[t]=o,this.requestUpdate(e,s,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)||FU}static finalize(){if(this.hasOwnProperty(jU))return!1;this[jU]=!0;const e=Object.getPrototypeOf(this);if(e.finalize(),void 0!==e.h&&(this.h=[...e.h]),this.elementProperties=new Map(e.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const e=this.properties,t=[...Object.getOwnPropertyNames(e),...Object.getOwnPropertySymbols(e)];for(const i of t)this.createProperty(i,e[i])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(e){const t=[];if(Array.isArray(e)){const i=new Set(e.flat(1/0).reverse());for(const e of i)t.unshift(NU(e))}else void 0!==e&&t.push(NU(e));return t}static _$Ep(e,t){const i=t.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof e?e.toLowerCase():void 0}_$Eu(){var e;this._$E_=new Promise((e=>this.enableUpdating=e)),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(e=this.constructor.h)||void 0===e||e.forEach((e=>e(this)))}addController(e){var t,i;(null!==(t=this._$ES)&&void 0!==t?t:this._$ES=[]).push(e),void 0!==this.renderRoot&&this.isConnected&&(null===(i=e.hostConnected)||void 0===i||i.call(e))}removeController(e){var t;null===(t=this._$ES)||void 0===t||t.splice(this._$ES.indexOf(e)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach(((e,t)=>{this.hasOwnProperty(t)&&(this._$Ei.set(t,this[t]),delete this[t])}))}createRenderRoot(){var e;const t=null!==(e=this.shadowRoot)&&void 0!==e?e:this.attachShadow(this.constructor.shadowRootOptions);return((e,t)=>{PU?e.adoptedStyleSheets=t.map((e=>e instanceof CSSStyleSheet?e:e.styleSheet)):t.forEach((t=>{const i=document.createElement("style"),o=TU.litNonce;void 0!==o&&i.setAttribute("nonce",o),i.textContent=t.cssText,e.appendChild(i)}))})(t,this.constructor.elementStyles),t}connectedCallback(){var e;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(e=this._$ES)||void 0===e||e.forEach((e=>{var t;return null===(t=e.hostConnected)||void 0===t?void 0:t.call(e)}))}enableUpdating(e){}disconnectedCallback(){var e;null===(e=this._$ES)||void 0===e||e.forEach((e=>{var t;return null===(t=e.hostDisconnected)||void 0===t?void 0:t.call(e)}))}attributeChangedCallback(e,t,i){this._$AK(e,i)}_$EO(e,t,i=FU){var o;const s=this.constructor._$Ep(e,i);if(void 0!==s&&!0===i.reflect){const n=(void 0!==(null===(o=i.converter)||void 0===o?void 0:o.toAttribute)?i.converter:zU).toAttribute(t,i.type);this._$El=e,null==n?this.removeAttribute(s):this.setAttribute(s,n),this._$El=null}}_$AK(e,t){var i;const o=this.constructor,s=o._$Ev.get(e);if(void 0!==s&&this._$El!==s){const e=o.getPropertyOptions(s),n="function"==typeof e.converter?{fromAttribute:e.converter}:void 0!==(null===(i=e.converter)||void 0===i?void 0:i.fromAttribute)?e.converter:zU;this._$El=s,this[s]=n.fromAttribute(t,e.type),this._$El=null}}requestUpdate(e,t,i){let o=!0;void 0!==e&&(((i=i||this.constructor.getPropertyOptions(e)).hasChanged||BU)(this[e],t)?(this._$AL.has(e)||this._$AL.set(e,t),!0===i.reflect&&this._$El!==e&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(e,i))):o=!1),!this.isUpdatePending&&o&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(e){Promise.reject(e)}const e=this.scheduleUpdate();return null!=e&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var e;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach(((e,t)=>this[t]=e)),this._$Ei=void 0);let t=!1;const i=this._$AL;try{t=this.shouldUpdate(i),t?(this.willUpdate(i),null===(e=this._$ES)||void 0===e||e.forEach((e=>{var t;return null===(t=e.hostUpdate)||void 0===t?void 0:t.call(e)})),this.update(i)):this._$Ek()}catch(e){throw t=!1,this._$Ek(),e}t&&this._$AE(i)}willUpdate(e){}_$AE(e){var t;null===(t=this._$ES)||void 0===t||t.forEach((e=>{var t;return null===(t=e.hostUpdated)||void 0===t?void 0:t.call(e)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(e){return!0}update(e){void 0!==this._$EC&&(this._$EC.forEach(((e,t)=>this._$EO(t,this[t],e))),this._$EC=void 0),this._$Ek()}updated(e){}firstUpdated(e){}};
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */
var qU;VU[jU]=!0,VU.elementProperties=new Map,VU.elementStyles=[],VU.shadowRootOptions={mode:"open"},null==DU||DU({ReactiveElement:VU}),(null!==(LU=MU.reactiveElementVersions)&&void 0!==LU?LU:MU.reactiveElementVersions=[]).push("1.6.3");const WU=window,GU=WU.trustedTypes,KU=GU?GU.createPolicy("lit-html",{createHTML:e=>e}):void 0,XU="$lit$",YU=`lit$${(Math.random()+"").slice(9)}$`,JU="?"+YU,ZU=`<${JU}>`,QU=document,eH=()=>QU.createComment(""),tH=e=>null===e||"object"!=typeof e&&"function"!=typeof e,iH=Array.isArray,oH="[ \t\n\f\r]",sH=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,nH=/-->/g,rH=/>/g,aH=RegExp(`>|${oH}(?:([^\\s"'>=/]+)(${oH}*=${oH}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),lH=/'/g,dH=/"/g,cH=/^(?:script|style|textarea|title)$/i,hH=(e=>(t,...i)=>({_$litType$:e,strings:t,values:i}))(1),pH=Symbol.for("lit-noChange"),uH=Symbol.for("lit-nothing"),mH=new WeakMap,gH=QU.createTreeWalker(QU,129,null,!1);function fH(e,t){if(!Array.isArray(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==KU?KU.createHTML(t):t}const _H=(e,t)=>{const i=e.length-1,o=[];let s,n=2===t?"<svg>":"",r=sH;for(let t=0;t<i;t++){const i=e[t];let a,l,d=-1,c=0;for(;c<i.length&&(r.lastIndex=c,l=r.exec(i),null!==l);)c=r.lastIndex,r===sH?"!--"===l[1]?r=nH:void 0!==l[1]?r=rH:void 0!==l[2]?(cH.test(l[2])&&(s=RegExp("</"+l[2],"g")),r=aH):void 0!==l[3]&&(r=aH):r===aH?">"===l[0]?(r=null!=s?s:sH,d=-1):void 0===l[1]?d=-2:(d=r.lastIndex-l[2].length,a=l[1],r=void 0===l[3]?aH:'"'===l[3]?dH:lH):r===dH||r===lH?r=aH:r===nH||r===rH?r=sH:(r=aH,s=void 0);const h=r===aH&&e[t+1].startsWith("/>")?" ":"";n+=r===sH?i+ZU:d>=0?(o.push(a),i.slice(0,d)+XU+i.slice(d)+YU+h):i+YU+(-2===d?(o.push(void 0),t):h)}return[fH(e,n+(e[i]||"<?>")+(2===t?"</svg>":"")),o]};class vH{constructor({strings:e,_$litType$:t},i){let o;this.parts=[];let s=0,n=0;const r=e.length-1,a=this.parts,[l,d]=_H(e,t);if(this.el=vH.createElement(l,i),gH.currentNode=this.el.content,2===t){const e=this.el.content,t=e.firstChild;t.remove(),e.append(...t.childNodes)}for(;null!==(o=gH.nextNode())&&a.length<r;){if(1===o.nodeType){if(o.hasAttributes()){const e=[];for(const t of o.getAttributeNames())if(t.endsWith(XU)||t.startsWith(YU)){const i=d[n++];if(e.push(t),void 0!==i){const e=o.getAttribute(i.toLowerCase()+XU).split(YU),t=/([.?@])?(.*)/.exec(i);a.push({type:1,index:s,name:t[2],strings:e,ctor:"."===t[1]?$H:"?"===t[1]?kH:"@"===t[1]?EH:wH})}else a.push({type:6,index:s})}for(const t of e)o.removeAttribute(t)}if(cH.test(o.tagName)){const e=o.textContent.split(YU),t=e.length-1;if(t>0){o.textContent=GU?GU.emptyScript:"";for(let i=0;i<t;i++)o.append(e[i],eH()),gH.nextNode(),a.push({type:2,index:++s});o.append(e[t],eH())}}}else if(8===o.nodeType)if(o.data===JU)a.push({type:2,index:s});else{let e=-1;for(;-1!==(e=o.data.indexOf(YU,e+1));)a.push({type:7,index:s}),e+=YU.length-1}s++}}static createElement(e,t){const i=QU.createElement("template");return i.innerHTML=e,i}}function bH(e,t,i=e,o){var s,n,r,a;if(t===pH)return t;let l=void 0!==o?null===(s=i._$Co)||void 0===s?void 0:s[o]:i._$Cl;const d=tH(t)?void 0:t._$litDirective$;return(null==l?void 0:l.constructor)!==d&&(null===(n=null==l?void 0:l._$AO)||void 0===n||n.call(l,!1),void 0===d?l=void 0:(l=new d(e),l._$AT(e,i,o)),void 0!==o?(null!==(r=(a=i)._$Co)&&void 0!==r?r:a._$Co=[])[o]=l:i._$Cl=l),void 0!==l&&(t=bH(e,l._$AS(e,t.values),l,o)),t}class yH{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){var t;const{el:{content:i},parts:o}=this._$AD,s=(null!==(t=null==e?void 0:e.creationScope)&&void 0!==t?t:QU).importNode(i,!0);gH.currentNode=s;let n=gH.nextNode(),r=0,a=0,l=o[0];for(;void 0!==l;){if(r===l.index){let t;2===l.type?t=new xH(n,n.nextSibling,this,e):1===l.type?t=new l.ctor(n,l.name,l.strings,this,e):6===l.type&&(t=new SH(n,this,e)),this._$AV.push(t),l=o[++a]}r!==(null==l?void 0:l.index)&&(n=gH.nextNode(),r++)}return gH.currentNode=QU,s}v(e){let t=0;for(const i of this._$AV)void 0!==i&&(void 0!==i.strings?(i._$AI(e,i,t),t+=i.strings.length-2):i._$AI(e[t])),t++}}class xH{constructor(e,t,i,o){var s;this.type=2,this._$AH=uH,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=i,this.options=o,this._$Cp=null===(s=null==o?void 0:o.isConnected)||void 0===s||s}get _$AU(){var e,t;return null!==(t=null===(e=this._$AM)||void 0===e?void 0:e._$AU)&&void 0!==t?t:this._$Cp}get parentNode(){let e=this._$AA.parentNode;const t=this._$AM;return void 0!==t&&11===(null==e?void 0:e.nodeType)&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=bH(this,e,t),tH(e)?e===uH||null==e||""===e?(this._$AH!==uH&&this._$AR(),this._$AH=uH):e!==this._$AH&&e!==pH&&this._(e):void 0!==e._$litType$?this.g(e):void 0!==e.nodeType?this.$(e):(e=>iH(e)||"function"==typeof(null==e?void 0:e[Symbol.iterator]))(e)?this.T(e):this._(e)}k(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}$(e){this._$AH!==e&&(this._$AR(),this._$AH=this.k(e))}_(e){this._$AH!==uH&&tH(this._$AH)?this._$AA.nextSibling.data=e:this.$(QU.createTextNode(e)),this._$AH=e}g(e){var t;const{values:i,_$litType$:o}=e,s="number"==typeof o?this._$AC(e):(void 0===o.el&&(o.el=vH.createElement(fH(o.h,o.h[0]),this.options)),o);if((null===(t=this._$AH)||void 0===t?void 0:t._$AD)===s)this._$AH.v(i);else{const e=new yH(s,this),t=e.u(this.options);e.v(i),this.$(t),this._$AH=e}}_$AC(e){let t=mH.get(e.strings);return void 0===t&&mH.set(e.strings,t=new vH(e)),t}T(e){iH(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let i,o=0;for(const s of e)o===t.length?t.push(i=new xH(this.k(eH()),this.k(eH()),this,this.options)):i=t[o],i._$AI(s),o++;o<t.length&&(this._$AR(i&&i._$AB.nextSibling,o),t.length=o)}_$AR(e=this._$AA.nextSibling,t){var i;for(null===(i=this._$AP)||void 0===i||i.call(this,!1,!0,t);e&&e!==this._$AB;){const t=e.nextSibling;e.remove(),e=t}}setConnected(e){var t;void 0===this._$AM&&(this._$Cp=e,null===(t=this._$AP)||void 0===t||t.call(this,e))}}class wH{constructor(e,t,i,o,s){this.type=1,this._$AH=uH,this._$AN=void 0,this.element=e,this.name=t,this._$AM=o,this.options=s,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=uH}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(e,t=this,i,o){const s=this.strings;let n=!1;if(void 0===s)e=bH(this,e,t,0),n=!tH(e)||e!==this._$AH&&e!==pH,n&&(this._$AH=e);else{const o=e;let r,a;for(e=s[0],r=0;r<s.length-1;r++)a=bH(this,o[i+r],t,r),a===pH&&(a=this._$AH[r]),n||(n=!tH(a)||a!==this._$AH[r]),a===uH?e=uH:e!==uH&&(e+=(null!=a?a:"")+s[r+1]),this._$AH[r]=a}n&&!o&&this.j(e)}j(e){e===uH?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=e?e:"")}}class $H extends wH{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===uH?void 0:e}}const AH=GU?GU.emptyScript:"";class kH extends wH{constructor(){super(...arguments),this.type=4}j(e){e&&e!==uH?this.element.setAttribute(this.name,AH):this.element.removeAttribute(this.name)}}class EH extends wH{constructor(e,t,i,o,s){super(e,t,i,o,s),this.type=5}_$AI(e,t=this){var i;if((e=null!==(i=bH(this,e,t,0))&&void 0!==i?i:uH)===pH)return;const o=this._$AH,s=e===uH&&o!==uH||e.capture!==o.capture||e.once!==o.once||e.passive!==o.passive,n=e!==uH&&(o===uH||s);s&&this.element.removeEventListener(this.name,this,o),n&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var t,i;"function"==typeof this._$AH?this._$AH.call(null!==(i=null===(t=this.options)||void 0===t?void 0:t.host)&&void 0!==i?i:this.element,e):this._$AH.handleEvent(e)}}class SH{constructor(e,t,i){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(e){bH(this,e)}}const CH=WU.litHtmlPolyfillSupport;null==CH||CH(vH,xH),(null!==(qU=WU.litHtmlVersions)&&void 0!==qU?qU:WU.litHtmlVersions=[]).push("2.8.0");
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */
var TH,PH;class IH extends VU{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e,t;const i=super.createRenderRoot();return null!==(e=(t=this.renderOptions).renderBefore)&&void 0!==e||(t.renderBefore=i.firstChild),i}update(e){const t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=((e,t,i)=>{var o,s;const n=null!==(o=null==i?void 0:i.renderBefore)&&void 0!==o?o:t;let r=n._$litPart$;if(void 0===r){const e=null!==(s=null==i?void 0:i.renderBefore)&&void 0!==s?s:null;n._$litPart$=r=new xH(t.insertBefore(eH(),e),e,void 0,null!=i?i:{})}return r._$AI(e),r})(t,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),null===(e=this._$Do)||void 0===e||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),null===(e=this._$Do)||void 0===e||e.setConnected(!1)}render(){return pH}}IH.finalized=!0,IH._$litElement$=!0,null===(TH=globalThis.litElementHydrateSupport)||void 0===TH||TH.call(globalThis,{LitElement:IH});const OH=globalThis.litElementPolyfillSupport;null==OH||OH({LitElement:IH}),(null!==(PH=globalThis.litElementVersions)&&void 0!==PH?PH:globalThis.litElementVersions=[]).push("3.3.3");
/**
 * @license
 * Copyright 2021 Google LLC
 * SPDX-LIcense-Identifier: Apache-2.0
 */
const RH=((e,...t)=>{const i=1===e.length?e[0]:t.reduce(((t,i,o)=>t+(e=>{if(!0===e._$cssResult$)return e.cssText;if("number"==typeof e)return e;throw Error("Value passed to 'css' function must be a 'css' function result: "+e+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+e[o+1]),e[0]);return new RU(i,e,IU)})`.mdc-top-app-bar{background-color:#6200ee;background-color:var(--mdc-theme-primary, #6200ee);color:white;display:flex;position:fixed;flex-direction:column;justify-content:space-between;box-sizing:border-box;width:100%;z-index:4}.mdc-top-app-bar .mdc-top-app-bar__action-item,.mdc-top-app-bar .mdc-top-app-bar__navigation-icon{color:#fff;color:var(--mdc-theme-on-primary, #fff)}.mdc-top-app-bar .mdc-top-app-bar__action-item::before,.mdc-top-app-bar .mdc-top-app-bar__action-item::after,.mdc-top-app-bar .mdc-top-app-bar__navigation-icon::before,.mdc-top-app-bar .mdc-top-app-bar__navigation-icon::after{background-color:#fff;background-color:var(--mdc-ripple-color, var(--mdc-theme-on-primary, #fff))}.mdc-top-app-bar .mdc-top-app-bar__action-item:hover::before,.mdc-top-app-bar .mdc-top-app-bar__action-item.mdc-ripple-surface--hover::before,.mdc-top-app-bar .mdc-top-app-bar__navigation-icon:hover::before,.mdc-top-app-bar .mdc-top-app-bar__navigation-icon.mdc-ripple-surface--hover::before{opacity:0.08;opacity:var(--mdc-ripple-hover-opacity, 0.08)}.mdc-top-app-bar .mdc-top-app-bar__action-item.mdc-ripple-upgraded--background-focused::before,.mdc-top-app-bar .mdc-top-app-bar__action-item:not(.mdc-ripple-upgraded):focus::before,.mdc-top-app-bar .mdc-top-app-bar__navigation-icon.mdc-ripple-upgraded--background-focused::before,.mdc-top-app-bar .mdc-top-app-bar__navigation-icon:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.24;opacity:var(--mdc-ripple-focus-opacity, 0.24)}.mdc-top-app-bar .mdc-top-app-bar__action-item:not(.mdc-ripple-upgraded)::after,.mdc-top-app-bar .mdc-top-app-bar__navigation-icon:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-top-app-bar .mdc-top-app-bar__action-item:not(.mdc-ripple-upgraded):active::after,.mdc-top-app-bar .mdc-top-app-bar__navigation-icon:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.24;opacity:var(--mdc-ripple-press-opacity, 0.24)}.mdc-top-app-bar .mdc-top-app-bar__action-item.mdc-ripple-upgraded,.mdc-top-app-bar .mdc-top-app-bar__navigation-icon.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.24)}.mdc-top-app-bar__row{display:flex;position:relative;box-sizing:border-box;width:100%;height:64px}.mdc-top-app-bar__section{display:inline-flex;flex:1 1 auto;align-items:center;min-width:0;padding:8px 12px;z-index:1}.mdc-top-app-bar__section--align-start{justify-content:flex-start;order:-1}.mdc-top-app-bar__section--align-end{justify-content:flex-end;order:1}.mdc-top-app-bar__title{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-headline6-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:1.25rem;font-size:var(--mdc-typography-headline6-font-size, 1.25rem);line-height:2rem;line-height:var(--mdc-typography-headline6-line-height, 2rem);font-weight:500;font-weight:var(--mdc-typography-headline6-font-weight, 500);letter-spacing:0.0125em;letter-spacing:var(--mdc-typography-headline6-letter-spacing, 0.0125em);text-decoration:inherit;text-decoration:var(--mdc-typography-headline6-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-headline6-text-transform, inherit);padding-left:20px;padding-right:0;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;z-index:1}[dir=rtl] .mdc-top-app-bar__title,.mdc-top-app-bar__title[dir=rtl]{padding-left:0;padding-right:20px}.mdc-top-app-bar--short-collapsed{border-top-left-radius:0;border-top-right-radius:0;border-bottom-right-radius:24px;border-bottom-left-radius:0}[dir=rtl] .mdc-top-app-bar--short-collapsed,.mdc-top-app-bar--short-collapsed[dir=rtl]{border-top-left-radius:0;border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:24px}.mdc-top-app-bar--short{top:0;right:auto;left:0;width:100%;transition:width 250ms cubic-bezier(0.4, 0, 0.2, 1)}[dir=rtl] .mdc-top-app-bar--short,.mdc-top-app-bar--short[dir=rtl]{right:0;left:auto}.mdc-top-app-bar--short .mdc-top-app-bar__row{height:56px}.mdc-top-app-bar--short .mdc-top-app-bar__section{padding:4px}.mdc-top-app-bar--short .mdc-top-app-bar__title{transition:opacity 200ms cubic-bezier(0.4, 0, 0.2, 1);opacity:1}.mdc-top-app-bar--short-collapsed{box-shadow:0px 2px 4px -1px rgba(0, 0, 0, 0.2),0px 4px 5px 0px rgba(0, 0, 0, 0.14),0px 1px 10px 0px rgba(0,0,0,.12);width:56px;transition:width 300ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-top-app-bar--short-collapsed .mdc-top-app-bar__title{display:none}.mdc-top-app-bar--short-collapsed .mdc-top-app-bar__action-item{transition:padding 150ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-top-app-bar--short-collapsed.mdc-top-app-bar--short-has-action-item{width:112px}.mdc-top-app-bar--short-collapsed.mdc-top-app-bar--short-has-action-item .mdc-top-app-bar__section--align-end{padding-left:0;padding-right:12px}[dir=rtl] .mdc-top-app-bar--short-collapsed.mdc-top-app-bar--short-has-action-item .mdc-top-app-bar__section--align-end,.mdc-top-app-bar--short-collapsed.mdc-top-app-bar--short-has-action-item .mdc-top-app-bar__section--align-end[dir=rtl]{padding-left:12px;padding-right:0}.mdc-top-app-bar--dense .mdc-top-app-bar__row{height:48px}.mdc-top-app-bar--dense .mdc-top-app-bar__section{padding:0 4px}.mdc-top-app-bar--dense .mdc-top-app-bar__title{padding-left:12px;padding-right:0}[dir=rtl] .mdc-top-app-bar--dense .mdc-top-app-bar__title,.mdc-top-app-bar--dense .mdc-top-app-bar__title[dir=rtl]{padding-left:0;padding-right:12px}.mdc-top-app-bar--prominent .mdc-top-app-bar__row{height:128px}.mdc-top-app-bar--prominent .mdc-top-app-bar__title{align-self:flex-end;padding-bottom:2px}.mdc-top-app-bar--prominent .mdc-top-app-bar__action-item,.mdc-top-app-bar--prominent .mdc-top-app-bar__navigation-icon{align-self:flex-start}.mdc-top-app-bar--fixed{transition:box-shadow 200ms linear}.mdc-top-app-bar--fixed-scrolled{box-shadow:0px 2px 4px -1px rgba(0, 0, 0, 0.2),0px 4px 5px 0px rgba(0, 0, 0, 0.14),0px 1px 10px 0px rgba(0,0,0,.12);transition:box-shadow 200ms linear}.mdc-top-app-bar--dense.mdc-top-app-bar--prominent .mdc-top-app-bar__row{height:96px}.mdc-top-app-bar--dense.mdc-top-app-bar--prominent .mdc-top-app-bar__section{padding:0 12px}.mdc-top-app-bar--dense.mdc-top-app-bar--prominent .mdc-top-app-bar__title{padding-left:20px;padding-right:0;padding-bottom:9px}[dir=rtl] .mdc-top-app-bar--dense.mdc-top-app-bar--prominent .mdc-top-app-bar__title,.mdc-top-app-bar--dense.mdc-top-app-bar--prominent .mdc-top-app-bar__title[dir=rtl]{padding-left:0;padding-right:20px}.mdc-top-app-bar--fixed-adjust{padding-top:64px}.mdc-top-app-bar--dense-fixed-adjust{padding-top:48px}.mdc-top-app-bar--short-fixed-adjust{padding-top:56px}.mdc-top-app-bar--prominent-fixed-adjust{padding-top:128px}.mdc-top-app-bar--dense-prominent-fixed-adjust{padding-top:96px}@media(max-width: 599px){.mdc-top-app-bar__row{height:56px}.mdc-top-app-bar__section{padding:4px}.mdc-top-app-bar--short{transition:width 200ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-top-app-bar--short-collapsed{transition:width 250ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-top-app-bar--short-collapsed .mdc-top-app-bar__section--align-end{padding-left:0;padding-right:12px}[dir=rtl] .mdc-top-app-bar--short-collapsed .mdc-top-app-bar__section--align-end,.mdc-top-app-bar--short-collapsed .mdc-top-app-bar__section--align-end[dir=rtl]{padding-left:12px;padding-right:0}.mdc-top-app-bar--prominent .mdc-top-app-bar__title{padding-bottom:6px}.mdc-top-app-bar--fixed-adjust{padding-top:56px}}:host{display:block}.mdc-top-app-bar{color:#fff;color:var(--mdc-theme-on-primary, #fff);width:100%;width:var(--mdc-top-app-bar-width, 100%)}.mdc-top-app-bar--prominent #navigation ::slotted(*),.mdc-top-app-bar--prominent #actions ::slotted(*){align-self:flex-start}#navigation ::slotted(*),#actions ::slotted(*){--mdc-icon-button-ripple-opacity: 0.24}.mdc-top-app-bar--short-collapsed #actions ::slotted(*){transition:padding 150ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-top-app-bar__section--align-center{justify-content:center}.mdc-top-app-bar__section--align-center .mdc-top-app-bar__title{padding-left:0;padding-right:0}.center-title .mdc-top-app-bar__section--align-start,.center-title .mdc-top-app-bar__section--align-end{flex-basis:0}.mdc-top-app-bar--dense.mdc-top-app-bar--prominent .mdc-top-app-bar__section--align-center .mdc-top-app-bar__title{padding-left:0;padding-right:0}.mdc-top-app-bar--fixed-scrolled{box-shadow:var(--mdc-top-app-bar-fixed-box-shadow, 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12))}`
/**
 * @license
 * Copyright 2018 Google Inc.
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 * THE SOFTWARE.
 */;var NH={FIXED_CLASS:"mdc-top-app-bar--fixed",FIXED_SCROLLED_CLASS:"mdc-top-app-bar--fixed-scrolled",SHORT_CLASS:"mdc-top-app-bar--short",SHORT_COLLAPSED_CLASS:"mdc-top-app-bar--short-collapsed",SHORT_HAS_ACTION_ITEM_CLASS:"mdc-top-app-bar--short-has-action-item"},LH={DEBOUNCE_THROTTLE_RESIZE_TIME_MS:100,MAX_TOP_APP_BAR_HEIGHT:128},MH={ACTION_ITEM_SELECTOR:".mdc-top-app-bar__action-item",NAVIGATION_EVENT:"MDCTopAppBar:nav",NAVIGATION_ICON_SELECTOR:".mdc-top-app-bar__navigation-icon",ROOT_SELECTOR:".mdc-top-app-bar",TITLE_SELECTOR:".mdc-top-app-bar__title"},UH=function(e){function o(t){return e.call(this,i(i({},o.defaultAdapter),t))||this}return t(o,e),Object.defineProperty(o,"strings",{get:function(){return MH},enumerable:!1,configurable:!0}),Object.defineProperty(o,"cssClasses",{get:function(){return NH},enumerable:!1,configurable:!0}),Object.defineProperty(o,"numbers",{get:function(){return LH},enumerable:!1,configurable:!0}),Object.defineProperty(o,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},hasClass:function(){return!1},setStyle:function(){},getTopAppBarHeight:function(){return 0},notifyNavigationIconClicked:function(){},getViewportScrollY:function(){return 0},getTotalActionItems:function(){return 0}}},enumerable:!1,configurable:!0}),o.prototype.handleTargetScroll=function(){},o.prototype.handleWindowResize=function(){},o.prototype.handleNavigationClick=function(){this.adapter.notifyNavigationIconClicked()},o}(xo),HH=function(e){function i(t){var i=e.call(this,t)||this;return i.wasDocked=!0,i.isDockedShowing=!0,i.currentAppBarOffsetTop=0,i.isCurrentlyBeingResized=!1,i.resizeThrottleId=0,i.resizeDebounceId=0,i.lastScrollPosition=i.adapter.getViewportScrollY(),i.topAppBarHeight=i.adapter.getTopAppBarHeight(),i}return t(i,e),i.prototype.destroy=function(){e.prototype.destroy.call(this),this.adapter.setStyle("top","")},i.prototype.handleTargetScroll=function(){var e=Math.max(this.adapter.getViewportScrollY(),0),t=e-this.lastScrollPosition;this.lastScrollPosition=e,this.isCurrentlyBeingResized||(this.currentAppBarOffsetTop-=t,this.currentAppBarOffsetTop>0?this.currentAppBarOffsetTop=0:Math.abs(this.currentAppBarOffsetTop)>this.topAppBarHeight&&(this.currentAppBarOffsetTop=-this.topAppBarHeight),this.moveTopAppBar())},i.prototype.handleWindowResize=function(){var e=this;this.resizeThrottleId||(this.resizeThrottleId=setTimeout((function(){e.resizeThrottleId=0,e.throttledResizeHandler()}),LH.DEBOUNCE_THROTTLE_RESIZE_TIME_MS)),this.isCurrentlyBeingResized=!0,this.resizeDebounceId&&clearTimeout(this.resizeDebounceId),this.resizeDebounceId=setTimeout((function(){e.handleTargetScroll(),e.isCurrentlyBeingResized=!1,e.resizeDebounceId=0}),LH.DEBOUNCE_THROTTLE_RESIZE_TIME_MS)},i.prototype.checkForUpdate=function(){var e=-this.topAppBarHeight,t=this.currentAppBarOffsetTop<0,i=this.currentAppBarOffsetTop>e,o=t&&i;if(o)this.wasDocked=!1;else{if(!this.wasDocked)return this.wasDocked=!0,!0;if(this.isDockedShowing!==i)return this.isDockedShowing=i,!0}return o},i.prototype.moveTopAppBar=function(){if(this.checkForUpdate()){var e=this.currentAppBarOffsetTop;Math.abs(e)>=this.topAppBarHeight&&(e=-LH.MAX_TOP_APP_BAR_HEIGHT),this.adapter.setStyle("top",e+"px")}},i.prototype.throttledResizeHandler=function(){var e=this.adapter.getTopAppBarHeight();this.topAppBarHeight!==e&&(this.wasDocked=!1,this.currentAppBarOffsetTop-=this.topAppBarHeight-e,this.topAppBarHeight=e),this.handleTargetScroll()},i}(UH);
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */
const DH=(e,t)=>"method"===t.kind&&t.descriptor&&!("value"in t.descriptor)?{...t,finisher(i){i.createProperty(t.key,e)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:t.key,initializer(){"function"==typeof t.initializer&&(this[t.key]=t.initializer.call(this))},finisher(i){i.createProperty(t.key,e)}};function zH(e){return(t,i)=>void 0!==i?((e,t,i)=>{t.constructor.createProperty(i,e)})(e,t,i):DH(e,t)
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */}
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */
function BH(e,t){return(({finisher:e,descriptor:t})=>(i,o)=>{var s;if(void 0===o){const o=null!==(s=i.originalKey)&&void 0!==s?s:i.key,n=null!=t?{kind:"method",placement:"prototype",key:o,descriptor:t(i.key)}:{...i,key:o};return null!=e&&(n.finisher=function(t){e(t,o)}),n}{const s=i.constructor;void 0!==t&&Object.defineProperty(i,o,t(o)),null==e||e(s,o)}})({descriptor:t=>{const i={get(){var t,i;return null!==(i=null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector(e))&&void 0!==i?i:null},enumerable:!0,configurable:!0};return i}})}
/**
 * @license
 * Copyright 2021 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */var FH;null===(FH=window.HTMLSlotElement)||void 0===FH||FH.prototype.assignedElements;
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */
const jH=1;class VH{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,i){this._$Ct=e,this._$AM=t,this._$Ci=i}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}}
/**
 * @license
 * Copyright 2018 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */const qH=(e=>(...t)=>({_$litDirective$:e,values:t}))(class extends VH{constructor(e){var t;if(super(e),e.type!==jH||"class"!==e.name||(null===(t=e.strings)||void 0===t?void 0:t.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(e){return" "+Object.keys(e).filter((t=>e[t])).join(" ")+" "}update(e,[t]){var i,o;if(void 0===this.it){this.it=new Set,void 0!==e.strings&&(this.nt=new Set(e.strings.join(" ").split(/\s/).filter((e=>""!==e))));for(const e in t)t[e]&&!(null===(i=this.nt)||void 0===i?void 0:i.has(e))&&this.it.add(e);return this.render(t)}const s=e.element.classList;this.it.forEach((e=>{e in t||(s.remove(e),this.it.delete(e))}));for(const e in t){const i=!!t[e];i===this.it.has(e)||(null===(o=this.nt)||void 0===o?void 0:o.has(e))||(i?(s.add(e),this.it.add(e)):(s.remove(e),this.it.delete(e)))}return pH}}),WH=_o?{passive:!0}:void 0;
/**
 * @license
 * Copyright 2019 Google LLC
 * SPDX-License-Identifier: Apache-2.0
 */class GH extends yo{constructor(){super(...arguments),this.centerTitle=!1,this.handleTargetScroll=()=>{this.mdcFoundation.handleTargetScroll()},this.handleNavigationClick=()=>{this.mdcFoundation.handleNavigationClick()}}get scrollTarget(){return this._scrollTarget||window}set scrollTarget(e){this.unregisterScrollListener();const t=this.scrollTarget;this._scrollTarget=e,this.updateRootPosition(),this.requestUpdate("scrollTarget",t),this.registerScrollListener()}updateRootPosition(){if(this.mdcRoot){const e=this.scrollTarget===window;this.mdcRoot.style.position=e?"":"absolute"}}render(){let e=hH`<span class="mdc-top-app-bar__title"><slot name="title"></slot></span>`;return this.centerTitle&&(e=hH`<section class="mdc-top-app-bar__section mdc-top-app-bar__section--align-center">${e}</section>`),hH`
        <style>
         .mdc-top-app-bar {
            width: calc(100% - var(--mdc-drawer-width, 256px));
            }
            .mdc-top-app-bar__title {
            padding-left: 0;
            }
            .mdc-top-app-bar--prominent .mdc-top-app-bar__row {
            height: 96px;
            }
            .mdc-top-app-bar--prominent-fixed-adjust {
            padding-top: 96px;
            }

            /* min-width for mobile-view */
            @media screen and (max-width: 375px) {
            .mdc-top-app-bar {
                min-width: 375px !important;
            }
        }
        </style>
    <div class="mdc-top-app-bar--fixed-adjust"></div>
      <header class="mdc-top-app-bar ${qH(this.barClasses())}">
      <div class="mdc-top-app-bar__row">
        <section class="mdc-top-app-bar__section mdc-top-app-bar__section--align-start" id="navigation">
          <slot name="navigationIcon"
            @click=${this.handleNavigationClick}></slot>
          ${this.centerTitle?null:e}
        </section>
        ${this.centerTitle?e:null}
        <section class="mdc-top-app-bar__section mdc-top-app-bar__section--align-end" id="actions" role="toolbar">
          <slot name="actionItems"></slot>
        </section>
      </div>
    </header>
    <div class="${qH(this.contentClasses())}">
      <slot></slot>
    </div>
    `}createAdapter(){return Object.assign(Object.assign({},uo(this.mdcRoot)),{setStyle:(e,t)=>this.mdcRoot.style.setProperty(e,t),getTopAppBarHeight:()=>this.mdcRoot.clientHeight,notifyNavigationIconClicked:()=>{this.dispatchEvent(new Event(MH.NAVIGATION_EVENT,{bubbles:!0,cancelable:!0}))},getViewportScrollY:()=>this.scrollTarget instanceof Window?this.scrollTarget.pageYOffset:this.scrollTarget.scrollTop,getTotalActionItems:()=>this._actionItemsSlot.assignedNodes({flatten:!0}).length})}registerListeners(){this.registerScrollListener()}unregisterListeners(){this.unregisterScrollListener()}registerScrollListener(){this.scrollTarget.addEventListener("scroll",this.handleTargetScroll,WH)}unregisterScrollListener(){this.scrollTarget.removeEventListener("scroll",this.handleTargetScroll)}firstUpdated(){super.firstUpdated(),this.updateRootPosition(),this.registerListeners()}disconnectedCallback(){super.disconnectedCallback(),this.unregisterListeners()}}o([BH(".mdc-top-app-bar")],GH.prototype,"mdcRoot",void 0),o([BH('slot[name="actionItems"]')],GH.prototype,"_actionItemsSlot",void 0),o([zH({type:Boolean})],GH.prototype,"centerTitle",void 0),o([zH({type:Object})],GH.prototype,"scrollTarget",null);
/**
 * @license
 * Copyright 2018 Google LLC
 * SPDX-License-Identifier: Apache-2.0
 */
class KH extends GH{constructor(){super(...arguments),this.mdcFoundationClass=HH,this.prominent=!1,this.dense=!1,this.handleResize=()=>{this.mdcFoundation.handleWindowResize()}}barClasses(){return{"mdc-top-app-bar--dense":this.dense,"mdc-top-app-bar--prominent":this.prominent,"center-title":this.centerTitle}}contentClasses(){return{"mdc-top-app-bar--fixed-adjust":!this.dense&&!this.prominent,"mdc-top-app-bar--dense-fixed-adjust":this.dense&&!this.prominent,"mdc-top-app-bar--prominent-fixed-adjust":!this.dense&&this.prominent,"mdc-top-app-bar--dense-prominent-fixed-adjust":this.dense&&this.prominent}}registerListeners(){super.registerListeners(),window.addEventListener("resize",this.handleResize,WH)}unregisterListeners(){super.unregisterListeners(),window.removeEventListener("resize",this.handleResize)}}o([zH({type:Boolean,reflect:!0})],KH.prototype,"prominent",void 0),o([zH({type:Boolean,reflect:!0})],KH.prototype,"dense",void 0);
/**
 * @license
 * Copyright 2018 Google Inc.
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 * THE SOFTWARE.
 */
var XH=function(e){function i(){var t=null!==e&&e.apply(this,arguments)||this;return t.wasScrolled=!1,t}return t(i,e),i.prototype.handleTargetScroll=function(){this.adapter.getViewportScrollY()<=0?this.wasScrolled&&(this.adapter.removeClass(NH.FIXED_SCROLLED_CLASS),this.wasScrolled=!1):this.wasScrolled||(this.adapter.addClass(NH.FIXED_SCROLLED_CLASS),this.wasScrolled=!0)},i}(HH);
/**
 * @license
 * Copyright 2019 Google LLC
 * SPDX-License-Identifier: Apache-2.0
 */class YH extends KH{constructor(){super(...arguments),this.mdcFoundationClass=XH}barClasses(){return Object.assign(Object.assign({},super.barClasses()),{"mdc-top-app-bar--fixed":!0})}registerListeners(){this.scrollTarget.addEventListener("scroll",this.handleTargetScroll,WH)}unregisterListeners(){this.scrollTarget.removeEventListener("scroll",this.handleTargetScroll)}}
/**
 * @license
 * Copyright 2019 Google LLC
 * SPDX-License-Identifier: Apache-2.0
 */let JH=class extends YH{};JH.styles=[RH],JH=o([(e=>t=>"function"==typeof t?((e,t)=>(customElements.define(e,t),t))(e,t):((e,t)=>{const{kind:i,elements:o}=t;return{kind:i,elements:o,finisher(t){customElements.define(e,t)}}})(e,t))("mwc-top-app-bar-fixed")],JH);kE("vaadin-tooltip-overlay",[ME,A`
  :host {
    --vaadin-tooltip-offset-top: var(--lumo-space-xs);
    --vaadin-tooltip-offset-bottom: var(--lumo-space-xs);
    --vaadin-tooltip-offset-start: var(--lumo-space-xs);
    --vaadin-tooltip-offset-end: var(--lumo-space-xs);
  }

  [part='overlay'] {
    background: var(--lumo-base-color) linear-gradient(var(--lumo-contrast-5pct), var(--lumo-contrast-5pct));
    color: var(--lumo-body-text-color);
    font-size: var(--lumo-font-size-xs);
    line-height: var(--lumo-line-height-s);
  }

  [part='content'] {
    padding: var(--lumo-space-xs) var(--lumo-space-s);
  }
`],{moduleId:"lumo-tooltip-overlay"});
/**
 * @license
 * Copyright (c) 2022 - 2023 Vaadin Ltd.
 * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
 */
const ZH=e=>class extends(sP(GT(e))){static get properties(){return{position:{type:String,reflectToAttribute:!0}}}requestContentUpdate(){if(super.requestContentUpdate(),this.toggleAttribute("hidden",""===this.textContent.trim()),this.positionTarget&&this.owner){const e=getComputedStyle(this.owner);["top","bottom","start","end"].forEach((t=>{this.style.setProperty(`--vaadin-tooltip-offset-${t}`,e.getPropertyValue(`--vaadin-tooltip-offset-${t}`))}))}}_updatePosition(){if(super._updatePosition(),this.positionTarget){if("bottom"===this.position||"top"===this.position){const e=this.positionTarget.getBoundingClientRect(),t=this.$.overlay.getBoundingClientRect(),i=e.width/2-t.width/2;if(this.style.left){const e=t.left+i;e>0&&(this.style.left=`${e}px`)}if(this.style.right){const e=parseFloat(this.style.right)+i;e>0&&(this.style.right=`${e}px`)}}if("start"===this.position||"end"===this.position){const e=this.positionTarget.getBoundingClientRect(),t=this.$.overlay.getBoundingClientRect(),i=e.height/2-t.height/2;this.style.top=`${t.top+i}px`}}}}
/**
 * @license
 * Copyright (c) 2022 - 2023 Vaadin Ltd.
 * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
 */;
/**
 * @license
 * Copyright (c) 2022 - 2023 Vaadin Ltd.
 * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
 */
kE("vaadin-tooltip-overlay",[KT,A`
  :host {
    z-index: 1100;
  }

  [part='overlay'] {
    max-width: 40ch;
  }

  :host([position^='top'][top-aligned]) [part='overlay'],
  :host([position^='bottom'][top-aligned]) [part='overlay'] {
    margin-top: var(--vaadin-tooltip-offset-top, 0);
  }

  :host([position^='top'][bottom-aligned]) [part='overlay'],
  :host([position^='bottom'][bottom-aligned]) [part='overlay'] {
    margin-bottom: var(--vaadin-tooltip-offset-bottom, 0);
  }

  :host([position^='start'][start-aligned]) [part='overlay'],
  :host([position^='end'][start-aligned]) [part='overlay'] {
    margin-inline-start: var(--vaadin-tooltip-offset-start, 0);
  }

  :host([position^='start'][end-aligned]) [part='overlay'],
  :host([position^='end'][end-aligned]) [part='overlay'] {
    margin-inline-end: var(--vaadin-tooltip-offset-end, 0);
  }

  @media (forced-colors: active) {
    [part='overlay'] {
      outline: 1px dashed;
    }
  }
`],{moduleId:"vaadin-tooltip-overlay-styles"});class QH extends(ZH(sT(PE(eT)))){static get is(){return"vaadin-tooltip-overlay"}static get template(){return ZC`
      <div id="backdrop" part="backdrop" hidden></div>
      <div part="overlay" id="overlay">
        <div part="content" id="content"><slot></slot></div>
      </div>
    `}ready(){super.ready(),this.owner=this.__dataHost,this.owner._overlayElement=this}}yE(QH);
/**
 * @license
 * Copyright (c) 2022 - 2023 Vaadin Ltd.
 * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
 */
const eD=500;let tD=eD,iD=eD,oD=eD;const sD=new Set;let nD=!1,rD=null,aD=null;class lD{constructor(e){this.host=e}get openedProp(){return this.host.manual?"opened":"_autoOpened"}get focusDelay(){const e=this.host;return null!=e.focusDelay&&e.focusDelay>0?e.focusDelay:tD}get hoverDelay(){const e=this.host;return null!=e.hoverDelay&&e.hoverDelay>0?e.hoverDelay:iD}get hideDelay(){const e=this.host;return null!=e.hideDelay&&e.hideDelay>0?e.hideDelay:oD}get isClosing(){return sD.has(this.host)}open(e={immediate:!1}){const{immediate:t,hover:i,focus:o}=e,s=i&&this.hoverDelay>0,n=o&&this.focusDelay>0;t||!s&&!n||this.__closeTimeout?this.__showTooltip():this.__warmupTooltip(n)}close(e){!e&&this.hideDelay>0?this.__scheduleClose():(this.__abortClose(),this._setOpened(!1)),this.__abortWarmUp(),nD&&(this.__abortCooldown(),this.__scheduleCooldown())}_isOpened(){return this.host[this.openedProp]}_setOpened(e){this.host[this.openedProp]=e}__flushClosingTooltips(){sD.forEach((e=>{e._stateController.close(!0),sD.delete(e)}))}__showTooltip(){this.__abortClose(),this.__flushClosingTooltips(),this._setOpened(!0),nD=!0,this.__abortWarmUp(),this.__abortCooldown()}__warmupTooltip(e){this._isOpened()||(nD?this.__showTooltip():this.__scheduleWarmUp(e))}__abortClose(){this.__closeTimeout&&(clearTimeout(this.__closeTimeout),this.__closeTimeout=null)}__abortCooldown(){aD&&(clearTimeout(aD),aD=null)}__abortWarmUp(){rD&&(clearTimeout(rD),rD=null)}__scheduleClose(){this._isOpened()&&(sD.add(this.host),this.__closeTimeout=setTimeout((()=>{sD.delete(this.host),this.__closeTimeout=null,this._setOpened(!1)}),this.hideDelay))}__scheduleCooldown(){aD=setTimeout((()=>{aD=null,nD=!1}),this.hideDelay)}__scheduleWarmUp(e){const t=e?this.focusDelay:this.hoverDelay;rD=setTimeout((()=>{rD=null,nD=!0,this.__showTooltip()}),t)}}const dD=e=>class extends(_I(e)){static get properties(){return{ariaTarget:{type:Object},context:{type:Object,value:()=>({})},focusDelay:{type:Number},for:{type:String,observer:"__forChanged"},generator:{type:Object},hideDelay:{type:Number},hoverDelay:{type:Number},manual:{type:Boolean,value:!1,sync:!0},opened:{type:Boolean,value:!1,sync:!0},position:{type:String},shouldShow:{type:Object,value:()=>(e,t)=>!0},target:{type:Object,observer:"__targetChanged"},text:{type:String,observer:"__textChanged"},_autoOpened:{type:Boolean,observer:"__autoOpenedChanged",sync:!0},_effectiveAriaTarget:{type:Object,computed:"__computeAriaTarget(ariaTarget, target)",observer:"__effectiveAriaTargetChanged"},__effectivePosition:{type:String,computed:"__computePosition(position, _position)"},__isTargetHidden:{type:Boolean,value:!1},_isConnected:{type:Boolean,sync:!0},_position:{type:String,value:"bottom"},_srLabel:{type:Object},_overlayContent:{type:String}}}static get observers(){return["__generatorChanged(_overlayElement, generator, context)","__updateSrLabelText(_srLabel, _overlayContent)"]}static setDefaultFocusDelay(e){tD=null!=e&&e>=0?e:eD}static setDefaultHideDelay(e){oD=null!=e&&e>=0?e:eD}static setDefaultHoverDelay(e){iD=null!=e&&e>=0?e:eD}constructor(){super(),this._uniqueId=`vaadin-tooltip-${dP()}`,this._renderer=this.__tooltipRenderer.bind(this),this.__onFocusin=this.__onFocusin.bind(this),this.__onFocusout=this.__onFocusout.bind(this),this.__onMouseDown=this.__onMouseDown.bind(this),this.__onMouseEnter=this.__onMouseEnter.bind(this),this.__onMouseLeave=this.__onMouseLeave.bind(this),this.__onKeyDown=this.__onKeyDown.bind(this),this.__onOverlayOpen=this.__onOverlayOpen.bind(this),this.__targetVisibilityObserver=new IntersectionObserver((e=>{e.forEach((e=>this.__onTargetVisibilityChange(e.isIntersecting)))}),{threshold:0}),this._stateController=new lD(this)}connectedCallback(){super.connectedCallback(),this._isConnected=!0,document.body.addEventListener("vaadin-overlay-open",this.__onOverlayOpen)}disconnectedCallback(){super.disconnectedCallback(),this._autoOpened&&this._stateController.close(!0),this._isConnected=!1,document.body.removeEventListener("vaadin-overlay-open",this.__onOverlayOpen)}ready(){super.ready(),this._srLabelController=new MP(this,"sr-label","div",{initializer:e=>{e.id=this._uniqueId,e.setAttribute("role","tooltip"),this._srLabel=e}}),this.addController(this._srLabelController)}__computeHorizontalAlign(e){return["top-end","bottom-end","start-top","start","start-bottom"].includes(e)?"end":"start"}__computeNoHorizontalOverlap(e){return["start-top","start","start-bottom","end-top","end","end-bottom"].includes(e)}__computeNoVerticalOverlap(e){return["top-start","top-end","top","bottom-start","bottom","bottom-end"].includes(e)}__computeVerticalAlign(e){return["top-start","top-end","top","start-bottom","end-bottom"].includes(e)?"bottom":"top"}__computeOpened(e,t,i,o){return o&&(e?t:i)}__computePosition(e,t){return e||t}__autoOpenedChanged(e,t){e?document.addEventListener("keydown",this.__onKeyDown,!0):t&&document.removeEventListener("keydown",this.__onKeyDown,!0)}__forChanged(e){e&&(this.__setTargetByIdDebouncer=bP.debounce(this.__setTargetByIdDebouncer,_P,(()=>this.__setTargetById(e))))}__setTargetById(e){if(!this.isConnected)return;const t=this.getRootNode().getElementById(e);t?this.target=t:console.warn(`No element with id="${e}" found to show tooltip.`)}__targetChanged(e,t){t&&(t.removeEventListener("mouseenter",this.__onMouseEnter),t.removeEventListener("mouseleave",this.__onMouseLeave),t.removeEventListener("focusin",this.__onFocusin),t.removeEventListener("focusout",this.__onFocusout),t.removeEventListener("mousedown",this.__onMouseDown),this.__targetVisibilityObserver.unobserve(t)),e&&(e.addEventListener("mouseenter",this.__onMouseEnter),e.addEventListener("mouseleave",this.__onMouseLeave),e.addEventListener("focusin",this.__onFocusin),e.addEventListener("focusout",this.__onFocusout),e.addEventListener("mousedown",this.__onMouseDown),requestAnimationFrame((()=>{this.__targetVisibilityObserver.observe(e)})))}__onFocusin(e){this.manual||RT()&&(this.target.contains(e.relatedTarget)||this.__isShouldShow()&&(this.__focusInside=!0,this.__isTargetHidden||this.__hoverInside&&this._autoOpened||this._stateController.open({focus:!0})))}__onFocusout(e){this.manual||this.target.contains(e.relatedTarget)||(this.__focusInside=!1,this.__hoverInside||this._stateController.close(!0))}__onKeyDown(e){"Escape"===e.key&&(e.stopPropagation(),this._stateController.close(!0))}__onMouseDown(){this._stateController.close(!0)}__onMouseEnter(){this.manual||this.__isShouldShow()&&(this.__hoverInside||(this.__hoverInside=!0,this.__isTargetHidden||this.__focusInside&&this._autoOpened||this._stateController.open({hover:!0})))}__onMouseLeave(e){e.relatedTarget!==this._overlayElement&&this.__handleMouseLeave()}__onOverlayMouseEnter(){this._stateController.isClosing&&this._stateController.open({immediate:!0})}__onOverlayMouseLeave(e){e.relatedTarget!==this.target&&this.__handleMouseLeave()}__handleMouseLeave(){this.manual||(this.__hoverInside=!1,this.__focusInside||this._stateController.close())}__onOverlayOpen(){this.manual||this._overlayElement.opened&&!this._overlayElement._last&&this._stateController.close(!0)}__onTargetVisibilityChange(e){const t=this.__isTargetHidden;this.__isTargetHidden=!e,t&&e&&(this.__focusInside||this.__hoverInside)?this._stateController.open({immediate:!0}):!e&&this._autoOpened&&this._stateController.close(!0)}__isShouldShow(){return"function"!=typeof this.shouldShow||!0===this.shouldShow(this.target,this.context)}__textChanged(e,t){this._overlayElement&&(e||t)&&this._overlayElement.requestContentUpdate()}__tooltipRenderer(e){e.textContent="function"==typeof this.generator?this.generator(this.context):this.text,this._overlayContent=e.textContent}__computeAriaTarget(e,t){return(Array.isArray(e)?e.some((e=>e&&e.nodeType===Node.ELEMENT_NODE)):e)?e:t}__effectiveAriaTargetChanged(e,t){t&&[t].flat().forEach((e=>{eP(e,"aria-describedby",this._uniqueId)})),e&&[e].flat().forEach((e=>{QT(e,"aria-describedby",this._uniqueId)}))}__generatorChanged(e,t,i){e&&(t===this.__oldTextGenerator&&i===this.__oldContext||e.requestContentUpdate(),this.__oldTextGenerator=t,this.__oldContext=i)}__updateSrLabelText(e,t){e&&(e.textContent=t)}}
/**
 * @license
 * Copyright (c) 2022 - 2023 Vaadin Ltd.
 * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
 */;class cD extends(dD(wE(NP(jT(eT))))){static get is(){return"vaadin-tooltip"}static get template(){return ZC`
      <style>
        :host {
          display: none;
        }
      </style>
      <vaadin-tooltip-overlay
        renderer="[[_renderer]]"
        theme$="[[_theme]]"
        opened="[[__computeOpened(manual, opened, _autoOpened, _isConnected)]]"
        position-target="[[target]]"
        position="[[__effectivePosition]]"
        no-horizontal-overlap$="[[__computeNoHorizontalOverlap(__effectivePosition)]]"
        no-vertical-overlap$="[[__computeNoVerticalOverlap(__effectivePosition)]]"
        horizontal-align="[[__computeHorizontalAlign(__effectivePosition)]]"
        vertical-align="[[__computeVerticalAlign(__effectivePosition)]]"
        on-mouseenter="__onOverlayMouseEnter"
        on-mouseleave="__onOverlayMouseLeave"
        modeless
      ></vaadin-tooltip-overlay>

      <slot name="sr-label"></slot>
    `}}function hD(e,t,i,o){void 0===o&&(o=!1);for(var s,n,r=0,a="",l=t;n=l.exec(e);)s=e.substring(r,n.index),r=l.lastIndex,a+=s,a+=i&&"function"==typeof i?i(e,n):i;return a+=e.substring(r),l.test(a)&&!0===o?hD(a,new RegExp(l),i,!0):a}function pD(e){var t=new RegExp("^[ \t]*(.+?) *[=:] *(?:\"((?!\")[\\w\\W]+?)\"|'{3,}((?!'{3,})[\\w\\W]+?)'{3,}|(\\[[\\w\\W]+?(?:(?: *])+ *$\\n*)+)|(\\{[\\w\\W]+?(?:(?: *})+ *$\\n*)+)|(.+) *)|^(.+)$","gm"),i={};return hD(e,t,(function(e,t){var o,s;if(t[1]){if("#"===t[1].charAt(0))return;return o='"'===t[1].charAt(0)&&'"'===t[1].charAt(t[1].length-1)?t[1].slice(1,-1):t[1],(t[2]||t[3])&&(s=t[2]||t[3].replace(/^(\s*)(__>>\[<<__)/gm,"$1[")),(t[4]||t[5])&&(s=JSON.parse(""+(t[4]||t[5]))),t[6]&&(t[6]=t[6].trim(),s=+t[6]==+t[6]?Number(t[6]):"true"===t[6]||"false"===t[6]?"true"===t[6]:"inf"===t[6]||"+inf"===t[6]?1/0:"-inf"===t[6]?-1/0:parseInt(t[6],16).toString(16)===t[6].toLowerCase()?parseInt(t[6],16):parseInt(t[6],8).toString(8)===t[6].toLowerCase()?parseInt(t[6],8):parseInt(t[6],2).toString(2)===t[6].toLowerCase()?parseInt(t[6],2):t[6]),i[o]=s,""}if(t[7])return""})),i}function uD(e,t,i,o){o=!!o,t.split&&(t=t.split("."));for(var s,n=0,r=t.length,a=e;n<r;++n)t[n]=t[n].trim(),t[n]='"'===t[n].substr(0,1)&&'"'===t[n].substr(-1)?t[n].slice(1,-1):t[n],a instanceof Array?(s=a[a.length-1],n--):s=a[t[n]],n===r-1?s instanceof Array?a[t[n]].push(i):a[t[n]]=o?[i]:i:a=s instanceof Array?s:a[t[n]]=null==s?{}:s}yE(cD);var mD=function(e,t){return t!=t?"__>>NaN<<__":t===1/0?"__>>Inf<<__":t===-1/0?"__>>-Inf<<__":t},gD=function(e,t){return"__>>NaN<<__"===t?NaN:"__>>Inf<<__"===t?1/0:"__>>-Inf<<__"===t?-1/0:t};
/**
@license
Copyright (c) 2018 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/
const fD=e=>t=>class extends t{connectedCallback(){super.connectedCallback&&super.connectedCallback(),this._storeUnsubscribe=e.subscribe((()=>this.stateChanged(e.getState()))),this.stateChanged(e.getState())}disconnectedCallback(){this._storeUnsubscribe(),super.disconnectedCallback&&super.disconnectedCallback()}stateChanged(e){}}
/**
@license
Copyright (c) 2018 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/;Ge({loader:e=>fetch(`/resources/i18n/${e}.json`).then((e=>e.json()))}),globalThis.backendaioptions=new CI,globalThis.backendaimetadata=new _E,globalThis.tasker=new rR,globalThis.backendaiutils=new Sl;let _D=class extends(fD(ze)(ke)){constructor(){super(),this.hasLoadedStrings=!1,this.menuTitle="LOGIN REQUIRED",this.siteDescription="",this.user_id="DISCONNECTED",this.full_name="DISCONNECTED",this.domain="CLICK TO CONNECT",this.is_connected=!1,this.is_admin=!1,this.is_superadmin=!1,this.allow_signout=!1,this.needPasswordChange=!1,this.proxy_url="",this.connection_mode="API",this.connection_server="",this.edition="Open Source",this.validUntil="",this.groups=[],this.plugins=Object(),this.fasttrackEndpoint="",this._page="",this._lazyPage="",this._pageParams={},this._sidepanel="",this._offlineIndicatorOpened=!1,this._offline=!1,this.config=Object(),this.mini_ui=!1,this.auto_logout=!1,this.isHideAgents=!0,this.supportServing=!1,this.supportUserCommittedImage=!1,this.lang="default",this.supportLanguageCodes=["en","ko","de","el","es","fi","fr","id","it","ja","mn","ms","pl","pt","pt-BR","ru","tr","vi","zh-CN","zh-TW"],this.minibarWidth=88,this.sidebarWidth=250,this.sidepanelWidth=250,this.supports=Object(),this.availablePages=["summary","verify-email","change-password","job","data","my-environment","agent-summary","statistics","usersettings","credential","environment","agent","resource-policy","storage-settings","settings","maintenance","serving","information","github","import","unauthorized","session","session/start"],this.adminOnlyPages=["experiment","credential","environment","resource-policy"],this.superAdminOnlyPages=["agent","storage-settings","settings","maintenance","information"],this.timeoutSec=5,this.loggedAccount=Object(),this.roleInfo=Object(),this.keyPairInfo=Object(),this.isOpenUserProfileDialog=!1,this.isOpenSignoutDialog=!1,this._refreshPage=this.refreshPage.bind(this),this.blockedMenuItem=[],this.inactiveMenuItem=[]}static get styles(){return[bE,Se,Te,Pe,Ie]}firstUpdated(){var e,t,i,o,s,n;let r;globalThis.lablupNotification=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelector("#notification"),globalThis.lablupIndicator=null===(t=this.shadowRoot)||void 0===t?void 0:t.querySelector("#indicator"),globalThis.appLauncher=null===(i=this.shadowRoot)||void 0===i?void 0:i.querySelector("#app-launcher"),globalThis.resourceBroker=null===(o=this.shadowRoot)||void 0===o?void 0:o.querySelector("#resource-broker"),globalThis.currentPage=this._page,globalThis.currentPageParams=this._pageParams,this.notification=globalThis.lablupNotification,s=e=>ze.dispatch(p(decodeURIComponent(e.pathname))),document.body.addEventListener("click",(e=>{if(e.defaultPrevented||0!==e.button||e.metaKey||e.ctrlKey||e.shiftKey)return;const t=e.composedPath().filter((e=>"A"===e.tagName))[0];if(!t||t.target||t.hasAttribute("download")||"external"===t.getAttribute("rel"))return;const i=t.href;if(!i||-1!==i.indexOf("mailto:"))return;const o=window.location,n=o.origin||o.protocol+"//"+o.host;0===i.indexOf(n)&&(e.preventDefault(),i!==o.href&&(window.history.pushState({},"",i),s(o,e)))})),window.addEventListener("popstate",(e=>s(window.location,e))),s(window.location,null),n=e=>ze.dispatch(f(e)),window.addEventListener("online",(()=>n(!1))),window.addEventListener("offline",(()=>n(!0))),n(!1===navigator.onLine),globalThis.isElectron?(r="./config.toml",document.addEventListener("backend-ai-logout",(()=>this.logout(!1))),document.addEventListener("backend-ai-app-close",(()=>this.close_app_window())),document.addEventListener("backend-ai-show-splash",(()=>this._showSplash()))):(r="../../config.toml",document.addEventListener("backend-ai-logout",(()=>this.logout(!1))),document.addEventListener("backend-ai-show-splash",(()=>this._showSplash()))),globalThis.addEventListener("beforeunload",(function(){globalThis.backendaioptions.set("last_window_close_time",(new Date).getTime()/1e3)})),this._parseConfig(r).then((()=>{var e,t,i;if(this.loadConfig(this.config),void 0===globalThis.backendaiclient||null===globalThis.backendaiclient||!1===globalThis.backendaiclient.ready)if("verify-email"===this._page){const t=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelector("backend-ai-email-verification-view");window.setTimeout((()=>{null==t||t.verify(this.loginPanel.api_endpoint)}),1e3)}else if("change-password"===this._page){const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.querySelector("backend-ai-change-forgot-password-view");window.setTimeout((()=>{null==e||e.open(this.loginPanel.api_endpoint)}),1e3)}else if("edu-applauncher"===this._page||"applauncher"===this._page){const e=null===(i=this.shadowRoot)||void 0===i?void 0:i.querySelector("backend-ai-edu-applauncher");window.setTimeout((()=>{null==e||e.launch(this.loginPanel.api_endpoint)}),1e3)}else{const e=new v,t=window.performance.navigation&&1===window.performance.navigation.type||window.performance.getEntriesByType("navigation").map((e=>e.type)).includes("reload");e.tabsCount(!0),!0!==this.auto_logout||1!==e.tabsCounter||t?this.loginPanel.login(!1):this.loginPanel.check_login().then((e=>{const t=(new Date).getTime()/1e3;!0===e&&t-globalThis.backendaioptions.get("last_window_close_time",t)>3?this.loginPanel._logoutSession().then((()=>{this.loginPanel.open()})):!0===e?this.loginPanel.login(!1):this.loginPanel.open()}))}})).catch((()=>{console.log("Initialization failed."),void 0!==globalThis.backendaiclient&&null!==globalThis.backendaiclient&&!1!==globalThis.backendaiclient.ready||this.loginPanel.block("Configuration is not loaded.","Error")})),this.mini_ui=globalThis.backendaioptions.get("compact_sidebar"),globalThis.mini_ui=this.mini_ui,document.addEventListener("current-user-info-changed",(e=>{if(globalThis.backendaiclient.supports("change-user-name")){const t=e.detail;this.full_name=t}})),document.addEventListener("move-to-from-react",(e=>{const t=e.detail.params,i=e.detail.path;this._moveTo(i,t,!0)})),document.addEventListener("show-TOS-agreement",(()=>{this.showTOSAgreement()})),document.addEventListener("show-PP-agreement",(()=>{this.showPPAgreement()})),document.addEventListener("show-about-backendai",(()=>{this._showSplash()})),document.addEventListener("language-changed",(async e=>{await Xe(e.detail.language)}))}async connectedCallback(){super.connectedCallback(),document.addEventListener("backend-ai-connected",this._refreshPage);const e=globalThis.navigator.language.split("-")[0];"default"===globalThis.backendaioptions.get("language")&&this.supportLanguageCodes.includes(e)?this.lang=e:this.supportLanguageCodes.includes(globalThis.backendaioptions.get("language"))?this.lang=globalThis.backendaioptions.get("language"):this.lang="en",globalThis.backendaioptions.set("current_language",this.lang),globalThis.backendaioptions.set("language",this.lang),await Xe(this.lang),this.hasLoadedStrings=!0}disconnectedCallback(){document.removeEventListener("backend-ai-connected",this._refreshPage),super.disconnectedCallback()}shouldUpdate(e){return this.hasLoadedStrings&&super.shouldUpdate(e)}loadConfig(e){if(void 0!==e.general&&"siteDescription"in e.general&&(this.siteDescription=e.general.siteDescription),void 0!==e.general&&"connectionMode"in e.general&&(this.connection_mode=e.general.connectionMode),void 0!==e.general&&"connectionServer"in e.general&&(this.connection_server=e.general.connectionServer),void 0!==e.general&&"autoLogout"in e.general&&null===globalThis.backendaioptions.get("auto_logout")?this.auto_logout=e.general.autoLogout:this.auto_logout=globalThis.backendaioptions.get("auto_logout",!1),void 0!==e.license&&"edition"in e.license&&(this.edition=e.license.edition),void 0!==e.menu&&"blocklist"in e.menu&&(this.blockedMenuItem=e.menu.blocklist.split(",").map((e=>e.trim()))),void 0!==e.menu&&"inactivelist"in e.menu&&(this.inactiveMenuItem=e.menu.inactivelist.split(",").map((e=>e.trim()))),void 0!==e.general&&"maskUserInfo"in e.general&&(this.isUserInfoMaskEnabled=e.general.maskUserInfo),void 0!==e.general&&"hideAgents"in e.general&&(this.isHideAgents=e.general.hideAgents),globalThis.packageEdition=this.edition,void 0!==e.license&&"validUntil"in e.license&&(this.validUntil=e.license.validUntil),globalThis.packageValidUntil=this.validUntil,void 0===e.general||void 0===e.general.allowSignout||""===e.general.allowSignout||0==e.general.allowSignout?this.allow_signout=!1:this.allow_signout=!0,void 0!==e.pipeline&&"frontendEndpoint"in e.pipeline&&(this.fasttrackEndpoint=e.pipeline.frontendEndpoint),void 0!==e.plugin&&("login"in e.plugin&&(this.plugins.login=e.plugin.login),"page"in e.plugin)){this.plugins.page=[],this.plugins.menuitem=[],this.plugins["menuitem-user"]=[],this.plugins["menuitem-admin"]=[],this.plugins["menuitem-superadmin"]=[];const t=[];for(const i of e.plugin.page.split(",")){const e=globalThis.isElectron&&this.loginPanel.api_endpoint?`${this.loginPanel.api_endpoint}/dist/plugins/${i}.js`:`../plugins/${i}.js`;t.push(import(e).then((()=>{const e=document.createElement(i);switch(e.classList.add("page"),e.setAttribute("name",i),this.appPage.appendChild(e),this.plugins.menuitem.push(i),this.availablePages.push(i),e.permission){case"superadmin":this.plugins["menuitem-superadmin"].push(i),this.superAdminOnlyPages.push(i);break;case"admin":this.plugins["menuitem-admin"].push(i),this.adminOnlyPages.push(i);break;default:this.plugins["menuitem-user"].push(i)}return this.plugins.page.push({name:i,url:i,menuitem:e.menuitem}),Promise.resolve(!0)})))}Promise.all(t).then((()=>{globalThis.backendaiPages=this.plugins.page;const e=new CustomEvent("backend-ai-plugin-loaded",{detail:!0});document.dispatchEvent(e),this.requestUpdate()}))}this.loginPanel.refreshWithConfig(e);const t=new CustomEvent("backend-ai-config-loaded");document.dispatchEvent(t)}refreshPage(){var e,t,i;this.loggedAccount.access_key=globalThis.backendaiclient._config.accessKey,this.isUserInfoMaskEnabled=globalThis.backendaiclient._config.maskUserInfo,this.needPasswordChange=globalThis.backendaiclient.need_password_change,globalThis.backendaiclient.proxyURL=this.proxy_url,void 0!==globalThis.backendaiclient&&null!=globalThis.backendaiclient&&void 0!==globalThis.backendaiclient.is_admin&&!0===globalThis.backendaiclient.is_admin?this.is_admin=!0:this.is_admin=!1,void 0!==globalThis.backendaiclient&&null!=globalThis.backendaiclient&&void 0!==globalThis.backendaiclient.is_superadmin&&!0===globalThis.backendaiclient.is_superadmin?this.is_superadmin=!0:this.is_superadmin=!1,this._refreshUserInfoPanel(),document.body.style.backgroundImage="none";const o=null===(e=this.shadowRoot)||void 0===e?void 0:e.getElementById("loading-curtain");null==o||o.classList.add("visuallyhidden"),null==o||o.addEventListener("transitionend",(()=>{null==o||o.classList.add("hidden"),this.is_connected=!0}),{capture:!1,once:!0,passive:!1}),this.is_admin||this.is_superadmin||(this.adminOnlyPages.includes(this._page)||this.superAdminOnlyPages.includes(this._page)||"unauthorized"===this._page)&&(this._page="unauthorized",this._moveTo("/unauthorized")),!this.is_superadmin&&this.superAdminOnlyPages.includes(this._page)&&(this._page="unauthorized",this._moveTo("/unauthorized")),this.supportServing=globalThis.backendaiclient.supports("model-serving"),this.supportUserCommittedImage=globalThis.backendaiclient.supports("user-committed-image"),this.optionalPages=[{page:"agent-summary",available:!this.isHideAgents},{page:"serving",available:this.supportServing},{page:"my-environment",available:this.supportUserCommittedImage}],(this.optionalPages.filter((e=>!e.available)).map((e=>e.page)).includes(this._page)||this.blockedMenuItem.includes(this._page)||this.inactiveMenuItem.includes(this._page)||!this.availablePages.includes(this._page)&&!(null===(i=null===(t=this.plugins)||void 0===t?void 0:t.menuitem)||void 0===i?void 0:i.includes(this._page)))&&(this._page="error",this._moveTo("/error"))}showUpdateNotifier(){var e;const t=null===(e=this.shadowRoot)||void 0===e?void 0:e.getElementById("backend-ai-indicator");t.innerHTML='New Web UI is available. Please <a onclick="globalThis.location.reload()">reload</a> to update.',t.show()}_parseConfig(e,t=!1){return fetch(e).then((e=>200==e.status?e.text():"")).then((e=>{const i=(o=e,s=new RegExp("^\\s*\\[(\\[)?(.*?)\\]\\]?(?= *$)((?:[\\w\\W](?!^\\s*\\[))*)","gm"),n={},hD(o=(o="["===o[0]?o:"[]\n"+o).replace(/('{3,}(?:(?!'{3,})[\w\W]+?)'{3,})/gm,(function(e,t){if(t)return t.replace(/^(\s*)(\[)/gm,"$1__>>[<<__")})),s,(function(e,t){t[1]?uD(n,t[2].trim(),pD(t[3]),!0):""===t[2]?n=Object.assign({},n,pD(t[3])):uD(n,t[2].trim(),pD(t[3]),!1)})),JSON.parse(JSON.stringify(n,mD),gD));var o,s,n;if((e=>{var t,i;(null===(t=null==e?void 0:e.general)||void 0===t?void 0:t.apiEndpointText)&&(e.general.apiEndpointText=JSON.parse(`"${e.general.apiEndpointText}"`)),(null===(i=null==e?void 0:e.general)||void 0===i?void 0:i.siteDescription)&&(e.general.siteDescription=JSON.parse(`"${e.general.siteDescription}"`))})(i),t)return i;this.config=i})).catch((e=>{console.log("Configuration file missing."),console.error(e)}))}_refreshUserInfoPanel(){this.user_id=globalThis.backendaiclient.email,this.full_name=globalThis.backendaiclient.full_name,this.domain=globalThis.backendaiclient._config.domainName}_loadPageElement(){"index.html"!==this._page&&""!==this._page||(this._page="summary")}updated(e){if(e.has("_page")){let e=this._page;if(!0!==this.availablePages.includes(e)){const t=e.split(/[/]+/).pop();void 0!==t&&(e=t)}this._page=e}}async close_app_window(){if(!1===globalThis.backendaioptions.get("preserve_login")){this.notification.text=Ye("webui.CleanUpLoginSession"),this.notification.show();const e=Object.keys(localStorage);for(let t=0;t<e.length;t++){const i=e[t];/^(BackendAIWebUI\.login\.)/.test(i)&&localStorage.removeItem(i)}sessionStorage.clear(),void 0!==globalThis.backendaiclient&&null!==globalThis.backendaiclient&&("SESSION"===globalThis.backendaiclient._config.connectionMode&&await globalThis.backendaiclient.logout(),globalThis.backendaiclient=null)}}async logout(e=!1){if(console.log("also close the app:",e),globalThis.backendaiutils._deleteRecentProjectGroupInfo(),void 0!==globalThis.backendaiclient&&null!==globalThis.backendaiclient){this.notification.text=Ye("webui.CleanUpNow"),this.notification.show(),"SESSION"===globalThis.backendaiclient._config.connectionMode&&await globalThis.backendaiclient.logout(),this.is_admin=!1,this.is_superadmin=!1,globalThis.backendaiclient=null;const t=Object.keys(localStorage);for(let e=0;e<t.length;e++){const i=t[e];/^(BackendAIWebUI\.login\.)/.test(i)&&localStorage.removeItem(i)}sessionStorage.clear(),!0===e||(globalThis.isElectron?globalThis.location.href=globalThis.electronInitialHref:(this._moveTo("/"),globalThis.location.reload()))}}showTOSAgreement(){this.TOSdialog.tosContent="",this.TOSdialog.tosLanguage=this.lang,this.TOSdialog.title=Ye("webui.menu.TermsOfService"),this.TOSdialog.tosEntry="terms-of-service",this.TOSdialog.open()}showPPAgreement(){this.TOSdialog.tosContent="",this.TOSdialog.tosLanguage=this.lang,this.TOSdialog.title=Ye("webui.menu.PrivacyPolicy"),this.TOSdialog.tosEntry="privacy-policy",this.TOSdialog.open()}_moveTo(e,t=void 0,i=!1){var o,s,n;if(!i&&globalThis.history.pushState({},"",e),ze.dispatch(p(decodeURIComponent(e),null!=t?t:{})),"menuitem"in this.plugins){for(const e of this.plugins.menuitem)if(e!==this._page){const t=null===(o=this.shadowRoot)||void 0===o?void 0:o.querySelector(e);t.active=!1,t.removeAttribute("active")}if(null===(s=this.plugins.menuitem)||void 0===s?void 0:s.includes(this._page)){const e=null===(n=this.shadowRoot)||void 0===n?void 0:n.querySelector(this._page);e.active=!0,e.requestUpdate()}}!i&&document.dispatchEvent(new CustomEvent("react-navigate",{detail:e}))}stateChanged(e){this._page=e.app.page,this._pageParams=e.app.params,this._offline=e.app.offline,this._offlineIndicatorOpened=e.app.offlineIndicatorOpened,globalThis.currentPage=this._page,globalThis.currentPageParams=this._pageParams}_showSplash(){this.splash.show()}render(){return ae`
      <link rel="stylesheet" href="resources/fonts/font-awesome-all.min.css" />
      <link rel="stylesheet" href="resources/custom.css" />
      <div id="loading-curtain" class="loading-background">
        <div id="loading-drag-area" class="loading-background-drag-area"></div>
      </div>
      <div id="app-page">
        <backend-ai-summary-view
          class="page"
          name="summary"
          ?active="${"summary"===this._page}"
        >
          <mwc-circular-progress indeterminate></mwc-circular-progress>
        </backend-ai-summary-view>
        <backend-ai-import-view
          class="page"
          name="import"
          ?active="${"github"===this._page||"import"===this._page}"
        >
          <mwc-circular-progress indeterminate></mwc-circular-progress>
        </backend-ai-import-view>
        <backend-ai-session-view
          class="page"
          name="job"
          ?active="${"job"===this._page}"
        >
          <mwc-circular-progress indeterminate></mwc-circular-progress>
        </backend-ai-session-view>

        <backend-ai-credential-view
          class="page"
          name="credential"
          ?active="${"credential"===this._page}"
        >
          <mwc-circular-progress indeterminate></mwc-circular-progress>
        </backend-ai-credential-view>
        <backend-ai-agent-summary-view
          class="page"
          name="agent-summary"
          ?active="${"agent-summary"===this._page}"
        >
          <mwc-circular-progress indeterminate></mwc-circular-progress>
        </backend-ai-agent-summary-view>
        <backend-ai-data-view
          class="page"
          name="data"
          ?active="${"data"===this._page}"
        >
          <mwc-circular-progress indeterminate></mwc-circular-progress>
        </backend-ai-data-view>
        <backend-ai-settings-view
          class="page"
          name="settings"
          ?active="${"settings"===this._page}"
        >
          <mwc-circular-progress indeterminate></mwc-circular-progress>
        </backend-ai-settings-view>
        <backend-ai-maintenance-view
          class="page"
          name="maintenance"
          ?active="${"maintenance"===this._page}"
        >
          <mwc-circular-progress indeterminate></mwc-circular-progress>
        </backend-ai-maintenance-view>
        <backend-ai-statistics-view
          class="page"
          name="statistics"
          ?active="${"statistics"===this._page}"
        >
          <mwc-circular-progress indeterminate></mwc-circular-progress>
        </backend-ai-statistics-view>
        <backend-ai-email-verification-view
          class="page"
          name="email-verification"
          ?active="${"verify-email"===this._page}"
        >
          <mwc-circular-progress indeterminate></mwc-circular-progress>
        </backend-ai-email-verification-view>
        <backend-ai-change-forgot-password-view
          class="page"
          name="change-forgot-password"
          ?active="${"change-password"===this._page}"
        >
          <mwc-circular-progress indeterminate></mwc-circular-progress>
        </backend-ai-change-forgot-password-view>
        <backend-ai-edu-applauncher
          class="page"
          name="edu-applauncher"
          ?active="${"edu-applauncher"===this._page||"applauncher"===this._page}"
        >
          <mwc-circular-progress indeterminate></mwc-circular-progress>
        </backend-ai-edu-applauncher>
      </div>
      <backend-ai-offline-indicator ?active="${this._offlineIndicatorOpened}">
        ${this._offline?qt("webui.YouAreOffline"):qt("webui.YouAreOnline")}.
      </backend-ai-offline-indicator>
      <backend-ai-login active id="login-panel"></backend-ai-login>
      <backend-ai-splash id="about-backendai-panel"></backend-ai-splash>
      <lablup-notification id="notification"></lablup-notification>
      <backend-ai-indicator-pool id="indicator"></backend-ai-indicator-pool>
      <lablup-terms-of-service
        id="terms-of-service"
        block
      ></lablup-terms-of-service>
      <backend-ai-app-launcher id="app-launcher"></backend-ai-app-launcher>
      <backend-ai-resource-broker
        id="resource-broker"
        ?active="${this.is_connected}"
      ></backend-ai-resource-broker>
      <backend-ai-react-signout-modal
        value="${this.isOpenSignoutDialog?"true":"false"}"
        @close="${()=>{this.isOpenSignoutDialog=!1}}"
      ></backend-ai-react-signout-modal>
    `}};o([Zt({type:Boolean})],_D.prototype,"hasLoadedStrings",void 0),o([Zt({type:String})],_D.prototype,"menuTitle",void 0),o([Zt({type:String})],_D.prototype,"siteDescription",void 0),o([Zt({type:String})],_D.prototype,"user_id",void 0),o([Zt({type:String})],_D.prototype,"full_name",void 0),o([Zt({type:String})],_D.prototype,"domain",void 0),o([Zt({type:Boolean})],_D.prototype,"is_connected",void 0),o([Zt({type:Boolean})],_D.prototype,"is_admin",void 0),o([Zt({type:Boolean})],_D.prototype,"is_superadmin",void 0),o([Zt({type:Boolean})],_D.prototype,"allow_signout",void 0),o([Zt({type:Boolean})],_D.prototype,"needPasswordChange",void 0),o([Zt({type:String})],_D.prototype,"proxy_url",void 0),o([Zt({type:String})],_D.prototype,"connection_mode",void 0),o([Zt({type:String})],_D.prototype,"connection_server",void 0),o([Zt({type:String})],_D.prototype,"edition",void 0),o([Zt({type:String})],_D.prototype,"validUntil",void 0),o([Zt({type:Array})],_D.prototype,"groups",void 0),o([Zt({type:Object})],_D.prototype,"plugins",void 0),o([Zt({type:String})],_D.prototype,"fasttrackEndpoint",void 0),o([Zt({type:String})],_D.prototype,"_page",void 0),o([Zt({type:String})],_D.prototype,"_lazyPage",void 0),o([Zt({type:Object})],_D.prototype,"_pageParams",void 0),o([Zt({type:String})],_D.prototype,"_sidepanel",void 0),o([Zt({type:Boolean})],_D.prototype,"_offlineIndicatorOpened",void 0),o([Zt({type:Boolean})],_D.prototype,"_offline",void 0),o([Zt({type:Object})],_D.prototype,"config",void 0),o([Zt({type:Object})],_D.prototype,"notification",void 0),o([Zt({type:Boolean})],_D.prototype,"mini_ui",void 0),o([Zt({type:Boolean})],_D.prototype,"auto_logout",void 0),o([Zt({type:Boolean})],_D.prototype,"isUserInfoMaskEnabled",void 0),o([Zt({type:Boolean})],_D.prototype,"isHideAgents",void 0),o([Zt({type:Boolean})],_D.prototype,"supportServing",void 0),o([Zt({type:Boolean})],_D.prototype,"supportUserCommittedImage",void 0),o([Zt({type:String})],_D.prototype,"lang",void 0),o([Zt({type:Array})],_D.prototype,"supportLanguageCodes",void 0),o([Zt({type:Array})],_D.prototype,"blockedMenuItem",void 0),o([Zt({type:Array})],_D.prototype,"inactiveMenuItem",void 0),o([Zt({type:Number})],_D.prototype,"minibarWidth",void 0),o([Zt({type:Number})],_D.prototype,"sidebarWidth",void 0),o([Zt({type:Number})],_D.prototype,"sidepanelWidth",void 0),o([Zt({type:Object})],_D.prototype,"supports",void 0),o([Zt({type:Array})],_D.prototype,"availablePages",void 0),o([Zt({type:Array})],_D.prototype,"adminOnlyPages",void 0),o([Zt({type:Array})],_D.prototype,"superAdminOnlyPages",void 0),o([Zt({type:Array})],_D.prototype,"optionalPages",void 0),o([Zt({type:Number})],_D.prototype,"timeoutSec",void 0),o([Zt({type:Object})],_D.prototype,"loggedAccount",void 0),o([Zt({type:Object})],_D.prototype,"roleInfo",void 0),o([Zt({type:Object})],_D.prototype,"keyPairInfo",void 0),o([Zt({type:Boolean})],_D.prototype,"isOpenUserProfileDialog",void 0),o([Zt({type:Boolean})],_D.prototype,"isOpenSignoutDialog",void 0),o([ei("#app-page")],_D.prototype,"appPage",void 0),o([Zt({type:Object})],_D.prototype,"_refreshPage",void 0),o([ei("#login-panel")],_D.prototype,"loginPanel",void 0),o([ei("#main-toolbar")],_D.prototype,"mainToolbar",void 0),o([ei("#terms-of-service")],_D.prototype,"TOSdialog",void 0),o([ei("backend-ai-splash")],_D.prototype,"splash",void 0),o([ei("#dropdown-button")],_D.prototype,"_dropdownMenuIcon",void 0),_D=o([Xt("backend-ai-webui")],_D);var vD=_D;export{HT as $,uo as A,ti as B,bP as C,sT as D,gP as E,Ay as F,NP as G,Xe as H,Se as I,Sl as J,xT as K,hS as L,xo as M,uE as N,hE as O,eT as P,le as Q,ir as R,ce as S,PE as T,jT as U,VP as V,UP as W,yo as X,Ce as Y,FP as Z,o as _,Te as a,UT as a0,LP as a1,XT as a2,mP as a3,NE as a4,FE as a5,HE as a6,KT as a7,sP as a8,GT as a9,vo as aA,DP as aB,qP as aC,oI as aD,dI as aE,cI as aF,lI as aG,gI as aH,s as aI,r as aJ,QT as aK,eP as aL,_P as aM,aP as aN,wT as aO,RT as aP,yT as aQ,vT as aR,fT as aS,YT as aT,CP as aU,_T as aV,vD as aW,zP as aa,HP as ab,MP as ac,_I as ad,BP as ae,rI as af,nI as ag,dP as ah,iI as ai,JP as aj,uI as ak,mI as al,vI as am,n as an,li as ao,xm as ap,wm as aq,Uf as ar,Nf as as,K_ as at,A_ as au,G_ as av,Wf as aw,X_ as ax,If as ay,Dl as az,Be as b,Ie as c,ii as d,ei as e,qt as f,Ye as g,Kt as h,A as i,ze as j,p as k,Qt as l,yE as m,Zt as n,ZC as o,Ae as p,mE as q,kE as r,ke as s,Xt as t,Pe as u,t as v,i as w,ae as x,Fl as y,tr as z};
