@fluid-topics/ft-search-breadcrumbs 2.1.5 → 2.1.6
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.
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
"use strict";(()=>{var hl=Object.create;var ia=Object.defineProperty;var ml=Object.getOwnPropertyDescriptor;var
|
|
1
|
+
"use strict";(()=>{var hl=Object.create;var ia=Object.defineProperty;var ml=Object.getOwnPropertyDescriptor;var yl=Object.getOwnPropertyNames;var gl=Object.getPrototypeOf,bl=Object.prototype.hasOwnProperty;var Tt=(e,t)=>()=>{try{return t||e((t={exports:{}}).exports,t),t.exports}catch(o){throw t=0,o}};var xl=(e,t,o,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of yl(t))!bl.call(e,a)&&a!==o&&ia(e,a,{get:()=>t[a],enumerable:!(n=ml(t,a))||n.enumerable});return e};var b=(e,t,o)=>(o=e!=null?hl(gl(e)):{},xl(t||!e||!e.__esModule?ia(o,"default",{value:e,enumerable:!0}):o,e));var w=Tt((Zd,sa)=>{sa.exports=ftGlobals.wcUtils});var U=Tt((qd,ca)=>{ca.exports=ftGlobals.lit});var V=Tt((Yd,la)=>{la.exports=ftGlobals.litDecorators});var Mo=Tt((Xd,da)=>{da.exports=ftGlobals.litRepeat});var _t=Tt((tu,ua)=>{ua.exports=ftGlobals.litClassMap});var qc=Tt((y0,Zc)=>{Zc.exports=ftGlobals.litUnsafeHTML});var fl=b(w());var te=b(U()),Ve=b(V()),aa=b(Mo());function Ne(e,t,o){return e?t(e):o?.(e)}var ul=b(_t()),je=b(w());var Ec=b(U()),W=b(w());var zo=globalThis,kr=zo.trustedTypes,pa=kr?kr.createPolicy("lit-html",{createHTML:e=>e}):void 0,ba="$lit$",qe=`lit$${Math.random().toFixed(9).slice(2)}$`,xa="?"+qe,vl=`<${xa}>`,ut=document,Pr=()=>ut.createComment(""),sr=e=>e===null||typeof e!="object"&&typeof e!="function",Go=Array.isArray,Sl=e=>Go(e)||typeof e?.[Symbol.iterator]=="function",Uo=`[
|
|
2
2
|
\f\r]`,ir=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,fa=/-->/g,ha=/>/g,lt=RegExp(`>|${Uo}(?:([^\\s"'>=/]+)(${Uo}*=${Uo}*(?:[^
|
|
3
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),ma=/'/g,ga=/"/g,va=/^(?:script|style|textarea|title)$/i,jo=e=>(t,...o)=>({_$litType$:e,strings:t,values:o}),Sa=jo(1),Ca=jo(2),Oa=jo(3),cr=Symbol.for("lit-noChange"),H=Symbol.for("lit-nothing"),ya=new WeakMap,dt=ut.createTreeWalker(ut,129);function Ea(e,t){if(!Go(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return pa!==void 0?pa.createHTML(t):t}var Cl=(e,t)=>{let o=e.length-1,n=[],a,i=t===2?"<svg>":t===3?"<math>":"",c=ir;for(let l=0;l<o;l++){let u=e[l],p,f,h=-1,m=0;for(;m<u.length&&(c.lastIndex=m,f=c.exec(u),f!==null);)m=c.lastIndex,c===ir?f[1]==="!--"?c=fa:f[1]!==void 0?c=ha:f[2]!==void 0?(va.test(f[2])&&(a=RegExp("</"+f[2],"g")),c=lt):f[3]!==void 0&&(c=lt):c===lt?f[0]===">"?(c=a??ir,h=-1):f[1]===void 0?h=-2:(h=c.lastIndex-f[2].length,p=f[1],c=f[3]===void 0?lt:f[3]==='"'?ga:ma):c===ga||c===ma?c=lt:c===fa||c===ha?c=ir:(c=lt,a=void 0);let g=c===lt&&e[l+1].startsWith("/>")?" ":"";i+=c===ir?u+vl:h>=0?(n.push(p),u.slice(0,h)+ba+u.slice(h)+qe+g):u+qe+(h===-2?l:g)}return[Ea(e,i+(e[o]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),n]},lr=class e{constructor({strings:t,_$litType$:o},n){let a;this.parts=[];let i=0,c=0,l=t.length-1,u=this.parts,[p,f]=Cl(t,o);if(this.el=e.createElement(p,n),dt.currentNode=this.el.content,o===2||o===3){let h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(a=dt.nextNode())!==null&&u.length<l;){if(a.nodeType===1){if(a.hasAttributes())for(let h of a.getAttributeNames())if(h.endsWith(ba)){let m=f[c++],g=a.getAttribute(h).split(qe),y=/([.?@])?(.*)/.exec(m);u.push({type:1,index:i,name:y[2],strings:g,ctor:y[1]==="."?Fo:y[1]==="?"?Ho:y[1]==="@"?$o:Nt}),a.removeAttribute(h)}else h.startsWith(qe)&&(u.push({type:6,index:i}),a.removeAttribute(h));if(va.test(a.tagName)){let h=a.textContent.split(qe),m=h.length-1;if(m>0){a.textContent=kr?kr.emptyScript:"";for(let g=0;g<m;g++)a.append(h[g],Pr()),dt.nextNode(),u.push({type:2,index:++i});a.append(h[m],Pr())}}}else if(a.nodeType===8)if(a.data===xa)u.push({type:2,index:i});else{let h=-1;for(;(h=a.data.indexOf(qe,h+1))!==-1;)u.push({type:7,index:i}),h+=qe.length-1}i++}}static createElement(t,o){let n=ut.createElement("template");return n.innerHTML=t,n}};function It(e,t,o=e,n){if(t===cr)return t;let a=n!==void 0?o._$Co?.[n]:o._$Cl,i=sr(t)?void 0:t._$litDirective$;return a?.constructor!==i&&(a?._$AO?.(!1),i===void 0?a=void 0:(a=new i(e),a._$AT(e,o,n)),n!==void 0?(o._$Co??=[])[n]=a:o._$Cl=a),a!==void 0&&(t=It(e,a._$AS(e,t.values),a,n)),t}var Bo=class{constructor(t,o){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=o}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){let{el:{content:o},parts:n}=this._$AD,a=(t?.creationScope??ut).importNode(o,!0);dt.currentNode=a;let i=dt.nextNode(),c=0,l=0,u=n[0];for(;u!==void 0;){if(c===u.index){let p;u.type===2?p=new Dr(i,i.nextSibling,this,t):u.type===1?p=new u.ctor(i,u.name,u.strings,this,t):u.type===6&&(p=new Wo(i,this,t)),this._$AV.push(p),u=n[++l]}c!==u?.index&&(i=dt.nextNode(),c++)}return dt.currentNode=ut,a}p(t){let o=0;for(let n of this._$AV)n!==void 0&&(n.strings!==void 0?(n._$AI(t,n,o),o+=n.strings.length-2):n._$AI(t[o])),o++}},Dr=class e{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,o,n,a){this.type=2,this._$AH=H,this._$AN=void 0,this._$AA=t,this._$AB=o,this._$AM=n,this.options=a,this._$Cv=a?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode,o=this._$AM;return o!==void 0&&t?.nodeType===11&&(t=o.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,o=this){t=It(this,t,o),sr(t)?t===H||t==null||t===""?(this._$AH!==H&&this._$AR(),this._$AH=H):t!==this._$AH&&t!==cr&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Sl(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==H&&sr(this._$AH)?this._$AA.nextSibling.data=t:this.T(ut.createTextNode(t)),this._$AH=t}$(t){let{values:o,_$litType$:n}=t,a=typeof n=="number"?this._$AC(t):(n.el===void 0&&(n.el=lr.createElement(Ea(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===a)this._$AH.p(o);else{let i=new Bo(a,this),c=i.u(this.options);i.p(o),this.T(c),this._$AH=i}}_$AC(t){let o=ya.get(t.strings);return o===void 0&&ya.set(t.strings,o=new lr(t)),o}k(t){Go(this._$AH)||(this._$AH=[],this._$AR());let o=this._$AH,n,a=0;for(let i of t)a===o.length?o.push(n=new e(this.O(Pr()),this.O(Pr()),this,this.options)):n=o[a],n._$AI(i),a++;a<o.length&&(this._$AR(n&&n._$AB.nextSibling,a),o.length=a)}_$AR(t=this._$AA.nextSibling,o){for(this._$AP?.(!1,!0,o);t&&t!==this._$AB;){let n=t.nextSibling;t.remove(),t=n}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},Nt=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,o,n,a,i){this.type=1,this._$AH=H,this._$AN=void 0,this.element=t,this.name=o,this._$AM=a,this.options=i,n.length>2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=H}_$AI(t,o=this,n,a){let i=this.strings,c=!1;if(i===void 0)t=It(this,t,o,0),c=!sr(t)||t!==this._$AH&&t!==cr,c&&(this._$AH=t);else{let l=t,u,p;for(t=i[0],u=0;u<i.length-1;u++)p=It(this,l[n+u],o,u),p===cr&&(p=this._$AH[u]),c||=!sr(p)||p!==this._$AH[u],p===H?t=H:t!==H&&(t+=(p??"")+i[u+1]),this._$AH[u]=p}c&&!a&&this.j(t)}j(t){t===H?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},Fo=class extends Nt{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===H?void 0:t}},Ho=class extends Nt{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==H)}},$o=class extends Nt{constructor(t,o,n,a,i){super(t,o,n,a,i),this.type=5}_$AI(t,o=this){if((t=It(this,t,o,0)??H)===cr)return;let n=this._$AH,a=t===H&&n!==H||t.capture!==n.capture||t.once!==n.once||t.passive!==n.passive,i=t!==H&&(n===H||a);a&&this.element.removeEventListener(this.name,this,n),i&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},Wo=class{constructor(t,o,n){this.element=t,this.type=6,this._$AN=void 0,this._$AM=o,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(t){It(this,t)}};var Ol=zo.litHtmlPolyfillSupport;Ol?.(lr,Dr),(zo.litHtmlVersions??=[]).push("3.3.0");var wa=Symbol.for(""),El=e=>{if(e?.r===wa)return e?._$litStatic$},Vo=e=>({_$litStatic$:e,r:wa});var Aa=new Map,Ko=e=>(t,...o)=>{let n=o.length,a,i,c=[],l=[],u,p=0,f=!1;for(;p<n;){for(u=t[p];p<n&&(i=o[p],(a=El(i))!==void 0);)u+=a+t[++p],f=!0;p!==n&&l.push(i),c.push(u),p++}if(p===n&&c.push(t[n]),f){let h=c.join("$$lit$$");(t=Aa.get(h))===void 0&&(c.raw=c,Aa.set(h,t=c)),o=l}return e(t,...o)},Zo=Ko(Sa),nu=Ko(Ca),au=Ko(Oa);var qo=b(V()),Ba=b(w());var he;(function(e){e.title="title",e.title_dense="title-dense",e.subtitle1="subtitle1",e.subtitle2="subtitle2",e.body1="body1",e.body2="body2",e.caption="caption",e.breadcrumb="breadcrumb",e.overline="overline",e.button="button"})(he||(he={}));var ge=b(U()),S=b(w()),Ra=S.FtCssVariableFactory.extend("--ft-typography-font-family","",S.designSystemVariables.titleFont),Fe=S.FtCssVariableFactory.extend("--ft-typography-font-family","",S.designSystemVariables.contentFont),A={fontFamily:Fe,fontSize:S.FtCssVariableFactory.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:S.FtCssVariableFactory.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:S.FtCssVariableFactory.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:S.FtCssVariableFactory.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:S.FtCssVariableFactory.create("--ft-typography-text-transform","","UNKNOWN","inherit")},kt={fontFamily:S.FtCssVariableFactory.extend("--ft-typography-title-font-family","",Ra),fontSize:S.FtCssVariableFactory.extend("--ft-typography-title-font-size","",A.fontSize,"20px"),fontWeight:S.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",A.fontWeight,"normal"),letterSpacing:S.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",A.letterSpacing,"0.15px"),lineHeight:S.FtCssVariableFactory.extend("--ft-typography-title-line-height","",A.lineHeight,"1.2"),textTransform:S.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",A.textTransform,"inherit")},Pt={fontFamily:S.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",Ra),fontSize:S.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",A.fontSize,"14px"),fontWeight:S.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",A.fontWeight,"normal"),letterSpacing:S.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",A.letterSpacing,"0.105px"),lineHeight:S.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",A.lineHeight,"1.7"),textTransform:S.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",A.textTransform,"inherit")},Dt={fontFamily:S.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",Fe),fontSize:S.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",A.fontSize,"16px"),fontWeight:S.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",A.fontWeight,"600"),letterSpacing:S.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",A.letterSpacing,"0.144px"),lineHeight:S.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",A.lineHeight,"1.5"),textTransform:S.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",A.textTransform,"inherit")},Mt={fontFamily:S.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",Fe),fontSize:S.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",A.fontSize,"14px"),fontWeight:S.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",A.fontWeight,"normal"),letterSpacing:S.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",A.letterSpacing,"0.098px"),lineHeight:S.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",A.lineHeight,"1.7"),textTransform:S.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",A.textTransform,"inherit")},Be={fontFamily:S.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",Fe),fontSize:S.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",A.fontSize,"16px"),fontWeight:S.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",A.fontWeight,"normal"),letterSpacing:S.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",A.letterSpacing,"0.496px"),lineHeight:S.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",A.lineHeight,"1.5"),textTransform:S.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",A.textTransform,"inherit")},me={fontFamily:S.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",Fe),fontSize:S.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",A.fontSize,"14px"),fontWeight:S.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",A.fontWeight,"normal"),letterSpacing:S.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",A.letterSpacing,"0.252px"),lineHeight:S.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",A.lineHeight,"1.4"),textTransform:S.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",A.textTransform,"inherit")},ce={fontFamily:S.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",Fe),fontSize:S.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",A.fontSize,"12px"),fontWeight:S.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",A.fontWeight,"normal"),letterSpacing:S.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",A.letterSpacing,"0.396px"),lineHeight:S.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",A.lineHeight,"1.33"),textTransform:S.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",A.textTransform,"inherit")},Ut={fontFamily:S.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",Fe),fontSize:S.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",A.fontSize,"10px"),fontWeight:S.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",A.fontWeight,"normal"),letterSpacing:S.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",A.letterSpacing,"0.33px"),lineHeight:S.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",A.lineHeight,"1.6"),textTransform:S.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",A.textTransform,"inherit")},Bt={fontFamily:S.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",Fe),fontSize:S.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",A.fontSize,"10px"),fontWeight:S.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",A.fontWeight,"normal"),letterSpacing:S.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",A.letterSpacing,"1.5px"),lineHeight:S.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",A.lineHeight,"1.6"),textTransform:S.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",A.textTransform,"uppercase")},Ft={fontFamily:S.FtCssVariableFactory.extend("--ft-typography-button-font-family","",Fe),fontSize:S.FtCssVariableFactory.extend("--ft-typography-button-font-size","",A.fontSize,"14px"),fontWeight:S.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",A.fontWeight,"600"),letterSpacing:S.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",A.letterSpacing,"1.246px"),lineHeight:S.FtCssVariableFactory.extend("--ft-typography-button-line-height","",A.lineHeight,"1.15"),textTransform:S.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",A.textTransform,"uppercase")},La=ge.css`
|
|
3
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),ma=/'/g,ya=/"/g,va=/^(?:script|style|textarea|title)$/i,jo=e=>(t,...o)=>({_$litType$:e,strings:t,values:o}),Sa=jo(1),Ca=jo(2),Oa=jo(3),cr=Symbol.for("lit-noChange"),H=Symbol.for("lit-nothing"),ga=new WeakMap,dt=ut.createTreeWalker(ut,129);function Ea(e,t){if(!Go(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return pa!==void 0?pa.createHTML(t):t}var Cl=(e,t)=>{let o=e.length-1,n=[],a,i=t===2?"<svg>":t===3?"<math>":"",c=ir;for(let l=0;l<o;l++){let u=e[l],p,f,h=-1,m=0;for(;m<u.length&&(c.lastIndex=m,f=c.exec(u),f!==null);)m=c.lastIndex,c===ir?f[1]==="!--"?c=fa:f[1]!==void 0?c=ha:f[2]!==void 0?(va.test(f[2])&&(a=RegExp("</"+f[2],"g")),c=lt):f[3]!==void 0&&(c=lt):c===lt?f[0]===">"?(c=a??ir,h=-1):f[1]===void 0?h=-2:(h=c.lastIndex-f[2].length,p=f[1],c=f[3]===void 0?lt:f[3]==='"'?ya:ma):c===ya||c===ma?c=lt:c===fa||c===ha?c=ir:(c=lt,a=void 0);let y=c===lt&&e[l+1].startsWith("/>")?" ":"";i+=c===ir?u+vl:h>=0?(n.push(p),u.slice(0,h)+ba+u.slice(h)+qe+y):u+qe+(h===-2?l:y)}return[Ea(e,i+(e[o]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),n]},lr=class e{constructor({strings:t,_$litType$:o},n){let a;this.parts=[];let i=0,c=0,l=t.length-1,u=this.parts,[p,f]=Cl(t,o);if(this.el=e.createElement(p,n),dt.currentNode=this.el.content,o===2||o===3){let h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(a=dt.nextNode())!==null&&u.length<l;){if(a.nodeType===1){if(a.hasAttributes())for(let h of a.getAttributeNames())if(h.endsWith(ba)){let m=f[c++],y=a.getAttribute(h).split(qe),g=/([.?@])?(.*)/.exec(m);u.push({type:1,index:i,name:g[2],strings:y,ctor:g[1]==="."?Fo:g[1]==="?"?Ho:g[1]==="@"?$o:Nt}),a.removeAttribute(h)}else h.startsWith(qe)&&(u.push({type:6,index:i}),a.removeAttribute(h));if(va.test(a.tagName)){let h=a.textContent.split(qe),m=h.length-1;if(m>0){a.textContent=kr?kr.emptyScript:"";for(let y=0;y<m;y++)a.append(h[y],Pr()),dt.nextNode(),u.push({type:2,index:++i});a.append(h[m],Pr())}}}else if(a.nodeType===8)if(a.data===xa)u.push({type:2,index:i});else{let h=-1;for(;(h=a.data.indexOf(qe,h+1))!==-1;)u.push({type:7,index:i}),h+=qe.length-1}i++}}static createElement(t,o){let n=ut.createElement("template");return n.innerHTML=t,n}};function It(e,t,o=e,n){if(t===cr)return t;let a=n!==void 0?o._$Co?.[n]:o._$Cl,i=sr(t)?void 0:t._$litDirective$;return a?.constructor!==i&&(a?._$AO?.(!1),i===void 0?a=void 0:(a=new i(e),a._$AT(e,o,n)),n!==void 0?(o._$Co??=[])[n]=a:o._$Cl=a),a!==void 0&&(t=It(e,a._$AS(e,t.values),a,n)),t}var Bo=class{constructor(t,o){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=o}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){let{el:{content:o},parts:n}=this._$AD,a=(t?.creationScope??ut).importNode(o,!0);dt.currentNode=a;let i=dt.nextNode(),c=0,l=0,u=n[0];for(;u!==void 0;){if(c===u.index){let p;u.type===2?p=new Dr(i,i.nextSibling,this,t):u.type===1?p=new u.ctor(i,u.name,u.strings,this,t):u.type===6&&(p=new Wo(i,this,t)),this._$AV.push(p),u=n[++l]}c!==u?.index&&(i=dt.nextNode(),c++)}return dt.currentNode=ut,a}p(t){let o=0;for(let n of this._$AV)n!==void 0&&(n.strings!==void 0?(n._$AI(t,n,o),o+=n.strings.length-2):n._$AI(t[o])),o++}},Dr=class e{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,o,n,a){this.type=2,this._$AH=H,this._$AN=void 0,this._$AA=t,this._$AB=o,this._$AM=n,this.options=a,this._$Cv=a?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode,o=this._$AM;return o!==void 0&&t?.nodeType===11&&(t=o.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,o=this){t=It(this,t,o),sr(t)?t===H||t==null||t===""?(this._$AH!==H&&this._$AR(),this._$AH=H):t!==this._$AH&&t!==cr&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Sl(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==H&&sr(this._$AH)?this._$AA.nextSibling.data=t:this.T(ut.createTextNode(t)),this._$AH=t}$(t){let{values:o,_$litType$:n}=t,a=typeof n=="number"?this._$AC(t):(n.el===void 0&&(n.el=lr.createElement(Ea(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===a)this._$AH.p(o);else{let i=new Bo(a,this),c=i.u(this.options);i.p(o),this.T(c),this._$AH=i}}_$AC(t){let o=ga.get(t.strings);return o===void 0&&ga.set(t.strings,o=new lr(t)),o}k(t){Go(this._$AH)||(this._$AH=[],this._$AR());let o=this._$AH,n,a=0;for(let i of t)a===o.length?o.push(n=new e(this.O(Pr()),this.O(Pr()),this,this.options)):n=o[a],n._$AI(i),a++;a<o.length&&(this._$AR(n&&n._$AB.nextSibling,a),o.length=a)}_$AR(t=this._$AA.nextSibling,o){for(this._$AP?.(!1,!0,o);t&&t!==this._$AB;){let n=t.nextSibling;t.remove(),t=n}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},Nt=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,o,n,a,i){this.type=1,this._$AH=H,this._$AN=void 0,this.element=t,this.name=o,this._$AM=a,this.options=i,n.length>2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=H}_$AI(t,o=this,n,a){let i=this.strings,c=!1;if(i===void 0)t=It(this,t,o,0),c=!sr(t)||t!==this._$AH&&t!==cr,c&&(this._$AH=t);else{let l=t,u,p;for(t=i[0],u=0;u<i.length-1;u++)p=It(this,l[n+u],o,u),p===cr&&(p=this._$AH[u]),c||=!sr(p)||p!==this._$AH[u],p===H?t=H:t!==H&&(t+=(p??"")+i[u+1]),this._$AH[u]=p}c&&!a&&this.j(t)}j(t){t===H?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},Fo=class extends Nt{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===H?void 0:t}},Ho=class extends Nt{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==H)}},$o=class extends Nt{constructor(t,o,n,a,i){super(t,o,n,a,i),this.type=5}_$AI(t,o=this){if((t=It(this,t,o,0)??H)===cr)return;let n=this._$AH,a=t===H&&n!==H||t.capture!==n.capture||t.once!==n.once||t.passive!==n.passive,i=t!==H&&(n===H||a);a&&this.element.removeEventListener(this.name,this,n),i&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},Wo=class{constructor(t,o,n){this.element=t,this.type=6,this._$AN=void 0,this._$AM=o,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(t){It(this,t)}};var Ol=zo.litHtmlPolyfillSupport;Ol?.(lr,Dr),(zo.litHtmlVersions??=[]).push("3.3.0");var wa=Symbol.for(""),El=e=>{if(e?.r===wa)return e?._$litStatic$},Vo=e=>({_$litStatic$:e,r:wa});var Aa=new Map,Ko=e=>(t,...o)=>{let n=o.length,a,i,c=[],l=[],u,p=0,f=!1;for(;p<n;){for(u=t[p];p<n&&(i=o[p],(a=El(i))!==void 0);)u+=a+t[++p],f=!0;p!==n&&l.push(i),c.push(u),p++}if(p===n&&c.push(t[n]),f){let h=c.join("$$lit$$");(t=Aa.get(h))===void 0&&(c.raw=c,Aa.set(h,t=c)),o=l}return e(t,...o)},Zo=Ko(Sa),nu=Ko(Ca),au=Ko(Oa);var qo=b(V()),Ba=b(w());var he;(function(e){e.title="title",e.title_dense="title-dense",e.subtitle1="subtitle1",e.subtitle2="subtitle2",e.body1="body1",e.body2="body2",e.caption="caption",e.breadcrumb="breadcrumb",e.overline="overline",e.button="button"})(he||(he={}));var ye=b(U()),S=b(w()),Ra=S.FtCssVariableFactory.extend("--ft-typography-font-family","",S.designSystemVariables.titleFont),Fe=S.FtCssVariableFactory.extend("--ft-typography-font-family","",S.designSystemVariables.contentFont),A={fontFamily:Fe,fontSize:S.FtCssVariableFactory.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:S.FtCssVariableFactory.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:S.FtCssVariableFactory.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:S.FtCssVariableFactory.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:S.FtCssVariableFactory.create("--ft-typography-text-transform","","UNKNOWN","inherit")},kt={fontFamily:S.FtCssVariableFactory.extend("--ft-typography-title-font-family","",Ra),fontSize:S.FtCssVariableFactory.extend("--ft-typography-title-font-size","",A.fontSize,"20px"),fontWeight:S.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",A.fontWeight,"normal"),letterSpacing:S.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",A.letterSpacing,"0.15px"),lineHeight:S.FtCssVariableFactory.extend("--ft-typography-title-line-height","",A.lineHeight,"1.2"),textTransform:S.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",A.textTransform,"inherit")},Pt={fontFamily:S.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",Ra),fontSize:S.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",A.fontSize,"14px"),fontWeight:S.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",A.fontWeight,"normal"),letterSpacing:S.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",A.letterSpacing,"0.105px"),lineHeight:S.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",A.lineHeight,"1.7"),textTransform:S.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",A.textTransform,"inherit")},Dt={fontFamily:S.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",Fe),fontSize:S.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",A.fontSize,"16px"),fontWeight:S.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",A.fontWeight,"600"),letterSpacing:S.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",A.letterSpacing,"0.144px"),lineHeight:S.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",A.lineHeight,"1.5"),textTransform:S.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",A.textTransform,"inherit")},Mt={fontFamily:S.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",Fe),fontSize:S.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",A.fontSize,"14px"),fontWeight:S.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",A.fontWeight,"normal"),letterSpacing:S.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",A.letterSpacing,"0.098px"),lineHeight:S.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",A.lineHeight,"1.7"),textTransform:S.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",A.textTransform,"inherit")},Be={fontFamily:S.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",Fe),fontSize:S.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",A.fontSize,"16px"),fontWeight:S.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",A.fontWeight,"normal"),letterSpacing:S.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",A.letterSpacing,"0.496px"),lineHeight:S.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",A.lineHeight,"1.5"),textTransform:S.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",A.textTransform,"inherit")},me={fontFamily:S.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",Fe),fontSize:S.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",A.fontSize,"14px"),fontWeight:S.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",A.fontWeight,"normal"),letterSpacing:S.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",A.letterSpacing,"0.252px"),lineHeight:S.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",A.lineHeight,"1.4"),textTransform:S.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",A.textTransform,"inherit")},ce={fontFamily:S.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",Fe),fontSize:S.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",A.fontSize,"12px"),fontWeight:S.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",A.fontWeight,"normal"),letterSpacing:S.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",A.letterSpacing,"0.396px"),lineHeight:S.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",A.lineHeight,"1.33"),textTransform:S.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",A.textTransform,"inherit")},Ut={fontFamily:S.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",Fe),fontSize:S.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",A.fontSize,"10px"),fontWeight:S.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",A.fontWeight,"normal"),letterSpacing:S.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",A.letterSpacing,"0.33px"),lineHeight:S.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",A.lineHeight,"1.6"),textTransform:S.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",A.textTransform,"inherit")},Bt={fontFamily:S.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",Fe),fontSize:S.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",A.fontSize,"10px"),fontWeight:S.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",A.fontWeight,"normal"),letterSpacing:S.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",A.letterSpacing,"1.5px"),lineHeight:S.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",A.lineHeight,"1.6"),textTransform:S.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",A.textTransform,"uppercase")},Ft={fontFamily:S.FtCssVariableFactory.extend("--ft-typography-button-font-family","",Fe),fontSize:S.FtCssVariableFactory.extend("--ft-typography-button-font-size","",A.fontSize,"14px"),fontWeight:S.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",A.fontWeight,"600"),letterSpacing:S.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",A.letterSpacing,"1.246px"),lineHeight:S.FtCssVariableFactory.extend("--ft-typography-button-line-height","",A.lineHeight,"1.15"),textTransform:S.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",A.textTransform,"uppercase")},La=ye.css`
|
|
4
4
|
.ft-typography--title {
|
|
5
5
|
font-family: ${kt.fontFamily};
|
|
6
6
|
font-size: ${kt.fontSize};
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
line-height: ${kt.lineHeight};
|
|
10
10
|
text-transform: ${kt.textTransform};
|
|
11
11
|
}
|
|
12
|
-
`,Ta=
|
|
12
|
+
`,Ta=ye.css`
|
|
13
13
|
.ft-typography--title-dense {
|
|
14
14
|
font-family: ${Pt.fontFamily};
|
|
15
15
|
font-size: ${Pt.fontSize};
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
line-height: ${Pt.lineHeight};
|
|
19
19
|
text-transform: ${Pt.textTransform};
|
|
20
20
|
}
|
|
21
|
-
`,_a=
|
|
21
|
+
`,_a=ye.css`
|
|
22
22
|
.ft-typography--subtitle1 {
|
|
23
23
|
font-family: ${Dt.fontFamily};
|
|
24
24
|
font-size: ${Dt.fontSize};
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
line-height: ${Dt.lineHeight};
|
|
28
28
|
text-transform: ${Dt.textTransform};
|
|
29
29
|
}
|
|
30
|
-
`,Ia=
|
|
30
|
+
`,Ia=ye.css`
|
|
31
31
|
.ft-typography--subtitle2 {
|
|
32
32
|
font-family: ${Mt.fontFamily};
|
|
33
33
|
font-size: ${Mt.fontSize};
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
text-transform: ${Mt.textTransform};
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
-
`,Na=
|
|
40
|
+
`,Na=ye.css`
|
|
41
41
|
.ft-typography--body1 {
|
|
42
42
|
font-family: ${Be.fontFamily};
|
|
43
43
|
font-size: ${Be.fontSize};
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
line-height: ${Be.lineHeight};
|
|
47
47
|
text-transform: ${Be.textTransform};
|
|
48
48
|
}
|
|
49
|
-
`,Mr=
|
|
49
|
+
`,Mr=ye.css`
|
|
50
50
|
.ft-typography--body2 {
|
|
51
51
|
font-family: ${me.fontFamily};
|
|
52
52
|
font-size: ${me.fontSize};
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
line-height: ${me.lineHeight};
|
|
56
56
|
text-transform: ${me.textTransform};
|
|
57
57
|
}
|
|
58
|
-
`,Ht=
|
|
58
|
+
`,Ht=ye.css`
|
|
59
59
|
.ft-typography--caption {
|
|
60
60
|
font-family: ${ce.fontFamily};
|
|
61
61
|
font-size: ${ce.fontSize};
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
line-height: ${ce.lineHeight};
|
|
65
65
|
text-transform: ${ce.textTransform};
|
|
66
66
|
}
|
|
67
|
-
`,ka=
|
|
67
|
+
`,ka=ye.css`
|
|
68
68
|
.ft-typography--breadcrumb {
|
|
69
69
|
font-family: ${Ut.fontFamily};
|
|
70
70
|
font-size: ${Ut.fontSize};
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
line-height: ${Ut.lineHeight};
|
|
74
74
|
text-transform: ${Ut.textTransform};
|
|
75
75
|
}
|
|
76
|
-
`,Pa=
|
|
76
|
+
`,Pa=ye.css`
|
|
77
77
|
.ft-typography--overline {
|
|
78
78
|
font-family: ${Bt.fontFamily};
|
|
79
79
|
font-size: ${Bt.fontSize};
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
line-height: ${Bt.lineHeight};
|
|
83
83
|
text-transform: ${Bt.textTransform};
|
|
84
84
|
}
|
|
85
|
-
`,Da=
|
|
85
|
+
`,Da=ye.css`
|
|
86
86
|
.ft-typography--button {
|
|
87
87
|
font-family: ${Ft.fontFamily};
|
|
88
88
|
font-size: ${Ft.fontSize};
|
|
@@ -91,7 +91,7 @@
|
|
|
91
91
|
line-height: ${Ft.lineHeight};
|
|
92
92
|
text-transform: ${Ft.textTransform};
|
|
93
93
|
}
|
|
94
|
-
`,Ma=
|
|
94
|
+
`,Ma=ye.css`
|
|
95
95
|
.ft-typography {
|
|
96
96
|
vertical-align: inherit;
|
|
97
97
|
}
|
|
@@ -135,15 +135,15 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
135
135
|
position: relative;
|
|
136
136
|
word-break: break-word;
|
|
137
137
|
}
|
|
138
|
-
`;var Ka=["top","right","bottom","left"],Va=["start","end"],Xo=Ka.reduce((e,t)=>e.concat(t,t+"-"+Va[0],t+"-"+Va[1]),[]),dr=Math.min,Qe=Math.max,ur=Math.round;var Ae=e=>({x:e,y:e}),Al={left:"right",right:"left",bottom:"top",top:"bottom"};function Qo(e,t,o){return Qe(e,dr(t,o))}function Ur(e,t){return typeof e=="function"?e(t):e}function $t(e){return e.split("-")[0]}function Je(e){return e.split("-")[1]}function Jo(e){return e==="x"?"y":"x"}function en(e){return e==="y"?"height":"width"}function Br(e){let t=e[0];return t==="t"||t==="b"?"y":"x"}function tn(e){return Jo(Br(e))}function Za(e,t,o){o===void 0&&(o=!1);let n=Je(e),a=tn(e),i=en(a),c=a==="x"?n===(o?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(c=Yo(c)),[c,Yo(c)]}function qa(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}function Yo(e){let t=$t(e);return Al[t]+e.slice(t.length)}function wl(e){return{top:0,right:0,bottom:0,left:0,...e}}function Ya(e){return typeof e!="number"?wl(e):{top:e,right:e,bottom:e,left:e}}function ft(e){let{x:t,y:o,width:n,height:a}=e;return{width:n,height:a,top:o,left:t,right:t+n,bottom:o+a,x:t,y:o}}function Xa(e,t,o){let{reference:n,floating:a}=e,i=Br(t),c=tn(t),l=en(c),u=$t(t),p=i==="y",f=n.x+n.width/2-a.width/2,h=n.y+n.height/2-a.height/2,m=n[l]/2-a[l]/2,g;switch(u){case"top":g={x:f,y:n.y-a.height};break;case"bottom":g={x:f,y:n.y+n.height};break;case"right":g={x:n.x+n.width,y:h};break;case"left":g={x:n.x-a.width,y:h};break;default:g={x:n.x,y:n.y}}switch(Je(t)){case"start":g[c]-=m*(o&&p?-1:1);break;case"end":g[c]+=m*(o&&p?-1:1);break}return g}async function Qa(e,t){var o;t===void 0&&(t={});let{x:n,y:a,platform:i,rects:c,elements:l,strategy:u}=e,{boundary:p="clippingAncestors",rootBoundary:f="viewport",elementContext:h="floating",altBoundary:m=!1,padding:g=0}=Ur(t,e),y=Ya(g),C=l[m?h==="floating"?"reference":"floating":h],O=ft(await i.getClippingRect({element:(o=await(i.isElement==null?void 0:i.isElement(C)))==null||o?C:C.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(l.floating)),boundary:p,rootBoundary:f,strategy:u})),E=h==="floating"?{x:n,y:a,width:c.floating.width,height:c.floating.height}:c.reference,R=await(i.getOffsetParent==null?void 0:i.getOffsetParent(l.floating)),L=await(i.isElement==null?void 0:i.isElement(R))?await(i.getScale==null?void 0:i.getScale(R))||{x:1,y:1}:{x:1,y:1},j=ft(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:E,offsetParent:R,strategy:u}):E);return{top:(O.top-j.top+y.top)/L.y,bottom:(j.bottom-O.bottom+y.bottom)/L.y,left:(O.left-j.left+y.left)/L.x,right:(j.right-O.right+y.right)/L.x}}var Rl=50,Ja=async(e,t,o)=>{let{placement:n="bottom",strategy:a="absolute",middleware:i=[],platform:c}=o,l=c.detectOverflow?c:{...c,detectOverflow:Qa},u=await(c.isRTL==null?void 0:c.isRTL(t)),p=await c.getElementRects({reference:e,floating:t,strategy:a}),{x:f,y:h}=Xa(p,n,u),m=n,g=0,y={};for(let x=0;x<i.length;x++){let C=i[x];if(!C)continue;let{name:O,fn:E}=C,{x:R,y:L,data:j,reset:F}=await E({x:f,y:h,initialPlacement:n,placement:m,strategy:a,middlewareData:y,rects:p,platform:l,elements:{reference:e,floating:t}});f=R??f,h=L??h,y[O]={...y[O],...j},F&&g<Rl&&(g++,typeof F=="object"&&(F.placement&&(m=F.placement),F.rects&&(p=F.rects===!0?await c.getElementRects({reference:e,floating:t,strategy:a}):F.rects),{x:f,y:h}=Xa(p,m,u)),x=-1)}return{x:f,y:h,placement:m,strategy:a,middlewareData:y}};function Ll(e,t,o){return(e?[...o.filter(a=>Je(a)===e),...o.filter(a=>Je(a)!==e)]:o.filter(a=>$t(a)===a)).filter(a=>e?Je(a)===e||(t?qa(a)!==a:!1):!0)}var ei=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var o,n,a;let{rects:i,middlewareData:c,placement:l,platform:u,elements:p}=t,{crossAxis:f=!1,alignment:h,allowedPlacements:m=Xo,autoAlignment:g=!0,...y}=Ur(e,t),x=h!==void 0||m===Xo?Ll(h||null,g,m):m,C=await u.detectOverflow(t,y),O=((o=c.autoPlacement)==null?void 0:o.index)||0,E=x[O];if(E==null)return{};let R=Za(E,i,await(u.isRTL==null?void 0:u.isRTL(p.floating)));if(l!==E)return{reset:{placement:x[0]}};let L=[C[$t(E)],C[R[0]],C[R[1]]],j=[...((n=c.autoPlacement)==null?void 0:n.overflows)||[],{placement:E,overflows:L}],F=x[O+1];if(F)return{data:{index:O+1,overflows:j},reset:{placement:F}};let Ke=j.map(ie=>{let fe=Je(ie.placement);return[ie.placement,fe&&f?ie.overflows.slice(0,2).reduce((se,ct)=>se+ct,0):ie.overflows[0],ie.overflows]}).sort((ie,fe)=>ie[1]-fe[1]),Ze=((a=Ke.filter(ie=>ie[2].slice(0,Je(ie[0])?2:3).every(fe=>fe<=0))[0])==null?void 0:a[0])||Ke[0][0];return Ze!==l?{data:{index:O+1,overflows:j},reset:{placement:Ze}}:{}}}};var ti=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){let{x:o,y:n,placement:a,platform:i}=t,{mainAxis:c=!0,crossAxis:l=!1,limiter:u={fn:O=>{let{x:E,y:R}=O;return{x:E,y:R}}},...p}=Ur(e,t),f={x:o,y:n},h=await i.detectOverflow(t,p),m=Br($t(a)),g=Jo(m),y=f[g],x=f[m];if(c){let O=g==="y"?"top":"left",E=g==="y"?"bottom":"right",R=y+h[O],L=y-h[E];y=Qo(R,y,L)}if(l){let O=m==="y"?"top":"left",E=m==="y"?"bottom":"right",R=x+h[O],L=x-h[E];x=Qo(R,x,L)}let C=u.fn({...t,[g]:y,[m]:x});return{...C,data:{x:C.x-o,y:C.y-n,enabled:{[g]:c,[m]:l}}}}}};function Hr(){return typeof window<"u"}function mt(e){return oi(e)?(e.nodeName||"").toLowerCase():"#document"}function re(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ke(e){var t;return(t=(oi(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function oi(e){return Hr()?e instanceof Node||e instanceof re(e).Node:!1}function ye(e){return Hr()?e instanceof Element||e instanceof re(e).Element:!1}function Pe(e){return Hr()?e instanceof HTMLElement||e instanceof re(e).HTMLElement:!1}function ri(e){return!Hr()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof re(e).ShadowRoot}function Wt(e){let{overflow:t,overflowX:o,overflowY:n,display:a}=be(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+o)&&a!=="inline"&&a!=="contents"}function ni(e){return/^(table|td|th)$/.test(mt(e))}function pr(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}var Tl=/transform|translate|scale|rotate|perspective|filter/,_l=/paint|layout|strict|content/,ht=e=>!!e&&e!=="none",rn;function zt(e){let t=ye(e)?be(e):e;return ht(t.transform)||ht(t.translate)||ht(t.scale)||ht(t.rotate)||ht(t.perspective)||!$r()&&(ht(t.backdropFilter)||ht(t.filter))||Tl.test(t.willChange||"")||_l.test(t.contain||"")}function ai(e){let t=$e(e);for(;Pe(t)&&!gt(t);){if(zt(t))return t;if(pr(t))return null;t=$e(t)}return null}function $r(){return rn==null&&(rn=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),rn}function gt(e){return/^(html|body|#document)$/.test(mt(e))}function be(e){return re(e).getComputedStyle(e)}function fr(e){return ye(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function $e(e){if(mt(e)==="html")return e;let t=e.assignedSlot||e.parentNode||ri(e)&&e.host||ke(e);return ri(t)?t.host:t}function ii(e){let t=$e(e);return gt(t)?e.ownerDocument?e.ownerDocument.body:e.body:Pe(t)&&Wt(t)?t:ii(t)}function Fr(e,t,o){var n;t===void 0&&(t=[]),o===void 0&&(o=!0);let a=ii(e),i=a===((n=e.ownerDocument)==null?void 0:n.body),c=re(a);if(i){let l=Wr(c);return t.concat(c,c.visualViewport||[],Wt(a)?a:[],l&&o?Fr(l):[])}else return t.concat(a,Fr(a,[],o))}function Wr(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function di(e){let t=be(e),o=parseFloat(t.width)||0,n=parseFloat(t.height)||0,a=Pe(e),i=a?e.offsetWidth:o,c=a?e.offsetHeight:n,l=ur(o)!==i||ur(n)!==c;return l&&(o=i,n=c),{width:o,height:n,$:l}}function ui(e){return ye(e)?e:e.contextElement}function Gt(e){let t=ui(e);if(!Pe(t))return Ae(1);let o=t.getBoundingClientRect(),{width:n,height:a,$:i}=di(t),c=(i?ur(o.width):o.width)/n,l=(i?ur(o.height):o.height)/a;return(!c||!Number.isFinite(c))&&(c=1),(!l||!Number.isFinite(l))&&(l=1),{x:c,y:l}}var Il=Ae(0);function pi(e){let t=re(e);return!$r()||!t.visualViewport?Il:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Nl(e,t,o){return t===void 0&&(t=!1),!o||t&&o!==re(e)?!1:t}function hr(e,t,o,n){t===void 0&&(t=!1),o===void 0&&(o=!1);let a=e.getBoundingClientRect(),i=ui(e),c=Ae(1);t&&(n?ye(n)&&(c=Gt(n)):c=Gt(e));let l=Nl(i,o,n)?pi(i):Ae(0),u=(a.left+l.x)/c.x,p=(a.top+l.y)/c.y,f=a.width/c.x,h=a.height/c.y;if(i){let m=re(i),g=n&&ye(n)?re(n):n,y=m,x=Wr(y);for(;x&&n&&g!==y;){let C=Gt(x),O=x.getBoundingClientRect(),E=be(x),R=O.left+(x.clientLeft+parseFloat(E.paddingLeft))*C.x,L=O.top+(x.clientTop+parseFloat(E.paddingTop))*C.y;u*=C.x,p*=C.y,f*=C.x,h*=C.y,u+=R,p+=L,y=re(x),x=Wr(y)}}return ft({width:f,height:h,x:u,y:p})}function zr(e,t){let o=fr(e).scrollLeft;return t?t.left+o:hr(ke(e)).left+o}function fi(e,t){let o=e.getBoundingClientRect(),n=o.left+t.scrollLeft-zr(e,o),a=o.top+t.scrollTop;return{x:n,y:a}}function kl(e){let{elements:t,rect:o,offsetParent:n,strategy:a}=e,i=a==="fixed",c=ke(n),l=t?pr(t.floating):!1;if(n===c||l&&i)return o;let u={scrollLeft:0,scrollTop:0},p=Ae(1),f=Ae(0),h=Pe(n);if((h||!h&&!i)&&((mt(n)!=="body"||Wt(c))&&(u=fr(n)),h)){let g=hr(n);p=Gt(n),f.x=g.x+n.clientLeft,f.y=g.y+n.clientTop}let m=c&&!h&&!i?fi(c,u):Ae(0);return{width:o.width*p.x,height:o.height*p.y,x:o.x*p.x-u.scrollLeft*p.x+f.x+m.x,y:o.y*p.y-u.scrollTop*p.y+f.y+m.y}}function Pl(e){return Array.from(e.getClientRects())}function Dl(e){let t=ke(e),o=fr(e),n=e.ownerDocument.body,a=Qe(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),i=Qe(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight),c=-o.scrollLeft+zr(e),l=-o.scrollTop;return be(n).direction==="rtl"&&(c+=Qe(t.clientWidth,n.clientWidth)-a),{width:a,height:i,x:c,y:l}}var si=25;function Ml(e,t){let o=re(e),n=ke(e),a=o.visualViewport,i=n.clientWidth,c=n.clientHeight,l=0,u=0;if(a){i=a.width,c=a.height;let f=$r();(!f||f&&t==="fixed")&&(l=a.offsetLeft,u=a.offsetTop)}let p=zr(n);if(p<=0){let f=n.ownerDocument,h=f.body,m=getComputedStyle(h),g=f.compatMode==="CSS1Compat"&&parseFloat(m.marginLeft)+parseFloat(m.marginRight)||0,y=Math.abs(n.clientWidth-h.clientWidth-g);y<=si&&(i-=y)}else p<=si&&(i+=p);return{width:i,height:c,x:l,y:u}}function Ul(e,t){let o=hr(e,!0,t==="fixed"),n=o.top+e.clientTop,a=o.left+e.clientLeft,i=Pe(e)?Gt(e):Ae(1),c=e.clientWidth*i.x,l=e.clientHeight*i.y,u=a*i.x,p=n*i.y;return{width:c,height:l,x:u,y:p}}function ci(e,t,o){let n;if(t==="viewport")n=Ml(e,o);else if(t==="document")n=Dl(ke(e));else if(ye(t))n=Ul(t,o);else{let a=pi(e);n={x:t.x-a.x,y:t.y-a.y,width:t.width,height:t.height}}return ft(n)}function hi(e,t){let o=$e(e);return o===t||!ye(o)||gt(o)?!1:be(o).position==="fixed"||hi(o,t)}function Bl(e,t){let o=t.get(e);if(o)return o;let n=Fr(e,[],!1).filter(l=>ye(l)&&mt(l)!=="body"),a=null,i=be(e).position==="fixed",c=i?$e(e):e;for(;ye(c)&&!gt(c);){let l=be(c),u=zt(c);!u&&l.position==="fixed"&&(a=null),(i?!u&&!a:!u&&l.position==="static"&&!!a&&(a.position==="absolute"||a.position==="fixed")||Wt(c)&&!u&&hi(e,c))?n=n.filter(f=>f!==c):a=l,c=$e(c)}return t.set(e,n),n}function Fl(e){let{element:t,boundary:o,rootBoundary:n,strategy:a}=e,c=[...o==="clippingAncestors"?pr(t)?[]:Bl(t,this._c):[].concat(o),n],l=ci(t,c[0],a),u=l.top,p=l.right,f=l.bottom,h=l.left;for(let m=1;m<c.length;m++){let g=ci(t,c[m],a);u=Qe(g.top,u),p=dr(g.right,p),f=dr(g.bottom,f),h=Qe(g.left,h)}return{width:p-h,height:f-u,x:h,y:u}}function Hl(e){let{width:t,height:o}=di(e);return{width:t,height:o}}function $l(e,t,o){let n=Pe(t),a=ke(t),i=o==="fixed",c=hr(e,!0,i,t),l={scrollLeft:0,scrollTop:0},u=Ae(0);function p(){u.x=zr(a)}if(n||!n&&!i)if((mt(t)!=="body"||Wt(a))&&(l=fr(t)),n){let g=hr(t,!0,i,t);u.x=g.x+t.clientLeft,u.y=g.y+t.clientTop}else a&&p();i&&!n&&a&&p();let f=a&&!n&&!i?fi(a,l):Ae(0),h=c.left+l.scrollLeft-u.x-f.x,m=c.top+l.scrollTop-u.y-f.y;return{x:h,y:m,width:c.width,height:c.height}}function on(e){return be(e).position==="static"}function li(e,t){if(!Pe(e)||be(e).position==="fixed")return null;if(t)return t(e);let o=e.offsetParent;return ke(e)===o&&(o=o.ownerDocument.body),o}function mi(e,t){let o=re(e);if(pr(e))return o;if(!Pe(e)){let a=$e(e);for(;a&&!gt(a);){if(ye(a)&&!on(a))return a;a=$e(a)}return o}let n=li(e,t);for(;n&&ni(n)&&on(n);)n=li(n,t);return n&>(n)&&on(n)&&!zt(n)?o:n||ai(e)||o}var Wl=async function(e){let t=this.getOffsetParent||mi,o=this.getDimensions,n=await o(e.floating);return{reference:$l(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function zl(e){return be(e).direction==="rtl"}var Gr={convertOffsetParentRelativeRectToViewportRelativeRect:kl,getDocumentElement:ke,getClippingRect:Fl,getOffsetParent:mi,getElementRects:Wl,getClientRects:Pl,getDimensions:Hl,getScale:Gt,isElement:ye,isRTL:zl};var gi=ei,yi=ti;var bi=(e,t,o)=>{let n=new Map,a={platform:Gr,...o},i={...a.platform,_c:n};return Ja(e,t,{...a,platform:i})};function xi(e){return Gl(e)}function nn(e){return e.assignedSlot?e.assignedSlot:e.parentNode instanceof ShadowRoot?e.parentNode.host:e.parentNode}function Gl(e){for(let t=e;t;t=nn(t))if(t instanceof Element&&getComputedStyle(t).display==="none")return null;for(let t=nn(e);t;t=nn(t)){if(!(t instanceof Element))continue;let o=getComputedStyle(t);if(o.display!=="contents"&&(o.position!=="static"||zt(o)||t.tagName==="BODY"))return t}return null}async function vi(e,t,o){let n;return typeof o=="object"?n=o:n={placement:o},bi(e,t,{strategy:n.strategy,platform:{...Gr,getOffsetParent:a=>Gr.getOffsetParent(a,xi)},middleware:[yi({crossAxis:!0}),gi({allowedPlacements:[n.placement]})]})}var rr=b(w());var In=b(V());var Si=b(V(),1);var an=e=>t=>{window.customElements.get(e)||window.customElements.define(e,t)};function Ci(e,t){return(0,Si.property)({type:Object,converter:{fromAttribute:o=>{if(o==null)return mr(e);try{return JSON.parse(o)}catch{return mr(e)}},toAttribute:o=>JSON.stringify(o)},hasChanged:gr,...t??{}})}function jl(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;let o,n;if(Array.isArray(e)){if(o=e.length,o!=t.length)return!1;for(n=o;n--!==0;)if(!jr(e[n],t[n]))return!1;return!0}if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(n of e.entries())if(!t.has(n[0]))return!1;for(n of e.entries())if(!jr(n[1],t.get(n[0])))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(n of e.entries())if(!t.has(n[0]))return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();let a=c=>Object.keys(c).filter(l=>c[l]!=null),i=a(e);if(o=i.length,o!==a(t).length)return!1;for(n=o;n--!==0;)if(!Object.prototype.hasOwnProperty.call(t,i[n]))return!1;for(n=o;n--!==0;){let c=i[n];if(!jr(e[c],t[c]))return!1}return!0}return e!==e&&t!==t||e==null&&t==null}function jr(e,t){try{return jl(e,t)}catch{return!1}}function gr(e,t){return!jr(e,t)}function mr(e){return typeof window.structuredClone=="function"?structuredClone(e):e!=null?JSON.parse(JSON.stringify(e)):e}function Vr(e,t){let o=n=>n[e]===!0;return n=>{if(o(n))return n;let a=t(n);return a[e]=!0,a}}var Oi=b(V(),1);var sn=e=>{let t=e??{};return(o,n)=>{var a;let i={hasChanged:gr,attribute:!1,...t};(0,Oi.property)(i)(o,n);let c=o.constructor;c.reduxProperties=new Map(c.reduxProperties),c.reduxProperties.set(n,{selector:(a=t.selector)!==null&&a!==void 0?a:(l=>l[n]),store:t.store})}};var Kr=class{constructor(){this.queue=[]}add(t,o=!1){o&&this.clear(t.type),this.queue.push(t)}consume(t){let o=this.queue.find(n=>n.type===t);return o&&(this.queue=this.queue.filter(n=>n!==o)),o}clear(t){typeof t=="string"?this.queue=this.queue.filter(o=>o.type!==t):this.queue=this.queue.filter(o=>!t.test(o.type))}};var yt=b(V(),1);var Zr=class{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,o){return this.callbacks=[t],this.debounce(o)}queue(t,o){return this.callbacks.push(t),this.debounce(o)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return this.promise==null&&(this.promise=new Promise((o,n)=>{this.resolvePromise=o,this.rejectPromise=n})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),t??this.timeout),this.promise}async runCallbacks(){var t,o;let n=[...this.callbacks];this.callbacks=[];let a=(t=this.rejectPromise)!==null&&t!==void 0?t:(()=>null),i=(o=this.resolvePromise)!==null&&o!==void 0?o:(()=>null);this.clearPromise();for(let c of n)try{await c()}catch(l){a(l);return}i(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var Ai=b(U(),1);var qr=globalThis,Vl=qr.ShadowRoot&&(qr.ShadyCSS===void 0||qr.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype;var Ei=(e,t)=>{if(Vl)e.adoptedStyleSheets=t.map((o=>o instanceof CSSStyleSheet?o:o.styleSheet));else for(let o of t){let n=document.createElement("style"),a=qr.litNonce;a!==void 0&&n.setAttribute("nonce",a),n.textContent=o.cssText,e.appendChild(n)}};var Yr=class extends Ai.LitElement{get scopedRegistryConstructor(){return this.constructor}createRenderRoot(){let t=this.scopedRegistryConstructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,t.defineScopedElements(t.elementDefinitions));let o={...t.shadowRootOptions,customElements:t.registry},n=this.renderOptions.creationScope=this.attachShadow(o);return Ei(n,t.elementStyles),n}static canDefineScopedElement(t){return!!this.registry&&!this.registry.get(t)}static defineScopedElements(t){Object.entries(t).forEach(([o,n])=>this.defineScopedElement(o,n))}static defineScopedElement(t,o){an(t)(o),this.canDefineScopedElement(t)&&this.registry.define(t,o)}canDefineScopedElement(t){return this.scopedRegistryConstructor.canDefineScopedElement(t)}defineScopedElements(t){this.scopedRegistryConstructor.defineScopedElements(t)}defineScopedElement(t,o){this.scopedRegistryConstructor.defineScopedElement(t,o)}};function wi(e,t,...o){var n;let a=e.querySelector(t);for(let i of o)a=(n=a?.shadowRoot)===null||n===void 0?void 0:n.querySelector(i);return a}var Vt=function(e,t,o,n){var a=arguments.length,i=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,n);else for(var l=e.length-1;l>=0;l--)(c=e[l])&&(i=(a<3?c(i):a>3?c(t,o,i):c(t,o))||i);return a>3&&i&&Object.defineProperty(t,o,i),i},_i,Ri=Symbol("constructorPrototype"),Li=Symbol("constructorName"),Ii=Symbol("exportpartsDebouncer"),Ti=Symbol("dynamicDependenciesLoaded"),jt=class e extends CustomEvent{constructor(){super(e.eventName,{bubbles:!0})}};jt.eventName="exportparts-updated";var De=class extends Yr{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[_i]=new Zr(5),this.scheduleExportpartsUpdate=()=>{var t,o,n;(!((t=this.exportpartsPrefix)===null||t===void 0)&&t.trim()||(n=(o=this.exportpartsPrefixes)===null||o===void 0?void 0:o.length)!==null&&n!==void 0&&n)&&this[Ii].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)})},this[Li]=this.constructor.name,this[Ri]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Li]&&Object.setPrototypeOf(this,this[Ri])}connectedCallback(){var t;super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(n){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",n)}let o=this.constructor;o[Ti]||(o[Ti]=!0,this.importDynamicDependencies()),(t=this.shadowRoot)===null||t===void 0||t.addEventListener(jt.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.shadowRoot)===null||t===void 0||t.removeEventListener(jt.eventName,this.scheduleExportpartsUpdate)}importDynamicDependencies(){}updated(t){super.updated(t),this.updateComplete.then(()=>{this.contentAvailableCallback(t),this.focusElementToFocus(t),this.applyCustomStylesheet(t),this.scheduleExportpartsUpdate(),t.has("exportparts")&&this.dispatchEvent(new jt)})}contentAvailableCallback(t){}focusElementToFocus(t){if(t.has("elementToFocus")&&this.elementToFocus!=null){let{element:o,selector:n,shadowPath:a}=this.elementToFocus;if(n!=null){let i=[...a??[],n];o=wi(this.shadowRoot,...i)}o?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||o?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(t){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(t.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)}}setExportpartsAttribute(t){var o,n,a,i,c,l;let u=m=>m!=null&&m.trim().length>0,p=t.filter(u).map(m=>m.trim());if(p.length===0){this.exportparts=void 0;return}let f=new Set;for(let m of(n=(o=this.shadowRoot)===null||o===void 0?void 0:o.querySelectorAll("[part],[exportparts]"))!==null&&n!==void 0?n:[]){let g=(i=(a=m.getAttribute("part"))===null||a===void 0?void 0:a.split(" "))!==null&&i!==void 0?i:[],y=(l=(c=m.getAttribute("exportparts"))===null||c===void 0?void 0:c.split(",").map(C=>C.split(":")[1]))!==null&&l!==void 0?l:[],x=[...g,...y].filter(u).map(C=>C.trim());for(let C of x)f.add(C)}if(f.size===0){this.exportparts=void 0;return}let h=[...f.values()].flatMap(m=>p.map(g=>`${m}:${g}--${m}`));this.exportparts=[...this.part,...h].join(", ")}};_i=Ii;Vt([(0,yt.property)()],De.prototype,"exportpartsPrefix",void 0);Vt([Ci([])],De.prototype,"exportpartsPrefixes",void 0);Vt([(0,yt.property)({reflect:!0})],De.prototype,"exportparts",void 0);Vt([(0,yt.property)()],De.prototype,"customStylesheet",void 0);Vt([(0,yt.property)()],De.prototype,"elementToFocus",void 0);Vt([(0,yt.state)()],De.prototype,"useAdoptedStyleSheets",void 0);function Xr(e){var t;return(t=e?.isFtReduxStore)!==null&&t!==void 0?t:!1}var yr=Symbol("internalReduxEventsUnsubscribers"),et=Symbol("internalStoresUnsubscribers"),bt=Symbol("internalStores"),Kl=Vr(Symbol("withRedux"),function(e){var t,o,n;class a extends e{constructor(){super(...arguments),this[t]=new Map,this[o]=new Map,this[n]=new Map}get reduxConstructor(){return this.constructor}willUpdate(c){super.willUpdate(c),[...this.reduxConstructor.reduxReactiveProperties].some(l=>c.has(l))&&this.updateFromStores()}getUnnamedStore(){if(this[bt].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[bt].values()][0]}getStore(c){return c==null?this.getUnnamedStore():this[bt].get(c)}addStore(c,l){var u;l=(u=l??c.name)!==null&&u!==void 0?u:"default-store",this.unsubscribeFromStore(l),this[bt].set(l,c),this.subscribeToStore(l,c),this.updateFromStores()}removeStore(c){let l=typeof c=="string"?c:c.name;this.unsubscribeFromStore(l),this[bt].delete(l)}setupStores(){this.unsubscribeFromStores(),this[bt].forEach((c,l)=>this.subscribeToStore(l,c)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((c,l)=>{let u=this.constructor.getPropertyOptions(l);if(!u?.attribute||!this.hasAttribute(typeof u?.attribute=="string"?u.attribute:l)){let p=this.getStore(c.store);p&&(c.store?this[et].has(c.store):this[et].size>0)&&(this[l]=c.selector(p.getState(),this))}})}subscribeToStore(c,l){var u;this[et].set(c,l.subscribe(()=>this.updateFromStores())),this[yr].set(c,[]),Xr(l)&&l.eventBus&&((u=this.reduxConstructor.reduxEventListeners)===null||u===void 0||u.forEach((p,f)=>{if(typeof this[f]=="function"&&(!p.store||l.name===p.store)){let h=m=>this[f](m);l.addEventListener(p.eventName,h),this[yr].get(c).push(()=>l.removeEventListener(p.eventName,h))}})),this.onStoreAvailable(c)}unsubscribeFromStores(){this[et].forEach((c,l)=>this.unsubscribeFromStore(l))}unsubscribeFromStore(c){var l;this[et].has(c)&&this[et].get(c)(),this[et].delete(c),(l=this[yr].get(c))===null||l===void 0||l.forEach(u=>u()),this[yr].delete(c)}onStoreAvailable(c){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return t=et,o=bt,n=yr,a.reduxProperties=new Map,a.reduxReactiveProperties=new Set,a.reduxEventListeners=new Map,a}),Ni=class extends Kl(De){};function xe(e){for(var t=arguments.length,o=Array(t>1?t-1:0),n=1;n<t;n++)o[n-1]=arguments[n];if(0)var a,i;throw Error("[Immer] minified error nr: "+e+(o.length?" "+o.map((function(c){return"'"+c+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function We(e){return!!e&&!!e[M]}function we(e){var t;return!!e&&((function(o){if(!o||typeof o!="object")return!1;var n=Object.getPrototypeOf(o);if(n===null)return!0;var a=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return a===Object||typeof a=="function"&&Function.toString.call(a)===td})(e)||Array.isArray(e)||!!e[Fi]||!!(!((t=e.constructor)===null||t===void 0)&&t[Fi])||gn(e)||yn(e))}function xt(e,t,o){o===void 0&&(o=!1),qt(e)===0?(o?Object.keys:Zt)(e).forEach((function(n){o&&typeof n=="symbol"||t(n,e[n],e)})):e.forEach((function(n,a){return t(a,n,e)}))}function qt(e){var t=e[M];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:gn(e)?2:yn(e)?3:0}function Kt(e,t){return qt(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Zl(e,t){return qt(e)===2?e.get(t):e[t]}function Hi(e,t,o){var n=qt(e);n===2?e.set(t,o):n===3?e.add(o):e[t]=o}function $i(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function gn(e){return Jl&&e instanceof Map}function yn(e){return ed&&e instanceof Set}function tt(e){return e.o||e.t}function bn(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=Gi(e);delete t[M];for(var o=Zt(t),n=0;n<o.length;n++){var a=o[n],i=t[a];i.writable===!1&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(t[a]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[a]})}return Object.create(Object.getPrototypeOf(e),t)}function xn(e,t){return t===void 0&&(t=!1),vn(e)||We(e)||!we(e)||(qt(e)>1&&(e.set=e.add=e.clear=e.delete=ql),Object.freeze(e),t&&xt(e,(function(o,n){return xn(n,!0)}),!0)),e}function ql(){xe(2)}function vn(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function Me(e){var t=mn[e];return t||xe(18,e),t}function Yl(e,t){mn[e]||(mn[e]=t)}function pn(){return xr}function cn(e,t){t&&(Me("Patches"),e.u=[],e.s=[],e.v=t)}function Qr(e){fn(e),e.p.forEach(Xl),e.p=null}function fn(e){e===xr&&(xr=e.l)}function ki(e){return xr={p:[],l:xr,h:e,m:!0,_:0}}function Xl(e){var t=e[M];t.i===0||t.i===1?t.j():t.g=!0}function ln(e,t){t._=t.p.length;var o=t.p[0],n=e!==void 0&&e!==o;return t.h.O||Me("ES5").S(t,e,n),n?(o[M].P&&(Qr(t),xe(4)),we(e)&&(e=Jr(t,e),t.l||eo(t,e)),t.u&&Me("Patches").M(o[M].t,e,t.u,t.s)):e=Jr(t,o,[]),Qr(t),t.u&&t.v(t.u,t.s),e!==zi?e:void 0}function Jr(e,t,o){if(vn(t))return t;var n=t[M];if(!n)return xt(t,(function(l,u){return Pi(e,n,t,l,u,o)}),!0),t;if(n.A!==e)return t;if(!n.P)return eo(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var a=n.i===4||n.i===5?n.o=bn(n.k):n.o,i=a,c=!1;n.i===3&&(i=new Set(a),a.clear(),c=!0),xt(i,(function(l,u){return Pi(e,n,a,l,u,o,c)})),eo(e,a,!1),o&&e.u&&Me("Patches").N(n,o,e.u,e.s)}return n.o}function Pi(e,t,o,n,a,i,c){if(We(a)){var l=Jr(e,a,i&&t&&t.i!==3&&!Kt(t.R,n)?i.concat(n):void 0);if(Hi(o,n,l),!We(l))return;e.m=!1}else c&&o.add(a);if(we(a)&&!vn(a)){if(!e.h.D&&e._<1)return;Jr(e,a),t&&t.A.l||eo(e,a)}}function eo(e,t,o){o===void 0&&(o=!1),!e.l&&e.h.D&&e.m&&xn(t,o)}function dn(e,t){var o=e[M];return(o?tt(o):e)[t]}function Di(e,t){if(t in e)for(var o=Object.getPrototypeOf(e);o;){var n=Object.getOwnPropertyDescriptor(o,t);if(n)return n;o=Object.getPrototypeOf(o)}}function rt(e){e.P||(e.P=!0,e.l&&rt(e.l))}function un(e){e.o||(e.o=bn(e.t))}function hn(e,t,o){var n=gn(t)?Me("MapSet").F(t,o):yn(t)?Me("MapSet").T(t,o):e.O?(function(a,i){var c=Array.isArray(a),l={i:c?1:0,A:i?i.A:pn(),P:!1,I:!1,R:{},l:i,t:a,k:null,o:null,j:null,C:!1},u=l,p=vr;c&&(u=[l],p=br);var f=Proxy.revocable(u,p),h=f.revoke,m=f.proxy;return l.k=m,l.j=h,m})(t,o):Me("ES5").J(t,o);return(o?o.A:pn()).p.push(n),n}function Ql(e){return We(e)||xe(22,e),(function t(o){if(!we(o))return o;var n,a=o[M],i=qt(o);if(a){if(!a.P&&(a.i<4||!Me("ES5").K(a)))return a.t;a.I=!0,n=Mi(o,i),a.I=!1}else n=Mi(o,i);return xt(n,(function(c,l){a&&Zl(a.t,c)===l||Hi(n,c,t(l))})),i===3?new Set(n):n})(e)}function Mi(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return bn(e)}function Wi(){function e(c,l){var u=i[c];return u?u.enumerable=l:i[c]=u={configurable:!0,enumerable:l,get:function(){var p=this[M];return vr.get(p,c)},set:function(p){var f=this[M];vr.set(f,c,p)}},u}function t(c){for(var l=c.length-1;l>=0;l--){var u=c[l][M];if(!u.P)switch(u.i){case 5:n(u)&&rt(u);break;case 4:o(u)&&rt(u)}}}function o(c){for(var l=c.t,u=c.k,p=Zt(u),f=p.length-1;f>=0;f--){var h=p[f];if(h!==M){var m=l[h];if(m===void 0&&!Kt(l,h))return!0;var g=u[h],y=g&&g[M];if(y?y.t!==m:!$i(g,m))return!0}}var x=!!l[M];return p.length!==Zt(l).length+(x?0:1)}function n(c){var l=c.k;if(l.length!==c.t.length)return!0;var u=Object.getOwnPropertyDescriptor(l,l.length-1);if(u&&!u.get)return!0;for(var p=0;p<l.length;p++)if(!l.hasOwnProperty(p))return!0;return!1}function a(c){c.g&&xe(3,JSON.stringify(tt(c)))}var i={};Yl("ES5",{J:function(c,l){var u=Array.isArray(c),p=(function(h,m){if(h){for(var g=Array(m.length),y=0;y<m.length;y++)Object.defineProperty(g,""+y,e(y,!0));return g}var x=Gi(m);delete x[M];for(var C=Zt(x),O=0;O<C.length;O++){var E=C[O];x[E]=e(E,h||!!x[E].enumerable)}return Object.create(Object.getPrototypeOf(m),x)})(u,c),f={i:u?5:4,A:l?l.A:pn(),P:!1,I:!1,R:{},l,t:c,k:p,o:null,g:!1,C:!1};return Object.defineProperty(p,M,{value:f,writable:!0}),p},S:function(c,l,u){u?We(l)&&l[M].A===c&&t(c.p):(c.u&&(function p(f){if(f&&typeof f=="object"){var h=f[M];if(h){var m=h.t,g=h.k,y=h.R,x=h.i;if(x===4)xt(g,(function(L){L!==M&&(m[L]!==void 0||Kt(m,L)?y[L]||p(g[L]):(y[L]=!0,rt(h)))})),xt(m,(function(L){g[L]!==void 0||Kt(g,L)||(y[L]=!1,rt(h))}));else if(x===5){if(n(h)&&(rt(h),y.length=!0),g.length<m.length)for(var C=g.length;C<m.length;C++)y[C]=!1;else for(var O=m.length;O<g.length;O++)y[O]=!0;for(var E=Math.min(g.length,m.length),R=0;R<E;R++)g.hasOwnProperty(R)||(y[R]=!0),y[R]===void 0&&p(g[R])}}}})(c.p[0]),t(c.p))},K:function(c){return c.i===4?o(c):n(c)}})}var Ui,xr,Sn=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",Jl=typeof Map<"u",ed=typeof Set<"u",Bi=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",zi=Sn?Symbol.for("immer-nothing"):((Ui={})["immer-nothing"]=!0,Ui),Fi=Sn?Symbol.for("immer-draftable"):"__$immer_draftable",M=Sn?Symbol.for("immer-state"):"__$immer_state";var td=""+Object.prototype.constructor,Zt=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,Gi=Object.getOwnPropertyDescriptors||function(e){var t={};return Zt(e).forEach((function(o){t[o]=Object.getOwnPropertyDescriptor(e,o)})),t},mn={},vr={get:function(e,t){if(t===M)return e;var o=tt(e);if(!Kt(o,t))return(function(a,i,c){var l,u=Di(i,c);return u?"value"in u?u.value:(l=u.get)===null||l===void 0?void 0:l.call(a.k):void 0})(e,o,t);var n=o[t];return e.I||!we(n)?n:n===dn(e.t,t)?(un(e),e.o[t]=hn(e.A.h,n,e)):n},has:function(e,t){return t in tt(e)},ownKeys:function(e){return Reflect.ownKeys(tt(e))},set:function(e,t,o){var n=Di(tt(e),t);if(n?.set)return n.set.call(e.k,o),!0;if(!e.P){var a=dn(tt(e),t),i=a?.[M];if(i&&i.t===o)return e.o[t]=o,e.R[t]=!1,!0;if($i(o,a)&&(o!==void 0||Kt(e.t,t)))return!0;un(e),rt(e)}return e.o[t]===o&&(o!==void 0||t in e.o)||Number.isNaN(o)&&Number.isNaN(e.o[t])||(e.o[t]=o,e.R[t]=!0),!0},deleteProperty:function(e,t){return dn(e.t,t)!==void 0||t in e.t?(e.R[t]=!1,un(e),rt(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var o=tt(e),n=Reflect.getOwnPropertyDescriptor(o,t);return n&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:n.enumerable,value:o[t]}},defineProperty:function(){xe(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){xe(12)}},br={};xt(vr,(function(e,t){br[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),br.deleteProperty=function(e,t){return br.set.call(this,e,t,void 0)},br.set=function(e,t,o){return vr.set.call(this,e[0],t,o,e[0])};var rd=(function(){function e(o){var n=this;this.O=Bi,this.D=!0,this.produce=function(a,i,c){if(typeof a=="function"&&typeof i!="function"){var l=i;i=a;var u=n;return function(x){var C=this;x===void 0&&(x=l);for(var O=arguments.length,E=Array(O>1?O-1:0),R=1;R<O;R++)E[R-1]=arguments[R];return u.produce(x,(function(L){var j;return(j=i).call.apply(j,[C,L].concat(E))}))}}var p;if(typeof i!="function"&&xe(6),c!==void 0&&typeof c!="function"&&xe(7),we(a)){var f=ki(n),h=hn(n,a,void 0),m=!0;try{p=i(h),m=!1}finally{m?Qr(f):fn(f)}return typeof Promise<"u"&&p instanceof Promise?p.then((function(x){return cn(f,c),ln(x,f)}),(function(x){throw Qr(f),x})):(cn(f,c),ln(p,f))}if(!a||typeof a!="object"){if((p=i(a))===void 0&&(p=a),p===zi&&(p=void 0),n.D&&xn(p,!0),c){var g=[],y=[];Me("Patches").M(a,p,g,y),c(g,y)}return p}xe(21,a)},this.produceWithPatches=function(a,i){if(typeof a=="function")return function(p){for(var f=arguments.length,h=Array(f>1?f-1:0),m=1;m<f;m++)h[m-1]=arguments[m];return n.produceWithPatches(p,(function(g){return a.apply(void 0,[g].concat(h))}))};var c,l,u=n.produce(a,i,(function(p,f){c=p,l=f}));return typeof Promise<"u"&&u instanceof Promise?u.then((function(p){return[p,c,l]})):[u,c,l]},typeof o?.useProxies=="boolean"&&this.setUseProxies(o.useProxies),typeof o?.autoFreeze=="boolean"&&this.setAutoFreeze(o.autoFreeze)}var t=e.prototype;return t.createDraft=function(o){we(o)||xe(8),We(o)&&(o=Ql(o));var n=ki(this),a=hn(this,o,void 0);return a[M].C=!0,fn(n),a},t.finishDraft=function(o,n){var a=o&&o[M],i=a.A;return cn(i,n),ln(void 0,i)},t.setAutoFreeze=function(o){this.D=o},t.setUseProxies=function(o){o&&!Bi&&xe(20),this.O=o},t.applyPatches=function(o,n){var a;for(a=n.length-1;a>=0;a--){var i=n[a];if(i.path.length===0&&i.op==="replace"){o=i.value;break}}a>-1&&(n=n.slice(a+1));var c=Me("Patches").$;return We(o)?c(o,n):this.produce(o,(function(l){return c(l,n)}))},e})(),de=new rd,od=de.produce,Dg=de.produceWithPatches.bind(de),Mg=de.setAutoFreeze.bind(de),Ug=de.setUseProxies.bind(de),Bg=de.applyPatches.bind(de),Fg=de.createDraft.bind(de),Hg=de.finishDraft.bind(de),to=od;function vt(e){"@babel/helpers - typeof";return vt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},vt(e)}function ji(e,t){if(vt(e)!="object"||!e)return e;var o=e[Symbol.toPrimitive];if(o!==void 0){var n=o.call(e,t||"default");if(vt(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Vi(e){var t=ji(e,"string");return vt(t)=="symbol"?t:t+""}function Ki(e,t,o){return(t=Vi(t))in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function Zi(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),o.push.apply(o,n)}return o}function Cn(e){for(var t=1;t<arguments.length;t++){var o=arguments[t]!=null?arguments[t]:{};t%2?Zi(Object(o),!0).forEach(function(n){Ki(e,n,o[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Zi(Object(o)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(o,n))})}return e}function Y(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var qi=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})(),On=function(){return Math.random().toString(36).substring(7).split("").join(".")},ro={INIT:"@@redux/INIT"+On(),REPLACE:"@@redux/REPLACE"+On(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+On()}};function nd(e){if(typeof e!="object"||e===null)return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function En(e,t,o){var n;if(typeof t=="function"&&typeof o=="function"||typeof o=="function"&&typeof arguments[3]=="function")throw new Error(Y(0));if(typeof t=="function"&&typeof o>"u"&&(o=t,t=void 0),typeof o<"u"){if(typeof o!="function")throw new Error(Y(1));return o(En)(e,t)}if(typeof e!="function")throw new Error(Y(2));var a=e,i=t,c=[],l=c,u=!1;function p(){l===c&&(l=c.slice())}function f(){if(u)throw new Error(Y(3));return i}function h(x){if(typeof x!="function")throw new Error(Y(4));if(u)throw new Error(Y(5));var C=!0;return p(),l.push(x),function(){if(C){if(u)throw new Error(Y(6));C=!1,p();var E=l.indexOf(x);l.splice(E,1),c=null}}}function m(x){if(!nd(x))throw new Error(Y(7));if(typeof x.type>"u")throw new Error(Y(8));if(u)throw new Error(Y(9));try{u=!0,i=a(i,x)}finally{u=!1}for(var C=c=l,O=0;O<C.length;O++){var E=C[O];E()}return x}function g(x){if(typeof x!="function")throw new Error(Y(10));a=x,m({type:ro.REPLACE})}function y(){var x,C=h;return x={subscribe:function(E){if(typeof E!="object"||E===null)throw new Error(Y(11));function R(){E.next&&E.next(f())}R();var L=C(R);return{unsubscribe:L}}},x[qi]=function(){return this},x}return m({type:ro.INIT}),n={dispatch:m,subscribe:h,getState:f,replaceReducer:g},n[qi]=y,n}function ad(e){Object.keys(e).forEach(function(t){var o=e[t],n=o(void 0,{type:ro.INIT});if(typeof n>"u")throw new Error(Y(12));if(typeof o(void 0,{type:ro.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Y(13))})}function Yi(e){for(var t=Object.keys(e),o={},n=0;n<t.length;n++){var a=t[n];typeof e[a]=="function"&&(o[a]=e[a])}var i=Object.keys(o),c,l;try{ad(o)}catch(u){l=u}return function(p,f){if(p===void 0&&(p={}),l)throw l;if(0)var h;for(var m=!1,g={},y=0;y<i.length;y++){var x=i[y],C=o[x],O=p[x],E=C(O,f);if(typeof E>"u"){var R=f&&f.type;throw new Error(Y(14))}g[x]=E,m=m||E!==O}return m=m||i.length!==Object.keys(p).length,m?g:p}}function Yt(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return t.length===0?function(n){return n}:t.length===1?t[0]:t.reduce(function(n,a){return function(){return n(a.apply(void 0,arguments))}})}function Xi(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return function(n){return function(){var a=n.apply(void 0,arguments),i=function(){throw new Error(Y(15))},c={getState:a.getState,dispatch:function(){return i.apply(void 0,arguments)}},l=t.map(function(u){return u(c)});return i=Yt.apply(void 0,l)(a.dispatch),Cn(Cn({},a),{},{dispatch:i})}}}function Qi(e){var t=function(n){var a=n.dispatch,i=n.getState;return function(c){return function(l){return typeof l=="function"?l(a,i,e):c(l)}}};return t}var Ji=Qi();Ji.withExtraArgument=Qi;var An=Ji;var ns=(function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},e(t,o)};return function(t,o){if(typeof o!="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");e(t,o);function n(){this.constructor=t}t.prototype=o===null?Object.create(o):(n.prototype=o.prototype,new n)}})(),id=function(e,t){var o={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,c;return c={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(c[Symbol.iterator]=function(){return this}),c;function l(p){return function(f){return u([p,f])}}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=t.call(e,o)}catch(f){p=[6,f],a=0}finally{n=i=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},Xt=function(e,t){for(var o=0,n=t.length,a=e.length;o<n;o++,a++)e[a]=t[o];return e},sd=Object.defineProperty,cd=Object.defineProperties,ld=Object.getOwnPropertyDescriptors,es=Object.getOwnPropertySymbols,dd=Object.prototype.hasOwnProperty,ud=Object.prototype.propertyIsEnumerable,ts=function(e,t,o){return t in e?sd(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o},ot=function(e,t){for(var o in t||(t={}))dd.call(t,o)&&ts(e,o,t[o]);if(es)for(var n=0,a=es(t);n<a.length;n++){var o=a[n];ud.call(t,o)&&ts(e,o,t[o])}return e},wn=function(e,t){return cd(e,ld(t))},pd=function(e,t,o){return new Promise(function(n,a){var i=function(u){try{l(o.next(u))}catch(p){a(p)}},c=function(u){try{l(o.throw(u))}catch(p){a(p)}},l=function(u){return u.done?n(u.value):Promise.resolve(u.value).then(i,c)};l((o=o.apply(e,t)).next())})};var fd=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Yt:Yt.apply(null,arguments)},ny=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(e){return e}};function hd(e){if(typeof e!="object"||e===null)return!1;var t=Object.getPrototypeOf(e);if(t===null)return!0;for(var o=t;Object.getPrototypeOf(o)!==null;)o=Object.getPrototypeOf(o);return t===o}function nt(e,t){function o(){for(var n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];if(t){var i=t.apply(void 0,n);if(!i)throw new Error("prepareAction did not return an object");return ot(ot({type:e,payload:i.payload},"meta"in i&&{meta:i.meta}),"error"in i&&{error:i.error})}return{type:e,payload:n[0]}}return o.toString=function(){return""+e},o.type=e,o.match=function(n){return n.type===e},o}var md=(function(e){ns(t,e);function t(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var a=e.apply(this,o)||this;return Object.setPrototypeOf(a,t.prototype),a}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return e.prototype.concat.apply(this,o)},t.prototype.prepend=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return o.length===1&&Array.isArray(o[0])?new(t.bind.apply(t,Xt([void 0],o[0].concat(this)))):new(t.bind.apply(t,Xt([void 0],o.concat(this))))},t})(Array),gd=(function(e){ns(t,e);function t(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var a=e.apply(this,o)||this;return Object.setPrototypeOf(a,t.prototype),a}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return e.prototype.concat.apply(this,o)},t.prototype.prepend=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return o.length===1&&Array.isArray(o[0])?new(t.bind.apply(t,Xt([void 0],o[0].concat(this)))):new(t.bind.apply(t,Xt([void 0],o.concat(this))))},t})(Array);function Tn(e){return we(e)?to(e,function(){}):e}function yd(e){return typeof e=="boolean"}function bd(){return function(t){return xd(t)}}function xd(e){e===void 0&&(e={});var t=e.thunk,o=t===void 0?!0:t,n=e.immutableCheck,a=n===void 0?!0:n,i=e.serializableCheck,c=i===void 0?!0:i,l=e.actionCreatorCheck,u=l===void 0?!0:l,p=new md;if(o&&(yd(o)?p.push(An):p.push(An.withExtraArgument(o.extraArgument))),0){if(a)var f;if(c)var h;if(u)var m}return p}var Rn=!0;function as(e){var t=bd(),o=e||{},n=o.reducer,a=n===void 0?void 0:n,i=o.middleware,c=i===void 0?t():i,l=o.devTools,u=l===void 0?!0:l,p=o.preloadedState,f=p===void 0?void 0:p,h=o.enhancers,m=h===void 0?void 0:h,g;if(typeof a=="function")g=a;else if(hd(a))g=Yi(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 y=c;if(typeof y=="function"&&(y=y(t),!Rn&&!Array.isArray(y)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!Rn&&y.some(function(L){return typeof L!="function"}))throw new Error("each middleware provided to configureStore must be a function");var x=Xi.apply(void 0,y),C=Yt;u&&(C=fd(ot({trace:!Rn},typeof u=="object"&&u)));var O=new gd(x),E=O;Array.isArray(m)?E=Xt([x],m):typeof m=="function"&&(E=m(O));var R=C.apply(void 0,E);return En(g,f,R)}function is(e){var t={},o=[],n,a={addCase:function(i,c){var l=typeof i=="string"?i:i.type;if(!l)throw new Error("`builder.addCase` cannot be called with an empty action type");if(l in t)throw new Error("`builder.addCase` cannot be called with two reducers for the same action type");return t[l]=c,a},addMatcher:function(i,c){return o.push({matcher:i,reducer:c}),a},addDefaultCase:function(i){return n=i,a}};return e(a),[t,o,n]}function vd(e){return typeof e=="function"}function Sd(e,t,o,n){o===void 0&&(o=[]);var a=typeof t=="function"?is(t):[t,o,n],i=a[0],c=a[1],l=a[2],u;if(vd(e))u=function(){return Tn(e())};else{var p=Tn(e);u=function(){return p}}function f(h,m){h===void 0&&(h=u());var g=Xt([i[m.type]],c.filter(function(y){var x=y.matcher;return x(m)}).map(function(y){var x=y.reducer;return x}));return g.filter(function(y){return!!y}).length===0&&(g=[l]),g.reduce(function(y,x){if(x)if(We(y)){var C=y,O=x(C,m);return O===void 0?y:O}else{if(we(y))return to(y,function(E){return x(E,m)});var O=x(y,m);if(O===void 0){if(y===null)return y;throw Error("A case reducer on a non-draftable value must not return undefined")}return O}return y},h)}return f.getInitialState=u,f}function Cd(e,t){return e+"/"+t}function ss(e){var t=e.name;if(!t)throw new Error("`name` is a required option for createSlice");typeof process<"u";var o=typeof e.initialState=="function"?e.initialState:Tn(e.initialState),n=e.reducers||{},a=Object.keys(n),i={},c={},l={};a.forEach(function(f){var h=n[f],m=Cd(t,f),g,y;"reducer"in h?(g=h.reducer,y=h.prepare):g=h,i[f]=g,c[m]=g,l[f]=y?nt(m,y):nt(m)});function u(){var f=typeof e.extraReducers=="function"?is(e.extraReducers):[e.extraReducers],h=f[0],m=h===void 0?{}:h,g=f[1],y=g===void 0?[]:g,x=f[2],C=x===void 0?void 0:x,O=ot(ot({},m),c);return Sd(o,function(E){for(var R in O)E.addCase(R,O[R]);for(var L=0,j=y;L<j.length;L++){var F=j[L];E.addMatcher(F.matcher,F.reducer)}C&&E.addDefaultCase(C)})}var p;return{name:t,reducer:function(f,h){return p||(p=u()),p(f,h)},actions:l,caseReducers:i,getInitialState:function(){return p||(p=u()),p.getInitialState()}}}var Od="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Ed=function(e){e===void 0&&(e=21);for(var t="",o=e;o--;)t+=Od[Math.random()*64|0];return t},Ad=["name","message","stack","code"],Ln=(function(){function e(t,o){this.payload=t,this.meta=o}return e})(),rs=(function(){function e(t,o){this.payload=t,this.meta=o}return e})(),wd=function(e){if(typeof e=="object"&&e!==null){for(var t={},o=0,n=Ad;o<n.length;o++){var a=n[o];typeof e[a]=="string"&&(t[a]=e[a])}return t}return{message:String(e)}},cy=(function(){function e(t,o,n){var a=nt(t+"/fulfilled",function(f,h,m,g){return{payload:f,meta:wn(ot({},g||{}),{arg:m,requestId:h,requestStatus:"fulfilled"})}}),i=nt(t+"/pending",function(f,h,m){return{payload:void 0,meta:wn(ot({},m||{}),{arg:h,requestId:f,requestStatus:"pending"})}}),c=nt(t+"/rejected",function(f,h,m,g,y){return{payload:g,error:(n&&n.serializeError||wd)(f||"Rejected"),meta:wn(ot({},y||{}),{arg:m,requestId:h,rejectedWithValue:!!g,requestStatus:"rejected",aborted:f?.name==="AbortError",condition:f?.name==="ConditionError"})}}),l=!1,u=typeof AbortController<"u"?AbortController:(function(){function f(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return f.prototype.abort=function(){},f})();function p(f){return function(h,m,g){var y=n?.idGenerator?n.idGenerator(f):Ed(),x=new u,C,O=!1;function E(L){C=L,x.abort()}var R=(function(){return pd(this,null,function(){var L,j,F,Ke,Do,Ze,ie;return id(this,function(fe){switch(fe.label){case 0:return fe.trys.push([0,4,,5]),Ke=(L=n?.condition)==null?void 0:L.call(n,f,{getState:m,extra:g}),Ld(Ke)?[4,Ke]:[3,2];case 1:Ke=fe.sent(),fe.label=2;case 2:if(Ke===!1||x.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return O=!0,Do=new Promise(function(se,ct){return x.signal.addEventListener("abort",function(){return ct({name:"AbortError",message:C||"Aborted"})})}),h(i(y,f,(j=n?.getPendingMeta)==null?void 0:j.call(n,{requestId:y,arg:f},{getState:m,extra:g}))),[4,Promise.race([Do,Promise.resolve(o(f,{dispatch:h,getState:m,extra:g,requestId:y,signal:x.signal,abort:E,rejectWithValue:function(se,ct){return new Ln(se,ct)},fulfillWithValue:function(se,ct){return new rs(se,ct)}})).then(function(se){if(se instanceof Ln)throw se;return se instanceof rs?a(se.payload,y,f,se.meta):a(se,y,f)})])];case 3:return F=fe.sent(),[3,5];case 4:return Ze=fe.sent(),F=Ze instanceof Ln?c(null,y,f,Ze.payload,Ze.meta):c(Ze,y,f),[3,5];case 5:return ie=n&&!n.dispatchConditionRejection&&c.match(F)&&F.meta.condition,ie||h(F),[2,F]}})})})();return Object.assign(R,{abort:E,requestId:y,arg:f,unwrap:function(){return R.then(Rd)}})}}return Object.assign(p,{pending:i,rejected:c,fulfilled:a,typePrefix:t})}return e.withTypes=function(){return e},e})();function Rd(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function Ld(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var cs="listener",ls="completed",ds="cancelled",ly="task-"+ds,dy="task-"+ls,uy=cs+"-"+ds,py=cs+"-"+ls;var _n="listenerMiddleware";var fy=nt(_n+"/add"),hy=nt(_n+"/removeAll"),my=nt(_n+"/remove");var os,gy=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(e){return(os||(os=Promise.resolve())).then(e).catch(function(t){return setTimeout(function(){throw t},0)})},Td=function(e){return function(t){setTimeout(t,e)}},yy=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Td(10);Wi();var _d=Vr(Symbol("withEventBus"),function(e,t){return class extends e{constructor(){super(...arguments),this.eventBus=t??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)}}}),oo=class extends _d(Object){};window.ftReduxStores||(window.ftReduxStores={});var us=class e extends oo{static get(t){var o;let n=typeof t=="string"?t:t.name,a=typeof t=="string"?void 0:t,i=window.ftReduxStores[n];if(Xr(i))return i;if(a==null)return;let c=ss({...a,reducers:(o=a.reducers)!==null&&o!==void 0?o:{}}),l=as({reducer:(u,p)=>{if(p.type==="CLEAR_FT_REDUX_STORE"){let f=mr(c.getInitialState());for(let h of p.keeping)f[h]=(u??f)[h];return f}else if(typeof p.type=="string"&&p.type.startsWith("DEFAULT_VALUE_SETTER__"))return{...u,...p.overwrites};return c.reducer(u,p)}});return window.ftReduxStores[a.name]=new e(c,l,a.eventBus)}constructor(t,o,n){super(),this.reduxSlice=t,this.reduxStore=o,this.isFtReduxStore=!0,this.commands=new Kr;let a=i=>i!=null?JSON.parse(JSON.stringify(i)):i;this.actions=new Proxy(this.reduxSlice.actions,{get:(i,c,l)=>{let u=c,p=i[u];return p?(...f)=>{let h=p(...f.map(a));return this.reduxStore.dispatch(h),h}:f=>{this.setState({[u]:a(f)})}}}),this.eventBus=n??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:[]})}clearKeeping(...t){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:t})}setState(t){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(t).join("_"),overwrites:t})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(t){throw new Error("Not implemented yet.")}subscribe(t){return this.reduxStore.subscribe(t)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};var no=class{static format(t,o,n,a,i){return window.moment?window.moment(t).locale(o).format(this.getMomentDateFormat(n,a,!!i)):this.getIntlDateTime(t,o,n,a,!!i)}static getMomentDateFormat(t,o,n){return n?"LT":t?o?"lll":"ll":o?"L LT":"L"}static getIntlDateTime(t,o,n,a,i){let c=typeof t=="string"?new Date(t):t,l=new Intl.DateTimeFormat(o,{dateStyle:n?"medium":"short"}).format(c),u=new Intl.DateTimeFormat(o,{timeStyle:"short"}).format(c);return i?u:a?`${l} ${u}`:l}static getTimezoneAsString(){let t=n=>String(Math.floor(n)).padStart(2,"0"),o=new Date().getTimezoneOffset();return`${o<0?"+":"-"}${t(Math.abs(o)/60)}:${t(Math.abs(o)%60)}`}};var ao=b(w()),Id="ft-app-info",Qt=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:t})}};Qt.eventName="authentication-change";var Sr=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:t})}};Sr.eventName="ui-locale-changed";var Nd={session:(e,t)=>{(0,ao.deepEqual)(e.session,t.payload)||(e.session=t.payload,setTimeout(()=>_.dispatchEvent(new Qt(t.payload)),0))}},_=ao.FtReduxStore.get({name:Id,reducers:Nd,initialState:{baseUrl:void 0,apiIntegrationIdentifier:void 0,apiIntegrationAppVersion:void 0,uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],availableContentLocales:[],defaultLocales:void 0,searchInAllLanguagesAllowed:!1,searchLanguageSetsUiLanguage:!1,uiLanguageSetsSearchLanguage:!1,uiLanguageSetsReaderLanguage:!1,metadataConfiguration:void 0,privacyPolicyConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1,authenticationRequired:!1}});var ps=b(w()),io=function(e,t,o,n){var a=arguments.length,i=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,n);else for(var l=e.length-1;l>=0;l--)(c=e[l])&&(i=(a<3?c(i):a>3?c(t,o,i):c(t,o))||i);return a>3&&i&&Object.defineProperty(t,o,i),i},jy=(0,ps.applyMixinOnce)(Symbol("withDateFormat"),function(e){class t extends e{constructor(...n){super(n),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(_)}dateFormatOptionsChanged(n){return n.has("metadataDescriptors")||n.has("useLongDateFormat")||n.has("useDateTimeFormat")||n.has("uiLocale")}getDateFormatter(n){var a,i;return((i=(a=this.metadataDescriptors.find(l=>l.key===n))===null||a===void 0?void 0:a.date)!==null&&i!==void 0?i:!1)?l=>no.format(l,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return io([(0,In.property)({type:Boolean})],t.prototype,"useLongDateFormat",void 0),io([(0,In.property)({type:Boolean})],t.prototype,"useDateTimeFormat",void 0),io([sn({store:_.name,selector:o=>{var n,a;return(a=(n=o.metadataConfiguration)===null||n===void 0?void 0:n.descriptors)!==null&&a!==void 0?a:[]}})],t.prototype,"metadataDescriptors",void 0),io([sn({store:_.name})],t.prototype,"uiLocale",void 0),t});var fs;(function(e){e.black="black",e.green="green",e.blue="blue",e.purple="purple",e.red="red",e.orange="orange",e.yellow="yellow"})(fs||(fs={}));var hs;(function(e){e.OFFICIAL="OFFICIAL",e.PERSONAL="PERSONAL",e.SHARED="SHARED"})(hs||(hs={}));var ms;(function(e){e.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",e.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",e.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",e.PERSONAL_BOOK="PERSONAL_BOOK",e.ATTACHMENT="ATTACHMENT",e.RESOURCE="RESOURCE",e.HTML_PACKAGE="HTML_PACKAGE"})(ms||(ms={}));var gs;(function(e){e.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",e.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",e.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",e.PERSONAL_BOOK="PERSONAL_BOOK",e.ATTACHMENT="ATTACHMENT",e.RESOURCE="RESOURCE",e.HTML_PACKAGE="HTML_PACKAGE"})(gs||(gs={}));var ys;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(ys||(ys={}));var bs;(function(e){e.VALUE="VALUE",e.DATE="DATE",e.RANGE="RANGE"})(bs||(bs={}));var xs;(function(e){e.OFFICIAL="OFFICIAL",e.AI="AI"})(xs||(xs={}));var vs;(function(e){e.BOOKMARK__CREATE="BOOKMARK__CREATE",e.BOOKMARK__DELETE="BOOKMARK__DELETE",e.CASE_DEFLECTION__START="CASE_DEFLECTION__START",e.CASE_DEFLECTION__OPEN_TICKET="CASE_DEFLECTION__OPEN_TICKET",e.CASE_DEFLECTION__RATE="CASE_DEFLECTION__RATE",e.CHATBOT__RATE="CHATBOT__RATE",e.COLLECTION__CREATE="COLLECTION__CREATE",e.COLLECTION__UPDATE="COLLECTION__UPDATE",e.COLLECTION__DELETE="COLLECTION__DELETE",e.CUSTOM_EVENT__TRIGGER="CUSTOM_EVENT__TRIGGER",e.DOCUMENT__ON_DEMAND_TRANSLATE="DOCUMENT__ON_DEMAND_TRANSLATE",e.DOCUMENT__DOWNLOAD="DOCUMENT__DOWNLOAD",e.DOCUMENT__PRINT="DOCUMENT__PRINT",e.DOCUMENT__PROCESS="DOCUMENT__PROCESS",e.DOCUMENT__RATE="DOCUMENT__RATE",e.DOCUMENT__SEARCH="DOCUMENT__SEARCH",e.DOCUMENT__START_DISPLAY="DOCUMENT__START_DISPLAY",e.DOCUMENT__UNRATE="DOCUMENT__UNRATE",e.FEEDBACK__SEND="FEEDBACK__SEND",e.AI__COMPLETED_QUERY="AI__COMPLETED_QUERY",e.AI__RATE="AI__RATE",e.AI_CASE_DEFLECTION__START="AI_CASE_DEFLECTION__START",e.AI_CASE_DEFLECTION__OPEN_TICKET="AI_CASE_DEFLECTION__OPEN_TICKET",e.KHUB__PROCESS="KHUB__PROCESS",e.KHUB__SEARCH="KHUB__SEARCH",e.LABELS__DOWNLOAD="LABELS__DOWNLOAD",e.LINK__SHARE="LINK__SHARE",e.PAGE__DISPLAY="PAGE__DISPLAY",e.PERSONAL_BOOK__CREATE="PERSONAL_BOOK__CREATE",e.PERSONAL_BOOK__DELETE="PERSONAL_BOOK__DELETE",e.PERSONAL_BOOK__UPDATE="PERSONAL_BOOK__UPDATE",e.PERSONAL_TOPIC__CREATE="PERSONAL_TOPIC__CREATE",e.PERSONAL_TOPIC__UPDATE="PERSONAL_TOPIC__UPDATE",e.PERSONAL_TOPIC__DELETE="PERSONAL_TOPIC__DELETE",e.SAVED_SEARCH__CREATE="SAVED_SEARCH__CREATE",e.SAVED_SEARCH__DELETE="SAVED_SEARCH__DELETE",e.SAVED_SEARCH__UPDATE="SAVED_SEARCH__UPDATE",e.SEARCH_PAGE__SELECT="SEARCH_PAGE__SELECT",e.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU="SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU",e.TOPIC__AI_TRANSLATE="TOPIC__AI_TRANSLATE",e.TOPIC__RATE="TOPIC__RATE",e.TOPIC__START_DISPLAY="TOPIC__START_DISPLAY",e.TOPIC__UNRATE="TOPIC__UNRATE",e.USER__LOGIN="USER__LOGIN",e.USER__LOGOUT="USER__LOGOUT",e.HEARTBEAT="HEARTBEAT"})(vs||(vs={}));var Ss;(function(e){e.STANDARD="STANDARD",e.STRUCTURAL="STRUCTURAL"})(Ss||(Ss={}));var Cs;(function(e){e.THIRD_PARTY="THIRD_PARTY",e.OFF_THE_GRID="OFF_THE_GRID",e.CONTENT_PACKAGER="CONTENT_PACKAGER",e.PAGES="PAGES",e.DESIGNED_READER="DESIGNED_READER"})(Cs||(Cs={}));var Os;(function(e){e.HOMEPAGE="HOMEPAGE",e.CUSTOM="CUSTOM",e.HEADER="HEADER",e.READER="READER",e.TOPIC_TEMPLATE="TOPIC_TEMPLATE",e.SEARCH="SEARCH",e.SEARCH_RESULT="SEARCH_RESULT",e.SEARCH_ANNOUNCEMENT="SEARCH_ANNOUNCEMENT",e.LINK_PREVIEW="LINK_PREVIEW",e.UD_VIEWER="UD_VIEWER",e.ASSET_VIEWER="ASSET_VIEWER"})(Os||(Os={}));var Es;(function(e){e.CLASSIC="CLASSIC",e.CUSTOM="CUSTOM",e.DESIGNER="DESIGNER"})(Es||(Es={}));var As;(function(e){e.AND="AND",e.OR="OR",e.MONOVALUED="MONOVALUED"})(As||(As={}));var ws;(function(e){e.NONE="NONE",e.ALPHABET="ALPHABET",e.VERSION="VERSION"})(ws||(ws={}));var Rs;(function(e){e.STARS="STARS",e.LIKE="LIKE",e.DICHOTOMOUS="DICHOTOMOUS",e.NO_RATING="NO_RATING"})(Rs||(Rs={}));var Ls;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR",e.CUSTOM="CUSTOM"})(Ls||(Ls={}));var Nn;(function(e){e.OPTIONAL="OPTIONAL",e.MANDATORY="MANDATORY"})(Nn||(Nn={}));var Ts;(function(e){e.ASC="ASC",e.DESC="DESC"})(Ts||(Ts={}));var _s;(function(e){e.ALPHA="ALPHA",e.NATURAL="NATURAL"})(_s||(_s={}));var kn;(function(e){e.EVERYWHERE="EVERYWHERE",e.TITLE_ONLY="TITLE_ONLY",e.NONE="NONE"})(kn||(kn={}));var Is;(function(e){e.ARTICLE="ARTICLE",e.BOOK="BOOK",e.SHARED_BOOK="SHARED_BOOK",e.HTML_PACKAGE="HTML_PACKAGE"})(Is||(Is={}));var so;(function(e){e.FLUIDTOPICS="FLUIDTOPICS",e.EXTERNAL="EXTERNAL"})(so||(so={}));var Ns;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC",e.PERSONAL_BOOK="PERSONAL_BOOK",e.SHARED_BOOK="SHARED_BOOK",e.HTML_PACKAGE="HTML_PACKAGE"})(Ns||(Ns={}));var ks;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(ks||(ks={}));var Ps;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC",e.HTML_PACKAGE="HTML_PACKAGE",e.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(Ps||(Ps={}));var Pn;(function(e){e.DEFAULT="DEFAULT",e.DOCUMENTS="DOCUMENTS",e.ALL_TOPICS="ALL_TOPICS",e.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(Pn||(Pn={}));var Ds;(function(e){e.PLAIN_TEXT="PLAIN_TEXT",e.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",e.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(Ds||(Ds={}));var $;(function(e){e.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",e.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",e.HTML_EXPORT_USER="HTML_EXPORT_USER",e.PDF_EXPORT_USER="PDF_EXPORT_USER",e.SAVED_SEARCH_USER="SAVED_SEARCH_USER",e.COLLECTION_USER="COLLECTION_USER",e.OFFLINE_USER="OFFLINE_USER",e.ANALYTICS_USER="ANALYTICS_USER",e.BETA_USER="BETA_USER",e.DEBUG_USER="DEBUG_USER",e.PRINT_USER="PRINT_USER",e.RATING_USER="RATING_USER",e.FEEDBACK_USER="FEEDBACK_USER",e.GENERATIVE_AI_USER="GENERATIVE_AI_USER",e.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_USER",e.CONTENT_PUBLISHER="CONTENT_PUBLISHER",e.BEHAVIOR_DATA_USER="BEHAVIOR_DATA_USER",e.ANNOUNCEMENT_ADMIN="ANNOUNCEMENT_ADMIN",e.KHUB_ADMIN="KHUB_ADMIN",e.USERS_ADMIN="USERS_ADMIN",e.PORTAL_ADMIN="PORTAL_ADMIN",e.ADMIN="ADMIN"})($||($={}));var ve;(function(e){e.SEARCHES="SEARCHES",e.BOOKMARKS="BOOKMARKS",e.BOOKS="BOOKS",e.COLLECTIONS="COLLECTIONS"})(ve||(ve={}));var Ms;(function(e){e.UNAUTHENTICATED="UNAUTHENTICATED",e.USER_INCOMPLETE="USER_INCOMPLETE",e.MFA_REQUIRED="MFA_REQUIRED",e.AUTHENTICATED="AUTHENTICATED"})(Ms||(Ms={}));var Us;(function(e){e.UNREACHABLE="UNREACHABLE",e.UNAUTHORIZED="UNAUTHORIZED",e.FORBIDDEN="FORBIDDEN",e.INCOMPATIBLE="INCOMPATIBLE",e.FAILED="FAILED",e.OK="OK"})(Us||(Us={}));var Bs;(function(e){e.VALID="VALID",e.INVALID="INVALID"})(Bs||(Bs={}));var Fs;(function(e){e.INACCURATE="INACCURATE",e.INCOMPLETE="INCOMPLETE",e.OFF_TOPIC="OFF_TOPIC",e.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",e.SUMMARY="SUMMARY",e.SEMANTIC_SEARCH="SEMANTIC_SEARCH",e.CHATBOT_INSTRUCTIONS="CHATBOT_INSTRUCTIONS",e.OTHER="OTHER"})(Fs||(Fs={}));var Hs;(function(e){e.INACCURATE="INACCURATE",e.INCOMPLETE="INCOMPLETE",e.OFF_TOPIC="OFF_TOPIC",e.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",e.SLOW="SLOW",e.OTHER="OTHER"})(Hs||(Hs={}));var $s;(function(e){e.JSON="JSON",e.TEXT="TEXT"})($s||($s={}));var Ws;(function(e){e.JSON="JSON",e.TEXT="TEXT"})(Ws||(Ws={}));var zs;(function(e){e.TEXT="TEXT",e.HTML="HTML"})(zs||(zs={}));var Gs;(function(e){e.IN_PROGRESS="IN_PROGRESS",e.ERROR="ERROR",e.DONE="DONE"})(Gs||(Gs={}));var js;(function(e){e.HTML="HTML",e.MARKDOWN="MARKDOWN"})(js||(js={}));var Vs;(function(e){e.SOURCES="SOURCES",e.ENRICH_AND_CLEAN="ENRICH_AND_CLEAN",e.VOCABULARIES="VOCABULARIES",e.METADATA="METADATA",e.PRETTY_URL="PRETTY_URL",e.ACCESS_RULE="ACCESS_RULE",e.DESIGNED_PAGES="DESIGNED_PAGES",e.THEME_STUDIO="THEME_STUDIO",e.PORTAL_GENERAL="PORTAL_GENERAL",e.ASSETS="ASSETS",e.CODE_LIBRARY="CODE_LIBRARY",e.THEME="THEME",e.CONTENT_STYLES="CONTENT_STYLES",e.HOMEPAGE="HOMEPAGE",e.CLASSIC_SEARCH_PAGE="CLASSIC_SEARCH_PAGE",e.CLASSIC_READER_PAGE="CLASSIC_READER_PAGE",e.PORTAL_METADATA="PORTAL_METADATA",e.LANGUAGES="LANGUAGES",e.PRINT_TEMPLATES="PRINT_TEMPLATES",e.OFFLINE="OFFLINE",e.CUSTOM_JS="CUSTOM_JS",e.CONFIDENTIALITY="CONFIDENTIALITY",e.NOTIFICATIONS="NOTIFICATIONS"})(Vs||(Vs={}));var Ks;(function(e){e.MAP="MAP",e.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(Ks||(Ks={}));var kd={[$.PERSONAL_BOOK_SHARE_USER]:[$.PERSONAL_BOOK_USER],[$.HTML_EXPORT_USER]:[$.PERSONAL_BOOK_USER],[$.PDF_EXPORT_USER]:[$.PERSONAL_BOOK_USER],[$.KHUB_ADMIN]:[$.CONTENT_PUBLISHER],[$.ADMIN]:[$.KHUB_ADMIN,$.USERS_ADMIN,$.PORTAL_ADMIN,$.BEHAVIOR_DATA_USER],[$.GENERATIVE_AI_EXPORT_USER]:[$.GENERATIVE_AI_USER]};function Zs(e,t){return e===t||(kd[e]??[]).some(o=>Zs(o,t))}function qs(e,t){return e==null?!1:(Array.isArray(e)?e:Array.isArray(e.roles)?e.roles:Array.isArray(e.profile?.roles)?e.profile.roles:[]).some(n=>Zs(n,t))}var fo=b(w());var Dn=b(w());var St=class e{static get(t){let{baseUrl:o,apiIntegrationIdentifier:n}=_.getState(),a=t??n;if(o&&a&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(o,a,!0)}static await(t){return new Promise(o=>{let n=e.get(t);if(n)o(n);else{let a=_.subscribe(()=>{n=e.get(t),n&&(a(),o(n))})}})}};var Jt=class{constructor(t){this.overrideApi=t}get api(){var t;return(t=this.overrideApi)!==null&&t!==void 0?t:St.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):St.await()}};var oe=class extends Jt{constructor(t=!0,o){var n;super(o),this.sortObjectFields=(i,c)=>typeof c!="object"||c==null||Array.isArray(c)?c:Object.fromEntries(Object.entries(c).sort(([l],[u])=>l.localeCompare(u)));let a=this.constructor;a.commonCache=(n=a.commonCache)!==null&&n!==void 0?n:new Dn.CacheRegistry,this.cache=t?a.commonCache:new Dn.CacheRegistry}clearCache(){this.cache.clearAll()}hash(t){return String(Array.from(JSON.stringify(t,this.sortObjectFields)).reduce((o,n)=>0|31*o+n.charCodeAt(0),0))}};var co=class extends oe{async listMySearches(){let{session:t}=_.getState();return qs(t,$.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(t.profile.userId),300*1e3):[]}};var lo=class extends oe{async listMyBookmarks(){let t=_.getState().session;return t?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(t.profile.userId),300*1e3):[]}};var uo=class extends oe{constructor(){super(...arguments),this.CACHE_DURATION=180*1e3}async getUserAssetCount(t){if(this.isAuthenticated())return this.cache.get(`user-asset-count-${t}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/${t}`),this.CACHE_DURATION)}async getUserBookmarkCountByMap(t){if(this.isAuthenticated())return this.cache.get(`user-bookmark-count-by-map-${t}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/BOOKMARKS/${t}`),this.CACHE_DURATION)}isAuthenticated(){let t=_.getState().session;return!!t?.sessionAuthenticated}};var po=class extends oe{constructor(){super(...arguments),this.CACHE_DURATION=180*1e3}async getUserAssetLabels(){return this.isAuthenticated()?this.cache.get("user-asset-labels",async()=>(await this.awaitApi).get("/internal/api/webapp/user/assets/labels"),this.CACHE_DURATION):[]}isAuthenticated(){let t=_.getState().session;return!!t?.sessionAuthenticated}};var Pd="ft-user-assets",Dd={setAssetCount:(e,t)=>{let{userAssetType:o,count:n}=t.payload.assetCount;e.assetCounts.allAsset[o]=n},clearAssetCount:e=>{Object.values(ve).forEach(t=>{e.assetCounts.allAsset[t]=void 0})},setBookmarkCountByMap:(e,t)=>{let o=t.payload.mapId;e.assetCounts.bookmarkByMap[o]=t.payload.count},clearBookmarkCountByMap:e=>{e.assetCounts.bookmarkByMap={}},addAsset:(e,t)=>{let{assetType:o,mapId:n,asset:a}=t.payload;Un(e,o,[...Mn(e,o),a]),Ys(e,o,1,n),Xs(e,a)},editAsset:(e,t)=>{let{assetType:o,asset:n}=t.payload;Un(e,o,Mn(e,o).map(a=>a.id===n.id?n:a)),Xs(e,n)},removeAsset:(e,t)=>{let{assetType:o,mapId:n,assetId:a}=t.payload;Un(e,o,Mn(e,o).filter(i=>i.id!==a)),Ys(e,o,-1,n)}},Qs={[ve.SEARCHES]:"savedSearches",[ve.BOOKMARKS]:"bookmarks",[ve.BOOKS]:void 0,[ve.COLLECTIONS]:void 0},Mn=(e,t)=>{var o;let n=Qs[t];return n?(o=e[n])!==null&&o!==void 0?o:[]:[]},Un=(e,t,o)=>{let n=Qs[t];n&&(e[n]=o)},Ys=(e,t,o,n)=>{let a=e.assetCounts.allAsset[t];if(a!==void 0&&(e.assetCounts.allAsset[t]=Math.max(0,a+o),t===ve.BOOKMARKS&&n)){let i=e.assetCounts.bookmarkByMap[n];e.assetCounts.bookmarkByMap[n]=Math.max(0,i+o)}},Xs=(e,t)=>{let o=e.assetLabels.map(a=>a.title),n=t.labels.filter(a=>!o.includes(a)).map(a=>({title:a}));e.assetLabels.push(...n)},ee=fo.FtReduxStore.get({name:Pd,reducers:Dd,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(ve).map(e=>[e,void 0])),bookmarkByMap:{}},assetLabels:[]}}),Bn=class{constructor(t=new uo,o=new po){this.assetCountsService=t,this.assetLabelsService=o,this.currentSession=_.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new lo,this.savedSearchesService=new co,_.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var t;let{session:o}=_.getState();(0,fo.deepEqual)((t=this.currentSession)===null||t===void 0?void 0:t.profile,o?.profile)||(this.currentSession=o,this.clearMySearches(),this.reloadBookmarks(),this.clearUserAssetCounts(),this.reloadAssetLabels())}clearUserAssetCounts(){this.assetCountsService.clearCache(),ee.actions.clearAssetCount(),ee.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),ee.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),ee.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let t=await this.savedSearchesService.listMySearches();ee.actions.savedSearches(t)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let t=await this.assetLabelsService.getUserAssetLabels();ee.actions.assetLabels(t)}async loadAssetCount(t){let o=await this.assetCountsService.getUserAssetCount(t);o&&ee.getState().assetCounts.allAsset[t]!==o.count&&ee.actions.setAssetCount({assetCount:o})}async loadBookmarkByMapId(t){let o=await this.assetCountsService.getUserBookmarkCountByMap(t);o&&ee.getState().assetCounts.bookmarkByMap[t]!==o.count&&ee.actions.setBookmarkCountByMap({count:o.count,mapId:t})}async reloadAssetCount(t){this.assetCountsService.clearCache();let o=Object.keys(ee.getState().assetCounts.bookmarkByMap).length!==0;t===ve.BOOKMARKS&&o&&ee.actions.clearBookmarkCountByMap(),ee.getState().assetCounts.allAsset[t]!==void 0&&await this.loadAssetCount(t)}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var t;if(this.bookmarksAreUsed){let o=!((t=this.currentSession)===null||t===void 0)&&t.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;ee.actions.bookmarks(o)}}},Md=new Bn;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=Md);var Fn=class{addCommand(t,o=!1){_.commands.add(t,o)}consumeCommand(t){return _.commands.consume(t)}};window.FluidTopicsAppInfoStoreService=new Fn;var Se=b(w());var Js,er=class extends CustomEvent{constructor(t){super("ft-i18n-context-loaded",{detail:t})}},Ud=Symbol("clearAfterUnitTest"),ho=class extends(0,Se.withEventBus)(oe){constructor(t){super(),this.messageContextProvider=t,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[Js]=()=>{this.defaultMessages={},this.cache=new Se.CacheRegistry,this.listeners={}},this.currentUiLocale=_.getState().uiLocale,_.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:t}=_.getState();this.currentUiLocale!==t&&(this.currentUiLocale=t,this.cache.clearAll(),this.notifyAll())}addContext(t){let o=t.name.toLowerCase();this.cache.setFinal(o,t),this.notify(o)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(t,o){var n;if(t=t.toLowerCase(),o&&Object.keys(o).length>0){let a={...(n=this.defaultMessages[t])!==null&&n!==void 0?n:{},...o};(0,Se.deepEqual)(this.defaultMessages[t],a)||(this.defaultMessages[t]=a,await this.notify(t))}return this.fetchContext(t)}resolveContext(t){var o,n;return this.fetchContext(t),(n=(o=this.cache.getNow(t))===null||o===void 0?void 0:o.messages)!==null&&n!==void 0?n:{}}resolveRawMessage(t,o){let n=t.toLowerCase();return this.resolveContext(n)[o]}resolveMessage(t,o,...n){var a;let i=t.toLowerCase(),c=this.resolveContext(i);return new Se.ParametrizedLabelResolver((a=this.defaultMessages[i])!==null&&a!==void 0?a:{},c).resolve(o,...n)}async fetchContext(t){let o=!this.cache.has(t),n;try{n=await this.cache.get(t,()=>this.messageContextProvider(this.currentUiLocale,t)),o&&await this.notify(t)}catch(a){!(a instanceof Se.CanceledPromiseError)&&o&&console.error(a)}return n}subscribe(t,o){var n;return t=t.toLowerCase(),this.listeners[t]=(n=this.listeners[t])!==null&&n!==void 0?n:new Set,this.listeners[t].add(o),()=>{var a;return(a=this.listeners[t])===null||a===void 0?void 0:a.delete(o)}}async notifyAll(){let t=Object.keys(this.listeners);document.body.dispatchEvent(new er({loadedContexts:t})),this.dispatchEvent(new er({loadedContexts:t})),await Promise.all(t.map(o=>this.notify(o,!1)))}async notify(t,o=!0){o&&(document.body.dispatchEvent(new er({loadedContexts:[t]})),this.dispatchEvent(new er({loadedContexts:[t]}))),this.listeners[t]!=null&&await Promise.all([...this.listeners[t].values()].map(n=>(0,Se.delay)(0).then(()=>n()).catch(()=>null)))}};Js=Ud;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends ho{constructor(){super(async(e,t)=>(await this.awaitApi).getFluidTopicsMessageContext(e,t))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends ho{constructor(){super(async(e,t)=>(await this.awaitApi).getCustomMessageContext(e,t))}});var Cr=window.FluidTopicsI18nService,Hn=window.FluidTopicsCustomI18nService;var ec=b(w()),$n=class{highlightHtml(t,o,n){(0,ec.highlightHtml)(t,o,n)}};window.FluidTopicsHighlightHtmlService=new $n;var tc=b(w());var Wn=class{isDate(t){var o,n,a,i;return(i=(a=((n=(o=_.getState().metadataConfiguration)===null||o===void 0?void 0:o.descriptors)!==null&&n!==void 0?n:[]).find(l=>l.key===t))===null||a===void 0?void 0:a.date)!==null&&i!==void 0?i:!1}format(t,o){var n,a,i,c;if(t==null)return"";try{return tc.DateFormatter.format(t,(n=o?.locale)!==null&&n!==void 0?n:_.getState().uiLocale,(a=o?.longFormat)!==null&&a!==void 0?a:!1,(i=o?.withTime)!==null&&i!==void 0?i:!1,(c=o?.onlyTime)!==null&&c!==void 0?c:!1)}catch(l){throw console.error(`Date ${JSON.stringify(t)} is not valid`,l),l}}};window.FluidTopicsDateService=new Wn;var rc=b(w());var Or=class{static get(t,o){var n,a;let i=_.getState(),{lang:c,region:l}=(a=(n=i.defaultLocales)===null||n===void 0?void 0:n.defaultContentLocale)!==null&&a!==void 0?a:{lang:"en",region:"US"};return new rc.SearchPlaceConverter(i.baseUrl,t??20,i.searchInAllLanguagesAllowed,o??`${c}-${l}`)}};var zn=class{urlToSearchRequest(t){return Or.get().parse(t)}searchRequestToUrl(t){return Or.get().serialize(t)}};window.FluidTopicsUrlService=new zn;var ze=b(w());var Ct=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:{currentItem:t}})}};Ct.eventName="change";var Gn=class{itemName(t){return`fluid-topics-history-item-${t}`}get(t){let o=sessionStorage.getItem(this.itemName(t));return o?JSON.parse(o):void 0}set(t,o){sessionStorage.setItem(this.itemName(t),JSON.stringify(o))}},oc=new Gn;var mo=class e extends ze.WithEventBus{static build(){return new e(window.history,oc,()=>window.location,!1)}constructor(t,o,n,a){var i,c;super(),this.history=t,this.historyStorage=o,this.windowLocation=n,this.states=[],this.realPushState=t.pushState,this.realReplaceState=t.replaceState,this.initialIndex=(c=(i=t.state)===null||i===void 0?void 0:i.index)!==null&&c!==void 0?c:t.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(a)}setCurrentState(t,o=!1){let n=o&&this.currentIndex===t.index-1;this.currentState={...this.buildCurrentState(),...t},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,ze.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,window.location.href]),setTimeout(()=>this.dispatchEvent(new Ct(this.currentItem())),0)}installProxies(){let t=o=>(n,a,[i,c,l])=>{let u=o(),p={...u===this.currentIndex?this.currentState:void 0,...i,index:u,href:typeof l=="string"?l:(l??this.windowLocation()).href};n.apply(a,[p,c,l]),this.setCurrentState(p,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:t(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:t(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",t=>this.setCurrentState(t.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(t){for(let o=this.history.length-1;o>=0;o--)t?this.states[o]=this.historyStorage.get(o):setTimeout(()=>this.states[o]=this.historyStorage.get(o),this.history.length-o)}updateCurrentState(t){var o;let n={...this.buildCurrentState(),...t,index:this.currentIndex,title:(o=t?.title)!==null&&o!==void 0?o:this.currentState.title};this.setCurrentState(n)}addHistoryChangeListener(t){this.addEventListener(Ct.eventName,t)}removeHistoryChangeListener(t){this.removeEventListener(Ct.eventName,t)}currentItem(){return(0,ze.deepCopy)(this.currentState)}back(){let t=this.previousDifferentMajorPosition();t>=0?this.history.go(t-this.currentIndex):this.currentIndex!==this.initialIndex?this.history.go(this.initialIndex-this.currentIndex):this.history.back()}backwardItem(){return(0,ze.deepCopy)(this.states[this.previousDifferentMajorPosition()])}backwardItemMatching(t){let o=this.states.filter(n=>!!n).filter(n=>n.index<this.currentIndex).reverse();return(0,ze.deepCopy)(o.find(n=>t(n)))}previousDifferentMajorPosition(){let t=this.currentIndex>0?this.currentIndex-1:0;for(;t>0&&!this.isDifferentMajorState(t);)t--;return t}forward(){let t=this.nextMajorPosition();t&&t<this.states.length?this.history.go(t-this.currentIndex):this.history.forward()}forwardItem(){let t=this.nextMajorPosition();if(t)return(0,ze.deepCopy)(this.states[t])}nextMajorPosition(){let t=this.currentIndex;if(!(t>=this.states.length)){do t++;while(t<this.states.length&&!this.isDifferentMajorState(t));return this.getHigherPositionInTheSameState(t)}}getHigherPositionInTheSameState(t){var o;let n=(o=this.states[t])===null||o===void 0?void 0:o.majorStateId;if(!n)return t;let a=t,i=t+1;for(;this.states.length>i&&!this.isDifferentMajorState(i,n);)this.hasState(i)&&(a=i),i++;return a}buildCurrentState(){var t,o;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(o=(t=this.history.state)===null||t===void 0?void 0:t.title)!==null&&o!==void 0?o:document.title}}hasState(t){return this.states[t]!=null}isDifferentMajorState(t,o){var n;if(!this.hasState(t))return!1;let a=o??this.currentState.majorStateId,i=(n=this.states[t])===null||n===void 0?void 0:n.majorStateId;return i==null||i!=a}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=mo.build(),window.FluidTopicsHistoryService={currentItem:()=>window.FluidTopicsInternalHistoryService.currentItem(),back:()=>window.FluidTopicsInternalHistoryService.back(),forward:()=>window.FluidTopicsInternalHistoryService.forward(),backwardItem:()=>window.FluidTopicsInternalHistoryService.backwardItem(),forwardItem:()=>window.FluidTopicsInternalHistoryService.forwardItem(),backwardItemMatching:e=>window.FluidTopicsInternalHistoryService.backwardItemMatching(e),addHistoryChangeListener:e=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(e),removeHistoryChangeListener:e=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(e)});var nc=b(U());var ac=nc.css`
|
|
139
|
-
`;var sc=b(U()),ue=b(V()),At=b(w());var Ot=b(w());function ic(e,t){let{authenticationRequired:o,session:n}=_.getState();return o&&!n?.sessionAuthenticated?Promise.resolve(t):e()}var
|
|
138
|
+
`;var Ka=["top","right","bottom","left"],Va=["start","end"],Xo=Ka.reduce((e,t)=>e.concat(t,t+"-"+Va[0],t+"-"+Va[1]),[]),dr=Math.min,Qe=Math.max,ur=Math.round;var Ae=e=>({x:e,y:e}),Al={left:"right",right:"left",bottom:"top",top:"bottom"};function Qo(e,t,o){return Qe(e,dr(t,o))}function Ur(e,t){return typeof e=="function"?e(t):e}function $t(e){return e.split("-")[0]}function Je(e){return e.split("-")[1]}function Jo(e){return e==="x"?"y":"x"}function en(e){return e==="y"?"height":"width"}function Br(e){let t=e[0];return t==="t"||t==="b"?"y":"x"}function tn(e){return Jo(Br(e))}function Za(e,t,o){o===void 0&&(o=!1);let n=Je(e),a=tn(e),i=en(a),c=a==="x"?n===(o?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(c=Yo(c)),[c,Yo(c)]}function qa(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}function Yo(e){let t=$t(e);return Al[t]+e.slice(t.length)}function wl(e){return{top:0,right:0,bottom:0,left:0,...e}}function Ya(e){return typeof e!="number"?wl(e):{top:e,right:e,bottom:e,left:e}}function ft(e){let{x:t,y:o,width:n,height:a}=e;return{width:n,height:a,top:o,left:t,right:t+n,bottom:o+a,x:t,y:o}}function Xa(e,t,o){let{reference:n,floating:a}=e,i=Br(t),c=tn(t),l=en(c),u=$t(t),p=i==="y",f=n.x+n.width/2-a.width/2,h=n.y+n.height/2-a.height/2,m=n[l]/2-a[l]/2,y;switch(u){case"top":y={x:f,y:n.y-a.height};break;case"bottom":y={x:f,y:n.y+n.height};break;case"right":y={x:n.x+n.width,y:h};break;case"left":y={x:n.x-a.width,y:h};break;default:y={x:n.x,y:n.y}}switch(Je(t)){case"start":y[c]-=m*(o&&p?-1:1);break;case"end":y[c]+=m*(o&&p?-1:1);break}return y}async function Qa(e,t){var o;t===void 0&&(t={});let{x:n,y:a,platform:i,rects:c,elements:l,strategy:u}=e,{boundary:p="clippingAncestors",rootBoundary:f="viewport",elementContext:h="floating",altBoundary:m=!1,padding:y=0}=Ur(t,e),g=Ya(y),C=l[m?h==="floating"?"reference":"floating":h],O=ft(await i.getClippingRect({element:(o=await(i.isElement==null?void 0:i.isElement(C)))==null||o?C:C.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(l.floating)),boundary:p,rootBoundary:f,strategy:u})),E=h==="floating"?{x:n,y:a,width:c.floating.width,height:c.floating.height}:c.reference,R=await(i.getOffsetParent==null?void 0:i.getOffsetParent(l.floating)),L=await(i.isElement==null?void 0:i.isElement(R))?await(i.getScale==null?void 0:i.getScale(R))||{x:1,y:1}:{x:1,y:1},j=ft(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:E,offsetParent:R,strategy:u}):E);return{top:(O.top-j.top+g.top)/L.y,bottom:(j.bottom-O.bottom+g.bottom)/L.y,left:(O.left-j.left+g.left)/L.x,right:(j.right-O.right+g.right)/L.x}}var Rl=50,Ja=async(e,t,o)=>{let{placement:n="bottom",strategy:a="absolute",middleware:i=[],platform:c}=o,l=c.detectOverflow?c:{...c,detectOverflow:Qa},u=await(c.isRTL==null?void 0:c.isRTL(t)),p=await c.getElementRects({reference:e,floating:t,strategy:a}),{x:f,y:h}=Xa(p,n,u),m=n,y=0,g={};for(let x=0;x<i.length;x++){let C=i[x];if(!C)continue;let{name:O,fn:E}=C,{x:R,y:L,data:j,reset:F}=await E({x:f,y:h,initialPlacement:n,placement:m,strategy:a,middlewareData:g,rects:p,platform:l,elements:{reference:e,floating:t}});f=R??f,h=L??h,g[O]={...g[O],...j},F&&y<Rl&&(y++,typeof F=="object"&&(F.placement&&(m=F.placement),F.rects&&(p=F.rects===!0?await c.getElementRects({reference:e,floating:t,strategy:a}):F.rects),{x:f,y:h}=Xa(p,m,u)),x=-1)}return{x:f,y:h,placement:m,strategy:a,middlewareData:g}};function Ll(e,t,o){return(e?[...o.filter(a=>Je(a)===e),...o.filter(a=>Je(a)!==e)]:o.filter(a=>$t(a)===a)).filter(a=>e?Je(a)===e||(t?qa(a)!==a:!1):!0)}var ei=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var o,n,a;let{rects:i,middlewareData:c,placement:l,platform:u,elements:p}=t,{crossAxis:f=!1,alignment:h,allowedPlacements:m=Xo,autoAlignment:y=!0,...g}=Ur(e,t),x=h!==void 0||m===Xo?Ll(h||null,y,m):m,C=await u.detectOverflow(t,g),O=((o=c.autoPlacement)==null?void 0:o.index)||0,E=x[O];if(E==null)return{};let R=Za(E,i,await(u.isRTL==null?void 0:u.isRTL(p.floating)));if(l!==E)return{reset:{placement:x[0]}};let L=[C[$t(E)],C[R[0]],C[R[1]]],j=[...((n=c.autoPlacement)==null?void 0:n.overflows)||[],{placement:E,overflows:L}],F=x[O+1];if(F)return{data:{index:O+1,overflows:j},reset:{placement:F}};let Ke=j.map(ie=>{let fe=Je(ie.placement);return[ie.placement,fe&&f?ie.overflows.slice(0,2).reduce((se,ct)=>se+ct,0):ie.overflows[0],ie.overflows]}).sort((ie,fe)=>ie[1]-fe[1]),Ze=((a=Ke.filter(ie=>ie[2].slice(0,Je(ie[0])?2:3).every(fe=>fe<=0))[0])==null?void 0:a[0])||Ke[0][0];return Ze!==l?{data:{index:O+1,overflows:j},reset:{placement:Ze}}:{}}}};var ti=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){let{x:o,y:n,placement:a,platform:i}=t,{mainAxis:c=!0,crossAxis:l=!1,limiter:u={fn:O=>{let{x:E,y:R}=O;return{x:E,y:R}}},...p}=Ur(e,t),f={x:o,y:n},h=await i.detectOverflow(t,p),m=Br($t(a)),y=Jo(m),g=f[y],x=f[m];if(c){let O=y==="y"?"top":"left",E=y==="y"?"bottom":"right",R=g+h[O],L=g-h[E];g=Qo(R,g,L)}if(l){let O=m==="y"?"top":"left",E=m==="y"?"bottom":"right",R=x+h[O],L=x-h[E];x=Qo(R,x,L)}let C=u.fn({...t,[y]:g,[m]:x});return{...C,data:{x:C.x-o,y:C.y-n,enabled:{[y]:c,[m]:l}}}}}};function Hr(){return typeof window<"u"}function mt(e){return oi(e)?(e.nodeName||"").toLowerCase():"#document"}function re(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ke(e){var t;return(t=(oi(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function oi(e){return Hr()?e instanceof Node||e instanceof re(e).Node:!1}function ge(e){return Hr()?e instanceof Element||e instanceof re(e).Element:!1}function Pe(e){return Hr()?e instanceof HTMLElement||e instanceof re(e).HTMLElement:!1}function ri(e){return!Hr()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof re(e).ShadowRoot}function Wt(e){let{overflow:t,overflowX:o,overflowY:n,display:a}=be(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+o)&&a!=="inline"&&a!=="contents"}function ni(e){return/^(table|td|th)$/.test(mt(e))}function pr(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}var Tl=/transform|translate|scale|rotate|perspective|filter/,_l=/paint|layout|strict|content/,ht=e=>!!e&&e!=="none",rn;function zt(e){let t=ge(e)?be(e):e;return ht(t.transform)||ht(t.translate)||ht(t.scale)||ht(t.rotate)||ht(t.perspective)||!$r()&&(ht(t.backdropFilter)||ht(t.filter))||Tl.test(t.willChange||"")||_l.test(t.contain||"")}function ai(e){let t=$e(e);for(;Pe(t)&&!yt(t);){if(zt(t))return t;if(pr(t))return null;t=$e(t)}return null}function $r(){return rn==null&&(rn=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),rn}function yt(e){return/^(html|body|#document)$/.test(mt(e))}function be(e){return re(e).getComputedStyle(e)}function fr(e){return ge(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function $e(e){if(mt(e)==="html")return e;let t=e.assignedSlot||e.parentNode||ri(e)&&e.host||ke(e);return ri(t)?t.host:t}function ii(e){let t=$e(e);return yt(t)?e.ownerDocument?e.ownerDocument.body:e.body:Pe(t)&&Wt(t)?t:ii(t)}function Fr(e,t,o){var n;t===void 0&&(t=[]),o===void 0&&(o=!0);let a=ii(e),i=a===((n=e.ownerDocument)==null?void 0:n.body),c=re(a);if(i){let l=Wr(c);return t.concat(c,c.visualViewport||[],Wt(a)?a:[],l&&o?Fr(l):[])}else return t.concat(a,Fr(a,[],o))}function Wr(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function di(e){let t=be(e),o=parseFloat(t.width)||0,n=parseFloat(t.height)||0,a=Pe(e),i=a?e.offsetWidth:o,c=a?e.offsetHeight:n,l=ur(o)!==i||ur(n)!==c;return l&&(o=i,n=c),{width:o,height:n,$:l}}function ui(e){return ge(e)?e:e.contextElement}function Gt(e){let t=ui(e);if(!Pe(t))return Ae(1);let o=t.getBoundingClientRect(),{width:n,height:a,$:i}=di(t),c=(i?ur(o.width):o.width)/n,l=(i?ur(o.height):o.height)/a;return(!c||!Number.isFinite(c))&&(c=1),(!l||!Number.isFinite(l))&&(l=1),{x:c,y:l}}var Il=Ae(0);function pi(e){let t=re(e);return!$r()||!t.visualViewport?Il:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Nl(e,t,o){return t===void 0&&(t=!1),!o||t&&o!==re(e)?!1:t}function hr(e,t,o,n){t===void 0&&(t=!1),o===void 0&&(o=!1);let a=e.getBoundingClientRect(),i=ui(e),c=Ae(1);t&&(n?ge(n)&&(c=Gt(n)):c=Gt(e));let l=Nl(i,o,n)?pi(i):Ae(0),u=(a.left+l.x)/c.x,p=(a.top+l.y)/c.y,f=a.width/c.x,h=a.height/c.y;if(i){let m=re(i),y=n&&ge(n)?re(n):n,g=m,x=Wr(g);for(;x&&n&&y!==g;){let C=Gt(x),O=x.getBoundingClientRect(),E=be(x),R=O.left+(x.clientLeft+parseFloat(E.paddingLeft))*C.x,L=O.top+(x.clientTop+parseFloat(E.paddingTop))*C.y;u*=C.x,p*=C.y,f*=C.x,h*=C.y,u+=R,p+=L,g=re(x),x=Wr(g)}}return ft({width:f,height:h,x:u,y:p})}function zr(e,t){let o=fr(e).scrollLeft;return t?t.left+o:hr(ke(e)).left+o}function fi(e,t){let o=e.getBoundingClientRect(),n=o.left+t.scrollLeft-zr(e,o),a=o.top+t.scrollTop;return{x:n,y:a}}function kl(e){let{elements:t,rect:o,offsetParent:n,strategy:a}=e,i=a==="fixed",c=ke(n),l=t?pr(t.floating):!1;if(n===c||l&&i)return o;let u={scrollLeft:0,scrollTop:0},p=Ae(1),f=Ae(0),h=Pe(n);if((h||!h&&!i)&&((mt(n)!=="body"||Wt(c))&&(u=fr(n)),h)){let y=hr(n);p=Gt(n),f.x=y.x+n.clientLeft,f.y=y.y+n.clientTop}let m=c&&!h&&!i?fi(c,u):Ae(0);return{width:o.width*p.x,height:o.height*p.y,x:o.x*p.x-u.scrollLeft*p.x+f.x+m.x,y:o.y*p.y-u.scrollTop*p.y+f.y+m.y}}function Pl(e){return Array.from(e.getClientRects())}function Dl(e){let t=ke(e),o=fr(e),n=e.ownerDocument.body,a=Qe(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),i=Qe(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight),c=-o.scrollLeft+zr(e),l=-o.scrollTop;return be(n).direction==="rtl"&&(c+=Qe(t.clientWidth,n.clientWidth)-a),{width:a,height:i,x:c,y:l}}var si=25;function Ml(e,t){let o=re(e),n=ke(e),a=o.visualViewport,i=n.clientWidth,c=n.clientHeight,l=0,u=0;if(a){i=a.width,c=a.height;let f=$r();(!f||f&&t==="fixed")&&(l=a.offsetLeft,u=a.offsetTop)}let p=zr(n);if(p<=0){let f=n.ownerDocument,h=f.body,m=getComputedStyle(h),y=f.compatMode==="CSS1Compat"&&parseFloat(m.marginLeft)+parseFloat(m.marginRight)||0,g=Math.abs(n.clientWidth-h.clientWidth-y);g<=si&&(i-=g)}else p<=si&&(i+=p);return{width:i,height:c,x:l,y:u}}function Ul(e,t){let o=hr(e,!0,t==="fixed"),n=o.top+e.clientTop,a=o.left+e.clientLeft,i=Pe(e)?Gt(e):Ae(1),c=e.clientWidth*i.x,l=e.clientHeight*i.y,u=a*i.x,p=n*i.y;return{width:c,height:l,x:u,y:p}}function ci(e,t,o){let n;if(t==="viewport")n=Ml(e,o);else if(t==="document")n=Dl(ke(e));else if(ge(t))n=Ul(t,o);else{let a=pi(e);n={x:t.x-a.x,y:t.y-a.y,width:t.width,height:t.height}}return ft(n)}function hi(e,t){let o=$e(e);return o===t||!ge(o)||yt(o)?!1:be(o).position==="fixed"||hi(o,t)}function Bl(e,t){let o=t.get(e);if(o)return o;let n=Fr(e,[],!1).filter(l=>ge(l)&&mt(l)!=="body"),a=null,i=be(e).position==="fixed",c=i?$e(e):e;for(;ge(c)&&!yt(c);){let l=be(c),u=zt(c);!u&&l.position==="fixed"&&(a=null),(i?!u&&!a:!u&&l.position==="static"&&!!a&&(a.position==="absolute"||a.position==="fixed")||Wt(c)&&!u&&hi(e,c))?n=n.filter(f=>f!==c):a=l,c=$e(c)}return t.set(e,n),n}function Fl(e){let{element:t,boundary:o,rootBoundary:n,strategy:a}=e,c=[...o==="clippingAncestors"?pr(t)?[]:Bl(t,this._c):[].concat(o),n],l=ci(t,c[0],a),u=l.top,p=l.right,f=l.bottom,h=l.left;for(let m=1;m<c.length;m++){let y=ci(t,c[m],a);u=Qe(y.top,u),p=dr(y.right,p),f=dr(y.bottom,f),h=Qe(y.left,h)}return{width:p-h,height:f-u,x:h,y:u}}function Hl(e){let{width:t,height:o}=di(e);return{width:t,height:o}}function $l(e,t,o){let n=Pe(t),a=ke(t),i=o==="fixed",c=hr(e,!0,i,t),l={scrollLeft:0,scrollTop:0},u=Ae(0);function p(){u.x=zr(a)}if(n||!n&&!i)if((mt(t)!=="body"||Wt(a))&&(l=fr(t)),n){let y=hr(t,!0,i,t);u.x=y.x+t.clientLeft,u.y=y.y+t.clientTop}else a&&p();i&&!n&&a&&p();let f=a&&!n&&!i?fi(a,l):Ae(0),h=c.left+l.scrollLeft-u.x-f.x,m=c.top+l.scrollTop-u.y-f.y;return{x:h,y:m,width:c.width,height:c.height}}function on(e){return be(e).position==="static"}function li(e,t){if(!Pe(e)||be(e).position==="fixed")return null;if(t)return t(e);let o=e.offsetParent;return ke(e)===o&&(o=o.ownerDocument.body),o}function mi(e,t){let o=re(e);if(pr(e))return o;if(!Pe(e)){let a=$e(e);for(;a&&!yt(a);){if(ge(a)&&!on(a))return a;a=$e(a)}return o}let n=li(e,t);for(;n&&ni(n)&&on(n);)n=li(n,t);return n&&yt(n)&&on(n)&&!zt(n)?o:n||ai(e)||o}var Wl=async function(e){let t=this.getOffsetParent||mi,o=this.getDimensions,n=await o(e.floating);return{reference:$l(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function zl(e){return be(e).direction==="rtl"}var Gr={convertOffsetParentRelativeRectToViewportRelativeRect:kl,getDocumentElement:ke,getClippingRect:Fl,getOffsetParent:mi,getElementRects:Wl,getClientRects:Pl,getDimensions:Hl,getScale:Gt,isElement:ge,isRTL:zl};var yi=ei,gi=ti;var bi=(e,t,o)=>{let n=new Map,a={platform:Gr,...o},i={...a.platform,_c:n};return Ja(e,t,{...a,platform:i})};function xi(e){return Gl(e)}function nn(e){return e.assignedSlot?e.assignedSlot:e.parentNode instanceof ShadowRoot?e.parentNode.host:e.parentNode}function Gl(e){for(let t=e;t;t=nn(t))if(t instanceof Element&&getComputedStyle(t).display==="none")return null;for(let t=nn(e);t;t=nn(t)){if(!(t instanceof Element))continue;let o=getComputedStyle(t);if(o.display!=="contents"&&(o.position!=="static"||zt(o)||t.tagName==="BODY"))return t}return null}async function vi(e,t,o){let n;return typeof o=="object"?n=o:n={placement:o},bi(e,t,{strategy:n.strategy,platform:{...Gr,getOffsetParent:a=>Gr.getOffsetParent(a,xi)},middleware:[gi({crossAxis:!0}),yi({allowedPlacements:[n.placement]})]})}var rr=b(w());var In=b(V());var Si=b(V(),1);var an=e=>t=>{window.customElements.get(e)||window.customElements.define(e,t)};function Ci(e,t){return(0,Si.property)({type:Object,converter:{fromAttribute:o=>{if(o==null)return mr(e);try{return JSON.parse(o)}catch{return mr(e)}},toAttribute:o=>JSON.stringify(o)},hasChanged:yr,...t??{}})}function jl(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;let o,n;if(Array.isArray(e)){if(o=e.length,o!=t.length)return!1;for(n=o;n--!==0;)if(!jr(e[n],t[n]))return!1;return!0}if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(n of e.entries())if(!t.has(n[0]))return!1;for(n of e.entries())if(!jr(n[1],t.get(n[0])))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(n of e.entries())if(!t.has(n[0]))return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();let a=c=>Object.keys(c).filter(l=>c[l]!=null),i=a(e);if(o=i.length,o!==a(t).length)return!1;for(n=o;n--!==0;)if(!Object.prototype.hasOwnProperty.call(t,i[n]))return!1;for(n=o;n--!==0;){let c=i[n];if(!jr(e[c],t[c]))return!1}return!0}return e!==e&&t!==t||e==null&&t==null}function jr(e,t){try{return jl(e,t)}catch{return!1}}function yr(e,t){return!jr(e,t)}function mr(e){return typeof window.structuredClone=="function"?structuredClone(e):e!=null?JSON.parse(JSON.stringify(e)):e}function Vr(e,t){let o=n=>n[e]===!0;return n=>{if(o(n))return n;let a=t(n);return a[e]=!0,a}}var Oi=b(V(),1);var sn=e=>{let t=e??{};return(o,n)=>{var a;let i={hasChanged:yr,attribute:!1,...t};(0,Oi.property)(i)(o,n);let c=o.constructor;c.reduxProperties=new Map(c.reduxProperties),c.reduxProperties.set(n,{selector:(a=t.selector)!==null&&a!==void 0?a:(l=>l[n]),store:t.store})}};var Kr=class{constructor(){this.queue=[]}add(t,o=!1){o&&this.clear(t.type),this.queue.push(t)}consume(t){let o=this.queue.find(n=>n.type===t);return o&&(this.queue=this.queue.filter(n=>n!==o)),o}clear(t){typeof t=="string"?this.queue=this.queue.filter(o=>o.type!==t):this.queue=this.queue.filter(o=>!t.test(o.type))}};var gt=b(V(),1);var Zr=class{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,o){return this.callbacks=[t],this.debounce(o)}queue(t,o){return this.callbacks.push(t),this.debounce(o)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return this.promise==null&&(this.promise=new Promise((o,n)=>{this.resolvePromise=o,this.rejectPromise=n})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),t??this.timeout),this.promise}async runCallbacks(){var t,o;let n=[...this.callbacks];this.callbacks=[];let a=(t=this.rejectPromise)!==null&&t!==void 0?t:(()=>null),i=(o=this.resolvePromise)!==null&&o!==void 0?o:(()=>null);this.clearPromise();for(let c of n)try{await c()}catch(l){a(l);return}i(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var Ai=b(U(),1);var qr=globalThis,Vl=qr.ShadowRoot&&(qr.ShadyCSS===void 0||qr.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype;var Ei=(e,t)=>{if(Vl)e.adoptedStyleSheets=t.map((o=>o instanceof CSSStyleSheet?o:o.styleSheet));else for(let o of t){let n=document.createElement("style"),a=qr.litNonce;a!==void 0&&n.setAttribute("nonce",a),n.textContent=o.cssText,e.appendChild(n)}};var Yr=class extends Ai.LitElement{get scopedRegistryConstructor(){return this.constructor}createRenderRoot(){let t=this.scopedRegistryConstructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,t.defineScopedElements(t.elementDefinitions));let o={...t.shadowRootOptions,customElements:t.registry},n=this.renderOptions.creationScope=this.attachShadow(o);return Ei(n,t.elementStyles),n}static canDefineScopedElement(t){return!!this.registry&&!this.registry.get(t)}static defineScopedElements(t){Object.entries(t).forEach(([o,n])=>this.defineScopedElement(o,n))}static defineScopedElement(t,o){an(t)(o),this.canDefineScopedElement(t)&&this.registry.define(t,o)}canDefineScopedElement(t){return this.scopedRegistryConstructor.canDefineScopedElement(t)}defineScopedElements(t){this.scopedRegistryConstructor.defineScopedElements(t)}defineScopedElement(t,o){this.scopedRegistryConstructor.defineScopedElement(t,o)}};function wi(e,t,...o){var n;let a=e.querySelector(t);for(let i of o)a=(n=a?.shadowRoot)===null||n===void 0?void 0:n.querySelector(i);return a}var Vt=function(e,t,o,n){var a=arguments.length,i=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,n);else for(var l=e.length-1;l>=0;l--)(c=e[l])&&(i=(a<3?c(i):a>3?c(t,o,i):c(t,o))||i);return a>3&&i&&Object.defineProperty(t,o,i),i},_i,Ri=Symbol("constructorPrototype"),Li=Symbol("constructorName"),Ii=Symbol("exportpartsDebouncer"),Ti=Symbol("dynamicDependenciesLoaded"),jt=class e extends CustomEvent{constructor(){super(e.eventName,{bubbles:!0})}};jt.eventName="exportparts-updated";var De=class extends Yr{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[_i]=new Zr(5),this.scheduleExportpartsUpdate=()=>{var t,o,n;(!((t=this.exportpartsPrefix)===null||t===void 0)&&t.trim()||(n=(o=this.exportpartsPrefixes)===null||o===void 0?void 0:o.length)!==null&&n!==void 0&&n)&&this[Ii].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)})},this[Li]=this.constructor.name,this[Ri]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Li]&&Object.setPrototypeOf(this,this[Ri])}connectedCallback(){var t;super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(n){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",n)}let o=this.constructor;o[Ti]||(o[Ti]=!0,this.importDynamicDependencies()),(t=this.shadowRoot)===null||t===void 0||t.addEventListener(jt.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.shadowRoot)===null||t===void 0||t.removeEventListener(jt.eventName,this.scheduleExportpartsUpdate)}importDynamicDependencies(){}updated(t){super.updated(t),this.updateComplete.then(()=>{this.contentAvailableCallback(t),this.focusElementToFocus(t),this.applyCustomStylesheet(t),this.scheduleExportpartsUpdate(),t.has("exportparts")&&this.dispatchEvent(new jt)})}contentAvailableCallback(t){}focusElementToFocus(t){if(t.has("elementToFocus")&&this.elementToFocus!=null){let{element:o,selector:n,shadowPath:a}=this.elementToFocus;if(n!=null){let i=[...a??[],n];o=wi(this.shadowRoot,...i)}o?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||o?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(t){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(t.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)}}setExportpartsAttribute(t){var o,n,a,i,c,l;let u=m=>m!=null&&m.trim().length>0,p=t.filter(u).map(m=>m.trim());if(p.length===0){this.exportparts=void 0;return}let f=new Set;for(let m of(n=(o=this.shadowRoot)===null||o===void 0?void 0:o.querySelectorAll("[part],[exportparts]"))!==null&&n!==void 0?n:[]){let y=(i=(a=m.getAttribute("part"))===null||a===void 0?void 0:a.split(" "))!==null&&i!==void 0?i:[],g=(l=(c=m.getAttribute("exportparts"))===null||c===void 0?void 0:c.split(",").map(C=>C.split(":")[1]))!==null&&l!==void 0?l:[],x=[...y,...g].filter(u).map(C=>C.trim());for(let C of x)f.add(C)}if(f.size===0){this.exportparts=void 0;return}let h=[...f.values()].flatMap(m=>p.map(y=>`${m}:${y}--${m}`));this.exportparts=[...this.part,...h].join(", ")}};_i=Ii;Vt([(0,gt.property)()],De.prototype,"exportpartsPrefix",void 0);Vt([Ci([])],De.prototype,"exportpartsPrefixes",void 0);Vt([(0,gt.property)({reflect:!0})],De.prototype,"exportparts",void 0);Vt([(0,gt.property)()],De.prototype,"customStylesheet",void 0);Vt([(0,gt.property)()],De.prototype,"elementToFocus",void 0);Vt([(0,gt.state)()],De.prototype,"useAdoptedStyleSheets",void 0);function Xr(e){var t;return(t=e?.isFtReduxStore)!==null&&t!==void 0?t:!1}var gr=Symbol("internalReduxEventsUnsubscribers"),et=Symbol("internalStoresUnsubscribers"),bt=Symbol("internalStores"),Kl=Vr(Symbol("withRedux"),function(e){var t,o,n;class a extends e{constructor(){super(...arguments),this[t]=new Map,this[o]=new Map,this[n]=new Map}get reduxConstructor(){return this.constructor}willUpdate(c){super.willUpdate(c),[...this.reduxConstructor.reduxReactiveProperties].some(l=>c.has(l))&&this.updateFromStores()}getUnnamedStore(){if(this[bt].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[bt].values()][0]}getStore(c){return c==null?this.getUnnamedStore():this[bt].get(c)}addStore(c,l){var u;l=(u=l??c.name)!==null&&u!==void 0?u:"default-store",this.unsubscribeFromStore(l),this[bt].set(l,c),this.subscribeToStore(l,c),this.updateFromStores()}removeStore(c){let l=typeof c=="string"?c:c.name;this.unsubscribeFromStore(l),this[bt].delete(l)}setupStores(){this.unsubscribeFromStores(),this[bt].forEach((c,l)=>this.subscribeToStore(l,c)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((c,l)=>{let u=this.constructor.getPropertyOptions(l);if(!u?.attribute||!this.hasAttribute(typeof u?.attribute=="string"?u.attribute:l)){let p=this.getStore(c.store);p&&(c.store?this[et].has(c.store):this[et].size>0)&&(this[l]=c.selector(p.getState(),this))}})}subscribeToStore(c,l){var u;this[et].set(c,l.subscribe(()=>this.updateFromStores())),this[gr].set(c,[]),Xr(l)&&l.eventBus&&((u=this.reduxConstructor.reduxEventListeners)===null||u===void 0||u.forEach((p,f)=>{if(typeof this[f]=="function"&&(!p.store||l.name===p.store)){let h=m=>this[f](m);l.addEventListener(p.eventName,h),this[gr].get(c).push(()=>l.removeEventListener(p.eventName,h))}})),this.onStoreAvailable(c)}unsubscribeFromStores(){this[et].forEach((c,l)=>this.unsubscribeFromStore(l))}unsubscribeFromStore(c){var l;this[et].has(c)&&this[et].get(c)(),this[et].delete(c),(l=this[gr].get(c))===null||l===void 0||l.forEach(u=>u()),this[gr].delete(c)}onStoreAvailable(c){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return t=et,o=bt,n=gr,a.reduxProperties=new Map,a.reduxReactiveProperties=new Set,a.reduxEventListeners=new Map,a}),Ni=class extends Kl(De){};function xe(e){for(var t=arguments.length,o=Array(t>1?t-1:0),n=1;n<t;n++)o[n-1]=arguments[n];if(0)var a,i;throw Error("[Immer] minified error nr: "+e+(o.length?" "+o.map((function(c){return"'"+c+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function We(e){return!!e&&!!e[M]}function we(e){var t;return!!e&&((function(o){if(!o||typeof o!="object")return!1;var n=Object.getPrototypeOf(o);if(n===null)return!0;var a=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return a===Object||typeof a=="function"&&Function.toString.call(a)===td})(e)||Array.isArray(e)||!!e[Fi]||!!(!((t=e.constructor)===null||t===void 0)&&t[Fi])||yn(e)||gn(e))}function xt(e,t,o){o===void 0&&(o=!1),qt(e)===0?(o?Object.keys:Zt)(e).forEach((function(n){o&&typeof n=="symbol"||t(n,e[n],e)})):e.forEach((function(n,a){return t(a,n,e)}))}function qt(e){var t=e[M];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:yn(e)?2:gn(e)?3:0}function Kt(e,t){return qt(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Zl(e,t){return qt(e)===2?e.get(t):e[t]}function Hi(e,t,o){var n=qt(e);n===2?e.set(t,o):n===3?e.add(o):e[t]=o}function $i(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function yn(e){return Jl&&e instanceof Map}function gn(e){return ed&&e instanceof Set}function tt(e){return e.o||e.t}function bn(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=Gi(e);delete t[M];for(var o=Zt(t),n=0;n<o.length;n++){var a=o[n],i=t[a];i.writable===!1&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(t[a]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[a]})}return Object.create(Object.getPrototypeOf(e),t)}function xn(e,t){return t===void 0&&(t=!1),vn(e)||We(e)||!we(e)||(qt(e)>1&&(e.set=e.add=e.clear=e.delete=ql),Object.freeze(e),t&&xt(e,(function(o,n){return xn(n,!0)}),!0)),e}function ql(){xe(2)}function vn(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function Me(e){var t=mn[e];return t||xe(18,e),t}function Yl(e,t){mn[e]||(mn[e]=t)}function pn(){return xr}function cn(e,t){t&&(Me("Patches"),e.u=[],e.s=[],e.v=t)}function Qr(e){fn(e),e.p.forEach(Xl),e.p=null}function fn(e){e===xr&&(xr=e.l)}function ki(e){return xr={p:[],l:xr,h:e,m:!0,_:0}}function Xl(e){var t=e[M];t.i===0||t.i===1?t.j():t.g=!0}function ln(e,t){t._=t.p.length;var o=t.p[0],n=e!==void 0&&e!==o;return t.h.O||Me("ES5").S(t,e,n),n?(o[M].P&&(Qr(t),xe(4)),we(e)&&(e=Jr(t,e),t.l||eo(t,e)),t.u&&Me("Patches").M(o[M].t,e,t.u,t.s)):e=Jr(t,o,[]),Qr(t),t.u&&t.v(t.u,t.s),e!==zi?e:void 0}function Jr(e,t,o){if(vn(t))return t;var n=t[M];if(!n)return xt(t,(function(l,u){return Pi(e,n,t,l,u,o)}),!0),t;if(n.A!==e)return t;if(!n.P)return eo(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var a=n.i===4||n.i===5?n.o=bn(n.k):n.o,i=a,c=!1;n.i===3&&(i=new Set(a),a.clear(),c=!0),xt(i,(function(l,u){return Pi(e,n,a,l,u,o,c)})),eo(e,a,!1),o&&e.u&&Me("Patches").N(n,o,e.u,e.s)}return n.o}function Pi(e,t,o,n,a,i,c){if(We(a)){var l=Jr(e,a,i&&t&&t.i!==3&&!Kt(t.R,n)?i.concat(n):void 0);if(Hi(o,n,l),!We(l))return;e.m=!1}else c&&o.add(a);if(we(a)&&!vn(a)){if(!e.h.D&&e._<1)return;Jr(e,a),t&&t.A.l||eo(e,a)}}function eo(e,t,o){o===void 0&&(o=!1),!e.l&&e.h.D&&e.m&&xn(t,o)}function dn(e,t){var o=e[M];return(o?tt(o):e)[t]}function Di(e,t){if(t in e)for(var o=Object.getPrototypeOf(e);o;){var n=Object.getOwnPropertyDescriptor(o,t);if(n)return n;o=Object.getPrototypeOf(o)}}function rt(e){e.P||(e.P=!0,e.l&&rt(e.l))}function un(e){e.o||(e.o=bn(e.t))}function hn(e,t,o){var n=yn(t)?Me("MapSet").F(t,o):gn(t)?Me("MapSet").T(t,o):e.O?(function(a,i){var c=Array.isArray(a),l={i:c?1:0,A:i?i.A:pn(),P:!1,I:!1,R:{},l:i,t:a,k:null,o:null,j:null,C:!1},u=l,p=vr;c&&(u=[l],p=br);var f=Proxy.revocable(u,p),h=f.revoke,m=f.proxy;return l.k=m,l.j=h,m})(t,o):Me("ES5").J(t,o);return(o?o.A:pn()).p.push(n),n}function Ql(e){return We(e)||xe(22,e),(function t(o){if(!we(o))return o;var n,a=o[M],i=qt(o);if(a){if(!a.P&&(a.i<4||!Me("ES5").K(a)))return a.t;a.I=!0,n=Mi(o,i),a.I=!1}else n=Mi(o,i);return xt(n,(function(c,l){a&&Zl(a.t,c)===l||Hi(n,c,t(l))})),i===3?new Set(n):n})(e)}function Mi(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return bn(e)}function Wi(){function e(c,l){var u=i[c];return u?u.enumerable=l:i[c]=u={configurable:!0,enumerable:l,get:function(){var p=this[M];return vr.get(p,c)},set:function(p){var f=this[M];vr.set(f,c,p)}},u}function t(c){for(var l=c.length-1;l>=0;l--){var u=c[l][M];if(!u.P)switch(u.i){case 5:n(u)&&rt(u);break;case 4:o(u)&&rt(u)}}}function o(c){for(var l=c.t,u=c.k,p=Zt(u),f=p.length-1;f>=0;f--){var h=p[f];if(h!==M){var m=l[h];if(m===void 0&&!Kt(l,h))return!0;var y=u[h],g=y&&y[M];if(g?g.t!==m:!$i(y,m))return!0}}var x=!!l[M];return p.length!==Zt(l).length+(x?0:1)}function n(c){var l=c.k;if(l.length!==c.t.length)return!0;var u=Object.getOwnPropertyDescriptor(l,l.length-1);if(u&&!u.get)return!0;for(var p=0;p<l.length;p++)if(!l.hasOwnProperty(p))return!0;return!1}function a(c){c.g&&xe(3,JSON.stringify(tt(c)))}var i={};Yl("ES5",{J:function(c,l){var u=Array.isArray(c),p=(function(h,m){if(h){for(var y=Array(m.length),g=0;g<m.length;g++)Object.defineProperty(y,""+g,e(g,!0));return y}var x=Gi(m);delete x[M];for(var C=Zt(x),O=0;O<C.length;O++){var E=C[O];x[E]=e(E,h||!!x[E].enumerable)}return Object.create(Object.getPrototypeOf(m),x)})(u,c),f={i:u?5:4,A:l?l.A:pn(),P:!1,I:!1,R:{},l,t:c,k:p,o:null,g:!1,C:!1};return Object.defineProperty(p,M,{value:f,writable:!0}),p},S:function(c,l,u){u?We(l)&&l[M].A===c&&t(c.p):(c.u&&(function p(f){if(f&&typeof f=="object"){var h=f[M];if(h){var m=h.t,y=h.k,g=h.R,x=h.i;if(x===4)xt(y,(function(L){L!==M&&(m[L]!==void 0||Kt(m,L)?g[L]||p(y[L]):(g[L]=!0,rt(h)))})),xt(m,(function(L){y[L]!==void 0||Kt(y,L)||(g[L]=!1,rt(h))}));else if(x===5){if(n(h)&&(rt(h),g.length=!0),y.length<m.length)for(var C=y.length;C<m.length;C++)g[C]=!1;else for(var O=m.length;O<y.length;O++)g[O]=!0;for(var E=Math.min(y.length,m.length),R=0;R<E;R++)y.hasOwnProperty(R)||(g[R]=!0),g[R]===void 0&&p(y[R])}}}})(c.p[0]),t(c.p))},K:function(c){return c.i===4?o(c):n(c)}})}var Ui,xr,Sn=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",Jl=typeof Map<"u",ed=typeof Set<"u",Bi=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",zi=Sn?Symbol.for("immer-nothing"):((Ui={})["immer-nothing"]=!0,Ui),Fi=Sn?Symbol.for("immer-draftable"):"__$immer_draftable",M=Sn?Symbol.for("immer-state"):"__$immer_state";var td=""+Object.prototype.constructor,Zt=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,Gi=Object.getOwnPropertyDescriptors||function(e){var t={};return Zt(e).forEach((function(o){t[o]=Object.getOwnPropertyDescriptor(e,o)})),t},mn={},vr={get:function(e,t){if(t===M)return e;var o=tt(e);if(!Kt(o,t))return(function(a,i,c){var l,u=Di(i,c);return u?"value"in u?u.value:(l=u.get)===null||l===void 0?void 0:l.call(a.k):void 0})(e,o,t);var n=o[t];return e.I||!we(n)?n:n===dn(e.t,t)?(un(e),e.o[t]=hn(e.A.h,n,e)):n},has:function(e,t){return t in tt(e)},ownKeys:function(e){return Reflect.ownKeys(tt(e))},set:function(e,t,o){var n=Di(tt(e),t);if(n?.set)return n.set.call(e.k,o),!0;if(!e.P){var a=dn(tt(e),t),i=a?.[M];if(i&&i.t===o)return e.o[t]=o,e.R[t]=!1,!0;if($i(o,a)&&(o!==void 0||Kt(e.t,t)))return!0;un(e),rt(e)}return e.o[t]===o&&(o!==void 0||t in e.o)||Number.isNaN(o)&&Number.isNaN(e.o[t])||(e.o[t]=o,e.R[t]=!0),!0},deleteProperty:function(e,t){return dn(e.t,t)!==void 0||t in e.t?(e.R[t]=!1,un(e),rt(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var o=tt(e),n=Reflect.getOwnPropertyDescriptor(o,t);return n&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:n.enumerable,value:o[t]}},defineProperty:function(){xe(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){xe(12)}},br={};xt(vr,(function(e,t){br[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),br.deleteProperty=function(e,t){return br.set.call(this,e,t,void 0)},br.set=function(e,t,o){return vr.set.call(this,e[0],t,o,e[0])};var rd=(function(){function e(o){var n=this;this.O=Bi,this.D=!0,this.produce=function(a,i,c){if(typeof a=="function"&&typeof i!="function"){var l=i;i=a;var u=n;return function(x){var C=this;x===void 0&&(x=l);for(var O=arguments.length,E=Array(O>1?O-1:0),R=1;R<O;R++)E[R-1]=arguments[R];return u.produce(x,(function(L){var j;return(j=i).call.apply(j,[C,L].concat(E))}))}}var p;if(typeof i!="function"&&xe(6),c!==void 0&&typeof c!="function"&&xe(7),we(a)){var f=ki(n),h=hn(n,a,void 0),m=!0;try{p=i(h),m=!1}finally{m?Qr(f):fn(f)}return typeof Promise<"u"&&p instanceof Promise?p.then((function(x){return cn(f,c),ln(x,f)}),(function(x){throw Qr(f),x})):(cn(f,c),ln(p,f))}if(!a||typeof a!="object"){if((p=i(a))===void 0&&(p=a),p===zi&&(p=void 0),n.D&&xn(p,!0),c){var y=[],g=[];Me("Patches").M(a,p,y,g),c(y,g)}return p}xe(21,a)},this.produceWithPatches=function(a,i){if(typeof a=="function")return function(p){for(var f=arguments.length,h=Array(f>1?f-1:0),m=1;m<f;m++)h[m-1]=arguments[m];return n.produceWithPatches(p,(function(y){return a.apply(void 0,[y].concat(h))}))};var c,l,u=n.produce(a,i,(function(p,f){c=p,l=f}));return typeof Promise<"u"&&u instanceof Promise?u.then((function(p){return[p,c,l]})):[u,c,l]},typeof o?.useProxies=="boolean"&&this.setUseProxies(o.useProxies),typeof o?.autoFreeze=="boolean"&&this.setAutoFreeze(o.autoFreeze)}var t=e.prototype;return t.createDraft=function(o){we(o)||xe(8),We(o)&&(o=Ql(o));var n=ki(this),a=hn(this,o,void 0);return a[M].C=!0,fn(n),a},t.finishDraft=function(o,n){var a=o&&o[M],i=a.A;return cn(i,n),ln(void 0,i)},t.setAutoFreeze=function(o){this.D=o},t.setUseProxies=function(o){o&&!Bi&&xe(20),this.O=o},t.applyPatches=function(o,n){var a;for(a=n.length-1;a>=0;a--){var i=n[a];if(i.path.length===0&&i.op==="replace"){o=i.value;break}}a>-1&&(n=n.slice(a+1));var c=Me("Patches").$;return We(o)?c(o,n):this.produce(o,(function(l){return c(l,n)}))},e})(),de=new rd,od=de.produce,Dy=de.produceWithPatches.bind(de),My=de.setAutoFreeze.bind(de),Uy=de.setUseProxies.bind(de),By=de.applyPatches.bind(de),Fy=de.createDraft.bind(de),Hy=de.finishDraft.bind(de),to=od;function vt(e){"@babel/helpers - typeof";return vt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},vt(e)}function ji(e,t){if(vt(e)!="object"||!e)return e;var o=e[Symbol.toPrimitive];if(o!==void 0){var n=o.call(e,t||"default");if(vt(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Vi(e){var t=ji(e,"string");return vt(t)=="symbol"?t:t+""}function Ki(e,t,o){return(t=Vi(t))in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function Zi(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),o.push.apply(o,n)}return o}function Cn(e){for(var t=1;t<arguments.length;t++){var o=arguments[t]!=null?arguments[t]:{};t%2?Zi(Object(o),!0).forEach(function(n){Ki(e,n,o[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Zi(Object(o)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(o,n))})}return e}function Y(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var qi=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})(),On=function(){return Math.random().toString(36).substring(7).split("").join(".")},ro={INIT:"@@redux/INIT"+On(),REPLACE:"@@redux/REPLACE"+On(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+On()}};function nd(e){if(typeof e!="object"||e===null)return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function En(e,t,o){var n;if(typeof t=="function"&&typeof o=="function"||typeof o=="function"&&typeof arguments[3]=="function")throw new Error(Y(0));if(typeof t=="function"&&typeof o>"u"&&(o=t,t=void 0),typeof o<"u"){if(typeof o!="function")throw new Error(Y(1));return o(En)(e,t)}if(typeof e!="function")throw new Error(Y(2));var a=e,i=t,c=[],l=c,u=!1;function p(){l===c&&(l=c.slice())}function f(){if(u)throw new Error(Y(3));return i}function h(x){if(typeof x!="function")throw new Error(Y(4));if(u)throw new Error(Y(5));var C=!0;return p(),l.push(x),function(){if(C){if(u)throw new Error(Y(6));C=!1,p();var E=l.indexOf(x);l.splice(E,1),c=null}}}function m(x){if(!nd(x))throw new Error(Y(7));if(typeof x.type>"u")throw new Error(Y(8));if(u)throw new Error(Y(9));try{u=!0,i=a(i,x)}finally{u=!1}for(var C=c=l,O=0;O<C.length;O++){var E=C[O];E()}return x}function y(x){if(typeof x!="function")throw new Error(Y(10));a=x,m({type:ro.REPLACE})}function g(){var x,C=h;return x={subscribe:function(E){if(typeof E!="object"||E===null)throw new Error(Y(11));function R(){E.next&&E.next(f())}R();var L=C(R);return{unsubscribe:L}}},x[qi]=function(){return this},x}return m({type:ro.INIT}),n={dispatch:m,subscribe:h,getState:f,replaceReducer:y},n[qi]=g,n}function ad(e){Object.keys(e).forEach(function(t){var o=e[t],n=o(void 0,{type:ro.INIT});if(typeof n>"u")throw new Error(Y(12));if(typeof o(void 0,{type:ro.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Y(13))})}function Yi(e){for(var t=Object.keys(e),o={},n=0;n<t.length;n++){var a=t[n];typeof e[a]=="function"&&(o[a]=e[a])}var i=Object.keys(o),c,l;try{ad(o)}catch(u){l=u}return function(p,f){if(p===void 0&&(p={}),l)throw l;if(0)var h;for(var m=!1,y={},g=0;g<i.length;g++){var x=i[g],C=o[x],O=p[x],E=C(O,f);if(typeof E>"u"){var R=f&&f.type;throw new Error(Y(14))}y[x]=E,m=m||E!==O}return m=m||i.length!==Object.keys(p).length,m?y:p}}function Yt(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return t.length===0?function(n){return n}:t.length===1?t[0]:t.reduce(function(n,a){return function(){return n(a.apply(void 0,arguments))}})}function Xi(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return function(n){return function(){var a=n.apply(void 0,arguments),i=function(){throw new Error(Y(15))},c={getState:a.getState,dispatch:function(){return i.apply(void 0,arguments)}},l=t.map(function(u){return u(c)});return i=Yt.apply(void 0,l)(a.dispatch),Cn(Cn({},a),{},{dispatch:i})}}}function Qi(e){var t=function(n){var a=n.dispatch,i=n.getState;return function(c){return function(l){return typeof l=="function"?l(a,i,e):c(l)}}};return t}var Ji=Qi();Ji.withExtraArgument=Qi;var An=Ji;var ns=(function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},e(t,o)};return function(t,o){if(typeof o!="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");e(t,o);function n(){this.constructor=t}t.prototype=o===null?Object.create(o):(n.prototype=o.prototype,new n)}})(),id=function(e,t){var o={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,c;return c={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(c[Symbol.iterator]=function(){return this}),c;function l(p){return function(f){return u([p,f])}}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=t.call(e,o)}catch(f){p=[6,f],a=0}finally{n=i=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},Xt=function(e,t){for(var o=0,n=t.length,a=e.length;o<n;o++,a++)e[a]=t[o];return e},sd=Object.defineProperty,cd=Object.defineProperties,ld=Object.getOwnPropertyDescriptors,es=Object.getOwnPropertySymbols,dd=Object.prototype.hasOwnProperty,ud=Object.prototype.propertyIsEnumerable,ts=function(e,t,o){return t in e?sd(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o},ot=function(e,t){for(var o in t||(t={}))dd.call(t,o)&&ts(e,o,t[o]);if(es)for(var n=0,a=es(t);n<a.length;n++){var o=a[n];ud.call(t,o)&&ts(e,o,t[o])}return e},wn=function(e,t){return cd(e,ld(t))},pd=function(e,t,o){return new Promise(function(n,a){var i=function(u){try{l(o.next(u))}catch(p){a(p)}},c=function(u){try{l(o.throw(u))}catch(p){a(p)}},l=function(u){return u.done?n(u.value):Promise.resolve(u.value).then(i,c)};l((o=o.apply(e,t)).next())})};var fd=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Yt:Yt.apply(null,arguments)},ng=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(e){return e}};function hd(e){if(typeof e!="object"||e===null)return!1;var t=Object.getPrototypeOf(e);if(t===null)return!0;for(var o=t;Object.getPrototypeOf(o)!==null;)o=Object.getPrototypeOf(o);return t===o}function nt(e,t){function o(){for(var n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];if(t){var i=t.apply(void 0,n);if(!i)throw new Error("prepareAction did not return an object");return ot(ot({type:e,payload:i.payload},"meta"in i&&{meta:i.meta}),"error"in i&&{error:i.error})}return{type:e,payload:n[0]}}return o.toString=function(){return""+e},o.type=e,o.match=function(n){return n.type===e},o}var md=(function(e){ns(t,e);function t(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var a=e.apply(this,o)||this;return Object.setPrototypeOf(a,t.prototype),a}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return e.prototype.concat.apply(this,o)},t.prototype.prepend=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return o.length===1&&Array.isArray(o[0])?new(t.bind.apply(t,Xt([void 0],o[0].concat(this)))):new(t.bind.apply(t,Xt([void 0],o.concat(this))))},t})(Array),yd=(function(e){ns(t,e);function t(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var a=e.apply(this,o)||this;return Object.setPrototypeOf(a,t.prototype),a}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return e.prototype.concat.apply(this,o)},t.prototype.prepend=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return o.length===1&&Array.isArray(o[0])?new(t.bind.apply(t,Xt([void 0],o[0].concat(this)))):new(t.bind.apply(t,Xt([void 0],o.concat(this))))},t})(Array);function Tn(e){return we(e)?to(e,function(){}):e}function gd(e){return typeof e=="boolean"}function bd(){return function(t){return xd(t)}}function xd(e){e===void 0&&(e={});var t=e.thunk,o=t===void 0?!0:t,n=e.immutableCheck,a=n===void 0?!0:n,i=e.serializableCheck,c=i===void 0?!0:i,l=e.actionCreatorCheck,u=l===void 0?!0:l,p=new md;if(o&&(gd(o)?p.push(An):p.push(An.withExtraArgument(o.extraArgument))),0){if(a)var f;if(c)var h;if(u)var m}return p}var Rn=!0;function as(e){var t=bd(),o=e||{},n=o.reducer,a=n===void 0?void 0:n,i=o.middleware,c=i===void 0?t():i,l=o.devTools,u=l===void 0?!0:l,p=o.preloadedState,f=p===void 0?void 0:p,h=o.enhancers,m=h===void 0?void 0:h,y;if(typeof a=="function")y=a;else if(hd(a))y=Yi(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 g=c;if(typeof g=="function"&&(g=g(t),!Rn&&!Array.isArray(g)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!Rn&&g.some(function(L){return typeof L!="function"}))throw new Error("each middleware provided to configureStore must be a function");var x=Xi.apply(void 0,g),C=Yt;u&&(C=fd(ot({trace:!Rn},typeof u=="object"&&u)));var O=new yd(x),E=O;Array.isArray(m)?E=Xt([x],m):typeof m=="function"&&(E=m(O));var R=C.apply(void 0,E);return En(y,f,R)}function is(e){var t={},o=[],n,a={addCase:function(i,c){var l=typeof i=="string"?i:i.type;if(!l)throw new Error("`builder.addCase` cannot be called with an empty action type");if(l in t)throw new Error("`builder.addCase` cannot be called with two reducers for the same action type");return t[l]=c,a},addMatcher:function(i,c){return o.push({matcher:i,reducer:c}),a},addDefaultCase:function(i){return n=i,a}};return e(a),[t,o,n]}function vd(e){return typeof e=="function"}function Sd(e,t,o,n){o===void 0&&(o=[]);var a=typeof t=="function"?is(t):[t,o,n],i=a[0],c=a[1],l=a[2],u;if(vd(e))u=function(){return Tn(e())};else{var p=Tn(e);u=function(){return p}}function f(h,m){h===void 0&&(h=u());var y=Xt([i[m.type]],c.filter(function(g){var x=g.matcher;return x(m)}).map(function(g){var x=g.reducer;return x}));return y.filter(function(g){return!!g}).length===0&&(y=[l]),y.reduce(function(g,x){if(x)if(We(g)){var C=g,O=x(C,m);return O===void 0?g:O}else{if(we(g))return to(g,function(E){return x(E,m)});var O=x(g,m);if(O===void 0){if(g===null)return g;throw Error("A case reducer on a non-draftable value must not return undefined")}return O}return g},h)}return f.getInitialState=u,f}function Cd(e,t){return e+"/"+t}function ss(e){var t=e.name;if(!t)throw new Error("`name` is a required option for createSlice");typeof process<"u";var o=typeof e.initialState=="function"?e.initialState:Tn(e.initialState),n=e.reducers||{},a=Object.keys(n),i={},c={},l={};a.forEach(function(f){var h=n[f],m=Cd(t,f),y,g;"reducer"in h?(y=h.reducer,g=h.prepare):y=h,i[f]=y,c[m]=y,l[f]=g?nt(m,g):nt(m)});function u(){var f=typeof e.extraReducers=="function"?is(e.extraReducers):[e.extraReducers],h=f[0],m=h===void 0?{}:h,y=f[1],g=y===void 0?[]:y,x=f[2],C=x===void 0?void 0:x,O=ot(ot({},m),c);return Sd(o,function(E){for(var R in O)E.addCase(R,O[R]);for(var L=0,j=g;L<j.length;L++){var F=j[L];E.addMatcher(F.matcher,F.reducer)}C&&E.addDefaultCase(C)})}var p;return{name:t,reducer:function(f,h){return p||(p=u()),p(f,h)},actions:l,caseReducers:i,getInitialState:function(){return p||(p=u()),p.getInitialState()}}}var Od="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Ed=function(e){e===void 0&&(e=21);for(var t="",o=e;o--;)t+=Od[Math.random()*64|0];return t},Ad=["name","message","stack","code"],Ln=(function(){function e(t,o){this.payload=t,this.meta=o}return e})(),rs=(function(){function e(t,o){this.payload=t,this.meta=o}return e})(),wd=function(e){if(typeof e=="object"&&e!==null){for(var t={},o=0,n=Ad;o<n.length;o++){var a=n[o];typeof e[a]=="string"&&(t[a]=e[a])}return t}return{message:String(e)}},cg=(function(){function e(t,o,n){var a=nt(t+"/fulfilled",function(f,h,m,y){return{payload:f,meta:wn(ot({},y||{}),{arg:m,requestId:h,requestStatus:"fulfilled"})}}),i=nt(t+"/pending",function(f,h,m){return{payload:void 0,meta:wn(ot({},m||{}),{arg:h,requestId:f,requestStatus:"pending"})}}),c=nt(t+"/rejected",function(f,h,m,y,g){return{payload:y,error:(n&&n.serializeError||wd)(f||"Rejected"),meta:wn(ot({},g||{}),{arg:m,requestId:h,rejectedWithValue:!!y,requestStatus:"rejected",aborted:f?.name==="AbortError",condition:f?.name==="ConditionError"})}}),l=!1,u=typeof AbortController<"u"?AbortController:(function(){function f(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return f.prototype.abort=function(){},f})();function p(f){return function(h,m,y){var g=n?.idGenerator?n.idGenerator(f):Ed(),x=new u,C,O=!1;function E(L){C=L,x.abort()}var R=(function(){return pd(this,null,function(){var L,j,F,Ke,Do,Ze,ie;return id(this,function(fe){switch(fe.label){case 0:return fe.trys.push([0,4,,5]),Ke=(L=n?.condition)==null?void 0:L.call(n,f,{getState:m,extra:y}),Ld(Ke)?[4,Ke]:[3,2];case 1:Ke=fe.sent(),fe.label=2;case 2:if(Ke===!1||x.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return O=!0,Do=new Promise(function(se,ct){return x.signal.addEventListener("abort",function(){return ct({name:"AbortError",message:C||"Aborted"})})}),h(i(g,f,(j=n?.getPendingMeta)==null?void 0:j.call(n,{requestId:g,arg:f},{getState:m,extra:y}))),[4,Promise.race([Do,Promise.resolve(o(f,{dispatch:h,getState:m,extra:y,requestId:g,signal:x.signal,abort:E,rejectWithValue:function(se,ct){return new Ln(se,ct)},fulfillWithValue:function(se,ct){return new rs(se,ct)}})).then(function(se){if(se instanceof Ln)throw se;return se instanceof rs?a(se.payload,g,f,se.meta):a(se,g,f)})])];case 3:return F=fe.sent(),[3,5];case 4:return Ze=fe.sent(),F=Ze instanceof Ln?c(null,g,f,Ze.payload,Ze.meta):c(Ze,g,f),[3,5];case 5:return ie=n&&!n.dispatchConditionRejection&&c.match(F)&&F.meta.condition,ie||h(F),[2,F]}})})})();return Object.assign(R,{abort:E,requestId:g,arg:f,unwrap:function(){return R.then(Rd)}})}}return Object.assign(p,{pending:i,rejected:c,fulfilled:a,typePrefix:t})}return e.withTypes=function(){return e},e})();function Rd(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function Ld(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var cs="listener",ls="completed",ds="cancelled",lg="task-"+ds,dg="task-"+ls,ug=cs+"-"+ds,pg=cs+"-"+ls;var _n="listenerMiddleware";var fg=nt(_n+"/add"),hg=nt(_n+"/removeAll"),mg=nt(_n+"/remove");var os,yg=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(e){return(os||(os=Promise.resolve())).then(e).catch(function(t){return setTimeout(function(){throw t},0)})},Td=function(e){return function(t){setTimeout(t,e)}},gg=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Td(10);Wi();var _d=Vr(Symbol("withEventBus"),function(e,t){return class extends e{constructor(){super(...arguments),this.eventBus=t??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)}}}),oo=class extends _d(Object){};window.ftReduxStores||(window.ftReduxStores={});var us=class e extends oo{static get(t){var o;let n=typeof t=="string"?t:t.name,a=typeof t=="string"?void 0:t,i=window.ftReduxStores[n];if(Xr(i))return i;if(a==null)return;let c=ss({...a,reducers:(o=a.reducers)!==null&&o!==void 0?o:{}}),l=as({reducer:(u,p)=>{if(p.type==="CLEAR_FT_REDUX_STORE"){let f=mr(c.getInitialState());for(let h of p.keeping)f[h]=(u??f)[h];return f}else if(typeof p.type=="string"&&p.type.startsWith("DEFAULT_VALUE_SETTER__"))return{...u,...p.overwrites};return c.reducer(u,p)}});return window.ftReduxStores[a.name]=new e(c,l,a.eventBus)}constructor(t,o,n){super(),this.reduxSlice=t,this.reduxStore=o,this.isFtReduxStore=!0,this.commands=new Kr;let a=i=>i!=null?JSON.parse(JSON.stringify(i)):i;this.actions=new Proxy(this.reduxSlice.actions,{get:(i,c,l)=>{let u=c,p=i[u];return p?(...f)=>{let h=p(...f.map(a));return this.reduxStore.dispatch(h),h}:f=>{this.setState({[u]:a(f)})}}}),this.eventBus=n??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:[]})}clearKeeping(...t){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:t})}setState(t){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(t).join("_"),overwrites:t})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(t){throw new Error("Not implemented yet.")}subscribe(t){return this.reduxStore.subscribe(t)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};var no=class{static format(t,o,n,a,i){return window.moment?window.moment(t).locale(o).format(this.getMomentDateFormat(n,a,!!i)):this.getIntlDateTime(t,o,n,a,!!i)}static getMomentDateFormat(t,o,n){return n?"LT":t?o?"lll":"ll":o?"L LT":"L"}static getIntlDateTime(t,o,n,a,i){let c=typeof t=="string"?new Date(t):t,l=new Intl.DateTimeFormat(o,{dateStyle:n?"medium":"short"}).format(c),u=new Intl.DateTimeFormat(o,{timeStyle:"short"}).format(c);return i?u:a?`${l} ${u}`:l}static getTimezoneAsString(){let t=n=>String(Math.floor(n)).padStart(2,"0"),o=new Date().getTimezoneOffset();return`${o<0?"+":"-"}${t(Math.abs(o)/60)}:${t(Math.abs(o)%60)}`}};var ao=b(w()),Id="ft-app-info",Qt=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:t})}};Qt.eventName="authentication-change";var Sr=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:t})}};Sr.eventName="ui-locale-changed";var Nd={session:(e,t)=>{(0,ao.deepEqual)(e.session,t.payload)||(e.session=t.payload,setTimeout(()=>_.dispatchEvent(new Qt(t.payload)),0))}},_=ao.FtReduxStore.get({name:Id,reducers:Nd,initialState:{baseUrl:void 0,apiIntegrationIdentifier:void 0,apiIntegrationAppVersion:void 0,uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],availableContentLocales:[],defaultLocales:void 0,searchInAllLanguagesAllowed:!1,searchLanguageSetsUiLanguage:!1,uiLanguageSetsSearchLanguage:!1,uiLanguageSetsReaderLanguage:!1,metadataConfiguration:void 0,privacyPolicyConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1,authenticationRequired:!1}});var ps=b(w()),io=function(e,t,o,n){var a=arguments.length,i=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,n);else for(var l=e.length-1;l>=0;l--)(c=e[l])&&(i=(a<3?c(i):a>3?c(t,o,i):c(t,o))||i);return a>3&&i&&Object.defineProperty(t,o,i),i},jg=(0,ps.applyMixinOnce)(Symbol("withDateFormat"),function(e){class t extends e{constructor(...n){super(n),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(_)}dateFormatOptionsChanged(n){return n.has("metadataDescriptors")||n.has("useLongDateFormat")||n.has("useDateTimeFormat")||n.has("uiLocale")}getDateFormatter(n){var a,i;return((i=(a=this.metadataDescriptors.find(l=>l.key===n))===null||a===void 0?void 0:a.date)!==null&&i!==void 0?i:!1)?l=>no.format(l,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return io([(0,In.property)({type:Boolean})],t.prototype,"useLongDateFormat",void 0),io([(0,In.property)({type:Boolean})],t.prototype,"useDateTimeFormat",void 0),io([sn({store:_.name,selector:o=>{var n,a;return(a=(n=o.metadataConfiguration)===null||n===void 0?void 0:n.descriptors)!==null&&a!==void 0?a:[]}})],t.prototype,"metadataDescriptors",void 0),io([sn({store:_.name})],t.prototype,"uiLocale",void 0),t});var fs;(function(e){e.black="black",e.green="green",e.blue="blue",e.purple="purple",e.red="red",e.orange="orange",e.yellow="yellow"})(fs||(fs={}));var hs;(function(e){e.OFFICIAL="OFFICIAL",e.PERSONAL="PERSONAL",e.SHARED="SHARED"})(hs||(hs={}));var ms;(function(e){e.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",e.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",e.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",e.PERSONAL_BOOK="PERSONAL_BOOK",e.ATTACHMENT="ATTACHMENT",e.RESOURCE="RESOURCE",e.HTML_PACKAGE="HTML_PACKAGE"})(ms||(ms={}));var ys;(function(e){e.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",e.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",e.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",e.PERSONAL_BOOK="PERSONAL_BOOK",e.ATTACHMENT="ATTACHMENT",e.RESOURCE="RESOURCE",e.HTML_PACKAGE="HTML_PACKAGE"})(ys||(ys={}));var gs;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(gs||(gs={}));var bs;(function(e){e.VALUE="VALUE",e.DATE="DATE",e.RANGE="RANGE"})(bs||(bs={}));var xs;(function(e){e.OFFICIAL="OFFICIAL",e.AI="AI"})(xs||(xs={}));var vs;(function(e){e.BOOKMARK__CREATE="BOOKMARK__CREATE",e.BOOKMARK__DELETE="BOOKMARK__DELETE",e.CASE_DEFLECTION__START="CASE_DEFLECTION__START",e.CASE_DEFLECTION__OPEN_TICKET="CASE_DEFLECTION__OPEN_TICKET",e.CASE_DEFLECTION__RATE="CASE_DEFLECTION__RATE",e.CHATBOT__RATE="CHATBOT__RATE",e.COLLECTION__CREATE="COLLECTION__CREATE",e.COLLECTION__UPDATE="COLLECTION__UPDATE",e.COLLECTION__DELETE="COLLECTION__DELETE",e.CUSTOM_EVENT__TRIGGER="CUSTOM_EVENT__TRIGGER",e.DOCUMENT__ON_DEMAND_TRANSLATE="DOCUMENT__ON_DEMAND_TRANSLATE",e.DOCUMENT__DOWNLOAD="DOCUMENT__DOWNLOAD",e.DOCUMENT__PRINT="DOCUMENT__PRINT",e.DOCUMENT__PROCESS="DOCUMENT__PROCESS",e.DOCUMENT__RATE="DOCUMENT__RATE",e.DOCUMENT__SEARCH="DOCUMENT__SEARCH",e.DOCUMENT__START_DISPLAY="DOCUMENT__START_DISPLAY",e.DOCUMENT__UNRATE="DOCUMENT__UNRATE",e.FEEDBACK__SEND="FEEDBACK__SEND",e.AI__COMPLETED_QUERY="AI__COMPLETED_QUERY",e.AI__RATE="AI__RATE",e.AI_CASE_DEFLECTION__START="AI_CASE_DEFLECTION__START",e.AI_CASE_DEFLECTION__OPEN_TICKET="AI_CASE_DEFLECTION__OPEN_TICKET",e.KHUB__PROCESS="KHUB__PROCESS",e.KHUB__SEARCH="KHUB__SEARCH",e.LABELS__DOWNLOAD="LABELS__DOWNLOAD",e.LINK__SHARE="LINK__SHARE",e.PAGE__DISPLAY="PAGE__DISPLAY",e.PERSONAL_BOOK__CREATE="PERSONAL_BOOK__CREATE",e.PERSONAL_BOOK__DELETE="PERSONAL_BOOK__DELETE",e.PERSONAL_BOOK__UPDATE="PERSONAL_BOOK__UPDATE",e.PERSONAL_TOPIC__CREATE="PERSONAL_TOPIC__CREATE",e.PERSONAL_TOPIC__UPDATE="PERSONAL_TOPIC__UPDATE",e.PERSONAL_TOPIC__DELETE="PERSONAL_TOPIC__DELETE",e.SAVED_SEARCH__CREATE="SAVED_SEARCH__CREATE",e.SAVED_SEARCH__DELETE="SAVED_SEARCH__DELETE",e.SAVED_SEARCH__UPDATE="SAVED_SEARCH__UPDATE",e.SEARCH_PAGE__SELECT="SEARCH_PAGE__SELECT",e.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU="SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU",e.TOPIC__AI_TRANSLATE="TOPIC__AI_TRANSLATE",e.TOPIC__RATE="TOPIC__RATE",e.TOPIC__START_DISPLAY="TOPIC__START_DISPLAY",e.TOPIC__UNRATE="TOPIC__UNRATE",e.USER__LOGIN="USER__LOGIN",e.USER__LOGOUT="USER__LOGOUT",e.HEARTBEAT="HEARTBEAT"})(vs||(vs={}));var Ss;(function(e){e.STANDARD="STANDARD",e.STRUCTURAL="STRUCTURAL"})(Ss||(Ss={}));var Cs;(function(e){e.THIRD_PARTY="THIRD_PARTY",e.OFF_THE_GRID="OFF_THE_GRID",e.CONTENT_PACKAGER="CONTENT_PACKAGER",e.PAGES="PAGES",e.DESIGNED_READER="DESIGNED_READER"})(Cs||(Cs={}));var Os;(function(e){e.HOMEPAGE="HOMEPAGE",e.CUSTOM="CUSTOM",e.HEADER="HEADER",e.READER="READER",e.TOPIC_TEMPLATE="TOPIC_TEMPLATE",e.SEARCH="SEARCH",e.SEARCH_RESULT="SEARCH_RESULT",e.SEARCH_ANNOUNCEMENT="SEARCH_ANNOUNCEMENT",e.LINK_PREVIEW="LINK_PREVIEW",e.UD_VIEWER="UD_VIEWER",e.ASSET_VIEWER="ASSET_VIEWER"})(Os||(Os={}));var Es;(function(e){e.CLASSIC="CLASSIC",e.CUSTOM="CUSTOM",e.DESIGNER="DESIGNER"})(Es||(Es={}));var As;(function(e){e.AND="AND",e.OR="OR",e.MONOVALUED="MONOVALUED"})(As||(As={}));var ws;(function(e){e.NONE="NONE",e.ALPHABET="ALPHABET",e.VERSION="VERSION"})(ws||(ws={}));var Rs;(function(e){e.STARS="STARS",e.LIKE="LIKE",e.DICHOTOMOUS="DICHOTOMOUS",e.NO_RATING="NO_RATING"})(Rs||(Rs={}));var Ls;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR",e.CUSTOM="CUSTOM"})(Ls||(Ls={}));var Nn;(function(e){e.OPTIONAL="OPTIONAL",e.MANDATORY="MANDATORY"})(Nn||(Nn={}));var Ts;(function(e){e.ASC="ASC",e.DESC="DESC"})(Ts||(Ts={}));var _s;(function(e){e.ALPHA="ALPHA",e.NATURAL="NATURAL"})(_s||(_s={}));var kn;(function(e){e.EVERYWHERE="EVERYWHERE",e.TITLE_ONLY="TITLE_ONLY",e.NONE="NONE"})(kn||(kn={}));var Is;(function(e){e.ARTICLE="ARTICLE",e.BOOK="BOOK",e.SHARED_BOOK="SHARED_BOOK",e.HTML_PACKAGE="HTML_PACKAGE"})(Is||(Is={}));var so;(function(e){e.FLUIDTOPICS="FLUIDTOPICS",e.EXTERNAL="EXTERNAL"})(so||(so={}));var Ns;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC",e.PERSONAL_BOOK="PERSONAL_BOOK",e.SHARED_BOOK="SHARED_BOOK",e.HTML_PACKAGE="HTML_PACKAGE"})(Ns||(Ns={}));var ks;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(ks||(ks={}));var Ps;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC",e.HTML_PACKAGE="HTML_PACKAGE",e.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(Ps||(Ps={}));var Pn;(function(e){e.DEFAULT="DEFAULT",e.DOCUMENTS="DOCUMENTS",e.ALL_TOPICS="ALL_TOPICS",e.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(Pn||(Pn={}));var Ds;(function(e){e.PLAIN_TEXT="PLAIN_TEXT",e.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",e.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(Ds||(Ds={}));var $;(function(e){e.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",e.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",e.HTML_EXPORT_USER="HTML_EXPORT_USER",e.PDF_EXPORT_USER="PDF_EXPORT_USER",e.SAVED_SEARCH_USER="SAVED_SEARCH_USER",e.COLLECTION_USER="COLLECTION_USER",e.OFFLINE_USER="OFFLINE_USER",e.ANALYTICS_USER="ANALYTICS_USER",e.BETA_USER="BETA_USER",e.DEBUG_USER="DEBUG_USER",e.PRINT_USER="PRINT_USER",e.RATING_USER="RATING_USER",e.FEEDBACK_USER="FEEDBACK_USER",e.GENERATIVE_AI_USER="GENERATIVE_AI_USER",e.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_USER",e.CONTENT_PUBLISHER="CONTENT_PUBLISHER",e.BEHAVIOR_DATA_USER="BEHAVIOR_DATA_USER",e.ANNOUNCEMENT_ADMIN="ANNOUNCEMENT_ADMIN",e.KHUB_ADMIN="KHUB_ADMIN",e.USERS_ADMIN="USERS_ADMIN",e.PORTAL_ADMIN="PORTAL_ADMIN",e.ADMIN="ADMIN"})($||($={}));var ve;(function(e){e.SEARCHES="SEARCHES",e.BOOKMARKS="BOOKMARKS",e.BOOKS="BOOKS",e.COLLECTIONS="COLLECTIONS"})(ve||(ve={}));var Ms;(function(e){e.UNAUTHENTICATED="UNAUTHENTICATED",e.USER_INCOMPLETE="USER_INCOMPLETE",e.MFA_REQUIRED="MFA_REQUIRED",e.AUTHENTICATED="AUTHENTICATED"})(Ms||(Ms={}));var Us;(function(e){e.UNREACHABLE="UNREACHABLE",e.UNAUTHORIZED="UNAUTHORIZED",e.FORBIDDEN="FORBIDDEN",e.INCOMPATIBLE="INCOMPATIBLE",e.FAILED="FAILED",e.OK="OK"})(Us||(Us={}));var Bs;(function(e){e.VALID="VALID",e.INVALID="INVALID"})(Bs||(Bs={}));var Fs;(function(e){e.INACCURATE="INACCURATE",e.INCOMPLETE="INCOMPLETE",e.OFF_TOPIC="OFF_TOPIC",e.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",e.SUMMARY="SUMMARY",e.SEMANTIC_SEARCH="SEMANTIC_SEARCH",e.CHATBOT_INSTRUCTIONS="CHATBOT_INSTRUCTIONS",e.DOCUMENTATION="DOCUMENTATION",e.OTHER="OTHER"})(Fs||(Fs={}));var Hs;(function(e){e.INACCURATE="INACCURATE",e.INCOMPLETE="INCOMPLETE",e.OFF_TOPIC="OFF_TOPIC",e.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",e.SLOW="SLOW",e.OTHER="OTHER"})(Hs||(Hs={}));var $s;(function(e){e.JSON="JSON",e.TEXT="TEXT"})($s||($s={}));var Ws;(function(e){e.JSON="JSON",e.TEXT="TEXT"})(Ws||(Ws={}));var zs;(function(e){e.TEXT="TEXT",e.HTML="HTML"})(zs||(zs={}));var Gs;(function(e){e.IN_PROGRESS="IN_PROGRESS",e.ERROR="ERROR",e.DONE="DONE"})(Gs||(Gs={}));var js;(function(e){e.HTML="HTML",e.MARKDOWN="MARKDOWN"})(js||(js={}));var Vs;(function(e){e.SOURCES="SOURCES",e.ENRICH_AND_CLEAN="ENRICH_AND_CLEAN",e.VOCABULARIES="VOCABULARIES",e.METADATA="METADATA",e.PRETTY_URL="PRETTY_URL",e.ACCESS_RULE="ACCESS_RULE",e.DESIGNED_PAGES="DESIGNED_PAGES",e.THEME_STUDIO="THEME_STUDIO",e.PORTAL_GENERAL="PORTAL_GENERAL",e.ASSETS="ASSETS",e.CODE_LIBRARY="CODE_LIBRARY",e.THEME="THEME",e.CONTENT_STYLES="CONTENT_STYLES",e.HOMEPAGE="HOMEPAGE",e.CLASSIC_SEARCH_PAGE="CLASSIC_SEARCH_PAGE",e.CLASSIC_READER_PAGE="CLASSIC_READER_PAGE",e.PORTAL_METADATA="PORTAL_METADATA",e.LANGUAGES="LANGUAGES",e.PRINT_TEMPLATES="PRINT_TEMPLATES",e.OFFLINE="OFFLINE",e.CUSTOM_JS="CUSTOM_JS",e.CONFIDENTIALITY="CONFIDENTIALITY",e.NOTIFICATIONS="NOTIFICATIONS"})(Vs||(Vs={}));var Ks;(function(e){e.MAP="MAP",e.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(Ks||(Ks={}));var kd={[$.PERSONAL_BOOK_SHARE_USER]:[$.PERSONAL_BOOK_USER],[$.HTML_EXPORT_USER]:[$.PERSONAL_BOOK_USER],[$.PDF_EXPORT_USER]:[$.PERSONAL_BOOK_USER],[$.KHUB_ADMIN]:[$.CONTENT_PUBLISHER],[$.ADMIN]:[$.KHUB_ADMIN,$.USERS_ADMIN,$.PORTAL_ADMIN,$.BEHAVIOR_DATA_USER],[$.GENERATIVE_AI_EXPORT_USER]:[$.GENERATIVE_AI_USER]};function Zs(e,t){return e===t||(kd[e]??[]).some(o=>Zs(o,t))}function qs(e,t){return e==null?!1:(Array.isArray(e)?e:Array.isArray(e.roles)?e.roles:Array.isArray(e.profile?.roles)?e.profile.roles:[]).some(n=>Zs(n,t))}var fo=b(w());var Dn=b(w());var St=class e{static get(t){let{baseUrl:o,apiIntegrationIdentifier:n}=_.getState(),a=t??n;if(o&&a&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(o,a,!0)}static await(t){return new Promise(o=>{let n=e.get(t);if(n)o(n);else{let a=_.subscribe(()=>{n=e.get(t),n&&(a(),o(n))})}})}};var Jt=class{constructor(t){this.overrideApi=t}get api(){var t;return(t=this.overrideApi)!==null&&t!==void 0?t:St.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):St.await()}};var oe=class extends Jt{constructor(t=!0,o){var n;super(o),this.sortObjectFields=(i,c)=>typeof c!="object"||c==null||Array.isArray(c)?c:Object.fromEntries(Object.entries(c).sort(([l],[u])=>l.localeCompare(u)));let a=this.constructor;a.commonCache=(n=a.commonCache)!==null&&n!==void 0?n:new Dn.CacheRegistry,this.cache=t?a.commonCache:new Dn.CacheRegistry}clearCache(){this.cache.clearAll()}hash(t){return String(Array.from(JSON.stringify(t,this.sortObjectFields)).reduce((o,n)=>0|31*o+n.charCodeAt(0),0))}};var co=class extends oe{async listMySearches(){let{session:t}=_.getState();return qs(t,$.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(t.profile.userId),300*1e3):[]}};var lo=class extends oe{async listMyBookmarks(){let t=_.getState().session;return t?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(t.profile.userId),300*1e3):[]}};var uo=class extends oe{constructor(){super(...arguments),this.CACHE_DURATION=180*1e3}async getUserAssetCount(t){if(this.isAuthenticated())return this.cache.get(`user-asset-count-${t}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/${t}`),this.CACHE_DURATION)}async getUserBookmarkCountByMap(t){if(this.isAuthenticated())return this.cache.get(`user-bookmark-count-by-map-${t}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/BOOKMARKS/${t}`),this.CACHE_DURATION)}isAuthenticated(){let t=_.getState().session;return!!t?.sessionAuthenticated}};var po=class extends oe{constructor(){super(...arguments),this.CACHE_DURATION=180*1e3}async getUserAssetLabels(){return this.isAuthenticated()?this.cache.get("user-asset-labels",async()=>(await this.awaitApi).get("/internal/api/webapp/user/assets/labels"),this.CACHE_DURATION):[]}isAuthenticated(){let t=_.getState().session;return!!t?.sessionAuthenticated}};var Pd="ft-user-assets",Dd={setAssetCount:(e,t)=>{let{userAssetType:o,count:n}=t.payload.assetCount;e.assetCounts.allAsset[o]=n},clearAssetCount:e=>{Object.values(ve).forEach(t=>{e.assetCounts.allAsset[t]=void 0})},setBookmarkCountByMap:(e,t)=>{let o=t.payload.mapId;e.assetCounts.bookmarkByMap[o]=t.payload.count},clearBookmarkCountByMap:e=>{e.assetCounts.bookmarkByMap={}},addAsset:(e,t)=>{let{assetType:o,mapId:n,asset:a}=t.payload;Un(e,o,[...Mn(e,o),a]),Ys(e,o,1,n),Xs(e,a)},editAsset:(e,t)=>{let{assetType:o,asset:n}=t.payload;Un(e,o,Mn(e,o).map(a=>a.id===n.id?n:a)),Xs(e,n)},removeAsset:(e,t)=>{let{assetType:o,mapId:n,assetId:a}=t.payload;Un(e,o,Mn(e,o).filter(i=>i.id!==a)),Ys(e,o,-1,n)}},Qs={[ve.SEARCHES]:"savedSearches",[ve.BOOKMARKS]:"bookmarks",[ve.BOOKS]:void 0,[ve.COLLECTIONS]:void 0},Mn=(e,t)=>{var o;let n=Qs[t];return n?(o=e[n])!==null&&o!==void 0?o:[]:[]},Un=(e,t,o)=>{let n=Qs[t];n&&(e[n]=o)},Ys=(e,t,o,n)=>{let a=e.assetCounts.allAsset[t];if(a!==void 0&&(e.assetCounts.allAsset[t]=Math.max(0,a+o),t===ve.BOOKMARKS&&n)){let i=e.assetCounts.bookmarkByMap[n];e.assetCounts.bookmarkByMap[n]=Math.max(0,i+o)}},Xs=(e,t)=>{let o=e.assetLabels.map(a=>a.title),n=t.labels.filter(a=>!o.includes(a)).map(a=>({title:a}));e.assetLabels.push(...n)},ee=fo.FtReduxStore.get({name:Pd,reducers:Dd,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(ve).map(e=>[e,void 0])),bookmarkByMap:{}},assetLabels:[]}}),Bn=class{constructor(t=new uo,o=new po){this.assetCountsService=t,this.assetLabelsService=o,this.currentSession=_.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new lo,this.savedSearchesService=new co,_.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var t;let{session:o}=_.getState();(0,fo.deepEqual)((t=this.currentSession)===null||t===void 0?void 0:t.profile,o?.profile)||(this.currentSession=o,this.clearMySearches(),this.reloadBookmarks(),this.clearUserAssetCounts(),this.reloadAssetLabels())}clearUserAssetCounts(){this.assetCountsService.clearCache(),ee.actions.clearAssetCount(),ee.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),ee.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),ee.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let t=await this.savedSearchesService.listMySearches();ee.actions.savedSearches(t)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let t=await this.assetLabelsService.getUserAssetLabels();ee.actions.assetLabels(t)}async loadAssetCount(t){let o=await this.assetCountsService.getUserAssetCount(t);o&&ee.getState().assetCounts.allAsset[t]!==o.count&&ee.actions.setAssetCount({assetCount:o})}async loadBookmarkByMapId(t){let o=await this.assetCountsService.getUserBookmarkCountByMap(t);o&&ee.getState().assetCounts.bookmarkByMap[t]!==o.count&&ee.actions.setBookmarkCountByMap({count:o.count,mapId:t})}async reloadAssetCount(t){this.assetCountsService.clearCache();let o=Object.keys(ee.getState().assetCounts.bookmarkByMap).length!==0;t===ve.BOOKMARKS&&o&&ee.actions.clearBookmarkCountByMap(),ee.getState().assetCounts.allAsset[t]!==void 0&&await this.loadAssetCount(t)}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var t;if(this.bookmarksAreUsed){let o=!((t=this.currentSession)===null||t===void 0)&&t.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;ee.actions.bookmarks(o)}}},Md=new Bn;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=Md);var Fn=class{addCommand(t,o=!1){_.commands.add(t,o)}consumeCommand(t){return _.commands.consume(t)}};window.FluidTopicsAppInfoStoreService=new Fn;var Se=b(w());var Js,er=class extends CustomEvent{constructor(t){super("ft-i18n-context-loaded",{detail:t})}},Ud=Symbol("clearAfterUnitTest"),ho=class extends(0,Se.withEventBus)(oe){constructor(t){super(),this.messageContextProvider=t,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[Js]=()=>{this.defaultMessages={},this.cache=new Se.CacheRegistry,this.listeners={}},this.currentUiLocale=_.getState().uiLocale,_.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:t}=_.getState();this.currentUiLocale!==t&&(this.currentUiLocale=t,this.cache.clearAll(),this.notifyAll())}addContext(t){let o=t.name.toLowerCase();this.cache.setFinal(o,t),this.notify(o)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(t,o){var n;if(t=t.toLowerCase(),o&&Object.keys(o).length>0){let a={...(n=this.defaultMessages[t])!==null&&n!==void 0?n:{},...o};(0,Se.deepEqual)(this.defaultMessages[t],a)||(this.defaultMessages[t]=a,await this.notify(t))}return this.fetchContext(t)}resolveContext(t){var o,n;return this.fetchContext(t),(n=(o=this.cache.getNow(t))===null||o===void 0?void 0:o.messages)!==null&&n!==void 0?n:{}}resolveRawMessage(t,o){let n=t.toLowerCase();return this.resolveContext(n)[o]}resolveMessage(t,o,...n){var a;let i=t.toLowerCase(),c=this.resolveContext(i);return new Se.ParametrizedLabelResolver((a=this.defaultMessages[i])!==null&&a!==void 0?a:{},c).resolve(o,...n)}async fetchContext(t){let o=!this.cache.has(t),n;try{n=await this.cache.get(t,()=>this.messageContextProvider(this.currentUiLocale,t)),o&&await this.notify(t)}catch(a){!(a instanceof Se.CanceledPromiseError)&&o&&console.error(a)}return n}subscribe(t,o){var n;return t=t.toLowerCase(),this.listeners[t]=(n=this.listeners[t])!==null&&n!==void 0?n:new Set,this.listeners[t].add(o),()=>{var a;return(a=this.listeners[t])===null||a===void 0?void 0:a.delete(o)}}async notifyAll(){let t=Object.keys(this.listeners);document.body.dispatchEvent(new er({loadedContexts:t})),this.dispatchEvent(new er({loadedContexts:t})),await Promise.all(t.map(o=>this.notify(o,!1)))}async notify(t,o=!0){o&&(document.body.dispatchEvent(new er({loadedContexts:[t]})),this.dispatchEvent(new er({loadedContexts:[t]}))),this.listeners[t]!=null&&await Promise.all([...this.listeners[t].values()].map(n=>(0,Se.delay)(0).then(()=>n()).catch(()=>null)))}};Js=Ud;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends ho{constructor(){super(async(e,t)=>(await this.awaitApi).getFluidTopicsMessageContext(e,t))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends ho{constructor(){super(async(e,t)=>(await this.awaitApi).getCustomMessageContext(e,t))}});var Cr=window.FluidTopicsI18nService,Hn=window.FluidTopicsCustomI18nService;var ec=b(w()),$n=class{highlightHtml(t,o,n){(0,ec.highlightHtml)(t,o,n)}};window.FluidTopicsHighlightHtmlService=new $n;var tc=b(w());var Wn=class{isDate(t){var o,n,a,i;return(i=(a=((n=(o=_.getState().metadataConfiguration)===null||o===void 0?void 0:o.descriptors)!==null&&n!==void 0?n:[]).find(l=>l.key===t))===null||a===void 0?void 0:a.date)!==null&&i!==void 0?i:!1}format(t,o){var n,a,i,c;if(t==null)return"";try{return tc.DateFormatter.format(t,(n=o?.locale)!==null&&n!==void 0?n:_.getState().uiLocale,(a=o?.longFormat)!==null&&a!==void 0?a:!1,(i=o?.withTime)!==null&&i!==void 0?i:!1,(c=o?.onlyTime)!==null&&c!==void 0?c:!1)}catch(l){throw console.error(`Date ${JSON.stringify(t)} is not valid`,l),l}}};window.FluidTopicsDateService=new Wn;var rc=b(w());var Or=class{static get(t,o){var n,a;let i=_.getState(),{lang:c,region:l}=(a=(n=i.defaultLocales)===null||n===void 0?void 0:n.defaultContentLocale)!==null&&a!==void 0?a:{lang:"en",region:"US"};return new rc.SearchPlaceConverter(i.baseUrl,t??20,i.searchInAllLanguagesAllowed,o??`${c}-${l}`)}};var zn=class{urlToSearchRequest(t){return Or.get().parse(t)}searchRequestToUrl(t){return Or.get().serialize(t)}};window.FluidTopicsUrlService=new zn;var ze=b(w());var Ct=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:{currentItem:t}})}};Ct.eventName="change";var Gn=class{itemName(t){return`fluid-topics-history-item-${t}`}get(t){let o=sessionStorage.getItem(this.itemName(t));return o?JSON.parse(o):void 0}set(t,o){sessionStorage.setItem(this.itemName(t),JSON.stringify(o))}},oc=new Gn;var mo=class e extends ze.WithEventBus{static build(){return new e(window.history,oc,()=>window.location,!1)}constructor(t,o,n,a){var i,c;super(),this.history=t,this.historyStorage=o,this.windowLocation=n,this.states=[],this.realPushState=t.pushState,this.realReplaceState=t.replaceState,this.initialIndex=(c=(i=t.state)===null||i===void 0?void 0:i.index)!==null&&c!==void 0?c:t.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(a)}setCurrentState(t,o=!1){let n=o&&this.currentIndex===t.index-1;this.currentState={...this.buildCurrentState(),...t},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,ze.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,window.location.href]),setTimeout(()=>this.dispatchEvent(new Ct(this.currentItem())),0)}installProxies(){let t=o=>(n,a,[i,c,l])=>{let u=o(),p={...u===this.currentIndex?this.currentState:void 0,...i,index:u,href:typeof l=="string"?l:(l??this.windowLocation()).href};n.apply(a,[p,c,l]),this.setCurrentState(p,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:t(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:t(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",t=>this.setCurrentState(t.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(t){for(let o=this.history.length-1;o>=0;o--)t?this.states[o]=this.historyStorage.get(o):setTimeout(()=>this.states[o]=this.historyStorage.get(o),this.history.length-o)}updateCurrentState(t){var o;let n={...this.buildCurrentState(),...t,index:this.currentIndex,title:(o=t?.title)!==null&&o!==void 0?o:this.currentState.title};this.setCurrentState(n)}addHistoryChangeListener(t){this.addEventListener(Ct.eventName,t)}removeHistoryChangeListener(t){this.removeEventListener(Ct.eventName,t)}currentItem(){return(0,ze.deepCopy)(this.currentState)}back(){let t=this.previousDifferentMajorPosition();t>=0?this.history.go(t-this.currentIndex):this.currentIndex!==this.initialIndex?this.history.go(this.initialIndex-this.currentIndex):this.history.back()}backwardItem(){return(0,ze.deepCopy)(this.states[this.previousDifferentMajorPosition()])}backwardItemMatching(t){let o=this.states.filter(n=>!!n).filter(n=>n.index<this.currentIndex).reverse();return(0,ze.deepCopy)(o.find(n=>t(n)))}previousDifferentMajorPosition(){let t=this.currentIndex>0?this.currentIndex-1:0;for(;t>0&&!this.isDifferentMajorState(t);)t--;return t}forward(){let t=this.nextMajorPosition();t&&t<this.states.length?this.history.go(t-this.currentIndex):this.history.forward()}forwardItem(){let t=this.nextMajorPosition();if(t)return(0,ze.deepCopy)(this.states[t])}nextMajorPosition(){let t=this.currentIndex;if(!(t>=this.states.length)){do t++;while(t<this.states.length&&!this.isDifferentMajorState(t));return this.getHigherPositionInTheSameState(t)}}getHigherPositionInTheSameState(t){var o;let n=(o=this.states[t])===null||o===void 0?void 0:o.majorStateId;if(!n)return t;let a=t,i=t+1;for(;this.states.length>i&&!this.isDifferentMajorState(i,n);)this.hasState(i)&&(a=i),i++;return a}buildCurrentState(){var t,o;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(o=(t=this.history.state)===null||t===void 0?void 0:t.title)!==null&&o!==void 0?o:document.title}}hasState(t){return this.states[t]!=null}isDifferentMajorState(t,o){var n;if(!this.hasState(t))return!1;let a=o??this.currentState.majorStateId,i=(n=this.states[t])===null||n===void 0?void 0:n.majorStateId;return i==null||i!=a}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=mo.build(),window.FluidTopicsHistoryService={currentItem:()=>window.FluidTopicsInternalHistoryService.currentItem(),back:()=>window.FluidTopicsInternalHistoryService.back(),forward:()=>window.FluidTopicsInternalHistoryService.forward(),backwardItem:()=>window.FluidTopicsInternalHistoryService.backwardItem(),forwardItem:()=>window.FluidTopicsInternalHistoryService.forwardItem(),backwardItemMatching:e=>window.FluidTopicsInternalHistoryService.backwardItemMatching(e),addHistoryChangeListener:e=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(e),removeHistoryChangeListener:e=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(e)});var nc=b(U());var ac=nc.css`
|
|
139
|
+
`;var sc=b(U()),ue=b(V()),At=b(w());var Ot=b(w());function ic(e,t){let{authenticationRequired:o,session:n}=_.getState();return o&&!n?.sessionAuthenticated?Promise.resolve(t):e()}var yo=class extends Jt{async updateUiLocale(t){return(await this.awaitApi).updateUiLocale(t)}};var jn=class e extends Ot.FtStateManager{static build(t){return new e(_,t)}constructor(t,o){super(),this.store=t,this.cache=new Ot.CacheRegistry,this.withManualResources=!0,this.localesConfiguration=null,this.userLocaleService=new yo,this.cleanSessionDebouncer=new Ot.Debouncer,this.reloadDebouncer=new Ot.Debouncer(500),this.apiProvider=o??(()=>St.get())}setWithManualResources(t){this.withManualResources=t,this.updateIfNeeded()}async initService(){this.store.addEventListener(Qt.eventName,this.reloadConfiguration)}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.store.getState().session==null&&this.updateSession(),this.store.getState().metadataConfiguration==null&&this.updateMetadataConfiguration()),this.localesConfiguration==null&&this.updateLocalesConfiguration(),(this.store.getState().availableContentLocales==null||this.store.getState().availableContentLocales.length==0)&&this.updateAvailableContentLocales())}async updateSession(){let t=await this.cache.get("session",async()=>{let o=await this.apiProvider().getCurrentSession();return o.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.setSession(void 0)},o.idleTimeoutInMillis),o});this.setSession(t)}async updateMetadataConfiguration(){this.setMetadataConfiguration(await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration()))}async updateLocalesConfiguration(){this.setLocalesConfiguration(await this.cache.get("localesConfiguration",()=>this.apiProvider().getLocalesConfiguration()))}async updateAvailableContentLocales(){var t;let o=await this.cache.get("availableContentLocales",()=>ic(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}));this.setAvailableContentLocales((t=o.contentLocales)!==null&&t!==void 0?t:[])}reloadConfiguration(){var t;(t=this.cache)===null||t===void 0||t.clear("availableContentLocales"),typeof this.updateAvailableContentLocales=="function"&&this.updateAvailableContentLocales()}setBaseUrl(t){this.store.actions.baseUrl(t),window.fluidTopicsBaseUrl=t}setApiIntegrationIdentifier(t){this.store.actions.apiIntegrationIdentifier(t)}setApiIntegrationAppVersion(t){this.store.actions.apiIntegrationAppVersion(t)}setUiLocale(t){this.store.actions.uiLocale(t)}setLocalesConfiguration(t){var o,n,a,i,c;this.localesConfiguration=t,this.store.actions.defaultLocales(this.localesConfiguration.defaultLocales),this.store.actions.availableUiLocales((o=this.localesConfiguration.availableUiLocales)!==null&&o!==void 0?o:[]),this.store.actions.searchInAllLanguagesAllowed((n=this.localesConfiguration.allLanguagesAllowed)!==null&&n!==void 0?n:!1),this.store.actions.searchLanguageSetsUiLanguage((a=this.localesConfiguration.searchLanguageSetsUiLanguage)!==null&&a!==void 0?a:!1),this.store.actions.uiLanguageSetsSearchLanguage((i=this.localesConfiguration.uiLanguageSetsSearchLanguage)!==null&&i!==void 0?i:!1),this.store.actions.uiLanguageSetsReaderLanguage((c=this.localesConfiguration.uiLanguageSetsReaderLanguage)!==null&&c!==void 0?c:!1),setTimeout(()=>this.updateIfNeeded())}setAvailableContentLocales(t){this.store.actions.availableContentLocales(t),setTimeout(()=>this.updateIfNeeded())}stopReloadDebouncer(){this.reloadDebouncer.cancel()}requestUiLocaleUpdate(t){this.userLocaleService.updateUiLocale({uiLocale:t}).then(o=>{o.uiLocaleChanged&&(this.reloadDebouncer.run(()=>window.location.reload()),this.store.dispatchEvent(new Sr(o)))}).catch(()=>{})}setMetadataConfiguration(t){this.store.actions.metadataConfiguration(t),setTimeout(()=>this.updateIfNeeded())}setNoCustom(t){this.store.actions.noCustom(t)}setEditorMode(t){this.store.actions.editorMode(t)}setNoCustomComponent(t){this.store.actions.noCustomComponent(t)}setSession(t){this.store.actions.session(t),setTimeout(()=>this.updateIfNeeded())}setOpenExternalDocumentInNewTab(t){this.store.actions.openExternalDocumentInNewTab(t)}setNavigatorOnline(t){this.store.actions.navigatorOnline(t)}setForcedOffline(t){this.store.actions.forcedOffline(t)}setAuthenticationRequired(t){this.store.actions.authenticationRequired(t)}},Vn=jn.build();var Et=class extends Event{constructor(t,o,n,a){super("context-request",{bubbles:!0,composed:!0}),this.context=t,this.contextTarget=o,this.callback=n,this.subscribe=a??!1}};var Er=class{constructor(){this.pendingContextRequests=new Map,this.onContextProvider=t=>{let o=this.pendingContextRequests.get(t.context);if(o===void 0)return;this.pendingContextRequests.delete(t.context);let{requests:n}=o;for(let{elementRef:a,callbackRef:i}of n){let c=a.deref(),l=i.deref();c===void 0||l===void 0||c.dispatchEvent(new Et(t.context,c,l,!0))}},this.onContextRequest=t=>{if(t.subscribe!==!0)return;let o=t.contextTarget??t.composedPath()[0],n=t.callback,a=this.pendingContextRequests.get(t.context);a===void 0&&this.pendingContextRequests.set(t.context,a={callbacks:new WeakMap,requests:[]});let i=a.callbacks.get(o);i===void 0&&a.callbacks.set(o,i=new WeakSet),i.has(n)||(i.add(n),a.requests.push({elementRef:new WeakRef(o),callbackRef:new WeakRef(n)}))}}attach(t){t.addEventListener("context-request",this.onContextRequest),t.addEventListener("context-provider",this.onContextProvider)}detach(t){t.removeEventListener("context-request",this.onContextRequest),t.removeEventListener("context-provider",this.onContextProvider)}};var X=function(e,t,o,n){var a=arguments.length,i=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,n);else for(var l=e.length-1;l>=0;l--)(c=e[l])&&(i=(a<3?c(i):a>3?c(t,o,i):c(t,o))||i);return a>3&&i&&Object.defineProperty(t,o,i),i},B=class extends At.FtLitElementRedux{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.apiIntegrationAppVersion="ft-integration-app-version",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.authenticationRequired=!1,this.messageContexts=[],this.stateManager=Vn,this.contextRoot=new Er}render(){return sc.html`
|
|
140
140
|
<slot></slot>
|
|
141
|
-
`}connectedCallback(){super.connectedCallback(),this.stateManager.initService(),this.contextRoot.attach(document.body)}disconnectedCallback(){super.disconnectedCallback(),this.contextRoot.detach(document.body)}update(t){var o;super.update(t),t.has("baseUrl")&&this.stateManager.setBaseUrl(this.baseUrl),t.has("apiIntegrationIdentifier")&&this.stateManager.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("apiIntegrationAppVersion")&&this.stateManager.setApiIntegrationAppVersion(this.apiIntegrationAppVersion),t.has("uiLocale")&&this.stateManager.setUiLocale(this.uiLocale),t.has("metadataConfiguration")&&this.stateManager.setMetadataConfiguration(this.metadataConfiguration),t.has("noCustom")&&this.stateManager.setNoCustom(this.noCustom),t.has("editorMode")&&this.stateManager.setEditorMode(this.editorMode),t.has("noCustomComponent")&&this.stateManager.setNoCustomComponent(this.noCustomComponent),t.has("session")&&this.stateManager.setSession(this.session),t.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(n=>Cr.addContext(n)),t.has("openExternalDocumentInNewTab")&&this.stateManager.setOpenExternalDocumentInNewTab(this.openExternalDocumentInNewTab),t.has("navigatorOnline")&&this.stateManager.setNavigatorOnline(this.navigatorOnline),t.has("forcedOffline")&&this.stateManager.setForcedOffline(this.forcedOffline),t.has("authenticationRequired")&&this.stateManager.setAuthenticationRequired(this.authenticationRequired),t.has("withManualResources")&&((o=this.stateManager)===null||o===void 0||o.setWithManualResources(this.withManualResources)),setTimeout(()=>this.stateManager.updateIfNeeded())}};B.elementDefinitions={};B.styles=ac;X([(0,ue.property)()],B.prototype,"baseUrl",void 0);X([(0,ue.property)()],B.prototype,"apiIntegrationIdentifier",void 0);X([(0,ue.property)()],B.prototype,"apiIntegrationAppVersion",void 0);X([(0,ue.property)()],B.prototype,"uiLocale",void 0);X([(0,At.jsonProperty)(null)],B.prototype,"availableUiLocales",void 0);X([(0,At.jsonProperty)(null)],B.prototype,"metadataConfiguration",void 0);X([(0,ue.property)({type:Boolean})],B.prototype,"editorMode",void 0);X([(0,ue.property)({type:Boolean})],B.prototype,"noCustom",void 0);X([(0,ue.property)({type:Boolean})],B.prototype,"openExternalDocumentInNewTab",void 0);X([(0,ue.property)({converter:{fromAttribute(e){return e==="false"?!1:e==="true"||(e??!1)}}})],B.prototype,"noCustomComponent",void 0);X([(0,ue.property)({type:Boolean})],B.prototype,"withManualResources",void 0);X([(0,ue.property)({type:Boolean})],B.prototype,"navigatorOnline",void 0);X([(0,ue.property)({type:Boolean})],B.prototype,"forcedOffline",void 0);X([(0,ue.property)({type:Boolean})],B.prototype,"authenticationRequired",void 0);X([(0,At.jsonProperty)([])],B.prototype,"messageContexts",void 0);X([(0,At.jsonProperty)(void 0)],B.prototype,"session",void 0);var lc=b(w());var cc={"ft-app-context":B};(0,lc.customElements)(cc);var dc=b(V());var Kn=class{fromLocalizableLabel(t){return t.type=="PLAIN_TEXT"?{message:t.text}:{key:t.key,custom:t.type=="LOCALIZED_CUSTOM",context:t.context,message:t.key}}fromAttribute(t){if(t!=null)try{return JSON.parse(t)}catch{if(this.isI18nKey(t)){let[o,n]=t.split(".");return{context:o,key:n,custom:o!=="officialContext",message:""}}return{message:t}}}toAttribute(t){if(t!=null)return JSON.stringify(t)}isI18nKey(t){return t.match(/^[\w-]+\.[\w-]+$/)}},tr=new Kn;var Hd=function(e,t,o,n){var a=arguments.length,i=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,n);else for(var l=e.length-1;l>=0;l--)(c=e[l])&&(i=(a<3?c(i):a>3?c(t,o,i):c(t,o))||i);return a>3&&i&&Object.defineProperty(t,o,i),i},wr=Symbol("i18nAttributes"),uc=Symbol("i18nListAttributes"),pc=Symbol("i18nProperties"),
|
|
141
|
+
`}connectedCallback(){super.connectedCallback(),this.stateManager.initService(),this.contextRoot.attach(document.body)}disconnectedCallback(){super.disconnectedCallback(),this.contextRoot.detach(document.body)}update(t){var o;super.update(t),t.has("baseUrl")&&this.stateManager.setBaseUrl(this.baseUrl),t.has("apiIntegrationIdentifier")&&this.stateManager.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("apiIntegrationAppVersion")&&this.stateManager.setApiIntegrationAppVersion(this.apiIntegrationAppVersion),t.has("uiLocale")&&this.stateManager.setUiLocale(this.uiLocale),t.has("metadataConfiguration")&&this.stateManager.setMetadataConfiguration(this.metadataConfiguration),t.has("noCustom")&&this.stateManager.setNoCustom(this.noCustom),t.has("editorMode")&&this.stateManager.setEditorMode(this.editorMode),t.has("noCustomComponent")&&this.stateManager.setNoCustomComponent(this.noCustomComponent),t.has("session")&&this.stateManager.setSession(this.session),t.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(n=>Cr.addContext(n)),t.has("openExternalDocumentInNewTab")&&this.stateManager.setOpenExternalDocumentInNewTab(this.openExternalDocumentInNewTab),t.has("navigatorOnline")&&this.stateManager.setNavigatorOnline(this.navigatorOnline),t.has("forcedOffline")&&this.stateManager.setForcedOffline(this.forcedOffline),t.has("authenticationRequired")&&this.stateManager.setAuthenticationRequired(this.authenticationRequired),t.has("withManualResources")&&((o=this.stateManager)===null||o===void 0||o.setWithManualResources(this.withManualResources)),setTimeout(()=>this.stateManager.updateIfNeeded())}};B.elementDefinitions={};B.styles=ac;X([(0,ue.property)()],B.prototype,"baseUrl",void 0);X([(0,ue.property)()],B.prototype,"apiIntegrationIdentifier",void 0);X([(0,ue.property)()],B.prototype,"apiIntegrationAppVersion",void 0);X([(0,ue.property)()],B.prototype,"uiLocale",void 0);X([(0,At.jsonProperty)(null)],B.prototype,"availableUiLocales",void 0);X([(0,At.jsonProperty)(null)],B.prototype,"metadataConfiguration",void 0);X([(0,ue.property)({type:Boolean})],B.prototype,"editorMode",void 0);X([(0,ue.property)({type:Boolean})],B.prototype,"noCustom",void 0);X([(0,ue.property)({type:Boolean})],B.prototype,"openExternalDocumentInNewTab",void 0);X([(0,ue.property)({converter:{fromAttribute(e){return e==="false"?!1:e==="true"||(e??!1)}}})],B.prototype,"noCustomComponent",void 0);X([(0,ue.property)({type:Boolean})],B.prototype,"withManualResources",void 0);X([(0,ue.property)({type:Boolean})],B.prototype,"navigatorOnline",void 0);X([(0,ue.property)({type:Boolean})],B.prototype,"forcedOffline",void 0);X([(0,ue.property)({type:Boolean})],B.prototype,"authenticationRequired",void 0);X([(0,At.jsonProperty)([])],B.prototype,"messageContexts",void 0);X([(0,At.jsonProperty)(void 0)],B.prototype,"session",void 0);var lc=b(w());var cc={"ft-app-context":B};(0,lc.customElements)(cc);var dc=b(V());var Kn=class{fromLocalizableLabel(t){return t.type=="PLAIN_TEXT"?{message:t.text}:{key:t.key,custom:t.type=="LOCALIZED_CUSTOM",context:t.context,message:t.key}}fromAttribute(t){if(t!=null)try{return JSON.parse(t)}catch{if(this.isI18nKey(t)){let[o,n]=t.split(".");return{context:o,key:n,custom:o!=="officialContext",message:""}}return{message:t}}}toAttribute(t){if(t!=null)return JSON.stringify(t)}isI18nKey(t){return t.match(/^[\w-]+\.[\w-]+$/)}},tr=new Kn;var Hd=function(e,t,o,n){var a=arguments.length,i=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,n);else for(var l=e.length-1;l>=0;l--)(c=e[l])&&(i=(a<3?c(i):a>3?c(t,o,i):c(t,o))||i);return a>3&&i&&Object.defineProperty(t,o,i),i},wr=Symbol("i18nAttributes"),uc=Symbol("i18nListAttributes"),pc=Symbol("i18nProperties"),go=Symbol("i18nContexts"),Ar=Symbol("i18nUnsubs"),vo=(0,rr.applyMixinOnce)(Symbol("withI18n"),function(e){var t,o;class n extends e{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[t]=new Map,this[o]=new Map}getI18nService(i){return i??this.useCustomMessageContexts?Hn:Cr}i18n(i){let{context:c,key:l,message:u}=i,{custom:p,args:f,argsProvider:h}=i;if(c&&l){this.hasI18nContext(c)||this.addI18nContext(c,void 0,p);let m=f??(h?h(this):[]);return this.getI18nService(p).resolveMessage(c,l,...m)}return u}async awaitI18n(i){let{context:c,custom:l}=i;return c&&await this.getI18nService(l).prepareContext(c),this.i18n(i)}customI18n(i,c){if(tr.isI18nKey(i)){let[l,u]=i.split(".");return this.i18n({custom:!0,context:l,key:u,...c})||i}return i}firstUpdated(i){super.firstUpdated(i),this.updateI18nAttributes(()=>!0),this.updateI18nProperties(()=>!0)}update(i){super.update(i),this.updateI18nAttributes((c,l,u)=>i.has(l)||typeof c.argsProvider=="function"),this.updateI18nProperties(c=>typeof c.argsProvider=="function")}onI18nUpdate(i){this.updateI18nAttributes((c,l,u)=>{var p;return((p=u?.context)===null||p===void 0?void 0:p.toLowerCase())===i}),this.updateI18nProperties(c=>c.context.toLowerCase()===i),this.requestUpdate()}updateI18nAttributes(i){var c,l;let u=this,p=(f,h,m)=>m?.context&&m.key&&i(f,h,m)?{...m,message:this.i18n({context:m.context,key:m.key,custom:m.custom,...f})}:m;(c=this[wr])===null||c===void 0||c.forEach((f,h)=>u[h]=p(f,h,u[h])),(l=this[uc])===null||l===void 0||l.forEach((f,h)=>{var m;return u[h]=(m=u[h])===null||m===void 0?void 0:m.map(y=>p(f,h,y))})}updateI18nProperties(i){var c;(c=this[pc])===null||c===void 0||c.forEach((l,u)=>{i(l,u)&&(this[u]=this.i18n(l))})}addI18nMessages(i,c,l){console.warn('Deprecated usage of method "addI18nMessages", use "addI18nContext" instead.'),this.addI18nContext(i,c,l)}addI18nContext(i,c,l){let u=(typeof i=="string"?i:i.name).toLowerCase();l=typeof i=="string"?l:i.custom,this[go].set(u,{isCustomContext:l}),this[Ar].has(u)||this[Ar].set(u,this.getI18nService(l).subscribe(u,()=>this.onI18nUpdate(u))),this.getI18nService(l).prepareContext(u,c)}hasI18nContext(i){return this[go].has(i.toLowerCase())}connectedCallback(){super.connectedCallback(),this[go].forEach((i,c)=>this.addI18nContext(c,void 0,i.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[Ar].forEach(i=>i()),this[Ar].clear()}}return t=go,o=Ar,Hd([(0,dc.property)({type:Boolean})],n.prototype,"useCustomMessageContexts",void 0),n}),bo=class extends vo(rr.FtLitElement){},xo=class extends vo(rr.FtLitElementRedux){};var fc=b(w());var Zn=class{fromAttribute(t){if(!t)return[];try{let o=JSON.parse(t);return Array.isArray(o)?o.map(n=>typeof n=="string"?tr.fromAttribute(n):n):[]}catch{return[]}}toAttribute(t){if(t!=null)return JSON.stringify(t)}},$d=new Zn;var hc=(e,t)=>(o,n)=>{var a;o.constructor.createProperty(n,{type:Object,hasChanged:fc.hasChanged,converter:tr,...t}),o[wr]=(a=o[wr])!==null&&a!==void 0?a:new Map,o[wr].set(n,e??{})};var mc=b(U());var yc=mc.css`
|
|
142
142
|
`;var So=b(U()),Co=b(V()),Oo=b(w());var Rr=function(e,t,o,n){var a=arguments.length,i=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,n);else for(var l=e.length-1;l>=0;l--)(c=e[l])&&(i=(a<3?c(i):a>3?c(t,o,i):c(t,o))||i);return a>3&&i&&Object.defineProperty(t,o,i),i},Re=class extends xo{constructor(){super(),this.editorMode=!1,this.addStore(_)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":So.nothing:So.html`
|
|
143
143
|
<span class="ft-i18n">
|
|
144
144
|
${this.i18n({context:this.context,key:this.key,args:Array.isArray(this.args)?this.args:[]})}
|
|
145
145
|
</span>
|
|
146
|
-
`}update(t){var o;super.update(t),["context","key","defaultMessage"].some(n=>t.has(n))&&this.context&&this.key&&this.addI18nContext(this.context,{[this.key]:(o=this.defaultMessage)!==null&&o!==void 0?o:""})}};Re.elementDefinitions={};Re.styles=
|
|
146
|
+
`}update(t){var o;super.update(t),["context","key","defaultMessage"].some(n=>t.has(n))&&this.context&&this.key&&this.addI18nContext(this.context,{[this.key]:(o=this.defaultMessage)!==null&&o!==void 0?o:""})}};Re.elementDefinitions={};Re.styles=yc;Rr([(0,Oo.redux)()],Re.prototype,"editorMode",void 0);Rr([(0,Co.property)()],Re.prototype,"context",void 0);Rr([(0,Co.property)()],Re.prototype,"key",void 0);Rr([(0,Oo.jsonProperty)([])],Re.prototype,"args",void 0);Rr([(0,Co.property)()],Re.prototype,"defaultMessage",void 0);var bc=b(w());var gc={"ft-i18n":Re};(0,bc.customElements)(gc);var Le=function(e,t,o,n){var a=arguments.length,i=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,n);else for(var l=e.length-1;l>=0;l--)(c=e[l])&&(i=(a<3?c(i):a>3?c(t,o,i):c(t,o))||i);return a>3&&i&&Object.defineProperty(t,o,i),i},K=class extends bo{constructor(){super(...arguments),this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.ignoreMatchingElements=[],this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new Ce.Debouncer,this.revealDebouncer=new Ce.Debouncer,this.onTouch=t=>{this.isIgnored(t)||(this.show(),setTimeout(()=>window.addEventListener("touchstart",o=>{o.composedPath().includes(this.container)||this.onOut(o)},{once:!0}),100))},this.onHover=t=>{this.isIgnored(t)||this.show()},this.onFocusIn=t=>{!this.isIgnored(t)&&window.FluidTopicsA11yHints.isKeyboardNavigation&&window.FluidTopicsA11yHints.lastPressedKey==="Tab"&&this.show()},this.onOut=t=>{this.isIgnored(t)||(this.revealDebouncer.cancel(),this.hide())},this.onClick=t=>{this.isIgnored(t)||(this.revealDebouncer.cancel(),this.hide())}}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){var t,o;return xc.html`
|
|
147
147
|
<div part="container"
|
|
148
148
|
class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}">
|
|
149
149
|
<slot part="slot"></slot>
|
|
@@ -549,7 +549,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
549
549
|
.ft-icon--material {
|
|
550
550
|
font-family: ${_e.materialFontFamily}, "Material Icons", sans-serif;
|
|
551
551
|
}
|
|
552
|
-
`,Ie.noTextSelect];var at;(function(e){e.fluid_topics="fluid-topics",e.file_format="file-format",e.material="material"})(at||(at={}));var Tr=b(U()),it=b(V()),Yc=b(w()),Xc=b(qc());var Lt;(function(e){e.ADD_TO_PBK="",e.ALERT="",e.ADD_ALERT="",e.BACK_TO_SEARCH="",e.ADD_BOOKMARK="",e.BOOKMARK="",e.BOOKS="",e.MENU="",e.DOWNLOAD="",e.EDIT="",e.FEEDBACK="",e.HOME="",e.MODIFY_PBK="",e.SCHEDULED="",e.SEARCH="",e.EXPORT="",e.TOC="",e.WRITE_UGC="",e.TRASH="",e.USER="",e.EXTLINK="",e.CALENDAR="",e.OFFLINE="",e.BOOK="",e.DOWNLOAD_PLAIN="",e.CHECK="",e.STAR_PLAIN="",e.TOPICS="",e.DISC="",e.CIRCLE="",e.SHARED="",e.SORT_UNSORTED="",e.SORT_UP="",e.SORT_DOWN="",e.WORKING="",e.CLOSE="",e.ZOOM_OUT="",e.ZOOM_IN="",e.ZOOM_REALSIZE="",e.ZOOM_FULLSCREEN="",e.ADMIN_RESTRICTED="",e.ADMIN="",e.ADMIN_KHUB="",e.ADMIN_THEME="",e.ADMIN_USERS="",e.WARNING="",e.CONTEXT="",e.SEARCH_HOME="",e.STEPS="",e.ICON_EXPAND="",e.ICON_COLLAPSE="",e.INFO="",e.MINUS_PLAIN="",e.PLUS_PLAIN="",e.FACET_HAS_DESCENDANT="",e.TRIANGLE_BOTTOM="",e.TRIANGLE_LEFT="",e.TRIANGLE_RIGHT="",e.TRIANGLE_TOP="",e.THIN_ARROW="",e.SIGN_IN="",e.LOGOUT="",e.TRANSLATE="",e.CLOSE_PLAIN="",e.CHECK_PLAIN="",e.ARTICLE="",e.COLUMNS="",e.ANALYTICS="",e.COLLECTIONS="",e.ARROW_DOWN="",e.ARROW_LEFT="",e.ARROW_RIGHT="",e.ARROW_UP="",e.SEARCH_IN_PUBLICATION="",e.COPY_TO_CLIPBOARD="",e.SHARED_PBK="",e.ATTACHMENTS="",e.STRIPE_ARROW_LEFT="",e.STRIPE_ARROW_RIGHT="",e.FILTERS="",e.DOT="",e.MINUS="",e.PLUS="",e.MAILS_AND_NOTIFICATIONS="",e.SAVE="",e.LOCKER="",e.ADMIN_INTEGRATION="",e.SYNC="",e.TAG="",e.BOOK_PLAIN="",e.UPLOAD="",e.ONLINE="",e.TAG_PLAIN="",e.ACCOUNT_SETTINGS="",e.PRINT="",e.DEFAULT_ROLES="",e.SHORTCUT_MENU="",e.RELATIVES_PLAIN="",e.RELATIVES="",e.PAUSE="",e.PLAY="",e.ADMIN_PORTAL="",e.STAR="",e.THUMBS_DOWN="",e.THUMBS_DOWN_PLAIN="",e.THUMBS_UP="",e.THUMBS_UP_PLAIN="",e.FEEDBACK_PLAIN="",e.RATE_PLAIN="",e.RATE="",e.OFFLINE_SETTINGS="",e.MY_COLLECTIONS="",e.THIN_ARROW_LEFT="",e.THIN_ARROW_RIGHT="",e.RESET="",e.MY_LIBRARY="",e.UNSTRUCTURED_DOC="",e.CONTEXTUAL="",e.THIN_ARROW_UP="",e.ARROW_RIGHT_TO_LINE="",e.DESKTOP="",e.TABLET_LANDSCAPE="",e.TABLET_PORTRAIT="",e.MOBILE_LANDSCAPE="",e.MOBILE_PORTRAIT="",e.DIAGRAM_SUNBURST="",e.DIAGRAM_SANKEY="",e.COMMENT_QUESTION="",e.COMMENT_QUESTION_PLAIN="",e.MESSAGE_BOT="",e.CHART_SIMPLE="",e.BARS_PROGRESS="",e.BOOK_OPEN_GEAR="",e.BOOK_OPEN_GEAR_SLASH="",e.LINE_CHART="",e.STACKED_CHART="",e.CHART_BAR_STACKED="",e.CHART_BAR_GROUPED="",e.EYE_SLASH="",e.X_MARK="",e.EXPAND_WIDE="",e.PIP="",e.PIP_WIDE="",e.LIFE_RING="",e.GLOBE="",e.PIGGY_BANK="",e.EXTLINK_LIGHT="",e.CLONE="",e.CLONE_LINK_SIMPLE="",e.CHART_BAR_NORMALIZED="",e.CONSUMER="",e.OCTAGON_XMARK="",e.HOURGLASS_HALF="",e.CLOCK="",e.CLOCK_THREE="",e.CALENDAR_DAY="",e.COMPUTER_MOUSE_MAGNIFYING_GLASS="",e.WAND_MAGIC_SPARKLES="",e.PAPER_PLANE="",e.CIRCLE_STOP="",e.ARROW_ROTATE_RIGHT="",e.ARROWS_ROTATE="",e.ALIGN_RIGHT="",e.FORMAT_CLEAR="",e.ALIGN_CENTER="",e.ALIGN_LEFT="",e.PALETTE="",e.BOLD="",e.ITALIC="",e.UNDERLINE="",e.STRIKETHROUGH="",e.LINK_SIMPLE_SLASH="",e.LINK_SIMPLE="",e.ROUTE="",e.CIRCLE_USER_SLASH="",e.CIRCLE_USER_CHECK="",e.LIST_MAGNIFYING_GLASS="",e.MEDAL="",e.THUMBS_UP_THUMBS_DOWN_SOLID="",e.ARROW_TURN_DOWN_RIGHT="",e.FLASK="",e.LOCK_KEYHOLE_OPEN_SOLID="",e.HOURGLASS_END="",e.CIRCLE_QUESTION="",e.GRIP_LINES_SOLID="",e.TRANSLATE_SPARKLE_SOLID="",e.CODE="",e.ARROW_UP_RIGHT_AND_ARROW_DOWN_LEFT_FROM_CENTER="",e.PAPER_PLANE_SLASH="",e.COMPRESS="",e.EXPAND="",e.ARROW_ROTATE_LEFT="",e.MOBILE_SMALL="",e.SPARKLES="",e.HAND_SOLID="",e.CLOCK_SOLID="",e.CONTEXT_MENU_CURSOR="",e.LANGUAGE_SLASH="",e.MAGNIFYING_GLASS_FLOPPY_DISK="",e.CABINET_FILING_FLOPPY_DISK="",e.BOOKMARK_SLASH="",e.CIRCLE_PAUSE="",e.CIRCLE_PLAY="",e.CIRCLE_STOP_PLAIN="",e.CIRCLE_ARROW_DOWN="",e.SHARE_NODES="",e.BELL="",e.BELL_SLASH="",e.FILE="",e.HAND="",e.SQUARE_INFO_SOLID="",e.FILE_CODE="",e.BOX_CODE="",e.TOPICS_SOLID="",e.PHOTO_FILM="",e.HYPHEN_SOLID="",e.CROSSHAIRS="",e.PERSON_CHALKBOARD="",e.CIRCLE_ARROW_DOWN_SLASH="",e.BOOK_OPEN_COVER="",e.LIGHTBULB="",e.MESSAGE_BOT_AGENTIC_SOLID="",e.CHART_LINE_USER="",e.SERVER_CIRCLE_ARROW_DOWN="",e.EYE="",e.SHARE="󨃱"})(Lt||(Lt={}));var v;(function(e){e.UNKNOWN="",e.ABW="",e.AUDIO="",e.AVI="",e.CHM="",e.CODE="",e.CSV="",e.DITA="",e.EPUB="",e.EXCEL="",e.FLAC="",e.GIF="",e.GZIP="",e.HTML="",e.IMAGE="",e.JPEG="",e.JSON="",e.M4A="",e.MOV="",e.MP3="",e.MP4="",e.OGG="",e.PDF="",e.PNG="",e.POWERPOINT="",e.RAR="",e.STP="",e.TEXT="",e.VIDEO="",e.WAV="",e.WMA="",e.WORD="",e.XML="",e.YAML="",e.ZIP=""})(v||(v={}));var
|
|
552
|
+
`,Ie.noTextSelect];var at;(function(e){e.fluid_topics="fluid-topics",e.file_format="file-format",e.material="material"})(at||(at={}));var Tr=b(U()),it=b(V()),Yc=b(w()),Xc=b(qc());var Lt;(function(e){e.ADD_TO_PBK="",e.ALERT="",e.ADD_ALERT="",e.BACK_TO_SEARCH="",e.ADD_BOOKMARK="",e.BOOKMARK="",e.BOOKS="",e.MENU="",e.DOWNLOAD="",e.EDIT="",e.FEEDBACK="",e.HOME="",e.MODIFY_PBK="",e.SCHEDULED="",e.SEARCH="",e.EXPORT="",e.TOC="",e.WRITE_UGC="",e.TRASH="",e.USER="",e.EXTLINK="",e.CALENDAR="",e.OFFLINE="",e.BOOK="",e.DOWNLOAD_PLAIN="",e.CHECK="",e.STAR_PLAIN="",e.TOPICS="",e.DISC="",e.CIRCLE="",e.SHARED="",e.SORT_UNSORTED="",e.SORT_UP="",e.SORT_DOWN="",e.WORKING="",e.CLOSE="",e.ZOOM_OUT="",e.ZOOM_IN="",e.ZOOM_REALSIZE="",e.ZOOM_FULLSCREEN="",e.ADMIN_RESTRICTED="",e.ADMIN="",e.ADMIN_KHUB="",e.ADMIN_THEME="",e.ADMIN_USERS="",e.WARNING="",e.CONTEXT="",e.SEARCH_HOME="",e.STEPS="",e.ICON_EXPAND="",e.ICON_COLLAPSE="",e.INFO="",e.MINUS_PLAIN="",e.PLUS_PLAIN="",e.FACET_HAS_DESCENDANT="",e.TRIANGLE_BOTTOM="",e.TRIANGLE_LEFT="",e.TRIANGLE_RIGHT="",e.TRIANGLE_TOP="",e.THIN_ARROW="",e.SIGN_IN="",e.LOGOUT="",e.TRANSLATE="",e.CLOSE_PLAIN="",e.CHECK_PLAIN="",e.ARTICLE="",e.COLUMNS="",e.ANALYTICS="",e.COLLECTIONS="",e.ARROW_DOWN="",e.ARROW_LEFT="",e.ARROW_RIGHT="",e.ARROW_UP="",e.SEARCH_IN_PUBLICATION="",e.COPY_TO_CLIPBOARD="",e.SHARED_PBK="",e.ATTACHMENTS="",e.STRIPE_ARROW_LEFT="",e.STRIPE_ARROW_RIGHT="",e.FILTERS="",e.DOT="",e.MINUS="",e.PLUS="",e.MAILS_AND_NOTIFICATIONS="",e.SAVE="",e.LOCKER="",e.ADMIN_INTEGRATION="",e.SYNC="",e.TAG="",e.BOOK_PLAIN="",e.UPLOAD="",e.ONLINE="",e.TAG_PLAIN="",e.ACCOUNT_SETTINGS="",e.PRINT="",e.DEFAULT_ROLES="",e.SHORTCUT_MENU="",e.RELATIVES_PLAIN="",e.RELATIVES="",e.PAUSE="",e.PLAY="",e.ADMIN_PORTAL="",e.STAR="",e.THUMBS_DOWN="",e.THUMBS_DOWN_PLAIN="",e.THUMBS_UP="",e.THUMBS_UP_PLAIN="",e.FEEDBACK_PLAIN="",e.RATE_PLAIN="",e.RATE="",e.OFFLINE_SETTINGS="",e.MY_COLLECTIONS="",e.THIN_ARROW_LEFT="",e.THIN_ARROW_RIGHT="",e.RESET="",e.MY_LIBRARY="",e.UNSTRUCTURED_DOC="",e.CONTEXTUAL="",e.THIN_ARROW_UP="",e.ARROW_RIGHT_TO_LINE="",e.DESKTOP="",e.TABLET_LANDSCAPE="",e.TABLET_PORTRAIT="",e.MOBILE_LANDSCAPE="",e.MOBILE_PORTRAIT="",e.DIAGRAM_SUNBURST="",e.DIAGRAM_SANKEY="",e.COMMENT_QUESTION="",e.COMMENT_QUESTION_PLAIN="",e.MESSAGE_BOT="",e.CHART_SIMPLE="",e.BARS_PROGRESS="",e.BOOK_OPEN_GEAR="",e.BOOK_OPEN_GEAR_SLASH="",e.LINE_CHART="",e.STACKED_CHART="",e.CHART_BAR_STACKED="",e.CHART_BAR_GROUPED="",e.EYE_SLASH="",e.X_MARK="",e.EXPAND_WIDE="",e.PIP="",e.PIP_WIDE="",e.LIFE_RING="",e.GLOBE="",e.PIGGY_BANK="",e.EXTLINK_LIGHT="",e.CLONE="",e.CLONE_LINK_SIMPLE="",e.CHART_BAR_NORMALIZED="",e.CONSUMER="",e.OCTAGON_XMARK="",e.HOURGLASS_HALF="",e.CLOCK="",e.CLOCK_THREE="",e.CALENDAR_DAY="",e.COMPUTER_MOUSE_MAGNIFYING_GLASS="",e.WAND_MAGIC_SPARKLES="",e.PAPER_PLANE="",e.CIRCLE_STOP="",e.ARROW_ROTATE_RIGHT="",e.ARROWS_ROTATE="",e.ALIGN_RIGHT="",e.FORMAT_CLEAR="",e.ALIGN_CENTER="",e.ALIGN_LEFT="",e.PALETTE="",e.BOLD="",e.ITALIC="",e.UNDERLINE="",e.STRIKETHROUGH="",e.LINK_SIMPLE_SLASH="",e.LINK_SIMPLE="",e.ROUTE="",e.CIRCLE_USER_SLASH="",e.CIRCLE_USER_CHECK="",e.LIST_MAGNIFYING_GLASS="",e.MEDAL="",e.THUMBS_UP_THUMBS_DOWN_SOLID="",e.ARROW_TURN_DOWN_RIGHT="",e.FLASK="",e.LOCK_KEYHOLE_OPEN_SOLID="",e.HOURGLASS_END="",e.CIRCLE_QUESTION="",e.GRIP_LINES_SOLID="",e.TRANSLATE_SPARKLE_SOLID="",e.CODE="",e.ARROW_UP_RIGHT_AND_ARROW_DOWN_LEFT_FROM_CENTER="",e.PAPER_PLANE_SLASH="",e.COMPRESS="",e.EXPAND="",e.ARROW_ROTATE_LEFT="",e.MOBILE_SMALL="",e.SPARKLES="",e.HAND_SOLID="",e.CLOCK_SOLID="",e.CONTEXT_MENU_CURSOR="",e.LANGUAGE_SLASH="",e.MAGNIFYING_GLASS_FLOPPY_DISK="",e.CABINET_FILING_FLOPPY_DISK="",e.BOOKMARK_SLASH="",e.CIRCLE_PAUSE="",e.CIRCLE_PLAY="",e.CIRCLE_STOP_PLAIN="",e.CIRCLE_ARROW_DOWN="",e.SHARE_NODES="",e.BELL="",e.BELL_SLASH="",e.FILE="",e.HAND="",e.SQUARE_INFO_SOLID="",e.FILE_CODE="",e.BOX_CODE="",e.TOPICS_SOLID="",e.PHOTO_FILM="",e.HYPHEN_SOLID="",e.CROSSHAIRS="",e.PERSON_CHALKBOARD="",e.CIRCLE_ARROW_DOWN_SLASH="",e.BOOK_OPEN_COVER="",e.LIGHTBULB="",e.MESSAGE_BOT_AGENTIC_SOLID="",e.CHART_LINE_USER="",e.SERVER_CIRCLE_ARROW_DOWN="",e.EYE="",e.SHARE="󨃱"})(Lt||(Lt={}));var v;(function(e){e.UNKNOWN="",e.ABW="",e.AUDIO="",e.AVI="",e.CHM="",e.CODE="",e.CSV="",e.DITA="",e.EPUB="",e.EXCEL="",e.FLAC="",e.GIF="",e.GZIP="",e.HTML="",e.IMAGE="",e.JPEG="",e.JSON="",e.M4A="",e.MOV="",e.MP3="",e.MP4="",e.OGG="",e.PDF="",e.PNG="",e.POWERPOINT="",e.RAR="",e.STP="",e.TEXT="",e.VIDEO="",e.WAV="",e.WMA="",e.WORD="",e.XML="",e.YAML="",e.ZIP=""})(v||(v={}));var g0=new Map([...["abw"].map(e=>[e,v.ABW]),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map(e=>[e,v.AUDIO]),...["avi"].map(e=>[e,v.AVI]),...["chm","xhs"].map(e=>[e,v.CHM]),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map(e=>[e,v.CODE]),...["csv"].map(e=>[e,v.CSV]),...["dita","ditamap","ditaval"].map(e=>[e,v.DITA]),...["epub"].map(e=>[e,v.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(e=>[e,v.EXCEL]),...["flac"].map(e=>[e,v.FLAC]),...["gif"].map(e=>[e,v.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(e=>[e,v.GZIP]),...["html","htm","xhtml"].map(e=>[e,v.HTML]),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf","ico"].map(e=>[e,v.IMAGE]),...["jpeg","jpg","jpe"].map(e=>[e,v.JPEG]),...["json"].map(e=>[e,v.JSON]),...["m4a","m4p"].map(e=>[e,v.M4A]),...["mov","qt"].map(e=>[e,v.MOV]),...["mp3"].map(e=>[e,v.MP3]),...["mp4","m4v"].map(e=>[e,v.MP4]),...["ogg","oga"].map(e=>[e,v.OGG]),...["pdf","ps"].map(e=>[e,v.PDF]),...["png"].map(e=>[e,v.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(e=>[e,v.POWERPOINT]),...["rar"].map(e=>[e,v.RAR]),...["stp"].map(e=>[e,v.STP]),...["txt","rtf","md","mdown"].map(e=>[e,v.TEXT]),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map(e=>[e,v.VIDEO]),...["wav"].map(e=>[e,v.WAV]),...["wma"].map(e=>[e,v.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(e=>[e,v.WORD]),...["xml","xsl","rdf"].map(e=>[e,v.XML]),...["yaml","yml","x-yaml"].map(e=>[e,v.YAML]),...["zip"].map(e=>[e,v.ZIP])]);var b0={[v.ABW]:"#91ABC6",[v.AUDIO]:"#1795E3",[v.AVI]:"#E63324",[v.CHM]:"#71C3EB",[v.CODE]:"#71C3EB",[v.CSV]:"#1F7345",[v.DITA]:"#71C3EB",[v.EPUB]:"#85B926",[v.EXCEL]:"#1F7345",[v.FLAC]:"#1795E3",[v.GIF]:"#59B031",[v.GZIP]:"#F8AB36",[v.HTML]:"#71C3EB",[v.IMAGE]:"#59B031",[v.JPEG]:"#59B031",[v.JSON]:"#71C3EB",[v.M4A]:"#1795E3",[v.MOV]:"#E63324",[v.MP3]:"#1795E3",[v.MP4]:"#E63324",[v.OGG]:"#1795E3",[v.PDF]:"#E44948",[v.PNG]:"#59B031",[v.POWERPOINT]:"#B54A2B",[v.RAR]:"#F8AB36",[v.STP]:"#3764B1",[v.TEXT]:"#3162AB",[v.UNKNOWN]:"#999999",[v.VIDEO]:"#E63324",[v.WAV]:"#1795E3",[v.WMA]:"#1795E3",[v.WORD]:"#3162AB",[v.XML]:"#71C3EB",[v.YAML]:"#71C3EB",[v.ZIP]:"#F8AB36"};var _r=function(e,t,o,n){var a=arguments.length,i=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,n);else for(var l=e.length-1;l>=0;l--)(c=e[l])&&(i=(a<3?c(i):a>3?c(t,o,i):c(t,o))||i);return a>3&&i&&Object.defineProperty(t,o,i),i},pe=class extends Yc.FtLitElement{constructor(){super(...arguments),this.ariaHidden="true",this.resolvedIcon=Tr.nothing}render(){let t=this.variant&&Object.values(at).includes(this.variant)?this.variant:at.fluid_topics,o=t!==at.material||!!this.value;return Tr.html`
|
|
553
553
|
<i class="ft-icon ft-icon--${t} ft-no-text-select" part="icon icon-${t}">
|
|
554
554
|
${(0,Xc.unsafeHTML)(this.resolvedIcon)}
|
|
555
555
|
<slot ?hidden=${o}></slot>
|
|
@@ -44,7 +44,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
44
44
|
input::-webkit-search-results-decoration {
|
|
45
45
|
display: none;
|
|
46
46
|
}
|
|
47
|
-
`;var mc={};var Ai={};$(Ai,{ParametrizedLabelResolver:()=>Zr});var Zr=class t{constructor(e,r){this.defaultLabels=e,this.labels=r}resolve(e,...r){var n,i;e=this.resolvePluralKey(e,r);let a=(i=(n=this.labels[e])!==null&&n!==void 0?n:this.defaultLabels[e])!==null&&i!==void 0?i:"";return t.replaceParameters(a,...r)}static replaceParameters(e,...r){return r.forEach((n,i)=>e=e.replace(new RegExp(`\\{${i}([^}]*)\\}`,"g"),(a,s)=>t.formatValue(n,s))),e}resolvePluralKey(e,r){for(let n of r)if(typeof n=="number"){let i=`${String(e)}[\\=${n}]`;if(i in this.labels||i in this.defaultLabels)return i}return e}static formatValue(e,r){return e instanceof Date?t.formatDate(e,r):e??""}static formatDate(e,r){let n=i=>r?.includes("date")?e.toLocaleDateString(i):r?.includes("time")?e.toLocaleTimeString(i):e.toLocaleString(i);try{return n(document.documentElement.lang)}catch{return n()}}};var qi={};$(qi,{FtCommandQueue:()=>qr,FtLitElementRedux:()=>rt,FtReduxStore:()=>yt,FtStateManager:()=>dr,ReduxWatcher:()=>Uo,clearAllStores:()=>pf,isFtReduxStore:()=>nr,redux:()=>or,reduxEventListener:()=>Tp,reduxReactive:()=>Rp,watch:()=>qc,withRedux:()=>gc});var Rp=()=>(t,e)=>{var r;let n=t.constructor;n.reduxReactiveProperties=new Set(n.reduxReactiveProperties),(r=n.reduxReactiveProperties)===null||r===void 0||r.add(e)},or=t=>{let e=t??{};return(r,n)=>{var i;let a={hasChanged:Ue,attribute:!1,...e};S(a)(r,n);let s=r.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(n,{selector:(i=e.selector)!==null&&i!==void 0?i:(l=>l[n]),store:e.store})}},Tp=t=>(e,r)=>{let n=e.constructor;n.reduxEventListeners=new Map(n.reduxEventListeners),n.reduxEventListeners.set(r,t)};var qr=class{constructor(){this.queue=[]}add(e,r=!1){r&&this.clear(e.type),this.queue.push(e)}consume(e){let r=this.queue.find(n=>n.type===e);return r&&(this.queue=this.queue.filter(n=>n!==r)),r}clear(e){typeof e=="string"?this.queue=this.queue.filter(r=>r.type!==e):this.queue=this.queue.filter(r=>!e.test(r.type))}};function nr(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var Yr=Symbol("internalReduxEventsUnsubscribers"),pt=Symbol("internalStoresUnsubscribers"),Pt=Symbol("internalStores"),gc=Y(Symbol("withRedux"),function(t){var e,r,n;class i extends t{constructor(){super(...arguments),this[e]=new Map,this[r]=new Map,this[n]=new Map}get reduxConstructor(){return this.constructor}willUpdate(s){super.willUpdate(s),[...this.reduxConstructor.reduxReactiveProperties].some(l=>s.has(l))&&this.updateFromStores()}getUnnamedStore(){if(this[Pt].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Pt].values()][0]}getStore(s){return s==null?this.getUnnamedStore():this[Pt].get(s)}addStore(s,l){var d;l=(d=l??s.name)!==null&&d!==void 0?d:"default-store",this.unsubscribeFromStore(l),this[Pt].set(l,s),this.subscribeToStore(l,s),this.updateFromStores()}removeStore(s){let l=typeof s=="string"?s:s.name;this.unsubscribeFromStore(l),this[Pt].delete(l)}setupStores(){this.unsubscribeFromStores(),this[Pt].forEach((s,l)=>this.subscribeToStore(l,s)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((s,l)=>{let d=this.constructor.getPropertyOptions(l);if(!d?.attribute||!this.hasAttribute(typeof d?.attribute=="string"?d.attribute:l)){let p=this.getStore(s.store);p&&(s.store?this[pt].has(s.store):this[pt].size>0)&&(this[l]=s.selector(p.getState(),this))}})}subscribeToStore(s,l){var d;this[pt].set(s,l.subscribe(()=>this.updateFromStores())),this[Yr].set(s,[]),nr(l)&&l.eventBus&&((d=this.reduxConstructor.reduxEventListeners)===null||d===void 0||d.forEach((p,f)=>{if(typeof this[f]=="function"&&(!p.store||l.name===p.store)){let h=m=>this[f](m);l.addEventListener(p.eventName,h),this[Yr].get(s).push(()=>l.removeEventListener(p.eventName,h))}})),this.onStoreAvailable(s)}unsubscribeFromStores(){this[pt].forEach((s,l)=>this.unsubscribeFromStore(l))}unsubscribeFromStore(s){var l;this[pt].has(s)&&this[pt].get(s)(),this[pt].delete(s),(l=this[Yr].get(s))===null||l===void 0||l.forEach(d=>d()),this[Yr].delete(s)}onStoreAvailable(s){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=pt,r=Pt,n=Yr,i.reduxProperties=new Map,i.reduxReactiveProperties=new Set,i.reduxEventListeners=new Map,i}),rt=class extends gc(j){};function _e(t){for(var e=arguments.length,r=Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];if(0)var i,a;throw Error("[Immer] minified error nr: "+t+(r.length?" "+r.map((function(s){return"'"+s+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function ot(t){return!!t&&!!t[Z]}function Fe(t){var e;return!!t&&((function(r){if(!r||typeof r!="object")return!1;var n=Object.getPrototypeOf(r);if(n===null)return!0;var i=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return i===Object||typeof i=="function"&&Function.toString.call(i)===Mp})(t)||Array.isArray(t)||!!t[Cc]||!!(!((e=t.constructor)===null||e===void 0)&&e[Cc])||ki(t)||Di(t))}function It(t,e,r){r===void 0&&(r=!1),sr(t)===0?(r?Object.keys:ar)(t).forEach((function(n){r&&typeof n=="symbol"||e(n,t[n],t)})):t.forEach((function(n,i){return e(i,n,t)}))}function sr(t){var e=t[Z];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:ki(t)?2:Di(t)?3:0}function ir(t,e){return sr(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function Lp(t,e){return sr(t)===2?t.get(e):t[e]}function Oc(t,e,r){var n=sr(t);n===2?t.set(e,r):n===3?t.add(r):t[e]=r}function Ac(t,e){return t===e?t!==0||1/t==1/e:t!=t&&e!=e}function ki(t){return kp&&t instanceof Map}function Di(t){return Dp&&t instanceof Set}function ft(t){return t.o||t.t}function Mi(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=Tc(t);delete e[Z];for(var r=ar(e),n=0;n<r.length;n++){var i=r[n],a=e[i];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(e[i]={configurable:!0,writable:!0,enumerable:a.enumerable,value:t[i]})}return Object.create(Object.getPrototypeOf(t),e)}function Ui(t,e){return e===void 0&&(e=!1),Bi(t)||ot(t)||!Fe(t)||(sr(t)>1&&(t.set=t.add=t.clear=t.delete=_p),Object.freeze(t),e&&It(t,(function(r,n){return Ui(n,!0)}),!0)),t}function _p(){_e(2)}function Bi(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function Ye(t){var e=Ni[t];return e||_e(18,t),e}function Pp(t,e){Ni[t]||(Ni[t]=e)}function _i(){return Qr}function wi(t,e){e&&(Ye("Patches"),t.u=[],t.s=[],t.v=e)}function Io(t){Pi(t),t.p.forEach(Ip),t.p=null}function Pi(t){t===Qr&&(Qr=t.l)}function yc(t){return Qr={p:[],l:Qr,h:t,m:!0,_:0}}function Ip(t){var e=t[Z];e.i===0||e.i===1?e.j():e.g=!0}function Ri(t,e){e._=e.p.length;var r=e.p[0],n=t!==void 0&&t!==r;return e.h.O||Ye("ES5").S(e,t,n),n?(r[Z].P&&(Io(e),_e(4)),Fe(t)&&(t=No(e,t),e.l||ko(e,t)),e.u&&Ye("Patches").M(r[Z].t,t,e.u,e.s)):t=No(e,r,[]),Io(e),e.u&&e.v(e.u,e.s),t!==Rc?t:void 0}function No(t,e,r){if(Bi(e))return e;var n=e[Z];if(!n)return It(e,(function(l,d){return bc(t,n,e,l,d,r)}),!0),e;if(n.A!==t)return e;if(!n.P)return ko(t,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var i=n.i===4||n.i===5?n.o=Mi(n.k):n.o,a=i,s=!1;n.i===3&&(a=new Set(i),i.clear(),s=!0),It(a,(function(l,d){return bc(t,n,i,l,d,r,s)})),ko(t,i,!1),r&&t.u&&Ye("Patches").N(n,r,t.u,t.s)}return n.o}function bc(t,e,r,n,i,a,s){if(ot(i)){var l=No(t,i,a&&e&&e.i!==3&&!ir(e.R,n)?a.concat(n):void 0);if(Oc(r,n,l),!ot(l))return;t.m=!1}else s&&r.add(i);if(Fe(i)&&!Bi(i)){if(!t.h.D&&t._<1)return;No(t,i),e&&e.A.l||ko(t,i)}}function ko(t,e,r){r===void 0&&(r=!1),!t.l&&t.h.D&&t.m&&Ui(e,r)}function Ti(t,e){var r=t[Z];return(r?ft(r):t)[e]}function xc(t,e){if(e in t)for(var r=Object.getPrototypeOf(t);r;){var n=Object.getOwnPropertyDescriptor(r,e);if(n)return n;r=Object.getPrototypeOf(r)}}function ht(t){t.P||(t.P=!0,t.l&&ht(t.l))}function Li(t){t.o||(t.o=Mi(t.t))}function Ii(t,e,r){var n=ki(e)?Ye("MapSet").F(e,r):Di(e)?Ye("MapSet").T(e,r):t.O?(function(i,a){var s=Array.isArray(i),l={i:s?1:0,A:a?a.A:_i(),P:!1,I:!1,R:{},l:a,t:i,k:null,o:null,j:null,C:!1},d=l,p=Jr;s&&(d=[l],p=Xr);var f=Proxy.revocable(d,p),h=f.revoke,m=f.proxy;return l.k=m,l.j=h,m})(e,r):Ye("ES5").J(e,r);return(r?r.A:_i()).p.push(n),n}function Np(t){return ot(t)||_e(22,t),(function e(r){if(!Fe(r))return r;var n,i=r[Z],a=sr(r);if(i){if(!i.P&&(i.i<4||!Ye("ES5").K(i)))return i.t;i.I=!0,n=vc(r,a),i.I=!1}else n=vc(r,a);return It(n,(function(s,l){i&&Lp(i.t,s)===l||Oc(n,s,e(l))})),a===3?new Set(n):n})(t)}function vc(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return Mi(t)}function wc(){function t(s,l){var d=a[s];return d?d.enumerable=l:a[s]=d={configurable:!0,enumerable:l,get:function(){var p=this[Z];return Jr.get(p,s)},set:function(p){var f=this[Z];Jr.set(f,s,p)}},d}function e(s){for(var l=s.length-1;l>=0;l--){var d=s[l][Z];if(!d.P)switch(d.i){case 5:n(d)&&ht(d);break;case 4:r(d)&&ht(d)}}}function r(s){for(var l=s.t,d=s.k,p=ar(d),f=p.length-1;f>=0;f--){var h=p[f];if(h!==Z){var m=l[h];if(m===void 0&&!ir(l,h))return!0;var y=d[h],g=y&&y[Z];if(g?g.t!==m:!Ac(y,m))return!0}}var v=!!l[Z];return p.length!==ar(l).length+(v?0:1)}function n(s){var l=s.k;if(l.length!==s.t.length)return!0;var d=Object.getOwnPropertyDescriptor(l,l.length-1);if(d&&!d.get)return!0;for(var p=0;p<l.length;p++)if(!l.hasOwnProperty(p))return!0;return!1}function i(s){s.g&&_e(3,JSON.stringify(ft(s)))}var a={};Pp("ES5",{J:function(s,l){var d=Array.isArray(s),p=(function(h,m){if(h){for(var y=Array(m.length),g=0;g<m.length;g++)Object.defineProperty(y,""+g,t(g,!0));return y}var v=Tc(m);delete v[Z];for(var C=ar(v),O=0;O<C.length;O++){var w=C[O];v[w]=t(w,h||!!v[w].enumerable)}return Object.create(Object.getPrototypeOf(m),v)})(d,s),f={i:d?5:4,A:l?l.A:_i(),P:!1,I:!1,R:{},l,t:s,k:p,o:null,g:!1,C:!1};return Object.defineProperty(p,Z,{value:f,writable:!0}),p},S:function(s,l,d){d?ot(l)&&l[Z].A===s&&e(s.p):(s.u&&(function p(f){if(f&&typeof f=="object"){var h=f[Z];if(h){var m=h.t,y=h.k,g=h.R,v=h.i;if(v===4)It(y,(function(b){b!==Z&&(m[b]!==void 0||ir(m,b)?g[b]||p(y[b]):(g[b]=!0,ht(h)))})),It(m,(function(b){y[b]!==void 0||ir(y,b)||(g[b]=!1,ht(h))}));else if(v===5){if(n(h)&&(ht(h),g.length=!0),y.length<m.length)for(var C=y.length;C<m.length;C++)g[C]=!1;else for(var O=m.length;O<y.length;O++)g[O]=!0;for(var w=Math.min(y.length,m.length),x=0;x<w;x++)y.hasOwnProperty(x)||(g[x]=!0),g[x]===void 0&&p(y[x])}}}})(s.p[0]),e(s.p))},K:function(s){return s.i===4?r(s):n(s)}})}var Sc,Qr,Fi=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",kp=typeof Map<"u",Dp=typeof Set<"u",Ec=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Rc=Fi?Symbol.for("immer-nothing"):((Sc={})["immer-nothing"]=!0,Sc),Cc=Fi?Symbol.for("immer-draftable"):"__$immer_draftable",Z=Fi?Symbol.for("immer-state"):"__$immer_state";var Mp=""+Object.prototype.constructor,ar=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,Tc=Object.getOwnPropertyDescriptors||function(t){var e={};return ar(t).forEach((function(r){e[r]=Object.getOwnPropertyDescriptor(t,r)})),e},Ni={},Jr={get:function(t,e){if(e===Z)return t;var r=ft(t);if(!ir(r,e))return(function(i,a,s){var l,d=xc(a,s);return d?"value"in d?d.value:(l=d.get)===null||l===void 0?void 0:l.call(i.k):void 0})(t,r,e);var n=r[e];return t.I||!Fe(n)?n:n===Ti(t.t,e)?(Li(t),t.o[e]=Ii(t.A.h,n,t)):n},has:function(t,e){return e in ft(t)},ownKeys:function(t){return Reflect.ownKeys(ft(t))},set:function(t,e,r){var n=xc(ft(t),e);if(n?.set)return n.set.call(t.k,r),!0;if(!t.P){var i=Ti(ft(t),e),a=i?.[Z];if(a&&a.t===r)return t.o[e]=r,t.R[e]=!1,!0;if(Ac(r,i)&&(r!==void 0||ir(t.t,e)))return!0;Li(t),ht(t)}return t.o[e]===r&&(r!==void 0||e in t.o)||Number.isNaN(r)&&Number.isNaN(t.o[e])||(t.o[e]=r,t.R[e]=!0),!0},deleteProperty:function(t,e){return Ti(t.t,e)!==void 0||e in t.t?(t.R[e]=!1,Li(t),ht(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var r=ft(t),n=Reflect.getOwnPropertyDescriptor(r,e);return n&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:n.enumerable,value:r[e]}},defineProperty:function(){_e(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){_e(12)}},Xr={};It(Jr,(function(t,e){Xr[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),Xr.deleteProperty=function(t,e){return Xr.set.call(this,t,e,void 0)},Xr.set=function(t,e,r){return Jr.set.call(this,t[0],e,r,t[0])};var Up=(function(){function t(r){var n=this;this.O=Ec,this.D=!0,this.produce=function(i,a,s){if(typeof i=="function"&&typeof a!="function"){var l=a;a=i;var d=n;return function(v){var C=this;v===void 0&&(v=l);for(var O=arguments.length,w=Array(O>1?O-1:0),x=1;x<O;x++)w[x-1]=arguments[x];return d.produce(v,(function(b){var E;return(E=a).call.apply(E,[C,b].concat(w))}))}}var p;if(typeof a!="function"&&_e(6),s!==void 0&&typeof s!="function"&&_e(7),Fe(i)){var f=yc(n),h=Ii(n,i,void 0),m=!0;try{p=a(h),m=!1}finally{m?Io(f):Pi(f)}return typeof Promise<"u"&&p instanceof Promise?p.then((function(v){return wi(f,s),Ri(v,f)}),(function(v){throw Io(f),v})):(wi(f,s),Ri(p,f))}if(!i||typeof i!="object"){if((p=a(i))===void 0&&(p=i),p===Rc&&(p=void 0),n.D&&Ui(p,!0),s){var y=[],g=[];Ye("Patches").M(i,p,y,g),s(y,g)}return p}_e(21,i)},this.produceWithPatches=function(i,a){if(typeof i=="function")return function(p){for(var f=arguments.length,h=Array(f>1?f-1:0),m=1;m<f;m++)h[m-1]=arguments[m];return n.produceWithPatches(p,(function(y){return i.apply(void 0,[y].concat(h))}))};var s,l,d=n.produce(i,a,(function(p,f){s=p,l=f}));return typeof Promise<"u"&&d instanceof Promise?d.then((function(p){return[p,s,l]})):[d,s,l]},typeof r?.useProxies=="boolean"&&this.setUseProxies(r.useProxies),typeof r?.autoFreeze=="boolean"&&this.setAutoFreeze(r.autoFreeze)}var e=t.prototype;return e.createDraft=function(r){Fe(r)||_e(8),ot(r)&&(r=Np(r));var n=yc(this),i=Ii(this,r,void 0);return i[Z].C=!0,Pi(n),i},e.finishDraft=function(r,n){var i=r&&r[Z],a=i.A;return wi(a,n),Ri(void 0,a)},e.setAutoFreeze=function(r){this.D=r},e.setUseProxies=function(r){r&&!Ec&&_e(20),this.O=r},e.applyPatches=function(r,n){var i;for(i=n.length-1;i>=0;i--){var a=n[i];if(a.path.length===0&&a.op==="replace"){r=a.value;break}}i>-1&&(n=n.slice(i+1));var s=Ye("Patches").$;return ot(r)?s(r,n):this.produce(r,(function(l){return s(l,n)}))},t})(),ve=new Up,Bp=ve.produce,Nx=ve.produceWithPatches.bind(ve),kx=ve.setAutoFreeze.bind(ve),Dx=ve.setUseProxies.bind(ve),Mx=ve.applyPatches.bind(ve),Ux=ve.createDraft.bind(ve),Bx=ve.finishDraft.bind(ve),Do=Bp;function Nt(t){"@babel/helpers - typeof";return Nt=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},Nt(t)}function Lc(t,e){if(Nt(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(Nt(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function _c(t){var e=Lc(t,"string");return Nt(e)=="symbol"?e:e+""}function Pc(t,e,r){return(e=_c(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Ic(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function $i(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Ic(Object(r),!0).forEach(function(n){Pc(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Ic(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function se(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}var Nc=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})(),Hi=function(){return Math.random().toString(36).substring(7).split("").join(".")},Mo={INIT:"@@redux/INIT"+Hi(),REPLACE:"@@redux/REPLACE"+Hi(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Hi()}};function Fp(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 Wi(t,e,r){var n;if(typeof e=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(se(0));if(typeof e=="function"&&typeof r>"u"&&(r=e,e=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(se(1));return r(Wi)(t,e)}if(typeof t!="function")throw new Error(se(2));var i=t,a=e,s=[],l=s,d=!1;function p(){l===s&&(l=s.slice())}function f(){if(d)throw new Error(se(3));return a}function h(v){if(typeof v!="function")throw new Error(se(4));if(d)throw new Error(se(5));var C=!0;return p(),l.push(v),function(){if(C){if(d)throw new Error(se(6));C=!1,p();var w=l.indexOf(v);l.splice(w,1),s=null}}}function m(v){if(!Fp(v))throw new Error(se(7));if(typeof v.type>"u")throw new Error(se(8));if(d)throw new Error(se(9));try{d=!0,a=i(a,v)}finally{d=!1}for(var C=s=l,O=0;O<C.length;O++){var w=C[O];w()}return v}function y(v){if(typeof v!="function")throw new Error(se(10));i=v,m({type:Mo.REPLACE})}function g(){var v,C=h;return v={subscribe:function(w){if(typeof w!="object"||w===null)throw new Error(se(11));function x(){w.next&&w.next(f())}x();var b=C(x);return{unsubscribe:b}}},v[Nc]=function(){return this},v}return m({type:Mo.INIT}),n={dispatch:m,subscribe:h,getState:f,replaceReducer:y},n[Nc]=g,n}function $p(t){Object.keys(t).forEach(function(e){var r=t[e],n=r(void 0,{type:Mo.INIT});if(typeof n>"u")throw new Error(se(12));if(typeof r(void 0,{type:Mo.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(se(13))})}function kc(t){for(var e=Object.keys(t),r={},n=0;n<e.length;n++){var i=e[n];typeof t[i]=="function"&&(r[i]=t[i])}var a=Object.keys(r),s,l;try{$p(r)}catch(d){l=d}return function(p,f){if(p===void 0&&(p={}),l)throw l;if(0)var h;for(var m=!1,y={},g=0;g<a.length;g++){var v=a[g],C=r[v],O=p[v],w=C(O,f);if(typeof w>"u"){var x=f&&f.type;throw new Error(se(14))}y[v]=w,m=m||w!==O}return m=m||a.length!==Object.keys(p).length,m?y:p}}function cr(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return e.length===0?function(n){return n}:e.length===1?e[0]:e.reduce(function(n,i){return function(){return n(i.apply(void 0,arguments))}})}function Dc(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return function(n){return function(){var i=n.apply(void 0,arguments),a=function(){throw new Error(se(15))},s={getState:i.getState,dispatch:function(){return a.apply(void 0,arguments)}},l=e.map(function(d){return d(s)});return a=cr.apply(void 0,l)(i.dispatch),$i($i({},i),{},{dispatch:a})}}}function Mc(t){var e=function(n){var i=n.dispatch,a=n.getState;return function(s){return function(l){return typeof l=="function"?l(i,a,t):s(l)}}};return e}var Uc=Mc();Uc.withExtraArgument=Mc;var zi=Uc;var Wc=(function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},t(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),Hp=function(t,e){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,i,a,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(p){return function(f){return d([p,f])}}function d(p){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,i&&(a=p[0]&2?i.return:p[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,p[1])).done)return a;switch(i=0,a&&(p=[p[0]&2,a.value]),p[0]){case 0:case 1:a=p;break;case 4:return r.label++,{value:p[1],done:!1};case 5:r.label++,i=p[1],p=[0];continue;case 7:p=r.ops.pop(),r.trys.pop();continue;default:if(a=r.trys,!(a=a.length>0&&a[a.length-1])&&(p[0]===6||p[0]===2)){r=0;continue}if(p[0]===3&&(!a||p[1]>a[0]&&p[1]<a[3])){r.label=p[1];break}if(p[0]===6&&r.label<a[1]){r.label=a[1],a=p;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(p);break}a[2]&&r.ops.pop(),r.trys.pop();continue}p=e.call(t,r)}catch(f){p=[6,f],i=0}finally{n=a=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},lr=function(t,e){for(var r=0,n=e.length,i=t.length;r<n;r++,i++)t[i]=e[r];return t},Wp=Object.defineProperty,zp=Object.defineProperties,Gp=Object.getOwnPropertyDescriptors,Bc=Object.getOwnPropertySymbols,jp=Object.prototype.hasOwnProperty,Vp=Object.prototype.propertyIsEnumerable,Fc=function(t,e,r){return e in t?Wp(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r},mt=function(t,e){for(var r in e||(e={}))jp.call(e,r)&&Fc(t,r,e[r]);if(Bc)for(var n=0,i=Bc(e);n<i.length;n++){var r=i[n];Vp.call(e,r)&&Fc(t,r,e[r])}return t},Gi=function(t,e){return zp(t,Gp(e))},Kp=function(t,e,r){return new Promise(function(n,i){var a=function(d){try{l(r.next(d))}catch(p){i(p)}},s=function(d){try{l(r.throw(d))}catch(p){i(p)}},l=function(d){return d.done?n(d.value):Promise.resolve(d.value).then(a,s)};l((r=r.apply(t,e)).next())})};var Zp=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?cr:cr.apply(null,arguments)},rv=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}};function qp(t){if(typeof t!="object"||t===null)return!1;var e=Object.getPrototypeOf(t);if(e===null)return!0;for(var r=e;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return e===r}function gt(t,e){function r(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];if(e){var a=e.apply(void 0,n);if(!a)throw new Error("prepareAction did not return an object");return mt(mt({type:t,payload:a.payload},"meta"in a&&{meta:a.meta}),"error"in a&&{error:a.error})}return{type:t,payload:n[0]}}return r.toString=function(){return""+t},r.type=t,r.match=function(n){return n.type===t},r}var Yp=(function(t){Wc(e,t);function e(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var i=t.apply(this,r)||this;return Object.setPrototypeOf(i,e.prototype),i}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return t.prototype.concat.apply(this,r)},e.prototype.prepend=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return r.length===1&&Array.isArray(r[0])?new(e.bind.apply(e,lr([void 0],r[0].concat(this)))):new(e.bind.apply(e,lr([void 0],r.concat(this))))},e})(Array),Xp=(function(t){Wc(e,t);function e(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var i=t.apply(this,r)||this;return Object.setPrototypeOf(i,e.prototype),i}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return t.prototype.concat.apply(this,r)},e.prototype.prepend=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return r.length===1&&Array.isArray(r[0])?new(e.bind.apply(e,lr([void 0],r[0].concat(this)))):new(e.bind.apply(e,lr([void 0],r.concat(this))))},e})(Array);function Ki(t){return Fe(t)?Do(t,function(){}):t}function Qp(t){return typeof t=="boolean"}function Jp(){return function(e){return ef(e)}}function ef(t){t===void 0&&(t={});var e=t.thunk,r=e===void 0?!0:e,n=t.immutableCheck,i=n===void 0?!0:n,a=t.serializableCheck,s=a===void 0?!0:a,l=t.actionCreatorCheck,d=l===void 0?!0:l,p=new Yp;if(r&&(Qp(r)?p.push(zi):p.push(zi.withExtraArgument(r.extraArgument))),0){if(i)var f;if(s)var h;if(d)var m}return p}var ji=!0;function zc(t){var e=Jp(),r=t||{},n=r.reducer,i=n===void 0?void 0:n,a=r.middleware,s=a===void 0?e():a,l=r.devTools,d=l===void 0?!0:l,p=r.preloadedState,f=p===void 0?void 0:p,h=r.enhancers,m=h===void 0?void 0:h,y;if(typeof i=="function")y=i;else if(qp(i))y=kc(i);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var g=s;if(typeof g=="function"&&(g=g(e),!ji&&!Array.isArray(g)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!ji&&g.some(function(b){return typeof b!="function"}))throw new Error("each middleware provided to configureStore must be a function");var v=Dc.apply(void 0,g),C=cr;d&&(C=Zp(mt({trace:!ji},typeof d=="object"&&d)));var O=new Xp(v),w=O;Array.isArray(m)?w=lr([v],m):typeof m=="function"&&(w=m(O));var x=C.apply(void 0,w);return Wi(y,f,x)}function Gc(t){var e={},r=[],n,i={addCase:function(a,s){var l=typeof a=="string"?a:a.type;if(!l)throw new Error("`builder.addCase` cannot be called with an empty action type");if(l in e)throw new Error("`builder.addCase` cannot be called with two reducers for the same action type");return e[l]=s,i},addMatcher:function(a,s){return r.push({matcher:a,reducer:s}),i},addDefaultCase:function(a){return n=a,i}};return t(i),[e,r,n]}function tf(t){return typeof t=="function"}function rf(t,e,r,n){r===void 0&&(r=[]);var i=typeof e=="function"?Gc(e):[e,r,n],a=i[0],s=i[1],l=i[2],d;if(tf(t))d=function(){return Ki(t())};else{var p=Ki(t);d=function(){return p}}function f(h,m){h===void 0&&(h=d());var y=lr([a[m.type]],s.filter(function(g){var v=g.matcher;return v(m)}).map(function(g){var v=g.reducer;return v}));return y.filter(function(g){return!!g}).length===0&&(y=[l]),y.reduce(function(g,v){if(v)if(ot(g)){var C=g,O=v(C,m);return O===void 0?g:O}else{if(Fe(g))return Do(g,function(w){return v(w,m)});var O=v(g,m);if(O===void 0){if(g===null)return g;throw Error("A case reducer on a non-draftable value must not return undefined")}return O}return g},h)}return f.getInitialState=d,f}function of(t,e){return t+"/"+e}function jc(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");typeof process<"u";var r=typeof t.initialState=="function"?t.initialState:Ki(t.initialState),n=t.reducers||{},i=Object.keys(n),a={},s={},l={};i.forEach(function(f){var h=n[f],m=of(e,f),y,g;"reducer"in h?(y=h.reducer,g=h.prepare):y=h,a[f]=y,s[m]=y,l[f]=g?gt(m,g):gt(m)});function d(){var f=typeof t.extraReducers=="function"?Gc(t.extraReducers):[t.extraReducers],h=f[0],m=h===void 0?{}:h,y=f[1],g=y===void 0?[]:y,v=f[2],C=v===void 0?void 0:v,O=mt(mt({},m),s);return rf(r,function(w){for(var x in O)w.addCase(x,O[x]);for(var b=0,E=g;b<E.length;b++){var R=E[b];w.addMatcher(R.matcher,R.reducer)}C&&w.addDefaultCase(C)})}var p;return{name:e,reducer:function(f,h){return p||(p=d()),p(f,h)},actions:l,caseReducers:a,getInitialState:function(){return p||(p=d()),p.getInitialState()}}}var nf="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",af=function(t){t===void 0&&(t=21);for(var e="",r=t;r--;)e+=nf[Math.random()*64|0];return e},sf=["name","message","stack","code"],Vi=(function(){function t(e,r){this.payload=e,this.meta=r}return t})(),$c=(function(){function t(e,r){this.payload=e,this.meta=r}return t})(),cf=function(t){if(typeof t=="object"&&t!==null){for(var e={},r=0,n=sf;r<n.length;r++){var i=n[r];typeof t[i]=="string"&&(e[i]=t[i])}return e}return{message:String(t)}},av=(function(){function t(e,r,n){var i=gt(e+"/fulfilled",function(f,h,m,y){return{payload:f,meta:Gi(mt({},y||{}),{arg:m,requestId:h,requestStatus:"fulfilled"})}}),a=gt(e+"/pending",function(f,h,m){return{payload:void 0,meta:Gi(mt({},m||{}),{arg:h,requestId:f,requestStatus:"pending"})}}),s=gt(e+"/rejected",function(f,h,m,y,g){return{payload:y,error:(n&&n.serializeError||cf)(f||"Rejected"),meta:Gi(mt({},g||{}),{arg:m,requestId:h,rejectedWithValue:!!y,requestStatus:"rejected",aborted:f?.name==="AbortError",condition:f?.name==="ConditionError"})}}),l=!1,d=typeof AbortController<"u"?AbortController:(function(){function f(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return f.prototype.abort=function(){},f})();function p(f){return function(h,m,y){var g=n?.idGenerator?n.idGenerator(f):af(),v=new d,C,O=!1;function w(b){C=b,v.abort()}var x=(function(){return Kp(this,null,function(){var b,E,R,N,X,G,T;return Hp(this,function(P){switch(P.label){case 0:return P.trys.push([0,4,,5]),N=(b=n?.condition)==null?void 0:b.call(n,f,{getState:m,extra:y}),df(N)?[4,N]:[3,2];case 1:N=P.sent(),P.label=2;case 2:if(N===!1||v.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return O=!0,X=new Promise(function(z,J){return v.signal.addEventListener("abort",function(){return J({name:"AbortError",message:C||"Aborted"})})}),h(a(g,f,(E=n?.getPendingMeta)==null?void 0:E.call(n,{requestId:g,arg:f},{getState:m,extra:y}))),[4,Promise.race([X,Promise.resolve(r(f,{dispatch:h,getState:m,extra:y,requestId:g,signal:v.signal,abort:w,rejectWithValue:function(z,J){return new Vi(z,J)},fulfillWithValue:function(z,J){return new $c(z,J)}})).then(function(z){if(z instanceof Vi)throw z;return z instanceof $c?i(z.payload,g,f,z.meta):i(z,g,f)})])];case 3:return R=P.sent(),[3,5];case 4:return G=P.sent(),R=G instanceof Vi?s(null,g,f,G.payload,G.meta):s(G,g,f),[3,5];case 5:return T=n&&!n.dispatchConditionRejection&&s.match(R)&&R.meta.condition,T||h(R),[2,R]}})})})();return Object.assign(x,{abort:w,requestId:g,arg:f,unwrap:function(){return x.then(lf)}})}}return Object.assign(p,{pending:a,rejected:s,fulfilled:i,typePrefix:e})}return t.withTypes=function(){return t},t})();function lf(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function df(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var Vc="listener",Kc="completed",Zc="cancelled",sv="task-"+Zc,cv="task-"+Kc,lv=Vc+"-"+Zc,dv=Vc+"-"+Kc;var Zi="listenerMiddleware";var uv=gt(Zi+"/add"),pv=gt(Zi+"/removeAll"),fv=gt(Zi+"/remove");var Hc,hv=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(t){return(Hc||(Hc=Promise.resolve())).then(t).catch(function(e){return setTimeout(function(){throw e},0)})},uf=function(t){return function(e){setTimeout(e,t)}},mv=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:uf(10);wc();window.ftReduxStores||(window.ftReduxStores={});var yt=class t extends et{static get(e){var r;let n=typeof e=="string"?e:e.name,i=typeof e=="string"?void 0:e,a=window.ftReduxStores[n];if(nr(a))return a;if(i==null)return;let s=jc({...i,reducers:(r=i.reducers)!==null&&r!==void 0?r:{}}),l=zc({reducer:(d,p)=>{if(p.type==="CLEAR_FT_REDUX_STORE"){let f=Re(s.getInitialState());for(let h of p.keeping)f[h]=(d??f)[h];return f}else if(typeof p.type=="string"&&p.type.startsWith("DEFAULT_VALUE_SETTER__"))return{...d,...p.overwrites};return s.reducer(d,p)}});return window.ftReduxStores[i.name]=new t(s,l,i.eventBus)}constructor(e,r,n){super(),this.reduxSlice=e,this.reduxStore=r,this.isFtReduxStore=!0,this.commands=new qr;let i=a=>a!=null?JSON.parse(JSON.stringify(a)):a;this.actions=new Proxy(this.reduxSlice.actions,{get:(a,s,l)=>{let d=s,p=a[d];return p?(...f)=>{let h=p(...f.map(i));return this.reduxStore.dispatch(h),h}:f=>{this.setState({[d]:i(f)})}}}),this.eventBus=n??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:[]})}clearKeeping(...e){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:e})}setState(e){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(e).join("_"),overwrites:e})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(e){throw new Error("Not implemented yet.")}subscribe(e){return this.reduxStore.subscribe(e)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};function pf(){var t;for(let e of Object.values((t=window.ftReduxStores)!==null&&t!==void 0?t:{}))nr(e)&&e.clear()}var Uo=class{constructor(e,r,n){this.store=e,this.valueSelector=r,this.callback=n}watch(){return this.stop(),this.lastValue=this.valueSelector(this.store.getState()),this.unsubscribe=this.store.subscribe(()=>{let e=this.store.getState(),r=this.valueSelector(e);Ue(this.lastValue,r)&&(this.callback(r,e),this.lastValue=r)}),this}stop(){return this.unsubscribe!=null&&(this.unsubscribe(),this.unsubscribe=void 0),this.lastValue=void 0,this}};function qc(t,e,r){return new Uo(t,e,r).watch()}var dr=class{constructor(){this.requestConsumers=new Map}getOrCreateRequestConsumers(e){var r;return(r=this.requestConsumers.get(e))!==null&&r!==void 0?r:this.requestConsumers.set(e,new Set).get(e)}registerComponent(e,r){for(let n of r)this.getOrCreateRequestConsumers(n).add(e).size==1&&this.onNewNeededRequest(n)}unregisterComponent(e,r){for(let n of r)this.getOrCreateRequestConsumers(n).delete(e)}isRequestNeeded(e){return this.getOrCreateRequestConsumers(e).size>0}};var Qi={};$(Qi,{scrollHelper:()=>ff});var Yi,Bo=new Map,Xi=class{lock(e,r){if(r){let n=Bo.get(r);if(n==null||n===e)return Bo.set(r,e),r}}release(e,r){r&&Bo.get(r)===e&&Bo.delete(r)}findFirstScrollableParent(e){var r;let n,i;for(let a of kn(e)){let s=a,l=this.elementCanScroll(s);if(l&&s.clientHeight&&s.clientHeight<s.scrollHeight){n=s;break}else l&&i==null&&(i=s)}return(r=n??i)!==null&&r!==void 0?r:document.body}elementCanScroll(e){try{return["auto","scroll"].includes(getComputedStyle(e).overflowY)&&!["contents"].includes(getComputedStyle(e).display)}catch{return!1}}getAbsoluteScrollOffset(e,r){var n,i;let a=0;for(;r&&r.offsetParent!==e.offsetParent;)a+=(n=r.offsetTop)!==null&&n!==void 0?n:0,r=r.offsetParent;return a+((i=r?.offsetTop)!==null&&i!==void 0?i:0)-e.offsetTop}computeTopOffsetRatio(e,r){if(typeof e=="number")return e;switch(e){case"end":return 1;case"center":return .5;case"nearest":return r;default:return 0}}scrollIntoViewIfPossible(e,r){let n=this.findFirstScrollableParent(e);if(e&&this.lock(this,n)){let i=this.getAbsoluteScrollOffset(n,e),a=i-n.clientHeight+e.clientHeight,s=i,l=lt(0,(s-n.scrollTop)/(s-a),1),d=this.computeTopOffsetRatio(r?.position,l)*(a-s)+s;n.scrollTo({behavior:r?.behavior,top:d})}else console.warn("Could not scroll element into view because the scrollable parent is already locked",e,n);this.release(this,n)}};window.FluidTopicsScrollHelper=(Yi=window.FluidTopicsScrollHelper)!==null&&Yi!==void 0?Yi:new Xi;var ff=window.FluidTopicsScrollHelper;var ea={};$(ea,{SearchPlaceConverter:()=>pr,SearchPlaceQueryParams:()=>B,isSearchPlaceQueryParams:()=>Dl,serializeRequest:()=>gf});var Yc;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(Yc||(Yc={}));var Xc;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(Xc||(Xc={}));var Qc;(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.ATTACHMENT="ATTACHMENT",t.RESOURCE="RESOURCE",t.HTML_PACKAGE="HTML_PACKAGE"})(Qc||(Qc={}));var Jc;(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.ATTACHMENT="ATTACHMENT",t.RESOURCE="RESOURCE",t.HTML_PACKAGE="HTML_PACKAGE"})(Jc||(Jc={}));var el;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(el||(el={}));var tl;(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(tl||(tl={}));var rl;(function(t){t.OFFICIAL="OFFICIAL",t.AI="AI"})(rl||(rl={}));var ol;(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.CHATBOT__RATE="CHATBOT__RATE",t.COLLECTION__CREATE="COLLECTION__CREATE",t.COLLECTION__UPDATE="COLLECTION__UPDATE",t.COLLECTION__DELETE="COLLECTION__DELETE",t.CUSTOM_EVENT__TRIGGER="CUSTOM_EVENT__TRIGGER",t.DOCUMENT__ON_DEMAND_TRANSLATE="DOCUMENT__ON_DEMAND_TRANSLATE",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.AI__COMPLETED_QUERY="AI__COMPLETED_QUERY",t.AI__RATE="AI__RATE",t.AI_CASE_DEFLECTION__START="AI_CASE_DEFLECTION__START",t.AI_CASE_DEFLECTION__OPEN_TICKET="AI_CASE_DEFLECTION__OPEN_TICKET",t.KHUB__PROCESS="KHUB__PROCESS",t.KHUB__SEARCH="KHUB__SEARCH",t.LABELS__DOWNLOAD="LABELS__DOWNLOAD",t.LINK__SHARE="LINK__SHARE",t.PAGE__DISPLAY="PAGE__DISPLAY",t.PERSONAL_BOOK__CREATE="PERSONAL_BOOK__CREATE",t.PERSONAL_BOOK__DELETE="PERSONAL_BOOK__DELETE",t.PERSONAL_BOOK__UPDATE="PERSONAL_BOOK__UPDATE",t.PERSONAL_TOPIC__CREATE="PERSONAL_TOPIC__CREATE",t.PERSONAL_TOPIC__UPDATE="PERSONAL_TOPIC__UPDATE",t.PERSONAL_TOPIC__DELETE="PERSONAL_TOPIC__DELETE",t.SAVED_SEARCH__CREATE="SAVED_SEARCH__CREATE",t.SAVED_SEARCH__DELETE="SAVED_SEARCH__DELETE",t.SAVED_SEARCH__UPDATE="SAVED_SEARCH__UPDATE",t.SEARCH_PAGE__SELECT="SEARCH_PAGE__SELECT",t.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU="SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU",t.TOPIC__AI_TRANSLATE="TOPIC__AI_TRANSLATE",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"})(ol||(ol={}));var nl;(function(t){t.STANDARD="STANDARD",t.STRUCTURAL="STRUCTURAL"})(nl||(nl={}));var il;(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"})(il||(il={}));var al;(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",t.SEARCH_ANNOUNCEMENT="SEARCH_ANNOUNCEMENT",t.LINK_PREVIEW="LINK_PREVIEW",t.UD_VIEWER="UD_VIEWER",t.ASSET_VIEWER="ASSET_VIEWER"})(al||(al={}));var sl;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(sl||(sl={}));var cl;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(cl||(cl={}));var ll;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(ll||(ll={}));var dl;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(dl||(dl={}));var ul;(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"})(ul||(ul={}));var kt;(function(t){t.OPTIONAL="OPTIONAL",t.MANDATORY="MANDATORY"})(kt||(kt={}));var pl;(function(t){t.ASC="ASC",t.DESC="DESC"})(pl||(pl={}));var fl;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(fl||(fl={}));var Fo;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(Fo||(Fo={}));var xl=t=>Object.keys(Fo).includes(t);var hl;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(hl||(hl={}));var $o;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})($o||($o={}));var ml;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(ml||(ml={}));var ur;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(ur||(ur={}));var vl=t=>Object.keys(ur).includes(t);var gl;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.HTML_PACKAGE="HTML_PACKAGE",t.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(gl||(gl={}));var Ji;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(Ji||(Ji={}));var yl;(function(t){t.PLAIN_TEXT="PLAIN_TEXT",t.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",t.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(yl||(yl={}));var Q;(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.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.BEHAVIOR_DATA_USER="BEHAVIOR_DATA_USER",t.ANNOUNCEMENT_ADMIN="ANNOUNCEMENT_ADMIN",t.KHUB_ADMIN="KHUB_ADMIN",t.USERS_ADMIN="USERS_ADMIN",t.PORTAL_ADMIN="PORTAL_ADMIN",t.ADMIN="ADMIN"})(Q||(Q={}));var Pe;(function(t){t.SEARCHES="SEARCHES",t.BOOKMARKS="BOOKMARKS",t.BOOKS="BOOKS",t.COLLECTIONS="COLLECTIONS"})(Pe||(Pe={}));var bl;(function(t){t.UNAUTHENTICATED="UNAUTHENTICATED",t.USER_INCOMPLETE="USER_INCOMPLETE",t.MFA_REQUIRED="MFA_REQUIRED",t.AUTHENTICATED="AUTHENTICATED"})(bl||(bl={}));var Sl;(function(t){t.UNREACHABLE="UNREACHABLE",t.UNAUTHORIZED="UNAUTHORIZED",t.FORBIDDEN="FORBIDDEN",t.INCOMPATIBLE="INCOMPATIBLE",t.FAILED="FAILED",t.OK="OK"})(Sl||(Sl={}));var El;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(El||(El={}));var Cl;(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",t.SUMMARY="SUMMARY",t.SEMANTIC_SEARCH="SEMANTIC_SEARCH",t.CHATBOT_INSTRUCTIONS="CHATBOT_INSTRUCTIONS",t.OTHER="OTHER"})(Cl||(Cl={}));var Ol;(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",t.SLOW="SLOW",t.OTHER="OTHER"})(Ol||(Ol={}));var Al;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(Al||(Al={}));var wl;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(wl||(wl={}));var Rl;(function(t){t.TEXT="TEXT",t.HTML="HTML"})(Rl||(Rl={}));var Tl;(function(t){t.IN_PROGRESS="IN_PROGRESS",t.ERROR="ERROR",t.DONE="DONE"})(Tl||(Tl={}));var Ll;(function(t){t.HTML="HTML",t.MARKDOWN="MARKDOWN"})(Ll||(Ll={}));var _l;(function(t){t.SOURCES="SOURCES",t.ENRICH_AND_CLEAN="ENRICH_AND_CLEAN",t.VOCABULARIES="VOCABULARIES",t.METADATA="METADATA",t.PRETTY_URL="PRETTY_URL",t.ACCESS_RULE="ACCESS_RULE",t.DESIGNED_PAGES="DESIGNED_PAGES",t.THEME_STUDIO="THEME_STUDIO",t.PORTAL_GENERAL="PORTAL_GENERAL",t.ASSETS="ASSETS",t.CODE_LIBRARY="CODE_LIBRARY",t.THEME="THEME",t.CONTENT_STYLES="CONTENT_STYLES",t.HOMEPAGE="HOMEPAGE",t.CLASSIC_SEARCH_PAGE="CLASSIC_SEARCH_PAGE",t.CLASSIC_READER_PAGE="CLASSIC_READER_PAGE",t.PORTAL_METADATA="PORTAL_METADATA",t.LANGUAGES="LANGUAGES",t.PRINT_TEMPLATES="PRINT_TEMPLATES",t.OFFLINE="OFFLINE",t.CUSTOM_JS="CUSTOM_JS",t.CONFIDENTIALITY="CONFIDENTIALITY",t.NOTIFICATIONS="NOTIFICATIONS"})(_l||(_l={}));var Pl;(function(t){t.MAP="MAP",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(Pl||(Pl={}));var hf={[Q.PERSONAL_BOOK_SHARE_USER]:[Q.PERSONAL_BOOK_USER],[Q.HTML_EXPORT_USER]:[Q.PERSONAL_BOOK_USER],[Q.PDF_EXPORT_USER]:[Q.PERSONAL_BOOK_USER],[Q.KHUB_ADMIN]:[Q.CONTENT_PUBLISHER],[Q.ADMIN]:[Q.KHUB_ADMIN,Q.USERS_ADMIN,Q.PORTAL_ADMIN,Q.BEHAVIOR_DATA_USER],[Q.GENERATIVE_AI_EXPORT_USER]:[Q.GENERATIVE_AI_USER]};function Il(t,e){return t===e||(hf[t]??[]).some(r=>Il(r,e))}function Nl(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=>Il(n,e))}function mf(t){return`"${t}"`}function kl(t){return t.startsWith('"')&&t.endsWith('"')?t.replace(/(^"+)|("+$)/g,""):t}function gf(t,e){return new pr(t).serialize(e)}var B;(function(t){t.LOCALE="content-lang",t.QUERY="query",t.SCOPE="scope",t.FILTERS="filters",t.VIRTUAL_FIELD="virtual-field",t.PERIOD="period",t.VALUE_FILTERS="value-filters",t.DATE_FILTERS="date-filters",t.RANGE_FILTERS="range-filters",t.SORT="sort",t.PER_PAGE="per-page",t.KEYWORD_MATCH="keyword-match"})(B||(B={}));var yf=new Set(Object.values(B));function Dl(t){return yf.has(t)}var pr=class{constructor(e,r=20,n=!1,i="en-US"){this.baseUrl=e,this.defaultPerPage=r,this.allLanguagesAllowed=n,this.defaultContentLocale=i,this.scopeMapping={documents:"DOCUMENTS",topics:"ALL_TOPICS"},this.filtersEscapeMapping=[["*","\\*","[ft-escaped-star-character]"],["~","\\\\~","[ft-escaped-tilde-character]"],["_","\\\\\\\\_","[ft-escaped-underscore-character]"]]}serialize(e,r){return this.serializeToCurrentPageIfPossible(e,r??"/search")}serializeToCurrentPageIfPossible(e,r){let n=r==null||r.trim().length===0,i=new URL(n?window.location.href:`${this.baseUrl.replace(/\/+$/,"")}${r}`);return i.search=this.toURLSearchParams(e),i.toString()}toURLSearchParams(e,r=!1){var n,i,a,s,l,d,p,f,h,m,y;let g=new URLSearchParams;e.contentLocale?(!r||e.contentLocale!==this.defaultContentLocale)&&g.append(B.LOCALE,e.contentLocale):g.append(B.LOCALE,this.allLanguagesAllowed?"all":this.defaultContentLocale),((n=e.query)===null||n===void 0?void 0:n.length)>0&&g.append(B.QUERY,e.query);let v=(a=(i=e.metadataFilters)===null||i===void 0?void 0:i.filter(b=>b.valueFilter&&!b.valueFilter.negative))!==null&&a!==void 0?a:[];if(v.length>0){let b=v.map(E=>{var R,N;let X=((N=(R=E.valueFilter)===null||R===void 0?void 0:R.values)!==null&&N!==void 0?N:[]).map(G=>this.escapeFilters(G)).map(G=>mf(kl(G))).join("_");return`${E.key}~${X}`}).join("*");g.append(B.VALUE_FILTERS,b)}let C=(l=(s=e.metadataFilters)===null||s===void 0?void 0:s.filter(b=>b.dateFilter))!==null&&l!==void 0?l:[];if(C.length>0){let b=C.map(E=>{var R;return`${E.key}~${(R=E.dateFilter)===null||R===void 0?void 0:R.type.toLowerCase()}`}).join("*");g.append(B.DATE_FILTERS,b)}let O=(p=(d=e.metadataFilters)===null||d===void 0?void 0:d.filter(b=>b.rangeFilter))!==null&&p!==void 0?p:[];if(O.length>0){let b=O.map(E=>{var R,N;return`${E.key}~${(R=E.rangeFilter)===null||R===void 0?void 0:R.from}_${(N=E.rangeFilter)===null||N===void 0?void 0:N.to}`}).join("*");g.append(B.RANGE_FILTERS,b)}e.virtualField&&e.virtualField!=="EVERYWHERE"&&g.append(B.VIRTUAL_FIELD,e.virtualField.toLowerCase()),e.scope&&e.scope!=="DEFAULT"&&g.append(B.SCOPE,e.scope.toLowerCase()),e.sortId!=null&&g.append(B.SORT,e.sortId),!((f=e.paging)===null||f===void 0)&&f.perPage&&((m=(h=e.paging)===null||h===void 0?void 0:h.perPage)!==null&&m!==void 0?m:this.defaultPerPage)!=this.defaultPerPage&&g.append(B.PER_PAGE,String(e.paging.perPage)),e.keywordMatch!=null&&g.append(B.KEYWORD_MATCH,e.keywordMatch.toLowerCase());let w=(y=e.otherQueryParams)!==null&&y!==void 0?y:{};for(let b in w)g.append(b,w[b]);let x=new Array;return g.forEach((b,E)=>{x.push(this.encodeQueryString(E)+"="+this.encodeQueryString(b))}),encodeURI(x.join("&")).replace(/#/g,"%23")}encodeQueryString(e){return encodeURIComponent(e).replace(/%20/g,"+")}parse(e){var r;let n=e.split("?"),i=this.fromURLSearchParams(n.slice(1).join("?")),a=n[0].split("/search/")[1];return a==null?i:{...i,scope:(r=this.scopeMapping[a])!==null&&r!==void 0?r:i.scope}}fromURLSearchParams(e){var r,n,i,a,s,l;try{e=decodeURI(e).replace(/%23/g,"#")}catch(O){console.warn("Could not decode search request query params, fallback on raw value",O)}let d=new URLSearchParams(e),p=d.get(B.LOCALE)==="all"?void 0:d.get(B.LOCALE),f=((r=d.get(B.VIRTUAL_FIELD))!==null&&r!==void 0?r:"EVERYWHERE").toUpperCase(),h=(n=d.get(B.SORT))===null||n===void 0?void 0:n.toLowerCase(),m=(i=d.get(B.SCOPE))!==null&&i!==void 0?i:"default",y=+((a=d.get(B.PER_PAGE))!==null&&a!==void 0?a:this.defaultPerPage),g=d.get(B.KEYWORD_MATCH),v=g?g.toUpperCase()===kt.MANDATORY?kt.MANDATORY:kt.OPTIONAL:void 0,C={};for(let O of d.keys())Dl(O)||(C[O]=d.get(O));return{contentLocale:p??(this.allLanguagesAllowed?void 0:this.defaultContentLocale),query:(s=d.get(B.QUERY))!==null&&s!==void 0?s:"",scope:(l=this.scopeMapping[m])!==null&&l!==void 0?l:"DEFAULT",virtualField:xl(f)?f:"EVERYWHERE",sortId:h,metadataFilters:this.parseCompatFilters(d),facets:[],paging:{page:1,perPage:lt(1,isNaN(y)?this.defaultPerPage:y,1e3)},keywordMatch:v,otherQueryParams:C}}parseCompatFilters(e){var r,n,i,a,s,l;let d=[];return e.has(B.FILTERS)&&(d=this.parseValueFilters((r=e.get(B.FILTERS))!==null&&r!==void 0?r:"")),(n=e.has(B.PERIOD))!==null&&n!==void 0&&n&&(d=[...d,...this.parseLegacyPeriodFilter(((i=e.get(B.PERIOD))!==null&&i!==void 0?i:"").toUpperCase())]),[...d,...this.parseValueFilters((a=e.get(B.VALUE_FILTERS))!==null&&a!==void 0?a:""),...this.parseDateFilters((s=e.get(B.DATE_FILTERS))!==null&&s!==void 0?s:""),...this.parseRangeFilters((l=e.get(B.RANGE_FILTERS))!==null&&l!==void 0?l:"")]}splitUnknownFilter(e){return this.superEscapeFilters(e).split("*").map(r=>r.split("~"))}parseValueFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(r=>({key:r[0],valueFilter:{values:r[1].split("_").map(kl).map(n=>this.unescapeFilterValue(n)),negative:!1}}))}parseDateFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(r=>({key:r[0],dateFilter:{type:ur[r[1].toUpperCase()]}}))}parseRangeFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(r=>({key:r[0],rangeFilter:{from:r[1].split("_")[0],to:r[1].split("_")[1]}}))}escapeFilters(e){for(let[r,n,i]of this.filtersEscapeMapping)e=e.replaceAll(r,n);return e}superEscapeFilters(e){for(let[r,n,i]of this.filtersEscapeMapping)e=e.replaceAll(n,i);return e}unescapeFilterValue(e){for(let[r,n,i]of this.filtersEscapeMapping)e=e.replaceAll(i,r);return e}parseLegacyPeriodFilter(e){if(vl(e))return[{key:"ft:lastEdition",dateFilter:{type:ur[e]}}];if(e.startsWith("CUSTOM_")){let[r,n,i]=e.split("_");return[{key:"ft:lastEdition",rangeFilter:{from:n,to:i}}]}return[]}static clearSearchParamsInUrl(e){let r=new URL(e);return[B.LOCALE,B.FILTERS,B.VALUE_FILTERS,B.DATE_FILTERS,B.RANGE_FILTERS].forEach(i=>{r.searchParams.delete(i)}),r.toString()}static updateLocaleParamInUrl(e,r){let n=new URL(e);return n.searchParams.delete(B.LOCALE),r!==void 0&&n.searchParams.append(B.LOCALE,r),n.toString()}};var ra={};$(ra,{toFtFormComponent:()=>bf});var ta=Symbol("elementInternals"),bf=Y(Symbol("toFtFormComponent"),function(t){class e extends t{static get formAssociated(){return!0}get form(){return this[ta].form}constructor(...n){super(n),this[ta]=this.attachInternals()}setFormValue(n){this[ta].setFormValue(n)}}return e});var oa={};$(oa,{DateFormatter:()=>Dt});var Dt=class{static format(e,r,n,i,a){return window.moment?window.moment(e).locale(r).format(this.getMomentDateFormat(n,i,!!a)):this.getIntlDateTime(e,r,n,i,!!a)}static getMomentDateFormat(e,r,n){return n?"LT":e?r?"lll":"ll":r?"L LT":"L"}static getIntlDateTime(e,r,n,i,a){let s=typeof e=="string"?new Date(e):e,l=new Intl.DateTimeFormat(r,{dateStyle:n?"medium":"short"}).format(s),d=new Intl.DateTimeFormat(r,{timeStyle:"short"}).format(s);return a?d:i?`${l} ${d}`:l}static getTimezoneAsString(){let e=n=>String(Math.floor(n)).padStart(2,"0"),r=new Date().getTimezoneOffset();return`${r<0?"+":"-"}${e(Math.abs(r)/60)}:${e(Math.abs(r)%60)}`}};var ia={};$(ia,{ALL_KEYS_VALUE:()=>na,SameWindowStorageEvent:()=>fr});var na="__all__",fr=class extends CustomEvent{constructor(e,r,n){super("same-window-storage",{detail:{key:e,oldValue:r,newValue:n}})}keyMatch(e){return this.detail.key.includes(e)||this.detail.key==na}};Storage.prototype.setItem=new Proxy(Storage.prototype.setItem,{apply(t,e,r){let n=e.getItem(r[0]);Reflect.apply(t,e,r),window.dispatchEvent(new fr(r[0],n,r[1]))}});Storage.prototype.removeItem=new Proxy(Storage.prototype.removeItem,{apply(t,e,r){let n=e.getItem(r[0]);Reflect.apply(t,e,r),window.dispatchEvent(new fr(r[0],n))}});Storage.prototype.clear=new Proxy(Storage.prototype.clear,{apply(t,e,r){Reflect.apply(t,e,r),window.dispatchEvent(new fr(na))}});var sa={};$(sa,{FocusMainContentEvent:()=>aa});var aa=class extends Event{constructor(){super("ft-focus-main-content",{composed:!0,bubbles:!0})}};var Ml={};window.FluidTopicsA11yHints={isKeyboardNavigation:!1,lastPressedKey:""};function xf(t){(t.key==="Enter"||t.key===" "||t.key==="Tab")&&(window.FluidTopicsA11yHints.isKeyboardNavigation=!0),window.FluidTopicsA11yHints.lastPressedKey=t.key}function vf(t){window.FluidTopicsA11yHints.isKeyboardNavigation=t.detail==0}document.addEventListener("keydown",xf);document.addEventListener("click",vf);var Ul=_`
|
|
47
|
+
`;var mc={};var Ai={};$(Ai,{ParametrizedLabelResolver:()=>Zr});var Zr=class t{constructor(e,r){this.defaultLabels=e,this.labels=r}resolve(e,...r){var n,i;e=this.resolvePluralKey(e,r);let a=(i=(n=this.labels[e])!==null&&n!==void 0?n:this.defaultLabels[e])!==null&&i!==void 0?i:"";return t.replaceParameters(a,...r)}static replaceParameters(e,...r){return r.forEach((n,i)=>e=e.replace(new RegExp(`\\{${i}([^}]*)\\}`,"g"),(a,s)=>t.formatValue(n,s))),e}resolvePluralKey(e,r){for(let n of r)if(typeof n=="number"){let i=`${String(e)}[\\=${n}]`;if(i in this.labels||i in this.defaultLabels)return i}return e}static formatValue(e,r){return e instanceof Date?t.formatDate(e,r):e??""}static formatDate(e,r){let n=i=>r?.includes("date")?e.toLocaleDateString(i):r?.includes("time")?e.toLocaleTimeString(i):e.toLocaleString(i);try{return n(document.documentElement.lang)}catch{return n()}}};var qi={};$(qi,{FtCommandQueue:()=>qr,FtLitElementRedux:()=>rt,FtReduxStore:()=>yt,FtStateManager:()=>dr,ReduxWatcher:()=>Uo,clearAllStores:()=>pf,isFtReduxStore:()=>nr,redux:()=>or,reduxEventListener:()=>Tp,reduxReactive:()=>Rp,watch:()=>qc,withRedux:()=>gc});var Rp=()=>(t,e)=>{var r;let n=t.constructor;n.reduxReactiveProperties=new Set(n.reduxReactiveProperties),(r=n.reduxReactiveProperties)===null||r===void 0||r.add(e)},or=t=>{let e=t??{};return(r,n)=>{var i;let a={hasChanged:Ue,attribute:!1,...e};S(a)(r,n);let s=r.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(n,{selector:(i=e.selector)!==null&&i!==void 0?i:(l=>l[n]),store:e.store})}},Tp=t=>(e,r)=>{let n=e.constructor;n.reduxEventListeners=new Map(n.reduxEventListeners),n.reduxEventListeners.set(r,t)};var qr=class{constructor(){this.queue=[]}add(e,r=!1){r&&this.clear(e.type),this.queue.push(e)}consume(e){let r=this.queue.find(n=>n.type===e);return r&&(this.queue=this.queue.filter(n=>n!==r)),r}clear(e){typeof e=="string"?this.queue=this.queue.filter(r=>r.type!==e):this.queue=this.queue.filter(r=>!e.test(r.type))}};function nr(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var Yr=Symbol("internalReduxEventsUnsubscribers"),pt=Symbol("internalStoresUnsubscribers"),Pt=Symbol("internalStores"),gc=Y(Symbol("withRedux"),function(t){var e,r,n;class i extends t{constructor(){super(...arguments),this[e]=new Map,this[r]=new Map,this[n]=new Map}get reduxConstructor(){return this.constructor}willUpdate(s){super.willUpdate(s),[...this.reduxConstructor.reduxReactiveProperties].some(l=>s.has(l))&&this.updateFromStores()}getUnnamedStore(){if(this[Pt].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Pt].values()][0]}getStore(s){return s==null?this.getUnnamedStore():this[Pt].get(s)}addStore(s,l){var d;l=(d=l??s.name)!==null&&d!==void 0?d:"default-store",this.unsubscribeFromStore(l),this[Pt].set(l,s),this.subscribeToStore(l,s),this.updateFromStores()}removeStore(s){let l=typeof s=="string"?s:s.name;this.unsubscribeFromStore(l),this[Pt].delete(l)}setupStores(){this.unsubscribeFromStores(),this[Pt].forEach((s,l)=>this.subscribeToStore(l,s)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((s,l)=>{let d=this.constructor.getPropertyOptions(l);if(!d?.attribute||!this.hasAttribute(typeof d?.attribute=="string"?d.attribute:l)){let p=this.getStore(s.store);p&&(s.store?this[pt].has(s.store):this[pt].size>0)&&(this[l]=s.selector(p.getState(),this))}})}subscribeToStore(s,l){var d;this[pt].set(s,l.subscribe(()=>this.updateFromStores())),this[Yr].set(s,[]),nr(l)&&l.eventBus&&((d=this.reduxConstructor.reduxEventListeners)===null||d===void 0||d.forEach((p,f)=>{if(typeof this[f]=="function"&&(!p.store||l.name===p.store)){let h=m=>this[f](m);l.addEventListener(p.eventName,h),this[Yr].get(s).push(()=>l.removeEventListener(p.eventName,h))}})),this.onStoreAvailable(s)}unsubscribeFromStores(){this[pt].forEach((s,l)=>this.unsubscribeFromStore(l))}unsubscribeFromStore(s){var l;this[pt].has(s)&&this[pt].get(s)(),this[pt].delete(s),(l=this[Yr].get(s))===null||l===void 0||l.forEach(d=>d()),this[Yr].delete(s)}onStoreAvailable(s){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=pt,r=Pt,n=Yr,i.reduxProperties=new Map,i.reduxReactiveProperties=new Set,i.reduxEventListeners=new Map,i}),rt=class extends gc(j){};function _e(t){for(var e=arguments.length,r=Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];if(0)var i,a;throw Error("[Immer] minified error nr: "+t+(r.length?" "+r.map((function(s){return"'"+s+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function ot(t){return!!t&&!!t[Z]}function Fe(t){var e;return!!t&&((function(r){if(!r||typeof r!="object")return!1;var n=Object.getPrototypeOf(r);if(n===null)return!0;var i=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return i===Object||typeof i=="function"&&Function.toString.call(i)===Mp})(t)||Array.isArray(t)||!!t[Cc]||!!(!((e=t.constructor)===null||e===void 0)&&e[Cc])||ki(t)||Di(t))}function It(t,e,r){r===void 0&&(r=!1),sr(t)===0?(r?Object.keys:ar)(t).forEach((function(n){r&&typeof n=="symbol"||e(n,t[n],t)})):t.forEach((function(n,i){return e(i,n,t)}))}function sr(t){var e=t[Z];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:ki(t)?2:Di(t)?3:0}function ir(t,e){return sr(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function Lp(t,e){return sr(t)===2?t.get(e):t[e]}function Oc(t,e,r){var n=sr(t);n===2?t.set(e,r):n===3?t.add(r):t[e]=r}function Ac(t,e){return t===e?t!==0||1/t==1/e:t!=t&&e!=e}function ki(t){return kp&&t instanceof Map}function Di(t){return Dp&&t instanceof Set}function ft(t){return t.o||t.t}function Mi(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=Tc(t);delete e[Z];for(var r=ar(e),n=0;n<r.length;n++){var i=r[n],a=e[i];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(e[i]={configurable:!0,writable:!0,enumerable:a.enumerable,value:t[i]})}return Object.create(Object.getPrototypeOf(t),e)}function Ui(t,e){return e===void 0&&(e=!1),Bi(t)||ot(t)||!Fe(t)||(sr(t)>1&&(t.set=t.add=t.clear=t.delete=_p),Object.freeze(t),e&&It(t,(function(r,n){return Ui(n,!0)}),!0)),t}function _p(){_e(2)}function Bi(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function Ye(t){var e=Ni[t];return e||_e(18,t),e}function Pp(t,e){Ni[t]||(Ni[t]=e)}function _i(){return Qr}function wi(t,e){e&&(Ye("Patches"),t.u=[],t.s=[],t.v=e)}function Io(t){Pi(t),t.p.forEach(Ip),t.p=null}function Pi(t){t===Qr&&(Qr=t.l)}function yc(t){return Qr={p:[],l:Qr,h:t,m:!0,_:0}}function Ip(t){var e=t[Z];e.i===0||e.i===1?e.j():e.g=!0}function Ri(t,e){e._=e.p.length;var r=e.p[0],n=t!==void 0&&t!==r;return e.h.O||Ye("ES5").S(e,t,n),n?(r[Z].P&&(Io(e),_e(4)),Fe(t)&&(t=No(e,t),e.l||ko(e,t)),e.u&&Ye("Patches").M(r[Z].t,t,e.u,e.s)):t=No(e,r,[]),Io(e),e.u&&e.v(e.u,e.s),t!==Rc?t:void 0}function No(t,e,r){if(Bi(e))return e;var n=e[Z];if(!n)return It(e,(function(l,d){return bc(t,n,e,l,d,r)}),!0),e;if(n.A!==t)return e;if(!n.P)return ko(t,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var i=n.i===4||n.i===5?n.o=Mi(n.k):n.o,a=i,s=!1;n.i===3&&(a=new Set(i),i.clear(),s=!0),It(a,(function(l,d){return bc(t,n,i,l,d,r,s)})),ko(t,i,!1),r&&t.u&&Ye("Patches").N(n,r,t.u,t.s)}return n.o}function bc(t,e,r,n,i,a,s){if(ot(i)){var l=No(t,i,a&&e&&e.i!==3&&!ir(e.R,n)?a.concat(n):void 0);if(Oc(r,n,l),!ot(l))return;t.m=!1}else s&&r.add(i);if(Fe(i)&&!Bi(i)){if(!t.h.D&&t._<1)return;No(t,i),e&&e.A.l||ko(t,i)}}function ko(t,e,r){r===void 0&&(r=!1),!t.l&&t.h.D&&t.m&&Ui(e,r)}function Ti(t,e){var r=t[Z];return(r?ft(r):t)[e]}function xc(t,e){if(e in t)for(var r=Object.getPrototypeOf(t);r;){var n=Object.getOwnPropertyDescriptor(r,e);if(n)return n;r=Object.getPrototypeOf(r)}}function ht(t){t.P||(t.P=!0,t.l&&ht(t.l))}function Li(t){t.o||(t.o=Mi(t.t))}function Ii(t,e,r){var n=ki(e)?Ye("MapSet").F(e,r):Di(e)?Ye("MapSet").T(e,r):t.O?(function(i,a){var s=Array.isArray(i),l={i:s?1:0,A:a?a.A:_i(),P:!1,I:!1,R:{},l:a,t:i,k:null,o:null,j:null,C:!1},d=l,p=Jr;s&&(d=[l],p=Xr);var f=Proxy.revocable(d,p),h=f.revoke,m=f.proxy;return l.k=m,l.j=h,m})(e,r):Ye("ES5").J(e,r);return(r?r.A:_i()).p.push(n),n}function Np(t){return ot(t)||_e(22,t),(function e(r){if(!Fe(r))return r;var n,i=r[Z],a=sr(r);if(i){if(!i.P&&(i.i<4||!Ye("ES5").K(i)))return i.t;i.I=!0,n=vc(r,a),i.I=!1}else n=vc(r,a);return It(n,(function(s,l){i&&Lp(i.t,s)===l||Oc(n,s,e(l))})),a===3?new Set(n):n})(t)}function vc(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return Mi(t)}function wc(){function t(s,l){var d=a[s];return d?d.enumerable=l:a[s]=d={configurable:!0,enumerable:l,get:function(){var p=this[Z];return Jr.get(p,s)},set:function(p){var f=this[Z];Jr.set(f,s,p)}},d}function e(s){for(var l=s.length-1;l>=0;l--){var d=s[l][Z];if(!d.P)switch(d.i){case 5:n(d)&&ht(d);break;case 4:r(d)&&ht(d)}}}function r(s){for(var l=s.t,d=s.k,p=ar(d),f=p.length-1;f>=0;f--){var h=p[f];if(h!==Z){var m=l[h];if(m===void 0&&!ir(l,h))return!0;var y=d[h],g=y&&y[Z];if(g?g.t!==m:!Ac(y,m))return!0}}var v=!!l[Z];return p.length!==ar(l).length+(v?0:1)}function n(s){var l=s.k;if(l.length!==s.t.length)return!0;var d=Object.getOwnPropertyDescriptor(l,l.length-1);if(d&&!d.get)return!0;for(var p=0;p<l.length;p++)if(!l.hasOwnProperty(p))return!0;return!1}function i(s){s.g&&_e(3,JSON.stringify(ft(s)))}var a={};Pp("ES5",{J:function(s,l){var d=Array.isArray(s),p=(function(h,m){if(h){for(var y=Array(m.length),g=0;g<m.length;g++)Object.defineProperty(y,""+g,t(g,!0));return y}var v=Tc(m);delete v[Z];for(var C=ar(v),O=0;O<C.length;O++){var w=C[O];v[w]=t(w,h||!!v[w].enumerable)}return Object.create(Object.getPrototypeOf(m),v)})(d,s),f={i:d?5:4,A:l?l.A:_i(),P:!1,I:!1,R:{},l,t:s,k:p,o:null,g:!1,C:!1};return Object.defineProperty(p,Z,{value:f,writable:!0}),p},S:function(s,l,d){d?ot(l)&&l[Z].A===s&&e(s.p):(s.u&&(function p(f){if(f&&typeof f=="object"){var h=f[Z];if(h){var m=h.t,y=h.k,g=h.R,v=h.i;if(v===4)It(y,(function(b){b!==Z&&(m[b]!==void 0||ir(m,b)?g[b]||p(y[b]):(g[b]=!0,ht(h)))})),It(m,(function(b){y[b]!==void 0||ir(y,b)||(g[b]=!1,ht(h))}));else if(v===5){if(n(h)&&(ht(h),g.length=!0),y.length<m.length)for(var C=y.length;C<m.length;C++)g[C]=!1;else for(var O=m.length;O<y.length;O++)g[O]=!0;for(var w=Math.min(y.length,m.length),x=0;x<w;x++)y.hasOwnProperty(x)||(g[x]=!0),g[x]===void 0&&p(y[x])}}}})(s.p[0]),e(s.p))},K:function(s){return s.i===4?r(s):n(s)}})}var Sc,Qr,Fi=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",kp=typeof Map<"u",Dp=typeof Set<"u",Ec=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Rc=Fi?Symbol.for("immer-nothing"):((Sc={})["immer-nothing"]=!0,Sc),Cc=Fi?Symbol.for("immer-draftable"):"__$immer_draftable",Z=Fi?Symbol.for("immer-state"):"__$immer_state";var Mp=""+Object.prototype.constructor,ar=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,Tc=Object.getOwnPropertyDescriptors||function(t){var e={};return ar(t).forEach((function(r){e[r]=Object.getOwnPropertyDescriptor(t,r)})),e},Ni={},Jr={get:function(t,e){if(e===Z)return t;var r=ft(t);if(!ir(r,e))return(function(i,a,s){var l,d=xc(a,s);return d?"value"in d?d.value:(l=d.get)===null||l===void 0?void 0:l.call(i.k):void 0})(t,r,e);var n=r[e];return t.I||!Fe(n)?n:n===Ti(t.t,e)?(Li(t),t.o[e]=Ii(t.A.h,n,t)):n},has:function(t,e){return e in ft(t)},ownKeys:function(t){return Reflect.ownKeys(ft(t))},set:function(t,e,r){var n=xc(ft(t),e);if(n?.set)return n.set.call(t.k,r),!0;if(!t.P){var i=Ti(ft(t),e),a=i?.[Z];if(a&&a.t===r)return t.o[e]=r,t.R[e]=!1,!0;if(Ac(r,i)&&(r!==void 0||ir(t.t,e)))return!0;Li(t),ht(t)}return t.o[e]===r&&(r!==void 0||e in t.o)||Number.isNaN(r)&&Number.isNaN(t.o[e])||(t.o[e]=r,t.R[e]=!0),!0},deleteProperty:function(t,e){return Ti(t.t,e)!==void 0||e in t.t?(t.R[e]=!1,Li(t),ht(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var r=ft(t),n=Reflect.getOwnPropertyDescriptor(r,e);return n&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:n.enumerable,value:r[e]}},defineProperty:function(){_e(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){_e(12)}},Xr={};It(Jr,(function(t,e){Xr[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),Xr.deleteProperty=function(t,e){return Xr.set.call(this,t,e,void 0)},Xr.set=function(t,e,r){return Jr.set.call(this,t[0],e,r,t[0])};var Up=(function(){function t(r){var n=this;this.O=Ec,this.D=!0,this.produce=function(i,a,s){if(typeof i=="function"&&typeof a!="function"){var l=a;a=i;var d=n;return function(v){var C=this;v===void 0&&(v=l);for(var O=arguments.length,w=Array(O>1?O-1:0),x=1;x<O;x++)w[x-1]=arguments[x];return d.produce(v,(function(b){var E;return(E=a).call.apply(E,[C,b].concat(w))}))}}var p;if(typeof a!="function"&&_e(6),s!==void 0&&typeof s!="function"&&_e(7),Fe(i)){var f=yc(n),h=Ii(n,i,void 0),m=!0;try{p=a(h),m=!1}finally{m?Io(f):Pi(f)}return typeof Promise<"u"&&p instanceof Promise?p.then((function(v){return wi(f,s),Ri(v,f)}),(function(v){throw Io(f),v})):(wi(f,s),Ri(p,f))}if(!i||typeof i!="object"){if((p=a(i))===void 0&&(p=i),p===Rc&&(p=void 0),n.D&&Ui(p,!0),s){var y=[],g=[];Ye("Patches").M(i,p,y,g),s(y,g)}return p}_e(21,i)},this.produceWithPatches=function(i,a){if(typeof i=="function")return function(p){for(var f=arguments.length,h=Array(f>1?f-1:0),m=1;m<f;m++)h[m-1]=arguments[m];return n.produceWithPatches(p,(function(y){return i.apply(void 0,[y].concat(h))}))};var s,l,d=n.produce(i,a,(function(p,f){s=p,l=f}));return typeof Promise<"u"&&d instanceof Promise?d.then((function(p){return[p,s,l]})):[d,s,l]},typeof r?.useProxies=="boolean"&&this.setUseProxies(r.useProxies),typeof r?.autoFreeze=="boolean"&&this.setAutoFreeze(r.autoFreeze)}var e=t.prototype;return e.createDraft=function(r){Fe(r)||_e(8),ot(r)&&(r=Np(r));var n=yc(this),i=Ii(this,r,void 0);return i[Z].C=!0,Pi(n),i},e.finishDraft=function(r,n){var i=r&&r[Z],a=i.A;return wi(a,n),Ri(void 0,a)},e.setAutoFreeze=function(r){this.D=r},e.setUseProxies=function(r){r&&!Ec&&_e(20),this.O=r},e.applyPatches=function(r,n){var i;for(i=n.length-1;i>=0;i--){var a=n[i];if(a.path.length===0&&a.op==="replace"){r=a.value;break}}i>-1&&(n=n.slice(i+1));var s=Ye("Patches").$;return ot(r)?s(r,n):this.produce(r,(function(l){return s(l,n)}))},t})(),ve=new Up,Bp=ve.produce,Nx=ve.produceWithPatches.bind(ve),kx=ve.setAutoFreeze.bind(ve),Dx=ve.setUseProxies.bind(ve),Mx=ve.applyPatches.bind(ve),Ux=ve.createDraft.bind(ve),Bx=ve.finishDraft.bind(ve),Do=Bp;function Nt(t){"@babel/helpers - typeof";return Nt=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},Nt(t)}function Lc(t,e){if(Nt(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(Nt(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function _c(t){var e=Lc(t,"string");return Nt(e)=="symbol"?e:e+""}function Pc(t,e,r){return(e=_c(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Ic(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function $i(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Ic(Object(r),!0).forEach(function(n){Pc(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Ic(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function se(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}var Nc=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})(),Hi=function(){return Math.random().toString(36).substring(7).split("").join(".")},Mo={INIT:"@@redux/INIT"+Hi(),REPLACE:"@@redux/REPLACE"+Hi(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Hi()}};function Fp(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 Wi(t,e,r){var n;if(typeof e=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(se(0));if(typeof e=="function"&&typeof r>"u"&&(r=e,e=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(se(1));return r(Wi)(t,e)}if(typeof t!="function")throw new Error(se(2));var i=t,a=e,s=[],l=s,d=!1;function p(){l===s&&(l=s.slice())}function f(){if(d)throw new Error(se(3));return a}function h(v){if(typeof v!="function")throw new Error(se(4));if(d)throw new Error(se(5));var C=!0;return p(),l.push(v),function(){if(C){if(d)throw new Error(se(6));C=!1,p();var w=l.indexOf(v);l.splice(w,1),s=null}}}function m(v){if(!Fp(v))throw new Error(se(7));if(typeof v.type>"u")throw new Error(se(8));if(d)throw new Error(se(9));try{d=!0,a=i(a,v)}finally{d=!1}for(var C=s=l,O=0;O<C.length;O++){var w=C[O];w()}return v}function y(v){if(typeof v!="function")throw new Error(se(10));i=v,m({type:Mo.REPLACE})}function g(){var v,C=h;return v={subscribe:function(w){if(typeof w!="object"||w===null)throw new Error(se(11));function x(){w.next&&w.next(f())}x();var b=C(x);return{unsubscribe:b}}},v[Nc]=function(){return this},v}return m({type:Mo.INIT}),n={dispatch:m,subscribe:h,getState:f,replaceReducer:y},n[Nc]=g,n}function $p(t){Object.keys(t).forEach(function(e){var r=t[e],n=r(void 0,{type:Mo.INIT});if(typeof n>"u")throw new Error(se(12));if(typeof r(void 0,{type:Mo.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(se(13))})}function kc(t){for(var e=Object.keys(t),r={},n=0;n<e.length;n++){var i=e[n];typeof t[i]=="function"&&(r[i]=t[i])}var a=Object.keys(r),s,l;try{$p(r)}catch(d){l=d}return function(p,f){if(p===void 0&&(p={}),l)throw l;if(0)var h;for(var m=!1,y={},g=0;g<a.length;g++){var v=a[g],C=r[v],O=p[v],w=C(O,f);if(typeof w>"u"){var x=f&&f.type;throw new Error(se(14))}y[v]=w,m=m||w!==O}return m=m||a.length!==Object.keys(p).length,m?y:p}}function cr(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return e.length===0?function(n){return n}:e.length===1?e[0]:e.reduce(function(n,i){return function(){return n(i.apply(void 0,arguments))}})}function Dc(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return function(n){return function(){var i=n.apply(void 0,arguments),a=function(){throw new Error(se(15))},s={getState:i.getState,dispatch:function(){return a.apply(void 0,arguments)}},l=e.map(function(d){return d(s)});return a=cr.apply(void 0,l)(i.dispatch),$i($i({},i),{},{dispatch:a})}}}function Mc(t){var e=function(n){var i=n.dispatch,a=n.getState;return function(s){return function(l){return typeof l=="function"?l(i,a,t):s(l)}}};return e}var Uc=Mc();Uc.withExtraArgument=Mc;var zi=Uc;var Wc=(function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},t(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),Hp=function(t,e){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,i,a,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(p){return function(f){return d([p,f])}}function d(p){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,i&&(a=p[0]&2?i.return:p[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,p[1])).done)return a;switch(i=0,a&&(p=[p[0]&2,a.value]),p[0]){case 0:case 1:a=p;break;case 4:return r.label++,{value:p[1],done:!1};case 5:r.label++,i=p[1],p=[0];continue;case 7:p=r.ops.pop(),r.trys.pop();continue;default:if(a=r.trys,!(a=a.length>0&&a[a.length-1])&&(p[0]===6||p[0]===2)){r=0;continue}if(p[0]===3&&(!a||p[1]>a[0]&&p[1]<a[3])){r.label=p[1];break}if(p[0]===6&&r.label<a[1]){r.label=a[1],a=p;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(p);break}a[2]&&r.ops.pop(),r.trys.pop();continue}p=e.call(t,r)}catch(f){p=[6,f],i=0}finally{n=a=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},lr=function(t,e){for(var r=0,n=e.length,i=t.length;r<n;r++,i++)t[i]=e[r];return t},Wp=Object.defineProperty,zp=Object.defineProperties,Gp=Object.getOwnPropertyDescriptors,Bc=Object.getOwnPropertySymbols,jp=Object.prototype.hasOwnProperty,Vp=Object.prototype.propertyIsEnumerable,Fc=function(t,e,r){return e in t?Wp(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r},mt=function(t,e){for(var r in e||(e={}))jp.call(e,r)&&Fc(t,r,e[r]);if(Bc)for(var n=0,i=Bc(e);n<i.length;n++){var r=i[n];Vp.call(e,r)&&Fc(t,r,e[r])}return t},Gi=function(t,e){return zp(t,Gp(e))},Kp=function(t,e,r){return new Promise(function(n,i){var a=function(d){try{l(r.next(d))}catch(p){i(p)}},s=function(d){try{l(r.throw(d))}catch(p){i(p)}},l=function(d){return d.done?n(d.value):Promise.resolve(d.value).then(a,s)};l((r=r.apply(t,e)).next())})};var Zp=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?cr:cr.apply(null,arguments)},rv=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}};function qp(t){if(typeof t!="object"||t===null)return!1;var e=Object.getPrototypeOf(t);if(e===null)return!0;for(var r=e;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return e===r}function gt(t,e){function r(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];if(e){var a=e.apply(void 0,n);if(!a)throw new Error("prepareAction did not return an object");return mt(mt({type:t,payload:a.payload},"meta"in a&&{meta:a.meta}),"error"in a&&{error:a.error})}return{type:t,payload:n[0]}}return r.toString=function(){return""+t},r.type=t,r.match=function(n){return n.type===t},r}var Yp=(function(t){Wc(e,t);function e(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var i=t.apply(this,r)||this;return Object.setPrototypeOf(i,e.prototype),i}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return t.prototype.concat.apply(this,r)},e.prototype.prepend=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return r.length===1&&Array.isArray(r[0])?new(e.bind.apply(e,lr([void 0],r[0].concat(this)))):new(e.bind.apply(e,lr([void 0],r.concat(this))))},e})(Array),Xp=(function(t){Wc(e,t);function e(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var i=t.apply(this,r)||this;return Object.setPrototypeOf(i,e.prototype),i}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return t.prototype.concat.apply(this,r)},e.prototype.prepend=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return r.length===1&&Array.isArray(r[0])?new(e.bind.apply(e,lr([void 0],r[0].concat(this)))):new(e.bind.apply(e,lr([void 0],r.concat(this))))},e})(Array);function Ki(t){return Fe(t)?Do(t,function(){}):t}function Qp(t){return typeof t=="boolean"}function Jp(){return function(e){return ef(e)}}function ef(t){t===void 0&&(t={});var e=t.thunk,r=e===void 0?!0:e,n=t.immutableCheck,i=n===void 0?!0:n,a=t.serializableCheck,s=a===void 0?!0:a,l=t.actionCreatorCheck,d=l===void 0?!0:l,p=new Yp;if(r&&(Qp(r)?p.push(zi):p.push(zi.withExtraArgument(r.extraArgument))),0){if(i)var f;if(s)var h;if(d)var m}return p}var ji=!0;function zc(t){var e=Jp(),r=t||{},n=r.reducer,i=n===void 0?void 0:n,a=r.middleware,s=a===void 0?e():a,l=r.devTools,d=l===void 0?!0:l,p=r.preloadedState,f=p===void 0?void 0:p,h=r.enhancers,m=h===void 0?void 0:h,y;if(typeof i=="function")y=i;else if(qp(i))y=kc(i);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var g=s;if(typeof g=="function"&&(g=g(e),!ji&&!Array.isArray(g)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!ji&&g.some(function(b){return typeof b!="function"}))throw new Error("each middleware provided to configureStore must be a function");var v=Dc.apply(void 0,g),C=cr;d&&(C=Zp(mt({trace:!ji},typeof d=="object"&&d)));var O=new Xp(v),w=O;Array.isArray(m)?w=lr([v],m):typeof m=="function"&&(w=m(O));var x=C.apply(void 0,w);return Wi(y,f,x)}function Gc(t){var e={},r=[],n,i={addCase:function(a,s){var l=typeof a=="string"?a:a.type;if(!l)throw new Error("`builder.addCase` cannot be called with an empty action type");if(l in e)throw new Error("`builder.addCase` cannot be called with two reducers for the same action type");return e[l]=s,i},addMatcher:function(a,s){return r.push({matcher:a,reducer:s}),i},addDefaultCase:function(a){return n=a,i}};return t(i),[e,r,n]}function tf(t){return typeof t=="function"}function rf(t,e,r,n){r===void 0&&(r=[]);var i=typeof e=="function"?Gc(e):[e,r,n],a=i[0],s=i[1],l=i[2],d;if(tf(t))d=function(){return Ki(t())};else{var p=Ki(t);d=function(){return p}}function f(h,m){h===void 0&&(h=d());var y=lr([a[m.type]],s.filter(function(g){var v=g.matcher;return v(m)}).map(function(g){var v=g.reducer;return v}));return y.filter(function(g){return!!g}).length===0&&(y=[l]),y.reduce(function(g,v){if(v)if(ot(g)){var C=g,O=v(C,m);return O===void 0?g:O}else{if(Fe(g))return Do(g,function(w){return v(w,m)});var O=v(g,m);if(O===void 0){if(g===null)return g;throw Error("A case reducer on a non-draftable value must not return undefined")}return O}return g},h)}return f.getInitialState=d,f}function of(t,e){return t+"/"+e}function jc(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");typeof process<"u";var r=typeof t.initialState=="function"?t.initialState:Ki(t.initialState),n=t.reducers||{},i=Object.keys(n),a={},s={},l={};i.forEach(function(f){var h=n[f],m=of(e,f),y,g;"reducer"in h?(y=h.reducer,g=h.prepare):y=h,a[f]=y,s[m]=y,l[f]=g?gt(m,g):gt(m)});function d(){var f=typeof t.extraReducers=="function"?Gc(t.extraReducers):[t.extraReducers],h=f[0],m=h===void 0?{}:h,y=f[1],g=y===void 0?[]:y,v=f[2],C=v===void 0?void 0:v,O=mt(mt({},m),s);return rf(r,function(w){for(var x in O)w.addCase(x,O[x]);for(var b=0,E=g;b<E.length;b++){var R=E[b];w.addMatcher(R.matcher,R.reducer)}C&&w.addDefaultCase(C)})}var p;return{name:e,reducer:function(f,h){return p||(p=d()),p(f,h)},actions:l,caseReducers:a,getInitialState:function(){return p||(p=d()),p.getInitialState()}}}var nf="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",af=function(t){t===void 0&&(t=21);for(var e="",r=t;r--;)e+=nf[Math.random()*64|0];return e},sf=["name","message","stack","code"],Vi=(function(){function t(e,r){this.payload=e,this.meta=r}return t})(),$c=(function(){function t(e,r){this.payload=e,this.meta=r}return t})(),cf=function(t){if(typeof t=="object"&&t!==null){for(var e={},r=0,n=sf;r<n.length;r++){var i=n[r];typeof t[i]=="string"&&(e[i]=t[i])}return e}return{message:String(t)}},av=(function(){function t(e,r,n){var i=gt(e+"/fulfilled",function(f,h,m,y){return{payload:f,meta:Gi(mt({},y||{}),{arg:m,requestId:h,requestStatus:"fulfilled"})}}),a=gt(e+"/pending",function(f,h,m){return{payload:void 0,meta:Gi(mt({},m||{}),{arg:h,requestId:f,requestStatus:"pending"})}}),s=gt(e+"/rejected",function(f,h,m,y,g){return{payload:y,error:(n&&n.serializeError||cf)(f||"Rejected"),meta:Gi(mt({},g||{}),{arg:m,requestId:h,rejectedWithValue:!!y,requestStatus:"rejected",aborted:f?.name==="AbortError",condition:f?.name==="ConditionError"})}}),l=!1,d=typeof AbortController<"u"?AbortController:(function(){function f(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return f.prototype.abort=function(){},f})();function p(f){return function(h,m,y){var g=n?.idGenerator?n.idGenerator(f):af(),v=new d,C,O=!1;function w(b){C=b,v.abort()}var x=(function(){return Kp(this,null,function(){var b,E,R,N,X,G,T;return Hp(this,function(P){switch(P.label){case 0:return P.trys.push([0,4,,5]),N=(b=n?.condition)==null?void 0:b.call(n,f,{getState:m,extra:y}),df(N)?[4,N]:[3,2];case 1:N=P.sent(),P.label=2;case 2:if(N===!1||v.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return O=!0,X=new Promise(function(z,J){return v.signal.addEventListener("abort",function(){return J({name:"AbortError",message:C||"Aborted"})})}),h(a(g,f,(E=n?.getPendingMeta)==null?void 0:E.call(n,{requestId:g,arg:f},{getState:m,extra:y}))),[4,Promise.race([X,Promise.resolve(r(f,{dispatch:h,getState:m,extra:y,requestId:g,signal:v.signal,abort:w,rejectWithValue:function(z,J){return new Vi(z,J)},fulfillWithValue:function(z,J){return new $c(z,J)}})).then(function(z){if(z instanceof Vi)throw z;return z instanceof $c?i(z.payload,g,f,z.meta):i(z,g,f)})])];case 3:return R=P.sent(),[3,5];case 4:return G=P.sent(),R=G instanceof Vi?s(null,g,f,G.payload,G.meta):s(G,g,f),[3,5];case 5:return T=n&&!n.dispatchConditionRejection&&s.match(R)&&R.meta.condition,T||h(R),[2,R]}})})})();return Object.assign(x,{abort:w,requestId:g,arg:f,unwrap:function(){return x.then(lf)}})}}return Object.assign(p,{pending:a,rejected:s,fulfilled:i,typePrefix:e})}return t.withTypes=function(){return t},t})();function lf(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function df(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var Vc="listener",Kc="completed",Zc="cancelled",sv="task-"+Zc,cv="task-"+Kc,lv=Vc+"-"+Zc,dv=Vc+"-"+Kc;var Zi="listenerMiddleware";var uv=gt(Zi+"/add"),pv=gt(Zi+"/removeAll"),fv=gt(Zi+"/remove");var Hc,hv=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(t){return(Hc||(Hc=Promise.resolve())).then(t).catch(function(e){return setTimeout(function(){throw e},0)})},uf=function(t){return function(e){setTimeout(e,t)}},mv=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:uf(10);wc();window.ftReduxStores||(window.ftReduxStores={});var yt=class t extends et{static get(e){var r;let n=typeof e=="string"?e:e.name,i=typeof e=="string"?void 0:e,a=window.ftReduxStores[n];if(nr(a))return a;if(i==null)return;let s=jc({...i,reducers:(r=i.reducers)!==null&&r!==void 0?r:{}}),l=zc({reducer:(d,p)=>{if(p.type==="CLEAR_FT_REDUX_STORE"){let f=Re(s.getInitialState());for(let h of p.keeping)f[h]=(d??f)[h];return f}else if(typeof p.type=="string"&&p.type.startsWith("DEFAULT_VALUE_SETTER__"))return{...d,...p.overwrites};return s.reducer(d,p)}});return window.ftReduxStores[i.name]=new t(s,l,i.eventBus)}constructor(e,r,n){super(),this.reduxSlice=e,this.reduxStore=r,this.isFtReduxStore=!0,this.commands=new qr;let i=a=>a!=null?JSON.parse(JSON.stringify(a)):a;this.actions=new Proxy(this.reduxSlice.actions,{get:(a,s,l)=>{let d=s,p=a[d];return p?(...f)=>{let h=p(...f.map(i));return this.reduxStore.dispatch(h),h}:f=>{this.setState({[d]:i(f)})}}}),this.eventBus=n??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:[]})}clearKeeping(...e){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:e})}setState(e){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(e).join("_"),overwrites:e})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(e){throw new Error("Not implemented yet.")}subscribe(e){return this.reduxStore.subscribe(e)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};function pf(){var t;for(let e of Object.values((t=window.ftReduxStores)!==null&&t!==void 0?t:{}))nr(e)&&e.clear()}var Uo=class{constructor(e,r,n){this.store=e,this.valueSelector=r,this.callback=n}watch(){return this.stop(),this.lastValue=this.valueSelector(this.store.getState()),this.unsubscribe=this.store.subscribe(()=>{let e=this.store.getState(),r=this.valueSelector(e);Ue(this.lastValue,r)&&(this.callback(r,e),this.lastValue=r)}),this}stop(){return this.unsubscribe!=null&&(this.unsubscribe(),this.unsubscribe=void 0),this.lastValue=void 0,this}};function qc(t,e,r){return new Uo(t,e,r).watch()}var dr=class{constructor(){this.requestConsumers=new Map}getOrCreateRequestConsumers(e){var r;return(r=this.requestConsumers.get(e))!==null&&r!==void 0?r:this.requestConsumers.set(e,new Set).get(e)}registerComponent(e,r){for(let n of r)this.getOrCreateRequestConsumers(n).add(e).size==1&&this.onNewNeededRequest(n)}unregisterComponent(e,r){for(let n of r)this.getOrCreateRequestConsumers(n).delete(e)}isRequestNeeded(e){return this.getOrCreateRequestConsumers(e).size>0}};var Qi={};$(Qi,{scrollHelper:()=>ff});var Yi,Bo=new Map,Xi=class{lock(e,r){if(r){let n=Bo.get(r);if(n==null||n===e)return Bo.set(r,e),r}}release(e,r){r&&Bo.get(r)===e&&Bo.delete(r)}findFirstScrollableParent(e){var r;let n,i;for(let a of kn(e)){let s=a,l=this.elementCanScroll(s);if(l&&s.clientHeight&&s.clientHeight<s.scrollHeight){n=s;break}else l&&i==null&&(i=s)}return(r=n??i)!==null&&r!==void 0?r:document.body}elementCanScroll(e){try{return["auto","scroll"].includes(getComputedStyle(e).overflowY)&&!["contents"].includes(getComputedStyle(e).display)}catch{return!1}}getAbsoluteScrollOffset(e,r){var n,i;let a=0;for(;r&&r.offsetParent!==e.offsetParent;)a+=(n=r.offsetTop)!==null&&n!==void 0?n:0,r=r.offsetParent;return a+((i=r?.offsetTop)!==null&&i!==void 0?i:0)-e.offsetTop}computeTopOffsetRatio(e,r){if(typeof e=="number")return e;switch(e){case"end":return 1;case"center":return .5;case"nearest":return r;default:return 0}}scrollIntoViewIfPossible(e,r){let n=this.findFirstScrollableParent(e);if(e&&this.lock(this,n)){let i=this.getAbsoluteScrollOffset(n,e),a=i-n.clientHeight+e.clientHeight,s=i,l=lt(0,(s-n.scrollTop)/(s-a),1),d=this.computeTopOffsetRatio(r?.position,l)*(a-s)+s;n.scrollTo({behavior:r?.behavior,top:d})}else console.warn("Could not scroll element into view because the scrollable parent is already locked",e,n);this.release(this,n)}};window.FluidTopicsScrollHelper=(Yi=window.FluidTopicsScrollHelper)!==null&&Yi!==void 0?Yi:new Xi;var ff=window.FluidTopicsScrollHelper;var ea={};$(ea,{SearchPlaceConverter:()=>pr,SearchPlaceQueryParams:()=>B,isSearchPlaceQueryParams:()=>Dl,serializeRequest:()=>gf});var Yc;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(Yc||(Yc={}));var Xc;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(Xc||(Xc={}));var Qc;(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.ATTACHMENT="ATTACHMENT",t.RESOURCE="RESOURCE",t.HTML_PACKAGE="HTML_PACKAGE"})(Qc||(Qc={}));var Jc;(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.ATTACHMENT="ATTACHMENT",t.RESOURCE="RESOURCE",t.HTML_PACKAGE="HTML_PACKAGE"})(Jc||(Jc={}));var el;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(el||(el={}));var tl;(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(tl||(tl={}));var rl;(function(t){t.OFFICIAL="OFFICIAL",t.AI="AI"})(rl||(rl={}));var ol;(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.CHATBOT__RATE="CHATBOT__RATE",t.COLLECTION__CREATE="COLLECTION__CREATE",t.COLLECTION__UPDATE="COLLECTION__UPDATE",t.COLLECTION__DELETE="COLLECTION__DELETE",t.CUSTOM_EVENT__TRIGGER="CUSTOM_EVENT__TRIGGER",t.DOCUMENT__ON_DEMAND_TRANSLATE="DOCUMENT__ON_DEMAND_TRANSLATE",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.AI__COMPLETED_QUERY="AI__COMPLETED_QUERY",t.AI__RATE="AI__RATE",t.AI_CASE_DEFLECTION__START="AI_CASE_DEFLECTION__START",t.AI_CASE_DEFLECTION__OPEN_TICKET="AI_CASE_DEFLECTION__OPEN_TICKET",t.KHUB__PROCESS="KHUB__PROCESS",t.KHUB__SEARCH="KHUB__SEARCH",t.LABELS__DOWNLOAD="LABELS__DOWNLOAD",t.LINK__SHARE="LINK__SHARE",t.PAGE__DISPLAY="PAGE__DISPLAY",t.PERSONAL_BOOK__CREATE="PERSONAL_BOOK__CREATE",t.PERSONAL_BOOK__DELETE="PERSONAL_BOOK__DELETE",t.PERSONAL_BOOK__UPDATE="PERSONAL_BOOK__UPDATE",t.PERSONAL_TOPIC__CREATE="PERSONAL_TOPIC__CREATE",t.PERSONAL_TOPIC__UPDATE="PERSONAL_TOPIC__UPDATE",t.PERSONAL_TOPIC__DELETE="PERSONAL_TOPIC__DELETE",t.SAVED_SEARCH__CREATE="SAVED_SEARCH__CREATE",t.SAVED_SEARCH__DELETE="SAVED_SEARCH__DELETE",t.SAVED_SEARCH__UPDATE="SAVED_SEARCH__UPDATE",t.SEARCH_PAGE__SELECT="SEARCH_PAGE__SELECT",t.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU="SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU",t.TOPIC__AI_TRANSLATE="TOPIC__AI_TRANSLATE",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"})(ol||(ol={}));var nl;(function(t){t.STANDARD="STANDARD",t.STRUCTURAL="STRUCTURAL"})(nl||(nl={}));var il;(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"})(il||(il={}));var al;(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",t.SEARCH_ANNOUNCEMENT="SEARCH_ANNOUNCEMENT",t.LINK_PREVIEW="LINK_PREVIEW",t.UD_VIEWER="UD_VIEWER",t.ASSET_VIEWER="ASSET_VIEWER"})(al||(al={}));var sl;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(sl||(sl={}));var cl;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(cl||(cl={}));var ll;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(ll||(ll={}));var dl;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(dl||(dl={}));var ul;(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"})(ul||(ul={}));var kt;(function(t){t.OPTIONAL="OPTIONAL",t.MANDATORY="MANDATORY"})(kt||(kt={}));var pl;(function(t){t.ASC="ASC",t.DESC="DESC"})(pl||(pl={}));var fl;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(fl||(fl={}));var Fo;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(Fo||(Fo={}));var xl=t=>Object.keys(Fo).includes(t);var hl;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(hl||(hl={}));var $o;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})($o||($o={}));var ml;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(ml||(ml={}));var ur;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(ur||(ur={}));var vl=t=>Object.keys(ur).includes(t);var gl;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.HTML_PACKAGE="HTML_PACKAGE",t.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(gl||(gl={}));var Ji;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(Ji||(Ji={}));var yl;(function(t){t.PLAIN_TEXT="PLAIN_TEXT",t.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",t.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(yl||(yl={}));var Q;(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.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.BEHAVIOR_DATA_USER="BEHAVIOR_DATA_USER",t.ANNOUNCEMENT_ADMIN="ANNOUNCEMENT_ADMIN",t.KHUB_ADMIN="KHUB_ADMIN",t.USERS_ADMIN="USERS_ADMIN",t.PORTAL_ADMIN="PORTAL_ADMIN",t.ADMIN="ADMIN"})(Q||(Q={}));var Pe;(function(t){t.SEARCHES="SEARCHES",t.BOOKMARKS="BOOKMARKS",t.BOOKS="BOOKS",t.COLLECTIONS="COLLECTIONS"})(Pe||(Pe={}));var bl;(function(t){t.UNAUTHENTICATED="UNAUTHENTICATED",t.USER_INCOMPLETE="USER_INCOMPLETE",t.MFA_REQUIRED="MFA_REQUIRED",t.AUTHENTICATED="AUTHENTICATED"})(bl||(bl={}));var Sl;(function(t){t.UNREACHABLE="UNREACHABLE",t.UNAUTHORIZED="UNAUTHORIZED",t.FORBIDDEN="FORBIDDEN",t.INCOMPATIBLE="INCOMPATIBLE",t.FAILED="FAILED",t.OK="OK"})(Sl||(Sl={}));var El;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(El||(El={}));var Cl;(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",t.SUMMARY="SUMMARY",t.SEMANTIC_SEARCH="SEMANTIC_SEARCH",t.CHATBOT_INSTRUCTIONS="CHATBOT_INSTRUCTIONS",t.DOCUMENTATION="DOCUMENTATION",t.OTHER="OTHER"})(Cl||(Cl={}));var Ol;(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",t.SLOW="SLOW",t.OTHER="OTHER"})(Ol||(Ol={}));var Al;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(Al||(Al={}));var wl;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(wl||(wl={}));var Rl;(function(t){t.TEXT="TEXT",t.HTML="HTML"})(Rl||(Rl={}));var Tl;(function(t){t.IN_PROGRESS="IN_PROGRESS",t.ERROR="ERROR",t.DONE="DONE"})(Tl||(Tl={}));var Ll;(function(t){t.HTML="HTML",t.MARKDOWN="MARKDOWN"})(Ll||(Ll={}));var _l;(function(t){t.SOURCES="SOURCES",t.ENRICH_AND_CLEAN="ENRICH_AND_CLEAN",t.VOCABULARIES="VOCABULARIES",t.METADATA="METADATA",t.PRETTY_URL="PRETTY_URL",t.ACCESS_RULE="ACCESS_RULE",t.DESIGNED_PAGES="DESIGNED_PAGES",t.THEME_STUDIO="THEME_STUDIO",t.PORTAL_GENERAL="PORTAL_GENERAL",t.ASSETS="ASSETS",t.CODE_LIBRARY="CODE_LIBRARY",t.THEME="THEME",t.CONTENT_STYLES="CONTENT_STYLES",t.HOMEPAGE="HOMEPAGE",t.CLASSIC_SEARCH_PAGE="CLASSIC_SEARCH_PAGE",t.CLASSIC_READER_PAGE="CLASSIC_READER_PAGE",t.PORTAL_METADATA="PORTAL_METADATA",t.LANGUAGES="LANGUAGES",t.PRINT_TEMPLATES="PRINT_TEMPLATES",t.OFFLINE="OFFLINE",t.CUSTOM_JS="CUSTOM_JS",t.CONFIDENTIALITY="CONFIDENTIALITY",t.NOTIFICATIONS="NOTIFICATIONS"})(_l||(_l={}));var Pl;(function(t){t.MAP="MAP",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(Pl||(Pl={}));var hf={[Q.PERSONAL_BOOK_SHARE_USER]:[Q.PERSONAL_BOOK_USER],[Q.HTML_EXPORT_USER]:[Q.PERSONAL_BOOK_USER],[Q.PDF_EXPORT_USER]:[Q.PERSONAL_BOOK_USER],[Q.KHUB_ADMIN]:[Q.CONTENT_PUBLISHER],[Q.ADMIN]:[Q.KHUB_ADMIN,Q.USERS_ADMIN,Q.PORTAL_ADMIN,Q.BEHAVIOR_DATA_USER],[Q.GENERATIVE_AI_EXPORT_USER]:[Q.GENERATIVE_AI_USER]};function Il(t,e){return t===e||(hf[t]??[]).some(r=>Il(r,e))}function Nl(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=>Il(n,e))}function mf(t){return`"${t}"`}function kl(t){return t.startsWith('"')&&t.endsWith('"')?t.replace(/(^"+)|("+$)/g,""):t}function gf(t,e){return new pr(t).serialize(e)}var B;(function(t){t.LOCALE="content-lang",t.QUERY="query",t.SCOPE="scope",t.FILTERS="filters",t.VIRTUAL_FIELD="virtual-field",t.PERIOD="period",t.VALUE_FILTERS="value-filters",t.DATE_FILTERS="date-filters",t.RANGE_FILTERS="range-filters",t.SORT="sort",t.PER_PAGE="per-page",t.KEYWORD_MATCH="keyword-match"})(B||(B={}));var yf=new Set(Object.values(B));function Dl(t){return yf.has(t)}var pr=class{constructor(e,r=20,n=!1,i="en-US"){this.baseUrl=e,this.defaultPerPage=r,this.allLanguagesAllowed=n,this.defaultContentLocale=i,this.scopeMapping={documents:"DOCUMENTS",topics:"ALL_TOPICS"},this.filtersEscapeMapping=[["*","\\*","[ft-escaped-star-character]"],["~","\\\\~","[ft-escaped-tilde-character]"],["_","\\\\\\\\_","[ft-escaped-underscore-character]"]]}serialize(e,r){return this.serializeToCurrentPageIfPossible(e,r??"/search")}serializeToCurrentPageIfPossible(e,r){let n=r==null||r.trim().length===0,i=new URL(n?window.location.href:`${this.baseUrl.replace(/\/+$/,"")}${r}`);return i.search=this.toURLSearchParams(e),i.toString()}toURLSearchParams(e,r=!1){var n,i,a,s,l,d,p,f,h,m,y;let g=new URLSearchParams;e.contentLocale?(!r||e.contentLocale!==this.defaultContentLocale)&&g.append(B.LOCALE,e.contentLocale):g.append(B.LOCALE,this.allLanguagesAllowed?"all":this.defaultContentLocale),((n=e.query)===null||n===void 0?void 0:n.length)>0&&g.append(B.QUERY,e.query);let v=(a=(i=e.metadataFilters)===null||i===void 0?void 0:i.filter(b=>b.valueFilter&&!b.valueFilter.negative))!==null&&a!==void 0?a:[];if(v.length>0){let b=v.map(E=>{var R,N;let X=((N=(R=E.valueFilter)===null||R===void 0?void 0:R.values)!==null&&N!==void 0?N:[]).map(G=>this.escapeFilters(G)).map(G=>mf(kl(G))).join("_");return`${E.key}~${X}`}).join("*");g.append(B.VALUE_FILTERS,b)}let C=(l=(s=e.metadataFilters)===null||s===void 0?void 0:s.filter(b=>b.dateFilter))!==null&&l!==void 0?l:[];if(C.length>0){let b=C.map(E=>{var R;return`${E.key}~${(R=E.dateFilter)===null||R===void 0?void 0:R.type.toLowerCase()}`}).join("*");g.append(B.DATE_FILTERS,b)}let O=(p=(d=e.metadataFilters)===null||d===void 0?void 0:d.filter(b=>b.rangeFilter))!==null&&p!==void 0?p:[];if(O.length>0){let b=O.map(E=>{var R,N;return`${E.key}~${(R=E.rangeFilter)===null||R===void 0?void 0:R.from}_${(N=E.rangeFilter)===null||N===void 0?void 0:N.to}`}).join("*");g.append(B.RANGE_FILTERS,b)}e.virtualField&&e.virtualField!=="EVERYWHERE"&&g.append(B.VIRTUAL_FIELD,e.virtualField.toLowerCase()),e.scope&&e.scope!=="DEFAULT"&&g.append(B.SCOPE,e.scope.toLowerCase()),e.sortId!=null&&g.append(B.SORT,e.sortId),!((f=e.paging)===null||f===void 0)&&f.perPage&&((m=(h=e.paging)===null||h===void 0?void 0:h.perPage)!==null&&m!==void 0?m:this.defaultPerPage)!=this.defaultPerPage&&g.append(B.PER_PAGE,String(e.paging.perPage)),e.keywordMatch!=null&&g.append(B.KEYWORD_MATCH,e.keywordMatch.toLowerCase());let w=(y=e.otherQueryParams)!==null&&y!==void 0?y:{};for(let b in w)g.append(b,w[b]);let x=new Array;return g.forEach((b,E)=>{x.push(this.encodeQueryString(E)+"="+this.encodeQueryString(b))}),encodeURI(x.join("&")).replace(/#/g,"%23")}encodeQueryString(e){return encodeURIComponent(e).replace(/%20/g,"+")}parse(e){var r;let n=e.split("?"),i=this.fromURLSearchParams(n.slice(1).join("?")),a=n[0].split("/search/")[1];return a==null?i:{...i,scope:(r=this.scopeMapping[a])!==null&&r!==void 0?r:i.scope}}fromURLSearchParams(e){var r,n,i,a,s,l;try{e=decodeURI(e).replace(/%23/g,"#")}catch(O){console.warn("Could not decode search request query params, fallback on raw value",O)}let d=new URLSearchParams(e),p=d.get(B.LOCALE)==="all"?void 0:d.get(B.LOCALE),f=((r=d.get(B.VIRTUAL_FIELD))!==null&&r!==void 0?r:"EVERYWHERE").toUpperCase(),h=(n=d.get(B.SORT))===null||n===void 0?void 0:n.toLowerCase(),m=(i=d.get(B.SCOPE))!==null&&i!==void 0?i:"default",y=+((a=d.get(B.PER_PAGE))!==null&&a!==void 0?a:this.defaultPerPage),g=d.get(B.KEYWORD_MATCH),v=g?g.toUpperCase()===kt.MANDATORY?kt.MANDATORY:kt.OPTIONAL:void 0,C={};for(let O of d.keys())Dl(O)||(C[O]=d.get(O));return{contentLocale:p??(this.allLanguagesAllowed?void 0:this.defaultContentLocale),query:(s=d.get(B.QUERY))!==null&&s!==void 0?s:"",scope:(l=this.scopeMapping[m])!==null&&l!==void 0?l:"DEFAULT",virtualField:xl(f)?f:"EVERYWHERE",sortId:h,metadataFilters:this.parseCompatFilters(d),facets:[],paging:{page:1,perPage:lt(1,isNaN(y)?this.defaultPerPage:y,1e3)},keywordMatch:v,otherQueryParams:C}}parseCompatFilters(e){var r,n,i,a,s,l;let d=[];return e.has(B.FILTERS)&&(d=this.parseValueFilters((r=e.get(B.FILTERS))!==null&&r!==void 0?r:"")),(n=e.has(B.PERIOD))!==null&&n!==void 0&&n&&(d=[...d,...this.parseLegacyPeriodFilter(((i=e.get(B.PERIOD))!==null&&i!==void 0?i:"").toUpperCase())]),[...d,...this.parseValueFilters((a=e.get(B.VALUE_FILTERS))!==null&&a!==void 0?a:""),...this.parseDateFilters((s=e.get(B.DATE_FILTERS))!==null&&s!==void 0?s:""),...this.parseRangeFilters((l=e.get(B.RANGE_FILTERS))!==null&&l!==void 0?l:"")]}splitUnknownFilter(e){return this.superEscapeFilters(e).split("*").map(r=>r.split("~"))}parseValueFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(r=>({key:r[0],valueFilter:{values:r[1].split("_").map(kl).map(n=>this.unescapeFilterValue(n)),negative:!1}}))}parseDateFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(r=>({key:r[0],dateFilter:{type:ur[r[1].toUpperCase()]}}))}parseRangeFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(r=>({key:r[0],rangeFilter:{from:r[1].split("_")[0],to:r[1].split("_")[1]}}))}escapeFilters(e){for(let[r,n,i]of this.filtersEscapeMapping)e=e.replaceAll(r,n);return e}superEscapeFilters(e){for(let[r,n,i]of this.filtersEscapeMapping)e=e.replaceAll(n,i);return e}unescapeFilterValue(e){for(let[r,n,i]of this.filtersEscapeMapping)e=e.replaceAll(i,r);return e}parseLegacyPeriodFilter(e){if(vl(e))return[{key:"ft:lastEdition",dateFilter:{type:ur[e]}}];if(e.startsWith("CUSTOM_")){let[r,n,i]=e.split("_");return[{key:"ft:lastEdition",rangeFilter:{from:n,to:i}}]}return[]}static clearSearchParamsInUrl(e){let r=new URL(e);return[B.LOCALE,B.FILTERS,B.VALUE_FILTERS,B.DATE_FILTERS,B.RANGE_FILTERS].forEach(i=>{r.searchParams.delete(i)}),r.toString()}static updateLocaleParamInUrl(e,r){let n=new URL(e);return n.searchParams.delete(B.LOCALE),r!==void 0&&n.searchParams.append(B.LOCALE,r),n.toString()}};var ra={};$(ra,{toFtFormComponent:()=>bf});var ta=Symbol("elementInternals"),bf=Y(Symbol("toFtFormComponent"),function(t){class e extends t{static get formAssociated(){return!0}get form(){return this[ta].form}constructor(...n){super(n),this[ta]=this.attachInternals()}setFormValue(n){this[ta].setFormValue(n)}}return e});var oa={};$(oa,{DateFormatter:()=>Dt});var Dt=class{static format(e,r,n,i,a){return window.moment?window.moment(e).locale(r).format(this.getMomentDateFormat(n,i,!!a)):this.getIntlDateTime(e,r,n,i,!!a)}static getMomentDateFormat(e,r,n){return n?"LT":e?r?"lll":"ll":r?"L LT":"L"}static getIntlDateTime(e,r,n,i,a){let s=typeof e=="string"?new Date(e):e,l=new Intl.DateTimeFormat(r,{dateStyle:n?"medium":"short"}).format(s),d=new Intl.DateTimeFormat(r,{timeStyle:"short"}).format(s);return a?d:i?`${l} ${d}`:l}static getTimezoneAsString(){let e=n=>String(Math.floor(n)).padStart(2,"0"),r=new Date().getTimezoneOffset();return`${r<0?"+":"-"}${e(Math.abs(r)/60)}:${e(Math.abs(r)%60)}`}};var ia={};$(ia,{ALL_KEYS_VALUE:()=>na,SameWindowStorageEvent:()=>fr});var na="__all__",fr=class extends CustomEvent{constructor(e,r,n){super("same-window-storage",{detail:{key:e,oldValue:r,newValue:n}})}keyMatch(e){return this.detail.key.includes(e)||this.detail.key==na}};Storage.prototype.setItem=new Proxy(Storage.prototype.setItem,{apply(t,e,r){let n=e.getItem(r[0]);Reflect.apply(t,e,r),window.dispatchEvent(new fr(r[0],n,r[1]))}});Storage.prototype.removeItem=new Proxy(Storage.prototype.removeItem,{apply(t,e,r){let n=e.getItem(r[0]);Reflect.apply(t,e,r),window.dispatchEvent(new fr(r[0],n))}});Storage.prototype.clear=new Proxy(Storage.prototype.clear,{apply(t,e,r){Reflect.apply(t,e,r),window.dispatchEvent(new fr(na))}});var sa={};$(sa,{FocusMainContentEvent:()=>aa});var aa=class extends Event{constructor(){super("ft-focus-main-content",{composed:!0,bubbles:!0})}};var Ml={};window.FluidTopicsA11yHints={isKeyboardNavigation:!1,lastPressedKey:""};function xf(t){(t.key==="Enter"||t.key===" "||t.key==="Tab")&&(window.FluidTopicsA11yHints.isKeyboardNavigation=!0),window.FluidTopicsA11yHints.lastPressedKey=t.key}function vf(t){window.FluidTopicsA11yHints.isKeyboardNavigation=t.detail==0}document.addEventListener("keydown",xf);document.addEventListener("click",vf);var Ul=_`
|
|
48
48
|
.sr-only {
|
|
49
49
|
position:absolute;
|
|
50
50
|
left:-10000px;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-topics/ft-search-breadcrumbs",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.6",
|
|
4
4
|
"description": "search breadcrumbs component",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Lit"
|
|
@@ -19,11 +19,11 @@
|
|
|
19
19
|
"url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@fluid-topics/ft-wc-utils": "2.1.
|
|
22
|
+
"@fluid-topics/ft-wc-utils": "2.1.6",
|
|
23
23
|
"lit": "3.1.0"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"@fluid-topics/ft-wc-test-utils": "2.1.
|
|
26
|
+
"@fluid-topics/ft-wc-test-utils": "2.1.6"
|
|
27
27
|
},
|
|
28
|
-
"gitHead": "
|
|
28
|
+
"gitHead": "70ba8e6b58f0f1c74a92965f3b7dbf3db605698e"
|
|
29
29
|
}
|