UNPKG

@fluid-topics/ft-icon

Version:

Typography components

4 lines 272 kB
"use strict";(()=>{var ec=Object.create;var mr=Object.defineProperty;var tc=Object.getOwnPropertyDescriptor;var rc=Object.getOwnPropertyNames;var oc=Object.getPrototypeOf,nc=Object.prototype.hasOwnProperty;var ac=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),U=(t,e)=>{for(var o in e)mr(t,o,{get:e[o],enumerable:!0})},ic=(t,e,o,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of rc(e))!nc.call(t,a)&&a!==o&&mr(t,a,{get:()=>e[a],enumerable:!(n=tc(e,a))||n.enumerable});return t};var cc=(t,e,o)=>(o=t!=null?ec(oc(t)):{},ic(e||!t||!t.__esModule?mr(o,"default",{value:t,enumerable:!0}):o,t));var wi=ac((Ae,Ai)=>{var dr=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof global<"u"&&global,ur=function(){function t(){this.fetch=!1,this.DOMException=dr.DOMException}return t.prototype=dr,new t}();(function(t){var e=function(o){var n=typeof t<"u"&&t||typeof self<"u"&&self||typeof global<"u"&&global||{},a={searchParams:"URLSearchParams"in n,iterable:"Symbol"in n&&"iterator"in Symbol,blob:"FileReader"in n&&"Blob"in n&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in n,arrayBuffer:"ArrayBuffer"in n};function i(y){return y&&DataView.prototype.isPrototypeOf(y)}if(a.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(y){return y&&c.indexOf(Object.prototype.toString.call(y))>-1};function d(y){if(typeof y!="string"&&(y=String(y)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(y)||y==="")throw new TypeError('Invalid character in header field name: "'+y+'"');return y.toLowerCase()}function p(y){return typeof y!="string"&&(y=String(y)),y}function h(y){var v={next:function(){var N=y.shift();return{done:N===void 0,value:N}}};return a.iterable&&(v[Symbol.iterator]=function(){return v}),v}function f(y){this.map={},y instanceof f?y.forEach(function(v,N){this.append(N,v)},this):Array.isArray(y)?y.forEach(function(v){if(v.length!=2)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+v.length);this.append(v[0],v[1])},this):y&&Object.getOwnPropertyNames(y).forEach(function(v){this.append(v,y[v])},this)}f.prototype.append=function(y,v){y=d(y),v=p(v);var N=this.map[y];this.map[y]=N?N+", "+v:v},f.prototype.delete=function(y){delete this.map[d(y)]},f.prototype.get=function(y){return y=d(y),this.has(y)?this.map[y]:null},f.prototype.has=function(y){return this.map.hasOwnProperty(d(y))},f.prototype.set=function(y,v){this.map[d(y)]=p(v)},f.prototype.forEach=function(y,v){for(var N in this.map)this.map.hasOwnProperty(N)&&y.call(v,this.map[N],N,this)},f.prototype.keys=function(){var y=[];return this.forEach(function(v,N){y.push(N)}),h(y)},f.prototype.values=function(){var y=[];return this.forEach(function(v){y.push(v)}),h(y)},f.prototype.entries=function(){var y=[];return this.forEach(function(v,N){y.push([N,v])}),h(y)},a.iterable&&(f.prototype[Symbol.iterator]=f.prototype.entries);function m(y){if(!y._noBody){if(y.bodyUsed)return Promise.reject(new TypeError("Already read"));y.bodyUsed=!0}}function b(y){return new Promise(function(v,N){y.onload=function(){v(y.result)},y.onerror=function(){N(y.error)}})}function g(y){var v=new FileReader,N=b(v);return v.readAsArrayBuffer(y),N}function S(y){var v=new FileReader,N=b(v),D=/charset=([A-Za-z0-9_-]+)/.exec(y.type),B=D?D[1]:"utf-8";return v.readAsText(y,B),N}function A(y){for(var v=new Uint8Array(y),N=new Array(v.length),D=0;D<v.length;D++)N[D]=String.fromCharCode(v[D]);return N.join("")}function C(y){if(y.slice)return y.slice(0);var v=new Uint8Array(y.byteLength);return v.set(new Uint8Array(y)),v.buffer}function R(){return this.bodyUsed=!1,this._initBody=function(y){this.bodyUsed=this.bodyUsed,this._bodyInit=y,y?typeof y=="string"?this._bodyText=y:a.blob&&Blob.prototype.isPrototypeOf(y)?this._bodyBlob=y:a.formData&&FormData.prototype.isPrototypeOf(y)?this._bodyFormData=y:a.searchParams&&URLSearchParams.prototype.isPrototypeOf(y)?this._bodyText=y.toString():a.arrayBuffer&&a.blob&&i(y)?(this._bodyArrayBuffer=C(y.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):a.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(y)||l(y))?this._bodyArrayBuffer=C(y):this._bodyText=y=Object.prototype.toString.call(y):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||(typeof y=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):a.searchParams&&URLSearchParams.prototype.isPrototypeOf(y)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},a.blob&&(this.blob=function(){var y=m(this);if(y)return y;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 y=m(this);return y||(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(a.blob)return this.blob().then(g);throw new Error("could not read as ArrayBuffer")}},this.text=function(){var y=m(this);if(y)return y;if(this._bodyBlob)return S(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(A(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},a.formData&&(this.formData=function(){return this.text().then(_)}),this.json=function(){return this.text().then(JSON.parse)},this}var O=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function x(y){var v=y.toUpperCase();return O.indexOf(v)>-1?v:y}function E(y,v){if(!(this instanceof E))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');v=v||{};var N=v.body;if(y instanceof E){if(y.bodyUsed)throw new TypeError("Already read");this.url=y.url,this.credentials=y.credentials,v.headers||(this.headers=new f(y.headers)),this.method=y.method,this.mode=y.mode,this.signal=y.signal,!N&&y._bodyInit!=null&&(N=y._bodyInit,y.bodyUsed=!0)}else this.url=String(y);if(this.credentials=v.credentials||this.credentials||"same-origin",(v.headers||!this.headers)&&(this.headers=new f(v.headers)),this.method=x(v.method||this.method||"GET"),this.mode=v.mode||this.mode||null,this.signal=v.signal||this.signal||function(){if("AbortController"in n){var I=new AbortController;return I.signal}}(),this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&N)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(N),(this.method==="GET"||this.method==="HEAD")&&(v.cache==="no-store"||v.cache==="no-cache")){var D=/([?&])_=[^&]*/;if(D.test(this.url))this.url=this.url.replace(D,"$1_="+new Date().getTime());else{var B=/\?/;this.url+=(B.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}E.prototype.clone=function(){return new E(this,{body:this._bodyInit})};function _(y){var v=new FormData;return y.trim().split("&").forEach(function(N){if(N){var D=N.split("="),B=D.shift().replace(/\+/g," "),I=D.join("=").replace(/\+/g," ");v.append(decodeURIComponent(B),decodeURIComponent(I))}}),v}function P(y){var v=new f,N=y.replace(/\r?\n[\t ]+/g," ");return N.split("\r").map(function(D){return D.indexOf(` `)===0?D.substr(1,D.length):D}).forEach(function(D){var B=D.split(":"),I=B.shift().trim();if(I){var Bt=B.join(":").trim();try{v.append(I,Bt)}catch(yr){console.warn("Response "+yr.message)}}}),v}R.call(E.prototype);function k(y,v){if(!(this instanceof k))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(v||(v={}),this.type="default",this.status=v.status===void 0?200:v.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=v.statusText===void 0?"":""+v.statusText,this.headers=new f(v.headers),this.url=v.url||"",this._initBody(y)}R.call(k.prototype),k.prototype.clone=function(){return new k(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new f(this.headers),url:this.url})},k.error=function(){var y=new k(null,{status:200,statusText:""});return y.ok=!1,y.status=0,y.type="error",y};var L=[301,302,303,307,308];k.redirect=function(y,v){if(L.indexOf(v)===-1)throw new RangeError("Invalid status code");return new k(null,{status:v,headers:{location:y}})},o.DOMException=n.DOMException;try{new o.DOMException}catch{o.DOMException=function(v,N){this.message=v,this.name=N;var D=Error(v);this.stack=D.stack},o.DOMException.prototype=Object.create(Error.prototype),o.DOMException.prototype.constructor=o.DOMException}function T(y,v){return new Promise(function(N,D){var B=new E(y,v);if(B.signal&&B.signal.aborted)return D(new o.DOMException("Aborted","AbortError"));var I=new XMLHttpRequest;function Bt(){I.abort()}I.onload=function(){var z={statusText:I.statusText,headers:P(I.getAllResponseHeaders()||"")};B.url.indexOf("file://")===0&&(I.status<200||I.status>599)?z.status=200:z.status=I.status,z.url="responseURL"in I?I.responseURL:z.headers.get("X-Request-URL");var Re="response"in I?I.response:I.responseText;setTimeout(function(){N(new k(Re,z))},0)},I.onerror=function(){setTimeout(function(){D(new TypeError("Network request failed"))},0)},I.ontimeout=function(){setTimeout(function(){D(new TypeError("Network request timed out"))},0)},I.onabort=function(){setTimeout(function(){D(new o.DOMException("Aborted","AbortError"))},0)};function yr(z){try{return z===""&&n.location.href?n.location.href:z}catch{return z}}if(I.open(B.method,yr(B.url),!0),B.credentials==="include"?I.withCredentials=!0:B.credentials==="omit"&&(I.withCredentials=!1),"responseType"in I&&(a.blob?I.responseType="blob":a.arrayBuffer&&(I.responseType="arraybuffer")),v&&typeof v.headers=="object"&&!(v.headers instanceof f||n.Headers&&v.headers instanceof n.Headers)){var yn=[];Object.getOwnPropertyNames(v.headers).forEach(function(z){yn.push(d(z)),I.setRequestHeader(z,p(v.headers[z]))}),B.headers.forEach(function(z,Re){yn.indexOf(Re)===-1&&I.setRequestHeader(Re,z)})}else B.headers.forEach(function(z,Re){I.setRequestHeader(Re,z)});B.signal&&(B.signal.addEventListener("abort",Bt),I.onreadystatechange=function(){I.readyState===4&&B.signal.removeEventListener("abort",Bt)}),I.send(typeof B._bodyInit>"u"?null:B._bodyInit)})}return T.polyfill=!0,n.fetch||(n.fetch=T,n.Headers=f,n.Request=E,n.Response=k),o.Headers=f,o.Request=E,o.Response=k,o.fetch=T,o}({})})(ur);ur.fetch.ponyfill=!0;delete ur.fetch.polyfill;var it=dr.fetch?dr:ur;Ae=it.fetch;Ae.default=it.fetch;Ae.fetch=it.fetch;Ae.Headers=it.Headers;Ae.Request=it.Request;Ae.Response=it.Response;Ai.exports=Ae});if(!ShadowRoot.prototype.createElement){let t=window.HTMLElement,e=window.customElements.define,o=window.customElements.get,n=window.customElements,a=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(O,x){if(O=O.toLowerCase(),this._getDefinition(O)!==void 0)throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${O}" has already been used with this registry`);if(this._definitionsByClass.get(x)!==void 0)throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");let E=x.prototype.attributeChangedCallback,_=new Set(x.observedAttributes||[]);m(x,_,E);let P={elementClass:x,connectedCallback:x.prototype.connectedCallback,disconnectedCallback:x.prototype.disconnectedCallback,adoptedCallback:x.prototype.adoptedCallback,attributeChangedCallback:E,formAssociated:x.formAssociated,formAssociatedCallback:x.prototype.formAssociatedCallback,formDisabledCallback:x.prototype.formDisabledCallback,formResetCallback:x.prototype.formResetCallback,formStateRestoreCallback:x.prototype.formStateRestoreCallback,observedAttributes:_};this._definitionsByTag.set(O,P),this._definitionsByClass.set(x,P);let k=o.call(n,O);k||(k=f(O),e.call(n,O,k)),this===window.customElements&&(c.set(x,P),P.standInClass=k);let L=this._awaitingUpgrade.get(O);if(L){this._awaitingUpgrade.delete(O);for(let y of L)i.delete(y),g(y,P,!0)}let T=this._whenDefinedPromises.get(O);return T!==void 0&&(T.resolve(x),this._whenDefinedPromises.delete(O)),x}upgrade(){A.push(this),n.upgrade.apply(n,arguments),A.pop()}get(O){return this._definitionsByTag.get(O)?.elementClass}_getDefinition(O){return this._definitionsByTag.get(O)}whenDefined(O){let x=this._getDefinition(O);if(x!==void 0)return Promise.resolve(x.elementClass);let E=this._whenDefinedPromises.get(O);return E===void 0&&(E={},E.promise=new Promise(_=>E.resolve=_),this._whenDefinedPromises.set(O,E)),E.promise}_upgradeWhenDefined(O,x,E){let _=this._awaitingUpgrade.get(x);_||this._awaitingUpgrade.set(x,_=new Set),E?_.add(O):_.delete(O)}};let d;window.HTMLElement=function(){let x=d;if(x)return d=void 0,x;let E=c.get(this.constructor);if(!E)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return x=Reflect.construct(t,[],E.standInClass),Object.setPrototypeOf(x,this.constructor.prototype),a.set(x,E),x},window.HTMLElement.prototype=t.prototype;let p=O=>O===document||O instanceof ShadowRoot,h=O=>{let x=O.getRootNode();if(!p(x)){let E=A[A.length-1];if(E instanceof CustomElementRegistry)return E;x=E.getRootNode(),p(x)||(x=l.get(x)?.getRootNode()||document)}return x.customElements},f=O=>class{static get formAssociated(){return!0}constructor(){let E=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(E,HTMLElement.prototype);let _=h(E)||window.customElements,P=_._getDefinition(O);return P?g(E,P):i.set(E,_),E}connectedCallback(){let E=a.get(this);E?E.connectedCallback&&E.connectedCallback.apply(this,arguments):i.get(this)._upgradeWhenDefined(this,O,!0)}disconnectedCallback(){let E=a.get(this);E?E.disconnectedCallback&&E.disconnectedCallback.apply(this,arguments):i.get(this)._upgradeWhenDefined(this,O,!1)}adoptedCallback(){a.get(this)?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){let E=a.get(this);E&&E.formAssociated&&E?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){let E=a.get(this);E?.formAssociated&&E?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){let E=a.get(this);E?.formAssociated&&E?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){let E=a.get(this);E?.formAssociated&&E?.formStateRestoreCallback?.apply(this,arguments)}},m=(O,x,E)=>{if(x.size===0||E===void 0)return;let _=O.prototype.setAttribute;_&&(O.prototype.setAttribute=function(L,T){let y=L.toLowerCase();if(x.has(y)){let v=this.getAttribute(y);_.call(this,y,T),E.call(this,y,v,T)}else _.call(this,y,T)});let P=O.prototype.removeAttribute;P&&(O.prototype.removeAttribute=function(L){let T=L.toLowerCase();if(x.has(T)){let y=this.getAttribute(T);P.call(this,T),E.call(this,T,y,null)}else P.call(this,T)});let k=O.prototype.toggleAttribute;k&&(O.prototype.toggleAttribute=function(L,T){let y=L.toLowerCase();if(x.has(y)){let v=this.getAttribute(y);k.call(this,y,T);let N=this.getAttribute(y);E.call(this,y,v,N)}else k.call(this,y,T)})},b=O=>{let x=Object.getPrototypeOf(O);if(x!==window.HTMLElement)return x===t?Object.setPrototypeOf(O,window.HTMLElement):b(x)},g=(O,x,E=!1)=>{Object.setPrototypeOf(O,x.elementClass.prototype),a.set(O,x),d=O;try{new x.elementClass}catch{b(x.elementClass),new x.elementClass}x.attributeChangedCallback&&x.observedAttributes.forEach(_=>{O.hasAttribute(_)&&x.attributeChangedCallback.call(O,_,null,O.getAttribute(_))}),E&&x.connectedCallback&&O.isConnected&&x.connectedCallback.call(O)},S=Element.prototype.attachShadow;Element.prototype.attachShadow=function(O){let x=S.apply(this,arguments);return O.customElements&&(x.customElements=O.customElements),x};let A=[document],C=(O,x,E=void 0)=>{let _=(E?Object.getPrototypeOf(E):O.prototype)[x];O.prototype[x]=function(){A.push(this);let P=_.apply(E||this,arguments);return P!==void 0&&l.set(P,this),A.pop(),P}};C(ShadowRoot,"createElement",document),C(ShadowRoot,"importNode",document),C(Element,"insertAdjacentHTML");let R=(O,x)=>{let E=Object.getOwnPropertyDescriptor(O.prototype,x);Object.defineProperty(O.prototype,x,{...E,set(_){A.push(this),E.set.call(this,_),A.pop()}})};if(R(Element,"innerHTML"),R(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){let O=new WeakMap,x=HTMLElement.prototype.attachInternals,E=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...L){let T=x.call(this,...L);return O.set(T,this),T},E.forEach(L=>{let T=window.ElementInternals.prototype,y=T[L];T[L]=function(...v){let N=O.get(this);if(a.get(N).formAssociated===!0)return y?.call(this,...v);throw new DOMException(`Failed to execute ${y} on 'ElementInternals': The target element is not a form-associated custom element.`)}});class _ extends Array{constructor(T){super(...T),this._elements=T}get value(){return this._elements.find(T=>T.checked===!0)?.value||""}}class P{constructor(T){let y=new Map;T.forEach((v,N)=>{let D=v.getAttribute("name"),B=y.get(D)||[];this[+N]=v,B.push(v),y.set(D,B)}),this.length=T.length,y.forEach((v,N)=>{v&&(v.length===1?this[N]=v[0]:this[N]=new _(v))})}namedItem(T){return this[T]}}let k=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){let L=k.get.call(this,[]),T=[];for(let y of L){let v=a.get(y);(!v||v.formAssociated===!0)&&T.push(y)}return new P(T)}})}}try{window.customElements.define("custom-element",null)}catch{let e=window.customElements.define;window.customElements.define=(o,n,a)=>{if(n!==null)try{e.bind(window.customElements)(o,n,a)}catch(i){console.info(o,n,a,i)}}}var Nr={};U(Nr,{CSSResult:()=>$e,LitElement:()=>se,ReactiveElement:()=>re,_$LE:()=>Sc,_$LH:()=>Ar,adoptStyles:()=>ut,css:()=>F,defaultConverter:()=>ze,getCompatibleStyle:()=>Ht,html:()=>Cr,isServer:()=>sd,mathml:()=>bc,noChange:()=>j,notEqual:()=>ft,nothing:()=>W,render:()=>wr,supportsAdoptingStyleSheets:()=>lt,svg:()=>gc,unsafeCSS:()=>dt});var Wt=globalThis,lt=Wt.ShadowRoot&&(Wt.ShadyCSS===void 0||Wt.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,gr=Symbol(),mn=new WeakMap,$e=class{constructor(e,o,n){if(this._$cssResult$=!0,n!==gr)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=o}get styleSheet(){let e=this.o,o=this.t;if(lt&&e===void 0){let n=o!==void 0&&o.length===1;n&&(e=mn.get(o)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),n&&mn.set(o,e))}return e}toString(){return this.cssText}},dt=t=>new $e(typeof t=="string"?t:t+"",void 0,gr),F=(t,...e)=>{let o=t.length===1?t[0]:e.reduce((n,a,i)=>n+(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.")})(a)+t[i+1],t[0]);return new $e(o,t,gr)},ut=(t,e)=>{if(lt)t.adoptedStyleSheets=e.map(o=>o instanceof CSSStyleSheet?o:o.styleSheet);else for(let o of e){let n=document.createElement("style"),a=Wt.litNonce;a!==void 0&&n.setAttribute("nonce",a),n.textContent=o.cssText,t.appendChild(n)}},Ht=lt?t=>t:t=>t instanceof CSSStyleSheet?(e=>{let o="";for(let n of e.cssRules)o+=n.cssText;return dt(o)})(t):t;var{is:sc,defineProperty:lc,getOwnPropertyDescriptor:dc,getOwnPropertyNames:uc,getOwnPropertySymbols:pc,getPrototypeOf:fc}=Object,Ft=globalThis,gn=Ft.trustedTypes,hc=gn?gn.emptyScript:"",yc=Ft.reactiveElementPolyfillSupport,pt=(t,e)=>t,ze={toAttribute(t,e){switch(e){case Boolean:t=t?hc:null;break;case Object:case Array:t=t==null?t:JSON.stringify(t)}return t},fromAttribute(t,e){let o=t;switch(e){case Boolean:o=t!==null;break;case Number:o=t===null?null:Number(t);break;case Object:case Array:try{o=JSON.parse(t)}catch{o=null}}return o}},ft=(t,e)=>!sc(t,e),bn={attribute:!0,type:String,converter:ze,reflect:!1,useDefault:!1,hasChanged:ft};Symbol.metadata??=Symbol("metadata"),Ft.litPropertyMetadata??=new WeakMap;var re=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,o=bn){if(o.state&&(o.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((o=Object.create(o)).wrapped=!0),this.elementProperties.set(e,o),!o.noAccessor){let n=Symbol(),a=this.getPropertyDescriptor(e,n,o);a!==void 0&&lc(this.prototype,e,a)}}static getPropertyDescriptor(e,o,n){let{get:a,set:i}=dc(this.prototype,e)??{get(){return this[o]},set(c){this[o]=c}};return{get:a,set(c){let l=a?.call(this);i?.call(this,c),this.requestUpdate(e,l,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??bn}static _$Ei(){if(this.hasOwnProperty(pt("elementProperties")))return;let e=fc(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(pt("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(pt("properties"))){let o=this.properties,n=[...uc(o),...pc(o)];for(let a of n)this.createProperty(a,o[a])}let e=this[Symbol.metadata];if(e!==null){let o=litPropertyMetadata.get(e);if(o!==void 0)for(let[n,a]of o)this.elementProperties.set(n,a)}this._$Eh=new Map;for(let[o,n]of this.elementProperties){let a=this._$Eu(o,n);a!==void 0&&this._$Eh.set(a,o)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){let o=[];if(Array.isArray(e)){let n=new Set(e.flat(1/0).reverse());for(let a of n)o.unshift(Ht(a))}else e!==void 0&&o.push(Ht(e));return o}static _$Eu(e,o){let n=o.attribute;return n===!1?void 0:typeof n=="string"?n:typeof e=="string"?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),this.renderRoot!==void 0&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$EO?.delete(e)}_$E_(){let e=new Map,o=this.constructor.elementProperties;for(let n of o.keys())this.hasOwnProperty(n)&&(e.set(n,this[n]),delete this[n]);e.size>0&&(this._$Ep=e)}createRenderRoot(){let e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return ut(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,o,n){this._$AK(e,n)}_$ET(e,o){let n=this.constructor.elementProperties.get(e),a=this.constructor._$Eu(e,n);if(a!==void 0&&n.reflect===!0){let i=(n.converter?.toAttribute!==void 0?n.converter:ze).toAttribute(o,n.type);this._$Em=e,i==null?this.removeAttribute(a):this.setAttribute(a,i),this._$Em=null}}_$AK(e,o){let n=this.constructor,a=n._$Eh.get(e);if(a!==void 0&&this._$Em!==a){let i=n.getPropertyOptions(a),c=typeof i.converter=="function"?{fromAttribute:i.converter}:i.converter?.fromAttribute!==void 0?i.converter:ze;this._$Em=a,this[a]=c.fromAttribute(o,i.type)??this._$Ej?.get(a)??null,this._$Em=null}}requestUpdate(e,o,n){if(e!==void 0){let a=this.constructor,i=this[e];if(n??=a.getPropertyOptions(e),!((n.hasChanged??ft)(i,o)||n.useDefault&&n.reflect&&i===this._$Ej?.get(e)&&!this.hasAttribute(a._$Eu(e,n))))return;this.C(e,o,n)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(e,o,{useDefault:n,reflect:a,wrapped:i},c){n&&!(this._$Ej??=new Map).has(e)&&(this._$Ej.set(e,c??o??this[e]),i!==!0||c!==void 0)||(this._$AL.has(e)||(this.hasUpdated||n||(o=void 0),this._$AL.set(e,o)),a===!0&&this._$Em!==e&&(this._$Eq??=new Set).add(e))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(o){Promise.reject(o)}let e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[a,i]of this._$Ep)this[a]=i;this._$Ep=void 0}let n=this.constructor.elementProperties;if(n.size>0)for(let[a,i]of n){let{wrapped:c}=i,l=this[a];c!==!0||this._$AL.has(a)||l===void 0||this.C(a,void 0,i,l)}}let e=!1,o=this._$AL;try{e=this.shouldUpdate(o),e?(this.willUpdate(o),this._$EO?.forEach(n=>n.hostUpdate?.()),this.update(o)):this._$EM()}catch(n){throw e=!1,this._$EM(),n}e&&this._$AE(o)}willUpdate(e){}_$AE(e){this._$EO?.forEach(o=>o.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Eq&&=this._$Eq.forEach(o=>this._$ET(o,this[o])),this._$EM()}updated(e){}firstUpdated(e){}};re.elementStyles=[],re.shadowRootOptions={mode:"open"},re[pt("elementProperties")]=new Map,re[pt("finalized")]=new Map,yc?.({ReactiveElement:re}),(Ft.reactiveElementVersions??=[]).push("2.1.0");var xr=globalThis,$t=xr.trustedTypes,xn=$t?$t.createPolicy("lit-html",{createHTML:t=>t}):void 0,vr="$lit$",ce=`lit$${Math.random().toFixed(9).slice(2)}$`,Sr="?"+ce,mc=`<${Sr}>`,Te=document,yt=()=>Te.createComment(""),mt=t=>t===null||typeof t!="object"&&typeof t!="function",Or=Array.isArray,An=t=>Or(t)||typeof t?.[Symbol.iterator]=="function",br=`[ \f\r]`,ht=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,vn=/-->/g,Sn=/>/g,Ne=RegExp(`>|${br}(?:([^\\s"'>=/]+)(${br}*=${br}*(?:[^ \f\r"'\`<>=]|("|')|))|$)`,"g"),On=/'/g,En=/"/g,wn=/^(?:script|style|textarea|title)$/i,Er=t=>(e,...o)=>({_$litType$:t,strings:e,values:o}),Cr=Er(1),gc=Er(2),bc=Er(3),j=Symbol.for("lit-noChange"),W=Symbol.for("lit-nothing"),Cn=new WeakMap,_e=Te.createTreeWalker(Te,129);function Rn(t,e){if(!Or(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return xn!==void 0?xn.createHTML(e):e}var Nn=(t,e)=>{let o=t.length-1,n=[],a,i=e===2?"<svg>":e===3?"<math>":"",c=ht;for(let l=0;l<o;l++){let d=t[l],p,h,f=-1,m=0;for(;m<d.length&&(c.lastIndex=m,h=c.exec(d),h!==null);)m=c.lastIndex,c===ht?h[1]==="!--"?c=vn:h[1]!==void 0?c=Sn:h[2]!==void 0?(wn.test(h[2])&&(a=RegExp("</"+h[2],"g")),c=Ne):h[3]!==void 0&&(c=Ne):c===Ne?h[0]===">"?(c=a??ht,f=-1):h[1]===void 0?f=-2:(f=c.lastIndex-h[2].length,p=h[1],c=h[3]===void 0?Ne:h[3]==='"'?En:On):c===En||c===On?c=Ne:c===vn||c===Sn?c=ht:(c=Ne,a=void 0);let b=c===Ne&&t[l+1].startsWith("/>")?" ":"";i+=c===ht?d+mc:f>=0?(n.push(p),d.slice(0,f)+vr+d.slice(f)+ce+b):d+ce+(f===-2?l:b)}return[Rn(t,i+(t[o]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),n]},gt=class t{constructor({strings:e,_$litType$:o},n){let a;this.parts=[];let i=0,c=0,l=e.length-1,d=this.parts,[p,h]=Nn(e,o);if(this.el=t.createElement(p,n),_e.currentNode=this.el.content,o===2||o===3){let f=this.el.content.firstChild;f.replaceWith(...f.childNodes)}for(;(a=_e.nextNode())!==null&&d.length<l;){if(a.nodeType===1){if(a.hasAttributes())for(let f of a.getAttributeNames())if(f.endsWith(vr)){let m=h[c++],b=a.getAttribute(f).split(ce),g=/([.?@])?(.*)/.exec(m);d.push({type:1,index:i,name:g[2],strings:b,ctor:g[1]==="."?Gt:g[1]==="?"?jt:g[1]==="@"?Kt:Le}),a.removeAttribute(f)}else f.startsWith(ce)&&(d.push({type:6,index:i}),a.removeAttribute(f));if(wn.test(a.tagName)){let f=a.textContent.split(ce),m=f.length-1;if(m>0){a.textContent=$t?$t.emptyScript:"";for(let b=0;b<m;b++)a.append(f[b],yt()),_e.nextNode(),d.push({type:2,index:++i});a.append(f[m],yt())}}}else if(a.nodeType===8)if(a.data===Sr)d.push({type:2,index:i});else{let f=-1;for(;(f=a.data.indexOf(ce,f+1))!==-1;)d.push({type:7,index:i}),f+=ce.length-1}i++}}static createElement(e,o){let n=Te.createElement("template");return n.innerHTML=e,n}};function Pe(t,e,o=t,n){if(e===j)return e;let a=n!==void 0?o._$Co?.[n]:o._$Cl,i=mt(e)?void 0:e._$litDirective$;return a?.constructor!==i&&(a?._$AO?.(!1),i===void 0?a=void 0:(a=new i(t),a._$AT(t,o,n)),n!==void 0?(o._$Co??=[])[n]=a:o._$Cl=a),a!==void 0&&(e=Pe(t,a._$AS(t,e.values),a,n)),e}var zt=class{constructor(e,o){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=o}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:o},parts:n}=this._$AD,a=(e?.creationScope??Te).importNode(o,!0);_e.currentNode=a;let i=_e.nextNode(),c=0,l=0,d=n[0];for(;d!==void 0;){if(c===d.index){let p;d.type===2?p=new Ge(i,i.nextSibling,this,e):d.type===1?p=new d.ctor(i,d.name,d.strings,this,e):d.type===6&&(p=new Vt(i,this,e)),this._$AV.push(p),d=n[++l]}c!==d?.index&&(i=_e.nextNode(),c++)}return _e.currentNode=Te,a}p(e){let o=0;for(let n of this._$AV)n!==void 0&&(n.strings!==void 0?(n._$AI(e,n,o),o+=n.strings.length-2):n._$AI(e[o])),o++}},Ge=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,o,n,a){this.type=2,this._$AH=W,this._$AN=void 0,this._$AA=e,this._$AB=o,this._$AM=n,this.options=a,this._$Cv=a?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,o=this._$AM;return o!==void 0&&e?.nodeType===11&&(e=o.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,o=this){e=Pe(this,e,o),mt(e)?e===W||e==null||e===""?(this._$AH!==W&&this._$AR(),this._$AH=W):e!==this._$AH&&e!==j&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):An(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==W&&mt(this._$AH)?this._$AA.nextSibling.data=e:this.T(Te.createTextNode(e)),this._$AH=e}$(e){let{values:o,_$litType$:n}=e,a=typeof n=="number"?this._$AC(e):(n.el===void 0&&(n.el=gt.createElement(Rn(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===a)this._$AH.p(o);else{let i=new zt(a,this),c=i.u(this.options);i.p(o),this.T(c),this._$AH=i}}_$AC(e){let o=Cn.get(e.strings);return o===void 0&&Cn.set(e.strings,o=new gt(e)),o}k(e){Or(this._$AH)||(this._$AH=[],this._$AR());let o=this._$AH,n,a=0;for(let i of e)a===o.length?o.push(n=new t(this.O(yt()),this.O(yt()),this,this.options)):n=o[a],n._$AI(i),a++;a<o.length&&(this._$AR(n&&n._$AB.nextSibling,a),o.length=a)}_$AR(e=this._$AA.nextSibling,o){for(this._$AP?.(!1,!0,o);e&&e!==this._$AB;){let n=e.nextSibling;e.remove(),e=n}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},Le=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,o,n,a,i){this.type=1,this._$AH=W,this._$AN=void 0,this.element=e,this.name=o,this._$AM=a,this.options=i,n.length>2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=W}_$AI(e,o=this,n,a){let i=this.strings,c=!1;if(i===void 0)e=Pe(this,e,o,0),c=!mt(e)||e!==this._$AH&&e!==j,c&&(this._$AH=e);else{let l=e,d,p;for(e=i[0],d=0;d<i.length-1;d++)p=Pe(this,l[n+d],o,d),p===j&&(p=this._$AH[d]),c||=!mt(p)||p!==this._$AH[d],p===W?e=W:e!==W&&(e+=(p??"")+i[d+1]),this._$AH[d]=p}c&&!a&&this.j(e)}j(e){e===W?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},Gt=class extends Le{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===W?void 0:e}},jt=class extends Le{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==W)}},Kt=class extends Le{constructor(e,o,n,a,i){super(e,o,n,a,i),this.type=5}_$AI(e,o=this){if((e=Pe(this,e,o,0)??W)===j)return;let n=this._$AH,a=e===W&&n!==W||e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive,i=e!==W&&(n===W||a);a&&this.element.removeEventListener(this.name,this,n),i&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},Vt=class{constructor(e,o,n){this.element=e,this.type=6,this._$AN=void 0,this._$AM=o,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(e){Pe(this,e)}},Ar={M:vr,P:ce,A:Sr,C:1,L:Nn,R:zt,D:An,V:Pe,I:Ge,H:Le,N:jt,U:Kt,B:Gt,F:Vt},xc=xr.litHtmlPolyfillSupport;xc?.(gt,Ge),(xr.litHtmlVersions??=[]).push("3.3.0");var wr=(t,e,o)=>{let n=o?.renderBefore??e,a=n._$litPart$;if(a===void 0){let i=o?.renderBefore??null;n._$litPart$=a=new Ge(e.insertBefore(yt(),i),i,void 0,o??{})}return a._$AI(t),a};var Rr=globalThis,se=class extends re{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let e=super.createRenderRoot();return this.renderOptions.renderBefore??=e.firstChild,e}update(e){let o=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=wr(o,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return j}};se._$litElement$=!0,se.finalized=!0,Rr.litElementHydrateSupport?.({LitElement:se});var vc=Rr.litElementPolyfillSupport;vc?.({LitElement:se});var Sc={_$AK:(t,e,o)=>{t._$AK(e,o)},_$AL:t=>t._$AL};(Rr.litElementVersions??=[]).push("4.2.0");var sd=!1;var Tr={};U(Tr,{customElement:()=>Oc,eventOptions:()=>Cc,property:()=>$,query:()=>_r,queryAll:()=>wc,queryAssignedElements:()=>Nc,queryAssignedNodes:()=>_c,queryAsync:()=>Rc,standardProperty:()=>_n,state:()=>bt});var Oc=t=>(e,o)=>{o!==void 0?o.addInitializer(()=>{customElements.define(t,e)}):customElements.define(t,e)};var Ec={attribute:!0,type:String,converter:ze,reflect:!1,hasChanged:ft},_n=(t=Ec,e,o)=>{let{kind:n,metadata:a}=o,i=globalThis.litPropertyMetadata.get(a);if(i===void 0&&globalThis.litPropertyMetadata.set(a,i=new Map),n==="setter"&&((t=Object.create(t)).wrapped=!0),i.set(o.name,t),n==="accessor"){let{name:c}=o;return{set(l){let d=e.get.call(this);e.set.call(this,l),this.requestUpdate(c,d,t)},init(l){return l!==void 0&&this.C(c,void 0,t,l),l}}}if(n==="setter"){let{name:c}=o;return function(l){let d=this[c];e.call(this,l),this.requestUpdate(c,d,t)}}throw Error("Unsupported decorator location: "+n)};function $(t){return(e,o)=>typeof o=="object"?_n(t,e,o):((n,a,i)=>{let c=a.hasOwnProperty(i);return a.constructor.createProperty(i,n),c?Object.getOwnPropertyDescriptor(a,i):void 0})(t,e,o)}function bt(t){return $({...t,state:!0,attribute:!1})}function Cc(t){return(e,o)=>{let n=typeof e=="function"?e:e[o];Object.assign(n,t)}}var J=(t,e,o)=>(o.configurable=!0,o.enumerable=!0,Reflect.decorate&&typeof e!="object"&&Object.defineProperty(t,e,o),o);function _r(t,e){return(o,n,a)=>{let i=c=>c.renderRoot?.querySelector(t)??null;if(e){let{get:c,set:l}=typeof n=="object"?o:a??(()=>{let d=Symbol();return{get(){return this[d]},set(p){this[d]=p}}})();return J(o,n,{get(){let d=c.call(this);return d===void 0&&(d=i(this),(d!==null||this.hasUpdated)&&l.call(this,d)),d}})}return J(o,n,{get(){return i(this)}})}}var Ac;function wc(t){return(e,o)=>J(e,o,{get(){return(this.renderRoot??(Ac??=document.createDocumentFragment())).querySelectorAll(t)}})}function Rc(t){return(e,o)=>J(e,o,{async get(){return await this.updateComplete,this.renderRoot?.querySelector(t)??null}})}function Nc(t){return(e,o)=>{let{slot:n,selector:a}=t??{},i="slot"+(n?`[name=${n}]`:":not([name])");return J(e,o,{get(){let c=this.renderRoot?.querySelector(i),l=c?.assignedElements(t)??[];return a===void 0?l:l.filter(d=>d.matches(a))}})}}function _c(t){return(e,o)=>{let{slot:n}=t??{},a="slot"+(n?`[name=${n}]`:":not([name])");return J(e,o,{get(){return this.renderRoot?.querySelector(a)?.assignedNodes(t)??[]}})}}var Pr={};U(Pr,{repeat:()=>Lc});var ye={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},me=t=>(...e)=>({_$litDirective$:t,values:e}),oe=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,o,n){this._$Ct=e,this._$AM=o,this._$Ci=n}_$AS(e,o){return this.update(e,o)}update(e,o){return this.render(...o)}};var{I:Tc}=Ar;var Tn=()=>document.createComment(""),je=(t,e,o)=>{let n=t._$AA.parentNode,a=e===void 0?t._$AB:e._$AA;if(o===void 0){let i=n.insertBefore(Tn(),a),c=n.insertBefore(Tn(),a);o=new Tc(i,c,t,t.options)}else{let i=o._$AB.nextSibling,c=o._$AM,l=c!==t;if(l){let d;o._$AQ?.(t),o._$AM=t,o._$AP!==void 0&&(d=t._$AU)!==c._$AU&&o._$AP(d)}if(i!==a||l){let d=o._$AA;for(;d!==i;){let p=d.nextSibling;n.insertBefore(d,a),d=p}}}return o},ge=(t,e,o=t)=>(t._$AI(e,o),t),Pc={},Pn=(t,e=Pc)=>t._$AH=e,Ln=t=>t._$AH,Zt=t=>{t._$AP?.(!1,!0);let e=t._$AA,o=t._$AB.nextSibling;for(;e!==o;){let n=e.nextSibling;e.remove(),e=n}};var In=(t,e,o)=>{let n=new Map;for(let a=e;a<=o;a++)n.set(t[a],a);return n},Lc=me(class extends oe{constructor(t){if(super(t),t.type!==ye.CHILD)throw Error("repeat() can only be used in text expressions")}dt(t,e,o){let n;o===void 0?o=e:e!==void 0&&(n=e);let a=[],i=[],c=0;for(let l of t)a[c]=n?n(l,c):c,i[c]=o(l,c),c++;return{values:i,keys:a}}render(t,e,o){return this.dt(t,e,o).values}update(t,[e,o,n]){let a=Ln(t),{values:i,keys:c}=this.dt(e,o,n);if(!Array.isArray(a))return this.ut=c,i;let l=this.ut??=[],d=[],p,h,f=0,m=a.length-1,b=0,g=i.length-1;for(;f<=m&&b<=g;)if(a[f]===null)f++;else if(a[m]===null)m--;else if(l[f]===c[b])d[b]=ge(a[f],i[b]),f++,b++;else if(l[m]===c[g])d[g]=ge(a[m],i[g]),m--,g--;else if(l[f]===c[g])d[g]=ge(a[f],i[g]),je(t,d[g+1],a[f]),f++,g--;else if(l[m]===c[b])d[b]=ge(a[m],i[b]),je(t,a[f],a[m]),m--,b++;else if(p===void 0&&(p=In(c,b,g),h=In(l,f,m)),p.has(l[f]))if(p.has(l[m])){let S=h.get(c[b]),A=S!==void 0?a[S]:null;if(A===null){let C=je(t,a[f]);ge(C,i[b]),d[b]=C}else d[b]=ge(A,i[b]),je(t,a[f],A),a[S]=null;b++}else Zt(a[m]),m--;else Zt(a[f]),f++;for(;b<=g;){let S=je(t,d[g+1]);ge(S,i[b]),d[b++]=S}for(;f<=m;){let S=a[f++];S!==null&&Zt(S)}return this.ut=c,Pn(t,d),j}});var Lr={};U(Lr,{classMap:()=>Ic});var Ic=me(class extends oe{constructor(t){if(super(t),t.type!==ye.ATTRIBUTE||t.name!=="class"||t.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter(e=>t[e]).join(" ")+" "}update(t,[e]){if(this.st===void 0){this.st=new Set,t.strings!==void 0&&(this.nt=new Set(t.strings.join(" ").split(/\s/).filter(n=>n!=="")));for(let n in e)e[n]&&!this.nt?.has(n)&&this.st.add(n);return this.render(e)}let o=t.element.classList;for(let n of this.st)n in e||(o.remove(n),this.st.delete(n));for(let n in e){let a=!!e[n];a===this.st.has(n)||this.nt?.has(n)||(a?(o.add(n),this.st.add(n)):(o.remove(n),this.st.delete(n)))}return j}});var Ir={};U(Ir,{styleMap:()=>Dc});var kn="important",kc=" !"+kn,Dc=me(class extends oe{constructor(t){if(super(t),t.type!==ye.ATTRIBUTE||t.name!=="style"||t.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(t){return Object.keys(t).reduce((e,o)=>{let n=t[o];return n==null?e:e+`${o=o.includes("-")?o:o.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${n};`},"")}update(t,[e]){let{style:o}=t.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(e)),this.render(e);for(let n of this.ft)e[n]==null&&(this.ft.delete(n),n.includes("-")?o.removeProperty(n):o[n]=null);for(let n in e){let a=e[n];if(a!=null){this.ft.add(n);let i=typeof a=="string"&&a.endsWith(kc);n.includes("-")||i?o.setProperty(n,i?a.slice(0,-11):a,i?kn:""):o[n]=a}}return j}});var Dr={};U(Dr,{UnsafeHTMLDirective:()=>Ke,unsafeHTML:()=>kr});var Ke=class extends oe{constructor(e){if(super(e),this.it=W,e.type!==ye.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===W||e==null)return this._t=void 0,this.it=e;if(e===j)return e;if(typeof e!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.it)return this._t;this.it=e;let o=[e];return o.raw=o,this._t={_$litType$:this.constructor.resultType,strings:o,values:[]}}};Ke.directiveName="unsafeHTML",Ke.resultType=1;var kr=me(Ke);var zr={};U(zr,{CacheRegistry:()=>$r,ClearCacheEvent:()=>vt});var Mr={};U(Mr,{CancelablePromise:()=>Ve,CanceledPromiseError:()=>xt,cancelable:()=>Ur});var xt=class extends Error{constructor(e,o,n){super(e),this.canceledPromiseResult=o,this.canceledPromiseError=n}},Ve=class extends Promise{constructor(e){super((o,n)=>e(a=>{this.isCanceled?n(new xt("Promise has been canceled",a)):o(a)},a=>{this.isCanceled?n(new xt("Promise has been canceled",void 0,a)):n(a)})),this.isCanceled=!1}cancel(){this.isCanceled=!0}},Ur=t=>new Ve((e,o)=>t.then(e).catch(o));var Fr={};U(Fr,{FtNotificationEvent:()=>Br,PostResizeEvent:()=>Hr,PreResizeEvent:()=>Wr,WithEventBus:()=>Ie,withEventBus:()=>Dn});var Br=class extends CustomEvent{constructor(e){super("ft-notification",{bubbles:!0,composed:!0,detail:e})}},Wr=class extends Event{constructor(){super("ft-pre-resize",{composed:!0,bubbles:!0})}},Hr=class extends Event{constructor(){super("ft-post-resize",{composed:!0,bubbles:!0})}};function Dn(t,e){return class extends t{constructor(){super(...arguments),this.eventBus=e??document.createElement("span")}addEventListener(o,n,a){this.eventBus.addEventListener(o,n,a)}dispatchEvent(o){return this.eventBus.dispatchEvent(o)}removeEventListener(o,n,a){this.eventBus.removeEventListener(o,n,a)}}}var Ie=class extends Dn(Object){};var vt=class extends CustomEvent{constructor(e){super("clear-cache",{detail:{clearedKeys:e}})}},$r=class extends Ie{constructor(){super(...arguments),this.loaders={},this.content={},this.clearTimeouts={},this.finalContent=new Set}register(e,o){this.loaders[e]=o,this.finalContent.delete(e)}registerFinal(e,o){this.loaders[e]=o,this.finalContent.add(e)}clearAll(e=!0){let o=[];for(let n in this.content)this.clear(n,!1)!=null&&o.push(n);e&&o.length>0&&this.dispatchEvent(new vt(o))}clear(e,o=!0){if(!this.finalContent.has(e))return this.forceClear(e),o&&this.dispatchEvent(new vt([e])),e}forceClear(e){this.clearClearTimeout(e),this.content[e]instanceof Ve&&this.content[e].cancel(),delete this.content[e]}clearClearTimeout(e){this.clearTimeouts[e]!=null&&(window.clearTimeout(this.clearTimeouts[e]),delete this.clearTimeouts[e])}set(e,o){this.forceClear(e),this.register(e,async()=>o),this.content[e]=o}setFinal(e,o){this.forceClear(e),this.registerFinal(e,async()=>o),this.content[e]=o}async get(e,o,n){if(this.content[e]===void 0){if(o=o??this.loaders[e],o==null)throw new Error("Unknown cache key "+e);let a=Ur(o());return this.content[e]=a,a.then(i=>(this.content[e]=i,n!=null&&(this.clearClearTimeout(e),this.clearTimeouts[e]=window.setTimeout(()=>this.clear(e),n)),i))}if(this.content[e]instanceof Error)throw this.content[e];return this.content[e]}isResolvedValue(e){return e!=null&&!(e instanceof Promise)&&!(e instanceof Error)}getNow(e){if(this.isResolvedValue(this.content[e]))return this.content[e]}has(e){return this.content[e]!=null}resolvedKeys(){return Object.keys(this.content).filter(e=>this.isResolvedValue(this.content[e]))}resolvedValues(){return Object.values(this.content).filter(e=>this.isResolvedValue(e))}keys(){return Object.keys(this.content)}values(){return Object.values(this.content)}};var jr={};U(jr,{ClusteringHelper:()=>Gr});var Gr=class t{constructor(e,o,n,a){this.allResults=e,this.selectedResult=o,this.clusteringMetadata=n,this.metadataDescriptors=a}static extractResultMetadata(e){var o,n,a,i,c;let l=((i=(n=(o=e.result)===null||o===void 0?void 0:o.map)!==null&&n!==void 0?n:(a=e.result)===null||a===void 0?void 0:a.document)!==null&&i!==void 0?i:(c=e.result)===null||c===void 0?void 0:c.topic).metadata;return e.key==null?t.flattenMetadata(l,e.hierarchicalValueTruncatingLevel,e.dateFormatter):t.flattenMetadata(l.find(d=>d.key===e.key),e.hierarchicalValueTruncatingLevel,e.dateFormatter)}static flattenMetadata(e,o,n){if(Array.isArray(e))return e.map(i=>t.flattenMetadata(i,o,n)).filter(i=>i!=null);let a=e?.hierarchicalValues!=null&&e.hierarchicalValues.length>0;if(!(e==null||e.values.length==0&&!a))if(a){let i=[],c=[];return e.hierarchicalValues.forEach(l=>{i.push(l.join(" > ")),o&&o>1&&l.length>=o?c.push(`... > ${l[l.length-1]}`):c.push(l.join(" > "))}),{key:e.key,label:e.label,value:i.join(", "),displayValue:c.join(", "),displayTooltipValue:i.join(", ")}}else{let i=e.values.join(", "),c=e.values.map(l=>n?n(l):l).join(", ");return{key:e.key,label:e.label,value:i,displayValue:c,displayTooltipValue:c}}}computeClustersItemsForMetadata(e,o,n="No value",a,i){var c,l;let d=t.extractResultMetadata({result:this.selectedResult,key:e,dateFormatter:i}),p=(c=d?.label)!==null&&c!==void 0?c:(l=this.getMetadataDescriptor(e))===null||l===void 0?void 0:l.label;return this.allResults.map(f=>t.extractResultMetadata({result:f,key:e,hierarchicalValueTruncatingLevel:a,dateFormatter:i})).map(f=>f??{key:e,label:p,value:void 0,displayValue:n}).filter(f=>f.value!=d?.value).filter((f,m,b)=>b.findIndex(g=>g.value===f.value)===m).map(f=>({result:this.findBestResultForMetadataValue(e,f.value),metadata:f})).sort((f,m)=>this.compareMetadata(f.metadata.value,m.metadata.value,e,o))}compareMetadata(e,o,n,a){if(e==null)return-1;if(o==null)return 1;let i=this.getMetadataDescriptor(n),c=i?.sortRule||"NONE",l=i?.reverseSort||!1;if(c=="ALPHABET"||c=="VERSION"){let d=e.localeCompare(o,a,{numeric:!0});return l?d*-1:d}return 0}getMetadataDescriptor(e){return this.metadataDescriptors.find(o=>e==o.key)}findBestResultForMetadataValue(e,o){let n=this.allResults.filter(d=>{var p;return((p=t.extractResultMetadata({result:d,key:e}))===null||p===void 0?void 0:p.value)==o}),i=[...t.extractResultMetadata({result:this.selectedResult}).filter(d=>this.clusteringMetadata.has(d.key)).filter(d=>d.key!==e)],c,l=-1;for(let d of n){let p=this.countMatchingMetadata(d,i);if(p>l&&(l=p,c=d,p===i.length))break}return c}countMatchingMetadata(e,o){return t.extractResultMetadata({result:e}).filter(n=>o.some(a=>a.key===n.key&&a.value===n.value)).length}};var Kr={};U(Kr,{Debouncer:()=>St});var St=class{constructor(e=0){this.timeout=e,this.callbacks=[]}run(e,o){return this.callbacks=[e],this.debounce(o)}queue(e,o){return this.callbacks.push(e),this.debounce(o)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(e){return this.promise==null&&(this.promise=new Promise((o,n)=>{this.resolvePromise=o,this.rejectPromise=n})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),e??this.timeout),this.promise}async runCallbacks(){var e,o;let n=[...this.callbacks];this.callbacks=[];let a=(e=this.rejectPromise)!==null&&e!==void 0?e:()=>null,i=(o=this.resolvePromise)!==null&&o!==void 0?o:()=>null;this.clearPromise();for(let c of n)try{await c()}catch(l){a(l);return}i(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var Xr={};U(Xr,{customElement:()=>qr,isNumber:()=>Fn,jsonProperty:()=>Yr,optionalNumberProperty:()=>$c});var Zr={};U(Zr,{dateReviver:()=>Mc,deepCopy:()=>Fc,deepEqual:()=>Ot,delay:()=>Un,eventPathContainsMatchingElement:()=>Wc,flatDeep:()=>Bn,getComposedPathTo:()=>Vr,hasChanged:()=>ke,last:()=>Hc,minmax:()=>Et,parseDate:()=>Wn,unslotText:()=>Hn,waitFor:()=>Mn,waitUntil:()=>Uc});var Un=t=>new Promise(e=>setTimeout(e,t));async function Uc(t,e=10,o=2e4){await Mn(async()=>await t()||void 0,e,o)}async function Mn(t,e=10,o=2e4){let n=await t(),a,i;for(a=i=performance.now();n==null&&(!o||i-a<o);)await Un(e),n=await t(),i=performance.now();if(n==null)throw new Error("Timeout exceeded");return n}function Bn(t,e){return t.flatMap(o=>[o,...Bn(e(o),e)])}function Mc(...t){return function(e,o){return t.includes(e)?Wn(o):o}}function Wn(t){return t.match(/^\d{4}-\d{2}-\d{2}$/)&&(t=t.replace(/-/g,"/")),t=t.replace(" ","T").replace(/^(.+)(\+\d{2})(\d{2})$/,(e,o,n,a)=>o+n+":"+a),new Date(t)}function Bc(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(t.constructor!==e.constructor)return!1;var o,n,a;if(Array.isArray(t)){if(o=t.length,o!=e.length)return!1;for(n=o;n--!==0;)if(!Ot(t[n],e[n]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(n of t.entries())if(!e.has(n[0]))return!1;for(n of t.entries())if(!Ot(n[1],e.get(n[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(n of t.entries())if(!e.has(n[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();let i=c=>Object.keys(c).filter(l=>c[l]!=null);if(a=i(t),o=a.length,o!==i(e).length)return!1;for(n=o;n--!==0;)if(!Object.prototype.hasOwnProperty.call(e,a[n]))return!1;for(n=o;n--!==0;){let c=a[n];if(!Ot(t[c],e[c]))return!1}return!0}return t!==t&&e!==e||t==null&&e==null}function Ot(t,e){try{return Bc(t,e)}catch{return!1}}function ke(t,e){return!Ot(t,e)}function Wc(t,e,o=window.document.body){if(e.length>0){let n=t.composedPath();for(let a of n){if(a===o)return!1;if(a.matches&&e.some(i=>a.matches(i)))return!0}}return!1}function Et(t,e,o){return Math.min(Math.max(t,e),o)}function Hc(t){return t[t.length-1]}function Hn(t){return