@fluid-topics/ft-reader-page-title 1.2.45 → 1.2.48

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.
@@ -114,7 +114,7 @@ Also for action icons.`,a.colorGray200),contentGlobalSubtle:e.extend("--ft-conte
114
114
  `:qt`
115
115
  <slot part="text" class="ft-typography ft-typography--${this.variant}"></slot>
116
116
  `}};Y.styles=[Wo,Bo,Fo,zo,_o,Do,Uo,Mo,To,Ho,Go,...$o];jo([(0,Yt.property)()],Y.prototype,"element",void 0);jo([(0,Yt.property)()],Y.prototype,"variant",void 0);(0,Ko.customElement)("ft-typography")(Y);var Zn=O(k());var Jo=O(U()),B=O(M()),T=O(k());var Vo=O(U());var qo=Vo.css`
117
- `;var nt=O(k()),ha="ft-app-info",Jt=class extends CustomEvent{constructor(t){super("authentication-change",{detail:t})}},ya={session:(r,t)=>{(0,nt.deepEqual)(r.session,t.payload)||(r.session=t.payload,setTimeout(()=>S.dispatchEvent(new Jt(t.payload)),0))}},S=nt.FtReduxStore.get({name:ha,reducers:ya,initialState:{baseUrl:void 0,apiIntegrationIdentifier:void 0,uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],defaultLocales:void 0,searchInAllLanguagesAllowed:!1,metadataConfiguration:void 0,privacyPolicyConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1}});var $=O(k());var Xt=O(k());var fe=class r{static get(t){let{baseUrl:o,apiIntegrationIdentifier:n}=S.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=r.get(t);if(n)o(n);else{let i=S.subscribe(()=>{n=r.get(t),n&&(i(),o(n))})}})}};var Te=class{constructor(t){this.overrideApi=t}get api(){var t;return(t=this.overrideApi)!==null&&t!==void 0?t:fe.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):fe.await()}};var te=class extends Te{constructor(t=!0,o){var n;super(o);let i=this.constructor;i.commonCache=(n=i.commonCache)!==null&&n!==void 0?n:new Xt.CacheRegistry,this.cache=t?i.commonCache:new Xt.CacheRegistry}clearCache(){this.cache.clearAll()}};var Yo,ga=Symbol("clearAfterUnitTest"),at=class extends te{constructor(t){super(),this.messageContextProvider=t,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[Yo]=()=>{this.defaultMessages={},this.cache=new $.CacheRegistry,this.listeners={}},this.currentUiLocale=S.getState().uiLocale,S.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:t}=S.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,$.deepEqual)(this.defaultMessages[t],i)||(this.defaultMessages[t]=i,await this.notify(t))}await this.fetchContext(t)}resolveContext(t){var o,n;return this.fetchContext(t),(n=(o=this.cache.getNow(t))===null||o===void 0?void 0:o.messages)!==null&&n!==void 0?n:{}}resolveRawMessage(t,o){let n=t.toLowerCase();return this.resolveContext(n)[o]}resolveMessage(t,o,...n){var i;let c=t.toLowerCase(),s=this.resolveContext(c);return new $.ParametrizedLabelResolver((i=this.defaultMessages[c])!==null&&i!==void 0?i:{},s).resolve(o,...n)}async fetchContext(t){var o,n,i;if(!this.cache.has(t))if(((n=(o=window.process)===null||o===void 0?void 0:o.env)===null||n===void 0?void 0:n.NODE_ENV)==="test")this.cache.set(t,(i=this.defaultMessages[t])!==null&&i!==void 0?i:{});else try{await this.cache.get(t,()=>this.messageContextProvider(this.currentUiLocale,t)),await this.notify(t)}catch(c){c instanceof $.CanceledPromiseError||console.error(c)}}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,$.delay)(0).then(()=>o()).catch(()=>null)))}};Yo=ga;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends at{constructor(){super(async(r,t)=>(await this.awaitApi).getFluidTopicsMessageContext(r,t))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends at{constructor(){super(async(r,t)=>(await this.awaitApi).getCustomMessageContext(r,t))}});var Ae=window.FluidTopicsI18nService,it=window.FluidTopicsCustomI18nService;var L=function(r,t,o,n){var i=arguments.length,c=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")c=Reflect.decorate(r,t,o,n);else for(var d=r.length-1;d>=0;d--)(s=r[d])&&(c=(i<3?s(c):i>3?s(t,o,c):s(t,o))||c);return i>3&&c&&Object.defineProperty(t,o,c),c},R=class extends T.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=()=>fe.get(),this.messageContexts=[],this.cache=new T.CacheRegistry,this.cleanSessionDebouncer=new T.Debouncer}render(){return Jo.html`
117
+ `;var nt=O(k()),ha="ft-app-info",Jt=class extends CustomEvent{constructor(t){super("authentication-change",{detail:t})}},ya={session:(r,t)=>{(0,nt.deepEqual)(r.session,t.payload)||(r.session=t.payload,setTimeout(()=>S.dispatchEvent(new Jt(t.payload)),0))}},S=nt.FtReduxStore.get({name:ha,reducers:ya,initialState:{baseUrl:void 0,apiIntegrationIdentifier:void 0,uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],defaultLocales:void 0,searchInAllLanguagesAllowed:!1,metadataConfiguration:void 0,privacyPolicyConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1}});var $=O(k());var Xt=O(k());var fe=class r{static get(t){let{baseUrl:o,apiIntegrationIdentifier:n}=S.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=r.get(t);if(n)o(n);else{let i=S.subscribe(()=>{n=r.get(t),n&&(i(),o(n))})}})}};var Te=class{constructor(t){this.overrideApi=t}get api(){var t;return(t=this.overrideApi)!==null&&t!==void 0?t:fe.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):fe.await()}};var te=class extends Te{constructor(t=!0,o){var n;super(o);let i=this.constructor;i.commonCache=(n=i.commonCache)!==null&&n!==void 0?n:new Xt.CacheRegistry,this.cache=t?i.commonCache:new Xt.CacheRegistry}clearCache(){this.cache.clearAll()}};var Yo,ga=Symbol("clearAfterUnitTest"),at=class extends te{constructor(t){super(),this.messageContextProvider=t,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[Yo]=()=>{this.defaultMessages={},this.cache=new $.CacheRegistry,this.listeners={}},this.currentUiLocale=S.getState().uiLocale,S.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:t}=S.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,$.deepEqual)(this.defaultMessages[t],i)||(this.defaultMessages[t]=i,await this.notify(t))}return this.fetchContext(t)}resolveContext(t){var o,n;return this.fetchContext(t),(n=(o=this.cache.getNow(t))===null||o===void 0?void 0:o.messages)!==null&&n!==void 0?n:{}}resolveRawMessage(t,o){let n=t.toLowerCase();return this.resolveContext(n)[o]}resolveMessage(t,o,...n){var i;let c=t.toLowerCase(),s=this.resolveContext(c);return new $.ParametrizedLabelResolver((i=this.defaultMessages[c])!==null&&i!==void 0?i:{},s).resolve(o,...n)}async fetchContext(t){let o=!this.cache.has(t),n;try{n=await this.cache.get(t,()=>this.messageContextProvider(this.currentUiLocale,t))}catch(i){i instanceof $.CanceledPromiseError||console.error(i)}return o&&await this.notify(t),n}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,$.delay)(0).then(()=>o()).catch(()=>null)))}};Yo=ga;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends at{constructor(){super(async(r,t)=>(await this.awaitApi).getFluidTopicsMessageContext(r,t))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends at{constructor(){super(async(r,t)=>(await this.awaitApi).getCustomMessageContext(r,t))}});var Ae=window.FluidTopicsI18nService,it=window.FluidTopicsCustomI18nService;var L=function(r,t,o,n){var i=arguments.length,c=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")c=Reflect.decorate(r,t,o,n);else for(var d=r.length-1;d>=0;d--)(s=r[d])&&(c=(i<3?s(c):i>3?s(t,o,c):s(t,o))||c);return i>3&&c&&Object.defineProperty(t,o,c),c},R=class extends T.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=()=>fe.get(),this.messageContexts=[],this.cache=new T.CacheRegistry,this.cleanSessionDebouncer=new T.Debouncer}render(){return Jo.html`
118
118
  <slot></slot>
119
119
  `}update(t){var o,n,i,c,s;super.update(t),t.has("baseUrl")&&(S.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),t.has("apiIntegrationIdentifier")&&S.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&S.actions.uiLocale(this.uiLocale),t.has("metadataConfiguration")&&S.actions.metadataConfiguration(this.metadataConfiguration),t.has("noCustom")&&S.actions.noCustom(this.noCustom),t.has("editorMode")&&S.actions.editorMode(this.editorMode),t.has("noCustomComponent")&&S.actions.noCustomComponent(this.noCustomComponent),t.has("session")&&S.actions.session(this.session),t.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(d=>Ae.addContext(d)),t.has("openExternalDocumentInNewTab")&&S.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),t.has("navigatorOnline")&&S.actions.navigatorOnline(this.navigatorOnline),t.has("forcedOffline")&&S.actions.forcedOffline(this.forcedOffline),t.has("localesConfiguration")&&(S.actions.defaultLocales((o=this.localesConfiguration)===null||o===void 0?void 0:o.defaultLocales),S.actions.availableUiLocales((i=(n=this.localesConfiguration)===null||n===void 0?void 0:n.availableUiLocales)!==null&&i!==void 0?i:[]),S.actions.searchInAllLanguagesAllowed((s=(c=this.localesConfiguration)===null||c===void 0?void 0:c.allLanguagesAllowed)!==null&&s!==void 0?s:!1)),setTimeout(()=>this.updateIfNeeded())}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.session==null&&this.updateSession(),this.metadataConfiguration==null&&this.updateMetadataConfiguration()),this.localesConfiguration==null&&this.updateLocalesConfiguration())}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 updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration())}async updateLocalesConfiguration(){this.localesConfiguration=await this.cache.get("localesConfiguration",()=>this.apiProvider().getLocalesConfiguration())}};R.elementDefinitions={};R.styles=qo;L([(0,B.property)()],R.prototype,"baseUrl",void 0);L([(0,B.property)()],R.prototype,"apiIntegrationIdentifier",void 0);L([(0,B.property)()],R.prototype,"uiLocale",void 0);L([(0,T.jsonProperty)(null)],R.prototype,"availableUiLocales",void 0);L([(0,T.jsonProperty)(null)],R.prototype,"metadataConfiguration",void 0);L([(0,B.property)({type:Boolean})],R.prototype,"editorMode",void 0);L([(0,B.property)({type:Boolean})],R.prototype,"noCustom",void 0);L([(0,B.property)({type:Boolean})],R.prototype,"openExternalDocumentInNewTab",void 0);L([(0,B.property)({converter:{fromAttribute(r){return r==="false"?!1:r==="true"||(r??!1)}}})],R.prototype,"noCustomComponent",void 0);L([(0,B.property)({type:Boolean})],R.prototype,"withManualResources",void 0);L([(0,B.property)({type:Boolean})],R.prototype,"navigatorOnline",void 0);L([(0,B.property)({type:Boolean})],R.prototype,"forcedOffline",void 0);L([(0,B.property)({type:Object})],R.prototype,"apiProvider",void 0);L([(0,T.jsonProperty)([])],R.prototype,"messageContexts",void 0);L([(0,T.jsonProperty)(void 0)],R.prototype,"session",void 0);L([(0,B.state)()],R.prototype,"localesConfiguration",void 0);var oi=O(M());function ma(r,t){if(r===t)return!0;if(r&&t&&typeof r=="object"&&typeof t=="object"){if(r.constructor!==t.constructor)return!1;var o,n,i;if(Array.isArray(r)){if(o=r.length,o!=t.length)return!1;for(n=o;n--!==0;)if(!ct(r[n],t[n]))return!1;return!0}if(r instanceof Map&&t instanceof Map){if(r.size!==t.size)return!1;for(n of r.entries())if(!t.has(n[0]))return!1;for(n of r.entries())if(!ct(n[1],t.get(n[0])))return!1;return!0}if(r instanceof Set&&t instanceof Set){if(r.size!==t.size)return!1;for(n of r.entries())if(!t.has(n[0]))return!1;return!0}if(r.constructor===RegExp)return r.source===t.source&&r.flags===t.flags;if(r.valueOf!==Object.prototype.valueOf)return r.valueOf()===t.valueOf();let c=s=>Object.keys(s).filter(d=>s[d]!=null);if(i=c(r),o=i.length,o!==c(t).length)return!1;for(n=o;n--!==0;)if(!Object.prototype.hasOwnProperty.call(t,i[n]))return!1;for(n=o;n--!==0;){let s=i[n];if(!ct(r[s],t[s]))return!1}return!0}return r!==r&&t!==t||r==null&&t==null}function ct(r,t){try{return ma(r,t)}catch{return!1}}function lt(r,t){return!ct(r,t)}var ba=O(M(),1);var st=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 He=O(M(),1);var Xo=O(M(),1);function Qo(r,t){let o=()=>JSON.parse(JSON.stringify(r));return(0,Xo.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:lt,...t??{}})}var dt=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,c=(o=this.resolvePromise)!==null&&o!==void 0?o:()=>null;this.clearPromise();for(let s of n)try{await s()}catch(d){i(d);return}c(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var tn=O(U(),1);var ft=globalThis,xa=ft.ShadowRoot&&(ft.ShadyCSS===void 0||ft.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,gf=Symbol();var en=(r,t)=>{if(xa)r.adoptedStyleSheets=t.map(o=>o instanceof CSSStyleSheet?o:o.styleSheet);else for(let o of t){let n=document.createElement("style"),i=ft.litNonce;i!==void 0&&n.setAttribute("nonce",i),n.textContent=o.cssText,r.appendChild(n)}};var ut=class extends tn.LitElement{createRenderRoot(){let t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach(([i,c])=>t.registry.define(i,c)));let o={...t.shadowRootOptions,customElements:t.registry},n=this.renderOptions.creationScope=this.attachShadow(o);return en(n,t.elementStyles),n}};var pt=function(r,t,o,n){var i=arguments.length,c=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")c=Reflect.decorate(r,t,o,n);else for(var d=r.length-1;d>=0;d--)(s=r[d])&&(c=(i<3?s(c):i>3?s(t,o,c):s(t,o))||c);return i>3&&c&&Object.defineProperty(t,o,c),c},an,rn=Symbol("constructorPrototype"),on=Symbol("constructorName"),cn=Symbol("exportpartsDebouncer"),nn=Symbol("dynamicDependenciesLoaded"),re=class extends ut{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[an]=new dt(5),this[on]=this.constructor.name,this[rn]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[on]&&Object.setPrototypeOf(this,this[rn])}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[nn]||(t[nn]=!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(c=>c.remove()),this.useAdoptedStyleSheets){if(t.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((i=this.customStylesheet)!==null&&i!==void 0?i:"")}catch(c){console.error(c,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let c=document.createElement("style");c.classList.add("ft-lit-element--custom-stylesheet"),c.innerHTML=this.customStylesheet,this.shadowRoot.append(c)}}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[cn].run(()=>{var i,c;!((i=this.exportpartsPrefix)===null||i===void 0)&&i.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((c=this.exportpartsPrefixes)===null||c===void 0?void 0:c.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})}setExportpartsAttribute(t){var o,n,i,c,s,d;let u=y=>y!=null&&y.trim().length>0,f=t.filter(u).map(y=>y.trim());if(f.length===0){this.removeAttribute("exportparts");return}let p=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=(c=(i=y.getAttribute("part"))===null||i===void 0?void 0:i.split(" "))!==null&&c!==void 0?c:[],g=(d=(s=y.getAttribute("exportparts"))===null||s===void 0?void 0:s.split(",").map(x=>x.split(":")[1]))!==null&&d!==void 0?d:[];new Array(...b,...g).filter(u).map(x=>x.trim()).forEach(x=>p.add(x))}if(p.size===0){this.removeAttribute("exportparts");return}let h=[...p.values()].flatMap(y=>f.map(b=>`${y}:${b}--${y}`));this.setAttribute("exportparts",[...this.part,...h].join(", "))}};an=cn;pt([(0,He.property)()],re.prototype,"exportpartsPrefix",void 0);pt([Qo([])],re.prototype,"exportpartsPrefixes",void 0);pt([(0,He.property)()],re.prototype,"customStylesheet",void 0);pt([(0,He.state)()],re.prototype,"useAdoptedStyleSheets",void 0);function Ge(r){var t;return(t=r?.isFtReduxStore)!==null&&t!==void 0?t:!1}var ln,sn,dn,$e=Symbol("internalReduxEventsUnsubscribers"),oe=Symbol("internalStoresUnsubscribers"),ue=Symbol("internalStores"),je=class extends re{constructor(){super(...arguments),this[ln]=new Map,this[sn]=new Map,this[dn]=new Map}get reduxConstructor(){return this.constructor}update(t){super.update(t),[...this.reduxConstructor.reduxReactiveProperties].some(o=>t.has(o))&&this.updateFromStores()}getUnnamedStore(){if(this[ue].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[ue].values()][0]}getStore(t){return t==null?this.getUnnamedStore():this[ue].get(t)}addStore(t,o){var n;o=(n=o??(Ge(t)?t.name:void 0))!==null&&n!==void 0?n:"default-store",this.unsubscribeFromStore(o),this[ue].set(o,t),this.subscribeToStore(o,t),this.updateFromStores()}removeStore(t){let o=typeof t=="string"?t:t.name;this.unsubscribeFromStore(o),this[ue].delete(o)}setupStores(){this.unsubscribeFromStores(),this[ue].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[oe].has(t.store):this[oe].size>0)&&(this[o]=t.selector(i.getState(),this))}})}subscribeToStore(t,o){var n;this[oe].set(t,o.subscribe(()=>this.updateFromStores())),this[$e].set(t,[]),Ge(o)&&o.eventBus&&((n=this.reduxConstructor.reduxEventListeners)===null||n===void 0||n.forEach((i,c)=>{if(typeof this[c]=="function"&&(!i.store||o.name===i.store)){let s=d=>this[c](d);o.addEventListener(i.eventName,s),this[$e].get(t).push(()=>o.removeEventListener(i.eventName,s))}})),this.onStoreAvailable(t)}unsubscribeFromStores(){this[oe].forEach((t,o)=>this.unsubscribeFromStore(o))}unsubscribeFromStore(t){var o;this[oe].has(t)&&this[oe].get(t)(),this[oe].delete(t),(o=this[$e].get(t))===null||o===void 0||o.forEach(n=>n()),this[$e].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}};ln=oe,sn=ue,dn=$e;je.reduxProperties=new Map;je.reduxReactiveProperties=new Set;je.reduxEventListeners=new Map;function _(r){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,c;throw Error("[Immer] minified error nr: "+r+(o.length?" "+o.map(function(s){return"'"+s+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function J(r){return!!r&&!!r[E]}function H(r){var t;return!!r&&(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)===Ea}(r)||Array.isArray(r)||!!r[mn]||!!(!((t=r.constructor)===null||t===void 0)&&t[mn])||cr(r)||lr(r))}function pe(r,t,o){o===void 0&&(o=!1),Pe(r)===0?(o?Object.keys:ke)(r).forEach(function(n){o&&typeof n=="symbol"||t(n,r[n],r)}):r.forEach(function(n,i){return t(i,n,r)})}function Pe(r){var t=r[E];return t?t.i>3?t.i-4:t.i:Array.isArray(r)?1:cr(r)?2:lr(r)?3:0}function Re(r,t){return Pe(r)===2?r.has(t):Object.prototype.hasOwnProperty.call(r,t)}function va(r,t){return Pe(r)===2?r.get(t):r[t]}function bn(r,t,o){var n=Pe(r);n===2?r.set(t,o):n===3?r.add(o):r[t]=o}function xn(r,t){return r===t?r!==0||1/r==1/t:r!=r&&t!=t}function cr(r){return Na&&r instanceof Map}function lr(r){return Ia&&r instanceof Set}function ne(r){return r.o||r.t}function sr(r){if(Array.isArray(r))return Array.prototype.slice.call(r);var t=On(r);delete t[E];for(var o=ke(t),n=0;n<o.length;n++){var i=o[n],c=t[i];c.writable===!1&&(c.writable=!0,c.configurable=!0),(c.get||c.set)&&(t[i]={configurable:!0,writable:!0,enumerable:c.enumerable,value:r[i]})}return Object.create(Object.getPrototypeOf(r),t)}function dr(r,t){return t===void 0&&(t=!1),fr(r)||J(r)||!H(r)||(Pe(r)>1&&(r.set=r.add=r.clear=r.delete=Sa),Object.freeze(r),t&&pe(r,function(o,n){return dr(n,!0)},!0)),r}function Sa(){_(2)}function fr(r){return r==null||typeof r!="object"||Object.isFrozen(r)}function j(r){var t=ir[r];return t||_(18,r),t}function Oa(r,t){ir[r]||(ir[r]=t)}function or(){return Ke}function Qt(r,t){t&&(j("Patches"),r.u=[],r.s=[],r.v=t)}function ht(r){nr(r),r.p.forEach(Ca),r.p=null}function nr(r){r===Ke&&(Ke=r.l)}function fn(r){return Ke={p:[],l:Ke,h:r,m:!0,_:0}}function Ca(r){var t=r[E];t.i===0||t.i===1?t.j():t.g=!0}function er(r,t){t._=t.p.length;var o=t.p[0],n=r!==void 0&&r!==o;return t.h.O||j("ES5").S(t,r,n),n?(o[E].P&&(ht(t),_(4)),H(r)&&(r=yt(t,r),t.l||gt(t,r)),t.u&&j("Patches").M(o[E].t,r,t.u,t.s)):r=yt(t,o,[]),ht(t),t.u&&t.v(t.u,t.s),r!==Sn?r:void 0}function yt(r,t,o){if(fr(t))return t;var n=t[E];if(!n)return pe(t,function(d,u){return un(r,n,t,d,u,o)},!0),t;if(n.A!==r)return t;if(!n.P)return gt(r,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var i=n.i===4||n.i===5?n.o=sr(n.k):n.o,c=i,s=!1;n.i===3&&(c=new Set(i),i.clear(),s=!0),pe(c,function(d,u){return un(r,n,i,d,u,o,s)}),gt(r,i,!1),o&&r.u&&j("Patches").N(n,o,r.u,r.s)}return n.o}function un(r,t,o,n,i,c,s){if(J(i)){var d=yt(r,i,c&&t&&t.i!==3&&!Re(t.R,n)?c.concat(n):void 0);if(bn(o,n,d),!J(d))return;r.m=!1}else s&&o.add(i);if(H(i)&&!fr(i)){if(!r.h.D&&r._<1)return;yt(r,i),t&&t.A.l||gt(r,i)}}function gt(r,t,o){o===void 0&&(o=!1),!r.l&&r.h.D&&r.m&&dr(t,o)}function tr(r,t){var o=r[E];return(o?ne(o):r)[t]}function pn(r,t){if(t in r)for(var o=Object.getPrototypeOf(r);o;){var n=Object.getOwnPropertyDescriptor(o,t);if(n)return n;o=Object.getPrototypeOf(o)}}function ae(r){r.P||(r.P=!0,r.l&&ae(r.l))}function rr(r){r.o||(r.o=sr(r.t))}function ar(r,t,o){var n=cr(t)?j("MapSet").F(t,o):lr(t)?j("MapSet").T(t,o):r.O?function(i,c){var s=Array.isArray(i),d={i:s?1:0,A:c?c.A:or(),P:!1,I:!1,R:{},l:c,t:i,k:null,o:null,j:null,C:!1},u=d,f=Ve;s&&(u=[d],f=Ze);var p=Proxy.revocable(u,f),h=p.revoke,y=p.proxy;return d.k=y,d.j=h,y}(t,o):j("ES5").J(t,o);return(o?o.A:or()).p.push(n),n}function wa(r){return J(r)||_(22,r),function t(o){if(!H(o))return o;var n,i=o[E],c=Pe(o);if(i){if(!i.P&&(i.i<4||!j("ES5").K(i)))return i.t;i.I=!0,n=hn(o,c),i.I=!1}else n=hn(o,c);return pe(n,function(s,d){i&&va(i.t,s)===d||bn(n,s,t(d))}),c===3?new Set(n):n}(r)}function hn(r,t){switch(t){case 2:return new Map(r);case 3:return Array.from(r)}return sr(r)}function vn(){function r(s,d){var u=c[s];return u?u.enumerable=d:c[s]=u={configurable:!0,enumerable:d,get:function(){var f=this[E];return Ve.get(f,s)},set:function(f){var p=this[E];Ve.set(p,s,f)}},u}function t(s){for(var d=s.length-1;d>=0;d--){var u=s[d][E];if(!u.P)switch(u.i){case 5:n(u)&&ae(u);break;case 4:o(u)&&ae(u)}}}function o(s){for(var d=s.t,u=s.k,f=ke(u),p=f.length-1;p>=0;p--){var h=f[p];if(h!==E){var y=d[h];if(y===void 0&&!Re(d,h))return!0;var b=u[h],g=b&&b[E];if(g?g.t!==y:!xn(b,y))return!0}}var x=!!d[E];return f.length!==ke(d).length+(x?0:1)}function n(s){var d=s.k;if(d.length!==s.t.length)return!0;var u=Object.getOwnPropertyDescriptor(d,d.length-1);if(u&&!u.get)return!0;for(var f=0;f<d.length;f++)if(!d.hasOwnProperty(f))return!0;return!1}function i(s){s.g&&_(3,JSON.stringify(ne(s)))}var c={};Oa("ES5",{J:function(s,d){var u=Array.isArray(s),f=function(h,y){if(h){for(var b=Array(y.length),g=0;g<y.length;g++)Object.defineProperty(b,""+g,r(g,!0));return b}var x=On(y);delete x[E];for(var N=ke(x),C=0;C<N.length;C++){var w=N[C];x[w]=r(w,h||!!x[w].enumerable)}return Object.create(Object.getPrototypeOf(y),x)}(u,s),p={i:u?5:4,A:d?d.A:or(),P:!1,I:!1,R:{},l:d,t:s,k:f,o:null,g:!1,C:!1};return Object.defineProperty(f,E,{value:p,writable:!0}),f},S:function(s,d,u){u?J(d)&&d[E].A===s&&t(s.p):(s.u&&function f(p){if(p&&typeof p=="object"){var h=p[E];if(h){var y=h.t,b=h.k,g=h.R,x=h.i;if(x===4)pe(b,function(I){I!==E&&(y[I]!==void 0||Re(y,I)?g[I]||f(b[I]):(g[I]=!0,ae(h)))}),pe(y,function(I){b[I]!==void 0||Re(b,I)||(g[I]=!1,ae(h))});else if(x===5){if(n(h)&&(ae(h),g.length=!0),b.length<y.length)for(var N=b.length;N<y.length;N++)g[N]=!1;else for(var C=y.length;C<b.length;C++)g[C]=!0;for(var w=Math.min(b.length,y.length),A=0;A<w;A++)b.hasOwnProperty(A)||(g[A]=!0),g[A]===void 0&&f(b[A])}}}}(s.p[0]),t(s.p))},K:function(s){return s.i===4?o(s):n(s)}})}var yn,Ke,ur=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",Na=typeof Map<"u",Ia=typeof Set<"u",gn=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Sn=ur?Symbol.for("immer-nothing"):((yn={})["immer-nothing"]=!0,yn),mn=ur?Symbol.for("immer-draftable"):"__$immer_draftable",E=ur?Symbol.for("immer-state"):"__$immer_state";var Ea=""+Object.prototype.constructor,ke=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(r){return Object.getOwnPropertyNames(r).concat(Object.getOwnPropertySymbols(r))}:Object.getOwnPropertyNames,On=Object.getOwnPropertyDescriptors||function(r){var t={};return ke(r).forEach(function(o){t[o]=Object.getOwnPropertyDescriptor(r,o)}),t},ir={},Ve={get:function(r,t){if(t===E)return r;var o=ne(r);if(!Re(o,t))return function(i,c,s){var d,u=pn(c,s);return u?"value"in u?u.value:(d=u.get)===null||d===void 0?void 0:d.call(i.k):void 0}(r,o,t);var n=o[t];return r.I||!H(n)?n:n===tr(r.t,t)?(rr(r),r.o[t]=ar(r.A.h,n,r)):n},has:function(r,t){return t in ne(r)},ownKeys:function(r){return Reflect.ownKeys(ne(r))},set:function(r,t,o){var n=pn(ne(r),t);if(n?.set)return n.set.call(r.k,o),!0;if(!r.P){var i=tr(ne(r),t),c=i?.[E];if(c&&c.t===o)return r.o[t]=o,r.R[t]=!1,!0;if(xn(o,i)&&(o!==void 0||Re(r.t,t)))return!0;rr(r),ae(r)}return r.o[t]===o&&(o!==void 0||t in r.o)||Number.isNaN(o)&&Number.isNaN(r.o[t])||(r.o[t]=o,r.R[t]=!0),!0},deleteProperty:function(r,t){return tr(r.t,t)!==void 0||t in r.t?(r.R[t]=!1,rr(r),ae(r)):delete r.R[t],r.o&&delete r.o[t],!0},getOwnPropertyDescriptor:function(r,t){var o=ne(r),n=Reflect.getOwnPropertyDescriptor(o,t);return n&&{writable:!0,configurable:r.i!==1||t!=="length",enumerable:n.enumerable,value:o[t]}},defineProperty:function(){_(11)},getPrototypeOf:function(r){return Object.getPrototypeOf(r.t)},setPrototypeOf:function(){_(12)}},Ze={};pe(Ve,function(r,t){Ze[r]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),Ze.deleteProperty=function(r,t){return Ze.set.call(this,r,t,void 0)},Ze.set=function(r,t,o){return Ve.set.call(this,r[0],t,o,r[0])};var Aa=function(){function r(o){var n=this;this.O=gn,this.D=!0,this.produce=function(i,c,s){if(typeof i=="function"&&typeof c!="function"){var d=c;c=i;var u=n;return function(x){var N=this;x===void 0&&(x=d);for(var C=arguments.length,w=Array(C>1?C-1:0),A=1;A<C;A++)w[A-1]=arguments[A];return u.produce(x,function(I){var X;return(X=c).call.apply(X,[N,I].concat(w))})}}var f;if(typeof c!="function"&&_(6),s!==void 0&&typeof s!="function"&&_(7),H(i)){var p=fn(n),h=ar(n,i,void 0),y=!0;try{f=c(h),y=!1}finally{y?ht(p):nr(p)}return typeof Promise<"u"&&f instanceof Promise?f.then(function(x){return Qt(p,s),er(x,p)},function(x){throw ht(p),x}):(Qt(p,s),er(f,p))}if(!i||typeof i!="object"){if((f=c(i))===void 0&&(f=i),f===Sn&&(f=void 0),n.D&&dr(f,!0),s){var b=[],g=[];j("Patches").M(i,f,b,g),s(b,g)}return f}_(21,i)},this.produceWithPatches=function(i,c){if(typeof i=="function")return function(f){for(var p=arguments.length,h=Array(p>1?p-1:0),y=1;y<p;y++)h[y-1]=arguments[y];return n.produceWithPatches(f,function(b){return i.apply(void 0,[b].concat(h))})};var s,d,u=n.produce(i,c,function(f,p){s=f,d=p});return typeof Promise<"u"&&u instanceof Promise?u.then(function(f){return[f,s,d]}):[u,s,d]},typeof o?.useProxies=="boolean"&&this.setUseProxies(o.useProxies),typeof o?.autoFreeze=="boolean"&&this.setAutoFreeze(o.autoFreeze)}var t=r.prototype;return t.createDraft=function(o){H(o)||_(8),J(o)&&(o=wa(o));var n=fn(this),i=ar(this,o,void 0);return i[E].C=!0,nr(n),i},t.finishDraft=function(o,n){var i=o&&o[E],c=i.A;return Qt(c,n),er(void 0,c)},t.setAutoFreeze=function(o){this.D=o},t.setUseProxies=function(o){o&&!gn&&_(20),this.O=o},t.applyPatches=function(o,n){var i;for(i=n.length-1;i>=0;i--){var c=n[i];if(c.path.length===0&&c.op==="replace"){o=c.value;break}}i>-1&&(n=n.slice(i+1));var s=j("Patches").$;return J(o)?s(o,n):this.produce(o,function(d){return s(d,n)})},r}(),F=new Aa,Ra=F.produce,Af=F.produceWithPatches.bind(F),Rf=F.setAutoFreeze.bind(F),kf=F.setUseProxies.bind(F),Pf=F.applyPatches.bind(F),Lf=F.createDraft.bind(F),Wf=F.finishDraft.bind(F),mt=Ra;function he(r){"@babel/helpers - typeof";return he=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},he(r)}function Cn(r,t){if(he(r)!="object"||!r)return r;var o=r[Symbol.toPrimitive];if(o!==void 0){var n=o.call(r,t||"default");if(he(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(r)}function wn(r){var t=Cn(r,"string");return he(t)=="symbol"?t:t+""}function Nn(r,t,o){return(t=wn(t))in r?Object.defineProperty(r,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[t]=o,r}function In(r,t){var o=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable})),o.push.apply(o,n)}return o}function pr(r){for(var t=1;t<arguments.length;t++){var o=arguments[t]!=null?arguments[t]:{};t%2?In(Object(o),!0).forEach(function(n){Nn(r,n,o[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):In(Object(o)).forEach(function(n){Object.defineProperty(r,n,Object.getOwnPropertyDescriptor(o,n))})}return r}function W(r){return"Minified Redux error #"+r+"; visit https://redux.js.org/Errors?code="+r+" for the full message or use the non-minified dev environment for full errors. "}var En=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),hr=function(){return Math.random().toString(36).substring(7).split("").join(".")},bt={INIT:"@@redux/INIT"+hr(),REPLACE:"@@redux/REPLACE"+hr(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+hr()}};function ka(r){if(typeof r!="object"||r===null)return!1;for(var t=r;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(r)===t}function yr(r,t,o){var n;if(typeof t=="function"&&typeof o=="function"||typeof o=="function"&&typeof arguments[3]=="function")throw new Error(W(0));if(typeof t=="function"&&typeof o>"u"&&(o=t,t=void 0),typeof o<"u"){if(typeof o!="function")throw new Error(W(1));return o(yr)(r,t)}if(typeof r!="function")throw new Error(W(2));var i=r,c=t,s=[],d=s,u=!1;function f(){d===s&&(d=s.slice())}function p(){if(u)throw new Error(W(3));return c}function h(x){if(typeof x!="function")throw new Error(W(4));if(u)throw new Error(W(5));var N=!0;return f(),d.push(x),function(){if(N){if(u)throw new Error(W(6));N=!1,f();var w=d.indexOf(x);d.splice(w,1),s=null}}}function y(x){if(!ka(x))throw new Error(W(7));if(typeof x.type>"u")throw new Error(W(8));if(u)throw new Error(W(9));try{u=!0,c=i(c,x)}finally{u=!1}for(var N=s=d,C=0;C<N.length;C++){var w=N[C];w()}return x}function b(x){if(typeof x!="function")throw new Error(W(10));i=x,y({type:bt.REPLACE})}function g(){var x,N=h;return x={subscribe:function(w){if(typeof w!="object"||w===null)throw new Error(W(11));function A(){w.next&&w.next(p())}A();var I=N(A);return{unsubscribe:I}}},x[En]=function(){return this},x}return y({type:bt.INIT}),n={dispatch:y,subscribe:h,getState:p,replaceReducer:b},n[En]=g,n}function Pa(r){Object.keys(r).forEach(function(t){var o=r[t],n=o(void 0,{type:bt.INIT});if(typeof n>"u")throw new Error(W(12));if(typeof o(void 0,{type:bt.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(W(13))})}function An(r){for(var t=Object.keys(r),o={},n=0;n<t.length;n++){var i=t[n];typeof r[i]=="function"&&(o[i]=r[i])}var c=Object.keys(o),s,d;try{Pa(o)}catch(u){d=u}return function(f,p){if(f===void 0&&(f={}),d)throw d;if(0)var h;for(var y=!1,b={},g=0;g<c.length;g++){var x=c[g],N=o[x],C=f[x],w=N(C,p);if(typeof w>"u"){var A=p&&p.type;throw new Error(W(14))}b[x]=w,y=y||w!==C}return y=y||c.length!==Object.keys(f).length,y?b:f}}function Le(){for(var r=arguments.length,t=new Array(r),o=0;o<r;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 Rn(){for(var r=arguments.length,t=new Array(r),o=0;o<r;o++)t[o]=arguments[o];return function(n){return function(){var i=n.apply(void 0,arguments),c=function(){throw new Error(W(15))},s={getState:i.getState,dispatch:function(){return c.apply(void 0,arguments)}},d=t.map(function(u){return u(s)});return c=Le.apply(void 0,d)(i.dispatch),pr(pr({},i),{},{dispatch:c})}}}function kn(r){var t=function(n){var i=n.dispatch,c=n.getState;return function(s){return function(d){return typeof d=="function"?d(i,c,r):s(d)}}};return t}var Pn=kn();Pn.withExtraArgument=kn;var gr=Pn;var zn=function(){var r=function(t,o){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var c in i)Object.prototype.hasOwnProperty.call(i,c)&&(n[c]=i[c])},r(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");r(t,o);function n(){this.constructor=t}t.prototype=o===null?Object.create(o):(n.prototype=o.prototype,new n)}}(),La=function(r,t){var o={label:0,sent:function(){if(c[0]&1)throw c[1];return c[1]},trys:[],ops:[]},n,i,c,s;return s={next:d(0),throw:d(1),return:d(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function d(f){return function(p){return u([f,p])}}function u(f){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,i&&(c=f[0]&2?i.return:f[0]?i.throw||((c=i.return)&&c.call(i),0):i.next)&&!(c=c.call(i,f[1])).done)return c;switch(i=0,c&&(f=[f[0]&2,c.value]),f[0]){case 0:case 1:c=f;break;case 4:return o.label++,{value:f[1],done:!1};case 5:o.label++,i=f[1],f=[0];continue;case 7:f=o.ops.pop(),o.trys.pop();continue;default:if(c=o.trys,!(c=c.length>0&&c[c.length-1])&&(f[0]===6||f[0]===2)){o=0;continue}if(f[0]===3&&(!c||f[1]>c[0]&&f[1]<c[3])){o.label=f[1];break}if(f[0]===6&&o.label<c[1]){o.label=c[1],c=f;break}if(c&&o.label<c[2]){o.label=c[2],o.ops.push(f);break}c[2]&&o.ops.pop(),o.trys.pop();continue}f=t.call(r,o)}catch(p){f=[6,p],i=0}finally{n=c=0}if(f[0]&5)throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}},We=function(r,t){for(var o=0,n=t.length,i=r.length;o<n;o++,i++)r[i]=t[o];return r},Wa=Object.defineProperty,Ba=Object.defineProperties,Fa=Object.getOwnPropertyDescriptors,Ln=Object.getOwnPropertySymbols,za=Object.prototype.hasOwnProperty,_a=Object.prototype.propertyIsEnumerable,Wn=function(r,t,o){return t in r?Wa(r,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):r[t]=o},ie=function(r,t){for(var o in t||(t={}))za.call(t,o)&&Wn(r,o,t[o]);if(Ln)for(var n=0,i=Ln(t);n<i.length;n++){var o=i[n];_a.call(t,o)&&Wn(r,o,t[o])}return r},mr=function(r,t){return Ba(r,Fa(t))},Da=function(r,t,o){return new Promise(function(n,i){var c=function(u){try{d(o.next(u))}catch(f){i(f)}},s=function(u){try{d(o.throw(u))}catch(f){i(f)}},d=function(u){return u.done?n(u.value):Promise.resolve(u.value).then(c,s)};d((o=o.apply(r,t)).next())})};var Ua=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Le:Le.apply(null,arguments)},Jf=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(r){return r}};function Ma(r){if(typeof r!="object"||r===null)return!1;var t=Object.getPrototypeOf(r);if(t===null)return!0;for(var o=t;Object.getPrototypeOf(o)!==null;)o=Object.getPrototypeOf(o);return t===o}var Ta=function(r){zn(t,r);function t(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var i=r.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 r.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,We([void 0],o[0].concat(this)))):new(t.bind.apply(t,We([void 0],o.concat(this))))},t}(Array),Ha=function(r){zn(t,r);function t(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var i=r.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 r.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,We([void 0],o[0].concat(this)))):new(t.bind.apply(t,We([void 0],o.concat(this))))},t}(Array);function vr(r){return H(r)?mt(r,function(){}):r}function Ga(r){return typeof r=="boolean"}function $a(){return function(t){return ja(t)}}function ja(r){r===void 0&&(r={});var t=r.thunk,o=t===void 0?!0:t,n=r.immutableCheck,i=n===void 0?!0:n,c=r.serializableCheck,s=c===void 0?!0:c,d=new Ta;if(o&&(Ga(o)?d.push(gr):d.push(gr.withExtraArgument(o.extraArgument))),0){if(i)var u;if(s)var f}return d}var br=!0;function _n(r){var t=$a(),o=r||{},n=o.reducer,i=n===void 0?void 0:n,c=o.middleware,s=c===void 0?t():c,d=o.devTools,u=d===void 0?!0:d,f=o.preloadedState,p=f===void 0?void 0:f,h=o.enhancers,y=h===void 0?void 0:h,b;if(typeof i=="function")b=i;else if(Ma(i))b=An(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),!br&&!Array.isArray(g)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!br&&g.some(function(I){return typeof I!="function"}))throw new Error("each middleware provided to configureStore must be a function");var x=Rn.apply(void 0,g),N=Le;u&&(N=Ua(ie({trace:!br},typeof u=="object"&&u)));var C=new Ha(x),w=C;Array.isArray(y)?w=We([x],y):typeof y=="function"&&(w=y(C));var A=N.apply(void 0,w);return yr(b,p,A)}function ce(r,t){function o(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];if(t){var c=t.apply(void 0,n);if(!c)throw new Error("prepareAction did not return an object");return ie(ie({type:r,payload:c.payload},"meta"in c&&{meta:c.meta}),"error"in c&&{error:c.error})}return{type:r,payload:n[0]}}return o.toString=function(){return""+r},o.type=r,o.match=function(n){return n.type===r},o}function Dn(r){var t={},o=[],n,i={addCase:function(c,s){var d=typeof c=="string"?c:c.type;if(d in t)throw new Error("addCase cannot be called with two reducers for the same action type");return t[d]=s,i},addMatcher:function(c,s){return o.push({matcher:c,reducer:s}),i},addDefaultCase:function(c){return n=c,i}};return r(i),[t,o,n]}function Za(r){return typeof r=="function"}function Ka(r,t,o,n){o===void 0&&(o=[]);var i=typeof t=="function"?Dn(t):[t,o,n],c=i[0],s=i[1],d=i[2],u;if(Za(r))u=function(){return vr(r())};else{var f=vr(r);u=function(){return f}}function p(h,y){h===void 0&&(h=u());var b=We([c[y.type]],s.filter(function(g){var x=g.matcher;return x(y)}).map(function(g){var x=g.reducer;return x}));return b.filter(function(g){return!!g}).length===0&&(b=[d]),b.reduce(function(g,x){if(x)if(J(g)){var N=g,C=x(N,y);return C===void 0?g:C}else{if(H(g))return mt(g,function(w){return x(w,y)});var C=x(g,y);if(C===void 0){if(g===null)return g;throw Error("A case reducer on a non-draftable value must not return undefined")}return C}return g},h)}return p.getInitialState=u,p}function Va(r,t){return r+"/"+t}function Un(r){var t=r.name;if(!t)throw new Error("`name` is a required option for createSlice");typeof process<"u";var o=typeof r.initialState=="function"?r.initialState:vr(r.initialState),n=r.reducers||{},i=Object.keys(n),c={},s={},d={};i.forEach(function(p){var h=n[p],y=Va(t,p),b,g;"reducer"in h?(b=h.reducer,g=h.prepare):b=h,c[p]=b,s[y]=b,d[p]=g?ce(y,g):ce(y)});function u(){var p=typeof r.extraReducers=="function"?Dn(r.extraReducers):[r.extraReducers],h=p[0],y=h===void 0?{}:h,b=p[1],g=b===void 0?[]:b,x=p[2],N=x===void 0?void 0:x,C=ie(ie({},y),s);return Ka(o,function(w){for(var A in C)w.addCase(A,C[A]);for(var I=0,X=g;I<X.length;I++){var K=X[I];w.addMatcher(K.matcher,K.reducer)}N&&w.addDefaultCase(N)})}var f;return{name:t,reducer:function(p,h){return f||(f=u()),f(p,h)},actions:d,caseReducers:c,getInitialState:function(){return f||(f=u()),f.getInitialState()}}}var qa="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Ya=function(r){r===void 0&&(r=21);for(var t="",o=r;o--;)t+=qa[Math.random()*64|0];return t},Ja=["name","message","stack","code"],xr=function(){function r(t,o){this.payload=t,this.meta=o}return r}(),Bn=function(){function r(t,o){this.payload=t,this.meta=o}return r}(),Xa=function(r){if(typeof r=="object"&&r!==null){for(var t={},o=0,n=Ja;o<n.length;o++){var i=n[o];typeof r[i]=="string"&&(t[i]=r[i])}return t}return{message:String(r)}},tu=function(){function r(t,o,n){var i=ce(t+"/fulfilled",function(p,h,y,b){return{payload:p,meta:mr(ie({},b||{}),{arg:y,requestId:h,requestStatus:"fulfilled"})}}),c=ce(t+"/pending",function(p,h,y){return{payload:void 0,meta:mr(ie({},y||{}),{arg:h,requestId:p,requestStatus:"pending"})}}),s=ce(t+"/rejected",function(p,h,y,b,g){return{payload:b,error:(n&&n.serializeError||Xa)(p||"Rejected"),meta:mr(ie({},g||{}),{arg:y,requestId:h,rejectedWithValue:!!b,requestStatus:"rejected",aborted:p?.name==="AbortError",condition:p?.name==="ConditionError"})}}),d=!1,u=typeof AbortController<"u"?AbortController:function(){function p(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return p.prototype.abort=function(){},p}();function f(p){return function(h,y,b){var g=n?.idGenerator?n.idGenerator(p):Ya(),x=new u,N,C=!1;function w(I){N=I,x.abort()}var A=function(){return Da(this,null,function(){var I,X,K,Be,Pr,Fe,Lr;return La(this,function(ye){switch(ye.label){case 0:return ye.trys.push([0,4,,5]),Be=(I=n?.condition)==null?void 0:I.call(n,p,{getState:y,extra:b}),ei(Be)?[4,Be]:[3,2];case 1:Be=ye.sent(),ye.label=2;case 2:if(Be===!1||x.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return C=!0,Pr=new Promise(function(D,ze){return x.signal.addEventListener("abort",function(){return ze({name:"AbortError",message:N||"Aborted"})})}),h(c(g,p,(X=n?.getPendingMeta)==null?void 0:X.call(n,{requestId:g,arg:p},{getState:y,extra:b}))),[4,Promise.race([Pr,Promise.resolve(o(p,{dispatch:h,getState:y,extra:b,requestId:g,signal:x.signal,abort:w,rejectWithValue:function(D,ze){return new xr(D,ze)},fulfillWithValue:function(D,ze){return new Bn(D,ze)}})).then(function(D){if(D instanceof xr)throw D;return D instanceof Bn?i(D.payload,g,p,D.meta):i(D,g,p)})])];case 3:return K=ye.sent(),[3,5];case 4:return Fe=ye.sent(),K=Fe instanceof xr?s(null,g,p,Fe.payload,Fe.meta):s(Fe,g,p),[3,5];case 5:return Lr=n&&!n.dispatchConditionRejection&&s.match(K)&&K.meta.condition,Lr||h(K),[2,K]}})})}();return Object.assign(A,{abort:w,requestId:g,arg:p,unwrap:function(){return A.then(Qa)}})}}return Object.assign(f,{pending:c,rejected:s,fulfilled:i,typePrefix:t})}return r.withTypes=function(){return r},r}();function Qa(r){if(r.meta&&r.meta.rejectedWithValue)throw r.payload;if(r.error)throw r.error;return r.payload}function ei(r){return r!==null&&typeof r=="object"&&typeof r.then=="function"}var Mn="listener",Tn="completed",Hn="cancelled",ru="task-"+Hn,ou="task-"+Tn,nu=Mn+"-"+Hn,au=Mn+"-"+Tn;var Sr="listenerMiddleware";var iu=ce(Sr+"/add"),cu=ce(Sr+"/removeAll"),lu=ce(Sr+"/remove");var Fn,su=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(r){return(Fn||(Fn=Promise.resolve())).then(r).catch(function(t){return setTimeout(function(){throw t},0)})},ti=function(r){return function(t){setTimeout(t,r)}},du=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:ti(10);vn();function ri(r,t){return class extends r{constructor(){super(...arguments),this.eventBus=t??document.createElement("span")}addEventListener(o,n,i){this.eventBus.addEventListener(o,n,i)}dispatchEvent(o){return this.eventBus.dispatchEvent(o)}removeEventListener(o,n,i){this.eventBus.removeEventListener(o,n,i)}}}var xt=class extends ri(Object){};window.ftReduxStores||(window.ftReduxStores={});var Gn=class r extends xt{static get(t){var o;let n=typeof t=="string"?t:t.name,i=typeof t=="string"?void 0:t,c=window.ftReduxStores[n];if(Ge(c))return c;if(i==null)return;let s=Un({...i,reducers:(o=i.reducers)!==null&&o!==void 0?o:{}}),d=_n({reducer:(u,f)=>f.type==="CLEAR_FT_REDUX_STORE"?s.getInitialState():typeof f.type=="string"&&f.type.startsWith("DEFAULT_VALUE_SETTER__")?{...u,...f.overwrites}:s.reducer(u,f)});return window.ftReduxStores[i.name]=new r(s,d,i.eventBus)}constructor(t,o,n){super(),this.reduxSlice=t,this.reduxStore=o,this.isFtReduxStore=!0,this.commands=new st;let i=c=>c!=null?JSON.parse(JSON.stringify(c)):c;this.actions=new Proxy(this.reduxSlice.actions,{get:(c,s,d)=>{let u=s,f=c[u];return f?(...p)=>{let h=f(...p.map(i));return this.reduxStore.dispatch(h),h}:p=>{this.setState({[u]:i(p)})}}}),this.eventBus=n??this.eventBus}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 Ct=O(k());var vt=class extends te{async listMySearches(){let t=S.getState().session;return t?.sessionAuthenticated?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(t.profile.userId),5*60*1e3):[]}};var St=class extends te{async listMyBookmarks(){let t=S.getState().session;return t?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(t.profile.userId),5*60*1e3):[]}};var ni="ft-user-assets",Ot=Ct.FtReduxStore.get({name:ni,initialState:{savedSearches:void 0,bookmarks:void 0}}),Or=class{constructor(){this.currentSession=S.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new St,this.savedSearchesService=new vt,S.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var t;let{session:o}=S.getState();(0,Ct.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(),Ot.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),Ot.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let t=await this.savedSearchesService.listMySearches();Ot.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;Ot.actions.bookmarks(o)}}},ju=new Or;var Cr=class{addCommand(t,o=!1){S.commands.add(t,o)}consumeCommand(t){return S.commands.consume(t)}};window.FluidTopicsAppInfoStoreService=new Cr;var $n=O(k()),wr=class{highlightHtml(t,o,n){(0,$n.highlightHtml)(t,o,n)}};window.FluidTopicsHighlightHtmlService=new wr;var jn=O(k());var Nr=class{isDate(t){var o,n,i,c;return(c=(i=((n=(o=S.getState().metadataConfiguration)===null||o===void 0?void 0:o.descriptors)!==null&&n!==void 0?n:[]).find(d=>d.key===t))===null||i===void 0?void 0:i.date)!==null&&c!==void 0?c:!1}format(t,o){var n,i,c;return jn.DateFormatter.format(t,(n=o?.locale)!==null&&n!==void 0?n:S.getState().uiLocale,(i=o?.longFormat)!==null&&i!==void 0?i:!1,(c=o?.withTime)!==null&&c!==void 0?c:!1)}};window.FluidTopicsDateService=new Nr;var ai=O(k());(0,Zn.customElement)("ft-app-context")(R);var Jn=O(k());var At=O(U()),Rt=O(M()),kt=O(k());var Kn=O(U());var Vn=Kn.css`
120
120
  `;var It=O(k());var Yn=O(M()),ii=function(r,t,o,n){var i=arguments.length,c=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")c=Reflect.decorate(r,t,o,n);else for(var d=r.length-1;d>=0;d--)(s=r[d])&&(c=(i<3?s(c):i>3?s(t,o,c):s(t,o))||c);return i>3&&c&&Object.defineProperty(t,o,c),c},Ir=Symbol("i18nAttributes"),Er=Symbol("i18nListAttributes"),wt=Symbol("i18nProperties"),Ar=Symbol("i18nManualContexts"),qe=Symbol("i18nUnsubs");function Et(r){var t,o;class n extends r{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[t]=new Map,this[o]=new Map}getI18nService(c){return c??this.useCustomMessageContexts?it:Ae}i18n(c,s,...d){var u;if(typeof c=="string")return this.getI18nService().resolveMessage(c,s,...d);let f=(u=c.args)!==null&&u!==void 0?u:c.argsProvider?c.argsProvider(this):[];return this.getI18nService(c.custom).resolveMessage(c.context,c.key,...f)}onI18nUpdate(c){var s,d,u;(s=this[Ir])===null||s===void 0||s.forEach((f,p)=>{let h=this.getI18nAttributeValue(p);h&&(this[p]=this.getI18nAttributeMessage(h,f,c))}),(d=this[Er])===null||d===void 0||d.forEach((f,p)=>{let h=this.getI18nListAttributeValues(p);this[p]=h?.map(y=>this.getI18nAttributeMessage(y,f,c))}),(u=this[wt])===null||u===void 0||u.forEach((f,p)=>{f.context.toLowerCase()===c.toLowerCase()&&(this[p]=this.i18n(f))}),setTimeout(()=>this.requestUpdate(),0)}getI18nAttributeMessage(c,s,d){var u;let f=!d||((u=c.context)===null||u===void 0?void 0:u.toLowerCase())===d.toLowerCase(),p=c.context&&c.key&&f?this.i18n({context:c.context,key:c.key,...s}):c.message;return{...c,message:p}}update(c){var s,d,u;super.update(c),(s=this[Ir])===null||s===void 0||s.forEach((f,p)=>{let h=this.getI18nAttributeValue(p);h?.context&&h.key&&(c.has(p)||f.argsProvider!=null)&&(this.addI18nContextIfNeeded(h,c,p),this[p]=this.getI18nAttributeMessage(h,f))}),(d=this[Er])===null||d===void 0||d.forEach((f,p)=>{let h=this.getI18nListAttributeValues(p);(c.has(p)||f.argsProvider!=null)&&(this[p]=h?.map(y=>(this.addI18nContextIfNeeded(y,c,p),this.getI18nAttributeMessage(y,f))))}),(u=this[wt])===null||u===void 0||u.forEach((f,p)=>{f.argsProvider!=null&&(this[p]=this.i18n(f))})}getI18nAttributeValue(c){return this[c]}getI18nListAttributeValues(c){return this[c]}addI18nContextIfNeeded(c,s,d){c.context&&c.key&&s.has(d)&&this.addI18nContext(c.context)}addI18nMessagesAndSubscribe(c,s,d){c=c.toLowerCase(),this[qe].has(c)||this[qe].set(c,this.getI18nService(d).subscribe(c,()=>this.onI18nUpdate(c))),this.getI18nService(d).prepareContext(c,s??{}),this.onI18nUpdate(c)}connectedCallback(){var c,s,d,u,f,p;super.connectedCallback(),new Set([...(s=(c=this[wt])===null||c===void 0?void 0:c.values())!==null&&s!==void 0?s:[],...[...(u=(d=this[Ir])===null||d===void 0?void 0:d.keys())!==null&&u!==void 0?u:[]].map(h=>this.getI18nAttributeValue(h)),...[...(p=(f=this[Er])===null||f===void 0?void 0:f.keys())!==null&&p!==void 0?p:[]].flatMap(h=>this.getI18nListAttributeValues(h))].map(h=>h?.context)).forEach(h=>h&&this.addI18nMessages(h)),this[Ar].forEach((h,y)=>{this.addI18nMessagesAndSubscribe(y,h.defaultMessages,h.isCustomContext)})}addI18nMessages(c,s,d){this[Ar].set(c,{defaultMessages:s,isCustomContext:d}),this.addI18nMessagesAndSubscribe(c,s,d)}addI18nContext(c,s,d){typeof c=="string"?this.addI18nMessages(c,s,d):this.addI18nMessages(c.name,s,c.custom)}disconnectedCallback(){super.disconnectedCallback(),this[qe].forEach(c=>c()),this[qe].clear()}}return t=Ar,o=qe,ii([(0,Yn.property)({type:Boolean})],n.prototype,"useCustomMessageContexts",void 0),n}var qn=class extends Et(It.FtLitElement){},Nt=class extends Et(It.FtLitElementRedux){};var Ye=function(r,t,o,n){var i=arguments.length,c=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")c=Reflect.decorate(r,t,o,n);else for(var d=r.length-1;d>=0;d--)(s=r[d])&&(c=(i<3?s(c):i>3?s(t,o,c):s(t,o))||c);return i>3&&c&&Object.defineProperty(t,o,c),c},G=class extends Nt{constructor(){super(),this.editorMode=!1,this.addStore(S)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":At.nothing:At.html`