@fluid-topics/ft-modal 1.2.60 → 1.2.61

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.
@@ -1142,7 +1142,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
1142
1142
  `;var lo=C(k());var Sc=C(k());var qi=C(G()),me=C(oe()),Re=C(k());var Ki=C(G());var Vi=Ki.css`
1143
1143
  `;var Mr=C(k()),ul="ft-app-info",Vo=class extends CustomEvent{constructor(r){super("authentication-change",{detail:r})}},pl={session:(e,r)=>{(0,Mr.deepEqual)(e.session,r.payload)||(e.session=r.payload,setTimeout(()=>_.dispatchEvent(new Vo(r.payload)),0))}},_=Mr.FtReduxStore.get({name:ul,reducers:pl,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 Ue=C(k());var Zo=C(k());var gt=class e{static get(r){let{baseUrl:o,apiIntegrationIdentifier:n}=_.getState(),a=r??n;if(o&&a&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(o,a,!0)}static await(r){return new Promise(o=>{let n=e.get(r);if(n)o(n);else{let a=_.subscribe(()=>{n=e.get(r),n&&(a(),o(n))})}})}};var lr=class{constructor(r){this.overrideApi=r}get api(){var r;return(r=this.overrideApi)!==null&&r!==void 0?r:gt.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):gt.await()}};var rt=class extends lr{constructor(r=!0,o){var n;super(o);let a=this.constructor;a.commonCache=(n=a.commonCache)!==null&&n!==void 0?n:new Zo.CacheRegistry,this.cache=r?a.commonCache:new Zo.CacheRegistry}clearCache(){this.cache.clearAll()}};var Zi,fl=Symbol("clearAfterUnitTest"),Wr=class extends rt{constructor(r){super(),this.messageContextProvider=r,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[Zi]=()=>{this.defaultMessages={},this.cache=new Ue.CacheRegistry,this.listeners={}},this.currentUiLocale=_.getState().uiLocale,_.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:r}=_.getState();this.currentUiLocale!==r&&(this.currentUiLocale=r,this.cache.clearAll(),this.notifyAll())}addContext(r){let o=r.name.toLowerCase();this.cache.setFinal(o,r),this.notify(o)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(r,o){var n;if(r=r.toLowerCase(),o&&Object.keys(o).length>0){let a={...(n=this.defaultMessages[r])!==null&&n!==void 0?n:{},...o};(0,Ue.deepEqual)(this.defaultMessages[r],a)||(this.defaultMessages[r]=a,await this.notify(r))}return this.fetchContext(r)}resolveContext(r){var o,n;return this.fetchContext(r),(n=(o=this.cache.getNow(r))===null||o===void 0?void 0:o.messages)!==null&&n!==void 0?n:{}}resolveRawMessage(r,o){let n=r.toLowerCase();return this.resolveContext(n)[o]}resolveMessage(r,o,...n){var a;let i=r.toLowerCase(),c=this.resolveContext(i);return new Ue.ParametrizedLabelResolver((a=this.defaultMessages[i])!==null&&a!==void 0?a:{},c).resolve(o,...n)}async fetchContext(r){let o=!this.cache.has(r),n;try{n=await this.cache.get(r,()=>this.messageContextProvider(this.currentUiLocale,r))}catch(a){!(a instanceof Ue.CanceledPromiseError)&&o&&console.error(a)}return o&&await this.notify(r),n}subscribe(r,o){var n;return r=r.toLowerCase(),this.listeners[r]=(n=this.listeners[r])!==null&&n!==void 0?n:new Set,this.listeners[r].add(o),()=>{var a;return(a=this.listeners[r])===null||a===void 0?void 0:a.delete(o)}}async notifyAll(){await Promise.all(Object.keys(this.listeners).map(r=>this.notify(r)))}async notify(r){this.listeners[r]!=null&&await Promise.all([...this.listeners[r].values()].map(o=>(0,Ue.delay)(0).then(()=>o()).catch(()=>null)))}};Zi=fl;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends Wr{constructor(){super(async(e,r)=>(await this.awaitApi).getFluidTopicsMessageContext(e,r))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends Wr{constructor(){super(async(e,r)=>(await this.awaitApi).getCustomMessageContext(e,r))}});var Wt=window.FluidTopicsI18nService,Hr=window.FluidTopicsCustomI18nService;var ie=function(e,r,o,n){var a=arguments.length,i=a<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,r,o,n);else for(var l=e.length-1;l>=0;l--)(c=e[l])&&(i=(a<3?c(i):a>3?c(r,o,i):c(r,o))||i);return a>3&&i&&Object.defineProperty(r,o,i),i},Z=class extends Re.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=()=>gt.get(),this.messageContexts=[],this.cache=new Re.CacheRegistry,this.cleanSessionDebouncer=new Re.Debouncer}render(){return qi.html`
1144
1144
  <slot></slot>
1145
- `}update(r){var o,n,a,i,c;super.update(r),r.has("baseUrl")&&(_.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),r.has("apiIntegrationIdentifier")&&_.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),r.has("uiLocale")&&_.actions.uiLocale(this.uiLocale),r.has("metadataConfiguration")&&_.actions.metadataConfiguration(this.metadataConfiguration),r.has("noCustom")&&_.actions.noCustom(this.noCustom),r.has("editorMode")&&_.actions.editorMode(this.editorMode),r.has("noCustomComponent")&&_.actions.noCustomComponent(this.noCustomComponent),r.has("session")&&_.actions.session(this.session),r.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(l=>Wt.addContext(l)),r.has("openExternalDocumentInNewTab")&&_.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),r.has("navigatorOnline")&&_.actions.navigatorOnline(this.navigatorOnline),r.has("forcedOffline")&&_.actions.forcedOffline(this.forcedOffline),r.has("localesConfiguration")&&(_.actions.defaultLocales((o=this.localesConfiguration)===null||o===void 0?void 0:o.defaultLocales),_.actions.availableUiLocales((a=(n=this.localesConfiguration)===null||n===void 0?void 0:n.availableUiLocales)!==null&&a!==void 0?a:[]),_.actions.searchInAllLanguagesAllowed((c=(i=this.localesConfiguration)===null||i===void 0?void 0:i.allLanguagesAllowed)!==null&&c!==void 0?c:!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 r=await this.apiProvider().getCurrentSession();return r.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.session=void 0},r.idleTimeoutInMillis),r})}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration())}async updateLocalesConfiguration(){this.localesConfiguration=await this.cache.get("localesConfiguration",()=>this.apiProvider().getLocalesConfiguration())}};Z.elementDefinitions={};Z.styles=Vi;ie([(0,me.property)()],Z.prototype,"baseUrl",void 0);ie([(0,me.property)()],Z.prototype,"apiIntegrationIdentifier",void 0);ie([(0,me.property)()],Z.prototype,"uiLocale",void 0);ie([(0,Re.jsonProperty)(null)],Z.prototype,"availableUiLocales",void 0);ie([(0,Re.jsonProperty)(null)],Z.prototype,"metadataConfiguration",void 0);ie([(0,me.property)({type:Boolean})],Z.prototype,"editorMode",void 0);ie([(0,me.property)({type:Boolean})],Z.prototype,"noCustom",void 0);ie([(0,me.property)({type:Boolean})],Z.prototype,"openExternalDocumentInNewTab",void 0);ie([(0,me.property)({converter:{fromAttribute(e){return e==="false"?!1:e==="true"||(e??!1)}}})],Z.prototype,"noCustomComponent",void 0);ie([(0,me.property)({type:Boolean})],Z.prototype,"withManualResources",void 0);ie([(0,me.property)({type:Boolean})],Z.prototype,"navigatorOnline",void 0);ie([(0,me.property)({type:Boolean})],Z.prototype,"forcedOffline",void 0);ie([(0,me.property)({type:Object})],Z.prototype,"apiProvider",void 0);ie([(0,Re.jsonProperty)([])],Z.prototype,"messageContexts",void 0);ie([(0,Re.jsonProperty)(void 0)],Z.prototype,"session",void 0);ie([(0,me.state)()],Z.prototype,"localesConfiguration",void 0);var ed=C(oe());function hl(e,r){if(e===r)return!0;if(e&&r&&typeof e=="object"&&typeof r=="object"){if(e.constructor!==r.constructor)return!1;var o,n,a;if(Array.isArray(e)){if(o=e.length,o!=r.length)return!1;for(n=o;n--!==0;)if(!Fr(e[n],r[n]))return!1;return!0}if(e instanceof Map&&r instanceof Map){if(e.size!==r.size)return!1;for(n of e.entries())if(!r.has(n[0]))return!1;for(n of e.entries())if(!Fr(n[1],r.get(n[0])))return!1;return!0}if(e instanceof Set&&r instanceof Set){if(e.size!==r.size)return!1;for(n of e.entries())if(!r.has(n[0]))return!1;return!0}if(e.constructor===RegExp)return e.source===r.source&&e.flags===r.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===r.valueOf();let i=c=>Object.keys(c).filter(l=>c[l]!=null);if(a=i(e),o=a.length,o!==i(r).length)return!1;for(n=o;n--!==0;)if(!Object.prototype.hasOwnProperty.call(r,a[n]))return!1;for(n=o;n--!==0;){let c=a[n];if(!Fr(e[c],r[c]))return!1}return!0}return e!==e&&r!==r||e==null&&r==null}function Fr(e,r){try{return hl(e,r)}catch{return!1}}function zr(e,r){return!Fr(e,r)}var yl=C(oe(),1);var Gr=class{constructor(){this.queue=[]}add(r,o=!1){o&&this.clear(r.type),this.queue.push(r)}consume(r){let o=this.queue.find(n=>n.type===r);return o&&(this.queue=this.queue.filter(n=>n!==o)),o}clear(r){typeof r=="string"?this.queue=this.queue.filter(o=>o.type!==r):this.queue=this.queue.filter(o=>!r.test(o.type))}};var Ht=C(oe(),1);var Yi=C(oe(),1);function Xi(e,r){let o=()=>JSON.parse(JSON.stringify(e));return(0,Yi.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:zr,...r??{}})}var jr=class{constructor(r=0){this.timeout=r,this.callbacks=[]}run(r,o){return this.callbacks=[r],this.debounce(o)}queue(r,o){return this.callbacks.push(r),this.debounce(o)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(r){return this.promise==null&&(this.promise=new Promise((o,n)=>{this.resolvePromise=o,this.rejectPromise=n})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),r??this.timeout),this.promise}async runCallbacks(){var r,o;let n=[...this.callbacks];this.callbacks=[];let a=(r=this.rejectPromise)!==null&&r!==void 0?r:()=>null,i=(o=this.resolvePromise)!==null&&o!==void 0?o:()=>null;this.clearPromise();for(let c of n)try{await c()}catch(l){a(l);return}i(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var Ji=C(G(),1);var Kr=globalThis,ml=Kr.ShadowRoot&&(Kr.ShadyCSS===void 0||Kr.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,ng=Symbol();var Qi=(e,r)=>{if(ml)e.adoptedStyleSheets=r.map(o=>o instanceof CSSStyleSheet?o:o.styleSheet);else for(let o of r){let n=document.createElement("style"),a=Kr.litNonce;a!==void 0&&n.setAttribute("nonce",a),n.textContent=o.cssText,e.appendChild(n)}};var Vr=class extends Ji.LitElement{createRenderRoot(){let r=this.constructor;r.elementDefinitions&&!r.registry&&(r.registry=new CustomElementRegistry,Object.entries(r.elementDefinitions).forEach(([a,i])=>r.registry.define(a,i)));let o={...r.shadowRootOptions,customElements:r.registry},n=this.renderOptions.creationScope=this.attachShadow(o);return Qi(n,r.elementStyles),n}};function es(e,r,...o){var n;let a=e.querySelector(r);for(let i of o)a=(n=a?.shadowRoot)===null||n===void 0?void 0:n.querySelector(i);return a}var dr=function(e,r,o,n){var a=arguments.length,i=a<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,r,o,n);else for(var l=e.length-1;l>=0;l--)(c=e[l])&&(i=(a<3?c(i):a>3?c(r,o,i):c(r,o))||i);return a>3&&i&&Object.defineProperty(r,o,i),i},ns,ts=Symbol("constructorPrototype"),rs=Symbol("constructorName"),as=Symbol("exportpartsDebouncer"),os=Symbol("dynamicDependenciesLoaded"),Ve=class extends Vr{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[ns]=new jr(5),this[rs]=this.constructor.name,this[ts]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[rs]&&Object.setPrototypeOf(this,this[ts])}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 r=this.constructor;r[os]||(r[os]=!0,this.importDynamicDependencies())}importDynamicDependencies(){}updated(r){super.updated(r),this.updateComplete.then(()=>{this.contentAvailableCallback(r),this.focusElementToFocus(r),this.applyCustomStylesheet(r),this.scheduleExportpartsUpdate()})}contentAvailableCallback(r){}focusElementToFocus(r){if(r.has("elementToFocus")&&this.elementToFocus!=null){let{element:o,selector:n,shadowPath:a}=this.elementToFocus;if(n!=null){let i=[...a??[],n];o=es(this.shadowRoot,...i)}o?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||o?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(r){var o,n,a;if(((n=(o=this.shadowRoot)===null||o===void 0?void 0:o.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&n!==void 0?n:[]).forEach(i=>i.remove()),this.useAdoptedStyleSheets){if(r.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((a=this.customStylesheet)!==null&&a!==void 0?a:"")}catch(i){console.error(i,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let i=document.createElement("style");i.classList.add("ft-lit-element--custom-stylesheet"),i.innerHTML=this.customStylesheet,this.shadowRoot.append(i)}}scheduleExportpartsUpdate(){var r,o,n;(!((r=this.exportpartsPrefix)===null||r===void 0)&&r.trim()||(n=(o=this.exportpartsPrefixes)===null||o===void 0?void 0:o.length)!==null&&n!==void 0&&n)&&this[as].run(()=>{var a,i;!((a=this.exportpartsPrefix)===null||a===void 0)&&a.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((i=this.exportpartsPrefixes)===null||i===void 0?void 0:i.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})}setExportpartsAttribute(r){var o,n,a,i,c,l;let u=g=>g!=null&&g.trim().length>0,p=r.filter(u).map(g=>g.trim());if(p.length===0){this.removeAttribute("exportparts");return}let m=new Set;for(let g of(n=(o=this.shadowRoot)===null||o===void 0?void 0:o.querySelectorAll("[part],[exportparts]"))!==null&&n!==void 0?n:[]){let v=(i=(a=g.getAttribute("part"))===null||a===void 0?void 0:a.split(" "))!==null&&i!==void 0?i:[],x=(l=(c=g.getAttribute("exportparts"))===null||c===void 0?void 0:c.split(",").map(S=>S.split(":")[1]))!==null&&l!==void 0?l:[];new Array(...v,...x).filter(u).map(S=>S.trim()).forEach(S=>m.add(S))}if(m.size===0){this.removeAttribute("exportparts");return}let y=[...m.values()].flatMap(g=>p.map(v=>`${g}:${v}--${g}`));this.setAttribute("exportparts",[...this.part,...y].join(", "))}};ns=as;dr([(0,Ht.property)()],Ve.prototype,"exportpartsPrefix",void 0);dr([Xi([])],Ve.prototype,"exportpartsPrefixes",void 0);dr([(0,Ht.property)()],Ve.prototype,"customStylesheet",void 0);dr([(0,Ht.property)()],Ve.prototype,"elementToFocus",void 0);dr([(0,Ht.state)()],Ve.prototype,"useAdoptedStyleSheets",void 0);function ur(e){var r;return(r=e?.isFtReduxStore)!==null&&r!==void 0?r:!1}var is,ss,cs,pr=Symbol("internalReduxEventsUnsubscribers"),ot=Symbol("internalStoresUnsubscribers"),bt=Symbol("internalStores"),fr=class extends Ve{constructor(){super(...arguments),this[is]=new Map,this[ss]=new Map,this[cs]=new Map}get reduxConstructor(){return this.constructor}update(r){super.update(r),[...this.reduxConstructor.reduxReactiveProperties].some(o=>r.has(o))&&this.updateFromStores()}getUnnamedStore(){if(this[bt].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[bt].values()][0]}getStore(r){return r==null?this.getUnnamedStore():this[bt].get(r)}addStore(r,o){var n;o=(n=o??(ur(r)?r.name:void 0))!==null&&n!==void 0?n:"default-store",this.unsubscribeFromStore(o),this[bt].set(o,r),this.subscribeToStore(o,r),this.updateFromStores()}removeStore(r){let o=typeof r=="string"?r:r.name;this.unsubscribeFromStore(o),this[bt].delete(o)}setupStores(){this.unsubscribeFromStores(),this[bt].forEach((r,o)=>this.subscribeToStore(o,r)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((r,o)=>{let n=this.constructor.getPropertyOptions(o);if(!n?.attribute||!this.hasAttribute(typeof n?.attribute=="string"?n.attribute:o)){let a=this.getStore(r.store);a&&(r.store?this[ot].has(r.store):this[ot].size>0)&&(this[o]=r.selector(a.getState(),this))}})}subscribeToStore(r,o){var n;this[ot].set(r,o.subscribe(()=>this.updateFromStores())),this[pr].set(r,[]),ur(o)&&o.eventBus&&((n=this.reduxConstructor.reduxEventListeners)===null||n===void 0||n.forEach((a,i)=>{if(typeof this[i]=="function"&&(!a.store||o.name===a.store)){let c=l=>this[i](l);o.addEventListener(a.eventName,c),this[pr].get(r).push(()=>o.removeEventListener(a.eventName,c))}})),this.onStoreAvailable(r)}unsubscribeFromStores(){this[ot].forEach((r,o)=>this.unsubscribeFromStore(o))}unsubscribeFromStore(r){var o;this[ot].has(r)&&this[ot].get(r)(),this[ot].delete(r),(o=this[pr].get(r))===null||o===void 0||o.forEach(n=>n()),this[pr].delete(r)}onStoreAvailable(r){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}};is=ot,ss=bt,cs=pr;fr.reduxProperties=new Map;fr.reduxReactiveProperties=new Set;fr.reduxEventListeners=new Map;function Ce(e){for(var r=arguments.length,o=Array(r>1?r-1:0),n=1;n<r;n++)o[n-1]=arguments[n];if(0)var a,i;throw Error("[Immer] minified error nr: "+e+(o.length?" "+o.map(function(c){return"'"+c+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Ze(e){return!!e&&!!e[F]}function Ne(e){var r;return!!e&&(function(o){if(!o||typeof o!="object")return!1;var n=Object.getPrototypeOf(o);if(n===null)return!0;var a=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return a===Object||typeof a=="function"&&Function.toString.call(a)===El}(e)||Array.isArray(e)||!!e[ys]||!!(!((r=e.constructor)===null||r===void 0)&&r[ys])||on(e)||nn(e))}function xt(e,r,o){o===void 0&&(o=!1),Gt(e)===0?(o?Object.keys:zt)(e).forEach(function(n){o&&typeof n=="symbol"||r(n,e[n],e)}):e.forEach(function(n,a){return r(a,n,e)})}function Gt(e){var r=e[F];return r?r.i>3?r.i-4:r.i:Array.isArray(e)?1:on(e)?2:nn(e)?3:0}function Ft(e,r){return Gt(e)===2?e.has(r):Object.prototype.hasOwnProperty.call(e,r)}function gl(e,r){return Gt(e)===2?e.get(r):e[r]}function ms(e,r,o){var n=Gt(e);n===2?e.set(r,o):n===3?e.add(o):e[r]=o}function gs(e,r){return e===r?e!==0||1/e==1/r:e!=e&&r!=r}function on(e){return Ol&&e instanceof Map}function nn(e){return Cl&&e instanceof Set}function nt(e){return e.o||e.t}function an(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var r=vs(e);delete r[F];for(var o=zt(r),n=0;n<o.length;n++){var a=o[n],i=r[a];i.writable===!1&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(r[a]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[a]})}return Object.create(Object.getPrototypeOf(e),r)}function sn(e,r){return r===void 0&&(r=!1),cn(e)||Ze(e)||!Ne(e)||(Gt(e)>1&&(e.set=e.add=e.clear=e.delete=bl),Object.freeze(e),r&&xt(e,function(o,n){return sn(n,!0)},!0)),e}function bl(){Ce(2)}function cn(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function $e(e){var r=rn[e];return r||Ce(18,e),r}function xl(e,r){rn[e]||(rn[e]=r)}function Jo(){return yr}function qo(e,r){r&&($e("Patches"),e.u=[],e.s=[],e.v=r)}function Zr(e){en(e),e.p.forEach(vl),e.p=null}function en(e){e===yr&&(yr=e.l)}function ls(e){return yr={p:[],l:yr,h:e,m:!0,_:0}}function vl(e){var r=e[F];r.i===0||r.i===1?r.j():r.g=!0}function Yo(e,r){r._=r.p.length;var o=r.p[0],n=e!==void 0&&e!==o;return r.h.O||$e("ES5").S(r,e,n),n?(o[F].P&&(Zr(r),Ce(4)),Ne(e)&&(e=qr(r,e),r.l||Yr(r,e)),r.u&&$e("Patches").M(o[F].t,e,r.u,r.s)):e=qr(r,o,[]),Zr(r),r.u&&r.v(r.u,r.s),e!==xs?e:void 0}function qr(e,r,o){if(cn(r))return r;var n=r[F];if(!n)return xt(r,function(l,u){return ds(e,n,r,l,u,o)},!0),r;if(n.A!==e)return r;if(!n.P)return Yr(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var a=n.i===4||n.i===5?n.o=an(n.k):n.o,i=a,c=!1;n.i===3&&(i=new Set(a),a.clear(),c=!0),xt(i,function(l,u){return ds(e,n,a,l,u,o,c)}),Yr(e,a,!1),o&&e.u&&$e("Patches").N(n,o,e.u,e.s)}return n.o}function ds(e,r,o,n,a,i,c){if(Ze(a)){var l=qr(e,a,i&&r&&r.i!==3&&!Ft(r.R,n)?i.concat(n):void 0);if(ms(o,n,l),!Ze(l))return;e.m=!1}else c&&o.add(a);if(Ne(a)&&!cn(a)){if(!e.h.D&&e._<1)return;qr(e,a),r&&r.A.l||Yr(e,a)}}function Yr(e,r,o){o===void 0&&(o=!1),!e.l&&e.h.D&&e.m&&sn(r,o)}function Xo(e,r){var o=e[F];return(o?nt(o):e)[r]}function us(e,r){if(r in e)for(var o=Object.getPrototypeOf(e);o;){var n=Object.getOwnPropertyDescriptor(o,r);if(n)return n;o=Object.getPrototypeOf(o)}}function at(e){e.P||(e.P=!0,e.l&&at(e.l))}function Qo(e){e.o||(e.o=an(e.t))}function tn(e,r,o){var n=on(r)?$e("MapSet").F(r,o):nn(r)?$e("MapSet").T(r,o):e.O?function(a,i){var c=Array.isArray(a),l={i:c?1:0,A:i?i.A:Jo(),P:!1,I:!1,R:{},l:i,t:a,k:null,o:null,j:null,C:!1},u=l,p=mr;c&&(u=[l],p=hr);var m=Proxy.revocable(u,p),y=m.revoke,g=m.proxy;return l.k=g,l.j=y,g}(r,o):$e("ES5").J(r,o);return(o?o.A:Jo()).p.push(n),n}function Sl(e){return Ze(e)||Ce(22,e),function r(o){if(!Ne(o))return o;var n,a=o[F],i=Gt(o);if(a){if(!a.P&&(a.i<4||!$e("ES5").K(a)))return a.t;a.I=!0,n=ps(o,i),a.I=!1}else n=ps(o,i);return xt(n,function(c,l){a&&gl(a.t,c)===l||ms(n,c,r(l))}),i===3?new Set(n):n}(e)}function ps(e,r){switch(r){case 2:return new Map(e);case 3:return Array.from(e)}return an(e)}function bs(){function e(c,l){var u=i[c];return u?u.enumerable=l:i[c]=u={configurable:!0,enumerable:l,get:function(){var p=this[F];return mr.get(p,c)},set:function(p){var m=this[F];mr.set(m,c,p)}},u}function r(c){for(var l=c.length-1;l>=0;l--){var u=c[l][F];if(!u.P)switch(u.i){case 5:n(u)&&at(u);break;case 4:o(u)&&at(u)}}}function o(c){for(var l=c.t,u=c.k,p=zt(u),m=p.length-1;m>=0;m--){var y=p[m];if(y!==F){var g=l[y];if(g===void 0&&!Ft(l,y))return!0;var v=u[y],x=v&&v[F];if(x?x.t!==g:!gs(v,g))return!0}}var S=!!l[F];return p.length!==zt(l).length+(S?0:1)}function n(c){var l=c.k;if(l.length!==c.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 a(c){c.g&&Ce(3,JSON.stringify(nt(c)))}var i={};xl("ES5",{J:function(c,l){var u=Array.isArray(c),p=function(y,g){if(y){for(var v=Array(g.length),x=0;x<g.length;x++)Object.defineProperty(v,""+x,e(x,!0));return v}var S=vs(g);delete S[F];for(var T=zt(S),R=0;R<T.length;R++){var N=T[R];S[N]=e(N,y||!!S[N].enumerable)}return Object.create(Object.getPrototypeOf(g),S)}(u,c),m={i:u?5:4,A:l?l.A:Jo(),P:!1,I:!1,R:{},l,t:c,k:p,o:null,g:!1,C:!1};return Object.defineProperty(p,F,{value:m,writable:!0}),p},S:function(c,l,u){u?Ze(l)&&l[F].A===c&&r(c.p):(c.u&&function p(m){if(m&&typeof m=="object"){var y=m[F];if(y){var g=y.t,v=y.k,x=y.R,S=y.i;if(S===4)xt(v,function(B){B!==F&&(g[B]!==void 0||Ft(g,B)?x[B]||p(v[B]):(x[B]=!0,at(y)))}),xt(g,function(B){v[B]!==void 0||Ft(v,B)||(x[B]=!1,at(y))});else if(S===5){if(n(y)&&(at(y),x.length=!0),v.length<g.length)for(var T=v.length;T<g.length;T++)x[T]=!1;else for(var R=g.length;R<v.length;R++)x[R]=!0;for(var N=Math.min(v.length,g.length),P=0;P<N;P++)v.hasOwnProperty(P)||(x[P]=!0),x[P]===void 0&&p(v[P])}}}}(c.p[0]),r(c.p))},K:function(c){return c.i===4?o(c):n(c)}})}var fs,yr,ln=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",Ol=typeof Map<"u",Cl=typeof Set<"u",hs=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",xs=ln?Symbol.for("immer-nothing"):((fs={})["immer-nothing"]=!0,fs),ys=ln?Symbol.for("immer-draftable"):"__$immer_draftable",F=ln?Symbol.for("immer-state"):"__$immer_state";var El=""+Object.prototype.constructor,zt=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,vs=Object.getOwnPropertyDescriptors||function(e){var r={};return zt(e).forEach(function(o){r[o]=Object.getOwnPropertyDescriptor(e,o)}),r},rn={},mr={get:function(e,r){if(r===F)return e;var o=nt(e);if(!Ft(o,r))return function(a,i,c){var l,u=us(i,c);return u?"value"in u?u.value:(l=u.get)===null||l===void 0?void 0:l.call(a.k):void 0}(e,o,r);var n=o[r];return e.I||!Ne(n)?n:n===Xo(e.t,r)?(Qo(e),e.o[r]=tn(e.A.h,n,e)):n},has:function(e,r){return r in nt(e)},ownKeys:function(e){return Reflect.ownKeys(nt(e))},set:function(e,r,o){var n=us(nt(e),r);if(n?.set)return n.set.call(e.k,o),!0;if(!e.P){var a=Xo(nt(e),r),i=a?.[F];if(i&&i.t===o)return e.o[r]=o,e.R[r]=!1,!0;if(gs(o,a)&&(o!==void 0||Ft(e.t,r)))return!0;Qo(e),at(e)}return e.o[r]===o&&(o!==void 0||r in e.o)||Number.isNaN(o)&&Number.isNaN(e.o[r])||(e.o[r]=o,e.R[r]=!0),!0},deleteProperty:function(e,r){return Xo(e.t,r)!==void 0||r in e.t?(e.R[r]=!1,Qo(e),at(e)):delete e.R[r],e.o&&delete e.o[r],!0},getOwnPropertyDescriptor:function(e,r){var o=nt(e),n=Reflect.getOwnPropertyDescriptor(o,r);return n&&{writable:!0,configurable:e.i!==1||r!=="length",enumerable:n.enumerable,value:o[r]}},defineProperty:function(){Ce(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){Ce(12)}},hr={};xt(mr,function(e,r){hr[e]=function(){return arguments[0]=arguments[0][0],r.apply(this,arguments)}}),hr.deleteProperty=function(e,r){return hr.set.call(this,e,r,void 0)},hr.set=function(e,r,o){return mr.set.call(this,e[0],r,o,e[0])};var wl=function(){function e(o){var n=this;this.O=hs,this.D=!0,this.produce=function(a,i,c){if(typeof a=="function"&&typeof i!="function"){var l=i;i=a;var u=n;return function(S){var T=this;S===void 0&&(S=l);for(var R=arguments.length,N=Array(R>1?R-1:0),P=1;P<R;P++)N[P-1]=arguments[P];return u.produce(S,function(B){var U;return(U=i).call.apply(U,[T,B].concat(N))})}}var p;if(typeof i!="function"&&Ce(6),c!==void 0&&typeof c!="function"&&Ce(7),Ne(a)){var m=ls(n),y=tn(n,a,void 0),g=!0;try{p=i(y),g=!1}finally{g?Zr(m):en(m)}return typeof Promise<"u"&&p instanceof Promise?p.then(function(S){return qo(m,c),Yo(S,m)},function(S){throw Zr(m),S}):(qo(m,c),Yo(p,m))}if(!a||typeof a!="object"){if((p=i(a))===void 0&&(p=a),p===xs&&(p=void 0),n.D&&sn(p,!0),c){var v=[],x=[];$e("Patches").M(a,p,v,x),c(v,x)}return p}Ce(21,a)},this.produceWithPatches=function(a,i){if(typeof a=="function")return function(p){for(var m=arguments.length,y=Array(m>1?m-1:0),g=1;g<m;g++)y[g-1]=arguments[g];return n.produceWithPatches(p,function(v){return a.apply(void 0,[v].concat(y))})};var c,l,u=n.produce(a,i,function(p,m){c=p,l=m});return typeof Promise<"u"&&u instanceof Promise?u.then(function(p){return[p,c,l]}):[u,c,l]},typeof o?.useProxies=="boolean"&&this.setUseProxies(o.useProxies),typeof o?.autoFreeze=="boolean"&&this.setAutoFreeze(o.autoFreeze)}var r=e.prototype;return r.createDraft=function(o){Ne(o)||Ce(8),Ze(o)&&(o=Sl(o));var n=ls(this),a=tn(this,o,void 0);return a[F].C=!0,en(n),a},r.finishDraft=function(o,n){var a=o&&o[F],i=a.A;return qo(i,n),Yo(void 0,i)},r.setAutoFreeze=function(o){this.D=o},r.setUseProxies=function(o){o&&!hs&&Ce(20),this.O=o},r.applyPatches=function(o,n){var a;for(a=n.length-1;a>=0;a--){var i=n[a];if(i.path.length===0&&i.op==="replace"){o=i.value;break}}a>-1&&(n=n.slice(a+1));var c=$e("Patches").$;return Ze(o)?c(o,n):this.produce(o,function(l){return c(l,n)})},e}(),ve=new wl,Al=ve.produce,bg=ve.produceWithPatches.bind(ve),xg=ve.setAutoFreeze.bind(ve),vg=ve.setUseProxies.bind(ve),Sg=ve.applyPatches.bind(ve),Og=ve.createDraft.bind(ve),Cg=ve.finishDraft.bind(ve),Xr=Al;function vt(e){"@babel/helpers - typeof";return vt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},vt(e)}function Ss(e,r){if(vt(e)!="object"||!e)return e;var o=e[Symbol.toPrimitive];if(o!==void 0){var n=o.call(e,r||"default");if(vt(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}function Os(e){var r=Ss(e,"string");return vt(r)=="symbol"?r:r+""}function Cs(e,r,o){return(r=Os(r))in e?Object.defineProperty(e,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[r]=o,e}function Es(e,r){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),o.push.apply(o,n)}return o}function dn(e){for(var r=1;r<arguments.length;r++){var o=arguments[r]!=null?arguments[r]:{};r%2?Es(Object(o),!0).forEach(function(n){Cs(e,n,o[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Es(Object(o)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(o,n))})}return e}function se(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 ws=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),un=function(){return Math.random().toString(36).substring(7).split("").join(".")},Qr={INIT:"@@redux/INIT"+un(),REPLACE:"@@redux/REPLACE"+un(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+un()}};function Rl(e){if(typeof e!="object"||e===null)return!1;for(var r=e;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return Object.getPrototypeOf(e)===r}function pn(e,r,o){var n;if(typeof r=="function"&&typeof o=="function"||typeof o=="function"&&typeof arguments[3]=="function")throw new Error(se(0));if(typeof r=="function"&&typeof o>"u"&&(o=r,r=void 0),typeof o<"u"){if(typeof o!="function")throw new Error(se(1));return o(pn)(e,r)}if(typeof e!="function")throw new Error(se(2));var a=e,i=r,c=[],l=c,u=!1;function p(){l===c&&(l=c.slice())}function m(){if(u)throw new Error(se(3));return i}function y(S){if(typeof S!="function")throw new Error(se(4));if(u)throw new Error(se(5));var T=!0;return p(),l.push(S),function(){if(T){if(u)throw new Error(se(6));T=!1,p();var N=l.indexOf(S);l.splice(N,1),c=null}}}function g(S){if(!Rl(S))throw new Error(se(7));if(typeof S.type>"u")throw new Error(se(8));if(u)throw new Error(se(9));try{u=!0,i=a(i,S)}finally{u=!1}for(var T=c=l,R=0;R<T.length;R++){var N=T[R];N()}return S}function v(S){if(typeof S!="function")throw new Error(se(10));a=S,g({type:Qr.REPLACE})}function x(){var S,T=y;return S={subscribe:function(N){if(typeof N!="object"||N===null)throw new Error(se(11));function P(){N.next&&N.next(m())}P();var B=T(P);return{unsubscribe:B}}},S[ws]=function(){return this},S}return g({type:Qr.INIT}),n={dispatch:g,subscribe:y,getState:m,replaceReducer:v},n[ws]=x,n}function Nl(e){Object.keys(e).forEach(function(r){var o=e[r],n=o(void 0,{type:Qr.INIT});if(typeof n>"u")throw new Error(se(12));if(typeof o(void 0,{type:Qr.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(se(13))})}function As(e){for(var r=Object.keys(e),o={},n=0;n<r.length;n++){var a=r[n];typeof e[a]=="function"&&(o[a]=e[a])}var i=Object.keys(o),c,l;try{Nl(o)}catch(u){l=u}return function(p,m){if(p===void 0&&(p={}),l)throw l;if(0)var y;for(var g=!1,v={},x=0;x<i.length;x++){var S=i[x],T=o[S],R=p[S],N=T(R,m);if(typeof N>"u"){var P=m&&m.type;throw new Error(se(14))}v[S]=N,g=g||N!==R}return g=g||i.length!==Object.keys(p).length,g?v:p}}function jt(){for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return r.length===0?function(n){return n}:r.length===1?r[0]:r.reduce(function(n,a){return function(){return n(a.apply(void 0,arguments))}})}function Rs(){for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return function(n){return function(){var a=n.apply(void 0,arguments),i=function(){throw new Error(se(15))},c={getState:a.getState,dispatch:function(){return i.apply(void 0,arguments)}},l=r.map(function(u){return u(c)});return i=jt.apply(void 0,l)(a.dispatch),dn(dn({},a),{},{dispatch:i})}}}function Ns(e){var r=function(n){var a=n.dispatch,i=n.getState;return function(c){return function(l){return typeof l=="function"?l(a,i,e):c(l)}}};return r}var Ts=Ns();Ts.withExtraArgument=Ns;var fn=Ts;var ks=function(){var e=function(r,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},e(r,o)};return function(r,o){if(typeof o!="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");e(r,o);function n(){this.constructor=r}r.prototype=o===null?Object.create(o):(n.prototype=o.prototype,new n)}}(),Tl=function(e,r){var o={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,c;return c={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(c[Symbol.iterator]=function(){return this}),c;function l(p){return function(m){return u([p,m])}}function u(p){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,a&&(i=p[0]&2?a.return:p[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,p[1])).done)return i;switch(a=0,i&&(p=[p[0]&2,i.value]),p[0]){case 0:case 1:i=p;break;case 4:return o.label++,{value:p[1],done:!1};case 5:o.label++,a=p[1],p=[0];continue;case 7:p=o.ops.pop(),o.trys.pop();continue;default:if(i=o.trys,!(i=i.length>0&&i[i.length-1])&&(p[0]===6||p[0]===2)){o=0;continue}if(p[0]===3&&(!i||p[1]>i[0]&&p[1]<i[3])){o.label=p[1];break}if(p[0]===6&&o.label<i[1]){o.label=i[1],i=p;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(p);break}i[2]&&o.ops.pop(),o.trys.pop();continue}p=r.call(e,o)}catch(m){p=[6,m],a=0}finally{n=i=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},Kt=function(e,r){for(var o=0,n=r.length,a=e.length;o<n;o++,a++)e[a]=r[o];return e},Ll=Object.defineProperty,Il=Object.defineProperties,_l=Object.getOwnPropertyDescriptors,Ls=Object.getOwnPropertySymbols,Pl=Object.prototype.hasOwnProperty,kl=Object.prototype.propertyIsEnumerable,Is=function(e,r,o){return r in e?Ll(e,r,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[r]=o},it=function(e,r){for(var o in r||(r={}))Pl.call(r,o)&&Is(e,o,r[o]);if(Ls)for(var n=0,a=Ls(r);n<a.length;n++){var o=a[n];kl.call(r,o)&&Is(e,o,r[o])}return e},hn=function(e,r){return Il(e,_l(r))},Dl=function(e,r,o){return new Promise(function(n,a){var i=function(u){try{l(o.next(u))}catch(p){a(p)}},c=function(u){try{l(o.throw(u))}catch(p){a(p)}},l=function(u){return u.done?n(u.value):Promise.resolve(u.value).then(i,c)};l((o=o.apply(e,r)).next())})};var Bl=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?jt:jt.apply(null,arguments)},Hg=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(e){return e}};function Ul(e){if(typeof e!="object"||e===null)return!1;var r=Object.getPrototypeOf(e);if(r===null)return!0;for(var o=r;Object.getPrototypeOf(o)!==null;)o=Object.getPrototypeOf(o);return r===o}var $l=function(e){ks(r,e);function r(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var a=e.apply(this,o)||this;return Object.setPrototypeOf(a,r.prototype),a}return Object.defineProperty(r,Symbol.species,{get:function(){return r},enumerable:!1,configurable:!0}),r.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return e.prototype.concat.apply(this,o)},r.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(r.bind.apply(r,Kt([void 0],o[0].concat(this)))):new(r.bind.apply(r,Kt([void 0],o.concat(this))))},r}(Array),Ml=function(e){ks(r,e);function r(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var a=e.apply(this,o)||this;return Object.setPrototypeOf(a,r.prototype),a}return Object.defineProperty(r,Symbol.species,{get:function(){return r},enumerable:!1,configurable:!0}),r.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return e.prototype.concat.apply(this,o)},r.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(r.bind.apply(r,Kt([void 0],o[0].concat(this)))):new(r.bind.apply(r,Kt([void 0],o.concat(this))))},r}(Array);function gn(e){return Ne(e)?Xr(e,function(){}):e}function Wl(e){return typeof e=="boolean"}function Hl(){return function(r){return Fl(r)}}function Fl(e){e===void 0&&(e={});var r=e.thunk,o=r===void 0?!0:r,n=e.immutableCheck,a=n===void 0?!0:n,i=e.serializableCheck,c=i===void 0?!0:i,l=new $l;if(o&&(Wl(o)?l.push(fn):l.push(fn.withExtraArgument(o.extraArgument))),0){if(a)var u;if(c)var p}return l}var yn=!0;function Ds(e){var r=Hl(),o=e||{},n=o.reducer,a=n===void 0?void 0:n,i=o.middleware,c=i===void 0?r():i,l=o.devTools,u=l===void 0?!0:l,p=o.preloadedState,m=p===void 0?void 0:p,y=o.enhancers,g=y===void 0?void 0:y,v;if(typeof a=="function")v=a;else if(Ul(a))v=As(a);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 x=c;if(typeof x=="function"&&(x=x(r),!yn&&!Array.isArray(x)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!yn&&x.some(function(B){return typeof B!="function"}))throw new Error("each middleware provided to configureStore must be a function");var S=Rs.apply(void 0,x),T=jt;u&&(T=Bl(it({trace:!yn},typeof u=="object"&&u)));var R=new Ml(S),N=R;Array.isArray(g)?N=Kt([S],g):typeof g=="function"&&(N=g(R));var P=T.apply(void 0,N);return pn(v,m,P)}function st(e,r){function o(){for(var n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];if(r){var i=r.apply(void 0,n);if(!i)throw new Error("prepareAction did not return an object");return it(it({type:e,payload:i.payload},"meta"in i&&{meta:i.meta}),"error"in i&&{error:i.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 Bs(e){var r={},o=[],n,a={addCase:function(i,c){var l=typeof i=="string"?i:i.type;if(l in r)throw new Error("addCase cannot be called with two reducers for the same action type");return r[l]=c,a},addMatcher:function(i,c){return o.push({matcher:i,reducer:c}),a},addDefaultCase:function(i){return n=i,a}};return e(a),[r,o,n]}function zl(e){return typeof e=="function"}function Gl(e,r,o,n){o===void 0&&(o=[]);var a=typeof r=="function"?Bs(r):[r,o,n],i=a[0],c=a[1],l=a[2],u;if(zl(e))u=function(){return gn(e())};else{var p=gn(e);u=function(){return p}}function m(y,g){y===void 0&&(y=u());var v=Kt([i[g.type]],c.filter(function(x){var S=x.matcher;return S(g)}).map(function(x){var S=x.reducer;return S}));return v.filter(function(x){return!!x}).length===0&&(v=[l]),v.reduce(function(x,S){if(S)if(Ze(x)){var T=x,R=S(T,g);return R===void 0?x:R}else{if(Ne(x))return Xr(x,function(N){return S(N,g)});var R=S(x,g);if(R===void 0){if(x===null)return x;throw Error("A case reducer on a non-draftable value must not return undefined")}return R}return x},y)}return m.getInitialState=u,m}function jl(e,r){return e+"/"+r}function Us(e){var r=e.name;if(!r)throw new Error("`name` is a required option for createSlice");typeof process<"u";var o=typeof e.initialState=="function"?e.initialState:gn(e.initialState),n=e.reducers||{},a=Object.keys(n),i={},c={},l={};a.forEach(function(m){var y=n[m],g=jl(r,m),v,x;"reducer"in y?(v=y.reducer,x=y.prepare):v=y,i[m]=v,c[g]=v,l[m]=x?st(g,x):st(g)});function u(){var m=typeof e.extraReducers=="function"?Bs(e.extraReducers):[e.extraReducers],y=m[0],g=y===void 0?{}:y,v=m[1],x=v===void 0?[]:v,S=m[2],T=S===void 0?void 0:S,R=it(it({},g),c);return Gl(o,function(N){for(var P in R)N.addCase(P,R[P]);for(var B=0,U=x;B<U.length;B++){var pe=U[B];N.addMatcher(pe.matcher,pe.reducer)}T&&N.addDefaultCase(T)})}var p;return{name:r,reducer:function(m,y){return p||(p=u()),p(m,y)},actions:l,caseReducers:i,getInitialState:function(){return p||(p=u()),p.getInitialState()}}}var Kl="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Vl=function(e){e===void 0&&(e=21);for(var r="",o=e;o--;)r+=Kl[Math.random()*64|0];return r},Zl=["name","message","stack","code"],mn=function(){function e(r,o){this.payload=r,this.meta=o}return e}(),_s=function(){function e(r,o){this.payload=r,this.meta=o}return e}(),ql=function(e){if(typeof e=="object"&&e!==null){for(var r={},o=0,n=Zl;o<n.length;o++){var a=n[o];typeof e[a]=="string"&&(r[a]=e[a])}return r}return{message:String(e)}},jg=function(){function e(r,o,n){var a=st(r+"/fulfilled",function(m,y,g,v){return{payload:m,meta:hn(it({},v||{}),{arg:g,requestId:y,requestStatus:"fulfilled"})}}),i=st(r+"/pending",function(m,y,g){return{payload:void 0,meta:hn(it({},g||{}),{arg:y,requestId:m,requestStatus:"pending"})}}),c=st(r+"/rejected",function(m,y,g,v,x){return{payload:v,error:(n&&n.serializeError||ql)(m||"Rejected"),meta:hn(it({},x||{}),{arg:g,requestId:y,rejectedWithValue:!!v,requestStatus:"rejected",aborted:m?.name==="AbortError",condition:m?.name==="ConditionError"})}}),l=!1,u=typeof AbortController<"u"?AbortController:function(){function m(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return m.prototype.abort=function(){},m}();function p(m){return function(y,g,v){var x=n?.idGenerator?n.idGenerator(m):Vl(),S=new u,T,R=!1;function N(B){T=B,S.abort()}var P=function(){return Dl(this,null,function(){var B,U,pe,Ie,ce,_e,te;return Tl(this,function(h){switch(h.label){case 0:return h.trys.push([0,4,,5]),Ie=(B=n?.condition)==null?void 0:B.call(n,m,{getState:g,extra:v}),Xl(Ie)?[4,Ie]:[3,2];case 1:Ie=h.sent(),h.label=2;case 2:if(Ie===!1||S.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return R=!0,ce=new Promise(function(b,I){return S.signal.addEventListener("abort",function(){return I({name:"AbortError",message:T||"Aborted"})})}),y(i(x,m,(U=n?.getPendingMeta)==null?void 0:U.call(n,{requestId:x,arg:m},{getState:g,extra:v}))),[4,Promise.race([ce,Promise.resolve(o(m,{dispatch:y,getState:g,extra:v,requestId:x,signal:S.signal,abort:N,rejectWithValue:function(b,I){return new mn(b,I)},fulfillWithValue:function(b,I){return new _s(b,I)}})).then(function(b){if(b instanceof mn)throw b;return b instanceof _s?a(b.payload,x,m,b.meta):a(b,x,m)})])];case 3:return pe=h.sent(),[3,5];case 4:return _e=h.sent(),pe=_e instanceof mn?c(null,x,m,_e.payload,_e.meta):c(_e,x,m),[3,5];case 5:return te=n&&!n.dispatchConditionRejection&&c.match(pe)&&pe.meta.condition,te||y(pe),[2,pe]}})})}();return Object.assign(P,{abort:N,requestId:x,arg:m,unwrap:function(){return P.then(Yl)}})}}return Object.assign(p,{pending:i,rejected:c,fulfilled:a,typePrefix:r})}return e.withTypes=function(){return e},e}();function Yl(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function Xl(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var $s="listener",Ms="completed",Ws="cancelled",Kg="task-"+Ws,Vg="task-"+Ms,Zg=$s+"-"+Ws,qg=$s+"-"+Ms;var bn="listenerMiddleware";var Yg=st(bn+"/add"),Xg=st(bn+"/removeAll"),Qg=st(bn+"/remove");var Ps,Jg=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(e){return(Ps||(Ps=Promise.resolve())).then(e).catch(function(r){return setTimeout(function(){throw r},0)})},Ql=function(e){return function(r){setTimeout(r,e)}},eb=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Ql(10);bs();function Jl(e,r){return class extends e{constructor(){super(...arguments),this.eventBus=r??document.createElement("span")}addEventListener(o,n,a){this.eventBus.addEventListener(o,n,a)}dispatchEvent(o){return this.eventBus.dispatchEvent(o)}removeEventListener(o,n,a){this.eventBus.removeEventListener(o,n,a)}}}var Jr=class extends Jl(Object){};window.ftReduxStores||(window.ftReduxStores={});var Hs=class e extends Jr{static get(r){var o;let n=typeof r=="string"?r:r.name,a=typeof r=="string"?void 0:r,i=window.ftReduxStores[n];if(ur(i))return i;if(a==null)return;let c=Us({...a,reducers:(o=a.reducers)!==null&&o!==void 0?o:{}}),l=Ds({reducer:(u,p)=>p.type==="CLEAR_FT_REDUX_STORE"?c.getInitialState():typeof p.type=="string"&&p.type.startsWith("DEFAULT_VALUE_SETTER__")?{...u,...p.overwrites}:c.reducer(u,p)});return window.ftReduxStores[a.name]=new e(c,l,a.eventBus)}constructor(r,o,n){super(),this.reduxSlice=r,this.reduxStore=o,this.isFtReduxStore=!0,this.commands=new Gr;let a=i=>i!=null?JSON.parse(JSON.stringify(i)):i;this.actions=new Proxy(this.reduxSlice.actions,{get:(i,c,l)=>{let u=c,p=i[u];return p?(...m)=>{let y=p(...m.map(a));return this.reduxStore.dispatch(y),y}:m=>{this.setState({[u]:a(m)})}}}),this.eventBus=n??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(r){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(r).join("_"),overwrites:r})}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(r){throw new Error("Not implemented yet.")}subscribe(r){return this.reduxStore.subscribe(r)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};var ao=C(k());var rd=C(zs(),1);var Gs;(function(e){e.black="black",e.green="green",e.blue="blue",e.purple="purple",e.red="red",e.orange="orange",e.yellow="yellow"})(Gs||(Gs={}));var js;(function(e){e.OFFICIAL="OFFICIAL",e.PERSONAL="PERSONAL",e.SHARED="SHARED"})(js||(js={}));var Ks;(function(e){e.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",e.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",e.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",e.PERSONAL_BOOK="PERSONAL_BOOK",e.MAP_ATTACHMENT="MAP_ATTACHMENT",e.RESOURCE="RESOURCE"})(Ks||(Ks={}));var Vs;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(Vs||(Vs={}));var Zs;(function(e){e.VALUE="VALUE",e.DATE="DATE",e.RANGE="RANGE"})(Zs||(Zs={}));var qs;(function(e){e.BOOKMARK__CREATE="BOOKMARK__CREATE",e.BOOKMARK__DELETE="BOOKMARK__DELETE",e.CASE_DEFLECTION__START="CASE_DEFLECTION__START",e.CASE_DEFLECTION__OPEN_TICKET="CASE_DEFLECTION__OPEN_TICKET",e.CASE_DEFLECTION__RATE="CASE_DEFLECTION__RATE",e.COLLECTION__CREATE="COLLECTION__CREATE",e.COLLECTION__UPDATE="COLLECTION__UPDATE",e.COLLECTION__DELETE="COLLECTION__DELETE",e.DOCUMENT__DISPLAY="DOCUMENT__DISPLAY",e.DOCUMENT__DOWNLOAD="DOCUMENT__DOWNLOAD",e.DOCUMENT__PRINT="DOCUMENT__PRINT",e.DOCUMENT__PROCESS="DOCUMENT__PROCESS",e.DOCUMENT__RATE="DOCUMENT__RATE",e.DOCUMENT__SEARCH="DOCUMENT__SEARCH",e.DOCUMENT__START_DISPLAY="DOCUMENT__START_DISPLAY",e.DOCUMENT__UNRATE="DOCUMENT__UNRATE",e.FEEDBACK__SEND="FEEDBACK__SEND",e.GEN_AI__COMPLETED_QUERY="GEN_AI__COMPLETED_QUERY",e.GEN_AI__RATE="GEN_AI__RATE",e.GENAI_CASE_DEFLECTION__START="GENAI_CASE_DEFLECTION__START",e.GENAI_CASE_DEFLECTION__OPEN_TICKET="GENAI_CASE_DEFLECTION__OPEN_TICKET",e.KHUB__PROCESS="KHUB__PROCESS",e.KHUB__SEARCH="KHUB__SEARCH",e.LABELS__DOWNLOAD="LABELS__DOWNLOAD",e.LINK__SHARE="LINK__SHARE",e.PAGE__DISPLAY="PAGE__DISPLAY",e.PERSONAL_BOOK__CREATE="PERSONAL_BOOK__CREATE",e.PERSONAL_BOOK__DELETE="PERSONAL_BOOK__DELETE",e.PERSONAL_BOOK__UPDATE="PERSONAL_BOOK__UPDATE",e.PERSONAL_TOPIC__CREATE="PERSONAL_TOPIC__CREATE",e.PERSONAL_TOPIC__UPDATE="PERSONAL_TOPIC__UPDATE",e.PERSONAL_TOPIC__DELETE="PERSONAL_TOPIC__DELETE",e.SAVED_SEARCH__CREATE="SAVED_SEARCH__CREATE",e.SAVED_SEARCH__DELETE="SAVED_SEARCH__DELETE",e.SAVED_SEARCH__UPDATE="SAVED_SEARCH__UPDATE",e.SEARCH_PAGE__SELECT="SEARCH_PAGE__SELECT",e.SEARCH_RESULT__OPEN_CONTEXT_MENU="SEARCH_RESULT__OPEN_CONTEXT_MENU",e.TOPIC__DISPLAY="TOPIC__DISPLAY",e.TOPIC__RATE="TOPIC__RATE",e.TOPIC__START_DISPLAY="TOPIC__START_DISPLAY",e.TOPIC__UNRATE="TOPIC__UNRATE",e.USER__LOGIN="USER__LOGIN",e.USER__LOGOUT="USER__LOGOUT",e.HEARTBEAT="HEARTBEAT"})(qs||(qs={}));var Ys;(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"})(Ys||(Ys={}));var Xs;(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"})(Xs||(Xs={}));var Qs;(function(e){e.CLASSIC="CLASSIC",e.CUSTOM="CUSTOM",e.DESIGNER="DESIGNER"})(Qs||(Qs={}));var Js;(function(e){e.AND="AND",e.OR="OR",e.MONOVALUED="MONOVALUED"})(Js||(Js={}));var ec;(function(e){e.NONE="NONE",e.ALPHABET="ALPHABET",e.VERSION="VERSION"})(ec||(ec={}));var tc;(function(e){e.STARS="STARS",e.LIKE="LIKE",e.DICHOTOMOUS="DICHOTOMOUS",e.NO_RATING="NO_RATING"})(tc||(tc={}));var rc;(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"})(rc||(rc={}));var oc;(function(e){e.ASC="ASC",e.DESC="DESC"})(oc||(oc={}));var nc;(function(e){e.ALPHA="ALPHA",e.NATURAL="NATURAL"})(nc||(nc={}));var ac;(function(e){e.EVERYWHERE="EVERYWHERE",e.TITLE_ONLY="TITLE_ONLY",e.NONE="NONE"})(ac||(ac={}));var ic;(function(e){e.ARTICLE="ARTICLE",e.BOOK="BOOK",e.SHARED_BOOK="SHARED_BOOK"})(ic||(ic={}));var sc;(function(e){e.FLUIDTOPICS="FLUIDTOPICS",e.EXTERNAL="EXTERNAL"})(sc||(sc={}));var cc;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC",e.PERSONAL_BOOK="PERSONAL_BOOK",e.SHARED_BOOK="SHARED_BOOK"})(cc||(cc={}));var lc;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(lc||(lc={}));var dc;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC"})(dc||(dc={}));var uc;(function(e){e.DEFAULT="DEFAULT",e.DOCUMENTS="DOCUMENTS",e.ALL_TOPICS="ALL_TOPICS",e.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(uc||(uc={}));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.BEHAVIOR_DATA_USER="BEHAVIOR_DATA_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.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_USER",e.CONTENT_PUBLISHER="CONTENT_PUBLISHER",e.KHUB_ADMIN="KHUB_ADMIN",e.USERS_ADMIN="USERS_ADMIN",e.PORTAL_ADMIN="PORTAL_ADMIN",e.ADMIN="ADMIN"})(X||(X={}));var pc;(function(e){e.VALID="VALID",e.INVALID="INVALID"})(pc||(pc={}));var fc;(function(e){e.JSON="JSON",e.TEXT="TEXT"})(fc||(fc={}));var hc;(function(e){e.TEXT="TEXT",e.HTML="HTML"})(hc||(hc={}));var td={[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.GENERATIVE_AI_EXPORT_USER]:[X.GENERATIVE_AI_USER]};function yc(e,r){return e===r||(td[e]??[]).some(o=>yc(o,r))}function mc(e,r){return e==null?!1:(Array.isArray(e)?e:Array.isArray(e.roles)?e.roles:Array.isArray(e.profile?.roles)?e.profile.roles:[]).some(n=>yc(n,r))}var ro=class extends rt{async listMySearches(){let{session:r}=_.getState();return mc(r,X.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(r.profile.userId),5*60*1e3):[]}};var oo=class extends rt{async listMyBookmarks(){let r=_.getState().session;return r?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(r.profile.userId),5*60*1e3):[]}};var od="ft-user-assets",no=ao.FtReduxStore.get({name:od,initialState:{savedSearches:void 0,bookmarks:void 0}}),xn=class{constructor(){this.currentSession=_.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new oo,this.savedSearchesService=new ro,_.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var r;let{session:o}=_.getState();(0,ao.deepEqual)((r=this.currentSession)===null||r===void 0?void 0:r.profile,o?.profile)||(this.currentSession=o,this.clearMySearches(),this.reloadBookmarks())}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),no.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),no.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let r=await this.savedSearchesService.listMySearches();no.actions.savedSearches(r)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var r;if(this.bookmarksAreUsed){let o=!((r=this.currentSession)===null||r===void 0)&&r.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;no.actions.bookmarks(o)}}},Yb=new xn;var vn=class{addCommand(r,o=!1){_.commands.add(r,o)}consumeCommand(r){return _.commands.consume(r)}};window.FluidTopicsAppInfoStoreService=new vn;var gc=C(k()),Sn=class{highlightHtml(r,o,n){(0,gc.highlightHtml)(r,o,n)}};window.FluidTopicsHighlightHtmlService=new Sn;var bc=C(k());var On=class{isDate(r){var o,n,a,i;return(i=(a=((n=(o=_.getState().metadataConfiguration)===null||o===void 0?void 0:o.descriptors)!==null&&n!==void 0?n:[]).find(l=>l.key===r))===null||a===void 0?void 0:a.date)!==null&&i!==void 0?i:!1}format(r,o){var n,a,i;return bc.DateFormatter.format(r,(n=o?.locale)!==null&&n!==void 0?n:_.getState().uiLocale,(a=o?.longFormat)!==null&&a!==void 0?a:!1,(i=o?.withTime)!==null&&i!==void 0?i:!1)}};window.FluidTopicsDateService=new On;var xc=C(k());var gr=class{static get(r,o){var n,a,i,c;let l=_.getState(),{lang:u,region:p}=(a=(n=l.defaultLocales)===null||n===void 0?void 0:n.defaultContentLocale)!==null&&a!==void 0?a:{lang:"en",region:"US"};return new xc.SearchPlaceConverter(l.baseUrl,(c=(i=window.FluidTopicsClientConfiguration)===null||i===void 0?void 0:i.predefinedSorts)!==null&&c!==void 0?c:{},r??20,l.searchInAllLanguagesAllowed,o??`${u}-${p}`)}};var Cn=class{urlToSearchRequest(r){return gr.get().parse(r)}searchRequestToUrl(r){return gr.get().serialize(r)}};window.FluidTopicsUrlService=new Cn;var lt=C(k());var St=class e extends CustomEvent{constructor(r){super(e.eventName,{detail:{currentItem:r}})}};St.eventName="change";var En=class{itemName(r){return`fluid-topics-history-item-${r}`}get(r){let o=sessionStorage.getItem(this.itemName(r));return o?JSON.parse(o):void 0}set(r,o){sessionStorage.setItem(this.itemName(r),JSON.stringify(o))}},vc=new En;var io=class e extends lt.WithEventBus{static build(){return new e(window.history,vc,()=>window.location,!1)}constructor(r,o,n,a){var i,c;super(),this.history=r,this.historyStorage=o,this.windowLocation=n,this.states=[],this.realPushState=r.pushState,this.realReplaceState=r.replaceState,this.initialIndex=(c=(i=r.state)===null||i===void 0?void 0:i.index)!==null&&c!==void 0?c:r.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(a)}setCurrentState(r,o=!1){let n=o&&this.currentIndex===r.index-1;this.currentState={...this.buildCurrentState(),...r},this.currentIndex=this.currentState.index,this.states[this.currentIndex]=this.currentState,n&&(this.states=this.states.slice(0,this.currentIndex+1)),this.historyStorage.set(this.currentIndex,this.currentState),(0,lt.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,window.location.href]),setTimeout(()=>this.dispatchEvent(new St(this.currentItem())),0)}installProxies(){let r=o=>(n,a,[i,c,l])=>{let u=o(),p={...u===this.currentIndex?this.currentState:void 0,...i,index:u,href:typeof l=="string"?l:(l??this.windowLocation()).href};n.apply(a,[p,c,l]),this.setCurrentState(p,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:r(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:r(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",r=>this.setCurrentState(r.state)),document.querySelector("title")==null&&document.head.append(document.createElement("title")),new MutationObserver(()=>this.updateCurrentState({title:document.title})).observe(document.querySelector("title"),{subtree:!0,characterData:!0,childList:!0})}initData(r){for(let o=this.history.length-1;o>=0;o--)r?this.states[o]=this.historyStorage.get(o):setTimeout(()=>this.states[o]=this.historyStorage.get(o),this.history.length-o)}updateCurrentState(r,o=!1){var n,a,i;let c={...this.buildCurrentState(),...r,index:this.currentIndex,title:(n=r?.title)!==null&&n!==void 0?n:this.currentState.title},l=o?(a=r?.majorState)!==null&&a!==void 0?a:this.currentState.majorState:(i=this.currentState.majorState)!==null&&i!==void 0?i:r?.majorState;l!=null&&(c.majorState=l),this.setCurrentState(c)}addHistoryChangeListener(r){this.addEventListener(St.eventName,r)}removeHistoryChangeListener(r){this.removeEventListener(St.eventName,r)}currentItem(){return(0,lt.deepCopy)(this.currentState)}back(){let r=this.previousMajorPosition();r>=0?this.history.go(r-this.currentIndex):this.currentIndex!==this.initialIndex?this.history.go(this.initialIndex-this.currentIndex):this.history.back()}backwardItem(){return(0,lt.deepCopy)(this.states[this.previousMajorPosition()])}previousMajorPosition(){let r=this.currentIndex;for(;r>0&&!this.isMajorState(r);)r--;return this.previousExistingPosition(r)}forward(){let r=this.nextMajorPosition();r<this.states.length?this.history.go(r-this.currentIndex):this.history.forward()}forwardItem(){return(0,lt.deepCopy)(this.states[this.nextMajorPosition()])}nextMajorPosition(){let r=this.currentIndex;do r++;while(r<this.states.length&&!this.isMajorState(r));do r++;while(r<this.states.length&&!this.isMajorState(r));return this.previousExistingPosition(r)}previousExistingPosition(r){let o=r;do o--;while(o>0&&!this.hasState(o));return o}buildCurrentState(){var r,o;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(o=(r=this.history.state)===null||r===void 0?void 0:r.title)!==null&&o!==void 0?o:document.title}}hasState(r){return this.states[r]!=null}isMajorState(r){var o,n;return this.hasState(r)&&((n=(o=this.states[r])===null||o===void 0?void 0:o.majorState)!==null&&n!==void 0?n:!0)}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=io.build(),window.FluidTopicsHistoryService={currentItem:()=>window.FluidTopicsInternalHistoryService.currentItem(),back:()=>window.FluidTopicsInternalHistoryService.back(),forward:()=>window.FluidTopicsInternalHistoryService.forward(),backwardItem:()=>window.FluidTopicsInternalHistoryService.backwardItem(),forwardItem:()=>window.FluidTopicsInternalHistoryService.forwardItem(),addHistoryChangeListener:e=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(e),removeHistoryChangeListener:e=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(e)});(0,Sc.customElement)("ft-app-context")(Z);var Ac=C(oe());var nd=C(k());function Oc(e){return e.match(/^[\w-]+\.[\w-]+$/)}var ad=function(e,r,o,n){var a=arguments.length,i=a<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,r,o,n);else for(var l=e.length-1;l>=0;l--)(c=e[l])&&(i=(a<3?c(i):a>3?c(r,o,i):c(r,o))||i);return a>3&&i&&Object.defineProperty(r,o,i),i},Cc=Symbol("i18nAttributes"),Ec=Symbol("i18nListAttributes"),Rc=Symbol("i18nProperties"),so=Symbol("i18nContexts"),br=Symbol("i18nUnsubs");function uo(e){var r,o;class n extends e{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[r]=new Map,this[o]=new Map}getI18nService(i){return i??this.useCustomMessageContexts?Hr:Wt}i18n(i){var c;this.hasI18nContext(i.context)||this.addI18nContext(i.context,void 0,i.custom);let l=(c=i.args)!==null&&c!==void 0?c:i.argsProvider?i.argsProvider(this):[];return this.getI18nService(i.custom).resolveMessage(i.context,i.key,...l)}customI18n(i,c){if(Oc(i)){let[l,u]=i.split(".");return this.i18n({custom:!0,context:l,key:u,...c})||i}return i}firstUpdated(i){super.firstUpdated(i),this.updateI18nAttributes(()=>!0),this.updateI18nProperties(()=>!0)}update(i){super.update(i),this.updateI18nAttributes((c,l,u)=>i.has(l)||typeof c.argsProvider=="function"),this.updateI18nProperties(c=>typeof c.argsProvider=="function")}onI18nUpdate(i){this.updateI18nAttributes((c,l,u)=>{var p;return((p=u?.context)===null||p===void 0?void 0:p.toLowerCase())===i}),this.updateI18nProperties(c=>c.context.toLowerCase()===i),this.requestUpdate()}updateI18nAttributes(i){var c,l;let u=this,p=(m,y,g)=>g?.context&&g.key&&i(m,y,g)?{...g,message:this.i18n({context:g.context,key:g.key,...m})}:g;(c=this[Cc])===null||c===void 0||c.forEach((m,y)=>u[y]=p(m,y,u[y])),(l=this[Ec])===null||l===void 0||l.forEach((m,y)=>{var g;return u[y]=(g=u[y])===null||g===void 0?void 0:g.map(v=>p(m,y,v))})}updateI18nProperties(i){var c;(c=this[Rc])===null||c===void 0||c.forEach((l,u)=>{i(l,u)&&(this[u]=this.i18n(l))})}addI18nMessages(i,c,l){console.warn('Deprecated usage of method "addI18nMessages", use "addI18nContext" instead.'),this.addI18nContext(i,c,l)}addI18nContext(i,c,l){let u=(typeof i=="string"?i:i.name).toLowerCase();l=typeof i=="string"?l:i.custom,this[so].set(u,{isCustomContext:l}),this[br].has(u)||this[br].set(u,this.getI18nService(l).subscribe(u,()=>this.onI18nUpdate(u))),this.getI18nService(l).prepareContext(u,c)}hasI18nContext(i){return this[so].has(i.toLowerCase())}connectedCallback(){super.connectedCallback(),this[so].forEach((i,c)=>this.addI18nContext(c,void 0,i.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[br].forEach(i=>i()),this[br].clear()}}return r=so,o=br,ad([(0,Ac.property)({type:Boolean})],n.prototype,"useCustomMessageContexts",void 0),n}var wc=class extends uo(lo.FtLitElement){},co=class extends uo(lo.FtLitElementRedux){};var xr=function(e,r,o,n){var a=arguments.length,i=a<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,r,o,n);else for(var l=e.length-1;l>=0;l--)(c=e[l])&&(i=(a<3?c(i):a>3?c(r,o,i):c(r,o))||i);return a>3&&i&&Object.defineProperty(r,o,i),i},Te=class extends co{constructor(){super(),this.editorMode=!1,this.addStore(_)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":po.nothing:po.html`
1145
+ `}update(r){var o,n,a,i,c;super.update(r),r.has("baseUrl")&&(_.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),r.has("apiIntegrationIdentifier")&&_.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),r.has("uiLocale")&&_.actions.uiLocale(this.uiLocale),r.has("metadataConfiguration")&&_.actions.metadataConfiguration(this.metadataConfiguration),r.has("noCustom")&&_.actions.noCustom(this.noCustom),r.has("editorMode")&&_.actions.editorMode(this.editorMode),r.has("noCustomComponent")&&_.actions.noCustomComponent(this.noCustomComponent),r.has("session")&&_.actions.session(this.session),r.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(l=>Wt.addContext(l)),r.has("openExternalDocumentInNewTab")&&_.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),r.has("navigatorOnline")&&_.actions.navigatorOnline(this.navigatorOnline),r.has("forcedOffline")&&_.actions.forcedOffline(this.forcedOffline),r.has("localesConfiguration")&&(_.actions.defaultLocales((o=this.localesConfiguration)===null||o===void 0?void 0:o.defaultLocales),_.actions.availableUiLocales((a=(n=this.localesConfiguration)===null||n===void 0?void 0:n.availableUiLocales)!==null&&a!==void 0?a:[]),_.actions.searchInAllLanguagesAllowed((c=(i=this.localesConfiguration)===null||i===void 0?void 0:i.allLanguagesAllowed)!==null&&c!==void 0?c:!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 r=await this.apiProvider().getCurrentSession();return r.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.session=void 0},r.idleTimeoutInMillis),r})}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration())}async updateLocalesConfiguration(){this.localesConfiguration=await this.cache.get("localesConfiguration",()=>this.apiProvider().getLocalesConfiguration())}};Z.elementDefinitions={};Z.styles=Vi;ie([(0,me.property)()],Z.prototype,"baseUrl",void 0);ie([(0,me.property)()],Z.prototype,"apiIntegrationIdentifier",void 0);ie([(0,me.property)()],Z.prototype,"uiLocale",void 0);ie([(0,Re.jsonProperty)(null)],Z.prototype,"availableUiLocales",void 0);ie([(0,Re.jsonProperty)(null)],Z.prototype,"metadataConfiguration",void 0);ie([(0,me.property)({type:Boolean})],Z.prototype,"editorMode",void 0);ie([(0,me.property)({type:Boolean})],Z.prototype,"noCustom",void 0);ie([(0,me.property)({type:Boolean})],Z.prototype,"openExternalDocumentInNewTab",void 0);ie([(0,me.property)({converter:{fromAttribute(e){return e==="false"?!1:e==="true"||(e??!1)}}})],Z.prototype,"noCustomComponent",void 0);ie([(0,me.property)({type:Boolean})],Z.prototype,"withManualResources",void 0);ie([(0,me.property)({type:Boolean})],Z.prototype,"navigatorOnline",void 0);ie([(0,me.property)({type:Boolean})],Z.prototype,"forcedOffline",void 0);ie([(0,me.property)({type:Object})],Z.prototype,"apiProvider",void 0);ie([(0,Re.jsonProperty)([])],Z.prototype,"messageContexts",void 0);ie([(0,Re.jsonProperty)(void 0)],Z.prototype,"session",void 0);ie([(0,me.state)()],Z.prototype,"localesConfiguration",void 0);var ed=C(oe());function hl(e,r){if(e===r)return!0;if(e&&r&&typeof e=="object"&&typeof r=="object"){if(e.constructor!==r.constructor)return!1;var o,n,a;if(Array.isArray(e)){if(o=e.length,o!=r.length)return!1;for(n=o;n--!==0;)if(!Fr(e[n],r[n]))return!1;return!0}if(e instanceof Map&&r instanceof Map){if(e.size!==r.size)return!1;for(n of e.entries())if(!r.has(n[0]))return!1;for(n of e.entries())if(!Fr(n[1],r.get(n[0])))return!1;return!0}if(e instanceof Set&&r instanceof Set){if(e.size!==r.size)return!1;for(n of e.entries())if(!r.has(n[0]))return!1;return!0}if(e.constructor===RegExp)return e.source===r.source&&e.flags===r.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===r.valueOf();let i=c=>Object.keys(c).filter(l=>c[l]!=null);if(a=i(e),o=a.length,o!==i(r).length)return!1;for(n=o;n--!==0;)if(!Object.prototype.hasOwnProperty.call(r,a[n]))return!1;for(n=o;n--!==0;){let c=a[n];if(!Fr(e[c],r[c]))return!1}return!0}return e!==e&&r!==r||e==null&&r==null}function Fr(e,r){try{return hl(e,r)}catch{return!1}}function zr(e,r){return!Fr(e,r)}var yl=C(oe(),1);var Gr=class{constructor(){this.queue=[]}add(r,o=!1){o&&this.clear(r.type),this.queue.push(r)}consume(r){let o=this.queue.find(n=>n.type===r);return o&&(this.queue=this.queue.filter(n=>n!==o)),o}clear(r){typeof r=="string"?this.queue=this.queue.filter(o=>o.type!==r):this.queue=this.queue.filter(o=>!r.test(o.type))}};var Ht=C(oe(),1);var Yi=C(oe(),1);function Xi(e,r){let o=()=>JSON.parse(JSON.stringify(e));return(0,Yi.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:zr,...r??{}})}var jr=class{constructor(r=0){this.timeout=r,this.callbacks=[]}run(r,o){return this.callbacks=[r],this.debounce(o)}queue(r,o){return this.callbacks.push(r),this.debounce(o)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(r){return this.promise==null&&(this.promise=new Promise((o,n)=>{this.resolvePromise=o,this.rejectPromise=n})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),r??this.timeout),this.promise}async runCallbacks(){var r,o;let n=[...this.callbacks];this.callbacks=[];let a=(r=this.rejectPromise)!==null&&r!==void 0?r:()=>null,i=(o=this.resolvePromise)!==null&&o!==void 0?o:()=>null;this.clearPromise();for(let c of n)try{await c()}catch(l){a(l);return}i(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var Ji=C(G(),1);var Kr=globalThis,ml=Kr.ShadowRoot&&(Kr.ShadyCSS===void 0||Kr.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,ng=Symbol();var Qi=(e,r)=>{if(ml)e.adoptedStyleSheets=r.map(o=>o instanceof CSSStyleSheet?o:o.styleSheet);else for(let o of r){let n=document.createElement("style"),a=Kr.litNonce;a!==void 0&&n.setAttribute("nonce",a),n.textContent=o.cssText,e.appendChild(n)}};var Vr=class extends Ji.LitElement{createRenderRoot(){let r=this.constructor;r.elementDefinitions&&!r.registry&&(r.registry=new CustomElementRegistry,Object.entries(r.elementDefinitions).forEach(([a,i])=>r.registry.define(a,i)));let o={...r.shadowRootOptions,customElements:r.registry},n=this.renderOptions.creationScope=this.attachShadow(o);return Qi(n,r.elementStyles),n}};function es(e,r,...o){var n;let a=e.querySelector(r);for(let i of o)a=(n=a?.shadowRoot)===null||n===void 0?void 0:n.querySelector(i);return a}var dr=function(e,r,o,n){var a=arguments.length,i=a<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,r,o,n);else for(var l=e.length-1;l>=0;l--)(c=e[l])&&(i=(a<3?c(i):a>3?c(r,o,i):c(r,o))||i);return a>3&&i&&Object.defineProperty(r,o,i),i},ns,ts=Symbol("constructorPrototype"),rs=Symbol("constructorName"),as=Symbol("exportpartsDebouncer"),os=Symbol("dynamicDependenciesLoaded"),Ve=class extends Vr{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[ns]=new jr(5),this[rs]=this.constructor.name,this[ts]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[rs]&&Object.setPrototypeOf(this,this[ts])}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 r=this.constructor;r[os]||(r[os]=!0,this.importDynamicDependencies())}importDynamicDependencies(){}updated(r){super.updated(r),this.updateComplete.then(()=>{this.contentAvailableCallback(r),this.focusElementToFocus(r),this.applyCustomStylesheet(r),this.scheduleExportpartsUpdate()})}contentAvailableCallback(r){}focusElementToFocus(r){if(r.has("elementToFocus")&&this.elementToFocus!=null){let{element:o,selector:n,shadowPath:a}=this.elementToFocus;if(n!=null){let i=[...a??[],n];o=es(this.shadowRoot,...i)}o?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||o?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(r){var o,n,a;if(((n=(o=this.shadowRoot)===null||o===void 0?void 0:o.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&n!==void 0?n:[]).forEach(i=>i.remove()),this.useAdoptedStyleSheets){if(r.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((a=this.customStylesheet)!==null&&a!==void 0?a:"")}catch(i){console.error(i,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let i=document.createElement("style");i.classList.add("ft-lit-element--custom-stylesheet"),i.innerHTML=this.customStylesheet,this.shadowRoot.append(i)}}scheduleExportpartsUpdate(){var r,o,n;(!((r=this.exportpartsPrefix)===null||r===void 0)&&r.trim()||(n=(o=this.exportpartsPrefixes)===null||o===void 0?void 0:o.length)!==null&&n!==void 0&&n)&&this[as].run(()=>{var a,i;!((a=this.exportpartsPrefix)===null||a===void 0)&&a.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((i=this.exportpartsPrefixes)===null||i===void 0?void 0:i.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})}setExportpartsAttribute(r){var o,n,a,i,c,l;let u=g=>g!=null&&g.trim().length>0,p=r.filter(u).map(g=>g.trim());if(p.length===0){this.removeAttribute("exportparts");return}let m=new Set;for(let g of(n=(o=this.shadowRoot)===null||o===void 0?void 0:o.querySelectorAll("[part],[exportparts]"))!==null&&n!==void 0?n:[]){let v=(i=(a=g.getAttribute("part"))===null||a===void 0?void 0:a.split(" "))!==null&&i!==void 0?i:[],x=(l=(c=g.getAttribute("exportparts"))===null||c===void 0?void 0:c.split(",").map(S=>S.split(":")[1]))!==null&&l!==void 0?l:[];new Array(...v,...x).filter(u).map(S=>S.trim()).forEach(S=>m.add(S))}if(m.size===0){this.removeAttribute("exportparts");return}let y=[...m.values()].flatMap(g=>p.map(v=>`${g}:${v}--${g}`));this.setAttribute("exportparts",[...this.part,...y].join(", "))}};ns=as;dr([(0,Ht.property)()],Ve.prototype,"exportpartsPrefix",void 0);dr([Xi([])],Ve.prototype,"exportpartsPrefixes",void 0);dr([(0,Ht.property)()],Ve.prototype,"customStylesheet",void 0);dr([(0,Ht.property)()],Ve.prototype,"elementToFocus",void 0);dr([(0,Ht.state)()],Ve.prototype,"useAdoptedStyleSheets",void 0);function ur(e){var r;return(r=e?.isFtReduxStore)!==null&&r!==void 0?r:!1}var is,ss,cs,pr=Symbol("internalReduxEventsUnsubscribers"),ot=Symbol("internalStoresUnsubscribers"),bt=Symbol("internalStores"),fr=class extends Ve{constructor(){super(...arguments),this[is]=new Map,this[ss]=new Map,this[cs]=new Map}get reduxConstructor(){return this.constructor}update(r){super.update(r),[...this.reduxConstructor.reduxReactiveProperties].some(o=>r.has(o))&&this.updateFromStores()}getUnnamedStore(){if(this[bt].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[bt].values()][0]}getStore(r){return r==null?this.getUnnamedStore():this[bt].get(r)}addStore(r,o){var n;o=(n=o??(ur(r)?r.name:void 0))!==null&&n!==void 0?n:"default-store",this.unsubscribeFromStore(o),this[bt].set(o,r),this.subscribeToStore(o,r),this.updateFromStores()}removeStore(r){let o=typeof r=="string"?r:r.name;this.unsubscribeFromStore(o),this[bt].delete(o)}setupStores(){this.unsubscribeFromStores(),this[bt].forEach((r,o)=>this.subscribeToStore(o,r)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((r,o)=>{let n=this.constructor.getPropertyOptions(o);if(!n?.attribute||!this.hasAttribute(typeof n?.attribute=="string"?n.attribute:o)){let a=this.getStore(r.store);a&&(r.store?this[ot].has(r.store):this[ot].size>0)&&(this[o]=r.selector(a.getState(),this))}})}subscribeToStore(r,o){var n;this[ot].set(r,o.subscribe(()=>this.updateFromStores())),this[pr].set(r,[]),ur(o)&&o.eventBus&&((n=this.reduxConstructor.reduxEventListeners)===null||n===void 0||n.forEach((a,i)=>{if(typeof this[i]=="function"&&(!a.store||o.name===a.store)){let c=l=>this[i](l);o.addEventListener(a.eventName,c),this[pr].get(r).push(()=>o.removeEventListener(a.eventName,c))}})),this.onStoreAvailable(r)}unsubscribeFromStores(){this[ot].forEach((r,o)=>this.unsubscribeFromStore(o))}unsubscribeFromStore(r){var o;this[ot].has(r)&&this[ot].get(r)(),this[ot].delete(r),(o=this[pr].get(r))===null||o===void 0||o.forEach(n=>n()),this[pr].delete(r)}onStoreAvailable(r){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}};is=ot,ss=bt,cs=pr;fr.reduxProperties=new Map;fr.reduxReactiveProperties=new Set;fr.reduxEventListeners=new Map;function Ce(e){for(var r=arguments.length,o=Array(r>1?r-1:0),n=1;n<r;n++)o[n-1]=arguments[n];if(0)var a,i;throw Error("[Immer] minified error nr: "+e+(o.length?" "+o.map(function(c){return"'"+c+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Ze(e){return!!e&&!!e[F]}function Ne(e){var r;return!!e&&(function(o){if(!o||typeof o!="object")return!1;var n=Object.getPrototypeOf(o);if(n===null)return!0;var a=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return a===Object||typeof a=="function"&&Function.toString.call(a)===El}(e)||Array.isArray(e)||!!e[ys]||!!(!((r=e.constructor)===null||r===void 0)&&r[ys])||on(e)||nn(e))}function xt(e,r,o){o===void 0&&(o=!1),Gt(e)===0?(o?Object.keys:zt)(e).forEach(function(n){o&&typeof n=="symbol"||r(n,e[n],e)}):e.forEach(function(n,a){return r(a,n,e)})}function Gt(e){var r=e[F];return r?r.i>3?r.i-4:r.i:Array.isArray(e)?1:on(e)?2:nn(e)?3:0}function Ft(e,r){return Gt(e)===2?e.has(r):Object.prototype.hasOwnProperty.call(e,r)}function gl(e,r){return Gt(e)===2?e.get(r):e[r]}function ms(e,r,o){var n=Gt(e);n===2?e.set(r,o):n===3?e.add(o):e[r]=o}function gs(e,r){return e===r?e!==0||1/e==1/r:e!=e&&r!=r}function on(e){return Ol&&e instanceof Map}function nn(e){return Cl&&e instanceof Set}function nt(e){return e.o||e.t}function an(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var r=vs(e);delete r[F];for(var o=zt(r),n=0;n<o.length;n++){var a=o[n],i=r[a];i.writable===!1&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(r[a]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[a]})}return Object.create(Object.getPrototypeOf(e),r)}function sn(e,r){return r===void 0&&(r=!1),cn(e)||Ze(e)||!Ne(e)||(Gt(e)>1&&(e.set=e.add=e.clear=e.delete=bl),Object.freeze(e),r&&xt(e,function(o,n){return sn(n,!0)},!0)),e}function bl(){Ce(2)}function cn(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function $e(e){var r=rn[e];return r||Ce(18,e),r}function xl(e,r){rn[e]||(rn[e]=r)}function Jo(){return yr}function qo(e,r){r&&($e("Patches"),e.u=[],e.s=[],e.v=r)}function Zr(e){en(e),e.p.forEach(vl),e.p=null}function en(e){e===yr&&(yr=e.l)}function ls(e){return yr={p:[],l:yr,h:e,m:!0,_:0}}function vl(e){var r=e[F];r.i===0||r.i===1?r.j():r.g=!0}function Yo(e,r){r._=r.p.length;var o=r.p[0],n=e!==void 0&&e!==o;return r.h.O||$e("ES5").S(r,e,n),n?(o[F].P&&(Zr(r),Ce(4)),Ne(e)&&(e=qr(r,e),r.l||Yr(r,e)),r.u&&$e("Patches").M(o[F].t,e,r.u,r.s)):e=qr(r,o,[]),Zr(r),r.u&&r.v(r.u,r.s),e!==xs?e:void 0}function qr(e,r,o){if(cn(r))return r;var n=r[F];if(!n)return xt(r,function(l,u){return ds(e,n,r,l,u,o)},!0),r;if(n.A!==e)return r;if(!n.P)return Yr(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var a=n.i===4||n.i===5?n.o=an(n.k):n.o,i=a,c=!1;n.i===3&&(i=new Set(a),a.clear(),c=!0),xt(i,function(l,u){return ds(e,n,a,l,u,o,c)}),Yr(e,a,!1),o&&e.u&&$e("Patches").N(n,o,e.u,e.s)}return n.o}function ds(e,r,o,n,a,i,c){if(Ze(a)){var l=qr(e,a,i&&r&&r.i!==3&&!Ft(r.R,n)?i.concat(n):void 0);if(ms(o,n,l),!Ze(l))return;e.m=!1}else c&&o.add(a);if(Ne(a)&&!cn(a)){if(!e.h.D&&e._<1)return;qr(e,a),r&&r.A.l||Yr(e,a)}}function Yr(e,r,o){o===void 0&&(o=!1),!e.l&&e.h.D&&e.m&&sn(r,o)}function Xo(e,r){var o=e[F];return(o?nt(o):e)[r]}function us(e,r){if(r in e)for(var o=Object.getPrototypeOf(e);o;){var n=Object.getOwnPropertyDescriptor(o,r);if(n)return n;o=Object.getPrototypeOf(o)}}function at(e){e.P||(e.P=!0,e.l&&at(e.l))}function Qo(e){e.o||(e.o=an(e.t))}function tn(e,r,o){var n=on(r)?$e("MapSet").F(r,o):nn(r)?$e("MapSet").T(r,o):e.O?function(a,i){var c=Array.isArray(a),l={i:c?1:0,A:i?i.A:Jo(),P:!1,I:!1,R:{},l:i,t:a,k:null,o:null,j:null,C:!1},u=l,p=mr;c&&(u=[l],p=hr);var m=Proxy.revocable(u,p),y=m.revoke,g=m.proxy;return l.k=g,l.j=y,g}(r,o):$e("ES5").J(r,o);return(o?o.A:Jo()).p.push(n),n}function Sl(e){return Ze(e)||Ce(22,e),function r(o){if(!Ne(o))return o;var n,a=o[F],i=Gt(o);if(a){if(!a.P&&(a.i<4||!$e("ES5").K(a)))return a.t;a.I=!0,n=ps(o,i),a.I=!1}else n=ps(o,i);return xt(n,function(c,l){a&&gl(a.t,c)===l||ms(n,c,r(l))}),i===3?new Set(n):n}(e)}function ps(e,r){switch(r){case 2:return new Map(e);case 3:return Array.from(e)}return an(e)}function bs(){function e(c,l){var u=i[c];return u?u.enumerable=l:i[c]=u={configurable:!0,enumerable:l,get:function(){var p=this[F];return mr.get(p,c)},set:function(p){var m=this[F];mr.set(m,c,p)}},u}function r(c){for(var l=c.length-1;l>=0;l--){var u=c[l][F];if(!u.P)switch(u.i){case 5:n(u)&&at(u);break;case 4:o(u)&&at(u)}}}function o(c){for(var l=c.t,u=c.k,p=zt(u),m=p.length-1;m>=0;m--){var y=p[m];if(y!==F){var g=l[y];if(g===void 0&&!Ft(l,y))return!0;var v=u[y],x=v&&v[F];if(x?x.t!==g:!gs(v,g))return!0}}var S=!!l[F];return p.length!==zt(l).length+(S?0:1)}function n(c){var l=c.k;if(l.length!==c.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 a(c){c.g&&Ce(3,JSON.stringify(nt(c)))}var i={};xl("ES5",{J:function(c,l){var u=Array.isArray(c),p=function(y,g){if(y){for(var v=Array(g.length),x=0;x<g.length;x++)Object.defineProperty(v,""+x,e(x,!0));return v}var S=vs(g);delete S[F];for(var T=zt(S),R=0;R<T.length;R++){var N=T[R];S[N]=e(N,y||!!S[N].enumerable)}return Object.create(Object.getPrototypeOf(g),S)}(u,c),m={i:u?5:4,A:l?l.A:Jo(),P:!1,I:!1,R:{},l,t:c,k:p,o:null,g:!1,C:!1};return Object.defineProperty(p,F,{value:m,writable:!0}),p},S:function(c,l,u){u?Ze(l)&&l[F].A===c&&r(c.p):(c.u&&function p(m){if(m&&typeof m=="object"){var y=m[F];if(y){var g=y.t,v=y.k,x=y.R,S=y.i;if(S===4)xt(v,function(B){B!==F&&(g[B]!==void 0||Ft(g,B)?x[B]||p(v[B]):(x[B]=!0,at(y)))}),xt(g,function(B){v[B]!==void 0||Ft(v,B)||(x[B]=!1,at(y))});else if(S===5){if(n(y)&&(at(y),x.length=!0),v.length<g.length)for(var T=v.length;T<g.length;T++)x[T]=!1;else for(var R=g.length;R<v.length;R++)x[R]=!0;for(var N=Math.min(v.length,g.length),P=0;P<N;P++)v.hasOwnProperty(P)||(x[P]=!0),x[P]===void 0&&p(v[P])}}}}(c.p[0]),r(c.p))},K:function(c){return c.i===4?o(c):n(c)}})}var fs,yr,ln=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",Ol=typeof Map<"u",Cl=typeof Set<"u",hs=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",xs=ln?Symbol.for("immer-nothing"):((fs={})["immer-nothing"]=!0,fs),ys=ln?Symbol.for("immer-draftable"):"__$immer_draftable",F=ln?Symbol.for("immer-state"):"__$immer_state";var El=""+Object.prototype.constructor,zt=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,vs=Object.getOwnPropertyDescriptors||function(e){var r={};return zt(e).forEach(function(o){r[o]=Object.getOwnPropertyDescriptor(e,o)}),r},rn={},mr={get:function(e,r){if(r===F)return e;var o=nt(e);if(!Ft(o,r))return function(a,i,c){var l,u=us(i,c);return u?"value"in u?u.value:(l=u.get)===null||l===void 0?void 0:l.call(a.k):void 0}(e,o,r);var n=o[r];return e.I||!Ne(n)?n:n===Xo(e.t,r)?(Qo(e),e.o[r]=tn(e.A.h,n,e)):n},has:function(e,r){return r in nt(e)},ownKeys:function(e){return Reflect.ownKeys(nt(e))},set:function(e,r,o){var n=us(nt(e),r);if(n?.set)return n.set.call(e.k,o),!0;if(!e.P){var a=Xo(nt(e),r),i=a?.[F];if(i&&i.t===o)return e.o[r]=o,e.R[r]=!1,!0;if(gs(o,a)&&(o!==void 0||Ft(e.t,r)))return!0;Qo(e),at(e)}return e.o[r]===o&&(o!==void 0||r in e.o)||Number.isNaN(o)&&Number.isNaN(e.o[r])||(e.o[r]=o,e.R[r]=!0),!0},deleteProperty:function(e,r){return Xo(e.t,r)!==void 0||r in e.t?(e.R[r]=!1,Qo(e),at(e)):delete e.R[r],e.o&&delete e.o[r],!0},getOwnPropertyDescriptor:function(e,r){var o=nt(e),n=Reflect.getOwnPropertyDescriptor(o,r);return n&&{writable:!0,configurable:e.i!==1||r!=="length",enumerable:n.enumerable,value:o[r]}},defineProperty:function(){Ce(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){Ce(12)}},hr={};xt(mr,function(e,r){hr[e]=function(){return arguments[0]=arguments[0][0],r.apply(this,arguments)}}),hr.deleteProperty=function(e,r){return hr.set.call(this,e,r,void 0)},hr.set=function(e,r,o){return mr.set.call(this,e[0],r,o,e[0])};var wl=function(){function e(o){var n=this;this.O=hs,this.D=!0,this.produce=function(a,i,c){if(typeof a=="function"&&typeof i!="function"){var l=i;i=a;var u=n;return function(S){var T=this;S===void 0&&(S=l);for(var R=arguments.length,N=Array(R>1?R-1:0),P=1;P<R;P++)N[P-1]=arguments[P];return u.produce(S,function(B){var U;return(U=i).call.apply(U,[T,B].concat(N))})}}var p;if(typeof i!="function"&&Ce(6),c!==void 0&&typeof c!="function"&&Ce(7),Ne(a)){var m=ls(n),y=tn(n,a,void 0),g=!0;try{p=i(y),g=!1}finally{g?Zr(m):en(m)}return typeof Promise<"u"&&p instanceof Promise?p.then(function(S){return qo(m,c),Yo(S,m)},function(S){throw Zr(m),S}):(qo(m,c),Yo(p,m))}if(!a||typeof a!="object"){if((p=i(a))===void 0&&(p=a),p===xs&&(p=void 0),n.D&&sn(p,!0),c){var v=[],x=[];$e("Patches").M(a,p,v,x),c(v,x)}return p}Ce(21,a)},this.produceWithPatches=function(a,i){if(typeof a=="function")return function(p){for(var m=arguments.length,y=Array(m>1?m-1:0),g=1;g<m;g++)y[g-1]=arguments[g];return n.produceWithPatches(p,function(v){return a.apply(void 0,[v].concat(y))})};var c,l,u=n.produce(a,i,function(p,m){c=p,l=m});return typeof Promise<"u"&&u instanceof Promise?u.then(function(p){return[p,c,l]}):[u,c,l]},typeof o?.useProxies=="boolean"&&this.setUseProxies(o.useProxies),typeof o?.autoFreeze=="boolean"&&this.setAutoFreeze(o.autoFreeze)}var r=e.prototype;return r.createDraft=function(o){Ne(o)||Ce(8),Ze(o)&&(o=Sl(o));var n=ls(this),a=tn(this,o,void 0);return a[F].C=!0,en(n),a},r.finishDraft=function(o,n){var a=o&&o[F],i=a.A;return qo(i,n),Yo(void 0,i)},r.setAutoFreeze=function(o){this.D=o},r.setUseProxies=function(o){o&&!hs&&Ce(20),this.O=o},r.applyPatches=function(o,n){var a;for(a=n.length-1;a>=0;a--){var i=n[a];if(i.path.length===0&&i.op==="replace"){o=i.value;break}}a>-1&&(n=n.slice(a+1));var c=$e("Patches").$;return Ze(o)?c(o,n):this.produce(o,function(l){return c(l,n)})},e}(),ve=new wl,Al=ve.produce,bg=ve.produceWithPatches.bind(ve),xg=ve.setAutoFreeze.bind(ve),vg=ve.setUseProxies.bind(ve),Sg=ve.applyPatches.bind(ve),Og=ve.createDraft.bind(ve),Cg=ve.finishDraft.bind(ve),Xr=Al;function vt(e){"@babel/helpers - typeof";return vt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},vt(e)}function Ss(e,r){if(vt(e)!="object"||!e)return e;var o=e[Symbol.toPrimitive];if(o!==void 0){var n=o.call(e,r||"default");if(vt(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}function Os(e){var r=Ss(e,"string");return vt(r)=="symbol"?r:r+""}function Cs(e,r,o){return(r=Os(r))in e?Object.defineProperty(e,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[r]=o,e}function Es(e,r){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),o.push.apply(o,n)}return o}function dn(e){for(var r=1;r<arguments.length;r++){var o=arguments[r]!=null?arguments[r]:{};r%2?Es(Object(o),!0).forEach(function(n){Cs(e,n,o[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Es(Object(o)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(o,n))})}return e}function se(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 ws=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),un=function(){return Math.random().toString(36).substring(7).split("").join(".")},Qr={INIT:"@@redux/INIT"+un(),REPLACE:"@@redux/REPLACE"+un(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+un()}};function Rl(e){if(typeof e!="object"||e===null)return!1;for(var r=e;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return Object.getPrototypeOf(e)===r}function pn(e,r,o){var n;if(typeof r=="function"&&typeof o=="function"||typeof o=="function"&&typeof arguments[3]=="function")throw new Error(se(0));if(typeof r=="function"&&typeof o>"u"&&(o=r,r=void 0),typeof o<"u"){if(typeof o!="function")throw new Error(se(1));return o(pn)(e,r)}if(typeof e!="function")throw new Error(se(2));var a=e,i=r,c=[],l=c,u=!1;function p(){l===c&&(l=c.slice())}function m(){if(u)throw new Error(se(3));return i}function y(S){if(typeof S!="function")throw new Error(se(4));if(u)throw new Error(se(5));var T=!0;return p(),l.push(S),function(){if(T){if(u)throw new Error(se(6));T=!1,p();var N=l.indexOf(S);l.splice(N,1),c=null}}}function g(S){if(!Rl(S))throw new Error(se(7));if(typeof S.type>"u")throw new Error(se(8));if(u)throw new Error(se(9));try{u=!0,i=a(i,S)}finally{u=!1}for(var T=c=l,R=0;R<T.length;R++){var N=T[R];N()}return S}function v(S){if(typeof S!="function")throw new Error(se(10));a=S,g({type:Qr.REPLACE})}function x(){var S,T=y;return S={subscribe:function(N){if(typeof N!="object"||N===null)throw new Error(se(11));function P(){N.next&&N.next(m())}P();var B=T(P);return{unsubscribe:B}}},S[ws]=function(){return this},S}return g({type:Qr.INIT}),n={dispatch:g,subscribe:y,getState:m,replaceReducer:v},n[ws]=x,n}function Nl(e){Object.keys(e).forEach(function(r){var o=e[r],n=o(void 0,{type:Qr.INIT});if(typeof n>"u")throw new Error(se(12));if(typeof o(void 0,{type:Qr.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(se(13))})}function As(e){for(var r=Object.keys(e),o={},n=0;n<r.length;n++){var a=r[n];typeof e[a]=="function"&&(o[a]=e[a])}var i=Object.keys(o),c,l;try{Nl(o)}catch(u){l=u}return function(p,m){if(p===void 0&&(p={}),l)throw l;if(0)var y;for(var g=!1,v={},x=0;x<i.length;x++){var S=i[x],T=o[S],R=p[S],N=T(R,m);if(typeof N>"u"){var P=m&&m.type;throw new Error(se(14))}v[S]=N,g=g||N!==R}return g=g||i.length!==Object.keys(p).length,g?v:p}}function jt(){for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return r.length===0?function(n){return n}:r.length===1?r[0]:r.reduce(function(n,a){return function(){return n(a.apply(void 0,arguments))}})}function Rs(){for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return function(n){return function(){var a=n.apply(void 0,arguments),i=function(){throw new Error(se(15))},c={getState:a.getState,dispatch:function(){return i.apply(void 0,arguments)}},l=r.map(function(u){return u(c)});return i=jt.apply(void 0,l)(a.dispatch),dn(dn({},a),{},{dispatch:i})}}}function Ns(e){var r=function(n){var a=n.dispatch,i=n.getState;return function(c){return function(l){return typeof l=="function"?l(a,i,e):c(l)}}};return r}var Ts=Ns();Ts.withExtraArgument=Ns;var fn=Ts;var ks=function(){var e=function(r,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},e(r,o)};return function(r,o){if(typeof o!="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");e(r,o);function n(){this.constructor=r}r.prototype=o===null?Object.create(o):(n.prototype=o.prototype,new n)}}(),Tl=function(e,r){var o={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,c;return c={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(c[Symbol.iterator]=function(){return this}),c;function l(p){return function(m){return u([p,m])}}function u(p){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,a&&(i=p[0]&2?a.return:p[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,p[1])).done)return i;switch(a=0,i&&(p=[p[0]&2,i.value]),p[0]){case 0:case 1:i=p;break;case 4:return o.label++,{value:p[1],done:!1};case 5:o.label++,a=p[1],p=[0];continue;case 7:p=o.ops.pop(),o.trys.pop();continue;default:if(i=o.trys,!(i=i.length>0&&i[i.length-1])&&(p[0]===6||p[0]===2)){o=0;continue}if(p[0]===3&&(!i||p[1]>i[0]&&p[1]<i[3])){o.label=p[1];break}if(p[0]===6&&o.label<i[1]){o.label=i[1],i=p;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(p);break}i[2]&&o.ops.pop(),o.trys.pop();continue}p=r.call(e,o)}catch(m){p=[6,m],a=0}finally{n=i=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},Kt=function(e,r){for(var o=0,n=r.length,a=e.length;o<n;o++,a++)e[a]=r[o];return e},Ll=Object.defineProperty,Il=Object.defineProperties,_l=Object.getOwnPropertyDescriptors,Ls=Object.getOwnPropertySymbols,Pl=Object.prototype.hasOwnProperty,kl=Object.prototype.propertyIsEnumerable,Is=function(e,r,o){return r in e?Ll(e,r,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[r]=o},it=function(e,r){for(var o in r||(r={}))Pl.call(r,o)&&Is(e,o,r[o]);if(Ls)for(var n=0,a=Ls(r);n<a.length;n++){var o=a[n];kl.call(r,o)&&Is(e,o,r[o])}return e},hn=function(e,r){return Il(e,_l(r))},Dl=function(e,r,o){return new Promise(function(n,a){var i=function(u){try{l(o.next(u))}catch(p){a(p)}},c=function(u){try{l(o.throw(u))}catch(p){a(p)}},l=function(u){return u.done?n(u.value):Promise.resolve(u.value).then(i,c)};l((o=o.apply(e,r)).next())})};var Bl=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?jt:jt.apply(null,arguments)},Hg=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(e){return e}};function Ul(e){if(typeof e!="object"||e===null)return!1;var r=Object.getPrototypeOf(e);if(r===null)return!0;for(var o=r;Object.getPrototypeOf(o)!==null;)o=Object.getPrototypeOf(o);return r===o}var $l=function(e){ks(r,e);function r(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var a=e.apply(this,o)||this;return Object.setPrototypeOf(a,r.prototype),a}return Object.defineProperty(r,Symbol.species,{get:function(){return r},enumerable:!1,configurable:!0}),r.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return e.prototype.concat.apply(this,o)},r.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(r.bind.apply(r,Kt([void 0],o[0].concat(this)))):new(r.bind.apply(r,Kt([void 0],o.concat(this))))},r}(Array),Ml=function(e){ks(r,e);function r(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var a=e.apply(this,o)||this;return Object.setPrototypeOf(a,r.prototype),a}return Object.defineProperty(r,Symbol.species,{get:function(){return r},enumerable:!1,configurable:!0}),r.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return e.prototype.concat.apply(this,o)},r.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(r.bind.apply(r,Kt([void 0],o[0].concat(this)))):new(r.bind.apply(r,Kt([void 0],o.concat(this))))},r}(Array);function gn(e){return Ne(e)?Xr(e,function(){}):e}function Wl(e){return typeof e=="boolean"}function Hl(){return function(r){return Fl(r)}}function Fl(e){e===void 0&&(e={});var r=e.thunk,o=r===void 0?!0:r,n=e.immutableCheck,a=n===void 0?!0:n,i=e.serializableCheck,c=i===void 0?!0:i,l=new $l;if(o&&(Wl(o)?l.push(fn):l.push(fn.withExtraArgument(o.extraArgument))),0){if(a)var u;if(c)var p}return l}var yn=!0;function Ds(e){var r=Hl(),o=e||{},n=o.reducer,a=n===void 0?void 0:n,i=o.middleware,c=i===void 0?r():i,l=o.devTools,u=l===void 0?!0:l,p=o.preloadedState,m=p===void 0?void 0:p,y=o.enhancers,g=y===void 0?void 0:y,v;if(typeof a=="function")v=a;else if(Ul(a))v=As(a);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 x=c;if(typeof x=="function"&&(x=x(r),!yn&&!Array.isArray(x)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!yn&&x.some(function(B){return typeof B!="function"}))throw new Error("each middleware provided to configureStore must be a function");var S=Rs.apply(void 0,x),T=jt;u&&(T=Bl(it({trace:!yn},typeof u=="object"&&u)));var R=new Ml(S),N=R;Array.isArray(g)?N=Kt([S],g):typeof g=="function"&&(N=g(R));var P=T.apply(void 0,N);return pn(v,m,P)}function st(e,r){function o(){for(var n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];if(r){var i=r.apply(void 0,n);if(!i)throw new Error("prepareAction did not return an object");return it(it({type:e,payload:i.payload},"meta"in i&&{meta:i.meta}),"error"in i&&{error:i.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 Bs(e){var r={},o=[],n,a={addCase:function(i,c){var l=typeof i=="string"?i:i.type;if(l in r)throw new Error("addCase cannot be called with two reducers for the same action type");return r[l]=c,a},addMatcher:function(i,c){return o.push({matcher:i,reducer:c}),a},addDefaultCase:function(i){return n=i,a}};return e(a),[r,o,n]}function zl(e){return typeof e=="function"}function Gl(e,r,o,n){o===void 0&&(o=[]);var a=typeof r=="function"?Bs(r):[r,o,n],i=a[0],c=a[1],l=a[2],u;if(zl(e))u=function(){return gn(e())};else{var p=gn(e);u=function(){return p}}function m(y,g){y===void 0&&(y=u());var v=Kt([i[g.type]],c.filter(function(x){var S=x.matcher;return S(g)}).map(function(x){var S=x.reducer;return S}));return v.filter(function(x){return!!x}).length===0&&(v=[l]),v.reduce(function(x,S){if(S)if(Ze(x)){var T=x,R=S(T,g);return R===void 0?x:R}else{if(Ne(x))return Xr(x,function(N){return S(N,g)});var R=S(x,g);if(R===void 0){if(x===null)return x;throw Error("A case reducer on a non-draftable value must not return undefined")}return R}return x},y)}return m.getInitialState=u,m}function jl(e,r){return e+"/"+r}function Us(e){var r=e.name;if(!r)throw new Error("`name` is a required option for createSlice");typeof process<"u";var o=typeof e.initialState=="function"?e.initialState:gn(e.initialState),n=e.reducers||{},a=Object.keys(n),i={},c={},l={};a.forEach(function(m){var y=n[m],g=jl(r,m),v,x;"reducer"in y?(v=y.reducer,x=y.prepare):v=y,i[m]=v,c[g]=v,l[m]=x?st(g,x):st(g)});function u(){var m=typeof e.extraReducers=="function"?Bs(e.extraReducers):[e.extraReducers],y=m[0],g=y===void 0?{}:y,v=m[1],x=v===void 0?[]:v,S=m[2],T=S===void 0?void 0:S,R=it(it({},g),c);return Gl(o,function(N){for(var P in R)N.addCase(P,R[P]);for(var B=0,U=x;B<U.length;B++){var pe=U[B];N.addMatcher(pe.matcher,pe.reducer)}T&&N.addDefaultCase(T)})}var p;return{name:r,reducer:function(m,y){return p||(p=u()),p(m,y)},actions:l,caseReducers:i,getInitialState:function(){return p||(p=u()),p.getInitialState()}}}var Kl="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Vl=function(e){e===void 0&&(e=21);for(var r="",o=e;o--;)r+=Kl[Math.random()*64|0];return r},Zl=["name","message","stack","code"],mn=function(){function e(r,o){this.payload=r,this.meta=o}return e}(),_s=function(){function e(r,o){this.payload=r,this.meta=o}return e}(),ql=function(e){if(typeof e=="object"&&e!==null){for(var r={},o=0,n=Zl;o<n.length;o++){var a=n[o];typeof e[a]=="string"&&(r[a]=e[a])}return r}return{message:String(e)}},jg=function(){function e(r,o,n){var a=st(r+"/fulfilled",function(m,y,g,v){return{payload:m,meta:hn(it({},v||{}),{arg:g,requestId:y,requestStatus:"fulfilled"})}}),i=st(r+"/pending",function(m,y,g){return{payload:void 0,meta:hn(it({},g||{}),{arg:y,requestId:m,requestStatus:"pending"})}}),c=st(r+"/rejected",function(m,y,g,v,x){return{payload:v,error:(n&&n.serializeError||ql)(m||"Rejected"),meta:hn(it({},x||{}),{arg:g,requestId:y,rejectedWithValue:!!v,requestStatus:"rejected",aborted:m?.name==="AbortError",condition:m?.name==="ConditionError"})}}),l=!1,u=typeof AbortController<"u"?AbortController:function(){function m(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return m.prototype.abort=function(){},m}();function p(m){return function(y,g,v){var x=n?.idGenerator?n.idGenerator(m):Vl(),S=new u,T,R=!1;function N(B){T=B,S.abort()}var P=function(){return Dl(this,null,function(){var B,U,pe,Ie,ce,_e,te;return Tl(this,function(h){switch(h.label){case 0:return h.trys.push([0,4,,5]),Ie=(B=n?.condition)==null?void 0:B.call(n,m,{getState:g,extra:v}),Xl(Ie)?[4,Ie]:[3,2];case 1:Ie=h.sent(),h.label=2;case 2:if(Ie===!1||S.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return R=!0,ce=new Promise(function(b,I){return S.signal.addEventListener("abort",function(){return I({name:"AbortError",message:T||"Aborted"})})}),y(i(x,m,(U=n?.getPendingMeta)==null?void 0:U.call(n,{requestId:x,arg:m},{getState:g,extra:v}))),[4,Promise.race([ce,Promise.resolve(o(m,{dispatch:y,getState:g,extra:v,requestId:x,signal:S.signal,abort:N,rejectWithValue:function(b,I){return new mn(b,I)},fulfillWithValue:function(b,I){return new _s(b,I)}})).then(function(b){if(b instanceof mn)throw b;return b instanceof _s?a(b.payload,x,m,b.meta):a(b,x,m)})])];case 3:return pe=h.sent(),[3,5];case 4:return _e=h.sent(),pe=_e instanceof mn?c(null,x,m,_e.payload,_e.meta):c(_e,x,m),[3,5];case 5:return te=n&&!n.dispatchConditionRejection&&c.match(pe)&&pe.meta.condition,te||y(pe),[2,pe]}})})}();return Object.assign(P,{abort:N,requestId:x,arg:m,unwrap:function(){return P.then(Yl)}})}}return Object.assign(p,{pending:i,rejected:c,fulfilled:a,typePrefix:r})}return e.withTypes=function(){return e},e}();function Yl(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function Xl(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var $s="listener",Ms="completed",Ws="cancelled",Kg="task-"+Ws,Vg="task-"+Ms,Zg=$s+"-"+Ws,qg=$s+"-"+Ms;var bn="listenerMiddleware";var Yg=st(bn+"/add"),Xg=st(bn+"/removeAll"),Qg=st(bn+"/remove");var Ps,Jg=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(e){return(Ps||(Ps=Promise.resolve())).then(e).catch(function(r){return setTimeout(function(){throw r},0)})},Ql=function(e){return function(r){setTimeout(r,e)}},eb=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Ql(10);bs();function Jl(e,r){return class extends e{constructor(){super(...arguments),this.eventBus=r??document.createElement("span")}addEventListener(o,n,a){this.eventBus.addEventListener(o,n,a)}dispatchEvent(o){return this.eventBus.dispatchEvent(o)}removeEventListener(o,n,a){this.eventBus.removeEventListener(o,n,a)}}}var Jr=class extends Jl(Object){};window.ftReduxStores||(window.ftReduxStores={});var Hs=class e extends Jr{static get(r){var o;let n=typeof r=="string"?r:r.name,a=typeof r=="string"?void 0:r,i=window.ftReduxStores[n];if(ur(i))return i;if(a==null)return;let c=Us({...a,reducers:(o=a.reducers)!==null&&o!==void 0?o:{}}),l=Ds({reducer:(u,p)=>p.type==="CLEAR_FT_REDUX_STORE"?c.getInitialState():typeof p.type=="string"&&p.type.startsWith("DEFAULT_VALUE_SETTER__")?{...u,...p.overwrites}:c.reducer(u,p)});return window.ftReduxStores[a.name]=new e(c,l,a.eventBus)}constructor(r,o,n){super(),this.reduxSlice=r,this.reduxStore=o,this.isFtReduxStore=!0,this.commands=new Gr;let a=i=>i!=null?JSON.parse(JSON.stringify(i)):i;this.actions=new Proxy(this.reduxSlice.actions,{get:(i,c,l)=>{let u=c,p=i[u];return p?(...m)=>{let y=p(...m.map(a));return this.reduxStore.dispatch(y),y}:m=>{this.setState({[u]:a(m)})}}}),this.eventBus=n??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(r){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(r).join("_"),overwrites:r})}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(r){throw new Error("Not implemented yet.")}subscribe(r){return this.reduxStore.subscribe(r)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};var ao=C(k());var rd=C(zs(),1);var Gs;(function(e){e.black="black",e.green="green",e.blue="blue",e.purple="purple",e.red="red",e.orange="orange",e.yellow="yellow"})(Gs||(Gs={}));var js;(function(e){e.OFFICIAL="OFFICIAL",e.PERSONAL="PERSONAL",e.SHARED="SHARED"})(js||(js={}));var Ks;(function(e){e.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",e.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",e.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",e.PERSONAL_BOOK="PERSONAL_BOOK",e.MAP_ATTACHMENT="MAP_ATTACHMENT",e.RESOURCE="RESOURCE"})(Ks||(Ks={}));var Vs;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(Vs||(Vs={}));var Zs;(function(e){e.VALUE="VALUE",e.DATE="DATE",e.RANGE="RANGE"})(Zs||(Zs={}));var qs;(function(e){e.BOOKMARK__CREATE="BOOKMARK__CREATE",e.BOOKMARK__DELETE="BOOKMARK__DELETE",e.CASE_DEFLECTION__START="CASE_DEFLECTION__START",e.CASE_DEFLECTION__OPEN_TICKET="CASE_DEFLECTION__OPEN_TICKET",e.CASE_DEFLECTION__RATE="CASE_DEFLECTION__RATE",e.COLLECTION__CREATE="COLLECTION__CREATE",e.COLLECTION__UPDATE="COLLECTION__UPDATE",e.COLLECTION__DELETE="COLLECTION__DELETE",e.DOCUMENT__DISPLAY="DOCUMENT__DISPLAY",e.DOCUMENT__DOWNLOAD="DOCUMENT__DOWNLOAD",e.DOCUMENT__PRINT="DOCUMENT__PRINT",e.DOCUMENT__PROCESS="DOCUMENT__PROCESS",e.DOCUMENT__RATE="DOCUMENT__RATE",e.DOCUMENT__SEARCH="DOCUMENT__SEARCH",e.DOCUMENT__START_DISPLAY="DOCUMENT__START_DISPLAY",e.DOCUMENT__UNRATE="DOCUMENT__UNRATE",e.FEEDBACK__SEND="FEEDBACK__SEND",e.GEN_AI__COMPLETED_QUERY="GEN_AI__COMPLETED_QUERY",e.GEN_AI__RATE="GEN_AI__RATE",e.GENAI_CASE_DEFLECTION__START="GENAI_CASE_DEFLECTION__START",e.GENAI_CASE_DEFLECTION__OPEN_TICKET="GENAI_CASE_DEFLECTION__OPEN_TICKET",e.KHUB__PROCESS="KHUB__PROCESS",e.KHUB__SEARCH="KHUB__SEARCH",e.LABELS__DOWNLOAD="LABELS__DOWNLOAD",e.LINK__SHARE="LINK__SHARE",e.PAGE__DISPLAY="PAGE__DISPLAY",e.PERSONAL_BOOK__CREATE="PERSONAL_BOOK__CREATE",e.PERSONAL_BOOK__DELETE="PERSONAL_BOOK__DELETE",e.PERSONAL_BOOK__UPDATE="PERSONAL_BOOK__UPDATE",e.PERSONAL_TOPIC__CREATE="PERSONAL_TOPIC__CREATE",e.PERSONAL_TOPIC__UPDATE="PERSONAL_TOPIC__UPDATE",e.PERSONAL_TOPIC__DELETE="PERSONAL_TOPIC__DELETE",e.SAVED_SEARCH__CREATE="SAVED_SEARCH__CREATE",e.SAVED_SEARCH__DELETE="SAVED_SEARCH__DELETE",e.SAVED_SEARCH__UPDATE="SAVED_SEARCH__UPDATE",e.SEARCH_PAGE__SELECT="SEARCH_PAGE__SELECT",e.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU="SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU",e.TOPIC__DISPLAY="TOPIC__DISPLAY",e.TOPIC__RATE="TOPIC__RATE",e.TOPIC__START_DISPLAY="TOPIC__START_DISPLAY",e.TOPIC__UNRATE="TOPIC__UNRATE",e.USER__LOGIN="USER__LOGIN",e.USER__LOGOUT="USER__LOGOUT",e.HEARTBEAT="HEARTBEAT"})(qs||(qs={}));var Ys;(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"})(Ys||(Ys={}));var Xs;(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"})(Xs||(Xs={}));var Qs;(function(e){e.CLASSIC="CLASSIC",e.CUSTOM="CUSTOM",e.DESIGNER="DESIGNER"})(Qs||(Qs={}));var Js;(function(e){e.AND="AND",e.OR="OR",e.MONOVALUED="MONOVALUED"})(Js||(Js={}));var ec;(function(e){e.NONE="NONE",e.ALPHABET="ALPHABET",e.VERSION="VERSION"})(ec||(ec={}));var tc;(function(e){e.STARS="STARS",e.LIKE="LIKE",e.DICHOTOMOUS="DICHOTOMOUS",e.NO_RATING="NO_RATING"})(tc||(tc={}));var rc;(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"})(rc||(rc={}));var oc;(function(e){e.ASC="ASC",e.DESC="DESC"})(oc||(oc={}));var nc;(function(e){e.ALPHA="ALPHA",e.NATURAL="NATURAL"})(nc||(nc={}));var ac;(function(e){e.EVERYWHERE="EVERYWHERE",e.TITLE_ONLY="TITLE_ONLY",e.NONE="NONE"})(ac||(ac={}));var ic;(function(e){e.ARTICLE="ARTICLE",e.BOOK="BOOK",e.SHARED_BOOK="SHARED_BOOK"})(ic||(ic={}));var sc;(function(e){e.FLUIDTOPICS="FLUIDTOPICS",e.EXTERNAL="EXTERNAL"})(sc||(sc={}));var cc;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC",e.PERSONAL_BOOK="PERSONAL_BOOK",e.SHARED_BOOK="SHARED_BOOK"})(cc||(cc={}));var lc;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(lc||(lc={}));var dc;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC"})(dc||(dc={}));var uc;(function(e){e.DEFAULT="DEFAULT",e.DOCUMENTS="DOCUMENTS",e.ALL_TOPICS="ALL_TOPICS",e.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(uc||(uc={}));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.BEHAVIOR_DATA_USER="BEHAVIOR_DATA_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.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_USER",e.CONTENT_PUBLISHER="CONTENT_PUBLISHER",e.KHUB_ADMIN="KHUB_ADMIN",e.USERS_ADMIN="USERS_ADMIN",e.PORTAL_ADMIN="PORTAL_ADMIN",e.ADMIN="ADMIN"})(X||(X={}));var pc;(function(e){e.VALID="VALID",e.INVALID="INVALID"})(pc||(pc={}));var fc;(function(e){e.JSON="JSON",e.TEXT="TEXT"})(fc||(fc={}));var hc;(function(e){e.TEXT="TEXT",e.HTML="HTML"})(hc||(hc={}));var td={[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.GENERATIVE_AI_EXPORT_USER]:[X.GENERATIVE_AI_USER]};function yc(e,r){return e===r||(td[e]??[]).some(o=>yc(o,r))}function mc(e,r){return e==null?!1:(Array.isArray(e)?e:Array.isArray(e.roles)?e.roles:Array.isArray(e.profile?.roles)?e.profile.roles:[]).some(n=>yc(n,r))}var ro=class extends rt{async listMySearches(){let{session:r}=_.getState();return mc(r,X.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(r.profile.userId),5*60*1e3):[]}};var oo=class extends rt{async listMyBookmarks(){let r=_.getState().session;return r?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(r.profile.userId),5*60*1e3):[]}};var od="ft-user-assets",no=ao.FtReduxStore.get({name:od,initialState:{savedSearches:void 0,bookmarks:void 0}}),xn=class{constructor(){this.currentSession=_.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new oo,this.savedSearchesService=new ro,_.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var r;let{session:o}=_.getState();(0,ao.deepEqual)((r=this.currentSession)===null||r===void 0?void 0:r.profile,o?.profile)||(this.currentSession=o,this.clearMySearches(),this.reloadBookmarks())}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),no.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),no.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let r=await this.savedSearchesService.listMySearches();no.actions.savedSearches(r)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var r;if(this.bookmarksAreUsed){let o=!((r=this.currentSession)===null||r===void 0)&&r.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;no.actions.bookmarks(o)}}},Yb=new xn;var vn=class{addCommand(r,o=!1){_.commands.add(r,o)}consumeCommand(r){return _.commands.consume(r)}};window.FluidTopicsAppInfoStoreService=new vn;var gc=C(k()),Sn=class{highlightHtml(r,o,n){(0,gc.highlightHtml)(r,o,n)}};window.FluidTopicsHighlightHtmlService=new Sn;var bc=C(k());var On=class{isDate(r){var o,n,a,i;return(i=(a=((n=(o=_.getState().metadataConfiguration)===null||o===void 0?void 0:o.descriptors)!==null&&n!==void 0?n:[]).find(l=>l.key===r))===null||a===void 0?void 0:a.date)!==null&&i!==void 0?i:!1}format(r,o){var n,a,i;return bc.DateFormatter.format(r,(n=o?.locale)!==null&&n!==void 0?n:_.getState().uiLocale,(a=o?.longFormat)!==null&&a!==void 0?a:!1,(i=o?.withTime)!==null&&i!==void 0?i:!1)}};window.FluidTopicsDateService=new On;var xc=C(k());var gr=class{static get(r,o){var n,a,i,c;let l=_.getState(),{lang:u,region:p}=(a=(n=l.defaultLocales)===null||n===void 0?void 0:n.defaultContentLocale)!==null&&a!==void 0?a:{lang:"en",region:"US"};return new xc.SearchPlaceConverter(l.baseUrl,(c=(i=window.FluidTopicsClientConfiguration)===null||i===void 0?void 0:i.predefinedSorts)!==null&&c!==void 0?c:{},r??20,l.searchInAllLanguagesAllowed,o??`${u}-${p}`)}};var Cn=class{urlToSearchRequest(r){return gr.get().parse(r)}searchRequestToUrl(r){return gr.get().serialize(r)}};window.FluidTopicsUrlService=new Cn;var lt=C(k());var St=class e extends CustomEvent{constructor(r){super(e.eventName,{detail:{currentItem:r}})}};St.eventName="change";var En=class{itemName(r){return`fluid-topics-history-item-${r}`}get(r){let o=sessionStorage.getItem(this.itemName(r));return o?JSON.parse(o):void 0}set(r,o){sessionStorage.setItem(this.itemName(r),JSON.stringify(o))}},vc=new En;var io=class e extends lt.WithEventBus{static build(){return new e(window.history,vc,()=>window.location,!1)}constructor(r,o,n,a){var i,c;super(),this.history=r,this.historyStorage=o,this.windowLocation=n,this.states=[],this.realPushState=r.pushState,this.realReplaceState=r.replaceState,this.initialIndex=(c=(i=r.state)===null||i===void 0?void 0:i.index)!==null&&c!==void 0?c:r.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(a)}setCurrentState(r,o=!1){let n=o&&this.currentIndex===r.index-1;this.currentState={...this.buildCurrentState(),...r},this.currentIndex=this.currentState.index,this.states[this.currentIndex]=this.currentState,n&&(this.states=this.states.slice(0,this.currentIndex+1)),this.historyStorage.set(this.currentIndex,this.currentState),(0,lt.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,window.location.href]),setTimeout(()=>this.dispatchEvent(new St(this.currentItem())),0)}installProxies(){let r=o=>(n,a,[i,c,l])=>{let u=o(),p={...u===this.currentIndex?this.currentState:void 0,...i,index:u,href:typeof l=="string"?l:(l??this.windowLocation()).href};n.apply(a,[p,c,l]),this.setCurrentState(p,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:r(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:r(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",r=>this.setCurrentState(r.state)),document.querySelector("title")==null&&document.head.append(document.createElement("title")),new MutationObserver(()=>this.updateCurrentState({title:document.title})).observe(document.querySelector("title"),{subtree:!0,characterData:!0,childList:!0})}initData(r){for(let o=this.history.length-1;o>=0;o--)r?this.states[o]=this.historyStorage.get(o):setTimeout(()=>this.states[o]=this.historyStorage.get(o),this.history.length-o)}updateCurrentState(r,o=!1){var n,a,i;let c={...this.buildCurrentState(),...r,index:this.currentIndex,title:(n=r?.title)!==null&&n!==void 0?n:this.currentState.title},l=o?(a=r?.majorState)!==null&&a!==void 0?a:this.currentState.majorState:(i=this.currentState.majorState)!==null&&i!==void 0?i:r?.majorState;l!=null&&(c.majorState=l),this.setCurrentState(c)}addHistoryChangeListener(r){this.addEventListener(St.eventName,r)}removeHistoryChangeListener(r){this.removeEventListener(St.eventName,r)}currentItem(){return(0,lt.deepCopy)(this.currentState)}back(){let r=this.previousMajorPosition();r>=0?this.history.go(r-this.currentIndex):this.currentIndex!==this.initialIndex?this.history.go(this.initialIndex-this.currentIndex):this.history.back()}backwardItem(){return(0,lt.deepCopy)(this.states[this.previousMajorPosition()])}previousMajorPosition(){let r=this.currentIndex;for(;r>0&&!this.isMajorState(r);)r--;return this.previousExistingPosition(r)}forward(){let r=this.nextMajorPosition();r<this.states.length?this.history.go(r-this.currentIndex):this.history.forward()}forwardItem(){return(0,lt.deepCopy)(this.states[this.nextMajorPosition()])}nextMajorPosition(){let r=this.currentIndex;do r++;while(r<this.states.length&&!this.isMajorState(r));do r++;while(r<this.states.length&&!this.isMajorState(r));return this.previousExistingPosition(r)}previousExistingPosition(r){let o=r;do o--;while(o>0&&!this.hasState(o));return o}buildCurrentState(){var r,o;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(o=(r=this.history.state)===null||r===void 0?void 0:r.title)!==null&&o!==void 0?o:document.title}}hasState(r){return this.states[r]!=null}isMajorState(r){var o,n;return this.hasState(r)&&((n=(o=this.states[r])===null||o===void 0?void 0:o.majorState)!==null&&n!==void 0?n:!0)}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=io.build(),window.FluidTopicsHistoryService={currentItem:()=>window.FluidTopicsInternalHistoryService.currentItem(),back:()=>window.FluidTopicsInternalHistoryService.back(),forward:()=>window.FluidTopicsInternalHistoryService.forward(),backwardItem:()=>window.FluidTopicsInternalHistoryService.backwardItem(),forwardItem:()=>window.FluidTopicsInternalHistoryService.forwardItem(),addHistoryChangeListener:e=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(e),removeHistoryChangeListener:e=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(e)});(0,Sc.customElement)("ft-app-context")(Z);var Ac=C(oe());var nd=C(k());function Oc(e){return e.match(/^[\w-]+\.[\w-]+$/)}var ad=function(e,r,o,n){var a=arguments.length,i=a<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,r,o,n);else for(var l=e.length-1;l>=0;l--)(c=e[l])&&(i=(a<3?c(i):a>3?c(r,o,i):c(r,o))||i);return a>3&&i&&Object.defineProperty(r,o,i),i},Cc=Symbol("i18nAttributes"),Ec=Symbol("i18nListAttributes"),Rc=Symbol("i18nProperties"),so=Symbol("i18nContexts"),br=Symbol("i18nUnsubs");function uo(e){var r,o;class n extends e{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[r]=new Map,this[o]=new Map}getI18nService(i){return i??this.useCustomMessageContexts?Hr:Wt}i18n(i){var c;this.hasI18nContext(i.context)||this.addI18nContext(i.context,void 0,i.custom);let l=(c=i.args)!==null&&c!==void 0?c:i.argsProvider?i.argsProvider(this):[];return this.getI18nService(i.custom).resolveMessage(i.context,i.key,...l)}customI18n(i,c){if(Oc(i)){let[l,u]=i.split(".");return this.i18n({custom:!0,context:l,key:u,...c})||i}return i}firstUpdated(i){super.firstUpdated(i),this.updateI18nAttributes(()=>!0),this.updateI18nProperties(()=>!0)}update(i){super.update(i),this.updateI18nAttributes((c,l,u)=>i.has(l)||typeof c.argsProvider=="function"),this.updateI18nProperties(c=>typeof c.argsProvider=="function")}onI18nUpdate(i){this.updateI18nAttributes((c,l,u)=>{var p;return((p=u?.context)===null||p===void 0?void 0:p.toLowerCase())===i}),this.updateI18nProperties(c=>c.context.toLowerCase()===i),this.requestUpdate()}updateI18nAttributes(i){var c,l;let u=this,p=(m,y,g)=>g?.context&&g.key&&i(m,y,g)?{...g,message:this.i18n({context:g.context,key:g.key,...m})}:g;(c=this[Cc])===null||c===void 0||c.forEach((m,y)=>u[y]=p(m,y,u[y])),(l=this[Ec])===null||l===void 0||l.forEach((m,y)=>{var g;return u[y]=(g=u[y])===null||g===void 0?void 0:g.map(v=>p(m,y,v))})}updateI18nProperties(i){var c;(c=this[Rc])===null||c===void 0||c.forEach((l,u)=>{i(l,u)&&(this[u]=this.i18n(l))})}addI18nMessages(i,c,l){console.warn('Deprecated usage of method "addI18nMessages", use "addI18nContext" instead.'),this.addI18nContext(i,c,l)}addI18nContext(i,c,l){let u=(typeof i=="string"?i:i.name).toLowerCase();l=typeof i=="string"?l:i.custom,this[so].set(u,{isCustomContext:l}),this[br].has(u)||this[br].set(u,this.getI18nService(l).subscribe(u,()=>this.onI18nUpdate(u))),this.getI18nService(l).prepareContext(u,c)}hasI18nContext(i){return this[so].has(i.toLowerCase())}connectedCallback(){super.connectedCallback(),this[so].forEach((i,c)=>this.addI18nContext(c,void 0,i.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[br].forEach(i=>i()),this[br].clear()}}return r=so,o=br,ad([(0,Ac.property)({type:Boolean})],n.prototype,"useCustomMessageContexts",void 0),n}var wc=class extends uo(lo.FtLitElement){},co=class extends uo(lo.FtLitElementRedux){};var xr=function(e,r,o,n){var a=arguments.length,i=a<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,r,o,n);else for(var l=e.length-1;l>=0;l--)(c=e[l])&&(i=(a<3?c(i):a>3?c(r,o,i):c(r,o))||i);return a>3&&i&&Object.defineProperty(r,o,i),i},Te=class extends co{constructor(){super(),this.editorMode=!1,this.addStore(_)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":po.nothing:po.html`
1146
1146
  <span class="ft-i18n">
1147
1147
  ${this.i18n({context:this.context,key:this.key,args:Array.isArray(this.args)?this.args:[]})}
1148
1148
  </span>
@@ -45,7 +45,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
45
45
  input::-webkit-search-results-decoration {
46
46
  display: none;
47
47
  }
48
- `;var Cs={};var va={};z(va,{ParametrizedLabelResolver:()=>Br});var Br=class t{constructor(e,o){this.defaultLabels=e,this.labels=o}resolve(e,...o){var n,a;e=this.resolvePluralKey(e,o);let i=(a=(n=this.labels[e])!==null&&n!==void 0?n:this.defaultLabels[e])!==null&&a!==void 0?a:"";return t.replaceParameters(i,...o)}static replaceParameters(e,...o){return o.forEach((n,a)=>e=e.replace(new RegExp(`\\{${a}([^}]*)\\}`,"g"),(i,s)=>t.formatValue(n,s))),e}resolvePluralKey(e,o){for(let n of o)if(typeof n=="number"){let a=`${String(e)}[\\=${n}]`;if(a in this.labels||a in this.defaultLabels)return a}return e}static formatValue(e,o){return e instanceof Date?t.formatDate(e,o):e??""}static formatDate(e,o){let n=a=>o?.includes("date")?e.toLocaleDateString(a):o?.includes("time")?e.toLocaleTimeString(a):e.toLocaleString(a);try{return n(document.documentElement.lang)}catch{return n()}}};var ja={};z(ja,{FtCommandQueue:()=>Ur,FtLitElementRedux:()=>lt,FtReduxStore:()=>Pt,ReduxWatcher:()=>Oo,clearAllStores:()=>Kp,isFtReduxStore:()=>Nt,redux:()=>mo,reduxEventListener:()=>dp,reduxReactive:()=>lp,watch:()=>Zp});var lp=()=>(t,e)=>{var o;let n=t.constructor;n.reduxReactiveProperties=new Set(n.reduxReactiveProperties),(o=n.reduxReactiveProperties)===null||o===void 0||o.add(e)},mo=t=>{let e=t??{};return(o,n)=>{var a;let i={hasChanged:at,attribute:!1,...e};A(i)(o,n);let s=o.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(n,{selector:(a=e.selector)!==null&&a!==void 0?a:l=>l[n],store:e.store})}},dp=t=>(e,o)=>{let n=e.constructor;n.reduxEventListeners=new Map(n.reduxEventListeners),n.reduxEventListeners.set(o,t)};var Ur=class{constructor(){this.queue=[]}add(e,o=!1){o&&this.clear(e.type),this.queue.push(e)}consume(e){let o=this.queue.find(n=>n.type===e);return o&&(this.queue=this.queue.filter(n=>n!==o)),o}clear(e){typeof e=="string"?this.queue=this.queue.filter(o=>o.type!==e):this.queue=this.queue.filter(o=>!e.test(o.type))}};function Nt(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var Es,ws,As,Fr=Symbol("internalReduxEventsUnsubscribers"),ct=Symbol("internalStoresUnsubscribers"),Tt=Symbol("internalStores"),lt=class extends j{constructor(){super(...arguments),this[Es]=new Map,this[ws]=new Map,this[As]=new Map}get reduxConstructor(){return this.constructor}update(e){super.update(e),[...this.reduxConstructor.reduxReactiveProperties].some(o=>e.has(o))&&this.updateFromStores()}getUnnamedStore(){if(this[Tt].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Tt].values()][0]}getStore(e){return e==null?this.getUnnamedStore():this[Tt].get(e)}addStore(e,o){var n;o=(n=o??(Nt(e)?e.name:void 0))!==null&&n!==void 0?n:"default-store",this.unsubscribeFromStore(o),this[Tt].set(o,e),this.subscribeToStore(o,e),this.updateFromStores()}removeStore(e){let o=typeof e=="string"?e:e.name;this.unsubscribeFromStore(o),this[Tt].delete(o)}setupStores(){this.unsubscribeFromStores(),this[Tt].forEach((e,o)=>this.subscribeToStore(o,e)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((e,o)=>{let n=this.constructor.getPropertyOptions(o);if(!n?.attribute||!this.hasAttribute(typeof n?.attribute=="string"?n.attribute:o)){let a=this.getStore(e.store);a&&(e.store?this[ct].has(e.store):this[ct].size>0)&&(this[o]=e.selector(a.getState(),this))}})}subscribeToStore(e,o){var n;this[ct].set(e,o.subscribe(()=>this.updateFromStores())),this[Fr].set(e,[]),Nt(o)&&o.eventBus&&((n=this.reduxConstructor.reduxEventListeners)===null||n===void 0||n.forEach((a,i)=>{if(typeof this[i]=="function"&&(!a.store||o.name===a.store)){let s=l=>this[i](l);o.addEventListener(a.eventName,s),this[Fr].get(e).push(()=>o.removeEventListener(a.eventName,s))}})),this.onStoreAvailable(e)}unsubscribeFromStores(){this[ct].forEach((e,o)=>this.unsubscribeFromStore(o))}unsubscribeFromStore(e){var o;this[ct].has(e)&&this[ct].get(e)(),this[ct].delete(e),(o=this[Fr].get(e))===null||o===void 0||o.forEach(n=>n()),this[Fr].delete(e)}onStoreAvailable(e){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}};Es=ct,ws=Tt,As=Fr;lt.reduxProperties=new Map;lt.reduxReactiveProperties=new Set;lt.reduxEventListeners=new Map;function we(t){for(var e=arguments.length,o=Array(e>1?e-1:0),n=1;n<e;n++)o[n-1]=arguments[n];if(0)var a,i;throw Error("[Immer] minified error nr: "+t+(o.length?" "+o.map(function(s){return"'"+s+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Xe(t){return!!t&&!!t[X]}function Le(t){var e;return!!t&&(function(o){if(!o||typeof o!="object")return!1;var n=Object.getPrototypeOf(o);if(n===null)return!0;var a=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return a===Object||typeof a=="function"&&Function.toString.call(a)===bp}(t)||Array.isArray(t)||!!t[Is]||!!(!((e=t.constructor)===null||e===void 0)&&e[Is])||Ta(t)||_a(t))}function _t(t,e,o){o===void 0&&(o=!1),Jt(t)===0?(o?Object.keys:Xt)(t).forEach(function(n){o&&typeof n=="symbol"||e(n,t[n],t)}):t.forEach(function(n,a){return e(a,n,t)})}function Jt(t){var e=t[X];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:Ta(t)?2:_a(t)?3:0}function Yt(t,e){return Jt(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function pp(t,e){return Jt(t)===2?t.get(e):t[e]}function ks(t,e,o){var n=Jt(t);n===2?t.set(e,o):n===3?t.add(o):t[e]=o}function Ds(t,e){return t===e?t!==0||1/t==1/e:t!=t&&e!=e}function Ta(t){return mp&&t instanceof Map}function _a(t){return gp&&t instanceof Set}function dt(t){return t.o||t.t}function La(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=Bs(t);delete e[X];for(var o=Xt(e),n=0;n<o.length;n++){var a=o[n],i=e[a];i.writable===!1&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(e[a]={configurable:!0,writable:!0,enumerable:i.enumerable,value:t[a]})}return Object.create(Object.getPrototypeOf(t),e)}function Pa(t,e){return e===void 0&&(e=!1),Ia(t)||Xe(t)||!Le(t)||(Jt(t)>1&&(t.set=t.add=t.clear=t.delete=up),Object.freeze(t),e&&_t(t,function(o,n){return Pa(n,!0)},!0)),t}function up(){we(2)}function Ia(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function Fe(t){var e=Na[t];return e||we(18,t),e}function fp(t,e){Na[t]||(Na[t]=e)}function wa(){return Hr}function Sa(t,e){e&&(Fe("Patches"),t.u=[],t.s=[],t.v=e)}function go(t){Aa(t),t.p.forEach(hp),t.p=null}function Aa(t){t===Hr&&(Hr=t.l)}function Rs(t){return Hr={p:[],l:Hr,h:t,m:!0,_:0}}function hp(t){var e=t[X];e.i===0||e.i===1?e.j():e.g=!0}function Oa(t,e){e._=e.p.length;var o=e.p[0],n=t!==void 0&&t!==o;return e.h.O||Fe("ES5").S(e,t,n),n?(o[X].P&&(go(e),we(4)),Le(t)&&(t=bo(e,t),e.l||xo(e,t)),e.u&&Fe("Patches").M(o[X].t,t,e.u,e.s)):t=bo(e,o,[]),go(e),e.u&&e.v(e.u,e.s),t!==Ms?t:void 0}function bo(t,e,o){if(Ia(e))return e;var n=e[X];if(!n)return _t(e,function(l,d){return Ns(t,n,e,l,d,o)},!0),e;if(n.A!==t)return e;if(!n.P)return xo(t,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var a=n.i===4||n.i===5?n.o=La(n.k):n.o,i=a,s=!1;n.i===3&&(i=new Set(a),a.clear(),s=!0),_t(i,function(l,d){return Ns(t,n,a,l,d,o,s)}),xo(t,a,!1),o&&t.u&&Fe("Patches").N(n,o,t.u,t.s)}return n.o}function Ns(t,e,o,n,a,i,s){if(Xe(a)){var l=bo(t,a,i&&e&&e.i!==3&&!Yt(e.R,n)?i.concat(n):void 0);if(ks(o,n,l),!Xe(l))return;t.m=!1}else s&&o.add(a);if(Le(a)&&!Ia(a)){if(!t.h.D&&t._<1)return;bo(t,a),e&&e.A.l||xo(t,a)}}function xo(t,e,o){o===void 0&&(o=!1),!t.l&&t.h.D&&t.m&&Pa(e,o)}function Ca(t,e){var o=t[X];return(o?dt(o):t)[e]}function Ts(t,e){if(e in t)for(var o=Object.getPrototypeOf(t);o;){var n=Object.getOwnPropertyDescriptor(o,e);if(n)return n;o=Object.getPrototypeOf(o)}}function pt(t){t.P||(t.P=!0,t.l&&pt(t.l))}function Ea(t){t.o||(t.o=La(t.t))}function Ra(t,e,o){var n=Ta(e)?Fe("MapSet").F(e,o):_a(e)?Fe("MapSet").T(e,o):t.O?function(a,i){var s=Array.isArray(a),l={i:s?1:0,A:i?i.A:wa(),P:!1,I:!1,R:{},l:i,t:a,k:null,o:null,j:null,C:!1},d=l,u=zr;s&&(d=[l],u=Wr);var h=Proxy.revocable(d,u),f=h.revoke,m=h.proxy;return l.k=m,l.j=f,m}(e,o):Fe("ES5").J(e,o);return(o?o.A:wa()).p.push(n),n}function yp(t){return Xe(t)||we(22,t),function e(o){if(!Le(o))return o;var n,a=o[X],i=Jt(o);if(a){if(!a.P&&(a.i<4||!Fe("ES5").K(a)))return a.t;a.I=!0,n=_s(o,i),a.I=!1}else n=_s(o,i);return _t(n,function(s,l){a&&pp(a.t,s)===l||ks(n,s,e(l))}),i===3?new Set(n):n}(t)}function _s(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return La(t)}function $s(){function t(s,l){var d=i[s];return d?d.enumerable=l:i[s]=d={configurable:!0,enumerable:l,get:function(){var u=this[X];return zr.get(u,s)},set:function(u){var h=this[X];zr.set(h,s,u)}},d}function e(s){for(var l=s.length-1;l>=0;l--){var d=s[l][X];if(!d.P)switch(d.i){case 5:n(d)&&pt(d);break;case 4:o(d)&&pt(d)}}}function o(s){for(var l=s.t,d=s.k,u=Xt(d),h=u.length-1;h>=0;h--){var f=u[h];if(f!==X){var m=l[f];if(m===void 0&&!Yt(l,f))return!0;var b=d[f],x=b&&b[X];if(x?x.t!==m:!Ds(b,m))return!0}}var O=!!l[X];return u.length!==Xt(l).length+(O?0:1)}function n(s){var l=s.k;if(l.length!==s.t.length)return!0;var d=Object.getOwnPropertyDescriptor(l,l.length-1);if(d&&!d.get)return!0;for(var u=0;u<l.length;u++)if(!l.hasOwnProperty(u))return!0;return!1}function a(s){s.g&&we(3,JSON.stringify(dt(s)))}var i={};fp("ES5",{J:function(s,l){var d=Array.isArray(s),u=function(f,m){if(f){for(var b=Array(m.length),x=0;x<m.length;x++)Object.defineProperty(b,""+x,t(x,!0));return b}var O=Bs(m);delete O[X];for(var T=Xt(O),R=0;R<T.length;R++){var L=T[R];O[L]=t(L,f||!!O[L].enumerable)}return Object.create(Object.getPrototypeOf(m),O)}(d,s),h={i:d?5:4,A:l?l.A:wa(),P:!1,I:!1,R:{},l,t:s,k:u,o:null,g:!1,C:!1};return Object.defineProperty(u,X,{value:h,writable:!0}),u},S:function(s,l,d){d?Xe(l)&&l[X].A===s&&e(s.p):(s.u&&function u(h){if(h&&typeof h=="object"){var f=h[X];if(f){var m=f.t,b=f.k,x=f.R,O=f.i;if(O===4)_t(b,function(v){v!==X&&(m[v]!==void 0||Yt(m,v)?x[v]||u(b[v]):(x[v]=!0,pt(f)))}),_t(m,function(v){b[v]!==void 0||Yt(b,v)||(x[v]=!1,pt(f))});else if(O===5){if(n(f)&&(pt(f),x.length=!0),b.length<m.length)for(var T=b.length;T<m.length;T++)x[T]=!1;else for(var R=m.length;R<b.length;R++)x[R]=!0;for(var L=Math.min(b.length,m.length),C=0;C<L;C++)b.hasOwnProperty(C)||(x[C]=!0),x[C]===void 0&&u(b[C])}}}}(s.p[0]),e(s.p))},K:function(s){return s.i===4?o(s):n(s)}})}var Ls,Hr,ka=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",mp=typeof Map<"u",gp=typeof Set<"u",Ps=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Ms=ka?Symbol.for("immer-nothing"):((Ls={})["immer-nothing"]=!0,Ls),Is=ka?Symbol.for("immer-draftable"):"__$immer_draftable",X=ka?Symbol.for("immer-state"):"__$immer_state";var bp=""+Object.prototype.constructor,Xt=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,Bs=Object.getOwnPropertyDescriptors||function(t){var e={};return Xt(t).forEach(function(o){e[o]=Object.getOwnPropertyDescriptor(t,o)}),e},Na={},zr={get:function(t,e){if(e===X)return t;var o=dt(t);if(!Yt(o,e))return function(a,i,s){var l,d=Ts(i,s);return d?"value"in d?d.value:(l=d.get)===null||l===void 0?void 0:l.call(a.k):void 0}(t,o,e);var n=o[e];return t.I||!Le(n)?n:n===Ca(t.t,e)?(Ea(t),t.o[e]=Ra(t.A.h,n,t)):n},has:function(t,e){return e in dt(t)},ownKeys:function(t){return Reflect.ownKeys(dt(t))},set:function(t,e,o){var n=Ts(dt(t),e);if(n?.set)return n.set.call(t.k,o),!0;if(!t.P){var a=Ca(dt(t),e),i=a?.[X];if(i&&i.t===o)return t.o[e]=o,t.R[e]=!1,!0;if(Ds(o,a)&&(o!==void 0||Yt(t.t,e)))return!0;Ea(t),pt(t)}return t.o[e]===o&&(o!==void 0||e in t.o)||Number.isNaN(o)&&Number.isNaN(t.o[e])||(t.o[e]=o,t.R[e]=!0),!0},deleteProperty:function(t,e){return Ca(t.t,e)!==void 0||e in t.t?(t.R[e]=!1,Ea(t),pt(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var o=dt(t),n=Reflect.getOwnPropertyDescriptor(o,e);return n&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:n.enumerable,value:o[e]}},defineProperty:function(){we(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){we(12)}},Wr={};_t(zr,function(t,e){Wr[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),Wr.deleteProperty=function(t,e){return Wr.set.call(this,t,e,void 0)},Wr.set=function(t,e,o){return zr.set.call(this,t[0],e,o,t[0])};var xp=function(){function t(o){var n=this;this.O=Ps,this.D=!0,this.produce=function(a,i,s){if(typeof a=="function"&&typeof i!="function"){var l=i;i=a;var d=n;return function(O){var T=this;O===void 0&&(O=l);for(var R=arguments.length,L=Array(R>1?R-1:0),C=1;C<R;C++)L[C-1]=arguments[C];return d.produce(O,function(v){var E;return(E=i).call.apply(E,[T,v].concat(L))})}}var u;if(typeof i!="function"&&we(6),s!==void 0&&typeof s!="function"&&we(7),Le(a)){var h=Rs(n),f=Ra(n,a,void 0),m=!0;try{u=i(f),m=!1}finally{m?go(h):Aa(h)}return typeof Promise<"u"&&u instanceof Promise?u.then(function(O){return Sa(h,s),Oa(O,h)},function(O){throw go(h),O}):(Sa(h,s),Oa(u,h))}if(!a||typeof a!="object"){if((u=i(a))===void 0&&(u=a),u===Ms&&(u=void 0),n.D&&Pa(u,!0),s){var b=[],x=[];Fe("Patches").M(a,u,b,x),s(b,x)}return u}we(21,a)},this.produceWithPatches=function(a,i){if(typeof a=="function")return function(u){for(var h=arguments.length,f=Array(h>1?h-1:0),m=1;m<h;m++)f[m-1]=arguments[m];return n.produceWithPatches(u,function(b){return a.apply(void 0,[b].concat(f))})};var s,l,d=n.produce(a,i,function(u,h){s=u,l=h});return typeof Promise<"u"&&d instanceof Promise?d.then(function(u){return[u,s,l]}):[d,s,l]},typeof o?.useProxies=="boolean"&&this.setUseProxies(o.useProxies),typeof o?.autoFreeze=="boolean"&&this.setAutoFreeze(o.autoFreeze)}var e=t.prototype;return e.createDraft=function(o){Le(o)||we(8),Xe(o)&&(o=yp(o));var n=Rs(this),a=Ra(this,o,void 0);return a[X].C=!0,Aa(n),a},e.finishDraft=function(o,n){var a=o&&o[X],i=a.A;return Sa(i,n),Oa(void 0,i)},e.setAutoFreeze=function(o){this.D=o},e.setUseProxies=function(o){o&&!Ps&&we(20),this.O=o},e.applyPatches=function(o,n){var a;for(a=n.length-1;a>=0;a--){var i=n[a];if(i.path.length===0&&i.op==="replace"){o=i.value;break}}a>-1&&(n=n.slice(a+1));var s=Fe("Patches").$;return Xe(o)?s(o,n):this.produce(o,function(l){return s(l,n)})},t}(),Ce=new xp,vp=Ce.produce,Ig=Ce.produceWithPatches.bind(Ce),kg=Ce.setAutoFreeze.bind(Ce),Dg=Ce.setUseProxies.bind(Ce),$g=Ce.applyPatches.bind(Ce),Mg=Ce.createDraft.bind(Ce),Bg=Ce.finishDraft.bind(Ce),vo=vp;function Lt(t){"@babel/helpers - typeof";return Lt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Lt(t)}function Us(t,e){if(Lt(t)!="object"||!t)return t;var o=t[Symbol.toPrimitive];if(o!==void 0){var n=o.call(t,e||"default");if(Lt(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Fs(t){var e=Us(t,"string");return Lt(e)=="symbol"?e:e+""}function Ws(t,e,o){return(e=Fs(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function Hs(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),o.push.apply(o,n)}return o}function Da(t){for(var e=1;e<arguments.length;e++){var o=arguments[e]!=null?arguments[e]:{};e%2?Hs(Object(o),!0).forEach(function(n){Ws(t,n,o[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):Hs(Object(o)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(o,n))})}return t}function pe(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}var zs=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),$a=function(){return Math.random().toString(36).substring(7).split("").join(".")},So={INIT:"@@redux/INIT"+$a(),REPLACE:"@@redux/REPLACE"+$a(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+$a()}};function Sp(t){if(typeof t!="object"||t===null)return!1;for(var e=t;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function Ma(t,e,o){var n;if(typeof e=="function"&&typeof o=="function"||typeof o=="function"&&typeof arguments[3]=="function")throw new Error(pe(0));if(typeof e=="function"&&typeof o>"u"&&(o=e,e=void 0),typeof o<"u"){if(typeof o!="function")throw new Error(pe(1));return o(Ma)(t,e)}if(typeof t!="function")throw new Error(pe(2));var a=t,i=e,s=[],l=s,d=!1;function u(){l===s&&(l=s.slice())}function h(){if(d)throw new Error(pe(3));return i}function f(O){if(typeof O!="function")throw new Error(pe(4));if(d)throw new Error(pe(5));var T=!0;return u(),l.push(O),function(){if(T){if(d)throw new Error(pe(6));T=!1,u();var L=l.indexOf(O);l.splice(L,1),s=null}}}function m(O){if(!Sp(O))throw new Error(pe(7));if(typeof O.type>"u")throw new Error(pe(8));if(d)throw new Error(pe(9));try{d=!0,i=a(i,O)}finally{d=!1}for(var T=s=l,R=0;R<T.length;R++){var L=T[R];L()}return O}function b(O){if(typeof O!="function")throw new Error(pe(10));a=O,m({type:So.REPLACE})}function x(){var O,T=f;return O={subscribe:function(L){if(typeof L!="object"||L===null)throw new Error(pe(11));function C(){L.next&&L.next(h())}C();var v=T(C);return{unsubscribe:v}}},O[zs]=function(){return this},O}return m({type:So.INIT}),n={dispatch:m,subscribe:f,getState:h,replaceReducer:b},n[zs]=x,n}function Op(t){Object.keys(t).forEach(function(e){var o=t[e],n=o(void 0,{type:So.INIT});if(typeof n>"u")throw new Error(pe(12));if(typeof o(void 0,{type:So.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(pe(13))})}function js(t){for(var e=Object.keys(t),o={},n=0;n<e.length;n++){var a=e[n];typeof t[a]=="function"&&(o[a]=t[a])}var i=Object.keys(o),s,l;try{Op(o)}catch(d){l=d}return function(u,h){if(u===void 0&&(u={}),l)throw l;if(0)var f;for(var m=!1,b={},x=0;x<i.length;x++){var O=i[x],T=o[O],R=u[O],L=T(R,h);if(typeof L>"u"){var C=h&&h.type;throw new Error(pe(14))}b[O]=L,m=m||L!==R}return m=m||i.length!==Object.keys(u).length,m?b:u}}function Qt(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return e.length===0?function(n){return n}:e.length===1?e[0]:e.reduce(function(n,a){return function(){return n(a.apply(void 0,arguments))}})}function Gs(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return function(n){return function(){var a=n.apply(void 0,arguments),i=function(){throw new Error(pe(15))},s={getState:a.getState,dispatch:function(){return i.apply(void 0,arguments)}},l=e.map(function(d){return d(s)});return i=Qt.apply(void 0,l)(a.dispatch),Da(Da({},a),{},{dispatch:i})}}}function Vs(t){var e=function(n){var a=n.dispatch,i=n.getState;return function(s){return function(l){return typeof l=="function"?l(a,i,t):s(l)}}};return e}var Ks=Vs();Ks.withExtraArgument=Vs;var Ba=Ks;var Js=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},t(e,o)};return function(e,o){if(typeof o!="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");t(e,o);function n(){this.constructor=e}e.prototype=o===null?Object.create(o):(n.prototype=o.prototype,new n)}}(),Cp=function(t,e){var o={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(u){return function(h){return d([u,h])}}function d(u){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,a&&(i=u[0]&2?a.return:u[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,u[1])).done)return i;switch(a=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return o.label++,{value:u[1],done:!1};case 5:o.label++,a=u[1],u=[0];continue;case 7:u=o.ops.pop(),o.trys.pop();continue;default:if(i=o.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){o=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]<i[3])){o.label=u[1];break}if(u[0]===6&&o.label<i[1]){o.label=i[1],i=u;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(u);break}i[2]&&o.ops.pop(),o.trys.pop();continue}u=e.call(t,o)}catch(h){u=[6,h],a=0}finally{n=i=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}},er=function(t,e){for(var o=0,n=e.length,a=t.length;o<n;o++,a++)t[a]=e[o];return t},Ep=Object.defineProperty,wp=Object.defineProperties,Ap=Object.getOwnPropertyDescriptors,Zs=Object.getOwnPropertySymbols,Rp=Object.prototype.hasOwnProperty,Np=Object.prototype.propertyIsEnumerable,qs=function(t,e,o){return e in t?Ep(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o},ut=function(t,e){for(var o in e||(e={}))Rp.call(e,o)&&qs(t,o,e[o]);if(Zs)for(var n=0,a=Zs(e);n<a.length;n++){var o=a[n];Np.call(e,o)&&qs(t,o,e[o])}return t},Ua=function(t,e){return wp(t,Ap(e))},Tp=function(t,e,o){return new Promise(function(n,a){var i=function(d){try{l(o.next(d))}catch(u){a(u)}},s=function(d){try{l(o.throw(d))}catch(u){a(u)}},l=function(d){return d.done?n(d.value):Promise.resolve(d.value).then(i,s)};l((o=o.apply(t,e)).next())})};var _p=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Qt:Qt.apply(null,arguments)},rb=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}};function Lp(t){if(typeof t!="object"||t===null)return!1;var e=Object.getPrototypeOf(t);if(e===null)return!0;for(var o=e;Object.getPrototypeOf(o)!==null;)o=Object.getPrototypeOf(o);return e===o}var Pp=function(t){Js(e,t);function e(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var a=t.apply(this,o)||this;return Object.setPrototypeOf(a,e.prototype),a}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return t.prototype.concat.apply(this,o)},e.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(e.bind.apply(e,er([void 0],o[0].concat(this)))):new(e.bind.apply(e,er([void 0],o.concat(this))))},e}(Array),Ip=function(t){Js(e,t);function e(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var a=t.apply(this,o)||this;return Object.setPrototypeOf(a,e.prototype),a}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return t.prototype.concat.apply(this,o)},e.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(e.bind.apply(e,er([void 0],o[0].concat(this)))):new(e.bind.apply(e,er([void 0],o.concat(this))))},e}(Array);function Ha(t){return Le(t)?vo(t,function(){}):t}function kp(t){return typeof t=="boolean"}function Dp(){return function(e){return $p(e)}}function $p(t){t===void 0&&(t={});var e=t.thunk,o=e===void 0?!0:e,n=t.immutableCheck,a=n===void 0?!0:n,i=t.serializableCheck,s=i===void 0?!0:i,l=new Pp;if(o&&(kp(o)?l.push(Ba):l.push(Ba.withExtraArgument(o.extraArgument))),0){if(a)var d;if(s)var u}return l}var Fa=!0;function Qs(t){var e=Dp(),o=t||{},n=o.reducer,a=n===void 0?void 0:n,i=o.middleware,s=i===void 0?e():i,l=o.devTools,d=l===void 0?!0:l,u=o.preloadedState,h=u===void 0?void 0:u,f=o.enhancers,m=f===void 0?void 0:f,b;if(typeof a=="function")b=a;else if(Lp(a))b=js(a);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 x=s;if(typeof x=="function"&&(x=x(e),!Fa&&!Array.isArray(x)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!Fa&&x.some(function(v){return typeof v!="function"}))throw new Error("each middleware provided to configureStore must be a function");var O=Gs.apply(void 0,x),T=Qt;d&&(T=_p(ut({trace:!Fa},typeof d=="object"&&d)));var R=new Ip(O),L=R;Array.isArray(m)?L=er([O],m):typeof m=="function"&&(L=m(R));var C=T.apply(void 0,L);return Ma(b,h,C)}function ft(t,e){function o(){for(var n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];if(e){var i=e.apply(void 0,n);if(!i)throw new Error("prepareAction did not return an object");return ut(ut({type:t,payload:i.payload},"meta"in i&&{meta:i.meta}),"error"in i&&{error:i.error})}return{type:t,payload:n[0]}}return o.toString=function(){return""+t},o.type=t,o.match=function(n){return n.type===t},o}function ec(t){var e={},o=[],n,a={addCase:function(i,s){var l=typeof i=="string"?i:i.type;if(l in e)throw new Error("addCase cannot be called with two reducers for the same action type");return e[l]=s,a},addMatcher:function(i,s){return o.push({matcher:i,reducer:s}),a},addDefaultCase:function(i){return n=i,a}};return t(a),[e,o,n]}function Mp(t){return typeof t=="function"}function Bp(t,e,o,n){o===void 0&&(o=[]);var a=typeof e=="function"?ec(e):[e,o,n],i=a[0],s=a[1],l=a[2],d;if(Mp(t))d=function(){return Ha(t())};else{var u=Ha(t);d=function(){return u}}function h(f,m){f===void 0&&(f=d());var b=er([i[m.type]],s.filter(function(x){var O=x.matcher;return O(m)}).map(function(x){var O=x.reducer;return O}));return b.filter(function(x){return!!x}).length===0&&(b=[l]),b.reduce(function(x,O){if(O)if(Xe(x)){var T=x,R=O(T,m);return R===void 0?x:R}else{if(Le(x))return vo(x,function(L){return O(L,m)});var R=O(x,m);if(R===void 0){if(x===null)return x;throw Error("A case reducer on a non-draftable value must not return undefined")}return R}return x},f)}return h.getInitialState=d,h}function Up(t,e){return t+"/"+e}function tc(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");typeof process<"u";var o=typeof t.initialState=="function"?t.initialState:Ha(t.initialState),n=t.reducers||{},a=Object.keys(n),i={},s={},l={};a.forEach(function(h){var f=n[h],m=Up(e,h),b,x;"reducer"in f?(b=f.reducer,x=f.prepare):b=f,i[h]=b,s[m]=b,l[h]=x?ft(m,x):ft(m)});function d(){var h=typeof t.extraReducers=="function"?ec(t.extraReducers):[t.extraReducers],f=h[0],m=f===void 0?{}:f,b=h[1],x=b===void 0?[]:b,O=h[2],T=O===void 0?void 0:O,R=ut(ut({},m),s);return Bp(o,function(L){for(var C in R)L.addCase(C,R[C]);for(var v=0,E=x;v<E.length;v++){var I=E[v];L.addMatcher(I.matcher,I.reducer)}T&&L.addDefaultCase(T)})}var u;return{name:e,reducer:function(h,f){return u||(u=d()),u(h,f)},actions:l,caseReducers:i,getInitialState:function(){return u||(u=d()),u.getInitialState()}}}var Fp="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Wp=function(t){t===void 0&&(t=21);for(var e="",o=t;o--;)e+=Fp[Math.random()*64|0];return e},Hp=["name","message","stack","code"],Wa=function(){function t(e,o){this.payload=e,this.meta=o}return t}(),Ys=function(){function t(e,o){this.payload=e,this.meta=o}return t}(),zp=function(t){if(typeof t=="object"&&t!==null){for(var e={},o=0,n=Hp;o<n.length;o++){var a=n[o];typeof t[a]=="string"&&(e[a]=t[a])}return e}return{message:String(t)}},ib=function(){function t(e,o,n){var a=ft(e+"/fulfilled",function(h,f,m,b){return{payload:h,meta:Ua(ut({},b||{}),{arg:m,requestId:f,requestStatus:"fulfilled"})}}),i=ft(e+"/pending",function(h,f,m){return{payload:void 0,meta:Ua(ut({},m||{}),{arg:f,requestId:h,requestStatus:"pending"})}}),s=ft(e+"/rejected",function(h,f,m,b,x){return{payload:b,error:(n&&n.serializeError||zp)(h||"Rejected"),meta:Ua(ut({},x||{}),{arg:m,requestId:f,rejectedWithValue:!!b,requestStatus:"rejected",aborted:h?.name==="AbortError",condition:h?.name==="ConditionError"})}}),l=!1,d=typeof AbortController<"u"?AbortController:function(){function h(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return h.prototype.abort=function(){},h}();function u(h){return function(f,m,b){var x=n?.idGenerator?n.idGenerator(h):Wp(),O=new d,T,R=!1;function L(v){T=v,O.abort()}var C=function(){return Tp(this,null,function(){var v,E,I,B,W,U,k;return Cp(this,function(y){switch(y.label){case 0:return y.trys.push([0,4,,5]),B=(v=n?.condition)==null?void 0:v.call(n,h,{getState:m,extra:b}),Gp(B)?[4,B]:[3,2];case 1:B=y.sent(),y.label=2;case 2:if(B===!1||O.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return R=!0,W=new Promise(function(S,P){return O.signal.addEventListener("abort",function(){return P({name:"AbortError",message:T||"Aborted"})})}),f(i(x,h,(E=n?.getPendingMeta)==null?void 0:E.call(n,{requestId:x,arg:h},{getState:m,extra:b}))),[4,Promise.race([W,Promise.resolve(o(h,{dispatch:f,getState:m,extra:b,requestId:x,signal:O.signal,abort:L,rejectWithValue:function(S,P){return new Wa(S,P)},fulfillWithValue:function(S,P){return new Ys(S,P)}})).then(function(S){if(S instanceof Wa)throw S;return S instanceof Ys?a(S.payload,x,h,S.meta):a(S,x,h)})])];case 3:return I=y.sent(),[3,5];case 4:return U=y.sent(),I=U instanceof Wa?s(null,x,h,U.payload,U.meta):s(U,x,h),[3,5];case 5:return k=n&&!n.dispatchConditionRejection&&s.match(I)&&I.meta.condition,k||f(I),[2,I]}})})}();return Object.assign(C,{abort:L,requestId:x,arg:h,unwrap:function(){return C.then(jp)}})}}return Object.assign(u,{pending:i,rejected:s,fulfilled:a,typePrefix:e})}return t.withTypes=function(){return t},t}();function jp(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function Gp(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var rc="listener",oc="completed",nc="cancelled",sb="task-"+nc,cb="task-"+oc,lb=rc+"-"+nc,db=rc+"-"+oc;var za="listenerMiddleware";var pb=ft(za+"/add"),ub=ft(za+"/removeAll"),fb=ft(za+"/remove");var Xs,hb=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(t){return(Xs||(Xs=Promise.resolve())).then(t).catch(function(e){return setTimeout(function(){throw e},0)})},Vp=function(t){return function(e){setTimeout(e,t)}},yb=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Vp(10);$s();window.ftReduxStores||(window.ftReduxStores={});var Pt=class t extends Ve{static get(e){var o;let n=typeof e=="string"?e:e.name,a=typeof e=="string"?void 0:e,i=window.ftReduxStores[n];if(Nt(i))return i;if(a==null)return;let s=tc({...a,reducers:(o=a.reducers)!==null&&o!==void 0?o:{}}),l=Qs({reducer:(d,u)=>u.type==="CLEAR_FT_REDUX_STORE"?s.getInitialState():typeof u.type=="string"&&u.type.startsWith("DEFAULT_VALUE_SETTER__")?{...d,...u.overwrites}:s.reducer(d,u)});return window.ftReduxStores[a.name]=new t(s,l,a.eventBus)}constructor(e,o,n){super(),this.reduxSlice=e,this.reduxStore=o,this.isFtReduxStore=!0,this.commands=new Ur;let a=i=>i!=null?JSON.parse(JSON.stringify(i)):i;this.actions=new Proxy(this.reduxSlice.actions,{get:(i,s,l)=>{let d=s,u=i[d];return u?(...h)=>{let f=u(...h.map(a));return this.reduxStore.dispatch(f),f}:h=>{this.setState({[d]:a(h)})}}}),this.eventBus=n??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(e){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(e).join("_"),overwrites:e})}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(e){throw new Error("Not implemented yet.")}subscribe(e){return this.reduxStore.subscribe(e)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};function Kp(){var t;for(let e of Object.values((t=window.ftReduxStores)!==null&&t!==void 0?t:{}))Nt(e)&&e.clear()}var Oo=class{constructor(e,o,n){this.store=e,this.valueSelector=o,this.callback=n}watch(){return this.stop(),this.lastValue=this.valueSelector(this.store.getState()),this.unsubscribe=this.store.subscribe(()=>{let e=this.store.getState(),o=this.valueSelector(e);at(this.lastValue,o)&&(this.callback(o,e),this.lastValue=o)}),this}stop(){return this.unsubscribe!=null&&(this.unsubscribe(),this.unsubscribe=void 0),this.lastValue=void 0,this}};function Zp(t,e,o){return new Oo(t,e,o).watch()}var Ka={};z(Ka,{scrollHelper:()=>qp});var Ga,Co=new Map,Va=class{lock(e,o){if(o){let n=Co.get(o);if(n==null||n===e)return Co.set(o,e),o}}release(e,o){o&&Co.get(o)===e&&Co.delete(o)}findFirstScrollableParent(e){var o;let n,a;for(let i of bn(e)){let s=i,l=this.elementCanScroll(s);if(l&&s.clientHeight&&s.clientHeight<s.scrollHeight){n=s;break}else l&&a==null&&(a=s)}return(o=n??a)!==null&&o!==void 0?o:document.body}elementCanScroll(e){try{return["auto","scroll"].includes(getComputedStyle(e).overflowY)}catch{return!1}}getAbsoluteScrollOffset(e,o){var n,a;let i=0;for(;o&&o.offsetParent!==e.offsetParent;)i+=(n=o.offsetTop)!==null&&n!==void 0?n:0,o=o.offsetParent;return i+((a=o?.offsetTop)!==null&&a!==void 0?a:0)-e.offsetTop}computeTopOffsetRatio(e,o){if(typeof e=="number")return e;switch(e){case"end":return 1;case"center":return .5;case"nearest":return o;default:return 0}}scrollIntoViewIfPossible(e,o){let n=this.findFirstScrollableParent(e);if(e&&this.lock(this,n)){let a=this.getAbsoluteScrollOffset(n,e),i=a-n.clientHeight+e.clientHeight,s=a,l=Ar(0,(s-n.scrollTop)/(s-i),1),d=this.computeTopOffsetRatio(o?.position,l)*(i-s)+s;n.scrollTo({behavior:o?.behavior,top:d})}else console.warn("Could not scroll element into view because the scrollable parent is already locked",e,n);this.release(this,n)}};window.FluidTopicsScrollHelper=(Ga=window.FluidTopicsScrollHelper)!==null&&Ga!==void 0?Ga:new Va;var qp=window.FluidTopicsScrollHelper;var qa={};z(qa,{SearchPlaceConverter:()=>or,SearchPlaceQueryParams:()=>K,isSearchPlaceQueryParams:()=>Dc,serializeRequest:()=>Qp});var Xp=Pl(ic(),1);var sc;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(sc||(sc={}));var cc;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(cc||(cc={}));var lc;(function(t){t.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",t.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",t.PERSONAL_BOOK="PERSONAL_BOOK",t.MAP_ATTACHMENT="MAP_ATTACHMENT",t.RESOURCE="RESOURCE"})(lc||(lc={}));var dc;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(dc||(dc={}));var pc;(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(pc||(pc={}));var uc;(function(t){t.BOOKMARK__CREATE="BOOKMARK__CREATE",t.BOOKMARK__DELETE="BOOKMARK__DELETE",t.CASE_DEFLECTION__START="CASE_DEFLECTION__START",t.CASE_DEFLECTION__OPEN_TICKET="CASE_DEFLECTION__OPEN_TICKET",t.CASE_DEFLECTION__RATE="CASE_DEFLECTION__RATE",t.COLLECTION__CREATE="COLLECTION__CREATE",t.COLLECTION__UPDATE="COLLECTION__UPDATE",t.COLLECTION__DELETE="COLLECTION__DELETE",t.DOCUMENT__DISPLAY="DOCUMENT__DISPLAY",t.DOCUMENT__DOWNLOAD="DOCUMENT__DOWNLOAD",t.DOCUMENT__PRINT="DOCUMENT__PRINT",t.DOCUMENT__PROCESS="DOCUMENT__PROCESS",t.DOCUMENT__RATE="DOCUMENT__RATE",t.DOCUMENT__SEARCH="DOCUMENT__SEARCH",t.DOCUMENT__START_DISPLAY="DOCUMENT__START_DISPLAY",t.DOCUMENT__UNRATE="DOCUMENT__UNRATE",t.FEEDBACK__SEND="FEEDBACK__SEND",t.GEN_AI__COMPLETED_QUERY="GEN_AI__COMPLETED_QUERY",t.GEN_AI__RATE="GEN_AI__RATE",t.GENAI_CASE_DEFLECTION__START="GENAI_CASE_DEFLECTION__START",t.GENAI_CASE_DEFLECTION__OPEN_TICKET="GENAI_CASE_DEFLECTION__OPEN_TICKET",t.KHUB__PROCESS="KHUB__PROCESS",t.KHUB__SEARCH="KHUB__SEARCH",t.LABELS__DOWNLOAD="LABELS__DOWNLOAD",t.LINK__SHARE="LINK__SHARE",t.PAGE__DISPLAY="PAGE__DISPLAY",t.PERSONAL_BOOK__CREATE="PERSONAL_BOOK__CREATE",t.PERSONAL_BOOK__DELETE="PERSONAL_BOOK__DELETE",t.PERSONAL_BOOK__UPDATE="PERSONAL_BOOK__UPDATE",t.PERSONAL_TOPIC__CREATE="PERSONAL_TOPIC__CREATE",t.PERSONAL_TOPIC__UPDATE="PERSONAL_TOPIC__UPDATE",t.PERSONAL_TOPIC__DELETE="PERSONAL_TOPIC__DELETE",t.SAVED_SEARCH__CREATE="SAVED_SEARCH__CREATE",t.SAVED_SEARCH__DELETE="SAVED_SEARCH__DELETE",t.SAVED_SEARCH__UPDATE="SAVED_SEARCH__UPDATE",t.SEARCH_PAGE__SELECT="SEARCH_PAGE__SELECT",t.SEARCH_RESULT__OPEN_CONTEXT_MENU="SEARCH_RESULT__OPEN_CONTEXT_MENU",t.TOPIC__DISPLAY="TOPIC__DISPLAY",t.TOPIC__RATE="TOPIC__RATE",t.TOPIC__START_DISPLAY="TOPIC__START_DISPLAY",t.TOPIC__UNRATE="TOPIC__UNRATE",t.USER__LOGIN="USER__LOGIN",t.USER__LOGOUT="USER__LOGOUT",t.HEARTBEAT="HEARTBEAT"})(uc||(uc={}));var fc;(function(t){t.THIRD_PARTY="THIRD_PARTY",t.OFF_THE_GRID="OFF_THE_GRID",t.CONTENT_PACKAGER="CONTENT_PACKAGER",t.PAGES="PAGES",t.DESIGNED_READER="DESIGNED_READER"})(fc||(fc={}));var hc;(function(t){t.HOMEPAGE="HOMEPAGE",t.CUSTOM="CUSTOM",t.HEADER="HEADER",t.READER="READER",t.TOPIC_TEMPLATE="TOPIC_TEMPLATE",t.SEARCH="SEARCH",t.SEARCH_RESULT="SEARCH_RESULT"})(hc||(hc={}));var yc;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(yc||(yc={}));var mc;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(mc||(mc={}));var gc;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(gc||(gc={}));var bc;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(bc||(bc={}));var xc;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR",t.CUSTOM="CUSTOM"})(xc||(xc={}));var vc;(function(t){t.ASC="ASC",t.DESC="DESC"})(vc||(vc={}));var Sc;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(Sc||(Sc={}));var Za;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(Za||(Za={}));var Rc=t=>Object.keys(Za).includes(t);var Oc;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK"})(Oc||(Oc={}));var Cc;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(Cc||(Cc={}));var Ec;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK"})(Ec||(Ec={}));var rr;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(rr||(rr={}));var Nc=t=>Object.keys(rr).includes(t);var wc;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC"})(wc||(wc={}));var Ac;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(Ac||(Ac={}));var ne;(function(t){t.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",t.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",t.HTML_EXPORT_USER="HTML_EXPORT_USER",t.PDF_EXPORT_USER="PDF_EXPORT_USER",t.SAVED_SEARCH_USER="SAVED_SEARCH_USER",t.COLLECTION_USER="COLLECTION_USER",t.OFFLINE_USER="OFFLINE_USER",t.BEHAVIOR_DATA_USER="BEHAVIOR_DATA_USER",t.ANALYTICS_USER="ANALYTICS_USER",t.BETA_USER="BETA_USER",t.DEBUG_USER="DEBUG_USER",t.PRINT_USER="PRINT_USER",t.RATING_USER="RATING_USER",t.FEEDBACK_USER="FEEDBACK_USER",t.GENERATIVE_AI_USER="GENERATIVE_AI_USER",t.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_USER",t.CONTENT_PUBLISHER="CONTENT_PUBLISHER",t.KHUB_ADMIN="KHUB_ADMIN",t.USERS_ADMIN="USERS_ADMIN",t.PORTAL_ADMIN="PORTAL_ADMIN",t.ADMIN="ADMIN"})(ne||(ne={}));var Tc;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(Tc||(Tc={}));var _c;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(_c||(_c={}));var Lc;(function(t){t.TEXT="TEXT",t.HTML="HTML"})(Lc||(Lc={}));var Yp={[ne.PERSONAL_BOOK_SHARE_USER]:[ne.PERSONAL_BOOK_USER],[ne.HTML_EXPORT_USER]:[ne.PERSONAL_BOOK_USER],[ne.PDF_EXPORT_USER]:[ne.PERSONAL_BOOK_USER],[ne.KHUB_ADMIN]:[ne.CONTENT_PUBLISHER],[ne.ADMIN]:[ne.KHUB_ADMIN,ne.USERS_ADMIN,ne.PORTAL_ADMIN],[ne.GENERATIVE_AI_EXPORT_USER]:[ne.GENERATIVE_AI_USER]};function Pc(t,e){return t===e||(Yp[t]??[]).some(o=>Pc(o,e))}function Ic(t,e){return t==null?!1:(Array.isArray(t)?t:Array.isArray(t.roles)?t.roles:Array.isArray(t.profile?.roles)?t.profile.roles:[]).some(n=>Pc(n,e))}function Jp(t){return`"${t}"`}function kc(t){return t.startsWith('"')&&t.endsWith('"')?t.replace(/(^"+)|("+$)/g,""):t}function Qp(t,e){return new or(t).serialize(e)}var K;(function(t){t.LOCALE="content-lang",t.QUERY="query",t.SCOPE="scope",t.FILTERS="filters",t.VIRTUAL_FIELD="virtual-field",t.PERIOD="period",t.VALUE_FILTERS="value-filters",t.DATE_FILTERS="date-filters",t.RANGE_FILTERS="range-filters",t.SORT="sort",t.PER_PAGE="per-page"})(K||(K={}));var eu=new Set(Object.values(K));function Dc(t){return eu.has(t)}var or=class{constructor(e,o={},n=20,a=!1,i="en-US"){this.baseUrl=e,this.predefinedSorts=o,this.defaultPerPage=n,this.allLanguagesAllowed=a,this.defaultContentLocale=i,this.scopeMapping={documents:"DOCUMENTS",topics:"ALL_TOPICS"},this.filtersEscapeMapping=[["*","\\*","[ft-escaped-star-character]"],["~","\\\\~","[ft-escaped-tilde-character]"],["_","\\\\\\\\_","[ft-escaped-underscore-character]"]]}serialize(e,o){return this.serializeToCurrentPageIfPossible(e,o??"/search")}serializeToCurrentPageIfPossible(e,o){let n=o==null||o.trim().length===0,a=new URL(n?window.location.href:`${this.baseUrl.replace(/\/+$/,"")}${o}`);return a.search=this.toURLSearchParams(e),a.toString()}toURLSearchParams(e,o=!1){var n,a,i,s,l,d,u,h,f,m,b,x;let O=new URLSearchParams;e.contentLocale?(!o||e.contentLocale!==this.defaultContentLocale)&&O.append(K.LOCALE,e.contentLocale):O.append(K.LOCALE,this.allLanguagesAllowed?"all":this.defaultContentLocale),((n=e.query)===null||n===void 0?void 0:n.length)>0&&O.append(K.QUERY,e.query);let T=(i=(a=e.metadataFilters)===null||a===void 0?void 0:a.filter(v=>v.valueFilter))!==null&&i!==void 0?i:[];if(T.length>0){let v=T.map(E=>{var I,B;let W=((B=(I=E.valueFilter)===null||I===void 0?void 0:I.values)!==null&&B!==void 0?B:[]).map(U=>this.escapeFilters(U)).map(U=>Jp(kc(U))).join("_");return`${E.key}~${W}`}).join("*");O.append(K.VALUE_FILTERS,v)}let R=(l=(s=e.metadataFilters)===null||s===void 0?void 0:s.filter(v=>v.dateFilter))!==null&&l!==void 0?l:[];if(R.length>0){let v=R.map(E=>{var I;return`${E.key}~${(I=E.dateFilter)===null||I===void 0?void 0:I.type.toLowerCase()}`}).join("*");O.append(K.DATE_FILTERS,v)}let L=(u=(d=e.metadataFilters)===null||d===void 0?void 0:d.filter(v=>v.rangeFilter))!==null&&u!==void 0?u:[];if(L.length>0){let v=L.map(E=>{var I,B;return`${E.key}~${(I=E.rangeFilter)===null||I===void 0?void 0:I.from}_${(B=E.rangeFilter)===null||B===void 0?void 0:B.to}`}).join("*");O.append(K.RANGE_FILTERS,v)}e.virtualField&&e.virtualField!=="EVERYWHERE"&&O.append(K.VIRTUAL_FIELD,e.virtualField.toLowerCase()),e.scope&&e.scope!=="DEFAULT"&&O.append(K.SCOPE,e.scope.toLowerCase()),((h=e.sort)===null||h===void 0?void 0:h.length)>0&&e.sort[0].key==="ft:lastEdition"&&O.append(K.SORT,"last_update"),!((f=e.paging)===null||f===void 0)&&f.perPage&&((b=(m=e.paging)===null||m===void 0?void 0:m.perPage)!==null&&b!==void 0?b:this.defaultPerPage)!=this.defaultPerPage&&O.append(K.PER_PAGE,String(e.paging.perPage));let C=(x=e.otherQueryParams)!==null&&x!==void 0?x:{};for(let v in C)O.append(v,C[v]);return encodeURI(O.toString()).replace(/#/g,"%23")}parse(e){var o;let n=e.split("?"),a=this.fromURLSearchParams(n.slice(1).join("?")),i=n[0].split("/search/")[1];return i==null?a:{...a,scope:(o=this.scopeMapping[i])!==null&&o!==void 0?o:a.scope}}fromURLSearchParams(e){var o,n,a,i,s,l,d,u;try{e=decodeURI(e).replace(/%23/g,"#")}catch(R){console.warn("Could not decode search request query params, fallback on raw value",R)}let h=new URLSearchParams(e),f=h.get(K.LOCALE)==="all"?void 0:h.get(K.LOCALE),m=((o=h.get(K.VIRTUAL_FIELD))!==null&&o!==void 0?o:"EVERYWHERE").toUpperCase(),b=((n=h.get(K.SORT))!==null&&n!==void 0?n:"DEFAULT").toUpperCase(),x=(a=h.get(K.SCOPE))!==null&&a!==void 0?a:"default",O=+((i=h.get(K.PER_PAGE))!==null&&i!==void 0?i:this.defaultPerPage),T={};for(let R of h.keys())Dc(R)||(T[R]=h.get(R));return{contentLocale:f??(this.allLanguagesAllowed?void 0:this.defaultContentLocale),query:(s=h.get(K.QUERY))!==null&&s!==void 0?s:"",scope:(l=this.scopeMapping[x])!==null&&l!==void 0?l:"DEFAULT",virtualField:Rc(m)?m:"EVERYWHERE",sort:(u=(d=this.predefinedSorts[b])!==null&&d!==void 0?d:this.predefinedSorts.DEFAULT)!==null&&u!==void 0?u:[],metadataFilters:this.parseCompatFilters(h),facets:[],paging:{page:1,perPage:Ar(1,isNaN(O)?this.defaultPerPage:O,1e3)},otherQueryParams:T}}parseCompatFilters(e){var o,n,a,i,s,l;let d=[];return e.has(K.FILTERS)&&(d=this.parseValueFilters((o=e.get(K.FILTERS))!==null&&o!==void 0?o:"")),(n=e.has(K.PERIOD))!==null&&n!==void 0&&n&&(d=[...d,...this.parseLegacyPeriodFilter(((a=e.get(K.PERIOD))!==null&&a!==void 0?a:"").toUpperCase())]),[...d,...this.parseValueFilters((i=e.get(K.VALUE_FILTERS))!==null&&i!==void 0?i:""),...this.parseDateFilters((s=e.get(K.DATE_FILTERS))!==null&&s!==void 0?s:""),...this.parseRangeFilters((l=e.get(K.RANGE_FILTERS))!==null&&l!==void 0?l:"")]}splitUnknownFilter(e){return this.superEscapeFilters(e).split("*").map(o=>o.split("~"))}parseValueFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(o=>({key:o[0],valueFilter:{values:o[1].split("_").map(kc).map(n=>this.unescapeFilterValue(n)),negative:!1}}))}parseDateFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(o=>({key:o[0],dateFilter:{type:rr[o[1].toUpperCase()]}}))}parseRangeFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(o=>({key:o[0],rangeFilter:{from:o[1].split("_")[0],to:o[1].split("_")[1]}}))}escapeFilters(e){for(let[o,n,a]of this.filtersEscapeMapping)e=e.replaceAll(o,n);return e}superEscapeFilters(e){for(let[o,n,a]of this.filtersEscapeMapping)e=e.replaceAll(n,a);return e}unescapeFilterValue(e){for(let[o,n,a]of this.filtersEscapeMapping)e=e.replace(a,o);return e}parseLegacyPeriodFilter(e){if(Nc(e))return[{key:"ft:lastEdition",dateFilter:{type:rr[e]}}];if(e.startsWith("CUSTOM_")){let[o,n,a]=e.split("_");return[{key:"ft:lastEdition",rangeFilter:{from:n,to:a}}]}return[]}};var Ja={};z(Ja,{toFtFormComponent:()=>Xa});var Ya=Symbol("elementInternals");function Xa(t){class e extends t{static get formAssociated(){return!0}get form(){return this[Ya].form}constructor(...n){super(n),this[Ya]=this.attachInternals()}setFormValue(n){this[Ya].setFormValue(n)}}return e}var Qa={};z(Qa,{DateFormatter:()=>nr});var nr=class{static format(e,o,n,a){return window.moment?window.moment(e).locale(o).format(this.getDateFormat(n,a)):e}static getDateFormat(e,o){return e?o?"lll":"ll":o?"L LT":"L"}};var ti={};z(ti,{ALL_KEYS_VALUE:()=>ei,SameWindowStorageEvent:()=>ar});var ei="__all__",ar=class extends CustomEvent{constructor(e,o,n){super("same-window-storage",{detail:{key:e,oldValue:o,newValue:n}})}keyMatch(e){return this.detail.key.includes(e)||this.detail.key==ei}};Storage.prototype.setItem=new Proxy(Storage.prototype.setItem,{apply(t,e,o){let n=e.getItem(o[0]);Reflect.apply(t,e,o),window.dispatchEvent(new ar(o[0],n,o[1]))}});Storage.prototype.removeItem=new Proxy(Storage.prototype.removeItem,{apply(t,e,o){let n=e.getItem(o[0]);Reflect.apply(t,e,o),window.dispatchEvent(new ar(o[0],n))}});Storage.prototype.clear=new Proxy(Storage.prototype.clear,{apply(t,e,o){Reflect.apply(t,e,o),window.dispatchEvent(new ar(ei))}});var oi={};z(oi,{FocusMainContentEvent:()=>ri});var ri=class extends Event{constructor(){super("ft-focus-main-content",{composed:!0,bubbles:!0})}};var $c={};window.FluidTopicsA11yHints={isKeyboardNavigation:!1};function tu(t){(t.key==="Enter"||t.key===" "||t.key==="Tab")&&(window.FluidTopicsA11yHints.isKeyboardNavigation=!0)}function ru(t){window.FluidTopicsA11yHints.isKeyboardNavigation=t.detail==0}document.addEventListener("keydown",tu);document.addEventListener("click",ru);var ni,ai,ii,si,ci=navigator.vendor&&!!navigator.vendor.match(/apple/i)||((ii=(ai=(ni=window.safari)===null||ni===void 0?void 0:ni.pushNotification)===null||ai===void 0?void 0:ai.toString())!==null&&ii!==void 0?ii:"")==="[object SafariRemoteNotification]",ou="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;window.ftGlobals=(si=window.ftGlobals)!==null&&si!==void 0?si:{lit:Jo,litDecorators:en,litRepeat:tn,litClassMap:rn,litStyleMap:on,litUnsafeHTML:an,wcUtils:{...fn,...cn,...mn,...Qa,...gn,...vn,...qn,...un,...da,...oi,...$c,...Ka,...Zn,...ya,...Ja,...ha,...Ss,...xn,...ba,...xa,...Cs,...va,...ja,...ti,...pa,...fa,...qa,isSafari:ci,isTouchScreen:ou,setVariable:w}};var Mc=[$`
48
+ `;var Cs={};var va={};z(va,{ParametrizedLabelResolver:()=>Br});var Br=class t{constructor(e,o){this.defaultLabels=e,this.labels=o}resolve(e,...o){var n,a;e=this.resolvePluralKey(e,o);let i=(a=(n=this.labels[e])!==null&&n!==void 0?n:this.defaultLabels[e])!==null&&a!==void 0?a:"";return t.replaceParameters(i,...o)}static replaceParameters(e,...o){return o.forEach((n,a)=>e=e.replace(new RegExp(`\\{${a}([^}]*)\\}`,"g"),(i,s)=>t.formatValue(n,s))),e}resolvePluralKey(e,o){for(let n of o)if(typeof n=="number"){let a=`${String(e)}[\\=${n}]`;if(a in this.labels||a in this.defaultLabels)return a}return e}static formatValue(e,o){return e instanceof Date?t.formatDate(e,o):e??""}static formatDate(e,o){let n=a=>o?.includes("date")?e.toLocaleDateString(a):o?.includes("time")?e.toLocaleTimeString(a):e.toLocaleString(a);try{return n(document.documentElement.lang)}catch{return n()}}};var ja={};z(ja,{FtCommandQueue:()=>Ur,FtLitElementRedux:()=>lt,FtReduxStore:()=>Pt,ReduxWatcher:()=>Oo,clearAllStores:()=>Kp,isFtReduxStore:()=>Nt,redux:()=>mo,reduxEventListener:()=>dp,reduxReactive:()=>lp,watch:()=>Zp});var lp=()=>(t,e)=>{var o;let n=t.constructor;n.reduxReactiveProperties=new Set(n.reduxReactiveProperties),(o=n.reduxReactiveProperties)===null||o===void 0||o.add(e)},mo=t=>{let e=t??{};return(o,n)=>{var a;let i={hasChanged:at,attribute:!1,...e};A(i)(o,n);let s=o.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(n,{selector:(a=e.selector)!==null&&a!==void 0?a:l=>l[n],store:e.store})}},dp=t=>(e,o)=>{let n=e.constructor;n.reduxEventListeners=new Map(n.reduxEventListeners),n.reduxEventListeners.set(o,t)};var Ur=class{constructor(){this.queue=[]}add(e,o=!1){o&&this.clear(e.type),this.queue.push(e)}consume(e){let o=this.queue.find(n=>n.type===e);return o&&(this.queue=this.queue.filter(n=>n!==o)),o}clear(e){typeof e=="string"?this.queue=this.queue.filter(o=>o.type!==e):this.queue=this.queue.filter(o=>!e.test(o.type))}};function Nt(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var Es,ws,As,Fr=Symbol("internalReduxEventsUnsubscribers"),ct=Symbol("internalStoresUnsubscribers"),Tt=Symbol("internalStores"),lt=class extends j{constructor(){super(...arguments),this[Es]=new Map,this[ws]=new Map,this[As]=new Map}get reduxConstructor(){return this.constructor}update(e){super.update(e),[...this.reduxConstructor.reduxReactiveProperties].some(o=>e.has(o))&&this.updateFromStores()}getUnnamedStore(){if(this[Tt].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Tt].values()][0]}getStore(e){return e==null?this.getUnnamedStore():this[Tt].get(e)}addStore(e,o){var n;o=(n=o??(Nt(e)?e.name:void 0))!==null&&n!==void 0?n:"default-store",this.unsubscribeFromStore(o),this[Tt].set(o,e),this.subscribeToStore(o,e),this.updateFromStores()}removeStore(e){let o=typeof e=="string"?e:e.name;this.unsubscribeFromStore(o),this[Tt].delete(o)}setupStores(){this.unsubscribeFromStores(),this[Tt].forEach((e,o)=>this.subscribeToStore(o,e)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((e,o)=>{let n=this.constructor.getPropertyOptions(o);if(!n?.attribute||!this.hasAttribute(typeof n?.attribute=="string"?n.attribute:o)){let a=this.getStore(e.store);a&&(e.store?this[ct].has(e.store):this[ct].size>0)&&(this[o]=e.selector(a.getState(),this))}})}subscribeToStore(e,o){var n;this[ct].set(e,o.subscribe(()=>this.updateFromStores())),this[Fr].set(e,[]),Nt(o)&&o.eventBus&&((n=this.reduxConstructor.reduxEventListeners)===null||n===void 0||n.forEach((a,i)=>{if(typeof this[i]=="function"&&(!a.store||o.name===a.store)){let s=l=>this[i](l);o.addEventListener(a.eventName,s),this[Fr].get(e).push(()=>o.removeEventListener(a.eventName,s))}})),this.onStoreAvailable(e)}unsubscribeFromStores(){this[ct].forEach((e,o)=>this.unsubscribeFromStore(o))}unsubscribeFromStore(e){var o;this[ct].has(e)&&this[ct].get(e)(),this[ct].delete(e),(o=this[Fr].get(e))===null||o===void 0||o.forEach(n=>n()),this[Fr].delete(e)}onStoreAvailable(e){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}};Es=ct,ws=Tt,As=Fr;lt.reduxProperties=new Map;lt.reduxReactiveProperties=new Set;lt.reduxEventListeners=new Map;function we(t){for(var e=arguments.length,o=Array(e>1?e-1:0),n=1;n<e;n++)o[n-1]=arguments[n];if(0)var a,i;throw Error("[Immer] minified error nr: "+t+(o.length?" "+o.map(function(s){return"'"+s+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Xe(t){return!!t&&!!t[X]}function Le(t){var e;return!!t&&(function(o){if(!o||typeof o!="object")return!1;var n=Object.getPrototypeOf(o);if(n===null)return!0;var a=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return a===Object||typeof a=="function"&&Function.toString.call(a)===bp}(t)||Array.isArray(t)||!!t[Is]||!!(!((e=t.constructor)===null||e===void 0)&&e[Is])||Ta(t)||_a(t))}function _t(t,e,o){o===void 0&&(o=!1),Jt(t)===0?(o?Object.keys:Xt)(t).forEach(function(n){o&&typeof n=="symbol"||e(n,t[n],t)}):t.forEach(function(n,a){return e(a,n,t)})}function Jt(t){var e=t[X];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:Ta(t)?2:_a(t)?3:0}function Yt(t,e){return Jt(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function pp(t,e){return Jt(t)===2?t.get(e):t[e]}function ks(t,e,o){var n=Jt(t);n===2?t.set(e,o):n===3?t.add(o):t[e]=o}function Ds(t,e){return t===e?t!==0||1/t==1/e:t!=t&&e!=e}function Ta(t){return mp&&t instanceof Map}function _a(t){return gp&&t instanceof Set}function dt(t){return t.o||t.t}function La(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=Bs(t);delete e[X];for(var o=Xt(e),n=0;n<o.length;n++){var a=o[n],i=e[a];i.writable===!1&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(e[a]={configurable:!0,writable:!0,enumerable:i.enumerable,value:t[a]})}return Object.create(Object.getPrototypeOf(t),e)}function Pa(t,e){return e===void 0&&(e=!1),Ia(t)||Xe(t)||!Le(t)||(Jt(t)>1&&(t.set=t.add=t.clear=t.delete=up),Object.freeze(t),e&&_t(t,function(o,n){return Pa(n,!0)},!0)),t}function up(){we(2)}function Ia(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function Fe(t){var e=Na[t];return e||we(18,t),e}function fp(t,e){Na[t]||(Na[t]=e)}function wa(){return Hr}function Sa(t,e){e&&(Fe("Patches"),t.u=[],t.s=[],t.v=e)}function go(t){Aa(t),t.p.forEach(hp),t.p=null}function Aa(t){t===Hr&&(Hr=t.l)}function Rs(t){return Hr={p:[],l:Hr,h:t,m:!0,_:0}}function hp(t){var e=t[X];e.i===0||e.i===1?e.j():e.g=!0}function Oa(t,e){e._=e.p.length;var o=e.p[0],n=t!==void 0&&t!==o;return e.h.O||Fe("ES5").S(e,t,n),n?(o[X].P&&(go(e),we(4)),Le(t)&&(t=bo(e,t),e.l||xo(e,t)),e.u&&Fe("Patches").M(o[X].t,t,e.u,e.s)):t=bo(e,o,[]),go(e),e.u&&e.v(e.u,e.s),t!==Ms?t:void 0}function bo(t,e,o){if(Ia(e))return e;var n=e[X];if(!n)return _t(e,function(l,d){return Ns(t,n,e,l,d,o)},!0),e;if(n.A!==t)return e;if(!n.P)return xo(t,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var a=n.i===4||n.i===5?n.o=La(n.k):n.o,i=a,s=!1;n.i===3&&(i=new Set(a),a.clear(),s=!0),_t(i,function(l,d){return Ns(t,n,a,l,d,o,s)}),xo(t,a,!1),o&&t.u&&Fe("Patches").N(n,o,t.u,t.s)}return n.o}function Ns(t,e,o,n,a,i,s){if(Xe(a)){var l=bo(t,a,i&&e&&e.i!==3&&!Yt(e.R,n)?i.concat(n):void 0);if(ks(o,n,l),!Xe(l))return;t.m=!1}else s&&o.add(a);if(Le(a)&&!Ia(a)){if(!t.h.D&&t._<1)return;bo(t,a),e&&e.A.l||xo(t,a)}}function xo(t,e,o){o===void 0&&(o=!1),!t.l&&t.h.D&&t.m&&Pa(e,o)}function Ca(t,e){var o=t[X];return(o?dt(o):t)[e]}function Ts(t,e){if(e in t)for(var o=Object.getPrototypeOf(t);o;){var n=Object.getOwnPropertyDescriptor(o,e);if(n)return n;o=Object.getPrototypeOf(o)}}function pt(t){t.P||(t.P=!0,t.l&&pt(t.l))}function Ea(t){t.o||(t.o=La(t.t))}function Ra(t,e,o){var n=Ta(e)?Fe("MapSet").F(e,o):_a(e)?Fe("MapSet").T(e,o):t.O?function(a,i){var s=Array.isArray(a),l={i:s?1:0,A:i?i.A:wa(),P:!1,I:!1,R:{},l:i,t:a,k:null,o:null,j:null,C:!1},d=l,u=zr;s&&(d=[l],u=Wr);var h=Proxy.revocable(d,u),f=h.revoke,m=h.proxy;return l.k=m,l.j=f,m}(e,o):Fe("ES5").J(e,o);return(o?o.A:wa()).p.push(n),n}function yp(t){return Xe(t)||we(22,t),function e(o){if(!Le(o))return o;var n,a=o[X],i=Jt(o);if(a){if(!a.P&&(a.i<4||!Fe("ES5").K(a)))return a.t;a.I=!0,n=_s(o,i),a.I=!1}else n=_s(o,i);return _t(n,function(s,l){a&&pp(a.t,s)===l||ks(n,s,e(l))}),i===3?new Set(n):n}(t)}function _s(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return La(t)}function $s(){function t(s,l){var d=i[s];return d?d.enumerable=l:i[s]=d={configurable:!0,enumerable:l,get:function(){var u=this[X];return zr.get(u,s)},set:function(u){var h=this[X];zr.set(h,s,u)}},d}function e(s){for(var l=s.length-1;l>=0;l--){var d=s[l][X];if(!d.P)switch(d.i){case 5:n(d)&&pt(d);break;case 4:o(d)&&pt(d)}}}function o(s){for(var l=s.t,d=s.k,u=Xt(d),h=u.length-1;h>=0;h--){var f=u[h];if(f!==X){var m=l[f];if(m===void 0&&!Yt(l,f))return!0;var b=d[f],x=b&&b[X];if(x?x.t!==m:!Ds(b,m))return!0}}var O=!!l[X];return u.length!==Xt(l).length+(O?0:1)}function n(s){var l=s.k;if(l.length!==s.t.length)return!0;var d=Object.getOwnPropertyDescriptor(l,l.length-1);if(d&&!d.get)return!0;for(var u=0;u<l.length;u++)if(!l.hasOwnProperty(u))return!0;return!1}function a(s){s.g&&we(3,JSON.stringify(dt(s)))}var i={};fp("ES5",{J:function(s,l){var d=Array.isArray(s),u=function(f,m){if(f){for(var b=Array(m.length),x=0;x<m.length;x++)Object.defineProperty(b,""+x,t(x,!0));return b}var O=Bs(m);delete O[X];for(var T=Xt(O),R=0;R<T.length;R++){var L=T[R];O[L]=t(L,f||!!O[L].enumerable)}return Object.create(Object.getPrototypeOf(m),O)}(d,s),h={i:d?5:4,A:l?l.A:wa(),P:!1,I:!1,R:{},l,t:s,k:u,o:null,g:!1,C:!1};return Object.defineProperty(u,X,{value:h,writable:!0}),u},S:function(s,l,d){d?Xe(l)&&l[X].A===s&&e(s.p):(s.u&&function u(h){if(h&&typeof h=="object"){var f=h[X];if(f){var m=f.t,b=f.k,x=f.R,O=f.i;if(O===4)_t(b,function(v){v!==X&&(m[v]!==void 0||Yt(m,v)?x[v]||u(b[v]):(x[v]=!0,pt(f)))}),_t(m,function(v){b[v]!==void 0||Yt(b,v)||(x[v]=!1,pt(f))});else if(O===5){if(n(f)&&(pt(f),x.length=!0),b.length<m.length)for(var T=b.length;T<m.length;T++)x[T]=!1;else for(var R=m.length;R<b.length;R++)x[R]=!0;for(var L=Math.min(b.length,m.length),C=0;C<L;C++)b.hasOwnProperty(C)||(x[C]=!0),x[C]===void 0&&u(b[C])}}}}(s.p[0]),e(s.p))},K:function(s){return s.i===4?o(s):n(s)}})}var Ls,Hr,ka=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",mp=typeof Map<"u",gp=typeof Set<"u",Ps=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Ms=ka?Symbol.for("immer-nothing"):((Ls={})["immer-nothing"]=!0,Ls),Is=ka?Symbol.for("immer-draftable"):"__$immer_draftable",X=ka?Symbol.for("immer-state"):"__$immer_state";var bp=""+Object.prototype.constructor,Xt=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,Bs=Object.getOwnPropertyDescriptors||function(t){var e={};return Xt(t).forEach(function(o){e[o]=Object.getOwnPropertyDescriptor(t,o)}),e},Na={},zr={get:function(t,e){if(e===X)return t;var o=dt(t);if(!Yt(o,e))return function(a,i,s){var l,d=Ts(i,s);return d?"value"in d?d.value:(l=d.get)===null||l===void 0?void 0:l.call(a.k):void 0}(t,o,e);var n=o[e];return t.I||!Le(n)?n:n===Ca(t.t,e)?(Ea(t),t.o[e]=Ra(t.A.h,n,t)):n},has:function(t,e){return e in dt(t)},ownKeys:function(t){return Reflect.ownKeys(dt(t))},set:function(t,e,o){var n=Ts(dt(t),e);if(n?.set)return n.set.call(t.k,o),!0;if(!t.P){var a=Ca(dt(t),e),i=a?.[X];if(i&&i.t===o)return t.o[e]=o,t.R[e]=!1,!0;if(Ds(o,a)&&(o!==void 0||Yt(t.t,e)))return!0;Ea(t),pt(t)}return t.o[e]===o&&(o!==void 0||e in t.o)||Number.isNaN(o)&&Number.isNaN(t.o[e])||(t.o[e]=o,t.R[e]=!0),!0},deleteProperty:function(t,e){return Ca(t.t,e)!==void 0||e in t.t?(t.R[e]=!1,Ea(t),pt(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var o=dt(t),n=Reflect.getOwnPropertyDescriptor(o,e);return n&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:n.enumerable,value:o[e]}},defineProperty:function(){we(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){we(12)}},Wr={};_t(zr,function(t,e){Wr[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),Wr.deleteProperty=function(t,e){return Wr.set.call(this,t,e,void 0)},Wr.set=function(t,e,o){return zr.set.call(this,t[0],e,o,t[0])};var xp=function(){function t(o){var n=this;this.O=Ps,this.D=!0,this.produce=function(a,i,s){if(typeof a=="function"&&typeof i!="function"){var l=i;i=a;var d=n;return function(O){var T=this;O===void 0&&(O=l);for(var R=arguments.length,L=Array(R>1?R-1:0),C=1;C<R;C++)L[C-1]=arguments[C];return d.produce(O,function(v){var E;return(E=i).call.apply(E,[T,v].concat(L))})}}var u;if(typeof i!="function"&&we(6),s!==void 0&&typeof s!="function"&&we(7),Le(a)){var h=Rs(n),f=Ra(n,a,void 0),m=!0;try{u=i(f),m=!1}finally{m?go(h):Aa(h)}return typeof Promise<"u"&&u instanceof Promise?u.then(function(O){return Sa(h,s),Oa(O,h)},function(O){throw go(h),O}):(Sa(h,s),Oa(u,h))}if(!a||typeof a!="object"){if((u=i(a))===void 0&&(u=a),u===Ms&&(u=void 0),n.D&&Pa(u,!0),s){var b=[],x=[];Fe("Patches").M(a,u,b,x),s(b,x)}return u}we(21,a)},this.produceWithPatches=function(a,i){if(typeof a=="function")return function(u){for(var h=arguments.length,f=Array(h>1?h-1:0),m=1;m<h;m++)f[m-1]=arguments[m];return n.produceWithPatches(u,function(b){return a.apply(void 0,[b].concat(f))})};var s,l,d=n.produce(a,i,function(u,h){s=u,l=h});return typeof Promise<"u"&&d instanceof Promise?d.then(function(u){return[u,s,l]}):[d,s,l]},typeof o?.useProxies=="boolean"&&this.setUseProxies(o.useProxies),typeof o?.autoFreeze=="boolean"&&this.setAutoFreeze(o.autoFreeze)}var e=t.prototype;return e.createDraft=function(o){Le(o)||we(8),Xe(o)&&(o=yp(o));var n=Rs(this),a=Ra(this,o,void 0);return a[X].C=!0,Aa(n),a},e.finishDraft=function(o,n){var a=o&&o[X],i=a.A;return Sa(i,n),Oa(void 0,i)},e.setAutoFreeze=function(o){this.D=o},e.setUseProxies=function(o){o&&!Ps&&we(20),this.O=o},e.applyPatches=function(o,n){var a;for(a=n.length-1;a>=0;a--){var i=n[a];if(i.path.length===0&&i.op==="replace"){o=i.value;break}}a>-1&&(n=n.slice(a+1));var s=Fe("Patches").$;return Xe(o)?s(o,n):this.produce(o,function(l){return s(l,n)})},t}(),Ce=new xp,vp=Ce.produce,Ig=Ce.produceWithPatches.bind(Ce),kg=Ce.setAutoFreeze.bind(Ce),Dg=Ce.setUseProxies.bind(Ce),$g=Ce.applyPatches.bind(Ce),Mg=Ce.createDraft.bind(Ce),Bg=Ce.finishDraft.bind(Ce),vo=vp;function Lt(t){"@babel/helpers - typeof";return Lt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Lt(t)}function Us(t,e){if(Lt(t)!="object"||!t)return t;var o=t[Symbol.toPrimitive];if(o!==void 0){var n=o.call(t,e||"default");if(Lt(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Fs(t){var e=Us(t,"string");return Lt(e)=="symbol"?e:e+""}function Ws(t,e,o){return(e=Fs(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function Hs(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),o.push.apply(o,n)}return o}function Da(t){for(var e=1;e<arguments.length;e++){var o=arguments[e]!=null?arguments[e]:{};e%2?Hs(Object(o),!0).forEach(function(n){Ws(t,n,o[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):Hs(Object(o)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(o,n))})}return t}function pe(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}var zs=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),$a=function(){return Math.random().toString(36).substring(7).split("").join(".")},So={INIT:"@@redux/INIT"+$a(),REPLACE:"@@redux/REPLACE"+$a(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+$a()}};function Sp(t){if(typeof t!="object"||t===null)return!1;for(var e=t;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function Ma(t,e,o){var n;if(typeof e=="function"&&typeof o=="function"||typeof o=="function"&&typeof arguments[3]=="function")throw new Error(pe(0));if(typeof e=="function"&&typeof o>"u"&&(o=e,e=void 0),typeof o<"u"){if(typeof o!="function")throw new Error(pe(1));return o(Ma)(t,e)}if(typeof t!="function")throw new Error(pe(2));var a=t,i=e,s=[],l=s,d=!1;function u(){l===s&&(l=s.slice())}function h(){if(d)throw new Error(pe(3));return i}function f(O){if(typeof O!="function")throw new Error(pe(4));if(d)throw new Error(pe(5));var T=!0;return u(),l.push(O),function(){if(T){if(d)throw new Error(pe(6));T=!1,u();var L=l.indexOf(O);l.splice(L,1),s=null}}}function m(O){if(!Sp(O))throw new Error(pe(7));if(typeof O.type>"u")throw new Error(pe(8));if(d)throw new Error(pe(9));try{d=!0,i=a(i,O)}finally{d=!1}for(var T=s=l,R=0;R<T.length;R++){var L=T[R];L()}return O}function b(O){if(typeof O!="function")throw new Error(pe(10));a=O,m({type:So.REPLACE})}function x(){var O,T=f;return O={subscribe:function(L){if(typeof L!="object"||L===null)throw new Error(pe(11));function C(){L.next&&L.next(h())}C();var v=T(C);return{unsubscribe:v}}},O[zs]=function(){return this},O}return m({type:So.INIT}),n={dispatch:m,subscribe:f,getState:h,replaceReducer:b},n[zs]=x,n}function Op(t){Object.keys(t).forEach(function(e){var o=t[e],n=o(void 0,{type:So.INIT});if(typeof n>"u")throw new Error(pe(12));if(typeof o(void 0,{type:So.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(pe(13))})}function js(t){for(var e=Object.keys(t),o={},n=0;n<e.length;n++){var a=e[n];typeof t[a]=="function"&&(o[a]=t[a])}var i=Object.keys(o),s,l;try{Op(o)}catch(d){l=d}return function(u,h){if(u===void 0&&(u={}),l)throw l;if(0)var f;for(var m=!1,b={},x=0;x<i.length;x++){var O=i[x],T=o[O],R=u[O],L=T(R,h);if(typeof L>"u"){var C=h&&h.type;throw new Error(pe(14))}b[O]=L,m=m||L!==R}return m=m||i.length!==Object.keys(u).length,m?b:u}}function Qt(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return e.length===0?function(n){return n}:e.length===1?e[0]:e.reduce(function(n,a){return function(){return n(a.apply(void 0,arguments))}})}function Gs(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return function(n){return function(){var a=n.apply(void 0,arguments),i=function(){throw new Error(pe(15))},s={getState:a.getState,dispatch:function(){return i.apply(void 0,arguments)}},l=e.map(function(d){return d(s)});return i=Qt.apply(void 0,l)(a.dispatch),Da(Da({},a),{},{dispatch:i})}}}function Vs(t){var e=function(n){var a=n.dispatch,i=n.getState;return function(s){return function(l){return typeof l=="function"?l(a,i,t):s(l)}}};return e}var Ks=Vs();Ks.withExtraArgument=Vs;var Ba=Ks;var Js=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},t(e,o)};return function(e,o){if(typeof o!="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");t(e,o);function n(){this.constructor=e}e.prototype=o===null?Object.create(o):(n.prototype=o.prototype,new n)}}(),Cp=function(t,e){var o={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(u){return function(h){return d([u,h])}}function d(u){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,a&&(i=u[0]&2?a.return:u[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,u[1])).done)return i;switch(a=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return o.label++,{value:u[1],done:!1};case 5:o.label++,a=u[1],u=[0];continue;case 7:u=o.ops.pop(),o.trys.pop();continue;default:if(i=o.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){o=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]<i[3])){o.label=u[1];break}if(u[0]===6&&o.label<i[1]){o.label=i[1],i=u;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(u);break}i[2]&&o.ops.pop(),o.trys.pop();continue}u=e.call(t,o)}catch(h){u=[6,h],a=0}finally{n=i=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}},er=function(t,e){for(var o=0,n=e.length,a=t.length;o<n;o++,a++)t[a]=e[o];return t},Ep=Object.defineProperty,wp=Object.defineProperties,Ap=Object.getOwnPropertyDescriptors,Zs=Object.getOwnPropertySymbols,Rp=Object.prototype.hasOwnProperty,Np=Object.prototype.propertyIsEnumerable,qs=function(t,e,o){return e in t?Ep(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o},ut=function(t,e){for(var o in e||(e={}))Rp.call(e,o)&&qs(t,o,e[o]);if(Zs)for(var n=0,a=Zs(e);n<a.length;n++){var o=a[n];Np.call(e,o)&&qs(t,o,e[o])}return t},Ua=function(t,e){return wp(t,Ap(e))},Tp=function(t,e,o){return new Promise(function(n,a){var i=function(d){try{l(o.next(d))}catch(u){a(u)}},s=function(d){try{l(o.throw(d))}catch(u){a(u)}},l=function(d){return d.done?n(d.value):Promise.resolve(d.value).then(i,s)};l((o=o.apply(t,e)).next())})};var _p=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Qt:Qt.apply(null,arguments)},rb=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}};function Lp(t){if(typeof t!="object"||t===null)return!1;var e=Object.getPrototypeOf(t);if(e===null)return!0;for(var o=e;Object.getPrototypeOf(o)!==null;)o=Object.getPrototypeOf(o);return e===o}var Pp=function(t){Js(e,t);function e(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var a=t.apply(this,o)||this;return Object.setPrototypeOf(a,e.prototype),a}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return t.prototype.concat.apply(this,o)},e.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(e.bind.apply(e,er([void 0],o[0].concat(this)))):new(e.bind.apply(e,er([void 0],o.concat(this))))},e}(Array),Ip=function(t){Js(e,t);function e(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var a=t.apply(this,o)||this;return Object.setPrototypeOf(a,e.prototype),a}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return t.prototype.concat.apply(this,o)},e.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(e.bind.apply(e,er([void 0],o[0].concat(this)))):new(e.bind.apply(e,er([void 0],o.concat(this))))},e}(Array);function Ha(t){return Le(t)?vo(t,function(){}):t}function kp(t){return typeof t=="boolean"}function Dp(){return function(e){return $p(e)}}function $p(t){t===void 0&&(t={});var e=t.thunk,o=e===void 0?!0:e,n=t.immutableCheck,a=n===void 0?!0:n,i=t.serializableCheck,s=i===void 0?!0:i,l=new Pp;if(o&&(kp(o)?l.push(Ba):l.push(Ba.withExtraArgument(o.extraArgument))),0){if(a)var d;if(s)var u}return l}var Fa=!0;function Qs(t){var e=Dp(),o=t||{},n=o.reducer,a=n===void 0?void 0:n,i=o.middleware,s=i===void 0?e():i,l=o.devTools,d=l===void 0?!0:l,u=o.preloadedState,h=u===void 0?void 0:u,f=o.enhancers,m=f===void 0?void 0:f,b;if(typeof a=="function")b=a;else if(Lp(a))b=js(a);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 x=s;if(typeof x=="function"&&(x=x(e),!Fa&&!Array.isArray(x)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!Fa&&x.some(function(v){return typeof v!="function"}))throw new Error("each middleware provided to configureStore must be a function");var O=Gs.apply(void 0,x),T=Qt;d&&(T=_p(ut({trace:!Fa},typeof d=="object"&&d)));var R=new Ip(O),L=R;Array.isArray(m)?L=er([O],m):typeof m=="function"&&(L=m(R));var C=T.apply(void 0,L);return Ma(b,h,C)}function ft(t,e){function o(){for(var n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];if(e){var i=e.apply(void 0,n);if(!i)throw new Error("prepareAction did not return an object");return ut(ut({type:t,payload:i.payload},"meta"in i&&{meta:i.meta}),"error"in i&&{error:i.error})}return{type:t,payload:n[0]}}return o.toString=function(){return""+t},o.type=t,o.match=function(n){return n.type===t},o}function ec(t){var e={},o=[],n,a={addCase:function(i,s){var l=typeof i=="string"?i:i.type;if(l in e)throw new Error("addCase cannot be called with two reducers for the same action type");return e[l]=s,a},addMatcher:function(i,s){return o.push({matcher:i,reducer:s}),a},addDefaultCase:function(i){return n=i,a}};return t(a),[e,o,n]}function Mp(t){return typeof t=="function"}function Bp(t,e,o,n){o===void 0&&(o=[]);var a=typeof e=="function"?ec(e):[e,o,n],i=a[0],s=a[1],l=a[2],d;if(Mp(t))d=function(){return Ha(t())};else{var u=Ha(t);d=function(){return u}}function h(f,m){f===void 0&&(f=d());var b=er([i[m.type]],s.filter(function(x){var O=x.matcher;return O(m)}).map(function(x){var O=x.reducer;return O}));return b.filter(function(x){return!!x}).length===0&&(b=[l]),b.reduce(function(x,O){if(O)if(Xe(x)){var T=x,R=O(T,m);return R===void 0?x:R}else{if(Le(x))return vo(x,function(L){return O(L,m)});var R=O(x,m);if(R===void 0){if(x===null)return x;throw Error("A case reducer on a non-draftable value must not return undefined")}return R}return x},f)}return h.getInitialState=d,h}function Up(t,e){return t+"/"+e}function tc(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");typeof process<"u";var o=typeof t.initialState=="function"?t.initialState:Ha(t.initialState),n=t.reducers||{},a=Object.keys(n),i={},s={},l={};a.forEach(function(h){var f=n[h],m=Up(e,h),b,x;"reducer"in f?(b=f.reducer,x=f.prepare):b=f,i[h]=b,s[m]=b,l[h]=x?ft(m,x):ft(m)});function d(){var h=typeof t.extraReducers=="function"?ec(t.extraReducers):[t.extraReducers],f=h[0],m=f===void 0?{}:f,b=h[1],x=b===void 0?[]:b,O=h[2],T=O===void 0?void 0:O,R=ut(ut({},m),s);return Bp(o,function(L){for(var C in R)L.addCase(C,R[C]);for(var v=0,E=x;v<E.length;v++){var I=E[v];L.addMatcher(I.matcher,I.reducer)}T&&L.addDefaultCase(T)})}var u;return{name:e,reducer:function(h,f){return u||(u=d()),u(h,f)},actions:l,caseReducers:i,getInitialState:function(){return u||(u=d()),u.getInitialState()}}}var Fp="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Wp=function(t){t===void 0&&(t=21);for(var e="",o=t;o--;)e+=Fp[Math.random()*64|0];return e},Hp=["name","message","stack","code"],Wa=function(){function t(e,o){this.payload=e,this.meta=o}return t}(),Ys=function(){function t(e,o){this.payload=e,this.meta=o}return t}(),zp=function(t){if(typeof t=="object"&&t!==null){for(var e={},o=0,n=Hp;o<n.length;o++){var a=n[o];typeof t[a]=="string"&&(e[a]=t[a])}return e}return{message:String(t)}},ib=function(){function t(e,o,n){var a=ft(e+"/fulfilled",function(h,f,m,b){return{payload:h,meta:Ua(ut({},b||{}),{arg:m,requestId:f,requestStatus:"fulfilled"})}}),i=ft(e+"/pending",function(h,f,m){return{payload:void 0,meta:Ua(ut({},m||{}),{arg:f,requestId:h,requestStatus:"pending"})}}),s=ft(e+"/rejected",function(h,f,m,b,x){return{payload:b,error:(n&&n.serializeError||zp)(h||"Rejected"),meta:Ua(ut({},x||{}),{arg:m,requestId:f,rejectedWithValue:!!b,requestStatus:"rejected",aborted:h?.name==="AbortError",condition:h?.name==="ConditionError"})}}),l=!1,d=typeof AbortController<"u"?AbortController:function(){function h(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return h.prototype.abort=function(){},h}();function u(h){return function(f,m,b){var x=n?.idGenerator?n.idGenerator(h):Wp(),O=new d,T,R=!1;function L(v){T=v,O.abort()}var C=function(){return Tp(this,null,function(){var v,E,I,B,W,U,k;return Cp(this,function(y){switch(y.label){case 0:return y.trys.push([0,4,,5]),B=(v=n?.condition)==null?void 0:v.call(n,h,{getState:m,extra:b}),Gp(B)?[4,B]:[3,2];case 1:B=y.sent(),y.label=2;case 2:if(B===!1||O.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return R=!0,W=new Promise(function(S,P){return O.signal.addEventListener("abort",function(){return P({name:"AbortError",message:T||"Aborted"})})}),f(i(x,h,(E=n?.getPendingMeta)==null?void 0:E.call(n,{requestId:x,arg:h},{getState:m,extra:b}))),[4,Promise.race([W,Promise.resolve(o(h,{dispatch:f,getState:m,extra:b,requestId:x,signal:O.signal,abort:L,rejectWithValue:function(S,P){return new Wa(S,P)},fulfillWithValue:function(S,P){return new Ys(S,P)}})).then(function(S){if(S instanceof Wa)throw S;return S instanceof Ys?a(S.payload,x,h,S.meta):a(S,x,h)})])];case 3:return I=y.sent(),[3,5];case 4:return U=y.sent(),I=U instanceof Wa?s(null,x,h,U.payload,U.meta):s(U,x,h),[3,5];case 5:return k=n&&!n.dispatchConditionRejection&&s.match(I)&&I.meta.condition,k||f(I),[2,I]}})})}();return Object.assign(C,{abort:L,requestId:x,arg:h,unwrap:function(){return C.then(jp)}})}}return Object.assign(u,{pending:i,rejected:s,fulfilled:a,typePrefix:e})}return t.withTypes=function(){return t},t}();function jp(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function Gp(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var rc="listener",oc="completed",nc="cancelled",sb="task-"+nc,cb="task-"+oc,lb=rc+"-"+nc,db=rc+"-"+oc;var za="listenerMiddleware";var pb=ft(za+"/add"),ub=ft(za+"/removeAll"),fb=ft(za+"/remove");var Xs,hb=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(t){return(Xs||(Xs=Promise.resolve())).then(t).catch(function(e){return setTimeout(function(){throw e},0)})},Vp=function(t){return function(e){setTimeout(e,t)}},yb=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Vp(10);$s();window.ftReduxStores||(window.ftReduxStores={});var Pt=class t extends Ve{static get(e){var o;let n=typeof e=="string"?e:e.name,a=typeof e=="string"?void 0:e,i=window.ftReduxStores[n];if(Nt(i))return i;if(a==null)return;let s=tc({...a,reducers:(o=a.reducers)!==null&&o!==void 0?o:{}}),l=Qs({reducer:(d,u)=>u.type==="CLEAR_FT_REDUX_STORE"?s.getInitialState():typeof u.type=="string"&&u.type.startsWith("DEFAULT_VALUE_SETTER__")?{...d,...u.overwrites}:s.reducer(d,u)});return window.ftReduxStores[a.name]=new t(s,l,a.eventBus)}constructor(e,o,n){super(),this.reduxSlice=e,this.reduxStore=o,this.isFtReduxStore=!0,this.commands=new Ur;let a=i=>i!=null?JSON.parse(JSON.stringify(i)):i;this.actions=new Proxy(this.reduxSlice.actions,{get:(i,s,l)=>{let d=s,u=i[d];return u?(...h)=>{let f=u(...h.map(a));return this.reduxStore.dispatch(f),f}:h=>{this.setState({[d]:a(h)})}}}),this.eventBus=n??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(e){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(e).join("_"),overwrites:e})}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(e){throw new Error("Not implemented yet.")}subscribe(e){return this.reduxStore.subscribe(e)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};function Kp(){var t;for(let e of Object.values((t=window.ftReduxStores)!==null&&t!==void 0?t:{}))Nt(e)&&e.clear()}var Oo=class{constructor(e,o,n){this.store=e,this.valueSelector=o,this.callback=n}watch(){return this.stop(),this.lastValue=this.valueSelector(this.store.getState()),this.unsubscribe=this.store.subscribe(()=>{let e=this.store.getState(),o=this.valueSelector(e);at(this.lastValue,o)&&(this.callback(o,e),this.lastValue=o)}),this}stop(){return this.unsubscribe!=null&&(this.unsubscribe(),this.unsubscribe=void 0),this.lastValue=void 0,this}};function Zp(t,e,o){return new Oo(t,e,o).watch()}var Ka={};z(Ka,{scrollHelper:()=>qp});var Ga,Co=new Map,Va=class{lock(e,o){if(o){let n=Co.get(o);if(n==null||n===e)return Co.set(o,e),o}}release(e,o){o&&Co.get(o)===e&&Co.delete(o)}findFirstScrollableParent(e){var o;let n,a;for(let i of bn(e)){let s=i,l=this.elementCanScroll(s);if(l&&s.clientHeight&&s.clientHeight<s.scrollHeight){n=s;break}else l&&a==null&&(a=s)}return(o=n??a)!==null&&o!==void 0?o:document.body}elementCanScroll(e){try{return["auto","scroll"].includes(getComputedStyle(e).overflowY)}catch{return!1}}getAbsoluteScrollOffset(e,o){var n,a;let i=0;for(;o&&o.offsetParent!==e.offsetParent;)i+=(n=o.offsetTop)!==null&&n!==void 0?n:0,o=o.offsetParent;return i+((a=o?.offsetTop)!==null&&a!==void 0?a:0)-e.offsetTop}computeTopOffsetRatio(e,o){if(typeof e=="number")return e;switch(e){case"end":return 1;case"center":return .5;case"nearest":return o;default:return 0}}scrollIntoViewIfPossible(e,o){let n=this.findFirstScrollableParent(e);if(e&&this.lock(this,n)){let a=this.getAbsoluteScrollOffset(n,e),i=a-n.clientHeight+e.clientHeight,s=a,l=Ar(0,(s-n.scrollTop)/(s-i),1),d=this.computeTopOffsetRatio(o?.position,l)*(i-s)+s;n.scrollTo({behavior:o?.behavior,top:d})}else console.warn("Could not scroll element into view because the scrollable parent is already locked",e,n);this.release(this,n)}};window.FluidTopicsScrollHelper=(Ga=window.FluidTopicsScrollHelper)!==null&&Ga!==void 0?Ga:new Va;var qp=window.FluidTopicsScrollHelper;var qa={};z(qa,{SearchPlaceConverter:()=>or,SearchPlaceQueryParams:()=>K,isSearchPlaceQueryParams:()=>Dc,serializeRequest:()=>Qp});var Xp=Pl(ic(),1);var sc;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(sc||(sc={}));var cc;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(cc||(cc={}));var lc;(function(t){t.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",t.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",t.PERSONAL_BOOK="PERSONAL_BOOK",t.MAP_ATTACHMENT="MAP_ATTACHMENT",t.RESOURCE="RESOURCE"})(lc||(lc={}));var dc;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(dc||(dc={}));var pc;(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(pc||(pc={}));var uc;(function(t){t.BOOKMARK__CREATE="BOOKMARK__CREATE",t.BOOKMARK__DELETE="BOOKMARK__DELETE",t.CASE_DEFLECTION__START="CASE_DEFLECTION__START",t.CASE_DEFLECTION__OPEN_TICKET="CASE_DEFLECTION__OPEN_TICKET",t.CASE_DEFLECTION__RATE="CASE_DEFLECTION__RATE",t.COLLECTION__CREATE="COLLECTION__CREATE",t.COLLECTION__UPDATE="COLLECTION__UPDATE",t.COLLECTION__DELETE="COLLECTION__DELETE",t.DOCUMENT__DISPLAY="DOCUMENT__DISPLAY",t.DOCUMENT__DOWNLOAD="DOCUMENT__DOWNLOAD",t.DOCUMENT__PRINT="DOCUMENT__PRINT",t.DOCUMENT__PROCESS="DOCUMENT__PROCESS",t.DOCUMENT__RATE="DOCUMENT__RATE",t.DOCUMENT__SEARCH="DOCUMENT__SEARCH",t.DOCUMENT__START_DISPLAY="DOCUMENT__START_DISPLAY",t.DOCUMENT__UNRATE="DOCUMENT__UNRATE",t.FEEDBACK__SEND="FEEDBACK__SEND",t.GEN_AI__COMPLETED_QUERY="GEN_AI__COMPLETED_QUERY",t.GEN_AI__RATE="GEN_AI__RATE",t.GENAI_CASE_DEFLECTION__START="GENAI_CASE_DEFLECTION__START",t.GENAI_CASE_DEFLECTION__OPEN_TICKET="GENAI_CASE_DEFLECTION__OPEN_TICKET",t.KHUB__PROCESS="KHUB__PROCESS",t.KHUB__SEARCH="KHUB__SEARCH",t.LABELS__DOWNLOAD="LABELS__DOWNLOAD",t.LINK__SHARE="LINK__SHARE",t.PAGE__DISPLAY="PAGE__DISPLAY",t.PERSONAL_BOOK__CREATE="PERSONAL_BOOK__CREATE",t.PERSONAL_BOOK__DELETE="PERSONAL_BOOK__DELETE",t.PERSONAL_BOOK__UPDATE="PERSONAL_BOOK__UPDATE",t.PERSONAL_TOPIC__CREATE="PERSONAL_TOPIC__CREATE",t.PERSONAL_TOPIC__UPDATE="PERSONAL_TOPIC__UPDATE",t.PERSONAL_TOPIC__DELETE="PERSONAL_TOPIC__DELETE",t.SAVED_SEARCH__CREATE="SAVED_SEARCH__CREATE",t.SAVED_SEARCH__DELETE="SAVED_SEARCH__DELETE",t.SAVED_SEARCH__UPDATE="SAVED_SEARCH__UPDATE",t.SEARCH_PAGE__SELECT="SEARCH_PAGE__SELECT",t.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU="SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU",t.TOPIC__DISPLAY="TOPIC__DISPLAY",t.TOPIC__RATE="TOPIC__RATE",t.TOPIC__START_DISPLAY="TOPIC__START_DISPLAY",t.TOPIC__UNRATE="TOPIC__UNRATE",t.USER__LOGIN="USER__LOGIN",t.USER__LOGOUT="USER__LOGOUT",t.HEARTBEAT="HEARTBEAT"})(uc||(uc={}));var fc;(function(t){t.THIRD_PARTY="THIRD_PARTY",t.OFF_THE_GRID="OFF_THE_GRID",t.CONTENT_PACKAGER="CONTENT_PACKAGER",t.PAGES="PAGES",t.DESIGNED_READER="DESIGNED_READER"})(fc||(fc={}));var hc;(function(t){t.HOMEPAGE="HOMEPAGE",t.CUSTOM="CUSTOM",t.HEADER="HEADER",t.READER="READER",t.TOPIC_TEMPLATE="TOPIC_TEMPLATE",t.SEARCH="SEARCH",t.SEARCH_RESULT="SEARCH_RESULT"})(hc||(hc={}));var yc;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(yc||(yc={}));var mc;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(mc||(mc={}));var gc;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(gc||(gc={}));var bc;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(bc||(bc={}));var xc;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR",t.CUSTOM="CUSTOM"})(xc||(xc={}));var vc;(function(t){t.ASC="ASC",t.DESC="DESC"})(vc||(vc={}));var Sc;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(Sc||(Sc={}));var Za;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(Za||(Za={}));var Rc=t=>Object.keys(Za).includes(t);var Oc;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK"})(Oc||(Oc={}));var Cc;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(Cc||(Cc={}));var Ec;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK"})(Ec||(Ec={}));var rr;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(rr||(rr={}));var Nc=t=>Object.keys(rr).includes(t);var wc;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC"})(wc||(wc={}));var Ac;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(Ac||(Ac={}));var ne;(function(t){t.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",t.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",t.HTML_EXPORT_USER="HTML_EXPORT_USER",t.PDF_EXPORT_USER="PDF_EXPORT_USER",t.SAVED_SEARCH_USER="SAVED_SEARCH_USER",t.COLLECTION_USER="COLLECTION_USER",t.OFFLINE_USER="OFFLINE_USER",t.BEHAVIOR_DATA_USER="BEHAVIOR_DATA_USER",t.ANALYTICS_USER="ANALYTICS_USER",t.BETA_USER="BETA_USER",t.DEBUG_USER="DEBUG_USER",t.PRINT_USER="PRINT_USER",t.RATING_USER="RATING_USER",t.FEEDBACK_USER="FEEDBACK_USER",t.GENERATIVE_AI_USER="GENERATIVE_AI_USER",t.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_USER",t.CONTENT_PUBLISHER="CONTENT_PUBLISHER",t.KHUB_ADMIN="KHUB_ADMIN",t.USERS_ADMIN="USERS_ADMIN",t.PORTAL_ADMIN="PORTAL_ADMIN",t.ADMIN="ADMIN"})(ne||(ne={}));var Tc;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(Tc||(Tc={}));var _c;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(_c||(_c={}));var Lc;(function(t){t.TEXT="TEXT",t.HTML="HTML"})(Lc||(Lc={}));var Yp={[ne.PERSONAL_BOOK_SHARE_USER]:[ne.PERSONAL_BOOK_USER],[ne.HTML_EXPORT_USER]:[ne.PERSONAL_BOOK_USER],[ne.PDF_EXPORT_USER]:[ne.PERSONAL_BOOK_USER],[ne.KHUB_ADMIN]:[ne.CONTENT_PUBLISHER],[ne.ADMIN]:[ne.KHUB_ADMIN,ne.USERS_ADMIN,ne.PORTAL_ADMIN],[ne.GENERATIVE_AI_EXPORT_USER]:[ne.GENERATIVE_AI_USER]};function Pc(t,e){return t===e||(Yp[t]??[]).some(o=>Pc(o,e))}function Ic(t,e){return t==null?!1:(Array.isArray(t)?t:Array.isArray(t.roles)?t.roles:Array.isArray(t.profile?.roles)?t.profile.roles:[]).some(n=>Pc(n,e))}function Jp(t){return`"${t}"`}function kc(t){return t.startsWith('"')&&t.endsWith('"')?t.replace(/(^"+)|("+$)/g,""):t}function Qp(t,e){return new or(t).serialize(e)}var K;(function(t){t.LOCALE="content-lang",t.QUERY="query",t.SCOPE="scope",t.FILTERS="filters",t.VIRTUAL_FIELD="virtual-field",t.PERIOD="period",t.VALUE_FILTERS="value-filters",t.DATE_FILTERS="date-filters",t.RANGE_FILTERS="range-filters",t.SORT="sort",t.PER_PAGE="per-page"})(K||(K={}));var eu=new Set(Object.values(K));function Dc(t){return eu.has(t)}var or=class{constructor(e,o={},n=20,a=!1,i="en-US"){this.baseUrl=e,this.predefinedSorts=o,this.defaultPerPage=n,this.allLanguagesAllowed=a,this.defaultContentLocale=i,this.scopeMapping={documents:"DOCUMENTS",topics:"ALL_TOPICS"},this.filtersEscapeMapping=[["*","\\*","[ft-escaped-star-character]"],["~","\\\\~","[ft-escaped-tilde-character]"],["_","\\\\\\\\_","[ft-escaped-underscore-character]"]]}serialize(e,o){return this.serializeToCurrentPageIfPossible(e,o??"/search")}serializeToCurrentPageIfPossible(e,o){let n=o==null||o.trim().length===0,a=new URL(n?window.location.href:`${this.baseUrl.replace(/\/+$/,"")}${o}`);return a.search=this.toURLSearchParams(e),a.toString()}toURLSearchParams(e,o=!1){var n,a,i,s,l,d,u,h,f,m,b,x;let O=new URLSearchParams;e.contentLocale?(!o||e.contentLocale!==this.defaultContentLocale)&&O.append(K.LOCALE,e.contentLocale):O.append(K.LOCALE,this.allLanguagesAllowed?"all":this.defaultContentLocale),((n=e.query)===null||n===void 0?void 0:n.length)>0&&O.append(K.QUERY,e.query);let T=(i=(a=e.metadataFilters)===null||a===void 0?void 0:a.filter(v=>v.valueFilter))!==null&&i!==void 0?i:[];if(T.length>0){let v=T.map(E=>{var I,B;let W=((B=(I=E.valueFilter)===null||I===void 0?void 0:I.values)!==null&&B!==void 0?B:[]).map(U=>this.escapeFilters(U)).map(U=>Jp(kc(U))).join("_");return`${E.key}~${W}`}).join("*");O.append(K.VALUE_FILTERS,v)}let R=(l=(s=e.metadataFilters)===null||s===void 0?void 0:s.filter(v=>v.dateFilter))!==null&&l!==void 0?l:[];if(R.length>0){let v=R.map(E=>{var I;return`${E.key}~${(I=E.dateFilter)===null||I===void 0?void 0:I.type.toLowerCase()}`}).join("*");O.append(K.DATE_FILTERS,v)}let L=(u=(d=e.metadataFilters)===null||d===void 0?void 0:d.filter(v=>v.rangeFilter))!==null&&u!==void 0?u:[];if(L.length>0){let v=L.map(E=>{var I,B;return`${E.key}~${(I=E.rangeFilter)===null||I===void 0?void 0:I.from}_${(B=E.rangeFilter)===null||B===void 0?void 0:B.to}`}).join("*");O.append(K.RANGE_FILTERS,v)}e.virtualField&&e.virtualField!=="EVERYWHERE"&&O.append(K.VIRTUAL_FIELD,e.virtualField.toLowerCase()),e.scope&&e.scope!=="DEFAULT"&&O.append(K.SCOPE,e.scope.toLowerCase()),((h=e.sort)===null||h===void 0?void 0:h.length)>0&&e.sort[0].key==="ft:lastEdition"&&O.append(K.SORT,"last_update"),!((f=e.paging)===null||f===void 0)&&f.perPage&&((b=(m=e.paging)===null||m===void 0?void 0:m.perPage)!==null&&b!==void 0?b:this.defaultPerPage)!=this.defaultPerPage&&O.append(K.PER_PAGE,String(e.paging.perPage));let C=(x=e.otherQueryParams)!==null&&x!==void 0?x:{};for(let v in C)O.append(v,C[v]);return encodeURI(O.toString()).replace(/#/g,"%23")}parse(e){var o;let n=e.split("?"),a=this.fromURLSearchParams(n.slice(1).join("?")),i=n[0].split("/search/")[1];return i==null?a:{...a,scope:(o=this.scopeMapping[i])!==null&&o!==void 0?o:a.scope}}fromURLSearchParams(e){var o,n,a,i,s,l,d,u;try{e=decodeURI(e).replace(/%23/g,"#")}catch(R){console.warn("Could not decode search request query params, fallback on raw value",R)}let h=new URLSearchParams(e),f=h.get(K.LOCALE)==="all"?void 0:h.get(K.LOCALE),m=((o=h.get(K.VIRTUAL_FIELD))!==null&&o!==void 0?o:"EVERYWHERE").toUpperCase(),b=((n=h.get(K.SORT))!==null&&n!==void 0?n:"DEFAULT").toUpperCase(),x=(a=h.get(K.SCOPE))!==null&&a!==void 0?a:"default",O=+((i=h.get(K.PER_PAGE))!==null&&i!==void 0?i:this.defaultPerPage),T={};for(let R of h.keys())Dc(R)||(T[R]=h.get(R));return{contentLocale:f??(this.allLanguagesAllowed?void 0:this.defaultContentLocale),query:(s=h.get(K.QUERY))!==null&&s!==void 0?s:"",scope:(l=this.scopeMapping[x])!==null&&l!==void 0?l:"DEFAULT",virtualField:Rc(m)?m:"EVERYWHERE",sort:(u=(d=this.predefinedSorts[b])!==null&&d!==void 0?d:this.predefinedSorts.DEFAULT)!==null&&u!==void 0?u:[],metadataFilters:this.parseCompatFilters(h),facets:[],paging:{page:1,perPage:Ar(1,isNaN(O)?this.defaultPerPage:O,1e3)},otherQueryParams:T}}parseCompatFilters(e){var o,n,a,i,s,l;let d=[];return e.has(K.FILTERS)&&(d=this.parseValueFilters((o=e.get(K.FILTERS))!==null&&o!==void 0?o:"")),(n=e.has(K.PERIOD))!==null&&n!==void 0&&n&&(d=[...d,...this.parseLegacyPeriodFilter(((a=e.get(K.PERIOD))!==null&&a!==void 0?a:"").toUpperCase())]),[...d,...this.parseValueFilters((i=e.get(K.VALUE_FILTERS))!==null&&i!==void 0?i:""),...this.parseDateFilters((s=e.get(K.DATE_FILTERS))!==null&&s!==void 0?s:""),...this.parseRangeFilters((l=e.get(K.RANGE_FILTERS))!==null&&l!==void 0?l:"")]}splitUnknownFilter(e){return this.superEscapeFilters(e).split("*").map(o=>o.split("~"))}parseValueFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(o=>({key:o[0],valueFilter:{values:o[1].split("_").map(kc).map(n=>this.unescapeFilterValue(n)),negative:!1}}))}parseDateFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(o=>({key:o[0],dateFilter:{type:rr[o[1].toUpperCase()]}}))}parseRangeFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(o=>({key:o[0],rangeFilter:{from:o[1].split("_")[0],to:o[1].split("_")[1]}}))}escapeFilters(e){for(let[o,n,a]of this.filtersEscapeMapping)e=e.replaceAll(o,n);return e}superEscapeFilters(e){for(let[o,n,a]of this.filtersEscapeMapping)e=e.replaceAll(n,a);return e}unescapeFilterValue(e){for(let[o,n,a]of this.filtersEscapeMapping)e=e.replace(a,o);return e}parseLegacyPeriodFilter(e){if(Nc(e))return[{key:"ft:lastEdition",dateFilter:{type:rr[e]}}];if(e.startsWith("CUSTOM_")){let[o,n,a]=e.split("_");return[{key:"ft:lastEdition",rangeFilter:{from:n,to:a}}]}return[]}};var Ja={};z(Ja,{toFtFormComponent:()=>Xa});var Ya=Symbol("elementInternals");function Xa(t){class e extends t{static get formAssociated(){return!0}get form(){return this[Ya].form}constructor(...n){super(n),this[Ya]=this.attachInternals()}setFormValue(n){this[Ya].setFormValue(n)}}return e}var Qa={};z(Qa,{DateFormatter:()=>nr});var nr=class{static format(e,o,n,a){return window.moment?window.moment(e).locale(o).format(this.getDateFormat(n,a)):e}static getDateFormat(e,o){return e?o?"lll":"ll":o?"L LT":"L"}};var ti={};z(ti,{ALL_KEYS_VALUE:()=>ei,SameWindowStorageEvent:()=>ar});var ei="__all__",ar=class extends CustomEvent{constructor(e,o,n){super("same-window-storage",{detail:{key:e,oldValue:o,newValue:n}})}keyMatch(e){return this.detail.key.includes(e)||this.detail.key==ei}};Storage.prototype.setItem=new Proxy(Storage.prototype.setItem,{apply(t,e,o){let n=e.getItem(o[0]);Reflect.apply(t,e,o),window.dispatchEvent(new ar(o[0],n,o[1]))}});Storage.prototype.removeItem=new Proxy(Storage.prototype.removeItem,{apply(t,e,o){let n=e.getItem(o[0]);Reflect.apply(t,e,o),window.dispatchEvent(new ar(o[0],n))}});Storage.prototype.clear=new Proxy(Storage.prototype.clear,{apply(t,e,o){Reflect.apply(t,e,o),window.dispatchEvent(new ar(ei))}});var oi={};z(oi,{FocusMainContentEvent:()=>ri});var ri=class extends Event{constructor(){super("ft-focus-main-content",{composed:!0,bubbles:!0})}};var $c={};window.FluidTopicsA11yHints={isKeyboardNavigation:!1};function tu(t){(t.key==="Enter"||t.key===" "||t.key==="Tab")&&(window.FluidTopicsA11yHints.isKeyboardNavigation=!0)}function ru(t){window.FluidTopicsA11yHints.isKeyboardNavigation=t.detail==0}document.addEventListener("keydown",tu);document.addEventListener("click",ru);var ni,ai,ii,si,ci=navigator.vendor&&!!navigator.vendor.match(/apple/i)||((ii=(ai=(ni=window.safari)===null||ni===void 0?void 0:ni.pushNotification)===null||ai===void 0?void 0:ai.toString())!==null&&ii!==void 0?ii:"")==="[object SafariRemoteNotification]",ou="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;window.ftGlobals=(si=window.ftGlobals)!==null&&si!==void 0?si:{lit:Jo,litDecorators:en,litRepeat:tn,litClassMap:rn,litStyleMap:on,litUnsafeHTML:an,wcUtils:{...fn,...cn,...mn,...Qa,...gn,...vn,...qn,...un,...da,...oi,...$c,...Ka,...Zn,...ya,...Ja,...ha,...Ss,...xn,...ba,...xa,...Cs,...va,...ja,...ti,...pa,...fa,...qa,isSafari:ci,isTouchScreen:ou,setVariable:w}};var Mc=[$`
49
49
  .ftds--size-small [part=dialog] {
50
50
  --ftds-modal--target-width: ${q.smallContainerTargetWidth};
51
51
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluid-topics/ft-modal",
3
- "version": "1.2.60",
3
+ "version": "1.2.61",
4
4
  "description": "Modal for Design System V2",
5
5
  "keywords": [
6
6
  "Lit"
@@ -19,11 +19,11 @@
19
19
  "url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
20
20
  },
21
21
  "dependencies": {
22
- "@fluid-topics/ft-wc-utils": "1.2.60",
22
+ "@fluid-topics/ft-wc-utils": "1.2.61",
23
23
  "lit": "3.1.0"
24
24
  },
25
25
  "devDependencies": {
26
- "@fluid-topics/ft-wc-test-utils": "1.2.60"
26
+ "@fluid-topics/ft-wc-test-utils": "1.2.61"
27
27
  },
28
- "gitHead": "5acbf0235057ab34c306052ddba1e8f500f710bc"
28
+ "gitHead": "924cb24583d473e221182ffe54f8c500643227c1"
29
29
  }