@fluid-topics/ft-reader-search-in-document 1.2.59 → 1.2.60

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.
@@ -549,7 +549,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
549
549
  <div></div>
550
550
  <div></div>
551
551
  </div>
552
- `}};rr.styles=hl});var kd=f(()=>{"use strict"});var Dd,Bd=f(()=>{"use strict";Dd=b(N());qa();Xr();kd();qa();(0,Dd.customElement)("ft-loader")(rr)});var Lt,Pt,Ya,ue,me,ee,Qa=f(()=>{"use strict";Lt=b(N());Ho();ja();pt();en();Bd();Pt=b(B()),Ya=b(eo()),ue=b(Q()),me=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,o,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(i=(a<3?s(i):a>3?s(e,o,i):s(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},ee=class extends(0,Lt.toFtFormComponent)(Lt.FtLitElement,"button"){get buttonClasses(){return{}}get typographyVariant(){return""}constructor(){super(),this.href=void 0,this.target=void 0,this.role="button",this.type="button",this.disabled=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.loading=!1,this.ariaLabel=null,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.addEventListener("click",e=>{var o;this.isDisabled()?(e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation()):this.type=="submit"&&((o=this.form)===null||o===void 0||o.requestSubmit())})}render(){var e,o,n;let a=Pt.html`
552
+ `}};rr.styles=hl});var kd=f(()=>{"use strict"});var Dd,Bd=f(()=>{"use strict";Dd=b(N());qa();Xr();kd();qa();(0,Dd.customElement)("ft-loader")(rr)});var Lt,Pt,Ya,pe,ge,re,Qa=f(()=>{"use strict";Lt=b(N());Ho();ja();pt();en();Bd();Pt=b(B()),Ya=b(eo()),pe=b(Q()),ge=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,o,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(i=(a<3?s(i):a>3?s(e,o,i):s(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},re=class extends(0,Lt.toFtFormComponent)(Lt.FtLitElement){get buttonClasses(){return{}}get typographyVariant(){return""}constructor(){super(),this.href=void 0,this.target=void 0,this.type="button",this.disabled=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.loading=!1,this.ariaLabel=null,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.addEventListener("click",e=>{var o;this.isDisabled()?(e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation()):this.type=="submit"&&((o=this.form)===null||o===void 0||o.requestSubmit())})}render(){var e,o,n;let a=Pt.html`
553
553
  <ft-ripple part="ripple" ?disabled=${this.isDisabled()}></ft-ripple>
554
554
  <ft-typography part="label"
555
555
  variant=${this.typographyVariant}
@@ -586,7 +586,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
586
586
  <ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon>
587
587
  `:Pt.html`
588
588
  <slot part="icon" name="icon"></slot>
589
- `}focus(){var e;(e=this.button)===null||e===void 0||e.focus()}focusWithoutTooltip(){var e;this.setTooltipManual(!0),(e=this.button)===null||e===void 0||e.focus(),this.setTooltipManual(!1)}showTemporaryTooltip(e,o){var n;return(n=this.tooltip)===null||n===void 0?void 0:n.showTemporaryText(e,o)}setTooltipManual(e){this.tooltip&&(this.tooltip.manual=e)}click(){var e;(e=this.button)===null||e===void 0||e.click()}getLabel(){return this.label||this.textContent}get textContent(){return(0,Lt.unslotText)(this.slottedContent).trim()}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}};ee.elementDefinitions={"ft-ripple":X,"ft-tooltip":ae,"ft-typography":se,"ft-icon":Ee,"ft-loader":rr};me([(0,ue.property)()],ee.prototype,"href",void 0);me([(0,ue.property)()],ee.prototype,"target",void 0);me([(0,ue.property)({type:String,reflect:!0})],ee.prototype,"role",void 0);me([(0,ue.property)()],ee.prototype,"type",void 0);me([(0,ue.property)({type:Boolean})],ee.prototype,"disabled",void 0);me([(0,ue.property)()],ee.prototype,"label",void 0);me([(0,ue.property)()],ee.prototype,"icon",void 0);me([(0,ue.property)()],ee.prototype,"iconVariant",void 0);me([(0,ue.property)({type:Boolean})],ee.prototype,"trailingIcon",void 0);me([(0,ue.property)({type:Boolean})],ee.prototype,"loading",void 0);me([(0,ue.property)({attribute:"aria-label"})],ee.prototype,"ariaLabel",void 0);me([(0,ue.property)()],ee.prototype,"tooltipPosition",void 0);me([(0,ue.property)({type:Boolean})],ee.prototype,"hideTooltip",void 0);me([(0,ue.property)({type:Boolean})],ee.prototype,"forceTooltip",void 0);me([(0,ue.query)(".ft-button")],ee.prototype,"button",void 0);me([(0,ue.query)(".ft-button--label slot")],ee.prototype,"slottedContent",void 0);me([(0,ue.query)("[part=tooltip]")],ee.prototype,"tooltip",void 0)});var ho,Md,tn,De,Xa=f(()=>{"use strict";ho=b(Q()),Md=b(N());pa();Qa();tn=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,o,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(i=(a<3?s(i):a>3?s(e,o,i):s(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},De=class extends ee{constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.dense=!1,this.round=!1}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0}}get typographyVariant(){return"button"}};De.styles=[Md.safariEllipsisFix,vl];tn([(0,ho.property)({type:Boolean})],De.prototype,"primary",void 0);tn([(0,ho.property)({type:Boolean})],De.prototype,"outlined",void 0);tn([(0,ho.property)({type:Boolean})],De.prototype,"dense",void 0);tn([(0,ho.property)({type:Boolean})],De.prototype,"round",void 0)});var $d,E,Ud,Ja=f(()=>{"use strict";$d=b(B()),E=b(N());Yt();Xr();Jr();G();G();Ud=[$d.css`
589
+ `}focus(){var e;(e=this.button)===null||e===void 0||e.focus()}focusWithoutTooltip(){var e;this.setTooltipManual(!0),(e=this.button)===null||e===void 0||e.focus(),this.setTooltipManual(!1)}showTemporaryTooltip(e,o){var n;return(n=this.tooltip)===null||n===void 0?void 0:n.showTemporaryText(e,o)}setTooltipManual(e){this.tooltip&&(this.tooltip.manual=e)}click(){var e;(e=this.button)===null||e===void 0||e.click()}getLabel(){return this.label||this.textContent}get textContent(){return(0,Lt.unslotText)(this.slottedContent).trim()}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}};re.elementDefinitions={"ft-ripple":X,"ft-tooltip":ae,"ft-typography":se,"ft-icon":Ee,"ft-loader":rr};ge([(0,pe.property)()],re.prototype,"href",void 0);ge([(0,pe.property)()],re.prototype,"target",void 0);ge([(0,pe.property)()],re.prototype,"type",void 0);ge([(0,pe.property)({type:Boolean})],re.prototype,"disabled",void 0);ge([(0,pe.property)()],re.prototype,"label",void 0);ge([(0,pe.property)()],re.prototype,"icon",void 0);ge([(0,pe.property)()],re.prototype,"iconVariant",void 0);ge([(0,pe.property)({type:Boolean})],re.prototype,"trailingIcon",void 0);ge([(0,pe.property)({type:Boolean})],re.prototype,"loading",void 0);ge([(0,pe.property)({attribute:"aria-label"})],re.prototype,"ariaLabel",void 0);ge([(0,pe.property)()],re.prototype,"tooltipPosition",void 0);ge([(0,pe.property)({type:Boolean})],re.prototype,"hideTooltip",void 0);ge([(0,pe.property)({type:Boolean})],re.prototype,"forceTooltip",void 0);ge([(0,pe.query)(".ft-button")],re.prototype,"button",void 0);ge([(0,pe.query)(".ft-button--label slot")],re.prototype,"slottedContent",void 0);ge([(0,pe.query)("[part=tooltip]")],re.prototype,"tooltip",void 0)});var ho,Md,tn,De,Xa=f(()=>{"use strict";ho=b(Q()),Md=b(N());pa();Qa();tn=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,o,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(i=(a<3?s(i):a>3?s(e,o,i):s(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},De=class extends re{constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.dense=!1,this.round=!1}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0}}get typographyVariant(){return"button"}};De.styles=[Md.safariEllipsisFix,vl];tn([(0,ho.property)({type:Boolean})],De.prototype,"primary",void 0);tn([(0,ho.property)({type:Boolean})],De.prototype,"outlined",void 0);tn([(0,ho.property)({type:Boolean})],De.prototype,"dense",void 0);tn([(0,ho.property)({type:Boolean})],De.prototype,"round",void 0)});var $d,E,Ud,Ja=f(()=>{"use strict";$d=b(B()),E=b(N());Yt();Xr();Jr();G();G();Ud=[$d.css`
590
590
  :host {
591
591
  display: inline-block;
592
592
  max-width: 100%;
@@ -1052,7 +1052,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
1052
1052
  .ftds--size-small.ft-button--icon-only {
1053
1053
  width: ${h.smallIconOnlyWidth};
1054
1054
  }
1055
- `,E.noTextSelect]});var yo,on,rn,gt,ei=f(()=>{"use strict";Qa();yo=b(Q());Vo();on=b(N());Ja();G();en();rn=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,o,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(i=(a<3?s(i):a>3?s(e,o,i):s(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},gt=class extends(0,on.toFtdsBase)(ee){constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.tertiary=!1,this.round=!1,this.family=$o.brand,this.iconVariant=ke.fluid_topics}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--secondary":this.secondary,"ft-button--tertiary":this.tertiary||!this.primary&&!this.secondary,"ft-button--icon-only":!this.hasTextContent(),"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0,"ft-button--no-icon":!this.icon,"ft-button--round":this.round,...this.getDesignSystemBaseClasses()}}get typographyVariant(){switch(this.size){case pr.large:return Rt.body2medium;case pr.medium:return Rt.caption1medium;case pr.small:return Rt.caption2medium}}};gt.styles=[on.safariEllipsisFix,Ud];rn([(0,yo.property)({type:Boolean})],gt.prototype,"primary",void 0);rn([(0,yo.property)({type:Boolean})],gt.prototype,"secondary",void 0);rn([(0,yo.property)({type:Boolean})],gt.prototype,"tertiary",void 0);rn([(0,yo.property)({type:Boolean})],gt.prototype,"round",void 0)});var Fd=f(()=>{"use strict"});var Wd=f(()=>{"use strict"});var ti,nn=f(()=>{"use strict";ti=b(N());Xa();ei();Xa();pa();Fd();ei();Ja();Wd();(0,ti.customElement)("ft-button")(De);(0,ti.customElement)("ftds-button")(gt)});var Hd,Z,Y,ri,mo=f(()=>{"use strict";Hd=b(B()),Z=b(N());nn();ja();Y={height:Z.FtCssVariableFactory.create("--ft-search-input-height","","SIZE","38px"),borderRadius:Z.FtCssVariableFactory.extend("--ft-search-input-border-radius","",Z.designSystemVariables.borderRadiusS),desktopFiltersHeight:Z.FtCssVariableFactory.create("--ft-search-input-desktop-filters-height","","SIZE","350px"),floatingZIndex:Z.FtCssVariableFactory.create("--ft-search-input-floating-components-z-index","","NUMBER","3"),colorSurface:Z.FtCssVariableFactory.extend("--ft-search-input-background-color","",Z.designSystemVariables.colorSurface),colorOnSurface:Z.FtCssVariableFactory.extend("--ft-search-input-color","",Z.designSystemVariables.colorOnSurface),colorOnSurfaceMedium:Z.FtCssVariableFactory.extend("--ft-search-input-placeholder-color","",Z.designSystemVariables.colorOnSurfaceMedium),colorOutline:Z.FtCssVariableFactory.extend("--ft-search-input-outline-color","",Z.designSystemVariables.colorOutline),elevation02:Z.FtCssVariableFactory.extend("--ft-search-input-elevation","",Z.designSystemVariables.elevation02),focusOutlineColor:Z.FtCssVariableFactory.extend("--ft-search-input-focused-outline-color","",Z.designSystemVariables.colorPrimary),buttonColor:Z.FtCssVariableFactory.extend("--ft-search-input-button-color","",Z.designSystemVariables.colorPrimary),buttonRippleColor:Z.FtCssVariableFactory.extend("--ft-search-input-button-ripple-color","",Z.designSystemVariables.colorPrimary)},ri=Hd.css`
1055
+ `,E.noTextSelect]});var yo,on,rn,gt,ei=f(()=>{"use strict";Qa();yo=b(Q());Vo();on=b(N());Ja();G();en();rn=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,o,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(i=(a<3?s(i):a>3?s(e,o,i):s(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},gt=class extends(0,on.toFtdsBase)(re){constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.tertiary=!1,this.round=!1,this.family=$o.brand,this.iconVariant=ke.fluid_topics}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--secondary":this.secondary,"ft-button--tertiary":this.tertiary||!this.primary&&!this.secondary,"ft-button--icon-only":!this.hasTextContent(),"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0,"ft-button--no-icon":!this.icon,"ft-button--round":this.round,...this.getDesignSystemBaseClasses()}}get typographyVariant(){switch(this.size){case pr.large:return Rt.body2medium;case pr.medium:return Rt.caption1medium;case pr.small:return Rt.caption2medium}}};gt.styles=[on.safariEllipsisFix,Ud];rn([(0,yo.property)({type:Boolean})],gt.prototype,"primary",void 0);rn([(0,yo.property)({type:Boolean})],gt.prototype,"secondary",void 0);rn([(0,yo.property)({type:Boolean})],gt.prototype,"tertiary",void 0);rn([(0,yo.property)({type:Boolean})],gt.prototype,"round",void 0)});var Fd=f(()=>{"use strict"});var Wd=f(()=>{"use strict"});var ti,nn=f(()=>{"use strict";ti=b(N());Xa();ei();Xa();pa();Fd();ei();Ja();Wd();(0,ti.customElement)("ft-button")(De);(0,ti.customElement)("ftds-button")(gt)});var Hd,Z,Y,ri,mo=f(()=>{"use strict";Hd=b(B()),Z=b(N());nn();ja();Y={height:Z.FtCssVariableFactory.create("--ft-search-input-height","","SIZE","38px"),borderRadius:Z.FtCssVariableFactory.extend("--ft-search-input-border-radius","",Z.designSystemVariables.borderRadiusS),desktopFiltersHeight:Z.FtCssVariableFactory.create("--ft-search-input-desktop-filters-height","","SIZE","350px"),floatingZIndex:Z.FtCssVariableFactory.create("--ft-search-input-floating-components-z-index","","NUMBER","3"),colorSurface:Z.FtCssVariableFactory.extend("--ft-search-input-background-color","",Z.designSystemVariables.colorSurface),colorOnSurface:Z.FtCssVariableFactory.extend("--ft-search-input-color","",Z.designSystemVariables.colorOnSurface),colorOnSurfaceMedium:Z.FtCssVariableFactory.extend("--ft-search-input-placeholder-color","",Z.designSystemVariables.colorOnSurfaceMedium),colorOutline:Z.FtCssVariableFactory.extend("--ft-search-input-outline-color","",Z.designSystemVariables.colorOutline),elevation02:Z.FtCssVariableFactory.extend("--ft-search-input-elevation","",Z.designSystemVariables.elevation02),focusOutlineColor:Z.FtCssVariableFactory.extend("--ft-search-input-focused-outline-color","",Z.designSystemVariables.colorPrimary),buttonColor:Z.FtCssVariableFactory.extend("--ft-search-input-button-color","",Z.designSystemVariables.colorPrimary),buttonRippleColor:Z.FtCssVariableFactory.extend("--ft-search-input-button-ripple-color","",Z.designSystemVariables.colorPrimary)},ri=Hd.css`
1056
1056
  * {
1057
1057
  box-sizing: border-box;
1058
1058
  ${(0,Z.setVariable)(ne.color,Y.buttonColor)};
@@ -1159,8 +1159,8 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
1159
1159
  `});var Qd,Xd,si=f(()=>{"use strict";Qd=b(B()),Xd=Qd.css`
1160
1160
  `});var dn,gy,ci,by,k,We=f(()=>{"use strict";dn=b(N()),gy="ft-app-info",ci=class extends CustomEvent{constructor(e){super("authentication-change",{detail:e})}},by={session:(t,e)=>{(0,dn.deepEqual)(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>k.dispatchEvent(new ci(e.payload)),0))}},k=dn.FtReduxStore.get({name:gy,reducers:by,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 or,un=f(()=>{"use strict";We();or=class t{static get(e){let{baseUrl:o,apiIntegrationIdentifier:n}=k.getState(),a=e??n;if(o&&a&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(o,a,!0)}static await(e){return new Promise(o=>{let n=t.get(e);if(n)o(n);else{let a=k.subscribe(()=>{n=t.get(e),n&&(a(),o(n))})}})}}});var Nr,li=f(()=>{"use strict";un();Nr=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:or.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):or.await()}}});var di,rt,go=f(()=>{"use strict";di=b(N());li();rt=class extends Nr{constructor(e=!0,o){var n;super(o);let a=this.constructor;a.commonCache=(n=a.commonCache)!==null&&n!==void 0?n:new di.CacheRegistry,this.cache=e?a.commonCache:new di.CacheRegistry}clearCache(){this.cache.clearAll()}}});var ot,Jd,xy,pn,Tr,fn,ui=f(()=>{"use strict";We();ot=b(N());go();xy=Symbol("clearAfterUnitTest"),pn=class extends rt{constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[Jd]=()=>{this.defaultMessages={},this.cache=new ot.CacheRegistry,this.listeners={}},this.currentUiLocale=k.getState().uiLocale,k.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=k.getState();this.currentUiLocale!==e&&(this.currentUiLocale=e,this.cache.clearAll(),this.notifyAll())}addContext(e){let o=e.name.toLowerCase();this.cache.setFinal(o,e),this.notify(o)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(e,o){var n;if(e=e.toLowerCase(),o&&Object.keys(o).length>0){let a={...(n=this.defaultMessages[e])!==null&&n!==void 0?n:{},...o};(0,ot.deepEqual)(this.defaultMessages[e],a)||(this.defaultMessages[e]=a,await this.notify(e))}return this.fetchContext(e)}resolveContext(e){var o,n;return this.fetchContext(e),(n=(o=this.cache.getNow(e))===null||o===void 0?void 0:o.messages)!==null&&n!==void 0?n:{}}resolveRawMessage(e,o){let n=e.toLowerCase();return this.resolveContext(n)[o]}resolveMessage(e,o,...n){var a;let i=e.toLowerCase(),s=this.resolveContext(i);return new ot.ParametrizedLabelResolver((a=this.defaultMessages[i])!==null&&a!==void 0?a:{},s).resolve(o,...n)}async fetchContext(e){let o=!this.cache.has(e),n;try{n=await this.cache.get(e,()=>this.messageContextProvider(this.currentUiLocale,e))}catch(a){!(a instanceof ot.CanceledPromiseError)&&o&&console.error(a)}return o&&await this.notify(e),n}subscribe(e,o){var n;return e=e.toLowerCase(),this.listeners[e]=(n=this.listeners[e])!==null&&n!==void 0?n:new Set,this.listeners[e].add(o),()=>{var a;return(a=this.listeners[e])===null||a===void 0?void 0:a.delete(o)}}async notifyAll(){await Promise.all(Object.keys(this.listeners).map(e=>this.notify(e)))}async notify(e){this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(o=>(0,ot.delay)(0).then(()=>o()).catch(()=>null)))}};Jd=xy;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends pn{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends pn{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});Tr=window.FluidTopicsI18nService,fn=window.FluidTopicsCustomI18nService});var eu,Te,Ze,xe,ie,pi=f(()=>{"use strict";eu=b(B()),Te=b(Q()),Ze=b(N());si();We();ui();un();xe=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,o,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(i=(a<3?s(i):a>3?s(e,o,i):s(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},ie=class extends Ze.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=()=>or.get(),this.messageContexts=[],this.cache=new Ze.CacheRegistry,this.cleanSessionDebouncer=new Ze.Debouncer}render(){return eu.html`
1161
1161
  <slot></slot>
1162
- `}update(e){var o,n,a,i,s;super.update(e),e.has("baseUrl")&&(k.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),e.has("apiIntegrationIdentifier")&&k.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("uiLocale")&&k.actions.uiLocale(this.uiLocale),e.has("metadataConfiguration")&&k.actions.metadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&k.actions.noCustom(this.noCustom),e.has("editorMode")&&k.actions.editorMode(this.editorMode),e.has("noCustomComponent")&&k.actions.noCustomComponent(this.noCustomComponent),e.has("session")&&k.actions.session(this.session),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(l=>Tr.addContext(l)),e.has("openExternalDocumentInNewTab")&&k.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("navigatorOnline")&&k.actions.navigatorOnline(this.navigatorOnline),e.has("forcedOffline")&&k.actions.forcedOffline(this.forcedOffline),e.has("localesConfiguration")&&(k.actions.defaultLocales((o=this.localesConfiguration)===null||o===void 0?void 0:o.defaultLocales),k.actions.availableUiLocales((a=(n=this.localesConfiguration)===null||n===void 0?void 0:n.availableUiLocales)!==null&&a!==void 0?a:[]),k.actions.searchInAllLanguagesAllowed((s=(i=this.localesConfiguration)===null||i===void 0?void 0:i.allLanguagesAllowed)!==null&&s!==void 0?s:!1)),setTimeout(()=>this.updateIfNeeded())}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.session==null&&this.updateSession(),this.metadataConfiguration==null&&this.updateMetadataConfiguration()),this.localesConfiguration==null&&this.updateLocalesConfiguration())}async updateSession(){this.session=await this.cache.get("session",async()=>{let e=await this.apiProvider().getCurrentSession();return e.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.session=void 0},e.idleTimeoutInMillis),e})}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration())}async updateLocalesConfiguration(){this.localesConfiguration=await this.cache.get("localesConfiguration",()=>this.apiProvider().getLocalesConfiguration())}};ie.elementDefinitions={};ie.styles=Xd;xe([(0,Te.property)()],ie.prototype,"baseUrl",void 0);xe([(0,Te.property)()],ie.prototype,"apiIntegrationIdentifier",void 0);xe([(0,Te.property)()],ie.prototype,"uiLocale",void 0);xe([(0,Ze.jsonProperty)(null)],ie.prototype,"availableUiLocales",void 0);xe([(0,Ze.jsonProperty)(null)],ie.prototype,"metadataConfiguration",void 0);xe([(0,Te.property)({type:Boolean})],ie.prototype,"editorMode",void 0);xe([(0,Te.property)({type:Boolean})],ie.prototype,"noCustom",void 0);xe([(0,Te.property)({type:Boolean})],ie.prototype,"openExternalDocumentInNewTab",void 0);xe([(0,Te.property)({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],ie.prototype,"noCustomComponent",void 0);xe([(0,Te.property)({type:Boolean})],ie.prototype,"withManualResources",void 0);xe([(0,Te.property)({type:Boolean})],ie.prototype,"navigatorOnline",void 0);xe([(0,Te.property)({type:Boolean})],ie.prototype,"forcedOffline",void 0);xe([(0,Te.property)({type:Object})],ie.prototype,"apiProvider",void 0);xe([(0,Ze.jsonProperty)([])],ie.prototype,"messageContexts",void 0);xe([(0,Ze.jsonProperty)(void 0)],ie.prototype,"session",void 0);xe([(0,Te.state)()],ie.prototype,"localesConfiguration",void 0)});function vy(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(t.constructor!==e.constructor)return!1;var o,n,a;if(Array.isArray(t)){if(o=t.length,o!=e.length)return!1;for(n=o;n--!==0;)if(!hn(t[n],e[n]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(n of t.entries())if(!e.has(n[0]))return!1;for(n of t.entries())if(!hn(n[1],e.get(n[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(n of t.entries())if(!e.has(n[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();let i=s=>Object.keys(s).filter(l=>s[l]!=null);if(a=i(t),o=a.length,o!==i(e).length)return!1;for(n=o;n--!==0;)if(!Object.prototype.hasOwnProperty.call(e,a[n]))return!1;for(n=o;n--!==0;){let s=a[n];if(!hn(t[s],e[s]))return!1}return!0}return t!==t&&e!==e||t==null&&e==null}function hn(t,e){try{return vy(t,e)}catch{return!1}}function yn(t,e){return!hn(t,e)}var mn=f(()=>{"use strict"});var Sy,tu=f(()=>{"use strict";mn();Sy=b(Q(),1)});var gn,fi=f(()=>{"use strict";gn=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 ou(t,e){let o=()=>JSON.parse(JSON.stringify(t));return(0,ru.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:yn,...e??{}})}var ru,nu=f(()=>{"use strict";ru=b(Q(),1);mn()});var bn,au=f(()=>{"use strict";bn=class{constructor(e=0){this.timeout=e,this.callbacks=[]}run(e,o){return this.callbacks=[e],this.debounce(o)}queue(e,o){return this.callbacks.push(e),this.debounce(o)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(e){return this.promise==null&&(this.promise=new Promise((o,n)=>{this.resolvePromise=o,this.rejectPromise=n})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),e??this.timeout),this.promise}async runCallbacks(){var e,o;let n=[...this.callbacks];this.callbacks=[];let a=(e=this.rejectPromise)!==null&&e!==void 0?e:()=>null,i=(o=this.resolvePromise)!==null&&o!==void 0?o:()=>null;this.clearPromise();for(let s of n)try{await s()}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 xn,Cy,LC,iu,su=f(()=>{xn=globalThis,Cy=xn.ShadowRoot&&(xn.ShadyCSS===void 0||xn.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,LC=Symbol(),iu=(t,e)=>{if(Cy)t.adoptedStyleSheets=e.map(o=>o instanceof CSSStyleSheet?o:o.styleSheet);else for(let o of e){let n=document.createElement("style"),a=xn.litNonce;a!==void 0&&n.setAttribute("nonce",a),n.textContent=o.cssText,t.appendChild(n)}}});var cu,vn,lu=f(()=>{"use strict";cu=b(B(),1);su();vn=class extends cu.LitElement{createRenderRoot(){let e=this.constructor;e.elementDefinitions&&!e.registry&&(e.registry=new CustomElementRegistry,Object.entries(e.elementDefinitions).forEach(([a,i])=>e.registry.define(a,i)));let o={...e.shadowRootOptions,customElements:e.registry},n=this.renderOptions.creationScope=this.attachShadow(o);return iu(n,e.elementStyles),n}}});function du(t,e,...o){var n;let a=t.querySelector(e);for(let i of o)a=(n=a?.shadowRoot)===null||n===void 0?void 0:n.querySelector(i);return a}var uu=f(()=>{"use strict"});var Ir,bo,yu,pu,fu,mu,hu,bt,gu=f(()=>{"use strict";Ir=b(Q(),1);nu();au();lu();uu();bo=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,o,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(i=(a<3?s(i):a>3?s(e,o,i):s(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},pu=Symbol("constructorPrototype"),fu=Symbol("constructorName"),mu=Symbol("exportpartsDebouncer"),hu=Symbol("dynamicDependenciesLoaded"),bt=class extends vn{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[yu]=new bn(5),this[fu]=this.constructor.name,this[pu]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[fu]&&Object.setPrototypeOf(this,this[pu])}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 e=this.constructor;e[hu]||(e[hu]=!0,this.importDynamicDependencies())}importDynamicDependencies(){}updated(e){super.updated(e),this.updateComplete.then(()=>{this.contentAvailableCallback(e),this.focusElementToFocus(e),this.applyCustomStylesheet(e),this.scheduleExportpartsUpdate()})}contentAvailableCallback(e){}focusElementToFocus(e){if(e.has("elementToFocus")&&this.elementToFocus!=null){let{element:o,selector:n,shadowPath:a}=this.elementToFocus;if(n!=null){let i=[...a??[],n];o=du(this.shadowRoot,...i)}o?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||o?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(e){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(e.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 e,o,n;(!((e=this.exportpartsPrefix)===null||e===void 0)&&e.trim()||(n=(o=this.exportpartsPrefixes)===null||o===void 0?void 0:o.length)!==null&&n!==void 0&&n)&&this[mu].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(e){var o,n,a,i,s,l;let u=x=>x!=null&&x.trim().length>0,p=e.filter(u).map(x=>x.trim());if(p.length===0){this.removeAttribute("exportparts");return}let g=new Set;for(let x of(n=(o=this.shadowRoot)===null||o===void 0?void 0:o.querySelectorAll("[part],[exportparts]"))!==null&&n!==void 0?n:[]){let C=(i=(a=x.getAttribute("part"))===null||a===void 0?void 0:a.split(" "))!==null&&i!==void 0?i:[],S=(l=(s=x.getAttribute("exportparts"))===null||s===void 0?void 0:s.split(",").map(O=>O.split(":")[1]))!==null&&l!==void 0?l:[];new Array(...C,...S).filter(u).map(O=>O.trim()).forEach(O=>g.add(O))}if(g.size===0){this.removeAttribute("exportparts");return}let m=[...g.values()].flatMap(x=>p.map(C=>`${x}:${C}--${x}`));this.setAttribute("exportparts",[...this.part,...m].join(", "))}};yu=mu;bo([(0,Ir.property)()],bt.prototype,"exportpartsPrefix",void 0);bo([ou([])],bt.prototype,"exportpartsPrefixes",void 0);bo([(0,Ir.property)()],bt.prototype,"customStylesheet",void 0);bo([(0,Ir.property)()],bt.prototype,"elementToFocus",void 0);bo([(0,Ir.state)()],bt.prototype,"useAdoptedStyleSheets",void 0)});function xo(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var Sn=f(()=>{"use strict"});var bu,xu,vu,vo,kt,nr,So,Su=f(()=>{"use strict";gu();Sn();vo=Symbol("internalReduxEventsUnsubscribers"),kt=Symbol("internalStoresUnsubscribers"),nr=Symbol("internalStores"),So=class extends bt{constructor(){super(...arguments),this[bu]=new Map,this[xu]=new Map,this[vu]=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[nr].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[nr].values()][0]}getStore(e){return e==null?this.getUnnamedStore():this[nr].get(e)}addStore(e,o){var n;o=(n=o??(xo(e)?e.name:void 0))!==null&&n!==void 0?n:"default-store",this.unsubscribeFromStore(o),this[nr].set(o,e),this.subscribeToStore(o,e),this.updateFromStores()}removeStore(e){let o=typeof e=="string"?e:e.name;this.unsubscribeFromStore(o),this[nr].delete(o)}setupStores(){this.unsubscribeFromStores(),this[nr].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[kt].has(e.store):this[kt].size>0)&&(this[o]=e.selector(a.getState(),this))}})}subscribeToStore(e,o){var n;this[kt].set(e,o.subscribe(()=>this.updateFromStores())),this[vo].set(e,[]),xo(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[vo].get(e).push(()=>o.removeEventListener(a.eventName,s))}})),this.onStoreAvailable(e)}unsubscribeFromStores(){this[kt].forEach((e,o)=>this.unsubscribeFromStore(o))}unsubscribeFromStore(e){var o;this[kt].has(e)&&this[kt].get(e)(),this[kt].delete(e),(o=this[vo].get(e))===null||o===void 0||o.forEach(n=>n()),this[vo].delete(e)}onStoreAvailable(e){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}};bu=kt,xu=nr,vu=vo;So.reduxProperties=new Map;So.reduxReactiveProperties=new Set;So.reduxEventListeners=new Map});function He(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 xt(t){return!!t&&!!t[te]}function qe(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)===Iy}(t)||Array.isArray(t)||!!t[Nu]||!!(!((e=t.constructor)===null||e===void 0)&&e[Nu])||Ci(t)||Oi(t))}function ar(t,e,o){o===void 0&&(o=!1),Lr(t)===0?(o?Object.keys:Pr)(t).forEach(function(n){o&&typeof n=="symbol"||e(n,t[n],t)}):t.forEach(function(n,a){return e(a,n,t)})}function Lr(t){var e=t[te];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:Ci(t)?2:Oi(t)?3:0}function _r(t,e){return Lr(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function Oy(t,e){return Lr(t)===2?t.get(e):t[e]}function Tu(t,e,o){var n=Lr(t);n===2?t.set(e,o):n===3?t.add(o):t[e]=o}function Iu(t,e){return t===e?t!==0||1/t==1/e:t!=t&&e!=e}function Ci(t){return Ny&&t instanceof Map}function Oi(t){return Ty&&t instanceof Set}function Dt(t){return t.o||t.t}function Ei(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=Lu(t);delete e[te];for(var o=Pr(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 wi(t,e){return e===void 0&&(e=!1),Ai(t)||xt(t)||!qe(t)||(Lr(t)>1&&(t.set=t.add=t.clear=t.delete=Ey),Object.freeze(t),e&&ar(t,function(o,n){return wi(n,!0)},!0)),t}function Ey(){He(2)}function Ai(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function nt(t){var e=Si[t];return e||He(18,t),e}function wy(t,e){Si[t]||(Si[t]=e)}function bi(){return Oo}function hi(t,e){e&&(nt("Patches"),t.u=[],t.s=[],t.v=e)}function Cn(t){xi(t),t.p.forEach(Ay),t.p=null}function xi(t){t===Oo&&(Oo=t.l)}function Cu(t){return Oo={p:[],l:Oo,h:t,m:!0,_:0}}function Ay(t){var e=t[te];e.i===0||e.i===1?e.j():e.g=!0}function yi(t,e){e._=e.p.length;var o=e.p[0],n=t!==void 0&&t!==o;return e.h.O||nt("ES5").S(e,t,n),n?(o[te].P&&(Cn(e),He(4)),qe(t)&&(t=On(e,t),e.l||En(e,t)),e.u&&nt("Patches").M(o[te].t,t,e.u,e.s)):t=On(e,o,[]),Cn(e),e.u&&e.v(e.u,e.s),t!==Pu?t:void 0}function On(t,e,o){if(Ai(e))return e;var n=e[te];if(!n)return ar(e,function(l,u){return Ou(t,n,e,l,u,o)},!0),e;if(n.A!==t)return e;if(!n.P)return En(t,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var a=n.i===4||n.i===5?n.o=Ei(n.k):n.o,i=a,s=!1;n.i===3&&(i=new Set(a),a.clear(),s=!0),ar(i,function(l,u){return Ou(t,n,a,l,u,o,s)}),En(t,a,!1),o&&t.u&&nt("Patches").N(n,o,t.u,t.s)}return n.o}function Ou(t,e,o,n,a,i,s){if(xt(a)){var l=On(t,a,i&&e&&e.i!==3&&!_r(e.R,n)?i.concat(n):void 0);if(Tu(o,n,l),!xt(l))return;t.m=!1}else s&&o.add(a);if(qe(a)&&!Ai(a)){if(!t.h.D&&t._<1)return;On(t,a),e&&e.A.l||En(t,a)}}function En(t,e,o){o===void 0&&(o=!1),!t.l&&t.h.D&&t.m&&wi(e,o)}function mi(t,e){var o=t[te];return(o?Dt(o):t)[e]}function Eu(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 Bt(t){t.P||(t.P=!0,t.l&&Bt(t.l))}function gi(t){t.o||(t.o=Ei(t.t))}function vi(t,e,o){var n=Ci(e)?nt("MapSet").F(e,o):Oi(e)?nt("MapSet").T(e,o):t.O?function(a,i){var s=Array.isArray(a),l={i:s?1:0,A:i?i.A:bi(),P:!1,I:!1,R:{},l:i,t:a,k:null,o:null,j:null,C:!1},u=l,p=Eo;s&&(u=[l],p=Co);var g=Proxy.revocable(u,p),m=g.revoke,x=g.proxy;return l.k=x,l.j=m,x}(e,o):nt("ES5").J(e,o);return(o?o.A:bi()).p.push(n),n}function Ry(t){return xt(t)||He(22,t),function e(o){if(!qe(o))return o;var n,a=o[te],i=Lr(o);if(a){if(!a.P&&(a.i<4||!nt("ES5").K(a)))return a.t;a.I=!0,n=wu(o,i),a.I=!1}else n=wu(o,i);return ar(n,function(s,l){a&&Oy(a.t,s)===l||Tu(n,s,e(l))}),i===3?new Set(n):n}(t)}function wu(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return Ei(t)}function _u(){function t(s,l){var u=i[s];return u?u.enumerable=l:i[s]=u={configurable:!0,enumerable:l,get:function(){var p=this[te];return Eo.get(p,s)},set:function(p){var g=this[te];Eo.set(g,s,p)}},u}function e(s){for(var l=s.length-1;l>=0;l--){var u=s[l][te];if(!u.P)switch(u.i){case 5:n(u)&&Bt(u);break;case 4:o(u)&&Bt(u)}}}function o(s){for(var l=s.t,u=s.k,p=Pr(u),g=p.length-1;g>=0;g--){var m=p[g];if(m!==te){var x=l[m];if(x===void 0&&!_r(l,m))return!0;var C=u[m],S=C&&C[te];if(S?S.t!==x:!Iu(C,x))return!0}}var O=!!l[te];return p.length!==Pr(l).length+(O?0:1)}function n(s){var l=s.k;if(l.length!==s.t.length)return!0;var u=Object.getOwnPropertyDescriptor(l,l.length-1);if(u&&!u.get)return!0;for(var p=0;p<l.length;p++)if(!l.hasOwnProperty(p))return!0;return!1}function a(s){s.g&&He(3,JSON.stringify(Dt(s)))}var i={};wy("ES5",{J:function(s,l){var u=Array.isArray(s),p=function(m,x){if(m){for(var C=Array(x.length),S=0;S<x.length;S++)Object.defineProperty(C,""+S,t(S,!0));return C}var O=Lu(x);delete O[te];for(var _=Pr(O),T=0;T<_.length;T++){var I=_[T];O[I]=t(I,m||!!O[I].enumerable)}return Object.create(Object.getPrototypeOf(x),O)}(u,s),g={i:u?5:4,A:l?l.A:bi(),P:!1,I:!1,R:{},l,t:s,k:p,o:null,g:!1,C:!1};return Object.defineProperty(p,te,{value:g,writable:!0}),p},S:function(s,l,u){u?xt(l)&&l[te].A===s&&e(s.p):(s.u&&function p(g){if(g&&typeof g=="object"){var m=g[te];if(m){var x=m.t,C=m.k,S=m.R,O=m.i;if(O===4)ar(C,function(U){U!==te&&(x[U]!==void 0||_r(x,U)?S[U]||p(C[U]):(S[U]=!0,Bt(m)))}),ar(x,function(U){C[U]!==void 0||_r(C,U)||(S[U]=!1,Bt(m))});else if(O===5){if(n(m)&&(Bt(m),S.length=!0),C.length<x.length)for(var _=C.length;_<x.length;_++)S[_]=!1;else for(var T=x.length;T<C.length;T++)S[T]=!0;for(var I=Math.min(C.length,x.length),M=0;M<I;M++)C.hasOwnProperty(M)||(S[M]=!0),S[M]===void 0&&p(C[M])}}}}(s.p[0]),e(s.p))},K:function(s){return s.i===4?o(s):n(s)}})}var Au,Oo,Ri,Ny,Ty,Ru,Pu,Nu,te,Iy,Pr,Lu,Si,Eo,Co,_y,Be,Py,KC,ZC,qC,YC,QC,XC,wn,An=f(()=>{Ri=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",Ny=typeof Map<"u",Ty=typeof Set<"u",Ru=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Pu=Ri?Symbol.for("immer-nothing"):((Au={})["immer-nothing"]=!0,Au),Nu=Ri?Symbol.for("immer-draftable"):"__$immer_draftable",te=Ri?Symbol.for("immer-state"):"__$immer_state",Iy=""+Object.prototype.constructor,Pr=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,Lu=Object.getOwnPropertyDescriptors||function(t){var e={};return Pr(t).forEach(function(o){e[o]=Object.getOwnPropertyDescriptor(t,o)}),e},Si={},Eo={get:function(t,e){if(e===te)return t;var o=Dt(t);if(!_r(o,e))return function(a,i,s){var l,u=Eu(i,s);return u?"value"in u?u.value:(l=u.get)===null||l===void 0?void 0:l.call(a.k):void 0}(t,o,e);var n=o[e];return t.I||!qe(n)?n:n===mi(t.t,e)?(gi(t),t.o[e]=vi(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=Eu(Dt(t),e);if(n?.set)return n.set.call(t.k,o),!0;if(!t.P){var a=mi(Dt(t),e),i=a?.[te];if(i&&i.t===o)return t.o[e]=o,t.R[e]=!1,!0;if(Iu(o,a)&&(o!==void 0||_r(t.t,e)))return!0;gi(t),Bt(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 mi(t.t,e)!==void 0||e in t.t?(t.R[e]=!1,gi(t),Bt(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(){He(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){He(12)}},Co={};ar(Eo,function(t,e){Co[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),Co.deleteProperty=function(t,e){return Co.set.call(this,t,e,void 0)},Co.set=function(t,e,o){return Eo.set.call(this,t[0],e,o,t[0])};_y=function(){function t(o){var n=this;this.O=Ru,this.D=!0,this.produce=function(a,i,s){if(typeof a=="function"&&typeof i!="function"){var l=i;i=a;var u=n;return function(O){var _=this;O===void 0&&(O=l);for(var T=arguments.length,I=Array(T>1?T-1:0),M=1;M<T;M++)I[M-1]=arguments[M];return u.produce(O,function(U){var W;return(W=i).call.apply(W,[_,U].concat(I))})}}var p;if(typeof i!="function"&&He(6),s!==void 0&&typeof s!="function"&&He(7),qe(a)){var g=Cu(n),m=vi(n,a,void 0),x=!0;try{p=i(m),x=!1}finally{x?Cn(g):xi(g)}return typeof Promise<"u"&&p instanceof Promise?p.then(function(O){return hi(g,s),yi(O,g)},function(O){throw Cn(g),O}):(hi(g,s),yi(p,g))}if(!a||typeof a!="object"){if((p=i(a))===void 0&&(p=a),p===Pu&&(p=void 0),n.D&&wi(p,!0),s){var C=[],S=[];nt("Patches").M(a,p,C,S),s(C,S)}return p}He(21,a)},this.produceWithPatches=function(a,i){if(typeof a=="function")return function(p){for(var g=arguments.length,m=Array(g>1?g-1:0),x=1;x<g;x++)m[x-1]=arguments[x];return n.produceWithPatches(p,function(C){return a.apply(void 0,[C].concat(m))})};var s,l,u=n.produce(a,i,function(p,g){s=p,l=g});return typeof Promise<"u"&&u instanceof Promise?u.then(function(p){return[p,s,l]}):[u,s,l]},typeof o?.useProxies=="boolean"&&this.setUseProxies(o.useProxies),typeof o?.autoFreeze=="boolean"&&this.setAutoFreeze(o.autoFreeze)}var e=t.prototype;return e.createDraft=function(o){qe(o)||He(8),xt(o)&&(o=Ry(o));var n=Cu(this),a=vi(this,o,void 0);return a[te].C=!0,xi(n),a},e.finishDraft=function(o,n){var a=o&&o[te],i=a.A;return hi(i,n),yi(void 0,i)},e.setAutoFreeze=function(o){this.D=o},e.setUseProxies=function(o){o&&!Ru&&He(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=nt("Patches").$;return xt(o)?s(o,n):this.produce(o,function(l){return s(l,n)})},t}(),Be=new _y,Py=Be.produce,KC=Be.produceWithPatches.bind(Be),ZC=Be.setAutoFreeze.bind(Be),qC=Be.setUseProxies.bind(Be),YC=Be.applyPatches.bind(Be),QC=Be.createDraft.bind(Be),XC=Be.finishDraft.bind(Be),wn=Py});function ir(t){"@babel/helpers - typeof";return ir=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},ir(t)}var Ni=f(()=>{});function ku(t,e){if(ir(t)!="object"||!t)return t;var o=t[Symbol.toPrimitive];if(o!==void 0){var n=o.call(t,e||"default");if(ir(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Du=f(()=>{Ni()});function Bu(t){var e=ku(t,"string");return ir(e)=="symbol"?e:e+""}var Mu=f(()=>{Ni();Du()});function $u(t,e,o){return(e=Bu(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}var Uu=f(()=>{Mu()});function Fu(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 Ti(t){for(var e=1;e<arguments.length;e++){var o=arguments[e]!=null?arguments[e]:{};e%2?Fu(Object(o),!0).forEach(function(n){$u(t,n,o[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):Fu(Object(o)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(o,n))})}return t}var Wu=f(()=>{Uu()});function ve(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. "}function Ly(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 _i(t,e,o){var n;if(typeof e=="function"&&typeof o=="function"||typeof o=="function"&&typeof arguments[3]=="function")throw new Error(ve(0));if(typeof e=="function"&&typeof o>"u"&&(o=e,e=void 0),typeof o<"u"){if(typeof o!="function")throw new Error(ve(1));return o(_i)(t,e)}if(typeof t!="function")throw new Error(ve(2));var a=t,i=e,s=[],l=s,u=!1;function p(){l===s&&(l=s.slice())}function g(){if(u)throw new Error(ve(3));return i}function m(O){if(typeof O!="function")throw new Error(ve(4));if(u)throw new Error(ve(5));var _=!0;return p(),l.push(O),function(){if(_){if(u)throw new Error(ve(6));_=!1,p();var I=l.indexOf(O);l.splice(I,1),s=null}}}function x(O){if(!Ly(O))throw new Error(ve(7));if(typeof O.type>"u")throw new Error(ve(8));if(u)throw new Error(ve(9));try{u=!0,i=a(i,O)}finally{u=!1}for(var _=s=l,T=0;T<_.length;T++){var I=_[T];I()}return O}function C(O){if(typeof O!="function")throw new Error(ve(10));a=O,x({type:Rn.REPLACE})}function S(){var O,_=m;return O={subscribe:function(I){if(typeof I!="object"||I===null)throw new Error(ve(11));function M(){I.next&&I.next(g())}M();var U=_(M);return{unsubscribe:U}}},O[Hu]=function(){return this},O}return x({type:Rn.INIT}),n={dispatch:x,subscribe:m,getState:g,replaceReducer:C},n[Hu]=S,n}function ky(t){Object.keys(t).forEach(function(e){var o=t[e],n=o(void 0,{type:Rn.INIT});if(typeof n>"u")throw new Error(ve(12));if(typeof o(void 0,{type:Rn.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(ve(13))})}function zu(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{ky(o)}catch(u){l=u}return function(p,g){if(p===void 0&&(p={}),l)throw l;if(0)var m;for(var x=!1,C={},S=0;S<i.length;S++){var O=i[S],_=o[O],T=p[O],I=_(T,g);if(typeof I>"u"){var M=g&&g.type;throw new Error(ve(14))}C[O]=I,x=x||I!==T}return x=x||i.length!==Object.keys(p).length,x?C:p}}function kr(){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 ju(){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(ve(15))},s={getState:a.getState,dispatch:function(){return i.apply(void 0,arguments)}},l=e.map(function(u){return u(s)});return i=kr.apply(void 0,l)(a.dispatch),Ti(Ti({},a),{},{dispatch:i})}}}var Hu,Ii,Rn,Nn=f(()=>{Wu();Hu=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),Ii=function(){return Math.random().toString(36).substring(7).split("").join(".")},Rn={INIT:"@@redux/INIT"+Ii(),REPLACE:"@@redux/REPLACE"+Ii(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Ii()}}});function Gu(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 Vu,Pi,Ku=f(()=>{Vu=Gu();Vu.withExtraArgument=Gu;Pi=Vu});function zy(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}function Bi(t){return qe(t)?wn(t,function(){}):t}function Vy(t){return typeof t=="boolean"}function Ky(){return function(e){return Zy(e)}}function Zy(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 jy;if(o&&(Vy(o)?l.push(Pi):l.push(Pi.withExtraArgument(o.extraArgument))),0){if(a)var u;if(s)var p}return l}function Ju(t){var e=Ky(),o=t||{},n=o.reducer,a=n===void 0?void 0:n,i=o.middleware,s=i===void 0?e():i,l=o.devTools,u=l===void 0?!0:l,p=o.preloadedState,g=p===void 0?void 0:p,m=o.enhancers,x=m===void 0?void 0:m,C;if(typeof a=="function")C=a;else if(zy(a))C=zu(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 S=s;if(typeof S=="function"&&(S=S(e),!ki&&!Array.isArray(S)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!ki&&S.some(function(U){return typeof U!="function"}))throw new Error("each middleware provided to configureStore must be a function");var O=ju.apply(void 0,S),_=kr;u&&(_=Hy(Mt({trace:!ki},typeof u=="object"&&u)));var T=new Gy(O),I=T;Array.isArray(x)?I=Dr([O],x):typeof x=="function"&&(I=x(T));var M=_.apply(void 0,I);return _i(C,g,M)}function $t(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 Mt(Mt({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 ep(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 qy(t){return typeof t=="function"}function Yy(t,e,o,n){o===void 0&&(o=[]);var a=typeof e=="function"?ep(e):[e,o,n],i=a[0],s=a[1],l=a[2],u;if(qy(t))u=function(){return Bi(t())};else{var p=Bi(t);u=function(){return p}}function g(m,x){m===void 0&&(m=u());var C=Dr([i[x.type]],s.filter(function(S){var O=S.matcher;return O(x)}).map(function(S){var O=S.reducer;return O}));return C.filter(function(S){return!!S}).length===0&&(C=[l]),C.reduce(function(S,O){if(O)if(xt(S)){var _=S,T=O(_,x);return T===void 0?S:T}else{if(qe(S))return wn(S,function(I){return O(I,x)});var T=O(S,x);if(T===void 0){if(S===null)return S;throw Error("A case reducer on a non-draftable value must not return undefined")}return T}return S},m)}return g.getInitialState=u,g}function Qy(t,e){return t+"/"+e}function tp(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:Bi(t.initialState),n=t.reducers||{},a=Object.keys(n),i={},s={},l={};a.forEach(function(g){var m=n[g],x=Qy(e,g),C,S;"reducer"in m?(C=m.reducer,S=m.prepare):C=m,i[g]=C,s[x]=C,l[g]=S?$t(x,S):$t(x)});function u(){var g=typeof t.extraReducers=="function"?ep(t.extraReducers):[t.extraReducers],m=g[0],x=m===void 0?{}:m,C=g[1],S=C===void 0?[]:C,O=g[2],_=O===void 0?void 0:O,T=Mt(Mt({},x),s);return Yy(o,function(I){for(var M in T)I.addCase(M,T[M]);for(var U=0,W=S;U<W.length;U++){var we=W[U];I.addMatcher(we.matcher,we.reducer)}_&&I.addDefaultCase(_)})}var p;return{name:e,reducer:function(g,m){return p||(p=u()),p(g,m)},actions:l,caseReducers:i,getInitialState:function(){return p||(p=u()),p.getInitialState()}}}function rm(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function om(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var Xu,Dy,Dr,By,My,$y,Zu,Uy,Fy,qu,Mt,Li,Wy,Hy,mO,jy,Gy,ki,Xy,Jy,em,Di,Yu,tm,vO,rp,op,np,SO,CO,OO,EO,Mi,wO,AO,RO,Qu,NO,nm,TO,ap=f(()=>{An();Nn();Nn();Nn();Ku();An();An();Xu=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)}}(),Dy=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(p){return function(g){return u([p,g])}}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=e.call(t,o)}catch(g){p=[6,g],a=0}finally{n=i=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},Dr=function(t,e){for(var o=0,n=e.length,a=t.length;o<n;o++,a++)t[a]=e[o];return t},By=Object.defineProperty,My=Object.defineProperties,$y=Object.getOwnPropertyDescriptors,Zu=Object.getOwnPropertySymbols,Uy=Object.prototype.hasOwnProperty,Fy=Object.prototype.propertyIsEnumerable,qu=function(t,e,o){return e in t?By(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o},Mt=function(t,e){for(var o in e||(e={}))Uy.call(e,o)&&qu(t,o,e[o]);if(Zu)for(var n=0,a=Zu(e);n<a.length;n++){var o=a[n];Fy.call(e,o)&&qu(t,o,e[o])}return t},Li=function(t,e){return My(t,$y(e))},Wy=function(t,e,o){return new Promise(function(n,a){var i=function(u){try{l(o.next(u))}catch(p){a(p)}},s=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,s)};l((o=o.apply(t,e)).next())})},Hy=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?kr:kr.apply(null,arguments)},mO=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}};jy=function(t){Xu(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,Dr([void 0],o[0].concat(this)))):new(e.bind.apply(e,Dr([void 0],o.concat(this))))},e}(Array),Gy=function(t){Xu(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,Dr([void 0],o[0].concat(this)))):new(e.bind.apply(e,Dr([void 0],o.concat(this))))},e}(Array);ki=!0;Xy="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Jy=function(t){t===void 0&&(t=21);for(var e="",o=t;o--;)e+=Xy[Math.random()*64|0];return e},em=["name","message","stack","code"],Di=function(){function t(e,o){this.payload=e,this.meta=o}return t}(),Yu=function(){function t(e,o){this.payload=e,this.meta=o}return t}(),tm=function(t){if(typeof t=="object"&&t!==null){for(var e={},o=0,n=em;o<n.length;o++){var a=n[o];typeof t[a]=="string"&&(e[a]=t[a])}return e}return{message:String(t)}},vO=function(){function t(e,o,n){var a=$t(e+"/fulfilled",function(g,m,x,C){return{payload:g,meta:Li(Mt({},C||{}),{arg:x,requestId:m,requestStatus:"fulfilled"})}}),i=$t(e+"/pending",function(g,m,x){return{payload:void 0,meta:Li(Mt({},x||{}),{arg:m,requestId:g,requestStatus:"pending"})}}),s=$t(e+"/rejected",function(g,m,x,C,S){return{payload:C,error:(n&&n.serializeError||tm)(g||"Rejected"),meta:Li(Mt({},S||{}),{arg:x,requestId:m,rejectedWithValue:!!C,requestStatus:"rejected",aborted:g?.name==="AbortError",condition:g?.name==="ConditionError"})}}),l=!1,u=typeof AbortController<"u"?AbortController:function(){function g(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return g.prototype.abort=function(){},g}();function p(g){return function(m,x,C){var S=n?.idGenerator?n.idGenerator(g):Jy(),O=new u,_,T=!1;function I(U){_=U,O.abort()}var M=function(){return Wy(this,null,function(){var U,W,we,Qe,Ce,Xe,fe;return Dy(this,function(y){switch(y.label){case 0:return y.trys.push([0,4,,5]),Qe=(U=n?.condition)==null?void 0:U.call(n,g,{getState:x,extra:C}),om(Qe)?[4,Qe]:[3,2];case 1:Qe=y.sent(),y.label=2;case 2:if(Qe===!1||O.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return T=!0,Ce=new Promise(function(v,D){return O.signal.addEventListener("abort",function(){return D({name:"AbortError",message:_||"Aborted"})})}),m(i(S,g,(W=n?.getPendingMeta)==null?void 0:W.call(n,{requestId:S,arg:g},{getState:x,extra:C}))),[4,Promise.race([Ce,Promise.resolve(o(g,{dispatch:m,getState:x,extra:C,requestId:S,signal:O.signal,abort:I,rejectWithValue:function(v,D){return new Di(v,D)},fulfillWithValue:function(v,D){return new Yu(v,D)}})).then(function(v){if(v instanceof Di)throw v;return v instanceof Yu?a(v.payload,S,g,v.meta):a(v,S,g)})])];case 3:return we=y.sent(),[3,5];case 4:return Xe=y.sent(),we=Xe instanceof Di?s(null,S,g,Xe.payload,Xe.meta):s(Xe,S,g),[3,5];case 5:return fe=n&&!n.dispatchConditionRejection&&s.match(we)&&we.meta.condition,fe||m(we),[2,we]}})})}();return Object.assign(M,{abort:I,requestId:S,arg:g,unwrap:function(){return M.then(rm)}})}}return Object.assign(p,{pending:i,rejected:s,fulfilled:a,typePrefix:e})}return t.withTypes=function(){return t},t}();rp="listener",op="completed",np="cancelled",SO="task-"+np,CO="task-"+op,OO=rp+"-"+np,EO=rp+"-"+op,Mi="listenerMiddleware",wO=$t(Mi+"/add"),AO=$t(Mi+"/removeAll"),RO=$t(Mi+"/remove"),NO=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(t){return(Qu||(Qu=Promise.resolve())).then(t).catch(function(e){return setTimeout(function(){throw e},0)})},nm=function(t){return function(e){setTimeout(e,t)}},TO=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:nm(10);_u()});function am(t,e){return class extends t{constructor(){super(...arguments),this.eventBus=e??document.createElement("span")}addEventListener(o,n,a){this.eventBus.addEventListener(o,n,a)}dispatchEvent(o){return this.eventBus.dispatchEvent(o)}removeEventListener(o,n,a){this.eventBus.removeEventListener(o,n,a)}}}var Tn,ip=f(()=>{"use strict";Tn=class extends am(Object){}});var sp,cp=f(()=>{"use strict";ap();Sn();fi();ip();window.ftReduxStores||(window.ftReduxStores={});sp=class t extends Tn{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(xo(i))return i;if(a==null)return;let s=tp({...a,reducers:(o=a.reducers)!==null&&o!==void 0?o:{}}),l=Ju({reducer:(u,p)=>p.type==="CLEAR_FT_REDUX_STORE"?s.getInitialState():typeof p.type=="string"&&p.type.startsWith("DEFAULT_VALUE_SETTER__")?{...u,...p.overwrites}:s.reducer(u,p)});return window.ftReduxStores[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 gn;let a=i=>i!=null?JSON.parse(JSON.stringify(i)):i;this.actions=new Proxy(this.reduxSlice.actions,{get:(i,s,l)=>{let u=s,p=i[u];return p?(...g)=>{let m=p(...g.map(a));return this.reduxStore.dispatch(m),m}:g=>{this.setState({[u]:a(g)})}}}),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()}}});var lp=f(()=>{"use strict";mn()});var dp=f(()=>{"use strict";tu();fi();Su();cp();Sn();lp()});var up=f(()=>{"use strict"});var im,pp=f(()=>{"use strict";im=b(Q());dp();up();We()});var hp=Zt((Ut,fp)=>{var In=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof global<"u"&&global,_n=function(){function t(){this.fetch=!1,this.DOMException=In.DOMException}return t.prototype=In,new t}();(function(t){var e=function(o){var n=typeof t<"u"&&t||typeof self<"u"&&self||typeof global<"u"&&global||{},a={searchParams:"URLSearchParams"in n,iterable:"Symbol"in n&&"iterator"in Symbol,blob:"FileReader"in n&&"Blob"in n&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in n,arrayBuffer:"ArrayBuffer"in n};function i(y){return y&&DataView.prototype.isPrototypeOf(y)}if(a.arrayBuffer)var s=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],l=ArrayBuffer.isView||function(y){return y&&s.indexOf(Object.prototype.toString.call(y))>-1};function u(y){if(typeof y!="string"&&(y=String(y)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(y)||y==="")throw new TypeError('Invalid character in header field name: "'+y+'"');return y.toLowerCase()}function p(y){return typeof y!="string"&&(y=String(y)),y}function g(y){var v={next:function(){var D=y.shift();return{done:D===void 0,value:D}}};return a.iterable&&(v[Symbol.iterator]=function(){return v}),v}function m(y){this.map={},y instanceof m?y.forEach(function(v,D){this.append(D,v)},this):Array.isArray(y)?y.forEach(function(v){if(v.length!=2)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+v.length);this.append(v[0],v[1])},this):y&&Object.getOwnPropertyNames(y).forEach(function(v){this.append(v,y[v])},this)}m.prototype.append=function(y,v){y=u(y),v=p(v);var D=this.map[y];this.map[y]=D?D+", "+v:v},m.prototype.delete=function(y){delete this.map[u(y)]},m.prototype.get=function(y){return y=u(y),this.has(y)?this.map[y]:null},m.prototype.has=function(y){return this.map.hasOwnProperty(u(y))},m.prototype.set=function(y,v){this.map[u(y)]=p(v)},m.prototype.forEach=function(y,v){for(var D in this.map)this.map.hasOwnProperty(D)&&y.call(v,this.map[D],D,this)},m.prototype.keys=function(){var y=[];return this.forEach(function(v,D){y.push(D)}),g(y)},m.prototype.values=function(){var y=[];return this.forEach(function(v){y.push(v)}),g(y)},m.prototype.entries=function(){var y=[];return this.forEach(function(v,D){y.push([D,v])}),g(y)},a.iterable&&(m.prototype[Symbol.iterator]=m.prototype.entries);function x(y){if(!y._noBody){if(y.bodyUsed)return Promise.reject(new TypeError("Already read"));y.bodyUsed=!0}}function C(y){return new Promise(function(v,D){y.onload=function(){v(y.result)},y.onerror=function(){D(y.error)}})}function S(y){var v=new FileReader,D=C(v);return v.readAsArrayBuffer(y),D}function O(y){var v=new FileReader,D=C(v),q=/charset=([A-Za-z0-9_-]+)/.exec(y.type),re=q?q[1]:"utf-8";return v.readAsText(y,re),D}function _(y){for(var v=new Uint8Array(y),D=new Array(v.length),q=0;q<v.length;q++)D[q]=String.fromCharCode(v[q]);return D.join("")}function T(y){if(y.slice)return y.slice(0);var v=new Uint8Array(y.byteLength);return v.set(new Uint8Array(y)),v.buffer}function I(){return this.bodyUsed=!1,this._initBody=function(y){this.bodyUsed=this.bodyUsed,this._bodyInit=y,y?typeof y=="string"?this._bodyText=y:a.blob&&Blob.prototype.isPrototypeOf(y)?this._bodyBlob=y:a.formData&&FormData.prototype.isPrototypeOf(y)?this._bodyFormData=y:a.searchParams&&URLSearchParams.prototype.isPrototypeOf(y)?this._bodyText=y.toString():a.arrayBuffer&&a.blob&&i(y)?(this._bodyArrayBuffer=T(y.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):a.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(y)||l(y))?this._bodyArrayBuffer=T(y):this._bodyText=y=Object.prototype.toString.call(y):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||(typeof y=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):a.searchParams&&URLSearchParams.prototype.isPrototypeOf(y)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},a.blob&&(this.blob=function(){var y=x(this);if(y)return y;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))}),this.arrayBuffer=function(){if(this._bodyArrayBuffer){var y=x(this);return y||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}else{if(a.blob)return this.blob().then(S);throw new Error("could not read as ArrayBuffer")}},this.text=function(){var y=x(this);if(y)return y;if(this._bodyBlob)return O(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(_(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},a.formData&&(this.formData=function(){return this.text().then(we)}),this.json=function(){return this.text().then(JSON.parse)},this}var M=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function U(y){var v=y.toUpperCase();return M.indexOf(v)>-1?v:y}function W(y,v){if(!(this instanceof W))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');v=v||{};var D=v.body;if(y instanceof W){if(y.bodyUsed)throw new TypeError("Already read");this.url=y.url,this.credentials=y.credentials,v.headers||(this.headers=new m(y.headers)),this.method=y.method,this.mode=y.mode,this.signal=y.signal,!D&&y._bodyInit!=null&&(D=y._bodyInit,y.bodyUsed=!0)}else this.url=String(y);if(this.credentials=v.credentials||this.credentials||"same-origin",(v.headers||!this.headers)&&(this.headers=new m(v.headers)),this.method=U(v.method||this.method||"GET"),this.mode=v.mode||this.mode||null,this.signal=v.signal||this.signal||function(){if("AbortController"in n){var H=new AbortController;return H.signal}}(),this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&D)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(D),(this.method==="GET"||this.method==="HEAD")&&(v.cache==="no-store"||v.cache==="no-cache")){var q=/([?&])_=[^&]*/;if(q.test(this.url))this.url=this.url.replace(q,"$1_="+new Date().getTime());else{var re=/\?/;this.url+=(re.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}W.prototype.clone=function(){return new W(this,{body:this._bodyInit})};function we(y){var v=new FormData;return y.trim().split("&").forEach(function(D){if(D){var q=D.split("="),re=q.shift().replace(/\+/g," "),H=q.join("=").replace(/\+/g," ");v.append(decodeURIComponent(re),decodeURIComponent(H))}}),v}function Qe(y){var v=new m,D=y.replace(/\r?\n[\t ]+/g," ");return D.split("\r").map(function(q){return q.indexOf(`
1163
- `)===0?q.substr(1,q.length):q}).forEach(function(q){var re=q.split(":"),H=re.shift().trim();if(H){var Bo=re.join(":").trim();try{v.append(H,Bo)}catch(la){console.warn("Response "+la.message)}}}),v}I.call(W.prototype);function Ce(y,v){if(!(this instanceof Ce))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(v||(v={}),this.type="default",this.status=v.status===void 0?200:v.status,this.status<200||this.status>599)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=v.statusText===void 0?"":""+v.statusText,this.headers=new m(v.headers),this.url=v.url||"",this._initBody(y)}I.call(Ce.prototype),Ce.prototype.clone=function(){return new Ce(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new m(this.headers),url:this.url})},Ce.error=function(){var y=new Ce(null,{status:200,statusText:""});return y.ok=!1,y.status=0,y.type="error",y};var Xe=[301,302,303,307,308];Ce.redirect=function(y,v){if(Xe.indexOf(v)===-1)throw new RangeError("Invalid status code");return new Ce(null,{status:v,headers:{location:y}})},o.DOMException=n.DOMException;try{new o.DOMException}catch{o.DOMException=function(v,D){this.message=v,this.name=D;var q=Error(v);this.stack=q.stack},o.DOMException.prototype=Object.create(Error.prototype),o.DOMException.prototype.constructor=o.DOMException}function fe(y,v){return new Promise(function(D,q){var re=new W(y,v);if(re.signal&&re.signal.aborted)return q(new o.DOMException("Aborted","AbortError"));var H=new XMLHttpRequest;function Bo(){H.abort()}H.onload=function(){var he={statusText:H.statusText,headers:Qe(H.getAllResponseHeaders()||"")};re.url.indexOf("file://")===0&&(H.status<200||H.status>599)?he.status=200:he.status=H.status,he.url="responseURL"in H?H.responseURL:he.headers.get("X-Request-URL");var Kt="response"in H?H.response:H.responseText;setTimeout(function(){D(new Ce(Kt,he))},0)},H.onerror=function(){setTimeout(function(){q(new TypeError("Network request failed"))},0)},H.ontimeout=function(){setTimeout(function(){q(new TypeError("Network request timed out"))},0)},H.onabort=function(){setTimeout(function(){q(new o.DOMException("Aborted","AbortError"))},0)};function la(he){try{return he===""&&n.location.href?n.location.href:he}catch{return he}}if(H.open(re.method,la(re.url),!0),re.credentials==="include"?H.withCredentials=!0:re.credentials==="omit"&&(H.withCredentials=!1),"responseType"in H&&(a.blob?H.responseType="blob":a.arrayBuffer&&(H.responseType="arraybuffer")),v&&typeof v.headers=="object"&&!(v.headers instanceof m||n.Headers&&v.headers instanceof n.Headers)){var Bs=[];Object.getOwnPropertyNames(v.headers).forEach(function(he){Bs.push(u(he)),H.setRequestHeader(he,p(v.headers[he]))}),re.headers.forEach(function(he,Kt){Bs.indexOf(Kt)===-1&&H.setRequestHeader(Kt,he)})}else re.headers.forEach(function(he,Kt){H.setRequestHeader(Kt,he)});re.signal&&(re.signal.addEventListener("abort",Bo),H.onreadystatechange=function(){H.readyState===4&&re.signal.removeEventListener("abort",Bo)}),H.send(typeof re._bodyInit>"u"?null:re._bodyInit)})}return fe.polyfill=!0,n.fetch||(n.fetch=fe,n.Headers=m,n.Request=W,n.Response=Ce),o.Headers=m,o.Request=W,o.Response=Ce,o.fetch=fe,o}({})})(_n);_n.fetch.ponyfill=!0;delete _n.fetch.polyfill;var Br=In.fetch?In:_n;Ut=Br.fetch;Ut.default=Br.fetch;Ut.fetch=Br.fetch;Ut.Headers=Br.Headers;Ut.Request=Br.Request;Ut.Response=Br.Response;fp.exports=Ut});var $i=f(()=>{});var yp,mp,Mr,gp,bp,sr,xp,vp,Sp,Cp,Op,Ep,wp,Ap,Rp,$r,Np,Pn,Tp,Ip,ze,Ur,pe,Ui=f(()=>{(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(yp||(yp={}));(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(mp||(mp={}));(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"})(Mr||(Mr={}));(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(gp||(gp={}));(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(bp||(bp={}));(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"})(sr||(sr={}));(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"})(xp||(xp={}));(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"})(vp||(vp={}));(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(Sp||(Sp={}));(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(Cp||(Cp={}));(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(Op||(Op={}));(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(Ep||(Ep={}));(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"})(wp||(wp={}));(function(t){t.ASC="ASC",t.DESC="DESC"})(Ap||(Ap={}));(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(Rp||(Rp={}));(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})($r||($r={}));(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK"})(Np||(Np={}));(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(Pn||(Pn={}));(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK"})(Tp||(Tp={}));(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Ip||(Ip={}));(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC"})(ze||(ze={}));(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(Ur||(Ur={}));(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"})(pe||(pe={}))});var _p,Pp,Lp,kp=f(()=>{(function(t){t.VALID="VALID",t.INVALID="INVALID"})(_p||(_p={}));(function(t){t.JSON="JSON",t.TEXT="TEXT"})(Pp||(Pp={}));(function(t){t.TEXT="TEXT",t.HTML="HTML"})(Lp||(Lp={}))});function Dp(t,e){return t===e||(sm[t]??[]).some(o=>Dp(o,e))}function Bp(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=>Dp(n,e))}var sm,Mp=f(()=>{Ui();sm={[pe.PERSONAL_BOOK_SHARE_USER]:[pe.PERSONAL_BOOK_USER],[pe.HTML_EXPORT_USER]:[pe.PERSONAL_BOOK_USER],[pe.PDF_EXPORT_USER]:[pe.PERSONAL_BOOK_USER],[pe.KHUB_ADMIN]:[pe.CONTENT_PUBLISHER],[pe.ADMIN]:[pe.KHUB_ADMIN,pe.USERS_ADMIN,pe.PORTAL_ADMIN],[pe.GENERATIVE_AI_EXPORT_USER]:[pe.GENERATIVE_AI_USER]}});var $p=f(()=>{});var cm,wo=f(()=>{cm=b(hp(),1);$i();Ui();kp();Mp();$p();$i()});var Ln,Fi=f(()=>{"use strict";We();wo();go();Ln=class extends rt{async listMySearches(){let{session:e}=k.getState();return Bp(e,pe.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),5*60*1e3):[]}}});var kn,Wi=f(()=>{"use strict";We();go();kn=class extends rt{async listMyBookmarks(){let e=k.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),5*60*1e3):[]}}});var Bn,lm,Dn,Hi,Up,zi=f(()=>{"use strict";Bn=b(N());Fi();Wi();We();lm="ft-user-assets",Dn=Bn.FtReduxStore.get({name:lm,initialState:{savedSearches:void 0,bookmarks:void 0}}),Hi=class{constructor(){this.currentSession=k.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new kn,this.savedSearchesService=new Ln,k.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:o}=k.getState();(0,Bn.deepEqual)((e=this.currentSession)===null||e===void 0?void 0:e.profile,o?.profile)||(this.currentSession=o,this.clearMySearches(),this.reloadBookmarks())}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),Dn.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),Dn.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();Dn.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var e;if(this.bookmarksAreUsed){let o=!((e=this.currentSession)===null||e===void 0)&&e.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;Dn.actions.bookmarks(o)}}},Up=new Hi});var ji,Fp=f(()=>{"use strict";We();ji=class{addCommand(e,o=!1){k.commands.add(e,o)}consumeCommand(e){return k.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new ji});var Wp,Gi,Hp=f(()=>{"use strict";Wp=b(N()),Gi=class{highlightHtml(e,o,n){(0,Wp.highlightHtml)(e,o,n)}};window.FluidTopicsHighlightHtmlService=new Gi});var zp,Vi,jp=f(()=>{"use strict";zp=b(N());We();Vi=class{isDate(e){var o,n,a,i;return(i=(a=((n=(o=k.getState().metadataConfiguration)===null||o===void 0?void 0:o.descriptors)!==null&&n!==void 0?n:[]).find(l=>l.key===e))===null||a===void 0?void 0:a.date)!==null&&i!==void 0?i:!1}format(e,o){var n,a,i;return zp.DateFormatter.format(e,(n=o?.locale)!==null&&n!==void 0?n:k.getState().uiLocale,(a=o?.longFormat)!==null&&a!==void 0?a:!1,(i=o?.withTime)!==null&&i!==void 0?i:!1)}};window.FluidTopicsDateService=new Vi});var Gp,vt,Ki=f(()=>{"use strict";Gp=b(N());We();vt=class{static get(e,o){var n,a,i,s;let l=k.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 Gp.SearchPlaceConverter(l.baseUrl,(s=(i=window.FluidTopicsClientConfiguration)===null||i===void 0?void 0:i.predefinedSorts)!==null&&s!==void 0?s:{},e??20,l.searchInAllLanguagesAllowed,o??`${u}-${p}`)}}});var Mn,Vp=f(()=>{"use strict";li();Mn=class extends Nr{async sendDocumentStartDisplayEvent(e){return(await this.awaitApi).sendEvents([e]).catch(o=>{console.info("Failed to send document.start_display event"),console.debug(o)})}async sendTopicStartDisplayEvent(e){return(await this.awaitApi).sendEvents([e]).catch(o=>{console.info("Failed to send topic.start_display event"),console.debug(o)})}async sendKhubSearchEvent(e){return(await this.awaitApi).sendEvents([e]).catch(o=>{console.info("Failed to send khub.search event"),console.debug(o)})}async sendDocumentSearchEvent(e){return(await this.awaitApi).sendEvents([e]).catch(o=>{console.info("Failed to send document.search event"),console.debug(o)})}async sendSearchPageSelectEvent(e){return(await this.awaitApi).sendEvents([e]).catch(o=>{console.info("Failed to send search_page.select event"),console.debug(o)})}async sendSearchResultOpenContextMenuEvent(e){return(await this.awaitApi).sendEvents([e]).catch(o=>{console.info("Failed to send search_result.open_context_menu event"),console.debug(o)})}}});var Zi,Kp=f(()=>{"use strict";Ki();Zi=class{urlToSearchRequest(e){return vt.get().parse(e)}searchRequestToUrl(e){return vt.get().serialize(e)}};window.FluidTopicsUrlService=new Zi});var cr,Zp=f(()=>{"use strict";cr=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{currentItem:e}})}};cr.eventName="change"});var qi,qp,Yp=f(()=>{"use strict";qi=class{itemName(e){return`fluid-topics-history-item-${e}`}get(e){let o=sessionStorage.getItem(this.itemName(e));return o?JSON.parse(o):void 0}set(e,o){sessionStorage.setItem(this.itemName(e),JSON.stringify(o))}},qp=new qi});var Ft,$n,Qp=f(()=>{"use strict";Ft=b(N());Zp();Yp();$n=class t extends Ft.WithEventBus{static build(){return new t(window.history,qp,()=>window.location,!1)}constructor(e,o,n,a){var i,s;super(),this.history=e,this.historyStorage=o,this.windowLocation=n,this.states=[],this.realPushState=e.pushState,this.realReplaceState=e.replaceState,this.initialIndex=(s=(i=e.state)===null||i===void 0?void 0:i.index)!==null&&s!==void 0?s:e.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(a)}setCurrentState(e,o=!1){let n=o&&this.currentIndex===e.index-1;this.currentState={...this.buildCurrentState(),...e},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,Ft.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,window.location.href]),setTimeout(()=>this.dispatchEvent(new cr(this.currentItem())),0)}installProxies(){let e=o=>(n,a,[i,s,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,s,l]),this.setCurrentState(p,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:e(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:e(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",e=>this.setCurrentState(e.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(e){for(let o=this.history.length-1;o>=0;o--)e?this.states[o]=this.historyStorage.get(o):setTimeout(()=>this.states[o]=this.historyStorage.get(o),this.history.length-o)}updateCurrentState(e,o=!1){var n,a,i;let s={...this.buildCurrentState(),...e,index:this.currentIndex,title:(n=e?.title)!==null&&n!==void 0?n:this.currentState.title},l=o?(a=e?.majorState)!==null&&a!==void 0?a:this.currentState.majorState:(i=this.currentState.majorState)!==null&&i!==void 0?i:e?.majorState;l!=null&&(s.majorState=l),this.setCurrentState(s)}addHistoryChangeListener(e){this.addEventListener(cr.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(cr.eventName,e)}currentItem(){return(0,Ft.deepCopy)(this.currentState)}back(){let e=this.previousMajorPosition();e>=0?this.history.go(e-this.currentIndex):this.currentIndex!==this.initialIndex?this.history.go(this.initialIndex-this.currentIndex):this.history.back()}backwardItem(){return(0,Ft.deepCopy)(this.states[this.previousMajorPosition()])}previousMajorPosition(){let e=this.currentIndex;for(;e>0&&!this.isMajorState(e);)e--;return this.previousExistingPosition(e)}forward(){let e=this.nextMajorPosition();e<this.states.length?this.history.go(e-this.currentIndex):this.history.forward()}forwardItem(){return(0,Ft.deepCopy)(this.states[this.nextMajorPosition()])}nextMajorPosition(){let e=this.currentIndex;do e++;while(e<this.states.length&&!this.isMajorState(e));do e++;while(e<this.states.length&&!this.isMajorState(e));return this.previousExistingPosition(e)}previousExistingPosition(e){let o=e;do o--;while(o>0&&!this.hasState(o));return o}buildCurrentState(){var e,o;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(o=(e=this.history.state)===null||e===void 0?void 0:e.title)!==null&&o!==void 0?o:document.title}}hasState(e){return this.states[e]!=null}isMajorState(e){var o,n;return this.hasState(e)&&((n=(o=this.states[e])===null||o===void 0?void 0:o.majorState)!==null&&n!==void 0?n:!0)}}});var Xp=f(()=>{"use strict";Qp();window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=$n.build(),window.FluidTopicsHistoryService={currentItem:()=>window.FluidTopicsInternalHistoryService.currentItem(),back:()=>window.FluidTopicsInternalHistoryService.back(),forward:()=>window.FluidTopicsInternalHistoryService.forward(),backwardItem:()=>window.FluidTopicsInternalHistoryService.backwardItem(),forwardItem:()=>window.FluidTopicsInternalHistoryService.forwardItem(),addHistoryChangeListener:t=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(t),removeHistoryChangeListener:t=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(t)})});var Jp=f(()=>{"use strict";Wi();un();Fp();ui();go();Hp();Fi();jp();Ki();Vp();Kp();Xp()});var ef=f(()=>{"use strict"});var tf,St=f(()=>{"use strict";tf=b(N());pi();pp();We();zi();Jp();si();ef();pi();(0,tf.customElement)("ft-app-context")(ie)});function rf(t){return t.match(/^[\w-]+\.[\w-]+$/)}var dm,of=f(()=>{"use strict";Ao();dm=b(N())});function je(t){var e,o;class n extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map,this[o]=new Map}getI18nService(i){return i??this.useCustomMessageContexts?fn:Tr}i18n(i){var s;this.hasI18nContext(i.context)||this.addI18nContext(i.context,void 0,i.custom);let l=(s=i.args)!==null&&s!==void 0?s:i.argsProvider?i.argsProvider(this):[];return this.getI18nService(i.custom).resolveMessage(i.context,i.key,...l)}customI18n(i,s){if(rf(i)){let[l,u]=i.split(".");return this.i18n({custom:!0,context:l,key:u,...s})||i}return i}firstUpdated(i){super.firstUpdated(i),this.updateI18nAttributes(()=>!0),this.updateI18nProperties(()=>!0)}update(i){super.update(i),this.updateI18nAttributes((s,l,u)=>i.has(l)||typeof s.argsProvider=="function"),this.updateI18nProperties(s=>typeof s.argsProvider=="function")}onI18nUpdate(i){this.updateI18nAttributes((s,l,u)=>{var p;return((p=u?.context)===null||p===void 0?void 0:p.toLowerCase())===i}),this.updateI18nProperties(s=>s.context.toLowerCase()===i),this.requestUpdate()}updateI18nAttributes(i){var s,l;let u=this,p=(g,m,x)=>x?.context&&x.key&&i(g,m,x)?{...x,message:this.i18n({context:x.context,key:x.key,...g})}:x;(s=this[nf])===null||s===void 0||s.forEach((g,m)=>u[m]=p(g,m,u[m])),(l=this[af])===null||l===void 0||l.forEach((g,m)=>{var x;return u[m]=(x=u[m])===null||x===void 0?void 0:x.map(C=>p(g,m,C))})}updateI18nProperties(i){var s;(s=this[lf])===null||s===void 0||s.forEach((l,u)=>{i(l,u)&&(this[u]=this.i18n(l))})}addI18nMessages(i,s,l){console.warn('Deprecated usage of method "addI18nMessages", use "addI18nContext" instead.'),this.addI18nContext(i,s,l)}addI18nContext(i,s,l){let u=(typeof i=="string"?i:i.name).toLowerCase();l=typeof i=="string"?l:i.custom,this[Un].set(u,{isCustomContext:l}),this[Ro].has(u)||this[Ro].set(u,this.getI18nService(l).subscribe(u,()=>this.onI18nUpdate(u))),this.getI18nService(l).prepareContext(u,s)}hasI18nContext(i){return this[Un].has(i.toLowerCase())}connectedCallback(){super.connectedCallback(),this[Un].forEach((i,s)=>this.addI18nContext(s,void 0,i.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[Ro].forEach(i=>i()),this[Ro].clear()}}return e=Un,o=Ro,um([(0,cf.property)({type:Boolean})],n.prototype,"useCustomMessageContexts",void 0),n}var Wn,cf,um,nf,af,lf,Un,Ro,sf,Fn,Ao=f(()=>{"use strict";Wn=b(N());St();cf=b(Q());of();um=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,o,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(i=(a<3?s(i):a>3?s(e,o,i):s(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},nf=Symbol("i18nAttributes"),af=Symbol("i18nListAttributes"),lf=Symbol("i18nProperties"),Un=Symbol("i18nContexts"),Ro=Symbol("i18nUnsubs");sf=class extends je(Wn.FtLitElement){},Fn=class extends je(Wn.FtLitElementRedux){}});var Hn,zn,jn,No,Ye,Yi=f(()=>{"use strict";Hn=b(B()),zn=b(Q()),jn=b(N());ii();Ao();St();No=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,o,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(i=(a<3?s(i):a>3?s(e,o,i):s(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},Ye=class extends Fn{constructor(){super(),this.editorMode=!1,this.addStore(k)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":Hn.nothing:Hn.html`
1162
+ `}update(e){var o,n,a,i,s;super.update(e),e.has("baseUrl")&&(k.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),e.has("apiIntegrationIdentifier")&&k.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("uiLocale")&&k.actions.uiLocale(this.uiLocale),e.has("metadataConfiguration")&&k.actions.metadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&k.actions.noCustom(this.noCustom),e.has("editorMode")&&k.actions.editorMode(this.editorMode),e.has("noCustomComponent")&&k.actions.noCustomComponent(this.noCustomComponent),e.has("session")&&k.actions.session(this.session),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(l=>Tr.addContext(l)),e.has("openExternalDocumentInNewTab")&&k.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("navigatorOnline")&&k.actions.navigatorOnline(this.navigatorOnline),e.has("forcedOffline")&&k.actions.forcedOffline(this.forcedOffline),e.has("localesConfiguration")&&(k.actions.defaultLocales((o=this.localesConfiguration)===null||o===void 0?void 0:o.defaultLocales),k.actions.availableUiLocales((a=(n=this.localesConfiguration)===null||n===void 0?void 0:n.availableUiLocales)!==null&&a!==void 0?a:[]),k.actions.searchInAllLanguagesAllowed((s=(i=this.localesConfiguration)===null||i===void 0?void 0:i.allLanguagesAllowed)!==null&&s!==void 0?s:!1)),setTimeout(()=>this.updateIfNeeded())}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.session==null&&this.updateSession(),this.metadataConfiguration==null&&this.updateMetadataConfiguration()),this.localesConfiguration==null&&this.updateLocalesConfiguration())}async updateSession(){this.session=await this.cache.get("session",async()=>{let e=await this.apiProvider().getCurrentSession();return e.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.session=void 0},e.idleTimeoutInMillis),e})}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration())}async updateLocalesConfiguration(){this.localesConfiguration=await this.cache.get("localesConfiguration",()=>this.apiProvider().getLocalesConfiguration())}};ie.elementDefinitions={};ie.styles=Xd;xe([(0,Te.property)()],ie.prototype,"baseUrl",void 0);xe([(0,Te.property)()],ie.prototype,"apiIntegrationIdentifier",void 0);xe([(0,Te.property)()],ie.prototype,"uiLocale",void 0);xe([(0,Ze.jsonProperty)(null)],ie.prototype,"availableUiLocales",void 0);xe([(0,Ze.jsonProperty)(null)],ie.prototype,"metadataConfiguration",void 0);xe([(0,Te.property)({type:Boolean})],ie.prototype,"editorMode",void 0);xe([(0,Te.property)({type:Boolean})],ie.prototype,"noCustom",void 0);xe([(0,Te.property)({type:Boolean})],ie.prototype,"openExternalDocumentInNewTab",void 0);xe([(0,Te.property)({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],ie.prototype,"noCustomComponent",void 0);xe([(0,Te.property)({type:Boolean})],ie.prototype,"withManualResources",void 0);xe([(0,Te.property)({type:Boolean})],ie.prototype,"navigatorOnline",void 0);xe([(0,Te.property)({type:Boolean})],ie.prototype,"forcedOffline",void 0);xe([(0,Te.property)({type:Object})],ie.prototype,"apiProvider",void 0);xe([(0,Ze.jsonProperty)([])],ie.prototype,"messageContexts",void 0);xe([(0,Ze.jsonProperty)(void 0)],ie.prototype,"session",void 0);xe([(0,Te.state)()],ie.prototype,"localesConfiguration",void 0)});function vy(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(t.constructor!==e.constructor)return!1;var o,n,a;if(Array.isArray(t)){if(o=t.length,o!=e.length)return!1;for(n=o;n--!==0;)if(!hn(t[n],e[n]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(n of t.entries())if(!e.has(n[0]))return!1;for(n of t.entries())if(!hn(n[1],e.get(n[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(n of t.entries())if(!e.has(n[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();let i=s=>Object.keys(s).filter(l=>s[l]!=null);if(a=i(t),o=a.length,o!==i(e).length)return!1;for(n=o;n--!==0;)if(!Object.prototype.hasOwnProperty.call(e,a[n]))return!1;for(n=o;n--!==0;){let s=a[n];if(!hn(t[s],e[s]))return!1}return!0}return t!==t&&e!==e||t==null&&e==null}function hn(t,e){try{return vy(t,e)}catch{return!1}}function yn(t,e){return!hn(t,e)}var mn=f(()=>{"use strict"});var Sy,tu=f(()=>{"use strict";mn();Sy=b(Q(),1)});var gn,fi=f(()=>{"use strict";gn=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 ou(t,e){let o=()=>JSON.parse(JSON.stringify(t));return(0,ru.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:yn,...e??{}})}var ru,nu=f(()=>{"use strict";ru=b(Q(),1);mn()});var bn,au=f(()=>{"use strict";bn=class{constructor(e=0){this.timeout=e,this.callbacks=[]}run(e,o){return this.callbacks=[e],this.debounce(o)}queue(e,o){return this.callbacks.push(e),this.debounce(o)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(e){return this.promise==null&&(this.promise=new Promise((o,n)=>{this.resolvePromise=o,this.rejectPromise=n})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),e??this.timeout),this.promise}async runCallbacks(){var e,o;let n=[...this.callbacks];this.callbacks=[];let a=(e=this.rejectPromise)!==null&&e!==void 0?e:()=>null,i=(o=this.resolvePromise)!==null&&o!==void 0?o:()=>null;this.clearPromise();for(let s of n)try{await s()}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 xn,Cy,LC,iu,su=f(()=>{xn=globalThis,Cy=xn.ShadowRoot&&(xn.ShadyCSS===void 0||xn.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,LC=Symbol(),iu=(t,e)=>{if(Cy)t.adoptedStyleSheets=e.map(o=>o instanceof CSSStyleSheet?o:o.styleSheet);else for(let o of e){let n=document.createElement("style"),a=xn.litNonce;a!==void 0&&n.setAttribute("nonce",a),n.textContent=o.cssText,t.appendChild(n)}}});var cu,vn,lu=f(()=>{"use strict";cu=b(B(),1);su();vn=class extends cu.LitElement{createRenderRoot(){let e=this.constructor;e.elementDefinitions&&!e.registry&&(e.registry=new CustomElementRegistry,Object.entries(e.elementDefinitions).forEach(([a,i])=>e.registry.define(a,i)));let o={...e.shadowRootOptions,customElements:e.registry},n=this.renderOptions.creationScope=this.attachShadow(o);return iu(n,e.elementStyles),n}}});function du(t,e,...o){var n;let a=t.querySelector(e);for(let i of o)a=(n=a?.shadowRoot)===null||n===void 0?void 0:n.querySelector(i);return a}var uu=f(()=>{"use strict"});var Ir,bo,yu,pu,fu,mu,hu,bt,gu=f(()=>{"use strict";Ir=b(Q(),1);nu();au();lu();uu();bo=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,o,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(i=(a<3?s(i):a>3?s(e,o,i):s(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},pu=Symbol("constructorPrototype"),fu=Symbol("constructorName"),mu=Symbol("exportpartsDebouncer"),hu=Symbol("dynamicDependenciesLoaded"),bt=class extends vn{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[yu]=new bn(5),this[fu]=this.constructor.name,this[pu]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[fu]&&Object.setPrototypeOf(this,this[pu])}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 e=this.constructor;e[hu]||(e[hu]=!0,this.importDynamicDependencies())}importDynamicDependencies(){}updated(e){super.updated(e),this.updateComplete.then(()=>{this.contentAvailableCallback(e),this.focusElementToFocus(e),this.applyCustomStylesheet(e),this.scheduleExportpartsUpdate()})}contentAvailableCallback(e){}focusElementToFocus(e){if(e.has("elementToFocus")&&this.elementToFocus!=null){let{element:o,selector:n,shadowPath:a}=this.elementToFocus;if(n!=null){let i=[...a??[],n];o=du(this.shadowRoot,...i)}o?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||o?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(e){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(e.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 e,o,n;(!((e=this.exportpartsPrefix)===null||e===void 0)&&e.trim()||(n=(o=this.exportpartsPrefixes)===null||o===void 0?void 0:o.length)!==null&&n!==void 0&&n)&&this[mu].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(e){var o,n,a,i,s,l;let u=x=>x!=null&&x.trim().length>0,p=e.filter(u).map(x=>x.trim());if(p.length===0){this.removeAttribute("exportparts");return}let g=new Set;for(let x of(n=(o=this.shadowRoot)===null||o===void 0?void 0:o.querySelectorAll("[part],[exportparts]"))!==null&&n!==void 0?n:[]){let C=(i=(a=x.getAttribute("part"))===null||a===void 0?void 0:a.split(" "))!==null&&i!==void 0?i:[],S=(l=(s=x.getAttribute("exportparts"))===null||s===void 0?void 0:s.split(",").map(O=>O.split(":")[1]))!==null&&l!==void 0?l:[];new Array(...C,...S).filter(u).map(O=>O.trim()).forEach(O=>g.add(O))}if(g.size===0){this.removeAttribute("exportparts");return}let m=[...g.values()].flatMap(x=>p.map(C=>`${x}:${C}--${x}`));this.setAttribute("exportparts",[...this.part,...m].join(", "))}};yu=mu;bo([(0,Ir.property)()],bt.prototype,"exportpartsPrefix",void 0);bo([ou([])],bt.prototype,"exportpartsPrefixes",void 0);bo([(0,Ir.property)()],bt.prototype,"customStylesheet",void 0);bo([(0,Ir.property)()],bt.prototype,"elementToFocus",void 0);bo([(0,Ir.state)()],bt.prototype,"useAdoptedStyleSheets",void 0)});function xo(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var Sn=f(()=>{"use strict"});var bu,xu,vu,vo,kt,nr,So,Su=f(()=>{"use strict";gu();Sn();vo=Symbol("internalReduxEventsUnsubscribers"),kt=Symbol("internalStoresUnsubscribers"),nr=Symbol("internalStores"),So=class extends bt{constructor(){super(...arguments),this[bu]=new Map,this[xu]=new Map,this[vu]=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[nr].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[nr].values()][0]}getStore(e){return e==null?this.getUnnamedStore():this[nr].get(e)}addStore(e,o){var n;o=(n=o??(xo(e)?e.name:void 0))!==null&&n!==void 0?n:"default-store",this.unsubscribeFromStore(o),this[nr].set(o,e),this.subscribeToStore(o,e),this.updateFromStores()}removeStore(e){let o=typeof e=="string"?e:e.name;this.unsubscribeFromStore(o),this[nr].delete(o)}setupStores(){this.unsubscribeFromStores(),this[nr].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[kt].has(e.store):this[kt].size>0)&&(this[o]=e.selector(a.getState(),this))}})}subscribeToStore(e,o){var n;this[kt].set(e,o.subscribe(()=>this.updateFromStores())),this[vo].set(e,[]),xo(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[vo].get(e).push(()=>o.removeEventListener(a.eventName,s))}})),this.onStoreAvailable(e)}unsubscribeFromStores(){this[kt].forEach((e,o)=>this.unsubscribeFromStore(o))}unsubscribeFromStore(e){var o;this[kt].has(e)&&this[kt].get(e)(),this[kt].delete(e),(o=this[vo].get(e))===null||o===void 0||o.forEach(n=>n()),this[vo].delete(e)}onStoreAvailable(e){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}};bu=kt,xu=nr,vu=vo;So.reduxProperties=new Map;So.reduxReactiveProperties=new Set;So.reduxEventListeners=new Map});function He(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 xt(t){return!!t&&!!t[ee]}function qe(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)===Iy}(t)||Array.isArray(t)||!!t[Nu]||!!(!((e=t.constructor)===null||e===void 0)&&e[Nu])||Ci(t)||Oi(t))}function ar(t,e,o){o===void 0&&(o=!1),Lr(t)===0?(o?Object.keys:Pr)(t).forEach(function(n){o&&typeof n=="symbol"||e(n,t[n],t)}):t.forEach(function(n,a){return e(a,n,t)})}function Lr(t){var e=t[ee];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:Ci(t)?2:Oi(t)?3:0}function _r(t,e){return Lr(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function Oy(t,e){return Lr(t)===2?t.get(e):t[e]}function Tu(t,e,o){var n=Lr(t);n===2?t.set(e,o):n===3?t.add(o):t[e]=o}function Iu(t,e){return t===e?t!==0||1/t==1/e:t!=t&&e!=e}function Ci(t){return Ny&&t instanceof Map}function Oi(t){return Ty&&t instanceof Set}function Dt(t){return t.o||t.t}function Ei(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=Lu(t);delete e[ee];for(var o=Pr(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 wi(t,e){return e===void 0&&(e=!1),Ai(t)||xt(t)||!qe(t)||(Lr(t)>1&&(t.set=t.add=t.clear=t.delete=Ey),Object.freeze(t),e&&ar(t,function(o,n){return wi(n,!0)},!0)),t}function Ey(){He(2)}function Ai(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function nt(t){var e=Si[t];return e||He(18,t),e}function wy(t,e){Si[t]||(Si[t]=e)}function bi(){return Oo}function hi(t,e){e&&(nt("Patches"),t.u=[],t.s=[],t.v=e)}function Cn(t){xi(t),t.p.forEach(Ay),t.p=null}function xi(t){t===Oo&&(Oo=t.l)}function Cu(t){return Oo={p:[],l:Oo,h:t,m:!0,_:0}}function Ay(t){var e=t[ee];e.i===0||e.i===1?e.j():e.g=!0}function yi(t,e){e._=e.p.length;var o=e.p[0],n=t!==void 0&&t!==o;return e.h.O||nt("ES5").S(e,t,n),n?(o[ee].P&&(Cn(e),He(4)),qe(t)&&(t=On(e,t),e.l||En(e,t)),e.u&&nt("Patches").M(o[ee].t,t,e.u,e.s)):t=On(e,o,[]),Cn(e),e.u&&e.v(e.u,e.s),t!==Pu?t:void 0}function On(t,e,o){if(Ai(e))return e;var n=e[ee];if(!n)return ar(e,function(l,u){return Ou(t,n,e,l,u,o)},!0),e;if(n.A!==t)return e;if(!n.P)return En(t,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var a=n.i===4||n.i===5?n.o=Ei(n.k):n.o,i=a,s=!1;n.i===3&&(i=new Set(a),a.clear(),s=!0),ar(i,function(l,u){return Ou(t,n,a,l,u,o,s)}),En(t,a,!1),o&&t.u&&nt("Patches").N(n,o,t.u,t.s)}return n.o}function Ou(t,e,o,n,a,i,s){if(xt(a)){var l=On(t,a,i&&e&&e.i!==3&&!_r(e.R,n)?i.concat(n):void 0);if(Tu(o,n,l),!xt(l))return;t.m=!1}else s&&o.add(a);if(qe(a)&&!Ai(a)){if(!t.h.D&&t._<1)return;On(t,a),e&&e.A.l||En(t,a)}}function En(t,e,o){o===void 0&&(o=!1),!t.l&&t.h.D&&t.m&&wi(e,o)}function mi(t,e){var o=t[ee];return(o?Dt(o):t)[e]}function Eu(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 Bt(t){t.P||(t.P=!0,t.l&&Bt(t.l))}function gi(t){t.o||(t.o=Ei(t.t))}function vi(t,e,o){var n=Ci(e)?nt("MapSet").F(e,o):Oi(e)?nt("MapSet").T(e,o):t.O?function(a,i){var s=Array.isArray(a),l={i:s?1:0,A:i?i.A:bi(),P:!1,I:!1,R:{},l:i,t:a,k:null,o:null,j:null,C:!1},u=l,p=Eo;s&&(u=[l],p=Co);var g=Proxy.revocable(u,p),m=g.revoke,x=g.proxy;return l.k=x,l.j=m,x}(e,o):nt("ES5").J(e,o);return(o?o.A:bi()).p.push(n),n}function Ry(t){return xt(t)||He(22,t),function e(o){if(!qe(o))return o;var n,a=o[ee],i=Lr(o);if(a){if(!a.P&&(a.i<4||!nt("ES5").K(a)))return a.t;a.I=!0,n=wu(o,i),a.I=!1}else n=wu(o,i);return ar(n,function(s,l){a&&Oy(a.t,s)===l||Tu(n,s,e(l))}),i===3?new Set(n):n}(t)}function wu(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return Ei(t)}function _u(){function t(s,l){var u=i[s];return u?u.enumerable=l:i[s]=u={configurable:!0,enumerable:l,get:function(){var p=this[ee];return Eo.get(p,s)},set:function(p){var g=this[ee];Eo.set(g,s,p)}},u}function e(s){for(var l=s.length-1;l>=0;l--){var u=s[l][ee];if(!u.P)switch(u.i){case 5:n(u)&&Bt(u);break;case 4:o(u)&&Bt(u)}}}function o(s){for(var l=s.t,u=s.k,p=Pr(u),g=p.length-1;g>=0;g--){var m=p[g];if(m!==ee){var x=l[m];if(x===void 0&&!_r(l,m))return!0;var C=u[m],S=C&&C[ee];if(S?S.t!==x:!Iu(C,x))return!0}}var O=!!l[ee];return p.length!==Pr(l).length+(O?0:1)}function n(s){var l=s.k;if(l.length!==s.t.length)return!0;var u=Object.getOwnPropertyDescriptor(l,l.length-1);if(u&&!u.get)return!0;for(var p=0;p<l.length;p++)if(!l.hasOwnProperty(p))return!0;return!1}function a(s){s.g&&He(3,JSON.stringify(Dt(s)))}var i={};wy("ES5",{J:function(s,l){var u=Array.isArray(s),p=function(m,x){if(m){for(var C=Array(x.length),S=0;S<x.length;S++)Object.defineProperty(C,""+S,t(S,!0));return C}var O=Lu(x);delete O[ee];for(var _=Pr(O),T=0;T<_.length;T++){var I=_[T];O[I]=t(I,m||!!O[I].enumerable)}return Object.create(Object.getPrototypeOf(x),O)}(u,s),g={i:u?5:4,A:l?l.A:bi(),P:!1,I:!1,R:{},l,t:s,k:p,o:null,g:!1,C:!1};return Object.defineProperty(p,ee,{value:g,writable:!0}),p},S:function(s,l,u){u?xt(l)&&l[ee].A===s&&e(s.p):(s.u&&function p(g){if(g&&typeof g=="object"){var m=g[ee];if(m){var x=m.t,C=m.k,S=m.R,O=m.i;if(O===4)ar(C,function(U){U!==ee&&(x[U]!==void 0||_r(x,U)?S[U]||p(C[U]):(S[U]=!0,Bt(m)))}),ar(x,function(U){C[U]!==void 0||_r(C,U)||(S[U]=!1,Bt(m))});else if(O===5){if(n(m)&&(Bt(m),S.length=!0),C.length<x.length)for(var _=C.length;_<x.length;_++)S[_]=!1;else for(var T=x.length;T<C.length;T++)S[T]=!0;for(var I=Math.min(C.length,x.length),M=0;M<I;M++)C.hasOwnProperty(M)||(S[M]=!0),S[M]===void 0&&p(C[M])}}}}(s.p[0]),e(s.p))},K:function(s){return s.i===4?o(s):n(s)}})}var Au,Oo,Ri,Ny,Ty,Ru,Pu,Nu,ee,Iy,Pr,Lu,Si,Eo,Co,_y,Be,Py,KC,ZC,qC,YC,QC,XC,wn,An=f(()=>{Ri=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",Ny=typeof Map<"u",Ty=typeof Set<"u",Ru=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Pu=Ri?Symbol.for("immer-nothing"):((Au={})["immer-nothing"]=!0,Au),Nu=Ri?Symbol.for("immer-draftable"):"__$immer_draftable",ee=Ri?Symbol.for("immer-state"):"__$immer_state",Iy=""+Object.prototype.constructor,Pr=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,Lu=Object.getOwnPropertyDescriptors||function(t){var e={};return Pr(t).forEach(function(o){e[o]=Object.getOwnPropertyDescriptor(t,o)}),e},Si={},Eo={get:function(t,e){if(e===ee)return t;var o=Dt(t);if(!_r(o,e))return function(a,i,s){var l,u=Eu(i,s);return u?"value"in u?u.value:(l=u.get)===null||l===void 0?void 0:l.call(a.k):void 0}(t,o,e);var n=o[e];return t.I||!qe(n)?n:n===mi(t.t,e)?(gi(t),t.o[e]=vi(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=Eu(Dt(t),e);if(n?.set)return n.set.call(t.k,o),!0;if(!t.P){var a=mi(Dt(t),e),i=a?.[ee];if(i&&i.t===o)return t.o[e]=o,t.R[e]=!1,!0;if(Iu(o,a)&&(o!==void 0||_r(t.t,e)))return!0;gi(t),Bt(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 mi(t.t,e)!==void 0||e in t.t?(t.R[e]=!1,gi(t),Bt(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(){He(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){He(12)}},Co={};ar(Eo,function(t,e){Co[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),Co.deleteProperty=function(t,e){return Co.set.call(this,t,e,void 0)},Co.set=function(t,e,o){return Eo.set.call(this,t[0],e,o,t[0])};_y=function(){function t(o){var n=this;this.O=Ru,this.D=!0,this.produce=function(a,i,s){if(typeof a=="function"&&typeof i!="function"){var l=i;i=a;var u=n;return function(O){var _=this;O===void 0&&(O=l);for(var T=arguments.length,I=Array(T>1?T-1:0),M=1;M<T;M++)I[M-1]=arguments[M];return u.produce(O,function(U){var W;return(W=i).call.apply(W,[_,U].concat(I))})}}var p;if(typeof i!="function"&&He(6),s!==void 0&&typeof s!="function"&&He(7),qe(a)){var g=Cu(n),m=vi(n,a,void 0),x=!0;try{p=i(m),x=!1}finally{x?Cn(g):xi(g)}return typeof Promise<"u"&&p instanceof Promise?p.then(function(O){return hi(g,s),yi(O,g)},function(O){throw Cn(g),O}):(hi(g,s),yi(p,g))}if(!a||typeof a!="object"){if((p=i(a))===void 0&&(p=a),p===Pu&&(p=void 0),n.D&&wi(p,!0),s){var C=[],S=[];nt("Patches").M(a,p,C,S),s(C,S)}return p}He(21,a)},this.produceWithPatches=function(a,i){if(typeof a=="function")return function(p){for(var g=arguments.length,m=Array(g>1?g-1:0),x=1;x<g;x++)m[x-1]=arguments[x];return n.produceWithPatches(p,function(C){return a.apply(void 0,[C].concat(m))})};var s,l,u=n.produce(a,i,function(p,g){s=p,l=g});return typeof Promise<"u"&&u instanceof Promise?u.then(function(p){return[p,s,l]}):[u,s,l]},typeof o?.useProxies=="boolean"&&this.setUseProxies(o.useProxies),typeof o?.autoFreeze=="boolean"&&this.setAutoFreeze(o.autoFreeze)}var e=t.prototype;return e.createDraft=function(o){qe(o)||He(8),xt(o)&&(o=Ry(o));var n=Cu(this),a=vi(this,o,void 0);return a[ee].C=!0,xi(n),a},e.finishDraft=function(o,n){var a=o&&o[ee],i=a.A;return hi(i,n),yi(void 0,i)},e.setAutoFreeze=function(o){this.D=o},e.setUseProxies=function(o){o&&!Ru&&He(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=nt("Patches").$;return xt(o)?s(o,n):this.produce(o,function(l){return s(l,n)})},t}(),Be=new _y,Py=Be.produce,KC=Be.produceWithPatches.bind(Be),ZC=Be.setAutoFreeze.bind(Be),qC=Be.setUseProxies.bind(Be),YC=Be.applyPatches.bind(Be),QC=Be.createDraft.bind(Be),XC=Be.finishDraft.bind(Be),wn=Py});function ir(t){"@babel/helpers - typeof";return ir=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},ir(t)}var Ni=f(()=>{});function ku(t,e){if(ir(t)!="object"||!t)return t;var o=t[Symbol.toPrimitive];if(o!==void 0){var n=o.call(t,e||"default");if(ir(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Du=f(()=>{Ni()});function Bu(t){var e=ku(t,"string");return ir(e)=="symbol"?e:e+""}var Mu=f(()=>{Ni();Du()});function $u(t,e,o){return(e=Bu(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}var Uu=f(()=>{Mu()});function Fu(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 Ti(t){for(var e=1;e<arguments.length;e++){var o=arguments[e]!=null?arguments[e]:{};e%2?Fu(Object(o),!0).forEach(function(n){$u(t,n,o[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):Fu(Object(o)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(o,n))})}return t}var Wu=f(()=>{Uu()});function ve(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. "}function Ly(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 _i(t,e,o){var n;if(typeof e=="function"&&typeof o=="function"||typeof o=="function"&&typeof arguments[3]=="function")throw new Error(ve(0));if(typeof e=="function"&&typeof o>"u"&&(o=e,e=void 0),typeof o<"u"){if(typeof o!="function")throw new Error(ve(1));return o(_i)(t,e)}if(typeof t!="function")throw new Error(ve(2));var a=t,i=e,s=[],l=s,u=!1;function p(){l===s&&(l=s.slice())}function g(){if(u)throw new Error(ve(3));return i}function m(O){if(typeof O!="function")throw new Error(ve(4));if(u)throw new Error(ve(5));var _=!0;return p(),l.push(O),function(){if(_){if(u)throw new Error(ve(6));_=!1,p();var I=l.indexOf(O);l.splice(I,1),s=null}}}function x(O){if(!Ly(O))throw new Error(ve(7));if(typeof O.type>"u")throw new Error(ve(8));if(u)throw new Error(ve(9));try{u=!0,i=a(i,O)}finally{u=!1}for(var _=s=l,T=0;T<_.length;T++){var I=_[T];I()}return O}function C(O){if(typeof O!="function")throw new Error(ve(10));a=O,x({type:Rn.REPLACE})}function S(){var O,_=m;return O={subscribe:function(I){if(typeof I!="object"||I===null)throw new Error(ve(11));function M(){I.next&&I.next(g())}M();var U=_(M);return{unsubscribe:U}}},O[Hu]=function(){return this},O}return x({type:Rn.INIT}),n={dispatch:x,subscribe:m,getState:g,replaceReducer:C},n[Hu]=S,n}function ky(t){Object.keys(t).forEach(function(e){var o=t[e],n=o(void 0,{type:Rn.INIT});if(typeof n>"u")throw new Error(ve(12));if(typeof o(void 0,{type:Rn.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(ve(13))})}function zu(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{ky(o)}catch(u){l=u}return function(p,g){if(p===void 0&&(p={}),l)throw l;if(0)var m;for(var x=!1,C={},S=0;S<i.length;S++){var O=i[S],_=o[O],T=p[O],I=_(T,g);if(typeof I>"u"){var M=g&&g.type;throw new Error(ve(14))}C[O]=I,x=x||I!==T}return x=x||i.length!==Object.keys(p).length,x?C:p}}function kr(){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 ju(){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(ve(15))},s={getState:a.getState,dispatch:function(){return i.apply(void 0,arguments)}},l=e.map(function(u){return u(s)});return i=kr.apply(void 0,l)(a.dispatch),Ti(Ti({},a),{},{dispatch:i})}}}var Hu,Ii,Rn,Nn=f(()=>{Wu();Hu=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),Ii=function(){return Math.random().toString(36).substring(7).split("").join(".")},Rn={INIT:"@@redux/INIT"+Ii(),REPLACE:"@@redux/REPLACE"+Ii(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Ii()}}});function Gu(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 Vu,Pi,Ku=f(()=>{Vu=Gu();Vu.withExtraArgument=Gu;Pi=Vu});function zy(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}function Bi(t){return qe(t)?wn(t,function(){}):t}function Vy(t){return typeof t=="boolean"}function Ky(){return function(e){return Zy(e)}}function Zy(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 jy;if(o&&(Vy(o)?l.push(Pi):l.push(Pi.withExtraArgument(o.extraArgument))),0){if(a)var u;if(s)var p}return l}function Ju(t){var e=Ky(),o=t||{},n=o.reducer,a=n===void 0?void 0:n,i=o.middleware,s=i===void 0?e():i,l=o.devTools,u=l===void 0?!0:l,p=o.preloadedState,g=p===void 0?void 0:p,m=o.enhancers,x=m===void 0?void 0:m,C;if(typeof a=="function")C=a;else if(zy(a))C=zu(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 S=s;if(typeof S=="function"&&(S=S(e),!ki&&!Array.isArray(S)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!ki&&S.some(function(U){return typeof U!="function"}))throw new Error("each middleware provided to configureStore must be a function");var O=ju.apply(void 0,S),_=kr;u&&(_=Hy(Mt({trace:!ki},typeof u=="object"&&u)));var T=new Gy(O),I=T;Array.isArray(x)?I=Dr([O],x):typeof x=="function"&&(I=x(T));var M=_.apply(void 0,I);return _i(C,g,M)}function $t(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 Mt(Mt({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 ep(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 qy(t){return typeof t=="function"}function Yy(t,e,o,n){o===void 0&&(o=[]);var a=typeof e=="function"?ep(e):[e,o,n],i=a[0],s=a[1],l=a[2],u;if(qy(t))u=function(){return Bi(t())};else{var p=Bi(t);u=function(){return p}}function g(m,x){m===void 0&&(m=u());var C=Dr([i[x.type]],s.filter(function(S){var O=S.matcher;return O(x)}).map(function(S){var O=S.reducer;return O}));return C.filter(function(S){return!!S}).length===0&&(C=[l]),C.reduce(function(S,O){if(O)if(xt(S)){var _=S,T=O(_,x);return T===void 0?S:T}else{if(qe(S))return wn(S,function(I){return O(I,x)});var T=O(S,x);if(T===void 0){if(S===null)return S;throw Error("A case reducer on a non-draftable value must not return undefined")}return T}return S},m)}return g.getInitialState=u,g}function Qy(t,e){return t+"/"+e}function tp(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:Bi(t.initialState),n=t.reducers||{},a=Object.keys(n),i={},s={},l={};a.forEach(function(g){var m=n[g],x=Qy(e,g),C,S;"reducer"in m?(C=m.reducer,S=m.prepare):C=m,i[g]=C,s[x]=C,l[g]=S?$t(x,S):$t(x)});function u(){var g=typeof t.extraReducers=="function"?ep(t.extraReducers):[t.extraReducers],m=g[0],x=m===void 0?{}:m,C=g[1],S=C===void 0?[]:C,O=g[2],_=O===void 0?void 0:O,T=Mt(Mt({},x),s);return Yy(o,function(I){for(var M in T)I.addCase(M,T[M]);for(var U=0,W=S;U<W.length;U++){var we=W[U];I.addMatcher(we.matcher,we.reducer)}_&&I.addDefaultCase(_)})}var p;return{name:e,reducer:function(g,m){return p||(p=u()),p(g,m)},actions:l,caseReducers:i,getInitialState:function(){return p||(p=u()),p.getInitialState()}}}function rm(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function om(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var Xu,Dy,Dr,By,My,$y,Zu,Uy,Fy,qu,Mt,Li,Wy,Hy,mO,jy,Gy,ki,Xy,Jy,em,Di,Yu,tm,vO,rp,op,np,SO,CO,OO,EO,Mi,wO,AO,RO,Qu,NO,nm,TO,ap=f(()=>{An();Nn();Nn();Nn();Ku();An();An();Xu=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)}}(),Dy=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(p){return function(g){return u([p,g])}}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=e.call(t,o)}catch(g){p=[6,g],a=0}finally{n=i=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},Dr=function(t,e){for(var o=0,n=e.length,a=t.length;o<n;o++,a++)t[a]=e[o];return t},By=Object.defineProperty,My=Object.defineProperties,$y=Object.getOwnPropertyDescriptors,Zu=Object.getOwnPropertySymbols,Uy=Object.prototype.hasOwnProperty,Fy=Object.prototype.propertyIsEnumerable,qu=function(t,e,o){return e in t?By(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o},Mt=function(t,e){for(var o in e||(e={}))Uy.call(e,o)&&qu(t,o,e[o]);if(Zu)for(var n=0,a=Zu(e);n<a.length;n++){var o=a[n];Fy.call(e,o)&&qu(t,o,e[o])}return t},Li=function(t,e){return My(t,$y(e))},Wy=function(t,e,o){return new Promise(function(n,a){var i=function(u){try{l(o.next(u))}catch(p){a(p)}},s=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,s)};l((o=o.apply(t,e)).next())})},Hy=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?kr:kr.apply(null,arguments)},mO=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}};jy=function(t){Xu(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,Dr([void 0],o[0].concat(this)))):new(e.bind.apply(e,Dr([void 0],o.concat(this))))},e}(Array),Gy=function(t){Xu(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,Dr([void 0],o[0].concat(this)))):new(e.bind.apply(e,Dr([void 0],o.concat(this))))},e}(Array);ki=!0;Xy="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Jy=function(t){t===void 0&&(t=21);for(var e="",o=t;o--;)e+=Xy[Math.random()*64|0];return e},em=["name","message","stack","code"],Di=function(){function t(e,o){this.payload=e,this.meta=o}return t}(),Yu=function(){function t(e,o){this.payload=e,this.meta=o}return t}(),tm=function(t){if(typeof t=="object"&&t!==null){for(var e={},o=0,n=em;o<n.length;o++){var a=n[o];typeof t[a]=="string"&&(e[a]=t[a])}return e}return{message:String(t)}},vO=function(){function t(e,o,n){var a=$t(e+"/fulfilled",function(g,m,x,C){return{payload:g,meta:Li(Mt({},C||{}),{arg:x,requestId:m,requestStatus:"fulfilled"})}}),i=$t(e+"/pending",function(g,m,x){return{payload:void 0,meta:Li(Mt({},x||{}),{arg:m,requestId:g,requestStatus:"pending"})}}),s=$t(e+"/rejected",function(g,m,x,C,S){return{payload:C,error:(n&&n.serializeError||tm)(g||"Rejected"),meta:Li(Mt({},S||{}),{arg:x,requestId:m,rejectedWithValue:!!C,requestStatus:"rejected",aborted:g?.name==="AbortError",condition:g?.name==="ConditionError"})}}),l=!1,u=typeof AbortController<"u"?AbortController:function(){function g(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return g.prototype.abort=function(){},g}();function p(g){return function(m,x,C){var S=n?.idGenerator?n.idGenerator(g):Jy(),O=new u,_,T=!1;function I(U){_=U,O.abort()}var M=function(){return Wy(this,null,function(){var U,W,we,Qe,Ce,Xe,fe;return Dy(this,function(y){switch(y.label){case 0:return y.trys.push([0,4,,5]),Qe=(U=n?.condition)==null?void 0:U.call(n,g,{getState:x,extra:C}),om(Qe)?[4,Qe]:[3,2];case 1:Qe=y.sent(),y.label=2;case 2:if(Qe===!1||O.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return T=!0,Ce=new Promise(function(v,D){return O.signal.addEventListener("abort",function(){return D({name:"AbortError",message:_||"Aborted"})})}),m(i(S,g,(W=n?.getPendingMeta)==null?void 0:W.call(n,{requestId:S,arg:g},{getState:x,extra:C}))),[4,Promise.race([Ce,Promise.resolve(o(g,{dispatch:m,getState:x,extra:C,requestId:S,signal:O.signal,abort:I,rejectWithValue:function(v,D){return new Di(v,D)},fulfillWithValue:function(v,D){return new Yu(v,D)}})).then(function(v){if(v instanceof Di)throw v;return v instanceof Yu?a(v.payload,S,g,v.meta):a(v,S,g)})])];case 3:return we=y.sent(),[3,5];case 4:return Xe=y.sent(),we=Xe instanceof Di?s(null,S,g,Xe.payload,Xe.meta):s(Xe,S,g),[3,5];case 5:return fe=n&&!n.dispatchConditionRejection&&s.match(we)&&we.meta.condition,fe||m(we),[2,we]}})})}();return Object.assign(M,{abort:I,requestId:S,arg:g,unwrap:function(){return M.then(rm)}})}}return Object.assign(p,{pending:i,rejected:s,fulfilled:a,typePrefix:e})}return t.withTypes=function(){return t},t}();rp="listener",op="completed",np="cancelled",SO="task-"+np,CO="task-"+op,OO=rp+"-"+np,EO=rp+"-"+op,Mi="listenerMiddleware",wO=$t(Mi+"/add"),AO=$t(Mi+"/removeAll"),RO=$t(Mi+"/remove"),NO=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(t){return(Qu||(Qu=Promise.resolve())).then(t).catch(function(e){return setTimeout(function(){throw e},0)})},nm=function(t){return function(e){setTimeout(e,t)}},TO=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:nm(10);_u()});function am(t,e){return class extends t{constructor(){super(...arguments),this.eventBus=e??document.createElement("span")}addEventListener(o,n,a){this.eventBus.addEventListener(o,n,a)}dispatchEvent(o){return this.eventBus.dispatchEvent(o)}removeEventListener(o,n,a){this.eventBus.removeEventListener(o,n,a)}}}var Tn,ip=f(()=>{"use strict";Tn=class extends am(Object){}});var sp,cp=f(()=>{"use strict";ap();Sn();fi();ip();window.ftReduxStores||(window.ftReduxStores={});sp=class t extends Tn{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(xo(i))return i;if(a==null)return;let s=tp({...a,reducers:(o=a.reducers)!==null&&o!==void 0?o:{}}),l=Ju({reducer:(u,p)=>p.type==="CLEAR_FT_REDUX_STORE"?s.getInitialState():typeof p.type=="string"&&p.type.startsWith("DEFAULT_VALUE_SETTER__")?{...u,...p.overwrites}:s.reducer(u,p)});return window.ftReduxStores[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 gn;let a=i=>i!=null?JSON.parse(JSON.stringify(i)):i;this.actions=new Proxy(this.reduxSlice.actions,{get:(i,s,l)=>{let u=s,p=i[u];return p?(...g)=>{let m=p(...g.map(a));return this.reduxStore.dispatch(m),m}:g=>{this.setState({[u]:a(g)})}}}),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()}}});var lp=f(()=>{"use strict";mn()});var dp=f(()=>{"use strict";tu();fi();Su();cp();Sn();lp()});var up=f(()=>{"use strict"});var im,pp=f(()=>{"use strict";im=b(Q());dp();up();We()});var hp=Zt((Ut,fp)=>{var In=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof global<"u"&&global,_n=function(){function t(){this.fetch=!1,this.DOMException=In.DOMException}return t.prototype=In,new t}();(function(t){var e=function(o){var n=typeof t<"u"&&t||typeof self<"u"&&self||typeof global<"u"&&global||{},a={searchParams:"URLSearchParams"in n,iterable:"Symbol"in n&&"iterator"in Symbol,blob:"FileReader"in n&&"Blob"in n&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in n,arrayBuffer:"ArrayBuffer"in n};function i(y){return y&&DataView.prototype.isPrototypeOf(y)}if(a.arrayBuffer)var s=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],l=ArrayBuffer.isView||function(y){return y&&s.indexOf(Object.prototype.toString.call(y))>-1};function u(y){if(typeof y!="string"&&(y=String(y)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(y)||y==="")throw new TypeError('Invalid character in header field name: "'+y+'"');return y.toLowerCase()}function p(y){return typeof y!="string"&&(y=String(y)),y}function g(y){var v={next:function(){var D=y.shift();return{done:D===void 0,value:D}}};return a.iterable&&(v[Symbol.iterator]=function(){return v}),v}function m(y){this.map={},y instanceof m?y.forEach(function(v,D){this.append(D,v)},this):Array.isArray(y)?y.forEach(function(v){if(v.length!=2)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+v.length);this.append(v[0],v[1])},this):y&&Object.getOwnPropertyNames(y).forEach(function(v){this.append(v,y[v])},this)}m.prototype.append=function(y,v){y=u(y),v=p(v);var D=this.map[y];this.map[y]=D?D+", "+v:v},m.prototype.delete=function(y){delete this.map[u(y)]},m.prototype.get=function(y){return y=u(y),this.has(y)?this.map[y]:null},m.prototype.has=function(y){return this.map.hasOwnProperty(u(y))},m.prototype.set=function(y,v){this.map[u(y)]=p(v)},m.prototype.forEach=function(y,v){for(var D in this.map)this.map.hasOwnProperty(D)&&y.call(v,this.map[D],D,this)},m.prototype.keys=function(){var y=[];return this.forEach(function(v,D){y.push(D)}),g(y)},m.prototype.values=function(){var y=[];return this.forEach(function(v){y.push(v)}),g(y)},m.prototype.entries=function(){var y=[];return this.forEach(function(v,D){y.push([D,v])}),g(y)},a.iterable&&(m.prototype[Symbol.iterator]=m.prototype.entries);function x(y){if(!y._noBody){if(y.bodyUsed)return Promise.reject(new TypeError("Already read"));y.bodyUsed=!0}}function C(y){return new Promise(function(v,D){y.onload=function(){v(y.result)},y.onerror=function(){D(y.error)}})}function S(y){var v=new FileReader,D=C(v);return v.readAsArrayBuffer(y),D}function O(y){var v=new FileReader,D=C(v),q=/charset=([A-Za-z0-9_-]+)/.exec(y.type),te=q?q[1]:"utf-8";return v.readAsText(y,te),D}function _(y){for(var v=new Uint8Array(y),D=new Array(v.length),q=0;q<v.length;q++)D[q]=String.fromCharCode(v[q]);return D.join("")}function T(y){if(y.slice)return y.slice(0);var v=new Uint8Array(y.byteLength);return v.set(new Uint8Array(y)),v.buffer}function I(){return this.bodyUsed=!1,this._initBody=function(y){this.bodyUsed=this.bodyUsed,this._bodyInit=y,y?typeof y=="string"?this._bodyText=y:a.blob&&Blob.prototype.isPrototypeOf(y)?this._bodyBlob=y:a.formData&&FormData.prototype.isPrototypeOf(y)?this._bodyFormData=y:a.searchParams&&URLSearchParams.prototype.isPrototypeOf(y)?this._bodyText=y.toString():a.arrayBuffer&&a.blob&&i(y)?(this._bodyArrayBuffer=T(y.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):a.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(y)||l(y))?this._bodyArrayBuffer=T(y):this._bodyText=y=Object.prototype.toString.call(y):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||(typeof y=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):a.searchParams&&URLSearchParams.prototype.isPrototypeOf(y)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},a.blob&&(this.blob=function(){var y=x(this);if(y)return y;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))}),this.arrayBuffer=function(){if(this._bodyArrayBuffer){var y=x(this);return y||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}else{if(a.blob)return this.blob().then(S);throw new Error("could not read as ArrayBuffer")}},this.text=function(){var y=x(this);if(y)return y;if(this._bodyBlob)return O(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(_(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},a.formData&&(this.formData=function(){return this.text().then(we)}),this.json=function(){return this.text().then(JSON.parse)},this}var M=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function U(y){var v=y.toUpperCase();return M.indexOf(v)>-1?v:y}function W(y,v){if(!(this instanceof W))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');v=v||{};var D=v.body;if(y instanceof W){if(y.bodyUsed)throw new TypeError("Already read");this.url=y.url,this.credentials=y.credentials,v.headers||(this.headers=new m(y.headers)),this.method=y.method,this.mode=y.mode,this.signal=y.signal,!D&&y._bodyInit!=null&&(D=y._bodyInit,y.bodyUsed=!0)}else this.url=String(y);if(this.credentials=v.credentials||this.credentials||"same-origin",(v.headers||!this.headers)&&(this.headers=new m(v.headers)),this.method=U(v.method||this.method||"GET"),this.mode=v.mode||this.mode||null,this.signal=v.signal||this.signal||function(){if("AbortController"in n){var H=new AbortController;return H.signal}}(),this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&D)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(D),(this.method==="GET"||this.method==="HEAD")&&(v.cache==="no-store"||v.cache==="no-cache")){var q=/([?&])_=[^&]*/;if(q.test(this.url))this.url=this.url.replace(q,"$1_="+new Date().getTime());else{var te=/\?/;this.url+=(te.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}W.prototype.clone=function(){return new W(this,{body:this._bodyInit})};function we(y){var v=new FormData;return y.trim().split("&").forEach(function(D){if(D){var q=D.split("="),te=q.shift().replace(/\+/g," "),H=q.join("=").replace(/\+/g," ");v.append(decodeURIComponent(te),decodeURIComponent(H))}}),v}function Qe(y){var v=new m,D=y.replace(/\r?\n[\t ]+/g," ");return D.split("\r").map(function(q){return q.indexOf(`
1163
+ `)===0?q.substr(1,q.length):q}).forEach(function(q){var te=q.split(":"),H=te.shift().trim();if(H){var Bo=te.join(":").trim();try{v.append(H,Bo)}catch(la){console.warn("Response "+la.message)}}}),v}I.call(W.prototype);function Ce(y,v){if(!(this instanceof Ce))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(v||(v={}),this.type="default",this.status=v.status===void 0?200:v.status,this.status<200||this.status>599)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=v.statusText===void 0?"":""+v.statusText,this.headers=new m(v.headers),this.url=v.url||"",this._initBody(y)}I.call(Ce.prototype),Ce.prototype.clone=function(){return new Ce(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new m(this.headers),url:this.url})},Ce.error=function(){var y=new Ce(null,{status:200,statusText:""});return y.ok=!1,y.status=0,y.type="error",y};var Xe=[301,302,303,307,308];Ce.redirect=function(y,v){if(Xe.indexOf(v)===-1)throw new RangeError("Invalid status code");return new Ce(null,{status:v,headers:{location:y}})},o.DOMException=n.DOMException;try{new o.DOMException}catch{o.DOMException=function(v,D){this.message=v,this.name=D;var q=Error(v);this.stack=q.stack},o.DOMException.prototype=Object.create(Error.prototype),o.DOMException.prototype.constructor=o.DOMException}function fe(y,v){return new Promise(function(D,q){var te=new W(y,v);if(te.signal&&te.signal.aborted)return q(new o.DOMException("Aborted","AbortError"));var H=new XMLHttpRequest;function Bo(){H.abort()}H.onload=function(){var he={statusText:H.statusText,headers:Qe(H.getAllResponseHeaders()||"")};te.url.indexOf("file://")===0&&(H.status<200||H.status>599)?he.status=200:he.status=H.status,he.url="responseURL"in H?H.responseURL:he.headers.get("X-Request-URL");var Kt="response"in H?H.response:H.responseText;setTimeout(function(){D(new Ce(Kt,he))},0)},H.onerror=function(){setTimeout(function(){q(new TypeError("Network request failed"))},0)},H.ontimeout=function(){setTimeout(function(){q(new TypeError("Network request timed out"))},0)},H.onabort=function(){setTimeout(function(){q(new o.DOMException("Aborted","AbortError"))},0)};function la(he){try{return he===""&&n.location.href?n.location.href:he}catch{return he}}if(H.open(te.method,la(te.url),!0),te.credentials==="include"?H.withCredentials=!0:te.credentials==="omit"&&(H.withCredentials=!1),"responseType"in H&&(a.blob?H.responseType="blob":a.arrayBuffer&&(H.responseType="arraybuffer")),v&&typeof v.headers=="object"&&!(v.headers instanceof m||n.Headers&&v.headers instanceof n.Headers)){var Bs=[];Object.getOwnPropertyNames(v.headers).forEach(function(he){Bs.push(u(he)),H.setRequestHeader(he,p(v.headers[he]))}),te.headers.forEach(function(he,Kt){Bs.indexOf(Kt)===-1&&H.setRequestHeader(Kt,he)})}else te.headers.forEach(function(he,Kt){H.setRequestHeader(Kt,he)});te.signal&&(te.signal.addEventListener("abort",Bo),H.onreadystatechange=function(){H.readyState===4&&te.signal.removeEventListener("abort",Bo)}),H.send(typeof te._bodyInit>"u"?null:te._bodyInit)})}return fe.polyfill=!0,n.fetch||(n.fetch=fe,n.Headers=m,n.Request=W,n.Response=Ce),o.Headers=m,o.Request=W,o.Response=Ce,o.fetch=fe,o}({})})(_n);_n.fetch.ponyfill=!0;delete _n.fetch.polyfill;var Br=In.fetch?In:_n;Ut=Br.fetch;Ut.default=Br.fetch;Ut.fetch=Br.fetch;Ut.Headers=Br.Headers;Ut.Request=Br.Request;Ut.Response=Br.Response;fp.exports=Ut});var $i=f(()=>{});var yp,mp,Mr,gp,bp,sr,xp,vp,Sp,Cp,Op,Ep,wp,Ap,Rp,$r,Np,Pn,Tp,Ip,ze,Ur,ue,Ui=f(()=>{(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(yp||(yp={}));(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(mp||(mp={}));(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"})(Mr||(Mr={}));(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(gp||(gp={}));(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(bp||(bp={}));(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"})(sr||(sr={}));(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"})(xp||(xp={}));(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"})(vp||(vp={}));(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(Sp||(Sp={}));(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(Cp||(Cp={}));(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(Op||(Op={}));(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(Ep||(Ep={}));(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"})(wp||(wp={}));(function(t){t.ASC="ASC",t.DESC="DESC"})(Ap||(Ap={}));(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(Rp||(Rp={}));(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})($r||($r={}));(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK"})(Np||(Np={}));(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(Pn||(Pn={}));(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK"})(Tp||(Tp={}));(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Ip||(Ip={}));(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC"})(ze||(ze={}));(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(Ur||(Ur={}));(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"})(ue||(ue={}))});var _p,Pp,Lp,kp=f(()=>{(function(t){t.VALID="VALID",t.INVALID="INVALID"})(_p||(_p={}));(function(t){t.JSON="JSON",t.TEXT="TEXT"})(Pp||(Pp={}));(function(t){t.TEXT="TEXT",t.HTML="HTML"})(Lp||(Lp={}))});function Dp(t,e){return t===e||(sm[t]??[]).some(o=>Dp(o,e))}function Bp(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=>Dp(n,e))}var sm,Mp=f(()=>{Ui();sm={[ue.PERSONAL_BOOK_SHARE_USER]:[ue.PERSONAL_BOOK_USER],[ue.HTML_EXPORT_USER]:[ue.PERSONAL_BOOK_USER],[ue.PDF_EXPORT_USER]:[ue.PERSONAL_BOOK_USER],[ue.KHUB_ADMIN]:[ue.CONTENT_PUBLISHER],[ue.ADMIN]:[ue.KHUB_ADMIN,ue.USERS_ADMIN,ue.PORTAL_ADMIN],[ue.GENERATIVE_AI_EXPORT_USER]:[ue.GENERATIVE_AI_USER]}});var $p=f(()=>{});var cm,wo=f(()=>{cm=b(hp(),1);$i();Ui();kp();Mp();$p();$i()});var Ln,Fi=f(()=>{"use strict";We();wo();go();Ln=class extends rt{async listMySearches(){let{session:e}=k.getState();return Bp(e,ue.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),5*60*1e3):[]}}});var kn,Wi=f(()=>{"use strict";We();go();kn=class extends rt{async listMyBookmarks(){let e=k.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),5*60*1e3):[]}}});var Bn,lm,Dn,Hi,Up,zi=f(()=>{"use strict";Bn=b(N());Fi();Wi();We();lm="ft-user-assets",Dn=Bn.FtReduxStore.get({name:lm,initialState:{savedSearches:void 0,bookmarks:void 0}}),Hi=class{constructor(){this.currentSession=k.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new kn,this.savedSearchesService=new Ln,k.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:o}=k.getState();(0,Bn.deepEqual)((e=this.currentSession)===null||e===void 0?void 0:e.profile,o?.profile)||(this.currentSession=o,this.clearMySearches(),this.reloadBookmarks())}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),Dn.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),Dn.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();Dn.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var e;if(this.bookmarksAreUsed){let o=!((e=this.currentSession)===null||e===void 0)&&e.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;Dn.actions.bookmarks(o)}}},Up=new Hi});var ji,Fp=f(()=>{"use strict";We();ji=class{addCommand(e,o=!1){k.commands.add(e,o)}consumeCommand(e){return k.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new ji});var Wp,Gi,Hp=f(()=>{"use strict";Wp=b(N()),Gi=class{highlightHtml(e,o,n){(0,Wp.highlightHtml)(e,o,n)}};window.FluidTopicsHighlightHtmlService=new Gi});var zp,Vi,jp=f(()=>{"use strict";zp=b(N());We();Vi=class{isDate(e){var o,n,a,i;return(i=(a=((n=(o=k.getState().metadataConfiguration)===null||o===void 0?void 0:o.descriptors)!==null&&n!==void 0?n:[]).find(l=>l.key===e))===null||a===void 0?void 0:a.date)!==null&&i!==void 0?i:!1}format(e,o){var n,a,i;return zp.DateFormatter.format(e,(n=o?.locale)!==null&&n!==void 0?n:k.getState().uiLocale,(a=o?.longFormat)!==null&&a!==void 0?a:!1,(i=o?.withTime)!==null&&i!==void 0?i:!1)}};window.FluidTopicsDateService=new Vi});var Gp,vt,Ki=f(()=>{"use strict";Gp=b(N());We();vt=class{static get(e,o){var n,a,i,s;let l=k.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 Gp.SearchPlaceConverter(l.baseUrl,(s=(i=window.FluidTopicsClientConfiguration)===null||i===void 0?void 0:i.predefinedSorts)!==null&&s!==void 0?s:{},e??20,l.searchInAllLanguagesAllowed,o??`${u}-${p}`)}}});var Mn,Vp=f(()=>{"use strict";li();Mn=class extends Nr{async sendDocumentStartDisplayEvent(e){return(await this.awaitApi).sendEvents([e]).catch(o=>{console.info("Failed to send document.start_display event"),console.debug(o)})}async sendTopicStartDisplayEvent(e){return(await this.awaitApi).sendEvents([e]).catch(o=>{console.info("Failed to send topic.start_display event"),console.debug(o)})}async sendKhubSearchEvent(e){return(await this.awaitApi).sendEvents([e]).catch(o=>{console.info("Failed to send khub.search event"),console.debug(o)})}async sendDocumentSearchEvent(e){return(await this.awaitApi).sendEvents([e]).catch(o=>{console.info("Failed to send document.search event"),console.debug(o)})}async sendSearchPageSelectEvent(e){return(await this.awaitApi).sendEvents([e]).catch(o=>{console.info("Failed to send search_page.select event"),console.debug(o)})}async sendSearchResultOpenContextMenuEvent(e){return(await this.awaitApi).sendEvents([e]).catch(o=>{console.info("Failed to send search_result.open_context_menu event"),console.debug(o)})}}});var Zi,Kp=f(()=>{"use strict";Ki();Zi=class{urlToSearchRequest(e){return vt.get().parse(e)}searchRequestToUrl(e){return vt.get().serialize(e)}};window.FluidTopicsUrlService=new Zi});var cr,Zp=f(()=>{"use strict";cr=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{currentItem:e}})}};cr.eventName="change"});var qi,qp,Yp=f(()=>{"use strict";qi=class{itemName(e){return`fluid-topics-history-item-${e}`}get(e){let o=sessionStorage.getItem(this.itemName(e));return o?JSON.parse(o):void 0}set(e,o){sessionStorage.setItem(this.itemName(e),JSON.stringify(o))}},qp=new qi});var Ft,$n,Qp=f(()=>{"use strict";Ft=b(N());Zp();Yp();$n=class t extends Ft.WithEventBus{static build(){return new t(window.history,qp,()=>window.location,!1)}constructor(e,o,n,a){var i,s;super(),this.history=e,this.historyStorage=o,this.windowLocation=n,this.states=[],this.realPushState=e.pushState,this.realReplaceState=e.replaceState,this.initialIndex=(s=(i=e.state)===null||i===void 0?void 0:i.index)!==null&&s!==void 0?s:e.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(a)}setCurrentState(e,o=!1){let n=o&&this.currentIndex===e.index-1;this.currentState={...this.buildCurrentState(),...e},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,Ft.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,window.location.href]),setTimeout(()=>this.dispatchEvent(new cr(this.currentItem())),0)}installProxies(){let e=o=>(n,a,[i,s,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,s,l]),this.setCurrentState(p,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:e(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:e(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",e=>this.setCurrentState(e.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(e){for(let o=this.history.length-1;o>=0;o--)e?this.states[o]=this.historyStorage.get(o):setTimeout(()=>this.states[o]=this.historyStorage.get(o),this.history.length-o)}updateCurrentState(e,o=!1){var n,a,i;let s={...this.buildCurrentState(),...e,index:this.currentIndex,title:(n=e?.title)!==null&&n!==void 0?n:this.currentState.title},l=o?(a=e?.majorState)!==null&&a!==void 0?a:this.currentState.majorState:(i=this.currentState.majorState)!==null&&i!==void 0?i:e?.majorState;l!=null&&(s.majorState=l),this.setCurrentState(s)}addHistoryChangeListener(e){this.addEventListener(cr.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(cr.eventName,e)}currentItem(){return(0,Ft.deepCopy)(this.currentState)}back(){let e=this.previousMajorPosition();e>=0?this.history.go(e-this.currentIndex):this.currentIndex!==this.initialIndex?this.history.go(this.initialIndex-this.currentIndex):this.history.back()}backwardItem(){return(0,Ft.deepCopy)(this.states[this.previousMajorPosition()])}previousMajorPosition(){let e=this.currentIndex;for(;e>0&&!this.isMajorState(e);)e--;return this.previousExistingPosition(e)}forward(){let e=this.nextMajorPosition();e<this.states.length?this.history.go(e-this.currentIndex):this.history.forward()}forwardItem(){return(0,Ft.deepCopy)(this.states[this.nextMajorPosition()])}nextMajorPosition(){let e=this.currentIndex;do e++;while(e<this.states.length&&!this.isMajorState(e));do e++;while(e<this.states.length&&!this.isMajorState(e));return this.previousExistingPosition(e)}previousExistingPosition(e){let o=e;do o--;while(o>0&&!this.hasState(o));return o}buildCurrentState(){var e,o;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(o=(e=this.history.state)===null||e===void 0?void 0:e.title)!==null&&o!==void 0?o:document.title}}hasState(e){return this.states[e]!=null}isMajorState(e){var o,n;return this.hasState(e)&&((n=(o=this.states[e])===null||o===void 0?void 0:o.majorState)!==null&&n!==void 0?n:!0)}}});var Xp=f(()=>{"use strict";Qp();window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=$n.build(),window.FluidTopicsHistoryService={currentItem:()=>window.FluidTopicsInternalHistoryService.currentItem(),back:()=>window.FluidTopicsInternalHistoryService.back(),forward:()=>window.FluidTopicsInternalHistoryService.forward(),backwardItem:()=>window.FluidTopicsInternalHistoryService.backwardItem(),forwardItem:()=>window.FluidTopicsInternalHistoryService.forwardItem(),addHistoryChangeListener:t=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(t),removeHistoryChangeListener:t=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(t)})});var Jp=f(()=>{"use strict";Wi();un();Fp();ui();go();Hp();Fi();jp();Ki();Vp();Kp();Xp()});var ef=f(()=>{"use strict"});var tf,St=f(()=>{"use strict";tf=b(N());pi();pp();We();zi();Jp();si();ef();pi();(0,tf.customElement)("ft-app-context")(ie)});function rf(t){return t.match(/^[\w-]+\.[\w-]+$/)}var dm,of=f(()=>{"use strict";Ao();dm=b(N())});function je(t){var e,o;class n extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map,this[o]=new Map}getI18nService(i){return i??this.useCustomMessageContexts?fn:Tr}i18n(i){var s;this.hasI18nContext(i.context)||this.addI18nContext(i.context,void 0,i.custom);let l=(s=i.args)!==null&&s!==void 0?s:i.argsProvider?i.argsProvider(this):[];return this.getI18nService(i.custom).resolveMessage(i.context,i.key,...l)}customI18n(i,s){if(rf(i)){let[l,u]=i.split(".");return this.i18n({custom:!0,context:l,key:u,...s})||i}return i}firstUpdated(i){super.firstUpdated(i),this.updateI18nAttributes(()=>!0),this.updateI18nProperties(()=>!0)}update(i){super.update(i),this.updateI18nAttributes((s,l,u)=>i.has(l)||typeof s.argsProvider=="function"),this.updateI18nProperties(s=>typeof s.argsProvider=="function")}onI18nUpdate(i){this.updateI18nAttributes((s,l,u)=>{var p;return((p=u?.context)===null||p===void 0?void 0:p.toLowerCase())===i}),this.updateI18nProperties(s=>s.context.toLowerCase()===i),this.requestUpdate()}updateI18nAttributes(i){var s,l;let u=this,p=(g,m,x)=>x?.context&&x.key&&i(g,m,x)?{...x,message:this.i18n({context:x.context,key:x.key,...g})}:x;(s=this[nf])===null||s===void 0||s.forEach((g,m)=>u[m]=p(g,m,u[m])),(l=this[af])===null||l===void 0||l.forEach((g,m)=>{var x;return u[m]=(x=u[m])===null||x===void 0?void 0:x.map(C=>p(g,m,C))})}updateI18nProperties(i){var s;(s=this[lf])===null||s===void 0||s.forEach((l,u)=>{i(l,u)&&(this[u]=this.i18n(l))})}addI18nMessages(i,s,l){console.warn('Deprecated usage of method "addI18nMessages", use "addI18nContext" instead.'),this.addI18nContext(i,s,l)}addI18nContext(i,s,l){let u=(typeof i=="string"?i:i.name).toLowerCase();l=typeof i=="string"?l:i.custom,this[Un].set(u,{isCustomContext:l}),this[Ro].has(u)||this[Ro].set(u,this.getI18nService(l).subscribe(u,()=>this.onI18nUpdate(u))),this.getI18nService(l).prepareContext(u,s)}hasI18nContext(i){return this[Un].has(i.toLowerCase())}connectedCallback(){super.connectedCallback(),this[Un].forEach((i,s)=>this.addI18nContext(s,void 0,i.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[Ro].forEach(i=>i()),this[Ro].clear()}}return e=Un,o=Ro,um([(0,cf.property)({type:Boolean})],n.prototype,"useCustomMessageContexts",void 0),n}var Wn,cf,um,nf,af,lf,Un,Ro,sf,Fn,Ao=f(()=>{"use strict";Wn=b(N());St();cf=b(Q());of();um=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,o,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(i=(a<3?s(i):a>3?s(e,o,i):s(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},nf=Symbol("i18nAttributes"),af=Symbol("i18nListAttributes"),lf=Symbol("i18nProperties"),Un=Symbol("i18nContexts"),Ro=Symbol("i18nUnsubs");sf=class extends je(Wn.FtLitElement){},Fn=class extends je(Wn.FtLitElementRedux){}});var Hn,zn,jn,No,Ye,Yi=f(()=>{"use strict";Hn=b(B()),zn=b(Q()),jn=b(N());ii();Ao();St();No=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,o,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(i=(a<3?s(i):a>3?s(e,o,i):s(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},Ye=class extends Fn{constructor(){super(),this.editorMode=!1,this.addStore(k)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":Hn.nothing:Hn.html`
1164
1164
  <span class="ft-i18n">
1165
1165
  ${this.i18n({context:this.context,key:this.key,args:Array.isArray(this.args)?this.args:[]})}
1166
1166
  </span>
@@ -1238,7 +1238,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
1238
1238
  </div>
1239
1239
  `}onSuggestKeyDown(e){var o,n,a,i,s,l;switch(e.key){case"ArrowUp":(a=(n=(o=this.getFocusedSuggestionElement())===null||o===void 0?void 0:o.previousElementSibling)!==null&&n!==void 0?n:this.getLastSuggestionElement())===null||a===void 0||a.focus(),e.preventDefault(),e.stopPropagation();break;case"ArrowDown":(l=(s=(i=this.getFocusedSuggestionElement())===null||i===void 0?void 0:i.nextElementSibling)!==null&&s!==void 0?s:this.getFirstSuggestionElement())===null||l===void 0||l.focus(),e.preventDefault(),e.stopPropagation();break}}onSuggestKeyUp(e){(e.key==="Enter"||e.key===" ")&&(e.preventDefault(),e.stopPropagation(),e.target.click())}onSuggestSelected(e){this.dispatchEvent(new ds(e))}getIcon(e){let o=e.type==="DOCUMENT"?ke.file_format:ke.fluid_topics,n;switch(e.type){case"MAP":n=e.editorialType==="BOOK"?It.BOOK:It.ARTICLE;break;case"DOCUMENT":n=Nd(e.mimeType,e.filenameExtension);break;case"TOPIC":n=It.TOPICS;break}return Vr.html`
1240
1240
  <ft-icon .variant="${o}" .value="${n}" part="suggestion-icon"></ft-icon>
1241
- `}getFocusedSuggestionElement(){return this.shadowRoot.querySelector(".ft-search-input-suggestion--suggestion:focus-within")}getLastSuggestionElement(){let e=this.shadowRoot.querySelectorAll(".ft-search-input-suggestion--suggestion");return e.length>0?e[e.length-1]:null}getFirstSuggestionElement(){return this.shadowRoot.querySelector(".ft-search-input-suggestion--suggestion")}focusFirstSuggestion(){var e;(e=this.getFirstSuggestionElement())===null||e===void 0||e.focus()}};Ot.elementDefinitions={"ft-ripple":X,"ft-typography":se,"ft-icon":Ee};Ot.styles=[Po.wordWrap,jf];ea([(0,Po.redux)()],Ot.prototype,"request",void 0);ea([(0,Po.redux)()],Ot.prototype,"suggestResults",void 0);ea([(0,ta.property)()],Ot.prototype,"launchSearchPath",void 0);Ot=ea([(0,ta.customElement)("ft-search-input-suggestion")],Ot)});var Lo,Kr,ct,qf,st,ge,us=f(()=>{"use strict";Lo=b(B()),Kr=b(N());mo();Wt();it();Hf();ct=b(Q()),qf=b(eo());Zf();nn();pt();St();st=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,o,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(i=(a<3?s(i):a>3?s(e,o,i):s(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},ge=class extends je(_e){constructor(){super(),this.liveQuery="",this.forceCloseSuggestion=!1,this.useCustomSearchPath=!1,this.triggerSearchOnClear=!1,this.addI18nContext(_o)}render(){var e,o;let n={"ft-search-input":!0,"ft-search-input--with-suggestions":(o=(e=this.suggestResults)===null||e===void 0?void 0:e.length)!==null&&o!==void 0?o:!1,"ft-search-input--with-suggestions-closed":this.forceCloseSuggestion},a={...this.request,query:this.liveQuery},i=this.useCustomSearchPath?this.launchSearchPath:void 0,s=vt.get().serializeToCurrentPageIfPossible(a,i);return Lo.html`
1241
+ `}getFocusedSuggestionElement(){return this.shadowRoot.querySelector(".ft-search-input-suggestion--suggestion:focus-within")}getLastSuggestionElement(){let e=this.shadowRoot.querySelectorAll(".ft-search-input-suggestion--suggestion");return e.length>0?e[e.length-1]:null}getFirstSuggestionElement(){return this.shadowRoot.querySelector(".ft-search-input-suggestion--suggestion")}focusFirstSuggestion(){var e;(e=this.getFirstSuggestionElement())===null||e===void 0||e.focus()}};Ot.elementDefinitions={"ft-ripple":X,"ft-typography":se,"ft-icon":Ee};Ot.styles=[Po.wordWrap,jf];ea([(0,Po.redux)()],Ot.prototype,"request",void 0);ea([(0,Po.redux)()],Ot.prototype,"suggestResults",void 0);ea([(0,ta.property)()],Ot.prototype,"launchSearchPath",void 0);Ot=ea([(0,ta.customElement)("ft-search-input-suggestion")],Ot)});var Lo,Kr,ct,qf,st,me,us=f(()=>{"use strict";Lo=b(B()),Kr=b(N());mo();Wt();it();Hf();ct=b(Q()),qf=b(eo());Zf();nn();pt();St();st=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,o,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(i=(a<3?s(i):a>3?s(e,o,i):s(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},me=class extends je(_e){constructor(){super(),this.liveQuery="",this.forceCloseSuggestion=!1,this.useCustomSearchPath=!1,this.triggerSearchOnClear=!1,this.addI18nContext(_o)}render(){var e,o;let n={"ft-search-input":!0,"ft-search-input--with-suggestions":(o=(e=this.suggestResults)===null||e===void 0?void 0:e.length)!==null&&o!==void 0?o:!1,"ft-search-input--with-suggestions-closed":this.forceCloseSuggestion},a={...this.request,query:this.liveQuery},i=this.useCustomSearchPath?this.launchSearchPath:void 0,s=vt.get().serializeToCurrentPageIfPossible(a,i);return Lo.html`
1242
1242
  <div class="${(0,qf.classMap)(n)}" @focusout=${()=>this.forceCloseSuggestion=!1} role="search">
1243
1243
  <div class="ft-search-input--input-container" part="input-container" tabindex="-1">
1244
1244
  <div class="ft-search-input--input-outline" part="input-outline">
@@ -1279,7 +1279,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
1279
1279
  ></ft-button>
1280
1280
  </div>
1281
1281
  </div>
1282
- `}onSearchBarKeyDown(e){switch(e.key){case"ArrowDown":e.stopPropagation(),e.preventDefault(),this.suggestion.focusFirstSuggestion();break;case"Backspace":e.stopPropagation();break}}onSearchBarKeyUp(e){switch(e.key){case"Backspace":e.stopPropagation();break;case"Enter":this.useCustomSearchPath?this.launchSearchButton.click():this.launchSearch(this.liveQuery);break;default:break}}onInput(e){var o;(o=this.stateManager)===null||o===void 0||o.setLiveQuery(this.input.value),this.forceCloseSuggestion=!1}onClearInput(){var e;(e=this.stateManager)===null||e===void 0||e.setLiveQuery(""),this.triggerSearchOnClear?this.launchSearch(""):Lo.nothing,this.input.focus()}launchSearch(e){var o;this.forceCloseSuggestion=!0,this.dispatchEvent(new CustomEvent("change",{detail:e})),(o=this.stateManager)===null||o===void 0||o.setQuery(e)}onSuggestionSelected(e){var o;(o=this.input)===null||o===void 0||o.focus(),this.launchSearch(e.detail)}};ge.elementDefinitions={"ft-search-input-suggestion":Ot,"ft-button":De};ge.styles=[Fo,Kr.noTextInputDefaultClearButton,ri];st([(0,Kr.redux)()],ge.prototype,"request",void 0);st([(0,Kr.redux)()],ge.prototype,"liveQuery",void 0);st([(0,Kr.redux)()],ge.prototype,"suggestResults",void 0);st([(0,ct.state)()],ge.prototype,"forceCloseSuggestion",void 0);st([(0,ct.property)()],ge.prototype,"launchSearchPath",void 0);st([(0,ct.property)({type:Boolean})],ge.prototype,"useCustomSearchPath",void 0);st([(0,ct.property)({type:Boolean})],ge.prototype,"triggerSearchOnClear",void 0);st([(0,ct.query)(".ft-search-input--input")],ge.prototype,"input",void 0);st([(0,ct.query)("ft-search-input-suggestion")],ge.prototype,"suggestion",void 0);st([(0,ct.query)('[part="launch-search-in-input"]')],ge.prototype,"launchSearchButton",void 0)});var Yf=f(()=>{"use strict"});var Xf={};qt(Xf,{FtSearchInput:()=>ge,FtSearchInputCssVariables:()=>Y,styles:()=>ri});var Qf,Jf=f(()=>{"use strict";Qf=b(N());us();mo();Yf();us();(0,Qf.customElement)("ft-search-input")(ge)});var eh,xm,ps,fs=f(()=>{"use strict";eh=b(B()),xm={},ps=eh.css`
1282
+ `}onSearchBarKeyDown(e){switch(e.key){case"ArrowDown":e.stopPropagation(),e.preventDefault(),this.suggestion.focusFirstSuggestion();break;case"Backspace":e.stopPropagation();break}}onSearchBarKeyUp(e){switch(e.key){case"Backspace":e.stopPropagation();break;case"Enter":this.useCustomSearchPath?this.launchSearchButton.click():this.launchSearch(this.liveQuery);break;default:break}}onInput(e){var o;(o=this.stateManager)===null||o===void 0||o.setLiveQuery(this.input.value),this.forceCloseSuggestion=!1}onClearInput(){var e;(e=this.stateManager)===null||e===void 0||e.setLiveQuery(""),this.triggerSearchOnClear?this.launchSearch(""):Lo.nothing,this.input.focus()}launchSearch(e){var o;this.forceCloseSuggestion=!0,this.dispatchEvent(new CustomEvent("change",{detail:e})),(o=this.stateManager)===null||o===void 0||o.setQuery(e)}onSuggestionSelected(e){var o;(o=this.input)===null||o===void 0||o.focus(),this.launchSearch(e.detail)}};me.elementDefinitions={"ft-search-input-suggestion":Ot,"ft-button":De};me.styles=[Fo,Kr.noTextInputDefaultClearButton,ri];st([(0,Kr.redux)()],me.prototype,"request",void 0);st([(0,Kr.redux)()],me.prototype,"liveQuery",void 0);st([(0,Kr.redux)()],me.prototype,"suggestResults",void 0);st([(0,ct.state)()],me.prototype,"forceCloseSuggestion",void 0);st([(0,ct.property)()],me.prototype,"launchSearchPath",void 0);st([(0,ct.property)({type:Boolean})],me.prototype,"useCustomSearchPath",void 0);st([(0,ct.property)({type:Boolean})],me.prototype,"triggerSearchOnClear",void 0);st([(0,ct.query)(".ft-search-input--input")],me.prototype,"input",void 0);st([(0,ct.query)("ft-search-input-suggestion")],me.prototype,"suggestion",void 0);st([(0,ct.query)('[part="launch-search-in-input"]')],me.prototype,"launchSearchButton",void 0)});var Yf=f(()=>{"use strict"});var Xf={};qt(Xf,{FtSearchInput:()=>me,FtSearchInputCssVariables:()=>Y,styles:()=>ri});var Qf,Jf=f(()=>{"use strict";Qf=b(N());us();mo();Yf();us();(0,Qf.customElement)("ft-search-input")(me)});var eh,xm,ps,fs=f(()=>{"use strict";eh=b(B()),xm={},ps=eh.css`
1283
1283
  `});var hs,th=f(()=>{"use strict";it();hs=at.fromGwt("designedActionBlockAriaLabels")});var ra,ys,rh,Et,ms=f(()=>{"use strict";ra=b(B()),ys=b(N());fs();nn();Wt();it();th();rh=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,o,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(i=(a<3?s(i):a>3?s(e,o,i):s(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},Et=class extends je(_e){constructor(){super(),this.currentPage=1,this.isLastPage=!0,this.addI18nContext(hs)}render(){return this.isLastPage?ra.nothing:ra.html`
1284
1284
  <ft-button @click="${this.loadMore}">
1285
1285
  ${hs.messages.searchPageLoadMore()}