@fluid-topics/ft-combobox 2.2.15 → 2.2.16

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 Kc=Object.create;var ho=Object.defineProperty;var Gc=Object.getOwnPropertyDescriptor;var qc=Object.getOwnPropertyNames;var Yc=Object.getPrototypeOf,Xc=Object.prototype.hasOwnProperty;var Wt=(t,e)=>()=>{try{return e||t((e={exports:{}}).exports,e),e.exports}catch(i){throw e=0,i}};var Zc=(t,e,i,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of qc(e))!Xc.call(t,n)&&n!==i&&ho(t,n,{get:()=>e[n],enumerable:!(r=Gc(e,n))||r.enumerable});return t};var f=(t,e,i)=>(i=t!=null?Kc(Yc(t)):{},Zc(e||!t||!t.__esModule?ho(i,"default",{value:t,enumerable:!0}):i,t));var S=Wt((kd,mo)=>{mo.exports=ftGlobals.wcUtils});var z=Wt((Id,go)=>{go.exports=ftGlobals.lit});var re=Wt((Md,yo)=>{yo.exports=ftGlobals.litDecorators});var rn=Wt(($d,bo)=>{bo.exports=ftGlobals.litRepeat});var ot=Wt((Ud,xo)=>{xo.exports=ftGlobals.litClassMap});var xs=Wt((qp,bs)=>{bs.exports=ftGlobals.litUnsafeHTML});var zc=f(S());var Se=f(z()),B=f(re()),fo=f(rn()),tn=f(ot());var un=globalThis,vo=t=>t,ji=un.trustedTypes,So=ji?ji.createPolicy("lit-html",{createHTML:t=>t}):void 0,To="$lit$",st=`lit$${Math.random().toFixed(9).slice(2)}$`,Oo="?"+st,Jc=`<${Oo}>`,xt=document,Wi=()=>xt.createComment(""),fi=t=>t===null||typeof t!="object"&&typeof t!="function",dn=Array.isArray,Qc=t=>dn(t)||typeof t?.[Symbol.iterator]=="function",nn=`[
1
+ "use strict";(()=>{var Kc=Object.create;var ho=Object.defineProperty;var Gc=Object.getOwnPropertyDescriptor;var qc=Object.getOwnPropertyNames;var Yc=Object.getPrototypeOf,Xc=Object.prototype.hasOwnProperty;var Wt=(t,e)=>()=>{try{return e||t((e={exports:{}}).exports,e),e.exports}catch(i){throw e=0,i}};var Zc=(t,e,i,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of qc(e))!Xc.call(t,n)&&n!==i&&ho(t,n,{get:()=>e[n],enumerable:!(r=Gc(e,n))||r.enumerable});return t};var f=(t,e,i)=>(i=t!=null?Kc(Yc(t)):{},Zc(e||!t||!t.__esModule?ho(i,"default",{value:t,enumerable:!0}):i,t));var S=Wt((Nd,mo)=>{mo.exports=ftGlobals.wcUtils});var z=Wt((Id,go)=>{go.exports=ftGlobals.lit});var re=Wt((Md,yo)=>{yo.exports=ftGlobals.litDecorators});var rn=Wt(($d,bo)=>{bo.exports=ftGlobals.litRepeat});var ot=Wt((Ud,xo)=>{xo.exports=ftGlobals.litClassMap});var xs=Wt((qp,bs)=>{bs.exports=ftGlobals.litUnsafeHTML});var zc=f(S());var Se=f(z()),B=f(re()),fo=f(rn()),tn=f(ot());var un=globalThis,vo=t=>t,ji=un.trustedTypes,So=ji?ji.createPolicy("lit-html",{createHTML:t=>t}):void 0,To="$lit$",st=`lit$${Math.random().toFixed(9).slice(2)}$`,Oo="?"+st,Jc=`<${Oo}>`,xt=document,Wi=()=>xt.createComment(""),fi=t=>t===null||typeof t!="object"&&typeof t!="function",dn=Array.isArray,Qc=t=>dn(t)||typeof t?.[Symbol.iterator]=="function",nn=`[
2
2
  \f\r]`,pi=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Eo=/-->/g,Ao=/>/g,yt=RegExp(`>|${nn}(?:([^\\s"'>=/]+)(${nn}*=${nn}*(?:[^
3
- \f\r"'\`<>=]|("|')|))|$)`,"g"),_o=/'/g,Co=/"/g,Ro=/^(?:script|style|textarea|title)$/i,pn=t=>(e,...i)=>({_$litType$:t,strings:e,values:i}),Lo=pn(1),Po=pn(2),Do=pn(3),hi=Symbol.for("lit-noChange"),Q=Symbol.for("lit-nothing"),wo=new WeakMap,bt=xt.createTreeWalker(xt,129);function No(t,e){if(!dn(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return So!==void 0?So.createHTML(e):e}var eu=(t,e)=>{let i=t.length-1,r=[],n,o=e===2?"<svg>":e===3?"<math>":"",s=pi;for(let a=0;a<i;a++){let l=t[a],c,u,d=-1,p=0;for(;p<l.length&&(s.lastIndex=p,u=s.exec(l),u!==null);)p=s.lastIndex,s===pi?u[1]==="!--"?s=Eo:u[1]!==void 0?s=Ao:u[2]!==void 0?(Ro.test(u[2])&&(n=RegExp("</"+u[2],"g")),s=yt):u[3]!==void 0&&(s=yt):s===yt?u[0]===">"?(s=n??pi,d=-1):u[1]===void 0?d=-2:(d=s.lastIndex-u[2].length,c=u[1],s=u[3]===void 0?yt:u[3]==='"'?Co:_o):s===Co||s===_o?s=yt:s===Eo||s===Ao?s=pi:(s=yt,n=void 0);let g=s===yt&&t[a+1].startsWith("/>")?" ":"";o+=s===pi?l+Jc:d>=0?(r.push(c),l.slice(0,d)+To+l.slice(d)+st+g):l+st+(d===-2?a:g)}return[No(t,o+(t[i]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),r]},mi=class t{constructor({strings:e,_$litType$:i},r){let n;this.parts=[];let o=0,s=0,a=e.length-1,l=this.parts,[c,u]=eu(e,i);if(this.el=t.createElement(c,r),bt.currentNode=this.el.content,i===2||i===3){let d=this.el.content.firstChild;d.replaceWith(...d.childNodes)}for(;(n=bt.nextNode())!==null&&l.length<a;){if(n.nodeType===1){if(n.hasAttributes())for(let d of n.getAttributeNames())if(d.endsWith(To)){let p=u[s++],g=n.getAttribute(d).split(st),x=/([.?@])?(.*)/.exec(p);l.push({type:1,index:o,name:x[2],strings:g,ctor:x[1]==="."?sn:x[1]==="?"?an:x[1]==="@"?ln:Gt}),n.removeAttribute(d)}else d.startsWith(st)&&(l.push({type:6,index:o}),n.removeAttribute(d));if(Ro.test(n.tagName)){let d=n.textContent.split(st),p=d.length-1;if(p>0){n.textContent=ji?ji.emptyScript:"";for(let g=0;g<p;g++)n.append(d[g],Wi()),bt.nextNode(),l.push({type:2,index:++o});n.append(d[p],Wi())}}}else if(n.nodeType===8)if(n.data===Oo)l.push({type:2,index:o});else{let d=-1;for(;(d=n.data.indexOf(st,d+1))!==-1;)l.push({type:7,index:o}),d+=st.length-1}o++}}static createElement(e,i){let r=xt.createElement("template");return r.innerHTML=e,r}};function Kt(t,e,i=t,r){if(e===hi)return e;let n=r!==void 0?i._$Co?.[r]:i._$Cl,o=fi(e)?void 0:e._$litDirective$;return n?.constructor!==o&&(n?._$AO?.(!1),o===void 0?n=void 0:(n=new o(t),n._$AT(t,i,r)),r!==void 0?(i._$Co??=[])[r]=n:i._$Cl=n),n!==void 0&&(e=Kt(t,n._$AS(t,e.values),n,r)),e}var on=class{constructor(e,i){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:i},parts:r}=this._$AD,n=(e?.creationScope??xt).importNode(i,!0);bt.currentNode=n;let o=bt.nextNode(),s=0,a=0,l=r[0];for(;l!==void 0;){if(s===l.index){let c;l.type===2?c=new Ki(o,o.nextSibling,this,e):l.type===1?c=new l.ctor(o,l.name,l.strings,this,e):l.type===6&&(c=new cn(o,this,e)),this._$AV.push(c),l=r[++a]}s!==l?.index&&(o=bt.nextNode(),s++)}return bt.currentNode=xt,n}p(e){let i=0;for(let r of this._$AV)r!==void 0&&(r.strings!==void 0?(r._$AI(e,r,i),i+=r.strings.length-2):r._$AI(e[i])),i++}},Ki=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,i,r,n){this.type=2,this._$AH=Q,this._$AN=void 0,this._$AA=e,this._$AB=i,this._$AM=r,this.options=n,this._$Cv=n?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,i=this._$AM;return i!==void 0&&e?.nodeType===11&&(e=i.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,i=this){e=Kt(this,e,i),fi(e)?e===Q||e==null||e===""?(this._$AH!==Q&&this._$AR(),this._$AH=Q):e!==this._$AH&&e!==hi&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):Qc(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==Q&&fi(this._$AH)?this._$AA.nextSibling.data=e:this.T(xt.createTextNode(e)),this._$AH=e}$(e){let{values:i,_$litType$:r}=e,n=typeof r=="number"?this._$AC(e):(r.el===void 0&&(r.el=mi.createElement(No(r.h,r.h[0]),this.options)),r);if(this._$AH?._$AD===n)this._$AH.p(i);else{let o=new on(n,this),s=o.u(this.options);o.p(i),this.T(s),this._$AH=o}}_$AC(e){let i=wo.get(e.strings);return i===void 0&&wo.set(e.strings,i=new mi(e)),i}k(e){dn(this._$AH)||(this._$AH=[],this._$AR());let i=this._$AH,r,n=0;for(let o of e)n===i.length?i.push(r=new t(this.O(Wi()),this.O(Wi()),this,this.options)):r=i[n],r._$AI(o),n++;n<i.length&&(this._$AR(r&&r._$AB.nextSibling,n),i.length=n)}_$AR(e=this._$AA.nextSibling,i){for(this._$AP?.(!1,!0,i);e!==this._$AB;){let r=vo(e).nextSibling;vo(e).remove(),e=r}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},Gt=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,i,r,n,o){this.type=1,this._$AH=Q,this._$AN=void 0,this.element=e,this.name=i,this._$AM=n,this.options=o,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=Q}_$AI(e,i=this,r,n){let o=this.strings,s=!1;if(o===void 0)e=Kt(this,e,i,0),s=!fi(e)||e!==this._$AH&&e!==hi,s&&(this._$AH=e);else{let a=e,l,c;for(e=o[0],l=0;l<o.length-1;l++)c=Kt(this,a[r+l],i,l),c===hi&&(c=this._$AH[l]),s||=!fi(c)||c!==this._$AH[l],c===Q?e=Q:e!==Q&&(e+=(c??"")+o[l+1]),this._$AH[l]=c}s&&!n&&this.j(e)}j(e){e===Q?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},sn=class extends Gt{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===Q?void 0:e}},an=class extends Gt{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==Q)}},ln=class extends Gt{constructor(e,i,r,n,o){super(e,i,r,n,o),this.type=5}_$AI(e,i=this){if((e=Kt(this,e,i,0)??Q)===hi)return;let r=this._$AH,n=e===Q&&r!==Q||e.capture!==r.capture||e.once!==r.once||e.passive!==r.passive,o=e!==Q&&(r===Q||n);n&&this.element.removeEventListener(this.name,this,r),o&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},cn=class{constructor(e,i,r){this.element=e,this.type=6,this._$AN=void 0,this._$AM=i,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(e){Kt(this,e)}};var tu=un.litHtmlPolyfillSupport;tu?.(mi,Ki),(un.litHtmlVersions??=[]).push("3.3.3");var pe=t=>t??Q;function gi(t,e,i){return t?e(t):i?.(t)}var Pe=f(S());var Dc=f(z()),he=f(S());var jo=f(z()),W=f(S());var Ne=f(z()),h=f(S()),ko=h.FtCssVariableFactory.extend("--ft-typography-font-family","",h.designSystemVariables.titleFont),Je=h.FtCssVariableFactory.extend("--ft-typography-font-family","",h.designSystemVariables.contentFont),y={fontFamily:Je,fontSize:h.FtCssVariableFactory.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:h.FtCssVariableFactory.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:h.FtCssVariableFactory.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:h.FtCssVariableFactory.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:h.FtCssVariableFactory.create("--ft-typography-text-transform","","UNKNOWN","inherit"),textDecoration:h.FtCssVariableFactory.create("--ft-typography-text-decoration","","UNKNOWN","inherit")},vt={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-title-font-family","",ko),fontSize:h.FtCssVariableFactory.extend("--ft-typography-title-font-size","",y.fontSize,"20px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",y.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",y.letterSpacing,"0.15px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-title-line-height","",y.lineHeight,"1.2"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",y.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-title-text-decoration","",y.textDecoration,"inherit")},St={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",ko),fontSize:h.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",y.fontSize,"14px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",y.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",y.letterSpacing,"0.105px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",y.lineHeight,"1.7"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",y.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-title-dense-text-decoration","",y.textDecoration,"inherit")},Et={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",Je),fontSize:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",y.fontSize,"16px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",y.fontWeight,"600"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",y.letterSpacing,"0.144px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",y.lineHeight,"1.5"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",y.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-decoration","",y.textDecoration,"inherit")},At={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",Je),fontSize:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",y.fontSize,"14px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",y.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",y.letterSpacing,"0.098px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",y.lineHeight,"1.7"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",y.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-decoration","",y.textDecoration,"inherit")},We={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",Je),fontSize:h.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",y.fontSize,"16px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",y.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",y.letterSpacing,"0.496px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",y.lineHeight,"1.5"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",y.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-body1-text-decoration","",y.textDecoration,"inherit")},we={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",Je),fontSize:h.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",y.fontSize,"14px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",y.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",y.letterSpacing,"0.252px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",y.lineHeight,"1.4"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",y.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-body2-text-decoration","",y.textDecoration,"inherit")},Ee={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",Je),fontSize:h.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",y.fontSize,"12px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",y.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",y.letterSpacing,"0.396px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",y.lineHeight,"1.33"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",y.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-caption-text-decoration","",y.textDecoration,"inherit")},_t={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",Je),fontSize:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",y.fontSize,"10px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",y.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",y.letterSpacing,"0.33px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",y.lineHeight,"1.6"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",y.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-decoration","",y.textDecoration,"inherit")},Ct={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",Je),fontSize:h.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",y.fontSize,"10px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",y.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",y.letterSpacing,"1.5px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",y.lineHeight,"1.6"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",y.textTransform,"uppercase"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-overline-text-decoration","",y.textDecoration,"inherit")},Ve={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-button-font-family","",Je),fontSize:h.FtCssVariableFactory.extend("--ft-typography-button-font-size","",y.fontSize,"14px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",y.fontWeight,"600"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",y.letterSpacing,"1.246px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-button-line-height","",y.lineHeight,"1.15"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",y.textTransform,"uppercase"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-button-text-decoration","",y.textDecoration,"inherit")},Io=Ne.css`
3
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),_o=/'/g,Co=/"/g,Ro=/^(?:script|style|textarea|title)$/i,pn=t=>(e,...i)=>({_$litType$:t,strings:e,values:i}),Lo=pn(1),Po=pn(2),ko=pn(3),hi=Symbol.for("lit-noChange"),Q=Symbol.for("lit-nothing"),wo=new WeakMap,bt=xt.createTreeWalker(xt,129);function Do(t,e){if(!dn(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return So!==void 0?So.createHTML(e):e}var eu=(t,e)=>{let i=t.length-1,r=[],n,o=e===2?"<svg>":e===3?"<math>":"",s=pi;for(let a=0;a<i;a++){let l=t[a],c,u,d=-1,p=0;for(;p<l.length&&(s.lastIndex=p,u=s.exec(l),u!==null);)p=s.lastIndex,s===pi?u[1]==="!--"?s=Eo:u[1]!==void 0?s=Ao:u[2]!==void 0?(Ro.test(u[2])&&(n=RegExp("</"+u[2],"g")),s=yt):u[3]!==void 0&&(s=yt):s===yt?u[0]===">"?(s=n??pi,d=-1):u[1]===void 0?d=-2:(d=s.lastIndex-u[2].length,c=u[1],s=u[3]===void 0?yt:u[3]==='"'?Co:_o):s===Co||s===_o?s=yt:s===Eo||s===Ao?s=pi:(s=yt,n=void 0);let g=s===yt&&t[a+1].startsWith("/>")?" ":"";o+=s===pi?l+Jc:d>=0?(r.push(c),l.slice(0,d)+To+l.slice(d)+st+g):l+st+(d===-2?a:g)}return[Do(t,o+(t[i]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),r]},mi=class t{constructor({strings:e,_$litType$:i},r){let n;this.parts=[];let o=0,s=0,a=e.length-1,l=this.parts,[c,u]=eu(e,i);if(this.el=t.createElement(c,r),bt.currentNode=this.el.content,i===2||i===3){let d=this.el.content.firstChild;d.replaceWith(...d.childNodes)}for(;(n=bt.nextNode())!==null&&l.length<a;){if(n.nodeType===1){if(n.hasAttributes())for(let d of n.getAttributeNames())if(d.endsWith(To)){let p=u[s++],g=n.getAttribute(d).split(st),x=/([.?@])?(.*)/.exec(p);l.push({type:1,index:o,name:x[2],strings:g,ctor:x[1]==="."?sn:x[1]==="?"?an:x[1]==="@"?ln:Gt}),n.removeAttribute(d)}else d.startsWith(st)&&(l.push({type:6,index:o}),n.removeAttribute(d));if(Ro.test(n.tagName)){let d=n.textContent.split(st),p=d.length-1;if(p>0){n.textContent=ji?ji.emptyScript:"";for(let g=0;g<p;g++)n.append(d[g],Wi()),bt.nextNode(),l.push({type:2,index:++o});n.append(d[p],Wi())}}}else if(n.nodeType===8)if(n.data===Oo)l.push({type:2,index:o});else{let d=-1;for(;(d=n.data.indexOf(st,d+1))!==-1;)l.push({type:7,index:o}),d+=st.length-1}o++}}static createElement(e,i){let r=xt.createElement("template");return r.innerHTML=e,r}};function Kt(t,e,i=t,r){if(e===hi)return e;let n=r!==void 0?i._$Co?.[r]:i._$Cl,o=fi(e)?void 0:e._$litDirective$;return n?.constructor!==o&&(n?._$AO?.(!1),o===void 0?n=void 0:(n=new o(t),n._$AT(t,i,r)),r!==void 0?(i._$Co??=[])[r]=n:i._$Cl=n),n!==void 0&&(e=Kt(t,n._$AS(t,e.values),n,r)),e}var on=class{constructor(e,i){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:i},parts:r}=this._$AD,n=(e?.creationScope??xt).importNode(i,!0);bt.currentNode=n;let o=bt.nextNode(),s=0,a=0,l=r[0];for(;l!==void 0;){if(s===l.index){let c;l.type===2?c=new Ki(o,o.nextSibling,this,e):l.type===1?c=new l.ctor(o,l.name,l.strings,this,e):l.type===6&&(c=new cn(o,this,e)),this._$AV.push(c),l=r[++a]}s!==l?.index&&(o=bt.nextNode(),s++)}return bt.currentNode=xt,n}p(e){let i=0;for(let r of this._$AV)r!==void 0&&(r.strings!==void 0?(r._$AI(e,r,i),i+=r.strings.length-2):r._$AI(e[i])),i++}},Ki=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,i,r,n){this.type=2,this._$AH=Q,this._$AN=void 0,this._$AA=e,this._$AB=i,this._$AM=r,this.options=n,this._$Cv=n?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,i=this._$AM;return i!==void 0&&e?.nodeType===11&&(e=i.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,i=this){e=Kt(this,e,i),fi(e)?e===Q||e==null||e===""?(this._$AH!==Q&&this._$AR(),this._$AH=Q):e!==this._$AH&&e!==hi&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):Qc(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==Q&&fi(this._$AH)?this._$AA.nextSibling.data=e:this.T(xt.createTextNode(e)),this._$AH=e}$(e){let{values:i,_$litType$:r}=e,n=typeof r=="number"?this._$AC(e):(r.el===void 0&&(r.el=mi.createElement(Do(r.h,r.h[0]),this.options)),r);if(this._$AH?._$AD===n)this._$AH.p(i);else{let o=new on(n,this),s=o.u(this.options);o.p(i),this.T(s),this._$AH=o}}_$AC(e){let i=wo.get(e.strings);return i===void 0&&wo.set(e.strings,i=new mi(e)),i}k(e){dn(this._$AH)||(this._$AH=[],this._$AR());let i=this._$AH,r,n=0;for(let o of e)n===i.length?i.push(r=new t(this.O(Wi()),this.O(Wi()),this,this.options)):r=i[n],r._$AI(o),n++;n<i.length&&(this._$AR(r&&r._$AB.nextSibling,n),i.length=n)}_$AR(e=this._$AA.nextSibling,i){for(this._$AP?.(!1,!0,i);e!==this._$AB;){let r=vo(e).nextSibling;vo(e).remove(),e=r}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},Gt=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,i,r,n,o){this.type=1,this._$AH=Q,this._$AN=void 0,this.element=e,this.name=i,this._$AM=n,this.options=o,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=Q}_$AI(e,i=this,r,n){let o=this.strings,s=!1;if(o===void 0)e=Kt(this,e,i,0),s=!fi(e)||e!==this._$AH&&e!==hi,s&&(this._$AH=e);else{let a=e,l,c;for(e=o[0],l=0;l<o.length-1;l++)c=Kt(this,a[r+l],i,l),c===hi&&(c=this._$AH[l]),s||=!fi(c)||c!==this._$AH[l],c===Q?e=Q:e!==Q&&(e+=(c??"")+o[l+1]),this._$AH[l]=c}s&&!n&&this.j(e)}j(e){e===Q?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},sn=class extends Gt{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===Q?void 0:e}},an=class extends Gt{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==Q)}},ln=class extends Gt{constructor(e,i,r,n,o){super(e,i,r,n,o),this.type=5}_$AI(e,i=this){if((e=Kt(this,e,i,0)??Q)===hi)return;let r=this._$AH,n=e===Q&&r!==Q||e.capture!==r.capture||e.once!==r.once||e.passive!==r.passive,o=e!==Q&&(r===Q||n);n&&this.element.removeEventListener(this.name,this,r),o&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},cn=class{constructor(e,i,r){this.element=e,this.type=6,this._$AN=void 0,this._$AM=i,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(e){Kt(this,e)}};var tu=un.litHtmlPolyfillSupport;tu?.(mi,Ki),(un.litHtmlVersions??=[]).push("3.3.3");var pe=t=>t??Q;function gi(t,e,i){return t?e(t):i?.(t)}var Pe=f(S());var kc=f(z()),he=f(S());var jo=f(z()),W=f(S());var De=f(z()),h=f(S()),No=h.FtCssVariableFactory.extend("--ft-typography-font-family","",h.designSystemVariables.titleFont),Je=h.FtCssVariableFactory.extend("--ft-typography-font-family","",h.designSystemVariables.contentFont),y={fontFamily:Je,fontSize:h.FtCssVariableFactory.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:h.FtCssVariableFactory.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:h.FtCssVariableFactory.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:h.FtCssVariableFactory.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:h.FtCssVariableFactory.create("--ft-typography-text-transform","","UNKNOWN","inherit"),textDecoration:h.FtCssVariableFactory.create("--ft-typography-text-decoration","","UNKNOWN","inherit")},vt={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-title-font-family","",No),fontSize:h.FtCssVariableFactory.extend("--ft-typography-title-font-size","",y.fontSize,"20px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",y.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",y.letterSpacing,"0.15px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-title-line-height","",y.lineHeight,"1.2"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",y.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-title-text-decoration","",y.textDecoration,"inherit")},St={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",No),fontSize:h.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",y.fontSize,"14px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",y.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",y.letterSpacing,"0.105px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",y.lineHeight,"1.7"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",y.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-title-dense-text-decoration","",y.textDecoration,"inherit")},Et={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",Je),fontSize:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",y.fontSize,"16px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",y.fontWeight,"600"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",y.letterSpacing,"0.144px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",y.lineHeight,"1.5"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",y.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-decoration","",y.textDecoration,"inherit")},At={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",Je),fontSize:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",y.fontSize,"14px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",y.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",y.letterSpacing,"0.098px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",y.lineHeight,"1.7"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",y.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-decoration","",y.textDecoration,"inherit")},We={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",Je),fontSize:h.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",y.fontSize,"16px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",y.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",y.letterSpacing,"0.496px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",y.lineHeight,"1.5"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",y.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-body1-text-decoration","",y.textDecoration,"inherit")},we={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",Je),fontSize:h.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",y.fontSize,"14px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",y.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",y.letterSpacing,"0.252px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",y.lineHeight,"1.4"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",y.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-body2-text-decoration","",y.textDecoration,"inherit")},Ee={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",Je),fontSize:h.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",y.fontSize,"12px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",y.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",y.letterSpacing,"0.396px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",y.lineHeight,"1.33"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",y.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-caption-text-decoration","",y.textDecoration,"inherit")},_t={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",Je),fontSize:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",y.fontSize,"10px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",y.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",y.letterSpacing,"0.33px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",y.lineHeight,"1.6"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",y.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-decoration","",y.textDecoration,"inherit")},Ct={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",Je),fontSize:h.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",y.fontSize,"10px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",y.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",y.letterSpacing,"1.5px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",y.lineHeight,"1.6"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",y.textTransform,"uppercase"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-overline-text-decoration","",y.textDecoration,"inherit")},Ve={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-button-font-family","",Je),fontSize:h.FtCssVariableFactory.extend("--ft-typography-button-font-size","",y.fontSize,"14px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",y.fontWeight,"600"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",y.letterSpacing,"1.246px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-button-line-height","",y.lineHeight,"1.15"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",y.textTransform,"uppercase"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-button-text-decoration","",y.textDecoration,"inherit")},Io=De.css`
4
4
  .ft-typography--title {
5
5
  font-family: ${vt.fontFamily};
6
6
  font-size: ${vt.fontSize};
@@ -10,7 +10,7 @@
10
10
  text-transform: ${vt.textTransform};
11
11
  text-decoration: ${vt.textDecoration};
12
12
  }
13
- `,Mo=Ne.css`
13
+ `,Mo=De.css`
14
14
  .ft-typography--title-dense {
15
15
  font-family: ${St.fontFamily};
16
16
  font-size: ${St.fontSize};
@@ -20,7 +20,7 @@
20
20
  text-transform: ${St.textTransform};
21
21
  text-decoration: ${St.textDecoration};
22
22
  }
23
- `,$o=Ne.css`
23
+ `,$o=De.css`
24
24
  .ft-typography--subtitle1 {
25
25
  font-family: ${Et.fontFamily};
26
26
  font-size: ${Et.fontSize};
@@ -30,7 +30,7 @@
30
30
  text-transform: ${Et.textTransform};
31
31
  text-decoration: ${Et.textDecoration};
32
32
  }
33
- `,Uo=Ne.css`
33
+ `,Uo=De.css`
34
34
  .ft-typography--subtitle2 {
35
35
  font-family: ${At.fontFamily};
36
36
  font-size: ${At.fontSize};
@@ -41,7 +41,7 @@
41
41
  text-decoration: ${At.textDecoration};
42
42
  }
43
43
 
44
- `,qt=Ne.css`
44
+ `,qt=De.css`
45
45
  .ft-typography--body1 {
46
46
  font-family: ${We.fontFamily};
47
47
  font-size: ${We.fontSize};
@@ -51,7 +51,7 @@
51
51
  text-transform: ${We.textTransform};
52
52
  text-decoration: ${We.textDecoration};
53
53
  }
54
- `,Vo=Ne.css`
54
+ `,Vo=De.css`
55
55
  .ft-typography--body2 {
56
56
  font-family: ${we.fontFamily};
57
57
  font-size: ${we.fontSize};
@@ -61,7 +61,7 @@
61
61
  text-transform: ${we.textTransform};
62
62
  text-decoration: ${we.textDecoration};
63
63
  }
64
- `,Gi=Ne.css`
64
+ `,Gi=De.css`
65
65
  .ft-typography--caption {
66
66
  font-family: ${Ee.fontFamily};
67
67
  font-size: ${Ee.fontSize};
@@ -71,7 +71,7 @@
71
71
  text-transform: ${Ee.textTransform};
72
72
  text-decoration: ${Ee.textDecoration};
73
73
  }
74
- `,Fo=Ne.css`
74
+ `,Fo=De.css`
75
75
  .ft-typography--breadcrumb {
76
76
  font-family: ${_t.fontFamily};
77
77
  font-size: ${_t.fontSize};
@@ -81,7 +81,7 @@
81
81
  text-transform: ${_t.textTransform};
82
82
  text-decoration: ${_t.textDecoration};
83
83
  }
84
- `,Bo=Ne.css`
84
+ `,Bo=De.css`
85
85
  .ft-typography--overline {
86
86
  font-family: ${Ct.fontFamily};
87
87
  font-size: ${Ct.fontSize};
@@ -91,7 +91,7 @@
91
91
  text-transform: ${Ct.textTransform};
92
92
  text-decoration: ${Ct.textDecoration};
93
93
  }
94
- `,Ho=Ne.css`
94
+ `,Ho=De.css`
95
95
  .ft-typography--button {
96
96
  font-family: ${Ve.fontFamily};
97
97
  font-size: ${Ve.fontSize};
@@ -101,7 +101,7 @@
101
101
  text-transform: ${Ve.textTransform};
102
102
  text-decoration: ${Ve.textDecoration};
103
103
  }
104
- `,zo=Ne.css`
104
+ `,zo=De.css`
105
105
  .ft-typography {
106
106
  vertical-align: inherit;
107
107
  }
@@ -518,7 +518,7 @@
518
518
  .ft-text-field--with-password ft-icon:hover {
519
519
  cursor: pointer;
520
520
  }
521
- `;var ie=f(z()),N=f(re()),Oc=f(rn()),Rc=f(ot());var xe=f(S());var ns=Symbol.for(""),iu=t=>{if(t?.r===ns)return t?._$litStatic$},fn=t=>({_$litStatic$:t,r:ns});var rs=new Map,hn=t=>(e,...i)=>{let r=i.length,n,o,s=[],a=[],l,c=0,u=!1;for(;c<r;){for(l=e[c];c<r&&(o=i[c],(n=iu(o))!==void 0);)l+=n+e[++c],u=!0;c!==r&&a.push(o),s.push(l),c++}if(c===r&&s.push(e[r]),u){let d=s.join("$$lit$$");(e=rs.get(d))===void 0&&(s.raw=s,rs.set(d,e=s)),i=a}return t(e,...i)},mn=hn(Lo),op=hn(Po),sp=hn(Do);var gn=f(re()),ss=f(S());var me;(function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button"})(me||(me={}));var os=function(t,e,i,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,i):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,i,o):s(e,i))||o);return n>3&&o&&Object.defineProperty(e,i,o),o},ne=class extends ss.FtLitElement{constructor(){super(...arguments),this.variant=me.body1}render(){return this.element?mn`
521
+ `;var ie=f(z()),D=f(re()),Oc=f(rn()),Rc=f(ot());var xe=f(S());var ns=Symbol.for(""),iu=t=>{if(t?.r===ns)return t?._$litStatic$},fn=t=>({_$litStatic$:t,r:ns});var rs=new Map,hn=t=>(e,...i)=>{let r=i.length,n,o,s=[],a=[],l,c=0,u=!1;for(;c<r;){for(l=e[c];c<r&&(o=i[c],(n=iu(o))!==void 0);)l+=n+e[++c],u=!0;c!==r&&a.push(o),s.push(l),c++}if(c===r&&s.push(e[r]),u){let d=s.join("$$lit$$");(e=rs.get(d))===void 0&&(s.raw=s,rs.set(d,e=s)),i=a}return t(e,...i)},mn=hn(Lo),op=hn(Po),sp=hn(ko);var gn=f(re()),ss=f(S());var me;(function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button"})(me||(me={}));var os=function(t,e,i,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,i):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,i,o):s(e,i))||o);return n>3&&o&&Object.defineProperty(e,i,o),o},ne=class extends ss.FtLitElement{constructor(){super(...arguments),this.variant=me.body1}render(){return this.element?mn`
522
522
  <${fn(this.element)}
523
523
  part="text"
524
524
  class="ft-typography ft-typography--${this.variant}">
@@ -628,10 +628,10 @@
628
628
  position: relative;
629
629
  word-break: break-word;
630
630
  }
631
- `;var Rs=["top","right","bottom","left"],Os=["start","end"],Sn=Rs.reduce((t,e)=>t.concat(e,e+"-"+Os[0],e+"-"+Os[1]),[]),Si=Math.min,ut=Math.max,Ei=Math.round;var Ke=t=>({x:t,y:t}),ru={left:"right",right:"left",bottom:"top",top:"bottom"};function Ls(t,e,i){return ut(t,Si(e,i))}function Ji(t,e){return typeof t=="function"?t(e):t}function Ai(t){return t.split("-")[0]}function dt(t){return t.split("-")[1]}function En(t){return t==="x"?"y":"x"}function An(t){return t==="y"?"height":"width"}function Qi(t){let e=t[0];return e==="t"||e==="b"?"y":"x"}function _n(t){return En(Qi(t))}function Ps(t,e,i){i===void 0&&(i=!1);let r=dt(t),n=_n(t),o=An(n),s=n==="x"?r===(i?"end":"start")?"right":"left":r==="start"?"bottom":"top";return e.reference[o]>e.floating[o]&&(s=vn(s)),[s,vn(s)]}function Ds(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}function vn(t){let e=Ai(t);return ru[e]+t.slice(e.length)}function nu(t){var e,i,r,n;return{top:(e=t.top)!=null?e:0,right:(i=t.right)!=null?i:0,bottom:(r=t.bottom)!=null?r:0,left:(n=t.left)!=null?n:0}}function Ns(t){return typeof t!="number"?nu(t):{top:t,right:t,bottom:t,left:t}}function Tt(t){let{x:e,y:i,width:r,height:n}=t;return{width:r,height:n,top:i,left:e,right:e+r,bottom:i+n,x:e,y:i}}function ks(t,e,i){let{reference:r,floating:n}=t,o=Qi(e),s=_n(e),a=An(s),l=Ai(e),c=o==="y",u=r.x+r.width/2-n.width/2,d=r.y+r.height/2-n.height/2,p=r[a]/2-n[a]/2,g;switch(l){case"top":g={x:u,y:r.y-n.height};break;case"bottom":g={x:u,y:r.y+r.height};break;case"right":g={x:r.x+r.width,y:d};break;case"left":g={x:r.x-n.width,y:d};break;default:g={x:r.x,y:r.y}}let x=dt(e);return x&&(g[s]+=p*(x==="end"?1:-1)*(i&&c?-1:1)),g}async function Is(t,e){var i;e===void 0&&(e={});let{x:r,y:n,platform:o,rects:s,elements:a,strategy:l}=t,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:p=!1,padding:g=0}=Ji(e,t),x=Ns(g),b=a[p?d==="floating"?"reference":"floating":d],T=Tt(await o.getClippingRect({element:(i=await(o.isElement==null?void 0:o.isElement(b)))==null||i?b:b.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,strategy:l})),V=d==="floating"?{x:r,y:n,width:s.floating.width,height:s.floating.height}:s.reference,v=await(o.getOffsetParent==null?void 0:o.getOffsetParent(a.floating)),L=await(o.isElement==null?void 0:o.isElement(v))&&await(o.getScale==null?void 0:o.getScale(v))||{x:1,y:1},M=Tt(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:V,offsetParent:v,strategy:l}):V);return{top:(T.top-M.top+x.top)/L.y,bottom:(M.bottom-T.bottom+x.bottom)/L.y,left:(T.left-M.left+x.left)/L.x,right:(M.right-T.right+x.right)/L.x}}var ou=50,Ms=async(t,e,i)=>{let{placement:r="bottom",strategy:n="absolute",middleware:o=[],platform:s}=i,a=s.detectOverflow?s:{...s,detectOverflow:Is},l=await(s.isRTL==null?void 0:s.isRTL(e)),c=await s.getElementRects({reference:t,floating:e,strategy:n}),{x:u,y:d}=ks(c,r,l),p=r,g=0,x={};for(let A=0;A<o.length;A++){let b=o[A];if(!b)continue;let{name:T,fn:V}=b,{x:v,y:L,data:M,reset:X}=await V({x:u,y:d,initialPlacement:r,placement:p,strategy:n,middlewareData:x,rects:c,platform:a,elements:{reference:t,floating:e}});u=v??u,d=L??d,x[T]={...x[T],...M},X&&g<ou&&(g++,typeof X=="object"&&(X.placement&&(p=X.placement),X.rects&&(c=X.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:n}):X.rects),{x:u,y:d}=ks(c,p,l)),A=-1)}return{x:u,y:d,placement:p,strategy:n,middlewareData:x}};function su(t,e,i){return(t?[...i.filter(n=>dt(n)===t),...i.filter(n=>dt(n)!==t)]:i.filter(n=>Ai(n)===n)).filter(n=>t?dt(n)===t||(e?Ds(n)!==n:!1):!0)}var $s=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(e){var i,r,n;let{rects:o,middlewareData:s,placement:a,platform:l,elements:c}=e,{crossAxis:u=!1,alignment:d,allowedPlacements:p=Sn,autoAlignment:g=!0,...x}=Ji(t,e),A=d!==void 0||p===Sn?su(d||null,g,p):p,b=((i=s.autoPlacement)==null?void 0:i.index)||0,T=A[b];if(T==null)return{};if(a!==T)return{reset:{placement:A[0]}};let V=await l.detectOverflow(e,x),v=Ps(T,o,await(l.isRTL==null?void 0:l.isRTL(c.floating))),L=[V[Ai(T)],V[v[0]],V[v[1]]],M=[...((r=s.autoPlacement)==null?void 0:r.overflows)||[],{placement:T,overflows:L}],X=A[b+1];if(X)return{data:{index:b+1,overflows:M},reset:{placement:X}};let j=M.map(De=>{let gt=dt(De.placement);return[De.placement,gt&&u?De.overflows.slice(0,2).reduce((jc,Wc)=>jc+Wc,0):De.overflows[0],De.overflows]}).sort((De,gt)=>De[1]-gt[1]),di=((n=j.filter(De=>De[2].slice(0,dt(De[0])?2:3).every(gt=>gt<=0))[0])==null?void 0:n[0])||j[0][0];return di!==a?{data:{index:b+1,overflows:M},reset:{placement:di}}:{}}}};var Us=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){let{x:i,y:r,placement:n,platform:o}=e,{mainAxis:s=!0,crossAxis:a=!1,limiter:l={fn:V=>{let{x:v,y:L}=V;return{x:v,y:L}}},...c}=Ji(t,e),u={x:i,y:r},d=await o.detectOverflow(e,c),p=Qi(n),g=En(p),x=u[g],A=u[p],b=(V,v)=>Ls(v+d[V==="y"?"top":"left"],v,v-d[V==="y"?"bottom":"right"]);s&&(x=b(g,x)),a&&(A=b(p,A));let T=l.fn({...e,[g]:x,[p]:A});return{...T,data:{x:T.x-i,y:T.y-r,enabled:{[g]:s,[p]:a}}}}}};function tr(){return typeof window<"u"}function Rt(t){return Fs(t)?(t.nodeName||"").toLowerCase():"#document"}function _e(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function et(t){var e;return(e=(Fs(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Fs(t){return tr()?t instanceof Node||t instanceof _e(t).Node:!1}function Be(t){return tr()?t instanceof Element||t instanceof _e(t).Element:!1}function tt(t){return tr()?t instanceof HTMLElement||t instanceof _e(t).HTMLElement:!1}function Vs(t){return!tr()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof _e(t).ShadowRoot}function _i(t){let{overflow:e,overflowX:i,overflowY:r,display:n}=He(t);return/auto|scroll|overlay|hidden|clip/.test(e+r+i)&&n!=="inline"&&n!=="contents"}function Bs(t){return/^(table|td|th)$/.test(Rt(t))}function Ci(t){try{if(t.matches(":popover-open"))return!0}catch{}try{return t.matches(":modal")}catch{return!1}}var au=/transform|translate|scale|rotate|perspective|filter/,lu=/paint|layout|strict|content/,Ot=t=>!!t&&t!=="none",Cn;function Yt(t){let e=Be(t)?He(t):t;return Ot(e.transform)||Ot(e.translate)||Ot(e.scale)||Ot(e.rotate)||Ot(e.perspective)||!ir()&&(Ot(e.backdropFilter)||Ot(e.filter))||au.test(e.willChange||"")||lu.test(e.contain||"")}function Hs(t){let e=pt(t);for(;tt(e)&&!Xt(e);){if(Yt(e))return e;if(Ci(e))return null;e=pt(e)}return null}function ir(){return Cn==null&&(Cn=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Cn}function Xt(t){return/^(html|body|#document)$/.test(Rt(t))}function He(t){return _e(t).getComputedStyle(t)}function wi(t){return Be(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function pt(t){if(Rt(t)==="html")return t;let e=t.assignedSlot||t.parentNode||Vs(t)&&t.host||et(t);return Vs(e)?e.host:e}function zs(t){let e=pt(t);return Xt(e)?(t.ownerDocument||t).body:tt(e)&&_i(e)?e:zs(e)}function er(t,e,i){var r;e===void 0&&(e=[]),i===void 0&&(i=!0);let n=zs(t),o=n===((r=t.ownerDocument)==null?void 0:r.body),s=_e(n);if(o){let a=rr(s);return e.concat(s,s.visualViewport||[],_i(n)?n:[],a&&i?er(a):[])}else return e.concat(n,er(n,[],i))}function rr(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function Ks(t){let e=He(t),i=parseFloat(e.width)||0,r=parseFloat(e.height)||0,n=tt(t),o=n?t.offsetWidth:i,s=n?t.offsetHeight:r,a=Ei(i)!==o||Ei(r)!==s;return a&&(i=o,r=s),{width:i,height:r,$:a}}function Gs(t){return Be(t)?t:t.contextElement}function Zt(t){let e=Gs(t);if(!tt(e))return Ke(1);let i=e.getBoundingClientRect(),{width:r,height:n,$:o}=Ks(e),s=(o?Ei(i.width):i.width)/r,a=(o?Ei(i.height):i.height)/n;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}var cu=Ke(0);function qs(t){let e=_e(t);return!ir()||!e.visualViewport?cu:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function uu(t,e,i){return e===void 0&&(e=!1),!!i&&e&&i===_e(t)}function Ti(t,e,i,r){e===void 0&&(e=!1),i===void 0&&(i=!1);let n=t.getBoundingClientRect(),o=Gs(t),s=Ke(1);e&&(r?Be(r)&&(s=Zt(r)):s=Zt(t));let a=uu(o,i,r)?qs(o):Ke(0),l=(n.left+a.x)/s.x,c=(n.top+a.y)/s.y,u=n.width/s.x,d=n.height/s.y;if(o&&r){let p=_e(o),g=Be(r)?_e(r):r,x=p,A=rr(x);for(;A&&g!==x;){let b=Zt(A),T=A.getBoundingClientRect(),V=He(A),v=T.left+(A.clientLeft+parseFloat(V.paddingLeft))*b.x,L=T.top+(A.clientTop+parseFloat(V.paddingTop))*b.y;l*=b.x,c*=b.y,u*=b.x,d*=b.y,l+=v,c+=L,x=_e(A),A=rr(x)}}return Tt({width:u,height:d,x:l,y:c})}function nr(t,e){let i=wi(t).scrollLeft;return e?e.left+i:Ti(et(t)).left+i}function Ys(t,e){let i=t.getBoundingClientRect(),r=i.left+e.scrollLeft-nr(t,i),n=i.top+e.scrollTop;return{x:r,y:n}}function du(t){let{elements:e,rect:i,offsetParent:r,strategy:n}=t,o=n==="fixed",s=et(r),a=e?Ci(e.floating):!1;if(r===s||a&&o)return i;let l={scrollLeft:0,scrollTop:0},c=Ke(1),u=Ke(0),d=tt(r);if((d||!o)&&((Rt(r)!=="body"||_i(s))&&(l=wi(r)),d)){let g=Ti(r);c=Zt(r),u.x=g.x+r.clientLeft,u.y=g.y+r.clientTop}let p=s&&!d&&!o?Ys(s,l):Ke(0);return{width:i.width*c.x,height:i.height*c.y,x:i.x*c.x-l.scrollLeft*c.x+u.x+p.x,y:i.y*c.y-l.scrollTop*c.y+u.y+p.y}}function pu(t){return t.getClientRects?Array.from(t.getClientRects()):[]}function fu(t){let e=wi(t),i=t.ownerDocument.body,r=ut(t.scrollWidth,t.clientWidth,i.scrollWidth,i.clientWidth),n=ut(t.scrollHeight,t.clientHeight,i.scrollHeight,i.clientHeight),o=-e.scrollLeft+nr(t),s=-e.scrollTop;return He(i).direction==="rtl"&&(o+=ut(t.clientWidth,i.clientWidth)-r),{width:r,height:n,x:o,y:s}}var hu=25;function mu(t,e,i){i===void 0&&(i="viewport");let r=i==="layoutViewport",n=_e(t),o=et(t),s=n.visualViewport,a=o.clientWidth,l=o.clientHeight,c=0,u=0;if(s){let p=!ir()||e==="fixed";r?p||(c=-s.offsetLeft,u=-s.offsetTop):(a=s.width,l=s.height,p&&(c=s.offsetLeft,u=s.offsetTop))}if(nr(o)<=0){let p=o.ownerDocument,g=p.body,x=getComputedStyle(g),A=p.compatMode==="CSS1Compat"&&parseFloat(x.marginLeft)+parseFloat(x.marginRight)||0,b=Math.abs(o.clientWidth-g.clientWidth-A),T=getComputedStyle(o).scrollbarGutter==="stable both-edges"?b/2:b;T<=hu&&(a-=T)}return{width:a,height:l,x:c,y:u}}function gu(t,e){let i=Ti(t,!0,e==="fixed"),r=i.top+t.clientTop,n=i.left+t.clientLeft,o=Zt(t),s=t.clientWidth*o.x,a=t.clientHeight*o.y,l=n*o.x,c=r*o.y;return{width:s,height:a,x:l,y:c}}function js(t,e,i){let r;if(e==="viewport"||e==="layoutViewport")r=mu(t,i,e);else if(e==="document")r=fu(et(t));else if(Be(e))r=gu(e,i);else{let n=qs(t);r={x:e.x-n.x,y:e.y-n.y,width:e.width,height:e.height}}return Tt(r)}function yu(t,e){let i=e.get(t);if(i)return i;let r=er(t,[],!1).filter(a=>Be(a)&&Rt(a)!=="body"),n=null,o=He(t).position==="fixed",s=o?pt(t):t;for(;Be(s)&&!Xt(s);){let a=He(s),l=Yt(s),c=n?n.position:o?"fixed":"";!l&&(c==="fixed"||c==="absolute"&&a.position==="static")?r=r.filter(d=>d!==s):n=a,s=pt(s)}return e.set(t,r),r}function bu(t){let{element:e,boundary:i,rootBoundary:r,strategy:n}=t,s=[...i==="clippingAncestors"?Ci(e)?[]:yu(e,this._c):[].concat(i),r],a=js(e,s[0],n),l=a.top,c=a.right,u=a.bottom,d=a.left;for(let p=1;p<s.length;p++){let g=js(e,s[p],n);l=ut(g.top,l),c=Si(g.right,c),u=Si(g.bottom,u),d=ut(g.left,d)}return{width:c-d,height:u-l,x:d,y:l}}function xu(t){let{width:e,height:i}=Ks(t);return{width:e,height:i}}function vu(t,e,i){let r=tt(e),n=et(e),o=i==="fixed",s=Ti(t,!0,o,e),a={scrollLeft:0,scrollTop:0},l=Ke(0);if((r||!o)&&((Rt(e)!=="body"||_i(n))&&(a=wi(e)),r)){let p=Ti(e,!0,o,e);l.x=p.x+e.clientLeft,l.y=p.y+e.clientTop}!r&&n&&(l.x=nr(n));let c=n&&!r&&!o?Ys(n,a):Ke(0),u=s.left+a.scrollLeft-l.x-c.x,d=s.top+a.scrollTop-l.y-c.y;return{x:u,y:d,width:s.width,height:s.height}}function wn(t){return He(t).position==="static"}function Ws(t,e){if(!tt(t)||He(t).position==="fixed")return null;if(e)return e(t);let i=t.offsetParent;return et(t)===i&&(i=i.ownerDocument.body),i}function Xs(t,e){let i=_e(t);if(Ci(t))return i;if(!tt(t)){let n=pt(t);for(;n&&!Xt(n);){if(Be(n)&&!wn(n))return n;n=pt(n)}return i}let r=Ws(t,e);for(;r&&Bs(r)&&wn(r);)r=Ws(r,e);return r&&Xt(r)&&wn(r)&&!Yt(r)?i:r||Hs(t)||i}var Su=async function(t){let e=this.getOffsetParent||Xs,i=this.getDimensions,r=await i(t.floating);return{reference:vu(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Eu(t){return He(t).direction==="rtl"}var or={convertOffsetParentRelativeRectToViewportRelativeRect:du,getDocumentElement:et,getClippingRect:bu,getOffsetParent:Xs,getElementRects:Su,getClientRects:pu,getDimensions:xu,getScale:Zt,isElement:Be,isRTL:Eu};var Zs=$s,Js=Us;var Qs=(t,e,i)=>{let r=new Map,n=i??{},o={...or,...n.platform,_c:r};return Ms(t,e,{...n,platform:o})};function ea(t){return Au(t)}function Tn(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}function Au(t){for(let e=t;e;e=Tn(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=Tn(t);e;e=Tn(e)){if(!(e instanceof Element))continue;let i=getComputedStyle(e);if(i.display!=="contents"&&(i.position!=="static"||Yt(i)||e.tagName==="BODY"))return e}return null}async function ta(t,e,i){let r;return typeof i=="object"?r=i:r={placement:i},Qs(t,e,{strategy:r.strategy,platform:{...or,getOffsetParent:n=>or.getOffsetParent(n,ea)},middleware:[Js({crossAxis:!0}),Zs({allowedPlacements:[r.placement]})]})}var ai=f(S());var Yn=f(re());var ia=f(re(),1);var On=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)};function ra(t,e){return(0,ia.property)({type:Object,converter:{fromAttribute:i=>{if(i==null)return Oi(t);try{return JSON.parse(i)}catch{return Oi(t)}},toAttribute:i=>JSON.stringify(i)},hasChanged:Ri,...e??{}})}function _u(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(t.constructor!==e.constructor)return!1;let i,r;if(Array.isArray(t)){if(i=t.length,i!=e.length)return!1;for(r=i;r--!==0;)if(!Jt(t[r],e[r]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(r of t.entries())if(!e.has(r[0]))return!1;for(r of t.entries())if(!Jt(r[1],e.get(r[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(r of t.entries())if(!e.has(r[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();let n=s=>Object.keys(s).filter(a=>s[a]!=null),o=n(t);if(i=o.length,i!==n(e).length)return!1;for(r=i;r--!==0;)if(!Object.prototype.hasOwnProperty.call(e,o[r]))return!1;for(r=i;r--!==0;){let s=o[r];if(!Jt(t[s],e[s]))return!1}return!0}return t!==t&&e!==e||t==null&&e==null}function Jt(t,e){try{return _u(t,e)}catch{return!1}}function Ri(t,e){return!Jt(t,e)}function Oi(t){return typeof window.structuredClone=="function"?structuredClone(t):t!=null?JSON.parse(JSON.stringify(t)):t}function sr(t,e){let i=r=>r[t]===!0;return r=>{if(i(r))return r;let n=e(r);return n[t]=!0,n}}var na=f(re(),1);var Rn=t=>{let e=t??{};return(i,r)=>{var n;let o={hasChanged:Ri,attribute:!1,...e};(0,na.property)(o)(i,r);let s=i.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(r,{selector:(n=e.selector)!==null&&n!==void 0?n:(a=>a[r]),store:e.store})}};var ar=class{constructor(){this.queue=[]}add(e,i=!1){i&&this.clear(e.type),this.queue.push(e)}consume(e){let i=this.queue.find(r=>r.type===e);return i&&(this.queue=this.queue.filter(r=>r!==i)),i}clear(e){typeof e=="string"?this.queue=this.queue.filter(i=>i.type!==e):this.queue=this.queue.filter(i=>!e.test(i.type))}};var Lt=f(re(),1);var lr=class{constructor(e=0){this.timeout=e,this.callbacks=[]}run(e,i){return this.callbacks=[e],this.debounce(i)}queue(e,i){return this.callbacks.push(e),this.debounce(i)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(e){return this.promise==null&&(this.promise=new Promise((i,r)=>{this.resolvePromise=i,this.rejectPromise=r})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),e??this.timeout),this.promise}async runCallbacks(){var e,i;let r=[...this.callbacks];this.callbacks=[];let n=(e=this.rejectPromise)!==null&&e!==void 0?e:(()=>null),o=(i=this.resolvePromise)!==null&&i!==void 0?i:(()=>null);this.clearPromise();for(let s of r)try{await s()}catch(a){n(a);return}o(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var sa=f(z(),1);var cr=globalThis,Cu=cr.ShadowRoot&&(cr.ShadyCSS===void 0||cr.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype;var oa=(t,e)=>{if(Cu)t.adoptedStyleSheets=e.map(i=>i instanceof CSSStyleSheet?i:i.styleSheet);else for(let i of e){let r=document.createElement("style"),n=cr.litNonce;n!==void 0&&r.setAttribute("nonce",n),r.textContent=i.cssText,t.appendChild(r)}};var ur=class extends sa.LitElement{get scopedRegistryConstructor(){return this.constructor}createRenderRoot(){let e=this.scopedRegistryConstructor;e.elementDefinitions&&!e.registry&&(e.registry=new CustomElementRegistry,e.defineScopedElements(e.elementDefinitions));let i={...e.shadowRootOptions,customElements:e.registry},r=this.renderOptions.creationScope=this.attachShadow(i);return oa(r,e.elementStyles),r}static canDefineScopedElement(e){return!!this.registry&&!this.registry.get(e)}static defineScopedElements(e){Object.entries(e).forEach(([i,r])=>this.defineScopedElement(i,r))}static defineScopedElement(e,i){On(e)(i),this.canDefineScopedElement(e)&&this.registry.define(e,i)}canDefineScopedElement(e){return this.scopedRegistryConstructor.canDefineScopedElement(e)}defineScopedElements(e){this.scopedRegistryConstructor.defineScopedElements(e)}defineScopedElement(e,i){this.scopedRegistryConstructor.defineScopedElement(e,i)}};function aa(t,e,...i){var r;let n=t.querySelector(e);for(let o of i)n=(r=n?.shadowRoot)===null||r===void 0?void 0:r.querySelector(o);return n}var ei=function(t,e,i,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,i):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,i,o):s(e,i))||o);return n>3&&o&&Object.defineProperty(e,i,o),o},da,la=Symbol("constructorPrototype"),ca=Symbol("constructorName"),pa=Symbol("exportpartsDebouncer"),ua=Symbol("dynamicDependenciesLoaded"),Qt=class t extends CustomEvent{constructor(){super(t.eventName,{bubbles:!0})}};Qt.eventName="exportparts-updated";var Ge=class extends ur{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[da]=new lr(5),this.scheduleExportpartsUpdate=()=>{var e,i,r;(!((e=this.exportpartsPrefix)===null||e===void 0)&&e.trim()||(r=(i=this.exportpartsPrefixes)===null||i===void 0?void 0:i.length)!==null&&r!==void 0&&r)&&this[pa].run(()=>{var n,o;!((n=this.exportpartsPrefix)===null||n===void 0)&&n.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((o=this.exportpartsPrefixes)===null||o===void 0?void 0:o.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})},this[ca]=this.constructor.name,this[la]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[ca]&&Object.setPrototypeOf(this,this[la])}connectedCallback(){var e;super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(r){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",r)}let i=this.constructor;i[ua]||(i[ua]=!0,this.importDynamicDependencies()),(e=this.shadowRoot)===null||e===void 0||e.addEventListener(Qt.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.shadowRoot)===null||e===void 0||e.removeEventListener(Qt.eventName,this.scheduleExportpartsUpdate)}importDynamicDependencies(){}updated(e){super.updated(e),this.updateComplete.then(()=>{this.contentAvailableCallback(e),this.focusElementToFocus(e),this.applyCustomStylesheet(e),this.scheduleExportpartsUpdate(),e.has("exportparts")&&this.dispatchEvent(new Qt)})}contentAvailableCallback(e){}focusElementToFocus(e){if(e.has("elementToFocus")&&this.elementToFocus!=null){let{element:i,selector:r,shadowPath:n}=this.elementToFocus;if(r!=null){let o=[...n??[],r];i=aa(this.shadowRoot,...o)}i?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||i?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(e){var i,r,n;if(((r=(i=this.shadowRoot)===null||i===void 0?void 0:i.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&r!==void 0?r:[]).forEach(o=>o.remove()),this.useAdoptedStyleSheets){if(e.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((n=this.customStylesheet)!==null&&n!==void 0?n:"")}catch(o){console.error(o,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let o=document.createElement("style");o.classList.add("ft-lit-element--custom-stylesheet"),o.innerHTML=this.customStylesheet,this.shadowRoot.append(o)}}setExportpartsAttribute(e){var i,r,n,o,s,a;let l=p=>p!=null&&p.trim().length>0,c=e.filter(l).map(p=>p.trim());if(c.length===0){this.exportparts=void 0;return}let u=new Set;for(let p of(r=(i=this.shadowRoot)===null||i===void 0?void 0:i.querySelectorAll("[part],[exportparts]"))!==null&&r!==void 0?r:[]){let g=(o=(n=p.getAttribute("part"))===null||n===void 0?void 0:n.split(" "))!==null&&o!==void 0?o:[],x=(a=(s=p.getAttribute("exportparts"))===null||s===void 0?void 0:s.split(",").map(b=>b.split(":")[1]))!==null&&a!==void 0?a:[],A=[...g,...x].filter(l).map(b=>b.trim());for(let b of A)u.add(b)}if(u.size===0){this.exportparts=void 0;return}let d=[...u.values()].flatMap(p=>c.map(g=>`${p}:${g}--${p}`));this.exportparts=[...this.part,...d].join(", ")}};da=pa;ei([(0,Lt.property)()],Ge.prototype,"exportpartsPrefix",void 0);ei([ra([])],Ge.prototype,"exportpartsPrefixes",void 0);ei([(0,Lt.property)({reflect:!0})],Ge.prototype,"exportparts",void 0);ei([(0,Lt.property)()],Ge.prototype,"customStylesheet",void 0);ei([(0,Lt.property)()],Ge.prototype,"elementToFocus",void 0);ei([(0,Lt.state)()],Ge.prototype,"useAdoptedStyleSheets",void 0);function dr(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var Li=Symbol("internalReduxEventsUnsubscribers"),ft=Symbol("internalStoresUnsubscribers"),Pt=Symbol("internalStores"),wu=sr(Symbol("withRedux"),function(t){var e,i,r;class n extends t{constructor(){super(...arguments),this[e]=new Map,this[i]=new Map,this[r]=new Map}get reduxConstructor(){return this.constructor}willUpdate(s){super.willUpdate(s),[...this.reduxConstructor.reduxReactiveProperties].some(a=>s.has(a))&&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,a){var l;a=(l=a??s.name)!==null&&l!==void 0?l:"default-store",this.unsubscribeFromStore(a),this[Pt].set(a,s),this.subscribeToStore(a,s),this.updateFromStores()}removeStore(s){let a=typeof s=="string"?s:s.name;this.unsubscribeFromStore(a),this[Pt].delete(a)}setupStores(){this.unsubscribeFromStores(),this[Pt].forEach((s,a)=>this.subscribeToStore(a,s)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((s,a)=>{let l=this.constructor.getPropertyOptions(a);if(!l?.attribute||!this.hasAttribute(typeof l?.attribute=="string"?l.attribute:a)){let c=this.getStore(s.store);c&&(s.store?this[ft].has(s.store):this[ft].size>0)&&(this[a]=s.selector(c.getState(),this))}})}subscribeToStore(s,a){var l;this[ft].set(s,a.subscribe(()=>this.updateFromStores())),this[Li].set(s,[]),dr(a)&&a.eventBus&&((l=this.reduxConstructor.reduxEventListeners)===null||l===void 0||l.forEach((c,u)=>{if(typeof this[u]=="function"&&(!c.store||a.name===c.store)){let d=p=>this[u](p);a.addEventListener(c.eventName,d),this[Li].get(s).push(()=>a.removeEventListener(c.eventName,d))}})),this.onStoreAvailable(s)}unsubscribeFromStores(){this[ft].forEach((s,a)=>this.unsubscribeFromStore(a))}unsubscribeFromStore(s){var a;this[ft].has(s)&&this[ft].get(s)(),this[ft].delete(s),(a=this[Li].get(s))===null||a===void 0||a.forEach(l=>l()),this[Li].delete(s)}onStoreAvailable(s){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=ft,i=Pt,r=Li,n.reduxProperties=new Map,n.reduxReactiveProperties=new Set,n.reduxEventListeners=new Map,n}),fa=class extends wu(Ge){};function ue(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 Tu=typeof Symbol=="function"&&Symbol.observable||"@@observable",ha=Tu,Ln=()=>Math.random().toString(36).substring(7).split("").join("."),Ou={INIT:`@@redux/INIT${Ln()}`,REPLACE:`@@redux/REPLACE${Ln()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Ln()}`},pr=Ou;function fr(t){if(typeof t!="object"||t===null)return!1;let e=t;for(;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e||Object.getPrototypeOf(t)===null}function Pn(t,e,i){if(typeof t!="function")throw new Error(ue(2));if(typeof e=="function"&&typeof i=="function"||typeof i=="function"&&typeof arguments[3]=="function")throw new Error(ue(0));if(typeof e=="function"&&typeof i>"u"&&(i=e,e=void 0),typeof i<"u"){if(typeof i!="function")throw new Error(ue(1));return i(Pn)(t,e)}let r=t,n=e,o=new Map,s=o,a=0,l=!1;function c(){s===o&&(s=new Map,o.forEach((b,T)=>{s.set(T,b)}))}function u(){if(l)throw new Error(ue(3));return n}function d(b){if(typeof b!="function")throw new Error(ue(4));if(l)throw new Error(ue(5));let T=!0;c();let V=a++;return s.set(V,b),function(){if(T){if(l)throw new Error(ue(6));T=!1,c(),s.delete(V),o=null}}}function p(b){if(!fr(b))throw new Error(ue(7));if(typeof b.type>"u")throw new Error(ue(8));if(typeof b.type!="string")throw new Error(ue(17));if(l)throw new Error(ue(9));try{l=!0,n=r(n,b)}finally{l=!1}return(o=s).forEach(V=>{V()}),b}function g(b){if(typeof b!="function")throw new Error(ue(10));r=b,p({type:pr.REPLACE})}function x(){let b=d;return{subscribe(T){if(typeof T!="object"||T===null)throw new Error(ue(11));function V(){let L=T;L.next&&L.next(u())}return V(),{unsubscribe:b(V)}},[ha](){return this}}}return p({type:pr.INIT}),{dispatch:p,subscribe:d,getState:u,replaceReducer:g,[ha]:x}}function Ru(t){Object.keys(t).forEach(e=>{let i=t[e];if(typeof i(void 0,{type:pr.INIT})>"u")throw new Error(ue(12));if(typeof i(void 0,{type:pr.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(ue(13))})}function ma(t){let e=Object.keys(t),i={};for(let s=0;s<e.length;s++){let a=e[s];typeof t[a]=="function"&&(i[a]=t[a])}let r=Object.keys(i),n,o;try{Ru(i)}catch(s){o=s}return function(a={},l){if(o)throw o;let c=!1,u={};for(let d=0;d<r.length;d++){let p=r[d],g=i[p],x=a[p],A=g(x,l);if(typeof A>"u"){let b=l&&l.type;throw new Error(ue(14))}u[p]=A,c=c||A!==x}return c=c||r.length!==Object.keys(a).length,c?u:a}}function Pi(...t){return t.length===0?e=>e:t.length===1?t[0]:t.reduce((e,i)=>(...r)=>e(i(...r)))}function ga(...t){return e=>(i,r)=>{let n=e(i,r),o=()=>{throw new Error(ue(15))},s={getState:n.getState,dispatch:(l,...c)=>o(l,...c)},a=t.map(l=>l(s));return o=Pi(...a)(n.dispatch),{...n,dispatch:o}}}function ya(t){return fr(t)&&"type"in t&&typeof t.type=="string"}var wa=Symbol.for("immer-nothing"),ba=Symbol.for("immer-draftable"),fe=Symbol.for("immer-state");function ze(t,...e){throw new Error(`[Immer] minified error nr: ${t}. Full error at: https://bit.ly/3cXEKWf`)}var Oe=Object,ii=Oe.getPrototypeOf,yr="constructor",Ar="prototype",In="configurable",br="enumerable",mr="writable",Di="value",qe=t=>!!t&&!!t[fe];function Re(t){return t?Ta(t)||Cr(t)||!!t[ba]||!!t[yr]?.[ba]||wr(t)||Tr(t):!1}var Lu=Oe[Ar][yr].toString(),xa=new WeakMap;function Ta(t){if(!t||!zn(t))return!1;let e=ii(t);if(e===null||e===Oe[Ar])return!0;let i=Oe.hasOwnProperty.call(e,yr)&&e[yr];if(i===Object)return!0;if(!ti(i))return!1;let r=xa.get(i);return r===void 0&&(r=Function.toString.call(i),xa.set(i,r)),r===Lu}function _r(t,e,i=!0){Ii(t)===0?(i?Reflect.ownKeys(t):Oe.keys(t)).forEach(n=>{e(n,t[n],t)}):t.forEach((r,n)=>e(n,r,t))}function Ii(t){let e=t[fe];return e?e.type_:Cr(t)?1:wr(t)?2:Tr(t)?3:0}var Dn=(t,e,i=Ii(t))=>i===2?t.has(e):Oe[Ar].hasOwnProperty.call(t,e),Mn=(t,e,i=Ii(t))=>i===2?t.get(e):t[e],xr=(t,e,i,r=Ii(t))=>{r===2?t.set(e,i):r===3?t.add(i):t[e]=i};function Pu(t,e){return t===e?t!==0||1/t===1/e:t!==t&&e!==e}var Cr=Array.isArray,wr=t=>t instanceof Map,Tr=t=>t instanceof Set,zn=t=>typeof t=="object",ti=t=>typeof t=="function",Nn=t=>typeof t=="boolean";function Du(t){let e=+t;return Number.isInteger(e)&&String(e)===t}var it=t=>t.copy_||t.base_;var jn=t=>t.modified_?t.copy_:t.base_;function $n(t,e){if(wr(t))return new Map(t);if(Tr(t))return new Set(t);if(Cr(t))return Array[Ar].slice.call(t);let i=Ta(t);if(e===!0||e==="class_only"&&!i){let r=Oe.getOwnPropertyDescriptors(t);delete r[fe];let n=Reflect.ownKeys(r);for(let o=0;o<n.length;o++){let s=n[o],a=r[s];a[mr]===!1&&(a[mr]=!0,a[In]=!0),(a.get||a.set)&&(r[s]={[In]:!0,[mr]:!0,[br]:a[br],[Di]:t[s]})}return Oe.create(ii(t),r)}else{let r=ii(t);if(r!==null&&i)return{...t};let n=Oe.create(r);return Oe.assign(n,t)}}function Wn(t,e=!1){return Or(t)||qe(t)||!Re(t)||(Ii(t)>1&&Oe.defineProperties(t,{set:hr,add:hr,clear:hr,delete:hr}),Oe.freeze(t),e&&_r(t,(i,r)=>{Wn(r,!0)},!1)),t}function Nu(){ze(2)}var hr={[Di]:Nu};function Or(t){return t===null||!zn(t)?!0:Oe.isFrozen(t)}var vr="MapSet",Un="Patches",va="ArrayMethods",Oa={};function Dt(t){let e=Oa[t];return e||ze(0,t),e}var Sa=t=>!!Oa[t];var Ni,Ra=()=>Ni,ku=(t,e)=>({drafts_:[],parent_:t,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:Sa(vr)?Dt(vr):void 0,arrayMethodsPlugin_:Sa(va)?Dt(va):void 0});function Ea(t,e){e&&(t.patchPlugin_=Dt(Un),t.patches_=[],t.inversePatches_=[],t.patchListener_=e)}function Vn(t){Fn(t),t.drafts_.forEach(Iu),t.drafts_=null}function Fn(t){t===Ni&&(Ni=t.parent_)}var Aa=t=>Ni=ku(Ni,t);function Iu(t){let e=t[fe];e.type_===0||e.type_===1?e.revoke_():e.revoked_=!0}function _a(t,e){e.unfinalizedDrafts_=e.drafts_.length;let i=e.drafts_[0];if(t!==void 0&&t!==i){i[fe].modified_&&(Vn(e),ze(4)),Re(t)&&(t=Ca(e,t));let{patchPlugin_:n}=e;n&&n.generateReplacementPatches_(i[fe].base_,t,e)}else t=Ca(e,i);return Mu(e,t,!0),Vn(e),e.patches_&&e.patchListener_(e.patches_,e.inversePatches_),t!==wa?t:void 0}function Ca(t,e){if(Or(e))return e;let i=e[fe];if(!i)return Sr(e,t.handledSet_,t);if(!Rr(i,t))return e;if(!i.modified_)return i.base_;if(!i.finalized_){let{callbacks_:r}=i;if(r)for(;r.length>0;)r.pop()(t);Da(i,t)}return i.copy_}function Mu(t,e,i=!1){!t.parent_&&t.immer_.autoFreeze_&&t.canAutoFreeze_&&Wn(e,i)}function La(t){t.finalized_=!0,t.scope_.unfinalizedDrafts_--}var Rr=(t,e)=>t.scope_===e,$u=[];function Pa(t,e,i,r){let n=it(t),o=t.type_;if(r!==void 0&&Mn(n,r,o)===e){xr(n,r,i,o);return}if(!t.draftLocations_){let a=t.draftLocations_=new Map;_r(n,(l,c)=>{if(qe(c)){let u=a.get(c)||[];u.push(l),a.set(c,u)}})}let s=t.draftLocations_.get(e)??$u;for(let a of s)xr(n,a,i,o)}function Uu(t,e,i){t.callbacks_.push(function(n){let o=e;if(!o||!Rr(o,n))return;n.mapSetPlugin_?.fixSetContents(o);let s=jn(o);Pa(t,o.draft_??o,s,i),Da(o,n)})}function Da(t,e){if(t.modified_&&!t.finalized_&&(t.type_===3||t.type_===1&&t.allIndicesReassigned_||(t.assigned_?.size??0)>0)){let{patchPlugin_:r}=e;if(r){let n=r.getPath(t);n&&r.generatePatches_(t,n,e)}La(t)}}function Vu(t,e,i){let{scope_:r}=t;if(qe(i)){let n=i[fe];Rr(n,r)&&n.callbacks_.push(function(){gr(t);let s=jn(n);Pa(t,i,s,e)})}else Re(i)&&t.callbacks_.push(function(){let o=it(t);t.type_===3?o.has(i)&&Sr(i,r.handledSet_,r):Mn(o,e,t.type_)===i&&r.drafts_.length>1&&(t.assigned_.get(e)??!1)===!0&&t.copy_&&Sr(Mn(t.copy_,e,t.type_),r.handledSet_,r)})}function Sr(t,e,i){return!i.immer_.autoFreeze_&&i.unfinalizedDrafts_<1||qe(t)||e.has(t)||!Re(t)||Or(t)||(e.add(t),_r(t,(r,n)=>{if(qe(n)){let o=n[fe];if(Rr(o,i)){let s=jn(o);xr(t,r,s,t.type_),La(o)}}else Re(n)&&Sr(n,e,i)})),t}function Fu(t,e){let i=Cr(t),r={type_:i?1:0,scope_:e?e.scope_:Ra(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:e,base_:t,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0},n=r,o=Er;i&&(n=[r],o=ki);let{revoke:s,proxy:a}=Proxy.revocable(n,o);return r.draft_=a,r.revoke_=s,[a,r]}var Er={get(t,e){if(e===fe)return t;let i=t.scope_.arrayMethodsPlugin_,r=t.type_===1&&typeof e=="string";if(r&&i?.isArrayOperationMethod(e))return i.createMethodInterceptor(t,e);let n=it(t);if(!Dn(n,e,t.type_))return Hu(t,n,e);let o=n[e];if(t.finalized_||!Re(o)||r&&t.operationMethod&&i?.isMutatingArrayMethod(t.operationMethod)&&Du(e))return o;if(o===kn(t.base_,e)||Bu(t,e,o)){gr(t);let s=t.type_===1?+e:e,a=Hn(t.scope_,o,t,s);return t.copy_[s]=a}return o},has(t,e){return e in it(t)},ownKeys(t){return Reflect.ownKeys(it(t))},set(t,e,i){let r=Na(it(t),e);if(r?.set)return r.set.call(t.draft_,i),!0;if(!t.modified_){let n=kn(it(t),e),o=n?.[fe];if(o&&o.base_===i)return t.copy_[e]=i,t.assigned_.set(e,!1),!0;if(Pu(i,n)&&(i!==void 0||Dn(t.base_,e,t.type_)))return!0;gr(t),Bn(t)}return t.copy_[e]===i&&(i!==void 0||Dn(t.copy_,e,t.type_))||Number.isNaN(i)&&Number.isNaN(t.copy_[e])||(t.copy_[e]=i,t.assigned_.set(e,!0),Vu(t,e,i)),!0},deleteProperty(t,e){return gr(t),kn(t.base_,e)!==void 0||e in t.base_?(t.assigned_.set(e,!1),Bn(t)):t.assigned_.delete(e),t.copy_&&delete t.copy_[e],!0},getOwnPropertyDescriptor(t,e){let i=it(t),r=Reflect.getOwnPropertyDescriptor(i,e);return r&&{[mr]:!0,[In]:t.type_!==1||e!=="length",[br]:r[br],[Di]:i[e]}},defineProperty(){ze(11)},getPrototypeOf(t){return ii(t.base_)},setPrototypeOf(){ze(12)}},ki={};for(let t in Er){let e=Er[t];ki[t]=function(){let i=arguments;return i[0]=i[0][0],e.apply(this,i)}}ki.deleteProperty=function(t,e){return ki.set.call(this,t,e,void 0)};ki.set=function(t,e,i){return Er.set.call(this,t[0],e,i,t[0])};function kn(t,e){let i=t[fe];return(i?it(i):t)[e]}function Bu(t,e,i){return t.type_!==1||!t.allIndicesReassigned_||t.assigned_?.get(e)||!Re(i)||i[fe]?!1:t.baseRefs_.has(i)}function Hu(t,e,i){let r=Na(e,i);return r?Di in r?r[Di]:r.get?.call(t.draft_):void 0}function Na(t,e){if(!(e in t))return;let i=ii(t);for(;i;){let r=Object.getOwnPropertyDescriptor(i,e);if(r)return r;i=ii(i)}}function Bn(t){t.modified_||(t.modified_=!0,t.parent_&&Bn(t.parent_))}function gr(t){t.copy_||(t.assigned_=new Map,t.copy_=$n(t.base_,t.scope_.immer_.useStrictShallowCopy_))}var zu=class{constructor(t){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(e,i,r)=>{if(ti(e)&&!ti(i)){let o=i;i=e;let s=this;return function(l=o,...c){return s.produce(l,u=>i.call(this,u,...c))}}ti(i)||ze(6),r!==void 0&&!ti(r)&&ze(7);let n;if(Re(e)){let o=Aa(this),s=Hn(o,e,void 0),a=!0;try{n=i(s),a=!1}finally{a?Vn(o):Fn(o)}return Ea(o,r),_a(n,o)}else if(!e||!zn(e)){if(n=i(e),n===void 0&&(n=e),n===wa&&(n=void 0),this.autoFreeze_&&Wn(n,!0),r){let o=[],s=[];Dt(Un).generateReplacementPatches_(e,n,{patches_:o,inversePatches_:s}),r(o,s)}return n}else ze(1,e)},this.produceWithPatches=(e,i)=>{if(ti(e))return(s,...a)=>this.produceWithPatches(s,l=>e(l,...a));let r,n;return[this.produce(e,i,(s,a)=>{r=s,n=a}),r,n]},Nn(t?.autoFreeze)&&this.setAutoFreeze(t.autoFreeze),Nn(t?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(t.useStrictShallowCopy),Nn(t?.useStrictIteration)&&this.setUseStrictIteration(t.useStrictIteration)}createDraft(t){Re(t)||ze(8),qe(t)&&(t=ka(t));let e=Aa(this),i=Hn(e,t,void 0);return i[fe].isManual_=!0,Fn(e),i}finishDraft(t,e){let i=t&&t[fe];(!i||!i.isManual_)&&ze(9);let{scope_:r}=i;return Ea(r,e),_a(void 0,r)}setAutoFreeze(t){this.autoFreeze_=t}setUseStrictShallowCopy(t){this.useStrictShallowCopy_=t}setUseStrictIteration(t){this.useStrictIteration_=t}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(t,e){let i;for(i=e.length-1;i>=0;i--){let n=e[i];if(n.path.length===0&&n.op==="replace"){t=n.value;break}}i>-1&&(e=e.slice(i+1));let r=Dt(Un).applyPatches_;return qe(t)?r(t,e):this.produce(t,n=>r(n,e))}};function Hn(t,e,i,r){let[n,o]=wr(e)?Dt(vr).proxyMap_(e,i):Tr(e)?Dt(vr).proxySet_(e,i):Fu(e,i);return(i?.scope_??Ra()).drafts_.push(n),o.callbacks_=i?.callbacks_??[],o.key_=r,i&&r!==void 0?Uu(i,o,r):o.callbacks_.push(function(l){l.mapSetPlugin_?.fixSetContents(o);let{patchPlugin_:c}=l;o.modified_&&c&&c.generatePatches_(o,[],l)}),n}function ka(t){return qe(t)||ze(10,t),Ia(t)}function Ia(t){if(!Re(t)||Or(t))return t;let e=t[fe],i,r=!0;if(e){if(!e.modified_)return e.base_;e.finalized_=!0,i=$n(t,e.scope_.immer_.useStrictShallowCopy_),r=e.scope_.immer_.shouldUseStrictIteration()}else i=$n(t,!0);return _r(i,(n,o)=>{xr(i,n,Ia(o))},r),e&&(e.finalized_=!1),i}var ju=globalThis.Iterator,ph=typeof ju?.from=="function";var Wu=new zu,Kn=Wu.produce;function Ma(t){return({dispatch:i,getState:r})=>n=>o=>typeof o=="function"?o(i,r,t):n(o)}var $a=Ma(),Ua=Ma;var Ku=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Pi:Pi.apply(null,arguments)},xh=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}},Gu=t=>t&&typeof t.match=="function";function ht(t,e){function i(...r){if(e){let n=e(...r);if(!n)throw new Error(rt(0));return{type:t,payload:n.payload,..."meta"in n&&{meta:n.meta},..."error"in n&&{error:n.error}}}return{type:t,payload:r[0]}}return i.toString=()=>`${t}`,i.type=t,i.match=r=>ya(r)&&r.type===t,i}var za=class Mi extends Array{constructor(...e){super(...e),Object.setPrototypeOf(this,Mi.prototype)}static get[Symbol.species](){return Mi}concat(...e){return super.concat.apply(this,e)}prepend(...e){return e.length===1&&Array.isArray(e[0])?new Mi(...e[0].concat(this)):new Mi(...e.concat(this))}};function Va(t){return Re(t)?Kn(t,()=>{}):t}function Lr(t,e,i){return t.has(e)?t.get(e):t.set(e,i(e)).get(e)}function qu(t){return typeof t=="boolean"}var Yu=()=>function(e){let{thunk:i=!0,immutableCheck:r=!0,serializableCheck:n=!0,actionCreatorCheck:o=!0}=e??{},s=new za;return i&&(qu(i)?s.push($a):s.push(Ua(i.extraArgument))),s},Xu="RTK_autoBatch";var Fa=t=>e=>{setTimeout(e,t)},Zu=(t,e)=>i=>{let r=!1,n=()=>{r||(r=!0,cancelAnimationFrame(o),clearTimeout(s),i())},o=t(n),s=setTimeout(n,e)},Ju=(t={type:"raf"})=>e=>(...i)=>{let r=e(...i),n=!0,o=!1,s=!1,a=new Set,l=t.type==="tick"?queueMicrotask:t.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?Zu(window.requestAnimationFrame,100):Fa(10):t.type==="callback"?t.queueNotification:Fa(t.timeout),c=()=>{s=!1,o&&(o=!1,a.forEach(u=>u()))};return Object.assign({},r,{subscribe(u){let d=()=>n&&u(),p=r.subscribe(d);return a.add(u),()=>{p(),a.delete(u)}},dispatch(u){try{return n=!u?.meta?.[Xu],o=!n,o&&(s||(s=!0,l(c))),r.dispatch(u)}finally{n=!0}}})},Qu=t=>function(i){let{autoBatch:r=!0}=i??{},n=new za(t);return r&&n.push(Ju(typeof r=="object"?r:void 0)),n};function ja(t){let e=Yu(),{reducer:i=void 0,middleware:r,devTools:n=!0,duplicateMiddlewareCheck:o=!0,preloadedState:s=void 0,enhancers:a=void 0}=t||{},l;if(typeof i=="function")l=i;else if(fr(i))l=ma(i);else throw new Error(rt(1));let c;typeof r=="function"?c=r(e):c=e();let u=Pi;n&&(u=Ku({trace:!1,...typeof n=="object"&&n}));let d=ga(...c),p=Qu(d),g=typeof a=="function"?a(p):p(),x=u(...g);return Pn(l,s,x)}function Wa(t){let e={},i=[],r,n={addCase(o,s){let a=typeof o=="string"?o:o.type;if(!a)throw new Error(rt(28));if(a in e)throw new Error(rt(29));return e[a]=s,n},addAsyncThunk(o,s){return s.pending&&(e[o.pending.type]=s.pending),s.rejected&&(e[o.rejected.type]=s.rejected),s.fulfilled&&(e[o.fulfilled.type]=s.fulfilled),s.settled&&i.push({matcher:o.settled,reducer:s.settled}),n},addMatcher(o,s){return i.push({matcher:o,reducer:s}),n},addDefaultCase(o){return r=o,n}};return t(n),[e,i,r]}function ed(t){return typeof t=="function"}function td(t,e){let[i,r,n]=Wa(e),o;if(ed(t))o=()=>Va(t());else{let a=Va(t);o=()=>a}function s(a=o(),l){let c=[i[l.type],...r.filter(({matcher:u})=>u(l)).map(({reducer:u})=>u)];return c.filter(u=>!!u).length===0&&(c=[n]),c.reduce((u,d)=>{if(d)if(qe(u)){let g=d(u,l);return g===void 0?u:g}else{if(Re(u))return Kn(u,p=>d(p,l));{let p=d(u,l);if(p===void 0){if(u===null)return u;throw Error("A case reducer on a non-draftable value must not return undefined")}return p}}return u},a)}return s.getInitialState=o,s}var id=(t,e)=>Gu(t)?t.match(e):t(e);function rd(...t){return e=>t.some(i=>id(i,e))}var nd="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",od=(t=21)=>{let e="",i=t;for(;i--;)e+=nd[Math.random()*64|0];return e},sd=["name","message","stack","code"],Gn=class{constructor(t,e){this.payload=t,this.meta=e}payload;meta;_type},Ba=class{constructor(t,e){this.payload=t,this.meta=e}payload;meta;_type},ad=t=>{if(typeof t=="object"&&t!==null){let e={};for(let i of sd)typeof t[i]=="string"&&(e[i]=t[i]);return e}return{message:String(t)}},Ha="External signal was aborted",ld=(()=>{function t(e,i,r){let n=ht(e+"/fulfilled",(l,c,u,d)=>({payload:l,meta:{...d||{},arg:u,requestId:c,requestStatus:"fulfilled"}})),o=ht(e+"/pending",(l,c,u)=>({payload:void 0,meta:{...u||{},arg:c,requestId:l,requestStatus:"pending"}})),s=ht(e+"/rejected",(l,c,u,d,p)=>({payload:d,error:(r&&r.serializeError||ad)(l||"Rejected"),meta:{...p||{},arg:u,requestId:c,rejectedWithValue:!!d,requestStatus:"rejected",aborted:l?.name==="AbortError",condition:l?.name==="ConditionError"}}));function a(l,{signal:c}={}){return(u,d,p)=>{let g=r?.idGenerator?r.idGenerator(l):od(),x=new AbortController,A,b;function T(v){b=v,x.abort()}c&&(c.aborted?T(Ha):c.addEventListener("abort",()=>T(Ha),{once:!0}));let V=(async function(){let v;try{let M=r?.condition?.(l,{getState:d,extra:p});if(ud(M)&&(M=await M),M===!1||x.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};let X=new Promise((j,Z)=>{A=()=>{Z({name:"AbortError",message:b||"Aborted"})},x.signal.addEventListener("abort",A,{once:!0})});u(o(g,l,r?.getPendingMeta?.({requestId:g,arg:l},{getState:d,extra:p}))),v=await Promise.race([X,Promise.resolve(i(l,{dispatch:u,getState:d,extra:p,requestId:g,signal:x.signal,abort:T,rejectWithValue:((j,Z)=>new Gn(j,Z)),fulfillWithValue:((j,Z)=>new Ba(j,Z))})).then(j=>{if(j instanceof Gn)throw j;return j instanceof Ba?n(j.payload,g,l,j.meta):n(j,g,l)})])}catch(M){v=M instanceof Gn?s(null,g,l,M.payload,M.meta):s(M,g,l)}finally{A&&x.signal.removeEventListener("abort",A)}return r&&!r.dispatchConditionRejection&&s.match(v)&&v.meta.condition||u(v),v})();return Object.assign(V,{abort:T,requestId:g,arg:l,unwrap(){return V.then(cd)}})}}return Object.assign(a,{pending:o,rejected:s,fulfilled:n,settled:rd(s,n),typePrefix:e})}return t.withTypes=()=>t,t})();function cd(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function ud(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var Ka=Symbol.for("rtk-slice-createasyncthunk"),Sh={[Ka]:ld};function dd(t,e){return`${t}/${e}`}function pd({creators:t}={}){let e=t?.asyncThunk?.[Ka];return function(r){let{name:n,reducerPath:o=n}=r;if(!n)throw new Error(rt(11));typeof process<"u";let s=(typeof r.reducers=="function"?r.reducers(hd()):r.reducers)||{},a=Object.keys(s),l={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},c={addCase(v,L){let M=typeof v=="string"?v:v.type;if(!M)throw new Error(rt(12));if(M in l.sliceCaseReducersByType)throw new Error(rt(13));return l.sliceCaseReducersByType[M]=L,c},addMatcher(v,L){return l.sliceMatchers.push({matcher:v,reducer:L}),c},exposeAction(v,L){return l.actionCreators[v]=L,c},exposeCaseReducer(v,L){return l.sliceCaseReducersByName[v]=L,c}};a.forEach(v=>{let L=s[v],M={reducerName:v,type:dd(n,v),createNotation:typeof r.reducers=="function"};gd(L)?bd(M,L,c,e):md(M,L,c)});function u(){let[v={},L=[],M=void 0]=typeof r.extraReducers=="function"?Wa(r.extraReducers):[r.extraReducers],X={...v,...l.sliceCaseReducersByType};return td(r.initialState,j=>{for(let Z in X)j.addCase(Z,X[Z]);for(let Z of l.sliceMatchers)j.addMatcher(Z.matcher,Z.reducer);for(let Z of L)j.addMatcher(Z.matcher,Z.reducer);M&&j.addDefaultCase(M)})}let d=v=>v,p=new Map,g=new WeakMap,x;function A(v,L){return x||(x=u()),x(v,L)}function b(){return x||(x=u()),x.getInitialState()}function T(v,L=!1){function M(j){let Z=j[v];return typeof Z>"u"&&L&&(Z=Lr(g,M,b)),Z}function X(j=d){let Z=Lr(p,L,()=>new WeakMap);return Lr(Z,j,()=>{let di={};for(let[De,gt]of Object.entries(r.selectors??{}))di[De]=fd(gt,j,()=>Lr(g,j,b),L);return di})}return{reducerPath:v,getSelectors:X,get selectors(){return X(M)},selectSlice:M}}let V={name:n,reducer:A,actions:l.actionCreators,caseReducers:l.sliceCaseReducersByName,getInitialState:b,...T(o),injectInto(v,{reducerPath:L,...M}={}){let X=L??o;return v.inject({reducerPath:X,reducer:A},M),{...V,...T(X,!0)}}};return V}}function fd(t,e,i,r){function n(o,...s){let a=e(o);return typeof a>"u"&&r&&(a=i()),t(a,...s)}return n.unwrapped=t,n}var Ga=pd();function hd(){function t(e,i){return{_reducerDefinitionType:"asyncThunk",payloadCreator:e,...i}}return t.withTypes=()=>t,{reducer(e){return Object.assign({[e.name](...i){return e(...i)}}[e.name],{_reducerDefinitionType:"reducer"})},preparedReducer(e,i){return{_reducerDefinitionType:"reducerWithPrepare",prepare:e,reducer:i}},asyncThunk:t}}function md({type:t,reducerName:e,createNotation:i},r,n){let o,s;if("reducer"in r){if(i&&!yd(r))throw new Error(rt(17));o=r.reducer,s=r.prepare}else o=r;n.addCase(t,o).exposeCaseReducer(e,o).exposeAction(e,s?ht(t,s):ht(t))}function gd(t){return t._reducerDefinitionType==="asyncThunk"}function yd(t){return t._reducerDefinitionType==="reducerWithPrepare"}function bd({type:t,reducerName:e},i,r,n){if(!n)throw new Error(rt(18));let{payloadCreator:o,fulfilled:s,pending:a,rejected:l,settled:c,options:u}=i,d=n(t,o,u);r.exposeAction(e,d),s&&r.addCase(d.fulfilled,s),a&&r.addCase(d.pending,a),l&&r.addCase(d.rejected,l),c&&r.addMatcher(d.settled,c),r.exposeCaseReducer(e,{fulfilled:s||Pr,pending:a||Pr,rejected:l||Pr,settled:c||Pr})}function Pr(){}var qa="listener",Ya="completed",Xa="cancelled",Eh=`task-${Xa}`,Ah=`task-${Ya}`,_h=`${qa}-${Xa}`,Ch=`${qa}-${Ya}`;var{assign:Za}=Object;var qn="listenerMiddleware";var xd=Za(ht(`${qn}/add`),{withTypes:()=>xd}),wh=ht(`${qn}/removeAll`),vd=Za(ht(`${qn}/remove`),{withTypes:()=>vd});function rt(t){return`Minified Redux Toolkit error #${t}; visit https://redux-toolkit.js.org/Errors?code=${t} for the full message or use the non-minified dev environment for full errors. `}var Sd=sr(Symbol("withEventBus"),function(t,e){return class extends t{constructor(){super(...arguments),this.eventBus=e??document.createElement("span")}addEventListener(i,r,n){this.eventBus.addEventListener(i,r,n)}dispatchEvent(i){return this.eventBus.dispatchEvent(i)}removeEventListener(i,r,n){this.eventBus.removeEventListener(i,r,n)}}}),Dr=class extends Sd(Object){};window.ftReduxStores||(window.ftReduxStores={});var Ja=class t extends Dr{static get(e){var i;let r=typeof e=="string"?e:e.name,n=typeof e=="string"?void 0:e,o=window.ftReduxStores[r];if(dr(o))return o;if(n==null)return;let s=Ga({...n,reducers:(i=n.reducers)!==null&&i!==void 0?i:{}}),a=ja({reducer:(l,c)=>{if(c.type==="CLEAR_FT_REDUX_STORE"){let u=Oi(s.getInitialState());for(let d of c.keeping)u[d]=(l??u)[d];return u}else if(typeof c.type=="string"&&c.type.startsWith("DEFAULT_VALUE_SETTER__"))return{...l,...c.overwrites};return s.reducer(l,c)}});return window.ftReduxStores[n.name]=new t(s,a,n.eventBus)}constructor(e,i,r){super(),this.reduxSlice=e,this.reduxStore=i,this.isFtReduxStore=!0,this.commands=new ar,this.injectInto=(o,s)=>this.reduxSlice.injectInto(o,s),this.selectSlice=o=>this.reduxSlice.selectSlice(o);let n=o=>o!=null?JSON.parse(JSON.stringify(o)):o;this.actions=new Proxy(this.reduxSlice.actions,{get:(o,s,a)=>{let l=s,c=o[l];return c?(...u)=>{let d=c(...u.map(n));return this.reduxStore.dispatch(d),d}:u=>{let d=l,p=this.getState()[d];Jt(p,u)||this.setState({[d]:n(u)})}}}),this.eventBus=r??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()}get selectors(){return this.reduxSlice.selectors}get reducerPath(){return this.reduxSlice.reducerPath}getSelectors(){return this.reduxSlice.getSelectors()}};var Nr=class{static format(e,i,r,n,o){return window.moment?window.moment(e).locale(i).format(this.getMomentDateFormat(r,n,!!o)):this.getIntlDateTime(e,i,r,n,!!o)}static getMomentDateFormat(e,i,r){return r?"LT":e?i?"lll":"ll":i?"L LT":"L"}static getIntlDateTime(e,i,r,n,o){let s=typeof e=="string"?new Date(e):e,a=new Intl.DateTimeFormat(i,{dateStyle:r?"medium":"short"}).format(s),l=new Intl.DateTimeFormat(i,{timeStyle:"short"}).format(s);return o?l:n?`${a} ${l}`:a}static getTimezoneAsString(){let e=r=>String(Math.floor(r)).padStart(2,"0"),i=new Date().getTimezoneOffset();return`${i<0?"+":"-"}${e(Math.abs(i)/60)}:${e(Math.abs(i)%60)}`}};var kr=f(S()),Ed="ft-app-info",Nt=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};Nt.eventName="authentication-change";var $i=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};$i.eventName="ui-locale-changed";var Ad={session:(t,e)=>{(0,kr.deepEqual)(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>P.dispatchEvent(new Nt(e.payload)),0))}},P=kr.FtReduxStore.get({name:Ed,reducers:Ad,initialState:{baseUrl:void 0,tenantId:void 0,apiIntegrationIdentifier:void 0,apiIntegrationAppVersion:void 0,uiLocale:document.documentElement.lang||"en-US",availableContentLocales:[],localesConfiguration:void 0,metadataConfiguration:void 0,privacyPolicyConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,noCustomCode:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1,authenticationRequired:!1,stickyFilters:void 0}});var Qa=f(S()),Ir=function(t,e,i,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,i):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,i,o):s(e,i))||o);return n>3&&o&&Object.defineProperty(e,i,o),o},im=(0,Qa.applyMixinOnce)(Symbol("withDateFormat"),function(t){class e extends t{constructor(...r){super(r),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(P)}dateFormatOptionsChanged(r){return r.has("metadataDescriptors")||r.has("useLongDateFormat")||r.has("useDateTimeFormat")||r.has("uiLocale")}getDateFormatter(r){var n,o;return((o=(n=this.metadataDescriptors.find(a=>a.key===r))===null||n===void 0?void 0:n.date)!==null&&o!==void 0?o:!1)?a=>Nr.format(a,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return Ir([(0,Yn.property)({type:Boolean})],e.prototype,"useLongDateFormat",void 0),Ir([(0,Yn.property)({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),Ir([Rn({store:P.name,selector:i=>{var r,n;return(n=(r=i.metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&n!==void 0?n:[]}})],e.prototype,"metadataDescriptors",void 0),Ir([Rn({store:P.name})],e.prototype,"uiLocale",void 0),e});var el;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(el||(el={}));var tl;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(tl||(tl={}));var il;(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"})(il||(il={}));var rl;(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"})(rl||(rl={}));var nl;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(nl||(nl={}));var ol;(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(ol||(ol={}));var sl;(function(t){t.OFFICIAL="OFFICIAL",t.AI="AI"})(sl||(sl={}));var al;(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"})(al||(al={}));var ll;(function(t){t.STANDARD="STANDARD",t.STRUCTURAL="STRUCTURAL"})(ll||(ll={}));var cl;(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"})(cl||(cl={}));var ul;(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"})(ul||(ul={}));var dl;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(dl||(dl={}));var pl;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(pl||(pl={}));var fl;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(fl||(fl={}));var hl;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(hl||(hl={}));var ml;(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"})(ml||(ml={}));var gl;(function(t){t.OPTIONAL="OPTIONAL",t.MANDATORY="MANDATORY"})(gl||(gl={}));var yl;(function(t){t.ASC="ASC",t.DESC="DESC"})(yl||(yl={}));var bl;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(bl||(bl={}));var xl;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(xl||(xl={}));var vl;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(vl||(vl={}));var Sl;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(Sl||(Sl={}));var El;(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"})(El||(El={}));var Al;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Al||(Al={}));var _l;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.HTML_PACKAGE="HTML_PACKAGE",t.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(_l||(_l={}));var Cl;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(Cl||(Cl={}));var wl;(function(t){t.PLAIN_TEXT="PLAIN_TEXT",t.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",t.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(wl||(wl={}));var te;(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"})(te||(te={}));var ke;(function(t){t.SEARCHES="SEARCHES",t.BOOKMARKS="BOOKMARKS",t.BOOKS="BOOKS",t.COLLECTIONS="COLLECTIONS"})(ke||(ke={}));var Tl;(function(t){t.UNAUTHENTICATED="UNAUTHENTICATED",t.USER_INCOMPLETE="USER_INCOMPLETE",t.MFA_REQUIRED="MFA_REQUIRED",t.AUTHENTICATED="AUTHENTICATED"})(Tl||(Tl={}));var Ol;(function(t){t.UNREACHABLE="UNREACHABLE",t.UNAUTHORIZED="UNAUTHORIZED",t.FORBIDDEN="FORBIDDEN",t.INCOMPATIBLE="INCOMPATIBLE",t.FAILED="FAILED",t.OK="OK"})(Ol||(Ol={}));var Rl;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(Rl||(Rl={}));var Ll;(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"})(Ll||(Ll={}));var Pl;(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",t.SLOW="SLOW",t.OTHER="OTHER"})(Pl||(Pl={}));var Dl;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(Dl||(Dl={}));var Nl;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(Nl||(Nl={}));var kl;(function(t){t.TEXT="TEXT",t.HTML="HTML"})(kl||(kl={}));var Il;(function(t){t.IN_PROGRESS="IN_PROGRESS",t.ERROR="ERROR",t.DONE="DONE"})(Il||(Il={}));var Ml;(function(t){t.HTML="HTML",t.MARKDOWN="MARKDOWN"})(Ml||(Ml={}));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 Ul;(function(t){t.MAP="MAP",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(Ul||(Ul={}));var _d={[te.PERSONAL_BOOK_SHARE_USER]:[te.PERSONAL_BOOK_USER],[te.HTML_EXPORT_USER]:[te.PERSONAL_BOOK_USER],[te.PDF_EXPORT_USER]:[te.PERSONAL_BOOK_USER],[te.KHUB_ADMIN]:[te.CONTENT_PUBLISHER],[te.ADMIN]:[te.KHUB_ADMIN,te.USERS_ADMIN,te.PORTAL_ADMIN,te.BEHAVIOR_DATA_USER],[te.GENERATIVE_AI_EXPORT_USER]:[te.GENERATIVE_AI_USER]};function Vl(t,e){return t===e||(_d[t]??[]).some(i=>Vl(i,e))}function Fl(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(r=>Vl(r,e))}var Fr=f(S());var Xn=f(S());var kt=class t{static get(e){let{baseUrl:i,apiIntegrationIdentifier:r}=P.getState(),n=e??r;if(i&&n&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(i,n,!0)}static await(e){return new Promise(i=>{let r=t.get(e);if(r)i(r);else{let n=P.subscribe(()=>{r=t.get(e),r&&(n(),i(r))})}})}};var ri=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:kt.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):kt.await()}};var Le=class extends ri{constructor(e=!0,i){var r;super(i),this.sortObjectFields=(o,s)=>typeof s!="object"||s==null||Array.isArray(s)?s:Object.fromEntries(Object.entries(s).sort(([a],[l])=>a.localeCompare(l)));let n=this.constructor;n.commonCache=(r=n.commonCache)!==null&&r!==void 0?r:new Xn.CacheRegistry,this.cache=e?n.commonCache:new Xn.CacheRegistry}clearCache(){this.cache.clearAll()}hash(e){return String(Array.from(JSON.stringify(e,this.sortObjectFields)).reduce((i,r)=>0|31*i+r.charCodeAt(0),0))}};var Mr=class extends Le{async listMySearches(){let{session:e}=P.getState();return Fl(e,te.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),300*1e3):[]}};var $r=class extends Le{async listMyBookmarks(){let e=P.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),300*1e3):[]}};var Ur=class extends Le{constructor(){super(...arguments),this.CACHE_DURATION=180*1e3}async getUserAssetCount(e){if(this.isAuthenticated())return this.cache.get(`user-asset-count-${e}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/${e}`),this.CACHE_DURATION)}async getUserBookmarkCountByMap(e){if(this.isAuthenticated())return this.cache.get(`user-bookmark-count-by-map-${e}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/BOOKMARKS/${e}`),this.CACHE_DURATION)}isAuthenticated(){let e=P.getState().session;return!!e?.sessionAuthenticated}};var Vr=class extends Le{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 e=P.getState().session;return!!e?.sessionAuthenticated}};var Cd="ft-user-assets",wd={setAssetCount:(t,e)=>{let{userAssetType:i,count:r}=e.payload.assetCount;t.assetCounts.allAsset[i]=r},clearAssetCount:t=>{Object.values(ke).forEach(e=>{t.assetCounts.allAsset[e]=void 0})},setBookmarkCountByMap:(t,e)=>{let i=e.payload.mapId;t.assetCounts.bookmarkByMap[i]=e.payload.count},clearBookmarkCountByMap:t=>{t.assetCounts.bookmarkByMap={}},addAsset:(t,e)=>{let{assetType:i,mapId:r,asset:n}=e.payload;Jn(t,i,[...Zn(t,i),n]),Bl(t,i,1,r),Hl(t,n)},editAsset:(t,e)=>{let{assetType:i,asset:r}=e.payload;Jn(t,i,Zn(t,i).map(n=>n.id===r.id?r:n)),Hl(t,r)},removeAsset:(t,e)=>{let{assetType:i,mapId:r,assetId:n}=e.payload;Jn(t,i,Zn(t,i).filter(o=>o.id!==n)),Bl(t,i,-1,r)}},zl={[ke.SEARCHES]:"savedSearches",[ke.BOOKMARKS]:"bookmarks",[ke.BOOKS]:void 0,[ke.COLLECTIONS]:void 0},Zn=(t,e)=>{var i;let r=zl[e];return r?(i=t[r])!==null&&i!==void 0?i:[]:[]},Jn=(t,e,i)=>{let r=zl[e];r&&(t[r]=i)},Bl=(t,e,i,r)=>{let n=t.assetCounts.allAsset[e];if(n!==void 0&&(t.assetCounts.allAsset[e]=Math.max(0,n+i),e===ke.BOOKMARKS&&r)){let o=t.assetCounts.bookmarkByMap[r];t.assetCounts.bookmarkByMap[r]=Math.max(0,o+i)}},Hl=(t,e)=>{let i=t.assetLabels.map(n=>n.title),r=e.labels.filter(n=>!i.includes(n)).map(n=>({title:n}));t.assetLabels.push(...r)},ge=Fr.FtReduxStore.get({name:Cd,reducers:wd,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(ke).map(t=>[t,void 0])),bookmarkByMap:{}},assetLabels:[]}}),Qn=class{constructor(e=new Ur,i=new Vr){this.assetCountsService=e,this.assetLabelsService=i,this.currentSession=P.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new $r,this.savedSearchesService=new Mr,P.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:i}=P.getState();(0,Fr.deepEqual)((e=this.currentSession)===null||e===void 0?void 0:e.profile,i?.profile)||(this.currentSession=i,this.clearMySearches(),this.reloadBookmarks(),this.clearUserAssetCounts(),this.reloadAssetLabels())}clearUserAssetCounts(){this.assetCountsService.clearCache(),ge.actions.clearAssetCount(),ge.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),ge.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),ge.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();ge.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let e=await this.assetLabelsService.getUserAssetLabels();ge.actions.assetLabels(e)}async loadAssetCount(e){let i=await this.assetCountsService.getUserAssetCount(e);i&&ge.getState().assetCounts.allAsset[e]!==i.count&&ge.actions.setAssetCount({assetCount:i})}async loadBookmarkByMapId(e){let i=await this.assetCountsService.getUserBookmarkCountByMap(e);i&&ge.getState().assetCounts.bookmarkByMap[e]!==i.count&&ge.actions.setBookmarkCountByMap({count:i.count,mapId:e})}async reloadAssetCount(e){this.assetCountsService.clearCache();let i=Object.keys(ge.getState().assetCounts.bookmarkByMap).length!==0;e===ke.BOOKMARKS&&i&&ge.actions.clearBookmarkCountByMap(),ge.getState().assetCounts.allAsset[e]!==void 0&&await this.loadAssetCount(e)}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var e;if(this.bookmarksAreUsed){let i=!((e=this.currentSession)===null||e===void 0)&&e.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;ge.actions.bookmarks(i)}}},Td=new Qn;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=Td);var eo=class{addCommand(e,i=!1){P.commands.add(e,i)}consumeCommand(e){return P.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new eo;var Ie=f(S());var jl,ni=class extends CustomEvent{constructor(e){super("ft-i18n-context-loaded",{detail:e})}},Od=Symbol("clearAfterUnitTest"),Br=class extends(0,Ie.withEventBus)(Le){constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[jl]=()=>{this.defaultMessages={},this.cache=new Ie.CacheRegistry,this.listeners={}},this.currentUiLocale=P.getState().uiLocale,P.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=P.getState();this.currentUiLocale!==e&&(this.currentUiLocale=e,this.cache.clearAll(),this.notifyAll())}addContext(e){let i=e.name.toLowerCase();this.cache.setFinal(i,e),this.notify(i)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(e,i){var r;if(e=e.toLowerCase(),i&&Object.keys(i).length>0){let n={...(r=this.defaultMessages[e])!==null&&r!==void 0?r:{},...i};(0,Ie.deepEqual)(this.defaultMessages[e],n)||(this.defaultMessages[e]=n,await this.notify(e))}return this.fetchContext(e)}resolveContext(e){var i,r;return this.fetchContext(e),(r=(i=this.cache.getNow(e))===null||i===void 0?void 0:i.messages)!==null&&r!==void 0?r:{}}resolveRawMessage(e,i){let r=e.toLowerCase();return this.resolveContext(r)[i]}resolveMessage(e,i,...r){var n;let o=e.toLowerCase(),s=this.resolveContext(o);return new Ie.ParametrizedLabelResolver((n=this.defaultMessages[o])!==null&&n!==void 0?n:{},s).resolve(i,...r)}async fetchContext(e){let i=!this.cache.has(e),r;try{r=await this.cache.get(e,()=>this.messageContextProvider(this.currentUiLocale,e)),i&&await this.notify(e)}catch(n){!(n instanceof Ie.CanceledPromiseError)&&i&&console.error(n)}return r}subscribe(e,i){var r;return e=e.toLowerCase(),this.listeners[e]=(r=this.listeners[e])!==null&&r!==void 0?r:new Set,this.listeners[e].add(i),()=>{var n;return(n=this.listeners[e])===null||n===void 0?void 0:n.delete(i)}}async notifyAll(){let e=Object.keys(this.listeners);document.body.dispatchEvent(new ni({loadedContexts:e})),this.dispatchEvent(new ni({loadedContexts:e})),await Promise.all(e.map(i=>this.notify(i,!1)))}async notify(e,i=!0){i&&(document.body.dispatchEvent(new ni({loadedContexts:[e]})),this.dispatchEvent(new ni({loadedContexts:[e]}))),this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(r=>(0,Ie.delay)(0).then(()=>r()).catch(()=>null)))}};jl=Od;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends Br{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends Br{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});var oi=window.FluidTopicsI18nService,Hr=window.FluidTopicsCustomI18nService;var Wl=f(S()),to=class{highlightHtml(e,i,r){(0,Wl.highlightHtml)(e,i,r)}};window.FluidTopicsHighlightHtmlService=new to;var Kl=f(S());var io=class{isDate(e){var i,r,n,o;return(o=(n=((r=(i=P.getState().metadataConfiguration)===null||i===void 0?void 0:i.descriptors)!==null&&r!==void 0?r:[]).find(a=>a.key===e))===null||n===void 0?void 0:n.date)!==null&&o!==void 0?o:!1}format(e,i){var r,n,o,s;if(e==null)return"";try{return Kl.DateFormatter.format(e,(r=i?.locale)!==null&&r!==void 0?r:P.getState().uiLocale,(n=i?.longFormat)!==null&&n!==void 0?n:!1,(o=i?.withTime)!==null&&o!==void 0?o:!1,(s=i?.onlyTime)!==null&&s!==void 0?s:!1)}catch(a){throw console.error(`Date ${JSON.stringify(e)} is not valid`,a),a}}};window.FluidTopicsDateService=new io;var Gl=f(S());var Ui=class{static get(e,i){var r,n,o,s;let a=P.getState(),{lang:l,region:c}=(o=(n=(r=a.localesConfiguration)===null||r===void 0?void 0:r.defaultLocales)===null||n===void 0?void 0:n.defaultContentLocale)!==null&&o!==void 0?o:{lang:"en",region:"US"};return new Gl.SearchPlaceConverter(a.baseUrl,e??20,(s=a.localesConfiguration)===null||s===void 0?void 0:s.allLanguagesAllowed,i??`${l}-${c}`)}};var ro=class{urlToSearchRequest(e){return Ui.get().parse(e)}searchRequestToUrl(e){return Ui.get().serialize(e)}};window.FluidTopicsUrlService=new ro;var nt=f(S());var It=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{nextLocation:e}})}};It.eventName="before-location-change";var Mt=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{currentItem:e}})}};Mt.eventName="change";var no=class{itemName(e){return`fluid-topics-history-item-${e}`}get(e){let i=sessionStorage.getItem(this.itemName(e));return i?JSON.parse(i):void 0}set(e,i){sessionStorage.setItem(this.itemName(e),JSON.stringify(i))}},ql=new no;var zr=class t extends nt.WithEventBus{static build(){return new t(window.history,ql,()=>window.location,!1)}constructor(e,i,r,n){var o,s;super(),this.history=e,this.historyStorage=i,this.windowLocation=r,this.states=[],this.realPushState=e.pushState,this.realReplaceState=e.replaceState,this.initialIndex=(s=(o=e.state)===null||o===void 0?void 0:o.index)!==null&&s!==void 0?s:e.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(n)}setCurrentState(e,i=!1){let r=i&&this.currentIndex===e.index-1;this.currentState={...this.buildCurrentState(),...e},this.currentIndex=this.currentState.index,this.states[this.currentIndex]=this.currentState,r&&(this.states=this.states.slice(0,this.currentIndex+1)),this.historyStorage.set(this.currentIndex,this.currentState),(0,nt.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,this.windowLocation().href]),setTimeout(()=>this.dispatchEvent(new Mt(this.currentItem())),0)}installProxies(){let e=i=>(r,n,[o,s,a])=>{let l=new It(new URL(typeof a=="string"?a:(a??this.windowLocation()).href,window.location.origin));this.dispatchEvent(l);let c=i(),u={...c===this.currentIndex?this.currentState:void 0,...o,index:c,href:l.detail.nextLocation.href};r.apply(n,[u,s,u.href]),this.setCurrentState(u,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:e(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:e(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",e=>this.setCurrentState(e.state)),document.querySelector("title")==null&&document.head.append(document.createElement("title")),new MutationObserver(()=>this.updateCurrentState({title:document.title})).observe(document.querySelector("title"),{subtree:!0,characterData:!0,childList:!0})}initData(e){for(let i=this.history.length-1;i>=0;i--)e?this.states[i]=this.historyStorage.get(i):setTimeout(()=>this.states[i]=this.historyStorage.get(i),this.history.length-i)}updateCurrentState(e){var i;let r={...this.buildCurrentState(),...e,index:this.currentIndex,title:(i=e?.title)!==null&&i!==void 0?i:this.currentState.title};this.setCurrentState(r)}addBeforeLocationChangeListener(e){this.addEventListener(It.eventName,e)}removeBeforeLocationChangeListener(e){this.removeEventListener(It.eventName,e)}addHistoryChangeListener(e){this.addEventListener(Mt.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(Mt.eventName,e)}currentItem(){return(0,nt.deepCopy)(this.currentState)}back(){let e=this.previousDifferentMajorPosition();e>=0?this.history.go(e-this.currentIndex):this.currentIndex!==this.initialIndex?this.history.go(this.initialIndex-this.currentIndex):this.history.back()}backwardItem(){return(0,nt.deepCopy)(this.states[this.previousDifferentMajorPosition()])}backwardItemMatching(e){let i=this.states.filter(r=>!!r).filter(r=>r.index<this.currentIndex).reverse();return(0,nt.deepCopy)(i.find(r=>e(r)))}previousDifferentMajorPosition(){let e=this.currentIndex>0?this.currentIndex-1:0;for(;e>0&&!this.isDifferentMajorState(e);)e--;return e}forward(){let e=this.nextMajorPosition();e&&e<this.states.length?this.history.go(e-this.currentIndex):this.history.forward()}forwardItem(){let e=this.nextMajorPosition();if(e)return(0,nt.deepCopy)(this.states[e])}nextMajorPosition(){let e=this.currentIndex;if(!(e>=this.states.length)){do e++;while(e<this.states.length&&!this.isDifferentMajorState(e));return this.getHigherPositionInTheSameState(e)}}getHigherPositionInTheSameState(e){var i;let r=(i=this.states[e])===null||i===void 0?void 0:i.majorStateId;if(!r)return e;let n=e,o=e+1;for(;this.states.length>o&&!this.isDifferentMajorState(o,r);)this.hasState(o)&&(n=o),o++;return n}buildCurrentState(){var e,i;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(i=(e=this.history.state)===null||e===void 0?void 0:e.title)!==null&&i!==void 0?i:document.title}}hasState(e){return this.states[e]!=null}isDifferentMajorState(e,i){var r;if(!this.hasState(e))return!1;let n=i??this.currentState.majorStateId,o=(r=this.states[e])===null||r===void 0?void 0:r.majorStateId;return o==null||o!=n}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=zr.build(),window.FluidTopicsHistoryService={currentItem:()=>window.FluidTopicsInternalHistoryService.currentItem(),back:()=>window.FluidTopicsInternalHistoryService.back(),forward:()=>window.FluidTopicsInternalHistoryService.forward(),backwardItem:()=>window.FluidTopicsInternalHistoryService.backwardItem(),forwardItem:()=>window.FluidTopicsInternalHistoryService.forwardItem(),backwardItemMatching:t=>window.FluidTopicsInternalHistoryService.backwardItemMatching(t),addHistoryChangeListener:t=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(t),removeHistoryChangeListener:t=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(t),addBeforeLocationChangeListener:t=>window.FluidTopicsInternalHistoryService.addBeforeLocationChangeListener(t),removeBeforeLocationChangeListener:t=>window.FluidTopicsInternalHistoryService.removeBeforeLocationChangeListener(t)});var Yl=f(z());var Xl=Yl.css`
632
- `;var Ql=f(z()),ye=f(re()),Vt=f(S());var $t=f(S());function Zl(t,e){let{authenticationRequired:i,session:r}=P.getState();return i&&!r?.sessionAuthenticated?Promise.resolve(e):t()}var jr=class extends ri{async updateUiLocale(e){return(await this.awaitApi).updateUiLocale(e)}};var oo=class t extends $t.FtStateManager{static build(e){return new t(P,e)}constructor(e,i){super(),this.store=e,this.cache=new $t.CacheRegistry,this.withManualResources=!0,this.userLocaleService=new jr,this.cleanSessionDebouncer=new $t.Debouncer,this.reloadConfiguration=()=>{var r;(r=this.cache)===null||r===void 0||r.clear("availableContentLocales"),this.updateAvailableContentLocales()},this.reloadDebouncer=new $t.Debouncer(500),this.apiProvider=i??(()=>kt.get())}setWithManualResources(e){this.withManualResources=e,this.updateIfNeeded()}addListeners(){this.store.addEventListener(Nt.eventName,this.reloadConfiguration)}removeListeners(){this.store.removeEventListener(Nt.eventName,this.reloadConfiguration)}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.store.getState().session==null&&this.updateSession(),this.store.getState().metadataConfiguration==null&&this.updateMetadataConfiguration()),this.store.getState().localesConfiguration==null&&this.updateLocalesConfiguration(),(this.store.getState().availableContentLocales==null||this.store.getState().availableContentLocales.length==0)&&this.updateAvailableContentLocales())}async updateSession(){let e=await this.cache.get("session",async()=>{let i=await this.apiProvider().getCurrentSession();return i.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.setSession(void 0)},i.idleTimeoutInMillis),i});this.setSession(e)}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 e;let i=await this.cache.get("availableContentLocales",()=>Zl(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}));this.setAvailableContentLocales((e=i.contentLocales)!==null&&e!==void 0?e:[])}setStickyFilters(e){this.store.actions.stickyFilters(e)}setBaseUrl(e){this.store.actions.baseUrl(e),window.fluidTopicsBaseUrl=e}setTenantId(e){this.store.actions.tenantId(e)}setApiIntegrationIdentifier(e){this.store.actions.apiIntegrationIdentifier(e)}setApiIntegrationAppVersion(e){this.store.actions.apiIntegrationAppVersion(e)}setUiLocale(e){this.store.actions.uiLocale(e)}setLocalesConfiguration(e){this.store.actions.localesConfiguration(e),setTimeout(()=>this.updateIfNeeded())}setAvailableContentLocales(e){this.store.actions.availableContentLocales(e),setTimeout(()=>this.updateIfNeeded())}stopReloadDebouncer(){this.reloadDebouncer.cancel()}requestUiLocaleUpdate(e,i){this.userLocaleService.updateUiLocale({uiLocale:e,contentLocale:i}).then(r=>{r.uiLocaleChanged&&(this.reloadDebouncer.run(()=>window.location.reload()),this.store.dispatchEvent(new $i(r)))}).catch(()=>{})}setMetadataConfiguration(e){this.store.actions.metadataConfiguration(e),setTimeout(()=>this.updateIfNeeded())}setNoCustom(e){this.store.actions.noCustom(e)}setEditorMode(e){this.store.actions.editorMode(e)}setNoCustomComponent(e){this.store.actions.noCustomComponent(e)}setNoCustomCode(e){this.store.actions.noCustomCode(e)}setSession(e){this.store.actions.session(e),setTimeout(()=>this.updateIfNeeded())}setOpenExternalDocumentInNewTab(e){this.store.actions.openExternalDocumentInNewTab(e)}setNavigatorOnline(e){this.store.actions.navigatorOnline(e)}setForcedOffline(e){this.store.actions.forcedOffline(e)}setAuthenticationRequired(e){this.store.actions.authenticationRequired(e)}},Jl=oo.build();var Ut=class extends Event{constructor(e,i,r,n){super("context-request",{bubbles:!0,composed:!0}),this.context=e,this.contextTarget=i,this.callback=r,this.subscribe=n??!1}};var Vi=class{constructor(){this.pendingContextRequests=new Map,this.onContextProvider=e=>{let i=this.pendingContextRequests.get(e.context);if(i===void 0)return;this.pendingContextRequests.delete(e.context);let{requests:r}=i;for(let{elementRef:n,callbackRef:o}of r){let s=n.deref(),a=o.deref();s===void 0||a===void 0||s.dispatchEvent(new Ut(e.context,s,a,!0))}},this.onContextRequest=e=>{if(e.subscribe!==!0)return;let i=e.contextTarget??e.composedPath()[0],r=e.callback,n=this.pendingContextRequests.get(e.context);n===void 0&&this.pendingContextRequests.set(e.context,n={callbacks:new WeakMap,requests:[]});let o=n.callbacks.get(i);o===void 0&&n.callbacks.set(i,o=new WeakSet),o.has(r)||(o.add(r),n.requests.push({elementRef:new WeakRef(i),callbackRef:new WeakRef(r)}))}}attach(e){e.addEventListener("context-request",this.onContextRequest),e.addEventListener("context-provider",this.onContextProvider)}detach(e){e.removeEventListener("context-request",this.onContextRequest),e.removeEventListener("context-provider",this.onContextProvider)}};var ae=function(t,e,i,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,i):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,i,o):s(e,i))||o);return n>3&&o&&Object.defineProperty(e,i,o),o},G=class extends Vt.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.noCustomCode=!1,this.withManualResources=!1,this.navigatorOnline=!1,this.forcedOffline=!1,this.authenticationRequired=!1,this.messageContexts=[],this.stateManager=Jl,this.contextRoot=new Vi}render(){return Ql.html`
631
+ `;var Rs=["top","right","bottom","left"],Os=["start","end"],Sn=Rs.reduce((t,e)=>t.concat(e,e+"-"+Os[0],e+"-"+Os[1]),[]),Si=Math.min,ut=Math.max,Ei=Math.round;var Ke=t=>({x:t,y:t}),ru={left:"right",right:"left",bottom:"top",top:"bottom"};function Ls(t,e,i){return ut(t,Si(e,i))}function Ji(t,e){return typeof t=="function"?t(e):t}function Ai(t){return t.split("-")[0]}function dt(t){return t.split("-")[1]}function En(t){return t==="x"?"y":"x"}function An(t){return t==="y"?"height":"width"}function Qi(t){let e=t[0];return e==="t"||e==="b"?"y":"x"}function _n(t){return En(Qi(t))}function Ps(t,e,i){i===void 0&&(i=!1);let r=dt(t),n=_n(t),o=An(n),s=n==="x"?r===(i?"end":"start")?"right":"left":r==="start"?"bottom":"top";return e.reference[o]>e.floating[o]&&(s=vn(s)),[s,vn(s)]}function ks(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}function vn(t){let e=Ai(t);return ru[e]+t.slice(e.length)}function nu(t){var e,i,r,n;return{top:(e=t.top)!=null?e:0,right:(i=t.right)!=null?i:0,bottom:(r=t.bottom)!=null?r:0,left:(n=t.left)!=null?n:0}}function Ds(t){return typeof t!="number"?nu(t):{top:t,right:t,bottom:t,left:t}}function Tt(t){let{x:e,y:i,width:r,height:n}=t;return{width:r,height:n,top:i,left:e,right:e+r,bottom:i+n,x:e,y:i}}function Ns(t,e,i){let{reference:r,floating:n}=t,o=Qi(e),s=_n(e),a=An(s),l=Ai(e),c=o==="y",u=r.x+r.width/2-n.width/2,d=r.y+r.height/2-n.height/2,p=r[a]/2-n[a]/2,g;switch(l){case"top":g={x:u,y:r.y-n.height};break;case"bottom":g={x:u,y:r.y+r.height};break;case"right":g={x:r.x+r.width,y:d};break;case"left":g={x:r.x-n.width,y:d};break;default:g={x:r.x,y:r.y}}let x=dt(e);return x&&(g[s]+=p*(x==="end"?1:-1)*(i&&c?-1:1)),g}async function Is(t,e){var i;e===void 0&&(e={});let{x:r,y:n,platform:o,rects:s,elements:a,strategy:l}=t,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:p=!1,padding:g=0}=Ji(e,t),x=Ds(g),b=a[p?d==="floating"?"reference":"floating":d],T=Tt(await o.getClippingRect({element:(i=await(o.isElement==null?void 0:o.isElement(b)))==null||i?b:b.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,strategy:l})),V=d==="floating"?{x:r,y:n,width:s.floating.width,height:s.floating.height}:s.reference,v=await(o.getOffsetParent==null?void 0:o.getOffsetParent(a.floating)),L=await(o.isElement==null?void 0:o.isElement(v))&&await(o.getScale==null?void 0:o.getScale(v))||{x:1,y:1},M=Tt(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:V,offsetParent:v,strategy:l}):V);return{top:(T.top-M.top+x.top)/L.y,bottom:(M.bottom-T.bottom+x.bottom)/L.y,left:(T.left-M.left+x.left)/L.x,right:(M.right-T.right+x.right)/L.x}}var ou=50,Ms=async(t,e,i)=>{let{placement:r="bottom",strategy:n="absolute",middleware:o=[],platform:s}=i,a=s.detectOverflow?s:{...s,detectOverflow:Is},l=await(s.isRTL==null?void 0:s.isRTL(e)),c=await s.getElementRects({reference:t,floating:e,strategy:n}),{x:u,y:d}=Ns(c,r,l),p=r,g=0,x={};for(let A=0;A<o.length;A++){let b=o[A];if(!b)continue;let{name:T,fn:V}=b,{x:v,y:L,data:M,reset:X}=await V({x:u,y:d,initialPlacement:r,placement:p,strategy:n,middlewareData:x,rects:c,platform:a,elements:{reference:t,floating:e}});u=v??u,d=L??d,x[T]={...x[T],...M},X&&g<ou&&(g++,typeof X=="object"&&(X.placement&&(p=X.placement),X.rects&&(c=X.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:n}):X.rects),{x:u,y:d}=Ns(c,p,l)),A=-1)}return{x:u,y:d,placement:p,strategy:n,middlewareData:x}};function su(t,e,i){return(t?[...i.filter(n=>dt(n)===t),...i.filter(n=>dt(n)!==t)]:i.filter(n=>Ai(n)===n)).filter(n=>t?dt(n)===t||(e?ks(n)!==n:!1):!0)}var $s=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(e){var i,r,n;let{rects:o,middlewareData:s,placement:a,platform:l,elements:c}=e,{crossAxis:u=!1,alignment:d,allowedPlacements:p=Sn,autoAlignment:g=!0,...x}=Ji(t,e),A=d!==void 0||p===Sn?su(d||null,g,p):p,b=((i=s.autoPlacement)==null?void 0:i.index)||0,T=A[b];if(T==null)return{};if(a!==T)return{reset:{placement:A[0]}};let V=await l.detectOverflow(e,x),v=Ps(T,o,await(l.isRTL==null?void 0:l.isRTL(c.floating))),L=[V[Ai(T)],V[v[0]],V[v[1]]],M=[...((r=s.autoPlacement)==null?void 0:r.overflows)||[],{placement:T,overflows:L}],X=A[b+1];if(X)return{data:{index:b+1,overflows:M},reset:{placement:X}};let j=M.map(ke=>{let gt=dt(ke.placement);return[ke.placement,gt&&u?ke.overflows.slice(0,2).reduce((jc,Wc)=>jc+Wc,0):ke.overflows[0],ke.overflows]}).sort((ke,gt)=>ke[1]-gt[1]),di=((n=j.filter(ke=>ke[2].slice(0,dt(ke[0])?2:3).every(gt=>gt<=0))[0])==null?void 0:n[0])||j[0][0];return di!==a?{data:{index:b+1,overflows:M},reset:{placement:di}}:{}}}};var Us=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){let{x:i,y:r,placement:n,platform:o}=e,{mainAxis:s=!0,crossAxis:a=!1,limiter:l={fn:V=>{let{x:v,y:L}=V;return{x:v,y:L}}},...c}=Ji(t,e),u={x:i,y:r},d=await o.detectOverflow(e,c),p=Qi(n),g=En(p),x=u[g],A=u[p],b=(V,v)=>Ls(v+d[V==="y"?"top":"left"],v,v-d[V==="y"?"bottom":"right"]);s&&(x=b(g,x)),a&&(A=b(p,A));let T=l.fn({...e,[g]:x,[p]:A});return{...T,data:{x:T.x-i,y:T.y-r,enabled:{[g]:s,[p]:a}}}}}};function tr(){return typeof window<"u"}function Rt(t){return Fs(t)?(t.nodeName||"").toLowerCase():"#document"}function _e(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function et(t){var e;return(e=(Fs(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Fs(t){return tr()?t instanceof Node||t instanceof _e(t).Node:!1}function Be(t){return tr()?t instanceof Element||t instanceof _e(t).Element:!1}function tt(t){return tr()?t instanceof HTMLElement||t instanceof _e(t).HTMLElement:!1}function Vs(t){return!tr()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof _e(t).ShadowRoot}function _i(t){let{overflow:e,overflowX:i,overflowY:r,display:n}=He(t);return/auto|scroll|overlay|hidden|clip/.test(e+r+i)&&n!=="inline"&&n!=="contents"}function Bs(t){return/^(table|td|th)$/.test(Rt(t))}function Ci(t){try{if(t.matches(":popover-open"))return!0}catch{}try{return t.matches(":modal")}catch{return!1}}var au=/transform|translate|scale|rotate|perspective|filter/,lu=/paint|layout|strict|content/,Ot=t=>!!t&&t!=="none",Cn;function Yt(t){let e=Be(t)?He(t):t;return Ot(e.transform)||Ot(e.translate)||Ot(e.scale)||Ot(e.rotate)||Ot(e.perspective)||!ir()&&(Ot(e.backdropFilter)||Ot(e.filter))||au.test(e.willChange||"")||lu.test(e.contain||"")}function Hs(t){let e=pt(t);for(;tt(e)&&!Xt(e);){if(Yt(e))return e;if(Ci(e))return null;e=pt(e)}return null}function ir(){return Cn==null&&(Cn=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Cn}function Xt(t){return/^(html|body|#document)$/.test(Rt(t))}function He(t){return _e(t).getComputedStyle(t)}function wi(t){return Be(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function pt(t){if(Rt(t)==="html")return t;let e=t.assignedSlot||t.parentNode||Vs(t)&&t.host||et(t);return Vs(e)?e.host:e}function zs(t){let e=pt(t);return Xt(e)?(t.ownerDocument||t).body:tt(e)&&_i(e)?e:zs(e)}function er(t,e,i){var r;e===void 0&&(e=[]),i===void 0&&(i=!0);let n=zs(t),o=n===((r=t.ownerDocument)==null?void 0:r.body),s=_e(n);if(o){let a=rr(s);return e.concat(s,s.visualViewport||[],_i(n)?n:[],a&&i?er(a):[])}else return e.concat(n,er(n,[],i))}function rr(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function Ks(t){let e=He(t),i=parseFloat(e.width)||0,r=parseFloat(e.height)||0,n=tt(t),o=n?t.offsetWidth:i,s=n?t.offsetHeight:r,a=Ei(i)!==o||Ei(r)!==s;return a&&(i=o,r=s),{width:i,height:r,$:a}}function Gs(t){return Be(t)?t:t.contextElement}function Zt(t){let e=Gs(t);if(!tt(e))return Ke(1);let i=e.getBoundingClientRect(),{width:r,height:n,$:o}=Ks(e),s=(o?Ei(i.width):i.width)/r,a=(o?Ei(i.height):i.height)/n;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}var cu=Ke(0);function qs(t){let e=_e(t);return!ir()||!e.visualViewport?cu:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function uu(t,e,i){return e===void 0&&(e=!1),!!i&&e&&i===_e(t)}function Ti(t,e,i,r){e===void 0&&(e=!1),i===void 0&&(i=!1);let n=t.getBoundingClientRect(),o=Gs(t),s=Ke(1);e&&(r?Be(r)&&(s=Zt(r)):s=Zt(t));let a=uu(o,i,r)?qs(o):Ke(0),l=(n.left+a.x)/s.x,c=(n.top+a.y)/s.y,u=n.width/s.x,d=n.height/s.y;if(o&&r){let p=_e(o),g=Be(r)?_e(r):r,x=p,A=rr(x);for(;A&&g!==x;){let b=Zt(A),T=A.getBoundingClientRect(),V=He(A),v=T.left+(A.clientLeft+parseFloat(V.paddingLeft))*b.x,L=T.top+(A.clientTop+parseFloat(V.paddingTop))*b.y;l*=b.x,c*=b.y,u*=b.x,d*=b.y,l+=v,c+=L,x=_e(A),A=rr(x)}}return Tt({width:u,height:d,x:l,y:c})}function nr(t,e){let i=wi(t).scrollLeft;return e?e.left+i:Ti(et(t)).left+i}function Ys(t,e){let i=t.getBoundingClientRect(),r=i.left+e.scrollLeft-nr(t,i),n=i.top+e.scrollTop;return{x:r,y:n}}function du(t){let{elements:e,rect:i,offsetParent:r,strategy:n}=t,o=n==="fixed",s=et(r),a=e?Ci(e.floating):!1;if(r===s||a&&o)return i;let l={scrollLeft:0,scrollTop:0},c=Ke(1),u=Ke(0),d=tt(r);if((d||!o)&&((Rt(r)!=="body"||_i(s))&&(l=wi(r)),d)){let g=Ti(r);c=Zt(r),u.x=g.x+r.clientLeft,u.y=g.y+r.clientTop}let p=s&&!d&&!o?Ys(s,l):Ke(0);return{width:i.width*c.x,height:i.height*c.y,x:i.x*c.x-l.scrollLeft*c.x+u.x+p.x,y:i.y*c.y-l.scrollTop*c.y+u.y+p.y}}function pu(t){return t.getClientRects?Array.from(t.getClientRects()):[]}function fu(t){let e=wi(t),i=t.ownerDocument.body,r=ut(t.scrollWidth,t.clientWidth,i.scrollWidth,i.clientWidth),n=ut(t.scrollHeight,t.clientHeight,i.scrollHeight,i.clientHeight),o=-e.scrollLeft+nr(t),s=-e.scrollTop;return He(i).direction==="rtl"&&(o+=ut(t.clientWidth,i.clientWidth)-r),{width:r,height:n,x:o,y:s}}var hu=25;function mu(t,e,i){i===void 0&&(i="viewport");let r=i==="layoutViewport",n=_e(t),o=et(t),s=n.visualViewport,a=o.clientWidth,l=o.clientHeight,c=0,u=0;if(s){let p=!ir()||e==="fixed";r?p||(c=-s.offsetLeft,u=-s.offsetTop):(a=s.width,l=s.height,p&&(c=s.offsetLeft,u=s.offsetTop))}if(nr(o)<=0){let p=o.ownerDocument,g=p.body,x=getComputedStyle(g),A=p.compatMode==="CSS1Compat"&&parseFloat(x.marginLeft)+parseFloat(x.marginRight)||0,b=Math.abs(o.clientWidth-g.clientWidth-A),T=getComputedStyle(o).scrollbarGutter==="stable both-edges"?b/2:b;T<=hu&&(a-=T)}return{width:a,height:l,x:c,y:u}}function gu(t,e){let i=Ti(t,!0,e==="fixed"),r=i.top+t.clientTop,n=i.left+t.clientLeft,o=Zt(t),s=t.clientWidth*o.x,a=t.clientHeight*o.y,l=n*o.x,c=r*o.y;return{width:s,height:a,x:l,y:c}}function js(t,e,i){let r;if(e==="viewport"||e==="layoutViewport")r=mu(t,i,e);else if(e==="document")r=fu(et(t));else if(Be(e))r=gu(e,i);else{let n=qs(t);r={x:e.x-n.x,y:e.y-n.y,width:e.width,height:e.height}}return Tt(r)}function yu(t,e){let i=e.get(t);if(i)return i;let r=er(t,[],!1).filter(a=>Be(a)&&Rt(a)!=="body"),n=null,o=He(t).position==="fixed",s=o?pt(t):t;for(;Be(s)&&!Xt(s);){let a=He(s),l=Yt(s),c=n?n.position:o?"fixed":"";!l&&(c==="fixed"||c==="absolute"&&a.position==="static")?r=r.filter(d=>d!==s):n=a,s=pt(s)}return e.set(t,r),r}function bu(t){let{element:e,boundary:i,rootBoundary:r,strategy:n}=t,s=[...i==="clippingAncestors"?Ci(e)?[]:yu(e,this._c):[].concat(i),r],a=js(e,s[0],n),l=a.top,c=a.right,u=a.bottom,d=a.left;for(let p=1;p<s.length;p++){let g=js(e,s[p],n);l=ut(g.top,l),c=Si(g.right,c),u=Si(g.bottom,u),d=ut(g.left,d)}return{width:c-d,height:u-l,x:d,y:l}}function xu(t){let{width:e,height:i}=Ks(t);return{width:e,height:i}}function vu(t,e,i){let r=tt(e),n=et(e),o=i==="fixed",s=Ti(t,!0,o,e),a={scrollLeft:0,scrollTop:0},l=Ke(0);if((r||!o)&&((Rt(e)!=="body"||_i(n))&&(a=wi(e)),r)){let p=Ti(e,!0,o,e);l.x=p.x+e.clientLeft,l.y=p.y+e.clientTop}!r&&n&&(l.x=nr(n));let c=n&&!r&&!o?Ys(n,a):Ke(0),u=s.left+a.scrollLeft-l.x-c.x,d=s.top+a.scrollTop-l.y-c.y;return{x:u,y:d,width:s.width,height:s.height}}function wn(t){return He(t).position==="static"}function Ws(t,e){if(!tt(t)||He(t).position==="fixed")return null;if(e)return e(t);let i=t.offsetParent;return et(t)===i&&(i=i.ownerDocument.body),i}function Xs(t,e){let i=_e(t);if(Ci(t))return i;if(!tt(t)){let n=pt(t);for(;n&&!Xt(n);){if(Be(n)&&!wn(n))return n;n=pt(n)}return i}let r=Ws(t,e);for(;r&&Bs(r)&&wn(r);)r=Ws(r,e);return r&&Xt(r)&&wn(r)&&!Yt(r)?i:r||Hs(t)||i}var Su=async function(t){let e=this.getOffsetParent||Xs,i=this.getDimensions,r=await i(t.floating);return{reference:vu(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Eu(t){return He(t).direction==="rtl"}var or={convertOffsetParentRelativeRectToViewportRelativeRect:du,getDocumentElement:et,getClippingRect:bu,getOffsetParent:Xs,getElementRects:Su,getClientRects:pu,getDimensions:xu,getScale:Zt,isElement:Be,isRTL:Eu};var Zs=$s,Js=Us;var Qs=(t,e,i)=>{let r=new Map,n=i??{},o={...or,...n.platform,_c:r};return Ms(t,e,{...n,platform:o})};function ea(t){return Au(t)}function Tn(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}function Au(t){for(let e=t;e;e=Tn(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=Tn(t);e;e=Tn(e)){if(!(e instanceof Element))continue;let i=getComputedStyle(e);if(i.display!=="contents"&&(i.position!=="static"||Yt(i)||e.tagName==="BODY"))return e}return null}async function ta(t,e,i){let r;return typeof i=="object"?r=i:r={placement:i},Qs(t,e,{strategy:r.strategy,platform:{...or,getOffsetParent:n=>or.getOffsetParent(n,ea)},middleware:[Js({crossAxis:!0}),Zs({allowedPlacements:[r.placement]})]})}var ai=f(S());var Yn=f(re());var ia=f(re(),1);var On=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)};function ra(t,e){return(0,ia.property)({type:Object,converter:{fromAttribute:i=>{if(i==null)return Oi(t);try{return JSON.parse(i)}catch{return Oi(t)}},toAttribute:i=>JSON.stringify(i)},hasChanged:Ri,...e??{}})}function _u(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(t.constructor!==e.constructor)return!1;let i,r;if(Array.isArray(t)){if(i=t.length,i!=e.length)return!1;for(r=i;r--!==0;)if(!Jt(t[r],e[r]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(r of t.entries())if(!e.has(r[0]))return!1;for(r of t.entries())if(!Jt(r[1],e.get(r[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(r of t.entries())if(!e.has(r[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();let n=s=>Object.keys(s).filter(a=>s[a]!=null),o=n(t);if(i=o.length,i!==n(e).length)return!1;for(r=i;r--!==0;)if(!Object.prototype.hasOwnProperty.call(e,o[r]))return!1;for(r=i;r--!==0;){let s=o[r];if(!Jt(t[s],e[s]))return!1}return!0}return t!==t&&e!==e||t==null&&e==null}function Jt(t,e){try{return _u(t,e)}catch{return!1}}function Ri(t,e){return!Jt(t,e)}function Oi(t){return typeof window.structuredClone=="function"?structuredClone(t):t!=null?JSON.parse(JSON.stringify(t)):t}function sr(t,e){let i=r=>r[t]===!0;return r=>{if(i(r))return r;let n=e(r);return n[t]=!0,n}}var na=f(re(),1);var Rn=t=>{let e=t??{};return(i,r)=>{var n;let o={hasChanged:Ri,attribute:!1,...e};(0,na.property)(o)(i,r);let s=i.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(r,{selector:(n=e.selector)!==null&&n!==void 0?n:(a=>a[r]),store:e.store})}};var ar=class{constructor(){this.queue=[]}add(e,i=!1){i&&this.clear(e.type),this.queue.push(e)}consume(e){let i=this.queue.find(r=>r.type===e);return i&&(this.queue=this.queue.filter(r=>r!==i)),i}clear(e){typeof e=="string"?this.queue=this.queue.filter(i=>i.type!==e):this.queue=this.queue.filter(i=>!e.test(i.type))}};var Lt=f(re(),1);var lr=class{constructor(e=0){this.timeout=e,this.callbacks=[]}run(e,i){return this.callbacks=[e],this.debounce(i)}queue(e,i){return this.callbacks.push(e),this.debounce(i)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(e){return this.promise==null&&(this.promise=new Promise((i,r)=>{this.resolvePromise=i,this.rejectPromise=r})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),e??this.timeout),this.promise}async runCallbacks(){var e,i;let r=[...this.callbacks];this.callbacks=[];let n=(e=this.rejectPromise)!==null&&e!==void 0?e:(()=>null),o=(i=this.resolvePromise)!==null&&i!==void 0?i:(()=>null);this.clearPromise();for(let s of r)try{await s()}catch(a){n(a);return}o(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var sa=f(z(),1);var cr=globalThis,Cu=cr.ShadowRoot&&(cr.ShadyCSS===void 0||cr.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype;var oa=(t,e)=>{if(Cu)t.adoptedStyleSheets=e.map(i=>i instanceof CSSStyleSheet?i:i.styleSheet);else for(let i of e){let r=document.createElement("style"),n=cr.litNonce;n!==void 0&&r.setAttribute("nonce",n),r.textContent=i.cssText,t.appendChild(r)}};var ur=class extends sa.LitElement{get scopedRegistryConstructor(){return this.constructor}createRenderRoot(){let e=this.scopedRegistryConstructor;e.elementDefinitions&&!e.registry&&(e.registry=new CustomElementRegistry,e.defineScopedElements(e.elementDefinitions));let i={...e.shadowRootOptions,customElements:e.registry},r=this.renderOptions.creationScope=this.attachShadow(i);return oa(r,e.elementStyles),r}static canDefineScopedElement(e){return!!this.registry&&!this.registry.get(e)}static defineScopedElements(e){Object.entries(e).forEach(([i,r])=>this.defineScopedElement(i,r))}static defineScopedElement(e,i){On(e)(i),this.canDefineScopedElement(e)&&this.registry.define(e,i)}canDefineScopedElement(e){return this.scopedRegistryConstructor.canDefineScopedElement(e)}defineScopedElements(e){this.scopedRegistryConstructor.defineScopedElements(e)}defineScopedElement(e,i){this.scopedRegistryConstructor.defineScopedElement(e,i)}};function aa(t,e,...i){var r;let n=t.querySelector(e);for(let o of i)n=(r=n?.shadowRoot)===null||r===void 0?void 0:r.querySelector(o);return n}var ei=function(t,e,i,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,i):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,i,o):s(e,i))||o);return n>3&&o&&Object.defineProperty(e,i,o),o},da,la=Symbol("constructorPrototype"),ca=Symbol("constructorName"),pa=Symbol("exportpartsDebouncer"),ua=Symbol("dynamicDependenciesLoaded"),Qt=class t extends CustomEvent{constructor(){super(t.eventName,{bubbles:!0})}};Qt.eventName="exportparts-updated";var Ge=class extends ur{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[da]=new lr(5),this.scheduleExportpartsUpdate=()=>{var e,i,r;(!((e=this.exportpartsPrefix)===null||e===void 0)&&e.trim()||(r=(i=this.exportpartsPrefixes)===null||i===void 0?void 0:i.length)!==null&&r!==void 0&&r)&&this[pa].run(()=>{var n,o;!((n=this.exportpartsPrefix)===null||n===void 0)&&n.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((o=this.exportpartsPrefixes)===null||o===void 0?void 0:o.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})},this[ca]=this.constructor.name,this[la]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[ca]&&Object.setPrototypeOf(this,this[la])}connectedCallback(){var e;super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(r){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",r)}let i=this.constructor;i[ua]||(i[ua]=!0,this.importDynamicDependencies()),(e=this.shadowRoot)===null||e===void 0||e.addEventListener(Qt.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.shadowRoot)===null||e===void 0||e.removeEventListener(Qt.eventName,this.scheduleExportpartsUpdate)}importDynamicDependencies(){}updated(e){super.updated(e),this.updateComplete.then(()=>{this.contentAvailableCallback(e),this.focusElementToFocus(e),this.applyCustomStylesheet(e),this.scheduleExportpartsUpdate(),e.has("exportparts")&&this.dispatchEvent(new Qt)})}contentAvailableCallback(e){}focusElementToFocus(e){if(e.has("elementToFocus")&&this.elementToFocus!=null){let{element:i,selector:r,shadowPath:n}=this.elementToFocus;if(r!=null){let o=[...n??[],r];i=aa(this.shadowRoot,...o)}i?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||i?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(e){var i,r,n;if(((r=(i=this.shadowRoot)===null||i===void 0?void 0:i.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&r!==void 0?r:[]).forEach(o=>o.remove()),this.useAdoptedStyleSheets){if(e.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((n=this.customStylesheet)!==null&&n!==void 0?n:"")}catch(o){console.error(o,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let o=document.createElement("style");o.classList.add("ft-lit-element--custom-stylesheet"),o.innerHTML=this.customStylesheet,this.shadowRoot.append(o)}}setExportpartsAttribute(e){var i,r,n,o,s,a;let l=p=>p!=null&&p.trim().length>0,c=e.filter(l).map(p=>p.trim());if(c.length===0){this.exportparts=void 0;return}let u=new Set;for(let p of(r=(i=this.shadowRoot)===null||i===void 0?void 0:i.querySelectorAll("[part],[exportparts]"))!==null&&r!==void 0?r:[]){let g=(o=(n=p.getAttribute("part"))===null||n===void 0?void 0:n.split(" "))!==null&&o!==void 0?o:[],x=(a=(s=p.getAttribute("exportparts"))===null||s===void 0?void 0:s.split(",").map(b=>b.split(":")[1]))!==null&&a!==void 0?a:[],A=[...g,...x].filter(l).map(b=>b.trim());for(let b of A)u.add(b)}if(u.size===0){this.exportparts=void 0;return}let d=[...u.values()].flatMap(p=>c.map(g=>`${p}:${g}--${p}`));this.exportparts=[...this.part,...d].join(", ")}};da=pa;ei([(0,Lt.property)()],Ge.prototype,"exportpartsPrefix",void 0);ei([ra([])],Ge.prototype,"exportpartsPrefixes",void 0);ei([(0,Lt.property)({reflect:!0})],Ge.prototype,"exportparts",void 0);ei([(0,Lt.property)()],Ge.prototype,"customStylesheet",void 0);ei([(0,Lt.property)()],Ge.prototype,"elementToFocus",void 0);ei([(0,Lt.state)()],Ge.prototype,"useAdoptedStyleSheets",void 0);function dr(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var Li=Symbol("internalReduxEventsUnsubscribers"),ft=Symbol("internalStoresUnsubscribers"),Pt=Symbol("internalStores"),wu=sr(Symbol("withRedux"),function(t){var e,i,r;class n extends t{constructor(){super(...arguments),this[e]=new Map,this[i]=new Map,this[r]=new Map}get reduxConstructor(){return this.constructor}willUpdate(s){super.willUpdate(s),[...this.reduxConstructor.reduxReactiveProperties].some(a=>s.has(a))&&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,a){var l;a=(l=a??s.name)!==null&&l!==void 0?l:"default-store",this.unsubscribeFromStore(a),this[Pt].set(a,s),this.subscribeToStore(a,s),this.updateFromStores()}removeStore(s){let a=typeof s=="string"?s:s.name;this.unsubscribeFromStore(a),this[Pt].delete(a)}setupStores(){this.unsubscribeFromStores(),this[Pt].forEach((s,a)=>this.subscribeToStore(a,s)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((s,a)=>{let l=this.constructor.getPropertyOptions(a);if(!l?.attribute||!this.hasAttribute(typeof l?.attribute=="string"?l.attribute:a)){let c=this.getStore(s.store);c&&(s.store?this[ft].has(s.store):this[ft].size>0)&&(this[a]=s.selector(c.getState(),this))}})}subscribeToStore(s,a){var l;this[ft].set(s,a.subscribe(()=>this.updateFromStores())),this[Li].set(s,[]),dr(a)&&a.eventBus&&((l=this.reduxConstructor.reduxEventListeners)===null||l===void 0||l.forEach((c,u)=>{if(typeof this[u]=="function"&&(!c.store||a.name===c.store)){let d=p=>this[u](p);a.addEventListener(c.eventName,d),this[Li].get(s).push(()=>a.removeEventListener(c.eventName,d))}})),this.onStoreAvailable(s)}unsubscribeFromStores(){this[ft].forEach((s,a)=>this.unsubscribeFromStore(a))}unsubscribeFromStore(s){var a;this[ft].has(s)&&this[ft].get(s)(),this[ft].delete(s),(a=this[Li].get(s))===null||a===void 0||a.forEach(l=>l()),this[Li].delete(s)}onStoreAvailable(s){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=ft,i=Pt,r=Li,n.reduxProperties=new Map,n.reduxReactiveProperties=new Set,n.reduxEventListeners=new Map,n}),fa=class extends wu(Ge){};function ue(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 Tu=typeof Symbol=="function"&&Symbol.observable||"@@observable",ha=Tu,Ln=()=>Math.random().toString(36).substring(7).split("").join("."),Ou={INIT:`@@redux/INIT${Ln()}`,REPLACE:`@@redux/REPLACE${Ln()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Ln()}`},pr=Ou;function fr(t){if(typeof t!="object"||t===null)return!1;let e=t;for(;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e||Object.getPrototypeOf(t)===null}function Pn(t,e,i){if(typeof t!="function")throw new Error(ue(2));if(typeof e=="function"&&typeof i=="function"||typeof i=="function"&&typeof arguments[3]=="function")throw new Error(ue(0));if(typeof e=="function"&&typeof i>"u"&&(i=e,e=void 0),typeof i<"u"){if(typeof i!="function")throw new Error(ue(1));return i(Pn)(t,e)}let r=t,n=e,o=new Map,s=o,a=0,l=!1;function c(){s===o&&(s=new Map,o.forEach((b,T)=>{s.set(T,b)}))}function u(){if(l)throw new Error(ue(3));return n}function d(b){if(typeof b!="function")throw new Error(ue(4));if(l)throw new Error(ue(5));let T=!0;c();let V=a++;return s.set(V,b),function(){if(T){if(l)throw new Error(ue(6));T=!1,c(),s.delete(V),o=null}}}function p(b){if(!fr(b))throw new Error(ue(7));if(typeof b.type>"u")throw new Error(ue(8));if(typeof b.type!="string")throw new Error(ue(17));if(l)throw new Error(ue(9));try{l=!0,n=r(n,b)}finally{l=!1}return(o=s).forEach(V=>{V()}),b}function g(b){if(typeof b!="function")throw new Error(ue(10));r=b,p({type:pr.REPLACE})}function x(){let b=d;return{subscribe(T){if(typeof T!="object"||T===null)throw new Error(ue(11));function V(){let L=T;L.next&&L.next(u())}return V(),{unsubscribe:b(V)}},[ha](){return this}}}return p({type:pr.INIT}),{dispatch:p,subscribe:d,getState:u,replaceReducer:g,[ha]:x}}function Ru(t){Object.keys(t).forEach(e=>{let i=t[e];if(typeof i(void 0,{type:pr.INIT})>"u")throw new Error(ue(12));if(typeof i(void 0,{type:pr.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(ue(13))})}function ma(t){let e=Object.keys(t),i={};for(let s=0;s<e.length;s++){let a=e[s];typeof t[a]=="function"&&(i[a]=t[a])}let r=Object.keys(i),n,o;try{Ru(i)}catch(s){o=s}return function(a={},l){if(o)throw o;let c=!1,u={};for(let d=0;d<r.length;d++){let p=r[d],g=i[p],x=a[p],A=g(x,l);if(typeof A>"u"){let b=l&&l.type;throw new Error(ue(14))}u[p]=A,c=c||A!==x}return c=c||r.length!==Object.keys(a).length,c?u:a}}function Pi(...t){return t.length===0?e=>e:t.length===1?t[0]:t.reduce((e,i)=>(...r)=>e(i(...r)))}function ga(...t){return e=>(i,r)=>{let n=e(i,r),o=()=>{throw new Error(ue(15))},s={getState:n.getState,dispatch:(l,...c)=>o(l,...c)},a=t.map(l=>l(s));return o=Pi(...a)(n.dispatch),{...n,dispatch:o}}}function ya(t){return fr(t)&&"type"in t&&typeof t.type=="string"}var wa=Symbol.for("immer-nothing"),ba=Symbol.for("immer-draftable"),fe=Symbol.for("immer-state");function ze(t,...e){throw new Error(`[Immer] minified error nr: ${t}. Full error at: https://bit.ly/3cXEKWf`)}var Oe=Object,ii=Oe.getPrototypeOf,yr="constructor",Ar="prototype",In="configurable",br="enumerable",mr="writable",ki="value",qe=t=>!!t&&!!t[fe];function Re(t){return t?Ta(t)||Cr(t)||!!t[ba]||!!t[yr]?.[ba]||wr(t)||Tr(t):!1}var Lu=Oe[Ar][yr].toString(),xa=new WeakMap;function Ta(t){if(!t||!zn(t))return!1;let e=ii(t);if(e===null||e===Oe[Ar])return!0;let i=Oe.hasOwnProperty.call(e,yr)&&e[yr];if(i===Object)return!0;if(!ti(i))return!1;let r=xa.get(i);return r===void 0&&(r=Function.toString.call(i),xa.set(i,r)),r===Lu}function _r(t,e,i=!0){Ii(t)===0?(i?Reflect.ownKeys(t):Oe.keys(t)).forEach(n=>{e(n,t[n],t)}):t.forEach((r,n)=>e(n,r,t))}function Ii(t){let e=t[fe];return e?e.type_:Cr(t)?1:wr(t)?2:Tr(t)?3:0}var kn=(t,e,i=Ii(t))=>i===2?t.has(e):Oe[Ar].hasOwnProperty.call(t,e),Mn=(t,e,i=Ii(t))=>i===2?t.get(e):t[e],xr=(t,e,i,r=Ii(t))=>{r===2?t.set(e,i):r===3?t.add(i):t[e]=i};function Pu(t,e){return t===e?t!==0||1/t===1/e:t!==t&&e!==e}var Cr=Array.isArray,wr=t=>t instanceof Map,Tr=t=>t instanceof Set,zn=t=>typeof t=="object",ti=t=>typeof t=="function",Dn=t=>typeof t=="boolean";function ku(t){let e=+t;return Number.isInteger(e)&&String(e)===t}var it=t=>t.copy_||t.base_;var jn=t=>t.modified_?t.copy_:t.base_;function $n(t,e){if(wr(t))return new Map(t);if(Tr(t))return new Set(t);if(Cr(t))return Array[Ar].slice.call(t);let i=Ta(t);if(e===!0||e==="class_only"&&!i){let r=Oe.getOwnPropertyDescriptors(t);delete r[fe];let n=Reflect.ownKeys(r);for(let o=0;o<n.length;o++){let s=n[o],a=r[s];a[mr]===!1&&(a[mr]=!0,a[In]=!0),(a.get||a.set)&&(r[s]={[In]:!0,[mr]:!0,[br]:a[br],[ki]:t[s]})}return Oe.create(ii(t),r)}else{let r=ii(t);if(r!==null&&i)return{...t};let n=Oe.create(r);return Oe.assign(n,t)}}function Wn(t,e=!1){return Or(t)||qe(t)||!Re(t)||(Ii(t)>1&&Oe.defineProperties(t,{set:hr,add:hr,clear:hr,delete:hr}),Oe.freeze(t),e&&_r(t,(i,r)=>{Wn(r,!0)},!1)),t}function Du(){ze(2)}var hr={[ki]:Du};function Or(t){return t===null||!zn(t)?!0:Oe.isFrozen(t)}var vr="MapSet",Un="Patches",va="ArrayMethods",Oa={};function kt(t){let e=Oa[t];return e||ze(0,t),e}var Sa=t=>!!Oa[t];var Di,Ra=()=>Di,Nu=(t,e)=>({drafts_:[],parent_:t,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:Sa(vr)?kt(vr):void 0,arrayMethodsPlugin_:Sa(va)?kt(va):void 0});function Ea(t,e){e&&(t.patchPlugin_=kt(Un),t.patches_=[],t.inversePatches_=[],t.patchListener_=e)}function Vn(t){Fn(t),t.drafts_.forEach(Iu),t.drafts_=null}function Fn(t){t===Di&&(Di=t.parent_)}var Aa=t=>Di=Nu(Di,t);function Iu(t){let e=t[fe];e.type_===0||e.type_===1?e.revoke_():e.revoked_=!0}function _a(t,e){e.unfinalizedDrafts_=e.drafts_.length;let i=e.drafts_[0];if(t!==void 0&&t!==i){i[fe].modified_&&(Vn(e),ze(4)),Re(t)&&(t=Ca(e,t));let{patchPlugin_:n}=e;n&&n.generateReplacementPatches_(i[fe].base_,t,e)}else t=Ca(e,i);return Mu(e,t,!0),Vn(e),e.patches_&&e.patchListener_(e.patches_,e.inversePatches_),t!==wa?t:void 0}function Ca(t,e){if(Or(e))return e;let i=e[fe];if(!i)return Sr(e,t.handledSet_,t);if(!Rr(i,t))return e;if(!i.modified_)return i.base_;if(!i.finalized_){let{callbacks_:r}=i;if(r)for(;r.length>0;)r.pop()(t);ka(i,t)}return i.copy_}function Mu(t,e,i=!1){!t.parent_&&t.immer_.autoFreeze_&&t.canAutoFreeze_&&Wn(e,i)}function La(t){t.finalized_=!0,t.scope_.unfinalizedDrafts_--}var Rr=(t,e)=>t.scope_===e,$u=[];function Pa(t,e,i,r){let n=it(t),o=t.type_;if(r!==void 0&&Mn(n,r,o)===e){xr(n,r,i,o);return}if(!t.draftLocations_){let a=t.draftLocations_=new Map;_r(n,(l,c)=>{if(qe(c)){let u=a.get(c)||[];u.push(l),a.set(c,u)}})}let s=t.draftLocations_.get(e)??$u;for(let a of s)xr(n,a,i,o)}function Uu(t,e,i){t.callbacks_.push(function(n){let o=e;if(!o||!Rr(o,n))return;n.mapSetPlugin_?.fixSetContents(o);let s=jn(o);Pa(t,o.draft_??o,s,i),ka(o,n)})}function ka(t,e){if(t.modified_&&!t.finalized_&&(t.type_===3||t.type_===1&&t.allIndicesReassigned_||(t.assigned_?.size??0)>0)){let{patchPlugin_:r}=e;if(r){let n=r.getPath(t);n&&r.generatePatches_(t,n,e)}La(t)}}function Vu(t,e,i){let{scope_:r}=t;if(qe(i)){let n=i[fe];Rr(n,r)&&n.callbacks_.push(function(){gr(t);let s=jn(n);Pa(t,i,s,e)})}else Re(i)&&t.callbacks_.push(function(){let o=it(t);t.type_===3?o.has(i)&&Sr(i,r.handledSet_,r):Mn(o,e,t.type_)===i&&r.drafts_.length>1&&(t.assigned_.get(e)??!1)===!0&&t.copy_&&Sr(Mn(t.copy_,e,t.type_),r.handledSet_,r)})}function Sr(t,e,i){return!i.immer_.autoFreeze_&&i.unfinalizedDrafts_<1||qe(t)||e.has(t)||!Re(t)||Or(t)||(e.add(t),_r(t,(r,n)=>{if(qe(n)){let o=n[fe];if(Rr(o,i)){let s=jn(o);xr(t,r,s,t.type_),La(o)}}else Re(n)&&Sr(n,e,i)})),t}function Fu(t,e){let i=Cr(t),r={type_:i?1:0,scope_:e?e.scope_:Ra(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:e,base_:t,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0},n=r,o=Er;i&&(n=[r],o=Ni);let{revoke:s,proxy:a}=Proxy.revocable(n,o);return r.draft_=a,r.revoke_=s,[a,r]}var Er={get(t,e){if(e===fe)return t;let i=t.scope_.arrayMethodsPlugin_,r=t.type_===1&&typeof e=="string";if(r&&i?.isArrayOperationMethod(e))return i.createMethodInterceptor(t,e);let n=it(t);if(!kn(n,e,t.type_))return Hu(t,n,e);let o=n[e];if(t.finalized_||!Re(o)||r&&t.operationMethod&&i?.isMutatingArrayMethod(t.operationMethod)&&ku(e))return o;if(o===Nn(t.base_,e)||Bu(t,e,o)){gr(t);let s=t.type_===1?+e:e,a=Hn(t.scope_,o,t,s);return t.copy_[s]=a}return o},has(t,e){return e in it(t)},ownKeys(t){return Reflect.ownKeys(it(t))},set(t,e,i){let r=Da(it(t),e);if(r?.set)return r.set.call(t.draft_,i),!0;if(!t.modified_){let n=Nn(it(t),e),o=n?.[fe];if(o&&o.base_===i)return t.copy_[e]=i,t.assigned_.set(e,!1),!0;if(Pu(i,n)&&(i!==void 0||kn(t.base_,e,t.type_)))return!0;gr(t),Bn(t)}return t.copy_[e]===i&&(i!==void 0||kn(t.copy_,e,t.type_))||Number.isNaN(i)&&Number.isNaN(t.copy_[e])||(t.copy_[e]=i,t.assigned_.set(e,!0),Vu(t,e,i)),!0},deleteProperty(t,e){return gr(t),Nn(t.base_,e)!==void 0||e in t.base_?(t.assigned_.set(e,!1),Bn(t)):t.assigned_.delete(e),t.copy_&&delete t.copy_[e],!0},getOwnPropertyDescriptor(t,e){let i=it(t),r=Reflect.getOwnPropertyDescriptor(i,e);return r&&{[mr]:!0,[In]:t.type_!==1||e!=="length",[br]:r[br],[ki]:i[e]}},defineProperty(){ze(11)},getPrototypeOf(t){return ii(t.base_)},setPrototypeOf(){ze(12)}},Ni={};for(let t in Er){let e=Er[t];Ni[t]=function(){let i=arguments;return i[0]=i[0][0],e.apply(this,i)}}Ni.deleteProperty=function(t,e){return Ni.set.call(this,t,e,void 0)};Ni.set=function(t,e,i){return Er.set.call(this,t[0],e,i,t[0])};function Nn(t,e){let i=t[fe];return(i?it(i):t)[e]}function Bu(t,e,i){return t.type_!==1||!t.allIndicesReassigned_||t.assigned_?.get(e)||!Re(i)||i[fe]?!1:t.baseRefs_.has(i)}function Hu(t,e,i){let r=Da(e,i);return r?ki in r?r[ki]:r.get?.call(t.draft_):void 0}function Da(t,e){if(!(e in t))return;let i=ii(t);for(;i;){let r=Object.getOwnPropertyDescriptor(i,e);if(r)return r;i=ii(i)}}function Bn(t){t.modified_||(t.modified_=!0,t.parent_&&Bn(t.parent_))}function gr(t){t.copy_||(t.assigned_=new Map,t.copy_=$n(t.base_,t.scope_.immer_.useStrictShallowCopy_))}var zu=class{constructor(t){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(e,i,r)=>{if(ti(e)&&!ti(i)){let o=i;i=e;let s=this;return function(l=o,...c){return s.produce(l,u=>i.call(this,u,...c))}}ti(i)||ze(6),r!==void 0&&!ti(r)&&ze(7);let n;if(Re(e)){let o=Aa(this),s=Hn(o,e,void 0),a=!0;try{n=i(s),a=!1}finally{a?Vn(o):Fn(o)}return Ea(o,r),_a(n,o)}else if(!e||!zn(e)){if(n=i(e),n===void 0&&(n=e),n===wa&&(n=void 0),this.autoFreeze_&&Wn(n,!0),r){let o=[],s=[];kt(Un).generateReplacementPatches_(e,n,{patches_:o,inversePatches_:s}),r(o,s)}return n}else ze(1,e)},this.produceWithPatches=(e,i)=>{if(ti(e))return(s,...a)=>this.produceWithPatches(s,l=>e(l,...a));let r,n;return[this.produce(e,i,(s,a)=>{r=s,n=a}),r,n]},Dn(t?.autoFreeze)&&this.setAutoFreeze(t.autoFreeze),Dn(t?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(t.useStrictShallowCopy),Dn(t?.useStrictIteration)&&this.setUseStrictIteration(t.useStrictIteration)}createDraft(t){Re(t)||ze(8),qe(t)&&(t=Na(t));let e=Aa(this),i=Hn(e,t,void 0);return i[fe].isManual_=!0,Fn(e),i}finishDraft(t,e){let i=t&&t[fe];(!i||!i.isManual_)&&ze(9);let{scope_:r}=i;return Ea(r,e),_a(void 0,r)}setAutoFreeze(t){this.autoFreeze_=t}setUseStrictShallowCopy(t){this.useStrictShallowCopy_=t}setUseStrictIteration(t){this.useStrictIteration_=t}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(t,e){let i;for(i=e.length-1;i>=0;i--){let n=e[i];if(n.path.length===0&&n.op==="replace"){t=n.value;break}}i>-1&&(e=e.slice(i+1));let r=kt(Un).applyPatches_;return qe(t)?r(t,e):this.produce(t,n=>r(n,e))}};function Hn(t,e,i,r){let[n,o]=wr(e)?kt(vr).proxyMap_(e,i):Tr(e)?kt(vr).proxySet_(e,i):Fu(e,i);return(i?.scope_??Ra()).drafts_.push(n),o.callbacks_=i?.callbacks_??[],o.key_=r,i&&r!==void 0?Uu(i,o,r):o.callbacks_.push(function(l){l.mapSetPlugin_?.fixSetContents(o);let{patchPlugin_:c}=l;o.modified_&&c&&c.generatePatches_(o,[],l)}),n}function Na(t){return qe(t)||ze(10,t),Ia(t)}function Ia(t){if(!Re(t)||Or(t))return t;let e=t[fe],i,r=!0;if(e){if(!e.modified_)return e.base_;e.finalized_=!0,i=$n(t,e.scope_.immer_.useStrictShallowCopy_),r=e.scope_.immer_.shouldUseStrictIteration()}else i=$n(t,!0);return _r(i,(n,o)=>{xr(i,n,Ia(o))},r),e&&(e.finalized_=!1),i}var ju=globalThis.Iterator,ph=typeof ju?.from=="function";var Wu=new zu,Kn=Wu.produce;function Ma(t){return({dispatch:i,getState:r})=>n=>o=>typeof o=="function"?o(i,r,t):n(o)}var $a=Ma(),Ua=Ma;var Ku=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Pi:Pi.apply(null,arguments)},xh=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}},Gu=t=>t&&typeof t.match=="function";function ht(t,e){function i(...r){if(e){let n=e(...r);if(!n)throw new Error(rt(0));return{type:t,payload:n.payload,..."meta"in n&&{meta:n.meta},..."error"in n&&{error:n.error}}}return{type:t,payload:r[0]}}return i.toString=()=>`${t}`,i.type=t,i.match=r=>ya(r)&&r.type===t,i}var za=class Mi extends Array{constructor(...e){super(...e),Object.setPrototypeOf(this,Mi.prototype)}static get[Symbol.species](){return Mi}concat(...e){return super.concat.apply(this,e)}prepend(...e){return e.length===1&&Array.isArray(e[0])?new Mi(...e[0].concat(this)):new Mi(...e.concat(this))}};function Va(t){return Re(t)?Kn(t,()=>{}):t}function Lr(t,e,i){return t.has(e)?t.get(e):t.set(e,i(e)).get(e)}function qu(t){return typeof t=="boolean"}var Yu=()=>function(e){let{thunk:i=!0,immutableCheck:r=!0,serializableCheck:n=!0,actionCreatorCheck:o=!0}=e??{},s=new za;return i&&(qu(i)?s.push($a):s.push(Ua(i.extraArgument))),s},Xu="RTK_autoBatch";var Fa=t=>e=>{setTimeout(e,t)},Zu=(t,e)=>i=>{let r=!1,n=()=>{r||(r=!0,cancelAnimationFrame(o),clearTimeout(s),i())},o=t(n),s=setTimeout(n,e)},Ju=(t={type:"raf"})=>e=>(...i)=>{let r=e(...i),n=!0,o=!1,s=!1,a=new Set,l=t.type==="tick"?queueMicrotask:t.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?Zu(window.requestAnimationFrame,100):Fa(10):t.type==="callback"?t.queueNotification:Fa(t.timeout),c=()=>{s=!1,o&&(o=!1,a.forEach(u=>u()))};return Object.assign({},r,{subscribe(u){let d=()=>n&&u(),p=r.subscribe(d);return a.add(u),()=>{p(),a.delete(u)}},dispatch(u){try{return n=!u?.meta?.[Xu],o=!n,o&&(s||(s=!0,l(c))),r.dispatch(u)}finally{n=!0}}})},Qu=t=>function(i){let{autoBatch:r=!0}=i??{},n=new za(t);return r&&n.push(Ju(typeof r=="object"?r:void 0)),n};function ja(t){let e=Yu(),{reducer:i=void 0,middleware:r,devTools:n=!0,duplicateMiddlewareCheck:o=!0,preloadedState:s=void 0,enhancers:a=void 0}=t||{},l;if(typeof i=="function")l=i;else if(fr(i))l=ma(i);else throw new Error(rt(1));let c;typeof r=="function"?c=r(e):c=e();let u=Pi;n&&(u=Ku({trace:!1,...typeof n=="object"&&n}));let d=ga(...c),p=Qu(d),g=typeof a=="function"?a(p):p(),x=u(...g);return Pn(l,s,x)}function Wa(t){let e={},i=[],r,n={addCase(o,s){let a=typeof o=="string"?o:o.type;if(!a)throw new Error(rt(28));if(a in e)throw new Error(rt(29));return e[a]=s,n},addAsyncThunk(o,s){return s.pending&&(e[o.pending.type]=s.pending),s.rejected&&(e[o.rejected.type]=s.rejected),s.fulfilled&&(e[o.fulfilled.type]=s.fulfilled),s.settled&&i.push({matcher:o.settled,reducer:s.settled}),n},addMatcher(o,s){return i.push({matcher:o,reducer:s}),n},addDefaultCase(o){return r=o,n}};return t(n),[e,i,r]}function ed(t){return typeof t=="function"}function td(t,e){let[i,r,n]=Wa(e),o;if(ed(t))o=()=>Va(t());else{let a=Va(t);o=()=>a}function s(a=o(),l){let c=[i[l.type],...r.filter(({matcher:u})=>u(l)).map(({reducer:u})=>u)];return c.filter(u=>!!u).length===0&&(c=[n]),c.reduce((u,d)=>{if(d)if(qe(u)){let g=d(u,l);return g===void 0?u:g}else{if(Re(u))return Kn(u,p=>d(p,l));{let p=d(u,l);if(p===void 0){if(u===null)return u;throw Error("A case reducer on a non-draftable value must not return undefined")}return p}}return u},a)}return s.getInitialState=o,s}var id=(t,e)=>Gu(t)?t.match(e):t(e);function rd(...t){return e=>t.some(i=>id(i,e))}var nd="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",od=(t=21)=>{let e="",i=t;for(;i--;)e+=nd[Math.random()*64|0];return e},sd=["name","message","stack","code"],Gn=class{constructor(t,e){this.payload=t,this.meta=e}payload;meta;_type},Ba=class{constructor(t,e){this.payload=t,this.meta=e}payload;meta;_type},ad=t=>{if(typeof t=="object"&&t!==null){let e={};for(let i of sd)typeof t[i]=="string"&&(e[i]=t[i]);return e}return{message:String(t)}},Ha="External signal was aborted",ld=(()=>{function t(e,i,r){let n=ht(e+"/fulfilled",(l,c,u,d)=>({payload:l,meta:{...d||{},arg:u,requestId:c,requestStatus:"fulfilled"}})),o=ht(e+"/pending",(l,c,u)=>({payload:void 0,meta:{...u||{},arg:c,requestId:l,requestStatus:"pending"}})),s=ht(e+"/rejected",(l,c,u,d,p)=>({payload:d,error:(r&&r.serializeError||ad)(l||"Rejected"),meta:{...p||{},arg:u,requestId:c,rejectedWithValue:!!d,requestStatus:"rejected",aborted:l?.name==="AbortError",condition:l?.name==="ConditionError"}}));function a(l,{signal:c}={}){return(u,d,p)=>{let g=r?.idGenerator?r.idGenerator(l):od(),x=new AbortController,A,b;function T(v){b=v,x.abort()}c&&(c.aborted?T(Ha):c.addEventListener("abort",()=>T(Ha),{once:!0}));let V=(async function(){let v;try{let M=r?.condition?.(l,{getState:d,extra:p});if(ud(M)&&(M=await M),M===!1||x.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};let X=new Promise((j,Z)=>{A=()=>{Z({name:"AbortError",message:b||"Aborted"})},x.signal.addEventListener("abort",A,{once:!0})});u(o(g,l,r?.getPendingMeta?.({requestId:g,arg:l},{getState:d,extra:p}))),v=await Promise.race([X,Promise.resolve(i(l,{dispatch:u,getState:d,extra:p,requestId:g,signal:x.signal,abort:T,rejectWithValue:((j,Z)=>new Gn(j,Z)),fulfillWithValue:((j,Z)=>new Ba(j,Z))})).then(j=>{if(j instanceof Gn)throw j;return j instanceof Ba?n(j.payload,g,l,j.meta):n(j,g,l)})])}catch(M){v=M instanceof Gn?s(null,g,l,M.payload,M.meta):s(M,g,l)}finally{A&&x.signal.removeEventListener("abort",A)}return r&&!r.dispatchConditionRejection&&s.match(v)&&v.meta.condition||u(v),v})();return Object.assign(V,{abort:T,requestId:g,arg:l,unwrap(){return V.then(cd)}})}}return Object.assign(a,{pending:o,rejected:s,fulfilled:n,settled:rd(s,n),typePrefix:e})}return t.withTypes=()=>t,t})();function cd(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function ud(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var Ka=Symbol.for("rtk-slice-createasyncthunk"),Sh={[Ka]:ld};function dd(t,e){return`${t}/${e}`}function pd({creators:t}={}){let e=t?.asyncThunk?.[Ka];return function(r){let{name:n,reducerPath:o=n}=r;if(!n)throw new Error(rt(11));typeof process<"u";let s=(typeof r.reducers=="function"?r.reducers(hd()):r.reducers)||{},a=Object.keys(s),l={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},c={addCase(v,L){let M=typeof v=="string"?v:v.type;if(!M)throw new Error(rt(12));if(M in l.sliceCaseReducersByType)throw new Error(rt(13));return l.sliceCaseReducersByType[M]=L,c},addMatcher(v,L){return l.sliceMatchers.push({matcher:v,reducer:L}),c},exposeAction(v,L){return l.actionCreators[v]=L,c},exposeCaseReducer(v,L){return l.sliceCaseReducersByName[v]=L,c}};a.forEach(v=>{let L=s[v],M={reducerName:v,type:dd(n,v),createNotation:typeof r.reducers=="function"};gd(L)?bd(M,L,c,e):md(M,L,c)});function u(){let[v={},L=[],M=void 0]=typeof r.extraReducers=="function"?Wa(r.extraReducers):[r.extraReducers],X={...v,...l.sliceCaseReducersByType};return td(r.initialState,j=>{for(let Z in X)j.addCase(Z,X[Z]);for(let Z of l.sliceMatchers)j.addMatcher(Z.matcher,Z.reducer);for(let Z of L)j.addMatcher(Z.matcher,Z.reducer);M&&j.addDefaultCase(M)})}let d=v=>v,p=new Map,g=new WeakMap,x;function A(v,L){return x||(x=u()),x(v,L)}function b(){return x||(x=u()),x.getInitialState()}function T(v,L=!1){function M(j){let Z=j[v];return typeof Z>"u"&&L&&(Z=Lr(g,M,b)),Z}function X(j=d){let Z=Lr(p,L,()=>new WeakMap);return Lr(Z,j,()=>{let di={};for(let[ke,gt]of Object.entries(r.selectors??{}))di[ke]=fd(gt,j,()=>Lr(g,j,b),L);return di})}return{reducerPath:v,getSelectors:X,get selectors(){return X(M)},selectSlice:M}}let V={name:n,reducer:A,actions:l.actionCreators,caseReducers:l.sliceCaseReducersByName,getInitialState:b,...T(o),injectInto(v,{reducerPath:L,...M}={}){let X=L??o;return v.inject({reducerPath:X,reducer:A},M),{...V,...T(X,!0)}}};return V}}function fd(t,e,i,r){function n(o,...s){let a=e(o);return typeof a>"u"&&r&&(a=i()),t(a,...s)}return n.unwrapped=t,n}var Ga=pd();function hd(){function t(e,i){return{_reducerDefinitionType:"asyncThunk",payloadCreator:e,...i}}return t.withTypes=()=>t,{reducer(e){return Object.assign({[e.name](...i){return e(...i)}}[e.name],{_reducerDefinitionType:"reducer"})},preparedReducer(e,i){return{_reducerDefinitionType:"reducerWithPrepare",prepare:e,reducer:i}},asyncThunk:t}}function md({type:t,reducerName:e,createNotation:i},r,n){let o,s;if("reducer"in r){if(i&&!yd(r))throw new Error(rt(17));o=r.reducer,s=r.prepare}else o=r;n.addCase(t,o).exposeCaseReducer(e,o).exposeAction(e,s?ht(t,s):ht(t))}function gd(t){return t._reducerDefinitionType==="asyncThunk"}function yd(t){return t._reducerDefinitionType==="reducerWithPrepare"}function bd({type:t,reducerName:e},i,r,n){if(!n)throw new Error(rt(18));let{payloadCreator:o,fulfilled:s,pending:a,rejected:l,settled:c,options:u}=i,d=n(t,o,u);r.exposeAction(e,d),s&&r.addCase(d.fulfilled,s),a&&r.addCase(d.pending,a),l&&r.addCase(d.rejected,l),c&&r.addMatcher(d.settled,c),r.exposeCaseReducer(e,{fulfilled:s||Pr,pending:a||Pr,rejected:l||Pr,settled:c||Pr})}function Pr(){}var qa="listener",Ya="completed",Xa="cancelled",Eh=`task-${Xa}`,Ah=`task-${Ya}`,_h=`${qa}-${Xa}`,Ch=`${qa}-${Ya}`;var{assign:Za}=Object;var qn="listenerMiddleware";var xd=Za(ht(`${qn}/add`),{withTypes:()=>xd}),wh=ht(`${qn}/removeAll`),vd=Za(ht(`${qn}/remove`),{withTypes:()=>vd});function rt(t){return`Minified Redux Toolkit error #${t}; visit https://redux-toolkit.js.org/Errors?code=${t} for the full message or use the non-minified dev environment for full errors. `}var Sd=sr(Symbol("withEventBus"),function(t,e){return class extends t{constructor(){super(...arguments),this.eventBus=e??document.createElement("span")}addEventListener(i,r,n){this.eventBus.addEventListener(i,r,n)}dispatchEvent(i){return this.eventBus.dispatchEvent(i)}removeEventListener(i,r,n){this.eventBus.removeEventListener(i,r,n)}}}),kr=class extends Sd(Object){};window.ftReduxStores||(window.ftReduxStores={});var Ja=class t extends kr{static get(e){var i;let r=typeof e=="string"?e:e.name,n=typeof e=="string"?void 0:e,o=window.ftReduxStores[r];if(dr(o))return o;if(n==null)return;let s=Ga({...n,reducers:(i=n.reducers)!==null&&i!==void 0?i:{}}),a=ja({reducer:(l,c)=>{if(c.type==="CLEAR_FT_REDUX_STORE"){let u=Oi(s.getInitialState());for(let d of c.keeping)u[d]=(l??u)[d];return u}else if(typeof c.type=="string"&&c.type.startsWith("DEFAULT_VALUE_SETTER__"))return{...l,...c.overwrites};return s.reducer(l,c)}});return window.ftReduxStores[n.name]=new t(s,a,n.eventBus)}constructor(e,i,r){super(),this.reduxSlice=e,this.reduxStore=i,this.isFtReduxStore=!0,this.commands=new ar,this.injectInto=(o,s)=>this.reduxSlice.injectInto(o,s),this.selectSlice=o=>this.reduxSlice.selectSlice(o);let n=o=>o!=null?JSON.parse(JSON.stringify(o)):o;this.actions=new Proxy(this.reduxSlice.actions,{get:(o,s,a)=>{let l=s,c=o[l];return c?(...u)=>{let d=c(...u.map(n));return this.reduxStore.dispatch(d),d}:u=>{let d=l,p=this.getState()[d];Jt(p,u)||this.setState({[d]:n(u)})}}}),this.eventBus=r??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()}get selectors(){return this.reduxSlice.selectors}get reducerPath(){return this.reduxSlice.reducerPath}getSelectors(){return this.reduxSlice.getSelectors()}};var Dr=class{static format(e,i,r,n,o){return window.moment?window.moment(e).locale(i).format(this.getMomentDateFormat(r,n,!!o)):this.getIntlDateTime(e,i,r,n,!!o)}static getMomentDateFormat(e,i,r){return r?"LT":e?i?"lll":"ll":i?"L LT":"L"}static getIntlDateTime(e,i,r,n,o){let s=typeof e=="string"?new Date(e):e,a=new Intl.DateTimeFormat(i,{dateStyle:r?"medium":"short"}).format(s),l=new Intl.DateTimeFormat(i,{timeStyle:"short"}).format(s);return o?l:n?`${a} ${l}`:a}static getTimezoneAsString(){let e=r=>String(Math.floor(r)).padStart(2,"0"),i=new Date().getTimezoneOffset();return`${i<0?"+":"-"}${e(Math.abs(i)/60)}:${e(Math.abs(i)%60)}`}};var Nr=f(S()),Ed="ft-app-info",Dt=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};Dt.eventName="authentication-change";var $i=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};$i.eventName="ui-locale-changed";var Ad={session:(t,e)=>{(0,Nr.deepEqual)(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>P.dispatchEvent(new Dt(e.payload)),0))}},P=Nr.FtReduxStore.get({name:Ed,reducers:Ad,initialState:{baseUrl:void 0,tenantId:void 0,apiIntegrationIdentifier:void 0,apiIntegrationAppVersion:void 0,uiLocale:document.documentElement.lang||"en-US",availableContentLocales:[],localesConfiguration:void 0,metadataConfiguration:void 0,privacyPolicyConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,noCustomCode:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1,authenticationRequired:!1,stickyFilters:void 0}});var Qa=f(S()),Ir=function(t,e,i,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,i):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,i,o):s(e,i))||o);return n>3&&o&&Object.defineProperty(e,i,o),o},im=(0,Qa.applyMixinOnce)(Symbol("withDateFormat"),function(t){class e extends t{constructor(...r){super(r),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(P)}dateFormatOptionsChanged(r){return r.has("metadataDescriptors")||r.has("useLongDateFormat")||r.has("useDateTimeFormat")||r.has("uiLocale")}getDateFormatter(r){var n,o;return((o=(n=this.metadataDescriptors.find(a=>a.key===r))===null||n===void 0?void 0:n.date)!==null&&o!==void 0?o:!1)?a=>Dr.format(a,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return Ir([(0,Yn.property)({type:Boolean})],e.prototype,"useLongDateFormat",void 0),Ir([(0,Yn.property)({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),Ir([Rn({store:P.name,selector:i=>{var r,n;return(n=(r=i.metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&n!==void 0?n:[]}})],e.prototype,"metadataDescriptors",void 0),Ir([Rn({store:P.name})],e.prototype,"uiLocale",void 0),e});var el;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(el||(el={}));var tl;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(tl||(tl={}));var il;(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"})(il||(il={}));var rl;(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"})(rl||(rl={}));var nl;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(nl||(nl={}));var ol;(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(ol||(ol={}));var sl;(function(t){t.OFFICIAL="OFFICIAL",t.AI="AI"})(sl||(sl={}));var al;(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"})(al||(al={}));var ll;(function(t){t.STANDARD="STANDARD",t.STRUCTURAL="STRUCTURAL"})(ll||(ll={}));var cl;(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"})(cl||(cl={}));var ul;(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"})(ul||(ul={}));var dl;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(dl||(dl={}));var pl;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(pl||(pl={}));var fl;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(fl||(fl={}));var hl;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(hl||(hl={}));var ml;(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"})(ml||(ml={}));var gl;(function(t){t.OPTIONAL="OPTIONAL",t.MANDATORY="MANDATORY"})(gl||(gl={}));var yl;(function(t){t.ASC="ASC",t.DESC="DESC"})(yl||(yl={}));var bl;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(bl||(bl={}));var xl;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(xl||(xl={}));var vl;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(vl||(vl={}));var Sl;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(Sl||(Sl={}));var El;(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"})(El||(El={}));var Al;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Al||(Al={}));var _l;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.HTML_PACKAGE="HTML_PACKAGE",t.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(_l||(_l={}));var Cl;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(Cl||(Cl={}));var wl;(function(t){t.PLAIN_TEXT="PLAIN_TEXT",t.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",t.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(wl||(wl={}));var te;(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"})(te||(te={}));var Ne;(function(t){t.SEARCHES="SEARCHES",t.BOOKMARKS="BOOKMARKS",t.BOOKS="BOOKS",t.COLLECTIONS="COLLECTIONS"})(Ne||(Ne={}));var Tl;(function(t){t.UNAUTHENTICATED="UNAUTHENTICATED",t.USER_INCOMPLETE="USER_INCOMPLETE",t.MFA_REQUIRED="MFA_REQUIRED",t.AUTHENTICATED="AUTHENTICATED"})(Tl||(Tl={}));var Ol;(function(t){t.UNREACHABLE="UNREACHABLE",t.UNAUTHORIZED="UNAUTHORIZED",t.FORBIDDEN="FORBIDDEN",t.INCOMPATIBLE="INCOMPATIBLE",t.FAILED="FAILED",t.OK="OK"})(Ol||(Ol={}));var Rl;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(Rl||(Rl={}));var Ll;(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.SEMANTIC_SEARCH="SEMANTIC_SEARCH",t.CHATBOT_INSTRUCTIONS="CHATBOT_INSTRUCTIONS",t.DOCUMENTATION="DOCUMENTATION",t.OTHER="OTHER"})(Ll||(Ll={}));var Pl;(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",t.SLOW="SLOW",t.OTHER="OTHER"})(Pl||(Pl={}));var kl;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(kl||(kl={}));var Dl;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(Dl||(Dl={}));var Nl;(function(t){t.TEXT="TEXT",t.HTML="HTML"})(Nl||(Nl={}));var Il;(function(t){t.IN_PROGRESS="IN_PROGRESS",t.ERROR="ERROR",t.DONE="DONE"})(Il||(Il={}));var Ml;(function(t){t.HTML="HTML",t.MARKDOWN="MARKDOWN"})(Ml||(Ml={}));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 Ul;(function(t){t.MAP="MAP",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(Ul||(Ul={}));var _d={[te.PERSONAL_BOOK_SHARE_USER]:[te.PERSONAL_BOOK_USER],[te.HTML_EXPORT_USER]:[te.PERSONAL_BOOK_USER],[te.PDF_EXPORT_USER]:[te.PERSONAL_BOOK_USER],[te.KHUB_ADMIN]:[te.CONTENT_PUBLISHER],[te.ADMIN]:[te.KHUB_ADMIN,te.USERS_ADMIN,te.PORTAL_ADMIN,te.BEHAVIOR_DATA_USER],[te.GENERATIVE_AI_EXPORT_USER]:[te.GENERATIVE_AI_USER]};function Vl(t,e){return t===e||(_d[t]??[]).some(i=>Vl(i,e))}function Fl(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(r=>Vl(r,e))}var Fr=f(S());var Xn=f(S());var Nt=class t{static get(e){let{baseUrl:i,apiIntegrationIdentifier:r}=P.getState(),n=e??r;if(i&&n&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(i,n,!0)}static await(e){return new Promise(i=>{let r=t.get(e);if(r)i(r);else{let n=P.subscribe(()=>{r=t.get(e),r&&(n(),i(r))})}})}};var ri=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:Nt.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):Nt.await()}};var Le=class extends ri{constructor(e=!0,i){var r;super(i),this.sortObjectFields=(o,s)=>typeof s!="object"||s==null||Array.isArray(s)?s:Object.fromEntries(Object.entries(s).sort(([a],[l])=>a.localeCompare(l)));let n=this.constructor;n.commonCache=(r=n.commonCache)!==null&&r!==void 0?r:new Xn.CacheRegistry,this.cache=e?n.commonCache:new Xn.CacheRegistry}clearCache(){this.cache.clearAll()}hash(e){return String(Array.from(JSON.stringify(e,this.sortObjectFields)).reduce((i,r)=>0|31*i+r.charCodeAt(0),0))}};var Mr=class extends Le{async listMySearches(){let{session:e}=P.getState();return Fl(e,te.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),300*1e3):[]}};var $r=class extends Le{async listMyBookmarks(){let e=P.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),300*1e3):[]}};var Ur=class extends Le{constructor(){super(...arguments),this.CACHE_DURATION=180*1e3}async getUserAssetCount(e){if(this.isAuthenticated())return this.cache.get(`user-asset-count-${e}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/${e}`),this.CACHE_DURATION)}async getUserBookmarkCountByMap(e){if(this.isAuthenticated())return this.cache.get(`user-bookmark-count-by-map-${e}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/BOOKMARKS/${e}`),this.CACHE_DURATION)}isAuthenticated(){let e=P.getState().session;return!!e?.sessionAuthenticated}};var Vr=class extends Le{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 e=P.getState().session;return!!e?.sessionAuthenticated}};var Cd="ft-user-assets",wd={setAssetCount:(t,e)=>{let{userAssetType:i,count:r}=e.payload.assetCount;t.assetCounts.allAsset[i]=r},clearAssetCount:t=>{Object.values(Ne).forEach(e=>{t.assetCounts.allAsset[e]=void 0})},setBookmarkCountByMap:(t,e)=>{let i=e.payload.mapId;t.assetCounts.bookmarkByMap[i]=e.payload.count},clearBookmarkCountByMap:t=>{t.assetCounts.bookmarkByMap={}},addAsset:(t,e)=>{let{assetType:i,mapId:r,asset:n}=e.payload;Jn(t,i,[...Zn(t,i),n]),Bl(t,i,1,r),Hl(t,n)},editAsset:(t,e)=>{let{assetType:i,asset:r}=e.payload;Jn(t,i,Zn(t,i).map(n=>n.id===r.id?r:n)),Hl(t,r)},removeAsset:(t,e)=>{let{assetType:i,mapId:r,assetId:n}=e.payload;Jn(t,i,Zn(t,i).filter(o=>o.id!==n)),Bl(t,i,-1,r)}},zl={[Ne.SEARCHES]:"savedSearches",[Ne.BOOKMARKS]:"bookmarks",[Ne.BOOKS]:void 0,[Ne.COLLECTIONS]:void 0},Zn=(t,e)=>{var i;let r=zl[e];return r?(i=t[r])!==null&&i!==void 0?i:[]:[]},Jn=(t,e,i)=>{let r=zl[e];r&&(t[r]=i)},Bl=(t,e,i,r)=>{let n=t.assetCounts.allAsset[e];if(n!==void 0&&(t.assetCounts.allAsset[e]=Math.max(0,n+i),e===Ne.BOOKMARKS&&r)){let o=t.assetCounts.bookmarkByMap[r];t.assetCounts.bookmarkByMap[r]=Math.max(0,o+i)}},Hl=(t,e)=>{let i=t.assetLabels.map(n=>n.title),r=e.labels.filter(n=>!i.includes(n)).map(n=>({title:n}));t.assetLabels.push(...r)},ge=Fr.FtReduxStore.get({name:Cd,reducers:wd,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(Ne).map(t=>[t,void 0])),bookmarkByMap:{}},assetLabels:[]}}),Qn=class{constructor(e=new Ur,i=new Vr){this.assetCountsService=e,this.assetLabelsService=i,this.currentSession=P.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new $r,this.savedSearchesService=new Mr,P.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:i}=P.getState();(0,Fr.deepEqual)((e=this.currentSession)===null||e===void 0?void 0:e.profile,i?.profile)||(this.currentSession=i,this.clearMySearches(),this.reloadBookmarks(),this.clearUserAssetCounts(),this.reloadAssetLabels())}clearUserAssetCounts(){this.assetCountsService.clearCache(),ge.actions.clearAssetCount(),ge.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),ge.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),ge.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();ge.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let e=await this.assetLabelsService.getUserAssetLabels();ge.actions.assetLabels(e)}async loadAssetCount(e){let i=await this.assetCountsService.getUserAssetCount(e);i&&ge.getState().assetCounts.allAsset[e]!==i.count&&ge.actions.setAssetCount({assetCount:i})}async loadBookmarkByMapId(e){let i=await this.assetCountsService.getUserBookmarkCountByMap(e);i&&ge.getState().assetCounts.bookmarkByMap[e]!==i.count&&ge.actions.setBookmarkCountByMap({count:i.count,mapId:e})}async reloadAssetCount(e){this.assetCountsService.clearCache();let i=Object.keys(ge.getState().assetCounts.bookmarkByMap).length!==0;e===Ne.BOOKMARKS&&i&&ge.actions.clearBookmarkCountByMap(),ge.getState().assetCounts.allAsset[e]!==void 0&&await this.loadAssetCount(e)}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var e;if(this.bookmarksAreUsed){let i=!((e=this.currentSession)===null||e===void 0)&&e.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;ge.actions.bookmarks(i)}}},Td=new Qn;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=Td);var eo=class{addCommand(e,i=!1){P.commands.add(e,i)}consumeCommand(e){return P.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new eo;var Ie=f(S());var jl,ni=class extends CustomEvent{constructor(e){super("ft-i18n-context-loaded",{detail:e})}},Od=Symbol("clearAfterUnitTest"),Br=class extends(0,Ie.withEventBus)(Le){constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[jl]=()=>{this.defaultMessages={},this.cache=new Ie.CacheRegistry,this.listeners={}},this.currentUiLocale=P.getState().uiLocale,P.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=P.getState();this.currentUiLocale!==e&&(this.currentUiLocale=e,this.cache.clearAll(),this.notifyAll())}addContext(e){let i=e.name.toLowerCase();this.cache.setFinal(i,e),this.notify(i)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(e,i){var r;if(e=e.toLowerCase(),i&&Object.keys(i).length>0){let n={...(r=this.defaultMessages[e])!==null&&r!==void 0?r:{},...i};(0,Ie.deepEqual)(this.defaultMessages[e],n)||(this.defaultMessages[e]=n,await this.notify(e))}return this.fetchContext(e)}resolveContext(e){var i,r;return this.fetchContext(e),(r=(i=this.cache.getNow(e))===null||i===void 0?void 0:i.messages)!==null&&r!==void 0?r:{}}resolveRawMessage(e,i){let r=e.toLowerCase();return this.resolveContext(r)[i]}resolveMessage(e,i,...r){var n;let o=e.toLowerCase(),s=this.resolveContext(o);return new Ie.ParametrizedLabelResolver((n=this.defaultMessages[o])!==null&&n!==void 0?n:{},s).resolve(i,...r)}async fetchContext(e){let i=!this.cache.has(e),r;try{r=await this.cache.get(e,()=>this.messageContextProvider(this.currentUiLocale,e)),i&&await this.notify(e)}catch(n){!(n instanceof Ie.CanceledPromiseError)&&i&&console.error(n)}return r}subscribe(e,i){var r;return e=e.toLowerCase(),this.listeners[e]=(r=this.listeners[e])!==null&&r!==void 0?r:new Set,this.listeners[e].add(i),()=>{var n;return(n=this.listeners[e])===null||n===void 0?void 0:n.delete(i)}}async notifyAll(){let e=Object.keys(this.listeners);document.body.dispatchEvent(new ni({loadedContexts:e})),this.dispatchEvent(new ni({loadedContexts:e})),await Promise.all(e.map(i=>this.notify(i,!1)))}async notify(e,i=!0){i&&(document.body.dispatchEvent(new ni({loadedContexts:[e]})),this.dispatchEvent(new ni({loadedContexts:[e]}))),this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(r=>(0,Ie.delay)(0).then(()=>r()).catch(()=>null)))}};jl=Od;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends Br{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends Br{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});var oi=window.FluidTopicsI18nService,Hr=window.FluidTopicsCustomI18nService;var Wl=f(S()),to=class{highlightHtml(e,i,r){(0,Wl.highlightHtml)(e,i,r)}};window.FluidTopicsHighlightHtmlService=new to;var Kl=f(S());var io=class{isDate(e){var i,r,n,o;return(o=(n=((r=(i=P.getState().metadataConfiguration)===null||i===void 0?void 0:i.descriptors)!==null&&r!==void 0?r:[]).find(a=>a.key===e))===null||n===void 0?void 0:n.date)!==null&&o!==void 0?o:!1}format(e,i){var r,n,o,s;if(e==null)return"";try{return Kl.DateFormatter.format(e,(r=i?.locale)!==null&&r!==void 0?r:P.getState().uiLocale,(n=i?.longFormat)!==null&&n!==void 0?n:!1,(o=i?.withTime)!==null&&o!==void 0?o:!1,(s=i?.onlyTime)!==null&&s!==void 0?s:!1)}catch(a){throw console.error(`Date ${JSON.stringify(e)} is not valid`,a),a}}};window.FluidTopicsDateService=new io;var Gl=f(S());var Ui=class{static get(e,i){var r,n,o,s;let a=P.getState(),{lang:l,region:c}=(o=(n=(r=a.localesConfiguration)===null||r===void 0?void 0:r.defaultLocales)===null||n===void 0?void 0:n.defaultContentLocale)!==null&&o!==void 0?o:{lang:"en",region:"US"};return new Gl.SearchPlaceConverter(a.baseUrl,e??20,(s=a.localesConfiguration)===null||s===void 0?void 0:s.allLanguagesAllowed,i??`${l}-${c}`)}};var ro=class{urlToSearchRequest(e){return Ui.get().parse(e)}searchRequestToUrl(e){return Ui.get().serialize(e)}};window.FluidTopicsUrlService=new ro;var nt=f(S());var It=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{nextLocation:e}})}};It.eventName="before-location-change";var Mt=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{currentItem:e}})}};Mt.eventName="change";var no=class{itemName(e){return`fluid-topics-history-item-${e}`}get(e){let i=sessionStorage.getItem(this.itemName(e));return i?JSON.parse(i):void 0}set(e,i){sessionStorage.setItem(this.itemName(e),JSON.stringify(i))}},ql=new no;var zr=class t extends nt.WithEventBus{static build(){return new t(window.history,ql,()=>window.location,!1)}constructor(e,i,r,n){var o,s;super(),this.history=e,this.historyStorage=i,this.windowLocation=r,this.states=[],this.realPushState=e.pushState,this.realReplaceState=e.replaceState,this.initialIndex=(s=(o=e.state)===null||o===void 0?void 0:o.index)!==null&&s!==void 0?s:e.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(n)}setCurrentState(e,i=!1){let r=i&&this.currentIndex===e.index-1;this.currentState={...this.buildCurrentState(),...e},this.currentIndex=this.currentState.index,this.states[this.currentIndex]=this.currentState,r&&(this.states=this.states.slice(0,this.currentIndex+1)),this.historyStorage.set(this.currentIndex,this.currentState),(0,nt.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,this.windowLocation().href]),setTimeout(()=>this.dispatchEvent(new Mt(this.currentItem())),0)}installProxies(){let e=i=>(r,n,[o,s,a])=>{let l=new It(new URL(typeof a=="string"?a:(a??this.windowLocation()).href,window.location.origin));this.dispatchEvent(l);let c=i(),u={...c===this.currentIndex?this.currentState:void 0,...o,index:c,href:l.detail.nextLocation.href};r.apply(n,[u,s,u.href]),this.setCurrentState(u,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:e(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:e(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",e=>this.setCurrentState(e.state)),document.querySelector("title")==null&&document.head.append(document.createElement("title")),new MutationObserver(()=>this.updateCurrentState({title:document.title})).observe(document.querySelector("title"),{subtree:!0,characterData:!0,childList:!0})}initData(e){for(let i=this.history.length-1;i>=0;i--)e?this.states[i]=this.historyStorage.get(i):setTimeout(()=>this.states[i]=this.historyStorage.get(i),this.history.length-i)}updateCurrentState(e){var i;let r={...this.buildCurrentState(),...e,index:this.currentIndex,title:(i=e?.title)!==null&&i!==void 0?i:this.currentState.title};this.setCurrentState(r)}addBeforeLocationChangeListener(e){this.addEventListener(It.eventName,e)}removeBeforeLocationChangeListener(e){this.removeEventListener(It.eventName,e)}addHistoryChangeListener(e){this.addEventListener(Mt.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(Mt.eventName,e)}currentItem(){return(0,nt.deepCopy)(this.currentState)}back(){let e=this.previousDifferentMajorPosition();e>=0?this.history.go(e-this.currentIndex):this.currentIndex!==this.initialIndex?this.history.go(this.initialIndex-this.currentIndex):this.history.back()}backwardItem(){return(0,nt.deepCopy)(this.states[this.previousDifferentMajorPosition()])}backwardItemMatching(e){let i=this.states.filter(r=>!!r).filter(r=>r.index<this.currentIndex).reverse();return(0,nt.deepCopy)(i.find(r=>e(r)))}previousDifferentMajorPosition(){let e=this.currentIndex>0?this.currentIndex-1:0;for(;e>0&&!this.isDifferentMajorState(e);)e--;return e}forward(){let e=this.nextMajorPosition();e&&e<this.states.length?this.history.go(e-this.currentIndex):this.history.forward()}forwardItem(){let e=this.nextMajorPosition();if(e)return(0,nt.deepCopy)(this.states[e])}nextMajorPosition(){let e=this.currentIndex;if(!(e>=this.states.length)){do e++;while(e<this.states.length&&!this.isDifferentMajorState(e));return this.getHigherPositionInTheSameState(e)}}getHigherPositionInTheSameState(e){var i;let r=(i=this.states[e])===null||i===void 0?void 0:i.majorStateId;if(!r)return e;let n=e,o=e+1;for(;this.states.length>o&&!this.isDifferentMajorState(o,r);)this.hasState(o)&&(n=o),o++;return n}buildCurrentState(){var e,i;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(i=(e=this.history.state)===null||e===void 0?void 0:e.title)!==null&&i!==void 0?i:document.title}}hasState(e){return this.states[e]!=null}isDifferentMajorState(e,i){var r;if(!this.hasState(e))return!1;let n=i??this.currentState.majorStateId,o=(r=this.states[e])===null||r===void 0?void 0:r.majorStateId;return o==null||o!=n}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=zr.build(),window.FluidTopicsHistoryService={currentItem:()=>window.FluidTopicsInternalHistoryService.currentItem(),back:()=>window.FluidTopicsInternalHistoryService.back(),forward:()=>window.FluidTopicsInternalHistoryService.forward(),backwardItem:()=>window.FluidTopicsInternalHistoryService.backwardItem(),forwardItem:()=>window.FluidTopicsInternalHistoryService.forwardItem(),backwardItemMatching:t=>window.FluidTopicsInternalHistoryService.backwardItemMatching(t),addHistoryChangeListener:t=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(t),removeHistoryChangeListener:t=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(t),addBeforeLocationChangeListener:t=>window.FluidTopicsInternalHistoryService.addBeforeLocationChangeListener(t),removeBeforeLocationChangeListener:t=>window.FluidTopicsInternalHistoryService.removeBeforeLocationChangeListener(t)});var Yl=f(z());var Xl=Yl.css`
632
+ `;var Ql=f(z()),ye=f(re()),Vt=f(S());var $t=f(S());function Zl(t,e){let{authenticationRequired:i,session:r}=P.getState();return i&&!r?.sessionAuthenticated?Promise.resolve(e):t()}var jr=class extends ri{async updateUiLocale(e){return(await this.awaitApi).updateUiLocale(e)}};var oo=class t extends $t.FtStateManager{static build(e){return new t(P,e)}constructor(e,i){super(),this.store=e,this.cache=new $t.CacheRegistry,this.withManualResources=!0,this.userLocaleService=new jr,this.cleanSessionDebouncer=new $t.Debouncer,this.reloadConfiguration=()=>{var r;(r=this.cache)===null||r===void 0||r.clear("availableContentLocales"),this.updateAvailableContentLocales()},this.reloadDebouncer=new $t.Debouncer(500),this.apiProvider=i??(()=>Nt.get())}setWithManualResources(e){this.withManualResources=e,this.updateIfNeeded()}addListeners(){this.store.addEventListener(Dt.eventName,this.reloadConfiguration)}removeListeners(){this.store.removeEventListener(Dt.eventName,this.reloadConfiguration)}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.store.getState().session==null&&this.updateSession(),this.store.getState().metadataConfiguration==null&&this.updateMetadataConfiguration()),this.store.getState().localesConfiguration==null&&this.updateLocalesConfiguration(),(this.store.getState().availableContentLocales==null||this.store.getState().availableContentLocales.length==0)&&this.updateAvailableContentLocales())}async updateSession(){let e=await this.cache.get("session",async()=>{let i=await this.apiProvider().getCurrentSession();return i.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.setSession(void 0)},i.idleTimeoutInMillis),i});this.setSession(e)}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 e;let i=await this.cache.get("availableContentLocales",()=>Zl(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}));this.setAvailableContentLocales((e=i.contentLocales)!==null&&e!==void 0?e:[])}setStickyFilters(e){this.store.actions.stickyFilters(e)}setBaseUrl(e){this.store.actions.baseUrl(e),window.fluidTopicsBaseUrl=e}setTenantId(e){this.store.actions.tenantId(e)}setApiIntegrationIdentifier(e){this.store.actions.apiIntegrationIdentifier(e)}setApiIntegrationAppVersion(e){this.store.actions.apiIntegrationAppVersion(e)}setUiLocale(e){this.store.actions.uiLocale(e)}setLocalesConfiguration(e){this.store.actions.localesConfiguration(e),setTimeout(()=>this.updateIfNeeded())}setAvailableContentLocales(e){this.store.actions.availableContentLocales(e),setTimeout(()=>this.updateIfNeeded())}stopReloadDebouncer(){this.reloadDebouncer.cancel()}requestUiLocaleUpdate(e,i){this.userLocaleService.updateUiLocale({uiLocale:e,contentLocale:i}).then(r=>{r.uiLocaleChanged&&(this.reloadDebouncer.run(()=>window.location.reload()),this.store.dispatchEvent(new $i(r)))}).catch(()=>{})}setMetadataConfiguration(e){this.store.actions.metadataConfiguration(e),setTimeout(()=>this.updateIfNeeded())}setNoCustom(e){this.store.actions.noCustom(e)}setEditorMode(e){this.store.actions.editorMode(e)}setNoCustomComponent(e){this.store.actions.noCustomComponent(e)}setNoCustomCode(e){this.store.actions.noCustomCode(e)}setSession(e){this.store.actions.session(e),setTimeout(()=>this.updateIfNeeded())}setOpenExternalDocumentInNewTab(e){this.store.actions.openExternalDocumentInNewTab(e)}setNavigatorOnline(e){this.store.actions.navigatorOnline(e)}setForcedOffline(e){this.store.actions.forcedOffline(e)}setAuthenticationRequired(e){this.store.actions.authenticationRequired(e)}},Jl=oo.build();var Ut=class extends Event{constructor(e,i,r,n){super("context-request",{bubbles:!0,composed:!0}),this.context=e,this.contextTarget=i,this.callback=r,this.subscribe=n??!1}};var Vi=class{constructor(){this.pendingContextRequests=new Map,this.onContextProvider=e=>{let i=this.pendingContextRequests.get(e.context);if(i===void 0)return;this.pendingContextRequests.delete(e.context);let{requests:r}=i;for(let{elementRef:n,callbackRef:o}of r){let s=n.deref(),a=o.deref();s===void 0||a===void 0||s.dispatchEvent(new Ut(e.context,s,a,!0))}},this.onContextRequest=e=>{if(e.subscribe!==!0)return;let i=e.contextTarget??e.composedPath()[0],r=e.callback,n=this.pendingContextRequests.get(e.context);n===void 0&&this.pendingContextRequests.set(e.context,n={callbacks:new WeakMap,requests:[]});let o=n.callbacks.get(i);o===void 0&&n.callbacks.set(i,o=new WeakSet),o.has(r)||(o.add(r),n.requests.push({elementRef:new WeakRef(i),callbackRef:new WeakRef(r)}))}}attach(e){e.addEventListener("context-request",this.onContextRequest),e.addEventListener("context-provider",this.onContextProvider)}detach(e){e.removeEventListener("context-request",this.onContextRequest),e.removeEventListener("context-provider",this.onContextProvider)}};var ae=function(t,e,i,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,i):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,i,o):s(e,i))||o);return n>3&&o&&Object.defineProperty(e,i,o),o},G=class extends Vt.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.noCustomCode=!1,this.withManualResources=!1,this.navigatorOnline=!1,this.forcedOffline=!1,this.authenticationRequired=!1,this.messageContexts=[],this.stateManager=Jl,this.contextRoot=new Vi}render(){return Ql.html`
633
633
  <slot></slot>
634
- `}connectedCallback(){super.connectedCallback(),this.stateManager.addListeners(),this.contextRoot.attach(document.body)}disconnectedCallback(){super.disconnectedCallback(),this.stateManager.removeListeners(),this.contextRoot.detach(document.body)}update(e){var i;super.update(e),e.has("baseUrl")&&this.stateManager.setBaseUrl(this.baseUrl),e.has("tenantId")&&this.stateManager.setTenantId(this.tenantId),e.has("apiIntegrationIdentifier")&&this.stateManager.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("apiIntegrationAppVersion")&&this.stateManager.setApiIntegrationAppVersion(this.apiIntegrationAppVersion),e.has("uiLocale")&&this.stateManager.setUiLocale(this.uiLocale),e.has("metadataConfiguration")&&this.stateManager.setMetadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&this.stateManager.setNoCustom(this.noCustom),e.has("editorMode")&&this.stateManager.setEditorMode(this.editorMode),e.has("noCustomComponent")&&this.stateManager.setNoCustomComponent(this.noCustomComponent),e.has("noCustomCode")&&this.stateManager.setNoCustomCode(this.noCustomCode),e.has("session")&&this.stateManager.setSession(this.session),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(r=>oi.addContext(r)),e.has("openExternalDocumentInNewTab")&&this.stateManager.setOpenExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("navigatorOnline")&&this.stateManager.setNavigatorOnline(this.navigatorOnline),e.has("forcedOffline")&&this.stateManager.setForcedOffline(this.forcedOffline),e.has("authenticationRequired")&&this.stateManager.setAuthenticationRequired(this.authenticationRequired),e.has("withManualResources")&&((i=this.stateManager)===null||i===void 0||i.setWithManualResources(this.withManualResources)),setTimeout(()=>this.stateManager.updateIfNeeded())}};G.elementDefinitions={};G.styles=Xl;ae([(0,ye.property)()],G.prototype,"baseUrl",void 0);ae([(0,ye.property)()],G.prototype,"tenantId",void 0);ae([(0,ye.property)()],G.prototype,"apiIntegrationIdentifier",void 0);ae([(0,ye.property)()],G.prototype,"apiIntegrationAppVersion",void 0);ae([(0,ye.property)()],G.prototype,"uiLocale",void 0);ae([(0,Vt.jsonProperty)(null)],G.prototype,"availableUiLocales",void 0);ae([(0,Vt.jsonProperty)(null)],G.prototype,"metadataConfiguration",void 0);ae([(0,ye.property)({type:Boolean})],G.prototype,"editorMode",void 0);ae([(0,ye.property)({type:Boolean})],G.prototype,"noCustom",void 0);ae([(0,ye.property)({type:Boolean})],G.prototype,"openExternalDocumentInNewTab",void 0);ae([(0,ye.property)({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],G.prototype,"noCustomComponent",void 0);ae([(0,ye.property)({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],G.prototype,"noCustomCode",void 0);ae([(0,ye.property)({type:Boolean})],G.prototype,"withManualResources",void 0);ae([(0,ye.property)({type:Boolean})],G.prototype,"navigatorOnline",void 0);ae([(0,ye.property)({type:Boolean})],G.prototype,"forcedOffline",void 0);ae([(0,ye.property)({type:Boolean})],G.prototype,"authenticationRequired",void 0);ae([(0,Vt.jsonProperty)([])],G.prototype,"messageContexts",void 0);ae([(0,Vt.jsonProperty)(void 0)],G.prototype,"session",void 0);var tc=f(S());var ec={"ft-app-context":G};(0,tc.customElements)(ec);var ic=f(re());var so=class{fromLocalizableLabel(e){return e.type=="PLAIN_TEXT"?{message:e.text}:{key:e.key,custom:e.type=="LOCALIZED_CUSTOM",context:e.context,message:e.key}}fromAttribute(e){if(e!=null)try{return JSON.parse(e)}catch{if(this.isI18nKey(e)){let[i,r]=e.split(".");return{context:i,key:r,custom:i!=="officialContext",message:""}}return{message:e}}}toAttribute(e){if(e!=null)return JSON.stringify(e)}isI18nKey(e){return e.match(/^[\w-]+\.[\w-]+$/)}},si=new so;var Pd=function(t,e,i,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,i):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,i,o):s(e,i))||o);return n>3&&o&&Object.defineProperty(e,i,o),o},Bi=Symbol("i18nAttributes"),rc=Symbol("i18nListAttributes"),nc=Symbol("i18nProperties"),Wr=Symbol("i18nContexts"),Fi=Symbol("i18nUnsubs"),qr=(0,ai.applyMixinOnce)(Symbol("withI18n"),function(t){var e,i;class r extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map,this[i]=new Map}getI18nService(o){return o??this.useCustomMessageContexts?Hr:oi}i18n(o){let{context:s,key:a,message:l}=o,{custom:c,args:u,argsProvider:d}=o;if(s&&a){this.hasI18nContext(s)||this.addI18nContext(s,void 0,c);let p=u??(d?d(this):[]);return this.getI18nService(c).resolveMessage(s,a,...p)}return l}async awaitI18n(o){let{context:s,custom:a}=o;return s&&await this.getI18nService(a).prepareContext(s),this.i18n(o)}customI18n(o,s){if(si.isI18nKey(o)){let[a,l]=o.split(".");return this.i18n({custom:!0,context:a,key:l,...s})||o}return o}firstUpdated(o){super.firstUpdated(o),this.updateI18nAttributes(()=>!0),this.updateI18nProperties(()=>!0)}update(o){super.update(o),this.updateI18nAttributes((s,a,l)=>o.has(a)||typeof s.argsProvider=="function"),this.updateI18nProperties(s=>typeof s.argsProvider=="function")}onI18nUpdate(o){this.updateI18nAttributes((s,a,l)=>{var c;return((c=l?.context)===null||c===void 0?void 0:c.toLowerCase())===o}),this.updateI18nProperties(s=>s.context.toLowerCase()===o),this.requestUpdate()}updateI18nAttributes(o){var s,a;let l=this,c=(u,d,p)=>p?.context&&p.key&&o(u,d,p)?{...p,message:this.i18n({context:p.context,key:p.key,custom:p.custom,...u})}:p;(s=this[Bi])===null||s===void 0||s.forEach((u,d)=>l[d]=c(u,d,l[d])),(a=this[rc])===null||a===void 0||a.forEach((u,d)=>{var p;return l[d]=(p=l[d])===null||p===void 0?void 0:p.map(g=>c(u,d,g))})}updateI18nProperties(o){var s;(s=this[nc])===null||s===void 0||s.forEach((a,l)=>{o(a,l)&&(this[l]=this.i18n(a))})}addI18nMessages(o,s,a){console.warn('Deprecated usage of method "addI18nMessages", use "addI18nContext" instead.'),this.addI18nContext(o,s,a)}addI18nContext(o,s,a){let l=(typeof o=="string"?o:o.name).toLowerCase();a=typeof o=="string"?a:o.custom,this[Wr].set(l,{isCustomContext:a}),this[Fi].has(l)||this[Fi].set(l,this.getI18nService(a).subscribe(l,()=>this.onI18nUpdate(l))),this.getI18nService(a).prepareContext(l,s)}hasI18nContext(o){return this[Wr].has(o.toLowerCase())}connectedCallback(){super.connectedCallback(),this[Wr].forEach((o,s)=>this.addI18nContext(s,void 0,o.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[Fi].forEach(o=>o()),this[Fi].clear()}}return e=Wr,i=Fi,Pd([(0,ic.property)({type:Boolean})],r.prototype,"useCustomMessageContexts",void 0),r}),Kr=class extends qr(ai.FtLitElement){},Gr=class extends qr(ai.FtLitElementRedux){};var oc=f(S());var ao=class{fromAttribute(e){if(!e)return[];try{let i=JSON.parse(e);return Array.isArray(i)?i.map(r=>typeof r=="string"?si.fromAttribute(r):r):[]}catch{return[]}}toAttribute(e){if(e!=null)return JSON.stringify(e)}},Dd=new ao;var sc=(t,e)=>(i,r)=>{var n;i.constructor.createProperty(r,{type:Object,hasChanged:oc.hasChanged,converter:si,...e}),i[Bi]=(n=i[Bi])!==null&&n!==void 0?n:new Map,i[Bi].set(r,t??{})};var Yr=class t{static build(e){return new t(e)}static buildCustom(e){return new t(e,!0)}static fromGwt(e){return new t(e)}get service(){return this.custom?Hr:oi}constructor(e,i=!1){this.name=e,this.custom=i,this.properties=new Proxy({},{get:(r,n)=>{let o=n;return s=>({context:this.name,key:o,custom:this.custom,args:typeof s=="function"?void 0:s,argsProvider:typeof s=="function"?s:void 0})}}),this.messages=new Proxy({},{get:(r,n)=>(...o)=>this.service.resolveMessage(this.name,n,...o)}),this.rawMessages=new Proxy({},{get:(r,n)=>this.service.resolveRawMessage(this.name,n)}),this.keys=new Proxy({},{get:(r,n)=>()=>n}),this.attributes=new Proxy({},{get:(r,n)=>()=>({context:this.name,key:n,message:this.service.resolveRawMessage(this.name,n)})})}};var ac=f(z());var lc=ac.css`
634
+ `}connectedCallback(){super.connectedCallback(),this.stateManager.addListeners(),this.contextRoot.attach(document.body)}disconnectedCallback(){super.disconnectedCallback(),this.stateManager.removeListeners(),this.contextRoot.detach(document.body)}update(e){var i;super.update(e),e.has("baseUrl")&&this.stateManager.setBaseUrl(this.baseUrl),e.has("tenantId")&&this.stateManager.setTenantId(this.tenantId),e.has("apiIntegrationIdentifier")&&this.stateManager.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("apiIntegrationAppVersion")&&this.stateManager.setApiIntegrationAppVersion(this.apiIntegrationAppVersion),e.has("uiLocale")&&this.stateManager.setUiLocale(this.uiLocale),e.has("metadataConfiguration")&&this.stateManager.setMetadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&this.stateManager.setNoCustom(this.noCustom),e.has("editorMode")&&this.stateManager.setEditorMode(this.editorMode),e.has("noCustomComponent")&&this.stateManager.setNoCustomComponent(this.noCustomComponent),e.has("noCustomCode")&&this.stateManager.setNoCustomCode(this.noCustomCode),e.has("session")&&this.stateManager.setSession(this.session),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(r=>oi.addContext(r)),e.has("openExternalDocumentInNewTab")&&this.stateManager.setOpenExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("navigatorOnline")&&this.stateManager.setNavigatorOnline(this.navigatorOnline),e.has("forcedOffline")&&this.stateManager.setForcedOffline(this.forcedOffline),e.has("authenticationRequired")&&this.stateManager.setAuthenticationRequired(this.authenticationRequired),e.has("withManualResources")&&((i=this.stateManager)===null||i===void 0||i.setWithManualResources(this.withManualResources)),setTimeout(()=>this.stateManager.updateIfNeeded())}};G.elementDefinitions={};G.styles=Xl;ae([(0,ye.property)()],G.prototype,"baseUrl",void 0);ae([(0,ye.property)()],G.prototype,"tenantId",void 0);ae([(0,ye.property)()],G.prototype,"apiIntegrationIdentifier",void 0);ae([(0,ye.property)()],G.prototype,"apiIntegrationAppVersion",void 0);ae([(0,ye.property)()],G.prototype,"uiLocale",void 0);ae([(0,Vt.jsonProperty)(null)],G.prototype,"availableUiLocales",void 0);ae([(0,Vt.jsonProperty)(null)],G.prototype,"metadataConfiguration",void 0);ae([(0,ye.property)({type:Boolean})],G.prototype,"editorMode",void 0);ae([(0,ye.property)({type:Boolean})],G.prototype,"noCustom",void 0);ae([(0,ye.property)({type:Boolean})],G.prototype,"openExternalDocumentInNewTab",void 0);ae([(0,ye.property)({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],G.prototype,"noCustomComponent",void 0);ae([(0,ye.property)({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],G.prototype,"noCustomCode",void 0);ae([(0,ye.property)({type:Boolean})],G.prototype,"withManualResources",void 0);ae([(0,ye.property)({type:Boolean})],G.prototype,"navigatorOnline",void 0);ae([(0,ye.property)({type:Boolean})],G.prototype,"forcedOffline",void 0);ae([(0,ye.property)({type:Boolean})],G.prototype,"authenticationRequired",void 0);ae([(0,Vt.jsonProperty)([])],G.prototype,"messageContexts",void 0);ae([(0,Vt.jsonProperty)(void 0)],G.prototype,"session",void 0);var tc=f(S());var ec={"ft-app-context":G};(0,tc.customElements)(ec);var ic=f(re());var so=class{fromLocalizableLabel(e){return e.type=="PLAIN_TEXT"?{message:e.text}:{key:e.key,custom:e.type=="LOCALIZED_CUSTOM",context:e.context,message:e.key}}fromAttribute(e){if(e!=null)try{return JSON.parse(e)}catch{if(this.isI18nKey(e)){let[i,r]=e.split(".");return{context:i,key:r,custom:i!=="officialContext",message:""}}return{message:e}}}toAttribute(e){if(e!=null)return JSON.stringify(e)}isI18nKey(e){return e.match(/^[\w-]+\.[\w-]+$/)}},si=new so;var Pd=function(t,e,i,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,i):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,i,o):s(e,i))||o);return n>3&&o&&Object.defineProperty(e,i,o),o},Bi=Symbol("i18nAttributes"),rc=Symbol("i18nListAttributes"),nc=Symbol("i18nProperties"),Wr=Symbol("i18nContexts"),Fi=Symbol("i18nUnsubs"),qr=(0,ai.applyMixinOnce)(Symbol("withI18n"),function(t){var e,i;class r extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map,this[i]=new Map}getI18nService(o){return o??this.useCustomMessageContexts?Hr:oi}i18n(o){let{context:s,key:a,message:l}=o,{custom:c,args:u,argsProvider:d}=o;if(s&&a){this.hasI18nContext(s)||this.addI18nContext(s,void 0,c);let p=u??(d?d(this):[]);return this.getI18nService(c).resolveMessage(s,a,...p)}return l}async awaitI18n(o){let{context:s,custom:a}=o;return s&&await this.getI18nService(a).prepareContext(s),this.i18n(o)}customI18n(o,s){if(si.isI18nKey(o)){let[a,l]=o.split(".");return this.i18n({custom:!0,context:a,key:l,...s})||o}return o}firstUpdated(o){super.firstUpdated(o),this.updateI18nAttributes(()=>!0),this.updateI18nProperties(()=>!0)}update(o){super.update(o),this.updateI18nAttributes((s,a,l)=>o.has(a)||typeof s.argsProvider=="function"),this.updateI18nProperties(s=>typeof s.argsProvider=="function")}onI18nUpdate(o){this.updateI18nAttributes((s,a,l)=>{var c;return((c=l?.context)===null||c===void 0?void 0:c.toLowerCase())===o}),this.updateI18nProperties(s=>s.context.toLowerCase()===o),this.requestUpdate()}updateI18nAttributes(o){var s,a;let l=this,c=(u,d,p)=>p?.context&&p.key&&o(u,d,p)?{...p,message:this.i18n({context:p.context,key:p.key,custom:p.custom,...u})}:p;(s=this[Bi])===null||s===void 0||s.forEach((u,d)=>l[d]=c(u,d,l[d])),(a=this[rc])===null||a===void 0||a.forEach((u,d)=>{var p;return l[d]=(p=l[d])===null||p===void 0?void 0:p.map(g=>c(u,d,g))})}updateI18nProperties(o){var s;(s=this[nc])===null||s===void 0||s.forEach((a,l)=>{o(a,l)&&(this[l]=this.i18n(a))})}addI18nMessages(o,s,a){console.warn('Deprecated usage of method "addI18nMessages", use "addI18nContext" instead.'),this.addI18nContext(o,s,a)}addI18nContext(o,s,a){let l=(typeof o=="string"?o:o.name).toLowerCase();a=typeof o=="string"?a:o.custom,this[Wr].set(l,{isCustomContext:a}),this[Fi].has(l)||this[Fi].set(l,this.getI18nService(a).subscribe(l,()=>this.onI18nUpdate(l))),this.getI18nService(a).prepareContext(l,s)}hasI18nContext(o){return this[Wr].has(o.toLowerCase())}connectedCallback(){super.connectedCallback(),this[Wr].forEach((o,s)=>this.addI18nContext(s,void 0,o.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[Fi].forEach(o=>o()),this[Fi].clear()}}return e=Wr,i=Fi,Pd([(0,ic.property)({type:Boolean})],r.prototype,"useCustomMessageContexts",void 0),r}),Kr=class extends qr(ai.FtLitElement){},Gr=class extends qr(ai.FtLitElementRedux){};var oc=f(S());var ao=class{fromAttribute(e){if(!e)return[];try{let i=JSON.parse(e);return Array.isArray(i)?i.map(r=>typeof r=="string"?si.fromAttribute(r):r):[]}catch{return[]}}toAttribute(e){if(e!=null)return JSON.stringify(e)}},kd=new ao;var sc=(t,e)=>(i,r)=>{var n;i.constructor.createProperty(r,{type:Object,hasChanged:oc.hasChanged,converter:si,...e}),i[Bi]=(n=i[Bi])!==null&&n!==void 0?n:new Map,i[Bi].set(r,t??{})};var Yr=class t{static build(e){return new t(e)}static buildCustom(e){return new t(e,!0)}static fromGwt(e){return new t(e)}get service(){return this.custom?Hr:oi}constructor(e,i=!1){this.name=e,this.custom=i,this.properties=new Proxy({},{get:(r,n)=>{let o=n;return s=>({context:this.name,key:o,custom:this.custom,args:typeof s=="function"?void 0:s,argsProvider:typeof s=="function"?s:void 0})}}),this.messages=new Proxy({},{get:(r,n)=>(...o)=>this.service.resolveMessage(this.name,n,...o)}),this.rawMessages=new Proxy({},{get:(r,n)=>this.service.resolveRawMessage(this.name,n)}),this.keys=new Proxy({},{get:(r,n)=>()=>n}),this.attributes=new Proxy({},{get:(r,n)=>()=>({context:this.name,key:n,message:this.service.resolveRawMessage(this.name,n)})})}};var ac=f(z());var lc=ac.css`
635
635
  `;var Xr=f(z()),ci=f(re()),Zr=f(S());var li=function(t,e,i,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,i):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,i,o):s(e,i))||o);return n>3&&o&&Object.defineProperty(e,i,o),o},Me=class extends Gr{constructor(){super(),this.editorMode=!1,this.editorMessage="Select a context and a label key.",this.addStore(P)}render(){return!this.key||!this.context?this.editorMode?this.editorMessage:Xr.nothing:Xr.html`
636
636
  <span class="ft-i18n">
637
637
  ${this.i18n({context:this.context,key:this.key,args:Array.isArray(this.args)?this.args:[]})}
@@ -1019,7 +1019,7 @@
1019
1019
  .variant=${this.iconVariant}
1020
1020
  .value=${this.icon}
1021
1021
  @click=${()=>{var e;return(e=this.input)===null||e===void 0?void 0:e.focus()}}></ft-icon>
1022
- `:ie.nothing}update(e){super.update(e),(e.has("value")||e.has("filterSuggestions")||e.has("suggestionsProvider"))&&this.updateSuggestions(),e.has("value")&&e.get("value")!=null&&(this.hideSuggestions=!1),e.has("dispatchedValue")&&e.get("dispatchedValue")!=null&&(this.hideSuggestions=!0)}async updateSuggestions(){var e;if(this.suggestionsProvider){(e=this.cancelableSuggest)===null||e===void 0||e.cancel();let i=this.suggestionsProvider(this.value);i instanceof Promise?(this.cancelableSuggest=(0,xe.cancelable)(i),this.providedSuggestions=await this.cancelableSuggest):(this.cancelableSuggest=void 0,this.providedSuggestions=i)}else this.filterSuggestionsIfNeeded()}filterSuggestionsIfNeeded(){this.filterSuggestions?(this.slottedSuggestions.forEach(e=>e.hidden=!e.getValue().toLowerCase().includes(this.value.toLowerCase())),this.visibleSuggestions=this.slottedSuggestions.filter(e=>!e.hidden)):this.visibleSuggestions=this.slottedSuggestions,this.newValueSuggestion&&(this.visibleSuggestions=[...this.visibleSuggestions,this.newValueSuggestion]),this.hideSuggestions=this.visibleSuggestions.length<=0}contentAvailableCallback(e){super.contentAvailableCallback(e),e.has("focused")&&!this.hideSuggestions&&this.visibleSuggestions.length>0&&this.setSuggestionPosition(),e.has("providedSuggestions")&&this.suggestionsProvider&&(this.visibleSuggestions=[...this.providedSuggestionsInDom]),e.has("autocomplete")&&this.setupWatchAutofill(),this.suggestionsShouldBeDisplayed()&&this.setSuggestionPosition()}setupWatchAutofill(){var e;this.clearWatchAutofill(),((e=this.autocomplete)!==null&&e!==void 0?e:"off")!=="off"&&(this.watchAutofillInterval=setInterval(()=>{var i,r,n;!((i=this.input)===null||i===void 0)&&i.matches(":autofill")&&this.dispatchedValue!==((r=this.input)===null||r===void 0?void 0:r.value)&&this.setValue((n=this.input)===null||n===void 0?void 0:n.value,!0)},200))}clearWatchAutofill(){this.watchAutofillInterval&&clearInterval(this.watchAutofillInterval)}connectedCallback(){super.connectedCallback(),this.setupWatchAutofill()}disconnectedCallback(){super.disconnectedCallback(),this.clearWatchAutofill()}setValue(e,i=!1){var r,n;this.value!==e&&(this.inputValid=!0,this.setInternalValue(e),this.dispatchEvent(new qi(e))),i&&this.dispatchedValue!==e&&(this.inputValid=(n=(r=this.input)===null||r===void 0?void 0:r.checkValidity())!==null&&n!==void 0?n:!0,this.inputValid?(this.dispatchedValue=e,this.dispatchEvent(new Yi(e))):this.dispatchEvent(new Xi(this.input.validationMessage)))}handleInput(e){var i;let r=((i=this.input)===null||i===void 0?void 0:i.value)||"";this.setValue(r,e.key=="Escape"||e.key=="Enter")}catchComposingEvents(e){}handleClick(){this.hideSuggestions=!1}handleKeyboardNavigation(e){var i,r;if(e.key==="ArrowDown"||e.key==="ArrowUp"){e.preventDefault(),e.stopPropagation(),this.hideSuggestions=!1;let n=this.visibleSuggestions.findIndex(s=>s.matches(":focus-within")),o;e.key==="ArrowDown"?o=n<this.visibleSuggestions.length-1?n+1:0:o=n>0?n-1:this.visibleSuggestions.length-1,(i=this.visibleSuggestions[o])===null||i===void 0||i.focus(void 0,(r=this.visibleSuggestions[n])===null||r===void 0?void 0:r.isRemoveButtonFocused())}(e.key=="Escape"||e.key=="Enter")&&(this.hideSuggestions=!0)}onSuggestionSelected(e){var i;this.setValue(e.detail,!0),(i=this.input)===null||i===void 0||i.focus(),setTimeout(()=>this.hideSuggestions=!0,0)}onSuggestionRemoved(){setTimeout(()=>this.updateSuggestions())}onFocus(){this.focused=!0,this.hideSuggestions=!1}onMainPanelBlur(){var e,i;!((e=this.mainPanel)===null||e===void 0)&&e.matches(":focus-within")||(this.focused=!1,this.setValue(((i=this.input)===null||i===void 0?void 0:i.value)||"",!0))}togglePasswordVisibility(){this.hidePassword=!this.hidePassword}isPasswordField(){return this.password||this.type==="password"}setSuggestionPosition(){this.suggestionsContainer.style.width=this.mainPanel.getBoundingClientRect().width+"px";let e=["bottom","top"];(0,xe.computeOffsetAutoPosition)(this.mainPanel,this.suggestionsContainer,"bottom",e,"fixed","--text-field-internal-suggest-size",0).then(({x:i,y:r})=>{this.suggestionsContainer.style.left=`${i}px`,this.suggestionsContainer.style.top=`${r}px`})}suggestionsShouldBeDisplayed(){return!this.hideSuggestions&&(this.visibleSuggestions.length||this.providedSuggestions.length)}};C.elementDefinitions={"ft-input-label":Te,"ft-ripple":F,"ft-typography":ne,"ft-icon":J,"ft-text-field-suggestion":be};C.styles=[qt,xe.noTextInputDefaultClearButton,is];$([(0,N.property)()],C.prototype,"label",void 0);$([(0,N.property)({noAccessor:!0})],C.prototype,"value",null);$([(0,N.state)()],C.prototype,"dispatchedValue",void 0);$([(0,N.property)()],C.prototype,"helper",void 0);$([(0,N.property)()],C.prototype,"suggestionsHelper",void 0);$([(0,N.property)({type:Boolean})],C.prototype,"outlined",void 0);$([(0,N.property)({type:Boolean})],C.prototype,"disabled",void 0);$([(0,N.property)({type:Boolean})],C.prototype,"error",void 0);$([(0,N.property)({type:Boolean})],C.prototype,"fixedMenuPosition",void 0);$([(0,N.property)()],C.prototype,"prefix",void 0);$([(0,N.property)()],C.prototype,"icon",void 0);$([(0,N.property)()],C.prototype,"name",void 0);$([(0,N.property)()],C.prototype,"type",void 0);$([(0,N.property)()],C.prototype,"passwordHiddenIcon",void 0);$([(0,N.property)()],C.prototype,"passwordRevealedIcon",void 0);$([(0,N.property)()],C.prototype,"iconVariant",void 0);$([(0,N.property)({type:Boolean})],C.prototype,"filterSuggestions",void 0);$([(0,xe.numberProperty)()],C.prototype,"maxLength",void 0);$([(0,N.property)({type:Boolean})],C.prototype,"password",void 0);$([(0,N.property)({type:String})],C.prototype,"autocomplete",void 0);$([(0,N.property)({attribute:!1})],C.prototype,"suggestionsProvider",void 0);$([(0,N.property)({type:Boolean})],C.prototype,"hideCurrentValueSuggestion",void 0);$([(0,N.state)()],C.prototype,"focused",void 0);$([(0,N.state)()],C.prototype,"inputValid",void 0);$([(0,N.state)()],C.prototype,"hidePassword",void 0);$([(0,N.state)()],C.prototype,"hideSuggestions",void 0);$([(0,N.state)()],C.prototype,"visibleSuggestions",void 0);$([(0,N.state)()],C.prototype,"providedSuggestions",void 0);$([(0,N.query)(".ft-text-field--main-panel")],C.prototype,"mainPanel",void 0);$([(0,N.query)(".ft-text-field--input")],C.prototype,"input",void 0);$([(0,N.query)(".ft-text-field-suggestion--new-value")],C.prototype,"newValueSuggestion",void 0);$([(0,N.query)(".ft-text-field--suggestions")],C.prototype,"suggestionsContainer",void 0);$([(0,N.queryAll)("ft-text-field-suggestion")],C.prototype,"providedSuggestionsInDom",void 0);$([(0,N.queryAssignedElements)({selector:"ft-text-field-suggestion"})],C.prototype,"slottedSuggestions",void 0);$([(0,xe.ignoreComposingEvents)()],C.prototype,"handleInput",null);$([(0,xe.ignoreComposingEvents)()],C.prototype,"catchComposingEvents",null);var Pc=f(S());var Lc={"ft-text-field":C,"ft-text-field-suggestion":be};(0,Pc.customElements)(Lc);var w={..._,chipGap:he.FtCssVariableFactory.extend("--ft-combobox-chip-gap","",he.foundation.spacing1),chipsMarginTop:he.FtCssVariableFactory.extend("--ft-combobox-chips-margin-top","",he.foundation.spacing2),suggestSize:he.FtCssVariableFactory.create("--ft-combobox-suggest-size","","SIZE","370px")},Nc=Dc.css`
1022
+ `:ie.nothing}update(e){super.update(e),(e.has("value")||e.has("filterSuggestions")||e.has("suggestionsProvider"))&&this.updateSuggestions(),e.has("value")&&e.get("value")!=null&&(this.hideSuggestions=!1),e.has("dispatchedValue")&&e.get("dispatchedValue")!=null&&(this.hideSuggestions=!0)}async updateSuggestions(){var e;if(this.suggestionsProvider){(e=this.cancelableSuggest)===null||e===void 0||e.cancel();let i=this.suggestionsProvider(this.value);i instanceof Promise?(this.cancelableSuggest=(0,xe.cancelable)(i),this.providedSuggestions=await this.cancelableSuggest):(this.cancelableSuggest=void 0,this.providedSuggestions=i)}else this.filterSuggestionsIfNeeded()}filterSuggestionsIfNeeded(){this.filterSuggestions?(this.slottedSuggestions.forEach(e=>e.hidden=!e.getValue().toLowerCase().includes(this.value.toLowerCase())),this.visibleSuggestions=this.slottedSuggestions.filter(e=>!e.hidden)):this.visibleSuggestions=this.slottedSuggestions,this.newValueSuggestion&&(this.visibleSuggestions=[...this.visibleSuggestions,this.newValueSuggestion]),this.hideSuggestions=this.visibleSuggestions.length<=0}contentAvailableCallback(e){super.contentAvailableCallback(e),e.has("focused")&&!this.hideSuggestions&&this.visibleSuggestions.length>0&&this.setSuggestionPosition(),e.has("providedSuggestions")&&this.suggestionsProvider&&(this.visibleSuggestions=[...this.providedSuggestionsInDom]),e.has("autocomplete")&&this.setupWatchAutofill(),this.suggestionsShouldBeDisplayed()&&this.setSuggestionPosition()}setupWatchAutofill(){var e;this.clearWatchAutofill(),((e=this.autocomplete)!==null&&e!==void 0?e:"off")!=="off"&&(this.watchAutofillInterval=setInterval(()=>{var i,r,n;!((i=this.input)===null||i===void 0)&&i.matches(":autofill")&&this.dispatchedValue!==((r=this.input)===null||r===void 0?void 0:r.value)&&this.setValue((n=this.input)===null||n===void 0?void 0:n.value,!0)},200))}clearWatchAutofill(){this.watchAutofillInterval&&clearInterval(this.watchAutofillInterval)}connectedCallback(){super.connectedCallback(),this.setupWatchAutofill()}disconnectedCallback(){super.disconnectedCallback(),this.clearWatchAutofill()}setValue(e,i=!1){var r,n;this.value!==e&&(this.inputValid=!0,this.setInternalValue(e),this.dispatchEvent(new qi(e))),i&&this.dispatchedValue!==e&&(this.inputValid=(n=(r=this.input)===null||r===void 0?void 0:r.checkValidity())!==null&&n!==void 0?n:!0,this.inputValid?(this.dispatchedValue=e,this.dispatchEvent(new Yi(e))):this.dispatchEvent(new Xi(this.input.validationMessage)))}handleInput(e){var i;let r=((i=this.input)===null||i===void 0?void 0:i.value)||"";this.setValue(r,e.key=="Escape"||e.key=="Enter")}catchComposingEvents(e){}handleClick(){this.hideSuggestions=!1}handleKeyboardNavigation(e){var i,r;if(e.key==="ArrowDown"||e.key==="ArrowUp"){e.preventDefault(),e.stopPropagation(),this.hideSuggestions=!1;let n=this.visibleSuggestions.findIndex(s=>s.matches(":focus-within")),o;e.key==="ArrowDown"?o=n<this.visibleSuggestions.length-1?n+1:0:o=n>0?n-1:this.visibleSuggestions.length-1,(i=this.visibleSuggestions[o])===null||i===void 0||i.focus(void 0,(r=this.visibleSuggestions[n])===null||r===void 0?void 0:r.isRemoveButtonFocused())}(e.key=="Escape"||e.key=="Enter")&&(this.hideSuggestions=!0)}onSuggestionSelected(e){var i;this.setValue(e.detail,!0),(i=this.input)===null||i===void 0||i.focus(),setTimeout(()=>this.hideSuggestions=!0,0)}onSuggestionRemoved(){setTimeout(()=>this.updateSuggestions())}onFocus(){this.focused=!0,this.hideSuggestions=!1}onMainPanelBlur(){var e,i;!((e=this.mainPanel)===null||e===void 0)&&e.matches(":focus-within")||(this.focused=!1,this.setValue(((i=this.input)===null||i===void 0?void 0:i.value)||"",!0))}togglePasswordVisibility(){this.hidePassword=!this.hidePassword}isPasswordField(){return this.password||this.type==="password"}setSuggestionPosition(){this.suggestionsContainer.style.width=this.mainPanel.getBoundingClientRect().width+"px";let e=["bottom","top"];(0,xe.computeOffsetAutoPosition)(this.mainPanel,this.suggestionsContainer,"bottom",e,"fixed","--text-field-internal-suggest-size",0).then(({x:i,y:r})=>{this.suggestionsContainer.style.left=`${i}px`,this.suggestionsContainer.style.top=`${r}px`})}suggestionsShouldBeDisplayed(){return!this.hideSuggestions&&(this.visibleSuggestions.length||this.providedSuggestions.length)}};C.elementDefinitions={"ft-input-label":Te,"ft-ripple":F,"ft-typography":ne,"ft-icon":J,"ft-text-field-suggestion":be};C.styles=[qt,xe.noTextInputDefaultClearButton,is];$([(0,D.property)()],C.prototype,"label",void 0);$([(0,D.property)({noAccessor:!0})],C.prototype,"value",null);$([(0,D.state)()],C.prototype,"dispatchedValue",void 0);$([(0,D.property)()],C.prototype,"helper",void 0);$([(0,D.property)()],C.prototype,"suggestionsHelper",void 0);$([(0,D.property)({type:Boolean})],C.prototype,"outlined",void 0);$([(0,D.property)({type:Boolean})],C.prototype,"disabled",void 0);$([(0,D.property)({type:Boolean})],C.prototype,"error",void 0);$([(0,D.property)({type:Boolean})],C.prototype,"fixedMenuPosition",void 0);$([(0,D.property)()],C.prototype,"prefix",void 0);$([(0,D.property)()],C.prototype,"icon",void 0);$([(0,D.property)()],C.prototype,"name",void 0);$([(0,D.property)()],C.prototype,"type",void 0);$([(0,D.property)()],C.prototype,"passwordHiddenIcon",void 0);$([(0,D.property)()],C.prototype,"passwordRevealedIcon",void 0);$([(0,D.property)()],C.prototype,"iconVariant",void 0);$([(0,D.property)({type:Boolean})],C.prototype,"filterSuggestions",void 0);$([(0,xe.numberProperty)()],C.prototype,"maxLength",void 0);$([(0,D.property)({type:Boolean})],C.prototype,"password",void 0);$([(0,D.property)({type:String})],C.prototype,"autocomplete",void 0);$([(0,D.property)({attribute:!1})],C.prototype,"suggestionsProvider",void 0);$([(0,D.property)({type:Boolean})],C.prototype,"hideCurrentValueSuggestion",void 0);$([(0,D.state)()],C.prototype,"focused",void 0);$([(0,D.state)()],C.prototype,"inputValid",void 0);$([(0,D.state)()],C.prototype,"hidePassword",void 0);$([(0,D.state)()],C.prototype,"hideSuggestions",void 0);$([(0,D.state)()],C.prototype,"visibleSuggestions",void 0);$([(0,D.state)()],C.prototype,"providedSuggestions",void 0);$([(0,D.query)(".ft-text-field--main-panel")],C.prototype,"mainPanel",void 0);$([(0,D.query)(".ft-text-field--input")],C.prototype,"input",void 0);$([(0,D.query)(".ft-text-field-suggestion--new-value")],C.prototype,"newValueSuggestion",void 0);$([(0,D.query)(".ft-text-field--suggestions")],C.prototype,"suggestionsContainer",void 0);$([(0,D.queryAll)("ft-text-field-suggestion")],C.prototype,"providedSuggestionsInDom",void 0);$([(0,D.queryAssignedElements)({selector:"ft-text-field-suggestion"})],C.prototype,"slottedSuggestions",void 0);$([(0,xe.ignoreComposingEvents)()],C.prototype,"handleInput",null);$([(0,xe.ignoreComposingEvents)()],C.prototype,"catchComposingEvents",null);var Pc=f(S());var Lc={"ft-text-field":C,"ft-text-field-suggestion":be};(0,Pc.customElements)(Lc);var w={..._,chipGap:he.FtCssVariableFactory.extend("--ft-combobox-chip-gap","",he.foundation.spacing1),chipsMarginTop:he.FtCssVariableFactory.extend("--ft-combobox-chips-margin-top","",he.foundation.spacing2),suggestSize:he.FtCssVariableFactory.create("--ft-combobox-suggest-size","","SIZE","370px")},Dc=kc.css`
1023
1023
  *:focus {
1024
1024
  outline: none;
1025
1025
  }
@@ -1208,7 +1208,7 @@
1208
1208
  .ft-combobox--chips-container ft-chip {
1209
1209
  flex-shrink: 0;
1210
1210
  }
1211
- `;var Qr=f(z()),de=f(re()),Uc=f(ot()),ui=f(S());var zi=f(z()),D=f(S());var kc=D.FtCssVariableFactory.extend("--ft-chip-color","",D.designSystemVariables.colorOnSurface),Ce={backgroundColor:D.FtCssVariableFactory.extend("--ft-chip-background-color","",D.designSystemVariables.colorSurface),color:kc,fontSize:D.FtCssVariableFactory.extend("--ft-chip-font-size","",we.fontSize),fontWeight:D.FtCssVariableFactory.extend("--ft-chip-font-weight","",we.fontWeight),iconSize:D.FtCssVariableFactory.create("--ft-chip-icon-size","","SIZE","18px"),borderRadius:D.FtCssVariableFactory.create("--ft-chip-border-radius","","SIZE",""),rippleColor:D.FtCssVariableFactory.extend("--ft-chip-ripple-color","",kc),horizontalPadding:D.FtCssVariableFactory.create("--ft-chip-horizontal-padding","","SIZE","6px"),verticalPadding:D.FtCssVariableFactory.create("--ft-chip-vertical-padding","","SIZE","6px"),borderColor:D.FtCssVariableFactory.extend("--ft-chip-border-color","",D.designSystemVariables.colorOutline),opacityDisabled:D.FtCssVariableFactory.external(D.designSystemVariables.colorOpacityDisabled,"Design system")},Ic=D.FtCssVariableFactory.extend("--ft-chip-highlighted-color","",D.FtCssVariableFactory.extend("--ft-chip-color","",D.designSystemVariables.colorOnPrimary)),po={backgroundColor:D.FtCssVariableFactory.extend("--ft-chip-highlighted-background-color","",D.FtCssVariableFactory.extend("--ft-chip-background-color","",D.designSystemVariables.colorPrimary)),color:Ic,rippleColor:D.FtCssVariableFactory.extend("--ft-chip-highlighted-ripple-color","",Ic)},Mc={horizontalPadding:D.FtCssVariableFactory.create("--ft-chip-dense-horizontal-padding","","SIZE","4px"),verticalPadding:D.FtCssVariableFactory.create("--ft-chip-dense-vertical-padding","","SIZE","4px")},$c=[D.noTextSelect,zi.css`
1211
+ `;var Qr=f(z()),de=f(re()),Uc=f(ot()),ui=f(S());var zi=f(z()),k=f(S());var Nc=k.FtCssVariableFactory.extend("--ft-chip-color","",k.designSystemVariables.colorOnSurface),Ce={backgroundColor:k.FtCssVariableFactory.extend("--ft-chip-background-color","",k.designSystemVariables.colorSurface),color:Nc,fontSize:k.FtCssVariableFactory.extend("--ft-chip-font-size","",we.fontSize),fontWeight:k.FtCssVariableFactory.extend("--ft-chip-font-weight","",we.fontWeight),iconSize:k.FtCssVariableFactory.create("--ft-chip-icon-size","","SIZE","18px"),borderRadius:k.FtCssVariableFactory.create("--ft-chip-border-radius","","SIZE",""),rippleColor:k.FtCssVariableFactory.extend("--ft-chip-ripple-color","",Nc),horizontalPadding:k.FtCssVariableFactory.create("--ft-chip-horizontal-padding","","SIZE","6px"),verticalPadding:k.FtCssVariableFactory.create("--ft-chip-vertical-padding","","SIZE","6px"),borderColor:k.FtCssVariableFactory.extend("--ft-chip-border-color","",k.designSystemVariables.colorOutline),opacityDisabled:k.FtCssVariableFactory.external(k.designSystemVariables.colorOpacityDisabled,"Design system")},Ic=k.FtCssVariableFactory.extend("--ft-chip-highlighted-color","",k.FtCssVariableFactory.extend("--ft-chip-color","",k.designSystemVariables.colorOnPrimary)),po={backgroundColor:k.FtCssVariableFactory.extend("--ft-chip-highlighted-background-color","",k.FtCssVariableFactory.extend("--ft-chip-background-color","",k.designSystemVariables.colorPrimary)),color:Ic,rippleColor:k.FtCssVariableFactory.extend("--ft-chip-highlighted-ripple-color","",Ic)},Mc={horizontalPadding:k.FtCssVariableFactory.create("--ft-chip-dense-horizontal-padding","","SIZE","4px"),verticalPadding:k.FtCssVariableFactory.create("--ft-chip-dense-vertical-padding","","SIZE","4px")},$c=[k.noTextSelect,zi.css`
1212
1212
  :host {
1213
1213
  display: inline-block;
1214
1214
  max-width: 100%;
@@ -1227,7 +1227,7 @@
1227
1227
  --chip-internal-font-size: ${Ce.fontSize};
1228
1228
  --chip-internal-font-weight: ${Ce.fontWeight};
1229
1229
  --chip-internal-line-height: max(20px, calc(var(--chip-internal-font-size) + 2px));
1230
- ${(0,D.setVariable)(le.size,Ce.iconSize)};
1230
+ ${(0,k.setVariable)(le.size,Ce.iconSize)};
1231
1231
  --chip-internal-vertical-padding: ${Ce.verticalPadding};
1232
1232
  --chip-internal-horizontal-padding: ${Ce.horizontalPadding};
1233
1233
  --chip-internal-icon-padding: 3px;
@@ -1235,7 +1235,7 @@
1235
1235
 
1236
1236
  border: 1px solid ${Ce.borderColor};
1237
1237
  color: ${Ce.color};
1238
- ${(0,D.setVariable)(se.color,Ce.rippleColor)};
1238
+ ${(0,k.setVariable)(se.color,Ce.rippleColor)};
1239
1239
  border-radius: var(${(0,zi.unsafeCSS)(Ce.borderRadius.name)}, calc(var(--chip-internal-content-height) / 2 + var(--chip-internal-vertical-padding)));
1240
1240
  padding: calc(var(--chip-internal-vertical-padding) - 1px) calc(var(--chip-internal-horizontal-padding) - 1px);
1241
1241
  background-color: ${Ce.backgroundColor};
@@ -1268,7 +1268,7 @@
1268
1268
  border: none;
1269
1269
  padding: var(--chip-internal-vertical-padding) var(--chip-internal-horizontal-padding);
1270
1270
  background-color: ${po.backgroundColor};
1271
- ${(0,D.setVariable)(se.color,po.rippleColor)};
1271
+ ${(0,k.setVariable)(se.color,po.rippleColor)};
1272
1272
  color: ${po.color};
1273
1273
  }
1274
1274
 
@@ -1278,7 +1278,7 @@
1278
1278
  }
1279
1279
 
1280
1280
  .ft-chip:focus {
1281
- outline: 2px solid ${D.designSystemVariables.colorPrimary};
1281
+ outline: 2px solid ${k.designSystemVariables.colorPrimary};
1282
1282
  outline-offset: 2px;
1283
1283
  }
1284
1284
 
@@ -1300,9 +1300,9 @@
1300
1300
  }
1301
1301
 
1302
1302
  .ft-chip--icon-button {
1303
- ${(0,D.setVariable)(q.iconSize,Ce.iconSize)};
1304
- ${(0,D.setVariable)(q.horizontalPadding,"var(--chip-internal-icon-padding)")};
1305
- ${(0,D.setVariable)(q.verticalPadding,"var(--chip-internal-icon-padding)")};
1303
+ ${(0,k.setVariable)(q.iconSize,Ce.iconSize)};
1304
+ ${(0,k.setVariable)(q.horizontalPadding,"var(--chip-internal-icon-padding)")};
1305
+ ${(0,k.setVariable)(q.verticalPadding,"var(--chip-internal-icon-padding)")};
1306
1306
  margin: calc((-1) * var(--chip-internal-icon-padding));
1307
1307
  }
1308
1308
 
@@ -1310,9 +1310,9 @@
1310
1310
  vertical-align: bottom;
1311
1311
  display: block;
1312
1312
  margin: 0 var(--chip-internal-horizontal-padding);
1313
- ${(0,D.setVariable)(we.fontSize,"var(--chip-internal-font-size)")};
1314
- ${(0,D.setVariable)(we.fontWeight,"var(--chip-internal-font-weight)")};
1315
- ${(0,D.setVariable)(we.lineHeight,"var(--chip-internal-content-height)")};
1313
+ ${(0,k.setVariable)(we.fontSize,"var(--chip-internal-font-size)")};
1314
+ ${(0,k.setVariable)(we.fontWeight,"var(--chip-internal-font-weight)")};
1315
+ ${(0,k.setVariable)(we.lineHeight,"var(--chip-internal-content-height)")};
1316
1316
  }
1317
1317
 
1318
1318
  .ft-chip--safari-fix .ft-chip--label {
@@ -1375,7 +1375,7 @@
1375
1375
  <div class="ft-chip--icon-container ft-no-text-select" part="icon-container">
1376
1376
  <ft-icon .variant=${this.iconVariant} .value=${this.internalIcon} part="icon"></ft-icon>
1377
1377
  </div>
1378
- `}onKeyUp(e){this.interactionsOnChip&&["Enter"," "].includes(e.key)&&e.target.click()}onIconKeyUp(e){this.interactionsOnIcon&&["Enter"," "].includes(e.key)&&(e.stopPropagation(),this.dispatchEvent(new en))}onIconClick(e){this.interactionsOnIcon&&(e.stopPropagation(),this.dispatchEvent(new en))}getLabel(){return this.label||this.getTextContent()}getTextContent(){return(0,ui.unslotText)(this.slottedContent).trim()}hasTextContent(){return this.getTextContent().length>0}onSlotchange(){this.requestUpdate()}get internalIcon(){return this.icon||(this.removable?"close":void 0)}};Y.elementDefinitions={"ft-ripple":F,"ft-typography":ne,"ft-icon":J,"ft-button":I};Y.styles=$c;ve([(0,de.property)({type:Boolean})],Y.prototype,"highlighted",void 0);ve([(0,de.property)({type:Boolean})],Y.prototype,"removable",void 0);ve([(0,de.property)({type:Boolean})],Y.prototype,"disabled",void 0);ve([(0,de.property)({type:Boolean})],Y.prototype,"clickable",void 0);ve([(0,de.property)({type:Boolean})],Y.prototype,"iconClickable",void 0);ve([(0,de.property)({type:Boolean})],Y.prototype,"dense",void 0);ve([(0,de.property)({type:Boolean})],Y.prototype,"multiLine",void 0);ve([(0,de.property)()],Y.prototype,"label",void 0);ve([(0,de.property)()],Y.prototype,"iconLabel",void 0);ve([(0,de.property)({type:Boolean})],Y.prototype,"hideIconTooltip",void 0);ve([(0,de.property)()],Y.prototype,"icon",void 0);ve([(0,de.property)()],Y.prototype,"iconVariant",void 0);ve([(0,de.property)({type:Boolean})],Y.prototype,"trailingIcon",void 0);ve([(0,de.property)()],Y.prototype,"typographyVariant",void 0);ve([(0,de.query)("ft-typography slot")],Y.prototype,"slottedContent",void 0);var Fc=f(S());var Vc={"ft-chip":Y};(0,Fc.customElements)(Vc);var jt=Yr.build("ftCombobox"),Bc={ariaLiveOptions:"{0} options","ariaLiveOptions[\\=1]":"1 option",valueAdded:"{0} added",valueRemoved:"{0} removed",maxValuesReached:"Maximum {0} values allowed","maxValuesReached[\\=1]":"Maximum 1 value allowed",removeValueLabel:"Remove {0}"};var U=function(t,e,i,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,i):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,i,o):s(e,i))||o);return n>3&&o&&Object.defineProperty(e,i,o),o},k=class extends qr(Pe.FtLitElement){get value(){return this._value||""}set value(e){let i=this._value;this._value=e||"",this.filter=this._value,this.requestUpdate("value",i)}constructor(){super(),this.error=!1,this.filterSuggestions=!1,this.disabled=!1,this.outlined=!1,this.suggestionsProvider=()=>[],this._value="",this.canOfferNewValue=!0,this.multiValued=!1,this.labels=[],this.labelsToValues=new Map,this.filter="",this.isOpen=!1,this.comboboxHasVisualFocus=!1,this.listboxHasVisualFocus=!1,this.providedSuggestions=[],this.visibleSuggestions=[],this.activeIndex=-1,this.ariaLiveMessage="",this.onComboboxInput=async()=>{let e=this.input.value,i=this._value!==""||this.multiValued&&this.labels.length>0;this.filter=e,this.activeIndex=-1,!this.multiValued&&i&&e===""&&(this._value="",this.dispatchChangeEvent()),this.ariaLiveMessage="",await this.updateSuggestions(),this.getTotalSuggestionsCount()>0?this.openListbox():this.closeListbox(!0)},this.onComboboxClick=()=>{this.isOpen?this.closeListbox(!0):this.openListbox()},this.onComboboxFocus=()=>{this.filter=this.input.value,this.updateSuggestions(),this.setVisualFocusCombobox(),this.activeIndex=-1},this.onComboboxBlur=()=>{this.removeVisualFocusAll()},this.backgroundListenerInstalled=!1,this.onBackgroundPointerUp=e=>{e.composedPath().includes(this)||(this.removeVisualFocusAll(),setTimeout(()=>this.closeListbox(!0),300))},this.onSuggestionClick=e=>{var i;e.kind==="new"?this.setValue(((i=this.input)===null||i===void 0?void 0:i.value)||this.value):this.setValue(e.label),this.multiValued||this.closeListbox(!0)},this.addI18nContext(jt,Bc)}willUpdate(e){e.has("suggestionsProviderDebouncerTimeout")&&(this._suggestionsProviderDebouncer=this.suggestionsProviderDebouncerTimeout&&this.suggestionsProviderDebouncerTimeout>0?new Pe.Debouncer(this.suggestionsProviderDebouncerTimeout):void 0),(e.has("suggestionsProvider")||e.has("filter"))&&this.updateSuggestions()}render(){let e={"ft-combobox":!0,"ft-combobox--filled":!this.outlined,"ft-combobox--outlined":this.outlined,"ft-combobox--disabled":this.disabled,"ft-combobox--with-label":!!this.label,"ft-combobox--with-icon":!!this.icon,"ft-combobox--in-error":this.error,"ft-combobox--raised-label":this.comboboxHasVisualFocus||!!this.filter},i={"ft-combobox--listbox":!0,focus:this.listboxHasVisualFocus};return Se.html`
1378
+ `}onKeyUp(e){this.interactionsOnChip&&["Enter"," "].includes(e.key)&&e.target.click()}onIconKeyUp(e){this.interactionsOnIcon&&["Enter"," "].includes(e.key)&&(e.stopPropagation(),this.dispatchEvent(new en))}onIconClick(e){this.interactionsOnIcon&&(e.stopPropagation(),this.dispatchEvent(new en))}getLabel(){return this.label||this.getTextContent()}getTextContent(){return(0,ui.unslotText)(this.slottedContent).trim()}hasTextContent(){return this.getTextContent().length>0}onSlotchange(){this.requestUpdate()}get internalIcon(){return this.icon||(this.removable?"close":void 0)}};Y.elementDefinitions={"ft-ripple":F,"ft-typography":ne,"ft-icon":J,"ft-button":I};Y.styles=$c;ve([(0,de.property)({type:Boolean})],Y.prototype,"highlighted",void 0);ve([(0,de.property)({type:Boolean})],Y.prototype,"removable",void 0);ve([(0,de.property)({type:Boolean})],Y.prototype,"disabled",void 0);ve([(0,de.property)({type:Boolean})],Y.prototype,"clickable",void 0);ve([(0,de.property)({type:Boolean})],Y.prototype,"iconClickable",void 0);ve([(0,de.property)({type:Boolean})],Y.prototype,"dense",void 0);ve([(0,de.property)({type:Boolean})],Y.prototype,"multiLine",void 0);ve([(0,de.property)()],Y.prototype,"label",void 0);ve([(0,de.property)()],Y.prototype,"iconLabel",void 0);ve([(0,de.property)({type:Boolean})],Y.prototype,"hideIconTooltip",void 0);ve([(0,de.property)()],Y.prototype,"icon",void 0);ve([(0,de.property)()],Y.prototype,"iconVariant",void 0);ve([(0,de.property)({type:Boolean})],Y.prototype,"trailingIcon",void 0);ve([(0,de.property)()],Y.prototype,"typographyVariant",void 0);ve([(0,de.query)("ft-typography slot")],Y.prototype,"slottedContent",void 0);var Fc=f(S());var Vc={"ft-chip":Y};(0,Fc.customElements)(Vc);var jt=Yr.build("ftCombobox"),Bc={ariaLiveOptions:"{0} options","ariaLiveOptions[\\=1]":"1 option",valueAdded:"{0} added",valueRemoved:"{0} removed",maxValuesReached:"Maximum {0} values allowed","maxValuesReached[\\=1]":"Maximum 1 value allowed",removeValueLabel:"Remove {0}"};var U=function(t,e,i,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,i):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,i,o):s(e,i))||o);return n>3&&o&&Object.defineProperty(e,i,o),o},N=class extends qr(Pe.FtLitElement){get value(){return this._value||""}set value(e){let i=this._value;this._value=e||"",this.filter=this._value,this.requestUpdate("value",i)}constructor(){super(),this.error=!1,this.filterSuggestions=!1,this.disabled=!1,this.outlined=!1,this.suggestionsProvider=()=>[],this._value="",this.canOfferNewValue=!0,this.multiValued=!1,this.labels=[],this.labelsToValues=new Map,this.filter="",this.isOpen=!1,this.comboboxHasVisualFocus=!1,this.listboxHasVisualFocus=!1,this.providedSuggestions=[],this.visibleSuggestions=[],this.activeIndex=-1,this.ariaLiveMessage="",this.onComboboxInput=async()=>{let e=this.input.value,i=this._value!==""||this.multiValued&&this.labels.length>0;this.filter=e,this.activeIndex=-1,!this.multiValued&&i&&e===""&&(this._value="",this.dispatchChangeEvent()),this.ariaLiveMessage="",await this.updateSuggestions(),this.getTotalSuggestionsCount()>0?this.openListbox():this.closeListbox(!0)},this.onComboboxClick=()=>{this.isOpen?this.closeListbox(!0):this.openListbox()},this.onComboboxFocus=()=>{this.filter=this.input.value,this.updateSuggestions(),this.setVisualFocusCombobox(),this.activeIndex=-1},this.onComboboxBlur=()=>{this.removeVisualFocusAll()},this.backgroundListenerInstalled=!1,this.onBackgroundPointerUp=e=>{e.composedPath().includes(this)||(this.removeVisualFocusAll(),setTimeout(()=>this.closeListbox(!0),300))},this.onSuggestionClick=e=>{var i;e.kind==="new"?this.setValue(((i=this.input)===null||i===void 0?void 0:i.value)||this.value):this.setValue(e.label),this.multiValued||this.closeListbox(!0)},this.addI18nContext(jt,Bc)}willUpdate(e){e.has("suggestionsProviderDebouncerTimeout")&&(this._suggestionsProviderDebouncer=this.suggestionsProviderDebouncerTimeout&&this.suggestionsProviderDebouncerTimeout>0?new Pe.Debouncer(this.suggestionsProviderDebouncerTimeout):void 0),(e.has("suggestionsProvider")||e.has("filter"))&&this.updateSuggestions()}render(){let e={"ft-combobox":!0,"ft-combobox--filled":!this.outlined,"ft-combobox--outlined":this.outlined,"ft-combobox--disabled":this.disabled,"ft-combobox--with-label":!!this.label,"ft-combobox--with-icon":!!this.icon,"ft-combobox--in-error":this.error,"ft-combobox--raised-label":this.comboboxHasVisualFocus||!!this.filter},i={"ft-combobox--listbox":!0,focus:this.listboxHasVisualFocus};return Se.html`
1379
1379
  <div class="${(0,tn.classMap)(e)}">
1380
1380
  <div class="ft-combobox--main-panel"
1381
1381
  @focusout=${this.onComboboxBlur}>
@@ -1481,7 +1481,7 @@
1481
1481
  </ft-typography>
1482
1482
  </div>
1483
1483
  </li>
1484
- `}get activeSuggestion(){return this.activeIndex>=0&&this.activeIndex<this.visibleSuggestions.length?this.visibleSuggestions[this.activeIndex]:null}shouldOfferNew(){var e;let i=((e=this.input)===null||e===void 0?void 0:e.value)||this.value||"",r=this.multiValued&&this.labels.includes(i);return i!==""&&!this.providedSuggestions.some(n=>n.label===i)&&!r&&this.canOfferNewValue}getTotalSuggestionsCount(){return this.visibleSuggestions.length}isNewValueSuggestionSelected(){var e;return this.activeIndex>=0&&this.activeIndex<this.visibleSuggestions.length&&((e=this.visibleSuggestions[this.activeIndex])===null||e===void 0?void 0:e.kind)==="new"}renderLiveText(){let e=this.getTotalSuggestionsCount();return this.isOpen&&e>0?jt.messages.ariaLiveOptions(e):""}getActiveDescendantId(){return this.activeIndex<0?"":this.isNewValueSuggestionSelected()?"option-new-value":`option-${this.activeIndex}`}async updateSuggestions(){var e;this._suggestionsProviderDebouncer?await((e=this._suggestionsProviderDebouncer)===null||e===void 0?void 0:e.run(()=>this.updateSuggestionsWithoutDebounce())):await this.updateSuggestionsWithoutDebounce()}async updateSuggestionsWithoutDebounce(){var e;if(this.suggestionsProvider){this.providedSuggestions=await this.suggestionsProvider(this.filter);let i=(this.filterSuggestions?this.providedSuggestions.filter(r=>r.label.toLowerCase().includes(this.filter.toLowerCase())):this.providedSuggestions).map((r,n)=>({id:`regular-${n}`,label:r.label,kind:"regular"}));this.visibleSuggestions=[...i,...this.shouldOfferNew()?[{id:"new",label:((e=this.input)===null||e===void 0?void 0:e.value)||this.value,kind:"new"}]:[]]}}setActiveSuggestion(e,i=!1){var r,n;let o=this.getTotalSuggestionsCount();if(e<0||e>=o)return;this.activeIndex=e;let s=this.visibleSuggestions[e];if(s){if(i){let a=s.kind==="new"?((r=this.input)===null||r===void 0?void 0:r.value)||this.value:s.label,l=this.filter.length;(n=this.input)===null||n===void 0||n.setSelectionRange(l,a.length)}this.scrollSuggestionIntoView(e)}}scrollSuggestionIntoView(e){requestAnimationFrame(()=>{var i,r;let n;this.isNewValueSuggestionSelected()?n=(i=this.listbox)===null||i===void 0?void 0:i.querySelector("#option-new-value"):n=(r=this.listbox)===null||r===void 0?void 0:r.querySelector(`#option-${e}`),n&&this.listbox&&(this.listbox.scrollTop+this.listbox.offsetHeight<n.offsetTop+n.offsetHeight?this.listbox.scrollTop=n.offsetTop+n.offsetHeight-this.listbox.offsetHeight:this.listbox.scrollTop>n.offsetTop+2&&(this.listbox.scrollTop=n.offsetTop))})}openListbox(){this.isOpen=!0}closeListbox(e=!1){(e||!this.comboboxHasVisualFocus&&!this.listboxHasVisualFocus)&&(this.isOpen=!1)}setVisualFocusCombobox(){this.comboboxHasVisualFocus=!0,this.listboxHasVisualFocus=!1}setVisualFocusListbox(){this.comboboxHasVisualFocus=!1,this.listboxHasVisualFocus=!0}removeVisualFocusAll(){this.comboboxHasVisualFocus=!1,this.listboxHasVisualFocus=!1}setValue(e){this.multiValued?this.addToSelection(e):(this.filter=e,this._value=e,this.input.value=e,this.input.setSelectionRange(e.length,e.length),this.updateSuggestions(),this.dispatchChangeEvent())}dispatchChangeEvent(){var e,i;let r=(i=(e=this.providedSuggestions.find(n=>this._value===n.label))===null||e===void 0?void 0:e.value)!==null&&i!==void 0?i:this._value;this.dispatchEvent(new CustomEvent("change",{detail:r,bubbles:!0,composed:!0}))}addToSelection(e){var i,r;if(e.trim().length===0){this.clearInput(),this.closeListbox(!0);return}if(this.labels.includes(e)){this.removeFromSelection(e),this.closeListbox(!0);return}if(this.maxValues&&this.labels.length>=this.maxValues){this.ariaLiveMessage=jt.messages.maxValuesReached((i=this.maxValues)!==null&&i!==void 0?i:0),this.closeListbox(!0);return}this.labels=[...this.labels,e];let a=this.providedSuggestions.find(l=>l.label===e);this.labelsToValues.set(e,(r=a?.value)!==null&&r!==void 0?r:e),this.ariaLiveMessage=jt.messages.valueAdded(e),this.dispatchMultiValueChangeEvent(),this.clearInput(),this.closeListbox(!0)}clearInput(){this.filter="",this.input.value="",this.input.setSelectionRange(0,0),this.updateSuggestions(),this.input.focus()}removeFromSelection(e){this.labels=this.labels.filter(i=>i!==e),this.labelsToValues.delete(e),this.updateSuggestions(),this.ariaLiveMessage=jt.messages.valueRemoved(e),this.dispatchMultiValueChangeEvent(),this.input.focus()}dispatchMultiValueChangeEvent(){let e=this.labels.map(i=>{var r;return(r=this.labelsToValues.get(i))!==null&&r!==void 0?r:i});this.dispatchEvent(new CustomEvent("change",{detail:e,bubbles:!0,composed:!0}))}isPrintableCharacter(e){return e.length===1&&e.match(/\S| /)!==null}commitSelectionFromEnter(){var e,i;this.isOpen&&(this.isNewValueSuggestionSelected()?this.setValue(((e=this.input)===null||e===void 0?void 0:e.value)||this.value):this.activeSuggestion?this.setValue(this.activeSuggestion.label):(((i=this.input)===null||i===void 0?void 0:i.value)||"").length>0&&this.setValue(this.input.value)),this.multiValued?this.activeIndex=-1:(this.setVisualFocusCombobox(),this.closeListbox(!0))}moveFocusToNextSuggestion(e){let i=this.getTotalSuggestionsCount();if(!(i<=0)&&(this.openListbox(),!e.altKey))if(this.listboxHasVisualFocus){let r=this.activeIndex<i-1?this.activeIndex+1:0;this.setActiveSuggestion(r)}else this.setActiveSuggestion(0,!0),this.setVisualFocusListbox()}moveFocusToPreviousSuggestion(e){let i=this.getTotalSuggestionsCount();if(!(i<=0))if(this.listboxHasVisualFocus){let r=this.activeIndex>0?this.activeIndex-1:i-1;this.setActiveSuggestion(r)}else this.openListbox(),e.altKey||(this.setActiveSuggestion(i-1,!0),this.setVisualFocusListbox())}handleEscapeKey(){this.isOpen?(this.closeListbox(!0),this.filter=this.input.value,this.updateSuggestions(),this.setVisualFocusCombobox()):this.setValue(""),this.activeIndex=-1}handleTabKey(){var e;this.closeListbox(!0),this.listboxHasVisualFocus&&(this.isNewValueSuggestionSelected()?this.setValue(((e=this.input)===null||e===void 0?void 0:e.value)||this.value):this.activeSuggestion&&this.setValue(this.activeSuggestion.label))}moveCaretToHome(){this.input.setSelectionRange(0,0)}moveCaretToEnd(){let e=this.input.value.length;this.input.setSelectionRange(e,e)}onComboboxKeyDown(e){if(e.ctrlKey||e.shiftKey)return;let i=!1;switch(e.key){case"Enter":this.commitSelectionFromEnter(),i=!0;break;case"ArrowDown":case"Down":{this.moveFocusToNextSuggestion(e),i=!0;break}case"ArrowUp":case"Up":{this.moveFocusToPreviousSuggestion(e),i=!0;break}case"Escape":case"Esc":this.handleEscapeKey(),i=!0;break;case"Tab":this.handleTabKey();break;case"Home":this.moveCaretToHome(),i=!0;break;case"End":{this.moveCaretToEnd(),i=!0;break}}i&&(e.stopPropagation(),e.preventDefault())}onComboboxKeyUp(e){if(e.key==="Escape"||e.key==="Esc")return;let i=!1;switch(e.key){case"Backspace":this.setVisualFocusCombobox(),i=!0;break;case"ArrowDown":case"Down":case"ArrowUp":case"Up":i=!0;break;case"ArrowLeft":case"Enter":case"Left":case"ArrowRight":case"Right":case"Home":case"End":this.setVisualFocusCombobox(),i=!0;break;default:this.isPrintableCharacter(e.key)&&this.input.value.length&&this.setVisualFocusCombobox();break}i&&(e.stopPropagation(),e.preventDefault())}contentAvailableCallback(e){super.contentAvailableCallback(e),(e.has("comboboxHasVisualFocus")||e.has("listboxHasVisualFocus")||e.has("isOpen"))&&(this.comboboxHasVisualFocus||this.listboxHasVisualFocus||this.isOpen?this.backgroundListenerInstalled||(document.body.addEventListener("pointerup",this.onBackgroundPointerUp),this.backgroundListenerInstalled=!0):this.backgroundListenerInstalled&&(document.body.removeEventListener("pointerup",this.onBackgroundPointerUp),this.backgroundListenerInstalled=!1))}focus(){var e;(e=this.input)===null||e===void 0||e.focus()}blur(){var e;(e=this.input)===null||e===void 0||e.blur()}};k.styles=[qt,Pe.screenReaderStyles,Nc];k.elementDefinitions={"ft-input-label":Te,"ft-ripple":F,"ft-typography":ne,"ft-icon":J,"ft-chip":Y};U([(0,B.property)()],k.prototype,"label",void 0);U([(0,B.property)()],k.prototype,"icon",void 0);U([(0,B.property)()],k.prototype,"iconVariant",void 0);U([(0,B.property)()],k.prototype,"name",void 0);U([(0,B.property)({type:Boolean})],k.prototype,"error",void 0);U([(0,B.property)({type:Boolean})],k.prototype,"filterSuggestions",void 0);U([(0,B.property)()],k.prototype,"helper",void 0);U([(0,B.property)({type:Boolean})],k.prototype,"disabled",void 0);U([(0,B.property)({type:Boolean})],k.prototype,"outlined",void 0);U([(0,B.property)()],k.prototype,"placeholder",void 0);U([(0,B.property)()],k.prototype,"suggestionsHelper",void 0);U([(0,B.property)({attribute:!1})],k.prototype,"suggestionsProvider",void 0);U([(0,Pe.numberProperty)()],k.prototype,"suggestionsProviderDebouncerTimeout",void 0);U([(0,B.property)({noAccessor:!0})],k.prototype,"value",null);U([(0,B.property)({type:Boolean})],k.prototype,"canOfferNewValue",void 0);U([(0,B.property)({type:Boolean})],k.prototype,"multiValued",void 0);U([(0,Pe.numberProperty)()],k.prototype,"maxValues",void 0);U([(0,Pe.numberProperty)()],k.prototype,"maxLength",void 0);U([(0,B.property)()],k.prototype,"labels",void 0);U([(0,B.state)()],k.prototype,"labelsToValues",void 0);U([(0,B.state)()],k.prototype,"filter",void 0);U([(0,B.state)()],k.prototype,"isOpen",void 0);U([(0,B.state)()],k.prototype,"comboboxHasVisualFocus",void 0);U([(0,B.state)()],k.prototype,"listboxHasVisualFocus",void 0);U([(0,B.state)()],k.prototype,"providedSuggestions",void 0);U([(0,B.state)()],k.prototype,"visibleSuggestions",void 0);U([(0,B.state)()],k.prototype,"activeIndex",void 0);U([(0,B.state)()],k.prototype,"ariaLiveMessage",void 0);U([(0,B.query)(".ft-combobox--input")],k.prototype,"input",void 0);U([(0,B.query)(".ft-combobox--listbox")],k.prototype,"listbox",void 0);U([(0,Pe.ignoreComposingEvents)()],k.prototype,"onComboboxKeyDown",null);U([(0,Pe.ignoreComposingEvents)()],k.prototype,"onComboboxKeyUp",null);var Hc={"ft-combobox":k};(0,zc.customElements)(Hc);})();
1484
+ `}get activeSuggestion(){return this.activeIndex>=0&&this.activeIndex<this.visibleSuggestions.length?this.visibleSuggestions[this.activeIndex]:null}shouldOfferNew(){var e;let i=((e=this.input)===null||e===void 0?void 0:e.value)||this.value||"",r=this.multiValued&&this.labels.includes(i);return i!==""&&!this.providedSuggestions.some(n=>n.label===i)&&!r&&this.canOfferNewValue}getTotalSuggestionsCount(){return this.visibleSuggestions.length}isNewValueSuggestionSelected(){var e;return this.activeIndex>=0&&this.activeIndex<this.visibleSuggestions.length&&((e=this.visibleSuggestions[this.activeIndex])===null||e===void 0?void 0:e.kind)==="new"}renderLiveText(){let e=this.getTotalSuggestionsCount();return this.isOpen&&e>0?jt.messages.ariaLiveOptions(e):""}getActiveDescendantId(){return this.activeIndex<0?"":this.isNewValueSuggestionSelected()?"option-new-value":`option-${this.activeIndex}`}async updateSuggestions(){var e;this._suggestionsProviderDebouncer?await((e=this._suggestionsProviderDebouncer)===null||e===void 0?void 0:e.run(()=>this.updateSuggestionsWithoutDebounce())):await this.updateSuggestionsWithoutDebounce()}async updateSuggestionsWithoutDebounce(){var e;if(this.suggestionsProvider){this.providedSuggestions=await this.suggestionsProvider(this.filter);let i=(this.filterSuggestions?this.providedSuggestions.filter(r=>r.label.toLowerCase().includes(this.filter.toLowerCase())):this.providedSuggestions).map((r,n)=>({id:`regular-${n}`,label:r.label,kind:"regular"}));this.visibleSuggestions=[...i,...this.shouldOfferNew()?[{id:"new",label:((e=this.input)===null||e===void 0?void 0:e.value)||this.value,kind:"new"}]:[]]}}setActiveSuggestion(e,i=!1){var r,n;let o=this.getTotalSuggestionsCount();if(e<0||e>=o)return;this.activeIndex=e;let s=this.visibleSuggestions[e];if(s){if(i){let a=s.kind==="new"?((r=this.input)===null||r===void 0?void 0:r.value)||this.value:s.label,l=this.filter.length;(n=this.input)===null||n===void 0||n.setSelectionRange(l,a.length)}this.scrollSuggestionIntoView(e)}}scrollSuggestionIntoView(e){requestAnimationFrame(()=>{var i,r;let n;this.isNewValueSuggestionSelected()?n=(i=this.listbox)===null||i===void 0?void 0:i.querySelector("#option-new-value"):n=(r=this.listbox)===null||r===void 0?void 0:r.querySelector(`#option-${e}`),n&&this.listbox&&(this.listbox.scrollTop+this.listbox.offsetHeight<n.offsetTop+n.offsetHeight?this.listbox.scrollTop=n.offsetTop+n.offsetHeight-this.listbox.offsetHeight:this.listbox.scrollTop>n.offsetTop+2&&(this.listbox.scrollTop=n.offsetTop))})}openListbox(){this.isOpen=!0}closeListbox(e=!1){(e||!this.comboboxHasVisualFocus&&!this.listboxHasVisualFocus)&&(this.isOpen=!1)}setVisualFocusCombobox(){this.comboboxHasVisualFocus=!0,this.listboxHasVisualFocus=!1}setVisualFocusListbox(){this.comboboxHasVisualFocus=!1,this.listboxHasVisualFocus=!0}removeVisualFocusAll(){this.comboboxHasVisualFocus=!1,this.listboxHasVisualFocus=!1}setValue(e){this.multiValued?this.addToSelection(e):(this.filter=e,this._value=e,this.input.value=e,this.input.setSelectionRange(e.length,e.length),this.updateSuggestions(),this.dispatchChangeEvent())}dispatchChangeEvent(){var e,i;let r=(i=(e=this.providedSuggestions.find(n=>this._value===n.label))===null||e===void 0?void 0:e.value)!==null&&i!==void 0?i:this._value;this.dispatchEvent(new CustomEvent("change",{detail:r,bubbles:!0,composed:!0}))}addToSelection(e){var i,r;if(e.trim().length===0){this.clearInput(),this.closeListbox(!0);return}if(this.labels.includes(e)){this.removeFromSelection(e),this.closeListbox(!0);return}if(this.maxValues&&this.labels.length>=this.maxValues){this.ariaLiveMessage=jt.messages.maxValuesReached((i=this.maxValues)!==null&&i!==void 0?i:0),this.closeListbox(!0);return}this.labels=[...this.labels,e];let a=this.providedSuggestions.find(l=>l.label===e);this.labelsToValues.set(e,(r=a?.value)!==null&&r!==void 0?r:e),this.ariaLiveMessage=jt.messages.valueAdded(e),this.dispatchMultiValueChangeEvent(),this.clearInput(),this.closeListbox(!0)}clearInput(){this.filter="",this.input.value="",this.input.setSelectionRange(0,0),this.updateSuggestions(),this.input.focus()}removeFromSelection(e){this.labels=this.labels.filter(i=>i!==e),this.labelsToValues.delete(e),this.updateSuggestions(),this.ariaLiveMessage=jt.messages.valueRemoved(e),this.dispatchMultiValueChangeEvent(),this.input.focus()}dispatchMultiValueChangeEvent(){let e=this.labels.map(i=>{var r;return(r=this.labelsToValues.get(i))!==null&&r!==void 0?r:i});this.dispatchEvent(new CustomEvent("change",{detail:e,bubbles:!0,composed:!0}))}isPrintableCharacter(e){return e.length===1&&e.match(/\S| /)!==null}commitSelectionFromEnter(){var e,i;this.isOpen&&(this.isNewValueSuggestionSelected()?this.setValue(((e=this.input)===null||e===void 0?void 0:e.value)||this.value):this.activeSuggestion?this.setValue(this.activeSuggestion.label):(((i=this.input)===null||i===void 0?void 0:i.value)||"").length>0&&this.setValue(this.input.value)),this.multiValued?this.activeIndex=-1:(this.setVisualFocusCombobox(),this.closeListbox(!0))}moveFocusToNextSuggestion(e){let i=this.getTotalSuggestionsCount();if(!(i<=0)&&(this.openListbox(),!e.altKey))if(this.listboxHasVisualFocus){let r=this.activeIndex<i-1?this.activeIndex+1:0;this.setActiveSuggestion(r)}else this.setActiveSuggestion(0,!0),this.setVisualFocusListbox()}moveFocusToPreviousSuggestion(e){let i=this.getTotalSuggestionsCount();if(!(i<=0))if(this.listboxHasVisualFocus){let r=this.activeIndex>0?this.activeIndex-1:i-1;this.setActiveSuggestion(r)}else this.openListbox(),e.altKey||(this.setActiveSuggestion(i-1,!0),this.setVisualFocusListbox())}handleEscapeKey(){this.isOpen?(this.closeListbox(!0),this.filter=this.input.value,this.updateSuggestions(),this.setVisualFocusCombobox()):this.setValue(""),this.activeIndex=-1}handleTabKey(){var e;this.closeListbox(!0),this.listboxHasVisualFocus&&(this.isNewValueSuggestionSelected()?this.setValue(((e=this.input)===null||e===void 0?void 0:e.value)||this.value):this.activeSuggestion&&this.setValue(this.activeSuggestion.label))}moveCaretToHome(){this.input.setSelectionRange(0,0)}moveCaretToEnd(){let e=this.input.value.length;this.input.setSelectionRange(e,e)}onComboboxKeyDown(e){if(e.ctrlKey||e.shiftKey)return;let i=!1;switch(e.key){case"Enter":this.commitSelectionFromEnter(),i=!0;break;case"ArrowDown":case"Down":{this.moveFocusToNextSuggestion(e),i=!0;break}case"ArrowUp":case"Up":{this.moveFocusToPreviousSuggestion(e),i=!0;break}case"Escape":case"Esc":this.handleEscapeKey(),i=!0;break;case"Tab":this.handleTabKey();break;case"Home":this.moveCaretToHome(),i=!0;break;case"End":{this.moveCaretToEnd(),i=!0;break}}i&&(e.stopPropagation(),e.preventDefault())}onComboboxKeyUp(e){if(e.key==="Escape"||e.key==="Esc")return;let i=!1;switch(e.key){case"Backspace":this.setVisualFocusCombobox(),i=!0;break;case"ArrowDown":case"Down":case"ArrowUp":case"Up":i=!0;break;case"ArrowLeft":case"Enter":case"Left":case"ArrowRight":case"Right":case"Home":case"End":this.setVisualFocusCombobox(),i=!0;break;default:this.isPrintableCharacter(e.key)&&this.input.value.length&&this.setVisualFocusCombobox();break}i&&(e.stopPropagation(),e.preventDefault())}contentAvailableCallback(e){super.contentAvailableCallback(e),(e.has("comboboxHasVisualFocus")||e.has("listboxHasVisualFocus")||e.has("isOpen"))&&(this.comboboxHasVisualFocus||this.listboxHasVisualFocus||this.isOpen?this.backgroundListenerInstalled||(document.body.addEventListener("pointerup",this.onBackgroundPointerUp),this.backgroundListenerInstalled=!0):this.backgroundListenerInstalled&&(document.body.removeEventListener("pointerup",this.onBackgroundPointerUp),this.backgroundListenerInstalled=!1))}focus(){var e;(e=this.input)===null||e===void 0||e.focus()}blur(){var e;(e=this.input)===null||e===void 0||e.blur()}};N.styles=[qt,Pe.screenReaderStyles,Dc];N.elementDefinitions={"ft-input-label":Te,"ft-ripple":F,"ft-typography":ne,"ft-icon":J,"ft-chip":Y};U([(0,B.property)()],N.prototype,"label",void 0);U([(0,B.property)()],N.prototype,"icon",void 0);U([(0,B.property)()],N.prototype,"iconVariant",void 0);U([(0,B.property)()],N.prototype,"name",void 0);U([(0,B.property)({type:Boolean})],N.prototype,"error",void 0);U([(0,B.property)({type:Boolean})],N.prototype,"filterSuggestions",void 0);U([(0,B.property)()],N.prototype,"helper",void 0);U([(0,B.property)({type:Boolean})],N.prototype,"disabled",void 0);U([(0,B.property)({type:Boolean})],N.prototype,"outlined",void 0);U([(0,B.property)()],N.prototype,"placeholder",void 0);U([(0,B.property)()],N.prototype,"suggestionsHelper",void 0);U([(0,B.property)({attribute:!1})],N.prototype,"suggestionsProvider",void 0);U([(0,Pe.numberProperty)()],N.prototype,"suggestionsProviderDebouncerTimeout",void 0);U([(0,B.property)({noAccessor:!0})],N.prototype,"value",null);U([(0,B.property)({type:Boolean})],N.prototype,"canOfferNewValue",void 0);U([(0,B.property)({type:Boolean})],N.prototype,"multiValued",void 0);U([(0,Pe.numberProperty)()],N.prototype,"maxValues",void 0);U([(0,Pe.numberProperty)()],N.prototype,"maxLength",void 0);U([(0,B.property)()],N.prototype,"labels",void 0);U([(0,B.state)()],N.prototype,"labelsToValues",void 0);U([(0,B.state)()],N.prototype,"filter",void 0);U([(0,B.state)()],N.prototype,"isOpen",void 0);U([(0,B.state)()],N.prototype,"comboboxHasVisualFocus",void 0);U([(0,B.state)()],N.prototype,"listboxHasVisualFocus",void 0);U([(0,B.state)()],N.prototype,"providedSuggestions",void 0);U([(0,B.state)()],N.prototype,"visibleSuggestions",void 0);U([(0,B.state)()],N.prototype,"activeIndex",void 0);U([(0,B.state)()],N.prototype,"ariaLiveMessage",void 0);U([(0,B.query)(".ft-combobox--input")],N.prototype,"input",void 0);U([(0,B.query)(".ft-combobox--listbox")],N.prototype,"listbox",void 0);U([(0,Pe.ignoreComposingEvents)()],N.prototype,"onComboboxKeyDown",null);U([(0,Pe.ignoreComposingEvents)()],N.prototype,"onComboboxKeyUp",null);var Hc={"ft-combobox":N};(0,zc.customElements)(Hc);})();
1485
1485
  /*! Bundled license information:
1486
1486
 
1487
1487
  lit-html/lit-html.js:
@@ -44,7 +44,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
44
44
  input::-webkit-search-results-decoration {
45
45
  display: none;
46
46
  }
47
- `;var Ml={};var Xi={};j(Xi,{ParametrizedLabelResolver:()=>oo});var oo=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 ya={};j(ya,{FtCommandQueue:()=>no,FtLitElementRedux:()=>Ut,FtReduxStore:()=>zt,FtStateManager:()=>fo,ReduxWatcher:()=>un,clearAllStores:()=>ch,isFtReduxStore:()=>Sr,redux:()=>vr,reduxEventListener:()=>hf,reduxReactive:()=>ff,watch:()=>dh,withRedux:()=>$l});var ff=()=>(t,e)=>{var r;let n=t.constructor;n.reduxReactiveProperties=new Set(n.reduxReactiveProperties),(r=n.reduxReactiveProperties)===null||r===void 0||r.add(e)},vr=t=>{let e=t??{};return(r,n)=>{var i;let a={hasChanged:st,attribute:!1,...e};m(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:(c=>c[n]),store:e.store})}},hf=t=>(e,r)=>{let n=e.constructor;n.reduxEventListeners=new Map(n.reduxEventListeners),n.reduxEventListeners.set(r,t)};var no=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 Sr(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var io=Symbol("internalReduxEventsUnsubscribers"),bt=Symbol("internalStoresUnsubscribers"),Ft=Symbol("internalStores"),$l=he(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(c=>s.has(c))&&this.updateFromStores()}getUnnamedStore(){if(this[Ft].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Ft].values()][0]}getStore(s){return s==null?this.getUnnamedStore():this[Ft].get(s)}addStore(s,c){var d;c=(d=c??s.name)!==null&&d!==void 0?d:"default-store",this.unsubscribeFromStore(c),this[Ft].set(c,s),this.subscribeToStore(c,s),this.updateFromStores()}removeStore(s){let c=typeof s=="string"?s:s.name;this.unsubscribeFromStore(c),this[Ft].delete(c)}setupStores(){this.unsubscribeFromStores(),this[Ft].forEach((s,c)=>this.subscribeToStore(c,s)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((s,c)=>{let d=this.constructor.getPropertyOptions(c);if(!d?.attribute||!this.hasAttribute(typeof d?.attribute=="string"?d.attribute:c)){let p=this.getStore(s.store);p&&(s.store?this[bt].has(s.store):this[bt].size>0)&&(this[c]=s.selector(p.getState(),this))}})}subscribeToStore(s,c){var d;this[bt].set(s,c.subscribe(()=>this.updateFromStores())),this[io].set(s,[]),Sr(c)&&c.eventBus&&((d=this.reduxConstructor.reduxEventListeners)===null||d===void 0||d.forEach((p,h)=>{if(typeof this[h]=="function"&&(!p.store||c.name===p.store)){let f=g=>this[h](g);c.addEventListener(p.eventName,f),this[io].get(s).push(()=>c.removeEventListener(p.eventName,f))}})),this.onStoreAvailable(s)}unsubscribeFromStores(){this[bt].forEach((s,c)=>this.unsubscribeFromStore(c))}unsubscribeFromStore(s){var c;this[bt].has(s)&&this[bt].get(s)(),this[bt].delete(s),(c=this[io].get(s))===null||c===void 0||c.forEach(d=>d()),this[io].delete(s)}onStoreAvailable(s){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=bt,r=Ft,n=io,i.reduxProperties=new Map,i.reduxReactiveProperties=new Set,i.reduxEventListeners=new Map,i}),Ut=class extends $l(Y){};function me(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 mf=typeof Symbol=="function"&&Symbol.observable||"@@observable",Fl=mf,Ji=()=>Math.random().toString(36).substring(7).split("").join("."),gf={INIT:`@@redux/INIT${Ji()}`,REPLACE:`@@redux/REPLACE${Ji()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Ji()}`},Wo=gf;function Go(t){if(typeof t!="object"||t===null)return!1;let e=t;for(;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e||Object.getPrototypeOf(t)===null}function Qi(t,e,r){if(typeof t!="function")throw new Error(me(2));if(typeof e=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(me(0));if(typeof e=="function"&&typeof r>"u"&&(r=e,e=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(me(1));return r(Qi)(t,e)}let n=t,i=e,a=new Map,s=a,c=0,d=!1;function p(){s===a&&(s=new Map,a.forEach((E,A)=>{s.set(A,E)}))}function h(){if(d)throw new Error(me(3));return i}function f(E){if(typeof E!="function")throw new Error(me(4));if(d)throw new Error(me(5));let A=!0;p();let W=c++;return s.set(W,E),function(){if(A){if(d)throw new Error(me(6));A=!1,p(),s.delete(W),a=null}}}function g(E){if(!Go(E))throw new Error(me(7));if(typeof E.type>"u")throw new Error(me(8));if(typeof E.type!="string")throw new Error(me(17));if(d)throw new Error(me(9));try{d=!0,i=n(i,E)}finally{d=!1}return(a=s).forEach(W=>{W()}),E}function x(E){if(typeof E!="function")throw new Error(me(10));n=E,g({type:Wo.REPLACE})}function S(){let E=f;return{subscribe(A){if(typeof A!="object"||A===null)throw new Error(me(11));function W(){let b=A;b.next&&b.next(h())}return W(),{unsubscribe:E(W)}},[Fl](){return this}}}return g({type:Wo.INIT}),{dispatch:g,subscribe:f,getState:h,replaceReducer:x,[Fl]:S}}function yf(t){Object.keys(t).forEach(e=>{let r=t[e];if(typeof r(void 0,{type:Wo.INIT})>"u")throw new Error(me(12));if(typeof r(void 0,{type:Wo.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(me(13))})}function Ul(t){let e=Object.keys(t),r={};for(let s=0;s<e.length;s++){let c=e[s];typeof t[c]=="function"&&(r[c]=t[c])}let n=Object.keys(r),i,a;try{yf(r)}catch(s){a=s}return function(c={},d){if(a)throw a;let p=!1,h={};for(let f=0;f<n.length;f++){let g=n[f],x=r[g],S=c[g],O=x(S,d);if(typeof O>"u"){let E=d&&d.type;throw new Error(me(14))}h[g]=O,p=p||O!==S}return p=p||n.length!==Object.keys(c).length,p?h:c}}function ao(...t){return t.length===0?e=>e:t.length===1?t[0]:t.reduce((e,r)=>(...n)=>e(r(...n)))}function Bl(...t){return e=>(r,n)=>{let i=e(r,n),a=()=>{throw new Error(me(15))},s={getState:i.getState,dispatch:(d,...p)=>a(d,...p)},c=t.map(d=>d(s));return a=ao(...c)(i.dispatch),{...i,dispatch:a}}}function zl(t){return Go(t)&&"type"in t&&typeof t.type=="string"}var Yl=Symbol.for("immer-nothing"),Hl=Symbol.for("immer-draftable"),xe=Symbol.for("immer-state");function Ge(t,...e){throw new Error(`[Immer] minified error nr: ${t}. Full error at: https://bit.ly/3cXEKWf`)}var ke=Object,Cr=ke.getPrototypeOf,qo="constructor",tn="prototype",oa="configurable",Yo="enumerable",Ko="writable",so="value",rt=t=>!!t&&!!t[xe];function Pe(t){return t?Xl(t)||on(t)||!!t[Hl]||!!t[qo]?.[Hl]||nn(t)||an(t):!1}var bf=ke[tn][qo].toString(),Vl=new WeakMap;function Xl(t){if(!t||!ua(t))return!1;let e=Cr(t);if(e===null||e===ke[tn])return!0;let r=ke.hasOwnProperty.call(e,qo)&&e[qo];if(r===Object)return!0;if(!Er(r))return!1;let n=Vl.get(r);return n===void 0&&(n=Function.toString.call(r),Vl.set(r,n)),n===bf}function rn(t,e,r=!0){uo(t)===0?(r?Reflect.ownKeys(t):ke.keys(t)).forEach(i=>{e(i,t[i],t)}):t.forEach((n,i)=>e(i,n,t))}function uo(t){let e=t[xe];return e?e.type_:on(t)?1:nn(t)?2:an(t)?3:0}var ea=(t,e,r=uo(t))=>r===2?t.has(e):ke[tn].hasOwnProperty.call(t,e),na=(t,e,r=uo(t))=>r===2?t.get(e):t[e],Xo=(t,e,r,n=uo(t))=>{n===2?t.set(e,r):n===3?t.add(r):t[e]=r};function xf(t,e){return t===e?t!==0||1/t===1/e:t!==t&&e!==e}var on=Array.isArray,nn=t=>t instanceof Map,an=t=>t instanceof Set,ua=t=>typeof t=="object",Er=t=>typeof t=="function",ta=t=>typeof t=="boolean";function vf(t){let e=+t;return Number.isInteger(e)&&String(e)===t}var ut=t=>t.copy_||t.base_;var pa=t=>t.modified_?t.copy_:t.base_;function ia(t,e){if(nn(t))return new Map(t);if(an(t))return new Set(t);if(on(t))return Array[tn].slice.call(t);let r=Xl(t);if(e===!0||e==="class_only"&&!r){let n=ke.getOwnPropertyDescriptors(t);delete n[xe];let i=Reflect.ownKeys(n);for(let a=0;a<i.length;a++){let s=i[a],c=n[s];c[Ko]===!1&&(c[Ko]=!0,c[oa]=!0),(c.get||c.set)&&(n[s]={[oa]:!0,[Ko]:!0,[Yo]:c[Yo],[so]:t[s]})}return ke.create(Cr(t),n)}else{let n=Cr(t);if(n!==null&&r)return{...t};let i=ke.create(n);return ke.assign(i,t)}}function fa(t,e=!1){return sn(t)||rt(t)||!Pe(t)||(uo(t)>1&&ke.defineProperties(t,{set:jo,add:jo,clear:jo,delete:jo}),ke.freeze(t),e&&rn(t,(r,n)=>{fa(n,!0)},!1)),t}function Sf(){Ge(2)}var jo={[so]:Sf};function sn(t){return t===null||!ua(t)?!0:ke.isFrozen(t)}var Jo="MapSet",aa="Patches",Wl="ArrayMethods",Jl={};function Bt(t){let e=Jl[t];return e||Ge(0,t),e}var Gl=t=>!!Jl[t];var lo,Ql=()=>lo,Ef=(t,e)=>({drafts_:[],parent_:t,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:Gl(Jo)?Bt(Jo):void 0,arrayMethodsPlugin_:Gl(Wl)?Bt(Wl):void 0});function jl(t,e){e&&(t.patchPlugin_=Bt(aa),t.patches_=[],t.inversePatches_=[],t.patchListener_=e)}function sa(t){la(t),t.drafts_.forEach(Cf),t.drafts_=null}function la(t){t===lo&&(lo=t.parent_)}var Kl=t=>lo=Ef(lo,t);function Cf(t){let e=t[xe];e.type_===0||e.type_===1?e.revoke_():e.revoked_=!0}function Zl(t,e){e.unfinalizedDrafts_=e.drafts_.length;let r=e.drafts_[0];if(t!==void 0&&t!==r){r[xe].modified_&&(sa(e),Ge(4)),Pe(t)&&(t=ql(e,t));let{patchPlugin_:i}=e;i&&i.generateReplacementPatches_(r[xe].base_,t,e)}else t=ql(e,r);return Of(e,t,!0),sa(e),e.patches_&&e.patchListener_(e.patches_,e.inversePatches_),t!==Yl?t:void 0}function ql(t,e){if(sn(e))return e;let r=e[xe];if(!r)return Qo(e,t.handledSet_,t);if(!ln(r,t))return e;if(!r.modified_)return r.base_;if(!r.finalized_){let{callbacks_:n}=r;if(n)for(;n.length>0;)n.pop()(t);rc(r,t)}return r.copy_}function Of(t,e,r=!1){!t.parent_&&t.immer_.autoFreeze_&&t.canAutoFreeze_&&fa(e,r)}function ec(t){t.finalized_=!0,t.scope_.unfinalizedDrafts_--}var ln=(t,e)=>t.scope_===e,wf=[];function tc(t,e,r,n){let i=ut(t),a=t.type_;if(n!==void 0&&na(i,n,a)===e){Xo(i,n,r,a);return}if(!t.draftLocations_){let c=t.draftLocations_=new Map;rn(i,(d,p)=>{if(rt(p)){let h=c.get(p)||[];h.push(d),c.set(p,h)}})}let s=t.draftLocations_.get(e)??wf;for(let c of s)Xo(i,c,r,a)}function Af(t,e,r){t.callbacks_.push(function(i){let a=e;if(!a||!ln(a,i))return;i.mapSetPlugin_?.fixSetContents(a);let s=pa(a);tc(t,a.draft_??a,s,r),rc(a,i)})}function rc(t,e){if(t.modified_&&!t.finalized_&&(t.type_===3||t.type_===1&&t.allIndicesReassigned_||(t.assigned_?.size??0)>0)){let{patchPlugin_:n}=e;if(n){let i=n.getPath(t);i&&n.generatePatches_(t,i,e)}ec(t)}}function _f(t,e,r){let{scope_:n}=t;if(rt(r)){let i=r[xe];ln(i,n)&&i.callbacks_.push(function(){Zo(t);let s=pa(i);tc(t,r,s,e)})}else Pe(r)&&t.callbacks_.push(function(){let a=ut(t);t.type_===3?a.has(r)&&Qo(r,n.handledSet_,n):na(a,e,t.type_)===r&&n.drafts_.length>1&&(t.assigned_.get(e)??!1)===!0&&t.copy_&&Qo(na(t.copy_,e,t.type_),n.handledSet_,n)})}function Qo(t,e,r){return!r.immer_.autoFreeze_&&r.unfinalizedDrafts_<1||rt(t)||e.has(t)||!Pe(t)||sn(t)||(e.add(t),rn(t,(n,i)=>{if(rt(i)){let a=i[xe];if(ln(a,r)){let s=pa(a);Xo(t,n,s,t.type_),ec(a)}}else Pe(i)&&Qo(i,e,r)})),t}function Rf(t,e){let r=on(t),n={type_:r?1:0,scope_:e?e.scope_:Ql(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:e,base_:t,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0},i=n,a=en;r&&(i=[n],a=co);let{revoke:s,proxy:c}=Proxy.revocable(i,a);return n.draft_=c,n.revoke_=s,[c,n]}var en={get(t,e){if(e===xe)return t;let r=t.scope_.arrayMethodsPlugin_,n=t.type_===1&&typeof e=="string";if(n&&r?.isArrayOperationMethod(e))return r.createMethodInterceptor(t,e);let i=ut(t);if(!ea(i,e,t.type_))return Lf(t,i,e);let a=i[e];if(t.finalized_||!Pe(a)||n&&t.operationMethod&&r?.isMutatingArrayMethod(t.operationMethod)&&vf(e))return a;if(a===ra(t.base_,e)||Tf(t,e,a)){Zo(t);let s=t.type_===1?+e:e,c=da(t.scope_,a,t,s);return t.copy_[s]=c}return a},has(t,e){return e in ut(t)},ownKeys(t){return Reflect.ownKeys(ut(t))},set(t,e,r){let n=oc(ut(t),e);if(n?.set)return n.set.call(t.draft_,r),!0;if(!t.modified_){let i=ra(ut(t),e),a=i?.[xe];if(a&&a.base_===r)return t.copy_[e]=r,t.assigned_.set(e,!1),!0;if(xf(r,i)&&(r!==void 0||ea(t.base_,e,t.type_)))return!0;Zo(t),ca(t)}return t.copy_[e]===r&&(r!==void 0||ea(t.copy_,e,t.type_))||Number.isNaN(r)&&Number.isNaN(t.copy_[e])||(t.copy_[e]=r,t.assigned_.set(e,!0),_f(t,e,r)),!0},deleteProperty(t,e){return Zo(t),ra(t.base_,e)!==void 0||e in t.base_?(t.assigned_.set(e,!1),ca(t)):t.assigned_.delete(e),t.copy_&&delete t.copy_[e],!0},getOwnPropertyDescriptor(t,e){let r=ut(t),n=Reflect.getOwnPropertyDescriptor(r,e);return n&&{[Ko]:!0,[oa]:t.type_!==1||e!=="length",[Yo]:n[Yo],[so]:r[e]}},defineProperty(){Ge(11)},getPrototypeOf(t){return Cr(t.base_)},setPrototypeOf(){Ge(12)}},co={};for(let t in en){let e=en[t];co[t]=function(){let r=arguments;return r[0]=r[0][0],e.apply(this,r)}}co.deleteProperty=function(t,e){return co.set.call(this,t,e,void 0)};co.set=function(t,e,r){return en.set.call(this,t[0],e,r,t[0])};function ra(t,e){let r=t[xe];return(r?ut(r):t)[e]}function Tf(t,e,r){return t.type_!==1||!t.allIndicesReassigned_||t.assigned_?.get(e)||!Pe(r)||r[xe]?!1:t.baseRefs_.has(r)}function Lf(t,e,r){let n=oc(e,r);return n?so in n?n[so]:n.get?.call(t.draft_):void 0}function oc(t,e){if(!(e in t))return;let r=Cr(t);for(;r;){let n=Object.getOwnPropertyDescriptor(r,e);if(n)return n;r=Cr(r)}}function ca(t){t.modified_||(t.modified_=!0,t.parent_&&ca(t.parent_))}function Zo(t){t.copy_||(t.assigned_=new Map,t.copy_=ia(t.base_,t.scope_.immer_.useStrictShallowCopy_))}var If=class{constructor(t){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(e,r,n)=>{if(Er(e)&&!Er(r)){let a=r;r=e;let s=this;return function(d=a,...p){return s.produce(d,h=>r.call(this,h,...p))}}Er(r)||Ge(6),n!==void 0&&!Er(n)&&Ge(7);let i;if(Pe(e)){let a=Kl(this),s=da(a,e,void 0),c=!0;try{i=r(s),c=!1}finally{c?sa(a):la(a)}return jl(a,n),Zl(i,a)}else if(!e||!ua(e)){if(i=r(e),i===void 0&&(i=e),i===Yl&&(i=void 0),this.autoFreeze_&&fa(i,!0),n){let a=[],s=[];Bt(aa).generateReplacementPatches_(e,i,{patches_:a,inversePatches_:s}),n(a,s)}return i}else Ge(1,e)},this.produceWithPatches=(e,r)=>{if(Er(e))return(s,...c)=>this.produceWithPatches(s,d=>e(d,...c));let n,i;return[this.produce(e,r,(s,c)=>{n=s,i=c}),n,i]},ta(t?.autoFreeze)&&this.setAutoFreeze(t.autoFreeze),ta(t?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(t.useStrictShallowCopy),ta(t?.useStrictIteration)&&this.setUseStrictIteration(t.useStrictIteration)}createDraft(t){Pe(t)||Ge(8),rt(t)&&(t=nc(t));let e=Kl(this),r=da(e,t,void 0);return r[xe].isManual_=!0,la(e),r}finishDraft(t,e){let r=t&&t[xe];(!r||!r.isManual_)&&Ge(9);let{scope_:n}=r;return jl(n,e),Zl(void 0,n)}setAutoFreeze(t){this.autoFreeze_=t}setUseStrictShallowCopy(t){this.useStrictShallowCopy_=t}setUseStrictIteration(t){this.useStrictIteration_=t}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(t,e){let r;for(r=e.length-1;r>=0;r--){let i=e[r];if(i.path.length===0&&i.op==="replace"){t=i.value;break}}r>-1&&(e=e.slice(r+1));let n=Bt(aa).applyPatches_;return rt(t)?n(t,e):this.produce(t,i=>n(i,e))}};function da(t,e,r,n){let[i,a]=nn(e)?Bt(Jo).proxyMap_(e,r):an(e)?Bt(Jo).proxySet_(e,r):Rf(e,r);return(r?.scope_??Ql()).drafts_.push(i),a.callbacks_=r?.callbacks_??[],a.key_=n,r&&n!==void 0?Af(r,a,n):a.callbacks_.push(function(d){d.mapSetPlugin_?.fixSetContents(a);let{patchPlugin_:p}=d;a.modified_&&p&&p.generatePatches_(a,[],d)}),i}function nc(t){return rt(t)||Ge(10,t),ic(t)}function ic(t){if(!Pe(t)||sn(t))return t;let e=t[xe],r,n=!0;if(e){if(!e.modified_)return e.base_;e.finalized_=!0,r=ia(t,e.scope_.immer_.useStrictShallowCopy_),n=e.scope_.immer_.shouldUseStrictIteration()}else r=ia(t,!0);return rn(r,(i,a)=>{Xo(r,i,ic(a))},n),e&&(e.finalized_=!1),r}var kf=globalThis.Iterator,Nv=typeof kf?.from=="function";var Pf=new If,ha=Pf.produce;function ac(t){return({dispatch:r,getState:n})=>i=>a=>typeof a=="function"?a(r,n,t):i(a)}var sc=ac(),lc=ac;var Nf=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?ao:ao.apply(null,arguments)},zv=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}},Df=t=>t&&typeof t.match=="function";function xt(t,e){function r(...n){if(e){let i=e(...n);if(!i)throw new Error(pt(0));return{type:t,payload:i.payload,..."meta"in i&&{meta:i.meta},..."error"in i&&{error:i.error}}}return{type:t,payload:n[0]}}return r.toString=()=>`${t}`,r.type=t,r.match=n=>zl(n)&&n.type===t,r}var fc=class po extends Array{constructor(...e){super(...e),Object.setPrototypeOf(this,po.prototype)}static get[Symbol.species](){return po}concat(...e){return super.concat.apply(this,e)}prepend(...e){return e.length===1&&Array.isArray(e[0])?new po(...e[0].concat(this)):new po(...e.concat(this))}};function cc(t){return Pe(t)?ha(t,()=>{}):t}function cn(t,e,r){return t.has(e)?t.get(e):t.set(e,r(e)).get(e)}function Mf(t){return typeof t=="boolean"}var $f=()=>function(e){let{thunk:r=!0,immutableCheck:n=!0,serializableCheck:i=!0,actionCreatorCheck:a=!0}=e??{},s=new fc;return r&&(Mf(r)?s.push(sc):s.push(lc(r.extraArgument))),s},Ff="RTK_autoBatch";var dc=t=>e=>{setTimeout(e,t)},Uf=(t,e)=>r=>{let n=!1,i=()=>{n||(n=!0,cancelAnimationFrame(a),clearTimeout(s),r())},a=t(i),s=setTimeout(i,e)},Bf=(t={type:"raf"})=>e=>(...r)=>{let n=e(...r),i=!0,a=!1,s=!1,c=new Set,d=t.type==="tick"?queueMicrotask:t.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?Uf(window.requestAnimationFrame,100):dc(10):t.type==="callback"?t.queueNotification:dc(t.timeout),p=()=>{s=!1,a&&(a=!1,c.forEach(h=>h()))};return Object.assign({},n,{subscribe(h){let f=()=>i&&h(),g=n.subscribe(f);return c.add(h),()=>{g(),c.delete(h)}},dispatch(h){try{return i=!h?.meta?.[Ff],a=!i,a&&(s||(s=!0,d(p))),n.dispatch(h)}finally{i=!0}}})},zf=t=>function(r){let{autoBatch:n=!0}=r??{},i=new fc(t);return n&&i.push(Bf(typeof n=="object"?n:void 0)),i};function hc(t){let e=$f(),{reducer:r=void 0,middleware:n,devTools:i=!0,duplicateMiddlewareCheck:a=!0,preloadedState:s=void 0,enhancers:c=void 0}=t||{},d;if(typeof r=="function")d=r;else if(Go(r))d=Ul(r);else throw new Error(pt(1));let p;typeof n=="function"?p=n(e):p=e();let h=ao;i&&(h=Nf({trace:!1,...typeof i=="object"&&i}));let f=Bl(...p),g=zf(f),x=typeof c=="function"?c(g):g(),S=h(...x);return Qi(d,s,S)}function mc(t){let e={},r=[],n,i={addCase(a,s){let c=typeof a=="string"?a:a.type;if(!c)throw new Error(pt(28));if(c in e)throw new Error(pt(29));return e[c]=s,i},addAsyncThunk(a,s){return s.pending&&(e[a.pending.type]=s.pending),s.rejected&&(e[a.rejected.type]=s.rejected),s.fulfilled&&(e[a.fulfilled.type]=s.fulfilled),s.settled&&r.push({matcher:a.settled,reducer:s.settled}),i},addMatcher(a,s){return r.push({matcher:a,reducer:s}),i},addDefaultCase(a){return n=a,i}};return t(i),[e,r,n]}function Hf(t){return typeof t=="function"}function Vf(t,e){let[r,n,i]=mc(e),a;if(Hf(t))a=()=>cc(t());else{let c=cc(t);a=()=>c}function s(c=a(),d){let p=[r[d.type],...n.filter(({matcher:h})=>h(d)).map(({reducer:h})=>h)];return p.filter(h=>!!h).length===0&&(p=[i]),p.reduce((h,f)=>{if(f)if(rt(h)){let x=f(h,d);return x===void 0?h:x}else{if(Pe(h))return ha(h,g=>f(g,d));{let g=f(h,d);if(g===void 0){if(h===null)return h;throw Error("A case reducer on a non-draftable value must not return undefined")}return g}}return h},c)}return s.getInitialState=a,s}var Wf=(t,e)=>Df(t)?t.match(e):t(e);function Gf(...t){return e=>t.some(r=>Wf(r,e))}var jf="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Kf=(t=21)=>{let e="",r=t;for(;r--;)e+=jf[Math.random()*64|0];return e},Zf=["name","message","stack","code"],ma=class{constructor(t,e){this.payload=t,this.meta=e}payload;meta;_type},uc=class{constructor(t,e){this.payload=t,this.meta=e}payload;meta;_type},qf=t=>{if(typeof t=="object"&&t!==null){let e={};for(let r of Zf)typeof t[r]=="string"&&(e[r]=t[r]);return e}return{message:String(t)}},pc="External signal was aborted",Yf=(()=>{function t(e,r,n){let i=xt(e+"/fulfilled",(d,p,h,f)=>({payload:d,meta:{...f||{},arg:h,requestId:p,requestStatus:"fulfilled"}})),a=xt(e+"/pending",(d,p,h)=>({payload:void 0,meta:{...h||{},arg:p,requestId:d,requestStatus:"pending"}})),s=xt(e+"/rejected",(d,p,h,f,g)=>({payload:f,error:(n&&n.serializeError||qf)(d||"Rejected"),meta:{...g||{},arg:h,requestId:p,rejectedWithValue:!!f,requestStatus:"rejected",aborted:d?.name==="AbortError",condition:d?.name==="ConditionError"}}));function c(d,{signal:p}={}){return(h,f,g)=>{let x=n?.idGenerator?n.idGenerator(d):Kf(),S=new AbortController,O,E;function A(y){E=y,S.abort()}p&&(p.aborted?A(pc):p.addEventListener("abort",()=>A(pc),{once:!0}));let W=(async function(){let y;try{let v=n?.condition?.(d,{getState:f,extra:g});if(Jf(v)&&(v=await v),v===!1||S.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};let L=new Promise((N,T)=>{O=()=>{T({name:"AbortError",message:E||"Aborted"})},S.signal.addEventListener("abort",O,{once:!0})});h(a(x,d,n?.getPendingMeta?.({requestId:x,arg:d},{getState:f,extra:g}))),y=await Promise.race([L,Promise.resolve(r(d,{dispatch:h,getState:f,extra:g,requestId:x,signal:S.signal,abort:A,rejectWithValue:((N,T)=>new ma(N,T)),fulfillWithValue:((N,T)=>new uc(N,T))})).then(N=>{if(N instanceof ma)throw N;return N instanceof uc?i(N.payload,x,d,N.meta):i(N,x,d)})])}catch(v){y=v instanceof ma?s(null,x,d,v.payload,v.meta):s(v,x,d)}finally{O&&S.signal.removeEventListener("abort",O)}return n&&!n.dispatchConditionRejection&&s.match(y)&&y.meta.condition||h(y),y})();return Object.assign(W,{abort:A,requestId:x,arg:d,unwrap(){return W.then(Xf)}})}}return Object.assign(c,{pending:a,rejected:s,fulfilled:i,settled:Gf(s,i),typePrefix:e})}return t.withTypes=()=>t,t})();function Xf(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function Jf(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var gc=Symbol.for("rtk-slice-createasyncthunk"),Vv={[gc]:Yf};function Qf(t,e){return`${t}/${e}`}function eh({creators:t}={}){let e=t?.asyncThunk?.[gc];return function(n){let{name:i,reducerPath:a=i}=n;if(!i)throw new Error(pt(11));typeof process<"u";let s=(typeof n.reducers=="function"?n.reducers(rh()):n.reducers)||{},c=Object.keys(s),d={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},p={addCase(y,b){let v=typeof y=="string"?y:y.type;if(!v)throw new Error(pt(12));if(v in d.sliceCaseReducersByType)throw new Error(pt(13));return d.sliceCaseReducersByType[v]=b,p},addMatcher(y,b){return d.sliceMatchers.push({matcher:y,reducer:b}),p},exposeAction(y,b){return d.actionCreators[y]=b,p},exposeCaseReducer(y,b){return d.sliceCaseReducersByName[y]=b,p}};c.forEach(y=>{let b=s[y],v={reducerName:y,type:Qf(i,y),createNotation:typeof n.reducers=="function"};nh(b)?ah(v,b,p,e):oh(v,b,p)});function h(){let[y={},b=[],v=void 0]=typeof n.extraReducers=="function"?mc(n.extraReducers):[n.extraReducers],L={...y,...d.sliceCaseReducersByType};return Vf(n.initialState,N=>{for(let T in L)N.addCase(T,L[T]);for(let T of d.sliceMatchers)N.addMatcher(T.matcher,T.reducer);for(let T of b)N.addMatcher(T.matcher,T.reducer);v&&N.addDefaultCase(v)})}let f=y=>y,g=new Map,x=new WeakMap,S;function O(y,b){return S||(S=h()),S(y,b)}function E(){return S||(S=h()),S.getInitialState()}function A(y,b=!1){function v(N){let T=N[y];return typeof T>"u"&&b&&(T=cn(x,v,E)),T}function L(N=f){let T=cn(g,b,()=>new WeakMap);return cn(T,N,()=>{let Z={};for(let[R,B]of Object.entries(n.selectors??{}))Z[R]=th(B,N,()=>cn(x,N,E),b);return Z})}return{reducerPath:y,getSelectors:L,get selectors(){return L(v)},selectSlice:v}}let W={name:i,reducer:O,actions:d.actionCreators,caseReducers:d.sliceCaseReducersByName,getInitialState:E,...A(a),injectInto(y,{reducerPath:b,...v}={}){let L=b??a;return y.inject({reducerPath:L,reducer:O},v),{...W,...A(L,!0)}}};return W}}function th(t,e,r,n){function i(a,...s){let c=e(a);return typeof c>"u"&&n&&(c=r()),t(c,...s)}return i.unwrapped=t,i}var yc=eh();function rh(){function t(e,r){return{_reducerDefinitionType:"asyncThunk",payloadCreator:e,...r}}return t.withTypes=()=>t,{reducer(e){return Object.assign({[e.name](...r){return e(...r)}}[e.name],{_reducerDefinitionType:"reducer"})},preparedReducer(e,r){return{_reducerDefinitionType:"reducerWithPrepare",prepare:e,reducer:r}},asyncThunk:t}}function oh({type:t,reducerName:e,createNotation:r},n,i){let a,s;if("reducer"in n){if(r&&!ih(n))throw new Error(pt(17));a=n.reducer,s=n.prepare}else a=n;i.addCase(t,a).exposeCaseReducer(e,a).exposeAction(e,s?xt(t,s):xt(t))}function nh(t){return t._reducerDefinitionType==="asyncThunk"}function ih(t){return t._reducerDefinitionType==="reducerWithPrepare"}function ah({type:t,reducerName:e},r,n,i){if(!i)throw new Error(pt(18));let{payloadCreator:a,fulfilled:s,pending:c,rejected:d,settled:p,options:h}=r,f=i(t,a,h);n.exposeAction(e,f),s&&n.addCase(f.fulfilled,s),c&&n.addCase(f.pending,c),d&&n.addCase(f.rejected,d),p&&n.addMatcher(f.settled,p),n.exposeCaseReducer(e,{fulfilled:s||dn,pending:c||dn,rejected:d||dn,settled:p||dn})}function dn(){}var bc="listener",xc="completed",vc="cancelled",Wv=`task-${vc}`,Gv=`task-${xc}`,jv=`${bc}-${vc}`,Kv=`${bc}-${xc}`;var{assign:Sc}=Object;var ga="listenerMiddleware";var sh=Sc(xt(`${ga}/add`),{withTypes:()=>sh}),Zv=xt(`${ga}/removeAll`),lh=Sc(xt(`${ga}/remove`),{withTypes:()=>lh});function pt(t){return`Minified Redux Toolkit error #${t}; visit https://redux-toolkit.js.org/Errors?code=${t} for the full message or use the non-minified dev environment for full errors. `}window.ftReduxStores||(window.ftReduxStores={});var zt=class t extends lt{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(Sr(a))return a;if(i==null)return;let s=yc({...i,reducers:(r=i.reducers)!==null&&r!==void 0?r:{}}),c=hc({reducer:(d,p)=>{if(p.type==="CLEAR_FT_REDUX_STORE"){let h=He(s.getInitialState());for(let f of p.keeping)h[f]=(d??h)[f];return h}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,c,i.eventBus)}constructor(e,r,n){super(),this.reduxSlice=e,this.reduxStore=r,this.isFtReduxStore=!0,this.commands=new no,this.injectInto=(a,s)=>this.reduxSlice.injectInto(a,s),this.selectSlice=a=>this.reduxSlice.selectSlice(a);let i=a=>a!=null?JSON.parse(JSON.stringify(a)):a;this.actions=new Proxy(this.reduxSlice.actions,{get:(a,s,c)=>{let d=s,p=a[d];return p?(...h)=>{let f=p(...h.map(i));return this.reduxStore.dispatch(f),f}:h=>{let f=d,g=this.getState()[f];Se(g,h)||this.setState({[f]:i(h)})}}}),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()}get selectors(){return this.reduxSlice.selectors}get reducerPath(){return this.reduxSlice.reducerPath}getSelectors(){return this.reduxSlice.getSelectors()}};function ch(){var t;for(let e of Object.values((t=window.ftReduxStores)!==null&&t!==void 0?t:{}))Sr(e)&&e.clear()}var un=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);st(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 dh(t,e,r){return new un(t,e,r).watch()}var fo=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 va={};j(va,{scrollHelper:()=>uh});var ba,pn=new Map,xa=class{lock(e,r){if(r){let n=pn.get(r);if(n==null||n===e)return pn.set(r,e),r}}release(e,r){r&&pn.get(r)===e&&pn.delete(r)}findFirstScrollableParent(e){var r;let n,i;for(let a of si(e)){let s=a,c=this.elementCanScroll(s);if(c&&s.clientHeight&&s.clientHeight<s.scrollHeight){n=s;break}else c&&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,c=Rt(0,(s-n.scrollTop)/(s-a),1),d=this.computeTopOffsetRatio(r?.position,c)*(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=(ba=window.FluidTopicsScrollHelper)!==null&&ba!==void 0?ba:new xa;var uh=window.FluidTopicsScrollHelper;var Ea={};j(Ea,{SearchPlaceConverter:()=>Ar,SearchPlaceQueryParams:()=>H,isSearchPlaceQueryParams:()=>dd,serializeRequest:()=>gh});var ph=t=>typeof t=="object"&&t!=null;var fh=t=>typeof t=="number",fn=t=>typeof t=="string",Kc=t=>ph(t)&&fn(t.endpoint)&&fn(t.method)&&fn(t.statusText)&&fn(t.body)&&fh(t.status),Ec;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(Ec||(Ec={}));var Cc;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(Cc||(Cc={}));var Oc;(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"})(Oc||(Oc={}));var wc;(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"})(wc||(wc={}));var Ac;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Ac||(Ac={}));var _c;(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(_c||(_c={}));var Rc;(function(t){t.OFFICIAL="OFFICIAL",t.AI="AI"})(Rc||(Rc={}));var Tc;(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"})(Tc||(Tc={}));var Lc;(function(t){t.STANDARD="STANDARD",t.STRUCTURAL="STRUCTURAL"})(Lc||(Lc={}));var Ic;(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"})(Ic||(Ic={}));var kc;(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"})(kc||(kc={}));var Pc;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(Pc||(Pc={}));var Nc;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(Nc||(Nc={}));var Dc;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(Dc||(Dc={}));var Mc;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(Mc||(Mc={}));var $c;(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"})($c||($c={}));var Or;(function(t){t.OPTIONAL="OPTIONAL",t.MANDATORY="MANDATORY"})(Or||(Or={}));var Fc;(function(t){t.ASC="ASC",t.DESC="DESC"})(Fc||(Fc={}));var Uc;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(Uc||(Uc={}));var Sa;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(Sa||(Sa={}));var Zc=t=>Object.keys(Sa).includes(t);var Bc;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(Bc||(Bc={}));var zc;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(zc||(zc={}));var Hc;(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"})(Hc||(Hc={}));var wr;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(wr||(wr={}));var qc=t=>Object.keys(wr).includes(t);var Vc;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.HTML_PACKAGE="HTML_PACKAGE",t.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(Vc||(Vc={}));var Wc;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(Wc||(Wc={}));var Gc;(function(t){t.PLAIN_TEXT="PLAIN_TEXT",t.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",t.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(Gc||(Gc={}));var se;(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"})(se||(se={}));var Ue;(function(t){t.SEARCHES="SEARCHES",t.BOOKMARKS="BOOKMARKS",t.BOOKS="BOOKS",t.COLLECTIONS="COLLECTIONS"})(Ue||(Ue={}));var jc;(function(t){t.UNAUTHENTICATED="UNAUTHENTICATED",t.USER_INCOMPLETE="USER_INCOMPLETE",t.MFA_REQUIRED="MFA_REQUIRED",t.AUTHENTICATED="AUTHENTICATED"})(jc||(jc={}));var Yc;(function(t){t.UNREACHABLE="UNREACHABLE",t.UNAUTHORIZED="UNAUTHORIZED",t.FORBIDDEN="FORBIDDEN",t.INCOMPATIBLE="INCOMPATIBLE",t.FAILED="FAILED",t.OK="OK"})(Yc||(Yc={}));var Xc;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(Xc||(Xc={}));var Jc;(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"})(Jc||(Jc={}));var Qc;(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",t.SLOW="SLOW",t.OTHER="OTHER"})(Qc||(Qc={}));var ed;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(ed||(ed={}));var td;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(td||(td={}));var rd;(function(t){t.TEXT="TEXT",t.HTML="HTML"})(rd||(rd={}));var od;(function(t){t.IN_PROGRESS="IN_PROGRESS",t.ERROR="ERROR",t.DONE="DONE"})(od||(od={}));var nd;(function(t){t.HTML="HTML",t.MARKDOWN="MARKDOWN"})(nd||(nd={}));var id;(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"})(id||(id={}));var ad;(function(t){t.MAP="MAP",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(ad||(ad={}));var hh={[se.PERSONAL_BOOK_SHARE_USER]:[se.PERSONAL_BOOK_USER],[se.HTML_EXPORT_USER]:[se.PERSONAL_BOOK_USER],[se.PDF_EXPORT_USER]:[se.PERSONAL_BOOK_USER],[se.KHUB_ADMIN]:[se.CONTENT_PUBLISHER],[se.ADMIN]:[se.KHUB_ADMIN,se.USERS_ADMIN,se.PORTAL_ADMIN,se.BEHAVIOR_DATA_USER],[se.GENERATIVE_AI_EXPORT_USER]:[se.GENERATIVE_AI_USER]};function sd(t,e){return t===e||(hh[t]??[]).some(r=>sd(r,e))}function ld(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=>sd(n,e))}function mh(t){return`"${t}"`}function cd(t){return t.startsWith('"')&&t.endsWith('"')?t.replace(/(^"+)|("+$)/g,""):t}function gh(t,e){return new Ar(t).serialize(e)}var H;(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.NEGATIVE_VALUE_FILTERS="negative-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"})(H||(H={}));var yh=new Set(Object.values(H));function dd(t){return yh.has(t)}var Ar=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,c,d,p,h,f,g,x,S,O;let E=new URLSearchParams;e.contentLocale?(!r||e.contentLocale!==this.defaultContentLocale)&&E.append(H.LOCALE,e.contentLocale):E.append(H.LOCALE,this.allLanguagesAllowed?"all":this.defaultContentLocale),((n=e.query)===null||n===void 0?void 0:n.length)>0&&E.append(H.QUERY,e.query);let A=T=>{var Z,R;let B=((R=(Z=T.valueFilter)===null||Z===void 0?void 0:Z.values)!==null&&R!==void 0?R:[]).map(oe=>this.escapeFilters(oe)).map(oe=>mh(cd(oe))).join("_");return`${T.key}~${B}`},W=(a=(i=e.metadataFilters)===null||i===void 0?void 0:i.filter(T=>T.valueFilter&&!T.valueFilter.negative))!==null&&a!==void 0?a:[];W.length>0&&E.append(H.VALUE_FILTERS,W.map(A).join("*"));let y=(c=(s=e.metadataFilters)===null||s===void 0?void 0:s.filter(T=>T.valueFilter&&T.valueFilter.negative))!==null&&c!==void 0?c:[];y.length>0&&E.append(H.NEGATIVE_VALUE_FILTERS,y.map(A).join("*"));let b=(p=(d=e.metadataFilters)===null||d===void 0?void 0:d.filter(T=>T.dateFilter))!==null&&p!==void 0?p:[];if(b.length>0){let T=b.map(Z=>{var R;return`${Z.key}~${(R=Z.dateFilter)===null||R===void 0?void 0:R.type.toLowerCase()}`}).join("*");E.append(H.DATE_FILTERS,T)}let v=(f=(h=e.metadataFilters)===null||h===void 0?void 0:h.filter(T=>T.rangeFilter))!==null&&f!==void 0?f:[];if(v.length>0){let T=v.map(Z=>{var R,B;return`${Z.key}~${(R=Z.rangeFilter)===null||R===void 0?void 0:R.from}_${(B=Z.rangeFilter)===null||B===void 0?void 0:B.to}`}).join("*");E.append(H.RANGE_FILTERS,T)}e.virtualField&&e.virtualField!=="EVERYWHERE"&&E.append(H.VIRTUAL_FIELD,e.virtualField.toLowerCase()),e.scope&&e.scope!=="DEFAULT"&&E.append(H.SCOPE,e.scope.toLowerCase()),e.sortId!=null&&E.append(H.SORT,e.sortId),!((g=e.paging)===null||g===void 0)&&g.perPage&&((S=(x=e.paging)===null||x===void 0?void 0:x.perPage)!==null&&S!==void 0?S:this.defaultPerPage)!=this.defaultPerPage&&E.append(H.PER_PAGE,String(e.paging.perPage)),e.keywordMatch!=null&&E.append(H.KEYWORD_MATCH,e.keywordMatch.toLowerCase());let L=(O=e.otherQueryParams)!==null&&O!==void 0?O:{};for(let T in L)E.append(T,L[T]);let N=new Array;return E.forEach((T,Z)=>{N.push(this.encodeQueryString(Z)+"="+this.encodeQueryString(T))}),encodeURI(N.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,c;try{e=decodeURI(e).replace(/%23/g,"#")}catch(A){console.warn("Could not decode search request query params, fallback on raw value",A)}let d=new URLSearchParams(e),p=d.get(H.LOCALE)==="all"?void 0:d.get(H.LOCALE),h=((r=d.get(H.VIRTUAL_FIELD))!==null&&r!==void 0?r:"EVERYWHERE").toUpperCase(),f=(n=d.get(H.SORT))===null||n===void 0?void 0:n.toLowerCase(),g=(i=d.get(H.SCOPE))!==null&&i!==void 0?i:"default",x=+((a=d.get(H.PER_PAGE))!==null&&a!==void 0?a:this.defaultPerPage),S=d.get(H.KEYWORD_MATCH),O=S?S.toUpperCase()===Or.MANDATORY?Or.MANDATORY:Or.OPTIONAL:void 0,E={};for(let A of d.keys())dd(A)||(E[A]=d.get(A));return{contentLocale:p??(this.allLanguagesAllowed?void 0:this.defaultContentLocale),query:(s=d.get(H.QUERY))!==null&&s!==void 0?s:"",scope:(c=this.scopeMapping[g])!==null&&c!==void 0?c:"DEFAULT",virtualField:Zc(h)?h:"EVERYWHERE",sortId:f,metadataFilters:this.parseCompatFilters(d),facets:[],paging:{page:1,perPage:Rt(1,isNaN(x)?this.defaultPerPage:x,1e3)},keywordMatch:O,otherQueryParams:E}}parseCompatFilters(e){var r,n,i,a,s,c,d;let p=[];return e.has(H.FILTERS)&&(p=this.parseValueFilters((r=e.get(H.FILTERS))!==null&&r!==void 0?r:"")),(n=e.has(H.PERIOD))!==null&&n!==void 0&&n&&(p=[...p,...this.parseLegacyPeriodFilter(((i=e.get(H.PERIOD))!==null&&i!==void 0?i:"").toUpperCase())]),[...p,...this.parseValueFilters((a=e.get(H.VALUE_FILTERS))!==null&&a!==void 0?a:""),...this.parseValueFilters((s=e.get(H.NEGATIVE_VALUE_FILTERS))!==null&&s!==void 0?s:"",!0),...this.parseDateFilters((c=e.get(H.DATE_FILTERS))!==null&&c!==void 0?c:""),...this.parseRangeFilters((d=e.get(H.RANGE_FILTERS))!==null&&d!==void 0?d:"")]}splitUnknownFilter(e){return this.superEscapeFilters(e).split("*").map(r=>r.split("~"))}parseValueFilters(e,r=!1){return e.length===0?[]:this.splitUnknownFilter(e).map(n=>({key:n[0],valueFilter:{values:n[1].split("_").map(cd).map(i=>this.unescapeFilterValue(i)),negative:r}}))}parseDateFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(r=>({key:r[0],dateFilter:{type:wr[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(qc(e))return[{key:"ft:lastEdition",dateFilter:{type:wr[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[H.LOCALE,H.FILTERS,H.VALUE_FILTERS,H.NEGATIVE_VALUE_FILTERS,H.DATE_FILTERS,H.RANGE_FILTERS].forEach(i=>{r.searchParams.delete(i)}),r.toString()}static updateLocaleParamInUrl(e,r){let n=new URL(e);return n.searchParams.delete(H.LOCALE),r!==void 0&&n.searchParams.append(H.LOCALE,r),n.toString()}};var Oa={};j(Oa,{toFtFormComponent:()=>ho});var Ca=Symbol("elementInternals"),ho=he(Symbol("toFtFormComponent"),function(t){class e extends t{static get formAssociated(){return!0}get form(){return this[Ca].form}constructor(...n){super(n),this[Ca]=this.attachInternals()}setFormValue(n){this[Ca].setFormValue(n)}}return e});var wa={};j(wa,{DateFormatter:()=>Ht});var Ht=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,c=new Intl.DateTimeFormat(r,{dateStyle:n?"medium":"short"}).format(s),d=new Intl.DateTimeFormat(r,{timeStyle:"short"}).format(s);return a?d:i?`${c} ${d}`:c}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 _a={};j(_a,{ALL_KEYS_VALUE:()=>Aa,SameWindowStorageEvent:()=>_r});var Aa="__all__",_r=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==Aa}};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 _r(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 _r(r[0],n))}});Storage.prototype.clear=new Proxy(Storage.prototype.clear,{apply(t,e,r){Reflect.apply(t,e,r),window.dispatchEvent(new _r(Aa))}});var Ta={};j(Ta,{FocusMainContentEvent:()=>Ra});var Ra=class extends Event{constructor(){super("ft-focus-main-content",{composed:!0,bubbles:!0})}};var ud={};window.FluidTopicsA11yHints={isKeyboardNavigation:!1,lastPressedKey:""};function bh(t){(t.key==="Enter"||t.key===" "||t.key==="Tab")&&(window.FluidTopicsA11yHints.isKeyboardNavigation=!0),window.FluidTopicsA11yHints.lastPressedKey=t.key}function xh(t){window.FluidTopicsA11yHints.isKeyboardNavigation=t.detail==0}document.addEventListener("keydown",bh);document.addEventListener("click",xh);var hn=I`
47
+ `;var Ml={};var Xi={};j(Xi,{ParametrizedLabelResolver:()=>oo});var oo=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 ya={};j(ya,{FtCommandQueue:()=>no,FtLitElementRedux:()=>Ut,FtReduxStore:()=>zt,FtStateManager:()=>fo,ReduxWatcher:()=>un,clearAllStores:()=>ch,isFtReduxStore:()=>Sr,redux:()=>vr,reduxEventListener:()=>hf,reduxReactive:()=>ff,watch:()=>dh,withRedux:()=>$l});var ff=()=>(t,e)=>{var r;let n=t.constructor;n.reduxReactiveProperties=new Set(n.reduxReactiveProperties),(r=n.reduxReactiveProperties)===null||r===void 0||r.add(e)},vr=t=>{let e=t??{};return(r,n)=>{var i;let a={hasChanged:st,attribute:!1,...e};m(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:(c=>c[n]),store:e.store})}},hf=t=>(e,r)=>{let n=e.constructor;n.reduxEventListeners=new Map(n.reduxEventListeners),n.reduxEventListeners.set(r,t)};var no=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 Sr(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var io=Symbol("internalReduxEventsUnsubscribers"),bt=Symbol("internalStoresUnsubscribers"),Ft=Symbol("internalStores"),$l=he(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(c=>s.has(c))&&this.updateFromStores()}getUnnamedStore(){if(this[Ft].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Ft].values()][0]}getStore(s){return s==null?this.getUnnamedStore():this[Ft].get(s)}addStore(s,c){var d;c=(d=c??s.name)!==null&&d!==void 0?d:"default-store",this.unsubscribeFromStore(c),this[Ft].set(c,s),this.subscribeToStore(c,s),this.updateFromStores()}removeStore(s){let c=typeof s=="string"?s:s.name;this.unsubscribeFromStore(c),this[Ft].delete(c)}setupStores(){this.unsubscribeFromStores(),this[Ft].forEach((s,c)=>this.subscribeToStore(c,s)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((s,c)=>{let d=this.constructor.getPropertyOptions(c);if(!d?.attribute||!this.hasAttribute(typeof d?.attribute=="string"?d.attribute:c)){let p=this.getStore(s.store);p&&(s.store?this[bt].has(s.store):this[bt].size>0)&&(this[c]=s.selector(p.getState(),this))}})}subscribeToStore(s,c){var d;this[bt].set(s,c.subscribe(()=>this.updateFromStores())),this[io].set(s,[]),Sr(c)&&c.eventBus&&((d=this.reduxConstructor.reduxEventListeners)===null||d===void 0||d.forEach((p,h)=>{if(typeof this[h]=="function"&&(!p.store||c.name===p.store)){let f=g=>this[h](g);c.addEventListener(p.eventName,f),this[io].get(s).push(()=>c.removeEventListener(p.eventName,f))}})),this.onStoreAvailable(s)}unsubscribeFromStores(){this[bt].forEach((s,c)=>this.unsubscribeFromStore(c))}unsubscribeFromStore(s){var c;this[bt].has(s)&&this[bt].get(s)(),this[bt].delete(s),(c=this[io].get(s))===null||c===void 0||c.forEach(d=>d()),this[io].delete(s)}onStoreAvailable(s){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=bt,r=Ft,n=io,i.reduxProperties=new Map,i.reduxReactiveProperties=new Set,i.reduxEventListeners=new Map,i}),Ut=class extends $l(Y){};function me(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 mf=typeof Symbol=="function"&&Symbol.observable||"@@observable",Fl=mf,Ji=()=>Math.random().toString(36).substring(7).split("").join("."),gf={INIT:`@@redux/INIT${Ji()}`,REPLACE:`@@redux/REPLACE${Ji()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Ji()}`},Wo=gf;function Go(t){if(typeof t!="object"||t===null)return!1;let e=t;for(;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e||Object.getPrototypeOf(t)===null}function Qi(t,e,r){if(typeof t!="function")throw new Error(me(2));if(typeof e=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(me(0));if(typeof e=="function"&&typeof r>"u"&&(r=e,e=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(me(1));return r(Qi)(t,e)}let n=t,i=e,a=new Map,s=a,c=0,d=!1;function p(){s===a&&(s=new Map,a.forEach((E,A)=>{s.set(A,E)}))}function h(){if(d)throw new Error(me(3));return i}function f(E){if(typeof E!="function")throw new Error(me(4));if(d)throw new Error(me(5));let A=!0;p();let W=c++;return s.set(W,E),function(){if(A){if(d)throw new Error(me(6));A=!1,p(),s.delete(W),a=null}}}function g(E){if(!Go(E))throw new Error(me(7));if(typeof E.type>"u")throw new Error(me(8));if(typeof E.type!="string")throw new Error(me(17));if(d)throw new Error(me(9));try{d=!0,i=n(i,E)}finally{d=!1}return(a=s).forEach(W=>{W()}),E}function x(E){if(typeof E!="function")throw new Error(me(10));n=E,g({type:Wo.REPLACE})}function S(){let E=f;return{subscribe(A){if(typeof A!="object"||A===null)throw new Error(me(11));function W(){let b=A;b.next&&b.next(h())}return W(),{unsubscribe:E(W)}},[Fl](){return this}}}return g({type:Wo.INIT}),{dispatch:g,subscribe:f,getState:h,replaceReducer:x,[Fl]:S}}function yf(t){Object.keys(t).forEach(e=>{let r=t[e];if(typeof r(void 0,{type:Wo.INIT})>"u")throw new Error(me(12));if(typeof r(void 0,{type:Wo.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(me(13))})}function Ul(t){let e=Object.keys(t),r={};for(let s=0;s<e.length;s++){let c=e[s];typeof t[c]=="function"&&(r[c]=t[c])}let n=Object.keys(r),i,a;try{yf(r)}catch(s){a=s}return function(c={},d){if(a)throw a;let p=!1,h={};for(let f=0;f<n.length;f++){let g=n[f],x=r[g],S=c[g],O=x(S,d);if(typeof O>"u"){let E=d&&d.type;throw new Error(me(14))}h[g]=O,p=p||O!==S}return p=p||n.length!==Object.keys(c).length,p?h:c}}function ao(...t){return t.length===0?e=>e:t.length===1?t[0]:t.reduce((e,r)=>(...n)=>e(r(...n)))}function Bl(...t){return e=>(r,n)=>{let i=e(r,n),a=()=>{throw new Error(me(15))},s={getState:i.getState,dispatch:(d,...p)=>a(d,...p)},c=t.map(d=>d(s));return a=ao(...c)(i.dispatch),{...i,dispatch:a}}}function zl(t){return Go(t)&&"type"in t&&typeof t.type=="string"}var Yl=Symbol.for("immer-nothing"),Hl=Symbol.for("immer-draftable"),xe=Symbol.for("immer-state");function Ge(t,...e){throw new Error(`[Immer] minified error nr: ${t}. Full error at: https://bit.ly/3cXEKWf`)}var ke=Object,Cr=ke.getPrototypeOf,qo="constructor",tn="prototype",oa="configurable",Yo="enumerable",Ko="writable",so="value",rt=t=>!!t&&!!t[xe];function Pe(t){return t?Xl(t)||on(t)||!!t[Hl]||!!t[qo]?.[Hl]||nn(t)||an(t):!1}var bf=ke[tn][qo].toString(),Vl=new WeakMap;function Xl(t){if(!t||!ua(t))return!1;let e=Cr(t);if(e===null||e===ke[tn])return!0;let r=ke.hasOwnProperty.call(e,qo)&&e[qo];if(r===Object)return!0;if(!Er(r))return!1;let n=Vl.get(r);return n===void 0&&(n=Function.toString.call(r),Vl.set(r,n)),n===bf}function rn(t,e,r=!0){uo(t)===0?(r?Reflect.ownKeys(t):ke.keys(t)).forEach(i=>{e(i,t[i],t)}):t.forEach((n,i)=>e(i,n,t))}function uo(t){let e=t[xe];return e?e.type_:on(t)?1:nn(t)?2:an(t)?3:0}var ea=(t,e,r=uo(t))=>r===2?t.has(e):ke[tn].hasOwnProperty.call(t,e),na=(t,e,r=uo(t))=>r===2?t.get(e):t[e],Xo=(t,e,r,n=uo(t))=>{n===2?t.set(e,r):n===3?t.add(r):t[e]=r};function xf(t,e){return t===e?t!==0||1/t===1/e:t!==t&&e!==e}var on=Array.isArray,nn=t=>t instanceof Map,an=t=>t instanceof Set,ua=t=>typeof t=="object",Er=t=>typeof t=="function",ta=t=>typeof t=="boolean";function vf(t){let e=+t;return Number.isInteger(e)&&String(e)===t}var ut=t=>t.copy_||t.base_;var pa=t=>t.modified_?t.copy_:t.base_;function ia(t,e){if(nn(t))return new Map(t);if(an(t))return new Set(t);if(on(t))return Array[tn].slice.call(t);let r=Xl(t);if(e===!0||e==="class_only"&&!r){let n=ke.getOwnPropertyDescriptors(t);delete n[xe];let i=Reflect.ownKeys(n);for(let a=0;a<i.length;a++){let s=i[a],c=n[s];c[Ko]===!1&&(c[Ko]=!0,c[oa]=!0),(c.get||c.set)&&(n[s]={[oa]:!0,[Ko]:!0,[Yo]:c[Yo],[so]:t[s]})}return ke.create(Cr(t),n)}else{let n=Cr(t);if(n!==null&&r)return{...t};let i=ke.create(n);return ke.assign(i,t)}}function fa(t,e=!1){return sn(t)||rt(t)||!Pe(t)||(uo(t)>1&&ke.defineProperties(t,{set:jo,add:jo,clear:jo,delete:jo}),ke.freeze(t),e&&rn(t,(r,n)=>{fa(n,!0)},!1)),t}function Sf(){Ge(2)}var jo={[so]:Sf};function sn(t){return t===null||!ua(t)?!0:ke.isFrozen(t)}var Jo="MapSet",aa="Patches",Wl="ArrayMethods",Jl={};function Bt(t){let e=Jl[t];return e||Ge(0,t),e}var Gl=t=>!!Jl[t];var lo,Ql=()=>lo,Ef=(t,e)=>({drafts_:[],parent_:t,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:Gl(Jo)?Bt(Jo):void 0,arrayMethodsPlugin_:Gl(Wl)?Bt(Wl):void 0});function jl(t,e){e&&(t.patchPlugin_=Bt(aa),t.patches_=[],t.inversePatches_=[],t.patchListener_=e)}function sa(t){la(t),t.drafts_.forEach(Cf),t.drafts_=null}function la(t){t===lo&&(lo=t.parent_)}var Kl=t=>lo=Ef(lo,t);function Cf(t){let e=t[xe];e.type_===0||e.type_===1?e.revoke_():e.revoked_=!0}function Zl(t,e){e.unfinalizedDrafts_=e.drafts_.length;let r=e.drafts_[0];if(t!==void 0&&t!==r){r[xe].modified_&&(sa(e),Ge(4)),Pe(t)&&(t=ql(e,t));let{patchPlugin_:i}=e;i&&i.generateReplacementPatches_(r[xe].base_,t,e)}else t=ql(e,r);return Of(e,t,!0),sa(e),e.patches_&&e.patchListener_(e.patches_,e.inversePatches_),t!==Yl?t:void 0}function ql(t,e){if(sn(e))return e;let r=e[xe];if(!r)return Qo(e,t.handledSet_,t);if(!ln(r,t))return e;if(!r.modified_)return r.base_;if(!r.finalized_){let{callbacks_:n}=r;if(n)for(;n.length>0;)n.pop()(t);rc(r,t)}return r.copy_}function Of(t,e,r=!1){!t.parent_&&t.immer_.autoFreeze_&&t.canAutoFreeze_&&fa(e,r)}function ec(t){t.finalized_=!0,t.scope_.unfinalizedDrafts_--}var ln=(t,e)=>t.scope_===e,wf=[];function tc(t,e,r,n){let i=ut(t),a=t.type_;if(n!==void 0&&na(i,n,a)===e){Xo(i,n,r,a);return}if(!t.draftLocations_){let c=t.draftLocations_=new Map;rn(i,(d,p)=>{if(rt(p)){let h=c.get(p)||[];h.push(d),c.set(p,h)}})}let s=t.draftLocations_.get(e)??wf;for(let c of s)Xo(i,c,r,a)}function Af(t,e,r){t.callbacks_.push(function(i){let a=e;if(!a||!ln(a,i))return;i.mapSetPlugin_?.fixSetContents(a);let s=pa(a);tc(t,a.draft_??a,s,r),rc(a,i)})}function rc(t,e){if(t.modified_&&!t.finalized_&&(t.type_===3||t.type_===1&&t.allIndicesReassigned_||(t.assigned_?.size??0)>0)){let{patchPlugin_:n}=e;if(n){let i=n.getPath(t);i&&n.generatePatches_(t,i,e)}ec(t)}}function _f(t,e,r){let{scope_:n}=t;if(rt(r)){let i=r[xe];ln(i,n)&&i.callbacks_.push(function(){Zo(t);let s=pa(i);tc(t,r,s,e)})}else Pe(r)&&t.callbacks_.push(function(){let a=ut(t);t.type_===3?a.has(r)&&Qo(r,n.handledSet_,n):na(a,e,t.type_)===r&&n.drafts_.length>1&&(t.assigned_.get(e)??!1)===!0&&t.copy_&&Qo(na(t.copy_,e,t.type_),n.handledSet_,n)})}function Qo(t,e,r){return!r.immer_.autoFreeze_&&r.unfinalizedDrafts_<1||rt(t)||e.has(t)||!Pe(t)||sn(t)||(e.add(t),rn(t,(n,i)=>{if(rt(i)){let a=i[xe];if(ln(a,r)){let s=pa(a);Xo(t,n,s,t.type_),ec(a)}}else Pe(i)&&Qo(i,e,r)})),t}function Rf(t,e){let r=on(t),n={type_:r?1:0,scope_:e?e.scope_:Ql(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:e,base_:t,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0},i=n,a=en;r&&(i=[n],a=co);let{revoke:s,proxy:c}=Proxy.revocable(i,a);return n.draft_=c,n.revoke_=s,[c,n]}var en={get(t,e){if(e===xe)return t;let r=t.scope_.arrayMethodsPlugin_,n=t.type_===1&&typeof e=="string";if(n&&r?.isArrayOperationMethod(e))return r.createMethodInterceptor(t,e);let i=ut(t);if(!ea(i,e,t.type_))return Lf(t,i,e);let a=i[e];if(t.finalized_||!Pe(a)||n&&t.operationMethod&&r?.isMutatingArrayMethod(t.operationMethod)&&vf(e))return a;if(a===ra(t.base_,e)||Tf(t,e,a)){Zo(t);let s=t.type_===1?+e:e,c=da(t.scope_,a,t,s);return t.copy_[s]=c}return a},has(t,e){return e in ut(t)},ownKeys(t){return Reflect.ownKeys(ut(t))},set(t,e,r){let n=oc(ut(t),e);if(n?.set)return n.set.call(t.draft_,r),!0;if(!t.modified_){let i=ra(ut(t),e),a=i?.[xe];if(a&&a.base_===r)return t.copy_[e]=r,t.assigned_.set(e,!1),!0;if(xf(r,i)&&(r!==void 0||ea(t.base_,e,t.type_)))return!0;Zo(t),ca(t)}return t.copy_[e]===r&&(r!==void 0||ea(t.copy_,e,t.type_))||Number.isNaN(r)&&Number.isNaN(t.copy_[e])||(t.copy_[e]=r,t.assigned_.set(e,!0),_f(t,e,r)),!0},deleteProperty(t,e){return Zo(t),ra(t.base_,e)!==void 0||e in t.base_?(t.assigned_.set(e,!1),ca(t)):t.assigned_.delete(e),t.copy_&&delete t.copy_[e],!0},getOwnPropertyDescriptor(t,e){let r=ut(t),n=Reflect.getOwnPropertyDescriptor(r,e);return n&&{[Ko]:!0,[oa]:t.type_!==1||e!=="length",[Yo]:n[Yo],[so]:r[e]}},defineProperty(){Ge(11)},getPrototypeOf(t){return Cr(t.base_)},setPrototypeOf(){Ge(12)}},co={};for(let t in en){let e=en[t];co[t]=function(){let r=arguments;return r[0]=r[0][0],e.apply(this,r)}}co.deleteProperty=function(t,e){return co.set.call(this,t,e,void 0)};co.set=function(t,e,r){return en.set.call(this,t[0],e,r,t[0])};function ra(t,e){let r=t[xe];return(r?ut(r):t)[e]}function Tf(t,e,r){return t.type_!==1||!t.allIndicesReassigned_||t.assigned_?.get(e)||!Pe(r)||r[xe]?!1:t.baseRefs_.has(r)}function Lf(t,e,r){let n=oc(e,r);return n?so in n?n[so]:n.get?.call(t.draft_):void 0}function oc(t,e){if(!(e in t))return;let r=Cr(t);for(;r;){let n=Object.getOwnPropertyDescriptor(r,e);if(n)return n;r=Cr(r)}}function ca(t){t.modified_||(t.modified_=!0,t.parent_&&ca(t.parent_))}function Zo(t){t.copy_||(t.assigned_=new Map,t.copy_=ia(t.base_,t.scope_.immer_.useStrictShallowCopy_))}var If=class{constructor(t){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(e,r,n)=>{if(Er(e)&&!Er(r)){let a=r;r=e;let s=this;return function(d=a,...p){return s.produce(d,h=>r.call(this,h,...p))}}Er(r)||Ge(6),n!==void 0&&!Er(n)&&Ge(7);let i;if(Pe(e)){let a=Kl(this),s=da(a,e,void 0),c=!0;try{i=r(s),c=!1}finally{c?sa(a):la(a)}return jl(a,n),Zl(i,a)}else if(!e||!ua(e)){if(i=r(e),i===void 0&&(i=e),i===Yl&&(i=void 0),this.autoFreeze_&&fa(i,!0),n){let a=[],s=[];Bt(aa).generateReplacementPatches_(e,i,{patches_:a,inversePatches_:s}),n(a,s)}return i}else Ge(1,e)},this.produceWithPatches=(e,r)=>{if(Er(e))return(s,...c)=>this.produceWithPatches(s,d=>e(d,...c));let n,i;return[this.produce(e,r,(s,c)=>{n=s,i=c}),n,i]},ta(t?.autoFreeze)&&this.setAutoFreeze(t.autoFreeze),ta(t?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(t.useStrictShallowCopy),ta(t?.useStrictIteration)&&this.setUseStrictIteration(t.useStrictIteration)}createDraft(t){Pe(t)||Ge(8),rt(t)&&(t=nc(t));let e=Kl(this),r=da(e,t,void 0);return r[xe].isManual_=!0,la(e),r}finishDraft(t,e){let r=t&&t[xe];(!r||!r.isManual_)&&Ge(9);let{scope_:n}=r;return jl(n,e),Zl(void 0,n)}setAutoFreeze(t){this.autoFreeze_=t}setUseStrictShallowCopy(t){this.useStrictShallowCopy_=t}setUseStrictIteration(t){this.useStrictIteration_=t}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(t,e){let r;for(r=e.length-1;r>=0;r--){let i=e[r];if(i.path.length===0&&i.op==="replace"){t=i.value;break}}r>-1&&(e=e.slice(r+1));let n=Bt(aa).applyPatches_;return rt(t)?n(t,e):this.produce(t,i=>n(i,e))}};function da(t,e,r,n){let[i,a]=nn(e)?Bt(Jo).proxyMap_(e,r):an(e)?Bt(Jo).proxySet_(e,r):Rf(e,r);return(r?.scope_??Ql()).drafts_.push(i),a.callbacks_=r?.callbacks_??[],a.key_=n,r&&n!==void 0?Af(r,a,n):a.callbacks_.push(function(d){d.mapSetPlugin_?.fixSetContents(a);let{patchPlugin_:p}=d;a.modified_&&p&&p.generatePatches_(a,[],d)}),i}function nc(t){return rt(t)||Ge(10,t),ic(t)}function ic(t){if(!Pe(t)||sn(t))return t;let e=t[xe],r,n=!0;if(e){if(!e.modified_)return e.base_;e.finalized_=!0,r=ia(t,e.scope_.immer_.useStrictShallowCopy_),n=e.scope_.immer_.shouldUseStrictIteration()}else r=ia(t,!0);return rn(r,(i,a)=>{Xo(r,i,ic(a))},n),e&&(e.finalized_=!1),r}var kf=globalThis.Iterator,Nv=typeof kf?.from=="function";var Pf=new If,ha=Pf.produce;function ac(t){return({dispatch:r,getState:n})=>i=>a=>typeof a=="function"?a(r,n,t):i(a)}var sc=ac(),lc=ac;var Nf=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?ao:ao.apply(null,arguments)},zv=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}},Df=t=>t&&typeof t.match=="function";function xt(t,e){function r(...n){if(e){let i=e(...n);if(!i)throw new Error(pt(0));return{type:t,payload:i.payload,..."meta"in i&&{meta:i.meta},..."error"in i&&{error:i.error}}}return{type:t,payload:n[0]}}return r.toString=()=>`${t}`,r.type=t,r.match=n=>zl(n)&&n.type===t,r}var fc=class po extends Array{constructor(...e){super(...e),Object.setPrototypeOf(this,po.prototype)}static get[Symbol.species](){return po}concat(...e){return super.concat.apply(this,e)}prepend(...e){return e.length===1&&Array.isArray(e[0])?new po(...e[0].concat(this)):new po(...e.concat(this))}};function cc(t){return Pe(t)?ha(t,()=>{}):t}function cn(t,e,r){return t.has(e)?t.get(e):t.set(e,r(e)).get(e)}function Mf(t){return typeof t=="boolean"}var $f=()=>function(e){let{thunk:r=!0,immutableCheck:n=!0,serializableCheck:i=!0,actionCreatorCheck:a=!0}=e??{},s=new fc;return r&&(Mf(r)?s.push(sc):s.push(lc(r.extraArgument))),s},Ff="RTK_autoBatch";var dc=t=>e=>{setTimeout(e,t)},Uf=(t,e)=>r=>{let n=!1,i=()=>{n||(n=!0,cancelAnimationFrame(a),clearTimeout(s),r())},a=t(i),s=setTimeout(i,e)},Bf=(t={type:"raf"})=>e=>(...r)=>{let n=e(...r),i=!0,a=!1,s=!1,c=new Set,d=t.type==="tick"?queueMicrotask:t.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?Uf(window.requestAnimationFrame,100):dc(10):t.type==="callback"?t.queueNotification:dc(t.timeout),p=()=>{s=!1,a&&(a=!1,c.forEach(h=>h()))};return Object.assign({},n,{subscribe(h){let f=()=>i&&h(),g=n.subscribe(f);return c.add(h),()=>{g(),c.delete(h)}},dispatch(h){try{return i=!h?.meta?.[Ff],a=!i,a&&(s||(s=!0,d(p))),n.dispatch(h)}finally{i=!0}}})},zf=t=>function(r){let{autoBatch:n=!0}=r??{},i=new fc(t);return n&&i.push(Bf(typeof n=="object"?n:void 0)),i};function hc(t){let e=$f(),{reducer:r=void 0,middleware:n,devTools:i=!0,duplicateMiddlewareCheck:a=!0,preloadedState:s=void 0,enhancers:c=void 0}=t||{},d;if(typeof r=="function")d=r;else if(Go(r))d=Ul(r);else throw new Error(pt(1));let p;typeof n=="function"?p=n(e):p=e();let h=ao;i&&(h=Nf({trace:!1,...typeof i=="object"&&i}));let f=Bl(...p),g=zf(f),x=typeof c=="function"?c(g):g(),S=h(...x);return Qi(d,s,S)}function mc(t){let e={},r=[],n,i={addCase(a,s){let c=typeof a=="string"?a:a.type;if(!c)throw new Error(pt(28));if(c in e)throw new Error(pt(29));return e[c]=s,i},addAsyncThunk(a,s){return s.pending&&(e[a.pending.type]=s.pending),s.rejected&&(e[a.rejected.type]=s.rejected),s.fulfilled&&(e[a.fulfilled.type]=s.fulfilled),s.settled&&r.push({matcher:a.settled,reducer:s.settled}),i},addMatcher(a,s){return r.push({matcher:a,reducer:s}),i},addDefaultCase(a){return n=a,i}};return t(i),[e,r,n]}function Hf(t){return typeof t=="function"}function Vf(t,e){let[r,n,i]=mc(e),a;if(Hf(t))a=()=>cc(t());else{let c=cc(t);a=()=>c}function s(c=a(),d){let p=[r[d.type],...n.filter(({matcher:h})=>h(d)).map(({reducer:h})=>h)];return p.filter(h=>!!h).length===0&&(p=[i]),p.reduce((h,f)=>{if(f)if(rt(h)){let x=f(h,d);return x===void 0?h:x}else{if(Pe(h))return ha(h,g=>f(g,d));{let g=f(h,d);if(g===void 0){if(h===null)return h;throw Error("A case reducer on a non-draftable value must not return undefined")}return g}}return h},c)}return s.getInitialState=a,s}var Wf=(t,e)=>Df(t)?t.match(e):t(e);function Gf(...t){return e=>t.some(r=>Wf(r,e))}var jf="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Kf=(t=21)=>{let e="",r=t;for(;r--;)e+=jf[Math.random()*64|0];return e},Zf=["name","message","stack","code"],ma=class{constructor(t,e){this.payload=t,this.meta=e}payload;meta;_type},uc=class{constructor(t,e){this.payload=t,this.meta=e}payload;meta;_type},qf=t=>{if(typeof t=="object"&&t!==null){let e={};for(let r of Zf)typeof t[r]=="string"&&(e[r]=t[r]);return e}return{message:String(t)}},pc="External signal was aborted",Yf=(()=>{function t(e,r,n){let i=xt(e+"/fulfilled",(d,p,h,f)=>({payload:d,meta:{...f||{},arg:h,requestId:p,requestStatus:"fulfilled"}})),a=xt(e+"/pending",(d,p,h)=>({payload:void 0,meta:{...h||{},arg:p,requestId:d,requestStatus:"pending"}})),s=xt(e+"/rejected",(d,p,h,f,g)=>({payload:f,error:(n&&n.serializeError||qf)(d||"Rejected"),meta:{...g||{},arg:h,requestId:p,rejectedWithValue:!!f,requestStatus:"rejected",aborted:d?.name==="AbortError",condition:d?.name==="ConditionError"}}));function c(d,{signal:p}={}){return(h,f,g)=>{let x=n?.idGenerator?n.idGenerator(d):Kf(),S=new AbortController,O,E;function A(y){E=y,S.abort()}p&&(p.aborted?A(pc):p.addEventListener("abort",()=>A(pc),{once:!0}));let W=(async function(){let y;try{let v=n?.condition?.(d,{getState:f,extra:g});if(Jf(v)&&(v=await v),v===!1||S.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};let L=new Promise((N,T)=>{O=()=>{T({name:"AbortError",message:E||"Aborted"})},S.signal.addEventListener("abort",O,{once:!0})});h(a(x,d,n?.getPendingMeta?.({requestId:x,arg:d},{getState:f,extra:g}))),y=await Promise.race([L,Promise.resolve(r(d,{dispatch:h,getState:f,extra:g,requestId:x,signal:S.signal,abort:A,rejectWithValue:((N,T)=>new ma(N,T)),fulfillWithValue:((N,T)=>new uc(N,T))})).then(N=>{if(N instanceof ma)throw N;return N instanceof uc?i(N.payload,x,d,N.meta):i(N,x,d)})])}catch(v){y=v instanceof ma?s(null,x,d,v.payload,v.meta):s(v,x,d)}finally{O&&S.signal.removeEventListener("abort",O)}return n&&!n.dispatchConditionRejection&&s.match(y)&&y.meta.condition||h(y),y})();return Object.assign(W,{abort:A,requestId:x,arg:d,unwrap(){return W.then(Xf)}})}}return Object.assign(c,{pending:a,rejected:s,fulfilled:i,settled:Gf(s,i),typePrefix:e})}return t.withTypes=()=>t,t})();function Xf(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function Jf(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var gc=Symbol.for("rtk-slice-createasyncthunk"),Vv={[gc]:Yf};function Qf(t,e){return`${t}/${e}`}function eh({creators:t}={}){let e=t?.asyncThunk?.[gc];return function(n){let{name:i,reducerPath:a=i}=n;if(!i)throw new Error(pt(11));typeof process<"u";let s=(typeof n.reducers=="function"?n.reducers(rh()):n.reducers)||{},c=Object.keys(s),d={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},p={addCase(y,b){let v=typeof y=="string"?y:y.type;if(!v)throw new Error(pt(12));if(v in d.sliceCaseReducersByType)throw new Error(pt(13));return d.sliceCaseReducersByType[v]=b,p},addMatcher(y,b){return d.sliceMatchers.push({matcher:y,reducer:b}),p},exposeAction(y,b){return d.actionCreators[y]=b,p},exposeCaseReducer(y,b){return d.sliceCaseReducersByName[y]=b,p}};c.forEach(y=>{let b=s[y],v={reducerName:y,type:Qf(i,y),createNotation:typeof n.reducers=="function"};nh(b)?ah(v,b,p,e):oh(v,b,p)});function h(){let[y={},b=[],v=void 0]=typeof n.extraReducers=="function"?mc(n.extraReducers):[n.extraReducers],L={...y,...d.sliceCaseReducersByType};return Vf(n.initialState,N=>{for(let T in L)N.addCase(T,L[T]);for(let T of d.sliceMatchers)N.addMatcher(T.matcher,T.reducer);for(let T of b)N.addMatcher(T.matcher,T.reducer);v&&N.addDefaultCase(v)})}let f=y=>y,g=new Map,x=new WeakMap,S;function O(y,b){return S||(S=h()),S(y,b)}function E(){return S||(S=h()),S.getInitialState()}function A(y,b=!1){function v(N){let T=N[y];return typeof T>"u"&&b&&(T=cn(x,v,E)),T}function L(N=f){let T=cn(g,b,()=>new WeakMap);return cn(T,N,()=>{let Z={};for(let[R,B]of Object.entries(n.selectors??{}))Z[R]=th(B,N,()=>cn(x,N,E),b);return Z})}return{reducerPath:y,getSelectors:L,get selectors(){return L(v)},selectSlice:v}}let W={name:i,reducer:O,actions:d.actionCreators,caseReducers:d.sliceCaseReducersByName,getInitialState:E,...A(a),injectInto(y,{reducerPath:b,...v}={}){let L=b??a;return y.inject({reducerPath:L,reducer:O},v),{...W,...A(L,!0)}}};return W}}function th(t,e,r,n){function i(a,...s){let c=e(a);return typeof c>"u"&&n&&(c=r()),t(c,...s)}return i.unwrapped=t,i}var yc=eh();function rh(){function t(e,r){return{_reducerDefinitionType:"asyncThunk",payloadCreator:e,...r}}return t.withTypes=()=>t,{reducer(e){return Object.assign({[e.name](...r){return e(...r)}}[e.name],{_reducerDefinitionType:"reducer"})},preparedReducer(e,r){return{_reducerDefinitionType:"reducerWithPrepare",prepare:e,reducer:r}},asyncThunk:t}}function oh({type:t,reducerName:e,createNotation:r},n,i){let a,s;if("reducer"in n){if(r&&!ih(n))throw new Error(pt(17));a=n.reducer,s=n.prepare}else a=n;i.addCase(t,a).exposeCaseReducer(e,a).exposeAction(e,s?xt(t,s):xt(t))}function nh(t){return t._reducerDefinitionType==="asyncThunk"}function ih(t){return t._reducerDefinitionType==="reducerWithPrepare"}function ah({type:t,reducerName:e},r,n,i){if(!i)throw new Error(pt(18));let{payloadCreator:a,fulfilled:s,pending:c,rejected:d,settled:p,options:h}=r,f=i(t,a,h);n.exposeAction(e,f),s&&n.addCase(f.fulfilled,s),c&&n.addCase(f.pending,c),d&&n.addCase(f.rejected,d),p&&n.addMatcher(f.settled,p),n.exposeCaseReducer(e,{fulfilled:s||dn,pending:c||dn,rejected:d||dn,settled:p||dn})}function dn(){}var bc="listener",xc="completed",vc="cancelled",Wv=`task-${vc}`,Gv=`task-${xc}`,jv=`${bc}-${vc}`,Kv=`${bc}-${xc}`;var{assign:Sc}=Object;var ga="listenerMiddleware";var sh=Sc(xt(`${ga}/add`),{withTypes:()=>sh}),Zv=xt(`${ga}/removeAll`),lh=Sc(xt(`${ga}/remove`),{withTypes:()=>lh});function pt(t){return`Minified Redux Toolkit error #${t}; visit https://redux-toolkit.js.org/Errors?code=${t} for the full message or use the non-minified dev environment for full errors. `}window.ftReduxStores||(window.ftReduxStores={});var zt=class t extends lt{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(Sr(a))return a;if(i==null)return;let s=yc({...i,reducers:(r=i.reducers)!==null&&r!==void 0?r:{}}),c=hc({reducer:(d,p)=>{if(p.type==="CLEAR_FT_REDUX_STORE"){let h=He(s.getInitialState());for(let f of p.keeping)h[f]=(d??h)[f];return h}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,c,i.eventBus)}constructor(e,r,n){super(),this.reduxSlice=e,this.reduxStore=r,this.isFtReduxStore=!0,this.commands=new no,this.injectInto=(a,s)=>this.reduxSlice.injectInto(a,s),this.selectSlice=a=>this.reduxSlice.selectSlice(a);let i=a=>a!=null?JSON.parse(JSON.stringify(a)):a;this.actions=new Proxy(this.reduxSlice.actions,{get:(a,s,c)=>{let d=s,p=a[d];return p?(...h)=>{let f=p(...h.map(i));return this.reduxStore.dispatch(f),f}:h=>{let f=d,g=this.getState()[f];Se(g,h)||this.setState({[f]:i(h)})}}}),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()}get selectors(){return this.reduxSlice.selectors}get reducerPath(){return this.reduxSlice.reducerPath}getSelectors(){return this.reduxSlice.getSelectors()}};function ch(){var t;for(let e of Object.values((t=window.ftReduxStores)!==null&&t!==void 0?t:{}))Sr(e)&&e.clear()}var un=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);st(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 dh(t,e,r){return new un(t,e,r).watch()}var fo=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 va={};j(va,{scrollHelper:()=>uh});var ba,pn=new Map,xa=class{lock(e,r){if(r){let n=pn.get(r);if(n==null||n===e)return pn.set(r,e),r}}release(e,r){r&&pn.get(r)===e&&pn.delete(r)}findFirstScrollableParent(e){var r;let n,i;for(let a of si(e)){let s=a,c=this.elementCanScroll(s);if(c&&s.clientHeight&&s.clientHeight<s.scrollHeight){n=s;break}else c&&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,c=Rt(0,(s-n.scrollTop)/(s-a),1),d=this.computeTopOffsetRatio(r?.position,c)*(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=(ba=window.FluidTopicsScrollHelper)!==null&&ba!==void 0?ba:new xa;var uh=window.FluidTopicsScrollHelper;var Ea={};j(Ea,{SearchPlaceConverter:()=>Ar,SearchPlaceQueryParams:()=>H,isSearchPlaceQueryParams:()=>dd,serializeRequest:()=>gh});var ph=t=>typeof t=="object"&&t!=null;var fh=t=>typeof t=="number",fn=t=>typeof t=="string",Kc=t=>ph(t)&&fn(t.endpoint)&&fn(t.method)&&fn(t.statusText)&&fn(t.body)&&fh(t.status),Ec;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(Ec||(Ec={}));var Cc;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(Cc||(Cc={}));var Oc;(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"})(Oc||(Oc={}));var wc;(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"})(wc||(wc={}));var Ac;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Ac||(Ac={}));var _c;(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(_c||(_c={}));var Rc;(function(t){t.OFFICIAL="OFFICIAL",t.AI="AI"})(Rc||(Rc={}));var Tc;(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"})(Tc||(Tc={}));var Lc;(function(t){t.STANDARD="STANDARD",t.STRUCTURAL="STRUCTURAL"})(Lc||(Lc={}));var Ic;(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"})(Ic||(Ic={}));var kc;(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"})(kc||(kc={}));var Pc;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(Pc||(Pc={}));var Nc;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(Nc||(Nc={}));var Dc;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(Dc||(Dc={}));var Mc;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(Mc||(Mc={}));var $c;(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"})($c||($c={}));var Or;(function(t){t.OPTIONAL="OPTIONAL",t.MANDATORY="MANDATORY"})(Or||(Or={}));var Fc;(function(t){t.ASC="ASC",t.DESC="DESC"})(Fc||(Fc={}));var Uc;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(Uc||(Uc={}));var Sa;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(Sa||(Sa={}));var Zc=t=>Object.keys(Sa).includes(t);var Bc;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(Bc||(Bc={}));var zc;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(zc||(zc={}));var Hc;(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"})(Hc||(Hc={}));var wr;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(wr||(wr={}));var qc=t=>Object.keys(wr).includes(t);var Vc;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.HTML_PACKAGE="HTML_PACKAGE",t.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(Vc||(Vc={}));var Wc;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(Wc||(Wc={}));var Gc;(function(t){t.PLAIN_TEXT="PLAIN_TEXT",t.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",t.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(Gc||(Gc={}));var se;(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"})(se||(se={}));var Ue;(function(t){t.SEARCHES="SEARCHES",t.BOOKMARKS="BOOKMARKS",t.BOOKS="BOOKS",t.COLLECTIONS="COLLECTIONS"})(Ue||(Ue={}));var jc;(function(t){t.UNAUTHENTICATED="UNAUTHENTICATED",t.USER_INCOMPLETE="USER_INCOMPLETE",t.MFA_REQUIRED="MFA_REQUIRED",t.AUTHENTICATED="AUTHENTICATED"})(jc||(jc={}));var Yc;(function(t){t.UNREACHABLE="UNREACHABLE",t.UNAUTHORIZED="UNAUTHORIZED",t.FORBIDDEN="FORBIDDEN",t.INCOMPATIBLE="INCOMPATIBLE",t.FAILED="FAILED",t.OK="OK"})(Yc||(Yc={}));var Xc;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(Xc||(Xc={}));var Jc;(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.SEMANTIC_SEARCH="SEMANTIC_SEARCH",t.CHATBOT_INSTRUCTIONS="CHATBOT_INSTRUCTIONS",t.DOCUMENTATION="DOCUMENTATION",t.OTHER="OTHER"})(Jc||(Jc={}));var Qc;(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",t.SLOW="SLOW",t.OTHER="OTHER"})(Qc||(Qc={}));var ed;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(ed||(ed={}));var td;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(td||(td={}));var rd;(function(t){t.TEXT="TEXT",t.HTML="HTML"})(rd||(rd={}));var od;(function(t){t.IN_PROGRESS="IN_PROGRESS",t.ERROR="ERROR",t.DONE="DONE"})(od||(od={}));var nd;(function(t){t.HTML="HTML",t.MARKDOWN="MARKDOWN"})(nd||(nd={}));var id;(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"})(id||(id={}));var ad;(function(t){t.MAP="MAP",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(ad||(ad={}));var hh={[se.PERSONAL_BOOK_SHARE_USER]:[se.PERSONAL_BOOK_USER],[se.HTML_EXPORT_USER]:[se.PERSONAL_BOOK_USER],[se.PDF_EXPORT_USER]:[se.PERSONAL_BOOK_USER],[se.KHUB_ADMIN]:[se.CONTENT_PUBLISHER],[se.ADMIN]:[se.KHUB_ADMIN,se.USERS_ADMIN,se.PORTAL_ADMIN,se.BEHAVIOR_DATA_USER],[se.GENERATIVE_AI_EXPORT_USER]:[se.GENERATIVE_AI_USER]};function sd(t,e){return t===e||(hh[t]??[]).some(r=>sd(r,e))}function ld(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=>sd(n,e))}function mh(t){return`"${t}"`}function cd(t){return t.startsWith('"')&&t.endsWith('"')?t.replace(/(^"+)|("+$)/g,""):t}function gh(t,e){return new Ar(t).serialize(e)}var H;(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.NEGATIVE_VALUE_FILTERS="negative-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"})(H||(H={}));var yh=new Set(Object.values(H));function dd(t){return yh.has(t)}var Ar=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,c,d,p,h,f,g,x,S,O;let E=new URLSearchParams;e.contentLocale?(!r||e.contentLocale!==this.defaultContentLocale)&&E.append(H.LOCALE,e.contentLocale):E.append(H.LOCALE,this.allLanguagesAllowed?"all":this.defaultContentLocale),((n=e.query)===null||n===void 0?void 0:n.length)>0&&E.append(H.QUERY,e.query);let A=T=>{var Z,R;let B=((R=(Z=T.valueFilter)===null||Z===void 0?void 0:Z.values)!==null&&R!==void 0?R:[]).map(oe=>this.escapeFilters(oe)).map(oe=>mh(cd(oe))).join("_");return`${T.key}~${B}`},W=(a=(i=e.metadataFilters)===null||i===void 0?void 0:i.filter(T=>T.valueFilter&&!T.valueFilter.negative))!==null&&a!==void 0?a:[];W.length>0&&E.append(H.VALUE_FILTERS,W.map(A).join("*"));let y=(c=(s=e.metadataFilters)===null||s===void 0?void 0:s.filter(T=>T.valueFilter&&T.valueFilter.negative))!==null&&c!==void 0?c:[];y.length>0&&E.append(H.NEGATIVE_VALUE_FILTERS,y.map(A).join("*"));let b=(p=(d=e.metadataFilters)===null||d===void 0?void 0:d.filter(T=>T.dateFilter))!==null&&p!==void 0?p:[];if(b.length>0){let T=b.map(Z=>{var R;return`${Z.key}~${(R=Z.dateFilter)===null||R===void 0?void 0:R.type.toLowerCase()}`}).join("*");E.append(H.DATE_FILTERS,T)}let v=(f=(h=e.metadataFilters)===null||h===void 0?void 0:h.filter(T=>T.rangeFilter))!==null&&f!==void 0?f:[];if(v.length>0){let T=v.map(Z=>{var R,B;return`${Z.key}~${(R=Z.rangeFilter)===null||R===void 0?void 0:R.from}_${(B=Z.rangeFilter)===null||B===void 0?void 0:B.to}`}).join("*");E.append(H.RANGE_FILTERS,T)}e.virtualField&&e.virtualField!=="EVERYWHERE"&&E.append(H.VIRTUAL_FIELD,e.virtualField.toLowerCase()),e.scope&&e.scope!=="DEFAULT"&&E.append(H.SCOPE,e.scope.toLowerCase()),e.sortId!=null&&E.append(H.SORT,e.sortId),!((g=e.paging)===null||g===void 0)&&g.perPage&&((S=(x=e.paging)===null||x===void 0?void 0:x.perPage)!==null&&S!==void 0?S:this.defaultPerPage)!=this.defaultPerPage&&E.append(H.PER_PAGE,String(e.paging.perPage)),e.keywordMatch!=null&&E.append(H.KEYWORD_MATCH,e.keywordMatch.toLowerCase());let L=(O=e.otherQueryParams)!==null&&O!==void 0?O:{};for(let T in L)E.append(T,L[T]);let N=new Array;return E.forEach((T,Z)=>{N.push(this.encodeQueryString(Z)+"="+this.encodeQueryString(T))}),encodeURI(N.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,c;try{e=decodeURI(e).replace(/%23/g,"#")}catch(A){console.warn("Could not decode search request query params, fallback on raw value",A)}let d=new URLSearchParams(e),p=d.get(H.LOCALE)==="all"?void 0:d.get(H.LOCALE),h=((r=d.get(H.VIRTUAL_FIELD))!==null&&r!==void 0?r:"EVERYWHERE").toUpperCase(),f=(n=d.get(H.SORT))===null||n===void 0?void 0:n.toLowerCase(),g=(i=d.get(H.SCOPE))!==null&&i!==void 0?i:"default",x=+((a=d.get(H.PER_PAGE))!==null&&a!==void 0?a:this.defaultPerPage),S=d.get(H.KEYWORD_MATCH),O=S?S.toUpperCase()===Or.MANDATORY?Or.MANDATORY:Or.OPTIONAL:void 0,E={};for(let A of d.keys())dd(A)||(E[A]=d.get(A));return{contentLocale:p??(this.allLanguagesAllowed?void 0:this.defaultContentLocale),query:(s=d.get(H.QUERY))!==null&&s!==void 0?s:"",scope:(c=this.scopeMapping[g])!==null&&c!==void 0?c:"DEFAULT",virtualField:Zc(h)?h:"EVERYWHERE",sortId:f,metadataFilters:this.parseCompatFilters(d),facets:[],paging:{page:1,perPage:Rt(1,isNaN(x)?this.defaultPerPage:x,1e3)},keywordMatch:O,otherQueryParams:E}}parseCompatFilters(e){var r,n,i,a,s,c,d;let p=[];return e.has(H.FILTERS)&&(p=this.parseValueFilters((r=e.get(H.FILTERS))!==null&&r!==void 0?r:"")),(n=e.has(H.PERIOD))!==null&&n!==void 0&&n&&(p=[...p,...this.parseLegacyPeriodFilter(((i=e.get(H.PERIOD))!==null&&i!==void 0?i:"").toUpperCase())]),[...p,...this.parseValueFilters((a=e.get(H.VALUE_FILTERS))!==null&&a!==void 0?a:""),...this.parseValueFilters((s=e.get(H.NEGATIVE_VALUE_FILTERS))!==null&&s!==void 0?s:"",!0),...this.parseDateFilters((c=e.get(H.DATE_FILTERS))!==null&&c!==void 0?c:""),...this.parseRangeFilters((d=e.get(H.RANGE_FILTERS))!==null&&d!==void 0?d:"")]}splitUnknownFilter(e){return this.superEscapeFilters(e).split("*").map(r=>r.split("~"))}parseValueFilters(e,r=!1){return e.length===0?[]:this.splitUnknownFilter(e).map(n=>({key:n[0],valueFilter:{values:n[1].split("_").map(cd).map(i=>this.unescapeFilterValue(i)),negative:r}}))}parseDateFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(r=>({key:r[0],dateFilter:{type:wr[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(qc(e))return[{key:"ft:lastEdition",dateFilter:{type:wr[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[H.LOCALE,H.FILTERS,H.VALUE_FILTERS,H.NEGATIVE_VALUE_FILTERS,H.DATE_FILTERS,H.RANGE_FILTERS].forEach(i=>{r.searchParams.delete(i)}),r.toString()}static updateLocaleParamInUrl(e,r){let n=new URL(e);return n.searchParams.delete(H.LOCALE),r!==void 0&&n.searchParams.append(H.LOCALE,r),n.toString()}};var Oa={};j(Oa,{toFtFormComponent:()=>ho});var Ca=Symbol("elementInternals"),ho=he(Symbol("toFtFormComponent"),function(t){class e extends t{static get formAssociated(){return!0}get form(){return this[Ca].form}constructor(...n){super(n),this[Ca]=this.attachInternals()}setFormValue(n){this[Ca].setFormValue(n)}}return e});var wa={};j(wa,{DateFormatter:()=>Ht});var Ht=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,c=new Intl.DateTimeFormat(r,{dateStyle:n?"medium":"short"}).format(s),d=new Intl.DateTimeFormat(r,{timeStyle:"short"}).format(s);return a?d:i?`${c} ${d}`:c}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 _a={};j(_a,{ALL_KEYS_VALUE:()=>Aa,SameWindowStorageEvent:()=>_r});var Aa="__all__",_r=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==Aa}};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 _r(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 _r(r[0],n))}});Storage.prototype.clear=new Proxy(Storage.prototype.clear,{apply(t,e,r){Reflect.apply(t,e,r),window.dispatchEvent(new _r(Aa))}});var Ta={};j(Ta,{FocusMainContentEvent:()=>Ra});var Ra=class extends Event{constructor(){super("ft-focus-main-content",{composed:!0,bubbles:!0})}};var ud={};window.FluidTopicsA11yHints={isKeyboardNavigation:!1,lastPressedKey:""};function bh(t){(t.key==="Enter"||t.key===" "||t.key==="Tab")&&(window.FluidTopicsA11yHints.isKeyboardNavigation=!0),window.FluidTopicsA11yHints.lastPressedKey=t.key}function xh(t){window.FluidTopicsA11yHints.isKeyboardNavigation=t.detail==0}document.addEventListener("keydown",bh);document.addEventListener("click",xh);var hn=I`
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-combobox",
3
- "version": "2.2.15",
3
+ "version": "2.2.16",
4
4
  "description": "A",
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.2.15",
22
+ "@fluid-topics/ft-wc-utils": "2.2.16",
23
23
  "lit": "3.3.3"
24
24
  },
25
25
  "devDependencies": {
26
- "@fluid-topics/ft-wc-test-utils": "2.2.15"
26
+ "@fluid-topics/ft-wc-test-utils": "2.2.16"
27
27
  },
28
- "gitHead": "7fed0188675c448361c4f688602549554f99c045"
28
+ "gitHead": "c461a5d4f16255f9dd084cb26b2f988702693e2f"
29
29
  }