@fluid-topics/ft-search-load-more-button 2.1.9 → 2.1.10
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,4 +1,4 @@
|
|
|
1
|
-
"use strict";(()=>{var _l=Object.create;var _i=Object.defineProperty;var Ll=Object.getOwnPropertyDescriptor;var Pl=Object.getOwnPropertyNames;var Nl=Object.getPrototypeOf,Dl=Object.prototype.hasOwnProperty;var Bt=(e,t)=>()=>{try{return t||e((t={exports:{}}).exports,t),t.exports}catch(r){throw t=0,r}};var Ml=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Pl(t))!Dl.call(e,i)&&i!==r&&_i(e,i,{get:()=>t[i],enumerable:!(n=Ll(t,i))||n.enumerable});return e};var g=(e,t,r)=>(r=e!=null?_l(Nl(e)):{},Ml(t||!e||!e.__esModule?_i(r,"default",{value:e,enumerable:!0}):r,e));var w=Bt((au,Li)=>{Li.exports=ftGlobals.wcUtils});var H=Bt((lu,Pi)=>{Pi.exports=ftGlobals.lit});var K=Bt((uu,Mi)=>{Mi.exports=ftGlobals.litDecorators});var un=Bt((du,Ii)=>{Ii.exports=ftGlobals.litClassMap});var al=Bt((
|
|
1
|
+
"use strict";(()=>{var _l=Object.create;var _i=Object.defineProperty;var Ll=Object.getOwnPropertyDescriptor;var Pl=Object.getOwnPropertyNames;var Nl=Object.getPrototypeOf,Dl=Object.prototype.hasOwnProperty;var Bt=(e,t)=>()=>{try{return t||e((t={exports:{}}).exports,t),t.exports}catch(r){throw t=0,r}};var Ml=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Pl(t))!Dl.call(e,i)&&i!==r&&_i(e,i,{get:()=>t[i],enumerable:!(n=Ll(t,i))||n.enumerable});return e};var g=(e,t,r)=>(r=e!=null?_l(Nl(e)):{},Ml(t||!e||!e.__esModule?_i(r,"default",{value:e,enumerable:!0}):r,e));var w=Bt((au,Li)=>{Li.exports=ftGlobals.wcUtils});var H=Bt((lu,Pi)=>{Pi.exports=ftGlobals.lit});var K=Bt((uu,Mi)=>{Mi.exports=ftGlobals.litDecorators});var un=Bt((du,Ii)=>{Ii.exports=ftGlobals.litClassMap});var al=Bt((Sg,ol)=>{ol.exports=ftGlobals.litUnsafeHTML});var Rl=g(w());var ln=g(H()),Ri=g(w());var Ni=g(H());var Di=Ni.css`
|
|
2
2
|
`;var de=g(w());var Vi=g(H()),F=g(K()),Wi=g(un()),jt=g(w());var ji=g(H()),I=g(w()),ki=I.FtCssVariableFactory.extend("--ft-ripple-color","",I.designSystemVariables.colorContent),re={color:ki,backgroundColor:I.FtCssVariableFactory.extend("--ft-ripple-background-color","",ki),opacityContentOnSurfacePressed:I.FtCssVariableFactory.external(I.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:I.FtCssVariableFactory.external(I.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:I.FtCssVariableFactory.external(I.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:I.FtCssVariableFactory.external(I.designSystemVariables.opacityContentOnSurfaceSelected,"Design system"),borderRadius:I.FtCssVariableFactory.create("--ft-ripple-border-radius","","SIZE","0px")},Ui=I.FtCssVariableFactory.extend("--ft-ripple-color","",I.designSystemVariables.colorPrimary),$i={color:Ui,backgroundColor:I.FtCssVariableFactory.extend("--ft-ripple-background-color","",Ui)},Hi=I.FtCssVariableFactory.extend("--ft-ripple-color","",I.designSystemVariables.colorSecondary),Bi={color:Hi,backgroundColor:I.FtCssVariableFactory.extend("--ft-ripple-background-color","",Hi)},Fi=ji.css`
|
|
3
3
|
:host {
|
|
4
4
|
display: contents;
|
|
@@ -124,7 +124,7 @@
|
|
|
124
124
|
</div>
|
|
125
125
|
`}contentAvailableCallback(t){super.contentAvailableCallback(t),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(t){var r,n;super.update(t),t.has("disabled")&&(this.disabled?(this.endRipple(),(r=this.target)===null||r===void 0||r.removeAttribute("data-is-ft-ripple-target")):(n=this.target)===null||n===void 0||n.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run(()=>this.defaultSetup())}defaultSetup(){var t,r;let n=(t=this.shadowRoot)===null||t===void 0?void 0:t.host.parentElement;n&&this.setupFor((r=this.target)!==null&&r!==void 0?r:n)}forceFocusUpdate(){var t;!((t=this.target)===null||t===void 0)&&t.matches(":focus-within")?this.startFocus():this.endFocus()}setupFor(t){if(this.setupDebouncer.cancel(),this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");let r=(...a)=>l=>{a.forEach(c=>window.addEventListener(c,this.endPress,{once:!0})),this.startPress(l)},n=r("mouseup","contextmenu"),i=r("touchend","touchcancel"),s=a=>{["Enter"," "].includes(a.key)&&r("keyup")(a)},o={passive:!0};t.addEventListener("mouseover",this.startHover,o),t.addEventListener("mousemove",this.moveRipple,o),t.addEventListener("mouseleave",this.endHover,o),t.addEventListener("mousedown",n,o),t.addEventListener("touchstart",i,o),t.addEventListener("touchmove",this.moveRipple,o),t.addEventListener("keydown",s,o),t.addEventListener("focus",this.startFocus,o),t.addEventListener("blur",this.endFocus,o),t.addEventListener("focusin",this.startFocus,o),t.addEventListener("focusout",this.endFocus,o),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover,o),t.removeEventListener("mousemove",this.moveRipple,o),t.removeEventListener("mouseleave",this.endHover,o),t.removeEventListener("mousedown",n,o),t.removeEventListener("touchstart",i,o),t.removeEventListener("touchmove",this.moveRipple,o),t.removeEventListener("keydown",s,o),t.removeEventListener("focus",this.startFocus,o),t.removeEventListener("blur",this.endFocus,o),t.removeEventListener("focusin",this.startFocus,o),t.removeEventListener("focusout",this.endFocus,o),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){let r=t,n=t,i,s;return r.x!=null?{x:i,y:s}=r:n.touches!=null&&(i=n.touches[0].clientX,s=n.touches[0].clientY),{x:i,y:s}}isFocusVisible(t){return t instanceof HTMLElement?t.matches(":focus-visible"):!0}isIgnored(t){if(this.disabled)return!0;if(t!=null)for(let r of t.composedPath()){if(r===this.target)break;if("hasAttribute"in r&&r.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}};N.elementDefinitions={};N.styles=Fi;z([(0,F.property)({type:Boolean})],N.prototype,"primary",void 0);z([(0,F.property)({type:Boolean})],N.prototype,"secondary",void 0);z([(0,F.property)({type:Boolean})],N.prototype,"unbounded",void 0);z([(0,F.property)({type:Boolean})],N.prototype,"activated",void 0);z([(0,F.property)({type:Boolean})],N.prototype,"selected",void 0);z([(0,F.property)({type:Boolean})],N.prototype,"disabled",void 0);z([(0,F.state)()],N.prototype,"hovered",void 0);z([(0,F.state)()],N.prototype,"focused",void 0);z([(0,F.state)()],N.prototype,"pressed",void 0);z([(0,F.state)()],N.prototype,"rippling",void 0);z([(0,F.state)()],N.prototype,"originX",void 0);z([(0,F.state)()],N.prototype,"originY",void 0);z([(0,F.query)(".ft-ripple")],N.prototype,"ripple",void 0);z([(0,F.query)(".ft-ripple--effect")],N.prototype,"rippleEffect",void 0);var Ki=g(w());var qi={"ft-ripple":N};(0,Ki.customElements)(qi);var tl=g(H()),ue=g(K()),ce=g(w());var yn=globalThis,hr=yn.trustedTypes,zi=hr?hr.createPolicy("lit-html",{createHTML:e=>e}):void 0,Zi="$lit$",Pe=`lit$${Math.random().toFixed(9).slice(2)}$`,es="?"+Pe,Il=`<${es}>`,Ge=document,mr=()=>Ge.createComment(""),Vt=e=>e===null||typeof e!="object"&&typeof e!="function",vn=Array.isArray,kl=e=>vn(e)||typeof e?.[Symbol.iterator]=="function",dn=`[
|
|
126
126
|
\f\r]`,Ft=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Gi=/-->/g,Yi=/>/g,Ke=RegExp(`>|${dn}(?:([^\\s"'>=/]+)(${dn}*=${dn}*(?:[^
|
|
127
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),Xi=/'/g,Qi=/"/g,ts=/^(?:script|style|textarea|title)$/i,bn=e=>(t,...r)=>({_$litType$:e,strings:t,values:r}),rs=bn(1),ns=bn(2),is=bn(3),Wt=Symbol.for("lit-noChange"),k=Symbol.for("lit-nothing"),Ji=new WeakMap,ze=Ge.createTreeWalker(Ge,129);function ss(e,t){if(!vn(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return zi!==void 0?zi.createHTML(t):t}var Ul=(e,t)=>{let r=e.length-1,n=[],i,s=t===2?"<svg>":t===3?"<math>":"",o=Ft;for(let a=0;a<r;a++){let l=e[a],c,u,d=-1,p=0;for(;p<l.length&&(o.lastIndex=p,u=o.exec(l),u!==null);)p=o.lastIndex,o===Ft?u[1]==="!--"?o=Gi:u[1]!==void 0?o=Yi:u[2]!==void 0?(ts.test(u[2])&&(i=RegExp("</"+u[2],"g")),o=Ke):u[3]!==void 0&&(o=Ke):o===Ke?u[0]===">"?(o=i??Ft,d=-1):u[1]===void 0?d=-2:(d=o.lastIndex-u[2].length,c=u[1],o=u[3]===void 0?Ke:u[3]==='"'?Qi:Xi):o===Qi||o===Xi?o=Ke:o===Gi||o===Yi?o=Ft:(o=Ke,i=void 0);let f=o===Ke&&e[a+1].startsWith("/>")?" ":"";s+=o===Ft?l+Il:d>=0?(n.push(c),l.slice(0,d)+Zi+l.slice(d)+Pe+f):l+Pe+(d===-2?a:f)}return[ss(e,s+(e[r]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),n]},qt=class e{constructor({strings:t,_$litType$:r},n){let i;this.parts=[];let s=0,o=0,a=t.length-1,l=this.parts,[c,u]=Ul(t,r);if(this.el=e.createElement(c,n),ze.currentNode=this.el.content,r===2||r===3){let d=this.el.content.firstChild;d.replaceWith(...d.childNodes)}for(;(i=ze.nextNode())!==null&&l.length<a;){if(i.nodeType===1){if(i.hasAttributes())for(let d of i.getAttributeNames())if(d.endsWith(Zi)){let p=u[o++],f=i.getAttribute(d).split(Pe),h=/([.?@])?(.*)/.exec(p);l.push({type:1,index:s,name:h[2],strings:f,ctor:h[1]==="."?fn:h[1]==="?"?hn:h[1]==="@"?mn:pt}),i.removeAttribute(d)}else d.startsWith(Pe)&&(l.push({type:6,index:s}),i.removeAttribute(d));if(ts.test(i.tagName)){let d=i.textContent.split(Pe),p=d.length-1;if(p>0){i.textContent=hr?hr.emptyScript:"";for(let f=0;f<p;f++)i.append(d[f],mr()),ze.nextNode(),l.push({type:2,index:++s});i.append(d[p],mr())}}}else if(i.nodeType===8)if(i.data===es)l.push({type:2,index:s});else{let d=-1;for(;(d=i.data.indexOf(Pe,d+1))!==-1;)l.push({type:7,index:s}),d+=Pe.length-1}s++}}static createElement(t,r){let n=Ge.createElement("template");return n.innerHTML=t,n}};function dt(e,t,r=e,n){if(t===Wt)return t;let i=n!==void 0?r._$Co?.[n]:r._$Cl,s=Vt(t)?void 0:t._$litDirective$;return i?.constructor!==s&&(i?._$AO?.(!1),s===void 0?i=void 0:(i=new s(e),i._$AT(e,r,n)),n!==void 0?(r._$Co??=[])[n]=i:r._$Cl=i),i!==void 0&&(t=dt(e,i._$AS(e,t.values),i,n)),t}var pn=class{constructor(t,r){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){let{el:{content:r},parts:n}=this._$AD,i=(t?.creationScope??Ge).importNode(r,!0);ze.currentNode=i;let s=ze.nextNode(),o=0,a=0,l=n[0];for(;l!==void 0;){if(o===l.index){let c;l.type===2?c=new gr(s,s.nextSibling,this,t):l.type===1?c=new l.ctor(s,l.name,l.strings,this,t):l.type===6&&(c=new gn(s,this,t)),this._$AV.push(c),l=n[++a]}o!==l?.index&&(s=ze.nextNode(),o++)}return ze.currentNode=Ge,i}p(t){let r=0;for(let n of this._$AV)n!==void 0&&(n.strings!==void 0?(n._$AI(t,n,r),r+=n.strings.length-2):n._$AI(t[r])),r++}},gr=class e{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,r,n,i){this.type=2,this._$AH=k,this._$AN=void 0,this._$AA=t,this._$AB=r,this._$AM=n,this.options=i,this._$Cv=i?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode,r=this._$AM;return r!==void 0&&t?.nodeType===11&&(t=r.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,r=this){t=dt(this,t,r),Vt(t)?t===k||t==null||t===""?(this._$AH!==k&&this._$AR(),this._$AH=k):t!==this._$AH&&t!==Wt&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):kl(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==k&&Vt(this._$AH)?this._$AA.nextSibling.data=t:this.T(Ge.createTextNode(t)),this._$AH=t}$(t){let{values:r,_$litType$:n}=t,i=typeof n=="number"?this._$AC(t):(n.el===void 0&&(n.el=qt.createElement(ss(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===i)this._$AH.p(r);else{let s=new pn(i,this),o=s.u(this.options);s.p(r),this.T(o),this._$AH=s}}_$AC(t){let r=Ji.get(t.strings);return r===void 0&&Ji.set(t.strings,r=new qt(t)),r}k(t){vn(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,n,i=0;for(let s of t)i===r.length?r.push(n=new e(this.O(mr()),this.O(mr()),this,this.options)):n=r[i],n._$AI(s),i++;i<r.length&&(this._$AR(n&&n._$AB.nextSibling,i),r.length=i)}_$AR(t=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);t&&t!==this._$AB;){let n=t.nextSibling;t.remove(),t=n}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},pt=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,r,n,i,s){this.type=1,this._$AH=k,this._$AN=void 0,this.element=t,this.name=r,this._$AM=i,this.options=s,n.length>2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=k}_$AI(t,r=this,n,i){let s=this.strings,o=!1;if(s===void 0)t=dt(this,t,r,0),o=!Vt(t)||t!==this._$AH&&t!==Wt,o&&(this._$AH=t);else{let a=t,l,c;for(t=s[0],l=0;l<s.length-1;l++)c=dt(this,a[n+l],r,l),c===Wt&&(c=this._$AH[l]),o||=!Vt(c)||c!==this._$AH[l],c===k?t=k:t!==k&&(t+=(c??"")+s[l+1]),this._$AH[l]=c}o&&!i&&this.j(t)}j(t){t===k?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},fn=class extends pt{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===k?void 0:t}},hn=class extends pt{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==k)}},mn=class extends pt{constructor(t,r,n,i,s){super(t,r,n,i,s),this.type=5}_$AI(t,r=this){if((t=dt(this,t,r,0)??k)===Wt)return;let n=this._$AH,i=t===k&&n!==k||t.capture!==n.capture||t.once!==n.once||t.passive!==n.passive,s=t!==k&&(n===k||i);i&&this.element.removeEventListener(this.name,this,n),s&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},gn=class{constructor(t,r,n){this.element=t,this.type=6,this._$AN=void 0,this._$AM=r,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(t){dt(this,t)}};var $l=yn.litHtmlPolyfillSupport;$l?.(qt,gr),(yn.litHtmlVersions??=[]).push("3.3.0");var as=Symbol.for(""),Hl=e=>{if(e?.r===as)return e?._$litStatic$},xn=e=>({_$litStatic$:e,r:as});var os=new Map,Sn=e=>(t,...r)=>{let n=r.length,i,s,o=[],a=[],l,c=0,u=!1;for(;c<n;){for(l=t[c];c<n&&(s=r[c],(i=Hl(s))!==void 0);)l+=i+t[++c],u=!0;c!==n&&a.push(s),o.push(l),c++}if(c===n&&o.push(t[n]),u){let d=o.join("$$lit$$");(t=os.get(d))===void 0&&(o.raw=o,os.set(d,t=o)),r=a}return e(t,...r)},An=Sn(rs),wu=Sn(ns),Ou=Sn(is);var En=g(K()),Ss=g(w());var Ne;(function(e){e.title="title",e.title_dense="title-dense",e.subtitle1="subtitle1",e.subtitle2="subtitle2",e.body1="body1",e.body2="body2",e.caption="caption",e.breadcrumb="breadcrumb",e.overline="overline",e.button="button"})(Ne||(Ne={}));var ne=g(H()),v=g(w()),ls=v.FtCssVariableFactory.extend("--ft-typography-font-family","",v.designSystemVariables.titleFont),we=v.FtCssVariableFactory.extend("--ft-typography-font-family","",v.designSystemVariables.contentFont),A={fontFamily:we,fontSize:v.FtCssVariableFactory.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:v.FtCssVariableFactory.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:v.FtCssVariableFactory.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:v.FtCssVariableFactory.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:v.FtCssVariableFactory.create("--ft-typography-text-transform","","UNKNOWN","inherit")},ft={fontFamily:v.FtCssVariableFactory.extend("--ft-typography-title-font-family","",ls),fontSize:v.FtCssVariableFactory.extend("--ft-typography-title-font-size","",A.fontSize,"20px"),fontWeight:v.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",A.fontWeight,"normal"),letterSpacing:v.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",A.letterSpacing,"0.15px"),lineHeight:v.FtCssVariableFactory.extend("--ft-typography-title-line-height","",A.lineHeight,"1.2"),textTransform:v.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",A.textTransform,"inherit")},ht={fontFamily:v.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",ls),fontSize:v.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",A.fontSize,"14px"),fontWeight:v.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",A.fontWeight,"normal"),letterSpacing:v.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",A.letterSpacing,"0.105px"),lineHeight:v.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",A.lineHeight,"1.7"),textTransform:v.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",A.textTransform,"inherit")},mt={fontFamily:v.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",we),fontSize:v.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",A.fontSize,"16px"),fontWeight:v.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",A.fontWeight,"600"),letterSpacing:v.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",A.letterSpacing,"0.144px"),lineHeight:v.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",A.lineHeight,"1.5"),textTransform:v.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",A.textTransform,"inherit")},gt={fontFamily:v.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",we),fontSize:v.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",A.fontSize,"14px"),fontWeight:v.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",A.fontWeight,"normal"),letterSpacing:v.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",A.letterSpacing,"0.098px"),lineHeight:v.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",A.lineHeight,"1.7"),textTransform:v.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",A.textTransform,"inherit")},yt={fontFamily:v.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",we),fontSize:v.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",A.fontSize,"16px"),fontWeight:v.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",A.fontWeight,"normal"),letterSpacing:v.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",A.letterSpacing,"0.496px"),lineHeight:v.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",A.lineHeight,"1.5"),textTransform:v.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",A.textTransform,"inherit")},vt={fontFamily:v.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",we),fontSize:v.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",A.fontSize,"14px"),fontWeight:v.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",A.fontWeight,"normal"),letterSpacing:v.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",A.letterSpacing,"0.252px"),lineHeight:v.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",A.lineHeight,"1.4"),textTransform:v.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",A.textTransform,"inherit")},bt={fontFamily:v.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",we),fontSize:v.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",A.fontSize,"12px"),fontWeight:v.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",A.fontWeight,"normal"),letterSpacing:v.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",A.letterSpacing,"0.396px"),lineHeight:v.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",A.lineHeight,"1.33"),textTransform:v.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",A.textTransform,"inherit")},xt={fontFamily:v.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",we),fontSize:v.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",A.fontSize,"10px"),fontWeight:v.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",A.fontWeight,"normal"),letterSpacing:v.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",A.letterSpacing,"0.33px"),lineHeight:v.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",A.lineHeight,"1.6"),textTransform:v.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",A.textTransform,"inherit")},St={fontFamily:v.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",we),fontSize:v.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",A.fontSize,"10px"),fontWeight:v.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",A.fontWeight,"normal"),letterSpacing:v.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",A.letterSpacing,"1.5px"),lineHeight:v.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",A.lineHeight,"1.6"),textTransform:v.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",A.textTransform,"uppercase")},xe={fontFamily:v.FtCssVariableFactory.extend("--ft-typography-button-font-family","",we),fontSize:v.FtCssVariableFactory.extend("--ft-typography-button-font-size","",A.fontSize,"14px"),fontWeight:v.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",A.fontWeight,"600"),letterSpacing:v.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",A.letterSpacing,"1.246px"),lineHeight:v.FtCssVariableFactory.extend("--ft-typography-button-line-height","",A.lineHeight,"1.15"),textTransform:v.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",A.textTransform,"uppercase")},cs=ne.css`
|
|
127
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),Xi=/'/g,Qi=/"/g,ts=/^(?:script|style|textarea|title)$/i,bn=e=>(t,...r)=>({_$litType$:e,strings:t,values:r}),rs=bn(1),ns=bn(2),is=bn(3),Wt=Symbol.for("lit-noChange"),k=Symbol.for("lit-nothing"),Ji=new WeakMap,ze=Ge.createTreeWalker(Ge,129);function ss(e,t){if(!vn(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return zi!==void 0?zi.createHTML(t):t}var Ul=(e,t)=>{let r=e.length-1,n=[],i,s=t===2?"<svg>":t===3?"<math>":"",o=Ft;for(let a=0;a<r;a++){let l=e[a],c,u,d=-1,p=0;for(;p<l.length&&(o.lastIndex=p,u=o.exec(l),u!==null);)p=o.lastIndex,o===Ft?u[1]==="!--"?o=Gi:u[1]!==void 0?o=Yi:u[2]!==void 0?(ts.test(u[2])&&(i=RegExp("</"+u[2],"g")),o=Ke):u[3]!==void 0&&(o=Ke):o===Ke?u[0]===">"?(o=i??Ft,d=-1):u[1]===void 0?d=-2:(d=o.lastIndex-u[2].length,c=u[1],o=u[3]===void 0?Ke:u[3]==='"'?Qi:Xi):o===Qi||o===Xi?o=Ke:o===Gi||o===Yi?o=Ft:(o=Ke,i=void 0);let f=o===Ke&&e[a+1].startsWith("/>")?" ":"";s+=o===Ft?l+Il:d>=0?(n.push(c),l.slice(0,d)+Zi+l.slice(d)+Pe+f):l+Pe+(d===-2?a:f)}return[ss(e,s+(e[r]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),n]},qt=class e{constructor({strings:t,_$litType$:r},n){let i;this.parts=[];let s=0,o=0,a=t.length-1,l=this.parts,[c,u]=Ul(t,r);if(this.el=e.createElement(c,n),ze.currentNode=this.el.content,r===2||r===3){let d=this.el.content.firstChild;d.replaceWith(...d.childNodes)}for(;(i=ze.nextNode())!==null&&l.length<a;){if(i.nodeType===1){if(i.hasAttributes())for(let d of i.getAttributeNames())if(d.endsWith(Zi)){let p=u[o++],f=i.getAttribute(d).split(Pe),h=/([.?@])?(.*)/.exec(p);l.push({type:1,index:s,name:h[2],strings:f,ctor:h[1]==="."?fn:h[1]==="?"?hn:h[1]==="@"?mn:pt}),i.removeAttribute(d)}else d.startsWith(Pe)&&(l.push({type:6,index:s}),i.removeAttribute(d));if(ts.test(i.tagName)){let d=i.textContent.split(Pe),p=d.length-1;if(p>0){i.textContent=hr?hr.emptyScript:"";for(let f=0;f<p;f++)i.append(d[f],mr()),ze.nextNode(),l.push({type:2,index:++s});i.append(d[p],mr())}}}else if(i.nodeType===8)if(i.data===es)l.push({type:2,index:s});else{let d=-1;for(;(d=i.data.indexOf(Pe,d+1))!==-1;)l.push({type:7,index:s}),d+=Pe.length-1}s++}}static createElement(t,r){let n=Ge.createElement("template");return n.innerHTML=t,n}};function dt(e,t,r=e,n){if(t===Wt)return t;let i=n!==void 0?r._$Co?.[n]:r._$Cl,s=Vt(t)?void 0:t._$litDirective$;return i?.constructor!==s&&(i?._$AO?.(!1),s===void 0?i=void 0:(i=new s(e),i._$AT(e,r,n)),n!==void 0?(r._$Co??=[])[n]=i:r._$Cl=i),i!==void 0&&(t=dt(e,i._$AS(e,t.values),i,n)),t}var pn=class{constructor(t,r){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){let{el:{content:r},parts:n}=this._$AD,i=(t?.creationScope??Ge).importNode(r,!0);ze.currentNode=i;let s=ze.nextNode(),o=0,a=0,l=n[0];for(;l!==void 0;){if(o===l.index){let c;l.type===2?c=new gr(s,s.nextSibling,this,t):l.type===1?c=new l.ctor(s,l.name,l.strings,this,t):l.type===6&&(c=new gn(s,this,t)),this._$AV.push(c),l=n[++a]}o!==l?.index&&(s=ze.nextNode(),o++)}return ze.currentNode=Ge,i}p(t){let r=0;for(let n of this._$AV)n!==void 0&&(n.strings!==void 0?(n._$AI(t,n,r),r+=n.strings.length-2):n._$AI(t[r])),r++}},gr=class e{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,r,n,i){this.type=2,this._$AH=k,this._$AN=void 0,this._$AA=t,this._$AB=r,this._$AM=n,this.options=i,this._$Cv=i?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode,r=this._$AM;return r!==void 0&&t?.nodeType===11&&(t=r.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,r=this){t=dt(this,t,r),Vt(t)?t===k||t==null||t===""?(this._$AH!==k&&this._$AR(),this._$AH=k):t!==this._$AH&&t!==Wt&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):kl(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==k&&Vt(this._$AH)?this._$AA.nextSibling.data=t:this.T(Ge.createTextNode(t)),this._$AH=t}$(t){let{values:r,_$litType$:n}=t,i=typeof n=="number"?this._$AC(t):(n.el===void 0&&(n.el=qt.createElement(ss(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===i)this._$AH.p(r);else{let s=new pn(i,this),o=s.u(this.options);s.p(r),this.T(o),this._$AH=s}}_$AC(t){let r=Ji.get(t.strings);return r===void 0&&Ji.set(t.strings,r=new qt(t)),r}k(t){vn(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,n,i=0;for(let s of t)i===r.length?r.push(n=new e(this.O(mr()),this.O(mr()),this,this.options)):n=r[i],n._$AI(s),i++;i<r.length&&(this._$AR(n&&n._$AB.nextSibling,i),r.length=i)}_$AR(t=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);t&&t!==this._$AB;){let n=t.nextSibling;t.remove(),t=n}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},pt=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,r,n,i,s){this.type=1,this._$AH=k,this._$AN=void 0,this.element=t,this.name=r,this._$AM=i,this.options=s,n.length>2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=k}_$AI(t,r=this,n,i){let s=this.strings,o=!1;if(s===void 0)t=dt(this,t,r,0),o=!Vt(t)||t!==this._$AH&&t!==Wt,o&&(this._$AH=t);else{let a=t,l,c;for(t=s[0],l=0;l<s.length-1;l++)c=dt(this,a[n+l],r,l),c===Wt&&(c=this._$AH[l]),o||=!Vt(c)||c!==this._$AH[l],c===k?t=k:t!==k&&(t+=(c??"")+s[l+1]),this._$AH[l]=c}o&&!i&&this.j(t)}j(t){t===k?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},fn=class extends pt{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===k?void 0:t}},hn=class extends pt{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==k)}},mn=class extends pt{constructor(t,r,n,i,s){super(t,r,n,i,s),this.type=5}_$AI(t,r=this){if((t=dt(this,t,r,0)??k)===Wt)return;let n=this._$AH,i=t===k&&n!==k||t.capture!==n.capture||t.once!==n.once||t.passive!==n.passive,s=t!==k&&(n===k||i);i&&this.element.removeEventListener(this.name,this,n),s&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},gn=class{constructor(t,r,n){this.element=t,this.type=6,this._$AN=void 0,this._$AM=r,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(t){dt(this,t)}};var $l=yn.litHtmlPolyfillSupport;$l?.(qt,gr),(yn.litHtmlVersions??=[]).push("3.3.0");var as=Symbol.for(""),Hl=e=>{if(e?.r===as)return e?._$litStatic$},xn=e=>({_$litStatic$:e,r:as});var os=new Map,An=e=>(t,...r)=>{let n=r.length,i,s,o=[],a=[],l,c=0,u=!1;for(;c<n;){for(l=t[c];c<n&&(s=r[c],(i=Hl(s))!==void 0);)l+=i+t[++c],u=!0;c!==n&&a.push(s),o.push(l),c++}if(c===n&&o.push(t[n]),u){let d=o.join("$$lit$$");(t=os.get(d))===void 0&&(o.raw=o,os.set(d,t=o)),r=a}return e(t,...r)},Sn=An(rs),wu=An(ns),Ou=An(is);var En=g(K()),As=g(w());var Ne;(function(e){e.title="title",e.title_dense="title-dense",e.subtitle1="subtitle1",e.subtitle2="subtitle2",e.body1="body1",e.body2="body2",e.caption="caption",e.breadcrumb="breadcrumb",e.overline="overline",e.button="button"})(Ne||(Ne={}));var ne=g(H()),v=g(w()),ls=v.FtCssVariableFactory.extend("--ft-typography-font-family","",v.designSystemVariables.titleFont),we=v.FtCssVariableFactory.extend("--ft-typography-font-family","",v.designSystemVariables.contentFont),S={fontFamily:we,fontSize:v.FtCssVariableFactory.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:v.FtCssVariableFactory.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:v.FtCssVariableFactory.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:v.FtCssVariableFactory.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:v.FtCssVariableFactory.create("--ft-typography-text-transform","","UNKNOWN","inherit")},ft={fontFamily:v.FtCssVariableFactory.extend("--ft-typography-title-font-family","",ls),fontSize:v.FtCssVariableFactory.extend("--ft-typography-title-font-size","",S.fontSize,"20px"),fontWeight:v.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",S.fontWeight,"normal"),letterSpacing:v.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",S.letterSpacing,"0.15px"),lineHeight:v.FtCssVariableFactory.extend("--ft-typography-title-line-height","",S.lineHeight,"1.2"),textTransform:v.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",S.textTransform,"inherit")},ht={fontFamily:v.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",ls),fontSize:v.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",S.fontSize,"14px"),fontWeight:v.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",S.fontWeight,"normal"),letterSpacing:v.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",S.letterSpacing,"0.105px"),lineHeight:v.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",S.lineHeight,"1.7"),textTransform:v.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",S.textTransform,"inherit")},mt={fontFamily:v.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",we),fontSize:v.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",S.fontSize,"16px"),fontWeight:v.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",S.fontWeight,"600"),letterSpacing:v.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",S.letterSpacing,"0.144px"),lineHeight:v.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",S.lineHeight,"1.5"),textTransform:v.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",S.textTransform,"inherit")},gt={fontFamily:v.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",we),fontSize:v.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",S.fontSize,"14px"),fontWeight:v.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",S.fontWeight,"normal"),letterSpacing:v.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",S.letterSpacing,"0.098px"),lineHeight:v.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",S.lineHeight,"1.7"),textTransform:v.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",S.textTransform,"inherit")},yt={fontFamily:v.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",we),fontSize:v.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",S.fontSize,"16px"),fontWeight:v.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",S.fontWeight,"normal"),letterSpacing:v.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",S.letterSpacing,"0.496px"),lineHeight:v.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",S.lineHeight,"1.5"),textTransform:v.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",S.textTransform,"inherit")},vt={fontFamily:v.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",we),fontSize:v.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",S.fontSize,"14px"),fontWeight:v.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",S.fontWeight,"normal"),letterSpacing:v.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",S.letterSpacing,"0.252px"),lineHeight:v.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",S.lineHeight,"1.4"),textTransform:v.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",S.textTransform,"inherit")},bt={fontFamily:v.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",we),fontSize:v.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",S.fontSize,"12px"),fontWeight:v.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",S.fontWeight,"normal"),letterSpacing:v.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",S.letterSpacing,"0.396px"),lineHeight:v.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",S.lineHeight,"1.33"),textTransform:v.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",S.textTransform,"inherit")},xt={fontFamily:v.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",we),fontSize:v.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",S.fontSize,"10px"),fontWeight:v.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",S.fontWeight,"normal"),letterSpacing:v.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",S.letterSpacing,"0.33px"),lineHeight:v.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",S.lineHeight,"1.6"),textTransform:v.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",S.textTransform,"inherit")},At={fontFamily:v.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",we),fontSize:v.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",S.fontSize,"10px"),fontWeight:v.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",S.fontWeight,"normal"),letterSpacing:v.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",S.letterSpacing,"1.5px"),lineHeight:v.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",S.lineHeight,"1.6"),textTransform:v.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",S.textTransform,"uppercase")},xe={fontFamily:v.FtCssVariableFactory.extend("--ft-typography-button-font-family","",we),fontSize:v.FtCssVariableFactory.extend("--ft-typography-button-font-size","",S.fontSize,"14px"),fontWeight:v.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",S.fontWeight,"600"),letterSpacing:v.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",S.letterSpacing,"1.246px"),lineHeight:v.FtCssVariableFactory.extend("--ft-typography-button-line-height","",S.lineHeight,"1.15"),textTransform:v.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",S.textTransform,"uppercase")},cs=ne.css`
|
|
128
128
|
.ft-typography--title {
|
|
129
129
|
font-family: ${ft.fontFamily};
|
|
130
130
|
font-size: ${ft.fontSize};
|
|
@@ -199,12 +199,12 @@
|
|
|
199
199
|
}
|
|
200
200
|
`,ys=ne.css`
|
|
201
201
|
.ft-typography--overline {
|
|
202
|
-
font-family: ${
|
|
203
|
-
font-size: ${
|
|
204
|
-
font-weight: ${
|
|
205
|
-
letter-spacing: ${
|
|
206
|
-
line-height: ${
|
|
207
|
-
text-transform: ${
|
|
202
|
+
font-family: ${At.fontFamily};
|
|
203
|
+
font-size: ${At.fontSize};
|
|
204
|
+
font-weight: ${At.fontWeight};
|
|
205
|
+
letter-spacing: ${At.letterSpacing};
|
|
206
|
+
line-height: ${At.lineHeight};
|
|
207
|
+
text-transform: ${At.textTransform};
|
|
208
208
|
}
|
|
209
209
|
`,vs=ne.css`
|
|
210
210
|
.ft-typography--button {
|
|
@@ -219,15 +219,15 @@
|
|
|
219
219
|
.ft-typography {
|
|
220
220
|
vertical-align: inherit;
|
|
221
221
|
}
|
|
222
|
-
`;var xs=function(e,t,r,n){var i=arguments.length,s=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},pe=class extends
|
|
222
|
+
`;var xs=function(e,t,r,n){var i=arguments.length,s=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},pe=class extends As.FtLitElement{constructor(){super(...arguments),this.variant=Ne.body1}render(){return this.element?Sn`
|
|
223
223
|
<${xn(this.element)}
|
|
224
224
|
part="text"
|
|
225
225
|
class="ft-typography ft-typography--${this.variant}">
|
|
226
226
|
<slot></slot>
|
|
227
227
|
</${xn(this.element)}>
|
|
228
|
-
`:
|
|
228
|
+
`:Sn`
|
|
229
229
|
<slot part="text" class="ft-typography ft-typography--${this.variant}"></slot>
|
|
230
|
-
`}};pe.styles=[cs,us,ds,ps,fs,hs,ms,gs,ys,vs,bs];xs([(0,En.property)()],pe.prototype,"element",void 0);xs([(0,En.property)()],pe.prototype,"variant",void 0);var Es=g(w());var
|
|
230
|
+
`}};pe.styles=[cs,us,ds,ps,fs,hs,ms,gs,ys,vs,bs];xs([(0,En.property)()],pe.prototype,"element",void 0);xs([(0,En.property)()],pe.prototype,"variant",void 0);var Es=g(w());var Ss={"ft-typography":pe};(0,Es.customElements)(Ss);var Cs=g(H()),De=g(w()),Kt={distance:De.FtCssVariableFactory.create("--ft-tooltip-distance","","SIZE","4px"),color:De.FtCssVariableFactory.create("--ft-tooltip-color","","COLOR","#FFFFFF"),backgroundColor:De.FtCssVariableFactory.create("--ft-tooltip-background-color","","COLOR","#666666"),borderRadiusS:De.FtCssVariableFactory.extend("--ft-tooltip-border-radius","",De.designSystemVariables.borderRadiusS),maxWidth:De.FtCssVariableFactory.create("--ft-tooltip-max-width","","SIZE","150px")},ws=Cs.css`
|
|
231
231
|
.ft-tooltip--container {
|
|
232
232
|
display: block;
|
|
233
233
|
}
|
|
@@ -258,7 +258,7 @@
|
|
|
258
258
|
position: relative;
|
|
259
259
|
word-break: break-word;
|
|
260
260
|
}
|
|
261
|
-
`;var Ts=["top","right","bottom","left"],Os=["start","end"],wn=Ts.reduce((e,t)=>e.concat(t,t+"-"+Os[0],t+"-"+Os[1]),[]),zt=Math.min,Me=Math.max,Gt=Math.round;var fe=e=>({x:e,y:e}),Bl={left:"right",right:"left",bottom:"top",top:"bottom"};function On(e,t,r){return Me(e,zt(t,r))}function yr(e,t){return typeof e=="function"?e(t):e}function At(e){return e.split("-")[0]}function Ie(e){return e.split("-")[1]}function Tn(e){return e==="x"?"y":"x"}function Rn(e){return e==="y"?"height":"width"}function vr(e){let t=e[0];return t==="t"||t==="b"?"y":"x"}function _n(e){return Tn(vr(e))}function Rs(e,t,r){r===void 0&&(r=!1);let n=Ie(e),i=_n(e),s=Rn(i),o=i==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(o=Cn(o)),[o,Cn(o)]}function _s(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}function Cn(e){let t=At(e);return Bl[t]+e.slice(t.length)}function jl(e){return{top:0,right:0,bottom:0,left:0,...e}}function Ls(e){return typeof e!="number"?jl(e):{top:e,right:e,bottom:e,left:e}}function Ye(e){let{x:t,y:r,width:n,height:i}=e;return{width:n,height:i,top:r,left:t,right:t+n,bottom:r+i,x:t,y:r}}function Ps(e,t,r){let{reference:n,floating:i}=e,s=vr(t),o=_n(t),a=Rn(o),l=At(t),c=s==="y",u=n.x+n.width/2-i.width/2,d=n.y+n.height/2-i.height/2,p=n[a]/2-i[a]/2,f;switch(l){case"top":f={x:u,y:n.y-i.height};break;case"bottom":f={x:u,y:n.y+n.height};break;case"right":f={x:n.x+n.width,y:d};break;case"left":f={x:n.x-i.width,y:d};break;default:f={x:n.x,y:n.y}}switch(Ie(t)){case"start":f[o]-=p*(r&&c?-1:1);break;case"end":f[o]+=p*(r&&c?-1:1);break}return f}async function Ns(e,t){var r;t===void 0&&(t={});let{x:n,y:i,platform:s,rects:o,elements:a,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:p=!1,padding:f=0}=yr(t,e),h=Ls(f),b=a[p?d==="floating"?"reference":"floating":d],x=Ye(await s.getClippingRect({element:(r=await(s.isElement==null?void 0:s.isElement(b)))==null||r?b:b.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,strategy:l})),S=d==="floating"?{x:n,y:i,width:o.floating.width,height:o.floating.height}:o.reference,E=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a.floating)),C=await(s.isElement==null?void 0:s.isElement(E))?await(s.getScale==null?void 0:s.getScale(E))||{x:1,y:1}:{x:1,y:1},$=Ye(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:S,offsetParent:E,strategy:l}):S);return{top:(x.top-$.top+h.top)/C.y,bottom:($.bottom-x.bottom+h.bottom)/C.y,left:(x.left-$.left+h.left)/C.x,right:($.right-x.right+h.right)/C.x}}var Fl=50,Ds=async(e,t,r)=>{let{placement:n="bottom",strategy:i="absolute",middleware:s=[],platform:o}=r,a=o.detectOverflow?o:{...o,detectOverflow:Ns},l=await(o.isRTL==null?void 0:o.isRTL(t)),c=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=Ps(c,n,l),p=n,f=0,h={};for(let m=0;m<s.length;m++){let b=s[m];if(!b)continue;let{name:x,fn:S}=b,{x:E,y:C,data:$,reset:M}=await S({x:u,y:d,initialPlacement:n,placement:p,strategy:i,middlewareData:h,rects:c,platform:a,elements:{reference:e,floating:t}});u=E??u,d=C??d,h[x]={...h[x],...$},M&&f<Fl&&(f++,typeof M=="object"&&(M.placement&&(p=M.placement),M.rects&&(c=M.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):M.rects),{x:u,y:d}=Ps(c,p,l)),m=-1)}return{x:u,y:d,placement:p,strategy:i,middlewareData:h}};function Vl(e,t,r){return(e?[...r.filter(i=>Ie(i)===e),...r.filter(i=>Ie(i)!==e)]:r.filter(i=>At(i)===i)).filter(i=>e?Ie(i)===e||(t?_s(i)!==i:!1):!0)}var Ms=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var r,n,i;let{rects:s,middlewareData:o,placement:a,platform:l,elements:c}=t,{crossAxis:u=!1,alignment:d,allowedPlacements:p=wn,autoAlignment:f=!0,...h}=yr(e,t),m=d!==void 0||p===wn?Vl(d||null,f,p):p,b=await l.detectOverflow(t,h),x=((r=o.autoPlacement)==null?void 0:r.index)||0,S=m[x];if(S==null)return{};let E=Rs(S,s,await(l.isRTL==null?void 0:l.isRTL(c.floating)));if(a!==S)return{reset:{placement:m[0]}};let C=[b[At(S)],b[E[0]],b[E[1]]],$=[...((n=o.autoPlacement)==null?void 0:n.overflows)||[],{placement:S,overflows:C}],M=m[x+1];if(M)return{data:{index:x+1,overflows:$},reset:{placement:M}};let _e=$.map(X=>{let te=Ie(X.placement);return[X.placement,te&&u?X.overflows.slice(0,2).reduce((Q,qe)=>Q+qe,0):X.overflows[0],X.overflows]}).sort((X,te)=>X[1]-te[1]),Le=((i=_e.filter(X=>X[2].slice(0,Ie(X[0])?2:3).every(te=>te<=0))[0])==null?void 0:i[0])||_e[0][0];return Le!==a?{data:{index:x+1,overflows:$},reset:{placement:Le}}:{}}}};var Is=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){let{x:r,y:n,placement:i,platform:s}=t,{mainAxis:o=!0,crossAxis:a=!1,limiter:l={fn:x=>{let{x:S,y:E}=x;return{x:S,y:E}}},...c}=yr(e,t),u={x:r,y:n},d=await s.detectOverflow(t,c),p=vr(At(i)),f=Tn(p),h=u[f],m=u[p];if(o){let x=f==="y"?"top":"left",S=f==="y"?"bottom":"right",E=h+d[x],C=h-d[S];h=On(E,h,C)}if(a){let x=p==="y"?"top":"left",S=p==="y"?"bottom":"right",E=m+d[x],C=m-d[S];m=On(E,m,C)}let b=l.fn({...t,[f]:h,[p]:m});return{...b,data:{x:b.x-r,y:b.y-n,enabled:{[f]:o,[p]:a}}}}}};function xr(){return typeof window<"u"}function Qe(e){return Us(e)?(e.nodeName||"").toLowerCase():"#document"}function G(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Se(e){var t;return(t=(Us(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Us(e){return xr()?e instanceof Node||e instanceof G(e).Node:!1}function ie(e){return xr()?e instanceof Element||e instanceof G(e).Element:!1}function Ae(e){return xr()?e instanceof HTMLElement||e instanceof G(e).HTMLElement:!1}function ks(e){return!xr()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof G(e).ShadowRoot}function Et(e){let{overflow:t,overflowX:r,overflowY:n,display:i}=se(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&i!=="inline"&&i!=="contents"}function $s(e){return/^(table|td|th)$/.test(Qe(e))}function Yt(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}var Wl=/transform|translate|scale|rotate|perspective|filter/,ql=/paint|layout|strict|content/,Xe=e=>!!e&&e!=="none",Ln;function Ct(e){let t=ie(e)?se(e):e;return Xe(t.transform)||Xe(t.translate)||Xe(t.scale)||Xe(t.rotate)||Xe(t.perspective)||!Sr()&&(Xe(t.backdropFilter)||Xe(t.filter))||Wl.test(t.willChange||"")||ql.test(t.contain||"")}function Hs(e){let t=Oe(e);for(;Ae(t)&&!Je(t);){if(Ct(t))return t;if(Yt(t))return null;t=Oe(t)}return null}function Sr(){return Ln==null&&(Ln=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Ln}function Je(e){return/^(html|body|#document)$/.test(Qe(e))}function se(e){return G(e).getComputedStyle(e)}function Xt(e){return ie(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Oe(e){if(Qe(e)==="html")return e;let t=e.assignedSlot||e.parentNode||ks(e)&&e.host||Se(e);return ks(t)?t.host:t}function Bs(e){let t=Oe(e);return Je(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ae(t)&&Et(t)?t:Bs(t)}function br(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);let i=Bs(e),s=i===((n=e.ownerDocument)==null?void 0:n.body),o=G(i);if(s){let a=Ar(o);return t.concat(o,o.visualViewport||[],Et(i)?i:[],a&&r?br(a):[])}else return t.concat(i,br(i,[],r))}function Ar(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Ws(e){let t=se(e),r=parseFloat(t.width)||0,n=parseFloat(t.height)||0,i=Ae(e),s=i?e.offsetWidth:r,o=i?e.offsetHeight:n,a=Gt(r)!==s||Gt(n)!==o;return a&&(r=s,n=o),{width:r,height:n,$:a}}function qs(e){return ie(e)?e:e.contextElement}function wt(e){let t=qs(e);if(!Ae(t))return fe(1);let r=t.getBoundingClientRect(),{width:n,height:i,$:s}=Ws(t),o=(s?Gt(r.width):r.width)/n,a=(s?Gt(r.height):r.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!a||!Number.isFinite(a))&&(a=1),{x:o,y:a}}var Kl=fe(0);function Ks(e){let t=G(e);return!Sr()||!t.visualViewport?Kl:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function zl(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==G(e)?!1:t}function Qt(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);let i=e.getBoundingClientRect(),s=qs(e),o=fe(1);t&&(n?ie(n)&&(o=wt(n)):o=wt(e));let a=zl(s,r,n)?Ks(s):fe(0),l=(i.left+a.x)/o.x,c=(i.top+a.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(s){let p=G(s),f=n&&ie(n)?G(n):n,h=p,m=Ar(h);for(;m&&n&&f!==h;){let b=wt(m),x=m.getBoundingClientRect(),S=se(m),E=x.left+(m.clientLeft+parseFloat(S.paddingLeft))*b.x,C=x.top+(m.clientTop+parseFloat(S.paddingTop))*b.y;l*=b.x,c*=b.y,u*=b.x,d*=b.y,l+=E,c+=C,h=G(m),m=Ar(h)}}return Ye({width:u,height:d,x:l,y:c})}function Er(e,t){let r=Xt(e).scrollLeft;return t?t.left+r:Qt(Se(e)).left+r}function zs(e,t){let r=e.getBoundingClientRect(),n=r.left+t.scrollLeft-Er(e,r),i=r.top+t.scrollTop;return{x:n,y:i}}function Gl(e){let{elements:t,rect:r,offsetParent:n,strategy:i}=e,s=i==="fixed",o=Se(n),a=t?Yt(t.floating):!1;if(n===o||a&&s)return r;let l={scrollLeft:0,scrollTop:0},c=fe(1),u=fe(0),d=Ae(n);if((d||!d&&!s)&&((Qe(n)!=="body"||Et(o))&&(l=Xt(n)),d)){let f=Qt(n);c=wt(n),u.x=f.x+n.clientLeft,u.y=f.y+n.clientTop}let p=o&&!d&&!s?zs(o,l):fe(0);return{width:r.width*c.x,height:r.height*c.y,x:r.x*c.x-l.scrollLeft*c.x+u.x+p.x,y:r.y*c.y-l.scrollTop*c.y+u.y+p.y}}function Yl(e){return Array.from(e.getClientRects())}function Xl(e){let t=Se(e),r=Xt(e),n=e.ownerDocument.body,i=Me(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),s=Me(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight),o=-r.scrollLeft+Er(e),a=-r.scrollTop;return se(n).direction==="rtl"&&(o+=Me(t.clientWidth,n.clientWidth)-i),{width:i,height:s,x:o,y:a}}var js=25;function Ql(e,t){let r=G(e),n=Se(e),i=r.visualViewport,s=n.clientWidth,o=n.clientHeight,a=0,l=0;if(i){s=i.width,o=i.height;let u=Sr();(!u||u&&t==="fixed")&&(a=i.offsetLeft,l=i.offsetTop)}let c=Er(n);if(c<=0){let u=n.ownerDocument,d=u.body,p=getComputedStyle(d),f=u.compatMode==="CSS1Compat"&&parseFloat(p.marginLeft)+parseFloat(p.marginRight)||0,h=Math.abs(n.clientWidth-d.clientWidth-f);h<=js&&(s-=h)}else c<=js&&(s+=c);return{width:s,height:o,x:a,y:l}}function Jl(e,t){let r=Qt(e,!0,t==="fixed"),n=r.top+e.clientTop,i=r.left+e.clientLeft,s=Ae(e)?wt(e):fe(1),o=e.clientWidth*s.x,a=e.clientHeight*s.y,l=i*s.x,c=n*s.y;return{width:o,height:a,x:l,y:c}}function Fs(e,t,r){let n;if(t==="viewport")n=Ql(e,r);else if(t==="document")n=Xl(Se(e));else if(ie(t))n=Jl(t,r);else{let i=Ks(e);n={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return Ye(n)}function Gs(e,t){let r=Oe(e);return r===t||!ie(r)||Je(r)?!1:se(r).position==="fixed"||Gs(r,t)}function Zl(e,t){let r=t.get(e);if(r)return r;let n=br(e,[],!1).filter(a=>ie(a)&&Qe(a)!=="body"),i=null,s=se(e).position==="fixed",o=s?Oe(e):e;for(;ie(o)&&!Je(o);){let a=se(o),l=Ct(o);!l&&a.position==="fixed"&&(i=null),(s?!l&&!i:!l&&a.position==="static"&&!!i&&(i.position==="absolute"||i.position==="fixed")||Et(o)&&!l&&Gs(e,o))?n=n.filter(u=>u!==o):i=a,o=Oe(o)}return t.set(e,n),n}function ec(e){let{element:t,boundary:r,rootBoundary:n,strategy:i}=e,o=[...r==="clippingAncestors"?Yt(t)?[]:Zl(t,this._c):[].concat(r),n],a=Fs(t,o[0],i),l=a.top,c=a.right,u=a.bottom,d=a.left;for(let p=1;p<o.length;p++){let f=Fs(t,o[p],i);l=Me(f.top,l),c=zt(f.right,c),u=zt(f.bottom,u),d=Me(f.left,d)}return{width:c-d,height:u-l,x:d,y:l}}function tc(e){let{width:t,height:r}=Ws(e);return{width:t,height:r}}function rc(e,t,r){let n=Ae(t),i=Se(t),s=r==="fixed",o=Qt(e,!0,s,t),a={scrollLeft:0,scrollTop:0},l=fe(0);function c(){l.x=Er(i)}if(n||!n&&!s)if((Qe(t)!=="body"||Et(i))&&(a=Xt(t)),n){let f=Qt(t,!0,s,t);l.x=f.x+t.clientLeft,l.y=f.y+t.clientTop}else i&&c();s&&!n&&i&&c();let u=i&&!n&&!s?zs(i,a):fe(0),d=o.left+a.scrollLeft-l.x-u.x,p=o.top+a.scrollTop-l.y-u.y;return{x:d,y:p,width:o.width,height:o.height}}function Pn(e){return se(e).position==="static"}function Vs(e,t){if(!Ae(e)||se(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return Se(e)===r&&(r=r.ownerDocument.body),r}function Ys(e,t){let r=G(e);if(Yt(e))return r;if(!Ae(e)){let i=Oe(e);for(;i&&!Je(i);){if(ie(i)&&!Pn(i))return i;i=Oe(i)}return r}let n=Vs(e,t);for(;n&&$s(n)&&Pn(n);)n=Vs(n,t);return n&&Je(n)&&Pn(n)&&!Ct(n)?r:n||Hs(e)||r}var nc=async function(e){let t=this.getOffsetParent||Ys,r=this.getDimensions,n=await r(e.floating);return{reference:rc(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function ic(e){return se(e).direction==="rtl"}var Cr={convertOffsetParentRelativeRectToViewportRelativeRect:Gl,getDocumentElement:Se,getClippingRect:ec,getOffsetParent:Ys,getElementRects:nc,getClientRects:Yl,getDimensions:tc,getScale:wt,isElement:ie,isRTL:ic};var Xs=Ms,Qs=Is;var Js=(e,t,r)=>{let n=new Map,i={platform:Cr,...r},s={...i.platform,_c:n};return Ds(e,t,{...i,platform:s})};function Zs(e){return sc(e)}function Nn(e){return e.assignedSlot?e.assignedSlot:e.parentNode instanceof ShadowRoot?e.parentNode.host:e.parentNode}function sc(e){for(let t=e;t;t=Nn(t))if(t instanceof Element&&getComputedStyle(t).display==="none")return null;for(let t=Nn(e);t;t=Nn(t)){if(!(t instanceof Element))continue;let r=getComputedStyle(t);if(r.display!=="contents"&&(r.position!=="static"||Ct(r)||t.tagName==="BODY"))return t}return null}async function eo(e,t,r){let n;return typeof r=="object"?n=r:n={placement:r},Js(e,t,{strategy:n.strategy,platform:{...Cr,getOffsetParent:i=>Cr.getOffsetParent(i,Zs)},middleware:[Qs({crossAxis:!0}),Xs({allowedPlacements:[n.placement]})]})}var $t=g(w());var ii=g(K());var to=g(K(),1);var Dn=e=>t=>{window.customElements.get(e)||window.customElements.define(e,t)};function ro(e,t){return(0,to.property)({type:Object,converter:{fromAttribute:r=>{if(r==null)return Jt(e);try{return JSON.parse(r)}catch{return Jt(e)}},toAttribute:r=>JSON.stringify(r)},hasChanged:Zt,...t??{}})}function oc(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;let r,n;if(Array.isArray(e)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(!wr(e[n],t[n]))return!1;return!0}if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(n of e.entries())if(!t.has(n[0]))return!1;for(n of e.entries())if(!wr(n[1],t.get(n[0])))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(n of e.entries())if(!t.has(n[0]))return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();let i=o=>Object.keys(o).filter(a=>o[a]!=null),s=i(e);if(r=s.length,r!==i(t).length)return!1;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(t,s[n]))return!1;for(n=r;n--!==0;){let o=s[n];if(!wr(e[o],t[o]))return!1}return!0}return e!==e&&t!==t||e==null&&t==null}function wr(e,t){try{return oc(e,t)}catch{return!1}}function Zt(e,t){return!wr(e,t)}function Jt(e){return typeof window.structuredClone=="function"?structuredClone(e):e!=null?JSON.parse(JSON.stringify(e)):e}function Or(e,t){let r=n=>n[e]===!0;return n=>{if(r(n))return n;let i=t(n);return i[e]=!0,i}}var no=g(K(),1);var Mn=e=>{let t=e??{};return(r,n)=>{var i;let s={hasChanged:Zt,attribute:!1,...t};(0,no.property)(s)(r,n);let o=r.constructor;o.reduxProperties=new Map(o.reduxProperties),o.reduxProperties.set(n,{selector:(i=t.selector)!==null&&i!==void 0?i:(a=>a[n]),store:t.store})}};var Tr=class{constructor(){this.queue=[]}add(t,r=!1){r&&this.clear(t.type),this.queue.push(t)}consume(t){let r=this.queue.find(n=>n.type===t);return r&&(this.queue=this.queue.filter(n=>n!==r)),r}clear(t){typeof t=="string"?this.queue=this.queue.filter(r=>r.type!==t):this.queue=this.queue.filter(r=>!t.test(r.type))}};var Ze=g(K(),1);var Rr=class{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,r){return this.callbacks=[t],this.debounce(r)}queue(t,r){return this.callbacks.push(t),this.debounce(r)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return this.promise==null&&(this.promise=new Promise((r,n)=>{this.resolvePromise=r,this.rejectPromise=n})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),t??this.timeout),this.promise}async runCallbacks(){var t,r;let n=[...this.callbacks];this.callbacks=[];let i=(t=this.rejectPromise)!==null&&t!==void 0?t:(()=>null),s=(r=this.resolvePromise)!==null&&r!==void 0?r:(()=>null);this.clearPromise();for(let o of n)try{await o()}catch(a){i(a);return}s(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var so=g(H(),1);var _r=globalThis,ac=_r.ShadowRoot&&(_r.ShadyCSS===void 0||_r.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype;var io=(e,t)=>{if(ac)e.adoptedStyleSheets=t.map((r=>r instanceof CSSStyleSheet?r:r.styleSheet));else for(let r of t){let n=document.createElement("style"),i=_r.litNonce;i!==void 0&&n.setAttribute("nonce",i),n.textContent=r.cssText,e.appendChild(n)}};var Lr=class extends so.LitElement{get scopedRegistryConstructor(){return this.constructor}createRenderRoot(){let t=this.scopedRegistryConstructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,t.defineScopedElements(t.elementDefinitions));let r={...t.shadowRootOptions,customElements:t.registry},n=this.renderOptions.creationScope=this.attachShadow(r);return io(n,t.elementStyles),n}static canDefineScopedElement(t){return!!this.registry&&!this.registry.get(t)}static defineScopedElements(t){Object.entries(t).forEach(([r,n])=>this.defineScopedElement(r,n))}static defineScopedElement(t,r){Dn(t)(r),this.canDefineScopedElement(t)&&this.registry.define(t,r)}canDefineScopedElement(t){return this.scopedRegistryConstructor.canDefineScopedElement(t)}defineScopedElements(t){this.scopedRegistryConstructor.defineScopedElements(t)}defineScopedElement(t,r){this.scopedRegistryConstructor.defineScopedElement(t,r)}};function oo(e,t,...r){var n;let i=e.querySelector(t);for(let s of r)i=(n=i?.shadowRoot)===null||n===void 0?void 0:n.querySelector(s);return i}var Tt=function(e,t,r,n){var i=arguments.length,s=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},uo,ao=Symbol("constructorPrototype"),lo=Symbol("constructorName"),po=Symbol("exportpartsDebouncer"),co=Symbol("dynamicDependenciesLoaded"),Ot=class e extends CustomEvent{constructor(){super(e.eventName,{bubbles:!0})}};Ot.eventName="exportparts-updated";var Ee=class extends Lr{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[uo]=new Rr(5),this.scheduleExportpartsUpdate=()=>{var t,r,n;(!((t=this.exportpartsPrefix)===null||t===void 0)&&t.trim()||(n=(r=this.exportpartsPrefixes)===null||r===void 0?void 0:r.length)!==null&&n!==void 0&&n)&&this[po].run(()=>{var i,s;!((i=this.exportpartsPrefix)===null||i===void 0)&&i.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((s=this.exportpartsPrefixes)===null||s===void 0?void 0:s.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})},this[lo]=this.constructor.name,this[ao]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[lo]&&Object.setPrototypeOf(this,this[ao])}connectedCallback(){var t;super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(n){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",n)}let r=this.constructor;r[co]||(r[co]=!0,this.importDynamicDependencies()),(t=this.shadowRoot)===null||t===void 0||t.addEventListener(Ot.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.shadowRoot)===null||t===void 0||t.removeEventListener(Ot.eventName,this.scheduleExportpartsUpdate)}importDynamicDependencies(){}updated(t){super.updated(t),this.updateComplete.then(()=>{this.contentAvailableCallback(t),this.focusElementToFocus(t),this.applyCustomStylesheet(t),this.scheduleExportpartsUpdate(),t.has("exportparts")&&this.dispatchEvent(new Ot)})}contentAvailableCallback(t){}focusElementToFocus(t){if(t.has("elementToFocus")&&this.elementToFocus!=null){let{element:r,selector:n,shadowPath:i}=this.elementToFocus;if(n!=null){let s=[...i??[],n];r=oo(this.shadowRoot,...s)}r?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||r?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(t){var r,n,i;if(((n=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&n!==void 0?n:[]).forEach(s=>s.remove()),this.useAdoptedStyleSheets){if(t.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((i=this.customStylesheet)!==null&&i!==void 0?i:"")}catch(s){console.error(s,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let s=document.createElement("style");s.classList.add("ft-lit-element--custom-stylesheet"),s.innerHTML=this.customStylesheet,this.shadowRoot.append(s)}}setExportpartsAttribute(t){var r,n,i,s,o,a;let l=p=>p!=null&&p.trim().length>0,c=t.filter(l).map(p=>p.trim());if(c.length===0){this.exportparts=void 0;return}let u=new Set;for(let p of(n=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&n!==void 0?n:[]){let f=(s=(i=p.getAttribute("part"))===null||i===void 0?void 0:i.split(" "))!==null&&s!==void 0?s:[],h=(a=(o=p.getAttribute("exportparts"))===null||o===void 0?void 0:o.split(",").map(b=>b.split(":")[1]))!==null&&a!==void 0?a:[],m=[...f,...h].filter(l).map(b=>b.trim());for(let b of m)u.add(b)}if(u.size===0){this.exportparts=void 0;return}let d=[...u.values()].flatMap(p=>c.map(f=>`${p}:${f}--${p}`));this.exportparts=[...this.part,...d].join(", ")}};uo=po;Tt([(0,Ze.property)()],Ee.prototype,"exportpartsPrefix",void 0);Tt([ro([])],Ee.prototype,"exportpartsPrefixes",void 0);Tt([(0,Ze.property)({reflect:!0})],Ee.prototype,"exportparts",void 0);Tt([(0,Ze.property)()],Ee.prototype,"customStylesheet",void 0);Tt([(0,Ze.property)()],Ee.prototype,"elementToFocus",void 0);Tt([(0,Ze.state)()],Ee.prototype,"useAdoptedStyleSheets",void 0);function Pr(e){var t;return(t=e?.isFtReduxStore)!==null&&t!==void 0?t:!1}var er=Symbol("internalReduxEventsUnsubscribers"),ke=Symbol("internalStoresUnsubscribers"),et=Symbol("internalStores"),lc=Or(Symbol("withRedux"),function(e){var t,r,n;class i extends e{constructor(){super(...arguments),this[t]=new Map,this[r]=new Map,this[n]=new Map}get reduxConstructor(){return this.constructor}willUpdate(o){super.willUpdate(o),[...this.reduxConstructor.reduxReactiveProperties].some(a=>o.has(a))&&this.updateFromStores()}getUnnamedStore(){if(this[et].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[et].values()][0]}getStore(o){return o==null?this.getUnnamedStore():this[et].get(o)}addStore(o,a){var l;a=(l=a??o.name)!==null&&l!==void 0?l:"default-store",this.unsubscribeFromStore(a),this[et].set(a,o),this.subscribeToStore(a,o),this.updateFromStores()}removeStore(o){let a=typeof o=="string"?o:o.name;this.unsubscribeFromStore(a),this[et].delete(a)}setupStores(){this.unsubscribeFromStores(),this[et].forEach((o,a)=>this.subscribeToStore(a,o)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((o,a)=>{let l=this.constructor.getPropertyOptions(a);if(!l?.attribute||!this.hasAttribute(typeof l?.attribute=="string"?l.attribute:a)){let c=this.getStore(o.store);c&&(o.store?this[ke].has(o.store):this[ke].size>0)&&(this[a]=o.selector(c.getState(),this))}})}subscribeToStore(o,a){var l;this[ke].set(o,a.subscribe(()=>this.updateFromStores())),this[er].set(o,[]),Pr(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[er].get(o).push(()=>a.removeEventListener(c.eventName,d))}})),this.onStoreAvailable(o)}unsubscribeFromStores(){this[ke].forEach((o,a)=>this.unsubscribeFromStore(a))}unsubscribeFromStore(o){var a;this[ke].has(o)&&this[ke].get(o)(),this[ke].delete(o),(a=this[er].get(o))===null||a===void 0||a.forEach(l=>l()),this[er].delete(o)}onStoreAvailable(o){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return t=ke,r=et,n=er,i.reduxProperties=new Map,i.reduxReactiveProperties=new Set,i.reduxEventListeners=new Map,i}),fo=class extends lc(Ee){};function oe(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];if(0)var i,s;throw Error("[Immer] minified error nr: "+e+(r.length?" "+r.map((function(o){return"'"+o+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Te(e){return!!e&&!!e[L]}function he(e){var t;return!!e&&((function(r){if(!r||typeof r!="object")return!1;var n=Object.getPrototypeOf(r);if(n===null)return!0;var i=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return i===Object||typeof i=="function"&&Function.toString.call(i)===gc})(e)||Array.isArray(e)||!!e[xo]||!!(!((t=e.constructor)===null||t===void 0)&&t[xo])||Vn(e)||Wn(e))}function tt(e,t,r){r===void 0&&(r=!1),Lt(e)===0?(r?Object.keys:_t)(e).forEach((function(n){r&&typeof n=="symbol"||t(n,e[n],e)})):e.forEach((function(n,i){return t(i,n,e)}))}function Lt(e){var t=e[L];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:Vn(e)?2:Wn(e)?3:0}function Rt(e,t){return Lt(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function cc(e,t){return Lt(e)===2?e.get(t):e[t]}function So(e,t,r){var n=Lt(e);n===2?e.set(t,r):n===3?e.add(r):e[t]=r}function Ao(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function Vn(e){return hc&&e instanceof Map}function Wn(e){return mc&&e instanceof Set}function Ue(e){return e.o||e.t}function qn(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=wo(e);delete t[L];for(var r=_t(t),n=0;n<r.length;n++){var i=r[n],s=t[i];s.writable===!1&&(s.writable=!0,s.configurable=!0),(s.get||s.set)&&(t[i]={configurable:!0,writable:!0,enumerable:s.enumerable,value:e[i]})}return Object.create(Object.getPrototypeOf(e),t)}function Kn(e,t){return t===void 0&&(t=!1),zn(e)||Te(e)||!he(e)||(Lt(e)>1&&(e.set=e.add=e.clear=e.delete=uc),Object.freeze(e),t&&tt(e,(function(r,n){return Kn(n,!0)}),!0)),e}function uc(){oe(2)}function zn(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function Ce(e){var t=Fn[e];return t||oe(18,e),t}function dc(e,t){Fn[e]||(Fn[e]=t)}function Hn(){return rr}function In(e,t){t&&(Ce("Patches"),e.u=[],e.s=[],e.v=t)}function Nr(e){Bn(e),e.p.forEach(pc),e.p=null}function Bn(e){e===rr&&(rr=e.l)}function ho(e){return rr={p:[],l:rr,h:e,m:!0,_:0}}function pc(e){var t=e[L];t.i===0||t.i===1?t.j():t.g=!0}function kn(e,t){t._=t.p.length;var r=t.p[0],n=e!==void 0&&e!==r;return t.h.O||Ce("ES5").S(t,e,n),n?(r[L].P&&(Nr(t),oe(4)),he(e)&&(e=Dr(t,e),t.l||Mr(t,e)),t.u&&Ce("Patches").M(r[L].t,e,t.u,t.s)):e=Dr(t,r,[]),Nr(t),t.u&&t.v(t.u,t.s),e!==Co?e:void 0}function Dr(e,t,r){if(zn(t))return t;var n=t[L];if(!n)return tt(t,(function(a,l){return mo(e,n,t,a,l,r)}),!0),t;if(n.A!==e)return t;if(!n.P)return Mr(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var i=n.i===4||n.i===5?n.o=qn(n.k):n.o,s=i,o=!1;n.i===3&&(s=new Set(i),i.clear(),o=!0),tt(s,(function(a,l){return mo(e,n,i,a,l,r,o)})),Mr(e,i,!1),r&&e.u&&Ce("Patches").N(n,r,e.u,e.s)}return n.o}function mo(e,t,r,n,i,s,o){if(Te(i)){var a=Dr(e,i,s&&t&&t.i!==3&&!Rt(t.R,n)?s.concat(n):void 0);if(So(r,n,a),!Te(a))return;e.m=!1}else o&&r.add(i);if(he(i)&&!zn(i)){if(!e.h.D&&e._<1)return;Dr(e,i),t&&t.A.l||Mr(e,i)}}function Mr(e,t,r){r===void 0&&(r=!1),!e.l&&e.h.D&&e.m&&Kn(t,r)}function Un(e,t){var r=e[L];return(r?Ue(r):e)[t]}function go(e,t){if(t in e)for(var r=Object.getPrototypeOf(e);r;){var n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Object.getPrototypeOf(r)}}function $e(e){e.P||(e.P=!0,e.l&&$e(e.l))}function $n(e){e.o||(e.o=qn(e.t))}function jn(e,t,r){var n=Vn(t)?Ce("MapSet").F(t,r):Wn(t)?Ce("MapSet").T(t,r):e.O?(function(i,s){var o=Array.isArray(i),a={i:o?1:0,A:s?s.A:Hn(),P:!1,I:!1,R:{},l:s,t:i,k:null,o:null,j:null,C:!1},l=a,c=nr;o&&(l=[a],c=tr);var u=Proxy.revocable(l,c),d=u.revoke,p=u.proxy;return a.k=p,a.j=d,p})(t,r):Ce("ES5").J(t,r);return(r?r.A:Hn()).p.push(n),n}function fc(e){return Te(e)||oe(22,e),(function t(r){if(!he(r))return r;var n,i=r[L],s=Lt(r);if(i){if(!i.P&&(i.i<4||!Ce("ES5").K(i)))return i.t;i.I=!0,n=yo(r,s),i.I=!1}else n=yo(r,s);return tt(n,(function(o,a){i&&cc(i.t,o)===a||So(n,o,t(a))})),s===3?new Set(n):n})(e)}function yo(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return qn(e)}function Eo(){function e(o,a){var l=s[o];return l?l.enumerable=a:s[o]=l={configurable:!0,enumerable:a,get:function(){var c=this[L];return nr.get(c,o)},set:function(c){var u=this[L];nr.set(u,o,c)}},l}function t(o){for(var a=o.length-1;a>=0;a--){var l=o[a][L];if(!l.P)switch(l.i){case 5:n(l)&&$e(l);break;case 4:r(l)&&$e(l)}}}function r(o){for(var a=o.t,l=o.k,c=_t(l),u=c.length-1;u>=0;u--){var d=c[u];if(d!==L){var p=a[d];if(p===void 0&&!Rt(a,d))return!0;var f=l[d],h=f&&f[L];if(h?h.t!==p:!Ao(f,p))return!0}}var m=!!a[L];return c.length!==_t(a).length+(m?0:1)}function n(o){var a=o.k;if(a.length!==o.t.length)return!0;var l=Object.getOwnPropertyDescriptor(a,a.length-1);if(l&&!l.get)return!0;for(var c=0;c<a.length;c++)if(!a.hasOwnProperty(c))return!0;return!1}function i(o){o.g&&oe(3,JSON.stringify(Ue(o)))}var s={};dc("ES5",{J:function(o,a){var l=Array.isArray(o),c=(function(d,p){if(d){for(var f=Array(p.length),h=0;h<p.length;h++)Object.defineProperty(f,""+h,e(h,!0));return f}var m=wo(p);delete m[L];for(var b=_t(m),x=0;x<b.length;x++){var S=b[x];m[S]=e(S,d||!!m[S].enumerable)}return Object.create(Object.getPrototypeOf(p),m)})(l,o),u={i:l?5:4,A:a?a.A:Hn(),P:!1,I:!1,R:{},l:a,t:o,k:c,o:null,g:!1,C:!1};return Object.defineProperty(c,L,{value:u,writable:!0}),c},S:function(o,a,l){l?Te(a)&&a[L].A===o&&t(o.p):(o.u&&(function c(u){if(u&&typeof u=="object"){var d=u[L];if(d){var p=d.t,f=d.k,h=d.R,m=d.i;if(m===4)tt(f,(function(C){C!==L&&(p[C]!==void 0||Rt(p,C)?h[C]||c(f[C]):(h[C]=!0,$e(d)))})),tt(p,(function(C){f[C]!==void 0||Rt(f,C)||(h[C]=!1,$e(d))}));else if(m===5){if(n(d)&&($e(d),h.length=!0),f.length<p.length)for(var b=f.length;b<p.length;b++)h[b]=!1;else for(var x=p.length;x<f.length;x++)h[x]=!0;for(var S=Math.min(f.length,p.length),E=0;E<S;E++)f.hasOwnProperty(E)||(h[E]=!0),h[E]===void 0&&c(f[E])}}}})(o.p[0]),t(o.p))},K:function(o){return o.i===4?r(o):n(o)}})}var vo,rr,Gn=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",hc=typeof Map<"u",mc=typeof Set<"u",bo=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Co=Gn?Symbol.for("immer-nothing"):((vo={})["immer-nothing"]=!0,vo),xo=Gn?Symbol.for("immer-draftable"):"__$immer_draftable",L=Gn?Symbol.for("immer-state"):"__$immer_state";var gc=""+Object.prototype.constructor,_t=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,wo=Object.getOwnPropertyDescriptors||function(e){var t={};return _t(e).forEach((function(r){t[r]=Object.getOwnPropertyDescriptor(e,r)})),t},Fn={},nr={get:function(e,t){if(t===L)return e;var r=Ue(e);if(!Rt(r,t))return(function(i,s,o){var a,l=go(s,o);return l?"value"in l?l.value:(a=l.get)===null||a===void 0?void 0:a.call(i.k):void 0})(e,r,t);var n=r[t];return e.I||!he(n)?n:n===Un(e.t,t)?($n(e),e.o[t]=jn(e.A.h,n,e)):n},has:function(e,t){return t in Ue(e)},ownKeys:function(e){return Reflect.ownKeys(Ue(e))},set:function(e,t,r){var n=go(Ue(e),t);if(n?.set)return n.set.call(e.k,r),!0;if(!e.P){var i=Un(Ue(e),t),s=i?.[L];if(s&&s.t===r)return e.o[t]=r,e.R[t]=!1,!0;if(Ao(r,i)&&(r!==void 0||Rt(e.t,t)))return!0;$n(e),$e(e)}return e.o[t]===r&&(r!==void 0||t in e.o)||Number.isNaN(r)&&Number.isNaN(e.o[t])||(e.o[t]=r,e.R[t]=!0),!0},deleteProperty:function(e,t){return Un(e.t,t)!==void 0||t in e.t?(e.R[t]=!1,$n(e),$e(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var r=Ue(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:n.enumerable,value:r[t]}},defineProperty:function(){oe(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){oe(12)}},tr={};tt(nr,(function(e,t){tr[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),tr.deleteProperty=function(e,t){return tr.set.call(this,e,t,void 0)},tr.set=function(e,t,r){return nr.set.call(this,e[0],t,r,e[0])};var yc=(function(){function e(r){var n=this;this.O=bo,this.D=!0,this.produce=function(i,s,o){if(typeof i=="function"&&typeof s!="function"){var a=s;s=i;var l=n;return function(m){var b=this;m===void 0&&(m=a);for(var x=arguments.length,S=Array(x>1?x-1:0),E=1;E<x;E++)S[E-1]=arguments[E];return l.produce(m,(function(C){var $;return($=s).call.apply($,[b,C].concat(S))}))}}var c;if(typeof s!="function"&&oe(6),o!==void 0&&typeof o!="function"&&oe(7),he(i)){var u=ho(n),d=jn(n,i,void 0),p=!0;try{c=s(d),p=!1}finally{p?Nr(u):Bn(u)}return typeof Promise<"u"&&c instanceof Promise?c.then((function(m){return In(u,o),kn(m,u)}),(function(m){throw Nr(u),m})):(In(u,o),kn(c,u))}if(!i||typeof i!="object"){if((c=s(i))===void 0&&(c=i),c===Co&&(c=void 0),n.D&&Kn(c,!0),o){var f=[],h=[];Ce("Patches").M(i,c,f,h),o(f,h)}return c}oe(21,i)},this.produceWithPatches=function(i,s){if(typeof i=="function")return function(c){for(var u=arguments.length,d=Array(u>1?u-1:0),p=1;p<u;p++)d[p-1]=arguments[p];return n.produceWithPatches(c,(function(f){return i.apply(void 0,[f].concat(d))}))};var o,a,l=n.produce(i,s,(function(c,u){o=c,a=u}));return typeof Promise<"u"&&l instanceof Promise?l.then((function(c){return[c,o,a]})):[l,o,a]},typeof r?.useProxies=="boolean"&&this.setUseProxies(r.useProxies),typeof r?.autoFreeze=="boolean"&&this.setAutoFreeze(r.autoFreeze)}var t=e.prototype;return t.createDraft=function(r){he(r)||oe(8),Te(r)&&(r=fc(r));var n=ho(this),i=jn(this,r,void 0);return i[L].C=!0,Bn(n),i},t.finishDraft=function(r,n){var i=r&&r[L],s=i.A;return In(s,n),kn(void 0,s)},t.setAutoFreeze=function(r){this.D=r},t.setUseProxies=function(r){r&&!bo&&oe(20),this.O=r},t.applyPatches=function(r,n){var i;for(i=n.length-1;i>=0;i--){var s=n[i];if(s.path.length===0&&s.op==="replace"){r=s.value;break}}i>-1&&(n=n.slice(i+1));var o=Ce("Patches").$;return Te(r)?o(r,n):this.produce(r,(function(a){return o(a,n)}))},e})(),J=new yc,vc=J.produce,jd=J.produceWithPatches.bind(J),Fd=J.setAutoFreeze.bind(J),Vd=J.setUseProxies.bind(J),Wd=J.applyPatches.bind(J),qd=J.createDraft.bind(J),Kd=J.finishDraft.bind(J),Ir=vc;function rt(e){"@babel/helpers - typeof";return rt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},rt(e)}function Oo(e,t){if(rt(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(rt(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function To(e){var t=Oo(e,"string");return rt(t)=="symbol"?t:t+""}function Ro(e,t,r){return(t=To(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Yn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?_o(Object(r),!0).forEach(function(n){Ro(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_o(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function V(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var Lo=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})(),Xn=function(){return Math.random().toString(36).substring(7).split("").join(".")},kr={INIT:"@@redux/INIT"+Xn(),REPLACE:"@@redux/REPLACE"+Xn(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Xn()}};function bc(e){if(typeof e!="object"||e===null)return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function Qn(e,t,r){var n;if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(V(0));if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(V(1));return r(Qn)(e,t)}if(typeof e!="function")throw new Error(V(2));var i=e,s=t,o=[],a=o,l=!1;function c(){a===o&&(a=o.slice())}function u(){if(l)throw new Error(V(3));return s}function d(m){if(typeof m!="function")throw new Error(V(4));if(l)throw new Error(V(5));var b=!0;return c(),a.push(m),function(){if(b){if(l)throw new Error(V(6));b=!1,c();var S=a.indexOf(m);a.splice(S,1),o=null}}}function p(m){if(!bc(m))throw new Error(V(7));if(typeof m.type>"u")throw new Error(V(8));if(l)throw new Error(V(9));try{l=!0,s=i(s,m)}finally{l=!1}for(var b=o=a,x=0;x<b.length;x++){var S=b[x];S()}return m}function f(m){if(typeof m!="function")throw new Error(V(10));i=m,p({type:kr.REPLACE})}function h(){var m,b=d;return m={subscribe:function(S){if(typeof S!="object"||S===null)throw new Error(V(11));function E(){S.next&&S.next(u())}E();var C=b(E);return{unsubscribe:C}}},m[Lo]=function(){return this},m}return p({type:kr.INIT}),n={dispatch:p,subscribe:d,getState:u,replaceReducer:f},n[Lo]=h,n}function xc(e){Object.keys(e).forEach(function(t){var r=e[t],n=r(void 0,{type:kr.INIT});if(typeof n>"u")throw new Error(V(12));if(typeof r(void 0,{type:kr.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(V(13))})}function Po(e){for(var t=Object.keys(e),r={},n=0;n<t.length;n++){var i=t[n];typeof e[i]=="function"&&(r[i]=e[i])}var s=Object.keys(r),o,a;try{xc(r)}catch(l){a=l}return function(c,u){if(c===void 0&&(c={}),a)throw a;if(0)var d;for(var p=!1,f={},h=0;h<s.length;h++){var m=s[h],b=r[m],x=c[m],S=b(x,u);if(typeof S>"u"){var E=u&&u.type;throw new Error(V(14))}f[m]=S,p=p||S!==x}return p=p||s.length!==Object.keys(c).length,p?f:c}}function Pt(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.length===0?function(n){return n}:t.length===1?t[0]:t.reduce(function(n,i){return function(){return n(i.apply(void 0,arguments))}})}function No(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(n){return function(){var i=n.apply(void 0,arguments),s=function(){throw new Error(V(15))},o={getState:i.getState,dispatch:function(){return s.apply(void 0,arguments)}},a=t.map(function(l){return l(o)});return s=Pt.apply(void 0,a)(i.dispatch),Yn(Yn({},i),{},{dispatch:s})}}}function Do(e){var t=function(n){var i=n.dispatch,s=n.getState;return function(o){return function(a){return typeof a=="function"?a(i,s,e):o(a)}}};return t}var Mo=Do();Mo.withExtraArgument=Do;var Jn=Mo;var Ho=(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(n[s]=i[s])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),Sc=function(e,t){var r={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},n,i,s,o;return o={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function a(c){return function(u){return l([c,u])}}function l(c){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,i&&(s=c[0]&2?i.return:c[0]?i.throw||((s=i.return)&&s.call(i),0):i.next)&&!(s=s.call(i,c[1])).done)return s;switch(i=0,s&&(c=[c[0]&2,s.value]),c[0]){case 0:case 1:s=c;break;case 4:return r.label++,{value:c[1],done:!1};case 5:r.label++,i=c[1],c=[0];continue;case 7:c=r.ops.pop(),r.trys.pop();continue;default:if(s=r.trys,!(s=s.length>0&&s[s.length-1])&&(c[0]===6||c[0]===2)){r=0;continue}if(c[0]===3&&(!s||c[1]>s[0]&&c[1]<s[3])){r.label=c[1];break}if(c[0]===6&&r.label<s[1]){r.label=s[1],s=c;break}if(s&&r.label<s[2]){r.label=s[2],r.ops.push(c);break}s[2]&&r.ops.pop(),r.trys.pop();continue}c=t.call(e,r)}catch(u){c=[6,u],i=0}finally{n=s=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}},Nt=function(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e},Ac=Object.defineProperty,Ec=Object.defineProperties,Cc=Object.getOwnPropertyDescriptors,Io=Object.getOwnPropertySymbols,wc=Object.prototype.hasOwnProperty,Oc=Object.prototype.propertyIsEnumerable,ko=function(e,t,r){return t in e?Ac(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r},He=function(e,t){for(var r in t||(t={}))wc.call(t,r)&&ko(e,r,t[r]);if(Io)for(var n=0,i=Io(t);n<i.length;n++){var r=i[n];Oc.call(t,r)&&ko(e,r,t[r])}return e},Zn=function(e,t){return Ec(e,Cc(t))},Tc=function(e,t,r){return new Promise(function(n,i){var s=function(l){try{a(r.next(l))}catch(c){i(c)}},o=function(l){try{a(r.throw(l))}catch(c){i(c)}},a=function(l){return l.done?n(l.value):Promise.resolve(l.value).then(s,o)};a((r=r.apply(e,t)).next())})};var Rc=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Pt:Pt.apply(null,arguments)},up=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(e){return e}};function _c(e){if(typeof e!="object"||e===null)return!1;var t=Object.getPrototypeOf(e);if(t===null)return!0;for(var r=t;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return t===r}function Be(e,t){function r(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];if(t){var s=t.apply(void 0,n);if(!s)throw new Error("prepareAction did not return an object");return He(He({type:e,payload:s.payload},"meta"in s&&{meta:s.meta}),"error"in s&&{error:s.error})}return{type:e,payload:n[0]}}return r.toString=function(){return""+e},r.type=e,r.match=function(n){return n.type===e},r}var Lc=(function(e){Ho(t,e);function t(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var i=e.apply(this,r)||this;return Object.setPrototypeOf(i,t.prototype),i}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return e.prototype.concat.apply(this,r)},t.prototype.prepend=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return r.length===1&&Array.isArray(r[0])?new(t.bind.apply(t,Nt([void 0],r[0].concat(this)))):new(t.bind.apply(t,Nt([void 0],r.concat(this))))},t})(Array),Pc=(function(e){Ho(t,e);function t(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var i=e.apply(this,r)||this;return Object.setPrototypeOf(i,t.prototype),i}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return e.prototype.concat.apply(this,r)},t.prototype.prepend=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return r.length===1&&Array.isArray(r[0])?new(t.bind.apply(t,Nt([void 0],r[0].concat(this)))):new(t.bind.apply(t,Nt([void 0],r.concat(this))))},t})(Array);function ri(e){return he(e)?Ir(e,function(){}):e}function Nc(e){return typeof e=="boolean"}function Dc(){return function(t){return Mc(t)}}function Mc(e){e===void 0&&(e={});var t=e.thunk,r=t===void 0?!0:t,n=e.immutableCheck,i=n===void 0?!0:n,s=e.serializableCheck,o=s===void 0?!0:s,a=e.actionCreatorCheck,l=a===void 0?!0:a,c=new Lc;if(r&&(Nc(r)?c.push(Jn):c.push(Jn.withExtraArgument(r.extraArgument))),0){if(i)var u;if(o)var d;if(l)var p}return c}var ei=!0;function Bo(e){var t=Dc(),r=e||{},n=r.reducer,i=n===void 0?void 0:n,s=r.middleware,o=s===void 0?t():s,a=r.devTools,l=a===void 0?!0:a,c=r.preloadedState,u=c===void 0?void 0:c,d=r.enhancers,p=d===void 0?void 0:d,f;if(typeof i=="function")f=i;else if(_c(i))f=Po(i);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var h=o;if(typeof h=="function"&&(h=h(t),!ei&&!Array.isArray(h)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!ei&&h.some(function(C){return typeof C!="function"}))throw new Error("each middleware provided to configureStore must be a function");var m=No.apply(void 0,h),b=Pt;l&&(b=Rc(He({trace:!ei},typeof l=="object"&&l)));var x=new Pc(m),S=x;Array.isArray(p)?S=Nt([m],p):typeof p=="function"&&(S=p(x));var E=b.apply(void 0,S);return Qn(f,u,E)}function jo(e){var t={},r=[],n,i={addCase:function(s,o){var a=typeof s=="string"?s:s.type;if(!a)throw new Error("`builder.addCase` cannot be called with an empty action type");if(a in t)throw new Error("`builder.addCase` cannot be called with two reducers for the same action type");return t[a]=o,i},addMatcher:function(s,o){return r.push({matcher:s,reducer:o}),i},addDefaultCase:function(s){return n=s,i}};return e(i),[t,r,n]}function Ic(e){return typeof e=="function"}function kc(e,t,r,n){r===void 0&&(r=[]);var i=typeof t=="function"?jo(t):[t,r,n],s=i[0],o=i[1],a=i[2],l;if(Ic(e))l=function(){return ri(e())};else{var c=ri(e);l=function(){return c}}function u(d,p){d===void 0&&(d=l());var f=Nt([s[p.type]],o.filter(function(h){var m=h.matcher;return m(p)}).map(function(h){var m=h.reducer;return m}));return f.filter(function(h){return!!h}).length===0&&(f=[a]),f.reduce(function(h,m){if(m)if(Te(h)){var b=h,x=m(b,p);return x===void 0?h:x}else{if(he(h))return Ir(h,function(S){return m(S,p)});var x=m(h,p);if(x===void 0){if(h===null)return h;throw Error("A case reducer on a non-draftable value must not return undefined")}return x}return h},d)}return u.getInitialState=l,u}function Uc(e,t){return e+"/"+t}function Fo(e){var t=e.name;if(!t)throw new Error("`name` is a required option for createSlice");typeof process<"u";var r=typeof e.initialState=="function"?e.initialState:ri(e.initialState),n=e.reducers||{},i=Object.keys(n),s={},o={},a={};i.forEach(function(u){var d=n[u],p=Uc(t,u),f,h;"reducer"in d?(f=d.reducer,h=d.prepare):f=d,s[u]=f,o[p]=f,a[u]=h?Be(p,h):Be(p)});function l(){var u=typeof e.extraReducers=="function"?jo(e.extraReducers):[e.extraReducers],d=u[0],p=d===void 0?{}:d,f=u[1],h=f===void 0?[]:f,m=u[2],b=m===void 0?void 0:m,x=He(He({},p),o);return kc(r,function(S){for(var E in x)S.addCase(E,x[E]);for(var C=0,$=h;C<$.length;C++){var M=$[C];S.addMatcher(M.matcher,M.reducer)}b&&S.addDefaultCase(b)})}var c;return{name:t,reducer:function(u,d){return c||(c=l()),c(u,d)},actions:a,caseReducers:s,getInitialState:function(){return c||(c=l()),c.getInitialState()}}}var $c="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Hc=function(e){e===void 0&&(e=21);for(var t="",r=e;r--;)t+=$c[Math.random()*64|0];return t},Bc=["name","message","stack","code"],ti=(function(){function e(t,r){this.payload=t,this.meta=r}return e})(),Uo=(function(){function e(t,r){this.payload=t,this.meta=r}return e})(),jc=function(e){if(typeof e=="object"&&e!==null){for(var t={},r=0,n=Bc;r<n.length;r++){var i=n[r];typeof e[i]=="string"&&(t[i]=e[i])}return t}return{message:String(e)}},hp=(function(){function e(t,r,n){var i=Be(t+"/fulfilled",function(u,d,p,f){return{payload:u,meta:Zn(He({},f||{}),{arg:p,requestId:d,requestStatus:"fulfilled"})}}),s=Be(t+"/pending",function(u,d,p){return{payload:void 0,meta:Zn(He({},p||{}),{arg:d,requestId:u,requestStatus:"pending"})}}),o=Be(t+"/rejected",function(u,d,p,f,h){return{payload:f,error:(n&&n.serializeError||jc)(u||"Rejected"),meta:Zn(He({},h||{}),{arg:p,requestId:d,rejectedWithValue:!!f,requestStatus:"rejected",aborted:u?.name==="AbortError",condition:u?.name==="ConditionError"})}}),a=!1,l=typeof AbortController<"u"?AbortController:(function(){function u(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return u.prototype.abort=function(){},u})();function c(u){return function(d,p,f){var h=n?.idGenerator?n.idGenerator(u):Hc(),m=new l,b,x=!1;function S(C){b=C,m.abort()}var E=(function(){return Tc(this,null,function(){var C,$,M,_e,cn,Le,X;return Sc(this,function(te){switch(te.label){case 0:return te.trys.push([0,4,,5]),_e=(C=n?.condition)==null?void 0:C.call(n,u,{getState:p,extra:f}),Vc(_e)?[4,_e]:[3,2];case 1:_e=te.sent(),te.label=2;case 2:if(_e===!1||m.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return x=!0,cn=new Promise(function(Q,qe){return m.signal.addEventListener("abort",function(){return qe({name:"AbortError",message:b||"Aborted"})})}),d(s(h,u,($=n?.getPendingMeta)==null?void 0:$.call(n,{requestId:h,arg:u},{getState:p,extra:f}))),[4,Promise.race([cn,Promise.resolve(r(u,{dispatch:d,getState:p,extra:f,requestId:h,signal:m.signal,abort:S,rejectWithValue:function(Q,qe){return new ti(Q,qe)},fulfillWithValue:function(Q,qe){return new Uo(Q,qe)}})).then(function(Q){if(Q instanceof ti)throw Q;return Q instanceof Uo?i(Q.payload,h,u,Q.meta):i(Q,h,u)})])];case 3:return M=te.sent(),[3,5];case 4:return Le=te.sent(),M=Le instanceof ti?o(null,h,u,Le.payload,Le.meta):o(Le,h,u),[3,5];case 5:return X=n&&!n.dispatchConditionRejection&&o.match(M)&&M.meta.condition,X||d(M),[2,M]}})})})();return Object.assign(E,{abort:S,requestId:h,arg:u,unwrap:function(){return E.then(Fc)}})}}return Object.assign(c,{pending:s,rejected:o,fulfilled:i,typePrefix:t})}return e.withTypes=function(){return e},e})();function Fc(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function Vc(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var Vo="listener",Wo="completed",qo="cancelled",mp="task-"+qo,gp="task-"+Wo,yp=Vo+"-"+qo,vp=Vo+"-"+Wo;var ni="listenerMiddleware";var bp=Be(ni+"/add"),xp=Be(ni+"/removeAll"),Sp=Be(ni+"/remove");var $o,Ap=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(e){return($o||($o=Promise.resolve())).then(e).catch(function(t){return setTimeout(function(){throw t},0)})},Wc=function(e){return function(t){setTimeout(t,e)}},Ep=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Wc(10);Eo();var qc=Or(Symbol("withEventBus"),function(e,t){return class extends e{constructor(){super(...arguments),this.eventBus=t??document.createElement("span")}addEventListener(r,n,i){this.eventBus.addEventListener(r,n,i)}dispatchEvent(r){return this.eventBus.dispatchEvent(r)}removeEventListener(r,n,i){this.eventBus.removeEventListener(r,n,i)}}}),Ur=class extends qc(Object){};window.ftReduxStores||(window.ftReduxStores={});var Ko=class e extends Ur{static get(t){var r;let n=typeof t=="string"?t:t.name,i=typeof t=="string"?void 0:t,s=window.ftReduxStores[n];if(Pr(s))return s;if(i==null)return;let o=Fo({...i,reducers:(r=i.reducers)!==null&&r!==void 0?r:{}}),a=Bo({reducer:(l,c)=>{if(c.type==="CLEAR_FT_REDUX_STORE"){let u=Jt(o.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 o.reducer(l,c)}});return window.ftReduxStores[i.name]=new e(o,a,i.eventBus)}constructor(t,r,n){super(),this.reduxSlice=t,this.reduxStore=r,this.isFtReduxStore=!0,this.commands=new Tr;let i=s=>s!=null?JSON.parse(JSON.stringify(s)):s;this.actions=new Proxy(this.reduxSlice.actions,{get:(s,o,a)=>{let l=o,c=s[l];return c?(...u)=>{let d=c(...u.map(i));return this.reduxStore.dispatch(d),d}:u=>{this.setState({[l]:i(u)})}}}),this.eventBus=n??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:[]})}clearKeeping(...t){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:t})}setState(t){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(t).join("_"),overwrites:t})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(t){throw new Error("Not implemented yet.")}subscribe(t){return this.reduxStore.subscribe(t)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};var $r=class{static format(t,r,n,i,s){return window.moment?window.moment(t).locale(r).format(this.getMomentDateFormat(n,i,!!s)):this.getIntlDateTime(t,r,n,i,!!s)}static getMomentDateFormat(t,r,n){return n?"LT":t?r?"lll":"ll":r?"L LT":"L"}static getIntlDateTime(t,r,n,i,s){let o=typeof t=="string"?new Date(t):t,a=new Intl.DateTimeFormat(r,{dateStyle:n?"medium":"short"}).format(o),l=new Intl.DateTimeFormat(r,{timeStyle:"short"}).format(o);return s?l:i?`${a} ${l}`:a}static getTimezoneAsString(){let t=n=>String(Math.floor(n)).padStart(2,"0"),r=new Date().getTimezoneOffset();return`${r<0?"+":"-"}${t(Math.abs(r)/60)}:${t(Math.abs(r)%60)}`}};var Hr=g(w()),Kc="ft-app-info",Dt=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:t})}};Dt.eventName="authentication-change";var ir=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:t})}};ir.eventName="ui-locale-changed";var zc={session:(e,t)=>{(0,Hr.deepEqual)(e.session,t.payload)||(e.session=t.payload,setTimeout(()=>T.dispatchEvent(new Dt(t.payload)),0))}},T=Hr.FtReduxStore.get({name:Kc,reducers:zc,initialState:{baseUrl:void 0,apiIntegrationIdentifier:void 0,apiIntegrationAppVersion:void 0,uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],availableContentLocales:[],defaultLocales:void 0,searchInAllLanguagesAllowed:!1,searchLanguageSetsUiLanguage:!1,uiLanguageSetsSearchLanguage:!1,uiLanguageSetsReaderLanguage:!1,metadataConfiguration:void 0,privacyPolicyConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1,authenticationRequired:!1}});var zo=g(w()),Br=function(e,t,r,n){var i=arguments.length,s=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},Qp=(0,zo.applyMixinOnce)(Symbol("withDateFormat"),function(e){class t extends e{constructor(...n){super(n),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(T)}dateFormatOptionsChanged(n){return n.has("metadataDescriptors")||n.has("useLongDateFormat")||n.has("useDateTimeFormat")||n.has("uiLocale")}getDateFormatter(n){var i,s;return((s=(i=this.metadataDescriptors.find(a=>a.key===n))===null||i===void 0?void 0:i.date)!==null&&s!==void 0?s:!1)?a=>$r.format(a,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return Br([(0,ii.property)({type:Boolean})],t.prototype,"useLongDateFormat",void 0),Br([(0,ii.property)({type:Boolean})],t.prototype,"useDateTimeFormat",void 0),Br([Mn({store:T.name,selector:r=>{var n,i;return(i=(n=r.metadataConfiguration)===null||n===void 0?void 0:n.descriptors)!==null&&i!==void 0?i:[]}})],t.prototype,"metadataDescriptors",void 0),Br([Mn({store:T.name})],t.prototype,"uiLocale",void 0),t});var Go;(function(e){e.black="black",e.green="green",e.blue="blue",e.purple="purple",e.red="red",e.orange="orange",e.yellow="yellow"})(Go||(Go={}));var Yo;(function(e){e.OFFICIAL="OFFICIAL",e.PERSONAL="PERSONAL",e.SHARED="SHARED"})(Yo||(Yo={}));var Xo;(function(e){e.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",e.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",e.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",e.PERSONAL_BOOK="PERSONAL_BOOK",e.ATTACHMENT="ATTACHMENT",e.RESOURCE="RESOURCE",e.HTML_PACKAGE="HTML_PACKAGE"})(Xo||(Xo={}));var Qo;(function(e){e.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",e.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",e.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",e.PERSONAL_BOOK="PERSONAL_BOOK",e.ATTACHMENT="ATTACHMENT",e.RESOURCE="RESOURCE",e.HTML_PACKAGE="HTML_PACKAGE"})(Qo||(Qo={}));var Jo;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(Jo||(Jo={}));var Zo;(function(e){e.VALUE="VALUE",e.DATE="DATE",e.RANGE="RANGE"})(Zo||(Zo={}));var ea;(function(e){e.OFFICIAL="OFFICIAL",e.AI="AI"})(ea||(ea={}));var ta;(function(e){e.BOOKMARK__CREATE="BOOKMARK__CREATE",e.BOOKMARK__DELETE="BOOKMARK__DELETE",e.CASE_DEFLECTION__START="CASE_DEFLECTION__START",e.CASE_DEFLECTION__OPEN_TICKET="CASE_DEFLECTION__OPEN_TICKET",e.CASE_DEFLECTION__RATE="CASE_DEFLECTION__RATE",e.CHATBOT__RATE="CHATBOT__RATE",e.COLLECTION__CREATE="COLLECTION__CREATE",e.COLLECTION__UPDATE="COLLECTION__UPDATE",e.COLLECTION__DELETE="COLLECTION__DELETE",e.CUSTOM_EVENT__TRIGGER="CUSTOM_EVENT__TRIGGER",e.DOCUMENT__ON_DEMAND_TRANSLATE="DOCUMENT__ON_DEMAND_TRANSLATE",e.DOCUMENT__DOWNLOAD="DOCUMENT__DOWNLOAD",e.DOCUMENT__PRINT="DOCUMENT__PRINT",e.DOCUMENT__PROCESS="DOCUMENT__PROCESS",e.DOCUMENT__RATE="DOCUMENT__RATE",e.DOCUMENT__SEARCH="DOCUMENT__SEARCH",e.DOCUMENT__START_DISPLAY="DOCUMENT__START_DISPLAY",e.DOCUMENT__UNRATE="DOCUMENT__UNRATE",e.FEEDBACK__SEND="FEEDBACK__SEND",e.AI__COMPLETED_QUERY="AI__COMPLETED_QUERY",e.AI__RATE="AI__RATE",e.AI_CASE_DEFLECTION__START="AI_CASE_DEFLECTION__START",e.AI_CASE_DEFLECTION__OPEN_TICKET="AI_CASE_DEFLECTION__OPEN_TICKET",e.KHUB__PROCESS="KHUB__PROCESS",e.KHUB__SEARCH="KHUB__SEARCH",e.LABELS__DOWNLOAD="LABELS__DOWNLOAD",e.LINK__SHARE="LINK__SHARE",e.PAGE__DISPLAY="PAGE__DISPLAY",e.PERSONAL_BOOK__CREATE="PERSONAL_BOOK__CREATE",e.PERSONAL_BOOK__DELETE="PERSONAL_BOOK__DELETE",e.PERSONAL_BOOK__UPDATE="PERSONAL_BOOK__UPDATE",e.PERSONAL_TOPIC__CREATE="PERSONAL_TOPIC__CREATE",e.PERSONAL_TOPIC__UPDATE="PERSONAL_TOPIC__UPDATE",e.PERSONAL_TOPIC__DELETE="PERSONAL_TOPIC__DELETE",e.SAVED_SEARCH__CREATE="SAVED_SEARCH__CREATE",e.SAVED_SEARCH__DELETE="SAVED_SEARCH__DELETE",e.SAVED_SEARCH__UPDATE="SAVED_SEARCH__UPDATE",e.SEARCH_PAGE__SELECT="SEARCH_PAGE__SELECT",e.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU="SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU",e.TOPIC__AI_TRANSLATE="TOPIC__AI_TRANSLATE",e.TOPIC__RATE="TOPIC__RATE",e.TOPIC__START_DISPLAY="TOPIC__START_DISPLAY",e.TOPIC__UNRATE="TOPIC__UNRATE",e.USER__LOGIN="USER__LOGIN",e.USER__LOGOUT="USER__LOGOUT",e.HEARTBEAT="HEARTBEAT"})(ta||(ta={}));var ra;(function(e){e.STANDARD="STANDARD",e.STRUCTURAL="STRUCTURAL"})(ra||(ra={}));var na;(function(e){e.THIRD_PARTY="THIRD_PARTY",e.OFF_THE_GRID="OFF_THE_GRID",e.CONTENT_PACKAGER="CONTENT_PACKAGER",e.PAGES="PAGES",e.DESIGNED_READER="DESIGNED_READER"})(na||(na={}));var ia;(function(e){e.HOMEPAGE="HOMEPAGE",e.CUSTOM="CUSTOM",e.HEADER="HEADER",e.READER="READER",e.TOPIC_TEMPLATE="TOPIC_TEMPLATE",e.SEARCH="SEARCH",e.SEARCH_RESULT="SEARCH_RESULT",e.SEARCH_ANNOUNCEMENT="SEARCH_ANNOUNCEMENT",e.LINK_PREVIEW="LINK_PREVIEW",e.UD_VIEWER="UD_VIEWER",e.ASSET_VIEWER="ASSET_VIEWER"})(ia||(ia={}));var sa;(function(e){e.CLASSIC="CLASSIC",e.CUSTOM="CUSTOM",e.DESIGNER="DESIGNER"})(sa||(sa={}));var oa;(function(e){e.AND="AND",e.OR="OR",e.MONOVALUED="MONOVALUED"})(oa||(oa={}));var aa;(function(e){e.NONE="NONE",e.ALPHABET="ALPHABET",e.VERSION="VERSION"})(aa||(aa={}));var la;(function(e){e.STARS="STARS",e.LIKE="LIKE",e.DICHOTOMOUS="DICHOTOMOUS",e.NO_RATING="NO_RATING"})(la||(la={}));var ca;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR",e.CUSTOM="CUSTOM"})(ca||(ca={}));var si;(function(e){e.OPTIONAL="OPTIONAL",e.MANDATORY="MANDATORY"})(si||(si={}));var ua;(function(e){e.ASC="ASC",e.DESC="DESC"})(ua||(ua={}));var da;(function(e){e.ALPHA="ALPHA",e.NATURAL="NATURAL"})(da||(da={}));var oi;(function(e){e.EVERYWHERE="EVERYWHERE",e.TITLE_ONLY="TITLE_ONLY",e.NONE="NONE"})(oi||(oi={}));var pa;(function(e){e.ARTICLE="ARTICLE",e.BOOK="BOOK",e.SHARED_BOOK="SHARED_BOOK",e.HTML_PACKAGE="HTML_PACKAGE"})(pa||(pa={}));var fa;(function(e){e.FLUIDTOPICS="FLUIDTOPICS",e.EXTERNAL="EXTERNAL"})(fa||(fa={}));var ha;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC",e.PERSONAL_BOOK="PERSONAL_BOOK",e.SHARED_BOOK="SHARED_BOOK",e.HTML_PACKAGE="HTML_PACKAGE"})(ha||(ha={}));var ma;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(ma||(ma={}));var ga;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC",e.HTML_PACKAGE="HTML_PACKAGE",e.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(ga||(ga={}));var ai;(function(e){e.DEFAULT="DEFAULT",e.DOCUMENTS="DOCUMENTS",e.ALL_TOPICS="ALL_TOPICS",e.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(ai||(ai={}));var ya;(function(e){e.PLAIN_TEXT="PLAIN_TEXT",e.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",e.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(ya||(ya={}));var U;(function(e){e.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",e.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",e.HTML_EXPORT_USER="HTML_EXPORT_USER",e.PDF_EXPORT_USER="PDF_EXPORT_USER",e.SAVED_SEARCH_USER="SAVED_SEARCH_USER",e.COLLECTION_USER="COLLECTION_USER",e.OFFLINE_USER="OFFLINE_USER",e.ANALYTICS_USER="ANALYTICS_USER",e.BETA_USER="BETA_USER",e.DEBUG_USER="DEBUG_USER",e.PRINT_USER="PRINT_USER",e.RATING_USER="RATING_USER",e.FEEDBACK_USER="FEEDBACK_USER",e.GENERATIVE_AI_USER="GENERATIVE_AI_USER",e.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_USER",e.CONTENT_PUBLISHER="CONTENT_PUBLISHER",e.BEHAVIOR_DATA_USER="BEHAVIOR_DATA_USER",e.ANNOUNCEMENT_ADMIN="ANNOUNCEMENT_ADMIN",e.KHUB_ADMIN="KHUB_ADMIN",e.USERS_ADMIN="USERS_ADMIN",e.PORTAL_ADMIN="PORTAL_ADMIN",e.ADMIN="ADMIN"})(U||(U={}));var ae;(function(e){e.SEARCHES="SEARCHES",e.BOOKMARKS="BOOKMARKS",e.BOOKS="BOOKS",e.COLLECTIONS="COLLECTIONS"})(ae||(ae={}));var va;(function(e){e.UNAUTHENTICATED="UNAUTHENTICATED",e.USER_INCOMPLETE="USER_INCOMPLETE",e.MFA_REQUIRED="MFA_REQUIRED",e.AUTHENTICATED="AUTHENTICATED"})(va||(va={}));var ba;(function(e){e.UNREACHABLE="UNREACHABLE",e.UNAUTHORIZED="UNAUTHORIZED",e.FORBIDDEN="FORBIDDEN",e.INCOMPATIBLE="INCOMPATIBLE",e.FAILED="FAILED",e.OK="OK"})(ba||(ba={}));var xa;(function(e){e.VALID="VALID",e.INVALID="INVALID"})(xa||(xa={}));var Sa;(function(e){e.INACCURATE="INACCURATE",e.INCOMPLETE="INCOMPLETE",e.OFF_TOPIC="OFF_TOPIC",e.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",e.SUMMARY="SUMMARY",e.SEMANTIC_SEARCH="SEMANTIC_SEARCH",e.CHATBOT_INSTRUCTIONS="CHATBOT_INSTRUCTIONS",e.DOCUMENTATION="DOCUMENTATION",e.OTHER="OTHER"})(Sa||(Sa={}));var Aa;(function(e){e.INACCURATE="INACCURATE",e.INCOMPLETE="INCOMPLETE",e.OFF_TOPIC="OFF_TOPIC",e.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",e.SLOW="SLOW",e.OTHER="OTHER"})(Aa||(Aa={}));var Ea;(function(e){e.JSON="JSON",e.TEXT="TEXT"})(Ea||(Ea={}));var Ca;(function(e){e.JSON="JSON",e.TEXT="TEXT"})(Ca||(Ca={}));var wa;(function(e){e.TEXT="TEXT",e.HTML="HTML"})(wa||(wa={}));var Oa;(function(e){e.IN_PROGRESS="IN_PROGRESS",e.ERROR="ERROR",e.DONE="DONE"})(Oa||(Oa={}));var Ta;(function(e){e.HTML="HTML",e.MARKDOWN="MARKDOWN"})(Ta||(Ta={}));var Ra;(function(e){e.SOURCES="SOURCES",e.ENRICH_AND_CLEAN="ENRICH_AND_CLEAN",e.VOCABULARIES="VOCABULARIES",e.METADATA="METADATA",e.PRETTY_URL="PRETTY_URL",e.ACCESS_RULE="ACCESS_RULE",e.DESIGNED_PAGES="DESIGNED_PAGES",e.THEME_STUDIO="THEME_STUDIO",e.PORTAL_GENERAL="PORTAL_GENERAL",e.ASSETS="ASSETS",e.CODE_LIBRARY="CODE_LIBRARY",e.THEME="THEME",e.CONTENT_STYLES="CONTENT_STYLES",e.HOMEPAGE="HOMEPAGE",e.CLASSIC_SEARCH_PAGE="CLASSIC_SEARCH_PAGE",e.CLASSIC_READER_PAGE="CLASSIC_READER_PAGE",e.PORTAL_METADATA="PORTAL_METADATA",e.LANGUAGES="LANGUAGES",e.PRINT_TEMPLATES="PRINT_TEMPLATES",e.OFFLINE="OFFLINE",e.CUSTOM_JS="CUSTOM_JS",e.CONFIDENTIALITY="CONFIDENTIALITY",e.NOTIFICATIONS="NOTIFICATIONS"})(Ra||(Ra={}));var _a;(function(e){e.MAP="MAP",e.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(_a||(_a={}));var Gc={[U.PERSONAL_BOOK_SHARE_USER]:[U.PERSONAL_BOOK_USER],[U.HTML_EXPORT_USER]:[U.PERSONAL_BOOK_USER],[U.PDF_EXPORT_USER]:[U.PERSONAL_BOOK_USER],[U.KHUB_ADMIN]:[U.CONTENT_PUBLISHER],[U.ADMIN]:[U.KHUB_ADMIN,U.USERS_ADMIN,U.PORTAL_ADMIN,U.BEHAVIOR_DATA_USER],[U.GENERATIVE_AI_EXPORT_USER]:[U.GENERATIVE_AI_USER]};function La(e,t){return e===t||(Gc[e]??[]).some(r=>La(r,t))}function Pa(e,t){return e==null?!1:(Array.isArray(e)?e:Array.isArray(e.roles)?e.roles:Array.isArray(e.profile?.roles)?e.profile.roles:[]).some(n=>La(n,t))}var qr=g(w());var li=g(w());var nt=class e{static get(t){let{baseUrl:r,apiIntegrationIdentifier:n}=T.getState(),i=t??n;if(r&&i&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(r,i,!0)}static await(t){return new Promise(r=>{let n=e.get(t);if(n)r(n);else{let i=T.subscribe(()=>{n=e.get(t),n&&(i(),r(n))})}})}};var Mt=class{constructor(t){this.overrideApi=t}get api(){var t;return(t=this.overrideApi)!==null&&t!==void 0?t:nt.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):nt.await()}};var Y=class extends Mt{constructor(t=!0,r){var n;super(r),this.sortObjectFields=(s,o)=>typeof o!="object"||o==null||Array.isArray(o)?o:Object.fromEntries(Object.entries(o).sort(([a],[l])=>a.localeCompare(l)));let i=this.constructor;i.commonCache=(n=i.commonCache)!==null&&n!==void 0?n:new li.CacheRegistry,this.cache=t?i.commonCache:new li.CacheRegistry}clearCache(){this.cache.clearAll()}hash(t){return String(Array.from(JSON.stringify(t,this.sortObjectFields)).reduce((r,n)=>0|31*r+n.charCodeAt(0),0))}};var jr=class extends Y{async listMySearches(){let{session:t}=T.getState();return Pa(t,U.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(t.profile.userId),300*1e3):[]}};var Fr=class extends Y{async listMyBookmarks(){let t=T.getState().session;return t?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(t.profile.userId),300*1e3):[]}};var Vr=class extends Y{constructor(){super(...arguments),this.CACHE_DURATION=180*1e3}async getUserAssetCount(t){if(this.isAuthenticated())return this.cache.get(`user-asset-count-${t}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/${t}`),this.CACHE_DURATION)}async getUserBookmarkCountByMap(t){if(this.isAuthenticated())return this.cache.get(`user-bookmark-count-by-map-${t}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/BOOKMARKS/${t}`),this.CACHE_DURATION)}isAuthenticated(){let t=T.getState().session;return!!t?.sessionAuthenticated}};var Wr=class extends Y{constructor(){super(...arguments),this.CACHE_DURATION=180*1e3}async getUserAssetLabels(){return this.isAuthenticated()?this.cache.get("user-asset-labels",async()=>(await this.awaitApi).get("/internal/api/webapp/user/assets/labels"),this.CACHE_DURATION):[]}isAuthenticated(){let t=T.getState().session;return!!t?.sessionAuthenticated}};var Yc="ft-user-assets",Xc={setAssetCount:(e,t)=>{let{userAssetType:r,count:n}=t.payload.assetCount;e.assetCounts.allAsset[r]=n},clearAssetCount:e=>{Object.values(ae).forEach(t=>{e.assetCounts.allAsset[t]=void 0})},setBookmarkCountByMap:(e,t)=>{let r=t.payload.mapId;e.assetCounts.bookmarkByMap[r]=t.payload.count},clearBookmarkCountByMap:e=>{e.assetCounts.bookmarkByMap={}},addAsset:(e,t)=>{let{assetType:r,mapId:n,asset:i}=t.payload;ui(e,r,[...ci(e,r),i]),Na(e,r,1,n),Da(e,i)},editAsset:(e,t)=>{let{assetType:r,asset:n}=t.payload;ui(e,r,ci(e,r).map(i=>i.id===n.id?n:i)),Da(e,n)},removeAsset:(e,t)=>{let{assetType:r,mapId:n,assetId:i}=t.payload;ui(e,r,ci(e,r).filter(s=>s.id!==i)),Na(e,r,-1,n)}},Ma={[ae.SEARCHES]:"savedSearches",[ae.BOOKMARKS]:"bookmarks",[ae.BOOKS]:void 0,[ae.COLLECTIONS]:void 0},ci=(e,t)=>{var r;let n=Ma[t];return n?(r=e[n])!==null&&r!==void 0?r:[]:[]},ui=(e,t,r)=>{let n=Ma[t];n&&(e[n]=r)},Na=(e,t,r,n)=>{let i=e.assetCounts.allAsset[t];if(i!==void 0&&(e.assetCounts.allAsset[t]=Math.max(0,i+r),t===ae.BOOKMARKS&&n)){let s=e.assetCounts.bookmarkByMap[n];e.assetCounts.bookmarkByMap[n]=Math.max(0,s+r)}},Da=(e,t)=>{let r=e.assetLabels.map(i=>i.title),n=t.labels.filter(i=>!r.includes(i)).map(i=>({title:i}));e.assetLabels.push(...n)},q=qr.FtReduxStore.get({name:Yc,reducers:Xc,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(ae).map(e=>[e,void 0])),bookmarkByMap:{}},assetLabels:[]}}),di=class{constructor(t=new Vr,r=new Wr){this.assetCountsService=t,this.assetLabelsService=r,this.currentSession=T.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Fr,this.savedSearchesService=new jr,T.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var t;let{session:r}=T.getState();(0,qr.deepEqual)((t=this.currentSession)===null||t===void 0?void 0:t.profile,r?.profile)||(this.currentSession=r,this.clearMySearches(),this.reloadBookmarks(),this.clearUserAssetCounts(),this.reloadAssetLabels())}clearUserAssetCounts(){this.assetCountsService.clearCache(),q.actions.clearAssetCount(),q.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),q.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),q.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let t=await this.savedSearchesService.listMySearches();q.actions.savedSearches(t)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let t=await this.assetLabelsService.getUserAssetLabels();q.actions.assetLabels(t)}async loadAssetCount(t){let r=await this.assetCountsService.getUserAssetCount(t);r&&q.getState().assetCounts.allAsset[t]!==r.count&&q.actions.setAssetCount({assetCount:r})}async loadBookmarkByMapId(t){let r=await this.assetCountsService.getUserBookmarkCountByMap(t);r&&q.getState().assetCounts.bookmarkByMap[t]!==r.count&&q.actions.setBookmarkCountByMap({count:r.count,mapId:t})}async reloadAssetCount(t){this.assetCountsService.clearCache();let r=Object.keys(q.getState().assetCounts.bookmarkByMap).length!==0;t===ae.BOOKMARKS&&r&&q.actions.clearBookmarkCountByMap(),q.getState().assetCounts.allAsset[t]!==void 0&&await this.loadAssetCount(t)}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var t;if(this.bookmarksAreUsed){let r=!((t=this.currentSession)===null||t===void 0)&&t.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;q.actions.bookmarks(r)}}},Qc=new di;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=Qc);var pi=class{addCommand(t,r=!1){T.commands.add(t,r)}consumeCommand(t){return T.commands.consume(t)}};window.FluidTopicsAppInfoStoreService=new pi;var le=g(w());var Ia,It=class extends CustomEvent{constructor(t){super("ft-i18n-context-loaded",{detail:t})}},Jc=Symbol("clearAfterUnitTest"),Kr=class extends(0,le.withEventBus)(Y){constructor(t){super(),this.messageContextProvider=t,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[Ia]=()=>{this.defaultMessages={},this.cache=new le.CacheRegistry,this.listeners={}},this.currentUiLocale=T.getState().uiLocale,T.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:t}=T.getState();this.currentUiLocale!==t&&(this.currentUiLocale=t,this.cache.clearAll(),this.notifyAll())}addContext(t){let r=t.name.toLowerCase();this.cache.setFinal(r,t),this.notify(r)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(t,r){var n;if(t=t.toLowerCase(),r&&Object.keys(r).length>0){let i={...(n=this.defaultMessages[t])!==null&&n!==void 0?n:{},...r};(0,le.deepEqual)(this.defaultMessages[t],i)||(this.defaultMessages[t]=i,await this.notify(t))}return this.fetchContext(t)}resolveContext(t){var r,n;return this.fetchContext(t),(n=(r=this.cache.getNow(t))===null||r===void 0?void 0:r.messages)!==null&&n!==void 0?n:{}}resolveRawMessage(t,r){let n=t.toLowerCase();return this.resolveContext(n)[r]}resolveMessage(t,r,...n){var i;let s=t.toLowerCase(),o=this.resolveContext(s);return new le.ParametrizedLabelResolver((i=this.defaultMessages[s])!==null&&i!==void 0?i:{},o).resolve(r,...n)}async fetchContext(t){let r=!this.cache.has(t),n;try{n=await this.cache.get(t,()=>this.messageContextProvider(this.currentUiLocale,t)),r&&await this.notify(t)}catch(i){!(i instanceof le.CanceledPromiseError)&&r&&console.error(i)}return n}subscribe(t,r){var n;return t=t.toLowerCase(),this.listeners[t]=(n=this.listeners[t])!==null&&n!==void 0?n:new Set,this.listeners[t].add(r),()=>{var i;return(i=this.listeners[t])===null||i===void 0?void 0:i.delete(r)}}async notifyAll(){let t=Object.keys(this.listeners);document.body.dispatchEvent(new It({loadedContexts:t})),this.dispatchEvent(new It({loadedContexts:t})),await Promise.all(t.map(r=>this.notify(r,!1)))}async notify(t,r=!0){r&&(document.body.dispatchEvent(new It({loadedContexts:[t]})),this.dispatchEvent(new It({loadedContexts:[t]}))),this.listeners[t]!=null&&await Promise.all([...this.listeners[t].values()].map(n=>(0,le.delay)(0).then(()=>n()).catch(()=>null)))}};Ia=Jc;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends Kr{constructor(){super(async(e,t)=>(await this.awaitApi).getFluidTopicsMessageContext(e,t))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends Kr{constructor(){super(async(e,t)=>(await this.awaitApi).getCustomMessageContext(e,t))}});var kt=window.FluidTopicsI18nService,zr=window.FluidTopicsCustomI18nService;var ka=g(w()),fi=class{highlightHtml(t,r,n){(0,ka.highlightHtml)(t,r,n)}};window.FluidTopicsHighlightHtmlService=new fi;var Ua=g(w());var hi=class{isDate(t){var r,n,i,s;return(s=(i=((n=(r=T.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&n!==void 0?n:[]).find(a=>a.key===t))===null||i===void 0?void 0:i.date)!==null&&s!==void 0?s:!1}format(t,r){var n,i,s,o;if(t==null)return"";try{return Ua.DateFormatter.format(t,(n=r?.locale)!==null&&n!==void 0?n:T.getState().uiLocale,(i=r?.longFormat)!==null&&i!==void 0?i:!1,(s=r?.withTime)!==null&&s!==void 0?s:!1,(o=r?.onlyTime)!==null&&o!==void 0?o:!1)}catch(a){throw console.error(`Date ${JSON.stringify(t)} is not valid`,a),a}}};window.FluidTopicsDateService=new hi;var $a=g(w());var sr=class{static get(t,r){var n,i;let s=T.getState(),{lang:o,region:a}=(i=(n=s.defaultLocales)===null||n===void 0?void 0:n.defaultContentLocale)!==null&&i!==void 0?i:{lang:"en",region:"US"};return new $a.SearchPlaceConverter(s.baseUrl,t??20,s.searchInAllLanguagesAllowed,r??`${o}-${a}`)}};var mi=class{urlToSearchRequest(t){return sr.get().parse(t)}searchRequestToUrl(t){return sr.get().serialize(t)}};window.FluidTopicsUrlService=new mi;var Re=g(w());var it=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:{currentItem:t}})}};it.eventName="change";var gi=class{itemName(t){return`fluid-topics-history-item-${t}`}get(t){let r=sessionStorage.getItem(this.itemName(t));return r?JSON.parse(r):void 0}set(t,r){sessionStorage.setItem(this.itemName(t),JSON.stringify(r))}},Ha=new gi;var Gr=class e extends Re.WithEventBus{static build(){return new e(window.history,Ha,()=>window.location,!1)}constructor(t,r,n,i){var s,o;super(),this.history=t,this.historyStorage=r,this.windowLocation=n,this.states=[],this.realPushState=t.pushState,this.realReplaceState=t.replaceState,this.initialIndex=(o=(s=t.state)===null||s===void 0?void 0:s.index)!==null&&o!==void 0?o:t.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(i)}setCurrentState(t,r=!1){let n=r&&this.currentIndex===t.index-1;this.currentState={...this.buildCurrentState(),...t},this.currentIndex=this.currentState.index,this.states[this.currentIndex]=this.currentState,n&&(this.states=this.states.slice(0,this.currentIndex+1)),this.historyStorage.set(this.currentIndex,this.currentState),(0,Re.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,window.location.href]),setTimeout(()=>this.dispatchEvent(new it(this.currentItem())),0)}installProxies(){let t=r=>(n,i,[s,o,a])=>{let l=r(),c={...l===this.currentIndex?this.currentState:void 0,...s,index:l,href:typeof a=="string"?a:(a??this.windowLocation()).href};n.apply(i,[c,o,a]),this.setCurrentState(c,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:t(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:t(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",t=>this.setCurrentState(t.state)),document.querySelector("title")==null&&document.head.append(document.createElement("title")),new MutationObserver(()=>this.updateCurrentState({title:document.title})).observe(document.querySelector("title"),{subtree:!0,characterData:!0,childList:!0})}initData(t){for(let r=this.history.length-1;r>=0;r--)t?this.states[r]=this.historyStorage.get(r):setTimeout(()=>this.states[r]=this.historyStorage.get(r),this.history.length-r)}updateCurrentState(t){var r;let n={...this.buildCurrentState(),...t,index:this.currentIndex,title:(r=t?.title)!==null&&r!==void 0?r:this.currentState.title};this.setCurrentState(n)}addHistoryChangeListener(t){this.addEventListener(it.eventName,t)}removeHistoryChangeListener(t){this.removeEventListener(it.eventName,t)}currentItem(){return(0,Re.deepCopy)(this.currentState)}back(){let t=this.previousDifferentMajorPosition();t>=0?this.history.go(t-this.currentIndex):this.currentIndex!==this.initialIndex?this.history.go(this.initialIndex-this.currentIndex):this.history.back()}backwardItem(){return(0,Re.deepCopy)(this.states[this.previousDifferentMajorPosition()])}backwardItemMatching(t){let r=this.states.filter(n=>!!n).filter(n=>n.index<this.currentIndex).reverse();return(0,Re.deepCopy)(r.find(n=>t(n)))}previousDifferentMajorPosition(){let t=this.currentIndex>0?this.currentIndex-1:0;for(;t>0&&!this.isDifferentMajorState(t);)t--;return t}forward(){let t=this.nextMajorPosition();t&&t<this.states.length?this.history.go(t-this.currentIndex):this.history.forward()}forwardItem(){let t=this.nextMajorPosition();if(t)return(0,Re.deepCopy)(this.states[t])}nextMajorPosition(){let t=this.currentIndex;if(!(t>=this.states.length)){do t++;while(t<this.states.length&&!this.isDifferentMajorState(t));return this.getHigherPositionInTheSameState(t)}}getHigherPositionInTheSameState(t){var r;let n=(r=this.states[t])===null||r===void 0?void 0:r.majorStateId;if(!n)return t;let i=t,s=t+1;for(;this.states.length>s&&!this.isDifferentMajorState(s,n);)this.hasState(s)&&(i=s),s++;return i}buildCurrentState(){var t,r;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(r=(t=this.history.state)===null||t===void 0?void 0:t.title)!==null&&r!==void 0?r:document.title}}hasState(t){return this.states[t]!=null}isDifferentMajorState(t,r){var n;if(!this.hasState(t))return!1;let i=r??this.currentState.majorStateId,s=(n=this.states[t])===null||n===void 0?void 0:n.majorStateId;return s==null||s!=i}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=Gr.build(),window.FluidTopicsHistoryService={currentItem:()=>window.FluidTopicsInternalHistoryService.currentItem(),back:()=>window.FluidTopicsInternalHistoryService.back(),forward:()=>window.FluidTopicsInternalHistoryService.forward(),backwardItem:()=>window.FluidTopicsInternalHistoryService.backwardItem(),forwardItem:()=>window.FluidTopicsInternalHistoryService.forwardItem(),backwardItemMatching:e=>window.FluidTopicsInternalHistoryService.backwardItemMatching(e),addHistoryChangeListener:e=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(e),removeHistoryChangeListener:e=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(e)});var Ba=g(H());var ja=Ba.css`
|
|
261
|
+
`;var Ts=["top","right","bottom","left"],Os=["start","end"],wn=Ts.reduce((e,t)=>e.concat(t,t+"-"+Os[0],t+"-"+Os[1]),[]),zt=Math.min,Me=Math.max,Gt=Math.round;var fe=e=>({x:e,y:e}),Bl={left:"right",right:"left",bottom:"top",top:"bottom"};function On(e,t,r){return Me(e,zt(t,r))}function yr(e,t){return typeof e=="function"?e(t):e}function St(e){return e.split("-")[0]}function Ie(e){return e.split("-")[1]}function Tn(e){return e==="x"?"y":"x"}function Rn(e){return e==="y"?"height":"width"}function vr(e){let t=e[0];return t==="t"||t==="b"?"y":"x"}function _n(e){return Tn(vr(e))}function Rs(e,t,r){r===void 0&&(r=!1);let n=Ie(e),i=_n(e),s=Rn(i),o=i==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(o=Cn(o)),[o,Cn(o)]}function _s(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}function Cn(e){let t=St(e);return Bl[t]+e.slice(t.length)}function jl(e){return{top:0,right:0,bottom:0,left:0,...e}}function Ls(e){return typeof e!="number"?jl(e):{top:e,right:e,bottom:e,left:e}}function Ye(e){let{x:t,y:r,width:n,height:i}=e;return{width:n,height:i,top:r,left:t,right:t+n,bottom:r+i,x:t,y:r}}function Ps(e,t,r){let{reference:n,floating:i}=e,s=vr(t),o=_n(t),a=Rn(o),l=St(t),c=s==="y",u=n.x+n.width/2-i.width/2,d=n.y+n.height/2-i.height/2,p=n[a]/2-i[a]/2,f;switch(l){case"top":f={x:u,y:n.y-i.height};break;case"bottom":f={x:u,y:n.y+n.height};break;case"right":f={x:n.x+n.width,y:d};break;case"left":f={x:n.x-i.width,y:d};break;default:f={x:n.x,y:n.y}}switch(Ie(t)){case"start":f[o]-=p*(r&&c?-1:1);break;case"end":f[o]+=p*(r&&c?-1:1);break}return f}async function Ns(e,t){var r;t===void 0&&(t={});let{x:n,y:i,platform:s,rects:o,elements:a,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:p=!1,padding:f=0}=yr(t,e),h=Ls(f),b=a[p?d==="floating"?"reference":"floating":d],x=Ye(await s.getClippingRect({element:(r=await(s.isElement==null?void 0:s.isElement(b)))==null||r?b:b.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,strategy:l})),A=d==="floating"?{x:n,y:i,width:o.floating.width,height:o.floating.height}:o.reference,E=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a.floating)),C=await(s.isElement==null?void 0:s.isElement(E))?await(s.getScale==null?void 0:s.getScale(E))||{x:1,y:1}:{x:1,y:1},$=Ye(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:A,offsetParent:E,strategy:l}):A);return{top:(x.top-$.top+h.top)/C.y,bottom:($.bottom-x.bottom+h.bottom)/C.y,left:(x.left-$.left+h.left)/C.x,right:($.right-x.right+h.right)/C.x}}var Fl=50,Ds=async(e,t,r)=>{let{placement:n="bottom",strategy:i="absolute",middleware:s=[],platform:o}=r,a=o.detectOverflow?o:{...o,detectOverflow:Ns},l=await(o.isRTL==null?void 0:o.isRTL(t)),c=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=Ps(c,n,l),p=n,f=0,h={};for(let m=0;m<s.length;m++){let b=s[m];if(!b)continue;let{name:x,fn:A}=b,{x:E,y:C,data:$,reset:M}=await A({x:u,y:d,initialPlacement:n,placement:p,strategy:i,middlewareData:h,rects:c,platform:a,elements:{reference:e,floating:t}});u=E??u,d=C??d,h[x]={...h[x],...$},M&&f<Fl&&(f++,typeof M=="object"&&(M.placement&&(p=M.placement),M.rects&&(c=M.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):M.rects),{x:u,y:d}=Ps(c,p,l)),m=-1)}return{x:u,y:d,placement:p,strategy:i,middlewareData:h}};function Vl(e,t,r){return(e?[...r.filter(i=>Ie(i)===e),...r.filter(i=>Ie(i)!==e)]:r.filter(i=>St(i)===i)).filter(i=>e?Ie(i)===e||(t?_s(i)!==i:!1):!0)}var Ms=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var r,n,i;let{rects:s,middlewareData:o,placement:a,platform:l,elements:c}=t,{crossAxis:u=!1,alignment:d,allowedPlacements:p=wn,autoAlignment:f=!0,...h}=yr(e,t),m=d!==void 0||p===wn?Vl(d||null,f,p):p,b=await l.detectOverflow(t,h),x=((r=o.autoPlacement)==null?void 0:r.index)||0,A=m[x];if(A==null)return{};let E=Rs(A,s,await(l.isRTL==null?void 0:l.isRTL(c.floating)));if(a!==A)return{reset:{placement:m[0]}};let C=[b[St(A)],b[E[0]],b[E[1]]],$=[...((n=o.autoPlacement)==null?void 0:n.overflows)||[],{placement:A,overflows:C}],M=m[x+1];if(M)return{data:{index:x+1,overflows:$},reset:{placement:M}};let _e=$.map(X=>{let te=Ie(X.placement);return[X.placement,te&&u?X.overflows.slice(0,2).reduce((Q,qe)=>Q+qe,0):X.overflows[0],X.overflows]}).sort((X,te)=>X[1]-te[1]),Le=((i=_e.filter(X=>X[2].slice(0,Ie(X[0])?2:3).every(te=>te<=0))[0])==null?void 0:i[0])||_e[0][0];return Le!==a?{data:{index:x+1,overflows:$},reset:{placement:Le}}:{}}}};var Is=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){let{x:r,y:n,placement:i,platform:s}=t,{mainAxis:o=!0,crossAxis:a=!1,limiter:l={fn:x=>{let{x:A,y:E}=x;return{x:A,y:E}}},...c}=yr(e,t),u={x:r,y:n},d=await s.detectOverflow(t,c),p=vr(St(i)),f=Tn(p),h=u[f],m=u[p];if(o){let x=f==="y"?"top":"left",A=f==="y"?"bottom":"right",E=h+d[x],C=h-d[A];h=On(E,h,C)}if(a){let x=p==="y"?"top":"left",A=p==="y"?"bottom":"right",E=m+d[x],C=m-d[A];m=On(E,m,C)}let b=l.fn({...t,[f]:h,[p]:m});return{...b,data:{x:b.x-r,y:b.y-n,enabled:{[f]:o,[p]:a}}}}}};function xr(){return typeof window<"u"}function Qe(e){return Us(e)?(e.nodeName||"").toLowerCase():"#document"}function G(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Ae(e){var t;return(t=(Us(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Us(e){return xr()?e instanceof Node||e instanceof G(e).Node:!1}function ie(e){return xr()?e instanceof Element||e instanceof G(e).Element:!1}function Se(e){return xr()?e instanceof HTMLElement||e instanceof G(e).HTMLElement:!1}function ks(e){return!xr()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof G(e).ShadowRoot}function Et(e){let{overflow:t,overflowX:r,overflowY:n,display:i}=se(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&i!=="inline"&&i!=="contents"}function $s(e){return/^(table|td|th)$/.test(Qe(e))}function Yt(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}var Wl=/transform|translate|scale|rotate|perspective|filter/,ql=/paint|layout|strict|content/,Xe=e=>!!e&&e!=="none",Ln;function Ct(e){let t=ie(e)?se(e):e;return Xe(t.transform)||Xe(t.translate)||Xe(t.scale)||Xe(t.rotate)||Xe(t.perspective)||!Ar()&&(Xe(t.backdropFilter)||Xe(t.filter))||Wl.test(t.willChange||"")||ql.test(t.contain||"")}function Hs(e){let t=Oe(e);for(;Se(t)&&!Je(t);){if(Ct(t))return t;if(Yt(t))return null;t=Oe(t)}return null}function Ar(){return Ln==null&&(Ln=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Ln}function Je(e){return/^(html|body|#document)$/.test(Qe(e))}function se(e){return G(e).getComputedStyle(e)}function Xt(e){return ie(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Oe(e){if(Qe(e)==="html")return e;let t=e.assignedSlot||e.parentNode||ks(e)&&e.host||Ae(e);return ks(t)?t.host:t}function Bs(e){let t=Oe(e);return Je(t)?e.ownerDocument?e.ownerDocument.body:e.body:Se(t)&&Et(t)?t:Bs(t)}function br(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);let i=Bs(e),s=i===((n=e.ownerDocument)==null?void 0:n.body),o=G(i);if(s){let a=Sr(o);return t.concat(o,o.visualViewport||[],Et(i)?i:[],a&&r?br(a):[])}else return t.concat(i,br(i,[],r))}function Sr(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Ws(e){let t=se(e),r=parseFloat(t.width)||0,n=parseFloat(t.height)||0,i=Se(e),s=i?e.offsetWidth:r,o=i?e.offsetHeight:n,a=Gt(r)!==s||Gt(n)!==o;return a&&(r=s,n=o),{width:r,height:n,$:a}}function qs(e){return ie(e)?e:e.contextElement}function wt(e){let t=qs(e);if(!Se(t))return fe(1);let r=t.getBoundingClientRect(),{width:n,height:i,$:s}=Ws(t),o=(s?Gt(r.width):r.width)/n,a=(s?Gt(r.height):r.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!a||!Number.isFinite(a))&&(a=1),{x:o,y:a}}var Kl=fe(0);function Ks(e){let t=G(e);return!Ar()||!t.visualViewport?Kl:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function zl(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==G(e)?!1:t}function Qt(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);let i=e.getBoundingClientRect(),s=qs(e),o=fe(1);t&&(n?ie(n)&&(o=wt(n)):o=wt(e));let a=zl(s,r,n)?Ks(s):fe(0),l=(i.left+a.x)/o.x,c=(i.top+a.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(s){let p=G(s),f=n&&ie(n)?G(n):n,h=p,m=Sr(h);for(;m&&n&&f!==h;){let b=wt(m),x=m.getBoundingClientRect(),A=se(m),E=x.left+(m.clientLeft+parseFloat(A.paddingLeft))*b.x,C=x.top+(m.clientTop+parseFloat(A.paddingTop))*b.y;l*=b.x,c*=b.y,u*=b.x,d*=b.y,l+=E,c+=C,h=G(m),m=Sr(h)}}return Ye({width:u,height:d,x:l,y:c})}function Er(e,t){let r=Xt(e).scrollLeft;return t?t.left+r:Qt(Ae(e)).left+r}function zs(e,t){let r=e.getBoundingClientRect(),n=r.left+t.scrollLeft-Er(e,r),i=r.top+t.scrollTop;return{x:n,y:i}}function Gl(e){let{elements:t,rect:r,offsetParent:n,strategy:i}=e,s=i==="fixed",o=Ae(n),a=t?Yt(t.floating):!1;if(n===o||a&&s)return r;let l={scrollLeft:0,scrollTop:0},c=fe(1),u=fe(0),d=Se(n);if((d||!d&&!s)&&((Qe(n)!=="body"||Et(o))&&(l=Xt(n)),d)){let f=Qt(n);c=wt(n),u.x=f.x+n.clientLeft,u.y=f.y+n.clientTop}let p=o&&!d&&!s?zs(o,l):fe(0);return{width:r.width*c.x,height:r.height*c.y,x:r.x*c.x-l.scrollLeft*c.x+u.x+p.x,y:r.y*c.y-l.scrollTop*c.y+u.y+p.y}}function Yl(e){return Array.from(e.getClientRects())}function Xl(e){let t=Ae(e),r=Xt(e),n=e.ownerDocument.body,i=Me(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),s=Me(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight),o=-r.scrollLeft+Er(e),a=-r.scrollTop;return se(n).direction==="rtl"&&(o+=Me(t.clientWidth,n.clientWidth)-i),{width:i,height:s,x:o,y:a}}var js=25;function Ql(e,t){let r=G(e),n=Ae(e),i=r.visualViewport,s=n.clientWidth,o=n.clientHeight,a=0,l=0;if(i){s=i.width,o=i.height;let u=Ar();(!u||u&&t==="fixed")&&(a=i.offsetLeft,l=i.offsetTop)}let c=Er(n);if(c<=0){let u=n.ownerDocument,d=u.body,p=getComputedStyle(d),f=u.compatMode==="CSS1Compat"&&parseFloat(p.marginLeft)+parseFloat(p.marginRight)||0,h=Math.abs(n.clientWidth-d.clientWidth-f);h<=js&&(s-=h)}else c<=js&&(s+=c);return{width:s,height:o,x:a,y:l}}function Jl(e,t){let r=Qt(e,!0,t==="fixed"),n=r.top+e.clientTop,i=r.left+e.clientLeft,s=Se(e)?wt(e):fe(1),o=e.clientWidth*s.x,a=e.clientHeight*s.y,l=i*s.x,c=n*s.y;return{width:o,height:a,x:l,y:c}}function Fs(e,t,r){let n;if(t==="viewport")n=Ql(e,r);else if(t==="document")n=Xl(Ae(e));else if(ie(t))n=Jl(t,r);else{let i=Ks(e);n={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return Ye(n)}function Gs(e,t){let r=Oe(e);return r===t||!ie(r)||Je(r)?!1:se(r).position==="fixed"||Gs(r,t)}function Zl(e,t){let r=t.get(e);if(r)return r;let n=br(e,[],!1).filter(a=>ie(a)&&Qe(a)!=="body"),i=null,s=se(e).position==="fixed",o=s?Oe(e):e;for(;ie(o)&&!Je(o);){let a=se(o),l=Ct(o);!l&&a.position==="fixed"&&(i=null),(s?!l&&!i:!l&&a.position==="static"&&!!i&&(i.position==="absolute"||i.position==="fixed")||Et(o)&&!l&&Gs(e,o))?n=n.filter(u=>u!==o):i=a,o=Oe(o)}return t.set(e,n),n}function ec(e){let{element:t,boundary:r,rootBoundary:n,strategy:i}=e,o=[...r==="clippingAncestors"?Yt(t)?[]:Zl(t,this._c):[].concat(r),n],a=Fs(t,o[0],i),l=a.top,c=a.right,u=a.bottom,d=a.left;for(let p=1;p<o.length;p++){let f=Fs(t,o[p],i);l=Me(f.top,l),c=zt(f.right,c),u=zt(f.bottom,u),d=Me(f.left,d)}return{width:c-d,height:u-l,x:d,y:l}}function tc(e){let{width:t,height:r}=Ws(e);return{width:t,height:r}}function rc(e,t,r){let n=Se(t),i=Ae(t),s=r==="fixed",o=Qt(e,!0,s,t),a={scrollLeft:0,scrollTop:0},l=fe(0);function c(){l.x=Er(i)}if(n||!n&&!s)if((Qe(t)!=="body"||Et(i))&&(a=Xt(t)),n){let f=Qt(t,!0,s,t);l.x=f.x+t.clientLeft,l.y=f.y+t.clientTop}else i&&c();s&&!n&&i&&c();let u=i&&!n&&!s?zs(i,a):fe(0),d=o.left+a.scrollLeft-l.x-u.x,p=o.top+a.scrollTop-l.y-u.y;return{x:d,y:p,width:o.width,height:o.height}}function Pn(e){return se(e).position==="static"}function Vs(e,t){if(!Se(e)||se(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return Ae(e)===r&&(r=r.ownerDocument.body),r}function Ys(e,t){let r=G(e);if(Yt(e))return r;if(!Se(e)){let i=Oe(e);for(;i&&!Je(i);){if(ie(i)&&!Pn(i))return i;i=Oe(i)}return r}let n=Vs(e,t);for(;n&&$s(n)&&Pn(n);)n=Vs(n,t);return n&&Je(n)&&Pn(n)&&!Ct(n)?r:n||Hs(e)||r}var nc=async function(e){let t=this.getOffsetParent||Ys,r=this.getDimensions,n=await r(e.floating);return{reference:rc(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function ic(e){return se(e).direction==="rtl"}var Cr={convertOffsetParentRelativeRectToViewportRelativeRect:Gl,getDocumentElement:Ae,getClippingRect:ec,getOffsetParent:Ys,getElementRects:nc,getClientRects:Yl,getDimensions:tc,getScale:wt,isElement:ie,isRTL:ic};var Xs=Ms,Qs=Is;var Js=(e,t,r)=>{let n=new Map,i={platform:Cr,...r},s={...i.platform,_c:n};return Ds(e,t,{...i,platform:s})};function Zs(e){return sc(e)}function Nn(e){return e.assignedSlot?e.assignedSlot:e.parentNode instanceof ShadowRoot?e.parentNode.host:e.parentNode}function sc(e){for(let t=e;t;t=Nn(t))if(t instanceof Element&&getComputedStyle(t).display==="none")return null;for(let t=Nn(e);t;t=Nn(t)){if(!(t instanceof Element))continue;let r=getComputedStyle(t);if(r.display!=="contents"&&(r.position!=="static"||Ct(r)||t.tagName==="BODY"))return t}return null}async function eo(e,t,r){let n;return typeof r=="object"?n=r:n={placement:r},Js(e,t,{strategy:n.strategy,platform:{...Cr,getOffsetParent:i=>Cr.getOffsetParent(i,Zs)},middleware:[Qs({crossAxis:!0}),Xs({allowedPlacements:[n.placement]})]})}var $t=g(w());var ii=g(K());var to=g(K(),1);var Dn=e=>t=>{window.customElements.get(e)||window.customElements.define(e,t)};function ro(e,t){return(0,to.property)({type:Object,converter:{fromAttribute:r=>{if(r==null)return Jt(e);try{return JSON.parse(r)}catch{return Jt(e)}},toAttribute:r=>JSON.stringify(r)},hasChanged:Zt,...t??{}})}function oc(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;let r,n;if(Array.isArray(e)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(!wr(e[n],t[n]))return!1;return!0}if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(n of e.entries())if(!t.has(n[0]))return!1;for(n of e.entries())if(!wr(n[1],t.get(n[0])))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(n of e.entries())if(!t.has(n[0]))return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();let i=o=>Object.keys(o).filter(a=>o[a]!=null),s=i(e);if(r=s.length,r!==i(t).length)return!1;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(t,s[n]))return!1;for(n=r;n--!==0;){let o=s[n];if(!wr(e[o],t[o]))return!1}return!0}return e!==e&&t!==t||e==null&&t==null}function wr(e,t){try{return oc(e,t)}catch{return!1}}function Zt(e,t){return!wr(e,t)}function Jt(e){return typeof window.structuredClone=="function"?structuredClone(e):e!=null?JSON.parse(JSON.stringify(e)):e}function Or(e,t){let r=n=>n[e]===!0;return n=>{if(r(n))return n;let i=t(n);return i[e]=!0,i}}var no=g(K(),1);var Mn=e=>{let t=e??{};return(r,n)=>{var i;let s={hasChanged:Zt,attribute:!1,...t};(0,no.property)(s)(r,n);let o=r.constructor;o.reduxProperties=new Map(o.reduxProperties),o.reduxProperties.set(n,{selector:(i=t.selector)!==null&&i!==void 0?i:(a=>a[n]),store:t.store})}};var Tr=class{constructor(){this.queue=[]}add(t,r=!1){r&&this.clear(t.type),this.queue.push(t)}consume(t){let r=this.queue.find(n=>n.type===t);return r&&(this.queue=this.queue.filter(n=>n!==r)),r}clear(t){typeof t=="string"?this.queue=this.queue.filter(r=>r.type!==t):this.queue=this.queue.filter(r=>!t.test(r.type))}};var Ze=g(K(),1);var Rr=class{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,r){return this.callbacks=[t],this.debounce(r)}queue(t,r){return this.callbacks.push(t),this.debounce(r)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return this.promise==null&&(this.promise=new Promise((r,n)=>{this.resolvePromise=r,this.rejectPromise=n})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),t??this.timeout),this.promise}async runCallbacks(){var t,r;let n=[...this.callbacks];this.callbacks=[];let i=(t=this.rejectPromise)!==null&&t!==void 0?t:(()=>null),s=(r=this.resolvePromise)!==null&&r!==void 0?r:(()=>null);this.clearPromise();for(let o of n)try{await o()}catch(a){i(a);return}s(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var so=g(H(),1);var _r=globalThis,ac=_r.ShadowRoot&&(_r.ShadyCSS===void 0||_r.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype;var io=(e,t)=>{if(ac)e.adoptedStyleSheets=t.map((r=>r instanceof CSSStyleSheet?r:r.styleSheet));else for(let r of t){let n=document.createElement("style"),i=_r.litNonce;i!==void 0&&n.setAttribute("nonce",i),n.textContent=r.cssText,e.appendChild(n)}};var Lr=class extends so.LitElement{get scopedRegistryConstructor(){return this.constructor}createRenderRoot(){let t=this.scopedRegistryConstructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,t.defineScopedElements(t.elementDefinitions));let r={...t.shadowRootOptions,customElements:t.registry},n=this.renderOptions.creationScope=this.attachShadow(r);return io(n,t.elementStyles),n}static canDefineScopedElement(t){return!!this.registry&&!this.registry.get(t)}static defineScopedElements(t){Object.entries(t).forEach(([r,n])=>this.defineScopedElement(r,n))}static defineScopedElement(t,r){Dn(t)(r),this.canDefineScopedElement(t)&&this.registry.define(t,r)}canDefineScopedElement(t){return this.scopedRegistryConstructor.canDefineScopedElement(t)}defineScopedElements(t){this.scopedRegistryConstructor.defineScopedElements(t)}defineScopedElement(t,r){this.scopedRegistryConstructor.defineScopedElement(t,r)}};function oo(e,t,...r){var n;let i=e.querySelector(t);for(let s of r)i=(n=i?.shadowRoot)===null||n===void 0?void 0:n.querySelector(s);return i}var Tt=function(e,t,r,n){var i=arguments.length,s=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},uo,ao=Symbol("constructorPrototype"),lo=Symbol("constructorName"),po=Symbol("exportpartsDebouncer"),co=Symbol("dynamicDependenciesLoaded"),Ot=class e extends CustomEvent{constructor(){super(e.eventName,{bubbles:!0})}};Ot.eventName="exportparts-updated";var Ee=class extends Lr{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[uo]=new Rr(5),this.scheduleExportpartsUpdate=()=>{var t,r,n;(!((t=this.exportpartsPrefix)===null||t===void 0)&&t.trim()||(n=(r=this.exportpartsPrefixes)===null||r===void 0?void 0:r.length)!==null&&n!==void 0&&n)&&this[po].run(()=>{var i,s;!((i=this.exportpartsPrefix)===null||i===void 0)&&i.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((s=this.exportpartsPrefixes)===null||s===void 0?void 0:s.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})},this[lo]=this.constructor.name,this[ao]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[lo]&&Object.setPrototypeOf(this,this[ao])}connectedCallback(){var t;super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(n){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",n)}let r=this.constructor;r[co]||(r[co]=!0,this.importDynamicDependencies()),(t=this.shadowRoot)===null||t===void 0||t.addEventListener(Ot.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.shadowRoot)===null||t===void 0||t.removeEventListener(Ot.eventName,this.scheduleExportpartsUpdate)}importDynamicDependencies(){}updated(t){super.updated(t),this.updateComplete.then(()=>{this.contentAvailableCallback(t),this.focusElementToFocus(t),this.applyCustomStylesheet(t),this.scheduleExportpartsUpdate(),t.has("exportparts")&&this.dispatchEvent(new Ot)})}contentAvailableCallback(t){}focusElementToFocus(t){if(t.has("elementToFocus")&&this.elementToFocus!=null){let{element:r,selector:n,shadowPath:i}=this.elementToFocus;if(n!=null){let s=[...i??[],n];r=oo(this.shadowRoot,...s)}r?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||r?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(t){var r,n,i;if(((n=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&n!==void 0?n:[]).forEach(s=>s.remove()),this.useAdoptedStyleSheets){if(t.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((i=this.customStylesheet)!==null&&i!==void 0?i:"")}catch(s){console.error(s,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let s=document.createElement("style");s.classList.add("ft-lit-element--custom-stylesheet"),s.innerHTML=this.customStylesheet,this.shadowRoot.append(s)}}setExportpartsAttribute(t){var r,n,i,s,o,a;let l=p=>p!=null&&p.trim().length>0,c=t.filter(l).map(p=>p.trim());if(c.length===0){this.exportparts=void 0;return}let u=new Set;for(let p of(n=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&n!==void 0?n:[]){let f=(s=(i=p.getAttribute("part"))===null||i===void 0?void 0:i.split(" "))!==null&&s!==void 0?s:[],h=(a=(o=p.getAttribute("exportparts"))===null||o===void 0?void 0:o.split(",").map(b=>b.split(":")[1]))!==null&&a!==void 0?a:[],m=[...f,...h].filter(l).map(b=>b.trim());for(let b of m)u.add(b)}if(u.size===0){this.exportparts=void 0;return}let d=[...u.values()].flatMap(p=>c.map(f=>`${p}:${f}--${p}`));this.exportparts=[...this.part,...d].join(", ")}};uo=po;Tt([(0,Ze.property)()],Ee.prototype,"exportpartsPrefix",void 0);Tt([ro([])],Ee.prototype,"exportpartsPrefixes",void 0);Tt([(0,Ze.property)({reflect:!0})],Ee.prototype,"exportparts",void 0);Tt([(0,Ze.property)()],Ee.prototype,"customStylesheet",void 0);Tt([(0,Ze.property)()],Ee.prototype,"elementToFocus",void 0);Tt([(0,Ze.state)()],Ee.prototype,"useAdoptedStyleSheets",void 0);function Pr(e){var t;return(t=e?.isFtReduxStore)!==null&&t!==void 0?t:!1}var er=Symbol("internalReduxEventsUnsubscribers"),ke=Symbol("internalStoresUnsubscribers"),et=Symbol("internalStores"),lc=Or(Symbol("withRedux"),function(e){var t,r,n;class i extends e{constructor(){super(...arguments),this[t]=new Map,this[r]=new Map,this[n]=new Map}get reduxConstructor(){return this.constructor}willUpdate(o){super.willUpdate(o),[...this.reduxConstructor.reduxReactiveProperties].some(a=>o.has(a))&&this.updateFromStores()}getUnnamedStore(){if(this[et].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[et].values()][0]}getStore(o){return o==null?this.getUnnamedStore():this[et].get(o)}addStore(o,a){var l;a=(l=a??o.name)!==null&&l!==void 0?l:"default-store",this.unsubscribeFromStore(a),this[et].set(a,o),this.subscribeToStore(a,o),this.updateFromStores()}removeStore(o){let a=typeof o=="string"?o:o.name;this.unsubscribeFromStore(a),this[et].delete(a)}setupStores(){this.unsubscribeFromStores(),this[et].forEach((o,a)=>this.subscribeToStore(a,o)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((o,a)=>{let l=this.constructor.getPropertyOptions(a);if(!l?.attribute||!this.hasAttribute(typeof l?.attribute=="string"?l.attribute:a)){let c=this.getStore(o.store);c&&(o.store?this[ke].has(o.store):this[ke].size>0)&&(this[a]=o.selector(c.getState(),this))}})}subscribeToStore(o,a){var l;this[ke].set(o,a.subscribe(()=>this.updateFromStores())),this[er].set(o,[]),Pr(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[er].get(o).push(()=>a.removeEventListener(c.eventName,d))}})),this.onStoreAvailable(o)}unsubscribeFromStores(){this[ke].forEach((o,a)=>this.unsubscribeFromStore(a))}unsubscribeFromStore(o){var a;this[ke].has(o)&&this[ke].get(o)(),this[ke].delete(o),(a=this[er].get(o))===null||a===void 0||a.forEach(l=>l()),this[er].delete(o)}onStoreAvailable(o){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return t=ke,r=et,n=er,i.reduxProperties=new Map,i.reduxReactiveProperties=new Set,i.reduxEventListeners=new Map,i}),fo=class extends lc(Ee){};function oe(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];if(0)var i,s;throw Error("[Immer] minified error nr: "+e+(r.length?" "+r.map((function(o){return"'"+o+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Te(e){return!!e&&!!e[L]}function he(e){var t;return!!e&&((function(r){if(!r||typeof r!="object")return!1;var n=Object.getPrototypeOf(r);if(n===null)return!0;var i=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return i===Object||typeof i=="function"&&Function.toString.call(i)===gc})(e)||Array.isArray(e)||!!e[xo]||!!(!((t=e.constructor)===null||t===void 0)&&t[xo])||Vn(e)||Wn(e))}function tt(e,t,r){r===void 0&&(r=!1),Lt(e)===0?(r?Object.keys:_t)(e).forEach((function(n){r&&typeof n=="symbol"||t(n,e[n],e)})):e.forEach((function(n,i){return t(i,n,e)}))}function Lt(e){var t=e[L];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:Vn(e)?2:Wn(e)?3:0}function Rt(e,t){return Lt(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function cc(e,t){return Lt(e)===2?e.get(t):e[t]}function Ao(e,t,r){var n=Lt(e);n===2?e.set(t,r):n===3?e.add(r):e[t]=r}function So(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function Vn(e){return hc&&e instanceof Map}function Wn(e){return mc&&e instanceof Set}function Ue(e){return e.o||e.t}function qn(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=wo(e);delete t[L];for(var r=_t(t),n=0;n<r.length;n++){var i=r[n],s=t[i];s.writable===!1&&(s.writable=!0,s.configurable=!0),(s.get||s.set)&&(t[i]={configurable:!0,writable:!0,enumerable:s.enumerable,value:e[i]})}return Object.create(Object.getPrototypeOf(e),t)}function Kn(e,t){return t===void 0&&(t=!1),zn(e)||Te(e)||!he(e)||(Lt(e)>1&&(e.set=e.add=e.clear=e.delete=uc),Object.freeze(e),t&&tt(e,(function(r,n){return Kn(n,!0)}),!0)),e}function uc(){oe(2)}function zn(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function Ce(e){var t=Fn[e];return t||oe(18,e),t}function dc(e,t){Fn[e]||(Fn[e]=t)}function Hn(){return rr}function In(e,t){t&&(Ce("Patches"),e.u=[],e.s=[],e.v=t)}function Nr(e){Bn(e),e.p.forEach(pc),e.p=null}function Bn(e){e===rr&&(rr=e.l)}function ho(e){return rr={p:[],l:rr,h:e,m:!0,_:0}}function pc(e){var t=e[L];t.i===0||t.i===1?t.j():t.g=!0}function kn(e,t){t._=t.p.length;var r=t.p[0],n=e!==void 0&&e!==r;return t.h.O||Ce("ES5").S(t,e,n),n?(r[L].P&&(Nr(t),oe(4)),he(e)&&(e=Dr(t,e),t.l||Mr(t,e)),t.u&&Ce("Patches").M(r[L].t,e,t.u,t.s)):e=Dr(t,r,[]),Nr(t),t.u&&t.v(t.u,t.s),e!==Co?e:void 0}function Dr(e,t,r){if(zn(t))return t;var n=t[L];if(!n)return tt(t,(function(a,l){return mo(e,n,t,a,l,r)}),!0),t;if(n.A!==e)return t;if(!n.P)return Mr(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var i=n.i===4||n.i===5?n.o=qn(n.k):n.o,s=i,o=!1;n.i===3&&(s=new Set(i),i.clear(),o=!0),tt(s,(function(a,l){return mo(e,n,i,a,l,r,o)})),Mr(e,i,!1),r&&e.u&&Ce("Patches").N(n,r,e.u,e.s)}return n.o}function mo(e,t,r,n,i,s,o){if(Te(i)){var a=Dr(e,i,s&&t&&t.i!==3&&!Rt(t.R,n)?s.concat(n):void 0);if(Ao(r,n,a),!Te(a))return;e.m=!1}else o&&r.add(i);if(he(i)&&!zn(i)){if(!e.h.D&&e._<1)return;Dr(e,i),t&&t.A.l||Mr(e,i)}}function Mr(e,t,r){r===void 0&&(r=!1),!e.l&&e.h.D&&e.m&&Kn(t,r)}function Un(e,t){var r=e[L];return(r?Ue(r):e)[t]}function go(e,t){if(t in e)for(var r=Object.getPrototypeOf(e);r;){var n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Object.getPrototypeOf(r)}}function $e(e){e.P||(e.P=!0,e.l&&$e(e.l))}function $n(e){e.o||(e.o=qn(e.t))}function jn(e,t,r){var n=Vn(t)?Ce("MapSet").F(t,r):Wn(t)?Ce("MapSet").T(t,r):e.O?(function(i,s){var o=Array.isArray(i),a={i:o?1:0,A:s?s.A:Hn(),P:!1,I:!1,R:{},l:s,t:i,k:null,o:null,j:null,C:!1},l=a,c=nr;o&&(l=[a],c=tr);var u=Proxy.revocable(l,c),d=u.revoke,p=u.proxy;return a.k=p,a.j=d,p})(t,r):Ce("ES5").J(t,r);return(r?r.A:Hn()).p.push(n),n}function fc(e){return Te(e)||oe(22,e),(function t(r){if(!he(r))return r;var n,i=r[L],s=Lt(r);if(i){if(!i.P&&(i.i<4||!Ce("ES5").K(i)))return i.t;i.I=!0,n=yo(r,s),i.I=!1}else n=yo(r,s);return tt(n,(function(o,a){i&&cc(i.t,o)===a||Ao(n,o,t(a))})),s===3?new Set(n):n})(e)}function yo(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return qn(e)}function Eo(){function e(o,a){var l=s[o];return l?l.enumerable=a:s[o]=l={configurable:!0,enumerable:a,get:function(){var c=this[L];return nr.get(c,o)},set:function(c){var u=this[L];nr.set(u,o,c)}},l}function t(o){for(var a=o.length-1;a>=0;a--){var l=o[a][L];if(!l.P)switch(l.i){case 5:n(l)&&$e(l);break;case 4:r(l)&&$e(l)}}}function r(o){for(var a=o.t,l=o.k,c=_t(l),u=c.length-1;u>=0;u--){var d=c[u];if(d!==L){var p=a[d];if(p===void 0&&!Rt(a,d))return!0;var f=l[d],h=f&&f[L];if(h?h.t!==p:!So(f,p))return!0}}var m=!!a[L];return c.length!==_t(a).length+(m?0:1)}function n(o){var a=o.k;if(a.length!==o.t.length)return!0;var l=Object.getOwnPropertyDescriptor(a,a.length-1);if(l&&!l.get)return!0;for(var c=0;c<a.length;c++)if(!a.hasOwnProperty(c))return!0;return!1}function i(o){o.g&&oe(3,JSON.stringify(Ue(o)))}var s={};dc("ES5",{J:function(o,a){var l=Array.isArray(o),c=(function(d,p){if(d){for(var f=Array(p.length),h=0;h<p.length;h++)Object.defineProperty(f,""+h,e(h,!0));return f}var m=wo(p);delete m[L];for(var b=_t(m),x=0;x<b.length;x++){var A=b[x];m[A]=e(A,d||!!m[A].enumerable)}return Object.create(Object.getPrototypeOf(p),m)})(l,o),u={i:l?5:4,A:a?a.A:Hn(),P:!1,I:!1,R:{},l:a,t:o,k:c,o:null,g:!1,C:!1};return Object.defineProperty(c,L,{value:u,writable:!0}),c},S:function(o,a,l){l?Te(a)&&a[L].A===o&&t(o.p):(o.u&&(function c(u){if(u&&typeof u=="object"){var d=u[L];if(d){var p=d.t,f=d.k,h=d.R,m=d.i;if(m===4)tt(f,(function(C){C!==L&&(p[C]!==void 0||Rt(p,C)?h[C]||c(f[C]):(h[C]=!0,$e(d)))})),tt(p,(function(C){f[C]!==void 0||Rt(f,C)||(h[C]=!1,$e(d))}));else if(m===5){if(n(d)&&($e(d),h.length=!0),f.length<p.length)for(var b=f.length;b<p.length;b++)h[b]=!1;else for(var x=p.length;x<f.length;x++)h[x]=!0;for(var A=Math.min(f.length,p.length),E=0;E<A;E++)f.hasOwnProperty(E)||(h[E]=!0),h[E]===void 0&&c(f[E])}}}})(o.p[0]),t(o.p))},K:function(o){return o.i===4?r(o):n(o)}})}var vo,rr,Gn=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",hc=typeof Map<"u",mc=typeof Set<"u",bo=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Co=Gn?Symbol.for("immer-nothing"):((vo={})["immer-nothing"]=!0,vo),xo=Gn?Symbol.for("immer-draftable"):"__$immer_draftable",L=Gn?Symbol.for("immer-state"):"__$immer_state";var gc=""+Object.prototype.constructor,_t=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,wo=Object.getOwnPropertyDescriptors||function(e){var t={};return _t(e).forEach((function(r){t[r]=Object.getOwnPropertyDescriptor(e,r)})),t},Fn={},nr={get:function(e,t){if(t===L)return e;var r=Ue(e);if(!Rt(r,t))return(function(i,s,o){var a,l=go(s,o);return l?"value"in l?l.value:(a=l.get)===null||a===void 0?void 0:a.call(i.k):void 0})(e,r,t);var n=r[t];return e.I||!he(n)?n:n===Un(e.t,t)?($n(e),e.o[t]=jn(e.A.h,n,e)):n},has:function(e,t){return t in Ue(e)},ownKeys:function(e){return Reflect.ownKeys(Ue(e))},set:function(e,t,r){var n=go(Ue(e),t);if(n?.set)return n.set.call(e.k,r),!0;if(!e.P){var i=Un(Ue(e),t),s=i?.[L];if(s&&s.t===r)return e.o[t]=r,e.R[t]=!1,!0;if(So(r,i)&&(r!==void 0||Rt(e.t,t)))return!0;$n(e),$e(e)}return e.o[t]===r&&(r!==void 0||t in e.o)||Number.isNaN(r)&&Number.isNaN(e.o[t])||(e.o[t]=r,e.R[t]=!0),!0},deleteProperty:function(e,t){return Un(e.t,t)!==void 0||t in e.t?(e.R[t]=!1,$n(e),$e(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var r=Ue(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:n.enumerable,value:r[t]}},defineProperty:function(){oe(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){oe(12)}},tr={};tt(nr,(function(e,t){tr[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),tr.deleteProperty=function(e,t){return tr.set.call(this,e,t,void 0)},tr.set=function(e,t,r){return nr.set.call(this,e[0],t,r,e[0])};var yc=(function(){function e(r){var n=this;this.O=bo,this.D=!0,this.produce=function(i,s,o){if(typeof i=="function"&&typeof s!="function"){var a=s;s=i;var l=n;return function(m){var b=this;m===void 0&&(m=a);for(var x=arguments.length,A=Array(x>1?x-1:0),E=1;E<x;E++)A[E-1]=arguments[E];return l.produce(m,(function(C){var $;return($=s).call.apply($,[b,C].concat(A))}))}}var c;if(typeof s!="function"&&oe(6),o!==void 0&&typeof o!="function"&&oe(7),he(i)){var u=ho(n),d=jn(n,i,void 0),p=!0;try{c=s(d),p=!1}finally{p?Nr(u):Bn(u)}return typeof Promise<"u"&&c instanceof Promise?c.then((function(m){return In(u,o),kn(m,u)}),(function(m){throw Nr(u),m})):(In(u,o),kn(c,u))}if(!i||typeof i!="object"){if((c=s(i))===void 0&&(c=i),c===Co&&(c=void 0),n.D&&Kn(c,!0),o){var f=[],h=[];Ce("Patches").M(i,c,f,h),o(f,h)}return c}oe(21,i)},this.produceWithPatches=function(i,s){if(typeof i=="function")return function(c){for(var u=arguments.length,d=Array(u>1?u-1:0),p=1;p<u;p++)d[p-1]=arguments[p];return n.produceWithPatches(c,(function(f){return i.apply(void 0,[f].concat(d))}))};var o,a,l=n.produce(i,s,(function(c,u){o=c,a=u}));return typeof Promise<"u"&&l instanceof Promise?l.then((function(c){return[c,o,a]})):[l,o,a]},typeof r?.useProxies=="boolean"&&this.setUseProxies(r.useProxies),typeof r?.autoFreeze=="boolean"&&this.setAutoFreeze(r.autoFreeze)}var t=e.prototype;return t.createDraft=function(r){he(r)||oe(8),Te(r)&&(r=fc(r));var n=ho(this),i=jn(this,r,void 0);return i[L].C=!0,Bn(n),i},t.finishDraft=function(r,n){var i=r&&r[L],s=i.A;return In(s,n),kn(void 0,s)},t.setAutoFreeze=function(r){this.D=r},t.setUseProxies=function(r){r&&!bo&&oe(20),this.O=r},t.applyPatches=function(r,n){var i;for(i=n.length-1;i>=0;i--){var s=n[i];if(s.path.length===0&&s.op==="replace"){r=s.value;break}}i>-1&&(n=n.slice(i+1));var o=Ce("Patches").$;return Te(r)?o(r,n):this.produce(r,(function(a){return o(a,n)}))},e})(),J=new yc,vc=J.produce,jd=J.produceWithPatches.bind(J),Fd=J.setAutoFreeze.bind(J),Vd=J.setUseProxies.bind(J),Wd=J.applyPatches.bind(J),qd=J.createDraft.bind(J),Kd=J.finishDraft.bind(J),Ir=vc;function rt(e){"@babel/helpers - typeof";return rt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},rt(e)}function Oo(e,t){if(rt(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(rt(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function To(e){var t=Oo(e,"string");return rt(t)=="symbol"?t:t+""}function Ro(e,t,r){return(t=To(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Yn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?_o(Object(r),!0).forEach(function(n){Ro(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_o(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function V(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var Lo=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})(),Xn=function(){return Math.random().toString(36).substring(7).split("").join(".")},kr={INIT:"@@redux/INIT"+Xn(),REPLACE:"@@redux/REPLACE"+Xn(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Xn()}};function bc(e){if(typeof e!="object"||e===null)return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function Qn(e,t,r){var n;if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(V(0));if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(V(1));return r(Qn)(e,t)}if(typeof e!="function")throw new Error(V(2));var i=e,s=t,o=[],a=o,l=!1;function c(){a===o&&(a=o.slice())}function u(){if(l)throw new Error(V(3));return s}function d(m){if(typeof m!="function")throw new Error(V(4));if(l)throw new Error(V(5));var b=!0;return c(),a.push(m),function(){if(b){if(l)throw new Error(V(6));b=!1,c();var A=a.indexOf(m);a.splice(A,1),o=null}}}function p(m){if(!bc(m))throw new Error(V(7));if(typeof m.type>"u")throw new Error(V(8));if(l)throw new Error(V(9));try{l=!0,s=i(s,m)}finally{l=!1}for(var b=o=a,x=0;x<b.length;x++){var A=b[x];A()}return m}function f(m){if(typeof m!="function")throw new Error(V(10));i=m,p({type:kr.REPLACE})}function h(){var m,b=d;return m={subscribe:function(A){if(typeof A!="object"||A===null)throw new Error(V(11));function E(){A.next&&A.next(u())}E();var C=b(E);return{unsubscribe:C}}},m[Lo]=function(){return this},m}return p({type:kr.INIT}),n={dispatch:p,subscribe:d,getState:u,replaceReducer:f},n[Lo]=h,n}function xc(e){Object.keys(e).forEach(function(t){var r=e[t],n=r(void 0,{type:kr.INIT});if(typeof n>"u")throw new Error(V(12));if(typeof r(void 0,{type:kr.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(V(13))})}function Po(e){for(var t=Object.keys(e),r={},n=0;n<t.length;n++){var i=t[n];typeof e[i]=="function"&&(r[i]=e[i])}var s=Object.keys(r),o,a;try{xc(r)}catch(l){a=l}return function(c,u){if(c===void 0&&(c={}),a)throw a;if(0)var d;for(var p=!1,f={},h=0;h<s.length;h++){var m=s[h],b=r[m],x=c[m],A=b(x,u);if(typeof A>"u"){var E=u&&u.type;throw new Error(V(14))}f[m]=A,p=p||A!==x}return p=p||s.length!==Object.keys(c).length,p?f:c}}function Pt(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.length===0?function(n){return n}:t.length===1?t[0]:t.reduce(function(n,i){return function(){return n(i.apply(void 0,arguments))}})}function No(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(n){return function(){var i=n.apply(void 0,arguments),s=function(){throw new Error(V(15))},o={getState:i.getState,dispatch:function(){return s.apply(void 0,arguments)}},a=t.map(function(l){return l(o)});return s=Pt.apply(void 0,a)(i.dispatch),Yn(Yn({},i),{},{dispatch:s})}}}function Do(e){var t=function(n){var i=n.dispatch,s=n.getState;return function(o){return function(a){return typeof a=="function"?a(i,s,e):o(a)}}};return t}var Mo=Do();Mo.withExtraArgument=Do;var Jn=Mo;var Ho=(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(n[s]=i[s])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),Ac=function(e,t){var r={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},n,i,s,o;return o={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function a(c){return function(u){return l([c,u])}}function l(c){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,i&&(s=c[0]&2?i.return:c[0]?i.throw||((s=i.return)&&s.call(i),0):i.next)&&!(s=s.call(i,c[1])).done)return s;switch(i=0,s&&(c=[c[0]&2,s.value]),c[0]){case 0:case 1:s=c;break;case 4:return r.label++,{value:c[1],done:!1};case 5:r.label++,i=c[1],c=[0];continue;case 7:c=r.ops.pop(),r.trys.pop();continue;default:if(s=r.trys,!(s=s.length>0&&s[s.length-1])&&(c[0]===6||c[0]===2)){r=0;continue}if(c[0]===3&&(!s||c[1]>s[0]&&c[1]<s[3])){r.label=c[1];break}if(c[0]===6&&r.label<s[1]){r.label=s[1],s=c;break}if(s&&r.label<s[2]){r.label=s[2],r.ops.push(c);break}s[2]&&r.ops.pop(),r.trys.pop();continue}c=t.call(e,r)}catch(u){c=[6,u],i=0}finally{n=s=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}},Nt=function(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e},Sc=Object.defineProperty,Ec=Object.defineProperties,Cc=Object.getOwnPropertyDescriptors,Io=Object.getOwnPropertySymbols,wc=Object.prototype.hasOwnProperty,Oc=Object.prototype.propertyIsEnumerable,ko=function(e,t,r){return t in e?Sc(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r},He=function(e,t){for(var r in t||(t={}))wc.call(t,r)&&ko(e,r,t[r]);if(Io)for(var n=0,i=Io(t);n<i.length;n++){var r=i[n];Oc.call(t,r)&&ko(e,r,t[r])}return e},Zn=function(e,t){return Ec(e,Cc(t))},Tc=function(e,t,r){return new Promise(function(n,i){var s=function(l){try{a(r.next(l))}catch(c){i(c)}},o=function(l){try{a(r.throw(l))}catch(c){i(c)}},a=function(l){return l.done?n(l.value):Promise.resolve(l.value).then(s,o)};a((r=r.apply(e,t)).next())})};var Rc=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Pt:Pt.apply(null,arguments)},up=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(e){return e}};function _c(e){if(typeof e!="object"||e===null)return!1;var t=Object.getPrototypeOf(e);if(t===null)return!0;for(var r=t;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return t===r}function Be(e,t){function r(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];if(t){var s=t.apply(void 0,n);if(!s)throw new Error("prepareAction did not return an object");return He(He({type:e,payload:s.payload},"meta"in s&&{meta:s.meta}),"error"in s&&{error:s.error})}return{type:e,payload:n[0]}}return r.toString=function(){return""+e},r.type=e,r.match=function(n){return n.type===e},r}var Lc=(function(e){Ho(t,e);function t(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var i=e.apply(this,r)||this;return Object.setPrototypeOf(i,t.prototype),i}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return e.prototype.concat.apply(this,r)},t.prototype.prepend=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return r.length===1&&Array.isArray(r[0])?new(t.bind.apply(t,Nt([void 0],r[0].concat(this)))):new(t.bind.apply(t,Nt([void 0],r.concat(this))))},t})(Array),Pc=(function(e){Ho(t,e);function t(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var i=e.apply(this,r)||this;return Object.setPrototypeOf(i,t.prototype),i}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return e.prototype.concat.apply(this,r)},t.prototype.prepend=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return r.length===1&&Array.isArray(r[0])?new(t.bind.apply(t,Nt([void 0],r[0].concat(this)))):new(t.bind.apply(t,Nt([void 0],r.concat(this))))},t})(Array);function ri(e){return he(e)?Ir(e,function(){}):e}function Nc(e){return typeof e=="boolean"}function Dc(){return function(t){return Mc(t)}}function Mc(e){e===void 0&&(e={});var t=e.thunk,r=t===void 0?!0:t,n=e.immutableCheck,i=n===void 0?!0:n,s=e.serializableCheck,o=s===void 0?!0:s,a=e.actionCreatorCheck,l=a===void 0?!0:a,c=new Lc;if(r&&(Nc(r)?c.push(Jn):c.push(Jn.withExtraArgument(r.extraArgument))),0){if(i)var u;if(o)var d;if(l)var p}return c}var ei=!0;function Bo(e){var t=Dc(),r=e||{},n=r.reducer,i=n===void 0?void 0:n,s=r.middleware,o=s===void 0?t():s,a=r.devTools,l=a===void 0?!0:a,c=r.preloadedState,u=c===void 0?void 0:c,d=r.enhancers,p=d===void 0?void 0:d,f;if(typeof i=="function")f=i;else if(_c(i))f=Po(i);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var h=o;if(typeof h=="function"&&(h=h(t),!ei&&!Array.isArray(h)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!ei&&h.some(function(C){return typeof C!="function"}))throw new Error("each middleware provided to configureStore must be a function");var m=No.apply(void 0,h),b=Pt;l&&(b=Rc(He({trace:!ei},typeof l=="object"&&l)));var x=new Pc(m),A=x;Array.isArray(p)?A=Nt([m],p):typeof p=="function"&&(A=p(x));var E=b.apply(void 0,A);return Qn(f,u,E)}function jo(e){var t={},r=[],n,i={addCase:function(s,o){var a=typeof s=="string"?s:s.type;if(!a)throw new Error("`builder.addCase` cannot be called with an empty action type");if(a in t)throw new Error("`builder.addCase` cannot be called with two reducers for the same action type");return t[a]=o,i},addMatcher:function(s,o){return r.push({matcher:s,reducer:o}),i},addDefaultCase:function(s){return n=s,i}};return e(i),[t,r,n]}function Ic(e){return typeof e=="function"}function kc(e,t,r,n){r===void 0&&(r=[]);var i=typeof t=="function"?jo(t):[t,r,n],s=i[0],o=i[1],a=i[2],l;if(Ic(e))l=function(){return ri(e())};else{var c=ri(e);l=function(){return c}}function u(d,p){d===void 0&&(d=l());var f=Nt([s[p.type]],o.filter(function(h){var m=h.matcher;return m(p)}).map(function(h){var m=h.reducer;return m}));return f.filter(function(h){return!!h}).length===0&&(f=[a]),f.reduce(function(h,m){if(m)if(Te(h)){var b=h,x=m(b,p);return x===void 0?h:x}else{if(he(h))return Ir(h,function(A){return m(A,p)});var x=m(h,p);if(x===void 0){if(h===null)return h;throw Error("A case reducer on a non-draftable value must not return undefined")}return x}return h},d)}return u.getInitialState=l,u}function Uc(e,t){return e+"/"+t}function Fo(e){var t=e.name;if(!t)throw new Error("`name` is a required option for createSlice");typeof process<"u";var r=typeof e.initialState=="function"?e.initialState:ri(e.initialState),n=e.reducers||{},i=Object.keys(n),s={},o={},a={};i.forEach(function(u){var d=n[u],p=Uc(t,u),f,h;"reducer"in d?(f=d.reducer,h=d.prepare):f=d,s[u]=f,o[p]=f,a[u]=h?Be(p,h):Be(p)});function l(){var u=typeof e.extraReducers=="function"?jo(e.extraReducers):[e.extraReducers],d=u[0],p=d===void 0?{}:d,f=u[1],h=f===void 0?[]:f,m=u[2],b=m===void 0?void 0:m,x=He(He({},p),o);return kc(r,function(A){for(var E in x)A.addCase(E,x[E]);for(var C=0,$=h;C<$.length;C++){var M=$[C];A.addMatcher(M.matcher,M.reducer)}b&&A.addDefaultCase(b)})}var c;return{name:t,reducer:function(u,d){return c||(c=l()),c(u,d)},actions:a,caseReducers:s,getInitialState:function(){return c||(c=l()),c.getInitialState()}}}var $c="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Hc=function(e){e===void 0&&(e=21);for(var t="",r=e;r--;)t+=$c[Math.random()*64|0];return t},Bc=["name","message","stack","code"],ti=(function(){function e(t,r){this.payload=t,this.meta=r}return e})(),Uo=(function(){function e(t,r){this.payload=t,this.meta=r}return e})(),jc=function(e){if(typeof e=="object"&&e!==null){for(var t={},r=0,n=Bc;r<n.length;r++){var i=n[r];typeof e[i]=="string"&&(t[i]=e[i])}return t}return{message:String(e)}},hp=(function(){function e(t,r,n){var i=Be(t+"/fulfilled",function(u,d,p,f){return{payload:u,meta:Zn(He({},f||{}),{arg:p,requestId:d,requestStatus:"fulfilled"})}}),s=Be(t+"/pending",function(u,d,p){return{payload:void 0,meta:Zn(He({},p||{}),{arg:d,requestId:u,requestStatus:"pending"})}}),o=Be(t+"/rejected",function(u,d,p,f,h){return{payload:f,error:(n&&n.serializeError||jc)(u||"Rejected"),meta:Zn(He({},h||{}),{arg:p,requestId:d,rejectedWithValue:!!f,requestStatus:"rejected",aborted:u?.name==="AbortError",condition:u?.name==="ConditionError"})}}),a=!1,l=typeof AbortController<"u"?AbortController:(function(){function u(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return u.prototype.abort=function(){},u})();function c(u){return function(d,p,f){var h=n?.idGenerator?n.idGenerator(u):Hc(),m=new l,b,x=!1;function A(C){b=C,m.abort()}var E=(function(){return Tc(this,null,function(){var C,$,M,_e,cn,Le,X;return Ac(this,function(te){switch(te.label){case 0:return te.trys.push([0,4,,5]),_e=(C=n?.condition)==null?void 0:C.call(n,u,{getState:p,extra:f}),Vc(_e)?[4,_e]:[3,2];case 1:_e=te.sent(),te.label=2;case 2:if(_e===!1||m.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return x=!0,cn=new Promise(function(Q,qe){return m.signal.addEventListener("abort",function(){return qe({name:"AbortError",message:b||"Aborted"})})}),d(s(h,u,($=n?.getPendingMeta)==null?void 0:$.call(n,{requestId:h,arg:u},{getState:p,extra:f}))),[4,Promise.race([cn,Promise.resolve(r(u,{dispatch:d,getState:p,extra:f,requestId:h,signal:m.signal,abort:A,rejectWithValue:function(Q,qe){return new ti(Q,qe)},fulfillWithValue:function(Q,qe){return new Uo(Q,qe)}})).then(function(Q){if(Q instanceof ti)throw Q;return Q instanceof Uo?i(Q.payload,h,u,Q.meta):i(Q,h,u)})])];case 3:return M=te.sent(),[3,5];case 4:return Le=te.sent(),M=Le instanceof ti?o(null,h,u,Le.payload,Le.meta):o(Le,h,u),[3,5];case 5:return X=n&&!n.dispatchConditionRejection&&o.match(M)&&M.meta.condition,X||d(M),[2,M]}})})})();return Object.assign(E,{abort:A,requestId:h,arg:u,unwrap:function(){return E.then(Fc)}})}}return Object.assign(c,{pending:s,rejected:o,fulfilled:i,typePrefix:t})}return e.withTypes=function(){return e},e})();function Fc(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function Vc(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var Vo="listener",Wo="completed",qo="cancelled",mp="task-"+qo,gp="task-"+Wo,yp=Vo+"-"+qo,vp=Vo+"-"+Wo;var ni="listenerMiddleware";var bp=Be(ni+"/add"),xp=Be(ni+"/removeAll"),Ap=Be(ni+"/remove");var $o,Sp=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(e){return($o||($o=Promise.resolve())).then(e).catch(function(t){return setTimeout(function(){throw t},0)})},Wc=function(e){return function(t){setTimeout(t,e)}},Ep=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Wc(10);Eo();var qc=Or(Symbol("withEventBus"),function(e,t){return class extends e{constructor(){super(...arguments),this.eventBus=t??document.createElement("span")}addEventListener(r,n,i){this.eventBus.addEventListener(r,n,i)}dispatchEvent(r){return this.eventBus.dispatchEvent(r)}removeEventListener(r,n,i){this.eventBus.removeEventListener(r,n,i)}}}),Ur=class extends qc(Object){};window.ftReduxStores||(window.ftReduxStores={});var Ko=class e extends Ur{static get(t){var r;let n=typeof t=="string"?t:t.name,i=typeof t=="string"?void 0:t,s=window.ftReduxStores[n];if(Pr(s))return s;if(i==null)return;let o=Fo({...i,reducers:(r=i.reducers)!==null&&r!==void 0?r:{}}),a=Bo({reducer:(l,c)=>{if(c.type==="CLEAR_FT_REDUX_STORE"){let u=Jt(o.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 o.reducer(l,c)}});return window.ftReduxStores[i.name]=new e(o,a,i.eventBus)}constructor(t,r,n){super(),this.reduxSlice=t,this.reduxStore=r,this.isFtReduxStore=!0,this.commands=new Tr;let i=s=>s!=null?JSON.parse(JSON.stringify(s)):s;this.actions=new Proxy(this.reduxSlice.actions,{get:(s,o,a)=>{let l=o,c=s[l];return c?(...u)=>{let d=c(...u.map(i));return this.reduxStore.dispatch(d),d}:u=>{this.setState({[l]:i(u)})}}}),this.eventBus=n??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:[]})}clearKeeping(...t){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:t})}setState(t){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(t).join("_"),overwrites:t})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(t){throw new Error("Not implemented yet.")}subscribe(t){return this.reduxStore.subscribe(t)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};var $r=class{static format(t,r,n,i,s){return window.moment?window.moment(t).locale(r).format(this.getMomentDateFormat(n,i,!!s)):this.getIntlDateTime(t,r,n,i,!!s)}static getMomentDateFormat(t,r,n){return n?"LT":t?r?"lll":"ll":r?"L LT":"L"}static getIntlDateTime(t,r,n,i,s){let o=typeof t=="string"?new Date(t):t,a=new Intl.DateTimeFormat(r,{dateStyle:n?"medium":"short"}).format(o),l=new Intl.DateTimeFormat(r,{timeStyle:"short"}).format(o);return s?l:i?`${a} ${l}`:a}static getTimezoneAsString(){let t=n=>String(Math.floor(n)).padStart(2,"0"),r=new Date().getTimezoneOffset();return`${r<0?"+":"-"}${t(Math.abs(r)/60)}:${t(Math.abs(r)%60)}`}};var Hr=g(w()),Kc="ft-app-info",Dt=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:t})}};Dt.eventName="authentication-change";var ir=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:t})}};ir.eventName="ui-locale-changed";var zc={session:(e,t)=>{(0,Hr.deepEqual)(e.session,t.payload)||(e.session=t.payload,setTimeout(()=>T.dispatchEvent(new Dt(t.payload)),0))}},T=Hr.FtReduxStore.get({name:Kc,reducers:zc,initialState:{baseUrl:void 0,apiIntegrationIdentifier:void 0,apiIntegrationAppVersion:void 0,uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],availableContentLocales:[],defaultLocales:void 0,searchInAllLanguagesAllowed:!1,searchLanguageSetsUiLanguage:!1,uiLanguageSetsSearchLanguage:!1,uiLanguageSetsReaderLanguage:!1,metadataConfiguration:void 0,privacyPolicyConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1,authenticationRequired:!1}});var zo=g(w()),Br=function(e,t,r,n){var i=arguments.length,s=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},Qp=(0,zo.applyMixinOnce)(Symbol("withDateFormat"),function(e){class t extends e{constructor(...n){super(n),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(T)}dateFormatOptionsChanged(n){return n.has("metadataDescriptors")||n.has("useLongDateFormat")||n.has("useDateTimeFormat")||n.has("uiLocale")}getDateFormatter(n){var i,s;return((s=(i=this.metadataDescriptors.find(a=>a.key===n))===null||i===void 0?void 0:i.date)!==null&&s!==void 0?s:!1)?a=>$r.format(a,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return Br([(0,ii.property)({type:Boolean})],t.prototype,"useLongDateFormat",void 0),Br([(0,ii.property)({type:Boolean})],t.prototype,"useDateTimeFormat",void 0),Br([Mn({store:T.name,selector:r=>{var n,i;return(i=(n=r.metadataConfiguration)===null||n===void 0?void 0:n.descriptors)!==null&&i!==void 0?i:[]}})],t.prototype,"metadataDescriptors",void 0),Br([Mn({store:T.name})],t.prototype,"uiLocale",void 0),t});var Go;(function(e){e.black="black",e.green="green",e.blue="blue",e.purple="purple",e.red="red",e.orange="orange",e.yellow="yellow"})(Go||(Go={}));var Yo;(function(e){e.OFFICIAL="OFFICIAL",e.PERSONAL="PERSONAL",e.SHARED="SHARED"})(Yo||(Yo={}));var Xo;(function(e){e.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",e.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",e.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",e.PERSONAL_BOOK="PERSONAL_BOOK",e.ATTACHMENT="ATTACHMENT",e.RESOURCE="RESOURCE",e.HTML_PACKAGE="HTML_PACKAGE"})(Xo||(Xo={}));var Qo;(function(e){e.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",e.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",e.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",e.PERSONAL_BOOK="PERSONAL_BOOK",e.ATTACHMENT="ATTACHMENT",e.RESOURCE="RESOURCE",e.HTML_PACKAGE="HTML_PACKAGE"})(Qo||(Qo={}));var Jo;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(Jo||(Jo={}));var Zo;(function(e){e.VALUE="VALUE",e.DATE="DATE",e.RANGE="RANGE"})(Zo||(Zo={}));var ea;(function(e){e.OFFICIAL="OFFICIAL",e.AI="AI"})(ea||(ea={}));var ta;(function(e){e.BOOKMARK__CREATE="BOOKMARK__CREATE",e.BOOKMARK__DELETE="BOOKMARK__DELETE",e.CASE_DEFLECTION__START="CASE_DEFLECTION__START",e.CASE_DEFLECTION__OPEN_TICKET="CASE_DEFLECTION__OPEN_TICKET",e.CASE_DEFLECTION__RATE="CASE_DEFLECTION__RATE",e.CHATBOT__RATE="CHATBOT__RATE",e.COLLECTION__CREATE="COLLECTION__CREATE",e.COLLECTION__UPDATE="COLLECTION__UPDATE",e.COLLECTION__DELETE="COLLECTION__DELETE",e.CUSTOM_EVENT__TRIGGER="CUSTOM_EVENT__TRIGGER",e.DOCUMENT__ON_DEMAND_TRANSLATE="DOCUMENT__ON_DEMAND_TRANSLATE",e.DOCUMENT__DOWNLOAD="DOCUMENT__DOWNLOAD",e.DOCUMENT__PRINT="DOCUMENT__PRINT",e.DOCUMENT__PROCESS="DOCUMENT__PROCESS",e.DOCUMENT__RATE="DOCUMENT__RATE",e.DOCUMENT__SEARCH="DOCUMENT__SEARCH",e.DOCUMENT__START_DISPLAY="DOCUMENT__START_DISPLAY",e.DOCUMENT__UNRATE="DOCUMENT__UNRATE",e.FEEDBACK__SEND="FEEDBACK__SEND",e.AI__COMPLETED_QUERY="AI__COMPLETED_QUERY",e.AI__RATE="AI__RATE",e.AI_CASE_DEFLECTION__START="AI_CASE_DEFLECTION__START",e.AI_CASE_DEFLECTION__OPEN_TICKET="AI_CASE_DEFLECTION__OPEN_TICKET",e.KHUB__PROCESS="KHUB__PROCESS",e.KHUB__SEARCH="KHUB__SEARCH",e.LABELS__DOWNLOAD="LABELS__DOWNLOAD",e.LINK__SHARE="LINK__SHARE",e.PAGE__DISPLAY="PAGE__DISPLAY",e.PERSONAL_BOOK__CREATE="PERSONAL_BOOK__CREATE",e.PERSONAL_BOOK__DELETE="PERSONAL_BOOK__DELETE",e.PERSONAL_BOOK__UPDATE="PERSONAL_BOOK__UPDATE",e.PERSONAL_TOPIC__CREATE="PERSONAL_TOPIC__CREATE",e.PERSONAL_TOPIC__UPDATE="PERSONAL_TOPIC__UPDATE",e.PERSONAL_TOPIC__DELETE="PERSONAL_TOPIC__DELETE",e.SAVED_SEARCH__CREATE="SAVED_SEARCH__CREATE",e.SAVED_SEARCH__DELETE="SAVED_SEARCH__DELETE",e.SAVED_SEARCH__UPDATE="SAVED_SEARCH__UPDATE",e.SEARCH_PAGE__SELECT="SEARCH_PAGE__SELECT",e.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU="SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU",e.TOPIC__AI_TRANSLATE="TOPIC__AI_TRANSLATE",e.TOPIC__RATE="TOPIC__RATE",e.TOPIC__START_DISPLAY="TOPIC__START_DISPLAY",e.TOPIC__UNRATE="TOPIC__UNRATE",e.USER__LOGIN="USER__LOGIN",e.USER__LOGOUT="USER__LOGOUT",e.HEARTBEAT="HEARTBEAT"})(ta||(ta={}));var ra;(function(e){e.STANDARD="STANDARD",e.STRUCTURAL="STRUCTURAL"})(ra||(ra={}));var na;(function(e){e.THIRD_PARTY="THIRD_PARTY",e.OFF_THE_GRID="OFF_THE_GRID",e.CONTENT_PACKAGER="CONTENT_PACKAGER",e.PAGES="PAGES",e.DESIGNED_READER="DESIGNED_READER"})(na||(na={}));var ia;(function(e){e.HOMEPAGE="HOMEPAGE",e.CUSTOM="CUSTOM",e.HEADER="HEADER",e.READER="READER",e.TOPIC_TEMPLATE="TOPIC_TEMPLATE",e.SEARCH="SEARCH",e.SEARCH_RESULT="SEARCH_RESULT",e.SEARCH_ANNOUNCEMENT="SEARCH_ANNOUNCEMENT",e.LINK_PREVIEW="LINK_PREVIEW",e.UD_VIEWER="UD_VIEWER",e.ASSET_VIEWER="ASSET_VIEWER"})(ia||(ia={}));var sa;(function(e){e.CLASSIC="CLASSIC",e.CUSTOM="CUSTOM",e.DESIGNER="DESIGNER"})(sa||(sa={}));var oa;(function(e){e.AND="AND",e.OR="OR",e.MONOVALUED="MONOVALUED"})(oa||(oa={}));var aa;(function(e){e.NONE="NONE",e.ALPHABET="ALPHABET",e.VERSION="VERSION"})(aa||(aa={}));var la;(function(e){e.STARS="STARS",e.LIKE="LIKE",e.DICHOTOMOUS="DICHOTOMOUS",e.NO_RATING="NO_RATING"})(la||(la={}));var ca;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR",e.CUSTOM="CUSTOM"})(ca||(ca={}));var si;(function(e){e.OPTIONAL="OPTIONAL",e.MANDATORY="MANDATORY"})(si||(si={}));var ua;(function(e){e.ASC="ASC",e.DESC="DESC"})(ua||(ua={}));var da;(function(e){e.ALPHA="ALPHA",e.NATURAL="NATURAL"})(da||(da={}));var oi;(function(e){e.EVERYWHERE="EVERYWHERE",e.TITLE_ONLY="TITLE_ONLY",e.NONE="NONE"})(oi||(oi={}));var pa;(function(e){e.ARTICLE="ARTICLE",e.BOOK="BOOK",e.SHARED_BOOK="SHARED_BOOK",e.HTML_PACKAGE="HTML_PACKAGE"})(pa||(pa={}));var fa;(function(e){e.FLUIDTOPICS="FLUIDTOPICS",e.EXTERNAL="EXTERNAL"})(fa||(fa={}));var ha;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC",e.PERSONAL_BOOK="PERSONAL_BOOK",e.SHARED_BOOK="SHARED_BOOK",e.HTML_PACKAGE="HTML_PACKAGE"})(ha||(ha={}));var ma;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(ma||(ma={}));var ga;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC",e.HTML_PACKAGE="HTML_PACKAGE",e.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(ga||(ga={}));var ai;(function(e){e.DEFAULT="DEFAULT",e.DOCUMENTS="DOCUMENTS",e.ALL_TOPICS="ALL_TOPICS",e.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(ai||(ai={}));var ya;(function(e){e.PLAIN_TEXT="PLAIN_TEXT",e.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",e.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(ya||(ya={}));var U;(function(e){e.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",e.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",e.HTML_EXPORT_USER="HTML_EXPORT_USER",e.PDF_EXPORT_USER="PDF_EXPORT_USER",e.SAVED_SEARCH_USER="SAVED_SEARCH_USER",e.COLLECTION_USER="COLLECTION_USER",e.OFFLINE_USER="OFFLINE_USER",e.ANALYTICS_USER="ANALYTICS_USER",e.BETA_USER="BETA_USER",e.DEBUG_USER="DEBUG_USER",e.PRINT_USER="PRINT_USER",e.RATING_USER="RATING_USER",e.FEEDBACK_USER="FEEDBACK_USER",e.GENERATIVE_AI_USER="GENERATIVE_AI_USER",e.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_USER",e.CONTENT_PUBLISHER="CONTENT_PUBLISHER",e.BEHAVIOR_DATA_USER="BEHAVIOR_DATA_USER",e.ANNOUNCEMENT_ADMIN="ANNOUNCEMENT_ADMIN",e.KHUB_ADMIN="KHUB_ADMIN",e.USERS_ADMIN="USERS_ADMIN",e.PORTAL_ADMIN="PORTAL_ADMIN",e.ADMIN="ADMIN"})(U||(U={}));var ae;(function(e){e.SEARCHES="SEARCHES",e.BOOKMARKS="BOOKMARKS",e.BOOKS="BOOKS",e.COLLECTIONS="COLLECTIONS"})(ae||(ae={}));var va;(function(e){e.UNAUTHENTICATED="UNAUTHENTICATED",e.USER_INCOMPLETE="USER_INCOMPLETE",e.MFA_REQUIRED="MFA_REQUIRED",e.AUTHENTICATED="AUTHENTICATED"})(va||(va={}));var ba;(function(e){e.UNREACHABLE="UNREACHABLE",e.UNAUTHORIZED="UNAUTHORIZED",e.FORBIDDEN="FORBIDDEN",e.INCOMPATIBLE="INCOMPATIBLE",e.FAILED="FAILED",e.OK="OK"})(ba||(ba={}));var xa;(function(e){e.VALID="VALID",e.INVALID="INVALID"})(xa||(xa={}));var Aa;(function(e){e.INACCURATE="INACCURATE",e.INCOMPLETE="INCOMPLETE",e.OFF_TOPIC="OFF_TOPIC",e.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",e.SUMMARY="SUMMARY",e.SEMANTIC_SEARCH="SEMANTIC_SEARCH",e.CHATBOT_INSTRUCTIONS="CHATBOT_INSTRUCTIONS",e.DOCUMENTATION="DOCUMENTATION",e.OTHER="OTHER"})(Aa||(Aa={}));var Sa;(function(e){e.INACCURATE="INACCURATE",e.INCOMPLETE="INCOMPLETE",e.OFF_TOPIC="OFF_TOPIC",e.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",e.SLOW="SLOW",e.OTHER="OTHER"})(Sa||(Sa={}));var Ea;(function(e){e.JSON="JSON",e.TEXT="TEXT"})(Ea||(Ea={}));var Ca;(function(e){e.JSON="JSON",e.TEXT="TEXT"})(Ca||(Ca={}));var wa;(function(e){e.TEXT="TEXT",e.HTML="HTML"})(wa||(wa={}));var Oa;(function(e){e.IN_PROGRESS="IN_PROGRESS",e.ERROR="ERROR",e.DONE="DONE"})(Oa||(Oa={}));var Ta;(function(e){e.HTML="HTML",e.MARKDOWN="MARKDOWN"})(Ta||(Ta={}));var Ra;(function(e){e.SOURCES="SOURCES",e.ENRICH_AND_CLEAN="ENRICH_AND_CLEAN",e.VOCABULARIES="VOCABULARIES",e.METADATA="METADATA",e.PRETTY_URL="PRETTY_URL",e.ACCESS_RULE="ACCESS_RULE",e.DESIGNED_PAGES="DESIGNED_PAGES",e.THEME_STUDIO="THEME_STUDIO",e.PORTAL_GENERAL="PORTAL_GENERAL",e.ASSETS="ASSETS",e.CODE_LIBRARY="CODE_LIBRARY",e.THEME="THEME",e.CONTENT_STYLES="CONTENT_STYLES",e.HOMEPAGE="HOMEPAGE",e.CLASSIC_SEARCH_PAGE="CLASSIC_SEARCH_PAGE",e.CLASSIC_READER_PAGE="CLASSIC_READER_PAGE",e.PORTAL_METADATA="PORTAL_METADATA",e.LANGUAGES="LANGUAGES",e.PRINT_TEMPLATES="PRINT_TEMPLATES",e.OFFLINE="OFFLINE",e.CUSTOM_JS="CUSTOM_JS",e.CONFIDENTIALITY="CONFIDENTIALITY",e.NOTIFICATIONS="NOTIFICATIONS"})(Ra||(Ra={}));var _a;(function(e){e.MAP="MAP",e.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(_a||(_a={}));var Gc={[U.PERSONAL_BOOK_SHARE_USER]:[U.PERSONAL_BOOK_USER],[U.HTML_EXPORT_USER]:[U.PERSONAL_BOOK_USER],[U.PDF_EXPORT_USER]:[U.PERSONAL_BOOK_USER],[U.KHUB_ADMIN]:[U.CONTENT_PUBLISHER],[U.ADMIN]:[U.KHUB_ADMIN,U.USERS_ADMIN,U.PORTAL_ADMIN,U.BEHAVIOR_DATA_USER],[U.GENERATIVE_AI_EXPORT_USER]:[U.GENERATIVE_AI_USER]};function La(e,t){return e===t||(Gc[e]??[]).some(r=>La(r,t))}function Pa(e,t){return e==null?!1:(Array.isArray(e)?e:Array.isArray(e.roles)?e.roles:Array.isArray(e.profile?.roles)?e.profile.roles:[]).some(n=>La(n,t))}var qr=g(w());var li=g(w());var nt=class e{static get(t){let{baseUrl:r,apiIntegrationIdentifier:n}=T.getState(),i=t??n;if(r&&i&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(r,i,!0)}static await(t){return new Promise(r=>{let n=e.get(t);if(n)r(n);else{let i=T.subscribe(()=>{n=e.get(t),n&&(i(),r(n))})}})}};var Mt=class{constructor(t){this.overrideApi=t}get api(){var t;return(t=this.overrideApi)!==null&&t!==void 0?t:nt.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):nt.await()}};var Y=class extends Mt{constructor(t=!0,r){var n;super(r),this.sortObjectFields=(s,o)=>typeof o!="object"||o==null||Array.isArray(o)?o:Object.fromEntries(Object.entries(o).sort(([a],[l])=>a.localeCompare(l)));let i=this.constructor;i.commonCache=(n=i.commonCache)!==null&&n!==void 0?n:new li.CacheRegistry,this.cache=t?i.commonCache:new li.CacheRegistry}clearCache(){this.cache.clearAll()}hash(t){return String(Array.from(JSON.stringify(t,this.sortObjectFields)).reduce((r,n)=>0|31*r+n.charCodeAt(0),0))}};var jr=class extends Y{async listMySearches(){let{session:t}=T.getState();return Pa(t,U.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(t.profile.userId),300*1e3):[]}};var Fr=class extends Y{async listMyBookmarks(){let t=T.getState().session;return t?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(t.profile.userId),300*1e3):[]}};var Vr=class extends Y{constructor(){super(...arguments),this.CACHE_DURATION=180*1e3}async getUserAssetCount(t){if(this.isAuthenticated())return this.cache.get(`user-asset-count-${t}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/${t}`),this.CACHE_DURATION)}async getUserBookmarkCountByMap(t){if(this.isAuthenticated())return this.cache.get(`user-bookmark-count-by-map-${t}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/BOOKMARKS/${t}`),this.CACHE_DURATION)}isAuthenticated(){let t=T.getState().session;return!!t?.sessionAuthenticated}};var Wr=class extends Y{constructor(){super(...arguments),this.CACHE_DURATION=180*1e3}async getUserAssetLabels(){return this.isAuthenticated()?this.cache.get("user-asset-labels",async()=>(await this.awaitApi).get("/internal/api/webapp/user/assets/labels"),this.CACHE_DURATION):[]}isAuthenticated(){let t=T.getState().session;return!!t?.sessionAuthenticated}};var Yc="ft-user-assets",Xc={setAssetCount:(e,t)=>{let{userAssetType:r,count:n}=t.payload.assetCount;e.assetCounts.allAsset[r]=n},clearAssetCount:e=>{Object.values(ae).forEach(t=>{e.assetCounts.allAsset[t]=void 0})},setBookmarkCountByMap:(e,t)=>{let r=t.payload.mapId;e.assetCounts.bookmarkByMap[r]=t.payload.count},clearBookmarkCountByMap:e=>{e.assetCounts.bookmarkByMap={}},addAsset:(e,t)=>{let{assetType:r,mapId:n,asset:i}=t.payload;ui(e,r,[...ci(e,r),i]),Na(e,r,1,n),Da(e,i)},editAsset:(e,t)=>{let{assetType:r,asset:n}=t.payload;ui(e,r,ci(e,r).map(i=>i.id===n.id?n:i)),Da(e,n)},removeAsset:(e,t)=>{let{assetType:r,mapId:n,assetId:i}=t.payload;ui(e,r,ci(e,r).filter(s=>s.id!==i)),Na(e,r,-1,n)}},Ma={[ae.SEARCHES]:"savedSearches",[ae.BOOKMARKS]:"bookmarks",[ae.BOOKS]:void 0,[ae.COLLECTIONS]:void 0},ci=(e,t)=>{var r;let n=Ma[t];return n?(r=e[n])!==null&&r!==void 0?r:[]:[]},ui=(e,t,r)=>{let n=Ma[t];n&&(e[n]=r)},Na=(e,t,r,n)=>{let i=e.assetCounts.allAsset[t];if(i!==void 0&&(e.assetCounts.allAsset[t]=Math.max(0,i+r),t===ae.BOOKMARKS&&n)){let s=e.assetCounts.bookmarkByMap[n];e.assetCounts.bookmarkByMap[n]=Math.max(0,s+r)}},Da=(e,t)=>{let r=e.assetLabels.map(i=>i.title),n=t.labels.filter(i=>!r.includes(i)).map(i=>({title:i}));e.assetLabels.push(...n)},q=qr.FtReduxStore.get({name:Yc,reducers:Xc,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(ae).map(e=>[e,void 0])),bookmarkByMap:{}},assetLabels:[]}}),di=class{constructor(t=new Vr,r=new Wr){this.assetCountsService=t,this.assetLabelsService=r,this.currentSession=T.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Fr,this.savedSearchesService=new jr,T.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var t;let{session:r}=T.getState();(0,qr.deepEqual)((t=this.currentSession)===null||t===void 0?void 0:t.profile,r?.profile)||(this.currentSession=r,this.clearMySearches(),this.reloadBookmarks(),this.clearUserAssetCounts(),this.reloadAssetLabels())}clearUserAssetCounts(){this.assetCountsService.clearCache(),q.actions.clearAssetCount(),q.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),q.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),q.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let t=await this.savedSearchesService.listMySearches();q.actions.savedSearches(t)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let t=await this.assetLabelsService.getUserAssetLabels();q.actions.assetLabels(t)}async loadAssetCount(t){let r=await this.assetCountsService.getUserAssetCount(t);r&&q.getState().assetCounts.allAsset[t]!==r.count&&q.actions.setAssetCount({assetCount:r})}async loadBookmarkByMapId(t){let r=await this.assetCountsService.getUserBookmarkCountByMap(t);r&&q.getState().assetCounts.bookmarkByMap[t]!==r.count&&q.actions.setBookmarkCountByMap({count:r.count,mapId:t})}async reloadAssetCount(t){this.assetCountsService.clearCache();let r=Object.keys(q.getState().assetCounts.bookmarkByMap).length!==0;t===ae.BOOKMARKS&&r&&q.actions.clearBookmarkCountByMap(),q.getState().assetCounts.allAsset[t]!==void 0&&await this.loadAssetCount(t)}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var t;if(this.bookmarksAreUsed){let r=!((t=this.currentSession)===null||t===void 0)&&t.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;q.actions.bookmarks(r)}}},Qc=new di;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=Qc);var pi=class{addCommand(t,r=!1){T.commands.add(t,r)}consumeCommand(t){return T.commands.consume(t)}};window.FluidTopicsAppInfoStoreService=new pi;var le=g(w());var Ia,It=class extends CustomEvent{constructor(t){super("ft-i18n-context-loaded",{detail:t})}},Jc=Symbol("clearAfterUnitTest"),Kr=class extends(0,le.withEventBus)(Y){constructor(t){super(),this.messageContextProvider=t,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[Ia]=()=>{this.defaultMessages={},this.cache=new le.CacheRegistry,this.listeners={}},this.currentUiLocale=T.getState().uiLocale,T.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:t}=T.getState();this.currentUiLocale!==t&&(this.currentUiLocale=t,this.cache.clearAll(),this.notifyAll())}addContext(t){let r=t.name.toLowerCase();this.cache.setFinal(r,t),this.notify(r)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(t,r){var n;if(t=t.toLowerCase(),r&&Object.keys(r).length>0){let i={...(n=this.defaultMessages[t])!==null&&n!==void 0?n:{},...r};(0,le.deepEqual)(this.defaultMessages[t],i)||(this.defaultMessages[t]=i,await this.notify(t))}return this.fetchContext(t)}resolveContext(t){var r,n;return this.fetchContext(t),(n=(r=this.cache.getNow(t))===null||r===void 0?void 0:r.messages)!==null&&n!==void 0?n:{}}resolveRawMessage(t,r){let n=t.toLowerCase();return this.resolveContext(n)[r]}resolveMessage(t,r,...n){var i;let s=t.toLowerCase(),o=this.resolveContext(s);return new le.ParametrizedLabelResolver((i=this.defaultMessages[s])!==null&&i!==void 0?i:{},o).resolve(r,...n)}async fetchContext(t){let r=!this.cache.has(t),n;try{n=await this.cache.get(t,()=>this.messageContextProvider(this.currentUiLocale,t)),r&&await this.notify(t)}catch(i){!(i instanceof le.CanceledPromiseError)&&r&&console.error(i)}return n}subscribe(t,r){var n;return t=t.toLowerCase(),this.listeners[t]=(n=this.listeners[t])!==null&&n!==void 0?n:new Set,this.listeners[t].add(r),()=>{var i;return(i=this.listeners[t])===null||i===void 0?void 0:i.delete(r)}}async notifyAll(){let t=Object.keys(this.listeners);document.body.dispatchEvent(new It({loadedContexts:t})),this.dispatchEvent(new It({loadedContexts:t})),await Promise.all(t.map(r=>this.notify(r,!1)))}async notify(t,r=!0){r&&(document.body.dispatchEvent(new It({loadedContexts:[t]})),this.dispatchEvent(new It({loadedContexts:[t]}))),this.listeners[t]!=null&&await Promise.all([...this.listeners[t].values()].map(n=>(0,le.delay)(0).then(()=>n()).catch(()=>null)))}};Ia=Jc;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends Kr{constructor(){super(async(e,t)=>(await this.awaitApi).getFluidTopicsMessageContext(e,t))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends Kr{constructor(){super(async(e,t)=>(await this.awaitApi).getCustomMessageContext(e,t))}});var kt=window.FluidTopicsI18nService,zr=window.FluidTopicsCustomI18nService;var ka=g(w()),fi=class{highlightHtml(t,r,n){(0,ka.highlightHtml)(t,r,n)}};window.FluidTopicsHighlightHtmlService=new fi;var Ua=g(w());var hi=class{isDate(t){var r,n,i,s;return(s=(i=((n=(r=T.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&n!==void 0?n:[]).find(a=>a.key===t))===null||i===void 0?void 0:i.date)!==null&&s!==void 0?s:!1}format(t,r){var n,i,s,o;if(t==null)return"";try{return Ua.DateFormatter.format(t,(n=r?.locale)!==null&&n!==void 0?n:T.getState().uiLocale,(i=r?.longFormat)!==null&&i!==void 0?i:!1,(s=r?.withTime)!==null&&s!==void 0?s:!1,(o=r?.onlyTime)!==null&&o!==void 0?o:!1)}catch(a){throw console.error(`Date ${JSON.stringify(t)} is not valid`,a),a}}};window.FluidTopicsDateService=new hi;var $a=g(w());var sr=class{static get(t,r){var n,i;let s=T.getState(),{lang:o,region:a}=(i=(n=s.defaultLocales)===null||n===void 0?void 0:n.defaultContentLocale)!==null&&i!==void 0?i:{lang:"en",region:"US"};return new $a.SearchPlaceConverter(s.baseUrl,t??20,s.searchInAllLanguagesAllowed,r??`${o}-${a}`)}};var mi=class{urlToSearchRequest(t){return sr.get().parse(t)}searchRequestToUrl(t){return sr.get().serialize(t)}};window.FluidTopicsUrlService=new mi;var Re=g(w());var it=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:{currentItem:t}})}};it.eventName="change";var gi=class{itemName(t){return`fluid-topics-history-item-${t}`}get(t){let r=sessionStorage.getItem(this.itemName(t));return r?JSON.parse(r):void 0}set(t,r){sessionStorage.setItem(this.itemName(t),JSON.stringify(r))}},Ha=new gi;var Gr=class e extends Re.WithEventBus{static build(){return new e(window.history,Ha,()=>window.location,!1)}constructor(t,r,n,i){var s,o;super(),this.history=t,this.historyStorage=r,this.windowLocation=n,this.states=[],this.realPushState=t.pushState,this.realReplaceState=t.replaceState,this.initialIndex=(o=(s=t.state)===null||s===void 0?void 0:s.index)!==null&&o!==void 0?o:t.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(i)}setCurrentState(t,r=!1){let n=r&&this.currentIndex===t.index-1;this.currentState={...this.buildCurrentState(),...t},this.currentIndex=this.currentState.index,this.states[this.currentIndex]=this.currentState,n&&(this.states=this.states.slice(0,this.currentIndex+1)),this.historyStorage.set(this.currentIndex,this.currentState),(0,Re.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,window.location.href]),setTimeout(()=>this.dispatchEvent(new it(this.currentItem())),0)}installProxies(){let t=r=>(n,i,[s,o,a])=>{let l=r(),c={...l===this.currentIndex?this.currentState:void 0,...s,index:l,href:typeof a=="string"?a:(a??this.windowLocation()).href};n.apply(i,[c,o,a]),this.setCurrentState(c,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:t(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:t(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",t=>this.setCurrentState(t.state)),document.querySelector("title")==null&&document.head.append(document.createElement("title")),new MutationObserver(()=>this.updateCurrentState({title:document.title})).observe(document.querySelector("title"),{subtree:!0,characterData:!0,childList:!0})}initData(t){for(let r=this.history.length-1;r>=0;r--)t?this.states[r]=this.historyStorage.get(r):setTimeout(()=>this.states[r]=this.historyStorage.get(r),this.history.length-r)}updateCurrentState(t){var r;let n={...this.buildCurrentState(),...t,index:this.currentIndex,title:(r=t?.title)!==null&&r!==void 0?r:this.currentState.title};this.setCurrentState(n)}addHistoryChangeListener(t){this.addEventListener(it.eventName,t)}removeHistoryChangeListener(t){this.removeEventListener(it.eventName,t)}currentItem(){return(0,Re.deepCopy)(this.currentState)}back(){let t=this.previousDifferentMajorPosition();t>=0?this.history.go(t-this.currentIndex):this.currentIndex!==this.initialIndex?this.history.go(this.initialIndex-this.currentIndex):this.history.back()}backwardItem(){return(0,Re.deepCopy)(this.states[this.previousDifferentMajorPosition()])}backwardItemMatching(t){let r=this.states.filter(n=>!!n).filter(n=>n.index<this.currentIndex).reverse();return(0,Re.deepCopy)(r.find(n=>t(n)))}previousDifferentMajorPosition(){let t=this.currentIndex>0?this.currentIndex-1:0;for(;t>0&&!this.isDifferentMajorState(t);)t--;return t}forward(){let t=this.nextMajorPosition();t&&t<this.states.length?this.history.go(t-this.currentIndex):this.history.forward()}forwardItem(){let t=this.nextMajorPosition();if(t)return(0,Re.deepCopy)(this.states[t])}nextMajorPosition(){let t=this.currentIndex;if(!(t>=this.states.length)){do t++;while(t<this.states.length&&!this.isDifferentMajorState(t));return this.getHigherPositionInTheSameState(t)}}getHigherPositionInTheSameState(t){var r;let n=(r=this.states[t])===null||r===void 0?void 0:r.majorStateId;if(!n)return t;let i=t,s=t+1;for(;this.states.length>s&&!this.isDifferentMajorState(s,n);)this.hasState(s)&&(i=s),s++;return i}buildCurrentState(){var t,r;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(r=(t=this.history.state)===null||t===void 0?void 0:t.title)!==null&&r!==void 0?r:document.title}}hasState(t){return this.states[t]!=null}isDifferentMajorState(t,r){var n;if(!this.hasState(t))return!1;let i=r??this.currentState.majorStateId,s=(n=this.states[t])===null||n===void 0?void 0:n.majorStateId;return s==null||s!=i}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=Gr.build(),window.FluidTopicsHistoryService={currentItem:()=>window.FluidTopicsInternalHistoryService.currentItem(),back:()=>window.FluidTopicsInternalHistoryService.back(),forward:()=>window.FluidTopicsInternalHistoryService.forward(),backwardItem:()=>window.FluidTopicsInternalHistoryService.backwardItem(),forwardItem:()=>window.FluidTopicsInternalHistoryService.forwardItem(),backwardItemMatching:e=>window.FluidTopicsInternalHistoryService.backwardItemMatching(e),addHistoryChangeListener:e=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(e),removeHistoryChangeListener:e=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(e)});var Ba=g(H());var ja=Ba.css`
|
|
262
262
|
`;var Va=g(H()),Z=g(K()),at=g(w());var st=g(w());function Fa(e,t){let{authenticationRequired:r,session:n}=T.getState();return r&&!n?.sessionAuthenticated?Promise.resolve(t):e()}var Yr=class extends Mt{async updateUiLocale(t){return(await this.awaitApi).updateUiLocale(t)}};var yi=class e extends st.FtStateManager{static build(t){return new e(T,t)}constructor(t,r){super(),this.store=t,this.cache=new st.CacheRegistry,this.withManualResources=!0,this.localesConfiguration=null,this.userLocaleService=new Yr,this.cleanSessionDebouncer=new st.Debouncer,this.reloadDebouncer=new st.Debouncer(500),this.apiProvider=r??(()=>nt.get())}setWithManualResources(t){this.withManualResources=t,this.updateIfNeeded()}async initService(){this.store.addEventListener(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.localesConfiguration==null&&this.updateLocalesConfiguration(),(this.store.getState().availableContentLocales==null||this.store.getState().availableContentLocales.length==0)&&this.updateAvailableContentLocales())}async updateSession(){let t=await this.cache.get("session",async()=>{let r=await this.apiProvider().getCurrentSession();return r.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.setSession(void 0)},r.idleTimeoutInMillis),r});this.setSession(t)}async updateMetadataConfiguration(){this.setMetadataConfiguration(await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration()))}async updateLocalesConfiguration(){this.setLocalesConfiguration(await this.cache.get("localesConfiguration",()=>this.apiProvider().getLocalesConfiguration()))}async updateAvailableContentLocales(){var t;let r=await this.cache.get("availableContentLocales",()=>Fa(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}));this.setAvailableContentLocales((t=r.contentLocales)!==null&&t!==void 0?t:[])}reloadConfiguration(){var t;(t=this.cache)===null||t===void 0||t.clear("availableContentLocales"),typeof this.updateAvailableContentLocales=="function"&&this.updateAvailableContentLocales()}setBaseUrl(t){this.store.actions.baseUrl(t),window.fluidTopicsBaseUrl=t}setApiIntegrationIdentifier(t){this.store.actions.apiIntegrationIdentifier(t)}setApiIntegrationAppVersion(t){this.store.actions.apiIntegrationAppVersion(t)}setUiLocale(t){this.store.actions.uiLocale(t)}setLocalesConfiguration(t){var r,n,i,s,o;this.localesConfiguration=t,this.store.actions.defaultLocales(this.localesConfiguration.defaultLocales),this.store.actions.availableUiLocales((r=this.localesConfiguration.availableUiLocales)!==null&&r!==void 0?r:[]),this.store.actions.searchInAllLanguagesAllowed((n=this.localesConfiguration.allLanguagesAllowed)!==null&&n!==void 0?n:!1),this.store.actions.searchLanguageSetsUiLanguage((i=this.localesConfiguration.searchLanguageSetsUiLanguage)!==null&&i!==void 0?i:!1),this.store.actions.uiLanguageSetsSearchLanguage((s=this.localesConfiguration.uiLanguageSetsSearchLanguage)!==null&&s!==void 0?s:!1),this.store.actions.uiLanguageSetsReaderLanguage((o=this.localesConfiguration.uiLanguageSetsReaderLanguage)!==null&&o!==void 0?o:!1),setTimeout(()=>this.updateIfNeeded())}setAvailableContentLocales(t){this.store.actions.availableContentLocales(t),setTimeout(()=>this.updateIfNeeded())}stopReloadDebouncer(){this.reloadDebouncer.cancel()}requestUiLocaleUpdate(t){this.userLocaleService.updateUiLocale({uiLocale:t}).then(r=>{r.uiLocaleChanged&&(this.reloadDebouncer.run(()=>window.location.reload()),this.store.dispatchEvent(new ir(r)))}).catch(()=>{})}setMetadataConfiguration(t){this.store.actions.metadataConfiguration(t),setTimeout(()=>this.updateIfNeeded())}setNoCustom(t){this.store.actions.noCustom(t)}setEditorMode(t){this.store.actions.editorMode(t)}setNoCustomComponent(t){this.store.actions.noCustomComponent(t)}setSession(t){this.store.actions.session(t),setTimeout(()=>this.updateIfNeeded())}setOpenExternalDocumentInNewTab(t){this.store.actions.openExternalDocumentInNewTab(t)}setNavigatorOnline(t){this.store.actions.navigatorOnline(t)}setForcedOffline(t){this.store.actions.forcedOffline(t)}setAuthenticationRequired(t){this.store.actions.authenticationRequired(t)}},vi=yi.build();var ot=class extends Event{constructor(t,r,n,i){super("context-request",{bubbles:!0,composed:!0}),this.context=t,this.contextTarget=r,this.callback=n,this.subscribe=i??!1}};var or=class{constructor(){this.pendingContextRequests=new Map,this.onContextProvider=t=>{let r=this.pendingContextRequests.get(t.context);if(r===void 0)return;this.pendingContextRequests.delete(t.context);let{requests:n}=r;for(let{elementRef:i,callbackRef:s}of n){let o=i.deref(),a=s.deref();o===void 0||a===void 0||o.dispatchEvent(new ot(t.context,o,a,!0))}},this.onContextRequest=t=>{if(t.subscribe!==!0)return;let r=t.contextTarget??t.composedPath()[0],n=t.callback,i=this.pendingContextRequests.get(t.context);i===void 0&&this.pendingContextRequests.set(t.context,i={callbacks:new WeakMap,requests:[]});let s=i.callbacks.get(r);s===void 0&&i.callbacks.set(r,s=new WeakSet),s.has(n)||(s.add(n),i.requests.push({elementRef:new WeakRef(r),callbackRef:new WeakRef(n)}))}}attach(t){t.addEventListener("context-request",this.onContextRequest),t.addEventListener("context-provider",this.onContextProvider)}detach(t){t.removeEventListener("context-request",this.onContextRequest),t.removeEventListener("context-provider",this.onContextProvider)}};var W=function(e,t,r,n){var i=arguments.length,s=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},D=class extends at.FtLitElementRedux{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.apiIntegrationAppVersion="ft-integration-app-version",this.uiLocale="en-US",this.editorMode=!1,this.noCustom=!1,this.openExternalDocumentInNewTab=!1,this.noCustomComponent=!1,this.withManualResources=!1,this.navigatorOnline=!1,this.forcedOffline=!1,this.authenticationRequired=!1,this.messageContexts=[],this.stateManager=vi,this.contextRoot=new or}render(){return Va.html`
|
|
263
263
|
<slot></slot>
|
|
264
264
|
`}connectedCallback(){super.connectedCallback(),this.stateManager.initService(),this.contextRoot.attach(document.body)}disconnectedCallback(){super.disconnectedCallback(),this.contextRoot.detach(document.body)}update(t){var r;super.update(t),t.has("baseUrl")&&this.stateManager.setBaseUrl(this.baseUrl),t.has("apiIntegrationIdentifier")&&this.stateManager.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("apiIntegrationAppVersion")&&this.stateManager.setApiIntegrationAppVersion(this.apiIntegrationAppVersion),t.has("uiLocale")&&this.stateManager.setUiLocale(this.uiLocale),t.has("metadataConfiguration")&&this.stateManager.setMetadataConfiguration(this.metadataConfiguration),t.has("noCustom")&&this.stateManager.setNoCustom(this.noCustom),t.has("editorMode")&&this.stateManager.setEditorMode(this.editorMode),t.has("noCustomComponent")&&this.stateManager.setNoCustomComponent(this.noCustomComponent),t.has("session")&&this.stateManager.setSession(this.session),t.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(n=>kt.addContext(n)),t.has("openExternalDocumentInNewTab")&&this.stateManager.setOpenExternalDocumentInNewTab(this.openExternalDocumentInNewTab),t.has("navigatorOnline")&&this.stateManager.setNavigatorOnline(this.navigatorOnline),t.has("forcedOffline")&&this.stateManager.setForcedOffline(this.forcedOffline),t.has("authenticationRequired")&&this.stateManager.setAuthenticationRequired(this.authenticationRequired),t.has("withManualResources")&&((r=this.stateManager)===null||r===void 0||r.setWithManualResources(this.withManualResources)),setTimeout(()=>this.stateManager.updateIfNeeded())}};D.elementDefinitions={};D.styles=ja;W([(0,Z.property)()],D.prototype,"baseUrl",void 0);W([(0,Z.property)()],D.prototype,"apiIntegrationIdentifier",void 0);W([(0,Z.property)()],D.prototype,"apiIntegrationAppVersion",void 0);W([(0,Z.property)()],D.prototype,"uiLocale",void 0);W([(0,at.jsonProperty)(null)],D.prototype,"availableUiLocales",void 0);W([(0,at.jsonProperty)(null)],D.prototype,"metadataConfiguration",void 0);W([(0,Z.property)({type:Boolean})],D.prototype,"editorMode",void 0);W([(0,Z.property)({type:Boolean})],D.prototype,"noCustom",void 0);W([(0,Z.property)({type:Boolean})],D.prototype,"openExternalDocumentInNewTab",void 0);W([(0,Z.property)({converter:{fromAttribute(e){return e==="false"?!1:e==="true"||(e??!1)}}})],D.prototype,"noCustomComponent",void 0);W([(0,Z.property)({type:Boolean})],D.prototype,"withManualResources",void 0);W([(0,Z.property)({type:Boolean})],D.prototype,"navigatorOnline",void 0);W([(0,Z.property)({type:Boolean})],D.prototype,"forcedOffline",void 0);W([(0,Z.property)({type:Boolean})],D.prototype,"authenticationRequired",void 0);W([(0,at.jsonProperty)([])],D.prototype,"messageContexts",void 0);W([(0,at.jsonProperty)(void 0)],D.prototype,"session",void 0);var qa=g(w());var Wa={"ft-app-context":D};(0,qa.customElements)(Wa);var Ka=g(K());var bi=class{fromLocalizableLabel(t){return t.type=="PLAIN_TEXT"?{message:t.text}:{key:t.key,custom:t.type=="LOCALIZED_CUSTOM",context:t.context,message:t.key}}fromAttribute(t){if(t!=null)try{return JSON.parse(t)}catch{if(this.isI18nKey(t)){let[r,n]=t.split(".");return{context:r,key:n,custom:r!=="officialContext",message:""}}return{message:t}}}toAttribute(t){if(t!=null)return JSON.stringify(t)}isI18nKey(t){return t.match(/^[\w-]+\.[\w-]+$/)}},Ut=new bi;var tu=function(e,t,r,n){var i=arguments.length,s=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},lr=Symbol("i18nAttributes"),za=Symbol("i18nListAttributes"),Ga=Symbol("i18nProperties"),Xr=Symbol("i18nContexts"),ar=Symbol("i18nUnsubs"),Zr=(0,$t.applyMixinOnce)(Symbol("withI18n"),function(e){var t,r;class n extends e{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[t]=new Map,this[r]=new Map}getI18nService(s){return s??this.useCustomMessageContexts?zr:kt}i18n(s){let{context:o,key:a,message:l}=s,{custom:c,args:u,argsProvider:d}=s;if(o&&a){this.hasI18nContext(o)||this.addI18nContext(o,void 0,c);let p=u??(d?d(this):[]);return this.getI18nService(c).resolveMessage(o,a,...p)}return l}async awaitI18n(s){let{context:o,custom:a}=s;return o&&await this.getI18nService(a).prepareContext(o),this.i18n(s)}customI18n(s,o){if(Ut.isI18nKey(s)){let[a,l]=s.split(".");return this.i18n({custom:!0,context:a,key:l,...o})||s}return s}firstUpdated(s){super.firstUpdated(s),this.updateI18nAttributes(()=>!0),this.updateI18nProperties(()=>!0)}update(s){super.update(s),this.updateI18nAttributes((o,a,l)=>s.has(a)||typeof o.argsProvider=="function"),this.updateI18nProperties(o=>typeof o.argsProvider=="function")}onI18nUpdate(s){this.updateI18nAttributes((o,a,l)=>{var c;return((c=l?.context)===null||c===void 0?void 0:c.toLowerCase())===s}),this.updateI18nProperties(o=>o.context.toLowerCase()===s),this.requestUpdate()}updateI18nAttributes(s){var o,a;let l=this,c=(u,d,p)=>p?.context&&p.key&&s(u,d,p)?{...p,message:this.i18n({context:p.context,key:p.key,custom:p.custom,...u})}:p;(o=this[lr])===null||o===void 0||o.forEach((u,d)=>l[d]=c(u,d,l[d])),(a=this[za])===null||a===void 0||a.forEach((u,d)=>{var p;return l[d]=(p=l[d])===null||p===void 0?void 0:p.map(f=>c(u,d,f))})}updateI18nProperties(s){var o;(o=this[Ga])===null||o===void 0||o.forEach((a,l)=>{s(a,l)&&(this[l]=this.i18n(a))})}addI18nMessages(s,o,a){console.warn('Deprecated usage of method "addI18nMessages", use "addI18nContext" instead.'),this.addI18nContext(s,o,a)}addI18nContext(s,o,a){let l=(typeof s=="string"?s:s.name).toLowerCase();a=typeof s=="string"?a:s.custom,this[Xr].set(l,{isCustomContext:a}),this[ar].has(l)||this[ar].set(l,this.getI18nService(a).subscribe(l,()=>this.onI18nUpdate(l))),this.getI18nService(a).prepareContext(l,o)}hasI18nContext(s){return this[Xr].has(s.toLowerCase())}connectedCallback(){super.connectedCallback(),this[Xr].forEach((s,o)=>this.addI18nContext(o,void 0,s.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[ar].forEach(s=>s()),this[ar].clear()}}return t=Xr,r=ar,tu([(0,Ka.property)({type:Boolean})],n.prototype,"useCustomMessageContexts",void 0),n}),Qr=class extends Zr($t.FtLitElement){},Jr=class extends Zr($t.FtLitElementRedux){};var Ya=g(w());var xi=class{fromAttribute(t){if(!t)return[];try{let r=JSON.parse(t);return Array.isArray(r)?r.map(n=>typeof n=="string"?Ut.fromAttribute(n):n):[]}catch{return[]}}toAttribute(t){if(t!=null)return JSON.stringify(t)}},ru=new xi;var Xa=(e,t)=>(r,n)=>{var i;r.constructor.createProperty(n,{type:Object,hasChanged:Ya.hasChanged,converter:Ut,...t}),r[lr]=(i=r[lr])!==null&&i!==void 0?i:new Map,r[lr].set(n,e??{})};var en=class e{static build(t){return new e(t)}static buildCustom(t){return new e(t,!0)}static fromGwt(t){return new e(t)}get service(){return this.custom?zr:kt}constructor(t,r=!1){this.name=t,this.custom=r,this.properties=new Proxy({},{get:(n,i)=>{let s=i;return o=>({context:this.name,key:s,custom:this.custom,args:typeof o=="function"?void 0:o,argsProvider:typeof o=="function"?o:void 0})}}),this.messages=new Proxy({},{get:(n,i)=>(...s)=>this.service.resolveMessage(this.name,i,...s)}),this.rawMessages=new Proxy({},{get:(n,i)=>this.service.resolveRawMessage(this.name,i)}),this.keys=new Proxy({},{get:(n,i)=>()=>i}),this.attributes=new Proxy({},{get:(n,i)=>()=>({context:this.name,key:i,message:this.service.resolveRawMessage(this.name,i)})})}};var Qa=g(H());var Ja=Qa.css`
|
|
@@ -410,7 +410,7 @@
|
|
|
410
410
|
<div></div>
|
|
411
411
|
<div></div>
|
|
412
412
|
</div>
|
|
413
|
-
`}};ct.styles=fl;var yl=g(w());var gl={"ft-loader":ct};(0,yl.customElements)(gl);var Ve=g(H()),Ei=g(un()),_=g(K());var
|
|
413
|
+
`}};ct.styles=fl;var yl=g(w());var gl={"ft-loader":ct};(0,yl.customElements)(gl);var Ve=g(H()),Ei=g(un()),_=g(K());var Ai=e=>e??k;var xl=g(H()),O=g(w());var vl=O.FtCssVariableFactory.extend("--ft-button-color","",O.designSystemVariables.colorPrimary),j={backgroundColor:O.FtCssVariableFactory.extend("--ft-button-background-color","",O.designSystemVariables.colorSurface),borderRadius:O.FtCssVariableFactory.extend("--ft-button-border-radius","",O.designSystemVariables.borderRadiusL),color:vl,fontSize:O.FtCssVariableFactory.extend("--ft-button-font-size","",xe.fontSize),iconSize:O.FtCssVariableFactory.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:O.FtCssVariableFactory.extend("--ft-button-ripple-color","",vl),verticalPadding:O.FtCssVariableFactory.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:O.FtCssVariableFactory.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:O.FtCssVariableFactory.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:O.FtCssVariableFactory.external(O.designSystemVariables.colorOpacityDisabled,"Design system")},bl=O.FtCssVariableFactory.extend("--ft-button-primary-color","",O.FtCssVariableFactory.extend("--ft-button-color","",O.designSystemVariables.colorOnPrimary)),Si={backgroundColor:O.FtCssVariableFactory.extend("--ft-button-primary-background-color","",O.FtCssVariableFactory.extend("--ft-button-background-color","",O.designSystemVariables.colorPrimary)),color:bl,rippleColor:O.FtCssVariableFactory.extend("--ft-button-primary-ripple-color","",bl)},be={borderRadius:O.FtCssVariableFactory.extend("--ft-button-dense-border-radius","",O.FtCssVariableFactory.extend("--ft-button-border-radius","",O.designSystemVariables.borderRadiusM)),verticalPadding:O.FtCssVariableFactory.create("--ft-button-dense-vertical-padding","","SIZE","2px"),horizontalPadding:O.FtCssVariableFactory.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),iconPadding:O.FtCssVariableFactory.create("--ft-button-dense-icon-padding","","SIZE","4px")},Al=xl.css`
|
|
414
414
|
:host {
|
|
415
415
|
display: inline-block;
|
|
416
416
|
max-width: 100%;
|
|
@@ -501,9 +501,9 @@
|
|
|
501
501
|
}
|
|
502
502
|
|
|
503
503
|
.ft-button.ft-button--primary {
|
|
504
|
-
background-color: ${
|
|
505
|
-
--button-internal-color: ${
|
|
506
|
-
${(0,O.setVariable)(re.color,
|
|
504
|
+
background-color: ${Si.backgroundColor};
|
|
505
|
+
--button-internal-color: ${Si.color};
|
|
506
|
+
${(0,O.setVariable)(re.color,Si.rippleColor)};
|
|
507
507
|
}
|
|
508
508
|
|
|
509
509
|
.ft-button--label {
|
|
@@ -574,8 +574,8 @@
|
|
|
574
574
|
<button part="button"
|
|
575
575
|
class="${(0,Ei.classMap)(this.buttonClasses)}"
|
|
576
576
|
aria-label="${(n=this.ariaLabel)!==null&&n!==void 0?n:this.getLabel()}"
|
|
577
|
-
aria-haspopup="${
|
|
578
|
-
aria-pressed="${
|
|
577
|
+
aria-haspopup="${Ai(this.ariaHasPopup)}"
|
|
578
|
+
aria-pressed="${Ai(this.ariaPressed)}"
|
|
579
579
|
?disabled=${this.isDisabled()}>
|
|
580
580
|
${i}
|
|
581
581
|
</button>
|
|
@@ -590,7 +590,7 @@
|
|
|
590
590
|
<ft-icon part="icon" .variant=${this.iconVariant} .value=${this.icon}></ft-icon>
|
|
591
591
|
`:Ve.html`
|
|
592
592
|
<slot part="icon" name="icon"></slot>
|
|
593
|
-
`}focus(){var t;(t=this.button)===null||t===void 0||t.focus()}showTooltip(){var t;(t=this.tooltip)===null||t===void 0||t.show()}showTemporaryTooltip(t,r){var n;return(n=this.tooltip)===null||n===void 0?void 0:n.showTemporaryText(t,r)}setTooltipManual(t){this.tooltip&&(this.tooltip.manual=t)}click(){var t;(t=this.button)===null||t===void 0||t.click()}getLabel(){return this.label||this.getTextContent()}getTextContent(){return(0,de.unslotText)(this.slottedContent).trim()}hasTextContent(){return this.getTextContent().length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}};R.elementDefinitions={"ft-ripple":N,"ft-tooltip":B,"ft-icon":ee,"ft-loader":ct,"ft-typography":pe};R.styles=[de.safariEllipsisFix,
|
|
593
|
+
`}focus(){var t;(t=this.button)===null||t===void 0||t.focus()}showTooltip(){var t;(t=this.tooltip)===null||t===void 0||t.show()}showTemporaryTooltip(t,r){var n;return(n=this.tooltip)===null||n===void 0?void 0:n.showTemporaryText(t,r)}setTooltipManual(t){this.tooltip&&(this.tooltip.manual=t)}click(){var t;(t=this.button)===null||t===void 0||t.click()}getLabel(){return this.label||this.getTextContent()}getTextContent(){return(0,de.unslotText)(this.slottedContent).trim()}hasTextContent(){return this.getTextContent().length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}};R.elementDefinitions={"ft-ripple":N,"ft-tooltip":B,"ft-icon":ee,"ft-loader":ct,"ft-typography":pe};R.styles=[de.safariEllipsisFix,Al,de.noTextSelect];P([(0,_.property)({type:Boolean})],R.prototype,"primary",void 0);P([(0,_.property)({type:Boolean})],R.prototype,"outlined",void 0);P([(0,_.property)({type:Boolean})],R.prototype,"dense",void 0);P([(0,_.property)({type:Boolean})],R.prototype,"round",void 0);P([(0,_.property)({type:Boolean})],R.prototype,"disabled",void 0);P([(0,_.property)()],R.prototype,"icon",void 0);P([(0,_.property)()],R.prototype,"iconVariant",void 0);P([(0,_.property)({type:Boolean})],R.prototype,"trailingIcon",void 0);P([(0,_.property)()],R.prototype,"label",void 0);P([(0,_.property)()],R.prototype,"type",void 0);P([(0,_.property)()],R.prototype,"href",void 0);P([(0,_.property)()],R.prototype,"target",void 0);P([(0,_.property)({type:Boolean})],R.prototype,"loading",void 0);P([(0,_.property)({attribute:"aria-label"})],R.prototype,"ariaLabel",void 0);P([(0,_.property)()],R.prototype,"ariaHasPopup",void 0);P([(0,_.property)({attribute:"aria-pressed"})],R.prototype,"ariaPressed",void 0);P([(0,_.property)()],R.prototype,"tooltipPosition",void 0);P([(0,_.property)({type:Boolean})],R.prototype,"hideTooltip",void 0);P([(0,_.property)({type:Boolean})],R.prototype,"forceTooltip",void 0);P([(0,_.property)({type:Boolean})],R.prototype,"activated",void 0);P([(0,_.query)(".ft-button")],R.prototype,"button",void 0);P([(0,_.query)(".ft-button--label slot")],R.prototype,"slottedContent",void 0);P([(0,_.query)("[part=tooltip]")],R.prototype,"tooltip",void 0);var El=g(w());var Sl={"ft-button":R};(0,El.customElements)(Sl);var Ht=g(w()),wi=g(K());var fr;(function(e){e.CLUSTERED_SEARCH="CLUSTERED_SEARCH"})(fr||(fr={}));var ut=g(w());var nu=g(w());var on=class e extends Event{constructor(){super(e.eventName)}};on.eventName="search-context-clear-all-filters";var Cl=function(e,t,r,n){var i=arguments.length,s=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},Oi=class extends Event{constructor(){super("register-ft-search-component",{bubbles:!0,composed:!0})}},wl=Symbol("registerInterval"),Ci=Symbol("registerAttempts"),iu=40,su=(0,Ht.applyMixinOnce)(Symbol("toFtSearchComponent"),function(e){class t extends e{constructor(){super(...arguments),this.neededSearchRequests=[]}willUpdate(n){var i,s,o;super.willUpdate(n),n.has("neededSearchRequests")&&((i=this.stateManager)===null||i===void 0||i.unregisterComponent(this,(s=n.get("neededSearchRequests"))!==null&&s!==void 0?s:[]),(o=this.stateManager)===null||o===void 0||o.registerComponent(this,this.neededSearchRequests))}setSearchStateManager(n){this.clearStateManager(),this.stateManager=n,this.stateManager.registerComponent(this,this.neededSearchRequests),this.addStore(n.store,"search")}clearStateManager(){this.stateManager&&(this.stateManager.unregisterComponent(this,this.neededSearchRequests),this.removeStore(this.stateManager.store),this.stateManager=void 0)}connectedCallback(){super.connectedCallback(),this[Ci]=0,this.tryToRegisterToContext(),this[wl]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null||this[Ci]>iu?window.clearInterval(this[wl]):(this[Ci]++,this.dispatchEvent(new Oi))}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return Cl([(0,wi.state)()],t.prototype,"stateManager",void 0),Cl([(0,wi.state)({hasChanged:Ht.hasChanged})],t.prototype,"neededSearchRequests",void 0),t}),an=class extends su(Ht.FtLitElementRedux){};var Ti=en.fromGwt("designedActionBlockAriaLabels");var Ol=function(e,t,r,n){var i=arguments.length,s=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},We=class extends Zr(an){constructor(){super(),this.currentPage=1,this.isLastPage=!0,this.neededSearchRequests=[fr.CLUSTERED_SEARCH],this.addI18nContext(Ti)}render(){return this.isLastPage?ln.nothing:ln.html`
|
|
594
594
|
<ft-button @click=${this.loadMore}>
|
|
595
595
|
${Ti.messages.searchPageLoadMore()}
|
|
596
596
|
</ft-button>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-topics/ft-search-load-more-button",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.10",
|
|
4
4
|
"description": "A button to load more result in a search context",
|
|
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-button": "2.1.
|
|
23
|
-
"@fluid-topics/ft-search-context": "2.1.
|
|
24
|
-
"@fluid-topics/ft-wc-utils": "2.1.
|
|
25
|
-
"@fluid-topics/public-api": "1.0.
|
|
22
|
+
"@fluid-topics/ft-button": "2.1.10",
|
|
23
|
+
"@fluid-topics/ft-search-context": "2.1.10",
|
|
24
|
+
"@fluid-topics/ft-wc-utils": "2.1.10",
|
|
25
|
+
"@fluid-topics/public-api": "1.0.129",
|
|
26
26
|
"lit": "3.1.0"
|
|
27
27
|
},
|
|
28
|
-
"gitHead": "
|
|
28
|
+
"gitHead": "2e92a83b868bd3944d7f807c6d232e06c63d12fa"
|
|
29
29
|
}
|