rndefine("#RNMainLit",["exports"],(function(e){"use strict";const t=globalThis,i=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,n=Symbol(),s=new WeakMap;class r{constructor(e,t,i){if(this._$cssResult$=!0,i!==n)throw new Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this._strings=t}get styleSheet(){let e=this._styleSheet;const t=this._strings;if(i&&void 0===e){const i=void 0!==t&&1===t.length;i&&(e=s.get(t)),void 0===e&&((this._styleSheet=e=new CSSStyleSheet).replaceSync(this.cssText),i&&s.set(t,e))}return e}toString(){return this.cssText}}const o=e=>{let t="";for(const i of e.cssRules)t+=i.cssText;return new r("string"==typeof(i=t)?i:String(i),void 0,n);var i},l=i?e=>e:e=>e instanceof CSSStyleSheet?o(e):e;var a,d,c;const{is:h,defineProperty:u,getOwnPropertyDescriptor:p,getOwnPropertyNames:m,getOwnPropertySymbols:v,getPrototypeOf:_}=Object,f=globalThis;let g;const y=f.trustedTypes,b=y?y.emptyScript:"",$=f.reactiveElementPolyfillSupportDevMode;{var w,S;const e=null!==(w=f.litIssuedWarnings)&&void 0!==w?w:f.litIssuedWarnings=new Set;g=(t,i)=>{i+=` See https://lit.dev/msg/${t} for more information.`,e.has(i)||(console.warn(i),e.add(i))},(null===(S=f.ShadyDOM)||void 0===S?void 0:S.inUse)&&void 0===$&&g("polyfill-support-missing","Shadow DOM is being polyfilled via `ShadyDOM` but the `polyfill-support` module has not been loaded.")}const P=e=>{f.emitLitDebugLogEvents&&f.dispatchEvent(new CustomEvent("lit-debug",{detail:e}))},C=(e,t)=>e,x={toAttribute(e,t){switch(t){case Boolean:e=e?b: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)=>!h(e,t),T={attribute:!0,type:String,converter:x,reflect:!1,hasChanged:E};null!==(a=Symbol.metadata)&&void 0!==a||(Symbol.metadata=Symbol("metadata")),null!==(d=f.litPropertyMetadata)&&void 0!==d||(f.litPropertyMetadata=new WeakMap);class N extends HTMLElement{static addInitializer(e){var t;this.__prepare(),(null!==(t=this._initializers)&&void 0!==t?t:this._initializers=[]).push(e)}static get observedAttributes(){return this.finalize(),this.__attributeToPropertyMap&&[...this.__attributeToPropertyMap.keys()]}static createProperty(e,t=T){if(t.state&&(t.attribute=!1),this.__prepare(),this.elementProperties.set(e,t),!t.noAccessor){const i=Symbol.for(`${String(e)} (@property() cache)`),n=this.getPropertyDescriptor(e,i,t);void 0!==n&&u(this.prototype,e,n)}}static getPropertyDescriptor(e,t,i){var n;const{get:s,set:r}=null!==(n=p(this.prototype,e))&&void 0!==n?n:{get(){return this[t]},set(e){this[t]=e}};if(null==s){var o;if("value"in(null!==(o=p(this.prototype,e))&&void 0!==o?o:{}))throw new Error(`Field ${JSON.stringify(String(e))} on ${this.name} was declared as a reactive property but it's actually declared as a value on the prototype. Usually this is due to using @property or @state on a method.`);g("reactive-property-without-getter",`Field ${JSON.stringify(String(e))} on ${this.name} was declared as a reactive property but it does not have a getter. This will be an error in a future version of Lit.`)}return{get(){return null==s?void 0:s.call(this)},set(t){const n=null==s?void 0:s.call(this);r.call(this,t),this.requestUpdate(e,n,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){var t;return null!==(t=this.elementProperties.get(e))&&void 0!==t?t:T}static __prepare(){if(this.hasOwnProperty(C("elementProperties")))return;const e=_(this);e.finalize(),void 0!==e._initializers&&(this._initializers=[...e._initializers]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(C("finalized")))return;if(this.finalized=!0,this.__prepare(),this.hasOwnProperty(C("properties"))){const e=this.properties,t=[...m(e),...v(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.__attributeToPropertyMap=new Map;for(const[e,t]of this.elementProperties){const i=this.__attributeNameForProperty(e,t);void 0!==i&&this.__attributeToPropertyMap.set(i,e)}this.elementStyles=this.finalizeStyles(this.styles),this.hasOwnProperty("createProperty")&&g("no-override-create-property","Overriding ReactiveElement.createProperty() is deprecated. The override will not be called with standard decorators"),this.hasOwnProperty("getPropertyDescriptor")&&g("no-override-get-property-descriptor","Overriding ReactiveElement.getPropertyDescriptor() is deprecated. The override will not be called with standard decorators")}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(l(e))}else void 0!==e&&t.push(l(e));return t}static __attributeNameForProperty(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.__instanceProperties=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this.__reflectingProperty=null,this.__initialize()}__initialize(){var e;this.__updatePromise=new Promise((e=>this.enableUpdating=e)),this._$changedProperties=new Map,this.__saveInstanceProperties(),this.requestUpdate(),null===(e=this.constructor._initializers)||void 0===e||e.forEach((e=>e(this)))}addController(e){var t,i;((null!==(t=this.__controllers)&&void 0!==t?t:this.__controllers=new Set).add(e),void 0!==this.renderRoot&&this.isConnected)&&(null===(i=e.hostConnected)||void 0===i||i.call(e))}removeController(e){var t;null===(t=this.__controllers)||void 0===t||t.delete(e)}__saveInstanceProperties(){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.__instanceProperties=e)}createRenderRoot(){var e;const n=null!==(e=this.shadowRoot)&&void 0!==e?e:this.attachShadow(this.constructor.shadowRootOptions);return((e,n)=>{if(i)e.adoptedStyleSheets=n.map((e=>e instanceof CSSStyleSheet?e:e.styleSheet));else for(const i of n){const n=document.createElement("style"),s=t.litNonce;void 0!==s&&n.setAttribute("nonce",s),n.textContent=i.cssText,e.appendChild(n)}})(n,this.constructor.elementStyles),n}connectedCallback(){var e,t;null!==(e=this.renderRoot)&&void 0!==e||(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this.__controllers)||void 0===t||t.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.__controllers)||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._$attributeToProperty(e,i)}__propertyToAttribute(e,t){const i=this.constructor.elementProperties.get(e),n=this.constructor.__attributeNameForProperty(e,i);if(void 0!==n&&!0===i.reflect){var s;const r=(void 0!==(null===(s=i.converter)||void 0===s?void 0:s.toAttribute)?i.converter:x).toAttribute(t,i.type);this.constructor.enabledWarnings.includes("migration")&&void 0===r&&g("undefined-attribute-value",`The attribute value for the ${e} property is undefined on element ${this.localName}. The attribute will be removed, but in the previous version of \`ReactiveElement\`, the attribute would not have changed.`),this.__reflectingProperty=e,null==r?this.removeAttribute(n):this.setAttribute(n,r),this.__reflectingProperty=null}}_$attributeToProperty(e,t){const i=this.constructor,n=i.__attributeToPropertyMap.get(e);if(void 0!==n&&this.__reflectingProperty!==n){var s;const e=i.getPropertyOptions(n),r="function"==typeof e.converter?{fromAttribute:e.converter}:void 0!==(null===(s=e.converter)||void 0===s?void 0:s.fromAttribute)?e.converter:x;this.__reflectingProperty=n,this[n]=r.fromAttribute(t,e.type),this.__reflectingProperty=null}}requestUpdate(e,t,i){if(void 0!==e){var n,s;e instanceof Event&&g("","The requestUpdate() method was called with an Event as the property name. This is probably a mistake caused by binding this.requestUpdate as an event listener. Instead bind a function that will call it with no arguments: ()=> this.requestUpdate()"),null!==(n=i)&&void 0!==n||(i=this.constructor.getPropertyOptions(e));if(!(null!==(s=i.hasChanged)&&void 0!==s?s:E)(this[e],t))return;this._$changeProperty(e,t,i)}!1===this.isUpdatePending&&(this.__updatePromise=this.__enqueueUpdate())}_$changeProperty(e,t,i){var n;(this._$changedProperties.has(e)||this._$changedProperties.set(e,t),!0===i.reflect&&this.__reflectingProperty!==e)&&(null!==(n=this.__reflectingProperties)&&void 0!==n?n:this.__reflectingProperties=new Set).add(e)}async __enqueueUpdate(){this.isUpdatePending=!0;try{await this.__updatePromise}catch(e){Promise.reject(e)}const e=this.scheduleUpdate();return null!=e&&await e,!this.isUpdatePending}scheduleUpdate(){const e=this.performUpdate();return this.constructor.enabledWarnings.includes("async-perform-update")&&"function"==typeof(null==e?void 0:e.then)&&g("async-perform-update",`Element ${this.localName} returned a Promise from performUpdate(). This behavior is deprecated and will be removed in a future version of ReactiveElement.`),e}performUpdate(){if(!this.isUpdatePending)return;if(null==P||P({kind:"update"}),!this.hasUpdated){var e;null!==(e=this.renderRoot)&&void 0!==e||(this.renderRoot=this.createRenderRoot());{const e=[...this.constructor.elementProperties.keys()].filter((e=>this.hasOwnProperty(e)&&e in _(this)));if(e.length)throw new Error(`The following properties on element ${this.localName} will not trigger updates as expected because they are set using class fields: ${e.join(", ")}. Native class fields and some compiled output will overwrite accessors used for detecting changes. See https://lit.dev/msg/class-field-shadowing for more information.`)}if(this.__instanceProperties){for(const[e,t]of this.__instanceProperties)this[e]=t;this.__instanceProperties=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[e,i]of t)!0!==i.wrapped||this._$changedProperties.has(e)||void 0===this[e]||this._$changeProperty(e,this[e],i)}let t=!1;const i=this._$changedProperties;try{var n;if(t=this.shouldUpdate(i),t)this.willUpdate(i),null===(n=this.__controllers)||void 0===n||n.forEach((e=>{var t;return null===(t=e.hostUpdate)||void 0===t?void 0:t.call(e)})),this.update(i);else this.__markUpdated()}catch(e){throw t=!1,this.__markUpdated(),e}t&&this._$didUpdate(i)}willUpdate(e){}_$didUpdate(e){var t;null===(t=this.__controllers)||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),this.isUpdatePending&&this.constructor.enabledWarnings.includes("change-in-update")&&g("change-in-update",`Element ${this.localName} scheduled an update (generally because a property was set) after an update completed, causing a new update to be scheduled. This is inefficient and should be avoided unless the next update can only be scheduled as a side effect of the previous update.`)}__markUpdated(){this._$changedProperties=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this.__updatePromise}shouldUpdate(e){return!0}update(e){this.__reflectingProperties&&(this.__reflectingProperties=this.__reflectingProperties.forEach((e=>this.__propertyToAttribute(e,this[e])))),this.__markUpdated()}updated(e){}firstUpdated(e){}}N.elementStyles=[],N.shadowRootOptions={mode:"open"},N[C("elementProperties")]=new Map,N[C("finalized")]=new Map,null==$||$({ReactiveElement:N});{N.enabledWarnings=["change-in-update","async-perform-update"];const e=function(e){e.hasOwnProperty(C("enabledWarnings"))||(e.enabledWarnings=e.enabledWarnings.slice())};N.enableWarning=function(t){e(this),this.enabledWarnings.includes(t)||this.enabledWarnings.push(t)},N.disableWarning=function(t){e(this);const i=this.enabledWarnings.indexOf(t);i>=0&&this.enabledWarnings.splice(i,1)}}var V,k,A;(null!==(c=f.reactiveElementVersions)&&void 0!==c?c:f.reactiveElementVersions=[]).push("2.0.4"),f.reactiveElementVersions.length>1&&g("multiple-versions","Multiple versions of Lit loaded. Loading multiple versions is not recommended.");const O=globalThis,U=e=>{O.emitLitDebugLogEvents&&O.dispatchEvent(new CustomEvent("lit-debug",{detail:e}))};let M,z=0;var L;null!==(L=O.litIssuedWarnings)&&void 0!==L||(O.litIssuedWarnings=new Set),M=(e,t)=>{t+=e?` See https://lit.dev/msg/${e} for more information.`:"",O.litIssuedWarnings.has(t)||(console.warn(t),O.litIssuedWarnings.add(t))};const R=(null===(V=O.ShadyDOM)||void 0===V?void 0:V.inUse)&&!0===(null===(k=O.ShadyDOM)||void 0===k?void 0:k.noPatch)?O.ShadyDOM.wrap:e=>e,I=O.trustedTypes,D=I?I.createPolicy("lit-html",{createHTML:e=>e}):void 0,W=e=>e,j=(e,t,i)=>W,F=e=>{if(ve!==j)throw new Error("Attempted to overwrite existing lit-html security policy. setSanitizeDOMValueFactory should be called at most once.");ve=e},q=()=>{ve=j},B=(e,t,i)=>ve(e,t,i),H="$lit$",K=`lit$${String(Math.random()).slice(9)}$`,J="?"+K,Z=`<${J}>`,Y=document,X=()=>Y.createComment(""),G=e=>null===e||"object"!=typeof e&&"function"!=typeof e,Q=Array.isArray,ee=e=>Q(e)||"function"==typeof(null==e?void 0:e[Symbol.iterator]),te="[ \t\n\f\r]",ie=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,ne=/-->/g,se=/>/g,re=new RegExp(`>|${te}(?:([^\\s"'>=/]+)(${te}*=${te}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),oe=/'/g,le=/"/g,ae=/^(?:script|style|textarea|title)$/i,de=(ce=1,(e,...t)=>(e.some((e=>void 0===e))&&console.warn("Some template strings are undefined.\nThis is probably caused by illegal octal escape sequences."),t.some((e=>null==e?void 0:e._$litStatic$))&&M("","Static values 'literal' or 'unsafeStatic' cannot be used as values to non-static templates.\nPlease use the static 'html' tag function. See https://lit.dev/docs/templates/expressions/#static-expressions"),{_$litType$:ce,strings:e,values:t}));var ce;const he=Symbol.for("lit-noChange"),ue=Symbol.for("lit-nothing"),pe=new WeakMap,me=Y.createTreeWalker(Y,129);let ve=j;function _e(e,t){if(!Array.isArray(e)||!e.hasOwnProperty("raw")){let e="invalid template strings array";throw e=" Internal Error: expected template strings to be an array with a 'raw' field. Faking a template strings array by calling html or svg like an ordinary function is effectively the same as calling unsafeHtml and can lead to major security issues, e.g. opening your code up to XSS attacks. If you're using the html or svg tagged template functions normally and still seeing this error, please file a bug at https://github.com/lit/lit/issues/new?template=bug_report.md and include information about your build tooling, if any. ".trim().replace(/\n */g,"\n"),new Error(e)}return void 0!==D?D.createHTML(t):t}const fe=(e,t)=>{const i=e.length-1,n=[];let s,r=2===t?"<svg>":"",o=ie;for(let t=0;t<i;t++){const i=e[t];let a,d,c=-1,h=0;for(;h<i.length&&(o.lastIndex=h,d=o.exec(i),null!==d);)if(h=o.lastIndex,o===ie){if("!--"===d[1])o=ne;else if(void 0!==d[1])o=se;else if(void 0!==d[2])ae.test(d[2])&&(s=new RegExp(`</${d[2]}`,"g")),o=re;else if(void 0!==d[3])throw new Error("Bindings in tag names are not supported. Please use static templates instead. See https://lit.dev/docs/templates/expressions/#static-expressions")}else if(o===re){var l;if(">"===d[0])o=null!==(l=s)&&void 0!==l?l:ie,c=-1;else void 0===d[1]?c=-2:(c=o.lastIndex-d[2].length,a=d[1],o=void 0===d[3]?re:'"'===d[3]?le:oe)}else o===le||o===oe?o=re:o===ne||o===se?o=ie:(o=re,s=void 0);console.assert(-1===c||o===re||o===oe||o===le,"unexpected parse state B");const u=o===re&&e[t+1].startsWith("/>")?" ":"";r+=o===ie?i+Z:c>=0?(n.push(a),i.slice(0,c)+H+i.slice(c)+K+u):i+K+(-2===c?t:u)}return[_e(e,r+(e[i]||"<?>")+(2===t?"</svg>":"")),n]};class ge{constructor({strings:e,_$litType$:t},i){let n;this.parts=[];let s=0,r=0;const o=e.length-1,l=this.parts,[a,d]=fe(e,t);if(this.el=ge.createElement(a,i),me.currentNode=this.el.content,2===t){const e=this.el.content.firstChild;e.replaceWith(...e.childNodes)}for(;null!==(n=me.nextNode())&&l.length<o;){if(1===n.nodeType){{const e=n.localName;if(/^(?:textarea|template)$/i.test(e)&&n.innerHTML.includes(K)){const t=`Expressions are not supported inside \`${e}\` elements. See https://lit.dev/msg/expression-in-${e} for more information.`;if("template"===e)throw new Error(t);M("",t)}}if(n.hasAttributes())for(const e of n.getAttributeNames())if(e.endsWith(H)){const t=d[r++],i=n.getAttribute(e).split(K),o=/([.?@])?(.*)/.exec(t);l.push({type:1,index:s,name:o[2],strings:i,ctor:"."===o[1]?Se:"?"===o[1]?Pe:"@"===o[1]?Ce:we}),n.removeAttribute(e)}else e.startsWith(K)&&(l.push({type:6,index:s}),n.removeAttribute(e));if(ae.test(n.tagName)){const e=n.textContent.split(K),t=e.length-1;if(t>0){n.textContent=I?I.emptyScript:"";for(let i=0;i<t;i++)n.append(e[i],X()),me.nextNode(),l.push({type:2,index:++s});n.append(e[t],X())}}}else if(8===n.nodeType){if(n.data===J)l.push({type:2,index:s});else{let e=-1;for(;-1!==(e=n.data.indexOf(K,e+1));)l.push({type:7,index:s}),e+=K.length-1}}s++}if(d.length!==r)throw new Error('Detected duplicate attribute bindings. This occurs if your template has duplicate attributes on an element tag. For example "<input ?disabled=${true} ?disabled=${false}>" contains a duplicate "disabled" attribute. The error was detected in the following template: \n`'+e.join("${...}")+"`");U&&U({kind:"template prep",template:this,clonableTemplate:this.el,parts:this.parts,strings:e})}static createElement(e,t){const i=Y.createElement("template");return i.innerHTML=e,i}}function ye(e,t,i=e,n){var s,r;if(t===he)return t;let o=void 0!==n?null===(s=i.__directives)||void 0===s?void 0:s[n]:i.__directive;const l=G(t)?void 0:t._$litDirective$;var a,d,c;(null===(r=o)||void 0===r?void 0:r.constructor)!==l&&(null===(a=o)||void 0===a||null===(d=a._$notifyDirectiveConnectionChanged)||void 0===d||d.call(a,!1),void 0===l?o=void 0:(o=new l(e),o._$initialize(e,i,n)),void 0!==n?(null!==(c=i.__directives)&&void 0!==c?c:i.__directives=[])[n]=o:i.__directive=o);return void 0!==o&&(t=ye(e,o._$resolve(e,t.values),o,n)),t}class be{constructor(e,t){this._$parts=[],this._$disconnectableChildren=void 0,this._$template=e,this._$parent=t}get parentNode(){return this._$parent.parentNode}get _$isConnected(){return this._$parent._$isConnected}_clone(e){var t;const{el:{content:i},parts:n}=this._$template,s=(null!==(t=null==e?void 0:e.creationScope)&&void 0!==t?t:Y).importNode(i,!0);me.currentNode=s;let r=me.nextNode(),o=0,l=0,a=n[0];for(;void 0!==a;){var d;if(o===a.index){let t;2===a.type?t=new $e(r,r.nextSibling,this,e):1===a.type?t=new a.ctor(r,a.name,a.strings,this,e):6===a.type&&(t=new xe(r,this,e)),this._$parts.push(t),a=n[++l]}o!==(null===(d=a)||void 0===d?void 0:d.index)&&(r=me.nextNode(),o++)}return me.currentNode=Y,s}_update(e){let t=0;for(const i of this._$parts)void 0!==i&&(U&&U({kind:"set part",part:i,value:e[t],valueIndex:t,values:e,templateInstance:this}),void 0!==i.strings?(i._$setValue(e,i,t),t+=i.strings.length-2):i._$setValue(e[t])),t++}}class $e{get _$isConnected(){var e,t;return null!==(e=null===(t=this._$parent)||void 0===t?void 0:t._$isConnected)&&void 0!==e?e:this.__isConnected}constructor(e,t,i,n){var s;this.type=2,this._$committedValue=ue,this._$disconnectableChildren=void 0,this._$startNode=e,this._$endNode=t,this._$parent=i,this.options=n,this.__isConnected=null===(s=null==n?void 0:n.isConnected)||void 0===s||s,this._textSanitizer=void 0}get parentNode(){var e;let t=R(this._$startNode).parentNode;const i=this._$parent;return void 0!==i&&11===(null===(e=t)||void 0===e?void 0:e.nodeType)&&(t=i.parentNode),t}get startNode(){return this._$startNode}get endNode(){return this._$endNode}_$setValue(e,t=this){if(null===this.parentNode)throw new Error("This `ChildPart` has no `parentNode` and therefore cannot accept a value. This likely means the element containing the part was manipulated in an unsupported way outside of Lit's control such that the part's marker nodes were ejected from DOM. For example, setting the element's `innerHTML` or `textContent` can do this.");if(e=ye(this,e,t),G(e))e===ue||null==e||""===e?(this._$committedValue!==ue&&(U&&U({kind:"commit nothing to child",start:this._$startNode,end:this._$endNode,parent:this._$parent,options:this.options}),this._$clear()),this._$committedValue=ue):e!==this._$committedValue&&e!==he&&this._commitText(e);else if(void 0!==e._$litType$)this._commitTemplateResult(e);else if(void 0!==e.nodeType){var i;if((null===(i=this.options)||void 0===i?void 0:i.host)===e)return this._commitText("[probable mistake: rendered a template's host in itself (commonly caused by writing ${this} in a template]"),void console.warn("Attempted to render the template host",e,"inside itself. This is almost always a mistake, and in dev mode ","we render some warning text. In production however, we'll ","render it, which will usually result in an error, and sometimes ","in the element disappearing from the DOM.");this._commitNode(e)}else ee(e)?this._commitIterable(e):this._commitText(e)}_insert(e){return R(R(this._$startNode).parentNode).insertBefore(e,this._$endNode)}_commitNode(e){if(this._$committedValue!==e){if(this._$clear(),ve!==j){var t;const e=null===(t=this._$startNode.parentNode)||void 0===t?void 0:t.nodeName;if("STYLE"===e||"SCRIPT"===e){let t="Forbidden";throw t="STYLE"===e?"Lit does not support binding inside style nodes. This is a security risk, as style injection attacks can exfiltrate data and spoof UIs. Consider instead using css`...` literals to compose styles, and make do dynamic styling with css custom properties, ::parts, <slot>s, and by mutating the DOM rather than stylesheets.":"Lit does not support binding inside script nodes. This is a security risk, as it could allow arbitrary code execution.",new Error(t)}}U&&U({kind:"commit node",start:this._$startNode,parent:this._$parent,value:e,options:this.options}),this._$committedValue=this._insert(e)}}_commitText(e){if(this._$committedValue!==ue&&G(this._$committedValue)){const t=R(this._$startNode).nextSibling;void 0===this._textSanitizer&&(this._textSanitizer=B(t,"data","property")),e=this._textSanitizer(e),U&&U({kind:"commit text",node:t,value:e,options:this.options}),t.data=e}else{const t=Y.createTextNode("");this._commitNode(t),void 0===this._textSanitizer&&(this._textSanitizer=B(t,"data","property")),e=this._textSanitizer(e),U&&U({kind:"commit text",node:t,value:e,options:this.options}),t.data=e}this._$committedValue=e}_commitTemplateResult(e){var t;const{values:i,_$litType$:n}=e,s="number"==typeof n?this._$getTemplate(e):(void 0===n.el&&(n.el=ge.createElement(_e(n.h,n.h[0]),this.options)),n);if((null===(t=this._$committedValue)||void 0===t?void 0:t._$template)===s)U&&U({kind:"template updating",template:s,instance:this._$committedValue,parts:this._$committedValue._$parts,options:this.options,values:i}),this._$committedValue._update(i);else{const e=new be(s,this),t=e._clone(this.options);U&&U({kind:"template instantiated",template:s,instance:e,parts:e._$parts,options:this.options,fragment:t,values:i}),e._update(i),U&&U({kind:"template instantiated and updated",template:s,instance:e,parts:e._$parts,options:this.options,fragment:t,values:i}),this._commitNode(t),this._$committedValue=e}}_$getTemplate(e){let t=pe.get(e.strings);return void 0===t&&pe.set(e.strings,t=new ge(e)),t}_commitIterable(e){Q(this._$committedValue)||(this._$committedValue=[],this._$clear());const t=this._$committedValue;let i,n=0;for(const s of e)n===t.length?t.push(i=new $e(this._insert(X()),this._insert(X()),this,this.options)):i=t[n],i._$setValue(s),n++;n<t.length&&(this._$clear(i&&R(i._$endNode).nextSibling,n),t.length=n)}_$clear(e=R(this._$startNode).nextSibling,t){var i;for(null===(i=this._$notifyConnectionChanged)||void 0===i||i.call(this,!1,!0,t);e&&e!==this._$endNode;){const t=R(e).nextSibling;R(e).remove(),e=t}}setConnected(e){if(void 0!==this._$parent)throw new Error("part.setConnected() may only be called on a RootPart returned from render().");var t;this.__isConnected=e,null===(t=this._$notifyConnectionChanged)||void 0===t||t.call(this,e)}}class we{get tagName(){return this.element.tagName}get _$isConnected(){return this._$parent._$isConnected}constructor(e,t,i,n,s){this.type=1,this._$committedValue=ue,this._$disconnectableChildren=void 0,this.element=e,this.name=t,this._$parent=n,this.options=s,i.length>2||""!==i[0]||""!==i[1]?(this._$committedValue=new Array(i.length-1).fill(new String),this.strings=i):this._$committedValue=ue,this._sanitizer=void 0}_$setValue(e,t=this,i,n){const s=this.strings;let r=!1;if(void 0===s)e=ye(this,e,t,0),r=!G(e)||e!==this._$committedValue&&e!==he,r&&(this._$committedValue=e);else{const n=e;let l,a;for(e=s[0],l=0;l<s.length-1;l++){if(a=ye(this,n[i+l],t,l),a===he&&(a=this._$committedValue[l]),r||(r=!G(a)||a!==this._$committedValue[l]),a===ue)e=ue;else if(e!==ue){var o;e+=(null!==(o=a)&&void 0!==o?o:"")+s[l+1]}this._$committedValue[l]=a}}r&&!n&&this._commitValue(e)}_commitValue(e){var t,i;e===ue?R(this.element).removeAttribute(this.name):(void 0===this._sanitizer&&(this._sanitizer=ve(this.element,this.name,"attribute")),e=this._sanitizer(null!==(i=e)&&void 0!==i?i:""),U&&U({kind:"commit attribute",element:this.element,name:this.name,value:e,options:this.options}),R(this.element).setAttribute(this.name,null!==(t=e)&&void 0!==t?t:""))}}class Se extends we{constructor(){super(...arguments),this.type=3}_commitValue(e){void 0===this._sanitizer&&(this._sanitizer=ve(this.element,this.name,"property")),e=this._sanitizer(e),U&&U({kind:"commit property",element:this.element,name:this.name,value:e,options:this.options}),this.element[this.name]=e===ue?void 0:e}}class Pe extends we{constructor(){super(...arguments),this.type=4}_commitValue(e){U&&U({kind:"commit boolean attribute",element:this.element,name:this.name,value:!(!e||e===ue),options:this.options}),R(this.element).toggleAttribute(this.name,!!e&&e!==ue)}}class Ce extends we{constructor(e,t,i,n,s){if(super(e,t,i,n,s),this.type=5,void 0!==this.strings)throw new Error(`A \`<${e.localName}>\` has a \`@${t}=...\` listener with invalid content. Event listeners in templates must have exactly one expression and no surrounding text.`)}_$setValue(e,t=this){var i;if((e=null!==(i=ye(this,e,t,0))&&void 0!==i?i:ue)===he)return;const n=this._$committedValue,s=e===ue&&n!==ue||e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive,r=e!==ue&&(n===ue||s);U&&U({kind:"commit event listener",element:this.element,name:this.name,value:e,options:this.options,removeListener:s,addListener:r,oldListener:n}),s&&this.element.removeEventListener(this.name,this,n),r&&this.element.addEventListener(this.name,this,e),this._$committedValue=e}handleEvent(e){var t,i;"function"==typeof this._$committedValue?this._$committedValue.call(null!==(t=null===(i=this.options)||void 0===i?void 0:i.host)&&void 0!==t?t:this.element,e):this._$committedValue.handleEvent(e)}}class xe{constructor(e,t,i){this.element=e,this.type=6,this._$disconnectableChildren=void 0,this._$parent=t,this.options=i}get _$isConnected(){return this._$parent._$isConnected}_$setValue(e){U&&U({kind:"commit to element binding",element:this.element,value:e,options:this.options}),ye(this,e)}}const Ee={_boundAttributeSuffix:H,_marker:K,_markerMatch:J,_HTML_RESULT:1,_getTemplateHtml:fe,_TemplateInstance:be,_isIterable:ee,_resolveDirective:ye,_ChildPart:$e,_AttributePart:we,_BooleanAttributePart:Pe,_EventPart:Ce,_PropertyPart:Se,_ElementPart:xe},Te=O.litHtmlPolyfillSupportDevMode;null==Te||Te(ge,$e),(null!==(A=O.litHtmlVersions)&&void 0!==A?A:O.litHtmlVersions=[]).push("3.1.2"),O.litHtmlVersions.length>1&&M("multiple-versions","Multiple versions of Lit loaded. Loading multiple versions is not recommended.");const Ne=(e,t,i)=>{var n;if(null==t)throw new TypeError(`The container to render into may not be ${t}`);const s=z++,r=null!==(n=null==i?void 0:i.renderBefore)&&void 0!==n?n:t;let o=r._$litPart$;if(U&&U({kind:"begin render",id:s,value:e,container:t,options:i,part:o}),void 0===o){var l;const e=null!==(l=null==i?void 0:i.renderBefore)&&void 0!==l?l:null;r._$litPart$=o=new $e(t.insertBefore(X(),e),e,void 0,null!=i?i:{})}return o._$setValue(e),U&&U({kind:"end render",id:s,value:e,container:t,options:i,part:o}),o};var Ve,ke;Ne.setSanitizer=F,Ne.createSanitizer=B,Ne._testOnlyClearSanitizerFactoryDoNotCallOrElse=q;let Ae;{var Oe;const e=null!==(Oe=globalThis.litIssuedWarnings)&&void 0!==Oe?Oe:globalThis.litIssuedWarnings=new Set;Ae=(t,i)=>{i+=` See https://lit.dev/msg/${t} for more information.`,e.has(i)||(console.warn(i),e.add(i))}}class Ue extends N{constructor(){super(...arguments),this.renderOptions={host:this},this.__childPart=void 0}createRenderRoot(){var e,t;const i=super.createRenderRoot();return null!==(t=(e=this.renderOptions).renderBefore)&&void 0!==t||(e.renderBefore=i.firstChild),i}update(e){const t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this.__childPart=Ne(t,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),null===(e=this.__childPart)||void 0===e||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),null===(e=this.__childPart)||void 0===e||e.setConnected(!1)}render(){return he}}var Me;Ue._$litElement$=!0,Ue[(Me="finalized",Me)]=!0,null===(Ve=globalThis.litElementHydrateSupport)||void 0===Ve||Ve.call(globalThis,{LitElement:Ue});const ze=globalThis.litElementPolyfillSupportDevMode;null==ze||ze({LitElement:Ue}),(null!==(ke=globalThis.litElementVersions)&&void 0!==ke?ke:globalThis.litElementVersions=[]).push("4.0.4"),globalThis.litElementVersions.length>1&&Ae("multiple-versions","Multiple versions of Lit loaded. Loading multiple versions is not recommended.");var Le;null!==(Le=globalThis.litIssuedWarnings)&&void 0!==Le||(globalThis.litIssuedWarnings=new Set);var Re;let Ie;null!==(Re=globalThis.litIssuedWarnings)&&void 0!==Re||(globalThis.litIssuedWarnings=new Set);const De=1,We=2,je=3,Fe=4,qe=e=>(...t)=>({_$litDirective$:e,values:t});class Be{constructor(e){}get _$isConnected(){return this._$parent._$isConnected}_$initialize(e,t,i){this.__part=e,this._$parent=t,this.__attributeIndex=i}_$resolve(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}}var He,Ke;const{_ChildPart:Je}=Ee,Ze=(null===(He=window.ShadyDOM)||void 0===He?void 0:He.inUse)&&!0===(null===(Ke=window.ShadyDOM)||void 0===Ke?void 0:Ke.noPatch)?window.ShadyDOM.wrap:e=>e,Ye=()=>document.createComment(""),Xe=(e,t,i)=>{const n=Ze(e._$startNode).parentNode,s=void 0===t?e._$endNode:t._$startNode;if(void 0===i){const t=Ze(n).insertBefore(Ye(),s),r=Ze(n).insertBefore(Ye(),s);i=new Je(t,r,e,e.options)}else{const t=Ze(i._$endNode).nextSibling,l=i._$parent,a=l!==e;if(a){var r,o;let t;null===(r=(o=i)._$reparentDisconnectables)||void 0===r||r.call(o,e),i._$parent=e,void 0!==i._$notifyConnectionChanged&&(t=e._$isConnected)!==l._$isConnected&&i._$notifyConnectionChanged(t)}if(t!==s||a){let e=i._$startNode;for(;e!==t;){const t=Ze(e).nextSibling;Ze(n).insertBefore(e,s),e=t}}}return i},Ge=(e,t,i=e)=>(e._$setValue(t,i),e),Qe={},et=(e,t=Qe)=>e._$committedValue=t,tt=e=>e._$committedValue,it=e=>{var t;null===(t=e._$notifyConnectionChanged)||void 0===t||t.call(e,!1,!0);let i=e._$startNode;const n=Ze(e._$endNode).nextSibling;for(;i!==n;){const e=Ze(i).nextSibling;Ze(i).remove(),i=e}},nt=(e,t,i)=>{const n=new Map;for(let s=t;s<=i;s++)n.set(e[s],s);return n};const st=qe(class extends Be{constructor(e){if(super(e),e.type!==We)throw new Error("repeat() can only be used in text expressions")}_getValuesAndKeys(e,t,i){let n;void 0===i?i=t:void 0!==t&&(n=t);const s=[],r=[];let o=0;for(const t of e)s[o]=n?n(t,o):o,r[o]=i(t,o),o++;return{values:r,keys:s}}render(e,t,i){return this._getValuesAndKeys(e,t,i).values}update(e,[t,i,n]){var s;const r=tt(e),{values:o,keys:l}=this._getValuesAndKeys(t,i,n);if(!Array.isArray(r))return this._itemKeys=l,o;const a=null!==(s=this._itemKeys)&&void 0!==s?s:this._itemKeys=[],d=[];let c,h,u=0,p=r.length-1,m=0,v=o.length-1;for(;u<=p&&m<=v;)if(null===r[u])u++;else if(null===r[p])p--;else if(a[u]===l[m])d[m]=Ge(r[u],o[m]),u++,m++;else if(a[p]===l[v])d[v]=Ge(r[p],o[v]),p--,v--;else if(a[u]===l[v])d[v]=Ge(r[u],o[v]),Xe(e,d[v+1],r[u]),u++,v--;else if(a[p]===l[m])d[m]=Ge(r[p],o[m]),Xe(e,r[u],r[p]),p--,m++;else if(void 0===c&&(c=nt(l,m,v),h=nt(a,u,p)),c.has(a[u]))if(c.has(a[p])){const t=h.get(l[m]),i=void 0!==t?r[t]:null;if(null===i){const t=Xe(e,r[u]);Ge(t,o[m]),d[m]=t}else d[m]=Ge(i,o[m]),Xe(e,r[u],i),r[t]=null;m++}else it(r[p]),p--;else it(r[u]),u++;for(;m<=v;){const t=Xe(e,d[v+1]);Ge(t,o[m]),d[m++]=t}for(;u<=p;){const e=r[u++];null!==e&&it(e)}return this._itemKeys=l,et(e,d),he}}),rt=(e,t)=>{const i=e._$disconnectableChildren;if(void 0===i)return!1;for(const e of i){var n;null===(n=e._$notifyDirectiveConnectionChanged)||void 0===n||n.call(e,t,!1),rt(e,t)}return!0},ot=e=>{let t,i;do{var n;if(void 0===(t=e._$parent))break;i=t._$disconnectableChildren,i.delete(e),e=t}while(0===(null===(n=i)||void 0===n?void 0:n.size))},lt=e=>{for(let t;t=e._$parent;e=t){let i=t._$disconnectableChildren;if(void 0===i)t._$disconnectableChildren=i=new Set;else if(i.has(e))break;i.add(e),ct(t)}};function at(e){void 0!==this._$disconnectableChildren?(ot(this),this._$parent=e,lt(this)):this._$parent=e}function dt(e,t=!1,i=0){const n=this._$committedValue,s=this._$disconnectableChildren;if(void 0!==s&&0!==s.size)if(t)if(Array.isArray(n))for(let e=i;e<n.length;e++)rt(n[e],!1),ot(n[e]);else null!=n&&(rt(n,!1),ot(n));else rt(this,e)}const ct=e=>{var t,i;e.type==We&&(null!==(t=e._$notifyConnectionChanged)&&void 0!==t||(e._$notifyConnectionChanged=dt),null!==(i=e._$reparentDisconnectables)&&void 0!==i||(e._$reparentDisconnectables=at))};class ht extends Be{constructor(){super(...arguments),this._$disconnectableChildren=void 0}_$initialize(e,t,i){super._$initialize(e,t,i),lt(this),this.isConnected=e._$isConnected}_$notifyDirectiveConnectionChanged(e,t=!0){var i,n;e!==this.isConnected&&(this.isConnected=e,e?null===(i=this.reconnected)||void 0===i||i.call(this):null===(n=this.disconnected)||void 0===n||n.call(this));t&&(rt(this,e),ot(this))}setValue(e){if(void 0===this.__part.strings)this.__part._$setValue(e,this);else{if(void 0===this.__attributeIndex)throw new Error("Expected this.__attributeIndex to be a number");const t=[...this.__part._$committedValue];t[this.__attributeIndex]=e,this.__part._$setValue(t,this,0)}}disconnected(){}reconnected(){}}const ut=new WeakMap;const pt=qe(class extends ht{render(e){return ue}update(e,[t]){const i=t!==this._ref;var n;(i&&void 0!==this._ref&&this._updateRefValue(void 0),i||this._lastElementForRef!==this._element)&&(this._ref=t,this._context=null===(n=e.options)||void 0===n?void 0:n.host,this._updateRefValue(this._element=e.element));return ue}_updateRefValue(e){if("function"==typeof this._ref){var t;const i=null!==(t=this._context)&&void 0!==t?t:globalThis;let n=ut.get(i);void 0===n&&(n=new WeakMap,ut.set(i,n)),void 0!==n.get(this._ref)&&this._ref.call(this._context,void 0),n.set(this._ref,e),void 0!==e&&this._ref.call(this._context,e)}else this._ref.value=e}get _lastElementForRef(){var e,t,i;return"function"==typeof this._ref?null===(e=ut.get(null!==(t=this._context)&&void 0!==t?t:globalThis))||void 0===e?void 0:e.get(this._ref):null===(i=this._ref)||void 0===i?void 0:i.value}disconnected(){this._lastElementForRef===this._element&&this._updateRefValue(void 0)}reconnected(){this._updateRefValue(this._element)}}),mt=e=>t=>{null==window.customElements.get(e)&&window.customElements.define(e,t)},vt=e=>void 0===e.strings;function _t(e){return function(t,i){return{get:function(){return this.renderRoot.querySelector(e)},set:void 0}}}function ft(e,t=!1){let i=document.createElement("div");return Ne(e,i),t?i:i.firstElementChild}function gt(e,t,i=null,n=!1){let s=new CustomEvent(t,{detail:i,bubbles:n,cancelable:!0});return e.dispatchEvent(s),s}function yt(e){return 0==e||null==e?"":e}function bt(e){let t="";if(null==e||!(e instanceof Object))return"";for(let i in e){let n=e[i];null!==n&&!1!==n&&""!==n&&(t+=i.replace(/([A-Z])/g,"-$1").trim().toLowerCase()+":"+n+";")}return t}window.lit={},window.lit.live=qe(class extends Be{constructor(e){if(super(e),e.type!==je&&e.type!==De&&e.type!==Fe)throw new Error("The `live` directive is not allowed on child or event bindings");if(!vt(e))throw new Error("`live` bindings can only contain a single expression")}render(e){return e}update(e,[t]){if(t===he||t===ue)return t;const i=e.element,n=e.name;if(e.type===je){if(t===i[n])return he}else if(e.type===Fe){if(!!t===i.hasAttribute(n))return"INPUT"!=i.tagName||"radio"!=i.getAttribute("type").toLowerCase()&&"checkbox"!=i.getAttribute("type").toLowerCase()||(i.checked=t),he}else if(e.type===De&&("SELECT"==i.tagName&&(i.value=t),i.getAttribute(n)===String(t)))return he;return e.type==je&&("SELECT"!=i.tagName&&"INPUT"!=i.tagName||(i.value=t)),"INPUT"!=i.tagName||null==i.getAttribute("type")||"radio"!=i.getAttribute("type").toLowerCase()&&"checkbox"!=i.getAttribute("type").toLowerCase()||(i.checked=t),et(e),t}}),window.lit.render=Ne,window.lit.LitElement=Ue,window.lit.html=de,window.lit.customElement=e=>(t,i)=>{void 0!==i?i.addInitializer((()=>{customElements.define(e,t)})):customElements.define(e,t)},window.lit.query=_t,window.lit.queryAll=function(e){return(t,i)=>((e,t,i)=>(i.configurable=!0,i.enumerable=!0,Reflect.decorate&&"object"!=typeof t&&Object.defineProperty(e,t,i),i))(t,i,{get(){var t,i;return(null!==(t=this.renderRoot)&&void 0!==t?t:null!==(i=Ie)&&void 0!==i?i:Ie=document.createDocumentFragment()).querySelectorAll(e)}})},window.lit.renderInline=ft,window.lit.repeat=st,window.lit.ifDefined=e=>null!=e?e:ue,window.lit.ref=pt,window.lit.rnsg=bt,window.lit.rncg=function(e){if(null==e||!(e instanceof Object))return;let t=[];for(let i in e){let n=e[i];null!==n&&!1!==n&&""!==n&&t.push(i)}return t.join(" ")},window.lit.noChange=he,window.lit.Directive=Be,window.lit.directive=qe,window.lit.getCommittedValue=tt,window.lit.insertPart=Xe,window.lit.removePart=it,window.lit.setChildPartValue=Ge,window.lit.setCommittedValue=et,window.lit.customElementOnce=mt,e.Lit={},e.Lit.rnDispatchEvent=gt,e.Lit.rnIf=yt,e.Lit.rnsg=bt,e.Lit.renderInline=ft,e.Lit.customElementOnce=mt,e.customElementOnce=mt,e.isSingleExpression=vt,e.query=_t,e.renderInline=ft,e.rnDispatchEvent=gt,e.rnIf=yt,e.rnsg=bt,Object.defineProperty(e,"__esModule",{value:!0})}));