@fluid-topics/ft-tooltip 2.1.15 → 2.1.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ft-tooltip.light.js +77 -77
- package/build/ft-tooltip.min.js +11 -11
- package/package.json +5 -5
|
@@ -1,101 +1,101 @@
|
|
|
1
|
-
"use strict";(()=>{var ra=Object.create;var Nn=Object.defineProperty;var na=Object.getOwnPropertyDescriptor;var ia=Object.getOwnPropertyNames;var sa=Object.getPrototypeOf,oa=Object.prototype.hasOwnProperty;var Tr=(t
|
|
2
|
-
\f\r]`,
|
|
3
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),Hn=/'/g,Vn=/"/g,qn=/^(?:script|style|textarea|title)$/i,Dr=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),Gn=Dr(1),Yn=Dr(2),Xn=Dr(3),yt=Symbol.for("lit-noChange"),L=Symbol.for("lit-nothing"),Wn=new WeakMap,Ce=Te.createTreeWalker(Te,129);function Jn(t,e){if(!Nr(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return $n!==void 0?$n.createHTML(e):e}var la=(t,e)=>{let r=t.length-1,n=[],i,s=e===2?"<svg>":e===3?"<math>":"",o=ht;for(let a=0;a<r;a++){let c=t[a],u,l,d=-1,f=0;for(;f<c.length&&(o.lastIndex=f,l=o.exec(c),l!==null);)f=o.lastIndex,o===ht?l[1]==="!--"?o=jn:l[1]!==void 0?o=Bn:l[2]!==void 0?(qn.test(l[2])&&(i=RegExp("</"+l[2],"g")),o=we):l[3]!==void 0&&(o=we):o===we?l[0]===">"?(o=i??ht,d=-1):l[1]===void 0?d=-2:(d=o.lastIndex-l[2].length,u=l[1],o=l[3]===void 0?we:l[3]==='"'?Vn:Hn):o===Vn||o===Hn?o=we:o===jn||o===Bn?o=ht:(o=we,i=void 0);let p=o===we&&t[a+1].startsWith("/>")?" ":"";s+=o===ht?c+ca:d>=0?(n.push(u),c.slice(0,d)+zn+c.slice(d)+he+p):c+he+(d===-2?a:p)}return[Jn(t,s+(t[r]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),n]},gt=class t{constructor({strings:e,_$litType$:r},n){let i;this.parts=[];let s=0,o=0,a=e.length-1,c=this.parts,[u,l]=la(e,r);if(this.el=t.createElement(u,n),Ce.currentNode=this.el.content,r===2||r===3){let d=this.el.content.firstChild;d.replaceWith(...d.childNodes)}for(;(i=Ce.nextNode())!==null&&c.length<a;){if(i.nodeType===1){if(i.hasAttributes())for(let d of i.getAttributeNames())if(d.endsWith(zn)){let f=l[o++],p=i.getAttribute(d).split(he),h=/([.?@])?(.*)/.exec(f);c.push({type:1,index:s,name:h[2],strings:p,ctor:h[1]==="."?_r:h[1]==="?"?Ir:h[1]==="@"?Lr:Be}),i.removeAttribute(d)}else d.startsWith(he)&&(c.push({type:6,index:s}),i.removeAttribute(d));if(qn.test(i.tagName)){let d=i.textContent.split(he),f=d.length-1;if(f>0){i.textContent=Ft?Ft.emptyScript:"";for(let p=0;p<f;p++)i.append(d[p],$t()),Ce.nextNode(),c.push({type:2,index:++s});i.append(d[f],$t())}}}else if(i.nodeType===8)if(i.data===Kn)c.push({type:2,index:s});else{let d=-1;for(;(d=i.data.indexOf(he,d+1))!==-1;)c.push({type:7,index:s}),d+=he.length-1}s++}}static createElement(e,r){let n=Te.createElement("template");return n.innerHTML=e,n}};function je(t,e,r=t,n){if(e===yt)return e;let i=n!==void 0?r._$Co?.[n]:r._$Cl,s=mt(e)?void 0:e._$litDirective$;return i?.constructor!==s&&(i?._$AO?.(!1),s===void 0?i=void 0:(i=new s(t),i._$AT(t,r,n)),n!==void 0?(r._$Co??=[])[n]=i:r._$Cl=i),i!==void 0&&(e=je(t,i._$AS(t,e.values),i,n)),e}var Rr=class{constructor(e,r){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:r},parts:n}=this._$AD,i=(e?.creationScope??Te).importNode(r,!0);Ce.currentNode=i;let s=Ce.nextNode(),o=0,a=0,c=n[0];for(;c!==void 0;){if(o===c.index){let u;c.type===2?u=new jt(s,s.nextSibling,this,e):c.type===1?u=new c.ctor(s,c.name,c.strings,this,e):c.type===6&&(u=new Pr(s,this,e)),this._$AV.push(u),c=n[++a]}o!==c?.index&&(s=Ce.nextNode(),o++)}return Ce.currentNode=Te,i}p(e){let r=0;for(let n of this._$AV)n!==void 0&&(n.strings!==void 0?(n._$AI(e,n,r),r+=n.strings.length-2):n._$AI(e[r])),r++}},jt=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,r,n,i){this.type=2,this._$AH=L,this._$AN=void 0,this._$AA=e,this._$AB=r,this._$AM=n,this.options=i,this._$Cv=i?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,r=this._$AM;return r!==void 0&&e?.nodeType===11&&(e=r.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,r=this){e=je(this,e,r),mt(e)?e===L||e==null||e===""?(this._$AH!==L&&this._$AR(),this._$AH=L):e!==this._$AH&&e!==yt&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):ua(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==L&&mt(this._$AH)?this._$AA.nextSibling.data=e:this.T(Te.createTextNode(e)),this._$AH=e}$(e){let{values:r,_$litType$:n}=e,i=typeof n=="number"?this._$AC(e):(n.el===void 0&&(n.el=gt.createElement(Jn(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===i)this._$AH.p(r);else{let s=new Rr(i,this),o=s.u(this.options);s.p(r),this.T(o),this._$AH=s}}_$AC(e){let r=Wn.get(e.strings);return r===void 0&&Wn.set(e.strings,r=new gt(e)),r}k(e){Nr(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,n,i=0;for(let s of e)i===r.length?r.push(n=new t(this.O($t()),this.O($t()),this,this.options)):n=r[i],n._$AI(s),i++;i<r.length&&(this._$AR(n&&n._$AB.nextSibling,i),r.length=i)}_$AR(e=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);e!==this._$AB;){let n=Fn(e).nextSibling;Fn(e).remove(),e=n}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},Be=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,r,n,i,s){this.type=1,this._$AH=L,this._$AN=void 0,this.element=e,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=L}_$AI(e,r=this,n,i){let s=this.strings,o=!1;if(s===void 0)e=je(this,e,r,0),o=!mt(e)||e!==this._$AH&&e!==yt,o&&(this._$AH=e);else{let a=e,c,u;for(e=s[0],c=0;c<s.length-1;c++)u=je(this,a[n+c],r,c),u===yt&&(u=this._$AH[c]),o||=!mt(u)||u!==this._$AH[c],u===L?e=L:e!==L&&(e+=(u??"")+s[c+1]),this._$AH[c]=u}o&&!i&&this.j(e)}j(e){e===L?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},_r=class extends Be{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===L?void 0:e}},Ir=class extends Be{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==L)}},Lr=class extends Be{constructor(e,r,n,i,s){super(e,r,n,i,s),this.type=5}_$AI(e,r=this){if((e=je(this,e,r,0)??L)===yt)return;let n=this._$AH,i=e===L&&n!==L||e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive,s=e!==L&&(n===L||i);i&&this.element.removeEventListener(this.name,this,n),s&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},Pr=class{constructor(e,r,n){this.element=e,this.type=6,this._$AN=void 0,this._$AM=r,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(e){je(this,e)}};var da=kr.litHtmlPolyfillSupport;da?.(gt,jt),(kr.litHtmlVersions??=[]).push("3.3.3");var Zn=Symbol.for(""),fa=t=>{if(t?.r===Zn)return t?._$litStatic$},Mr=t=>({_$litStatic$:t,r:Zn});var Qn=new Map,Ur=t=>(e,...r)=>{let n=r.length,i,s,o=[],a=[],c,u=0,l=!1;for(;u<n;){for(c=e[u];u<n&&(s=r[u],(i=fa(s))!==void 0);)c+=i+e[++u],l=!0;u!==n&&a.push(s),o.push(c),u++}if(u===n&&o.push(e[n]),l){let d=o.join("$$lit$$");(e=Qn.get(d))===void 0&&(o.raw=o,Qn.set(d,e=o)),r=a}return t(e,...r)},Fr=Ur(Gn),Mc=Ur(Yn),Uc=Ur(Xn);var $r=E(te()),pi=E(T());var He;(function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button"})(He||(He={}));var V=E(oe()),y=E(T()),ei=y.FtCssVariableFactory.extend("--ft-typography-font-family","",y.designSystemVariables.titleFont),ae=y.FtCssVariableFactory.extend("--ft-typography-font-family","",y.designSystemVariables.contentFont),A={fontFamily:ae,fontSize:y.FtCssVariableFactory.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:y.FtCssVariableFactory.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:y.FtCssVariableFactory.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:y.FtCssVariableFactory.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:y.FtCssVariableFactory.create("--ft-typography-text-transform","","UNKNOWN","inherit")},Ve={fontFamily:y.FtCssVariableFactory.extend("--ft-typography-title-font-family","",ei),fontSize:y.FtCssVariableFactory.extend("--ft-typography-title-font-size","",A.fontSize,"20px"),fontWeight:y.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",A.fontWeight,"normal"),letterSpacing:y.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",A.letterSpacing,"0.15px"),lineHeight:y.FtCssVariableFactory.extend("--ft-typography-title-line-height","",A.lineHeight,"1.2"),textTransform:y.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",A.textTransform,"inherit")},We={fontFamily:y.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",ei),fontSize:y.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",A.fontSize,"14px"),fontWeight:y.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",A.fontWeight,"normal"),letterSpacing:y.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",A.letterSpacing,"0.105px"),lineHeight:y.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",A.lineHeight,"1.7"),textTransform:y.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",A.textTransform,"inherit")},ze={fontFamily:y.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",ae),fontSize:y.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",A.fontSize,"16px"),fontWeight:y.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",A.fontWeight,"600"),letterSpacing:y.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",A.letterSpacing,"0.144px"),lineHeight:y.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",A.lineHeight,"1.5"),textTransform:y.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",A.textTransform,"inherit")},Ke={fontFamily:y.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",ae),fontSize:y.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",A.fontSize,"14px"),fontWeight:y.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",A.fontWeight,"normal"),letterSpacing:y.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",A.letterSpacing,"0.098px"),lineHeight:y.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",A.lineHeight,"1.7"),textTransform:y.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",A.textTransform,"inherit")},qe={fontFamily:y.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",ae),fontSize:y.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",A.fontSize,"16px"),fontWeight:y.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",A.fontWeight,"normal"),letterSpacing:y.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",A.letterSpacing,"0.496px"),lineHeight:y.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",A.lineHeight,"1.5"),textTransform:y.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",A.textTransform,"inherit")},Ge={fontFamily:y.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",ae),fontSize:y.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",A.fontSize,"14px"),fontWeight:y.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",A.fontWeight,"normal"),letterSpacing:y.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",A.letterSpacing,"0.252px"),lineHeight:y.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",A.lineHeight,"1.4"),textTransform:y.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",A.textTransform,"inherit")},Ye={fontFamily:y.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",ae),fontSize:y.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",A.fontSize,"12px"),fontWeight:y.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",A.fontWeight,"normal"),letterSpacing:y.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",A.letterSpacing,"0.396px"),lineHeight:y.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",A.lineHeight,"1.33"),textTransform:y.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",A.textTransform,"inherit")},Xe={fontFamily:y.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",ae),fontSize:y.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",A.fontSize,"10px"),fontWeight:y.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",A.fontWeight,"normal"),letterSpacing:y.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",A.letterSpacing,"0.33px"),lineHeight:y.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",A.lineHeight,"1.6"),textTransform:y.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",A.textTransform,"inherit")},Je={fontFamily:y.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",ae),fontSize:y.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",A.fontSize,"10px"),fontWeight:y.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",A.fontWeight,"normal"),letterSpacing:y.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",A.letterSpacing,"1.5px"),lineHeight:y.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",A.lineHeight,"1.6"),textTransform:y.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",A.textTransform,"uppercase")},Qe={fontFamily:y.FtCssVariableFactory.extend("--ft-typography-button-font-family","",ae),fontSize:y.FtCssVariableFactory.extend("--ft-typography-button-font-size","",A.fontSize,"14px"),fontWeight:y.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",A.fontWeight,"600"),letterSpacing:y.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",A.letterSpacing,"1.246px"),lineHeight:y.FtCssVariableFactory.extend("--ft-typography-button-line-height","",A.lineHeight,"1.15"),textTransform:y.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",A.textTransform,"uppercase")},ti=V.css`
|
|
1
|
+
"use strict";(()=>{var ra=Object.create;var Nn=Object.defineProperty;var na=Object.getOwnPropertyDescriptor;var ia=Object.getOwnPropertyNames;var sa=Object.getPrototypeOf,oa=Object.prototype.hasOwnProperty;var Tr=(e,t)=>()=>{try{return t||e((t={exports:{}}).exports,t),t.exports}catch(r){throw t=0,r}};var aa=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of ia(t))!oa.call(e,i)&&i!==r&&Nn(e,i,{get:()=>t[i],enumerable:!(n=na(t,i))||n.enumerable});return e};var E=(e,t,r)=>(r=e!=null?ra(sa(e)):{},aa(t||!e||!e.__esModule?Nn(r,"default",{value:e,enumerable:!0}):r,e));var T=Tr((Pc,Dn)=>{Dn.exports=ftGlobals.wcUtils});var ot=Tr((Lc,Mn)=>{Mn.exports=ftGlobals.lit});var et=Tr((kc,Un)=>{Un.exports=ftGlobals.litDecorators});var ea=E(T());var Zo=E(ot()),X=E(et()),Y=E(T());var kr=globalThis,Fn=e=>e,Fe=kr.trustedTypes,$n=Fe?Fe.createPolicy("lit-html",{createHTML:e=>e}):void 0,zn="$lit$",ht=`lit$${Math.random().toFixed(9).slice(2)}$`,Kn="?"+ht,ca=`<${Kn}>`,Tt=document,$e=()=>Tt.createComment(""),me=e=>e===null||typeof e!="object"&&typeof e!="function",Nr=Array.isArray,ua=e=>Nr(e)||typeof e?.[Symbol.iterator]=="function",Or=`[
|
|
2
|
+
\f\r]`,he=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,jn=/-->/g,Bn=/>/g,wt=RegExp(`>|${Or}(?:([^\\s"'>=/]+)(${Or}*=${Or}*(?:[^
|
|
3
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),Hn=/'/g,Vn=/"/g,qn=/^(?:script|style|textarea|title)$/i,Dr=e=>(t,...r)=>({_$litType$:e,strings:t,values:r}),Gn=Dr(1),Yn=Dr(2),Xn=Dr(3),ye=Symbol.for("lit-noChange"),P=Symbol.for("lit-nothing"),Wn=new WeakMap,Ct=Tt.createTreeWalker(Tt,129);function Jn(e,t){if(!Nr(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return $n!==void 0?$n.createHTML(t):t}var la=(e,t)=>{let r=e.length-1,n=[],i,s=t===2?"<svg>":t===3?"<math>":"",o=he;for(let a=0;a<r;a++){let c=e[a],u,l,d=-1,f=0;for(;f<c.length&&(o.lastIndex=f,l=o.exec(c),l!==null);)f=o.lastIndex,o===he?l[1]==="!--"?o=jn:l[1]!==void 0?o=Bn:l[2]!==void 0?(qn.test(l[2])&&(i=RegExp("</"+l[2],"g")),o=wt):l[3]!==void 0&&(o=wt):o===wt?l[0]===">"?(o=i??he,d=-1):l[1]===void 0?d=-2:(d=o.lastIndex-l[2].length,u=l[1],o=l[3]===void 0?wt:l[3]==='"'?Vn:Hn):o===Vn||o===Hn?o=wt:o===jn||o===Bn?o=he:(o=wt,i=void 0);let p=o===wt&&e[a+1].startsWith("/>")?" ":"";s+=o===he?c+ca:d>=0?(n.push(u),c.slice(0,d)+zn+c.slice(d)+ht+p):c+ht+(d===-2?a:p)}return[Jn(e,s+(e[r]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),n]},ge=class e{constructor({strings:t,_$litType$:r},n){let i;this.parts=[];let s=0,o=0,a=t.length-1,c=this.parts,[u,l]=la(t,r);if(this.el=e.createElement(u,n),Ct.currentNode=this.el.content,r===2||r===3){let d=this.el.content.firstChild;d.replaceWith(...d.childNodes)}for(;(i=Ct.nextNode())!==null&&c.length<a;){if(i.nodeType===1){if(i.hasAttributes())for(let d of i.getAttributeNames())if(d.endsWith(zn)){let f=l[o++],p=i.getAttribute(d).split(ht),h=/([.?@])?(.*)/.exec(f);c.push({type:1,index:s,name:h[2],strings:p,ctor:h[1]==="."?_r:h[1]==="?"?Ir:h[1]==="@"?Pr:Bt}),i.removeAttribute(d)}else d.startsWith(ht)&&(c.push({type:6,index:s}),i.removeAttribute(d));if(qn.test(i.tagName)){let d=i.textContent.split(ht),f=d.length-1;if(f>0){i.textContent=Fe?Fe.emptyScript:"";for(let p=0;p<f;p++)i.append(d[p],$e()),Ct.nextNode(),c.push({type:2,index:++s});i.append(d[f],$e())}}}else if(i.nodeType===8)if(i.data===Kn)c.push({type:2,index:s});else{let d=-1;for(;(d=i.data.indexOf(ht,d+1))!==-1;)c.push({type:7,index:s}),d+=ht.length-1}s++}}static createElement(t,r){let n=Tt.createElement("template");return n.innerHTML=t,n}};function jt(e,t,r=e,n){if(t===ye)return t;let i=n!==void 0?r._$Co?.[n]:r._$Cl,s=me(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=jt(e,i._$AS(e,t.values),i,n)),t}var Rr=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??Tt).importNode(r,!0);Ct.currentNode=i;let s=Ct.nextNode(),o=0,a=0,c=n[0];for(;c!==void 0;){if(o===c.index){let u;c.type===2?u=new je(s,s.nextSibling,this,t):c.type===1?u=new c.ctor(s,c.name,c.strings,this,t):c.type===6&&(u=new Lr(s,this,t)),this._$AV.push(u),c=n[++a]}o!==c?.index&&(s=Ct.nextNode(),o++)}return Ct.currentNode=Tt,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++}},je=class e{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,r,n,i){this.type=2,this._$AH=P,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=jt(this,t,r),me(t)?t===P||t==null||t===""?(this._$AH!==P&&this._$AR(),this._$AH=P):t!==this._$AH&&t!==ye&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):ua(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!==P&&me(this._$AH)?this._$AA.nextSibling.data=t:this.T(Tt.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=ge.createElement(Jn(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===i)this._$AH.p(r);else{let s=new Rr(i,this),o=s.u(this.options);s.p(r),this.T(o),this._$AH=s}}_$AC(t){let r=Wn.get(t.strings);return r===void 0&&Wn.set(t.strings,r=new ge(t)),r}k(t){Nr(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($e()),this.O($e()),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!==this._$AB;){let n=Fn(t).nextSibling;Fn(t).remove(),t=n}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},Bt=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,r,n,i,s){this.type=1,this._$AH=P,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=P}_$AI(t,r=this,n,i){let s=this.strings,o=!1;if(s===void 0)t=jt(this,t,r,0),o=!me(t)||t!==this._$AH&&t!==ye,o&&(this._$AH=t);else{let a=t,c,u;for(t=s[0],c=0;c<s.length-1;c++)u=jt(this,a[n+c],r,c),u===ye&&(u=this._$AH[c]),o||=!me(u)||u!==this._$AH[c],u===P?t=P:t!==P&&(t+=(u??"")+s[c+1]),this._$AH[c]=u}o&&!i&&this.j(t)}j(t){t===P?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},_r=class extends Bt{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===P?void 0:t}},Ir=class extends Bt{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==P)}},Pr=class extends Bt{constructor(t,r,n,i,s){super(t,r,n,i,s),this.type=5}_$AI(t,r=this){if((t=jt(this,t,r,0)??P)===ye)return;let n=this._$AH,i=t===P&&n!==P||t.capture!==n.capture||t.once!==n.once||t.passive!==n.passive,s=t!==P&&(n===P||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)}},Lr=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){jt(this,t)}};var da=kr.litHtmlPolyfillSupport;da?.(ge,je),(kr.litHtmlVersions??=[]).push("3.3.3");var Zn=Symbol.for(""),fa=e=>{if(e?.r===Zn)return e?._$litStatic$},Mr=e=>({_$litStatic$:e,r:Zn});var Qn=new Map,Ur=e=>(t,...r)=>{let n=r.length,i,s,o=[],a=[],c,u=0,l=!1;for(;u<n;){for(c=t[u];u<n&&(s=r[u],(i=fa(s))!==void 0);)c+=i+t[++u],l=!0;u!==n&&a.push(s),o.push(c),u++}if(u===n&&o.push(t[n]),l){let d=o.join("$$lit$$");(t=Qn.get(d))===void 0&&(o.raw=o,Qn.set(d,t=o)),r=a}return e(t,...r)},Fr=Ur(Gn),Mc=Ur(Yn),Uc=Ur(Xn);var $r=E(et()),pi=E(T());var Ht;(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"})(Ht||(Ht={}));var V=E(ot()),y=E(T()),ti=y.FtCssVariableFactory.extend("--ft-typography-font-family","",y.designSystemVariables.titleFont),at=y.FtCssVariableFactory.extend("--ft-typography-font-family","",y.designSystemVariables.contentFont),A={fontFamily:at,fontSize:y.FtCssVariableFactory.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:y.FtCssVariableFactory.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:y.FtCssVariableFactory.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:y.FtCssVariableFactory.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:y.FtCssVariableFactory.create("--ft-typography-text-transform","","UNKNOWN","inherit")},Vt={fontFamily:y.FtCssVariableFactory.extend("--ft-typography-title-font-family","",ti),fontSize:y.FtCssVariableFactory.extend("--ft-typography-title-font-size","",A.fontSize,"20px"),fontWeight:y.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",A.fontWeight,"normal"),letterSpacing:y.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",A.letterSpacing,"0.15px"),lineHeight:y.FtCssVariableFactory.extend("--ft-typography-title-line-height","",A.lineHeight,"1.2"),textTransform:y.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",A.textTransform,"inherit")},Wt={fontFamily:y.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",ti),fontSize:y.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",A.fontSize,"14px"),fontWeight:y.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",A.fontWeight,"normal"),letterSpacing:y.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",A.letterSpacing,"0.105px"),lineHeight:y.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",A.lineHeight,"1.7"),textTransform:y.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",A.textTransform,"inherit")},zt={fontFamily:y.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",at),fontSize:y.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",A.fontSize,"16px"),fontWeight:y.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",A.fontWeight,"600"),letterSpacing:y.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",A.letterSpacing,"0.144px"),lineHeight:y.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",A.lineHeight,"1.5"),textTransform:y.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",A.textTransform,"inherit")},Kt={fontFamily:y.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",at),fontSize:y.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",A.fontSize,"14px"),fontWeight:y.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",A.fontWeight,"normal"),letterSpacing:y.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",A.letterSpacing,"0.098px"),lineHeight:y.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",A.lineHeight,"1.7"),textTransform:y.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",A.textTransform,"inherit")},qt={fontFamily:y.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",at),fontSize:y.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",A.fontSize,"16px"),fontWeight:y.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",A.fontWeight,"normal"),letterSpacing:y.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",A.letterSpacing,"0.496px"),lineHeight:y.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",A.lineHeight,"1.5"),textTransform:y.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",A.textTransform,"inherit")},Gt={fontFamily:y.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",at),fontSize:y.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",A.fontSize,"14px"),fontWeight:y.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",A.fontWeight,"normal"),letterSpacing:y.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",A.letterSpacing,"0.252px"),lineHeight:y.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",A.lineHeight,"1.4"),textTransform:y.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",A.textTransform,"inherit")},Yt={fontFamily:y.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",at),fontSize:y.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",A.fontSize,"12px"),fontWeight:y.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",A.fontWeight,"normal"),letterSpacing:y.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",A.letterSpacing,"0.396px"),lineHeight:y.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",A.lineHeight,"1.33"),textTransform:y.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",A.textTransform,"inherit")},Xt={fontFamily:y.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",at),fontSize:y.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",A.fontSize,"10px"),fontWeight:y.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",A.fontWeight,"normal"),letterSpacing:y.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",A.letterSpacing,"0.33px"),lineHeight:y.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",A.lineHeight,"1.6"),textTransform:y.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",A.textTransform,"inherit")},Jt={fontFamily:y.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",at),fontSize:y.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",A.fontSize,"10px"),fontWeight:y.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",A.fontWeight,"normal"),letterSpacing:y.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",A.letterSpacing,"1.5px"),lineHeight:y.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",A.lineHeight,"1.6"),textTransform:y.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",A.textTransform,"uppercase")},Qt={fontFamily:y.FtCssVariableFactory.extend("--ft-typography-button-font-family","",at),fontSize:y.FtCssVariableFactory.extend("--ft-typography-button-font-size","",A.fontSize,"14px"),fontWeight:y.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",A.fontWeight,"600"),letterSpacing:y.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",A.letterSpacing,"1.246px"),lineHeight:y.FtCssVariableFactory.extend("--ft-typography-button-line-height","",A.lineHeight,"1.15"),textTransform:y.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",A.textTransform,"uppercase")},ei=V.css`
|
|
4
4
|
.ft-typography--title {
|
|
5
|
-
font-family: ${
|
|
6
|
-
font-size: ${
|
|
7
|
-
font-weight: ${
|
|
8
|
-
letter-spacing: ${
|
|
9
|
-
line-height: ${
|
|
10
|
-
text-transform: ${
|
|
5
|
+
font-family: ${Vt.fontFamily};
|
|
6
|
+
font-size: ${Vt.fontSize};
|
|
7
|
+
font-weight: ${Vt.fontWeight};
|
|
8
|
+
letter-spacing: ${Vt.letterSpacing};
|
|
9
|
+
line-height: ${Vt.lineHeight};
|
|
10
|
+
text-transform: ${Vt.textTransform};
|
|
11
11
|
}
|
|
12
12
|
`,ri=V.css`
|
|
13
13
|
.ft-typography--title-dense {
|
|
14
|
-
font-family: ${
|
|
15
|
-
font-size: ${
|
|
16
|
-
font-weight: ${
|
|
17
|
-
letter-spacing: ${
|
|
18
|
-
line-height: ${
|
|
19
|
-
text-transform: ${
|
|
14
|
+
font-family: ${Wt.fontFamily};
|
|
15
|
+
font-size: ${Wt.fontSize};
|
|
16
|
+
font-weight: ${Wt.fontWeight};
|
|
17
|
+
letter-spacing: ${Wt.letterSpacing};
|
|
18
|
+
line-height: ${Wt.lineHeight};
|
|
19
|
+
text-transform: ${Wt.textTransform};
|
|
20
20
|
}
|
|
21
21
|
`,ni=V.css`
|
|
22
22
|
.ft-typography--subtitle1 {
|
|
23
|
-
font-family: ${
|
|
24
|
-
font-size: ${
|
|
25
|
-
font-weight: ${
|
|
26
|
-
letter-spacing: ${
|
|
27
|
-
line-height: ${
|
|
28
|
-
text-transform: ${
|
|
23
|
+
font-family: ${zt.fontFamily};
|
|
24
|
+
font-size: ${zt.fontSize};
|
|
25
|
+
font-weight: ${zt.fontWeight};
|
|
26
|
+
letter-spacing: ${zt.letterSpacing};
|
|
27
|
+
line-height: ${zt.lineHeight};
|
|
28
|
+
text-transform: ${zt.textTransform};
|
|
29
29
|
}
|
|
30
30
|
`,ii=V.css`
|
|
31
31
|
.ft-typography--subtitle2 {
|
|
32
|
-
font-family: ${
|
|
33
|
-
font-size: ${
|
|
34
|
-
font-weight: ${
|
|
35
|
-
letter-spacing: ${
|
|
36
|
-
line-height: ${
|
|
37
|
-
text-transform: ${
|
|
32
|
+
font-family: ${Kt.fontFamily};
|
|
33
|
+
font-size: ${Kt.fontSize};
|
|
34
|
+
font-weight: ${Kt.fontWeight};
|
|
35
|
+
letter-spacing: ${Kt.letterSpacing};
|
|
36
|
+
line-height: ${Kt.lineHeight};
|
|
37
|
+
text-transform: ${Kt.textTransform};
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
`,si=V.css`
|
|
41
41
|
.ft-typography--body1 {
|
|
42
|
-
font-family: ${
|
|
43
|
-
font-size: ${
|
|
44
|
-
font-weight: ${
|
|
45
|
-
letter-spacing: ${
|
|
46
|
-
line-height: ${
|
|
47
|
-
text-transform: ${
|
|
42
|
+
font-family: ${qt.fontFamily};
|
|
43
|
+
font-size: ${qt.fontSize};
|
|
44
|
+
font-weight: ${qt.fontWeight};
|
|
45
|
+
letter-spacing: ${qt.letterSpacing};
|
|
46
|
+
line-height: ${qt.lineHeight};
|
|
47
|
+
text-transform: ${qt.textTransform};
|
|
48
48
|
}
|
|
49
49
|
`,oi=V.css`
|
|
50
50
|
.ft-typography--body2 {
|
|
51
|
-
font-family: ${
|
|
52
|
-
font-size: ${
|
|
53
|
-
font-weight: ${
|
|
54
|
-
letter-spacing: ${
|
|
55
|
-
line-height: ${
|
|
56
|
-
text-transform: ${
|
|
51
|
+
font-family: ${Gt.fontFamily};
|
|
52
|
+
font-size: ${Gt.fontSize};
|
|
53
|
+
font-weight: ${Gt.fontWeight};
|
|
54
|
+
letter-spacing: ${Gt.letterSpacing};
|
|
55
|
+
line-height: ${Gt.lineHeight};
|
|
56
|
+
text-transform: ${Gt.textTransform};
|
|
57
57
|
}
|
|
58
58
|
`,ai=V.css`
|
|
59
59
|
.ft-typography--caption {
|
|
60
|
-
font-family: ${
|
|
61
|
-
font-size: ${
|
|
62
|
-
font-weight: ${
|
|
63
|
-
letter-spacing: ${
|
|
64
|
-
line-height: ${
|
|
65
|
-
text-transform: ${
|
|
60
|
+
font-family: ${Yt.fontFamily};
|
|
61
|
+
font-size: ${Yt.fontSize};
|
|
62
|
+
font-weight: ${Yt.fontWeight};
|
|
63
|
+
letter-spacing: ${Yt.letterSpacing};
|
|
64
|
+
line-height: ${Yt.lineHeight};
|
|
65
|
+
text-transform: ${Yt.textTransform};
|
|
66
66
|
}
|
|
67
67
|
`,ci=V.css`
|
|
68
68
|
.ft-typography--breadcrumb {
|
|
69
|
-
font-family: ${
|
|
70
|
-
font-size: ${
|
|
71
|
-
font-weight: ${
|
|
72
|
-
letter-spacing: ${
|
|
73
|
-
line-height: ${
|
|
74
|
-
text-transform: ${
|
|
69
|
+
font-family: ${Xt.fontFamily};
|
|
70
|
+
font-size: ${Xt.fontSize};
|
|
71
|
+
font-weight: ${Xt.fontWeight};
|
|
72
|
+
letter-spacing: ${Xt.letterSpacing};
|
|
73
|
+
line-height: ${Xt.lineHeight};
|
|
74
|
+
text-transform: ${Xt.textTransform};
|
|
75
75
|
}
|
|
76
76
|
`,ui=V.css`
|
|
77
77
|
.ft-typography--overline {
|
|
78
|
-
font-family: ${
|
|
79
|
-
font-size: ${
|
|
80
|
-
font-weight: ${
|
|
81
|
-
letter-spacing: ${
|
|
82
|
-
line-height: ${
|
|
83
|
-
text-transform: ${
|
|
78
|
+
font-family: ${Jt.fontFamily};
|
|
79
|
+
font-size: ${Jt.fontSize};
|
|
80
|
+
font-weight: ${Jt.fontWeight};
|
|
81
|
+
letter-spacing: ${Jt.letterSpacing};
|
|
82
|
+
line-height: ${Jt.lineHeight};
|
|
83
|
+
text-transform: ${Jt.textTransform};
|
|
84
84
|
}
|
|
85
85
|
`,li=V.css`
|
|
86
86
|
.ft-typography--button {
|
|
87
|
-
font-family: ${
|
|
88
|
-
font-size: ${
|
|
89
|
-
font-weight: ${
|
|
90
|
-
letter-spacing: ${
|
|
91
|
-
line-height: ${
|
|
92
|
-
text-transform: ${
|
|
87
|
+
font-family: ${Qt.fontFamily};
|
|
88
|
+
font-size: ${Qt.fontSize};
|
|
89
|
+
font-weight: ${Qt.fontWeight};
|
|
90
|
+
letter-spacing: ${Qt.letterSpacing};
|
|
91
|
+
line-height: ${Qt.lineHeight};
|
|
92
|
+
text-transform: ${Qt.textTransform};
|
|
93
93
|
}
|
|
94
94
|
`,di=V.css`
|
|
95
95
|
.ft-typography {
|
|
96
96
|
vertical-align: inherit;
|
|
97
97
|
}
|
|
98
|
-
`;var fi=function(t,
|
|
98
|
+
`;var fi=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},ct=class extends pi.FtLitElement{constructor(){super(...arguments),this.variant=Ht.body1}render(){return this.element?Fr`
|
|
99
99
|
<${Mr(this.element)}
|
|
100
100
|
part="text"
|
|
101
101
|
class="ft-typography ft-typography--${this.variant}">
|
|
@@ -103,7 +103,7 @@
|
|
|
103
103
|
</${Mr(this.element)}>
|
|
104
104
|
`:Fr`
|
|
105
105
|
<slot part="text" class="ft-typography ft-typography--${this.variant}"></slot>
|
|
106
|
-
`}};
|
|
106
|
+
`}};ct.styles=[ei,ri,ni,ii,si,oi,ai,ci,ui,li,di];fi([(0,$r.property)()],ct.prototype,"element",void 0);fi([(0,$r.property)()],ct.prototype,"variant",void 0);var mi=E(T());var hi={"ft-typography":ct};(0,mi.customElements)(hi);var yi=E(ot()),mt=E(T()),ve={distance:mt.FtCssVariableFactory.create("--ft-tooltip-distance","","SIZE","4px"),color:mt.FtCssVariableFactory.create("--ft-tooltip-color","","COLOR","#FFFFFF"),backgroundColor:mt.FtCssVariableFactory.create("--ft-tooltip-background-color","","COLOR","#666666"),borderRadiusS:mt.FtCssVariableFactory.extend("--ft-tooltip-border-radius","",mt.designSystemVariables.borderRadiusS),maxWidth:mt.FtCssVariableFactory.create("--ft-tooltip-max-width","","SIZE","150px")},gi=yi.css`
|
|
107
107
|
.ft-tooltip--container {
|
|
108
108
|
display: block;
|
|
109
109
|
}
|
|
@@ -121,28 +121,28 @@
|
|
|
121
121
|
box-sizing: border-box;
|
|
122
122
|
overflow: hidden;
|
|
123
123
|
width: max-content;
|
|
124
|
-
max-width: ${
|
|
124
|
+
max-width: ${ve.maxWidth};
|
|
125
125
|
text-align: center;
|
|
126
|
-
padding: ${
|
|
126
|
+
padding: ${ve.distance};
|
|
127
127
|
}
|
|
128
128
|
|
|
129
129
|
.ft-tooltip--content {
|
|
130
130
|
padding: 4px 8px;
|
|
131
|
-
border-radius: ${
|
|
132
|
-
background-color: ${
|
|
133
|
-
color: ${
|
|
131
|
+
border-radius: ${ve.borderRadiusS};
|
|
132
|
+
background-color: ${ve.backgroundColor};
|
|
133
|
+
color: ${ve.color};
|
|
134
134
|
position: relative;
|
|
135
135
|
word-break: break-word;
|
|
136
136
|
}
|
|
137
|
-
`;var bi=["top","right","bottom","left"],vi=["start","end"],Br=bi.reduce((t,e)=>t.concat(e,e+"-"+vi[0],e+"-"+vi[1]),[]),bt=Math.min,ye=Math.max,At=Math.round;var J=t=>({x:t,y:t}),pa={left:"right",right:"left",bottom:"top",top:"bottom"};function Ai(t,e,r){return ye(t,bt(e,r))}function Bt(t,e){return typeof t=="function"?t(e):t}function xt(t){return t.split("-")[0]}function ge(t){return t.split("-")[1]}function Hr(t){return t==="x"?"y":"x"}function Vr(t){return t==="y"?"height":"width"}function Ht(t){let e=t[0];return e==="t"||e==="b"?"y":"x"}function Wr(t){return Hr(Ht(t))}function xi(t,e,r){r===void 0&&(r=!1);let n=ge(t),i=Wr(t),s=Vr(i),o=i==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return e.reference[s]>e.floating[s]&&(o=jr(o)),[o,jr(o)]}function Si(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}function jr(t){let e=xt(t);return pa[e]+t.slice(e.length)}function ha(t){var e,r,n,i;return{top:(e=t.top)!=null?e:0,right:(r=t.right)!=null?r:0,bottom:(n=t.bottom)!=null?n:0,left:(i=t.left)!=null?i:0}}function Ei(t){return typeof t!="number"?ha(t):{top:t,right:t,bottom:t,left:t}}function Oe(t){let{x:e,y:r,width:n,height:i}=t;return{width:n,height:i,top:r,left:e,right:e+n,bottom:r+i,x:e,y:r}}function wi(t,e,r){let{reference:n,floating:i}=t,s=Ht(e),o=Wr(e),a=Vr(o),c=xt(e),u=s==="y",l=n.x+n.width/2-i.width/2,d=n.y+n.height/2-i.height/2,f=n[a]/2-i[a]/2,p;switch(c){case"top":p={x:l,y:n.y-i.height};break;case"bottom":p={x:l,y:n.y+n.height};break;case"right":p={x:n.x+n.width,y:d};break;case"left":p={x:n.x-i.width,y:d};break;default:p={x:n.x,y:n.y}}let h=ge(e);return h&&(p[o]+=f*(h==="end"?1:-1)*(r&&u?-1:1)),p}async function Ci(t,e){var r;e===void 0&&(e={});let{x:n,y:i,platform:s,rects:o,elements:a,strategy:c}=t,{boundary:u="clippingAncestors",rootBoundary:l="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=Bt(e,t),h=Ei(p),g=a[f?d==="floating"?"reference":"floating":d],v=Oe(await s.getClippingRect({element:(r=await(s.isElement==null?void 0:s.isElement(g)))==null||r?g:g.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(a.floating)),boundary:u,rootBoundary:l,strategy:c})),b=d==="floating"?{x:n,y:i,width:o.floating.width,height:o.floating.height}:o.reference,x=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a.floating)),S=await(s.isElement==null?void 0:s.isElement(x))&&await(s.getScale==null?void 0:s.getScale(x))||{x:1,y:1},I=Oe(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:b,offsetParent:x,strategy:c}):b);return{top:(v.top-I.top+h.top)/S.y,bottom:(I.bottom-v.bottom+h.bottom)/S.y,left:(v.left-I.left+h.left)/S.x,right:(I.right-v.right+h.right)/S.x}}var ma=50,Ti=async(t,e,r)=>{let{placement:n="bottom",strategy:i="absolute",middleware:s=[],platform:o}=r,a=o.detectOverflow?o:{...o,detectOverflow:Ci},c=await(o.isRTL==null?void 0:o.isRTL(e)),u=await o.getElementRects({reference:t,floating:e,strategy:i}),{x:l,y:d}=wi(u,n,c),f=n,p=0,h={};for(let m=0;m<s.length;m++){let g=s[m];if(!g)continue;let{name:v,fn:b}=g,{x,y:S,data:I,reset:R}=await b({x:l,y:d,initialPlacement:n,placement:f,strategy:i,middlewareData:h,rects:u,platform:a,elements:{reference:t,floating:e}});l=x??l,d=S??d,h[v]={...h[v],...I},R&&p<ma&&(p++,typeof R=="object"&&(R.placement&&(f=R.placement),R.rects&&(u=R.rects===!0?await o.getElementRects({reference:t,floating:e,strategy:i}):R.rects),{x:l,y:d}=wi(u,f,c)),m=-1)}return{x:l,y:d,placement:f,strategy:i,middlewareData:h}};function ya(t,e,r){return(t?[...r.filter(i=>ge(i)===t),...r.filter(i=>ge(i)!==t)]:r.filter(i=>xt(i)===i)).filter(i=>t?ge(i)===t||(e?Si(i)!==i:!1):!0)}var Oi=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(e){var r,n,i;let{rects:s,middlewareData:o,placement:a,platform:c,elements:u}=e,{crossAxis:l=!1,alignment:d,allowedPlacements:f=Br,autoAlignment:p=!0,...h}=Bt(t,e),m=d!==void 0||f===Br?ya(d||null,p,f):f,g=((r=o.autoPlacement)==null?void 0:r.index)||0,v=m[g];if(v==null)return{};if(a!==v)return{reset:{placement:m[0]}};let b=await c.detectOverflow(e,h),x=xi(v,s,await(c.isRTL==null?void 0:c.isRTL(u.floating))),S=[b[xt(v)],b[x[0]],b[x[1]]],I=[...((n=o.autoPlacement)==null?void 0:n.overflows)||[],{placement:v,overflows:S}],R=m[g+1];if(R)return{data:{index:g+1,overflows:I},reset:{placement:R}};let fe=I.map(U=>{let H=ge(U.placement);return[U.placement,H&&l?U.overflows.slice(0,2).reduce((F,Ee)=>F+Ee,0):U.overflows[0],U.overflows]}).sort((U,H)=>U[1]-H[1]),pe=((i=fe.filter(U=>U[2].slice(0,ge(U[0])?2:3).every(H=>H<=0))[0])==null?void 0:i[0])||fe[0][0];return pe!==a?{data:{index:g+1,overflows:I},reset:{placement:pe}}:{}}}};var Ri=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){let{x:r,y:n,placement:i,platform:s}=e,{mainAxis:o=!0,crossAxis:a=!1,limiter:c={fn:b=>{let{x,y:S}=b;return{x,y:S}}},...u}=Bt(t,e),l={x:r,y:n},d=await s.detectOverflow(e,u),f=Ht(i),p=Hr(f),h=l[p],m=l[f],g=(b,x)=>Ai(x+d[b==="y"?"top":"left"],x,x-d[b==="y"?"bottom":"right"]);o&&(h=g(p,h)),a&&(m=g(f,m));let v=c.fn({...e,[p]:h,[f]:m});return{...v,data:{x:v.x-r,y:v.y-n,enabled:{[p]:o,[f]:a}}}}}};function Wt(){return typeof window<"u"}function _e(t){return Ii(t)?(t.nodeName||"").toLowerCase():"#document"}function M(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function re(t){var e;return(e=(Ii(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Ii(t){return Wt()?t instanceof Node||t instanceof M(t).Node:!1}function W(t){return Wt()?t instanceof Element||t instanceof M(t).Element:!1}function ne(t){return Wt()?t instanceof HTMLElement||t instanceof M(t).HTMLElement:!1}function _i(t){return!Wt()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof M(t).ShadowRoot}function Ze(t){let{overflow:e,overflowX:r,overflowY:n,display:i}=z(t);return/auto|scroll|overlay|hidden|clip/.test(e+n+r)&&i!=="inline"&&i!=="contents"}function Li(t){return/^(table|td|th)$/.test(_e(t))}function St(t){try{if(t.matches(":popover-open"))return!0}catch{}try{return t.matches(":modal")}catch{return!1}}var ga=/transform|translate|scale|rotate|perspective|filter/,va=/paint|layout|strict|content/,Re=t=>!!t&&t!=="none",zr;function et(t){let e=W(t)?z(t):t;return Re(e.transform)||Re(e.translate)||Re(e.scale)||Re(e.rotate)||Re(e.perspective)||!zt()&&(Re(e.backdropFilter)||Re(e.filter))||ga.test(e.willChange||"")||va.test(e.contain||"")}function Pi(t){let e=ue(t);for(;ne(e)&&!Ie(e);){if(et(e))return e;if(St(e))return null;e=ue(e)}return null}function zt(){return zr==null&&(zr=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),zr}function Ie(t){return/^(html|body|#document)$/.test(_e(t))}function z(t){return M(t).getComputedStyle(t)}function Et(t){return W(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function ue(t){if(_e(t)==="html")return t;let e=t.assignedSlot||t.parentNode||_i(t)&&t.host||re(t);return _i(e)?e.host:e}function ki(t){let e=ue(t);return Ie(e)?(t.ownerDocument||t).body:ne(e)&&Ze(e)?e:ki(e)}function Vt(t,e,r){var n;e===void 0&&(e=[]),r===void 0&&(r=!0);let i=ki(t),s=i===((n=t.ownerDocument)==null?void 0:n.body),o=M(i);if(s){let a=Kt(o);return e.concat(o,o.visualViewport||[],Ze(i)?i:[],a&&r?Vt(a):[])}else return e.concat(i,Vt(i,[],r))}function Kt(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function Ui(t){let e=z(t),r=parseFloat(e.width)||0,n=parseFloat(e.height)||0,i=ne(t),s=i?t.offsetWidth:r,o=i?t.offsetHeight:n,a=At(r)!==s||At(n)!==o;return a&&(r=s,n=o),{width:r,height:n,$:a}}function Fi(t){return W(t)?t:t.contextElement}function tt(t){let e=Fi(t);if(!ne(e))return J(1);let r=e.getBoundingClientRect(),{width:n,height:i,$:s}=Ui(e),o=(s?At(r.width):r.width)/n,a=(s?At(r.height):r.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!a||!Number.isFinite(a))&&(a=1),{x:o,y:a}}var ba=J(0);function $i(t){let e=M(t);return!zt()||!e.visualViewport?ba:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Aa(t,e,r){return e===void 0&&(e=!1),!r||e&&r!==M(t)?!1:e}function wt(t,e,r,n){e===void 0&&(e=!1),r===void 0&&(r=!1);let i=t.getBoundingClientRect(),s=Fi(t),o=J(1);e&&(n?W(n)&&(o=tt(n)):o=tt(t));let a=Aa(s,r,n)?$i(s):J(0),c=(i.left+a.x)/o.x,u=(i.top+a.y)/o.y,l=i.width/o.x,d=i.height/o.y;if(s){let f=M(s),p=n&&W(n)?M(n):n,h=f,m=Kt(h);for(;m&&n&&p!==h;){let g=tt(m),v=m.getBoundingClientRect(),b=z(m),x=v.left+(m.clientLeft+parseFloat(b.paddingLeft))*g.x,S=v.top+(m.clientTop+parseFloat(b.paddingTop))*g.y;c*=g.x,u*=g.y,l*=g.x,d*=g.y,c+=x,u+=S,h=M(m),m=Kt(h)}}return Oe({width:l,height:d,x:c,y:u})}function qt(t,e){let r=Et(t).scrollLeft;return e?e.left+r:wt(re(t)).left+r}function ji(t,e){let r=t.getBoundingClientRect(),n=r.left+e.scrollLeft-qt(t,r),i=r.top+e.scrollTop;return{x:n,y:i}}function xa(t){let{elements:e,rect:r,offsetParent:n,strategy:i}=t,s=i==="fixed",o=re(n),a=e?St(e.floating):!1;if(n===o||a&&s)return r;let c={scrollLeft:0,scrollTop:0},u=J(1),l=J(0),d=ne(n);if((d||!d&&!s)&&((_e(n)!=="body"||Ze(o))&&(c=Et(n)),d)){let p=wt(n);u=tt(n),l.x=p.x+n.clientLeft,l.y=p.y+n.clientTop}let f=o&&!d&&!s?ji(o,c):J(0);return{width:r.width*u.x,height:r.height*u.y,x:r.x*u.x-c.scrollLeft*u.x+l.x+f.x,y:r.y*u.y-c.scrollTop*u.y+l.y+f.y}}function Sa(t){return Array.from(t.getClientRects())}function Ea(t){let e=re(t),r=Et(t),n=t.ownerDocument.body,i=ye(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),s=ye(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight),o=-r.scrollLeft+qt(t),a=-r.scrollTop;return z(n).direction==="rtl"&&(o+=ye(e.clientWidth,n.clientWidth)-i),{width:i,height:s,x:o,y:a}}var Ni=25;function wa(t,e){let r=M(t),n=re(t),i=r.visualViewport,s=n.clientWidth,o=n.clientHeight,a=0,c=0;if(i){s=i.width,o=i.height;let l=zt();(!l||l&&e==="fixed")&&(a=i.offsetLeft,c=i.offsetTop)}let u=qt(n);if(u<=0){let l=n.ownerDocument,d=l.body,f=getComputedStyle(d),p=l.compatMode==="CSS1Compat"&&parseFloat(f.marginLeft)+parseFloat(f.marginRight)||0,h=Math.abs(n.clientWidth-d.clientWidth-p);h<=Ni&&(s-=h)}else u<=Ni&&(s+=u);return{width:s,height:o,x:a,y:c}}function Ca(t,e){let r=wt(t,!0,e==="fixed"),n=r.top+t.clientTop,i=r.left+t.clientLeft,s=ne(t)?tt(t):J(1),o=t.clientWidth*s.x,a=t.clientHeight*s.y,c=i*s.x,u=n*s.y;return{width:o,height:a,x:c,y:u}}function Di(t,e,r){let n;if(e==="viewport")n=wa(t,r);else if(e==="document")n=Ea(re(t));else if(W(e))n=Ca(e,r);else{let i=$i(t);n={x:e.x-i.x,y:e.y-i.y,width:e.width,height:e.height}}return Oe(n)}function Bi(t,e){let r=ue(t);return r===e||!W(r)||Ie(r)?!1:z(r).position==="fixed"||Bi(r,e)}function Ta(t,e){let r=e.get(t);if(r)return r;let n=Vt(t,[],!1).filter(a=>W(a)&&_e(a)!=="body"),i=null,s=z(t).position==="fixed",o=s?ue(t):t;for(;W(o)&&!Ie(o);){let a=z(o),c=et(o);!c&&a.position==="fixed"&&(i=null),(s?!c&&!i:!c&&a.position==="static"&&!!i&&(i.position==="absolute"||i.position==="fixed")||Ze(o)&&!c&&Bi(t,o))?n=n.filter(l=>l!==o):i=a,o=ue(o)}return e.set(t,n),n}function Oa(t){let{element:e,boundary:r,rootBoundary:n,strategy:i}=t,o=[...r==="clippingAncestors"?St(e)?[]:Ta(e,this._c):[].concat(r),n],a=Di(e,o[0],i),c=a.top,u=a.right,l=a.bottom,d=a.left;for(let f=1;f<o.length;f++){let p=Di(e,o[f],i);c=ye(p.top,c),u=bt(p.right,u),l=bt(p.bottom,l),d=ye(p.left,d)}return{width:u-d,height:l-c,x:d,y:c}}function Ra(t){let{width:e,height:r}=Ui(t);return{width:e,height:r}}function _a(t,e,r){let n=ne(e),i=re(e),s=r==="fixed",o=wt(t,!0,s,e),a={scrollLeft:0,scrollTop:0},c=J(0);function u(){c.x=qt(i)}if(n||!n&&!s)if((_e(e)!=="body"||Ze(i))&&(a=Et(e)),n){let p=wt(e,!0,s,e);c.x=p.x+e.clientLeft,c.y=p.y+e.clientTop}else i&&u();s&&!n&&i&&u();let l=i&&!n&&!s?ji(i,a):J(0),d=o.left+a.scrollLeft-c.x-l.x,f=o.top+a.scrollTop-c.y-l.y;return{x:d,y:f,width:o.width,height:o.height}}function Kr(t){return z(t).position==="static"}function Mi(t,e){if(!ne(t)||z(t).position==="fixed")return null;if(e)return e(t);let r=t.offsetParent;return re(t)===r&&(r=r.ownerDocument.body),r}function Hi(t,e){let r=M(t);if(St(t))return r;if(!ne(t)){let i=ue(t);for(;i&&!Ie(i);){if(W(i)&&!Kr(i))return i;i=ue(i)}return r}let n=Mi(t,e);for(;n&&Li(n)&&Kr(n);)n=Mi(n,e);return n&&Ie(n)&&Kr(n)&&!et(n)?r:n||Pi(t)||r}var Ia=async function(t){let e=this.getOffsetParent||Hi,r=this.getDimensions,n=await r(t.floating);return{reference:_a(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function La(t){return z(t).direction==="rtl"}var Gt={convertOffsetParentRelativeRectToViewportRelativeRect:xa,getDocumentElement:re,getClippingRect:Oa,getOffsetParent:Hi,getElementRects:Ia,getClientRects:Sa,getDimensions:Ra,getScale:tt,isElement:W,isRTL:La};var Vi=Oi,Wi=Ri;var zi=(t,e,r)=>{let n=new Map,i={platform:Gt,...r},s={...i.platform,_c:n};return Ti(t,e,{...i,platform:s})};function Ki(t){return Pa(t)}function qr(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}function Pa(t){for(let e=t;e;e=qr(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=qr(t);e;e=qr(e)){if(!(e instanceof Element))continue;let r=getComputedStyle(e);if(r.display!=="contents"&&(r.position!=="static"||et(r)||e.tagName==="BODY"))return e}return null}async function qi(t,e,r){let n;return typeof r=="object"?n=r:n={placement:r},zi(t,e,{strategy:n.strategy,platform:{...Gt,getOffsetParent:i=>Gt.getOffsetParent(i,Ki)},middleware:[Wi({crossAxis:!0}),Vi({allowedPlacements:[n.placement]})]})}var pt=E(T());var An=E(te());var Gi=E(te(),1);var Gr=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)};function Yi(t,e){return(0,Gi.property)({type:Object,converter:{fromAttribute:r=>{if(r==null)return Ct(t);try{return JSON.parse(r)}catch{return Ct(t)}},toAttribute:r=>JSON.stringify(r)},hasChanged:Tt,...e??{}})}function ka(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(t.constructor!==e.constructor)return!1;let r,n;if(Array.isArray(t)){if(r=t.length,r!=e.length)return!1;for(n=r;n--!==0;)if(!Yt(t[n],e[n]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(n of t.entries())if(!e.has(n[0]))return!1;for(n of t.entries())if(!Yt(n[1],e.get(n[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(n of t.entries())if(!e.has(n[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();let i=o=>Object.keys(o).filter(a=>o[a]!=null),s=i(t);if(r=s.length,r!==i(e).length)return!1;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(e,s[n]))return!1;for(n=r;n--!==0;){let o=s[n];if(!Yt(t[o],e[o]))return!1}return!0}return t!==t&&e!==e||t==null&&e==null}function Yt(t,e){try{return ka(t,e)}catch{return!1}}function Tt(t,e){return!Yt(t,e)}function Ct(t){return typeof window.structuredClone=="function"?structuredClone(t):t!=null?JSON.parse(JSON.stringify(t)):t}function Xt(t,e){let r=n=>n[t]===!0;return n=>{if(r(n))return n;let i=e(n);return i[t]=!0,i}}var Xi=E(te(),1);var Yr=t=>{let e=t??{};return(r,n)=>{var i;let s={hasChanged:Tt,attribute:!1,...e};(0,Xi.property)(s)(r,n);let o=r.constructor;o.reduxProperties=new Map(o.reduxProperties),o.reduxProperties.set(n,{selector:(i=e.selector)!==null&&i!==void 0?i:(a=>a[n]),store:e.store})}};var Jt=class{constructor(){this.queue=[]}add(e,r=!1){r&&this.clear(e.type),this.queue.push(e)}consume(e){let r=this.queue.find(n=>n.type===e);return r&&(this.queue=this.queue.filter(n=>n!==r)),r}clear(e){typeof e=="string"?this.queue=this.queue.filter(r=>r.type!==e):this.queue=this.queue.filter(r=>!e.test(r.type))}};var Le=E(te(),1);var Qt=class{constructor(e=0){this.timeout=e,this.callbacks=[]}run(e,r){return this.callbacks=[e],this.debounce(r)}queue(e,r){return this.callbacks.push(e),this.debounce(r)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(e){return this.promise==null&&(this.promise=new Promise((r,n)=>{this.resolvePromise=r,this.rejectPromise=n})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),e??this.timeout),this.promise}async runCallbacks(){var e,r;let n=[...this.callbacks];this.callbacks=[];let i=(e=this.rejectPromise)!==null&&e!==void 0?e:(()=>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 Qi=E(oe(),1);var Zt=globalThis,Na=Zt.ShadowRoot&&(Zt.ShadyCSS===void 0||Zt.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype;var Ji=(t,e)=>{if(Na)t.adoptedStyleSheets=e.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of e){let n=document.createElement("style"),i=Zt.litNonce;i!==void 0&&n.setAttribute("nonce",i),n.textContent=r.cssText,t.appendChild(n)}};var er=class extends Qi.LitElement{get scopedRegistryConstructor(){return this.constructor}createRenderRoot(){let e=this.scopedRegistryConstructor;e.elementDefinitions&&!e.registry&&(e.registry=new CustomElementRegistry,e.defineScopedElements(e.elementDefinitions));let r={...e.shadowRootOptions,customElements:e.registry},n=this.renderOptions.creationScope=this.attachShadow(r);return Ji(n,e.elementStyles),n}static canDefineScopedElement(e){return!!this.registry&&!this.registry.get(e)}static defineScopedElements(e){Object.entries(e).forEach(([r,n])=>this.defineScopedElement(r,n))}static defineScopedElement(e,r){Gr(e)(r),this.canDefineScopedElement(e)&&this.registry.define(e,r)}canDefineScopedElement(e){return this.scopedRegistryConstructor.canDefineScopedElement(e)}defineScopedElements(e){this.scopedRegistryConstructor.defineScopedElements(e)}defineScopedElement(e,r){this.scopedRegistryConstructor.defineScopedElement(e,r)}};function Zi(t,e,...r){var n;let i=t.querySelector(e);for(let s of r)i=(n=i?.shadowRoot)===null||n===void 0?void 0:n.querySelector(s);return i}var nt=function(t,e,r,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,r,s):o(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s},ns,es=Symbol("constructorPrototype"),ts=Symbol("constructorName"),is=Symbol("exportpartsDebouncer"),rs=Symbol("dynamicDependenciesLoaded"),rt=class t extends CustomEvent{constructor(){super(t.eventName,{bubbles:!0})}};rt.eventName="exportparts-updated";var ie=class extends er{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[ns]=new Qt(5),this.scheduleExportpartsUpdate=()=>{var e,r,n;(!((e=this.exportpartsPrefix)===null||e===void 0)&&e.trim()||(n=(r=this.exportpartsPrefixes)===null||r===void 0?void 0:r.length)!==null&&n!==void 0&&n)&&this[is].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[ts]=this.constructor.name,this[es]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[ts]&&Object.setPrototypeOf(this,this[es])}connectedCallback(){var e;super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(n){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",n)}let r=this.constructor;r[rs]||(r[rs]=!0,this.importDynamicDependencies()),(e=this.shadowRoot)===null||e===void 0||e.addEventListener(rt.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.shadowRoot)===null||e===void 0||e.removeEventListener(rt.eventName,this.scheduleExportpartsUpdate)}importDynamicDependencies(){}updated(e){super.updated(e),this.updateComplete.then(()=>{this.contentAvailableCallback(e),this.focusElementToFocus(e),this.applyCustomStylesheet(e),this.scheduleExportpartsUpdate(),e.has("exportparts")&&this.dispatchEvent(new rt)})}contentAvailableCallback(e){}focusElementToFocus(e){if(e.has("elementToFocus")&&this.elementToFocus!=null){let{element:r,selector:n,shadowPath:i}=this.elementToFocus;if(n!=null){let s=[...i??[],n];r=Zi(this.shadowRoot,...s)}r?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||r?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(e){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(e.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(e){var r,n,i,s,o,a;let c=f=>f!=null&&f.trim().length>0,u=e.filter(c).map(f=>f.trim());if(u.length===0){this.exportparts=void 0;return}let l=new Set;for(let f of(n=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&n!==void 0?n:[]){let p=(s=(i=f.getAttribute("part"))===null||i===void 0?void 0:i.split(" "))!==null&&s!==void 0?s:[],h=(a=(o=f.getAttribute("exportparts"))===null||o===void 0?void 0:o.split(",").map(g=>g.split(":")[1]))!==null&&a!==void 0?a:[],m=[...p,...h].filter(c).map(g=>g.trim());for(let g of m)l.add(g)}if(l.size===0){this.exportparts=void 0;return}let d=[...l.values()].flatMap(f=>u.map(p=>`${f}:${p}--${f}`));this.exportparts=[...this.part,...d].join(", ")}};ns=is;nt([(0,Le.property)()],ie.prototype,"exportpartsPrefix",void 0);nt([Yi([])],ie.prototype,"exportpartsPrefixes",void 0);nt([(0,Le.property)({reflect:!0})],ie.prototype,"exportparts",void 0);nt([(0,Le.property)()],ie.prototype,"customStylesheet",void 0);nt([(0,Le.property)()],ie.prototype,"elementToFocus",void 0);nt([(0,Le.state)()],ie.prototype,"useAdoptedStyleSheets",void 0);function tr(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var Ot=Symbol("internalReduxEventsUnsubscribers"),ve=Symbol("internalStoresUnsubscribers"),Pe=Symbol("internalStores"),Da=Xt(Symbol("withRedux"),function(t){var e,r,n;class i extends t{constructor(){super(...arguments),this[e]=new Map,this[r]=new Map,this[n]=new Map}get reduxConstructor(){return this.constructor}willUpdate(o){super.willUpdate(o),[...this.reduxConstructor.reduxReactiveProperties].some(a=>o.has(a))&&this.updateFromStores()}getUnnamedStore(){if(this[Pe].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Pe].values()][0]}getStore(o){return o==null?this.getUnnamedStore():this[Pe].get(o)}addStore(o,a){var c;a=(c=a??o.name)!==null&&c!==void 0?c:"default-store",this.unsubscribeFromStore(a),this[Pe].set(a,o),this.subscribeToStore(a,o),this.updateFromStores()}removeStore(o){let a=typeof o=="string"?o:o.name;this.unsubscribeFromStore(a),this[Pe].delete(a)}setupStores(){this.unsubscribeFromStores(),this[Pe].forEach((o,a)=>this.subscribeToStore(a,o)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((o,a)=>{let c=this.constructor.getPropertyOptions(a);if(!c?.attribute||!this.hasAttribute(typeof c?.attribute=="string"?c.attribute:a)){let u=this.getStore(o.store);u&&(o.store?this[ve].has(o.store):this[ve].size>0)&&(this[a]=o.selector(u.getState(),this))}})}subscribeToStore(o,a){var c;this[ve].set(o,a.subscribe(()=>this.updateFromStores())),this[Ot].set(o,[]),tr(a)&&a.eventBus&&((c=this.reduxConstructor.reduxEventListeners)===null||c===void 0||c.forEach((u,l)=>{if(typeof this[l]=="function"&&(!u.store||a.name===u.store)){let d=f=>this[l](f);a.addEventListener(u.eventName,d),this[Ot].get(o).push(()=>a.removeEventListener(u.eventName,d))}})),this.onStoreAvailable(o)}unsubscribeFromStores(){this[ve].forEach((o,a)=>this.unsubscribeFromStore(a))}unsubscribeFromStore(o){var a;this[ve].has(o)&&this[ve].get(o)(),this[ve].delete(o),(a=this[Ot].get(o))===null||a===void 0||a.forEach(c=>c()),this[Ot].delete(o)}onStoreAvailable(o){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=ve,r=Pe,n=Ot,i.reduxProperties=new Map,i.reduxReactiveProperties=new Set,i.reduxEventListeners=new Map,i}),ss=class extends Da(ie){};function K(t){for(var e=arguments.length,r=Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];if(0)var i,s;throw Error("[Immer] minified error nr: "+t+(r.length?" "+r.map((function(o){return"'"+o+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function le(t){return!!t&&!!t[C]}function Q(t){var e;return!!t&&((function(r){if(!r||typeof r!="object")return!1;var n=Object.getPrototypeOf(r);if(n===null)return!0;var i=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return i===Object||typeof i=="function"&&Function.toString.call(i)===Va})(t)||Array.isArray(t)||!!t[fs]||!!(!((e=t.constructor)===null||e===void 0)&&e[fs])||sn(t)||on(t))}function ke(t,e,r){r===void 0&&(r=!1),ot(t)===0?(r?Object.keys:st)(t).forEach((function(n){r&&typeof n=="symbol"||e(n,t[n],t)})):t.forEach((function(n,i){return e(i,n,t)}))}function ot(t){var e=t[C];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:sn(t)?2:on(t)?3:0}function it(t,e){return ot(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function Ma(t,e){return ot(t)===2?t.get(e):t[e]}function ps(t,e,r){var n=ot(t);n===2?t.set(e,r):n===3?t.add(r):t[e]=r}function hs(t,e){return t===e?t!==0||1/t==1/e:t!=t&&e!=e}function sn(t){return Ba&&t instanceof Map}function on(t){return Ha&&t instanceof Set}function be(t){return t.o||t.t}function an(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=gs(t);delete e[C];for(var r=st(e),n=0;n<r.length;n++){var i=r[n],s=e[i];s.writable===!1&&(s.writable=!0,s.configurable=!0),(s.get||s.set)&&(e[i]={configurable:!0,writable:!0,enumerable:s.enumerable,value:t[i]})}return Object.create(Object.getPrototypeOf(t),e)}function cn(t,e){return e===void 0&&(e=!1),un(t)||le(t)||!Q(t)||(ot(t)>1&&(t.set=t.add=t.clear=t.delete=Ua),Object.freeze(t),e&&ke(t,(function(r,n){return cn(n,!0)}),!0)),t}function Ua(){K(2)}function un(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function se(t){var e=nn[t];return e||K(18,t),e}function Fa(t,e){nn[t]||(nn[t]=e)}function en(){return _t}function Xr(t,e){e&&(se("Patches"),t.u=[],t.s=[],t.v=e)}function rr(t){tn(t),t.p.forEach($a),t.p=null}function tn(t){t===_t&&(_t=t.l)}function os(t){return _t={p:[],l:_t,h:t,m:!0,_:0}}function $a(t){var e=t[C];e.i===0||e.i===1?e.j():e.g=!0}function Jr(t,e){e._=e.p.length;var r=e.p[0],n=t!==void 0&&t!==r;return e.h.O||se("ES5").S(e,t,n),n?(r[C].P&&(rr(e),K(4)),Q(t)&&(t=nr(e,t),e.l||ir(e,t)),e.u&&se("Patches").M(r[C].t,t,e.u,e.s)):t=nr(e,r,[]),rr(e),e.u&&e.v(e.u,e.s),t!==ys?t:void 0}function nr(t,e,r){if(un(e))return e;var n=e[C];if(!n)return ke(e,(function(a,c){return as(t,n,e,a,c,r)}),!0),e;if(n.A!==t)return e;if(!n.P)return ir(t,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var i=n.i===4||n.i===5?n.o=an(n.k):n.o,s=i,o=!1;n.i===3&&(s=new Set(i),i.clear(),o=!0),ke(s,(function(a,c){return as(t,n,i,a,c,r,o)})),ir(t,i,!1),r&&t.u&&se("Patches").N(n,r,t.u,t.s)}return n.o}function as(t,e,r,n,i,s,o){if(le(i)){var a=nr(t,i,s&&e&&e.i!==3&&!it(e.R,n)?s.concat(n):void 0);if(ps(r,n,a),!le(a))return;t.m=!1}else o&&r.add(i);if(Q(i)&&!un(i)){if(!t.h.D&&t._<1)return;nr(t,i),e&&e.A.l||ir(t,i)}}function ir(t,e,r){r===void 0&&(r=!1),!t.l&&t.h.D&&t.m&&cn(e,r)}function Qr(t,e){var r=t[C];return(r?be(r):t)[e]}function cs(t,e){if(e in t)for(var r=Object.getPrototypeOf(t);r;){var n=Object.getOwnPropertyDescriptor(r,e);if(n)return n;r=Object.getPrototypeOf(r)}}function Ae(t){t.P||(t.P=!0,t.l&&Ae(t.l))}function Zr(t){t.o||(t.o=an(t.t))}function rn(t,e,r){var n=sn(e)?se("MapSet").F(e,r):on(e)?se("MapSet").T(e,r):t.O?(function(i,s){var o=Array.isArray(i),a={i:o?1:0,A:s?s.A:en(),P:!1,I:!1,R:{},l:s,t:i,k:null,o:null,j:null,C:!1},c=a,u=It;o&&(c=[a],u=Rt);var l=Proxy.revocable(c,u),d=l.revoke,f=l.proxy;return a.k=f,a.j=d,f})(e,r):se("ES5").J(e,r);return(r?r.A:en()).p.push(n),n}function ja(t){return le(t)||K(22,t),(function e(r){if(!Q(r))return r;var n,i=r[C],s=ot(r);if(i){if(!i.P&&(i.i<4||!se("ES5").K(i)))return i.t;i.I=!0,n=us(r,s),i.I=!1}else n=us(r,s);return ke(n,(function(o,a){i&&Ma(i.t,o)===a||ps(n,o,e(a))})),s===3?new Set(n):n})(t)}function us(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return an(t)}function ms(){function t(o,a){var c=s[o];return c?c.enumerable=a:s[o]=c={configurable:!0,enumerable:a,get:function(){var u=this[C];return It.get(u,o)},set:function(u){var l=this[C];It.set(l,o,u)}},c}function e(o){for(var a=o.length-1;a>=0;a--){var c=o[a][C];if(!c.P)switch(c.i){case 5:n(c)&&Ae(c);break;case 4:r(c)&&Ae(c)}}}function r(o){for(var a=o.t,c=o.k,u=st(c),l=u.length-1;l>=0;l--){var d=u[l];if(d!==C){var f=a[d];if(f===void 0&&!it(a,d))return!0;var p=c[d],h=p&&p[C];if(h?h.t!==f:!hs(p,f))return!0}}var m=!!a[C];return u.length!==st(a).length+(m?0:1)}function n(o){var a=o.k;if(a.length!==o.t.length)return!0;var c=Object.getOwnPropertyDescriptor(a,a.length-1);if(c&&!c.get)return!0;for(var u=0;u<a.length;u++)if(!a.hasOwnProperty(u))return!0;return!1}function i(o){o.g&&K(3,JSON.stringify(be(o)))}var s={};Fa("ES5",{J:function(o,a){var c=Array.isArray(o),u=(function(d,f){if(d){for(var p=Array(f.length),h=0;h<f.length;h++)Object.defineProperty(p,""+h,t(h,!0));return p}var m=gs(f);delete m[C];for(var g=st(m),v=0;v<g.length;v++){var b=g[v];m[b]=t(b,d||!!m[b].enumerable)}return Object.create(Object.getPrototypeOf(f),m)})(c,o),l={i:c?5:4,A:a?a.A:en(),P:!1,I:!1,R:{},l:a,t:o,k:u,o:null,g:!1,C:!1};return Object.defineProperty(u,C,{value:l,writable:!0}),u},S:function(o,a,c){c?le(a)&&a[C].A===o&&e(o.p):(o.u&&(function u(l){if(l&&typeof l=="object"){var d=l[C];if(d){var f=d.t,p=d.k,h=d.R,m=d.i;if(m===4)ke(p,(function(S){S!==C&&(f[S]!==void 0||it(f,S)?h[S]||u(p[S]):(h[S]=!0,Ae(d)))})),ke(f,(function(S){p[S]!==void 0||it(p,S)||(h[S]=!1,Ae(d))}));else if(m===5){if(n(d)&&(Ae(d),h.length=!0),p.length<f.length)for(var g=p.length;g<f.length;g++)h[g]=!1;else for(var v=f.length;v<p.length;v++)h[v]=!0;for(var b=Math.min(p.length,f.length),x=0;x<b;x++)p.hasOwnProperty(x)||(h[x]=!0),h[x]===void 0&&u(p[x])}}}})(o.p[0]),e(o.p))},K:function(o){return o.i===4?r(o):n(o)}})}var ls,_t,ln=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",Ba=typeof Map<"u",Ha=typeof Set<"u",ds=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",ys=ln?Symbol.for("immer-nothing"):((ls={})["immer-nothing"]=!0,ls),fs=ln?Symbol.for("immer-draftable"):"__$immer_draftable",C=ln?Symbol.for("immer-state"):"__$immer_state";var Va=""+Object.prototype.constructor,st=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,gs=Object.getOwnPropertyDescriptors||function(t){var e={};return st(t).forEach((function(r){e[r]=Object.getOwnPropertyDescriptor(t,r)})),e},nn={},It={get:function(t,e){if(e===C)return t;var r=be(t);if(!it(r,e))return(function(i,s,o){var a,c=cs(s,o);return c?"value"in c?c.value:(a=c.get)===null||a===void 0?void 0:a.call(i.k):void 0})(t,r,e);var n=r[e];return t.I||!Q(n)?n:n===Qr(t.t,e)?(Zr(t),t.o[e]=rn(t.A.h,n,t)):n},has:function(t,e){return e in be(t)},ownKeys:function(t){return Reflect.ownKeys(be(t))},set:function(t,e,r){var n=cs(be(t),e);if(n?.set)return n.set.call(t.k,r),!0;if(!t.P){var i=Qr(be(t),e),s=i?.[C];if(s&&s.t===r)return t.o[e]=r,t.R[e]=!1,!0;if(hs(r,i)&&(r!==void 0||it(t.t,e)))return!0;Zr(t),Ae(t)}return t.o[e]===r&&(r!==void 0||e in t.o)||Number.isNaN(r)&&Number.isNaN(t.o[e])||(t.o[e]=r,t.R[e]=!0),!0},deleteProperty:function(t,e){return Qr(t.t,e)!==void 0||e in t.t?(t.R[e]=!1,Zr(t),Ae(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var r=be(t),n=Reflect.getOwnPropertyDescriptor(r,e);return n&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:n.enumerable,value:r[e]}},defineProperty:function(){K(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){K(12)}},Rt={};ke(It,(function(t,e){Rt[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),Rt.deleteProperty=function(t,e){return Rt.set.call(this,t,e,void 0)},Rt.set=function(t,e,r){return It.set.call(this,t[0],e,r,t[0])};var Wa=(function(){function t(r){var n=this;this.O=ds,this.D=!0,this.produce=function(i,s,o){if(typeof i=="function"&&typeof s!="function"){var a=s;s=i;var c=n;return function(m){var g=this;m===void 0&&(m=a);for(var v=arguments.length,b=Array(v>1?v-1:0),x=1;x<v;x++)b[x-1]=arguments[x];return c.produce(m,(function(S){var I;return(I=s).call.apply(I,[g,S].concat(b))}))}}var u;if(typeof s!="function"&&K(6),o!==void 0&&typeof o!="function"&&K(7),Q(i)){var l=os(n),d=rn(n,i,void 0),f=!0;try{u=s(d),f=!1}finally{f?rr(l):tn(l)}return typeof Promise<"u"&&u instanceof Promise?u.then((function(m){return Xr(l,o),Jr(m,l)}),(function(m){throw rr(l),m})):(Xr(l,o),Jr(u,l))}if(!i||typeof i!="object"){if((u=s(i))===void 0&&(u=i),u===ys&&(u=void 0),n.D&&cn(u,!0),o){var p=[],h=[];se("Patches").M(i,u,p,h),o(p,h)}return u}K(21,i)},this.produceWithPatches=function(i,s){if(typeof i=="function")return function(u){for(var l=arguments.length,d=Array(l>1?l-1:0),f=1;f<l;f++)d[f-1]=arguments[f];return n.produceWithPatches(u,(function(p){return i.apply(void 0,[p].concat(d))}))};var o,a,c=n.produce(i,s,(function(u,l){o=u,a=l}));return typeof Promise<"u"&&c instanceof Promise?c.then((function(u){return[u,o,a]})):[c,o,a]},typeof r?.useProxies=="boolean"&&this.setUseProxies(r.useProxies),typeof r?.autoFreeze=="boolean"&&this.setAutoFreeze(r.autoFreeze)}var e=t.prototype;return e.createDraft=function(r){Q(r)||K(8),le(r)&&(r=ja(r));var n=os(this),i=rn(this,r,void 0);return i[C].C=!0,tn(n),i},e.finishDraft=function(r,n){var i=r&&r[C],s=i.A;return Xr(s,n),Jr(void 0,s)},e.setAutoFreeze=function(r){this.D=r},e.setUseProxies=function(r){r&&!ds&&K(20),this.O=r},e.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=se("Patches").$;return le(r)?o(r,n):this.produce(r,(function(a){return o(a,n)}))},t})(),$=new Wa,za=$.produce,Qu=$.produceWithPatches.bind($),Zu=$.setAutoFreeze.bind($),el=$.setUseProxies.bind($),tl=$.applyPatches.bind($),rl=$.createDraft.bind($),nl=$.finishDraft.bind($),sr=za;function Ne(t){"@babel/helpers - typeof";return Ne=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ne(t)}function vs(t,e){if(Ne(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(Ne(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function bs(t){var e=vs(t,"string");return Ne(e)=="symbol"?e:e+""}function As(t,e,r){return(e=bs(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function xs(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function dn(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?xs(Object(r),!0).forEach(function(n){As(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):xs(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function k(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}var Ss=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})(),fn=function(){return Math.random().toString(36).substring(7).split("").join(".")},or={INIT:"@@redux/INIT"+fn(),REPLACE:"@@redux/REPLACE"+fn(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+fn()}};function Ka(t){if(typeof t!="object"||t===null)return!1;for(var e=t;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function pn(t,e,r){var n;if(typeof e=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(k(0));if(typeof e=="function"&&typeof r>"u"&&(r=e,e=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(k(1));return r(pn)(t,e)}if(typeof t!="function")throw new Error(k(2));var i=t,s=e,o=[],a=o,c=!1;function u(){a===o&&(a=o.slice())}function l(){if(c)throw new Error(k(3));return s}function d(m){if(typeof m!="function")throw new Error(k(4));if(c)throw new Error(k(5));var g=!0;return u(),a.push(m),function(){if(g){if(c)throw new Error(k(6));g=!1,u();var b=a.indexOf(m);a.splice(b,1),o=null}}}function f(m){if(!Ka(m))throw new Error(k(7));if(typeof m.type>"u")throw new Error(k(8));if(c)throw new Error(k(9));try{c=!0,s=i(s,m)}finally{c=!1}for(var g=o=a,v=0;v<g.length;v++){var b=g[v];b()}return m}function p(m){if(typeof m!="function")throw new Error(k(10));i=m,f({type:or.REPLACE})}function h(){var m,g=d;return m={subscribe:function(b){if(typeof b!="object"||b===null)throw new Error(k(11));function x(){b.next&&b.next(l())}x();var S=g(x);return{unsubscribe:S}}},m[Ss]=function(){return this},m}return f({type:or.INIT}),n={dispatch:f,subscribe:d,getState:l,replaceReducer:p},n[Ss]=h,n}function qa(t){Object.keys(t).forEach(function(e){var r=t[e],n=r(void 0,{type:or.INIT});if(typeof n>"u")throw new Error(k(12));if(typeof r(void 0,{type:or.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(k(13))})}function Es(t){for(var e=Object.keys(t),r={},n=0;n<e.length;n++){var i=e[n];typeof t[i]=="function"&&(r[i]=t[i])}var s=Object.keys(r),o,a;try{qa(r)}catch(c){a=c}return function(u,l){if(u===void 0&&(u={}),a)throw a;if(0)var d;for(var f=!1,p={},h=0;h<s.length;h++){var m=s[h],g=r[m],v=u[m],b=g(v,l);if(typeof b>"u"){var x=l&&l.type;throw new Error(k(14))}p[m]=b,f=f||b!==v}return f=f||s.length!==Object.keys(u).length,f?p:u}}function at(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return e.length===0?function(n){return n}:e.length===1?e[0]:e.reduce(function(n,i){return function(){return n(i.apply(void 0,arguments))}})}function ws(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return function(n){return function(){var i=n.apply(void 0,arguments),s=function(){throw new Error(k(15))},o={getState:i.getState,dispatch:function(){return s.apply(void 0,arguments)}},a=e.map(function(c){return c(o)});return s=at.apply(void 0,a)(i.dispatch),dn(dn({},i),{},{dispatch:s})}}}function Cs(t){var e=function(n){var i=n.dispatch,s=n.getState;return function(o){return function(a){return typeof a=="function"?a(i,s,t):o(a)}}};return e}var Ts=Cs();Ts.withExtraArgument=Cs;var hn=Ts;var Ls=(function(){var t=function(e,r){return t=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])},t(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),Ga=function(t,e){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(u){return function(l){return c([u,l])}}function c(u){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,i&&(s=u[0]&2?i.return:u[0]?i.throw||((s=i.return)&&s.call(i),0):i.next)&&!(s=s.call(i,u[1])).done)return s;switch(i=0,s&&(u=[u[0]&2,s.value]),u[0]){case 0:case 1:s=u;break;case 4:return r.label++,{value:u[1],done:!1};case 5:r.label++,i=u[1],u=[0];continue;case 7:u=r.ops.pop(),r.trys.pop();continue;default:if(s=r.trys,!(s=s.length>0&&s[s.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!s||u[1]>s[0]&&u[1]<s[3])){r.label=u[1];break}if(u[0]===6&&r.label<s[1]){r.label=s[1],s=u;break}if(s&&r.label<s[2]){r.label=s[2],r.ops.push(u);break}s[2]&&r.ops.pop(),r.trys.pop();continue}u=e.call(t,r)}catch(l){u=[6,l],i=0}finally{n=s=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}},ct=function(t,e){for(var r=0,n=e.length,i=t.length;r<n;r++,i++)t[i]=e[r];return t},Ya=Object.defineProperty,Xa=Object.defineProperties,Ja=Object.getOwnPropertyDescriptors,Os=Object.getOwnPropertySymbols,Qa=Object.prototype.hasOwnProperty,Za=Object.prototype.propertyIsEnumerable,Rs=function(t,e,r){return e in t?Ya(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r},xe=function(t,e){for(var r in e||(e={}))Qa.call(e,r)&&Rs(t,r,e[r]);if(Os)for(var n=0,i=Os(e);n<i.length;n++){var r=i[n];Za.call(e,r)&&Rs(t,r,e[r])}return t},mn=function(t,e){return Xa(t,Ja(e))},ec=function(t,e,r){return new Promise(function(n,i){var s=function(c){try{a(r.next(c))}catch(u){i(u)}},o=function(c){try{a(r.throw(c))}catch(u){i(u)}},a=function(c){return c.done?n(c.value):Promise.resolve(c.value).then(s,o)};a((r=r.apply(t,e)).next())})};var tc=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?at:at.apply(null,arguments)},xl=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}};function rc(t){if(typeof t!="object"||t===null)return!1;var e=Object.getPrototypeOf(t);if(e===null)return!0;for(var r=e;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return e===r}function Se(t,e){function r(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];if(e){var s=e.apply(void 0,n);if(!s)throw new Error("prepareAction did not return an object");return xe(xe({type:t,payload:s.payload},"meta"in s&&{meta:s.meta}),"error"in s&&{error:s.error})}return{type:t,payload:n[0]}}return r.toString=function(){return""+t},r.type=t,r.match=function(n){return n.type===t},r}var nc=(function(t){Ls(e,t);function e(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var i=t.apply(this,r)||this;return Object.setPrototypeOf(i,e.prototype),i}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return t.prototype.concat.apply(this,r)},e.prototype.prepend=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return r.length===1&&Array.isArray(r[0])?new(e.bind.apply(e,ct([void 0],r[0].concat(this)))):new(e.bind.apply(e,ct([void 0],r.concat(this))))},e})(Array),ic=(function(t){Ls(e,t);function e(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var i=t.apply(this,r)||this;return Object.setPrototypeOf(i,e.prototype),i}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return t.prototype.concat.apply(this,r)},e.prototype.prepend=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return r.length===1&&Array.isArray(r[0])?new(e.bind.apply(e,ct([void 0],r[0].concat(this)))):new(e.bind.apply(e,ct([void 0],r.concat(this))))},e})(Array);function vn(t){return Q(t)?sr(t,function(){}):t}function sc(t){return typeof t=="boolean"}function oc(){return function(e){return ac(e)}}function ac(t){t===void 0&&(t={});var e=t.thunk,r=e===void 0?!0:e,n=t.immutableCheck,i=n===void 0?!0:n,s=t.serializableCheck,o=s===void 0?!0:s,a=t.actionCreatorCheck,c=a===void 0?!0:a,u=new nc;if(r&&(sc(r)?u.push(hn):u.push(hn.withExtraArgument(r.extraArgument))),0){if(i)var l;if(o)var d;if(c)var f}return u}var yn=!0;function Ps(t){var e=oc(),r=t||{},n=r.reducer,i=n===void 0?void 0:n,s=r.middleware,o=s===void 0?e():s,a=r.devTools,c=a===void 0?!0:a,u=r.preloadedState,l=u===void 0?void 0:u,d=r.enhancers,f=d===void 0?void 0:d,p;if(typeof i=="function")p=i;else if(rc(i))p=Es(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(e),!yn&&!Array.isArray(h)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!yn&&h.some(function(S){return typeof S!="function"}))throw new Error("each middleware provided to configureStore must be a function");var m=ws.apply(void 0,h),g=at;c&&(g=tc(xe({trace:!yn},typeof c=="object"&&c)));var v=new ic(m),b=v;Array.isArray(f)?b=ct([m],f):typeof f=="function"&&(b=f(v));var x=g.apply(void 0,b);return pn(p,l,x)}function ks(t){var e={},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 e)throw new Error("`builder.addCase` cannot be called with two reducers for the same action type");return e[a]=o,i},addMatcher:function(s,o){return r.push({matcher:s,reducer:o}),i},addDefaultCase:function(s){return n=s,i}};return t(i),[e,r,n]}function cc(t){return typeof t=="function"}function uc(t,e,r,n){r===void 0&&(r=[]);var i=typeof e=="function"?ks(e):[e,r,n],s=i[0],o=i[1],a=i[2],c;if(cc(t))c=function(){return vn(t())};else{var u=vn(t);c=function(){return u}}function l(d,f){d===void 0&&(d=c());var p=ct([s[f.type]],o.filter(function(h){var m=h.matcher;return m(f)}).map(function(h){var m=h.reducer;return m}));return p.filter(function(h){return!!h}).length===0&&(p=[a]),p.reduce(function(h,m){if(m)if(le(h)){var g=h,v=m(g,f);return v===void 0?h:v}else{if(Q(h))return sr(h,function(b){return m(b,f)});var v=m(h,f);if(v===void 0){if(h===null)return h;throw Error("A case reducer on a non-draftable value must not return undefined")}return v}return h},d)}return l.getInitialState=c,l}function lc(t,e){return t+"/"+e}function Ns(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");typeof process<"u";var r=typeof t.initialState=="function"?t.initialState:vn(t.initialState),n=t.reducers||{},i=Object.keys(n),s={},o={},a={};i.forEach(function(l){var d=n[l],f=lc(e,l),p,h;"reducer"in d?(p=d.reducer,h=d.prepare):p=d,s[l]=p,o[f]=p,a[l]=h?Se(f,h):Se(f)});function c(){var l=typeof t.extraReducers=="function"?ks(t.extraReducers):[t.extraReducers],d=l[0],f=d===void 0?{}:d,p=l[1],h=p===void 0?[]:p,m=l[2],g=m===void 0?void 0:m,v=xe(xe({},f),o);return uc(r,function(b){for(var x in v)b.addCase(x,v[x]);for(var S=0,I=h;S<I.length;S++){var R=I[S];b.addMatcher(R.matcher,R.reducer)}g&&b.addDefaultCase(g)})}var u;return{name:e,reducer:function(l,d){return u||(u=c()),u(l,d)},actions:a,caseReducers:s,getInitialState:function(){return u||(u=c()),u.getInitialState()}}}var dc="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",fc=function(t){t===void 0&&(t=21);for(var e="",r=t;r--;)e+=dc[Math.random()*64|0];return e},pc=["name","message","stack","code"],gn=(function(){function t(e,r){this.payload=e,this.meta=r}return t})(),_s=(function(){function t(e,r){this.payload=e,this.meta=r}return t})(),hc=function(t){if(typeof t=="object"&&t!==null){for(var e={},r=0,n=pc;r<n.length;r++){var i=n[r];typeof t[i]=="string"&&(e[i]=t[i])}return e}return{message:String(t)}},Cl=(function(){function t(e,r,n){var i=Se(e+"/fulfilled",function(l,d,f,p){return{payload:l,meta:mn(xe({},p||{}),{arg:f,requestId:d,requestStatus:"fulfilled"})}}),s=Se(e+"/pending",function(l,d,f){return{payload:void 0,meta:mn(xe({},f||{}),{arg:d,requestId:l,requestStatus:"pending"})}}),o=Se(e+"/rejected",function(l,d,f,p,h){return{payload:p,error:(n&&n.serializeError||hc)(l||"Rejected"),meta:mn(xe({},h||{}),{arg:f,requestId:d,rejectedWithValue:!!p,requestStatus:"rejected",aborted:l?.name==="AbortError",condition:l?.name==="ConditionError"})}}),a=!1,c=typeof AbortController<"u"?AbortController:(function(){function l(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return l.prototype.abort=function(){},l})();function u(l){return function(d,f,p){var h=n?.idGenerator?n.idGenerator(l):fc(),m=new c,g,v=!1;function b(S){g=S,m.abort()}var x=(function(){return ec(this,null,function(){var S,I,R,fe,Cr,pe,U;return Ga(this,function(H){switch(H.label){case 0:return H.trys.push([0,4,,5]),fe=(S=n?.condition)==null?void 0:S.call(n,l,{getState:f,extra:p}),yc(fe)?[4,fe]:[3,2];case 1:fe=H.sent(),H.label=2;case 2:if(fe===!1||m.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return v=!0,Cr=new Promise(function(F,Ee){return m.signal.addEventListener("abort",function(){return Ee({name:"AbortError",message:g||"Aborted"})})}),d(s(h,l,(I=n?.getPendingMeta)==null?void 0:I.call(n,{requestId:h,arg:l},{getState:f,extra:p}))),[4,Promise.race([Cr,Promise.resolve(r(l,{dispatch:d,getState:f,extra:p,requestId:h,signal:m.signal,abort:b,rejectWithValue:function(F,Ee){return new gn(F,Ee)},fulfillWithValue:function(F,Ee){return new _s(F,Ee)}})).then(function(F){if(F instanceof gn)throw F;return F instanceof _s?i(F.payload,h,l,F.meta):i(F,h,l)})])];case 3:return R=H.sent(),[3,5];case 4:return pe=H.sent(),R=pe instanceof gn?o(null,h,l,pe.payload,pe.meta):o(pe,h,l),[3,5];case 5:return U=n&&!n.dispatchConditionRejection&&o.match(R)&&R.meta.condition,U||d(R),[2,R]}})})})();return Object.assign(x,{abort:b,requestId:h,arg:l,unwrap:function(){return x.then(mc)}})}}return Object.assign(u,{pending:s,rejected:o,fulfilled:i,typePrefix:e})}return t.withTypes=function(){return t},t})();function mc(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function yc(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var Ds="listener",Ms="completed",Us="cancelled",Tl="task-"+Us,Ol="task-"+Ms,Rl=Ds+"-"+Us,_l=Ds+"-"+Ms;var bn="listenerMiddleware";var Il=Se(bn+"/add"),Ll=Se(bn+"/removeAll"),Pl=Se(bn+"/remove");var Is,kl=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(t){return(Is||(Is=Promise.resolve())).then(t).catch(function(e){return setTimeout(function(){throw e},0)})},gc=function(t){return function(e){setTimeout(e,t)}},Nl=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:gc(10);ms();var vc=Xt(Symbol("withEventBus"),function(t,e){return class extends t{constructor(){super(...arguments),this.eventBus=e??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)}}}),ar=class extends vc(Object){};window.ftReduxStores||(window.ftReduxStores={});var Fs=class t extends ar{static get(e){var r;let n=typeof e=="string"?e:e.name,i=typeof e=="string"?void 0:e,s=window.ftReduxStores[n];if(tr(s))return s;if(i==null)return;let o=Ns({...i,reducers:(r=i.reducers)!==null&&r!==void 0?r:{}}),a=Ps({reducer:(c,u)=>{if(u.type==="CLEAR_FT_REDUX_STORE"){let l=Ct(o.getInitialState());for(let d of u.keeping)l[d]=(c??l)[d];return l}else if(typeof u.type=="string"&&u.type.startsWith("DEFAULT_VALUE_SETTER__"))return{...c,...u.overwrites};return o.reducer(c,u)}});return window.ftReduxStores[i.name]=new t(o,a,i.eventBus)}constructor(e,r,n){super(),this.reduxSlice=e,this.reduxStore=r,this.isFtReduxStore=!0,this.commands=new Jt;let i=s=>s!=null?JSON.parse(JSON.stringify(s)):s;this.actions=new Proxy(this.reduxSlice.actions,{get:(s,o,a)=>{let c=o,u=s[c];return u?(...l)=>{let d=u(...l.map(i));return this.reduxStore.dispatch(d),d}:l=>{this.setState({[c]:i(l)})}}}),this.eventBus=n??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:[]})}clearKeeping(...e){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:e})}setState(e){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(e).join("_"),overwrites:e})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(e){throw new Error("Not implemented yet.")}subscribe(e){return this.reduxStore.subscribe(e)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};var cr=class{static format(e,r,n,i,s){return window.moment?window.moment(e).locale(r).format(this.getMomentDateFormat(n,i,!!s)):this.getIntlDateTime(e,r,n,i,!!s)}static getMomentDateFormat(e,r,n){return n?"LT":e?r?"lll":"ll":r?"L LT":"L"}static getIntlDateTime(e,r,n,i,s){let o=typeof e=="string"?new Date(e):e,a=new Intl.DateTimeFormat(r,{dateStyle:n?"medium":"short"}).format(o),c=new Intl.DateTimeFormat(r,{timeStyle:"short"}).format(o);return s?c:i?`${a} ${c}`:a}static getTimezoneAsString(){let e=n=>String(Math.floor(n)).padStart(2,"0"),r=new Date().getTimezoneOffset();return`${r<0?"+":"-"}${e(Math.abs(r)/60)}:${e(Math.abs(r)%60)}`}};var ur=E(T()),bc="ft-app-info",ut=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};ut.eventName="authentication-change";var Lt=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};Lt.eventName="ui-locale-changed";var Ac={session:(t,e)=>{(0,ur.deepEqual)(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>w.dispatchEvent(new ut(e.payload)),0))}},w=ur.FtReduxStore.get({name:bc,reducers:Ac,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 $s=E(T()),lr=function(t,e,r,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,r,s):o(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s},cd=(0,$s.applyMixinOnce)(Symbol("withDateFormat"),function(t){class e extends t{constructor(...n){super(n),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(w)}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=>cr.format(a,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return lr([(0,An.property)({type:Boolean})],e.prototype,"useLongDateFormat",void 0),lr([(0,An.property)({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),lr([Yr({store:w.name,selector:r=>{var n,i;return(i=(n=r.metadataConfiguration)===null||n===void 0?void 0:n.descriptors)!==null&&i!==void 0?i:[]}})],e.prototype,"metadataDescriptors",void 0),lr([Yr({store:w.name})],e.prototype,"uiLocale",void 0),e});var js;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(js||(js={}));var Bs;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(Bs||(Bs={}));var Hs;(function(t){t.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",t.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",t.PERSONAL_BOOK="PERSONAL_BOOK",t.ATTACHMENT="ATTACHMENT",t.RESOURCE="RESOURCE",t.HTML_PACKAGE="HTML_PACKAGE"})(Hs||(Hs={}));var Vs;(function(t){t.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",t.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",t.PERSONAL_BOOK="PERSONAL_BOOK",t.ATTACHMENT="ATTACHMENT",t.RESOURCE="RESOURCE",t.HTML_PACKAGE="HTML_PACKAGE"})(Vs||(Vs={}));var Ws;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Ws||(Ws={}));var zs;(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(zs||(zs={}));var Ks;(function(t){t.OFFICIAL="OFFICIAL",t.AI="AI"})(Ks||(Ks={}));var qs;(function(t){t.BOOKMARK__CREATE="BOOKMARK__CREATE",t.BOOKMARK__DELETE="BOOKMARK__DELETE",t.CASE_DEFLECTION__START="CASE_DEFLECTION__START",t.CASE_DEFLECTION__OPEN_TICKET="CASE_DEFLECTION__OPEN_TICKET",t.CASE_DEFLECTION__RATE="CASE_DEFLECTION__RATE",t.CHATBOT__RATE="CHATBOT__RATE",t.COLLECTION__CREATE="COLLECTION__CREATE",t.COLLECTION__UPDATE="COLLECTION__UPDATE",t.COLLECTION__DELETE="COLLECTION__DELETE",t.CUSTOM_EVENT__TRIGGER="CUSTOM_EVENT__TRIGGER",t.DOCUMENT__ON_DEMAND_TRANSLATE="DOCUMENT__ON_DEMAND_TRANSLATE",t.DOCUMENT__DOWNLOAD="DOCUMENT__DOWNLOAD",t.DOCUMENT__PRINT="DOCUMENT__PRINT",t.DOCUMENT__PROCESS="DOCUMENT__PROCESS",t.DOCUMENT__RATE="DOCUMENT__RATE",t.DOCUMENT__SEARCH="DOCUMENT__SEARCH",t.DOCUMENT__START_DISPLAY="DOCUMENT__START_DISPLAY",t.DOCUMENT__UNRATE="DOCUMENT__UNRATE",t.FEEDBACK__SEND="FEEDBACK__SEND",t.AI__COMPLETED_QUERY="AI__COMPLETED_QUERY",t.AI__RATE="AI__RATE",t.AI_CASE_DEFLECTION__START="AI_CASE_DEFLECTION__START",t.AI_CASE_DEFLECTION__OPEN_TICKET="AI_CASE_DEFLECTION__OPEN_TICKET",t.KHUB__PROCESS="KHUB__PROCESS",t.KHUB__SEARCH="KHUB__SEARCH",t.LABELS__DOWNLOAD="LABELS__DOWNLOAD",t.LINK__SHARE="LINK__SHARE",t.PAGE__DISPLAY="PAGE__DISPLAY",t.PERSONAL_BOOK__CREATE="PERSONAL_BOOK__CREATE",t.PERSONAL_BOOK__DELETE="PERSONAL_BOOK__DELETE",t.PERSONAL_BOOK__UPDATE="PERSONAL_BOOK__UPDATE",t.PERSONAL_TOPIC__CREATE="PERSONAL_TOPIC__CREATE",t.PERSONAL_TOPIC__UPDATE="PERSONAL_TOPIC__UPDATE",t.PERSONAL_TOPIC__DELETE="PERSONAL_TOPIC__DELETE",t.SAVED_SEARCH__CREATE="SAVED_SEARCH__CREATE",t.SAVED_SEARCH__DELETE="SAVED_SEARCH__DELETE",t.SAVED_SEARCH__UPDATE="SAVED_SEARCH__UPDATE",t.SEARCH_PAGE__SELECT="SEARCH_PAGE__SELECT",t.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU="SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU",t.TOPIC__AI_TRANSLATE="TOPIC__AI_TRANSLATE",t.TOPIC__RATE="TOPIC__RATE",t.TOPIC__START_DISPLAY="TOPIC__START_DISPLAY",t.TOPIC__UNRATE="TOPIC__UNRATE",t.USER__LOGIN="USER__LOGIN",t.USER__LOGOUT="USER__LOGOUT",t.HEARTBEAT="HEARTBEAT"})(qs||(qs={}));var Gs;(function(t){t.STANDARD="STANDARD",t.STRUCTURAL="STRUCTURAL"})(Gs||(Gs={}));var Ys;(function(t){t.THIRD_PARTY="THIRD_PARTY",t.OFF_THE_GRID="OFF_THE_GRID",t.CONTENT_PACKAGER="CONTENT_PACKAGER",t.PAGES="PAGES",t.DESIGNED_READER="DESIGNED_READER"})(Ys||(Ys={}));var Xs;(function(t){t.HOMEPAGE="HOMEPAGE",t.CUSTOM="CUSTOM",t.HEADER="HEADER",t.READER="READER",t.TOPIC_TEMPLATE="TOPIC_TEMPLATE",t.SEARCH="SEARCH",t.SEARCH_RESULT="SEARCH_RESULT",t.SEARCH_ANNOUNCEMENT="SEARCH_ANNOUNCEMENT",t.LINK_PREVIEW="LINK_PREVIEW",t.UD_VIEWER="UD_VIEWER",t.ASSET_VIEWER="ASSET_VIEWER"})(Xs||(Xs={}));var Js;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(Js||(Js={}));var Qs;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(Qs||(Qs={}));var Zs;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(Zs||(Zs={}));var eo;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(eo||(eo={}));var to;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR",t.CUSTOM="CUSTOM"})(to||(to={}));var ro;(function(t){t.OPTIONAL="OPTIONAL",t.MANDATORY="MANDATORY"})(ro||(ro={}));var no;(function(t){t.ASC="ASC",t.DESC="DESC"})(no||(no={}));var io;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(io||(io={}));var so;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(so||(so={}));var oo;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(oo||(oo={}));var ao;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(ao||(ao={}));var co;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(co||(co={}));var uo;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(uo||(uo={}));var lo;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.HTML_PACKAGE="HTML_PACKAGE",t.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(lo||(lo={}));var fo;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(fo||(fo={}));var po;(function(t){t.PLAIN_TEXT="PLAIN_TEXT",t.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",t.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(po||(po={}));var _;(function(t){t.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",t.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",t.HTML_EXPORT_USER="HTML_EXPORT_USER",t.PDF_EXPORT_USER="PDF_EXPORT_USER",t.SAVED_SEARCH_USER="SAVED_SEARCH_USER",t.COLLECTION_USER="COLLECTION_USER",t.OFFLINE_USER="OFFLINE_USER",t.ANALYTICS_USER="ANALYTICS_USER",t.BETA_USER="BETA_USER",t.DEBUG_USER="DEBUG_USER",t.PRINT_USER="PRINT_USER",t.RATING_USER="RATING_USER",t.FEEDBACK_USER="FEEDBACK_USER",t.GENERATIVE_AI_USER="GENERATIVE_AI_USER",t.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_USER",t.CONTENT_PUBLISHER="CONTENT_PUBLISHER",t.BEHAVIOR_DATA_USER="BEHAVIOR_DATA_USER",t.ANNOUNCEMENT_ADMIN="ANNOUNCEMENT_ADMIN",t.KHUB_ADMIN="KHUB_ADMIN",t.USERS_ADMIN="USERS_ADMIN",t.PORTAL_ADMIN="PORTAL_ADMIN",t.ADMIN="ADMIN"})(_||(_={}));var q;(function(t){t.SEARCHES="SEARCHES",t.BOOKMARKS="BOOKMARKS",t.BOOKS="BOOKS",t.COLLECTIONS="COLLECTIONS"})(q||(q={}));var ho;(function(t){t.UNAUTHENTICATED="UNAUTHENTICATED",t.USER_INCOMPLETE="USER_INCOMPLETE",t.MFA_REQUIRED="MFA_REQUIRED",t.AUTHENTICATED="AUTHENTICATED"})(ho||(ho={}));var mo;(function(t){t.UNREACHABLE="UNREACHABLE",t.UNAUTHORIZED="UNAUTHORIZED",t.FORBIDDEN="FORBIDDEN",t.INCOMPATIBLE="INCOMPATIBLE",t.FAILED="FAILED",t.OK="OK"})(mo||(mo={}));var yo;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(yo||(yo={}));var go;(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",t.SUMMARY="SUMMARY",t.SEMANTIC_SEARCH="SEMANTIC_SEARCH",t.CHATBOT_INSTRUCTIONS="CHATBOT_INSTRUCTIONS",t.DOCUMENTATION="DOCUMENTATION",t.OTHER="OTHER"})(go||(go={}));var vo;(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",t.SLOW="SLOW",t.OTHER="OTHER"})(vo||(vo={}));var bo;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(bo||(bo={}));var Ao;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(Ao||(Ao={}));var xo;(function(t){t.TEXT="TEXT",t.HTML="HTML"})(xo||(xo={}));var So;(function(t){t.IN_PROGRESS="IN_PROGRESS",t.ERROR="ERROR",t.DONE="DONE"})(So||(So={}));var Eo;(function(t){t.HTML="HTML",t.MARKDOWN="MARKDOWN"})(Eo||(Eo={}));var wo;(function(t){t.SOURCES="SOURCES",t.ENRICH_AND_CLEAN="ENRICH_AND_CLEAN",t.VOCABULARIES="VOCABULARIES",t.METADATA="METADATA",t.PRETTY_URL="PRETTY_URL",t.ACCESS_RULE="ACCESS_RULE",t.DESIGNED_PAGES="DESIGNED_PAGES",t.THEME_STUDIO="THEME_STUDIO",t.PORTAL_GENERAL="PORTAL_GENERAL",t.ASSETS="ASSETS",t.CODE_LIBRARY="CODE_LIBRARY",t.THEME="THEME",t.CONTENT_STYLES="CONTENT_STYLES",t.HOMEPAGE="HOMEPAGE",t.CLASSIC_SEARCH_PAGE="CLASSIC_SEARCH_PAGE",t.CLASSIC_READER_PAGE="CLASSIC_READER_PAGE",t.PORTAL_METADATA="PORTAL_METADATA",t.LANGUAGES="LANGUAGES",t.PRINT_TEMPLATES="PRINT_TEMPLATES",t.OFFLINE="OFFLINE",t.CUSTOM_JS="CUSTOM_JS",t.CONFIDENTIALITY="CONFIDENTIALITY",t.NOTIFICATIONS="NOTIFICATIONS"})(wo||(wo={}));var Co;(function(t){t.MAP="MAP",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(Co||(Co={}));var xc={[_.PERSONAL_BOOK_SHARE_USER]:[_.PERSONAL_BOOK_USER],[_.HTML_EXPORT_USER]:[_.PERSONAL_BOOK_USER],[_.PDF_EXPORT_USER]:[_.PERSONAL_BOOK_USER],[_.KHUB_ADMIN]:[_.CONTENT_PUBLISHER],[_.ADMIN]:[_.KHUB_ADMIN,_.USERS_ADMIN,_.PORTAL_ADMIN,_.BEHAVIOR_DATA_USER],[_.GENERATIVE_AI_EXPORT_USER]:[_.GENERATIVE_AI_USER]};function To(t,e){return t===e||(xc[t]??[]).some(r=>To(r,e))}function Oo(t,e){return t==null?!1:(Array.isArray(t)?t:Array.isArray(t.roles)?t.roles:Array.isArray(t.profile?.roles)?t.profile.roles:[]).some(n=>To(n,e))}var mr=E(T());var xn=E(T());var De=class t{static get(e){let{baseUrl:r,apiIntegrationIdentifier:n}=w.getState(),i=e??n;if(r&&i&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(r,i,!0)}static await(e){return new Promise(r=>{let n=t.get(e);if(n)r(n);else{let i=w.subscribe(()=>{n=t.get(e),n&&(i(),r(n))})}})}};var lt=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:De.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):De.await()}};var j=class extends lt{constructor(e=!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],[c])=>a.localeCompare(c)));let i=this.constructor;i.commonCache=(n=i.commonCache)!==null&&n!==void 0?n:new xn.CacheRegistry,this.cache=e?i.commonCache:new xn.CacheRegistry}clearCache(){this.cache.clearAll()}hash(e){return String(Array.from(JSON.stringify(e,this.sortObjectFields)).reduce((r,n)=>0|31*r+n.charCodeAt(0),0))}};var dr=class extends j{async listMySearches(){let{session:e}=w.getState();return Oo(e,_.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),300*1e3):[]}};var fr=class extends j{async listMyBookmarks(){let e=w.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),300*1e3):[]}};var pr=class extends j{constructor(){super(...arguments),this.CACHE_DURATION=180*1e3}async getUserAssetCount(e){if(this.isAuthenticated())return this.cache.get(`user-asset-count-${e}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/${e}`),this.CACHE_DURATION)}async getUserBookmarkCountByMap(e){if(this.isAuthenticated())return this.cache.get(`user-bookmark-count-by-map-${e}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/BOOKMARKS/${e}`),this.CACHE_DURATION)}isAuthenticated(){let e=w.getState().session;return!!e?.sessionAuthenticated}};var hr=class extends j{constructor(){super(...arguments),this.CACHE_DURATION=180*1e3}async getUserAssetLabels(){return this.isAuthenticated()?this.cache.get("user-asset-labels",async()=>(await this.awaitApi).get("/internal/api/webapp/user/assets/labels"),this.CACHE_DURATION):[]}isAuthenticated(){let e=w.getState().session;return!!e?.sessionAuthenticated}};var Sc="ft-user-assets",Ec={setAssetCount:(t,e)=>{let{userAssetType:r,count:n}=e.payload.assetCount;t.assetCounts.allAsset[r]=n},clearAssetCount:t=>{Object.values(q).forEach(e=>{t.assetCounts.allAsset[e]=void 0})},setBookmarkCountByMap:(t,e)=>{let r=e.payload.mapId;t.assetCounts.bookmarkByMap[r]=e.payload.count},clearBookmarkCountByMap:t=>{t.assetCounts.bookmarkByMap={}},addAsset:(t,e)=>{let{assetType:r,mapId:n,asset:i}=e.payload;En(t,r,[...Sn(t,r),i]),Ro(t,r,1,n),_o(t,i)},editAsset:(t,e)=>{let{assetType:r,asset:n}=e.payload;En(t,r,Sn(t,r).map(i=>i.id===n.id?n:i)),_o(t,n)},removeAsset:(t,e)=>{let{assetType:r,mapId:n,assetId:i}=e.payload;En(t,r,Sn(t,r).filter(s=>s.id!==i)),Ro(t,r,-1,n)}},Io={[q.SEARCHES]:"savedSearches",[q.BOOKMARKS]:"bookmarks",[q.BOOKS]:void 0,[q.COLLECTIONS]:void 0},Sn=(t,e)=>{var r;let n=Io[e];return n?(r=t[n])!==null&&r!==void 0?r:[]:[]},En=(t,e,r)=>{let n=Io[e];n&&(t[n]=r)},Ro=(t,e,r,n)=>{let i=t.assetCounts.allAsset[e];if(i!==void 0&&(t.assetCounts.allAsset[e]=Math.max(0,i+r),e===q.BOOKMARKS&&n)){let s=t.assetCounts.bookmarkByMap[n];t.assetCounts.bookmarkByMap[n]=Math.max(0,s+r)}},_o=(t,e)=>{let r=t.assetLabels.map(i=>i.title),n=e.labels.filter(i=>!r.includes(i)).map(i=>({title:i}));t.assetLabels.push(...n)},D=mr.FtReduxStore.get({name:Sc,reducers:Ec,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(q).map(t=>[t,void 0])),bookmarkByMap:{}},assetLabels:[]}}),wn=class{constructor(e=new pr,r=new hr){this.assetCountsService=e,this.assetLabelsService=r,this.currentSession=w.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new fr,this.savedSearchesService=new dr,w.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:r}=w.getState();(0,mr.deepEqual)((e=this.currentSession)===null||e===void 0?void 0:e.profile,r?.profile)||(this.currentSession=r,this.clearMySearches(),this.reloadBookmarks(),this.clearUserAssetCounts(),this.reloadAssetLabels())}clearUserAssetCounts(){this.assetCountsService.clearCache(),D.actions.clearAssetCount(),D.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),D.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),D.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();D.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let e=await this.assetLabelsService.getUserAssetLabels();D.actions.assetLabels(e)}async loadAssetCount(e){let r=await this.assetCountsService.getUserAssetCount(e);r&&D.getState().assetCounts.allAsset[e]!==r.count&&D.actions.setAssetCount({assetCount:r})}async loadBookmarkByMapId(e){let r=await this.assetCountsService.getUserBookmarkCountByMap(e);r&&D.getState().assetCounts.bookmarkByMap[e]!==r.count&&D.actions.setBookmarkCountByMap({count:r.count,mapId:e})}async reloadAssetCount(e){this.assetCountsService.clearCache();let r=Object.keys(D.getState().assetCounts.bookmarkByMap).length!==0;e===q.BOOKMARKS&&r&&D.actions.clearBookmarkCountByMap(),D.getState().assetCounts.allAsset[e]!==void 0&&await this.loadAssetCount(e)}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var e;if(this.bookmarksAreUsed){let r=!((e=this.currentSession)===null||e===void 0)&&e.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;D.actions.bookmarks(r)}}},wc=new wn;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=wc);var Cn=class{addCommand(e,r=!1){w.commands.add(e,r)}consumeCommand(e){return w.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new Cn;var G=E(T());var Lo,dt=class extends CustomEvent{constructor(e){super("ft-i18n-context-loaded",{detail:e})}},Cc=Symbol("clearAfterUnitTest"),yr=class extends(0,G.withEventBus)(j){constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[Lo]=()=>{this.defaultMessages={},this.cache=new G.CacheRegistry,this.listeners={}},this.currentUiLocale=w.getState().uiLocale,w.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=w.getState();this.currentUiLocale!==e&&(this.currentUiLocale=e,this.cache.clearAll(),this.notifyAll())}addContext(e){let r=e.name.toLowerCase();this.cache.setFinal(r,e),this.notify(r)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(e,r){var n;if(e=e.toLowerCase(),r&&Object.keys(r).length>0){let i={...(n=this.defaultMessages[e])!==null&&n!==void 0?n:{},...r};(0,G.deepEqual)(this.defaultMessages[e],i)||(this.defaultMessages[e]=i,await this.notify(e))}return this.fetchContext(e)}resolveContext(e){var r,n;return this.fetchContext(e),(n=(r=this.cache.getNow(e))===null||r===void 0?void 0:r.messages)!==null&&n!==void 0?n:{}}resolveRawMessage(e,r){let n=e.toLowerCase();return this.resolveContext(n)[r]}resolveMessage(e,r,...n){var i;let s=e.toLowerCase(),o=this.resolveContext(s);return new G.ParametrizedLabelResolver((i=this.defaultMessages[s])!==null&&i!==void 0?i:{},o).resolve(r,...n)}async fetchContext(e){let r=!this.cache.has(e),n;try{n=await this.cache.get(e,()=>this.messageContextProvider(this.currentUiLocale,e)),r&&await this.notify(e)}catch(i){!(i instanceof G.CanceledPromiseError)&&r&&console.error(i)}return n}subscribe(e,r){var n;return e=e.toLowerCase(),this.listeners[e]=(n=this.listeners[e])!==null&&n!==void 0?n:new Set,this.listeners[e].add(r),()=>{var i;return(i=this.listeners[e])===null||i===void 0?void 0:i.delete(r)}}async notifyAll(){let e=Object.keys(this.listeners);document.body.dispatchEvent(new dt({loadedContexts:e})),this.dispatchEvent(new dt({loadedContexts:e})),await Promise.all(e.map(r=>this.notify(r,!1)))}async notify(e,r=!0){r&&(document.body.dispatchEvent(new dt({loadedContexts:[e]})),this.dispatchEvent(new dt({loadedContexts:[e]}))),this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(n=>(0,G.delay)(0).then(()=>n()).catch(()=>null)))}};Lo=Cc;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends yr{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends yr{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});var Pt=window.FluidTopicsI18nService,Tn=window.FluidTopicsCustomI18nService;var Po=E(T()),On=class{highlightHtml(e,r,n){(0,Po.highlightHtml)(e,r,n)}};window.FluidTopicsHighlightHtmlService=new On;var ko=E(T());var Rn=class{isDate(e){var r,n,i,s;return(s=(i=((n=(r=w.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&n!==void 0?n:[]).find(a=>a.key===e))===null||i===void 0?void 0:i.date)!==null&&s!==void 0?s:!1}format(e,r){var n,i,s,o;if(e==null)return"";try{return ko.DateFormatter.format(e,(n=r?.locale)!==null&&n!==void 0?n:w.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(e)} is not valid`,a),a}}};window.FluidTopicsDateService=new Rn;var No=E(T());var kt=class{static get(e,r){var n,i;let s=w.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 No.SearchPlaceConverter(s.baseUrl,e??20,s.searchInAllLanguagesAllowed,r??`${o}-${a}`)}};var _n=class{urlToSearchRequest(e){return kt.get().parse(e)}searchRequestToUrl(e){return kt.get().serialize(e)}};window.FluidTopicsUrlService=new _n;var de=E(T());var Me=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{currentItem:e}})}};Me.eventName="change";var In=class{itemName(e){return`fluid-topics-history-item-${e}`}get(e){let r=sessionStorage.getItem(this.itemName(e));return r?JSON.parse(r):void 0}set(e,r){sessionStorage.setItem(this.itemName(e),JSON.stringify(r))}},Do=new In;var gr=class t extends de.WithEventBus{static build(){return new t(window.history,Do,()=>window.location,!1)}constructor(e,r,n,i){var s,o;super(),this.history=e,this.historyStorage=r,this.windowLocation=n,this.states=[],this.realPushState=e.pushState,this.realReplaceState=e.replaceState,this.initialIndex=(o=(s=e.state)===null||s===void 0?void 0:s.index)!==null&&o!==void 0?o:e.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(i)}setCurrentState(e,r=!1){let n=r&&this.currentIndex===e.index-1;this.currentState={...this.buildCurrentState(),...e},this.currentIndex=this.currentState.index,this.states[this.currentIndex]=this.currentState,n&&(this.states=this.states.slice(0,this.currentIndex+1)),this.historyStorage.set(this.currentIndex,this.currentState),(0,de.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,window.location.href]),setTimeout(()=>this.dispatchEvent(new Me(this.currentItem())),0)}installProxies(){let e=r=>(n,i,[s,o,a])=>{let c=r(),u={...c===this.currentIndex?this.currentState:void 0,...s,index:c,href:typeof a=="string"?a:(a??this.windowLocation()).href};n.apply(i,[u,o,a]),this.setCurrentState(u,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:e(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:e(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",e=>this.setCurrentState(e.state)),document.querySelector("title")==null&&document.head.append(document.createElement("title")),new MutationObserver(()=>this.updateCurrentState({title:document.title})).observe(document.querySelector("title"),{subtree:!0,characterData:!0,childList:!0})}initData(e){for(let r=this.history.length-1;r>=0;r--)e?this.states[r]=this.historyStorage.get(r):setTimeout(()=>this.states[r]=this.historyStorage.get(r),this.history.length-r)}updateCurrentState(e){var r;let n={...this.buildCurrentState(),...e,index:this.currentIndex,title:(r=e?.title)!==null&&r!==void 0?r:this.currentState.title};this.setCurrentState(n)}addHistoryChangeListener(e){this.addEventListener(Me.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(Me.eventName,e)}currentItem(){return(0,de.deepCopy)(this.currentState)}back(){let e=this.previousDifferentMajorPosition();e>=0?this.history.go(e-this.currentIndex):this.currentIndex!==this.initialIndex?this.history.go(this.initialIndex-this.currentIndex):this.history.back()}backwardItem(){return(0,de.deepCopy)(this.states[this.previousDifferentMajorPosition()])}backwardItemMatching(e){let r=this.states.filter(n=>!!n).filter(n=>n.index<this.currentIndex).reverse();return(0,de.deepCopy)(r.find(n=>e(n)))}previousDifferentMajorPosition(){let e=this.currentIndex>0?this.currentIndex-1:0;for(;e>0&&!this.isDifferentMajorState(e);)e--;return e}forward(){let e=this.nextMajorPosition();e&&e<this.states.length?this.history.go(e-this.currentIndex):this.history.forward()}forwardItem(){let e=this.nextMajorPosition();if(e)return(0,de.deepCopy)(this.states[e])}nextMajorPosition(){let e=this.currentIndex;if(!(e>=this.states.length)){do e++;while(e<this.states.length&&!this.isDifferentMajorState(e));return this.getHigherPositionInTheSameState(e)}}getHigherPositionInTheSameState(e){var r;let n=(r=this.states[e])===null||r===void 0?void 0:r.majorStateId;if(!n)return e;let i=e,s=e+1;for(;this.states.length>s&&!this.isDifferentMajorState(s,n);)this.hasState(s)&&(i=s),s++;return i}buildCurrentState(){var e,r;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(r=(e=this.history.state)===null||e===void 0?void 0:e.title)!==null&&r!==void 0?r:document.title}}hasState(e){return this.states[e]!=null}isDifferentMajorState(e,r){var n;if(!this.hasState(e))return!1;let i=r??this.currentState.majorStateId,s=(n=this.states[e])===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:t=>window.FluidTopicsInternalHistoryService.backwardItemMatching(t),addHistoryChangeListener:t=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(t),removeHistoryChangeListener:t=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(t)});var Mo=E(oe());var Uo=Mo.css`
|
|
138
|
-
`;var jo=E(
|
|
137
|
+
`;var bi=["top","right","bottom","left"],vi=["start","end"],Br=bi.reduce((e,t)=>e.concat(t,t+"-"+vi[0],t+"-"+vi[1]),[]),be=Math.min,yt=Math.max,Ae=Math.round;var J=e=>({x:e,y:e}),pa={left:"right",right:"left",bottom:"top",top:"bottom"};function Ai(e,t,r){return yt(e,be(t,r))}function Be(e,t){return typeof e=="function"?e(t):e}function xe(e){return e.split("-")[0]}function gt(e){return e.split("-")[1]}function Hr(e){return e==="x"?"y":"x"}function Vr(e){return e==="y"?"height":"width"}function He(e){let t=e[0];return t==="t"||t==="b"?"y":"x"}function Wr(e){return Hr(He(e))}function xi(e,t,r){r===void 0&&(r=!1);let n=gt(e),i=Wr(e),s=Vr(i),o=i==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(o=jr(o)),[o,jr(o)]}function Si(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}function jr(e){let t=xe(e);return pa[t]+e.slice(t.length)}function ha(e){var t,r,n,i;return{top:(t=e.top)!=null?t:0,right:(r=e.right)!=null?r:0,bottom:(n=e.bottom)!=null?n:0,left:(i=e.left)!=null?i:0}}function Ei(e){return typeof e!="number"?ha(e):{top:e,right:e,bottom:e,left:e}}function Ot(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 wi(e,t,r){let{reference:n,floating:i}=e,s=He(t),o=Wr(t),a=Vr(o),c=xe(t),u=s==="y",l=n.x+n.width/2-i.width/2,d=n.y+n.height/2-i.height/2,f=n[a]/2-i[a]/2,p;switch(c){case"top":p={x:l,y:n.y-i.height};break;case"bottom":p={x:l,y:n.y+n.height};break;case"right":p={x:n.x+n.width,y:d};break;case"left":p={x:n.x-i.width,y:d};break;default:p={x:n.x,y:n.y}}let h=gt(t);return h&&(p[o]+=f*(h==="end"?1:-1)*(r&&u?-1:1)),p}async function Ci(e,t){var r;t===void 0&&(t={});let{x:n,y:i,platform:s,rects:o,elements:a,strategy:c}=e,{boundary:u="clippingAncestors",rootBoundary:l="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=Be(t,e),h=Ei(p),g=a[f?d==="floating"?"reference":"floating":d],v=Ot(await s.getClippingRect({element:(r=await(s.isElement==null?void 0:s.isElement(g)))==null||r?g:g.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(a.floating)),boundary:u,rootBoundary:l,strategy:c})),b=d==="floating"?{x:n,y:i,width:o.floating.width,height:o.floating.height}:o.reference,x=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a.floating)),S=await(s.isElement==null?void 0:s.isElement(x))&&await(s.getScale==null?void 0:s.getScale(x))||{x:1,y:1},I=Ot(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:b,offsetParent:x,strategy:c}):b);return{top:(v.top-I.top+h.top)/S.y,bottom:(I.bottom-v.bottom+h.bottom)/S.y,left:(v.left-I.left+h.left)/S.x,right:(I.right-v.right+h.right)/S.x}}var ma=50,Ti=async(e,t,r)=>{let{placement:n="bottom",strategy:i="absolute",middleware:s=[],platform:o}=r,a=o.detectOverflow?o:{...o,detectOverflow:Ci},c=await(o.isRTL==null?void 0:o.isRTL(t)),u=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:l,y:d}=wi(u,n,c),f=n,p=0,h={};for(let m=0;m<s.length;m++){let g=s[m];if(!g)continue;let{name:v,fn:b}=g,{x,y:S,data:I,reset:R}=await b({x:l,y:d,initialPlacement:n,placement:f,strategy:i,middlewareData:h,rects:u,platform:a,elements:{reference:e,floating:t}});l=x??l,d=S??d,h[v]={...h[v],...I},R&&p<ma&&(p++,typeof R=="object"&&(R.placement&&(f=R.placement),R.rects&&(u=R.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):R.rects),{x:l,y:d}=wi(u,f,c)),m=-1)}return{x:l,y:d,placement:f,strategy:i,middlewareData:h}};function ya(e,t,r){return(e?[...r.filter(i=>gt(i)===e),...r.filter(i=>gt(i)!==e)]:r.filter(i=>xe(i)===i)).filter(i=>e?gt(i)===e||(t?Si(i)!==i:!1):!0)}var Oi=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:c,elements:u}=t,{crossAxis:l=!1,alignment:d,allowedPlacements:f=Br,autoAlignment:p=!0,...h}=Be(e,t),m=d!==void 0||f===Br?ya(d||null,p,f):f,g=((r=o.autoPlacement)==null?void 0:r.index)||0,v=m[g];if(v==null)return{};if(a!==v)return{reset:{placement:m[0]}};let b=await c.detectOverflow(t,h),x=xi(v,s,await(c.isRTL==null?void 0:c.isRTL(u.floating))),S=[b[xe(v)],b[x[0]],b[x[1]]],I=[...((n=o.autoPlacement)==null?void 0:n.overflows)||[],{placement:v,overflows:S}],R=m[g+1];if(R)return{data:{index:g+1,overflows:I},reset:{placement:R}};let ft=I.map(U=>{let H=gt(U.placement);return[U.placement,H&&l?U.overflows.slice(0,2).reduce((F,Et)=>F+Et,0):U.overflows[0],U.overflows]}).sort((U,H)=>U[1]-H[1]),pt=((i=ft.filter(U=>U[2].slice(0,gt(U[0])?2:3).every(H=>H<=0))[0])==null?void 0:i[0])||ft[0][0];return pt!==a?{data:{index:g+1,overflows:I},reset:{placement:pt}}:{}}}};var Ri=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:c={fn:b=>{let{x,y:S}=b;return{x,y:S}}},...u}=Be(e,t),l={x:r,y:n},d=await s.detectOverflow(t,u),f=He(i),p=Hr(f),h=l[p],m=l[f],g=(b,x)=>Ai(x+d[b==="y"?"top":"left"],x,x-d[b==="y"?"bottom":"right"]);o&&(h=g(p,h)),a&&(m=g(f,m));let v=c.fn({...t,[p]:h,[f]:m});return{...v,data:{x:v.x-r,y:v.y-n,enabled:{[p]:o,[f]:a}}}}}};function We(){return typeof window<"u"}function _t(e){return Ii(e)?(e.nodeName||"").toLowerCase():"#document"}function M(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function rt(e){var t;return(t=(Ii(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Ii(e){return We()?e instanceof Node||e instanceof M(e).Node:!1}function W(e){return We()?e instanceof Element||e instanceof M(e).Element:!1}function nt(e){return We()?e instanceof HTMLElement||e instanceof M(e).HTMLElement:!1}function _i(e){return!We()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof M(e).ShadowRoot}function Zt(e){let{overflow:t,overflowX:r,overflowY:n,display:i}=z(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&i!=="inline"&&i!=="contents"}function Pi(e){return/^(table|td|th)$/.test(_t(e))}function Se(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}var ga=/transform|translate|scale|rotate|perspective|filter/,va=/paint|layout|strict|content/,Rt=e=>!!e&&e!=="none",zr;function te(e){let t=W(e)?z(e):e;return Rt(t.transform)||Rt(t.translate)||Rt(t.scale)||Rt(t.rotate)||Rt(t.perspective)||!ze()&&(Rt(t.backdropFilter)||Rt(t.filter))||ga.test(t.willChange||"")||va.test(t.contain||"")}function Li(e){let t=ut(e);for(;nt(t)&&!It(t);){if(te(t))return t;if(Se(t))return null;t=ut(t)}return null}function ze(){return zr==null&&(zr=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),zr}function It(e){return/^(html|body|#document)$/.test(_t(e))}function z(e){return M(e).getComputedStyle(e)}function Ee(e){return W(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ut(e){if(_t(e)==="html")return e;let t=e.assignedSlot||e.parentNode||_i(e)&&e.host||rt(e);return _i(t)?t.host:t}function ki(e){let t=ut(e);return It(t)?(e.ownerDocument||e).body:nt(t)&&Zt(t)?t:ki(t)}function Ve(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);let i=ki(e),s=i===((n=e.ownerDocument)==null?void 0:n.body),o=M(i);if(s){let a=Ke(o);return t.concat(o,o.visualViewport||[],Zt(i)?i:[],a&&r?Ve(a):[])}else return t.concat(i,Ve(i,[],r))}function Ke(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Ui(e){let t=z(e),r=parseFloat(t.width)||0,n=parseFloat(t.height)||0,i=nt(e),s=i?e.offsetWidth:r,o=i?e.offsetHeight:n,a=Ae(r)!==s||Ae(n)!==o;return a&&(r=s,n=o),{width:r,height:n,$:a}}function Fi(e){return W(e)?e:e.contextElement}function ee(e){let t=Fi(e);if(!nt(t))return J(1);let r=t.getBoundingClientRect(),{width:n,height:i,$:s}=Ui(t),o=(s?Ae(r.width):r.width)/n,a=(s?Ae(r.height):r.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!a||!Number.isFinite(a))&&(a=1),{x:o,y:a}}var ba=J(0);function $i(e){let t=M(e);return!ze()||!t.visualViewport?ba:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Aa(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==M(e)?!1:t}function we(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);let i=e.getBoundingClientRect(),s=Fi(e),o=J(1);t&&(n?W(n)&&(o=ee(n)):o=ee(e));let a=Aa(s,r,n)?$i(s):J(0),c=(i.left+a.x)/o.x,u=(i.top+a.y)/o.y,l=i.width/o.x,d=i.height/o.y;if(s){let f=M(s),p=n&&W(n)?M(n):n,h=f,m=Ke(h);for(;m&&n&&p!==h;){let g=ee(m),v=m.getBoundingClientRect(),b=z(m),x=v.left+(m.clientLeft+parseFloat(b.paddingLeft))*g.x,S=v.top+(m.clientTop+parseFloat(b.paddingTop))*g.y;c*=g.x,u*=g.y,l*=g.x,d*=g.y,c+=x,u+=S,h=M(m),m=Ke(h)}}return Ot({width:l,height:d,x:c,y:u})}function qe(e,t){let r=Ee(e).scrollLeft;return t?t.left+r:we(rt(e)).left+r}function ji(e,t){let r=e.getBoundingClientRect(),n=r.left+t.scrollLeft-qe(e,r),i=r.top+t.scrollTop;return{x:n,y:i}}function xa(e){let{elements:t,rect:r,offsetParent:n,strategy:i}=e,s=i==="fixed",o=rt(n),a=t?Se(t.floating):!1;if(n===o||a&&s)return r;let c={scrollLeft:0,scrollTop:0},u=J(1),l=J(0),d=nt(n);if((d||!d&&!s)&&((_t(n)!=="body"||Zt(o))&&(c=Ee(n)),d)){let p=we(n);u=ee(n),l.x=p.x+n.clientLeft,l.y=p.y+n.clientTop}let f=o&&!d&&!s?ji(o,c):J(0);return{width:r.width*u.x,height:r.height*u.y,x:r.x*u.x-c.scrollLeft*u.x+l.x+f.x,y:r.y*u.y-c.scrollTop*u.y+l.y+f.y}}function Sa(e){return Array.from(e.getClientRects())}function Ea(e){let t=rt(e),r=Ee(e),n=e.ownerDocument.body,i=yt(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),s=yt(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight),o=-r.scrollLeft+qe(e),a=-r.scrollTop;return z(n).direction==="rtl"&&(o+=yt(t.clientWidth,n.clientWidth)-i),{width:i,height:s,x:o,y:a}}var Ni=25;function wa(e,t){let r=M(e),n=rt(e),i=r.visualViewport,s=n.clientWidth,o=n.clientHeight,a=0,c=0;if(i){s=i.width,o=i.height;let l=ze();(!l||l&&t==="fixed")&&(a=i.offsetLeft,c=i.offsetTop)}let u=qe(n);if(u<=0){let l=n.ownerDocument,d=l.body,f=getComputedStyle(d),p=l.compatMode==="CSS1Compat"&&parseFloat(f.marginLeft)+parseFloat(f.marginRight)||0,h=Math.abs(n.clientWidth-d.clientWidth-p);h<=Ni&&(s-=h)}else u<=Ni&&(s+=u);return{width:s,height:o,x:a,y:c}}function Ca(e,t){let r=we(e,!0,t==="fixed"),n=r.top+e.clientTop,i=r.left+e.clientLeft,s=nt(e)?ee(e):J(1),o=e.clientWidth*s.x,a=e.clientHeight*s.y,c=i*s.x,u=n*s.y;return{width:o,height:a,x:c,y:u}}function Di(e,t,r){let n;if(t==="viewport")n=wa(e,r);else if(t==="document")n=Ea(rt(e));else if(W(t))n=Ca(t,r);else{let i=$i(e);n={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return Ot(n)}function Bi(e,t){let r=ut(e);return r===t||!W(r)||It(r)?!1:z(r).position==="fixed"||Bi(r,t)}function Ta(e,t){let r=t.get(e);if(r)return r;let n=Ve(e,[],!1).filter(a=>W(a)&&_t(a)!=="body"),i=null,s=z(e).position==="fixed",o=s?ut(e):e;for(;W(o)&&!It(o);){let a=z(o),c=te(o);!c&&a.position==="fixed"&&(i=null),(s?!c&&!i:!c&&a.position==="static"&&!!i&&(i.position==="absolute"||i.position==="fixed")||Zt(o)&&!c&&Bi(e,o))?n=n.filter(l=>l!==o):i=a,o=ut(o)}return t.set(e,n),n}function Oa(e){let{element:t,boundary:r,rootBoundary:n,strategy:i}=e,o=[...r==="clippingAncestors"?Se(t)?[]:Ta(t,this._c):[].concat(r),n],a=Di(t,o[0],i),c=a.top,u=a.right,l=a.bottom,d=a.left;for(let f=1;f<o.length;f++){let p=Di(t,o[f],i);c=yt(p.top,c),u=be(p.right,u),l=be(p.bottom,l),d=yt(p.left,d)}return{width:u-d,height:l-c,x:d,y:c}}function Ra(e){let{width:t,height:r}=Ui(e);return{width:t,height:r}}function _a(e,t,r){let n=nt(t),i=rt(t),s=r==="fixed",o=we(e,!0,s,t),a={scrollLeft:0,scrollTop:0},c=J(0);function u(){c.x=qe(i)}if(n||!n&&!s)if((_t(t)!=="body"||Zt(i))&&(a=Ee(t)),n){let p=we(t,!0,s,t);c.x=p.x+t.clientLeft,c.y=p.y+t.clientTop}else i&&u();s&&!n&&i&&u();let l=i&&!n&&!s?ji(i,a):J(0),d=o.left+a.scrollLeft-c.x-l.x,f=o.top+a.scrollTop-c.y-l.y;return{x:d,y:f,width:o.width,height:o.height}}function Kr(e){return z(e).position==="static"}function Mi(e,t){if(!nt(e)||z(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return rt(e)===r&&(r=r.ownerDocument.body),r}function Hi(e,t){let r=M(e);if(Se(e))return r;if(!nt(e)){let i=ut(e);for(;i&&!It(i);){if(W(i)&&!Kr(i))return i;i=ut(i)}return r}let n=Mi(e,t);for(;n&&Pi(n)&&Kr(n);)n=Mi(n,t);return n&&It(n)&&Kr(n)&&!te(n)?r:n||Li(e)||r}var Ia=async function(e){let t=this.getOffsetParent||Hi,r=this.getDimensions,n=await r(e.floating);return{reference:_a(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function Pa(e){return z(e).direction==="rtl"}var Ge={convertOffsetParentRelativeRectToViewportRelativeRect:xa,getDocumentElement:rt,getClippingRect:Oa,getOffsetParent:Hi,getElementRects:Ia,getClientRects:Sa,getDimensions:Ra,getScale:ee,isElement:W,isRTL:Pa};var Vi=Oi,Wi=Ri;var zi=(e,t,r)=>{let n=new Map,i={platform:Ge,...r},s={...i.platform,_c:n};return Ti(e,t,{...i,platform:s})};function Ki(e){return La(e)}function qr(e){return e.assignedSlot?e.assignedSlot:e.parentNode instanceof ShadowRoot?e.parentNode.host:e.parentNode}function La(e){for(let t=e;t;t=qr(t))if(t instanceof Element&&getComputedStyle(t).display==="none")return null;for(let t=qr(e);t;t=qr(t)){if(!(t instanceof Element))continue;let r=getComputedStyle(t);if(r.display!=="contents"&&(r.position!=="static"||te(r)||t.tagName==="BODY"))return t}return null}async function qi(e,t,r){let n;return typeof r=="object"?n=r:n={placement:r},zi(e,t,{strategy:n.strategy,platform:{...Ge,getOffsetParent:i=>Ge.getOffsetParent(i,Ki)},middleware:[Wi({crossAxis:!0}),Vi({allowedPlacements:[n.placement]})]})}var pe=E(T());var An=E(et());var Gi=E(et(),1);var Gr=e=>t=>{window.customElements.get(e)||window.customElements.define(e,t)};function Yi(e,t){return(0,Gi.property)({type:Object,converter:{fromAttribute:r=>{if(r==null)return Ce(e);try{return JSON.parse(r)}catch{return Ce(e)}},toAttribute:r=>JSON.stringify(r)},hasChanged:Te,...t??{}})}function ka(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(!Ye(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(!Ye(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(!Ye(e[o],t[o]))return!1}return!0}return e!==e&&t!==t||e==null&&t==null}function Ye(e,t){try{return ka(e,t)}catch{return!1}}function Te(e,t){return!Ye(e,t)}function Ce(e){return typeof window.structuredClone=="function"?structuredClone(e):e!=null?JSON.parse(JSON.stringify(e)):e}function Xe(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 Xi=E(et(),1);var Yr=e=>{let t=e??{};return(r,n)=>{var i;let s={hasChanged:Te,attribute:!1,...t};(0,Xi.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 Je=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 Pt=E(et(),1);var Qe=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 Qi=E(ot(),1);var Ze=globalThis,Na=Ze.ShadowRoot&&(Ze.ShadyCSS===void 0||Ze.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype;var Ji=(e,t)=>{if(Na)e.adoptedStyleSheets=t.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of t){let n=document.createElement("style"),i=Ze.litNonce;i!==void 0&&n.setAttribute("nonce",i),n.textContent=r.cssText,e.appendChild(n)}};var tr=class extends Qi.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 Ji(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){Gr(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 Zi(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 ne=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},ns,ts=Symbol("constructorPrototype"),es=Symbol("constructorName"),is=Symbol("exportpartsDebouncer"),rs=Symbol("dynamicDependenciesLoaded"),re=class e extends CustomEvent{constructor(){super(e.eventName,{bubbles:!0})}};re.eventName="exportparts-updated";var it=class extends tr{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[ns]=new Qe(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[is].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[es]=this.constructor.name,this[ts]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[es]&&Object.setPrototypeOf(this,this[ts])}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[rs]||(r[rs]=!0,this.importDynamicDependencies()),(t=this.shadowRoot)===null||t===void 0||t.addEventListener(re.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.shadowRoot)===null||t===void 0||t.removeEventListener(re.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 re)})}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=Zi(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 c=f=>f!=null&&f.trim().length>0,u=t.filter(c).map(f=>f.trim());if(u.length===0){this.exportparts=void 0;return}let l=new Set;for(let f of(n=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&n!==void 0?n:[]){let p=(s=(i=f.getAttribute("part"))===null||i===void 0?void 0:i.split(" "))!==null&&s!==void 0?s:[],h=(a=(o=f.getAttribute("exportparts"))===null||o===void 0?void 0:o.split(",").map(g=>g.split(":")[1]))!==null&&a!==void 0?a:[],m=[...p,...h].filter(c).map(g=>g.trim());for(let g of m)l.add(g)}if(l.size===0){this.exportparts=void 0;return}let d=[...l.values()].flatMap(f=>u.map(p=>`${f}:${p}--${f}`));this.exportparts=[...this.part,...d].join(", ")}};ns=is;ne([(0,Pt.property)()],it.prototype,"exportpartsPrefix",void 0);ne([Yi([])],it.prototype,"exportpartsPrefixes",void 0);ne([(0,Pt.property)({reflect:!0})],it.prototype,"exportparts",void 0);ne([(0,Pt.property)()],it.prototype,"customStylesheet",void 0);ne([(0,Pt.property)()],it.prototype,"elementToFocus",void 0);ne([(0,Pt.state)()],it.prototype,"useAdoptedStyleSheets",void 0);function er(e){var t;return(t=e?.isFtReduxStore)!==null&&t!==void 0?t:!1}var Oe=Symbol("internalReduxEventsUnsubscribers"),vt=Symbol("internalStoresUnsubscribers"),Lt=Symbol("internalStores"),Da=Xe(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[Lt].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Lt].values()][0]}getStore(o){return o==null?this.getUnnamedStore():this[Lt].get(o)}addStore(o,a){var c;a=(c=a??o.name)!==null&&c!==void 0?c:"default-store",this.unsubscribeFromStore(a),this[Lt].set(a,o),this.subscribeToStore(a,o),this.updateFromStores()}removeStore(o){let a=typeof o=="string"?o:o.name;this.unsubscribeFromStore(a),this[Lt].delete(a)}setupStores(){this.unsubscribeFromStores(),this[Lt].forEach((o,a)=>this.subscribeToStore(a,o)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((o,a)=>{let c=this.constructor.getPropertyOptions(a);if(!c?.attribute||!this.hasAttribute(typeof c?.attribute=="string"?c.attribute:a)){let u=this.getStore(o.store);u&&(o.store?this[vt].has(o.store):this[vt].size>0)&&(this[a]=o.selector(u.getState(),this))}})}subscribeToStore(o,a){var c;this[vt].set(o,a.subscribe(()=>this.updateFromStores())),this[Oe].set(o,[]),er(a)&&a.eventBus&&((c=this.reduxConstructor.reduxEventListeners)===null||c===void 0||c.forEach((u,l)=>{if(typeof this[l]=="function"&&(!u.store||a.name===u.store)){let d=f=>this[l](f);a.addEventListener(u.eventName,d),this[Oe].get(o).push(()=>a.removeEventListener(u.eventName,d))}})),this.onStoreAvailable(o)}unsubscribeFromStores(){this[vt].forEach((o,a)=>this.unsubscribeFromStore(a))}unsubscribeFromStore(o){var a;this[vt].has(o)&&this[vt].get(o)(),this[vt].delete(o),(a=this[Oe].get(o))===null||a===void 0||a.forEach(c=>c()),this[Oe].delete(o)}onStoreAvailable(o){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return t=vt,r=Lt,n=Oe,i.reduxProperties=new Map,i.reduxReactiveProperties=new Set,i.reduxEventListeners=new Map,i}),ss=class extends Da(it){};function K(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 lt(e){return!!e&&!!e[C]}function Q(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)===Va})(e)||Array.isArray(e)||!!e[fs]||!!(!((t=e.constructor)===null||t===void 0)&&t[fs])||sn(e)||on(e))}function kt(e,t,r){r===void 0&&(r=!1),oe(e)===0?(r?Object.keys:se)(e).forEach((function(n){r&&typeof n=="symbol"||t(n,e[n],e)})):e.forEach((function(n,i){return t(i,n,e)}))}function oe(e){var t=e[C];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:sn(e)?2:on(e)?3:0}function ie(e,t){return oe(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Ma(e,t){return oe(e)===2?e.get(t):e[t]}function ps(e,t,r){var n=oe(e);n===2?e.set(t,r):n===3?e.add(r):e[t]=r}function hs(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function sn(e){return Ba&&e instanceof Map}function on(e){return Ha&&e instanceof Set}function bt(e){return e.o||e.t}function an(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=gs(e);delete t[C];for(var r=se(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 cn(e,t){return t===void 0&&(t=!1),un(e)||lt(e)||!Q(e)||(oe(e)>1&&(e.set=e.add=e.clear=e.delete=Ua),Object.freeze(e),t&&kt(e,(function(r,n){return cn(n,!0)}),!0)),e}function Ua(){K(2)}function un(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function st(e){var t=nn[e];return t||K(18,e),t}function Fa(e,t){nn[e]||(nn[e]=t)}function tn(){return _e}function Xr(e,t){t&&(st("Patches"),e.u=[],e.s=[],e.v=t)}function rr(e){en(e),e.p.forEach($a),e.p=null}function en(e){e===_e&&(_e=e.l)}function os(e){return _e={p:[],l:_e,h:e,m:!0,_:0}}function $a(e){var t=e[C];t.i===0||t.i===1?t.j():t.g=!0}function Jr(e,t){t._=t.p.length;var r=t.p[0],n=e!==void 0&&e!==r;return t.h.O||st("ES5").S(t,e,n),n?(r[C].P&&(rr(t),K(4)),Q(e)&&(e=nr(t,e),t.l||ir(t,e)),t.u&&st("Patches").M(r[C].t,e,t.u,t.s)):e=nr(t,r,[]),rr(t),t.u&&t.v(t.u,t.s),e!==ys?e:void 0}function nr(e,t,r){if(un(t))return t;var n=t[C];if(!n)return kt(t,(function(a,c){return as(e,n,t,a,c,r)}),!0),t;if(n.A!==e)return t;if(!n.P)return ir(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var i=n.i===4||n.i===5?n.o=an(n.k):n.o,s=i,o=!1;n.i===3&&(s=new Set(i),i.clear(),o=!0),kt(s,(function(a,c){return as(e,n,i,a,c,r,o)})),ir(e,i,!1),r&&e.u&&st("Patches").N(n,r,e.u,e.s)}return n.o}function as(e,t,r,n,i,s,o){if(lt(i)){var a=nr(e,i,s&&t&&t.i!==3&&!ie(t.R,n)?s.concat(n):void 0);if(ps(r,n,a),!lt(a))return;e.m=!1}else o&&r.add(i);if(Q(i)&&!un(i)){if(!e.h.D&&e._<1)return;nr(e,i),t&&t.A.l||ir(e,i)}}function ir(e,t,r){r===void 0&&(r=!1),!e.l&&e.h.D&&e.m&&cn(t,r)}function Qr(e,t){var r=e[C];return(r?bt(r):e)[t]}function cs(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 At(e){e.P||(e.P=!0,e.l&&At(e.l))}function Zr(e){e.o||(e.o=an(e.t))}function rn(e,t,r){var n=sn(t)?st("MapSet").F(t,r):on(t)?st("MapSet").T(t,r):e.O?(function(i,s){var o=Array.isArray(i),a={i:o?1:0,A:s?s.A:tn(),P:!1,I:!1,R:{},l:s,t:i,k:null,o:null,j:null,C:!1},c=a,u=Ie;o&&(c=[a],u=Re);var l=Proxy.revocable(c,u),d=l.revoke,f=l.proxy;return a.k=f,a.j=d,f})(t,r):st("ES5").J(t,r);return(r?r.A:tn()).p.push(n),n}function ja(e){return lt(e)||K(22,e),(function t(r){if(!Q(r))return r;var n,i=r[C],s=oe(r);if(i){if(!i.P&&(i.i<4||!st("ES5").K(i)))return i.t;i.I=!0,n=us(r,s),i.I=!1}else n=us(r,s);return kt(n,(function(o,a){i&&Ma(i.t,o)===a||ps(n,o,t(a))})),s===3?new Set(n):n})(e)}function us(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return an(e)}function ms(){function e(o,a){var c=s[o];return c?c.enumerable=a:s[o]=c={configurable:!0,enumerable:a,get:function(){var u=this[C];return Ie.get(u,o)},set:function(u){var l=this[C];Ie.set(l,o,u)}},c}function t(o){for(var a=o.length-1;a>=0;a--){var c=o[a][C];if(!c.P)switch(c.i){case 5:n(c)&&At(c);break;case 4:r(c)&&At(c)}}}function r(o){for(var a=o.t,c=o.k,u=se(c),l=u.length-1;l>=0;l--){var d=u[l];if(d!==C){var f=a[d];if(f===void 0&&!ie(a,d))return!0;var p=c[d],h=p&&p[C];if(h?h.t!==f:!hs(p,f))return!0}}var m=!!a[C];return u.length!==se(a).length+(m?0:1)}function n(o){var a=o.k;if(a.length!==o.t.length)return!0;var c=Object.getOwnPropertyDescriptor(a,a.length-1);if(c&&!c.get)return!0;for(var u=0;u<a.length;u++)if(!a.hasOwnProperty(u))return!0;return!1}function i(o){o.g&&K(3,JSON.stringify(bt(o)))}var s={};Fa("ES5",{J:function(o,a){var c=Array.isArray(o),u=(function(d,f){if(d){for(var p=Array(f.length),h=0;h<f.length;h++)Object.defineProperty(p,""+h,e(h,!0));return p}var m=gs(f);delete m[C];for(var g=se(m),v=0;v<g.length;v++){var b=g[v];m[b]=e(b,d||!!m[b].enumerable)}return Object.create(Object.getPrototypeOf(f),m)})(c,o),l={i:c?5:4,A:a?a.A:tn(),P:!1,I:!1,R:{},l:a,t:o,k:u,o:null,g:!1,C:!1};return Object.defineProperty(u,C,{value:l,writable:!0}),u},S:function(o,a,c){c?lt(a)&&a[C].A===o&&t(o.p):(o.u&&(function u(l){if(l&&typeof l=="object"){var d=l[C];if(d){var f=d.t,p=d.k,h=d.R,m=d.i;if(m===4)kt(p,(function(S){S!==C&&(f[S]!==void 0||ie(f,S)?h[S]||u(p[S]):(h[S]=!0,At(d)))})),kt(f,(function(S){p[S]!==void 0||ie(p,S)||(h[S]=!1,At(d))}));else if(m===5){if(n(d)&&(At(d),h.length=!0),p.length<f.length)for(var g=p.length;g<f.length;g++)h[g]=!1;else for(var v=f.length;v<p.length;v++)h[v]=!0;for(var b=Math.min(p.length,f.length),x=0;x<b;x++)p.hasOwnProperty(x)||(h[x]=!0),h[x]===void 0&&u(p[x])}}}})(o.p[0]),t(o.p))},K:function(o){return o.i===4?r(o):n(o)}})}var ls,_e,ln=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",Ba=typeof Map<"u",Ha=typeof Set<"u",ds=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",ys=ln?Symbol.for("immer-nothing"):((ls={})["immer-nothing"]=!0,ls),fs=ln?Symbol.for("immer-draftable"):"__$immer_draftable",C=ln?Symbol.for("immer-state"):"__$immer_state";var Va=""+Object.prototype.constructor,se=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,gs=Object.getOwnPropertyDescriptors||function(e){var t={};return se(e).forEach((function(r){t[r]=Object.getOwnPropertyDescriptor(e,r)})),t},nn={},Ie={get:function(e,t){if(t===C)return e;var r=bt(e);if(!ie(r,t))return(function(i,s,o){var a,c=cs(s,o);return c?"value"in c?c.value:(a=c.get)===null||a===void 0?void 0:a.call(i.k):void 0})(e,r,t);var n=r[t];return e.I||!Q(n)?n:n===Qr(e.t,t)?(Zr(e),e.o[t]=rn(e.A.h,n,e)):n},has:function(e,t){return t in bt(e)},ownKeys:function(e){return Reflect.ownKeys(bt(e))},set:function(e,t,r){var n=cs(bt(e),t);if(n?.set)return n.set.call(e.k,r),!0;if(!e.P){var i=Qr(bt(e),t),s=i?.[C];if(s&&s.t===r)return e.o[t]=r,e.R[t]=!1,!0;if(hs(r,i)&&(r!==void 0||ie(e.t,t)))return!0;Zr(e),At(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 Qr(e.t,t)!==void 0||t in e.t?(e.R[t]=!1,Zr(e),At(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var r=bt(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:n.enumerable,value:r[t]}},defineProperty:function(){K(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){K(12)}},Re={};kt(Ie,(function(e,t){Re[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),Re.deleteProperty=function(e,t){return Re.set.call(this,e,t,void 0)},Re.set=function(e,t,r){return Ie.set.call(this,e[0],t,r,e[0])};var Wa=(function(){function e(r){var n=this;this.O=ds,this.D=!0,this.produce=function(i,s,o){if(typeof i=="function"&&typeof s!="function"){var a=s;s=i;var c=n;return function(m){var g=this;m===void 0&&(m=a);for(var v=arguments.length,b=Array(v>1?v-1:0),x=1;x<v;x++)b[x-1]=arguments[x];return c.produce(m,(function(S){var I;return(I=s).call.apply(I,[g,S].concat(b))}))}}var u;if(typeof s!="function"&&K(6),o!==void 0&&typeof o!="function"&&K(7),Q(i)){var l=os(n),d=rn(n,i,void 0),f=!0;try{u=s(d),f=!1}finally{f?rr(l):en(l)}return typeof Promise<"u"&&u instanceof Promise?u.then((function(m){return Xr(l,o),Jr(m,l)}),(function(m){throw rr(l),m})):(Xr(l,o),Jr(u,l))}if(!i||typeof i!="object"){if((u=s(i))===void 0&&(u=i),u===ys&&(u=void 0),n.D&&cn(u,!0),o){var p=[],h=[];st("Patches").M(i,u,p,h),o(p,h)}return u}K(21,i)},this.produceWithPatches=function(i,s){if(typeof i=="function")return function(u){for(var l=arguments.length,d=Array(l>1?l-1:0),f=1;f<l;f++)d[f-1]=arguments[f];return n.produceWithPatches(u,(function(p){return i.apply(void 0,[p].concat(d))}))};var o,a,c=n.produce(i,s,(function(u,l){o=u,a=l}));return typeof Promise<"u"&&c instanceof Promise?c.then((function(u){return[u,o,a]})):[c,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){Q(r)||K(8),lt(r)&&(r=ja(r));var n=os(this),i=rn(this,r,void 0);return i[C].C=!0,en(n),i},t.finishDraft=function(r,n){var i=r&&r[C],s=i.A;return Xr(s,n),Jr(void 0,s)},t.setAutoFreeze=function(r){this.D=r},t.setUseProxies=function(r){r&&!ds&&K(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=st("Patches").$;return lt(r)?o(r,n):this.produce(r,(function(a){return o(a,n)}))},e})(),$=new Wa,za=$.produce,Qu=$.produceWithPatches.bind($),Zu=$.setAutoFreeze.bind($),tl=$.setUseProxies.bind($),el=$.applyPatches.bind($),rl=$.createDraft.bind($),nl=$.finishDraft.bind($),sr=za;function Nt(e){"@babel/helpers - typeof";return Nt=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},Nt(e)}function vs(e,t){if(Nt(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Nt(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function bs(e){var t=vs(e,"string");return Nt(t)=="symbol"?t:t+""}function As(e,t,r){return(t=bs(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function xs(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 dn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?xs(Object(r),!0).forEach(function(n){As(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):xs(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function k(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 Ss=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})(),fn=function(){return Math.random().toString(36).substring(7).split("").join(".")},or={INIT:"@@redux/INIT"+fn(),REPLACE:"@@redux/REPLACE"+fn(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+fn()}};function Ka(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 pn(e,t,r){var n;if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(k(0));if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(k(1));return r(pn)(e,t)}if(typeof e!="function")throw new Error(k(2));var i=e,s=t,o=[],a=o,c=!1;function u(){a===o&&(a=o.slice())}function l(){if(c)throw new Error(k(3));return s}function d(m){if(typeof m!="function")throw new Error(k(4));if(c)throw new Error(k(5));var g=!0;return u(),a.push(m),function(){if(g){if(c)throw new Error(k(6));g=!1,u();var b=a.indexOf(m);a.splice(b,1),o=null}}}function f(m){if(!Ka(m))throw new Error(k(7));if(typeof m.type>"u")throw new Error(k(8));if(c)throw new Error(k(9));try{c=!0,s=i(s,m)}finally{c=!1}for(var g=o=a,v=0;v<g.length;v++){var b=g[v];b()}return m}function p(m){if(typeof m!="function")throw new Error(k(10));i=m,f({type:or.REPLACE})}function h(){var m,g=d;return m={subscribe:function(b){if(typeof b!="object"||b===null)throw new Error(k(11));function x(){b.next&&b.next(l())}x();var S=g(x);return{unsubscribe:S}}},m[Ss]=function(){return this},m}return f({type:or.INIT}),n={dispatch:f,subscribe:d,getState:l,replaceReducer:p},n[Ss]=h,n}function qa(e){Object.keys(e).forEach(function(t){var r=e[t],n=r(void 0,{type:or.INIT});if(typeof n>"u")throw new Error(k(12));if(typeof r(void 0,{type:or.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(k(13))})}function Es(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{qa(r)}catch(c){a=c}return function(u,l){if(u===void 0&&(u={}),a)throw a;if(0)var d;for(var f=!1,p={},h=0;h<s.length;h++){var m=s[h],g=r[m],v=u[m],b=g(v,l);if(typeof b>"u"){var x=l&&l.type;throw new Error(k(14))}p[m]=b,f=f||b!==v}return f=f||s.length!==Object.keys(u).length,f?p:u}}function ae(){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 ws(){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(k(15))},o={getState:i.getState,dispatch:function(){return s.apply(void 0,arguments)}},a=t.map(function(c){return c(o)});return s=ae.apply(void 0,a)(i.dispatch),dn(dn({},i),{},{dispatch:s})}}}function Cs(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 Ts=Cs();Ts.withExtraArgument=Cs;var hn=Ts;var Ps=(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)}})(),Ga=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(u){return function(l){return c([u,l])}}function c(u){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,i&&(s=u[0]&2?i.return:u[0]?i.throw||((s=i.return)&&s.call(i),0):i.next)&&!(s=s.call(i,u[1])).done)return s;switch(i=0,s&&(u=[u[0]&2,s.value]),u[0]){case 0:case 1:s=u;break;case 4:return r.label++,{value:u[1],done:!1};case 5:r.label++,i=u[1],u=[0];continue;case 7:u=r.ops.pop(),r.trys.pop();continue;default:if(s=r.trys,!(s=s.length>0&&s[s.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!s||u[1]>s[0]&&u[1]<s[3])){r.label=u[1];break}if(u[0]===6&&r.label<s[1]){r.label=s[1],s=u;break}if(s&&r.label<s[2]){r.label=s[2],r.ops.push(u);break}s[2]&&r.ops.pop(),r.trys.pop();continue}u=t.call(e,r)}catch(l){u=[6,l],i=0}finally{n=s=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}},ce=function(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e},Ya=Object.defineProperty,Xa=Object.defineProperties,Ja=Object.getOwnPropertyDescriptors,Os=Object.getOwnPropertySymbols,Qa=Object.prototype.hasOwnProperty,Za=Object.prototype.propertyIsEnumerable,Rs=function(e,t,r){return t in e?Ya(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r},xt=function(e,t){for(var r in t||(t={}))Qa.call(t,r)&&Rs(e,r,t[r]);if(Os)for(var n=0,i=Os(t);n<i.length;n++){var r=i[n];Za.call(t,r)&&Rs(e,r,t[r])}return e},mn=function(e,t){return Xa(e,Ja(t))},tc=function(e,t,r){return new Promise(function(n,i){var s=function(c){try{a(r.next(c))}catch(u){i(u)}},o=function(c){try{a(r.throw(c))}catch(u){i(u)}},a=function(c){return c.done?n(c.value):Promise.resolve(c.value).then(s,o)};a((r=r.apply(e,t)).next())})};var ec=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?ae:ae.apply(null,arguments)},xl=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(e){return e}};function rc(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 St(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 xt(xt({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 nc=(function(e){Ps(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,ce([void 0],r[0].concat(this)))):new(t.bind.apply(t,ce([void 0],r.concat(this))))},t})(Array),ic=(function(e){Ps(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,ce([void 0],r[0].concat(this)))):new(t.bind.apply(t,ce([void 0],r.concat(this))))},t})(Array);function vn(e){return Q(e)?sr(e,function(){}):e}function sc(e){return typeof e=="boolean"}function oc(){return function(t){return ac(t)}}function ac(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,c=a===void 0?!0:a,u=new nc;if(r&&(sc(r)?u.push(hn):u.push(hn.withExtraArgument(r.extraArgument))),0){if(i)var l;if(o)var d;if(c)var f}return u}var yn=!0;function Ls(e){var t=oc(),r=e||{},n=r.reducer,i=n===void 0?void 0:n,s=r.middleware,o=s===void 0?t():s,a=r.devTools,c=a===void 0?!0:a,u=r.preloadedState,l=u===void 0?void 0:u,d=r.enhancers,f=d===void 0?void 0:d,p;if(typeof i=="function")p=i;else if(rc(i))p=Es(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),!yn&&!Array.isArray(h)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!yn&&h.some(function(S){return typeof S!="function"}))throw new Error("each middleware provided to configureStore must be a function");var m=ws.apply(void 0,h),g=ae;c&&(g=ec(xt({trace:!yn},typeof c=="object"&&c)));var v=new ic(m),b=v;Array.isArray(f)?b=ce([m],f):typeof f=="function"&&(b=f(v));var x=g.apply(void 0,b);return pn(p,l,x)}function ks(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 cc(e){return typeof e=="function"}function uc(e,t,r,n){r===void 0&&(r=[]);var i=typeof t=="function"?ks(t):[t,r,n],s=i[0],o=i[1],a=i[2],c;if(cc(e))c=function(){return vn(e())};else{var u=vn(e);c=function(){return u}}function l(d,f){d===void 0&&(d=c());var p=ce([s[f.type]],o.filter(function(h){var m=h.matcher;return m(f)}).map(function(h){var m=h.reducer;return m}));return p.filter(function(h){return!!h}).length===0&&(p=[a]),p.reduce(function(h,m){if(m)if(lt(h)){var g=h,v=m(g,f);return v===void 0?h:v}else{if(Q(h))return sr(h,function(b){return m(b,f)});var v=m(h,f);if(v===void 0){if(h===null)return h;throw Error("A case reducer on a non-draftable value must not return undefined")}return v}return h},d)}return l.getInitialState=c,l}function lc(e,t){return e+"/"+t}function Ns(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:vn(e.initialState),n=e.reducers||{},i=Object.keys(n),s={},o={},a={};i.forEach(function(l){var d=n[l],f=lc(t,l),p,h;"reducer"in d?(p=d.reducer,h=d.prepare):p=d,s[l]=p,o[f]=p,a[l]=h?St(f,h):St(f)});function c(){var l=typeof e.extraReducers=="function"?ks(e.extraReducers):[e.extraReducers],d=l[0],f=d===void 0?{}:d,p=l[1],h=p===void 0?[]:p,m=l[2],g=m===void 0?void 0:m,v=xt(xt({},f),o);return uc(r,function(b){for(var x in v)b.addCase(x,v[x]);for(var S=0,I=h;S<I.length;S++){var R=I[S];b.addMatcher(R.matcher,R.reducer)}g&&b.addDefaultCase(g)})}var u;return{name:t,reducer:function(l,d){return u||(u=c()),u(l,d)},actions:a,caseReducers:s,getInitialState:function(){return u||(u=c()),u.getInitialState()}}}var dc="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",fc=function(e){e===void 0&&(e=21);for(var t="",r=e;r--;)t+=dc[Math.random()*64|0];return t},pc=["name","message","stack","code"],gn=(function(){function e(t,r){this.payload=t,this.meta=r}return e})(),_s=(function(){function e(t,r){this.payload=t,this.meta=r}return e})(),hc=function(e){if(typeof e=="object"&&e!==null){for(var t={},r=0,n=pc;r<n.length;r++){var i=n[r];typeof e[i]=="string"&&(t[i]=e[i])}return t}return{message:String(e)}},Cl=(function(){function e(t,r,n){var i=St(t+"/fulfilled",function(l,d,f,p){return{payload:l,meta:mn(xt({},p||{}),{arg:f,requestId:d,requestStatus:"fulfilled"})}}),s=St(t+"/pending",function(l,d,f){return{payload:void 0,meta:mn(xt({},f||{}),{arg:d,requestId:l,requestStatus:"pending"})}}),o=St(t+"/rejected",function(l,d,f,p,h){return{payload:p,error:(n&&n.serializeError||hc)(l||"Rejected"),meta:mn(xt({},h||{}),{arg:f,requestId:d,rejectedWithValue:!!p,requestStatus:"rejected",aborted:l?.name==="AbortError",condition:l?.name==="ConditionError"})}}),a=!1,c=typeof AbortController<"u"?AbortController:(function(){function l(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return l.prototype.abort=function(){},l})();function u(l){return function(d,f,p){var h=n?.idGenerator?n.idGenerator(l):fc(),m=new c,g,v=!1;function b(S){g=S,m.abort()}var x=(function(){return tc(this,null,function(){var S,I,R,ft,Cr,pt,U;return Ga(this,function(H){switch(H.label){case 0:return H.trys.push([0,4,,5]),ft=(S=n?.condition)==null?void 0:S.call(n,l,{getState:f,extra:p}),yc(ft)?[4,ft]:[3,2];case 1:ft=H.sent(),H.label=2;case 2:if(ft===!1||m.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return v=!0,Cr=new Promise(function(F,Et){return m.signal.addEventListener("abort",function(){return Et({name:"AbortError",message:g||"Aborted"})})}),d(s(h,l,(I=n?.getPendingMeta)==null?void 0:I.call(n,{requestId:h,arg:l},{getState:f,extra:p}))),[4,Promise.race([Cr,Promise.resolve(r(l,{dispatch:d,getState:f,extra:p,requestId:h,signal:m.signal,abort:b,rejectWithValue:function(F,Et){return new gn(F,Et)},fulfillWithValue:function(F,Et){return new _s(F,Et)}})).then(function(F){if(F instanceof gn)throw F;return F instanceof _s?i(F.payload,h,l,F.meta):i(F,h,l)})])];case 3:return R=H.sent(),[3,5];case 4:return pt=H.sent(),R=pt instanceof gn?o(null,h,l,pt.payload,pt.meta):o(pt,h,l),[3,5];case 5:return U=n&&!n.dispatchConditionRejection&&o.match(R)&&R.meta.condition,U||d(R),[2,R]}})})})();return Object.assign(x,{abort:b,requestId:h,arg:l,unwrap:function(){return x.then(mc)}})}}return Object.assign(u,{pending:s,rejected:o,fulfilled:i,typePrefix:t})}return e.withTypes=function(){return e},e})();function mc(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function yc(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var Ds="listener",Ms="completed",Us="cancelled",Tl="task-"+Us,Ol="task-"+Ms,Rl=Ds+"-"+Us,_l=Ds+"-"+Ms;var bn="listenerMiddleware";var Il=St(bn+"/add"),Pl=St(bn+"/removeAll"),Ll=St(bn+"/remove");var Is,kl=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(e){return(Is||(Is=Promise.resolve())).then(e).catch(function(t){return setTimeout(function(){throw t},0)})},gc=function(e){return function(t){setTimeout(t,e)}},Nl=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:gc(10);ms();var vc=Xe(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)}}}),ar=class extends vc(Object){};window.ftReduxStores||(window.ftReduxStores={});var Fs=class e extends ar{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(er(s))return s;if(i==null)return;let o=Ns({...i,reducers:(r=i.reducers)!==null&&r!==void 0?r:{}}),a=Ls({reducer:(c,u)=>{if(u.type==="CLEAR_FT_REDUX_STORE"){let l=Ce(o.getInitialState());for(let d of u.keeping)l[d]=(c??l)[d];return l}else if(typeof u.type=="string"&&u.type.startsWith("DEFAULT_VALUE_SETTER__"))return{...c,...u.overwrites};return o.reducer(c,u)}});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 Je;let i=s=>s!=null?JSON.parse(JSON.stringify(s)):s;this.actions=new Proxy(this.reduxSlice.actions,{get:(s,o,a)=>{let c=o,u=s[c];return u?(...l)=>{let d=u(...l.map(i));return this.reduxStore.dispatch(d),d}:l=>{this.setState({[c]:i(l)})}}}),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 cr=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),c=new Intl.DateTimeFormat(r,{timeStyle:"short"}).format(o);return s?c:i?`${a} ${c}`: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 ur=E(T()),bc="ft-app-info",ue=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:t})}};ue.eventName="authentication-change";var Pe=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:t})}};Pe.eventName="ui-locale-changed";var Ac={session:(e,t)=>{(0,ur.deepEqual)(e.session,t.payload)||(e.session=t.payload,setTimeout(()=>w.dispatchEvent(new ue(t.payload)),0))}},w=ur.FtReduxStore.get({name:bc,reducers:Ac,initialState:{baseUrl:void 0,apiIntegrationIdentifier:void 0,apiIntegrationAppVersion:void 0,uiLocale:document.documentElement.lang||"en-US",availableContentLocales:[],localesConfiguration:void 0,metadataConfiguration:void 0,privacyPolicyConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1,authenticationRequired:!1}});var $s=E(T()),lr=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},cd=(0,$s.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(w)}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=>cr.format(a,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return lr([(0,An.property)({type:Boolean})],t.prototype,"useLongDateFormat",void 0),lr([(0,An.property)({type:Boolean})],t.prototype,"useDateTimeFormat",void 0),lr([Yr({store:w.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),lr([Yr({store:w.name})],t.prototype,"uiLocale",void 0),t});var js;(function(e){e.black="black",e.green="green",e.blue="blue",e.purple="purple",e.red="red",e.orange="orange",e.yellow="yellow"})(js||(js={}));var Bs;(function(e){e.OFFICIAL="OFFICIAL",e.PERSONAL="PERSONAL",e.SHARED="SHARED"})(Bs||(Bs={}));var Hs;(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"})(Hs||(Hs={}));var Vs;(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"})(Vs||(Vs={}));var Ws;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(Ws||(Ws={}));var zs;(function(e){e.VALUE="VALUE",e.DATE="DATE",e.RANGE="RANGE"})(zs||(zs={}));var Ks;(function(e){e.OFFICIAL="OFFICIAL",e.AI="AI"})(Ks||(Ks={}));var qs;(function(e){e.BOOKMARK__CREATE="BOOKMARK__CREATE",e.BOOKMARK__DELETE="BOOKMARK__DELETE",e.CASE_DEFLECTION__START="CASE_DEFLECTION__START",e.CASE_DEFLECTION__OPEN_TICKET="CASE_DEFLECTION__OPEN_TICKET",e.CASE_DEFLECTION__RATE="CASE_DEFLECTION__RATE",e.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"})(qs||(qs={}));var Gs;(function(e){e.STANDARD="STANDARD",e.STRUCTURAL="STRUCTURAL"})(Gs||(Gs={}));var Ys;(function(e){e.THIRD_PARTY="THIRD_PARTY",e.OFF_THE_GRID="OFF_THE_GRID",e.CONTENT_PACKAGER="CONTENT_PACKAGER",e.PAGES="PAGES",e.DESIGNED_READER="DESIGNED_READER"})(Ys||(Ys={}));var Xs;(function(e){e.HOMEPAGE="HOMEPAGE",e.CUSTOM="CUSTOM",e.HEADER="HEADER",e.READER="READER",e.TOPIC_TEMPLATE="TOPIC_TEMPLATE",e.SEARCH="SEARCH",e.SEARCH_RESULT="SEARCH_RESULT",e.SEARCH_ANNOUNCEMENT="SEARCH_ANNOUNCEMENT",e.LINK_PREVIEW="LINK_PREVIEW",e.UD_VIEWER="UD_VIEWER",e.ASSET_VIEWER="ASSET_VIEWER"})(Xs||(Xs={}));var Js;(function(e){e.CLASSIC="CLASSIC",e.CUSTOM="CUSTOM",e.DESIGNER="DESIGNER"})(Js||(Js={}));var Qs;(function(e){e.AND="AND",e.OR="OR",e.MONOVALUED="MONOVALUED"})(Qs||(Qs={}));var Zs;(function(e){e.NONE="NONE",e.ALPHABET="ALPHABET",e.VERSION="VERSION"})(Zs||(Zs={}));var to;(function(e){e.STARS="STARS",e.LIKE="LIKE",e.DICHOTOMOUS="DICHOTOMOUS",e.NO_RATING="NO_RATING"})(to||(to={}));var eo;(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"})(eo||(eo={}));var ro;(function(e){e.OPTIONAL="OPTIONAL",e.MANDATORY="MANDATORY"})(ro||(ro={}));var no;(function(e){e.ASC="ASC",e.DESC="DESC"})(no||(no={}));var io;(function(e){e.ALPHA="ALPHA",e.NATURAL="NATURAL"})(io||(io={}));var so;(function(e){e.EVERYWHERE="EVERYWHERE",e.TITLE_ONLY="TITLE_ONLY",e.NONE="NONE"})(so||(so={}));var oo;(function(e){e.ARTICLE="ARTICLE",e.BOOK="BOOK",e.SHARED_BOOK="SHARED_BOOK",e.HTML_PACKAGE="HTML_PACKAGE"})(oo||(oo={}));var ao;(function(e){e.FLUIDTOPICS="FLUIDTOPICS",e.EXTERNAL="EXTERNAL"})(ao||(ao={}));var co;(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"})(co||(co={}));var uo;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(uo||(uo={}));var lo;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC",e.HTML_PACKAGE="HTML_PACKAGE",e.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(lo||(lo={}));var fo;(function(e){e.DEFAULT="DEFAULT",e.DOCUMENTS="DOCUMENTS",e.ALL_TOPICS="ALL_TOPICS",e.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(fo||(fo={}));var po;(function(e){e.PLAIN_TEXT="PLAIN_TEXT",e.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",e.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(po||(po={}));var _;(function(e){e.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",e.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",e.HTML_EXPORT_USER="HTML_EXPORT_USER",e.PDF_EXPORT_USER="PDF_EXPORT_USER",e.SAVED_SEARCH_USER="SAVED_SEARCH_USER",e.COLLECTION_USER="COLLECTION_USER",e.OFFLINE_USER="OFFLINE_USER",e.ANALYTICS_USER="ANALYTICS_USER",e.BETA_USER="BETA_USER",e.DEBUG_USER="DEBUG_USER",e.PRINT_USER="PRINT_USER",e.RATING_USER="RATING_USER",e.FEEDBACK_USER="FEEDBACK_USER",e.GENERATIVE_AI_USER="GENERATIVE_AI_USER",e.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_USER",e.CONTENT_PUBLISHER="CONTENT_PUBLISHER",e.BEHAVIOR_DATA_USER="BEHAVIOR_DATA_USER",e.ANNOUNCEMENT_ADMIN="ANNOUNCEMENT_ADMIN",e.KHUB_ADMIN="KHUB_ADMIN",e.USERS_ADMIN="USERS_ADMIN",e.PORTAL_ADMIN="PORTAL_ADMIN",e.ADMIN="ADMIN"})(_||(_={}));var q;(function(e){e.SEARCHES="SEARCHES",e.BOOKMARKS="BOOKMARKS",e.BOOKS="BOOKS",e.COLLECTIONS="COLLECTIONS"})(q||(q={}));var ho;(function(e){e.UNAUTHENTICATED="UNAUTHENTICATED",e.USER_INCOMPLETE="USER_INCOMPLETE",e.MFA_REQUIRED="MFA_REQUIRED",e.AUTHENTICATED="AUTHENTICATED"})(ho||(ho={}));var mo;(function(e){e.UNREACHABLE="UNREACHABLE",e.UNAUTHORIZED="UNAUTHORIZED",e.FORBIDDEN="FORBIDDEN",e.INCOMPATIBLE="INCOMPATIBLE",e.FAILED="FAILED",e.OK="OK"})(mo||(mo={}));var yo;(function(e){e.VALID="VALID",e.INVALID="INVALID"})(yo||(yo={}));var go;(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"})(go||(go={}));var vo;(function(e){e.INACCURATE="INACCURATE",e.INCOMPLETE="INCOMPLETE",e.OFF_TOPIC="OFF_TOPIC",e.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",e.SLOW="SLOW",e.OTHER="OTHER"})(vo||(vo={}));var bo;(function(e){e.JSON="JSON",e.TEXT="TEXT"})(bo||(bo={}));var Ao;(function(e){e.JSON="JSON",e.TEXT="TEXT"})(Ao||(Ao={}));var xo;(function(e){e.TEXT="TEXT",e.HTML="HTML"})(xo||(xo={}));var So;(function(e){e.IN_PROGRESS="IN_PROGRESS",e.ERROR="ERROR",e.DONE="DONE"})(So||(So={}));var Eo;(function(e){e.HTML="HTML",e.MARKDOWN="MARKDOWN"})(Eo||(Eo={}));var wo;(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"})(wo||(wo={}));var Co;(function(e){e.MAP="MAP",e.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(Co||(Co={}));var xc={[_.PERSONAL_BOOK_SHARE_USER]:[_.PERSONAL_BOOK_USER],[_.HTML_EXPORT_USER]:[_.PERSONAL_BOOK_USER],[_.PDF_EXPORT_USER]:[_.PERSONAL_BOOK_USER],[_.KHUB_ADMIN]:[_.CONTENT_PUBLISHER],[_.ADMIN]:[_.KHUB_ADMIN,_.USERS_ADMIN,_.PORTAL_ADMIN,_.BEHAVIOR_DATA_USER],[_.GENERATIVE_AI_EXPORT_USER]:[_.GENERATIVE_AI_USER]};function To(e,t){return e===t||(xc[e]??[]).some(r=>To(r,t))}function Oo(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=>To(n,t))}var mr=E(T());var xn=E(T());var Dt=class e{static get(t){let{baseUrl:r,apiIntegrationIdentifier:n}=w.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=w.subscribe(()=>{n=e.get(t),n&&(i(),r(n))})}})}};var le=class{constructor(t){this.overrideApi=t}get api(){var t;return(t=this.overrideApi)!==null&&t!==void 0?t:Dt.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):Dt.await()}};var j=class extends le{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],[c])=>a.localeCompare(c)));let i=this.constructor;i.commonCache=(n=i.commonCache)!==null&&n!==void 0?n:new xn.CacheRegistry,this.cache=t?i.commonCache:new xn.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 dr=class extends j{async listMySearches(){let{session:t}=w.getState();return Oo(t,_.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(t.profile.userId),300*1e3):[]}};var fr=class extends j{async listMyBookmarks(){let t=w.getState().session;return t?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(t.profile.userId),300*1e3):[]}};var pr=class extends j{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=w.getState().session;return!!t?.sessionAuthenticated}};var hr=class extends j{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=w.getState().session;return!!t?.sessionAuthenticated}};var Sc="ft-user-assets",Ec={setAssetCount:(e,t)=>{let{userAssetType:r,count:n}=t.payload.assetCount;e.assetCounts.allAsset[r]=n},clearAssetCount:e=>{Object.values(q).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;En(e,r,[...Sn(e,r),i]),Ro(e,r,1,n),_o(e,i)},editAsset:(e,t)=>{let{assetType:r,asset:n}=t.payload;En(e,r,Sn(e,r).map(i=>i.id===n.id?n:i)),_o(e,n)},removeAsset:(e,t)=>{let{assetType:r,mapId:n,assetId:i}=t.payload;En(e,r,Sn(e,r).filter(s=>s.id!==i)),Ro(e,r,-1,n)}},Io={[q.SEARCHES]:"savedSearches",[q.BOOKMARKS]:"bookmarks",[q.BOOKS]:void 0,[q.COLLECTIONS]:void 0},Sn=(e,t)=>{var r;let n=Io[t];return n?(r=e[n])!==null&&r!==void 0?r:[]:[]},En=(e,t,r)=>{let n=Io[t];n&&(e[n]=r)},Ro=(e,t,r,n)=>{let i=e.assetCounts.allAsset[t];if(i!==void 0&&(e.assetCounts.allAsset[t]=Math.max(0,i+r),t===q.BOOKMARKS&&n)){let s=e.assetCounts.bookmarkByMap[n];e.assetCounts.bookmarkByMap[n]=Math.max(0,s+r)}},_o=(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)},D=mr.FtReduxStore.get({name:Sc,reducers:Ec,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(q).map(e=>[e,void 0])),bookmarkByMap:{}},assetLabels:[]}}),wn=class{constructor(t=new pr,r=new hr){this.assetCountsService=t,this.assetLabelsService=r,this.currentSession=w.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new fr,this.savedSearchesService=new dr,w.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var t;let{session:r}=w.getState();(0,mr.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(),D.actions.clearAssetCount(),D.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),D.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),D.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let t=await this.savedSearchesService.listMySearches();D.actions.savedSearches(t)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let t=await this.assetLabelsService.getUserAssetLabels();D.actions.assetLabels(t)}async loadAssetCount(t){let r=await this.assetCountsService.getUserAssetCount(t);r&&D.getState().assetCounts.allAsset[t]!==r.count&&D.actions.setAssetCount({assetCount:r})}async loadBookmarkByMapId(t){let r=await this.assetCountsService.getUserBookmarkCountByMap(t);r&&D.getState().assetCounts.bookmarkByMap[t]!==r.count&&D.actions.setBookmarkCountByMap({count:r.count,mapId:t})}async reloadAssetCount(t){this.assetCountsService.clearCache();let r=Object.keys(D.getState().assetCounts.bookmarkByMap).length!==0;t===q.BOOKMARKS&&r&&D.actions.clearBookmarkCountByMap(),D.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;D.actions.bookmarks(r)}}},wc=new wn;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=wc);var Cn=class{addCommand(t,r=!1){w.commands.add(t,r)}consumeCommand(t){return w.commands.consume(t)}};window.FluidTopicsAppInfoStoreService=new Cn;var G=E(T());var Po,de=class extends CustomEvent{constructor(t){super("ft-i18n-context-loaded",{detail:t})}},Cc=Symbol("clearAfterUnitTest"),yr=class extends(0,G.withEventBus)(j){constructor(t){super(),this.messageContextProvider=t,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[Po]=()=>{this.defaultMessages={},this.cache=new G.CacheRegistry,this.listeners={}},this.currentUiLocale=w.getState().uiLocale,w.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:t}=w.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,G.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 G.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 G.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 de({loadedContexts:t})),this.dispatchEvent(new de({loadedContexts:t})),await Promise.all(t.map(r=>this.notify(r,!1)))}async notify(t,r=!0){r&&(document.body.dispatchEvent(new de({loadedContexts:[t]})),this.dispatchEvent(new de({loadedContexts:[t]}))),this.listeners[t]!=null&&await Promise.all([...this.listeners[t].values()].map(n=>(0,G.delay)(0).then(()=>n()).catch(()=>null)))}};Po=Cc;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends yr{constructor(){super(async(e,t)=>(await this.awaitApi).getFluidTopicsMessageContext(e,t))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends yr{constructor(){super(async(e,t)=>(await this.awaitApi).getCustomMessageContext(e,t))}});var Le=window.FluidTopicsI18nService,Tn=window.FluidTopicsCustomI18nService;var Lo=E(T()),On=class{highlightHtml(t,r,n){(0,Lo.highlightHtml)(t,r,n)}};window.FluidTopicsHighlightHtmlService=new On;var ko=E(T());var Rn=class{isDate(t){var r,n,i,s;return(s=(i=((n=(r=w.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 ko.DateFormatter.format(t,(n=r?.locale)!==null&&n!==void 0?n:w.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 Rn;var No=E(T());var ke=class{static get(t,r){var n,i,s,o;let a=w.getState(),{lang:c,region:u}=(s=(i=(n=a.localesConfiguration)===null||n===void 0?void 0:n.defaultLocales)===null||i===void 0?void 0:i.defaultContentLocale)!==null&&s!==void 0?s:{lang:"en",region:"US"};return new No.SearchPlaceConverter(a.baseUrl,t??20,(o=a.localesConfiguration)===null||o===void 0?void 0:o.allLanguagesAllowed,r??`${c}-${u}`)}};var _n=class{urlToSearchRequest(t){return ke.get().parse(t)}searchRequestToUrl(t){return ke.get().serialize(t)}};window.FluidTopicsUrlService=new _n;var dt=E(T());var Mt=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:{currentItem:t}})}};Mt.eventName="change";var In=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))}},Do=new In;var gr=class e extends dt.WithEventBus{static build(){return new e(window.history,Do,()=>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,dt.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,window.location.href]),setTimeout(()=>this.dispatchEvent(new Mt(this.currentItem())),0)}installProxies(){let t=r=>(n,i,[s,o,a])=>{let c=r(),u={...c===this.currentIndex?this.currentState:void 0,...s,index:c,href:typeof a=="string"?a:(a??this.windowLocation()).href};n.apply(i,[u,o,a]),this.setCurrentState(u,!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(Mt.eventName,t)}removeHistoryChangeListener(t){this.removeEventListener(Mt.eventName,t)}currentItem(){return(0,dt.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,dt.deepCopy)(this.states[this.previousDifferentMajorPosition()])}backwardItemMatching(t){let r=this.states.filter(n=>!!n).filter(n=>n.index<this.currentIndex).reverse();return(0,dt.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,dt.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 Mo=E(ot());var Uo=Mo.css`
|
|
138
|
+
`;var jo=E(ot()),B=E(et()),$t=E(T());var Ut=E(T());function Fo(e,t){let{authenticationRequired:r,session:n}=w.getState();return r&&!n?.sessionAuthenticated?Promise.resolve(t):e()}var vr=class extends le{async updateUiLocale(t){return(await this.awaitApi).updateUiLocale(t)}};var Pn=class e extends Ut.FtStateManager{static build(t){return new e(w,t)}constructor(t,r){super(),this.store=t,this.cache=new Ut.CacheRegistry,this.withManualResources=!0,this.userLocaleService=new vr,this.cleanSessionDebouncer=new Ut.Debouncer,this.reloadDebouncer=new Ut.Debouncer(500),this.apiProvider=r??(()=>Dt.get())}setWithManualResources(t){this.withManualResources=t,this.updateIfNeeded()}async initService(){this.store.addEventListener(ue.eventName,this.reloadConfiguration)}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.store.getState().session==null&&this.updateSession(),this.store.getState().metadataConfiguration==null&&this.updateMetadataConfiguration()),this.store.getState().localesConfiguration==null&&this.updateLocalesConfiguration(),(this.store.getState().availableContentLocales==null||this.store.getState().availableContentLocales.length==0)&&this.updateAvailableContentLocales())}async updateSession(){let 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",()=>Fo(()=>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){this.store.actions.localesConfiguration(t),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 Pe(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)}},$o=Pn.build();var Ft=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 Ne=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 Ft(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 N=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},O=class extends $t.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=$o,this.contextRoot=new Ne}render(){return jo.html`
|
|
139
139
|
<slot></slot>
|
|
140
|
-
`}connectedCallback(){super.connectedCallback(),this.stateManager.initService(),this.contextRoot.attach(document.body)}disconnectedCallback(){super.disconnectedCallback(),this.contextRoot.detach(document.body)}update(
|
|
141
|
-
`;var Sr=E(
|
|
140
|
+
`}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=>Le.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())}};O.elementDefinitions={};O.styles=Uo;N([(0,B.property)()],O.prototype,"baseUrl",void 0);N([(0,B.property)()],O.prototype,"apiIntegrationIdentifier",void 0);N([(0,B.property)()],O.prototype,"apiIntegrationAppVersion",void 0);N([(0,B.property)()],O.prototype,"uiLocale",void 0);N([(0,$t.jsonProperty)(null)],O.prototype,"availableUiLocales",void 0);N([(0,$t.jsonProperty)(null)],O.prototype,"metadataConfiguration",void 0);N([(0,B.property)({type:Boolean})],O.prototype,"editorMode",void 0);N([(0,B.property)({type:Boolean})],O.prototype,"noCustom",void 0);N([(0,B.property)({type:Boolean})],O.prototype,"openExternalDocumentInNewTab",void 0);N([(0,B.property)({converter:{fromAttribute(e){return e==="false"?!1:e==="true"||(e??!1)}}})],O.prototype,"noCustomComponent",void 0);N([(0,B.property)({type:Boolean})],O.prototype,"withManualResources",void 0);N([(0,B.property)({type:Boolean})],O.prototype,"navigatorOnline",void 0);N([(0,B.property)({type:Boolean})],O.prototype,"forcedOffline",void 0);N([(0,B.property)({type:Boolean})],O.prototype,"authenticationRequired",void 0);N([(0,$t.jsonProperty)([])],O.prototype,"messageContexts",void 0);N([(0,$t.jsonProperty)(void 0)],O.prototype,"session",void 0);var Ho=E(T());var Bo={"ft-app-context":O};(0,Ho.customElements)(Bo);var Vo=E(et());var Ln=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-]+$/)}},fe=new Ln;var Rc=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},Me=Symbol("i18nAttributes"),Wo=Symbol("i18nListAttributes"),zo=Symbol("i18nProperties"),br=Symbol("i18nContexts"),De=Symbol("i18nUnsubs"),Ko=(0,pe.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?Tn:Le}i18n(s){let{context:o,key:a,message:c}=s,{custom:u,args:l,argsProvider:d}=s;if(o&&a){this.hasI18nContext(o)||this.addI18nContext(o,void 0,u);let f=l??(d?d(this):[]);return this.getI18nService(u).resolveMessage(o,a,...f)}return c}async awaitI18n(s){let{context:o,custom:a}=s;return o&&await this.getI18nService(a).prepareContext(o),this.i18n(s)}customI18n(s,o){if(fe.isI18nKey(s)){let[a,c]=s.split(".");return this.i18n({custom:!0,context:a,key:c,...o})||s}return s}firstUpdated(s){super.firstUpdated(s),this.updateI18nAttributes(()=>!0),this.updateI18nProperties(()=>!0)}update(s){super.update(s),this.updateI18nAttributes((o,a,c)=>s.has(a)||typeof o.argsProvider=="function"),this.updateI18nProperties(o=>typeof o.argsProvider=="function")}onI18nUpdate(s){this.updateI18nAttributes((o,a,c)=>{var u;return((u=c?.context)===null||u===void 0?void 0:u.toLowerCase())===s}),this.updateI18nProperties(o=>o.context.toLowerCase()===s),this.requestUpdate()}updateI18nAttributes(s){var o,a;let c=this,u=(l,d,f)=>f?.context&&f.key&&s(l,d,f)?{...f,message:this.i18n({context:f.context,key:f.key,custom:f.custom,...l})}:f;(o=this[Me])===null||o===void 0||o.forEach((l,d)=>c[d]=u(l,d,c[d])),(a=this[Wo])===null||a===void 0||a.forEach((l,d)=>{var f;return c[d]=(f=c[d])===null||f===void 0?void 0:f.map(p=>u(l,d,p))})}updateI18nProperties(s){var o;(o=this[zo])===null||o===void 0||o.forEach((a,c)=>{s(a,c)&&(this[c]=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 c=(typeof s=="string"?s:s.name).toLowerCase();a=typeof s=="string"?a:s.custom,this[br].set(c,{isCustomContext:a}),this[De].has(c)||this[De].set(c,this.getI18nService(a).subscribe(c,()=>this.onI18nUpdate(c))),this.getI18nService(a).prepareContext(c,o)}hasI18nContext(s){return this[br].has(s.toLowerCase())}connectedCallback(){super.connectedCallback(),this[br].forEach((s,o)=>this.addI18nContext(o,void 0,s.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[De].forEach(s=>s()),this[De].clear()}}return t=br,r=De,Rc([(0,Vo.property)({type:Boolean})],n.prototype,"useCustomMessageContexts",void 0),n}),Ar=class extends Ko(pe.FtLitElement){},xr=class extends Ko(pe.FtLitElementRedux){};var qo=E(T());var kn=class{fromAttribute(t){if(!t)return[];try{let r=JSON.parse(t);return Array.isArray(r)?r.map(n=>typeof n=="string"?fe.fromAttribute(n):n):[]}catch{return[]}}toAttribute(t){if(t!=null)return JSON.stringify(t)}},_c=new kn;var Go=(e,t)=>(r,n)=>{var i;r.constructor.createProperty(n,{type:Object,hasChanged:qo.hasChanged,converter:fe,...t}),r[Me]=(i=r[Me])!==null&&i!==void 0?i:new Map,r[Me].set(n,e??{})};var Yo=E(ot());var Xo=Yo.css`
|
|
141
|
+
`;var Sr=E(ot()),Er=E(et()),wr=E(T());var Ue=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},Z=class extends xr{constructor(){super(),this.editorMode=!1,this.addStore(w)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":Sr.nothing:Sr.html`
|
|
142
142
|
<span class="ft-i18n">
|
|
143
143
|
${this.i18n({context:this.context,key:this.key,args:Array.isArray(this.args)?this.args:[]})}
|
|
144
144
|
</span>
|
|
145
|
-
`}update(
|
|
145
|
+
`}update(t){var r;super.update(t),["context","key","defaultMessage"].some(n=>t.has(n))&&this.context&&this.key&&this.addI18nContext(this.context,{[this.key]:(r=this.defaultMessage)!==null&&r!==void 0?r:""})}};Z.elementDefinitions={};Z.styles=Xo;Ue([(0,wr.redux)()],Z.prototype,"editorMode",void 0);Ue([(0,Er.property)()],Z.prototype,"context",void 0);Ue([(0,Er.property)()],Z.prototype,"key",void 0);Ue([(0,wr.jsonProperty)([])],Z.prototype,"args",void 0);Ue([(0,Er.property)()],Z.prototype,"defaultMessage",void 0);var Qo=E(T());var Jo={"ft-i18n":Z};(0,Qo.customElements)(Jo);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},L=class extends Ar{constructor(){super(...arguments),this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.ignoreMatchingElements=[],this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new Y.Debouncer,this.revealDebouncer=new Y.Debouncer,this.onTouch=t=>{this.isIgnored(t)||(this.show(),setTimeout(()=>window.addEventListener("touchstart",r=>{r.composedPath().includes(this.container)||this.onOut(r)},{once:!0}),100))},this.onHover=t=>{this.isIgnored(t)?this.matchesIgnored(t)&&this.hide():this.show()},this.onFocusIn=t=>{!this.isIgnored(t)&&window.FluidTopicsA11yHints.isKeyboardNavigation&&window.FluidTopicsA11yHints.lastPressedKey==="Tab"&&this.show()},this.onOut=t=>{this.isIgnored(t)||(this.revealDebouncer.cancel(),this.hide())},this.onClick=t=>{this.isIgnored(t)||(this.revealDebouncer.cancel(),this.hide())}}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){var t,r;return Zo.html`
|
|
146
146
|
<div part="container"
|
|
147
147
|
class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}">
|
|
148
148
|
<slot part="slot"></slot>
|
|
@@ -151,13 +151,13 @@
|
|
|
151
151
|
popover="manual">
|
|
152
152
|
<div part="tooltip-content" class="ft-tooltip--content">
|
|
153
153
|
<slot name="text"></slot>
|
|
154
|
-
<ft-typography variant="${
|
|
154
|
+
<ft-typography variant="${Ht.caption}" ?hidden=${!(!((t=this.text)===null||t===void 0)&&t.message)}>
|
|
155
155
|
${(r=this.text)===null||r===void 0?void 0:r.message}
|
|
156
156
|
</ft-typography>
|
|
157
157
|
</div>
|
|
158
158
|
</div>
|
|
159
159
|
</div>
|
|
160
|
-
`}setupFor(
|
|
160
|
+
`}setupFor(t){this.eventsTarget!==t&&(this.removeHandlers(),this.eventsTarget=t,this.eventsTarget.addEventListener("mouseover",this.onHover,{passive:!0}),this.eventsTarget.addEventListener("mouseleave",this.onOut,{passive:!0}),this.eventsTarget.addEventListener("focusin",this.onFocusIn,{passive:!0}),this.eventsTarget.addEventListener("focusout",this.onOut,{passive:!0}),this.eventsTarget.addEventListener("touchstart",this.onTouch,{passive:!0}),this.eventsTarget.addEventListener("click",this.onClick,{passive:!0}))}removeHandlers(){this.eventsTarget&&(this.eventsTarget.removeEventListener("mouseover",this.onHover),this.eventsTarget.removeEventListener("mouseleave",this.onOut),this.eventsTarget.removeEventListener("focusin",this.onFocusIn),this.eventsTarget.removeEventListener("focusout",this.onOut),this.eventsTarget.removeEventListener("touchstart",this.onTouch),this.eventsTarget.removeEventListener("click",this.onClick),this.eventsTarget=void 0)}defaultSetup(){this.container&&this.setupFor(this.container)}updated(t){var r,n;t.has("visible")&&(this.visible?(this.resetTooltipContent(),(r=this.tooltip)===null||r===void 0||r.showPopover()):(n=this.tooltip)===null||n===void 0||n.hidePopover()),super.updated(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some(r=>t.has(r))&&this.visible&&this.positionTooltip()}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.eventsTarget==null&&this.defaultSetup()})}disconnectedCallback(){super.disconnectedCallback(),this.removeHandlers()}async show(t){this.visible=!0,t!=null&&await this.hideDebounce.run(()=>{this.hide()},t)}async showTemporaryText(t,r){let n=this.manual;this.manual=!0;let i=this.text;this.text={message:t},await this.show(r),this.text=i,this.manual=n}hide(){this.visible=!1}toggle(){this.visible=!this.visible}isVisible(){return this.visible}get slottedElement(){var t;return((t=this.slotNodes)!==null&&t!==void 0?t:[]).filter(r=>r.nodeType==Node.ELEMENT_NODE)[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){let t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px";break}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&qi(this.slottedElement,this.tooltip,{placement:this.position,strategy:"fixed"}).then(({x:t,y:r})=>{this.tooltip&&(this.tooltip.style.transform=`translate(${t}px,${r}px)`)}),this.revealDebouncer.run(()=>{this.tooltipContent&&(this.tooltipContent.style.transition=`top ${Y.designSystemVariables.transitionDuration}, left ${Y.designSystemVariables.transitionDuration}`,this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}matchesIgnored(t){return(0,Y.eventPathContainsMatchingElement)(t,this.ignoreMatchingElements,this.eventsTarget)}isIgnored(t){return this.manual||this.matchesIgnored(t)}};L.elementDefinitions={"ft-typography":ct};L.styles=gi;tt([Go()],L.prototype,"text",void 0);tt([(0,X.property)({type:Boolean})],L.prototype,"manual",void 0);tt([(0,X.property)({type:Boolean})],L.prototype,"inline",void 0);tt([(0,Y.numberProperty)()],L.prototype,"delay",void 0);tt([(0,X.property)()],L.prototype,"position",void 0);tt([(0,Y.jsonProperty)([])],L.prototype,"ignoreMatchingElements",void 0);tt([(0,X.queryAssignedNodes)()],L.prototype,"slotNodes",void 0);tt([(0,X.query)(".ft-tooltip--container")],L.prototype,"container",void 0);tt([(0,X.query)(".ft-tooltip")],L.prototype,"tooltip",void 0);tt([(0,X.query)(".ft-tooltip--content")],L.prototype,"tooltipContent",void 0);tt([(0,X.state)()],L.prototype,"visible",void 0);var ta={"ft-tooltip":L};(0,ea.customElements)(ta);})();
|
|
161
161
|
/*! Bundled license information:
|
|
162
162
|
|
|
163
163
|
lit-html/lit-html.js:
|