UNPKG

@fluid-topics/ft-icon

Version:

Typography components

4 lines 531 kB
"use strict";(()=>{var Y2=Object.create;var On=Object.defineProperty;var q2=Object.getOwnPropertyDescriptor;var X2=Object.getOwnPropertyNames;var Q2=Object.getPrototypeOf,J2=Object.prototype.hasOwnProperty;var e0=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),D=(e,t)=>{for(var r in t)On(e,r,{get:t[r],enumerable:!0})},t0=(e,t,r,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of X2(t))!J2.call(e,o)&&o!==r&&On(e,o,{get:()=>t[o],enumerable:!(a=q2(t,o))||a.enumerable});return e};var r0=(e,t,r)=>(r=e!=null?Y2(Q2(e)):{},t0(t||!e||!e.__esModule?On(r,"default",{value:e,enumerable:!0}):r,e));var Gs=e0((We,Bs)=>{var cn=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof global<"u"&&global,sn=function(){function e(){this.fetch=!1,this.DOMException=cn.DOMException}return e.prototype=cn,new e}();(function(e){var t=function(r){var a=typeof e<"u"&&e||typeof self<"u"&&self||typeof global<"u"&&global||{},o={searchParams:"URLSearchParams"in a,iterable:"Symbol"in a&&"iterator"in Symbol,blob:"FileReader"in a&&"Blob"in a&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in a,arrayBuffer:"ArrayBuffer"in a};function i(b){return b&&DataView.prototype.isPrototypeOf(b)}if(o.arrayBuffer)var c=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],l=ArrayBuffer.isView||function(b){return b&&c.indexOf(Object.prototype.toString.call(b))>-1};function d(b){if(typeof b!="string"&&(b=String(b)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(b)||b==="")throw new TypeError('Invalid character in header field name: "'+b+'"');return b.toLowerCase()}function f(b){return typeof b!="string"&&(b=String(b)),b}function h(b){var A={next:function(){var M=b.shift();return{done:M===void 0,value:M}}};return o.iterable&&(A[Symbol.iterator]=function(){return A}),A}function p(b){this.map={},b instanceof p?b.forEach(function(A,M){this.append(M,A)},this):Array.isArray(b)?b.forEach(function(A){if(A.length!=2)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+A.length);this.append(A[0],A[1])},this):b&&Object.getOwnPropertyNames(b).forEach(function(A){this.append(A,b[A])},this)}p.prototype.append=function(b,A){b=d(b),A=f(A);var M=this.map[b];this.map[b]=M?M+", "+A:A},p.prototype.delete=function(b){delete this.map[d(b)]},p.prototype.get=function(b){return b=d(b),this.has(b)?this.map[b]:null},p.prototype.has=function(b){return this.map.hasOwnProperty(d(b))},p.prototype.set=function(b,A){this.map[d(b)]=f(A)},p.prototype.forEach=function(b,A){for(var M in this.map)this.map.hasOwnProperty(M)&&b.call(A,this.map[M],M,this)},p.prototype.keys=function(){var b=[];return this.forEach(function(A,M){b.push(M)}),h(b)},p.prototype.values=function(){var b=[];return this.forEach(function(A){b.push(A)}),h(b)},p.prototype.entries=function(){var b=[];return this.forEach(function(A,M){b.push([M,A])}),h(b)},o.iterable&&(p.prototype[Symbol.iterator]=p.prototype.entries);function y(b){if(!b._noBody){if(b.bodyUsed)return Promise.reject(new TypeError("Already read"));b.bodyUsed=!0}}function x(b){return new Promise(function(A,M){b.onload=function(){A(b.result)},b.onerror=function(){M(b.error)}})}function v(b){var A=new FileReader,M=x(A);return A.readAsArrayBuffer(b),M}function C(b){var A=new FileReader,M=x(A),W=/charset=([A-Za-z0-9_-]+)/.exec(b.type),$=W?W[1]:"utf-8";return A.readAsText(b,$),M}function O(b){for(var A=new Uint8Array(b),M=new Array(A.length),W=0;W<A.length;W++)M[W]=String.fromCharCode(A[W]);return M.join("")}function _(b){if(b.slice)return b.slice(0);var A=new Uint8Array(b.byteLength);return A.set(new Uint8Array(b)),A.buffer}function w(){return this.bodyUsed=!1,this._initBody=function(b){this.bodyUsed=this.bodyUsed,this._bodyInit=b,b?typeof b=="string"?this._bodyText=b:o.blob&&Blob.prototype.isPrototypeOf(b)?this._bodyBlob=b:o.formData&&FormData.prototype.isPrototypeOf(b)?this._bodyFormData=b:o.searchParams&&URLSearchParams.prototype.isPrototypeOf(b)?this._bodyText=b.toString():o.arrayBuffer&&o.blob&&i(b)?(this._bodyArrayBuffer=_(b.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):o.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(b)||l(b))?this._bodyArrayBuffer=_(b):this._bodyText=b=Object.prototype.toString.call(b):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||(typeof b=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):o.searchParams&&URLSearchParams.prototype.isPrototypeOf(b)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},o.blob&&(this.blob=function(){var b=y(this);if(b)return b;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))}),this.arrayBuffer=function(){if(this._bodyArrayBuffer){var b=y(this);return b||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}else{if(o.blob)return this.blob().then(v);throw new Error("could not read as ArrayBuffer")}},this.text=function(){var b=y(this);if(b)return b;if(this._bodyBlob)return C(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(O(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},o.formData&&(this.formData=function(){return this.text().then(T)}),this.json=function(){return this.text().then(JSON.parse)},this}var S=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function E(b){var A=b.toUpperCase();return S.indexOf(A)>-1?A:b}function L(b,A){if(!(this instanceof L))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');A=A||{};var M=A.body;if(b instanceof L){if(b.bodyUsed)throw new TypeError("Already read");this.url=b.url,this.credentials=b.credentials,A.headers||(this.headers=new p(b.headers)),this.method=b.method,this.mode=b.mode,this.signal=b.signal,!M&&b._bodyInit!=null&&(M=b._bodyInit,b.bodyUsed=!0)}else this.url=String(b);if(this.credentials=A.credentials||this.credentials||"same-origin",(A.headers||!this.headers)&&(this.headers=new p(A.headers)),this.method=E(A.method||this.method||"GET"),this.mode=A.mode||this.mode||null,this.signal=A.signal||this.signal||function(){if("AbortController"in a){var H=new AbortController;return H.signal}}(),this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&M)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(M),(this.method==="GET"||this.method==="HEAD")&&(A.cache==="no-store"||A.cache==="no-cache")){var W=/([?&])_=[^&]*/;if(W.test(this.url))this.url=this.url.replace(W,"$1_="+new Date().getTime());else{var $=/\?/;this.url+=($.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}L.prototype.clone=function(){return new L(this,{body:this._bodyInit})};function T(b){var A=new FormData;return b.trim().split("&").forEach(function(M){if(M){var W=M.split("="),$=W.shift().replace(/\+/g," "),H=W.join("=").replace(/\+/g," ");A.append(decodeURIComponent($),decodeURIComponent(H))}}),A}function z(b){var A=new p,M=b.replace(/\r?\n[\t ]+/g," ");return M.split("\r").map(function(W){return W.indexOf(` `)===0?W.substr(1,W.length):W}).forEach(function(W){var $=W.split(":"),H=$.shift().trim();if(H){var Mr=$.join(":").trim();try{A.append(H,Mr)}catch(Ln){console.warn("Response "+Ln.message)}}}),A}w.call(L.prototype);function G(b,A){if(!(this instanceof G))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(A||(A={}),this.type="default",this.status=A.status===void 0?200:A.status,this.status<200||this.status>599)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=A.statusText===void 0?"":""+A.statusText,this.headers=new p(A.headers),this.url=A.url||"",this._initBody(b)}w.call(G.prototype),G.prototype.clone=function(){return new G(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new p(this.headers),url:this.url})},G.error=function(){var b=new G(null,{status:200,statusText:""});return b.ok=!1,b.status=0,b.type="error",b};var B=[301,302,303,307,308];G.redirect=function(b,A){if(B.indexOf(A)===-1)throw new RangeError("Invalid status code");return new G(null,{status:A,headers:{location:b}})},r.DOMException=a.DOMException;try{new r.DOMException}catch{r.DOMException=function(A,M){this.message=A,this.name=M;var W=Error(A);this.stack=W.stack},r.DOMException.prototype=Object.create(Error.prototype),r.DOMException.prototype.constructor=r.DOMException}function k(b,A){return new Promise(function(M,W){var $=new L(b,A);if($.signal&&$.signal.aborted)return W(new r.DOMException("Aborted","AbortError"));var H=new XMLHttpRequest;function Mr(){H.abort()}H.onload=function(){var q={statusText:H.statusText,headers:z(H.getAllResponseHeaders()||"")};$.url.indexOf("file://")===0&&(H.status<200||H.status>599)?q.status=200:q.status=H.status,q.url="responseURL"in H?H.responseURL:q.headers.get("X-Request-URL");var Ze="response"in H?H.response:H.responseText;setTimeout(function(){M(new G(Ze,q))},0)},H.onerror=function(){setTimeout(function(){W(new TypeError("Network request failed"))},0)},H.ontimeout=function(){setTimeout(function(){W(new TypeError("Network request timed out"))},0)},H.onabort=function(){setTimeout(function(){W(new r.DOMException("Aborted","AbortError"))},0)};function Ln(q){try{return q===""&&a.location.href?a.location.href:q}catch{return q}}if(H.open($.method,Ln($.url),!0),$.credentials==="include"?H.withCredentials=!0:$.credentials==="omit"&&(H.withCredentials=!1),"responseType"in H&&(o.blob?H.responseType="blob":o.arrayBuffer&&(H.responseType="arraybuffer")),A&&typeof A.headers=="object"&&!(A.headers instanceof p||a.Headers&&A.headers instanceof a.Headers)){var Ri=[];Object.getOwnPropertyNames(A.headers).forEach(function(q){Ri.push(d(q)),H.setRequestHeader(q,f(A.headers[q]))}),$.headers.forEach(function(q,Ze){Ri.indexOf(Ze)===-1&&H.setRequestHeader(Ze,q)})}else $.headers.forEach(function(q,Ze){H.setRequestHeader(Ze,q)});$.signal&&($.signal.addEventListener("abort",Mr),H.onreadystatechange=function(){H.readyState===4&&$.signal.removeEventListener("abort",Mr)}),H.send(typeof $._bodyInit>"u"?null:$._bodyInit)})}return k.polyfill=!0,a.fetch||(a.fetch=k,a.Headers=p,a.Request=L,a.Response=G),r.Headers=p,r.Request=L,r.Response=G,r.fetch=k,r}({})})(sn);sn.fetch.ponyfill=!0;delete sn.fetch.polyfill;var It=cn.fetch?cn:sn;We=It.fetch;We.default=It.fetch;We.fetch=It.fetch;We.Headers=It.Headers;We.Request=It.Request;We.Response=It.Response;Bs.exports=We});if(!ShadowRoot.prototype.createElement){let e=window.HTMLElement,t=window.customElements.define,r=window.customElements.get,a=window.customElements,o=new WeakMap,i=new WeakMap,c=new WeakMap,l=new WeakMap;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(S,E){if(S=S.toLowerCase(),this._getDefinition(S)!==void 0)throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${S}" has already been used with this registry`);if(this._definitionsByClass.get(E)!==void 0)throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");let L=E.prototype.attributeChangedCallback,T=new Set(E.observedAttributes||[]);y(E,T,L);let z={elementClass:E,connectedCallback:E.prototype.connectedCallback,disconnectedCallback:E.prototype.disconnectedCallback,adoptedCallback:E.prototype.adoptedCallback,attributeChangedCallback:L,formAssociated:E.formAssociated,formAssociatedCallback:E.prototype.formAssociatedCallback,formDisabledCallback:E.prototype.formDisabledCallback,formResetCallback:E.prototype.formResetCallback,formStateRestoreCallback:E.prototype.formStateRestoreCallback,observedAttributes:T};this._definitionsByTag.set(S,z),this._definitionsByClass.set(E,z);let G=r.call(a,S);G||(G=p(S),t.call(a,S,G)),this===window.customElements&&(c.set(E,z),z.standInClass=G);let B=this._awaitingUpgrade.get(S);if(B){this._awaitingUpgrade.delete(S);for(let b of B)i.delete(b),v(b,z,!0)}let k=this._whenDefinedPromises.get(S);return k!==void 0&&(k.resolve(E),this._whenDefinedPromises.delete(S)),E}upgrade(){O.push(this),a.upgrade.apply(a,arguments),O.pop()}get(S){return this._definitionsByTag.get(S)?.elementClass}_getDefinition(S){return this._definitionsByTag.get(S)}whenDefined(S){let E=this._getDefinition(S);if(E!==void 0)return Promise.resolve(E.elementClass);let L=this._whenDefinedPromises.get(S);return L===void 0&&(L={},L.promise=new Promise(T=>L.resolve=T),this._whenDefinedPromises.set(S,L)),L.promise}_upgradeWhenDefined(S,E,L){let T=this._awaitingUpgrade.get(E);T||this._awaitingUpgrade.set(E,T=new Set),L?T.add(S):T.delete(S)}};let d;window.HTMLElement=function(){let E=d;if(E)return d=void 0,E;let L=c.get(this.constructor);if(!L)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return E=Reflect.construct(e,[],L.standInClass),Object.setPrototypeOf(E,this.constructor.prototype),o.set(E,L),E},window.HTMLElement.prototype=e.prototype;let f=S=>S===document||S instanceof ShadowRoot,h=S=>{let E=S.getRootNode();if(!f(E)){let L=O[O.length-1];if(L instanceof CustomElementRegistry)return L;E=L.getRootNode(),f(E)||(E=l.get(E)?.getRootNode()||document)}return E.customElements},p=S=>class{static get formAssociated(){return!0}constructor(){let L=Reflect.construct(e,[],this.constructor);Object.setPrototypeOf(L,HTMLElement.prototype);let T=h(L)||window.customElements,z=T._getDefinition(S);return z?v(L,z):i.set(L,T),L}connectedCallback(){let L=o.get(this);L?L.connectedCallback&&L.connectedCallback.apply(this,arguments):i.get(this)._upgradeWhenDefined(this,S,!0)}disconnectedCallback(){let L=o.get(this);L?L.disconnectedCallback&&L.disconnectedCallback.apply(this,arguments):i.get(this)._upgradeWhenDefined(this,S,!1)}adoptedCallback(){o.get(this)?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){let L=o.get(this);L&&L.formAssociated&&L?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){let L=o.get(this);L?.formAssociated&&L?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){let L=o.get(this);L?.formAssociated&&L?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){let L=o.get(this);L?.formAssociated&&L?.formStateRestoreCallback?.apply(this,arguments)}},y=(S,E,L)=>{if(E.size===0||L===void 0)return;let T=S.prototype.setAttribute;T&&(S.prototype.setAttribute=function(B,k){let b=B.toLowerCase();if(E.has(b)){let A=this.getAttribute(b);T.call(this,b,k),L.call(this,b,A,k)}else T.call(this,b,k)});let z=S.prototype.removeAttribute;z&&(S.prototype.removeAttribute=function(B){let k=B.toLowerCase();if(E.has(k)){let b=this.getAttribute(k);z.call(this,k),L.call(this,k,b,null)}else z.call(this,k)});let G=S.prototype.toggleAttribute;G&&(S.prototype.toggleAttribute=function(B,k){let b=B.toLowerCase();if(E.has(b)){let A=this.getAttribute(b);G.call(this,b,k);let M=this.getAttribute(b);L.call(this,b,A,M)}else G.call(this,b,k)})},x=S=>{let E=Object.getPrototypeOf(S);if(E!==window.HTMLElement)return E===e?Object.setPrototypeOf(S,window.HTMLElement):x(E)},v=(S,E,L=!1)=>{Object.setPrototypeOf(S,E.elementClass.prototype),o.set(S,E),d=S;try{new E.elementClass}catch{x(E.elementClass),new E.elementClass}E.attributeChangedCallback&&E.observedAttributes.forEach(T=>{S.hasAttribute(T)&&E.attributeChangedCallback.call(S,T,null,S.getAttribute(T))}),L&&E.connectedCallback&&S.isConnected&&E.connectedCallback.call(S)},C=Element.prototype.attachShadow;Element.prototype.attachShadow=function(S){let E=C.apply(this,arguments);return S.customElements&&(E.customElements=S.customElements),E};let O=[document],_=(S,E,L=void 0)=>{let T=(L?Object.getPrototypeOf(L):S.prototype)[E];S.prototype[E]=function(){O.push(this);let z=T.apply(L||this,arguments);return z!==void 0&&l.set(z,this),O.pop(),z}};_(ShadowRoot,"createElement",document),_(ShadowRoot,"importNode",document),_(Element,"insertAdjacentHTML");let w=(S,E)=>{let L=Object.getOwnPropertyDescriptor(S.prototype,E);Object.defineProperty(S.prototype,E,{...L,set(T){O.push(this),L.set.call(this,T),O.pop()}})};if(w(Element,"innerHTML"),w(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){let S=new WeakMap,E=HTMLElement.prototype.attachInternals,L=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...B){let k=E.call(this,...B);return S.set(k,this),k},L.forEach(B=>{let k=window.ElementInternals.prototype,b=k[B];k[B]=function(...A){let M=S.get(this);if(o.get(M).formAssociated===!0)return b?.call(this,...A);throw new DOMException(`Failed to execute ${b} on 'ElementInternals': The target element is not a form-associated custom element.`)}});class T extends Array{constructor(k){super(...k),this._elements=k}get value(){return this._elements.find(k=>k.checked===!0)?.value||""}}class z{constructor(k){let b=new Map;k.forEach((A,M)=>{let W=A.getAttribute("name"),$=b.get(W)||[];this[+M]=A,$.push(A),b.set(W,$)}),this.length=k.length,b.forEach((A,M)=>{A&&(A.length===1?this[M]=A[0]:this[M]=new T(A))})}namedItem(k){return this[k]}}let G=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){let B=G.get.call(this,[]),k=[];for(let b of B){let A=o.get(b);(!A||A.formAssociated===!0)&&k.push(b)}return new z(k)}})}}try{window.customElements.define("custom-element",null)}catch{let t=window.customElements.define;window.customElements.define=(r,a,o)=>{if(a!==null)try{t.bind(window.customElements)(r,a,o)}catch(i){console.info(r,a,o,i)}}}var Dn={};D(Dn,{CSSResult:()=>bt,LitElement:()=>be,ReactiveElement:()=>ce,_$LE:()=>Hi,_$LH:()=>kn,adoptStyles:()=>Kt,css:()=>K,defaultConverter:()=>xt,getCompatibleStyle:()=>kr,html:()=>ye,isServer:()=>x5,mathml:()=>p0,noChange:()=>Z,notEqual:()=>Yt,nothing:()=>F,render:()=>zn,supportsAdoptingStyleSheets:()=>Vt,svg:()=>f0,unsafeCSS:()=>jt});var Pr=globalThis,Vt=Pr.ShadowRoot&&(Pr.ShadyCSS===void 0||Pr.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Rn=Symbol(),_i=new WeakMap,bt=class{constructor(t,r,a){if(this._$cssResult$=!0,a!==Rn)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=r}get styleSheet(){let t=this.o,r=this.t;if(Vt&&t===void 0){let a=r!==void 0&&r.length===1;a&&(t=_i.get(r)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),a&&_i.set(r,t))}return t}toString(){return this.cssText}},jt=e=>new bt(typeof e=="string"?e:e+"",void 0,Rn),K=(e,...t)=>{let r=e.length===1?e[0]:t.reduce((a,o,i)=>a+(c=>{if(c._$cssResult$===!0)return c.cssText;if(typeof c=="number")return c;throw Error("Value passed to 'css' function must be a 'css' function result: "+c+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(o)+e[i+1],e[0]);return new bt(r,e,Rn)},Kt=(e,t)=>{if(Vt)e.adoptedStyleSheets=t.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of t){let a=document.createElement("style"),o=Pr.litNonce;o!==void 0&&a.setAttribute("nonce",o),a.textContent=r.cssText,e.appendChild(a)}},kr=Vt?e=>e:e=>e instanceof CSSStyleSheet?(t=>{let r="";for(let a of t.cssRules)r+=a.cssText;return jt(r)})(e):e;var{is:n0,defineProperty:a0,getOwnPropertyDescriptor:o0,getOwnPropertyNames:i0,getOwnPropertySymbols:c0,getPrototypeOf:s0}=Object,zr=globalThis,wi=zr.trustedTypes,l0=wi?wi.emptyScript:"",d0=zr.reactiveElementPolyfillSupport,Zt=(e,t)=>e,xt={toAttribute(e,t){switch(t){case Boolean:e=e?l0:null;break;case Object:case Array:e=e==null?e:JSON.stringify(e)}return e},fromAttribute(e,t){let r=e;switch(t){case Boolean:r=e!==null;break;case Number:r=e===null?null:Number(e);break;case Object:case Array:try{r=JSON.parse(e)}catch{r=null}}return r}},Yt=(e,t)=>!n0(e,t),Ni={attribute:!0,type:String,converter:xt,reflect:!1,useDefault:!1,hasChanged:Yt};Symbol.metadata??=Symbol("metadata"),zr.litPropertyMetadata??=new WeakMap;var ce=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,r=Ni){if(r.state&&(r.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((r=Object.create(r)).wrapped=!0),this.elementProperties.set(t,r),!r.noAccessor){let a=Symbol(),o=this.getPropertyDescriptor(t,a,r);o!==void 0&&a0(this.prototype,t,o)}}static getPropertyDescriptor(t,r,a){let{get:o,set:i}=o0(this.prototype,t)??{get(){return this[r]},set(c){this[r]=c}};return{get:o,set(c){let l=o?.call(this);i?.call(this,c),this.requestUpdate(t,l,a)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??Ni}static _$Ei(){if(this.hasOwnProperty(Zt("elementProperties")))return;let t=s0(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(Zt("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Zt("properties"))){let r=this.properties,a=[...i0(r),...c0(r)];for(let o of a)this.createProperty(o,r[o])}let t=this[Symbol.metadata];if(t!==null){let r=litPropertyMetadata.get(t);if(r!==void 0)for(let[a,o]of r)this.elementProperties.set(a,o)}this._$Eh=new Map;for(let[r,a]of this.elementProperties){let o=this._$Eu(r,a);o!==void 0&&this._$Eh.set(o,r)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){let r=[];if(Array.isArray(t)){let a=new Set(t.flat(1/0).reverse());for(let o of a)r.unshift(kr(o))}else t!==void 0&&r.push(kr(t));return r}static _$Eu(t,r){let a=r.attribute;return a===!1?void 0:typeof a=="string"?a:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(t=>t(this))}addController(t){(this._$EO??=new Set).add(t),this.renderRoot!==void 0&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){let t=new Map,r=this.constructor.elementProperties;for(let a of r.keys())this.hasOwnProperty(a)&&(t.set(a,this[a]),delete this[a]);t.size>0&&(this._$Ep=t)}createRenderRoot(){let t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Kt(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(t=>t.hostConnected?.())}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach(t=>t.hostDisconnected?.())}attributeChangedCallback(t,r,a){this._$AK(t,a)}_$ET(t,r){let a=this.constructor.elementProperties.get(t),o=this.constructor._$Eu(t,a);if(o!==void 0&&a.reflect===!0){let i=(a.converter?.toAttribute!==void 0?a.converter:xt).toAttribute(r,a.type);this._$Em=t,i==null?this.removeAttribute(o):this.setAttribute(o,i),this._$Em=null}}_$AK(t,r){let a=this.constructor,o=a._$Eh.get(t);if(o!==void 0&&this._$Em!==o){let i=a.getPropertyOptions(o),c=typeof i.converter=="function"?{fromAttribute:i.converter}:i.converter?.fromAttribute!==void 0?i.converter:xt;this._$Em=o,this[o]=c.fromAttribute(r,i.type)??this._$Ej?.get(o)??null,this._$Em=null}}requestUpdate(t,r,a){if(t!==void 0){let o=this.constructor,i=this[t];if(a??=o.getPropertyOptions(t),!((a.hasChanged??Yt)(i,r)||a.useDefault&&a.reflect&&i===this._$Ej?.get(t)&&!this.hasAttribute(o._$Eu(t,a))))return;this.C(t,r,a)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(t,r,{useDefault:a,reflect:o,wrapped:i},c){a&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,c??r??this[t]),i!==!0||c!==void 0)||(this._$AL.has(t)||(this.hasUpdated||a||(r=void 0),this._$AL.set(t,r)),o===!0&&this._$Em!==t&&(this._$Eq??=new Set).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(r){Promise.reject(r)}let t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[o,i]of this._$Ep)this[o]=i;this._$Ep=void 0}let a=this.constructor.elementProperties;if(a.size>0)for(let[o,i]of a){let{wrapped:c}=i,l=this[o];c!==!0||this._$AL.has(o)||l===void 0||this.C(o,void 0,i,l)}}let t=!1,r=this._$AL;try{t=this.shouldUpdate(r),t?(this.willUpdate(r),this._$EO?.forEach(a=>a.hostUpdate?.()),this.update(r)):this._$EM()}catch(a){throw t=!1,this._$EM(),a}t&&this._$AE(r)}willUpdate(t){}_$AE(t){this._$EO?.forEach(r=>r.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&=this._$Eq.forEach(r=>this._$ET(r,this[r])),this._$EM()}updated(t){}firstUpdated(t){}};ce.elementStyles=[],ce.shadowRootOptions={mode:"open"},ce[Zt("elementProperties")]=new Map,ce[Zt("finalized")]=new Map,d0?.({ReactiveElement:ce}),(zr.reactiveElementVersions??=[]).push("2.1.0");var wn=globalThis,Ir=wn.trustedTypes,Ti=Ir?Ir.createPolicy("lit-html",{createHTML:e=>e}):void 0,Nn="$lit$",Re=`lit$${Math.random().toFixed(9).slice(2)}$`,Tn="?"+Re,u0=`<${Tn}>`,Xe=document,Xt=()=>Xe.createComment(""),Qt=e=>e===null||typeof e!="object"&&typeof e!="function",Mn=Array.isArray,Di=e=>Mn(e)||typeof e?.[Symbol.iterator]=="function",_n=`[ \f\r]`,qt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Mi=/-->/g,Pi=/>/g,Ye=RegExp(`>|${_n}(?:([^\\s"'>=/]+)(${_n}*=${_n}*(?:[^ \f\r"'\`<>=]|("|')|))|$)`,"g"),ki=/'/g,zi=/"/g,Ui=/^(?:script|style|textarea|title)$/i,Pn=e=>(t,...r)=>({_$litType$:e,strings:t,values:r}),ye=Pn(1),f0=Pn(2),p0=Pn(3),Z=Symbol.for("lit-noChange"),F=Symbol.for("lit-nothing"),Ii=new WeakMap,qe=Xe.createTreeWalker(Xe,129);function Bi(e,t){if(!Mn(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return Ti!==void 0?Ti.createHTML(t):t}var Gi=(e,t)=>{let r=e.length-1,a=[],o,i=t===2?"<svg>":t===3?"<math>":"",c=qt;for(let l=0;l<r;l++){let d=e[l],f,h,p=-1,y=0;for(;y<d.length&&(c.lastIndex=y,h=c.exec(d),h!==null);)y=c.lastIndex,c===qt?h[1]==="!--"?c=Mi:h[1]!==void 0?c=Pi:h[2]!==void 0?(Ui.test(h[2])&&(o=RegExp("</"+h[2],"g")),c=Ye):h[3]!==void 0&&(c=Ye):c===Ye?h[0]===">"?(c=o??qt,p=-1):h[1]===void 0?p=-2:(p=c.lastIndex-h[2].length,f=h[1],c=h[3]===void 0?Ye:h[3]==='"'?zi:ki):c===zi||c===ki?c=Ye:c===Mi||c===Pi?c=qt:(c=Ye,o=void 0);let x=c===Ye&&e[l+1].startsWith("/>")?" ":"";i+=c===qt?d+u0:p>=0?(a.push(f),d.slice(0,p)+Nn+d.slice(p)+Re+x):d+Re+(p===-2?l:x)}return[Bi(e,i+(e[r]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),a]},Jt=class e{constructor({strings:t,_$litType$:r},a){let o;this.parts=[];let i=0,c=0,l=t.length-1,d=this.parts,[f,h]=Gi(t,r);if(this.el=e.createElement(f,a),qe.currentNode=this.el.content,r===2||r===3){let p=this.el.content.firstChild;p.replaceWith(...p.childNodes)}for(;(o=qe.nextNode())!==null&&d.length<l;){if(o.nodeType===1){if(o.hasAttributes())for(let p of o.getAttributeNames())if(p.endsWith(Nn)){let y=h[c++],x=o.getAttribute(p).split(Re),v=/([.?@])?(.*)/.exec(y);d.push({type:1,index:i,name:v[2],strings:x,ctor:v[1]==="."?Ur:v[1]==="?"?Br:v[1]==="@"?Gr:Je}),o.removeAttribute(p)}else p.startsWith(Re)&&(d.push({type:6,index:i}),o.removeAttribute(p));if(Ui.test(o.tagName)){let p=o.textContent.split(Re),y=p.length-1;if(y>0){o.textContent=Ir?Ir.emptyScript:"";for(let x=0;x<y;x++)o.append(p[x],Xt()),qe.nextNode(),d.push({type:2,index:++i});o.append(p[y],Xt())}}}else if(o.nodeType===8)if(o.data===Tn)d.push({type:2,index:i});else{let p=-1;for(;(p=o.data.indexOf(Re,p+1))!==-1;)d.push({type:7,index:i}),p+=Re.length-1}i++}}static createElement(t,r){let a=Xe.createElement("template");return a.innerHTML=t,a}};function Qe(e,t,r=e,a){if(t===Z)return t;let o=a!==void 0?r._$Co?.[a]:r._$Cl,i=Qt(t)?void 0:t._$litDirective$;return o?.constructor!==i&&(o?._$AO?.(!1),i===void 0?o=void 0:(o=new i(e),o._$AT(e,r,a)),a!==void 0?(r._$Co??=[])[a]=o:r._$Cl=o),o!==void 0&&(t=Qe(e,o._$AS(e,t.values),o,a)),t}var Dr=class{constructor(t,r){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){let{el:{content:r},parts:a}=this._$AD,o=(t?.creationScope??Xe).importNode(r,!0);qe.currentNode=o;let i=qe.nextNode(),c=0,l=0,d=a[0];for(;d!==void 0;){if(c===d.index){let f;d.type===2?f=new vt(i,i.nextSibling,this,t):d.type===1?f=new d.ctor(i,d.name,d.strings,this,t):d.type===6&&(f=new Hr(i,this,t)),this._$AV.push(f),d=a[++l]}c!==d?.index&&(i=qe.nextNode(),c++)}return qe.currentNode=Xe,o}p(t){let r=0;for(let a of this._$AV)a!==void 0&&(a.strings!==void 0?(a._$AI(t,a,r),r+=a.strings.length-2):a._$AI(t[r])),r++}},vt=class e{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,r,a,o){this.type=2,this._$AH=F,this._$AN=void 0,this._$AA=t,this._$AB=r,this._$AM=a,this.options=o,this._$Cv=o?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode,r=this._$AM;return r!==void 0&&t?.nodeType===11&&(t=r.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,r=this){t=Qe(this,t,r),Qt(t)?t===F||t==null||t===""?(this._$AH!==F&&this._$AR(),this._$AH=F):t!==this._$AH&&t!==Z&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Di(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==F&&Qt(this._$AH)?this._$AA.nextSibling.data=t:this.T(Xe.createTextNode(t)),this._$AH=t}$(t){let{values:r,_$litType$:a}=t,o=typeof a=="number"?this._$AC(t):(a.el===void 0&&(a.el=Jt.createElement(Bi(a.h,a.h[0]),this.options)),a);if(this._$AH?._$AD===o)this._$AH.p(r);else{let i=new Dr(o,this),c=i.u(this.options);i.p(r),this.T(c),this._$AH=i}}_$AC(t){let r=Ii.get(t.strings);return r===void 0&&Ii.set(t.strings,r=new Jt(t)),r}k(t){Mn(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,a,o=0;for(let i of t)o===r.length?r.push(a=new e(this.O(Xt()),this.O(Xt()),this,this.options)):a=r[o],a._$AI(i),o++;o<r.length&&(this._$AR(a&&a._$AB.nextSibling,o),r.length=o)}_$AR(t=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);t&&t!==this._$AB;){let a=t.nextSibling;t.remove(),t=a}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},Je=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,r,a,o,i){this.type=1,this._$AH=F,this._$AN=void 0,this.element=t,this.name=r,this._$AM=o,this.options=i,a.length>2||a[0]!==""||a[1]!==""?(this._$AH=Array(a.length-1).fill(new String),this.strings=a):this._$AH=F}_$AI(t,r=this,a,o){let i=this.strings,c=!1;if(i===void 0)t=Qe(this,t,r,0),c=!Qt(t)||t!==this._$AH&&t!==Z,c&&(this._$AH=t);else{let l=t,d,f;for(t=i[0],d=0;d<i.length-1;d++)f=Qe(this,l[a+d],r,d),f===Z&&(f=this._$AH[d]),c||=!Qt(f)||f!==this._$AH[d],f===F?t=F:t!==F&&(t+=(f??"")+i[d+1]),this._$AH[d]=f}c&&!o&&this.j(t)}j(t){t===F?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},Ur=class extends Je{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===F?void 0:t}},Br=class extends Je{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==F)}},Gr=class extends Je{constructor(t,r,a,o,i){super(t,r,a,o,i),this.type=5}_$AI(t,r=this){if((t=Qe(this,t,r,0)??F)===Z)return;let a=this._$AH,o=t===F&&a!==F||t.capture!==a.capture||t.once!==a.once||t.passive!==a.passive,i=t!==F&&(a===F||o);o&&this.element.removeEventListener(this.name,this,a),i&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},Hr=class{constructor(t,r,a){this.element=t,this.type=6,this._$AN=void 0,this._$AM=r,this.options=a}get _$AU(){return this._$AM._$AU}_$AI(t){Qe(this,t)}},kn={M:Nn,P:Re,A:Tn,C:1,L:Gi,R:Dr,D:Di,V:Qe,I:vt,H:Je,N:Br,U:Gr,B:Ur,F:Hr},h0=wn.litHtmlPolyfillSupport;h0?.(Jt,vt),(wn.litHtmlVersions??=[]).push("3.3.0");var zn=(e,t,r)=>{let a=r?.renderBefore??t,o=a._$litPart$;if(o===void 0){let i=r?.renderBefore??null;a._$litPart$=o=new vt(t.insertBefore(Xt(),i),i,void 0,r??{})}return o._$AI(e),o};var In=globalThis,be=class extends ce{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){let r=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=zn(r,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return Z}};be._$litElement$=!0,be.finalized=!0,In.litElementHydrateSupport?.({LitElement:be});var m0=In.litElementPolyfillSupport;m0?.({LitElement:be});var Hi={_$AK:(e,t,r)=>{e._$AK(t,r)},_$AL:e=>e._$AL};(In.litElementVersions??=[]).push("4.2.0");var x5=!1;var Bn={};D(Bn,{customElement:()=>g0,eventOptions:()=>b0,property:()=>I,query:()=>Un,queryAll:()=>v0,queryAssignedElements:()=>S0,queryAssignedNodes:()=>A0,queryAsync:()=>E0,standardProperty:()=>Wi,state:()=>se});var g0=e=>(t,r)=>{r!==void 0?r.addInitializer(()=>{customElements.define(e,t)}):customElements.define(e,t)};var y0={attribute:!0,type:String,converter:xt,reflect:!1,hasChanged:Yt},Wi=(e=y0,t,r)=>{let{kind:a,metadata:o}=r,i=globalThis.litPropertyMetadata.get(o);if(i===void 0&&globalThis.litPropertyMetadata.set(o,i=new Map),a==="setter"&&((e=Object.create(e)).wrapped=!0),i.set(r.name,e),a==="accessor"){let{name:c}=r;return{set(l){let d=t.get.call(this);t.set.call(this,l),this.requestUpdate(c,d,e)},init(l){return l!==void 0&&this.C(c,void 0,e,l),l}}}if(a==="setter"){let{name:c}=r;return function(l){let d=this[c];t.call(this,l),this.requestUpdate(c,d,e)}}throw Error("Unsupported decorator location: "+a)};function I(e){return(t,r)=>typeof r=="object"?Wi(e,t,r):((a,o,i)=>{let c=o.hasOwnProperty(i);return o.constructor.createProperty(i,a),c?Object.getOwnPropertyDescriptor(o,i):void 0})(e,t,r)}function se(e){return I({...e,state:!0,attribute:!1})}function b0(e){return(t,r)=>{let a=typeof t=="function"?t:t[r];Object.assign(a,e)}}var pe=(e,t,r)=>(r.configurable=!0,r.enumerable=!0,Reflect.decorate&&typeof t!="object"&&Object.defineProperty(e,t,r),r);function Un(e,t){return(r,a,o)=>{let i=c=>c.renderRoot?.querySelector(e)??null;if(t){let{get:c,set:l}=typeof a=="object"?r:o??(()=>{let d=Symbol();return{get(){return this[d]},set(f){this[d]=f}}})();return pe(r,a,{get(){let d=c.call(this);return d===void 0&&(d=i(this),(d!==null||this.hasUpdated)&&l.call(this,d)),d}})}return pe(r,a,{get(){return i(this)}})}}var x0;function v0(e){return(t,r)=>pe(t,r,{get(){return(this.renderRoot??(x0??=document.createDocumentFragment())).querySelectorAll(e)}})}function E0(e){return(t,r)=>pe(t,r,{async get(){return await this.updateComplete,this.renderRoot?.querySelector(e)??null}})}function S0(e){return(t,r)=>{let{slot:a,selector:o}=e??{},i="slot"+(a?`[name=${a}]`:":not([name])");return pe(t,r,{get(){let c=this.renderRoot?.querySelector(i),l=c?.assignedElements(e)??[];return o===void 0?l:l.filter(d=>d.matches(o))}})}}function A0(e){return(t,r)=>{let{slot:a}=e??{},o="slot"+(a?`[name=${a}]`:":not([name])");return pe(t,r,{get(){return this.renderRoot?.querySelector(o)?.assignedNodes(e)??[]}})}}var Gn={};D(Gn,{repeat:()=>Fr});var xe={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},ne=e=>(...t)=>({_$litDirective$:e,values:t}),le=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,r,a){this._$Ct=t,this._$AM=r,this._$Ci=a}_$AS(t,r){return this.update(t,r)}update(t,r){return this.render(...r)}};var{I:C0}=kn;var $i=e=>e.strings===void 0,Fi=()=>document.createComment(""),Et=(e,t,r)=>{let a=e._$AA.parentNode,o=t===void 0?e._$AB:t._$AA;if(r===void 0){let i=a.insertBefore(Fi(),o),c=a.insertBefore(Fi(),o);r=new C0(i,c,e,e.options)}else{let i=r._$AB.nextSibling,c=r._$AM,l=c!==e;if(l){let d;r._$AQ?.(e),r._$AM=e,r._$AP!==void 0&&(d=e._$AU)!==c._$AU&&r._$AP(d)}if(i!==o||l){let d=r._$AA;for(;d!==i;){let f=d.nextSibling;a.insertBefore(d,o),d=f}}}return r},ke=(e,t,r=e)=>(e._$AI(t,r),e),L0={},Vi=(e,t=L0)=>e._$AH=t,ji=e=>e._$AH,Wr=e=>{e._$AP?.(!1,!0);let t=e._$AA,r=e._$AB.nextSibling;for(;t!==r;){let a=t.nextSibling;t.remove(),t=a}};var Ki=(e,t,r)=>{let a=new Map;for(let o=t;o<=r;o++)a.set(e[o],o);return a},Fr=ne(class extends le{constructor(e){if(super(e),e.type!==xe.CHILD)throw Error("repeat() can only be used in text expressions")}dt(e,t,r){let a;r===void 0?r=t:t!==void 0&&(a=t);let o=[],i=[],c=0;for(let l of e)o[c]=a?a(l,c):c,i[c]=r(l,c),c++;return{values:i,keys:o}}render(e,t,r){return this.dt(e,t,r).values}update(e,[t,r,a]){let o=ji(e),{values:i,keys:c}=this.dt(t,r,a);if(!Array.isArray(o))return this.ut=c,i;let l=this.ut??=[],d=[],f,h,p=0,y=o.length-1,x=0,v=i.length-1;for(;p<=y&&x<=v;)if(o[p]===null)p++;else if(o[y]===null)y--;else if(l[p]===c[x])d[x]=ke(o[p],i[x]),p++,x++;else if(l[y]===c[v])d[v]=ke(o[y],i[v]),y--,v--;else if(l[p]===c[v])d[v]=ke(o[p],i[v]),Et(e,d[v+1],o[p]),p++,v--;else if(l[y]===c[x])d[x]=ke(o[y],i[x]),Et(e,o[p],o[y]),y--,x++;else if(f===void 0&&(f=Ki(c,x,v),h=Ki(l,p,y)),f.has(l[p]))if(f.has(l[y])){let C=h.get(c[x]),O=C!==void 0?o[C]:null;if(O===null){let _=Et(e,o[p]);ke(_,i[x]),d[x]=_}else d[x]=ke(O,i[x]),Et(e,o[p],O),o[C]=null;x++}else Wr(o[y]),y--;else Wr(o[p]),p++;for(;x<=v;){let C=Et(e,d[v+1]);ke(C,i[x]),d[x++]=C}for(;p<=y;){let C=o[p++];C!==null&&Wr(C)}return this.ut=c,Vi(e,d),Z}});var Wn={};D(Wn,{classMap:()=>Hn});var Hn=ne(class extends le{constructor(e){if(super(e),e.type!==xe.ATTRIBUTE||e.name!=="class"||e.strings?.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]){if(this.st===void 0){this.st=new Set,e.strings!==void 0&&(this.nt=new Set(e.strings.join(" ").split(/\s/).filter(a=>a!=="")));for(let a in t)t[a]&&!this.nt?.has(a)&&this.st.add(a);return this.render(t)}let r=e.element.classList;for(let a of this.st)a in t||(r.remove(a),this.st.delete(a));for(let a in t){let o=!!t[a];o===this.st.has(a)||this.nt?.has(a)||(o?(r.add(a),this.st.add(a)):(r.remove(a),this.st.delete(a)))}return Z}});var Fn={};D(Fn,{styleMap:()=>R0});var Zi="important",O0=" !"+Zi,R0=ne(class extends le{constructor(e){if(super(e),e.type!==xe.ATTRIBUTE||e.name!=="style"||e.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(e){return Object.keys(e).reduce((t,r)=>{let a=e[r];return a==null?t:t+`${r=r.includes("-")?r:r.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${a};`},"")}update(e,[t]){let{style:r}=e.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(t)),this.render(t);for(let a of this.ft)t[a]==null&&(this.ft.delete(a),a.includes("-")?r.removeProperty(a):r[a]=null);for(let a in t){let o=t[a];if(o!=null){this.ft.add(a);let i=typeof o=="string"&&o.endsWith(O0);a.includes("-")||i?r.setProperty(a,i?o.slice(0,-11):o,i?Zi:""):r[a]=o}}return Z}});var $n={};D($n,{UnsafeHTMLDirective:()=>St,unsafeHTML:()=>er});var St=class extends le{constructor(t){if(super(t),this.it=F,t.type!==xe.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===F||t==null)return this._t=void 0,this.it=t;if(t===Z)return t;if(typeof t!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this._t;this.it=t;let r=[t];return r.raw=r,this._t={_$litType$:this.constructor.resultType,strings:r,values:[]}}};St.directiveName="unsafeHTML",St.resultType=1;var er=ne(St);var ea={};D(ea,{CacheRegistry:()=>Jn,ClearCacheEvent:()=>ar});var jn={};D(jn,{CancelablePromise:()=>$r,CanceledPromiseError:()=>tr,cancelable:()=>Vn});var tr=class extends Error{constructor(t,r,a){super(t),this.canceledPromiseResult=r,this.canceledPromiseError=a}},$r=class extends Promise{constructor(t){super((r,a)=>t(o=>{this.isCanceled?a(new tr("Promise has been canceled",o)):r(o)},o=>{this.isCanceled?a(new tr("Promise has been canceled",void 0,o)):a(o)})),this.isCanceled=!1}cancel(){this.isCanceled=!0}},Vn=e=>new $r((t,r)=>e.then(t).catch(r));var Qn={};D(Qn,{FtNotificationEvent:()=>nr,PostResizeEvent:()=>Xn,PreResizeEvent:()=>qn,WithEventBus:()=>rt,withEventBus:()=>rc});var Yn={};D(Yn,{applyMixinOnce:()=>ae,dateReviver:()=>N0,deepCopy:()=>Zn,deepEqual:()=>rr,delay:()=>Yi,eventPathContainsMatchingElement:()=>M0,everyDeep:()=>w0,flatDeep:()=>Xi,forEachDeep:()=>Qi,getComposedPathTo:()=>Kn,hasChanged:()=>et,ignoreComposingEvents:()=>z0,last:()=>P0,minmax:()=>tt,parseDate:()=>ec,randomId:()=>k0,someDeep:()=>Ji,unslotText:()=>tc,waitFor:()=>qi,waitUntil:()=>_0});var Yi=e=>new Promise(t=>setTimeout(t,e));async function _0(e,t=10,r=2e4){await qi(async()=>await e()||void 0,t,r)}async function qi(e,t=10,r=2e4){let a=await e(),o,i;for(o=i=performance.now();a==null&&(!r||i-o<r);)await Yi(t),a=await e(),i=performance.now();if(a==null)throw new Error("Timeout exceeded");return a}function Xi(e,t){return e.flatMap(r=>[r,...Xi(t(r),t)])}function Qi(e,t,r){let a=(o,i)=>{var c;for(let l=0;l<o.length;l++){let d=o[l];if(!(((c=r(d,l,o,i))!==null&&c!==void 0?c:!0)&&a(t(d),[...i,d])))return!1}return!0};a(e,[])}function Ji(e,t,r){let a=!1;return Qi(e,t,(o,i,c,l)=>(a=!!r(o,i,c,l),!a)),a}function w0(e,t,r){return!Ji(e,t,(a,o,i,c)=>!r(a,o,i,c))}function N0(...e){return(t,r)=>e.includes(t)?ec(r):r}function ec(e){return e.match(/^\d{4}-\d{2}-\d{2}$/)&&(e=e.replace(/-/g,"/")),e=e.replace(" ","T").replace(/^(.+)(\+\d{2})(\d{2})$/,(t,r,a,o)=>r+a+":"+o),new Date(e)}function T0(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;let r,a,o;if(Array.isArray(e)){if(r=e.length,r!=t.length)return!1;for(a=r;a--!==0;)if(!rr(e[a],t[a]))return!1;return!0}if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(a of e.entries())if(!t.has(a[0]))return!1;for(a of e.entries())if(!rr(a[1],t.get(a[0])))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(a of e.entries())if(!t.has(a[0]))return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();let i=c=>Object.keys(c).filter(l=>c[l]!=null);if(o=i(e),r=o.length,r!==i(t).length)return!1;for(a=r;a--!==0;)if(!Object.prototype.hasOwnProperty.call(t,o[a]))return!1;for(a=r;a--!==0;){let c=o[a];if(!rr(e[c],t[c]))return!1}return!0}return e!==e&&t!==t||e==null&&t==null}function rr(e,t){try{return T0(e,t)}catch{return!1}}function et(e,t){return!rr(e,t)}function M0(e,t,r=window.document.body){if(t.length>0){let a=e.composedPath();for(let o of a){if(o===r)return!1;if(o.matches&&t.some(i=>o.matches(i)))return!0}}return!1}function tt(e,t,r){return Math.min(Math.max(e,t),r)}function P0(e){return e[e.length-1]}function tc(e){return e instanceof HTMLSlotElement?e.assignedNodes().map(t=>tc(t)).join(""):e?.textContent||""}function Kn(e){let t=[],r=a=>{a.stopPropagation(),t=a.composedPath()};return e.addEventListener("get-composed-path",r),e.dispatchEvent(new Event("get-composed-path",{composed:!0})),e.removeEventListener("get-composed-path",r),t}function Zn(e){return typeof window.structuredClone=="function"?structuredClone(e):e!=null?JSON.parse(JSON.stringify(e)):e}function k0(e,t){return(t??"")+(""+Math.floor(Math.random()*10**e)).padStart(e,"0")}function ae(e,t){let r=a=>a[e]===!0;return a=>{if(r(a))return a;let o=t(a);return o[e]=!0,o}}function z0(){return function(e,t,r){let a=r.value;r.value=function(o){if(!(o.isComposing||o.keyCode===229))return a.apply(this,[o])}}}var nr=class extends CustomEvent{constructor(t){super("ft-notification",{bubbles:!0,composed:!0,detail:t})}},qn=class extends Event{constructor(){super("ft-pre-resize",{composed:!0,bubbles:!0})}},Xn=class extends Event{constructor(){super("ft-post-resize",{composed:!0,bubbles:!0})}},rc=ae(Symbol("withEventBus"),function(e,t){return class extends e{constructor(){super(...arguments),this.eventBus=t??document.createElement("span")}addEventListener(r,a,o){this.eventBus.addEventListener(r,a,o)}dispatchEvent(r){return this.eventBus.dispatchEvent(r)}removeEventListener(r,a,o){this.eventBus.removeEventListener(r,a,o)}}}),rt=class extends rc(Object){};var ar=class extends CustomEvent{constructor(t){super("clear-cache",{detail:{clearedKeys:t}})}},Jn=class extends rt{constructor(){super(...arguments),this.content={}}register(t,r,a=!1){var o;let i=this.content[t],c=(o=i?.status)!==null&&o!==void 0?o:"REGISTERED";this.content[t]={...i,loader:r,final:a,status:c}}registerFinal(t,r){this.register(t,r,!0)}clearAll(t=!0){return this.clearMatching(()=>!0,t)}clearMatching(t,r=!0){let a=Object.keys(this.content).filter(t).filter(o=>this.clear(o,!1)!=null);return r&&a.length>0&&this.dispatchEvent(new ar(a)),a}clear(t,r=!0){if(this.content[t]&&!this.content[t].final)return this.forceClear(t),r&&this.dispatchEvent(new ar([t])),t}forceClear(t){var r;let a=this.content[t];a&&(this.clearClearTimeout(t),(r=a.promise)===null||r===void 0||r.cancel(),this.content[t]={loader:a.loader,final:a.final,status:"REGISTERED"})}clearClearTimeout(t){var r,a,o;((r=this.content[t])===null||r===void 0?void 0:r.clearTimeout)!=null&&(window.clearTimeout((a=this.content[t])===null||a===void 0?void 0:a.clearTimeout),(o=this.content[t])===null||o===void 0||delete o.clearTimeout)}set(t,r,a=!1){this.forceClear(t);let o=async()=>r,i="RESOLVED";this.content[t]={loader:o,final:a,status:i,value:r}}setFinal(t,r){return this.set(t,r,!0)}async get(t,r,a){if(!this.isRegistered(t)){if(!r)throw new Error("Unknown cache key "+t);this.register(t,r)}let o=this.content[t];switch(o.status){case"ERROR":throw o.error;case"LOADING":return o.promise;case"RESOLVED":return o.value;case"REGISTERED":return r=r??o.loader,o.status="LOADING",o.promise=Vn(r()),o.promise.then(i=>(o.status="RESOLVED",o.value=i,a!=null&&(this.clearClearTimeout(t),o.clearTimeout=window.setTimeout(()=>this.clear(t),a)),i)).catch(i=>{var c;throw!((c=o.promise)===null||c===void 0)&&c.isCanceled||(o.status="ERROR",o.error=i),i})}}isRegistered(t){return this.content[t]!=null}getNow(t){var r;return(r=this.content[t])===null||r===void 0?void 0:r.value}has(t){var r,a;return((r=this.content[t])===null||r===void 0?void 0:r.status)!==void 0&&((a=this.content[t])===null||a===void 0?void 0:a.status)!=="REGISTERED"}resolvedKeys(){return Object.keys(this.content).filter(t=>{var r;return((r=this.content[t])===null||r===void 0?void 0:r.status)==="RESOLVED"})}resolvedValues(){return this.resolvedKeys().map(t=>this.content[t].value)}keys(){return Object.keys(this.content)}};var oa={};D(oa,{ClusteringHelper:()=>aa,formatHierarchicalValues:()=>na});var ra={};D(ra,{accessBreadcrumb:()=>U0,accessResult:()=>ta,accessResultId:()=>I0,accessResultUrl:()=>D0});function ta(e){var t,r,a,o;return(o=(a=(r=(t=e?.map)!==null&&t!==void 0?t:e?.topic)!==null&&r!==void 0?r:e?.document)!==null&&a!==void 0?a:e?.htmlPackage)!==null&&o!==void 0?o:e?.htmlPackagePage}function I0(e){var t,r,a,o,i,c,l,d,f;return(d=(c=(o=(r=(t=e?.map)===null||t===void 0?void 0:t.mapId)!==null&&r!==void 0?r:(a=e?.topic)===null||a===void 0?void 0:a.tocId)!==null&&o!==void 0?o:(i=e?.document)===null||i===void 0?void 0:i.documentId)!==null&&c!==void 0?c:(l=e?.htmlPackage)===null||l===void 0?void 0:l.packageId)!==null&&d!==void 0?d:(f=e?.htmlPackagePage)===null||f===void 0?void 0:f.contentId}function D0(e){var t,r,a,o,i,c,l,d,f;return(d=(c=(o=(r=(t=e?.map)===null||t===void 0?void 0:t.readerUrl)!==null&&r!==void 0?r:(a=e?.topic)===null||a===void 0?void 0:a.readerUrl)!==null&&o!==void 0?o:(i=e?.document)===null||i===void 0?void 0:i.viewerUrl)!==null&&c!==void 0?c:(l=e?.htmlPackage)===null||l===void 0?void 0:l.viewerUrl)!==null&&d!==void 0?d:(f=e?.htmlPackagePage)===null||f===void 0?void 0:f.viewerUrl}function U0(e){return e?.topic?[e.topic.mapTitle,...e.topic.breadcrumb]:e?.map?[e.map.title]:e?.document?[e.document.title]:e?.htmlPackage?[e.htmlPackage.title]:e?.htmlPackagePage?[e.htmlPackagePage.packageTitle,e.htmlPackagePage.title]:[]}function na(e,t){return t&&t>1&&e.length>=t?`... > ${e[e.length-1]}`:e.join(" > ")}var aa=class e{constructor(t,r,a,o){this.allResults=t,this.selectedResult=r,this.clusteringMetadata=a,this.metadataDescriptors=o}static findResultWithMetadataValue(t,r,a){return t?.find(o=>{var i;return((i=this.extractResultMetadata({result:o}).find(c=>c.key==r))===null||i===void 0?void 0:i.value)==a})}static extractResultMetadata(t){var r,a;let o=(a=(r=ta(t.result))===null||r===void 0?void 0:r.metadata)!==null&&a!==void 0?a:[];return t.key==null?e.flattenMetadata(o,t.hierarchicalValueTruncatingLevel,t.dateFormatter):e.flatt