@fluid-topics/ft-search-load-more-button 1.1.100 → 1.1.101

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -822,7 +822,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
822
822
  `,D.noTextSelect];var Sr=function(e,t,o,n){var i=arguments.length,a=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,o,n);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(a=(i<3?s(a):i>3?s(t,o,a):s(t,o))||a);return i>3&&a&&Object.defineProperty(t,o,a),a},Ue=class extends(0,Or.toFtdsBase)(K){constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.tertiary=!1,this.round=!1,this.family=sr.brand,this.iconVariant=Ne.fluid_topics}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--secondary":this.secondary,"ft-button--tertiary":this.tertiary||!this.primary&&!this.secondary,"ft-button--icon-only":!this.hasTextContent(),"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0,"ft-button--no-icon":!this.icon,"ft-button--round":this.round,...this.getDesignSystemBaseClasses()}}get typographyVariant(){switch(this.size){case dt.large:return ze.body2medium;case dt.medium:return ze.caption1medium;case dt.small:return ze.caption2medium}}};Ue.styles=[Or.safariEllipsisFix,wa];Sr([(0,Yt.property)({type:Boolean})],Ue.prototype,"primary",void 0);Sr([(0,Yt.property)({type:Boolean})],Ue.prototype,"secondary",void 0);Sr([(0,Yt.property)({type:Boolean})],Ue.prototype,"tertiary",void 0);Sr([(0,Yt.property)({type:Boolean})],Ue.prototype,"round",void 0);(0,Oo.customElement)("ft-button")(ve);(0,Oo.customElement)("ftds-button")(Ue);var $s=S(_()),zs=S(ee());var nn=S(_());var wc=S(_());var Om=S(Na(),1);var Ra;(function(e){e.black="black",e.green="green",e.blue="blue",e.purple="purple",e.red="red",e.orange="orange",e.yellow="yellow"})(Ra||(Ra={}));var Pa;(function(e){e.OFFICIAL="OFFICIAL",e.PERSONAL="PERSONAL",e.SHARED="SHARED"})(Pa||(Pa={}));var La;(function(e){e.THIRD_PARTY="THIRD_PARTY",e.OFF_THE_GRID="OFF_THE_GRID",e.CONTENT_PACKAGER="CONTENT_PACKAGER",e.PAGES="PAGES",e.DESIGNED_READER="DESIGNED_READER"})(La||(La={}));var Ta;(function(e){e.HOMEPAGE="HOMEPAGE",e.CUSTOM="CUSTOM",e.HEADER="HEADER",e.READER="READER",e.TOPIC_TEMPLATE="TOPIC_TEMPLATE",e.SEARCH="SEARCH",e.SEARCH_RESULT="SEARCH_RESULT"})(Ta||(Ta={}));var Ia;(function(e){e.CLASSIC="CLASSIC",e.CUSTOM="CUSTOM",e.DESIGNER="DESIGNER"})(Ia||(Ia={}));var _a;(function(e){e.AND="AND",e.OR="OR",e.MONOVALUED="MONOVALUED"})(_a||(_a={}));var ka;(function(e){e.NONE="NONE",e.ALPHABET="ALPHABET",e.VERSION="VERSION"})(ka||(ka={}));var Da;(function(e){e.STARS="STARS",e.LIKE="LIKE",e.DICHOTOMOUS="DICHOTOMOUS",e.NO_RATING="NO_RATING"})(Da||(Da={}));var Ua;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR",e.CUSTOM="CUSTOM"})(Ua||(Ua={}));var Ba;(function(e){e.ASC="ASC",e.DESC="DESC"})(Ba||(Ba={}));var Ma;(function(e){e.ALPHA="ALPHA",e.NATURAL="NATURAL"})(Ma||(Ma={}));var Co;(function(e){e.EVERYWHERE="EVERYWHERE",e.TITLE_ONLY="TITLE_ONLY",e.NONE="NONE"})(Co||(Co={}));var Wa;(function(e){e.ARTICLE="ARTICLE",e.BOOK="BOOK",e.SHARED_BOOK="SHARED_BOOK"})(Wa||(Wa={}));var $a;(function(e){e.FLUIDTOPICS="FLUIDTOPICS",e.EXTERNAL="EXTERNAL"})($a||($a={}));var za;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC",e.PERSONAL_BOOK="PERSONAL_BOOK",e.SHARED_BOOK="SHARED_BOOK"})(za||(za={}));var Ha;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC"})(Ha||(Ha={}));var Eo;(function(e){e.DEFAULT="DEFAULT",e.DOCUMENTS="DOCUMENTS",e.ALL_TOPICS="ALL_TOPICS"})(Eo||(Eo={}));var X;(function(e){e.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",e.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",e.HTML_EXPORT_USER="HTML_EXPORT_USER",e.PDF_EXPORT_USER="PDF_EXPORT_USER",e.SAVED_SEARCH_USER="SAVED_SEARCH_USER",e.COLLECTION_USER="COLLECTION_USER",e.OFFLINE_USER="OFFLINE_USER",e.ANALYTICS_USER="ANALYTICS_USER",e.BETA_USER="BETA_USER",e.DEBUG_USER="DEBUG_USER",e.PRINT_USER="PRINT_USER",e.RATING_USER="RATING_USER",e.FEEDBACK_USER="FEEDBACK_USER",e.GENERATIVE_AI_USER="GENERATIVE_AI_USER",e.CONTENT_PUBLISHER="CONTENT_PUBLISHER",e.KHUB_ADMIN="KHUB_ADMIN",e.USERS_ADMIN="USERS_ADMIN",e.PORTAL_ADMIN="PORTAL_ADMIN",e.ADMIN="ADMIN",e.DEVELOPER="DEVELOPER"})(X||(X={}));var Fa;(function(e){e.VALID="VALID",e.INVALID="INVALID"})(Fa||(Fa={}));var bm={[X.PERSONAL_BOOK_SHARE_USER]:[X.PERSONAL_BOOK_USER],[X.HTML_EXPORT_USER]:[X.PERSONAL_BOOK_USER],[X.PDF_EXPORT_USER]:[X.PERSONAL_BOOK_USER],[X.KHUB_ADMIN]:[X.CONTENT_PUBLISHER],[X.ADMIN]:[X.KHUB_ADMIN,X.USERS_ADMIN,X.PORTAL_ADMIN],[X.DEVELOPER]:[X.BETA_USER,X.DEBUG_USER]};var Ws=S(_());var Za=S(z()),ye=S(ee()),Se=S(_());var Ga=S(z());var ja=Ga.css`
823
823
  `;var Cr=S(_()),Ac="ft-app-info",wo=class extends CustomEvent{constructor(t){super("authentication-change",{detail:t})}},Nc={session:(e,t)=>{(0,Cr.deepEqual)(e.session,t.payload)||(e.session=t.payload,setTimeout(()=>k.eventBus.dispatchEvent(new wo(t.payload)),0))}},k=Cr.FtReduxStore.get({name:Ac,reducers:Nc,initialState:{baseUrl:void 0,apiIntegrationIdentifier:void 0,uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],metadataConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1}});var Ge=S(_());var Ao=S(_());var at=class e{static get(t){let{baseUrl:o,apiIntegrationIdentifier:n}=k.getState(),i=t??n;if(o&&i&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(o,i,!0)}static await(t){return new Promise(o=>{let n=e.get(t);if(n)o(n);else{let i=k.subscribe(()=>{n=e.get(t),n&&(i(),o(n))})}})}};var Be=class{constructor(t=!0,o){var n;this.overrideApi=o;let i=this.constructor;i.commonCache=(n=i.commonCache)!==null&&n!==void 0?n:new Ao.CacheRegistry,this.cache=t?i.commonCache:new Ao.CacheRegistry}get api(){var t;return(t=this.overrideApi)!==null&&t!==void 0?t:at.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):at.await()}clearCache(){this.cache.clearAll()}};var Ka,Rc=Symbol("clearAfterUnitTest"),Er=class extends Be{constructor(t){super(),this.messageContextProvider=t,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[Ka]=()=>{this.defaultMessages={},this.cache=new Ge.CacheRegistry,this.listeners={}},this.currentUiLocale=k.getState().uiLocale,k.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:t}=k.getState();this.currentUiLocale!==t&&(this.currentUiLocale=t,this.cache.clearAll(),this.notifyAll())}addContext(t){let o=t.name.toLowerCase();this.cache.setFinal(o,t),this.notify(o)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(t,o){var n;if(t=t.toLowerCase(),Object.keys(o).length>0){let i={...(n=this.defaultMessages[t])!==null&&n!==void 0?n:{},...o};(0,Ge.deepEqual)(this.defaultMessages[t],i)||(this.defaultMessages[t]=i,await this.notify(t))}await this.fetchContext(t)}resolveMessage(t,o,...n){var i,a,s;t=t.toLowerCase(),this.fetchContext(t);let l=(a=(i=this.cache.getNow(t))===null||i===void 0?void 0:i.messages)!==null&&a!==void 0?a:{};return new Ge.ParametrizedLabelResolver((s=this.defaultMessages[t])!==null&&s!==void 0?s:{},l).resolve(o,...n)}async fetchContext(t){if(!this.cache.has(t))try{await this.cache.get(t,()=>this.messageContextProvider(this.currentUiLocale,t)),await this.notify(t)}catch(o){console.error(o)}}subscribe(t,o){var n;return t=t.toLowerCase(),this.listeners[t]=(n=this.listeners[t])!==null&&n!==void 0?n:new Set,this.listeners[t].add(o),()=>{var i;return(i=this.listeners[t])===null||i===void 0?void 0:i.delete(o)}}async notifyAll(){await Promise.all(Object.keys(this.listeners).map(t=>this.notify(t)))}async notify(t){this.listeners[t]!=null&&await Promise.all([...this.listeners[t].values()].map(o=>(0,Ge.delay)(0).then(()=>o()).catch(()=>null)))}};Ka=Rc;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends Er{constructor(){super(async(e,t)=>(await this.awaitApi).getFluidTopicsMessageContext(e,t))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends Er{constructor(){super(async(e,t)=>(await this.awaitApi).getCustomMessageContext(e,t))}});var Rt=window.FluidTopicsI18nService,Va=window.FluidTopicsCustomI18nService;var ie=function(e,t,o,n){var i=arguments.length,a=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,o,n);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(a=(i<3?s(a):i>3?s(t,o,a):s(t,o))||a);return i>3&&a&&Object.defineProperty(t,o,a),a},G=class extends Se.FtLitElement{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.uiLocale="en-US",this.editorMode=!1,this.noCustom=!1,this.openExternalDocumentInNewTab=!1,this.noCustomComponent=!1,this.withManualResources=!1,this.navigatorOnline=!1,this.forcedOffline=!1,this.apiProvider=()=>at.get(),this.messageContexts=[],this.cache=new Se.CacheRegistry,this.cleanSessionDebouncer=new Se.Debouncer}render(){return Za.html`
824
824
  <slot></slot>
825
- `}update(t){super.update(t),t.has("baseUrl")&&(k.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),t.has("apiIntegrationIdentifier")&&k.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&k.actions.uiLocale(this.uiLocale),t.has("metadataConfiguration")&&k.actions.metadataConfiguration(this.metadataConfiguration),t.has("noCustom")&&k.actions.noCustom(this.noCustom),t.has("editorMode")&&k.actions.editorMode(this.editorMode),t.has("noCustomComponent")&&k.actions.noCustomComponent(this.noCustomComponent),t.has("session")&&k.actions.session(this.session),t.has("availableUiLocales")&&k.actions.availableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),t.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(o=>Rt.addContext(o)),t.has("openExternalDocumentInNewTab")&&k.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),t.has("navigatorOnline")&&k.actions.navigatorOnline(this.navigatorOnline),t.has("forcedOffline")&&k.actions.forcedOffline(this.forcedOffline),setTimeout(()=>this.updateIfNeeded())}async updateIfNeeded(){!this.withManualResources&&this.apiProvider()&&(this.session==null&&this.updateSession(),this.availableUiLocales==null&&this.updateUiLocales(),this.metadataConfiguration==null&&this.updateMetadataConfiguration())}async updateSession(){this.session=await this.cache.get("session",async()=>{let t=await this.apiProvider().getCurrentSession();return t.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.session=void 0},t.idleTimeoutInMillis),t})}async updateUiLocales(){this.availableUiLocales=await this.cache.get("availableUiLocales",()=>this.apiProvider().getAvailableUiLocales())}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration())}};G.elementDefinitions={};G.styles=ja;ie([(0,ye.property)()],G.prototype,"baseUrl",void 0);ie([(0,ye.property)()],G.prototype,"apiIntegrationIdentifier",void 0);ie([(0,ye.property)()],G.prototype,"uiLocale",void 0);ie([(0,Se.jsonProperty)(null)],G.prototype,"availableUiLocales",void 0);ie([(0,Se.jsonProperty)(null)],G.prototype,"metadataConfiguration",void 0);ie([(0,ye.property)({type:Boolean})],G.prototype,"editorMode",void 0);ie([(0,ye.property)({type:Boolean})],G.prototype,"noCustom",void 0);ie([(0,ye.property)({type:Boolean})],G.prototype,"openExternalDocumentInNewTab",void 0);ie([(0,ye.property)({converter:{fromAttribute(e){return e==="false"?!1:e==="true"||(e??!1)}}})],G.prototype,"noCustomComponent",void 0);ie([(0,ye.property)({type:Boolean})],G.prototype,"withManualResources",void 0);ie([(0,ye.property)({type:Boolean})],G.prototype,"navigatorOnline",void 0);ie([(0,ye.property)({type:Boolean})],G.prototype,"forcedOffline",void 0);ie([(0,ye.property)({type:Object})],G.prototype,"apiProvider",void 0);ie([(0,Se.jsonProperty)([])],G.prototype,"messageContexts",void 0);ie([(0,Se.jsonProperty)(void 0)],G.prototype,"session",void 0);var hl=S(ee());function Pc(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var o,n,i;if(Array.isArray(e)){if(o=e.length,o!=t.length)return!1;for(n=o;n--!==0;)if(!wr(e[n],t[n]))return!1;return!0}if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(n of e.entries())if(!t.has(n[0]))return!1;for(n of e.entries())if(!wr(n[1],t.get(n[0])))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(n of e.entries())if(!t.has(n[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();if(i=Object.keys(e),o=i.length,o!==Object.keys(t).length)return!1;for(n=o;n--!==0;)if(!Object.prototype.hasOwnProperty.call(t,i[n]))return!1;for(n=o;n--!==0;){var a=i[n];if(!wr(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function wr(e,t){try{return Pc(e,t)}catch{return!1}}function No(e,t){return!wr(e,t)}var Lc=S(ee(),1);var Ar=class{constructor(){this.queue=[]}add(t,o=!1){o&&(this.queue=this.queue.filter(n=>n.type!==t.type)),this.queue.push(t)}consume(t){let o=this.queue.find(n=>n.type===t);return o&&(this.queue=this.queue.filter(n=>n!==o)),o}};var Xt=S(ee(),1);var qa=S(ee(),1);function Ya(e,t){let o=()=>JSON.parse(JSON.stringify(e));return(0,qa.property)({type:Object,converter:{fromAttribute:n=>{if(n==null)return o();try{return JSON.parse(n)}catch{return o()}},toAttribute:n=>JSON.stringify(n)},hasChanged:No,...t??{}})}var Nr=class{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,o){return this.callbacks=[t],this.debounce(o)}queue(t,o){return this.callbacks.push(t),this.debounce(o)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return this.promise==null&&(this.promise=new Promise((o,n)=>{this.resolvePromise=o,this.rejectPromise=n})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),t??this.timeout),this.promise}async runCallbacks(){var t,o;let n=[...this.callbacks];this.callbacks=[];let i=(t=this.rejectPromise)!==null&&t!==void 0?t:()=>null,a=(o=this.resolvePromise)!==null&&o!==void 0?o:()=>null;this.clearPromise();for(let s of n)try{await s()}catch(l){i(l);return}a(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var Ja=S(z(),1);var Rr=window,Tc=Rr.ShadowRoot&&(Rr.ShadyCSS===void 0||Rr.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Jm=Symbol();var Xa=(e,t)=>{Tc?e.adoptedStyleSheets=t.map(o=>o instanceof CSSStyleSheet?o:o.styleSheet):t.forEach(o=>{let n=document.createElement("style"),i=Rr.litNonce;i!==void 0&&n.setAttribute("nonce",i),n.textContent=o.cssText,e.appendChild(n)})};var Pr=class extends Ja.LitElement{createRenderRoot(){let t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach(([i,a])=>t.registry.define(i,a)));let o={...t.shadowRootOptions,customElements:t.registry},n=this.renderOptions.creationScope=this.attachShadow(o);return Xa(n,t.elementStyles),n}};var Lr=function(e,t,o,n){var i=arguments.length,a=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,o,n);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(a=(i<3?s(a):i>3?s(t,o,a):s(t,o))||a);return i>3&&a&&Object.defineProperty(t,o,a),a},rs,Qa=Symbol("constructorPrototype"),es=Symbol("constructorName"),os=Symbol("exportpartsDebouncer"),ts=Symbol("dynamicDependenciesLoaded"),je=class extends Pr{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[rs]=new Nr(5),this[es]=this.constructor.name,this[Qa]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[es]&&Object.setPrototypeOf(this,this[Qa])}connectedCallback(){super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(o){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",o)}let t=this.constructor;t[ts]||(t[ts]=!0,this.importDynamicDependencies())}importDynamicDependencies(){}updated(t){super.updated(t),this.updateComplete.then(()=>{this.contentAvailableCallback(t),this.applyCustomStylesheet(t),this.scheduleExportpartsUpdate()})}contentAvailableCallback(t){}applyCustomStylesheet(t){var o,n,i;if(((n=(o=this.shadowRoot)===null||o===void 0?void 0:o.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&n!==void 0?n:[]).forEach(a=>a.remove()),this.useAdoptedStyleSheets){if(t.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((i=this.customStylesheet)!==null&&i!==void 0?i:"")}catch(a){console.error(a,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let a=document.createElement("style");a.classList.add("ft-lit-element--custom-stylesheet"),a.innerHTML=this.customStylesheet,this.shadowRoot.append(a)}}scheduleExportpartsUpdate(){var t,o,n;(!((t=this.exportpartsPrefix)===null||t===void 0)&&t.trim()||(n=(o=this.exportpartsPrefixes)===null||o===void 0?void 0:o.length)!==null&&n!==void 0&&n)&&this[os].run(()=>{var i,a;!((i=this.exportpartsPrefix)===null||i===void 0)&&i.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((a=this.exportpartsPrefixes)===null||a===void 0?void 0:a.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})}setExportpartsAttribute(t){var o,n,i,a,s,l;let u=y=>y!=null&&y.trim().length>0,p=t.filter(u).map(y=>y.trim());if(p.length===0){this.removeAttribute("exportparts");return}let f=new Set;for(let y of(n=(o=this.shadowRoot)===null||o===void 0?void 0:o.querySelectorAll("[part],[exportparts]"))!==null&&n!==void 0?n:[]){let b=(a=(i=y.getAttribute("part"))===null||i===void 0?void 0:i.split(" "))!==null&&a!==void 0?a:[],g=(l=(s=y.getAttribute("exportparts"))===null||s===void 0?void 0:s.split(",").map(v=>v.split(":")[1]))!==null&&l!==void 0?l:[];new Array(...b,...g).filter(u).map(v=>v.trim()).forEach(v=>f.add(v))}if(f.size===0){this.removeAttribute("exportparts");return}let m=[...f.values()].flatMap(y=>p.map(b=>`${y}:${b}--${y}`));this.setAttribute("exportparts",[...this.part,...m].join(", "))}};rs=os;Lr([(0,Xt.property)()],je.prototype,"exportpartsPrefix",void 0);Lr([Ya([])],je.prototype,"exportpartsPrefixes",void 0);Lr([(0,Xt.property)()],je.prototype,"customStylesheet",void 0);Lr([(0,Xt.state)()],je.prototype,"useAdoptedStyleSheets",void 0);function Jt(e){var t;return(t=e?.isFtReduxStore)!==null&&t!==void 0?t:!1}var ns,is,as,Tr=Symbol("internalReduxEventsUnsubscribers"),Ke=Symbol("internalStoresUnsubscribers"),st=Symbol("internalStores"),Qt=class extends je{constructor(){super(...arguments),this[ns]=new Map,this[is]=new Map,this[as]=[]}get reduxConstructor(){return this.constructor}update(t){super.update(t),[...this.reduxConstructor.reduxReactiveProperties].some(o=>t.has(o))&&this.updateFromStores()}getUnnamedStore(){if(this[st].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[st].values()][0]}getStore(t){return t==null?this.getUnnamedStore():this[st].get(t)}addStore(t,o){var n;o=(n=o??(Jt(t)?t.name:void 0))!==null&&n!==void 0?n:"default-store",this.unsubscribeFromStore(o),this.setupStore(o,t)}removeStore(t){let o=typeof t=="string"?t:t.name;this.unsubscribeFromStore(o),this[st].delete(o)}setupStore(t,o){this[st].set(t,o),this.subscribeToStore(t,o),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[st].forEach((t,o)=>this.subscribeToStore(o,t)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((t,o)=>{let n=this.constructor.getPropertyOptions(o);if(!n?.attribute||!this.hasAttribute(typeof n?.attribute=="string"?n.attribute:o)){let i=this.getStore(t.store);i&&(t.store?this[Ke].has(t.store):this[Ke].size>0)&&(this[o]=t.selector(i.getState(),this))}})}subscribeToStore(t,o){var n;this[Ke].set(t,o.subscribe(()=>this.updateFromStores())),Jt(o)&&o.eventBus&&((n=this.reduxConstructor.reduxEventListeners)===null||n===void 0||n.forEach((i,a)=>{if(typeof this[a]=="function"&&(!i.store||o.name===i.store)){let s=l=>this[a](l);o.eventBus.addEventListener(i.eventName,s),this[Tr].push(()=>o.eventBus.removeEventListener(i.eventName,s))}})),this.onStoreAvailable(t)}unsubscribeFromStores(){this[Ke].forEach((t,o)=>this.unsubscribeFromStore(o)),this[Tr].forEach(t=>t()),this[Tr]=[]}unsubscribeFromStore(t){this[Ke].has(t)&&this[Ke].get(t)(),this[Ke].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}};ns=Ke,is=st,as=Tr;Qt.reduxProperties=new Map;Qt.reduxReactiveProperties=new Set;Qt.reduxEventListeners=new Map;function ge(e){for(var t=arguments.length,o=Array(t>1?t-1:0),n=1;n<t;n++)o[n-1]=arguments[n];if(0)var i,a;throw Error("[Immer] minified error nr: "+e+(o.length?" "+o.map(function(s){return"'"+s+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Me(e){return!!e&&!!e[$]}function Oe(e){var t;return!!e&&(function(o){if(!o||typeof o!="object")return!1;var n=Object.getPrototypeOf(o);if(n===null)return!0;var i=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return i===Object||typeof i=="function"&&Function.toString.call(i)===Wc}(e)||Array.isArray(e)||!!e[fs]||!!(!((t=e.constructor)===null||t===void 0)&&t[fs])||Uo(e)||Bo(e))}function ct(e,t,o){o===void 0&&(o=!1),Tt(e)===0?(o?Object.keys:Lt)(e).forEach(function(n){o&&typeof n=="symbol"||t(n,e[n],e)}):e.forEach(function(n,i){return t(i,n,e)})}function Tt(e){var t=e[$];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:Uo(e)?2:Bo(e)?3:0}function Pt(e,t){return Tt(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Ic(e,t){return Tt(e)===2?e.get(t):e[t]}function hs(e,t,o){var n=Tt(e);n===2?e.set(t,o):n===3?e.add(o):e[t]=o}function ms(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function Uo(e){return Bc&&e instanceof Map}function Bo(e){return Mc&&e instanceof Set}function Ve(e){return e.o||e.t}function Mo(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=bs(e);delete t[$];for(var o=Lt(t),n=0;n<o.length;n++){var i=o[n],a=t[i];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(t[i]={configurable:!0,writable:!0,enumerable:a.enumerable,value:e[i]})}return Object.create(Object.getPrototypeOf(e),t)}function Wo(e,t){return t===void 0&&(t=!1),$o(e)||Me(e)||!Oe(e)||(Tt(e)>1&&(e.set=e.add=e.clear=e.delete=_c),Object.freeze(e),t&&ct(e,function(o,n){return Wo(n,!0)},!0)),e}function _c(){ge(2)}function $o(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function Re(e){var t=Do[e];return t||ge(18,e),t}function kc(e,t){Do[e]||(Do[e]=t)}function Io(){return tr}function Ro(e,t){t&&(Re("Patches"),e.u=[],e.s=[],e.v=t)}function Ir(e){_o(e),e.p.forEach(Dc),e.p=null}function _o(e){e===tr&&(tr=e.l)}function ss(e){return tr={p:[],l:tr,h:e,m:!0,_:0}}function Dc(e){var t=e[$];t.i===0||t.i===1?t.j():t.g=!0}function Po(e,t){t._=t.p.length;var o=t.p[0],n=e!==void 0&&e!==o;return t.h.O||Re("ES5").S(t,e,n),n?(o[$].P&&(Ir(t),ge(4)),Oe(e)&&(e=_r(t,e),t.l||kr(t,e)),t.u&&Re("Patches").M(o[$].t,e,t.u,t.s)):e=_r(t,o,[]),Ir(t),t.u&&t.v(t.u,t.s),e!==gs?e:void 0}function _r(e,t,o){if($o(t))return t;var n=t[$];if(!n)return ct(t,function(l,u){return cs(e,n,t,l,u,o)},!0),t;if(n.A!==e)return t;if(!n.P)return kr(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var i=n.i===4||n.i===5?n.o=Mo(n.k):n.o,a=i,s=!1;n.i===3&&(a=new Set(i),i.clear(),s=!0),ct(a,function(l,u){return cs(e,n,i,l,u,o,s)}),kr(e,i,!1),o&&e.u&&Re("Patches").N(n,o,e.u,e.s)}return n.o}function cs(e,t,o,n,i,a,s){if(Me(i)){var l=_r(e,i,a&&t&&t.i!==3&&!Pt(t.R,n)?a.concat(n):void 0);if(hs(o,n,l),!Me(l))return;e.m=!1}else s&&o.add(i);if(Oe(i)&&!$o(i)){if(!e.h.D&&e._<1)return;_r(e,i),t&&t.A.l||kr(e,i)}}function kr(e,t,o){o===void 0&&(o=!1),!e.l&&e.h.D&&e.m&&Wo(t,o)}function Lo(e,t){var o=e[$];return(o?Ve(o):e)[t]}function ls(e,t){if(t in e)for(var o=Object.getPrototypeOf(e);o;){var n=Object.getOwnPropertyDescriptor(o,t);if(n)return n;o=Object.getPrototypeOf(o)}}function Ze(e){e.P||(e.P=!0,e.l&&Ze(e.l))}function To(e){e.o||(e.o=Mo(e.t))}function ko(e,t,o){var n=Uo(t)?Re("MapSet").F(t,o):Bo(t)?Re("MapSet").T(t,o):e.O?function(i,a){var s=Array.isArray(i),l={i:s?1:0,A:a?a.A:Io(),P:!1,I:!1,R:{},l:a,t:i,k:null,o:null,j:null,C:!1},u=l,p=rr;s&&(u=[l],p=er);var f=Proxy.revocable(u,p),m=f.revoke,y=f.proxy;return l.k=y,l.j=m,y}(t,o):Re("ES5").J(t,o);return(o?o.A:Io()).p.push(n),n}function Uc(e){return Me(e)||ge(22,e),function t(o){if(!Oe(o))return o;var n,i=o[$],a=Tt(o);if(i){if(!i.P&&(i.i<4||!Re("ES5").K(i)))return i.t;i.I=!0,n=ds(o,a),i.I=!1}else n=ds(o,a);return ct(n,function(s,l){i&&Ic(i.t,s)===l||hs(n,s,t(l))}),a===3?new Set(n):n}(e)}function ds(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return Mo(e)}function ys(){function e(s,l){var u=a[s];return u?u.enumerable=l:a[s]=u={configurable:!0,enumerable:l,get:function(){var p=this[$];return rr.get(p,s)},set:function(p){var f=this[$];rr.set(f,s,p)}},u}function t(s){for(var l=s.length-1;l>=0;l--){var u=s[l][$];if(!u.P)switch(u.i){case 5:n(u)&&Ze(u);break;case 4:o(u)&&Ze(u)}}}function o(s){for(var l=s.t,u=s.k,p=Lt(u),f=p.length-1;f>=0;f--){var m=p[f];if(m!==$){var y=l[m];if(y===void 0&&!Pt(l,m))return!0;var b=u[m],g=b&&b[$];if(g?g.t!==y:!ms(b,y))return!0}}var v=!!l[$];return p.length!==Lt(l).length+(v?0:1)}function n(s){var l=s.k;if(l.length!==s.t.length)return!0;var u=Object.getOwnPropertyDescriptor(l,l.length-1);if(u&&!u.get)return!0;for(var p=0;p<l.length;p++)if(!l.hasOwnProperty(p))return!0;return!1}function i(s){s.g&&ge(3,JSON.stringify(Ve(s)))}var a={};kc("ES5",{J:function(s,l){var u=Array.isArray(s),p=function(m,y){if(m){for(var b=Array(y.length),g=0;g<y.length;g++)Object.defineProperty(b,""+g,e(g,!0));return b}var v=bs(y);delete v[$];for(var N=Lt(v),w=0;w<N.length;w++){var A=N[w];v[A]=e(A,m||!!v[A].enumerable)}return Object.create(Object.getPrototypeOf(y),v)}(u,s),f={i:u?5:4,A:l?l.A:Io(),P:!1,I:!1,R:{},l,t:s,k:p,o:null,g:!1,C:!1};return Object.defineProperty(p,$,{value:f,writable:!0}),p},S:function(s,l,u){u?Me(l)&&l[$].A===s&&t(s.p):(s.u&&function p(f){if(f&&typeof f=="object"){var m=f[$];if(m){var y=m.t,b=m.k,g=m.R,v=m.i;if(v===4)ct(b,function(L){L!==$&&(y[L]!==void 0||Pt(y,L)?g[L]||p(b[L]):(g[L]=!0,Ze(m)))}),ct(y,function(L){b[L]!==void 0||Pt(b,L)||(g[L]=!1,Ze(m))});else if(v===5){if(n(m)&&(Ze(m),g.length=!0),b.length<y.length)for(var N=b.length;N<y.length;N++)g[N]=!1;else for(var w=y.length;w<b.length;w++)g[w]=!0;for(var A=Math.min(b.length,y.length),T=0;T<A;T++)b.hasOwnProperty(T)||(g[T]=!0),g[T]===void 0&&p(b[T])}}}}(s.p[0]),t(s.p))},K:function(s){return s.i===4?o(s):n(s)}})}var us,tr,zo=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",Bc=typeof Map<"u",Mc=typeof Set<"u",ps=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",gs=zo?Symbol.for("immer-nothing"):((us={})["immer-nothing"]=!0,us),fs=zo?Symbol.for("immer-draftable"):"__$immer_draftable",$=zo?Symbol.for("immer-state"):"__$immer_state";var Wc=""+Object.prototype.constructor,Lt=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,bs=Object.getOwnPropertyDescriptors||function(e){var t={};return Lt(e).forEach(function(o){t[o]=Object.getOwnPropertyDescriptor(e,o)}),t},Do={},rr={get:function(e,t){if(t===$)return e;var o=Ve(e);if(!Pt(o,t))return function(i,a,s){var l,u=ls(a,s);return u?"value"in u?u.value:(l=u.get)===null||l===void 0?void 0:l.call(i.k):void 0}(e,o,t);var n=o[t];return e.I||!Oe(n)?n:n===Lo(e.t,t)?(To(e),e.o[t]=ko(e.A.h,n,e)):n},has:function(e,t){return t in Ve(e)},ownKeys:function(e){return Reflect.ownKeys(Ve(e))},set:function(e,t,o){var n=ls(Ve(e),t);if(n?.set)return n.set.call(e.k,o),!0;if(!e.P){var i=Lo(Ve(e),t),a=i?.[$];if(a&&a.t===o)return e.o[t]=o,e.R[t]=!1,!0;if(ms(o,i)&&(o!==void 0||Pt(e.t,t)))return!0;To(e),Ze(e)}return e.o[t]===o&&(o!==void 0||t in e.o)||Number.isNaN(o)&&Number.isNaN(e.o[t])||(e.o[t]=o,e.R[t]=!0),!0},deleteProperty:function(e,t){return Lo(e.t,t)!==void 0||t in e.t?(e.R[t]=!1,To(e),Ze(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var o=Ve(e),n=Reflect.getOwnPropertyDescriptor(o,t);return n&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:n.enumerable,value:o[t]}},defineProperty:function(){ge(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){ge(12)}},er={};ct(rr,function(e,t){er[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),er.deleteProperty=function(e,t){return er.set.call(this,e,t,void 0)},er.set=function(e,t,o){return rr.set.call(this,e[0],t,o,e[0])};var $c=function(){function e(o){var n=this;this.O=ps,this.D=!0,this.produce=function(i,a,s){if(typeof i=="function"&&typeof a!="function"){var l=a;a=i;var u=n;return function(v){var N=this;v===void 0&&(v=l);for(var w=arguments.length,A=Array(w>1?w-1:0),T=1;T<w;T++)A[T-1]=arguments[T];return u.produce(v,function(L){var B;return(B=a).call.apply(B,[N,L].concat(A))})}}var p;if(typeof a!="function"&&ge(6),s!==void 0&&typeof s!="function"&&ge(7),Oe(i)){var f=ss(n),m=ko(n,i,void 0),y=!0;try{p=a(m),y=!1}finally{y?Ir(f):_o(f)}return typeof Promise<"u"&&p instanceof Promise?p.then(function(v){return Ro(f,s),Po(v,f)},function(v){throw Ir(f),v}):(Ro(f,s),Po(p,f))}if(!i||typeof i!="object"){if((p=a(i))===void 0&&(p=i),p===gs&&(p=void 0),n.D&&Wo(p,!0),s){var b=[],g=[];Re("Patches").M(i,p,b,g),s(b,g)}return p}ge(21,i)},this.produceWithPatches=function(i,a){if(typeof i=="function")return function(p){for(var f=arguments.length,m=Array(f>1?f-1:0),y=1;y<f;y++)m[y-1]=arguments[y];return n.produceWithPatches(p,function(b){return i.apply(void 0,[b].concat(m))})};var s,l,u=n.produce(i,a,function(p,f){s=p,l=f});return typeof Promise<"u"&&u instanceof Promise?u.then(function(p){return[p,s,l]}):[u,s,l]},typeof o?.useProxies=="boolean"&&this.setUseProxies(o.useProxies),typeof o?.autoFreeze=="boolean"&&this.setAutoFreeze(o.autoFreeze)}var t=e.prototype;return t.createDraft=function(o){Oe(o)||ge(8),Me(o)&&(o=Uc(o));var n=ss(this),i=ko(this,o,void 0);return i[$].C=!0,_o(n),i},t.finishDraft=function(o,n){var i=o&&o[$],a=i.A;return Ro(a,n),Po(void 0,a)},t.setAutoFreeze=function(o){this.D=o},t.setUseProxies=function(o){o&&!ps&&ge(20),this.O=o},t.applyPatches=function(o,n){var i;for(i=n.length-1;i>=0;i--){var a=n[i];if(a.path.length===0&&a.op==="replace"){o=a.value;break}}i>-1&&(n=n.slice(i+1));var s=Re("Patches").$;return Me(o)?s(o,n):this.produce(o,function(l){return s(l,n)})},e}(),pe=new $c,zc=pe.produce,dy=pe.produceWithPatches.bind(pe),uy=pe.setAutoFreeze.bind(pe),py=pe.setUseProxies.bind(pe),fy=pe.applyPatches.bind(pe),hy=pe.createDraft.bind(pe),my=pe.finishDraft.bind(pe),Dr=zc;function qe(e){"@babel/helpers - typeof";return qe=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},qe(e)}function Ho(e,t){if(qe(e)!=="object"||e===null)return e;var o=e[Symbol.toPrimitive];if(o!==void 0){var n=o.call(e,t||"default");if(qe(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Fo(e){var t=Ho(e,"string");return qe(t)==="symbol"?t:String(t)}function Go(e,t,o){return t=Fo(t),t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function xs(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),o.push.apply(o,n)}return o}function Ur(e){for(var t=1;t<arguments.length;t++){var o=arguments[t]!=null?arguments[t]:{};t%2?xs(Object(o),!0).forEach(function(n){Go(e,n,o[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):xs(Object(o)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(o,n))})}return e}function te(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var vs=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),jo=function(){return Math.random().toString(36).substring(7).split("").join(".")},Br={INIT:"@@redux/INIT"+jo(),REPLACE:"@@redux/REPLACE"+jo(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+jo()}};function Hc(e){if(typeof e!="object"||e===null)return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function Ko(e,t,o){var n;if(typeof t=="function"&&typeof o=="function"||typeof o=="function"&&typeof arguments[3]=="function")throw new Error(te(0));if(typeof t=="function"&&typeof o>"u"&&(o=t,t=void 0),typeof o<"u"){if(typeof o!="function")throw new Error(te(1));return o(Ko)(e,t)}if(typeof e!="function")throw new Error(te(2));var i=e,a=t,s=[],l=s,u=!1;function p(){l===s&&(l=s.slice())}function f(){if(u)throw new Error(te(3));return a}function m(v){if(typeof v!="function")throw new Error(te(4));if(u)throw new Error(te(5));var N=!0;return p(),l.push(v),function(){if(N){if(u)throw new Error(te(6));N=!1,p();var A=l.indexOf(v);l.splice(A,1),s=null}}}function y(v){if(!Hc(v))throw new Error(te(7));if(typeof v.type>"u")throw new Error(te(8));if(u)throw new Error(te(9));try{u=!0,a=i(a,v)}finally{u=!1}for(var N=s=l,w=0;w<N.length;w++){var A=N[w];A()}return v}function b(v){if(typeof v!="function")throw new Error(te(10));i=v,y({type:Br.REPLACE})}function g(){var v,N=m;return v={subscribe:function(A){if(typeof A!="object"||A===null)throw new Error(te(11));function T(){A.next&&A.next(f())}T();var L=N(T);return{unsubscribe:L}}},v[vs]=function(){return this},v}return y({type:Br.INIT}),n={dispatch:y,subscribe:m,getState:f,replaceReducer:b},n[vs]=g,n}function Fc(e){Object.keys(e).forEach(function(t){var o=e[t],n=o(void 0,{type:Br.INIT});if(typeof n>"u")throw new Error(te(12));if(typeof o(void 0,{type:Br.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(te(13))})}function Ss(e){for(var t=Object.keys(e),o={},n=0;n<t.length;n++){var i=t[n];typeof e[i]=="function"&&(o[i]=e[i])}var a=Object.keys(o),s,l;try{Fc(o)}catch(u){l=u}return function(p,f){if(p===void 0&&(p={}),l)throw l;if(0)var m;for(var y=!1,b={},g=0;g<a.length;g++){var v=a[g],N=o[v],w=p[v],A=N(w,f);if(typeof A>"u"){var T=f&&f.type;throw new Error(te(14))}b[v]=A,y=y||A!==w}return y=y||a.length!==Object.keys(p).length,y?b:p}}function It(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return t.length===0?function(n){return n}:t.length===1?t[0]:t.reduce(function(n,i){return function(){return n(i.apply(void 0,arguments))}})}function Os(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return function(n){return function(){var i=n.apply(void 0,arguments),a=function(){throw new Error(te(15))},s={getState:i.getState,dispatch:function(){return a.apply(void 0,arguments)}},l=t.map(function(u){return u(s)});return a=It.apply(void 0,l)(i.dispatch),Ur(Ur({},i),{},{dispatch:a})}}}function Cs(e){var t=function(n){var i=n.dispatch,a=n.getState;return function(s){return function(l){return typeof l=="function"?l(i,a,e):s(l)}}};return t}var Es=Cs();Es.withExtraArgument=Cs;var Vo=Es;var Ps=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},e(t,o)};return function(t,o){if(typeof o!="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");e(t,o);function n(){this.constructor=t}t.prototype=o===null?Object.create(o):(n.prototype=o.prototype,new n)}}(),Gc=function(e,t){var o={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,i,a,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(p){return function(f){return u([p,f])}}function u(p){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,i&&(a=p[0]&2?i.return:p[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,p[1])).done)return a;switch(i=0,a&&(p=[p[0]&2,a.value]),p[0]){case 0:case 1:a=p;break;case 4:return o.label++,{value:p[1],done:!1};case 5:o.label++,i=p[1],p=[0];continue;case 7:p=o.ops.pop(),o.trys.pop();continue;default:if(a=o.trys,!(a=a.length>0&&a[a.length-1])&&(p[0]===6||p[0]===2)){o=0;continue}if(p[0]===3&&(!a||p[1]>a[0]&&p[1]<a[3])){o.label=p[1];break}if(p[0]===6&&o.label<a[1]){o.label=a[1],a=p;break}if(a&&o.label<a[2]){o.label=a[2],o.ops.push(p);break}a[2]&&o.ops.pop(),o.trys.pop();continue}p=t.call(e,o)}catch(f){p=[6,f],i=0}finally{n=a=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},_t=function(e,t){for(var o=0,n=t.length,i=e.length;o<n;o++,i++)e[i]=t[o];return e},jc=Object.defineProperty,Kc=Object.defineProperties,Vc=Object.getOwnPropertyDescriptors,ws=Object.getOwnPropertySymbols,Zc=Object.prototype.hasOwnProperty,qc=Object.prototype.propertyIsEnumerable,As=function(e,t,o){return t in e?jc(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o},Ye=function(e,t){for(var o in t||(t={}))Zc.call(t,o)&&As(e,o,t[o]);if(ws)for(var n=0,i=ws(t);n<i.length;n++){var o=i[n];qc.call(t,o)&&As(e,o,t[o])}return e},Zo=function(e,t){return Kc(e,Vc(t))},Yc=function(e,t,o){return new Promise(function(n,i){var a=function(u){try{l(o.next(u))}catch(p){i(p)}},s=function(u){try{l(o.throw(u))}catch(p){i(p)}},l=function(u){return u.done?n(u.value):Promise.resolve(u.value).then(a,s)};l((o=o.apply(e,t)).next())})};var Xc=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?It:It.apply(null,arguments)},_y=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(e){return e}};function Jc(e){if(typeof e!="object"||e===null)return!1;var t=Object.getPrototypeOf(e);if(t===null)return!0;for(var o=t;Object.getPrototypeOf(o)!==null;)o=Object.getPrototypeOf(o);return t===o}var Qc=function(e){Ps(t,e);function t(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var i=e.apply(this,o)||this;return Object.setPrototypeOf(i,t.prototype),i}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return e.prototype.concat.apply(this,o)},t.prototype.prepend=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return o.length===1&&Array.isArray(o[0])?new(t.bind.apply(t,_t([void 0],o[0].concat(this)))):new(t.bind.apply(t,_t([void 0],o.concat(this))))},t}(Array),el=function(e){Ps(t,e);function t(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var i=e.apply(this,o)||this;return Object.setPrototypeOf(i,t.prototype),i}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return e.prototype.concat.apply(this,o)},t.prototype.prepend=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return o.length===1&&Array.isArray(o[0])?new(t.bind.apply(t,_t([void 0],o[0].concat(this)))):new(t.bind.apply(t,_t([void 0],o.concat(this))))},t}(Array);function Xo(e){return Oe(e)?Dr(e,function(){}):e}function tl(e){return typeof e=="boolean"}function rl(){return function(t){return ol(t)}}function ol(e){e===void 0&&(e={});var t=e.thunk,o=t===void 0?!0:t,n=e.immutableCheck,i=n===void 0?!0:n,a=e.serializableCheck,s=a===void 0?!0:a,l=new Qc;if(o&&(tl(o)?l.push(Vo):l.push(Vo.withExtraArgument(o.extraArgument))),0){if(i)var u;if(s)var p}return l}var qo=!0;function Ls(e){var t=rl(),o=e||{},n=o.reducer,i=n===void 0?void 0:n,a=o.middleware,s=a===void 0?t():a,l=o.devTools,u=l===void 0?!0:l,p=o.preloadedState,f=p===void 0?void 0:p,m=o.enhancers,y=m===void 0?void 0:m,b;if(typeof i=="function")b=i;else if(Jc(i))b=Ss(i);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var g=s;if(typeof g=="function"&&(g=g(t),!qo&&!Array.isArray(g)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!qo&&g.some(function(L){return typeof L!="function"}))throw new Error("each middleware provided to configureStore must be a function");var v=Os.apply(void 0,g),N=It;u&&(N=Xc(Ye({trace:!qo},typeof u=="object"&&u)));var w=new el(v),A=w;Array.isArray(y)?A=_t([v],y):typeof y=="function"&&(A=y(w));var T=N.apply(void 0,A);return Ko(b,f,T)}function Xe(e,t){function o(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];if(t){var a=t.apply(void 0,n);if(!a)throw new Error("prepareAction did not return an object");return Ye(Ye({type:e,payload:a.payload},"meta"in a&&{meta:a.meta}),"error"in a&&{error:a.error})}return{type:e,payload:n[0]}}return o.toString=function(){return""+e},o.type=e,o.match=function(n){return n.type===e},o}function Ts(e){var t={},o=[],n,i={addCase:function(a,s){var l=typeof a=="string"?a:a.type;if(l in t)throw new Error("addCase cannot be called with two reducers for the same action type");return t[l]=s,i},addMatcher:function(a,s){return o.push({matcher:a,reducer:s}),i},addDefaultCase:function(a){return n=a,i}};return e(i),[t,o,n]}function nl(e){return typeof e=="function"}function il(e,t,o,n){o===void 0&&(o=[]);var i=typeof t=="function"?Ts(t):[t,o,n],a=i[0],s=i[1],l=i[2],u;if(nl(e))u=function(){return Xo(e())};else{var p=Xo(e);u=function(){return p}}function f(m,y){m===void 0&&(m=u());var b=_t([a[y.type]],s.filter(function(g){var v=g.matcher;return v(y)}).map(function(g){var v=g.reducer;return v}));return b.filter(function(g){return!!g}).length===0&&(b=[l]),b.reduce(function(g,v){if(v)if(Me(g)){var N=g,w=v(N,y);return w===void 0?g:w}else{if(Oe(g))return Dr(g,function(A){return v(A,y)});var w=v(g,y);if(w===void 0){if(g===null)return g;throw Error("A case reducer on a non-draftable value must not return undefined")}return w}return g},m)}return f.getInitialState=u,f}function al(e,t){return e+"/"+t}function Is(e){var t=e.name;if(!t)throw new Error("`name` is a required option for createSlice");typeof process<"u";var o=typeof e.initialState=="function"?e.initialState:Xo(e.initialState),n=e.reducers||{},i=Object.keys(n),a={},s={},l={};i.forEach(function(f){var m=n[f],y=al(t,f),b,g;"reducer"in m?(b=m.reducer,g=m.prepare):b=m,a[f]=b,s[y]=b,l[f]=g?Xe(y,g):Xe(y)});function u(){var f=typeof e.extraReducers=="function"?Ts(e.extraReducers):[e.extraReducers],m=f[0],y=m===void 0?{}:m,b=f[1],g=b===void 0?[]:b,v=f[2],N=v===void 0?void 0:v,w=Ye(Ye({},y),s);return il(o,function(A){for(var T in w)A.addCase(T,w[T]);for(var L=0,B=g;L<B.length;L++){var ae=B[L];A.addMatcher(ae.matcher,ae.reducer)}N&&A.addDefaultCase(N)})}var p;return{name:t,reducer:function(f,m){return p||(p=u()),p(f,m)},actions:l,caseReducers:a,getInitialState:function(){return p||(p=u()),p.getInitialState()}}}var sl="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",cl=function(e){e===void 0&&(e=21);for(var t="",o=e;o--;)t+=sl[Math.random()*64|0];return t},ll=["name","message","stack","code"],Yo=function(){function e(t,o){this.payload=t,this.meta=o}return e}(),Ns=function(){function e(t,o){this.payload=t,this.meta=o}return e}(),dl=function(e){if(typeof e=="object"&&e!==null){for(var t={},o=0,n=ll;o<n.length;o++){var i=n[o];typeof e[i]=="string"&&(t[i]=e[i])}return t}return{message:String(e)}},By=function(){function e(t,o,n){var i=Xe(t+"/fulfilled",function(f,m,y,b){return{payload:f,meta:Zo(Ye({},b||{}),{arg:y,requestId:m,requestStatus:"fulfilled"})}}),a=Xe(t+"/pending",function(f,m,y){return{payload:void 0,meta:Zo(Ye({},y||{}),{arg:m,requestId:f,requestStatus:"pending"})}}),s=Xe(t+"/rejected",function(f,m,y,b,g){return{payload:b,error:(n&&n.serializeError||dl)(f||"Rejected"),meta:Zo(Ye({},g||{}),{arg:y,requestId:m,rejectedWithValue:!!b,requestStatus:"rejected",aborted:f?.name==="AbortError",condition:f?.name==="ConditionError"})}}),l=!1,u=typeof AbortController<"u"?AbortController:function(){function f(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return f.prototype.abort=function(){},f}();function p(f){return function(m,y,b){var g=n?.idGenerator?n.idGenerator(f):cl(),v=new u,N,w=!1;function A(L){N=L,v.abort()}var T=function(){return Yc(this,null,function(){var L,B,ae,V,kt,fe,h;return Gc(this,function(x){switch(x.label){case 0:return x.trys.push([0,4,,5]),V=(L=n?.condition)==null?void 0:L.call(n,f,{getState:y,extra:b}),pl(V)?[4,V]:[3,2];case 1:V=x.sent(),x.label=2;case 2:if(V===!1||v.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return w=!0,kt=new Promise(function(R,W){return v.signal.addEventListener("abort",function(){return W({name:"AbortError",message:N||"Aborted"})})}),m(a(g,f,(B=n?.getPendingMeta)==null?void 0:B.call(n,{requestId:g,arg:f},{getState:y,extra:b}))),[4,Promise.race([kt,Promise.resolve(o(f,{dispatch:m,getState:y,extra:b,requestId:g,signal:v.signal,abort:A,rejectWithValue:function(R,W){return new Yo(R,W)},fulfillWithValue:function(R,W){return new Ns(R,W)}})).then(function(R){if(R instanceof Yo)throw R;return R instanceof Ns?i(R.payload,g,f,R.meta):i(R,g,f)})])];case 3:return ae=x.sent(),[3,5];case 4:return fe=x.sent(),ae=fe instanceof Yo?s(null,g,f,fe.payload,fe.meta):s(fe,g,f),[3,5];case 5:return h=n&&!n.dispatchConditionRejection&&s.match(ae)&&ae.meta.condition,h||m(ae),[2,ae]}})})}();return Object.assign(T,{abort:A,requestId:g,arg:f,unwrap:function(){return T.then(ul)}})}}return Object.assign(p,{pending:a,rejected:s,fulfilled:i,typePrefix:t})}return e.withTypes=function(){return e},e}();function ul(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function pl(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var _s="listener",ks="completed",Ds="cancelled",My="task-"+Ds,Wy="task-"+ks,$y=_s+"-"+Ds,zy=_s+"-"+ks;var Jo="listenerMiddleware";var Hy=Xe(Jo+"/add"),Fy=Xe(Jo+"/removeAll"),Gy=Xe(Jo+"/remove");var Rs,jy=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(e){return(Rs||(Rs=Promise.resolve())).then(e).catch(function(t){return setTimeout(function(){throw t},0)})},fl=function(e){return function(t){setTimeout(t,e)}},Ky=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:fl(10);ys();window.ftReduxStores||(window.ftReduxStores={});var Us=class e{static get(t){var o;let n=typeof t=="string"?t:t.name,i=typeof t=="string"?void 0:t,a=window.ftReduxStores[n];if(Jt(a))return a;if(i==null)return;let s=Is({...i,reducers:(o=i.reducers)!==null&&o!==void 0?o:{}}),l=Ls({reducer:(u,p)=>p.type==="CLEAR_FT_REDUX_STORE"?s.getInitialState():typeof p.type=="string"&&p.type.startsWith("DEFAULT_VALUE_SETTER__")?{...u,...p.overwrites}:s.reducer(u,p)});return window.ftReduxStores[i.name]=new e(s,l)}constructor(t,o){this.reduxSlice=t,this.reduxStore=o,this.isFtReduxStore=!0,this.eventBus=document.createElement("event-bus"),this.commands=new Ar,this.actions=new Proxy(this.reduxSlice.actions,{get:(n,i,a)=>{let s=i,l=n[s];return l?(...u)=>{let p=l(...u);return this.reduxStore.dispatch(p),p}:u=>{this.setState({[s]:u})}}})}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(t){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(t).join("_"),overwrites:t})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(t){throw new Error("Not implemented yet.")}subscribe(t){return this.reduxStore.subscribe(t)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};var zr=S(_());var Mr=class extends Be{async listMySearches(){let t=k.getState().session;return t?.sessionAuthenticated?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(t.profile.userId),5*60*1e3):[]}};var Wr=class extends Be{async listMyBookmarks(){let t=k.getState().session;return t?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(t.profile.userId),5*60*1e3):[]}};var ml="ft-user-assets",$r=zr.FtReduxStore.get({name:ml,initialState:{savedSearches:void 0,bookmarks:void 0}}),Qo=class{constructor(){this.currentSession=k.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Wr,this.savedSearchesService=new Mr,k.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var t;let{session:o}=k.getState();(0,zr.deepEqual)((t=this.currentSession)===null||t===void 0?void 0:t.profile,o?.profile)||(this.currentSession=o,this.clearMySearches(),this.reloadBookmarks())}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),$r.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),$r.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let t=await this.savedSearchesService.listMySearches();$r.actions.savedSearches(t)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var t;if(this.bookmarksAreUsed){let o=!((t=this.currentSession)===null||t===void 0)&&t.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;$r.actions.bookmarks(o)}}},Sg=new Qo;var en=class{addCommand(t,o=!1){k.commands.add(t,o)}consumeCommand(t){return k.commands.consume(t)}};window.FluidTopicsAppInfoStoreService=new en;var Bs=S(_()),tn=class{highlightHtml(t,o){(0,Bs.highlightHtml)(t,o)}};window.FluidTopicsHighlightHtmlService=new tn;var Ms=S(_());var rn=class{isDate(t){var o,n,i,a;return(a=(i=((n=(o=k.getState().metadataConfiguration)===null||o===void 0?void 0:o.descriptors)!==null&&n!==void 0?n:[]).find(l=>l.key===t))===null||i===void 0?void 0:i.date)!==null&&a!==void 0?a:!1}format(t,o){var n,i,a;return Ms.DateFormatter.format(t,(n=o?.locale)!==null&&n!==void 0?n:k.getState().uiLocale,(i=o?.longFormat)!==null&&i!==void 0?i:!1,(a=o?.withTime)!==null&&a!==void 0?a:!1)}};window.FluidTopicsDateService=new rn;(0,Ws.customElement)("ft-app-context")(G);var on=class e extends Event{constructor(){super(e.eventName)}};on.eventName="search-context-clear-all-filters";var yl=function(e,t,o,n){var i=arguments.length,a=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,o,n);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(a=(i<3?s(a):i>3?s(t,o,a):s(t,o))||a);return i>3&&a&&Object.defineProperty(t,o,a),a},sn=class extends Event{constructor(){super("register-ft-search-component",{bubbles:!0,composed:!0})}},an=Symbol("registerInterval");function gl(e){var t;class o extends e{constructor(){super(...arguments),this[t]=0}setSearchStateManager(i){this.clearStateManager(),this.stateManager=i,this.addStore(i.store,"search")}clearStateManager(){this.stateManager&&(this.removeStore(this.stateManager.store),this.stateManager=void 0)}connectedCallback(){super.connectedCallback(),this[an]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null?window.clearInterval(this[an]):this.dispatchEvent(new sn)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return t=an,yl([(0,zs.state)()],o.prototype,"stateManager",void 0),o}var Hr=class extends gl($s.FtLitElementRedux){};var Ks=S(_());var Vr=S(z()),Zr=S(ee()),qr=S(_());var Hs=S(z());var Fs=Hs.css`
825
+ `}update(t){super.update(t),t.has("baseUrl")&&(k.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),t.has("apiIntegrationIdentifier")&&k.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&k.actions.uiLocale(this.uiLocale),t.has("metadataConfiguration")&&k.actions.metadataConfiguration(this.metadataConfiguration),t.has("noCustom")&&k.actions.noCustom(this.noCustom),t.has("editorMode")&&k.actions.editorMode(this.editorMode),t.has("noCustomComponent")&&k.actions.noCustomComponent(this.noCustomComponent),t.has("session")&&k.actions.session(this.session),t.has("availableUiLocales")&&k.actions.availableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),t.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(o=>Rt.addContext(o)),t.has("openExternalDocumentInNewTab")&&k.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),t.has("navigatorOnline")&&k.actions.navigatorOnline(this.navigatorOnline),t.has("forcedOffline")&&k.actions.forcedOffline(this.forcedOffline),setTimeout(()=>this.updateIfNeeded())}async updateIfNeeded(){!this.withManualResources&&this.apiProvider()&&(this.session==null&&this.updateSession(),this.availableUiLocales==null&&this.updateUiLocales(),this.metadataConfiguration==null&&this.updateMetadataConfiguration())}async updateSession(){this.session=await this.cache.get("session",async()=>{let t=await this.apiProvider().getCurrentSession();return t.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.session=void 0},t.idleTimeoutInMillis),t})}async updateUiLocales(){this.availableUiLocales=await this.cache.get("availableUiLocales",()=>this.apiProvider().getAvailableUiLocales())}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration())}};G.elementDefinitions={};G.styles=ja;ie([(0,ye.property)()],G.prototype,"baseUrl",void 0);ie([(0,ye.property)()],G.prototype,"apiIntegrationIdentifier",void 0);ie([(0,ye.property)()],G.prototype,"uiLocale",void 0);ie([(0,Se.jsonProperty)(null)],G.prototype,"availableUiLocales",void 0);ie([(0,Se.jsonProperty)(null)],G.prototype,"metadataConfiguration",void 0);ie([(0,ye.property)({type:Boolean})],G.prototype,"editorMode",void 0);ie([(0,ye.property)({type:Boolean})],G.prototype,"noCustom",void 0);ie([(0,ye.property)({type:Boolean})],G.prototype,"openExternalDocumentInNewTab",void 0);ie([(0,ye.property)({converter:{fromAttribute(e){return e==="false"?!1:e==="true"||(e??!1)}}})],G.prototype,"noCustomComponent",void 0);ie([(0,ye.property)({type:Boolean})],G.prototype,"withManualResources",void 0);ie([(0,ye.property)({type:Boolean})],G.prototype,"navigatorOnline",void 0);ie([(0,ye.property)({type:Boolean})],G.prototype,"forcedOffline",void 0);ie([(0,ye.property)({type:Object})],G.prototype,"apiProvider",void 0);ie([(0,Se.jsonProperty)([])],G.prototype,"messageContexts",void 0);ie([(0,Se.jsonProperty)(void 0)],G.prototype,"session",void 0);var hl=S(ee());function Pc(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var o,n,i;if(Array.isArray(e)){if(o=e.length,o!=t.length)return!1;for(n=o;n--!==0;)if(!wr(e[n],t[n]))return!1;return!0}if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(n of e.entries())if(!t.has(n[0]))return!1;for(n of e.entries())if(!wr(n[1],t.get(n[0])))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(n of e.entries())if(!t.has(n[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();if(i=Object.keys(e),o=i.length,o!==Object.keys(t).length)return!1;for(n=o;n--!==0;)if(!Object.prototype.hasOwnProperty.call(t,i[n]))return!1;for(n=o;n--!==0;){var a=i[n];if(!wr(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function wr(e,t){try{return Pc(e,t)}catch{return!1}}function No(e,t){return!wr(e,t)}var Lc=S(ee(),1);var Ar=class{constructor(){this.queue=[]}add(t,o=!1){o&&(this.queue=this.queue.filter(n=>n.type!==t.type)),this.queue.push(t)}consume(t){let o=this.queue.find(n=>n.type===t);return o&&(this.queue=this.queue.filter(n=>n!==o)),o}};var Xt=S(ee(),1);var qa=S(ee(),1);function Ya(e,t){let o=()=>JSON.parse(JSON.stringify(e));return(0,qa.property)({type:Object,converter:{fromAttribute:n=>{if(n==null)return o();try{return JSON.parse(n)}catch{return o()}},toAttribute:n=>JSON.stringify(n)},hasChanged:No,...t??{}})}var Nr=class{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,o){return this.callbacks=[t],this.debounce(o)}queue(t,o){return this.callbacks.push(t),this.debounce(o)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return this.promise==null&&(this.promise=new Promise((o,n)=>{this.resolvePromise=o,this.rejectPromise=n})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),t??this.timeout),this.promise}async runCallbacks(){var t,o;let n=[...this.callbacks];this.callbacks=[];let i=(t=this.rejectPromise)!==null&&t!==void 0?t:()=>null,a=(o=this.resolvePromise)!==null&&o!==void 0?o:()=>null;this.clearPromise();for(let s of n)try{await s()}catch(l){i(l);return}a(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var Ja=S(z(),1);var Rr=window,Tc=Rr.ShadowRoot&&(Rr.ShadyCSS===void 0||Rr.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Jm=Symbol();var Xa=(e,t)=>{Tc?e.adoptedStyleSheets=t.map(o=>o instanceof CSSStyleSheet?o:o.styleSheet):t.forEach(o=>{let n=document.createElement("style"),i=Rr.litNonce;i!==void 0&&n.setAttribute("nonce",i),n.textContent=o.cssText,e.appendChild(n)})};var Pr=class extends Ja.LitElement{createRenderRoot(){let t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach(([i,a])=>t.registry.define(i,a)));let o={...t.shadowRootOptions,customElements:t.registry},n=this.renderOptions.creationScope=this.attachShadow(o);return Xa(n,t.elementStyles),n}};var Lr=function(e,t,o,n){var i=arguments.length,a=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,o,n);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(a=(i<3?s(a):i>3?s(t,o,a):s(t,o))||a);return i>3&&a&&Object.defineProperty(t,o,a),a},rs,Qa=Symbol("constructorPrototype"),es=Symbol("constructorName"),os=Symbol("exportpartsDebouncer"),ts=Symbol("dynamicDependenciesLoaded"),je=class extends Pr{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[rs]=new Nr(5),this[es]=this.constructor.name,this[Qa]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[es]&&Object.setPrototypeOf(this,this[Qa])}connectedCallback(){super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(o){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",o)}let t=this.constructor;t[ts]||(t[ts]=!0,this.importDynamicDependencies())}importDynamicDependencies(){}updated(t){super.updated(t),this.updateComplete.then(()=>{this.contentAvailableCallback(t),this.applyCustomStylesheet(t),this.scheduleExportpartsUpdate()})}contentAvailableCallback(t){}applyCustomStylesheet(t){var o,n,i;if(((n=(o=this.shadowRoot)===null||o===void 0?void 0:o.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&n!==void 0?n:[]).forEach(a=>a.remove()),this.useAdoptedStyleSheets){if(t.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((i=this.customStylesheet)!==null&&i!==void 0?i:"")}catch(a){console.error(a,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let a=document.createElement("style");a.classList.add("ft-lit-element--custom-stylesheet"),a.innerHTML=this.customStylesheet,this.shadowRoot.append(a)}}scheduleExportpartsUpdate(){var t,o,n;(!((t=this.exportpartsPrefix)===null||t===void 0)&&t.trim()||(n=(o=this.exportpartsPrefixes)===null||o===void 0?void 0:o.length)!==null&&n!==void 0&&n)&&this[os].run(()=>{var i,a;!((i=this.exportpartsPrefix)===null||i===void 0)&&i.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((a=this.exportpartsPrefixes)===null||a===void 0?void 0:a.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})}setExportpartsAttribute(t){var o,n,i,a,s,l;let u=y=>y!=null&&y.trim().length>0,p=t.filter(u).map(y=>y.trim());if(p.length===0){this.removeAttribute("exportparts");return}let f=new Set;for(let y of(n=(o=this.shadowRoot)===null||o===void 0?void 0:o.querySelectorAll("[part],[exportparts]"))!==null&&n!==void 0?n:[]){let b=(a=(i=y.getAttribute("part"))===null||i===void 0?void 0:i.split(" "))!==null&&a!==void 0?a:[],g=(l=(s=y.getAttribute("exportparts"))===null||s===void 0?void 0:s.split(",").map(v=>v.split(":")[1]))!==null&&l!==void 0?l:[];new Array(...b,...g).filter(u).map(v=>v.trim()).forEach(v=>f.add(v))}if(f.size===0){this.removeAttribute("exportparts");return}let m=[...f.values()].flatMap(y=>p.map(b=>`${y}:${b}--${y}`));this.setAttribute("exportparts",[...this.part,...m].join(", "))}};rs=os;Lr([(0,Xt.property)()],je.prototype,"exportpartsPrefix",void 0);Lr([Ya([])],je.prototype,"exportpartsPrefixes",void 0);Lr([(0,Xt.property)()],je.prototype,"customStylesheet",void 0);Lr([(0,Xt.state)()],je.prototype,"useAdoptedStyleSheets",void 0);function Jt(e){var t;return(t=e?.isFtReduxStore)!==null&&t!==void 0?t:!1}var ns,is,as,Tr=Symbol("internalReduxEventsUnsubscribers"),Ke=Symbol("internalStoresUnsubscribers"),st=Symbol("internalStores"),Qt=class extends je{constructor(){super(...arguments),this[ns]=new Map,this[is]=new Map,this[as]=[]}get reduxConstructor(){return this.constructor}update(t){super.update(t),[...this.reduxConstructor.reduxReactiveProperties].some(o=>t.has(o))&&this.updateFromStores()}getUnnamedStore(){if(this[st].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[st].values()][0]}getStore(t){return t==null?this.getUnnamedStore():this[st].get(t)}addStore(t,o){var n;o=(n=o??(Jt(t)?t.name:void 0))!==null&&n!==void 0?n:"default-store",this.unsubscribeFromStore(o),this.setupStore(o,t)}removeStore(t){let o=typeof t=="string"?t:t.name;this.unsubscribeFromStore(o),this[st].delete(o)}setupStore(t,o){this[st].set(t,o),this.subscribeToStore(t,o),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[st].forEach((t,o)=>this.subscribeToStore(o,t)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((t,o)=>{let n=this.constructor.getPropertyOptions(o);if(!n?.attribute||!this.hasAttribute(typeof n?.attribute=="string"?n.attribute:o)){let i=this.getStore(t.store);i&&(t.store?this[Ke].has(t.store):this[Ke].size>0)&&(this[o]=t.selector(i.getState(),this))}})}subscribeToStore(t,o){var n;this[Ke].set(t,o.subscribe(()=>this.updateFromStores())),Jt(o)&&o.eventBus&&((n=this.reduxConstructor.reduxEventListeners)===null||n===void 0||n.forEach((i,a)=>{if(typeof this[a]=="function"&&(!i.store||o.name===i.store)){let s=l=>this[a](l);o.eventBus.addEventListener(i.eventName,s),this[Tr].push(()=>o.eventBus.removeEventListener(i.eventName,s))}})),this.onStoreAvailable(t)}unsubscribeFromStores(){this[Ke].forEach((t,o)=>this.unsubscribeFromStore(o)),this[Tr].forEach(t=>t()),this[Tr]=[]}unsubscribeFromStore(t){this[Ke].has(t)&&this[Ke].get(t)(),this[Ke].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}};ns=Ke,is=st,as=Tr;Qt.reduxProperties=new Map;Qt.reduxReactiveProperties=new Set;Qt.reduxEventListeners=new Map;function ge(e){for(var t=arguments.length,o=Array(t>1?t-1:0),n=1;n<t;n++)o[n-1]=arguments[n];if(0)var i,a;throw Error("[Immer] minified error nr: "+e+(o.length?" "+o.map(function(s){return"'"+s+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Me(e){return!!e&&!!e[$]}function Oe(e){var t;return!!e&&(function(o){if(!o||typeof o!="object")return!1;var n=Object.getPrototypeOf(o);if(n===null)return!0;var i=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return i===Object||typeof i=="function"&&Function.toString.call(i)===Wc}(e)||Array.isArray(e)||!!e[fs]||!!(!((t=e.constructor)===null||t===void 0)&&t[fs])||Uo(e)||Bo(e))}function ct(e,t,o){o===void 0&&(o=!1),Tt(e)===0?(o?Object.keys:Lt)(e).forEach(function(n){o&&typeof n=="symbol"||t(n,e[n],e)}):e.forEach(function(n,i){return t(i,n,e)})}function Tt(e){var t=e[$];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:Uo(e)?2:Bo(e)?3:0}function Pt(e,t){return Tt(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Ic(e,t){return Tt(e)===2?e.get(t):e[t]}function hs(e,t,o){var n=Tt(e);n===2?e.set(t,o):n===3?e.add(o):e[t]=o}function ms(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function Uo(e){return Bc&&e instanceof Map}function Bo(e){return Mc&&e instanceof Set}function Ve(e){return e.o||e.t}function Mo(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=bs(e);delete t[$];for(var o=Lt(t),n=0;n<o.length;n++){var i=o[n],a=t[i];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(t[i]={configurable:!0,writable:!0,enumerable:a.enumerable,value:e[i]})}return Object.create(Object.getPrototypeOf(e),t)}function Wo(e,t){return t===void 0&&(t=!1),$o(e)||Me(e)||!Oe(e)||(Tt(e)>1&&(e.set=e.add=e.clear=e.delete=_c),Object.freeze(e),t&&ct(e,function(o,n){return Wo(n,!0)},!0)),e}function _c(){ge(2)}function $o(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function Re(e){var t=Do[e];return t||ge(18,e),t}function kc(e,t){Do[e]||(Do[e]=t)}function Io(){return tr}function Ro(e,t){t&&(Re("Patches"),e.u=[],e.s=[],e.v=t)}function Ir(e){_o(e),e.p.forEach(Dc),e.p=null}function _o(e){e===tr&&(tr=e.l)}function ss(e){return tr={p:[],l:tr,h:e,m:!0,_:0}}function Dc(e){var t=e[$];t.i===0||t.i===1?t.j():t.g=!0}function Po(e,t){t._=t.p.length;var o=t.p[0],n=e!==void 0&&e!==o;return t.h.O||Re("ES5").S(t,e,n),n?(o[$].P&&(Ir(t),ge(4)),Oe(e)&&(e=_r(t,e),t.l||kr(t,e)),t.u&&Re("Patches").M(o[$].t,e,t.u,t.s)):e=_r(t,o,[]),Ir(t),t.u&&t.v(t.u,t.s),e!==gs?e:void 0}function _r(e,t,o){if($o(t))return t;var n=t[$];if(!n)return ct(t,function(l,u){return cs(e,n,t,l,u,o)},!0),t;if(n.A!==e)return t;if(!n.P)return kr(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var i=n.i===4||n.i===5?n.o=Mo(n.k):n.o,a=i,s=!1;n.i===3&&(a=new Set(i),i.clear(),s=!0),ct(a,function(l,u){return cs(e,n,i,l,u,o,s)}),kr(e,i,!1),o&&e.u&&Re("Patches").N(n,o,e.u,e.s)}return n.o}function cs(e,t,o,n,i,a,s){if(Me(i)){var l=_r(e,i,a&&t&&t.i!==3&&!Pt(t.R,n)?a.concat(n):void 0);if(hs(o,n,l),!Me(l))return;e.m=!1}else s&&o.add(i);if(Oe(i)&&!$o(i)){if(!e.h.D&&e._<1)return;_r(e,i),t&&t.A.l||kr(e,i)}}function kr(e,t,o){o===void 0&&(o=!1),!e.l&&e.h.D&&e.m&&Wo(t,o)}function Lo(e,t){var o=e[$];return(o?Ve(o):e)[t]}function ls(e,t){if(t in e)for(var o=Object.getPrototypeOf(e);o;){var n=Object.getOwnPropertyDescriptor(o,t);if(n)return n;o=Object.getPrototypeOf(o)}}function Ze(e){e.P||(e.P=!0,e.l&&Ze(e.l))}function To(e){e.o||(e.o=Mo(e.t))}function ko(e,t,o){var n=Uo(t)?Re("MapSet").F(t,o):Bo(t)?Re("MapSet").T(t,o):e.O?function(i,a){var s=Array.isArray(i),l={i:s?1:0,A:a?a.A:Io(),P:!1,I:!1,R:{},l:a,t:i,k:null,o:null,j:null,C:!1},u=l,p=rr;s&&(u=[l],p=er);var f=Proxy.revocable(u,p),m=f.revoke,y=f.proxy;return l.k=y,l.j=m,y}(t,o):Re("ES5").J(t,o);return(o?o.A:Io()).p.push(n),n}function Uc(e){return Me(e)||ge(22,e),function t(o){if(!Oe(o))return o;var n,i=o[$],a=Tt(o);if(i){if(!i.P&&(i.i<4||!Re("ES5").K(i)))return i.t;i.I=!0,n=ds(o,a),i.I=!1}else n=ds(o,a);return ct(n,function(s,l){i&&Ic(i.t,s)===l||hs(n,s,t(l))}),a===3?new Set(n):n}(e)}function ds(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return Mo(e)}function ys(){function e(s,l){var u=a[s];return u?u.enumerable=l:a[s]=u={configurable:!0,enumerable:l,get:function(){var p=this[$];return rr.get(p,s)},set:function(p){var f=this[$];rr.set(f,s,p)}},u}function t(s){for(var l=s.length-1;l>=0;l--){var u=s[l][$];if(!u.P)switch(u.i){case 5:n(u)&&Ze(u);break;case 4:o(u)&&Ze(u)}}}function o(s){for(var l=s.t,u=s.k,p=Lt(u),f=p.length-1;f>=0;f--){var m=p[f];if(m!==$){var y=l[m];if(y===void 0&&!Pt(l,m))return!0;var b=u[m],g=b&&b[$];if(g?g.t!==y:!ms(b,y))return!0}}var v=!!l[$];return p.length!==Lt(l).length+(v?0:1)}function n(s){var l=s.k;if(l.length!==s.t.length)return!0;var u=Object.getOwnPropertyDescriptor(l,l.length-1);if(u&&!u.get)return!0;for(var p=0;p<l.length;p++)if(!l.hasOwnProperty(p))return!0;return!1}function i(s){s.g&&ge(3,JSON.stringify(Ve(s)))}var a={};kc("ES5",{J:function(s,l){var u=Array.isArray(s),p=function(m,y){if(m){for(var b=Array(y.length),g=0;g<y.length;g++)Object.defineProperty(b,""+g,e(g,!0));return b}var v=bs(y);delete v[$];for(var N=Lt(v),w=0;w<N.length;w++){var A=N[w];v[A]=e(A,m||!!v[A].enumerable)}return Object.create(Object.getPrototypeOf(y),v)}(u,s),f={i:u?5:4,A:l?l.A:Io(),P:!1,I:!1,R:{},l,t:s,k:p,o:null,g:!1,C:!1};return Object.defineProperty(p,$,{value:f,writable:!0}),p},S:function(s,l,u){u?Me(l)&&l[$].A===s&&t(s.p):(s.u&&function p(f){if(f&&typeof f=="object"){var m=f[$];if(m){var y=m.t,b=m.k,g=m.R,v=m.i;if(v===4)ct(b,function(L){L!==$&&(y[L]!==void 0||Pt(y,L)?g[L]||p(b[L]):(g[L]=!0,Ze(m)))}),ct(y,function(L){b[L]!==void 0||Pt(b,L)||(g[L]=!1,Ze(m))});else if(v===5){if(n(m)&&(Ze(m),g.length=!0),b.length<y.length)for(var N=b.length;N<y.length;N++)g[N]=!1;else for(var w=y.length;w<b.length;w++)g[w]=!0;for(var A=Math.min(b.length,y.length),T=0;T<A;T++)b.hasOwnProperty(T)||(g[T]=!0),g[T]===void 0&&p(b[T])}}}}(s.p[0]),t(s.p))},K:function(s){return s.i===4?o(s):n(s)}})}var us,tr,zo=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",Bc=typeof Map<"u",Mc=typeof Set<"u",ps=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",gs=zo?Symbol.for("immer-nothing"):((us={})["immer-nothing"]=!0,us),fs=zo?Symbol.for("immer-draftable"):"__$immer_draftable",$=zo?Symbol.for("immer-state"):"__$immer_state";var Wc=""+Object.prototype.constructor,Lt=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,bs=Object.getOwnPropertyDescriptors||function(e){var t={};return Lt(e).forEach(function(o){t[o]=Object.getOwnPropertyDescriptor(e,o)}),t},Do={},rr={get:function(e,t){if(t===$)return e;var o=Ve(e);if(!Pt(o,t))return function(i,a,s){var l,u=ls(a,s);return u?"value"in u?u.value:(l=u.get)===null||l===void 0?void 0:l.call(i.k):void 0}(e,o,t);var n=o[t];return e.I||!Oe(n)?n:n===Lo(e.t,t)?(To(e),e.o[t]=ko(e.A.h,n,e)):n},has:function(e,t){return t in Ve(e)},ownKeys:function(e){return Reflect.ownKeys(Ve(e))},set:function(e,t,o){var n=ls(Ve(e),t);if(n?.set)return n.set.call(e.k,o),!0;if(!e.P){var i=Lo(Ve(e),t),a=i?.[$];if(a&&a.t===o)return e.o[t]=o,e.R[t]=!1,!0;if(ms(o,i)&&(o!==void 0||Pt(e.t,t)))return!0;To(e),Ze(e)}return e.o[t]===o&&(o!==void 0||t in e.o)||Number.isNaN(o)&&Number.isNaN(e.o[t])||(e.o[t]=o,e.R[t]=!0),!0},deleteProperty:function(e,t){return Lo(e.t,t)!==void 0||t in e.t?(e.R[t]=!1,To(e),Ze(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var o=Ve(e),n=Reflect.getOwnPropertyDescriptor(o,t);return n&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:n.enumerable,value:o[t]}},defineProperty:function(){ge(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){ge(12)}},er={};ct(rr,function(e,t){er[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),er.deleteProperty=function(e,t){return er.set.call(this,e,t,void 0)},er.set=function(e,t,o){return rr.set.call(this,e[0],t,o,e[0])};var $c=function(){function e(o){var n=this;this.O=ps,this.D=!0,this.produce=function(i,a,s){if(typeof i=="function"&&typeof a!="function"){var l=a;a=i;var u=n;return function(v){var N=this;v===void 0&&(v=l);for(var w=arguments.length,A=Array(w>1?w-1:0),T=1;T<w;T++)A[T-1]=arguments[T];return u.produce(v,function(L){var B;return(B=a).call.apply(B,[N,L].concat(A))})}}var p;if(typeof a!="function"&&ge(6),s!==void 0&&typeof s!="function"&&ge(7),Oe(i)){var f=ss(n),m=ko(n,i,void 0),y=!0;try{p=a(m),y=!1}finally{y?Ir(f):_o(f)}return typeof Promise<"u"&&p instanceof Promise?p.then(function(v){return Ro(f,s),Po(v,f)},function(v){throw Ir(f),v}):(Ro(f,s),Po(p,f))}if(!i||typeof i!="object"){if((p=a(i))===void 0&&(p=i),p===gs&&(p=void 0),n.D&&Wo(p,!0),s){var b=[],g=[];Re("Patches").M(i,p,b,g),s(b,g)}return p}ge(21,i)},this.produceWithPatches=function(i,a){if(typeof i=="function")return function(p){for(var f=arguments.length,m=Array(f>1?f-1:0),y=1;y<f;y++)m[y-1]=arguments[y];return n.produceWithPatches(p,function(b){return i.apply(void 0,[b].concat(m))})};var s,l,u=n.produce(i,a,function(p,f){s=p,l=f});return typeof Promise<"u"&&u instanceof Promise?u.then(function(p){return[p,s,l]}):[u,s,l]},typeof o?.useProxies=="boolean"&&this.setUseProxies(o.useProxies),typeof o?.autoFreeze=="boolean"&&this.setAutoFreeze(o.autoFreeze)}var t=e.prototype;return t.createDraft=function(o){Oe(o)||ge(8),Me(o)&&(o=Uc(o));var n=ss(this),i=ko(this,o,void 0);return i[$].C=!0,_o(n),i},t.finishDraft=function(o,n){var i=o&&o[$],a=i.A;return Ro(a,n),Po(void 0,a)},t.setAutoFreeze=function(o){this.D=o},t.setUseProxies=function(o){o&&!ps&&ge(20),this.O=o},t.applyPatches=function(o,n){var i;for(i=n.length-1;i>=0;i--){var a=n[i];if(a.path.length===0&&a.op==="replace"){o=a.value;break}}i>-1&&(n=n.slice(i+1));var s=Re("Patches").$;return Me(o)?s(o,n):this.produce(o,function(l){return s(l,n)})},e}(),pe=new $c,zc=pe.produce,dy=pe.produceWithPatches.bind(pe),uy=pe.setAutoFreeze.bind(pe),py=pe.setUseProxies.bind(pe),fy=pe.applyPatches.bind(pe),hy=pe.createDraft.bind(pe),my=pe.finishDraft.bind(pe),Dr=zc;function qe(e){"@babel/helpers - typeof";return qe=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},qe(e)}function Ho(e,t){if(qe(e)!=="object"||e===null)return e;var o=e[Symbol.toPrimitive];if(o!==void 0){var n=o.call(e,t||"default");if(qe(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Fo(e){var t=Ho(e,"string");return qe(t)==="symbol"?t:String(t)}function Go(e,t,o){return t=Fo(t),t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function xs(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),o.push.apply(o,n)}return o}function Ur(e){for(var t=1;t<arguments.length;t++){var o=arguments[t]!=null?arguments[t]:{};t%2?xs(Object(o),!0).forEach(function(n){Go(e,n,o[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):xs(Object(o)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(o,n))})}return e}function te(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var vs=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),jo=function(){return Math.random().toString(36).substring(7).split("").join(".")},Br={INIT:"@@redux/INIT"+jo(),REPLACE:"@@redux/REPLACE"+jo(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+jo()}};function Hc(e){if(typeof e!="object"||e===null)return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function Ko(e,t,o){var n;if(typeof t=="function"&&typeof o=="function"||typeof o=="function"&&typeof arguments[3]=="function")throw new Error(te(0));if(typeof t=="function"&&typeof o>"u"&&(o=t,t=void 0),typeof o<"u"){if(typeof o!="function")throw new Error(te(1));return o(Ko)(e,t)}if(typeof e!="function")throw new Error(te(2));var i=e,a=t,s=[],l=s,u=!1;function p(){l===s&&(l=s.slice())}function f(){if(u)throw new Error(te(3));return a}function m(v){if(typeof v!="function")throw new Error(te(4));if(u)throw new Error(te(5));var N=!0;return p(),l.push(v),function(){if(N){if(u)throw new Error(te(6));N=!1,p();var A=l.indexOf(v);l.splice(A,1),s=null}}}function y(v){if(!Hc(v))throw new Error(te(7));if(typeof v.type>"u")throw new Error(te(8));if(u)throw new Error(te(9));try{u=!0,a=i(a,v)}finally{u=!1}for(var N=s=l,w=0;w<N.length;w++){var A=N[w];A()}return v}function b(v){if(typeof v!="function")throw new Error(te(10));i=v,y({type:Br.REPLACE})}function g(){var v,N=m;return v={subscribe:function(A){if(typeof A!="object"||A===null)throw new Error(te(11));function T(){A.next&&A.next(f())}T();var L=N(T);return{unsubscribe:L}}},v[vs]=function(){return this},v}return y({type:Br.INIT}),n={dispatch:y,subscribe:m,getState:f,replaceReducer:b},n[vs]=g,n}function Fc(e){Object.keys(e).forEach(function(t){var o=e[t],n=o(void 0,{type:Br.INIT});if(typeof n>"u")throw new Error(te(12));if(typeof o(void 0,{type:Br.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(te(13))})}function Ss(e){for(var t=Object.keys(e),o={},n=0;n<t.length;n++){var i=t[n];typeof e[i]=="function"&&(o[i]=e[i])}var a=Object.keys(o),s,l;try{Fc(o)}catch(u){l=u}return function(p,f){if(p===void 0&&(p={}),l)throw l;if(0)var m;for(var y=!1,b={},g=0;g<a.length;g++){var v=a[g],N=o[v],w=p[v],A=N(w,f);if(typeof A>"u"){var T=f&&f.type;throw new Error(te(14))}b[v]=A,y=y||A!==w}return y=y||a.length!==Object.keys(p).length,y?b:p}}function It(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return t.length===0?function(n){return n}:t.length===1?t[0]:t.reduce(function(n,i){return function(){return n(i.apply(void 0,arguments))}})}function Os(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return function(n){return function(){var i=n.apply(void 0,arguments),a=function(){throw new Error(te(15))},s={getState:i.getState,dispatch:function(){return a.apply(void 0,arguments)}},l=t.map(function(u){return u(s)});return a=It.apply(void 0,l)(i.dispatch),Ur(Ur({},i),{},{dispatch:a})}}}function Cs(e){var t=function(n){var i=n.dispatch,a=n.getState;return function(s){return function(l){return typeof l=="function"?l(i,a,e):s(l)}}};return t}var Es=Cs();Es.withExtraArgument=Cs;var Vo=Es;var Ps=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},e(t,o)};return function(t,o){if(typeof o!="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");e(t,o);function n(){this.constructor=t}t.prototype=o===null?Object.create(o):(n.prototype=o.prototype,new n)}}(),Gc=function(e,t){var o={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,i,a,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(p){return function(f){return u([p,f])}}function u(p){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,i&&(a=p[0]&2?i.return:p[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,p[1])).done)return a;switch(i=0,a&&(p=[p[0]&2,a.value]),p[0]){case 0:case 1:a=p;break;case 4:return o.label++,{value:p[1],done:!1};case 5:o.label++,i=p[1],p=[0];continue;case 7:p=o.ops.pop(),o.trys.pop();continue;default:if(a=o.trys,!(a=a.length>0&&a[a.length-1])&&(p[0]===6||p[0]===2)){o=0;continue}if(p[0]===3&&(!a||p[1]>a[0]&&p[1]<a[3])){o.label=p[1];break}if(p[0]===6&&o.label<a[1]){o.label=a[1],a=p;break}if(a&&o.label<a[2]){o.label=a[2],o.ops.push(p);break}a[2]&&o.ops.pop(),o.trys.pop();continue}p=t.call(e,o)}catch(f){p=[6,f],i=0}finally{n=a=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},_t=function(e,t){for(var o=0,n=t.length,i=e.length;o<n;o++,i++)e[i]=t[o];return e},jc=Object.defineProperty,Kc=Object.defineProperties,Vc=Object.getOwnPropertyDescriptors,ws=Object.getOwnPropertySymbols,Zc=Object.prototype.hasOwnProperty,qc=Object.prototype.propertyIsEnumerable,As=function(e,t,o){return t in e?jc(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o},Ye=function(e,t){for(var o in t||(t={}))Zc.call(t,o)&&As(e,o,t[o]);if(ws)for(var n=0,i=ws(t);n<i.length;n++){var o=i[n];qc.call(t,o)&&As(e,o,t[o])}return e},Zo=function(e,t){return Kc(e,Vc(t))},Yc=function(e,t,o){return new Promise(function(n,i){var a=function(u){try{l(o.next(u))}catch(p){i(p)}},s=function(u){try{l(o.throw(u))}catch(p){i(p)}},l=function(u){return u.done?n(u.value):Promise.resolve(u.value).then(a,s)};l((o=o.apply(e,t)).next())})};var Xc=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?It:It.apply(null,arguments)},_y=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(e){return e}};function Jc(e){if(typeof e!="object"||e===null)return!1;var t=Object.getPrototypeOf(e);if(t===null)return!0;for(var o=t;Object.getPrototypeOf(o)!==null;)o=Object.getPrototypeOf(o);return t===o}var Qc=function(e){Ps(t,e);function t(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var i=e.apply(this,o)||this;return Object.setPrototypeOf(i,t.prototype),i}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return e.prototype.concat.apply(this,o)},t.prototype.prepend=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return o.length===1&&Array.isArray(o[0])?new(t.bind.apply(t,_t([void 0],o[0].concat(this)))):new(t.bind.apply(t,_t([void 0],o.concat(this))))},t}(Array),el=function(e){Ps(t,e);function t(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var i=e.apply(this,o)||this;return Object.setPrototypeOf(i,t.prototype),i}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return e.prototype.concat.apply(this,o)},t.prototype.prepend=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return o.length===1&&Array.isArray(o[0])?new(t.bind.apply(t,_t([void 0],o[0].concat(this)))):new(t.bind.apply(t,_t([void 0],o.concat(this))))},t}(Array);function Xo(e){return Oe(e)?Dr(e,function(){}):e}function tl(e){return typeof e=="boolean"}function rl(){return function(t){return ol(t)}}function ol(e){e===void 0&&(e={});var t=e.thunk,o=t===void 0?!0:t,n=e.immutableCheck,i=n===void 0?!0:n,a=e.serializableCheck,s=a===void 0?!0:a,l=new Qc;if(o&&(tl(o)?l.push(Vo):l.push(Vo.withExtraArgument(o.extraArgument))),0){if(i)var u;if(s)var p}return l}var qo=!0;function Ls(e){var t=rl(),o=e||{},n=o.reducer,i=n===void 0?void 0:n,a=o.middleware,s=a===void 0?t():a,l=o.devTools,u=l===void 0?!0:l,p=o.preloadedState,f=p===void 0?void 0:p,m=o.enhancers,y=m===void 0?void 0:m,b;if(typeof i=="function")b=i;else if(Jc(i))b=Ss(i);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var g=s;if(typeof g=="function"&&(g=g(t),!qo&&!Array.isArray(g)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!qo&&g.some(function(L){return typeof L!="function"}))throw new Error("each middleware provided to configureStore must be a function");var v=Os.apply(void 0,g),N=It;u&&(N=Xc(Ye({trace:!qo},typeof u=="object"&&u)));var w=new el(v),A=w;Array.isArray(y)?A=_t([v],y):typeof y=="function"&&(A=y(w));var T=N.apply(void 0,A);return Ko(b,f,T)}function Xe(e,t){function o(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];if(t){var a=t.apply(void 0,n);if(!a)throw new Error("prepareAction did not return an object");return Ye(Ye({type:e,payload:a.payload},"meta"in a&&{meta:a.meta}),"error"in a&&{error:a.error})}return{type:e,payload:n[0]}}return o.toString=function(){return""+e},o.type=e,o.match=function(n){return n.type===e},o}function Ts(e){var t={},o=[],n,i={addCase:function(a,s){var l=typeof a=="string"?a:a.type;if(l in t)throw new Error("addCase cannot be called with two reducers for the same action type");return t[l]=s,i},addMatcher:function(a,s){return o.push({matcher:a,reducer:s}),i},addDefaultCase:function(a){return n=a,i}};return e(i),[t,o,n]}function nl(e){return typeof e=="function"}function il(e,t,o,n){o===void 0&&(o=[]);var i=typeof t=="function"?Ts(t):[t,o,n],a=i[0],s=i[1],l=i[2],u;if(nl(e))u=function(){return Xo(e())};else{var p=Xo(e);u=function(){return p}}function f(m,y){m===void 0&&(m=u());var b=_t([a[y.type]],s.filter(function(g){var v=g.matcher;return v(y)}).map(function(g){var v=g.reducer;return v}));return b.filter(function(g){return!!g}).length===0&&(b=[l]),b.reduce(function(g,v){if(v)if(Me(g)){var N=g,w=v(N,y);return w===void 0?g:w}else{if(Oe(g))return Dr(g,function(A){return v(A,y)});var w=v(g,y);if(w===void 0){if(g===null)return g;throw Error("A case reducer on a non-draftable value must not return undefined")}return w}return g},m)}return f.getInitialState=u,f}function al(e,t){return e+"/"+t}function Is(e){var t=e.name;if(!t)throw new Error("`name` is a required option for createSlice");typeof process<"u";var o=typeof e.initialState=="function"?e.initialState:Xo(e.initialState),n=e.reducers||{},i=Object.keys(n),a={},s={},l={};i.forEach(function(f){var m=n[f],y=al(t,f),b,g;"reducer"in m?(b=m.reducer,g=m.prepare):b=m,a[f]=b,s[y]=b,l[f]=g?Xe(y,g):Xe(y)});function u(){var f=typeof e.extraReducers=="function"?Ts(e.extraReducers):[e.extraReducers],m=f[0],y=m===void 0?{}:m,b=f[1],g=b===void 0?[]:b,v=f[2],N=v===void 0?void 0:v,w=Ye(Ye({},y),s);return il(o,function(A){for(var T in w)A.addCase(T,w[T]);for(var L=0,B=g;L<B.length;L++){var ae=B[L];A.addMatcher(ae.matcher,ae.reducer)}N&&A.addDefaultCase(N)})}var p;return{name:t,reducer:function(f,m){return p||(p=u()),p(f,m)},actions:l,caseReducers:a,getInitialState:function(){return p||(p=u()),p.getInitialState()}}}var sl="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",cl=function(e){e===void 0&&(e=21);for(var t="",o=e;o--;)t+=sl[Math.random()*64|0];return t},ll=["name","message","stack","code"],Yo=function(){function e(t,o){this.payload=t,this.meta=o}return e}(),Ns=function(){function e(t,o){this.payload=t,this.meta=o}return e}(),dl=function(e){if(typeof e=="object"&&e!==null){for(var t={},o=0,n=ll;o<n.length;o++){var i=n[o];typeof e[i]=="string"&&(t[i]=e[i])}return t}return{message:String(e)}},By=function(){function e(t,o,n){var i=Xe(t+"/fulfilled",function(f,m,y,b){return{payload:f,meta:Zo(Ye({},b||{}),{arg:y,requestId:m,requestStatus:"fulfilled"})}}),a=Xe(t+"/pending",function(f,m,y){return{payload:void 0,meta:Zo(Ye({},y||{}),{arg:m,requestId:f,requestStatus:"pending"})}}),s=Xe(t+"/rejected",function(f,m,y,b,g){return{payload:b,error:(n&&n.serializeError||dl)(f||"Rejected"),meta:Zo(Ye({},g||{}),{arg:y,requestId:m,rejectedWithValue:!!b,requestStatus:"rejected",aborted:f?.name==="AbortError",condition:f?.name==="ConditionError"})}}),l=!1,u=typeof AbortController<"u"?AbortController:function(){function f(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return f.prototype.abort=function(){},f}();function p(f){return function(m,y,b){var g=n?.idGenerator?n.idGenerator(f):cl(),v=new u,N,w=!1;function A(L){N=L,v.abort()}var T=function(){return Yc(this,null,function(){var L,B,ae,V,kt,fe,h;return Gc(this,function(x){switch(x.label){case 0:return x.trys.push([0,4,,5]),V=(L=n?.condition)==null?void 0:L.call(n,f,{getState:y,extra:b}),pl(V)?[4,V]:[3,2];case 1:V=x.sent(),x.label=2;case 2:if(V===!1||v.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return w=!0,kt=new Promise(function(R,W){return v.signal.addEventListener("abort",function(){return W({name:"AbortError",message:N||"Aborted"})})}),m(a(g,f,(B=n?.getPendingMeta)==null?void 0:B.call(n,{requestId:g,arg:f},{getState:y,extra:b}))),[4,Promise.race([kt,Promise.resolve(o(f,{dispatch:m,getState:y,extra:b,requestId:g,signal:v.signal,abort:A,rejectWithValue:function(R,W){return new Yo(R,W)},fulfillWithValue:function(R,W){return new Ns(R,W)}})).then(function(R){if(R instanceof Yo)throw R;return R instanceof Ns?i(R.payload,g,f,R.meta):i(R,g,f)})])];case 3:return ae=x.sent(),[3,5];case 4:return fe=x.sent(),ae=fe instanceof Yo?s(null,g,f,fe.payload,fe.meta):s(fe,g,f),[3,5];case 5:return h=n&&!n.dispatchConditionRejection&&s.match(ae)&&ae.meta.condition,h||m(ae),[2,ae]}})})}();return Object.assign(T,{abort:A,requestId:g,arg:f,unwrap:function(){return T.then(ul)}})}}return Object.assign(p,{pending:a,rejected:s,fulfilled:i,typePrefix:t})}return e.withTypes=function(){return e},e}();function ul(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function pl(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var _s="listener",ks="completed",Ds="cancelled",My="task-"+Ds,Wy="task-"+ks,$y=_s+"-"+Ds,zy=_s+"-"+ks;var Jo="listenerMiddleware";var Hy=Xe(Jo+"/add"),Fy=Xe(Jo+"/removeAll"),Gy=Xe(Jo+"/remove");var Rs,jy=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(e){return(Rs||(Rs=Promise.resolve())).then(e).catch(function(t){return setTimeout(function(){throw t},0)})},fl=function(e){return function(t){setTimeout(t,e)}},Ky=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:fl(10);ys();window.ftReduxStores||(window.ftReduxStores={});var Us=class e{static get(t){var o;let n=typeof t=="string"?t:t.name,i=typeof t=="string"?void 0:t,a=window.ftReduxStores[n];if(Jt(a))return a;if(i==null)return;let s=Is({...i,reducers:(o=i.reducers)!==null&&o!==void 0?o:{}}),l=Ls({reducer:(u,p)=>p.type==="CLEAR_FT_REDUX_STORE"?s.getInitialState():typeof p.type=="string"&&p.type.startsWith("DEFAULT_VALUE_SETTER__")?{...u,...p.overwrites}:s.reducer(u,p)});return window.ftReduxStores[i.name]=new e(s,l)}constructor(t,o){this.reduxSlice=t,this.reduxStore=o,this.isFtReduxStore=!0,this.eventBus=document.createElement("event-bus"),this.commands=new Ar,this.actions=new Proxy(this.reduxSlice.actions,{get:(n,i,a)=>{let s=i,l=n[s];return l?(...u)=>{let p=l(...u);return this.reduxStore.dispatch(p),p}:u=>{this.setState({[s]:u})}}})}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(t){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(t).join("_"),overwrites:t})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(t){throw new Error("Not implemented yet.")}subscribe(t){return this.reduxStore.subscribe(t)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};var zr=S(_());var Mr=class extends Be{async listMySearches(){let t=k.getState().session;return t?.sessionAuthenticated?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(t.profile.userId),5*60*1e3):[]}};var Wr=class extends Be{async listMyBookmarks(){let t=k.getState().session;return t?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(t.profile.userId),5*60*1e3):[]}};var ml="ft-user-assets",$r=zr.FtReduxStore.get({name:ml,initialState:{savedSearches:void 0,bookmarks:void 0}}),Qo=class{constructor(){this.currentSession=k.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Wr,this.savedSearchesService=new Mr,k.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var t;let{session:o}=k.getState();(0,zr.deepEqual)((t=this.currentSession)===null||t===void 0?void 0:t.profile,o?.profile)||(this.currentSession=o,this.clearMySearches(),this.reloadBookmarks())}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),$r.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),$r.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let t=await this.savedSearchesService.listMySearches();$r.actions.savedSearches(t)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var t;if(this.bookmarksAreUsed){let o=!((t=this.currentSession)===null||t===void 0)&&t.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;$r.actions.bookmarks(o)}}},Sg=new Qo;var en=class{addCommand(t,o=!1){k.commands.add(t,o)}consumeCommand(t){return k.commands.consume(t)}};window.FluidTopicsAppInfoStoreService=new en;var Bs=S(_()),tn=class{highlightHtml(t,o,n){(0,Bs.highlightHtml)(t,o,n)}};window.FluidTopicsHighlightHtmlService=new tn;var Ms=S(_());var rn=class{isDate(t){var o,n,i,a;return(a=(i=((n=(o=k.getState().metadataConfiguration)===null||o===void 0?void 0:o.descriptors)!==null&&n!==void 0?n:[]).find(l=>l.key===t))===null||i===void 0?void 0:i.date)!==null&&a!==void 0?a:!1}format(t,o){var n,i,a;return Ms.DateFormatter.format(t,(n=o?.locale)!==null&&n!==void 0?n:k.getState().uiLocale,(i=o?.longFormat)!==null&&i!==void 0?i:!1,(a=o?.withTime)!==null&&a!==void 0?a:!1)}};window.FluidTopicsDateService=new rn;(0,Ws.customElement)("ft-app-context")(G);var on=class e extends Event{constructor(){super(e.eventName)}};on.eventName="search-context-clear-all-filters";var yl=function(e,t,o,n){var i=arguments.length,a=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,o,n);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(a=(i<3?s(a):i>3?s(t,o,a):s(t,o))||a);return i>3&&a&&Object.defineProperty(t,o,a),a},sn=class extends Event{constructor(){super("register-ft-search-component",{bubbles:!0,composed:!0})}},an=Symbol("registerInterval");function gl(e){var t;class o extends e{constructor(){super(...arguments),this[t]=0}setSearchStateManager(i){this.clearStateManager(),this.stateManager=i,this.addStore(i.store,"search")}clearStateManager(){this.stateManager&&(this.removeStore(this.stateManager.store),this.stateManager=void 0)}connectedCallback(){super.connectedCallback(),this[an]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null?window.clearInterval(this[an]):this.dispatchEvent(new sn)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return t=an,yl([(0,zs.state)()],o.prototype,"stateManager",void 0),o}var Hr=class extends gl($s.FtLitElementRedux){};var Ks=S(_());var Vr=S(z()),Zr=S(ee()),qr=S(_());var Hs=S(z());var Fs=Hs.css`
826
826
  `;var jr=S(_());var js=S(ee()),bl=function(e,t,o,n){var i=arguments.length,a=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,o,n);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(a=(i<3?s(a):i>3?s(t,o,a):s(t,o))||a);return i>3&&a&&Object.defineProperty(t,o,a),a},cn=Symbol("i18nAttributes"),Fr=Symbol("i18nProperties"),or=Symbol("i18nUnsubs");function Kr(e){var t;class o extends e{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[t]=new Map}get i18nService(){return this.useCustomMessageContexts?Va:Rt}i18n(i,a,...s){var l;if(typeof i=="string")return this.i18nService.resolveMessage(i,a,...s);let u=(l=i.args)!==null&&l!==void 0?l:i.argsProvider?i.argsProvider(this):[];return this.i18nService.resolveMessage(i.context,i.key,...u)}onI18nUpdate(i){var a,s;(a=this[cn])===null||a===void 0||a.forEach((l,u)=>{var p;let f=this.getI18nAttributeValue(u);((p=f?.context)===null||p===void 0?void 0:p.toLowerCase())===i.toLowerCase()&&this.updateI18nAttributeMessage(u,f,l)}),(s=this[Fr])===null||s===void 0||s.forEach((l,u)=>{l.context.toLowerCase()===i.toLowerCase()&&(this[u]=this.i18n(l))}),setTimeout(()=>this.requestUpdate(),0)}updateI18nAttributeMessage(i,a,s){this[i]={...a,message:this.i18n({context:a.context,key:a.key,...s})}}update(i){var a,s;super.update(i),(a=this[cn])===null||a===void 0||a.forEach((l,u)=>{let p=this.getI18nAttributeValue(u);p?.context&&p.key&&(i.has(u)||l.argsProvider!=null)&&(i.has(u)&&this.addI18nContext(p.context),this.updateI18nAttributeMessage(u,p,l))}),(s=this[Fr])===null||s===void 0||s.forEach((l,u)=>{l.argsProvider!=null&&(this[u]=this.i18n(l))})}getI18nAttributeValue(i){return this[i]}connectedCallback(){var i,a,s,l;super.connectedCallback(),new Set([...(a=(i=this[Fr])===null||i===void 0?void 0:i.values())!==null&&a!==void 0?a:[],...[...(l=(s=this[cn])===null||s===void 0?void 0:s.keys())!==null&&l!==void 0?l:[]].map(u=>this.getI18nAttributeValue(u))].map(u=>u?.context)).forEach(u=>u&&this.addI18nMessages(u))}addI18nMessages(i,a){i=i.toLowerCase(),this[or].has(i)||this[or].set(i,this.i18nService.subscribe(i,()=>this.onI18nUpdate(i))),this.i18nService.prepareContext(i,a??{}),this.onI18nUpdate(i)}addI18nContext(i,a){this.addI18nMessages(typeof i=="string"?i:i.name,a)}disconnectedCallback(){super.disconnectedCallback(),this[or].forEach(i=>i()),this[or].clear()}}return t=or,bl([(0,js.property)({type:Boolean})],o.prototype,"useCustomMessageContexts",void 0),o}var Gs=class extends Kr(jr.FtLitElement){},Gr=class extends Kr(jr.FtLitElementRedux){};var nr=function(e,t,o,n){var i=arguments.length,a=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,o,n);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(a=(i<3?s(a):i>3?s(t,o,a):s(t,o))||a);return i>3&&a&&Object.defineProperty(t,o,a),a},Ce=class extends Gr{constructor(){super(),this.editorMode=!1,this.addStore(k)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":Vr.nothing:Vr.html`
827
827
  <span class="ft-i18n">
828
828
  ${this.i18n(this.context,this.key,...Array.isArray(this.args)?this.args:[])}